@jetthai/cuora 1.0.160 → 1.0.161

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.0.161](https://github.com/jetthai/cuora-module/compare/v1.0.160...v1.0.161) (2022-08-19)
6
+
5
7
  ### [1.0.160](https://github.com/jetthai/cuora-module/compare/v1.0.159...v1.0.160) (2022-08-17)
6
8
 
7
9
  ### [1.0.159](https://github.com/jetthai/cuora-module/compare/v1.0.158...v1.0.159) (2022-08-11)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jetthai/cuora",
3
- "version": "1.0.160",
3
+ "version": "1.0.161",
4
4
  "description": "",
5
5
  "main": "./src/index.js",
6
6
  "type": "module",
@@ -41,28 +41,49 @@ export default function (request) {
41
41
  actions: 'setQrcode',
42
42
  },
43
43
  SELECT_AMOUNT: {
44
- target: 'calculable',
44
+ target: 'debouncing',
45
45
  actions: 'addAmount',
46
46
  },
47
47
  KEY_IN: {
48
- target: 'calculable',
48
+ target: 'calculating',
49
49
  actions: 'setAmount',
50
50
  },
51
51
  },
52
52
  },
53
+ debouncing: {
54
+ on: {
55
+ SELECT_AMOUNT: {
56
+ target: 'debouncing',
57
+ actions: 'addAmount',
58
+ },
59
+ KEY_IN: {
60
+ target: 'debouncing',
61
+ actions: 'setAmount',
62
+ },
63
+ BACK: {
64
+ target: 'loaded',
65
+ },
66
+ },
67
+ after: {
68
+ 1000: {
69
+ target: 'calculating',
70
+ },
71
+ },
72
+ },
53
73
  fail: {},
54
74
  calculable: {
55
75
  entry: 'clearCalculation',
56
76
  on: {
57
77
  SELECT_AMOUNT: {
78
+ target: 'debouncing',
58
79
  actions: 'addAmount',
59
80
  },
60
81
  KEY_IN: {
61
- target: 'calculable',
82
+ target: 'debouncing',
62
83
  actions: 'setAmount',
63
84
  },
64
85
  CALCULATE: {
65
- target: 'calculating',
86
+ target: 'debouncing',
66
87
  },
67
88
  BACK: {
68
89
  target: 'loaded',
@@ -84,11 +105,11 @@ export default function (request) {
84
105
  calculated: {
85
106
  on: {
86
107
  SELECT_AMOUNT: {
87
- target: 'calculable',
108
+ target: 'debouncing',
88
109
  actions: 'addAmount',
89
110
  },
90
111
  KEY_IN: {
91
- target: 'calculable',
112
+ target: 'debouncing',
92
113
  actions: 'setAmount',
93
114
  },
94
115
  CONFIRM: {
@@ -98,7 +119,7 @@ export default function (request) {
98
119
  target: 'loaded',
99
120
  },
100
121
  CLEAR_CALCULATION: {
101
- target: 'calculable',
122
+ target: 'debouncing',
102
123
  actions: 'clearCalculation',
103
124
  },
104
125
  },