@harbour-enterprises/superdoc 0.31.0-next.10 → 0.31.0-next.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/{PdfViewer-CxLHqmsp.cjs → PdfViewer-D9P6oSyP.cjs} +1 -1
- package/dist/chunks/{PdfViewer-Ck2UtdkO.es.js → PdfViewer-DrGdcxMi.es.js} +1 -1
- package/dist/chunks/{index-S2kR904m.es.js → index-8TkBu9O_.es.js} +3 -3
- package/dist/chunks/{index-qZtf9OYt.cjs → index-ZC9yiay1.cjs} +3 -3
- package/dist/chunks/{index-TPvf306Z-DLAdtd9g.es.js → index-hUtaGvC8-Vf8Tdemp.es.js} +1 -1
- package/dist/chunks/{index-TPvf306Z-Dymhw354.cjs → index-hUtaGvC8-aunRWvRG.cjs} +1 -1
- package/dist/chunks/{super-editor.es-d0fSEchl.cjs → super-editor.es-4uI_8knu.cjs} +2315 -2525
- package/dist/chunks/{super-editor.es-CNPHD-mt.es.js → super-editor.es-DS6vzo6Y.es.js} +2315 -2525
- package/dist/super-editor/ai-writer.es.js +2 -2
- package/dist/super-editor/chunks/{converter-CuN7BQ8r.js → converter-DNZlAyEp.js} +236 -129
- package/dist/super-editor/chunks/{docx-zipper-DvU3g1QE.js → docx-zipper-CGXr6ESB.js} +1 -1
- package/dist/super-editor/chunks/{editor-CJUnMzXV.js → editor-BG6XbVA7.js} +1808 -2103
- package/dist/super-editor/chunks/{index-TPvf306Z.js → index-hUtaGvC8.js} +1 -1
- package/dist/super-editor/chunks/{toolbar-_AUH-ukY.js → toolbar-8Nf_jruN.js} +2 -2
- package/dist/super-editor/converter.es.js +2 -2
- 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/src/components/toolbar/defaultItems.d.ts.map +1 -1
- package/dist/super-editor/super-editor/src/components/toolbar/super-toolbar.d.ts.map +1 -1
- package/dist/super-editor/super-editor/src/core/commands/changeListLevel.d.ts.map +1 -1
- package/dist/super-editor/super-editor/src/core/commands/index.d.ts +2 -0
- package/dist/super-editor/super-editor/src/core/commands/lineHeight.d.ts +7 -0
- package/dist/super-editor/super-editor/src/core/commands/lineHeight.d.ts.map +1 -0
- package/dist/super-editor/super-editor/src/core/commands/list-helpers/is-list.d.ts.map +1 -1
- package/dist/super-editor/super-editor/src/core/commands/removeNumberingProperties.d.ts.map +1 -1
- package/dist/super-editor/super-editor/src/core/commands/resetAttributes.d.ts.map +1 -1
- package/dist/super-editor/super-editor/src/core/commands/restartNumbering.d.ts.map +1 -1
- package/dist/super-editor/super-editor/src/core/commands/textIndent.d.ts +5 -0
- package/dist/super-editor/super-editor/src/core/commands/textIndent.d.ts.map +1 -0
- package/dist/super-editor/super-editor/src/core/commands/toggleList.d.ts.map +1 -1
- package/dist/super-editor/super-editor/src/core/commands/updateAttributes.d.ts +4 -4
- package/dist/super-editor/super-editor/src/core/commands/updateAttributes.d.ts.map +1 -1
- package/dist/super-editor/super-editor/src/core/super-converter/styles.d.ts +57 -12
- package/dist/super-editor/super-editor/src/core/super-converter/styles.d.ts.map +1 -1
- package/dist/super-editor/super-editor/src/core/super-converter/v2/importer/types/index.d.ts +4 -0
- package/dist/super-editor/super-editor/src/core/super-converter/v2/importer/types/index.d.ts.map +1 -1
- package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/p/helpers/generate-paragraph-properties.d.ts.map +1 -1
- package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/p/helpers/legacy-handle-paragraph-node.d.ts.map +1 -1
- package/dist/super-editor/super-editor/src/core/utilities/deleteProps.d.ts.map +1 -1
- package/dist/super-editor/super-editor/src/extensions/index.d.ts +1 -3
- package/dist/super-editor/super-editor/src/extensions/index.d.ts.map +1 -1
- package/dist/super-editor/super-editor/src/extensions/linked-styles/helpers.d.ts.map +1 -1
- package/dist/super-editor/super-editor/src/extensions/linked-styles/linked-styles.d.ts.map +1 -1
- package/dist/super-editor/super-editor/src/extensions/linked-styles/plugin.d.ts.map +1 -1
- package/dist/super-editor/super-editor/src/extensions/paragraph/ParagraphNodeView.d.ts.map +1 -1
- package/dist/super-editor/super-editor/src/extensions/paragraph/dropcapPlugin.d.ts +4 -0
- package/dist/super-editor/super-editor/src/extensions/paragraph/dropcapPlugin.d.ts.map +1 -0
- package/dist/super-editor/super-editor/src/extensions/paragraph/numberingPlugin.d.ts.map +1 -1
- package/dist/super-editor/super-editor/src/extensions/paragraph/paragraph.d.ts +0 -9
- package/dist/super-editor/super-editor/src/extensions/paragraph/paragraph.d.ts.map +1 -1
- package/dist/super-editor/super-editor/src/extensions/paragraph/resolvedPropertiesCache.d.ts +3 -0
- package/dist/super-editor/super-editor/src/extensions/paragraph/resolvedPropertiesCache.d.ts.map +1 -0
- package/dist/super-editor/super-editor/src/extensions/tab/helpers/tabDecorations.d.ts.map +1 -1
- package/dist/super-editor/super-editor/src/extensions/text-align/text-align.d.ts +0 -12
- package/dist/super-editor/super-editor/src/extensions/text-align/text-align.d.ts.map +1 -1
- package/dist/super-editor/super-editor/src/tests/data/annotations_doc_content.d.ts +113 -61
- package/dist/super-editor/super-editor.es.js +41 -63
- package/dist/super-editor/toolbar.es.js +2 -2
- package/dist/super-editor.cjs +1 -1
- package/dist/super-editor.es.js +1 -1
- package/dist/superdoc.cjs +2 -2
- package/dist/superdoc.es.js +2 -2
- package/dist/superdoc.umd.js +2320 -2530
- package/dist/superdoc.umd.js.map +1 -1
- package/package.json +1 -1
- package/dist/super-editor/super-editor/src/extensions/line-height/index.d.ts +0 -2
- package/dist/super-editor/super-editor/src/extensions/line-height/index.d.ts.map +0 -1
- package/dist/super-editor/super-editor/src/extensions/line-height/line-height.d.ts +0 -44
- package/dist/super-editor/super-editor/src/extensions/line-height/line-height.d.ts.map +0 -1
- package/dist/super-editor/super-editor/src/extensions/text-indent/index.d.ts +0 -2
- package/dist/super-editor/super-editor/src/extensions/text-indent/index.d.ts.map +0 -1
- package/dist/super-editor/super-editor/src/extensions/text-indent/text-indent.d.ts +0 -37
- package/dist/super-editor/super-editor/src/extensions/text-indent/text-indent.d.ts.map +0 -1
|
@@ -7,7 +7,15 @@ export namespace annotationsBodyNode {
|
|
|
7
7
|
elements: ({
|
|
8
8
|
type: string;
|
|
9
9
|
name: string;
|
|
10
|
-
elements
|
|
10
|
+
elements: {
|
|
11
|
+
type: string;
|
|
12
|
+
name: string;
|
|
13
|
+
attributes: {
|
|
14
|
+
'w:before': string;
|
|
15
|
+
'w:after': string;
|
|
16
|
+
'w:lineRule': string;
|
|
17
|
+
};
|
|
18
|
+
}[];
|
|
11
19
|
} | {
|
|
12
20
|
type: string;
|
|
13
21
|
name: string;
|
|
@@ -50,12 +58,7 @@ export namespace annotationsBodyNode {
|
|
|
50
58
|
} | {
|
|
51
59
|
type: string;
|
|
52
60
|
name: string;
|
|
53
|
-
|
|
54
|
-
rsidRDefault: string;
|
|
55
|
-
'w:rsidR'?: undefined;
|
|
56
|
-
'w:rsidRPr'?: undefined;
|
|
57
|
-
};
|
|
58
|
-
elements: {
|
|
61
|
+
elements: ({
|
|
59
62
|
type: string;
|
|
60
63
|
name: string;
|
|
61
64
|
elements: {
|
|
@@ -64,16 +67,9 @@ export namespace annotationsBodyNode {
|
|
|
64
67
|
attributes: {
|
|
65
68
|
'w:before': string;
|
|
66
69
|
'w:after': string;
|
|
70
|
+
'w:lineRule': string;
|
|
67
71
|
};
|
|
68
72
|
}[];
|
|
69
|
-
}[];
|
|
70
|
-
} | {
|
|
71
|
-
type: string;
|
|
72
|
-
name: string;
|
|
73
|
-
elements: ({
|
|
74
|
-
type: string;
|
|
75
|
-
name: string;
|
|
76
|
-
elements?: undefined;
|
|
77
73
|
} | {
|
|
78
74
|
type: string;
|
|
79
75
|
name: string;
|
|
@@ -127,7 +123,15 @@ export namespace annotationsBodyNode {
|
|
|
127
123
|
elements: ({
|
|
128
124
|
type: string;
|
|
129
125
|
name: string;
|
|
130
|
-
elements
|
|
126
|
+
elements: {
|
|
127
|
+
type: string;
|
|
128
|
+
name: string;
|
|
129
|
+
attributes: {
|
|
130
|
+
'w:before': string;
|
|
131
|
+
'w:after': string;
|
|
132
|
+
'w:lineRule': string;
|
|
133
|
+
};
|
|
134
|
+
}[];
|
|
131
135
|
} | {
|
|
132
136
|
type: string;
|
|
133
137
|
name: string;
|
|
@@ -177,7 +181,6 @@ export namespace annotationsBodyNode {
|
|
|
177
181
|
attributes: {
|
|
178
182
|
'w:rsidR': string;
|
|
179
183
|
'w:rsidRPr': string;
|
|
180
|
-
rsidRDefault?: undefined;
|
|
181
184
|
};
|
|
182
185
|
elements: ({
|
|
183
186
|
type: string;
|
|
@@ -290,42 +293,57 @@ export namespace annotationsNodeContent {
|
|
|
290
293
|
export let content: ({
|
|
291
294
|
type: string;
|
|
292
295
|
attrs: {
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
};
|
|
301
|
-
|
|
302
|
-
styleId: any;
|
|
296
|
+
paraId: any;
|
|
297
|
+
textId: any;
|
|
298
|
+
rsidR: any;
|
|
299
|
+
rsidRDefault: any;
|
|
300
|
+
rsidP: any;
|
|
301
|
+
rsidRPr: any;
|
|
302
|
+
rsidDel: any;
|
|
303
|
+
extraAttrs: {};
|
|
304
|
+
sdBlockId: string;
|
|
303
305
|
attributes: any;
|
|
304
306
|
filename: any;
|
|
305
|
-
|
|
307
|
+
paragraphProperties: {
|
|
308
|
+
spacing: {
|
|
309
|
+
after: number;
|
|
310
|
+
before: number;
|
|
311
|
+
lineRule: string;
|
|
312
|
+
};
|
|
313
|
+
};
|
|
314
|
+
pageBreakSource: any;
|
|
315
|
+
listRendering: any;
|
|
306
316
|
};
|
|
307
317
|
content?: undefined;
|
|
308
318
|
} | {
|
|
309
319
|
type: string;
|
|
310
320
|
attrs: {
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
};
|
|
319
|
-
|
|
320
|
-
styleId: any;
|
|
321
|
+
paraId: any;
|
|
322
|
+
textId: any;
|
|
323
|
+
rsidR: any;
|
|
324
|
+
rsidRDefault: any;
|
|
325
|
+
rsidP: any;
|
|
326
|
+
rsidRPr: any;
|
|
327
|
+
rsidDel: any;
|
|
328
|
+
extraAttrs: {};
|
|
329
|
+
sdBlockId: string;
|
|
321
330
|
attributes: any;
|
|
322
331
|
filename: any;
|
|
323
|
-
|
|
332
|
+
paragraphProperties: {
|
|
333
|
+
spacing: {
|
|
334
|
+
after: number;
|
|
335
|
+
before: number;
|
|
336
|
+
lineRule: string;
|
|
337
|
+
};
|
|
338
|
+
};
|
|
339
|
+
pageBreakSource: any;
|
|
340
|
+
listRendering: any;
|
|
324
341
|
};
|
|
325
342
|
content: {
|
|
326
343
|
type: string;
|
|
327
344
|
attrs: {
|
|
328
345
|
type: string;
|
|
346
|
+
defaultDisplayLabel: string;
|
|
329
347
|
displayLabel: string;
|
|
330
348
|
imageSrc: string;
|
|
331
349
|
rawHtml: any;
|
|
@@ -337,35 +355,49 @@ export namespace annotationsNodeContent {
|
|
|
337
355
|
visibility: string;
|
|
338
356
|
highlighted: boolean;
|
|
339
357
|
multipleImage: boolean;
|
|
358
|
+
size: any;
|
|
340
359
|
extras: {};
|
|
341
360
|
bold: boolean;
|
|
342
361
|
italic: boolean;
|
|
343
362
|
underline: boolean;
|
|
344
363
|
fontFamily: any;
|
|
345
364
|
fontSize: any;
|
|
365
|
+
textHighlight: any;
|
|
366
|
+
textColor: any;
|
|
367
|
+
generatorIndex: any;
|
|
368
|
+
hash: string;
|
|
369
|
+
sdtId: any;
|
|
346
370
|
};
|
|
347
371
|
}[];
|
|
348
372
|
} | {
|
|
349
373
|
type: string;
|
|
350
374
|
attrs: {
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
};
|
|
359
|
-
|
|
360
|
-
styleId: any;
|
|
375
|
+
paraId: any;
|
|
376
|
+
textId: any;
|
|
377
|
+
rsidR: any;
|
|
378
|
+
rsidRDefault: any;
|
|
379
|
+
rsidP: any;
|
|
380
|
+
rsidRPr: any;
|
|
381
|
+
rsidDel: any;
|
|
382
|
+
extraAttrs: {};
|
|
383
|
+
sdBlockId: string;
|
|
361
384
|
attributes: any;
|
|
362
385
|
filename: any;
|
|
363
|
-
|
|
386
|
+
paragraphProperties: {
|
|
387
|
+
spacing: {
|
|
388
|
+
after: number;
|
|
389
|
+
before: number;
|
|
390
|
+
lineRule: string;
|
|
391
|
+
};
|
|
392
|
+
};
|
|
393
|
+
pageBreakSource: any;
|
|
394
|
+
listRendering: any;
|
|
364
395
|
};
|
|
365
396
|
content: {
|
|
366
397
|
type: string;
|
|
367
398
|
attrs: {
|
|
368
399
|
type: string;
|
|
400
|
+
defaultDisplayLabel: string;
|
|
369
401
|
displayLabel: string;
|
|
370
402
|
imageSrc: any;
|
|
371
403
|
rawHtml: string;
|
|
@@ -377,35 +409,49 @@ export namespace annotationsNodeContent {
|
|
|
377
409
|
visibility: string;
|
|
378
410
|
highlighted: boolean;
|
|
379
411
|
multipleImage: boolean;
|
|
412
|
+
size: any;
|
|
380
413
|
extras: {};
|
|
381
414
|
bold: boolean;
|
|
382
415
|
italic: boolean;
|
|
383
416
|
underline: boolean;
|
|
384
417
|
fontFamily: any;
|
|
385
418
|
fontSize: any;
|
|
419
|
+
textHighlight: any;
|
|
420
|
+
textColor: any;
|
|
421
|
+
generatorIndex: any;
|
|
422
|
+
hash: string;
|
|
423
|
+
sdtId: any;
|
|
386
424
|
};
|
|
387
425
|
}[];
|
|
388
426
|
} | {
|
|
389
427
|
type: string;
|
|
390
428
|
attrs: {
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
};
|
|
399
|
-
|
|
400
|
-
styleId: any;
|
|
429
|
+
paraId: any;
|
|
430
|
+
textId: any;
|
|
431
|
+
rsidR: any;
|
|
432
|
+
rsidRDefault: any;
|
|
433
|
+
rsidP: any;
|
|
434
|
+
rsidRPr: any;
|
|
435
|
+
rsidDel: any;
|
|
436
|
+
extraAttrs: {};
|
|
437
|
+
sdBlockId: string;
|
|
401
438
|
attributes: any;
|
|
402
439
|
filename: any;
|
|
403
|
-
|
|
440
|
+
paragraphProperties: {
|
|
441
|
+
spacing: {
|
|
442
|
+
after: number;
|
|
443
|
+
before: number;
|
|
444
|
+
lineRule: string;
|
|
445
|
+
};
|
|
446
|
+
};
|
|
447
|
+
pageBreakSource: any;
|
|
448
|
+
listRendering: any;
|
|
404
449
|
};
|
|
405
450
|
content: {
|
|
406
451
|
type: string;
|
|
407
452
|
attrs: {
|
|
408
453
|
type: string;
|
|
454
|
+
defaultDisplayLabel: string;
|
|
409
455
|
displayLabel: string;
|
|
410
456
|
imageSrc: any;
|
|
411
457
|
rawHtml: any;
|
|
@@ -417,12 +463,18 @@ export namespace annotationsNodeContent {
|
|
|
417
463
|
visibility: string;
|
|
418
464
|
highlighted: boolean;
|
|
419
465
|
multipleImage: boolean;
|
|
466
|
+
size: any;
|
|
420
467
|
extras: {};
|
|
421
468
|
bold: boolean;
|
|
422
469
|
italic: boolean;
|
|
423
470
|
underline: boolean;
|
|
424
471
|
fontFamily: any;
|
|
425
472
|
fontSize: any;
|
|
473
|
+
textHighlight: any;
|
|
474
|
+
textColor: any;
|
|
475
|
+
generatorIndex: any;
|
|
476
|
+
hash: string;
|
|
477
|
+
sdtId: any;
|
|
426
478
|
};
|
|
427
479
|
}[];
|
|
428
480
|
})[];
|
|
@@ -9,14 +9,14 @@ 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 _SuperToolbar_instances, initToolbarGroups_fn, _interceptedCommands, makeToolbarItems_fn, initDefaultFonts_fn, updateHighlightColors_fn, deactivateAll_fn, updateToolbarHistory_fn, enrichTrackedChanges_fn, runCommandWithArgumentOnly_fn;
|
|
12
|
-
import { aF as getDefaultExportFromCjs,
|
|
13
|
-
import {
|
|
14
|
-
import { _ as _export_sfc, u as useHighContrastMode, a as getQuickFormatList, b as generateLinkedStyleString, c as getFileOpener, d as checkAndProcessImage, r as replaceSelectionWithImagePlaceholder, e as uploadAndInsertImage, f as collectTrackedChanges, i as isTrackedChangeActionAllowed, y as yUndoPluginKey, h as undoDepth, j as redoDepth, k as collectTrackedChangesForContext, s as shouldBypassContextMenu, S as SlashMenuPluginKey, l as isHeadless, E as Editor, m as getStarterExtensions, P as Placeholder, n as getRichTextExtensions, D as DecorationSet, o as Decoration, M as Mark, p as Extension, A as Attribute, N as Node } from "./chunks/editor-
|
|
15
|
-
import { v, C, w, T, q, x, t } from "./chunks/editor-
|
|
12
|
+
import { aF as getDefaultExportFromCjs, _ as v4, T as TextSelection$1, v as getMarkRange, aI as vClickOutside, aJ as getActiveFormatting, ay as isInTable, O as findParentNode, ao as calculateResolvedParagraphProperties, a5 as twipsToLines, Q as isList, aK as readFromClipboard, aL as handleClipboardPaste, aM as getFileObject, aN as translator, aO as translator$1, aP as translator$2, aQ as translator$3, aR as translator$4, aS as translator$5, aT as translator$6, aU as translator$7, aV as translator$8, aW as translator$9, aX as translator$a, aY as translator$b, aZ as translator$c, a_ as translator$d, a$ as translator$e, b0 as commentRangeEndTranslator, b1 as commentRangeStartTranslator, b2 as translator$f, b3 as translator$g, b4 as translator$h, b5 as translator$i, b6 as translator$j, b7 as translator$k, b8 as translator$l, b9 as translator$m, ba as translator$n, bb as translator$o, bc as translator$p, bd as translator$q, be as translator$r, bf as translator$s, bg as translator$t, bh as translator$u, bi as translator$v, bj as translator$w, bk as translator$x, bl as translator$y, bm as translator$z, bn as translator$A, bo as translator$B, bp as translator$C, bq as translator$D, br as translator$E, bs as translator$F, bt as translator$G, bu as translator$H, bv as translator$I, bw as translator$J, bx as translator$K, by as translator$L, bz as translator$M, bA as translator$N, bB as translator$O, bC as translator$P, bD as translator$Q, bE as translator$R, bF as translator$S, bG as translator$T, bH as translator$U, bI as translator$V, bJ as translator$W, bK as translator$X, bL as translator$Y, bM as translator$Z, bN as translator$_, bO as translator$$, bP as translator$10, bQ as translator$11, bR as translator$12, bS as translator$13, bT as translator$14, bU as translator$15, bV as translator$16, bW as translator$17, bX as translator$18, bY as translator$19, bZ as translator$1a, b_ as translator$1b, b$ as translator$1c, c0 as translator$1d, c1 as translator$1e, c2 as translator$1f, c3 as translator$1g, c4 as translator$1h, c5 as translator$1i, c6 as translator$1j, P as PluginKey, a as Plugin } from "./chunks/converter-DNZlAyEp.js";
|
|
13
|
+
import { aa, i, a7 } from "./chunks/converter-DNZlAyEp.js";
|
|
14
|
+
import { _ as _export_sfc, u as useHighContrastMode, a as getQuickFormatList, b as generateLinkedStyleString, c as getFileOpener, d as checkAndProcessImage, r as replaceSelectionWithImagePlaceholder, e as uploadAndInsertImage, f as collectTrackedChanges, i as isTrackedChangeActionAllowed, y as yUndoPluginKey, h as undoDepth, j as redoDepth, k as collectTrackedChangesForContext, s as shouldBypassContextMenu, S as SlashMenuPluginKey, l as isHeadless, E as Editor, m as getStarterExtensions, P as Placeholder, n as getRichTextExtensions, D as DecorationSet, o as Decoration, M as Mark, p as Extension, A as Attribute, N as Node } from "./chunks/editor-BG6XbVA7.js";
|
|
15
|
+
import { v, C, w, T, q, x, t } from "./chunks/editor-BG6XbVA7.js";
|
|
16
16
|
import { ref, onMounted, createElementBlock, openBlock, normalizeClass, unref, Fragment, renderList, createElementVNode, withModifiers, toDisplayString, createCommentVNode, normalizeStyle, computed, watch, withDirectives, withKeys, vModelText, createTextVNode, createVNode, h, createApp, markRaw, nextTick, onBeforeUnmount, defineComponent, reactive, onUnmounted, renderSlot, shallowRef, createBlock, withCtx, resolveDynamicComponent, normalizeProps, guardReactiveProps } from "vue";
|
|
17
|
-
import { t as toolbarIcons, s as sanitizeNumber, T as Toolbar, p as plusIconSvg, a as trashIconSvg, b as borderNoneIconSvg, c as arrowsToDotIconSvg, d as arrowsLeftRightIconSvg, w as wrenchIconSvg, m as magicWandIcon, e as checkIconSvg$1, x as xMarkIconSvg, l as linkIconSvg, f as tableIconSvg, g as scissorsIconSvg, h as copyIconSvg, i as pasteIconSvg, u as useMessage, N as NSkeleton } from "./chunks/toolbar-
|
|
17
|
+
import { t as toolbarIcons, s as sanitizeNumber, T as Toolbar, p as plusIconSvg, a as trashIconSvg, b as borderNoneIconSvg, c as arrowsToDotIconSvg, d as arrowsLeftRightIconSvg, w as wrenchIconSvg, m as magicWandIcon, e as checkIconSvg$1, x as xMarkIconSvg, l as linkIconSvg, f as tableIconSvg, g as scissorsIconSvg, h as copyIconSvg, i as pasteIconSvg, u as useMessage, N as NSkeleton } from "./chunks/toolbar-8Nf_jruN.js";
|
|
18
18
|
import AIWriter from "./ai-writer.es.js";
|
|
19
|
-
import { D } from "./chunks/docx-zipper-
|
|
19
|
+
import { D } from "./chunks/docx-zipper-CGXr6ESB.js";
|
|
20
20
|
import { createZip } from "./file-zipper.es.js";
|
|
21
21
|
var eventemitter3 = { exports: {} };
|
|
22
22
|
var hasRequiredEventemitter3;
|
|
@@ -80,7 +80,7 @@ function requireEventemitter3() {
|
|
|
80
80
|
if (listeners.fn) return 1;
|
|
81
81
|
return listeners.length;
|
|
82
82
|
};
|
|
83
|
-
EventEmitter2.prototype.emit = function emit(event, a1, a2, a3,
|
|
83
|
+
EventEmitter2.prototype.emit = function emit(event, a1, a2, a3, a4, a5) {
|
|
84
84
|
var evt = prefix ? prefix + event : event;
|
|
85
85
|
if (!this._events[evt]) return false;
|
|
86
86
|
var listeners = this._events[evt], len = arguments.length, args, i2;
|
|
@@ -96,9 +96,9 @@ function requireEventemitter3() {
|
|
|
96
96
|
case 4:
|
|
97
97
|
return listeners.fn.call(listeners.context, a1, a2, a3), true;
|
|
98
98
|
case 5:
|
|
99
|
-
return listeners.fn.call(listeners.context, a1, a2, a3,
|
|
99
|
+
return listeners.fn.call(listeners.context, a1, a2, a3, a4), true;
|
|
100
100
|
case 6:
|
|
101
|
-
return listeners.fn.call(listeners.context, a1, a2, a3,
|
|
101
|
+
return listeners.fn.call(listeners.context, a1, a2, a3, a4, a5), true;
|
|
102
102
|
}
|
|
103
103
|
for (i2 = 1, args = new Array(len - 1); i2 < len; i2++) {
|
|
104
104
|
args[i2 - 1] = arguments[i2];
|
|
@@ -2287,9 +2287,9 @@ const makeDefaultItems = ({
|
|
|
2287
2287
|
}
|
|
2288
2288
|
}
|
|
2289
2289
|
],
|
|
2290
|
-
onActivate: ({
|
|
2290
|
+
onActivate: ({ styleId }) => {
|
|
2291
2291
|
const styles = getQuickFormatList(superToolbar.activeEditor);
|
|
2292
|
-
const selectedStyle = styles?.find((style) => style.id ===
|
|
2292
|
+
const selectedStyle = styles?.find((style) => style.id === styleId);
|
|
2293
2293
|
linkedStyles.label.value = selectedStyle && selectedStyle.id !== "Normal" ? selectedStyle.definition.attrs.name : toolbarTexts2.formatText;
|
|
2294
2294
|
linkedStyles.disabled.value = false;
|
|
2295
2295
|
},
|
|
@@ -2299,7 +2299,7 @@ const makeDefaultItems = ({
|
|
|
2299
2299
|
}
|
|
2300
2300
|
});
|
|
2301
2301
|
const renderIcon = (value, selectedValue) => {
|
|
2302
|
-
if (selectedValue.value
|
|
2302
|
+
if (selectedValue.value != value) return;
|
|
2303
2303
|
return h("div", { innerHTML: checkIconSvg, class: "dropdown-select-icon" });
|
|
2304
2304
|
};
|
|
2305
2305
|
const lineHeight = useToolbarItem({
|
|
@@ -2318,44 +2318,14 @@ const makeDefaultItems = ({
|
|
|
2318
2318
|
attributes: {
|
|
2319
2319
|
ariaLabel: "Line height"
|
|
2320
2320
|
},
|
|
2321
|
-
options: [
|
|
2322
|
-
{
|
|
2323
|
-
label:
|
|
2324
|
-
key:
|
|
2325
|
-
icon: () => renderIcon(
|
|
2326
|
-
props: { "data-item": "btn-lineHeight-option" }
|
|
2327
|
-
},
|
|
2328
|
-
{
|
|
2329
|
-
label: "1.15",
|
|
2330
|
-
key: "1.15",
|
|
2331
|
-
icon: () => renderIcon("1.15", lineHeight.selectedValue),
|
|
2332
|
-
props: { "data-item": "btn-lineHeight-option" }
|
|
2333
|
-
},
|
|
2334
|
-
{
|
|
2335
|
-
label: "1.5",
|
|
2336
|
-
key: "1.5",
|
|
2337
|
-
icon: () => renderIcon("1.5", lineHeight.selectedValue),
|
|
2338
|
-
props: { "data-item": "btn-lineHeight-option" }
|
|
2339
|
-
},
|
|
2340
|
-
{
|
|
2341
|
-
label: "2.0",
|
|
2342
|
-
key: "2",
|
|
2343
|
-
icon: () => renderIcon("2", lineHeight.selectedValue),
|
|
2344
|
-
props: { "data-item": "btn-lineHeight-option" }
|
|
2345
|
-
},
|
|
2346
|
-
{
|
|
2347
|
-
label: "2.5",
|
|
2348
|
-
key: "2.5",
|
|
2349
|
-
icon: () => renderIcon("2.5", lineHeight.selectedValue),
|
|
2350
|
-
props: { "data-item": "btn-lineHeight-option" }
|
|
2351
|
-
},
|
|
2352
|
-
{
|
|
2353
|
-
label: "3.0",
|
|
2354
|
-
key: "3",
|
|
2355
|
-
icon: () => renderIcon("3", lineHeight.selectedValue),
|
|
2321
|
+
options: [1, 1.15, 1.5, 2, 2.5, 3].map((lineHeightValue) => {
|
|
2322
|
+
return {
|
|
2323
|
+
label: lineHeightValue.toFixed(2),
|
|
2324
|
+
key: lineHeightValue,
|
|
2325
|
+
icon: () => renderIcon(lineHeightValue, lineHeight.selectedValue),
|
|
2356
2326
|
props: { "data-item": "btn-lineHeight-option" }
|
|
2357
|
-
}
|
|
2358
|
-
|
|
2327
|
+
};
|
|
2328
|
+
})
|
|
2359
2329
|
});
|
|
2360
2330
|
const breakpoints = {
|
|
2361
2331
|
sm: 768,
|
|
@@ -3001,6 +2971,12 @@ class SuperToolbar extends EventEmitter {
|
|
|
3001
2971
|
});
|
|
3002
2972
|
const marks = getActiveFormatting(this.activeEditor);
|
|
3003
2973
|
const inTable = isInTable(this.activeEditor.state);
|
|
2974
|
+
const paragraphParent = findParentNode((n) => n.type.name === "paragraph")(selection);
|
|
2975
|
+
const paragraphProps = paragraphParent ? calculateResolvedParagraphProperties(
|
|
2976
|
+
this.activeEditor,
|
|
2977
|
+
paragraphParent.node,
|
|
2978
|
+
state.doc.resolve(paragraphParent.pos)
|
|
2979
|
+
) : null;
|
|
3004
2980
|
this.toolbarItems.forEach((item) => {
|
|
3005
2981
|
item.resetDisabled();
|
|
3006
2982
|
if (item.name.value === "undo") {
|
|
@@ -3016,11 +2992,10 @@ class SuperToolbar extends EventEmitter {
|
|
|
3016
2992
|
item.setDisabled(!canRejectTrackedChanges);
|
|
3017
2993
|
}
|
|
3018
2994
|
if (item.name.value === "linkedStyles") {
|
|
3019
|
-
const linkedStyleMark = marks.find((mark) => mark.name === "styleId");
|
|
3020
2995
|
if (this.activeEditor && !getQuickFormatList(this.activeEditor).length) {
|
|
3021
2996
|
return item.deactivate();
|
|
3022
2997
|
} else {
|
|
3023
|
-
return item.activate({
|
|
2998
|
+
return item.activate({ styleId: paragraphProps?.styleId || null });
|
|
3024
2999
|
}
|
|
3025
3000
|
}
|
|
3026
3001
|
const rawActiveMark = marks.find((mark) => mark.name === item.name.value);
|
|
@@ -3037,16 +3012,14 @@ class SuperToolbar extends EventEmitter {
|
|
|
3037
3012
|
} else {
|
|
3038
3013
|
item.deactivate();
|
|
3039
3014
|
}
|
|
3040
|
-
|
|
3041
|
-
if (!activeMark && !markNegated && styleIdMark?.attrs.styleId) {
|
|
3015
|
+
if (!activeMark && !markNegated && paragraphParent && paragraphProps?.styleId) {
|
|
3042
3016
|
const markToStyleMap = {
|
|
3043
3017
|
fontSize: "font-size",
|
|
3044
3018
|
fontFamily: "font-family",
|
|
3045
|
-
bold: "bold"
|
|
3046
|
-
textAlign: "textAlign"
|
|
3019
|
+
bold: "bold"
|
|
3047
3020
|
};
|
|
3048
3021
|
const linkedStyles = this.activeEditor.converter?.linkedStyles.find(
|
|
3049
|
-
(style) => style.id ===
|
|
3022
|
+
(style) => style.id === paragraphProps.styleId
|
|
3050
3023
|
);
|
|
3051
3024
|
if (linkedStyles && linkedStyles.definition && linkedStyles.definition.styles && markToStyleMap[item.name.value] in linkedStyles.definition.styles) {
|
|
3052
3025
|
const linkedStylesItem = linkedStyles.definition.styles[markToStyleMap[item.name.value]];
|
|
@@ -3056,15 +3029,20 @@ class SuperToolbar extends EventEmitter {
|
|
|
3056
3029
|
item.activate(value);
|
|
3057
3030
|
}
|
|
3058
3031
|
}
|
|
3059
|
-
|
|
3060
|
-
|
|
3061
|
-
|
|
3032
|
+
if (item.name.value === "textAlign" && paragraphProps?.justification) {
|
|
3033
|
+
item.activate({ textAlign: paragraphProps.justification });
|
|
3034
|
+
}
|
|
3035
|
+
if (item.name.value === "lineHeight") {
|
|
3036
|
+
if (paragraphProps?.spacing) {
|
|
3037
|
+
item.selectedValue.value = twipsToLines(paragraphProps.spacing.line);
|
|
3038
|
+
} else {
|
|
3039
|
+
item.selectedValue.value = "";
|
|
3040
|
+
}
|
|
3062
3041
|
}
|
|
3063
3042
|
if (item.name.value === "tableActions") {
|
|
3064
3043
|
item.disabled.value = !inTable;
|
|
3065
3044
|
}
|
|
3066
|
-
const
|
|
3067
|
-
const listParent = findParentNode(isList)(selection2)?.node;
|
|
3045
|
+
const listParent = isList(paragraphParent?.node) ? paragraphParent.node : null;
|
|
3068
3046
|
if (listParent) {
|
|
3069
3047
|
const numberingType = listParent.attrs.listRendering.numberingType;
|
|
3070
3048
|
if (item.name.value === "list" && numberingType === "bullet") {
|
|
@@ -5268,7 +5246,7 @@ export {
|
|
|
5268
5246
|
Extensions,
|
|
5269
5247
|
w as SectionHelpers,
|
|
5270
5248
|
_sfc_main$5 as SlashMenu,
|
|
5271
|
-
|
|
5249
|
+
aa as SuperConverter,
|
|
5272
5250
|
SuperEditor,
|
|
5273
5251
|
SuperInput,
|
|
5274
5252
|
SuperToolbar,
|
|
@@ -5281,7 +5259,7 @@ export {
|
|
|
5281
5259
|
i as getMarksFromSelection,
|
|
5282
5260
|
getRichTextExtensions,
|
|
5283
5261
|
getStarterExtensions,
|
|
5284
|
-
|
|
5262
|
+
a7 as helpers,
|
|
5285
5263
|
registeredHandlers,
|
|
5286
5264
|
t as trackChangesHelpers
|
|
5287
5265
|
};
|
package/dist/super-editor.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
-
const superEditor_es = require("./chunks/super-editor.es-
|
|
3
|
+
const superEditor_es = require("./chunks/super-editor.es-4uI_8knu.cjs");
|
|
4
4
|
require("./chunks/vue-ARQSyfaw.cjs");
|
|
5
5
|
exports.AIWriter = superEditor_es.AIWriter;
|
|
6
6
|
exports.AnnotatorHelpers = superEditor_es.AnnotatorHelpers;
|
package/dist/super-editor.es.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { A, a, _, C, D, E, b, S, c, d, e, f, g, T, h, i, j, k, l, m, n, o, p, r, q } from "./chunks/super-editor.es-
|
|
1
|
+
import { A, a, _, C, D, E, b, S, c, d, e, f, g, T, h, i, j, k, l, m, n, o, p, r, q } from "./chunks/super-editor.es-DS6vzo6Y.es.js";
|
|
2
2
|
import "./chunks/vue-B5QAf5pA.es.js";
|
|
3
3
|
export {
|
|
4
4
|
A as AIWriter,
|
package/dist/superdoc.cjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
-
const superEditor_es = require("./chunks/super-editor.es-
|
|
4
|
-
const superdoc = require("./chunks/index-
|
|
3
|
+
const superEditor_es = require("./chunks/super-editor.es-4uI_8knu.cjs");
|
|
4
|
+
const superdoc = require("./chunks/index-ZC9yiay1.cjs");
|
|
5
5
|
const blankDocx = require("./chunks/blank-docx-DfW3Eeh2.cjs");
|
|
6
6
|
exports.AnnotatorHelpers = superEditor_es.AnnotatorHelpers;
|
|
7
7
|
exports.Editor = superEditor_es.Editor;
|
package/dist/superdoc.es.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { a, E, b, S, d, i, j, n, r, p, q } from "./chunks/super-editor.es-
|
|
2
|
-
import { D, H, P, S as S2, m, l } from "./chunks/index-
|
|
1
|
+
import { a, E, b, S, d, i, j, n, r, p, q } from "./chunks/super-editor.es-DS6vzo6Y.es.js";
|
|
2
|
+
import { D, H, P, S as S2, m, l } from "./chunks/index-8TkBu9O_.es.js";
|
|
3
3
|
import { B } from "./chunks/blank-docx-ABm6XYAA.es.js";
|
|
4
4
|
export {
|
|
5
5
|
a as AnnotatorHelpers,
|