@harbour-enterprises/superdoc 0.11.44 → 0.12.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.
- package/dist/chunks/super-editor.es-VeFFgSyB.cjs +451 -0
- package/dist/chunks/{super-editor.es-B8d2FNzS.es.js → super-editor.es-jrBL9mdr.es.js} +9806 -9888
- package/dist/style.css +29 -29
- package/dist/super-editor/ai-writer.es.js +2 -2
- package/dist/super-editor/chunks/{converter-CDy1Msyw.js → converter-D1a6grDV.js} +3979 -4068
- package/dist/super-editor/chunks/{docx-zipper-QLwB_17K.js → docx-zipper-L7BeJRax.js} +1 -1
- package/dist/super-editor/chunks/{editor-Do07rOjy.js → editor-BY7pz5xQ.js} +3674 -3664
- package/dist/super-editor/chunks/{toolbar-SSL9IQya.js → toolbar-DEvjPuNj.js} +2 -2
- package/dist/super-editor/converter.es.js +1 -1
- package/dist/super-editor/core/Attribute.d.ts +2 -2
- package/dist/super-editor/core/Editor.d.ts +8 -1
- package/dist/super-editor/core/Editor.d.ts.map +1 -1
- package/dist/super-editor/core/Schema.d.ts +2 -2
- package/dist/super-editor/core/commands/splitListItem.d.ts +1 -1
- package/dist/super-editor/core/commands/splitListItem.d.ts.map +1 -1
- package/dist/super-editor/core/helpers/list-numbering-helpers.d.ts +235 -0
- package/dist/super-editor/core/helpers/list-numbering-helpers.d.ts.map +1 -0
- package/dist/super-editor/core/super-converter/SuperConverter.d.ts +1 -1
- package/dist/super-editor/core/super-converter/SuperConverter.d.ts.map +1 -1
- package/dist/super-editor/core/super-converter/exporter.d.ts.map +1 -1
- package/dist/super-editor/core/super-converter/v2/importer/listImporter.d.ts +32 -5
- package/dist/super-editor/core/super-converter/v2/importer/listImporter.d.ts.map +1 -1
- package/dist/super-editor/core/super-converter/v2/importer/paragraphNodeImporter.d.ts +3 -3
- package/dist/super-editor/core/super-converter/v2/importer/paragraphNodeImporter.d.ts.map +1 -1
- package/dist/super-editor/docx-zipper.es.js +2 -2
- package/dist/super-editor/editor.es.js +3 -3
- package/dist/super-editor/extensions/linked-styles/linked-styles.d.ts.map +1 -1
- package/dist/super-editor/extensions/list-item/ListItemNodeView.d.ts +56 -0
- package/dist/super-editor/extensions/list-item/ListItemNodeView.d.ts.map +1 -0
- package/dist/super-editor/extensions/list-item/list-item.d.ts.map +1 -1
- package/dist/super-editor/extensions/ordered-list/ordered-list.d.ts.map +1 -1
- package/dist/super-editor/extensions/paragraph/paragraph.d.ts.map +1 -1
- package/dist/super-editor/file-zipper.es.js +1 -1
- package/dist/super-editor/style.css +1 -1
- package/dist/super-editor/super-editor.es.js +6 -6
- package/dist/super-editor/tests/e2e/test-app/dist/assets/index-BTMvkUyI.d.ts +3 -0
- package/dist/super-editor/tests/e2e/test-app/dist/assets/index-BTMvkUyI.d.ts.map +1 -0
- package/dist/super-editor/tests/e2e/test-app/vite.config.d.ts +1 -1
- package/dist/super-editor/tests/editor/listItemHelpers.test.d.ts +2 -0
- package/dist/super-editor/tests/editor/listItemHelpers.test.d.ts.map +1 -0
- package/dist/super-editor/tests/export/export-helpers/export-helpers.d.ts.map +1 -1
- package/dist/super-editor/toolbar.es.js +2 -2
- package/dist/super-editor.cjs +1 -1
- package/dist/super-editor.es.js +4 -4
- package/dist/superdoc.cjs +17 -17
- package/dist/superdoc.es.js +280 -280
- package/dist/superdoc.umd.js +8338 -8424
- package/dist/superdoc.umd.js.map +1 -1
- package/package.json +1 -1
- package/dist/chunks/super-editor.es-BIJBEltX.cjs +0 -455
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { computed as _, createElementBlock as ie, openBlock as q, createElementVNode as Ot, createCommentVNode as he, normalizeClass as en, normalizeStyle as Tt, ref as R, unref as W, createBlock as Ge, toDisplayString as Xn, withDirectives as ft, withKeys as Hr, withModifiers as jr, vModelText as Wr, getCurrentInstance as Lt, createVNode as ct, readonly as tn, watch as we, onMounted as Ke, onBeforeUnmount as Be, reactive as Us, onBeforeMount as fr, inject as te, onActivated as Gs, onDeactivated as oi, createTextVNode as ht, Fragment as _e, Comment as hr, defineComponent as ee, provide as Se, h as A, Teleport as Xs, toRef as se, nextTick as ii, renderSlot as qs, isVNode as Ys, shallowRef as Zs, watchEffect as pt, mergeProps as gt, Transition as nn, vShow as Js, cloneVNode as Qs, Text as el, renderList as tl, withCtx as xt } from "vue";
|
|
2
|
-
import { x as rn } from "./converter-
|
|
3
|
-
import { _ as mt, g as kt } from "./editor-
|
|
2
|
+
import { x as rn } from "./converter-D1a6grDV.js";
|
|
3
|
+
import { _ as mt, g as kt } from "./editor-BY7pz5xQ.js";
|
|
4
4
|
const I0 = (e, t) => {
|
|
5
5
|
let n = e.replace(/[^0-9.]/g, "");
|
|
6
6
|
return n = parseFloat(n), isNaN(n) && (n = t), n = parseFloat(n), n;
|
|
@@ -15,14 +15,14 @@ export class Attribute {
|
|
|
15
15
|
* @param defaultAttribute Default attribute.
|
|
16
16
|
* @returns Global extension attributes.
|
|
17
17
|
*/
|
|
18
|
-
static "__#
|
|
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 "__#
|
|
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
|
|
@@ -385,7 +388,7 @@ export class Editor extends EventEmitter {
|
|
|
385
388
|
* @param {Array} [options.comments=[]] - Array of comments to include in the document
|
|
386
389
|
* @returns {Promise<Blob|ArrayBuffer>} The exported DOCX file
|
|
387
390
|
*/
|
|
388
|
-
exportDocx({ isFinalDoc, commentsType, comments }?: {
|
|
391
|
+
exportDocx({ isFinalDoc, commentsType, exportJsonOnly, exportXmlOnly, comments }?: {
|
|
389
392
|
isFinalDoc?: boolean;
|
|
390
393
|
commentsType?: string;
|
|
391
394
|
comments?: any[];
|
|
@@ -467,6 +470,10 @@ export type User = {
|
|
|
467
470
|
*/
|
|
468
471
|
image: string | null;
|
|
469
472
|
};
|
|
473
|
+
/**
|
|
474
|
+
* A JSON representation of a docx node
|
|
475
|
+
*/
|
|
476
|
+
export type DocxNode = any;
|
|
470
477
|
export type EditorOptions = {
|
|
471
478
|
/**
|
|
472
479
|
* - 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;
|
|
1
|
+
{"version":3,"file":"Editor.d.ts","sourceRoot":"","sources":["../../src/core/Editor.js"],"names":[],"mappings":"AA0BA;;;;GAIG;AAEH;;;;;GAKG;AACH;;;;;EAKE;AAEF;;GAEG;AAEH;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAuDG;AAEH;;;;GAIG;AACH;IA6nBE;;;;;;;;;;;;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;IA6mBD;;;;;OAKG;IACH,2CAFa,OAAO,CAOnB;IAzrCD;;;;OAIG;IACH,qB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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;6BA3EQ,mBAAmB"}
|
|
@@ -16,7 +16,7 @@ export class Schema {
|
|
|
16
16
|
* @param editor Editor instance.
|
|
17
17
|
* @returns Nodes schema.
|
|
18
18
|
*/
|
|
19
|
-
static "__#
|
|
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 "__#
|
|
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":"
|
|
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"}
|
|
@@ -104,7 +104,7 @@ export class SuperConverter {
|
|
|
104
104
|
};
|
|
105
105
|
getSchema(editor: any): import("./v2/importer/docxImporter.js").PmNodeJson;
|
|
106
106
|
schemaToXml(data: any, debug?: boolean): string;
|
|
107
|
-
exportToDocx(jsonData: any, editorSchema: any, documentMedia: any, isFinalDoc: boolean, commentsExportType: any, comments: any[], editor: any): Promise<
|
|
107
|
+
exportToDocx(jsonData: any, editorSchema: any, documentMedia: any, isFinalDoc: boolean, commentsExportType: any, comments: any[], editor: any, exportJsonOnly?: boolean): Promise<any>;
|
|
108
108
|
exportToXmlJson({ data, editorSchema, comments, commentDefinitions, commentsExportType, isFinalDoc, editor, }: {
|
|
109
109
|
data: any;
|
|
110
110
|
editorSchema: any;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SuperConverter.d.ts","sourceRoot":"","sources":["../../../src/core/super-converter/SuperConverter.js"],"names":[],"mappings":"AAcA;IACE;;;;;;;;;;;;;;;;;;OAuBG;IAEH;;;;;;;;;;SAiBE;IAEF;;;;;;OAMG;IAEH,6BAAsF;IAsFtF,gDAoBC;IAED,6DAqBC;IA/HD,0BA4DC;IA1DC,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,YAAiB;IACjB;;;;;MAAsE;IAGtE,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,
|
|
1
|
+
{"version":3,"file":"SuperConverter.d.ts","sourceRoot":"","sources":["../../../src/core/super-converter/SuperConverter.js"],"names":[],"mappings":"AAcA;IACE;;;;;;;;;;;;;;;;;;OAuBG;IAEH;;;;;;;;;;SAiBE;IAEF;;;;;;OAMG;IAEH,6BAAsF;IAsFtF,gDAoBC;IAED,6DAqBC;IA/HD,0BA4DC;IA1DC,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,YAAiB;IACjB;;;;;MAAsE;IAGtE,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,uLA6DC;IAED;;;;;;;;;;;MA4BC;;CAgFF"}
|
|
@@ -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,CAqCxB;AA8BD;;;;;GAKG;AACH,qDAFa,YAAY,CAyBxB;
|
|
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,CAqCxB;AA8BD;;;;;GAKG;AACH,qDAFa,YAAY,CAyBxB;AA62DD;;;;;;;;;EAaC;AA+FD;IACE,4BAEC;IADC,eAA0B;IAG5B,gDAGC;;CAsEF;;;;;;;;;;;;;mBA5qEa,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":"
|
|
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"}
|
|
@@ -54,10 +54,10 @@ export function getParagraphIndent(node: any, docx: any, styleId?: string): {
|
|
|
54
54
|
textIndent: number;
|
|
55
55
|
};
|
|
56
56
|
export function getParagraphSpacing(node: any, docx: any, styleId?: string, marks?: any[]): {
|
|
57
|
-
|
|
58
|
-
lineSpaceBefore: number;
|
|
59
|
-
line: number;
|
|
57
|
+
line: string | number;
|
|
60
58
|
lineRule: any;
|
|
59
|
+
lineSpaceBefore: number;
|
|
60
|
+
lineSpaceAfter: number;
|
|
61
61
|
};
|
|
62
62
|
/**
|
|
63
63
|
* @type {import("docxImporter").NodeHandlerEntry}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"paragraphNodeImporter.d.ts","sourceRoot":"","sources":["../../../../../src/core/super-converter/v2/importer/paragraphNodeImporter.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"paragraphNodeImporter.d.ts","sourceRoot":"","sources":["../../../../../src/core/super-converter/v2/importer/paragraphNodeImporter.js"],"names":[],"mappings":"AAwSA;;;GAGG;AACH,0DAHW,MAAM,QACN,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;EAuGpB;AAED;;;;;;GAMG;AACH,kDAHW,OAAO,EAAE,SA4CnB;AA5bD;;;;;;;GAOG;AACH,sCAwIE;AAEK;;;;;;EAwCN;AAEM;;;;;EA6CN;AAgDD;;GAEG;AACH,6CAGE"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { E as m } from "./chunks/editor-
|
|
2
|
-
import "./chunks/converter-
|
|
3
|
-
import "./chunks/docx-zipper-
|
|
1
|
+
import { E as m } from "./chunks/editor-BY7pz5xQ.js";
|
|
2
|
+
import "./chunks/converter-D1a6grDV.js";
|
|
3
|
+
import "./chunks/docx-zipper-L7BeJRax.js";
|
|
4
4
|
export {
|
|
5
5
|
m 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,+
|
|
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;IAiCpB,mBAAuC;IAMvC,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;;;;;WAhPa,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,
|
|
1
|
+
{"version":3,"file":"list-item.d.ts","sourceRoot":"","sources":["../../../src/extensions/list-item/list-item.js"],"names":[],"mappings":"AAKA,2BAsHG"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ordered-list.d.ts","sourceRoot":"","sources":["../../../src/extensions/ordered-list/ordered-list.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ordered-list.d.ts","sourceRoot":"","sources":["../../../src/extensions/ordered-list/ordered-list.js"],"names":[],"mappings":"AAcA,8BA2QG"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"paragraph.d.ts","sourceRoot":"","sources":["../../../src/extensions/paragraph/paragraph.js"],"names":[],"mappings":"AAKA,
|
|
1
|
+
{"version":3,"file":"paragraph.d.ts","sourceRoot":"","sources":["../../../src/extensions/paragraph/paragraph.js"],"names":[],"mappings":"AAKA,4BAqJG"}
|