@jetthai/cuora 1.1.113 → 1.1.115

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,10 @@
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.115](https://github.com/jetthai/cuora-module/compare/v1.1.114...v1.1.115) (2023-05-31)
6
+
7
+ ### [1.1.114](https://github.com/jetthai/cuora-module/compare/v1.1.96-signin-5...v1.1.114) (2023-05-31)
8
+
5
9
  ### [1.1.113](https://github.com/jetthai/cuora-module/compare/v1.1.96-signin-5...v1.1.113) (2023-05-31)
6
10
 
7
11
  ### [1.1.112](https://github.com/jetthai/cuora-module/compare/v1.1.104-1...v1.1.112) (2023-05-31)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jetthai/cuora",
3
- "version": "1.1.113",
3
+ "version": "1.1.115",
4
4
  "description": "",
5
5
  "main": "./src/index.js",
6
6
  "type": "module",
@@ -37,6 +37,7 @@ export default function (request, context) {
37
37
  },
38
38
  loaded: {},
39
39
  debouncing: {
40
+ entry: 'clearCalculation',
40
41
  after: {
41
42
  1000: [
42
43
  {
@@ -102,13 +103,17 @@ export default function (request, context) {
102
103
  internal: false,
103
104
  },
104
105
  SET_ADDRESS: {
105
- target: '.debouncing',
106
106
  actions: 'setAddress',
107
107
  internal: false,
108
108
  },
109
109
  SET_AMOUNT: {
110
110
  target: '.debouncing',
111
- actions: ['setAmount', 'clearCalculation'],
111
+ actions: 'setAmount',
112
+ internal: false,
113
+ },
114
+ INPUT_AMOUNT: {
115
+ target: '.debouncing',
116
+ actions: 'inputAmount',
112
117
  internal: false,
113
118
  },
114
119
  },
@@ -173,6 +178,9 @@ export default function (request, context) {
173
178
  return { selectedAmount: event.data }
174
179
  }
175
180
  }),
181
+ inputAmount: assign((context, event) => {
182
+ return { selectedAmount: event.data }
183
+ }),
176
184
  setAddress: assign((context, event) => {
177
185
  return {
178
186
  sourceAddress: event.data,
@@ -43,6 +43,7 @@ export default function (request, context) {
43
43
  },
44
44
  loaded: {},
45
45
  debouncing: {
46
+ entry: 'clearCalculation',
46
47
  after: {
47
48
  1000: [{ target: 'calculating', cond: 'isCalculable' }, { target: 'loaded' }],
48
49
  },
@@ -32,6 +32,7 @@ export default function (request, context) {
32
32
  },
33
33
  loaded: {},
34
34
  debouncing: {
35
+ entry: 'clearCalculation',
35
36
  after: {
36
37
  1000: [
37
38
  {
@@ -57,6 +57,7 @@ export default function (request, context) {
57
57
  },
58
58
  loaded: {},
59
59
  debouncing: {
60
+ entry: 'clearCalculation',
60
61
  after: {
61
62
  1000: [{ target: 'calculating', cond: 'isCalculable' }, { target: 'loaded' }],
62
63
  },
@@ -38,6 +38,7 @@ export default function (request, context) {
38
38
  },
39
39
  loaded: {},
40
40
  debouncing: {
41
+ entry: 'clearCalculation',
41
42
  after: {
42
43
  1000: [
43
44
  {