roosterjs 9.51.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 +42 -3
- package/dist/rooster-amd.js +501 -372
- 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 +42 -3
- package/dist/rooster.js +501 -372
- 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
|
/**
|
|
@@ -6322,6 +6350,18 @@ export interface BeforePasteEvent extends BasePluginEvent<'beforePaste'> {
|
|
|
6322
6350
|
* Whether the current clipboard contains at least a block element.
|
|
6323
6351
|
*/
|
|
6324
6352
|
readonly containsBlockElements?: boolean;
|
|
6353
|
+
/**
|
|
6354
|
+
* Global CSS rules extracted from the pasted document's style sheets
|
|
6355
|
+
*/
|
|
6356
|
+
readonly globalCssRules?: CssRule[];
|
|
6357
|
+
}
|
|
6358
|
+
|
|
6359
|
+
/**
|
|
6360
|
+
* Represents a single CSS rule parsed from a pasted document's style sheets
|
|
6361
|
+
*/
|
|
6362
|
+
export interface CssRule {
|
|
6363
|
+
selectors: string[];
|
|
6364
|
+
text: string;
|
|
6325
6365
|
}
|
|
6326
6366
|
|
|
6327
6367
|
/**
|
|
@@ -9542,7 +9582,6 @@ export type EditOptions = {
|
|
|
9542
9582
|
*/
|
|
9543
9583
|
handleExpandedSelectionOnDelete?: boolean;
|
|
9544
9584
|
/**
|
|
9545
|
-
* @deprecated This is always treated as true now
|
|
9546
9585
|
* Callback function to determine whether the Rooster should handle the Enter key press.
|
|
9547
9586
|
* If the function returns true, the Rooster will handle the Enter key press instead of the browser.
|
|
9548
9587
|
* @param editor - The editor instance.
|