@symbo.ls/uikit 3.8.6 → 3.8.8

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/Atoms/Picture.js CHANGED
@@ -29,6 +29,6 @@ export const Picture = {
29
29
  width: 'inherit',
30
30
  ignoreChildExtends: true,
31
31
  height: 'inherit',
32
- src: (element, state) => element.parent.props?.src || element.parent.src || state.src
32
+ src: (element, state) => element.parent?.props?.src || element.parent?.src || state.src
33
33
  }
34
34
  }
package/Atoms/Svg.js CHANGED
@@ -24,6 +24,8 @@ export const Svg = {
24
24
  const spriteId = props.spriteId
25
25
  if (spriteId) return useSVGSymbol(spriteId)
26
26
 
27
+ if (SVG && SVG[src]) return useSVGSymbol(src)
28
+
27
29
  const symbolId = Symbol.for(src)
28
30
  let SVGKey = SVG[symbolId]
29
31
  if (SVGKey && SVG[SVGKey]) return useSVGSymbol(SVGKey)
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@symbo.ls/uikit",
3
3
  "description": "UI Library built on Scratch and DOMQL",
4
- "version": "3.8.6",
4
+ "version": "3.8.8",
5
5
  "author": "symbo.ls",
6
6
  "repository": "https://github.com/symbo-ls/smbls",
7
7
  "main": "index.js",
@@ -21,13 +21,13 @@
21
21
  "dist"
22
22
  ],
23
23
  "dependencies": {
24
- "@domql/router": "^3.8.6",
25
- "@domql/state": "^3.8.6",
26
- "@domql/utils": "^3.8.6",
27
- "@symbo.ls/scratch": "^3.8.6",
28
- "@symbo.ls/smbls-utils": "^3.8.6",
29
- "attrs-in-props": "^3.8.6",
30
- "css-in-props": "^3.8.6"
24
+ "@domql/router": "^3.8.8",
25
+ "@domql/state": "^3.8.8",
26
+ "@domql/utils": "^3.8.8",
27
+ "@symbo.ls/scratch": "^3.8.8",
28
+ "@symbo.ls/smbls-utils": "^3.8.8",
29
+ "attrs-in-props": "^3.8.8",
30
+ "css-in-props": "^3.8.8"
31
31
  },
32
32
  "scripts": {
33
33
  "prepublish": "rm -rf dist && npx esbuild index.js --target=es2017 --format=cjs --sourcemap=external --outfile=dist/index.cjs.js"