svelte-tweakpane-ui 1.3.3 → 1.5.0

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": "svelte-tweakpane-ui",
3
- "version": "1.3.3",
3
+ "version": "1.5.0",
4
4
  "type": "module",
5
5
  "description": "A Svelte component library wrapping UI elements from Tweakpane, plus some additional functionality for convenience and flexibility.",
6
6
  "repository": {
@@ -19,7 +19,7 @@
19
19
  },
20
20
  "license": "MIT",
21
21
  "engines": {
22
- "node": ">=18.0.0",
22
+ "node": ">=18.0.0 <23.0.0",
23
23
  "pnpm": ">=9.0.0"
24
24
  },
25
25
  "exports": {
@@ -47,6 +47,10 @@
47
47
  "types": "./dist/control/CubicBezier.svelte.d.ts",
48
48
  "svelte": "./dist/control/CubicBezier.svelte"
49
49
  },
50
+ "./File.svelte": {
51
+ "types": "./dist/control/File.svelte.d.ts",
52
+ "svelte": "./dist/control/File.svelte"
53
+ },
50
54
  "./Image.svelte": {
51
55
  "types": "./dist/control/Image.svelte.d.ts",
52
56
  "svelte": "./dist/control/Image.svelte"
@@ -83,6 +87,10 @@
83
87
  "types": "./dist/control/Slider.svelte.d.ts",
84
88
  "svelte": "./dist/control/Slider.svelte"
85
89
  },
90
+ "./Stepper.svelte": {
91
+ "types": "./dist/control/Stepper.svelte.d.ts",
92
+ "svelte": "./dist/control/Stepper.svelte"
93
+ },
86
94
  "./Text.svelte": {
87
95
  "types": "./dist/control/Text.svelte.d.ts",
88
96
  "svelte": "./dist/control/Text.svelte"
@@ -182,12 +190,14 @@
182
190
  "npm-package"
183
191
  ],
184
192
  "peerDependencies": {
185
- "svelte": "^4.0.0"
193
+ "svelte": "^4.0.0 || ^5.0.0"
186
194
  },
187
195
  "dependencies": {
188
196
  "@kitschpatrol/tweakpane-plugin-camerakit": "0.3.1-beta.2",
189
197
  "@kitschpatrol/tweakpane-plugin-essentials": "0.2.2-beta.2",
198
+ "@kitschpatrol/tweakpane-plugin-file-import": "1.1.2-beta.1",
190
199
  "@kitschpatrol/tweakpane-plugin-image": "2.0.1-beta.4",
200
+ "@kitschpatrol/tweakpane-plugin-inputs": "1.0.4-beta.3",
191
201
  "@kitschpatrol/tweakpane-plugin-profiler": "0.4.2-beta.2",
192
202
  "@kitschpatrol/tweakpane-plugin-rotation": "0.2.1-beta.1",
193
203
  "@kitschpatrol/tweakpane-plugin-textarea": "2.0.1-beta.1",
@@ -196,48 +206,47 @@
196
206
  "esm-env": "1.0.0",
197
207
  "fast-copy": "3.0.2",
198
208
  "fast-equals": "5.0.1",
199
- "nanoid": "5.0.6",
209
+ "nanoid": "5.0.7",
200
210
  "svelte-persisted-store": "0.11.0",
201
211
  "tweakpane": "4.0.4"
202
212
  },
