roosterjs 8.34.0 → 8.35.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/README.md +1 -1
- package/dist/rooster-amd-min.js +1 -1
- package/dist/rooster-amd-min.js.map +1 -1
- package/dist/rooster-amd.d.ts +25 -4
- package/dist/rooster-amd.js +335 -149
- 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 +25 -4
- package/dist/rooster.js +335 -149
- package/dist/rooster.js.map +1 -1
- package/package.json +7 -7
- package/tsconfig.child.tsbuildinfo +1 -1
package/dist/rooster-amd.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Type definitions for roosterjs (Version 8.
|
|
1
|
+
// Type definitions for roosterjs (Version 8.35.0)
|
|
2
2
|
// Generated by dts tool from roosterjs
|
|
3
3
|
// Project: https://github.com/Microsoft/roosterjs
|
|
4
4
|
|
|
@@ -2002,8 +2002,7 @@ export class Editor implements IEditor {
|
|
|
2002
2002
|
* Focus to this editor, the selection was restored to where it was before, no unexpected scroll.
|
|
2003
2003
|
*/
|
|
2004
2004
|
focus(): void;
|
|
2005
|
-
select(arg1: Range | NodePosition | Node | SelectionPath |
|
|
2006
|
-
private triggerSelectionChanged;
|
|
2005
|
+
select(arg1: Range | SelectionRangeEx | NodePosition | Node | SelectionPath | null, arg2?: NodePosition | number | PositionType | TableSelection, arg3?: Node, arg4?: number | PositionType): boolean;
|
|
2007
2006
|
/**
|
|
2008
2007
|
* Get current focused position. Return null if editor doesn't have focus at this time.
|
|
2009
2008
|
*/
|
|
@@ -3183,6 +3182,8 @@ export const enum Keys {
|
|
|
3183
3182
|
ESCAPE = 27,
|
|
3184
3183
|
SPACE = 32,
|
|
3185
3184
|
PAGEUP = 33,
|
|
3185
|
+
END = 35,
|
|
3186
|
+
HOME = 36,
|
|
3186
3187
|
LEFT = 37,
|
|
3187
3188
|
UP = 38,
|
|
3188
3189
|
RIGHT = 39,
|
|
@@ -5725,11 +5726,24 @@ export interface TableContentMetadata extends TableSelection, ContentMetadataBas
|
|
|
5725
5726
|
tableId: string;
|
|
5726
5727
|
}
|
|
5727
5728
|
|
|
5729
|
+
/**
|
|
5730
|
+
* A content metadata is a data structure storing information other than HTML content,
|
|
5731
|
+
* such as dark mode info, selection info, ...
|
|
5732
|
+
*
|
|
5733
|
+
* ImageContentMetadata is content metadata for image selection with image id
|
|
5734
|
+
*
|
|
5735
|
+
* When do any change to this type, also need to fix function isUndoMetadata to make sure
|
|
5736
|
+
* the check is correct
|
|
5737
|
+
*/
|
|
5738
|
+
export interface ImageContentMetadata extends ContentMetadataBase<SelectionRangeTypes.ImageSelection> {
|
|
5739
|
+
imageId: string;
|
|
5740
|
+
}
|
|
5741
|
+
|
|
5728
5742
|
/**
|
|
5729
5743
|
* A content metadata is a data structure storing information other than HTML content,
|
|
5730
5744
|
* such as dark mode info, selection info, ...
|
|
5731
5745
|
*/
|
|
5732
|
-
export type ContentMetadata = NormalContentMetadata | TableContentMetadata;
|
|
5746
|
+
export type ContentMetadata = NormalContentMetadata | TableContentMetadata | ImageContentMetadata;
|
|
5733
5747
|
|
|
5734
5748
|
/**
|
|
5735
5749
|
* A serializable snapshot of editor content, including the html content and metadata
|
|
@@ -6248,6 +6262,11 @@ export interface IEditor {
|
|
|
6248
6262
|
* @param coordinates first and last cell of the range
|
|
6249
6263
|
*/
|
|
6250
6264
|
select(table: HTMLTableElement, coordinates: TableSelection): boolean;
|
|
6265
|
+
/**
|
|
6266
|
+
* Select content SelectionRangeEx
|
|
6267
|
+
* @param rangeEx SelectionRangeEx object to specify what to select
|
|
6268
|
+
*/
|
|
6269
|
+
select(rangeEx: SelectionRangeEx): boolean;
|
|
6251
6270
|
/**
|
|
6252
6271
|
* Get current focused position. Return null if editor doesn't have focus at this time.
|
|
6253
6272
|
*/
|
|
@@ -9003,6 +9022,8 @@ export enum CompatibleKeys {
|
|
|
9003
9022
|
ESCAPE = 27,
|
|
9004
9023
|
SPACE = 32,
|
|
9005
9024
|
PAGEUP = 33,
|
|
9025
|
+
END = 35,
|
|
9026
|
+
HOME = 36,
|
|
9006
9027
|
LEFT = 37,
|
|
9007
9028
|
UP = 38,
|
|
9008
9029
|
RIGHT = 39,
|