@harbour-enterprises/superdoc 0.10.49 → 0.10.51
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-BnRb6ctt.es.js → super-editor.es-B-eM0VQ9.es.js} +3760 -3777
- package/dist/chunks/{super-editor.es-wu4lEYHk.cjs → super-editor.es-DieS3opU.cjs} +56 -56
- package/dist/super-editor/ai-writer.es.js +1 -1
- package/dist/super-editor/chunks/{converter-BEB_YaL1.js → converter-BNiMKJNK.js} +1379 -1396
- package/dist/super-editor/chunks/{docx-zipper-1Yx6hAdV.js → docx-zipper-BgocE4ya.js} +1 -1
- package/dist/super-editor/chunks/{editor-Ne_3t5iW.js → editor-DDmn_vlU.js} +4 -4
- package/dist/super-editor/chunks/{toolbar-Xx3RwrXG.js → toolbar-DBo8vVyt.js} +2 -2
- package/dist/super-editor/converter.es.js +1 -1
- package/dist/super-editor/core/super-converter/v2/importer/listImporter.d.ts.map +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.cjs +1 -1
- package/dist/super-editor.es.js +1 -1
- package/dist/superdoc.cjs +2 -2
- package/dist/superdoc.es.js +3 -3
- package/dist/superdoc.umd.js +1520 -1537
- package/dist/superdoc.umd.js.map +1 -1
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { p as Tt, a0 as wt, B as ut, a1 as Bt, a2 as Rt } from "./converter-
|
|
1
|
+
import { p as Tt, a0 as wt, B as ut, a1 as Bt, a2 as Rt } from "./converter-BNiMKJNK.js";
|
|
2
2
|
function kt(bt) {
|
|
3
3
|
throw new Error('Could not dynamically require "' + bt + '". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.');
|
|
4
4
|
}
|
|
@@ -7,9 +7,9 @@ var I = (e, t, n) => vf(e, typeof t != "symbol" ? t + "" : t, n), Uo = (e, t, n)
|
|
|
7
7
|
var Ge = (e, t, n) => (Uo(e, t, "read from private field"), n ? n.call(e) : t.get(e)), ft = (e, t, n) => t.has(e) ? ta("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(e) : t.set(e, n), qo = (e, t, n, r) => (Uo(e, t, "write to private field"), r ? r.call(e, n) : t.set(e, n), n), N = (e, t, n) => (Uo(e, t, "access private method"), n);
|
|
8
8
|
import * as T from "yjs";
|
|
9
9
|
import { UndoManager as kf, Item as Cf, ContentType as Mf, Text as xf, XmlElement as Sf } from "yjs";
|
|
10
|
-
import { P as Y, a as G, M as dr, c as X, N as B, S as Z, T as j, b as W, D as Vn, F as P, d as tn, e as Af, f as tc, A as Or, p as ie, B as Of, i as Tf, g as nc, h as Df, j as wt, l as Tr, k as Ht, m as rc, r as oc, R as an, o as ur, n as na, q as $t, s as ki, t as ic, u as Nf, v as Ef, w as ue, x as $e, y as Eo, z as Cn, C as ho, E as Pf, G as Me, H as ro, I as sc, J as Mn, K as Ko, L as Xo, O as Jo, Q as oo, U as Rt, V as Po, W as If, X as ra, Y as oa, Z as Rf, _ as Lf, $ as Ff } from "./converter-
|
|
10
|
+
import { P as Y, a as G, M as dr, c as X, N as B, S as Z, T as j, b as W, D as Vn, F as P, d as tn, e as Af, f as tc, A as Or, p as ie, B as Of, i as Tf, g as nc, h as Df, j as wt, l as Tr, k as Ht, m as rc, r as oc, R as an, o as ur, n as na, q as $t, s as ki, t as ic, u as Nf, v as Ef, w as ue, x as $e, y as Eo, z as Cn, C as ho, E as Pf, G as Me, H as ro, I as sc, J as Mn, K as Ko, L as Xo, O as Jo, Q as oo, U as Rt, V as Po, W as If, X as ra, Y as oa, Z as Rf, _ as Lf, $ as Ff } from "./converter-BNiMKJNK.js";
|
|
11
11
|
import { ref as ia, computed as Bf, createElementBlock as Kt, openBlock as Xt, withModifiers as Yo, Fragment as zf, renderList as _f, normalizeClass as $f, createCommentVNode as sa, toDisplayString as Go, createElementVNode as Vf, createApp as Hf } from "vue";
|
|
12
|
-
import { D as aa } from "./docx-zipper-
|
|
12
|
+
import { D as aa } from "./docx-zipper-BgocE4ya.js";
|
|
13
13
|
function Io(e) {
|
|
14
14
|
const { from: t, to: n, empty: r } = e.selection, o = [];
|
|
15
15
|
return r ? (e.storedMarks && o.push(...e.storedMarks), o.push(...e.selection.$head.marks())) : e.doc.nodesBetween(t, n, (i) => {
|
|
@@ -10048,7 +10048,7 @@ const Qs = class Qs extends bg {
|
|
|
10048
10048
|
* @returns {Y.Doc | undefined} Updated Y.Doc if any, otherwise undefined
|
|
10049
10049
|
*/
|
|
10050
10050
|
processCollaborationMigrations() {
|
|
10051
|
-
if (console.debug("[checkVersionMigrations] Current editor version", "0.10.
|
|
10051
|
+
if (console.debug("[checkVersionMigrations] Current editor version", "0.10.51"), !this.options.ydoc) return;
|
|
10052
10052
|
let r = this.options.ydoc.getMap("meta").get("version");
|
|
10053
10053
|
r || (r = "initial"), console.debug("[checkVersionMigrations] Document version", r);
|
|
10054
10054
|
const o = ol(r) || [], s = this.state.plugins.find((c) => c.key.startsWith("y-sync"));
|
|
@@ -10160,7 +10160,7 @@ ns = function() {
|
|
|
10160
10160
|
let n;
|
|
10161
10161
|
try {
|
|
10162
10162
|
const { mode: r, fragment: o, isHeadless: i, content: s, loadFromSchema: a } = this.options;
|
|
10163
|
-
r === "docx" ? (n = xd(this.converter, this.schema, this), n = N(this, S, Ud).call(this, n), this.options.html && (n = N(this, S, rs).call(this, this.options.html)), o &&
|
|
10163
|
+
r === "docx" ? (n = xd(this.converter, this.schema, this), n = N(this, S, Ud).call(this, n), this.options.html && (n = N(this, S, rs).call(this, this.options.html)), o && (n = ag(o, this.schema))) : (r === "text" || r === "html") && (a ? n = this.schema.nodeFromJSON(s) : s ? n = N(this, S, rs).call(this, s) : n = this.schema.topNodeType.createAndFill());
|
|
10164
10164
|
} catch (r) {
|
|
10165
10165
|
console.error(r), this.emit("contentError", { editor: this, error: r });
|
|
10166
10166
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { computed as _, createElementBlock as se, openBlock as q, createElementVNode as pn, createCommentVNode as pe, normalizeClass as Jt, normalizeStyle as Et, ref as R, unref as W, createBlock as Ge, toDisplayString as ni, withDirectives as dt, withKeys as Nr, withModifiers as Hr, vModelText as jr, getCurrentInstance as It, createVNode as At, readonly as Qt, watch as we, onMounted as Ke, onBeforeUnmount as Be, reactive as Ks, onBeforeMount as dr, inject as te, onActivated as Vs, onDeactivated as ri, createTextVNode as Mt, Fragment as _e, Comment as fr, defineComponent as ee, provide as Se, h as A, Teleport as Us, toRef as ie, nextTick as Gs, renderSlot as Xs, isVNode as qs, shallowRef as Ys, watchEffect as ft, mergeProps as pt, Transition as en, vShow as Zs, cloneVNode as Js, Text as Qs, renderList as el, withCtx as Bn } from "vue";
|
|
2
|
-
import { p as tn } from "./converter-
|
|
3
|
-
import { _ as vt, g as Pt } from "./editor-
|
|
2
|
+
import { p as tn } from "./converter-BNiMKJNK.js";
|
|
3
|
+
import { _ as vt, g as Pt } from "./editor-DDmn_vlU.js";
|
|
4
4
|
const B0 = (e, t) => {
|
|
5
5
|
let n = e.replace(/[^0-9.]/g, "");
|
|
6
6
|
return n = parseFloat(n), isNaN(n) && (n = t), n = parseFloat(n), n;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"listImporter.d.ts","sourceRoot":"","sources":["../../../../../src/core/super-converter/v2/importer/listImporter.js"],"names":[],"mappings":"AA2UA;;;;;GAKG;AACH,kCAHW,OAAO,cACL,OAAO,CAkBnB;AAkND;;;;;;;GAOG;AACH,6DAJW,GAAG,QACH,UAAU;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"listImporter.d.ts","sourceRoot":"","sources":["../../../../../src/core/super-converter/v2/importer/listImporter.js"],"names":[],"mappings":"AA2UA;;;;;GAKG;AACH,kCAHW,OAAO,cACL,OAAO,CAkBnB;AAkND;;;;;;;GAOG;AACH,6DAJW,GAAG,QACH,UAAU;;;;;;;;;;;;;;;;;;;;EA8CpB;AA/lBD;;GAEG;AACH,iCAwCE;AAEF;;GAEG;AACH,oCAGE"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { E as m } from "./chunks/editor-
|
|
2
|
-
import "./chunks/converter-
|
|
3
|
-
import "./chunks/docx-zipper-
|
|
1
|
+
import { E as m } from "./chunks/editor-DDmn_vlU.js";
|
|
2
|
+
import "./chunks/converter-BNiMKJNK.js";
|
|
3
|
+
import "./chunks/docx-zipper-BgocE4ya.js";
|
|
4
4
|
export {
|
|
5
5
|
m as Editor
|
|
6
6
|
};
|
|
@@ -6,14 +6,14 @@ var mt = (t, l, o) => l in t ? ut(t, l, { enumerable: !0, configurable: !0, writ
|
|
|
6
6
|
var He = (t, l, o) => mt(t, typeof l != "symbol" ? l + "" : l, o), je = (t, l, o) => l.has(t) || Ve("Cannot " + o);
|
|
7
7
|
var Se = (t, l, o) => (je(t, l, "read from private field"), o ? o.call(t) : l.get(t)), Be = (t, l, o) => l.has(t) ? Ve("Cannot add the same private member more than once") : l instanceof WeakSet ? l.add(t) : l.set(t, o);
|
|
8
8
|
var W = (t, l, o) => (je(t, l, "access private method"), o);
|
|
9
|
-
import { _ as K, a as Ke, b as pt, I as Re, f as ft, c as Ue, d as ht, i as vt, u as gt, r as yt, E as Oe, e as bt, P as kt, h as wt, M as Ct, j as _t, A as xt, N as Et } from "./chunks/editor-
|
|
10
|
-
import { C as To, T as Fo, l as Io, n as Lo, k as Mo, m as Do } from "./chunks/editor-
|
|
11
|
-
import { a1 as St, y as At, a3 as Tt, T as Xe, a as Ft } from "./chunks/converter-
|
|
12
|
-
import { O as Ho } from "./chunks/converter-
|
|
9
|
+
import { _ as K, a as Ke, b as pt, I as Re, f as ft, c as Ue, d as ht, i as vt, u as gt, r as yt, E as Oe, e as bt, P as kt, h as wt, M as Ct, j as _t, A as xt, N as Et } from "./chunks/editor-DDmn_vlU.js";
|
|
10
|
+
import { C as To, T as Fo, l as Io, n as Lo, k as Mo, m as Do } from "./chunks/editor-DDmn_vlU.js";
|
|
11
|
+
import { a1 as St, y as At, a3 as Tt, T as Xe, a as Ft } from "./chunks/converter-BNiMKJNK.js";
|
|
12
|
+
import { O as Ho } from "./chunks/converter-BNiMKJNK.js";
|
|
13
13
|
import { ref as g, createElementBlock as w, openBlock as k, createElementVNode as x, unref as $, getCurrentInstance as It, computed as j, watch as Lt, onMounted as we, createCommentVNode as ne, withDirectives as Mt, withKeys as Dt, normalizeClass as oe, withModifiers as ke, vModelText as $t, createTextVNode as Ht, toDisplayString as ie, Fragment as U, renderList as Q, normalizeStyle as J, createVNode as V, h as N, createApp as Bt, reactive as qe, onUnmounted as Rt, shallowRef as Ze, onBeforeUnmount as Ye, createBlock as Ot } from "vue";
|
|
14
|
-
import { t as G, s as Nt, T as zt, N as Y } from "./chunks/toolbar-
|
|
14
|
+
import { t as G, s as Nt, T as zt, N as Y } from "./chunks/toolbar-DBo8vVyt.js";
|
|
15
15
|
import Wt from "./ai-writer.es.js";
|
|
16
|
-
import { D as Ro } from "./chunks/docx-zipper-
|
|
16
|
+
import { D as Ro } from "./chunks/docx-zipper-BgocE4ya.js";
|
|
17
17
|
import { createZip as No } from "./file-zipper.es.js";
|
|
18
18
|
var Je = { exports: {} };
|
|
19
19
|
(function(t) {
|
package/dist/super-editor.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./chunks/super-editor.es-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./chunks/super-editor.es-DieS3opU.cjs");require("./chunks/vue-Ckf0DkDN.cjs");exports.AIWriter=e.de;exports.BasicUpload=e._o;exports.CommentsPluginKey=e.he;exports.DocxZipper=e.Nt;exports.Editor=e.qi;exports.Extensions=e.Eo;exports.SuperConverter=e.Rt;exports.SuperEditor=e.Co;exports.SuperInput=e.xo;exports.SuperToolbar=e.wo;exports.Toolbar=e.O0;exports.TrackChangesBasePluginKey=e.de$1;exports.createZip=e.c;exports.fieldAnnotationHelpers=e.aC;exports.getActiveFormatting=e.jf;exports.getAllowedImageDimensions=e.eo;exports.getMarksFromSelection=e.Io;exports.getRichTextExtensions=e.Jk;exports.getStarterExtensions=e.Yk;exports.helpers=e.Nd;exports.trackChangesHelpers=e.cC;
|
package/dist/super-editor.es.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { d as r, _ as t, h as o, N as i, q as n, E as p, R as g, C as l, x as c, w as m, O as u, a as x, c as d, b as E, j as S, e as h, I as C, J as A, Y as I, f as T, g as b } from "./chunks/super-editor.es-
|
|
1
|
+
import { d as r, _ as t, h as o, N as i, q as n, E as p, R as g, C as l, x as c, w as m, O as u, a as x, c as d, b as E, j as S, e as h, I as C, J as A, Y as I, f as T, g as b } from "./chunks/super-editor.es-B-eM0VQ9.es.js";
|
|
2
2
|
import "./chunks/vue-D254cI7X.es.js";
|
|
3
3
|
export {
|
|
4
4
|
r as AIWriter,
|