203
213
  "devDependencies": {
204
- "@kitschpatrol/shared-config": "^4.7.10",
205
- "@phenomnomnominal/tsquery": "^6.1.3",
206
- "@playwright/test": "^1.47.1",
207
- "@stkb/rewrap": "^0.1.0",
208
- "@sveltejs/adapter-static": "^3.0.5",
209
- "@sveltejs/kit": "^2.5.28",
210
- "@sveltejs/package": "^2.3.5",
211
- "@sveltejs/vite-plugin-svelte": "^3.1.2",
212
- "@types/eslint": "^8.56.12",
213
- "@types/fs-extra": "^11.0.4",
214
- "@types/node": "18.0.0",
215
- "bumpp": "^9.5.2",
216
- "eslint": "^8.57.1",
217
- "fs-extra": "^11.2.0",
218
- "glob": "^11.0.0",
219
- "npm-run-all": "^4.1.5",
220
- "postcss-html": "^1.7.0",
221
- "publint": "^0.2.11",
222
- "read-package-up": "^11.0.0",
223
- "remark-mdat": "^0.7.3",
224
- "svelte": "^4.2.19",
225
- "svelte-check": "^4.0.2",
226
- "svelte-language-server": "^0.17.0",
227
- "svelte2tsx": "^0.7.19",
228
- "ts-morph": "^23.0.0",
229
- "tslib": "^2.7.0",
230
- "tsx": "^4.19.1",
231
- "typescript": "^5.6.2",
232
- "vite": "^5.4.6",
233
- "yaml": "^2.5.1"
214
+ "@kitschpatrol/shared-config": "4.7.11",
215
+ "@phenomnomnominal/tsquery": "6.1.3",
216
+ "@playwright/test": "1.48.1",
217
+ "@stkb/rewrap": "0.1.0",
218
+ "@sveltejs/adapter-static": "3.0.5",
219
+ "@sveltejs/kit": "2.7.2",
220
+ "@sveltejs/package": "2.3.5",
221
+ "@sveltejs/vite-plugin-svelte": "3.1.2",
222
+ "@types/eslint": "8.56.12",
223
+ "@types/fs-extra": "11.0.4",
224
+ "@types/node": "18.19.57",
225
+ "bumpp": "9.7.1",
226
+ "eslint": "8.57.1",
227
+ "fs-extra": "11.2.0",
228
+ "glob": "11.0.0",
229
+ "postcss-html": "1.7.0",
230
+ "publint": "0.2.11",
231
+ "read-package-up": "11.0.0",
232
+ "remark-mdat": "0.7.3",
233
+ "svelte": "4.2.19",
234
+ "svelte-check": "4.0.5",
235
+ "svelte-language-server": "0.17.0",
236
+ "svelte2tsx": "0.7.22",
237
+ "ts-morph": "24.0.0",
238
+ "tslib": "2.8.0",
239
+ "tsx": "4.19.1",
240
+ "typescript": "5.6.3",
241
+ "vite": "5.4.9",
242
+ "yaml": "2.6.0"
234
243
  },
235
244
  "publishConfig": {
236
245
  "access": "public"
237
246
  },
238
247
  "scripts": {
239
- "build": "run-s --print-label build:*",
240
- "build:01-sync": "pnpm run check",
248
+ "build": "pnpm run --sequential /^build:/",
249
+ "build:01-sync": "pnpm run check && pnpm run svelte-5-check",
241
250
  "build:02-exports": "tsx ./scripts/generate-exports.ts",
242
251
  "build:03-add-source-links": "tsx ./scripts/add-source-links.ts",
243
252
  "build:04-format": "pnpm run format && prettier-config --fix ./readme.md",
@@ -250,6 +259,8 @@
250
259
  "build:11-examples-to-docs": "tsx ./scripts/generate-example-components.ts",
251
260
  "build:12-acknowledgments-data": "mkdir -p ./docs/src/content/acknowledgments && pnpm licenses list --json > ./docs/src/content/acknowledgments/acknowledgments-lib.json",
252
261
  "build:13-build-docs": "pnpm run docs-build",
262
+ "build:14-build-kit": "pnpm run kit-build",
263
+ "build:15-build-svelte-5": "pnpm run svelte-5-build",
253
264
  "check": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json",
254
265
  "check-watch": "svelte-kit sync && svelte-check --ignore ./scratch --tsconfig ./tsconfig.json --watch",
255
266
  "clean": "rm pnpm-lock.yaml ; git clean -fdX",
@@ -257,7 +268,7 @@
257
268
  "docs-dev": "pnpm -C ./docs run dev",
258
269
  "docs-preview": "pnpm -C ./docs run preview",
259
270
  "fix": "shared-config --fix",
260
- "format": "run-s --print-label format:*",
271
+ "format": "pnpm run --sequential /^format:/",
261
272
  "format:1-shared": "shared-config --fix",
262
273
  "format:2-embedded": "tsx ./scripts/format-embedded-code.ts",
263
274
  "kit-build": "pnpm run kit-examples && vite build",
@@ -265,12 +276,16 @@
265
276
  "kit-examples": "tsx ./scripts/generate-kit-examples.ts",
266
277
  "kit-preview": "vite preview",
267
278
  "lint": "shared-config --check",
268
- "release": "run-s --print-label release:*",
279
+ "release": "pnpm run --sequential /^release:/",
269
280
  "release:1-build": "pnpm run build",
270
281
  "release:2-version": "bumpp --commit 'Release: %s'",
271
282
  "release:3-publish": "pnpm publish --ignore-scripts --otp $(op read 'op://Personal/Npmjs/one-time password?attribute=otp')",
272
283
  "rewrap": "rewrap -i --column 100 `find src \\( -name '*.svelte' -o -name '*.ts' -o -name '*.html' \\) -type f | grep -v src/examples`",
273
- "test": "run-s --print-label test:*",
284
+ "svelte-5-build": "pnpm -C ./svelte-5 run build",
285
+ "svelte-5-check": "pnpm -C ./svelte-5 run check",
286
+ "svelte-5-dev": "pnpm -C ./svelte-5 run dev",
287
+ "svelte-5-preview": "pnpm -C ./svelte-5 run preview",
288
+ "test": "pnpm run --sequential /^test:/",
274
289
  "test:integration": "playwright test",
275
290
  "type-check": "tsc --noEmit"
276
291
  }
