@messenger-box/platform-browser 7.0.11-alpha.0 → 7.0.11-alpha.1
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
|
@@ -3,6 +3,10 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
## [7.0.11-alpha.1](https://github.com/cdmbase/messenger-box/compare/v7.0.11-alpha.0...v7.0.11-alpha.1) (2024-06-30)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @messenger-box/platform-browser
|
|
9
|
+
|
|
6
10
|
## 7.0.11-alpha.0 (2024-06-25)
|
|
7
11
|
|
|
8
12
|
### Bug Fixes
|
|
@@ -1,18 +1,29 @@
|
|
|
1
1
|
import React__default from'react';import {Await}from'@remix-run/react';import {Spinner}from'@admin-layout/chakra-ui';import {Alert}from'@chakra-ui/react';import Dashboard from'./Dashboard.js';import {useGetAllUsersQuery,useUsersToChatQuery,useCurrentUserQuery,useGetChannelsByUserQuery,useGetAllChannelQuery}from'@messenger-box/platform-client';import {useSelector}from'react-redux';const DashboardWithLoader = props => {
|
|
2
2
|
const currentUserAuth0Id = useSelector(state => state.user.auth0UserId);
|
|
3
|
-
const allUsers = useGetAllUsersQuery(
|
|
3
|
+
const allUsers = useGetAllUsersQuery({
|
|
4
|
+
variables: {},
|
|
5
|
+
fetchPolicy: 'cache-only'
|
|
6
|
+
});
|
|
4
7
|
const usersToChat = useUsersToChatQuery({
|
|
5
8
|
variables: {
|
|
6
9
|
auth0Id: currentUserAuth0Id
|
|
7
|
-
}
|
|
10
|
+
},
|
|
11
|
+
fetchPolicy: 'cache-only'
|
|
8
12
|
});
|
|
9
13
|
const currentUserRes = useCurrentUserQuery({
|
|
10
14
|
variables: {
|
|
11
15
|
auth0Id: currentUserAuth0Id
|
|
12
|
-
}
|
|
16
|
+
},
|
|
17
|
+
fetchPolicy: "cache-only"
|
|
18
|
+
});
|
|
19
|
+
const getChannel = useGetChannelsByUserQuery({
|
|
20
|
+
variables: {},
|
|
21
|
+
fetchPolicy: 'cache-only'
|
|
22
|
+
});
|
|
23
|
+
const allChannels = useGetAllChannelQuery({
|
|
24
|
+
variables: {},
|
|
25
|
+
fetchPolicy: 'cache-only'
|
|
13
26
|
});
|
|
14
|
-
const getChannel = useGetChannelsByUserQuery();
|
|
15
|
-
const allChannels = useGetAllChannelQuery();
|
|
16
27
|
return React__default.createElement(React__default.Suspense, {
|
|
17
28
|
fallback: React__default.createElement(Spinner, null)
|
|
18
29
|
}, React__default.createElement(Await, {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DashboardWithLoader.js","sources":["../../src/containers/DashboardWithLoader.tsx"],"sourcesContent":[null],"names":[],"mappings":"+XAcA,MAAM,mBAAmB,GAAG,KAAC,IAAS;AAClC,EAAA,MAAA,kBAAwB,GAAA,WAAc,CAAA,KAAY,IAAA,UAAW,CAAA,WAAK,CAAA,CAAA;AAElE,EAAA,MAAA,QAAc,GAAA,mBAAsB,
|
|
1
|
+
{"version":3,"file":"DashboardWithLoader.js","sources":["../../src/containers/DashboardWithLoader.tsx"],"sourcesContent":[null],"names":[],"mappings":"+XAcA,MAAM,mBAAmB,GAAG,KAAC,IAAS;AAClC,EAAA,MAAA,kBAAwB,GAAA,WAAc,CAAA,KAAY,IAAA,UAAW,CAAA,WAAK,CAAA,CAAA;AAElE,EAAA,MAAA,QAAc,GAAA,mBAAsB,CAAA;AACpC,IAAA;AACA,IAAA,yBAAuB;AACvB,GAAA,CAAA,CAAA;AACA,EAAA,MAAA,WAAiB,GAAA,mBAAwB,CAAA;IAEzC,SACK,EAAA;aACI,EAAA,kBAAK;AAQlB,KAAE;AACF,IAAA,WAAe;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@messenger-box/platform-browser",
|
|
3
|
-
"version": "7.0.11-alpha.
|
|
3
|
+
"version": "7.0.11-alpha.1",
|
|
4
4
|
"description": "Sample core for higher packages to depend on",
|
|
5
5
|
"license": "ISC",
|
|
6
6
|
"author": "CDMBase LLC",
|
|
@@ -60,5 +60,5 @@
|
|
|
60
60
|
"typescript": {
|
|
61
61
|
"definition": "lib/index.d.ts"
|
|
62
62
|
},
|
|
63
|
-
"gitHead": "
|
|
63
|
+
"gitHead": "e5257797b74cb5a99aa69733636849a9587f0728"
|
|
64
64
|
}
|
|
@@ -15,11 +15,11 @@ import { useSelector } from 'react-redux';
|
|
|
15
15
|
const DashboardWithLoader = (props) => {
|
|
16
16
|
const currentUserAuth0Id = useSelector((state: any) => state.user.auth0UserId);
|
|
17
17
|
|
|
18
|
-
const allUsers = useGetAllUsersQuery();
|
|
19
|
-
const usersToChat = useUsersToChatQuery({ variables: { auth0Id: currentUserAuth0Id } });
|
|
20
|
-
const currentUserRes = useCurrentUserQuery({ variables: { auth0Id: currentUserAuth0Id } });
|
|
21
|
-
const getChannel = useGetChannelsByUserQuery();
|
|
22
|
-
const allChannels = useGetAllChannelQuery();
|
|
18
|
+
const allUsers = useGetAllUsersQuery({ variables: {}, fetchPolicy: 'cache-only' });
|
|
19
|
+
const usersToChat = useUsersToChatQuery({ variables: { auth0Id: currentUserAuth0Id }, fetchPolicy: 'cache-only' });
|
|
20
|
+
const currentUserRes = useCurrentUserQuery({ variables: { auth0Id: currentUserAuth0Id } ,fetchPolicy:"cache-only"});
|
|
21
|
+
const getChannel = useGetChannelsByUserQuery({ variables: {}, fetchPolicy: 'cache-only' });
|
|
22
|
+
const allChannels = useGetAllChannelQuery({ variables: {}, fetchPolicy: 'cache-only' });
|
|
23
23
|
|
|
24
24
|
return (
|
|
25
25
|
<React.Suspense fallback={<Spinner></Spinner>}>
|
|
@@ -27,7 +27,7 @@ const DashboardWithLoader = (props) => {
|
|
|
27
27
|
resolve={Promise.all([allUsers, usersToChat, currentUserRes, allChannels, getChannel])}
|
|
28
28
|
errorElement={<Alert>Error loading Dashboard page!</Alert>}
|
|
29
29
|
>
|
|
30
|
-
{(data) => <Dashboard data={data} {...props}
|
|
30
|
+
{(data) => <Dashboard data={data} {...props} />}
|
|
31
31
|
</Await>
|
|
32
32
|
</React.Suspense>
|
|
33
33
|
);
|