roosterjs 9.52.0 → 9.53.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 +30 -2
- package/dist/rooster-amd.js +389 -365
- 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.js +53 -53
- package/dist/rooster-react.js.map +1 -1
- package/dist/rooster.d.ts +30 -2
- package/dist/rooster.js +389 -365
- package/dist/rooster.js.map +1 -1
- package/package.json +7 -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.53.0)
|
|
2
2
|
// Generated by dts tool from roosterjs
|
|
3
3
|
// Project: https://github.com/Microsoft/roosterjs
|
|
4
4
|
|
|
@@ -3827,7 +3827,19 @@ export type ExperimentalFeature = GraduatedExperimentalFeature
|
|
|
3827
3827
|
/**
|
|
3828
3828
|
* Transform the table border colors when switching from light to dark mode
|
|
3829
3829
|
*/
|
|
3830
|
-
| 'TransformTableBorderColors'
|
|
3830
|
+
| 'TransformTableBorderColors'
|
|
3831
|
+
/**
|
|
3832
|
+
* When the editor content div is inside a Shadow DOM, enable shadow root detection
|
|
3833
|
+
* in DOMHelper so that selection, focus, and element appending work correctly within
|
|
3834
|
+
* the shadow boundary.
|
|
3835
|
+
*/
|
|
3836
|
+
| 'ShadowDom'
|
|
3837
|
+
/**
|
|
3838
|
+
* Strip invisible unicode characters (U+E0000 to U+EFFFF) from text segments during DOM to Model conversion.
|
|
3839
|
+
* These characters can be used to hide text in HTML and may cause unexpected behavior.
|
|
3840
|
+
* @see https://embracethered.com/blog/posts/2024/hiding-and-finding-text-with-unicode-tags/
|
|
3841
|
+
*/
|
|
3842
|
+
| 'FilterInvisibleUnicode';
|
|
3831
3843
|
|
|
3832
3844
|
/**
|
|
3833
3845
|
* Predefined experiment features (Graduated, only keep them for backward compatibility)
|
|
@@ -5804,6 +5816,22 @@ export interface DOMHelper {
|
|
|
5804
5816
|
* @returns An array of Ranges that match the search criteria
|
|
5805
5817
|
*/
|
|
5806
5818
|
getRangesByText(text: string, matchCase: boolean, wholeWord: boolean): Range[];
|
|
5819
|
+
/**
|
|
5820
|
+
* Get the current selection range, handling shadow DOM StaticRange conversion.
|
|
5821
|
+
* Returns a live Range in all browsers.
|
|
5822
|
+
*/
|
|
5823
|
+
getSelectionRange(): Range | null;
|
|
5824
|
+
/**
|
|
5825
|
+
* Set the selection to the given range, handling browser differences for shadow DOM.
|
|
5826
|
+
* @param range The range to set
|
|
5827
|
+
* @param isReverted Whether the selection is reverted (focus before anchor)
|
|
5828
|
+
*/
|
|
5829
|
+
setSelectionRange(range: Range, isReverted?: boolean): void;
|
|
5830
|
+
/**
|
|
5831
|
+
* Append an element to the correct root container (shadow root or document.body)
|
|
5832
|
+
* @param element The element to append
|
|
5833
|
+
*/
|
|
5834
|
+
appendToRoot(element: HTMLElement): void;
|
|
5807
5835
|
}
|
|
5808
5836
|
|
|
5809
5837
|
/**
|