@harbour-enterprises/superdoc 0.12.34-next.3 → 0.13.0-RC2

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 (48) hide show
  1. package/dist/chunks/{super-editor.es-B9igwxv-.es.js → super-editor.es-B6M3d3ew.es.js} +1020 -1010
  2. package/dist/chunks/{super-editor.es-BbaXC2pT.cjs → super-editor.es-CG_E8Uh1.cjs} +1020 -1010
  3. package/dist/style.css +67 -54
  4. package/dist/super-editor/ai-writer.es.js +2 -2
  5. package/dist/super-editor/chunks/{converter-DzsjYmnd.js → converter-DdMoUfYl.js} +310 -441
  6. package/dist/super-editor/chunks/{docx-zipper-DQONSIAh.js → docx-zipper-CaPhHWh0.js} +1 -1
  7. package/dist/super-editor/chunks/{editor-CO-n6iZ8.js → editor-DfrK7LO9.js} +1653 -1507
  8. package/dist/super-editor/chunks/{toolbar-CNeu8BVd.js → toolbar-h35AzYvu.js} +2 -2
  9. package/dist/super-editor/converter.es.js +1 -1
  10. package/dist/super-editor/core/Attribute.d.ts +2 -2
  11. package/dist/super-editor/core/Editor.d.ts +8 -1
  12. package/dist/super-editor/core/Editor.d.ts.map +1 -1
  13. package/dist/super-editor/core/Schema.d.ts +2 -2
  14. package/dist/super-editor/core/commands/splitListItem.d.ts +1 -1
  15. package/dist/super-editor/core/commands/splitListItem.d.ts.map +1 -1
  16. package/dist/super-editor/core/helpers/list-numbering-helpers.d.ts +235 -0
  17. package/dist/super-editor/core/helpers/list-numbering-helpers.d.ts.map +1 -0
  18. package/dist/super-editor/core/super-converter/SuperConverter.d.ts +1 -1
  19. package/dist/super-editor/core/super-converter/SuperConverter.d.ts.map +1 -1
  20. package/dist/super-editor/core/super-converter/exporter.d.ts.map +1 -1
  21. package/dist/super-editor/core/super-converter/v2/importer/listImporter.d.ts +32 -5
  22. package/dist/super-editor/core/super-converter/v2/importer/listImporter.d.ts.map +1 -1
  23. package/dist/super-editor/core/super-converter/v2/importer/paragraphNodeImporter.d.ts.map +1 -1
  24. package/dist/super-editor/docx-zipper.es.js +2 -2
  25. package/dist/super-editor/editor.es.js +3 -3
  26. package/dist/super-editor/extensions/linked-styles/linked-styles.d.ts.map +1 -1
  27. package/dist/super-editor/extensions/list-item/ListItemNodeView.d.ts +56 -0
  28. package/dist/super-editor/extensions/list-item/ListItemNodeView.d.ts.map +1 -0
  29. package/dist/super-editor/extensions/list-item/list-item.d.ts.map +1 -1
  30. package/dist/super-editor/extensions/ordered-list/ordered-list.d.ts.map +1 -1
  31. package/dist/super-editor/extensions/paragraph/paragraph.d.ts.map +1 -1
  32. package/dist/super-editor/file-zipper.es.js +1 -1
  33. package/dist/super-editor/style.css +40 -27
  34. package/dist/super-editor/super-editor.es.js +6 -6
  35. package/dist/super-editor/tests/e2e/test-app/dist/assets/index-BTMvkUyI.d.ts +3 -0
  36. package/dist/super-editor/tests/e2e/test-app/dist/assets/index-BTMvkUyI.d.ts.map +1 -0
  37. package/dist/super-editor/tests/e2e/test-app/vite.config.d.ts +1 -1
  38. package/dist/super-editor/tests/editor/listItemHelpers.test.d.ts +2 -0
  39. package/dist/super-editor/tests/editor/listItemHelpers.test.d.ts.map +1 -0
  40. package/dist/super-editor/tests/export/export-helpers/export-helpers.d.ts.map +1 -1
  41. package/dist/super-editor/toolbar.es.js +2 -2
  42. package/dist/super-editor.cjs +1 -1
  43. package/dist/super-editor.es.js +1 -1
  44. package/dist/superdoc.cjs +3 -5
  45. package/dist/superdoc.es.js +4 -6
  46. package/dist/superdoc.umd.js +1024 -1016
  47. package/dist/superdoc.umd.js.map +1 -1
  48. package/package.json +1 -1
