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