@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
@@ -9,20 +9,140 @@
9
9
  * Expects a config object.
10
10
  * @class
11
11
  */
12
+ /**
13
+ * @typedef {Object} User The current user of this superdoc
14
+ * @property {string} name The user's name
15
+ * @property {string} email The user's email
16
+ * @property {string | null} image The user's photo
17
+ */
18
+ /**
19
+ * @typedef {Object} EditorOptions
20
+ * @property {HTMLElement} [element] - The container element for the editor
21
+ * @property {string} [selector] - CSS selector for the editor container
22
+ * @property {boolean} [isHeadless=false] - Whether the editor is running in headless mode
23
+ * @property {Document} [mockDocument] - Mock document for testing
24
+ * @property {Window} [mockWindow] - Mock window for testing
25
+ * @property {string} [content=''] - XML content
26
+ * @property {User} [user] - Current user information
27
+ * @property {Array.<User>} [users=[]] - List of users for collaboration
28
+ * @property {Object} [media={}] - Media configuration
29
+ * @property {Object} [mediaFiles={}] - Media files
30
+ * @property {Object} [fonts={}] - Font configuration
31
+ * @property {string} [documentMode='editing'] - Document mode ('editing', 'viewing', 'suggesting')
32
+ * @property {string} [mode='docx'] - Editor mode ('docx', 'text', 'html')
33
+ * @property {string} [role='editor'] - User role ('editor', 'viewer', 'suggester')
34
+ * @property {Array} [colors=[]] - Available colors
35
+ * @property {Object} [converter] - Document converter
36
+ * @property {Object} [fileSource] - Source of the file
37
+ * @property {Object} [initialState] - Initial editor state
38
+ * @property {string} [documentId] - Unique document identifier
39
+ * @property {Array} [extensions=[]] - Editor extensions
40
+ * @property {boolean} [editable=true] - Whether the editor is editable
41
+ * @property {Object} [editorProps={}] - Editor properties
42
+ * @property {Object} [parseOptions={}] - Parsing options
43
+ * @property {Object} [coreExtensionOptions={}] - Core extension options
44
+ * @property {boolean} [enableInputRules=true] - Whether to enable input rules
45
+ * @property {boolean} [isCommentsEnabled=false] - Whether comments are enabled
46
+ * @property {boolean} [isNewFile=false] - Whether this is a new file
47
+ * @property {number} [scale=1] - Editor scale/zoom
48
+ * @property {boolean} [annotations=false] - Whether annotations are enabled
49
+ * @property {boolean} [isInternal=false] - Whether this is an internal editor
50
+ * @property {Array} [externalExtensions=[]] - External extensions
51
+ * @property {Object} [numbering={}] - Numbering configuration
52
+ * @property {Function} [onBeforeCreate] - Called before editor creation
53
+ * @property {Function} [onCreate] - Called after editor creation
54
+ * @property {Function} [onUpdate] - Called when editor content updates
55
+ * @property {Function} [onSelectionUpdate] - Called when selection updates
56
+ * @property {Function} [onTransaction] - Called when a transaction is processed
57
+ * @property {Function} [onFocus] - Called when editor gets focus
58
+ * @property {Function} [onBlur] - Called when editor loses focus
59
+ * @property {Function} [onDestroy] - Called when editor is destroyed
60
+ * @property {Function} [onContentError] - Called when there's a content error
61
+ * @property {Function} [onTrackedChangesUpdate] - Called when tracked changes update
62
+ * @property {Function} [onCommentsUpdate] - Called when comments update
63
+ * @property {Function} [onCommentsLoaded] - Called when comments are loaded
64
+ * @property {Function} [onCommentClicked] - Called when a comment is clicked
65
+ * @property {Function} [onCommentLocationsUpdate] - Called when comment locations update
66
+ * @property {Function} [onDocumentLocked] - Called when document is locked
67
+ * @property {Function} [onFirstRender] - Called on first render
68
+ * @property {Function} [onCollaborationReady] - Called when collaboration is ready
69
+ * @property {Function} [onPaginationUpdate] - Called when pagination updates
70
+ * @property {Function} [onException] - Called when an exception occurs
71
+ * @property {Function} [handleImageUpload] - Handler for image uploads
72
+ * @property {Object} [telemetry] - Telemetry configuration
73
+ */
74
+ /**
75
+ * Main editor class that manages document state, extensions, and user interactions
76
+ * @class
77
+ * @extends EventEmitter
78
+ */
12
79
  export class Editor extends EventEmitter {
13
80
  /**
14
81
  * Load the data from DOCX to be used in the schema.
15
82
  * Expects a DOCX file.
83
+ * @static
84
+ * @async
85
+ * @param {File|Blob|Buffer} fileSource - The DOCX file to load (File/Blob in browser, Buffer in Node.js)
86
+ * @param {boolean} [isNode=false] - Whether the method is being called in a Node.js environment
87
+ * @returns {Promise<Array>} - A promise that resolves to an array containing:
88
+ * - [0] xmlFiles - Array of XML files extracted from the DOCX
89
+ * - [1] mediaFiles - Object containing media files with URLs (browser only)
90
+ * - [2] mediaFiles - Object containing media files with base64 data
91
+ * - [3] fonts - Object containing font files from the DOCX
92
+ */
93
+ static loadXmlData(fileSource: File | Blob | Buffer, isNode?: boolean): Promise<any[]>;
94
+ /**
95
+ * Get the document version
96
+ * @static
97
+ * @param {Object} doc - Document object
98
+ * @returns {string} Document version
99
+ */
100
+ static getDocumentVersion(doc: any): string;
101
+ /**
102
+ * Update the document version
103
+ * @static
104
+ * @param {Object} doc - Document object
105
+ * @param {string} version - New version
106
+ * @returns {Object}
107
+ */
108
+ static updateDocumentVersion(doc: any, version: string): any;
109
+ /**
110
+ * Check if migrations are needed for the data
111
+ * @static
112
+ * @param {Object} data - Document data
113
+ * @returns {boolean} Whether migrations are needed
114
+ */
115
+ static checkIfMigrationsNeeded(data: any): boolean;
116
+ /**
117
+ * Create a new Editor instance
118
+ * @param {EditorOptions} options - Editor configuration options
119
+ * @returns {void}
120
+ */
121
+ constructor(options: EditorOptions);
122
+ /**
123
+ * Service for managing extensions
124
+ * @type {Object}
16
125
  */
17
- static loadXmlData(fileSource: any, isNode?: boolean): Promise<any[]>;
18
- static getDocumentVersion(content: any): any;
19
- static updateDocumentVersion(content: any, version: any): any;
20
- static checkIfMigrationsNeeded(version: any): boolean;
21
- constructor(options: any);
22
126
  extensionService: any;
23
- extensionStorage: {};
127
+ /**
128
+ * Storage for extension data
129
+ * @type {Object}
130
+ */
131
+ extensionStorage: any;
132
+ /**
133
+ * ProseMirror schema for the editor
134
+ * @type {Object}
135
+ */
24
136
  schema: any;
137
+ /**
138
+ * ProseMirror view instance
139
+ * @type {Object}
140
+ */
25
141
  view: any;
142
+ /**
143
+ * Whether the editor currently has focus
144
+ * @type {boolean}
145
+ */
26
146
  isFocused: boolean;
27
147
  options: {
28
148
  element: any;
@@ -81,120 +201,170 @@ export class Editor extends EventEmitter {
81
201
  handleImageUpload: any;
82
202
  telemetry: any;
83
203
  };
204
+ /**
205
+ * Set the toolbar for this editor
206
+ * @param {Object} toolbar - The toolbar instance
207
+ * @returns {void}
208
+ */
84
209
  setToolbar(toolbar: any): void;
85
210
  toolbar: any;
86
211
  /**
87
212
  * Focus the editor.
213
+ * @returns {void}
88
214
  */
89
215
  focus(): void;
90
216
  /**
91
- * Get the editor state.
217
+ * Get the editor state
218
+ * @returns {Object} ProseMirror state
92
219
  */
93
220
  get state(): any;
94
221
  /**
95
222
  * Get the editor storage.
223
+ * @returns {Object} Editor storage object
96
224
  */
97
- get storage(): {};
225
+ get storage(): any;
98
226
  /**
99
227
  * Get object of registered commands.
228
+ * @returns {Object} Commands object
100
229
  */
101
230
  get commands(): any;
102
231
  /**
103
232
  * Check if the editor is editable.
233
+ * @returns {boolean}
104
234
  */
105
- get isEditable(): any;
235
+ get isEditable(): boolean;
106
236
  /**
107
237
  * Check if editor is destroyed.
238
+ * @returns {boolean}
108
239
  */
109
- get isDestroyed(): any;
240
+ get isDestroyed(): boolean;
110
241
  /**
111
242
  * Get the editor element
243
+ * @returns {HTMLElement} The editor element
112
244
  */
113
- get element(): any;
245
+ get element(): HTMLElement;
114
246
  /**
115
247
  * Get possible users of the editor.
248
+ * @returns {Array.<User>} List of users
116
249
  */
117
- get users(): any[];
250
+ get users(): Array<User>;
118
251
  /**
119
252
  * Create a chain of commands to call multiple commands at once.
253
+ * @returns {Object} Command chain
120
254
  */
121
255
  chain(): any;
122
256
  /**
123
257
  * Check if a command or a chain of commands can be executed. Without executing it.
258
+ * @returns {Object} Object with methods to check command availability
124
259
  */
125
260
  can(): any;
126
- setDocumentMode(documentMode: any): void;
127
261
  /**
262
+ * Set the document mode
263
+ * @param {string} documentMode - The document mode ('editing', 'viewing', 'suggesting')
264
+ */
265
+ setDocumentMode(documentMode: string): void;
266
+ /**
267
+ * Initialize data for collaborative editing
128
268
  * If we are replacing data and have a valid provider, listen for synced event
129
269
  * so that we can initialize the data
270
+ * @returns {void}
130
271
  */
131
272
  initializeCollaborationData(): void;
132
273
  /**
133
274
  * Set editor options and update state.
134
- * @param options List of options.
275
+ * @param {EditorOptions} options - Editor options
276
+ * @returns {void}
135
277
  */
136
- setOptions(options: any): void;
278
+ setOptions(options?: EditorOptions): void;
137
279
  /**
138
- * Updates editable state.
139
- * @param editable Editable value.
140
- * @param emitUpdate Emit 'update' event or not.
280
+ * Set whether the editor is editable
281
+ * @param {boolean} [editable=true] - Whether the editor is editable
282
+ * @param {boolean} [emitUpdate=true] - Whether to emit an update event
283
+ * @returns {void}
141
284
  */
142
- setEditable(editable: any, emitUpdate?: boolean): void;
285
+ setEditable(editable?: boolean, emitUpdate?: boolean): void;
143
286
  /**
144
287
  * Register PM plugin.
145
288
  * @param plugin PM plugin.
146
289
  * @param handlePlugins Optional function for handling plugin merge.
290
+ * @returns {void}
147
291
  */
148
292
  registerPlugin(plugin: any, handlePlugins: any): void;
149
293
  /**
150
- * Unregister PM plugin.
151
- * @param nameOrPluginKey Plugin name.
294
+ * Unregister a PM plugin
295
+ * @param {string|Object} nameOrPlugin - Plugin name or plugin instance
296
+ * @returns {void}
152
297
  */
153
- unregisterPlugin(nameOrPluginKey: any): void;
298
+ unregisterPlugin(nameOrPlugin: string | any): void;
154
299
  converter: any;
155
300
  /**
156
301
  * Creates all node views.
302
+ * @returns {void}
157
303
  */
158
304
  createNodeViews(): void;
159
- getMaxContentSize(): {
160
- width?: undefined;
161
- height?: undefined;
162
- } | {
163
- width: number;
164
- height: number;
165
- };
166
305
  /**
167
- * Initialize default styles for the editor container and ProseMirror.
168
- * Get page size and margins from the converter.
169
- * Set document default font and font size.
306
+ * Get the maximum content size
307
+ * @returns {Object} Size object with width and height
170
308
  */
171
- initDefaultStyles(element?: any): void;
172
- initMobileStyles(element: any): void;
309
+ getMaxContentSize(): any;
310
+ /**
311
+ * Initialize default styles for the editor container and ProseMirror.
312
+ * Get page size and margins from the converter.
313
+ * Set document default font and font size.
314
+ *
315
+ * @param {HTMLElement} [element=this.element] - The DOM element to apply styles to
316
+ * @returns {void}
317
+ */
318
+ initDefaultStyles(element?: HTMLElement): void;
319
+ /**
320
+ * Initializes responsive styles for mobile devices.
321
+ * Sets up scaling based on viewport width and handles orientation changes.
322
+ *
323
+ * @param {HTMLElement|void} element - The DOM element to apply mobile styles to
324
+ * @returns {void}
325
+ */
326
+ initMobileStyles(element: HTMLElement | void): void;
173
327
  /**
174
328
  * Get attrs of the currently selected node or mark.
329
+ * @param {String} nameOrType
175
330
  * @example
176
331
  * editor.getAttributes('textStyle').color
177
332
  */
178
- getAttributes(nameOrType: any): any;
333
+ getAttributes(nameOrType: string): any;
179
334
  /**
180
335
  * Returns if the currently selected node or mark is active.
336
+ * @param {String|Object} nameOrAttributes - The name of the node/mark or an attributes object
337
+ * @param {Object} [attributesOrUndefined] - Optional attributes to check when first parameter is a name
338
+ * @returns {Boolean} Whether the node or mark is active with the specified attributes
181
339
  * @example
182
340
  * editor.isActive('bold')
183
341
  * editor.isActive('textStyle', { color: 'purple' })
184
342
  * editor.isActive({ textAlign: 'center' })
185
343
  */
186
- isActive(nameOrAttributes: any, attributesOrUndefined: any): boolean;
344
+ isActive(nameOrAttributes: string | any, attributesOrUndefined?: any): boolean;
187
345
  /**
188
346
  * Get the document as JSON.
189
347
  */
348
+ /**
349
+ * Get the editor content as JSON
350
+ * @returns {Object} Editor content as JSON
351
+ */
190
352
  getJSON(): any;
191
353
  /**
192
354
  * Get HTML string of the document
193
355
  */
356
+ /**
357
+ * Get the editor content as HTML
358
+ * @returns {string} Editor content as HTML
359
+ */
194
360
  getHTML(): string;
195
361
  /**
196
362
  * Get page styles
197
363
  */
364
+ /**
365
+ * Get page styles
366
+ * @returns {Object} Page styles
367
+ */
198
368
  getPageStyles(): any;
199
369
  /**
200
370
  * Update page styles
@@ -208,24 +378,48 @@ export class Editor extends EventEmitter {
208
378
  }): void;
209
379
  /**
210
380
  * Export the editor document to DOCX.
381
+ * @async
382
+ * @param {Object} options - The export options
383
+ * @param {boolean} [options.isFinalDoc=false] - Whether this is the final document version
384
+ * @param {string} [options.commentsType] - The type of comments to include
385
+ * @param {Array} [options.comments=[]] - Array of comments to include in the document
386
+ * @returns {Promise<Blob|ArrayBuffer>} The exported DOCX file
211
387
  */
212
388
  exportDocx({ isFinalDoc, commentsType, comments }?: {
213
389
  isFinalDoc?: boolean;
390
+ commentsType?: string;
214
391
  comments?: any[];
215
- }): Promise<any>;
392
+ }): Promise<Blob | ArrayBuffer>;
216
393
  /**
217
- * Destroy the editor.
394
+ * Destroy the editor and clean up resources
395
+ * @returns {void}
218
396
  */
