@harbour-enterprises/superdoc 0.6.6 → 0.6.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.
Files changed (34) hide show
  1. package/dist/chunks/{super-editor.es-BL0SUzqA.js → super-editor.es-C2Mpe7zw.js} +371 -223
  2. package/dist/chunks/{super-editor.es-BL0SUzqA.js.map → super-editor.es-C2Mpe7zw.js.map} +1 -1
  3. package/dist/style.css +63 -52
  4. package/dist/super-editor/chunks/{converter-Db6kOZVK.js → converter-D38BagOs.js} +54 -7
  5. package/dist/super-editor/chunks/{converter-Db6kOZVK.js.map → converter-D38BagOs.js.map} +1 -1
  6. package/dist/super-editor/chunks/{docx-zipper-CU9-L2k_.js → docx-zipper-OU0T3wnQ.js} +2 -2
  7. package/dist/super-editor/chunks/{docx-zipper-CU9-L2k_.js.map → docx-zipper-OU0T3wnQ.js.map} +1 -1
  8. package/dist/super-editor/chunks/{editor-DDFPZgN6.js → editor-DFibABN8.js} +5 -5
  9. package/dist/super-editor/chunks/{editor-DDFPZgN6.js.map → editor-DFibABN8.js.map} +1 -1
  10. package/dist/super-editor/chunks/{toolbar-B1D1-QVR.js → toolbar-D5mDT387.js} +12 -6
  11. package/dist/super-editor/chunks/toolbar-D5mDT387.js.map +1 -0
  12. package/dist/super-editor/components/toolbar/color-dropdown-helpers.d.ts +15 -0
  13. package/dist/super-editor/components/toolbar/color-dropdown-helpers.d.ts.map +1 -0
  14. package/dist/super-editor/components/toolbar/defaultItems.d.ts.map +1 -1
  15. package/dist/super-editor/components/toolbar/super-toolbar.d.ts +1 -0
  16. package/dist/super-editor/components/toolbar/super-toolbar.d.ts.map +1 -1
  17. package/dist/super-editor/components/toolbar/toolbarIcons.d.ts +1 -0
  18. package/dist/super-editor/converter.es.js +1 -1
  19. package/dist/super-editor/core/super-converter/SuperConverter.d.ts +1 -0
  20. package/dist/super-editor/core/super-converter/SuperConverter.d.ts.map +1 -1
  21. package/dist/super-editor/core/super-converter/exporter.d.ts.map +1 -1
  22. package/dist/super-editor/core/super-converter/helpers.d.ts +2 -0
  23. package/dist/super-editor/core/super-converter/helpers.d.ts.map +1 -1
  24. package/dist/super-editor/docx-zipper.es.js +2 -2
  25. package/dist/super-editor/editor.es.js +3 -3
  26. package/dist/super-editor/file-zipper.es.js +1 -1
  27. package/dist/super-editor/style.css +63 -52
  28. package/dist/super-editor/super-editor.es.js +303 -208
  29. package/dist/super-editor/super-editor.es.js.map +1 -1
  30. package/dist/super-editor/toolbar.es.js +2 -2
  31. package/dist/super-editor.es.js +1 -1
  32. package/dist/superdoc.es.js +3 -3
  33. package/package.json +1 -1
  34. package/dist/super-editor/chunks/toolbar-B1D1-QVR.js.map +0 -1
@@ -1,6 +1,6 @@
1
1
  import { computed, createElementBlock, openBlock, createElementVNode, createCommentVNode, normalizeClass, normalizeStyle, ref, unref, createBlock, toDisplayString, withDirectives, withKeys, withModifiers, vModelText, getCurrentInstance, createVNode, readonly, watch, onMounted, onBeforeUnmount, reactive, onBeforeMount, inject, onActivated, onDeactivated, createTextVNode, Fragment, Comment, defineComponent, provide, h, Teleport, toRef, nextTick, renderSlot, isVNode, shallowRef, watchEffect, mergeProps, Transition, vShow, cloneVNode, Text, renderList, withCtx } from "vue";
