@harbour-enterprises/superdoc 0.6.74 → 0.6.75

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-DKkpK7ZM.js → super-editor.es-3mk1QJOz.js} +12 -11
  2. package/dist/chunks/{super-editor.es-DKkpK7ZM.js.map → super-editor.es-3mk1QJOz.js.map} +1 -1
  3. package/dist/super-editor/chunks/{converter-DwF_uUNJ.js → converter-C2Ax-qyH.js} +3 -3
  4. package/dist/super-editor/chunks/{converter-DwF_uUNJ.js.map → converter-C2Ax-qyH.js.map} +1 -1
  5. package/dist/super-editor/chunks/{docx-zipper-KsiwHwGw.js → docx-zipper-CvANIBUH.js} +2 -2
  6. package/dist/super-editor/chunks/{docx-zipper-KsiwHwGw.js.map → docx-zipper-CvANIBUH.js.map} +1 -1
  7. package/dist/super-editor/chunks/{editor-DtRMY7cq.js → editor-DUWJU_ck.js} +12 -11
  8. package/dist/super-editor/chunks/editor-DUWJU_ck.js.map +1 -0
  9. package/dist/super-editor/chunks/{toolbar-B4Rt3gKn.js → toolbar-BtRS82Lk.js} +3 -3
  10. package/dist/super-editor/chunks/{toolbar-B4Rt3gKn.js.map → toolbar-BtRS82Lk.js.map} +1 -1
  11. package/dist/super-editor/converter.es.js +1 -1
  12. package/dist/super-editor/core/Editor.d.ts.map +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 +6 -6
  17. package/dist/super-editor/toolbar.es.js +2 -2
  18. package/dist/super-editor.es.js +1 -1
  19. package/dist/superdoc.es.js +3 -3
  20. package/dist/superdoc.umd.js +12 -11
  21. package/dist/superdoc.umd.js.map +1 -1
  22. package/package.json +1 -1
  23. package/dist/super-editor/chunks/editor-DtRMY7cq.js.map +0 -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.74") {
20603
+ static updateDocumentVersion(docx = this.convertedXml, version = "0.6.75") {
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.74") {
20861
+ function generateSuperdocVersion(pid = 2, version = "0.6.75") {
20862
20862
  return {
20863
20863
  type: "element",
20864
20864
  name: "property",
@@ -34797,16 +34797,17 @@ const _Editor = class _Editor2 extends EventEmitter$1 {
34797
34797
  }
34798
34798
  };
34799
34799
  updateScale();
34800
- screen.orientation.addEventListener("change", () => {
34800
+ const handleResize = () => {
34801
34801
  setTimeout(() => {
34802
34802
  updateScale();
34803
34803
  }, 150);
34804
- });
34805
- window.addEventListener("resize", () => {
34806
- setTimeout(() => {
34807
- updateScale();
34808
- }, 150);
34809
- });
34804
+ };
34805
+ if ("orientation" in screen && "addEventListener" in screen.orientation) {
34806
+ screen.orientation.addEventListener("change", handleResize);
34807
+ } else {
34808
+ window.matchMedia("(orientation: portrait)").addEventListener("change", handleResize);
34809
+ }
34810
+ window.addEventListener("resize", () => handleResize);
34810
34811
  }
34811
34812
  /**
34812
34813
  * Get attrs of the currently selected node or mark.
@@ -34944,7 +34945,7 @@ const _Editor = class _Editor2 extends EventEmitter$1 {
34944
34945
  * @returns {Y.Doc | undefined} Updated Y.Doc if any, otherwise undefined
34945
34946
  */
34946
34947
  processCollaborationMigrations() {
34947
- console.debug("[checkVersionMigrations] Current editor version", "0.6.74");
34948
+ console.debug("[checkVersionMigrations] Current editor version", "0.6.75");
34948
34949
  if (!this.options.ydoc) return;
34949
34950
  const metaMap = this.options.ydoc.getMap("meta");
34950
34951
  let docVersion = metaMap.get("version");
@@ -58420,4 +58421,4 @@ export {
58420
58421
  helpers as k,
58421
58422
  index as l
58422
58423
  };
58423
- //# sourceMappingURL=super-editor.es-DKkpK7ZM.js.map
58424
+ //# sourceMappingURL=super-editor.es-3mk1QJOz.js.map