@superdoc-dev/cli 0.10.0 → 0.11.0-next.1
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 -24
- package/package.json +8 -8
package/dist/index.js
CHANGED
|
@@ -66320,7 +66320,7 @@ var init_remark_gfm_BhnWr3yf_es = __esm(() => {
|
|
|
66320
66320
|
emptyOptions2 = {};
|
|
66321
66321
|
});
|
|
66322
66322
|
|
|
66323
|
-
// ../../packages/superdoc/dist/chunks/SuperConverter-
|
|
66323
|
+
// ../../packages/superdoc/dist/chunks/SuperConverter-CnwfJPj6.es.js
|
|
66324
66324
|
function getExtensionConfigField(extension$1, field, context = { name: "" }) {
|
|
66325
66325
|
const fieldValue = extension$1.config[field];
|
|
66326
66326
|
if (typeof fieldValue === "function")
|
|
@@ -120082,7 +120082,7 @@ var isRegExp = (value) => {
|
|
|
120082
120082
|
if (id2)
|
|
120083
120083
|
return trackedChanges.filter(({ mark }) => mark.attrs.id === id2);
|
|
120084
120084
|
return trackedChanges;
|
|
120085
|
-
}, DERIVED_ID_LENGTH = 24, groupedCache, SDT_NODE_NAMES, SDT_BLOCK_NAME = "structuredContentBlock", 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.
|
|
120085
|
+
}, DERIVED_ID_LENGTH = 24, groupedCache, SDT_NODE_NAMES, SDT_BLOCK_NAME = "structuredContentBlock", 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.33.1", collectRunDefaultProperties = (runProps, { allowOverrideTypeface = true, allowOverrideSize = true, themeResolver, state }) => {
|
|
120086
120086
|
if (!runProps?.elements?.length || !state)
|
|
120087
120087
|
return;
|
|
120088
120088
|
const fontsNode = runProps.elements.find((el) => el.name === "w:rFonts");
|
|
@@ -120116,7 +120116,7 @@ var isRegExp = (value) => {
|
|
|
120116
120116
|
state.kern = kernNode.attributes["w:val"];
|
|
120117
120117
|
}
|
|
120118
120118
|
}, SuperConverter;
|
|
120119
|
-
var
|
|
120119
|
+
var init_SuperConverter_CnwfJPj6_es = __esm(() => {
|
|
120120
120120
|
init_rolldown_runtime_Bg48TavK_es();
|
|
120121
120121
|
init_jszip_C49i9kUs_es();
|
|
120122
120122
|
init_xml_js_CqGKpaft_es();
|
|
@@ -158150,7 +158150,7 @@ var init_SuperConverter_ByqzBuoW_es = __esm(() => {
|
|
|
158150
158150
|
};
|
|
158151
158151
|
});
|
|
158152
158152
|
|
|
158153
|
-
// ../../packages/superdoc/dist/chunks/create-headless-toolbar-
|
|
158153
|
+
// ../../packages/superdoc/dist/chunks/create-headless-toolbar-Btizo_Im.es.js
|
|
158154
158154
|
function parseSizeUnit(val = "0") {
|
|
158155
158155
|
const length3 = val.toString() || "0";
|
|
158156
158156
|
const value = Number.parseFloat(length3);
|
|
@@ -160872,8 +160872,8 @@ var CSS_DIMENSION_REGEX, DOM_SIZE_UNITS, Extension = class Extension2 {
|
|
|
160872
160872
|
}
|
|
160873
160873
|
};
|
|
160874
160874
|
};
|
|
160875
|
-
var
|
|
160876
|
-
|
|
160875
|
+
var init_create_headless_toolbar_Btizo_Im_es = __esm(() => {
|
|
160876
|
+
init_SuperConverter_CnwfJPj6_es();
|
|
160877
160877
|
init_constants_DrU4EASo_es();
|
|
160878
160878
|
init_dist_B8HfvhaK_es();
|
|
160879
160879
|
CSS_DIMENSION_REGEX = /[\d-.]+(\w+)$/;
|
|
@@ -209584,7 +209584,7 @@ var init_remark_gfm_eZN6yzWQ_es = __esm(() => {
|
|
|
209584
209584
|
init_remark_gfm_BhnWr3yf_es();
|
|
209585
209585
|
});
|
|
209586
209586
|
|
|
209587
|
-
// ../../packages/superdoc/dist/chunks/src-
|
|
209587
|
+
// ../../packages/superdoc/dist/chunks/src-Jjjx6UC7.es.js
|
|
209588
209588
|
function deleteProps(obj, propOrProps) {
|
|
209589
209589
|
const props = typeof propOrProps === "string" ? [propOrProps] : propOrProps;
|
|
209590
209590
|
const removeNested = (target, pathParts, index2 = 0) => {
|
|
@@ -210367,7 +210367,7 @@ function prosemirrorToYXmlFragment(doc$12, xmlFragment) {
|
|
|
210367
210367
|
}
|
|
210368
210368
|
function getSuperdocVersion() {
|
|
210369
210369
|
try {
|
|
210370
|
-
return "1.
|
|
210370
|
+
return "1.33.1";
|
|
210371
210371
|
} catch {
|
|
210372
210372
|
return "unknown";
|
|
210373
210373
|
}
|
|
@@ -286226,6 +286226,7 @@ var Node$13 = class Node$14 {
|
|
|
286226
286226
|
"redo"
|
|
286227
286227
|
];
|
|
286228
286228
|
const shouldUseLgCompactStyles = availableWidth <= RESPONSIVE_BREAKPOINTS.lg;
|
|
286229
|
+
const shouldIncludeFormattingMarks = superToolbar.config?.showFormattingMarksButton === true;
|
|
286229
286230
|
if (shouldUseLgCompactStyles)
|
|
286230
286231
|
documentMode.attributes.value = {
|
|
286231
286232
|
...documentMode.attributes.value,
|
|
@@ -286268,7 +286269,7 @@ var Node$13 = class Node$14 {
|
|
|
286268
286269
|
linkedStyles,
|
|
286269
286270
|
separator,
|
|
286270
286271
|
ruler,
|
|
286271
|
-
formattingMarks,
|
|
286272
|
+
...shouldIncludeFormattingMarks ? [formattingMarks] : [],
|
|
286272
286273
|
copyFormat,
|
|
286273
286274
|
clearFormatting,
|
|
286274
286275
|
aiButton,
|
|
@@ -286284,7 +286285,6 @@ var Node$13 = class Node$14 {
|
|
|
286284
286285
|
toolbarItems.splice(getLinkedStylesIndex - 1, 2);
|
|
286285
286286
|
const filterItems = [
|
|
286286
286287
|
"ruler",
|
|
286287
|
-
"formattingMarks",
|
|
286288
286288
|
"zoom",
|
|
286289
286289
|
"undo",
|
|
286290
286290
|
"redo"
|
|
@@ -287161,7 +287161,7 @@ var Node$13 = class Node$14 {
|
|
|
287161
287161
|
domAvailabilityCache = false;
|
|
287162
287162
|
return false;
|
|
287163
287163
|
}
|
|
287164
|
-
}, summaryVersion = "1.
|
|
287164
|
+
}, summaryVersion = "1.33.1", nodeKeys, markKeys, transformListsInCopiedContent = (html3) => {
|
|
287165
287165
|
const container = document.createElement("div");
|
|
287166
287166
|
container.innerHTML = html3;
|
|
287167
287167
|
const result = [];
|
|
@@ -288336,7 +288336,7 @@ var Node$13 = class Node$14 {
|
|
|
288336
288336
|
return () => {};
|
|
288337
288337
|
const handle3 = setInterval(callback, intervalMs);
|
|
288338
288338
|
return () => clearInterval(handle3);
|
|
288339
|
-
}, 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, DEFAULT_LEVEL = 1, SWITCH_PATTERN, TOC_BOOKMARK_PREFIX = "_Toc", ALLOWED_SOURCE_MARK_TYPES, TEXT_STYLE_ALLOWED_ATTRS, DEFAULT_RIGHT_TAB_POS = 9350, TAB_LEADER_MAP, NO_ENTRIES_PLACEHOLDER, TOC_ENTRY_STYLE_RE, 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.
|
|
288339
|
+
}, 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, DEFAULT_LEVEL = 1, SWITCH_PATTERN, TOC_BOOKMARK_PREFIX = "_Toc", ALLOWED_SOURCE_MARK_TYPES, TEXT_STYLE_ALLOWED_ATTRS, DEFAULT_RIGHT_TAB_POS = 9350, TAB_LEADER_MAP, NO_ENTRIES_PLACEHOLDER, TOC_ENTRY_STYLE_RE, 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.33.1", PIXELS_PER_INCH2 = 96, MAX_HEIGHT_BUFFER_PX = 50, MAX_WIDTH_BUFFER_PX = 20, cloneExtensionInstance = (extension3) => {
|
|
288340
288340
|
const extensionLike = extension3;
|
|
288341
288341
|
const config2 = extensionLike?.config;
|
|
288342
288342
|
const ExtensionCtor = extensionLike?.constructor;
|
|
@@ -304109,13 +304109,13 @@ menclose::after {
|
|
|
304109
304109
|
return;
|
|
304110
304110
|
console.log(...args$1);
|
|
304111
304111
|
}, 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;
|
|
304112
|
-
var
|
|
304112
|
+
var init_src_Jjjx6UC7_es = __esm(() => {
|
|
304113
304113
|
init_rolldown_runtime_Bg48TavK_es();
|
|
304114
|
-
|
|
304114
|
+
init_SuperConverter_CnwfJPj6_es();
|
|
304115
304115
|
init_jszip_C49i9kUs_es();
|
|
304116
304116
|
init_xml_js_CqGKpaft_es();
|
|
304117
304117
|
init_uuid_qzgm05fK_es();
|
|
304118
|
-
|
|
304118
|
+
init_create_headless_toolbar_Btizo_Im_es();
|
|
304119
304119
|
init_constants_DrU4EASo_es();
|
|
304120
304120
|
init_dist_B8HfvhaK_es();
|
|
304121
304121
|
init_unified_Dsuw2be5_es();
|
|
@@ -325989,7 +325989,8 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
325989
325989
|
editor: null,
|
|
325990
325990
|
aiApiKey: null,
|
|
325991
325991
|
aiEndpoint: null,
|
|
325992
|
-
customButtons: []
|
|
325992
|
+
customButtons: [],
|
|
325993
|
+
showFormattingMarksButton: false
|
|
325993
325994
|
};
|
|
325994
325995
|
constructor(config2) {
|
|
325995
325996
|
super();
|
|
@@ -342267,11 +342268,11 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
342267
342268
|
];
|
|
342268
342269
|
});
|
|
342269
342270
|
|
|
342270
|
-
// ../../packages/superdoc/dist/chunks/create-super-doc-ui-
|
|
342271
|
+
// ../../packages/superdoc/dist/chunks/create-super-doc-ui-CkaOaJa5.es.js
|
|
342271
342272
|
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;
|
|
342272
|
-
var
|
|
342273
|
-
|
|
342274
|
-
|
|
342273
|
+
var init_create_super_doc_ui_CkaOaJa5_es = __esm(() => {
|
|
342274
|
+
init_SuperConverter_CnwfJPj6_es();
|
|
342275
|
+
init_create_headless_toolbar_Btizo_Im_es();
|
|
342275
342276
|
MOD_ALIASES = new Set([
|
|
342276
342277
|
"Mod",
|
|
342277
342278
|
"Meta",
|
|
@@ -342313,16 +342314,16 @@ var init_zipper_BxRAi0_5_es = __esm(() => {
|
|
|
342313
342314
|
|
|
342314
342315
|
// ../../packages/superdoc/dist/super-editor.es.js
|
|
342315
342316
|
var init_super_editor_es = __esm(() => {
|
|
342316
|
-
|
|
342317
|
-
|
|
342317
|
+
init_src_Jjjx6UC7_es();
|
|
342318
|
+
init_SuperConverter_CnwfJPj6_es();
|
|
342318
342319
|
init_jszip_C49i9kUs_es();
|
|
342319
342320
|
init_xml_js_CqGKpaft_es();
|
|
342320
|
-
|
|
342321
|
+
init_create_headless_toolbar_Btizo_Im_es();
|
|
342321
342322
|
init_constants_DrU4EASo_es();
|
|
342322
342323
|
init_dist_B8HfvhaK_es();
|
|
342323
342324
|
init_unified_Dsuw2be5_es();
|
|
342324
342325
|
init_DocxZipper_Bphhij1P_es();
|
|
342325
|
-
|
|
342326
|
+
init_create_super_doc_ui_CkaOaJa5_es();
|
|
342326
342327
|
init_ui_CGB3qmy3_es();
|
|
342327
342328
|
init_eventemitter3_UwU_CLPU_es();
|
|
342328
342329
|
init_errors_C_DoKMoN_es();
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@superdoc-dev/cli",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.11.0-next.1",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"bin": {
|
|
6
6
|
"superdoc": "./dist/index.js"
|
|
@@ -24,9 +24,9 @@
|
|
|
24
24
|
"@types/node": "22.19.2",
|
|
25
25
|
"@types/ws": "^8.5.13",
|
|
26
26
|
"typescript": "^5.9.2",
|
|
27
|
-
"@superdoc/super-editor": "0.0.1",
|
|
28
27
|
"@superdoc/document-api": "0.0.1",
|
|
29
|
-
"superdoc": "1.
|
|
28
|
+
"superdoc": "1.33.1",
|
|
29
|
+
"@superdoc/super-editor": "0.0.1",
|
|
30
30
|
"@superdoc/pm-adapter": "0.0.0"
|
|
31
31
|
},
|
|
32
32
|
"module": "src/index.ts",
|
|
@@ -34,11 +34,11 @@
|
|
|
34
34
|
"access": "public"
|
|
35
35
|
},
|
|
36
36
|
"optionalDependencies": {
|
|
37
|
-
"@superdoc-dev/cli-darwin-arm64": "0.
|
|
38
|
-
"@superdoc-dev/cli-darwin-x64": "0.
|
|
39
|
-
"@superdoc-dev/cli-linux-x64": "0.
|
|
40
|
-
"@superdoc-dev/cli-linux-arm64": "0.
|
|
41
|
-
"@superdoc-dev/cli-windows-x64": "0.
|
|
37
|
+
"@superdoc-dev/cli-darwin-arm64": "0.11.0-next.1",
|
|
38
|
+
"@superdoc-dev/cli-darwin-x64": "0.11.0-next.1",
|
|
39
|
+
"@superdoc-dev/cli-linux-x64": "0.11.0-next.1",
|
|
40
|
+
"@superdoc-dev/cli-linux-arm64": "0.11.0-next.1",
|
|
41
|
+
"@superdoc-dev/cli-windows-x64": "0.11.0-next.1"
|
|
42
42
|
},
|
|
43
43
|
"scripts": {
|
|
44
44
|
"predev": "node scripts/ensure-superdoc-build.js",
|