@jetthai/cuora 1.1.74 → 1.1.75

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/CHANGELOG.md CHANGED
@@ -2,6 +2,8 @@
2
2
 
3
3
  All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
4
4
 
5
+ ### [1.1.75](https://github.com/jetthai/cuora-module/compare/v1.1.74...v1.1.75) (2023-04-12)
6
+
5
7
  ### [1.1.74](https://github.com/jetthai/cuora-module/compare/v1.1.73...v1.1.74) (2023-04-09)
6
8
 
7
9
  ### [1.1.73](https://github.com/jetthai/cuora-module/compare/v1.1.72...v1.1.73) (2023-04-07)
package/dist/bundle.mjs CHANGED
@@ -23246,7 +23246,7 @@ function loadcard_vn (request) {
23246
23246
  actions: 'setAmount',
23247
23247
  },
23248
23248
  CONFIRM: {
23249
- target: 'calculating',
23249
+ target: 'debouncing',
23250
23250
  },
23251
23251
  BACK: {
23252
23252
  target: 'loaded',
@@ -23272,10 +23272,22 @@ function loadcard_vn (request) {
23272
23272
  calculating: {
23273
23273
  invoke: {
23274
23274
  src: 'fetchCalculation',
23275
- onDone: {
23276
- target: 'calculated',
23277
- actions: 'setCalculation',
23278
- },
23275
+ onDone: [
23276
+ {
23277
+ target: 'submitting',
23278
+ actions: 'setCalculation',
23279
+ cond: 'jumpLinkEnable',
23280
+ },
23281
+ {
23282
+ target: 'cardInfo',
23283
+ actions: 'setCalculation',
23284
+ cond: 'isFreeWalletMode',
23285
+ },
23286
+ {
23287
+ target: 'calculated',
23288
+ actions: 'setCalculation',
23289
+ },
23290
+ ],
23279
23291
  onError: {
23280
23292
  target: 'calculable',
23281
23293
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jetthai/cuora",
3
- "version": "1.1.74",
3
+ "version": "1.1.75",
4
4
  "description": "",
5
5
  "main": "./src/index.js",
6
6
  "type": "module",
@@ -105,7 +105,7 @@ export default function (request) {
105
105
  actions: 'setAmount',
106
106
  },
107
107
  CONFIRM: {
108
- target: 'calculating',
108
+ target: 'debouncing',
109
109
  },
110
110
  BACK: {
111
111
  target: 'loaded',
@@ -131,10 +131,22 @@ export default function (request) {
131
131
  calculating: {
132
132
  invoke: {
133
133
  src: 'fetchCalculation',
134
- onDone: {
135
- target: 'calculated',
136
- actions: 'setCalculation',
137
- },
134
+ onDone: [
135
+ {
136
+ target: 'submitting',
137
+ actions: 'setCalculation',
138
+ cond: 'jumpLinkEnable',
139
+ },
140
+ {
141
+ target: 'cardInfo',
142
+ actions: 'setCalculation',
143
+ cond: 'isFreeWalletMode',
144
+ },
145
+ {
146
+ target: 'calculated',
147
+ actions: 'setCalculation',
148
+ },
149
+ ],
138
150
  onError: {
139
151
  target: 'calculable',
140
152
  },