@superdoc-dev/cli 0.8.0-next.100 → 0.8.0-next.101
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 +159 -32
- package/package.json +7 -7
package/dist/index.js
CHANGED
|
@@ -66095,7 +66095,7 @@ var init_remark_gfm_BhnWr3yf_es = __esm(() => {
|
|
|
66095
66095
|
emptyOptions2 = {};
|
|
66096
66096
|
});
|
|
66097
66097
|
|
|
66098
|
-
// ../../packages/superdoc/dist/chunks/SuperConverter-
|
|
66098
|
+
// ../../packages/superdoc/dist/chunks/SuperConverter-5Idv4fhC.es.js
|
|
66099
66099
|
function getExtensionConfigField(extension$1, field, context = { name: "" }) {
|
|
66100
66100
|
const fieldValue = extension$1.config[field];
|
|
66101
66101
|
if (typeof fieldValue === "function")
|
|
@@ -84544,6 +84544,15 @@ function calculateResolvedParagraphProperties(editor, node3, $pos) {
|
|
|
84544
84544
|
resolvedParagraphPropertiesCache.set(node3, paragraphProperties);
|
|
84545
84545
|
return paragraphProperties;
|
|
84546
84546
|
}
|
|
84547
|
+
function resolveHypotheticalParagraphProperties(editor, $pos, inlineProps) {
|
|
84548
|
+
if (!editor?.converter)
|
|
84549
|
+
return inlineProps;
|
|
84550
|
+
const tableStyleId = findParentNodeClosestToPos($pos, (node3) => node3.type.name === "table")?.node.attrs.tableStyleId || null;
|
|
84551
|
+
return resolveParagraphProperties({
|
|
84552
|
+
translatedNumbering: editor.converter.translatedNumbering,
|
|
84553
|
+
translatedLinkedStyles: editor.converter.translatedLinkedStyles
|
|
84554
|
+
}, inlineProps, tableStyleId);
|
|
84555
|
+
}
|
|
84547
84556
|
function getRunContext($pos) {
|
|
84548
84557
|
let paragraphNode = null;
|
|
84549
84558
|
let paragraphDepth = -1;
|
|
@@ -119539,7 +119548,7 @@ var isRegExp = (value) => {
|
|
|
119539
119548
|
state.kern = kernNode.attributes["w:val"];
|
|
119540
119549
|
}
|
|
119541
119550
|
}, SuperConverter;
|
|
119542
|
-
var
|
|
119551
|
+
var init_SuperConverter_5Idv4fhC_es = __esm(() => {
|
|
119543
119552
|
init_rolldown_runtime_Bg48TavK_es();
|
|
119544
119553
|
init_jszip_C49i9kUs_es();
|
|
119545
119554
|
init_xml_js_CqGKpaft_es();
|
|
@@ -157408,7 +157417,7 @@ var init_SuperConverter_B1Huzhur_es = __esm(() => {
|
|
|
157408
157417
|
};
|
|
157409
157418
|
});
|
|
157410
157419
|
|
|
157411
|
-
// ../../packages/superdoc/dist/chunks/create-headless-toolbar-
|
|
157420
|
+
// ../../packages/superdoc/dist/chunks/create-headless-toolbar-CEUTigkM.es.js
|
|
157412
157421
|
function parseSizeUnit(val = "0") {
|
|
157413
157422
|
const length3 = val.toString() || "0";
|
|
157414
157423
|
const value = Number.parseFloat(length3);
|
|
@@ -159661,6 +159670,27 @@ var CSS_DIMENSION_REGEX, DOM_SIZE_UNITS, Extension = class Extension2 {
|
|
|
159661
159670
|
}, getCurrentParagraphJustification = (context) => {
|
|
159662
159671
|
const paragraphProperties = getCurrentResolvedParagraphProperties(context);
|
|
159663
159672
|
return mapStoredJustificationToDisplayAlignment(paragraphProperties?.justification ?? null, paragraphProperties?.rightToLeft === true);
|
|
159673
|
+
}, createParagraphDirectionStateDeriver = (direction) => ({ context }) => {
|
|
159674
|
+
if (isCommandDisabled(context))
|
|
159675
|
+
return {
|
|
159676
|
+
active: false,
|
|
159677
|
+
disabled: true,
|
|
159678
|
+
value: null
|
|
159679
|
+
};
|
|
159680
|
+
const current = getCurrentResolvedParagraphProperties(context)?.rightToLeft ? "rtl" : "ltr";
|
|
159681
|
+
return {
|
|
159682
|
+
active: current === direction,
|
|
159683
|
+
disabled: false,
|
|
159684
|
+
value: current
|
|
159685
|
+
};
|
|
159686
|
+
}, createParagraphDirectionExecute = (direction) => ({ context }) => {
|
|
159687
|
+
const command = resolveStateEditor(context)?.commands.setParagraphDirection;
|
|
159688
|
+
if (typeof command !== "function")
|
|
159689
|
+
return false;
|
|
159690
|
+
return Boolean(command({
|
|
159691
|
+
direction,
|
|
159692
|
+
alignmentPolicy: "matchDirection"
|
|
159693
|
+
}));
|
|
159664
159694
|
}, createTextAlignStateDeriver = () => ({ context }) => {
|
|
159665
159695
|
if (isCommandDisabled(context))
|
|
159666
159696
|
return {
|
|
@@ -159900,6 +159930,18 @@ var CSS_DIMENSION_REGEX, DOM_SIZE_UNITS, Extension = class Extension2 {
|
|
|
159900
159930
|
state: createDisabledStateDeriver(),
|
|
159901
159931
|
execute: createIndentDecreaseExecute()
|
|
159902
159932
|
},
|
|
159933
|
+
"direction-ltr": {
|
|
159934
|
+
id: "direction-ltr",
|
|
159935
|
+
directCommandName: "setParagraphDirection",
|
|
159936
|
+
state: createParagraphDirectionStateDeriver("ltr"),
|
|
159937
|
+
execute: createParagraphDirectionExecute("ltr")
|
|
159938
|
+
},
|
|
159939
|
+
"direction-rtl": {
|
|
159940
|
+
id: "direction-rtl",
|
|
159941
|
+
directCommandName: "setParagraphDirection",
|
|
159942
|
+
state: createParagraphDirectionStateDeriver("rtl"),
|
|
159943
|
+
execute: createParagraphDirectionExecute("rtl")
|
|
159944
|
+
},
|
|
159903
159945
|
undo: {
|
|
159904
159946
|
id: "undo",
|
|
159905
159947
|
directCommandName: "undo",
|
|
@@ -160097,8 +160139,8 @@ var CSS_DIMENSION_REGEX, DOM_SIZE_UNITS, Extension = class Extension2 {
|
|
|
160097
160139
|
}
|
|
160098
160140
|
};
|
|
160099
160141
|
};
|
|
160100
|
-
var
|
|
160101
|
-
|
|
160142
|
+
var init_create_headless_toolbar_CEUTigkM_es = __esm(() => {
|
|
160143
|
+
init_SuperConverter_5Idv4fhC_es();
|
|
160102
160144
|
init_constants_DrU4EASo_es();
|
|
160103
160145
|
init_dist_B8HfvhaK_es();
|
|
160104
160146
|
CSS_DIMENSION_REGEX = /[\d-.]+(\w+)$/;
|
|
@@ -208795,7 +208837,7 @@ var init_remark_gfm_eZN6yzWQ_es = __esm(() => {
|
|
|
208795
208837
|
init_remark_gfm_BhnWr3yf_es();
|
|
208796
208838
|
});
|
|
208797
208839
|
|
|
208798
|
-
// ../../packages/superdoc/dist/chunks/src-
|
|
208840
|
+
// ../../packages/superdoc/dist/chunks/src-VLFj9vqo.es.js
|
|
208799
208841
|
function deleteProps(obj, propOrProps) {
|
|
208800
208842
|
const props = typeof propOrProps === "string" ? [propOrProps] : propOrProps;
|
|
208801
208843
|
const removeNested = (target, pathParts, index2 = 0) => {
|
|
@@ -209040,6 +209082,16 @@ function calculateTabWidth(params$1) {
|
|
|
209040
209082
|
tabStopPosUsed: nextStop.pos
|
|
209041
209083
|
};
|
|
209042
209084
|
}
|
|
209085
|
+
function getParagraphInlineDirection(attrs) {
|
|
209086
|
+
const fromContext = attrs?.directionContext?.inlineDirection;
|
|
209087
|
+
if (fromContext != null)
|
|
209088
|
+
return fromContext;
|
|
209089
|
+
const ppRtl = attrs?.paragraphProperties?.rightToLeft;
|
|
209090
|
+
if (attrs?.direction === "rtl" || attrs?.dir === "rtl" || attrs?.rtl === true || ppRtl === true)
|
|
209091
|
+
return "rtl";
|
|
209092
|
+
if (attrs?.direction === "ltr" || attrs?.dir === "ltr" || attrs?.rtl === false || ppRtl === false)
|
|
209093
|
+
return "ltr";
|
|
209094
|
+
}
|
|
209043
209095
|
function resolveTableWidthAttr(value) {
|
|
209044
209096
|
if (!value || typeof value !== "object")
|
|
209045
209097
|
return null;
|
|
@@ -211670,6 +211722,44 @@ function modifyIndentation(calcFunc, { resolveProps = false } = {}) {
|
|
|
211670
211722
|
return success;
|
|
211671
211723
|
};
|
|
211672
211724
|
}
|
|
211725
|
+
function walkParagraphs$1(transform) {
|
|
211726
|
+
return ({ editor, state, dispatch }) => {
|
|
211727
|
+
const { from: from$1, to } = state.selection;
|
|
211728
|
+
const tr = state.tr;
|
|
211729
|
+
let touched = false;
|
|
211730
|
+
state.doc.nodesBetween(from$1, to, (node3, pos) => {
|
|
211731
|
+
if (node3.type.name !== "paragraph")
|
|
211732
|
+
return true;
|
|
211733
|
+
const existing = node3.attrs.paragraphProperties || {};
|
|
211734
|
+
const updated = transform(existing, {
|
|
211735
|
+
editor,
|
|
211736
|
+
node: node3,
|
|
211737
|
+
$pos: state.doc.resolve(pos)
|
|
211738
|
+
});
|
|
211739
|
+
if (shallowEqual$2(existing, updated))
|
|
211740
|
+
return false;
|
|
211741
|
+
tr.setNodeMarkup(pos, undefined, {
|
|
211742
|
+
...node3.attrs,
|
|
211743
|
+
paragraphProperties: updated
|
|
211744
|
+
});
|
|
211745
|
+
touched = true;
|
|
211746
|
+
return false;
|
|
211747
|
+
});
|
|
211748
|
+
if (touched && dispatch)
|
|
211749
|
+
dispatch(tr);
|
|
211750
|
+
return touched;
|
|
211751
|
+
};
|
|
211752
|
+
}
|
|
211753
|
+
function shallowEqual$2(a2, b$1) {
|
|
211754
|
+
const ka = Object.keys(a2);
|
|
211755
|
+
const kb = Object.keys(b$1);
|
|
211756
|
+
if (ka.length !== kb.length)
|
|
211757
|
+
return false;
|
|
211758
|
+
for (const k$1 of ka)
|
|
211759
|
+
if (a2[k$1] !== b$1[k$1])
|
|
211760
|
+
return false;
|
|
211761
|
+
return true;
|
|
211762
|
+
}
|
|
211673
211763
|
function deleteFromEndOfRun(state, dispatch, $pos) {
|
|
211674
211764
|
const rightRun = state.doc.nodeAt($pos.pos + 1);
|
|
211675
211765
|
const $afterRightRunPos = state.doc.resolve($pos.pos + 2 + rightRun.nodeSize);
|
|
@@ -212645,7 +212735,7 @@ function isListParagraph(node3) {
|
|
|
212645
212735
|
return node3?.type?.name === "paragraph" && node3.attrs?.paragraphProperties?.numberingProperties && node3.attrs?.listRendering;
|
|
212646
212736
|
}
|
|
212647
212737
|
function isRtlParagraph$1(node3) {
|
|
212648
|
-
return node3?.attrs
|
|
212738
|
+
return getParagraphInlineDirection(node3?.attrs) === "rtl";
|
|
212649
212739
|
}
|
|
212650
212740
|
function getParagraphContext$1($pos) {
|
|
212651
212741
|
for (let depth = $pos.depth;depth >= 0; depth--) {
|
|
@@ -267487,7 +267577,7 @@ function computeCaretLayoutRectGeometry({ layout, blocks: blocks2, measures, pai
|
|
|
267487
267577
|
});
|
|
267488
267578
|
const availableWidth = Math.max(0, fragment2.width - (indentAdjust + indent2.right));
|
|
267489
267579
|
const charX = measureCharacterX(block, line, pmOffset, availableWidth);
|
|
267490
|
-
const resolvedCharX = block.attrs
|
|
267580
|
+
const resolvedCharX = getParagraphInlineDirection(block.attrs) === "rtl" ? Math.max(0, availableWidth - charX) : charX;
|
|
267491
267581
|
const localX = fragment2.x + indentAdjust + resolvedCharX;
|
|
267492
267582
|
const lineOffset = lineHeightBeforeIndex(measure.lines, fragment2.fromLine, index2);
|
|
267493
267583
|
const localY = fragment2.y + lineOffset;
|
|
@@ -276201,7 +276291,32 @@ var Node$13 = class Node$14 {
|
|
|
276201
276291
|
});
|
|
276202
276292
|
}, unsetLineHeight = () => ({ commands: commands$1 }) => {
|
|
276203
276293
|
return commands$1.resetAttributes("paragraph", "paragraphProperties.spacing.line", "paragraphProperties.spacing.lineRule");
|
|
276204
|
-
},
|
|
276294
|
+
}, setParagraphDirection = ({ direction, alignmentPolicy } = {}) => {
|
|
276295
|
+
if (direction !== "ltr" && direction !== "rtl")
|
|
276296
|
+
return () => false;
|
|
276297
|
+
return walkParagraphs$1((pPr, { editor, $pos }) => {
|
|
276298
|
+
const next2 = { ...pPr };
|
|
276299
|
+
if (direction === "rtl")
|
|
276300
|
+
next2.rightToLeft = true;
|
|
276301
|
+
else {
|
|
276302
|
+
delete next2.rightToLeft;
|
|
276303
|
+
if (resolveHypotheticalParagraphProperties(editor, $pos, next2)?.rightToLeft === true)
|
|
276304
|
+
next2.rightToLeft = false;
|
|
276305
|
+
}
|
|
276306
|
+
if (alignmentPolicy === "matchDirection") {
|
|
276307
|
+
const j = pPr.justification;
|
|
276308
|
+
if (j === "left" && direction === "rtl")
|
|
276309
|
+
next2.justification = "right";
|
|
276310
|
+
else if (j === "right" && direction === "ltr")
|
|
276311
|
+
next2.justification = "left";
|
|
276312
|
+
}
|
|
276313
|
+
return next2;
|
|
276314
|
+
});
|
|
276315
|
+
}, clearParagraphDirection = () => walkParagraphs$1((pPr) => {
|
|
276316
|
+
const next2 = { ...pPr };
|
|
276317
|
+
delete next2.rightToLeft;
|
|
276318
|
+
return next2;
|
|
276319
|
+
}), backspaceEmptyRunParagraph = () => ({ state, dispatch }) => {
|
|
276205
276320
|
const { $from } = state.selection;
|
|
276206
276321
|
if (!state.selection.empty)
|
|
276207
276322
|
return false;
|
|
@@ -290254,7 +290369,7 @@ menclose::after {
|
|
|
290254
290369
|
y$1 += actualRowHeight + cellSpacingPx;
|
|
290255
290370
|
}
|
|
290256
290371
|
return container;
|
|
290257
|
-
}, isRtlParagraph = (attrs) => attrs
|
|
290372
|
+
}, isRtlParagraph = (attrs) => getParagraphInlineDirection(attrs) === "rtl", resolveTextAlign = (alignment$1, isRtl) => {
|
|
290258
290373
|
switch (alignment$1) {
|
|
290259
290374
|
case "center":
|
|
290260
290375
|
case "right":
|
|
@@ -291578,7 +291693,7 @@ menclose::after {
|
|
|
291578
291693
|
attrs.borders ? hashParagraphBorders$1(attrs.borders) : "",
|
|
291579
291694
|
attrs.shading?.fill ?? "",
|
|
291580
291695
|
attrs.shading?.color ?? "",
|
|
291581
|
-
attrs
|
|
291696
|
+
getParagraphInlineDirection(attrs) ?? "",
|
|
291582
291697
|
attrs.tabs?.length ? JSON.stringify(attrs.tabs) : ""
|
|
291583
291698
|
].join(":") : "";
|
|
291584
291699
|
const sdtAttrs = block.attrs?.sdt;
|
|
@@ -291706,7 +291821,7 @@ menclose::after {
|
|
|
291706
291821
|
hash$3 = hashNumber(hash$3, attrs.indent?.hanging ?? 0);
|
|
291707
291822
|
hash$3 = hashString(hash$3, attrs.shading?.fill ?? "");
|
|
291708
291823
|
hash$3 = hashString(hash$3, attrs.shading?.color ?? "");
|
|
291709
|
-
hash$3 = hashString(hash$3, attrs
|
|
291824
|
+
hash$3 = hashString(hash$3, getParagraphInlineDirection(attrs) ?? "");
|
|
291710
291825
|
if (attrs.borders)
|
|
291711
291826
|
hash$3 = hashString(hash$3, hashParagraphBorders$1(attrs.borders));
|
|
291712
291827
|
}
|
|
@@ -292422,8 +292537,9 @@ menclose::after {
|
|
|
292422
292537
|
if (sh.color)
|
|
292423
292538
|
parts.push(`shc:${sh.color}`);
|
|
292424
292539
|
}
|
|
292425
|
-
|
|
292426
|
-
|
|
292540
|
+
const cellDir = getParagraphInlineDirection(attrs);
|
|
292541
|
+
if (cellDir)
|
|
292542
|
+
parts.push(`dir:${cellDir}`);
|
|
292427
292543
|
if (parts.length > 0)
|
|
292428
292544
|
cellHashes.push(`pa:${parts.join(":")}`);
|
|
292429
292545
|
}
|
|
@@ -292529,8 +292645,9 @@ menclose::after {
|
|
|
292529
292645
|
const tabsHash = attrs.tabs.map((t) => `${t.val ?? ""}:${t.pos ?? ""}:${t.leader ?? ""}`).join(",");
|
|
292530
292646
|
parts.push(`tb:${tabsHash}`);
|
|
292531
292647
|
}
|
|
292532
|
-
|
|
292533
|
-
|
|
292648
|
+
const dir = getParagraphInlineDirection(attrs);
|
|
292649
|
+
if (dir)
|
|
292650
|
+
parts.push(`dir:${dir}`);
|
|
292534
292651
|
if (attrs.keepNext)
|
|
292535
292652
|
parts.push("kn");
|
|
292536
292653
|
if (attrs.keepLines)
|
|
@@ -302412,12 +302529,12 @@ menclose::after {
|
|
|
302412
302529
|
return;
|
|
302413
302530
|
console.log(...args$1);
|
|
302414
302531
|
}, 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;
|
|
302415
|
-
var
|
|
302532
|
+
var init_src_VLFj9vqo_es = __esm(() => {
|
|
302416
302533
|
init_rolldown_runtime_Bg48TavK_es();
|
|
302417
|
-
|
|
302534
|
+
init_SuperConverter_5Idv4fhC_es();
|
|
302418
302535
|
init_jszip_C49i9kUs_es();
|
|
302419
302536
|
init_uuid_qzgm05fK_es();
|
|
302420
|
-
|
|
302537
|
+
init_create_headless_toolbar_CEUTigkM_es();
|
|
302421
302538
|
init_constants_DrU4EASo_es();
|
|
302422
302539
|
init_dist_B8HfvhaK_es();
|
|
302423
302540
|
init_unified_Dsuw2be5_es();
|
|
@@ -305179,6 +305296,7 @@ ${err.toString()}`);
|
|
|
305179
305296
|
backspaceSkipEmptyRun: () => backspaceSkipEmptyRun,
|
|
305180
305297
|
changeListLevel: () => changeListLevel,
|
|
305181
305298
|
clearNodes: () => clearNodes,
|
|
305299
|
+
clearParagraphDirection: () => clearParagraphDirection,
|
|
305182
305300
|
command: () => command,
|
|
305183
305301
|
createParagraphNear: () => createParagraphNear$1,
|
|
305184
305302
|
decreaseListIndent: () => decreaseListIndent,
|
|
@@ -305225,6 +305343,7 @@ ${err.toString()}`);
|
|
|
305225
305343
|
setMark: () => setMark,
|
|
305226
305344
|
setMeta: () => setMeta,
|
|
305227
305345
|
setNode: () => setNode,
|
|
305346
|
+
setParagraphDirection: () => setParagraphDirection,
|
|
305228
305347
|
setSectionHeaderFooterAtSelection: () => setSectionHeaderFooterAtSelection,
|
|
305229
305348
|
setSectionPageMarginsAtSelection: () => setSectionPageMarginsAtSelection,
|
|
305230
305349
|
setTextIndentation: () => setTextIndentation,
|
|
@@ -321388,6 +321507,10 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
321388
321507
|
numberedListLowerAlphaParen: list_lower_alpha_paren_solid_default,
|
|
321389
321508
|
indentLeft: outdent_solid_default,
|
|
321390
321509
|
indentRight: indent_solid_default,
|
|
321510
|
+
directionLtr: `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor" aria-hidden="true"><path d="M9 10v5h2V4h2v11h2V4h2V2H9C6.79 2 5 3.79 5 6s1.79 4 4 4zm12 8l-4-4v3H5v2h12v3l4-4z"/></svg>
|
|
321511
|
+
`,
|
|
321512
|
+
directionRtl: `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor" aria-hidden="true"><path d="M10 10v5h2V4h2v11h2V4h2V2h-8C7.79 2 6 3.79 6 6s1.79 4 4 4zm-2 7v-3l-4 4 4 4v-3h12v-2H8z"/></svg>
|
|
321513
|
+
`,
|
|
321391
321514
|
pageBreak: file_half_dashed_solid_default,
|
|
321392
321515
|
copyFormat: paint_roller_solid_default,
|
|
321393
321516
|
clearFormatting: text_slash_solid_default,
|
|
@@ -322683,6 +322806,8 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
322683
322806
|
linkedStyles: "linked-style",
|
|
322684
322807
|
indentleft: "indent-decrease",
|
|
322685
322808
|
indentright: "indent-increase",
|
|
322809
|
+
directionLtr: "direction-ltr",
|
|
322810
|
+
directionRtl: "direction-rtl",
|
|
322686
322811
|
clearFormatting: "clear-formatting",
|
|
322687
322812
|
copyFormat: "copy-format"
|
|
322688
322813
|
};
|
|
@@ -323673,7 +323798,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
323673
323798
|
emit("item-clicked");
|
|
323674
323799
|
emit("command", {
|
|
323675
323800
|
item,
|
|
323676
|
-
argument
|
|
323801
|
+
argument: argument ?? item.argument?.value ?? null
|
|
323677
323802
|
});
|
|
323678
323803
|
};
|
|
323679
323804
|
const handleToolbarButtonTextSubmit = (item, argument) => {
|
|
@@ -323964,7 +324089,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
323964
324089
|
}), 128))], 36);
|
|
323965
324090
|
};
|
|
323966
324091
|
}
|
|
323967
|
-
}, [["__scopeId", "data-v-
|
|
324092
|
+
}, [["__scopeId", "data-v-223b4fea"]]);
|
|
323968
324093
|
Toolbar_default = /* @__PURE__ */ __plugin_vue_export_helper_default({
|
|
323969
324094
|
__name: "Toolbar",
|
|
323970
324095
|
emits: [
|
|
@@ -324141,6 +324266,8 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
324141
324266
|
numberedList: "Numbered list",
|
|
324142
324267
|
indentLeft: "Left indent",
|
|
324143
324268
|
indentRight: "Right indent",
|
|
324269
|
+
directionLtr: "Left-to-right",
|
|
324270
|
+
directionRtl: "Right-to-left",
|
|
324144
324271
|
zoom: "Zoom",
|
|
324145
324272
|
undo: "Undo",
|
|
324146
324273
|
redo: "Redo",
|
|
@@ -324554,7 +324681,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
324554
324681
|
this.#deactivateAll();
|
|
324555
324682
|
return;
|
|
324556
324683
|
}
|
|
324557
|
-
this.toolbarItems.forEach((item) => {
|
|
324684
|
+
[...this.toolbarItems, ...this.overflowItems].forEach((item) => {
|
|
324558
324685
|
item.resetDisabled();
|
|
324559
324686
|
this.#applyHeadlessState(item);
|
|
324560
324687
|
});
|
|
@@ -330467,7 +330594,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
330467
330594
|
const expandedRunsForBlock = expandRunsForInlineNewlines(block.runs);
|
|
330468
330595
|
content3.lines.forEach((resolvedLine) => {
|
|
330469
330596
|
const paragraphMarkLeftOffset = this.resolveResolvedListParagraphMarkOffset(resolvedLine.isListFirstLine ? resolvedMarker : undefined, fragment2.markerTextWidth, resolvedLine.indentOffset);
|
|
330470
|
-
const isRtl = block.attrs
|
|
330597
|
+
const isRtl = getParagraphInlineDirection(block.attrs) === "rtl";
|
|
330471
330598
|
const lineEl = this.renderLine(block, resolvedLine.line, context, resolvedLine.availableWidth, resolvedLine.lineIndex, resolvedLine.skipJustify, expandedRunsForBlock, resolvedLine.resolvedListTextStartPx, resolvedLine.indentOffset, paragraphMarkLeftOffset);
|
|
330472
330599
|
if (!resolvedLine.isListFirstLine) {
|
|
330473
330600
|
if (resolvedLine.paddingLeftPx > 0)
|
|
@@ -330537,7 +330664,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
330537
330664
|
const paraIndent = block.attrs?.indent;
|
|
330538
330665
|
const paraIndentLeft = paraIndent?.left ?? 0;
|
|
330539
330666
|
const paraIndentRight = paraIndent?.right ?? 0;
|
|
330540
|
-
const isRtl = block.attrs
|
|
330667
|
+
const isRtl = getParagraphInlineDirection(block.attrs) === "rtl";
|
|
330541
330668
|
const { anchorIndentPx: paraMarkerAnchorIndent, firstLinePx: markerFirstLine, hangingPx: markerHanging } = resolveMarkerIndent(paraIndent, isRtl);
|
|
330542
330669
|
const firstLineOffset = block.attrs?.suppressFirstLineIndent === true ? 0 : (paraIndent?.firstLine ?? 0) - (paraIndent?.hanging ?? 0);
|
|
330543
330670
|
const expandedRunsForBlock = expandRunsForInlineNewlines(block.runs);
|
|
@@ -340448,11 +340575,11 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
340448
340575
|
];
|
|
340449
340576
|
});
|
|
340450
340577
|
|
|
340451
|
-
// ../../packages/superdoc/dist/chunks/create-super-doc-ui-
|
|
340578
|
+
// ../../packages/superdoc/dist/chunks/create-super-doc-ui-BGYHCZ5O.es.js
|
|
340452
340579
|
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;
|
|
340453
|
-
var
|
|
340454
|
-
|
|
340455
|
-
|
|
340580
|
+
var init_create_super_doc_ui_BGYHCZ5O_es = __esm(() => {
|
|
340581
|
+
init_SuperConverter_5Idv4fhC_es();
|
|
340582
|
+
init_create_headless_toolbar_CEUTigkM_es();
|
|
340456
340583
|
MOD_ALIASES = new Set([
|
|
340457
340584
|
"Mod",
|
|
340458
340585
|
"Meta",
|
|
@@ -340494,16 +340621,16 @@ var init_zipper_BxRAi0_5_es = __esm(() => {
|
|
|
340494
340621
|
|
|
340495
340622
|
// ../../packages/superdoc/dist/super-editor.es.js
|
|
340496
340623
|
var init_super_editor_es = __esm(() => {
|
|
340497
|
-
|
|
340498
|
-
|
|
340624
|
+
init_src_VLFj9vqo_es();
|
|
340625
|
+
init_SuperConverter_5Idv4fhC_es();
|
|
340499
340626
|
init_jszip_C49i9kUs_es();
|
|
340500
340627
|
init_xml_js_CqGKpaft_es();
|
|
340501
|
-
|
|
340628
|
+
init_create_headless_toolbar_CEUTigkM_es();
|
|
340502
340629
|
init_constants_DrU4EASo_es();
|
|
340503
340630
|
init_dist_B8HfvhaK_es();
|
|
340504
340631
|
init_unified_Dsuw2be5_es();
|
|
340505
340632
|
init_DocxZipper_Dh4RtvcE_es();
|
|
340506
|
-
|
|
340633
|
+
init_create_super_doc_ui_BGYHCZ5O_es();
|
|
340507
340634
|
init_ui_CGB3qmy3_es();
|
|
340508
340635
|
init_eventemitter3_UwU_CLPU_es();
|
|
340509
340636
|
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.101",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"bin": {
|
|
6
6
|
"superdoc": "./dist/index.js"
|
|
@@ -24,8 +24,8 @@
|
|
|
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",
|
|
28
27
|
"@superdoc/pm-adapter": "0.0.0",
|
|
28
|
+
"@superdoc/document-api": "0.0.1",
|
|
29
29
|
"@superdoc/super-editor": "0.0.1",
|
|
30
30
|
"superdoc": "1.32.0"
|
|
31
31
|
},
|
|
@@ -34,11 +34,11 @@
|
|
|
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-linux-x64": "0.8.0-next.
|
|
40
|
-
"@superdoc-dev/cli-
|
|
41
|
-
"@superdoc-dev/cli-
|
|
37
|
+
"@superdoc-dev/cli-darwin-arm64": "0.8.0-next.101",
|
|
38
|
+
"@superdoc-dev/cli-darwin-x64": "0.8.0-next.101",
|
|
39
|
+
"@superdoc-dev/cli-linux-x64": "0.8.0-next.101",
|
|
40
|
+
"@superdoc-dev/cli-linux-arm64": "0.8.0-next.101",
|
|
41
|
+
"@superdoc-dev/cli-windows-x64": "0.8.0-next.101"
|
|
42
42
|
},
|
|
43
43
|
"scripts": {
|
|
44
44
|
"predev": "node scripts/ensure-superdoc-build.js",
|