@harbour-enterprises/superdoc 0.6.70 → 0.6.71

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 (23) hide show
  1. package/dist/chunks/{super-editor.es-DVRz39XI.js → super-editor.es-BUMY9Cd4.js} +10 -7
  2. package/dist/chunks/{super-editor.es-DVRz39XI.js.map → super-editor.es-BUMY9Cd4.js.map} +1 -1
  3. package/dist/super-editor/chunks/{converter-I8JdE7HU.js → converter-1QXEw9Qk.js} +3 -3
  4. package/dist/super-editor/chunks/{converter-I8JdE7HU.js.map → converter-1QXEw9Qk.js.map} +1 -1
  5. package/dist/super-editor/chunks/{docx-zipper-DC37EYJa.js → docx-zipper-C6o6HqN9.js} +2 -2
  6. package/dist/super-editor/chunks/{docx-zipper-DC37EYJa.js.map → docx-zipper-C6o6HqN9.js.map} +1 -1
  7. package/dist/super-editor/chunks/{editor-BCumoYP9.js → editor-Cm36OuLj.js} +4 -4
  8. package/dist/super-editor/chunks/{editor-BCumoYP9.js.map → editor-Cm36OuLj.js.map} +1 -1
  9. package/dist/super-editor/chunks/{toolbar-BwhXPgCT.js → toolbar-CWA2GsMH.js} +3 -3
  10. package/dist/super-editor/chunks/{toolbar-BwhXPgCT.js.map → toolbar-CWA2GsMH.js.map} +1 -1
  11. package/dist/super-editor/components/toolbar/defaultItems.d.ts.map +1 -1
  12. package/dist/super-editor/converter.es.js +1 -1
  13. package/dist/super-editor/docx-zipper.es.js +2 -2
  14. package/dist/super-editor/editor.es.js +3 -3
  15. package/dist/super-editor/file-zipper.es.js +1 -1
  16. package/dist/super-editor/super-editor.es.js +12 -9
  17. package/dist/super-editor/super-editor.es.js.map +1 -1
  18. package/dist/super-editor/toolbar.es.js +2 -2
  19. package/dist/super-editor.es.js +1 -1
  20. package/dist/superdoc.es.js +3 -3
  21. package/dist/superdoc.umd.js +10 -7
  22. package/dist/superdoc.umd.js.map +1 -1
  23. package/package.json +1 -1
@@ -1,6 +1,6 @@
1
1
  import "vue";
2
- import { T } from "./chunks/toolbar-BwhXPgCT.js";
3
- import "./chunks/editor-BCumoYP9.js";
2
+ import { T } from "./chunks/toolbar-CWA2GsMH.js";
3
+ import "./chunks/editor-Cm36OuLj.js";
4
4
  export {
5
5
  T as default
6
6
  };
@@ -1,4 +1,4 @@
1
- import { _, D, E, S, a, b, c, T, d, i, g, e, f, h, j, k, l } from "./chunks/super-editor.es-DVRz39XI.js";
1
+ import { _, D, E, S, a, b, c, T, d, i, g, e, f, h, j, k, l } from "./chunks/super-editor.es-BUMY9Cd4.js";
2
2
  import "./chunks/vue-Qp4giGIA.js";
3
3
  export {
4
4
  _ as BasicUpload,
@@ -1,5 +1,5 @@
1
- import { E as Editor, h as getRichTextExtensions, b as SuperInput, a as SuperEditor, c as SuperToolbar, d as createZip } from "./chunks/super-editor.es-DVRz39XI.js";
2
- import { S, i, k, l } from "./chunks/super-editor.es-DVRz39XI.js";
1
+ import { E as Editor, h as getRichTextExtensions, b as SuperInput, a as SuperEditor, c as SuperToolbar, d as createZip } from "./chunks/super-editor.es-BUMY9Cd4.js";
2
+ import { S, i, k, l } from "./chunks/super-editor.es-BUMY9Cd4.js";
3
3
  import { Y as effectScope, r as ref, Z as markRaw, p as process$1, _ as toRaw, a as computed, $ as isRef, a0 as isReactive, B as toRef, i as inject, m as getCurrentInstance, k as watch, v as unref, a1 as hasInjectionContext, L as reactive, R as nextTick, a2 as getCurrentScope, a3 as onScopeDispose, a4 as toRefs, g as global$1, N as shallowRef, M as readonly, h as onMounted, j as onBeforeUnmount, f as onBeforeMount, U as onActivated, q as onDeactivated, y as createTextVNode, F as Fragment, Q as Comment, l as defineComponent, C as provide, G as withDirectives, A as h, V as Teleport, S as renderSlot, W as isVNode, K as watchEffect, O as Transition, D as mergeProps, P as vShow, J as cloneVNode, T as Text, b as createElementBlock, o as openBlock, t as toDisplayString, u as createVNode, x as withCtx, E as createBaseVNode, z as normalizeStyle, e as createCommentVNode, s as createBlock, w as withModifiers, n as normalizeClass, a5 as resolveDirective, d as renderList, c as createApp, a6 as resolveDynamicComponent } from "./chunks/vue-Qp4giGIA.js";
4
4
  import { B as Buffer$2 } from "./chunks/jszip-D8MFZeXK.js";
5
5
  import { b } from "./chunks/blank-docx-BagxM198.js";
@@ -45753,7 +45753,7 @@ class SuperDoc extends EventEmitter {
45753
45753
  this.config.colors = shuffleArray(this.config.colors);
45754
45754
  this.userColorMap = /* @__PURE__ */ new Map();
45755
45755
  this.colorIndex = 0;
45756
- this.version = "0.6.70";
45756
+ this.version = "0.6.71";
45757
45757
  console.debug("🦋 [superdoc] Using SuperDoc version:", this.version);
45758
45758
  this.superdocId = config.superdocId || v4();
45759
45759
  this.colors = this.config.colors;
@@ -27937,7 +27937,7 @@
27937
27937
  return;
27938
27938
  }
27939
27939
  }
