@harbour-enterprises/superdoc 0.12.9 → 0.12.10
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-BI8I7zQw.es.js → super-editor.es-B4hMBqlj.es.js} +11 -8
- package/dist/chunks/{super-editor.es-DIWme65_.cjs → super-editor.es-Bf6kv8E7.cjs} +5 -5
- package/dist/super-editor/ai-writer.es.js +2 -2
- package/dist/super-editor/chunks/{converter-DwU26GOB.js → converter-lyVGCU64.js} +2 -2
- package/dist/super-editor/chunks/{docx-zipper-B8X1Ex3_.js → docx-zipper-5A2iHpqR.js} +1 -1
- package/dist/super-editor/chunks/{editor-4XloIer6.js → editor-DugKTpYa.js} +7 -6
- package/dist/super-editor/chunks/{toolbar-CjFzVIKb.js → toolbar-Dbj1GrW9.js} +2 -2
- package/dist/super-editor/components/toolbar/super-toolbar.d.ts.map +1 -1
- package/dist/super-editor/converter.es.js +1 -1
- package/dist/super-editor/core/helpers/annotator.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 +10 -8
- 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 +12 -9
- package/dist/superdoc.umd.js.map +1 -1
- package/package.json +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ref as x, onMounted as G, onUnmounted as U, computed as D, createElementBlock as O, openBlock as R, withModifiers as H, createElementVNode as S, withDirectives as Y, unref as N, vModelText as J, createCommentVNode as Q, nextTick as K } from "vue";
|
|
2
|
-
import { T as Z } from "./chunks/converter-
|
|
3
|
-
import { _ as ee } from "./chunks/editor-
|
|
2
|
+
import { T as Z } from "./chunks/converter-lyVGCU64.js";
|
|
3
|
+
import { _ as ee } from "./chunks/editor-DugKTpYa.js";
|
|
4
4
|
const te = "https://sd-dev-express-gateway-i6xtm.ondigitalocean.app/insights", z = "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: ";
|
|
5
5
|
async function V(r, o = {}) {
|
|
6
6
|
const e = o.apiKey, a = o.endpoint || te;
|
|
@@ -16840,7 +16840,7 @@ const pt = class pt {
|
|
|
16840
16840
|
return;
|
|
16841
16841
|
}
|
|
16842
16842
|
}
|
|
16843
|
-
static updateDocumentVersion(e = this.convertedXml, t = "0.12.
|
|
16843
|
+
static updateDocumentVersion(e = this.convertedXml, t = "0.12.10") {
|
|
16844
16844
|
const n = "docProps/custom.xml";
|
|
16845
16845
|
e[n] || (e[n] = Nu());
|
|
16846
16846
|
const i = e["docProps/custom.xml"];
|
|
@@ -17164,7 +17164,7 @@ function Ip(r) {
|
|
|
17164
17164
|
function Nu() {
|
|
17165
17165
|
return Kf;
|
|
17166
17166
|
}
|
|
17167
|
-
function Iu(r = 2, e = "0.12.
|
|
17167
|
+
function Iu(r = 2, e = "0.12.10") {
|
|
17168
17168
|
return {
|
|
17169
17169
|
type: "element",
|
|
17170
17170
|
name: "property",
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { x as Tt, a1 as wt, B as ut, a2 as Bt, a3 as Rt, a4 as Dt } from "./converter-
|
|
1
|
+
import { x as Tt, a1 as wt, B as ut, a2 as Bt, a3 as Rt, a4 as Dt } from "./converter-lyVGCU64.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 L = (e, t, n) => Xf(e, typeof t != "symbol" ? t + "" : t, n), si = (e, t, n)
|
|
|
7
7
|
var Qe = (e, t, n) => (si(e, t, "read from private field"), n ? n.call(e) : t.get(e)), ft = (e, t, n) => t.has(e) ? ma("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(e) : t.set(e, n), ai = (e, t, n, r) => (si(e, t, "write to private field"), r ? r.call(e, n) : t.set(e, n), n), O = (e, t, n) => (si(e, t, "access private method"), n);
|
|
8
8
|
import * as D from "yjs";
|
|
9
9
|
import { UndoManager as Jf, Item as Yf, ContentType as Gf, Text as Zf, XmlElement as Qf, encodeStateAsUpdate as ep } from "yjs";
|
|
10
|
-
import { P as K, a as X, M as mr, c as Y, i as tp, S as kc, T as j, b as wt, l as Pr, A as Ir, d as Wt, j as xc, N as z, r as Sc, e as ee, F as E, R as ln, f as W, o as gr, g as ga, D as Rt, h as Ht, k as Bi, m as Mc, n as np, p as rp, q as xn, s as To, t as op, u as Wn, v as ip, w as Cc, x as oe, B as sp, y as ap, z as de, C as Ve, E as Rr, G as Se, H as ho, I as Ac, J as Sn, K as li, L as ci, O as di, Q as mo, U as ya, V as Lt, W as qo, X as lp, Y as ba, Z as wa, _ as cp, $ as dp, a0 as up } from "./converter-
|
|
10
|
+
import { P as K, a as X, M as mr, c as Y, i as tp, S as kc, T as j, b as wt, l as Pr, A as Ir, d as Wt, j as xc, N as z, r as Sc, e as ee, F as E, R as ln, f as W, o as gr, g as ga, D as Rt, h as Ht, k as Bi, m as Mc, n as np, p as rp, q as xn, s as To, t as op, u as Wn, v as ip, w as Cc, x as oe, B as sp, y as ap, z as de, C as Ve, E as Rr, G as Se, H as ho, I as Ac, J as Sn, K as li, L as ci, O as di, Q as mo, U as ya, V as Lt, W as qo, X as lp, Y as ba, Z as wa, _ as cp, $ as dp, a0 as up } from "./converter-lyVGCU64.js";
|
|
11
11
|
import { ref as va, computed as fp, createElementBlock as Jt, openBlock as Yt, withModifiers as ui, Fragment as pp, renderList as hp, normalizeClass as mp, createCommentVNode as ka, toDisplayString as fi, createElementVNode as gp, createApp as yp } from "vue";
|
|
12
|
-
import { D as xa } from "./docx-zipper-
|
|
12
|
+
import { D as xa } from "./docx-zipper-5A2iHpqR.js";
|
|
13
13
|
function Ko(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) => {
|
|
@@ -9917,8 +9917,9 @@ const iu = ({ state: e, tr: t, step: n, newTr: r, map: o, doc: i, user: s, date:
|
|
|
9917
9917
|
const { state: r } = e, { doc: o } = r, i = [];
|
|
9918
9918
|
return o.descendants((s, a) => {
|
|
9919
9919
|
s.type.name === "table" && i.push({ node: s, pos: a });
|
|
9920
|
-
}), i.reverse().forEach((s) => {
|
|
9921
|
-
|
|
9920
|
+
}), i.reverse().forEach(({ pos: s }) => {
|
|
9921
|
+
const a = t.doc.nodeAt(s);
|
|
9922
|
+
!a || a.type.name !== "table" || u0({ tableNode: { node: a, pos: s }, annotationValues: n, tr: t, editor: e });
|
|
9922
9923
|
}), t;
|
|
9923
9924
|
}, u0 = ({ tableNode: e, annotationValues: t, tr: n, editor: r }) => {
|
|
9924
9925
|
let o = null, i = null;
|
|
@@ -9932,7 +9933,7 @@ const iu = ({ state: e, tr: t, step: n, newTr: r, map: o, doc: i, user: s, date:
|
|
|
9932
9933
|
if (o) return !0;
|
|
9933
9934
|
if (w.type === s && (i = { node: w, pos: x }), w.type === l) {
|
|
9934
9935
|
const y = Oi(w.attrs.fieldId, t);
|
|
9935
|
-
Array.isArray(y) && (o = i);
|
|
9936
|
+
Array.isArray(y) && w.attrs.generatorIndex === null && (o = i);
|
|
9936
9937
|
}
|
|
9937
9938
|
}), !o) return;
|
|
9938
9939
|
const { node: d, pos: u } = o, f = n.mapping.map(e.pos + u), p = f + d.nodeSize;
|
|
@@ -10672,7 +10673,7 @@ const pa = class pa extends fb {
|
|
|
10672
10673
|
* @returns {Object | void} Migration results
|
|
10673
10674
|
*/
|
|
10674
10675
|
processCollaborationMigrations() {
|
|
10675
|
-
if (console.debug("[checkVersionMigrations] Current editor version", "0.12.
|
|
10676
|
+
if (console.debug("[checkVersionMigrations] Current editor version", "0.12.10"), !this.options.ydoc) return;
|
|
10676
10677
|
let r = this.options.ydoc.getMap("meta").get("version");
|
|
10677
10678
|
r || (r = "initial"), console.debug("[checkVersionMigrations] Document version", r);
|
|
10678
10679
|
const o = wl(r) || [], s = this.state.plugins.find((c) => c.key.startsWith("y-sync"));
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { computed as I, createElementBlock as ie, openBlock as q, createElementVNode as Ot, createCommentVNode as he, normalizeClass as en, normalizeStyle as Tt, ref as P, unref as W, createBlock as Ge, toDisplayString as Xn, withDirectives as ft, withKeys as Hr, withModifiers as jr, vModelText as Wr, getCurrentInstance as Lt, createVNode as ct, readonly as tn, watch as we, onMounted as Ke, onBeforeUnmount as Be, reactive as Us, onBeforeMount as fr, inject as te, onActivated as Gs, onDeactivated as oi, createTextVNode as ht, Fragment as _e, Comment as hr, defineComponent as ee, provide as Se, h as E, Teleport as Xs, toRef as se, nextTick as ii, renderSlot as qs, isVNode as Ys, shallowRef as Zs, watchEffect as pt, mergeProps as gt, Transition as nn, vShow as Js, cloneVNode as Qs, Text as el, renderList as tl, withCtx as xt } from "vue";
|
|
2
|
-
import { x as rn } from "./converter-
|
|
3
|
-
import { _ as mt, g as kt } from "./editor-
|
|
2
|
+
import { x as rn } from "./converter-lyVGCU64.js";
|
|
3
|
+
import { _ as mt, g as kt } from "./editor-DugKTpYa.js";
|
|
4
4
|
const O0 = (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":"super-toolbar.d.ts","sourceRoot":"","sources":["../../../src/components/toolbar/super-toolbar.js"],"names":[],"mappings":"AAgBA;;;;;;;;;;;;;;GAcG;AAEH;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8EG;AAEH;;;;GAIG;AAEH;;;;GAIG;AACH;IAuBE;;;;OAIG;IACH,oBAHW,aAAa,EAuDvB;IA/ED;;;OAGG;IACH,QAFU,aAAa,CAkBrB;IAWA,oBAAsB;IACtB,qBAAuB;IACvB,kBAAoD;IACpD,WAAkC;IAClC,cAA+B;IAC/B,aAAmC;IACnC,sBAA4B;IAkC5B,gCAA6B;IAI3B,uQAAoD;IAEtD,kBAAyC;IAI3C,yCAiBC;IAuTD;;;;OAIG;IACH,aAHc,GAAC,EAAA,GACF,IAAI,CAIhB;IAED;;;;OAIG;IACH,qBAHW,MAAM,GACJ,IAAI,CAMhB;IAED;;;;OAIG;IACH,8BAFa,IAAI,CAKhB;IAED;;;;OAIG;IACH,iCAHW,MAAM,GACJ,WAAW,EAAE,CAIzB;IAED;;;;OAIG;IACH,2BAHW,MAAM,GACJ,WAAW,GAAC,SAAS,CAIjC;
|
|
1
|
+
{"version":3,"file":"super-toolbar.d.ts","sourceRoot":"","sources":["../../../src/components/toolbar/super-toolbar.js"],"names":[],"mappings":"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"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"annotator.d.ts","sourceRoot":"","sources":["../../../src/core/helpers/annotator.js"],"names":[],"mappings":"AAWO,uEAiBN;AAiCM,gEAHJ;IAAuB,MAAM;IACP,gBAAgB;CACxC,
|
|
1
|
+
{"version":3,"file":"annotator.d.ts","sourceRoot":"","sources":["../../../src/core/helpers/annotator.js"],"names":[],"mappings":"AAWO,uEAiBN;AAiCM,gEAHJ;IAAuB,MAAM;IACP,gBAAgB;CACxC,OAmBA;AAuIM;;;;;;QAsFN;;;;;;;AApID;;;;;;;;GAQG;AACH,yFALG;IAAuB,MAAM;IACP,gBAAgB;IAChB,cAAc;CACpC,GAAU,IAAI,CAqChB"}
|
|
@@ -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-DugKTpYa.js";
|
|
2
|
+
import "./chunks/converter-lyVGCU64.js";
|
|
3
|
+
import "./chunks/docx-zipper-5A2iHpqR.js";
|
|
4
4
|
export {
|
|
5
5
|
m as Editor
|
|
6
6
|
};
|
|
@@ -6,14 +6,14 @@ var kt = (e, s, t) => s in e ? Ct(e, s, { enumerable: !0, configurable: !0, writ
|
|
|
6
6
|
var ze = (e, s, t) => kt(e, typeof s != "symbol" ? s + "" : s, t), Ke = (e, s, t) => s.has(e) || Ge("Cannot " + t);
|
|
7
7
|
var Te = (e, s, t) => (Ke(e, s, "read from private field"), t ? t.call(e) : s.get(e)), Re = (e, s, t) => s.has(e) ? Ge("Cannot add the same private member more than once") : s instanceof WeakSet ? s.add(e) : s.set(e, t);
|
|
8
8
|
var N = (e, s, t) => (Ke(e, s, "access private method"), t);
|
|
9
|
-
import { _ as q, a as Je, b as _t, I as Oe, f as xt, c as Xe, d as St, i as Et, u as At, r as Tt, E as Ne, e as Ft, P as It, h as Lt, M as Mt, j as Dt, A as Ht, N as Bt } from "./chunks/editor-
|
|
10
|
-
import { C as Po, T as jo, l as Uo, n as qo, k as Go, m as Ko } from "./chunks/editor-
|
|
11
|
-
import { a2 as $t, E as zt, a5 as Rt, T as Qe, a as Ot } from "./chunks/converter-
|
|
12
|
-
import { O as Zo } from "./chunks/converter-
|
|
9
|
+
import { _ as q, a as Je, b as _t, I as Oe, f as xt, c as Xe, d as St, i as Et, u as At, r as Tt, E as Ne, e as Ft, P as It, h as Lt, M as Mt, j as Dt, A as Ht, N as Bt } from "./chunks/editor-DugKTpYa.js";
|
|
10
|
+
import { C as Po, T as jo, l as Uo, n as qo, k as Go, m as Ko } from "./chunks/editor-DugKTpYa.js";
|
|
11
|
+
import { a2 as $t, E as zt, a5 as Rt, T as Qe, a as Ot } from "./chunks/converter-lyVGCU64.js";
|
|
12
|
+
import { O as Zo } from "./chunks/converter-lyVGCU64.js";
|
|
13
13
|
import { ref as h, createElementBlock as k, openBlock as C, createElementVNode as _, unref as M, getCurrentInstance as Nt, computed as j, watch as Wt, onMounted as Ce, createCommentVNode as ee, withDirectives as et, withKeys as tt, normalizeClass as te, withModifiers as he, vModelText as nt, createTextVNode as ot, toDisplayString as ie, Fragment as U, renderList as ne, normalizeStyle as Q, createVNode as P, h as $, createApp as Vt, reactive as Ze, onUnmounted as Pt, shallowRef as it, onBeforeUnmount as st, createBlock as jt } from "vue";
|
|
14
|
-
import { t as Z, s as Ut, T as qt, N as J } from "./chunks/toolbar-
|
|
14
|
+
import { t as Z, s as Ut, T as qt, N as J } from "./chunks/toolbar-Dbj1GrW9.js";
|
|
15
15
|
import Gt from "./ai-writer.es.js";
|
|
16
|
-
import { D as Jo } from "./chunks/docx-zipper-
|
|
16
|
+
import { D as Jo } from "./chunks/docx-zipper-5A2iHpqR.js";
|
|
17
17
|
import { createZip as ei } from "./file-zipper.es.js";
|
|
18
18
|
var at = { exports: {} };
|
|
19
19
|
(function(e) {
|
|
@@ -150,7 +150,7 @@ const x = (e) => {
|
|
|
150
150
|
const t = h(zt()), n = e.type, o = h(e.name), i = e.command, c = e.noArgumentCommand, a = h(e.icon), l = h(e.group || "center"), d = h(e.allowWithoutEditor), u = h(e.attributes || {}), r = e.disabled || !1, w = h(e.disabled), v = h(!1), b = h(!1), y = h(e.style), g = h(e.isNarrow), L = h(e.isWide), D = h(e.minWidth), p = h(e.suppressActiveHighlight || !1), S = h(e.argument), F = h(null), O = h(null), W = h(e.iconColor), oe = h(e.hasCaret), ue = h(e.dropdownStyles), ve = h(e.tooltip), ge = h(e.tooltipVisible), Y = h(e.tooltipTimeout), T = h(e.defaultLabel), H = h(e.label), B = h(e.hideLabel), z = h(e.inlineTextInputVisible), G = h(e.hasInlineTextInput), K = h(e.markName), ce = h(e.labelAttr), se = h(e.selectedValue), ke = h(e.dropdownValueKey), Ie = h(e.inputRef || null), be = h([]);
|
|
151
151
|
if (e.options) {
|
|
152
152
|
if (!Array.isArray(e.options)) throw new Error("Invalid toolbar item options - " + e.options);
|
|
153
|
-
be.value
|
|
153
|
+
be.value?.push(...e.options);
|
|
154
154
|
}
|
|
155
155
|
const _e = (ae) => {
|
|
156
156
|
xe(ae), !p.value && (v.value = !0);
|
|
@@ -2043,7 +2043,9 @@ ct = function() {
|
|
|
2043
2043
|
*/
|
|
2044
2044
|
dt = function() {
|
|
2045
2045
|
if (!this.activeEditor || !this.activeEditor.converter || !this.activeEditor.converter.docHiglightColors.size) return;
|
|
2046
|
-
const t = this.toolbarItems.find((a) => a.name.value === "highlight")
|
|
2046
|
+
const t = this.toolbarItems.find((a) => a.name.value === "highlight");
|
|
2047
|
+
if (!t) return;
|
|
2048
|
+
const n = jn(), o = 7, i = Array.from(this.activeEditor.converter.docHiglightColors).reduce((a, l, d) => {
|
|
2047
2049
|
const u = Math.floor(d / o);
|
|
2048
2050
|
return a[u] || (a[u] = []), n.includes(l) || a[u].push(f(l)), a;
|
|
2049
2051
|
}, []), c = {
|
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-Bf6kv8E7.cjs");require("./chunks/vue-BQCc2YbW.cjs");exports.AIWriter=e.xe;exports.BasicUpload=e.Ro;exports.CommentsPluginKey=e.ge;exports.DocxZipper=e.Pt;exports.Editor=e.ls;exports.Extensions=e.No;exports.SuperConverter=e.Ot;exports.SuperEditor=e.zo;exports.SuperInput=e.Oo;exports.SuperToolbar=e.$o;exports.Toolbar=e.R0;exports.TrackChangesBasePluginKey=e.ce;exports.createZip=e.c;exports.fieldAnnotationHelpers=e.wS;exports.getActiveFormatting=e.bp;exports.getAllowedImageDimensions=e.vo;exports.getMarksFromSelection=e.Ko;exports.getRichTextExtensions=e.aS;exports.getStarterExtensions=e.lS;exports.helpers=e.zs;exports.trackChangesHelpers=e.kS;
|
package/dist/super-editor.es.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { x as r, R as t, g as o, P as i, l as n, N as p, O as l, z as g, a as c, $ as m, b as u, c as x, d, w as S, e as h, v as E, K as k, f as A, h as C, i as T, k as b } from "./chunks/super-editor.es-
|
|
1
|
+
import { x as r, R as t, g as o, P as i, l as n, N as p, O as l, z as g, a as c, $ as m, b as u, c as x, d, w as S, e as h, v as E, K as k, f as A, h as C, i as T, k as b } from "./chunks/super-editor.es-B4hMBqlj.es.js";
|
|
2
2
|
import "./chunks/vue-DKS68Dra.es.js";
|
|
3
3
|
export {
|
|
4
4
|
r as AIWriter,
|