roosterjs 9.57.0 → 9.58.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 9.57.0)
1
+ // Type definitions for roosterjs (Version 9.58.0)
2
2
  // Generated by dts tool from roosterjs
3
3
  // Project: https://github.com/Microsoft/roosterjs
4
4
 
@@ -5747,7 +5747,14 @@ export type KnownAnnounceStrings = /**
5747
5747
  * @example
5748
5748
  * {0}, unselected
5749
5749
  */
5750
- | 'unselected';
5750
+ | 'unselected'
5751
+ /**
5752
+ * String announced when a new line is inserted in the editor.
5753
+ * Used when Enter is pressed and a new line is inserted in the editor.
5754
+ * @example
5755
+ * New line inserted
5756
+ */
5757
+ | 'newLineInserted';
5751
5758
 
5752
5759
  /**
5753
5760
  * Options for announcing format changes
@@ -6064,6 +6071,11 @@ export interface MergeModelOption {
6064
6071
  * Whether to add a paragraph after the merged content.
6065
6072
  */
6066
6073
  addParagraphAfterMergedContent?: boolean;
6074
+ /**
6075
+ * Whether to merge into an empty paragraph immediately after a list as a new list item.
6076
+ * @default false
6077
+ */
6078
+ mergeParagraphAfterList?: boolean;
6067
6079
  }
6068
6080
 
6069
6081
  /**
@@ -7952,6 +7964,16 @@ export function normalizeFontFamily(fontFamily: string): string;
7952
7964
  */
7953
7965
  export function extractClipboardItems(items: DataTransferItem[], allowedCustomPasteType?: string[], isPasteNative?: boolean): Promise<ClipboardData>;
7954
7966
 
7967
+ /**
7968
+ * Create a document fragment from clipboard content using the specified paste type
7969
+ * @param document The document used to create the fragment
7970
+ * @param clipboardData The clipboard data to convert
7971
+ * @param pasteType The paste type that determines which clipboard content to use
7972
+ * @param root The optional root element containing the parsed HTML content
7973
+ * @returns A document fragment containing the content to paste
7974
+ */
7975
+ export function createPasteFragment(document: Document, clipboardData: ClipboardData, pasteType: PasteType, root: HTMLElement | undefined): DocumentFragment;
7976
+
7955
7977
  /**
7956
7978
  * Gets the cached event data by cache key from event object if there is already one.
7957
7979
  * Otherwise, call getter function to create one, and cache it.
@@ -8454,6 +8476,10 @@ export const ChangeSource: {
8454
8476
  * Content changed by replace
8455
8477
  */
8456
8478
  Replace: string;
8479
+ /**
8480
+ * Content changed by dragging content out the editor
8481
+ */
8482
+ DragOutOfEditor: string;
8457
8483
  };
8458
8484
 
8459
8485
  /**
@@ -10995,6 +11021,8 @@ export class DragAndDropPlugin implements EditorPlugin {
10995
11021
  * @param event The event to handle:
10996
11022
  */
10997
11023
  onPluginEvent(event: PluginEvent): void;
11024
+ private adjustDraggingCursor;
11025
+ private handleDragOutOfTheEditor;
10998
11026
  }
10999
11027
 
11000
11028
  /**