@harbour-enterprises/superdoc 0.11.6 → 0.11.7
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-Bz-U0fbZ.cjs → super-editor.es-Bzb69A_2.cjs} +4 -4
- package/dist/chunks/{super-editor.es-CFeTFEl1.es.js → super-editor.es-DJOHm_Af.es.js} +24 -15
- package/dist/super-editor/ai-writer.es.js +1 -1
- package/dist/super-editor/chunks/{converter-C8a6syrt.js → converter-CZzJR8Zm.js} +2 -2
- package/dist/super-editor/chunks/{docx-zipper-lTFT68yl.js → docx-zipper-B5g2wszk.js} +1 -1
- package/dist/super-editor/chunks/{editor-BpbiX0ct.js → editor-BnNjq7dV.js} +24 -15
- package/dist/super-editor/chunks/{toolbar-DQDe33iY.js → toolbar-CHnJpJgV.js} +2 -2
- 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/extensions/search/search.d.ts.map +1 -1
- 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 +25 -16
- package/dist/superdoc.umd.js.map +1 -1
- package/package.json +1 -1
|
@@ -16568,7 +16568,7 @@ const gs = class Pv {
|
|
|
16568
16568
|
return;
|
|
16569
16569
|
}
|
|
16570
16570
|
}
|
|
16571
|
-
static updateDocumentVersion(e = this.convertedXml, n = "0.11.
|
|
16571
|
+
static updateDocumentVersion(e = this.convertedXml, n = "0.11.7") {
|
|
16572
16572
|
const r = "docProps/custom.xml";
|
|
16573
16573
|
e[r] || (e[r] = zv());
|
|
16574
16574
|
const o = e["docProps/custom.xml"];
|
|
@@ -16831,7 +16831,7 @@ function K$(t) {
|
|
|
16831
16831
|
function zv() {
|
|
16832
16832
|
return y4;
|
|
16833
16833
|
}
|
|
16834
|
-
function jv(t = 2, e = "0.11.
|
|
16834
|
+
function jv(t = 2, e = "0.11.7") {
|
|
16835
16835
|
return {
|
|
16836
16836
|
type: "element",
|
|
16837
16837
|
name: "property",
|
|
@@ -29304,7 +29304,7 @@ const M8 = class Lx extends OM {
|
|
|
29304
29304
|
* @returns {Y.Doc | undefined} Updated Y.Doc if any, otherwise undefined
|
|
29305
29305
|
*/
|
|
29306
29306
|
processCollaborationMigrations() {
|
|
29307
|
-
if (console.debug("[checkVersionMigrations] Current editor version", "0.11.
|
|
29307
|
+
if (console.debug("[checkVersionMigrations] Current editor version", "0.11.7"), !this.options.ydoc) return;
|
|
29308
29308
|
let e = this.options.ydoc.getMap("meta").get("version");
|
|
29309
29309
|
e || (e = "initial"), console.debug("[checkVersionMigrations] Document version", e);
|
|
29310
29310
|
const n = hw(e) || [], r = this.state.plugins.find((i) => i.key.startsWith("y-sync"));
|
|
@@ -38026,18 +38026,27 @@ const gR = ct.create({
|
|
|
38026
38026
|
e.view.domAtPos(i)?.node?.scrollIntoView(!0);
|
|
38027
38027
|
},
|
|
38028
38028
|
search: (t) => ({ state: e, dispatch: n }) => {
|
|
38029
|
-
|
|
38030
|
-
|
|
38031
|
-
|
|
38032
|
-
|
|
38033
|
-
|
|
38034
|
-
|
|
38035
|
-
|
|
38036
|
-
|
|
38037
|
-
|
|
38038
|
-
|
|
38039
|
-
|
|
38040
|
-
|
|
38029
|
+
let r, o = !1, i = !1;
|
|
38030
|
+
const s = !1;
|
|
38031
|
+
if (t instanceof RegExp)
|
|
38032
|
+
i = !0, r = t.source, o = !t.flags.includes("i");
|
|
38033
|
+
else if (typeof t == "string" && /^\/(.+)\/([gimsuy]*)$/.test(t)) {
|
|
38034
|
+
const [, d, f] = t.match(/^\/(.+)\/([gimsuy]*)$/);
|
|
38035
|
+
i = !0, r = d, o = !f.includes("i");
|
|
38036
|
+
} else
|
|
38037
|
+
r = String(t);
|
|
38038
|
+
const a = new ak({
|
|
38039
|
+
search: r,
|
|
38040
|
+
caseSensitive: o,
|
|
38041
|
+
regexp: i,
|
|
38042
|
+
wholeWord: s
|
|
38043
|
+
}), l = mR(e.tr, a);
|
|
38044
|
+
n(l);
|
|
38045
|
+
const c = e.apply(l), u = y0(c);
|
|
38046
|
+
return (u ? u.find() : []).map((d) => ({
|
|
38047
|
+
from: d.from,
|
|
38048
|
+
to: d.to,
|
|
38049
|
+
text: c.doc.textBetween(d.from, d.to)
|
|
38041
38050
|
}));
|
|
38042
38051
|
},
|
|
38043
38052
|
goToSearchResult: (t) => ({ state: e, dispatch: n, editor: r }) => {
|
|
@@ -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 S, 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-BnNjq7dV.js";
|
|
3
3
|
const X = "https://sd-dev-express-gateway-i6xtm.ondigitalocean.app/insights", C = "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;
|
|
@@ -16588,7 +16588,7 @@ const mt = class mt {
|
|
|
16588
16588
|
return;
|
|
16589
16589
|
}
|
|
16590
16590
|
}
|
|
16591
|
-
static updateDocumentVersion(e = this.convertedXml, t = "0.11.
|
|
16591
|
+
static updateDocumentVersion(e = this.convertedXml, t = "0.11.7") {
|
|
16592
16592
|
const n = "docProps/custom.xml";
|
|
16593
16593
|
e[n] || (e[n] = Fu());
|
|
16594
16594
|
const i = e["docProps/custom.xml"];
|
|
@@ -16851,7 +16851,7 @@ function vp(r) {
|
|
|
16851
16851
|
function Fu() {
|
|
16852
16852
|
return Gf;
|
|
16853
16853
|
}
|
|
16854
|
-
function Bu(r = 2, e = "0.11.
|
|
16854
|
+
function Bu(r = 2, e = "0.11.7") {
|
|
16855
16855
|
return {
|
|
16856
16856
|
type: "element",
|
|
16857
16857
|
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-CZzJR8Zm.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 R = (t, e, n) => Nf(t, typeof e != "symbol" ? e + "" : e, n), Zo = (t, e, n)
|
|
|
7
7
|
var Qe = (t, e, n) => (Zo(t, e, "read from private field"), n ? n.call(t) : e.get(t)), ft = (t, e, n) => e.has(t) ? aa("Cannot add the same private member more than once") : e instanceof WeakSet ? e.add(t) : e.set(t, n), Qo = (t, e, n, r) => (Zo(t, e, "write to private field"), r ? r.call(t, n) : e.set(t, n), n), N = (t, e, n) => (Zo(t, e, "access private method"), n);
|
|
8
8
|
import * as T from "yjs";
|
|
9
9
|
import { UndoManager as Ef, Item as Pf, ContentType as If, Text as Rf, XmlElement as Lf } from "yjs";
|
|
10
|
-
import { P as J, a as Y, M as fr, c as X, N as $, S as ee, T as j, b as W, D as Hn, F as E, d as nn, e as Ff, f as dc, A as Nr, p as oe, B as Bf, i as zf, g as uc, h as $f, j as wt, l as Er, k as Ht, m as fc, r as pc, R as ln, o as pr, n as la, q as _t, s as Ti, t as hc, u as _f, v as Vf, w as de, x as Ve, y as zo, z as xn, C as ko, E as Hf, G as Se, H as lo, I as mc, J as Sn, K as ei, L as ti, O as ni, Q as co, U as Rt, V as $o, W as jf, X as ca, Y as da, Z as Wf, _ as Uf, $ as qf } from "./converter-
|
|
10
|
+
import { P as J, a as Y, M as fr, c as X, N as $, S as ee, T as j, b as W, D as Hn, F as E, d as nn, e as Ff, f as dc, A as Nr, p as oe, B as Bf, i as zf, g as uc, h as $f, j as wt, l as Er, k as Ht, m as fc, r as pc, R as ln, o as pr, n as la, q as _t, s as Ti, t as hc, u as _f, v as Vf, w as de, x as Ve, y as zo, z as xn, C as ko, E as Hf, G as Se, H as lo, I as mc, J as Sn, K as ei, L as ti, O as ni, Q as co, U as Rt, V as $o, W as jf, X as ca, Y as da, Z as Wf, _ as Uf, $ as qf } from "./converter-CZzJR8Zm.js";
|
|
11
11
|
import { ref as ua, computed as Kf, createElementBlock as Kt, openBlock as Xt, withModifiers as ri, Fragment as Xf, renderList as Jf, normalizeClass as Yf, createCommentVNode as fa, toDisplayString as oi, createElementVNode as Gf, createApp as Zf } from "vue";
|
|
12
|
-
import { D as pa } from "./docx-zipper-
|
|
12
|
+
import { D as pa } from "./docx-zipper-B5g2wszk.js";
|
|
13
13
|
function _o(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) => {
|
|
@@ -10048,7 +10048,7 @@ const ia = class ia extends Tg {
|
|
|
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.11.
|
|
10051
|
+
if (console.debug("[checkVersionMigrations] Current editor version", "0.11.7"), !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 = dl(r) || [], s = this.state.plugins.find((c) => c.key.startsWith("y-sync"));
|
|
@@ -18803,18 +18803,27 @@ const px = Z.create({
|
|
|
18803
18803
|
e.view.domAtPos(i)?.node?.scrollIntoView(!0);
|
|
18804
18804
|
},
|
|
18805
18805
|
search: (t) => ({ state: e, dispatch: n }) => {
|
|
18806
|
-
|
|
18807
|
-
|
|
18808
|
-
|
|
18809
|
-
|
|
18810
|
-
|
|
18811
|
-
|
|
18812
|
-
|
|
18813
|
-
|
|
18814
|
-
|
|
18815
|
-
|
|
18816
|
-
|
|
18817
|
-
|
|
18806
|
+
let r, o = !1, i = !1;
|
|
18807
|
+
const s = !1;
|
|
18808
|
+
if (t instanceof RegExp)
|
|
18809
|
+
i = !0, r = t.source, o = !t.flags.includes("i");
|
|
18810
|
+
else if (typeof t == "string" && /^\/(.+)\/([gimsuy]*)$/.test(t)) {
|
|
18811
|
+
const [, f, p] = t.match(/^\/(.+)\/([gimsuy]*)$/);
|
|
18812
|
+
i = !0, r = f, o = !p.includes("i");
|
|
18813
|
+
} else
|
|
18814
|
+
r = String(t);
|
|
18815
|
+
const a = new kf({
|
|
18816
|
+
search: r,
|
|
18817
|
+
caseSensitive: o,
|
|
18818
|
+
regexp: i,
|
|
18819
|
+
wholeWord: s
|
|
18820
|
+
}), l = fx(e.tr, a);
|
|
18821
|
+
n(l);
|
|
18822
|
+
const c = e.apply(l), d = cc(c);
|
|
18823
|
+
return (d ? d.find() : []).map((f) => ({
|
|
18824
|
+
from: f.from,
|
|
18825
|
+
to: f.to,
|
|
18826
|
+
text: c.doc.textBetween(f.from, f.to)
|
|
18818
18827
|
}));
|
|
18819
18828
|
},
|
|
18820
18829
|
goToSearchResult: (t) => ({ state: e, dispatch: n, editor: r }) => {
|
|
@@ -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 Vs, onBeforeMount as dr, inject as te, onActivated as Us, onDeactivated as ri, createTextVNode as Mt, Fragment as _e, Comment as fr, defineComponent as ee, provide as Se, h as A, Teleport as Gs, toRef as ie, nextTick as oi, 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-CZzJR8Zm.js";
|
|
3
|
+
import { _ as vt, g as Pt } from "./editor-BnNjq7dV.js";
|
|
4
4
|
const _0 = (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,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-BnNjq7dV.js";
|
|
2
|
+
import "./chunks/converter-CZzJR8Zm.js";
|
|
3
|
+
import "./chunks/docx-zipper-B5g2wszk.js";
|
|
4
4
|
export {
|
|
5
5
|
m as Editor
|
|
6
6
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"search.d.ts","sourceRoot":"","sources":["../../../src/extensions/search/search.js"],"names":[],"mappings":"AAKA,
|
|
1
|
+
{"version":3,"file":"search.d.ts","sourceRoot":"","sources":["../../../src/extensions/search/search.js"],"names":[],"mappings":"AAKA,yBAyEG"}
|
|
@@ -6,14 +6,14 @@ var bt = (t, l, o) => l in t ? yt(t, l, { enumerable: !0, configurable: !0, writ
|
|
|
6
6
|
var Re = (t, l, o) => bt(t, typeof l != "symbol" ? l + "" : l, o), qe = (t, l, o) => l.has(t) || Ue("Cannot " + o);
|
|
7
7
|
var Ae = (t, l, o) => (qe(t, l, "read from private field"), o ? o.call(t) : l.get(t)), Oe = (t, l, o) => l.has(t) ? Ue("Cannot add the same private member more than once") : l instanceof WeakSet ? l.add(t) : l.set(t, o);
|
|
8
8
|
var z = (t, l, o) => (qe(t, l, "access private method"), o);
|
|
9
|
-
import { _ as q, a as Ze, b as wt, I as Ne, f as kt, c as Ge, d as Ct, i as _t, u as xt, r as St, E as ze, e as Et, P as At, h as Tt, M as Ft, j as It, A as Lt, N as Mt } from "./chunks/editor-
|
|
10
|
-
import { C as No, T as zo, l as Vo, n as Wo, k as Po, m as jo } from "./chunks/editor-
|
|
11
|
-
import { a1 as Dt, y as $t, a3 as Ht, T as Ye, a as Bt } from "./chunks/converter-
|
|
12
|
-
import { O as qo } from "./chunks/converter-
|
|
9
|
+
import { _ as q, a as Ze, b as wt, I as Ne, f as kt, c as Ge, d as Ct, i as _t, u as xt, r as St, E as ze, e as Et, P as At, h as Tt, M as Ft, j as It, A as Lt, N as Mt } from "./chunks/editor-BnNjq7dV.js";
|
|
10
|
+
import { C as No, T as zo, l as Vo, n as Wo, k as Po, m as jo } from "./chunks/editor-BnNjq7dV.js";
|
|
11
|
+
import { a1 as Dt, y as $t, a3 as Ht, T as Ye, a as Bt } from "./chunks/converter-CZzJR8Zm.js";
|
|
12
|
+
import { O as qo } from "./chunks/converter-CZzJR8Zm.js";
|
|
13
13
|
import { ref as f, createElementBlock as k, openBlock as w, createElementVNode as C, unref as D, getCurrentInstance as Rt, computed as j, watch as Ot, onMounted as Ce, createCommentVNode as Q, withDirectives as Je, withKeys as Qe, normalizeClass as oe, withModifiers as ge, vModelText as et, createTextVNode as tt, toDisplayString as ie, Fragment as U, renderList as ee, normalizeStyle as J, createVNode as P, h as B, createApp as Nt, reactive as Ke, onUnmounted as zt, shallowRef as nt, onBeforeUnmount as ot, createBlock as Vt } from "vue";
|
|
14
|
-
import { t as X, s as Wt, T as Pt, N as Y } from "./chunks/toolbar-
|
|
14
|
+
import { t as X, s as Wt, T as Pt, N as Y } from "./chunks/toolbar-CHnJpJgV.js";
|
|
15
15
|
import jt from "./ai-writer.es.js";
|
|
16
|
-
import { D as Ko } from "./chunks/docx-zipper-
|
|
16
|
+
import { D as Ko } from "./chunks/docx-zipper-B5g2wszk.js";
|
|
17
17
|
import { createZip as Zo } from "./file-zipper.es.js";
|
|
18
18
|
var it = { 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-Bzb69A_2.cjs");require("./chunks/vue-Ckf0DkDN.cjs");exports.AIWriter=e.de;exports.BasicUpload=e.$o;exports.CommentsPluginKey=e.ge;exports.DocxZipper=e.Nt;exports.Editor=e.Qi;exports.Extensions=e.Bo;exports.SuperConverter=e.Pt;exports.SuperEditor=e.Do;exports.SuperInput=e.Ho;exports.SuperToolbar=e.Mo;exports.Toolbar=e.L0;exports.TrackChangesBasePluginKey=e.ce;exports.createZip=e.c;exports.fieldAnnotationHelpers=e.Ax;exports.getActiveFormatting=e.Qf;exports.getAllowedImageDimensions=e.mo;exports.getMarksFromSelection=e._o;exports.getRichTextExtensions=e.hx;exports.getStarterExtensions=e.mx;exports.helpers=e.Us;exports.trackChangesHelpers=e.Tx;
|
package/dist/super-editor.es.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { d as r, $ as t, g as o, N as i, Q as n, B as p, P as g, D as l, H as c, M as m, L as u, c as d, a as x, A as S, b as h, m as A, _ as E, h as T, e as C, U as b, T as k } from "./chunks/super-editor.es-
|
|
1
|
+
import { d as r, $ as t, g as o, N as i, Q as n, B as p, P as g, D as l, H as c, M as m, L as u, c as d, a as x, A as S, b as h, m as A, _ as E, h as T, e as C, U as b, T as k } from "./chunks/super-editor.es-DJOHm_Af.es.js";
|
|
2
2
|
import "./chunks/vue-B11Xj7yz.es.js";
|
|
3
3
|
export {
|
|
4
4
|
r as AIWriter,
|