idmission-web-sdk 2.6.3-changeset-release-develop-78427b0 → 2.6.3-changeset-release-develop-fd316b8

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/sdk2.esm.js CHANGED
@@ -48480,7 +48480,7 @@ function mapCustomerIdAndBiometricsEnrollmentProps(props, ctx) {
48480
48480
  });
48481
48481
  }
48482
48482
 
48483
- var webSdkVersion = '2.6.3-changeset-release-develop-78427b0';
48483
+ var webSdkVersion = '2.6.3-changeset-release-develop-fd316b8';
48484
48484
 
48485
48485
  // GENERATED by scripts/styleBagTypes.mjs from
48486
48486
  // src/__fixtures__/sdk2StyleBags.json and the mapper sweep — do not
@@ -51398,7 +51398,6 @@ function renderElement(component, targetElement) {
51398
51398
  document.body.append(targetElement);
51399
51399
  }
51400
51400
  var root = ReactDOM.createRoot(targetElement);
51401
- root.render(/*#__PURE__*/React.createElement(OverlayContainer, null, component));
51402
51401
  if ('remove' in targetElement) {
51403
51402
  var element_1 = targetElement;
51404
51403
  // Always point at the newest root, even when the wrapper is already
@@ -51448,6 +51447,11 @@ function renderElement(component, targetElement) {
51448
51447
  };
51449
51448
  }
51450
51449
  }
51450
+ // Render after the `.remove()` wrapper is installed. `createRoot` renders
51451
+ // asynchronously, so the order doesn't matter here, but the react-16-compat
51452
+ // branch mounts through the synchronous legacy `ReactDOM.render`: an effect
51453
+ // that calls `.remove()` during the first render must hit the wrapper.
51454
+ root.render(/*#__PURE__*/React.createElement(OverlayContainer, null, component));
51451
51455
  return targetElement;
51452
51456
  }
51453
51457
  function renderComponent(Component, targetElement, options) {