@harbour-enterprises/superdoc 0.25.0 → 0.26.0-next.2
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-Y13XRanw.es.js → PdfViewer-BUDqeNx7.es.js} +1 -1
- package/dist/chunks/{PdfViewer-DDL0V0l5.cjs → PdfViewer-Bk6eeTRu.cjs} +1 -1
- package/dist/chunks/{index-Bo5YCvD5.cjs → index-W-nB4woH.cjs} +19 -3
- package/dist/chunks/{index-DKNVSdr6.es.js → index-kTEBpqiG.es.js} +19 -3
- package/dist/chunks/{super-editor.es-Ct2sXbNV.cjs → super-editor.es-C74O3hXJ.cjs} +484 -253
- package/dist/chunks/{super-editor.es-CYtLh0Ob.es.js → super-editor.es-DznCuGcp.es.js} +484 -253
- package/dist/core/SuperDoc.d.ts.map +1 -1
- package/dist/core/types/index.d.ts.map +1 -1
- package/dist/super-editor/ai-writer.es.js +2 -2
- package/dist/super-editor/chunks/{converter-gSy6s2VK.js → converter-khE-H7hH.js} +90 -73
- package/dist/super-editor/chunks/{docx-zipper-CceGxV02.js → docx-zipper-KoUEtzIj.js} +1 -1
- package/dist/super-editor/chunks/{editor-CoX24lXQ.js → editor-wd9pvfTV.js} +421 -192
- package/dist/super-editor/chunks/{toolbar-BTw9-jfX.js → toolbar-CWJmT_bY.js} +2 -2
- package/dist/super-editor/converter.es.js +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/src/core/Editor.d.ts +1 -0
- package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/mc/altermateContent/alternate-content-translator.d.ts +11 -0
- package/dist/super-editor/super-editor/src/extensions/structured-content/structured-content-commands.d.ts +25 -0
- package/dist/super-editor/super-editor/src/extensions/structured-content/structuredContentHelpers/getStructuredContentTablesById.d.ts +10 -0
- package/dist/super-editor/super-editor/src/extensions/structured-content/structuredContentHelpers/index.d.ts +1 -0
- package/dist/super-editor/super-editor/src/extensions/table/table.d.ts +84 -0
- package/dist/super-editor/super-editor/src/extensions/table/tableHelpers/appendRows.d.ts +139 -0
- package/dist/super-editor/super-editor/src/index.d.ts +8 -2
- package/dist/super-editor/super-editor.es.js +18 -14
- 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 +501 -254
- package/dist/superdoc.umd.js.map +1 -1
- package/package.json +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { computed, createElementBlock, openBlock, createElementVNode, createCommentVNode, normalizeClass, normalizeStyle, ref, withKeys, unref, withModifiers, createBlock, toDisplayString, withDirectives, vModelText, nextTick, getCurrentInstance, createVNode, readonly, watch, onMounted, onBeforeUnmount, reactive, onBeforeMount, inject, onActivated, onDeactivated, createTextVNode, Fragment, Comment, defineComponent, provide, h, Teleport, toRef, renderSlot, isVNode, shallowRef, watchEffect, mergeProps, Transition, vShow, cloneVNode, Text, renderList, withCtx } from "vue";
|
|
2
|
-
import { p as process$1 } from "./converter-
|
|
3
|
-
import { _ as _export_sfc, u as useHighContrastMode, g as global$1 } from "./editor-
|
|
2
|
+
import { p as process$1 } from "./converter-khE-H7hH.js";
|
|
3
|
+
import { _ as _export_sfc, u as useHighContrastMode, g as global$1 } from "./editor-wd9pvfTV.js";
|
|
4
4
|
const sanitizeNumber = (value, defaultNumber) => {
|
|
5
5
|
let sanitized = value.replace(/[^0-9.]/g, "");
|
|
6
6
|
sanitized = parseFloat(sanitized);
|
|
@@ -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-wd9pvfTV.js";
|
|
2
|
+
import "./chunks/converter-khE-H7hH.js";
|
|
3
|
+
import "./chunks/docx-zipper-KoUEtzIj.js";
|
|
4
4
|
export {
|
|
5
5
|
E as Editor
|
|
6
6
|
};
|
|
@@ -1,3 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Selects the best-fit mc:AlternateContent branch, mirroring the legacy importer logic.
|
|
3
|
+
* @param {import('@translator').SCExtraParams['node']} node
|
|
4
|
+
* @returns {{ branch: import('@translator').XmlNode|null, elements: import('@translator').XmlNode[]|null }}
|
|
5
|
+
*/
|
|
6
|
+
export function selectAlternateContentElements(node: import("@translator").SCExtraParams["node"]): {
|
|
7
|
+
branch: import("@translator").XmlNode | null;
|
|
8
|
+
elements: import("@translator").XmlNode[] | null;
|
|
9
|
+
};
|
|
10
|
+
/** @type {Set<string>} */
|
|
11
|
+
export const SUPPORTED_ALTERNATE_CONTENT_REQUIRES: Set<string>;
|
|
1
12
|
/** @type {import('@translator').NodeTranslatorConfig} */
|
|
2
13
|
export const config: import("@translator").NodeTranslatorConfig;
|
|
3
14
|
/**
|
|
@@ -17,6 +17,13 @@
|
|
|
17
17
|
* @property {Object} [json] - Replace content with ProseMirror JSON (overrides html)
|
|
18
18
|
* @property {Object} [attrs] - Update attributes only (preserves content)
|
|
19
19
|
*/
|
|
20
|
+
/**
|
|
21
|
+
* @typedef {Object} StructuredContentTableAppendRowsOptions
|
|
22
|
+
* @property {string} id - Structured content block identifier
|
|
23
|
+
* @property {number} [tableIndex=0] - Index of the table inside the block
|
|
24
|
+
* @property {Array<string[]>|Array<string>} rows - Cell values to append
|
|
25
|
+
* @property {boolean} [copyRowStyle=false] - Clone the last row's styling when true
|
|
26
|
+
*/
|
|
20
27
|
export const StructuredContentCommands: Extension;
|
|
21
28
|
export type StructuredContentInlineInsert = {
|
|
22
29
|
/**
|
|
@@ -64,4 +71,22 @@ export type StructuredContentUpdate = {
|
|
|
64
71
|
*/
|
|
65
72
|
attrs?: any;
|
|
66
73
|
};
|
|
74
|
+
export type StructuredContentTableAppendRowsOptions = {
|
|
75
|
+
/**
|
|
76
|
+
* - Structured content block identifier
|
|
77
|
+
*/
|
|
78
|
+
id: string;
|
|
79
|
+
/**
|
|
80
|
+
* - Index of the table inside the block
|
|
81
|
+
*/
|
|
82
|
+
tableIndex?: number;
|
|
83
|
+
/**
|
|
84
|
+
* - Cell values to append
|
|
85
|
+
*/
|
|
86
|
+
rows: Array<string[]> | Array<string>;
|
|
87
|
+
/**
|
|
88
|
+
* - Clone the last row's styling when true
|
|
89
|
+
*/
|
|
90
|
+
copyRowStyle?: boolean;
|
|
91
|
+
};
|
|
67
92
|
import { Extension } from '@core/index';
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Find all tables inside a structured content block identified by id.
|
|
3
|
+
* @param {string} id - Structured content block id
|
|
4
|
+
* @param {import('prosemirror-state').EditorState} state - Editor state
|
|
5
|
+
* @returns {Array<{ node: import('prosemirror-model').Node, pos: number }>} tables with absolute positions
|
|
6
|
+
*/
|
|
7
|
+
export function getStructuredContentTablesById(id: string, state: import("prosemirror-state").EditorState): Array<{
|
|
8
|
+
node: import("prosemirror-model").Node;
|
|
9
|
+
pos: number;
|
|
10
|
+
}>;
|
|
@@ -388,6 +388,90 @@ export type TableGrid = {
|
|
|
388
388
|
*/
|
|
389
389
|
colWidths?: ColWidth[];
|
|
390
390
|
};
|
|
391
|
+
/**
|
|
392
|
+
* Row template formatting
|
|
393
|
+
*/
|
|
394
|
+
export type RowTemplateFormatting = {
|
|
395
|
+
/**
|
|
396
|
+
* - Node type used when building cell content
|
|
397
|
+
*/
|
|
398
|
+
blockType: import("prosemirror-model").NodeType;
|
|
399
|
+
/**
|
|
400
|
+
* - Attributes to apply to the created block node
|
|
401
|
+
*/
|
|
402
|
+
blockAttrs: any | null;
|
|
403
|
+
/**
|
|
404
|
+
* - Marks copied from the template text node
|
|
405
|
+
*/
|
|
406
|
+
textMarks: Array<import("prosemirror-model").Mark>;
|
|
407
|
+
};
|
|
408
|
+
/**
|
|
409
|
+
* Build row from template row parameters
|
|
410
|
+
*/
|
|
411
|
+
export type BuildRowFromTemplateRowParams = {
|
|
412
|
+
/**
|
|
413
|
+
* - Editor schema
|
|
414
|
+
*/
|
|
415
|
+
schema: import("prosemirror-model").Schema;
|
|
416
|
+
/**
|
|
417
|
+
* - Table node used for column map lookup
|
|
418
|
+
*/
|
|
419
|
+
tableNode: import("prosemirror-model").Node;
|
|
420
|
+
/**
|
|
421
|
+
* - Row providing structure and formatting
|
|
422
|
+
*/
|
|
423
|
+
templateRow: import("prosemirror-model").Node;
|
|
424
|
+
/**
|
|
425
|
+
* - Values to populate each table cell
|
|
426
|
+
*/
|
|
427
|
+
values: any[];
|
|
428
|
+
/**
|
|
429
|
+
* - Clone template marks and block attrs when true
|
|
430
|
+
*/
|
|
431
|
+
copyRowStyle?: boolean;
|
|
432
|
+
};
|
|
433
|
+
/**
|
|
434
|
+
* Append rows to the end of a table in a single transaction.
|
|
435
|
+
*/
|
|
436
|
+
export type appendRowsWithContentOptions = {
|
|
437
|
+
/**
|
|
438
|
+
* - Absolute position of the target table; required when `tableNode` is not provided
|
|
439
|
+
*/
|
|
440
|
+
tablePos?: number;
|
|
441
|
+
/**
|
|
442
|
+
* - Table node reference; required when `tablePos` is not provided
|
|
443
|
+
*/
|
|
444
|
+
tableNode?: import("prosemirror-model").Node;
|
|
445
|
+
/**
|
|
446
|
+
* - Cell values for each appended row
|
|
447
|
+
*/
|
|
448
|
+
valueRows: string[][];
|
|
449
|
+
/**
|
|
450
|
+
* - Clone template styling when true
|
|
451
|
+
*/
|
|
452
|
+
copyRowStyle?: boolean;
|
|
453
|
+
};
|
|
454
|
+
/**
|
|
455
|
+
* Insert rows at table end parameters
|
|
456
|
+
*/
|
|
457
|
+
export type InsertRowsAtTableEndParams = {
|
|
458
|
+
/**
|
|
459
|
+
* - Transaction to mutate
|
|
460
|
+
*/
|
|
461
|
+
tr: import("prosemirror-state").Transaction;
|
|
462
|
+
/**
|
|
463
|
+
* - Absolute position of the target table
|
|
464
|
+
*/
|
|
465
|
+
tablePos: number;
|
|
466
|
+
/**
|
|
467
|
+
* - Table node receiving new rows
|
|
468
|
+
*/
|
|
469
|
+
tableNode: import("prosemirror-model").Node;
|
|
470
|
+
/**
|
|
471
|
+
* - Row nodes to append
|
|
472
|
+
*/
|
|
473
|
+
rows: import("prosemirror-model").Node[];
|
|
474
|
+
};
|
|
391
475
|
/**
|
|
392
476
|
* Table configuration options
|
|
393
477
|
*/
|
|
@@ -0,0 +1,139 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Row template formatting
|
|
3
|
+
* @typedef {Object} RowTemplateFormatting
|
|
4
|
+
* @property {import('prosemirror-model').NodeType} blockType - Node type used when building cell content
|
|
5
|
+
* @property {Object|null} blockAttrs - Attributes to apply to the created block node
|
|
6
|
+
* @property {Array<import('prosemirror-model').Mark>} textMarks - Marks copied from the template text node
|
|
7
|
+
*/
|
|
8
|
+
/**
|
|
9
|
+
* Build row from template row parameters
|
|
10
|
+
* @typedef {Object} BuildRowFromTemplateRowParams
|
|
11
|
+
* @property {import('prosemirror-model').Schema} schema - Editor schema
|
|
12
|
+
* @property {import('prosemirror-model').Node} tableNode - Table node used for column map lookup
|
|
13
|
+
* @property {import('prosemirror-model').Node} templateRow - Row providing structure and formatting
|
|
14
|
+
* @property {Array} values - Values to populate each table cell
|
|
15
|
+
* @property {boolean} [copyRowStyle=false] - Clone template marks and block attrs when true
|
|
16
|
+
*/
|
|
17
|
+
/**
|
|
18
|
+
* Insert rows at table end parameters
|
|
19
|
+
* @typedef {Object} InsertRowsAtTableEndParams
|
|
20
|
+
* @property {import('prosemirror-state').Transaction} tr - Transaction to mutate
|
|
21
|
+
* @property {number} tablePos - Absolute position of the target table
|
|
22
|
+
* @property {import('prosemirror-model').Node} tableNode - Table node receiving new rows
|
|
23
|
+
* @property {import('prosemirror-model').Node[]} rows - Row nodes to append
|
|
24
|
+
*/
|
|
25
|
+
/**
|
|
26
|
+
* Resolve the table node that should receive appended rows.
|
|
27
|
+
* Prefers an explicit table node, falling back to a position lookup.
|
|
28
|
+
* @private
|
|
29
|
+
* @param {import('prosemirror-state').Transaction} tr - Current transaction
|
|
30
|
+
* @param {number} [tablePos] - Absolute position of the table in the document
|
|
31
|
+
* @param {import('prosemirror-model').Node} [tableNode] - Explicit table node reference
|
|
32
|
+
* @returns {import('prosemirror-model').Node|null} Table node to append rows to, or null if not found
|
|
33
|
+
*/
|
|
34
|
+
export function resolveTable(tr: import("prosemirror-state").Transaction, tablePos?: number, tableNode?: import("prosemirror-model").Node): import("prosemirror-model").Node | null;
|
|
35
|
+
/**
|
|
36
|
+
* Select the template row used to derive structure and attributes for appended rows.
|
|
37
|
+
* Prefers the last body row (containing table cells) and falls back to the last row in the table.
|
|
38
|
+
* @private
|
|
39
|
+
* @param {import('prosemirror-model').Node} tableNode - Table node to inspect
|
|
40
|
+
* @param {import('prosemirror-model').Schema} schema - Editor schema
|
|
41
|
+
* @returns {import('prosemirror-model').Node|null} Template row node or null if none exist
|
|
42
|
+
*/
|
|
43
|
+
export function pickTemplateRowForAppend(tableNode: import("prosemirror-model").Node, schema: import("prosemirror-model").Schema): import("prosemirror-model").Node | null;
|
|
44
|
+
/**
|
|
45
|
+
* Extract block type, attributes, and text marks from a template cell.
|
|
46
|
+
* Used to reproduce formatting when constructing new row content.
|
|
47
|
+
* @private
|
|
48
|
+
* @param {import('prosemirror-model').Node} cellNode - Template cell node
|
|
49
|
+
* @param {import('prosemirror-model').Schema} schema - Editor schema
|
|
50
|
+
* @returns {RowTemplateFormatting} Formatting info
|
|
51
|
+
*/
|
|
52
|
+
export function extractRowTemplateFormatting(cellNode: import("prosemirror-model").Node, schema: import("prosemirror-model").Schema): RowTemplateFormatting;
|
|
53
|
+
/**
|
|
54
|
+
* Create a block node for a new cell, optionally applying marks from the template row.
|
|
55
|
+
* @private
|
|
56
|
+
* @param {import('prosemirror-model').Schema} schema - Editor schema
|
|
57
|
+
* @param {string|any} value - Cell text value
|
|
58
|
+
* @param {RowTemplateFormatting} formatting - Template formatting info
|
|
59
|
+
* @param {boolean} [copyRowStyle=false] - Whether to copy marks from the template row
|
|
60
|
+
* @returns {import('prosemirror-model').Node} Block node ready to insert into the cell
|
|
61
|
+
*/
|
|
62
|
+
export function buildFormattedCellBlock(schema: import("prosemirror-model").Schema, value: string | any, { blockType, blockAttrs, textMarks }: RowTemplateFormatting, copyRowStyle?: boolean): import("prosemirror-model").Node;
|
|
63
|
+
/**
|
|
64
|
+
* Construct a new table row by cloning structure from a template row and filling in values.
|
|
65
|
+
* Handles colspan-based value mapping and optional style copying.
|
|
66
|
+
* @private
|
|
67
|
+
* @param {BuildRowFromTemplateRowParams} params - Build parameters
|
|
68
|
+
* @returns {import('prosemirror-model').Node|null} Newly created table row node
|
|
69
|
+
*/
|
|
70
|
+
export function buildRowFromTemplateRow({ schema, tableNode, templateRow, values, copyRowStyle }: BuildRowFromTemplateRowParams): import("prosemirror-model").Node | null;
|
|
71
|
+
/**
|
|
72
|
+
* Append one or more rows to the end of a table in a single transaction.
|
|
73
|
+
* @private
|
|
74
|
+
* @param {InsertRowsAtTableEndParams} params - Insert parameters
|
|
75
|
+
*/
|
|
76
|
+
export function insertRowsAtTableEnd({ tr, tablePos, tableNode, rows }: InsertRowsAtTableEndParams): void;
|
|
77
|
+
/**
|
|
78
|
+
* Row template formatting
|
|
79
|
+
*/
|
|
80
|
+
export type RowTemplateFormatting = {
|
|
81
|
+
/**
|
|
82
|
+
* - Node type used when building cell content
|
|
83
|
+
*/
|
|
84
|
+
blockType: import("prosemirror-model").NodeType;
|
|
85
|
+
/**
|
|
86
|
+
* - Attributes to apply to the created block node
|
|
87
|
+
*/
|
|
88
|
+
blockAttrs: any | null;
|
|
89
|
+
/**
|
|
90
|
+
* - Marks copied from the template text node
|
|
91
|
+
*/
|
|
92
|
+
textMarks: Array<import("prosemirror-model").Mark>;
|
|
93
|
+
};
|
|
94
|
+
/**
|
|
95
|
+
* Build row from template row parameters
|
|
96
|
+
*/
|
|
97
|
+
export type BuildRowFromTemplateRowParams = {
|
|
98
|
+
/**
|
|
99
|
+
* - Editor schema
|
|
100
|
+
*/
|
|
101
|
+
schema: import("prosemirror-model").Schema;
|
|
102
|
+
/**
|
|
103
|
+
* - Table node used for column map lookup
|
|
104
|
+
*/
|
|
105
|
+
tableNode: import("prosemirror-model").Node;
|
|
106
|
+
/**
|
|
107
|
+
* - Row providing structure and formatting
|
|
108
|
+
*/
|
|
109
|
+
templateRow: import("prosemirror-model").Node;
|
|
110
|
+
/**
|
|
111
|
+
* - Values to populate each table cell
|
|
112
|
+
*/
|
|
113
|
+
values: any[];
|
|
114
|
+
/**
|
|
115
|
+
* - Clone template marks and block attrs when true
|
|
116
|
+
*/
|
|
117
|
+
copyRowStyle?: boolean;
|
|
118
|
+
};
|
|
119
|
+
/**
|
|
120
|
+
* Insert rows at table end parameters
|
|
121
|
+
*/
|
|
122
|
+
export type InsertRowsAtTableEndParams = {
|
|
123
|
+
/**
|
|
124
|
+
* - Transaction to mutate
|
|
125
|
+
*/
|
|
126
|
+
tr: import("prosemirror-state").Transaction;
|
|
127
|
+
/**
|
|
128
|
+
* - Absolute position of the target table
|
|
129
|
+
*/
|
|
130
|
+
tablePos: number;
|
|
131
|
+
/**
|
|
132
|
+
* - Table node receiving new rows
|
|
133
|
+
*/
|
|
134
|
+
tableNode: import("prosemirror-model").Node;
|
|
135
|
+
/**
|
|
136
|
+
* - Row nodes to append
|
|
137
|
+
*/
|
|
138
|
+
rows: import("prosemirror-model").Node[];
|
|
139
|
+
};
|
|
@@ -19,14 +19,20 @@ export namespace Extensions {
|
|
|
19
19
|
export { Node };
|
|
20
20
|
export { Attribute };
|
|
21
21
|
export { Extension };
|
|
22
|
-
export { Plugin };
|
|
23
22
|
export { Mark };
|
|
23
|
+
export { Plugin };
|
|
24
|
+
export { PluginKey };
|
|
25
|
+
export { Decoration };
|
|
26
|
+
export { DecorationSet };
|
|
24
27
|
}
|
|
25
28
|
import { TrackChangesBasePluginKey } from './extensions/track-changes/plugins/index.js';
|
|
26
29
|
import { CommentsPluginKey } from './extensions/comment/comments-plugin.js';
|
|
27
30
|
import { Node } from '@core/index.js';
|
|
28
31
|
import { Attribute } from '@core/index.js';
|
|
29
32
|
import { Extension } from '@core/Extension.js';
|
|
30
|
-
import { Plugin } from 'prosemirror-state';
|
|
31
33
|
import { Mark } from '@core/Mark.js';
|
|
34
|
+
import { Plugin } from 'prosemirror-state';
|
|
35
|
+
import { PluginKey } from 'prosemirror-state';
|
|
36
|
+
import { Decoration } from 'prosemirror-view';
|
|
37
|
+
import { DecorationSet } from 'prosemirror-view';
|
|
32
38
|
export { SuperConverter, DocxZipper, SuperToolbar, Editor, SuperEditor, SuperInput, BasicUpload, Toolbar, AIWriter, SlashMenu, helpers, fieldAnnotationHelpers, trackChangesHelpers, AnnotatorHelpers, SectionHelpers, getMarksFromSelection, getActiveFormatting, getStarterExtensions, getRichTextExtensions, createZip, getAllowedImageDimensions, registeredHandlers, TrackChangesBasePluginKey, CommentsPluginKey };
|
|
@@ -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 { aA as getDefaultExportFromCjs, V as v4, T as TextSelection$1, v as getMarkRange, aD as vClickOutside, H as findParentNode, aE as getActiveFormatting, av as isInTable, aF as readFromClipboard, aG as handleClipboardPaste, aH as getFileObject, aI as runPropertyTranslators, aJ as translator, aK as translator$1, aL as translator$2, aM as translator$3, aN as translator$4, aO as translator$5, aP as translator$6, aQ as translator$7, aR as translator$8, aS as translator$9, aT as translator$a, aU as translator$b, aV as translator$c, aW as translator$d, aX as translator$e, aY as commentRangeEndTranslator, aZ as commentRangeStartTranslator, a_ as translator$f, a$ as translator$g, b0 as translator$h, b1 as translator$i, b2 as translator$j, b3 as translator$k, b4 as translator$l, b5 as translator$m, b6 as translator$n, b7 as translator$o, b8 as translator$p, b9 as translator$q, ba as translator$r, bb as translator$s, bc as translator$t, bd as translator$u, be as translator$v, bf as translator$w, bg as translator$x, bh as translator$y, bi as translator$z, bj as translator$A, bk as translator$B, bl as translator$C, bm as translator$D, bn as translator$E, bo as translator$F, bp as translator$G, bq as translator$H, br as translator$I, bs as translator$J, bt as translator$K, bu as translator$L, bv as translator$M, bw as translator$N, bx as translator$O, by as translator$P, bz as translator$Q, bA as translator$R, bB as translator$S, bC as translator$T, bD as translator$U, bE as translator$V, bF as translator$W, bG as translator$X, bH as translator$Y, bI as translator$Z, bJ as translator$_, bK as translator$$, bL as translator$10, bM as translator$11, bN as translator$12, bO as translator$13, bP as translator$14, bQ as translator$15, bR as translator$16, bS as translator$17, bT as translator$18, bU as translator$19, bV as translator$1a, bW as translator$1b, bX as translator$1c, bY as translator$1d, bZ as translator$1e, b_ as translator$1f, b$ as translator$1g, c0 as translator$1h, a as Plugin } from "./chunks/converter-
|
|
13
|
-
import { c1, a5, i, a2 } from "./chunks/converter-
|
|
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, E as Editor, l as getStarterExtensions, P as Placeholder, m as getRichTextExtensions, M as Mark,
|
|
15
|
-
import {
|
|
12
|
+
import { aA as getDefaultExportFromCjs, V as v4, T as TextSelection$1, v as getMarkRange, aD as vClickOutside, H as findParentNode, aE as getActiveFormatting, av as isInTable, aF as readFromClipboard, aG as handleClipboardPaste, aH as getFileObject, aI as runPropertyTranslators, aJ as translator, aK as translator$1, aL as translator$2, aM as translator$3, aN as translator$4, aO as translator$5, aP as translator$6, aQ as translator$7, aR as translator$8, aS as translator$9, aT as translator$a, aU as translator$b, aV as translator$c, aW as translator$d, aX as translator$e, aY as commentRangeEndTranslator, aZ as commentRangeStartTranslator, a_ as translator$f, a$ as translator$g, b0 as translator$h, b1 as translator$i, b2 as translator$j, b3 as translator$k, b4 as translator$l, b5 as translator$m, b6 as translator$n, b7 as translator$o, b8 as translator$p, b9 as translator$q, ba as translator$r, bb as translator$s, bc as translator$t, bd as translator$u, be as translator$v, bf as translator$w, bg as translator$x, bh as translator$y, bi as translator$z, bj as translator$A, bk as translator$B, bl as translator$C, bm as translator$D, bn as translator$E, bo as translator$F, bp as translator$G, bq as translator$H, br as translator$I, bs as translator$J, bt as translator$K, bu as translator$L, bv as translator$M, bw as translator$N, bx as translator$O, by as translator$P, bz as translator$Q, bA as translator$R, bB as translator$S, bC as translator$T, bD as translator$U, bE as translator$V, bF as translator$W, bG as translator$X, bH as translator$Y, bI as translator$Z, bJ as translator$_, bK as translator$$, bL as translator$10, bM as translator$11, bN as translator$12, bO as translator$13, bP as translator$14, bQ as translator$15, bR as translator$16, bS as translator$17, bT as translator$18, bU as translator$19, bV as translator$1a, bW as translator$1b, bX as translator$1c, bY as translator$1d, bZ as translator$1e, b_ as translator$1f, b$ as translator$1g, c0 as translator$1h, P as PluginKey, a as Plugin } from "./chunks/converter-khE-H7hH.js";
|
|
13
|
+
import { c1, a5, i, a2 } from "./chunks/converter-khE-H7hH.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, E as Editor, l as getStarterExtensions, P as Placeholder, m as getRichTextExtensions, D as DecorationSet, n as Decoration, M as Mark, o as Extension, A as Attribute, N as Node } from "./chunks/editor-wd9pvfTV.js";
|
|
15
|
+
import { t, C, v, T, p, w, q } from "./chunks/editor-wd9pvfTV.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, 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-CWJmT_bY.js";
|
|
18
18
|
import AIWriter from "./ai-writer.es.js";
|
|
19
|
-
import { D } from "./chunks/docx-zipper-
|
|
19
|
+
import { D } from "./chunks/docx-zipper-KoUEtzIj.js";
|
|
20
20
|
import { createZip } from "./file-zipper.es.js";
|
|
21
21
|
var eventemitter3 = { exports: {} };
|
|
22
22
|
var hasRequiredEventemitter3;
|
|
@@ -2088,7 +2088,7 @@ const makeDefaultItems = ({
|
|
|
2088
2088
|
disabled: false,
|
|
2089
2089
|
name: "acceptTrackedChangeBySelection",
|
|
2090
2090
|
tooltip: toolbarTexts2.trackChangesAccept,
|
|
2091
|
-
command: "
|
|
2091
|
+
command: "acceptTrackedChangeFromToolbar",
|
|
2092
2092
|
icon: toolbarIcons2.trackChangesAccept,
|
|
2093
2093
|
group: "left",
|
|
2094
2094
|
attributes: {
|
|
@@ -2100,7 +2100,7 @@ const makeDefaultItems = ({
|
|
|
2100
2100
|
disabled: false,
|
|
2101
2101
|
name: "rejectTrackedChangeOnSelection",
|
|
2102
2102
|
tooltip: toolbarTexts2.trackChangesReject,
|
|
2103
|
-
command: "
|
|
2103
|
+
command: "rejectTrackedChangeFromToolbar",
|
|
2104
2104
|
icon: toolbarIcons2.trackChangesReject,
|
|
2105
2105
|
group: "left",
|
|
2106
2106
|
attributes: {
|
|
@@ -5179,18 +5179,22 @@ const Extensions = {
|
|
|
5179
5179
|
Node,
|
|
5180
5180
|
Attribute,
|
|
5181
5181
|
Extension,
|
|
5182
|
+
Mark,
|
|
5183
|
+
//
|
|
5182
5184
|
Plugin,
|
|
5183
|
-
|
|
5185
|
+
PluginKey,
|
|
5186
|
+
Decoration,
|
|
5187
|
+
DecorationSet
|
|
5184
5188
|
};
|
|
5185
5189
|
export {
|
|
5186
5190
|
AIWriter,
|
|
5187
|
-
|
|
5191
|
+
t as AnnotatorHelpers,
|
|
5188
5192
|
c1 as BasicUpload,
|
|
5189
5193
|
C as CommentsPluginKey,
|
|
5190
5194
|
D as DocxZipper,
|
|
5191
5195
|
Editor,
|
|
5192
5196
|
Extensions,
|
|
5193
|
-
|
|
5197
|
+
v as SectionHelpers,
|
|
5194
5198
|
_sfc_main$4 as SlashMenu,
|
|
5195
5199
|
a5 as SuperConverter,
|
|
5196
5200
|
SuperEditor,
|
|
@@ -5199,13 +5203,13 @@ export {
|
|
|
5199
5203
|
Toolbar,
|
|
5200
5204
|
T as TrackChangesBasePluginKey,
|
|
5201
5205
|
createZip,
|
|
5202
|
-
|
|
5206
|
+
p as fieldAnnotationHelpers,
|
|
5203
5207
|
getActiveFormatting,
|
|
5204
|
-
|
|
5208
|
+
w as getAllowedImageDimensions,
|
|
5205
5209
|
i as getMarksFromSelection,
|
|
5206
5210
|
getRichTextExtensions,
|
|
5207
5211
|
getStarterExtensions,
|
|
5208
5212
|
a2 as helpers,
|
|
5209
5213
|
registeredHandlers,
|
|
5210
|
-
|
|
5214
|
+
q as trackChangesHelpers
|
|
5211
5215
|
};
|
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-C74O3hXJ.cjs");
|
|
4
4
|
require("./chunks/vue-DKMj1I9B.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-DznCuGcp.es.js";
|
|
2
2
|
import "./chunks/vue-ZWZLQtoU.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-C74O3hXJ.cjs");
|
|
4
|
+
const superdoc = require("./chunks/index-W-nB4woH.cjs");
|
|
5
5
|
require("./chunks/vue-DKMj1I9B.cjs");
|
|
6
6
|
const blankDocx = require("./chunks/blank-docx-DfW3Eeh2.cjs");
|
|
7
7
|
exports.AnnotatorHelpers = superEditor_es.AnnotatorHelpers;
|
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-DznCuGcp.es.js";
|
|
2
|
+
import { D, H, P, S as S2, m, l } from "./chunks/index-kTEBpqiG.es.js";
|
|
3
3
|
import "./chunks/vue-ZWZLQtoU.es.js";
|
|
4
4
|
import { B } from "./chunks/blank-docx-ABm6XYAA.es.js";
|
|
5
5
|
export {
|