package/readme.md CHANGED
@@ -34,12 +34,14 @@
34
34
 
35
35
  ## Overview
36
36
 
37
- 🎛️ **_Svelte Tweakpane UI_** wraps user-interface elements from the excellent [Tweakpane](https://tweakpane.github.io/docs/) library in a collection of <!-- component-count -->31<!-- /component-count --> idiomatic, reactive, type-safe, carefully-crafted, and obsessively-documented [Svelte](https://svelte.dev) components.
37
+ 🎛️ **_Svelte Tweakpane UI_** wraps user-interface elements from the excellent [Tweakpane](https://tweakpane.github.io/docs/) library in a collection of <!-- component-count -->33<!-- /component-count --> idiomatic, reactive, type-safe, carefully-crafted, and obsessively-documented [Svelte](https://svelte.dev) components.
38
38
 
39
39
  The library makes it easy to quickly and declaratively add knobs and dials to your projects using components that feel like they were made for Svelte. It also augments Tweakpane with a few [extra features](https://kitschpatrol.com/svelte-tweakpane-ui/docs/features) for your convenience and enjoyment.
40
40
 
41
41
  [The components](https://kitschpatrol.com/svelte-tweakpane-ui/docs#components) should be useful for integrating controls and value monitoring in parametrically driven artworks, data visualizations, creative tools, simulations, etc.
42
42
 
43
+ The library is compatible with both Svelte 4 and Svelte 5.
44
+
43
45
  ## Demo
44
46
 
45
47
  ![Svelte Tweakpane UI quick demo](./docs/public/quick-demo.gif)
@@ -100,6 +102,8 @@ npm install svelte-tweakpane-ui
100
102
  A color picker.
101
103
  - **[CubicBezier](https://kitschpatrol.com/svelte-tweakpane-ui/docs/components/cubicbezier)**\
102
104
  A control for editing a bezier curve. Ideal for tweaking animation easing values.
105
+ - **[File](https://kitschpatrol.com/svelte-tweakpane-ui/docs/components/file)**\
106
+ A file input control.
103
107
  - **[Image](https://kitschpatrol.com/svelte-tweakpane-ui/docs/components/image)**\
104
108
  An image input control.
105
109
  - **[IntervalSlider](https://kitschpatrol.com/svelte-tweakpane-ui/docs/components/intervalslider)**\
@@ -118,6 +122,8 @@ npm install svelte-tweakpane-ui
118
122
  Integrates the [quaternion rotation](https://github.com/0b5vr/tweakpane-plugin-rotation/blob/dev/src/RotationInputPluginQuaternion.ts) control from [0b5vr](https://0b5vr.com)'s [tweakpane-plugin-rotation](https://github.com/0b5vr/tweakpane-plugin-rotation).
119
123
  - **[Slider](https://kitschpatrol.com/svelte-tweakpane-ui/docs/components/slider)**\
120
124
  A slider component providing fine-grained control over numeric values.
125
+ - **[Stepper](https://kitschpatrol.com/svelte-tweakpane-ui/docs/components/stepper)**\
126
+ A control for simple incremental value changes.
121
127
  - **[Text](https://kitschpatrol.com/svelte-tweakpane-ui/docs/components/text)**\
122
128
  A text field, in the spirit of the HTML `<input type="text">` element.
123
129
  - **[Textarea](https://kitschpatrol.com/svelte-tweakpane-ui/docs/components/textarea)**\