@harbour-enterprises/superdoc 0.23.0-next.7 → 0.23.0-next.8

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-Mh8HFZBp.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-CPu7VToO.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-CINrYeD9.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-fqIBzqak.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-COK5ynTl.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-CqRCWGPC.cjs")));
17421
17421
  const superdocStore = useSuperdocStore();
17422
17422
  const commentsStore = useCommentsStore();
17423
17423
  const {
@@ -71373,7 +71373,7 @@ const _sfc_main$4$1 = {
71373
71373
  };
71374
71374
  const handleInputSubmit = () => {
71375
71375
  const value = inlineTextInput.value;
71376
- const cleanValue = value.replace(/[^0-9]/g, "");
71376
+ const cleanValue = value.match(/^\d+(\.5)?$/) ? value : Math.floor(parseFloat(value)).toString();
71377
71377
  emit("textSubmit", cleanValue);
71378
71378
  inlineTextInput.value = cleanValue;
71379
71379
  };
@@ -71455,7 +71455,7 @@ const _sfc_main$4$1 = {
71455
71455
  };
71456
71456
  }
71457
71457
  };
71458
- const ToolbarButton = /* @__PURE__ */ _export_sfc(_sfc_main$4$1, [["__scopeId", "data-v-303b3245"]]);
71458
+ const ToolbarButton = /* @__PURE__ */ _export_sfc(_sfc_main$4$1, [["__scopeId", "data-v-cea02a58"]]);
71459
71459
  const _hoisted_1$2$1 = {
71460
71460
  class: "toolbar-separator",
71461
71461
  role: "separator",
@@ -71390,7 +71390,7 @@ const _sfc_main$4$1 = {
71390
71390
  };
71391
71391
  const handleInputSubmit = () => {
71392
71392
  const value = inlineTextInput.value;
71393
- const cleanValue = value.replace(/[^0-9]/g, "");
71393
+ const cleanValue = value.match(/^\d+(\.5)?$/) ? value : Math.floor(parseFloat(value)).toString();
71394
71394
  emit("textSubmit", cleanValue);
71395
71395
  inlineTextInput.value = cleanValue;
71396
71396
  };
@@ -71472,7 +71472,7 @@ const _sfc_main$4$1 = {
71472
71472
  };
71473
71473
  }
71474
71474
  };
71475
- const ToolbarButton = /* @__PURE__ */ _export_sfc(_sfc_main$4$1, [["__scopeId", "data-v-303b3245"]]);
71475
+ const ToolbarButton = /* @__PURE__ */ _export_sfc(_sfc_main$4$1, [["__scopeId", "data-v-cea02a58"]]);
71476
71476
  const _hoisted_1$2$1 = {
71477
71477
  class: "toolbar-separator",
71478
71478
  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
  }
@@ -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",
@@ -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
  }
@@ -14,7 +14,7 @@ import { bJ, a5, i, a2 } from "./chunks/converter-ClnqoStR.js";
14
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
15
  import { n, C, o, T, l, p, m } from "./chunks/editor-Co2_vpme.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-Bevq4gO1.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,5 +1,5 @@
1
1
  import "vue";
2
- import { T } from "./chunks/toolbar-DSy-xZgn.js";
2
+ import { T } from "./chunks/toolbar-Bevq4gO1.js";
3
3
  import "./chunks/editor-Co2_vpme.js";
4
4
  export {
5
5
  T as default
@@ -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-COK5ynTl.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-CINrYeD9.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-COK5ynTl.cjs");
4
+ const superdoc = require("./chunks/index-Mh8HFZBp.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-CINrYeD9.es.js";
2
+ import { D, H, P, S as S2, m, l } from "./chunks/index-CPu7VToO.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";
@@ -79088,7 +79088,7 @@ Please report this to https://github.com/markedjs/marked.`, e) {
79088
79088
  };
79089
79089
  const handleInputSubmit = () => {
79090
79090
  const value = inlineTextInput.value;
79091
- const cleanValue = value.replace(/[^0-9]/g, "");
79091
+ const cleanValue = value.match(/^\d+(\.5)?$/) ? value : Math.floor(parseFloat(value)).toString();
79092
79092
  emit2("textSubmit", cleanValue);
79093
79093
  inlineTextInput.value = cleanValue;
79094
79094
  };
@@ -79170,7 +79170,7 @@ Please report this to https://github.com/markedjs/marked.`, e) {
79170
79170
  };
79171
79171
  }
79172
79172
  };
79173
- const ToolbarButton = /* @__PURE__ */ _export_sfc$1(_sfc_main$4$2, [["__scopeId", "data-v-303b3245"]]);
79173
+ const ToolbarButton = /* @__PURE__ */ _export_sfc$1(_sfc_main$4$2, [["__scopeId", "data-v-cea02a58"]]);
79174
79174
  const _hoisted_1$2$2 = {
79175
79175
  class: "toolbar-separator",
79176
79176
  role: "separator",