@harbour-enterprises/superdoc 0.11.32 → 0.11.34

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 (43) hide show
  1. package/dist/chunks/{eventemitter3-CRfwKE7Z.es.js → eventemitter3-C9iBZY5R.es.js} +1 -1
  2. package/dist/chunks/{eventemitter3-D38HWRLP.cjs → eventemitter3-Cj9ZwxFw.cjs} +1 -1
  3. package/dist/chunks/{index-CPZ-IxHT.es.js → index-BTkgQgI7.es.js} +2 -2
  4. package/dist/chunks/{index-BXKGjuVW.cjs → index-C6SLw2ph.cjs} +1 -1
  5. package/dist/chunks/{index-CqRwYOdx.cjs → index-CbUTRvRk.cjs} +1 -1
  6. package/dist/chunks/{index-Y7BlAr93.es.js → index-kWwSELc2.es.js} +4 -4
  7. package/dist/chunks/{jszip-ChlzEvf9.cjs → jszip-D9YbjC4E.cjs} +1 -1
  8. package/dist/chunks/{jszip-DO3il9iI.es.js → jszip-OpmRHhd4.es.js} +1 -1
  9. package/dist/chunks/{super-editor.es-ZJ0ylc_0.cjs → super-editor.es-CYMQ40x9.cjs} +65 -65
  10. package/dist/chunks/{super-editor.es-Bs9UaxnP.es.js → super-editor.es-SDc8qWY8.es.js} +11447 -11035
  11. package/dist/chunks/{url-t15h9onH.es.js → url-C29KYeaj.es.js} +2 -2
  12. package/dist/chunks/{url-6Xu7gR4T.cjs → url-DRGmEUtI.cjs} +1 -1
  13. package/dist/chunks/vue-BQCc2YbW.cjs +13 -0
  14. package/dist/chunks/{vue-DXpzqXur.es.js → vue-DKS68Dra.es.js} +1159 -1140
  15. package/dist/chunks/{xml-js-zhwNEV5e.cjs → xml-js-CMQ3QRee.cjs} +1 -1
  16. package/dist/chunks/{xml-js-kwrvzyhm.es.js → xml-js-CgHhGhcJ.es.js} +2 -2
  17. package/dist/super-editor/ai-writer.es.js +2 -2
  18. package/dist/super-editor/chunks/{converter-ajcAkpke.js → converter-DnveZphs.js} +681 -651
  19. package/dist/super-editor/chunks/{docx-zipper-BQ70zniM.js → docx-zipper-B-azX40c.js} +1 -1
  20. package/dist/super-editor/chunks/{editor-CI9Y8Eul.js → editor-XSjyC_V1.js} +10613 -10390
  21. package/dist/super-editor/chunks/{toolbar-DhThnUPN.js → toolbar-DhWBLihJ.js} +2 -2
  22. package/dist/super-editor/components/toolbar/super-toolbar.d.ts +454 -83
  23. package/dist/super-editor/components/toolbar/super-toolbar.d.ts.map +1 -1
  24. package/dist/super-editor/converter.es.js +1 -1
  25. package/dist/super-editor/core/Attribute.d.ts +2 -2
  26. package/dist/super-editor/core/Editor.d.ts +470 -45
  27. package/dist/super-editor/core/Editor.d.ts.map +1 -1
  28. package/dist/super-editor/core/Schema.d.ts +2 -2
  29. package/dist/super-editor/core/index.d.ts +3 -3
  30. package/dist/super-editor/core/super-converter/exporter.d.ts.map +1 -1
  31. package/dist/super-editor/docx-zipper.es.js +2 -2
  32. package/dist/super-editor/editor.es.js +3 -3
  33. package/dist/super-editor/file-zipper.es.js +1 -1
  34. package/dist/super-editor/super-editor.es.js +225 -27
  35. package/dist/super-editor/toolbar.es.js +2 -2
  36. package/dist/super-editor.cjs +1 -1
  37. package/dist/super-editor.es.js +2 -2
  38. package/dist/superdoc.cjs +5 -5
  39. package/dist/superdoc.es.js +9 -9
  40. package/dist/superdoc.umd.js +11412 -10964
  41. package/dist/superdoc.umd.js.map +1 -1
  42. package/package.json +1 -1
  43. package/dist/chunks/vue-Ckf0DkDN.cjs +0 -13
