@pixerate/editor 0.23.0 → 0.24.0
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/README.md +96 -1
- package/THIRD_PARTY_NOTICES.md +51 -0
- package/dist/agent/index.cjs +9 -8
- package/dist/agent/index.cjs.map +1 -1
- package/dist/agent/index.d.cts +4 -3
- package/dist/agent/index.d.ts +4 -3
- package/dist/agent/index.js +3 -2
- package/dist/agent/index.js.map +1 -1
- package/dist/canvas/index.cjs +1210 -17
- package/dist/canvas/index.cjs.map +1 -1
- package/dist/canvas/index.d.cts +318 -1
- package/dist/canvas/index.d.ts +318 -1
- package/dist/canvas/index.js +1199 -6
- package/dist/canvas/index.js.map +1 -1
- package/dist/{chunk-QBJ22YZR.js → chunk-3CN2WD3X.js} +1354 -206
- package/dist/chunk-3CN2WD3X.js.map +1 -0
- package/dist/{chunk-JJDLPEWL.js → chunk-3LV6RRPH.js} +2 -2
- package/dist/{chunk-MJZBNWG7.js → chunk-5S3Z4PPF.js} +78 -557
- package/dist/chunk-5S3Z4PPF.js.map +1 -0
- package/dist/chunk-664LQYFJ.js +115 -0
- package/dist/chunk-664LQYFJ.js.map +1 -0
- package/dist/{chunk-AA4ZEVCC.cjs → chunk-D27YFC46.cjs} +101 -580
- package/dist/chunk-D27YFC46.cjs.map +1 -0
- package/dist/chunk-D6FH2YAX.cjs +131 -0
- package/dist/chunk-D6FH2YAX.cjs.map +1 -0
- package/dist/{chunk-4SUNJZWB.cjs → chunk-FD4LPFAE.cjs} +48 -200
- package/dist/chunk-FD4LPFAE.cjs.map +1 -0
- package/dist/chunk-FODNLX5N.js +749 -0
- package/dist/chunk-FODNLX5N.js.map +1 -0
- package/dist/{chunk-OYXSKQFR.js → chunk-FPENXAEJ.js} +35 -187
- package/dist/chunk-FPENXAEJ.js.map +1 -0
- package/dist/chunk-HLIMTC6N.js +1 -0
- package/dist/chunk-HLIMTC6N.js.map +1 -0
- package/dist/{chunk-QGHGJ56O.js → chunk-ITBSKI26.js} +1483 -19
- package/dist/chunk-ITBSKI26.js.map +1 -0
- package/dist/{chunk-XDMXXC4Z.cjs → chunk-MA2F5KHF.cjs} +350 -227
- package/dist/chunk-MA2F5KHF.cjs.map +1 -0
- package/dist/{chunk-RIKBJLS2.cjs → chunk-MCSJFWAO.cjs} +1356 -208
- package/dist/chunk-MCSJFWAO.cjs.map +1 -0
- package/dist/chunk-MKA3AHLV.cjs +256 -0
- package/dist/chunk-MKA3AHLV.cjs.map +1 -0
- package/dist/chunk-OLZJXL4R.cjs +749 -0
- package/dist/chunk-OLZJXL4R.cjs.map +1 -0
- package/dist/chunk-OXSV64JX.js +689 -0
- package/dist/chunk-OXSV64JX.js.map +1 -0
- package/dist/chunk-P3RQ5UJE.cjs +689 -0
- package/dist/chunk-P3RQ5UJE.cjs.map +1 -0
- package/dist/chunk-P6ODPZ4W.js +256 -0
- package/dist/chunk-P6ODPZ4W.js.map +1 -0
- package/dist/chunk-PGNZKFQS.js +685 -0
- package/dist/chunk-PGNZKFQS.js.map +1 -0
- package/dist/chunk-PL4JB3BF.cjs +1 -0
- package/dist/chunk-PL4JB3BF.cjs.map +1 -0
- package/dist/{chunk-GVSMRPHB.cjs → chunk-SBCZ6RN5.cjs} +1568 -104
- package/dist/chunk-SBCZ6RN5.cjs.map +1 -0
- package/dist/{chunk-CL37JGFW.cjs → chunk-SML64VJG.cjs} +4 -4
- package/dist/{chunk-CL37JGFW.cjs.map → chunk-SML64VJG.cjs.map} +1 -1
- package/dist/chunk-TNNJXF46.cjs +115 -0
- package/dist/chunk-TNNJXF46.cjs.map +1 -0
- package/dist/chunk-U5HZSFCS.js +131 -0
- package/dist/chunk-U5HZSFCS.js.map +1 -0
- package/dist/{chunk-K3R5NG2D.js → chunk-U5KWZU4X.js} +251 -128
- package/dist/chunk-U5KWZU4X.js.map +1 -0
- package/dist/chunk-XNORY7M6.cjs +685 -0
- package/dist/chunk-XNORY7M6.cjs.map +1 -0
- package/dist/commands/index.d.cts +5 -353
- package/dist/commands/index.d.ts +5 -353
- package/dist/comment-store-BEMgVlAA.d.cts +135 -0
- package/dist/comment-store-BEMgVlAA.d.ts +135 -0
- package/dist/compare/index.cjs +15 -0
- package/dist/compare/index.cjs.map +1 -0
- package/dist/compare/index.d.cts +58 -0
- package/dist/compare/index.d.ts +58 -0
- package/dist/compare/index.js +15 -0
- package/dist/compare/index.js.map +1 -0
- package/dist/{controller-pePCJLT1.d.cts → controller-BhLLAoi8.d.cts} +45 -4
- package/dist/{controller-pePCJLT1.d.ts → controller-BhLLAoi8.d.ts} +45 -4
- package/dist/documents-BQjzJNe2.d.ts +76 -0
- package/dist/documents-KRTPhvst.d.cts +76 -0
- package/dist/extensions/index.cjs +53 -5
- package/dist/extensions/index.cjs.map +1 -1
- package/dist/extensions/index.d.cts +7 -3
- package/dist/extensions/index.d.ts +7 -3
- package/dist/extensions/index.js +52 -4
- package/dist/generation/index.cjs +1373 -0
- package/dist/generation/index.cjs.map +1 -0
- package/dist/generation/index.d.cts +554 -0
- package/dist/generation/index.d.ts +554 -0
- package/dist/generation/index.js +1373 -0
- package/dist/generation/index.js.map +1 -0
- package/dist/grammar/index.cjs +48 -3
- package/dist/grammar/index.cjs.map +1 -1
- package/dist/grammar/index.d.cts +322 -100
- package/dist/grammar/index.d.ts +322 -100
- package/dist/grammar/index.js +54 -9
- package/dist/image-editor/index.cjs +1831 -30
- package/dist/image-editor/index.cjs.map +1 -1
- package/dist/image-editor/index.d.cts +590 -3
- package/dist/image-editor/index.d.ts +590 -3
- package/dist/image-editor/index.js +1807 -6
- package/dist/image-editor/index.js.map +1 -1
- package/dist/{index-CCr_z9kF.d.cts → index-BhJBSm2d.d.cts} +370 -4
- package/dist/{index-Ck6ajwXh.d.ts → index-fJrlkJCd.d.ts} +370 -4
- package/dist/index.cjs +162 -25
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +14 -8
- package/dist/index.d.ts +14 -8
- package/dist/index.js +174 -37
- package/dist/index.js.map +1 -1
- package/dist/migrate-iTlm3a8h.d.cts +112 -0
- package/dist/migrate-iTlm3a8h.d.ts +112 -0
- package/dist/persistence/index.cjs +676 -0
- package/dist/persistence/index.cjs.map +1 -0
- package/dist/persistence/index.d.cts +347 -0
- package/dist/persistence/index.d.ts +347 -0
- package/dist/persistence/index.js +676 -0
- package/dist/persistence/index.js.map +1 -0
- package/dist/{registry-D5-R90p0.d.cts → registry-BDe-vlv3.d.ts} +2 -40
- package/dist/registry-D32LpIc4.d.cts +354 -0
- package/dist/{registry-D5-R90p0.d.ts → registry-DnzpgY27.d.cts} +2 -40
- package/dist/registry-evKTP4ls.d.ts +354 -0
- package/dist/schema-DYDGdYL9.d.cts +41 -0
- package/dist/schema-DYDGdYL9.d.ts +41 -0
- package/dist/serializers/index.cjs +4 -3
- package/dist/serializers/index.cjs.map +1 -1
- package/dist/serializers/index.d.cts +2 -1
- package/dist/serializers/index.d.ts +2 -1
- package/dist/serializers/index.js +3 -2
- package/dist/sourcemap-C8AH3MBQ.d.cts +91 -0
- package/dist/sourcemap-DA1Evhrv.d.ts +91 -0
- package/dist/spreadsheet/index.cjs +37 -3
- package/dist/spreadsheet/index.cjs.map +1 -1
- package/dist/spreadsheet/index.d.cts +188 -17
- package/dist/spreadsheet/index.d.ts +188 -17
- package/dist/spreadsheet/index.js +43 -9
- package/dist/{tokens-CyLZmIei.d.cts → tokens-D7yXvUU6.d.cts} +15 -2
- package/dist/{tokens-CyLZmIei.d.ts → tokens-D7yXvUU6.d.ts} +15 -2
- package/dist/{track-changes-BSF58RK0.d.ts → track-changes-BK5sVf4_.d.cts} +18 -136
- package/dist/{track-changes-BSF58RK0.d.cts → track-changes-CDjCrwKe.d.ts} +18 -136
- package/package.json +16 -1
- package/dist/chunk-4SUNJZWB.cjs.map +0 -1
- package/dist/chunk-AA4ZEVCC.cjs.map +0 -1
- package/dist/chunk-AXV2ZW34.cjs +0 -118
- package/dist/chunk-AXV2ZW34.cjs.map +0 -1
- package/dist/chunk-B2ZRLN4S.js +0 -118
- package/dist/chunk-B2ZRLN4S.js.map +0 -1
- package/dist/chunk-GVSMRPHB.cjs.map +0 -1
- package/dist/chunk-K3R5NG2D.js.map +0 -1
- package/dist/chunk-MJZBNWG7.js.map +0 -1
- package/dist/chunk-OYXSKQFR.js.map +0 -1
- package/dist/chunk-QBJ22YZR.js.map +0 -1
- package/dist/chunk-QGHGJ56O.js.map +0 -1
- package/dist/chunk-RIKBJLS2.cjs.map +0 -1
- package/dist/chunk-XDMXXC4Z.cjs.map +0 -1
- /package/dist/{chunk-JJDLPEWL.js.map → chunk-3LV6RRPH.js.map} +0 -0
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
export { C as CompareDocumentsOptions, a as CompareDocumentsResult, b as CompareSource, c as CompareSummary, d as compareDocuments, e as compareHtml } from '../documents-KRTPhvst.cjs';
|
|
2
|
+
import '@tiptap/pm/model';
|
|
3
|
+
import '../comment-store-BEMgVlAA.cjs';
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* Generic sequence diff: common prefix/suffix stripping, Myers' O((N+M)·D)
|
|
7
|
+
* algorithm for small segments and patience anchors (items unique on both
|
|
8
|
+
* sides, longest increasing subsequence) to split long ones. Dependency-free.
|
|
9
|
+
*/
|
|
10
|
+
type DiffOpType = "equal" | "delete" | "insert";
|
|
11
|
+
/** A run of consecutive operations of one type. */
|
|
12
|
+
interface DiffRun {
|
|
13
|
+
type: DiffOpType;
|
|
14
|
+
/** Start index in `a` (for `insert`, where the items go in `a`). */
|
|
15
|
+
aIndex: number;
|
|
16
|
+
/** Start index in `b` (for `delete`, where the items were in `b`). */
|
|
17
|
+
bIndex: number;
|
|
18
|
+
length: number;
|
|
19
|
+
}
|
|
20
|
+
/** A change: a deleted range of `a`, an inserted range of `b`, or both (replaced). */
|
|
21
|
+
interface DiffChange {
|
|
22
|
+
kind: "inserted" | "deleted" | "replaced";
|
|
23
|
+
aStart: number;
|
|
24
|
+
aEnd: number;
|
|
25
|
+
bStart: number;
|
|
26
|
+
bEnd: number;
|
|
27
|
+
}
|
|
28
|
+
interface DiffSequencesOptions<T> {
|
|
29
|
+
/**
|
|
30
|
+
* Key of an item: items with the same key are equal. Defaults to the item
|
|
31
|
+
* itself for strings, numbers and booleans, and `JSON.stringify` otherwise.
|
|
32
|
+
* Keys enable patience anchors for long inputs.
|
|
33
|
+
*/
|
|
34
|
+
hash?: (item: T) => string | number | boolean;
|
|
35
|
+
/**
|
|
36
|
+
* Custom equality. Without `hash`, segments longer than `direct` are only
|
|
37
|
+
* diffed while the edit distance stays below `direct`, otherwise replaced.
|
|
38
|
+
*/
|
|
39
|
+
equals?: (a: T, b: T) => boolean;
|
|
40
|
+
/**
|
|
41
|
+
* Segments with more items (both sides together) are split at anchors
|
|
42
|
+
* first so Myers' saved frontiers (O(D²) memory) stay small. Default 3000.
|
|
43
|
+
*/
|
|
44
|
+
direct?: number;
|
|
45
|
+
/** Maximum anchor recursion depth before a long segment is replaced whole. Default 8. */
|
|
46
|
+
maxDepth?: number;
|
|
47
|
+
}
|
|
48
|
+
/**
|
|
49
|
+
* Diffs two sequences and returns the edit script as runs of equal, deleted
|
|
50
|
+
* and inserted items, in order. Within a changed stretch deletions come
|
|
51
|
+
* before insertions. The script is minimal for segments up to `direct`
|
|
52
|
+
* items; longer inputs are split at patience anchors (bounded work).
|
|
53
|
+
*/
|
|
54
|
+
declare function diffSequences<T>(a: readonly T[], b: readonly T[], options?: DiffSequencesOptions<T>): DiffRun[];
|
|
55
|
+
/** Groups an edit script into inserted, deleted and replaced ranges. */
|
|
56
|
+
declare function diffChanges<T>(a: readonly T[], b: readonly T[], options?: DiffSequencesOptions<T>): DiffChange[];
|
|
57
|
+
|
|
58
|
+
export { type DiffChange, type DiffOpType, type DiffRun, type DiffSequencesOptions, diffChanges, diffSequences };
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
export { C as CompareDocumentsOptions, a as CompareDocumentsResult, b as CompareSource, c as CompareSummary, d as compareDocuments, e as compareHtml } from '../documents-BQjzJNe2.js';
|
|
2
|
+
import '@tiptap/pm/model';
|
|
3
|
+
import '../comment-store-BEMgVlAA.js';
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* Generic sequence diff: common prefix/suffix stripping, Myers' O((N+M)·D)
|
|
7
|
+
* algorithm for small segments and patience anchors (items unique on both
|
|
8
|
+
* sides, longest increasing subsequence) to split long ones. Dependency-free.
|
|
9
|
+
*/
|
|
10
|
+
type DiffOpType = "equal" | "delete" | "insert";
|
|
11
|
+
/** A run of consecutive operations of one type. */
|
|
12
|
+
interface DiffRun {
|
|
13
|
+
type: DiffOpType;
|
|
14
|
+
/** Start index in `a` (for `insert`, where the items go in `a`). */
|
|
15
|
+
aIndex: number;
|
|
16
|
+
/** Start index in `b` (for `delete`, where the items were in `b`). */
|
|
17
|
+
bIndex: number;
|
|
18
|
+
length: number;
|
|
19
|
+
}
|
|
20
|
+
/** A change: a deleted range of `a`, an inserted range of `b`, or both (replaced). */
|
|
21
|
+
interface DiffChange {
|
|
22
|
+
kind: "inserted" | "deleted" | "replaced";
|
|
23
|
+
aStart: number;
|
|
24
|
+
aEnd: number;
|
|
25
|
+
bStart: number;
|
|
26
|
+
bEnd: number;
|
|
27
|
+
}
|
|
28
|
+
interface DiffSequencesOptions<T> {
|
|
29
|
+
/**
|
|
30
|
+
* Key of an item: items with the same key are equal. Defaults to the item
|
|
31
|
+
* itself for strings, numbers and booleans, and `JSON.stringify` otherwise.
|
|
32
|
+
* Keys enable patience anchors for long inputs.
|
|
33
|
+
*/
|
|
34
|
+
hash?: (item: T) => string | number | boolean;
|
|
35
|
+
/**
|
|
36
|
+
* Custom equality. Without `hash`, segments longer than `direct` are only
|
|
37
|
+
* diffed while the edit distance stays below `direct`, otherwise replaced.
|
|
38
|
+
*/
|
|
39
|
+
equals?: (a: T, b: T) => boolean;
|
|
40
|
+
/**
|
|
41
|
+
* Segments with more items (both sides together) are split at anchors
|
|
42
|
+
* first so Myers' saved frontiers (O(D²) memory) stay small. Default 3000.
|
|
43
|
+
*/
|
|
44
|
+
direct?: number;
|
|
45
|
+
/** Maximum anchor recursion depth before a long segment is replaced whole. Default 8. */
|
|
46
|
+
maxDepth?: number;
|
|
47
|
+
}
|
|
48
|
+
/**
|
|
49
|
+
* Diffs two sequences and returns the edit script as runs of equal, deleted
|
|
50
|
+
* and inserted items, in order. Within a changed stretch deletions come
|
|
51
|
+
* before insertions. The script is minimal for segments up to `direct`
|
|
52
|
+
* items; longer inputs are split at patience anchors (bounded work).
|
|
53
|
+
*/
|
|
54
|
+
declare function diffSequences<T>(a: readonly T[], b: readonly T[], options?: DiffSequencesOptions<T>): DiffRun[];
|
|
55
|
+
/** Groups an edit script into inserted, deleted and replaced ranges. */
|
|
56
|
+
declare function diffChanges<T>(a: readonly T[], b: readonly T[], options?: DiffSequencesOptions<T>): DiffChange[];
|
|
57
|
+
|
|
58
|
+
export { type DiffChange, type DiffOpType, type DiffRun, type DiffSequencesOptions, diffChanges, diffSequences };
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import "../chunk-HLIMTC6N.js";
|
|
2
|
+
import {
|
|
3
|
+
compareDocuments,
|
|
4
|
+
compareHtml,
|
|
5
|
+
diffChanges,
|
|
6
|
+
diffSequences
|
|
7
|
+
} from "../chunk-FODNLX5N.js";
|
|
8
|
+
import "../chunk-5S3Z4PPF.js";
|
|
9
|
+
export {
|
|
10
|
+
compareDocuments,
|
|
11
|
+
compareHtml,
|
|
12
|
+
diffChanges,
|
|
13
|
+
diffSequences
|
|
14
|
+
};
|
|
15
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
|
@@ -13,6 +13,13 @@ interface SpreadsheetColumn {
|
|
|
13
13
|
binding?: ColumnBinding;
|
|
14
14
|
formula?: string;
|
|
15
15
|
format?: CellFormat;
|
|
16
|
+
/**
|
|
17
|
+
* Number format code for the column's cells (e.g. `#,##0.00`,
|
|
18
|
+
* `"$"#,##0.00;[Red]("$"#,##0.00)`, `m/d/yyyy`). Cells without an explicit
|
|
19
|
+
* code of their own use it instead of the automatic one chosen for typed
|
|
20
|
+
* input. See `SpreadsheetController.setColumnNumberFormat`.
|
|
21
|
+
*/
|
|
22
|
+
numberFormat?: string;
|
|
16
23
|
readOnly?: boolean;
|
|
17
24
|
hidden?: boolean;
|
|
18
25
|
}
|
|
@@ -51,12 +58,18 @@ interface CellData {
|
|
|
51
58
|
errorMessage?: string;
|
|
52
59
|
format?: CellFormat;
|
|
53
60
|
/**
|
|
54
|
-
*
|
|
55
|
-
* `
|
|
56
|
-
*
|
|
57
|
-
* `
|
|
61
|
+
* Excel number format code used to display the value (see
|
|
62
|
+
* `formatCellDisplay`). Set explicitly (`explicitNumberFormat`), inherited
|
|
63
|
+
* from the column's `numberFormat`, or chosen automatically for typed input,
|
|
64
|
+
* e.g. `"$"#,##0.00` for `$1,200.50`, `0%` for `10%`, `#,##0` for `1,234`,
|
|
65
|
+
* `m/d/yyyy` for `3/4/2026`, `h:mm` for `10:30`. Absent for General.
|
|
58
66
|
*/
|
|
59
67
|
numberFormat?: string;
|
|
68
|
+
/**
|
|
69
|
+
* True when `numberFormat` was set explicitly (`setCellNumberFormat`):
|
|
70
|
+
* typing into the cell keeps it instead of choosing an automatic format.
|
|
71
|
+
*/
|
|
72
|
+
explicitNumberFormat?: boolean;
|
|
60
73
|
readOnly?: boolean;
|
|
61
74
|
/**
|
|
62
75
|
* Set (only) on cells showing a value spilled from a dynamic array: the
|
|
@@ -706,6 +719,13 @@ declare class SpreadsheetController {
|
|
|
706
719
|
* number) when `format` is unset or `text` (the default of new columns).
|
|
707
720
|
*/
|
|
708
721
|
private typedCell;
|
|
722
|
+
/**
|
|
723
|
+
* The number format a cell keeps whatever is typed into it: its explicit
|
|
724
|
+
* one, else its column's. Undefined lets typed input choose one.
|
|
725
|
+
*/
|
|
726
|
+
private fixedNumberFormat;
|
|
727
|
+
/** `numberFormat` / `explicitNumberFormat` fields for a formula, bound or spilled cell. */
|
|
728
|
+
private fixedNumberFormatFields;
|
|
709
729
|
/**
|
|
710
730
|
* Typed input for a bound field, coerced by the field's declared type:
|
|
711
731
|
* number, boolean and date fields get a number, boolean or ISO date when
|
|
@@ -886,6 +906,27 @@ declare class SpreadsheetController {
|
|
|
886
906
|
/** Keeps the first `count` columns visible while scrolling. 0 unfreezes. */
|
|
887
907
|
setFrozenColumnCount(count: number): void;
|
|
888
908
|
private setTableCount;
|
|
909
|
+
/**
|
|
910
|
+
* Sets an explicit number format code (e.g. `0.00`, `"$"#,##0.00`,
|
|
911
|
+
* `m/d/yyyy`, `[Red]0;[Blue]-0`) on every cell in `range`, including blank
|
|
912
|
+
* cells, so values typed later keep it. `null` removes explicit formats: the
|
|
913
|
+
* cells go back to their column's format or the one chosen for typed input.
|
|
914
|
+
* Undoable as one step. Returns false when there is no range.
|
|
915
|
+
*/
|
|
916
|
+
setCellNumberFormat(range: CellRange | null, code: string | null): boolean;
|
|
917
|
+
/**
|
|
918
|
+
* Sets the number format code of a column (`null` or `General` clears it).
|
|
919
|
+
* Its cells without an explicit format of their own use it, including
|
|
920
|
+
* values typed later; when cleared they go back to the format chosen for
|
|
921
|
+
* typed input. Undoable.
|
|
922
|
+
*/
|
|
923
|
+
setColumnNumberFormat(colId: string, code: string | null): void;
|
|
924
|
+
/** The column's format, or the one typed input chose (typed cells only). */
|
|
925
|
+
private implicitNumberFormat;
|
|
926
|
+
/** A copy of `cell` with `numberFormat` set, or removed when undefined. */
|
|
927
|
+
private withNumberFormat;
|
|
928
|
+
/** Re-applies the stored cell's (or the column's) format to a spilled value shown there. */
|
|
929
|
+
private refreshSpilledNumberFormat;
|
|
889
930
|
hideRows(indices: number[]): void;
|
|
890
931
|
unhideRows(indices: number[]): void;
|
|
891
932
|
hideColumns(indices: number[]): void;
|
|
@@ -13,6 +13,13 @@ interface SpreadsheetColumn {
|
|
|
13
13
|
binding?: ColumnBinding;
|
|
14
14
|
formula?: string;
|
|
15
15
|
format?: CellFormat;
|
|
16
|
+
/**
|
|
17
|
+
* Number format code for the column's cells (e.g. `#,##0.00`,
|
|
18
|
+
* `"$"#,##0.00;[Red]("$"#,##0.00)`, `m/d/yyyy`). Cells without an explicit
|
|
19
|
+
* code of their own use it instead of the automatic one chosen for typed
|
|
20
|
+
* input. See `SpreadsheetController.setColumnNumberFormat`.
|
|
21
|
+
*/
|
|
22
|
+
numberFormat?: string;
|
|
16
23
|
readOnly?: boolean;
|
|
17
24
|
hidden?: boolean;
|
|
18
25
|
}
|
|
@@ -51,12 +58,18 @@ interface CellData {
|
|
|
51
58
|
errorMessage?: string;
|
|
52
59
|
format?: CellFormat;
|
|
53
60
|
/**
|
|
54
|
-
*
|
|
55
|
-
* `
|
|
56
|
-
*
|
|
57
|
-
* `
|
|
61
|
+
* Excel number format code used to display the value (see
|
|
62
|
+
* `formatCellDisplay`). Set explicitly (`explicitNumberFormat`), inherited
|
|
63
|
+
* from the column's `numberFormat`, or chosen automatically for typed input,
|
|
64
|
+
* e.g. `"$"#,##0.00` for `$1,200.50`, `0%` for `10%`, `#,##0` for `1,234`,
|
|
65
|
+
* `m/d/yyyy` for `3/4/2026`, `h:mm` for `10:30`. Absent for General.
|
|
58
66
|
*/
|
|
59
67
|
numberFormat?: string;
|
|
68
|
+
/**
|
|
69
|
+
* True when `numberFormat` was set explicitly (`setCellNumberFormat`):
|
|
70
|
+
* typing into the cell keeps it instead of choosing an automatic format.
|
|
71
|
+
*/
|
|
72
|
+
explicitNumberFormat?: boolean;
|
|
60
73
|
readOnly?: boolean;
|
|
61
74
|
/**
|
|
62
75
|
* Set (only) on cells showing a value spilled from a dynamic array: the
|
|
@@ -706,6 +719,13 @@ declare class SpreadsheetController {
|
|
|
706
719
|
* number) when `format` is unset or `text` (the default of new columns).
|
|
707
720
|
*/
|
|
708
721
|
private typedCell;
|
|
722
|
+
/**
|
|
723
|
+
* The number format a cell keeps whatever is typed into it: its explicit
|
|
724
|
+
* one, else its column's. Undefined lets typed input choose one.
|
|
725
|
+
*/
|
|
726
|
+
private fixedNumberFormat;
|
|
727
|
+
/** `numberFormat` / `explicitNumberFormat` fields for a formula, bound or spilled cell. */
|
|
728
|
+
private fixedNumberFormatFields;
|
|
709
729
|
/**
|
|
710
730
|
* Typed input for a bound field, coerced by the field's declared type:
|
|
711
731
|
* number, boolean and date fields get a number, boolean or ISO date when
|
|
@@ -886,6 +906,27 @@ declare class SpreadsheetController {
|
|
|
886
906
|
/** Keeps the first `count` columns visible while scrolling. 0 unfreezes. */
|
|
887
907
|
setFrozenColumnCount(count: number): void;
|
|
888
908
|
private setTableCount;
|
|
909
|
+
/**
|
|
910
|
+
* Sets an explicit number format code (e.g. `0.00`, `"$"#,##0.00`,
|
|
911
|
+
* `m/d/yyyy`, `[Red]0;[Blue]-0`) on every cell in `range`, including blank
|
|
912
|
+
* cells, so values typed later keep it. `null` removes explicit formats: the
|
|
913
|
+
* cells go back to their column's format or the one chosen for typed input.
|
|
914
|
+
* Undoable as one step. Returns false when there is no range.
|
|
915
|
+
*/
|
|
916
|
+
setCellNumberFormat(range: CellRange | null, code: string | null): boolean;
|
|
917
|
+
/**
|
|
918
|
+
* Sets the number format code of a column (`null` or `General` clears it).
|
|
919
|
+
* Its cells without an explicit format of their own use it, including
|
|
920
|
+
* values typed later; when cleared they go back to the format chosen for
|
|
921
|
+
* typed input. Undoable.
|
|
922
|
+
*/
|
|
923
|
+
setColumnNumberFormat(colId: string, code: string | null): void;
|
|
924
|
+
/** The column's format, or the one typed input chose (typed cells only). */
|
|
925
|
+
private implicitNumberFormat;
|
|
926
|
+
/** A copy of `cell` with `numberFormat` set, or removed when undefined. */
|
|
927
|
+
private withNumberFormat;
|
|
928
|
+
/** Re-applies the stored cell's (or the column's) format to a spilled value shown there. */
|
|
929
|
+
private refreshSpilledNumberFormat;
|
|
889
930
|
hideRows(indices: number[]): void;
|
|
890
931
|
unhideRows(indices: number[]): void;
|
|
891
932
|
hideColumns(indices: number[]): void;
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
import { Node, Schema } from '@tiptap/pm/model';
|
|
2
|
+
import { R as ReviewAuthor } from './comment-store-BEMgVlAA.js';
|
|
3
|
+
|
|
4
|
+
/** A document to compare: a ProseMirror node, its JSON, or HTML (needs a DOM). */
|
|
5
|
+
type CompareSource = Node | Record<string, any> | string;
|
|
6
|
+
interface CompareDocumentsOptions {
|
|
7
|
+
/** Schema of the documents. Required unless both sources are ProseMirror nodes. */
|
|
8
|
+
schema?: Schema;
|
|
9
|
+
/** Author recorded on every change. Default `{ id: "compare", name: "Compare" }`. */
|
|
10
|
+
author?: ReviewAuthor;
|
|
11
|
+
/** Time recorded on every change (`createdAt`). Default now. */
|
|
12
|
+
date?: number | Date | string;
|
|
13
|
+
/** Compare changed paragraphs word by word (default) or character by character. */
|
|
14
|
+
granularity?: "word" | "char";
|
|
15
|
+
/** Treat text differing only in case as equal (the revised text is kept). */
|
|
16
|
+
ignoreCase?: boolean;
|
|
17
|
+
/** Treat runs of white space as equal (the revised text is kept). */
|
|
18
|
+
ignoreWhitespace?: boolean;
|
|
19
|
+
/** Record formatting differences of equal text as `formatChange` marks. Default `true`. */
|
|
20
|
+
formatting?: boolean;
|
|
21
|
+
/** Change id generator. */
|
|
22
|
+
generateId?: () => string;
|
|
23
|
+
/** Marks not compared as formatting (in addition to review marks, comments and bookmarks). */
|
|
24
|
+
ignoredMarks?: string[];
|
|
25
|
+
/** Node attributes ignored when comparing blocks. Default `["id"]`. */
|
|
26
|
+
ignoredBlockAttributes?: string[];
|
|
27
|
+
/**
|
|
28
|
+
* Paragraphs longer than this (in characters) are compared by words even
|
|
29
|
+
* at `granularity: "char"`. Default 2000.
|
|
30
|
+
*/
|
|
31
|
+
maxCharDiff?: number;
|
|
32
|
+
}
|
|
33
|
+
interface CompareSummary {
|
|
34
|
+
/** Inserted text runs and inserted block runs. */
|
|
35
|
+
insertions: number;
|
|
36
|
+
/** Deleted text runs and deleted block runs. */
|
|
37
|
+
deletions: number;
|
|
38
|
+
/** Formatting changes of equal text. */
|
|
39
|
+
formatChanges: number;
|
|
40
|
+
/** Block type, attribute and wrapping changes. */
|
|
41
|
+
blockChanges: number;
|
|
42
|
+
/** Differences the result could not represent as tracked changes. */
|
|
43
|
+
notHonoured: string[];
|
|
44
|
+
}
|
|
45
|
+
interface CompareDocumentsResult {
|
|
46
|
+
/**
|
|
47
|
+
* The revised document with the differences as tracked changes: accepting
|
|
48
|
+
* all changes yields the revised document, rejecting all the original.
|
|
49
|
+
*/
|
|
50
|
+
doc: Node;
|
|
51
|
+
summary: CompareSummary;
|
|
52
|
+
}
|
|
53
|
+
/**
|
|
54
|
+
* Compares two documents and returns the revised document with the
|
|
55
|
+
* differences as tracked changes (`insertion`/`deletion`/`formatChange`
|
|
56
|
+
* marks and `blockChange` records), plus a summary.
|
|
57
|
+
*
|
|
58
|
+
* Blocks are matched by their text (Myers diff with patience anchors); in a
|
|
59
|
+
* run of changed blocks the i-th deleted block is paired with the i-th
|
|
60
|
+
* inserted one and compared word by word (or by character), while unpaired
|
|
61
|
+
* blocks are recorded as whole-block insertions/deletions. Equal text is
|
|
62
|
+
* compared for formatting, and type/attribute/wrapping changes become
|
|
63
|
+
* `blockChange` records. Without ignore options, accepting all changes
|
|
64
|
+
* yields the revised document and rejecting all yields the original.
|
|
65
|
+
*
|
|
66
|
+
* The schema needs the `TrackChanges` extension (marks and the
|
|
67
|
+
* `blockChange` attribute). Existing tracked changes in either document are
|
|
68
|
+
* accepted first.
|
|
69
|
+
*/
|
|
70
|
+
declare function compareDocuments(original: CompareSource, revised: CompareSource, options?: CompareDocumentsOptions): CompareDocumentsResult;
|
|
71
|
+
/** `compareDocuments` for two HTML strings (needs a DOM, like `setContent`). */
|
|
72
|
+
declare function compareHtml(originalHtml: string, revisedHtml: string, options: CompareDocumentsOptions & {
|
|
73
|
+
schema: Schema;
|
|
74
|
+
}): CompareDocumentsResult;
|
|
75
|
+
|
|
76
|
+
export { type CompareDocumentsOptions as C, type CompareDocumentsResult as a, type CompareSource as b, type CompareSummary as c, compareDocuments as d, compareHtml as e };
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
import { Node, Schema } from '@tiptap/pm/model';
|
|
2
|
+
import { R as ReviewAuthor } from './comment-store-BEMgVlAA.cjs';
|
|
3
|
+
|
|
4
|
+
/** A document to compare: a ProseMirror node, its JSON, or HTML (needs a DOM). */
|
|
5
|
+
type CompareSource = Node | Record<string, any> | string;
|
|
6
|
+
interface CompareDocumentsOptions {
|
|
7
|
+
/** Schema of the documents. Required unless both sources are ProseMirror nodes. */
|
|
8
|
+
schema?: Schema;
|
|
9
|
+
/** Author recorded on every change. Default `{ id: "compare", name: "Compare" }`. */
|
|
10
|
+
author?: ReviewAuthor;
|
|
11
|
+
/** Time recorded on every change (`createdAt`). Default now. */
|
|
12
|
+
date?: number | Date | string;
|
|
13
|
+
/** Compare changed paragraphs word by word (default) or character by character. */
|
|
14
|
+
granularity?: "word" | "char";
|
|
15
|
+
/** Treat text differing only in case as equal (the revised text is kept). */
|
|
16
|
+
ignoreCase?: boolean;
|
|
17
|
+
/** Treat runs of white space as equal (the revised text is kept). */
|
|
18
|
+
ignoreWhitespace?: boolean;
|
|
19
|
+
/** Record formatting differences of equal text as `formatChange` marks. Default `true`. */
|
|
20
|
+
formatting?: boolean;
|
|
21
|
+
/** Change id generator. */
|
|
22
|
+
generateId?: () => string;
|
|
23
|
+
/** Marks not compared as formatting (in addition to review marks, comments and bookmarks). */
|
|
24
|
+
ignoredMarks?: string[];
|
|
25
|
+
/** Node attributes ignored when comparing blocks. Default `["id"]`. */
|
|
26
|
+
ignoredBlockAttributes?: string[];
|
|
27
|
+
/**
|
|
28
|
+
* Paragraphs longer than this (in characters) are compared by words even
|
|
29
|
+
* at `granularity: "char"`. Default 2000.
|
|
30
|
+
*/
|
|
31
|
+
maxCharDiff?: number;
|
|
32
|
+
}
|
|
33
|
+
interface CompareSummary {
|
|
34
|
+
/** Inserted text runs and inserted block runs. */
|
|
35
|
+
insertions: number;
|
|
36
|
+
/** Deleted text runs and deleted block runs. */
|
|
37
|
+
deletions: number;
|
|
38
|
+
/** Formatting changes of equal text. */
|
|
39
|
+
formatChanges: number;
|
|
40
|
+
/** Block type, attribute and wrapping changes. */
|
|
41
|
+
blockChanges: number;
|
|
42
|
+
/** Differences the result could not represent as tracked changes. */
|
|
43
|
+
notHonoured: string[];
|
|
44
|
+
}
|
|
45
|
+
interface CompareDocumentsResult {
|
|
46
|
+
/**
|
|
47
|
+
* The revised document with the differences as tracked changes: accepting
|
|
48
|
+
* all changes yields the revised document, rejecting all the original.
|
|
49
|
+
*/
|
|
50
|
+
doc: Node;
|
|
51
|
+
summary: CompareSummary;
|
|
52
|
+
}
|
|
53
|
+
/**
|
|
54
|
+
* Compares two documents and returns the revised document with the
|
|
55
|
+
* differences as tracked changes (`insertion`/`deletion`/`formatChange`
|
|
56
|
+
* marks and `blockChange` records), plus a summary.
|
|
57
|
+
*
|
|
58
|
+
* Blocks are matched by their text (Myers diff with patience anchors); in a
|
|
59
|
+
* run of changed blocks the i-th deleted block is paired with the i-th
|
|
60
|
+
* inserted one and compared word by word (or by character), while unpaired
|
|
61
|
+
* blocks are recorded as whole-block insertions/deletions. Equal text is
|
|
62
|
+
* compared for formatting, and type/attribute/wrapping changes become
|
|
63
|
+
* `blockChange` records. Without ignore options, accepting all changes
|
|
64
|
+
* yields the revised document and rejecting all yields the original.
|
|
65
|
+
*
|
|
66
|
+
* The schema needs the `TrackChanges` extension (marks and the
|
|
67
|
+
* `blockChange` attribute). Existing tracked changes in either document are
|
|
68
|
+
* accepted first.
|
|
69
|
+
*/
|
|
70
|
+
declare function compareDocuments(original: CompareSource, revised: CompareSource, options?: CompareDocumentsOptions): CompareDocumentsResult;
|
|
71
|
+
/** `compareDocuments` for two HTML strings (needs a DOM, like `setContent`). */
|
|
72
|
+
declare function compareHtml(originalHtml: string, revisedHtml: string, options: CompareDocumentsOptions & {
|
|
73
|
+
schema: Schema;
|
|
74
|
+
}): CompareDocumentsResult;
|
|
75
|
+
|
|
76
|
+
export { type CompareDocumentsOptions as C, type CompareDocumentsResult as a, type CompareSource as b, type CompareSummary as c, compareDocuments as d, compareHtml as e };
|
|
@@ -69,9 +69,6 @@
|
|
|
69
69
|
|
|
70
70
|
|
|
71
71
|
|
|
72
|
-
var _chunkGVSMRPHBcjs = require('../chunk-GVSMRPHB.cjs');
|
|
73
|
-
require('../chunk-AXV2ZW34.cjs');
|
|
74
|
-
require('../chunk-CL37JGFW.cjs');
|
|
75
72
|
|
|
76
73
|
|
|
77
74
|
|
|
@@ -95,7 +92,11 @@ require('../chunk-CL37JGFW.cjs');
|
|
|
95
92
|
|
|
96
93
|
|
|
97
94
|
|
|
98
|
-
var
|
|
95
|
+
var _chunkSBCZ6RN5cjs = require('../chunk-SBCZ6RN5.cjs');
|
|
96
|
+
require('../chunk-OLZJXL4R.cjs');
|
|
97
|
+
require('../chunk-MKA3AHLV.cjs');
|
|
98
|
+
require('../chunk-SML64VJG.cjs');
|
|
99
|
+
require('../chunk-XNORY7M6.cjs');
|
|
99
100
|
|
|
100
101
|
|
|
101
102
|
|
|
@@ -119,6 +120,7 @@ var _chunkAA4ZEVCCcjs = require('../chunk-AA4ZEVCC.cjs');
|
|
|
119
120
|
|
|
120
121
|
|
|
121
122
|
|
|
123
|
+
var _chunkD27YFC46cjs = require('../chunk-D27YFC46.cjs');
|
|
122
124
|
|
|
123
125
|
|
|
124
126
|
|
|
@@ -189,5 +191,51 @@ var _chunkAA4ZEVCCcjs = require('../chunk-AA4ZEVCC.cjs');
|
|
|
189
191
|
|
|
190
192
|
|
|
191
193
|
|
|
192
|
-
|
|
194
|
+
|
|
195
|
+
|
|
196
|
+
|
|
197
|
+
|
|
198
|
+
|
|
199
|
+
|
|
200
|
+
|
|
201
|
+
|
|
202
|
+
|
|
203
|
+
|
|
204
|
+
|
|
205
|
+
|
|
206
|
+
|
|
207
|
+
|
|
208
|
+
|
|
209
|
+
|
|
210
|
+
|
|
211
|
+
|
|
212
|
+
|
|
213
|
+
|
|
214
|
+
|
|
215
|
+
|
|
216
|
+
|
|
217
|
+
|
|
218
|
+
|
|
219
|
+
|
|
220
|
+
|
|
221
|
+
|
|
222
|
+
|
|
223
|
+
|
|
224
|
+
|
|
225
|
+
|
|
226
|
+
|
|
227
|
+
|
|
228
|
+
|
|
229
|
+
|
|
230
|
+
|
|
231
|
+
|
|
232
|
+
|
|
233
|
+
|
|
234
|
+
|
|
235
|
+
|
|
236
|
+
|
|
237
|
+
|
|
238
|
+
|
|
239
|
+
|
|
240
|
+
exports.Autocorrect = _chunkSBCZ6RN5cjs.Autocorrect; exports.BLOCK_CHANGE_ATTRIBUTE = _chunkD27YFC46cjs.BLOCK_CHANGE_ATTRIBUTE; exports.Bookmark = _chunkSBCZ6RN5cjs.Bookmark; exports.COMMENT_MARK_NAME = _chunkSBCZ6RN5cjs.COMMENT_MARK_NAME; exports.ColorHighlighter = _chunkSBCZ6RN5cjs.ColorHighlighter; exports.CommentStore = _chunkD27YFC46cjs.CommentStore; exports.Comments = _chunkSBCZ6RN5cjs.Comments; exports.CrossReference = _chunkSBCZ6RN5cjs.CrossReference; exports.DEFAULT_AUTOCORRECT_EXCEPTIONS = _chunkSBCZ6RN5cjs.DEFAULT_AUTOCORRECT_EXCEPTIONS; exports.DELETION_MARK_NAME = _chunkD27YFC46cjs.DELETION_MARK_NAME; exports.DocumentCompare = _chunkSBCZ6RN5cjs.DocumentCompare; exports.EMPTY_FIND_REPLACE_SNAPSHOT = _chunkSBCZ6RN5cjs.EMPTY_FIND_REPLACE_SNAPSHOT; exports.FIND_OPTION_TOGGLES = _chunkSBCZ6RN5cjs.FIND_OPTION_TOGGLES; exports.FIND_PARAGRAPH_MARK = _chunkSBCZ6RN5cjs.FIND_PARAGRAPH_MARK; exports.FORMAT_CHANGE_MARK_NAME = _chunkD27YFC46cjs.FORMAT_CHANGE_MARK_NAME; exports.FileImport = _chunkSBCZ6RN5cjs.FileImport; exports.FindReplace = _chunkSBCZ6RN5cjs.FindReplace; exports.FindReplaceStore = _chunkSBCZ6RN5cjs.FindReplaceStore; exports.FontSize = _chunkSBCZ6RN5cjs.FontSize; exports.Footnote = _chunkSBCZ6RN5cjs.Footnote; exports.FootnoteReference = _chunkSBCZ6RN5cjs.FootnoteReference; exports.Footnotes = _chunkSBCZ6RN5cjs.Footnotes; exports.GradientText = _chunkSBCZ6RN5cjs.GradientText; exports.INSERTION_MARK_NAME = _chunkD27YFC46cjs.INSERTION_MARK_NAME; exports.Image = _chunkSBCZ6RN5cjs.Image; exports.LoadingNode = _chunkSBCZ6RN5cjs.LoadingNode; exports.MAX_FIND_PATTERN_LENGTH = _chunkSBCZ6RN5cjs.MAX_FIND_PATTERN_LENGTH; exports.Markdown = _chunkSBCZ6RN5cjs.Markdown; exports.Mention = _chunkSBCZ6RN5cjs.Mention; exports.Outline = _chunkSBCZ6RN5cjs.Outline; exports.RichClipboard = _chunkSBCZ6RN5cjs.RichClipboard; exports.SMILIE_REPLACEMENTS = _chunkSBCZ6RN5cjs.SMILIE_REPLACEMENTS; exports.SlashCommands = _chunkSBCZ6RN5cjs.SlashCommands; exports.SmilieReplacer = _chunkSBCZ6RN5cjs.SmilieReplacer; exports.TRACK_CHANGES_SKIP_META = _chunkD27YFC46cjs.TRACK_CHANGES_SKIP_META; exports.TableOfContents = _chunkSBCZ6RN5cjs.TableOfContents; exports.TemplateSuggestions = _chunkSBCZ6RN5cjs.TemplateSuggestions; exports.TrackChanges = _chunkD27YFC46cjs.TrackChanges; exports.TrackChangesStore = _chunkD27YFC46cjs.TrackChangesStore; exports.TrackedDeletion = _chunkD27YFC46cjs.TrackedDeletion; exports.TrackedFormatChange = _chunkD27YFC46cjs.TrackedFormatChange; exports.TrackedInsertion = _chunkD27YFC46cjs.TrackedInsertion; exports.applyDocumentComparison = _chunkSBCZ6RN5cjs.applyDocumentComparison; exports.applyReplacements = _chunkSBCZ6RN5cjs.applyReplacements; exports.autocorrectPluginKey = _chunkSBCZ6RN5cjs.autocorrectPluginKey; exports.buildOutlineTree = _chunkSBCZ6RN5cjs.buildOutlineTree; exports.capitalizeSentenceRules = _chunkSBCZ6RN5cjs.capitalizeSentenceRules; exports.commentsPluginKey = _chunkSBCZ6RN5cjs.commentsPluginKey; exports.compareInEditor = _chunkSBCZ6RN5cjs.compareInEditor; exports.compileFindPattern = _chunkSBCZ6RN5cjs.compileFindPattern; exports.computeOutline = _chunkSBCZ6RN5cjs.computeOutline; exports.createCommentStore = _chunkD27YFC46cjs.createCommentStore; exports.createFindReplaceCommands = _chunkSBCZ6RN5cjs.createFindReplaceCommands; exports.createMentionExtension = _chunkSBCZ6RN5cjs.createMentionExtension; exports.createOutlineStore = _chunkSBCZ6RN5cjs.createOutlineStore; exports.createReviewId = _chunkD27YFC46cjs.createReviewId; exports.createRichTextPreset = _chunkSBCZ6RN5cjs.createRichTextPreset; exports.createSearchBudget = _chunkSBCZ6RN5cjs.createSearchBudget; exports.crossReferencePluginKey = _chunkSBCZ6RN5cjs.crossReferencePluginKey; exports.defaultAutocorrectRules = _chunkSBCZ6RN5cjs.defaultAutocorrectRules; exports.describeBlockChange = _chunkD27YFC46cjs.describeBlockChange; exports.describeFormatChange = _chunkD27YFC46cjs.describeFormatChange; exports.documentStructureCommandItems = _chunkSBCZ6RN5cjs.documentStructureCommandItems; exports.expandReplacement = _chunkSBCZ6RN5cjs.expandReplacement; exports.fileImportPluginKey = _chunkSBCZ6RN5cjs.fileImportPluginKey; exports.findAllMatches = _chunkSBCZ6RN5cjs.findAllMatches; exports.findAutocorrection = _chunkSBCZ6RN5cjs.findAutocorrection; exports.findCommentRanges = _chunkSBCZ6RN5cjs.findCommentRanges; exports.findHexColors = _chunkSBCZ6RN5cjs.findHexColors; exports.findReplacePluginKey = _chunkSBCZ6RN5cjs.findReplacePluginKey; exports.foldCodePoint = _chunkSBCZ6RN5cjs.foldCodePoint; exports.footnotesMarkdownIt = _chunkSBCZ6RN5cjs.footnotesMarkdownIt; exports.footnotesPluginKey = _chunkSBCZ6RN5cjs.footnotesPluginKey; exports.formatFindStatus = _chunkSBCZ6RN5cjs.formatFindStatus; exports.formatReviewTime = _chunkD27YFC46cjs.formatReviewTime; exports.fractionRules = _chunkSBCZ6RN5cjs.fractionRules; exports.getActiveHeading = _chunkSBCZ6RN5cjs.getActiveHeading; exports.getBookmarks = _chunkSBCZ6RN5cjs.getBookmarks; exports.getCommentAnchors = _chunkSBCZ6RN5cjs.getCommentAnchors; exports.getCommentAuthor = _chunkSBCZ6RN5cjs.getCommentAuthor; exports.getCommentIdsAt = _chunkSBCZ6RN5cjs.getCommentIdsAt; exports.getCommentStore = _chunkSBCZ6RN5cjs.getCommentStore; exports.getCrossReferenceTargets = _chunkSBCZ6RN5cjs.getCrossReferenceTargets; exports.getDocumentStructureCommandItems = _chunkSBCZ6RN5cjs.getDocumentStructureCommandItems; exports.getFindReplaceState = _chunkSBCZ6RN5cjs.getFindReplaceState; exports.getFindReplaceStore = _chunkSBCZ6RN5cjs.getFindReplaceStore; exports.getFootnotes = _chunkSBCZ6RN5cjs.getFootnotes; exports.getOutline = _chunkSBCZ6RN5cjs.getOutline; exports.getTableOfContentsEntries = _chunkSBCZ6RN5cjs.getTableOfContentsEntries; exports.getTrackChangesStore = _chunkD27YFC46cjs.getTrackChangesStore; exports.getTrackedChangeAt = _chunkD27YFC46cjs.getTrackedChangeAt; exports.getTrackedChanges = _chunkD27YFC46cjs.getTrackedChanges; exports.handleImageInsertion = _chunkSBCZ6RN5cjs.handleImageInsertion; exports.imagePastePluginKey = _chunkSBCZ6RN5cjs.imagePastePluginKey; exports.insertImageNode = _chunkSBCZ6RN5cjs.insertImageNode; exports.isInsidePromptToken = _chunkSBCZ6RN5cjs.isInsidePromptToken; exports.isTrackChangesEnabled = _chunkD27YFC46cjs.isTrackChangesEnabled; exports.navigateToHeading = _chunkSBCZ6RN5cjs.navigateToHeading; exports.outlinePluginKey = _chunkSBCZ6RN5cjs.outlinePluginKey; exports.parseReplacement = _chunkSBCZ6RN5cjs.parseReplacement; exports.removeImageNode = _chunkSBCZ6RN5cjs.removeImageNode; exports.resolveTrackedChanges = _chunkD27YFC46cjs.resolveTrackedChanges; exports.richClipboardPluginKey = _chunkSBCZ6RN5cjs.richClipboardPluginKey; exports.searchDocument = _chunkSBCZ6RN5cjs.searchDocument; exports.smartQuoteRules = _chunkSBCZ6RN5cjs.smartQuoteRules; exports.smilieAutocorrectRules = _chunkSBCZ6RN5cjs.smilieAutocorrectRules; exports.symbolRules = _chunkSBCZ6RN5cjs.symbolRules; exports.syncFootnotes = _chunkSBCZ6RN5cjs.syncFootnotes; exports.tableOfContentsMarkdownIt = _chunkSBCZ6RN5cjs.tableOfContentsMarkdownIt; exports.tableOfContentsPluginKey = _chunkSBCZ6RN5cjs.tableOfContentsPluginKey; exports.trackChangesPluginKey = _chunkD27YFC46cjs.trackChangesPluginKey; exports.twoInitialCapitalsRules = _chunkSBCZ6RN5cjs.twoInitialCapitalsRules; exports.updateImageSrc = _chunkSBCZ6RN5cjs.updateImageSrc; exports.validateFindPattern = _chunkSBCZ6RN5cjs.validateFindPattern; exports.writeRichClipboard = _chunkSBCZ6RN5cjs.writeRichClipboard;
|
|
193
241
|
//# sourceMappingURL=index.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["/home/runner/work/editor/editor/packages/core/dist/extensions/index.cjs"],"names":[],"mappings":"AAAA;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACF,yDAA8B;AAC9B,iCAA8B;AAC9B,iCAA8B;AAC9B;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACF,yDAA8B;AAC9B;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACF,
|
|
1
|
+
{"version":3,"sources":["/home/runner/work/editor/editor/packages/core/dist/extensions/index.cjs"],"names":[],"mappings":"AAAA;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACF,yDAA8B;AAC9B,iCAA8B;AAC9B,iCAA8B;AAC9B,iCAA8B;AAC9B,iCAA8B;AAC9B;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACF,yDAA8B;AAC9B;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACF,szOAAC","file":"/home/runner/work/editor/editor/packages/core/dist/extensions/index.cjs"}
|
|
@@ -1,12 +1,16 @@
|
|
|
1
|
-
export { A as AddCommentOptions, b as Autocorrect, c as AutocorrectContext, d as AutocorrectCorrection, e as AutocorrectOptions, f as AutocorrectRule, g as AutocorrectStorage, h as Bookmark, i as BookmarkInfo, j as BookmarkOptions, C as COMMENT_MARK_NAME, k as ColorHighlighter, l as CommentRange, m as Comments, n as CommentsOptions, o as CommentsStorage, q as CrossReference,
|
|
2
|
-
export { B as BLOCK_CHANGE_ATTRIBUTE,
|
|
1
|
+
export { A as AddCommentOptions, b as Autocorrect, c as AutocorrectContext, d as AutocorrectCorrection, e as AutocorrectOptions, f as AutocorrectRule, g as AutocorrectStorage, h as Bookmark, i as BookmarkInfo, j as BookmarkOptions, C as COMMENT_MARK_NAME, k as ColorHighlighter, l as CommentRange, m as Comments, n as CommentsOptions, o as CommentsStorage, p as CompileFindPatternResult, q as CompiledFindPattern, s as CrossReference, t as CrossReferenceOptions, u as CrossReferenceTarget, v as CrossReferenceTargetType, w as DEFAULT_AUTOCORRECT_EXCEPTIONS, x as DocumentCompare, y as DocumentCompareOptions, z as DocumentCompareStorage, E as DocumentSearchOptions, F as DocumentSearchResult, G as DocumentStructureCommandArgs, H as DocumentStructureCommandItem, I as EMPTY_FIND_REPLACE_SNAPSHOT, J as EditorCompareOptions, K as FIND_OPTION_TOGGLES, L as FIND_PARAGRAPH_MARK, M as FileImport, N as FileImportOptions, O as FindAllOptions, P as FindAllResult, Q as FindMatch, R as FindOptionToggle, S as FindOptions, T as FindPatternError, U as FindPatternErrorCode, V as FindReplace, W as FindReplaceCommandOptions, X as FindReplaceMode, Y as FindReplaceOptions, Z as FindReplaceSnapshot, _ as FindReplaceStorage, $ as FindReplaceStore, a0 as FocusHeadingOptions, a1 as FontSize, a2 as Footnote, a3 as FootnoteInfo, a4 as FootnoteReference, a5 as Footnotes, a6 as FootnotesOptions, a7 as GradientText, a8 as GradientTextOptions, a9 as Image, aa as ImageOptions, ab as InsertFootnoteOptions, ac as InsertTableOfContentsOptions, ad as LoadingNode, ae as MAX_FIND_PATTERN_LENGTH, af as Markdown, ag as OpenFindReplaceParams, ah as Outline, ai as OutlineHeading, aj as OutlineOptions, ak as OutlineSnapshot, al as OutlineStorage, am as OutlineStore, an as OutlineTreeItem, ao as PatternMatch, ap as ReplacePiece, aq as RichClipboard, ar as RichClipboardOptions, as as RichClipboardStorage, at as RichTextPresetOptions, au as SMILIE_REPLACEMENTS, av as SearchBudget, aw as SearchBudgetOptions, ax as SetBookmarkOptions, ay as SetSearchParams, az as SlashCommandMatchData, aA as SlashCommands, aB as SlashCommandsOptions, aC as SmilieReplacer, aD as TableOfContents, aE as TableOfContentsEntry, aF as TableOfContentsOptions, aG as TemplateSuggestions, aH as TemplateSuggestionsOptions, aI as applyDocumentComparison, aJ as applyReplacements, aK as autocorrectPluginKey, aL as buildOutlineTree, aM as capitalizeSentenceRules, aN as commentsPluginKey, aO as compareInEditor, aP as compileFindPattern, aQ as computeOutline, aR as createFindReplaceCommands, aT as createOutlineStore, aU as createRichTextPreset, aV as createSearchBudget, aW as crossReferencePluginKey, aX as defaultAutocorrectRules, aZ as documentStructureCommandItems, a_ as expandReplacement, a$ as fileImportPluginKey, b0 as findAllMatches, b1 as findAutocorrection, b2 as findCommentRanges, b3 as findHexColors, b5 as findReplacePluginKey, b6 as foldCodePoint, b7 as footnotesMarkdownIt, b8 as footnotesPluginKey, b9 as formatFindStatus, ba as fractionRules, bb as getActiveHeading, bc as getBookmarks, bd as getCommentAnchors, be as getCommentAuthor, bf as getCommentIdsAt, bg as getCommentStore, bh as getCrossReferenceTargets, bi as getDocumentStructureCommandItems, bj as getFindReplaceState, bk as getFindReplaceStore, bl as getFootnotes, bn as getOutline, bo as getTableOfContentsEntries, bp as handleImageInsertion, br as imagePastePluginKey, bt as insertImageNode, bu as isInsidePromptToken, bw as navigateToHeading, bx as outlinePluginKey, by as parseReplacement, bB as removeImageNode, bC as richClipboardPluginKey, bE as searchDocument, bF as smartQuoteRules, bG as smilieAutocorrectRules, bH as symbolRules, bI as syncFootnotes, bJ as tableOfContentsMarkdownIt, bK as tableOfContentsPluginKey, bL as twoInitialCapitalsRules, bN as updateImageSrc, bO as validateFindPattern, bP as writeRichClipboard } from '../index-BhJBSm2d.cjs';
|
|
2
|
+
export { B as BLOCK_CHANGE_ATTRIBUTE, D as DELETION_MARK_NAME, F as FORMAT_CHANGE_MARK_NAME, I as INSERTION_MARK_NAME, M as Mention, a as MentionEntity, b as MentionOptions, T as TRACK_CHANGES_SKIP_META, c as TrackChanges, d as TrackChangesOptions, e as TrackChangesSnapshot, f as TrackChangesStorage, g as TrackChangesStore, h as TrackedBlockChangeAttributes, i as TrackedBlockOperation, j as TrackedBlockSnapshot, k as TrackedChange, l as TrackedChangeAttributes, m as TrackedChangeType, n as TrackedChangesView, o as TrackedDeletion, p as TrackedFormatChange, q as TrackedFormatChangeAttributes, r as TrackedFormatSummary, s as TrackedInsertion, t as TrackedMark, u as createMentionExtension, v as describeBlockChange, w as describeFormatChange, x as getTrackChangesStore, y as getTrackedChangeAt, z as getTrackedChanges, A as isTrackChangesEnabled, C as resolveTrackedChanges, E as trackChangesPluginKey } from '../track-changes-BK5sVf4_.cjs';
|
|
3
|
+
export { C as CommentAnchor, a as CommentReply, b as CommentStore, c as CommentStoreListener, d as CommentStoreOptions, e as CommentStoreSnapshot, f as CommentThread, g as CreateThreadInput, R as ReviewAuthor, S as SerializedComments, h as createCommentStore, i as createReviewId, j as formatReviewTime } from '../comment-store-BEMgVlAA.cjs';
|
|
3
4
|
export { MarkdownOptions } from 'tiptap-markdown';
|
|
4
5
|
import '@tiptap/core';
|
|
5
|
-
import '../tokens-
|
|
6
|
+
import '../tokens-D7yXvUU6.cjs';
|
|
6
7
|
import '@tiptap/pm/state';
|
|
7
8
|
import '@tiptap/pm/view';
|
|
8
9
|
import '@tiptap/pm/model';
|
|
9
10
|
import '@tiptap/extension-image';
|
|
10
11
|
import '../registry-GJI4gToU.cjs';
|
|
12
|
+
import '../documents-KRTPhvst.cjs';
|
|
13
|
+
import '../registry-D32LpIc4.cjs';
|
|
14
|
+
import '../schema-DYDGdYL9.cjs';
|
|
11
15
|
import '@tiptap/extension-mention';
|
|
12
16
|
import '@tiptap/suggestion';
|