@startupjs-ui/dialogs 0.2.0-alpha.0 → 0.2.0-alpha.1

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
@@ -3,6 +3,17 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ # [0.2.0-alpha.1](https://github.com/startupjs/startupjs-ui/compare/v0.2.0-alpha.0...v0.2.0-alpha.1) (2026-04-10)
7
+
8
+
9
+ ### Bug Fixes
10
+
11
+ * **dialogs:** use 'alertdialog' role for confirm(), prompt(), alert() ([ae2989f](https://github.com/startupjs/startupjs-ui/commit/ae2989fd6cf7b19a189330b3a180226727efc3fe))
12
+
13
+
14
+
15
+
16
+
6
17
  # [0.2.0-alpha.0](https://github.com/startupjs/startupjs-ui/compare/v0.1.22...v0.2.0-alpha.0) (2026-03-27)
7
18
 
8
19
 
@@ -5,7 +5,7 @@ import { setUpdateDialogState, updateDialogState } from './helpers'
5
5
 
6
6
  export const _PropsJsonSchema = {/* DialogsProviderProps */}
7
7
 
8
- // eslint-disable-next-line @typescript-eslint/no-empty-interface
8
+ // eslint-disable-next-line @typescript-eslint/no-empty-object-type
9
9
  export interface DialogsProviderProps {}
10
10
 
11
11
  function DialogsProviderRoot (): ReactNode {
package/README.mdx CHANGED
@@ -21,6 +21,8 @@ import './index.mdx.cssx.styl'
21
21
 
22
22
  Dialogs provide three imperative functions for displaying dialog boxes: `alert`, `confirm`, and `prompt`. Each function is async and returns a Promise that resolves when the user dismisses the dialog.
23
23
 
24
+ On web, these dialogs render with `role="alertdialog"` so they can be distinguished from ordinary modals.
25
+
24
26
  ```js
25
27
  import { DialogsProvider, alert, confirm, prompt } from 'startupjs-ui'
26
28
  ```
package/alert.tsx CHANGED
@@ -33,6 +33,7 @@ export default async function alert (options: string | AlertOptions): Promise<vo
33
33
  await new Promise<void>(resolve => {
34
34
  openDialog({
35
35
  title: normalizedTitle,
36
+ role: 'alertdialog',
36
37
  children: message,
37
38
  cancelLabel: 'OK',
38
39
  onCancel: () => { resolve() },
package/confirm.tsx CHANGED
@@ -33,6 +33,7 @@ export default async function confirm (options: string | ConfirmOptions): Promis
33
33
  const result = await new Promise<boolean>(resolve => {
34
34
  openDialog({
35
35
  title: normalizedTitle,
36
+ role: 'alertdialog',
36
37
  children: message,
37
38
  cancelLabel: 'Cancel',
38
39
  confirmLabel: 'OK',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@startupjs-ui/dialogs",
3
- "version": "0.2.0-alpha.0",
3
+ "version": "0.2.0-alpha.1",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -15,16 +15,16 @@
15
15
  "./prompt": "./prompt.tsx"
16
16
  },
17
17
  "dependencies": {
18
- "@startupjs-ui/br": "^0.2.0-alpha.0",
19
- "@startupjs-ui/core": "^0.2.0-alpha.0",
20
- "@startupjs-ui/modal": "^0.2.0-alpha.0",
21
- "@startupjs-ui/span": "^0.2.0-alpha.0",
22
- "@startupjs-ui/text-input": "^0.2.0-alpha.0"
18
+ "@startupjs-ui/br": "^0.2.0-alpha.1",
19
+ "@startupjs-ui/core": "^0.2.0-alpha.1",
20
+ "@startupjs-ui/modal": "^0.2.0-alpha.1",
21
+ "@startupjs-ui/span": "^0.2.0-alpha.1",
22
+ "@startupjs-ui/text-input": "^0.2.0-alpha.1"
23
23
  },
24
24
  "peerDependencies": {
25
25
  "react": "*",
26
26
  "react-native": "*",
27
27
  "startupjs": "*"
28
28
  },
29
- "gitHead": "a428246a18d0e7f77809043c8240253240d11d66"
29
+ "gitHead": "b48004779559b16c96a2a1995dab13b998eafce9"
30
30
  }
package/prompt.tsx CHANGED
@@ -45,6 +45,7 @@ export default async function prompt (options: string | PromptOptions, defaultVa
45
45
 
46
46
  openDialog({
47
47
  title: normalizedTitle,
48
+ role: 'alertdialog',
48
49
  children: pug`
49
50
  Span= message
50
51
  Br(half)