@t007/dialog 0.0.33 → 0.0.34

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.
Files changed (2) hide show
  1. package/dist/index.d.ts +4 -4
  2. package/package.json +1 -1
package/dist/index.d.ts CHANGED
@@ -11,7 +11,7 @@ interface DialogOptions {
11
11
  /** Browser behavior for handling dialog closure. @default "any". */
12
12
  closedBy?: HTMLDialogElement["closedBy"];
13
13
  /** Render dialog inside a specific root element instead of document body. */
14
- rootElement?: HTMLElement;
14
+ rootElement?: HTMLElement | null;
15
15
  /** Whether to restrict interactions to `rootElement` if provided. @default `true`. */
16
16
  scoped?: boolean;
17
17
  }
@@ -59,11 +59,11 @@ interface Dialog {
59
59
  declare global {
60
60
  interface T007Namespace {
61
61
  /** Browser alert helper. */
62
- alert: typeof Alert;
62
+ alert: typeof alert;
63
63
  /** Browser confirm helper. */
64
- confirm: typeof Confirm;
64
+ confirm: typeof confirm;
65
65
  /** Browser prompt helper. */
66
- prompt: typeof Prompt;
66
+ prompt: typeof prompt;
67
67
  /** Dialog management object. */
68
68
  dialog: Dialog;
69
69
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@t007/dialog",
3
- "version": "0.0.33",
3
+ "version": "0.0.34",
4
4
  "description": "A lightweight, pure JS dialog system.",
5
5
  "author": "Oketade Oluwatobiloba <tobioketade007@gmail.com>",
6
6
  "license": "MIT",