@harbour-enterprises/superdoc 0.13.0-RC2 → 0.13.0-next.0

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 (95) hide show
  1. package/dist/chunks/{eventemitter3-Dq2TEegt.es.js → eventemitter3-BrspJk8q.es.js} +1 -1
  2. package/dist/chunks/{eventemitter3-DuScojUH.cjs → eventemitter3-DfVviFzP.cjs} +1 -1
  3. package/dist/chunks/{index-CMBtuT02.cjs → index-B4J7wgs6.cjs} +2 -2
  4. package/dist/chunks/{index-B1MhwjTC.cjs → index-Cdsq63Xq.cjs} +4 -4
  5. package/dist/chunks/{index-SKpROzLW.es.js → index-Diu6UKHt.es.js} +4 -4
  6. package/dist/chunks/{index-BrSjd1Id.es.js → index-Hr3Um-Bg.es.js} +2 -2
  7. package/dist/chunks/{jszip-Bwu_om3F.cjs → jszip-BTAcmbVg.cjs} +1 -1
  8. package/dist/chunks/{jszip-BmWWPxfF.es.js → jszip-DckFs3A7.es.js} +1 -1
  9. package/dist/chunks/{super-editor.es-CG_E8Uh1.cjs → super-editor.es-B4lFJKTF.cjs} +3765 -1629
  10. package/dist/chunks/{super-editor.es-B6M3d3ew.es.js → super-editor.es-C-QroPG4.es.js} +3765 -1629
  11. package/dist/chunks/{url-DuggQ5JR.cjs → url-BIzg4y2i.cjs} +2 -2
  12. package/dist/chunks/{url-CAZQTNP3.es.js → url-CHayXMZH.es.js} +2 -2
  13. package/dist/chunks/{vue-IIIZMHTg.es.js → vue-Bi1uWinj.es.js} +17 -11
  14. package/dist/chunks/{vue-DPZkajuO.cjs → vue-HIY1g7dm.cjs} +17 -11
  15. package/dist/chunks/{xml-js-B7Vccv2s.cjs → xml-js-BjqmFOSP.cjs} +2 -2
  16. package/dist/chunks/{xml-js-BV-kCPOA.es.js → xml-js-CfClL-1b.es.js} +2 -2
  17. package/dist/core/SuperDoc.d.ts +0 -6
  18. package/dist/core/SuperDoc.d.ts.map +1 -1
  19. package/dist/core/collaboration/collaboration.d.ts +0 -9
  20. package/dist/core/collaboration/collaboration.d.ts.map +1 -1
  21. package/dist/core/collaboration/helpers.d.ts.map +1 -1
  22. package/dist/style.css +246 -147
  23. package/dist/super-editor/ai-writer.es.js +2 -2
  24. package/dist/super-editor/chunks/{converter-DdMoUfYl.js → converter-Bwa99qcs.js} +571 -336
  25. package/dist/super-editor/chunks/{docx-zipper-CaPhHWh0.js → docx-zipper-CVKlI3mU.js} +1 -1
  26. package/dist/super-editor/chunks/{editor-DfrK7LO9.js → editor-BdaZqkkS.js} +3590 -1911
  27. package/dist/super-editor/chunks/{toolbar-h35AzYvu.js → toolbar-BNg5l9RP.js} +130 -37
  28. package/dist/super-editor/components/pagination-helpers.d.ts.map +1 -1
  29. package/dist/super-editor/converter.es.js +1 -1
  30. package/dist/super-editor/core/Editor.d.ts +1 -8
  31. package/dist/super-editor/core/Editor.d.ts.map +1 -1
  32. package/dist/super-editor/core/InputRule.d.ts +7 -0
  33. package/dist/super-editor/core/InputRule.d.ts.map +1 -1
  34. package/dist/super-editor/core/commands/splitListItem.d.ts +1 -1
  35. package/dist/super-editor/core/commands/splitListItem.d.ts.map +1 -1
  36. package/dist/super-editor/core/helpers/annotator.d.ts +2 -0
  37. package/dist/super-editor/core/helpers/annotator.d.ts.map +1 -1
  38. package/dist/super-editor/core/helpers/findWordBounds.d.ts +5 -0
  39. package/dist/super-editor/core/helpers/findWordBounds.d.ts.map +1 -0
  40. package/dist/super-editor/core/helpers/setWordSelection.d.ts +2 -0
  41. package/dist/super-editor/core/helpers/setWordSelection.d.ts.map +1 -0
  42. package/dist/super-editor/core/inputRules/docx-paste/docx-paste.d.ts.map +1 -1
  43. package/dist/super-editor/core/super-converter/SuperConverter.d.ts +4 -1
  44. package/dist/super-editor/core/super-converter/SuperConverter.d.ts.map +1 -1
  45. package/dist/super-editor/core/super-converter/exporter.d.ts.map +1 -1
  46. package/dist/super-editor/core/super-converter/helpers.d.ts.map +1 -1
  47. package/dist/super-editor/core/super-converter/v2/importer/autoPageNumberImporter.d.ts.map +1 -1
  48. package/dist/super-editor/core/super-converter/v2/importer/listImporter.d.ts +5 -32
  49. package/dist/super-editor/core/super-converter/v2/importer/listImporter.d.ts.map +1 -1
  50. package/dist/super-editor/core/super-converter/v2/importer/paragraphNodeImporter.d.ts.map +1 -1
  51. package/dist/super-editor/docx-zipper.es.js +2 -2
  52. package/dist/super-editor/editor.es.js +3 -3
  53. package/dist/super-editor/extensions/field-annotation/FieldAnnotationView.d.ts.map +1 -1
  54. package/dist/super-editor/extensions/field-annotation/field-annotation.d.ts.map +1 -1
  55. package/dist/super-editor/extensions/image/imageHelpers/imagePositionPlugin.d.ts.map +1 -1
  56. package/dist/super-editor/extensions/image/imageHelpers/index.d.ts +1 -0
  57. package/dist/super-editor/extensions/image/imageHelpers/processUploadedImage.d.ts.map +1 -1
  58. package/dist/super-editor/extensions/image/index.d.ts +1 -0
  59. package/dist/super-editor/extensions/index.d.ts +2 -1
  60. package/dist/super-editor/extensions/index.d.ts.map +1 -1
  61. package/dist/super-editor/extensions/line-height/line-height.d.ts.map +1 -1
  62. package/dist/super-editor/extensions/linked-styles/linked-styles.d.ts.map +1 -1
  63. package/dist/super-editor/extensions/list-item/list-item.d.ts.map +1 -1
  64. package/dist/super-editor/extensions/noderesizer/index.d.ts +2 -0
  65. package/dist/super-editor/extensions/noderesizer/index.d.ts.map +1 -0
  66. package/dist/super-editor/extensions/noderesizer/noderesizer.d.ts +7 -0
  67. package/dist/super-editor/extensions/noderesizer/noderesizer.d.ts.map +1 -0
  68. package/dist/super-editor/extensions/ordered-list/ordered-list.d.ts.map +1 -1
  69. package/dist/super-editor/extensions/page-number/page-number.d.ts +10 -0
  70. package/dist/super-editor/extensions/page-number/page-number.d.ts.map +1 -1
  71. package/dist/super-editor/extensions/pagination/pagination-helpers.d.ts +2 -1
  72. package/dist/super-editor/extensions/pagination/pagination-helpers.d.ts.map +1 -1
  73. package/dist/super-editor/extensions/pagination/pagination.d.ts.map +1 -1
  74. package/dist/super-editor/extensions/paragraph/paragraph.d.ts.map +1 -1
  75. package/dist/super-editor/file-zipper.es.js +1 -1
  76. package/dist/super-editor/style.css +219 -120
  77. package/dist/super-editor/super-editor.es.js +325 -200
  78. package/dist/super-editor/tests/e2e/test-app/vite.config.d.ts +1 -1
  79. package/dist/super-editor/tests/export/export-helpers/export-helpers.d.ts.map +1 -1
  80. package/dist/super-editor/toolbar.es.js +2 -2
  81. package/dist/super-editor.cjs +2 -2
  82. package/dist/super-editor.es.js +2 -2
  83. package/dist/superdoc.cjs +1590 -367
  84. package/dist/superdoc.es.js +1575 -368
  85. package/dist/superdoc.umd.js +5248 -1904
  86. package/dist/superdoc.umd.js.map +1 -1
  87. package/package.json +3 -2
  88. package/dist/super-editor/core/helpers/list-numbering-helpers.d.ts +0 -235
  89. package/dist/super-editor/core/helpers/list-numbering-helpers.d.ts.map +0 -1
  90. package/dist/super-editor/extensions/list-item/ListItemNodeView.d.ts +0 -56
  91. package/dist/super-editor/extensions/list-item/ListItemNodeView.d.ts.map +0 -1
  92. package/dist/super-editor/tests/e2e/test-app/dist/assets/index-BTMvkUyI.d.ts +0 -3
  93. package/dist/super-editor/tests/e2e/test-app/dist/assets/index-BTMvkUyI.d.ts.map +0 -1
  94. package/dist/super-editor/tests/editor/listItemHelpers.test.d.ts +0 -2
  95. package/dist/super-editor/tests/editor/listItemHelpers.test.d.ts.map +0 -1
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@harbour-enterprises/superdoc",
3
3
  "type": "module",
