@eigenpal/docx-editor-vue 0.0.0

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.
Files changed (92) hide show
  1. package/LICENSE +204 -0
  2. package/README.md +60 -0
  3. package/dist/KeyboardShortcutsDialog-BtJB9UOD.js +2902 -0
  4. package/dist/KeyboardShortcutsDialog-D72k5DXR.cjs +1 -0
  5. package/dist/MenuBar-BrQW4COn.cjs +4 -0
  6. package/dist/MenuBar-D_Dvwb0F.js +3313 -0
  7. package/dist/RenderedDomContext-CHc18N_2.js +2 -0
  8. package/dist/TablePropertiesDialog-Ct5XChwd.cjs +1 -0
  9. package/dist/TablePropertiesDialog-cJx_xxxE.js +987 -0
  10. package/dist/_plugin-vue_export-helper-B52Kst-M.js +8 -0
  11. package/dist/_plugin-vue_export-helper-CX7YVcP6.cjs +1 -0
  12. package/dist/components/DocxEditor/types.d.ts +100 -0
  13. package/dist/components/EditorToolbarContext.d.ts +9 -0
  14. package/dist/components/Toolbar/presets.d.ts +42 -0
  15. package/dist/components/dialogs/index.d.ts +27 -0
  16. package/dist/components/imageContextMenuTypes.d.ts +30 -0
  17. package/dist/components/imageSelectionTypes.d.ts +14 -0
  18. package/dist/components/insertTableState.d.ts +9 -0
  19. package/dist/components/sidebar/cardStyles.d.ts +3 -0
  20. package/dist/components/sidebar/cardUtils.d.ts +1 -0
  21. package/dist/components/sidebar/resolveItemPositions.d.ts +4 -0
  22. package/dist/components/sidebar/sidebarUtils.d.ts +4 -0
  23. package/dist/components/tableStylePresets.d.ts +53 -0
  24. package/dist/components/toolbarUtils.d.ts +1 -0
  25. package/dist/components/ui/Icons.d.ts +1 -0
  26. package/dist/components/ui/hyperlinkPopupTypes.d.ts +20 -0
  27. package/dist/composables/index.d.ts +30 -0
  28. package/dist/composables/useAutoSave.d.ts +40 -0
  29. package/dist/composables/useClipboard.d.ts +22 -0
  30. package/dist/composables/useCommentLifecycle.d.ts +52 -0
  31. package/dist/composables/useCommentManagement.d.ts +41 -0
  32. package/dist/composables/useCommentSidebarItems.d.ts +24 -0
  33. package/dist/composables/useContextMenus.d.ts +39 -0
  34. package/dist/composables/useDocumentLifecycle.d.ts +11 -0
  35. package/dist/composables/useDocxEditor.d.ts +56 -0
  36. package/dist/composables/useDocxEditorRefApi.d.ts +49 -0
  37. package/dist/composables/useDragAutoScroll.d.ts +11 -0
  38. package/dist/composables/useFileIO.d.ts +30 -0
  39. package/dist/composables/useFindReplace.d.ts +34 -0
  40. package/dist/composables/useFixedDropdown.d.ts +14 -0
  41. package/dist/composables/useFormattingActions.d.ts +40 -0
  42. package/dist/composables/useHistory.d.ts +9 -0
  43. package/dist/composables/useHyperlinkManagement.d.ts +38 -0
  44. package/dist/composables/useImageActions.d.ts +30 -0
  45. package/dist/composables/useKeyboardShortcuts.d.ts +17 -0
  46. package/dist/composables/useMenuActions.d.ts +23 -0
  47. package/dist/composables/useOutlineSidebar.d.ts +17 -0
  48. package/dist/composables/usePageSetupControls.d.ts +22 -0
  49. package/dist/composables/usePagesPointer.d.ts +70 -0
  50. package/dist/composables/useSelectionHighlight.d.ts +19 -0
  51. package/dist/composables/useSelectionSync.d.ts +13 -0
  52. package/dist/composables/useTableResize.d.ts +7 -0
  53. package/dist/composables/useTableSelection.d.ts +10 -0
  54. package/dist/composables/useToolbarDropdowns.d.ts +14 -0
  55. package/dist/composables/useTrackedChanges.d.ts +12 -0
  56. package/dist/composables/useVisualLineNavigation.d.ts +11 -0
  57. package/dist/composables/useWheelZoom.d.ts +10 -0
  58. package/dist/composables/useZoom.d.ts +16 -0
  59. package/dist/composables.cjs +1 -0
  60. package/dist/composables.js +485 -0
  61. package/dist/dialogs.cjs +1 -0
  62. package/dist/dialogs.js +3 -0
  63. package/dist/docx-editor-vue.css +2 -0
  64. package/dist/i18n/LocaleContext.d.ts +1 -0
  65. package/dist/i18n/index.d.ts +26 -0
  66. package/dist/index.cjs +20 -0
  67. package/dist/index.d.ts +23 -0
  68. package/dist/index.js +3600 -0
  69. package/dist/lib/utils.d.ts +10 -0
  70. package/dist/plugin-api/RenderedDomContext.d.ts +1 -0
  71. package/dist/plugin-api/index.d.ts +18 -0
  72. package/dist/plugin-api/types.d.ts +28 -0
  73. package/dist/plugin-api.cjs +1 -0
  74. package/dist/plugin-api.js +62 -0
  75. package/dist/renderAsync.d.ts +31 -0
  76. package/dist/styles/index.d.ts +12 -0
  77. package/dist/styles/zIndex.d.ts +24 -0
  78. package/dist/styles.cjs +1 -0
  79. package/dist/styles.js +5 -0
  80. package/dist/ui.cjs +18 -0
  81. package/dist/ui.d.ts +79 -0
  82. package/dist/ui.js +963 -0
  83. package/dist/useTableResize-1oSe9Kjk.js +480 -0
  84. package/dist/useTableResize-lWdIgX9x.cjs +1 -0
  85. package/dist/utils/commentFactories.d.ts +7 -0
  86. package/dist/utils/domQueries.d.ts +28 -0
  87. package/dist/utils/imageClipboard.d.ts +9 -0
  88. package/dist/utils/paraTextHelpers.d.ts +29 -0
  89. package/dist/utils/refApiQueries.d.ts +46 -0
  90. package/dist/zIndex-CH0jZ7U7.cjs +1 -0
  91. package/dist/zIndex-CxELVe_L.js +12 -0
  92. package/package.json +119 -0
