@jetthai/cuora 1.1.387-qa-1 → 1.1.388

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,9 +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.1.387-qa-1](https://github.com/jetthai/cuora-module/compare/v1.1.387-qa...v1.1.387-qa-1) (2025-09-26)
6
-
7
- ### [1.1.387-qa](https://github.com/jetthai/cuora-module/compare/v1.1.387...v1.1.387-qa) (2025-09-26)
5
+ ### [1.1.388](https://github.com/jetthai/cuora-module/compare/v1.1.387...v1.1.388) (2025-10-07)
8
6
 
9
7
  ### [1.1.387](https://github.com/jetthai/cuora-module/compare/v1.1.386...v1.1.387) (2025-09-23)
10
8
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jetthai/cuora",
3
- "version": "1.1.387-qa-1",
3
+ "version": "1.1.388",
4
4
  "description": "",
5
5
  "main": "./src/index.js",
6
6
  "type": "module",
@@ -85,7 +85,6 @@ export default {
85
85
  exchange: (data) => ({ url: 'activities/exchange', method: 'post', params: data }),
86
86
  collect: (data) => ({ url: 'activities/collect', method: 'post', params: data }),
87
87
  getVipTable: ({ appSecret }) => ({ url: 'activities/viptable', method: 'get', params: { appSecret } }),
88
- getLevelBonusInfo: () => ({ url: 'activities/level-bonus/info', method: 'get' }),
89
88
  getRankingList: () => ({ url: 'activities/ranking', method: 'get' }),
90
89
  exchangeDiamond: ({ activityNo, exchangeAward = [] }) => ({
91
90
  url: 'activities/exchange/diamond',
@@ -41,6 +41,7 @@ export default function (request) {
41
41
  defaultAffiliateCode: null,
42
42
  friendCode: null,
43
43
  isPlaying: false,
44
+ isLogin: false,
44
45
  },
45
46
  states: {
46
47
  config: {
@@ -88,8 +89,20 @@ export default function (request) {
88
89
  },
89
90
  },
90
91
  feed: {
91
- initial: 'updating',
92
+ initial: 'idle',
92
93
  states: {
94
+ idle: {
95
+ on: {
96
+ LOGIN_REFRESH: {
97
+ target: 'updating',
98
+ actions: 'login',
99
+ },
100
+ LEAVE_GAME_REFRESH: {
101
+ target: 'updating',
102
+ actions: 'leaveGame',
103
+ },
104
+ },
105
+ },
93
106
  updating: {
94
107
  invoke: {
95
108
  src: 'fetchFeeds',
@@ -110,11 +123,12 @@ export default function (request) {
110
123
  },
111
124
  on: {
112
125
  ENTER_GAME_PAUSE: {
126
+ target: '.idle',
113
127
  actions: 'resetByEnterGame',
114
128
  },
115
- LEAVE_GAME_REFRESH: {
116
- target: '.updating',
117
- actions: 'leaveGame',
129
+ LOGOUT_PAUSE: {
130
+ target: '.idle',
131
+ actions: 'resetByLogout',
118
132
  },
119
133
  },
120
134
  },
@@ -296,7 +310,7 @@ export default function (request) {
296
310
  const { broadcastList, mailBoxInfo } = event.data
297
311
  const { siteConfig } = context
298
312
  const customerMessageEnable = siteConfig?.csChat?.some((item) => item.enable && item.name === 'customermessage')
299
- if (!customerMessageEnable) {
313
+ if (!customerMessageEnable && mailBoxInfo) {
300
314
  mailBoxInfo.rows -= mailBoxInfo.detailRows?.CUSTOMER || 0
301
315
  }
302
316
  return { broadcastList, mailBoxInfo }
@@ -334,6 +348,19 @@ export default function (request) {
334
348
  isPlaying: false,
335
349
  }
336
350
  }),
351
+ resetByLogout: assign((context, event) => {
352
+ return {
353
+ isLogin: false,
354
+ broadcastList: null,
355
+ mailBoxInfo: null,
356
+ promotions: null,
357
+ }
358
+ }),
359
+ login: assign((context, event) => {
360
+ return {
361
+ isLogin: true,
362
+ }
363
+ }),
337
364
  },
338
365
  guards: {
339
366
  isAffiliateCodeInstructionsEnable: (context, event) => {
@@ -76,7 +76,6 @@ export default function (request) {
76
76
  }),
77
77
  setSignUpId: assign((context, event) => {
78
78
  const {
79
- email,
80
79
  username,
81
80
  nick_name,
82
81
  password,
@@ -94,7 +93,6 @@ export default function (request) {
94
93
  return {
95
94
  signUpData: {
96
95
  provider: 'local',
97
- email,
98
96
  username,
99
97
  nick_name,
100
98
  password,
@@ -113,7 +111,6 @@ export default function (request) {
113
111
  }),
114
112
  setSignUpPhone: assign((context, event) => {
115
113
  const {
116
- email,
117
114
  countryCode,
118
115
  phone,
119
116
  nick_name,
@@ -130,7 +127,6 @@ export default function (request) {
130
127
  return {
131
128
  signUpData: {
132
129
  provider: 'phone',
133
- email,
134
130
  countryCode,
135
131
  phone,
136
132
  nick_name,
@@ -111,7 +111,6 @@ const supportVersion2List = [
111
111
  'activities/types',
112
112
  'activities/promo',
113
113
  'activities/viptable',
114
- 'activities/level-bonus/info',
115
114
  'activities/numbers',
116
115
  'activities/honorBroadcast',
117
116
  'activities/exchange/diamond/max-amount',