@symbo.ls/atoms 1.2.20 → 1.2.22

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.
Files changed (2) hide show
  1. package/Svg.js +3 -2
  2. package/package.json +2 -2
package/Svg.js CHANGED
@@ -13,11 +13,12 @@ export const Svg = {
13
13
  'xmlns:xlink': 'http://www.w3.org/1999/xlink'
14
14
  },
15
15
  html: ({ key, props, context, ...el }) => {
16
- const SVG = context.system && context.system.SVG
16
+ const { system, packages } = context
17
+ const SVG = system && system.SVG
17
18
  const useSvgSprite = props.spriteId || (context.system && context.system.useSvgSprite)
18
19
  const useSVGSymbol = icon => `<use xlink:href="#${icon}" />`
19
20
 
20
- const { init } = require('@symbo.ls/init')
21
+ const init = (packages && packages.init) || require('@symbo.ls/init').init
21
22
 
22
23
  if (!useSvgSprite && props.src) return props.src
23
24
 
package/package.json CHANGED
@@ -1,9 +1,9 @@
1
1
  {
2
2
  "name": "@symbo.ls/atoms",
3
- "version": "1.2.20",
3
+ "version": "1.2.22",
4
4
  "main": "index.js",
5
5
  "license": "MIT",
6
- "gitHead": "b63f1feeaceb4cd5257bca1bee630dd3b28f5cd2",
6
+ "gitHead": "08b4ab9d6bb081a0d43a95e8f7f5e2dc4ad16803",
7
7
  "dependencies": {
8
8
  "@domql/utils": "latest",
9
9
  "@symbo.ls/create-emotion": "latest",