4
- "version": "0.13.0-RC2",
4
+ "version": "0.13.0-next.0",
5
5
  "license": "AGPL-3.0",
6
6
  "readme": "../../README.md",
7
7
  "files": [
@@ -57,7 +57,8 @@
57
57
  "pinia": "^2.1.7",
58
58
  "rollup-plugin-copy": "^3.5.0",
59
59
  "tippy": "^0.0.0",
60
- "vue": "^3.4.21"
60
+ "vue": "^3.4.21",
61
+ "y-websocket": "^3.0.0"
61
62
  },
62
63
  "peerDependencies": {
63
64
  "@hocuspocus/provider": "^2.13.6",
@@ -1,235 +0,0 @@
1
- export function generateNewListDefinition({ numId, listType, editor }: {
2
- numId: any;
3
- listType: any;
4
- editor: any;
5
- }): {
6
- abstract: {
7
- attributes: {
8
- 'w:abstractNumId': string;
9
- "w15:restartNumberingAfterBreak": string;
10
- };
11
- type: string;
12
- name: string;
13
- elements: ({
14
- type: string;
15
- name: string;
16
- attributes: {
17
- "w:val": string;
18
- "w:ilvl"?: undefined;
19
- "w:tplc"?: undefined;
20
- "w:tentative"?: undefined;
21
- };
22
- elements?: undefined;
23
- } | {
24
- type: string;
25
- name: string;
26
- attributes: {
27
- "w:ilvl": string;
28
- "w:tplc": string;
29
- 'w:val'?: undefined;
30
- "w:tentative"?: undefined;
31
- };
32
- elements: ({
33
- type: string;
34
- name: string;
35
- attributes: {
36
- "w:val": string;
37
- };
38
- elements?: undefined;
39
- } | {
40
- type: string;
41
- name: string;
42
- elements: {
43
- type: string;
44
- name: string;
45
- attributes: {
46
- "w:left": string;
47
- "w:hanging": string;
48
- };
49
- }[];
50
- attributes?: undefined;
51
- } | {
52
- type: string;
53
- name: string;
54
- elements: {
55
- type: string;
56
- name: string;
57
- attributes: {
58
- "w:ascii": string;
59
- "w:hAnsi": string;
60
- "w:hint": string;
61
- };
62
- }[];
63
- attributes?: undefined;
64
- })[];
65
- } | {
66
- type: string;
67
- name: string;
68
- attributes: {
69
- "w:ilvl": string;
70
- "w:tplc": string;
71
- "w:tentative": string;
72
- 'w:val'?: undefined;
73
- };
74
- elements: ({
75
- type: string;
76
- name: string;
77
- attributes: {
78
- "w:val": string;
79
- };
80
- elements?: undefined;
81
- } | {
82
- type: string;
83
- name: string;
84
- elements: {
85
- type: string;
86
- name: string;
87
- attributes: {
88
- "w:left": string;
89
- "w:hanging": string;
90
- };
91
- }[];
92
- attributes?: undefined;
93
- } | {
94
- type: string;
95
- name: string;
96
- elements: {
97
- type: string;
98
- name: string;
99
- attributes: {
100
- "w:ascii": string;
101
- "w:hAnsi": string;
102
- "w:cs": string;
103
- "w:hint": string;
104
- };
105
- }[];
106
- attributes?: undefined;
107
- })[];
108
- } | {
109
- type: string;
110
- name: string;
111
- attributes: {
112
- "w:ilvl": string;
113
- "w:tplc": string;
114
- "w:tentative": string;
115
- 'w:val'?: undefined;
116
- };
117
- elements: ({
118
- type: string;
119
- name: string;
120
- attributes: {
121
- "w:val": string;
122
- };
123
- elements?: undefined;
124
- } | {
125
- type: string;
126
- name: string;
127
- elements: {
128
- type: string;
129
- name: string;
130
- attributes: {
131
- "w:left": string;
132
- "w:hanging": string;
133
- };
134
- }[];
135
- attributes?: undefined;
136
- } | {
137
- type: string;
138
- name: string;
139
- elements: {
140
- type: string;
141
- name: string;
142
- attributes: {
143
- "w:ascii": string;
144
- "w:hAnsi": string;
145
- "w:hint": string;
146
- };
147
- }[];
148
- attributes?: undefined;
149
- })[];
150
- })[];
151
- };
152
- definition: {
153
- type: string;
154
- name: string;
155
- attributes: {
156
- 'w:numId': string;
157
- 'w16cid:durableId': string;
158
- };
159
- elements: {
160
- name: string;
161
- attributes: {
162
- 'w:val': string;
163
- };
164
- }[];
165
- };
166
- };
167
- export function getNewListId(editor: any): number;
168
- export function getListDefinitionDetails({ numId, level, editor }: {
169
- numId: any;
170
- level: any;
171
- editor: any;
172
- }): {
173
- start: any;
174
- numFmt: any;
175
- lvlText: any;
176
- };
177
- export function removeListDefinitions(listId: any, editor: any): void;
178
- export function createListItemNodeJSON({ level, lvlText, numId, numFmt, start, contentNode }: {
179
- level: any;
180
- lvlText: any;
181
- numId: any;
182
- numFmt: any;
183
- start: any;
184
- contentNode: any;
185
- }): {
186
- type: string;
187
- attrs: {
188
- lvlText: any;
189
- listLevel: number[];
190
- level: any;
191
- numId: any;
192
- numPrType: string;
193
- listNumberingType: any;
194
- };
195
- content: any[];
196
- };
197
- export function createSchemaOrderedListNode({ level, numId, editor, contentNode }: {
198
- level: any;
199
- numId: any;
200
- editor: any;
201
- contentNode: any;
202
- }): any;
203
- export function createNewList({ listType, editor, chain }: {
204
- listType: any;
205
- editor: any;
206
- chain: any;
207
- }): any;
208
- export function indentListItem({ chain, editor, node: currentNode }: {
209
- chain: any;
210
- editor: any;
211
- node: any;
212
- }): any;
213
- export function outdentListItem({ chain, editor, node: currentNode }: {
214
- chain: any;
215
- editor: any;
216
- node: any;
217
- }): any;
218
- export function addInlineTextMarks(currentNode: any, filteredMarks: any): any[];
219
- export namespace ListHelpers {
220
- export { getListDefinitionDetails };
221
- export { generateNewListDefinition };
222
- export { getNewListId };
223
- export { removeListDefinitions };
224
- export { createNewList };
225
- export { createSchemaOrderedListNode };
226
- export { createListItemNodeJSON };
227
- export { indentListItem };
228
- export { outdentListItem };
229
- export { addInlineTextMarks };
230
- export { baseOrderedListDef };
231
- export { baseBulletList };
232
- }
233
- import { baseOrderedListDef } from './baseListDefinitions';
234
- import { baseBulletList } from './baseListDefinitions';
235
- //# sourceMappingURL=list-numbering-helpers.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"list-numbering-helpers.d.ts","sourceRoot":"","sources":["../../../src/core/helpers/list-numbering-helpers.js"],"names":[],"mappings":"AAOO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAmCN;AAEM,kDAAiH;AAEjH;;;;;;;;EAUN;AAEM,sEAaN;AAEM;;;;;;;;;;;;;;;;;;EAwBN;AAEM;;;;;QAgBN;AAEM;;;;QAwBN;AAEM;;;;QAmBN;AAEM;;;;QAyBN;AAaM,gFAQN;;;;;;;;;;;;;;;mCA/MkD,uBAAuB;+BAAvB,uBAAuB"}
@@ -1,56 +0,0 @@
1
- /**
2
- * @typedef {Object} IndentObject
3
- * @property {number} [left] - The left indent value
4
- * @property {number} [right] - The right indent value
5
- * @property {number} [firstLine] - The first line indent value
6
- * @property {number} [hanging] - The hanging indent value
7
- */
8
- /**
9
- * The node view for the list item
10
- * @param {Node} node - The node to be rendered
11
- * @param {function} getPos - A function to get the position of the node
12
- * @param {Array} decorations - An array of decorations
13
- * @param {Editor} editor - The editor instance
14
- * @returns {ListItemNodeView} The node view instance
15
- */
16
- export class ListItemNodeView {
17
- constructor(node: any, getPos: any, decorations: any, editor: any);
18
- node: any;
19
- editor: any;
20
- decorations: any;
21
- view: any;
22
- getPos: any;
23
- dom: HTMLLIElement;
24
- numberingDOM: HTMLSpanElement;
25
- contentDOM: HTMLParagraphElement;
26
- handleNumberingClick: (event: any) => void;
27
- update(node: any): boolean;
28
- destroy(): void;
29
- #private;
30
- }
31
- export function getVisibleIndent(stylePpr: DocxNode, numDefPpr: DocxNode, inlineIndent: any): IndentObject;
32
- export function getListItemStyleDefinitions({ styleId, numId, level, editor }: {
33
- styleId: string;
34
- numId: string;
35
- level: number;
36
- editor: Editor;
37
- }): any;
38
- export type IndentObject = {
39
- /**
40
- * - The left indent value
41
- */
42
- left?: number;
43
- /**
44
- * - The right indent value
45
- */
46
- right?: number;
47
- /**
48
- * - The first line indent value
49
- */
50
- firstLine?: number;
51
- /**
52
- * - The hanging indent value
53
- */
54
- hanging?: number;
55
- };
56
- //# sourceMappingURL=ListItemNodeView.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ListItemNodeView.d.ts","sourceRoot":"","sources":["../../../src/extensions/list-item/ListItemNodeView.js"],"names":[],"mappings":"AAeA;;;;;;GAMG;AAEH;;;;;;;GAOG;AACH;IACE,mEASC;IARC,UAAgB;IAChB,YAAoB;IACpB,iBAA8B;IAC9B,UAAuB;IACvB,YAAoB;IAkCpB,mBAAuC;IAOvC,8BAAkD;IAOlD,iCAA6C;IAiB/C,uBAAwB,UAAK,UAG5B;IAED,2BAIC;IAED,gBAEC;;CACF;AAmGM,2CAJI,QAAQ,aACR,QAAQ,sBACN,YAAY,CAgBxB;AAcM,+EARJ;IAAuB,OAAO,EAAtB,MAAM;IACS,KAAK,EAApB,MAAM;IACS,KAAK,EAApB,MAAM;IACS,MAAM,EAArB,MAAM;CACd,OAoBF;;;;;WAlPa,MAAM;;;;YACN,MAAM;;;;gBACN,MAAM;;;;cACN,MAAM"}
@@ -1,3 +0,0 @@
1
- declare const _default: any;
2
- export default _default;
3
- //# sourceMappingURL=index-BTMvkUyI.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index-BTMvkUyI.d.ts","sourceRoot":"","sources":["../../../../../../src/tests/e2e/test-app/dist/assets/index-BTMvkUyI.js"],"names":[],"mappings":""}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=listItemHelpers.test.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"listItemHelpers.test.d.ts","sourceRoot":"","sources":["../../../src/tests/editor/listItemHelpers.test.js"],"names":[],"mappings":""}