@superdoc-dev/cli 0.5.0-next.17 → 0.5.0-next.19
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 +27 -30
- package/package.json +8 -8
package/dist/index.js
CHANGED
|
@@ -56734,7 +56734,7 @@ var init_uuid_qzgm05fK_es = __esm(() => {
|
|
|
56734
56734
|
v5_default = v35("v5", 80, sha1);
|
|
56735
56735
|
});
|
|
56736
56736
|
|
|
56737
|
-
// ../../packages/superdoc/dist/chunks/constants-
|
|
56737
|
+
// ../../packages/superdoc/dist/chunks/constants-CIF8yzNk.es.js
|
|
56738
56738
|
function computeCrc32Hex(data) {
|
|
56739
56739
|
let crc = 4294967295;
|
|
56740
56740
|
for (let i2 = 0;i2 < data.length; i2++)
|
|
@@ -57125,8 +57125,8 @@ var import_lib, CRC32_TABLE, REMOTE_RESOURCE_PATTERN, DATA_URI_PATTERN, getArray
|
|
|
57125
57125
|
if (bytes.length >= 12 && bytes[0] === 82 && bytes[1] === 73 && bytes[2] === 70 && bytes[3] === 70 && bytes[8] === 87 && bytes[9] === 69 && bytes[10] === 66 && bytes[11] === 80)
|
|
57126
57126
|
return "webp";
|
|
57127
57127
|
return null;
|
|
57128
|
-
}, COMMENT_FILE_BASENAMES, COMMENT_RELATIONSHIP_TYPES;
|
|
57129
|
-
var
|
|
57128
|
+
}, COMMENT_FILE_BASENAMES, DEFAULT_XML_DECLARATION, COMMENT_RELATIONSHIP_TYPES;
|
|
57129
|
+
var init_constants_CIF8yzNk_es = __esm(() => {
|
|
57130
57130
|
init_xml_js_40FWvL78_es();
|
|
57131
57131
|
import_lib = require_lib();
|
|
57132
57132
|
CRC32_TABLE = new Uint32Array(256);
|
|
@@ -57162,6 +57162,11 @@ var init_constants_Qqwopz80_es = __esm(() => {
|
|
|
57162
57162
|
"commentsIds.xml",
|
|
57163
57163
|
"commentsExtensible.xml"
|
|
57164
57164
|
];
|
|
57165
|
+
DEFAULT_XML_DECLARATION = Object.freeze({ attributes: Object.freeze({
|
|
57166
|
+
version: "1.0",
|
|
57167
|
+
encoding: "UTF-8",
|
|
57168
|
+
standalone: "yes"
|
|
57169
|
+
}) });
|
|
57165
57170
|
COMMENT_RELATIONSHIP_TYPES = new Set([
|
|
57166
57171
|
"http://schemas.openxmlformats.org/officeDocument/2006/relationships/comments",
|
|
57167
57172
|
"http://schemas.microsoft.com/office/2011/relationships/commentsExtended",
|
|
@@ -63334,7 +63339,7 @@ var init_remark_gfm_z_sDF4ss_es = __esm(() => {
|
|
|
63334
63339
|
emptyOptions2 = {};
|
|
63335
63340
|
});
|
|
63336
63341
|
|
|
63337
|
-
// ../../packages/superdoc/dist/chunks/SuperConverter-
|
|
63342
|
+
// ../../packages/superdoc/dist/chunks/SuperConverter-DtIvNa0T.es.js
|
|
63338
63343
|
function getExtensionConfigField(extension$1, field, context = { name: "" }) {
|
|
63339
63344
|
const fieldValue = extension$1.config[field];
|
|
63340
63345
|
if (typeof fieldValue === "function")
|
|
@@ -113213,11 +113218,7 @@ var isRegExp = (value) => {
|
|
|
113213
113218
|
}
|
|
113214
113219
|
#generate_xml_as_list(data, debug = false) {
|
|
113215
113220
|
const json = JSON.parse(JSON.stringify(data));
|
|
113216
|
-
const declaration = this.converter.declaration?.attributes ??
|
|
113217
|
-
version: "1.0",
|
|
113218
|
-
encoding: "UTF-8",
|
|
113219
|
-
standalone: "yes"
|
|
113220
|
-
};
|
|
113221
|
+
const declaration = this.converter.declaration?.attributes ?? DEFAULT_XML_DECLARATION.attributes;
|
|
113221
113222
|
return [`<?xml${Object.entries(declaration).map(([key, value]) => ` ${key}="${value}"`).join("")}?>`, ...this.#generateXml(json, debug)];
|
|
113222
113223
|
}
|
|
113223
113224
|
#replaceSpecialCharacters(text$2) {
|
|
@@ -113375,9 +113376,10 @@ var isRegExp = (value) => {
|
|
|
113375
113376
|
const exportStrategy = typeof threadingProfile === "string" ? threadingProfile : "word";
|
|
113376
113377
|
const profile = typeof threadingProfile === "string" ? null : threadingProfile;
|
|
113377
113378
|
const hasThreadedComments = comments.some((comment) => comment.threadingParentCommentId || comment.parentCommentId);
|
|
113379
|
+
const hasResolvedComments = comments.some((comment) => comment.resolvedTime || comment.isDone);
|
|
113378
113380
|
const shouldGenerateCommentsExtended = profile ? profile.defaultStyle === "commentsExtended" || profile.mixed || comments.some((comment) => resolveThreadingStyle(comment, profile) === "commentsExtended") : exportStrategy !== "google-docs";
|
|
113379
113381
|
const shouldIncludeForThreads = hasThreadedComments;
|
|
113380
|
-
if (!shouldGenerateCommentsExtended && !shouldIncludeForThreads)
|
|
113382
|
+
if (!shouldGenerateCommentsExtended && !shouldIncludeForThreads && !hasResolvedComments)
|
|
113381
113383
|
return null;
|
|
113382
113384
|
const xmlCopy = carbonCopy(commentsExtendedXml);
|
|
113383
113385
|
const commentsEx = comments.map((comment) => {
|
|
@@ -113952,7 +113954,7 @@ var isRegExp = (value) => {
|
|
|
113952
113954
|
if (id2)
|
|
113953
113955
|
return trackedChanges.filter(({ mark }) => mark.attrs.id === id2);
|
|
113954
113956
|
return trackedChanges;
|
|
113955
|
-
}, DERIVED_ID_LENGTH = 24, groupedCache, SDT_NODE_NAMES, SDT_BLOCK_NAME = "structuredContentBlock", VALID_CONTROL_TYPES, VALID_LOCK_MODES2, VALID_APPEARANCES, FIELD_LIKE_SDT_TYPES, liveDocumentCountsCache, BIBLIOGRAPHY_NAMESPACE_URI = "http://schemas.openxmlformats.org/officeDocument/2006/bibliography", CUSTOM_XML_RELATIONSHIP_TYPE = "http://schemas.openxmlformats.org/officeDocument/2006/relationships/customXml", CUSTOM_XML_PROPS_RELATIONSHIP_TYPE = "http://schemas.openxmlformats.org/officeDocument/2006/relationships/customXmlProps", DEFAULT_SELECTED_STYLE = "/APA.XSL", DEFAULT_STYLE_NAME = "APA", DEFAULT_VERSION = "6",
|
|
113957
|
+
}, DERIVED_ID_LENGTH = 24, groupedCache, SDT_NODE_NAMES, SDT_BLOCK_NAME = "structuredContentBlock", VALID_CONTROL_TYPES, VALID_LOCK_MODES2, VALID_APPEARANCES, FIELD_LIKE_SDT_TYPES, liveDocumentCountsCache, BIBLIOGRAPHY_NAMESPACE_URI = "http://schemas.openxmlformats.org/officeDocument/2006/bibliography", CUSTOM_XML_RELATIONSHIP_TYPE = "http://schemas.openxmlformats.org/officeDocument/2006/relationships/customXml", CUSTOM_XML_PROPS_RELATIONSHIP_TYPE = "http://schemas.openxmlformats.org/officeDocument/2006/relationships/customXmlProps", DEFAULT_SELECTED_STYLE = "/APA.XSL", DEFAULT_STYLE_NAME = "APA", DEFAULT_VERSION = "6", API_TO_OOXML_SOURCE_TYPE, OOXML_TO_API_SOURCE_TYPE, SIMPLE_FIELD_TO_XML_TAG, XML_TAG_TO_SIMPLE_FIELD, import_lib2, FONT_FAMILY_FALLBACKS, DEFAULT_GENERIC_FALLBACK = "sans-serif", DEFAULT_FONT_SIZE_PT = 10, CURRENT_APP_VERSION = "1.23.0", collectRunDefaultProperties = (runProps, { allowOverrideTypeface = true, allowOverrideSize = true, themeResolver, state }) => {
|
|
113956
113958
|
if (!runProps?.elements?.length || !state)
|
|
113957
113959
|
return;
|
|
113958
113960
|
const fontsNode = runProps.elements.find((el) => el.name === "w:rFonts");
|
|
@@ -113986,12 +113988,12 @@ var isRegExp = (value) => {
|
|
|
113986
113988
|
state.kern = kernNode.attributes["w:val"];
|
|
113987
113989
|
}
|
|
113988
113990
|
}, SuperConverter;
|
|
113989
|
-
var
|
|
113991
|
+
var init_SuperConverter_DtIvNa0T_es = __esm(() => {
|
|
113990
113992
|
init_rolldown_runtime_B2q5OVn9_es();
|
|
113991
113993
|
init_jszip_ChlR43oI_es();
|
|
113992
113994
|
init_xml_js_40FWvL78_es();
|
|
113993
113995
|
init_uuid_qzgm05fK_es();
|
|
113994
|
-
|
|
113996
|
+
init_constants_CIF8yzNk_es();
|
|
113995
113997
|
init_unified_BRHLwnjP_es();
|
|
113996
113998
|
init_lib_HnbxUP96_es();
|
|
113997
113999
|
init_lib_DAB30bX1_es();
|
|
@@ -149875,11 +149877,6 @@ var init_SuperConverter_B4A4OihU_es = __esm(() => {
|
|
|
149875
149877
|
"dropDownList"
|
|
149876
149878
|
]);
|
|
149877
149879
|
liveDocumentCountsCache = /* @__PURE__ */ new WeakMap;
|
|
149878
|
-
DEFAULT_XML_DECLARATION = Object.freeze({ attributes: Object.freeze({
|
|
149879
|
-
version: "1.0",
|
|
149880
|
-
encoding: "UTF-8",
|
|
149881
|
-
standalone: "yes"
|
|
149882
|
-
}) });
|
|
149883
149880
|
API_TO_OOXML_SOURCE_TYPE = Object.freeze({
|
|
149884
149881
|
book: "Book",
|
|
149885
149882
|
journalArticle: "JournalArticle",
|
|
@@ -153983,7 +153980,7 @@ var init_decrypt_docx_CNtHeQDp_es = __esm(() => {
|
|
|
153983
153980
|
]);
|
|
153984
153981
|
});
|
|
153985
153982
|
|
|
153986
|
-
// ../../packages/superdoc/dist/chunks/DocxZipper-
|
|
153983
|
+
// ../../packages/superdoc/dist/chunks/DocxZipper-BHSEH9dd.es.js
|
|
153987
153984
|
function sniffEncoding(u8) {
|
|
153988
153985
|
if (u8.length >= 2) {
|
|
153989
153986
|
const b0 = u8[0], b1 = u8[1];
|
|
@@ -154628,11 +154625,11 @@ var DOCX = "application/vnd.openxmlformats-officedocument.wordprocessingml.docum
|
|
|
154628
154625
|
return `image/${MIME_TYPE_FOR_EXT[detectedType] || detectedType}`;
|
|
154629
154626
|
}
|
|
154630
154627
|
}, DocxZipper_default;
|
|
154631
|
-
var
|
|
154628
|
+
var init_DocxZipper_BHSEH9dd_es = __esm(() => {
|
|
154632
154629
|
init_rolldown_runtime_B2q5OVn9_es();
|
|
154633
154630
|
init_jszip_ChlR43oI_es();
|
|
154634
154631
|
init_xml_js_40FWvL78_es();
|
|
154635
|
-
|
|
154632
|
+
init_constants_CIF8yzNk_es();
|
|
154636
154633
|
init_dist_Cwvmda4Q_es();
|
|
154637
154634
|
MANAGED_PACKAGE_PARTS = [
|
|
154638
154635
|
{
|
|
@@ -172502,7 +172499,7 @@ var init_remark_gfm_CjV8kaUy_es = __esm(() => {
|
|
|
172502
172499
|
init_remark_gfm_z_sDF4ss_es();
|
|
172503
172500
|
});
|
|
172504
172501
|
|
|
172505
|
-
// ../../packages/superdoc/dist/chunks/src-
|
|
172502
|
+
// ../../packages/superdoc/dist/chunks/src-CEDaw2yY.es.js
|
|
172506
172503
|
function deleteProps(obj, propOrProps) {
|
|
172507
172504
|
const props = typeof propOrProps === "string" ? [propOrProps] : propOrProps;
|
|
172508
172505
|
const removeNested = (target, pathParts, index2 = 0) => {
|
|
@@ -253911,16 +253908,16 @@ var Node$13 = class Node$14 {
|
|
|
253911
253908
|
return;
|
|
253912
253909
|
console.log(...args$1);
|
|
253913
253910
|
}, 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;
|
|
253914
|
-
var
|
|
253911
|
+
var init_src_CEDaw2yY_es = __esm(() => {
|
|
253915
253912
|
init_rolldown_runtime_B2q5OVn9_es();
|
|
253916
|
-
|
|
253913
|
+
init_SuperConverter_DtIvNa0T_es();
|
|
253917
253914
|
init_jszip_ChlR43oI_es();
|
|
253918
253915
|
init_uuid_qzgm05fK_es();
|
|
253919
|
-
|
|
253916
|
+
init_constants_CIF8yzNk_es();
|
|
253920
253917
|
init_unified_BRHLwnjP_es();
|
|
253921
253918
|
init_remark_gfm_z_sDF4ss_es();
|
|
253922
253919
|
init_remark_stringify_D8vxv_XI_es();
|
|
253923
|
-
|
|
253920
|
+
init_DocxZipper_BHSEH9dd_es();
|
|
253924
253921
|
init_dist_Cwvmda4Q_es();
|
|
253925
253922
|
init_vue_DMgTaOx9_es();
|
|
253926
253923
|
init__plugin_vue_export_helper_HmhZBO0u_es();
|
|
@@ -287863,13 +287860,13 @@ var init_zipper_YmNpPIyc_es = __esm(() => {
|
|
|
287863
287860
|
|
|
287864
287861
|
// ../../packages/superdoc/dist/super-editor.es.js
|
|
287865
287862
|
var init_super_editor_es = __esm(() => {
|
|
287866
|
-
|
|
287867
|
-
|
|
287863
|
+
init_src_CEDaw2yY_es();
|
|
287864
|
+
init_SuperConverter_DtIvNa0T_es();
|
|
287868
287865
|
init_jszip_ChlR43oI_es();
|
|
287869
287866
|
init_xml_js_40FWvL78_es();
|
|
287870
|
-
|
|
287867
|
+
init_constants_CIF8yzNk_es();
|
|
287871
287868
|
init_unified_BRHLwnjP_es();
|
|
287872
|
-
|
|
287869
|
+
init_DocxZipper_BHSEH9dd_es();
|
|
287873
287870
|
init_dist_Cwvmda4Q_es();
|
|
287874
287871
|
init_vue_DMgTaOx9_es();
|
|
287875
287872
|
init_eventemitter3_DGBTyUUP_es();
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@superdoc-dev/cli",
|
|
3
|
-
"version": "0.5.0-next.
|
|
3
|
+
"version": "0.5.0-next.19",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"bin": {
|
|
6
6
|
"superdoc": "./dist/index.js"
|
|
@@ -26,19 +26,19 @@
|
|
|
26
26
|
"typescript": "^5.9.2",
|
|
27
27
|
"@superdoc/document-api": "0.0.1",
|
|
28
28
|
"@superdoc/pm-adapter": "0.0.0",
|
|
29
|
-
"superdoc": "
|
|
30
|
-
"
|
|
29
|
+
"@superdoc/super-editor": "0.0.1",
|
|
30
|
+
"superdoc": "1.23.0"
|
|
31
31
|
},
|
|
32
32
|
"module": "src/index.ts",
|
|
33
33
|
"publishConfig": {
|
|
34
34
|
"access": "public"
|
|
35
35
|
},
|
|
36
36
|
"optionalDependencies": {
|
|
37
|
-
"@superdoc-dev/cli-darwin-arm64": "0.5.0-next.
|
|
38
|
-
"@superdoc-dev/cli-darwin-x64": "0.5.0-next.
|
|
39
|
-
"@superdoc-dev/cli-linux-
|
|
40
|
-
"@superdoc-dev/cli-
|
|
41
|
-
"@superdoc-dev/cli-
|
|
37
|
+
"@superdoc-dev/cli-darwin-arm64": "0.5.0-next.19",
|
|
38
|
+
"@superdoc-dev/cli-darwin-x64": "0.5.0-next.19",
|
|
39
|
+
"@superdoc-dev/cli-linux-arm64": "0.5.0-next.19",
|
|
40
|
+
"@superdoc-dev/cli-windows-x64": "0.5.0-next.19",
|
|
41
|
+
"@superdoc-dev/cli-linux-x64": "0.5.0-next.19"
|
|
42
42
|
},
|
|
43
43
|
"scripts": {
|
|
44
44
|
"predev": "node scripts/ensure-superdoc-build.js",
|