@superdoc-dev/cli 0.12.0 → 0.12.1-next.10
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 +30 -27
- package/package.json +8 -8
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-CZSemHps.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;
|
|
@@ -302627,19 +302627,22 @@ menclose::after {
|
|
|
302627
302627
|
this.#options.collaborationProvider = provider;
|
|
302628
302628
|
}
|
|
302629
302629
|
setup() {
|
|
302630
|
-
const
|
|
302631
|
-
if (!
|
|
302630
|
+
const awareness = this.#options.collaborationProvider?.awareness;
|
|
302631
|
+
if (!awareness || typeof awareness.on !== "function" || typeof awareness.off !== "function") {
|
|
302632
|
+
if (awareness)
|
|
302633
|
+
console.warn("[remote-cursors] provider.awareness is missing on/off methods; remote cursors will not be wired.");
|
|
302632
302634
|
return;
|
|
302635
|
+
}
|
|
302633
302636
|
this.#cleanupSubscriptions();
|
|
302634
302637
|
const handleAwarenessChange = () => {
|
|
302635
302638
|
this.#remoteCursorDirty = true;
|
|
302636
302639
|
this.scheduleUpdate();
|
|
302637
302640
|
};
|
|
302638
|
-
|
|
302639
|
-
|
|
302641
|
+
awareness.on("change", handleAwarenessChange);
|
|
302642
|
+
awareness.on("update", handleAwarenessChange);
|
|
302640
302643
|
this.#awarenessCleanup = () => {
|
|
302641
|
-
|
|
302642
|
-
|
|
302644
|
+
awareness.off?.("change", handleAwarenessChange);
|
|
302645
|
+
awareness.off?.("update", handleAwarenessChange);
|
|
302643
302646
|
};
|
|
302644
302647
|
const handleScroll = () => {
|
|
302645
302648
|
if (this.#remoteCursorState.size > 0) {
|
|
@@ -307486,13 +307489,13 @@ menclose::after {
|
|
|
307486
307489
|
return;
|
|
307487
307490
|
console.log(...args$1);
|
|
307488
307491
|
}, 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
|
|
307492
|
+
var init_src_CZSemHps_es = __esm(() => {
|
|
307490
307493
|
init_rolldown_runtime_Bg48TavK_es();
|
|
307491
|
-
|
|
307494
|
+
init_SuperConverter_opYK_HD4_es();
|
|
307492
307495
|
init_jszip_C49i9kUs_es();
|
|
307493
307496
|
init_xml_js_CqGKpaft_es();
|
|
307494
307497
|
init_uuid_qzgm05fK_es();
|
|
307495
|
-
|
|
307498
|
+
init_create_headless_toolbar_xjqjtPWl_es();
|
|
307496
307499
|
init_constants_DrU4EASo_es();
|
|
307497
307500
|
init_dist_B8HfvhaK_es();
|
|
307498
307501
|
init_unified_Dsuw2be5_es();
|
|
@@ -345265,11 +345268,11 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
345265
345268
|
];
|
|
345266
345269
|
});
|
|
345267
345270
|
|
|
345268
|
-
// ../../packages/superdoc/dist/chunks/create-super-doc-ui-
|
|
345271
|
+
// ../../packages/superdoc/dist/chunks/create-super-doc-ui-DqYtj3Jy.es.js
|
|
345269
345272
|
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
|
-
|
|
345273
|
+
var init_create_super_doc_ui_DqYtj3Jy_es = __esm(() => {
|
|
345274
|
+
init_SuperConverter_opYK_HD4_es();
|
|
345275
|
+
init_create_headless_toolbar_xjqjtPWl_es();
|
|
345273
345276
|
MOD_ALIASES = new Set([
|
|
345274
345277
|
"Mod",
|
|
345275
345278
|
"Meta",
|
|
@@ -345311,16 +345314,16 @@ var init_zipper_yaJVJ4z9_es = __esm(() => {
|
|
|
345311
345314
|
|
|
345312
345315
|
// ../../packages/superdoc/dist/super-editor.es.js
|
|
345313
345316
|
var init_super_editor_es = __esm(() => {
|
|
345314
|
-
|
|
345315
|
-
|
|
345317
|
+
init_src_CZSemHps_es();
|
|
345318
|
+
init_SuperConverter_opYK_HD4_es();
|
|
345316
345319
|
init_jszip_C49i9kUs_es();
|
|
345317
345320
|
init_xml_js_CqGKpaft_es();
|
|
345318
|
-
|
|
345321
|
+
init_create_headless_toolbar_xjqjtPWl_es();
|
|
345319
345322
|
init_constants_DrU4EASo_es();
|
|
345320
345323
|
init_dist_B8HfvhaK_es();
|
|
345321
345324
|
init_unified_Dsuw2be5_es();
|
|
345322
345325
|
init_DocxZipper_CZMPWpOp_es();
|
|
345323
|
-
|
|
345326
|
+
init_create_super_doc_ui_DqYtj3Jy_es();
|
|
345324
345327
|
init_ui_C5PAS9hY_es();
|
|
345325
345328
|
init_eventemitter3_BnGqBE_Q_es();
|
|
345326
345329
|
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.10",
|
|
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/document-api": "0.0.1",
|
|
27
28
|
"@superdoc/pm-adapter": "0.0.0",
|
|
28
29
|
"@superdoc/super-editor": "0.0.1",
|
|
29
|
-
"superdoc": "1.
|
|
30
|
-
"@superdoc/document-api": "0.0.1"
|
|
30
|
+
"superdoc": "1.35.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-arm64": "0.12.
|
|
40
|
-
"@superdoc-dev/cli-
|
|
41
|
-
"@superdoc-dev/cli-windows-x64": "0.12.
|
|
37
|
+
"@superdoc-dev/cli-darwin-arm64": "0.12.1-next.10",
|
|
38
|
+
"@superdoc-dev/cli-darwin-x64": "0.12.1-next.10",
|
|
39
|
+
"@superdoc-dev/cli-linux-arm64": "0.12.1-next.10",
|
|
40
|
+
"@superdoc-dev/cli-linux-x64": "0.12.1-next.10",
|
|
41
|
+
"@superdoc-dev/cli-windows-x64": "0.12.1-next.10"
|
|
42
42
|
},
|
|
43
43
|
"scripts": {
|
|
44
44
|
"predev": "node scripts/ensure-superdoc-build.js",
|