@superdoc-dev/mcp 0.3.0-next.88 → 0.3.0-next.89
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/index.js +50 -8
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -147420,7 +147420,7 @@ var init_decrypt_docx_4kQ488M9_es = __esm(() => {
|
|
|
147420
147420
|
]);
|
|
147421
147421
|
});
|
|
147422
147422
|
|
|
147423
|
-
// ../../packages/superdoc/dist/chunks/DocxZipper-
|
|
147423
|
+
// ../../packages/superdoc/dist/chunks/DocxZipper-TPSo9G36.es.js
|
|
147424
147424
|
function sniffEncoding(u8) {
|
|
147425
147425
|
if (u8.length >= 2) {
|
|
147426
147426
|
const b0 = u8[0], b1 = u8[1];
|
|
@@ -148080,7 +148080,7 @@ var DOCX = "application/vnd.openxmlformats-officedocument.wordprocessingml.docum
|
|
|
148080
148080
|
return `image/${MIME_TYPE_FOR_EXT[detectedType] || detectedType}`;
|
|
148081
148081
|
}
|
|
148082
148082
|
}, DocxZipper_default;
|
|
148083
|
-
var
|
|
148083
|
+
var init_DocxZipper_TPSo9G36_es = __esm(() => {
|
|
148084
148084
|
init_rolldown_runtime_Bg48TavK_es();
|
|
148085
148085
|
init_jszip_C49i9kUs_es();
|
|
148086
148086
|
init_xml_js_CqGKpaft_es();
|
|
@@ -148135,7 +148135,8 @@ var init_DocxZipper_Dh4RtvcE_es = __esm(() => {
|
|
|
148135
148135
|
]);
|
|
148136
148136
|
MIME_TYPE_FOR_EXT = {
|
|
148137
148137
|
tif: "tiff",
|
|
148138
|
-
jpg: "jpeg"
|
|
148138
|
+
jpg: "jpeg",
|
|
148139
|
+
svg: "svg+xml"
|
|
148139
148140
|
};
|
|
148140
148141
|
FONT_CONTENT_TYPES = {
|
|
148141
148142
|
odttf: "application/vnd.openxmlformats-officedocument.obfuscatedFont",
|
|
@@ -200191,7 +200192,7 @@ var init_remark_gfm_eZN6yzWQ_es = __esm(() => {
|
|
|
200191
200192
|
init_remark_gfm_BhnWr3yf_es();
|
|
200192
200193
|
});
|
|
200193
200194
|
|
|
200194
|
-
// ../../packages/superdoc/dist/chunks/src-
|
|
200195
|
+
// ../../packages/superdoc/dist/chunks/src-BfDVvw9H.es.js
|
|
200195
200196
|
function deleteProps(obj, propOrProps) {
|
|
200196
200197
|
const props = typeof propOrProps === "string" ? [propOrProps] : propOrProps;
|
|
200197
200198
|
const removeNested = (target, pathParts, index2 = 0) => {
|
|
@@ -203114,6 +203115,15 @@ function shallowEqual$2(a2, b$1) {
|
|
|
203114
203115
|
return false;
|
|
203115
203116
|
return true;
|
|
203116
203117
|
}
|
|
203118
|
+
function isSdtContentFullyLocked(node2) {
|
|
203119
|
+
return node2.attrs.lockMode === "sdtContentLocked";
|
|
203120
|
+
}
|
|
203121
|
+
function findAncestorDepth$1($pos, predicate) {
|
|
203122
|
+
for (let depth = $pos.depth;depth > 0; depth -= 1)
|
|
203123
|
+
if (predicate($pos.node(depth)))
|
|
203124
|
+
return depth;
|
|
203125
|
+
return null;
|
|
203126
|
+
}
|
|
203117
203127
|
function deleteFromEndOfRun(state, dispatch, $pos) {
|
|
203118
203128
|
const rightRun = state.doc.nodeAt($pos.pos + 1);
|
|
203119
203129
|
const $afterRightRunPos = state.doc.resolve($pos.pos + 2 + rightRun.nodeSize);
|
|
@@ -267912,6 +267922,35 @@ var Node$13 = class Node$14 {
|
|
|
267912
267922
|
dispatch(tr.scrollIntoView());
|
|
267913
267923
|
}
|
|
267914
267924
|
return true;
|
|
267925
|
+
}, deleteBlockSdtAtTextBlockStart = () => ({ state, dispatch }) => {
|
|
267926
|
+
const { selection } = state;
|
|
267927
|
+
if (!selection.empty)
|
|
267928
|
+
return false;
|
|
267929
|
+
const { $from } = selection;
|
|
267930
|
+
const sdtDepth = findAncestorDepth$1($from, (node2) => node2.type.name === "structuredContentBlock");
|
|
267931
|
+
if (sdtDepth == null)
|
|
267932
|
+
return false;
|
|
267933
|
+
const textblockDepth = findAncestorDepth$1($from, (node2) => node2.isTextblock);
|
|
267934
|
+
if (textblockDepth !== sdtDepth + 1)
|
|
267935
|
+
return false;
|
|
267936
|
+
if ($from.node(textblockDepth).type.name !== "paragraph")
|
|
267937
|
+
return false;
|
|
267938
|
+
if ($from.pos !== $from.start(textblockDepth))
|
|
267939
|
+
return false;
|
|
267940
|
+
if ($from.before(textblockDepth) !== $from.start(sdtDepth))
|
|
267941
|
+
return false;
|
|
267942
|
+
const sdtNode = $from.node(sdtDepth);
|
|
267943
|
+
if (sdtNode.attrs.lockMode === "sdtLocked")
|
|
267944
|
+
return false;
|
|
267945
|
+
if (isSdtContentFullyLocked(sdtNode))
|
|
267946
|
+
return true;
|
|
267947
|
+
if (dispatch) {
|
|
267948
|
+
const from$1 = $from.before(sdtDepth);
|
|
267949
|
+
const tr = state.tr.delete(from$1, from$1 + sdtNode.nodeSize);
|
|
267950
|
+
const selectionPos = Math.min(from$1, tr.doc.content.size);
|
|
267951
|
+
dispatch(tr.setSelection(Selection.near(tr.doc.resolve(selectionPos), -1)).scrollIntoView());
|
|
267952
|
+
}
|
|
267953
|
+
return true;
|
|
267915
267954
|
}, deleteSkipEmptyRun = () => ({ state, dispatch }) => {
|
|
267916
267955
|
const sel = state.selection;
|
|
267917
267956
|
if (!sel.empty)
|
|
@@ -276405,6 +276444,7 @@ var Node$13 = class Node$14 {
|
|
|
276405
276444
|
tr.setMeta("inputType", "deleteContentBackward");
|
|
276406
276445
|
return false;
|
|
276407
276446
|
},
|
|
276447
|
+
() => commands$1.deleteBlockSdtAtTextBlockStart(),
|
|
276408
276448
|
() => commands$1.backspaceEmptyRunParagraph(),
|
|
276409
276449
|
() => commands$1.backspaceSkipEmptyRun(),
|
|
276410
276450
|
() => commands$1.backspaceAtomBefore(),
|
|
@@ -276419,6 +276459,7 @@ var Node$13 = class Node$14 {
|
|
|
276419
276459
|
const { view } = editor;
|
|
276420
276460
|
dispatchHistoryBoundary(view);
|
|
276421
276461
|
return editor.commands.first(({ commands: commands$1 }) => [
|
|
276462
|
+
() => commands$1.deleteBlockSdtAtTextBlockStart(),
|
|
276422
276463
|
() => commands$1.deleteSkipEmptyRun(),
|
|
276423
276464
|
() => commands$1.deleteAtomAfter(),
|
|
276424
276465
|
() => commands$1.deleteNextToRun(),
|
|
@@ -293994,7 +294035,7 @@ menclose::after {
|
|
|
293994
294035
|
return;
|
|
293995
294036
|
console.log(...args$1);
|
|
293996
294037
|
}, HEADER_FOOTER_INIT_BUDGET_MS = 200, MAX_ZOOM_WARNING_THRESHOLD = 10, MAX_SELECTION_RECTS_PER_USER = 100, SEMANTIC_RESIZE_DEBOUNCE_MS = 120, MIN_SEMANTIC_CONTENT_WIDTH_PX = 1, GLOBAL_PERFORMANCE, PresentationEditor, ICONS, TEXTS, tableActionsOptions;
|
|
293997
|
-
var
|
|
294038
|
+
var init_src_BfDVvw9H_es = __esm(() => {
|
|
293998
294039
|
init_rolldown_runtime_Bg48TavK_es();
|
|
293999
294040
|
init_SuperConverter_CbX9ZPI9_es();
|
|
294000
294041
|
init_jszip_C49i9kUs_es();
|
|
@@ -294005,7 +294046,7 @@ var init_src_BVPPjYkZ_es = __esm(() => {
|
|
|
294005
294046
|
init_unified_Dsuw2be5_es();
|
|
294006
294047
|
init_remark_gfm_BhnWr3yf_es();
|
|
294007
294048
|
init_remark_stringify_6MMJfY0k_es();
|
|
294008
|
-
|
|
294049
|
+
init_DocxZipper_TPSo9G36_es();
|
|
294009
294050
|
init__plugin_vue_export_helper_HmhZBO0u_es();
|
|
294010
294051
|
init_eventemitter3_UwU_CLPU_es();
|
|
294011
294052
|
init_errors_C_DoKMoN_es();
|
|
@@ -296767,6 +296808,7 @@ ${err.toString()}`);
|
|
|
296767
296808
|
decreaseListIndent: () => decreaseListIndent,
|
|
296768
296809
|
decreaseTextIndent: () => decreaseTextIndent,
|
|
296769
296810
|
deleteAtomAfter: () => deleteAtomAfter,
|
|
296811
|
+
deleteBlockSdtAtTextBlockStart: () => deleteBlockSdtAtTextBlockStart,
|
|
296770
296812
|
deleteNextToRun: () => deleteNextToRun,
|
|
296771
296813
|
deleteSelection: () => deleteSelection$1,
|
|
296772
296814
|
deleteSkipEmptyRun: () => deleteSkipEmptyRun,
|
|
@@ -332086,7 +332128,7 @@ var init_zipper_BxRAi0_5_es = __esm(() => {
|
|
|
332086
332128
|
|
|
332087
332129
|
// ../../packages/superdoc/dist/super-editor.es.js
|
|
332088
332130
|
var init_super_editor_es = __esm(() => {
|
|
332089
|
-
|
|
332131
|
+
init_src_BfDVvw9H_es();
|
|
332090
332132
|
init_SuperConverter_CbX9ZPI9_es();
|
|
332091
332133
|
init_jszip_C49i9kUs_es();
|
|
332092
332134
|
init_xml_js_CqGKpaft_es();
|
|
@@ -332094,7 +332136,7 @@ var init_super_editor_es = __esm(() => {
|
|
|
332094
332136
|
init_constants_DrU4EASo_es();
|
|
332095
332137
|
init_dist_B8HfvhaK_es();
|
|
332096
332138
|
init_unified_Dsuw2be5_es();
|
|
332097
|
-
|
|
332139
|
+
init_DocxZipper_TPSo9G36_es();
|
|
332098
332140
|
init_create_super_doc_ui_CkcWwDom_es();
|
|
332099
332141
|
init_ui_CGB3qmy3_es();
|
|
332100
332142
|
init_eventemitter3_UwU_CLPU_es();
|