27940
- static updateDocumentVersion(docx = this.convertedXml, version2 = "0.6.70") {
27940
+ static updateDocumentVersion(docx = this.convertedXml, version2 = "0.6.71") {
27941
27941
  const customLocation = "docProps/custom.xml";
27942
27942
  if (!docx[customLocation]) {
27943
27943
  docx[customLocation] = generateCustomXml();
@@ -28195,7 +28195,7 @@
28195
28195
  function generateCustomXml() {
28196
28196
  return DEFAULT_CUSTOM_XML;
28197
28197
  }
28198
- function generateSuperdocVersion(pid = 2, version2 = "0.6.70") {
28198
+ function generateSuperdocVersion(pid = 2, version2 = "0.6.71") {
28199
28199
  return {
28200
28200
  type: "element",
28201
28201
  name: "property",
@@ -42229,7 +42229,7 @@
42229
42229
  * @returns {Y.Doc | undefined} Updated Y.Doc if any, otherwise undefined
42230
42230
  */
42231
42231
  processCollaborationMigrations() {
42232
- console.debug("[checkVersionMigrations] Current editor version", "0.6.70");
42232
+ console.debug("[checkVersionMigrations] Current editor version", "0.6.71");
42233
42233
  if (!this.options.ydoc) return;
42234
42234
  const metaMap = this.options.ydoc.getMap("meta");
42235
42235
  let docVersion = metaMap.get("version");
@@ -64415,11 +64415,13 @@ ${style2}
64415
64415
  });
64416
64416
  const getDocumentOptionsAfterRole = (role2, documentOptions2) => {
64417
64417
  if (role2 === "editor") return documentOptions2;
64418
- else if (role2 === "viewer") return documentOptions2.filter((option) => option.value === "viewing");
64418
+ else if (role2 === "suggester") return documentOptions2.filter((option) => option.value === "suggesting");
64419
+ else return documentOptions2.filter((option) => option.value === "viewing");
64419
64420
  };
64420
64421
  const getDefaultLabel = (role2) => {
64421
64422
  if (role2 === "editor") return "Editing";
64422
- if (role2 === "viewer") return "Viewing";
64423
+ else if (role2 === "suggester") return "Suggesting";
64424
+ else return "Viewing";
64423
64425
  };
64424
64426
  const documentMode = useToolbarItem({
64425
64427
  type: "dropdown",
@@ -64429,12 +64431,13 @@ ${style2}
64429
64431
  icon: toolbarIcons2.documentMode,
64430
64432
  defaultLabel: getDefaultLabel(role),
64431
64433
  label: getDefaultLabel(role),
64432
- hasCaret: true,
64434
+ hasCaret: role === "editor",
64433
64435
  isWide: true,
64434
64436
  style: { display: "flex", justifyContent: "flex-end" },
64435
64437
  inlineTextInputVisible: false,
64436
64438
  hasInlineTextInput: false,
64437
64439
  group: "right",
64440
+ disabled: role !== "editor",
64438
64441
  attributes: {
64439
64442
  dropdownPosition: "right",
64440
64443
  className: "toolbar-item--doc-mode"
@@ -110427,7 +110430,7 @@ ${style2}
110427
110430
  this.config.colors = shuffleArray(this.config.colors);
110428
110431
  this.userColorMap = /* @__PURE__ */ new Map();
110429
110432
  this.colorIndex = 0;
110430
- this.version = "0.6.70";
110433
+ this.version = "0.6.71";
110431
110434
  console.debug("🦋 [superdoc] Using SuperDoc version:", this.version);
110432
110435
  this.superdocId = config.superdocId || v4();
110433
110436
  this.colors = this.config.colors;