@harbour-enterprises/superdoc 0.8.1 → 0.8.2

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 (26) hide show
  1. package/dist/chunks/{super-editor.es-CrXCj3vB.js → super-editor.es-DsEPyJm_.js} +53 -22
  2. package/dist/chunks/{super-editor.es-CrXCj3vB.js.map → super-editor.es-DsEPyJm_.js.map} +1 -1
  3. package/dist/super-editor/chunks/{converter-CxyadIIu.js → converter-azXT1h6A.js} +3 -3
  4. package/dist/super-editor/chunks/{converter-CxyadIIu.js.map → converter-azXT1h6A.js.map} +1 -1
  5. package/dist/super-editor/chunks/{docx-zipper-KYJBSgz3.js → docx-zipper-D9w3bMVr.js} +2 -2
  6. package/dist/super-editor/chunks/{docx-zipper-KYJBSgz3.js.map → docx-zipper-D9w3bMVr.js.map} +1 -1
  7. package/dist/super-editor/chunks/{editor-BBN36BZJ.js → editor-D5nTnth_.js} +53 -22
  8. package/dist/super-editor/chunks/editor-D5nTnth_.js.map +1 -0
  9. package/dist/super-editor/chunks/{toolbar-CmvXKW36.js → toolbar-BYleEua6.js} +3 -3
  10. package/dist/super-editor/chunks/{toolbar-CmvXKW36.js.map → toolbar-BYleEua6.js.map} +1 -1
  11. package/dist/super-editor/converter.es.js +1 -1
  12. package/dist/super-editor/docx-zipper.es.js +2 -2
  13. package/dist/super-editor/editor.es.js +3 -3
  14. package/dist/super-editor/extensions/comment/comments-plugin.d.ts.map +1 -1
  15. package/dist/super-editor/extensions/index.d.ts.map +1 -1
  16. package/dist/super-editor/extensions/paragraph/paragraph.d.ts.map +1 -1
  17. package/dist/super-editor/file-zipper.es.js +1 -1
  18. package/dist/super-editor/super-editor.es.js +6 -6
  19. package/dist/super-editor/tests/export/export-helpers/export-helpers.d.ts.map +1 -1
  20. package/dist/super-editor/toolbar.es.js +2 -2
  21. package/dist/super-editor.es.js +1 -1
  22. package/dist/superdoc.es.js +3 -3
  23. package/dist/superdoc.umd.js +53 -22
  24. package/dist/superdoc.umd.js.map +1 -1
  25. package/package.json +1 -1
  26. package/dist/super-editor/chunks/editor-BBN36BZJ.js.map +0 -1
@@ -20660,7 +20660,7 @@ const _SuperConverter = class _SuperConverter2 {
20660
20660
  return;
20661
20661
  }
20662
20662
  }
20663
- static updateDocumentVersion(docx = this.convertedXml, version = "0.8.1") {
20663
+ static updateDocumentVersion(docx = this.convertedXml, version = "0.8.2") {
20664
20664
  const customLocation = "docProps/custom.xml";
20665
20665
  if (!docx[customLocation]) {
20666
20666
  docx[customLocation] = generateCustomXml();
@@ -20933,7 +20933,7 @@ function storeSuperdocVersion(docx) {
20933
20933
  function generateCustomXml() {
20934
20934
  return DEFAULT_CUSTOM_XML;
20935
20935
  }
20936
- function generateSuperdocVersion(pid = 2, version = "0.8.1") {
20936
+ function generateSuperdocVersion(pid = 2, version = "0.8.2") {
20937
20937
  return {
20938
20938
  type: "element",
20939
20939
  name: "property",
@@ -34270,6 +34270,7 @@ const CommentsPlugin = Extension.create({
34270
34270
  const editor = this.editor;
34271
34271
  let shouldUpdate;
34272
34272
  let activeThreadId;
34273
+ if (editor.options.isHeadless) return [];
34273
34274
  const commentsPlugin = new Plugin({
34274
34275
  key: CommentsPluginKey,
34275
34276
  state: {
@@ -35168,7 +35169,7 @@ const _Editor = class _Editor2 extends EventEmitter$1 {
35168
35169
  * @returns {Y.Doc | undefined} Updated Y.Doc if any, otherwise undefined
35169
35170
  */
35170
35171
  processCollaborationMigrations() {
35171
- console.debug("[checkVersionMigrations] Current editor version", "0.8.1");
35172
+ console.debug("[checkVersionMigrations] Current editor version", "0.8.2");
35172
35173
  if (!this.options.ydoc) return;
35173
35174
  const metaMap = this.options.ydoc.getMap("meta");
35174
35175
  let docVersion = metaMap.get("version");
@@ -37406,7 +37407,17 @@ const Paragraph = Node2.create({
37406
37407
  rendered: false
37407
37408
  },
37408
37409
  filename: { rendered: false },
37409
- rsidRDefault: { rendered: false }
37410
+ rsidRDefault: { rendered: false },
37411
+ // Experimental
37412
+ isEditable: {
37413
+ renderDOM: ({ isEditable }) => {
37414
+ let style2 = "";
37415
+ if (isEditable === false) {
37416
+ style2 = "opacity: 0.5; cursor: default; pointer-events: none; user-select: none;";
37417
+ }
37418
+ return { style: style2, contenteditable: isEditable === false ? false : true };
37419
+ }
37420
+ }
37410
37421
  };
37411
37422
  },
37412
37423
  parseDOM() {
@@ -45940,23 +45951,43 @@ const onImageLoad = (editor) => {
45940
45951
  editor.view.dispatch(newTr);
45941
45952
  });
45942
45953
  };
45943
- const getRichTextExtensions = () => [
45944
- Bold,
45945
- Color,
45946
- Document,
45947
- History,
45948
- Italic,
45949
- Link,
45950
- Paragraph,
45951
- Strike,
45952
- Text,
45953
- TextStyle,
45954
- Underline,
45955
- Placeholder,
45956
- PopoverPlugin,
45957
- Mention,
45958
- Highlight
45959
- ];
45954
+ const getRichTextExtensions = () => {
45955
+ return [
45956
+ Bold,
45957
+ Color,
45958
+ Document,
45959
+ FontFamily,
45960
+ FontSize,
45961
+ History,
45962
+ Heading,
45963
+ Italic,
45964
+ LineHeight,
45965
+ Link,
45966
+ Paragraph,
45967
+ LineBreak,
45968
+ HardBreak,
45969
+ Strike,
45970
+ Text,
45971
+ TextAlign,
45972
+ TextIndent,
45973
+ TextStyle,
45974
+ Underline,
45975
+ Placeholder,
45976
+ PopoverPlugin,
45977
+ Mention,
45978
+ Highlight,
45979
+ FormatCommands,
45980
+ Table,
45981
+ TableRow,
45982
+ TableCell,
45983
+ TableHeader,
45984
+ FieldAnnotation,
45985
+ DropCursor,
45986
+ TrackInsert,
45987
+ TrackDelete,
45988
+ TrackFormat
45989
+ ];
45990
+ };
45960
45991
  const getStarterExtensions = () => {
45961
45992
  return [
45962
45993
  Bold,
@@ -58689,4 +58720,4 @@ export {
58689
58720
  helpers as l,
58690
58721
  index as m
58691
58722
  };
58692
- //# sourceMappingURL=super-editor.es-CrXCj3vB.js.map
58723
+ //# sourceMappingURL=super-editor.es-DsEPyJm_.js.map