@harbour-enterprises/superdoc 0.23.0-next.7 → 0.23.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.
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
3
  const vue = require("./vue-DKMj1I9B.cjs");
4
- const superdoc = require("./index-D7Qk15SC.cjs");
4
+ const superdoc = require("./index-CA5Ws4u_.cjs");
5
5
  function self(vars) {
6
6
  const {
7
7
  opacityDisabled,
@@ -1,5 +1,5 @@
1
1
  import { m as defineComponent, B as h, O as Transition, $ as process$1, I as watchEffect, d as computed, r as ref, j as onMounted, W as onUnmounted, c as createElementBlock, o as openBlock, a as createBaseVNode, f as createCommentVNode, v as createVNode, x as unref } from "./vue-ZWZLQtoU.es.js";
2
- import { d as derived, c, a as cB, f as fadeInTransition, b as cM, N as NBaseLoading, w as warnOnce, u as useConfig, e as useTheme, p as pxfy, g as createKey, h as useThemeClass, i as useCompitable, _ as _export_sfc, j as useSuperdocStore, s as storeToRefs, k as useSelection } from "./index-CwYBNJbv.es.js";
2
+ import { d as derived, c, a as cB, f as fadeInTransition, b as cM, N as NBaseLoading, w as warnOnce, u as useConfig, e as useTheme, p as pxfy, g as createKey, h as useThemeClass, i as useCompitable, _ as _export_sfc, j as useSuperdocStore, s as storeToRefs, k as useSelection } from "./index-B6C_qqb7.es.js";
3
3
  function self(vars) {
4
4
  const {
5
5
  opacityDisabled,
@@ -1,4 +1,4 @@
1
- import { q as index$1, C as CommentsPluginKey, h as TrackChangesBasePluginKey, E as Editor, n as getRichTextExtensions, f as SuperInput, e as SuperEditor, A as AIWriter, g as SuperToolbar, i as createZip } from "./super-editor.es-BlwYYqj5.es.js";
1
+ import { q as index$1, C as CommentsPluginKey, h as TrackChangesBasePluginKey, E as Editor, n as getRichTextExtensions, f as SuperInput, e as SuperEditor, A as AIWriter, g as SuperToolbar, i as createZip } from "./super-editor.es-SlMc-6Xl.es.js";
2
2
  import { a0 as effectScope, r as ref, _ as markRaw, $ as process$1, a1 as toRaw, d as computed, a2 as isRef, a3 as isReactive, C as toRef, i as inject, p as getCurrentInstance, l as watch, x as unref, a4 as hasInjectionContext, M as reactive, s as nextTick, a5 as getCurrentScope, a6 as onScopeDispose, a7 as toRefs, g as global$1, J as shallowRef, N as readonly, j as onMounted, k as onBeforeUnmount, h as onBeforeMount, S as onActivated, q as onDeactivated, z as createTextVNode, F as Fragment, Q as Comment, m as defineComponent, D as provide, H as withDirectives, B as h, U as Teleport, R as renderSlot, V as isVNode, I as watchEffect, O as Transition, a8 as TransitionGroup, E as mergeProps, P as vShow, G as cloneVNode, T as Text, c as createElementBlock, o as openBlock, t as toDisplayString, v as createVNode, y as withCtx, a as createBaseVNode, A as normalizeStyle, f as createCommentVNode, u as createBlock, w as withModifiers, n as normalizeClass, a9 as resolveDirective, e as renderList, b as createApp, X as resolveDynamicComponent, aa as defineAsyncComponent } from "./vue-ZWZLQtoU.es.js";
3
3
  import { B as Buffer$2 } from "./jszip-DAXEPCUv.es.js";
4
4
  import { B as BlankDOCX } from "./blank-docx-iwdyG9RH.es.js";
@@ -17400,7 +17400,7 @@ const _sfc_main = {
17400
17400
  __name: "SuperDoc",
17401
17401
  emits: ["selection-update"],
17402
17402
  setup(__props, { emit: __emit }) {
17403
- const PdfViewer = defineAsyncComponent(() => import("./PdfViewer-C6jt6oYd.es.js"));
17403
+ const PdfViewer = defineAsyncComponent(() => import("./PdfViewer-u8hGPpZm.es.js"));
17404
17404
  const superdocStore = useSuperdocStore();
17405
17405
  const commentsStore = useCommentsStore();
17406
17406
  const {
@@ -1,5 +1,5 @@
1
1
  "use strict";
2
- const superEditor_es = require("./super-editor.es-DjFmu9z4.cjs");
2
+ const superEditor_es = require("./super-editor.es-BKc8fudf.cjs");
3
3
  const vue = require("./vue-DKMj1I9B.cjs");
4
4
  const jszip = require("./jszip-B4LDL19y.cjs");
5
5
  const blankDocx = require("./blank-docx-CPqX9RF5.cjs");
@@ -17417,7 +17417,7 @@ const _sfc_main = {
17417
17417
  __name: "SuperDoc",
17418
17418
  emits: ["selection-update"],
17419
17419
  setup(__props, { emit: __emit }) {
17420
- const PdfViewer = vue.defineAsyncComponent(() => Promise.resolve().then(() => require("./PdfViewer-DdqBWhu-.cjs")));
17420
+ const PdfViewer = vue.defineAsyncComponent(() => Promise.resolve().then(() => require("./PdfViewer-CYUUhI5q.cjs")));
17421
17421
  const superdocStore = useSuperdocStore();
17422
17422
  const commentsStore = useCommentsStore();
17423
17423
  const {
@@ -70179,6 +70179,7 @@ function getActualBreakCoords(view, pos, calculatedThreshold) {
70179
70179
  return actualBreak;
70180
70180
  }
70181
70181
  const onImageLoad = (editor) => {
70182
+ if (typeof requestAnimationFrame !== "function") return;
70182
70183
  requestAnimationFrame(() => {
70183
70184
  const newTr = editor.view.state.tr;
70184
70185
  newTr.setMeta("forceUpdatePagination", true);
@@ -71390,7 +71391,7 @@ const _sfc_main$4$1 = {
71390
71391
  };
71391
71392
  const handleInputSubmit = () => {
71392
71393
  const value = inlineTextInput.value;
71393
- const cleanValue = value.replace(/[^0-9]/g, "");
71394
+ const cleanValue = value.match(/^\d+(\.5)?$/) ? value : Math.floor(parseFloat(value)).toString();
71394
71395
  emit("textSubmit", cleanValue);
71395
71396
  inlineTextInput.value = cleanValue;
71396
71397
  };
@@ -71472,7 +71473,7 @@ const _sfc_main$4$1 = {
71472
71473
  };
71473
71474
  }
71474
71475
  };
71475
- const ToolbarButton = /* @__PURE__ */ _export_sfc(_sfc_main$4$1, [["__scopeId", "data-v-303b3245"]]);
71476
+ const ToolbarButton = /* @__PURE__ */ _export_sfc(_sfc_main$4$1, [["__scopeId", "data-v-cea02a58"]]);
71476
71477
  const _hoisted_1$2$1 = {
71477
71478
  class: "toolbar-separator",
71478
71479
  role: "separator",
@@ -70162,6 +70162,7 @@ function getActualBreakCoords(view, pos, calculatedThreshold) {
70162
70162
  return actualBreak;
70163
70163
  }
70164
70164
  const onImageLoad = (editor) => {
70165
+ if (typeof requestAnimationFrame !== "function") return;
70165
70166
  requestAnimationFrame(() => {
70166
70167
  const newTr = editor.view.state.tr;
70167
70168
  newTr.setMeta("forceUpdatePagination", true);
@@ -71373,7 +71374,7 @@ const _sfc_main$4$1 = {
71373
71374
  };
71374
71375
  const handleInputSubmit = () => {
71375
71376
  const value = inlineTextInput.value;
71376
- const cleanValue = value.replace(/[^0-9]/g, "");
71377
+ const cleanValue = value.match(/^\d+(\.5)?$/) ? value : Math.floor(parseFloat(value)).toString();
71377
71378
  emit("textSubmit", cleanValue);
71378
71379
  inlineTextInput.value = cleanValue;
71379
71380
  };
@@ -71455,7 +71456,7 @@ const _sfc_main$4$1 = {
71455
71456
  };
71456
71457
  }
71457
71458
  };
71458
- const ToolbarButton = /* @__PURE__ */ _export_sfc(_sfc_main$4$1, [["__scopeId", "data-v-303b3245"]]);
71459
+ const ToolbarButton = /* @__PURE__ */ _export_sfc(_sfc_main$4$1, [["__scopeId", "data-v-cea02a58"]]);
71459
71460
  const _hoisted_1$2$1 = {
71460
71461
  class: "toolbar-separator",
71461
71462
  role: "separator",
package/dist/style.css CHANGED
@@ -438,20 +438,20 @@ span[data-v-53e13009] {
438
438
  width: 16px;
439
439
  }
440
440
 
441
- .toolbar-item[data-v-303b3245] {
441
+ .toolbar-item[data-v-cea02a58] {
442
442
  position: relative;
443
443
  z-index: 1;
444
444
  min-width: 30px;
445
445
  margin: 0 1px;
446
446
  }
447
- .visually-hidden[data-v-303b3245] {
447
+ .visually-hidden[data-v-cea02a58] {
448
448
  position: absolute;
449
449
  left: -9999px;
450
450
  height: 1px;
451
451
  width: 1px;
452
452
  overflow: hidden;
453
453
  }
454
- .toolbar-button[data-v-303b3245] {
454
+ .toolbar-button[data-v-cea02a58] {
455
455
  padding: 5px;
456
456
  height: 32px;
457
457
  max-height: 32px;
@@ -467,21 +467,21 @@ span[data-v-53e13009] {
467
467
  position: relative;
468
468
  box-sizing: border-box;
469
469
  }
470
- .toolbar-button[data-v-303b3245]:hover {
470
+ .toolbar-button[data-v-cea02a58]:hover {
471
471
  background-color: #dbdbdb;
472
472
  }
473
- .toolbar-button:hover .toolbar-icon.high-contrast[data-v-303b3245] {
473
+ .toolbar-button:hover .toolbar-icon.high-contrast[data-v-cea02a58] {
474
474
  color: #fff;
475
475
  }
476
- .toolbar-button:hover.high-contrast[data-v-303b3245] {
476
+ .toolbar-button:hover.high-contrast[data-v-cea02a58] {
477
477
  background-color: #000;
478
478
  color: #fff;
479
479
  }
480
- .toolbar-button[data-v-303b3245]:active,
481
- .active[data-v-303b3245] {
480
+ .toolbar-button[data-v-cea02a58]:active,
481
+ .active[data-v-cea02a58] {
482
482
  background-color: #c8d0d8;
483
483
  }
484
- .button-label[data-v-303b3245] {
484
+ .button-label[data-v-cea02a58] {
485
485
  overflow: hidden;
486
486
  width: 100%;
487
487
  text-align: center;
@@ -491,37 +491,37 @@ span[data-v-53e13009] {
491
491
  font-size: 15px;
492
492
  margin: 5px;
493
493
  }
494
- .toolbar-icon + .dropdown-caret[data-v-303b3245] {
494
+ .toolbar-icon + .dropdown-caret[data-v-cea02a58] {
495
495
  margin-left: 4px;
496
496
  }
497
- .left[data-v-303b3245],
498
- .right[data-v-303b3245] {
497
+ .left[data-v-cea02a58],
498
+ .right[data-v-cea02a58] {
499
499
  width: 50%;
500
500
  height: 100%;
501
501
  background-color: #dbdbdb;
502
502
  border-radius: 60%;
503
503
  }
504
- .has-inline-text-input[data-v-303b3245]:hover {
504
+ .has-inline-text-input[data-v-cea02a58]:hover {
505
505
  cursor: text;
506
506
  }
507
- .disabled[data-v-303b3245] {
507
+ .disabled[data-v-cea02a58] {
508
508
  cursor: default;
509
509
  }
510
- .disabled[data-v-303b3245]:hover {
510
+ .disabled[data-v-cea02a58]:hover {
511
511
  cursor: default;
512
512
  background-color: initial;
513
513
  }
514
- .disabled .toolbar-icon[data-v-303b3245],
515
- .disabled .caret[data-v-303b3245],
516
- .disabled .button-label[data-v-303b3245] {
514
+ .disabled .toolbar-icon[data-v-cea02a58],
515
+ .disabled .caret[data-v-cea02a58],
516
+ .disabled .button-label[data-v-cea02a58] {
517
517
  opacity: 0.35;
518
518
  }
519
- .caret[data-v-303b3245] {
519
+ .caret[data-v-cea02a58] {
520
520
  font-size: 1em;
521
521
  padding-left: 2px;
522
522
  padding-right: 2px;
523
523
  }
524
- .button-text-input[data-v-303b3245] {
524
+ .button-text-input[data-v-cea02a58] {
525
525
  color: #47484a;
526
526
  border-radius: 4px;
527
527
  text-align: center;
@@ -535,13 +535,13 @@ span[data-v-53e13009] {
535
535
  border: 1px solid #d8dee5;
536
536
  box-sizing: border-box;
537
537
  }
538
- .button-text-input.high-contrast[data-v-303b3245] {
538
+ .button-text-input.high-contrast[data-v-cea02a58] {
539
539
  background-color: #fff;
540
540
  }
541
- .button-text-input[data-v-303b3245]::placeholder {
541
+ .button-text-input[data-v-cea02a58]::placeholder {
542
542
  color: #47484a;
543
543
  }
544
- .dropdown-caret[data-v-303b3245] {
544
+ .dropdown-caret[data-v-cea02a58] {
545
545
  display: inline-flex;
546
546
  align-items: center;
547
547
  justify-content: center;
@@ -551,16 +551,16 @@ span[data-v-53e13009] {
551
551
  height: 10px;
552
552
  }
553
553
  @media (max-width: 1280px) {
554
- .toolbar-item--doc-mode .button-label[data-v-303b3245] {
554
+ .toolbar-item--doc-mode .button-label[data-v-cea02a58] {
555
555
  display: none;
556
556
  }
557
- .toolbar-item--doc-mode .toolbar-icon[data-v-303b3245] {
557
+ .toolbar-item--doc-mode .toolbar-icon[data-v-cea02a58] {
558
558
  margin-right: 5px;
559
559
  }
560
- .toolbar-item--linked-styles[data-v-303b3245] {
560
+ .toolbar-item--linked-styles[data-v-cea02a58] {
561
561
  width: auto !important;
562
562
  }
563
- .toolbar-item--linked-styles .button-label[data-v-303b3245] {
563
+ .toolbar-item--linked-styles .button-label[data-v-cea02a58] {
564
564
  display: none;
565
565
  }
566
566
  }
@@ -1,6 +1,6 @@
1
1
  import { ref, onMounted, onUnmounted, computed, createElementBlock, openBlock, withModifiers, createElementVNode, withDirectives, unref, vModelText, createCommentVNode, nextTick } from "vue";
2
2
  import { T as TextSelection } from "./chunks/converter-ClnqoStR.js";
3
- import { _ as _export_sfc } from "./chunks/editor-Co2_vpme.js";
3
+ import { _ as _export_sfc } from "./chunks/editor-Cm1uP1iw.js";
4
4
  const DEFAULT_API_ENDPOINT = "https://sd-dev-express-gateway-i6xtm.ondigitalocean.app/insights";
5
5
  const SYSTEM_PROMPT = "You are an expert copywriter and you are immersed in a document editor. You are to provide document related text responses based on the user prompts. Only write what is asked for. Do not provide explanations. Try to keep placeholders as short as possible. Do not output your prompt. Your instructions are: ";
6
6
  async function baseInsightsFetch(payload, options = {}) {
@@ -33301,6 +33301,7 @@ function getActualBreakCoords(view, pos, calculatedThreshold) {
33301
33301
  return actualBreak;
33302
33302
  }
33303
33303
  const onImageLoad = (editor) => {
33304
+ if (typeof requestAnimationFrame !== "function") return;
33304
33305
  requestAnimationFrame(() => {
33305
33306
  const newTr = editor.view.state.tr;
33306
33307
  newTr.setMeta("forceUpdatePagination", true);
@@ -1,6 +1,6 @@
1
1
  import { computed, createElementBlock, openBlock, createElementVNode, createCommentVNode, normalizeClass, normalizeStyle, ref, withKeys, unref, withModifiers, createBlock, toDisplayString, withDirectives, vModelText, nextTick, getCurrentInstance, createVNode, readonly, watch, onMounted, onBeforeUnmount, reactive, onBeforeMount, inject, onActivated, onDeactivated, createTextVNode, Fragment, Comment, defineComponent, provide, h, Teleport, toRef, renderSlot, isVNode, shallowRef, watchEffect, mergeProps, Transition, vShow, cloneVNode, Text, renderList, withCtx } from "vue";
2
2
  import { p as process$1 } from "./converter-ClnqoStR.js";
3
- import { _ as _export_sfc, u as useHighContrastMode, g as global$1 } from "./editor-Co2_vpme.js";
3
+ import { _ as _export_sfc, u as useHighContrastMode, g as global$1 } from "./editor-Cm1uP1iw.js";
4
4
  const sanitizeNumber = (value, defaultNumber) => {
5
5
  let sanitized = value.replace(/[^0-9.]/g, "");
6
6
  sanitized = parseFloat(sanitized);
@@ -278,7 +278,7 @@ const _sfc_main$4 = {
278
278
  };
279
279
  const handleInputSubmit = () => {
280
280
  const value = inlineTextInput.value;
281
- const cleanValue = value.replace(/[^0-9]/g, "");
281
+ const cleanValue = value.match(/^\d+(\.5)?$/) ? value : Math.floor(parseFloat(value)).toString();
282
282
  emit("textSubmit", cleanValue);
283
283
  inlineTextInput.value = cleanValue;
284
284
  };
@@ -360,7 +360,7 @@ const _sfc_main$4 = {
360
360
  };
361
361
  }
362
362
  };
363
- const ToolbarButton = /* @__PURE__ */ _export_sfc(_sfc_main$4, [["__scopeId", "data-v-303b3245"]]);
363
+ const ToolbarButton = /* @__PURE__ */ _export_sfc(_sfc_main$4, [["__scopeId", "data-v-cea02a58"]]);
364
364
  const _hoisted_1$2 = {
365
365
  class: "toolbar-separator",
366
366
  role: "separator",
@@ -1,4 +1,4 @@
1
- import { E } from "./chunks/editor-Co2_vpme.js";
1
+ import { E } from "./chunks/editor-Cm1uP1iw.js";
2
2
  import "./chunks/converter-ClnqoStR.js";
3
3
  import "./chunks/docx-zipper-DC28ucAi.js";
4
4
  export {
@@ -64,20 +64,20 @@
64
64
  width: 16px;
65
65
  }
66
66
 
67
- .toolbar-item[data-v-303b3245] {
67
+ .toolbar-item[data-v-cea02a58] {
68
68
  position: relative;
69
69
  z-index: 1;
70
70
  min-width: 30px;
71
71
  margin: 0 1px;
72
72
  }
73
- .visually-hidden[data-v-303b3245] {
73
+ .visually-hidden[data-v-cea02a58] {
74
74
  position: absolute;
75
75
  left: -9999px;
76
76
  height: 1px;
77
77
  width: 1px;
78
78
  overflow: hidden;
79
79
  }
80
- .toolbar-button[data-v-303b3245] {
80
+ .toolbar-button[data-v-cea02a58] {
81
81
  padding: 5px;
82
82
  height: 32px;
83
83
  max-height: 32px;
@@ -93,21 +93,21 @@
93
93
  position: relative;
94
94
  box-sizing: border-box;
95
95
  }
96
- .toolbar-button[data-v-303b3245]:hover {
96
+ .toolbar-button[data-v-cea02a58]:hover {
97
97
  background-color: #dbdbdb;
98
98
  }
99
- .toolbar-button:hover .toolbar-icon.high-contrast[data-v-303b3245] {
99
+ .toolbar-button:hover .toolbar-icon.high-contrast[data-v-cea02a58] {
100
100
  color: #fff;
101
101
  }
102
- .toolbar-button:hover.high-contrast[data-v-303b3245] {
102
+ .toolbar-button:hover.high-contrast[data-v-cea02a58] {
103
103
  background-color: #000;
104
104
  color: #fff;
105
105
  }
106
- .toolbar-button[data-v-303b3245]:active,
107
- .active[data-v-303b3245] {
106
+ .toolbar-button[data-v-cea02a58]:active,
107
+ .active[data-v-cea02a58] {
108
108
  background-color: #c8d0d8;
109
109
  }
110
- .button-label[data-v-303b3245] {
110
+ .button-label[data-v-cea02a58] {
111
111
  overflow: hidden;
112
112
  width: 100%;
113
113
  text-align: center;
@@ -117,37 +117,37 @@
117
117
  font-size: 15px;
118
118
  margin: 5px;
119
119
  }
120
- .toolbar-icon + .dropdown-caret[data-v-303b3245] {
120
+ .toolbar-icon + .dropdown-caret[data-v-cea02a58] {
121
121
  margin-left: 4px;
122
122
  }
123
- .left[data-v-303b3245],
124
- .right[data-v-303b3245] {
123
+ .left[data-v-cea02a58],
124
+ .right[data-v-cea02a58] {
125
125
  width: 50%;
126
126
  height: 100%;
127
127
  background-color: #dbdbdb;
128
128
  border-radius: 60%;
129
129
  }
130
- .has-inline-text-input[data-v-303b3245]:hover {
130
+ .has-inline-text-input[data-v-cea02a58]:hover {
131
131
  cursor: text;
132
132
  }
133
- .disabled[data-v-303b3245] {
133
+ .disabled[data-v-cea02a58] {
134
134
  cursor: default;
135
135
  }
136
- .disabled[data-v-303b3245]:hover {
136
+ .disabled[data-v-cea02a58]:hover {
137
137
  cursor: default;
138
138
  background-color: initial;
139
139
  }
140
- .disabled .toolbar-icon[data-v-303b3245],
141
- .disabled .caret[data-v-303b3245],
142
- .disabled .button-label[data-v-303b3245] {
140
+ .disabled .toolbar-icon[data-v-cea02a58],
141
+ .disabled .caret[data-v-cea02a58],
142
+ .disabled .button-label[data-v-cea02a58] {
143
143
  opacity: 0.35;
144
144
  }
145
- .caret[data-v-303b3245] {
145
+ .caret[data-v-cea02a58] {
146
146
  font-size: 1em;
147
147
  padding-left: 2px;
148
148
  padding-right: 2px;
149
149
  }
150
- .button-text-input[data-v-303b3245] {
150
+ .button-text-input[data-v-cea02a58] {
151
151
  color: #47484a;
152
152
  border-radius: 4px;
153
153
  text-align: center;
@@ -161,13 +161,13 @@
161
161
  border: 1px solid #d8dee5;
162
162
  box-sizing: border-box;
163
163
  }
164
- .button-text-input.high-contrast[data-v-303b3245] {
164
+ .button-text-input.high-contrast[data-v-cea02a58] {
165
165
  background-color: #fff;
166
166
  }
167
- .button-text-input[data-v-303b3245]::placeholder {
167
+ .button-text-input[data-v-cea02a58]::placeholder {
168
168
  color: #47484a;
169
169
  }
170
- .dropdown-caret[data-v-303b3245] {
170
+ .dropdown-caret[data-v-cea02a58] {
171
171
  display: inline-flex;
172
172
  align-items: center;
173
173
  justify-content: center;
@@ -177,16 +177,16 @@
177
177
  height: 10px;
178
178
  }
179
179
  @media (max-width: 1280px) {
180
- .toolbar-item--doc-mode .button-label[data-v-303b3245] {
180
+ .toolbar-item--doc-mode .button-label[data-v-cea02a58] {
181
181
  display: none;
182
182
  }
183
- .toolbar-item--doc-mode .toolbar-icon[data-v-303b3245] {
183
+ .toolbar-item--doc-mode .toolbar-icon[data-v-cea02a58] {
184
184
  margin-right: 5px;
185
185
  }
186
- .toolbar-item--linked-styles[data-v-303b3245] {
186
+ .toolbar-item--linked-styles[data-v-cea02a58] {
187
187
  width: auto !important;
188
188
  }
189
- .toolbar-item--linked-styles .button-label[data-v-303b3245] {
189
+ .toolbar-item--linked-styles .button-label[data-v-cea02a58] {
190
190
  display: none;
191
191
  }
192
192
  }
@@ -11,10 +11,10 @@ var __privateMethod = (obj, member, method) => (__accessCheck(obj, member, "acce
11
11
  var _SuperToolbar_instances, initToolbarGroups_fn, _interceptedCommands, makeToolbarItems_fn, initDefaultFonts_fn, updateHighlightColors_fn, deactivateAll_fn, updateToolbarHistory_fn, runCommandWithArgumentOnly_fn;
12
12
  import { ax as getDefaultExportFromCjs, V as v4, T as TextSelection$1, v as getMarkRange, aA as vClickOutside, H as findParentNode, aB as getActiveFormatting, at as isInTable, aC as readFromClipboard, aD as handleClipboardPaste, aE as getFileObject, aF as runPropertyTranslators, aG as translator, aH as translator$1, aI as translator$2, aJ as translator$3, aK as translator$4, aL as translator$5, aM as translator$6, aN as translator$7, aO as translator$8, aP as translator$9, aQ as translator$a, aR as translator$b, aS as translator$c, aT as translator$d, aU as translator$e, aV as translator$f, aW as translator$g, aX as translator$h, aY as translator$i, aZ as translator$j, a_ as translator$k, a$ as translator$l, b0 as translator$m, b1 as translator$n, b2 as translator$o, b3 as translator$p, b4 as translator$q, b5 as translator$r, b6 as translator$s, b7 as translator$t, b8 as translator$u, b9 as translator$v, ba as translator$w, bb as translator$x, bc as translator$y, bd as translator$z, be as translator$A, bf as translator$B, bg as translator$C, bh as translator$D, bi as translator$E, bj as translator$F, bk as translator$G, bl as translator$H, bm as translator$I, bn as translator$J, bo as translator$K, bp as translator$L, bq as translator$M, br as translator$N, bs as translator$O, bt as translator$P, bu as translator$Q, bv as translator$R, bw as translator$S, bx as translator$T, by as translator$U, bz as translator$V, bA as translator$W, bB as translator$X, bC as translator$Y, bD as translator$Z, bE as translator$_, bF as translator$$, bG as translator$10, bH as translator$11, bI as translator$12, a as Plugin } from "./chunks/converter-ClnqoStR.js";
13
13
  import { bJ, a5, i, a2 } from "./chunks/converter-ClnqoStR.js";
14
- import { _ as _export_sfc, u as useHighContrastMode, a as getQuickFormatList, b as generateLinkedStyleString, c as getFileOpener, d as checkAndProcessImage, r as replaceSelectionWithImagePlaceholder, e as uploadAndInsertImage, y as yUndoPluginKey, f as undoDepth, h as redoDepth, s as shouldBypassContextMenu, S as SlashMenuPluginKey, E as Editor, i as getStarterExtensions, P as Placeholder, j as getRichTextExtensions, M as Mark, k as Extension, A as Attribute, N as Node } from "./chunks/editor-Co2_vpme.js";
15
- import { n, C, o, T, l, p, m } from "./chunks/editor-Co2_vpme.js";
14
+ import { _ as _export_sfc, u as useHighContrastMode, a as getQuickFormatList, b as generateLinkedStyleString, c as getFileOpener, d as checkAndProcessImage, r as replaceSelectionWithImagePlaceholder, e as uploadAndInsertImage, y as yUndoPluginKey, f as undoDepth, h as redoDepth, s as shouldBypassContextMenu, S as SlashMenuPluginKey, E as Editor, i as getStarterExtensions, P as Placeholder, j as getRichTextExtensions, M as Mark, k as Extension, A as Attribute, N as Node } from "./chunks/editor-Cm1uP1iw.js";
15
+ import { n, C, o, T, l, p, m } from "./chunks/editor-Cm1uP1iw.js";
16
16
  import { ref, onMounted, createElementBlock, openBlock, normalizeClass, unref, Fragment, renderList, createElementVNode, withModifiers, toDisplayString, createCommentVNode, normalizeStyle, computed, watch, withDirectives, withKeys, vModelText, createTextVNode, createVNode, h, createApp, markRaw, nextTick, onBeforeUnmount, reactive, onUnmounted, renderSlot, shallowRef, createBlock, withCtx, resolveDynamicComponent, normalizeProps, guardReactiveProps } from "vue";
17
- import { t as toolbarIcons, s as sanitizeNumber, T as Toolbar, m as magicWandIcon, p as plusIconSvg, a as trashIconSvg, l as linkIconSvg, b as tableIconSvg, c as scissorsIconSvg, d as copyIconSvg, e as pasteIconSvg, f as borderNoneIconSvg, g as arrowsToDotIconSvg, h as arrowsLeftRightIconSvg, w as wrenchIconSvg, u as useMessage, N as NSkeleton } from "./chunks/toolbar-DSy-xZgn.js";
17
+ import { t as toolbarIcons, s as sanitizeNumber, T as Toolbar, m as magicWandIcon, p as plusIconSvg, a as trashIconSvg, l as linkIconSvg, b as tableIconSvg, c as scissorsIconSvg, d as copyIconSvg, e as pasteIconSvg, f as borderNoneIconSvg, g as arrowsToDotIconSvg, h as arrowsLeftRightIconSvg, w as wrenchIconSvg, u as useMessage, N as NSkeleton } from "./chunks/toolbar-CwSe0bzm.js";
18
18
  import AIWriter from "./ai-writer.es.js";
19
19
  import { D } from "./chunks/docx-zipper-DC28ucAi.js";
20
20
  import { createZip } from "./file-zipper.es.js";
@@ -1,6 +1,6 @@
1
1
  import "vue";
2
- import { T } from "./chunks/toolbar-DSy-xZgn.js";
3
- import "./chunks/editor-Co2_vpme.js";
2
+ import { T } from "./chunks/toolbar-CwSe0bzm.js";
3
+ import "./chunks/editor-Cm1uP1iw.js";
4
4
  export {
5
5
  T as default
6
6
  };
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- const superEditor_es = require("./chunks/super-editor.es-DjFmu9z4.cjs");
3
+ const superEditor_es = require("./chunks/super-editor.es-BKc8fudf.cjs");
4
4
  require("./chunks/vue-DKMj1I9B.cjs");
5
5
  exports.AIWriter = superEditor_es.AIWriter;
6
6
  exports.AnnotatorHelpers = superEditor_es.AnnotatorHelpers;
@@ -1,4 +1,4 @@
1
- import { A, a, _, C, D, E, b, S, c, d, e, f, g, T, h, i, j, k, l, m, n, o, p, r, q } from "./chunks/super-editor.es-BlwYYqj5.es.js";
1
+ import { A, a, _, C, D, E, b, S, c, d, e, f, g, T, h, i, j, k, l, m, n, o, p, r, q } from "./chunks/super-editor.es-SlMc-6Xl.es.js";
2
2
  import "./chunks/vue-ZWZLQtoU.es.js";
3
3
  export {
4
4
  A as AIWriter,
package/dist/superdoc.cjs CHANGED
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- const superEditor_es = require("./chunks/super-editor.es-DjFmu9z4.cjs");
4
- const superdoc = require("./chunks/index-D7Qk15SC.cjs");
3
+ const superEditor_es = require("./chunks/super-editor.es-BKc8fudf.cjs");
4
+ const superdoc = require("./chunks/index-CA5Ws4u_.cjs");
5
5
  require("./chunks/vue-DKMj1I9B.cjs");
6
6
  require("./chunks/jszip-B4LDL19y.cjs");
7
7
  const blankDocx = require("./chunks/blank-docx-CPqX9RF5.cjs");
@@ -1,5 +1,5 @@
1
- import { a, E, b, S, d, i, j, n, r, p, q } from "./chunks/super-editor.es-BlwYYqj5.es.js";
2
- import { D, H, P, S as S2, m, l } from "./chunks/index-CwYBNJbv.es.js";
1
+ import { a, E, b, S, d, i, j, n, r, p, q } from "./chunks/super-editor.es-SlMc-6Xl.es.js";
2
+ import { D, H, P, S as S2, m, l } from "./chunks/index-B6C_qqb7.es.js";
3
3
  import "./chunks/vue-ZWZLQtoU.es.js";
4
4
  import "./chunks/jszip-DAXEPCUv.es.js";
5
5
  import { B } from "./chunks/blank-docx-iwdyG9RH.es.js";
@@ -77877,6 +77877,7 @@ Please report this to https://github.com/markedjs/marked.`, e) {
77877
77877
  return actualBreak;
77878
77878
  }
77879
77879
  const onImageLoad = (editor) => {
77880
+ if (typeof requestAnimationFrame !== "function") return;
77880
77881
  requestAnimationFrame(() => {
77881
77882
  const newTr = editor.view.state.tr;
77882
77883
  newTr.setMeta("forceUpdatePagination", true);
@@ -79088,7 +79089,7 @@ Please report this to https://github.com/markedjs/marked.`, e) {
79088
79089
  };
79089
79090
  const handleInputSubmit = () => {
79090
79091
  const value = inlineTextInput.value;
79091
- const cleanValue = value.replace(/[^0-9]/g, "");
79092
+ const cleanValue = value.match(/^\d+(\.5)?$/) ? value : Math.floor(parseFloat(value)).toString();
79092
79093
  emit2("textSubmit", cleanValue);
79093
79094
  inlineTextInput.value = cleanValue;
79094
79095
  };
@@ -79170,7 +79171,7 @@ Please report this to https://github.com/markedjs/marked.`, e) {
79170
79171
  };
79171
79172
  }
79172
79173
  };
79173
- const ToolbarButton = /* @__PURE__ */ _export_sfc$1(_sfc_main$4$2, [["__scopeId", "data-v-303b3245"]]);
79174
+ const ToolbarButton = /* @__PURE__ */ _export_sfc$1(_sfc_main$4$2, [["__scopeId", "data-v-cea02a58"]]);
79174
79175
  const _hoisted_1$2$2 = {
79175
79176
  class: "toolbar-separator",
79176
79177
  role: "separator",