@sveltia/ui 0.25.7 → 0.25.9
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/dist/components/alert/alert.svelte +7 -3
- package/dist/components/alert/alert.svelte.d.ts +11 -10
- package/dist/components/alert/infobar.svelte +9 -5
- package/dist/components/alert/infobar.svelte.d.ts +15 -14
- package/dist/components/button/button-group.svelte +6 -2
- package/dist/components/button/button-group.svelte.d.ts +7 -6
- package/dist/components/button/button.svelte +5 -2
- package/dist/components/button/button.svelte.d.ts +2 -1
- package/dist/components/button/select-button-group.svelte +12 -8
- package/dist/components/button/select-button-group.svelte.d.ts +19 -18
- package/dist/components/button/select-button.svelte +6 -3
- package/dist/components/button/select-button.svelte.d.ts +4 -3
- package/dist/components/button/split-button.svelte +10 -7
- package/dist/components/button/split-button.svelte.d.ts +18 -17
- package/dist/components/calendar/calendar.svelte +1 -1
- package/dist/components/calendar/calendar.svelte.d.ts +2 -2
- package/dist/components/checkbox/checkbox-group.svelte +9 -5
- package/dist/components/checkbox/checkbox-group.svelte.d.ts +13 -12
- package/dist/components/checkbox/checkbox.svelte +13 -9
- package/dist/components/checkbox/checkbox.svelte.d.ts +19 -17
- package/dist/components/dialog/alert-dialog.svelte +5 -2
- package/dist/components/dialog/alert-dialog.svelte.d.ts +3 -1
- package/dist/components/dialog/confirmation-dialog.svelte +5 -2
- package/dist/components/dialog/confirmation-dialog.svelte.d.ts +3 -1
- package/dist/components/dialog/dialog.svelte +5 -2
- package/dist/components/dialog/dialog.svelte.d.ts +3 -1
- package/dist/components/dialog/prompt-dialog.svelte +16 -7
- package/dist/components/dialog/prompt-dialog.svelte.d.ts +17 -13
- package/dist/components/disclosure/disclosure.svelte +12 -8
- package/dist/components/disclosure/disclosure.svelte.d.ts +21 -20
- package/dist/components/divider/divider.svelte +3 -3
- package/dist/components/divider/divider.svelte.d.ts +6 -6
- package/dist/components/divider/spacer.svelte +2 -2
- package/dist/components/divider/spacer.svelte.d.ts +4 -4
- package/dist/components/drawer/drawer.svelte +18 -13
- package/dist/components/drawer/drawer.svelte.d.ts +39 -37
- package/dist/components/grid/grid-body.svelte +7 -3
- package/dist/components/grid/grid-body.svelte.d.ts +9 -8
- package/dist/components/grid/grid-cell.svelte +6 -2
- package/dist/components/grid/grid-cell.svelte.d.ts +7 -6
- package/dist/components/grid/grid-col-header.svelte +6 -2
- package/dist/components/grid/grid-col-header.svelte.d.ts +7 -6
- package/dist/components/grid/grid-foot.svelte +6 -2
- package/dist/components/grid/grid-foot.svelte.d.ts +7 -6
- package/dist/components/grid/grid-head.svelte +6 -2
- package/dist/components/grid/grid-head.svelte.d.ts +7 -6
- package/dist/components/grid/grid-row-header.svelte +6 -2
- package/dist/components/grid/grid-row-header.svelte.d.ts +7 -6
- package/dist/components/grid/grid-row.svelte +9 -5
- package/dist/components/grid/grid-row.svelte.d.ts +13 -12
- package/dist/components/grid/grid.svelte +10 -6
- package/dist/components/grid/grid.svelte.d.ts +15 -14
- package/dist/components/icon/icon.svelte +2 -2
- package/dist/components/icon/icon.svelte.d.ts +4 -4
- package/dist/components/listbox/listbox.svelte +18 -13
- package/dist/components/listbox/listbox.svelte.d.ts +27 -26
- package/dist/components/listbox/option-group.svelte +9 -5
- package/dist/components/listbox/option-group.svelte.d.ts +13 -12
- package/dist/components/listbox/option.svelte +12 -8
- package/dist/components/listbox/option.svelte.d.ts +17 -15
- package/dist/components/menu/menu-button.svelte +7 -4
- package/dist/components/menu/menu-button.svelte.d.ts +6 -5
- package/dist/components/menu/menu-item-checkbox.svelte +5 -2
- package/dist/components/menu/menu-item-checkbox.svelte.d.ts +3 -1
- package/dist/components/menu/menu-item-group.svelte +9 -5
- package/dist/components/menu/menu-item-group.svelte.d.ts +8 -8
- package/dist/components/menu/menu-item-radio.svelte +5 -2
- package/dist/components/menu/menu-item-radio.svelte.d.ts +3 -1
- package/dist/components/menu/menu-item.svelte +5 -2
- package/dist/components/menu/menu-item.svelte.d.ts +3 -1
- package/dist/components/menu/menu.svelte +9 -5
- package/dist/components/menu/menu.svelte.d.ts +13 -12
- package/dist/components/progressbar/progressbar.svelte +5 -5
- package/dist/components/progressbar/progressbar.svelte.d.ts +10 -10
- package/dist/components/radio/radio-group.svelte +13 -9
- package/dist/components/radio/radio-group.svelte.d.ts +21 -20
- package/dist/components/radio/radio.svelte +15 -11
- package/dist/components/radio/radio.svelte.d.ts +27 -26
- package/dist/components/select/combobox.svelte +6 -3
- package/dist/components/select/combobox.svelte.d.ts +3 -1
- package/dist/components/select/select-tags.svelte +16 -13
- package/dist/components/select/select-tags.svelte.d.ts +27 -28
- package/dist/components/select/select.svelte +5 -1
- package/dist/components/select/select.svelte.d.ts +2 -1
- package/dist/components/slider/slider.svelte +27 -25
- package/dist/components/slider/slider.svelte.d.ts +35 -34
- package/dist/components/switch/switch.svelte +13 -9
- package/dist/components/switch/switch.svelte.d.ts +21 -20
- package/dist/components/table/table-body.svelte +7 -3
- package/dist/components/table/table-body.svelte.d.ts +9 -8
- package/dist/components/table/table-cell.svelte +6 -2
- package/dist/components/table/table-cell.svelte.d.ts +7 -6
- package/dist/components/table/table-col-header.svelte +6 -2
- package/dist/components/table/table-col-header.svelte.d.ts +7 -6
- package/dist/components/table/table-foot.svelte +6 -2
- package/dist/components/table/table-foot.svelte.d.ts +7 -6
- package/dist/components/table/table-head.svelte +6 -2
- package/dist/components/table/table-head.svelte.d.ts +7 -6
- package/dist/components/table/table-row-header.svelte +6 -2
- package/dist/components/table/table-row-header.svelte.d.ts +7 -6
- package/dist/components/table/table-row.svelte +6 -2
- package/dist/components/table/table-row.svelte.d.ts +7 -6
- package/dist/components/table/table.svelte +6 -2
- package/dist/components/table/table.svelte.d.ts +7 -6
- package/dist/components/tabs/tab-box.svelte +7 -3
- package/dist/components/tabs/tab-box.svelte.d.ts +9 -8
- package/dist/components/tabs/tab-list.svelte +12 -8
- package/dist/components/tabs/tab-list.svelte.d.ts +19 -18
- package/dist/components/tabs/tab-panel.svelte +6 -2
- package/dist/components/tabs/tab-panel.svelte.d.ts +7 -6
- package/dist/components/tabs/tab-panels.svelte +6 -2
- package/dist/components/tabs/tab-panels.svelte.d.ts +7 -6
- package/dist/components/tabs/tab.svelte +6 -3
- package/dist/components/tabs/tab.svelte.d.ts +4 -3
- package/dist/components/text-editor/code-editor.svelte +16 -18
- package/dist/components/text-editor/code-editor.svelte.d.ts +25 -24
- package/dist/components/text-editor/core.d.ts +5 -3
- package/dist/components/text-editor/core.js +26 -15
- package/dist/components/text-editor/index.d.ts +12 -6
- package/dist/components/text-editor/index.js +7 -3
- package/dist/components/text-editor/lexical-root.svelte +27 -30
- package/dist/components/text-editor/lexical-root.svelte.d.ts +17 -16
- package/dist/components/text-editor/store.svelte.d.ts +2 -1
- package/dist/components/text-editor/store.svelte.js +10 -5
- package/dist/components/text-editor/text-editor.svelte +22 -13
- package/dist/components/text-editor/text-editor.svelte.d.ts +37 -32
- package/dist/components/text-editor/toolbar/code-editor-toolbar.svelte +3 -3
- package/dist/components/text-editor/toolbar/code-editor-toolbar.svelte.d.ts +6 -6
- package/dist/components/text-editor/toolbar/code-language-switcher.svelte +6 -2
- package/dist/components/text-editor/toolbar/code-language-switcher.svelte.d.ts +2 -2
- package/dist/components/text-editor/toolbar/format-text-button.svelte +6 -2
- package/dist/components/text-editor/toolbar/format-text-button.svelte.d.ts +5 -4
- package/dist/components/text-editor/toolbar/insert-image-button.svelte +6 -2
- package/dist/components/text-editor/toolbar/insert-image-button.svelte.d.ts +5 -4
- package/dist/components/text-editor/toolbar/insert-link-button.svelte +9 -4
- package/dist/components/text-editor/toolbar/insert-menu-button.svelte +6 -2
- package/dist/components/text-editor/toolbar/insert-menu-button.svelte.d.ts +5 -4
- package/dist/components/text-editor/toolbar/text-editor-toolbar.svelte +10 -6
- package/dist/components/text-editor/toolbar/text-editor-toolbar.svelte.d.ts +6 -6
- package/dist/components/text-editor/toolbar/toggle-block-menu-item.svelte +8 -5
- package/dist/components/text-editor/toolbar/toggle-block-menu-item.svelte.d.ts +5 -4
- package/dist/components/text-editor/toolbar/toolbar-wrapper.svelte +7 -3
- package/dist/components/text-editor/toolbar/toolbar-wrapper.svelte.d.ts +9 -8
- package/dist/components/text-editor/transformers/table.d.ts +3 -2
- package/dist/components/text-editor/transformers/table.js +5 -1
- package/dist/components/text-field/number-input.svelte +12 -8
- package/dist/components/text-field/number-input.svelte.d.ts +20 -17
- package/dist/components/text-field/password-input.svelte +8 -4
- package/dist/components/text-field/password-input.svelte.d.ts +10 -7
- package/dist/components/text-field/search-bar.svelte +9 -5
- package/dist/components/text-field/search-bar.svelte.d.ts +14 -11
- package/dist/components/text-field/text-area.svelte +18 -14
- package/dist/components/text-field/text-area.svelte.d.ts +29 -27
- package/dist/components/text-field/text-input.svelte +7 -3
- package/dist/components/text-field/text-input.svelte.d.ts +5 -3
- package/dist/components/toast/toast.svelte +10 -5
- package/dist/components/toast/toast.svelte.d.ts +16 -14
- package/dist/components/toolbar/toolbar.svelte +11 -7
- package/dist/components/toolbar/toolbar.svelte.d.ts +17 -16
- package/dist/components/util/app-shell.svelte +6 -3
- package/dist/components/util/app-shell.svelte.d.ts +7 -8
- package/dist/components/util/group.svelte +8 -4
- package/dist/components/util/group.svelte.d.ts +11 -10
- package/dist/components/util/modal.svelte +7 -3
- package/dist/components/util/modal.svelte.d.ts +2 -1
- package/dist/components/util/placeholder.svelte +5 -1
- package/dist/components/util/placeholder.svelte.d.ts +5 -4
- package/dist/components/util/popup.svelte +23 -17
- package/dist/components/util/popup.svelte.d.ts +36 -33
- package/dist/index.js +3 -3
- package/dist/services/events.svelte.d.ts +2 -1
- package/dist/services/events.svelte.js +12 -8
- package/dist/services/group.svelte.d.ts +2 -1
- package/dist/services/group.svelte.js +16 -12
- package/dist/services/popup.svelte.d.ts +16 -10
- package/dist/services/popup.svelte.js +14 -13
- package/dist/typedefs.d.ts +191 -189
- package/dist/typedefs.js +168 -164
- package/package.json +18 -18
package/dist/typedefs.d.ts
CHANGED
|
@@ -1,553 +1,551 @@
|
|
|
1
1
|
export type ButtonProps = {
|
|
2
2
|
/**
|
|
3
|
-
*
|
|
3
|
+
* Reference to the `<button>` element.
|
|
4
4
|
*/
|
|
5
5
|
element?: HTMLButtonElement | undefined;
|
|
6
6
|
/**
|
|
7
|
-
*
|
|
7
|
+
* The `class` attribute on the `<button>` element.
|
|
8
8
|
*/
|
|
9
9
|
class?: string | undefined;
|
|
10
10
|
/**
|
|
11
|
-
*
|
|
12
|
-
* element.
|
|
11
|
+
* The `type` attribute on the `<button>` element.
|
|
13
12
|
*/
|
|
14
13
|
type?: "reset" | "submit" | "button" | undefined;
|
|
15
14
|
/**
|
|
16
|
-
*
|
|
15
|
+
* The `role` attribute on the `<button>` element.
|
|
17
16
|
*/
|
|
18
17
|
role?: string | undefined;
|
|
19
18
|
/**
|
|
20
|
-
*
|
|
19
|
+
* The `name` attribute on the `<button>` element.
|
|
21
20
|
*/
|
|
22
21
|
name?: string | undefined;
|
|
23
22
|
/**
|
|
24
|
-
*
|
|
23
|
+
* The `value` attribute on the `<button>` element.
|
|
25
24
|
*/
|
|
26
25
|
value?: string | undefined;
|
|
27
26
|
/**
|
|
28
|
-
*
|
|
29
|
-
* attribute.
|
|
27
|
+
* Whether to hide the widget. An alias of the `aria-hidden` attribute.
|
|
30
28
|
*/
|
|
31
29
|
hidden?: boolean | undefined;
|
|
32
30
|
/**
|
|
33
|
-
*
|
|
31
|
+
* Whether to disable the widget. An alias of the `aria-disabled`
|
|
34
32
|
* attribute.
|
|
35
33
|
*/
|
|
36
34
|
disabled?: boolean | undefined;
|
|
37
35
|
/**
|
|
38
|
-
*
|
|
36
|
+
* Whether to make the widget read-only. An alias of the
|
|
39
37
|
* `aria-readonly` attribute used in certain roles, including `checkbox`, `listbox`, `slider` and
|
|
40
38
|
* `textbox`.
|
|
41
39
|
*/
|
|
42
40
|
readonly?: boolean | undefined;
|
|
43
41
|
/**
|
|
44
|
-
*
|
|
45
|
-
*
|
|
42
|
+
* Whether to mark the widget pressed. An alias of the
|
|
43
|
+
* `aria-pressed` attribute.
|
|
46
44
|
*/
|
|
47
45
|
pressed?: boolean | "mixed" | undefined;
|
|
48
46
|
/**
|
|
49
|
-
*
|
|
50
|
-
*
|
|
51
|
-
*
|
|
47
|
+
* Keyboard shortcuts. An alias of the `aria-keyshortcuts`
|
|
48
|
+
* attribute. Accepts the special `Accel` key, which will be replaced with `Control` or `Meta`
|
|
49
|
+
* depending on the user’s operating system.
|
|
52
50
|
*/
|
|
53
51
|
keyShortcuts?: string | undefined;
|
|
54
52
|
/**
|
|
55
|
-
*
|
|
53
|
+
* Text label displayed on the button.
|
|
56
54
|
*/
|
|
57
55
|
label?: string | undefined;
|
|
58
56
|
/**
|
|
59
|
-
*
|
|
60
|
-
*
|
|
57
|
+
* The style variant
|
|
58
|
+
* of the button.
|
|
61
59
|
*/
|
|
62
60
|
variant?: "primary" | "secondary" | "tertiary" | "ghost" | "link" | undefined;
|
|
63
61
|
/**
|
|
64
|
-
*
|
|
62
|
+
* The size of the button.
|
|
65
63
|
*/
|
|
66
64
|
size?: "small" | "medium" | "large" | undefined;
|
|
67
65
|
/**
|
|
68
|
-
*
|
|
66
|
+
* Whether to only show an icon on the button and trim the padding.
|
|
69
67
|
*/
|
|
70
68
|
iconic?: boolean | undefined;
|
|
71
69
|
/**
|
|
72
|
-
*
|
|
70
|
+
* Whether to make the button rounded.
|
|
73
71
|
*/
|
|
74
72
|
pill?: boolean | undefined;
|
|
75
73
|
/**
|
|
76
|
-
*
|
|
74
|
+
* Make the button width flexible.
|
|
77
75
|
*/
|
|
78
76
|
flex?: boolean | undefined;
|
|
79
77
|
/**
|
|
80
|
-
*
|
|
78
|
+
* Where to show the dropdown menu.
|
|
81
79
|
*/
|
|
82
80
|
popupPosition?: PopupPosition | undefined;
|
|
83
81
|
/**
|
|
84
|
-
*
|
|
82
|
+
* Whether to show the backdrop for the popup.
|
|
85
83
|
*/
|
|
86
84
|
showPopupBackdrop?: boolean | undefined;
|
|
87
85
|
/**
|
|
88
|
-
*
|
|
86
|
+
* Primary slot content.
|
|
89
87
|
*/
|
|
90
|
-
children?:
|
|
88
|
+
children?: Snippet<[]> | undefined;
|
|
91
89
|
/**
|
|
92
|
-
*
|
|
90
|
+
* Start icon slot content.
|
|
93
91
|
*/
|
|
94
|
-
startIcon?:
|
|
92
|
+
startIcon?: Snippet<[]> | undefined;
|
|
95
93
|
/**
|
|
96
|
-
*
|
|
94
|
+
* End icon slot content.
|
|
97
95
|
*/
|
|
98
|
-
endIcon?:
|
|
96
|
+
endIcon?: Snippet<[]> | undefined;
|
|
99
97
|
/**
|
|
100
|
-
*
|
|
98
|
+
* Popup slot content.
|
|
101
99
|
*/
|
|
102
|
-
popup?:
|
|
100
|
+
popup?: Snippet<[]> | undefined;
|
|
103
101
|
/**
|
|
104
|
-
*
|
|
102
|
+
* Custom `Change` event handler.
|
|
105
103
|
*/
|
|
106
104
|
onChange?: ((event: CustomEvent) => void) | undefined;
|
|
107
105
|
/**
|
|
108
|
-
*
|
|
106
|
+
* Custom `Select` event handler.
|
|
109
107
|
*/
|
|
110
108
|
onSelect?: ((event: CustomEvent) => void) | undefined;
|
|
111
109
|
/**
|
|
112
|
-
*
|
|
110
|
+
* Custom `Toggle` event handler.
|
|
113
111
|
*/
|
|
114
112
|
onToggle?: ((event: CustomEvent) => void) | undefined;
|
|
115
113
|
};
|
|
116
114
|
export type ModalProps = {
|
|
117
115
|
/**
|
|
118
|
-
*
|
|
116
|
+
* The `class` attribute on the content element.
|
|
119
117
|
*/
|
|
120
118
|
class?: string | undefined;
|
|
121
119
|
/**
|
|
122
|
-
*
|
|
120
|
+
* The `role` attribute on the `<dialog>`
|
|
123
121
|
* element.
|
|
124
122
|
*/
|
|
125
123
|
role?: "dialog" | "alertdialog" | "none" | undefined;
|
|
126
124
|
/**
|
|
127
|
-
*
|
|
125
|
+
* Whether to show the modal.
|
|
128
126
|
*/
|
|
129
127
|
open?: boolean | undefined;
|
|
130
128
|
/**
|
|
131
|
-
*
|
|
129
|
+
* Whether to show the backdrop.
|
|
132
130
|
*/
|
|
133
131
|
showBackdrop?: boolean | undefined;
|
|
134
132
|
/**
|
|
135
|
-
*
|
|
136
|
-
*
|
|
133
|
+
* Whether to close the modal when the backdrop (outside of the
|
|
134
|
+
* modal) is clicked.
|
|
137
135
|
*/
|
|
138
136
|
lightDismiss?: boolean | undefined;
|
|
139
137
|
/**
|
|
140
|
-
*
|
|
138
|
+
* Whether to close the modal when the Escape key is pressed.
|
|
141
139
|
*/
|
|
142
140
|
escapeDismiss?: boolean | undefined;
|
|
143
141
|
/**
|
|
144
|
-
*
|
|
142
|
+
* Whether to keep the content in the DOM tree when the modal is
|
|
145
143
|
* not displayed.
|
|
146
144
|
*/
|
|
147
145
|
keepContent?: boolean | undefined;
|
|
148
146
|
/**
|
|
149
|
-
*
|
|
147
|
+
* A reference to the `<dialog>` element.
|
|
150
148
|
*/
|
|
151
149
|
dialog?: HTMLDialogElement | undefined;
|
|
152
150
|
/**
|
|
153
|
-
*
|
|
151
|
+
* Primary slot content.
|
|
154
152
|
*/
|
|
155
|
-
children?:
|
|
153
|
+
children?: Snippet<[]> | undefined;
|
|
156
154
|
/**
|
|
157
|
-
*
|
|
155
|
+
* Extra slot content.
|
|
158
156
|
*/
|
|
159
|
-
extraContent?:
|
|
157
|
+
extraContent?: Snippet<[]> | undefined;
|
|
160
158
|
/**
|
|
161
|
-
*
|
|
159
|
+
* Custom `Opening` event handler.
|
|
162
160
|
*/
|
|
163
161
|
onOpening?: ((event: CustomEvent) => void) | undefined;
|
|
164
162
|
/**
|
|
165
|
-
*
|
|
163
|
+
* Custom `Open` event handler.
|
|
166
164
|
*/
|
|
167
165
|
onOpen?: ((event: CustomEvent) => void) | undefined;
|
|
168
166
|
/**
|
|
169
|
-
*
|
|
167
|
+
* Custom `Ok` event handler.
|
|
170
168
|
*/
|
|
171
169
|
onOk?: ((event: CustomEvent) => void) | undefined;
|
|
172
170
|
/**
|
|
173
|
-
*
|
|
171
|
+
* Custom `Cancel` event handler.
|
|
174
172
|
*/
|
|
175
173
|
onCancel?: ((event: CustomEvent) => void) | undefined;
|
|
176
174
|
/**
|
|
177
|
-
*
|
|
175
|
+
* Custom `Closing` event handler.
|
|
178
176
|
*/
|
|
179
177
|
onClosing?: ((event: CustomEvent) => void) | undefined;
|
|
180
178
|
/**
|
|
181
|
-
*
|
|
179
|
+
* Custom `Close` event handler.
|
|
182
180
|
*/
|
|
183
181
|
onClose?: ((event: CustomEvent) => void) | undefined;
|
|
184
182
|
};
|
|
185
183
|
export type DialogProps = {
|
|
186
184
|
/**
|
|
187
|
-
*
|
|
185
|
+
* Text label displayed on the header. Required.
|
|
188
186
|
*/
|
|
189
187
|
title?: string | undefined;
|
|
190
188
|
/**
|
|
191
|
-
*
|
|
189
|
+
* The `role` attribute on the `<dialog>` element.
|
|
192
190
|
*/
|
|
193
191
|
role?: "dialog" | "alertdialog" | undefined;
|
|
194
192
|
/**
|
|
195
|
-
*
|
|
193
|
+
* Width of the dialog.
|
|
196
194
|
*/
|
|
197
195
|
size?: "small" | "medium" | "large" | "x-large" | undefined;
|
|
198
196
|
/**
|
|
199
|
-
*
|
|
197
|
+
* The `class` attribute on the `<dialog>` element.
|
|
200
198
|
*/
|
|
201
199
|
class?: string | undefined;
|
|
202
200
|
/**
|
|
203
|
-
*
|
|
201
|
+
* Whether to open the dialog.
|
|
204
202
|
*/
|
|
205
203
|
open?: boolean | undefined;
|
|
206
204
|
/**
|
|
207
|
-
*
|
|
205
|
+
* Whether to show the Close button on the header.
|
|
208
206
|
*/
|
|
209
207
|
showClose?: boolean | undefined;
|
|
210
208
|
/**
|
|
211
|
-
*
|
|
209
|
+
* Whether to show the OK button on the footer.
|
|
212
210
|
*/
|
|
213
211
|
showOk?: boolean | undefined;
|
|
214
212
|
/**
|
|
215
|
-
*
|
|
213
|
+
* Whether to show the Cancel button on the footer.
|
|
216
214
|
*/
|
|
217
215
|
showCancel?: boolean | undefined;
|
|
218
216
|
/**
|
|
219
|
-
*
|
|
217
|
+
* Text label displayed on the OK button.
|
|
220
218
|
*/
|
|
221
219
|
okLabel?: string | undefined;
|
|
222
220
|
/**
|
|
223
|
-
*
|
|
221
|
+
* Whether to disable the OK button.
|
|
224
222
|
*/
|
|
225
223
|
okDisabled?: boolean | undefined;
|
|
226
224
|
/**
|
|
227
|
-
*
|
|
225
|
+
* Text label displayed on the Cancel button.
|
|
228
226
|
*/
|
|
229
227
|
cancelLabel?: string | undefined;
|
|
230
228
|
/**
|
|
231
|
-
*
|
|
229
|
+
* Whether to disable the Cancel button.
|
|
232
230
|
*/
|
|
233
231
|
cancelDisabled?: boolean | undefined;
|
|
234
232
|
/**
|
|
235
|
-
*
|
|
233
|
+
* Whether to close the modal when the backdrop (outside of the
|
|
236
234
|
* modal) is clicked.
|
|
237
235
|
*/
|
|
238
236
|
lightDismiss?: boolean | undefined;
|
|
239
237
|
/**
|
|
240
|
-
*
|
|
238
|
+
* Value entered on the textbox.
|
|
241
239
|
*/
|
|
242
240
|
value?: string | undefined;
|
|
243
241
|
/**
|
|
244
|
-
*
|
|
242
|
+
* Primary slot content.
|
|
245
243
|
*/
|
|
246
|
-
children?:
|
|
244
|
+
children?: Snippet<[]> | undefined;
|
|
247
245
|
/**
|
|
248
|
-
*
|
|
246
|
+
* Header slot content.
|
|
249
247
|
*/
|
|
250
|
-
header?:
|
|
248
|
+
header?: Snippet<[]> | undefined;
|
|
251
249
|
/**
|
|
252
|
-
*
|
|
250
|
+
* Header extra slot content.
|
|
253
251
|
*/
|
|
254
|
-
headerExtra?:
|
|
252
|
+
headerExtra?: Snippet<[]> | undefined;
|
|
255
253
|
/**
|
|
256
|
-
*
|
|
254
|
+
* Footer slot content.
|
|
257
255
|
*/
|
|
258
|
-
footer?:
|
|
256
|
+
footer?: Snippet<[]> | undefined;
|
|
259
257
|
/**
|
|
260
|
-
*
|
|
258
|
+
* Footer extra slot content.
|
|
261
259
|
*/
|
|
262
|
-
footerExtra?:
|
|
260
|
+
footerExtra?: Snippet<[]> | undefined;
|
|
263
261
|
/**
|
|
264
|
-
*
|
|
262
|
+
* Close icon slot content.
|
|
265
263
|
*/
|
|
266
|
-
closeIcon?:
|
|
264
|
+
closeIcon?: Snippet<[]> | undefined;
|
|
267
265
|
/**
|
|
268
|
-
*
|
|
266
|
+
* Extra content slot content.
|
|
269
267
|
*/
|
|
270
|
-
extraContent?:
|
|
268
|
+
extraContent?: Snippet<[]> | undefined;
|
|
271
269
|
};
|
|
272
270
|
export type MenuItemProps = {
|
|
273
271
|
/**
|
|
274
|
-
*
|
|
272
|
+
* The `class` attribute on the wrapper element.
|
|
275
273
|
*/
|
|
276
274
|
class?: string | undefined;
|
|
277
275
|
/**
|
|
278
|
-
*
|
|
279
|
-
*
|
|
276
|
+
* The `role` attribute on the
|
|
277
|
+
* `<button>` element.
|
|
280
278
|
*/
|
|
281
279
|
role?: "menuitem" | "menuitemcheckbox" | "menuitemradio" | undefined;
|
|
282
280
|
/**
|
|
283
|
-
*
|
|
281
|
+
* Whether to hide the widget. An alias of the `aria-hidden`
|
|
284
282
|
* attribute.
|
|
285
283
|
*/
|
|
286
284
|
hidden?: boolean | undefined;
|
|
287
285
|
/**
|
|
288
|
-
*
|
|
286
|
+
* Whether to disable the widget. An alias of the `aria-disabled`
|
|
289
287
|
* attribute.
|
|
290
288
|
*/
|
|
291
289
|
disabled?: boolean | undefined;
|
|
292
290
|
/**
|
|
293
|
-
*
|
|
291
|
+
* Whether to check the widget. An alias of the `aria-checked`
|
|
294
292
|
* attribute.
|
|
295
293
|
*/
|
|
296
294
|
checked?: boolean | undefined;
|
|
297
295
|
/**
|
|
298
|
-
*
|
|
296
|
+
* Text label displayed on the item.
|
|
299
297
|
*/
|
|
300
298
|
label?: string | undefined;
|
|
301
299
|
/**
|
|
302
|
-
*
|
|
300
|
+
* Primary slot content.
|
|
303
301
|
*/
|
|
304
|
-
children?:
|
|
302
|
+
children?: Snippet<[]> | undefined;
|
|
305
303
|
/**
|
|
306
|
-
*
|
|
304
|
+
* Start icon slot content.
|
|
307
305
|
*/
|
|
308
|
-
startIcon?:
|
|
306
|
+
startIcon?: Snippet<[]> | undefined;
|
|
309
307
|
/**
|
|
310
|
-
*
|
|
308
|
+
* End icon slot content.
|
|
311
309
|
*/
|
|
312
|
-
endIcon?:
|
|
310
|
+
endIcon?: Snippet<[]> | undefined;
|
|
313
311
|
/**
|
|
314
|
-
*
|
|
312
|
+
* Chevron icon slot content.
|
|
315
313
|
*/
|
|
316
|
-
chevronIcon?:
|
|
314
|
+
chevronIcon?: Snippet<[]> | undefined;
|
|
317
315
|
/**
|
|
318
|
-
*
|
|
316
|
+
* Items slot content.
|
|
319
317
|
*/
|
|
320
|
-
items?:
|
|
318
|
+
items?: Snippet<[]> | undefined;
|
|
321
319
|
/**
|
|
322
|
-
*
|
|
320
|
+
* Custom `Change` event handler.
|
|
323
321
|
*/
|
|
324
322
|
onChange?: ((event: CustomEvent) => void) | undefined;
|
|
325
323
|
/**
|
|
326
|
-
*
|
|
324
|
+
* Custom `Select` event handler.
|
|
327
325
|
*/
|
|
328
326
|
onSelect?: ((event: CustomEvent) => void) | undefined;
|
|
329
327
|
};
|
|
330
328
|
export type ComboboxProps = {
|
|
331
329
|
/**
|
|
332
|
-
*
|
|
330
|
+
* The `class` attribute on the wrapper element.
|
|
333
331
|
*/
|
|
334
332
|
class?: string | undefined;
|
|
335
333
|
/**
|
|
336
|
-
*
|
|
334
|
+
* Whether to hide the widget.
|
|
337
335
|
*/
|
|
338
336
|
hidden?: boolean | undefined;
|
|
339
337
|
/**
|
|
340
|
-
*
|
|
338
|
+
* Whether to disable the widget. An alias of the `aria-disabled`
|
|
341
339
|
* attribute.
|
|
342
340
|
*/
|
|
343
341
|
disabled?: boolean | undefined;
|
|
344
342
|
/**
|
|
345
|
-
*
|
|
343
|
+
* Whether to make the widget read-only. An alias of the
|
|
346
344
|
* `aria-readonly` attribute.
|
|
347
345
|
*/
|
|
348
346
|
readonly?: boolean | undefined;
|
|
349
347
|
/**
|
|
350
|
-
*
|
|
348
|
+
* Whether to mark the widget required. An alias of the
|
|
351
349
|
* `aria-required` attribute.
|
|
352
350
|
*/
|
|
353
351
|
required?: boolean | undefined;
|
|
354
352
|
/**
|
|
355
|
-
*
|
|
356
|
-
*
|
|
353
|
+
* Whether to mark the widget invalid. An alias of the `aria-invalid`
|
|
354
|
+
* attribute.
|
|
357
355
|
*/
|
|
358
356
|
invalid?: boolean | undefined;
|
|
359
357
|
/**
|
|
360
|
-
*
|
|
358
|
+
* Selected option’s value.
|
|
361
359
|
*/
|
|
362
360
|
value?: string | undefined;
|
|
363
361
|
/**
|
|
364
|
-
*
|
|
362
|
+
* Whether to make the `combobox` editable.
|
|
365
363
|
*/
|
|
366
364
|
editable?: boolean | undefined;
|
|
367
365
|
/**
|
|
368
|
-
*
|
|
366
|
+
* Where to show the dropdown menu.
|
|
369
367
|
*/
|
|
370
368
|
position?: PopupPosition | undefined;
|
|
371
369
|
/**
|
|
372
|
-
*
|
|
370
|
+
* Primary slot content.
|
|
373
371
|
*/
|
|
374
|
-
children?:
|
|
372
|
+
children?: Snippet<[]> | undefined;
|
|
375
373
|
/**
|
|
376
|
-
*
|
|
374
|
+
* Chevron icon slot content.
|
|
377
375
|
*/
|
|
378
|
-
chevronIcon?:
|
|
376
|
+
chevronIcon?: Snippet<[]> | undefined;
|
|
379
377
|
/**
|
|
380
|
-
*
|
|
378
|
+
* Custom `change` event handler.
|
|
381
379
|
*/
|
|
382
380
|
onChange?: ((event: CustomEvent) => void) | undefined;
|
|
383
381
|
};
|
|
384
382
|
export type TextInputProps = {
|
|
385
383
|
/**
|
|
386
|
-
*
|
|
384
|
+
* Reference to the `<input>` element.
|
|
387
385
|
*/
|
|
388
386
|
element?: HTMLInputElement | undefined;
|
|
389
387
|
/**
|
|
390
|
-
*
|
|
388
|
+
* The `role`
|
|
391
389
|
* attribute on the `<input>` element.
|
|
392
390
|
*/
|
|
393
391
|
role?: "textbox" | "searchbox" | "combobox" | "spinbutton" | "gridcell" | undefined;
|
|
394
392
|
/**
|
|
395
|
-
*
|
|
396
|
-
*
|
|
397
|
-
*
|
|
393
|
+
* Keyboard shortcuts. An alias of the `aria-keyshortcuts`
|
|
394
|
+
* attribute. Accepts the special `Accel` key, which will be replaced with `Control` or `Meta`
|
|
395
|
+
* depending on the user’s operating system.
|
|
398
396
|
*/
|
|
399
397
|
keyShortcuts?: string | undefined;
|
|
400
398
|
/**
|
|
401
|
-
*
|
|
399
|
+
* The `name` attribute on the `<input>` element.
|
|
402
400
|
*/
|
|
403
401
|
name?: string | undefined;
|
|
404
402
|
/**
|
|
405
|
-
*
|
|
406
|
-
*
|
|
403
|
+
* Whether to display `aria-label` over the `<input>` element
|
|
404
|
+
* if it’s empty, just like how the HTML `placeholder` attribute works.
|
|
407
405
|
*/
|
|
408
406
|
showInlineLabel?: boolean | undefined;
|
|
409
407
|
/**
|
|
410
|
-
*
|
|
408
|
+
* The
|
|
411
409
|
* `inputmode` attribute on the `<input>`.
|
|
412
410
|
*/
|
|
413
411
|
inputmode?: "text" | "decimal" | "numeric" | "tel" | "search" | "email" | "url" | undefined;
|
|
414
412
|
/**
|
|
415
|
-
*
|
|
413
|
+
* Make the text input container flexible.
|
|
416
414
|
*/
|
|
417
415
|
flex?: boolean | undefined;
|
|
418
416
|
/**
|
|
419
|
-
*
|
|
417
|
+
* The `class` attribute on the wrapper element.
|
|
420
418
|
*/
|
|
421
419
|
class?: string | undefined;
|
|
422
420
|
/**
|
|
423
|
-
*
|
|
421
|
+
* Whether to hide the widget.
|
|
424
422
|
*/
|
|
425
423
|
hidden?: boolean | undefined;
|
|
426
424
|
/**
|
|
427
|
-
*
|
|
425
|
+
* Whether to disable the widget. An alias of the `aria-disabled`
|
|
428
426
|
* attribute.
|
|
429
427
|
*/
|
|
430
428
|
disabled?: boolean | undefined;
|
|
431
429
|
/**
|
|
432
|
-
*
|
|
430
|
+
* Whether to make the widget read-only. An alias of the
|
|
433
431
|
* `aria-readonly` attribute.
|
|
434
432
|
*/
|
|
435
433
|
readonly?: boolean | undefined;
|
|
436
434
|
/**
|
|
437
|
-
*
|
|
435
|
+
* Whether to mark the widget required. An alias of the
|
|
438
436
|
* `aria-required` attribute.
|
|
439
437
|
*/
|
|
440
438
|
required?: boolean | undefined;
|
|
441
439
|
/**
|
|
442
|
-
*
|
|
443
|
-
*
|
|
440
|
+
* Whether to mark the widget invalid. An alias of the `aria-invalid`
|
|
441
|
+
* attribute.
|
|
444
442
|
*/
|
|
445
443
|
invalid?: boolean | undefined;
|
|
446
444
|
/**
|
|
447
|
-
*
|
|
445
|
+
* `aria-label` attribute.
|
|
448
446
|
*/
|
|
449
447
|
"aria-label"?: string | undefined;
|
|
450
448
|
/**
|
|
451
|
-
*
|
|
449
|
+
* Primary slot content.
|
|
452
450
|
*/
|
|
453
|
-
children?:
|
|
451
|
+
children?: Snippet<[]> | undefined;
|
|
454
452
|
};
|
|
455
453
|
export type KeyboardEventHandlers = {
|
|
456
454
|
/**
|
|
457
|
-
*
|
|
455
|
+
* `keydown` event handler.
|
|
458
456
|
*/
|
|
459
457
|
onkeydown?: ((event: KeyboardEvent) => void) | undefined;
|
|
460
458
|
/**
|
|
461
|
-
*
|
|
459
|
+
* `keyup` event handler.
|
|
462
460
|
*/
|
|
463
461
|
onkeyup?: ((event: KeyboardEvent) => void) | undefined;
|
|
464
462
|
/**
|
|
465
|
-
*
|
|
463
|
+
* `keypress` event handler.
|
|
466
464
|
*/
|
|
467
465
|
onkeypress?: ((event: KeyboardEvent) => void) | undefined;
|
|
468
466
|
};
|
|
469
467
|
export type MouseEventHandlers = {
|
|
470
468
|
/**
|
|
471
|
-
*
|
|
469
|
+
* `mouseenter` event handler.
|
|
472
470
|
*/
|
|
473
471
|
onmouseenter?: ((event: MouseEvent) => void) | undefined;
|
|
474
472
|
/**
|
|
475
|
-
*
|
|
473
|
+
* `mouseleave` event handler.
|
|
476
474
|
*/
|
|
477
475
|
onmouseleave?: ((event: MouseEvent) => void) | undefined;
|
|
478
476
|
/**
|
|
479
|
-
*
|
|
477
|
+
* `mouseover` event handler.
|
|
480
478
|
*/
|
|
481
479
|
onmouseover?: ((event: MouseEvent) => void) | undefined;
|
|
482
480
|
/**
|
|
483
|
-
*
|
|
481
|
+
* `mousedown` event handler.
|
|
484
482
|
*/
|
|
485
483
|
onmousedown?: ((event: MouseEvent) => void) | undefined;
|
|
486
484
|
/**
|
|
487
|
-
*
|
|
485
|
+
* `mouseup` event handler.
|
|
488
486
|
*/
|
|
489
487
|
onmouseup?: ((event: MouseEvent) => void) | undefined;
|
|
490
488
|
/**
|
|
491
|
-
*
|
|
489
|
+
* `click` event handler.
|
|
492
490
|
*/
|
|
493
491
|
onclick?: ((event: MouseEvent) => void) | undefined;
|
|
494
492
|
/**
|
|
495
|
-
*
|
|
493
|
+
* `dblclick` event handler.
|
|
496
494
|
*/
|
|
497
495
|
ondblclick?: ((event: MouseEvent) => void) | undefined;
|
|
498
496
|
};
|
|
499
497
|
export type FocusEventHandlers = {
|
|
500
498
|
/**
|
|
501
|
-
*
|
|
499
|
+
* `focus` event handler.
|
|
502
500
|
*/
|
|
503
501
|
onfocus?: ((event: FocusEvent) => void) | undefined;
|
|
504
502
|
/**
|
|
505
|
-
*
|
|
503
|
+
* `blur` event handler.
|
|
506
504
|
*/
|
|
507
505
|
onblur?: ((event: FocusEvent) => void) | undefined;
|
|
508
506
|
};
|
|
509
507
|
export type DragEventHandlers = {
|
|
510
508
|
/**
|
|
511
|
-
*
|
|
509
|
+
* `dragstart` event handler.
|
|
512
510
|
*/
|
|
513
511
|
ondragstart?: ((event: DragEvent) => void) | undefined;
|
|
514
512
|
/**
|
|
515
|
-
*
|
|
513
|
+
* `drag` event handler.
|
|
516
514
|
*/
|
|
517
515
|
ondrag?: ((event: DragEvent) => void) | undefined;
|
|
518
516
|
/**
|
|
519
|
-
*
|
|
517
|
+
* `dragenter` event handler.
|
|
520
518
|
*/
|
|
521
519
|
ondragenter?: ((event: DragEvent) => void) | undefined;
|
|
522
520
|
/**
|
|
523
|
-
*
|
|
521
|
+
* `dragleave` event handler.
|
|
524
522
|
*/
|
|
525
523
|
ondragleave?: ((event: DragEvent) => void) | undefined;
|
|
526
524
|
/**
|
|
527
|
-
*
|
|
525
|
+
* `dragover` event handler.
|
|
528
526
|
*/
|
|
529
527
|
ondragover?: ((event: DragEvent) => void) | undefined;
|
|
530
528
|
/**
|
|
531
|
-
*
|
|
529
|
+
* `drop` event handler.
|
|
532
530
|
*/
|
|
533
531
|
ondrop?: ((event: DragEvent) => void) | undefined;
|
|
534
532
|
/**
|
|
535
|
-
*
|
|
533
|
+
* `dragend` event handler.
|
|
536
534
|
*/
|
|
537
535
|
ondragend?: ((event: DragEvent) => void) | undefined;
|
|
538
536
|
};
|
|
539
537
|
export type CommonEventHandlers = KeyboardEventHandlers & MouseEventHandlers & FocusEventHandlers & DragEventHandlers;
|
|
540
538
|
export type InputEventHandlers = {
|
|
541
539
|
/**
|
|
542
|
-
*
|
|
540
|
+
* `input` event handler.
|
|
543
541
|
*/
|
|
544
542
|
oninput?: ((event: Event) => void) | undefined;
|
|
545
543
|
/**
|
|
546
|
-
*
|
|
544
|
+
* `beforeinput` event handler.
|
|
547
545
|
*/
|
|
548
546
|
onbeforeinput?: ((event: Event) => void) | undefined;
|
|
549
547
|
/**
|
|
550
|
-
*
|
|
548
|
+
* `change` event handler.
|
|
551
549
|
*/
|
|
552
550
|
onchange?: ((event: Event) => void) | undefined;
|
|
553
551
|
};
|
|
@@ -559,109 +557,113 @@ export type TextEditorInlineType = TextEditorFormatType | "link";
|
|
|
559
557
|
export type TextEditorMode = "rich-text" | "plain-text";
|
|
560
558
|
export type TextEditorComponent = {
|
|
561
559
|
/**
|
|
562
|
-
*
|
|
560
|
+
* Component ID.
|
|
563
561
|
*/
|
|
564
562
|
id: string;
|
|
565
563
|
/**
|
|
566
|
-
*
|
|
564
|
+
* Component label.
|
|
567
565
|
*/
|
|
568
566
|
label: string;
|
|
569
567
|
/**
|
|
570
|
-
*
|
|
568
|
+
* Material Symbols icon name.
|
|
571
569
|
*/
|
|
572
570
|
icon?: string | undefined;
|
|
573
571
|
/**
|
|
574
|
-
*
|
|
572
|
+
* Lexical node class implementation.
|
|
575
573
|
*/
|
|
576
|
-
node:
|
|
574
|
+
node: LexicalNode;
|
|
577
575
|
/**
|
|
578
|
-
*
|
|
579
|
-
*
|
|
576
|
+
* Function to create a new node
|
|
577
|
+
* instance.
|
|
580
578
|
*/
|
|
581
|
-
createNode: (props?: Record<string, any>) =>
|
|
579
|
+
createNode: (props?: Record<string, any>) => LexicalNode;
|
|
582
580
|
/**
|
|
583
|
-
*
|
|
581
|
+
* Node transformer.
|
|
584
582
|
*/
|
|
585
|
-
transformer:
|
|
583
|
+
transformer: Transformer;
|
|
586
584
|
};
|
|
587
585
|
export type TextEditorConfig = {
|
|
588
586
|
/**
|
|
589
|
-
*
|
|
587
|
+
* Enabled modes.
|
|
590
588
|
*/
|
|
591
589
|
modes: TextEditorMode[];
|
|
592
590
|
/**
|
|
593
|
-
*
|
|
594
|
-
*
|
|
591
|
+
* Enabled buttons for the
|
|
592
|
+
* editor.
|
|
595
593
|
*/
|
|
596
594
|
enabledButtons: (TextEditorBlockType | TextEditorInlineType)[];
|
|
597
595
|
/**
|
|
598
|
-
*
|
|
596
|
+
* Editor components.
|
|
599
597
|
*/
|
|
600
598
|
components: TextEditorComponent[];
|
|
601
599
|
/**
|
|
602
|
-
*
|
|
600
|
+
* Whether the editor is used as a code editor.
|
|
603
601
|
*/
|
|
604
602
|
isCodeEditor: boolean;
|
|
605
603
|
/**
|
|
606
|
-
*
|
|
604
|
+
* Default language for the code editor.
|
|
607
605
|
*/
|
|
608
606
|
defaultLanguage?: string | undefined;
|
|
609
607
|
};
|
|
610
608
|
export type TextEditorSelectionState = {
|
|
611
609
|
/**
|
|
612
|
-
*
|
|
610
|
+
* Block level node key.
|
|
613
611
|
*/
|
|
614
612
|
blockNodeKey: string | null;
|
|
615
613
|
/**
|
|
616
|
-
*
|
|
614
|
+
* Block level type of the current selection.
|
|
617
615
|
*/
|
|
618
616
|
blockType: TextEditorBlockType;
|
|
619
617
|
/**
|
|
620
|
-
*
|
|
618
|
+
* Inline level types of the current selection.
|
|
621
619
|
*/
|
|
622
620
|
inlineTypes: TextEditorInlineType[];
|
|
623
621
|
};
|
|
624
622
|
export type TextEditorStore = {
|
|
625
623
|
/**
|
|
626
|
-
*
|
|
624
|
+
* Lexical editor instance.
|
|
627
625
|
*/
|
|
628
|
-
editor:
|
|
626
|
+
editor: LexicalEditor | undefined;
|
|
629
627
|
/**
|
|
630
|
-
*
|
|
628
|
+
* Whether the Lexical editor is initialized.
|
|
631
629
|
*/
|
|
632
630
|
initialized: boolean;
|
|
633
631
|
/**
|
|
634
|
-
*
|
|
632
|
+
* Random ID assigned to the editor.
|
|
635
633
|
*/
|
|
636
634
|
editorId: string;
|
|
637
635
|
/**
|
|
638
|
-
*
|
|
636
|
+
* Editor configuration.
|
|
639
637
|
*/
|
|
640
638
|
config: TextEditorConfig;
|
|
641
639
|
/**
|
|
642
|
-
*
|
|
640
|
+
* Value entered the Lexical editor.
|
|
643
641
|
*/
|
|
644
642
|
inputValue: string;
|
|
645
643
|
/**
|
|
646
|
-
*
|
|
644
|
+
* Current selection state.
|
|
647
645
|
*/
|
|
648
646
|
selection: TextEditorSelectionState;
|
|
649
647
|
/**
|
|
650
|
-
*
|
|
648
|
+
* Whether to use rich text mode. If `false`, the editor shows the
|
|
651
649
|
* plain text editor.
|
|
652
650
|
*/
|
|
653
651
|
useRichText: boolean;
|
|
654
652
|
/**
|
|
655
|
-
*
|
|
653
|
+
* Whether there was an error while converting Markdown to
|
|
656
654
|
* Lexical nodes.
|
|
657
655
|
*/
|
|
658
656
|
hasConverterError: boolean;
|
|
659
657
|
/**
|
|
660
|
-
*
|
|
658
|
+
* Whether to show a converter error in the UI.
|
|
661
659
|
*/
|
|
662
660
|
showConverterError: boolean;
|
|
663
661
|
/**
|
|
664
|
-
*
|
|
662
|
+
* Function to trigger the Lexical converter.
|
|
665
663
|
*/
|
|
666
664
|
convertMarkdown: () => Promise<void>;
|
|
667
665
|
};
|
|
666
|
+
import type { Snippet } from 'svelte';
|
|
667
|
+
import type { LexicalNode } from 'lexical';
|
|
668
|
+
import type { Transformer } from '@lexical/markdown';
|
|
669
|
+
import type { LexicalEditor } from 'lexical';
|