@kedataindo/docflow-core 0.0.35 → 0.0.36
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.
- package/dist/index.cjs +1 -1
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -1541,7 +1541,7 @@ function createEditor(options = {}) {
|
|
|
1541
1541
|
content: options.content ? migrateContent(options.content) : options.content
|
|
1542
1542
|
};
|
|
1543
1543
|
const plugins = migratedOptions.plugins ?? [];
|
|
1544
|
-
const collaborationSetup = migratedOptions.collaboration ? createCollaboration(migratedOptions.collaboration)
|
|
1544
|
+
const collaborationSetup = !migratedOptions.collaboration ? void 0 : "ydoc" in migratedOptions.collaboration ? migratedOptions.collaboration : createCollaboration(migratedOptions.collaboration);
|
|
1545
1545
|
const performanceMonitor = migratedOptions.debug ? createPerformanceMonitor() : void 0;
|
|
1546
1546
|
let tiptapEditor = createTiptapEditor(migratedOptions, plugins, collaborationSetup);
|
|
1547
1547
|
let pluginActions = createActionMap(tiptapEditor, plugins);
|
package/dist/index.d.cts
CHANGED
|
@@ -201,7 +201,7 @@ interface EditorOptions {
|
|
|
201
201
|
plugins?: DocsEditorPlugin[];
|
|
202
202
|
editable?: boolean;
|
|
203
203
|
onUpdate?: (json: object) => void;
|
|
204
|
-
collaboration?: CollaborationOptions;
|
|
204
|
+
collaboration?: CollaborationOptions | CollaborationSetup;
|
|
205
205
|
getPageMap?: () => Map<number, {
|
|
206
206
|
page: number;
|
|
207
207
|
blockIndex: number;
|
package/dist/index.d.ts
CHANGED
|
@@ -201,7 +201,7 @@ interface EditorOptions {
|
|
|
201
201
|
plugins?: DocsEditorPlugin[];
|
|
202
202
|
editable?: boolean;
|
|
203
203
|
onUpdate?: (json: object) => void;
|
|
204
|
-
collaboration?: CollaborationOptions;
|
|
204
|
+
collaboration?: CollaborationOptions | CollaborationSetup;
|
|
205
205
|
getPageMap?: () => Map<number, {
|
|
206
206
|
page: number;
|
|
207
207
|
blockIndex: number;
|
package/dist/index.js
CHANGED
|
@@ -1483,7 +1483,7 @@ function createEditor(options = {}) {
|
|
|
1483
1483
|
content: options.content ? migrateContent(options.content) : options.content
|
|
1484
1484
|
};
|
|
1485
1485
|
const plugins = migratedOptions.plugins ?? [];
|
|
1486
|
-
const collaborationSetup = migratedOptions.collaboration ? createCollaboration(migratedOptions.collaboration)
|
|
1486
|
+
const collaborationSetup = !migratedOptions.collaboration ? void 0 : "ydoc" in migratedOptions.collaboration ? migratedOptions.collaboration : createCollaboration(migratedOptions.collaboration);
|
|
1487
1487
|
const performanceMonitor = migratedOptions.debug ? createPerformanceMonitor() : void 0;
|
|
1488
1488
|
let tiptapEditor = createTiptapEditor(migratedOptions, plugins, collaborationSetup);
|
|
1489
1489
|
let pluginActions = createActionMap(tiptapEditor, plugins);
|