@iyulab/components 1.35.6 → 1.35.7
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,5 +1,17 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [1.35.7] - 2026-09-03
|
|
4
|
+
|
|
5
|
+
### Fixed
|
|
6
|
+
|
|
7
|
+
- **`DialogOptions`/`PromptDialogOptions` skill-doc reference had drifted substantially.**
|
|
8
|
+
`DialogOptions` listed a `closable` field that has never existed and was missing five real
|
|
9
|
+
fields (`offset`/`modal`/`buttonClose`/`escapeClose`/`backdropClose`). `PromptDialogOptions`
|
|
10
|
+
claimed `extends DialogOptions` (source: `extends ConfirmDialogOptions`) and a `default`
|
|
11
|
+
field that doesn't exist — the real field is `defaultValue` — while `type` was missing
|
|
12
|
+
entirely. Fixed the reference and the usage example. Found by a new internal tool
|
|
13
|
+
(`type-doc-check.js`) that diffs hand-copied TS interface doc snippets against source.
|
|
14
|
+
|
|
3
15
|
## [1.35.6] - 2026-09-03
|
|
4
16
|
|
|
5
17
|
### Fixed
|
package/package.json
CHANGED
|
@@ -17,7 +17,7 @@ const confirmed = await Dialog.confirm('Delete this item?');
|
|
|
17
17
|
if (confirmed) deleteItem();
|
|
18
18
|
|
|
19
19
|
// Prompt — returns entered string or null if cancelled
|
|
20
|
-
const name = await Dialog.prompt('Enter your name:', {
|
|
20
|
+
const name = await Dialog.prompt('Enter your name:', { defaultValue: 'Alice' });
|
|
21
21
|
|
|
22
22
|
// Custom dialog with action buttons
|
|
23
23
|
const result = await Dialog.show({
|
|
@@ -44,26 +44,29 @@ const result = await Dialog.show({
|
|
|
44
44
|
|
|
45
45
|
```ts
|
|
46
46
|
interface DialogOptions {
|
|
47
|
-
target?: HTMLElement;
|
|
47
|
+
target?: HTMLElement; // shows contained instead of as an overlay when set
|
|
48
48
|
title?: string;
|
|
49
|
-
closable?: boolean;
|
|
50
49
|
placement?: DialogPlacement;
|
|
50
|
+
offset?: number; // gap from the edge, px
|
|
51
|
+
modal?: boolean; // default: true
|
|
52
|
+
buttonClose?: boolean; // show an explicit close button — default: false
|
|
53
|
+
escapeClose?: boolean; // close on Esc — default: true
|
|
54
|
+
backdropClose?: boolean; // close on backdrop click — default: true
|
|
51
55
|
}
|
|
52
56
|
|
|
53
57
|
interface ConfirmDialogOptions extends DialogOptions {
|
|
54
|
-
confirmLabel?: string;
|
|
55
|
-
cancelLabel?: string;
|
|
58
|
+
confirmLabel?: string; // default: 'Confirm'
|
|
59
|
+
cancelLabel?: string; // default: 'Cancel'
|
|
56
60
|
}
|
|
57
61
|
|
|
58
|
-
interface PromptDialogOptions extends
|
|
59
|
-
|
|
62
|
+
interface PromptDialogOptions extends ConfirmDialogOptions {
|
|
63
|
+
type?: InputType; // input field type — default: 'text'
|
|
64
|
+
defaultValue?: string;
|
|
60
65
|
placeholder?: string;
|
|
61
|
-
confirmLabel?: string;
|
|
62
|
-
cancelLabel?: string;
|
|
63
66
|
}
|
|
64
67
|
|
|
65
68
|
interface CustomDialogOptions extends DialogOptions {
|
|
66
|
-
content
|
|
69
|
+
content: string | TemplateResult;
|
|
67
70
|
actions?: DialogAction[];
|
|
68
71
|
}
|
|
69
72
|
|