@jetthai/cuora 1.0.184 → 1.0.187

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,16 @@
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.187](https://github.com/jetthai/cuora-module/compare/v1.0.186...v1.0.187) (2022-10-07)
6
+
7
+ ### [1.0.186](https://github.com/jetthai/cuora-module/compare/v1.0.185...v1.0.186) (2022-10-07)
8
+
9
+ ### [1.0.185](https://github.com/jetthai/cuora-module/compare/v1.0.184-1.1...v1.0.185) (2022-10-07)
10
+
11
+ ### [1.0.184](https://github.com/jetthai/cuora-module/compare/v1.0.184-1.1...v1.0.184) (2022-10-07)
12
+
13
+ ### [1.0.184-1.1](https://github.com/jetthai/cuora-module/compare/v1.0.184...v1.0.184-1.1) (2022-10-07)
14
+
5
15
  ### [1.0.184](https://github.com/jetthai/cuora-module/compare/v1.0.183...v1.0.184) (2022-10-03)
6
16
 
7
17
  ### [1.0.183](https://github.com/jetthai/cuora-module/compare/v1.0.182...v1.0.183) (2022-10-03)
package/dist/bundle.mjs CHANGED
@@ -18568,6 +18568,13 @@ function crypto (request) {
18568
18568
  idle: {
18569
18569
  always: [{ target: 'calculable', cond: 'isCalculable' }],
18570
18570
  },
18571
+ debouncing: {
18572
+ after: {
18573
+ 1000: {
18574
+ target: 'calculating',
18575
+ },
18576
+ },
18577
+ },
18571
18578
  calculable: {
18572
18579
  on: {
18573
18580
  CALCULATE: {
@@ -18630,8 +18637,12 @@ function crypto (request) {
18630
18637
  target: '.idle',
18631
18638
  actions: ['setAmount', 'clearCalculation'],
18632
18639
  },
18640
+ // CLEAR_CALCULATION: {
18641
+ // target: '.idle',
18642
+ // actions: 'clearCalculation',
18643
+ // },
18633
18644
  CLEAR_CALCULATION: {
18634
- target: '.idle',
18645
+ target: '.debouncing',
18635
18646
  actions: 'clearCalculation',
18636
18647
  },
18637
18648
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jetthai/cuora",
3
- "version": "1.0.184",
3
+ "version": "1.0.187",
4
4
  "description": "",
5
5
  "main": "./src/index.js",
6
6
  "type": "module",
@@ -43,6 +43,13 @@ export default function (request) {
43
43
  idle: {
44
44
  always: [{ target: 'calculable', cond: 'isCalculable' }],
45
45
  },
46
+ debouncing: {
47
+ after: {
48
+ 1000: {
49
+ target: 'calculating',
50
+ },
51
+ },
52
+ },
46
53
  calculable: {
47
54
  on: {
48
55
  CALCULATE: {
@@ -105,8 +112,12 @@ export default function (request) {
105
112
  target: '.idle',
106
113
  actions: ['setAmount', 'clearCalculation'],
107
114
  },
115
+ // CLEAR_CALCULATION: {
116
+ // target: '.idle',
117
+ // actions: 'clearCalculation',
118
+ // },
108
119
  CLEAR_CALCULATION: {
109
- target: '.idle',
120
+ target: '.debouncing',
110
121
  actions: 'clearCalculation',
111
122
  },
112
123
  },