superdoc 2.29.0-next.2 → 2.29.0-next.9

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 (151) hide show
  1. package/dist/chunks/{FindReplaceSurface-Dm043CZP.es.js → FindReplaceSurface-BKVHzhQ4.es.js} +34 -26
  2. package/dist/chunks/{FindReplaceSurface-BRs3JrCq.cjs → FindReplaceSurface-BNDrJ6VS.cjs} +34 -26
  3. package/dist/chunks/{PasswordPromptSurface-DGjmN7A-.es.js → PasswordPromptSurface-6mF6Azda.es.js} +6 -4
  4. package/dist/chunks/{PasswordPromptSurface-BpqP4pUa.cjs → PasswordPromptSurface-BNkaztaP.cjs} +6 -4
  5. package/dist/chunks/{PdfViewer-boENOZdF.cjs → PdfViewer-DmSkZehl.cjs} +70 -99
  6. package/dist/chunks/{PdfViewer-D4lVeOJu.es.js → PdfViewer-aOWhUVI7.es.js} +67 -96
  7. package/dist/chunks/{constants-DpXuDx_g.cjs → constants-BeeNZoQp.cjs} +1 -1
  8. package/dist/chunks/{constants-B6VBlmKp.es.js → constants-BvNs_ybI.es.js} +1 -1
  9. package/dist/chunks/{create-super-doc-ui-BFt8agAI.es.js → create-super-doc-ui-Bm5kmx0W.es.js} +12 -29
  10. package/dist/chunks/{create-super-doc-ui-BAGOnYGM.cjs → create-super-doc-ui-DN70aatf.cjs} +17 -28
  11. package/dist/collaboration-upgrade-engine.cjs +1 -1
  12. package/dist/collaboration-upgrade-engine.es.js +1 -1
  13. package/dist/document-api/src/capabilities/html-markdown-support.d.ts +4 -6
  14. package/dist/document-api/src/comments/comments.d.ts +2 -0
  15. package/dist/document-api/src/contract/operation-definitions.d.ts +2 -2
  16. package/dist/document-api/src/contract/operation-registry.d.ts +10 -9
  17. package/dist/document-api/src/index.d.ts +8 -7
  18. package/dist/document-api/src/insert/insert.d.ts +2 -2
  19. package/dist/document-api/src/replace/replace.d.ts +3 -2
  20. package/dist/document-api/src/types/address.d.ts +3 -0
  21. package/dist/document-api/src/types/temporary-mutation.d.ts +5 -1
  22. package/dist/document-api/src/write/write.d.ts +12 -6
  23. package/dist/public/ui-react.cjs +1 -1
  24. package/dist/public/ui-react.es.js +1 -1
  25. package/dist/public/ui-vue.cjs +1 -1
  26. package/dist/public/ui-vue.es.js +1 -1
  27. package/dist/public/ui.cjs +1 -1
  28. package/dist/public/ui.es.js +1 -1
  29. package/dist/style.css +1 -1
  30. package/dist/style.layered.css +1 -1
  31. package/dist/superdoc/src/SuperDoc.vue.d.ts +132 -58
  32. package/dist/superdoc/src/components/CommentsLayer/CommentDialog.vue.d.ts +35 -1867
  33. package/dist/superdoc/src/components/CommentsLayer/CommentHeader.vue.d.ts +3 -4
  34. package/dist/superdoc/src/components/CommentsLayer/CommentInput.vue.d.ts +3 -618
  35. package/dist/superdoc/src/components/CommentsLayer/floating-comment-positioning.d.ts +24 -23
  36. package/dist/superdoc/src/components/CommentsLayer/tracked-change-threading.d.ts +0 -1
  37. package/dist/superdoc/src/components/CommentsLayer/use-comment.d.ts +28 -13
  38. package/dist/superdoc/src/components/PdfViewer/PdfViewer.vue.d.ts +132 -45
  39. package/dist/superdoc/src/components/PdfViewer/PdfViewerDocument.vue.d.ts +62 -16
  40. package/dist/superdoc/src/components/PdfViewer/PdfViewerPage.vue.d.ts +77 -17
  41. package/dist/superdoc/src/components/PdfViewer/pdf-viewer-types.d.ts +45 -0
  42. package/dist/superdoc/src/components/Whiteboard/WhiteboardLayer.vue.d.ts +81 -16
  43. package/dist/superdoc/src/components/Whiteboard/WhiteboardPage.vue.d.ts +49 -13
  44. package/dist/superdoc/src/components/Whiteboard/use-whiteboard.d.ts +30 -15
  45. package/dist/superdoc/src/components/Whiteboard/whiteboard-types.d.ts +11 -0
  46. package/dist/superdoc/src/components/surfaces/FindReplaceSurface.vue.d.ts +58 -15
  47. package/dist/superdoc/src/components/surfaces/PasswordPromptSurface.vue.d.ts +58 -15
  48. package/dist/superdoc/src/components/surfaces/SurfaceFloating.vue.d.ts +14 -6
  49. package/dist/superdoc/src/components/surfaces/SurfaceHost.vue.d.ts +25 -15
  50. package/dist/superdoc/src/components/surfaces/focusable-selector.d.ts +1 -5
  51. package/dist/superdoc/src/composables/find-shortcut-owner.d.ts +16 -9
  52. package/dist/superdoc/src/composables/replace-continuation.d.ts +11 -15
  53. package/dist/superdoc/src/composables/use-document.d.ts +1210 -30
  54. package/dist/superdoc/src/composables/use-field.d.ts +88 -25
  55. package/dist/superdoc/src/composables/use-password-prompt.d.ts +23 -24
  56. package/dist/superdoc/src/composables/useUiFontFamily.d.ts +3 -11
  57. package/dist/superdoc/src/core/SuperDoc.d.ts +2 -7
  58. package/dist/superdoc/src/core/collaboration/collaboration-comments.d.ts +9 -4
  59. package/dist/superdoc/src/core/collaboration/helpers.d.ts +20 -3
  60. package/dist/superdoc/src/core/collaboration/permissions.d.ts +15 -10
  61. package/dist/superdoc/src/core/collaboration/resolve-v2-collaboration-target.d.ts +4 -3
  62. package/dist/superdoc/src/core/collaboration/v2-awareness-bridge.d.ts +2 -1
  63. package/dist/superdoc/src/core/config/merge-comments-config.d.ts +1 -5
  64. package/dist/superdoc/src/core/config/merge-defined.d.ts +3 -8
  65. package/dist/superdoc/src/core/config/normalize-hyperlinks-config.d.ts +7 -12
  66. package/dist/superdoc/src/core/config/normalize-surfaces-config.d.ts +9 -12
  67. package/dist/superdoc/src/core/config/normalize-ui-config.d.ts +1 -12
  68. package/dist/superdoc/src/core/create-app.d.ts +13 -24
  69. package/dist/superdoc/src/core/editor-runtime/conformance/fake-v2-runtime.d.ts +2 -1
  70. package/dist/superdoc/src/core/editor-runtime/editor-runtime-registry.d.ts +2 -1
  71. package/dist/superdoc/src/core/editor-runtime/index.d.ts +1 -1
  72. package/dist/superdoc/src/core/editor-runtime/types.d.ts +9 -1
  73. package/dist/superdoc/src/core/editor-runtime/v2/v2-editor-runtime-adapter.d.ts +2 -1
  74. package/dist/superdoc/src/core/editor-runtime/v2/v2-session-shortcut-routes.d.ts +1 -1
  75. package/dist/superdoc/src/core/helpers/export.d.ts +3 -2
  76. package/dist/superdoc/src/core/helpers/file.d.ts +8 -45
  77. package/dist/superdoc/src/core/helpers/normalize-track-changes-config.d.ts +6 -60
  78. package/dist/superdoc/src/core/pdf/helpers/constants.d.ts +2 -2
  79. package/dist/superdoc/src/core/pdf/helpers/floor.d.ts +1 -1
  80. package/dist/superdoc/src/core/pdf/helpers/range.d.ts +1 -1
  81. package/dist/superdoc/src/core/pdf/helpers/read-file.d.ts +1 -1
  82. package/dist/superdoc/src/core/pdf/pdf-adapter.d.ts +24 -61
  83. package/dist/superdoc/src/core/superdoc-ui-owner.d.ts +1 -1
  84. package/dist/superdoc/src/core/surface-manager.d.ts +21 -83
  85. package/dist/superdoc/src/core/types/index.d.ts +4 -19
  86. package/dist/superdoc/src/core/v2-integration/v2-integration.d.ts +10 -10
  87. package/dist/superdoc/src/core/whiteboard/Whiteboard.d.ts +22 -208
  88. package/dist/superdoc/src/core/whiteboard/WhiteboardPage.d.ts +163 -189
  89. package/dist/superdoc/src/core/whiteboard/helpers/createTextarea.d.ts +14 -1
  90. package/dist/superdoc/src/core/whiteboard/helpers/flattenPoints.d.ts +1 -1
  91. package/dist/superdoc/src/core/whiteboard/helpers/getRandomId.d.ts +1 -1
  92. package/dist/superdoc/src/helpers/comment-focus.d.ts +21 -4
  93. package/dist/superdoc/src/helpers/deprecation.d.ts +5 -11
  94. package/dist/superdoc/src/helpers/interaction-trace.d.ts +7 -24
  95. package/dist/superdoc/src/helpers/mark-raw-component.d.ts +1 -0
  96. package/dist/superdoc/src/helpers/object-guards.d.ts +1 -5
  97. package/dist/superdoc/src/helpers/selection-source.d.ts +1 -1
  98. package/dist/superdoc/src/helpers/use-selection.d.ts +35 -15
  99. package/dist/superdoc/src/icons.d.ts +8 -0
  100. package/dist/superdoc/src/internal/diagnostics/diagnostic-dedupe.d.ts +6 -15
  101. package/dist/superdoc/src/internal/toolbar/built-in/AIWriter.vue.d.ts +77 -16
  102. package/dist/superdoc/src/internal/toolbar/built-in/AlignmentButtons.vue.d.ts +5 -3
  103. package/dist/superdoc/src/internal/toolbar/built-in/ButtonGroup.vue.d.ts +85 -5
  104. package/dist/superdoc/src/internal/toolbar/built-in/DocumentMode.vue.d.ts +20 -6
  105. package/dist/superdoc/src/internal/toolbar/built-in/FontFamilyCombobox.vue.d.ts +32 -8
  106. package/dist/superdoc/src/internal/toolbar/built-in/FontSizeCombobox.vue.d.ts +32 -8
  107. package/dist/superdoc/src/internal/toolbar/built-in/IconGrid.vue.d.ts +44 -12
  108. package/dist/superdoc/src/internal/toolbar/built-in/IconGridRow.vue.d.ts +32 -9
  109. package/dist/superdoc/src/internal/toolbar/built-in/LinkInput.vue.d.ts +1 -1
  110. package/dist/superdoc/src/internal/toolbar/built-in/StyleButtonsList.vue.d.ts +39 -10
  111. package/dist/superdoc/src/internal/toolbar/built-in/TableActions.vue.d.ts +24 -6
  112. package/dist/superdoc/src/internal/toolbar/built-in/TableGrid.vue.d.ts +7 -3
  113. package/dist/superdoc/src/internal/toolbar/built-in/Toolbar.vue.d.ts +9 -3
  114. package/dist/superdoc/src/internal/toolbar/built-in/ToolbarComboBox.vue.d.ts +13 -15
  115. package/dist/superdoc/src/internal/toolbar/built-in/ToolbarDropdown.vue.d.ts +1 -10
  116. package/dist/superdoc/src/internal/toolbar/built-in/ToolbarSeparator.vue.d.ts +16 -6
  117. package/dist/superdoc/src/internal/toolbar/built-in/color-dropdown-helpers.d.ts +10 -20
  118. package/dist/superdoc/src/internal/toolbar/built-in/constants.d.ts +12 -45
  119. package/dist/superdoc/src/internal/toolbar/built-in/default-items.d.ts +34 -17
  120. package/dist/superdoc/src/internal/toolbar/built-in/list-style-buttons.d.ts +2 -2
  121. package/dist/superdoc/src/internal/toolbar/built-in/toolbar-focus-helpers.d.ts +10 -2
  122. package/dist/superdoc/src/internal/toolbar/built-in/toolbarIcons.d.ts +67 -0
  123. package/dist/superdoc/src/internal/toolbar/built-in/toolbarTexts.d.ts +61 -61
  124. package/dist/superdoc/src/internal/toolbar/built-in/use-toolbar-item.d.ts +110 -48
  125. package/dist/superdoc/src/internal/toolbar/built-in-toolbar.d.ts +7 -27
  126. package/dist/superdoc/src/internal/toolbar/compatibility-catalog.d.ts +4 -3
  127. package/dist/superdoc/src/internal/toolbar/toolbar-item-aliases.d.ts +1 -1
  128. package/dist/superdoc/src/public/browser-document-api.d.ts +5 -4
  129. package/dist/superdoc/src/public/index.d.cts +26 -0
  130. package/dist/superdoc/src/public/index.d.ts +13 -0
  131. package/dist/superdoc/src/public/ui/commands.d.ts +14 -13
  132. package/dist/superdoc/src/public/ui/create-super-doc-ui.d.ts +1 -1
  133. package/dist/superdoc/src/public/ui/entity-at.d.ts +2 -1
  134. package/dist/superdoc/src/public/ui/style-match-patch.d.ts +2 -2
  135. package/dist/superdoc/src/public/ui/types.d.ts +1 -1
  136. package/dist/superdoc/src/stores/comments-store.d.ts +225 -99
  137. package/dist/superdoc/src/stores/helpers/comment-draft-text.d.ts +1 -0
  138. package/dist/superdoc/src/stores/helpers/comment-grouping.d.ts +30 -0
  139. package/dist/superdoc/src/stores/helpers/comment-identity.d.ts +40 -0
  140. package/dist/superdoc/src/stores/helpers/floating-comment-instances.d.ts +48 -13
  141. package/dist/superdoc/src/stores/helpers/tracked-change-identity.d.ts +19 -0
  142. package/dist/superdoc/src/stores/helpers/tracked-change-row-values.d.ts +21 -0
  143. package/dist/superdoc/src/stores/helpers/tracked-change-thread-index.d.ts +21 -24
  144. package/dist/superdoc/src/stores/superdoc-store.d.ts +676 -298
  145. package/dist/superdoc.cjs +1623 -2477
  146. package/dist/superdoc.es.js +1604 -2461
  147. package/dist-cdn/style.layered.css +1 -1
  148. package/dist-cdn/superdoc.min.css +1 -1
  149. package/dist-cdn/superdoc.min.js +42 -42
  150. package/package.json +2 -2
  151. package/dist/superdoc/src/internal/toolbar/index.d.ts +0 -10