@@ -1,6 +1,6 @@
1
1
  import { computed as _, createElementBlock as ie, openBlock as q, createElementVNode as Ot, createCommentVNode as he, normalizeClass as en, normalizeStyle as Tt, ref as R, unref as W, createBlock as Ge, toDisplayString as Xn, withDirectives as ft, withKeys as Hr, withModifiers as jr, vModelText as Wr, getCurrentInstance as Lt, createVNode as ct, readonly as tn, watch as we, onMounted as Ke, onBeforeUnmount as Be, reactive as Us, onBeforeMount as fr, inject as te, onActivated as Gs, onDeactivated as oi, createTextVNode as ht, Fragment as _e, Comment as hr, defineComponent as ee, provide as Se, h as A, Teleport as Xs, toRef as se, nextTick as ii, renderSlot as qs, isVNode as Ys, shallowRef as Zs, watchEffect as pt, mergeProps as gt, Transition as nn, vShow as Js, cloneVNode as Qs, Text as el, renderList as tl, withCtx as xt } from "vue";
2
- import { p as rn } from "./converter-ajcAkpke.js";
3
- import { _ as mt, g as kt } from "./editor-CI9Y8Eul.js";
2
+ import { x as rn } from "./converter-DnveZphs.js";
3
+ import { _ as mt, g as kt } from "./editor-XSjyC_V1.js";
4
4
  const I0 = (e, t) => {
5
5
  let n = e.replace(/[^0-9.]/g, "");
6
6
  return n = parseFloat(n), isNaN(n) && (n = t), n = parseFloat(n), n;
@@ -1,115 +1,486 @@
1
+ /**
2
+ * @typedef {Object} ToolbarConfig
3
+ * @property {string} [selector] - CSS selector for the toolbar container
4
+ * @property {string[]} [toolbarGroups=['left', 'center', 'right']] - Groups to organize toolbar items
5
+ * @property {string} [role='editor'] - Role of the toolbar ('editor' or 'viewer')
6
+ * @property {boolean} [pagination=false] - Whether pagination is enabled
7
+ * @property {Object} [icons] - Custom icons for toolbar items
8
+ * @property {string} [mode='docx'] - Editor mode
9
+ * @property {string[]} [excludeItems=[]] - Items to exclude from the toolbar
10
+ * @property {Object} [groups=null] - Custom groups configuration
11
+ * @property {Object} [editor=null] - The editor instance
12
+ * @property {string} [aiApiKey=null] - API key for AI integration
13
+ * @property {string} [aiEndpoint=null] - Endpoint for AI integration
14
+ */
15
+ /**
16
+ * @typedef {Object} ToolbarItem
17
+ * @property {Object} id - The unique ID of the toolbar item
18
+ * @property {string} id.value - The value of the ID
19
+ * @property {Object} name - The name of the toolbar item
20
+ * @property {string} name.value - The value of the name
21
+ * @property {string} type - The type of toolbar item (button, options, separator, dropdown, overflow)
22
+ * @property {Object} group - The group the item belongs to
23
+ * @property {string} group.value - The value of the group
24
+ * @property {string} command - The command to execute
25
+ * @property {string} [noArgumentCommand] - The command to execute when no argument is provided
26
+ * @property {Object} icon - The icon for the item
27
+ * @property {*} icon.value - The value of the icon
28
+ * @property {Object} tooltip - The tooltip for the item
29
+ * @property {*} tooltip.value - The value of the tooltip
30
+ * @property {Object} attributes - Additional attributes for the item
31
+ * @property {Object} attributes.value - The value of the attributes
32
+ * @property {Object} disabled - Whether the item is disabled
33
+ * @property {boolean} disabled.value - The value of disabled
34
+ * @property {Object} active - Whether the item is active
35
+ * @property {boolean} active.value - The value of active
36
+ * @property {Object} expand - Whether the item is expanded
37
+ * @property {boolean} expand.value - The value of expand
38
+ * @property {Object} nestedOptions - Nested options for the item
39
+ * @property {Array} nestedOptions.value - The array of nested options
40
+ * @property {Object} style - Custom style for the item
41
+ * @property {*} style.value - The value of the style
42
+ * @property {Object} isNarrow - Whether the item has narrow styling
43
+ * @property {boolean} isNarrow.value - The value of isNarrow
44
+ * @property {Object} isWide - Whether the item has wide styling
45
+ * @property {boolean} isWide.value - The value of isWide
46
+ * @property {Object} minWidth - Minimum width of the item
47
+ * @property {*} minWidth.value - The value of minWidth
48
+ * @property {Object} argument - The argument to pass to the command
49
+ * @property {*} argument.value - The value of the argument
50
+ * @property {Object} parentItem - The parent of this item if nested
51
+ * @property {*} parentItem.value - The value of parentItem
52
+ * @property {Object} childItem - The child of this item if it has one
53
+ * @property {*} childItem.value - The value of childItem
54
+ * @property {Object} iconColor - The color of the icon
55
+ * @property {*} iconColor.value - The value of iconColor
56
+ * @property {Object} hasCaret - Whether the item has a dropdown caret
57
+ * @property {boolean} hasCaret.value - The value of hasCaret
58
+ * @property {Object} dropdownStyles - Custom styles for dropdown
59
+ * @property {*} dropdownStyles.value - The value of dropdownStyles
60
+ * @property {Object} tooltipVisible - Whether the tooltip is visible
61
+ * @property {boolean} tooltipVisible.value - The value of tooltipVisible
62
+ * @property {Object} tooltipTimeout - Timeout for the tooltip
63
+ * @property {*} tooltipTimeout.value - The value of tooltipTimeout
64
+ * @property {Object} defaultLabel - The default label for the item
65
+ * @property {*} defaultLabel.value - The value of the default label
66
+ * @property {Object} label - The label for the item
67
+ * @property {*} label.value - The value of the label
68
+ * @property {Object} hideLabel - Whether to hide the label
69
+ * @property {boolean} hideLabel.value - The value of hideLabel
70
+ * @property {Object} inlineTextInputVisible - Whether inline text input is visible
71
+ * @property {boolean} inlineTextInputVisible.value - The value of inlineTextInputVisible
72
+ * @property {Object} hasInlineTextInput - Whether the item has inline text input
73
+ * @property {boolean} hasInlineTextInput.value - The value of hasInlineTextInput
74
+ * @property {Object} markName - The name of the mark
75
+ * @property {*} markName.value - The value of markName
76
+ * @property {Object} labelAttr - The attribute for the label
77
+ * @property {*} labelAttr.value - The value of labelAttr
78
+ * @property {Object} allowWithoutEditor - Whether the item can be used without an editor
79
+ * @property {boolean} allowWithoutEditor.value - The value of allowWithoutEditor
80
+ * @property {Object} dropdownValueKey - The key for dropdown value
81
+ * @property {*} dropdownValueKey.value - The value of dropdownValueKey
82
+ * @property {Object} selectedValue - The selected value for the item
83
+ * @property {*} selectedValue.value - The value of the selected value
84
+ * @property {Object} inputRef - Reference to an input element
85
+ * @property {*} inputRef.value - The value of inputRef
86
+ * @property {Function} unref - Function to get unreferenced values
87
+ * @property {Function} activate - Function to activate the item
88
+ * @property {Function} deactivate - Function to deactivate the item
89
+ * @property {Function} setDisabled - Function to set the disabled state
90
+ * @property {Function} resetDisabled - Function to reset the disabled state
91
+ * @property {Function} onActivate - Function called when the item is activated
92
+ * @property {Function} onDeactivate - Function called when the item is deactivated
93
+ */
94
+ /**
95
+ * @typedef {Object} CommandItem
96
+ * @property {ToolbarItem} item - The toolbar item
97
+ * @property {*} [argument] - The argument to pass to the command
98
+ */
99
+ /**
100
+ * A customizable toolbar for the Super Editor
101
+ * @class
102
+ * @extends EventEmitter
103
+ */
1
104
  export class SuperToolbar extends EventEmitter<string | symbol, any> {
2
- constructor(config: any);
3
- config: {
4
- selector: any;
5
- toolbarGroups: string[];
6
- role: string;
7
- pagination: boolean;
8
- icons: {
9
- undo: any;
10
- redo: any;
11
- bold: any;
12
- italic: any;
13
- underline: any;
14
- color: any;
15
- link: any;
16
- image: any;
17
- alignLeft: any;
18
- alignRight: any;
19
- alignCenter: any;
20
- alignJustify: any;
21
- bulletList: any;
22
- numberedList: any;
23
- indentLeft: any;
24
- indentRight: any;
25
- pageBreak: any;
26
- copyFormat: any;
27
- clearFormatting: any;
28
- trackChanges: any;
29
- trackChangesFinal: any;
30
- trackChangesOriginal: any;
31
- trackChangesAccept: any;
32
- trackChangesReject: any;
33
- documentMode: any;
34
- documentEditingMode: any;
35
- documentSuggestingMode: any;
36
- documentViewingMode: any;
37
- colorOption: any;
38
- colorOptionCheck: any;
39
- linkInput: any;
40
- removeLink: any;
41
- openLink: any;
42
- overflow: any;
43
- dropdownCaretUp: any;
44
- dropdownCaretDown: any;
45
- ruler: any;
46
- paintbrush: any;
47
- highlight: any;
48
- ai: any;
49
- table: any;
50
- tableActions: any;
51
- splitCell: any;
52
- mergeCells: any;
53
- addRowBefore: any;
54
- addRowAfter: any;
55
- addColumnBefore: any;
56
- addColumnAfter: any;
57
- deleteRow: any;
58
- deleteColumn: any;
59
- deleteTable: any;
60
- deleteBorders: any;
61
- fixTables: any;
62
- lineHeight: any;
63
- search: any;
64
- };
65
- mode: string;
66
- excludeItems: any[];
67
- groups: any;
68
- editor: any;
69
- aiApiKey: any;
70
- aiEndpoint: any;
71
- };
105
+ /**
106
+ * Creates a new SuperToolbar instance
107
+ * @param {ToolbarConfig} config - The configuration for the toolbar
108
+ * @returns {void}
109
+ */
110
+ constructor(config: ToolbarConfig);
111
+ /**
112
+ * Default configuration for the toolbar
113
+ * @type {ToolbarConfig}
114
+ */
115
+ config: ToolbarConfig;
72
116
  toolbarItems: any[];
73
117
  overflowItems: any[];
74
118
  documentMode: any;
75
119
  isDev: any;
76
120
  superdoc: any;
77
- role: any;
121
+ role: string;
78
122
  app: import("vue").App<Element>;
79
123
  toolbar: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}, {}, {}, string, import("vue").ComponentProvideOptions>, {}, {}, "", {}, any>;
80
124
  activeEditor: any;
125
+ /**
126
+ * Log debug information to the console
127
+ * @param {...*} args - Arguments to log
128
+ * @returns {void}
129
+ */
81
130
  log(...args: any[]): void;
82
- setZoom(percent_int: any): void;
131
+ /**
132
+ * Set the zoom level
133
+ * @param {number} percent_int - The zoom percentage as an integer
134
+ * @returns {void}
135
+ */
136
+ setZoom(percent_int: number): void;
83
137
  /**
84
138
  * The toolbar expects an active Super Editor instance.
85
- * @param {*} editor
139
+ * @param {Object} editor - The editor instance to attach to the toolbar
140
+ * @returns {void}
86
141
  */
87
142
  setActiveEditor(editor: any): void;
88
- getToolbarItemByGroup(groupName: any): any[];
89
- getToolbarItemByName(name: any): any;
90
143
  /**
91
- * Update the toolbar state. Expects a list of marks in the form: { name, attrs }
92
- * @param {Object} marks
144
+ * Get toolbar items by group name
145
+ * @param {string} groupName - The name of the group
146
+ * @returns {ToolbarItem[]} An array of toolbar items in the specified group
147
+ */
148
+ getToolbarItemByGroup(groupName: string): ToolbarItem[];
149
+ /**
150
+ * Get a toolbar item by name
151
+ * @param {string} name - The name of the toolbar item
152
+ * @returns {ToolbarItem|undefined} The toolbar item with the specified name or undefined if not found
153
+ */
154
+ getToolbarItemByName(name: string): ToolbarItem | undefined;
155
+ /**
156
+ * Update the toolbar state based on the current editor state
157
+ * Updates active/inactive state of all toolbar items
158
+ * @returns {void}
93
159
  */
94
160
  updateToolbarState(): void;
161
+ /**
162
+ * Handler for toolbar resize events
163
+ * @returns {void}
164
+ */
95
165
  onToolbarResize: () => void;
96
166
  undoDepth: any;
97
167
  redoDepth: any;
98
168
  /**
99
169
  * React to editor transactions. Might want to debounce this.
170
+ * @param {Object} params - Transaction parameters
171
+ * @param {Object} params.editor - The editor instance (not used)
172
+ * @param {Object} params.transaction - The transaction object
173
+ * @returns {void}
100
174
  */
101
175
  onEditorTransaction({ editor, transaction }: {
102
176
  editor: any;
103
177
  transaction: any;
104
178
  }): void;
105
179
  /**
106
- * Main handler for toolbar commands.
107
- *
108
- * @param {Object} item is an instance of the useToolbarItem composable
109
- * @param {Object} argument is the argument passed to the command
110
- */
111
- emitCommand({ item, argument }: any): any;
180
+ * Main handler for toolbar commands
181
+ * @param {CommandItem} params - Command parameters
182
+ * @param {ToolbarItem} params.item - An instance of the useToolbarItem composable
183
+ * @param {*} [params.argument] - The argument passed to the command
184
+ * @returns {*} The result of the executed command, undefined if no result is returned
185
+ */
186
+ emitCommand({ item, argument }: CommandItem): any;
112
187
  #private;
113
188
  }
