@harbour-enterprises/superdoc 0.11.14 → 0.11.16
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-2TZZYQLx.es.js → super-editor.es-8iS3Aufz.es.js} +5942 -5905
- package/dist/chunks/{super-editor.es-C1EKvkyp.cjs → super-editor.es-X1ZNydbW.cjs} +65 -65
- package/dist/super-editor/ai-writer.es.js +1 -1
- package/dist/super-editor/chunks/{converter-Ca8BJJ2X.js → converter-C6sN3QDF.js} +9 -9
- package/dist/super-editor/chunks/{docx-zipper-s6cSP3dR.js → docx-zipper-BvfBhKUW.js} +1 -1
- package/dist/super-editor/chunks/{editor-Cc0LkFuB.js → editor-CFGZWOgs.js} +1148 -1111
- package/dist/super-editor/chunks/{toolbar-C7_LSIc-.js → toolbar-BPC6VkXQ.js} +2 -2
- package/dist/super-editor/converter.es.js +1 -1
- package/dist/super-editor/core/helpers/annotator.d.ts +2 -0
- package/dist/super-editor/core/helpers/annotator.d.ts.map +1 -0
- package/dist/super-editor/core/super-converter/v2/exporter/commentsExporter.d.ts +1 -1
- package/dist/super-editor/core/super-converter/v2/exporter/commentsExporter.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/extensions/table/table.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 +9 -9
- package/dist/superdoc.cjs +4 -4
- package/dist/superdoc.es.js +3 -3
- package/dist/superdoc.umd.js +1992 -1955
- package/dist/superdoc.umd.js.map +1 -1
- package/package.json +1 -1
|
@@ -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-CFGZWOgs.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;
|
|
@@ -13594,8 +13594,8 @@ const rd = (r, e) => ({
|
|
|
13594
13594
|
}), nd = (r) => ({
|
|
13595
13595
|
...r,
|
|
13596
13596
|
commentParaId: nu()
|
|
13597
|
-
}), id = (r, e, t) => {
|
|
13598
|
-
const
|
|
13597
|
+
}), id = (r, e, t, n) => {
|
|
13598
|
+
const i = ou({ editor: n, node: r.commentJSON }), s = {
|
|
13599
13599
|
"w:id": String(e),
|
|
13600
13600
|
"w:author": r.creatorName || r.importedAuthor?.name,
|
|
13601
13601
|
"w:email": r.creatorEmail || r.importedAuthor?.email,
|
|
@@ -13610,14 +13610,14 @@ const rd = (r, e) => ({
|
|
|
13610
13610
|
"custom:trackedDeletedText": r.deletedText || null
|
|
13611
13611
|
};
|
|
13612
13612
|
if (r?.parentCommentId) {
|
|
13613
|
-
const
|
|
13614
|
-
|
|
13613
|
+
const o = t.find((a) => a.commentId === r.parentCommentId);
|
|
13614
|
+
s["w15:paraIdParent"] = o.commentParaId;
|
|
13615
13615
|
}
|
|
13616
13616
|
return {
|
|
13617
13617
|
type: "element",
|
|
13618
13618
|
name: "w:comment",
|
|
13619
|
-
attributes:
|
|
13620
|
-
elements: [
|
|
13619
|
+
attributes: s,
|
|
13620
|
+
elements: [i]
|
|
13621
13621
|
};
|
|
13622
13622
|
}, sd = (r) => r ? r.replace("(imported)", "").trim().split(" ").map((n) => n[0]).join("") : null, su = (r) => new Date(r || Date.now()).toISOString().replace(/\.\d{3}Z$/, "Z"), od = (r = [], e) => {
|
|
13623
13623
|
const t = He(e);
|
|
@@ -16681,7 +16681,7 @@ const pt = class pt {
|
|
|
16681
16681
|
return;
|
|
16682
16682
|
}
|
|
16683
16683
|
}
|
|
16684
|
-
static updateDocumentVersion(e = this.convertedXml, t = "0.11.
|
|
16684
|
+
static updateDocumentVersion(e = this.convertedXml, t = "0.11.16") {
|
|
16685
16685
|
const n = "docProps/custom.xml";
|
|
16686
16686
|
e[n] || (e[n] = Fu());
|
|
16687
16687
|
const i = e["docProps/custom.xml"];
|
|
@@ -16790,7 +16790,7 @@ const pt = class pt {
|
|
|
16790
16790
|
return new No(this).schemaToXml(e, t);
|
|
16791
16791
|
}
|
|
16792
16792
|
async exportToDocx(e, t, n, i = !1, s, o = [], a) {
|
|
16793
|
-
const u = o.map((F) => nd(F)), f = u.map((F, w) => id(F, w, u)), { result: l, params: h } = this.exportToXmlJson({
|
|
16793
|
+
const u = o.map((F) => nd(F)), f = u.map((F, w) => id(F, w, u, a)), { result: l, params: h } = this.exportToXmlJson({
|
|
16794
16794
|
data: e,
|
|
16795
16795
|
editorSchema: t,
|
|
16796
16796
|
comments: o,
|
|
@@ -16944,7 +16944,7 @@ function Ep(r) {
|
|
|
16944
16944
|
function Fu() {
|
|
16945
16945
|
return Gf;
|
|
16946
16946
|
}
|
|
16947
|
-
function Bu(r = 2, e = "0.11.
|
|
16947
|
+
function Bu(r = 2, e = "0.11.16") {
|
|
16948
16948
|
return {
|
|
16949
16949
|
type: "element",
|
|
16950
16950
|
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-C6sN3QDF.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
|
}
|