@superdoc-dev/cli 0.8.0-next.108 → 0.8.0-next.109
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 -28
- package/package.json +9 -9
package/dist/index.js
CHANGED
|
@@ -66096,7 +66096,7 @@ var init_remark_gfm_BhnWr3yf_es = __esm(() => {
|
|
|
66096
66096
|
emptyOptions2 = {};
|
|
66097
66097
|
});
|
|
66098
66098
|
|
|
66099
|
-
// ../../packages/superdoc/dist/chunks/SuperConverter-
|
|
66099
|
+
// ../../packages/superdoc/dist/chunks/SuperConverter-B-EF8ijE.es.js
|
|
66100
66100
|
function getExtensionConfigField(extension$1, field, context = { name: "" }) {
|
|
66101
66101
|
const fieldValue = extension$1.config[field];
|
|
66102
66102
|
if (typeof fieldValue === "function")
|
|
@@ -77120,6 +77120,12 @@ function extractAppearance(sdtPr) {
|
|
|
77120
77120
|
function extractPlaceholder(sdtPr) {
|
|
77121
77121
|
return sdtPr?.elements?.find((e) => e.name === "w:placeholder")?.elements?.find((e) => e.name === "w:docPart")?.attributes?.["w:val"] ?? null;
|
|
77122
77122
|
}
|
|
77123
|
+
function extractTemporary(sdtPr) {
|
|
77124
|
+
const el = sdtPr?.elements?.find((e) => e.name === "w:temporary");
|
|
77125
|
+
if (!el)
|
|
77126
|
+
return;
|
|
77127
|
+
return parseStrictStOnOff(el.attributes?.["w:val"], "temporary", "w:temporary");
|
|
77128
|
+
}
|
|
77123
77129
|
function handleStructuredContentNode(params3) {
|
|
77124
77130
|
const { nodes, nodeListHandler } = params3;
|
|
77125
77131
|
if (nodes.length === 0 || nodes[0].name !== "w:sdt")
|
|
@@ -77140,6 +77146,7 @@ function handleStructuredContentNode(params3) {
|
|
|
77140
77146
|
const controlType = detectControlType(sdtPr);
|
|
77141
77147
|
const appearance = extractAppearance(sdtPr);
|
|
77142
77148
|
const placeholder = extractPlaceholder(sdtPr);
|
|
77149
|
+
const temporary = extractTemporary(sdtPr);
|
|
77143
77150
|
if (!sdtContent)
|
|
77144
77151
|
return null;
|
|
77145
77152
|
const paragraph2 = sdtContent.elements?.find((el) => el.name === "w:p");
|
|
@@ -77163,6 +77170,7 @@ function handleStructuredContentNode(params3) {
|
|
|
77163
77170
|
type: controlType,
|
|
77164
77171
|
appearance,
|
|
77165
77172
|
placeholder,
|
|
77173
|
+
...temporary !== undefined ? { temporary } : {},
|
|
77166
77174
|
sdtPr
|
|
77167
77175
|
}
|
|
77168
77176
|
};
|
|
@@ -119699,7 +119707,7 @@ var isRegExp = (value) => {
|
|
|
119699
119707
|
state.kern = kernNode.attributes["w:val"];
|
|
119700
119708
|
}
|
|
119701
119709
|
}, SuperConverter;
|
|
119702
|
-
var
|
|
119710
|
+
var init_SuperConverter_B_EF8ijE_es = __esm(() => {
|
|
119703
119711
|
init_rolldown_runtime_Bg48TavK_es();
|
|
119704
119712
|
init_jszip_C49i9kUs_es();
|
|
119705
119713
|
init_xml_js_CqGKpaft_es();
|
|
@@ -157573,7 +157581,7 @@ var init_SuperConverter_D_cFThyR_es = __esm(() => {
|
|
|
157573
157581
|
};
|
|
157574
157582
|
});
|
|
157575
157583
|
|
|
157576
|
-
// ../../packages/superdoc/dist/chunks/create-headless-toolbar-
|
|
157584
|
+
// ../../packages/superdoc/dist/chunks/create-headless-toolbar-CAjt5qLD.es.js
|
|
157577
157585
|
function parseSizeUnit(val = "0") {
|
|
157578
157586
|
const length3 = val.toString() || "0";
|
|
157579
157587
|
const value = Number.parseFloat(length3);
|
|
@@ -160295,8 +160303,8 @@ var CSS_DIMENSION_REGEX, DOM_SIZE_UNITS, Extension = class Extension2 {
|
|
|
160295
160303
|
}
|
|
160296
160304
|
};
|
|
160297
160305
|
};
|
|
160298
|
-
var
|
|
160299
|
-
|
|
160306
|
+
var init_create_headless_toolbar_CAjt5qLD_es = __esm(() => {
|
|
160307
|
+
init_SuperConverter_B_EF8ijE_es();
|
|
160300
160308
|
init_constants_DrU4EASo_es();
|
|
160301
160309
|
init_dist_B8HfvhaK_es();
|
|
160302
160310
|
CSS_DIMENSION_REGEX = /[\d-.]+(\w+)$/;
|
|
@@ -208994,7 +209002,7 @@ var init_remark_gfm_eZN6yzWQ_es = __esm(() => {
|
|
|
208994
209002
|
init_remark_gfm_BhnWr3yf_es();
|
|
208995
209003
|
});
|
|
208996
209004
|
|
|
208997
|
-
// ../../packages/superdoc/dist/chunks/src-
|
|
209005
|
+
// ../../packages/superdoc/dist/chunks/src-CuD4BbTF.es.js
|
|
208998
209006
|
function deleteProps(obj, propOrProps) {
|
|
208999
209007
|
const props = typeof propOrProps === "string" ? [propOrProps] : propOrProps;
|
|
209000
209008
|
const removeNested = (target, pathParts, index2 = 0) => {
|
|
@@ -253611,7 +253619,7 @@ function resolveParagraphContent(fragment2, block, measure) {
|
|
|
253611
253619
|
const paraIndent = block.attrs?.indent;
|
|
253612
253620
|
const paraIndentLeft = paraIndent?.left ?? 0;
|
|
253613
253621
|
const paraIndentRight = paraIndent?.right ?? 0;
|
|
253614
|
-
const { anchorIndentPx: paraMarkerAnchorIndent, firstLinePx: markerFirstLine, hangingPx: markerHanging } = resolveMarkerIndent(paraIndent, block.attrs
|
|
253622
|
+
const { anchorIndentPx: paraMarkerAnchorIndent, firstLinePx: markerFirstLine, hangingPx: markerHanging } = resolveMarkerIndent(paraIndent, getParagraphInlineDirection(block.attrs) === "rtl");
|
|
253615
253623
|
const firstLineOffset = block.attrs?.suppressFirstLineIndent === true ? 0 : (paraIndent?.firstLine ?? 0) - (paraIndent?.hanging ?? 0);
|
|
253616
253624
|
const paragraphEndsWithLineBreak = (block.runs.length > 0 ? block.runs[block.runs.length - 1] : null)?.kind === "lineBreak";
|
|
253617
253625
|
const lines = fragment2.lines ?? measure.lines.slice(fragment2.fromLine, fragment2.toLine);
|
|
@@ -294569,16 +294577,7 @@ menclose::after {
|
|
|
294569
294577
|
}, isRtlBlock = (block) => {
|
|
294570
294578
|
if (block.kind !== "paragraph")
|
|
294571
294579
|
return false;
|
|
294572
|
-
|
|
294573
|
-
if (!attrs)
|
|
294574
|
-
return false;
|
|
294575
|
-
const directionContext = attrs.directionContext;
|
|
294576
|
-
if (directionContext?.inlineDirection != null)
|
|
294577
|
-
return directionContext.inlineDirection === "rtl";
|
|
294578
|
-
const directionAttr = attrs.direction ?? attrs.dir;
|
|
294579
|
-
if (typeof directionAttr === "string" && directionAttr.toLowerCase() === "rtl")
|
|
294580
|
-
return true;
|
|
294581
|
-
return false;
|
|
294580
|
+
return getParagraphInlineDirection(block.attrs) === "rtl";
|
|
294582
294581
|
}, determineColumn = (layout, fragmentX) => {
|
|
294583
294582
|
const columns = layout.columns;
|
|
294584
294583
|
if (!columns || columns.count <= 1)
|
|
@@ -302817,12 +302816,12 @@ menclose::after {
|
|
|
302817
302816
|
return;
|
|
302818
302817
|
console.log(...args$1);
|
|
302819
302818
|
}, 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;
|
|
302820
|
-
var
|
|
302819
|
+
var init_src_CuD4BbTF_es = __esm(() => {
|
|
302821
302820
|
init_rolldown_runtime_Bg48TavK_es();
|
|
302822
|
-
|
|
302821
|
+
init_SuperConverter_B_EF8ijE_es();
|
|
302823
302822
|
init_jszip_C49i9kUs_es();
|
|
302824
302823
|
init_uuid_qzgm05fK_es();
|
|
302825
|
-
|
|
302824
|
+
init_create_headless_toolbar_CAjt5qLD_es();
|
|
302826
302825
|
init_constants_DrU4EASo_es();
|
|
302827
302826
|
init_dist_B8HfvhaK_es();
|
|
302828
302827
|
init_unified_Dsuw2be5_es();
|
|
@@ -340865,11 +340864,11 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
340865
340864
|
];
|
|
340866
340865
|
});
|
|
340867
340866
|
|
|
340868
|
-
// ../../packages/superdoc/dist/chunks/create-super-doc-ui-
|
|
340867
|
+
// ../../packages/superdoc/dist/chunks/create-super-doc-ui-DrS6dKfb.es.js
|
|
340869
340868
|
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;
|
|
340870
|
-
var
|
|
340871
|
-
|
|
340872
|
-
|
|
340869
|
+
var init_create_super_doc_ui_DrS6dKfb_es = __esm(() => {
|
|
340870
|
+
init_SuperConverter_B_EF8ijE_es();
|
|
340871
|
+
init_create_headless_toolbar_CAjt5qLD_es();
|
|
340873
340872
|
MOD_ALIASES = new Set([
|
|
340874
340873
|
"Mod",
|
|
340875
340874
|
"Meta",
|
|
@@ -340911,16 +340910,16 @@ var init_zipper_BxRAi0_5_es = __esm(() => {
|
|
|
340911
340910
|
|
|
340912
340911
|
// ../../packages/superdoc/dist/super-editor.es.js
|
|
340913
340912
|
var init_super_editor_es = __esm(() => {
|
|
340914
|
-
|
|
340915
|
-
|
|
340913
|
+
init_src_CuD4BbTF_es();
|
|
340914
|
+
init_SuperConverter_B_EF8ijE_es();
|
|
340916
340915
|
init_jszip_C49i9kUs_es();
|
|
340917
340916
|
init_xml_js_CqGKpaft_es();
|
|
340918
|
-
|
|
340917
|
+
init_create_headless_toolbar_CAjt5qLD_es();
|
|
340919
340918
|
init_constants_DrU4EASo_es();
|
|
340920
340919
|
init_dist_B8HfvhaK_es();
|
|
340921
340920
|
init_unified_Dsuw2be5_es();
|
|
340922
340921
|
init_DocxZipper_TPSo9G36_es();
|
|
340923
|
-
|
|
340922
|
+
init_create_super_doc_ui_DrS6dKfb_es();
|
|
340924
340923
|
init_ui_CGB3qmy3_es();
|
|
340925
340924
|
init_eventemitter3_UwU_CLPU_es();
|
|
340926
340925
|
init_errors_C_DoKMoN_es();
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@superdoc-dev/cli",
|
|
3
|
-
"version": "0.8.0-next.
|
|
3
|
+
"version": "0.8.0-next.109",
|
|
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/super-editor": "0.0.1",
|
|
28
|
-
"superdoc": "1.32.0",
|
|
29
27
|
"@superdoc/document-api": "0.0.1",
|
|
30
|
-
"@superdoc/pm-adapter": "0.0.0"
|
|
28
|
+
"@superdoc/pm-adapter": "0.0.0",
|
|
29
|
+
"@superdoc/super-editor": "0.0.1",
|
|
30
|
+
"superdoc": "1.32.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.8.0-next.
|
|
38
|
-
"@superdoc-dev/cli-darwin-x64": "0.8.0-next.
|
|
39
|
-
"@superdoc-dev/cli-
|
|
40
|
-
"@superdoc-dev/cli-
|
|
41
|
-
"@superdoc-dev/cli-linux-
|
|
37
|
+
"@superdoc-dev/cli-darwin-arm64": "0.8.0-next.109",
|
|
38
|
+
"@superdoc-dev/cli-darwin-x64": "0.8.0-next.109",
|
|
39
|
+
"@superdoc-dev/cli-windows-x64": "0.8.0-next.109",
|
|
40
|
+
"@superdoc-dev/cli-linux-arm64": "0.8.0-next.109",
|
|
41
|
+
"@superdoc-dev/cli-linux-x64": "0.8.0-next.109"
|
|
42
42
|
},
|
|
43
43
|
"scripts": {
|
|
44
44
|
"predev": "node scripts/ensure-superdoc-build.js",
|