@jetthai/cuora 1.1.26 → 1.1.27

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.27](https://github.com/jetthai/cuora-module/compare/v1.1.26...v1.1.27) (2023-01-05)
6
+
7
+ ### [1.1.15-1](https://github.com/jetthai/cuora-module/compare/v1.1.22...v1.1.15-1) (2023-01-03)
8
+
5
9
  ### [1.1.26](https://github.com/jetthai/cuora-module/compare/v1.1.25...v1.1.26) (2023-01-04)
6
10
 
7
11
  ### [1.1.25](https://github.com/jetthai/cuora-module/compare/v1.1.24...v1.1.25) (2023-01-04)
@@ -28,6 +32,8 @@ All notable changes to this project will be documented in this file. See [standa
28
32
 
29
33
  ### [1.1.14](https://github.com/jetthai/cuora-module/compare/v1.1.13...v1.1.14) (2022-12-24)
30
34
 
35
+ ### [1.1.15-1](https://github.com/jetthai/cuora-module/compare/v1.1.15...v1.1.15-1) (2023-01-03)
36
+
31
37
  ### [1.1.15](https://github.com/jetthai/cuora-module/compare/v1.1.14...v1.1.15) (2022-12-24)
32
38
 
33
39
  ### [1.1.14](https://github.com/jetthai/cuora-module/compare/v1.1.13...v1.1.14) (2022-12-24)
@@ -80,10 +86,6 @@ All notable changes to this project will be documented in this file. See [standa
80
86
 
81
87
  ## [1.1.0](https://github.com/jetthai/cuora-module/compare/v1.0.205...v1.1.0) (2022-11-30)
82
88
 
83
- ### Features
84
-
85
- - add context.base for 3rdParty redirection ([dba1a60](https://github.com/jetthai/cuora-module/commit/dba1a60881f78444a2e83b2ad8dcde2ffcadb43b))
86
-
87
89
  ### [1.0.205](https://github.com/jetthai/cuora-module/compare/v1.0.204...v1.0.205) (2022-11-23)
88
90
 
89
91
  ### [1.0.204](https://github.com/jetthai/cuora-module/compare/v1.0.203...v1.0.204) (2022-11-21)
package/dist/bundle.mjs CHANGED
@@ -16528,6 +16528,7 @@ function loadcard_vn (request) {
16528
16528
  currentCategory: 'loadcard',
16529
16529
  currentMethod: null,
16530
16530
  currentPayment: null,
16531
+ result: null,
16531
16532
  },
16532
16533
  states: {
16533
16534
  loading: {
@@ -16716,9 +16717,15 @@ function loadcard_vn (request) {
16716
16717
  target: 'debouncing',
16717
16718
  actions: 'setAmount',
16718
16719
  },
16719
- CONFIRM: {
16720
- target: 'cardInfo',
16721
- },
16720
+ CONFIRM: [
16721
+ {
16722
+ target: 'submitting',
16723
+ cond: 'jumpLinkEnable',
16724
+ },
16725
+ {
16726
+ target: 'cardInfo',
16727
+ },
16728
+ ],
16722
16729
  BACK: {
16723
16730
  target: 'defaultMode',
16724
16731
  },
@@ -16751,6 +16758,7 @@ function loadcard_vn (request) {
16751
16758
  src: 'submitDeposit',
16752
16759
  onDone: {
16753
16760
  target: 'submitted',
16761
+ actions: 'setResult',
16754
16762
  },
16755
16763
  onError: {
16756
16764
  target: 'cardInfo',
@@ -16823,6 +16831,11 @@ function loadcard_vn (request) {
16823
16831
  calculation: null,
16824
16832
  }
16825
16833
  }),
16834
+ setResult: assign((context, event) => {
16835
+ return {
16836
+ result: event.data,
16837
+ }
16838
+ }),
16826
16839
  },
16827
16840
  guards: {
16828
16841
  isPromotionApplyMode: (context, event) => {
@@ -16832,6 +16845,10 @@ function loadcard_vn (request) {
16832
16845
  const { cardNumber, serialNumber } = context;
16833
16846
  return cardNumber && serialNumber
16834
16847
  },
16848
+ jumpLinkEnable: (context, event) => {
16849
+ const { selectedCard } = context;
16850
+ return selectedCard.jumpLinkEnable === 1
16851
+ },
16835
16852
  },
16836
16853
  services: {
16837
16854
  fetchInitData: async (context, event) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jetthai/cuora",
3
- "version": "1.1.26",
3
+ "version": "1.1.27",
4
4
  "description": "",
5
5
  "main": "./src/index.js",
6
6
  "type": "module",
@@ -24,6 +24,7 @@ export default function (request) {
24
24
  currentCategory: 'loadcard',
25
25
  currentMethod: null,
26
26
  currentPayment: null,
27
+ result: null,
27
28
  },
28
29
  states: {
29
30
  loading: {
@@ -212,9 +213,15 @@ export default function (request) {
212
213
  target: 'debouncing',
213
214
  actions: 'setAmount',
214
215
  },
215
- CONFIRM: {
216
- target: 'cardInfo',
217
- },
216
+ CONFIRM: [
217
+ {
218
+ target: 'submitting',
219
+ cond: 'jumpLinkEnable',
220
+ },
221
+ {
222
+ target: 'cardInfo',
223
+ },
224
+ ],
218
225
  BACK: {
219
226
  target: 'defaultMode',
220
227
  },
@@ -247,6 +254,7 @@ export default function (request) {
247
254
  src: 'submitDeposit',
248
255
  onDone: {
249
256
  target: 'submitted',
257
+ actions: 'setResult',
250
258
  },
251
259
  onError: {
252
260
  target: 'cardInfo',
@@ -319,6 +327,11 @@ export default function (request) {
319
327
  calculation: null,
320
328
  }
321
329
  }),
330
+ setResult: assign((context, event) => {
331
+ return {
332
+ result: event.data,
333
+ }
334
+ }),
322
335
  },
323
336
  guards: {
324
337
  isPromotionApplyMode: (context, event) => {
@@ -328,6 +341,10 @@ export default function (request) {
328
341
  const { cardNumber, serialNumber } = context
329
342
  return cardNumber && serialNumber
330
343
  },
344
+ jumpLinkEnable: (context, event) => {
345
+ const { selectedCard } = context
346
+ return selectedCard.jumpLinkEnable === 1
347
+ },
331
348
  },
332
349
  services: {
333
350
  fetchInitData: async (context, event) => {