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.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
|
|
|
@@ -2825,6 +2825,10 @@ interface EditorContext {
|
|
|
2825
2825
|
* A helper class that manages a mapping from paragraph marker to paragraph object.
|
|
2826
2826
|
*/
|
|
2827
2827
|
paragraphMap?: ParagraphMap;
|
|
2828
|
+
/**
|
|
2829
|
+
* When set to true, size of table will be recalculated when converting from DOM to Content Model.
|
|
2830
|
+
*/
|
|
2831
|
+
recalculateTableSize?: boolean | 'all' | 'selected' | 'none';
|
|
2828
2832
|
}
|
|
2829
2833
|
|
|
2830
2834
|
/**
|
|
@@ -3083,7 +3087,16 @@ interface DomToModelOptionForCreateModel extends DomToModelOption {
|
|
|
3083
3087
|
/**
|
|
3084
3088
|
* When set to true, it will try to reuse cached content model if any
|
|
3085
3089
|
*/
|
|
3086
|
-
tryGetFromCache
|
|
3090
|
+
tryGetFromCache?: boolean;
|
|
3091
|
+
/**
|
|
3092
|
+
* Whether recalculate table size when parse table
|
|
3093
|
+
* 'all' or true means recalculate all tables in the model
|
|
3094
|
+
* 'selected' means recalculate only selected tables in the model
|
|
3095
|
+
* 'none' or false means do not recalculate any table in the model
|
|
3096
|
+
*
|
|
3097
|
+
* When this option is passed, "tryGetFromCache" will be ignored.
|
|
3098
|
+
*/
|
|
3099
|
+
recalculateTableSize?: boolean | 'all' | 'selected' | 'none';
|
|
3087
3100
|
}
|
|
3088
3101
|
|
|
3089
3102
|
/**
|
|
@@ -5416,6 +5429,10 @@ interface DOMHelper {
|
|
|
5416
5429
|
* Get a deep cloned root element
|
|
5417
5430
|
*/
|
|
5418
5431
|
getClonedRoot(): HTMLElement;
|
|
5432
|
+
/**
|
|
5433
|
+
* Get format of the container element
|
|
5434
|
+
*/
|
|
5435
|
+
getContainerFormat(): ContentModelSegmentFormat;
|
|
5419
5436
|
}
|
|
5420
5437
|
|
|
5421
5438
|
/**
|
|
@@ -7478,7 +7495,7 @@ function setTableCellBackgroundColor(cell: ShallowMutableContentModelTableCell,
|
|
|
7478
7495
|
* @param formatState Existing format state object, used for receiving the result
|
|
7479
7496
|
* @param conflictSolution The strategy for handling format conflicts
|
|
7480
7497
|
*/
|
|
7481
|
-
function retrieveModelFormatState(model: ReadonlyContentModelDocument, pendingFormat: ContentModelSegmentFormat | null, formatState: ContentModelFormatState, conflictSolution?: ConflictFormatSolution): void;
|
|
7498
|
+
function retrieveModelFormatState(model: ReadonlyContentModelDocument, pendingFormat: ContentModelSegmentFormat | null, formatState: ContentModelFormatState, conflictSolution?: ConflictFormatSolution, domHelper?: DOMHelper): void;
|
|
7482
7499
|
|
|
7483
7500
|
/**
|
|
7484
7501
|
* Gets the list style type that the bullet is part of, using the Constant record
|
|
@@ -9766,4 +9783,20 @@ function getDarkColor(color: string, baseLValue?: number): string;
|
|
|
9766
9783
|
*/
|
|
9767
9784
|
function convertMarkdownToContentModel(text: string, splitLinesPattern?: string): ContentModelDocument;
|
|
9768
9785
|
|
|
9786
|
+
/**
|
|
9787
|
+
* Export content model document to markdown
|
|
9788
|
+
* @param selection The editor selection
|
|
9789
|
+
* @param newLine The new line string to use. Default is '\n\n'
|
|
9790
|
+
* @returns The markdown string
|
|
9791
|
+
*/
|
|
9792
|
+
function convertContentModelToMarkdown(model: ContentModelDocument, newLine?: MarkdownLineBreaks): string;
|
|
9793
|
+
|
|
9794
|
+
/**
|
|
9795
|
+
* The characters to add line breaks and new lines
|
|
9796
|
+
*/
|
|
9797
|
+
interface MarkdownLineBreaks {
|
|
9798
|
+
newLine: string;
|
|
9799
|
+
lineBreak: string;
|
|
9800
|
+
}
|
|
9801
|
+
|
|
9769
9802
|
}
|