@superdoc-dev/cli 0.12.0 → 0.12.1-next.2
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 +21 -21
- package/package.json +9 -9
package/dist/index.js
CHANGED
|
@@ -67593,7 +67593,7 @@ var init_remark_gfm_BhnWr3yf_es = __esm(() => {
|
|
|
67593
67593
|
emptyOptions2 = {};
|
|
67594
67594
|
});
|
|
67595
67595
|
|
|
67596
|
-
// ../../packages/superdoc/dist/chunks/SuperConverter-
|
|
67596
|
+
// ../../packages/superdoc/dist/chunks/SuperConverter-opYK-HD4.es.js
|
|
67597
67597
|
function getExtensionConfigField(extension$1, field, context = { name: "" }) {
|
|
67598
67598
|
const fieldValue = extension$1.config[field];
|
|
67599
67599
|
if (typeof fieldValue === "function")
|
|
@@ -121535,7 +121535,7 @@ var isRegExp = (value) => {
|
|
|
121535
121535
|
if (id2)
|
|
121536
121536
|
return trackedChanges.filter(({ mark }) => mark.attrs.id === id2);
|
|
121537
121537
|
return trackedChanges;
|
|
121538
|
-
}, DERIVED_ID_LENGTH = 24, groupedCache, SDT_NODE_NAMES, SDT_BLOCK_NAME = "structuredContentBlock", SDT_INLINE_NAME = "structuredContent", SDT_NODE_TYPES, 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.
|
|
121538
|
+
}, DERIVED_ID_LENGTH = 24, groupedCache, SDT_NODE_NAMES, SDT_BLOCK_NAME = "structuredContentBlock", SDT_INLINE_NAME = "structuredContent", SDT_NODE_TYPES, 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.35.0", collectRunDefaultProperties = (runProps, { allowOverrideTypeface = true, allowOverrideSize = true, themeResolver, state }) => {
|
|
121539
121539
|
if (!runProps?.elements?.length || !state)
|
|
121540
121540
|
return;
|
|
121541
121541
|
const fontsNode = runProps.elements.find((el) => el.name === "w:rFonts");
|
|
@@ -121569,7 +121569,7 @@ var isRegExp = (value) => {
|
|
|
121569
121569
|
state.kern = kernNode.attributes["w:val"];
|
|
121570
121570
|
}
|
|
121571
121571
|
}, SuperConverter;
|
|
121572
|
-
var
|
|
121572
|
+
var init_SuperConverter_opYK_HD4_es = __esm(() => {
|
|
121573
121573
|
init_rolldown_runtime_Bg48TavK_es();
|
|
121574
121574
|
init_jszip_C49i9kUs_es();
|
|
121575
121575
|
init_xml_js_CqGKpaft_es();
|
|
@@ -159749,7 +159749,7 @@ var init_SuperConverter_BptSHzcb_es = __esm(() => {
|
|
|
159749
159749
|
};
|
|
159750
159750
|
});
|
|
159751
159751
|
|
|
159752
|
-
// ../../packages/superdoc/dist/chunks/create-headless-toolbar-
|
|
159752
|
+
// ../../packages/superdoc/dist/chunks/create-headless-toolbar-xjqjtPWl.es.js
|
|
159753
159753
|
function parseSizeUnit(val = "0") {
|
|
159754
159754
|
const length3 = val.toString() || "0";
|
|
159755
159755
|
const value = Number.parseFloat(length3);
|
|
@@ -169772,8 +169772,8 @@ var CSS_DIMENSION_REGEX, DOM_SIZE_UNITS, Extension = class Extension2 {
|
|
|
169772
169772
|
}
|
|
169773
169773
|
};
|
|
169774
169774
|
};
|
|
169775
|
-
var
|
|
169776
|
-
|
|
169775
|
+
var init_create_headless_toolbar_xjqjtPWl_es = __esm(() => {
|
|
169776
|
+
init_SuperConverter_opYK_HD4_es();
|
|
169777
169777
|
init_uuid_qzgm05fK_es();
|
|
169778
169778
|
init_constants_DrU4EASo_es();
|
|
169779
169779
|
init_dist_B8HfvhaK_es();
|
|
@@ -218978,7 +218978,7 @@ var init_remark_gfm_eZN6yzWQ_es = __esm(() => {
|
|
|
218978
218978
|
init_remark_gfm_BhnWr3yf_es();
|
|
218979
218979
|
});
|
|
218980
218980
|
|
|
218981
|
-
// ../../packages/superdoc/dist/chunks/src-
|
|
218981
|
+
// ../../packages/superdoc/dist/chunks/src-BI5eBQvD.es.js
|
|
218982
218982
|
function deleteProps(obj, propOrProps) {
|
|
218983
218983
|
const props = typeof propOrProps === "string" ? [propOrProps] : propOrProps;
|
|
218984
218984
|
const removeNested = (target, pathParts, index2 = 0) => {
|
|
@@ -219761,7 +219761,7 @@ function prosemirrorToYXmlFragment(doc$12, xmlFragment) {
|
|
|
219761
219761
|
}
|
|
219762
219762
|
function getSuperdocVersion() {
|
|
219763
219763
|
try {
|
|
219764
|
-
return "1.
|
|
219764
|
+
return "1.35.0";
|
|
219765
219765
|
} catch {
|
|
219766
219766
|
return "unknown";
|
|
219767
219767
|
}
|
|
@@ -290489,7 +290489,7 @@ var Node$13 = class Node$14 {
|
|
|
290489
290489
|
domAvailabilityCache = false;
|
|
290490
290490
|
return false;
|
|
290491
290491
|
}
|
|
290492
|
-
}, summaryVersion = "1.
|
|
290492
|
+
}, summaryVersion = "1.35.0", nodeKeys, markKeys, transformListsInCopiedContent = (html3) => {
|
|
290493
290493
|
const container = document.createElement("div");
|
|
290494
290494
|
container.innerHTML = html3;
|
|
290495
290495
|
const result = [];
|
|
@@ -291664,7 +291664,7 @@ var Node$13 = class Node$14 {
|
|
|
291664
291664
|
return () => {};
|
|
291665
291665
|
const handle3 = setInterval(callback, intervalMs);
|
|
291666
291666
|
return () => clearInterval(handle3);
|
|
291667
|
-
}, HISTORY_UNSAFE_OPS, CANONICAL_COMMENT_IGNORED_KEYS, INITIAL_HASH, ROUND_CONSTANTS, V1_COVERAGE, V2_COVERAGE, SNAPSHOT_VERSION_V2 = "sd-diff-snapshot/v2", PAYLOAD_VERSION_V1 = "sd-diff-payload/v1", PAYLOAD_VERSION_V2 = "sd-diff-payload/v2", ENGINE_ID = "super-editor", STAGED_CONVERTER_KEYS, DiffServiceError, TC_LEVEL_MIN = 1, TC_LEVEL_MAX = 9, ALLOWED_WRAP_ATTRS, WRAP_TYPES_SUPPORTING_SIDE, WRAP_TYPES_SUPPORTING_DISTANCES, RELATIVE_HEIGHT_MIN = 0, RELATIVE_HEIGHT_MAX = 4294967295, FORBIDDEN_RAW_PATCH_NAMES, CONTROL_TYPE_SDT_PR_ELEMENTS, DEFAULT_CHECKBOX_SYMBOL_FONT2 = "MS Gothic", DEFAULT_CHECKBOX_CHECKED_HEX2 = "2612", DEFAULT_CHECKBOX_UNCHECKED_HEX2 = "2610", VARIANT_ORDER, KIND_ORDER, HEADER_RELATIONSHIP_TYPE3 = "http://schemas.openxmlformats.org/officeDocument/2006/relationships/header", FOOTER_RELATIONSHIP_TYPE3 = "http://schemas.openxmlformats.org/officeDocument/2006/relationships/footer", DOCUMENT_RELS_PATH2 = "word/_rels/document.xml.rels", HEADER_FILE_PATTERN2, FOOTER_FILE_PATTERN2, SPECIAL_NOTE_TYPES, BOOKMARK_SCAN_REVISION_PREFIX = "bookmark-scan:", import_lib4, CUSTOM_XML_DATA_RELATIONSHIP_TYPE = "http://schemas.openxmlformats.org/officeDocument/2006/relationships/customXml", CUSTOM_XML_PROPS_RELATIONSHIP_TYPE2 = "http://schemas.openxmlformats.org/officeDocument/2006/relationships/customXmlProps", CUSTOM_XML_DATASTORE_NAMESPACE = "http://schemas.openxmlformats.org/officeDocument/2006/customXml", SETTINGS_PART, RESTART_POLICY_TO_OOXML, VALID_DISPLAYS, REFERENCE_BLOCK_PREFIX, CAPTION_STYLE_NAMES, CAPTION_PARAGRAPH_STYLE_ID = "Caption", CAPTION_FORMAT_TO_OOXML, DOCUMENT_STAT_FIELD_TYPES, TOA_LEADER_REVERSE_MAP, EDGE_NODE_TYPES, CONTENT_TYPES_PART_ID = "[Content_Types].xml", CONTENT_TYPES_NS = "http://schemas.openxmlformats.org/package/2006/content-types", contentTypesPartDescriptor, empty_exports, init_empty, CURRENT_APP_VERSION2 = "1.
|
|
291667
|
+
}, HISTORY_UNSAFE_OPS, CANONICAL_COMMENT_IGNORED_KEYS, INITIAL_HASH, ROUND_CONSTANTS, V1_COVERAGE, V2_COVERAGE, SNAPSHOT_VERSION_V2 = "sd-diff-snapshot/v2", PAYLOAD_VERSION_V1 = "sd-diff-payload/v1", PAYLOAD_VERSION_V2 = "sd-diff-payload/v2", ENGINE_ID = "super-editor", STAGED_CONVERTER_KEYS, DiffServiceError, TC_LEVEL_MIN = 1, TC_LEVEL_MAX = 9, ALLOWED_WRAP_ATTRS, WRAP_TYPES_SUPPORTING_SIDE, WRAP_TYPES_SUPPORTING_DISTANCES, RELATIVE_HEIGHT_MIN = 0, RELATIVE_HEIGHT_MAX = 4294967295, FORBIDDEN_RAW_PATCH_NAMES, CONTROL_TYPE_SDT_PR_ELEMENTS, DEFAULT_CHECKBOX_SYMBOL_FONT2 = "MS Gothic", DEFAULT_CHECKBOX_CHECKED_HEX2 = "2612", DEFAULT_CHECKBOX_UNCHECKED_HEX2 = "2610", VARIANT_ORDER, KIND_ORDER, HEADER_RELATIONSHIP_TYPE3 = "http://schemas.openxmlformats.org/officeDocument/2006/relationships/header", FOOTER_RELATIONSHIP_TYPE3 = "http://schemas.openxmlformats.org/officeDocument/2006/relationships/footer", DOCUMENT_RELS_PATH2 = "word/_rels/document.xml.rels", HEADER_FILE_PATTERN2, FOOTER_FILE_PATTERN2, SPECIAL_NOTE_TYPES, BOOKMARK_SCAN_REVISION_PREFIX = "bookmark-scan:", import_lib4, CUSTOM_XML_DATA_RELATIONSHIP_TYPE = "http://schemas.openxmlformats.org/officeDocument/2006/relationships/customXml", CUSTOM_XML_PROPS_RELATIONSHIP_TYPE2 = "http://schemas.openxmlformats.org/officeDocument/2006/relationships/customXmlProps", CUSTOM_XML_DATASTORE_NAMESPACE = "http://schemas.openxmlformats.org/officeDocument/2006/customXml", SETTINGS_PART, RESTART_POLICY_TO_OOXML, VALID_DISPLAYS, REFERENCE_BLOCK_PREFIX, CAPTION_STYLE_NAMES, CAPTION_PARAGRAPH_STYLE_ID = "Caption", CAPTION_FORMAT_TO_OOXML, DOCUMENT_STAT_FIELD_TYPES, TOA_LEADER_REVERSE_MAP, EDGE_NODE_TYPES, CONTENT_TYPES_PART_ID = "[Content_Types].xml", CONTENT_TYPES_NS = "http://schemas.openxmlformats.org/package/2006/content-types", contentTypesPartDescriptor, empty_exports, init_empty, CURRENT_APP_VERSION2 = "1.35.0", PIXELS_PER_INCH2 = 96, MAX_HEIGHT_BUFFER_PX = 50, MAX_WIDTH_BUFFER_PX = 20, cloneExtensionInstance = (extension3) => {
|
|
291668
291668
|
const extensionLike = extension3;
|
|
291669
291669
|
const config2 = extensionLike?.config;
|
|
291670
291670
|
const ExtensionCtor = extensionLike?.constructor;
|
|
@@ -307486,13 +307486,13 @@ menclose::after {
|
|
|
307486
307486
|
return;
|
|
307487
307487
|
console.log(...args$1);
|
|
307488
307488
|
}, 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;
|
|
307489
|
-
var
|
|
307489
|
+
var init_src_BI5eBQvD_es = __esm(() => {
|
|
307490
307490
|
init_rolldown_runtime_Bg48TavK_es();
|
|
307491
|
-
|
|
307491
|
+
init_SuperConverter_opYK_HD4_es();
|
|
307492
307492
|
init_jszip_C49i9kUs_es();
|
|
307493
307493
|
init_xml_js_CqGKpaft_es();
|
|
307494
307494
|
init_uuid_qzgm05fK_es();
|
|
307495
|
-
|
|
307495
|
+
init_create_headless_toolbar_xjqjtPWl_es();
|
|
307496
307496
|
init_constants_DrU4EASo_es();
|
|
307497
307497
|
init_dist_B8HfvhaK_es();
|
|
307498
307498
|
init_unified_Dsuw2be5_es();
|
|
@@ -345265,11 +345265,11 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
345265
345265
|
];
|
|
345266
345266
|
});
|
|
345267
345267
|
|
|
345268
|
-
// ../../packages/superdoc/dist/chunks/create-super-doc-ui-
|
|
345268
|
+
// ../../packages/superdoc/dist/chunks/create-super-doc-ui-DqYtj3Jy.es.js
|
|
345269
345269
|
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;
|
|
345270
|
-
var
|
|
345271
|
-
|
|
345272
|
-
|
|
345270
|
+
var init_create_super_doc_ui_DqYtj3Jy_es = __esm(() => {
|
|
345271
|
+
init_SuperConverter_opYK_HD4_es();
|
|
345272
|
+
init_create_headless_toolbar_xjqjtPWl_es();
|
|
345273
345273
|
MOD_ALIASES = new Set([
|
|
345274
345274
|
"Mod",
|
|
345275
345275
|
"Meta",
|
|
@@ -345311,16 +345311,16 @@ var init_zipper_yaJVJ4z9_es = __esm(() => {
|
|
|
345311
345311
|
|
|
345312
345312
|
// ../../packages/superdoc/dist/super-editor.es.js
|
|
345313
345313
|
var init_super_editor_es = __esm(() => {
|
|
345314
|
-
|
|
345315
|
-
|
|
345314
|
+
init_src_BI5eBQvD_es();
|
|
345315
|
+
init_SuperConverter_opYK_HD4_es();
|
|
345316
345316
|
init_jszip_C49i9kUs_es();
|
|
345317
345317
|
init_xml_js_CqGKpaft_es();
|
|
345318
|
-
|
|
345318
|
+
init_create_headless_toolbar_xjqjtPWl_es();
|
|
345319
345319
|
init_constants_DrU4EASo_es();
|
|
345320
345320
|
init_dist_B8HfvhaK_es();
|
|
345321
345321
|
init_unified_Dsuw2be5_es();
|
|
345322
345322
|
init_DocxZipper_CZMPWpOp_es();
|
|
345323
|
-
|
|
345323
|
+
init_create_super_doc_ui_DqYtj3Jy_es();
|
|
345324
345324
|
init_ui_C5PAS9hY_es();
|
|
345325
345325
|
init_eventemitter3_BnGqBE_Q_es();
|
|
345326
345326
|
init_errors_CNaD6vcg_es();
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@superdoc-dev/cli",
|
|
3
|
-
"version": "0.12.
|
|
3
|
+
"version": "0.12.1-next.2",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"bin": {
|
|
6
6
|
"superdoc": "./dist/index.js"
|
|
@@ -24,21 +24,21 @@
|
|
|
24
24
|
"@types/node": "22.19.2",
|
|
25
25
|
"@types/ws": "^8.5.13",
|
|
26
26
|
"typescript": "^5.9.2",
|
|
27
|
-
"@superdoc/
|
|
27
|
+
"@superdoc/document-api": "0.0.1",
|
|
28
28
|
"@superdoc/super-editor": "0.0.1",
|
|
29
|
-
"superdoc": "1.
|
|
30
|
-
"@superdoc/
|
|
29
|
+
"superdoc": "1.35.0",
|
|
30
|
+
"@superdoc/pm-adapter": "0.0.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.12.
|
|
38
|
-
"@superdoc-dev/cli-
|
|
39
|
-
"@superdoc-dev/cli-linux-
|
|
40
|
-
"@superdoc-dev/cli-
|
|
41
|
-
"@superdoc-dev/cli-
|
|
37
|
+
"@superdoc-dev/cli-darwin-arm64": "0.12.1-next.2",
|
|
38
|
+
"@superdoc-dev/cli-darwin-x64": "0.12.1-next.2",
|
|
39
|
+
"@superdoc-dev/cli-linux-x64": "0.12.1-next.2",
|
|
40
|
+
"@superdoc-dev/cli-windows-x64": "0.12.1-next.2",
|
|
41
|
+
"@superdoc-dev/cli-linux-arm64": "0.12.1-next.2"
|
|
42
42
|
},
|
|
43
43
|
"scripts": {
|
|
44
44
|
"predev": "node scripts/ensure-superdoc-build.js",
|