@@ -0,0 +1,485 @@
1
+ import { n as e, r as t, t as n } from "./useTableResize-1oSe9Kjk.js";
2
+ import { computed as r, onBeforeUnmount as i, onMounted as a, reactive as o, ref as s, unref as c, watch as l } from "vue";
3
+ import { redo as u, redoDepth as d, undo as f, undoDepth as p } from "prosemirror-history";
4
+ import { DEFAULT_SELECTION_STYLE as m, areSelectionStylesInjected as h, copyRuns as g, getMergedSelectionRects as _, getSelectedText as v, hasActiveSelection as y, injectSelectionStyles as b, isSelectionWithin as x, parseClipboardHtml as S, runsToClipboardContent as C } from "@eigenpal/docx-editor-core/utils";
5
+ import { extractTrackedChanges as w } from "@eigenpal/docx-editor-core/prosemirror/utils/extractTrackedChanges";
6
+ import { AutoSaveManager as T, createSelectionFromDOM as E, formatLastSaveTime as D, formatStorageSize as O, getAutoSaveStatusLabel as k, getAutoSaveStorageSize as A, getSelectionRuns as j, isAutoSaveSupported as M } from "@eigenpal/docx-editor-core";
7
+ import { findVerticalScrollParent as N } from "@eigenpal/docx-editor-core/utils/findVerticalScrollParent";
8
+ import { createDefaultFindOptions as P } from "@eigenpal/docx-editor-core/utils/findReplace";
9
+ import { TableSelectionManager as F, findTableFromClick as I } from "@eigenpal/docx-editor-core/managers/TableSelectionManager";
10
+ import { createVisualLineState as L, findLineElementAtPosition as R, findPositionOnLineAtClientX as z, getCaretClientX as B, handleVisualLineKeyDown as V } from "@eigenpal/docx-editor-core/prosemirror/utils/visualLineNavigation";
11
+ //#region src/composables/useAutoSave.ts
12
+ function H(e, t = {}) {
13
+ let n = s("idle"), r = s(null), a = s(!1), o = s(!0), { storageKey: u, interval: d, enabled: f = !0, maxAge: p, onSave: m, onError: h, onRecoveryAvailable: g, saveOnChange: _, debounceDelay: v } = t;
14
+ if (!M()) return {
15
+ status: n,
16
+ lastSaveTime: r,
17
+ hasRecoveryData: a,
18
+ isEnabled: o,
19
+ save: async () => !1,
20
+ clearAutoSave: () => {},
21
+ getRecoveryData: () => null,
22
+ acceptRecovery: () => null,
23
+ dismissRecovery: () => {},
24
+ enable: () => {},
25
+ disable: () => {}
26
+ };
27
+ let y = new T({
28
+ storageKey: u,
29
+ interval: d,
30
+ maxAge: p,
31
+ saveOnChange: _,
32
+ debounceDelay: v,
33
+ onSave: m,
34
+ onError: h,
35
+ onRecoveryAvailable: g
36
+ }), b = () => {
37
+ let e = y.getSnapshot();
38
+ n.value = e.status, r.value = e.lastSaveTime, a.value = e.hasRecoveryData, o.value = e.isEnabled;
39
+ }, x = y.subscribe(b);
40
+ f ? y.enable() : y.disable(), b(), l(() => c(e), (e) => y.onDocumentChanged(e ?? null), { immediate: !0 });
41
+ function S() {
42
+ return y.save();
43
+ }
44
+ function C() {
45
+ y.clear();
46
+ }
47
+ function w() {
48
+ return y.getRecoveryData();
49
+ }
50
+ function E() {
51
+ return y.acceptRecovery();
52
+ }
53
+ function D() {
54
+ y.dismissRecovery();
55
+ }
56
+ function O() {
57
+ y.enable();
58
+ }
59
+ function k() {
60
+ y.disable();
61
+ }
62
+ return i(() => {
63
+ x(), y.destroy();
64
+ }), {
65
+ status: n,
66
+ lastSaveTime: r,
67
+ hasRecoveryData: a,
68
+ isEnabled: o,
69
+ save: S,
70
+ clearAutoSave: C,
71
+ getRecoveryData: w,
72
+ acceptRecovery: E,
73
+ dismissRecovery: D,
74
+ enable: O,
75
+ disable: k
76
+ };
77
+ }
78
+ //#endregion
79
+ //#region src/composables/useClipboard.ts
80
+ function U(e = {}) {
81
+ let { onCopy: t, onCut: n, onPaste: r, cleanWordFormatting: i = !0, editable: a = !0, onError: o, theme: c } = e, l = s(!1), u = s(null);
82
+ async function d(e) {
83
+ if (l.value) return !1;
84
+ l.value = !0;
85
+ try {
86
+ let n = await g(e.runs, {
87
+ onError: o,
88
+ theme: c
89
+ });
90
+ return n && t?.(e), n;
91
+ } finally {
92
+ l.value = !1;
93
+ }
94
+ }
95
+ async function f(e) {
96
+ if (l.value || !a) return !1;
97
+ l.value = !0;
98
+ try {
99
+ let t = await g(e.runs, {
100
+ onError: o,
101
+ theme: c
102
+ });
103
+ return t && n?.(e), t;
104
+ } finally {
105
+ l.value = !1;
106
+ }
107
+ }
108
+ async function p(e = !1) {
109
+ if (l.value || !a) return null;
110
+ l.value = !0;
111
+ try {
112
+ if (navigator.clipboard && navigator.clipboard.read) {
113
+ let t = await navigator.clipboard.read(), n = "", a = "";
114
+ for (let e of t) e.types.includes("text/html") && (n = await (await e.getType("text/html")).text()), e.types.includes("text/plain") && (a = await (await e.getType("text/plain")).text());
115
+ e && (n = "");
116
+ let o = S(n, a, i);
117
+ return u.value = o, r?.(o, e), o;
118
+ }
119
+ return null;
120
+ } catch (e) {
121
+ return o?.(e instanceof Error ? e : Error(String(e))), null;
122
+ } finally {
123
+ l.value = !1;
124
+ }
125
+ }
126
+ return {
127
+ copy: d,
128
+ cut: f,
129
+ paste: p,
130
+ isProcessing: l,
131
+ lastPastedContent: u
132
+ };
133
+ }
134
+ //#endregion
135
+ //#region src/composables/useCommentSidebarItems.ts
136
+ function W({ comments: e, trackedChanges: t, showResolved: n, isAddingComment: i, addCommentYPosition: a }) {
137
+ return r(() => {
138
+ let r = [];
139
+ i?.value && a?.value != null && r.push({
140
+ id: "new-comment-input",
141
+ anchorPos: 0,
142
+ fixedY: a.value,
143
+ priority: -1e3,
144
+ isTemporary: !0,
145
+ estimatedHeight: 120,
146
+ kind: "add-comment"
147
+ });
148
+ let o = /* @__PURE__ */ new Map();
149
+ for (let t of e.value) if (t.parentId != null) {
150
+ let e = o.get(t.parentId);
151
+ e ? e.push(t) : o.set(t.parentId, [t]);
152
+ }
153
+ for (let t of e.value) t.parentId ?? (t.done && !n?.value || r.push({
154
+ id: `comment-${t.id}`,
155
+ anchorPos: 0,
156
+ anchorKey: `comment-${t.id}`,
157
+ priority: 0,
158
+ estimatedHeight: t.done ? 28 : 80,
159
+ kind: "comment",
160
+ comment: t,
161
+ replies: o.get(t.id) ?? []
162
+ }));
163
+ return t.value.forEach((e, t) => {
164
+ r.push({
165
+ id: `tc-${e.revisionId}-${t}`,
166
+ anchorPos: e.from,
167
+ anchorKey: `revision-${e.revisionId}`,
168
+ priority: 1,
169
+ estimatedHeight: 80,
170
+ kind: "tracked-change",
171
+ change: e
172
+ });
173
+ }), r;
174
+ });
175
+ }
176
+ //#endregion
177
+ //#region src/composables/useDragAutoScroll.ts
178
+ var G = 40, K = 12;
179
+ function q({ pagesContainer: e, onScrollExtendSelection: t }) {
180
+ let n = null, r = 0, a = 0, o = !1, s = null;
181
+ function c() {
182
+ if (s) return s;
183
+ let t = e.value;
184
+ return t ? (s = N(t), s) : null;
185
+ }
186
+ function l() {
187
+ o = !1, n !== null && (cancelAnimationFrame(n), n = null);
188
+ }
189
+ function u() {
190
+ if (!o) return;
191
+ let e = c();
192
+ if (!e) return;
193
+ let i = e.getBoundingClientRect(), s = 0;
194
+ if (a < i.top + G) {
195
+ let e = Math.max(0, i.top + G - a);
196
+ s = -Math.min(K, e / G * K);
197
+ } else if (a > i.bottom - G) {
198
+ let e = Math.max(0, a - (i.bottom - G));
199
+ s = Math.min(K, e / G * K);
200
+ }
201
+ s !== 0 && (e.scrollTop += s, t(r, a)), n = requestAnimationFrame(u);
202
+ }
203
+ function d() {
204
+ o || (o = !0, n = requestAnimationFrame(u));
205
+ }
206
+ function f(e, t) {
207
+ if (r = e, a = t, !o) {
208
+ let e = c();
209
+ if (!e) return;
210
+ let n = e.getBoundingClientRect();
211
+ (t < n.top + G || t > n.bottom - G) && d();
212
+ }
213
+ }
214
+ return i(() => l()), {
215
+ updateMousePosition: f,
216
+ stopAutoScroll: l
217
+ };
218
+ }
219
+ //#endregion
220
+ //#region src/composables/useFindReplace.ts
221
+ function J(e = {}) {
222
+ let t = o({
223
+ isOpen: !1,
224
+ searchText: "",
225
+ replaceText: "",
226
+ options: P(),
227
+ matches: [],
228
+ currentIndex: 0,
229
+ replaceMode: e.initialReplaceMode ?? !1
230
+ });
231
+ function n(e) {
232
+ t.isOpen = !0, t.replaceMode = !1, e && (t.searchText = e), t.matches = [], t.currentIndex = 0;
233
+ }
234
+ function i(e) {
235
+ t.isOpen = !0, t.replaceMode = !0, e && (t.searchText = e), t.matches = [], t.currentIndex = 0;
236
+ }
237
+ function a() {
238
+ t.isOpen = !1;
239
+ }
240
+ function s() {
241
+ t.isOpen = !t.isOpen;
242
+ }
243
+ function c(e) {
244
+ t.searchText = e;
245
+ }
246
+ function l(e) {
247
+ t.replaceText = e;
248
+ }
249
+ function u(e) {
250
+ t.options = {
251
+ ...t.options,
252
+ ...e
253
+ };
254
+ }
255
+ function d(n, r = 0) {
256
+ let i = Math.max(0, Math.min(r, n.length - 1));
257
+ t.matches = n, t.currentIndex = n.length > 0 ? i : 0, e.onMatchesChange?.(n), n.length > 0 ? e.onCurrentMatchChange?.(n[i], i) : e.onCurrentMatchChange?.(null, -1);
258
+ }
259
+ function f() {
260
+ return t.matches.length === 0 ? 0 : (t.currentIndex = (t.currentIndex + 1) % t.matches.length, t.currentIndex);
261
+ }
262
+ function p() {
263
+ return t.matches.length === 0 ? 0 : (t.currentIndex = t.currentIndex === 0 ? t.matches.length - 1 : t.currentIndex - 1, t.currentIndex);
264
+ }
265
+ function m(e) {
266
+ t.matches.length === 0 || e < 0 || e >= t.matches.length || (t.currentIndex = e);
267
+ }
268
+ return {
269
+ state: t,
270
+ currentMatch: r(() => t.matches.length === 0 ? null : t.matches[t.currentIndex] ?? null),
271
+ hasMatches: r(() => t.matches.length > 0),
272
+ openFind: n,
273
+ openReplace: i,
274
+ close: a,
275
+ toggle: s,
276
+ setSearchText: c,
277
+ setReplaceText: l,
278
+ setOptions: u,
279
+ setMatches: d,
280
+ goToNextMatch: f,
281
+ goToPreviousMatch: p,
282
+ goToMatch: m
283
+ };
284
+ }
285
+ //#endregion
286
+ //#region src/composables/useFixedDropdown.ts
287
+ function Y({ isOpen: e, onClose: t, align: n = "left" }) {
288
+ let r = s(null), a = s(null), o = s({
289
+ position: "fixed",
290
+ top: "0px",
291
+ left: "0px",
292
+ zIndex: 1e4
293
+ });
294
+ function c(e, t) {
295
+ o.value = {
296
+ position: "fixed",
297
+ top: e + "px",
298
+ left: t + "px",
299
+ zIndex: 1e4
300
+ };
301
+ }
302
+ function u(e) {
303
+ let n = e.target;
304
+ r.value && !r.value.contains(n) && a.value && !a.value.contains(n) && t();
305
+ }
306
+ function d(e) {
307
+ e.key === "Escape" && t();
308
+ }
309
+ function f() {
310
+ t();
311
+ }
312
+ function p() {
313
+ document.addEventListener("mousedown", u), document.addEventListener("keydown", d), window.addEventListener("scroll", f, !0);
314
+ }
315
+ function m() {
316
+ document.removeEventListener("mousedown", u), document.removeEventListener("keydown", d), window.removeEventListener("scroll", f, !0);
317
+ }
318
+ l(e, (e) => {
319
+ if (!e) {
320
+ m();
321
+ return;
322
+ }
323
+ let t = r.value;
324
+ if (!t) return;
325
+ let i = t.getBoundingClientRect();
326
+ n === "right" ? requestAnimationFrame(() => {
327
+ let e = a.value;
328
+ if (e) {
329
+ let t = e.getBoundingClientRect();
330
+ c(i.bottom + 4, i.right - t.width);
331
+ } else c(i.bottom + 4, i.left);
332
+ }) : c(i.bottom + 4, i.left), p();
333
+ }), i(m);
334
+ function h(e) {
335
+ e.preventDefault(), e.stopPropagation();
336
+ }
337
+ return {
338
+ containerRef: r,
339
+ dropdownRef: a,
340
+ dropdownStyle: o,
341
+ handleMouseDown: h
342
+ };
343
+ }
344
+ //#endregion
345
+ //#region src/composables/useHistory.ts
346
+ function X(e, t) {
347
+ let n = r(() => {
348
+ t.value;
349
+ let n = e.value;
350
+ return n ? p(n.state) > 0 : !1;
351
+ }), i = r(() => {
352
+ t.value;
353
+ let n = e.value;
354
+ return n ? d(n.state) > 0 : !1;
355
+ });
356
+ function a() {
357
+ let t = e.value;
358
+ return t ? f(t.state, t.dispatch) : !1;
359
+ }
360
+ function o() {
361
+ let t = e.value;
362
+ return t ? u(t.state, t.dispatch) : !1;
363
+ }
364
+ return {
365
+ canUndo: n,
366
+ canRedo: i,
367
+ undo: a,
368
+ redo: o
369
+ };
370
+ }
371
+ //#endregion
372
+ //#region src/composables/useSelectionHighlight.ts
373
+ function Z(e) {
374
+ let { containerRef: t, enabled: n = !0, config: o = m, useOverlay: c = !1, debounceMs: u = 16, onSelectionChange: d } = e, f = s(!1), p = s(""), g = s([]), S = s(!1), C = null, w = 0;
375
+ function T() {
376
+ let e = t.value, n = y(), r = v(), i = e ? x(e) : !1;
377
+ f.value = n, p.value = r, S.value = i, g.value = c && i && e ? _(e) : [], d?.(n && i, r);
378
+ }
379
+ function E() {
380
+ T();
381
+ }
382
+ function D() {
383
+ let e = performance.now();
384
+ if (e - w < u) {
385
+ C && clearTimeout(C), C = setTimeout(() => {
386
+ w = performance.now(), T(), C = null;
387
+ }, u);
388
+ return;
389
+ }
390
+ w = e, T();
391
+ }
392
+ function O(e) {
393
+ return {
394
+ position: "absolute",
395
+ left: e.left + "px",
396
+ top: e.top + "px",
397
+ width: e.width + "px",
398
+ height: e.height + "px",
399
+ backgroundColor: o.backgroundColor,
400
+ borderRadius: o.borderRadius ? o.borderRadius + "px" : void 0,
401
+ border: o.borderColor ? `1px solid ${o.borderColor}` : void 0,
402
+ zIndex: o.zIndex ?? 0,
403
+ pointerEvents: "none"
404
+ };
405
+ }
406
+ return a(() => {
407
+ n && (h() || b(o), document.addEventListener("selectionchange", D));
408
+ }), i(() => {
409
+ document.removeEventListener("selectionchange", D), C && clearTimeout(C);
410
+ }), l(t, () => T()), {
411
+ hasSelection: r(() => f.value),
412
+ selectedText: r(() => p.value),
413
+ highlightRects: r(() => g.value),
414
+ isSelectionInContainer: r(() => S.value),
415
+ refresh: E,
416
+ getOverlayStyle: O
417
+ };
418
+ }
419
+ //#endregion
420
+ //#region src/composables/useTableSelection.ts
421
+ function Q() {
422
+ let e = new F(), t = s(null), n = () => {
423
+ t.value = e.getSnapshot().selectedCell;
424
+ }, r = e.subscribe(n);
425
+ n(), i(() => {
426
+ r();
427
+ });
428
+ function a(t, n, r) {
429
+ e.selectCell({
430
+ tableIndex: t,
431
+ rowIndex: n,
432
+ columnIndex: r
433
+ });
434
+ }
435
+ function o(t, n) {
436
+ let r = I(t, n);
437
+ r ? e.selectCell(r) : e.clearSelection();
438
+ }
439
+ function c() {
440
+ e.clearSelection();
441
+ }
442
+ function l(t, n, r) {
443
+ return e.isCellSelected(t, n, r);
444
+ }
445
+ return {
446
+ selectedCell: t,
447
+ handleCellClick: a,
448
+ handleClickTarget: o,
449
+ clearSelection: c,
450
+ isCellSelected: l
451
+ };
452
+ }
453
+ //#endregion
454
+ //#region src/composables/useTrackedChanges.ts
455
+ function $(e, t) {
456
+ return r(() => (t.value, w(e.value?.state ?? null)));
457
+ }
458
+ //#endregion
459
+ //#region src/composables/useVisualLineNavigation.ts
460
+ function ee(e) {
461
+ let t = L();
462
+ function n(t) {
463
+ let n = e.value;
464
+ return n ? B(n, t) : null;
465
+ }
466
+ function r(t) {
467
+ let n = e.value;
468
+ return n ? R(n, t) : null;
469
+ }
470
+ function i(e, t) {
471
+ return z(e, t);
472
+ }
473
+ function a(n, r) {
474
+ return V(t, n, r, e.value);
475
+ }
476
+ return {
477
+ state: t,
478
+ getCaretClientX: n,
479
+ findLineElementAtPosition: r,
480
+ findPositionOnLineAtClientX: i,
481
+ handlePMKeyDown: a
482
+ };
483
+ }
484
+ //#endregion
485
+ export { E as createSelectionFromDOM, w as extractTrackedChanges, D as formatLastSaveTime, O as formatStorageSize, k as getAutoSaveStatusLabel, A as getAutoSaveStorageSize, j as getSelectionRuns, M as isAutoSaveSupported, C as runsToClipboardContent, H as useAutoSave, U as useClipboard, W as useCommentSidebarItems, t as useDocxEditor, q as useDragAutoScroll, J as useFindReplace, Y as useFixedDropdown, X as useHistory, Z as useSelectionHighlight, n as useTableResize, Q as useTableSelection, $ as useTrackedChanges, ee as useVisualLineNavigation, e as useWheelZoom, e as useZoom };
@@ -0,0 +1 @@
1
+ Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require(`./KeyboardShortcutsDialog-D72k5DXR.cjs`),t=require(`./TablePropertiesDialog-Ct5XChwd.cjs`);exports.FindReplaceDialog=e.s,exports.FootnotePropertiesDialog=t.o,exports.HyperlinkDialog=e.a,exports.ImagePositionDialog=t.a,exports.ImagePropertiesDialog=e.r,exports.InsertImageDialog=e.o,exports.InsertSymbolDialog=e.i,exports.InsertTableDialog=t.i,exports.KeyboardShortcutsDialog=e.t,exports.PageSetupDialog=e.n,exports.PasteSpecialDialog=t.r,exports.SplitCellDialog=t.n,exports.TablePropertiesDialog=t.t;
@@ -0,0 +1,3 @@
1
+ import { a as e, i as t, n, o as r, r as i, s as a, t as o } from "./KeyboardShortcutsDialog-BtJB9UOD.js";
2
+ import { a as s, i as c, n as l, o as u, r as d, t as f } from "./TablePropertiesDialog-cJx_xxxE.js";
3
+ export { a as FindReplaceDialog, u as FootnotePropertiesDialog, e as HyperlinkDialog, s as ImagePositionDialog, i as ImagePropertiesDialog, r as InsertImageDialog, t as InsertSymbolDialog, c as InsertTableDialog, o as KeyboardShortcutsDialog, n as PageSetupDialog, d as PasteSpecialDialog, l as SplitCellDialog, f as TablePropertiesDialog };