189
+ export type ToolbarConfig = {
190
+ /**
191
+ * - CSS selector for the toolbar container
192
+ */
193
+ selector?: string;
194
+ /**
195
+ * - Groups to organize toolbar items
196
+ */
197
+ toolbarGroups?: string[];
198
+ /**
199
+ * - Role of the toolbar ('editor' or 'viewer')
200
+ */
201
+ role?: string;
202
+ /**
203
+ * - Whether pagination is enabled
204
+ */
205
+ pagination?: boolean;
206
+ /**
207
+ * - Custom icons for toolbar items
208
+ */
209
+ icons?: any;
210
+ /**
211
+ * - Editor mode
212
+ */
213
+ mode?: string;
214
+ /**
215
+ * - Items to exclude from the toolbar
216
+ */
217
+ excludeItems?: string[];
218
+ /**
219
+ * - Custom groups configuration
220
+ */
221
+ groups?: any;
222
+ /**
223
+ * - The editor instance
224
+ */
225
+ editor?: any;
226
+ /**
227
+ * - API key for AI integration
228
+ */
229
+ aiApiKey?: string;
230
+ /**
231
+ * - Endpoint for AI integration
232
+ */
233
+ aiEndpoint?: string;
234
+ };
235
+ export type ToolbarItem = {
236
+ /**
237
+ * - The unique ID of the toolbar item
238
+ */
239
+ id: {
240
+ value: string;
241
+ };
242
+ /**
243
+ * - The name of the toolbar item
244
+ */
245
+ name: {
246
+ value: string;
247
+ };
248
+ /**
249
+ * - The type of toolbar item (button, options, separator, dropdown, overflow)
250
+ */
251
+ type: string;
252
+ /**
253
+ * - The group the item belongs to
254
+ */
255
+ group: {
256
+ value: string;
257
+ };
258
+ /**
259
+ * - The command to execute
260
+ */
261
+ command: string;
262
+ /**
263
+ * - The command to execute when no argument is provided
264
+ */
265
+ noArgumentCommand?: string;
266
+ /**
267
+ * - The icon for the item
268
+ */
269
+ icon: {
270
+ value: any;
271
+ };
272
+ /**
273
+ * - The tooltip for the item
274
+ */
275
+ tooltip: {
276
+ value: any;
277
+ };
278
+ /**
279
+ * - Additional attributes for the item
280
+ */
281
+ attributes: {
282
+ value: any;
283
+ };
284
+ /**
285
+ * - Whether the item is disabled
286
+ */
287
+ disabled: {
288
+ value: boolean;
289
+ };
290
+ /**
291
+ * - Whether the item is active
292
+ */
293
+ active: {
294
+ value: boolean;
295
+ };
296
+ /**
297
+ * - Whether the item is expanded
298
+ */
299
+ expand: {
300
+ value: boolean;
301
+ };
302
+ /**
303
+ * - Nested options for the item
304
+ */
305
+ nestedOptions: {
306
+ value: any[];
307
+ };
308
+ /**
309
+ * - Custom style for the item
310
+ */
311
+ style: {
312
+ value: any;
313
+ };
314
+ /**
315
+ * - Whether the item has narrow styling
316
+ */
317
+ isNarrow: {
318
+ value: boolean;
319
+ };
320
+ /**
321
+ * - Whether the item has wide styling
322
+ */
323
+ isWide: {
324
+ value: boolean;
325
+ };
326
+ /**
327
+ * - Minimum width of the item
328
+ */
329
+ minWidth: {
330
+ value: any;
331
+ };
332
+ /**
333
+ * - The argument to pass to the command
334
+ */
335
+ argument: {
336
+ value: any;
337
+ };
338
+ /**
339
+ * - The parent of this item if nested
340
+ */
341
+ parentItem: {
342
+ value: any;
343
+ };
344
+ /**
345
+ * - The child of this item if it has one
346
+ */
347
+ childItem: {
348
+ value: any;
349
+ };
350
+ /**
351
+ * - The color of the icon
352
+ */
353
+ iconColor: {
354
+ value: any;
355
+ };
356
+ /**
357
+ * - Whether the item has a dropdown caret
358
+ */
359
+ hasCaret: {
360
+ value: boolean;
361
+ };
362
+ /**
363
+ * - Custom styles for dropdown
364
+ */
365
+ dropdownStyles: {
366
+ value: any;
367
+ };
368
+ /**
369
+ * - Whether the tooltip is visible
370
+ */
371
+ tooltipVisible: {
372
+ value: boolean;
373
+ };
374
+ /**
375
+ * - Timeout for the tooltip
376
+ */
377
+ tooltipTimeout: {
378
+ value: any;
379
+ };
380
+ /**
381
+ * - The default label for the item
382
+ */
383
+ defaultLabel: {
384
+ value: any;
385
+ };
386
+ /**
387
+ * - The label for the item
388
+ */
389
+ label: {
390
+ value: any;
391
+ };
392
+ /**
393
+ * - Whether to hide the label
394
+ */
395
+ hideLabel: {
396
+ value: boolean;
397
+ };
398
+ /**
399
+ * - Whether inline text input is visible
400
+ */
401
+ inlineTextInputVisible: {
402
+ value: boolean;
403
+ };
404
+ /**
405
+ * - Whether the item has inline text input
406
+ */
407
+ hasInlineTextInput: {
408
+ value: boolean;
409
+ };
410
+ /**
411
+ * - The name of the mark
412
+ */
413
+ markName: {
414
+ value: any;
415
+ };
416
+ /**
417
+ * - The attribute for the label
418
+ */
419
+ labelAttr: {
420
+ value: any;
421
+ };
422
+ /**
423
+ * - Whether the item can be used without an editor
424
+ */
425
+ allowWithoutEditor: {
426
+ value: boolean;
427
+ };
428
+ /**
429
+ * - The key for dropdown value
430
+ */
431
+ dropdownValueKey: {
432
+ value: any;
433
+ };
434
+ /**
435
+ * - The selected value for the item
436
+ */
437
+ selectedValue: {
438
+ value: any;
439
+ };
440
+ /**
441
+ * - Reference to an input element
442
+ */
443
+ inputRef: {
444
+ value: any;
445
+ };
446
+ /**
447
+ * - Function to get unreferenced values
448
+ */
449
+ unref: Function;
450
+ /**
451
+ * - Function to activate the item
452
+ */
453
+ activate: Function;
454
+ /**
455
+ * - Function to deactivate the item
456
+ */
457
+ deactivate: Function;
458
+ /**
459
+ * - Function to set the disabled state
460
+ */
461
+ setDisabled: Function;
462
+ /**
463
+ * - Function to reset the disabled state
464
+ */
465
+ resetDisabled: Function;
466
+ /**
467
+ * - Function called when the item is activated
468
+ */
469
+ onActivate: Function;
470
+ /**
471
+ * - Function called when the item is deactivated
472
+ */
473
+ onDeactivate: Function;
474
+ };
475
+ export type CommandItem = {
476
+ /**
477
+ * - The toolbar item
478
+ */
479
+ item: ToolbarItem;
480
+ /**
481
+ * - The argument to pass to the command
482
+ */
483
+ argument?: any;
484
+ };
114
485
  import EventEmitter from 'eventemitter3';
