domma-js 1.1.0 → 1.2.0

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 (66) hide show
  1. package/README.md +6 -0
  2. package/assets/types/catalogue.json +29 -29
  3. package/assets/types/generated/public/assets/icons/code.d.ts +236 -1
  4. package/assets/types/generated/src/auth.d.ts +38 -38
  5. package/assets/types/generated/src/avatar.d.ts +31 -31
  6. package/assets/types/generated/src/binding-source.d.ts +3 -3
  7. package/assets/types/generated/src/component-factory.d.ts +15 -15
  8. package/assets/types/generated/src/component.d.ts +4 -4
  9. package/assets/types/generated/src/components/back-to-top.d.ts +18 -18
  10. package/assets/types/generated/src/components/badge.d.ts +26 -26
  11. package/assets/types/generated/src/components/card.d.ts +30 -30
  12. package/assets/types/generated/src/components/command-palette.d.ts +69 -69
  13. package/assets/types/generated/src/components/dropzone.d.ts +54 -54
  14. package/assets/types/generated/src/components/focus-trap.d.ts +22 -22
  15. package/assets/types/generated/src/components/loader.d.ts +15 -15
  16. package/assets/types/generated/src/components/modal.d.ts +59 -59
  17. package/assets/types/generated/src/components/range-slider.d.ts +54 -54
  18. package/assets/types/generated/src/components/shared.d.ts +1 -1
  19. package/assets/types/generated/src/components/split-pane.d.ts +45 -45
  20. package/assets/types/generated/src/components/toast.d.ts +38 -38
  21. package/assets/types/generated/src/components/tooltip.d.ts +24 -24
  22. package/assets/types/generated/src/components/virtual-list.d.ts +61 -61
  23. package/assets/types/generated/src/config.d.ts +21 -21
  24. package/assets/types/generated/src/context-cursor.d.ts +6 -6
  25. package/assets/types/generated/src/context-menu.d.ts +72 -72
  26. package/assets/types/generated/src/dom.d.ts +12 -12
  27. package/assets/types/generated/src/effects.d.ts +154 -141
  28. package/assets/types/generated/src/elements.d.ts +644 -644
  29. package/assets/types/generated/src/flags.d.ts +38 -38
  30. package/assets/types/generated/src/forms.d.ts +100 -100
  31. package/assets/types/generated/src/globals.d.ts +6 -6
  32. package/assets/types/generated/src/http.d.ts +12 -12
  33. package/assets/types/generated/src/i18n.d.ts +8 -8
  34. package/assets/types/generated/src/icons.d.ts +13 -13
  35. package/assets/types/generated/src/index.d.ts +10 -10
  36. package/assets/types/generated/src/input-group.d.ts +21 -21
  37. package/assets/types/generated/src/models.d.ts +21 -21
  38. package/assets/types/generated/src/popover.d.ts +45 -45
  39. package/assets/types/generated/src/router.d.ts +30 -30
  40. package/assets/types/generated/src/sanitize.d.ts +13 -5
  41. package/assets/types/generated/src/schema-builder.d.ts +34 -34
  42. package/assets/types/generated/src/skeleton.d.ts +11 -11
  43. package/assets/types/generated/src/sortable.d.ts +46 -46
  44. package/assets/types/generated/src/tables.d.ts +75 -75
  45. package/assets/types/generated/src/theme.d.ts +8 -8
  46. package/assets/types/generated/src/treeview.d.ts +48 -48
  47. package/assets/types/generated/src/utils.d.ts +13 -13
  48. package/assets/types/generated/vendor/domma-reactive.d.ts +2 -2
  49. package/package.json +22 -16
  50. package/public/dist/bundles/domma-complete.css +53 -14
  51. package/public/dist/bundles/domma-data-focused.css +53 -14
  52. package/public/dist/bundles/domma-essentials.css +53 -14
  53. package/public/dist/bundles/domma-full.css +53 -14
  54. package/public/dist/bundles/domma-minimal.css +47 -8
  55. package/public/dist/domma-flags.esm.js +3 -3
  56. package/public/dist/domma-flags.min.js +3 -3
  57. package/public/dist/domma-syntax.min.js +3 -3
  58. package/public/dist/domma.css +42 -3
  59. package/public/dist/domma.esm.js +4 -4
  60. package/public/dist/domma.esm.js.map +1 -1
  61. package/public/dist/domma.min.js +4 -4
  62. package/public/dist/domma.min.js.map +1 -1
  63. package/public/dist/elements.css +3 -3
  64. package/public/dist/grid.css +3 -3
  65. package/public/dist/syntax.css +3 -3
  66. package/public/dist/themes/domma-themes.css +3 -3
