jss-plugin-global
Advanced tools
Comparing version 10.0.0-alpha.13 to 10.0.0-alpha.14
@@ -585,14 +585,14 @@ function _extends() { | ||
var keyRegExp$1 = /@keyframes\s+/; | ||
var refRegExp = /\$([\w-]+)/; | ||
var refRegExp = /\$([\w-]+)/g; | ||
var findReferencedKeyframe = function findReferencedKeyframe(val, keyframes) { | ||
if (typeof val === 'string') { | ||
var ref = refRegExp.exec(val); | ||
if (!ref) return val; | ||
return val.replace(refRegExp, function (match, name) { | ||
if (name in keyframes) { | ||
return keyframes[name]; | ||
} | ||
if (ref[1] in keyframes) { | ||
return val.replace(ref[0], keyframes[ref[1]]); | ||
} | ||
warning(false, "[JSS] Referenced keyframes rule \"" + ref[1] + "\" is not defined."); | ||
warning(false, "[JSS] Referenced keyframes rule \"" + name + "\" is not defined."); | ||
return match; | ||
}); | ||
} | ||
@@ -1113,4 +1113,4 @@ | ||
_proto.attach = function attach() { | ||
if (this.attached || !this.renderer) return this; | ||
this.renderer.attach(); | ||
if (this.attached) return this; | ||
if (this.renderer) this.renderer.attach(); | ||
this.attached = true; // Order is important, because we can't use insertRule API if style element is not attached. | ||
@@ -1127,4 +1127,4 @@ | ||
_proto.detach = function detach() { | ||
if (!this.attached || !this.renderer) return this; | ||
this.renderer.detach(); | ||
if (!this.attached) return this; | ||
if (this.renderer) this.renderer.detach(); | ||
this.attached = false; | ||
@@ -1234,7 +1234,4 @@ return this; | ||
_proto.deploy = function deploy() { | ||
if (this.renderer) { | ||
this.renderer.deploy(); | ||
this.deployed = true; | ||
} | ||
if (this.renderer) this.renderer.deploy(); | ||
this.deployed = true; | ||
return this; | ||
@@ -1962,3 +1959,3 @@ } | ||
this.id = instanceCounter++; | ||
this.version = "10.0.0-alpha.13"; | ||
this.version = "10.0.0-alpha.14"; | ||
this.plugins = new PluginsRegistry(); | ||
@@ -1965,0 +1962,0 @@ this.options = { |
{ | ||
"name": "jss-plugin-global", | ||
"description": "Global styles for JSS", | ||
"version": "10.0.0-alpha.13", | ||
"version": "10.0.0-alpha.14", | ||
"license": "MIT", | ||
@@ -41,9 +41,9 @@ "homepage": "https://cssinjs.org/jss-global", | ||
"devDependencies": { | ||
"jss-plugin-nested": "10.0.0-alpha.13" | ||
"jss-plugin-nested": "10.0.0-alpha.14" | ||
}, | ||
"dependencies": { | ||
"@babel/runtime": "^7.3.1", | ||
"jss": "10.0.0-alpha.13" | ||
"jss": "10.0.0-alpha.14" | ||
}, | ||
"gitHead": "37f000839b1970298782bf85f929c828060ffe3a" | ||
"gitHead": "2238961a6e853df27aa1af6052b62cfc30873587" | ||
} |
@@ -12,3 +12,3 @@ # jss-plugin-global | ||
See our website [jss-plugin-global](https://cssinjs.org/jss-plugin-global?v=v10.0.0-alpha.13) for more information. | ||
See our website [jss-plugin-global](https://cssinjs.org/jss-plugin-global?v=v10.0.0-alpha.14) for more information. | ||
@@ -15,0 +15,0 @@ ## Install |
99562
2918
+ Addedjss@10.0.0-alpha.14(transitive)
- Removedjss@10.0.0-alpha.13(transitive)
Updatedjss@10.0.0-alpha.14