@paperbits/styles
Advanced tools
Comparing version 0.1.580 to 0.1.581
{ | ||
"name": "@paperbits/styles", | ||
"version": "0.1.580", | ||
"version": "0.1.581", | ||
"description": "Paperbits style editors.", | ||
@@ -19,3 +19,3 @@ "author": "Paperbits", | ||
"dependencies": { | ||
"@paperbits/common": "0.1.580", | ||
"@paperbits/common": "0.1.581", | ||
"@simonwep/pickr": "^1.7.4", | ||
@@ -22,0 +22,0 @@ "jss": "^10.4.0", |
@@ -21,2 +21,6 @@ import * as Objects from "@paperbits/common"; | ||
public async configToStyleRules(pluginConfig: AnimationStylePluginConfig): Promise<StyleRule[]> { | ||
if (pluginConfig.animationKey == "animations/none") { | ||
return [new StyleRule("animation", "none")]; | ||
} | ||
const contract = Objects.getObjectAt<AnimationContract>(pluginConfig.animationKey, this.themeContract); | ||
@@ -23,0 +27,0 @@ |
@@ -276,3 +276,3 @@ import * as ko from "knockout"; | ||
this.applyChanges(); | ||
await this.applyChanges(); | ||
} | ||
@@ -678,9 +678,2 @@ } | ||
await this.styleService.updateStyle(style); | ||
if (style.key.startsWith("components/")) { | ||
const parts = style.key.split("/"); | ||
const componentName = parts[1]; | ||
await this.onUpdateStyle(componentName); | ||
} | ||
this.applyChanges(); | ||
@@ -687,0 +680,0 @@ } |
@@ -252,2 +252,5 @@ import * as _ from "lodash"; | ||
console.log(styles); | ||
await this.updateStyles(styles); | ||
@@ -254,0 +257,0 @@ } |
@@ -29,2 +29,8 @@ import * as ko from "knockout"; | ||
const animations = await this.styleService.getAnimations(); | ||
const noAnimationOption = animations.find(x => x.key == "animations/none"); | ||
if (!noAnimationOption) { | ||
animations.unshift(<any>{ "displayName": "No animation", "key": "animations/none" }); | ||
} | ||
this.animations(animations); | ||
@@ -31,0 +37,0 @@ } |
@@ -32,2 +32,8 @@ import * as ko from "knockout"; | ||
const shadows = await this.styleService.getShadows(); | ||
const noShadowOption = shadows.find(x => x.key == "shadows/none"); | ||
if (!noShadowOption) { | ||
shadows.unshift(<any>{ "displayName": "No shadow", "key": "shadows/none" }); | ||
} | ||
this.shadows(shadows); | ||
@@ -34,0 +40,0 @@ } |
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
416760
7842
+ Added@paperbits/common@0.1.581(transitive)
- Removed@paperbits/common@0.1.580(transitive)
Updated@paperbits/common@0.1.581