Socket
Socket
Sign inDemoInstall

@paperbits/styles

Package Overview
Dependencies
Maintainers
2
Versions
594
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.561 to 0.1.562

fonts/systemFonts.ts

2

contracts/fontContract.ts

@@ -24,3 +24,3 @@ import { PrimitiveContract } from "@paperbits/common/styles";

*/
variants: FontVariantContract[];
variants?: FontVariantContract[];

@@ -27,0 +27,0 @@ /**

{
"name": "@paperbits/styles",
"version": "0.1.561",
"version": "0.1.562",
"description": "Paperbits style editors.",

@@ -19,3 +19,3 @@ "author": "Paperbits",

"dependencies": {
"@paperbits/common": "0.1.561",
"@paperbits/common": "0.1.562",
"@simonwep/pickr": "^1.7.4",

@@ -22,0 +22,0 @@ "jss": "^10.4.0",

@@ -7,2 +7,3 @@ import * as Objects from "@paperbits/common";

import { StyleHelper } from "../../styleHelper";
import { SystemFonts } from "../../fonts/systemFonts";

@@ -37,3 +38,3 @@ export class TypographyStylePlugin extends StylePlugin {

if (pluginConfig.fontKey) {
const fontContract = Objects.getObjectAt<FontContract>(pluginConfig.fontKey, this.themeContract);
const fontContract = Objects.getObjectAt<FontContract>(pluginConfig.fontKey, this.themeContract) || SystemFonts.find(font => font.key === pluginConfig.fontKey);

@@ -40,0 +41,0 @@ if (fontContract) {

@@ -7,2 +7,3 @@ import * as ko from "knockout";

import { FontContract } from "../../contracts/fontContract";
import { SystemFonts } from "../../fonts/systemFonts";

@@ -42,3 +43,3 @@

const fonts = await this.styleService.getVariations<FontContract>("fonts");
this.fonts(fonts);
this.fonts(fonts.concat(SystemFonts));
}

@@ -45,0 +46,0 @@

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc