kordoc 4.25.21 → 4.25.23
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/README.md +3 -3
- package/dist/{chunk-PVOLFVXE.js → chunk-2PQMHHX4.js} +2 -2
- package/dist/{chunk-6I3X54AQ.js → chunk-377GAL46.js} +2 -2
- package/dist/{chunk-ZCMMU34Z.js → chunk-3IVEGZI3.js} +2 -2
- package/dist/{chunk-5ULHNZ3P.js → chunk-7LW2HG7F.js} +3 -3
- package/dist/{chunk-LSUTK3DH.js → chunk-7S4KRBXC.js} +2 -2
- package/dist/{chunk-COJYQKGH.js → chunk-B3LK5RVY.js} +83 -4
- package/dist/chunk-B3LK5RVY.js.map +7 -0
- package/dist/{chunk-QNJ2LMUO.js → chunk-BXHO5BB5.js} +8 -8
- package/dist/{chunk-HQILGS2O.js → chunk-GMYXTUSJ.js} +2 -2
- package/dist/{chunk-6MCJHRSM.js → chunk-GZX5UQ4P.js} +2 -2
- package/dist/{chunk-3AYNFK6J.js → chunk-IRR32NHL.js} +2 -2
- package/dist/{chunk-FDSFXE2L.js → chunk-J4OTJFSW.js} +2 -2
- package/dist/{chunk-TI6S3KZF.js → chunk-K5ZUKPU3.js} +2 -2
- package/dist/{chunk-W5AHXAUP.js → chunk-LTXF66N6.js} +7 -7
- package/dist/{chunk-B2SRYWEY.js → chunk-MJ2B3EXE.js} +19 -1
- package/dist/{chunk-B2SRYWEY.js.map → chunk-MJ2B3EXE.js.map} +2 -2
- package/dist/{chunk-TYJSNW4Z.js → chunk-MMJIFTWZ.js} +131 -32
- package/dist/chunk-MMJIFTWZ.js.map +7 -0
- package/dist/{chunk-MWCJYIJC.js → chunk-MPEWMDM2.js} +19 -19
- package/dist/{chunk-DHXKCDAU.js → chunk-NFMC6FLB.js} +66 -9
- package/dist/chunk-NFMC6FLB.js.map +7 -0
- package/dist/{chunk-ZO4P735U.js → chunk-PGBRNQAF.js} +2 -2
- package/dist/{chunk-PFNZQ3XI.js → chunk-PQIIJRV2.js} +2 -2
- package/dist/{chunk-S553BW45.js → chunk-QAQDSBAC.js} +6 -6
- package/dist/{chunk-XUBBFY3H.js → chunk-QI7LT4AX.js} +6 -6
- package/dist/{chunk-XUBBFY3H.js.map → chunk-QI7LT4AX.js.map} +2 -2
- package/dist/{chunk-QOCUFTT4.js → chunk-SE5HAJNL.js} +5 -5
- package/dist/{chunk-5MDRUEHP.js → chunk-SKZ2LLN5.js} +237 -4
- package/dist/chunk-SKZ2LLN5.js.map +1 -0
- package/dist/{chunk-KW4JO5CV.js → chunk-TYANRH6O.js} +3 -3
- package/dist/{chunk-DZOA5N5W.js → chunk-WLHQL53U.js} +2 -2
- package/dist/{chunk-24LB25LZ.js → chunk-YDOIXWSF.js} +2 -2
- package/dist/{chunk-GJORKM42.js → chunk-YWRAHQTV.js} +2 -2
- package/dist/chunks-A2NELZR2.js +10 -0
- package/dist/cli.js +38 -38
- package/dist/{formula-HMKT4BZL.js → formula-LUPB363D.js} +4 -4
- package/dist/generator-MK3VLXV2.js +18 -0
- package/dist/{hancom-QWJBWOOE.js → hancom-24SHJFWF.js} +2 -2
- package/dist/{image-ocr-P5AIZNT3.js → image-ocr-CSV7OLPX.js} +11 -11
- package/dist/index.cjs +517 -30
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +5 -0
- package/dist/index.d.ts +5 -0
- package/dist/index.js +22 -22
- package/dist/mcp.js +34 -34
- package/dist/memo-5G32P322.js +15 -0
- package/dist/{model-bundle-5CXCIZHZ.js → model-bundle-U6ONSDTJ.js} +5 -5
- package/dist/{models-PS4L7NLP.js → models-X4FVLSSQ.js} +5 -5
- package/dist/{page-images-QW7IUTUB.js → page-images-E67SJN3S.js} +2 -2
- package/dist/{parse-worker-v2-PRH6KVKP.js → parse-worker-v2-3VY5X7SF.js} +24 -24
- package/dist/{parser-OQIR5ZMI.js → parser-6GFE6B42.js} +14 -14
- package/dist/{pdf-ocr-ZH4JAUTR.js → pdf-ocr-MKQURNXT.js} +9 -9
- package/dist/{profile-io-JFRAM2VE.js → profile-io-DAZZHP7S.js} +3 -3
- package/dist/{rasterize-JJOMUTYX.js → rasterize-BJTBPSDM.js} +3 -3
- package/dist/{redact-doc-A7TW4MNF.js → redact-doc-W6H7SXGB.js} +23 -23
- package/dist/{render-VAOMAQV2.js → render-HJDMKGMV.js} +10 -10
- package/dist/{rewrite-fallback-7PR7V3AZ.js → rewrite-fallback-VKA6BLLT.js} +13 -13
- package/dist/seal-5KR6SUIU.js +14 -0
- package/dist/{setup-6DXZJQCT.js → setup-UGWQLJ5Z.js} +3 -3
- package/dist/{to-hwpx-A56R6H27.js → to-hwpx-WI5CGWDZ.js} +7 -7
- package/dist/visual-YDMDCB7Q.js +42 -0
- package/dist/{watch-7W6CKGX7.js → watch-CIO5522I.js} +23 -23
- package/package.json +1 -1
- package/dist/chunk-5MDRUEHP.js.map +0 -1
- package/dist/chunk-COJYQKGH.js.map +0 -7
- package/dist/chunk-DHXKCDAU.js.map +0 -7
- package/dist/chunk-TYJSNW4Z.js.map +0 -7
- package/dist/chunks-XX7RHVQF.js +0 -10
- package/dist/generator-HOY4SZ26.js +0 -18
- package/dist/memo-Q7772VJD.js +0 -15
- package/dist/seal-RZZNRJFL.js +0 -14
- package/dist/visual-25RY7EFI.js +0 -42
- /package/dist/{chunk-PVOLFVXE.js.map → chunk-2PQMHHX4.js.map} +0 -0
- /package/dist/{chunk-6I3X54AQ.js.map → chunk-377GAL46.js.map} +0 -0
- /package/dist/{chunk-ZCMMU34Z.js.map → chunk-3IVEGZI3.js.map} +0 -0
- /package/dist/{chunk-5ULHNZ3P.js.map → chunk-7LW2HG7F.js.map} +0 -0
- /package/dist/{chunk-LSUTK3DH.js.map → chunk-7S4KRBXC.js.map} +0 -0
- /package/dist/{chunk-QNJ2LMUO.js.map → chunk-BXHO5BB5.js.map} +0 -0
- /package/dist/{chunk-HQILGS2O.js.map → chunk-GMYXTUSJ.js.map} +0 -0
- /package/dist/{chunk-6MCJHRSM.js.map → chunk-GZX5UQ4P.js.map} +0 -0
- /package/dist/{chunk-3AYNFK6J.js.map → chunk-IRR32NHL.js.map} +0 -0
- /package/dist/{chunk-FDSFXE2L.js.map → chunk-J4OTJFSW.js.map} +0 -0
- /package/dist/{chunk-TI6S3KZF.js.map → chunk-K5ZUKPU3.js.map} +0 -0
- /package/dist/{chunk-W5AHXAUP.js.map → chunk-LTXF66N6.js.map} +0 -0
- /package/dist/{chunk-MWCJYIJC.js.map → chunk-MPEWMDM2.js.map} +0 -0
- /package/dist/{chunk-ZO4P735U.js.map → chunk-PGBRNQAF.js.map} +0 -0
- /package/dist/{chunk-PFNZQ3XI.js.map → chunk-PQIIJRV2.js.map} +0 -0
- /package/dist/{chunk-S553BW45.js.map → chunk-QAQDSBAC.js.map} +0 -0
- /package/dist/{chunk-QOCUFTT4.js.map → chunk-SE5HAJNL.js.map} +0 -0
- /package/dist/{chunk-KW4JO5CV.js.map → chunk-TYANRH6O.js.map} +0 -0
- /package/dist/{chunk-DZOA5N5W.js.map → chunk-WLHQL53U.js.map} +0 -0
- /package/dist/{chunk-24LB25LZ.js.map → chunk-YDOIXWSF.js.map} +0 -0
- /package/dist/{chunk-GJORKM42.js.map → chunk-YWRAHQTV.js.map} +0 -0
- /package/dist/{chunks-XX7RHVQF.js.map → chunks-A2NELZR2.js.map} +0 -0
- /package/dist/{formula-HMKT4BZL.js.map → formula-LUPB363D.js.map} +0 -0
- /package/dist/{generator-HOY4SZ26.js.map → generator-MK3VLXV2.js.map} +0 -0
- /package/dist/{hancom-QWJBWOOE.js.map → hancom-24SHJFWF.js.map} +0 -0
- /package/dist/{image-ocr-P5AIZNT3.js.map → image-ocr-CSV7OLPX.js.map} +0 -0
- /package/dist/{memo-Q7772VJD.js.map → memo-5G32P322.js.map} +0 -0
- /package/dist/{model-bundle-5CXCIZHZ.js.map → model-bundle-U6ONSDTJ.js.map} +0 -0
- /package/dist/{models-PS4L7NLP.js.map → models-X4FVLSSQ.js.map} +0 -0
- /package/dist/{page-images-QW7IUTUB.js.map → page-images-E67SJN3S.js.map} +0 -0
- /package/dist/{parse-worker-v2-PRH6KVKP.js.map → parse-worker-v2-3VY5X7SF.js.map} +0 -0
- /package/dist/{parser-OQIR5ZMI.js.map → parser-6GFE6B42.js.map} +0 -0
- /package/dist/{pdf-ocr-ZH4JAUTR.js.map → pdf-ocr-MKQURNXT.js.map} +0 -0
- /package/dist/{profile-io-JFRAM2VE.js.map → profile-io-DAZZHP7S.js.map} +0 -0
- /package/dist/{rasterize-JJOMUTYX.js.map → rasterize-BJTBPSDM.js.map} +0 -0
- /package/dist/{redact-doc-A7TW4MNF.js.map → redact-doc-W6H7SXGB.js.map} +0 -0
- /package/dist/{render-VAOMAQV2.js.map → render-HJDMKGMV.js.map} +0 -0
- /package/dist/{rewrite-fallback-7PR7V3AZ.js.map → rewrite-fallback-VKA6BLLT.js.map} +0 -0
- /package/dist/{seal-RZZNRJFL.js.map → seal-5KR6SUIU.js.map} +0 -0
- /package/dist/{setup-6DXZJQCT.js.map → setup-UGWQLJ5Z.js.map} +0 -0
- /package/dist/{to-hwpx-A56R6H27.js.map → to-hwpx-WI5CGWDZ.js.map} +0 -0
- /package/dist/{visual-25RY7EFI.js.map → visual-YDMDCB7Q.js.map} +0 -0
- /package/dist/{watch-7W6CKGX7.js.map → watch-CIO5522I.js.map} +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
assertNetworkAllowed
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-K5ZUKPU3.js";
|
|
4
4
|
|
|
5
5
|
// src/pdf/formula/models.ts
|
|
6
6
|
import { createHash as createHash2 } from "crypto";
|
|
@@ -299,4 +299,4 @@ export {
|
|
|
299
299
|
ensureFormulaModels,
|
|
300
300
|
ensureSingleModel
|
|
301
301
|
};
|
|
302
|
-
//# sourceMappingURL=chunk-
|
|
302
|
+
//# sourceMappingURL=chunk-PGBRNQAF.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
KordocError
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-YDOIXWSF.js";
|
|
4
4
|
|
|
5
5
|
// src/hwpx/profile-io.ts
|
|
6
6
|
import { z } from "zod";
|
|
@@ -88,4 +88,4 @@ export {
|
|
|
88
88
|
formatProfileSchema,
|
|
89
89
|
parseFormatProfileJson
|
|
90
90
|
};
|
|
91
|
-
//# sourceMappingURL=chunk-
|
|
91
|
+
//# sourceMappingURL=chunk-PQIIJRV2.js.map
|
|
@@ -4,20 +4,20 @@ import {
|
|
|
4
4
|
readHwp5DocInfoRecords,
|
|
5
5
|
readHwp5SectionRecords,
|
|
6
6
|
readHwp5SectionStreams
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-QI7LT4AX.js";
|
|
8
8
|
import {
|
|
9
9
|
FLAG_TRACK_CHANGES,
|
|
10
10
|
decompressStream,
|
|
11
11
|
fileTimeText,
|
|
12
12
|
readRecords
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-7S4KRBXC.js";
|
|
14
14
|
import {
|
|
15
15
|
composeDigits
|
|
16
16
|
} from "./chunk-QXQX4AN7.js";
|
|
17
17
|
import {
|
|
18
18
|
KordocError,
|
|
19
19
|
VERSION
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-YDOIXWSF.js";
|
|
21
21
|
|
|
22
22
|
// src/hwp5/to-hwpx/index.ts
|
|
23
23
|
import JSZip from "jszip";
|
|
@@ -2275,7 +2275,7 @@ async function convertToHwpx(input, options) {
|
|
|
2275
2275
|
if (format !== "hwp" && format !== "hwp3" && format !== "hwpml") throw new KordocError(`HWP 문서가 아닙니다 (${format})`);
|
|
2276
2276
|
const engine = options?.engine ?? "kordoc";
|
|
2277
2277
|
if (engine !== "kordoc") {
|
|
2278
|
-
const { hancomAvailable, hwpToHwpxViaHancom } = await import("./hancom-
|
|
2278
|
+
const { hancomAvailable, hwpToHwpxViaHancom } = await import("./hancom-24SHJFWF.js");
|
|
2279
2279
|
if (engine === "hancom" || !options?.password && hancomAvailable()) {
|
|
2280
2280
|
if (options?.password) throw new KordocError('한/글 저장 변환은 열기 암호를 받지 않습니다 — engine "kordoc" 으로 바꾸세요');
|
|
2281
2281
|
return { data: hwpToHwpxViaHancom(bytes, format === "hwpml" ? "hml" : "hwp"), mode: "preserve", engine: "hancom", warnings: [] };
|
|
@@ -2283,7 +2283,7 @@ async function convertToHwpx(input, options) {
|
|
|
2283
2283
|
}
|
|
2284
2284
|
if (format === "hwp") return { data: await hwpToHwpx(bytes, options), mode: "preserve", engine: "kordoc", warnings: [] };
|
|
2285
2285
|
const { parse } = await import("./index.js");
|
|
2286
|
-
const { markdownToHwpx } = await import("./generator-
|
|
2286
|
+
const { markdownToHwpx } = await import("./generator-MK3VLXV2.js");
|
|
2287
2287
|
const parsed = await parse(ab, { password: options?.password });
|
|
2288
2288
|
if (!parsed.success) throw new KordocError(parsed.error ?? "문서를 읽지 못했습니다");
|
|
2289
2289
|
return {
|
|
@@ -2298,4 +2298,4 @@ export {
|
|
|
2298
2298
|
hwpToHwpx,
|
|
2299
2299
|
convertToHwpx
|
|
2300
2300
|
};
|
|
2301
|
-
//# sourceMappingURL=chunk-
|
|
2301
|
+
//# sourceMappingURL=chunk-QAQDSBAC.js.map
|
|
@@ -34,7 +34,7 @@ import {
|
|
|
34
34
|
parseFileHeader,
|
|
35
35
|
readRecords,
|
|
36
36
|
resolveLiteralLt
|
|
37
|
-
} from "./chunk-
|
|
37
|
+
} from "./chunk-7S4KRBXC.js";
|
|
38
38
|
import {
|
|
39
39
|
TOC_ENTRY_BLOCKS,
|
|
40
40
|
takeTocLeaders
|
|
@@ -52,7 +52,7 @@ import {
|
|
|
52
52
|
HEADING_RATIO_H3,
|
|
53
53
|
tidyScriptTags,
|
|
54
54
|
unframeLayoutTables
|
|
55
|
-
} from "./chunk-
|
|
55
|
+
} from "./chunk-YWRAHQTV.js";
|
|
56
56
|
import {
|
|
57
57
|
MAX_COLS,
|
|
58
58
|
MAX_ROWS,
|
|
@@ -65,7 +65,7 @@ import {
|
|
|
65
65
|
flattenLayoutTables,
|
|
66
66
|
markNonLayoutTable,
|
|
67
67
|
sanitizeText
|
|
68
|
-
} from "./chunk-
|
|
68
|
+
} from "./chunk-IRR32NHL.js";
|
|
69
69
|
import {
|
|
70
70
|
circledHangul,
|
|
71
71
|
circledNumber,
|
|
@@ -76,7 +76,7 @@ import {
|
|
|
76
76
|
import {
|
|
77
77
|
KordocError,
|
|
78
78
|
sanitizeHref
|
|
79
|
-
} from "./chunk-
|
|
79
|
+
} from "./chunk-YDOIXWSF.js";
|
|
80
80
|
|
|
81
81
|
// src/memo-notes.ts
|
|
82
82
|
var squash = (s) => sanitizeText(s).replace(/\s+/g, "");
|
|
@@ -2521,7 +2521,7 @@ function detectHwp5Headings(blocks, docInfo, tocTexts) {
|
|
|
2521
2521
|
}
|
|
2522
2522
|
let maxWeight = 0;
|
|
2523
2523
|
for (const [size, weight] of sizeFreq) {
|
|
2524
|
-
if (weight > maxWeight) {
|
|
2524
|
+
if (weight > maxWeight || weight === maxWeight && size < baseFontSize) {
|
|
2525
2525
|
maxWeight = weight;
|
|
2526
2526
|
baseFontSize = size;
|
|
2527
2527
|
}
|
|
@@ -2758,4 +2758,4 @@ export {
|
|
|
2758
2758
|
parseHwp5Document,
|
|
2759
2759
|
extractHwp5MetadataOnly
|
|
2760
2760
|
};
|
|
2761
|
-
//# sourceMappingURL=chunk-
|
|
2761
|
+
//# sourceMappingURL=chunk-QI7LT4AX.js.map
|