@paperbits/styles
Advanced tools
Comparing version 0.1.561 to 0.1.562
@@ -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 @@ |
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
413053
182
7778
+ Added@paperbits/common@0.1.562(transitive)
- Removed@paperbits/common@0.1.561(transitive)
Updated@paperbits/common@0.1.562