@replyke/core 5.1.5-beta.9 → 5.1.5
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/dist/cjs/config/useAxiosPrivate.js +5 -2
- package/dist/cjs/config/useAxiosPrivate.js.map +1 -1
- package/dist/cjs/context/app-notifications-context.js.map +1 -0
- package/dist/cjs/{legacy/context → context}/auth-context.js +1 -1
- package/dist/cjs/context/auth-context.js.map +1 -0
- package/dist/cjs/context/index.d.ts +2 -1
- package/dist/cjs/context/index.js +5 -3
- package/dist/cjs/context/index.js.map +1 -1
- package/dist/cjs/context/replyke-context.js +2 -2
- package/dist/cjs/context/replyke-context.js.map +1 -1
- package/dist/cjs/helpers/addNotificationsMessages.js +9 -7
- package/dist/cjs/helpers/addNotificationsMessages.js.map +1 -1
- package/dist/cjs/hooks/app-notifications/index.js.map +1 -0
- package/dist/cjs/hooks/app-notifications/useAppNotifications.js.map +1 -0
- package/dist/cjs/{legacy/hooks → hooks}/app-notifications/useAppNotificationsData.d.ts +1 -1
- package/dist/cjs/{legacy/hooks → hooks}/app-notifications/useAppNotificationsData.js +2 -2
- package/dist/cjs/hooks/app-notifications/useAppNotificationsData.js.map +1 -0
- package/dist/cjs/{legacy/hooks → hooks}/app-notifications/useCountUnreadNotifications.js +4 -4
- package/dist/cjs/hooks/app-notifications/useCountUnreadNotifications.js.map +1 -0
- package/dist/cjs/{legacy/hooks → hooks}/app-notifications/useFetchAppNotifications.d.ts +1 -1
- package/dist/cjs/{legacy/hooks → hooks}/app-notifications/useFetchAppNotifications.js +4 -4
- package/dist/cjs/hooks/app-notifications/useFetchAppNotifications.js.map +1 -0
- package/dist/cjs/{legacy/hooks → hooks}/app-notifications/useMarkNotificationAsRead.js +4 -4
- package/dist/cjs/hooks/app-notifications/useMarkNotificationAsRead.js.map +1 -0
- package/dist/cjs/hooks/auth/index.js.map +1 -0
- package/dist/cjs/hooks/auth/useAuth.js.map +1 -0
- package/dist/{esm/legacy → cjs}/hooks/auth/useAuthData.d.ts +1 -1
- package/dist/cjs/{legacy/hooks → hooks}/auth/useAuthData.js +2 -2
- package/dist/cjs/hooks/auth/useAuthData.js.map +1 -0
- package/dist/cjs/{legacy/hooks → hooks}/auth/useChangePassword.js +3 -3
- package/dist/cjs/hooks/auth/useChangePassword.js.map +1 -0
- package/dist/cjs/{legacy/hooks → hooks}/auth/useRequestNewAccessToken.js +3 -3
- package/dist/cjs/hooks/auth/useRequestNewAccessToken.js.map +1 -0
- package/dist/cjs/{legacy/hooks → hooks}/auth/useSignInWithEmailAndPassword.js +3 -3
- package/dist/cjs/hooks/auth/useSignInWithEmailAndPassword.js.map +1 -0
- package/dist/cjs/{legacy/hooks → hooks}/auth/useSignOut.js +3 -3
- package/dist/cjs/hooks/auth/useSignOut.js.map +1 -0
- package/dist/cjs/{legacy/hooks → hooks}/auth/useSignUpWithEmailAndPassword.js +3 -3
- package/dist/cjs/hooks/auth/useSignUpWithEmailAndPassword.js.map +1 -0
- package/dist/cjs/{legacy/hooks → hooks}/auth/useVerifyExternalUser.js +2 -2
- package/dist/cjs/hooks/auth/useVerifyExternalUser.js.map +1 -0
- package/dist/cjs/hooks/comments/useCommentSectionData.js +2 -2
- package/dist/cjs/hooks/comments/useCommentSectionData.js.map +1 -1
- package/dist/cjs/hooks/comments/useCommentVotes.js +2 -2
- package/dist/cjs/hooks/comments/useCommentVotes.js.map +1 -1
- package/dist/cjs/hooks/comments/useCreateComment.js +2 -2
- package/dist/cjs/hooks/comments/useCreateComment.js.map +1 -1
- package/dist/cjs/hooks/entities/useEntityData.js +2 -2
- package/dist/cjs/hooks/entities/useEntityData.js.map +1 -1
- package/dist/cjs/hooks/entities/useEntityVotes.js +2 -2
- package/dist/cjs/hooks/entities/useEntityVotes.js.map +1 -1
- package/dist/cjs/hooks/lists/useIsEntitySaved.js +2 -2
- package/dist/cjs/hooks/lists/useIsEntitySaved.js.map +1 -1
- package/dist/cjs/hooks/lists/useListsData.js +2 -2
- package/dist/cjs/hooks/lists/useListsData.js.map +1 -1
- package/dist/cjs/hooks/reports/useCreateReport.js +2 -2
- package/dist/cjs/hooks/reports/useCreateReport.js.map +1 -1
- package/dist/cjs/hooks/users/follows/useFetchFollow.js +2 -2
- package/dist/cjs/hooks/users/follows/useFetchFollow.js.map +1 -1
- package/dist/cjs/hooks/users/follows/useUnfollowUser.js +2 -2
- package/dist/cjs/hooks/users/follows/useUnfollowUser.js.map +1 -1
- package/dist/cjs/index.d.ts +4 -6
- package/dist/cjs/index.js +22 -12
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/interfaces/models/AppNotification.d.ts +1 -1
- package/dist/esm/config/useAxiosPrivate.js +2 -2
- package/dist/esm/config/useAxiosPrivate.js.map +1 -1
- package/dist/esm/context/app-notifications-context.js.map +1 -0
- package/dist/esm/{legacy/context → context}/auth-context.js +1 -1
- package/dist/esm/context/auth-context.js.map +1 -0
- package/dist/esm/context/index.d.ts +2 -1
- package/dist/esm/context/index.js +2 -1
- package/dist/esm/context/index.js.map +1 -1
- package/dist/esm/context/replyke-context.js +2 -2
- package/dist/esm/context/replyke-context.js.map +1 -1
- package/dist/esm/helpers/addNotificationsMessages.js +9 -7
- package/dist/esm/helpers/addNotificationsMessages.js.map +1 -1
- package/dist/esm/hooks/app-notifications/index.js.map +1 -0
- package/dist/esm/hooks/app-notifications/useAppNotifications.js.map +1 -0
- package/dist/esm/{legacy/hooks → hooks}/app-notifications/useAppNotificationsData.d.ts +1 -1
- package/dist/esm/{legacy/hooks → hooks}/app-notifications/useAppNotificationsData.js +2 -2
- package/dist/esm/hooks/app-notifications/useAppNotificationsData.js.map +1 -0
- package/dist/esm/{legacy/hooks → hooks}/app-notifications/useCountUnreadNotifications.js +4 -4
- package/dist/esm/hooks/app-notifications/useCountUnreadNotifications.js.map +1 -0
- package/dist/esm/{legacy/hooks → hooks}/app-notifications/useFetchAppNotifications.d.ts +1 -1
- package/dist/esm/{legacy/hooks → hooks}/app-notifications/useFetchAppNotifications.js +4 -4
- package/dist/esm/hooks/app-notifications/useFetchAppNotifications.js.map +1 -0
- package/dist/esm/{legacy/hooks → hooks}/app-notifications/useMarkNotificationAsRead.js +4 -4
- package/dist/esm/hooks/app-notifications/useMarkNotificationAsRead.js.map +1 -0
- package/dist/esm/hooks/auth/index.js.map +1 -0
- package/dist/esm/hooks/auth/useAuth.js.map +1 -0
- package/dist/{cjs/legacy → esm}/hooks/auth/useAuthData.d.ts +1 -1
- package/dist/esm/{legacy/hooks → hooks}/auth/useAuthData.js +2 -2
- package/dist/esm/hooks/auth/useAuthData.js.map +1 -0
- package/dist/esm/{legacy/hooks → hooks}/auth/useChangePassword.js +3 -3
- package/dist/esm/hooks/auth/useChangePassword.js.map +1 -0
- package/dist/esm/{legacy/hooks → hooks}/auth/useRequestNewAccessToken.js +3 -3
- package/dist/esm/hooks/auth/useRequestNewAccessToken.js.map +1 -0
- package/dist/esm/{legacy/hooks → hooks}/auth/useSignInWithEmailAndPassword.js +3 -3
- package/dist/esm/hooks/auth/useSignInWithEmailAndPassword.js.map +1 -0
- package/dist/esm/{legacy/hooks → hooks}/auth/useSignOut.js +3 -3
- package/dist/esm/hooks/auth/useSignOut.js.map +1 -0
- package/dist/esm/{legacy/hooks → hooks}/auth/useSignUpWithEmailAndPassword.js +3 -3
- package/dist/esm/hooks/auth/useSignUpWithEmailAndPassword.js.map +1 -0
- package/dist/esm/{legacy/hooks → hooks}/auth/useVerifyExternalUser.js +2 -2
- package/dist/esm/hooks/auth/useVerifyExternalUser.js.map +1 -0
- package/dist/esm/hooks/comments/useCommentSectionData.js +2 -2
- package/dist/esm/hooks/comments/useCommentSectionData.js.map +1 -1
- package/dist/esm/hooks/comments/useCommentVotes.js +2 -2
- package/dist/esm/hooks/comments/useCommentVotes.js.map +1 -1
- package/dist/esm/hooks/comments/useCreateComment.js +2 -2
- package/dist/esm/hooks/comments/useCreateComment.js.map +1 -1
- package/dist/esm/hooks/entities/useEntityData.js +2 -2
- package/dist/esm/hooks/entities/useEntityData.js.map +1 -1
- package/dist/esm/hooks/entities/useEntityVotes.js +2 -2
- package/dist/esm/hooks/entities/useEntityVotes.js.map +1 -1
- package/dist/esm/hooks/lists/useIsEntitySaved.js +2 -2
- package/dist/esm/hooks/lists/useIsEntitySaved.js.map +1 -1
- package/dist/esm/hooks/lists/useListsData.js +2 -2
- package/dist/esm/hooks/lists/useListsData.js.map +1 -1
- package/dist/esm/hooks/reports/useCreateReport.js +2 -2
- package/dist/esm/hooks/reports/useCreateReport.js.map +1 -1
- package/dist/esm/hooks/users/follows/useFetchFollow.js +2 -2
- package/dist/esm/hooks/users/follows/useFetchFollow.js.map +1 -1
- package/dist/esm/hooks/users/follows/useUnfollowUser.js +2 -2
- package/dist/esm/hooks/users/follows/useUnfollowUser.js.map +1 -1
- package/dist/esm/index.d.ts +4 -6
- package/dist/esm/index.js +7 -9
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/interfaces/models/AppNotification.d.ts +1 -1
- package/package.json +2 -4
- package/dist/cjs/context/replyke-store-context.d.ts +0 -13
- package/dist/cjs/context/replyke-store-context.js +0 -37
- package/dist/cjs/context/replyke-store-context.js.map +0 -1
- package/dist/cjs/hooks/app-notifications-redux/index.d.ts +0 -4
- package/dist/cjs/hooks/app-notifications-redux/index.js +0 -14
- package/dist/cjs/hooks/app-notifications-redux/index.js.map +0 -1
- package/dist/cjs/hooks/app-notifications-redux/useAppNotificationsActionsRedux.d.ts +0 -13
- package/dist/cjs/hooks/app-notifications-redux/useAppNotificationsActionsRedux.js +0 -266
- package/dist/cjs/hooks/app-notifications-redux/useAppNotificationsActionsRedux.js.map +0 -1
- package/dist/cjs/hooks/app-notifications-redux/useAppNotificationsDataRedux.d.ts +0 -21
- package/dist/cjs/hooks/app-notifications-redux/useAppNotificationsDataRedux.js +0 -108
- package/dist/cjs/hooks/app-notifications-redux/useAppNotificationsDataRedux.js.map +0 -1
- package/dist/cjs/hooks/app-notifications-redux/useAppNotificationsRedux.d.ts +0 -7
- package/dist/cjs/hooks/app-notifications-redux/useAppNotificationsRedux.js +0 -38
- package/dist/cjs/hooks/app-notifications-redux/useAppNotificationsRedux.js.map +0 -1
- package/dist/cjs/hooks/auth-redux/index.d.ts +0 -2
- package/dist/cjs/hooks/auth-redux/index.js +0 -11
- package/dist/cjs/hooks/auth-redux/index.js.map +0 -1
- package/dist/cjs/hooks/auth-redux/useAuthRedux.d.ts +0 -32
- package/dist/cjs/hooks/auth-redux/useAuthRedux.js +0 -180
- package/dist/cjs/hooks/auth-redux/useAuthRedux.js.map +0 -1
- package/dist/cjs/hooks/auth-redux/useUserRedux.d.ts +0 -6
- package/dist/cjs/hooks/auth-redux/useUserRedux.js +0 -20
- package/dist/cjs/hooks/auth-redux/useUserRedux.js.map +0 -1
- package/dist/cjs/legacy/context/app-notifications-context.js.map +0 -1
- package/dist/cjs/legacy/context/auth-context.js.map +0 -1
- package/dist/cjs/legacy/hooks/app-notifications/index.js.map +0 -1
- package/dist/cjs/legacy/hooks/app-notifications/useAppNotifications.js.map +0 -1
- package/dist/cjs/legacy/hooks/app-notifications/useAppNotificationsData.js.map +0 -1
- package/dist/cjs/legacy/hooks/app-notifications/useCountUnreadNotifications.js.map +0 -1
- package/dist/cjs/legacy/hooks/app-notifications/useFetchAppNotifications.js.map +0 -1
- package/dist/cjs/legacy/hooks/app-notifications/useMarkNotificationAsRead.js.map +0 -1
- package/dist/cjs/legacy/hooks/auth/index.js.map +0 -1
- package/dist/cjs/legacy/hooks/auth/useAuth.js.map +0 -1
- package/dist/cjs/legacy/hooks/auth/useAuthData.js.map +0 -1
- package/dist/cjs/legacy/hooks/auth/useChangePassword.js.map +0 -1
- package/dist/cjs/legacy/hooks/auth/useRequestNewAccessToken.js.map +0 -1
- package/dist/cjs/legacy/hooks/auth/useSignInWithEmailAndPassword.js.map +0 -1
- package/dist/cjs/legacy/hooks/auth/useSignOut.js.map +0 -1
- package/dist/cjs/legacy/hooks/auth/useSignUpWithEmailAndPassword.js.map +0 -1
- package/dist/cjs/legacy/hooks/auth/useVerifyExternalUser.js.map +0 -1
- package/dist/cjs/store/api/appNotificationsApi.d.ts +0 -2021
- package/dist/cjs/store/api/appNotificationsApi.js +0 -213
- package/dist/cjs/store/api/appNotificationsApi.js.map +0 -1
- package/dist/cjs/store/api/baseApi.d.ts +0 -1
- package/dist/cjs/store/api/baseApi.js +0 -42
- package/dist/cjs/store/api/baseApi.js.map +0 -1
- package/dist/cjs/store/api/index.d.ts +0 -2
- package/dist/cjs/store/api/index.js +0 -27
- package/dist/cjs/store/api/index.js.map +0 -1
- package/dist/cjs/store/index.d.ts +0 -15
- package/dist/cjs/store/index.js +0 -72
- package/dist/cjs/store/index.js.map +0 -1
- package/dist/cjs/store/middleware.d.ts +0 -4
- package/dist/cjs/store/middleware.js +0 -42
- package/dist/cjs/store/middleware.js.map +0 -1
- package/dist/cjs/store/rootReducer.d.ts +0 -10
- package/dist/cjs/store/rootReducer.js +0 -20
- package/dist/cjs/store/rootReducer.js.map +0 -1
- package/dist/cjs/store/slices/appNotificationsSlice.d.ts +0 -58
- package/dist/cjs/store/slices/appNotificationsSlice.js +0 -135
- package/dist/cjs/store/slices/appNotificationsSlice.js.map +0 -1
- package/dist/cjs/store/slices/authSlice.d.ts +0 -24
- package/dist/cjs/store/slices/authSlice.js +0 -79
- package/dist/cjs/store/slices/authSlice.js.map +0 -1
- package/dist/cjs/store/slices/authThunks.d.ts +0 -40
- package/dist/cjs/store/slices/authThunks.js +0 -357
- package/dist/cjs/store/slices/authThunks.js.map +0 -1
- package/dist/cjs/store/slices/index.d.ts +0 -1
- package/dist/cjs/store/slices/index.js +0 -23
- package/dist/cjs/store/slices/index.js.map +0 -1
- package/dist/cjs/store/types/index.d.ts +0 -8
- package/dist/cjs/store/types/index.js +0 -3
- package/dist/cjs/store/types/index.js.map +0 -1
- package/dist/esm/context/replyke-store-context.d.ts +0 -13
- package/dist/esm/context/replyke-store-context.js +0 -33
- package/dist/esm/context/replyke-store-context.js.map +0 -1
- package/dist/esm/hooks/app-notifications-redux/index.d.ts +0 -4
- package/dist/esm/hooks/app-notifications-redux/index.js +0 -5
- package/dist/esm/hooks/app-notifications-redux/index.js.map +0 -1
- package/dist/esm/hooks/app-notifications-redux/useAppNotificationsActionsRedux.d.ts +0 -13
- package/dist/esm/hooks/app-notifications-redux/useAppNotificationsActionsRedux.js +0 -260
- package/dist/esm/hooks/app-notifications-redux/useAppNotificationsActionsRedux.js.map +0 -1
- package/dist/esm/hooks/app-notifications-redux/useAppNotificationsDataRedux.d.ts +0 -21
- package/dist/esm/hooks/app-notifications-redux/useAppNotificationsDataRedux.js +0 -103
- package/dist/esm/hooks/app-notifications-redux/useAppNotificationsDataRedux.js.map +0 -1
- package/dist/esm/hooks/app-notifications-redux/useAppNotificationsRedux.d.ts +0 -7
- package/dist/esm/hooks/app-notifications-redux/useAppNotificationsRedux.js +0 -35
- package/dist/esm/hooks/app-notifications-redux/useAppNotificationsRedux.js.map +0 -1
- package/dist/esm/hooks/auth-redux/index.d.ts +0 -2
- package/dist/esm/hooks/auth-redux/index.js +0 -3
- package/dist/esm/hooks/auth-redux/index.js.map +0 -1
- package/dist/esm/hooks/auth-redux/useAuthRedux.d.ts +0 -32
- package/dist/esm/hooks/auth-redux/useAuthRedux.js +0 -174
- package/dist/esm/hooks/auth-redux/useAuthRedux.js.map +0 -1
- package/dist/esm/hooks/auth-redux/useUserRedux.d.ts +0 -6
- package/dist/esm/hooks/auth-redux/useUserRedux.js +0 -17
- package/dist/esm/hooks/auth-redux/useUserRedux.js.map +0 -1
- package/dist/esm/legacy/context/app-notifications-context.js.map +0 -1
- package/dist/esm/legacy/context/auth-context.js.map +0 -1
- package/dist/esm/legacy/hooks/app-notifications/index.js.map +0 -1
- package/dist/esm/legacy/hooks/app-notifications/useAppNotifications.js.map +0 -1
- package/dist/esm/legacy/hooks/app-notifications/useAppNotificationsData.js.map +0 -1
- package/dist/esm/legacy/hooks/app-notifications/useCountUnreadNotifications.js.map +0 -1
- package/dist/esm/legacy/hooks/app-notifications/useFetchAppNotifications.js.map +0 -1
- package/dist/esm/legacy/hooks/app-notifications/useMarkNotificationAsRead.js.map +0 -1
- package/dist/esm/legacy/hooks/auth/index.js.map +0 -1
- package/dist/esm/legacy/hooks/auth/useAuth.js.map +0 -1
- package/dist/esm/legacy/hooks/auth/useAuthData.js.map +0 -1
- package/dist/esm/legacy/hooks/auth/useChangePassword.js.map +0 -1
- package/dist/esm/legacy/hooks/auth/useRequestNewAccessToken.js.map +0 -1
- package/dist/esm/legacy/hooks/auth/useSignInWithEmailAndPassword.js.map +0 -1
- package/dist/esm/legacy/hooks/auth/useSignOut.js.map +0 -1
- package/dist/esm/legacy/hooks/auth/useSignUpWithEmailAndPassword.js.map +0 -1
- package/dist/esm/legacy/hooks/auth/useVerifyExternalUser.js.map +0 -1
- package/dist/esm/store/api/appNotificationsApi.d.ts +0 -2021
- package/dist/esm/store/api/appNotificationsApi.js +0 -210
- package/dist/esm/store/api/appNotificationsApi.js.map +0 -1
- package/dist/esm/store/api/baseApi.d.ts +0 -1
- package/dist/esm/store/api/baseApi.js +0 -39
- package/dist/esm/store/api/baseApi.js.map +0 -1
- package/dist/esm/store/api/index.d.ts +0 -2
- package/dist/esm/store/api/index.js +0 -9
- package/dist/esm/store/api/index.js.map +0 -1
- package/dist/esm/store/index.d.ts +0 -15
- package/dist/esm/store/index.js +0 -55
- package/dist/esm/store/index.js.map +0 -1
- package/dist/esm/store/middleware.d.ts +0 -4
- package/dist/esm/store/middleware.js +0 -37
- package/dist/esm/store/middleware.js.map +0 -1
- package/dist/esm/store/rootReducer.d.ts +0 -10
- package/dist/esm/store/rootReducer.js +0 -14
- package/dist/esm/store/rootReducer.js.map +0 -1
- package/dist/esm/store/slices/appNotificationsSlice.d.ts +0 -58
- package/dist/esm/store/slices/appNotificationsSlice.js +0 -124
- package/dist/esm/store/slices/appNotificationsSlice.js.map +0 -1
- package/dist/esm/store/slices/authSlice.d.ts +0 -24
- package/dist/esm/store/slices/authSlice.js +0 -69
- package/dist/esm/store/slices/authSlice.js.map +0 -1
- package/dist/esm/store/slices/authThunks.d.ts +0 -40
- package/dist/esm/store/slices/authThunks.js +0 -351
- package/dist/esm/store/slices/authThunks.js.map +0 -1
- package/dist/esm/store/slices/index.d.ts +0 -1
- package/dist/esm/store/slices/index.js +0 -7
- package/dist/esm/store/slices/index.js.map +0 -1
- package/dist/esm/store/types/index.d.ts +0 -8
- package/dist/esm/store/types/index.js +0 -2
- package/dist/esm/store/types/index.js.map +0 -1
- /package/dist/cjs/{legacy/context → context}/app-notifications-context.d.ts +0 -0
- /package/dist/cjs/{legacy/context → context}/app-notifications-context.js +0 -0
- /package/dist/cjs/{legacy/context → context}/auth-context.d.ts +0 -0
- /package/dist/cjs/{legacy/hooks → hooks}/app-notifications/index.d.ts +0 -0
- /package/dist/cjs/{legacy/hooks → hooks}/app-notifications/index.js +0 -0
- /package/dist/cjs/{legacy/hooks → hooks}/app-notifications/useAppNotifications.d.ts +0 -0
- /package/dist/cjs/{legacy/hooks → hooks}/app-notifications/useAppNotifications.js +0 -0
- /package/dist/cjs/{legacy/hooks → hooks}/app-notifications/useCountUnreadNotifications.d.ts +0 -0
- /package/dist/cjs/{legacy/hooks → hooks}/app-notifications/useMarkNotificationAsRead.d.ts +0 -0
- /package/dist/cjs/{legacy/hooks → hooks}/auth/index.d.ts +0 -0
- /package/dist/cjs/{legacy/hooks → hooks}/auth/index.js +0 -0
- /package/dist/cjs/{legacy/hooks → hooks}/auth/useAuth.d.ts +0 -0
- /package/dist/cjs/{legacy/hooks → hooks}/auth/useAuth.js +0 -0
- /package/dist/cjs/{legacy/hooks → hooks}/auth/useChangePassword.d.ts +0 -0
- /package/dist/cjs/{legacy/hooks → hooks}/auth/useRequestNewAccessToken.d.ts +0 -0
- /package/dist/cjs/{legacy/hooks → hooks}/auth/useSignInWithEmailAndPassword.d.ts +0 -0
- /package/dist/cjs/{legacy/hooks → hooks}/auth/useSignOut.d.ts +0 -0
- /package/dist/cjs/{legacy/hooks → hooks}/auth/useSignUpWithEmailAndPassword.d.ts +0 -0
- /package/dist/cjs/{legacy/hooks → hooks}/auth/useVerifyExternalUser.d.ts +0 -0
- /package/dist/esm/{legacy/context → context}/app-notifications-context.d.ts +0 -0
- /package/dist/esm/{legacy/context → context}/app-notifications-context.js +0 -0
- /package/dist/esm/{legacy/context → context}/auth-context.d.ts +0 -0
- /package/dist/esm/{legacy/hooks → hooks}/app-notifications/index.d.ts +0 -0
- /package/dist/esm/{legacy/hooks → hooks}/app-notifications/index.js +0 -0
- /package/dist/esm/{legacy/hooks → hooks}/app-notifications/useAppNotifications.d.ts +0 -0
- /package/dist/esm/{legacy/hooks → hooks}/app-notifications/useAppNotifications.js +0 -0
- /package/dist/esm/{legacy/hooks → hooks}/app-notifications/useCountUnreadNotifications.d.ts +0 -0
- /package/dist/esm/{legacy/hooks → hooks}/app-notifications/useMarkNotificationAsRead.d.ts +0 -0
- /package/dist/esm/{legacy/hooks → hooks}/auth/index.d.ts +0 -0
- /package/dist/esm/{legacy/hooks → hooks}/auth/index.js +0 -0
- /package/dist/esm/{legacy/hooks → hooks}/auth/useAuth.d.ts +0 -0
- /package/dist/esm/{legacy/hooks → hooks}/auth/useAuth.js +0 -0
- /package/dist/esm/{legacy/hooks → hooks}/auth/useChangePassword.d.ts +0 -0
- /package/dist/esm/{legacy/hooks → hooks}/auth/useRequestNewAccessToken.d.ts +0 -0
- /package/dist/esm/{legacy/hooks → hooks}/auth/useSignInWithEmailAndPassword.d.ts +0 -0
- /package/dist/esm/{legacy/hooks → hooks}/auth/useSignOut.d.ts +0 -0
- /package/dist/esm/{legacy/hooks → hooks}/auth/useSignUpWithEmailAndPassword.d.ts +0 -0
- /package/dist/esm/{legacy/hooks → hooks}/auth/useVerifyExternalUser.d.ts +0 -0
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"authThunks.js","sourceRoot":"","sources":["../../../../src/store/slices/authThunks.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;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CAAC,SAAS;wBACzB,OAAO,EAAE,IAAI,CAAC,WAAW;qBAC1B,CAAC,CAAC,EAAA;;gBAHH,SAGG,CAAC;;;gBAGN,0EAA0E;gBAC1E,UAAU,CAAC;;;oCACT,qBAAM,QAAQ,CAAC,IAAA,kCAA0B,EAAC,EAAE,SAAS,EAAE,IAAI,CAAC,SAAS,EAAE,CAAC,CAAC,EAAA;;gCAAzE,SAAyE,CAAC;gCAC1E,QAAQ,CAAC,IAAA,6BAAiB,EAAC,KAAK,CAAC,CAAC,CAAC;gCACnC,QAAQ,CAAC,IAAA,0BAAc,EAAC,IAAI,CAAC,CAAC,CAAC;;;;qBAChC,EAAE,CAAC,CAAC,CAAC;;;;gBAGN,QAAQ,CAAC,IAAA,6BAAiB,EAAC,KAAK,CAAC,CAAC,CAAC;gBACnC,QAAQ,CAAC,IAAA,0BAAc,EAAC,IAAI,CAAC,CAAC,CAAC;gBAC/B,IAAA,yBAAW,EAAC,OAAK,EAAE,6BAA6B,CAAC,CAAC;;;;;KAErD,CACF,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from "./appNotificationsSlice";
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
-
};
|
|
16
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
// Export app notifications slice
|
|
18
|
-
__exportStar(require("./appNotificationsSlice"), exports);
|
|
19
|
-
// Future slice exports will go here:
|
|
20
|
-
// export * from "./entitiesSlice";
|
|
21
|
-
// export * from "./listsSlice";
|
|
22
|
-
// export * from "./commentsSlice";
|
|
23
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/store/slices/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,iCAAiC;AACjC,0DAAwC;AAExC,qCAAqC;AACrC,mCAAmC;AACnC,gCAAgC;AAChC,mCAAmC"}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import type { Action, ThunkAction } from "@reduxjs/toolkit";
|
|
2
|
-
import type { RootState } from "../rootReducer";
|
|
3
|
-
import type { store } from "../index";
|
|
4
|
-
export type AppStore = typeof store;
|
|
5
|
-
export type { RootState };
|
|
6
|
-
export type AppDispatch = AppStore['dispatch'];
|
|
7
|
-
export type AppThunk<ReturnType = void> = ThunkAction<ReturnType, RootState, unknown, Action<string>>;
|
|
8
|
-
export type TypedSelector<T> = (state: RootState) => T;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/store/types/index.ts"],"names":[],"mappings":""}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import type { ReactNode } from "react";
|
|
3
|
-
export interface ReplykeStoreProviderProps {
|
|
4
|
-
children: ReactNode;
|
|
5
|
-
projectId: string;
|
|
6
|
-
signedToken?: string | null;
|
|
7
|
-
}
|
|
8
|
-
/**
|
|
9
|
-
* Redux store provider for Replyke
|
|
10
|
-
* This component provides the Redux store and initializes auth state
|
|
11
|
-
*/
|
|
12
|
-
export declare const ReplykeStoreProvider: React.FC<ReplykeStoreProviderProps>;
|
|
13
|
-
export default ReplykeStoreProvider;
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
import { Fragment as _Fragment, jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
import { useEffect } from "react";
|
|
3
|
-
import { Provider, useDispatch } from "react-redux";
|
|
4
|
-
import { replykeStore } from "../store";
|
|
5
|
-
import { initializeAuthThunk } from "../store/slices/authThunks";
|
|
6
|
-
/**
|
|
7
|
-
* Component that initializes auth state in Redux
|
|
8
|
-
* Must be inside the Redux Provider to dispatch actions
|
|
9
|
-
*/
|
|
10
|
-
var AuthInitializer = function (_a) {
|
|
11
|
-
var children = _a.children, projectId = _a.projectId, signedToken = _a.signedToken;
|
|
12
|
-
var dispatch = useDispatch();
|
|
13
|
-
useEffect(function () {
|
|
14
|
-
// Initialize auth with project and signed token
|
|
15
|
-
dispatch(initializeAuthThunk({
|
|
16
|
-
projectId: projectId,
|
|
17
|
-
signedToken: signedToken
|
|
18
|
-
}));
|
|
19
|
-
}, [dispatch, projectId, signedToken]);
|
|
20
|
-
return _jsx(_Fragment, { children: children });
|
|
21
|
-
};
|
|
22
|
-
/**
|
|
23
|
-
* Redux store provider for Replyke
|
|
24
|
-
* This component provides the Redux store and initializes auth state
|
|
25
|
-
*/
|
|
26
|
-
export var ReplykeStoreProvider = function (_a) {
|
|
27
|
-
var children = _a.children, projectId = _a.projectId, signedToken = _a.signedToken;
|
|
28
|
-
return (_jsx(Provider, { store: replykeStore, children: _jsx(AuthInitializer, { projectId: projectId, signedToken: signedToken, children: children }) }));
|
|
29
|
-
};
|
|
30
|
-
// Clean Redux-only architecture
|
|
31
|
-
// Always integrated with ReplykeProvider
|
|
32
|
-
export default ReplykeStoreProvider;
|
|
33
|
-
//# sourceMappingURL=replyke-store-context.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"replyke-store-context.js","sourceRoot":"","sources":["../../../src/context/replyke-store-context.tsx"],"names":[],"mappings":";AAAA,OAAc,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACzC,OAAO,EAAE,QAAQ,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AACpD,OAAO,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;AAGxC,OAAO,EAAE,mBAAmB,EAAE,MAAM,4BAA4B,CAAC;AAQjE;;;GAGG;AACH,IAAM,eAAe,GAIhB,UAAC,EAAoC;QAAlC,QAAQ,cAAA,EAAE,SAAS,eAAA,EAAE,WAAW,iBAAA;IACtC,IAAM,QAAQ,GAAG,WAAW,EAAe,CAAC;IAE5C,SAAS,CAAC;QACR,gDAAgD;QAChD,QAAQ,CAAC,mBAAmB,CAAC;YAC3B,SAAS,WAAA;YACT,WAAW,aAAA;SACZ,CAAC,CAAC,CAAC;IACN,CAAC,EAAE,CAAC,QAAQ,EAAE,SAAS,EAAE,WAAW,CAAC,CAAC,CAAC;IAEvC,OAAO,4BAAG,QAAQ,GAAI,CAAC;AACzB,CAAC,CAAC;AAEF;;;GAGG;AACH,MAAM,CAAC,IAAM,oBAAoB,GAAwC,UAAC,EAIzE;QAHC,QAAQ,cAAA,EACR,SAAS,eAAA,EACT,WAAW,iBAAA;IAEX,OAAO,CACL,KAAC,QAAQ,IAAC,KAAK,EAAE,YAAY,YAC3B,KAAC,eAAe,IAAC,SAAS,EAAE,SAAS,EAAE,WAAW,EAAE,WAAW,YAC5D,QAAQ,GACO,GACT,CACZ,CAAC;AACJ,CAAC,CAAC;AAEF,gCAAgC;AAChC,yCAAyC;AAEzC,eAAe,oBAAoB,CAAC"}
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
export { default as useAppNotificationsRedux } from "./useAppNotificationsRedux";
|
|
2
|
-
export { default as useAppNotificationsDataRedux } from "./useAppNotificationsDataRedux";
|
|
3
|
-
export { default as useAppNotificationsActionsRedux } from "./useAppNotificationsActionsRedux";
|
|
4
|
-
export type { UseAppNotificationsDataProps, UseAppNotificationsDataValues, } from "./useAppNotificationsDataRedux";
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
// Export Redux-powered app notifications hooks
|
|
2
|
-
export { default as useAppNotificationsRedux } from "./useAppNotificationsRedux";
|
|
3
|
-
export { default as useAppNotificationsDataRedux } from "./useAppNotificationsDataRedux";
|
|
4
|
-
export { default as useAppNotificationsActionsRedux } from "./useAppNotificationsActionsRedux";
|
|
5
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/hooks/app-notifications-redux/index.ts"],"names":[],"mappings":"AAAA,+CAA+C;AAC/C,OAAO,EAAE,OAAO,IAAI,wBAAwB,EAAE,MAAM,4BAA4B,CAAC;AACjF,OAAO,EAAE,OAAO,IAAI,4BAA4B,EAAE,MAAM,gCAAgC,CAAC;AACzF,OAAO,EAAE,OAAO,IAAI,+BAA+B,EAAE,MAAM,mCAAmC,CAAC"}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Hook that provides Redux-powered actions for app notifications
|
|
3
|
-
* Integrates RTK Query with Redux slice actions
|
|
4
|
-
*/
|
|
5
|
-
export declare function useAppNotificationsActionsRedux(): {
|
|
6
|
-
loadMore: () => void;
|
|
7
|
-
markNotificationAsRead: (notificationId: string) => Promise<void>;
|
|
8
|
-
markAllNotificationsAsRead: () => Promise<void>;
|
|
9
|
-
resetAppNotifications: () => Promise<void>;
|
|
10
|
-
fetchMoreNotifications: (pageToFetch: number) => Promise<void>;
|
|
11
|
-
updateUnreadCount: () => Promise<void>;
|
|
12
|
-
};
|
|
13
|
-
export default useAppNotificationsActionsRedux;
|
|
@@ -1,260 +0,0 @@
|
|
|
1
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
2
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
3
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
4
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
5
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
6
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
7
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
8
|
-
});
|
|
9
|
-
};
|
|
10
|
-
var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
11
|
-
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype);
|
|
12
|
-
return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
13
|
-
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
14
|
-
function step(op) {
|
|
15
|
-
if (f) throw new TypeError("Generator is already executing.");
|
|
16
|
-
while (g && (g = 0, op[0] && (_ = 0)), _) try {
|
|
17
|
-
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
18
|
-
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
19
|
-
switch (op[0]) {
|
|
20
|
-
case 0: case 1: t = op; break;
|
|
21
|
-
case 4: _.label++; return { value: op[1], done: false };
|
|
22
|
-
case 5: _.label++; y = op[1]; op = [0]; continue;
|
|
23
|
-
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
|
24
|
-
default:
|
|
25
|
-
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
|
26
|
-
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
|
27
|
-
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
|
28
|
-
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
|
29
|
-
if (t[2]) _.ops.pop();
|
|
30
|
-
_.trys.pop(); continue;
|
|
31
|
-
}
|
|
32
|
-
op = body.call(thisArg, _);
|
|
33
|
-
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
|
34
|
-
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
35
|
-
}
|
|
36
|
-
};
|
|
37
|
-
import { useCallback } from "react";
|
|
38
|
-
import { useDispatch, useSelector } from "react-redux";
|
|
39
|
-
import { loadMore as loadMoreAction, resetNotifications, setLoading, addNotifications, markAsReadLocally, markAllAsReadLocally, setUnreadCount, selectCurrentProjectId, selectAppNotificationsPage, selectAppNotificationsLimit, selectNotificationTemplates, } from "../../store/slices/appNotificationsSlice";
|
|
40
|
-
import { useLazyFetchAppNotificationsQuery, useMarkNotificationAsReadMutation, useMarkAllNotificationsAsReadMutation, useLazyCountUnreadNotificationsQuery, } from "../../store/api/appNotificationsApi";
|
|
41
|
-
import { handleError } from "../../utils/handleError";
|
|
42
|
-
import addNotificationsMessages from "../../helpers/addNotificationsMessages";
|
|
43
|
-
import useProject from "../projects/useProject";
|
|
44
|
-
import { useUserRedux } from "../auth-redux";
|
|
45
|
-
/**
|
|
46
|
-
* Hook that provides Redux-powered actions for app notifications
|
|
47
|
-
* Integrates RTK Query with Redux slice actions
|
|
48
|
-
*/
|
|
49
|
-
export function useAppNotificationsActionsRedux() {
|
|
50
|
-
var _this = this;
|
|
51
|
-
var dispatch = useDispatch();
|
|
52
|
-
// Get current state for actions
|
|
53
|
-
var projectIdFromSlice = useSelector(function (state) {
|
|
54
|
-
return selectCurrentProjectId(state);
|
|
55
|
-
});
|
|
56
|
-
var page = useSelector(function (state) {
|
|
57
|
-
return selectAppNotificationsPage(state);
|
|
58
|
-
});
|
|
59
|
-
var limit = useSelector(function (state) {
|
|
60
|
-
return selectAppNotificationsLimit(state);
|
|
61
|
-
});
|
|
62
|
-
var notificationTemplates = useSelector(function (state) {
|
|
63
|
-
return selectNotificationTemplates(state);
|
|
64
|
-
});
|
|
65
|
-
// Get project and user context (fallback to current hooks)
|
|
66
|
-
var projectIdFromHook = useProject().projectId;
|
|
67
|
-
var user = useUserRedux().user;
|
|
68
|
-
// Use project ID from slice if available, otherwise from hook
|
|
69
|
-
var projectId = projectIdFromSlice || projectIdFromHook;
|
|
70
|
-
// RTK Query hooks
|
|
71
|
-
var triggerFetchNotifications = useLazyFetchAppNotificationsQuery()[0];
|
|
72
|
-
var markNotificationAsReadMutation = useMarkNotificationAsReadMutation()[0];
|
|
73
|
-
var markAllNotificationsAsReadMutation = useMarkAllNotificationsAsReadMutation()[0];
|
|
74
|
-
var triggerCountUnread = useLazyCountUnreadNotificationsQuery()[0];
|
|
75
|
-
// Load more action
|
|
76
|
-
var loadMore = useCallback(function () {
|
|
77
|
-
dispatch(loadMoreAction());
|
|
78
|
-
}, [dispatch]);
|
|
79
|
-
// Mark notification as read action
|
|
80
|
-
var markNotificationAsRead = useCallback(function (notificationId) { return __awaiter(_this, void 0, void 0, function () {
|
|
81
|
-
var error_1;
|
|
82
|
-
return __generator(this, function (_a) {
|
|
83
|
-
switch (_a.label) {
|
|
84
|
-
case 0:
|
|
85
|
-
if (!projectId || !user) {
|
|
86
|
-
throw new Error("No project ID or authenticated user available");
|
|
87
|
-
}
|
|
88
|
-
_a.label = 1;
|
|
89
|
-
case 1:
|
|
90
|
-
_a.trys.push([1, 3, , 4]);
|
|
91
|
-
// Optimistic update
|
|
92
|
-
dispatch(markAsReadLocally(notificationId));
|
|
93
|
-
// Make API call
|
|
94
|
-
return [4 /*yield*/, markNotificationAsReadMutation({
|
|
95
|
-
projectId: projectId,
|
|
96
|
-
notificationId: notificationId,
|
|
97
|
-
}).unwrap()];
|
|
98
|
-
case 2:
|
|
99
|
-
// Make API call
|
|
100
|
-
_a.sent();
|
|
101
|
-
return [3 /*break*/, 4];
|
|
102
|
-
case 3:
|
|
103
|
-
error_1 = _a.sent();
|
|
104
|
-
handleError(error_1, "Failed to mark notification as read:");
|
|
105
|
-
throw error_1;
|
|
106
|
-
case 4: return [2 /*return*/];
|
|
107
|
-
}
|
|
108
|
-
});
|
|
109
|
-
}); }, [dispatch, projectId, user, markNotificationAsReadMutation]);
|
|
110
|
-
// Reset notifications action
|
|
111
|
-
var resetAppNotifications = useCallback(function () { return __awaiter(_this, void 0, void 0, function () {
|
|
112
|
-
var result, completeNotifications, error_2;
|
|
113
|
-
return __generator(this, function (_a) {
|
|
114
|
-
switch (_a.label) {
|
|
115
|
-
case 0:
|
|
116
|
-
if (!projectId || !user) {
|
|
117
|
-
throw new Error("No project ID or authenticated user available");
|
|
118
|
-
}
|
|
119
|
-
_a.label = 1;
|
|
120
|
-
case 1:
|
|
121
|
-
_a.trys.push([1, 3, , 4]);
|
|
122
|
-
dispatch(setLoading(true));
|
|
123
|
-
dispatch(resetNotifications());
|
|
124
|
-
return [4 /*yield*/, triggerFetchNotifications({
|
|
125
|
-
projectId: projectId,
|
|
126
|
-
page: 1,
|
|
127
|
-
limit: limit,
|
|
128
|
-
}).unwrap()];
|
|
129
|
-
case 2:
|
|
130
|
-
result = _a.sent();
|
|
131
|
-
if (result) {
|
|
132
|
-
completeNotifications = addNotificationsMessages(result, notificationTemplates);
|
|
133
|
-
dispatch(addNotifications({
|
|
134
|
-
notifications: completeNotifications,
|
|
135
|
-
isFirstPage: true,
|
|
136
|
-
}));
|
|
137
|
-
}
|
|
138
|
-
return [3 /*break*/, 4];
|
|
139
|
-
case 3:
|
|
140
|
-
error_2 = _a.sent();
|
|
141
|
-
handleError(error_2, "Failed to refresh notifications:");
|
|
142
|
-
throw error_2;
|
|
143
|
-
case 4: return [2 /*return*/];
|
|
144
|
-
}
|
|
145
|
-
});
|
|
146
|
-
}); }, [
|
|
147
|
-
dispatch,
|
|
148
|
-
projectId,
|
|
149
|
-
user,
|
|
150
|
-
triggerFetchNotifications,
|
|
151
|
-
limit,
|
|
152
|
-
notificationTemplates,
|
|
153
|
-
]);
|
|
154
|
-
// Fetch more notifications (internal action triggered by page changes)
|
|
155
|
-
var fetchMoreNotifications = useCallback(function (pageToFetch) { return __awaiter(_this, void 0, void 0, function () {
|
|
156
|
-
var result, completeNotifications, error_3;
|
|
157
|
-
return __generator(this, function (_a) {
|
|
158
|
-
switch (_a.label) {
|
|
159
|
-
case 0:
|
|
160
|
-
if (!projectId || !user)
|
|
161
|
-
return [2 /*return*/];
|
|
162
|
-
_a.label = 1;
|
|
163
|
-
case 1:
|
|
164
|
-
_a.trys.push([1, 3, 4, 5]);
|
|
165
|
-
dispatch(setLoading(true));
|
|
166
|
-
return [4 /*yield*/, triggerFetchNotifications({
|
|
167
|
-
projectId: projectId,
|
|
168
|
-
page: pageToFetch,
|
|
169
|
-
limit: limit,
|
|
170
|
-
}).unwrap()];
|
|
171
|
-
case 2:
|
|
172
|
-
result = _a.sent();
|
|
173
|
-
if (result) {
|
|
174
|
-
completeNotifications = addNotificationsMessages(result, notificationTemplates);
|
|
175
|
-
dispatch(addNotifications({ notifications: completeNotifications }));
|
|
176
|
-
}
|
|
177
|
-
return [3 /*break*/, 5];
|
|
178
|
-
case 3:
|
|
179
|
-
error_3 = _a.sent();
|
|
180
|
-
handleError(error_3, "Loading more app notifications failed:");
|
|
181
|
-
return [3 /*break*/, 5];
|
|
182
|
-
case 4:
|
|
183
|
-
dispatch(setLoading(false));
|
|
184
|
-
return [7 /*endfinally*/];
|
|
185
|
-
case 5: return [2 /*return*/];
|
|
186
|
-
}
|
|
187
|
-
});
|
|
188
|
-
}); }, [
|
|
189
|
-
dispatch,
|
|
190
|
-
projectId,
|
|
191
|
-
user,
|
|
192
|
-
triggerFetchNotifications,
|
|
193
|
-
limit,
|
|
194
|
-
notificationTemplates,
|
|
195
|
-
]);
|
|
196
|
-
// Update unread count
|
|
197
|
-
var updateUnreadCount = useCallback(function () { return __awaiter(_this, void 0, void 0, function () {
|
|
198
|
-
var count, error_4;
|
|
199
|
-
return __generator(this, function (_a) {
|
|
200
|
-
switch (_a.label) {
|
|
201
|
-
case 0:
|
|
202
|
-
if (!projectId || !user)
|
|
203
|
-
return [2 /*return*/];
|
|
204
|
-
_a.label = 1;
|
|
205
|
-
case 1:
|
|
206
|
-
_a.trys.push([1, 3, , 4]);
|
|
207
|
-
return [4 /*yield*/, triggerCountUnread({ projectId: projectId }).unwrap()];
|
|
208
|
-
case 2:
|
|
209
|
-
count = _a.sent();
|
|
210
|
-
if (typeof count === "number") {
|
|
211
|
-
dispatch(setUnreadCount(count));
|
|
212
|
-
}
|
|
213
|
-
return [3 /*break*/, 4];
|
|
214
|
-
case 3:
|
|
215
|
-
error_4 = _a.sent();
|
|
216
|
-
handleError(error_4, "Failed to fetch unread count:");
|
|
217
|
-
return [3 /*break*/, 4];
|
|
218
|
-
case 4: return [2 /*return*/];
|
|
219
|
-
}
|
|
220
|
-
});
|
|
221
|
-
}); }, [dispatch, projectId, user, triggerCountUnread]);
|
|
222
|
-
// Mark all notifications as read action
|
|
223
|
-
var markAllNotificationsAsRead = useCallback(function () { return __awaiter(_this, void 0, void 0, function () {
|
|
224
|
-
var error_5;
|
|
225
|
-
return __generator(this, function (_a) {
|
|
226
|
-
switch (_a.label) {
|
|
227
|
-
case 0:
|
|
228
|
-
if (!projectId || !user) {
|
|
229
|
-
throw new Error("No project ID or authenticated user available");
|
|
230
|
-
}
|
|
231
|
-
_a.label = 1;
|
|
232
|
-
case 1:
|
|
233
|
-
_a.trys.push([1, 3, , 4]);
|
|
234
|
-
// Optimistic update
|
|
235
|
-
dispatch(markAllAsReadLocally());
|
|
236
|
-
// Make API call
|
|
237
|
-
return [4 /*yield*/, markAllNotificationsAsReadMutation({ projectId: projectId }).unwrap()];
|
|
238
|
-
case 2:
|
|
239
|
-
// Make API call
|
|
240
|
-
_a.sent();
|
|
241
|
-
return [3 /*break*/, 4];
|
|
242
|
-
case 3:
|
|
243
|
-
error_5 = _a.sent();
|
|
244
|
-
handleError(error_5, "Failed to mark all notifications as read:");
|
|
245
|
-
throw error_5;
|
|
246
|
-
case 4: return [2 /*return*/];
|
|
247
|
-
}
|
|
248
|
-
});
|
|
249
|
-
}); }, [dispatch, projectId, user, markAllNotificationsAsReadMutation]);
|
|
250
|
-
return {
|
|
251
|
-
loadMore: loadMore,
|
|
252
|
-
markNotificationAsRead: markNotificationAsRead,
|
|
253
|
-
markAllNotificationsAsRead: markAllNotificationsAsRead,
|
|
254
|
-
resetAppNotifications: resetAppNotifications,
|
|
255
|
-
fetchMoreNotifications: fetchMoreNotifications, // Internal action
|
|
256
|
-
updateUnreadCount: updateUnreadCount,
|
|
257
|
-
};
|
|
258
|
-
}
|
|
259
|
-
export default useAppNotificationsActionsRedux;
|
|
260
|
-
//# sourceMappingURL=useAppNotificationsActionsRedux.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"useAppNotificationsActionsRedux.js","sourceRoot":"","sources":["../../../../src/hooks/app-notifications-redux/useAppNotificationsActionsRedux.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,OAAO,CAAC;AACpC,OAAO,EAAE,WAAW,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAEvD,OAAO,EACL,QAAQ,IAAI,cAAc,EAC1B,kBAAkB,EAClB,UAAU,EACV,gBAAgB,EAChB,iBAAiB,EACjB,oBAAoB,EACpB,cAAc,EACd,sBAAsB,EACtB,0BAA0B,EAC1B,2BAA2B,EAC3B,2BAA2B,GAC5B,MAAM,0CAA0C,CAAC;AAClD,OAAO,EACL,iCAAiC,EACjC,iCAAiC,EACjC,qCAAqC,EACrC,oCAAoC,GACrC,MAAM,qCAAqC,CAAC;AAC7C,OAAO,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AACtD,OAAO,wBAAwB,MAAM,wCAAwC,CAAC;AAC9E,OAAO,UAAU,MAAM,wBAAwB,CA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;wBAC9B,QAAQ,CAAC,cAAc,CAAC,KAAK,CAAC,CAAC,CAAC;oBAClC,CAAC;;;;oBAED,WAAW,CAAC,OAAK,EAAE,+BAA+B,CAAC,CAAC;;;;;SAEvD,EAAE,CAAC,QAAQ,EAAE,SAAS,EAAE,IAAI,EAAE,kBAAkB,CAAC,CAAC,CAAC;IAEpD,wCAAwC;IACxC,IAAM,0BAA0B,GAAG,WAAW,CAAC;;;;;oBAC7C,IAAI,CAAC,SAAS,IAAI,CAAC,IAAI,EAAE,CAAC;wBACxB,MAAM,IAAI,KAAK,CAAC,+CAA+C,CAAC,CAAC;oBACnE,CAAC;;;;oBAGC,oBAAoB;oBACpB,QAAQ,CAAC,oBAAoB,EAAE,CAAC,CAAC;oBAEjC,gBAAgB;oBAChB,qBAAM,kCAAkC,CAAC,EAAE,SAAS,WAAA,EAAE,CAAC,CAAC,MAAM,EAAE,EAAA;;oBADhE,gBAAgB;oBAChB,SAAgE,CAAC;;;;oBAEjE,WAAW,CAAC,OAAK,EAAE,2CAA2C,CAAC,CAAC;oBAChE,MAAM,OAAK,CAAC;;;;SAEf,EAAE,CAAC,QAAQ,EAAE,SAAS,EAAE,IAAI,EAAE,kCAAkC,CAAC,CAAC,CAAC;IAEpE,OAAO;QACL,QAAQ,UAAA;QACR,sBAAsB,wBAAA;QACtB,0BAA0B,4BAAA;QAC1B,qBAAqB,uBAAA;QACrB,sBAAsB,wBAAA,EAAE,kBAAkB;QAC1C,iBAAiB,mBAAA;KAClB,CAAC;AACJ,CAAC;AAED,eAAe,+BAA+B,CAAC"}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { NotificationTemplates, UnifiedAppNotification } from "../../interfaces/models/AppNotification";
|
|
2
|
-
export interface UseAppNotificationsDataProps {
|
|
3
|
-
limit?: number;
|
|
4
|
-
notificationTemplates?: Partial<NotificationTemplates>;
|
|
5
|
-
}
|
|
6
|
-
export interface UseAppNotificationsDataValues {
|
|
7
|
-
appNotifications: UnifiedAppNotification[];
|
|
8
|
-
unreadAppNotificationsCount: number;
|
|
9
|
-
loading: boolean;
|
|
10
|
-
hasMore: boolean;
|
|
11
|
-
loadMore: () => void;
|
|
12
|
-
markNotificationAsRead: (notificationId: string) => Promise<void>;
|
|
13
|
-
markAllNotificationsAsRead: () => Promise<void>;
|
|
14
|
-
resetAppNotifications: () => Promise<void>;
|
|
15
|
-
}
|
|
16
|
-
/**
|
|
17
|
-
* Redux-powered hook that provides the exact same interface as useAppNotificationsData()
|
|
18
|
-
* This is a drop-in replacement for the Context-based hook
|
|
19
|
-
*/
|
|
20
|
-
declare function useAppNotificationsDataRedux({ limit, notificationTemplates, }?: UseAppNotificationsDataProps): UseAppNotificationsDataValues;
|
|
21
|
-
export default useAppNotificationsDataRedux;
|
|
@@ -1,103 +0,0 @@
|
|
|
1
|
-
import { useEffect, useMemo } from "react";
|
|
2
|
-
import { useDispatch, useSelector } from "react-redux";
|
|
3
|
-
import { setProjectContext, setLimit, setNotificationTemplates, selectAppNotifications, selectUnreadCount, selectAppNotificationsLoading, selectAppNotificationsHasMore, selectAppNotificationsPage, selectCurrentProjectId, selectNotificationTemplates, } from "../../store/slices/appNotificationsSlice";
|
|
4
|
-
import { useAppNotificationsActionsRedux } from "./useAppNotificationsActionsRedux";
|
|
5
|
-
import useProject from "../projects/useProject";
|
|
6
|
-
import { useUserRedux } from "../auth-redux";
|
|
7
|
-
/**
|
|
8
|
-
* Redux-powered hook that provides the exact same interface as useAppNotificationsData()
|
|
9
|
-
* This is a drop-in replacement for the Context-based hook
|
|
10
|
-
*/
|
|
11
|
-
function useAppNotificationsDataRedux(_a) {
|
|
12
|
-
var _b = _a === void 0 ? {} : _a, _c = _b.limit, limit = _c === void 0 ? 10 : _c, notificationTemplates = _b.notificationTemplates;
|
|
13
|
-
var dispatch = useDispatch();
|
|
14
|
-
// Get external context
|
|
15
|
-
var projectId = useProject().projectId;
|
|
16
|
-
var user = useUserRedux().user;
|
|
17
|
-
// Get Redux state
|
|
18
|
-
var appNotifications = useSelector(function (state) {
|
|
19
|
-
return selectAppNotifications(state);
|
|
20
|
-
});
|
|
21
|
-
var unreadAppNotificationsCount = useSelector(function (state) {
|
|
22
|
-
return selectUnreadCount(state);
|
|
23
|
-
});
|
|
24
|
-
var loading = useSelector(function (state) {
|
|
25
|
-
return selectAppNotificationsLoading(state);
|
|
26
|
-
});
|
|
27
|
-
var hasMore = useSelector(function (state) {
|
|
28
|
-
return selectAppNotificationsHasMore(state);
|
|
29
|
-
});
|
|
30
|
-
var currentPage = useSelector(function (state) {
|
|
31
|
-
return selectAppNotificationsPage(state);
|
|
32
|
-
});
|
|
33
|
-
var currentProjectId = useSelector(function (state) {
|
|
34
|
-
return selectCurrentProjectId(state);
|
|
35
|
-
});
|
|
36
|
-
// Get actions
|
|
37
|
-
var _d = useAppNotificationsActionsRedux(), loadMore = _d.loadMore, markNotificationAsRead = _d.markNotificationAsRead, markAllNotificationsAsRead = _d.markAllNotificationsAsRead, resetAppNotifications = _d.resetAppNotifications, fetchMoreNotifications = _d.fetchMoreNotifications, updateUnreadCount = _d.updateUnreadCount;
|
|
38
|
-
// Update Redux state when props change
|
|
39
|
-
useEffect(function () {
|
|
40
|
-
if (projectId && projectId !== currentProjectId) {
|
|
41
|
-
dispatch(setProjectContext(projectId));
|
|
42
|
-
}
|
|
43
|
-
}, [dispatch, projectId, currentProjectId]);
|
|
44
|
-
useEffect(function () {
|
|
45
|
-
dispatch(setLimit(limit));
|
|
46
|
-
}, [dispatch, limit]);
|
|
47
|
-
// Prevent infinite re-renders by comparing current vs new templates
|
|
48
|
-
var currentTemplates = useSelector(function (state) {
|
|
49
|
-
return selectNotificationTemplates(state);
|
|
50
|
-
});
|
|
51
|
-
var templatesChanged = useMemo(function () {
|
|
52
|
-
// If no templates provided, skip comparison
|
|
53
|
-
if (!notificationTemplates)
|
|
54
|
-
return false;
|
|
55
|
-
// Deep comparison using JSON stringify
|
|
56
|
-
return (JSON.stringify(currentTemplates) !== JSON.stringify(notificationTemplates));
|
|
57
|
-
}, [currentTemplates, notificationTemplates]);
|
|
58
|
-
useEffect(function () {
|
|
59
|
-
if (notificationTemplates && templatesChanged) {
|
|
60
|
-
dispatch(setNotificationTemplates(notificationTemplates));
|
|
61
|
-
}
|
|
62
|
-
}, [dispatch, notificationTemplates, templatesChanged]);
|
|
63
|
-
// Fetch unread count on mount and when dependencies change
|
|
64
|
-
useEffect(function () {
|
|
65
|
-
if (projectId && user) {
|
|
66
|
-
updateUnreadCount();
|
|
67
|
-
}
|
|
68
|
-
}, [updateUnreadCount, projectId, user]);
|
|
69
|
-
// Reset and fetch initial notifications when dependencies change
|
|
70
|
-
useEffect(function () {
|
|
71
|
-
if (projectId && user) {
|
|
72
|
-
resetAppNotifications();
|
|
73
|
-
}
|
|
74
|
-
}, [resetAppNotifications, projectId, user]);
|
|
75
|
-
// Handle page changes (load more notifications)
|
|
76
|
-
useEffect(function () {
|
|
77
|
-
if (currentPage > 1 && projectId && user) {
|
|
78
|
-
fetchMoreNotifications(currentPage);
|
|
79
|
-
}
|
|
80
|
-
}, [currentPage, fetchMoreNotifications, projectId, user]);
|
|
81
|
-
// Return the same interface as the original hook
|
|
82
|
-
return useMemo(function () { return ({
|
|
83
|
-
appNotifications: appNotifications,
|
|
84
|
-
unreadAppNotificationsCount: unreadAppNotificationsCount,
|
|
85
|
-
loading: loading,
|
|
86
|
-
hasMore: hasMore,
|
|
87
|
-
loadMore: loadMore,
|
|
88
|
-
markNotificationAsRead: markNotificationAsRead,
|
|
89
|
-
markAllNotificationsAsRead: markAllNotificationsAsRead,
|
|
90
|
-
resetAppNotifications: resetAppNotifications,
|
|
91
|
-
}); }, [
|
|
92
|
-
appNotifications,
|
|
93
|
-
unreadAppNotificationsCount,
|
|
94
|
-
loading,
|
|
95
|
-
hasMore,
|
|
96
|
-
loadMore,
|
|
97
|
-
markNotificationAsRead,
|
|
98
|
-
markAllNotificationsAsRead,
|
|
99
|
-
resetAppNotifications,
|
|
100
|
-
]);
|
|
101
|
-
}
|
|
102
|
-
export default useAppNotificationsDataRedux;
|
|
103
|
-
//# sourceMappingURL=useAppNotificationsDataRedux.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"useAppNotificationsDataRedux.js","sourceRoot":"","sources":["../../../../src/hooks/app-notifications-redux/useAppNotificationsDataRedux.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,OAAO,EAAE,MAAM,OAAO,CAAC;AAC3C,OAAO,EAAE,WAAW,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAGvD,OAAO,EACL,iBAAiB,EACjB,QAAQ,EACR,wBAAwB,EACxB,sBAAsB,EACtB,iBAAiB,EACjB,6BAA6B,EAC7B,6BAA6B,EAC7B,0BAA0B,EAC1B,sBAAsB,EACtB,2BAA2B,GAC5B,MAAM,0CAA0C,CAAC;AAClD,OAAO,EAAE,+BAA+B,EAAE,MAAM,mCAAmC,CAAC;AACpF,OAAO,UAAU,MAAM,wBAAwB,CAAC;AAChD,OAAO,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AAmB7C;;;GAGG;AACH,SAAS,4BAA4B,CAAC,EAGF;QAHE,qBAGJ,EAAE,KAAA,EAFlC,aAAU,EAAV,KAAK,mBAAG,EAAE,KAAA,EACV,qBAAqB,2BAAA;IAErB,IAAM,QAAQ,GAAG,WAAW,EAAe,CAAC;IAE5C,uBAAuB;IACf,IAAA,SAAS,GAAK,UAAU,EAAE,UAAjB,CAAkB;IAC3B,IAAA,IAAI,GAAK,YAAY,EAAE,KAAnB,CAAoB;IAEhC,kBAAkB;IAClB,IAAM,gBAAgB,GAAG,WAAW,CAAC,UAAC,KAAgB;QACpD,OAAA,sBAAsB,CAAC,KAAK,CAAC;IAA7B,CAA6B,CAC9B,CAAC;IACF,IAAM,2BAA2B,GAAG,WAAW,CAAC,UAAC,KAAgB;QAC/D,OAAA,iBAAiB,CAAC,KAAK,CAAC;IAAxB,CAAwB,CACzB,CAAC;IACF,IAAM,O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AAA;KACtB,CAAC,EATI,CASJ,EACF;QACE,gBAAgB;QAChB,2BAA2B;QAC3B,OAAO;QACP,OAAO;QACP,QAAQ;QACR,sBAAsB;QACtB,0BAA0B;QAC1B,qBAAqB;KACtB,CACF,CAAC;AACJ,CAAC;AAED,eAAe,4BAA4B,CAAC"}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import type { UseAppNotificationsDataValues } from "./useAppNotificationsDataRedux";
|
|
2
|
-
/**
|
|
3
|
-
* Redux-powered hook that provides the same interface as useAppNotifications()
|
|
4
|
-
* Returns the current app notifications state and actions
|
|
5
|
-
*/
|
|
6
|
-
export declare function useAppNotificationsRedux(): Partial<UseAppNotificationsDataValues>;
|
|
7
|
-
export default useAppNotificationsRedux;
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
import { useSelector } from "react-redux";
|
|
2
|
-
import { selectAppNotifications, selectUnreadCount, selectAppNotificationsLoading, selectAppNotificationsHasMore, } from "../../store/slices/appNotificationsSlice";
|
|
3
|
-
import { useAppNotificationsActionsRedux } from "./useAppNotificationsActionsRedux";
|
|
4
|
-
/**
|
|
5
|
-
* Redux-powered hook that provides the same interface as useAppNotifications()
|
|
6
|
-
* Returns the current app notifications state and actions
|
|
7
|
-
*/
|
|
8
|
-
export function useAppNotificationsRedux() {
|
|
9
|
-
// Select data from Redux store
|
|
10
|
-
var appNotifications = useSelector(function (state) {
|
|
11
|
-
return selectAppNotifications(state);
|
|
12
|
-
});
|
|
13
|
-
var unreadAppNotificationsCount = useSelector(function (state) {
|
|
14
|
-
return selectUnreadCount(state);
|
|
15
|
-
});
|
|
16
|
-
var loading = useSelector(function (state) {
|
|
17
|
-
return selectAppNotificationsLoading(state);
|
|
18
|
-
});
|
|
19
|
-
var hasMore = useSelector(function (state) {
|
|
20
|
-
return selectAppNotificationsHasMore(state);
|
|
21
|
-
});
|
|
22
|
-
// Get actions
|
|
23
|
-
var _a = useAppNotificationsActionsRedux(), loadMore = _a.loadMore, markNotificationAsRead = _a.markNotificationAsRead, resetAppNotifications = _a.resetAppNotifications;
|
|
24
|
-
return {
|
|
25
|
-
appNotifications: appNotifications,
|
|
26
|
-
unreadAppNotificationsCount: unreadAppNotificationsCount,
|
|
27
|
-
loading: loading,
|
|
28
|
-
hasMore: hasMore,
|
|
29
|
-
loadMore: loadMore,
|
|
30
|
-
markNotificationAsRead: markNotificationAsRead,
|
|
31
|
-
resetAppNotifications: resetAppNotifications,
|
|
32
|
-
};
|
|
33
|
-
}
|
|
34
|
-
export default useAppNotificationsRedux;
|
|
35
|
-
//# sourceMappingURL=useAppNotificationsRedux.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"useAppNotificationsRedux.js","sourceRoot":"","sources":["../../../../src/hooks/app-notifications-redux/useAppNotificationsRedux.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAG1C,OAAO,EACL,sBAAsB,EACtB,iBAAiB,EACjB,6BAA6B,EAC7B,6BAA6B,GAC9B,MAAM,0CAA0C,CAAC;AAClD,OAAO,EAAE,+BAA+B,EAAE,MAAM,mCAAmC,CAAC;AAEpF;;;GAGG;AACH,MAAM,UAAU,wBAAwB;IACtC,+BAA+B;IAC/B,IAAM,gBAAgB,GAAG,WAAW,CAAC,UAAC,KAAgB;QACpD,OAAA,sBAAsB,CAAC,KAAK,CAAC;IAA7B,CAA6B,CAC9B,CAAC;IACF,IAAM,2BAA2B,GAAG,WAAW,CAAC,UAAC,KAAgB;QAC/D,OAAA,iBAAiB,CAAC,KAAK,CAAC;IAAxB,CAAwB,CACzB,CAAC;IACF,IAAM,OAAO,GAAG,WAAW,CAAC,UAAC,KAAgB;QAC3C,OAAA,6BAA6B,CAAC,KAAK,CAAC;IAApC,CAAoC,CACrC,CAAC;IACF,IAAM,OAAO,GAAG,WAAW,CAAC,UAAC,KAAgB;QAC3C,OAAA,6BAA6B,CAAC,KAAK,CAAC;IAApC,CAAoC,CACrC,CAAC;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