@harbour-enterprises/superdoc 0.11.26 → 0.11.27
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-Df4q8qAV.es.js → super-editor.es-BIK-8ouX.es.js} +3 -3
- package/dist/chunks/{super-editor.es-Dmjp8Lob.cjs → super-editor.es-CvbHDMLc.cjs} +3 -3
- package/dist/super-editor/ai-writer.es.js +2 -2
- package/dist/super-editor/chunks/{converter-B2flRLQr.js → converter-BvdaXwuX.js} +2 -2
- package/dist/super-editor/chunks/{docx-zipper-CivY-JVT.js → docx-zipper-Dd22cL7M.js} +1 -1
- package/dist/super-editor/chunks/{editor-teDtQFEX.js → editor-CLxKVVZn.js} +3 -3
- package/dist/super-editor/chunks/{toolbar-BFeuRgTL.js → toolbar-BpiMk6d5.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/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 +4 -4
- package/dist/superdoc.umd.js.map +1 -1
- package/package.json +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ref as u, onMounted as X, onUnmounted as q, computed as S, createElementBlock as A, openBlock as M, withModifiers as E, createElementVNode as h, withDirectives as $, unref as I, vModelText as B, createCommentVNode as G, nextTick as U } from "vue";
|
|
2
|
-
import { T as Y } from "./chunks/converter-
|
|
3
|
-
import { _ as J } from "./chunks/editor-
|
|
2
|
+
import { T as Y } from "./chunks/converter-BvdaXwuX.js";
|
|
3
|
+
import { _ as J } from "./chunks/editor-CLxKVVZn.js";
|
|
4
4
|
const Q = "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: ";
|
|
5
5
|
async function D(i, r = {}) {
|
|
6
6
|
const e = r.apiKey, s = r.endpoint || Q;
|
|
@@ -16723,7 +16723,7 @@ const pt = class pt {
|
|
|
16723
16723
|
return;
|
|
16724
16724
|
}
|
|
16725
16725
|
}
|
|
16726
|
-
static updateDocumentVersion(e = this.convertedXml, t = "0.11.
|
|
16726
|
+
static updateDocumentVersion(e = this.convertedXml, t = "0.11.27") {
|
|
16727
16727
|
const n = "docProps/custom.xml";
|
|
16728
16728
|
e[n] || (e[n] = Fu());
|
|
16729
16729
|
const i = e["docProps/custom.xml"];
|
|
@@ -16986,7 +16986,7 @@ function Cp(r) {
|
|
|
16986
16986
|
function Fu() {
|
|
16987
16987
|
return Gf;
|
|
16988
16988
|
}
|
|
16989
|
-
function Bu(r = 2, e = "0.11.
|
|
16989
|
+
function Bu(r = 2, e = "0.11.27") {
|
|
16990
16990
|
return {
|
|
16991
16991
|
type: "element",
|
|
16992
16992
|
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-BvdaXwuX.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 = (t, e, n) => Ff(t, typeof e != "symbol" ? e + "" : e, n), Zi = (t, e, n)
|
|
|
7
7
|
var Qe = (t, e, n) => (Zi(t, e, "read from private field"), n ? n.call(t) : e.get(t)), ft = (t, e, n) => e.has(t) ? ca("Cannot add the same private member more than once") : e instanceof WeakSet ? e.add(t) : e.set(t, n), Qi = (t, e, n, r) => (Zi(t, e, "write to private field"), r ? r.call(t, n) : e.set(t, n), n), E = (t, e, n) => (Zi(t, e, "access private method"), n);
|
|
8
8
|
import * as N from "yjs";
|
|
9
9
|
import { UndoManager as Bf, Item as zf, ContentType as _f, Text as $f, XmlElement as Vf } from "yjs";
|
|
10
|
-
import { P as X, a as J, M as fr, c as Y, N as _, S as ee, T as j, b as W, D as Hn, F as T, d as rn, e as Hf, f as hc, A as Nr, p as ie, B as jf, i as Wf, g as mc, h as Uf, j as wt, l as Er, k as jt, m as gc, r as yc, R as ln, o as pr, n as da, q as Vt, s as No, t as bc, u as qf, v as Kf, w as de, x as Ve, y as Pr, z as xn, C as xi, E as Xf, G as Se, H as di, I as wc, J as Sn, K as eo, L as to, O as no, Q as ui, U as Rt, V as _i, W as Jf, X as ua, Y as fa, Z as Yf, _ as Gf, $ as Zf } from "./converter-
|
|
10
|
+
import { P as X, a as J, M as fr, c as Y, N as _, S as ee, T as j, b as W, D as Hn, F as T, d as rn, e as Hf, f as hc, A as Nr, p as ie, B as jf, i as Wf, g as mc, h as Uf, j as wt, l as Er, k as jt, m as gc, r as yc, R as ln, o as pr, n as da, q as Vt, s as No, t as bc, u as qf, v as Kf, w as de, x as Ve, y as Pr, z as xn, C as xi, E as Xf, G as Se, H as di, I as wc, J as Sn, K as eo, L as to, O as no, Q as ui, U as Rt, V as _i, W as Jf, X as ua, Y as fa, Z as Yf, _ as Gf, $ as Zf } from "./converter-BvdaXwuX.js";
|
|
11
11
|
import { ref as pa, computed as Qf, createElementBlock as Xt, openBlock as Jt, withModifiers as ro, Fragment as ep, renderList as tp, normalizeClass as np, createCommentVNode as ha, toDisplayString as io, createElementVNode as rp, createApp as ip } from "vue";
|
|
12
|
-
import { D as ma } from "./docx-zipper-
|
|
12
|
+
import { D as ma } from "./docx-zipper-Dd22cL7M.js";
|
|
13
13
|
function $i(t) {
|
|
14
14
|
const { from: e, to: n, empty: r } = t.selection, i = [];
|
|
15
15
|
return r ? (t.storedMarks && i.push(...t.storedMarks), i.push(...t.selection.$head.marks())) : t.doc.nodesBetween(e, n, (o) => {
|
|
@@ -10107,7 +10107,7 @@ const aa = class aa extends Rg {
|
|
|
10107
10107
|
* @returns {Y.Doc | undefined} Updated Y.Doc if any, otherwise undefined
|
|
10108
10108
|
*/
|
|
10109
10109
|
processCollaborationMigrations() {
|
|
10110
|
-
if (console.debug("[checkVersionMigrations] Current editor version", "0.11.
|
|
10110
|
+
if (console.debug("[checkVersionMigrations] Current editor version", "0.11.27"), !this.options.ydoc) return;
|
|
10111
10111
|
let r = this.options.ydoc.getMap("meta").get("version");
|
|
10112
10112
|
r || (r = "initial"), console.debug("[checkVersionMigrations] Document version", r);
|
|
10113
10113
|
const i = fl(r) || [], s = this.state.plugins.find((c) => c.key.startsWith("y-sync"));
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { computed as _, createElementBlock as ie, openBlock as q, createElementVNode as Ot, createCommentVNode as he, normalizeClass as en, normalizeStyle as Tt, ref as R, 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 A, 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 { p as rn } from "./converter-
|
|
3
|
-
import { _ as mt, g as kt } from "./editor-
|
|
2
|
+
import { p as rn } from "./converter-BvdaXwuX.js";
|
|
3
|
+
import { _ as mt, g as kt } from "./editor-CLxKVVZn.js";
|
|
4
4
|
const I0 = (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-CLxKVVZn.js";
|
|
2
|
+
import "./chunks/converter-BvdaXwuX.js";
|
|
3
|
+
import "./chunks/docx-zipper-Dd22cL7M.js";
|
|
4
4
|
export {
|
|
5
5
|
m as Editor
|
|
6
6
|
};
|
|
@@ -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-CLxKVVZn.js";
|
|
10
|
+
import { C as No, T as zo, l as Vo, n as Wo, k as Po, m as jo } from "./chunks/editor-CLxKVVZn.js";
|
|
11
|
+
import { a1 as Dt, y as $t, a3 as Ht, T as Ye, a as Bt } from "./chunks/converter-BvdaXwuX.js";
|
|
12
|
+
import { O as qo } from "./chunks/converter-BvdaXwuX.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-BpiMk6d5.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-Dd22cL7M.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-CvbHDMLc.cjs");require("./chunks/vue-Ckf0DkDN.cjs");exports.AIWriter=e.me;exports.BasicUpload=e.$o;exports.CommentsPluginKey=e.ge;exports.DocxZipper=e.Nt;exports.Editor=e.ts;exports.Extensions=e.Bo;exports.SuperConverter=e.Ot;exports.SuperEditor=e.Do;exports.SuperInput=e.Ho;exports.SuperToolbar=e.Mo;exports.Toolbar=e.P0;exports.TrackChangesBasePluginKey=e.ce;exports.createZip=e.c;exports.fieldAnnotationHelpers=e.Hx;exports.getActiveFormatting=e.op;exports.getAllowedImageDimensions=e.mo;exports.getMarksFromSelection=e.$i;exports.getRichTextExtensions=e.Nx;exports.getStarterExtensions=e.Ex;exports.helpers=e.Ks;exports.trackChangesHelpers=e.Wx;
|
package/dist/super-editor.es.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { m as t, $ as r, g as o, N as i, t as n, B as p, O as g, D as l, H as c, M as m, P as u, c as d, a as x, b as E, o as S, d as h, e as A, f as C, E as T, K as b, W as f } from "./chunks/super-editor.es-
|
|
1
|
+
import { m as t, $ as r, g as o, N as i, t as n, B as p, O as g, D as l, H as c, M as m, P as u, c as d, a as x, b as E, o as S, d as h, e as A, f as C, E as T, K as b, W as f } from "./chunks/super-editor.es-BIK-8ouX.es.js";
|
|
2
2
|
import "./chunks/vue-DXpzqXur.es.js";
|
|
3
3
|
export {
|
|
4
4
|
t as AIWriter,
|