@superdoc-dev/cli 0.2.0-next.13 → 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 +33 -15
- 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);
|
|
@@ -139298,7 +139312,8 @@ var Node$13 = class Node$14 {
|
|
|
139298
139312
|
"italic",
|
|
139299
139313
|
"strike",
|
|
139300
139314
|
"underline",
|
|
139301
|
-
"textStyle"
|
|
139315
|
+
"textStyle",
|
|
139316
|
+
"highlight"
|
|
139302
139317
|
].includes(step.mark.type.name) && !hasMatchingMark(liveMarks, step.mark)) {
|
|
139303
139318
|
const formatChangeMark = liveMarks.find((mark2) => mark2.type.name === TrackFormatMarkName);
|
|
139304
139319
|
let after = [];
|
|
@@ -139363,7 +139378,8 @@ var Node$13 = class Node$14 {
|
|
|
139363
139378
|
"italic",
|
|
139364
139379
|
"strike",
|
|
139365
139380
|
"underline",
|
|
139366
|
-
"textStyle"
|
|
139381
|
+
"textStyle",
|
|
139382
|
+
"highlight"
|
|
139367
139383
|
].includes(step.mark.type.name) && hasMatchingMark(liveMarksBeforeRemove, step.mark)) {
|
|
139368
139384
|
const formatChangeMark = liveMarksBeforeRemove.find((mark2) => mark2.type.name === TrackFormatMarkName);
|
|
139369
139385
|
let after = [];
|
|
@@ -158784,7 +158800,7 @@ var Node$13 = class Node$14 {
|
|
|
158784
158800
|
trackedChanges: context.trackedChanges ?? []
|
|
158785
158801
|
});
|
|
158786
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;
|
|
158787
|
-
var
|
|
158803
|
+
var init_src_CKC0gVcq_es = __esm(() => {
|
|
158788
158804
|
init_rolldown_runtime_B2q5OVn9_es();
|
|
158789
158805
|
init_SuperConverter_DR7gPmcP_es();
|
|
158790
158806
|
init_jszip_ChlR43oI_es();
|
|
@@ -160962,11 +160978,13 @@ ${err.toString()}`);
|
|
|
160962
160978
|
props: {
|
|
160963
160979
|
editable: () => editor.options.editable,
|
|
160964
160980
|
handleDOMEvents: {
|
|
160965
|
-
beforeinput: (
|
|
160981
|
+
beforeinput: (view, event) => {
|
|
160966
160982
|
if (!editor.options.editable) {
|
|
160967
160983
|
event.preventDefault();
|
|
160968
160984
|
return true;
|
|
160969
160985
|
}
|
|
160986
|
+
if (handleBackwardReplaceInsertText(view, event))
|
|
160987
|
+
return true;
|
|
160970
160988
|
return false;
|
|
160971
160989
|
},
|
|
160972
160990
|
mousedown: (_view, event) => {
|
|
@@ -192180,8 +192198,8 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
192180
192198
|
return isObjectLike_default(value) && hasOwnProperty$8.call(value, "callee") && !propertyIsEnumerable$1.call(value, "callee");
|
|
192181
192199
|
};
|
|
192182
192200
|
stubFalse_default = stubFalse;
|
|
192183
|
-
freeExports$2 = typeof
|
|
192184
|
-
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;
|
|
192185
192203
|
Buffer$1 = freeModule$2 && freeModule$2.exports === freeExports$2 ? _root_default.Buffer : undefined;
|
|
192186
192204
|
isBuffer_default = (Buffer$1 ? Buffer$1.isBuffer : undefined) || stubFalse_default;
|
|
192187
192205
|
typedArrayTags = {};
|
|
@@ -192189,8 +192207,8 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
192189
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;
|
|
192190
192208
|
_baseIsTypedArray_default = baseIsTypedArray;
|
|
192191
192209
|
_baseUnary_default = baseUnary;
|
|
192192
|
-
freeExports$1 = typeof
|
|
192193
|
-
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;
|
|
192194
192212
|
freeProcess = freeModule$1 && freeModule$1.exports === freeExports$1 && _freeGlobal_default.process;
|
|
192195
192213
|
_nodeUtil_default = function() {
|
|
192196
192214
|
try {
|
|
@@ -192295,8 +192313,8 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
192295
192313
|
Stack.prototype.has = _stackHas_default;
|
|
192296
192314
|
Stack.prototype.set = _stackSet_default;
|
|
192297
192315
|
_Stack_default = Stack;
|
|
192298
|
-
freeExports = typeof
|
|
192299
|
-
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;
|
|
192300
192318
|
Buffer4 = freeModule && freeModule.exports === freeExports ? _root_default.Buffer : undefined;
|
|
192301
192319
|
allocUnsafe = Buffer4 ? Buffer4.allocUnsafe : undefined;
|
|
192302
192320
|
_cloneBuffer_default = cloneBuffer;
|
|
@@ -199948,7 +199966,7 @@ var init_zipper_BJHqrQMq_es = __esm(() => {
|
|
|
199948
199966
|
|
|
199949
199967
|
// ../../packages/superdoc/dist/super-editor.es.js
|
|
199950
199968
|
var init_super_editor_es = __esm(() => {
|
|
199951
|
-
|
|
199969
|
+
init_src_CKC0gVcq_es();
|
|
199952
199970
|
init_SuperConverter_DR7gPmcP_es();
|
|
199953
199971
|
init_jszip_ChlR43oI_es();
|
|
199954
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",
|