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