@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
|
+
"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.
|
|
190
|
-
"@ui-sdk/svelte": "0.1.0-beta.
|
|
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",
|
|
@@ -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
|
package/skills/markdown/SKILL.md
CHANGED
package/skills/setup/SKILL.md
CHANGED
package/skills/styling/SKILL.md
CHANGED
package/skills/theming/SKILL.md
CHANGED