@jetthai/cuora 1.0.195-1 → 1.0.196

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,7 +2,7 @@
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.0.195-1](https://github.com/jetthai/cuora-module/compare/v1.0.195...v1.0.195-1) (2022-11-09)
5
+ ### [1.0.196](https://github.com/jetthai/cuora-module/compare/v1.0.195...v1.0.196) (2022-11-01)
6
6
 
7
7
  ### [1.0.195](https://github.com/jetthai/cuora-module/compare/v1.0.194...v1.0.195) (2022-10-28)
8
8
 
package/dist/bundle.mjs CHANGED
@@ -17150,27 +17150,7 @@ function manual_vn (request) {
17150
17150
  step1: {
17151
17151
  initial: 'idle',
17152
17152
  states: {
17153
- idle: {
17154
- on: {
17155
- SET_AMOUNT: {
17156
- actions: ['setAmount', 'clearCalculation'],
17157
- },
17158
- CALCULATE: {
17159
- target: 'calculating',
17160
- cond: 'isCalculable',
17161
- },
17162
- SELECT_HOUSE_BANK: {
17163
- actions: 'setHouseBank',
17164
- },
17165
- CLEAR_CALCULATION: {
17166
- actions: 'clearCalculation',
17167
- },
17168
- TRANSACT: {
17169
- target: '#manual.step2',
17170
- cond: 'isCalculated',
17171
- },
17172
- },
17173
- },
17153
+ idle: { },
17174
17154
  calculating: {
17175
17155
  invoke: {
17176
17156
  src: 'fetchCalculation',
@@ -17183,47 +17163,39 @@ function manual_vn (request) {
17183
17163
  },
17184
17164
  },
17185
17165
  },
17166
+ debouncing: {
17167
+ after: {
17168
+ 1000: [
17169
+ { target: 'calculating', cond: 'isCalculable'},
17170
+ { target: 'idle'},
17171
+ ]
17172
+ },
17173
+ },
17174
+ },
17175
+ on: {
17176
+ SET_AMOUNT: {
17177
+ actions: ['setAmount', 'clearCalculation'],
17178
+ },
17179
+ CALCULATE: {
17180
+ target: '.debouncing',
17181
+ },
17182
+ SELECT_HOUSE_BANK: {
17183
+ actions: 'setHouseBank',
17184
+ },
17185
+ CLEAR_CALCULATION: {
17186
+ target: '.debouncing',
17187
+ actions: 'clearCalculation',
17188
+ },
17189
+ TRANSACT: {
17190
+ target: '#manual.step2',
17191
+ cond: 'isCalculated',
17192
+ },
17186
17193
  },
17187
17194
  },
17188
17195
  step2: {
17189
17196
  initial: 'idle',
17190
17197
  states: {
17191
- idle: {
17192
- on: {
17193
- SET_AMOUNT: {
17194
- actions: ['setAmount', 'clearCalculation'],
17195
- },
17196
- CALCULATE: {
17197
- target: 'calculating',
17198
- cond: 'isCalculable',
17199
- },
17200
- SELECT_HOUSE_BANK: {
17201
- actions: 'setHouseBank',
17202
- },
17203
- SELECT_USER_BANK: {
17204
- actions: 'setUserBank',
17205
- },
17206
- INPUT_USER_ACCOUNT_NUMBER: {
17207
- actions: 'setUserAccountNumber',
17208
- },
17209
- INPUT_USER_ACCOUNT_NAME: {
17210
- actions: 'setUserAccountName',
17211
- },
17212
- SET_DEPOSIT_TIME: {
17213
- actions: 'setDepositTime',
17214
- },
17215
- SET_RECEIPT: {
17216
- actions: 'setReceipt',
17217
- },
17218
- CLEAR_CALCULATION: {
17219
- actions: 'clearCalculation',
17220
- },
17221
- SUBMIT: {
17222
- target: 'submitting',
17223
- cond: 'isSubmittable',
17224
- },
17225
- },
17226
- },
17198
+ idle: { },
17227
17199
  calculating: {
17228
17200
  invoke: {
17229
17201
  src: 'fetchCalculation',
@@ -17236,6 +17208,14 @@ function manual_vn (request) {
17236
17208
  },
17237
17209
  },
17238
17210
  },
17211
+ debouncing: {
17212
+ after: {
17213
+ 1000: [
17214
+ { target: 'calculating', cond: 'isCalculable'},
17215
+ { target: 'idle'},
17216
+ ]
17217
+ },
17218
+ },
17239
17219
  submitting: {
17240
17220
  invoke: {
17241
17221
  src: 'submitDeposit',
@@ -17249,6 +17229,40 @@ function manual_vn (request) {
17249
17229
  },
17250
17230
  },
17251
17231
  },
17232
+ on: {
17233
+ SET_AMOUNT: {
17234
+ actions: ['setAmount', 'clearCalculation'],
17235
+ },
17236
+ CALCULATE: {
17237
+ target: '.debouncing',
17238
+ },
17239
+ SELECT_HOUSE_BANK: {
17240
+ actions: 'setHouseBank',
17241
+ },
17242
+ SELECT_USER_BANK: {
17243
+ actions: 'setUserBank',
17244
+ },
17245
+ INPUT_USER_ACCOUNT_NUMBER: {
17246
+ actions: 'setUserAccountNumber',
17247
+ },
17248
+ INPUT_USER_ACCOUNT_NAME: {
17249
+ actions: 'setUserAccountName',
17250
+ },
17251
+ SET_DEPOSIT_TIME: {
17252
+ actions: 'setDepositTime',
17253
+ },
17254
+ SET_RECEIPT: {
17255
+ actions: 'setReceipt',
17256
+ },
17257
+ CLEAR_CALCULATION: {
17258
+ target: '.debouncing',
17259
+ actions: 'clearCalculation',
17260
+ },
17261
+ SUBMIT: {
17262
+ target: '.submitting',
17263
+ cond: 'isSubmittable',
17264
+ },
17265
+ },
17252
17266
  },
17253
17267
  processing: {},
17254
17268
  submitted: {},
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jetthai/cuora",
3
- "version": "1.0.195-1",
3
+ "version": "1.0.196",
4
4
  "description": "",
5
5
  "main": "./src/index.js",
6
6
  "type": "module",
@@ -23,7 +23,7 @@
23
23
  "standard-version": "^9.3.1"
24
24
  },
25
25
  "dependencies": {
26
- "@fingerprintjs/fingerprintjs-pro": "^3.8.0",
26
+ "@fingerprintjs/fingerprintjs-pro": "^3.5.7",
27
27
  "lodash": "^4.17.21",
28
28
  "ua-parser-js": "^0.7.28",
29
29
  "universal-cookie": "^4.0.4",
@@ -68,27 +68,7 @@ export default function (request) {
68
68
  step1: {
69
69
  initial: 'idle',
70
70
  states: {
71
- idle: {
72
- on: {
73
- SET_AMOUNT: {
74
- actions: ['setAmount', 'clearCalculation'],
75
- },
76
- CALCULATE: {
77
- target: 'calculating',
78
- cond: 'isCalculable',
79
- },
80
- SELECT_HOUSE_BANK: {
81
- actions: 'setHouseBank',
82
- },
83
- CLEAR_CALCULATION: {
84
- actions: 'clearCalculation',
85
- },
86
- TRANSACT: {
87
- target: '#manual.step2',
88
- cond: 'isCalculated',
89
- },
90
- },
91
- },
71
+ idle: { },
92
72
  calculating: {
93
73
  invoke: {
94
74
  src: 'fetchCalculation',
@@ -101,47 +81,39 @@ export default function (request) {
101
81
  },
102
82
  },
103
83
  },
84
+ debouncing: {
85
+ after: {
86
+ 1000: [
87
+ { target: 'calculating', cond: 'isCalculable'},
88
+ { target: 'idle'},
89
+ ]
90
+ },
91
+ },
92
+ },
93
+ on: {
94
+ SET_AMOUNT: {
95
+ actions: ['setAmount', 'clearCalculation'],
96
+ },
97
+ CALCULATE: {
98
+ target: '.debouncing',
99
+ },
100
+ SELECT_HOUSE_BANK: {
101
+ actions: 'setHouseBank',
102
+ },
103
+ CLEAR_CALCULATION: {
104
+ target: '.debouncing',
105
+ actions: 'clearCalculation',
106
+ },
107
+ TRANSACT: {
108
+ target: '#manual.step2',
109
+ cond: 'isCalculated',
110
+ },
104
111
  },
105
112
  },
106
113
  step2: {
107
114
  initial: 'idle',
108
115
  states: {
109
- idle: {
110
- on: {
111
- SET_AMOUNT: {
112
- actions: ['setAmount', 'clearCalculation'],
113
- },
114
- CALCULATE: {
115
- target: 'calculating',
116
- cond: 'isCalculable',
117
- },
118
- SELECT_HOUSE_BANK: {
119
- actions: 'setHouseBank',
120
- },
121
- SELECT_USER_BANK: {
122
- actions: 'setUserBank',
123
- },
124
- INPUT_USER_ACCOUNT_NUMBER: {
125
- actions: 'setUserAccountNumber',
126
- },
127
- INPUT_USER_ACCOUNT_NAME: {
128
- actions: 'setUserAccountName',
129
- },
130
- SET_DEPOSIT_TIME: {
131
- actions: 'setDepositTime',
132
- },
133
- SET_RECEIPT: {
134
- actions: 'setReceipt',
135
- },
136
- CLEAR_CALCULATION: {
137
- actions: 'clearCalculation',
138
- },
139
- SUBMIT: {
140
- target: 'submitting',
141
- cond: 'isSubmittable',
142
- },
143
- },
144
- },
116
+ idle: { },
145
117
  calculating: {
146
118
  invoke: {
147
119
  src: 'fetchCalculation',
@@ -154,6 +126,14 @@ export default function (request) {
154
126
  },
155
127
  },
156
128
  },
129
+ debouncing: {
130
+ after: {
131
+ 1000: [
132
+ { target: 'calculating', cond: 'isCalculable'},
133
+ { target: 'idle'},
134
+ ]
135
+ },
136
+ },
157
137
  submitting: {
158
138
  invoke: {
159
139
  src: 'submitDeposit',
@@ -167,6 +147,40 @@ export default function (request) {
167
147
  },
168
148
  },
169
149
  },
150
+ on: {
151
+ SET_AMOUNT: {
152
+ actions: ['setAmount', 'clearCalculation'],
153
+ },
154
+ CALCULATE: {
155
+ target: '.debouncing',
156
+ },
157
+ SELECT_HOUSE_BANK: {
158
+ actions: 'setHouseBank',
159
+ },
160
+ SELECT_USER_BANK: {
161
+ actions: 'setUserBank',
162
+ },
163
+ INPUT_USER_ACCOUNT_NUMBER: {
164
+ actions: 'setUserAccountNumber',
165
+ },
166
+ INPUT_USER_ACCOUNT_NAME: {
167
+ actions: 'setUserAccountName',
168
+ },
169
+ SET_DEPOSIT_TIME: {
170
+ actions: 'setDepositTime',
171
+ },
172
+ SET_RECEIPT: {
173
+ actions: 'setReceipt',
174
+ },
175
+ CLEAR_CALCULATION: {
176
+ target: '.debouncing',
177
+ actions: 'clearCalculation',
178
+ },
179
+ SUBMIT: {
180
+ target: '.submitting',
181
+ cond: 'isSubmittable',
182
+ },
183
+ },
170
184
  },
171
185
  processing: {},
172
186
  submitted: {},