219
397
  destroy(): void;
220
398
  /**
221
- * Check for any necessary document migrations in collaboration mode
222
- *
223
- * @returns {Y.Doc | undefined} Updated Y.Doc if any, otherwise undefined
399
+ * Process collaboration migrations
400
+ * @returns {Object | void} Migration results
401
+ */
402
+ processCollaborationMigrations(): any | void;
403
+ /**
404
+ * Replace the current file
405
+ * @async
406
+ * @param {Object} file - New file data
407
+ * @returns {Promise<void>}
408
+ */
409
+ replaceFile(file: any): Promise<void>;
410
+ /**
411
+ * Get all nodes of a specific type
412
+ * @param {string} type - Node type
413
+ * @returns {Array} Array of nodes
414
+ */
415
+ getNodesOfType(type: string): any[];
416
+ /**
417
+ * Replace a node with HTML content
418
+ * @param {Object} targetNode - The node to replace
419
+ * @param {string} html - HTML content to replace with
420
+ * @returns {void}
224
421
  */
225
- processCollaborationMigrations(): Y.Doc | undefined;
226
- replaceFile(newFile: any): Promise<void>;
227
- getNodesOfType(type: any): any;
228
- replaceNodeWithHTML(targetNode: any, html: any): void;
422
+ replaceNodeWithHTML(targetNode: any, html: string): void;
229
423
  /**
230
424
  * A command to prepare the editor to receive annotations. This will
231
425
  * pre-process the document as needed prior to running in the annotator.
@@ -256,5 +450,236 @@ export type FieldValue = {
256
450
  */
