fower-plugin-font-family
Advanced tools
Comparing version 1.36.0 to 1.37.0
@@ -5,3 +5,3 @@ 'use strict'; | ||
var store = require('@fower/store'); | ||
var core = require('@fower/core'); | ||
var utils = require('@fower/utils'); | ||
@@ -17,3 +17,3 @@ | ||
var key = atom.key; | ||
var fontFamilies = store.store.getTheme().fontFamilies; | ||
var fontFamilies = core.store.getTheme().fontFamilies; | ||
var posfix = key.replace(/^font/i, ''); | ||
@@ -20,0 +20,0 @@ var styleValue = fontFamilies[utils.downFirst(posfix)]; |
@@ -1,2 +0,2 @@ | ||
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("@fower/store"),t=require("@fower/utils");function r(e){return/^font(Sans|Serif|Mono)?$/i.test(e)}exports.default=function(){return{isMatch:r,handleAtom:function(r){var o=r.key,n=e.store.getTheme().fontFamilies,i=o.replace(/^font/i,""),s=n[t.downFirst(i)];return r.style={fontFamily:s},r}}},exports.isMatch=r; | ||
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("@fower/core"),t=require("@fower/utils");function r(e){return/^font(Sans|Serif|Mono)?$/i.test(e)}exports.default=function(){return{isMatch:r,handleAtom:function(r){var o=r.key,n=e.store.getTheme().fontFamilies,i=o.replace(/^font/i,""),s=n[t.downFirst(i)];return r.style={fontFamily:s},r}}},exports.isMatch=r; | ||
//# sourceMappingURL=fower-plugin-font-family.cjs.production.min.js.map |
@@ -1,2 +0,2 @@ | ||
import { store } from '@fower/store'; | ||
import { store } from '@fower/core'; | ||
import { downFirst } from '@fower/utils'; | ||
@@ -3,0 +3,0 @@ |
@@ -1,4 +0,4 @@ | ||
import { FowerPlugin } from '@fower/types'; | ||
import { FowerPlugin } from '@fower/core'; | ||
export declare function isMatch(key: string): boolean; | ||
declare const _default: () => FowerPlugin; | ||
export default _default; |
{ | ||
"name": "fower-plugin-font-family", | ||
"version": "1.36.0", | ||
"version": "1.37.0", | ||
"license": "MIT", | ||
@@ -25,9 +25,7 @@ "main": "dist/index.js", | ||
"dependencies": { | ||
"@fower/atom": "^1.36.0", | ||
"@fower/core": "^1.36.0", | ||
"@fower/store": "^1.36.0", | ||
"@fower/types": "^1.36.0", | ||
"@fower/utils": "^1.36.0" | ||
"@fower/atomic-props": "^1.37.0", | ||
"@fower/core": "^1.37.0", | ||
"@fower/utils": "^1.37.0" | ||
}, | ||
"gitHead": "e278b5c6007016eda5ee60a806801f71f0f1078a" | ||
"gitHead": "12be7e461de029d625c87d5866082f0f9ceaa225" | ||
} |
@@ -1,2 +0,2 @@ | ||
import { FowerPlugin } from '@fower/types' | ||
import { FowerPlugin } from '@fower/core' | ||
@@ -6,3 +6,3 @@ declare const _default: () => FowerPlugin | ||
declare module '@fower/types' { | ||
declare module '@fower/atomic-props' { | ||
export interface AtomicProps { | ||
@@ -9,0 +9,0 @@ /** |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
3
8331
+ Added@fower/atomic-props@^1.37.0
- Removed@fower/atom@^1.36.0
- Removed@fower/store@^1.36.0
- Removed@fower/types@^1.36.0
- Removed@fower/atom@1.36.0(transitive)
- Removed@fower/store@1.36.0(transitive)
- Removed@fower/types@1.36.0(transitive)
Updated@fower/core@^1.37.0
Updated@fower/utils@^1.37.0