@superdoc/mcp 1.13.0-next.16 → 1.13.0-next.17
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 +4 -4
- package/package.json +3 -3
package/dist/index.js
CHANGED
|
@@ -31155,7 +31155,7 @@ var init_host = __esm(() => {
|
|
|
31155
31155
|
});
|
|
31156
31156
|
|
|
31157
31157
|
// ../../packages/sdk/langs/node/src/runtime/sdk-version.generated.ts
|
|
31158
|
-
var SDK_VERSION = "2.26.0-next.
|
|
31158
|
+
var SDK_VERSION = "2.26.0-next.17";
|
|
31159
31159
|
|
|
31160
31160
|
// ../../packages/sdk/langs/node/src/runtime/embedded-platform.ts
|
|
31161
31161
|
import { accessSync, chmodSync, constants, existsSync, statSync } from "node:fs";
|
|
@@ -339953,7 +339953,7 @@ var init_paragraph_attrs = __esm(() => {
|
|
|
339953
339953
|
init_colors();
|
|
339954
339954
|
});
|
|
339955
339955
|
|
|
339956
|
-
// ../../../v2/node_modules/.pnpm/@superdoc+font-utils@file+..+public+shared+font-utils/node_modules/@superdoc/font-utils/index.
|
|
339956
|
+
// ../../../v2/node_modules/.pnpm/@superdoc+font-utils@file+..+public+shared+font-utils/node_modules/@superdoc/font-utils/index.ts
|
|
339957
339957
|
function mapWordFamilyFallback(wordFamily) {
|
|
339958
339958
|
if (!wordFamily)
|
|
339959
339959
|
return DEFAULT_GENERIC_FALLBACK;
|
|
@@ -339979,7 +339979,7 @@ function toCssFontFamily(fontName, options = {}) {
|
|
|
339979
339979
|
const { fallback, wordFamily, pitch } = options;
|
|
339980
339980
|
const family = typeof wordFamily === "string" ? wordFamily.trim().toLowerCase() : "";
|
|
339981
339981
|
const fixedPitch = typeof pitch === "string" && pitch.trim().toLowerCase() === "fixed";
|
|
339982
|
-
const fallbackValue = fallback ?? (fixedPitch ? "monospace" : undefined) ?? (family !== "auto" && Object.
|
|
339982
|
+
const fallbackValue = fallback ?? (fixedPitch ? "monospace" : undefined) ?? (family !== "auto" && Object.prototype.hasOwnProperty.call(FONT_FAMILY_FALLBACKS, family) ? mapWordFamilyFallback(family) : undefined) ?? inferGenericFallbackFromFontName(trimmed);
|
|
339983
339983
|
const fallbackParts = normalizeParts(fallbackValue);
|
|
339984
339984
|
const primaryParts = normalizeParts(trimmed);
|
|
339985
339985
|
if (fallbackParts.length === 0) {
|
|
@@ -340042,7 +340042,7 @@ var FONT_FAMILY_FALLBACKS, DEFAULT_GENERIC_FALLBACK = "sans-serif", INHERITED_FO
|
|
|
340042
340042
|
return family;
|
|
340043
340043
|
if (family.split(/\s+/).every((part) => CSS_IDENTIFIER.test(part)))
|
|
340044
340044
|
return family;
|
|
340045
|
-
const escaped = family.replace(/["\\\x00-\x1f\x7f]/g, (char) => char === '"' || char === "\\" ? `\\${char}` : `\\${char.
|
|
340045
|
+
const escaped = family.replace(/["\\\x00-\x1f\x7f]/g, (char) => char === '"' || char === "\\" ? `\\${char}` : `\\${char.charCodeAt(0).toString(16)} `);
|
|
340046
340046
|
return `"${escaped}"`;
|
|
340047
340047
|
}, CSS_GENERIC_FAMILIES;
|
|
340048
340048
|
var init_font_utils = __esm(() => {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@superdoc/mcp",
|
|
3
|
-
"version": "1.13.0-next.
|
|
3
|
+
"version": "1.13.0-next.17",
|
|
4
4
|
"description": "Model Context Protocol server for SuperDoc, giving an AI agent tools to read and edit .docx files.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "AGPL-3.0",
|
|
@@ -24,12 +24,12 @@
|
|
|
24
24
|
],
|
|
25
25
|
"dependencies": {
|
|
26
26
|
"@modelcontextprotocol/sdk": "^1.26.0",
|
|
27
|
-
"@superdoc/sdk": "2.26.0-next.
|
|
27
|
+
"@superdoc/sdk": "2.26.0-next.17",
|
|
28
28
|
"debug": "^4.4.3",
|
|
29
29
|
"zod": "^4.3.6"
|
|
30
30
|
},
|
|
31
31
|
"devDependencies": {
|
|
32
|
-
"superdoc": "2.29.0-next.
|
|
32
|
+
"superdoc": "2.29.0-next.17",
|
|
33
33
|
"@superdoc/docx-engine": "0.28.0-next.16",
|
|
34
34
|
"@superdoc/document-api": "0.1.0-alpha.0",
|
|
35
35
|
"@types/bun": "^1.3.8",
|