roosterjs 8.45.1 → 8.45.2

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 8.45.1)
1
+ // Type definitions for roosterjs (Version 8.45.2)
2
2
  // Generated by dts tool from roosterjs
3
3
  // Project: https://github.com/Microsoft/roosterjs
4
4
 
package/dist/rooster.js CHANGED
@@ -26015,11 +26015,9 @@ var DEFAULT_BORDER_STYLE = 'solid 1px #d4d4d4';
26015
26015
  * @param event The BeforePaste event
26016
26016
  */
26017
26017
  function convertPastedContentFromExcel(event, trustedHTMLHandler) {
26018
- var _a, _b;
26019
26018
  var fragment = event.fragment, sanitizingOption = event.sanitizingOption, htmlBefore = event.htmlBefore, clipboardData = event.clipboardData;
26020
- var fragmentHTML = (_b = (_a = fragment.firstElementChild) === null || _a === void 0 ? void 0 : _a.outerHTML) !== null && _b !== void 0 ? _b : clipboardData.html;
26021
- var html = fragmentHTML ? excelHandler(fragmentHTML, htmlBefore) : undefined;
26022
- if (html && fragmentHTML != html) {
26019
+ var html = clipboardData.html ? excelHandler(clipboardData.html, htmlBefore) : undefined;
26020
+ if (html && clipboardData.html != html) {
26023
26021
  var doc = new DOMParser().parseFromString(trustedHTMLHandler(html), 'text/html');
26024
26022
  (0, roosterjs_editor_dom_1.moveChildNodes)(fragment, doc === null || doc === void 0 ? void 0 : doc.body);
26025
26023
  }