@superdoc-dev/cli 0.2.0-next.64 → 0.2.0-next.66
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 +40 -16
- package/package.json +7 -7
package/dist/index.js
CHANGED
|
@@ -105834,9 +105834,9 @@ var init_remark_gfm_CjV8kaUy_es = __esm(() => {
|
|
|
105834
105834
|
init_remark_gfm_z_sDF4ss_es();
|
|
105835
105835
|
});
|
|
105836
105836
|
|
|
105837
|
-
// ../../packages/superdoc/dist/chunks/src-
|
|
105838
|
-
var
|
|
105839
|
-
__export(
|
|
105837
|
+
// ../../packages/superdoc/dist/chunks/src-B_bEE6Dh.es.js
|
|
105838
|
+
var exports_src_B_bEE6Dh_es = {};
|
|
105839
|
+
__export(exports_src_B_bEE6Dh_es, {
|
|
105840
105840
|
zt: () => defineMark,
|
|
105841
105841
|
z: () => cM,
|
|
105842
105842
|
yt: () => removeAwarenessStates,
|
|
@@ -158233,7 +158233,7 @@ var Node$13 = class Node$14 {
|
|
|
158233
158233
|
dispatch(state.tr.delete(pos - 1, pos).scrollIntoView());
|
|
158234
158234
|
return true;
|
|
158235
158235
|
}, findPreviousTextDeleteRange = (doc$2, cursorPos, minPos) => {
|
|
158236
|
-
for (let pos = cursorPos
|
|
158236
|
+
for (let pos = cursorPos;pos >= minPos; pos -= 1) {
|
|
158237
158237
|
const nodeBefore = doc$2.resolve(pos).nodeBefore;
|
|
158238
158238
|
if (!nodeBefore?.isText || !nodeBefore.text?.length)
|
|
158239
158239
|
continue;
|
|
@@ -158273,6 +158273,27 @@ var Node$13 = class Node$14 {
|
|
|
158273
158273
|
if (dispatch)
|
|
158274
158274
|
dispatch(tr.scrollIntoView());
|
|
158275
158275
|
return true;
|
|
158276
|
+
}, backspaceAcrossRuns = () => ({ state, tr, dispatch }) => {
|
|
158277
|
+
const sel = state.selection;
|
|
158278
|
+
if (!sel.empty)
|
|
158279
|
+
return false;
|
|
158280
|
+
const $pos = sel.$from;
|
|
158281
|
+
const runType = state.schema.nodes.run;
|
|
158282
|
+
const insideRun = $pos.parent.type === runType;
|
|
158283
|
+
const betweenRuns = $pos.nodeBefore?.type === runType && !insideRun;
|
|
158284
|
+
if (!insideRun && !betweenRuns)
|
|
158285
|
+
return false;
|
|
158286
|
+
const paraDepth = insideRun ? $pos.depth - 1 : $pos.depth;
|
|
158287
|
+
const paraStart = $pos.start(paraDepth);
|
|
158288
|
+
const deleteRange2 = findPreviousTextDeleteRange(state.doc, $pos.pos, paraStart);
|
|
158289
|
+
if (!deleteRange2)
|
|
158290
|
+
return false;
|
|
158291
|
+
if (dispatch) {
|
|
158292
|
+
tr.delete(deleteRange2.from, deleteRange2.to);
|
|
158293
|
+
tr.setSelection(Selection.near(tr.doc.resolve(deleteRange2.from)));
|
|
158294
|
+
dispatch(tr.scrollIntoView());
|
|
158295
|
+
}
|
|
158296
|
+
return true;
|
|
158276
158297
|
}, deleteSkipEmptyRun = () => ({ state, dispatch }) => {
|
|
158277
158298
|
const sel = state.selection;
|
|
158278
158299
|
if (!sel.empty)
|
|
@@ -158649,6 +158670,7 @@ var Node$13 = class Node$14 {
|
|
|
158649
158670
|
() => commands$1.backspaceEmptyRunParagraph(),
|
|
158650
158671
|
() => commands$1.backspaceSkipEmptyRun(),
|
|
158651
158672
|
() => commands$1.backspaceNextToRun(),
|
|
158673
|
+
() => commands$1.backspaceAcrossRuns(),
|
|
158652
158674
|
() => commands$1.deleteSelection(),
|
|
158653
158675
|
() => commands$1.removeNumberingProperties(),
|
|
158654
158676
|
() => commands$1.joinBackward(),
|
|
@@ -160415,10 +160437,11 @@ var Node$13 = class Node$14 {
|
|
|
160415
160437
|
});
|
|
160416
160438
|
}
|
|
160417
160439
|
else {
|
|
160418
|
-
|
|
160419
|
-
|
|
160420
|
-
|
|
160421
|
-
|
|
160440
|
+
const existingMarkOfSameType = liveMarks.find((mark2) => mark2.type.name === step.mark.type.name && !["trackDelete", "trackFormat"].includes(mark2.type.name));
|
|
160441
|
+
before = existingMarkOfSameType ? [{
|
|
160442
|
+
type: existingMarkOfSameType.type.name,
|
|
160443
|
+
attrs: { ...existingMarkOfSameType.attrs }
|
|
160444
|
+
}] : [];
|
|
160422
160445
|
after = [{
|
|
160423
160446
|
type: step.mark.type.name,
|
|
160424
160447
|
attrs: { ...step.mark.attrs }
|
|
@@ -180475,7 +180498,7 @@ var Node$13 = class Node$14 {
|
|
|
180475
180498
|
trackedChanges: context.trackedChanges ?? []
|
|
180476
180499
|
});
|
|
180477
180500
|
}, _hoisted_1$6, _hoisted_2$2, _hoisted_3, _hoisted_4, ContextMenu_default, _hoisted_1$5, BasicUpload_default, _hoisted_1$4, MIN_WIDTH = 200, PPI = 96, alignment = "flex-end", Ruler_default, GenericPopover_default, _hoisted_1$3, _hoisted_2$1, RESIZE_HANDLE_WIDTH_PX = 9, RESIZE_HANDLE_HEIGHT_PX = 9, RESIZE_HANDLE_OFFSET_PX = 4, DRAG_OVERLAY_EXTENSION_PX = 1000, MIN_DRAG_OVERLAY_WIDTH_PX = 2000, THROTTLE_INTERVAL_MS = 16, MIN_RESIZE_DELTA_PX = 1, TableResizeOverlay_default, _hoisted_1$2, OVERLAY_EXPANSION_PX = 2000, RESIZE_HANDLE_SIZE_PX = 12, MOUSE_MOVE_THROTTLE_MS = 16, DIMENSION_CHANGE_THRESHOLD_PX = 1, Z_INDEX_OVERLAY = 10, Z_INDEX_HANDLE = 15, Z_INDEX_GUIDELINE = 20, ImageResizeOverlay_default, LINK_CLICK_DEBOUNCE_MS = 300, CURSOR_UPDATE_TIMEOUT_MS = 10, POPOVER_VERTICAL_OFFSET_PX = 15, LinkClickHandler_default, _hoisted_1$1, _hoisted_2, DOCX2 = "application/vnd.openxmlformats-officedocument.wordprocessingml.document", TABLE_RESIZE_HOVER_THRESHOLD = 8, TABLE_RESIZE_THROTTLE_MS = 16, SuperEditor_default, _hoisted_1, SuperInput_default, SlashMenu, Extensions;
|
|
180478
|
-
var
|
|
180501
|
+
var init_src_B_bEE6Dh_es = __esm(() => {
|
|
180479
180502
|
init_rolldown_runtime_B2q5OVn9_es();
|
|
180480
180503
|
init_SuperConverter_BTfRwdVj_es();
|
|
180481
180504
|
init_jszip_ChlR43oI_es();
|
|
@@ -182534,6 +182557,7 @@ ${err.toString()}`);
|
|
|
182534
182557
|
macBaseKeymap[key$1] = pcBaseKeymap[key$1];
|
|
182535
182558
|
typeof navigator != "undefined" ? /Mac|iP(hone|[oa]d)/.test(navigator.platform) : typeof os != "undefined" && os.platform && os.platform();
|
|
182536
182559
|
commands_exports = /* @__PURE__ */ __export2({
|
|
182560
|
+
backspaceAcrossRuns: () => backspaceAcrossRuns,
|
|
182537
182561
|
backspaceEmptyRunParagraph: () => backspaceEmptyRunParagraph,
|
|
182538
182562
|
backspaceNextToRun: () => backspaceNextToRun,
|
|
182539
182563
|
backspaceSkipEmptyRun: () => backspaceSkipEmptyRun,
|
|
@@ -211802,8 +211826,8 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
211802
211826
|
return isObjectLike_default(value) && hasOwnProperty$8.call(value, "callee") && !propertyIsEnumerable$1.call(value, "callee");
|
|
211803
211827
|
};
|
|
211804
211828
|
stubFalse_default = stubFalse;
|
|
211805
|
-
freeExports$2 = typeof
|
|
211806
|
-
freeModule$2 = freeExports$2 && typeof
|
|
211829
|
+
freeExports$2 = typeof exports_src_B_bEE6Dh_es == "object" && exports_src_B_bEE6Dh_es && !exports_src_B_bEE6Dh_es.nodeType && exports_src_B_bEE6Dh_es;
|
|
211830
|
+
freeModule$2 = freeExports$2 && typeof module_src_B_bEE6Dh_es == "object" && module_src_B_bEE6Dh_es && !module_src_B_bEE6Dh_es.nodeType && module_src_B_bEE6Dh_es;
|
|
211807
211831
|
Buffer$1 = freeModule$2 && freeModule$2.exports === freeExports$2 ? _root_default.Buffer : undefined;
|
|
211808
211832
|
isBuffer_default = (Buffer$1 ? Buffer$1.isBuffer : undefined) || stubFalse_default;
|
|
211809
211833
|
typedArrayTags = {};
|
|
@@ -211811,8 +211835,8 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
211811
211835
|
typedArrayTags[argsTag$1] = typedArrayTags[arrayTag$1] = typedArrayTags[arrayBufferTag$1] = typedArrayTags[boolTag$1] = typedArrayTags[dataViewTag$2] = typedArrayTags[dateTag$1] = typedArrayTags[errorTag$1] = typedArrayTags[funcTag] = typedArrayTags[mapTag$2] = typedArrayTags[numberTag$1] = typedArrayTags[objectTag$3] = typedArrayTags[regexpTag$1] = typedArrayTags[setTag$2] = typedArrayTags[stringTag$1] = typedArrayTags[weakMapTag$1] = false;
|
|
211812
211836
|
_baseIsTypedArray_default = baseIsTypedArray;
|
|
211813
211837
|
_baseUnary_default = baseUnary;
|
|
211814
|
-
freeExports$1 = typeof
|
|
211815
|
-
freeModule$1 = freeExports$1 && typeof
|
|
211838
|
+
freeExports$1 = typeof exports_src_B_bEE6Dh_es == "object" && exports_src_B_bEE6Dh_es && !exports_src_B_bEE6Dh_es.nodeType && exports_src_B_bEE6Dh_es;
|
|
211839
|
+
freeModule$1 = freeExports$1 && typeof module_src_B_bEE6Dh_es == "object" && module_src_B_bEE6Dh_es && !module_src_B_bEE6Dh_es.nodeType && module_src_B_bEE6Dh_es;
|
|
211816
211840
|
freeProcess = freeModule$1 && freeModule$1.exports === freeExports$1 && _freeGlobal_default.process;
|
|
211817
211841
|
_nodeUtil_default = function() {
|
|
211818
211842
|
try {
|
|
@@ -211917,8 +211941,8 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
211917
211941
|
Stack.prototype.has = _stackHas_default;
|
|
211918
211942
|
Stack.prototype.set = _stackSet_default;
|
|
211919
211943
|
_Stack_default = Stack;
|
|
211920
|
-
freeExports = typeof
|
|
211921
|
-
freeModule = freeExports && typeof
|
|
211944
|
+
freeExports = typeof exports_src_B_bEE6Dh_es == "object" && exports_src_B_bEE6Dh_es && !exports_src_B_bEE6Dh_es.nodeType && exports_src_B_bEE6Dh_es;
|
|
211945
|
+
freeModule = freeExports && typeof module_src_B_bEE6Dh_es == "object" && module_src_B_bEE6Dh_es && !module_src_B_bEE6Dh_es.nodeType && module_src_B_bEE6Dh_es;
|
|
211922
211946
|
Buffer4 = freeModule && freeModule.exports === freeExports ? _root_default.Buffer : undefined;
|
|
211923
211947
|
allocUnsafe = Buffer4 ? Buffer4.allocUnsafe : undefined;
|
|
211924
211948
|
_cloneBuffer_default = cloneBuffer;
|
|
@@ -219998,7 +220022,7 @@ var init_zipper_DqXT7uTa_es = __esm(() => {
|
|
|
219998
220022
|
|
|
219999
220023
|
// ../../packages/superdoc/dist/super-editor.es.js
|
|
220000
220024
|
var init_super_editor_es = __esm(() => {
|
|
220001
|
-
|
|
220025
|
+
init_src_B_bEE6Dh_es();
|
|
220002
220026
|
init_SuperConverter_BTfRwdVj_es();
|
|
220003
220027
|
init_jszip_ChlR43oI_es();
|
|
220004
220028
|
init_xml_js_DLE8mr0n_es();
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@superdoc-dev/cli",
|
|
3
|
-
"version": "0.2.0-next.
|
|
3
|
+
"version": "0.2.0-next.66",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"bin": {
|
|
6
6
|
"superdoc": "./dist/index.js"
|
|
@@ -20,8 +20,8 @@
|
|
|
20
20
|
"@types/node": "22.19.2",
|
|
21
21
|
"typescript": "^5.9.2",
|
|
22
22
|
"@superdoc/document-api": "0.0.1",
|
|
23
|
-
"@superdoc/super-editor": "0.0.1",
|
|
24
23
|
"@superdoc/pm-adapter": "0.0.0",
|
|
24
|
+
"@superdoc/super-editor": "0.0.1",
|
|
25
25
|
"superdoc": "1.16.0"
|
|
26
26
|
},
|
|
27
27
|
"module": "src/index.ts",
|
|
@@ -29,11 +29,11 @@
|
|
|
29
29
|
"access": "public"
|
|
30
30
|
},
|
|
31
31
|
"optionalDependencies": {
|
|
32
|
-
"@superdoc-dev/cli-darwin-arm64": "0.2.0-next.
|
|
33
|
-
"@superdoc-dev/cli-darwin-x64": "0.2.0-next.
|
|
34
|
-
"@superdoc-dev/cli-linux-
|
|
35
|
-
"@superdoc-dev/cli-
|
|
36
|
-
"@superdoc-dev/cli-
|
|
32
|
+
"@superdoc-dev/cli-darwin-arm64": "0.2.0-next.66",
|
|
33
|
+
"@superdoc-dev/cli-darwin-x64": "0.2.0-next.66",
|
|
34
|
+
"@superdoc-dev/cli-linux-x64": "0.2.0-next.66",
|
|
35
|
+
"@superdoc-dev/cli-linux-arm64": "0.2.0-next.66",
|
|
36
|
+
"@superdoc-dev/cli-windows-x64": "0.2.0-next.66"
|
|
37
37
|
},
|
|
38
38
|
"scripts": {
|
|
39
39
|
"dev": "bun run src/index.ts",
|