Socket
Socket
Sign inDemoInstall

@paperbits/styles

Package Overview
Dependencies
Maintainers
2
Versions
592
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@paperbits/styles - npm Package Compare versions

Comparing version 0.1.580 to 0.1.581

4

package.json
{
"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 @@ }

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc