roosterjs 9.35.0 → 9.35.1

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.
@@ -1,4 +1,4 @@
1
- // Type definitions for roosterjs (Version 9.35.0)
1
+ // Type definitions for roosterjs (Version 9.35.1)
2
2
  // Generated by dts tool from roosterjs
3
3
  // Project: https://github.com/Microsoft/roosterjs
4
4
 
@@ -9955,7 +9955,7 @@ var setContentModel = function (core, model, option, onNodeCreated, isInitializi
9955
9955
  : (0, roosterjs_content_model_dom_1.createModelToDomContextWithConfig)(core.environment.modelToDomSettings.calculated, editorContext);
9956
9956
  modelToDomContext.onNodeCreated = onNodeCreated;
9957
9957
  (_a = core.onFixUpModel) === null || _a === void 0 ? void 0 : _a.call(core, model);
9958
- var selection = (0, roosterjs_content_model_dom_1.contentModelToDom)(core.logicalRoot.ownerDocument.implementation.createHTMLDocument(), core.logicalRoot, model, modelToDomContext);
9958
+ var selection = (0, roosterjs_content_model_dom_1.contentModelToDom)(core.logicalRoot.ownerDocument, core.logicalRoot, model, modelToDomContext);
9959
9959
  if (!core.lifecycle.shadowEditFragment) {
9960
9960
  // Clear pending mutations since we will use our latest model object to replace existing cache
9961
9961
  (_b = core.cache.textMutationObserver) === null || _b === void 0 ? void 0 : _b.flushMutations(true /*ignoreMutations*/);
@@ -27887,8 +27887,8 @@ var handleParagraph = function (doc, parent, paragraph, context, refNode) {
27887
27887
  paragraph.segments.some(function (segment) { return segment.segmentType != 'SelectionMarker'; }));
27888
27888
  var formatOnWrapper = needParagraphWrapper
27889
27889
  ? (0, tslib_1.__assign)((0, tslib_1.__assign)({}, (((_a = paragraph.decorator) === null || _a === void 0 ? void 0 : _a.format) || {})), paragraph.segmentFormat) : {};
27890
- var prevRefNode = refNode === null || refNode === void 0 ? void 0 : refNode.previousSibling;
27891
27890
  container = doc.createElement(((_b = paragraph.decorator) === null || _b === void 0 ? void 0 : _b.tagName) || DefaultParagraphTag);
27891
+ parent.insertBefore(container, refNode);
27892
27892
  context.regularSelection.current = {
27893
27893
  block: needParagraphWrapper ? container : container.parentNode,
27894
27894
  segment: null,
@@ -27930,13 +27930,7 @@ var handleParagraph = function (doc, parent, paragraph, context, refNode) {
27930
27930
  // since this paragraph it is implicit. In that case container.nextSibling will become original
27931
27931
  // inline entity's next sibling. So reset refNode to its real next sibling (after change) here
27932
27932
  // to make sure the value is correct.
27933
- refNode =
27934
- prevRefNode === undefined // When refNode is not passed in
27935
- ? null
27936
- : prevRefNode === null // When refNode is the first child of parent
27937
- ? parent.firstChild
27938
- : prevRefNode.nextSibling; // Normal case
27939
- parent.insertBefore(container, refNode);
27933
+ refNode = container.nextSibling;
27940
27934
  if (container) {
27941
27935
  (_d = context.onNodeCreated) === null || _d === void 0 ? void 0 : _d.call(context, paragraph, container);
27942
27936
  (_e = context.domIndexer) === null || _e === void 0 ? void 0 : _e.onParagraph(container);