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 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 the current confirm dialog before submit/reset/custom command default actions. */
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 && dialog?.open) dialog.close();
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. */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "phoenix_duskmoon",
3
- "version": "10.0.8",
3
+ "version": "10.0.10",
4
4
  "type": "module",
5
5
  "exports": {
6
6
  ".": "./priv/static/assets/js/phoenix_duskmoon.js",