roosterjs 8.47.0 → 8.48.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.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- // Type definitions for roosterjs (Version 8.47.0)
1
+ // Type definitions for roosterjs (Version 8.48.0)
2
2
  // Generated by dts tool from roosterjs
3
3
  // Project: https://github.com/Microsoft/roosterjs
4
4
 
@@ -1316,8 +1316,9 @@ function getRegionsFromRange(root: HTMLElement, range: Range, type: RegionType |
1316
1316
  * @param regionBase The region to get block elements from
1317
1317
  * @param createBlockIfEmpty When set to true, a new empty block element will be created if there is not
1318
1318
  * any blocks in the region. Default value is false
1319
+ * @param deprecated Deprecated parameter, not used
1319
1320
  */
1320
- function getSelectedBlockElementsInRegion(regionBase: RegionBase, createBlockIfEmpty?: boolean, shouldApplyFormatToSpan?: boolean): BlockElement[];
1321
+ function getSelectedBlockElementsInRegion(regionBase: RegionBase, createBlockIfEmpty?: boolean, deprecated?: boolean): BlockElement[];
1321
1322
 
1322
1323
  /**
1323
1324
  * Collapse nodes within this region to their common ancestor node under this region
@@ -3774,6 +3775,14 @@ const enum ExperimentalFeatures {
3774
3775
  * Align list elements elements to left, center and right using setAlignment API
3775
3776
  */
3776
3777
  ListItemAlignment = "ListItemAlignment",
3778
+ /**
3779
+ * @deprecated
3780
+ */
3781
+ DefaultFormatInSpan = "DefaultFormatInSpan",
3782
+ /**
3783
+ * @deprecated
3784
+ */
3785
+ DefaultFormatOnContainer = "DefaultFormatOnContainer",
3777
3786
  /**
3778
3787
  * Provide additional Tab Key Features. Requires Text Features Content Editable Features
3779
3788
  */
@@ -3789,11 +3798,6 @@ const enum ExperimentalFeatures {
3789
3798
  * is the one closest to the item.
3790
3799
  */
3791
3800
  ReuseAllAncestorListElements = "ReuseAllAncestorListElements",
3792
- /**
3793
- * When apply default format when initialize or user type, apply the format on a SPAN element rather than
3794
- * the block element (In most case, the DIV element) so keep the block element clean.
3795
- */
3796
- DefaultFormatInSpan = "DefaultFormatInSpan",
3797
3801
  /**
3798
3802
  * Reuse existing DOM structure if possible when convert Content Model back to DOM tree
3799
3803
  */
@@ -3802,10 +3806,6 @@ const enum ExperimentalFeatures {
3802
3806
  * Handle keyboard editing event with Content Model
3803
3807
  */
3804
3808
  EditWithContentModel = "EditWithContentModel",
3805
- /**
3806
- * Apply default format on editor container
3807
- */
3808
- DefaultFormatOnContainer = "DefaultFormatOnContainer",
3809
3809
  /**
3810
3810
  * Delete table with Backspace key with the whole was selected with table selector
3811
3811
  */
@@ -4186,7 +4186,7 @@ const enum KnownCreateElementDataIndex {
4186
4186
  */
4187
4187
  TableSelector = 11,
4188
4188
  /**
4189
- * An empty line without format with span inside of it.
4189
+ * @deprecated
4190
4190
  */
4191
4191
  EmptyLineFormatInSpan = 12
4192
4192
  }
@@ -6702,7 +6702,7 @@ interface IEditor {
6702
6702
  * If it is not cached before, query from DOM and cache the result into the event object
6703
6703
  * @returns A content traverser, or null if editor never got focus before
6704
6704
  */
6705
- getContentSearcherOfCursor(event?: PluginEvent): IPositionContentSearcher | null;
6705
+ getContentSearcherOfCursor(event?: PluginEvent | null): IPositionContentSearcher | null;
6706
6706
  /**
6707
6707
  * Run a callback function asynchronously
6708
6708
  * @param callback The callback function to run
@@ -7165,8 +7165,7 @@ interface CoreApiMap {
7165
7165
  * @param core The EditorCore object.
7166
7166
  * @param position The position that user is about to type to
7167
7167
  * @param keyboardEvent Optional keyboard event object
7168
- * @param applyFormatToSpan Optional When set to true, default format (if any) will be applied to
7169
- * a SPAN element inside the block element instead of the block element itself.
7168
+ * @param deprecated Deprecated parameter, not used
7170
7169
  */
7171
7170
  ensureTypeInContainer: EnsureTypeInContainer;
7172
7171
  /**
@@ -7314,10 +7313,9 @@ type CreatePasteFragment = (core: EditorCore, clipboardData: ClipboardData, posi
7314
7313
  * @param core The EditorCore object.
7315
7314
  * @param position The position that user is about to type to
7316
7315
  * @param keyboardEvent Optional keyboard event object
7317
- * @param applyFormatToSpan Optional When set to true, default format (if any) will be applied to
7318
- * a SPAN element inside the block element instead of the block element itself.
7316
+ * @param deprecated Deprecated parameter, not used
7319
7317
  */
7320
- type EnsureTypeInContainer = (core: EditorCore, position: NodePosition, keyboardEvent?: KeyboardEvent, applyFormatToSpan?: boolean) => void;
7318
+ type EnsureTypeInContainer = (core: EditorCore, position: NodePosition, keyboardEvent?: KeyboardEvent, deprecated?: boolean) => void;
7321
7319
 
7322
7320
  /**
7323
7321
  * Focus to editor. If there is a cached selection range, use it as current selection
@@ -8494,6 +8492,14 @@ enum CompatibleExperimentalFeatures {
8494
8492
  * Align list elements elements to left, center and right using setAlignment API
8495
8493
  */
8496
8494
  ListItemAlignment = "ListItemAlignment",
8495
+ /**
8496
+ * @deprecated
8497
+ */
8498
+ DefaultFormatInSpan = "DefaultFormatInSpan",
8499
+ /**
8500
+ * @deprecated
8501
+ */
8502
+ DefaultFormatOnContainer = "DefaultFormatOnContainer",
8497
8503
  /**
8498
8504
  * Provide additional Tab Key Features. Requires Text Features Content Editable Features
8499
8505
  */
@@ -8509,11 +8515,6 @@ enum CompatibleExperimentalFeatures {
8509
8515
  * is the one closest to the item.
8510
8516
  */
8511
8517
  ReuseAllAncestorListElements = "ReuseAllAncestorListElements",
8512
- /**
8513
- * When apply default format when initialize or user type, apply the format on a SPAN element rather than
8514
- * the block element (In most case, the DIV element) so keep the block element clean.
8515
- */
8516
- DefaultFormatInSpan = "DefaultFormatInSpan",
8517
8518
  /**
8518
8519
  * Reuse existing DOM structure if possible when convert Content Model back to DOM tree
8519
8520
  */
@@ -8522,10 +8523,6 @@ enum CompatibleExperimentalFeatures {
8522
8523
  * Handle keyboard editing event with Content Model
8523
8524
  */
8524
8525
  EditWithContentModel = "EditWithContentModel",
8525
- /**
8526
- * Apply default format on editor container
8527
- */
8528
- DefaultFormatOnContainer = "DefaultFormatOnContainer",
8529
8526
  /**
8530
8527
  * Delete table with Backspace key with the whole was selected with table selector
8531
8528
  */
@@ -9655,7 +9652,7 @@ enum CompatibleKnownCreateElementDataIndex {
9655
9652
  */
9656
9653
  TableSelector = 11,
9657
9654
  /**
9658
- * An empty line without format with span inside of it.
9655
+ * @deprecated
9659
9656
  */
9660
9657
  EmptyLineFormatInSpan = 12
9661
9658
  }