@superdoc-dev/cli 0.17.0-next.5 → 0.17.0-next.6
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 +23 -4
- 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-jCy2h55W.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) => {
|
|
@@ -285675,9 +285675,28 @@ function computeDomCaretPageLocal(options, pos) {
|
|
|
285675
285675
|
const boundary = resolveTextBoundaryInElement(targetEl, pos, entry.pmStart, entry.pmEnd, "forward");
|
|
285676
285676
|
if (!boundary) {
|
|
285677
285677
|
const elRect = targetEl.getBoundingClientRect();
|
|
285678
|
+
if (targetEl.classList.contains("superdoc-line")) {
|
|
285679
|
+
const paddingLeft = parseFloat(targetEl.style.paddingLeft) || 0;
|
|
285680
|
+
const paddingRight = parseFloat(targetEl.style.paddingRight) || 0;
|
|
285681
|
+
const lineLeft = (elRect.left - pageRect.left) / zoom + paddingLeft;
|
|
285682
|
+
const lineRight = (elRect.right - pageRect.left) / zoom - paddingRight;
|
|
285683
|
+
const textAlign = targetEl.style.textAlign;
|
|
285684
|
+
let x;
|
|
285685
|
+
if (textAlign === "center")
|
|
285686
|
+
x = (lineLeft + lineRight) / 2;
|
|
285687
|
+
else if (textAlign === "right")
|
|
285688
|
+
x = lineRight;
|
|
285689
|
+
else
|
|
285690
|
+
x = lineLeft;
|
|
285691
|
+
return {
|
|
285692
|
+
pageIndex: Number(page.dataset.pageIndex ?? "0"),
|
|
285693
|
+
x,
|
|
285694
|
+
y: (elRect.top - pageRect.top) / zoom
|
|
285695
|
+
};
|
|
285696
|
+
}
|
|
285678
285697
|
const isEmptySdtPlaceholder = targetEl.classList.contains("superdoc-empty-sdt-placeholder") || targetEl.classList.contains("superdoc-empty-inline-sdt-placeholder") || targetEl.classList.contains("superdoc-empty-block-sdt-placeholder");
|
|
285679
285698
|
const atEnd = isEmptySdtPlaceholder ? pos > entry.pmEnd : pos >= entry.pmEnd;
|
|
285680
|
-
const yRect = (isEmptySdtPlaceholder ? targetEl.closest(".superdoc-line") : null)?.getBoundingClientRect() ?? elRect;
|
|
285699
|
+
const yRect = (isEmptySdtPlaceholder || targetEl.classList.contains("superdoc-tab") ? targetEl.closest(".superdoc-line") : null)?.getBoundingClientRect() ?? elRect;
|
|
285681
285700
|
return {
|
|
285682
285701
|
pageIndex: Number(page.dataset.pageIndex ?? "0"),
|
|
285683
285702
|
x: ((atEnd ? elRect.right : elRect.left) - pageRect.left) / zoom,
|
|
@@ -330940,7 +330959,7 @@ menclose::after {
|
|
|
330940
330959
|
return;
|
|
330941
330960
|
console.log(...args$1);
|
|
330942
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;
|
|
330943
|
-
var
|
|
330962
|
+
var init_src_jCy2h55W_es = __esm(() => {
|
|
330944
330963
|
init_rolldown_runtime_Bg48TavK_es();
|
|
330945
330964
|
init_SuperConverter_BaKhr4cp_es();
|
|
330946
330965
|
init_jszip_C49i9kUs_es();
|
|
@@ -366193,7 +366212,7 @@ var init_zipper_yaJVJ4z9_es = __esm(() => {
|
|
|
366193
366212
|
|
|
366194
366213
|
// ../../packages/superdoc/dist/super-editor.es.js
|
|
366195
366214
|
var init_super_editor_es = __esm(() => {
|
|
366196
|
-
|
|
366215
|
+
init_src_jCy2h55W_es();
|
|
366197
366216
|
init_SuperConverter_BaKhr4cp_es();
|
|
366198
366217
|
init_jszip_C49i9kUs_es();
|
|
366199
366218
|
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.6",
|
|
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-arm64": "0.17.0-next.
|
|
40
|
-
"@superdoc-dev/cli-
|
|
36
|
+
"@superdoc-dev/cli-darwin-arm64": "0.17.0-next.6",
|
|
37
|
+
"@superdoc-dev/cli-darwin-x64": "0.17.0-next.6",
|
|
38
|
+
"@superdoc-dev/cli-windows-x64": "0.17.0-next.6",
|
|
39
|
+
"@superdoc-dev/cli-linux-arm64": "0.17.0-next.6",
|
|
40
|
+
"@superdoc-dev/cli-linux-x64": "0.17.0-next.6"
|
|
41
41
|
},
|
|
42
42
|
"scripts": {
|
|
43
43
|
"predev": "node scripts/ensure-superdoc-build.js",
|