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