Comparing version 5.0.0-alpha.0 to 5.0.0-alpha.1
@@ -91,9 +91,9 @@ function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); } | ||
_proto.purgeStyles = function purgeStyles(styleName) {}; | ||
_proto.purgeStyles = function purgeStyles() {}; | ||
_proto.resetGlobalStyles = function resetGlobalStyles(prevTheme) { | ||
this.purgeStyles(GLOBAL_STYLE_NAME); | ||
this.cacheManager.clear(function (unit) { | ||
return unit.global === true && unit.theme === prevTheme; | ||
}); | ||
this.purgeStyles(); | ||
return this; | ||
@@ -100,0 +100,0 @@ }; |
@@ -42,6 +42,5 @@ import Aesthetic from './Aesthetic'; | ||
/** | ||
* Purge and remove all styles from the DOM for the target component. | ||
* If no target defined, will purge all possible styles. | ||
* Purge and remove all global styles from the DOM. | ||
*/ | ||
purgeStyles(styleName?: StyleName): void; | ||
purgeStyles(): void; | ||
/** | ||
@@ -48,0 +47,0 @@ * Reset and clear global styles for the defined theme. |
@@ -104,9 +104,9 @@ "use strict"; | ||
_proto.purgeStyles = function purgeStyles(styleName) {}; | ||
_proto.purgeStyles = function purgeStyles() {}; | ||
_proto.resetGlobalStyles = function resetGlobalStyles(prevTheme) { | ||
this.purgeStyles(_constants.GLOBAL_STYLE_NAME); | ||
this.cacheManager.clear(function (unit) { | ||
return unit.global === true && unit.theme === prevTheme; | ||
}); | ||
this.purgeStyles(); | ||
return this; | ||
@@ -113,0 +113,0 @@ }; |
{ | ||
"name": "aesthetic", | ||
"version": "5.0.0-alpha.0", | ||
"version": "5.0.0-alpha.1", | ||
"description": "Aesthetic is a powerful type-safe, framework agnostic, CSS-in-JS library for styling components through the use of adapters.", | ||
@@ -30,3 +30,3 @@ "keywords": [ | ||
"dependencies": { | ||
"aesthetic-utils": "^3.0.0-alpha.0", | ||
"aesthetic-utils": "^3.0.0-alpha.1", | ||
"csstype": "^2.6.7", | ||
@@ -42,3 +42,3 @@ "extend": "^3.0.2", | ||
}, | ||
"gitHead": "1909ec6f57b2ddcc63355122e38d74c9d06d2a23" | ||
"gitHead": "730d6524d48cc9526c1fd42200cbbdc758f67579" | ||
} |
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
0
169676
3750