@harbour-enterprises/superdoc 0.10.72 → 0.10.74
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-CIYZ5Y6P.cjs → super-editor.es-BKb3ou8n.cjs} +85 -85
- package/dist/chunks/{super-editor.es-C7j1iePP.es.js → super-editor.es-BvOszlT8.es.js} +7528 -7447
- package/dist/super-editor/ai-writer.es.js +1 -1
- package/dist/super-editor/chunks/{converter-DdoplIcH.js → converter-GSZUUKpF.js} +9 -9
- package/dist/super-editor/chunks/{docx-zipper-BuLg2ivg.js → docx-zipper-Bkti_srw.js} +1 -1
- package/dist/super-editor/chunks/{editor-CzUrA6Jd.js → editor-BRWSXTYt.js} +2366 -2286
- package/dist/super-editor/chunks/{toolbar-DfKr9n4m.js → toolbar-D2m1kB4W.js} +2 -2
- package/dist/super-editor/converter.es.js +1 -1
- package/dist/super-editor/core/Editor.d.ts +9 -0
- package/dist/super-editor/core/Editor.d.ts.map +1 -1
- package/dist/super-editor/core/helpers/annotator.d.ts +10 -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/field-annotation/field-annotation-marks-impl.d.ts.map +1 -1
- package/dist/super-editor/extensions/field-annotation/field-annotation.d.ts.map +1 -1
- 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 +2 -2
- package/dist/superdoc.cjs +4 -4
- package/dist/superdoc.es.js +3 -3
- package/dist/superdoc.umd.js +3820 -3740
- 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-BRWSXTYt.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);
|
|
@@ -16588,7 +16588,7 @@ const mt = class mt {
|
|
|
16588
16588
|
return;
|
|
16589
16589
|
}
|
|
16590
16590
|
}
|
|
16591
|
-
static updateDocumentVersion(e = this.convertedXml, t = "0.10.
|
|
16591
|
+
static updateDocumentVersion(e = this.convertedXml, t = "0.10.74") {
|
|
16592
16592
|
const n = "docProps/custom.xml";
|
|
16593
16593
|
e[n] || (e[n] = Fu());
|
|
16594
16594
|
const i = e["docProps/custom.xml"];
|
|
@@ -16697,7 +16697,7 @@ const mt = class mt {
|
|
|
16697
16697
|
return new No(this).schemaToXml(e, t);
|
|
16698
16698
|
}
|
|
16699
16699
|
async exportToDocx(e, t, n, i = !1, s, o = [], a) {
|
|
16700
|
-
const u = o.map((F) => nd(F)), f = u.map((F, w) => id(F, w, u)), { result: l, params: h } = this.exportToXmlJson({
|
|
16700
|
+
const u = o.map((F) => nd(F)), f = u.map((F, w) => id(F, w, u, a)), { result: l, params: h } = this.exportToXmlJson({
|
|
16701
16701
|
data: e,
|
|
16702
16702
|
editorSchema: t,
|
|
16703
16703
|
comments: o,
|
|
@@ -16851,7 +16851,7 @@ function vp(r) {
|
|
|
16851
16851
|
function Fu() {
|
|
16852
16852
|
return Gf;
|
|
16853
16853
|
}
|
|
16854
|
-
function Bu(r = 2, e = "0.10.
|
|
16854
|
+
function Bu(r = 2, e = "0.10.74") {
|
|
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-GSZUUKpF.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
|
}
|