smbls 3.6.7 → 3.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/browser/index.js +18 -18
- package/dist/cjs/package.json +1 -1
- package/dist/cjs/src/init.js +8 -8
- package/dist/esm/package.json +1 -1
- package/dist/esm/src/init.js +8 -8
- package/dist/iife/index.js +18 -18
- package/package.json +16 -16
- package/src/init.js +8 -8
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "smbls",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.7.0",
|
|
4
4
|
"license": "CC-BY-NC-4.0",
|
|
5
5
|
"repository": "https://github.com/symbo-ls/smbls",
|
|
6
6
|
"gitHead": "9fc1b79b41cdc725ca6b24aec64920a599634681",
|
|
@@ -29,21 +29,21 @@
|
|
|
29
29
|
"src"
|
|
30
30
|
],
|
|
31
31
|
"dependencies": {
|
|
32
|
-
"@symbo.ls/emotion": "^3.
|
|
33
|
-
"@symbo.ls/helmet": "^3.
|
|
34
|
-
"@domql/report": "^3.
|
|
35
|
-
"@domql/router": "^3.
|
|
36
|
-
"@domql/utils": "^3.
|
|
37
|
-
"@symbo.ls/cli": "^3.
|
|
38
|
-
"@symbo.ls/default-config": "^3.
|
|
39
|
-
"@symbo.ls/fetch": "^3.
|
|
40
|
-
"@symbo.ls/scratch": "^3.
|
|
41
|
-
"@symbo.ls/sync": "^3.
|
|
42
|
-
"@symbo.ls/uikit": "^3.
|
|
43
|
-
"@symbo.ls/smbls-utils": "^3.
|
|
44
|
-
"attrs-in-props": "^3.
|
|
45
|
-
"css-in-props": "^3.
|
|
46
|
-
"domql": "^3.
|
|
32
|
+
"@symbo.ls/emotion": "^3.7.0",
|
|
33
|
+
"@symbo.ls/helmet": "^3.7.0",
|
|
34
|
+
"@domql/report": "^3.7.0",
|
|
35
|
+
"@domql/router": "^3.7.0",
|
|
36
|
+
"@domql/utils": "^3.7.0",
|
|
37
|
+
"@symbo.ls/cli": "^3.7.0",
|
|
38
|
+
"@symbo.ls/default-config": "^3.7.0",
|
|
39
|
+
"@symbo.ls/fetch": "^3.7.0",
|
|
40
|
+
"@symbo.ls/scratch": "^3.7.0",
|
|
41
|
+
"@symbo.ls/sync": "^3.7.0",
|
|
42
|
+
"@symbo.ls/uikit": "^3.7.0",
|
|
43
|
+
"@symbo.ls/smbls-utils": "^3.7.0",
|
|
44
|
+
"attrs-in-props": "^3.7.0",
|
|
45
|
+
"css-in-props": "^3.7.0",
|
|
46
|
+
"domql": "^3.7.0"
|
|
47
47
|
},
|
|
48
48
|
"publishConfig": {
|
|
49
49
|
"access": "public"
|
package/src/init.js
CHANGED
|
@@ -53,15 +53,15 @@ export const init = (config, options = SET_OPTIONS) => {
|
|
|
53
53
|
{ newConfig: options.newConfig }
|
|
54
54
|
)
|
|
55
55
|
|
|
56
|
-
const FontFace = getFontFaceString(conf.font
|
|
56
|
+
const FontFace = getFontFaceString(conf.font, conf.files)
|
|
57
57
|
|
|
58
58
|
const useReset = conf.useReset
|
|
59
59
|
const useVariable = conf.useVariable
|
|
60
60
|
const useFontImport = conf.useFontImport
|
|
61
61
|
const useSvgSprite = conf.useSvgSprite
|
|
62
|
-
const hasSvgs = config.svg
|
|
62
|
+
const hasSvgs = config.svg
|
|
63
63
|
const useIconSprite = conf.useIconSprite
|
|
64
|
-
const hasIcons = config.icons
|
|
64
|
+
const hasIcons = config.icons
|
|
65
65
|
|
|
66
66
|
if (useFontImport) emotion.injectGlobal(FontFace)
|
|
67
67
|
if (useVariable) {
|
|
@@ -81,10 +81,10 @@ export const init = (config, options = SET_OPTIONS) => {
|
|
|
81
81
|
emotion.injectGlobal(themeStyles)
|
|
82
82
|
}
|
|
83
83
|
}
|
|
84
|
-
if (useReset) emotion.injectGlobal(conf.reset
|
|
84
|
+
if (useReset) emotion.injectGlobal(conf.reset)
|
|
85
85
|
|
|
86
86
|
// Register all ANIMATION entries as global @keyframes
|
|
87
|
-
const animations = conf.animation
|
|
87
|
+
const animations = conf.animation
|
|
88
88
|
if (animations) {
|
|
89
89
|
const keyframesCSS = {}
|
|
90
90
|
for (const name in animations) {
|
|
@@ -94,10 +94,10 @@ export const init = (config, options = SET_OPTIONS) => {
|
|
|
94
94
|
}
|
|
95
95
|
|
|
96
96
|
if (hasSvgs || useSvgSprite)
|
|
97
|
-
appendSVGSprite(conf.svg
|
|
97
|
+
appendSVGSprite(conf.svg, { document: options.document })
|
|
98
98
|
|
|
99
99
|
if (hasIcons || useIconSprite)
|
|
100
|
-
appendSvgIconsSprite(conf.icons
|
|
100
|
+
appendSvgIconsSprite(conf.icons, { document: options.document })
|
|
101
101
|
|
|
102
102
|
return conf
|
|
103
103
|
}
|
|
@@ -126,7 +126,7 @@ export const reinit = (config, options = UPDATE_OPTIONS) => {
|
|
|
126
126
|
}
|
|
127
127
|
emotion.injectGlobal(themeStyles)
|
|
128
128
|
}
|
|
129
|
-
emotion.injectGlobal(conf.
|
|
129
|
+
emotion.injectGlobal(conf.reset)
|
|
130
130
|
}
|
|
131
131
|
return conf
|
|
132
132
|
}
|