2
- import { p as process$1 } from "./converter-Db6kOZVK.js";
3
- import { _ as _export_sfc, g as global$1 } from "./editor-DDFPZgN6.js";
2
+ import { p as process$1 } from "./converter-D38BagOs.js";
3
+ import { _ as _export_sfc, g as global$1 } from "./editor-DFibABN8.js";
4
4
  const sanitizeNumber = (value, defaultNumber) => {
5
5
  let sanitized = value.replace(/[^0-9.]/g, "");
6
6
  sanitized = parseFloat(sanitized);
@@ -79,6 +79,7 @@ const caretUpIconSvg = '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 320
79
79
  const caretDownIconSvg = '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 320 512"><!--!Font Awesome Free 6.7.2 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2025 Fonticons, Inc.--><path d="M137.4 374.6c12.5 12.5 32.8 12.5 45.3 0l128-128c9.2-9.2 11.9-22.9 6.9-34.9s-16.6-19.8-29.6-19.8L32 192c-12.9 0-24.6 7.8-29.6 19.8s-2.2 25.7 6.9 34.9l128 128z"/></svg>';
80
80
  const rulerSvg = '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><!--!Font Awesome Free 6.7.2 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2025 Fonticons, Inc.--><path d="M177.9 494.1c-18.7 18.7-49.1 18.7-67.9 0L17.9 401.9c-18.7-18.7-18.7-49.1 0-67.9l50.7-50.7 48 48c6.2 6.2 16.4 6.2 22.6 0s6.2-16.4 0-22.6l-48-48 41.4-41.4 48 48c6.2 6.2 16.4 6.2 22.6 0s6.2-16.4 0-22.6l-48-48 41.4-41.4 48 48c6.2 6.2 16.4 6.2 22.6 0s6.2-16.4 0-22.6l-48-48 41.4-41.4 48 48c6.2 6.2 16.4 6.2 22.6 0s6.2-16.4 0-22.6l-48-48 50.7-50.7c18.7-18.7 49.1-18.7 67.9 0l92.1 92.1c18.7 18.7 18.7 49.1 0 67.9L177.9 494.1z"/></svg>';
81
81
  const paintbrushSvg = '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 576 512"><!--!Font Awesome Free 6.7.2 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2025 Fonticons, Inc.--><path d="M339.3 367.1c27.3-3.9 51.9-19.4 67.2-42.9L568.2 74.1c12.6-19.5 9.4-45.3-7.6-61.2S517.7-4.4 499.1 9.6L262.4 187.2c-24 18-38.2 46.1-38.4 76.1L339.3 367.1zm-19.6 25.4l-116-104.4C143.9 290.3 96 339.6 96 400c0 3.9 .2 7.8 .6 11.6C98.4 429.1 86.4 448 68.8 448L64 448c-17.7 0-32 14.3-32 32s14.3 32 32 32l144 0c61.9 0 112-50.1 112-112c0-2.5-.1-5-.2-7.5z"/></svg>';
82
+ const highlighterIcon = '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 576 512"><!--!Font Awesome Free 6.7.2 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2025 Fonticons, Inc.--><path d="M315 315l158.4-215L444.1 70.6 229 229 315 315zm-187 5s0 0 0 0l0-71.7c0-15.3 7.2-29.6 19.5-38.6L420.6 8.4C428 2.9 437 0 446.2 0c11.4 0 22.4 4.5 30.5 12.6l54.8 54.8c8.1 8.1 12.6 19 12.6 30.5c0 9.2-2.9 18.2-8.4 25.6L334.4 396.5c-9 12.3-23.4 19.5-38.6 19.5L224 416l-25.4 25.4c-12.5 12.5-32.8 12.5-45.3 0l-50.7-50.7c-12.5-12.5-12.5-32.8 0-45.3L128 320zM7 466.3l63-63 70.6 70.6-31 31c-4.5 4.5-10.6 7-17 7L24 512c-13.3 0-24-10.7-24-24l0-4.7c0-6.4 2.5-12.5 7-17z"/></svg>\n';
82
83
  const toolbarIcons = {
83
84
  undo: rotateLeftIconSvg,
84
85
  redo: rotateRightIconSvg,
@@ -117,7 +118,8 @@ const toolbarIcons = {
117
118
  dropdownCaretUp: caretUpIconSvg,
118
119
  dropdownCaretDown: caretDownIconSvg,
119
120
  ruler: rulerSvg,
120
- paintbrush: paintbrushSvg
121
+ paintbrush: paintbrushSvg,
122
+ highlight: highlighterIcon
121
123
  };
122
124
  const _hoisted_1$4 = { class: "toolbar-icon" };
123
125
  const _hoisted_2$3 = ["innerHTML"];
@@ -141,6 +143,10 @@ const _sfc_main$5 = {
141
143
  const props = __props;
142
144
  const getBarColor = computed(() => {
143
145
  if (props.name === "color") return { backgroundColor: props.color || "#111111" };
146
+ if (props.name === "highlight") return { backgroundColor: props.color || "transparent" };
147
+ });
148
+ const hasColorBar = computed(() => {
149
+ return ["color", "highlight"].includes(props.name);
144
150
  });
145
151
  return (_ctx, _cache) => {
146
152
  return openBlock(), createElementBlock("div", _hoisted_1$4, [
@@ -148,7 +154,7 @@ const _sfc_main$5 = {
148
154
  class: normalizeClass(["toolbar-icon__icon", [`toolbar-icon__icon--${props.name}`]]),
149
155
  innerHTML: __props.icon
150
156
  }, null, 10, _hoisted_2$3),
151
- props.name === "color" ? (openBlock(), createElementBlock("div", {
157
+ hasColorBar.value ? (openBlock(), createElementBlock("div", {
152
158
  key: 0,
153
159
  class: "color-bar",
154
160
  style: normalizeStyle(getBarColor.value)
@@ -157,7 +163,7 @@ const _sfc_main$5 = {
157
163
  };
158
164
  }
159
165
  };
160
- const ToolbarButtonIcon = /* @__PURE__ */ _export_sfc(_sfc_main$5, [["__scopeId", "data-v-16bc31dc"]]);
166
+ const ToolbarButtonIcon = /* @__PURE__ */ _export_sfc(_sfc_main$5, [["__scopeId", "data-v-fff4aa3f"]]);
161
167
  const _hoisted_1$3 = {
162
168
  key: 1,
163
169
  class: "button-label"
@@ -9892,4 +9898,4 @@ export {
9892
9898
  sanitizeNumber as s,
9893
9899
  toolbarIcons as t
9894
9900
  };
9895
- //# sourceMappingURL=toolbar-B1D1-QVR.js.map
9901
+ //# sourceMappingURL=toolbar-D5mDT387.js.map