@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
@@ -20600,7 +20600,7 @@ const _SuperConverter = class _SuperConverter2 {
20600
20600
  return;
20601
20601
  }
20602
20602
  }
20603
- static updateDocumentVersion(docx = this.convertedXml, version = "0.6.70") {
20603
+ static updateDocumentVersion(docx = this.convertedXml, version = "0.6.71") {
20604
20604
  const customLocation = "docProps/custom.xml";
20605
20605
  if (!docx[customLocation]) {
20606
20606
  docx[customLocation] = generateCustomXml();
@@ -20858,7 +20858,7 @@ function storeSuperdocVersion(docx) {
20858
20858
  function generateCustomXml() {
20859
20859
  return DEFAULT_CUSTOM_XML;
20860
20860
  }
20861
- function generateSuperdocVersion(pid = 2, version = "0.6.70") {
20861
+ function generateSuperdocVersion(pid = 2, version = "0.6.71") {
20862
20862
  return {
20863
20863
  type: "element",
20864
20864
  name: "property",
@@ -34892,7 +34892,7 @@ const _Editor = class _Editor2 extends EventEmitter$1 {
34892
34892
  * @returns {Y.Doc | undefined} Updated Y.Doc if any, otherwise undefined
34893
34893
  */
34894
34894
  processCollaborationMigrations() {
34895
- console.debug("[checkVersionMigrations] Current editor version", "0.6.70");
34895
+ console.debug("[checkVersionMigrations] Current editor version", "0.6.71");
34896
34896
  if (!this.options.ydoc) return;
34897
34897
  const metaMap = this.options.ydoc.getMap("meta");
34898
34898
  let docVersion = metaMap.get("version");
@@ -57078,11 +57078,13 @@ const makeDefaultItems = (superToolbar, isDev = false, windowWidth, role, toolba
57078
57078
  });
57079
57079
  const getDocumentOptionsAfterRole = (role2, documentOptions2) => {
57080
57080
  if (role2 === "editor") return documentOptions2;
57081
- else if (role2 === "viewer") return documentOptions2.filter((option) => option.value === "viewing");
57081
+ else if (role2 === "suggester") return documentOptions2.filter((option) => option.value === "suggesting");
57082
+ else return documentOptions2.filter((option) => option.value === "viewing");
57082
57083
  };
57083
57084
  const getDefaultLabel = (role2) => {
57084
57085
  if (role2 === "editor") return "Editing";
57085
- if (role2 === "viewer") return "Viewing";
57086
+ else if (role2 === "suggester") return "Suggesting";
57087
+ else return "Viewing";
57086
57088
  };
57087
57089
  const documentMode = useToolbarItem({
57088
57090
  type: "dropdown",
@@ -57092,12 +57094,13 @@ const makeDefaultItems = (superToolbar, isDev = false, windowWidth, role, toolba
57092
57094
  icon: toolbarIcons2.documentMode,
57093
57095
  defaultLabel: getDefaultLabel(role),
57094
57096
  label: getDefaultLabel(role),
57095
- hasCaret: true,
57097
+ hasCaret: role === "editor",
57096
57098
  isWide: true,
57097
57099
  style: { display: "flex", justifyContent: "flex-end" },
57098
57100
  inlineTextInputVisible: false,
57099
57101
  hasInlineTextInput: false,
57100
57102
  group: "right",
57103
+ disabled: role !== "editor",
57101
57104
  attributes: {
57102
57105
  dropdownPosition: "right",
57103
57106
  className: "toolbar-item--doc-mode"
@@ -58362,4 +58365,4 @@ export {
58362
58365
  helpers as k,
58363
58366
  index as l
58364
58367
  };
58365
- //# sourceMappingURL=super-editor.es-DVRz39XI.js.map
58368
+ //# sourceMappingURL=super-editor.es-BUMY9Cd4.js.map