@@ -1,5 +1,5 @@
1
- import { D as normalizeClass, F as openBlock, G as toDisplayString, N as onMounted, a as computed, at as withModifiers, c as createCommentVNode, it as withKeys, l as createElementBlock, t as _plugin_vue_export_helper_default, u as createElementVNode, z as ref } from "./_plugin-vue_export-helper-CsJQtMvr.es.js";
2
- //#region src/components/surfaces/FindReplaceSurface.vue
1
+ import { D as normalizeClass, F as openBlock, G as toDisplayString, N as onMounted, a as computed, at as withModifiers, c as createCommentVNode, h as defineComponent, it as withKeys, l as createElementBlock, t as _plugin_vue_export_helper_default, u as createElementVNode, z as ref } from "./_plugin-vue_export-helper-CsJQtMvr.es.js";
2
+ //#region src/components/surfaces/FindReplaceSurface.vue?vue&type=script&setup=true&lang.ts
3
3
  var _hoisted_1 = ["onKeydown"];
4
4
  var _hoisted_2 = { class: "sd-find-replace__row" };
5
5
  var _hoisted_3 = [
@@ -67,7 +67,9 @@ var _hoisted_20 = {
67
67
  "aria-hidden": "true"
68
68
  };
69
69
  var _hoisted_21 = { class: "sd-find-replace__error-text" };
70
- var FindReplaceSurface_default = /*#__PURE__*/ _plugin_vue_export_helper_default({
70
+ //#endregion
71
+ //#region src/components/surfaces/FindReplaceSurface.vue
72
+ var FindReplaceSurface_default = /* @__PURE__ */ _plugin_vue_export_helper_default(/* @__PURE__ */ defineComponent({
71
73
  __name: "FindReplaceSurface",
72
74
  props: {
73
75
  surfaceId: {
@@ -135,9 +137,15 @@ var FindReplaceSurface_default = /*#__PURE__*/ _plugin_vue_export_helper_default
135
137
  function handleClose() {
136
138
  props.findReplace.close("user-closed");
137
139
  }
140
+ function handleFindInput(event) {
141
+ if (event.target instanceof HTMLInputElement) props.findReplace.findQuery.value = event.target.value;
142
+ }
143
+ function handleReplaceInput(event) {
144
+ if (event.target instanceof HTMLInputElement) props.findReplace.replaceText.value = event.target.value;
145
+ }
138
146
  function collectScrollableAncestors(element) {
139
147
  const result = [];
140
- let cur = element?.parentElement ?? null;
148
+ let cur = element.parentElement;
141
149
  while (cur) {
142
150
  const style = cur.ownerDocument?.defaultView?.getComputedStyle?.(cur);
143
151
  if (style) {
@@ -146,7 +154,7 @@ var FindReplaceSurface_default = /*#__PURE__*/ _plugin_vue_export_helper_default
146
154
  }
147
155
  cur = cur.parentElement;
148
156
  }
149
- const root = element?.ownerDocument?.scrollingElement;
157
+ const root = element.ownerDocument.scrollingElement;
150
158
  if (root && !result.includes(root)) result.push(root);
151
159
  return result;
152
160
  }
@@ -181,7 +189,7 @@ var FindReplaceSurface_default = /*#__PURE__*/ _plugin_vue_export_helper_default
181
189
  "aria-label": __props.findReplace.texts.toggleReplaceAriaLabel,
182
190
  "aria-expanded": __props.findReplace.showReplace.value ? "true" : "false",
183
191
  onClick: _cache[0] || (_cache[0] = ($event) => __props.findReplace.showReplace.value = !__props.findReplace.showReplace.value)
184
- }, [..._cache[14] || (_cache[14] = [createElementVNode("svg", {
192
+ }, [..._cache[12] || (_cache[12] = [createElementVNode("svg", {
185
193
  viewBox: "0 0 16 16",
186
194
  width: "14",
187
195
  height: "14",
@@ -195,7 +203,7 @@ var FindReplaceSurface_default = /*#__PURE__*/ _plugin_vue_export_helper_default
195
203
  "stroke-linejoin": "round"
196
204
  })], -1)])], 10, _hoisted_3)) : createCommentVNode("", true),
197
205
  createElementVNode("div", { class: normalizeClass(["sd-find-replace__field", { "sd-find-replace__field--error": searchErrorText.value }]) }, [
198
- _cache[15] || (_cache[15] = createElementVNode("svg", {
206
+ _cache[13] || (_cache[13] = createElementVNode("svg", {
199
207
  class: "sd-find-replace__search-icon",
200
208
  viewBox: "0 0 16 16",
201
209
  width: "15",
@@ -209,7 +217,7 @@ var FindReplaceSurface_default = /*#__PURE__*/ _plugin_vue_export_helper_default
209
217
  ref_key: "findInputRef",
210
218
  ref: findInputRef,
211
219
  value: __props.findReplace.findQuery.value,
212
- onInput: _cache[1] || (_cache[1] = ($event) => __props.findReplace.findQuery.value = $event.target.value),
220
+ onInput: handleFindInput,
213
221
  type: "text",
214
222
  class: "sd-find-replace__input sd-find-replace__input--search",
215
223
  "data-sd-autofocus": "",
@@ -224,8 +232,8 @@ var FindReplaceSurface_default = /*#__PURE__*/ _plugin_vue_export_helper_default
224
232
  title: __props.findReplace.texts.matchCaseAriaLabel,
225
233
  "aria-label": __props.findReplace.texts.matchCaseAriaLabel,
226
234
  "aria-pressed": __props.findReplace.caseSensitive.value ? "true" : "false",
227
- onMousedown: _cache[2] || (_cache[2] = withModifiers(() => {}, ["prevent"])),
228
- onClick: _cache[3] || (_cache[3] = ($event) => __props.findReplace.caseSensitive.value = !__props.findReplace.caseSensitive.value)
235
+ onMousedown: _cache[1] || (_cache[1] = withModifiers(() => {}, ["prevent"])),
236
+ onClick: _cache[2] || (_cache[2] = ($event) => __props.findReplace.caseSensitive.value = !__props.findReplace.caseSensitive.value)
229
237
  }, toDisplayString(__props.findReplace.texts.matchCaseLabel), 43, _hoisted_6),
230
238
  showIgnoreDiacritics.value ? (openBlock(), createElementBlock("button", {
231
239
  key: 1,
@@ -234,8 +242,8 @@ var FindReplaceSurface_default = /*#__PURE__*/ _plugin_vue_export_helper_default
234
242
  title: __props.findReplace.texts.ignoreDiacriticsAriaLabel,
235
243
  "aria-label": __props.findReplace.texts.ignoreDiacriticsAriaLabel,
236
244
  "aria-pressed": __props.findReplace.ignoreDiacritics.value ? "true" : "false",
237
- onMousedown: _cache[4] || (_cache[4] = withModifiers(() => {}, ["prevent"])),
238
- onClick: _cache[5] || (_cache[5] = ($event) => __props.findReplace.ignoreDiacritics.value = !__props.findReplace.ignoreDiacritics.value)
245
+ onMousedown: _cache[3] || (_cache[3] = withModifiers(() => {}, ["prevent"])),
246
+ onClick: _cache[4] || (_cache[4] = ($event) => __props.findReplace.ignoreDiacritics.value = !__props.findReplace.ignoreDiacritics.value)
239
247
  }, toDisplayString(__props.findReplace.texts.ignoreDiacriticsLabel), 43, _hoisted_7)) : createCommentVNode("", true),
240
248
  showRegexToggle.value ? (openBlock(), createElementBlock("button", {
241
249
  key: 2,
@@ -244,8 +252,8 @@ var FindReplaceSurface_default = /*#__PURE__*/ _plugin_vue_export_helper_default
244
252
  title: __props.findReplace.texts.regexAriaLabel,
245
253
  "aria-label": __props.findReplace.texts.regexAriaLabel,
246
254
  "aria-pressed": __props.findReplace.regex.value ? "true" : "false",
247
- onMousedown: _cache[6] || (_cache[6] = withModifiers(() => {}, ["prevent"])),
248
- onClick: _cache[7] || (_cache[7] = ($event) => __props.findReplace.regex.value = !__props.findReplace.regex.value)
255
+ onMousedown: _cache[5] || (_cache[5] = withModifiers(() => {}, ["prevent"])),
256
+ onClick: _cache[6] || (_cache[6] = ($event) => __props.findReplace.regex.value = !__props.findReplace.regex.value)
249
257
  }, toDisplayString(__props.findReplace.texts.regexLabel), 43, _hoisted_8)) : createCommentVNode("", true)
250
258
  ], 2),
251
259
  createElementVNode("div", _hoisted_9, [
@@ -255,8 +263,8 @@ var FindReplaceSurface_default = /*#__PURE__*/ _plugin_vue_export_helper_default
255
263
  disabled: !__props.findReplace.hasMatches.value,
256
264
  title: __props.findReplace.texts.previousMatchLabel,
257
265
  "aria-label": __props.findReplace.texts.previousMatchAriaLabel,
258
- onClick: _cache[8] || (_cache[8] = ($event) => handleGoPrev())
259
- }, [..._cache[16] || (_cache[16] = [createElementVNode("svg", {
266
+ onClick: _cache[7] || (_cache[7] = ($event) => handleGoPrev())
267
+ }, [..._cache[14] || (_cache[14] = [createElementVNode("svg", {
260
268
  viewBox: "0 0 16 16",
261
269
  width: "16",
262
270
  height: "16",
@@ -275,8 +283,8 @@ var FindReplaceSurface_default = /*#__PURE__*/ _plugin_vue_export_helper_default
275
283
  disabled: !__props.findReplace.hasMatches.value,
276
284
  title: __props.findReplace.texts.nextMatchLabel,
277
285
  "aria-label": __props.findReplace.texts.nextMatchAriaLabel,
278
- onClick: _cache[9] || (_cache[9] = ($event) => handleGoNext())
279
- }, [..._cache[17] || (_cache[17] = [createElementVNode("svg", {
286
+ onClick: _cache[8] || (_cache[8] = ($event) => handleGoNext())
287
+ }, [..._cache[15] || (_cache[15] = [createElementVNode("svg", {
280
288
  viewBox: "0 0 16 16",
281
289
  width: "16",
282
290
  height: "16",
@@ -289,7 +297,7 @@ var FindReplaceSurface_default = /*#__PURE__*/ _plugin_vue_export_helper_default
289
297
  "stroke-linecap": "round",
290
298
  "stroke-linejoin": "round"
291
299
  })], -1)])], 8, _hoisted_11),
292
- _cache[19] || (_cache[19] = createElementVNode("span", {
300
+ _cache[17] || (_cache[17] = createElementVNode("span", {
293
301
  class: "sd-find-replace__divider",
294
302
  "aria-hidden": "true"
295
303
  }, null, -1)),
@@ -299,7 +307,7 @@ var FindReplaceSurface_default = /*#__PURE__*/ _plugin_vue_export_helper_default
299
307
  title: __props.findReplace.texts.closeLabel,
300
308
  "aria-label": __props.findReplace.texts.closeAriaLabel,
301
309
  onClick: handleClose
302
- }, [..._cache[18] || (_cache[18] = [createElementVNode("svg", {
310
+ }, [..._cache[16] || (_cache[16] = [createElementVNode("svg", {
303
311
  viewBox: "0 0 16 16",
304
312
  width: "16",
305
313
  height: "16",
@@ -314,37 +322,37 @@ var FindReplaceSurface_default = /*#__PURE__*/ _plugin_vue_export_helper_default
314
322
  ])
315
323
  ]),
316
324
  __props.findReplace.showReplace.value && showReplaceControls.value ? (openBlock(), createElementBlock("div", _hoisted_13, [
317
- _cache[20] || (_cache[20] = createElementVNode("span", {
325
+ _cache[18] || (_cache[18] = createElementVNode("span", {
318
326
  class: "sd-find-replace__row-indent",
319
327
  "aria-hidden": "true"
320
328
  }, null, -1)),
321
329
  createElementVNode("div", _hoisted_14, [createElementVNode("input", {
322
330
  value: __props.findReplace.replaceText.value,
323
- onInput: _cache[10] || (_cache[10] = ($event) => __props.findReplace.replaceText.value = $event.target.value),
331
+ onInput: handleReplaceInput,
324
332
  type: "text",
325
333
  class: "sd-find-replace__input",
326
334
  placeholder: __props.findReplace.texts.replacePlaceholder,
327
335
  "aria-label": __props.findReplace.texts.replaceAriaLabel,
328
- onKeydown: _cache[11] || (_cache[11] = withKeys(withModifiers(($event) => __props.findReplace.replaceCurrent(), ["prevent"]), ["enter"]))
336
+ onKeydown: _cache[9] || (_cache[9] = withKeys(withModifiers(($event) => __props.findReplace.replaceCurrent(), ["prevent"]), ["enter"]))
329
337
  }, null, 40, _hoisted_15)]),
330
338
  createElementVNode("div", _hoisted_16, [createElementVNode("button", {
331
339
  type: "button",
332
340
  class: "sd-find-replace__btn sd-find-replace__btn--action",
333
341
  disabled: replaceDisabled.value,
334
342
  title: __props.findReplace.texts.replaceLabel,
335
- onClick: _cache[12] || (_cache[12] = ($event) => __props.findReplace.replaceCurrent())
343
+ onClick: _cache[10] || (_cache[10] = ($event) => __props.findReplace.replaceCurrent())
336
344
  }, toDisplayString(__props.findReplace.texts.replaceLabel), 9, _hoisted_17), createElementVNode("button", {
337
345
  type: "button",
338
346
  class: "sd-find-replace__btn sd-find-replace__btn--action",
339
347
  disabled: replaceAllDisabled.value,
340
348
  title: __props.findReplace.texts.replaceAllLabel,
341
- onClick: _cache[13] || (_cache[13] = ($event) => __props.findReplace.replaceAll())
349
+ onClick: _cache[11] || (_cache[11] = ($event) => __props.findReplace.replaceAll())
342
350
  }, toDisplayString(__props.findReplace.texts.replaceAllLabel), 9, _hoisted_18)])
343
351
  ])) : createCommentVNode("", true),
344
352
  searchErrorText.value ? (openBlock(), createElementBlock("div", _hoisted_19, [showReplaceControls.value ? (openBlock(), createElementBlock("span", _hoisted_20)) : createCommentVNode("", true), createElementVNode("span", _hoisted_21, toDisplayString(searchErrorText.value), 1)])) : createCommentVNode("", true)
345
353
  ], 40, _hoisted_1);
346
354
  };
347
355
  }
348
- }, [["__scopeId", "data-v-5dba4c36"]]);
356
+ }), [["__scopeId", "data-v-7fda565b"]]);
349
357
  //#endregion
350
358
  export { FindReplaceSurface_default as default };
@@ -1,5 +1,5 @@
1
1
  const require__plugin_vue_export_helper = require("./_plugin-vue_export-helper-6MBoygIY.cjs");
2
- //#region src/components/surfaces/FindReplaceSurface.vue
2
+ //#region src/components/surfaces/FindReplaceSurface.vue?vue&type=script&setup=true&lang.ts
3
3
  var _hoisted_1 = ["onKeydown"];
4
4
  var _hoisted_2 = { class: "sd-find-replace__row" };
5
5
  var _hoisted_3 = [
@@ -67,7 +67,7 @@ var _hoisted_20 = {
67
67
  "aria-hidden": "true"
68
68
  };
69
69
  var _hoisted_21 = { class: "sd-find-replace__error-text" };
70
- var _sfc_main = {
70
+ var FindReplaceSurface_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ require__plugin_vue_export_helper.defineComponent({
71
71
  __name: "FindReplaceSurface",
72
72
  props: {
73
73
  surfaceId: {
@@ -135,9 +135,15 @@ var _sfc_main = {
135
135
  function handleClose() {
136
136
  props.findReplace.close("user-closed");
137
137
  }
138
+ function handleFindInput(event) {
139
+ if (event.target instanceof HTMLInputElement) props.findReplace.findQuery.value = event.target.value;
140
+ }
141
+ function handleReplaceInput(event) {
142
+ if (event.target instanceof HTMLInputElement) props.findReplace.replaceText.value = event.target.value;
143
+ }
138
144
  function collectScrollableAncestors(element) {
139
145
  const result = [];
140
- let cur = element?.parentElement ?? null;
146
+ let cur = element.parentElement;
141
147
  while (cur) {
142
148
  const style = cur.ownerDocument?.defaultView?.getComputedStyle?.(cur);
143
149
  if (style) {
@@ -146,7 +152,7 @@ var _sfc_main = {
146
152
  }
147
153
  cur = cur.parentElement;
148
154
  }
149
- const root = element?.ownerDocument?.scrollingElement;
155
+ const root = element.ownerDocument.scrollingElement;
150
156
  if (root && !result.includes(root)) result.push(root);
151
157
  return result;
152
158
  }
@@ -181,7 +187,7 @@ var _sfc_main = {
181
187
  "aria-label": __props.findReplace.texts.toggleReplaceAriaLabel,
182
188
  "aria-expanded": __props.findReplace.showReplace.value ? "true" : "false",
183
189
  onClick: _cache[0] || (_cache[0] = ($event) => __props.findReplace.showReplace.value = !__props.findReplace.showReplace.value)
184
- }, [..._cache[14] || (_cache[14] = [require__plugin_vue_export_helper.createElementVNode("svg", {
190
+ }, [..._cache[12] || (_cache[12] = [require__plugin_vue_export_helper.createElementVNode("svg", {
185
191
  viewBox: "0 0 16 16",
186
192
  width: "14",
187
193
  height: "14",
@@ -195,7 +201,7 @@ var _sfc_main = {
195
201
  "stroke-linejoin": "round"
196
202
  })], -1)])], 10, _hoisted_3)) : require__plugin_vue_export_helper.createCommentVNode("", true),
197
203
  require__plugin_vue_export_helper.createElementVNode("div", { class: require__plugin_vue_export_helper.normalizeClass(["sd-find-replace__field", { "sd-find-replace__field--error": searchErrorText.value }]) }, [
198
- _cache[15] || (_cache[15] = require__plugin_vue_export_helper.createElementVNode("svg", {
204
+ _cache[13] || (_cache[13] = require__plugin_vue_export_helper.createElementVNode("svg", {
199
205
  class: "sd-find-replace__search-icon",
200
206
  viewBox: "0 0 16 16",
201
207
  width: "15",
@@ -209,7 +215,7 @@ var _sfc_main = {
209
215
  ref_key: "findInputRef",
210
216
  ref: findInputRef,
211
217
  value: __props.findReplace.findQuery.value,
212
- onInput: _cache[1] || (_cache[1] = ($event) => __props.findReplace.findQuery.value = $event.target.value),
218
+ onInput: handleFindInput,
213
219
  type: "text",
214
220
  class: "sd-find-replace__input sd-find-replace__input--search",
215
221
  "data-sd-autofocus": "",
@@ -224,8 +230,8 @@ var _sfc_main = {
224
230
  title: __props.findReplace.texts.matchCaseAriaLabel,
225
231
  "aria-label": __props.findReplace.texts.matchCaseAriaLabel,
226
232
  "aria-pressed": __props.findReplace.caseSensitive.value ? "true" : "false",
227
- onMousedown: _cache[2] || (_cache[2] = require__plugin_vue_export_helper.withModifiers(() => {}, ["prevent"])),
228
- onClick: _cache[3] || (_cache[3] = ($event) => __props.findReplace.caseSensitive.value = !__props.findReplace.caseSensitive.value)
233
+ onMousedown: _cache[1] || (_cache[1] = require__plugin_vue_export_helper.withModifiers(() => {}, ["prevent"])),
234
+ onClick: _cache[2] || (_cache[2] = ($event) => __props.findReplace.caseSensitive.value = !__props.findReplace.caseSensitive.value)
229
235
  }, require__plugin_vue_export_helper.toDisplayString(__props.findReplace.texts.matchCaseLabel), 43, _hoisted_6),
230
236
  showIgnoreDiacritics.value ? (require__plugin_vue_export_helper.openBlock(), require__plugin_vue_export_helper.createElementBlock("button", {
231
237
  key: 1,
@@ -234,8 +240,8 @@ var _sfc_main = {
234
240
  title: __props.findReplace.texts.ignoreDiacriticsAriaLabel,
235
241
  "aria-label": __props.findReplace.texts.ignoreDiacriticsAriaLabel,
236
242
  "aria-pressed": __props.findReplace.ignoreDiacritics.value ? "true" : "false",
237
- onMousedown: _cache[4] || (_cache[4] = require__plugin_vue_export_helper.withModifiers(() => {}, ["prevent"])),
238
- onClick: _cache[5] || (_cache[5] = ($event) => __props.findReplace.ignoreDiacritics.value = !__props.findReplace.ignoreDiacritics.value)
243
+ onMousedown: _cache[3] || (_cache[3] = require__plugin_vue_export_helper.withModifiers(() => {}, ["prevent"])),
244
+ onClick: _cache[4] || (_cache[4] = ($event) => __props.findReplace.ignoreDiacritics.value = !__props.findReplace.ignoreDiacritics.value)
239
245
  }, require__plugin_vue_export_helper.toDisplayString(__props.findReplace.texts.ignoreDiacriticsLabel), 43, _hoisted_7)) : require__plugin_vue_export_helper.createCommentVNode("", true),
240
246
  showRegexToggle.value ? (require__plugin_vue_export_helper.openBlock(), require__plugin_vue_export_helper.createElementBlock("button", {
241
247
  key: 2,
@@ -244,8 +250,8 @@ var _sfc_main = {
244
250
  title: __props.findReplace.texts.regexAriaLabel,
245
251
  "aria-label": __props.findReplace.texts.regexAriaLabel,
246
252
  "aria-pressed": __props.findReplace.regex.value ? "true" : "false",
247
- onMousedown: _cache[6] || (_cache[6] = require__plugin_vue_export_helper.withModifiers(() => {}, ["prevent"])),
248
- onClick: _cache[7] || (_cache[7] = ($event) => __props.findReplace.regex.value = !__props.findReplace.regex.value)
253
+ onMousedown: _cache[5] || (_cache[5] = require__plugin_vue_export_helper.withModifiers(() => {}, ["prevent"])),
254
+ onClick: _cache[6] || (_cache[6] = ($event) => __props.findReplace.regex.value = !__props.findReplace.regex.value)
249
255
  }, require__plugin_vue_export_helper.toDisplayString(__props.findReplace.texts.regexLabel), 43, _hoisted_8)) : require__plugin_vue_export_helper.createCommentVNode("", true)
250
256
  ], 2),
251
257
  require__plugin_vue_export_helper.createElementVNode("div", _hoisted_9, [
@@ -255,8 +261,8 @@ var _sfc_main = {
255
261
  disabled: !__props.findReplace.hasMatches.value,
256
262
  title: __props.findReplace.texts.previousMatchLabel,
257
263
  "aria-label": __props.findReplace.texts.previousMatchAriaLabel,
258
- onClick: _cache[8] || (_cache[8] = ($event) => handleGoPrev())
259
- }, [..._cache[16] || (_cache[16] = [require__plugin_vue_export_helper.createElementVNode("svg", {
264
+ onClick: _cache[7] || (_cache[7] = ($event) => handleGoPrev())
265
+ }, [..._cache[14] || (_cache[14] = [require__plugin_vue_export_helper.createElementVNode("svg", {
260
266
  viewBox: "0 0 16 16",
261
267
  width: "16",
262
268
  height: "16",
@@ -275,8 +281,8 @@ var _sfc_main = {
275
281
  disabled: !__props.findReplace.hasMatches.value,
276
282
  title: __props.findReplace.texts.nextMatchLabel,
277
283
  "aria-label": __props.findReplace.texts.nextMatchAriaLabel,
278
- onClick: _cache[9] || (_cache[9] = ($event) => handleGoNext())
279
- }, [..._cache[17] || (_cache[17] = [require__plugin_vue_export_helper.createElementVNode("svg", {
284
+ onClick: _cache[8] || (_cache[8] = ($event) => handleGoNext())
285
+ }, [..._cache[15] || (_cache[15] = [require__plugin_vue_export_helper.createElementVNode("svg", {
280
286
  viewBox: "0 0 16 16",
281
287
  width: "16",
282
288
  height: "16",
@@ -289,7 +295,7 @@ var _sfc_main = {
289
295
  "stroke-linecap": "round",
290
296
  "stroke-linejoin": "round"
291
297
  })], -1)])], 8, _hoisted_11),
292
- _cache[19] || (_cache[19] = require__plugin_vue_export_helper.createElementVNode("span", {
298
+ _cache[17] || (_cache[17] = require__plugin_vue_export_helper.createElementVNode("span", {
293
299
  class: "sd-find-replace__divider",
294
300
  "aria-hidden": "true"
295
301
  }, null, -1)),
@@ -299,7 +305,7 @@ var _sfc_main = {
299
305
  title: __props.findReplace.texts.closeLabel,
300
306
  "aria-label": __props.findReplace.texts.closeAriaLabel,
301
307
  onClick: handleClose
302
- }, [..._cache[18] || (_cache[18] = [require__plugin_vue_export_helper.createElementVNode("svg", {
308
+ }, [..._cache[16] || (_cache[16] = [require__plugin_vue_export_helper.createElementVNode("svg", {
303
309
  viewBox: "0 0 16 16",
304
310
  width: "16",
305
311
  height: "16",
@@ -314,38 +320,40 @@ var _sfc_main = {
314
320
  ])
315
321
  ]),
316
322
  __props.findReplace.showReplace.value && showReplaceControls.value ? (require__plugin_vue_export_helper.openBlock(), require__plugin_vue_export_helper.createElementBlock("div", _hoisted_13, [
317
- _cache[20] || (_cache[20] = require__plugin_vue_export_helper.createElementVNode("span", {
323
+ _cache[18] || (_cache[18] = require__plugin_vue_export_helper.createElementVNode("span", {
318
324
  class: "sd-find-replace__row-indent",
319
325
  "aria-hidden": "true"
320
326
  }, null, -1)),
321
327
  require__plugin_vue_export_helper.createElementVNode("div", _hoisted_14, [require__plugin_vue_export_helper.createElementVNode("input", {
322
328
  value: __props.findReplace.replaceText.value,
323
- onInput: _cache[10] || (_cache[10] = ($event) => __props.findReplace.replaceText.value = $event.target.value),
329
+ onInput: handleReplaceInput,
324
330
  type: "text",
325
331
  class: "sd-find-replace__input",
326
332
  placeholder: __props.findReplace.texts.replacePlaceholder,
327
333
  "aria-label": __props.findReplace.texts.replaceAriaLabel,
328
- onKeydown: _cache[11] || (_cache[11] = require__plugin_vue_export_helper.withKeys(require__plugin_vue_export_helper.withModifiers(($event) => __props.findReplace.replaceCurrent(), ["prevent"]), ["enter"]))
334
+ onKeydown: _cache[9] || (_cache[9] = require__plugin_vue_export_helper.withKeys(require__plugin_vue_export_helper.withModifiers(($event) => __props.findReplace.replaceCurrent(), ["prevent"]), ["enter"]))
329
335
  }, null, 40, _hoisted_15)]),
330
336
  require__plugin_vue_export_helper.createElementVNode("div", _hoisted_16, [require__plugin_vue_export_helper.createElementVNode("button", {
331
337
  type: "button",
332
338
  class: "sd-find-replace__btn sd-find-replace__btn--action",
333
339
  disabled: replaceDisabled.value,
334
340
  title: __props.findReplace.texts.replaceLabel,
335
- onClick: _cache[12] || (_cache[12] = ($event) => __props.findReplace.replaceCurrent())
341
+ onClick: _cache[10] || (_cache[10] = ($event) => __props.findReplace.replaceCurrent())
336
342
  }, require__plugin_vue_export_helper.toDisplayString(__props.findReplace.texts.replaceLabel), 9, _hoisted_17), require__plugin_vue_export_helper.createElementVNode("button", {
337
343
  type: "button",
338
344
  class: "sd-find-replace__btn sd-find-replace__btn--action",
339
345
  disabled: replaceAllDisabled.value,
340
346
  title: __props.findReplace.texts.replaceAllLabel,
341
- onClick: _cache[13] || (_cache[13] = ($event) => __props.findReplace.replaceAll())
347
+ onClick: _cache[11] || (_cache[11] = ($event) => __props.findReplace.replaceAll())
342
348
  }, require__plugin_vue_export_helper.toDisplayString(__props.findReplace.texts.replaceAllLabel), 9, _hoisted_18)])
343
349
  ])) : require__plugin_vue_export_helper.createCommentVNode("", true),
344
350
  searchErrorText.value ? (require__plugin_vue_export_helper.openBlock(), require__plugin_vue_export_helper.createElementBlock("div", _hoisted_19, [showReplaceControls.value ? (require__plugin_vue_export_helper.openBlock(), require__plugin_vue_export_helper.createElementBlock("span", _hoisted_20)) : require__plugin_vue_export_helper.createCommentVNode("", true), require__plugin_vue_export_helper.createElementVNode("span", _hoisted_21, require__plugin_vue_export_helper.toDisplayString(searchErrorText.value), 1)])) : require__plugin_vue_export_helper.createCommentVNode("", true)
345
351
  ], 40, _hoisted_1);
346
352
  };
347
353
  }
348
- };
349
- var FindReplaceSurface_default = /*#__PURE__*/ require__plugin_vue_export_helper._plugin_vue_export_helper_default(_sfc_main, [["__scopeId", "data-v-5dba4c36"]]);
354
+ });
355
+ //#endregion
356
+ //#region src/components/surfaces/FindReplaceSurface.vue
357
+ var FindReplaceSurface_default = /* @__PURE__ */ require__plugin_vue_export_helper._plugin_vue_export_helper_default(FindReplaceSurface_vue_vue_type_script_setup_true_lang_default, [["__scopeId", "data-v-7fda565b"]]);
350
358
  //#endregion
351
359
  exports.default = FindReplaceSurface_default;
@@ -1,5 +1,5 @@
1
- import { F as openBlock, G as toDisplayString, a as computed, at as withModifiers, c as createCommentVNode, et as vModelText, it as withKeys, l as createElementBlock, rt as withDirectives, t as _plugin_vue_export_helper_default, u as createElementVNode, z as ref } from "./_plugin-vue_export-helper-CsJQtMvr.es.js";
2
- //#region src/components/surfaces/PasswordPromptSurface.vue
1
+ import { F as openBlock, G as toDisplayString, a as computed, at as withModifiers, c as createCommentVNode, et as vModelText, h as defineComponent, it as withKeys, l as createElementBlock, rt as withDirectives, t as _plugin_vue_export_helper_default, u as createElementVNode, z as ref } from "./_plugin-vue_export-helper-CsJQtMvr.es.js";
2
+ //#region src/components/surfaces/PasswordPromptSurface.vue?vue&type=script&setup=true&lang.ts
3
3
  var _hoisted_1 = ["onKeydown"];
4
4
  var _hoisted_2 = ["id"];
5
5
  var _hoisted_3 = { class: "sd-password-prompt__description" };
@@ -17,7 +17,9 @@ var _hoisted_6 = {
17
17
  var _hoisted_7 = { class: "sd-password-prompt__actions" };
18
18
  var _hoisted_8 = ["disabled"];
19
19
  var _hoisted_9 = ["disabled"];
20
- var PasswordPromptSurface_default = /*#__PURE__*/ _plugin_vue_export_helper_default({
20
+ //#endregion
21
+ //#region src/components/surfaces/PasswordPromptSurface.vue
22
+ var PasswordPromptSurface_default = /* @__PURE__ */ _plugin_vue_export_helper_default(/* @__PURE__ */ defineComponent({
21
23
  __name: "PasswordPromptSurface",
22
24
  props: {
23
25
  surfaceId: {
@@ -107,6 +109,6 @@ var PasswordPromptSurface_default = /*#__PURE__*/ _plugin_vue_export_helper_defa
107
109
  ], 40, _hoisted_1);
108
110
  };
109
111
  }
110
- }, [["__scopeId", "data-v-ecf7f6fb"]]);
112
+ }), [["__scopeId", "data-v-be1c5e2c"]]);
111
113
  //#endregion
112
114
  export { PasswordPromptSurface_default as default };
@@ -1,5 +1,5 @@
1
1
  const require__plugin_vue_export_helper = require("./_plugin-vue_export-helper-6MBoygIY.cjs");
2
- //#region src/components/surfaces/PasswordPromptSurface.vue
2
+ //#region src/components/surfaces/PasswordPromptSurface.vue?vue&type=script&setup=true&lang.ts
3
3
  var _hoisted_1 = ["onKeydown"];
4
4
  var _hoisted_2 = ["id"];
5
5
  var _hoisted_3 = { class: "sd-password-prompt__description" };
@@ -17,7 +17,7 @@ var _hoisted_6 = {
17
17
  var _hoisted_7 = { class: "sd-password-prompt__actions" };
18
18
  var _hoisted_8 = ["disabled"];
19
19
  var _hoisted_9 = ["disabled"];
20
- var _sfc_main = {
20
+ var PasswordPromptSurface_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ require__plugin_vue_export_helper.defineComponent({
21
21
  __name: "PasswordPromptSurface",
22
22
  props: {
23
23
  surfaceId: {
@@ -107,7 +107,9 @@ var _sfc_main = {
107
107
  ], 40, _hoisted_1);
108
108
  };
109
109
  }
110
- };
111
- var PasswordPromptSurface_default = /*#__PURE__*/ require__plugin_vue_export_helper._plugin_vue_export_helper_default(_sfc_main, [["__scopeId", "data-v-ecf7f6fb"]]);
110
+ });
111
+ //#endregion
112
+ //#region src/components/surfaces/PasswordPromptSurface.vue
113
+ var PasswordPromptSurface_default = /* @__PURE__ */ require__plugin_vue_export_helper._plugin_vue_export_helper_default(PasswordPromptSurface_vue_vue_type_script_setup_true_lang_default, [["__scopeId", "data-v-be1c5e2c"]]);
112
114
  //#endregion
113
115
  exports.default = PasswordPromptSurface_default;