@superdoc-dev/cli 0.8.0-next.118 → 0.8.0-next.119
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 +72 -9
- package/package.json +7 -7
package/dist/index.js
CHANGED
|
@@ -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-C3dDgx5S.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) => {
|
|
@@ -286315,7 +286315,7 @@ var Node$13 = class Node$14 {
|
|
|
286315
286315
|
defaultItems: visibleItems,
|
|
286316
286316
|
overflowItems: overflowItems.filter((item) => item.type !== "separator")
|
|
286317
286317
|
};
|
|
286318
|
-
}, _hoisted_1$10, _hoisted_2$7, ToolbarButtonIcon_default, _hoisted_1$9, _hoisted_2$6, _hoisted_3$5, _hoisted_4$4, _hoisted_5$2, _hoisted_6$1, _hoisted_7$1, _hoisted_8, _hoisted_9, _hoisted_10, _hoisted_11, _hoisted_12, ToolbarButton_default, _hoisted_1$8, ToolbarSeparator_default, _hoisted_1$7, _hoisted_2$5, _hoisted_3$4, OverflowMenu_default, _hoisted_1$6, _hoisted_2$4, _hoisted_3$3, _hoisted_4$3, ToolbarDropdown_default, SdTooltip_default, _hoisted_1$5, _hoisted_2$3, _hoisted_3$2, _hoisted_4$2, ButtonGroup_default, DEFAULT_UI_FONT_FAMILY = "Arial, Helvetica, sans-serif", Toolbar_default, toolbarTexts, getParagraphFontFamilyFromProperties = (paragraphProps, convertedXml = {}) => {
|
|
286318
|
+
}, _hoisted_1$10, _hoisted_2$7, ToolbarButtonIcon_default, _hoisted_1$9, _hoisted_2$6, _hoisted_3$5, _hoisted_4$4, _hoisted_5$2, _hoisted_6$1, _hoisted_7$1, _hoisted_8, _hoisted_9, _hoisted_10, _hoisted_11, _hoisted_12, ToolbarButton_default, _hoisted_1$8, ToolbarSeparator_default, _hoisted_1$7, _hoisted_2$5, _hoisted_3$4, OverflowMenu_default, _hoisted_1$6, _hoisted_2$4, _hoisted_3$3, _hoisted_4$3, TRIGGER_FOCUS_SELECTOR = 'button, [href], input, select, textarea, [role="button"], [tabindex]:not([tabindex="-1"])', ToolbarDropdown_default, SdTooltip_default, _hoisted_1$5, _hoisted_2$3, _hoisted_3$2, _hoisted_4$2, ButtonGroup_default, DEFAULT_UI_FONT_FAMILY = "Arial, Helvetica, sans-serif", Toolbar_default, toolbarTexts, getParagraphFontFamilyFromProperties = (paragraphProps, convertedXml = {}) => {
|
|
286319
286319
|
const fontFamilyProps = paragraphProps?.runProperties?.fontFamily;
|
|
286320
286320
|
if (!fontFamilyProps)
|
|
286321
286321
|
return null;
|
|
@@ -304088,7 +304088,7 @@ menclose::after {
|
|
|
304088
304088
|
return;
|
|
304089
304089
|
console.log(...args$1);
|
|
304090
304090
|
}, 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;
|
|
304091
|
-
var
|
|
304091
|
+
var init_src_C3dDgx5S_es = __esm(() => {
|
|
304092
304092
|
init_rolldown_runtime_Bg48TavK_es();
|
|
304093
304093
|
init_SuperConverter_ByqzBuoW_es();
|
|
304094
304094
|
init_jszip_C49i9kUs_es();
|
|
@@ -324490,6 +324490,10 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
324490
324490
|
isOverflowItem: {
|
|
324491
324491
|
type: Boolean,
|
|
324492
324492
|
default: false
|
|
324493
|
+
},
|
|
324494
|
+
allowEnterPropagation: {
|
|
324495
|
+
type: Boolean,
|
|
324496
|
+
default: false
|
|
324493
324497
|
}
|
|
324494
324498
|
},
|
|
324495
324499
|
emits: [
|
|
@@ -324531,6 +324535,11 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
324531
324535
|
}
|
|
324532
324536
|
handleClick$1();
|
|
324533
324537
|
};
|
|
324538
|
+
const onEnterKeydown = (event) => {
|
|
324539
|
+
if (!props.allowEnterPropagation)
|
|
324540
|
+
event.stopPropagation();
|
|
324541
|
+
handleOuterEnter(event);
|
|
324542
|
+
};
|
|
324534
324543
|
const handleInputSubmit = () => {
|
|
324535
324544
|
const value = inlineTextInput.value;
|
|
324536
324545
|
const cleanValue = value.match(/^\d+(\.5)?$/) ? value : Math.floor(parseFloat(value)).toString();
|
|
@@ -324552,7 +324561,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
324552
324561
|
role: __props.isOverflowItem ? "menuitem" : "button",
|
|
324553
324562
|
"aria-label": exports_vue.unref(attributes).ariaLabel,
|
|
324554
324563
|
onClick: handleOuterClick,
|
|
324555
|
-
onKeydown: _cache[3] || (_cache[3] = exports_vue.withKeys(
|
|
324564
|
+
onKeydown: _cache[3] || (_cache[3] = exports_vue.withKeys(($event) => onEnterKeydown($event), ["enter"])),
|
|
324556
324565
|
tabindex: "0"
|
|
324557
324566
|
}, [exports_vue.createElementVNode("div", {
|
|
324558
324567
|
class: exports_vue.normalizeClass(["toolbar-button", {
|
|
@@ -324638,7 +324647,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
324638
324647
|
], 10, _hoisted_2$6)], 46, _hoisted_1$9);
|
|
324639
324648
|
};
|
|
324640
324649
|
}
|
|
324641
|
-
}, [["__scopeId", "data-v-
|
|
324650
|
+
}, [["__scopeId", "data-v-dcf6ef0b"]]);
|
|
324642
324651
|
_hoisted_1$8 = {
|
|
324643
324652
|
class: "toolbar-separator",
|
|
324644
324653
|
role: "separator",
|
|
@@ -324970,6 +324979,33 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
324970
324979
|
return;
|
|
324971
324980
|
close2();
|
|
324972
324981
|
};
|
|
324982
|
+
const triggerFocusTargetRef = exports_vue.ref(null);
|
|
324983
|
+
const rememberTriggerFocusTarget = () => {
|
|
324984
|
+
const trigger = triggerRef.value;
|
|
324985
|
+
const active = document.activeElement;
|
|
324986
|
+
if (trigger && active instanceof HTMLElement && trigger.contains(active)) {
|
|
324987
|
+
triggerFocusTargetRef.value = active;
|
|
324988
|
+
return;
|
|
324989
|
+
}
|
|
324990
|
+
triggerFocusTargetRef.value = trigger?.matches?.(TRIGGER_FOCUS_SELECTOR) ? trigger : trigger?.querySelector(TRIGGER_FOCUS_SELECTOR);
|
|
324991
|
+
};
|
|
324992
|
+
const focusTrigger = () => {
|
|
324993
|
+
const remembered = triggerFocusTargetRef.value;
|
|
324994
|
+
if (remembered instanceof HTMLElement && document.contains(remembered)) {
|
|
324995
|
+
remembered.focus();
|
|
324996
|
+
return;
|
|
324997
|
+
}
|
|
324998
|
+
const trigger = triggerRef.value;
|
|
324999
|
+
if (!trigger)
|
|
325000
|
+
return;
|
|
325001
|
+
const fallback = trigger.matches?.(TRIGGER_FOCUS_SELECTOR) ? trigger : trigger.querySelector(TRIGGER_FOCUS_SELECTOR);
|
|
325002
|
+
if (fallback instanceof HTMLElement) {
|
|
325003
|
+
fallback.focus();
|
|
325004
|
+
return;
|
|
325005
|
+
}
|
|
325006
|
+
trigger.setAttribute("tabindex", "-1");
|
|
325007
|
+
trigger.focus();
|
|
325008
|
+
};
|
|
324973
325009
|
const handleKeyDown$1 = (event) => {
|
|
324974
325010
|
if (!isOpen.value)
|
|
324975
325011
|
return;
|
|
@@ -324982,7 +325018,11 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
324982
325018
|
].includes(key2))
|
|
324983
325019
|
return;
|
|
324984
325020
|
if (key2 === "Escape") {
|
|
325021
|
+
event.preventDefault();
|
|
324985
325022
|
close2();
|
|
325023
|
+
exports_vue.nextTick(() => {
|
|
325024
|
+
requestAnimationFrame(focusTrigger);
|
|
325025
|
+
});
|
|
324986
325026
|
return;
|
|
324987
325027
|
}
|
|
324988
325028
|
if (hasRenderOptions.value)
|
|
@@ -325007,6 +325047,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
325007
325047
|
optionRefs.value = [];
|
|
325008
325048
|
return;
|
|
325009
325049
|
}
|
|
325050
|
+
rememberTriggerFocusTarget();
|
|
325010
325051
|
await exports_vue.nextTick();
|
|
325011
325052
|
updateMenuPosition();
|
|
325012
325053
|
if (hasRenderOptions.value)
|
|
@@ -325073,7 +325114,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
325073
325114
|
})]))]);
|
|
325074
325115
|
};
|
|
325075
325116
|
}
|
|
325076
|
-
}, [["__scopeId", "data-v-
|
|
325117
|
+
}, [["__scopeId", "data-v-261e2a66"]]);
|
|
325077
325118
|
SdTooltip_default = /* @__PURE__ */ __plugin_vue_export_helper_default(/* @__PURE__ */ Object.assign({ inheritAttrs: false }, {
|
|
325078
325119
|
__name: "SdTooltip",
|
|
325079
325120
|
props: {
|
|
@@ -325471,15 +325512,36 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
325471
325512
|
previousButtonGroup.focus();
|
|
325472
325513
|
}
|
|
325473
325514
|
};
|
|
325515
|
+
const activateToolbarItem = (item) => {
|
|
325516
|
+
if (item.disabled.value)
|
|
325517
|
+
return;
|
|
325518
|
+
if (isDropdown(item)) {
|
|
325519
|
+
handleDropdownUpdateShowForItem(!getExpanded(item), item);
|
|
325520
|
+
return;
|
|
325521
|
+
}
|
|
325522
|
+
handleToolbarButtonClick(item, null, false);
|
|
325523
|
+
};
|
|
325474
325524
|
const handleKeyDown$1 = (e, item) => {
|
|
325475
325525
|
const isTypingField = e.target.nodeName === "INPUT" || e.target.nodeName === "TEXTAREA";
|
|
325476
325526
|
const isTypingToolbarItem = item.name.value === "fontSize";
|
|
325477
325527
|
if (isTypingField && isTypingToolbarItem)
|
|
325478
325528
|
return;
|
|
325529
|
+
if (![
|
|
325530
|
+
"Enter",
|
|
325531
|
+
" ",
|
|
325532
|
+
"Spacebar",
|
|
325533
|
+
"Escape",
|
|
325534
|
+
"ArrowRight",
|
|
325535
|
+
"ArrowLeft",
|
|
325536
|
+
"Tab"
|
|
325537
|
+
].includes(e.key))
|
|
325538
|
+
return;
|
|
325479
325539
|
e.preventDefault();
|
|
325480
325540
|
switch (e.key) {
|
|
325481
325541
|
case "Enter":
|
|
325482
|
-
|
|
325542
|
+
case " ":
|
|
325543
|
+
case "Spacebar":
|
|
325544
|
+
activateToolbarItem(item);
|
|
325483
325545
|
break;
|
|
325484
325546
|
case "Escape":
|
|
325485
325547
|
closeDropdowns();
|
|
@@ -325598,6 +325660,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
325598
325660
|
trigger: exports_vue.withCtx(() => [exports_vue.createVNode(ToolbarButton_default, {
|
|
325599
325661
|
"toolbar-item": item,
|
|
325600
325662
|
disabled: item.disabled.value,
|
|
325663
|
+
"allow-enter-propagation": true,
|
|
325601
325664
|
onTextSubmit: ($event) => handleToolbarButtonTextSubmit(item, $event),
|
|
325602
325665
|
onMainClick: ($event) => handleSplitButtonMainClick(item)
|
|
325603
325666
|
}, null, 8, [
|
|
@@ -325655,7 +325718,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
325655
325718
|
}), 128))], 36);
|
|
325656
325719
|
};
|
|
325657
325720
|
}
|
|
325658
|
-
}, [["__scopeId", "data-v-
|
|
325721
|
+
}, [["__scopeId", "data-v-109576cd"]]);
|
|
325659
325722
|
Toolbar_default = /* @__PURE__ */ __plugin_vue_export_helper_default({
|
|
325660
325723
|
__name: "Toolbar",
|
|
325661
325724
|
emits: [
|
|
@@ -342211,7 +342274,7 @@ var init_zipper_BxRAi0_5_es = __esm(() => {
|
|
|
342211
342274
|
|
|
342212
342275
|
// ../../packages/superdoc/dist/super-editor.es.js
|
|
342213
342276
|
var init_super_editor_es = __esm(() => {
|
|
342214
|
-
|
|
342277
|
+
init_src_C3dDgx5S_es();
|
|
342215
342278
|
init_SuperConverter_ByqzBuoW_es();
|
|
342216
342279
|
init_jszip_C49i9kUs_es();
|
|
342217
342280
|
init_xml_js_CqGKpaft_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.119",
|
|
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/document-api": "0.0.1",
|
|
27
28
|
"@superdoc/pm-adapter": "0.0.0",
|
|
28
29
|
"@superdoc/super-editor": "0.0.1",
|
|
29
|
-
"@superdoc/document-api": "0.0.1",
|
|
30
30
|
"superdoc": "1.32.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.8.0-next.
|
|
38
|
-
"@superdoc-dev/cli-
|
|
39
|
-
"@superdoc-dev/cli-linux-
|
|
40
|
-
"@superdoc-dev/cli-
|
|
41
|
-
"@superdoc-dev/cli-
|
|
37
|
+
"@superdoc-dev/cli-darwin-arm64": "0.8.0-next.119",
|
|
38
|
+
"@superdoc-dev/cli-linux-arm64": "0.8.0-next.119",
|
|
39
|
+
"@superdoc-dev/cli-linux-x64": "0.8.0-next.119",
|
|
40
|
+
"@superdoc-dev/cli-darwin-x64": "0.8.0-next.119",
|
|
41
|
+
"@superdoc-dev/cli-windows-x64": "0.8.0-next.119"
|
|
42
42
|
},
|
|
43
43
|
"scripts": {
|
|
44
44
|
"predev": "node scripts/ensure-superdoc-build.js",
|