@wise/dynamic-flow-client 4.11.0-experimental-1c8f72d → 4.11.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/build/main.js CHANGED
@@ -6680,7 +6680,6 @@ function useDynamicFlowCore(props) {
6680
6680
  const onBehavior = (0, import_react3.useCallback)(async (behavior) => {
6681
6681
  switch (behavior.type) {
6682
6682
  case "action": {
6683
- rootComponentRef.current.setLoadingState("submitting");
6684
6683
  rootComponentRef.current.dismissAllModals();
6685
6684
  try {
6686
6685
  const { action } = behavior;
@@ -6689,11 +6688,8 @@ function useDynamicFlowCore(props) {
6689
6688
  const canSubmit = skipValidation || rootComponentRef.current.validate();
6690
6689
  if (canSubmit) {
6691
6690
  void onAction(action, model);
6692
- } else {
6693
- rootComponentRef.current.setLoadingState("idle");
6694
6691
  }
6695
6692
  } catch (e) {
6696
- rootComponentRef.current.setLoadingState("idle");
6697
6693
  }
6698
6694
  break;
6699
6695
  }
@@ -6753,7 +6749,6 @@ function useDynamicFlowCore(props) {
6753
6749
  });
6754
6750
  switch (command.type) {
6755
6751
  case "complete": {
6756
- rootComponentRef.current.setLoadingState("idle");
6757
6752
  onCompletion(command.result);
6758
6753
  rootComponentRef.current.stop();
6759
6754
  trackCoreEvent("Succeeded");
@@ -6766,7 +6761,6 @@ function useDynamicFlowCore(props) {
6766
6761
  break;
6767
6762
  }
6768
6763
  case "error": {
6769
- rootComponentRef.current.setLoadingState("idle");
6770
6764
  const genericErrorMessage = getErrorMessageFunctions().genericErrorWithRetry();
6771
6765
  const errors = (_b = (_a2 = command.body) == null ? void 0 : _a2.errors) != null ? _b : { error: genericErrorMessage };
6772
6766
  if (stepRef.current) {
package/build/main.mjs CHANGED
@@ -6637,7 +6637,6 @@ function useDynamicFlowCore(props) {
6637
6637
  const onBehavior = useCallback2(async (behavior) => {
6638
6638
  switch (behavior.type) {
6639
6639
  case "action": {
6640
- rootComponentRef.current.setLoadingState("submitting");
6641
6640
  rootComponentRef.current.dismissAllModals();
6642
6641
  try {
6643
6642
  const { action } = behavior;
@@ -6646,11 +6645,8 @@ function useDynamicFlowCore(props) {
6646
6645
  const canSubmit = skipValidation || rootComponentRef.current.validate();
6647
6646
  if (canSubmit) {
6648
6647
  void onAction(action, model);
6649
- } else {
6650
- rootComponentRef.current.setLoadingState("idle");
6651
6648
  }
6652
6649
  } catch (e) {
6653
- rootComponentRef.current.setLoadingState("idle");
6654
6650
  }
6655
6651
  break;
6656
6652
  }
@@ -6710,7 +6706,6 @@ function useDynamicFlowCore(props) {
6710
6706
  });
6711
6707
  switch (command.type) {
6712
6708
  case "complete": {
6713
- rootComponentRef.current.setLoadingState("idle");
6714
6709
  onCompletion(command.result);
6715
6710
  rootComponentRef.current.stop();
6716
6711
  trackCoreEvent("Succeeded");
@@ -6723,7 +6718,6 @@ function useDynamicFlowCore(props) {
6723
6718
  break;
6724
6719
  }
6725
6720
  case "error": {
6726
- rootComponentRef.current.setLoadingState("idle");
6727
6721
  const genericErrorMessage = getErrorMessageFunctions().genericErrorWithRetry();
6728
6722
  const errors = (_b = (_a2 = command.body) == null ? void 0 : _a2.errors) != null ? _b : { error: genericErrorMessage };
6729
6723
  if (stepRef.current) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wise/dynamic-flow-client",
3
- "version": "4.11.0-experimental-1c8f72d",
3
+ "version": "4.11.0",
4
4
  "description": "Dynamic Flow web client",
5
5
  "license": "Apache-2.0",
6
6
  "main": "./build/main.js",
@@ -78,8 +78,8 @@
78
78
  "stylelint-value-no-unknown-custom-properties": "6.0.1",
79
79
  "tsx": "4.20.3",
80
80
  "typescript": "5.8.3",
81
- "@wise/dynamic-flow-fixtures": "0.0.1",
82
- "@wise/dynamic-flow-renderers": "0.0.0"
81
+ "@wise/dynamic-flow-renderers": "0.0.0",
82
+ "@wise/dynamic-flow-fixtures": "0.0.1"
83
83
  },
84
84
  "peerDependencies": {
85
85
  "@transferwise/components": "^46.92.0",
@@ -95,7 +95,7 @@
95
95
  "classnames": "2.5.1",
96
96
  "react-webcam": "^7.2.0",
97
97
  "screenfull": "^5.2.0",
98
- "@wise/dynamic-flow-types": "3.9.0-experimental-1c8f72d"
98
+ "@wise/dynamic-flow-types": "3.9.0"
99
99
  },
100
100
  "scripts": {
101
101
  "dev": "pnpm build:visual-tests && storybook dev -p 3003",