@harbour-enterprises/superdoc 0.6.10 → 0.6.11
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-BDSHdpjP.js → super-editor.es-n8lS5QnA.js} +679 -5
- package/dist/chunks/{super-editor.es-BDSHdpjP.js.map → super-editor.es-n8lS5QnA.js.map} +1 -1
- package/dist/super-editor/chunks/{converter-6mfBech5.js → converter-BA8jbeZU.js} +674 -3
- package/dist/super-editor/chunks/{converter-6mfBech5.js.map → converter-BA8jbeZU.js.map} +1 -1
- package/dist/super-editor/chunks/{docx-zipper-Dnp61dGQ.js → docx-zipper-Crq6kHku.js} +2 -2
- package/dist/super-editor/chunks/{docx-zipper-Dnp61dGQ.js.map → docx-zipper-Crq6kHku.js.map} +1 -1
- package/dist/super-editor/chunks/{editor-B-egQeTe.js → editor-S_v8wD_U.js} +8 -5
- package/dist/super-editor/chunks/editor-S_v8wD_U.js.map +1 -0
- package/dist/super-editor/chunks/{toolbar-DBqSp9Eo.js → toolbar-BBp1B1nW.js} +3 -3
- package/dist/super-editor/chunks/{toolbar-DBqSp9Eo.js.map → toolbar-BBp1B1nW.js.map} +1 -1
- package/dist/super-editor/converter.es.js +1 -1
- package/dist/super-editor/core/Editor.d.ts.map +1 -1
- package/dist/super-editor/core/super-converter/SuperConverter.d.ts.map +1 -1
- package/dist/super-editor/core/super-converter/exporter-docx-defs.d.ts +447 -0
- package/dist/super-editor/core/super-converter/v2/importer/docxImporter.d.ts +10 -0
- package/dist/super-editor/core/super-converter/v2/importer/docxImporter.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/file-zipper.es.js +1 -1
- package/dist/super-editor/super-editor.es.js +6 -6
- package/dist/super-editor/tests/import/docxImporter.test.d.ts +2 -0
- package/dist/super-editor/tests/import/docxImporter.test.d.ts.map +1 -0
- package/dist/super-editor/toolbar.es.js +2 -2
- package/dist/super-editor.es.js +1 -1
- package/dist/superdoc.es.js +3 -3
- package/package.json +1 -1
- package/dist/super-editor/chunks/editor-B-egQeTe.js.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Editor.d.ts","sourceRoot":"","sources":["../../src/core/Editor.js"],"names":[],"mappings":"AAmBA;;GAEG;AACH;IA+cE;;;OAGG;IACH,oDAQC;IAED,6CAGC;IAED,8DAGC;
|
|
1
|
+
{"version":3,"file":"Editor.d.ts","sourceRoot":"","sources":["../../src/core/Editor.js"],"names":[],"mappings":"AAmBA;;GAEG;AACH;IA+cE;;;OAGG;IACH,oDAQC;IAED,6CAGC;IAED,8DAGC;IA4cD,sDAKC;IA92BD,0BAkBC;IAvFD,sBAAiB;IAEjB,qBAAsB;IAEtB,YAAO;IAEP,UAAK;IAEL,mBAAkB;IAIlB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAuDE;IAyGF,+BAEC;IADC,aAAsB;IAgBxB;;OAEG;IACH,iBAEC;IAED;;OAEG;IACH,kBAEC;IAED;;OAEG;IACH,oBAEC;IAED;;OAEG;IACH,sBAEC;IAED;;OAEG;IACH,uBAEC;IAED;;OAEG;IACH,mBAEC;IAED;;OAEG;IACH,mBAEC;IAED;;OAEG;IACH,aAEC;IAED;;OAEG;IACH,WAEC;IAED,yCA8BC;IAED;;;OAGG;IACH,oCAoBC;IAqBD;;;OAGG;IACH,+BAeC;IAED;;;;OAIG;IACH,uDAMC;IAED;;;;OAIG;IACH,sDAQC;IAED;;;OAGG;IACH,6CAUC;IA+BG,eAAuC;IAkI3C;;OAEG;IACH,wBAIC;IAED;;;;;;MAcC;IAED;;;;OAIG;IACH,uCA+CC;IAED,qCAgDC;IAoHD;;;;OAIG;IACH,oCAEC;IAED;;;;;;OAMG;IACH,qEAKC;IAED;;OAEG;IACH,eAEC;IAED;;OAEG;IACH,kBAMC;IAED;;OAEG;IACH,qBAEC;IAED;;;;;;OAMG;IACH,iCAHG;QAAuB,WAAW;KAClC,GAAU,IAAI,CAiBhB;IAED;;OAEG;IACH;;;qBAiDC;IAYD;;OAEG;IACH,gBAKC;IASD;;;;OAIG;IACH,kCAFa,CAAC,CAAC,GAAG,GAAG,SAAS,CA8B7B;IAED,yCAmBC;;CACF;6BAjgC4B,mBAAmB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SuperConverter.d.ts","sourceRoot":"","sources":["../../../src/core/super-converter/SuperConverter.js"],"names":[],"mappings":"AAUA;IACE;;;;;;;;;;;;;;;;;;OAuBG;IAEH;;;;;;;;;;SAiBE;IAEF;;;;;;OAMG;IAEH,6BAAsF;
|
|
1
|
+
{"version":3,"file":"SuperConverter.d.ts","sourceRoot":"","sources":["../../../src/core/super-converter/SuperConverter.js"],"names":[],"mappings":"AAUA;IACE;;;;;;;;;;;;;;;;;;OAuBG;IAEH;;;;;;;;;;SAiBE;IAEF;;;;;;OAMG;IAEH,6BAAsF;IAiFtF,gDAoBC;IAED,6DAqBC;IA1HD,0BAuDC;IArDC,WAAmC;IAGnC,iBAAuB;IACvB,wBAA8B;IAG9B,iBAAsB;IACtB,UAA8B;IAC9B,WAAgC;IAEhC,eAAoB;IACpB,gBAAkB;IAGlB,4BAAoC;IAGpC,SAAsB;IAItB,eAAqB;IACrB,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;;;;;;;;;;MAqCC;IAED,8BAwBC;IAED;;;;;;MAWC;IAED;;;MAgBC;IAED,2EAcC;IAED,+BAGC;IAED,oJA+CC;;CAqDF"}
|
|
@@ -129,4 +129,451 @@ export namespace COMMENT_REF {
|
|
|
129
129
|
})[];
|
|
130
130
|
export { elements_3 as elements };
|
|
131
131
|
}
|
|
132
|
+
export namespace DEFAULT_LINKED_STYLES {
|
|
133
|
+
namespace Normal {
|
|
134
|
+
let type_1: string;
|
|
135
|
+
export { type_1 as type };
|
|
136
|
+
let name_1: string;
|
|
137
|
+
export { name_1 as name };
|
|
138
|
+
let attributes_1: {
|
|
139
|
+
'w:type': string;
|
|
140
|
+
'w:default': string;
|
|
141
|
+
'w:styleId': string;
|
|
142
|
+
};
|
|
143
|
+
export { attributes_1 as attributes };
|
|
144
|
+
let elements_4: ({
|
|
145
|
+
type: string;
|
|
146
|
+
name: string;
|
|
147
|
+
attributes: {
|
|
148
|
+
'w:val': string;
|
|
149
|
+
};
|
|
150
|
+
} | {
|
|
151
|
+
type: string;
|
|
152
|
+
name: string;
|
|
153
|
+
attributes?: undefined;
|
|
154
|
+
})[];
|
|
155
|
+
export { elements_4 as elements };
|
|
156
|
+
}
|
|
157
|
+
namespace Title {
|
|
158
|
+
let type_2: string;
|
|
159
|
+
export { type_2 as type };
|
|
160
|
+
let name_2: string;
|
|
161
|
+
export { name_2 as name };
|
|
162
|
+
let attributes_2: {
|
|
163
|
+
'w:type': string;
|
|
164
|
+
'w:styleId': string;
|
|
165
|
+
};
|
|
166
|
+
export { attributes_2 as attributes };
|
|
167
|
+
let elements_5: ({
|
|
168
|
+
type: string;
|
|
169
|
+
name: string;
|
|
170
|
+
attributes: {
|
|
171
|
+
'w:val': string;
|
|
172
|
+
};
|
|
173
|
+
elements?: undefined;
|
|
174
|
+
} | {
|
|
175
|
+
type: string;
|
|
176
|
+
name: string;
|
|
177
|
+
attributes?: undefined;
|
|
178
|
+
elements?: undefined;
|
|
179
|
+
} | {
|
|
180
|
+
type: string;
|
|
181
|
+
name: string;
|
|
182
|
+
elements: ({
|
|
183
|
+
type: string;
|
|
184
|
+
name: string;
|
|
185
|
+
attributes: {
|
|
186
|
+
'w:after': string;
|
|
187
|
+
};
|
|
188
|
+
} | {
|
|
189
|
+
type: string;
|
|
190
|
+
name: string;
|
|
191
|
+
attributes?: undefined;
|
|
192
|
+
})[];
|
|
193
|
+
attributes?: undefined;
|
|
194
|
+
} | {
|
|
195
|
+
type: string;
|
|
196
|
+
name: string;
|
|
197
|
+
elements: ({
|
|
198
|
+
type: string;
|
|
199
|
+
name: string;
|
|
200
|
+
attributes: {
|
|
201
|
+
'w:asciiTheme': string;
|
|
202
|
+
'w:eastAsiaTheme': string;
|
|
203
|
+
'w:hAnsiTheme': string;
|
|
204
|
+
'w:cstheme': string;
|
|
205
|
+
'w:val'?: undefined;
|
|
206
|
+
};
|
|
207
|
+
} | {
|
|
208
|
+
type: string;
|
|
209
|
+
name: string;
|
|
210
|
+
attributes: {
|
|
211
|
+
'w:val': string;
|
|
212
|
+
'w:asciiTheme'?: undefined;
|
|
213
|
+
'w:eastAsiaTheme'?: undefined;
|
|
214
|
+
'w:hAnsiTheme'?: undefined;
|
|
215
|
+
'w:cstheme'?: undefined;
|
|
216
|
+
};
|
|
217
|
+
})[];
|
|
218
|
+
attributes?: undefined;
|
|
219
|
+
})[];
|
|
220
|
+
export { elements_5 as elements };
|
|
221
|
+
}
|
|
222
|
+
namespace Subtitle {
|
|
223
|
+
let type_3: string;
|
|
224
|
+
export { type_3 as type };
|
|
225
|
+
let name_3: string;
|
|
226
|
+
export { name_3 as name };
|
|
227
|
+
let attributes_3: {
|
|
228
|
+
'w:type': string;
|
|
229
|
+
'w:styleId': string;
|
|
230
|
+
};
|
|
231
|
+
export { attributes_3 as attributes };
|
|
232
|
+
let elements_6: ({
|
|
233
|
+
type: string;
|
|
234
|
+
name: string;
|
|
235
|
+
attributes: {
|
|
236
|
+
'w:val': string;
|
|
237
|
+
};
|
|
238
|
+
elements?: undefined;
|
|
239
|
+
} | {
|
|
240
|
+
type: string;
|
|
241
|
+
name: string;
|
|
242
|
+
attributes?: undefined;
|
|
243
|
+
elements?: undefined;
|
|
244
|
+
} | {
|
|
245
|
+
type: string;
|
|
246
|
+
name: string;
|
|
247
|
+
elements: ({
|
|
248
|
+
type: string;
|
|
249
|
+
name: string;
|
|
250
|
+
elements: {
|
|
251
|
+
type: string;
|
|
252
|
+
name: string;
|
|
253
|
+
attributes: {
|
|
254
|
+
'w:val': string;
|
|
255
|
+
};
|
|
256
|
+
}[];
|
|
257
|
+
attributes?: undefined;
|
|
258
|
+
} | {
|
|
259
|
+
type: string;
|
|
260
|
+
name: string;
|
|
261
|
+
attributes: {
|
|
262
|
+
'w:after': string;
|
|
263
|
+
};
|
|
264
|
+
elements?: undefined;
|
|
265
|
+
})[];
|
|
266
|
+
attributes?: undefined;
|
|
267
|
+
} | {
|
|
268
|
+
type: string;
|
|
269
|
+
name: string;
|
|
270
|
+
elements: ({
|
|
271
|
+
type: string;
|
|
272
|
+
name: string;
|
|
273
|
+
attributes: {
|
|
274
|
+
'w:asciiTheme': string;
|
|
275
|
+
'w:eastAsiaTheme': string;
|
|
276
|
+
'w:hAnsiTheme': string;
|
|
277
|
+
'w:cstheme': string;
|
|
278
|
+
'w:val'?: undefined;
|
|
279
|
+
'w:themeColor'?: undefined;
|
|
280
|
+
'w:themeTint'?: undefined;
|
|
281
|
+
};
|
|
282
|
+
} | {
|
|
283
|
+
type: string;
|
|
284
|
+
name: string;
|
|
285
|
+
attributes: {
|
|
286
|
+
'w:val': string;
|
|
287
|
+
'w:themeColor': string;
|
|
288
|
+
'w:themeTint': string;
|
|
289
|
+
'w:asciiTheme'?: undefined;
|
|
290
|
+
'w:eastAsiaTheme'?: undefined;
|
|
291
|
+
'w:hAnsiTheme'?: undefined;
|
|
292
|
+
'w:cstheme'?: undefined;
|
|
293
|
+
};
|
|
294
|
+
} | {
|
|
295
|
+
type: string;
|
|
296
|
+
name: string;
|
|
297
|
+
attributes: {
|
|
298
|
+
'w:val': string;
|
|
299
|
+
'w:asciiTheme'?: undefined;
|
|
300
|
+
'w:eastAsiaTheme'?: undefined;
|
|
301
|
+
'w:hAnsiTheme'?: undefined;
|
|
302
|
+
'w:cstheme'?: undefined;
|
|
303
|
+
'w:themeColor'?: undefined;
|
|
304
|
+
'w:themeTint'?: undefined;
|
|
305
|
+
};
|
|
306
|
+
})[];
|
|
307
|
+
attributes?: undefined;
|
|
308
|
+
})[];
|
|
309
|
+
export { elements_6 as elements };
|
|
310
|
+
}
|
|
311
|
+
namespace Heading1 {
|
|
312
|
+
let type_4: string;
|
|
313
|
+
export { type_4 as type };
|
|
314
|
+
let name_4: string;
|
|
315
|
+
export { name_4 as name };
|
|
316
|
+
let attributes_4: {
|
|
317
|
+
'w:type': string;
|
|
318
|
+
'w:styleId': string;
|
|
319
|
+
};
|
|
320
|
+
export { attributes_4 as attributes };
|
|
321
|
+
let elements_7: ({
|
|
322
|
+
type: string;
|
|
323
|
+
name: string;
|
|
324
|
+
attributes: {
|
|
325
|
+
'w:val': string;
|
|
326
|
+
};
|
|
327
|
+
elements?: undefined;
|
|
328
|
+
} | {
|
|
329
|
+
type: string;
|
|
330
|
+
name: string;
|
|
331
|
+
attributes?: undefined;
|
|
332
|
+
elements?: undefined;
|
|
333
|
+
} | {
|
|
334
|
+
type: string;
|
|
335
|
+
name: string;
|
|
336
|
+
elements: ({
|
|
337
|
+
type: string;
|
|
338
|
+
name: string;
|
|
339
|
+
attributes?: undefined;
|
|
340
|
+
} | {
|
|
341
|
+
type: string;
|
|
342
|
+
name: string;
|
|
343
|
+
attributes: {
|
|
344
|
+
'w:before': string;
|
|
345
|
+
'w:after': string;
|
|
346
|
+
'w:val'?: undefined;
|
|
347
|
+
};
|
|
348
|
+
} | {
|
|
349
|
+
type: string;
|
|
350
|
+
name: string;
|
|
351
|
+
attributes: {
|
|
352
|
+
'w:val': string;
|
|
353
|
+
'w:before'?: undefined;
|
|
354
|
+
'w:after'?: undefined;
|
|
355
|
+
};
|
|
356
|
+
})[];
|
|
357
|
+
attributes?: undefined;
|
|
358
|
+
} | {
|
|
359
|
+
type: string;
|
|
360
|
+
name: string;
|
|
361
|
+
elements: ({
|
|
362
|
+
type: string;
|
|
363
|
+
name: string;
|
|
364
|
+
attributes: {
|
|
365
|
+
'w:asciiTheme': string;
|
|
366
|
+
'w:eastAsiaTheme': string;
|
|
367
|
+
'w:hAnsiTheme': string;
|
|
368
|
+
'w:cstheme': string;
|
|
369
|
+
'w:val'?: undefined;
|
|
370
|
+
'w:themeColor'?: undefined;
|
|
371
|
+
'w:themeShade'?: undefined;
|
|
372
|
+
};
|
|
373
|
+
} | {
|
|
374
|
+
type: string;
|
|
375
|
+
name: string;
|
|
376
|
+
attributes: {
|
|
377
|
+
'w:val': string;
|
|
378
|
+
'w:themeColor': string;
|
|
379
|
+
'w:themeShade': string;
|
|
380
|
+
'w:asciiTheme'?: undefined;
|
|
381
|
+
'w:eastAsiaTheme'?: undefined;
|
|
382
|
+
'w:hAnsiTheme'?: undefined;
|
|
383
|
+
'w:cstheme'?: undefined;
|
|
384
|
+
};
|
|
385
|
+
} | {
|
|
386
|
+
type: string;
|
|
387
|
+
name: string;
|
|
388
|
+
attributes: {
|
|
389
|
+
'w:val': string;
|
|
390
|
+
'w:asciiTheme'?: undefined;
|
|
391
|
+
'w:eastAsiaTheme'?: undefined;
|
|
392
|
+
'w:hAnsiTheme'?: undefined;
|
|
393
|
+
'w:cstheme'?: undefined;
|
|
394
|
+
'w:themeColor'?: undefined;
|
|
395
|
+
'w:themeShade'?: undefined;
|
|
396
|
+
};
|
|
397
|
+
})[];
|
|
398
|
+
attributes?: undefined;
|
|
399
|
+
})[];
|
|
400
|
+
export { elements_7 as elements };
|
|
401
|
+
}
|
|
402
|
+
namespace Heading2 {
|
|
403
|
+
let type_5: string;
|
|
404
|
+
export { type_5 as type };
|
|
405
|
+
let name_5: string;
|
|
406
|
+
export { name_5 as name };
|
|
407
|
+
let attributes_5: {
|
|
408
|
+
'w:type': string;
|
|
409
|
+
'w:styleId': string;
|
|
410
|
+
};
|
|
411
|
+
export { attributes_5 as attributes };
|
|
412
|
+
let elements_8: ({
|
|
413
|
+
type: string;
|
|
414
|
+
name: string;
|
|
415
|
+
attributes: {
|
|
416
|
+
'w:val': string;
|
|
417
|
+
};
|
|
418
|
+
elements?: undefined;
|
|
419
|
+
} | {
|
|
420
|
+
type: string;
|
|
421
|
+
name: string;
|
|
422
|
+
attributes?: undefined;
|
|
423
|
+
elements?: undefined;
|
|
424
|
+
} | {
|
|
425
|
+
type: string;
|
|
426
|
+
name: string;
|
|
427
|
+
elements: ({
|
|
428
|
+
type: string;
|
|
429
|
+
name: string;
|
|
430
|
+
attributes?: undefined;
|
|
431
|
+
} | {
|
|
432
|
+
type: string;
|
|
433
|
+
name: string;
|
|
434
|
+
attributes: {
|
|
435
|
+
'w:before': string;
|
|
436
|
+
'w:after': string;
|
|
437
|
+
'w:val'?: undefined;
|
|
438
|
+
};
|
|
439
|
+
} | {
|
|
440
|
+
type: string;
|
|
441
|
+
name: string;
|
|
442
|
+
attributes: {
|
|
443
|
+
'w:val': string;
|
|
444
|
+
'w:before'?: undefined;
|
|
445
|
+
'w:after'?: undefined;
|
|
446
|
+
};
|
|
447
|
+
})[];
|
|
448
|
+
attributes?: undefined;
|
|
449
|
+
} | {
|
|
450
|
+
type: string;
|
|
451
|
+
name: string;
|
|
452
|
+
elements: ({
|
|
453
|
+
type: string;
|
|
454
|
+
name: string;
|
|
455
|
+
attributes: {
|
|
456
|
+
'w:asciiTheme': string;
|
|
457
|
+
'w:eastAsiaTheme': string;
|
|
458
|
+
'w:hAnsiTheme': string;
|
|
459
|
+
'w:cstheme': string;
|
|
460
|
+
'w:val'?: undefined;
|
|
461
|
+
'w:themeColor'?: undefined;
|
|
462
|
+
'w:themeShade'?: undefined;
|
|
463
|
+
};
|
|
464
|
+
} | {
|
|
465
|
+
type: string;
|
|
466
|
+
name: string;
|
|
467
|
+
attributes: {
|
|
468
|
+
'w:val': string;
|
|
469
|
+
'w:themeColor': string;
|
|
470
|
+
'w:themeShade': string;
|
|
471
|
+
'w:asciiTheme'?: undefined;
|
|
472
|
+
'w:eastAsiaTheme'?: undefined;
|
|
473
|
+
'w:hAnsiTheme'?: undefined;
|
|
474
|
+
'w:cstheme'?: undefined;
|
|
475
|
+
};
|
|
476
|
+
} | {
|
|
477
|
+
type: string;
|
|
478
|
+
name: string;
|
|
479
|
+
attributes: {
|
|
480
|
+
'w:val': string;
|
|
481
|
+
'w:asciiTheme'?: undefined;
|
|
482
|
+
'w:eastAsiaTheme'?: undefined;
|
|
483
|
+
'w:hAnsiTheme'?: undefined;
|
|
484
|
+
'w:cstheme'?: undefined;
|
|
485
|
+
'w:themeColor'?: undefined;
|
|
486
|
+
'w:themeShade'?: undefined;
|
|
487
|
+
};
|
|
488
|
+
})[];
|
|
489
|
+
attributes?: undefined;
|
|
490
|
+
})[];
|
|
491
|
+
export { elements_8 as elements };
|
|
492
|
+
}
|
|
493
|
+
namespace Heading3 {
|
|
494
|
+
let type_6: string;
|
|
495
|
+
export { type_6 as type };
|
|
496
|
+
let name_6: string;
|
|
497
|
+
export { name_6 as name };
|
|
498
|
+
let attributes_6: {
|
|
499
|
+
'w:type': string;
|
|
500
|
+
'w:styleId': string;
|
|
501
|
+
};
|
|
502
|
+
export { attributes_6 as attributes };
|
|
503
|
+
let elements_9: ({
|
|
504
|
+
type: string;
|
|
505
|
+
name: string;
|
|
506
|
+
attributes: {
|
|
507
|
+
'w:val': string;
|
|
508
|
+
};
|
|
509
|
+
elements?: undefined;
|
|
510
|
+
} | {
|
|
511
|
+
type: string;
|
|
512
|
+
name: string;
|
|
513
|
+
attributes?: undefined;
|
|
514
|
+
elements?: undefined;
|
|
515
|
+
} | {
|
|
516
|
+
type: string;
|
|
517
|
+
name: string;
|
|
518
|
+
elements: ({
|
|
519
|
+
type: string;
|
|
520
|
+
name: string;
|
|
521
|
+
attributes?: undefined;
|
|
522
|
+
} | {
|
|
523
|
+
type: string;
|
|
524
|
+
name: string;
|
|
525
|
+
attributes: {
|
|
526
|
+
'w:before': string;
|
|
527
|
+
'w:after': string;
|
|
528
|
+
'w:val'?: undefined;
|
|
529
|
+
};
|
|
530
|
+
} | {
|
|
531
|
+
type: string;
|
|
532
|
+
name: string;
|
|
533
|
+
attributes: {
|
|
534
|
+
'w:val': string;
|
|
535
|
+
'w:before'?: undefined;
|
|
536
|
+
'w:after'?: undefined;
|
|
537
|
+
};
|
|
538
|
+
})[];
|
|
539
|
+
attributes?: undefined;
|
|
540
|
+
} | {
|
|
541
|
+
type: string;
|
|
542
|
+
name: string;
|
|
543
|
+
elements: ({
|
|
544
|
+
type: string;
|
|
545
|
+
name: string;
|
|
546
|
+
attributes: {
|
|
547
|
+
'w:eastAsiaTheme': string;
|
|
548
|
+
'w:cstheme': string;
|
|
549
|
+
'w:val'?: undefined;
|
|
550
|
+
'w:themeColor'?: undefined;
|
|
551
|
+
'w:themeShade'?: undefined;
|
|
552
|
+
};
|
|
553
|
+
} | {
|
|
554
|
+
type: string;
|
|
555
|
+
name: string;
|
|
556
|
+
attributes: {
|
|
557
|
+
'w:val': string;
|
|
558
|
+
'w:themeColor': string;
|
|
559
|
+
'w:themeShade': string;
|
|
560
|
+
'w:eastAsiaTheme'?: undefined;
|
|
561
|
+
'w:cstheme'?: undefined;
|
|
562
|
+
};
|
|
563
|
+
} | {
|
|
564
|
+
type: string;
|
|
565
|
+
name: string;
|
|
566
|
+
attributes: {
|
|
567
|
+
'w:val': string;
|
|
568
|
+
'w:eastAsiaTheme'?: undefined;
|
|
569
|
+
'w:cstheme'?: undefined;
|
|
570
|
+
'w:themeColor'?: undefined;
|
|
571
|
+
'w:themeShade'?: undefined;
|
|
572
|
+
};
|
|
573
|
+
})[];
|
|
574
|
+
attributes?: undefined;
|
|
575
|
+
})[];
|
|
576
|
+
export { elements_9 as elements };
|
|
577
|
+
}
|
|
578
|
+
}
|
|
132
579
|
//# sourceMappingURL=exporter-docx-defs.d.ts.map
|
|
@@ -1,3 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Add default styles if missing. Default styles are:
|
|
3
|
+
*
|
|
4
|
+
* Normal, Title, Subtitle, Heading1, Heading2, Heading3
|
|
5
|
+
*
|
|
6
|
+
* Does not mutate the original docx object
|
|
7
|
+
* @param {Object} styles The parsed docx styles [word/styles.xml]
|
|
8
|
+
* @returns {Object | null} The updated styles object with default styles
|
|
9
|
+
*/
|
|
10
|
+
export function addDefaultStylesIfMissing(styles: any): any | null;
|
|
1
11
|
export function createDocumentJson(docx: ParsedDocx, converter: SuperConverter, editor: Editor): {
|
|
2
12
|
pmDoc: PmNodeJson;
|
|
3
13
|
savedTagsToRestore: XmlNode;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"docxImporter.d.ts","sourceRoot":"","sources":["../../../../../src/core/super-converter/v2/importer/docxImporter.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"docxImporter.d.ts","sourceRoot":"","sources":["../../../../../src/core/super-converter/v2/importer/docxImporter.js"],"names":[],"mappings":"AA+WA;;;;;;;;GAQG;AACH,wDAFa,MAAS,IAAI,CAiBzB;AAhWM,yCALI,UAAU,aACV,cAAc,UACd,MAAM,GACJ;IAAC,KAAK,EAAE,UAAU,CAAC;IAAC,kBAAkB,EAAE,OAAO,CAAC;IAAC,UAAU,EAAE,GAAC,CAAA;CAAC,GAAC,IAAI,CA2EhF;AAEM;;;;;;;;;;EAsBN;sBAnHY,OAAO,GAAA,CAAC;yBACR;IAAC,IAAI,EAAE,MAAM,CAAC;IAAC,OAAO,EAAE,GAAC,CAAC;IAAC,KAAK,EAAE,EAAE,CAAA;CAAC;yBACrC;IAAC,IAAI,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,EAAE,CAAA;CAAC;gCAEzB,CAAC,KAAK,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,UAAU,EAAE,kBAAkB,EAAE,OAAO,KAAK,UAAU,EAAE;8BACjF;IAAC,OAAO,EAAE,iBAAiB,CAAC;IAAC,eAAe,EAAE,gBAAgB,EAAE,CAAA;CAAC;0BAEjE,CAAC,KAAK,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,UAAU,EAAE,eAAe,EAAE,eAAe,EAAE,kBAAkB,EAAE,OAAO,KAAK;IAAC,KAAK,EAAE,UAAU,EAAE,CAAC;IAAC,QAAQ,EAAE,MAAM,CAAA;CAAC;+BAC9I;IAAC,WAAW,EAAE,MAAM,CAAC;IAAC,OAAO,EAAE,WAAW,CAAA;CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { E } from "./chunks/editor-
|
|
2
|
-
import "./chunks/converter-
|
|
3
|
-
import "./chunks/docx-zipper-
|
|
1
|
+
import { E } from "./chunks/editor-S_v8wD_U.js";
|
|
2
|
+
import "./chunks/converter-BA8jbeZU.js";
|
|
3
|
+
import "./chunks/docx-zipper-Crq6kHku.js";
|
|
4
4
|
export {
|
|
5
5
|
E as Editor
|
|
6
6
|
};
|
|
@@ -9,13 +9,13 @@ var __privateGet = (obj, member, getter) => (__accessCheck(obj, member, "read fr
|
|
|
9
9
|
var __privateAdd = (obj, member, value) => member.has(obj) ? __typeError("Cannot add the same private member more than once") : member instanceof WeakSet ? member.add(obj) : member.set(obj, value);
|
|
10
10
|
var __privateMethod = (obj, member, method) => (__accessCheck(obj, member, "access private method"), method);
|
|
11
11
|
var _interceptedCommands, _SuperToolbar_instances, makeToolbarItems_fn, initDefaultFonts_fn, updateHighlightColors_fn, deactivateAll_fn, updateToolbarHistory_fn, runCommandWithArgumentOnly_fn;
|
|
12
|
-
import { _ as _export_sfc, a as getQuickFormatList, b as generateLinkedStyleString, I as ImagePlaceholderPluginKey, f as findPlaceholder, c as findParentNode, d as getActiveFormatting, u as undoDepth, r as redoDepth, E as Editor, e as getStarterExtensions, P as Placeholder, h as getRichTextExtensions } from "./chunks/editor-
|
|
13
|
-
import { j, l, i, k } from "./chunks/editor-
|
|
14
|
-
import { J as getDefaultExportFromCjs, v as v4, T as TextSelection, L as vClickOutside } from "./chunks/converter-
|
|
15
|
-
import { B } from "./chunks/converter-
|
|
12
|
+
import { _ as _export_sfc, a as getQuickFormatList, b as generateLinkedStyleString, I as ImagePlaceholderPluginKey, f as findPlaceholder, c as findParentNode, d as getActiveFormatting, u as undoDepth, r as redoDepth, E as Editor, e as getStarterExtensions, P as Placeholder, h as getRichTextExtensions } from "./chunks/editor-S_v8wD_U.js";
|
|
13
|
+
import { j, l, i, k } from "./chunks/editor-S_v8wD_U.js";
|
|
14
|
+
import { J as getDefaultExportFromCjs, v as v4, T as TextSelection, L as vClickOutside } from "./chunks/converter-BA8jbeZU.js";
|
|
15
|
+
import { B } from "./chunks/converter-BA8jbeZU.js";
|
|
16
16
|
import { ref, createElementBlock, openBlock, createElementVNode, unref, getCurrentInstance, computed, watch, onMounted, createCommentVNode, withDirectives, withKeys, normalizeClass, withModifiers, vModelText, createTextVNode, toDisplayString, Fragment, renderList, normalizeStyle, createVNode, h, createApp, reactive, onUnmounted, shallowRef, onBeforeUnmount, createBlock } from "vue";
|
|
17
|
-
import { t as toolbarIcons, s as sanitizeNumber, T as Toolbar, N as NSkeleton } from "./chunks/toolbar-
|
|
18
|
-
import { D } from "./chunks/docx-zipper-
|
|
17
|
+
import { t as toolbarIcons, s as sanitizeNumber, T as Toolbar, N as NSkeleton } from "./chunks/toolbar-BBp1B1nW.js";
|
|
18
|
+
import { D } from "./chunks/docx-zipper-Crq6kHku.js";
|
|
19
19
|
import { createZip } from "./file-zipper.es.js";
|
|
20
20
|
var eventemitter3 = { exports: {} };
|
|
21
21
|
(function(module) {
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"docxImporter.test.d.ts","sourceRoot":"","sources":["../../../src/tests/import/docxImporter.test.js"],"names":[],"mappings":""}
|
package/dist/super-editor.es.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { _, D, E, S, a, b, c, T, d, i, g, e, f, h, j, k, l } from "./chunks/super-editor.es-
|
|
1
|
+
import { _, D, E, S, a, b, c, T, d, i, g, e, f, h, j, k, l } from "./chunks/super-editor.es-n8lS5QnA.js";
|
|
2
2
|
import "./chunks/vue-DoZNaJt3.js";
|
|
3
3
|
export {
|
|
4
4
|
_ as BasicUpload,
|
package/dist/superdoc.es.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { E as Editor, h as getRichTextExtensions, b as SuperInput, a as SuperEditor, c as SuperToolbar } from "./chunks/super-editor.es-
|
|
2
|
-
import { S, d, i, k, l } from "./chunks/super-editor.es-
|
|
1
|
+
import { E as Editor, h as getRichTextExtensions, b as SuperInput, a as SuperEditor, c as SuperToolbar } from "./chunks/super-editor.es-n8lS5QnA.js";
|
|
2
|
+
import { S, d, i, k, l } from "./chunks/super-editor.es-n8lS5QnA.js";
|
|
3
3
|
import { p as process$1, Y as effectScope, r as ref, Z as markRaw, _ as toRaw, a as computed, $ as isRef, a0 as isReactive, C as toRef, i as inject, m as getCurrentInstance, k as watch, x as unref, a1 as hasInjectionContext, L as reactive, R as nextTick$2, a2 as getCurrentScope, a3 as onScopeDispose, a4 as toRefs, g as global$1, N as shallowRef, M as readonly, h as onMounted, j as onBeforeUnmount, f as onBeforeMount, U as onActivated, q as onDeactivated, z as createTextVNode, F as Fragment, Q as Comment, l as defineComponent, D as provide, G as withDirectives, B as h, V as Teleport, S as renderSlot, W as isVNode, K as watchEffect, O as Transition, E as mergeProps, P as vShow, J as cloneVNode, T as Text, b as createElementBlock, o as openBlock, t as toDisplayString, v as createVNode, y as withCtx, e as createBaseVNode, A as normalizeStyle, u as createCommentVNode, s as createBlock, w as withModifiers, n as normalizeClass, a5 as resolveDirective, d as renderList, c as createApp, a6 as resolveDynamicComponent } from "./chunks/vue-DoZNaJt3.js";
|
|
4
4
|
import { B as Buffer$D, c as commonjsGlobal } from "./chunks/jszip-Cz-FHQZZ.js";
|
|
5
5
|
import { s as safeBufferExports$1, j as streamBrowserify, i as inherits_browserExports, k as require$$0$1, l as string_decoder, m as eventsExports, u as util$3, n as browser$b } from "./chunks/xml-js-Dl1DKeoJ.js";
|
|
@@ -79022,7 +79022,7 @@ class SuperDoc extends EventEmitter {
|
|
|
79022
79022
|
this.config.colors = shuffleArray(this.config.colors);
|
|
79023
79023
|
this.userColorMap = /* @__PURE__ */ new Map();
|
|
79024
79024
|
this.colorIndex = 0;
|
|
79025
|
-
this.version = "0.6.
|
|
79025
|
+
this.version = "0.6.11";
|
|
79026
79026
|
console.debug("🦋 [superdoc] Using SuperDoc version:", this.version);
|
|
79027
79027
|
this.superdocId = config.superdocId || v4();
|
|
79028
79028
|
this.colors = this.config.colors;
|