roosterjs 8.52.0 → 8.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 +26 -18
- package/dist/rooster-amd.js +212 -124
- 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 +26 -18
- package/dist/rooster.js +212 -124
- 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.53.0)
|
|
2
2
|
// Generated by dts tool from roosterjs
|
|
3
3
|
// Project: https://github.com/Microsoft/roosterjs
|
|
4
4
|
|
|
@@ -3828,6 +3828,16 @@ const enum ExperimentalFeatures {
|
|
|
3828
3828
|
* @deprecated
|
|
3829
3829
|
*/
|
|
3830
3830
|
DefaultFormatOnContainer = "DefaultFormatOnContainer",
|
|
3831
|
+
/**
|
|
3832
|
+
* @deprecated This feature is always enabled
|
|
3833
|
+
* Reuse existing DOM structure if possible when convert Content Model back to DOM tree
|
|
3834
|
+
*/
|
|
3835
|
+
ReusableContentModel = "ReusableContentModel",
|
|
3836
|
+
/**
|
|
3837
|
+
* @deprecated This feature is always enabled
|
|
3838
|
+
* Handle keyboard editing event with Content Model
|
|
3839
|
+
*/
|
|
3840
|
+
EditWithContentModel = "EditWithContentModel",
|
|
3831
3841
|
/**
|
|
3832
3842
|
* Provide additional Tab Key Features. Requires Text Features Content Editable Features
|
|
3833
3843
|
*/
|
|
@@ -3843,14 +3853,6 @@ const enum ExperimentalFeatures {
|
|
|
3843
3853
|
* is the one closest to the item.
|
|
3844
3854
|
*/
|
|
3845
3855
|
ReuseAllAncestorListElements = "ReuseAllAncestorListElements",
|
|
3846
|
-
/**
|
|
3847
|
-
* Reuse existing DOM structure if possible when convert Content Model back to DOM tree
|
|
3848
|
-
*/
|
|
3849
|
-
ReusableContentModel = "ReusableContentModel",
|
|
3850
|
-
/**
|
|
3851
|
-
* Handle keyboard editing event with Content Model
|
|
3852
|
-
*/
|
|
3853
|
-
EditWithContentModel = "EditWithContentModel",
|
|
3854
3856
|
/**
|
|
3855
3857
|
* Delete table with Backspace key with the whole was selected with table selector
|
|
3856
3858
|
*/
|
|
@@ -8635,6 +8637,16 @@ enum CompatibleExperimentalFeatures {
|
|
|
8635
8637
|
* @deprecated
|
|
8636
8638
|
*/
|
|
8637
8639
|
DefaultFormatOnContainer = "DefaultFormatOnContainer",
|
|
8640
|
+
/**
|
|
8641
|
+
* @deprecated This feature is always enabled
|
|
8642
|
+
* Reuse existing DOM structure if possible when convert Content Model back to DOM tree
|
|
8643
|
+
*/
|
|
8644
|
+
ReusableContentModel = "ReusableContentModel",
|
|
8645
|
+
/**
|
|
8646
|
+
* @deprecated This feature is always enabled
|
|
8647
|
+
* Handle keyboard editing event with Content Model
|
|
8648
|
+
*/
|
|
8649
|
+
EditWithContentModel = "EditWithContentModel",
|
|
8638
8650
|
/**
|
|
8639
8651
|
* Provide additional Tab Key Features. Requires Text Features Content Editable Features
|
|
8640
8652
|
*/
|
|
@@ -8650,14 +8662,6 @@ enum CompatibleExperimentalFeatures {
|
|
|
8650
8662
|
* is the one closest to the item.
|
|
8651
8663
|
*/
|
|
8652
8664
|
ReuseAllAncestorListElements = "ReuseAllAncestorListElements",
|
|
8653
|
-
/**
|
|
8654
|
-
* Reuse existing DOM structure if possible when convert Content Model back to DOM tree
|
|
8655
|
-
*/
|
|
8656
|
-
ReusableContentModel = "ReusableContentModel",
|
|
8657
|
-
/**
|
|
8658
|
-
* Handle keyboard editing event with Content Model
|
|
8659
|
-
*/
|
|
8660
|
-
EditWithContentModel = "EditWithContentModel",
|
|
8661
8665
|
/**
|
|
8662
8666
|
* Delete table with Backspace key with the whole was selected with table selector
|
|
8663
8667
|
*/
|
|
@@ -10635,6 +10639,7 @@ class PickerPlugin<T extends PickerDataProvider = PickerDataProvider> implements
|
|
|
10635
10639
|
*/
|
|
10636
10640
|
class TableResize implements EditorPlugin {
|
|
10637
10641
|
private onShowHelperElement?;
|
|
10642
|
+
private anchorContainerSelector?;
|
|
10638
10643
|
private editor;
|
|
10639
10644
|
private onMouseMoveDisposer;
|
|
10640
10645
|
private tableRectMap;
|
|
@@ -10644,8 +10649,11 @@ class TableResize implements EditorPlugin {
|
|
|
10644
10649
|
* @param onShowHelperElement An optional callback to allow customize helper element of table resizing.
|
|
10645
10650
|
* To customize the helper element, add this callback and change the attributes of elementData then it
|
|
10646
10651
|
* will be picked up by TableResize code
|
|
10652
|
+
* @param anchorContainerSelector An optional selector string to specify the container to host the plugin.
|
|
10653
|
+
* The container must not be affected by transform: scale(), otherwise the position calculation will be wrong.
|
|
10654
|
+
* If not specified, the plugin will be inserted in document.body
|
|
10647
10655
|
*/
|
|
10648
|
-
constructor(onShowHelperElement?: ((elementData: CreateElementData, helperType: 'CellResizer' | 'TableInserter' | 'TableResizer' | 'TableSelector') => void) | undefined);
|
|
10656
|
+
constructor(onShowHelperElement?: ((elementData: CreateElementData, helperType: 'CellResizer' | 'TableInserter' | 'TableResizer' | 'TableSelector') => void) | undefined, anchorContainerSelector?: string | undefined);
|
|
10649
10657
|
/**
|
|
10650
10658
|
* Get a friendly name of this plugin
|
|
10651
10659
|
*/
|