@harbour-enterprises/superdoc 0.6.101 → 0.6.102
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/chunks/{super-editor.es-j2PukWRy.js → super-editor.es-DpMrL-bU.js} +7 -7
- package/dist/chunks/{super-editor.es-j2PukWRy.js.map → super-editor.es-DpMrL-bU.js.map} +1 -1
- package/dist/super-editor/chunks/{converter-BHk9ufcG.js → converter-BGYuHapM.js} +3 -3
- package/dist/super-editor/chunks/{converter-BHk9ufcG.js.map → converter-BGYuHapM.js.map} +1 -1
- package/dist/super-editor/chunks/{docx-zipper-CEVAJwEk.js → docx-zipper-D4lHJs84.js} +2 -2
- package/dist/super-editor/chunks/{docx-zipper-CEVAJwEk.js.map → docx-zipper-D4lHJs84.js.map} +1 -1
- package/dist/super-editor/chunks/{editor-Brooq9vS.js → editor-B35pemal.js} +7 -7
- package/dist/super-editor/chunks/editor-B35pemal.js.map +1 -0
- package/dist/super-editor/chunks/{toolbar-hEi3APey.js → toolbar-Dc0qwLkT.js} +3 -3
- package/dist/super-editor/chunks/{toolbar-hEi3APey.js.map → toolbar-Dc0qwLkT.js.map} +1 -1
- package/dist/super-editor/converter.es.js +1 -1
- package/dist/super-editor/docx-zipper.es.js +2 -2
- package/dist/super-editor/editor.es.js +3 -3
- package/dist/super-editor/file-zipper.es.js +1 -1
- package/dist/super-editor/super-editor.es.js +6 -6
- package/dist/super-editor/toolbar.es.js +2 -2
- package/dist/super-editor.es.js +1 -1
- package/dist/superdoc.es.js +3 -3
- package/dist/superdoc.umd.js +7 -7
- package/dist/superdoc.umd.js.map +1 -1
- package/package.json +1 -1
- package/dist/super-editor/chunks/editor-Brooq9vS.js.map +0 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { E } from "./chunks/editor-
|
|
2
|
-
import "./chunks/converter-
|
|
3
|
-
import "./chunks/docx-zipper-
|
|
1
|
+
import { E } from "./chunks/editor-B35pemal.js";
|
|
2
|
+
import "./chunks/converter-BGYuHapM.js";
|
|
3
|
+
import "./chunks/docx-zipper-D4lHJs84.js";
|
|
4
4
|
export {
|
|
5
5
|
E as Editor
|
|
6
6
|
};
|
|
@@ -9,13 +9,13 @@ var __privateGet = (obj, member, getter) => (__accessCheck(obj, member, "read fr
|
|
|
9
9
|
var __privateAdd = (obj, member, value) => member.has(obj) ? __typeError("Cannot add the same private member more than once") : member instanceof WeakSet ? member.add(obj) : member.set(obj, value);
|
|
10
10
|
var __privateMethod = (obj, member, method) => (__accessCheck(obj, member, "access private method"), method);
|
|
11
11
|
var _interceptedCommands, _SuperToolbar_instances, makeToolbarItems_fn, initDefaultFonts_fn, updateHighlightColors_fn, deactivateAll_fn, updateToolbarHistory_fn, runCommandWithArgumentOnly_fn;
|
|
12
|
-
import { _ as _export_sfc, a as getQuickFormatList, b as generateLinkedStyleString, I as ImagePlaceholderPluginKey, f as findPlaceholder, c as findParentNode, d as getActiveFormatting, i as isInTable, u as undoDepth, r as redoDepth, E as Editor, e as getStarterExtensions, P as Placeholder, h as getRichTextExtensions } from "./chunks/editor-
|
|
13
|
-
import { k, m, j, l } from "./chunks/editor-
|
|
14
|
-
import { O as getDefaultExportFromCjs, v as v4, T as TextSelection, U as vClickOutside } from "./chunks/converter-
|
|
15
|
-
import { C } from "./chunks/converter-
|
|
12
|
+
import { _ as _export_sfc, a as getQuickFormatList, b as generateLinkedStyleString, I as ImagePlaceholderPluginKey, f as findPlaceholder, c as findParentNode, d as getActiveFormatting, i as isInTable, u as undoDepth, r as redoDepth, E as Editor, e as getStarterExtensions, P as Placeholder, h as getRichTextExtensions } from "./chunks/editor-B35pemal.js";
|
|
13
|
+
import { k, m, j, l } from "./chunks/editor-B35pemal.js";
|
|
14
|
+
import { O as getDefaultExportFromCjs, v as v4, T as TextSelection, U as vClickOutside } from "./chunks/converter-BGYuHapM.js";
|
|
15
|
+
import { C } from "./chunks/converter-BGYuHapM.js";
|
|
16
16
|
import { ref, createElementBlock, openBlock, createElementVNode, unref, getCurrentInstance, computed, watch, onMounted, createCommentVNode, withDirectives, withKeys, normalizeClass, withModifiers, vModelText, createTextVNode, toDisplayString, Fragment, renderList, normalizeStyle, createVNode, h, createApp, reactive, onUnmounted, shallowRef, onBeforeUnmount, createBlock } from "vue";
|
|
17
|
-
import { t as toolbarIcons, s as sanitizeNumber, T as Toolbar, N as NSkeleton } from "./chunks/toolbar-
|
|
18
|
-
import { D } from "./chunks/docx-zipper-
|
|
17
|
+
import { t as toolbarIcons, s as sanitizeNumber, T as Toolbar, N as NSkeleton } from "./chunks/toolbar-Dc0qwLkT.js";
|
|
18
|
+
import { D } from "./chunks/docx-zipper-D4lHJs84.js";
|
|
19
19
|
import { createZip } from "./file-zipper.es.js";
|
|
20
20
|
var eventemitter3 = { exports: {} };
|
|
21
21
|
(function(module) {
|
package/dist/super-editor.es.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { _, D, E, S, a, b, c, T, d, i, g, e, f, h, j, k, l } from "./chunks/super-editor.es-
|
|
1
|
+
import { _, D, E, S, a, b, c, T, d, i, g, e, f, h, j, k, l } from "./chunks/super-editor.es-DpMrL-bU.js";
|
|
2
2
|
import "./chunks/vue-BjMDYCe1.js";
|
|
3
3
|
export {
|
|
4
4
|
_ as BasicUpload,
|
package/dist/superdoc.es.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { E as Editor, h as getRichTextExtensions, b as SuperInput, a as SuperEditor, c as SuperToolbar, d as createZip } from "./chunks/super-editor.es-
|
|
2
|
-
import { S, i, k, l } from "./chunks/super-editor.es-
|
|
1
|
+
import { E as Editor, h as getRichTextExtensions, b as SuperInput, a as SuperEditor, c as SuperToolbar, d as createZip } from "./chunks/super-editor.es-DpMrL-bU.js";
|
|
2
|
+
import { S, i, k, l } from "./chunks/super-editor.es-DpMrL-bU.js";
|
|
3
3
|
import { Y as effectScope, r as ref, Z as markRaw, p as process$1, _ as toRaw, a as computed, $ as isRef, a0 as isReactive, C as toRef, i as inject, q as getCurrentInstance, l as watch, x as unref, a1 as hasInjectionContext, L as reactive, R as nextTick, a2 as getCurrentScope, a3 as onScopeDispose, a4 as toRefs, g as global$1, N as shallowRef, M as readonly, j as onMounted, k as onBeforeUnmount, h as onBeforeMount, U as onActivated, s as onDeactivated, z as createTextVNode, F as Fragment, Q as Comment, m as defineComponent, D as provide, G as withDirectives, B as h, V as Teleport, S as renderSlot, W as isVNode, K as watchEffect, O as Transition, E as mergeProps, P as vShow, J as cloneVNode, T as Text, b as createElementBlock, o as openBlock, t as toDisplayString, v as createVNode, y as withCtx, f as createBaseVNode, A as normalizeStyle, e as createCommentVNode, u as createBlock, w as withModifiers, n as normalizeClass, a5 as resolveDirective, d as renderList, c as createApp, a6 as resolveDynamicComponent } from "./chunks/vue-BjMDYCe1.js";
|
|
4
4
|
import { B as Buffer$2 } from "./chunks/jszip-Df6uKve1.js";
|
|
5
5
|
import { b } from "./chunks/blank-docx-BagxM198.js";
|
|
@@ -45810,7 +45810,7 @@ class SuperDoc extends EventEmitter {
|
|
|
45810
45810
|
this.config.colors = shuffleArray(this.config.colors);
|
|
45811
45811
|
this.userColorMap = /* @__PURE__ */ new Map();
|
|
45812
45812
|
this.colorIndex = 0;
|
|
45813
|
-
this.version = "0.6.
|
|
45813
|
+
this.version = "0.6.102";
|
|
45814
45814
|
console.debug("🦋 [superdoc] Using SuperDoc version:", this.version);
|
|
45815
45815
|
this.superdocId = config.superdocId || v4();
|
|
45816
45816
|
this.colors = this.config.colors;
|
package/dist/superdoc.umd.js
CHANGED
|
@@ -27966,7 +27966,7 @@
|
|
|
27966
27966
|
return;
|
|
27967
27967
|
}
|
|
27968
27968
|
}
|
|
27969
|
-
static updateDocumentVersion(docx = this.convertedXml, version2 = "0.6.
|
|
27969
|
+
static updateDocumentVersion(docx = this.convertedXml, version2 = "0.6.102") {
|
|
27970
27970
|
const customLocation = "docProps/custom.xml";
|
|
27971
27971
|
if (!docx[customLocation]) {
|
|
27972
27972
|
docx[customLocation] = generateCustomXml();
|
|
@@ -28239,7 +28239,7 @@
|
|
|
28239
28239
|
function generateCustomXml() {
|
|
28240
28240
|
return DEFAULT_CUSTOM_XML;
|
|
28241
28241
|
}
|
|
28242
|
-
function generateSuperdocVersion(pid = 2, version2 = "0.6.
|
|
28242
|
+
function generateSuperdocVersion(pid = 2, version2 = "0.6.102") {
|
|
28243
28243
|
return {
|
|
28244
28244
|
type: "element",
|
|
28245
28245
|
name: "property",
|
|
@@ -42465,7 +42465,7 @@
|
|
|
42465
42465
|
* @returns {Y.Doc | undefined} Updated Y.Doc if any, otherwise undefined
|
|
42466
42466
|
*/
|
|
42467
42467
|
processCollaborationMigrations() {
|
|
42468
|
-
console.debug("[checkVersionMigrations] Current editor version", "0.6.
|
|
42468
|
+
console.debug("[checkVersionMigrations] Current editor version", "0.6.102");
|
|
42469
42469
|
if (!this.options.ydoc) return;
|
|
42470
42470
|
const metaMap = this.options.ydoc.getMap("meta");
|
|
42471
42471
|
let docVersion = metaMap.get("version");
|
|
@@ -42590,7 +42590,7 @@
|
|
|
42590
42590
|
insertNewFileData_fn = function() {
|
|
42591
42591
|
if (!this.options.isNewFile) return;
|
|
42592
42592
|
this.options.isNewFile = false;
|
|
42593
|
-
const doc2 = __privateMethod$1(this, _Editor_instances, generatePmData_fn).call(this
|
|
42593
|
+
const doc2 = __privateMethod$1(this, _Editor_instances, generatePmData_fn).call(this);
|
|
42594
42594
|
const tr = this.state.tr.replaceWith(0, this.state.doc.content.size, doc2);
|
|
42595
42595
|
this.view.dispatch(tr);
|
|
42596
42596
|
setTimeout(() => {
|
|
@@ -42646,13 +42646,13 @@
|
|
|
42646
42646
|
createSchema_fn = function() {
|
|
42647
42647
|
this.schema = this.extensionService.schema;
|
|
42648
42648
|
};
|
|
42649
|
-
generatePmData_fn = function(
|
|
42649
|
+
generatePmData_fn = function() {
|
|
42650
42650
|
let doc2;
|
|
42651
42651
|
try {
|
|
42652
42652
|
const { mode, fragment, isHeadless, content, loadFromSchema } = this.options;
|
|
42653
42653
|
if (mode === "docx") {
|
|
42654
42654
|
doc2 = createDocument(this.converter, this.schema, this);
|
|
42655
|
-
|
|
42655
|
+
doc2 = __privateMethod$1(this, _Editor_instances, prepareDocumentForImport_fn).call(this, doc2);
|
|
42656
42656
|
if (fragment && isHeadless) {
|
|
42657
42657
|
doc2 = yXmlFragmentToProseMirrorRootNode(fragment, this.schema);
|
|
42658
42658
|
}
|
|
@@ -110754,7 +110754,7 @@ ${style2}
|
|
|
110754
110754
|
this.config.colors = shuffleArray(this.config.colors);
|
|
110755
110755
|
this.userColorMap = /* @__PURE__ */ new Map();
|
|
110756
110756
|
this.colorIndex = 0;
|
|
110757
|
-
this.version = "0.6.
|
|
110757
|
+
this.version = "0.6.102";
|
|
110758
110758
|
console.debug("🦋 [superdoc] Using SuperDoc version:", this.version);
|
|
110759
110759
|
this.superdocId = config.superdocId || v4();
|
|
110760
110760
|
this.colors = this.config.colors;
|