@wise/dynamic-flow-client 5.13.1 → 5.13.2-experimental-e750b58

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/build/main.js CHANGED
@@ -6821,7 +6821,12 @@ var createFlowController = (props) => {
6821
6821
  const { request, presentation } = launchConfig;
6822
6822
  const callbacks = getSubflowCallbacks({
6823
6823
  behavior,
6824
- close: () => rootComponent.closeSubflow(),
6824
+ close: () => {
6825
+ var _a3;
6826
+ if (((_a3 = rootComponent.subflow) == null ? void 0 : _a3.uid) === component.uid) {
6827
+ rootComponent.closeSubflow();
6828
+ }
6829
+ },
6825
6830
  onBehavior,
6826
6831
  onError: closeWithError,
6827
6832
  onEvent: onEvent != null ? onEvent : noop2,
package/build/main.mjs CHANGED
@@ -6791,7 +6791,12 @@ var createFlowController = (props) => {
6791
6791
  const { request, presentation } = launchConfig;
6792
6792
  const callbacks = getSubflowCallbacks({
6793
6793
  behavior,
6794
- close: () => rootComponent.closeSubflow(),
6794
+ close: () => {
6795
+ var _a3;
6796
+ if (((_a3 = rootComponent.subflow) == null ? void 0 : _a3.uid) === component.uid) {
6797
+ rootComponent.closeSubflow();
6798
+ }
6799
+ },
6795
6800
  onBehavior,
6796
6801
  onError: closeWithError,
6797
6802
  onEvent: onEvent != null ? onEvent : noop2,