@dataloop-ai/components 0.20.76 → 0.20.78

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": "@dataloop-ai/components",
3
- "version": "0.20.76",
3
+ "version": "0.20.78",
4
4
  "exports": {
5
5
  ".": "./index.ts",
6
6
  "./models": "./models.ts",
@@ -23,7 +23,7 @@
23
23
  "check-only": "if grep -E -H -r --exclude-dir=.git --exclude-dir=node_modules --exclude=*.json --exclude=*.yml '^(describe|it).only' .; then echo 'Found only in test files' && exit 1; fi"
24
24
  },
25
25
  "dependencies": {
26
- "@dataloop-ai/icons": "^3.0.170",
26
+ "@dataloop-ai/icons": "^3.0.176",
27
27
  "@types/flat": "^5.0.2",
28
28
  "@types/lodash": "^4.14.184",
29
29
  "@types/sortablejs": "^1.15.7",
@@ -314,7 +314,6 @@ export default defineComponent({
314
314
  return between(val, this.minRation, this.maxRatio)
315
315
  },
316
316
  onActivate(evt: MouseEvent) {
317
- console.log('hiihihihihihih')
318
317
  this.updatePosition(evt, this.getDragging(evt))
319
318
  this.updateValue()
320
319
 
@@ -858,7 +858,7 @@ const getValueSuggestions = (
858
858
  typeof type !== 'object'
859
859
  ) {
860
860
  suggestion.push(
861
- typeof type === 'string' ? enquoteString(type) : type
861
+ type !== 'null' && typeof type === 'string' ? enquoteString(type) : type
862
862
  )
863
863
  }
864
864
  }
@@ -43,7 +43,6 @@ export const registerToWindow = (params: {
43
43
  let { key, ref } = params
44
44
  key = !key && ref._isVue ? `${ref.$vnode.tag}-${ref._uid}` : key
45
45
  const dispose = () => {
46
- // console.log(`DISPOSING ${key}`)
47
46
  // @ts-ignore
48
47
  window[key] = undefined
49
48
  // @ts-ignore
@@ -51,7 +50,6 @@ export const registerToWindow = (params: {
51
50
  }
52
51
 
53
52
  const destroyRef = () => {
54
- // console.log(`DESTROYING ${key}`)
55
53
  const keys = Object.keys(ref.$data)
56
54
  keys.forEach((k) => {
57
55
  if (k === 'unsubscribers' && Array.isArray(ref.$data[k])) {
@@ -23,6 +23,9 @@ const GeneratePureValue = (value: any) => {
23
23
  if (value === 'false') {
24
24
  return false
25
25
  }
26
+ if (value === 'null') {
27
+ return null
28
+ }
26
29
 
27
30
  try {
28
31
  const num = Number(value)