@superdoc-dev/cli 0.2.0-next.14 → 0.2.0-next.15
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 +29 -13
- package/package.json +6 -6
package/dist/index.js
CHANGED
|
@@ -89645,9 +89645,9 @@ var init_remark_gfm_RDxetNVS_es = __esm(() => {
|
|
|
89645
89645
|
emptyOptions4 = {};
|
|
89646
89646
|
});
|
|
89647
89647
|
|
|
89648
|
-
// ../../packages/superdoc/dist/chunks/src-
|
|
89649
|
-
var
|
|
89650
|
-
__export(
|
|
89648
|
+
// ../../packages/superdoc/dist/chunks/src-CKC0gVcq.es.js
|
|
89649
|
+
var exports_src_CKC0gVcq_es = {};
|
|
89650
|
+
__export(exports_src_CKC0gVcq_es, {
|
|
89651
89651
|
zt: () => defineMark,
|
|
89652
89652
|
z: () => cM,
|
|
89653
89653
|
yt: () => removeAwarenessStates,
|
|
@@ -137655,7 +137655,21 @@ var Node$13 = class Node$14 {
|
|
|
137655
137655
|
() => commands$1.joinForward(),
|
|
137656
137656
|
() => commands$1.selectNodeForward()
|
|
137657
137657
|
]);
|
|
137658
|
-
}, Keymap,
|
|
137658
|
+
}, Keymap, handleBackwardReplaceInsertText = (view, event) => {
|
|
137659
|
+
const isInsertTextInput = event?.inputType === "insertText";
|
|
137660
|
+
const hasTextData = typeof event?.data === "string" && event.data.length > 0;
|
|
137661
|
+
const hasNonEmptySelection = !view.state.selection.empty;
|
|
137662
|
+
if (!isInsertTextInput || !hasTextData || !hasNonEmptySelection)
|
|
137663
|
+
return false;
|
|
137664
|
+
const selection = view.state.selection;
|
|
137665
|
+
if (!((selection.anchor ?? selection.from) > (selection.head ?? selection.to)))
|
|
137666
|
+
return false;
|
|
137667
|
+
const tr = view.state.tr.insertText(event.data, selection.from, selection.to);
|
|
137668
|
+
tr.setMeta("inputType", "insertText");
|
|
137669
|
+
view.dispatch(tr);
|
|
137670
|
+
event.preventDefault();
|
|
137671
|
+
return true;
|
|
137672
|
+
}, Editable, EditorFocus, PositionTrackerExtension, global$2, browser2, process$2, cachedSetTimeout2, cachedClearTimeout2, queue3, draining2 = false, currentQueue2, queueIndex2 = -1, browserExports2, process$1$1, EventEmitter$1 = class {
|
|
137659
137673
|
#events = /* @__PURE__ */ new Map;
|
|
137660
137674
|
on(name, fn) {
|
|
137661
137675
|
const callbacks$1 = this.#events.get(name);
|
|
@@ -158786,7 +158800,7 @@ var Node$13 = class Node$14 {
|
|
|
158786
158800
|
trackedChanges: context.trackedChanges ?? []
|
|
158787
158801
|
});
|
|
158788
158802
|
}, _hoisted_1$6, _hoisted_2$1, _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, RESIZE_HANDLE_WIDTH_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, 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;
|
|
158789
|
-
var
|
|
158803
|
+
var init_src_CKC0gVcq_es = __esm(() => {
|
|
158790
158804
|
init_rolldown_runtime_B2q5OVn9_es();
|
|
158791
158805
|
init_SuperConverter_DR7gPmcP_es();
|
|
158792
158806
|
init_jszip_ChlR43oI_es();
|
|
@@ -160964,11 +160978,13 @@ ${err.toString()}`);
|
|
|
160964
160978
|
props: {
|
|
160965
160979
|
editable: () => editor.options.editable,
|
|
160966
160980
|
handleDOMEvents: {
|
|
160967
|
-
beforeinput: (
|
|
160981
|
+
beforeinput: (view, event) => {
|
|
160968
160982
|
if (!editor.options.editable) {
|
|
160969
160983
|
event.preventDefault();
|
|
160970
160984
|
return true;
|
|
160971
160985
|
}
|
|
160986
|
+
if (handleBackwardReplaceInsertText(view, event))
|
|
160987
|
+
return true;
|
|
160972
160988
|
return false;
|
|
160973
160989
|
},
|
|
160974
160990
|
mousedown: (_view, event) => {
|
|
@@ -192182,8 +192198,8 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
192182
192198
|
return isObjectLike_default(value) && hasOwnProperty$8.call(value, "callee") && !propertyIsEnumerable$1.call(value, "callee");
|
|
192183
192199
|
};
|
|
192184
192200
|
stubFalse_default = stubFalse;
|
|
192185
|
-
freeExports$2 = typeof
|
|
192186
|
-
freeModule$2 = freeExports$2 && typeof
|
|
192201
|
+
freeExports$2 = typeof exports_src_CKC0gVcq_es == "object" && exports_src_CKC0gVcq_es && !exports_src_CKC0gVcq_es.nodeType && exports_src_CKC0gVcq_es;
|
|
192202
|
+
freeModule$2 = freeExports$2 && typeof module_src_CKC0gVcq_es == "object" && module_src_CKC0gVcq_es && !module_src_CKC0gVcq_es.nodeType && module_src_CKC0gVcq_es;
|
|
192187
192203
|
Buffer$1 = freeModule$2 && freeModule$2.exports === freeExports$2 ? _root_default.Buffer : undefined;
|
|
192188
192204
|
isBuffer_default = (Buffer$1 ? Buffer$1.isBuffer : undefined) || stubFalse_default;
|
|
192189
192205
|
typedArrayTags = {};
|
|
@@ -192191,8 +192207,8 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
192191
192207
|
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;
|
|
192192
192208
|
_baseIsTypedArray_default = baseIsTypedArray;
|
|
192193
192209
|
_baseUnary_default = baseUnary;
|
|
192194
|
-
freeExports$1 = typeof
|
|
192195
|
-
freeModule$1 = freeExports$1 && typeof
|
|
192210
|
+
freeExports$1 = typeof exports_src_CKC0gVcq_es == "object" && exports_src_CKC0gVcq_es && !exports_src_CKC0gVcq_es.nodeType && exports_src_CKC0gVcq_es;
|
|
192211
|
+
freeModule$1 = freeExports$1 && typeof module_src_CKC0gVcq_es == "object" && module_src_CKC0gVcq_es && !module_src_CKC0gVcq_es.nodeType && module_src_CKC0gVcq_es;
|
|
192196
192212
|
freeProcess = freeModule$1 && freeModule$1.exports === freeExports$1 && _freeGlobal_default.process;
|
|
192197
192213
|
_nodeUtil_default = function() {
|
|
192198
192214
|
try {
|
|
@@ -192297,8 +192313,8 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
192297
192313
|
Stack.prototype.has = _stackHas_default;
|
|
192298
192314
|
Stack.prototype.set = _stackSet_default;
|
|
192299
192315
|
_Stack_default = Stack;
|
|
192300
|
-
freeExports = typeof
|
|
192301
|
-
freeModule = freeExports && typeof
|
|
192316
|
+
freeExports = typeof exports_src_CKC0gVcq_es == "object" && exports_src_CKC0gVcq_es && !exports_src_CKC0gVcq_es.nodeType && exports_src_CKC0gVcq_es;
|
|
192317
|
+
freeModule = freeExports && typeof module_src_CKC0gVcq_es == "object" && module_src_CKC0gVcq_es && !module_src_CKC0gVcq_es.nodeType && module_src_CKC0gVcq_es;
|
|
192302
192318
|
Buffer4 = freeModule && freeModule.exports === freeExports ? _root_default.Buffer : undefined;
|
|
192303
192319
|
allocUnsafe = Buffer4 ? Buffer4.allocUnsafe : undefined;
|
|
192304
192320
|
_cloneBuffer_default = cloneBuffer;
|
|
@@ -199950,7 +199966,7 @@ var init_zipper_BJHqrQMq_es = __esm(() => {
|
|
|
199950
199966
|
|
|
199951
199967
|
// ../../packages/superdoc/dist/super-editor.es.js
|
|
199952
199968
|
var init_super_editor_es = __esm(() => {
|
|
199953
|
-
|
|
199969
|
+
init_src_CKC0gVcq_es();
|
|
199954
199970
|
init_SuperConverter_DR7gPmcP_es();
|
|
199955
199971
|
init_jszip_ChlR43oI_es();
|
|
199956
199972
|
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.15",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"bin": {
|
|
6
6
|
"superdoc": "./dist/index.js"
|
|
@@ -28,11 +28,11 @@
|
|
|
28
28
|
"access": "public"
|
|
29
29
|
},
|
|
30
30
|
"optionalDependencies": {
|
|
31
|
-
"@superdoc-dev/cli-darwin-arm64": "0.2.0-next.
|
|
32
|
-
"@superdoc-dev/cli-darwin-x64": "0.2.0-next.
|
|
33
|
-
"@superdoc-dev/cli-linux-
|
|
34
|
-
"@superdoc-dev/cli-windows-x64": "0.2.0-next.
|
|
35
|
-
"@superdoc-dev/cli-linux-
|
|
31
|
+
"@superdoc-dev/cli-darwin-arm64": "0.2.0-next.15",
|
|
32
|
+
"@superdoc-dev/cli-darwin-x64": "0.2.0-next.15",
|
|
33
|
+
"@superdoc-dev/cli-linux-x64": "0.2.0-next.15",
|
|
34
|
+
"@superdoc-dev/cli-windows-x64": "0.2.0-next.15",
|
|
35
|
+
"@superdoc-dev/cli-linux-arm64": "0.2.0-next.15"
|
|
36
36
|
},
|
|
37
37
|
"scripts": {
|
|
38
38
|
"dev": "bun run src/index.ts",
|