@superdoc-dev/mcp 0.6.0-next.4 → 0.6.0-next.6
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 +70 -60
- package/package.json +3 -3
package/dist/index.js
CHANGED
|
@@ -147180,7 +147180,7 @@ var init_remark_stringify_6MMJfY0k_es = __esm(() => {
|
|
|
147180
147180
|
eol = /\r?\n|\r/g;
|
|
147181
147181
|
});
|
|
147182
147182
|
|
|
147183
|
-
// ../../packages/superdoc/dist/chunks/detect-container-
|
|
147183
|
+
// ../../packages/superdoc/dist/chunks/detect-container-F9mvzfM4.es.js
|
|
147184
147184
|
function matchesMagic(bytes, magic) {
|
|
147185
147185
|
if (bytes.length < magic.length)
|
|
147186
147186
|
return false;
|
|
@@ -147198,7 +147198,7 @@ function detectContainerType(data) {
|
|
|
147198
147198
|
return "unknown";
|
|
147199
147199
|
}
|
|
147200
147200
|
var ZIP_MAGIC, CFB_MAGIC;
|
|
147201
|
-
var
|
|
147201
|
+
var init_detect_container_F9mvzfM4_es = __esm(() => {
|
|
147202
147202
|
ZIP_MAGIC = [
|
|
147203
147203
|
80,
|
|
147204
147204
|
75,
|
|
@@ -147217,18 +147217,18 @@ var init_detect_container_C1zjKeIM_es = __esm(() => {
|
|
|
147217
147217
|
];
|
|
147218
147218
|
});
|
|
147219
147219
|
|
|
147220
|
-
// ../../packages/superdoc/dist/chunks/detect-container-
|
|
147221
|
-
var
|
|
147222
|
-
__export(
|
|
147220
|
+
// ../../packages/superdoc/dist/chunks/detect-container-CkAleP2M.es.js
|
|
147221
|
+
var exports_detect_container_CkAleP2M_es = {};
|
|
147222
|
+
__export(exports_detect_container_CkAleP2M_es, {
|
|
147223
147223
|
detectContainerType: () => detectContainerType
|
|
147224
147224
|
});
|
|
147225
|
-
var
|
|
147226
|
-
|
|
147225
|
+
var init_detect_container_CkAleP2M_es = __esm(() => {
|
|
147226
|
+
init_detect_container_F9mvzfM4_es();
|
|
147227
147227
|
});
|
|
147228
147228
|
|
|
147229
|
-
// ../../packages/superdoc/dist/chunks/errors-
|
|
147229
|
+
// ../../packages/superdoc/dist/chunks/errors-CNaD6vcg.es.js
|
|
147230
147230
|
var EditorError, InvalidStateError, NoSourcePathError, FileSystemNotAvailableError, DocumentLoadError, DocxEncryptionErrorCode, DocxEncryptionError;
|
|
147231
|
-
var
|
|
147231
|
+
var init_errors_CNaD6vcg_es = __esm(() => {
|
|
147232
147232
|
EditorError = class extends Error {
|
|
147233
147233
|
constructor(message) {
|
|
147234
147234
|
super(message);
|
|
@@ -147276,9 +147276,9 @@ var init_errors_C_DoKMoN_es = __esm(() => {
|
|
|
147276
147276
|
};
|
|
147277
147277
|
});
|
|
147278
147278
|
|
|
147279
|
-
// ../../packages/superdoc/dist/chunks/decrypt-docx-
|
|
147280
|
-
var
|
|
147281
|
-
__export(
|
|
147279
|
+
// ../../packages/superdoc/dist/chunks/decrypt-docx-qHyNrqvz.es.js
|
|
147280
|
+
var exports_decrypt_docx_qHyNrqvz_es = {};
|
|
147281
|
+
__export(exports_decrypt_docx_qHyNrqvz_es, {
|
|
147282
147282
|
decryptDocxIfNeeded: () => decryptDocxIfNeeded
|
|
147283
147283
|
});
|
|
147284
147284
|
function concatUint8Arrays(chunks) {
|
|
@@ -147819,10 +147819,10 @@ async function decryptDocxIfNeeded(data, options) {
|
|
|
147819
147819
|
};
|
|
147820
147820
|
}
|
|
147821
147821
|
var CFB_SIGNATURE, CFB_END_OF_CHAIN = 4294967294, CFB_OBJECT_TYPE, utf16LeDecoder, AGILE_VERSION = 4, AGILE_RESERVED = 4, STANDARD_VERSION_3 = 3, STANDARD_VERSION_4 = 4, STANDARD_RESERVED = 3, MIN_HEADER_SIZE = 8, BLOCK_KEY_VERIFIER_INPUT, BLOCK_KEY_VERIFIER_VALUE, BLOCK_KEY_ENCRYPTED_KEY, BLOCK_KEY_HMAC_KEY, BLOCK_KEY_HMAC_VALUE, SEGMENT_SIZE = 4096, PACKAGE_HEADER_SIZE = 8;
|
|
147822
|
-
var
|
|
147822
|
+
var init_decrypt_docx_qHyNrqvz_es = __esm(() => {
|
|
147823
147823
|
init_dist_B8HfvhaK_es();
|
|
147824
|
-
|
|
147825
|
-
|
|
147824
|
+
init_errors_CNaD6vcg_es();
|
|
147825
|
+
init_detect_container_F9mvzfM4_es();
|
|
147826
147826
|
CFB_SIGNATURE = new Uint8Array([
|
|
147827
147827
|
208,
|
|
147828
147828
|
207,
|
|
@@ -147891,7 +147891,7 @@ var init_decrypt_docx_4kQ488M9_es = __esm(() => {
|
|
|
147891
147891
|
]);
|
|
147892
147892
|
});
|
|
147893
147893
|
|
|
147894
|
-
// ../../packages/superdoc/dist/chunks/DocxZipper-
|
|
147894
|
+
// ../../packages/superdoc/dist/chunks/DocxZipper-CU4X_-2c.es.js
|
|
147895
147895
|
function sniffEncoding(u8) {
|
|
147896
147896
|
if (u8.length >= 2) {
|
|
147897
147897
|
const b0 = u8[0], b1 = u8[1];
|
|
@@ -148207,11 +148207,11 @@ var DOCX = "application/vnd.openxmlformats-officedocument.wordprocessingml.docum
|
|
|
148207
148207
|
return new Uint8Array(0);
|
|
148208
148208
|
}
|
|
148209
148209
|
async getDocxData(file2, isNode = false, options = {}) {
|
|
148210
|
-
const { detectContainerType: detectContainerType2 } = await Promise.resolve().then(() => (
|
|
148210
|
+
const { detectContainerType: detectContainerType2 } = await Promise.resolve().then(() => (init_detect_container_CkAleP2M_es(), exports_detect_container_CkAleP2M_es));
|
|
148211
148211
|
const containerType = detectContainerType2(await this.#peekBytes(file2, 8));
|
|
148212
148212
|
let fileData = file2;
|
|
148213
148213
|
if (containerType === "cfb") {
|
|
148214
|
-
const { decryptDocxIfNeeded: decryptDocxIfNeeded2 } = await Promise.resolve().then(() => (
|
|
148214
|
+
const { decryptDocxIfNeeded: decryptDocxIfNeeded2 } = await Promise.resolve().then(() => (init_decrypt_docx_qHyNrqvz_es(), exports_decrypt_docx_qHyNrqvz_es));
|
|
148215
148215
|
const result = await decryptDocxIfNeeded2(file2 instanceof Uint8Array ? file2 : file2 instanceof ArrayBuffer ? new Uint8Array(file2) : new Uint8Array(await file2.arrayBuffer()), { password: options.password });
|
|
148216
148216
|
fileData = result.data;
|
|
148217
148217
|
this.decryptedFileData = result.data;
|
|
@@ -148564,7 +148564,7 @@ var DOCX = "application/vnd.openxmlformats-officedocument.wordprocessingml.docum
|
|
|
148564
148564
|
return `image/${MIME_TYPE_FOR_EXT[detectedType] || detectedType}`;
|
|
148565
148565
|
}
|
|
148566
148566
|
}, DocxZipper_default;
|
|
148567
|
-
var
|
|
148567
|
+
var init_DocxZipper_CU4X__2c_es = __esm(() => {
|
|
148568
148568
|
init_rolldown_runtime_Bg48TavK_es();
|
|
148569
148569
|
init_jszip_C49i9kUs_es();
|
|
148570
148570
|
init_xml_js_CqGKpaft_es();
|
|
@@ -148630,18 +148630,18 @@ var init_DocxZipper_Bphhij1P_es = __esm(() => {
|
|
|
148630
148630
|
DocxZipper_default = DocxZipper;
|
|
148631
148631
|
});
|
|
148632
148632
|
|
|
148633
|
-
// ../../packages/superdoc/dist/chunks/_plugin-vue_export-helper-
|
|
148633
|
+
// ../../packages/superdoc/dist/chunks/_plugin-vue_export-helper-5t5P5NuM.es.js
|
|
148634
148634
|
var __plugin_vue_export_helper_default = (sfc, props) => {
|
|
148635
148635
|
const target = sfc.__vccOpts || sfc;
|
|
148636
148636
|
for (const [key2, val] of props)
|
|
148637
148637
|
target[key2] = val;
|
|
148638
148638
|
return target;
|
|
148639
148639
|
};
|
|
148640
|
-
var
|
|
148640
|
+
var init__plugin_vue_export_helper_5t5P5NuM_es = () => {};
|
|
148641
148641
|
|
|
148642
|
-
// ../../packages/superdoc/dist/chunks/eventemitter3-
|
|
148642
|
+
// ../../packages/superdoc/dist/chunks/eventemitter3-BnGqBE-Q.es.js
|
|
148643
148643
|
var import_eventemitter3;
|
|
148644
|
-
var
|
|
148644
|
+
var init_eventemitter3_BnGqBE_Q_es = __esm(() => {
|
|
148645
148645
|
init_rolldown_runtime_Bg48TavK_es();
|
|
148646
148646
|
import_eventemitter3 = /* @__PURE__ */ __toESM2((/* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
148647
148647
|
var has = Object.prototype.hasOwnProperty, prefix = "~";
|
|
@@ -148810,8 +148810,8 @@ var init_eventemitter3_UwU_CLPU_es = __esm(() => {
|
|
|
148810
148810
|
}))(), 1);
|
|
148811
148811
|
});
|
|
148812
148812
|
|
|
148813
|
-
// ../../packages/superdoc/dist/chunks/blank-docx-
|
|
148814
|
-
var
|
|
148813
|
+
// ../../packages/superdoc/dist/chunks/blank-docx-1Y-uWgjm.es.js
|
|
148814
|
+
var init_blank_docx_1Y_uWgjm_es = () => {};
|
|
148815
148815
|
|
|
148816
148816
|
// ../../node_modules/.pnpm/lib0@0.2.117/node_modules/lib0/map.js
|
|
148817
148817
|
var create = () => new Map, copy2 = (m) => {
|
|
@@ -189964,9 +189964,9 @@ var init_unified_vFnLRfAM_es = __esm(() => {
|
|
|
189964
189964
|
init_unified_Dsuw2be5_es();
|
|
189965
189965
|
});
|
|
189966
189966
|
|
|
189967
|
-
// ../../packages/superdoc/dist/chunks/rehype-parse-
|
|
189968
|
-
var
|
|
189969
|
-
__export(
|
|
189967
|
+
// ../../packages/superdoc/dist/chunks/rehype-parse-BI-WIfXl.es.js
|
|
189968
|
+
var exports_rehype_parse_BI_WIfXl_es = {};
|
|
189969
|
+
__export(exports_rehype_parse_BI_WIfXl_es, {
|
|
189970
189970
|
default: () => rehypeParse
|
|
189971
189971
|
});
|
|
189972
189972
|
function merge2(definitions, space) {
|
|
@@ -195915,7 +195915,7 @@ var Schema2 = class {
|
|
|
195915
195915
|
}
|
|
195916
195916
|
}
|
|
195917
195917
|
}, TABLE_VOID_ELEMENTS, errors4, base2 = "https://html.spec.whatwg.org/multipage/parsing.html#parse-error-", dashToCamelRe, formatCRe, formatXRe, fatalities, emptyOptions3;
|
|
195918
|
-
var
|
|
195918
|
+
var init_rehype_parse_BI_WIfXl_es = __esm(() => {
|
|
195919
195919
|
init_rolldown_runtime_Bg48TavK_es();
|
|
195920
195920
|
init_default_BqgWzMfR_es();
|
|
195921
195921
|
init_lib_CYqLdG4z_es();
|
|
@@ -198660,9 +198660,9 @@ var init_rehype_parse_DyKLXYD2_es = __esm(() => {
|
|
|
198660
198660
|
emptyOptions3 = {};
|
|
198661
198661
|
});
|
|
198662
198662
|
|
|
198663
|
-
// ../../packages/superdoc/dist/chunks/rehype-remark-
|
|
198664
|
-
var
|
|
198665
|
-
__export(
|
|
198663
|
+
// ../../packages/superdoc/dist/chunks/rehype-remark-CjZ9Q9bL.es.js
|
|
198664
|
+
var exports_rehype_remark_CjZ9Q9bL_es = {};
|
|
198665
|
+
__export(exports_rehype_remark_CjZ9Q9bL_es, {
|
|
198666
198666
|
default: () => rehypeRemark
|
|
198667
198667
|
});
|
|
198668
198668
|
function anyFactory2(tests) {
|
|
@@ -200282,7 +200282,7 @@ var env, deserializer = ($2, _2) => {
|
|
|
200282
200282
|
if (is(parent.children[index2], index2, parent))
|
|
200283
200283
|
return parent.children[index2];
|
|
200284
200284
|
}, searchLineFeeds, searchTabOrSpaces, br$1, cell, p$1, row, notRendered, blockOrCaption, prefix = "language-", defaultChecked = "[x]", defaultUnchecked = "[ ]", own$12, list$1, basic, meta3, defaultQuotes, nodeHandlers, handlers2, own6, emptyOptions4, defaults;
|
|
200285
|
-
var
|
|
200285
|
+
var init_rehype_remark_CjZ9Q9bL_es = __esm(() => {
|
|
200286
200286
|
init_lib_DEff_P2k_es();
|
|
200287
200287
|
env = typeof self === "object" ? self : globalThis;
|
|
200288
200288
|
({ toString: toString$1 } = {});
|
|
@@ -200658,12 +200658,12 @@ var init_rehype_remark_DYihe9nj_es = __esm(() => {
|
|
|
200658
200658
|
defaults = { document: true };
|
|
200659
200659
|
});
|
|
200660
200660
|
|
|
200661
|
-
// ../../packages/superdoc/dist/chunks/remark-stringify-
|
|
200662
|
-
var
|
|
200663
|
-
__export(
|
|
200661
|
+
// ../../packages/superdoc/dist/chunks/remark-stringify-B-orWEvD.es.js
|
|
200662
|
+
var exports_remark_stringify_B_orWEvD_es = {};
|
|
200663
|
+
__export(exports_remark_stringify_B_orWEvD_es, {
|
|
200664
200664
|
default: () => remarkStringify
|
|
200665
200665
|
});
|
|
200666
|
-
var
|
|
200666
|
+
var init_remark_stringify_B_orWEvD_es = __esm(() => {
|
|
200667
200667
|
init_remark_stringify_6MMJfY0k_es();
|
|
200668
200668
|
});
|
|
200669
200669
|
|
|
@@ -200676,7 +200676,7 @@ var init_remark_gfm_eZN6yzWQ_es = __esm(() => {
|
|
|
200676
200676
|
init_remark_gfm_BhnWr3yf_es();
|
|
200677
200677
|
});
|
|
200678
200678
|
|
|
200679
|
-
// ../../packages/superdoc/dist/chunks/src-
|
|
200679
|
+
// ../../packages/superdoc/dist/chunks/src-DlI-vUrR.es.js
|
|
200680
200680
|
function deleteProps(obj, propOrProps) {
|
|
200681
200681
|
const props = typeof propOrProps === "string" ? [propOrProps] : propOrProps;
|
|
200682
200682
|
const removeNested = (target, pathParts, index2 = 0) => {
|
|
@@ -210988,6 +210988,8 @@ function shouldProcessEqualAsModification$1(oldParagraph, newParagraph) {
|
|
|
210988
210988
|
return JSON.stringify(oldNormalized) !== JSON.stringify(newNormalized);
|
|
210989
210989
|
}
|
|
210990
210990
|
function paragraphComparator(oldParagraph, newParagraph) {
|
|
210991
|
+
if (oldParagraph?.depth !== newParagraph?.depth)
|
|
210992
|
+
return false;
|
|
210991
210993
|
const oldId = oldParagraph?.node?.attrs?.paraId;
|
|
210992
210994
|
const newId = newParagraph?.node?.attrs?.paraId;
|
|
210993
210995
|
if (oldId && newId && oldId === newId)
|
|
@@ -211030,6 +211032,8 @@ function buildModifiedParagraphDiff(oldParagraph, newParagraph) {
|
|
|
211030
211032
|
};
|
|
211031
211033
|
}
|
|
211032
211034
|
function canTreatAsModification(oldParagraph, newParagraph) {
|
|
211035
|
+
if (oldParagraph?.depth !== newParagraph?.depth)
|
|
211036
|
+
return false;
|
|
211033
211037
|
if (paragraphComparator(oldParagraph, newParagraph))
|
|
211034
211038
|
return true;
|
|
211035
211039
|
const oldText = oldParagraph.fullText;
|
|
@@ -295441,7 +295445,7 @@ menclose::after {
|
|
|
295441
295445
|
return;
|
|
295442
295446
|
console.log(...args$1);
|
|
295443
295447
|
}, 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;
|
|
295444
|
-
var
|
|
295448
|
+
var init_src_DlI_vUrR_es = __esm(() => {
|
|
295445
295449
|
init_rolldown_runtime_Bg48TavK_es();
|
|
295446
295450
|
init_SuperConverter_CnwfJPj6_es();
|
|
295447
295451
|
init_jszip_C49i9kUs_es();
|
|
@@ -295453,11 +295457,11 @@ var init_src_Cj1y6vM_es = __esm(() => {
|
|
|
295453
295457
|
init_unified_Dsuw2be5_es();
|
|
295454
295458
|
init_remark_gfm_BhnWr3yf_es();
|
|
295455
295459
|
init_remark_stringify_6MMJfY0k_es();
|
|
295456
|
-
|
|
295457
|
-
|
|
295458
|
-
|
|
295459
|
-
|
|
295460
|
-
|
|
295460
|
+
init_DocxZipper_CU4X__2c_es();
|
|
295461
|
+
init__plugin_vue_export_helper_5t5P5NuM_es();
|
|
295462
|
+
init_eventemitter3_BnGqBE_Q_es();
|
|
295463
|
+
init_errors_CNaD6vcg_es();
|
|
295464
|
+
init_blank_docx_1Y_uWgjm_es();
|
|
295461
295465
|
init_yjs();
|
|
295462
295466
|
init_yjs();
|
|
295463
295467
|
init_vue();
|
|
@@ -321280,9 +321284,9 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
321280
321284
|
try {
|
|
321281
321285
|
const [{ unified: unified$1 }, { default: rehypeParse2 }, { default: rehypeRemark2 }, { default: remarkStringify$1 }, { default: remarkGfm$1 }] = await Promise.all([
|
|
321282
321286
|
Promise.resolve().then(() => (init_unified_vFnLRfAM_es(), exports_unified_vFnLRfAM_es)),
|
|
321283
|
-
Promise.resolve().then(() => (
|
|
321284
|
-
Promise.resolve().then(() => (
|
|
321285
|
-
Promise.resolve().then(() => (
|
|
321287
|
+
Promise.resolve().then(() => (init_rehype_parse_BI_WIfXl_es(), exports_rehype_parse_BI_WIfXl_es)),
|
|
321288
|
+
Promise.resolve().then(() => (init_rehype_remark_CjZ9Q9bL_es(), exports_rehype_remark_CjZ9Q9bL_es)),
|
|
321289
|
+
Promise.resolve().then(() => (init_remark_stringify_B_orWEvD_es(), exports_remark_stringify_B_orWEvD_es)),
|
|
321286
321290
|
Promise.resolve().then(() => (init_remark_gfm_eZN6yzWQ_es(), exports_remark_gfm_eZN6yzWQ_es))
|
|
321287
321291
|
]);
|
|
321288
321292
|
const html3 = this.getHTML();
|
|
@@ -333614,9 +333618,9 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
333614
333618
|
];
|
|
333615
333619
|
});
|
|
333616
333620
|
|
|
333617
|
-
// ../../packages/superdoc/dist/chunks/create-super-doc-ui-
|
|
333621
|
+
// ../../packages/superdoc/dist/chunks/create-super-doc-ui-BgATtiYQ.es.js
|
|
333618
333622
|
var MOD_ALIASES, ALT_ALIASES, CTRL_ALIASES, SHIFT_ALIASES, BUILTIN_CONTEXT_MENU_GROUPS, BUILTIN_GROUP_ORDER, RESERVED_PROXY_PROPERTY_NAMES, ALL_TOOLBAR_COMMAND_IDS, EMPTY_ACTIVE_IDS;
|
|
333619
|
-
var
|
|
333623
|
+
var init_create_super_doc_ui_BgATtiYQ_es = __esm(() => {
|
|
333620
333624
|
init_SuperConverter_CnwfJPj6_es();
|
|
333621
333625
|
init_create_headless_toolbar_Btizo_Im_es();
|
|
333622
333626
|
MOD_ALIASES = new Set([
|
|
@@ -333647,12 +333651,12 @@ var init_create_super_doc_ui_CkaOaJa5_es = __esm(() => {
|
|
|
333647
333651
|
EMPTY_ACTIVE_IDS = Object.freeze([]);
|
|
333648
333652
|
});
|
|
333649
333653
|
|
|
333650
|
-
// ../../packages/superdoc/dist/chunks/ui-
|
|
333651
|
-
var
|
|
333654
|
+
// ../../packages/superdoc/dist/chunks/ui-C5PAS9hY.es.js
|
|
333655
|
+
var init_ui_C5PAS9hY_es = () => {};
|
|
333652
333656
|
|
|
333653
|
-
// ../../packages/superdoc/dist/chunks/zipper-
|
|
333657
|
+
// ../../packages/superdoc/dist/chunks/zipper-yaJVJ4z9.es.js
|
|
333654
333658
|
var import_jszip_min2;
|
|
333655
|
-
var
|
|
333659
|
+
var init_zipper_yaJVJ4z9_es = __esm(() => {
|
|
333656
333660
|
init_rolldown_runtime_Bg48TavK_es();
|
|
333657
333661
|
init_jszip_C49i9kUs_es();
|
|
333658
333662
|
import_jszip_min2 = /* @__PURE__ */ __toESM2(require_jszip_min(), 1);
|
|
@@ -333660,7 +333664,7 @@ var init_zipper_BxRAi0_5_es = __esm(() => {
|
|
|
333660
333664
|
|
|
333661
333665
|
// ../../packages/superdoc/dist/super-editor.es.js
|
|
333662
333666
|
var init_super_editor_es = __esm(() => {
|
|
333663
|
-
|
|
333667
|
+
init_src_DlI_vUrR_es();
|
|
333664
333668
|
init_SuperConverter_CnwfJPj6_es();
|
|
333665
333669
|
init_jszip_C49i9kUs_es();
|
|
333666
333670
|
init_xml_js_CqGKpaft_es();
|
|
@@ -333668,12 +333672,12 @@ var init_super_editor_es = __esm(() => {
|
|
|
333668
333672
|
init_constants_DrU4EASo_es();
|
|
333669
333673
|
init_dist_B8HfvhaK_es();
|
|
333670
333674
|
init_unified_Dsuw2be5_es();
|
|
333671
|
-
|
|
333672
|
-
|
|
333673
|
-
|
|
333674
|
-
|
|
333675
|
-
|
|
333676
|
-
|
|
333675
|
+
init_DocxZipper_CU4X__2c_es();
|
|
333676
|
+
init_create_super_doc_ui_BgATtiYQ_es();
|
|
333677
|
+
init_ui_C5PAS9hY_es();
|
|
333678
|
+
init_eventemitter3_BnGqBE_Q_es();
|
|
333679
|
+
init_errors_CNaD6vcg_es();
|
|
333680
|
+
init_zipper_yaJVJ4z9_es();
|
|
333677
333681
|
});
|
|
333678
333682
|
|
|
333679
333683
|
// ../../packages/super-editor/src/editors/v1/document-api-adapters/helpers/value-utils.ts
|
|
@@ -454194,6 +454198,9 @@ function shouldProcessEqualAsModification3(oldParagraph, newParagraph) {
|
|
|
454194
454198
|
return JSON.stringify(oldNormalized) !== JSON.stringify(newNormalized);
|
|
454195
454199
|
}
|
|
454196
454200
|
function paragraphComparator2(oldParagraph, newParagraph) {
|
|
454201
|
+
if (oldParagraph?.depth !== newParagraph?.depth) {
|
|
454202
|
+
return false;
|
|
454203
|
+
}
|
|
454197
454204
|
const oldId = oldParagraph?.node?.attrs?.paraId;
|
|
454198
454205
|
const newId = newParagraph?.node?.attrs?.paraId;
|
|
454199
454206
|
if (oldId && newId && oldId === newId) {
|
|
@@ -454240,6 +454247,9 @@ function buildModifiedParagraphDiff2(oldParagraph, newParagraph) {
|
|
|
454240
454247
|
};
|
|
454241
454248
|
}
|
|
454242
454249
|
function canTreatAsModification2(oldParagraph, newParagraph) {
|
|
454250
|
+
if (oldParagraph?.depth !== newParagraph?.depth) {
|
|
454251
|
+
return false;
|
|
454252
|
+
}
|
|
454243
454253
|
if (paragraphComparator2(oldParagraph, newParagraph)) {
|
|
454244
454254
|
return true;
|
|
454245
454255
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@superdoc-dev/mcp",
|
|
3
|
-
"version": "0.6.0-next.
|
|
3
|
+
"version": "0.6.0-next.6",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"engines": {
|
|
6
6
|
"node": ">=20"
|
|
@@ -20,8 +20,8 @@
|
|
|
20
20
|
"@types/node": "22.19.2",
|
|
21
21
|
"typescript": "^5.9.2",
|
|
22
22
|
"@superdoc/document-api": "0.0.1",
|
|
23
|
-
"
|
|
24
|
-
"superdoc": "
|
|
23
|
+
"superdoc": "1.33.1",
|
|
24
|
+
"@superdoc/super-editor": "0.0.1"
|
|
25
25
|
},
|
|
26
26
|
"publishConfig": {
|
|
27
27
|
"access": "public"
|