@harbour-enterprises/superdoc 0.10.69 → 0.10.71

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 (118) hide show
  1. package/dist/chunks/{eventemitter3-Bj3oXrh_.es.js → eventemitter3-DmT5PYHc.es.js} +1 -1
  2. package/dist/chunks/{index-C3fK1Y-u.es.js → index-BN5TDoeo.es.js} +2 -2
  3. package/dist/chunks/{index-B_4G-Rse.es.js → index-BavEbpBI.es.js} +4 -4
  4. package/dist/chunks/{index-CqRwYOdx.cjs → index-DHS2ANjv.cjs} +1 -1
  5. package/dist/chunks/{index-BXKGjuVW.cjs → index-YqE5-6V1.cjs} +1 -1
  6. package/dist/chunks/{jszip-ChtTJmXO.es.js → jszip-Clbt_EEu.es.js} +1 -1
  7. package/dist/chunks/super-editor.es-BeujGZGI.cjs +462 -0
  8. package/dist/chunks/{super-editor.es-DEXTmW_B.es.js → super-editor.es-C-h-154n.es.js} +10121 -9508
  9. package/dist/chunks/{url-D6ObD5O4.es.js → url-BhdilvzC.es.js} +2 -2
  10. package/dist/chunks/{url-6Xu7gR4T.cjs → url-Cqg7fbSS.cjs} +1 -1
  11. package/dist/chunks/{vue-D254cI7X.es.js → vue-B11Xj7yz.es.js} +22 -22
  12. package/dist/chunks/{xml-js-BYiAO46K.es.js → xml-js-DxzxwFYn.es.js} +744 -762
  13. package/dist/chunks/xml-js-Zwb1wsIy.cjs +10 -0
  14. package/dist/style.css +1 -3466
  15. package/dist/super-editor/ai-writer.es.js +1 -1
  16. package/dist/super-editor/chunks/{converter-Dx2Mo3kq.js → converter-DKAFrp3H.js} +1446 -1353
  17. package/dist/super-editor/chunks/{docx-zipper-CfJm-q9M.js → docx-zipper-DpRWSvIy.js} +1 -1
  18. package/dist/super-editor/chunks/{editor-1oKGLBU7.js → editor-Bv24RlYz.js} +6532 -6079
  19. package/dist/super-editor/chunks/{toolbar-DD-s00-5.js → toolbar-DwveODMd.js} +964 -956
  20. package/dist/super-editor/components/toolbar/defaultItems.d.ts.map +1 -1
  21. package/dist/super-editor/components/toolbar/super-toolbar.d.ts +2 -0
  22. package/dist/super-editor/components/toolbar/super-toolbar.d.ts.map +1 -1
  23. package/dist/super-editor/components/toolbar/toolbarIcons.d.ts +1 -0
  24. package/dist/super-editor/components/toolbar/use-toolbar-item.d.ts +1 -0
  25. package/dist/super-editor/components/toolbar/use-toolbar-item.d.ts.map +1 -1
  26. package/dist/super-editor/converter.es.js +1 -1
  27. package/dist/super-editor/core/super-converter/exporter.d.ts.map +1 -1
  28. package/dist/super-editor/core/super-converter/v2/importer/imageImporter.d.ts.map +1 -1
  29. package/dist/super-editor/docx-zipper.es.js +2 -2
  30. package/dist/super-editor/editor.es.js +3 -3
  31. package/dist/super-editor/extensions/field-annotation/field-annotation.d.ts.map +1 -1
  32. package/dist/super-editor/extensions/image/image.d.ts.map +1 -1
  33. package/dist/super-editor/extensions/image/imageHelpers/imagePositionPlugin.d.ts +6 -0
  34. package/dist/super-editor/extensions/image/imageHelpers/imagePositionPlugin.d.ts.map +1 -0
  35. package/dist/super-editor/extensions/index.d.ts +2 -1
  36. package/dist/super-editor/extensions/index.d.ts.map +1 -1
  37. package/dist/super-editor/extensions/search/index.d.ts +2 -0
  38. package/dist/{core → super-editor/extensions/search}/index.d.ts.map +1 -1
  39. package/dist/super-editor/extensions/search/search.d.ts +2 -0
  40. package/dist/super-editor/extensions/search/search.d.ts.map +1 -0
  41. package/dist/super-editor/extensions/table/table.d.ts.map +1 -1
  42. package/dist/super-editor/file-zipper.es.js +1 -1
  43. package/dist/super-editor/style.css +1 -1
  44. package/dist/super-editor/super-editor.es.js +779 -721
  45. package/dist/super-editor/tests/e2e/test-app/dist/assets/index-BTMvkUyI.d.ts +3 -0
  46. package/dist/super-editor/tests/e2e/test-app/dist/assets/index-BTMvkUyI.d.ts.map +1 -0
  47. package/dist/super-editor/tests/e2e/test-app/vite.config.d.ts +1 -1
  48. package/dist/super-editor/toolbar.es.js +2 -2
  49. package/dist/super-editor.cjs +1 -1
  50. package/dist/super-editor.es.js +11 -11
  51. package/dist/superdoc.cjs +58 -58
  52. package/dist/superdoc.es.js +1108 -1075
  53. package/package.json +1 -1
  54. package/dist/chunks/super-editor.es-C1HqQ42x.cjs +0 -459
  55. package/dist/chunks/xml-js-zhwNEV5e.cjs +0 -10
  56. package/dist/components/CommentsLayer/comment-schemas.d.ts +0 -17
  57. package/dist/components/CommentsLayer/comment-schemas.d.ts.map +0 -1
  58. package/dist/components/CommentsLayer/commentsList/super-comments-list.d.ts +0 -22
  59. package/dist/components/CommentsLayer/commentsList/super-comments-list.d.ts.map +0 -1
  60. package/dist/components/CommentsLayer/helpers.d.ts +0 -8
  61. package/dist/components/CommentsLayer/helpers.d.ts.map +0 -1
  62. package/dist/components/CommentsLayer/use-comment.d.ts +0 -8
  63. package/dist/components/CommentsLayer/use-comment.d.ts.map +0 -1
  64. package/dist/components/CommentsLayer/use-conversation.d.ts +0 -23
  65. package/dist/components/CommentsLayer/use-conversation.d.ts.map +0 -1
  66. package/dist/components/CommentsLayer/use-floating-comment.d.ts +0 -12
  67. package/dist/components/CommentsLayer/use-floating-comment.d.ts.map +0 -1
  68. package/dist/components/CommentsLayer/use-tracked-change.d.ts +0 -1
  69. package/dist/components/CommentsLayer/use-tracked-change.d.ts.map +0 -1
  70. package/dist/components/PdfViewer/helpers/pdfjs-worker.d.ts +0 -3
  71. package/dist/components/PdfViewer/helpers/pdfjs-worker.d.ts.map +0 -1
  72. package/dist/components/PdfViewer/helpers/range.d.ts +0 -2
  73. package/dist/components/PdfViewer/helpers/range.d.ts.map +0 -1
  74. package/dist/components/PdfViewer/pdfjs.d.ts +0 -3
  75. package/dist/components/PdfViewer/pdfjs.d.ts.map +0 -1
  76. package/dist/components/PdfViewer/worker.d.ts +0 -3
  77. package/dist/components/PdfViewer/worker.d.ts.map +0 -1
  78. package/dist/composables/use-ai.d.ts +0 -13
  79. package/dist/composables/use-ai.d.ts.map +0 -1
  80. package/dist/composables/use-document.d.ts +0 -28
  81. package/dist/composables/use-document.d.ts.map +0 -1
  82. package/dist/composables/use-field.d.ts +0 -34
  83. package/dist/composables/use-field.d.ts.map +0 -1
  84. package/dist/composables/use-selected-text.d.ts +0 -8
  85. package/dist/composables/use-selected-text.d.ts.map +0 -1
  86. package/dist/core/SuperDoc.d.ts +0 -373
  87. package/dist/core/SuperDoc.d.ts.map +0 -1
  88. package/dist/core/collaboration/collaboration-comments.d.ts +0 -5
  89. package/dist/core/collaboration/collaboration-comments.d.ts.map +0 -1
  90. package/dist/core/collaboration/collaboration.d.ts +0 -27
  91. package/dist/core/collaboration/collaboration.d.ts.map +0 -1
  92. package/dist/core/collaboration/helpers.d.ts +0 -5
  93. package/dist/core/collaboration/helpers.d.ts.map +0 -1
  94. package/dist/core/collaboration/permissions.d.ts +0 -14
  95. package/dist/core/collaboration/permissions.d.ts.map +0 -1
  96. package/dist/core/create-app.d.ts +0 -2
  97. package/dist/core/create-app.d.ts.map +0 -1
  98. package/dist/core/helpers/export.d.ts +0 -3
  99. package/dist/core/helpers/export.d.ts.map +0 -1
  100. package/dist/core/index.d.ts +0 -2
  101. package/dist/helpers/use-selection.d.ts +0 -18
  102. package/dist/helpers/use-selection.d.ts.map +0 -1
  103. package/dist/icons.d.ts +0 -11
  104. package/dist/icons.d.ts.map +0 -1
  105. package/dist/index.d.ts +0 -15
  106. package/dist/index.d.ts.map +0 -1
  107. package/dist/main.d.ts +0 -2
  108. package/dist/main.d.ts.map +0 -1
  109. package/dist/stores/comments-store.d.ts +0 -248
  110. package/dist/stores/comments-store.d.ts.map +0 -1
  111. package/dist/stores/hrbr-fields-store.d.ts +0 -44
  112. package/dist/stores/hrbr-fields-store.d.ts.map +0 -1
  113. package/dist/stores/superdoc-store.d.ts +0 -881
  114. package/dist/stores/superdoc-store.d.ts.map +0 -1
  115. package/dist/super-editor.d.ts +0 -2
  116. package/dist/super-editor.d.ts.map +0 -1
  117. package/dist/superdoc.umd.js +0 -70442
  118. package/dist/superdoc.umd.js.map +0 -1
