sevago-sso-fe 1.0.0 → 1.0.2

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/README.md CHANGED
@@ -57,8 +57,6 @@ export default App;
57
57
 
58
58
  ```tsx
59
59
  import {
60
- AuthLayout,
61
- DashboardLayout,
62
60
  useSnackbar,
63
61
  useApps,
64
62
  authApi,
@@ -79,9 +77,9 @@ function MyComponent() {
79
77
  };
80
78
 
81
79
  return (
82
- <DashboardLayout>
83
- {/* Your dashboard content */}
84
- </DashboardLayout>
80
+ <div>
81
+ {/* Your content */}
82
+ </div>
85
83
  );
86
84
  }
87
85
  ```
@@ -232,14 +230,6 @@ To contribute to this library:
232
230
  4. Build library: `npm run build:lib`
233
231
  5. Test the build: `npm run preview`
234
232
 
235
- ## License
236
-
237
- MIT License - see LICENSE file for details.
238
-
239
- ## Support
240
-
241
- For support and questions, please open an issue on the GitHub repository.
242
-
243
233
  ## Changelog
244
234
 
245
235
  ### v1.0.0
package/dist/index.cjs.js CHANGED
@@ -31919,7 +31919,10 @@ function App() {
31919
31919
  try {
31920
31920
  account.user && await dispatch(ACTION_ACCOUNT.getAccount(account.user.id)).unwrap();
31921
31921
  } catch (error) {
31922
- showSnackbar({ message: getErrorMessage(error), type: SnackbarType.ERROR });
31922
+ showSnackbar({
31923
+ message: getErrorMessage(error),
31924
+ type: SnackbarType.ERROR
31925
+ });
31923
31926
  }
31924
31927
  })();
31925
31928
  }, []);
@@ -31927,7 +31930,9 @@ function App() {
31927
31930
  (async () => {
31928
31931
  try {
31929
31932
  if (!("serviceWorker" in navigator)) return;
31930
- const registration = await navigator.serviceWorker.register("/firebase-messaging-sw.js");
31933
+ const registration = await navigator.serviceWorker.register(
31934
+ "/firebase-messaging-sw.js"
31935
+ );
31931
31936
  await navigator.serviceWorker.ready;
31932
31937
  const permission = await Notification.requestPermission();
31933
31938
  if (permission === "granted" && account.isLogin && !account.fcmToken) {
@@ -31935,10 +31940,16 @@ function App() {
31935
31940
  vapidKey: void 0,
31936
31941
  serviceWorkerRegistration: registration
31937
31942
  });
31938
- if (fcmToken) await dispatch(ACTION_ACCOUNT.subscribeTopic({ fcmToken })).unwrap();
31943
+ if (fcmToken)
31944
+ await dispatch(
31945
+ ACTION_ACCOUNT.subscribeTopic({ fcmToken })
31946
+ ).unwrap();
31939
31947
  }
31940
31948
  } catch (error) {
31941
- showSnackbar({ message: getErrorMessage(error), type: SnackbarType.ERROR });
31949
+ showSnackbar({
31950
+ message: getErrorMessage(error),
31951
+ type: SnackbarType.ERROR
31952
+ });
31942
31953
  }
31943
31954
  })();
31944
31955
  }, [account.isLogin]);
@@ -31947,8 +31958,13 @@ function App() {
31947
31958
  if (!event.data) return;
31948
31959
  const { title, message } = event.data;
31949
31960
  const currentCount = store.getState().account.notificationCount;
31950
- await dispatch(ACTION_ACCOUNT.changeNotificationCount(currentCount + 1)).unwrap();
31951
- showSnackbar({ message: `${title}: ${message}`, type: SnackbarType.INFO });
31961
+ await dispatch(
31962
+ ACTION_ACCOUNT.changeNotificationCount(currentCount + 1)
31963
+ ).unwrap();
31964
+ showSnackbar({
31965
+ message: `${title}: ${message}`,
31966
+ type: SnackbarType.INFO
31967
+ });
31952
31968
  };
31953
31969
  navigator.serviceWorker.addEventListener("message", handler);
31954
31970
  return () => {