257
451
  input_value: string;
258
452
  };
453
+ /**
454
+ * The current user of this superdoc
455
+ */
456
+ export type User = {
457
+ /**
458
+ * The user's name
459
+ */
460
+ name: string;
461
+ /**
462
+ * The user's email
463
+ */
464
+ email: string;
465
+ /**
466
+ * The user's photo
467
+ */
468
+ image: string | null;
469
+ };
470
+ export type EditorOptions = {
471
+ /**
472
+ * - The container element for the editor
473
+ */
474
+ element?: HTMLElement;
475
+ /**
476
+ * - CSS selector for the editor container
477
+ */
478
+ selector?: string;
479
+ /**
480
+ * - Whether the editor is running in headless mode
481
+ */
482
+ isHeadless?: boolean;
483
+ /**
484
+ * - Mock document for testing
485
+ */
486
+ mockDocument?: Document;
487
+ /**
488
+ * - Mock window for testing
489
+ */
490
+ mockWindow?: Window;
491
+ /**
492
+ * - XML content
493
+ */
494
+ content?: string;
495
+ /**
496
+ * - Current user information
497
+ */
498
+ user?: User;
499
+ /**
500
+ * - List of users for collaboration
501
+ */
502
+ users?: Array<User>;
503
+ /**
504
+ * - Media configuration
505
+ */
506
+ media?: any;
507
+ /**
508
+ * - Media files
509
+ */
510
+ mediaFiles?: any;
511
+ /**
512
+ * - Font configuration
513
+ */
514
+ fonts?: any;
515
+ /**
516
+ * - Document mode ('editing', 'viewing', 'suggesting')
517
+ */
518
+ documentMode?: string;
519
+ /**
520
+ * - Editor mode ('docx', 'text', 'html')
521
+ */
522
+ mode?: string;
523
+ /**
524
+ * - User role ('editor', 'viewer', 'suggester')
525
+ */
526
+ role?: string;
527
+ /**
528
+ * - Available colors
529
+ */
530
+ colors?: any[];
531
+ /**
532
+ * - Document converter
533
+ */
534
+ converter?: any;
535
+ /**
536
+ * - Source of the file
537
+ */
538
+ fileSource?: any;
539
+ /**
540
+ * - Initial editor state
541
+ */
542
+ initialState?: any;
543
+ /**
544
+ * - Unique document identifier
545
+ */
546
+ documentId?: string;
547
+ /**
548
+ * - Editor extensions
549
+ */
550
+ extensions?: any[];
551
+ /**
552
+ * - Whether the editor is editable
553
+ */
554
+ editable?: boolean;
555
+ /**
556
+ * - Editor properties
557
+ */
558
+ editorProps?: any;
559
+ /**
560
+ * - Parsing options
561
+ */
562
+ parseOptions?: any;
563
+ /**
564
+ * - Core extension options
565
+ */
566
+ coreExtensionOptions?: any;
567
+ /**
568
+ * - Whether to enable input rules
569
+ */
570
+ enableInputRules?: boolean;
571
+ /**
572
+ * - Whether comments are enabled
573
+ */
574
+ isCommentsEnabled?: boolean;
575
+ /**
576
+ * - Whether this is a new file
577
+ */
578
+ isNewFile?: boolean;
579
+ /**
580
+ * - Editor scale/zoom
581
+ */
582
+ scale?: number;
583
+ /**
584
+ * - Whether annotations are enabled
585
+ */
586
+ annotations?: boolean;
587
+ /**
588
+ * - Whether this is an internal editor
589
+ */
590
+ isInternal?: boolean;
591
+ /**
592
+ * - External extensions
593
+ */
594
+ externalExtensions?: any[];
595
+ /**
596
+ * - Numbering configuration
597
+ */
598
+ numbering?: any;
599
+ /**
600
+ * - Called before editor creation
601
+ */
602
+ onBeforeCreate?: Function;
603
+ /**
604
+ * - Called after editor creation
605
+ */
606
+ onCreate?: Function;
607
+ /**
608
+ * - Called when editor content updates
609
+ */
610
+ onUpdate?: Function;
611
+ /**
612
+ * - Called when selection updates
613
+ */
614
+ onSelectionUpdate?: Function;
615
+ /**
616
+ * - Called when a transaction is processed
617
+ */
618
+ onTransaction?: Function;
619
+ /**
620
+ * - Called when editor gets focus
621
+ */
622
+ onFocus?: Function;
623
+ /**
624
+ * - Called when editor loses focus
625
+ */
626
+ onBlur?: Function;
627
+ /**
628
+ * - Called when editor is destroyed
629
+ */
630
+ onDestroy?: Function;
631
+ /**
632
+ * - Called when there's a content error
633
+ */
634
+ onContentError?: Function;
635
+ /**
636
+ * - Called when tracked changes update
637
+ */
638
+ onTrackedChangesUpdate?: Function;
639
+ /**
640
+ * - Called when comments update
641
+ */
642
+ onCommentsUpdate?: Function;
643
+ /**
644
+ * - Called when comments are loaded
645
+ */
646
+ onCommentsLoaded?: Function;
647
+ /**
648
+ * - Called when a comment is clicked
649
+ */
650
+ onCommentClicked?: Function;
651
+ /**
652
+ * - Called when comment locations update
653
+ */
654
+ onCommentLocationsUpdate?: Function;
655
+ /**
656
+ * - Called when document is locked
657
+ */
658
+ onDocumentLocked?: Function;
659
+ /**
660
+ * - Called on first render
661
+ */
662
+ onFirstRender?: Function;
663
+ /**
664
+ * - Called when collaboration is ready
665
+ */
666
+ onCollaborationReady?: Function;
667
+ /**
668
+ * - Called when pagination updates
669
+ */
670
+ onPaginationUpdate?: Function;
671
+ /**
672
+ * - Called when an exception occurs
673
+ */
674
+ onException?: Function;
675
+ /**
676
+ * - Handler for image uploads
677
+ */
678
+ handleImageUpload?: Function;
679
+ /**
680
+ * - Telemetry configuration
681
+ */
682
+ telemetry?: any;
683
+ };
259
684
  import { EventEmitter } from './EventEmitter.js';
