@master/css
Advanced tools
Comparing version 1.14.5 to 1.14.6
@@ -28,3 +28,3 @@ { | ||
}, | ||
"version": "1.14.5" | ||
"version": "1.14.6" | ||
} |
@@ -1,1 +0,1 @@ | ||
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports["@master/styles"]=t():e["@master/styles"]=t()}(this,(function(){return(()=>{var e={131:function(e,t,r){var o;o=void 0!==r.g?r.g:this,e.exports=function(e){if(e.CSS&&e.CSS.escape)return e.CSS.escape;var t=function(e){if(0==arguments.length)throw new TypeError("`CSS.escape` requires an argument.");for(var t,r=String(e),o=r.length,n=-1,s="",c=r.charCodeAt(0);++n<o;)0!=(t=r.charCodeAt(n))?s+=t>=1&&t<=31||127==t||0==n&&t>=48&&t<=57||1==n&&t>=48&&t<=57&&45==c?"\\"+t.toString(16)+" ":0==n&&1==o&&45==t||!(t>=128||45==t||95==t||t>=48&&t<=57||t>=65&&t<=90||t>=97&&t<=122)?"\\"+r.charAt(n):r.charAt(n):s+="�";return s};return e.CSS||(e.CSS={}),e.CSS.escape=t,t}(o)}},t={};function r(o){var n=t[o];if(void 0!==n)return n.exports;var s=t[o]={exports:{}};return e[o].call(s.exports,s,s.exports,r),s.exports}r.d=(e,t)=>{for(var o in t)r.o(t,o)&&!r.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var o={};return(()=>{"use strict";r.r(o),r.d(o,{render:()=>e});r(131);function e(e,t){if(!e)return{stylesCss:"",colorsCss:"",colorsMetaContent:"",html:e};const{Style:r,StyleSheet:o}=t,n=new o,s=/\sclass="([^"]*)"/gm;let c;for(;c=s.exec(e);){const e=c[1].replace(/\n/g,"").split(" ").filter((e=>e));for(const t of e)t in n.countOfName||(n.findAndInsert(t),n.countOfName[t]=1)}const i=n.styles.map((e=>e.text)).join(""),a=r.colorNames.map((e=>function(e,t){let r=":root{";for(const o in t)r+="--"+e+(o?"-"+o:"")+":"+t[o]+";";return r+="}",r}(e,r.rgbColors[e]))).join(""),l=r.colorNames.join(",");return{stylesCss:i,colorsCss:a,colorsMetaContent:l,html:e.includes("<head>")?e.replace(/(<head>)/,`$1\n <style id="master-colors">${a}</style>\n <style id="master-styles">${i}</style>\n <meta name="master:colors" content="${l}"></meta>`):e}}})(),o})()})); | ||
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports["@master/styles"]=t():e["@master/styles"]=t()}(this,(function(){return(()=>{var e={131:function(e,t,r){var o;o=void 0!==r.g?r.g:this,e.exports=function(e){if(e.CSS&&e.CSS.escape)return e.CSS.escape;var t=function(e){if(0==arguments.length)throw new TypeError("`CSS.escape` requires an argument.");for(var t,r=String(e),o=r.length,n=-1,s="",c=r.charCodeAt(0);++n<o;)0!=(t=r.charCodeAt(n))?s+=t>=1&&t<=31||127==t||0==n&&t>=48&&t<=57||1==n&&t>=48&&t<=57&&45==c?"\\"+t.toString(16)+" ":0==n&&1==o&&45==t||!(t>=128||45==t||95==t||t>=48&&t<=57||t>=65&&t<=90||t>=97&&t<=122)?"\\"+r.charAt(n):r.charAt(n):s+="�";return s};return e.CSS||(e.CSS={}),e.CSS.escape=t,t}(o)}},t={};function r(o){var n=t[o];if(void 0!==n)return n.exports;var s=t[o]={exports:{}};return e[o].call(s.exports,s,s.exports,r),s.exports}r.d=(e,t)=>{for(var o in t)r.o(t,o)&&!r.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var o={};return(()=>{"use strict";r.r(o),r.d(o,{render:()=>e});r(131);function e(e,t){if(!e)return{stylesCss:"",colorsCss:"",colorsMetaContent:"",html:e};const r=t.StyleSheet,o=t.Style,n=new r,s=/\sclass="([^"]*)"/gm;let c;for(;c=s.exec(e);){const e=c[1].replace(/\n/g,"").split(" ").filter((e=>e));for(const t of e)t in n.countOfName||(n.findAndInsert(t),n.countOfName[t]=1)}const i=n.styles.map((e=>e.text)).join(""),a=o.colorNames.map((e=>function(e,t){let r=":root{";for(const o in t)r+="--"+e+(o?"-"+o:"")+":"+t[o]+";";return r+="}",r}(e,o.rgbColors[e]))).join(""),l=o.colorNames.join(",");return{stylesCss:i,colorsCss:a,colorsMetaContent:l,html:e.includes("<head>")?e.replace(/(<head>)/,`$1\n <style id="master-colors">${a}</style>\n <style id="master-styles">${i}</style>\n <meta name="master:colors" content="${l}"></meta>`):e}}})(),o})()})); |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
107236
220
1929