diff --git a/.babelrc b/.babelrc
index 233a202..9704a95 100644
--- a/.babelrc
+++ b/.babelrc
@@ -1,44 +1,3 @@
{
- "presets": [
- [ "env", {
- "modules": false,
- "targets": {
- "browsers": [
- "last 2 Chrome versions",
- "last 2 Firefox versions",
- "last 2 Safari versions",
- "last 2 Edge versions",
- "last 2 Opera versions",
- "last 2 iOS versions",
- "last 1 Android version",
- "last 1 ChromeAndroid version",
- "ie 11",
- "> 1%"
- ]
- }
- } ]
- ],
- "plugins": [
- "transform-object-rest-spread",
- [ "transform-react-jsx", {
- "pragma": "wp.element.createElement"
- } ]
- ],
- "env": {
- "default": {
- "plugins": [
- "transform-runtime"
- ]
- },
- "test": {
- "presets": [ "env" ]
- },
- "gettext": {
- "plugins": [
- [ "./i18n/babel-plugin", {
- "output": "languages/shiny-code.pot"
- } ]
- ]
- }
- }
+ "presets": [ "@wordpress/default" ]
}
diff --git a/.phpcs.xml.dist b/.phpcs.xml.dist
index 07a5dad..28d2b16 100644
--- a/.phpcs.xml.dist
+++ b/.phpcs.xml.dist
@@ -24,11 +24,14 @@
-
+
-
+
+
+
+
diff --git a/CHANGELOG.md b/CHANGELOG.md
index c6715e5..c037949 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -2,7 +2,14 @@
## [Unreleased]
+## [1.0.1] - 2024-11-23
+
+* Imported PluginSidebar and other components from the editor package to prevent notices in the console after WordPress 6.6.
+* Updated Prism.js to version 1.29.0.
* Added an admin notice if Shiny Code is missing dependencies. ([#5](https://github.com/cedaro/shiny-code/issues/5))
+* Updated npm and Composer dependencies.
+* Fixed coding standards warnings and errors.
+* Updated Sass files to fix deprecation warnings and errors.
## [1.0.0] - 2018-12-13
@@ -14,5 +21,6 @@
* First release.
-[Unreleased]: https://github.com/cedaro/shiny-code/compare/v1.0.0...HEAD
+[Unreleased]: https://github.com/cedaro/shiny-code/compare/v1.0.1...HEAD
+[1.0.1]: https://github.com/cedaro/shiny-code/compare/v1.0.0...v1.0.1
[1.0.0]: https://github.com/cedaro/shiny-code/compare/v0.1.0...v1.0.0
diff --git a/assets/js/vendor/prism.js b/assets/js/vendor/prism.js
index 6e10c42..12ebdf4 100644
--- a/assets/js/vendor/prism.js
+++ b/assets/js/vendor/prism.js
@@ -1,12 +1,12 @@
-/* PrismJS 1.15.0
-https://prismjs.com/download.html?#themes=prism&languages=markup+css+clike+javascript+markup-templating+json+php&plugins=line-highlight+line-numbers */
-var _self="undefined"!=typeof window?window:"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope?self:{},Prism=function(){var e=/\blang(?:uage)?-([\w-]+)\b/i,t=0,n=_self.Prism={manual:_self.Prism&&_self.Prism.manual,disableWorkerMessageHandler:_self.Prism&&_self.Prism.disableWorkerMessageHandler,util:{encode:function(e){return e instanceof r?new r(e.type,n.util.encode(e.content),e.alias):"Array"===n.util.type(e)?e.map(n.util.encode):e.replace(/&/g,"&").replace(/e.length)return;if(!(w instanceof s)){if(m&&b!=t.length-1){h.lastIndex=k;var _=h.exec(e);if(!_)break;for(var j=_.index+(d?_[1].length:0),P=_.index+_[0].length,A=b,x=k,O=t.length;O>A&&(P>x||!t[A].type&&!t[A-1].greedy);++A)x+=t[A].length,j>=x&&(++b,k=x);if(t[b]instanceof s)continue;I=A-b,w=e.slice(k,x),_.index-=k}else{h.lastIndex=0;var _=h.exec(w),I=1}if(_){d&&(p=_[1]?_[1].length:0);var j=_.index+p,_=_[0].slice(p),P=j+_.length,N=w.slice(0,j),S=w.slice(P),C=[b,I];N&&(++b,k+=N.length,C.push(N));var E=new s(u,f?n.tokenize(_,f):_,y,_,m);if(C.push(E),S&&C.push(S),Array.prototype.splice.apply(t,C),1!=I&&n.matchGrammar(e,t,r,b,k,!0,u),i)break}else if(i)break}}}}},tokenize:function(e,t){var r=[e],a=t.rest;if(a){for(var l in a)t[l]=a[l];delete t.rest}return n.matchGrammar(e,r,t,0,0,!1),r},hooks:{all:{},add:function(e,t){var r=n.hooks.all;r[e]=r[e]||[],r[e].push(t)},run:function(e,t){var r=n.hooks.all[e];if(r&&r.length)for(var a,l=0;a=r[l++];)a(t)}}},r=n.Token=function(e,t,n,r,a){this.type=e,this.content=t,this.alias=n,this.length=0|(r||"").length,this.greedy=!!a};if(r.stringify=function(e,t,a){if("string"==typeof e)return e;if("Array"===n.util.type(e))return e.map(function(n){return r.stringify(n,t,e)}).join("");var l={type:e.type,content:r.stringify(e.content,t,a),tag:"span",classes:["token",e.type],attributes:{},language:t,parent:a};if(e.alias){var i="Array"===n.util.type(e.alias)?e.alias:[e.alias];Array.prototype.push.apply(l.classes,i)}n.hooks.run("wrap",l);var o=Object.keys(l.attributes).map(function(e){return e+'="'+(l.attributes[e]||"").replace(/"/g,""")+'"'}).join(" ");return"<"+l.tag+' class="'+l.classes.join(" ")+'"'+(o?" "+o:"")+">"+l.content+""+l.tag+">"},!_self.document)return _self.addEventListener?(n.disableWorkerMessageHandler||_self.addEventListener("message",function(e){var t=JSON.parse(e.data),r=t.language,a=t.code,l=t.immediateClose;_self.postMessage(n.highlight(a,n.languages[r],r)),l&&_self.close()},!1),_self.Prism):_self.Prism;var a=document.currentScript||[].slice.call(document.getElementsByTagName("script")).pop();return a&&(n.filename=a.src,n.manual||a.hasAttribute("data-manual")||("loading"!==document.readyState?window.requestAnimationFrame?window.requestAnimationFrame(n.highlightAll):window.setTimeout(n.highlightAll,16):document.addEventListener("DOMContentLoaded",n.highlightAll))),_self.Prism}();"undefined"!=typeof module&&module.exports&&(module.exports=Prism),"undefined"!=typeof global&&(global.Prism=Prism);
-Prism.languages.markup={comment://,prolog:/<\?[\s\S]+?\?>/,doctype://i,cdata://i,tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s+[^\s>\/=]+(?:=(?:("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|[^\s'">=]+))?)*\s*\/?>/i,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/i,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"attr-value":{pattern:/=(?:("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|[^\s'">=]+)/i,inside:{punctuation:[/^=/,{pattern:/(^|[^\\])["']/,lookbehind:!0}]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:/?[\da-z]{1,8};/i},Prism.languages.markup.tag.inside["attr-value"].inside.entity=Prism.languages.markup.entity,Prism.hooks.add("wrap",function(a){"entity"===a.type&&(a.attributes.title=a.content.replace(/&/,"&"))}),Prism.languages.xml=Prism.languages.markup,Prism.languages.html=Prism.languages.markup,Prism.languages.mathml=Prism.languages.markup,Prism.languages.svg=Prism.languages.markup;
-Prism.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:/@[\w-]+?.*?(?:;|(?=\s*\{))/i,inside:{rule:/@[\w-]+/}},url:/url\((?:(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1|.*?)\)/i,selector:/[^{}\s][^{};]*?(?=\s*\{)/,string:{pattern:/("|')(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},property:/[-_a-z\xA0-\uFFFF][-\w\xA0-\uFFFF]*(?=\s*:)/i,important:/\B!important\b/i,"function":/[-a-z0-9]+(?=\()/i,punctuation:/[(){};:]/},Prism.languages.css.atrule.inside.rest=Prism.languages.css,Prism.languages.markup&&(Prism.languages.insertBefore("markup","tag",{style:{pattern:/(