roosterjs 8.53.0 → 8.55.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/dist/rooster-amd-min.js +1 -1
- package/dist/rooster-amd-min.js.map +1 -1
- package/dist/rooster-amd.d.ts +23 -10
- package/dist/rooster-amd.js +213 -153
- 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.d.ts +23 -10
- package/dist/rooster.js +213 -153
- package/dist/rooster.js.map +1 -1
- package/package.json +7 -7
package/dist/rooster.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Type definitions for roosterjs (Version 8.
|
|
1
|
+
// Type definitions for roosterjs (Version 8.55.0)
|
|
2
2
|
// Generated by dts tool from roosterjs
|
|
3
3
|
// Project: https://github.com/Microsoft/roosterjs
|
|
4
4
|
|
|
@@ -2341,8 +2341,9 @@ class EditorBase<TEditorCore extends EditorCore, TEditorOptions extends EditorOp
|
|
|
2341
2341
|
/**
|
|
2342
2342
|
* Transform the given node and all its child nodes to dark mode color if editor is in dark mode
|
|
2343
2343
|
* @param node The node to transform
|
|
2344
|
+
* @param direction The transform direction. @default ColorTransformDirection.LightToDark
|
|
2344
2345
|
*/
|
|
2345
|
-
transformToDarkColor(node: Node): void;
|
|
2346
|
+
transformToDarkColor(node: Node, direction?: ColorTransformDirection | CompatibleColorTransformDirection): void;
|
|
2346
2347
|
/**
|
|
2347
2348
|
* Get a darkColorHandler object for this editor.
|
|
2348
2349
|
*/
|
|
@@ -2470,7 +2471,7 @@ function createLink(editor: IEditor, link: string, altText?: string, displayText
|
|
|
2470
2471
|
* bold, italic, underline, font name, font size, etc.
|
|
2471
2472
|
* @param editor The editor instance
|
|
2472
2473
|
* @param event (Optional) The plugin event, it stores the event cached data for looking up.
|
|
2473
|
-
* In this function the event cache is used to get list state and
|
|
2474
|
+
* In this function the event cache is used to get list state and heading level. If not passed,
|
|
2474
2475
|
* it will query the node within selection to get the info
|
|
2475
2476
|
* @returns The format state at cursor
|
|
2476
2477
|
*/
|
|
@@ -2480,7 +2481,7 @@ function getFormatState(editor: IEditor, event?: PluginEvent): FormatState;
|
|
|
2480
2481
|
* Get element based Format State at cursor
|
|
2481
2482
|
* @param editor The editor instance
|
|
2482
2483
|
* @param event (Optional) The plugin event, it stores the event cached data for looking up.
|
|
2483
|
-
* In this function the event cache is used to get list state and
|
|
2484
|
+
* In this function the event cache is used to get list state and heading level. If not passed,
|
|
2484
2485
|
* it will query the node within selection to get the info
|
|
2485
2486
|
* @returns An ElementBasedFormatState object
|
|
2486
2487
|
*/
|
|
@@ -2776,13 +2777,19 @@ function toggleSuperscript(editor: IEditor): void;
|
|
|
2776
2777
|
function toggleUnderline(editor: IEditor): void;
|
|
2777
2778
|
|
|
2778
2779
|
/**
|
|
2779
|
-
*
|
|
2780
|
+
* Set heading level at selection
|
|
2780
2781
|
* @param editor The editor instance
|
|
2781
|
-
* @param level The
|
|
2782
|
-
* the HTML
|
|
2782
|
+
* @param level The heading level, can be a number from 0 to 6, in which 1 ~ 6 refers to
|
|
2783
|
+
* the HTML heading element <H1> to <H6>, 0 means no heading
|
|
2783
2784
|
* if passed in param is outside the range, will be rounded to nearest number in the range
|
|
2784
2785
|
*/
|
|
2785
|
-
function
|
|
2786
|
+
function setHeadingLevel(editor: IEditor, level: number): void;
|
|
2787
|
+
|
|
2788
|
+
/**
|
|
2789
|
+
* @deprecated Use setHeadingLevel instead
|
|
2790
|
+
* Keep this for compatibility only, will be removed in next major release
|
|
2791
|
+
*/
|
|
2792
|
+
const toggleHeader: typeof setHeadingLevel;
|
|
2786
2793
|
|
|
2787
2794
|
/**
|
|
2788
2795
|
* Set background color of cells.
|
|
@@ -5580,7 +5587,12 @@ interface ElementBasedFormatState {
|
|
|
5580
5587
|
*/
|
|
5581
5588
|
canAddImageAltText?: boolean;
|
|
5582
5589
|
/**
|
|
5583
|
-
*
|
|
5590
|
+
* Heading level (0-6, 0 means no heading)
|
|
5591
|
+
*/
|
|
5592
|
+
headingLevel?: number;
|
|
5593
|
+
/**
|
|
5594
|
+
* @deprecated Use headingLevel instead
|
|
5595
|
+
* Heading level (0-6, 0 means no heading)
|
|
5584
5596
|
*/
|
|
5585
5597
|
headerLevel?: number;
|
|
5586
5598
|
/**
|
|
@@ -6877,8 +6889,9 @@ interface IEditor {
|
|
|
6877
6889
|
/**
|
|
6878
6890
|
* Transform the given node and all its child nodes to dark mode color if editor is in dark mode
|
|
6879
6891
|
* @param node The node to transform
|
|
6892
|
+
* @param direction The transform direction. @default ColorTransformDirection.LightToDark
|
|
6880
6893
|
*/
|
|
6881
|
-
transformToDarkColor(node: Node): void;
|
|
6894
|
+
transformToDarkColor(node: Node, direction?: ColorTransformDirection | CompatibleColorTransformDirection): void;
|
|
6882
6895
|
/**
|
|
6883
6896
|
* Get a darkColorHandler object for this editor.
|
|
6884
6897
|
*/
|