@superdoc-dev/cli 0.2.0-next.64 → 0.2.0-next.65
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 +35 -12
- package/package.json +8 -8
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-aszmP-mi.es.js
|
|
105838
|
+
var exports_src_aszmP_mi_es = {};
|
|
105839
|
+
__export(exports_src_aszmP_mi_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(),
|
|
@@ -180475,7 +180497,7 @@ var Node$13 = class Node$14 {
|
|
|
180475
180497
|
trackedChanges: context.trackedChanges ?? []
|
|
180476
180498
|
});
|
|
180477
180499
|
}, _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
|
|
180500
|
+
var init_src_aszmP_mi_es = __esm(() => {
|
|
180479
180501
|
init_rolldown_runtime_B2q5OVn9_es();
|
|
180480
180502
|
init_SuperConverter_BTfRwdVj_es();
|
|
180481
180503
|
init_jszip_ChlR43oI_es();
|
|
@@ -182534,6 +182556,7 @@ ${err.toString()}`);
|
|
|
182534
182556
|
macBaseKeymap[key$1] = pcBaseKeymap[key$1];
|
|
182535
182557
|
typeof navigator != "undefined" ? /Mac|iP(hone|[oa]d)/.test(navigator.platform) : typeof os != "undefined" && os.platform && os.platform();
|
|
182536
182558
|
commands_exports = /* @__PURE__ */ __export2({
|
|
182559
|
+
backspaceAcrossRuns: () => backspaceAcrossRuns,
|
|
182537
182560
|
backspaceEmptyRunParagraph: () => backspaceEmptyRunParagraph,
|
|
182538
182561
|
backspaceNextToRun: () => backspaceNextToRun,
|
|
182539
182562
|
backspaceSkipEmptyRun: () => backspaceSkipEmptyRun,
|
|
@@ -211802,8 +211825,8 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
211802
211825
|
return isObjectLike_default(value) && hasOwnProperty$8.call(value, "callee") && !propertyIsEnumerable$1.call(value, "callee");
|
|
211803
211826
|
};
|
|
211804
211827
|
stubFalse_default = stubFalse;
|
|
211805
|
-
freeExports$2 = typeof
|
|
211806
|
-
freeModule$2 = freeExports$2 && typeof
|
|
211828
|
+
freeExports$2 = typeof exports_src_aszmP_mi_es == "object" && exports_src_aszmP_mi_es && !exports_src_aszmP_mi_es.nodeType && exports_src_aszmP_mi_es;
|
|
211829
|
+
freeModule$2 = freeExports$2 && typeof module_src_aszmP_mi_es == "object" && module_src_aszmP_mi_es && !module_src_aszmP_mi_es.nodeType && module_src_aszmP_mi_es;
|
|
211807
211830
|
Buffer$1 = freeModule$2 && freeModule$2.exports === freeExports$2 ? _root_default.Buffer : undefined;
|
|
211808
211831
|
isBuffer_default = (Buffer$1 ? Buffer$1.isBuffer : undefined) || stubFalse_default;
|
|
211809
211832
|
typedArrayTags = {};
|
|
@@ -211811,8 +211834,8 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
211811
211834
|
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
211835
|
_baseIsTypedArray_default = baseIsTypedArray;
|
|
211813
211836
|
_baseUnary_default = baseUnary;
|
|
211814
|
-
freeExports$1 = typeof
|
|
211815
|
-
freeModule$1 = freeExports$1 && typeof
|
|
211837
|
+
freeExports$1 = typeof exports_src_aszmP_mi_es == "object" && exports_src_aszmP_mi_es && !exports_src_aszmP_mi_es.nodeType && exports_src_aszmP_mi_es;
|
|
211838
|
+
freeModule$1 = freeExports$1 && typeof module_src_aszmP_mi_es == "object" && module_src_aszmP_mi_es && !module_src_aszmP_mi_es.nodeType && module_src_aszmP_mi_es;
|
|
211816
211839
|
freeProcess = freeModule$1 && freeModule$1.exports === freeExports$1 && _freeGlobal_default.process;
|
|
211817
211840
|
_nodeUtil_default = function() {
|
|
211818
211841
|
try {
|
|
@@ -211917,8 +211940,8 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
211917
211940
|
Stack.prototype.has = _stackHas_default;
|
|
211918
211941
|
Stack.prototype.set = _stackSet_default;
|
|
211919
211942
|
_Stack_default = Stack;
|
|
211920
|
-
freeExports = typeof
|
|
211921
|
-
freeModule = freeExports && typeof
|
|
211943
|
+
freeExports = typeof exports_src_aszmP_mi_es == "object" && exports_src_aszmP_mi_es && !exports_src_aszmP_mi_es.nodeType && exports_src_aszmP_mi_es;
|
|
211944
|
+
freeModule = freeExports && typeof module_src_aszmP_mi_es == "object" && module_src_aszmP_mi_es && !module_src_aszmP_mi_es.nodeType && module_src_aszmP_mi_es;
|
|
211922
211945
|
Buffer4 = freeModule && freeModule.exports === freeExports ? _root_default.Buffer : undefined;
|
|
211923
211946
|
allocUnsafe = Buffer4 ? Buffer4.allocUnsafe : undefined;
|
|
211924
211947
|
_cloneBuffer_default = cloneBuffer;
|
|
@@ -219998,7 +220021,7 @@ var init_zipper_DqXT7uTa_es = __esm(() => {
|
|
|
219998
220021
|
|
|
219999
220022
|
// ../../packages/superdoc/dist/super-editor.es.js
|
|
220000
220023
|
var init_super_editor_es = __esm(() => {
|
|
220001
|
-
|
|
220024
|
+
init_src_aszmP_mi_es();
|
|
220002
220025
|
init_SuperConverter_BTfRwdVj_es();
|
|
220003
220026
|
init_jszip_ChlR43oI_es();
|
|
220004
220027
|
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.65",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"bin": {
|
|
6
6
|
"superdoc": "./dist/index.js"
|
|
@@ -20,20 +20,20 @@
|
|
|
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",
|
|
25
|
-
"superdoc": "1.16.0"
|
|
24
|
+
"superdoc": "1.16.0",
|
|
25
|
+
"@superdoc/super-editor": "0.0.1"
|
|
26
26
|
},
|
|
27
27
|
"module": "src/index.ts",
|
|
28
28
|
"publishConfig": {
|
|
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.65",
|
|
33
|
+
"@superdoc-dev/cli-darwin-x64": "0.2.0-next.65",
|
|
34
|
+
"@superdoc-dev/cli-linux-x64": "0.2.0-next.65",
|
|
35
|
+
"@superdoc-dev/cli-linux-arm64": "0.2.0-next.65",
|
|
36
|
+
"@superdoc-dev/cli-windows-x64": "0.2.0-next.65"
|
|
37
37
|
},
|
|
38
38
|
"scripts": {
|
|
39
39
|
"dev": "bun run src/index.ts",
|