115
486
  //# sourceMappingURL=super-toolbar.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"super-toolbar.d.ts","sourceRoot":"","sources":["../../../src/components/toolbar/super-toolbar.js"],"names":[],"mappings":"AAeA;IAeE,yBA2CC;IAzDD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAYE;IAMA,oBAAsB;IACtB,qBAAuB;IACvB,kBAAoD;IACpD,WAAkC;IAClC,cAA+B;IAC/B,UAAmC;IA4BnC,gCAA6B;IAGrB,uQAAiC;IACzC,kBAAyC;IA0L3C,0BAEC;IAED,gCAIC;IAED;;;OAGG;IACH,wBAFW,GAAC,QAKX;IAED,6CAEC;IAED,qCAEC;IA2DD;;;OAGG;IACH,2BA+DC;IAED,4BAKE;IAaA,eAAmD;IACnD,eAAmD;IAGrD;;OAEG;IACH;;;aAGC;IAED;;;;;OAKG;IACH,0CAqBC;;CAqBF;yBAxewB,eAAe"}
1
+ {"version":3,"file":"super-toolbar.d.ts","sourceRoot":"","sources":["../../../src/components/toolbar/super-toolbar.js"],"names":[],"mappings":"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"}
@@ -1,4 +1,4 @@
1
- import { O as o } from "./chunks/converter-ajcAkpke.js";
1
+ import { O as o } from "./chunks/converter-DnveZphs.js";
2
2
  export {
3
3
  o as SuperConverter
4
4
  };
@@ -15,14 +15,14 @@ export class Attribute {
15
15
  * @param defaultAttribute Default attribute.
16
16
  * @returns Global extension attributes.
17
17
  */
18
- static "__#6@#getGlobalAttributes"(extensions: any, defaultAttribute: any): any[];
18
+ static "__#5@#getGlobalAttributes"(extensions: any, defaultAttribute: any): any[];
19
19
  /**
20
20
  * Get a list of attributes defined in the Node and Mark extensions.
21
21
  * @param extensions List of all extensions.
22
22
  * @param defaultAttribute Default attribute.
23
23
  * @returns Node and Mark extension attributes.
24
24
  */
25
- static "__#6@#getNodeAndMarksAttributes"(extensions: any, defaultAttribute: any): {
25
+ static "__#5@#getNodeAndMarksAttributes"(extensions: any, defaultAttribute: any): {
26
26
  type: any;
27
27
  name: string;
28
28
  attribute: any;