roosterjs 9.59.0 → 9.61.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-amd-min.js +1 -1
- package/dist/rooster-amd-min.js.map +1 -1
- package/dist/rooster-amd.d.ts +23 -1
- package/dist/rooster-amd.js +470 -175
- 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-react.js +92 -92
- package/dist/rooster-react.js.map +1 -1
- package/dist/rooster.d.ts +23 -1
- package/dist/rooster.js +470 -175
- package/dist/rooster.js.map +1 -1
- package/package.json +7 -7
package/dist/rooster-amd.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Type definitions for roosterjs (Version 9.
|
|
1
|
+
// Type definitions for roosterjs (Version 9.61.0)
|
|
2
2
|
// Generated by dts tool from roosterjs
|
|
3
3
|
// Project: https://github.com/Microsoft/roosterjs
|
|
4
4
|
|
|
@@ -7251,6 +7251,17 @@ export function isNodeOfType<T extends keyof NodeTypeMap>(node: Node | null | un
|
|
|
7251
7251
|
*/
|
|
7252
7252
|
export function isElementOfType<Tag extends keyof HTMLElementTagNameMap>(element: HTMLElement, tag: Tag): element is HTMLElementTagNameMap[Tag];
|
|
7253
7253
|
|
|
7254
|
+
/**
|
|
7255
|
+
* Check whether the given URL uses a protocol that can execute script, such as "javascript:"
|
|
7256
|
+
* @param url The URL to check
|
|
7257
|
+
* @returns True if the URL can execute script when navigated to, otherwise false
|
|
7258
|
+
* @remarks Browsers remove every TAB, LF and CR character from a URL and ignore any leading control
|
|
7259
|
+
* character or space before they resolve its protocol. Those characters must be removed before the
|
|
7260
|
+
* protocol is checked here, otherwise a value such as "java	script:" or "javascr ipt:" would
|
|
7261
|
+
* be treated as safe but still executed by the browser.
|
|
7262
|
+
*/
|
|
7263
|
+
export function isUnsafeUrl(url: string | null | undefined): boolean;
|
|
7264
|
+
|
|
7254
7265
|
/**
|
|
7255
7266
|
* Provide a strong-typed version of Object.keys()
|
|
7256
7267
|
* @param obj The source object
|
|
@@ -8266,6 +8277,16 @@ export function cloneModel(model: ReadonlyContentModelDocument, options?: CloneM
|
|
|
8266
8277
|
*/
|
|
8267
8278
|
export function cloneModelForPaste(model: ReadonlyContentModelDocument): ContentModelDocument;
|
|
8268
8279
|
|
|
8280
|
+
/**
|
|
8281
|
+
* Check whether the given range of table cells can be merged without splitting existing spans.
|
|
8282
|
+
* @param rows The table rows to check
|
|
8283
|
+
* @param firstRow The first row index of the range
|
|
8284
|
+
* @param firstCol The first column index of the range
|
|
8285
|
+
* @param lastRow The last row index of the range
|
|
8286
|
+
* @param lastCol The last column index of the range
|
|
8287
|
+
*/
|
|
8288
|
+
export function canMergeCells(rows: readonly ReadonlyContentModelTableRow[], firstRow: number, firstCol: number, lastRow: number, lastCol: number): boolean;
|
|
8289
|
+
|
|
8269
8290
|
/**
|
|
8270
8291
|
* Merge source model into target mode
|
|
8271
8292
|
* @param target Target Content Model that will merge content into
|
|
@@ -9095,6 +9116,7 @@ export function editTable(editor: IEditor, operation: TableOperation): void;
|
|
|
9095
9116
|
|
|
9096
9117
|
/**
|
|
9097
9118
|
* Operations to apply border
|
|
9119
|
+
* Remove the targeted borders instead if they all already match the requested format.
|
|
9098
9120
|
* @param editor The editor instance
|
|
9099
9121
|
* @param border The border to apply
|
|
9100
9122
|
* @param operation The operation to apply
|