@harbour-enterprises/superdoc 0.23.0-next.1 → 0.23.0-next.11

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 (54) hide show
  1. package/dist/chunks/{PdfViewer-C9SGNZr6.cjs → PdfViewer-CxsRHFKK.cjs} +2 -2
  2. package/dist/chunks/{PdfViewer-D9atA783.es.js → PdfViewer-itEb8CY_.es.js} +2 -2
  3. package/dist/chunks/{eventemitter3-CZv6vEhA.es.js → eventemitter3-CR2eBWft.es.js} +1 -1
  4. package/dist/chunks/{eventemitter3-B_kO1Pxm.cjs → eventemitter3-DSRogsNq.cjs} +1 -1
  5. package/dist/chunks/{index-C8q6lenv.es.js → index-CTFsQkQh.es.js} +75 -28
  6. package/dist/chunks/{index-CIbe1VMu.cjs → index-DO0hDjEd.cjs} +75 -28
  7. package/dist/chunks/{jszip-b7l8QkfH.cjs → jszip-B4LDL19y.cjs} +1 -1
  8. package/dist/chunks/{jszip-B8KIZSNe.es.js → jszip-DAXEPCUv.es.js} +1 -1
  9. package/dist/chunks/{super-editor.es-DxScE0ep.cjs → super-editor.es-Ck_zDasU.cjs} +259 -86
  10. package/dist/chunks/{super-editor.es-Dj6Sxtr7.es.js → super-editor.es-D2K5zQwY.es.js} +259 -86
  11. package/dist/chunks/{vue-DWle4Cai.cjs → vue-DKMj1I9B.cjs} +39 -42
  12. package/dist/chunks/{vue-CXxsqYcP.es.js → vue-ZWZLQtoU.es.js} +39 -42
  13. package/dist/chunks/xml-js-Bbc0NeKa.es.js +2 -0
  14. package/dist/chunks/xml-js-CWV8R-ek.cjs +3 -0
  15. package/dist/core/SuperDoc.d.ts +5 -18
  16. package/dist/core/SuperDoc.d.ts.map +1 -1
  17. package/dist/core/types/index.d.ts +29 -1
  18. package/dist/core/types/index.d.ts.map +1 -1
  19. package/dist/stores/comments-store.d.ts +3 -3
  20. package/dist/stores/comments-store.d.ts.map +1 -1
  21. package/dist/stores/superdoc-store.d.ts.map +1 -1
  22. package/dist/style.css +73 -54
  23. package/dist/super-editor/ai-writer.es.js +2 -2
  24. package/dist/super-editor/chunks/{converter-C08GQjNi.js → converter-ClnqoStR.js} +18 -19
  25. package/dist/super-editor/chunks/{docx-zipper-C3-uf2tI.js → docx-zipper-DC28ucAi.js} +1 -1
  26. package/dist/super-editor/chunks/{editor-C2IwVkIp.js → editor-C3VH8Ia2.js} +240 -66
  27. package/dist/super-editor/chunks/{toolbar-De8G_9NV.js → toolbar-BG1F_1RK.js} +4 -4
  28. package/dist/super-editor/converter.es.js +1 -1
  29. package/dist/super-editor/docx-zipper.es.js +2 -2
  30. package/dist/super-editor/editor.es.js +3 -3
  31. package/dist/super-editor/file-zipper.es.js +1 -1
  32. package/dist/super-editor/src/core/Attribute.d.ts +2 -2
  33. package/dist/super-editor/src/core/Schema.d.ts +2 -2
  34. package/dist/super-editor/src/extensions/comment/comments-plugin.d.ts +60 -0
  35. package/dist/super-editor/src/extensions/comment/helpers/index.d.ts +2 -0
  36. package/dist/super-editor/src/extensions/comment/helpers/normalize-comment-event-payload.d.ts +1 -0
  37. package/dist/super-editor/src/extensions/comment/helpers/update-position.d.ts +7 -0
  38. package/dist/super-editor/src/extensions/image/imageHelpers/handleBase64.d.ts +4 -0
  39. package/dist/super-editor/src/extensions/image/imageHelpers/imageRegistrationPlugin.d.ts +1 -0
  40. package/dist/super-editor/src/extensions/image/imageHelpers/startImageUpload.d.ts +5 -0
  41. package/dist/super-editor/src/extensions/structured-content/structuredContentHelpers/getStructuredContentTagsByAlias.d.ts +8 -0
  42. package/dist/super-editor/src/extensions/structured-content/structuredContentHelpers/index.d.ts +1 -0
  43. package/dist/super-editor/style.css +46 -27
  44. package/dist/super-editor/super-editor.es.js +6 -6
  45. package/dist/super-editor/toolbar.es.js +2 -2
  46. package/dist/super-editor.cjs +2 -2
  47. package/dist/super-editor.es.js +2 -2
  48. package/dist/superdoc.cjs +4 -4
  49. package/dist/superdoc.es.js +4 -4
  50. package/dist/superdoc.umd.js +362 -142
  51. package/dist/superdoc.umd.js.map +1 -1
  52. package/package.json +1 -1
  53. package/dist/chunks/xml-js-CX8FH0He.cjs +0 -3
  54. package/dist/chunks/xml-js-D0tLGmKu.es.js +0 -2
