@embedpdf/plugin-ui 1.4.1 → 2.0.0-next.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 (127) hide show
  1. package/dist/index.cjs +1 -1
  2. package/dist/index.cjs.map +1 -1
  3. package/dist/index.js +1313 -655
  4. package/dist/index.js.map +1 -1
  5. package/dist/lib/actions.d.ts +110 -74
  6. package/dist/lib/index.d.ts +8 -7
  7. package/dist/lib/reducer.d.ts +5 -5
  8. package/dist/lib/schema.d.ts +257 -0
  9. package/dist/lib/selectors.d.ts +16 -0
  10. package/dist/lib/types.d.ts +185 -202
  11. package/dist/lib/ui-plugin.d.ts +66 -18
  12. package/dist/lib/utils/consts.d.ts +25 -0
  13. package/dist/lib/utils/index.d.ts +5 -0
  14. package/dist/lib/utils/responsive-utils.d.ts +10 -0
  15. package/dist/lib/utils/schema-merger.d.ts +15 -0
  16. package/dist/lib/utils/stylesheet-generator.d.ts +40 -0
  17. package/dist/lib/utils/ui-props.d.ts +14 -0
  18. package/dist/preact/adapter.d.ts +4 -2
  19. package/dist/preact/index.cjs +1 -1
  20. package/dist/preact/index.cjs.map +1 -1
  21. package/dist/preact/index.js +450 -49
  22. package/dist/preact/index.js.map +1 -1
  23. package/dist/preact/utils.d.ts +1 -0
  24. package/dist/react/adapter.d.ts +2 -2
  25. package/dist/react/index.cjs +1 -1
  26. package/dist/react/index.cjs.map +1 -1
  27. package/dist/react/index.js +449 -48
  28. package/dist/react/index.js.map +1 -1
  29. package/dist/react/utils.d.ts +1 -0
  30. package/dist/shared/auto-menu-renderer.d.ts +13 -0
  31. package/dist/shared/hooks/index.d.ts +4 -0
  32. package/dist/shared/hooks/use-item-renderer.d.ts +14 -0
  33. package/dist/shared/hooks/use-register-anchor.d.ts +17 -0
  34. package/dist/shared/hooks/use-schema-renderer.d.ts +61 -0
  35. package/dist/shared/hooks/use-selection-menu.d.ts +11 -0
  36. package/dist/shared/hooks/use-ui.d.ts +13 -5
  37. package/dist/shared/index.d.ts +4 -1
  38. package/dist/shared/provider.d.ts +68 -0
  39. package/dist/shared/registries/anchor-registry.d.ts +16 -0
  40. package/dist/shared/registries/component-registry.d.ts +20 -0
  41. package/dist/shared/registries/index.d.ts +3 -0
  42. package/dist/shared/registries/renderers-registry.d.ts +8 -0
  43. package/dist/shared/root.d.ts +12 -0
  44. package/dist/shared/types.d.ts +67 -0
  45. package/dist/shared-preact/auto-menu-renderer.d.ts +13 -0
  46. package/dist/shared-preact/hooks/index.d.ts +4 -0
  47. package/dist/shared-preact/hooks/use-item-renderer.d.ts +14 -0
  48. package/dist/shared-preact/hooks/use-register-anchor.d.ts +17 -0
  49. package/dist/shared-preact/hooks/use-schema-renderer.d.ts +61 -0
  50. package/dist/shared-preact/hooks/use-selection-menu.d.ts +11 -0
  51. package/dist/shared-preact/hooks/use-ui.d.ts +13 -5
  52. package/dist/shared-preact/index.d.ts +4 -1
  53. package/dist/shared-preact/provider.d.ts +68 -0
  54. package/dist/shared-preact/registries/anchor-registry.d.ts +16 -0
  55. package/dist/shared-preact/registries/component-registry.d.ts +20 -0
  56. package/dist/shared-preact/registries/index.d.ts +3 -0
  57. package/dist/shared-preact/registries/renderers-registry.d.ts +8 -0
  58. package/dist/shared-preact/root.d.ts +12 -0
  59. package/dist/shared-preact/types.d.ts +67 -0
  60. package/dist/shared-react/auto-menu-renderer.d.ts +13 -0
  61. package/dist/shared-react/hooks/index.d.ts +4 -0
  62. package/dist/shared-react/hooks/use-item-renderer.d.ts +14 -0
  63. package/dist/shared-react/hooks/use-register-anchor.d.ts +17 -0
  64. package/dist/shared-react/hooks/use-schema-renderer.d.ts +61 -0
  65. package/dist/shared-react/hooks/use-selection-menu.d.ts +11 -0
  66. package/dist/shared-react/hooks/use-ui.d.ts +13 -5
  67. package/dist/shared-react/index.d.ts +4 -1
  68. package/dist/shared-react/provider.d.ts +68 -0
  69. package/dist/shared-react/registries/anchor-registry.d.ts +16 -0
  70. package/dist/shared-react/registries/component-registry.d.ts +20 -0
  71. package/dist/shared-react/registries/index.d.ts +3 -0
  72. package/dist/shared-react/registries/renderers-registry.d.ts +8 -0
  73. package/dist/shared-react/root.d.ts +12 -0
  74. package/dist/shared-react/types.d.ts +67 -0
  75. package/dist/svelte/auto-menu-renderer.svelte.d.ts +15 -0
  76. package/dist/svelte/hooks/index.d.ts +5 -0
  77. package/dist/svelte/hooks/use-item-renderer.svelte.d.ts +24 -0
  78. package/dist/svelte/hooks/use-register-anchor.svelte.d.ts +18 -0
  79. package/dist/svelte/hooks/use-schema-renderer.svelte.d.ts +78 -0
  80. package/dist/svelte/hooks/use-selection-menu.svelte.d.ts +9 -0
  81. package/dist/svelte/hooks/use-ui.svelte.d.ts +34 -0
  82. package/dist/svelte/index.cjs +2 -0
  83. package/dist/svelte/index.cjs.map +1 -0
  84. package/dist/svelte/index.d.ts +6 -0
  85. package/dist/svelte/index.js +553 -0
  86. package/dist/svelte/index.js.map +1 -0
  87. package/dist/svelte/provider.svelte.d.ts +33 -0
  88. package/dist/svelte/registries/anchor-registry.svelte.d.ts +14 -0
  89. package/dist/svelte/registries/component-registry.svelte.d.ts +17 -0
  90. package/dist/svelte/registries/index.d.ts +3 -0
  91. package/dist/svelte/registries/renderers-registry.svelte.d.ts +3 -0
  92. package/dist/svelte/root.svelte.d.ts +8 -0
  93. package/dist/svelte/types.d.ts +67 -0
  94. package/dist/vue/auto-menu-renderer.vue.d.ts +15 -0
  95. package/dist/vue/hooks/index.d.ts +5 -0
  96. package/dist/vue/hooks/use-item-renderer.d.ts +16 -0
  97. package/dist/vue/hooks/use-register-anchor.d.ts +19 -0
  98. package/dist/vue/hooks/use-schema-renderer.d.ts +63 -0
  99. package/dist/vue/hooks/use-selection-menu.d.ts +28 -0
  100. package/dist/vue/hooks/use-ui.d.ts +940 -0
  101. package/dist/vue/index.cjs +2 -0
  102. package/dist/vue/index.cjs.map +1 -0
  103. package/dist/vue/index.d.ts +6 -0
  104. package/dist/vue/index.js +544 -0
  105. package/dist/vue/index.js.map +1 -0
  106. package/dist/vue/provider.vue.d.ts +43 -0
  107. package/dist/vue/registries/anchor-registry.d.ts +14 -0
  108. package/dist/vue/registries/component-registry.d.ts +17 -0
  109. package/dist/vue/registries/index.d.ts +3 -0
  110. package/dist/vue/registries/renderers-registry.d.ts +3 -0
  111. package/dist/vue/root.vue.d.ts +13 -0
  112. package/dist/vue/types.d.ts +67 -0
  113. package/package.json +32 -9
  114. package/dist/lib/menu/menu-manager.d.ts +0 -98
  115. package/dist/lib/menu/types.d.ts +0 -91
  116. package/dist/lib/menu/utils.d.ts +0 -6
  117. package/dist/lib/ui-component.d.ts +0 -30
  118. package/dist/lib/utils.d.ts +0 -33
  119. package/dist/shared/components/component-wrapper.d.ts +0 -5
  120. package/dist/shared/components/index.d.ts +0 -1
  121. package/dist/shared/components/plugin-ui-provider.d.ts +0 -37
  122. package/dist/shared-preact/components/component-wrapper.d.ts +0 -5
  123. package/dist/shared-preact/components/index.d.ts +0 -1
  124. package/dist/shared-preact/components/plugin-ui-provider.d.ts +0 -37
  125. package/dist/shared-react/components/component-wrapper.d.ts +0 -5
  126. package/dist/shared-react/components/index.d.ts +0 -1
  127. package/dist/shared-react/components/plugin-ui-provider.d.ts +0 -37
