roosterjs 9.24.0 → 9.26.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 +3 -0
- package/dist/rooster-amd-min.js +1 -1
- package/dist/rooster-amd-min.js.map +1 -1
- package/dist/rooster-amd.d.ts +36 -3
- package/dist/rooster-amd.js +1638 -109
- package/dist/rooster-amd.js.map +1 -1
- package/dist/rooster-min.js +1 -1
- package/dist/rooster-min.js.map +1 -1
- package/dist/rooster-react-amd.js +55 -55
- package/dist/rooster-react-amd.js.map +1 -1
- package/dist/rooster-react.js +53 -53
- package/dist/rooster-react.js.map +1 -1
- package/dist/rooster.d.ts +36 -3
- package/dist/rooster.js +1638 -109
- package/dist/rooster.js.map +1 -1
- package/lib/index.d.ts +1 -0
- package/lib/index.js +1 -0
- package/lib/index.js.map +1 -1
- package/lib-amd/index.d.ts +1 -0
- package/lib-amd/index.js +2 -1
- package/lib-amd/index.js.map +1 -1
- package/lib-mjs/index.d.ts +1 -0
- package/lib-mjs/index.js +1 -0
- package/lib-mjs/index.js.map +1 -1
- package/package.json +8 -7
package/dist/rooster-amd.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Type definitions for roosterjs (Version 9.
|
|
1
|
+
// Type definitions for roosterjs (Version 9.26.0)
|
|
2
2
|
// Generated by dts tool from roosterjs
|
|
3
3
|
// Project: https://github.com/Microsoft/roosterjs
|
|
4
4
|
|
|
@@ -2824,6 +2824,10 @@ export interface EditorContext {
|
|
|
2824
2824
|
* A helper class that manages a mapping from paragraph marker to paragraph object.
|
|
2825
2825
|
*/
|
|
2826
2826
|
paragraphMap?: ParagraphMap;
|
|
2827
|
+
/**
|
|
2828
|
+
* When set to true, size of table will be recalculated when converting from DOM to Content Model.
|
|
2829
|
+
*/
|
|
2830
|
+
recalculateTableSize?: boolean | 'all' | 'selected' | 'none';
|
|
2827
2831
|
}
|
|
2828
2832
|
|
|
2829
2833
|
/**
|
|
@@ -3082,7 +3086,16 @@ export interface DomToModelOptionForCreateModel extends DomToModelOption {
|
|
|
3082
3086
|
/**
|
|
3083
3087
|
* When set to true, it will try to reuse cached content model if any
|
|
3084
3088
|
*/
|
|
3085
|
-
tryGetFromCache
|
|
3089
|
+
tryGetFromCache?: boolean;
|
|
3090
|
+
/**
|
|
3091
|
+
* Whether recalculate table size when parse table
|
|
3092
|
+
* 'all' or true means recalculate all tables in the model
|
|
3093
|
+
* 'selected' means recalculate only selected tables in the model
|
|
3094
|
+
* 'none' or false means do not recalculate any table in the model
|
|
3095
|
+
*
|
|
3096
|
+
* When this option is passed, "tryGetFromCache" will be ignored.
|
|
3097
|
+
*/
|
|
3098
|
+
recalculateTableSize?: boolean | 'all' | 'selected' | 'none';
|
|
3086
3099
|
}
|
|
3087
3100
|
|
|
3088
3101
|
/**
|
|
@@ -5415,6 +5428,10 @@ export interface DOMHelper {
|
|
|
5415
5428
|
* Get a deep cloned root element
|
|
5416
5429
|
*/
|
|
5417
5430
|
getClonedRoot(): HTMLElement;
|
|
5431
|
+
/**
|
|
5432
|
+
* Get format of the container element
|
|
5433
|
+
*/
|
|
5434
|
+
getContainerFormat(): ContentModelSegmentFormat;
|
|
5418
5435
|
}
|
|
5419
5436
|
|
|
5420
5437
|
/**
|
|
@@ -7477,7 +7494,7 @@ export function setTableCellBackgroundColor(cell: ShallowMutableContentModelTabl
|
|
|
7477
7494
|
* @param formatState Existing format state object, used for receiving the result
|
|
7478
7495
|
* @param conflictSolution The strategy for handling format conflicts
|
|
7479
7496
|
*/
|
|
7480
|
-
export function retrieveModelFormatState(model: ReadonlyContentModelDocument, pendingFormat: ContentModelSegmentFormat | null, formatState: ContentModelFormatState, conflictSolution?: ConflictFormatSolution): void;
|
|
7497
|
+
export function retrieveModelFormatState(model: ReadonlyContentModelDocument, pendingFormat: ContentModelSegmentFormat | null, formatState: ContentModelFormatState, conflictSolution?: ConflictFormatSolution, domHelper?: DOMHelper): void;
|
|
7481
7498
|
|
|
7482
7499
|
/**
|
|
7483
7500
|
* Gets the list style type that the bullet is part of, using the Constant record
|
|
@@ -9765,3 +9782,19 @@ export function getDarkColor(color: string, baseLValue?: number): string;
|
|
|
9765
9782
|
*/
|
|
9766
9783
|
export function convertMarkdownToContentModel(text: string, splitLinesPattern?: string): ContentModelDocument;
|
|
9767
9784
|
|
|
9785
|
+
/**
|
|
9786
|
+
* Export content model document to markdown
|
|
9787
|
+
* @param selection The editor selection
|
|
9788
|
+
* @param newLine The new line string to use. Default is '\n\n'
|
|
9789
|
+
* @returns The markdown string
|
|
9790
|
+
*/
|
|
9791
|
+
export function convertContentModelToMarkdown(model: ContentModelDocument, newLine?: MarkdownLineBreaks): string;
|
|
9792
|
+
|
|
9793
|
+
/**
|
|
9794
|
+
* The characters to add line breaks and new lines
|
|
9795
|
+
*/
|
|
9796
|
+
export interface MarkdownLineBreaks {
|
|
9797
|
+
newLine: string;
|
|
9798
|
+
lineBreak: string;
|
|
9799
|
+
}
|
|
9800
|
+
|