@harbour-enterprises/superdoc 1.0.0-beta.60 → 1.0.0-beta.61

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 (30) hide show
  1. package/dist/chunks/{PdfViewer-C4HeazGQ.es.js → PdfViewer-BHLsVrSe.es.js} +1 -1
  2. package/dist/chunks/{PdfViewer-4-HewDUK.cjs → PdfViewer-CuTlpPQO.cjs} +1 -1
  3. package/dist/chunks/{index-BKfoD32c.es.js → index-DeFp1DEO.es.js} +13 -6
  4. package/dist/chunks/{index-9qSCXVF1.cjs → index-E5x6cBKw.cjs} +13 -6
  5. package/dist/chunks/{index-GAzIoyrZ-zhiF5zMK.es.js → index-u8dj63PM-Bfomc8Z6.es.js} +1 -1
  6. package/dist/chunks/{index-GAzIoyrZ-C17wg4bM.cjs → index-u8dj63PM-VgHx1nNP.cjs} +1 -1
  7. package/dist/chunks/{super-editor.es-CJ3Aw1GR.es.js → super-editor.es-CI3WoKIG.es.js} +571 -87
  8. package/dist/chunks/{super-editor.es-DCHFBNql.cjs → super-editor.es-nY9_xN6Z.cjs} +571 -87
  9. package/dist/packages/superdoc/src/core/SuperDoc.d.ts.map +1 -1
  10. package/dist/style.css +44 -56
  11. package/dist/super-editor/ai-writer.es.js +2 -2
  12. package/dist/super-editor/chunks/{converter-DZ7Tkh7u.js → converter-DaSkPzA9.js} +3 -3
  13. package/dist/super-editor/chunks/{docx-zipper-CZQWEuyi.js → docx-zipper-Cx1zgQ8B.js} +1 -1
  14. package/dist/super-editor/chunks/{editor-CDMuD1Nx.js → editor-45pxcsTR.js} +508 -23
  15. package/dist/super-editor/chunks/{index-GAzIoyrZ.js → index-u8dj63PM.js} +1 -1
  16. package/dist/super-editor/chunks/{toolbar-DL3rTlKm.js → toolbar-C4OC-AnI.js} +2 -2
  17. package/dist/super-editor/converter.es.js +1 -1
  18. package/dist/super-editor/docx-zipper.es.js +2 -2
  19. package/dist/super-editor/editor.es.js +3 -3
  20. package/dist/super-editor/file-zipper.es.js +1 -1
  21. package/dist/super-editor/style.css +17 -29
  22. package/dist/super-editor/super-editor.es.js +96 -94
  23. package/dist/super-editor/toolbar.es.js +2 -2
  24. package/dist/super-editor.cjs +1 -1
  25. package/dist/super-editor.es.js +1 -1
  26. package/dist/superdoc.cjs +2 -2
  27. package/dist/superdoc.es.js +2 -2
  28. package/dist/superdoc.umd.js +583 -92
  29. package/dist/superdoc.umd.js.map +1 -1
  30. package/package.json +1 -1
@@ -1,5 +1,5 @@
1
1
  import { y as defineComponent, z as h, O as Transition, a0 as process$1, J as watchEffect, a as computed, r as ref, j as onMounted, W as onUnmounted, b as createElementBlock, o as openBlock, f as createBaseVNode, e as createCommentVNode, u as createVNode, v as unref } from "./vue-Dysv_7z5.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-BKfoD32c.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-DeFp1DEO.es.js";
