@harbour-enterprises/superdoc 0.25.0-next.1 → 0.25.0-next.2
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/{PdfViewer-CvksDDwi.cjs → PdfViewer-CEc5ST9t.cjs} +1 -1
- package/dist/chunks/{PdfViewer-BEbvklge.es.js → PdfViewer-CoEXViCu.es.js} +1 -1
- package/dist/chunks/{index-Bf3lSVG2.cjs → index-ChgYIPZ8.cjs} +2 -2
- package/dist/chunks/{index-B9Ad3j3k.es.js → index-DtXgSPMT.es.js} +2 -2
- package/dist/chunks/{super-editor.es-Bh07I_ue.cjs → super-editor.es-B-E_YaLO.cjs} +6 -3
- package/dist/chunks/{super-editor.es--RpCOiR4.es.js → super-editor.es-BePxEtE8.es.js} +6 -3
- package/dist/core/types/index.d.ts.map +1 -1
- package/dist/super-editor/ai-writer.es.js +1 -1
- package/dist/super-editor/chunks/{editor-CyBtLJFF.js → editor-yaef8OIs.js} +6 -3
- package/dist/super-editor/chunks/{toolbar-1Ejr8Exl.js → toolbar-Dc5uyyIp.js} +1 -1
- package/dist/super-editor/editor.es.js +1 -1
- package/dist/super-editor/super-editor/src/extensions/track-changes/trackChangesHelpers/markDeletion.d.ts +1 -1
- package/dist/super-editor/super-editor.es.js +3 -3
- 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 +2 -2
- package/dist/superdoc.umd.js +6 -3
- package/dist/superdoc.umd.js.map +1 -1
- package/package.json +1 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
3
|
const vue = require("./vue-DKMj1I9B.cjs");
|
|
4
|
-
const superdoc = require("./index-
|
|
4
|
+
const superdoc = require("./index-ChgYIPZ8.cjs");
|
|
5
5
|
function self(vars) {
|
|
6
6
|
const {
|
|
7
7
|
opacityDisabled,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { m as defineComponent, B as h, O as Transition, $ as process$1, I as watchEffect, d as computed, r as ref, j as onMounted, W as onUnmounted, c as createElementBlock, o as openBlock, a as createBaseVNode, f as createCommentVNode, v as createVNode, x as unref } from "./vue-ZWZLQtoU.es.js";
|
|
2
|
-
import { d as derived, c, a as cB, f as fadeInTransition, b as cM, N as NBaseLoading, w as warnOnce, u as useConfig, e as useTheme, p as pxfy, g as createKey, h as useThemeClass, i as useCompitable, _ as _export_sfc, j as useSuperdocStore, s as storeToRefs, k as useSelection } from "./index-
|
|
2
|
+
import { d as derived, c, a as cB, f as fadeInTransition, b as cM, N as NBaseLoading, w as warnOnce, u as useConfig, e as useTheme, p as pxfy, g as createKey, h as useThemeClass, i as useCompitable, _ as _export_sfc, j as useSuperdocStore, s as storeToRefs, k as useSelection } from "./index-DtXgSPMT.es.js";
|
|
3
3
|
function self(vars) {
|
|
4
4
|
const {
|
|
5
5
|
opacityDisabled,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
const superEditor_es = require("./super-editor.es-
|
|
2
|
+
const superEditor_es = require("./super-editor.es-B-E_YaLO.cjs");
|
|
3
3
|
const vue = require("./vue-DKMj1I9B.cjs");
|
|
4
4
|
const blankDocx = require("./blank-docx-DfW3Eeh2.cjs");
|
|
5
5
|
const eventemitter3 = require("./eventemitter3-DkXkH2rT.cjs");
|
|
@@ -17164,7 +17164,7 @@ const _sfc_main = {
|
|
|
17164
17164
|
__name: "SuperDoc",
|
|
17165
17165
|
emits: ["selection-update"],
|
|
17166
17166
|
setup(__props, { emit: __emit }) {
|
|
17167
|
-
const PdfViewer = vue.defineAsyncComponent(() => Promise.resolve().then(() => require("./PdfViewer-
|
|
17167
|
+
const PdfViewer = vue.defineAsyncComponent(() => Promise.resolve().then(() => require("./PdfViewer-CEc5ST9t.cjs")));
|
|
17168
17168
|
const superdocStore = useSuperdocStore();
|
|
17169
17169
|
const commentsStore = useCommentsStore();
|
|
17170
17170
|
const {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { q as index, C as CommentsPluginKey, h as TrackChangesBasePluginKey, E as Editor, n as getRichTextExtensions, f as SuperInput, e as SuperEditor, A as AIWriter, g as SuperToolbar, i as createZip } from "./super-editor.es
|
|
1
|
+
import { q as index, C as CommentsPluginKey, h as TrackChangesBasePluginKey, E as Editor, n as getRichTextExtensions, f as SuperInput, e as SuperEditor, A as AIWriter, g as SuperToolbar, i as createZip } from "./super-editor.es-BePxEtE8.es.js";
|
|
2
2
|
import { a0 as effectScope, r as ref, _ as markRaw, $ as process$1, a1 as toRaw, d as computed, a2 as isRef, a3 as isReactive, C as toRef, i as inject, p as getCurrentInstance, l as watch, x as unref, a4 as hasInjectionContext, M as reactive, s as nextTick, a5 as getCurrentScope, a6 as onScopeDispose, a7 as toRefs, g as global$1, J as shallowRef, N as readonly, j as onMounted, k as onBeforeUnmount, h as onBeforeMount, S as onActivated, q as onDeactivated, z as createTextVNode, F as Fragment, Q as Comment, m as defineComponent, D as provide, H as withDirectives, B as h, U as Teleport, R as renderSlot, V as isVNode, I as watchEffect, O as Transition, a8 as TransitionGroup, E as mergeProps, P as vShow, G as cloneVNode, T as Text, c as createElementBlock, o as openBlock, t as toDisplayString, v as createVNode, y as withCtx, a as createBaseVNode, A as normalizeStyle, f as createCommentVNode, u as createBlock, w as withModifiers, n as normalizeClass, a9 as resolveDirective, e as renderList, b as createApp, X as resolveDynamicComponent, aa as defineAsyncComponent } from "./vue-ZWZLQtoU.es.js";
|
|
3
3
|
import { B as BlankDOCX } from "./blank-docx-ABm6XYAA.es.js";
|
|
4
4
|
import { E as EventEmitter } from "./eventemitter3-BWEnUdTY.es.js";
|
|
@@ -17147,7 +17147,7 @@ const _sfc_main = {
|
|
|
17147
17147
|
__name: "SuperDoc",
|
|
17148
17148
|
emits: ["selection-update"],
|
|
17149
17149
|
setup(__props, { emit: __emit }) {
|
|
17150
|
-
const PdfViewer = defineAsyncComponent(() => import("./PdfViewer-
|
|
17150
|
+
const PdfViewer = defineAsyncComponent(() => import("./PdfViewer-CoEXViCu.es.js"));
|
|
17151
17151
|
const superdocStore = useSuperdocStore();
|
|
17152
17152
|
const commentsStore = useCommentsStore();
|
|
17153
17153
|
const {
|
|
@@ -49354,7 +49354,7 @@ const markInsertion = ({ tr, from: from2, to, user, date }) => {
|
|
|
49354
49354
|
});
|
|
49355
49355
|
return insertionMark;
|
|
49356
49356
|
};
|
|
49357
|
-
const markDeletion = ({ tr, from: from2, to, user, date }) => {
|
|
49357
|
+
const markDeletion = ({ tr, from: from2, to, user, date, id: providedId }) => {
|
|
49358
49358
|
let trackedMark = findTrackedMarkBetween({
|
|
49359
49359
|
tr,
|
|
49360
49360
|
from: from2,
|
|
@@ -49363,7 +49363,9 @@ const markDeletion = ({ tr, from: from2, to, user, date }) => {
|
|
|
49363
49363
|
attrs: { authorEmail: user.email }
|
|
49364
49364
|
});
|
|
49365
49365
|
let id;
|
|
49366
|
-
if (
|
|
49366
|
+
if (providedId) {
|
|
49367
|
+
id = providedId;
|
|
49368
|
+
} else if (trackedMark) {
|
|
49367
49369
|
id = trackedMark.mark.attrs.id;
|
|
49368
49370
|
} else {
|
|
49369
49371
|
id = v4();
|
|
@@ -50635,7 +50637,8 @@ const replaceStep = ({ state: state2, tr, step, newTr, map: map22, user, date, o
|
|
|
50635
50637
|
from: step.from,
|
|
50636
50638
|
to: step.to,
|
|
50637
50639
|
user,
|
|
50638
|
-
date
|
|
50640
|
+
date,
|
|
50641
|
+
id: meta.insertedMark?.attrs?.id
|
|
50639
50642
|
});
|
|
50640
50643
|
meta.deletionNodes = deletionNodes;
|
|
50641
50644
|
meta.deletionMark = deletionMark2;
|
|
@@ -49337,7 +49337,7 @@ const markInsertion = ({ tr, from: from2, to, user, date }) => {
|
|
|
49337
49337
|
});
|
|
49338
49338
|
return insertionMark;
|
|
49339
49339
|
};
|
|
49340
|
-
const markDeletion = ({ tr, from: from2, to, user, date }) => {
|
|
49340
|
+
const markDeletion = ({ tr, from: from2, to, user, date, id: providedId }) => {
|
|
49341
49341
|
let trackedMark = findTrackedMarkBetween({
|
|
49342
49342
|
tr,
|
|
49343
49343
|
from: from2,
|
|
@@ -49346,7 +49346,9 @@ const markDeletion = ({ tr, from: from2, to, user, date }) => {
|
|
|
49346
49346
|
attrs: { authorEmail: user.email }
|
|
49347
49347
|
});
|
|
49348
49348
|
let id;
|
|
49349
|
-
if (
|
|
49349
|
+
if (providedId) {
|
|
49350
|
+
id = providedId;
|
|
49351
|
+
} else if (trackedMark) {
|
|
49350
49352
|
id = trackedMark.mark.attrs.id;
|
|
49351
49353
|
} else {
|
|
49352
49354
|
id = v4();
|
|
@@ -50618,7 +50620,8 @@ const replaceStep = ({ state: state2, tr, step, newTr, map: map22, user, date, o
|
|
|
50618
50620
|
from: step.from,
|
|
50619
50621
|
to: step.to,
|
|
50620
50622
|
user,
|
|
50621
|
-
date
|
|
50623
|
+
date,
|
|
50624
|
+
id: meta.insertedMark?.attrs?.id
|
|
50622
50625
|
});
|
|
50623
50626
|
meta.deletionNodes = deletionNodes;
|
|
50624
50627
|
meta.deletionMark = deletionMark2;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/core/types/index.js"],"names":[],"mappings":";;;;;;;UAEc,MAAM;;;;WACN,MAAM;;;;YACN,MAAM,GAAG,IAAI;;;;;;;;;cAKb,OAAO;;;;iBACP,MAAM;;;;eACN,MAAM;;;;sBACN,MAAM;;;;;;SAKN,MAAM;;;;UACN,MAAM;;;;WACN,IAAI,GAAG,IAAI,GAAG,IAAI;;;;WAClB,MAAM;;;;UACN,MAAM;;;;gBACN,OAAO;;;;WACP,OAAO,KAAK,EAAE,GAAG;;;;eACjB,OAAO,sBAAsB,EAAE,kBAAkB;;;;;;eAM5D;QAQqC,kBAAkB,GAR5C,CAAC,M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E,KAAK,EAAE,KAAK,CAAA;KAAE,KAAK,IAAI;;;;2BAClC,CAAC,MAAM,EAAE;QAAE,UAAU,EAAE,OAAO,CAAA;KAAE,KAAK,IAAI;;;;8BACzC,CAAC,MAAM,EAAE,EAAE,KAAC,GAAA;;;;aACZ,MAAM;;;;uBACN,KAAQ;;;;iBACR,OAAO;;;;YACP,MAAM;;;;oBACN,KAAQ;;;;eACR,OAAO;;;;wBACP,CAAS,IAAI,EAAJ,IAAI,KAAG,OAAO,CAAC,MAAM,CAAC;;;;eAC/B,IAAI;;;;aACJ,OAAO;;;;gCACP,OAAO;;;;;;;;yBAEP,OAAO;;;;WACP,MAAM;;;;eACN,MAAM;;;;cACN,OAAO"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ref, onMounted, onUnmounted, computed, createElementBlock, openBlock, withModifiers, createElementVNode, withDirectives, unref, vModelText, createCommentVNode, nextTick } from "vue";
|
|
2
2
|
import { T as TextSelection } from "./chunks/converter-gSy6s2VK.js";
|
|
3
|
-
import { _ as _export_sfc } from "./chunks/editor-
|
|
3
|
+
import { _ as _export_sfc } from "./chunks/editor-yaef8OIs.js";
|
|
4
4
|
const DEFAULT_API_ENDPOINT = "https://sd-dev-express-gateway-i6xtm.ondigitalocean.app/insights";
|
|
5
5
|
const SYSTEM_PROMPT = "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: ";
|
|
6
6
|
async function baseInsightsFetch(payload, options = {}) {
|
|
@@ -11034,7 +11034,7 @@ const markInsertion = ({ tr, from: from2, to, user, date }) => {
|
|
|
11034
11034
|
});
|
|
11035
11035
|
return insertionMark;
|
|
11036
11036
|
};
|
|
11037
|
-
const markDeletion = ({ tr, from: from2, to, user, date }) => {
|
|
11037
|
+
const markDeletion = ({ tr, from: from2, to, user, date, id: providedId }) => {
|
|
11038
11038
|
let trackedMark = findTrackedMarkBetween({
|
|
11039
11039
|
tr,
|
|
11040
11040
|
from: from2,
|
|
@@ -11043,7 +11043,9 @@ const markDeletion = ({ tr, from: from2, to, user, date }) => {
|
|
|
11043
11043
|
attrs: { authorEmail: user.email }
|
|
11044
11044
|
});
|
|
11045
11045
|
let id;
|
|
11046
|
-
if (
|
|
11046
|
+
if (providedId) {
|
|
11047
|
+
id = providedId;
|
|
11048
|
+
} else if (trackedMark) {
|
|
11047
11049
|
id = trackedMark.mark.attrs.id;
|
|
11048
11050
|
} else {
|
|
11049
11051
|
id = v4();
|
|
@@ -12315,7 +12317,8 @@ const replaceStep = ({ state, tr, step, newTr, map: map2, user, date, originalSt
|
|
|
12315
12317
|
from: step.from,
|
|
12316
12318
|
to: step.to,
|
|
12317
12319
|
user,
|
|
12318
|
-
date
|
|
12320
|
+
date,
|
|
12321
|
+
id: meta.insertedMark?.attrs?.id
|
|
12319
12322
|
});
|
|
12320
12323
|
meta.deletionNodes = deletionNodes;
|
|
12321
12324
|
meta.deletionMark = deletionMark2;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { computed, createElementBlock, openBlock, createElementVNode, createCommentVNode, normalizeClass, normalizeStyle, ref, withKeys, unref, withModifiers, createBlock, toDisplayString, withDirectives, vModelText, nextTick, getCurrentInstance, createVNode, readonly, watch, onMounted, onBeforeUnmount, reactive, onBeforeMount, inject, onActivated, onDeactivated, createTextVNode, Fragment, Comment, defineComponent, provide, h, Teleport, toRef, renderSlot, isVNode, shallowRef, watchEffect, mergeProps, Transition, vShow, cloneVNode, Text, renderList, withCtx } from "vue";
|
|
2
2
|
import { p as process$1 } from "./converter-gSy6s2VK.js";
|
|
3
|
-
import { _ as _export_sfc, u as useHighContrastMode, g as global$1 } from "./editor-
|
|
3
|
+
import { _ as _export_sfc, u as useHighContrastMode, g as global$1 } from "./editor-yaef8OIs.js";
|
|
4
4
|
const sanitizeNumber = (value, defaultNumber) => {
|
|
5
5
|
let sanitized = value.replace(/[^0-9.]/g, "");
|
|
6
6
|
sanitized = parseFloat(sanitized);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export function markDeletion({ tr, from, to, user, date }: Transaction): any;
|
|
1
|
+
export function markDeletion({ tr, from, to, user, date, id: providedId }: Transaction): any;
|
|
@@ -11,10 +11,10 @@ var __privateMethod = (obj, member, method) => (__accessCheck(obj, member, "acce
|
|
|
11
11
|
var _SuperToolbar_instances, initToolbarGroups_fn, _interceptedCommands, makeToolbarItems_fn, initDefaultFonts_fn, updateHighlightColors_fn, deactivateAll_fn, updateToolbarHistory_fn, enrichTrackedChanges_fn, runCommandWithArgumentOnly_fn;
|
|
12
12
|
import { aA as getDefaultExportFromCjs, V as v4, T as TextSelection$1, v as getMarkRange, aD as vClickOutside, H as findParentNode, aE as getActiveFormatting, av as isInTable, aF as readFromClipboard, aG as handleClipboardPaste, aH as getFileObject, aI as runPropertyTranslators, aJ as translator, aK as translator$1, aL as translator$2, aM as translator$3, aN as translator$4, aO as translator$5, aP as translator$6, aQ as translator$7, aR as translator$8, aS as translator$9, aT as translator$a, aU as translator$b, aV as translator$c, aW as translator$d, aX as translator$e, aY as commentRangeEndTranslator, aZ as commentRangeStartTranslator, a_ as translator$f, a$ as translator$g, b0 as translator$h, b1 as translator$i, b2 as translator$j, b3 as translator$k, b4 as translator$l, b5 as translator$m, b6 as translator$n, b7 as translator$o, b8 as translator$p, b9 as translator$q, ba as translator$r, bb as translator$s, bc as translator$t, bd as translator$u, be as translator$v, bf as translator$w, bg as translator$x, bh as translator$y, bi as translator$z, bj as translator$A, bk as translator$B, bl as translator$C, bm as translator$D, bn as translator$E, bo as translator$F, bp as translator$G, bq as translator$H, br as translator$I, bs as translator$J, bt as translator$K, bu as translator$L, bv as translator$M, bw as translator$N, bx as translator$O, by as translator$P, bz as translator$Q, bA as translator$R, bB as translator$S, bC as translator$T, bD as translator$U, bE as translator$V, bF as translator$W, bG as translator$X, bH as translator$Y, bI as translator$Z, bJ as translator$_, bK as translator$$, bL as translator$10, bM as translator$11, bN as translator$12, bO as translator$13, bP as translator$14, bQ as translator$15, bR as translator$16, bS as translator$17, bT as translator$18, bU as translator$19, bV as translator$1a, bW as translator$1b, bX as translator$1c, bY as translator$1d, bZ as translator$1e, b_ as translator$1f, b$ as translator$1g, c0 as translator$1h, a as Plugin } from "./chunks/converter-gSy6s2VK.js";
|
|
13
13
|
import { c1, a5, i, a2 } from "./chunks/converter-gSy6s2VK.js";
|
|
14
|
-
import { _ as _export_sfc, u as useHighContrastMode, a as getQuickFormatList, b as generateLinkedStyleString, c as getFileOpener, d as checkAndProcessImage, r as replaceSelectionWithImagePlaceholder, e as uploadAndInsertImage, f as collectTrackedChanges, i as isTrackedChangeActionAllowed, y as yUndoPluginKey, h as undoDepth, j as redoDepth, k as collectTrackedChangesForContext, s as shouldBypassContextMenu, S as SlashMenuPluginKey, E as Editor, l as getStarterExtensions, P as Placeholder, m as getRichTextExtensions, M as Mark, n as Extension, A as Attribute, N as Node } from "./chunks/editor-
|
|
15
|
-
import { q, C, t, T, o, v, p } from "./chunks/editor-
|
|
14
|
+
import { _ as _export_sfc, u as useHighContrastMode, a as getQuickFormatList, b as generateLinkedStyleString, c as getFileOpener, d as checkAndProcessImage, r as replaceSelectionWithImagePlaceholder, e as uploadAndInsertImage, f as collectTrackedChanges, i as isTrackedChangeActionAllowed, y as yUndoPluginKey, h as undoDepth, j as redoDepth, k as collectTrackedChangesForContext, s as shouldBypassContextMenu, S as SlashMenuPluginKey, E as Editor, l as getStarterExtensions, P as Placeholder, m as getRichTextExtensions, M as Mark, n as Extension, A as Attribute, N as Node } from "./chunks/editor-yaef8OIs.js";
|
|
15
|
+
import { q, C, t, T, o, v, p } from "./chunks/editor-yaef8OIs.js";
|
|
16
16
|
import { ref, onMounted, createElementBlock, openBlock, normalizeClass, unref, Fragment, renderList, createElementVNode, withModifiers, toDisplayString, createCommentVNode, normalizeStyle, computed, watch, withDirectives, withKeys, vModelText, createTextVNode, createVNode, h, createApp, markRaw, nextTick, onBeforeUnmount, reactive, onUnmounted, renderSlot, shallowRef, createBlock, withCtx, resolveDynamicComponent, normalizeProps, guardReactiveProps } from "vue";
|
|
17
|
-
import { t as toolbarIcons, s as sanitizeNumber, T as Toolbar, p as plusIconSvg, a as trashIconSvg, b as borderNoneIconSvg, c as arrowsToDotIconSvg, d as arrowsLeftRightIconSvg, w as wrenchIconSvg, m as magicWandIcon, e as checkIconSvg$1, x as xMarkIconSvg, l as linkIconSvg, f as tableIconSvg, g as scissorsIconSvg, h as copyIconSvg, i as pasteIconSvg, u as useMessage, N as NSkeleton } from "./chunks/toolbar-
|
|
17
|
+
import { t as toolbarIcons, s as sanitizeNumber, T as Toolbar, p as plusIconSvg, a as trashIconSvg, b as borderNoneIconSvg, c as arrowsToDotIconSvg, d as arrowsLeftRightIconSvg, w as wrenchIconSvg, m as magicWandIcon, e as checkIconSvg$1, x as xMarkIconSvg, l as linkIconSvg, f as tableIconSvg, g as scissorsIconSvg, h as copyIconSvg, i as pasteIconSvg, u as useMessage, N as NSkeleton } from "./chunks/toolbar-Dc5uyyIp.js";
|
|
18
18
|
import AIWriter from "./ai-writer.es.js";
|
|
19
19
|
import { D } from "./chunks/docx-zipper-CceGxV02.js";
|
|
20
20
|
import { createZip } from "./file-zipper.es.js";
|
package/dist/super-editor.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
-
const superEditor_es = require("./chunks/super-editor.es-
|
|
3
|
+
const superEditor_es = require("./chunks/super-editor.es-B-E_YaLO.cjs");
|
|
4
4
|
require("./chunks/vue-DKMj1I9B.cjs");
|
|
5
5
|
exports.AIWriter = superEditor_es.AIWriter;
|
|
6
6
|
exports.AnnotatorHelpers = superEditor_es.AnnotatorHelpers;
|
package/dist/super-editor.es.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { A, a, _, C, D, E, b, S, c, d, e, f, g, T, h, i, j, k, l, m, n, o, p, r, q } from "./chunks/super-editor.es
|
|
1
|
+
import { A, a, _, C, D, E, b, S, c, d, e, f, g, T, h, i, j, k, l, m, n, o, p, r, q } from "./chunks/super-editor.es-BePxEtE8.es.js";
|
|
2
2
|
import "./chunks/vue-ZWZLQtoU.es.js";
|
|
3
3
|
export {
|
|
4
4
|
A as AIWriter,
|
package/dist/superdoc.cjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
-
const superEditor_es = require("./chunks/super-editor.es-
|
|
4
|
-
const superdoc = require("./chunks/index-
|
|
3
|
+
const superEditor_es = require("./chunks/super-editor.es-B-E_YaLO.cjs");
|
|
4
|
+
const superdoc = require("./chunks/index-ChgYIPZ8.cjs");
|
|
5
5
|
require("./chunks/vue-DKMj1I9B.cjs");
|
|
6
6
|
const blankDocx = require("./chunks/blank-docx-DfW3Eeh2.cjs");
|
|
7
7
|
exports.AnnotatorHelpers = superEditor_es.AnnotatorHelpers;
|
package/dist/superdoc.es.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { a, E, b, S, d, i, j, n, r, p, q } from "./chunks/super-editor.es
|
|
2
|
-
import { D, H, P, S as S2, m, l } from "./chunks/index-
|
|
1
|
+
import { a, E, b, S, d, i, j, n, r, p, q } from "./chunks/super-editor.es-BePxEtE8.es.js";
|
|
2
|
+
import { D, H, P, S as S2, m, l } from "./chunks/index-DtXgSPMT.es.js";
|
|
3
3
|
import "./chunks/vue-ZWZLQtoU.es.js";
|
|
4
4
|
import { B } from "./chunks/blank-docx-ABm6XYAA.es.js";
|
|
5
5
|
export {
|
package/dist/superdoc.umd.js
CHANGED
|
@@ -57052,7 +57052,7 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
57052
57052
|
});
|
|
57053
57053
|
return insertionMark;
|
|
57054
57054
|
};
|
|
57055
|
-
const markDeletion = ({ tr, from: from2, to, user, date }) => {
|
|
57055
|
+
const markDeletion = ({ tr, from: from2, to, user, date, id: providedId }) => {
|
|
57056
57056
|
let trackedMark = findTrackedMarkBetween({
|
|
57057
57057
|
tr,
|
|
57058
57058
|
from: from2,
|
|
@@ -57061,7 +57061,9 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
57061
57061
|
attrs: { authorEmail: user.email }
|
|
57062
57062
|
});
|
|
57063
57063
|
let id;
|
|
57064
|
-
if (
|
|
57064
|
+
if (providedId) {
|
|
57065
|
+
id = providedId;
|
|
57066
|
+
} else if (trackedMark) {
|
|
57065
57067
|
id = trackedMark.mark.attrs.id;
|
|
57066
57068
|
} else {
|
|
57067
57069
|
id = v4$1();
|
|
@@ -58333,7 +58335,8 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
58333
58335
|
from: step.from,
|
|
58334
58336
|
to: step.to,
|
|
58335
58337
|
user,
|
|
58336
|
-
date
|
|
58338
|
+
date,
|
|
58339
|
+
id: meta.insertedMark?.attrs?.id
|
|
58337
58340
|
});
|
|
58338
58341
|
meta.deletionNodes = deletionNodes;
|
|
58339
58342
|
meta.deletionMark = deletionMark2;
|