@harbour-enterprises/superdoc 0.23.0-next.10 → 0.23.0-next.11
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-BsnSIYxD.cjs → PdfViewer-CxsRHFKK.cjs} +1 -1
- package/dist/chunks/{PdfViewer-CPZ7QD5u.es.js → PdfViewer-itEb8CY_.es.js} +1 -1
- package/dist/chunks/{index-Cd9h9gMj.es.js → index-CTFsQkQh.es.js} +46 -9
- package/dist/chunks/{index-DOd9uvCv.cjs → index-DO0hDjEd.cjs} +46 -9
- package/dist/chunks/{super-editor.es-DAS3_Nt9.cjs → super-editor.es-Ck_zDasU.cjs} +79 -32
- package/dist/chunks/{super-editor.es-l3dTZlZX.es.js → super-editor.es-D2K5zQwY.es.js} +79 -32
- package/dist/core/types/index.d.ts.map +1 -1
- package/dist/stores/comments-store.d.ts +3 -3
- package/dist/stores/comments-store.d.ts.map +1 -1
- package/dist/style.css +27 -27
- package/dist/super-editor/ai-writer.es.js +1 -1
- package/dist/super-editor/chunks/{editor-B2aHhS9B.js → editor-C3VH8Ia2.js} +79 -32
- package/dist/super-editor/chunks/{toolbar-Cgyf_4bW.js → toolbar-BG1F_1RK.js} +1 -1
- package/dist/super-editor/editor.es.js +1 -1
- package/dist/super-editor/src/extensions/comment/comments-plugin.d.ts +60 -0
- package/dist/super-editor/src/extensions/comment/helpers/index.d.ts +2 -0
- package/dist/super-editor/src/extensions/comment/helpers/normalize-comment-event-payload.d.ts +1 -0
- package/dist/super-editor/src/extensions/comment/helpers/update-position.d.ts +7 -0
- 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 +123 -39
- package/dist/superdoc.umd.js.map +1 -1
- package/package.json +1 -1
package/dist/style.css
CHANGED
|
@@ -2455,46 +2455,46 @@ img[data-v-7dd69850] {
|
|
|
2455
2455
|
box-shadow: 0 0 5px hsla(0, 0%, 0%, 0.05);
|
|
2456
2456
|
}
|
|
2457
2457
|
|
|
2458
|
-
.superdoc[data-v-
|
|
2458
|
+
.superdoc[data-v-96983cf9] {
|
|
2459
2459
|
display: flex;
|
|
2460
2460
|
}
|
|
2461
|
-
.right-sidebar[data-v-
|
|
2461
|
+
.right-sidebar[data-v-96983cf9] {
|
|
2462
2462
|
min-width: 320px;
|
|
2463
2463
|
}
|
|
2464
|
-
.floating-comments[data-v-
|
|
2464
|
+
.floating-comments[data-v-96983cf9] {
|
|
2465
2465
|
min-width: 300px;
|
|
2466
2466
|
width: 300px;
|
|
2467
2467
|
}
|
|
2468
|
-
.superdoc__layers[data-v-
|
|
2468
|
+
.superdoc__layers[data-v-96983cf9] {
|
|
2469
2469
|
height: 100%;
|
|
2470
2470
|
position: relative;
|
|
2471
2471
|
box-sizing: border-box;
|
|
2472
2472
|
}
|
|
2473
|
-
.superdoc__document[data-v-
|
|
2473
|
+
.superdoc__document[data-v-96983cf9] {
|
|
2474
2474
|
width: 100%;
|
|
2475
2475
|
position: relative;
|
|
2476
2476
|
}
|
|
2477
|
-
.superdoc__sub-document[data-v-
|
|
2477
|
+
.superdoc__sub-document[data-v-96983cf9] {
|
|
2478
2478
|
width: 100%;
|
|
2479
2479
|
position: relative;
|
|
2480
2480
|
}
|
|
2481
|
-
.superdoc__selection-layer[data-v-
|
|
2481
|
+
.superdoc__selection-layer[data-v-96983cf9] {
|
|
2482
2482
|
position: absolute;
|
|
2483
2483
|
min-width: 100%;
|
|
2484
2484
|
min-height: 100%;
|
|
2485
2485
|
z-index: 10;
|
|
2486
2486
|
pointer-events: none;
|
|
2487
2487
|
}
|
|
2488
|
-
.superdoc__temp-selection[data-v-
|
|
2488
|
+
.superdoc__temp-selection[data-v-96983cf9] {
|
|
2489
2489
|
position: absolute;
|
|
2490
2490
|
}
|
|
2491
|
-
.superdoc__comments-layer[data-v-
|
|
2491
|
+
.superdoc__comments-layer[data-v-96983cf9] {
|
|
2492
2492
|
/* position: absolute; */
|
|
2493
2493
|
top: 0;
|
|
2494
2494
|
height: 100%;
|
|
2495
2495
|
position: relative;
|
|
2496
2496
|
}
|
|
2497
|
-
.superdoc__right-sidebar[data-v-
|
|
2497
|
+
.superdoc__right-sidebar[data-v-96983cf9] {
|
|
2498
2498
|
width: 320px;
|
|
2499
2499
|
min-width: 320px;
|
|
2500
2500
|
padding: 0 10px;
|
|
@@ -2504,14 +2504,14 @@ img[data-v-7dd69850] {
|
|
|
2504
2504
|
}
|
|
2505
2505
|
|
|
2506
2506
|
/* Tools styles */
|
|
2507
|
-
.tools[data-v-
|
|
2507
|
+
.tools[data-v-96983cf9] {
|
|
2508
2508
|
position: absolute;
|
|
2509
2509
|
z-index: 3;
|
|
2510
2510
|
display: flex;
|
|
2511
2511
|
flex-direction: column;
|
|
2512
2512
|
gap: 6px;
|
|
2513
2513
|
}
|
|
2514
|
-
.tools .tool-icon[data-v-
|
|
2514
|
+
.tools .tool-icon[data-v-96983cf9] {
|
|
2515
2515
|
font-size: 20px;
|
|
2516
2516
|
border-radius: 12px;
|
|
2517
2517
|
border: none;
|
|
@@ -2519,7 +2519,7 @@ img[data-v-7dd69850] {
|
|
|
2519
2519
|
background-color: #dbdbdb;
|
|
2520
2520
|
cursor: pointer;
|
|
2521
2521
|
}
|
|
2522
|
-
.tools-item[data-v-
|
|
2522
|
+
.tools-item[data-v-96983cf9] {
|
|
2523
2523
|
display: flex;
|
|
2524
2524
|
align-items: center;
|
|
2525
2525
|
justify-content: center;
|
|
@@ -2529,10 +2529,10 @@ img[data-v-7dd69850] {
|
|
|
2529
2529
|
border-radius: 12px;
|
|
2530
2530
|
cursor: pointer;
|
|
2531
2531
|
}
|
|
2532
|
-
.tools-item i[data-v-
|
|
2532
|
+
.tools-item i[data-v-96983cf9] {
|
|
2533
2533
|
cursor: pointer;
|
|
2534
2534
|
}
|
|
2535
|
-
.superdoc__tools-icon[data-v-
|
|
2535
|
+
.superdoc__tools-icon[data-v-96983cf9] {
|
|
2536
2536
|
width: 20px;
|
|
2537
2537
|
height: 20px;
|
|
2538
2538
|
flex-shrink: 0;
|
|
@@ -2547,15 +2547,15 @@ img[data-v-7dd69850] {
|
|
|
2547
2547
|
|
|
2548
2548
|
/* 834px is iPad screen size in portrait orientation */
|
|
2549
2549
|
@media (max-width: 834px) {
|
|
2550
|
-
.superdoc .superdoc__layers[data-v-
|
|
2550
|
+
.superdoc .superdoc__layers[data-v-96983cf9] {
|
|
2551
2551
|
margin: 0;
|
|
2552
2552
|
border: 0 !important;
|
|
2553
2553
|
box-shadow: none;
|
|
2554
2554
|
}
|
|
2555
|
-
.superdoc__sub-document[data-v-
|
|
2555
|
+
.superdoc__sub-document[data-v-96983cf9] {
|
|
2556
2556
|
max-width: 100%;
|
|
2557
2557
|
}
|
|
2558
|
-
.superdoc__right-sidebar[data-v-
|
|
2558
|
+
.superdoc__right-sidebar[data-v-96983cf9] {
|
|
2559
2559
|
padding: 10px;
|
|
2560
2560
|
width: 55px;
|
|
2561
2561
|
position: relative;
|
|
@@ -2563,7 +2563,7 @@ img[data-v-7dd69850] {
|
|
|
2563
2563
|
}
|
|
2564
2564
|
|
|
2565
2565
|
/* AI Writer styles */
|
|
2566
|
-
.ai-writer-container[data-v-
|
|
2566
|
+
.ai-writer-container[data-v-96983cf9] {
|
|
2567
2567
|
position: fixed;
|
|
2568
2568
|
z-index: 1000;
|
|
2569
2569
|
background: white;
|
|
@@ -2581,13 +2581,13 @@ img[data-v-7dd69850] {
|
|
|
2581
2581
|
} */
|
|
2582
2582
|
|
|
2583
2583
|
/* Tools styles */
|
|
2584
|
-
.tools[data-v-
|
|
2584
|
+
.tools[data-v-96983cf9] {
|
|
2585
2585
|
position: absolute;
|
|
2586
2586
|
z-index: 3;
|
|
2587
2587
|
display: flex;
|
|
2588
2588
|
gap: 6px;
|
|
2589
2589
|
}
|
|
2590
|
-
.tools .tool-icon[data-v-
|
|
2590
|
+
.tools .tool-icon[data-v-96983cf9] {
|
|
2591
2591
|
font-size: 20px;
|
|
2592
2592
|
border-radius: 12px;
|
|
2593
2593
|
border: none;
|
|
@@ -2595,7 +2595,7 @@ img[data-v-7dd69850] {
|
|
|
2595
2595
|
background-color: #dbdbdb;
|
|
2596
2596
|
cursor: pointer;
|
|
2597
2597
|
}
|
|
2598
|
-
.tools-item[data-v-
|
|
2598
|
+
.tools-item[data-v-96983cf9] {
|
|
2599
2599
|
display: flex;
|
|
2600
2600
|
align-items: center;
|
|
2601
2601
|
justify-content: center;
|
|
@@ -2606,18 +2606,18 @@ img[data-v-7dd69850] {
|
|
|
2606
2606
|
border-radius: 12px;
|
|
2607
2607
|
cursor: pointer;
|
|
2608
2608
|
}
|
|
2609
|
-
.tools-item i[data-v-
|
|
2609
|
+
.tools-item i[data-v-96983cf9] {
|
|
2610
2610
|
cursor: pointer;
|
|
2611
2611
|
}
|
|
2612
|
-
.superdoc__tools-icon[data-v-
|
|
2612
|
+
.superdoc__tools-icon[data-v-96983cf9] {
|
|
2613
2613
|
width: 20px;
|
|
2614
2614
|
height: 20px;
|
|
2615
2615
|
flex-shrink: 0;
|
|
2616
2616
|
}
|
|
2617
|
-
.ai-tool > svg[data-v-
|
|
2617
|
+
.ai-tool > svg[data-v-96983cf9] {
|
|
2618
2618
|
fill: transparent;
|
|
2619
2619
|
}
|
|
2620
|
-
.ai-tool[data-v-
|
|
2620
|
+
.ai-tool[data-v-96983cf9]::before {
|
|
2621
2621
|
content: '';
|
|
2622
2622
|
position: absolute;
|
|
2623
2623
|
width: 20px;
|
|
@@ -2638,7 +2638,7 @@ img[data-v-7dd69850] {
|
|
|
2638
2638
|
filter: brightness(1.2);
|
|
2639
2639
|
transition: filter 0.2s ease;
|
|
2640
2640
|
}
|
|
2641
|
-
.ai-tool[data-v-
|
|
2641
|
+
.ai-tool[data-v-96983cf9]:hover::before {
|
|
2642
2642
|
filter: brightness(1.3);
|
|
2643
2643
|
}
|
|
2644
2644
|
|
|
@@ -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-ClnqoStR.js";
|
|
3
|
-
import { _ as _export_sfc } from "./chunks/editor-
|
|
3
|
+
import { _ as _export_sfc } from "./chunks/editor-C3VH8Ia2.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 = {}) {
|
|
@@ -11706,26 +11706,100 @@ const onHeaderFooterDataUpdate = async ({ editor, transaction }, mainEditor, sec
|
|
|
11706
11706
|
const setEditorToolbar = ({ editor }, mainEditor) => {
|
|
11707
11707
|
editor.setToolbar(mainEditor.toolbar);
|
|
11708
11708
|
};
|
|
11709
|
+
const normalizeCommentEventPayload = ({ conversation, editorOptions, fallbackCommentId, fallbackInternal }) => {
|
|
11710
|
+
const { user, documentId } = editorOptions || {};
|
|
11711
|
+
const normalized = {
|
|
11712
|
+
...conversation,
|
|
11713
|
+
commentId: conversation?.commentId ?? fallbackCommentId,
|
|
11714
|
+
isInternal: conversation?.isInternal ?? fallbackInternal
|
|
11715
|
+
};
|
|
11716
|
+
if (!normalized.commentText && normalized.text) {
|
|
11717
|
+
normalized.commentText = normalized.text;
|
|
11718
|
+
delete normalized.text;
|
|
11719
|
+
}
|
|
11720
|
+
if ("skipEmit" in normalized) delete normalized.skipEmit;
|
|
11721
|
+
if (!normalized.creatorName && user?.name) {
|
|
11722
|
+
normalized.creatorName = user.name;
|
|
11723
|
+
}
|
|
11724
|
+
if (!normalized.creatorEmail && user?.email) {
|
|
11725
|
+
normalized.creatorEmail = user.email;
|
|
11726
|
+
}
|
|
11727
|
+
if (!normalized.createdTime) {
|
|
11728
|
+
normalized.createdTime = Date.now();
|
|
11729
|
+
}
|
|
11730
|
+
if (!normalized.fileId && documentId) {
|
|
11731
|
+
normalized.fileId = documentId;
|
|
11732
|
+
}
|
|
11733
|
+
if (!normalized.documentId && documentId) {
|
|
11734
|
+
normalized.documentId = documentId;
|
|
11735
|
+
}
|
|
11736
|
+
return normalized;
|
|
11737
|
+
};
|
|
11738
|
+
const updatePosition = ({ allCommentPositions, threadId, pos, currentBounds, node }) => {
|
|
11739
|
+
let bounds = {};
|
|
11740
|
+
if (currentBounds instanceof DOMRect) {
|
|
11741
|
+
bounds = {
|
|
11742
|
+
top: currentBounds.top,
|
|
11743
|
+
bottom: currentBounds.bottom,
|
|
11744
|
+
left: currentBounds.left,
|
|
11745
|
+
right: currentBounds.right
|
|
11746
|
+
};
|
|
11747
|
+
} else {
|
|
11748
|
+
bounds = { ...currentBounds };
|
|
11749
|
+
}
|
|
11750
|
+
if (!allCommentPositions[threadId]) {
|
|
11751
|
+
allCommentPositions[threadId] = {
|
|
11752
|
+
threadId,
|
|
11753
|
+
start: pos,
|
|
11754
|
+
end: pos + node.nodeSize,
|
|
11755
|
+
bounds
|
|
11756
|
+
};
|
|
11757
|
+
} else {
|
|
11758
|
+
const existing = allCommentPositions[threadId];
|
|
11759
|
+
existing.start = Math.min(existing.start, pos);
|
|
11760
|
+
existing.end = Math.max(existing.end, pos + node.nodeSize);
|
|
11761
|
+
existing.bounds.top = Math.min(existing.bounds.top, currentBounds.top);
|
|
11762
|
+
existing.bounds.bottom = Math.max(existing.bounds.bottom, currentBounds.bottom);
|
|
11763
|
+
}
|
|
11764
|
+
};
|
|
11709
11765
|
const TRACK_CHANGE_MARKS = [TrackInsertMarkName, TrackDeleteMarkName, TrackFormatMarkName];
|
|
11710
11766
|
const CommentsPluginKey = new PluginKey("comments");
|
|
11711
11767
|
const CommentsPlugin = Extension.create({
|
|
11712
11768
|
name: "comments",
|
|
11713
11769
|
addCommands() {
|
|
11714
11770
|
return {
|
|
11715
|
-
insertComment: (conversation) => ({ tr, dispatch }) => {
|
|
11771
|
+
insertComment: (conversation = {}) => ({ tr, dispatch }) => {
|
|
11716
11772
|
const { selection } = tr;
|
|
11717
11773
|
const { $from, $to } = selection;
|
|
11718
|
-
const
|
|
11774
|
+
const skipEmit = conversation?.skipEmit;
|
|
11775
|
+
const resolvedCommentId = conversation?.commentId ?? v4();
|
|
11776
|
+
const resolvedInternal = conversation?.isInternal ?? false;
|
|
11719
11777
|
tr.setMeta(CommentsPluginKey, { event: "add" });
|
|
11720
11778
|
tr.addMark(
|
|
11721
11779
|
$from.pos,
|
|
11722
11780
|
$to.pos,
|
|
11723
11781
|
this.editor.schema.marks[CommentMarkName].create({
|
|
11724
|
-
commentId,
|
|
11725
|
-
internal:
|
|
11782
|
+
commentId: resolvedCommentId,
|
|
11783
|
+
internal: resolvedInternal
|
|
11726
11784
|
})
|
|
11727
11785
|
);
|
|
11728
|
-
dispatch(tr);
|
|
11786
|
+
if (dispatch) dispatch(tr);
|
|
11787
|
+
const shouldEmit = !skipEmit && resolvedCommentId !== "pending";
|
|
11788
|
+
if (shouldEmit) {
|
|
11789
|
+
const commentPayload = normalizeCommentEventPayload({
|
|
11790
|
+
conversation,
|
|
11791
|
+
editorOptions: this.editor.options,
|
|
11792
|
+
fallbackCommentId: resolvedCommentId,
|
|
11793
|
+
fallbackInternal: resolvedInternal
|
|
11794
|
+
});
|
|
11795
|
+
const activeCommentId = commentPayload.commentId || commentPayload.importedId || null;
|
|
11796
|
+
const event = {
|
|
11797
|
+
type: comments_module_events.ADD,
|
|
11798
|
+
comment: commentPayload,
|
|
11799
|
+
...activeCommentId && { activeCommentId }
|
|
11800
|
+
};
|
|
11801
|
+
this.editor.emit("commentsUpdate", event);
|
|
11802
|
+
}
|
|
11729
11803
|
return true;
|
|
11730
11804
|
},
|
|
11731
11805
|
removeComment: ({ commentId, importedId }) => ({ tr, dispatch, state }) => {
|
|
@@ -11961,33 +12035,6 @@ const CommentsPlugin = Extension.create({
|
|
|
11961
12035
|
return [commentsPlugin];
|
|
11962
12036
|
}
|
|
11963
12037
|
});
|
|
11964
|
-
const updatePosition = ({ allCommentPositions, threadId, pos, currentBounds, node }) => {
|
|
11965
|
-
let bounds = {};
|
|
11966
|
-
if (currentBounds instanceof DOMRect) {
|
|
11967
|
-
bounds = {
|
|
11968
|
-
top: currentBounds.top,
|
|
11969
|
-
bottom: currentBounds.bottom,
|
|
11970
|
-
left: currentBounds.left,
|
|
11971
|
-
right: currentBounds.right
|
|
11972
|
-
};
|
|
11973
|
-
} else {
|
|
11974
|
-
bounds = { ...currentBounds };
|
|
11975
|
-
}
|
|
11976
|
-
if (!allCommentPositions[threadId]) {
|
|
11977
|
-
allCommentPositions[threadId] = {
|
|
11978
|
-
threadId,
|
|
11979
|
-
start: pos,
|
|
11980
|
-
end: pos + node.nodeSize,
|
|
11981
|
-
bounds
|
|
11982
|
-
};
|
|
11983
|
-
} else {
|
|
11984
|
-
const existing = allCommentPositions[threadId];
|
|
11985
|
-
existing.start = Math.min(existing.start, pos);
|
|
11986
|
-
existing.end = Math.max(existing.end, pos + node.nodeSize);
|
|
11987
|
-
existing.bounds.top = Math.min(existing.bounds.top, currentBounds.top);
|
|
11988
|
-
existing.bounds.bottom = Math.max(existing.bounds.bottom, currentBounds.bottom);
|
|
11989
|
-
}
|
|
11990
|
-
};
|
|
11991
12038
|
const getActiveCommentId = (doc2, selection) => {
|
|
11992
12039
|
if (!selection) return;
|
|
11993
12040
|
const { $from, $to } = selection;
|
|
@@ -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-ClnqoStR.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-C3VH8Ia2.js";
|
|
4
4
|
const sanitizeNumber = (value, defaultNumber) => {
|
|
5
5
|
let sanitized = value.replace(/[^0-9.]/g, "");
|
|
6
6
|
sanitized = parseFloat(sanitized);
|
|
@@ -1,4 +1,64 @@
|
|
|
1
1
|
export const CommentsPluginKey: PluginKey<any>;
|
|
2
2
|
export const CommentsPlugin: Extension;
|
|
3
|
+
export namespace __test__ {
|
|
4
|
+
export { getActiveCommentId };
|
|
5
|
+
export { findTrackedMark };
|
|
6
|
+
export { handleTrackedChangeTransaction };
|
|
7
|
+
export { getTrackedChangeText };
|
|
8
|
+
export { createOrUpdateTrackedChangeComment };
|
|
9
|
+
export { findRangeById };
|
|
10
|
+
}
|
|
3
11
|
import { PluginKey } from 'prosemirror-state';
|
|
4
12
|
import { Extension } from '@core/Extension.js';
|
|
13
|
+
/**
|
|
14
|
+
* This is run when a new selection is set (tr.selectionSet) to return the active comment ID, if any
|
|
15
|
+
* If there are multiple, only return the first one
|
|
16
|
+
*
|
|
17
|
+
* @param {Object} doc The current document
|
|
18
|
+
* @param {Selection} selection The current selection
|
|
19
|
+
* @returns {String | null} The active comment ID, if any
|
|
20
|
+
*/
|
|
21
|
+
declare function getActiveCommentId(doc: any, selection: Selection): string | null;
|
|
22
|
+
declare function findTrackedMark({ doc, from, to, offset, }: {
|
|
23
|
+
doc: any;
|
|
24
|
+
from: any;
|
|
25
|
+
to: any;
|
|
26
|
+
offset?: number;
|
|
27
|
+
}): undefined;
|
|
28
|
+
declare function handleTrackedChangeTransaction(trackedChangeMeta: any, trackedChanges: any, newEditorState: any, editor: any): any;
|
|
29
|
+
declare function getTrackedChangeText({ nodes, mark, trackedChangeType, isDeletionInsertion }: {
|
|
30
|
+
nodes: any;
|
|
31
|
+
mark: any;
|
|
32
|
+
trackedChangeType: any;
|
|
33
|
+
isDeletionInsertion: any;
|
|
34
|
+
}): {
|
|
35
|
+
deletionText: string;
|
|
36
|
+
trackedChangeText: string;
|
|
37
|
+
};
|
|
38
|
+
declare function createOrUpdateTrackedChangeComment({ event, marks, deletionNodes, nodes, newEditorState, documentId }: {
|
|
39
|
+
event: any;
|
|
40
|
+
marks: any;
|
|
41
|
+
deletionNodes: any;
|
|
42
|
+
nodes: any;
|
|
43
|
+
newEditorState: any;
|
|
44
|
+
documentId: any;
|
|
45
|
+
}): {
|
|
46
|
+
importedAuthor: {
|
|
47
|
+
name: any;
|
|
48
|
+
};
|
|
49
|
+
event: "add";
|
|
50
|
+
type: string;
|
|
51
|
+
documentId: any;
|
|
52
|
+
changeId: any;
|
|
53
|
+
trackedChangeType: any;
|
|
54
|
+
trackedChangeText: string;
|
|
55
|
+
deletedText: string;
|
|
56
|
+
author: any;
|
|
57
|
+
authorEmail: any;
|
|
58
|
+
date: any;
|
|
59
|
+
};
|
|
60
|
+
declare function findRangeById(doc: any, id: any): {
|
|
61
|
+
from: any;
|
|
62
|
+
to: any;
|
|
63
|
+
};
|
|
64
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export function normalizeCommentEventPayload({ conversation, editorOptions, fallbackCommentId, fallbackInternal }: any): 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, runCommandWithArgumentOnly_fn;
|
|
12
12
|
import { ax as getDefaultExportFromCjs, V as v4, T as TextSelection$1, v as getMarkRange, aA as vClickOutside, H as findParentNode, aB as getActiveFormatting, at as isInTable, aC as readFromClipboard, aD as handleClipboardPaste, aE as getFileObject, aF as runPropertyTranslators, aG as translator, aH as translator$1, aI as translator$2, aJ as translator$3, aK as translator$4, aL as translator$5, aM as translator$6, aN as translator$7, aO as translator$8, aP as translator$9, aQ as translator$a, aR as translator$b, aS as translator$c, aT as translator$d, aU as translator$e, aV as translator$f, aW as translator$g, aX as translator$h, aY as translator$i, aZ as translator$j, a_ as translator$k, a$ as translator$l, b0 as translator$m, b1 as translator$n, b2 as translator$o, b3 as translator$p, b4 as translator$q, b5 as translator$r, b6 as translator$s, b7 as translator$t, b8 as translator$u, b9 as translator$v, ba as translator$w, bb as translator$x, bc as translator$y, bd as translator$z, be as translator$A, bf as translator$B, bg as translator$C, bh as translator$D, bi as translator$E, bj as translator$F, bk as translator$G, bl as translator$H, bm as translator$I, bn as translator$J, bo as translator$K, bp as translator$L, bq as translator$M, br as translator$N, bs as translator$O, bt as translator$P, bu as translator$Q, bv as translator$R, bw as translator$S, bx as translator$T, by as translator$U, bz as translator$V, bA as translator$W, bB as translator$X, bC as translator$Y, bD as translator$Z, bE as translator$_, bF as translator$$, bG as translator$10, bH as translator$11, bI as translator$12, a as Plugin } from "./chunks/converter-ClnqoStR.js";
|
|
13
13
|
import { bJ, a5, i, a2 } from "./chunks/converter-ClnqoStR.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, y as yUndoPluginKey, f as undoDepth, h as redoDepth, s as shouldBypassContextMenu, S as SlashMenuPluginKey, E as Editor, i as getStarterExtensions, P as Placeholder, j as getRichTextExtensions, M as Mark, k as Extension, A as Attribute, N as Node } from "./chunks/editor-
|
|
15
|
-
import { n, C, o, T, l, p, m } 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, y as yUndoPluginKey, f as undoDepth, h as redoDepth, s as shouldBypassContextMenu, S as SlashMenuPluginKey, E as Editor, i as getStarterExtensions, P as Placeholder, j as getRichTextExtensions, M as Mark, k as Extension, A as Attribute, N as Node } from "./chunks/editor-C3VH8Ia2.js";
|
|
15
|
+
import { n, C, o, T, l, p, m } from "./chunks/editor-C3VH8Ia2.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, m as magicWandIcon, p as plusIconSvg, a as trashIconSvg, l as linkIconSvg, b as tableIconSvg, c as scissorsIconSvg, d as copyIconSvg, e as pasteIconSvg, f as borderNoneIconSvg, g as arrowsToDotIconSvg, h as arrowsLeftRightIconSvg, w as wrenchIconSvg, u as useMessage, N as NSkeleton } from "./chunks/toolbar-
|
|
17
|
+
import { t as toolbarIcons, s as sanitizeNumber, T as Toolbar, m as magicWandIcon, p as plusIconSvg, a as trashIconSvg, l as linkIconSvg, b as tableIconSvg, c as scissorsIconSvg, d as copyIconSvg, e as pasteIconSvg, f as borderNoneIconSvg, g as arrowsToDotIconSvg, h as arrowsLeftRightIconSvg, w as wrenchIconSvg, u as useMessage, N as NSkeleton } from "./chunks/toolbar-BG1F_1RK.js";
|
|
18
18
|
import AIWriter from "./ai-writer.es.js";
|
|
19
19
|
import { D } from "./chunks/docx-zipper-DC28ucAi.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-Ck_zDasU.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-D2K5zQwY.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-Ck_zDasU.cjs");
|
|
4
|
+
const superdoc = require("./chunks/index-DO0hDjEd.cjs");
|
|
5
5
|
require("./chunks/vue-DKMj1I9B.cjs");
|
|
6
6
|
require("./chunks/jszip-B4LDL19y.cjs");
|
|
7
7
|
const blankDocx = require("./chunks/blank-docx-CPqX9RF5.cjs");
|
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-D2K5zQwY.es.js";
|
|
2
|
+
import { D, H, P, S as S2, m, l } from "./chunks/index-CTFsQkQh.es.js";
|
|
3
3
|
import "./chunks/vue-ZWZLQtoU.es.js";
|
|
4
4
|
import "./chunks/jszip-DAXEPCUv.es.js";
|
|
5
5
|
import { B } from "./chunks/blank-docx-iwdyG9RH.es.js";
|