@jetthai/cuora 1.1.346-dev-3 → 1.1.346-dev-4

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,14 @@
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.346-dev-4](https://github.com/jetthai/cuora-module/compare/v1.1.346-ranking-1...v1.1.346-dev-4) (2025-04-02)
6
+
7
+ ### [1.1.346-dev-3](https://github.com/jetthai/cuora-module/compare/v1.1.346-dev-2...v1.1.346-dev-3) (2025-03-30)
8
+
9
+ ### [1.1.346-dev-2](https://github.com/jetthai/cuora-module/compare/v1.1.346-dev-1...v1.1.346-dev-2) (2025-03-28)
10
+
11
+ ### [1.1.346-dev-1](https://github.com/jetthai/cuora-module/compare/v1.1.346...v1.1.346-dev-1) (2025-03-28)
12
+
5
13
  ### [1.1.346-dev-3](https://github.com/jetthai/cuora-module/compare/v1.1.346-dev-2...v1.1.346-dev-3) (2025-03-30)
6
14
 
7
15
  ### [1.1.346-dev-2](https://github.com/jetthai/cuora-module/compare/v1.1.346-dev-1...v1.1.346-dev-2) (2025-03-28)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jetthai/cuora",
3
- "version": "1.1.346-dev-3",
3
+ "version": "1.1.346-dev-4",
4
4
  "description": "",
5
5
  "main": "./src/index.js",
6
6
  "type": "module",
@@ -292,8 +292,12 @@ export default function (request) {
292
292
  return { announcementList: { data } }
293
293
  }),
294
294
  setFeeds: assign((context, event) => {
295
- const { announcementList, broadcastList, mailBoxInfo } = event.data
295
+ const { announcementList, broadcastList, mailBoxInfo, siteConfig } = event.data
296
296
  const promotions = announcementList?.announcements?.filter?.((item) => item.category === 3) || []
297
+ const customerMessageEnable = siteConfig?.csChat?.some((item) => item.enable && item.name === 'customermessage')
298
+ if (!customerMessageEnable) {
299
+ mailBoxInfo.rows -= mailBoxInfo.detailRows.CUSTOMER || 0
300
+ }
297
301
  return { broadcastList, mailBoxInfo, promotions }
298
302
  }),
299
303
  setBroadcast: assign((context, event) => {
@@ -39,7 +39,7 @@ import honor_board from './honor_board.js'
39
39
  import user_photo from './user_photo.js'
40
40
  import navbar from './navbar.js'
41
41
  import websocket from './websocket.js'
42
- import dragon_tiger_ranking from './dragon_tiger_ranking.js'
42
+ import ranking from './ranking.js'
43
43
 
44
44
  export default {
45
45
  ...activity,
@@ -83,5 +83,5 @@ export default {
83
83
  navbar,
84
84
  ...withdraw,
85
85
  websocket,
86
- dragon_tiger_ranking,
86
+ ranking,
87
87
  }
@@ -20,7 +20,7 @@ export default function (request) {
20
20
 
21
21
  return createMachine(
22
22
  {
23
- id: 'dragon_tiger_ranking',
23
+ id: 'ranking',
24
24
  initial: 'idle',
25
25
  context: {
26
26
  auth: false,