@@ -1,6 +1,6 @@
1
1
  import { computed, createElementBlock, openBlock, createElementVNode, createCommentVNode, normalizeClass, normalizeStyle, ref, unref, createBlock, toDisplayString, withDirectives, withKeys, withModifiers, vModelText, getCurrentInstance, createVNode, readonly, watch, onMounted, onBeforeUnmount, reactive, onBeforeMount, inject, onActivated, onDeactivated, createTextVNode, Fragment, Comment, defineComponent, provide, h, Teleport, toRef, nextTick, renderSlot, isVNode, shallowRef, watchEffect, mergeProps, Transition, vShow, cloneVNode, Text, renderList, withCtx } from "vue";
2
- import { x as process$1 } from "./converter-DzsjYmnd.js";
3
- import { _ as _export_sfc, u as useHighContrastMode, g as global$1 } from "./editor-CO-n6iZ8.js";
2
+ import { x as process$1 } from "./converter-DdMoUfYl.js";
3
+ import { _ as _export_sfc, u as useHighContrastMode, g as global$1 } from "./editor-DfrK7LO9.js";
4
4
  const sanitizeNumber = (value, defaultNumber) => {
5
5
  let sanitized = value.replace(/[^0-9.]/g, "");
6
6
  sanitized = parseFloat(sanitized);
@@ -1,4 +1,4 @@
1
- import { O } from "./chunks/converter-DzsjYmnd.js";
1
+ import { O } from "./chunks/converter-DdMoUfYl.js";
2
2
  export {
3
3
  O as SuperConverter
4
4
  };
@@ -15,14 +15,14 @@ export class Attribute {
15
15
  * @param defaultAttribute Default attribute.
16
16
  * @returns Global extension attributes.
17
17
  */
18
- static "__#5@#getGlobalAttributes"(extensions: any, defaultAttribute: any): any[];
18
+ static "__#6@#getGlobalAttributes"(extensions: any, defaultAttribute: any): any[];
19
19
  /**
20
20
  * Get a list of attributes defined in the Node and Mark extensions.
21
21
  * @param extensions List of all extensions.
22
22
  * @param defaultAttribute Default attribute.
23
23
  * @returns Node and Mark extension attributes.
24
24
  */
25
- static "__#5@#getNodeAndMarksAttributes"(extensions: any, defaultAttribute: any): {
25
+ static "__#6@#getNodeAndMarksAttributes"(extensions: any, defaultAttribute: any): {
26
26
  type: any;
27
27
  name: string;
28
28
  attribute: any;
@@ -15,6 +15,9 @@
15
15
  * @property {string} email The user's email
16
16
  * @property {string | null} image The user's photo
17
17
  */
18
+ /**
19
+ * @typedef {Object} DocxNode A JSON representation of a docx node
20
+ */
18
21
  /**
19
22
  * @typedef {Object} EditorOptions
20
23
  * @property {HTMLElement} [element] - The container element for the editor
@@ -409,7 +412,7 @@ export class Editor extends EventEmitter {
409
412
  * @param {boolean} [options.getUpdatedDocs=false] - When set to true return only updated docx files
410
413
  * @returns {Promise<Blob|ArrayBuffer|Object>} The exported DOCX file or updated docx files
411
414
  */
412
- exportDocx({ isFinalDoc, commentsType, comments, getUpdatedDocs }?: {
415
+ exportDocx({ isFinalDoc, commentsType, exportJsonOnly, exportXmlOnly, comments, getUpdatedDocs }?: {
413
416
  isFinalDoc?: boolean;
414
417
  commentsType?: string;
415
418
  comments?: any[];
@@ -508,6 +511,10 @@ export type User = {
508
511
  */
509
512
  image: string | null;
510
513
  };
514
+ /**
515
+ * A JSON representation of a docx node
516
+ */
517
+ export type DocxNode = any;
511
518
  export type EditorOptions = {
512
519
  /**
513
520
  * - The container element for the editor
@@ -1 +1 @@
1
- {"version":3,"file":"Editor.d.ts","sourceRoot":"","sources":["../../src/core/Editor.js"],"names":[],"mappings":"AA0BA;;;;GAIG;AAEH;;;;;GAKG;AACH;;;;;EAKE;AACF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2DG;AAEH;;;;GAIG;AACH;IAuqBE;;;;;;;;;;;;OAYG;IACH,+BARW,IAAI,GAAC,IAAI,GAAC,MAAM,WAChB,OAAO,GACL,OAAO,OAAO,CAc1B;IAED;;;;;OAKG;IACH,qCAFa,MAAM,CAKlB;IAED;;;;;;OAMG;IACH,gDAHW,MAAM,OAMhB;IAoqBD;;;;;OAKG;IACH,2CAFa,OAAO,CAOnB;IAtxCD;;;;OAIG;IACH,qBAHW,aAAa,EAwBvB;IA/HD;;;OAGG;IACH,sBAAiB;IAEjB;;;OAGG;IACH,sBAAsB;IAEtB;;;OAGG;IACH,YAAO;IAEP;;;OAGG;IACH,UAAK;IAEL;;;OAGG;IACH,WAFU,OAAO,CAEC;IAQlB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MA+DE;IA0BA,0CAA8C;IA0IhD;;;;OAIG;IACH,0BAFa,IAAI,CAIhB;IADC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HW,MAAM,SAMhB;IAED;;;;;OAKG;IACH,2CAHW,MAAM,GACJ,IAAI,CAYhB;IAED;;;;;;;;OAQG;IACH,yCAHW,UAAU,EAAE,GACV,IAAI,CAMhB;IAED;;;;;;OAMG;IACH,4BAJW,UAAU,EAAE,cACZ,QAAQ,gCACN,IAAI,CAkBhB;IAED;;;;;;;OAOG;IACH,sCAJW,KAAQ,cACR,MAAM,EAAE,GACN,IAAI,CAKhB;IAFC,mBAAoC;IAItC;;;;OAIG;IACH,gBAFa,IAAI,CAKhB;;CAEF;;;;;cAroDa,MAAM;;;;iBACN,MAAM;;;;;;;;;UAWP,MAAM;;;;WACN,MAAM;;;;WACN,MAAM,GAAG,IAAI;;;;;;;;;;cASZ,WAAW;;;;eACX,MAAM;;;;iBACN,OAAO;;;;mBACP,QAAQ;;;;iBACR,MAAM;;;;cACN,MAAM;;;;WACN,IAAI;;;;YACJ,KAAK,CAAE,IAAI,CAAC;;;;;;;;;;;;;;;;mBAIZ,MAAM;;;;WACN,MAAM;;;;WACN,MAAM;;;;;;;;;;;;;;;;;;;;iBAKN,MAAM;;;;;;;;eAEN,OAAO;;;;;;;;;;;;;;;;uBAIP,OAAO;;;;wBACP,OAAO;;;;gBACP,OAAO;;;;YACP,MAAM;;;;kBACN,OAAO;;;;iBACP,OAAO;;;;;;;;;;;;uBAGP,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;gCAsBP,OAAO;;;;mBACP,OAAO;;;;WACP,MAAM;;6BAtGS,mBAAmB"}
@@ -16,7 +16,7 @@ export class Schema {
16
16
  * @param editor Editor instance.
17
17
  * @returns Nodes schema.
18
18
  */
19
- static "__#6@#createNodesSchema"(nodeExtensions: any, attributes: any, editor: any): {
19
+ static "__#7@#createNodesSchema"(nodeExtensions: any, attributes: any, editor: any): {
20
20
  [k: string]: any;
21
21
  };
22
22
  /**
@@ -26,7 +26,7 @@ export class Schema {
26
26
  * @param editor Editor instance.
27
27
  * @returns Marks schema.
28
28
  */
29
- static "__#6@#createMarksSchema"(markExtensions: any, attributes: any, editor: any): {
29
+ static "__#7@#createMarksSchema"(markExtensions: any, attributes: any, editor: any): {
30
30
  [k: string]: any;
31
31
  };
32
32
  }
@@ -1,2 +1,2 @@
1
- export function splitListItem(typeOrName: any): (props: any) => boolean;
1
+ export function splitListItem(typeOrName: any, currentNode: any): (props: any) => boolean;
2
2
  //# sourceMappingURL=splitListItem.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"splitListItem.d.ts","sourceRoot":"","sources":["../../../src/core/commands/splitListItem.js"],"names":[],"mappings":"AAcO,iDAAuC,UAAK,aAwGlD"}
1
+ {"version":3,"file":"splitListItem.d.ts","sourceRoot":"","sources":["../../../src/core/commands/splitListItem.js"],"names":[],"mappings":"AAeO,mEAAoD,UAAK,aAuF/D"}
@@ -0,0 +1,235 @@
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
@@ -0,0 +1 @@
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"}
@@ -106,7 +106,7 @@ export class SuperConverter {
106
106
  };
107
107
  getSchema(editor: any): import("./v2/importer/docxImporter.js").PmNodeJson;
108
108
  schemaToXml(data: any, debug?: boolean): string;
109
- exportToDocx(jsonData: any, editorSchema: any, documentMedia: any, isFinalDoc: boolean, commentsExportType: any, comments: any[], editor: any): Promise<string>;
109
+ exportToDocx(jsonData: any, editorSchema: any, documentMedia: any, isFinalDoc: boolean, commentsExportType: any, comments: any[], editor: any, exportJsonOnly?: boolean): Promise<any>;
110
110
  exportToXmlJson({ data, editorSchema, comments, commentDefinitions, commentsExportType, isFinalDoc, editor, isHeaderFooter, }: {
111
111
  data: any;
112
112
  editorSchema: any;
@@ -1 +1 @@
1
- {"version":3,"file":"SuperConverter.d.ts","sourceRoot":"","sources":["../../../src/core/super-converter/SuperConverter.js"],"names":[],"mappings":"AAeA;IACE;;;;;;;;;;;;;;;;;;OAuBG;IAEH;;;;;;;;;;SAiBE;IAEF;;;;;;OAMG;IAEH,6BAAsF;IAwFtF,gDAoBC;IAED,6DAqBC;IAjID,0BA8DC;IA5DC,WAAmC;IAGnC,iBAAuB;IACvB,wBAA8B;IAG9B,iBAAsB;IACtB,UAA8B;IAC9B,WAAgC;IAEhC,WAAgC;IAEhC,eAAoB;IACpB,gBAAkB;IAGlB,4BAAoC;IAGpC,SAAsB;IAItB,cAAmB;IAInB,gBAAsB;IAGtB,iBAAuB;IAGvB,YAAiB;IACjB;;;;;MAAsE;IACtE,qBAAuB;IACvB,YAAiB;IACjB;;;;;MAAsE;IACtE,qBAAuB;IAGvB,oBAAsB;IAGtB,UAAwB;IAExB,0BAAiC;IACjC,0BAA4B;IAG5B,eAA0C;IAC1C,wBAA8B;IAG9B,gBAA4C;IAC5C,gBAA4C;IAM9C,qBAgBC;IAED,8BAEC;IA+CD;;;;;;;;;;MAwCC;IAED,2BAmDC;IAED,8BAwBC;IAED;;;;;;MAWC;IAED;;;MAgBC;IAED,2EAeC;IAED,gDAGC;IAED,gKA4DC;IAED;;;;;;;;;;;;MA8BC;;CAkNF"}
1
+ {"version":3,"file":"SuperConverter.d.ts","sourceRoot":"","sources":["../../../src/core/super-converter/SuperConverter.js"],"names":[],"mappings":"AAeA;IACE;;;;;;;;;;;;;;;;;;OAuBG;IAEH;;;;;;;;;;SAiBE;IAEF;;;;;;OAMG;IAEH,6BAAsF;IAwFtF,gDAoBC;IAED,6DAqBC;IAjID,0BA8DC;IA5DC,WAAmC;IAGnC,iBAAuB;IACvB,wBAA8B;IAG9B,iBAAsB;IACtB,UAA8B;IAC9B,WAAgC;IAEhC,WAAgC;IAEhC,eAAoB;IACpB,gBAAkB;IAGlB,4BAAoC;IAGpC,SAAsB;IAItB,cAAmB;IAInB,gBAAsB;IAGtB,iBAAuB;IAGvB,YAAiB;IACjB;;;;;MAAsE;IACtE,qBAAuB;IACvB,YAAiB;IACjB;;;;;MAAsE;IACtE,qBAAuB;IAGvB,oBAAsB;IAGtB,UAAwB;IAExB,0BAAiC;IACjC,0BAA4B;IAG5B,eAA0C;IAC1C,wBAA8B;IAG9B,gBAA4C;IAC5C,gBAA4C;IAM9C,qBAgBC;IAED,8BAEC;IA+CD;;;;;;;;;;MAwCC;IAED,2BAmDC;IAED,8BAwBC;IAED;;;;;;MAWC;IAED;;;MAgBC;IAED,2EAeC;IAED,gDAGC;IAED,uLA+DC;IAED;;;;;;;;;;;;MA8BC;;CAkNF"}
@@ -1 +1 @@
1
- {"version":3,"file":"exporter.d.ts","sourceRoot":"","sources":["../../../src/core/super-converter/exporter.js"],"names":[],"mappings":"AAwBA;;;;;GAKG;AAEH;;;;;;;;;;;;GAYG;AAEH;;;GAGG;AAEH;;;GAGG;AAEH;;;;GAIG;AAEH;;;;;GAKG;AACH,2CAHW,YAAY,GACV,YAAY,CAsCxB;AA+DD;;;;;GAKG;AACH,qDAFa,YAAY,CAyBxB;AAm5DD;;;;;;;;;EAcC;AA+FD;IACE,4BAEC;IADC,eAA0B;IAG5B,gDAGC;;CAsEF;;;;;;;;;;;;;mBArvEa,KAAQ;;;;;;UAKR,MAAM;;;;aACN,KAAK,CAAC,UAAU,CAAC;;;;;;;;;;;;;UAMjB,MAAM;;;;cACN,KAAK,CAAC,YAAY,CAAC;;;;;;;;;;;;;;;;;;;;;;UAgBnB,MAAM"}
1
+ {"version":3,"file":"exporter.d.ts","sourceRoot":"","sources":["../../../src/core/super-converter/exporter.js"],"names":[],"mappings":"AAwBA;;;;;GAKG;AAEH;;;;;;;;;;;;GAYG;AAEH;;;GAGG;AAEH;;;GAGG;AAEH;;;;GAIG;AAEH;;;;;GAKG;AACH,2CAHW,YAAY,GACV,YAAY,CAsCxB;AA+DD;;;;;GAKG;AACH,qDAFa,YAAY,CAyBxB;AAk+DD;;;;;;;;;EAcC;AA+FD;IACE,4BAEC;IADC,eAA0B;IAG5B,gDAGC;;CAsEF;;;;;;;;;;;;;mBAp0Ea,KAAQ;;;;;;UAKR,MAAM;;;;aACN,KAAK,CAAC,UAAU,CAAC;;;;;;;;;;;;;UAMjB,MAAM;;;;cACN,KAAK,CAAC,YAAY,CAAC;;;;;;;;;;;;;;;;;;;;;;UAgBnB,MAAM"}
@@ -5,6 +5,27 @@
5
5
  * @returns {boolean} Whether the node is a list or not.
6
6
  */
7
7
  export function testForList(node: XmlNode, docx: any): boolean;
8
+ /**
9
+ * Get the style tag from the style ID
10
+ *
11
+ * @param {string} styleId The style ID to search for
12
+ * @param {Object} docx The docx data
13
+ * @returns {Object} The style tag
14
+ */
15
+ export function getStyleTagFromStyleId(styleId: string, docx: any): any;
16
+ /**
17
+ * Get the num ID from the style definition
18
+ * This is a recursive function that will check the style definition for the numId
19
+ * If it doesn't exist, it will check the basedOn style definition for the numId
20
+ * This will continue until we find a numId or we run out of basedOn styles
21
+ *
22
+ * @param {Object} node The node to check
23
+ * @param {string} styleId The style ID to check
24
+ * @param {Object} docx The docx data
25
+ * @param {Set} seenStyleIds The set of style IDs we've already seen to avoid circular references
26
+ * @returns {string|null} The numId or null if not found
27
+ */
28
+ export function getNumPrRecursive({ node, styleId, docx, seenStyleIds }: any): string | null;
8
29
  /**
9
30
  * Main function to get list item information from numbering.xml
10
31
  *
@@ -16,8 +37,6 @@ export function testForList(node: XmlNode, docx: any): boolean;
16
37
  export function getNodeNumberingDefinition(item: any, level: int, docx: ParsedDocx): {
17
38
  listType?: undefined;
18
39
  listOrderingType?: undefined;
19
- ilvl?: undefined;
20
- numId?: undefined;
21
40
  listrPrs?: undefined;
22
41
  listpPrs?: undefined;
23
42
  start?: undefined;
@@ -26,14 +45,21 @@ export function getNodeNumberingDefinition(item: any, level: int, docx: ParsedDo
26
45
  } | {
27
46
  listType: string;
28
47
  listOrderingType: any;
29
- ilvl: any;
30
- numId: any;
31
48
  listrPrs: {};
32
- listpPrs: {};
49
+ listpPrs: {
50
+ indent: {};
51
+ justify: {
52
+ val: any;
53
+ };
54
+ tabStops: any[];
55
+ };
33
56
  start: any;
34
57
  lvlText: any;
35
58
  lvlJc: any;
36
59
  };
60
+ export function getDefinitionForLevel(data: any, level: any): any;
61
+ export function parseIndentElement(indElem: any): {};
62
+ export function combineIndents(ind1: any, ind2: any): {};
37
63
  /**
38
64
  * @type {import("docxImporter").NodeHandler}
39
65
  */
@@ -42,4 +68,5 @@ export const handleListNode: any;
42
68
  * @type {import("docxImporter").NodeHandlerEntry}
43
69
  */
44
70
  export const listHandlerEntity: any;
71
+ export function getAbstractDefinition(numId: any, docx: any): any;
45
72
  //# sourceMappingURL=listImporter.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"listImporter.d.ts","sourceRoot":"","sources":["../../../../../src/core/super-converter/v2/importer/listImporter.js"],"names":[],"mappings":"AAmUA;;;;;GAKG;AACH,kCAHW,OAAO,cACL,OAAO,CAkBnB;AAkND;;;;;;;GAOG;AACH,6DAJW,GAAG,QACH,UAAU;;;;;;;;;;;;;;;;;;;;EA8CpB;AAvlBD;;GAEG;AACH,iCAwCE;AAEF;;GAEG;AACH,oCAGE"}
1
+ {"version":3,"file":"listImporter.d.ts","sourceRoot":"","sources":["../../../../../src/core/super-converter/v2/importer/listImporter.js"],"names":[],"mappings":"AAmMA;;;;;GAKG;AACH,kCAHW,OAAO,cACL,OAAO,CAqCnB;AAMD;;;;;;GAMG;AACH,gDAJW,MAAM,kBAahB;AAED;;;;;;;;;;;GAWG;AACH,+EAFa,MAAM,GAAC,IAAI,CAwBvB;AAgJD;;;;;;;GAOG;AACH,6DAJW,GAAG,QACH,UAAU;;;;;;;;;;;;;;;;;;;;;;EAgDpB;AAED,kEAEC;AAED,qDAUC;AAED,yDAmBC;AAzgBD;;GAEG;AACH,iCAqBE;AAEF;;GAEG;AACH,oCAGE;AAiVK,kEAiBN"}
@@ -1 +1 @@
1
- {"version":3,"file":"paragraphNodeImporter.d.ts","sourceRoot":"","sources":["../../../../../src/core/super-converter/v2/importer/paragraphNodeImporter.js"],"names":[],"mappings":"AA0SA;;;GAGG;AACH,0DAHW,MAAM,QACN,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;EAuGpB;AAED;;;;;;GAMG;AACH,kDAHW,OAAO,EAAE,SA4CnB;AA9bD;;;;;;;GAOG;AACH,sCAqIE;AAEK;;;;;;EAwCN;AAEM;;;;;EAkDN;AAgDD;;GAEG;AACH,6CAGE"}
1
+ {"version":3,"file":"paragraphNodeImporter.d.ts","sourceRoot":"","sources":["../../../../../src/core/super-converter/v2/importer/paragraphNodeImporter.js"],"names":[],"mappings":"AA8SA;;;GAGG;AACH,0DAHW,MAAM,QACN,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;EAuGpB;AAED;;;;;;GAMG;AACH,kDAHW,OAAO,EAAE,SA4CnB;AAlcD;;;;;;;GAOG;AACH,sCAyIE;AAEK;;;;;;EAwCN;AAEM;;;;;EAkDN;AAgDD;;GAEG;AACH,6CAGE"}
@@ -1,5 +1,5 @@
1
- import "./chunks/converter-DzsjYmnd.js";
2
- import { D } from "./chunks/docx-zipper-DQONSIAh.js";
1
+ import "./chunks/converter-DdMoUfYl.js";
2
+ import { D } from "./chunks/docx-zipper-CaPhHWh0.js";
3
3
  export {
4
4
  D as default
5
5
  };
@@ -1,6 +1,6 @@
1
- import { E } from "./chunks/editor-CO-n6iZ8.js";
2
- import "./chunks/converter-DzsjYmnd.js";
3
- import "./chunks/docx-zipper-DQONSIAh.js";
1
+ import { E } from "./chunks/editor-DfrK7LO9.js";
2
+ import "./chunks/converter-DdMoUfYl.js";
3
+ import "./chunks/docx-zipper-CaPhHWh0.js";
4
4
  export {
5
5
  E as Editor
6
6
  };
@@ -1 +1 @@
1
- {"version":3,"file":"linked-styles.d.ts","sourceRoot":"","sources":["../../../src/extensions/linked-styles/linked-styles.js"],"names":[],"mappings":"AAOA,mDAAmE;AAEnE,+BAiCG;AAgFI,sHAiDN;AAaM,mDAON;AAQM,4DAON;AAEM,kDAuBN;AAEM,qDAUN;0BAnPiC,mBAAmB"}
1
+ {"version":3,"file":"linked-styles.d.ts","sourceRoot":"","sources":["../../../src/extensions/linked-styles/linked-styles.js"],"names":[],"mappings":"AAOA,mDAAmE;AAEnE,+BAoCG;AAgFI,sHAgDN;AAaM,mDAON;AAQM,4DAON;AAEM,kDAuBN;AAEM,qDAUN;0BArPiC,mBAAmB"}
@@ -0,0 +1,56 @@
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
@@ -0,0 +1 @@
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 +1 @@
1
- {"version":3,"file":"list-item.d.ts","sourceRoot":"","sources":["../../../src/extensions/list-item/list-item.js"],"names":[],"mappings":"AAKA,2BAiOG"}
1
+ {"version":3,"file":"list-item.d.ts","sourceRoot":"","sources":["../../../src/extensions/list-item/list-item.js"],"names":[],"mappings":"AAMA,2BAgPG"}
@@ -1 +1 @@
1
- {"version":3,"file":"ordered-list.d.ts","sourceRoot":"","sources":["../../../src/extensions/ordered-list/ordered-list.js"],"names":[],"mappings":"AAYA,8BAmRG"}
1
+ {"version":3,"file":"ordered-list.d.ts","sourceRoot":"","sources":["../../../src/extensions/ordered-list/ordered-list.js"],"names":[],"mappings":"AAcA,8BAmRG"}
@@ -1 +1 @@
1
- {"version":3,"file":"paragraph.d.ts","sourceRoot":"","sources":["../../../src/extensions/paragraph/paragraph.js"],"names":[],"mappings":"AAMA,4BAkJG"}
1
+ {"version":3,"file":"paragraph.d.ts","sourceRoot":"","sources":["../../../src/extensions/paragraph/paragraph.js"],"names":[],"mappings":"AAMA,4BAsJG"}
@@ -1,4 +1,4 @@
1
- import { J as JSZip } from "./chunks/docx-zipper-DQONSIAh.js";
1
+ import { J as JSZip } from "./chunks/docx-zipper-CaPhHWh0.js";
2
2
  async function createZip(blobs, fileNames) {
3
3
  const zip = new JSZip();
4
4
  blobs.forEach((blob, index) => {
@@ -418,8 +418,33 @@ to {
418
418
  .ProseMirror pre {
419
419
  white-space: pre-wrap;
420
420
  }
421
- .ProseMirror li {
422
- position: relative;
421
+ .ProseMirror ol,
422
+ .ProseMirror ul {
423
+ margin-block-start: 0;
424
+ margin-block-end: 0;
425
+ margin-inline-start: 0;
426
+ margin-inline-end: 0;
427
+ }
428
+ .ProseMirror ol,
429
+ .ProseMirror ul {
430
+ padding-inline-start: 0;
431
+ padding-left: 0 ;
432
+ }
433
+ .ProseMirror ol,
434
+ .ProseMirror ul {
435
+ /* list-style: none !important; */
436
+ }
437
+ .ProseMirror li::marker {
438
+ content: none;
439
+ }
440
+ .ProseMirror li::marker {
441
+ padding: 0;
442
+ margin: 0;
443
+ }
444
+ .ProseMirror li > p {
445
+ margin: 0;
446
+ padding: 0;
447
+ display: inline-block;
423
448
  }
424
449
  .ProseMirror.header-footer-edit > p, .ProseMirror.header-footer-edit li, .ProseMirror.header-footer-edit span {
425
450
  color: #7e7e7e !important;
@@ -452,31 +477,6 @@ to {
452
477
  .ProseMirror li:has(> ul:first-child, > ol:first-child):not(:has(> p))::marker {
453
478
  content: '';
454
479
  }
455
- .ProseMirror li::marker {
456
- font-size: var(--marker-font-size);
457
- font-family: var(--marker-font-family);
458
- }
459
- .ProseMirror li[data-marker-type] {
460
- list-style: none;
461
- display: grid;
462
- grid-template-columns: max-content 1fr;
463
- column-gap: 0.5em;
464
- align-items: start;
465
- }
466
- .ProseMirror li[data-marker-type]::marker {
467
- content: "";
468
- }
469
- .ProseMirror li[data-marker-type]::before {
470
- content: attr(data-marker-type);
471
- white-space: pre;
472
- font-size: var(--marker-font-size);
473
- font-family: var(--marker-font-family);
474
- grid-column: 1;
475
- }
476
- .ProseMirror li[data-marker-type] > * {
477
- grid-column: 2;
478
- margin: 0;
479
- }
480
480
  .ProseMirror-hideselection *::selection {
481
481
  background: transparent;
482
482
  }
@@ -901,6 +901,19 @@ on the right if it is inside shape textbox.
901
901
  .sd-editor-comment-highlight:hover {
902
902
  background-color: #1354FF55;
903
903
  }
904
+ .sd-editor-list-item-node-view {
905
+ position: relative;
906
+ }
907
+ .sd-editor-list-item-numbering {
908
+ position: absolute;
909
+ cursor: pointer;
910
+ }
911
+ .sd-editor-list-item-numbering-selected {
912
+ background-color: red;
913
+ }
914
+ .sd-editor-list-item-content-dom {
915
+
916
+ }
904
917
 
905
918
  .alignment-buttons[data-v-58d8a9bb] {
906
919
  display: flex;