package/README.md CHANGED
@@ -1218,6 +1218,12 @@ Domma uses distributed CLAUDE.md files for focused, context-specific guidance:
1218
1218
 
1219
1219
  ## Development
1220
1220
 
1221
+ The native TypeScript 7 CLI checks consumer types. Declaration generation and the
1222
+ type catalogue use `typescript-compiler-api`, an alias for TypeScript 6.0.3, which
1223
+ retains the JavaScript compiler API and compatible JSDoc declaration output.
1224
+ The `live-server` watcher is overridden to Chokidar 3 to avoid its older vulnerable
1225
+ watcher dependencies while keeping the development server API.
1226
+
1221
1227
  ```bash
1222
1228
  # Install dependencies
1223
1229
  npm install
@@ -266,10 +266,10 @@
266
266
  "kind": "boolean"
267
267
  },
268
268
  "repeat": {
269
- "kind": "enum",
269
+ "kind": "array",
270
270
  "kinds": [
271
- "enum",
272
- "array"
271
+ "array",
272
+ "enum"
273
273
  ],
274
274
  "values": [
275
275
  "daily",
@@ -875,8 +875,8 @@
875
875
  "mode": {
876
876
  "kind": "enum",
877
877
  "values": [
878
- "single",
879
- "multiple"
878
+ "multiple",
879
+ "single"
880
880
  ],
881
881
  "doc": "'single' behaves like radios, 'multiple' like checkboxes"
882
882
  },
@@ -908,10 +908,10 @@
908
908
  "values": [
909
909
  "sm",
910
910
  "lg",
911
- "none",
912
911
  "small",
913
912
  "medium",
914
- "large"
913
+ "large",
914
+ "none"
915
915
  ],
916
916
  "doc": "Shadow size"
917
917
  },
@@ -1005,8 +1005,8 @@
1005
1005
  "animation": {
1006
1006
  "kind": "enum",
1007
1007
  "values": [
1008
- "slide",
1009
1008
  "fade",
1009
+ "slide",
1010
1010
  "crossfade"
1011
1011
  ],
1012
1012
  "doc": "'slide' (track translate), 'fade' (clean swap), or 'crossfade' (overlapping opacity)"
@@ -1408,9 +1408,9 @@
1408
1408
  "type": {
1409
1409
  "kind": "enum",
1410
1410
  "values": [
1411
+ "header",
1411
1412
  "item",
1412
1413
  "divider",
1413
- "header",
1414
1414
  "checkbox",
1415
1415
  "radio"
1416
1416
  ],
@@ -1566,8 +1566,8 @@
1566
1566
  "kind": "enum",
1567
1567
  "values": [
1568
1568
  "none",
1569
- "slide",
1570
1569
  "fade",
1570
+ "slide",
1571
1571
  "scale"
1572
1572
  ],
1573
1573
  "doc": "How the panel enters (default 'scale')"
@@ -1727,8 +1727,8 @@
1727
1727
  "values": [
1728
1728
  "bottom-right",
1729
1729
  "bottom-left",
1730
- "bottom",
1731
1730
  "top",
1731
+ "bottom",
1732
1732
  "center-modal"
1733
1733
  ]
1734
1734
  },
@@ -2797,8 +2797,8 @@
2797
2797
  "orientation": {
2798
2798
  "kind": "enum",
2799
2799
  "values": [
2800
- "horizontal",
2801
- "vertical"
2800
+ "vertical",
2801
+ "horizontal"
2802
2802
  ]
2803
2803
  },
2804
2804
  "rtl": {
@@ -3468,8 +3468,8 @@
3468
3468
  ],
3469
3469
  "values": [
3470
3470
  "none",
3471
- "slide",
3472
3471
  "fade",
3472
+ "slide",
3473
3473
  "zoom"
3474
3474
  ],
3475
3475
  "doc": "Animation type"
@@ -4013,8 +4013,8 @@
4013
4013
  "kind": "enum",
4014
4014
  "values": [
4015
4015
  "auto",
4016
- "bottom",
4017
4016
  "top",
4017
+ "bottom",
4018
4018
  "bottom-start",
4019
4019
  "bottom-end",
4020
4020
  "top-start",
@@ -4235,8 +4235,8 @@
4235
4235
  "layout": {
4236
4236
  "kind": "enum",
4237
4237
  "values": [
4238
- "horizontal",
4239
4238
  "vertical",
4239
+ "horizontal",
4240
4240
  "centered"
4241
4241
  ],
4242
4242
  "doc": "Items down one side, across, or alternating either side of a centre line"
@@ -4297,8 +4297,8 @@
4297
4297
  "kind": "enum",
4298
4298
  "values": [
4299
4299
  "none",
4300
- "bottom",
4301
- "top"
4300
+ "top",
4301
+ "bottom"
4302
4302
  ],
4303
4303
  "doc": "Roadmap"
4304
4304
  },
@@ -4421,8 +4421,8 @@
4421
4421
  "orientation": {
4422
4422
  "kind": "enum",
4423
4423
  "values": [
4424
- "horizontal",
4425
- "vertical"
4424
+ "vertical",
4425
+ "horizontal"
4426
4426
  ]
4427
4427
  },
4428
4428
  "ticks": {
@@ -4942,8 +4942,8 @@
4942
4942
  "format": {
4943
4943
  "kind": "enum",
4944
4944
  "values": [
4945
- "png",
4946
- "svg"
4945
+ "svg",
4946
+ "png"
4947
4947
  ],
4948
4948
  "doc": "Export format"
4949
4949
  },
@@ -5095,8 +5095,8 @@
5095
5095
  "position": {
5096
5096
  "kind": "enum",
5097
5097
  "values": [
5098
- "bottom",
5099
5098
  "top",
5099
+ "bottom",
5100
5100
  "left",
5101
5101
  "right"
5102
5102
  ],
@@ -5320,8 +5320,8 @@
5320
5320
  "direction": {
5321
5321
  "kind": "enum",
5322
5322
  "values": [
5323
- "horizontal",
5324
- "vertical"
5323
+ "vertical",
5324
+ "horizontal"
5325
5325
  ],
5326
5326
  "doc": "'horizontal' = side by side (default), 'vertical' = stacked"
5327
5327
  },
@@ -5639,8 +5639,8 @@
5639
5639
  "any"
5640
5640
  ],
5641
5641
  "values": [
5642
- "slide",
5643
- "fade"
5642
+ "fade",
5643
+ "slide"
5644
5644
  ],
5645
5645
  "doc": "Animation style"
5646
5646
  },
@@ -5737,8 +5737,8 @@
5737
5737
  "position": {
5738
5738
  "kind": "enum",
5739
5739
  "values": [
5740
- "bottom",
5741
5740
  "top",
5741
+ "bottom",
5742
5742
  "left",
5743
5743
  "right"
5744
5744
  ],
@@ -5747,8 +5747,8 @@
5747
5747
  "placement": {
5748
5748
  "kind": "enum",
5749
5749
  "values": [
5750
- "bottom",
5751
5750
  "top",
5751
+ "bottom",
5752
5752
  "left",
5753
5753
  "right"
5754
5754
  ],
@@ -1,2 +1,237 @@
1
- declare const _default: Record<string, import("../../../src/icons.js").IconDefinition>;
1
+ declare const _default: {
2
+ code: {
3
+ viewBox: string;
4
+ path: string;
5
+ stroke: string;
6
+ fill: string;
7
+ strokeWidth: number;
8
+ strokeLinecap: string;
9
+ strokeLinejoin: string;
10
+ };
11
+ 'git-branch': {
12
+ viewBox: string;
13
+ path: string;
14
+ stroke: string;
15
+ fill: string;
16
+ strokeWidth: number;
17
+ strokeLinecap: string;
18
+ strokeLinejoin: string;
19
+ };
20
+ terminal: {
21
+ viewBox: string;
22
+ path: string;
23
+ stroke: string;
24
+ fill: string;
25
+ strokeWidth: number;
26
+ strokeLinecap: string;
27
+ strokeLinejoin: string;
28
+ };
29
+ bold: {
30
+ viewBox: string;
31
+ path: string;
32
+ stroke: string;
33
+ fill: string;
34
+ strokeWidth: number;
35
+ strokeLinecap: string;
36
+ strokeLinejoin: string;
37
+ };
38
+ italic: {
39
+ viewBox: string;
40
+ path: string;
41
+ stroke: string;
42
+ fill: string;
43
+ strokeWidth: number;
44
+ strokeLinecap: string;
45
+ strokeLinejoin: string;
46
+ };
47
+ underline: {
48
+ viewBox: string;
49
+ path: string;
50
+ stroke: string;
51
+ fill: string;
52
+ strokeWidth: number;
53
+ strokeLinecap: string;
54
+ strokeLinejoin: string;
55
+ };
56
+ strikethrough: {
57
+ viewBox: string;
58
+ path: string;
59
+ stroke: string;
60
+ fill: string;
61
+ strokeWidth: number;
62
+ strokeLinecap: string;
63
+ strokeLinejoin: string;
64
+ };
65
+ 'heading-1': {
66
+ viewBox: string;
67
+ path: string;
68
+ stroke: string;
69
+ fill: string;
70
+ strokeWidth: number;
71
+ strokeLinecap: string;
72
+ strokeLinejoin: string;
73
+ };
74
+ 'heading-2': {
75
+ viewBox: string;
76
+ path: string;
77
+ stroke: string;
78
+ fill: string;
79
+ strokeWidth: number;
80
+ strokeLinecap: string;
81
+ strokeLinejoin: string;
82
+ };
83
+ 'heading-3': {
84
+ viewBox: string;
85
+ path: string;
86
+ stroke: string;
87
+ fill: string;
88
+ strokeWidth: number;
89
+ strokeLinecap: string;
90
+ strokeLinejoin: string;
91
+ };
92
+ 'list-bullet': {
93
+ viewBox: string;
94
+ path: string;
95
+ stroke: string;
96
+ fill: string;
97
+ strokeWidth: number;
98
+ strokeLinecap: string;
99
+ strokeLinejoin: string;
100
+ };
101
+ 'list-numbered': {
102
+ viewBox: string;
103
+ path: string;
104
+ stroke: string;
105
+ fill: string;
106
+ strokeWidth: number;
107
+ strokeLinecap: string;
108
+ strokeLinejoin: string;
109
+ };
110
+ quote: {
111
+ viewBox: string;
112
+ path: string;
113
+ stroke: string;
114
+ fill: string;
115
+ strokeWidth: number;
116
+ strokeLinecap: string;
117
+ strokeLinejoin: string;
118
+ };
119
+ 'code-inline': {
120
+ viewBox: string;
121
+ path: string;
122
+ stroke: string;
123
+ fill: string;
124
+ strokeWidth: number;
125
+ strokeLinecap: string;
126
+ strokeLinejoin: string;
127
+ };
128
+ 'code-block': {
129
+ viewBox: string;
130
+ path: string;
131
+ stroke: string;
132
+ fill: string;
133
+ strokeWidth: number;
134
+ strokeLinecap: string;
135
+ strokeLinejoin: string;
136
+ };
137
+ 'link-add': {
138
+ viewBox: string;
139
+ path: string;
140
+ stroke: string;
141
+ fill: string;
142
+ strokeWidth: number;
143
+ strokeLinecap: string;
144
+ strokeLinejoin: string;
145
+ };
146
+ 'image-add': {
147
+ viewBox: string;
148
+ path: string;
149
+ stroke: string;
150
+ fill: string;
151
+ strokeWidth: number;
152
+ strokeLinecap: string;
153
+ strokeLinejoin: string;
154
+ };
155
+ undo: {
156
+ viewBox: string;
157
+ path: string;
158
+ stroke: string;
159
+ fill: string;
160
+ strokeWidth: number;
161
+ strokeLinecap: string;
162
+ strokeLinejoin: string;
163
+ };
164
+ redo: {
165
+ viewBox: string;
166
+ path: string;
167
+ stroke: string;
168
+ fill: string;
169
+ strokeWidth: number;
170
+ strokeLinecap: string;
171
+ strokeLinejoin: string;
172
+ };
173
+ 'text-left': {
174
+ viewBox: string;
175
+ path: string;
176
+ stroke: string;
177
+ fill: string;
178
+ strokeWidth: number;
179
+ strokeLinecap: string;
180
+ strokeLinejoin: string;
181
+ };
182
+ 'text-center': {
183
+ viewBox: string;
184
+ path: string;
185
+ stroke: string;
186
+ fill: string;
187
+ strokeWidth: number;
188
+ strokeLinecap: string;
189
+ strokeLinejoin: string;
190
+ };
191
+ 'text-right': {
192
+ viewBox: string;
193
+ path: string;
194
+ stroke: string;
195
+ fill: string;
196
+ strokeWidth: number;
197
+ strokeLinecap: string;
198
+ strokeLinejoin: string;
199
+ };
200
+ indent: {
201
+ viewBox: string;
202
+ path: string;
203
+ stroke: string;
204
+ fill: string;
205
+ strokeWidth: number;
206
+ strokeLinecap: string;
207
+ strokeLinejoin: string;
208
+ };
209
+ outdent: {
210
+ viewBox: string;
211
+ path: string;
212
+ stroke: string;
213
+ fill: string;
214
+ strokeWidth: number;
215
+ strokeLinecap: string;
216
+ strokeLinejoin: string;
217
+ };
218
+ embed: {
219
+ viewBox: string;
220
+ path: string;
221
+ stroke: string;
222
+ fill: string;
223
+ strokeWidth: number;
224
+ strokeLinecap: string;
225
+ strokeLinejoin: string;
226
+ };
227
+ 'clear-format': {
228
+ viewBox: string;
229
+ path: string;
230
+ stroke: string;
231
+ fill: string;
232
+ strokeWidth: number;
233
+ strokeLinecap: string;
234
+ strokeLinejoin: string;
235
+ };
236
+ };
2
237
  export default _default;
@@ -107,9 +107,9 @@ export class LoginForm extends Component {
107
107
  passwordPlaceholder: string;
108
108
  buttonText: string;
109
109
  showLabels: boolean;
110
- onSubmit: any;
111
- onSuccess: any;
112
- onError: any;
110
+ onSubmit: null;
111
+ onSuccess: null;
112
+ onError: null;
113
113
  };
114
114
  /**
115
115
  * @param {string|HTMLElement} selector - Container element or selector
@@ -131,9 +131,9 @@ export class RegisterForm extends Component {
131
131
  buttonText: string;
132
132
  minPasswordLength: number;
133
133
  showLabels: boolean;
134
- onSubmit: any;
135
- onSuccess: any;
136
- onError: any;
134
+ onSubmit: null;
135
+ onSuccess: null;
136
+ onError: null;
137
137
  };
138
138
  /**
139
139
  * @param {string|HTMLElement} selector - Container element or selector
@@ -152,7 +152,7 @@ export class AuthTabs extends Component {
152
152
  activeTab: string;
153
153
  loginText: string;
154
154
  registerText: string;
155
- onChange: any;
155
+ onChange: null;
156
156
  };
157
157
  /**
158
158
  * @param {string|HTMLElement} selector - Container element or selector
@@ -174,15 +174,15 @@ export class UserInfo extends Component {
174
174
  showIcon: boolean;
175
175
  showRole: boolean;
176
176
  logoutText: string;
177
- onLogout: any;
177
+ onLogout: null;
178
178
  };
179
179
  /**
180
180
  * @param {string|HTMLElement} selector
181
181
  * @param {Object} [options]
182
182
  */
183
- constructor(selector: string | HTMLElement, options?: any);
183
+ constructor(selector: string | HTMLElement, options?: Object);
184
184
  _init(): void;
185
- _onAuthChange: () => void;
185
+ _onAuthChange: (() => void) | undefined;
186
186
  render(): void;
187
187
  handleLogout(): void;
188
188
  }
@@ -193,19 +193,19 @@ export type AuthOptions = {
193
193
  /**
194
194
  * - Backend API URL (default: `http://<host>:3000/api` on localhost, else `<origin>/api`)
