@superdoc-dev/cli 0.17.0-next.6 → 0.17.0-next.7
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 +30 -9
- package/package.json +6 -6
package/dist/index.js
CHANGED
|
@@ -233498,7 +233498,7 @@ var init_remark_gfm_eZN6yzWQ_es = __esm(() => {
|
|
|
233498
233498
|
init_remark_gfm_BhnWr3yf_es();
|
|
233499
233499
|
});
|
|
233500
233500
|
|
|
233501
|
-
// ../../packages/superdoc/dist/chunks/src-
|
|
233501
|
+
// ../../packages/superdoc/dist/chunks/src-BKOC1-8-.es.js
|
|
233502
233502
|
function deleteProps(obj, propOrProps) {
|
|
233503
233503
|
const props = typeof propOrProps === "string" ? [propOrProps] : propOrProps;
|
|
233504
233504
|
const removeNested = (target, pathParts, index2 = 0) => {
|
|
@@ -330959,7 +330959,7 @@ menclose::after {
|
|
|
330959
330959
|
return;
|
|
330960
330960
|
console.log(...args$1);
|
|
330961
330961
|
}, 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, TRACKED_MARK_NAMES;
|
|
330962
|
-
var
|
|
330962
|
+
var init_src_BKOC1_8_es = __esm(() => {
|
|
330963
330963
|
init_rolldown_runtime_Bg48TavK_es();
|
|
330964
330964
|
init_SuperConverter_BaKhr4cp_es();
|
|
330965
330965
|
init_jszip_C49i9kUs_es();
|
|
@@ -352208,7 +352208,8 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
352208
352208
|
const menuRef = exports_vue.ref(null);
|
|
352209
352209
|
const menuPosition = exports_vue.ref({
|
|
352210
352210
|
top: "0px",
|
|
352211
|
-
left: "0px"
|
|
352211
|
+
left: "0px",
|
|
352212
|
+
maxHeight: "none"
|
|
352212
352213
|
});
|
|
352213
352214
|
const optionRefs = exports_vue.ref([]);
|
|
352214
352215
|
const keyboardIndex = exports_vue.ref(-1);
|
|
@@ -352245,6 +352246,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
352245
352246
|
position: "fixed",
|
|
352246
352247
|
top: menuPosition.value.top,
|
|
352247
352248
|
left: menuPosition.value.left,
|
|
352249
|
+
maxHeight: menuPosition.value.maxHeight,
|
|
352248
352250
|
zIndex: 2000
|
|
352249
352251
|
};
|
|
352250
352252
|
});
|
|
@@ -352260,17 +352262,30 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
352260
352262
|
if (!triggerRef.value)
|
|
352261
352263
|
return;
|
|
352262
352264
|
const rect = triggerRef.value.getBoundingClientRect();
|
|
352263
|
-
const
|
|
352265
|
+
const menuEl = menuRef.value;
|
|
352266
|
+
const menuWidth = menuEl?.offsetWidth ?? 0;
|
|
352267
|
+
const menuHeight = menuEl?.scrollHeight ?? menuEl?.offsetHeight ?? 0;
|
|
352264
352268
|
const viewportWidth = window.innerWidth || document.documentElement.clientWidth || 0;
|
|
352269
|
+
const viewportHeight = window.innerHeight || document.documentElement.clientHeight || 0;
|
|
352265
352270
|
const gutter = 8;
|
|
352271
|
+
const gap = 4;
|
|
352272
|
+
const belowTop = rect.bottom + gap;
|
|
352273
|
+
const aboveBottom = rect.top - gap;
|
|
352274
|
+
const availableBelow = Math.max(0, viewportHeight - belowTop - gutter);
|
|
352275
|
+
const availableAbove = Math.max(0, aboveBottom - gutter);
|
|
352276
|
+
const openAbove = availableBelow < menuHeight && availableAbove > availableBelow;
|
|
352277
|
+
const maxHeight = openAbove ? availableAbove : availableBelow;
|
|
352278
|
+
const menuRenderHeight = menuHeight ? Math.min(menuHeight, maxHeight) : maxHeight;
|
|
352279
|
+
const top$1 = openAbove ? Math.max(gutter, aboveBottom - menuRenderHeight) : belowTop;
|
|
352266
352280
|
let left$1 = rect.left;
|
|
352267
352281
|
if (props.placement === "bottom-end")
|
|
352268
352282
|
left$1 = rect.right - menuWidth;
|
|
352269
352283
|
const maxLeft = Math.max(gutter, viewportWidth - menuWidth - gutter);
|
|
352270
352284
|
left$1 = Math.min(Math.max(gutter, left$1), maxLeft);
|
|
352271
352285
|
menuPosition.value = {
|
|
352272
|
-
top: `${
|
|
352273
|
-
left: `${left$1}px
|
|
352286
|
+
top: `${top$1}px`,
|
|
352287
|
+
left: `${left$1}px`,
|
|
352288
|
+
maxHeight: `${maxHeight}px`
|
|
352274
352289
|
};
|
|
352275
352290
|
};
|
|
352276
352291
|
const onTriggerClick = () => {
|
|
@@ -352336,8 +352351,13 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
352336
352351
|
el.setAttribute("tabindex", index2 === keyboardIndex.value ? "0" : "-1");
|
|
352337
352352
|
});
|
|
352338
352353
|
const target = optionRefs.value[keyboardIndex.value];
|
|
352339
|
-
if (target && typeof target.focus === "function")
|
|
352354
|
+
if (target && typeof target.focus === "function") {
|
|
352340
352355
|
target.focus();
|
|
352356
|
+
target.scrollIntoView?.({
|
|
352357
|
+
block: "nearest",
|
|
352358
|
+
inline: "nearest"
|
|
352359
|
+
});
|
|
352360
|
+
}
|
|
352341
352361
|
};
|
|
352342
352362
|
const moveKeyboardIndex = (direction) => {
|
|
352343
352363
|
const navigableIndexes = getNavigableIndexes();
|
|
@@ -352472,6 +352492,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
352472
352492
|
if (hasRenderOptions.value)
|
|
352473
352493
|
return;
|
|
352474
352494
|
keyboardIndex.value = getInitialKeyboardIndex();
|
|
352495
|
+
await exports_vue.nextTick();
|
|
352475
352496
|
focusKeyboardIndex();
|
|
352476
352497
|
}, { immediate: true });
|
|
352477
352498
|
exports_vue.watch(isOpen, (open2) => {
|
|
@@ -352535,7 +352556,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
352535
352556
|
})]))]);
|
|
352536
352557
|
};
|
|
352537
352558
|
}
|
|
352538
|
-
}, [["__scopeId", "data-v-
|
|
352559
|
+
}, [["__scopeId", "data-v-69732782"]]);
|
|
352539
352560
|
SdTooltip_default = /* @__PURE__ */ __plugin_vue_export_helper_default(/* @__PURE__ */ Object.assign({ inheritAttrs: false }, {
|
|
352540
352561
|
__name: "SdTooltip",
|
|
352541
352562
|
props: {
|
|
@@ -366212,7 +366233,7 @@ var init_zipper_yaJVJ4z9_es = __esm(() => {
|
|
|
366212
366233
|
|
|
366213
366234
|
// ../../packages/superdoc/dist/super-editor.es.js
|
|
366214
366235
|
var init_super_editor_es = __esm(() => {
|
|
366215
|
-
|
|
366236
|
+
init_src_BKOC1_8_es();
|
|
366216
366237
|
init_SuperConverter_BaKhr4cp_es();
|
|
366217
366238
|
init_jszip_C49i9kUs_es();
|
|
366218
366239
|
init_xml_js_CqGKpaft_es();
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@superdoc-dev/cli",
|
|
3
|
-
"version": "0.17.0-next.
|
|
3
|
+
"version": "0.17.0-next.7",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"bin": {
|
|
6
6
|
"superdoc": "./dist/index.js"
|
|
@@ -33,11 +33,11 @@
|
|
|
33
33
|
"access": "public"
|
|
34
34
|
},
|
|
35
35
|
"optionalDependencies": {
|
|
36
|
-
"@superdoc-dev/cli-darwin-arm64": "0.17.0-next.
|
|
37
|
-
"@superdoc-dev/cli-darwin-x64": "0.17.0-next.
|
|
38
|
-
"@superdoc-dev/cli-
|
|
39
|
-
"@superdoc-dev/cli-linux-
|
|
40
|
-
"@superdoc-dev/cli-
|
|
36
|
+
"@superdoc-dev/cli-darwin-arm64": "0.17.0-next.7",
|
|
37
|
+
"@superdoc-dev/cli-darwin-x64": "0.17.0-next.7",
|
|
38
|
+
"@superdoc-dev/cli-linux-arm64": "0.17.0-next.7",
|
|
39
|
+
"@superdoc-dev/cli-linux-x64": "0.17.0-next.7",
|
|
40
|
+
"@superdoc-dev/cli-windows-x64": "0.17.0-next.7"
|
|
41
41
|
},
|
|
42
42
|
"scripts": {
|
|
43
43
|
"predev": "node scripts/ensure-superdoc-build.js",
|