@diegopluna/narvi 0.5.3 → 0.5.4

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": "@diegopluna/narvi",
3
- "version": "0.5.3",
3
+ "version": "0.5.4",
4
4
  "packageManager": "pnpm@12.18.0",
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -186,8 +186,8 @@
186
186
  "@pierre/highlights": "0.5.0",
187
187
  "@stylexjs/stylex": "0.19.1",
188
188
  "@stylexjs/unplugin": "0.19.1",
189
- "@ui-sdk/core": "0.1.0-beta.5",
190
- "@ui-sdk/svelte": "0.1.0-beta.5",
189
+ "@ui-sdk/core": "0.1.0-beta.7",
190
+ "@ui-sdk/svelte": "0.1.0-beta.7",
191
191
  "decode-named-character-reference": "1.3.0",
192
192
  "dompurify": "3.4.17",
193
193
  "esm-env": "^1.2.2",
@@ -12,7 +12,7 @@ metadata:
12
12
  Grid, and Narvi's conventions for colour, labels and copy.
13
13
  type: core
14
14
  library: '@diegopluna/narvi'
15
- library_version: '0.5.3'
15
+ library_version: '0.5.4'
16
16
  requires:
17
17
  - setup
18
18
  sources:
@@ -176,6 +176,12 @@ browser; a `container` on a Root or a Content still wins, and the popups inside
176
176
  {@render children()}
177
177
  ```
178
178
 
179
+ With a container outside the element the app is mounted on, as `document.body` is here, an Escape
180
+ handler inside a popup that takes the key for itself (clearing a field, leaving an edit) calls
181
+ `event.preventDefault()`. Stopping propagation alone lets the popup close: ui-sdk listens for
182
+ Escape on `document` and skips only a key whose default is prevented, and Svelte runs a handler
183
+ outside the mount target from `document` too, beside ui-sdk's listener.
184
+
179
185
  To drive `open` from the app, bind it, or pass it with an `onOpenChange` that keeps your state:
180
186
  `open={shown && !dragging} onOpenChange={(next) => (shown = next)}` follows `dragging` even after
181
187
  the trigger opened it. An `open` passed with neither is only where it starts, as any Svelte prop
@@ -12,7 +12,7 @@ metadata:
12
12
  patching the DOM, and decide which links and images text from a model may load.
13
13
  type: core
14
14
  library: '@diegopluna/narvi'
15
- library_version: '0.5.3'
15
+ library_version: '0.5.4'
16
16
  requires:
17
17
  - setup
18
18
  sources:
@@ -11,7 +11,7 @@ metadata:
11
11
  4 when the app uses it.
12
12
  type: lifecycle
13
13
  library: '@diegopluna/narvi'
14
- library_version: '0.5.3'
14
+ library_version: '0.5.4'
15
15
  sources:
16
16
  - src/lib/vite.ts
17
17
  - src/lib/base.css
@@ -12,7 +12,7 @@ metadata:
12
12
  hover, motion and forced-colour preferences.
13
13
  type: core
14
14
  library: '@diegopluna/narvi'
15
- library_version: '0.5.3'
15
+ library_version: '0.5.4'
16
16
  requires:
17
17
  - setup
18
18
  sources:
@@ -12,7 +12,7 @@ metadata:
12
12
  menus and dialogs, and resolve token colours for drawing code that cannot read CSS variables.
13
13
  type: core
14
14
  library: '@diegopluna/narvi'
15
- library_version: '0.5.3'
15
+ library_version: '0.5.4'
16
16
  requires:
17
17
  - setup
18
18
  sources: