@symbo.ls/scratch 2.10.123 → 2.10.149

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.
@@ -1,6 +1,6 @@
1
1
  'use strict'
2
2
 
3
- import { getActiveConfig } from '../factory'
3
+ import { getActiveConfig } from '../factory.js'
4
4
  import { isObject, isArray, isString } from '@domql/utils'
5
5
 
6
6
  import {
@@ -1,7 +1,7 @@
1
1
  'use strict'
2
2
 
3
3
  import { isObject } from '@domql/utils'
4
- import { getActiveConfig } from '../factory'
4
+ import { getActiveConfig } from '../factory.js'
5
5
 
6
6
  import {
7
7
  arrayze,
@@ -1,6 +1,6 @@
1
1
  'use strict'
2
2
 
3
- import { getActiveConfig } from '../factory'
3
+ import { getActiveConfig } from '../factory.js'
4
4
 
5
5
  import { isString } from '@domql/utils'
6
6
  import {
package/src/system/svg.js CHANGED
@@ -9,7 +9,10 @@ const DEF_OPTIONS = {
9
9
  }
10
10
 
11
11
  export const setSVG = (val, key) => {
12
- if (!val) return console.log('setSVG: val is not defined')
12
+ if (!val) {
13
+ if (CONFIG.verbose) console.warn('setSVG: val is not defined', key)
14
+ return
15
+ }
13
16
  const CONFIG = getActiveConfig()
14
17
  if (CONFIG.useSvgSprite) {
15
18
  return convertSvgToSymbol(key, val)
@@ -1,7 +1,7 @@
1
1
  'use strict'
2
2
 
3
3
  import { getColor } from './color'
4
- import { getActiveConfig } from '../factory'
4
+ import { getActiveConfig } from '../factory.js'
5
5
 
6
6
  import {
7
7
  isObject,
@@ -1,6 +1,6 @@
1
1
  'use strict'
2
2
 
3
- import { getActiveConfig } from '../factory'
3
+ import { getActiveConfig } from '../factory.js'
4
4
 
5
5
  import {
6
6
  applySequenceVars,
@@ -1,8 +1,8 @@
1
1
  'use strict'
2
2
 
3
- import { getActiveConfig } from '../factory'
4
3
  import { isString } from '@domql/utils'
5
4
  import { toDashCase } from '@symbo.ls/utils'
5
+ import { getActiveConfig } from '../factory.js'
6
6
 
7
7
  export const numToLetterMap = {
8
8
  '-6': 'U',
@@ -1,6 +1,6 @@
1
1
  'use strict'
2
2
 
3
- import { isString } from "@domql/utils"
3
+ import { isString } from '@domql/utils'
4
4
 
5
5
  export const generateSprite = (icons) => {
6
6
  let sprite =