260
685
  //# sourceMappingURL=Editor.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Editor.d.ts","sourceRoot":"","sources":["../../src/core/Editor.js"],"names":[],"mappings":"AA0BA;;;;GAIG;AAEH;;;;;GAKG;AACH;IAwgBE;;;OAGG;IACH,sEAQC;IAED,6CAGC;IAED,8DAGC;IAsiBD,sDAKC;IA7/BD,0BAmBC;IA5FD,sBAAiB;IAEjB,qBAAsB;IAEtB,YAAO;IAEP,UAAK;IAEL,mBAAkB;IAIlB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MA2DE;IAmIF,+BAEC;IADC,aAAsB;IAgBxB;;OAEG;IACH,cAEC;IAED;;OAEG;IACH,iBAEC;IAED;;OAEG;IACH,kBAEC;IAED;;OAEG;IACH,oBAEC;IAED;;OAEG;IACH,sBAEC;IAED;;OAEG;IACH,uBAEC;IAED;;OAEG;IACH,mBAEC;IAED;;OAEG;IACH,mBAEC;IAED;;OAEG;IACH,aAEC;IAED;;OAEG;IACH,WAEC;IAED,yCA8BC;IAED;;;OAGG;IACH,oCAYC;IA0BD;;;OAGG;IACH,+BA0BC;IAED;;;;OAIG;IACH,uDAMC;IAED;;;;OAIG;IACH,sDAQC;IAED;;;OAGG;IACH,6CAUC;IAgCG,eAAuC;IAiK3C;;OAEG;IACH,wBAIC;IAED;;;;;;MAeC;IAED;;;;OAIG;IACH,uCAgDC;IAED,qCAkDC;IA2HD;;;;OAIG;IACH,oCAEC;IAED;;;;;;OAMG;IACH,qEAKC;IAED;;OAEG;IACH,eAEC;IAED;;OAEG;IACH,kBAMC;IAED;;OAEG;IACH,qBAEC;IAED;;;;;;OAMG;IACH,iCAHG;QAAuB,WAAW;KAClC,GAAU,IAAI,CAiBhB;IA6CD;;OAEG;IACH;;;qBA+DC;IAcD;;OAEG;IACH,gBAKC;IASD;;;;OAIG;IACH,kCAFa,CAAC,CAAC,GAAG,GAAG,SAAS,CA8B7B;IAED,yCA4BC;I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J,IAAI,CAYhB;IAED;;;;;;;;OAQG;IACH,yCAHW,UAAU,EAAE,GACV,IAAI,CAOhB;IAED;;;;;;OAMG;IACH,4BAJW,UAAU,EAAE,cACZ,QAAQ,GACN,IAAI,CAgBhB;;CAEF;;;;;cAl/Ca,MAAM;;;;iBACN,MAAM;;;;;;;;;UAWP,MAAM;;;;WACN,MAAM;;;;WACN,MAAM,GAAG,IAAI;;;;;;cAIZ,WAAW;;;;eACX,MAAM;;;;iBACN,OAAO;;;;mBACP,QAAQ;;;;iBACR,MAAM;;;;cACN,MAAM;;;;WACN,IAAI;;;;YACJ,KAAK,CAAE,IAAI,CAAC;;;;;;;;;;;;;;;;mBAIZ,MAAM;;;;WACN,MAAM;;;;WACN,MAAM;;;;;;;;;;;;;;;;;;;;iBAKN,MAAM;;;;;;;;eAEN,OAAO;;;;;;;;;;;;;;;;uBAIP,OAAO;;;;wBACP,OAAO;;;;gBACP,OAAO;;;;YACP,MAAM;;;;kBACN,OAAO;;;;iBACP,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;6BAtEQ,mBAAmB"}
