@emotion/serialize
Advanced tools
Comparing version 0.8.0 to 0.8.1
@@ -106,3 +106,3 @@ 'use strict'; | ||
if (key === 'NO_COMPONENT_SELECTOR' && process.env.NODE_ENV !== 'production') { | ||
throw new Error('Component selectors can only be used in conjunction with babel-plugin-emotion.'); | ||
throw new Error('Component selectors can only be used in conjunction with @emotion/babel-plugin-core.'); | ||
} | ||
@@ -109,0 +109,0 @@ |
@@ -100,3 +100,3 @@ import hashString from '@emotion/hash'; | ||
if (key === 'NO_COMPONENT_SELECTOR' && process.env.NODE_ENV !== 'production') { | ||
throw new Error('Component selectors can only be used in conjunction with babel-plugin-emotion.'); | ||
throw new Error('Component selectors can only be used in conjunction with @emotion/babel-plugin-core.'); | ||
} | ||
@@ -103,0 +103,0 @@ |
@@ -1,2 +0,2 @@ | ||
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t(e.emotionSerialize={})}(this,function(e){"use strict";var t={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1};var o,r,i=/[A-Z]|^ms/g,n=(o=function(e){return e.replace(i,"-$&").toLowerCase()},r={},function(e){return void 0===r[e]&&(r[e]=o(e)),r[e]}),a=function(e,o){return null==o||"boolean"==typeof o?"":1===t[e]||45===e.charCodeAt(1)||isNaN(o)||0===o?o:o+"px"};function l(e,t){if(null==t)return"";if(void 0!==t.__emotion_styles)return t.toString(),t;switch(typeof t){case"boolean":return"";case"object":return 2===t.type?t.name:void 0!==t.styles?t.styles:function(e,t){var o="";Array.isArray(t)?t.forEach(function(t){o+=l.call(this,e,t)},this):Object.keys(t).forEach(function(r){"object"!=typeof t[r]?o+=n(r)+":"+a(r,t[r])+";":Array.isArray(t[r])&&"string"==typeof t[r][0]&&void 0===e[t[r][0]]?t[r].forEach(function(e){o+=n(r)+":"+a(r,e)+";"}):o+=r+"{"+l.call(this,e,t[r])+"}"},this);return o}.call(this,e,t);case"function":if(void 0!==this)return l.call(this,e,t(this));default:var o=e[t];return void 0!==o?o:t}}var s=/label:\s*([^\s;\n{]+)\s*;/g;e.processStyleName=n,e.processStyleValue=a,e.handleInterpolation=l,e.labelPattern=s,e.serializeStyles=function(e,t){if(1===t.length&&"object"==typeof t[0]&&null!==t[0]&&void 0!==t[0].styles)return t[0];var o="",r="";return t.forEach(function(t,r){o+=l.call(this,e,t)},this),{name:function(e){for(var t,o=e.length,r=o^o,i=0;o>=4;)t=1540483477*(65535&(t=255&e.charCodeAt(i)|(255&e.charCodeAt(++i))<<8|(255&e.charCodeAt(++i))<<16|(255&e.charCodeAt(++i))<<24))+((1540483477*(t>>>16)&65535)<<16),r=1540483477*(65535&r)+((1540483477*(r>>>16)&65535)<<16)^(t=1540483477*(65535&(t^=t>>>24))+((1540483477*(t>>>16)&65535)<<16)),o-=4,++i;switch(o){case 3:r^=(255&e.charCodeAt(i+2))<<16;case 2:r^=(255&e.charCodeAt(i+1))<<8;case 1:r=1540483477*(65535&(r^=255&e.charCodeAt(i)))+((1540483477*(r>>>16)&65535)<<16)}return r=1540483477*(65535&(r^=r>>>13))+((1540483477*(r>>>16)&65535)<<16),((r^=r>>>15)>>>0).toString(36)}(o=o.replace(s,function(e,t){return r+="-"+t,""}))+r,styles:o}},Object.defineProperty(e,"__esModule",{value:!0})}); | ||
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t(e.emotionSerialize={})}(this,function(i){"use strict";var o={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1};var t,r,n=/[A-Z]|^ms/g,a=(t=function(e){return e.replace(n,"-$&").toLowerCase()},r={},function(e){return void 0===r[e]&&(r[e]=t(e)),r[e]});function l(e,t){if(null==t)return"";if(void 0!==t.__emotion_styles)return t.toString(),t;switch(typeof t){case"boolean":return"";case"object":return 2===t.type?t.name:void 0!==t.styles?t.styles:function(o,e){var r="";Array.isArray(e)?e.forEach(function(e){r+=l.call(this,o,e)},this):Object.keys(e).forEach(function(t){"object"!=typeof e[t]?r+=a(t)+":"+i.processStyleValue(t,e[t])+";":Array.isArray(e[t])&&"string"==typeof e[t][0]&&void 0===o[e[t][0]]?e[t].forEach(function(e){r+=a(t)+":"+i.processStyleValue(t,e)+";"}):r+=t+"{"+l.call(this,o,e[t])+"}"},this);return r}.call(this,e,t);case"function":if(void 0!==this)return l.call(this,e,t(this));default:var o=e[t];return void 0!==o?o:t}}i.processStyleValue=function(e,t){return null==t||"boolean"==typeof t?"":1===o[e]||45===e.charCodeAt(1)||isNaN(t)||0===t?t:t+"px"};var s=/label:\s*([^\s;\n{]+)\s*;/g;i.processStyleName=a,i.handleInterpolation=l,i.labelPattern=s,i.serializeStyles=function(o,e){if(1===e.length&&"object"==typeof e[0]&&null!==e[0]&&void 0!==e[0].styles)return e[0];var r="",i="";return e.forEach(function(e,t){r+=l.call(this,o,e)},this),{name:function(e){for(var t,o=e.length,r=o^o,i=0;4<=o;)t=1540483477*(65535&(t=255&e.charCodeAt(i)|(255&e.charCodeAt(++i))<<8|(255&e.charCodeAt(++i))<<16|(255&e.charCodeAt(++i))<<24))+((1540483477*(t>>>16)&65535)<<16),r=1540483477*(65535&r)+((1540483477*(r>>>16)&65535)<<16)^(t=1540483477*(65535&(t^=t>>>24))+((1540483477*(t>>>16)&65535)<<16)),o-=4,++i;switch(o){case 3:r^=(255&e.charCodeAt(i+2))<<16;case 2:r^=(255&e.charCodeAt(i+1))<<8;case 1:r=1540483477*(65535&(r^=255&e.charCodeAt(i)))+((1540483477*(r>>>16)&65535)<<16)}return r=1540483477*(65535&(r^=r>>>13))+((1540483477*(r>>>16)&65535)<<16),((r^=r>>>15)>>>0).toString(36)}(r=r.replace(s,function(e,t){return i+="-"+t,""}))+i,styles:r}},Object.defineProperty(i,"__esModule",{value:!0})}); | ||
//# sourceMappingURL=index.min.js.map |
{ | ||
"name": "@emotion/serialize", | ||
"version": "0.8.0", | ||
"version": "0.8.1", | ||
"description": "serialization utils for emotion", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.cjs.js", |
@@ -140,3 +140,3 @@ // @flow | ||
throw new Error( | ||
'Component selectors can only be used in conjunction with babel-plugin-emotion.' | ||
'Component selectors can only be used in conjunction with @emotion/babel-plugin-core.' | ||
) | ||
@@ -143,0 +143,0 @@ } |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
45838