@runic-artifex/svelte 0.12.0 → 0.12.1
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/README.md +9 -9
- package/package.json +6 -6
package/README.md
CHANGED
|
@@ -174,7 +174,7 @@ Cancel and other callbacks responsive during observation.
|
|
|
174
174
|
## `useLatestOperation()`
|
|
175
175
|
|
|
176
176
|
For rapid read selection, `useLatestOperation()` wraps the framework-neutral
|
|
177
|
-
[latest-operation controller](https://github.com/Runic-Artifex/runic-sdk/tree/v0.12.
|
|
177
|
+
[latest-operation controller](https://github.com/Runic-Artifex/runic-sdk/tree/v0.12.1/packages/web/views#operation-feedback-and-latest-selection)
|
|
178
178
|
for the component's lifetime. It coalesces the latest intent across delayed receipts
|
|
179
179
|
and orders the next admission after terminal observation and any application drain
|
|
180
180
|
barrier:
|
|
@@ -205,7 +205,7 @@ establish that replacement boundary and own the old work's drain. Lost terminal
|
|
|
205
205
|
observation blocks further Starts instead of retrying blindly, with its reason in
|
|
206
206
|
`error`; ordinary Cancel does not clear this block. Component destruction settles
|
|
207
207
|
observation without cancelling accepted work. The
|
|
208
|
-
[operations package consumer](https://github.com/Runic-Artifex/runic-sdk/tree/v0.12.
|
|
208
|
+
[operations package consumer](https://github.com/Runic-Artifex/runic-sdk/tree/v0.12.1/tests/fixtures/application/operations-consumer)
|
|
209
209
|
runs this hook against the packed packages and the desktop transport.
|
|
210
210
|
|
|
211
211
|
## `useBridgeConnection(options?)`
|
|
@@ -215,7 +215,7 @@ from `@runic-artifex/views` (re-exported here since 0.11, with the
|
|
|
215
215
|
`BridgeConnectionState` and `BridgeConnectionOptions` types) and returns `{ state }`, a reactive
|
|
216
216
|
`BridgeConnectionState`: `connecting`, `connected`, `reconnecting` or `lost` (a
|
|
217
217
|
closed set, see
|
|
218
|
-
[Connection state](https://github.com/Runic-Artifex/runic-sdk/tree/v0.12.
|
|
218
|
+
[Connection state](https://github.com/Runic-Artifex/runic-sdk/tree/v0.12.1/packages/web/views#connection-state)):
|
|
219
219
|
|
|
220
220
|
```svelte
|
|
221
221
|
<script lang="ts">
|
|
@@ -237,7 +237,7 @@ server render does not observe, and destroying the owner unsubscribes. An invali
|
|
|
237
237
|
Follows the declared menu bar of a Runic Desktop window that leaves it to the
|
|
238
238
|
page (`DesktopMenuBarPresentation.Page`) while its owner lives. It wraps
|
|
239
239
|
`createMenuBarController` from `@runic-artifex/views` (see
|
|
240
|
-
[In-page menu bar](https://github.com/Runic-Artifex/runic-sdk/tree/v0.12.
|
|
240
|
+
[In-page menu bar](https://github.com/Runic-Artifex/runic-sdk/tree/v0.12.1/packages/web/views#in-page-menu-bar)) and returns `{ state, invoke, handleKeyDown }`, where `state` is a
|
|
241
241
|
reactive `MenuBarState` property. The bar is rendered by the menubar component
|
|
242
242
|
of the application's own UI library. Runic ships no menubar component.
|
|
243
243
|
|
|
@@ -266,7 +266,7 @@ the `shortcuts: "app"` lease.
|
|
|
266
266
|
### With Bits UI
|
|
267
267
|
|
|
268
268
|
Bits UI's `Menubar.Root bind:value`; the
|
|
269
|
-
[Notes example](https://github.com/Runic-Artifex/runic-sdk/tree/v0.12.
|
|
269
|
+
[Notes example](https://github.com/Runic-Artifex/runic-sdk/tree/v0.12.1/examples/notes-view-first#in-page-menu-bar) adds submenus, check and radio
|
|
270
270
|
items and is tested with real keys:
|
|
271
271
|
|
|
272
272
|
```svelte
|
|
@@ -330,7 +330,7 @@ const offline = view.error instanceof BridgeError && view.error.kind === "discon
|
|
|
330
330
|
```
|
|
331
331
|
|
|
332
332
|
`instanceof` holds for errors from every copy of the package on the page.
|
|
333
|
-
[Errors and diagnostics](https://github.com/Runic-Artifex/runic-sdk/tree/v0.12.
|
|
333
|
+
[Errors and diagnostics](https://github.com/Runic-Artifex/runic-sdk/tree/v0.12.1/packages/web/views#errors-and-diagnostics)
|
|
334
334
|
lists the kinds. Any other value, such as an exception that your own connect
|
|
335
335
|
function or command callback throws, arrives unchanged.
|
|
336
336
|
|
|
@@ -369,15 +369,15 @@ application's own dialog.
|
|
|
369
369
|
departure before that is answered by the ViewModel's .NET fallback handler, or
|
|
370
370
|
fails closed without one.
|
|
371
371
|
|
|
372
|
-
The [ReactiveUI leave confirmation](https://github.com/Runic-Artifex/runic-sdk/blob/v0.12.
|
|
372
|
+
The [ReactiveUI leave confirmation](https://github.com/Runic-Artifex/runic-sdk/blob/v0.12.1/packages/dotnet/Runic.Application.Views.ReactiveUI/README.md#leave-confirmation-in-a-web-view)
|
|
373
373
|
has the .NET side and which View answers which departure. In a frontend test,
|
|
374
374
|
the generated mock's `interactions.<name>.request(input)` resolves with the
|
|
375
|
-
registered handler's answer; see the [Testing guide](https://github.com/Runic-Artifex/runic-sdk/tree/v0.12.
|
|
375
|
+
registered handler's answer; see the [Testing guide](https://github.com/Runic-Artifex/runic-sdk/tree/v0.12.1/packages/web/views#testing).
|
|
376
376
|
|
|
377
377
|
## `useCollectionViewport(options)`
|
|
378
378
|
|
|
379
379
|
Follows a fixed-row-height scroll container and returns `{ viewport, attach }`.
|
|
380
|
-
`viewport` is the reactive [`collectionViewport`](https://github.com/Runic-Artifex/runic-sdk/tree/v0.12.
|
|
380
|
+
`viewport` is the reactive [`collectionViewport`](https://github.com/Runic-Artifex/runic-sdk/tree/v0.12.1/packages/web/views#collectionviewportoptions)
|
|
381
381
|
range; `attach` is an attachment for the container. Call it during component
|
|
382
382
|
initialization and send the range to the ViewModel from an effect:
|
|
383
383
|
|
package/package.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@runic-artifex/svelte",
|
|
3
|
-
"version": "0.12.
|
|
3
|
+
"version": "0.12.1",
|
|
4
4
|
"description": "Svelte 5 Application Views helpers for Runic",
|
|
5
|
-
"homepage": "https://github.com/Runic-Artifex/runic-sdk/tree/v0.12.
|
|
5
|
+
"homepage": "https://github.com/Runic-Artifex/runic-sdk/tree/v0.12.1/packages/web/svelte#readme",
|
|
6
6
|
"bugs": {
|
|
7
7
|
"url": "https://github.com/Runic-Artifex/runic-sdk/issues"
|
|
8
8
|
},
|
|
@@ -40,7 +40,7 @@
|
|
|
40
40
|
},
|
|
41
41
|
"peerDependencies": {
|
|
42
42
|
"svelte": ">=5.57.1 <6",
|
|
43
|
-
"@runic-artifex/views": "0.12.
|
|
43
|
+
"@runic-artifex/views": "0.12.1"
|
|
44
44
|
},
|
|
45
45
|
"publishConfig": {
|
|
46
46
|
"access": "public",
|
|
@@ -51,9 +51,9 @@
|
|
|
51
51
|
"url": "git+https://github.com/Runic-Artifex/runic-sdk.git",
|
|
52
52
|
"directory": "packages/web/svelte"
|
|
53
53
|
},
|
|
54
|
-
"packageManager": "bun@1.4.
|
|
54
|
+
"packageManager": "bun@1.4.4",
|
|
55
55
|
"devDependencies": {
|
|
56
|
-
"@runic-artifex/views": "0.12.
|
|
56
|
+
"@runic-artifex/views": "0.12.1",
|
|
57
57
|
"@sveltejs/adapter-static": "4.0.0",
|
|
58
58
|
"@sveltejs/kit": "3.0.0",
|
|
59
59
|
"@sveltejs/package": "3.0.0",
|
|
@@ -66,5 +66,5 @@
|
|
|
66
66
|
"vitest": "5.0.3",
|
|
67
67
|
"vite": "8.3.4"
|
|
68
68
|
},
|
|
69
|
-
"gitHead": "
|
|
69
|
+
"gitHead": "124a532e5861cff03e77d2ef0c5d4f081ee99a47"
|
|
70
70
|
}
|