svelte-tweakpane-ui 1.5.8 → 1.5.9

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.
@@ -64,14 +64,8 @@
64
64
  console.error('Unreachable color type mismatch')
65
65
  }
66
66
  }
67
- function addListeners() {
68
- ref.on('change', () => {
69
- ref.refresh()
70
- })
71
- }
72
- $: value, updateInternalValueFromValue()
73
- $: internalValue, updateValueFromInternalValue()
74
- $: ref !== void 0 && addListeners()
67
+ $: (value, updateInternalValueFromValue())
68
+ $: (internalValue, updateValueFromInternalValue())
75
69
  $: options = {
76
70
  color: {
77
71
  type,
@@ -64,7 +64,7 @@
64
64
  view: 'cubicbezier',
65
65
  }
66
66
  $: cubicBezierBlade && addEvent()
67
- $: value, cubicBezierBlade && setValue()
67
+ $: (value, cubicBezierBlade && setValue())
68
68
  </script>
69
69
 
70
70
  <GenericBladeFolding
@@ -35,8 +35,8 @@
35
35
  lineCount: rows,
36
36
  view: 'file-input',
37
37
  }
38
- $: value, updateInternalValueFromValue()
39
- $: internalValue, updateValueFromInternalValue()
38
+ $: (value, updateInternalValueFromValue())
39
+ $: (internalValue, updateValueFromInternalValue())
40
40
  </script>
41
41
 
42
42
  <GenericInput
@@ -41,8 +41,8 @@
41
41
  imageFit: fit,
42
42
  view: 'input-image',
43
43
  }
44
- $: value, updateInternalValueFromValue()
45
- $: internalValue, updateValueFromInternalValue()
44
+ $: (value, updateInternalValueFromValue())
45
+ $: (internalValue, updateValueFromInternalValue())
46
46
  </script>
47
47
 
48
48
  <GenericInput
@@ -43,10 +43,10 @@
43
43
  }
44
44
  }
45
45
  $: ref && wide !== void 0 && updateWide(wide)
46
- $: value, updateInternalValueFromValue()
47
- $: internalValue, updateValueFromInternalValue()
46
+ $: (value, updateInternalValueFromValue())
47
+ $: (internalValue, updateValueFromInternalValue())
48
48
  $: meanValue = (internalValue.min + internalValue.max) / 2
49
- $: meanValue, updateValueFromMean()
49
+ $: (meanValue, updateValueFromMean())
50
50
  </script>
51
51
 
52
52
  <GenericSlider
@@ -74,7 +74,7 @@
74
74
  view: 'list',
75
75
  }
76
76
  $: listBlade && addEvent()
77
- $: value, listBlade && setValue()
77
+ $: (value, listBlade && setValue())
78
78
  </script>
79
79
 
80
80
  <Blade bind:ref={listBlade} options={bladeOptions} {...$$restProps} />
@@ -51,8 +51,8 @@
51
51
  value = { ...internalValue }
52
52
  }
53
53
  }
54
- $: value, updateInternalValueFromValue()
55
- $: internalValue, updateValueFromInternalValue()
54
+ $: (value, updateInternalValueFromValue())
55
+ $: (internalValue, updateValueFromInternalValue())
56
56
  $: options = {
57
57
  x: optionsX,
58
58
  y: optionsY,
@@ -36,8 +36,8 @@
36
36
  value = { ...internalValue }
37
37
  }
38
38
  }
39
- $: value, updateInternalValueFromValue()
40
- $: internalValue, updateValueFromInternalValue()
39
+ $: (value, updateInternalValueFromValue())
40
+ $: (internalValue, updateValueFromInternalValue())
41
41
  $: options = {
42
42
  x: optionsX,
43
43
  y: optionsY,
@@ -35,8 +35,8 @@
35
35
  value = { ...internalValue }
36
36
  }
37
37
  }
38
- $: value, updateInternalValueFromValue()
39
- $: internalValue, updateValueFromInternalValue()
38
+ $: (value, updateInternalValueFromValue())
39
+ $: (internalValue, updateValueFromInternalValue())
40
40
  $: options = {
41
41
  x: optionsX,
42
42
  y: optionsY,
@@ -88,7 +88,7 @@
88
88
  object[key] = safeCopy(object[key])
89
89
  }