@@ -16,7 +16,7 @@ export class Schema {
16
16
  * @param editor Editor instance.
17
17
  * @returns Nodes schema.
18
18
  */
19
- static "__#7@#createNodesSchema"(nodeExtensions: any, attributes: any, editor: any): {
19
+ static "__#6@#createNodesSchema"(nodeExtensions: any, attributes: any, editor: any): {
20
20
  [k: string]: any;
21
21
  };
22
22
  /**
@@ -26,7 +26,7 @@ export class Schema {
26
26
  * @param editor Editor instance.
27
27
  * @returns Marks schema.
28
28
  */
29
- static "__#7@#createMarksSchema"(markExtensions: any, attributes: any, editor: any): {
29
+ static "__#6@#createMarksSchema"(markExtensions: any, attributes: any, editor: any): {
30
30
  [k: string]: any;
31
31
  };
32
32
  }
@@ -1,11 +1,11 @@
1
- export * from "./Editor.js";
2
- export * from "./CommandService.js";
3
- export * from "./Extension.js";
4
1
  export * from "./Node.js";
5
2
  export * from "./Mark.js";
6
3
  export * from "./Schema.js";
7
4
  export * from "./Attribute.js";
5
+ export * from "./CommandService.js";
6
+ export * from "./Extension.js";
8
7
  export * from "./super-converter/SuperConverter.js";
8
+ export * from "./Editor.js";
9
9
  export * as coreExtensions from "./extensions/index.js";
10
10
  export * as helpers from "./helpers/index.js";
11
11
  export * as utilities from "./utilities/index.js";
@@ -1 +1 @@
1
- {"version":3,"file":"exporter.d.ts","sourceRoot":"","sources":["../../../src/core/super-converter/exporter.js"],"names":[],"mappings":"AAwBA;;;;;GAKG;AAEH;;;;;;;;;;;;GAYG;AAEH;;;GAGG;AAEH;;;GAGG;AAEH;;;;GAIG;AAEH;;;;;GAKG;AACH,2CAHW,YAAY,GACV,YAAY,CAqCxB;AA8BD;;;;;GAKG;AACH,qDAFa,YAAY,CAyBxB;AA2vDD;;;;;;;;;EAaC;AA+FD;IACE,4BAEC;IADC,eAA0B;IAG5B,gDAGC;;CAsEF;;;;;;;;;;;;;mBA1jEa,KAAQ;;;;;;UAKR,MAAM;;;;aACN,KAAK,CAAC,UAAU,CAAC;;;;;;;;;;;;;UAMjB,MAAM;;;;cACN,KAAK,CAAC,YAAY,CAAC;;;;;;;;;;;;;;;;;;;;;;UAgBnB,MAAM"}
1
+ {"version":3,"file":"exporter.d.ts","sourceRoot":"","sources":["../../../src/core/super-converter/exporter.js"],"names":[],"mappings":"AAwBA;;;;;GAKG;AAEH;;;;;;;;;;;;GAYG;AAEH;;;GAGG;AAEH;;;GAGG;AAEH;;;;GAIG;AAEH;;;;;GAKG;AACH,2CAHW,YAAY,GACV,YAAY,CAqCxB;AA8BD;;;;;GAKG;AACH,qDAFa,YAAY,CAyBxB;AA8xDD;;;;;;;;;EAaC;AA+FD;IACE,4BAEC;IADC,eAA0B;IAG5B,gDAGC;;CAsEF;;;;;;;;;;;;;mBA7lEa,KAAQ;;;;;;UAKR,MAAM;;;;aACN,KAAK,CAAC,UAAU,CAAC;;;;;;;;;;;;;UAMjB,MAAM;;;;cACN,KAAK,CAAC,YAAY,CAAC;;;;;;;;;;;;;;;;;;;;;;UAgBnB,MAAM"}