195
195
  */
196
- apiUrl?: string;
196
+ apiUrl?: string | undefined;
197
197
  /**
198
198
  * - Storage key for the token
199
199
  */
200
- storageKey?: string;
200
+ storageKey?: string | undefined;
201
201
  /**
202
202
  * - Storage key for the user object
203
203
  */
204
- userStorageKey?: string;
204
+ userStorageKey?: string | undefined;
205
205
  /**
206
206
  * - Verify a stored token with `GET <apiUrl>/auth/me` on init
207
207
  */
208
- autoCheck?: boolean;
208
+ autoCheck?: boolean | undefined;
209
209
  };
210
210
  /**
211
211
  * The signed-in user, as the backend returned it (`response.user` from login, register or
@@ -357,68 +357,68 @@ export type Auth = {
357
357
  * Options for `A.createLoginForm()` / `new A.LoginForm()`.
358
358
  */
359
359
  export type LoginFormOptions = {
360
- emailPlaceholder?: string;
361
- passwordPlaceholder?: string;
362
- buttonText?: string;
363
- showLabels?: boolean;
360
+ emailPlaceholder?: string | undefined;
361
+ passwordPlaceholder?: string | undefined;
362
+ buttonText?: string | undefined;
363
+ showLabels?: boolean | undefined;
364
364
  /**
365
365
  * - Called before the login request
366
366
  */
367
- onSubmit?: ((email: string, password: string) => void) | null;
367
+ onSubmit?: ((email: string, password: string) => void) | null | undefined;
368
368
  /**
369
369
  * - Called after a successful login
370
370
  */
371
- onSuccess?: ((user: AuthUser | null) => void) | null;
371
+ onSuccess?: ((user: AuthUser | null) => void) | null | undefined;
372
372
  /**
373
373
  * - Called when the login fails
374
374
  */
375
- onError?: ((error: Error) => void) | null;
375
+ onError?: ((error: Error) => void) | null | undefined;
376
376
  };
