@superdoc-dev/cli 0.8.0-next.105 → 0.8.0-next.107
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 +47 -26
- package/package.json +8 -8
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-KEGUvaEC.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")
|
|
@@ -119597,7 +119597,7 @@ var isRegExp = (value) => {
|
|
|
119597
119597
|
state.kern = kernNode.attributes["w:val"];
|
|
119598
119598
|
}
|
|
119599
119599
|
}, SuperConverter;
|
|
119600
|
-
var
|
|
119600
|
+
var init_SuperConverter_KEGUvaEC_es = __esm(() => {
|
|
119601
119601
|
init_rolldown_runtime_Bg48TavK_es();
|
|
119602
119602
|
init_jszip_C49i9kUs_es();
|
|
119603
119603
|
init_xml_js_CqGKpaft_es();
|
|
@@ -155001,12 +155001,7 @@ var init_SuperConverter_Odr0JG7X_es = __esm(() => {
|
|
|
155001
155001
|
attributes: validXmlAttributes$3
|
|
155002
155002
|
};
|
|
155003
155003
|
translator$8 = NodeTranslator.from(config$24);
|
|
155004
|
-
translator$49 = NodeTranslator.from(
|
|
155005
|
-
xmlName: "w:bidiVisual",
|
|
155006
|
-
sdNodeOrKeyName: "rightToLeft",
|
|
155007
|
-
encode: ({ nodes }) => parseBoolean(nodes[0].attributes?.["w:val"] ?? "1"),
|
|
155008
|
-
decode: ({ node: node3 }) => node3.attrs.rightToLeft ? { attributes: {} } : undefined
|
|
155009
|
-
});
|
|
155004
|
+
translator$49 = NodeTranslator.from(createSingleBooleanPropertyHandler("w:bidiVisual", "rightToLeft"));
|
|
155010
155005
|
translator$155 = NodeTranslator.from(createSingleAttrPropertyHandler("w:tblCaption", "caption"));
|
|
155011
155006
|
translator$158 = NodeTranslator.from(createSingleAttrPropertyHandler("w:tblDescription", "description"));
|
|
155012
155007
|
translator$161 = NodeTranslator.from(createMeasurementPropertyHandler("w:tblInd", "tableIndent"));
|
|
@@ -157469,7 +157464,7 @@ var init_SuperConverter_Odr0JG7X_es = __esm(() => {
|
|
|
157469
157464
|
};
|
|
157470
157465
|
});
|
|
157471
157466
|
|
|
157472
|
-
// ../../packages/superdoc/dist/chunks/create-headless-toolbar-
|
|
157467
|
+
// ../../packages/superdoc/dist/chunks/create-headless-toolbar-DwiDDjhC.es.js
|
|
157473
157468
|
function parseSizeUnit(val = "0") {
|
|
157474
157469
|
const length3 = val.toString() || "0";
|
|
157475
157470
|
const value = Number.parseFloat(length3);
|
|
@@ -160191,8 +160186,8 @@ var CSS_DIMENSION_REGEX, DOM_SIZE_UNITS, Extension = class Extension2 {
|
|
|
160191
160186
|
}
|
|
160192
160187
|
};
|
|
160193
160188
|
};
|
|
160194
|
-
var
|
|
160195
|
-
|
|
160189
|
+
var init_create_headless_toolbar_DwiDDjhC_es = __esm(() => {
|
|
160190
|
+
init_SuperConverter_KEGUvaEC_es();
|
|
160196
160191
|
init_constants_DrU4EASo_es();
|
|
160197
160192
|
init_dist_B8HfvhaK_es();
|
|
160198
160193
|
CSS_DIMENSION_REGEX = /[\d-.]+(\w+)$/;
|
|
@@ -208890,7 +208885,7 @@ var init_remark_gfm_eZN6yzWQ_es = __esm(() => {
|
|
|
208890
208885
|
init_remark_gfm_BhnWr3yf_es();
|
|
208891
208886
|
});
|
|
208892
208887
|
|
|
208893
|
-
// ../../packages/superdoc/dist/chunks/src-
|
|
208888
|
+
// ../../packages/superdoc/dist/chunks/src-XCAViTso.es.js
|
|
208894
208889
|
function deleteProps(obj, propOrProps) {
|
|
208895
208890
|
const props = typeof propOrProps === "string" ? [propOrProps] : propOrProps;
|
|
208896
208891
|
const removeNested = (target, pathParts, index2 = 0) => {
|
|
@@ -209145,6 +209140,16 @@ function getParagraphInlineDirection(attrs) {
|
|
|
209145
209140
|
if (attrs?.direction === "ltr" || attrs?.dir === "ltr" || attrs?.rtl === false || ppRtl === false)
|
|
209146
209141
|
return "ltr";
|
|
209147
209142
|
}
|
|
209143
|
+
function getTableVisualDirection(attrs) {
|
|
209144
|
+
const fromContext = attrs?.tableDirectionContext?.visualDirection;
|
|
209145
|
+
if (fromContext != null)
|
|
209146
|
+
return fromContext;
|
|
209147
|
+
const tp = attrs?.tableProperties;
|
|
209148
|
+
if (tp?.rightToLeft === true || tp?.bidiVisual === true)
|
|
209149
|
+
return "rtl";
|
|
209150
|
+
if (tp?.rightToLeft === false || tp?.bidiVisual === false)
|
|
209151
|
+
return "ltr";
|
|
209152
|
+
}
|
|
209148
209153
|
function resolveTableWidthAttr(value) {
|
|
209149
209154
|
if (!value || typeof value !== "object")
|
|
209150
209155
|
return null;
|
|
@@ -213644,7 +213649,7 @@ function getTableContext($head) {
|
|
|
213644
213649
|
};
|
|
213645
213650
|
}
|
|
213646
213651
|
function isRtlTable(table2) {
|
|
213647
|
-
return table2?.attrs
|
|
213652
|
+
return getTableVisualDirection(table2?.attrs) === "rtl";
|
|
213648
213653
|
}
|
|
213649
213654
|
function getCellRect(context) {
|
|
213650
213655
|
const map$12 = TableMap.get(context.table);
|
|
@@ -255414,7 +255419,7 @@ function resolveRenderedTableWidth(columnWidth, measuredWidth, attrs) {
|
|
|
255414
255419
|
function resolveTableFrame(baseX, columnWidth, tableWidth, attrs) {
|
|
255415
255420
|
const width = resolveRenderedTableWidth(columnWidth, tableWidth, attrs);
|
|
255416
255421
|
const explicitJustification = typeof attrs?.justification === "string" ? attrs.justification : undefined;
|
|
255417
|
-
const isRtlTable$1 = attrs
|
|
255422
|
+
const isRtlTable$1 = getTableVisualDirection(attrs) === "rtl";
|
|
255418
255423
|
const effectiveJustification = explicitJustification ?? (isRtlTable$1 ? "end" : undefined);
|
|
255419
255424
|
const tableIndent = getTableIndentWidth(attrs);
|
|
255420
255425
|
if (effectiveJustification === "center")
|
|
@@ -265737,6 +265742,12 @@ function tableNodeToBlock(node3, { nextBlockId, positions, storyKey, trackedChan
|
|
|
265737
265742
|
const tableProperties = node3.attrs?.tableProperties;
|
|
265738
265743
|
if (tableProperties && typeof tableProperties === "object")
|
|
265739
265744
|
tableAttrs.tableProperties = tableProperties;
|
|
265745
|
+
const styleResolvedTableProps = effectiveStyleId && converterContext?.translatedLinkedStyles ? resolveTableProperties(effectiveStyleId, converterContext.translatedLinkedStyles) : undefined;
|
|
265746
|
+
const inlineProps = rawTableProperties;
|
|
265747
|
+
const styleProps = styleResolvedTableProps;
|
|
265748
|
+
const inlineVisual = inlineProps?.rightToLeft ?? inlineProps?.bidiVisual;
|
|
265749
|
+
const styleVisual = styleProps?.rightToLeft ?? styleProps?.bidiVisual;
|
|
265750
|
+
tableAttrs.tableDirectionContext = resolveTableDirection({ rightToLeft: inlineVisual ?? styleVisual }, converterContext?.sectionDirectionContext ?? resolveSectionDirection(undefined));
|
|
265740
265751
|
let columnWidths = undefined;
|
|
265741
265752
|
const twipsToPixels$2 = (twips) => {
|
|
265742
265753
|
return twips / 1440 * 96;
|
|
@@ -290306,7 +290317,7 @@ menclose::after {
|
|
|
290306
290317
|
const tableBorders = block.attrs?.borders;
|
|
290307
290318
|
const tableIndentValue = block.attrs?.tableIndent?.width;
|
|
290308
290319
|
const tableIndent = typeof tableIndentValue === "number" && Number.isFinite(tableIndentValue) ? tableIndentValue : 0;
|
|
290309
|
-
const isRtl = block.attrs
|
|
290320
|
+
const isRtl = getTableVisualDirection(block.attrs) === "rtl";
|
|
290310
290321
|
const container = doc$12.createElement("div");
|
|
290311
290322
|
container.classList.add(CLASS_NAMES$1.fragment);
|
|
290312
290323
|
applyStyles$2(container, fragmentStyles);
|
|
@@ -295824,6 +295835,16 @@ menclose::after {
|
|
|
295824
295835
|
mutated = true;
|
|
295825
295836
|
}
|
|
295826
295837
|
return mutated ? mirrored : indent2;
|
|
295838
|
+
}, resolveTableDirection = (tableProperties, parentSection) => {
|
|
295839
|
+
let visualDirection;
|
|
295840
|
+
if (tableProperties?.rightToLeft === true || tableProperties?.bidiVisual === true)
|
|
295841
|
+
visualDirection = "rtl";
|
|
295842
|
+
else if (tableProperties?.rightToLeft === false || tableProperties?.bidiVisual === false)
|
|
295843
|
+
visualDirection = "ltr";
|
|
295844
|
+
return {
|
|
295845
|
+
visualDirection,
|
|
295846
|
+
parentSection
|
|
295847
|
+
};
|
|
295827
295848
|
}, writingModeFromTextDirection = (val) => {
|
|
295828
295849
|
switch (val) {
|
|
295829
295850
|
case "lrTb":
|
|
@@ -302738,12 +302759,12 @@ menclose::after {
|
|
|
302738
302759
|
return;
|
|
302739
302760
|
console.log(...args$1);
|
|
302740
302761
|
}, 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;
|
|
302741
|
-
var
|
|
302762
|
+
var init_src_XCAViTso_es = __esm(() => {
|
|
302742
302763
|
init_rolldown_runtime_Bg48TavK_es();
|
|
302743
|
-
|
|
302764
|
+
init_SuperConverter_KEGUvaEC_es();
|
|
302744
302765
|
init_jszip_C49i9kUs_es();
|
|
302745
302766
|
init_uuid_qzgm05fK_es();
|
|
302746
|
-
|
|
302767
|
+
init_create_headless_toolbar_DwiDDjhC_es();
|
|
302747
302768
|
init_constants_DrU4EASo_es();
|
|
302748
302769
|
init_dist_B8HfvhaK_es();
|
|
302749
302770
|
init_unified_Dsuw2be5_es();
|
|
@@ -340786,11 +340807,11 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
340786
340807
|
];
|
|
340787
340808
|
});
|
|
340788
340809
|
|
|
340789
|
-
// ../../packages/superdoc/dist/chunks/create-super-doc-ui-
|
|
340810
|
+
// ../../packages/superdoc/dist/chunks/create-super-doc-ui-BEAzL3ry.es.js
|
|
340790
340811
|
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;
|
|
340791
|
-
var
|
|
340792
|
-
|
|
340793
|
-
|
|
340812
|
+
var init_create_super_doc_ui_BEAzL3ry_es = __esm(() => {
|
|
340813
|
+
init_SuperConverter_KEGUvaEC_es();
|
|
340814
|
+
init_create_headless_toolbar_DwiDDjhC_es();
|
|
340794
340815
|
MOD_ALIASES = new Set([
|
|
340795
340816
|
"Mod",
|
|
340796
340817
|
"Meta",
|
|
@@ -340832,16 +340853,16 @@ var init_zipper_BxRAi0_5_es = __esm(() => {
|
|
|
340832
340853
|
|
|
340833
340854
|
// ../../packages/superdoc/dist/super-editor.es.js
|
|
340834
340855
|
var init_super_editor_es = __esm(() => {
|
|
340835
|
-
|
|
340836
|
-
|
|
340856
|
+
init_src_XCAViTso_es();
|
|
340857
|
+
init_SuperConverter_KEGUvaEC_es();
|
|
340837
340858
|
init_jszip_C49i9kUs_es();
|
|
340838
340859
|
init_xml_js_CqGKpaft_es();
|
|
340839
|
-
|
|
340860
|
+
init_create_headless_toolbar_DwiDDjhC_es();
|
|
340840
340861
|
init_constants_DrU4EASo_es();
|
|
340841
340862
|
init_dist_B8HfvhaK_es();
|
|
340842
340863
|
init_unified_Dsuw2be5_es();
|
|
340843
340864
|
init_DocxZipper_TPSo9G36_es();
|
|
340844
|
-
|
|
340865
|
+
init_create_super_doc_ui_BEAzL3ry_es();
|
|
340845
340866
|
init_ui_CGB3qmy3_es();
|
|
340846
340867
|
init_eventemitter3_UwU_CLPU_es();
|
|
340847
340868
|
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.107",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"bin": {
|
|
6
6
|
"superdoc": "./dist/index.js"
|
|
@@ -26,19 +26,19 @@
|
|
|
26
26
|
"typescript": "^5.9.2",
|
|
27
27
|
"@superdoc/document-api": "0.0.1",
|
|
28
28
|
"@superdoc/super-editor": "0.0.1",
|
|
29
|
-
"superdoc": "
|
|
30
|
-
"
|
|
29
|
+
"@superdoc/pm-adapter": "0.0.0",
|
|
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-
|
|
38
|
-
"@superdoc-dev/cli-darwin-
|
|
39
|
-
"@superdoc-dev/cli-linux-x64": "0.8.0-next.
|
|
40
|
-
"@superdoc-dev/cli-linux-arm64": "0.8.0-next.
|
|
41
|
-
"@superdoc-dev/cli-windows-x64": "0.8.0-next.
|
|
37
|
+
"@superdoc-dev/cli-darwin-arm64": "0.8.0-next.107",
|
|
38
|
+
"@superdoc-dev/cli-darwin-x64": "0.8.0-next.107",
|
|
39
|
+
"@superdoc-dev/cli-linux-x64": "0.8.0-next.107",
|
|
40
|
+
"@superdoc-dev/cli-linux-arm64": "0.8.0-next.107",
|
|
41
|
+
"@superdoc-dev/cli-windows-x64": "0.8.0-next.107"
|
|
42
42
|
},
|
|
43
43
|
"scripts": {
|
|
44
44
|
"predev": "node scripts/ensure-superdoc-build.js",
|