@symbo.ls/init
Advanced tools
Comparing version 1.1.8 to 1.1.9
{ | ||
"name": "@symbo.ls/init", | ||
"version": "1.1.8", | ||
"version": "1.1.9", | ||
"license": "MIT", | ||
@@ -5,0 +5,0 @@ "gitHead": "54fa6500c697604b3f48ba33a573545d7bff35fa", |
@@ -5,5 +5,4 @@ 'use strict' | ||
set, | ||
RESET, | ||
getFontFaceString, | ||
CONFIG | ||
getActiveConfig, | ||
getFontFaceString | ||
} from '@symbo.ls/scratch' | ||
@@ -19,2 +18,4 @@ | ||
const CONFIG = getActiveConfig() | ||
const prepareInit = (config = {}, RC_FILE) => { | ||
@@ -26,8 +27,8 @@ // const defaultConfig = merge(config, CONFIG_DEFAULT) | ||
export const init = (config, RC_FILE, options = { emotion }) => { | ||
initDOMQLEmotion(options.emotion) | ||
export const init = (config, RC_FILE, options = { emotion, initDOMQLDefine: true }) => { | ||
if (options.initDOMQLDefine) initDOMQLEmotion(options.emotion, options) | ||
const resultConfig = prepareInit(config) | ||
const conf = set({ verbose: false, ...resultConfig }) | ||
const conf = set({ verbose: false, ...resultConfig }, { newConfig: options.newConfig }) | ||
const FontFace = getFontFaceString(conf.FONT) | ||
@@ -41,3 +42,6 @@ | ||
export const updateReset = (options = { emotion }) => options.emotion.injectGlobal(RESET) | ||
export const updateReset = (options = { emotion }) => { | ||
const CONFIG = getActiveConfig() | ||
options.emotion.injectGlobal(CONFIG.RESET) | ||
} | ||
@@ -44,0 +48,0 @@ export const setClass = (props, options = { emotion }) => setClassname(props, options.emotion.css) |
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
2686
32