@@ -1,373 +0,0 @@
1
- /**
2
- * @typedef {Object} User The current user of this superdoc
3
- * @property {string} name The user's name
4
- * @property {string} email The user's email
5
- * @property {string | null} image The user's photo
6
- */
7
- /**
8
- * @typedef {Object} Telemetry Telemetry configuration
9
- * @property {boolean} [enabled=true] Whether telemetry is enabled
10
- * @property {string} [licenceKey] The licence key for telemetry
11
- * @property {string} [endpoint] The endpoint for telemetry
12
- */
13
- /**
14
- * @typedef {Object} Document
15
- * @property {string} id The ID of the document
16
- * @property {string} type The type of the document
17
- * @property {File | null} [data] The initial data of the document
18
- */
19
- /**
20
- * @typedef {Object} Modules
21
- * @property {Object} [comments] Comments module configuration
22
- * @property {Object} [ai] AI module configuration
23
- * @property {string} [ai.apiKey] Harbour API key for AI features
24
- * @property {string} [ai.endpoint] Custom endpoint URL for AI services
25
- */
26
- /**
27
- * @typedef {Object} Config
28
- * @property {string} [superdocId] The ID of the SuperDoc
29
- * @property {string} selector The selector to mount the SuperDoc into
30
- * @property {'editing' | 'viewing' | 'suggesting'} documentMode The mode of the document
31
- * @property {'editor' | 'viewer' | 'suggester'} [role] The role of the user in this SuperDoc
32
- * @property {Object | string} [document] The document to load. If a string, it will be treated as a URL
33
- * @property {Array<Document>} documents The documents to load
34
- * @property {User} [user] The current user of this SuperDoc
35
- * @property {Array<User>} [users] All users of this SuperDoc (can be used for "@"-mentions)
36
- * @property {Array<string>} [colors] Colors to use for user awareness
37
- * @property {Modules} [modules] Modules to load
38
- * @property {boolean} [pagination] Whether to show pagination in SuperEditors
39
- * @property {string} [toolbar] Optional DOM element to render the toolbar in
40
- * @property {Array<string>} [toolbarGroups] Toolbar groups to show
41
- * @property {Object} [toolbarIcons] Icons to show in the toolbar
42
- * @property {boolean} [isDev] Whether the SuperDoc is in development mode
43
- * @property {Telemetry} [telemetry] Telemetry configuration
44
- * @property {(editor: Editor) => void} [onEditorBeforeCreate] Callback before an editor is created
45
- * @property {(editor: Editor) => void} [onEditorCreate] Callback after an editor is created
46
- * @property {() => void} [onEditorDestroy] Callback after an editor is destroyed
47
- * @property {(params: { error: object, editor: Editor, documentId: string, file: File })} [onContentError] Callback when there is an error in the content
48
- * @property {(editor: { superdoc: SuperDoc }) => void} [onReady] Callback when the SuperDoc is ready
49
- * @property {(params: { type: string, data: object}) => void} [onCommentsUpdate] Callback when comments are updated
50
- * @property {(params: { context: SuperDoc, states: Array }) => void} [onAwarenessUpdate] Callback when awareness is updated
51
- * @property {(params: { isLocked: boolean, lockedBy: User }) => void} [onLocked] Callback when the SuperDoc is locked
52
- * @property {() => void} [onPdfDocumentReady] Callback when the PDF document is ready
53
- * @property {(isOpened: boolean) => void} [onSidebarToggle] Callback when the sidebar is toggled
54
- * @property {(params: { editor: Editor }) => void} [onCollaborationReady] Callback when collaboration is ready
55
- * @property {(params: { editor: Editor }) => void} [onEditorUpdate] Callback when document is updated
56
- * @property {(params: { error: Exception }) => void} [onException] Callback when an exception is thrown
57
- */
58
- /**
59
- * SuperDoc class
60
- * Expects a config object
61
- * @class
62
- */
63
- export class SuperDoc extends EventEmitter<string | symbol, any> {
64
- /** @type {Array<string>} */
65
- static allowedTypes: Array<string>;
66
- /**
67
- * @param {Config} config
68
- */
69
- constructor(config: Config);
70
- /** @type {number} */
71
- version: number;
72
- users: any;
73
- /** @type {Config} */
74
- config: Config;
75
- userColorMap: Map<any, any>;
76
- colorIndex: number;
77
- superdocId: any;
78
- colors: string[];
79
- user: User;
80
- socket: any;
81
- isDev: boolean;
82
- activeEditor: any;
83
- comments: any[];
84
- readyEditors: number;
85
- isLocked: any;
86
- lockedBy: any;
87
- get requiredNumberOfEditors(): any;
88
- get state(): {
89
- documents: any;
90
- users: any;
91
- };
92
- app: any;
93
- pinia: any;
94
- superdocStore: any;
95
- commentsStore: any;
96
- isCollaborative: boolean;
97
- /**
98
- * Add a user to the shared users list
99
- *
100
- * @param {Object} user The user to add
101
- * @returns {void}
102
- */
103
- addSharedUser(user: any): void;
104
- /**
105
- * Remove a user from the shared users list
106
- *
107
- * @param {String} email The email of the user to remove
108
- * @returns {void}
109
- */
110
- removeSharedUser(email: string): void;
111
- telemetry: Telemetry;
112
- onContentError({ error, editor }: {
113
- error: any;
114
- editor: any;
115
- }): void;
116
- broadcastPdfDocumentReady(): void;
117
- broadcastReady(): void;
118
- broadcastEditorBeforeCreate(editor: any): void;
119
- broadcastEditorCreate(editor: any): void;
120
- broadcastEditorDestroy(): void;
121
- broadcastSidebarToggle(isOpened: any): void;
122
- log(...args: any[]): void;
123
- setActiveEditor(editor: any): void;
124
- /**
125
- * Toggle the ruler visibility for SuperEditors
126
- *
127
- * @returns {void}
128
- */
129
- toggleRuler(): void;
130
- toolbarElement: any;
131
- toolbar: SuperToolbar;
132
- addCommentsList(element: any): void;
133
- commentsList: SuperComments;
134
- removeCommentsList(): void;
135
- onToolbarCommand({ item, argument }: {
136
- item: any;
137
- argument: any;
138
- }): void;
139
- setDocumentMode(type: any): void;
140
- /**
141
- * Set the document to locked or unlocked
142
- * @param {boolean} lock
143
- */
144
- setLocked(lock?: boolean): void;
145
- getHTML(): any[];
146
- /**
147
- * Lock the current superdoc
148
- * @param {Boolean} isLocked
149
- * @param {User} lockedBy The user who locked the superdoc
150
- */
151
- lockSuperdoc(isLocked: boolean, lockedBy: User): void;
152
- export({ exportType, commentsType, exportedName, additionalFiles, additionalFileNames }?: {
153
- exportType?: string[];
154
- additionalFiles?: any[];
155
- additionalFileNames?: any[];
156
- }): Promise<void>;
157
- exportEditorsToDOCX({ commentsType }?: {}): Promise<any[]>;
158
- pendingCollaborationSaves: number;
159
- save(): Promise<void[]>;
160
- destroy(): void;
161
- /**
162
- * Focus the active editor or the first editor in the superdoc
163
- * @returns {void}
164
- */
165
- focus(): void;
166
- #private;
167
- }
168
- /**
169
- * The current user of this superdoc
170
- */
171
- export type User = {
172
- /**
173
- * The user's name
174
- */
175
- name: string;
176
- /**
177
- * The user's email
178
- */
179
- email: string;
180
- /**
181
- * The user's photo
182
- */
183
- image: string | null;
184
- };
185
- /**
186
- * Telemetry configuration
187
- */
188
- export type Telemetry = {
189
- /**
190
- * Whether telemetry is enabled
191
- */
192
- enabled?: boolean;
193
- /**
194
- * The licence key for telemetry
195
- */
196
- licenceKey?: string;
197
- /**
198
- * The endpoint for telemetry
199
- */
200
- endpoint?: string;
201
- };
202
- export type Document = {
203
- /**
204
- * The ID of the document
205
- */
206
- id: string;
207
- /**
208
- * The type of the document
209
- */
210
- type: string;
211
- /**
212
- * The initial data of the document
213
- */
214
- data?: File | null;
215
- };
216
- export type Modules = {
217
- /**
218
- * Comments module configuration
219
- */
220
- comments?: any;
221
- /**
222
- * AI module configuration
223
- */
224
- ai?: {
225
- apiKey?: string;
226
- endpoint?: string;
227
- };
228
- };
229
- export type Config = {
230
- /**
231
- * The ID of the SuperDoc
232
- */
233
- superdocId?: string;
234
- /**
235
- * The selector to mount the SuperDoc into
236
- */
237
- selector: string;
238
- /**
239
- * The mode of the document
240
- */
241
- documentMode: "editing" | "viewing" | "suggesting";
242
- /**
243
- * The role of the user in this SuperDoc
244
- */
245
- role?: "editor" | "viewer" | "suggester";
246
- /**
247
- * The document to load. If a string, it will be treated as a URL
248
- */
249
- document?: any | string;
250
- /**
251
- * The documents to load
252
- */
253
- documents: Array<Document>;
254
- /**
255
- * The current user of this SuperDoc
256
- */
257
- user?: User;
258
- /**
259
- * All users of this SuperDoc (can be used for "@"-mentions)
260
- */
261
- users?: Array<User>;
262
- /**
263
- * Colors to use for user awareness
264
- */
265
- colors?: Array<string>;
266
- /**
267
- * Modules to load
268
- */
269
- modules?: Modules;
270
- /**
271
- * Whether to show pagination in SuperEditors
272
- */
273
- pagination?: boolean;
274
- /**
275
- * Optional DOM element to render the toolbar in
276
- */
277
- toolbar?: string;
278
- /**
279
- * Toolbar groups to show
280
- */
281
- toolbarGroups?: Array<string>;
282
- /**
283
- * Icons to show in the toolbar
284
- */
285
- toolbarIcons?: any;
286
- /**
287
- * Whether the SuperDoc is in development mode
288
- */
289
- isDev?: boolean;
290
- /**
291
- * Telemetry configuration
292
- */
293
- telemetry?: Telemetry;
294
- /**
295
- * Callback before an editor is created
296
- */
297
- onEditorBeforeCreate?: (editor: Editor) => void;
298
- /**
299
- * Callback after an editor is created
300
- */
301
- onEditorCreate?: (editor: Editor) => void;
302
- /**
303
- * Callback after an editor is destroyed
304
- */
305
- onEditorDestroy?: () => void;
306
- /**
307
- * Callback when there is an error in the content
308
- */
309
- onContentError?: (params: {
310
- error: object;
311
- editor: Editor;
312
- documentId: string;
313
- file: File;
314
- }) => any;
315
- /**
316
- * Callback when the SuperDoc is ready
317
- */
318
- onReady?: (editor: {
319
- superdoc: SuperDoc;
320
- }) => void;
321
- /**
322
- * Callback when comments are updated
323
- */
324
- onCommentsUpdate?: (params: {
325
- type: string;
326
- data: object;
327
- }) => void;
328
- /**
329
- * Callback when awareness is updated
330
- */
331
- onAwarenessUpdate?: (params: {
332
- context: SuperDoc;
333
- states: any[];
334
- }) => void;
335
- /**
336
- * Callback when the SuperDoc is locked
337
- */
338
- onLocked?: (params: {
339
- isLocked: boolean;
340
- lockedBy: User;
341
- }) => void;
342
- /**
343
- * Callback when the PDF document is ready
344
- */
345
- onPdfDocumentReady?: () => void;
346
- /**
347
- * Callback when the sidebar is toggled
348
- */
349
- onSidebarToggle?: (isOpened: boolean) => void;
350
- /**
351
- * Callback when collaboration is ready
352
- */
353
- onCollaborationReady?: (params: {
354
- editor: Editor;
355
- }) => void;
356
- /**
357
- * Callback when document is updated
358
- */
359
- onEditorUpdate?: (params: {
360
- editor: Editor;
361
- }) => void;
362
- /**
363
- * Callback when an exception is thrown
364
- */
365
- onException?: (params: {
366
- error: Exception;
367
- }) => void;
368
- };
369
- import EventEmitter from 'eventemitter3';
370
- import { Telemetry } from '@harbour-enterprises/common/Telemetry.js';
371
- import { SuperToolbar } from '@harbour-enterprises/super-editor';
372
- import { SuperComments } from '../components/CommentsLayer/commentsList/super-comments-list.js';
373
- //# sourceMappingURL=SuperDoc.d.ts.map
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AQ,EAAE,OAAO,CAAC;QAAC,QAAQ,EAAE,IAAI,CAAA;KAAE,KAAK,IAAI;;;;yBACvD,MAAM,IAAI;;;;sBACV,CAAC,QAAQ,EAAE,OAAO,KAAK,IAAI;;;;2BAC3B,CAAC,MAAM,EAAE;QAAE,MAAM,EAAE,MAAM,CAAA;KAAE,KAAK,IAAI;;;;qBACpC,CAAC,MAAM,EAAE;QAAE,MAAM,EAAE,MAAM,CAAA;KAAE,KAAK,IAAI;;;;kBACpC,CAAC,MAAM,EAAE;QAAE,KAAK,EAAE,SAAS,CAAA;KAAE,KAAK,IAAI;;yBA5E3B,eAAe;0BASd,0CAA0C;6BAJ5B,mCAAmC;8BAC7C,iEAAiE"}
@@ -1,5 +0,0 @@
1
- export function addYComment(yArray: any, ydoc: any, event: any): void;
2
- export function updateYComment(yArray: any, ydoc: any, event: any): void;
3
- export function deleteYComment(yArray: any, ydoc: any, event: any): void;
4
- export function getCommentIndex(yArray: any, comment: any): any;
5
- //# sourceMappingURL=collaboration-comments.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"collaboration-comments.d.ts","sourceRoot":"","sources":["../../../src/core/collaboration/collaboration-comments.js"],"names":[],"mappings":"AAGO,sEAON;AAEM,yEAUN;AAEM,yEAQN;AAEM,gEAGN"}
@@ -1,27 +0,0 @@
1
- /**
2
- * Translate awareness states to an array of users. This will cause superdoc (context) to
3
- * emit an awareness-update event with the list of users.
4
- *
5
- * @param {Object} context The superdoc instance
6
- * @param {*} states The awareness states
7
- * @returns {void}
8
- */
9
- export function createAwarenessHandler(context: any, states: any): void;
10
- /**
11
- * Main function to create a provider for collaboration.
12
- * Currently only hocuspocus is actually supported.
13
- *
14
- * @param {Object} param The config object
15
- * @param {Object} param.config The configuration object
16
- * @param {Object} param.ydoc The Yjs document
17
- * @param {Object} param.user The user object
18
- * @param {string} param.documentId The document ID
19
- * @returns {Object} The provider and socket
20
- */
21
- export function createProvider({ config, user, documentId, socket, superdocInstance }: {
22
- config: any;
23
- ydoc: any;
24
- user: any;
25
- documentId: string;
26
- }): any;
27
- //# sourceMappingURL=collaboration.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"collaboration.d.ts","sourceRoot":"","sources":["../../../src/core/collaboration/collaboration.js"],"names":[],"mappings":"AAIA;;;;;;;GAOG;AACH,6DAHW,GAAC,GACC,IAAI,CAOhB;AAED;;;;;;;;;;GAUG;AACH,uFANG;IAAsB,MAAM;IACN,IAAI;IACJ,IAAI;IACJ,UAAU,EAAxB,MAAM;CACd,OAQF"}
@@ -1,5 +0,0 @@
1
- export function initCollaborationComments(superdoc: any): void;
2
- export function initSuperdocYdoc(superdoc: any): void;
3
- export function makeDocumentsCollaborative(superdoc: any): any;
4
- export function syncCommentsToClients(superdoc: any, event: any): void;
5
- //# sourceMappingURL=helpers.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"helpers.d.ts","sourceRoot":"","sources":["../../../src/core/collaboration/helpers.js"],"names":[],"mappings":"AAeO,0DAFM,IAAI,CA+BhB;AAUM,iDAFM,IAAI,CAmChB;AAUM,+DAqBN;AASM,kEAFM,IAAI,CAsBhB"}
@@ -1,14 +0,0 @@
1
- export const PERMISSIONS: Readonly<{
2
- RESOLVE_OWN: "RESOLVE_OWN";
3
- RESOLVE_OTHER: "RESOLVE_OTHER";
4
- REJECT_OWN: "REJECT_OWN";
5
- REJECT_OTHER: "REJECT_OTHER";
6
- COMMENTS_OVERFLOW_OWN: "COMMENTS_OVERFLOW";
7
- COMMENTS_OVERFLOW_OTHER: "COMMENTS_OVERFLOW_OTHER";
8
- COMMENTS_DELETE_OWN: "COMMENTS_DELETE_OWN";
9
- COMMENTS_DELETE_OTHER: "COMMENTS_DELETE_OTHER";
10
- UPLOAD_VERSION: "UPLOAD_VERSION";
11
- VERSION_HISTORY: "VERSION_HISTORY";
12
- }>;
13
- export function isAllowed(permission: string, role: string, isInternal: boolean): boolean;
14
- //# sourceMappingURL=permissions.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"permissions.d.ts","sourceRoot":"","sources":["../../../src/core/collaboration/permissions.js"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AA2DI,0FAGN"}
@@ -1,2 +0,0 @@
1
- export function createSuperdocVueApp(): any;
2
- //# sourceMappingURL=create-app.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"create-app.d.ts","sourceRoot":"","sources":["../../src/core/create-app.js"],"names":[],"mappings":"AAaO,4CASN"}
@@ -1,3 +0,0 @@
1
- export function createDownload(blob: Blob, name: string, extension: string): void;
2
- export function cleanName(currentName: string): string;
3
- //# sourceMappingURL=export.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"export.d.ts","sourceRoot":"","sources":["../../../src/core/helpers/export.js"],"names":[],"mappings":"AAOO,qCAJI,IAAI,QACJ,MAAM,aACN,MAAM,QAQhB;AAQM,uCAHI,MAAM,GACJ,MAAM,CAOlB"}
@@ -1,2 +0,0 @@
1
- export * from "./SuperDoc.js";
2
- //# sourceMappingURL=index.d.ts.map
@@ -1,18 +0,0 @@
1
- export default function useSelection(params: any): {
2
- documentId: import("vue").Ref<any, any>;
3
- page: import("vue").Ref<any, any>;
4
- selectionBounds: any;
5
- source: import("vue").Ref<any, any>;
6
- getValues: () => {
7
- documentId: any;
8
- page: any;
9
- selectionBounds: any;
10
- source: any;
11
- };
12
- getContainerId: () => string;
13
- getContainerLocation: (parentContainer: any) => {
14
- top: number;
15
- left: number;
16
- };
17
- };
18
- //# sourceMappingURL=use-selection.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"use-selection.d.ts","sourceRoot":"","sources":["../../src/helpers/use-selection.js"],"names":[],"mappings":"AAEA;;;;;;;;;;;;;;;;EA+CC"}
package/dist/icons.d.ts DELETED
@@ -1,11 +0,0 @@
1
- export namespace superdocIcons {
2
- export { commentIconSvg as comment };
3
- export { caretDownIconSvg as caretDown };
4
- export { userCheckIconSvg as internal };
5
- export { usersIconSvg as external };
6
- export { checkIconSvg as markDone };
7
- export { checkIconSvg as acceptChange };
8
- export { xmarkIconSvg as rejectChange };
9
- export { ellipsisVerticalSvg as overflow };
10
- }
11
- //# sourceMappingURL=icons.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"icons.d.ts","sourceRoot":"","sources":["../src/icons.js"],"names":[],"mappings":""}
package/dist/index.d.ts DELETED
@@ -1,15 +0,0 @@
1
- export * from "./core/index.js";
2
- import { getFileObject } from '@harbour-enterprises/common';
3
- import { compareVersions } from '@harbour-enterprises/common';
4
- import { Editor } from '@harbour-enterprises/super-editor';
5
- import { getRichTextExtensions } from '@harbour-enterprises/super-editor';
6
- import { DOCX } from '@harbour-enterprises/common';
7
- import { PDF } from '@harbour-enterprises/common';
8
- import { HTML } from '@harbour-enterprises/common';
9
- import { helpers as superEditorHelpers } from '@harbour-enterprises/super-editor';
10
- import { fieldAnnotationHelpers } from '@harbour-enterprises/super-editor';
11
- import { trackChangesHelpers } from '@harbour-enterprises/super-editor';
12
- import { SuperConverter } from '@harbour-enterprises/super-editor';
13
- import { createZip } from '@harbour-enterprises/super-editor';
14
- export { BlankDOCX, getFileObject, compareVersions, Editor, getRichTextExtensions, DOCX, PDF, HTML, superEditorHelpers, fieldAnnotationHelpers, trackChangesHelpers, SuperConverter, createZip };
15
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.js"],"names":[],"mappings":";8BAMgE,6BAA6B;gCAA7B,6BAA6B;uBANpB,mCAAmC;sCAAnC,mCAAmC;qBAM5C,6BAA6B;oBAA7B,6BAA6B;qBAA7B,6BAA6B;8CADtF,mCAAmC;uCAAnC,mCAAmC;oCAAnC,mCAAmC;+BAL+B,mCAAmC;0BAAnC,mCAAmC"}
package/dist/main.d.ts DELETED
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=main.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"main.d.ts","sourceRoot":"","sources":["../src/main.js"],"names":[],"mappings":""}