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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "smbls",
3
- "version": "3.6.7",
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.6.7",
33
- "@symbo.ls/helmet": "^3.6.7",
34
- "@domql/report": "^3.6.7",
35
- "@domql/router": "^3.6.7",
36
- "@domql/utils": "^3.6.7",
37
- "@symbo.ls/cli": "^3.6.7",
38
- "@symbo.ls/default-config": "^3.6.7",
39
- "@symbo.ls/fetch": "^3.6.7",
40
- "@symbo.ls/scratch": "^3.6.7",
41
- "@symbo.ls/sync": "^3.6.7",
42
- "@symbo.ls/uikit": "^3.6.7",
43
- "@symbo.ls/smbls-utils": "^3.6.7",
44
- "attrs-in-props": "^3.6.7",
45
- "css-in-props": "^3.6.7",
46
- "domql": "^3.6.7"
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 || conf.FONT, conf.files)
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 || config.SVG
62
+ const hasSvgs = config.svg
63
63
  const useIconSprite = conf.useIconSprite
64
- const hasIcons = config.icons || 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 || 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 || 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 || conf.SVG, { document: options.document })
97
+ appendSVGSprite(conf.svg, { document: options.document })
98
98
 
99
99
  if (hasIcons || useIconSprite)
100
- appendSvgIconsSprite(conf.icons || conf.ICONS, { document: options.document })
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.RESET)
129
+ emotion.injectGlobal(conf.reset)
130
130
  }
131
131
  return conf
132
132
  }