phoenix_duskmoon 10.0.8 → 10.0.10
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/CHANGELOG.md +20 -0
- package/assets/js/phoenix_duskmoon.js +7 -2
- package/package.json +1 -1
- package/priv/static/assets/css/{app-44f822e828f1f398ee242cbbc47ad5ff.css → app-8305fbeb48a74c180d2d40e5e2a038c9.css} +1 -1
- package/priv/static/assets/css/{app-44f822e828f1f398ee242cbbc47ad5ff.css.gz → app-8305fbeb48a74c180d2d40e5e2a038c9.css.gz} +0 -0
- package/priv/static/assets/css/app.css +1 -1
- package/priv/static/assets/css/app.css.gz +0 -0
- package/priv/static/assets/js/{phoenix_duskmoon-1d3f4951080405842d72f20baa38d4e9.js → phoenix_duskmoon-c22eb67823f82d7b0d27eba5dbd7be12.js} +1 -1
- package/priv/static/assets/js/phoenix_duskmoon-c22eb67823f82d7b0d27eba5dbd7be12.js.gz +0 -0
- package/priv/static/assets/js/phoenix_duskmoon.js +1 -1
- package/priv/static/assets/js/phoenix_duskmoon.js.gz +0 -0
- package/priv/static/cache_manifest.json +2 -2
- package/priv/static/assets/js/phoenix_duskmoon-1d3f4951080405842d72f20baa38d4e9.js.gz +0 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,23 @@
|
|
|
1
|
+
# [10.0.10](https://github.com/duskmoon-dev/phoenix-duskmoon-ui/compare/v10.0.9...v10.0.10) (2026-10-22)
|
|
2
|
+
|
|
3
|
+
### Fixed
|
|
4
|
+
|
|
5
|
+
- Let the native confirmation command close its dialog once, avoiding duplicate-close
|
|
6
|
+
browser warnings while preserving LiveView events, form submit/reset and custom
|
|
7
|
+
command behavior, resolving
|
|
8
|
+
[#208](https://github.com/duskmoon-dev/phoenix-duskmoon-ui/issues/208).
|
|
9
|
+
|
|
10
|
+
# [10.0.9](https://github.com/duskmoon-dev/phoenix-duskmoon-ui/compare/v10.0.8...v10.0.9) (2026-10-21)
|
|
11
|
+
|
|
12
|
+
### Fixed
|
|
13
|
+
|
|
14
|
+
- Render disabled left-menu entries without destinations, navigation attributes
|
|
15
|
+
or event handlers, preserving labels, explanations, icons and collapsed hover
|
|
16
|
+
tooltips. Disabled data entries can omit `to`, resolving
|
|
17
|
+
[#207](https://github.com/duskmoon-dev/phoenix-duskmoon-ui/issues/207).
|
|
18
|
+
- Allow npm metadata verification to wait for delayed publication processing
|
|
19
|
+
while preserving immutable package checks and avoiding repeat publication.
|
|
20
|
+
|
|
1
21
|
# [10.0.8](https://github.com/duskmoon-dev/phoenix-duskmoon-ui/compare/v10.0.7...v10.0.8) (2026-10-20)
|
|
2
22
|
|
|
3
23
|
### Fixed
|
|
@@ -258,13 +258,18 @@ export const FormElementHook = {
|
|
|
258
258
|
},
|
|
259
259
|
};
|
|
260
260
|
|
|
261
|
-
/** Close
|
|
261
|
+
/** Close before other actions, leaving native close commands to the browser. */
|
|
262
262
|
export function handleDialogConfirmClick(event) {
|
|
263
263
|
const path = event.composedPath?.() ?? [];
|
|
264
264
|
const action = path.find((node) => node.matches?.(DIALOG_CONFIRM_SELECTOR));
|
|
265
265
|
const dialog = path.find((node) => node.matches?.(DIALOG_SELECTOR));
|
|
266
266
|
|
|
267
|
-
if (action
|
|
267
|
+
if (!action || !dialog?.open) return;
|
|
268
|
+
|
|
269
|
+
const formAction = action.form && ["submit", "reset"].includes(action.type);
|
|
270
|
+
const nativeClose = action.command === "close" && action.commandForElement === dialog;
|
|
271
|
+
|
|
272
|
+
if (!nativeClose || formAction) dialog.close();
|
|
268
273
|
}
|
|
269
274
|
|
|
270
275
|
/** Install CSP-safe delegated behavior for LiveView-patched confirm dialogs. */
|