roosterjs 9.41.0 → 9.42.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 -20
- package/dist/rooster-amd.js +265 -149
- 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-min.js +1 -1
- package/dist/rooster-react-amd-min.js.map +1 -1
- package/dist/rooster-react-amd.d.ts +1 -1
- package/dist/rooster-react-amd.js +58 -56
- package/dist/rooster-react-amd.js.map +1 -1
- package/dist/rooster-react-min.js +1 -1
- package/dist/rooster-react-min.js.map +1 -1
- package/dist/rooster-react.d.ts +1 -1
- package/dist/rooster-react.js +56 -54
- package/dist/rooster-react.js.map +1 -1
- package/dist/rooster.d.ts +30 -20
- package/dist/rooster.js +265 -149
- 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.42.0)
|
|
2
2
|
// Generated by dts tool from roosterjs
|
|
3
3
|
// Project: https://github.com/Microsoft/roosterjs
|
|
4
4
|
|
|
@@ -2891,6 +2891,11 @@ export interface EditorContext {
|
|
|
2891
2891
|
* When set to true, size of table will be recalculated when converting from DOM to Content Model.
|
|
2892
2892
|
*/
|
|
2893
2893
|
recalculateTableSize?: boolean | 'all' | 'selected' | 'none';
|
|
2894
|
+
/**
|
|
2895
|
+
* Width of the editor's editable area in pixels, excluding padding.
|
|
2896
|
+
* This value is typically used for layout calculations such as constraining pasted image sizes.
|
|
2897
|
+
*/
|
|
2898
|
+
editorViewWidth?: number;
|
|
2894
2899
|
}
|
|
2895
2900
|
|
|
2896
2901
|
/**
|
|
@@ -3675,27 +3680,12 @@ export interface IEditor {
|
|
|
3675
3680
|
* By default these features are not enabled. To enable them, pass the feature name into EditorOptions.experimentalFeatures
|
|
3676
3681
|
* when create editor
|
|
3677
3682
|
*/
|
|
3678
|
-
export type ExperimentalFeature =
|
|
3679
|
-
* @deprecated When this feature is enabled, we will persist a content model in memory as long as we can,
|
|
3680
|
-
* and use cached element when write back if it is not changed.
|
|
3681
|
-
*/
|
|
3682
|
-
'PersistCache'
|
|
3683
|
-
/**
|
|
3684
|
-
* @deprecated
|
|
3685
|
-
* Workaround for the Legacy Image Edit
|
|
3686
|
-
*/
|
|
3687
|
-
| 'LegacyImageSelection'
|
|
3683
|
+
export type ExperimentalFeature = GraduatedExperimentalFeature
|
|
3688
3684
|
/**
|
|
3689
3685
|
* @deprecated Please use the shouldHandleEnterKey option of the EditPlugin Options
|
|
3690
3686
|
* Use Content Model handle ENTER key
|
|
3691
3687
|
*/
|
|
3692
3688
|
| 'HandleEnterKey'
|
|
3693
|
-
/**
|
|
3694
|
-
* @deprecated
|
|
3695
|
-
* Prevent default browser behavior for copy/cut event,
|
|
3696
|
-
* and set the clipboard data with custom implementation.
|
|
3697
|
-
*/
|
|
3698
|
-
| 'CustomCopyCut'
|
|
3699
3689
|
/**
|
|
3700
3690
|
* For CJK keyboard input on mobile, if the user toggles bold/italic/underline on an empty div,
|
|
3701
3691
|
* the pending format will be applied on the selection marker. When typing text, the selection moves to the text node and the
|
|
@@ -3713,6 +3703,26 @@ export type ExperimentalFeature = /**
|
|
|
3713
3703
|
*/
|
|
3714
3704
|
| 'CloneIndependentRoot';
|
|
3715
3705
|
|
|
3706
|
+
/**
|
|
3707
|
+
* Predefined experiment features (Graduated, only keep them for backward compatibility)
|
|
3708
|
+
*/
|
|
3709
|
+
export type GraduatedExperimentalFeature = /**
|
|
3710
|
+
* @deprecated When this feature is enabled, we will persist a content model in memory as long as we can,
|
|
3711
|
+
* and use cached element when write back if it is not changed.
|
|
3712
|
+
*/
|
|
3713
|
+
'PersistCache'
|
|
3714
|
+
/**
|
|
3715
|
+
* @deprecated
|
|
3716
|
+
* Workaround for the Legacy Image Edit
|
|
3717
|
+
*/
|
|
3718
|
+
| 'LegacyImageSelection'
|
|
3719
|
+
/**
|
|
3720
|
+
* @deprecated
|
|
3721
|
+
* Prevent default browser behavior for copy/cut event,
|
|
3722
|
+
* and set the clipboard data with custom implementation.
|
|
3723
|
+
*/
|
|
3724
|
+
| 'CustomCopyCut';
|
|
3725
|
+
|
|
3716
3726
|
/**
|
|
3717
3727
|
* Options for editor
|
|
3718
3728
|
*/
|
|
@@ -8575,10 +8585,10 @@ export function getContentForCopy(editor: IEditor, isCut: boolean, event: Clipbo
|
|
|
8575
8585
|
* @param columns Number of columns in table, it also controls the default table cell width:
|
|
8576
8586
|
* if columns <= 4, width = 120px; if columns <= 6, width = 100px; else width = 70px
|
|
8577
8587
|
* @param rows Number of rows in table
|
|
8578
|
-
* @param
|
|
8579
|
-
*
|
|
8588
|
+
* @param tableMetadataFormat (Optional) The table format that are stored as metadata. If not passed, the default format will be applied: background color: #FFF; border color: #ABABAB
|
|
8589
|
+
* @param format (Optional) The table format used for style attributes
|
|
8580
8590
|
*/
|
|
8581
|
-
export function insertTable(editor: IEditor, columns: number, rows: number,
|
|
8591
|
+
export function insertTable(editor: IEditor, columns: number, rows: number, tableMetadataFormat?: Partial<TableMetadataFormat>, format?: ContentModelTableFormat): void;
|
|
8582
8592
|
|
|
8583
8593
|
/**
|
|
8584
8594
|
* Format current focused table with the given format
|