@harbour-enterprises/superdoc 0.7.11 → 0.7.12
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-B1h1d98o.js → super-editor.es-Ds8z4efe.js} +5 -5
- package/dist/chunks/super-editor.es-Ds8z4efe.js.map +1 -0
- package/dist/super-editor/chunks/{converter-DevFloKQ.js → converter-DXHxlWfC.js} +4 -4
- package/dist/super-editor/chunks/{converter-DevFloKQ.js.map → converter-DXHxlWfC.js.map} +1 -1
- package/dist/super-editor/chunks/{docx-zipper-CM7NkDGl.js → docx-zipper-Ji0TSMz8.js} +2 -2
- package/dist/super-editor/chunks/{docx-zipper-CM7NkDGl.js.map → docx-zipper-Ji0TSMz8.js.map} +1 -1
- package/dist/super-editor/chunks/{editor-CcU9xH5t.js → editor-BXLPn6we.js} +4 -4
- package/dist/super-editor/chunks/{editor-CcU9xH5t.js.map → editor-BXLPn6we.js.map} +1 -1
- package/dist/super-editor/chunks/{toolbar-CNZlFQqH.js → toolbar-Y35iEgmH.js} +3 -3
- package/dist/super-editor/chunks/{toolbar-CNZlFQqH.js.map → toolbar-Y35iEgmH.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 +5 -5
- package/dist/superdoc.umd.js.map +1 -1
- package/package.json +1 -1
- package/dist/chunks/super-editor.es-B1h1d98o.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-BXLPn6we.js";
|
|
2
|
+
import "./chunks/converter-DXHxlWfC.js";
|
|
3
|
+
import "./chunks/docx-zipper-Ji0TSMz8.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, j as Extension, A as Attribute, N as Node } from "./chunks/editor-
|
|
13
|
-
import { l, n, k, m } from "./chunks/editor-
|
|
14
|
-
import { O as getDefaultExportFromCjs, v as v4, T as TextSelection, U as vClickOutside, a as Plugin } from "./chunks/converter-
|
|
15
|
-
import { E } 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, j as Extension, A as Attribute, N as Node } from "./chunks/editor-BXLPn6we.js";
|
|
13
|
+
import { l, n, k, m } from "./chunks/editor-BXLPn6we.js";
|
|
14
|
+
import { O as getDefaultExportFromCjs, v as v4, T as TextSelection, U as vClickOutside, a as Plugin } from "./chunks/converter-DXHxlWfC.js";
|
|
15
|
+
import { E } from "./chunks/converter-DXHxlWfC.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-Y35iEgmH.js";
|
|
18
|
+
import { D } from "./chunks/docx-zipper-Ji0TSMz8.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, a, S, b, c, d, T, e, i, g, f, h, j, k, l, m } from "./chunks/super-editor.es-
|
|
1
|
+
import { _, D, E, a, S, b, c, d, T, e, i, g, f, h, j, k, l, m } from "./chunks/super-editor.es-Ds8z4efe.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, j as getRichTextExtensions, c as SuperInput, b as SuperEditor, d as SuperToolbar, e as createZip } from "./chunks/super-editor.es-
|
|
2
|
-
import { S, i, l, m } from "./chunks/super-editor.es-
|
|
1
|
+
import { E as Editor, j as getRichTextExtensions, c as SuperInput, b as SuperEditor, d as SuperToolbar, e as createZip } from "./chunks/super-editor.es-Ds8z4efe.js";
|
|
2
|
+
import { S, i, l, m } from "./chunks/super-editor.es-Ds8z4efe.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 as BlankDOCX } from "./chunks/blank-docx-iwdyG9RH.js";
|
|
@@ -45843,7 +45843,7 @@ class SuperDoc extends EventEmitter {
|
|
|
45843
45843
|
this.config.colors = shuffleArray(this.config.colors);
|
|
45844
45844
|
this.userColorMap = /* @__PURE__ */ new Map();
|
|
45845
45845
|
this.colorIndex = 0;
|
|
45846
|
-
this.version = "0.7.
|
|
45846
|
+
this.version = "0.7.12";
|
|
45847
45847
|
console.debug("🦋 [superdoc] Using SuperDoc version:", this.version);
|
|
45848
45848
|
this.superdocId = config.superdocId || v4();
|
|
45849
45849
|
this.colors = this.config.colors;
|
package/dist/superdoc.umd.js
CHANGED
|
@@ -25483,7 +25483,7 @@
|
|
|
25483
25483
|
markElement.attributes["w:line"] = linesToTwips(attrs.lineHeight);
|
|
25484
25484
|
break;
|
|
25485
25485
|
case "highlight":
|
|
25486
|
-
markElement.attributes["w:fill"] = attrs.color
|
|
25486
|
+
markElement.attributes["w:fill"] = attrs.color?.substring(1);
|
|
25487
25487
|
markElement.attributes["w:color"] = "auto";
|
|
25488
25488
|
markElement.attributes["w:val"] = "clear";
|
|
25489
25489
|
markElement.name = "w:shd";
|
|
@@ -27999,7 +27999,7 @@
|
|
|
27999
27999
|
return;
|
|
28000
28000
|
}
|
|
28001
28001
|
}
|
|
28002
|
-
static updateDocumentVersion(docx = this.convertedXml, version2 = "0.7.
|
|
28002
|
+
static updateDocumentVersion(docx = this.convertedXml, version2 = "0.7.12") {
|
|
28003
28003
|
const customLocation = "docProps/custom.xml";
|
|
28004
28004
|
if (!docx[customLocation]) {
|
|
28005
28005
|
docx[customLocation] = generateCustomXml();
|
|
@@ -28272,7 +28272,7 @@
|
|
|
28272
28272
|
function generateCustomXml() {
|
|
28273
28273
|
return DEFAULT_CUSTOM_XML;
|
|
28274
28274
|
}
|
|
28275
|
-
function generateSuperdocVersion(pid = 2, version2 = "0.7.
|
|
28275
|
+
function generateSuperdocVersion(pid = 2, version2 = "0.7.12") {
|
|
28276
28276
|
return {
|
|
28277
28277
|
type: "element",
|
|
28278
28278
|
name: "property",
|
|
@@ -42935,7 +42935,7 @@
|
|
|
42935
42935
|
* @returns {Y.Doc | undefined} Updated Y.Doc if any, otherwise undefined
|
|
42936
42936
|
*/
|
|
42937
42937
|
processCollaborationMigrations() {
|
|
42938
|
-
console.debug("[checkVersionMigrations] Current editor version", "0.7.
|
|
42938
|
+
console.debug("[checkVersionMigrations] Current editor version", "0.7.12");
|
|
42939
42939
|
if (!this.options.ydoc) return;
|
|
42940
42940
|
const metaMap = this.options.ydoc.getMap("meta");
|
|
42941
42941
|
let docVersion = metaMap.get("version");
|
|
@@ -111267,7 +111267,7 @@ ${style2}
|
|
|
111267
111267
|
this.config.colors = shuffleArray(this.config.colors);
|
|
111268
111268
|
this.userColorMap = /* @__PURE__ */ new Map();
|
|
111269
111269
|
this.colorIndex = 0;
|
|
111270
|
-
this.version = "0.7.
|
|
111270
|
+
this.version = "0.7.12";
|
|
111271
111271
|
console.debug("🦋 [superdoc] Using SuperDoc version:", this.version);
|
|
111272
111272
|
this.superdocId = config.superdocId || v4();
|
|
111273
111273
|
this.colors = this.config.colors;
|