@harbour-enterprises/superdoc 0.10.31 → 0.10.33
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-CdXdl3No.cjs → super-editor.es-D4F9qVqE.cjs} +4 -4
- package/dist/chunks/{super-editor.es-CRwZg6IC.es.js → super-editor.es-tz1b2fTc.es.js} +5 -5
- package/dist/super-editor/ai-writer.es.js +1 -1
- package/dist/super-editor/chunks/{converter-CHrpV0Dj.js → converter-CbAB_Xc1.js} +3 -3
- package/dist/super-editor/chunks/{docx-zipper-BEVBFl1O.js → docx-zipper-yX8G5Vma.js} +2 -2
- package/dist/super-editor/chunks/{editor-CQGOiIOl.js → editor-8NZOnJKB.js} +3 -3
- package/dist/super-editor/chunks/{toolbar-CPdmkFYG.js → toolbar-Ctl7zSr9.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 +6 -6
- package/dist/superdoc.umd.js.map +1 -1
- package/package.json +1 -1
|
@@ -15400,7 +15400,7 @@ function wv({
|
|
|
15400
15400
|
const I = N?.elements?.find((k) => k.name === "w:pPr")?.elements?.find((k) => k.name === "w:ind");
|
|
15401
15401
|
if (B || (B = I), B) {
|
|
15402
15402
|
const k = {};
|
|
15403
|
-
B.attributes["w:left"] !== void 0 && (k.left = ct(B.attributes["w:left"])), B.attributes["w:right"] !== void 0 && (k.right = ct(B.attributes["w:right"])), B.attributes["w:firstLine"] !== void 0 && (k.firstLine = ct(B.attributes["w:firstLine"])), B.attributes["w:hanging"] !== void 0 && (k.hanging = ct(B.attributes["w:hanging"])), G.indent = k;
|
|
15403
|
+
B.attributes || (B.attributes = {}), B.attributes["w:left"] !== void 0 && (k.left = ct(B.attributes["w:left"])), B.attributes["w:right"] !== void 0 && (k.right = ct(B.attributes["w:right"])), B.attributes["w:firstLine"] !== void 0 && (k.firstLine = ct(B.attributes["w:firstLine"])), B.attributes["w:hanging"] !== void 0 && (k.hanging = ct(B.attributes["w:hanging"])), G.indent = k;
|
|
15404
15404
|
}
|
|
15405
15405
|
ie && (G.listParagraphProperties = ie), K && (G.listRunProperties = K), G.textStyle = V, G.order = W, G.lvlText = ue, G.lvlJc = V?.attrs.textAlign, G.listLevel = q, G.listNumberingType = H, G.attributes = {
|
|
15406
15406
|
parentAttributes: w?.attributes || null
|
|
@@ -16462,7 +16462,7 @@ const ps = class Ov {
|
|
|
16462
16462
|
return;
|
|
16463
16463
|
}
|
|
16464
16464
|
}
|
|
16465
|
-
static updateDocumentVersion(e = this.convertedXml, n = "0.10.
|
|
16465
|
+
static updateDocumentVersion(e = this.convertedXml, n = "0.10.33") {
|
|
16466
16466
|
const r = "docProps/custom.xml";
|
|
16467
16467
|
e[r] || (e[r] = Mv());
|
|
16468
16468
|
const o = e["docProps/custom.xml"];
|
|
@@ -16723,7 +16723,7 @@ function D$(t) {
|
|
|
16723
16723
|
function Mv() {
|
|
16724
16724
|
return i4;
|
|
16725
16725
|
}
|
|
16726
|
-
function Dv(t = 2, e = "0.10.
|
|
16726
|
+
function Dv(t = 2, e = "0.10.33") {
|
|
16727
16727
|
return {
|
|
16728
16728
|
type: "element",
|
|
16729
16729
|
name: "property",
|
|
@@ -19094,7 +19094,7 @@ let ay = class {
|
|
|
19094
19094
|
const p = new File([u], c.name, { type: u.type }), h = URL.createObjectURL(p);
|
|
19095
19095
|
this.media[c.name] = h;
|
|
19096
19096
|
}
|
|
19097
|
-
else if (c.name.startsWith("word/fonts") && c.name !== "word/fonts/") {
|
|
19097
|
+
else if (!n && c.name.startsWith("word/fonts") && c.name !== "word/fonts/") {
|
|
19098
19098
|
const u = await c.async("arraybuffer");
|
|
19099
19099
|
this.fonts[c.name] = u;
|
|
19100
19100
|
}
|
|
@@ -29185,7 +29185,7 @@ const h8 = class $x extends pM {
|
|
|
29185
29185
|
* @returns {Y.Doc | undefined} Updated Y.Doc if any, otherwise undefined
|
|
29186
29186
|
*/
|
|
29187
29187
|
processCollaborationMigrations() {
|
|
29188
|
-
if (console.debug("[checkVersionMigrations] Current editor version", "0.10.
|
|
29188
|
+
if (console.debug("[checkVersionMigrations] Current editor version", "0.10.33"), !this.options.ydoc) return;
|
|
29189
29189
|
let e = this.options.ydoc.getMap("meta").get("version");
|
|
29190
29190
|
e || (e = "initial"), console.debug("[checkVersionMigrations] Document version", e);
|
|
29191
29191
|
const n = iw(e) || [], r = this.state.plugins.find((i) => i.key.startsWith("y-sync"));
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ref as l, onMounted as R, onUnmounted as K, computed as I, createElementBlock as f, openBlock as g, withModifiers as C, createElementVNode as m, withDirectives as V, unref as w, vModelText as W, createCommentVNode as j, nextTick as B } from "vue";
|
|
2
|
-
import { _ as G } from "./chunks/editor-
|
|
2
|
+
import { _ as G } from "./chunks/editor-8NZOnJKB.js";
|
|
3
3
|
const X = "https://sd-dev-express-gateway-i6xtm.ondigitalocean.app/insights", S = "You are an expert copywriter and you are immersed in a document editor. You are to provide document related text responses based on the user prompts. Only write what is asked for. Do not provide explanations. Try to keep placeholders as short as possible. Do not output your prompt. Your instructions are: ";
|
|
4
4
|
async function E(a, e = {}) {
|
|
5
5
|
const n = e.apiKey, r = e.endpoint || X;
|
|
@@ -15418,7 +15418,7 @@ function yu({
|
|
|
15418
15418
|
const te = J?.elements?.find((le) => le.name === "w:pPr")?.elements?.find((le) => le.name === "w:ind");
|
|
15419
15419
|
if (_ || (_ = te), _) {
|
|
15420
15420
|
const le = {};
|
|
15421
|
-
_.attributes["w:left"] !== void 0 && (le.left = xe(_.attributes["w:left"])), _.attributes["w:right"] !== void 0 && (le.right = xe(_.attributes["w:right"])), _.attributes["w:firstLine"] !== void 0 && (le.firstLine = xe(_.attributes["w:firstLine"])), _.attributes["w:hanging"] !== void 0 && (le.hanging = xe(_.attributes["w:hanging"])), m.indent = le;
|
|
15421
|
+
_.attributes || (_.attributes = {}), _.attributes["w:left"] !== void 0 && (le.left = xe(_.attributes["w:left"])), _.attributes["w:right"] !== void 0 && (le.right = xe(_.attributes["w:right"])), _.attributes["w:firstLine"] !== void 0 && (le.firstLine = xe(_.attributes["w:firstLine"])), _.attributes["w:hanging"] !== void 0 && (le.hanging = xe(_.attributes["w:hanging"])), m.indent = le;
|
|
15422
15422
|
}
|
|
15423
15423
|
fe && (m.listParagraphProperties = fe), Y && (m.listRunProperties = Y), m.textStyle = ee, m.order = $, m.lvlText = ne, m.lvlJc = ee?.attrs.textAlign, m.listLevel = b, m.listNumberingType = ae, m.attributes = {
|
|
15424
15424
|
parentAttributes: R?.attributes || null
|
|
@@ -16481,7 +16481,7 @@ const mt = class mt {
|
|
|
16481
16481
|
return;
|
|
16482
16482
|
}
|
|
16483
16483
|
}
|
|
16484
|
-
static updateDocumentVersion(e = this.convertedXml, t = "0.10.
|
|
16484
|
+
static updateDocumentVersion(e = this.convertedXml, t = "0.10.33") {
|
|
16485
16485
|
const n = "docProps/custom.xml";
|
|
16486
16486
|
e[n] || (e[n] = Bu());
|
|
16487
16487
|
const i = e["docProps/custom.xml"];
|
|
@@ -16742,7 +16742,7 @@ function xp(r) {
|
|
|
16742
16742
|
function Bu() {
|
|
16743
16743
|
return Wf;
|
|
16744
16744
|
}
|
|
16745
|
-
function ku(r = 2, e = "0.10.
|
|
16745
|
+
function ku(r = 2, e = "0.10.33") {
|
|
16746
16746
|
return {
|
|
16747
16747
|
type: "element",
|
|
16748
16748
|
name: "property",
|
|
@@ -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-CbAB_Xc1.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
|
}
|
|
@@ -2347,7 +2347,7 @@ class Nt {
|
|
|
2347
2347
|
const i = new File([v], m.name, { type: v.type }), d = URL.createObjectURL(i);
|
|
2348
2348
|
this.media[m.name] = d;
|
|
2349
2349
|
}
|
|
2350
|
-
else if (m.name.startsWith("word/fonts") && m.name !== "word/fonts/") {
|
|
2350
|
+
else if (!_ && m.name.startsWith("word/fonts") && m.name !== "word/fonts/") {
|
|
2351
2351
|
const v = await m.async("arraybuffer");
|
|
2352
2352
|
this.fonts[m.name] = v;
|
|
2353
2353
|
}
|
|
@@ -7,9 +7,9 @@ var I = (t, e, n) => wf(t, typeof e != "symbol" ? e + "" : e, n), Uo = (t, e, n)
|
|
|
7
7
|
var Ge = (t, e, n) => (Uo(t, e, "read from private field"), n ? n.call(t) : e.get(t)), ft = (t, e, n) => e.has(t) ? ta("Cannot add the same private member more than once") : e instanceof WeakSet ? e.add(t) : e.set(t, n), qo = (t, e, n, r) => (Uo(t, e, "write to private field"), r ? r.call(t, n) : e.set(t, n), n), N = (t, e, n) => (Uo(t, e, "access private method"), n);
|
|
8
8
|
import * as T from "yjs";
|
|
9
9
|
import { UndoManager as vf, Item as kf, ContentType as Cf, Text as Mf, XmlElement as Sf } from "yjs";
|
|
10
|
-
import { P as Y, a as G, M as dr, c as K, N as B, S as Z, T as j, b as W, D as Vn, F as P, d as tn, e as xf, f as tc, A as Or, p as ie, B as Af, i as Of, g as nc, h as Tf, 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 Df, v as Nf, w as ue, x as $e, y as Eo, z as Cn, C as ho, E as Ef, 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 Pf, X as ra, Y as oa, Z as If, _ as Rf, $ as Lf } from "./converter-
|
|
10
|
+
import { P as Y, a as G, M as dr, c as K, N as B, S as Z, T as j, b as W, D as Vn, F as P, d as tn, e as xf, f as tc, A as Or, p as ie, B as Af, i as Of, g as nc, h as Tf, 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 Df, v as Nf, w as ue, x as $e, y as Eo, z as Cn, C as ho, E as Ef, 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 Pf, X as ra, Y as oa, Z as If, _ as Rf, $ as Lf } from "./converter-CbAB_Xc1.js";
|
|
11
11
|
import { ref as ia, computed as Ff, createElementBlock as Kt, openBlock as Xt, withModifiers as Yo, Fragment as Bf, renderList as zf, normalizeClass as _f, createCommentVNode as sa, toDisplayString as Go, createElementVNode as $f, createApp as Vf } from "vue";
|
|
12
|
-
import { D as aa } from "./docx-zipper-
|
|
12
|
+
import { D as aa } from "./docx-zipper-yX8G5Vma.js";
|
|
13
13
|
function Io(t) {
|
|
14
14
|
const { from: e, to: n, empty: r } = t.selection, o = [];
|
|
15
15
|
return r ? (t.storedMarks && o.push(...t.storedMarks), o.push(...t.selection.$head.marks())) : t.doc.nodesBetween(e, n, (i) => {
|
|
@@ -10038,7 +10038,7 @@ const Qs = class Qs extends bg {
|
|
|
10038
10038
|
* @returns {Y.Doc | undefined} Updated Y.Doc if any, otherwise undefined
|
|
10039
10039
|
*/
|
|
10040
10040
|
processCollaborationMigrations() {
|
|
10041
|
-
if (console.debug("[checkVersionMigrations] Current editor version", "0.10.
|
|
10041
|
+
if (console.debug("[checkVersionMigrations] Current editor version", "0.10.33"), !this.options.ydoc) return;
|
|
10042
10042
|
let r = this.options.ydoc.getMap("meta").get("version");
|
|
10043
10043
|
r || (r = "initial"), console.debug("[checkVersionMigrations] Document version", r);
|
|
10044
10044
|
const o = ol(r) || [], s = this.state.plugins.find((c) => c.key.startsWith("y-sync"));
|
|
@@ -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-CbAB_Xc1.js";
|
|
3
|
+
import { _ as vt, g as Pt } from "./editor-8NZOnJKB.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":"
|
|
1
|
+
{"version":3,"file":"listImporter.d.ts","sourceRoot":"","sources":["../../../../../src/core/super-converter/v2/importer/listImporter.js"],"names":[],"mappings":"AAwUA;;;;;GAKG;AACH,kCAHW,OAAO,cACL,OAAO,CAkBnB;AAkND;;;;;;;GAOG;AACH,6DAJW,GAAG,QACH,UAAU;;;;;;;;;;;;;;;;;;;;EAoDpB;AAlmBD;;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-8NZOnJKB.js";
|
|
2
|
+
import "./chunks/converter-CbAB_Xc1.js";
|
|
3
|
+
import "./chunks/docx-zipper-yX8G5Vma.js";
|
|
4
4
|
export {
|
|
5
5
|
m as Editor
|
|
6
6
|
};
|
|
@@ -6,14 +6,14 @@ var mt = (t, s, o) => s in t ? ut(t, s, { enumerable: !0, configurable: !0, writ
|
|
|
6
6
|
var He = (t, s, o) => mt(t, typeof s != "symbol" ? s + "" : s, o), je = (t, s, o) => s.has(t) || Ve("Cannot " + o);
|
|
7
7
|
var Se = (t, s, o) => (je(t, s, "read from private field"), o ? o.call(t) : s.get(t)), Be = (t, s, o) => s.has(t) ? Ve("Cannot add the same private member more than once") : s instanceof WeakSet ? s.add(t) : s.set(t, o);
|
|
8
8
|
var W = (t, s, o) => (je(t, s, "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 gt, u as vt, r as yt, E as Oe, e as bt, P as wt, h as kt, 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 gt, u as vt, r as yt, E as Oe, e as bt, P as wt, h as kt, M as Ct, j as _t, A as xt, N as Et } from "./chunks/editor-8NZOnJKB.js";
|
|
10
|
+
import { C as To, T as Fo, l as Io, n as Lo, k as Mo, m as Do } from "./chunks/editor-8NZOnJKB.js";
|
|
11
|
+
import { a1 as St, y as At, a3 as Tt, T as Xe, a as Ft } from "./chunks/converter-CbAB_Xc1.js";
|
|
12
|
+
import { O as Ho } from "./chunks/converter-CbAB_Xc1.js";
|
|
13
13
|
import { ref as v, createElementBlock as k, openBlock as w, createElementVNode as x, unref as $, getCurrentInstance as It, computed as j, watch as Lt, onMounted as ke, createCommentVNode as ne, withDirectives as Mt, withKeys as Dt, normalizeClass as oe, withModifiers as we, 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-Ctl7zSr9.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-yX8G5Vma.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-D4F9qVqE.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.ko;exports.Toolbar=e.O0;exports.TrackChangesBasePluginKey=e.de$1;exports.createZip=e.c;exports.fieldAnnotationHelpers=e.sC;exports.getActiveFormatting=e.Hf;exports.getAllowedImageDimensions=e.eo;exports.getMarksFromSelection=e.Io;exports.getRichTextExtensions=e.Xk;exports.getStarterExtensions=e.Jk;exports.helpers=e.Dd;exports.trackChangesHelpers=e.lC;
|
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 l, C as g, x as c, k as m, O as u, a as x, c as d, s as E, H as S, e as h, I as C, X as k, J as A, D as I, l as T } 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 l, C as g, x as c, k as m, O as u, a as x, c as d, s as E, H as S, e as h, I as C, X as k, J as A, D as I, l as T } from "./chunks/super-editor.es-tz1b2fTc.es.js";
|
|
2
2
|
import "./chunks/vue-D254cI7X.es.js";
|
|
3
3
|
export {
|
|
4
4
|
r as AIWriter,
|