@harbour-enterprises/superdoc 0.11.39 → 0.11.40
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-Oav3pft6.cjs → super-editor.es-DZzKZJLy.cjs} +3 -3
- package/dist/chunks/{super-editor.es-CfOoZR7Y.es.js → super-editor.es-RKwdWGC7.es.js} +3 -3
- package/dist/super-editor/ai-writer.es.js +2 -2
- package/dist/super-editor/chunks/{converter-BaPyRYsP.js → converter-DQ7oe9jd.js} +2 -2
- package/dist/super-editor/chunks/{docx-zipper-DWp5ugUc.js → docx-zipper-Bu4tz-qv.js} +1 -1
- package/dist/super-editor/chunks/{editor-C80oU8zg.js → editor--E_CT98k.js} +3 -3
- package/dist/super-editor/chunks/{toolbar-BfR55xSN.js → toolbar-H6KJEcQT.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/tests/e2e/test-app/dist/assets/index-BTMvkUyI.d.ts +3 -0
- package/dist/super-editor/tests/e2e/test-app/dist/assets/index-BTMvkUyI.d.ts.map +1 -0
- package/dist/super-editor/tests/e2e/test-app/vite.config.d.ts +1 -1
- 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
|
@@ -16756,7 +16756,7 @@ const ws = class H1 {
|
|
|
16756
16756
|
return;
|
|
16757
16757
|
}
|
|
16758
16758
|
}
|
|
16759
|
-
static updateDocumentVersion(e = this.convertedXml, n = "0.11.
|
|
16759
|
+
static updateDocumentVersion(e = this.convertedXml, n = "0.11.40") {
|
|
16760
16760
|
const r = "docProps/custom.xml";
|
|
16761
16761
|
e[r] || (e[r] = V1());
|
|
16762
16762
|
const o = e["docProps/custom.xml"];
|
|
@@ -17019,7 +17019,7 @@ function tT(t) {
|
|
|
17019
17019
|
function V1() {
|
|
17020
17020
|
return k4;
|
|
17021
17021
|
}
|
|
17022
|
-
function W1(t = 2, e = "0.11.
|
|
17022
|
+
function W1(t = 2, e = "0.11.40") {
|
|
17023
17023
|
return {
|
|
17024
17024
|
type: "element",
|
|
17025
17025
|
name: "property",
|
|
@@ -29771,7 +29771,7 @@ const J_ = class qx extends e_ {
|
|
|
29771
29771
|
* @returns {Object | void} Migration results
|
|
29772
29772
|
*/
|
|
29773
29773
|
processCollaborationMigrations() {
|
|
29774
|
-
if (console.debug("[checkVersionMigrations] Current editor version", "0.11.
|
|
29774
|
+
if (console.debug("[checkVersionMigrations] Current editor version", "0.11.40"), !this.options.ydoc) return;
|
|
29775
29775
|
let e = this.options.ydoc.getMap("meta").get("version");
|
|
29776
29776
|
e || (e = "initial"), console.debug("[checkVersionMigrations] Document version", e);
|
|
29777
29777
|
const n = mw(e) || [], r = this.state.plugins.find((i) => i.key.startsWith("y-sync"));
|
|
@@ -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-DQ7oe9jd.js";
|
|
3
|
+
import { _ as ee } from "./chunks/editor--E_CT98k.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;
|
|
@@ -16776,7 +16776,7 @@ const pt = class pt {
|
|
|
16776
16776
|
return;
|
|
16777
16777
|
}
|
|
16778
16778
|
}
|
|
16779
|
-
static updateDocumentVersion(e = this.convertedXml, t = "0.11.
|
|
16779
|
+
static updateDocumentVersion(e = this.convertedXml, t = "0.11.40") {
|
|
16780
16780
|
const n = "docProps/custom.xml";
|
|
16781
16781
|
e[n] || (e[n] = Fu());
|
|
16782
16782
|
const i = e["docProps/custom.xml"];
|
|
@@ -17039,7 +17039,7 @@ function Sp(r) {
|
|
|
17039
17039
|
function Fu() {
|
|
17040
17040
|
return Gf;
|
|
17041
17041
|
}
|
|
17042
|
-
function Bu(r = 2, e = "0.11.
|
|
17042
|
+
function Bu(r = 2, e = "0.11.40") {
|
|
17043
17043
|
return {
|
|
17044
17044
|
type: "element",
|
|
17045
17045
|
name: "property",
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { x as Tt, a0 as wt, B as ut, a1 as Bt, a2 as Rt } from "./converter-
|
|
1
|
+
import { x as Tt, a0 as wt, B as ut, a1 as Bt, a2 as Rt } from "./converter-DQ7oe9jd.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) => zf(t, typeof e != "symbol" ? e + "" : e, n), Qo = (t, e, n)
|
|
|
7
7
|
var Qe = (t, e, n) => (Qo(t, e, "read from private field"), n ? n.call(t) : e.get(t)), ft = (t, e, n) => e.has(t) ? ua("Cannot add the same private member more than once") : e instanceof WeakSet ? e.add(t) : e.set(t, n), ei = (t, e, n, r) => (Qo(t, e, "write to private field"), r ? r.call(t, n) : e.set(t, n), n), E = (t, e, n) => (Qo(t, e, "access private method"), n);
|
|
8
8
|
import * as N from "yjs";
|
|
9
9
|
import { UndoManager as _f, Item as $f, ContentType as Vf, Text as Hf, XmlElement as jf } from "yjs";
|
|
10
|
-
import { P as X, a as J, M as hr, c as Y, i as Wf, S as gc, b as wt, l as Er, A as Pr, d as jt, j as yc, N as z, r as bc, e as ee, T as j, F as T, R as ln, f as W, o as mr, g as fa, D as rn, h as Vt, k as Ei, m as wc, n as Uf, p as qf, q as xn, s as So, t as Kf, u as Wn, v as Xf, w as vc, x as oe, B as Jf, y as Yf, z as de, C as Ve, E as Ir, G as Se, H as fo, I as kc, J as Sn, K as ti, L as ni, O as ri, Q as po, U as Rt, V as $o, W as Gf, X as pa, Y as ha, Z as Zf, _ as Qf, $ as ep } from "./converter-
|
|
10
|
+
import { P as X, a as J, M as hr, c as Y, i as Wf, S as gc, b as wt, l as Er, A as Pr, d as jt, j as yc, N as z, r as bc, e as ee, T as j, F as T, R as ln, f as W, o as mr, g as fa, D as rn, h as Vt, k as Ei, m as wc, n as Uf, p as qf, q as xn, s as So, t as Kf, u as Wn, v as Xf, w as vc, x as oe, B as Jf, y as Yf, z as de, C as Ve, E as Ir, G as Se, H as fo, I as kc, J as Sn, K as ti, L as ni, O as ri, Q as po, U as Rt, V as $o, W as Gf, X as pa, Y as ha, Z as Zf, _ as Qf, $ as ep } from "./converter-DQ7oe9jd.js";
|
|
11
11
|
import { ref as ma, computed as tp, createElementBlock as Xt, openBlock as Jt, withModifiers as oi, Fragment as np, renderList as rp, normalizeClass as op, createCommentVNode as ga, toDisplayString as ii, createElementVNode as ip, createApp as sp } from "vue";
|
|
12
|
-
import { D as ya } from "./docx-zipper-
|
|
12
|
+
import { D as ya } from "./docx-zipper-Bu4tz-qv.js";
|
|
13
13
|
function Vo(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) => {
|
|
@@ -10364,7 +10364,7 @@ const ca = class ca extends Qy {
|
|
|
10364
10364
|
* @returns {Object | void} Migration results
|
|
10365
10365
|
*/
|
|
10366
10366
|
processCollaborationMigrations() {
|
|
10367
|
-
if (console.debug("[checkVersionMigrations] Current editor version", "0.11.
|
|
10367
|
+
if (console.debug("[checkVersionMigrations] Current editor version", "0.11.40"), !this.options.ydoc) return;
|
|
10368
10368
|
let r = this.options.ydoc.getMap("meta").get("version");
|
|
10369
10369
|
r || (r = "initial"), console.debug("[checkVersionMigrations] Document version", r);
|
|
10370
10370
|
const o = hl(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 { x as rn } from "./converter-
|
|
3
|
-
import { _ as mt, g as kt } from "./editor
|
|
2
|
+
import { x as rn } from "./converter-DQ7oe9jd.js";
|
|
3
|
+
import { _ as mt, g as kt } from "./editor--E_CT98k.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--E_CT98k.js";
|
|
2
|
+
import "./chunks/converter-DQ7oe9jd.js";
|
|
3
|
+
import "./chunks/docx-zipper-Bu4tz-qv.js";
|
|
4
4
|
export {
|
|
5
5
|
m as Editor
|
|
6
6
|
};
|
|
@@ -6,14 +6,14 @@ var bt = (t, a, o) => a in t ? yt(t, a, { enumerable: !0, configurable: !0, writ
|
|
|
6
6
|
var Re = (t, a, o) => bt(t, typeof a != "symbol" ? a + "" : a, o), qe = (t, a, o) => a.has(t) || Ue("Cannot " + o);
|
|
7
7
|
var Ae = (t, a, o) => (qe(t, a, "read from private field"), o ? o.call(t) : a.get(t)), Oe = (t, a, o) => a.has(t) ? Ue("Cannot add the same private member more than once") : a instanceof WeakSet ? a.add(t) : a.set(t, o);
|
|
8
8
|
var z = (t, a, o) => (qe(t, a, "access private method"), o);
|
|
9
|
-
import { _ as q, a as Ze, b as wt, I as Ne, f as Ct, c as Ge, d as kt, i as _t, u as xt, r as Et, E as ze, e as St, 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, E 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 Ct, c as Ge, d as kt, i as _t, u as xt, r as Et, E as ze, e as St, P as At, h as Tt, M as Ft, j as It, A as Lt, N as Mt } from "./chunks/editor--E_CT98k.js";
|
|
10
|
+
import { C as No, T as zo, l as Vo, n as Wo, k as Po, m as jo } from "./chunks/editor--E_CT98k.js";
|
|
11
|
+
import { a1 as Dt, E as $t, a3 as Ht, T as Ye, a as Bt } from "./chunks/converter-DQ7oe9jd.js";
|
|
12
|
+
import { O as qo } from "./chunks/converter-DQ7oe9jd.js";
|
|
13
13
|
import { ref as f, createElementBlock as C, openBlock as w, createElementVNode as k, unref as D, getCurrentInstance as Rt, computed as j, watch as Ot, onMounted as ke, 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-H6KJEcQT.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-Bu4tz-qv.js";
|
|
17
17
|
import { createZip as Zo } from "./file-zipper.es.js";
|
|
18
18
|
var it = { exports: {} };
|
|
19
19
|
(function(t) {
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index-BTMvkUyI.d.ts","sourceRoot":"","sources":["../../../../../../src/tests/e2e/test-app/dist/assets/index-BTMvkUyI.js"],"names":[],"mappings":""}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
declare const _default: import("vite").UserConfig & Promise<import("vite").UserConfig> &
|
|
1
|
+
declare const _default: import("vite").UserConfig & Promise<import("vite").UserConfig> & import("vite").UserConfigFnObject & import("vite").UserConfigFnPromise & import("vite").UserConfigFn;
|
|
2
2
|
export default _default;
|
|
3
3
|
//# sourceMappingURL=vite.config.d.ts.map
|
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-DZzKZJLy.cjs");require("./chunks/vue-BQCc2YbW.cjs");exports.AIWriter=e.xe;exports.BasicUpload=e.$o;exports.CommentsPluginKey=e.ge;exports.DocxZipper=e.Nt;exports.Editor=e.ns;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.Xx;exports.getActiveFormatting=e.ap;exports.getAllowedImageDimensions=e.mo;exports.getMarksFromSelection=e.Vo;exports.getRichTextExtensions=e.Fx;exports.getStarterExtensions=e.Bx;exports.helpers=e.Rs;exports.trackChangesHelpers=e.Yx;
|
package/dist/super-editor.es.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { x as r, $ as t, g as o, N as n, n as i, B as p, O as g, D as l, H as c, M as m, P as u, c as x, a as d, X as S, b as E, m as h, V as A, F as C, d as T, R as b, Y as k } from "./chunks/super-editor.es-
|
|
1
|
+
import { x as r, $ as t, g as o, N as n, n as i, B as p, O as g, D as l, H as c, M as m, P as u, c as x, a as d, X as S, b as E, m as h, V as A, F as C, d as T, R as b, Y as k } from "./chunks/super-editor.es-RKwdWGC7.es.js";
|
|
2
2
|
import "./chunks/vue-DKS68Dra.es.js";
|
|
3
3
|
export {
|
|
4
4
|
r as AIWriter,
|