90
90
  $: DEV && enforceReadonly(_ref, ref, 'Binding', 'ref', true)
91
- $: options, $parentStore !== void 0 && index !== void 0 && create()
91
+ $: (options, $parentStore !== void 0 && index !== void 0 && create())
92
92
  $: _ref !== void 0 && (_ref.disabled = disabled)
93
93
  $: _ref !== void 0 && (_ref.label = label)
94
94
  $: $parentStore !== void 0 && onBoundValueChange(object)
@@ -19,7 +19,7 @@
19
19
  }
20
20
  $: object = { [key]: getValue() }
21
21
  $: value = object[key]
22
- $: value, setValue()
22
+ $: (value, setValue())
23
23
  </script>
24
24
 
25
25
  <Binding bind:object bind:ref on:change {key} {options} {...$$restProps} />
@@ -306,8 +306,8 @@
306
306
  }
307
307
  }
308
308
  $: maxAvailablePanelWidth = Math.min(maxWidth ?? 600, documentWidth - (x ?? 0))
309
- $: localStoreId, storePositionLocally && addStorageId()
310
- $: localStoreId, !storePositionLocally && removeStorageId()
309
+ $: (localStoreId, storePositionLocally && addStorageId())
310
+ $: (localStoreId, !storePositionLocally && removeStorageId())
311
311
  $: localStoreId !== `${localStorePrefix}${localStoreId}` && updateLocalStoreId(localStoreId)
312
312
  $: storePositionLocally &&
313
313
  localStoreId !== void 0 &&
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "svelte-tweakpane-ui",
3
- "version": "1.5.8",
3
+ "version": "1.5.9",
4
4
  "description": "A Svelte component library wrapping UI elements from Tweakpane, plus some additional functionality for convenience and flexibility.",
5
5
  "keywords": [
6
6
  "components",
@@ -201,33 +201,33 @@
201
201
  "tweakpane": "4.0.5"
202
202
  },
203
203
  "devDependencies": {
204
- "@kitschpatrol/shared-config": "^5.4.2",
204
+ "@kitschpatrol/shared-config": "~5.4.4",
205
205
  "@phenomnomnominal/tsquery": "^6.1.3",
206
- "@playwright/test": "^1.52.0",
206
+ "@playwright/test": "^1.53.1",
207
207
  "@stkb/rewrap": "^0.1.0",
208
208
  "@sveltejs/adapter-static": "^3.0.8",
209
- "@sveltejs/kit": "^2.21.1",
210
- "@sveltejs/package": "^2.3.11",
209
+ "@sveltejs/kit": "^2.22.2",
210
+ "@sveltejs/package": "^2.3.12",
211
211
  "@sveltejs/vite-plugin-svelte": "^3.1.2",
212
212
  "@types/eslint": "^8.56.12",
213
213
  "@types/fs-extra": "^11.0.4",
214
- "@types/node": "^18.19.103",
215
- "bumpp": "^10.1.1",
216
- "eslint": "^9.27.0",
214
+ "@types/node": "^18.19.113",
215
+ "bumpp": "^10.2.0",
216
+ "eslint": "^9.30.0",
217
217
  "fs-extra": "^11.3.0",
218
- "glob": "^11.0.2",
218
+ "glob": "^11.0.3",
219
219
  "postcss-html": "^1.8.0",
220
- "prettier": "^3.5.3",
220
+ "prettier": "^3.6.2",
221
221
  "publint": "^0.3.12",
222
222
  "read-package-up": "^11.0.0",
223
223
  "remark-mdat": "^1.0.4",
224
224
  "svelte": "^4.2.20",
225
- "svelte-check": "^4.2.1",
225
+ "svelte-check": "^4.2.2",
226
226
  "svelte-language-server": "0.17.0",
227
- "svelte2tsx": "^0.7.39",
227
+ "svelte2tsx": "^0.7.40",
228
228
  "ts-morph": "^24.0.0",
229
229
  "tslib": "^2.8.1",
230
- "tsx": "^4.19.4",
230
+ "tsx": "^4.20.3",
231
231
  "typescript": "~5.8.3",
232
232
  "vite": "^5.4.19",
233
233
  "yaml": "^2.8.0"