@superdoc-dev/cli 0.5.0-next.18 → 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 +25 -29
- 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) {
|
|
@@ -113953,7 +113954,7 @@ var isRegExp = (value) => {
|
|
|
113953
113954
|
if (id2)
|
|
113954
113955
|
return trackedChanges.filter(({ mark }) => mark.attrs.id === id2);
|
|
113955
113956
|
return trackedChanges;
|
|
113956
|
-
}, 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 }) => {
|
|
113957
113958
|
if (!runProps?.elements?.length || !state)
|
|
113958
113959
|
return;
|
|
113959
113960
|
const fontsNode = runProps.elements.find((el) => el.name === "w:rFonts");
|
|
@@ -113987,12 +113988,12 @@ var isRegExp = (value) => {
|
|
|
113987
113988
|
state.kern = kernNode.attributes["w:val"];
|
|
113988
113989
|
}
|
|
113989
113990
|
}, SuperConverter;
|
|
113990
|
-
var
|
|
113991
|
+
var init_SuperConverter_DtIvNa0T_es = __esm(() => {
|
|
113991
113992
|
init_rolldown_runtime_B2q5OVn9_es();
|
|
113992
113993
|
init_jszip_ChlR43oI_es();
|
|
113993
113994
|
init_xml_js_40FWvL78_es();
|
|
113994
113995
|
init_uuid_qzgm05fK_es();
|
|
113995
|
-
|
|
113996
|
+
init_constants_CIF8yzNk_es();
|
|
113996
113997
|
init_unified_BRHLwnjP_es();
|
|
113997
113998
|
init_lib_HnbxUP96_es();
|
|
113998
113999
|
init_lib_DAB30bX1_es();
|
|
@@ -149876,11 +149877,6 @@ var init_SuperConverter_C5AwlcXn_es = __esm(() => {
|
|
|
149876
149877
|
"dropDownList"
|
|
149877
149878
|
]);
|
|
149878
149879
|
liveDocumentCountsCache = /* @__PURE__ */ new WeakMap;
|
|
149879
|
-
DEFAULT_XML_DECLARATION = Object.freeze({ attributes: Object.freeze({
|
|
149880
|
-
version: "1.0",
|
|
149881
|
-
encoding: "UTF-8",
|
|
149882
|
-
standalone: "yes"
|
|
149883
|
-
}) });
|
|
149884
149880
|
API_TO_OOXML_SOURCE_TYPE = Object.freeze({
|
|
149885
149881
|
book: "Book",
|
|
149886
149882
|
journalArticle: "JournalArticle",
|
|
@@ -153984,7 +153980,7 @@ var init_decrypt_docx_CNtHeQDp_es = __esm(() => {
|
|
|
153984
153980
|
]);
|
|
153985
153981
|
});
|
|
153986
153982
|
|
|
153987
|
-
// ../../packages/superdoc/dist/chunks/DocxZipper-
|
|
153983
|
+
// ../../packages/superdoc/dist/chunks/DocxZipper-BHSEH9dd.es.js
|
|
153988
153984
|
function sniffEncoding(u8) {
|
|
153989
153985
|
if (u8.length >= 2) {
|
|
153990
153986
|
const b0 = u8[0], b1 = u8[1];
|
|
@@ -154629,11 +154625,11 @@ var DOCX = "application/vnd.openxmlformats-officedocument.wordprocessingml.docum
|
|
|
154629
154625
|
return `image/${MIME_TYPE_FOR_EXT[detectedType] || detectedType}`;
|
|
154630
154626
|
}
|
|
154631
154627
|
}, DocxZipper_default;
|
|
154632
|
-
var
|
|
154628
|
+
var init_DocxZipper_BHSEH9dd_es = __esm(() => {
|
|
154633
154629
|
init_rolldown_runtime_B2q5OVn9_es();
|
|
154634
154630
|
init_jszip_ChlR43oI_es();
|
|
154635
154631
|
init_xml_js_40FWvL78_es();
|
|
154636
|
-
|
|
154632
|
+
init_constants_CIF8yzNk_es();
|
|
154637
154633
|
init_dist_Cwvmda4Q_es();
|
|
154638
154634
|
MANAGED_PACKAGE_PARTS = [
|
|
154639
154635
|
{
|
|
@@ -172503,7 +172499,7 @@ var init_remark_gfm_CjV8kaUy_es = __esm(() => {
|
|
|
172503
172499
|
init_remark_gfm_z_sDF4ss_es();
|
|
172504
172500
|
});
|
|
172505
172501
|
|
|
172506
|
-
// ../../packages/superdoc/dist/chunks/src-
|
|
172502
|
+
// ../../packages/superdoc/dist/chunks/src-CEDaw2yY.es.js
|
|
172507
172503
|
function deleteProps(obj, propOrProps) {
|
|
172508
172504
|
const props = typeof propOrProps === "string" ? [propOrProps] : propOrProps;
|
|
172509
172505
|
const removeNested = (target, pathParts, index2 = 0) => {
|
|
@@ -253912,16 +253908,16 @@ var Node$13 = class Node$14 {
|
|
|
253912
253908
|
return;
|
|
253913
253909
|
console.log(...args$1);
|
|
253914
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;
|
|
253915
|
-
var
|
|
253911
|
+
var init_src_CEDaw2yY_es = __esm(() => {
|
|
253916
253912
|
init_rolldown_runtime_B2q5OVn9_es();
|
|
253917
|
-
|
|
253913
|
+
init_SuperConverter_DtIvNa0T_es();
|
|
253918
253914
|
init_jszip_ChlR43oI_es();
|
|
253919
253915
|
init_uuid_qzgm05fK_es();
|
|
253920
|
-
|
|
253916
|
+
init_constants_CIF8yzNk_es();
|
|
253921
253917
|
init_unified_BRHLwnjP_es();
|
|
253922
253918
|
init_remark_gfm_z_sDF4ss_es();
|
|
253923
253919
|
init_remark_stringify_D8vxv_XI_es();
|
|
253924
|
-
|
|
253920
|
+
init_DocxZipper_BHSEH9dd_es();
|
|
253925
253921
|
init_dist_Cwvmda4Q_es();
|
|
253926
253922
|
init_vue_DMgTaOx9_es();
|
|
253927
253923
|
init__plugin_vue_export_helper_HmhZBO0u_es();
|
|
@@ -287864,13 +287860,13 @@ var init_zipper_YmNpPIyc_es = __esm(() => {
|
|
|
287864
287860
|
|
|
287865
287861
|
// ../../packages/superdoc/dist/super-editor.es.js
|
|
287866
287862
|
var init_super_editor_es = __esm(() => {
|
|
287867
|
-
|
|
287868
|
-
|
|
287863
|
+
init_src_CEDaw2yY_es();
|
|
287864
|
+
init_SuperConverter_DtIvNa0T_es();
|
|
287869
287865
|
init_jszip_ChlR43oI_es();
|
|
287870
287866
|
init_xml_js_40FWvL78_es();
|
|
287871
|
-
|
|
287867
|
+
init_constants_CIF8yzNk_es();
|
|
287872
287868
|
init_unified_BRHLwnjP_es();
|
|
287873
|
-
|
|
287869
|
+
init_DocxZipper_BHSEH9dd_es();
|
|
287874
287870
|
init_dist_Cwvmda4Q_es();
|
|
287875
287871
|
init_vue_DMgTaOx9_es();
|
|
287876
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"
|
|
@@ -25,20 +25,20 @@
|
|
|
25
25
|
"@types/ws": "^8.5.13",
|
|
26
26
|
"typescript": "^5.9.2",
|
|
27
27
|
"@superdoc/document-api": "0.0.1",
|
|
28
|
+
"@superdoc/pm-adapter": "0.0.0",
|
|
28
29
|
"@superdoc/super-editor": "0.0.1",
|
|
29
|
-
"superdoc": "1.23.0"
|
|
30
|
-
"@superdoc/pm-adapter": "0.0.0"
|
|
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",
|