svelte-tweakpane-ui 1.5.9 → 1.5.11

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.
@@ -148,28 +148,22 @@ export type ImageSlots = typeof __propDef.slots
148
148
  * import { Button, Image, type ImageValue } from '..'
149
149
  *
150
150
  * let source: ImageValue
151
- *
152
- * async function getRandomKittenUrl() {
153
- * const { url } = await fetch('https://loremflickr.com/800/800/kitten', {
154
- * method: 'HEAD',
155
- * redirect: 'follow',
156
- * })
157
- * return url
158
- * }
159
151
  * </script>
160
152
  *
161
153
  * <Image bind:value={source} fit="contain" label="Image" />
162
154
  * <Button
163
- * on:click={async () => {
164
- * source = await getRandomKittenUrl()
155
+ * on:click={() => {
156
+ * const randomIndex = Math.floor(Math.random() * 1000)
157
+ * source = `https://static.photos/textures/640x360/${randomIndex}`
165
158
  * }}
166
159
  * label="Random Placeholder"
167
- * title="Load Kitten"
160
+ * title="Load Placeholder"
168
161
  * />
169
162
  *
170
163
  * <div class="demo">
171
164
  * {#if source === undefined}
172
165
  * <p>Tap “No Image” above to load an image from disk.</p>
166
+ * <p>Or tap "Load Placeholder" to show a random image from the web.</p>
173
167
  * {:else if typeof source === 'string'}
174
168
  * <img alt="" src={source} />
175
169
  * {/if}
@@ -178,6 +172,7 @@ export type ImageSlots = typeof __propDef.slots
178
172
  * <style>
179
173
  * div.demo {
180
174
  * display: flex;
175
+ * flex-direction: column;
181
176
  * align-items: center;
182
177
  * justify-content: center;
183
178
  * aspect-ratio: 1;
@@ -5,16 +5,16 @@ import type { TextareaPluginInputParams } from '@kitschpatrol/tweakpane-plugin-t
5
5
  import { type GenericInputRef } from '../internal/GenericInput.svelte'
6
6
  declare const __propDef: {
7
7
  props: {
8
- /**
9
- * A `string` value to control.
10
- * @bindable
11
- * */
12
- value: string
13
8
  /**
14
9
  * Whether to provide live updates to the bound `value` on every keystroke.
15
10
  * @default `true`
16
- * */
11
+ */
17
12
  live?: boolean
13
+ /**
14
+ * A `string` value to control.
15
+ * @bindable
16
+ */
17
+ value: string
18
18
  /**
19
19
  * Placeholder text to display when the `value` is empty.
20
20
  * @default `'Enter text here'`
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "svelte-tweakpane-ui",
3
- "version": "1.5.9",
3
+ "version": "1.5.11",
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",
@@ -186,7 +186,7 @@
186
186
  "@kitschpatrol/tweakpane-plugin-camerakit": "0.3.1-beta.3",
187
187
  "@kitschpatrol/tweakpane-plugin-essentials": "0.2.2-beta.3",
188
188
  "@kitschpatrol/tweakpane-plugin-file-import": "1.1.2-beta.2",
189
- "@kitschpatrol/tweakpane-plugin-image": "2.0.1-beta.6",
189
+ "@kitschpatrol/tweakpane-plugin-image": "2.0.1-beta.8",
190
190
  "@kitschpatrol/tweakpane-plugin-inputs": "1.0.4-beta.5",
191
191
  "@kitschpatrol/tweakpane-plugin-profiler": "0.4.2-beta.3",
192
192
  "@kitschpatrol/tweakpane-plugin-rotation": "0.2.1-beta.2",
@@ -195,42 +195,41 @@
195
195
  "@tweakpane/core": "2.0.5",
196
196
  "esm-env": "^1.2.2",
197
197
  "fast-copy": "^3.0.2",
198
- "fast-equals": "^5.2.2",
199
- "nanoid": "^5.1.5",
198
+ "fast-equals": "^5.3.2",
199
+ "nanoid": "^5.1.6",
200
200
  "svelte-persisted-store": "0.12.0",
201
201
  "tweakpane": "4.0.5"
202
202
  },
203
203
  "devDependencies": {
204
204
  "@kitschpatrol/shared-config": "~5.4.4",
205
205
  "@phenomnomnominal/tsquery": "^6.1.3",
206
- "@playwright/test": "^1.53.1",
206
+ "@playwright/test": "^1.56.1",
207
207
  "@stkb/rewrap": "^0.1.0",
208
- "@sveltejs/adapter-static": "^3.0.8",
209
- "@sveltejs/kit": "^2.22.2",
210
- "@sveltejs/package": "^2.3.12",
208
+ "@sveltejs/adapter-static": "^3.0.10",
209
+ "@sveltejs/kit": "^2.48.4",
210
+ "@sveltejs/package": "^2.5.4",
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.113",
215
- "bumpp": "^10.2.0",
216
- "eslint": "^9.30.0",
217
- "fs-extra": "^11.3.0",
214
+ "@types/node": "^18.19.130",
215
+ "bumpp": "^10.3.1",
216
+ "eslint": "^9.39.1",
217
+ "fs-extra": "^11.3.2",
218
218
  "glob": "^11.0.3",
219
219
  "postcss-html": "^1.8.0",
220
220
  "prettier": "^3.6.2",
221
- "publint": "^0.3.12",
221
+ "publint": "^0.3.15",
222
222
  "read-package-up": "^11.0.0",
223
- "remark-mdat": "^1.0.4",
224
223
  "svelte": "^4.2.20",
225
- "svelte-check": "^4.2.2",
224
+ "svelte-check": "^4.3.3",
226
225
  "svelte-language-server": "0.17.0",
227
- "svelte2tsx": "^0.7.40",
226
+ "svelte2tsx": "^0.7.45",
228
227
  "ts-morph": "^24.0.0",
229
228
  "tslib": "^2.8.1",
230
- "tsx": "^4.20.3",
229
+ "tsx": "^4.20.6",
231
230
  "typescript": "~5.8.3",
232
- "vite": "^5.4.19",
233
- "yaml": "^2.8.0"
231
+ "vite": "^5.4.21",
232
+ "yaml": "^2.8.1"
234
233
  },
235
234
  "peerDependencies": {
236
235
  "svelte": "^4.0.0 || ^5.0.0"
@@ -268,7 +267,7 @@
268
267
  "kit-examples": "tsx ./scripts/generate-kit-examples.ts",
269
268
  "kit-preview": "vite preview",
270
269
  "lint": "kpi lint && svelte-check --tsconfig ./tsconfig.build.json",
271
- "release": "pnpm run build && bumpp --commit 'Release: %s' && pnpm publish --ignore-scripts --otp $(op read 'op://Personal/Npmjs/one-time password?attribute=otp')",
270
+ "release": "pnpm run build && bumpp --commit 'Release: %s' && NPM_AUTH_TOKEN=$(op read 'op://Personal/npm/token') && pnpm publish --ignore-scripts",
272
271
  "rewrap": "rewrap -i --column 100 `find src \\( -name '*.svelte' -o -name '*.ts' -o -name '*.html' \\) -type f | grep -v src/examples`",
273
272
  "test": "pnpm run --sequential /^test:/",
274
273
  "test:integration": "playwright test",