3
3
  function self(vars) {
4
4
  const {
5
5
  opacityDisabled,
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
3
  const vue = require("./vue-jWLMl8Ts.cjs");
4
- const superdoc = require("./index-9qSCXVF1.cjs");
4
+ const superdoc = require("./index-E5x6cBKw.cjs");
5
5
  function self(vars) {
6
6
  const {
7
7
  opacityDisabled,
@@ -1,4 +1,4 @@
1
- import { q as index, C as CommentsPluginKey, h as TrackChangesBasePluginKey, E as Editor, n as getRichTextExtensions, f as SuperInput, P as PresentationEditor, e as SuperEditor, A as AIWriter, g as SuperToolbar, i as createZip } from "./super-editor.es-CJ3Aw1GR.es.js";
1
+ import { q as index, C as CommentsPluginKey, h as TrackChangesBasePluginKey, E as Editor, n as getRichTextExtensions, f as SuperInput, P as PresentationEditor, e as SuperEditor, A as AIWriter, g as SuperToolbar, i as createZip } from "./super-editor.es-CI3WoKIG.es.js";
2
2
  import { B as BlankDOCX } from "./blank-docx-ABm6XYAA.es.js";
3
3
  import { E as EventEmitter } from "./eventemitter3-CcXAdeql.es.js";
4
4
  import { HocuspocusProvider, HocuspocusProviderWebsocket } from "@hocuspocus/provider";
@@ -17251,7 +17251,7 @@ const _sfc_main = {
17251
17251
  __name: "SuperDoc",
17252
17252
  emits: ["selection-update"],
17253
17253
  setup(__props, { emit: __emit }) {
17254
- const PdfViewer = defineAsyncComponent(() => import("./PdfViewer-C4HeazGQ.es.js"));
17254
+ const PdfViewer = defineAsyncComponent(() => import("./PdfViewer-BHLsVrSe.es.js"));
17255
17255
  const superdocStore = useSuperdocStore();
17256
17256
  const commentsStore = useCommentsStore();
17257
17257
  const {
@@ -17531,6 +17531,7 @@ const _sfc_main = {
17531
17531
  markdown: doc.markdown,
17532
17532
  documentMode: proxy.$superdoc.config.documentMode,
17533
17533
  rulers: doc.rulers,
17534
+ rulerContainer: proxy.$superdoc.config.rulerContainer,
17534
17535
  isInternal: proxy.$superdoc.config.isInternal,
17535
17536
  annotations: proxy.$superdoc.config.annotations,
17536
17537
  isCommentsEnabled: Boolean(commentsModuleConfig.value),
@@ -17906,7 +17907,7 @@ const _sfc_main = {
17906
17907
  "file-source": doc.data,
17907
17908
  state: doc.state,
17908
17909
  "document-id": doc.id,
17909
- options: editorOptions(doc),
17910
+ options: { ...editorOptions(doc), rulers: doc.rulers },
17910
17911
  onEditorReady,
17911
17912
  onPageMarginsChange: ($event) => handleSuperEditorPageMarginsChange(doc, $event)
17912
17913
  }, null, 8, ["file-source", "state", "document-id", "options", "onPageMarginsChange"])) : createCommentVNode("", true)
@@ -17959,7 +17960,7 @@ const _sfc_main = {
17959
17960
  };
17960
17961
  }
17961
17962
  };
17962
- const App = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-5b2a75a6"]]);
17963
+ const App = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-e229774d"]]);
17963
17964
  const createSuperdocVueApp = () => {
17964
17965
  const app = createApp(App);
17965
17966
  const pinia = createPinia();
@@ -18139,7 +18140,7 @@ class SuperDoc extends EventEmitter {
18139
18140
  this.config.colors = shuffleArray(this.config.colors);
18140
18141
  this.userColorMap = /* @__PURE__ */ new Map();
18141
18142
  this.colorIndex = 0;
18142
- this.version = "1.0.0-beta.60";
18143
+ this.version = "1.0.0-beta.61";
18143
18144
  this.#log("🦋 [superdoc] Using SuperDoc version:", this.version);
18144
18145
  this.superdocId = config.superdocId || v4();
18145
18146
  this.colors = this.config.colors;
@@ -18480,6 +18481,10 @@ class SuperDoc extends EventEmitter {
18480
18481
  const moduleConfig = this.config.modules?.toolbar || {};
18481
18482
  this.toolbarElement = this.config.modules?.toolbar?.selector || this.config.toolbar;
18482
18483
  this.toolbar = null;
18484
+ const excludeItems = [...moduleConfig.excludeItems || []];
18485
+ if (!this.config.rulers) {
18486
+ excludeItems.push("ruler");
18487
+ }
18483
18488
  const config = {
18484
18489
  selector: this.toolbarElement || null,
18485
18490
  isDev: this.isDev || false,
@@ -18494,7 +18499,9 @@ class SuperDoc extends EventEmitter {
18494
18499
  superdoc: this,
18495
18500
  aiApiKey: this.config.modules?.ai?.apiKey,
18496
18501
  aiEndpoint: this.config.modules?.ai?.endpoint,
18497
- ...moduleConfig
18502
+ ...moduleConfig,
18503
+ excludeItems
18504
+ // Override moduleConfig.excludeItems with our computed list
18498
18505
  };
18499
18506
  this.toolbar = new SuperToolbar(config);
18500
18507
  this.toolbar.on("superdoc-command", this.onToolbarCommand.bind(this));
@@ -1,5 +1,5 @@
1
1
  "use strict";
2
- const superEditor_es = require("./super-editor.es-DCHFBNql.cjs");
2
+ const superEditor_es = require("./super-editor.es-nY9_xN6Z.cjs");
3
3
  const blankDocx = require("./blank-docx-DfW3Eeh2.cjs");
4
4
  const eventemitter3 = require("./eventemitter3-DQmQUge-.cjs");
5
5
  const provider = require("@hocuspocus/provider");
@@ -17268,7 +17268,7 @@ const _sfc_main = {
17268
17268
  __name: "SuperDoc",
17269
17269
  emits: ["selection-update"],
17270
17270
  setup(__props, { emit: __emit }) {
17271
- const PdfViewer = vue.defineAsyncComponent(() => Promise.resolve().then(() => require("./PdfViewer-4-HewDUK.cjs")));
17271
+ const PdfViewer = vue.defineAsyncComponent(() => Promise.resolve().then(() => require("./PdfViewer-CuTlpPQO.cjs")));
17272
17272
  const superdocStore = useSuperdocStore();
17273
17273
  const commentsStore = useCommentsStore();
17274
17274
  const {
@@ -17548,6 +17548,7 @@ const _sfc_main = {
17548
17548
  markdown: doc.markdown,
17549
17549
  documentMode: proxy.$superdoc.config.documentMode,
17550
17550
  rulers: doc.rulers,
17551
+ rulerContainer: proxy.$superdoc.config.rulerContainer,
17551
17552
  isInternal: proxy.$superdoc.config.isInternal,
17552
17553
  annotations: proxy.$superdoc.config.annotations,
17553
17554
  isCommentsEnabled: Boolean(commentsModuleConfig.value),
@@ -17923,7 +17924,7 @@ const _sfc_main = {
17923
17924
  "file-source": doc.data,
17924
17925
  state: doc.state,
17925
17926
  "document-id": doc.id,
17926
- options: editorOptions(doc),
17927
+ options: { ...editorOptions(doc), rulers: doc.rulers },
17927
17928
  onEditorReady,
17928
17929
  onPageMarginsChange: ($event) => handleSuperEditorPageMarginsChange(doc, $event)
17929
17930
  }, null, 8, ["file-source", "state", "document-id", "options", "onPageMarginsChange"])) : vue.createCommentVNode("", true)
@@ -17976,7 +17977,7 @@ const _sfc_main = {
17976
17977
  };
17977
17978
  }
17978
17979
  };
17979
- const App = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-5b2a75a6"]]);
17980
+ const App = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-e229774d"]]);
17980
17981
  const createSuperdocVueApp = () => {
17981
17982
  const app = vue.createApp(App);
17982
17983
  const pinia = createPinia();
@@ -18156,7 +18157,7 @@ class SuperDoc extends eventemitter3.EventEmitter {
18156
18157
  this.config.colors = shuffleArray(this.config.colors);
18157
18158
  this.userColorMap = /* @__PURE__ */ new Map();
18158
18159
  this.colorIndex = 0;
18159
- this.version = "1.0.0-beta.60";
18160
+ this.version = "1.0.0-beta.61";
18160
18161
  this.#log("🦋 [superdoc] Using SuperDoc version:", this.version);
18161
18162
  this.superdocId = config.superdocId || uuid.v4();
18162
18163
  this.colors = this.config.colors;
@@ -18497,6 +18498,10 @@ class SuperDoc extends eventemitter3.EventEmitter {
18497
18498
  const moduleConfig = this.config.modules?.toolbar || {};
18498
18499
  this.toolbarElement = this.config.modules?.toolbar?.selector || this.config.toolbar;
18499
18500
  this.toolbar = null;
18501
+ const excludeItems = [...moduleConfig.excludeItems || []];
18502
+ if (!this.config.rulers) {
18503
+ excludeItems.push("ruler");
18504
+ }
18500
18505
  const config = {
18501
18506
  selector: this.toolbarElement || null,
18502
18507
  isDev: this.isDev || false,
@@ -18511,7 +18516,9 @@ class SuperDoc extends eventemitter3.EventEmitter {
18511
18516
  superdoc: this,
18512
18517
  aiApiKey: this.config.modules?.ai?.apiKey,
18513
18518
  aiEndpoint: this.config.modules?.ai?.endpoint,
18514
- ...moduleConfig
18519
+ ...moduleConfig,
18520
+ excludeItems
18521
+ // Override moduleConfig.excludeItems with our computed list
18515
18522
  };
18516
18523
  this.toolbar = new superEditor_es.SuperToolbar(config);
18517
18524
  this.toolbar.on("superdoc-command", this.onToolbarCommand.bind(this));
@@ -1,4 +1,4 @@
1
- import { s as getDefaultExportFromCjs$2 } from "./super-editor.es-CJ3Aw1GR.es.js";
1
+ import { s as getDefaultExportFromCjs$2 } from "./super-editor.es-CI3WoKIG.es.js";
2
2
  import { V as VFile } from "./index-CvBqQJbG-CvBqQJbG.es.js";
3
3
  function bail(error) {
4
4
  if (error) {
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- const superEditor_es = require("./super-editor.es-DCHFBNql.cjs");
3
+ const superEditor_es = require("./super-editor.es-nY9_xN6Z.cjs");
4
4
  const indexCvBqQJbG = require("./index-CvBqQJbG-Dwm0THD7.cjs");
5
5
  function bail(error) {
6
6
  if (error) {