@@ -2,3 +2,4 @@ export * from "./getStructuredContentTags";
2
2
  export * from "./getStructuredContentInlineTags";
3
3
  export * from "./getStructuredContentBlockTags";
4
4
  export * from "./getStructuredContentTagsById";
5
+ export * from "./getStructuredContentTagsByAlias";
@@ -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
  }
@@ -1123,6 +1123,13 @@ on the right if it is inside shape textbox.
1123
1123
  white-space: nowrap;
1124
1124
  text-overflow: ellipsis;
1125
1125
  }
1126
+ .ProseMirror.view-mode .sd-document-section-block {
1127
+ background: none;
1128
+ border: none;
1129
+ }
1130
+ .ProseMirror.view-mode .sd-document-section-block-info {
1131
+ display: none;
1132
+ }
1126
1133
  .sd-structured-content,
1127
1134
  .sd-structured-content-block {
1128
1135
  padding: 1px;
@@ -1131,6 +1138,10 @@ on the right if it is inside shape textbox.
1131
1138
  border: 1px solid #629be7;
1132
1139
  position: relative;
1133
1140
  }
1141
+ .sd-structured-content:has(img),
1142
+ .sd-structured-content:has(img) .sd-structured-content__content {
1143
+ display: inline-block;
1144
+ }
1134
1145
  .sd-structured-content-draggable {
1135
1146
  font-size: 10px;
1136
1147
  align-items: center;
@@ -1162,6 +1173,14 @@ on the right if it is inside shape textbox.
1162
1173
  .sd-structured-content-block:hover .sd-structured-content-draggable {
1163
1174
  display: inline-flex;
1164
1175
  }
1176
+ .ProseMirror.view-mode .sd-structured-content,
1177
+ .ProseMirror.view-mode .sd-structured-content-block {
1178
+ padding: 0;
1179
+ border: none;
1180
+ }
1181
+ .ProseMirror.view-mode .sd-structured-content-draggable {
1182
+ display: none;
1183
+ }
1165
1184
 
1166
1185
  .alignment-buttons[data-v-d84f57b6] {
1167
1186
  display: flex;
@@ -9,14 +9,14 @@ var __privateGet = (obj, member, getter) => (__accessCheck(obj, member, "read fr
9
9
  var __privateAdd = (obj, member, value) => member.has(obj) ? __typeError("Cannot add the same private member more than once") : member instanceof WeakSet ? member.add(obj) : member.set(obj, value);
10
10
  var __privateMethod = (obj, member, method) => (__accessCheck(obj, member, "access private method"), method);
11
11
  var _SuperToolbar_instances, initToolbarGroups_fn, _interceptedCommands, makeToolbarItems_fn, initDefaultFonts_fn, updateHighlightColors_fn, deactivateAll_fn, updateToolbarHistory_fn, runCommandWithArgumentOnly_fn;
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-C08GQjNi.js";
13
- import { bJ, a5, i, a2 } from "./chunks/converter-C08GQjNi.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-C2IwVkIp.js";
15
- import { n, C, o, T, l, p, m } from "./chunks/editor-C2IwVkIp.js";
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
+ 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-C3VH8Ia2.js";
15
+ import { n, C, o, T, l, p, m } from "./chunks/editor-C3VH8Ia2.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-De8G_9NV.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-BG1F_1RK.js";
18
18
  import AIWriter from "./ai-writer.es.js";
19
- import { D } from "./chunks/docx-zipper-C3-uf2tI.js";
19
+ import { D } from "./chunks/docx-zipper-DC28ucAi.js";
20
20
  import { createZip } from "./file-zipper.es.js";
21
21
  var eventemitter3 = { exports: {} };
22
22
  var hasRequiredEventemitter3;
@@ -1,6 +1,6 @@
1
1
  import "vue";
2
- import { T } from "./chunks/toolbar-De8G_9NV.js";
3
- import "./chunks/editor-C2IwVkIp.js";
2
+ import { T } from "./chunks/toolbar-BG1F_1RK.js";
3
+ import "./chunks/editor-C3VH8Ia2.js";
4
4
  export {
5
5
  T as default
6
6
  };
@@ -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-DxScE0ep.cjs");
4
- require("./chunks/vue-DWle4Cai.cjs");
3
+ const superEditor_es = require("./chunks/super-editor.es-Ck_zDasU.cjs");
4
+ require("./chunks/vue-DKMj1I9B.cjs");
5
5
  exports.AIWriter = superEditor_es.AIWriter;
6
6
  exports.AnnotatorHelpers = superEditor_es.AnnotatorHelpers;
7
7
  exports.BasicUpload = superEditor_es._sfc_main;
@@ -1,5 +1,5 @@
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-Dj6Sxtr7.es.js";
2
- import "./chunks/vue-CXxsqYcP.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-D2K5zQwY.es.js";
2
+ import "./chunks/vue-ZWZLQtoU.es.js";
3
3
  export {
4
4
  A as AIWriter,
5
5
  a as AnnotatorHelpers,
package/dist/superdoc.cjs CHANGED
@@ -1,9 +1,9 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- const superEditor_es = require("./chunks/super-editor.es-DxScE0ep.cjs");
4
- const superdoc = require("./chunks/index-CIbe1VMu.cjs");
5
- require("./chunks/vue-DWle4Cai.cjs");
6
- require("./chunks/jszip-b7l8QkfH.cjs");
3
+ const superEditor_es = require("./chunks/super-editor.es-Ck_zDasU.cjs");
4
+ const superdoc = require("./chunks/index-DO0hDjEd.cjs");
5
+ require("./chunks/vue-DKMj1I9B.cjs");
6
+ require("./chunks/jszip-B4LDL19y.cjs");
7
7
  const blankDocx = require("./chunks/blank-docx-CPqX9RF5.cjs");
8
8
  exports.AnnotatorHelpers = superEditor_es.AnnotatorHelpers;
9
9
  exports.Editor = superEditor_es.Editor;
@@ -1,7 +1,7 @@
1
- import { a, E, b, S, d, i, j, n, r, p, q } from "./chunks/super-editor.es-Dj6Sxtr7.es.js";
2
- import { D, H, P, S as S2, m, l } from "./chunks/index-C8q6lenv.es.js";
3
- import "./chunks/vue-CXxsqYcP.es.js";
4
- import "./chunks/jszip-B8KIZSNe.es.js";
1
+ import { a, E, b, S, d, i, j, n, r, p, q } from "./chunks/super-editor.es-D2K5zQwY.es.js";
2
+ import { D, H, P, S as S2, m, l } from "./chunks/index-CTFsQkQh.es.js";
3
+ import "./chunks/vue-ZWZLQtoU.es.js";
4
+ import "./chunks/jszip-DAXEPCUv.es.js";
5
5
  import { B } from "./chunks/blank-docx-iwdyG9RH.es.js";
6
6
  export {
7
7
  a as AnnotatorHelpers,