377
377
  /**
378
378
  * Options for `A.createRegisterForm()` / `new A.RegisterForm()`.
379
379
  */
380
380
  export type RegisterFormOptions = {
381
- namePlaceholder?: string;
382
- emailPlaceholder?: string;
383
- passwordPlaceholder?: string;
384
- buttonText?: string;
385
- minPasswordLength?: number;
386
- showLabels?: boolean;
381
+ namePlaceholder?: string | undefined;
382
+ emailPlaceholder?: string | undefined;
383
+ passwordPlaceholder?: string | undefined;
384
+ buttonText?: string | undefined;
385
+ minPasswordLength?: number | undefined;
386
+ showLabels?: boolean | undefined;
387
387
  /**
388
388
  * - Called before the register request
389
389
  */
390
- onSubmit?: ((email: string, password: string, name: string) => void) | null;
390
+ onSubmit?: ((email: string, password: string, name: string) => void) | null | undefined;
391
391
  /**
392
392
  * - Called after a successful registration
393
393
  */
394
- onSuccess?: ((user: AuthUser | null) => void) | null;
394
+ onSuccess?: ((user: AuthUser | null) => void) | null | undefined;
395
395
  /**
396
396
  * - Called when registration fails (also for mismatched passwords)
397
397
  */
398
- onError?: ((error: Error) => void) | null;
398
+ onError?: ((error: Error) => void) | null | undefined;
399
399
  };
400
400
  /**
401
401
  * Options for `A.createAuthTabs()` / `new A.AuthTabs()`.
402
402
  */
403
403
  export type AuthTabsOptions = {
404
- activeTab?: "login" | "register";
405
- loginText?: string;
406
- registerText?: string;
404
+ activeTab?: "register" | "login" | undefined;
405
+ loginText?: string | undefined;
406
+ registerText?: string | undefined;
407
407
  /**
408
408
  * - Called with the tab switched to
409
409
  */
410
- onChange?: ((tab: string) => void) | null;
410
+ onChange?: ((tab: string) => void) | null | undefined;
411
411
  };
412
412
  /**
413
413
  * Options for `A.createUserInfo()` / `new A.UserInfo()`.
414
414
  */
415
415
  export type UserInfoOptions = {
416
- showIcon?: boolean;
417
- showRole?: boolean;
418
- logoutText?: string;
416
+ showIcon?: boolean | undefined;
417
+ showRole?: boolean | undefined;
418
+ logoutText?: string | undefined;
419
419
  /**
420
420
  * - Called after the logout button logs out
421
421
  */
422
- onLogout?: (() => void) | null;
422
+ onLogout?: (() => void) | null | undefined;
423
423
  };
424
424
  import Component from './component.js';