@@ -0,0 +1,940 @@
1
+ import { MaybeRefOrGetter } from 'vue';
2
+ import { UIPlugin } from '../../lib';
3
+ export declare const useUIPlugin: () => import('@embedpdf/core/vue').PluginState<UIPlugin>;
4
+ export declare const useUICapability: () => import('@embedpdf/core/vue').CapabilityState<Readonly<import('../../lib').UICapability>>;
5
+ /**
6
+ * Hook for UI state for a specific document
7
+ * @param documentId Document ID (can be ref, computed, getter, or plain value)
8
+ */
9
+ export declare const useUIState: (documentId: MaybeRefOrGetter<string>) => {
10
+ provides: import('vue').ComputedRef<import('../../lib').UIScope | null>;
11
+ state: Readonly<import('vue').Ref<{
12
+ readonly activeToolbars: {
13
+ readonly [x: string]: {
14
+ readonly toolbarId: string;
15
+ readonly isOpen: boolean;
16
+ };
17
+ };
18
+ readonly activePanels: {
19
+ readonly [x: string]: {
20
+ readonly panelId: string;
21
+ readonly isOpen: boolean;
22
+ };
23
+ };
24
+ readonly activeModal: string | null;
25
+ readonly openMenus: {
26
+ readonly [x: string]: {
27
+ readonly menuId: string;
28
+ readonly triggeredByCommandId?: string | undefined;
29
+ readonly triggeredByItemId?: string | undefined;
30
+ };
31
+ };
32
+ readonly panelTabs: {
33
+ readonly [x: string]: string;
34
+ };
35
+ } | null, {
36
+ readonly activeToolbars: {
37
+ readonly [x: string]: {
38
+ readonly toolbarId: string;
39
+ readonly isOpen: boolean;
40
+ };
41
+ };
42
+ readonly activePanels: {
43
+ readonly [x: string]: {
44
+ readonly panelId: string;
45
+ readonly isOpen: boolean;
46
+ };
47
+ };
48
+ readonly activeModal: string | null;
49
+ readonly openMenus: {
50
+ readonly [x: string]: {
51
+ readonly menuId: string;
52
+ readonly triggeredByCommandId?: string | undefined;
53
+ readonly triggeredByItemId?: string | undefined;
54
+ };
55
+ };
56
+ readonly panelTabs: {
57
+ readonly [x: string]: string;
58
+ };
59
+ } | null>>;
60
+ };
61
+ /**
62
+ * Hook to get UI schema
63
+ */
64
+ export declare const useUISchema: () => Readonly<import('vue').Ref<{
65
+ readonly id: string;
66
+ readonly version: string;
67
+ readonly toolbars: {
68
+ readonly [x: string]: {
69
+ readonly id: string;
70
+ readonly position: {
71
+ readonly placement: "top" | "bottom" | "left" | "right";
72
+ readonly slot?: string | undefined;
73
+ readonly order?: number | undefined;
74
+ };
75
+ readonly permanent?: boolean | undefined;
76
+ readonly items: readonly ({
77
+ readonly type: "custom";
78
+ readonly id: string;
79
+ readonly componentId: string;
80
+ readonly props?: {
81
+ readonly [x: string]: any;
82
+ } | undefined;
83
+ readonly categories?: readonly string[] | undefined;
84
+ readonly visibilityDependsOn?: {
85
+ readonly menuId?: string | undefined;
86
+ readonly itemIds?: readonly string[] | undefined;
87
+ } | undefined;
88
+ } | {
89
+ readonly type: "command-button";
90
+ readonly id: string;
91
+ readonly commandId: string;
92
+ readonly variant?: "icon" | "text" | "icon-text" | "tab" | undefined;
93
+ readonly size?: "sm" | "md" | "lg" | undefined;
94
+ readonly categories?: readonly string[] | undefined;
95
+ readonly visibilityDependsOn?: {
96
+ readonly menuId?: string | undefined;
97
+ readonly itemIds?: readonly string[] | undefined;
98
+ } | undefined;
99
+ } | {
100
+ readonly type: "tab-group";
101
+ readonly id: string;
102
+ readonly tabs: readonly {
103
+ readonly id: string;
104
+ readonly commandId: string;
105
+ readonly variant?: "icon" | "text" | "icon-text" | undefined;
106
+ readonly categories?: readonly string[] | undefined;
107
+ readonly visibilityDependsOn?: {
108
+ readonly menuId?: string | undefined;
109
+ readonly itemIds?: readonly string[] | undefined;
110
+ } | undefined;
111
+ }[];
112
+ readonly defaultTab?: string | undefined;
113
+ readonly variant?: "pills" | "underline" | "enclosed" | undefined;
114
+ readonly alignment?: "start" | "center" | "end" | undefined;
115
+ readonly categories?: readonly string[] | undefined;
116
+ readonly visibilityDependsOn?: {
117
+ readonly menuId?: string | undefined;
118
+ readonly itemIds?: readonly string[] | undefined;
119
+ } | undefined;
120
+ } | {
121
+ readonly type: "divider";
122
+ readonly id: string;
123
+ readonly orientation?: "vertical" | "horizontal" | undefined;
124
+ readonly categories?: readonly string[] | undefined;
125
+ readonly visibilityDependsOn?: {
126
+ readonly menuId?: string | undefined;
127
+ readonly itemIds?: readonly string[] | undefined;
128
+ } | undefined;
129
+ } | {
130
+ readonly type: "spacer";
131
+ readonly id: string;
132
+ readonly flex?: boolean | undefined;
133
+ readonly categories?: readonly string[] | undefined;
134
+ readonly visibilityDependsOn?: {
135
+ readonly menuId?: string | undefined;
136
+ readonly itemIds?: readonly string[] | undefined;
137
+ } | undefined;
138
+ } | {
139
+ readonly type: "group";
140
+ readonly id: string;
141
+ readonly items: readonly ({
142
+ readonly type: "custom";
143
+ readonly id: string;
144
+ readonly componentId: string;
145
+ readonly props?: {
146
+ readonly [x: string]: any;
147
+ } | undefined;
148
+ readonly categories?: readonly string[] | undefined;
149
+ readonly visibilityDependsOn?: {
150
+ readonly menuId?: string | undefined;
151
+ readonly itemIds?: readonly string[] | undefined;
152
+ } | undefined;
153
+ } | {
154
+ readonly type: "command-button";
155
+ readonly id: string;
156
+ readonly commandId: string;
157
+ readonly variant?: "icon" | "text" | "icon-text" | "tab" | undefined;
158
+ readonly size?: "sm" | "md" | "lg" | undefined;
159
+ readonly categories?: readonly string[] | undefined;
160
+ readonly visibilityDependsOn?: {
161
+ readonly menuId?: string | undefined;
162
+ readonly itemIds?: readonly string[] | undefined;
163
+ } | undefined;
164
+ } | {
165
+ readonly type: "tab-group";
166
+ readonly id: string;
167
+ readonly tabs: readonly {
168
+ readonly id: string;
169
+ readonly commandId: string;
170
+ readonly variant?: "icon" | "text" | "icon-text" | undefined;
171
+ readonly categories?: readonly string[] | undefined;
172
+ readonly visibilityDependsOn?: {
173
+ readonly menuId?: string | undefined;
174
+ readonly itemIds?: readonly string[] | undefined;
175
+ } | undefined;
176
+ }[];
177
+ readonly defaultTab?: string | undefined;
178
+ readonly variant?: "pills" | "underline" | "enclosed" | undefined;
179
+ readonly alignment?: "start" | "center" | "end" | undefined;
180
+ readonly categories?: readonly string[] | undefined;
181
+ readonly visibilityDependsOn?: {
182
+ readonly menuId?: string | undefined;
183
+ readonly itemIds?: readonly string[] | undefined;
184
+ } | undefined;
185
+ } | {
186
+ readonly type: "divider";
187
+ readonly id: string;
188
+ readonly orientation?: "vertical" | "horizontal" | undefined;
189
+ readonly categories?: readonly string[] | undefined;
190
+ readonly visibilityDependsOn?: {
191
+ readonly menuId?: string | undefined;
192
+ readonly itemIds?: readonly string[] | undefined;
193
+ } | undefined;
194
+ } | {
195
+ readonly type: "spacer";
196
+ readonly id: string;
197
+ readonly flex?: boolean | undefined;
198
+ readonly categories?: readonly string[] | undefined;
199
+ readonly visibilityDependsOn?: {
200
+ readonly menuId?: string | undefined;
201
+ readonly itemIds?: readonly string[] | undefined;
202
+ } | undefined;
203
+ } | /*elided*/ any)[];
204
+ readonly gap?: number | undefined;
205
+ readonly alignment?: "start" | "center" | "end" | undefined;
206
+ readonly categories?: readonly string[] | undefined;
207
+ readonly visibilityDependsOn?: {
208
+ readonly menuId?: string | undefined;
209
+ readonly itemIds?: readonly string[] | undefined;
210
+ } | undefined;
211
+ })[];
212
+ readonly responsive?: {
213
+ readonly breakpoints: {
214
+ readonly [x: string]: {
215
+ readonly minWidth?: number | undefined;
216
+ readonly maxWidth?: number | undefined;
217
+ readonly hide?: readonly string[] | undefined;
218
+ readonly show?: readonly string[] | undefined;
219
+ };
220
+ };
221
+ readonly localeOverrides?: {
222
+ readonly groups: readonly {
223
+ readonly id: string;
224
+ readonly locales: readonly string[];
225
+ readonly description?: string | undefined;
226
+ readonly breakpoints: {
227
+ readonly [x: string]: {
228
+ readonly hide?: readonly string[] | undefined;
229
+ readonly show?: readonly string[] | undefined;
230
+ readonly replaceHide?: readonly string[] | undefined;
231
+ readonly replaceShow?: readonly string[] | undefined;
232
+ };
233
+ };
234
+ }[];
235
+ } | undefined;
236
+ } | undefined;
237
+ readonly categories?: readonly string[] | undefined;
238
+ readonly visibilityDependsOn?: {
239
+ readonly menuId?: string | undefined;
240
+ readonly itemIds?: readonly string[] | undefined;
241
+ } | undefined;
242
+ };
243
+ };
244
+ readonly menus: {
245
+ readonly [x: string]: {
246
+ readonly id: string;
247
+ readonly items: readonly ({
248
+ readonly type: "command";
249
+ readonly id: string;
250
+ readonly commandId: string;
251
+ readonly categories?: readonly string[] | undefined;
252
+ readonly visibilityDependsOn?: {
253
+ readonly menuId?: string | undefined;
254
+ readonly itemIds?: readonly string[] | undefined;
255
+ } | undefined;
256
+ } | {
257
+ readonly type: "section";
258
+ readonly id: string;
259
+ readonly labelKey?: string | undefined;
260
+ readonly label?: string | undefined;
261
+ readonly items: readonly ({
262
+ readonly type: "command";
263
+ readonly id: string;
264
+ readonly commandId: string;
265
+ readonly categories?: readonly string[] | undefined;
266
+ readonly visibilityDependsOn?: {
267
+ readonly menuId?: string | undefined;
268
+ readonly itemIds?: readonly string[] | undefined;
269
+ } | undefined;
270
+ } | /*elided*/ any | {
271
+ readonly type: "submenu";
272
+ readonly id: string;
273
+ readonly labelKey?: string | undefined;
274
+ readonly label?: string | undefined;
275
+ readonly icon?: string | undefined;
276
+ readonly menuId: string;
277
+ readonly categories?: readonly string[] | undefined;
278
+ readonly visibilityDependsOn?: {
279
+ readonly menuId?: string | undefined;
280
+ readonly itemIds?: readonly string[] | undefined;
281
+ } | undefined;
282
+ } | {
283
+ readonly type: "divider";
284
+ readonly id: string;
285
+ readonly categories?: readonly string[] | undefined;
286
+ readonly visibilityDependsOn?: {
287
+ readonly menuId?: string | undefined;
288
+ readonly itemIds?: readonly string[] | undefined;
289
+ } | undefined;
290
+ } | {
291
+ readonly type: "custom";
292
+ readonly id: string;
293
+ readonly componentId: string;
294
+ readonly props?: {
295
+ readonly [x: string]: any;
296
+ } | undefined;
297
+ readonly categories?: readonly string[] | undefined;
298
+ readonly visibilityDependsOn?: {
299
+ readonly menuId?: string | undefined;
300
+ readonly itemIds?: readonly string[] | undefined;
301
+ } | undefined;
302
+ })[];
303
+ readonly categories?: readonly string[] | undefined;
304
+ readonly visibilityDependsOn?: {
305
+ readonly menuId?: string | undefined;
306
+ readonly itemIds?: readonly string[] | undefined;
307
+ } | undefined;
308
+ } | {
309
+ readonly type: "submenu";
310
+ readonly id: string;
311
+ readonly labelKey?: string | undefined;
312
+ readonly label?: string | undefined;
313
+ readonly icon?: string | undefined;
314
+ readonly menuId: string;
315
+ readonly categories?: readonly string[] | undefined;
316
+ readonly visibilityDependsOn?: {
317
+ readonly menuId?: string | undefined;
318
+ readonly itemIds?: readonly string[] | undefined;
319
+ } | undefined;
320
+ } | {
321
+ readonly type: "divider";
322
+ readonly id: string;
323
+ readonly categories?: readonly string[] | undefined;
324
+ readonly visibilityDependsOn?: {
325
+ readonly menuId?: string | undefined;
326
+ readonly itemIds?: readonly string[] | undefined;
327
+ } | undefined;
328
+ } | {
329
+ readonly type: "custom";
330
+ readonly id: string;
331
+ readonly componentId: string;
332
+ readonly props?: {
333
+ readonly [x: string]: any;
334
+ } | undefined;
335
+ readonly categories?: readonly string[] | undefined;
336
+ readonly visibilityDependsOn?: {
337
+ readonly menuId?: string | undefined;
338
+ readonly itemIds?: readonly string[] | undefined;
339
+ } | undefined;
340
+ })[];
341
+ readonly responsive?: {
342
+ readonly breakpoints: {
343
+ readonly [x: string]: {
344
+ readonly minWidth?: number | undefined;
345
+ readonly maxWidth?: number | undefined;
346
+ readonly hide?: readonly string[] | undefined;
347
+ readonly show?: readonly string[] | undefined;
348
+ };
349
+ };
350
+ readonly localeOverrides?: {
351
+ readonly groups: readonly {
352
+ readonly id: string;
353
+ readonly locales: readonly string[];
354
+ readonly description?: string | undefined;
355
+ readonly breakpoints: {
356
+ readonly [x: string]: {
357
+ readonly hide?: readonly string[] | undefined;
358
+ readonly show?: readonly string[] | undefined;
359
+ readonly replaceHide?: readonly string[] | undefined;
360
+ readonly replaceShow?: readonly string[] | undefined;
361
+ };
362
+ };
363
+ }[];
364
+ } | undefined;
365
+ } | undefined;
366
+ readonly categories?: readonly string[] | undefined;
367
+ readonly visibilityDependsOn?: {
368
+ readonly menuId?: string | undefined;
369
+ readonly itemIds?: readonly string[] | undefined;
370
+ } | undefined;
371
+ };
372
+ };
373
+ readonly panels: {
374
+ readonly [x: string]: {
375
+ readonly id: string;
376
+ readonly type: "sidebar" | "overlay" | "modal" | "popover";
377
+ readonly position?: {
378
+ readonly placement: "left" | "right" | "top" | "bottom";
379
+ readonly slot?: string | undefined;
380
+ readonly order?: number | undefined;
381
+ } | undefined;
382
+ readonly content: {
383
+ readonly type: "tabs";
384
+ readonly tabs: readonly {
385
+ readonly id: string;
386
+ readonly labelKey?: string | undefined;
387
+ readonly label?: string | undefined;
388
+ readonly icon?: string | undefined;
389
+ readonly componentId: string;
390
+ readonly categories?: readonly string[] | undefined;
391
+ readonly visibilityDependsOn?: {
392
+ readonly menuId?: string | undefined;
393
+ readonly itemIds?: readonly string[] | undefined;
394
+ } | undefined;
395
+ }[];
396
+ readonly defaultTab?: string | undefined;
397
+ } | {
398
+ readonly type: "component";
399
+ readonly componentId: string;
400
+ readonly props?: {
401
+ readonly [x: string]: any;
402
+ } | undefined;
403
+ };
404
+ readonly collapsible?: boolean | undefined;
405
+ readonly defaultOpen?: boolean | undefined;
406
+ readonly closeOnClickOutside?: boolean | undefined;
407
+ readonly width?: string | undefined;
408
+ readonly height?: string | undefined;
409
+ readonly minWidth?: string | undefined;
410
+ readonly minHeight?: string | undefined;
411
+ readonly maxWidth?: string | undefined;
412
+ readonly maxHeight?: string | undefined;
413
+ readonly categories?: readonly string[] | undefined;
414
+ readonly visibilityDependsOn?: {
415
+ readonly menuId?: string | undefined;
416
+ readonly itemIds?: readonly string[] | undefined;
417
+ } | undefined;
418
+ };
419
+ };
420
+ readonly selectionMenus: {
421
+ readonly [x: string]: {
422
+ readonly id: string;
423
+ readonly items: readonly ({
424
+ readonly type: "command-button";
425
+ readonly id: string;
426
+ readonly commandId: string;
427
+ readonly variant?: "icon" | "text" | "icon-text" | undefined;
428
+ readonly categories?: readonly string[] | undefined;
429
+ readonly visibilityDependsOn?: {
430
+ readonly menuId?: string | undefined;
431
+ readonly itemIds?: readonly string[] | undefined;
432
+ } | undefined;
433
+ } | {
434
+ readonly type: "divider";
435
+ readonly id: string;
436
+ readonly categories?: readonly string[] | undefined;
437
+ readonly visibilityDependsOn?: {
438
+ readonly menuId?: string | undefined;
439
+ readonly itemIds?: readonly string[] | undefined;
440
+ } | undefined;
441
+ } | {
442
+ readonly type: "group";
443
+ readonly id: string;
444
+ readonly items: readonly ({
445
+ readonly type: "command-button";
446
+ readonly id: string;
447
+ readonly commandId: string;
448
+ readonly variant?: "icon" | "text" | "icon-text" | undefined;
449
+ readonly categories?: readonly string[] | undefined;
450
+ readonly visibilityDependsOn?: {
451
+ readonly menuId?: string | undefined;
452
+ readonly itemIds?: readonly string[] | undefined;
453
+ } | undefined;
454
+ } | {
455
+ readonly type: "divider";
456
+ readonly id: string;
457
+ readonly categories?: readonly string[] | undefined;
458
+ readonly visibilityDependsOn?: {
459
+ readonly menuId?: string | undefined;
460
+ readonly itemIds?: readonly string[] | undefined;
461
+ } | undefined;
462
+ } | /*elided*/ any)[];
463
+ readonly gap?: number | undefined;
464
+ readonly categories?: readonly string[] | undefined;
465
+ readonly visibilityDependsOn?: {
466
+ readonly menuId?: string | undefined;
467
+ readonly itemIds?: readonly string[] | undefined;
468
+ } | undefined;
469
+ })[];
470
+ readonly categories?: readonly string[] | undefined;
471
+ readonly visibilityDependsOn?: {
472
+ readonly menuId?: string | undefined;
473
+ readonly itemIds?: readonly string[] | undefined;
474
+ } | undefined;
475
+ readonly responsive?: {
476
+ readonly breakpoints: {
477
+ readonly [x: string]: {
478
+ readonly minWidth?: number | undefined;
479
+ readonly maxWidth?: number | undefined;
480
+ readonly hide?: readonly string[] | undefined;
481
+ readonly show?: readonly string[] | undefined;
482
+ };
483
+ };
484
+ readonly localeOverrides?: {
485
+ readonly groups: readonly {
486
+ readonly id: string;
487
+ readonly locales: readonly string[];
488
+ readonly description?: string | undefined;
489
+ readonly breakpoints: {
490
+ readonly [x: string]: {
491
+ readonly hide?: readonly string[] | undefined;
492
+ readonly show?: readonly string[] | undefined;
493
+ readonly replaceHide?: readonly string[] | undefined;
494
+ readonly replaceShow?: readonly string[] | undefined;
495
+ };
496
+ };
497
+ }[];
498
+ } | undefined;
499
+ } | undefined;
500
+ };
501
+ };
502
+ } | null, {
503
+ readonly id: string;
504
+ readonly version: string;
505
+ readonly toolbars: {
506
+ readonly [x: string]: {
507
+ readonly id: string;
508
+ readonly position: {
509
+ readonly placement: "top" | "bottom" | "left" | "right";
510
+ readonly slot?: string | undefined;
511
+ readonly order?: number | undefined;
512
+ };
513
+ readonly permanent?: boolean | undefined;
514
+ readonly items: readonly ({
515
+ readonly type: "custom";
516
+ readonly id: string;
517
+ readonly componentId: string;
518
+ readonly props?: {
519
+ readonly [x: string]: any;
520
+ } | undefined;
521
+ readonly categories?: readonly string[] | undefined;
522
+ readonly visibilityDependsOn?: {
523
+ readonly menuId?: string | undefined;
524
+ readonly itemIds?: readonly string[] | undefined;
525
+ } | undefined;
526
+ } | {
527
+ readonly type: "command-button";
528
+ readonly id: string;
529
+ readonly commandId: string;
530
+ readonly variant?: "icon" | "text" | "icon-text" | "tab" | undefined;
531
+ readonly size?: "sm" | "md" | "lg" | undefined;
532
+ readonly categories?: readonly string[] | undefined;
533
+ readonly visibilityDependsOn?: {
534
+ readonly menuId?: string | undefined;
535
+ readonly itemIds?: readonly string[] | undefined;
536
+ } | undefined;
537
+ } | {
538
+ readonly type: "tab-group";
539
+ readonly id: string;
540
+ readonly tabs: readonly {
541
+ readonly id: string;
542
+ readonly commandId: string;
543
+ readonly variant?: "icon" | "text" | "icon-text" | undefined;
544
+ readonly categories?: readonly string[] | undefined;
545
+ readonly visibilityDependsOn?: {
546
+ readonly menuId?: string | undefined;
547
+ readonly itemIds?: readonly string[] | undefined;
548
+ } | undefined;
549
+ }[];
550
+ readonly defaultTab?: string | undefined;
551
+ readonly variant?: "pills" | "underline" | "enclosed" | undefined;
552
+ readonly alignment?: "start" | "center" | "end" | undefined;
553
+ readonly categories?: readonly string[] | undefined;
554
+ readonly visibilityDependsOn?: {
555
+ readonly menuId?: string | undefined;
556
+ readonly itemIds?: readonly string[] | undefined;
557
+ } | undefined;
558
+ } | {
559
+ readonly type: "divider";
560
+ readonly id: string;
561
+ readonly orientation?: "vertical" | "horizontal" | undefined;
562
+ readonly categories?: readonly string[] | undefined;
563
+ readonly visibilityDependsOn?: {
564
+ readonly menuId?: string | undefined;
565
+ readonly itemIds?: readonly string[] | undefined;
566
+ } | undefined;
567
+ } | {
568
+ readonly type: "spacer";
569
+ readonly id: string;
570
+ readonly flex?: boolean | undefined;
571
+ readonly categories?: readonly string[] | undefined;
572
+ readonly visibilityDependsOn?: {
573
+ readonly menuId?: string | undefined;
574
+ readonly itemIds?: readonly string[] | undefined;
575
+ } | undefined;
576
+ } | {
577
+ readonly type: "group";
578
+ readonly id: string;
579
+ readonly items: readonly ({
580
+ readonly type: "custom";
581
+ readonly id: string;
582
+ readonly componentId: string;
583
+ readonly props?: {
584
+ readonly [x: string]: any;
585
+ } | undefined;
586
+ readonly categories?: readonly string[] | undefined;
587
+ readonly visibilityDependsOn?: {
588
+ readonly menuId?: string | undefined;
589
+ readonly itemIds?: readonly string[] | undefined;
590
+ } | undefined;
591
+ } | {
592
+ readonly type: "command-button";
593
+ readonly id: string;
594
+ readonly commandId: string;
595
+ readonly variant?: "icon" | "text" | "icon-text" | "tab" | undefined;
596
+ readonly size?: "sm" | "md" | "lg" | undefined;
597
+ readonly categories?: readonly string[] | undefined;
598
+ readonly visibilityDependsOn?: {
599
+ readonly menuId?: string | undefined;
600
+ readonly itemIds?: readonly string[] | undefined;
601
+ } | undefined;
602
+ } | {
603
+ readonly type: "tab-group";
604
+ readonly id: string;
605
+ readonly tabs: readonly {
606
+ readonly id: string;
607
+ readonly commandId: string;
608
+ readonly variant?: "icon" | "text" | "icon-text" | undefined;
609
+ readonly categories?: readonly string[] | undefined;
610
+ readonly visibilityDependsOn?: {
611
+ readonly menuId?: string | undefined;
612
+ readonly itemIds?: readonly string[] | undefined;
613
+ } | undefined;
614
+ }[];
615
+ readonly defaultTab?: string | undefined;
616
+ readonly variant?: "pills" | "underline" | "enclosed" | undefined;
617
+ readonly alignment?: "start" | "center" | "end" | undefined;
618
+ readonly categories?: readonly string[] | undefined;
619
+ readonly visibilityDependsOn?: {
620
+ readonly menuId?: string | undefined;
621
+ readonly itemIds?: readonly string[] | undefined;
622
+ } | undefined;
623
+ } | {
624
+ readonly type: "divider";
625
+ readonly id: string;
626
+ readonly orientation?: "vertical" | "horizontal" | undefined;
627
+ readonly categories?: readonly string[] | undefined;
628
+ readonly visibilityDependsOn?: {
629
+ readonly menuId?: string | undefined;
630
+ readonly itemIds?: readonly string[] | undefined;
631
+ } | undefined;
632
+ } | {
633
+ readonly type: "spacer";
634
+ readonly id: string;
635
+ readonly flex?: boolean | undefined;
636
+ readonly categories?: readonly string[] | undefined;
637
+ readonly visibilityDependsOn?: {
638
+ readonly menuId?: string | undefined;
639
+ readonly itemIds?: readonly string[] | undefined;
640
+ } | undefined;
641
+ } | /*elided*/ any)[];
642
+ readonly gap?: number | undefined;
643
+ readonly alignment?: "start" | "center" | "end" | undefined;
644
+ readonly categories?: readonly string[] | undefined;
645
+ readonly visibilityDependsOn?: {
646
+ readonly menuId?: string | undefined;
647
+ readonly itemIds?: readonly string[] | undefined;
648
+ } | undefined;
649
+ })[];
650
+ readonly responsive?: {
651
+ readonly breakpoints: {
652
+ readonly [x: string]: {
653
+ readonly minWidth?: number | undefined;
654
+ readonly maxWidth?: number | undefined;
655
+ readonly hide?: readonly string[] | undefined;
656
+ readonly show?: readonly string[] | undefined;
657
+ };
658
+ };
659
+ readonly localeOverrides?: {
660
+ readonly groups: readonly {
661
+ readonly id: string;
662
+ readonly locales: readonly string[];
663
+ readonly description?: string | undefined;
664
+ readonly breakpoints: {
665
+ readonly [x: string]: {
666
+ readonly hide?: readonly string[] | undefined;
667
+ readonly show?: readonly string[] | undefined;
668
+ readonly replaceHide?: readonly string[] | undefined;
669
+ readonly replaceShow?: readonly string[] | undefined;
670
+ };
671
+ };
672
+ }[];
673
+ } | undefined;
674
+ } | undefined;
675
+ readonly categories?: readonly string[] | undefined;
676
+ readonly visibilityDependsOn?: {
677
+ readonly menuId?: string | undefined;
678
+ readonly itemIds?: readonly string[] | undefined;
679
+ } | undefined;
680
+ };
681
+ };
682
+ readonly menus: {
683
+ readonly [x: string]: {
684
+ readonly id: string;
685
+ readonly items: readonly ({
686
+ readonly type: "command";
687
+ readonly id: string;
688
+ readonly commandId: string;
689
+ readonly categories?: readonly string[] | undefined;
690
+ readonly visibilityDependsOn?: {
691
+ readonly menuId?: string | undefined;
692
+ readonly itemIds?: readonly string[] | undefined;
693
+ } | undefined;
694
+ } | {
695
+ readonly type: "section";
696
+ readonly id: string;
697
+ readonly labelKey?: string | undefined;
698
+ readonly label?: string | undefined;
699
+ readonly items: readonly ({
700
+ readonly type: "command";
701
+ readonly id: string;
702
+ readonly commandId: string;
703
+ readonly categories?: readonly string[] | undefined;
704
+ readonly visibilityDependsOn?: {
705
+ readonly menuId?: string | undefined;
706
+ readonly itemIds?: readonly string[] | undefined;
707
+ } | undefined;
708
+ } | /*elided*/ any | {
709
+ readonly type: "submenu";
710
+ readonly id: string;
711
+ readonly labelKey?: string | undefined;
712
+ readonly label?: string | undefined;
713
+ readonly icon?: string | undefined;
714
+ readonly menuId: string;
715
+ readonly categories?: readonly string[] | undefined;
716
+ readonly visibilityDependsOn?: {
717
+ readonly menuId?: string | undefined;
718
+ readonly itemIds?: readonly string[] | undefined;
719
+ } | undefined;
720
+ } | {
721
+ readonly type: "divider";
722
+ readonly id: string;
723
+ readonly categories?: readonly string[] | undefined;
724
+ readonly visibilityDependsOn?: {
725
+ readonly menuId?: string | undefined;
726
+ readonly itemIds?: readonly string[] | undefined;
727
+ } | undefined;
728
+ } | {
729
+ readonly type: "custom";
730
+ readonly id: string;
731
+ readonly componentId: string;
732
+ readonly props?: {
733
+ readonly [x: string]: any;
734
+ } | undefined;
735
+ readonly categories?: readonly string[] | undefined;
736
+ readonly visibilityDependsOn?: {
737
+ readonly menuId?: string | undefined;
738
+ readonly itemIds?: readonly string[] | undefined;
739
+ } | undefined;
740
+ })[];
741
+ readonly categories?: readonly string[] | undefined;
742
+ readonly visibilityDependsOn?: {
743
+ readonly menuId?: string | undefined;
744
+ readonly itemIds?: readonly string[] | undefined;
745
+ } | undefined;
746
+ } | {
747
+ readonly type: "submenu";
748
+ readonly id: string;
749
+ readonly labelKey?: string | undefined;
750
+ readonly label?: string | undefined;
751
+ readonly icon?: string | undefined;
752
+ readonly menuId: string;
753
+ readonly categories?: readonly string[] | undefined;
754
+ readonly visibilityDependsOn?: {
755
+ readonly menuId?: string | undefined;
756
+ readonly itemIds?: readonly string[] | undefined;
757
+ } | undefined;
758
+ } | {
759
+ readonly type: "divider";
760
+ readonly id: string;
761
+ readonly categories?: readonly string[] | undefined;
762
+ readonly visibilityDependsOn?: {
763
+ readonly menuId?: string | undefined;
764
+ readonly itemIds?: readonly string[] | undefined;
765
+ } | undefined;
766
+ } | {
767
+ readonly type: "custom";
768
+ readonly id: string;
769
+ readonly componentId: string;
770
+ readonly props?: {
771
+ readonly [x: string]: any;
772
+ } | undefined;
773
+ readonly categories?: readonly string[] | undefined;
774
+ readonly visibilityDependsOn?: {
775
+ readonly menuId?: string | undefined;
776
+ readonly itemIds?: readonly string[] | undefined;
777
+ } | undefined;
778
+ })[];
779
+ readonly responsive?: {
780
+ readonly breakpoints: {
781
+ readonly [x: string]: {
782
+ readonly minWidth?: number | undefined;
783
+ readonly maxWidth?: number | undefined;
784
+ readonly hide?: readonly string[] | undefined;
785
+ readonly show?: readonly string[] | undefined;
786
+ };
787
+ };
788
+ readonly localeOverrides?: {
789
+ readonly groups: readonly {
790
+ readonly id: string;
791
+ readonly locales: readonly string[];
792
+ readonly description?: string | undefined;
793
+ readonly breakpoints: {
794
+ readonly [x: string]: {
795
+ readonly hide?: readonly string[] | undefined;
796
+ readonly show?: readonly string[] | undefined;
797
+ readonly replaceHide?: readonly string[] | undefined;
798
+ readonly replaceShow?: readonly string[] | undefined;
799
+ };
800
+ };
801
+ }[];
802
+ } | undefined;
803
+ } | undefined;
804
+ readonly categories?: readonly string[] | undefined;
805
+ readonly visibilityDependsOn?: {
806
+ readonly menuId?: string | undefined;
807
+ readonly itemIds?: readonly string[] | undefined;
808
+ } | undefined;
809
+ };
810
+ };
811
+ readonly panels: {
812
+ readonly [x: string]: {
813
+ readonly id: string;
814
+ readonly type: "sidebar" | "overlay" | "modal" | "popover";
815
+ readonly position?: {
816
+ readonly placement: "left" | "right" | "top" | "bottom";
817
+ readonly slot?: string | undefined;
818
+ readonly order?: number | undefined;
819
+ } | undefined;
820
+ readonly content: {
821
+ readonly type: "tabs";
822
+ readonly tabs: readonly {
823
+ readonly id: string;
824
+ readonly labelKey?: string | undefined;
825
+ readonly label?: string | undefined;
826
+ readonly icon?: string | undefined;
827
+ readonly componentId: string;
828
+ readonly categories?: readonly string[] | undefined;
829
+ readonly visibilityDependsOn?: {
830
+ readonly menuId?: string | undefined;
831
+ readonly itemIds?: readonly string[] | undefined;
832
+ } | undefined;
833
+ }[];
834
+ readonly defaultTab?: string | undefined;
835
+ } | {
836
+ readonly type: "component";
837
+ readonly componentId: string;
838
+ readonly props?: {
839
+ readonly [x: string]: any;
840
+ } | undefined;
841
+ };
842
+ readonly collapsible?: boolean | undefined;
843
+ readonly defaultOpen?: boolean | undefined;
844
+ readonly closeOnClickOutside?: boolean | undefined;
845
+ readonly width?: string | undefined;
846
+ readonly height?: string | undefined;
847
+ readonly minWidth?: string | undefined;
848
+ readonly minHeight?: string | undefined;
849
+ readonly maxWidth?: string | undefined;
850
+ readonly maxHeight?: string | undefined;
851
+ readonly categories?: readonly string[] | undefined;
852
+ readonly visibilityDependsOn?: {
853
+ readonly menuId?: string | undefined;
854
+ readonly itemIds?: readonly string[] | undefined;
855
+ } | undefined;
856
+ };
857
+ };
858
+ readonly selectionMenus: {
859
+ readonly [x: string]: {
860
+ readonly id: string;
861
+ readonly items: readonly ({
862
+ readonly type: "command-button";
863
+ readonly id: string;
864
+ readonly commandId: string;
865
+ readonly variant?: "icon" | "text" | "icon-text" | undefined;
866
+ readonly categories?: readonly string[] | undefined;
867
+ readonly visibilityDependsOn?: {
868
+ readonly menuId?: string | undefined;
869
+ readonly itemIds?: readonly string[] | undefined;
870
+ } | undefined;
871
+ } | {
872
+ readonly type: "divider";
873
+ readonly id: string;
874
+ readonly categories?: readonly string[] | undefined;
875
+ readonly visibilityDependsOn?: {
876
+ readonly menuId?: string | undefined;
877
+ readonly itemIds?: readonly string[] | undefined;
878
+ } | undefined;
879
+ } | {
880
+ readonly type: "group";
881
+ readonly id: string;
882
+ readonly items: readonly ({
883
+ readonly type: "command-button";
884
+ readonly id: string;
885
+ readonly commandId: string;
886
+ readonly variant?: "icon" | "text" | "icon-text" | undefined;
887
+ readonly categories?: readonly string[] | undefined;
888
+ readonly visibilityDependsOn?: {
889
+ readonly menuId?: string | undefined;
890
+ readonly itemIds?: readonly string[] | undefined;
891
+ } | undefined;
892
+ } | {
893
+ readonly type: "divider";
894
+ readonly id: string;
895
+ readonly categories?: readonly string[] | undefined;
896
+ readonly visibilityDependsOn?: {
897
+ readonly menuId?: string | undefined;
898
+ readonly itemIds?: readonly string[] | undefined;
899
+ } | undefined;
900
+ } | /*elided*/ any)[];
901
+ readonly gap?: number | undefined;
902
+ readonly categories?: readonly string[] | undefined;
903
+ readonly visibilityDependsOn?: {
904
+ readonly menuId?: string | undefined;
905
+ readonly itemIds?: readonly string[] | undefined;
906
+ } | undefined;
907
+ })[];
908
+ readonly categories?: readonly string[] | undefined;
909
+ readonly visibilityDependsOn?: {
910
+ readonly menuId?: string | undefined;
911
+ readonly itemIds?: readonly string[] | undefined;
912
+ } | undefined;
913
+ readonly responsive?: {
914
+ readonly breakpoints: {
915
+ readonly [x: string]: {
916
+ readonly minWidth?: number | undefined;
917
+ readonly maxWidth?: number | undefined;
918
+ readonly hide?: readonly string[] | undefined;
919
+ readonly show?: readonly string[] | undefined;
920
+ };
921
+ };
922
+ readonly localeOverrides?: {
923
+ readonly groups: readonly {
924
+ readonly id: string;
925
+ readonly locales: readonly string[];
926
+ readonly description?: string | undefined;
927
+ readonly breakpoints: {
928
+ readonly [x: string]: {
929
+ readonly hide?: readonly string[] | undefined;
930
+ readonly show?: readonly string[] | undefined;
931
+ readonly replaceHide?: readonly string[] | undefined;
932
+ readonly replaceShow?: readonly string[] | undefined;
933
+ };
934
+ };
935
+ }[];
936
+ } | undefined;
937
+ } | undefined;
938
+ };
939
+ };
940
+ } | null>>;