react-query-firebase 2.13.3 → 2.13.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/dist/index.d.ts +2 -0
- package/dist/index.js +4 -0
- package/dist/react-native/analytics/index.d.ts +3 -0
- package/dist/react-native/analytics/index.js +3 -0
- package/{react-native/analytics/useAnalytics.ts → dist/react-native/analytics/useAnalytics.js} +1 -3
- package/{react-native → dist/react-native}/analytics/useLogEvent.js +1 -1
- package/{react-native → dist/react-native}/analytics/useSetAnalyticsCollectionEnabled.js +1 -1
- package/dist/react-native/auth/index.d.ts +19 -0
- package/dist/react-native/auth/index.js +19 -0
- package/{react-native/auth/useAuth.ts → dist/react-native/auth/useAuth.js} +1 -3
- package/{react-native → dist/react-native}/auth/useAuthStateReady.js +1 -1
- package/{react-native → dist/react-native}/auth/useCreateUserWitEmailAndPasswordMutation.js +2 -2
- package/{react-native → dist/react-native}/auth/useCurrentUser.js +1 -1
- package/{react-native → dist/react-native}/auth/useIdToken.js +2 -2
- package/{react-native → dist/react-native}/auth/useLinkWithCredentialMutation.js +1 -1
- package/{react-native → dist/react-native}/auth/useReauthenticateWitCredentialMutation.js +1 -1
- package/{react-native → dist/react-native}/auth/useReauthenticateWitRedirectMutation.js +1 -1
- package/{react-native → dist/react-native}/auth/useSendEmailVerificationMutation.js +1 -1
- package/{react-native → dist/react-native}/auth/useSignInAnonymouslyMutation.js +2 -2
- package/{react-native → dist/react-native}/auth/useSignInWitEmailAndPasswordMutation.js +2 -2
- package/{react-native → dist/react-native}/auth/useSignInWitRedirectMutation.js +2 -2
- package/{react-native → dist/react-native}/auth/useSignInWithCredentialMutation.js +2 -2
- package/{react-native → dist/react-native}/auth/useSignOutMutation.js +2 -2
- package/{react-native → dist/react-native}/auth/useUpdateProfileMutation.js +1 -1
- package/{react-native → dist/react-native}/context/FirebaseContextProvider.js +1 -1
- package/dist/react-native/context/index.d.ts +1 -0
- package/dist/react-native/context/index.js +1 -0
- package/dist/react-native/firestore/index.d.ts +23 -0
- package/dist/react-native/firestore/index.js +23 -0
- package/{react-native → dist/react-native}/firestore/useAddDocMutation.d.ts +1 -1
- package/{react-native → dist/react-native}/firestore/useBatchWrite.js +1 -1
- package/{react-native → dist/react-native}/firestore/useCollectionReference.d.ts +1 -1
- package/{react-native → dist/react-native}/firestore/useCollectionReference.js +1 -1
- package/{react-native → dist/react-native}/firestore/useCompositeFilter.d.ts +2 -2
- package/{react-native → dist/react-native}/firestore/useCompositeFilter.js +1 -1
- package/{react-native → dist/react-native}/firestore/useCountQuery.d.ts +2 -2
- package/{react-native → dist/react-native}/firestore/useDeleteDocMutation.d.ts +1 -1
- package/{react-native → dist/react-native}/firestore/useDocReference.d.ts +2 -2
- package/{react-native → dist/react-native}/firestore/useDocReference.js +2 -2
- package/{react-native → dist/react-native}/firestore/useDocReferences.d.ts +2 -2
- package/{react-native → dist/react-native}/firestore/useDocReferences.js +2 -2
- package/{web → dist/react-native}/firestore/useEnsureDoc.d.ts +2 -2
- package/{react-native → dist/react-native}/firestore/useEnsureDoc.js +3 -3
- package/{react-native/firestore/useFirestore.ts → dist/react-native/firestore/useFirestore.js} +1 -2
- package/{react-native → dist/react-native}/firestore/useGetDocData.d.ts +2 -2
- package/{web → dist/react-native}/firestore/useGetDocData.js +2 -2
- package/{react-native → dist/react-native}/firestore/useGetRealtimeDocData.d.ts +1 -1
- package/{react-native → dist/react-native}/firestore/useGetRealtimeDocData.js +1 -1
- package/{react-native → dist/react-native}/firestore/useInfiniteQuery.d.ts +2 -2
- package/{react-native → dist/react-native}/firestore/useQuery.d.ts +2 -2
- package/{react-native → dist/react-native}/firestore/useQueryConstraints.d.ts +2 -2
- package/{react-native → dist/react-native}/firestore/useQueryConstraints.js +1 -1
- package/{react-native → dist/react-native}/firestore/useRunTransaction.js +1 -1
- package/{react-native → dist/react-native}/firestore/useSetDocMutation.d.ts +1 -1
- package/{react-native → dist/react-native}/firestore/useUpdateDocMutation.d.ts +1 -1
- package/{react-native → dist/react-native}/firestore/utils/buildCompositeFilter.d.ts +1 -1
- package/{react-native → dist/react-native}/firestore/utils/buildQueryConstraint.d.ts +1 -1
- package/{react-native → dist/react-native}/firestore/utils/getDocData.d.ts +2 -2
- package/{react-native → dist/react-native}/firestore/utils/getDocData.js +1 -1
- package/{react-native → dist/react-native}/firestore/utils/getDocRef.d.ts +1 -1
- package/{react-native → dist/react-native}/firestore/utils/getDocSnap.d.ts +2 -2
- package/{react-native → dist/react-native}/firestore/utils/getDocSnap.js +1 -1
- package/dist/react-native/index.d.ts +1 -0
- package/dist/react-native/index.js +1 -0
- package/dist/react-native/remoteConfig/index.d.ts +3 -0
- package/dist/react-native/remoteConfig/index.js +3 -0
- package/{react-native → dist/react-native}/remoteConfig/useFetchAndActivate.js +1 -1
- package/{react-native → dist/react-native}/remoteConfig/useGetValue.js +1 -1
- package/{react-native/remoteConfig/useRemoteConfig.ts → dist/react-native/remoteConfig/useRemoteConfig.js} +1 -2
- package/{types → dist/types}/QueryConstraints.d.ts +1 -1
- package/dist/types/index.d.ts +2 -0
- package/dist/types/index.js +2 -0
- package/dist/web/analytics/index.d.ts +3 -0
- package/dist/web/analytics/index.js +3 -0
- package/{web/analytics/useAnalytics.ts → dist/web/analytics/useAnalytics.js} +1 -3
- package/{web → dist/web}/analytics/useLogEvent.js +1 -1
- package/{web → dist/web}/analytics/useSetAnalyticsCollectionEnabled.js +1 -1
- package/dist/web/auth/index.d.ts +20 -0
- package/dist/web/auth/index.js +20 -0
- package/{web/auth/useAuth.ts → dist/web/auth/useAuth.js} +1 -3
- package/{web → dist/web}/auth/useAuthStateReady.js +1 -1
- package/{web → dist/web}/auth/useCreateUserWitEmailAndPasswordMutation.js +2 -2
- package/{web → dist/web}/auth/useCurrentUser.js +1 -1
- package/{web → dist/web}/auth/useGetRedirectResultMutation.js +2 -2
- package/{web → dist/web}/auth/useIdToken.js +2 -2
- package/{web → dist/web}/auth/useLinkWithCredentialMutation.js +1 -1
- package/{web → dist/web}/auth/useReauthenticateWitCredentialMutation.js +1 -1
- package/{web → dist/web}/auth/useReauthenticateWitRedirectMutation.js +1 -1
- package/{web → dist/web}/auth/useSendEmailVerificationMutation.js +1 -1
- package/{web → dist/web}/auth/useSignInAnonymouslyMutation.js +2 -2
- package/{web → dist/web}/auth/useSignInWitEmailAndPasswordMutation.js +2 -2
- package/{web → dist/web}/auth/useSignInWitRedirectMutation.js +2 -2
- package/{web → dist/web}/auth/useSignInWithCredentialMutation.js +2 -2
- package/{web → dist/web}/auth/useSignOutMutation.js +2 -2
- package/{web → dist/web}/auth/useUpdateProfileMutation.js +1 -1
- package/{web → dist/web}/context/FirebaseContextProvider.js +1 -1
- package/dist/web/context/index.d.ts +1 -0
- package/dist/web/context/index.js +1 -0
- package/dist/web/firestore/index.d.ts +23 -0
- package/dist/web/firestore/index.js +23 -0
- package/{web → dist/web}/firestore/useAddDocMutation.d.ts +1 -1
- package/{web → dist/web}/firestore/useBatchWrite.js +1 -1
- package/{web → dist/web}/firestore/useCollectionReference.d.ts +1 -1
- package/{web → dist/web}/firestore/useCollectionReference.js +1 -1
- package/{web → dist/web}/firestore/useCompositeFilter.d.ts +2 -2
- package/{web → dist/web}/firestore/useCompositeFilter.js +1 -1
- package/{web → dist/web}/firestore/useCountQuery.d.ts +2 -2
- package/{web → dist/web}/firestore/useDeleteDocMutation.d.ts +1 -1
- package/{web → dist/web}/firestore/useDocReference.d.ts +2 -2
- package/{web → dist/web}/firestore/useDocReference.js +2 -2
- package/{web → dist/web}/firestore/useDocReferences.d.ts +2 -2
- package/{web → dist/web}/firestore/useDocReferences.js +2 -2
- package/{react-native → dist/web}/firestore/useEnsureDoc.d.ts +2 -2
- package/{web → dist/web}/firestore/useEnsureDoc.js +3 -3
- package/{web/firestore/useFirestore.ts → dist/web/firestore/useFirestore.js} +1 -2
- package/{web → dist/web}/firestore/useGetDocData.d.ts +2 -2
- package/{react-native → dist/web}/firestore/useGetDocData.js +2 -2
- package/{web → dist/web}/firestore/useGetRealtimeDocData.d.ts +1 -1
- package/{web → dist/web}/firestore/useGetRealtimeDocData.js +1 -1
- package/{web → dist/web}/firestore/useInfiniteQuery.d.ts +2 -2
- package/{web → dist/web}/firestore/useQuery.d.ts +2 -2
- package/{web → dist/web}/firestore/useQueryConstraints.d.ts +2 -2
- package/{web → dist/web}/firestore/useQueryConstraints.js +1 -1
- package/{web → dist/web}/firestore/useRunTransaction.js +1 -1
- package/{web → dist/web}/firestore/useSetDocMutation.d.ts +1 -1
- package/{web → dist/web}/firestore/useUpdateDocMutation.d.ts +1 -1
- package/{web → dist/web}/firestore/utils/buildCompositeFilter.d.ts +1 -1
- package/{web → dist/web}/firestore/utils/buildQueryConstraint.d.ts +1 -1
- package/{web → dist/web}/firestore/utils/getDocData.d.ts +2 -2
- package/{web → dist/web}/firestore/utils/getDocData.js +1 -1
- package/{web → dist/web}/firestore/utils/getDocRef.d.ts +1 -1
- package/{web → dist/web}/firestore/utils/getDocSnap.d.ts +2 -2
- package/{web → dist/web}/firestore/utils/getDocSnap.js +1 -1
- package/dist/web/index.d.ts +1 -0
- package/dist/web/index.js +1 -0
- package/dist/web/remoteConfig/index.d.ts +3 -0
- package/dist/web/remoteConfig/index.js +3 -0
- package/{web → dist/web}/remoteConfig/useFetchAndActivate.js +1 -1
- package/{web → dist/web}/remoteConfig/useGetValue.js +1 -1
- package/{web/remoteConfig/useRemoteConfig.ts → dist/web/remoteConfig/useRemoteConfig.js} +1 -2
- package/package.json +37 -17
- package/react-native/analytics/index.d.ts +0 -3
- package/react-native/analytics/index.js +0 -3
- package/react-native/analytics/index.ts +0 -3
- package/react-native/analytics/useAnalytics.js +0 -10
- package/react-native/analytics/useLogEvent.ts +0 -34
- package/react-native/analytics/useSetAnalyticsCollectionEnabled.ts +0 -22
- package/react-native/auth/index.d.ts +0 -19
- package/react-native/auth/index.js +0 -19
- package/react-native/auth/index.ts +0 -19
- package/react-native/auth/mutation-keys.ts +0 -22
- package/react-native/auth/useAppleAuthProviderCredential.ts +0 -31
- package/react-native/auth/useAuth.js +0 -10
- package/react-native/auth/useAuthStateReady.ts +0 -39
- package/react-native/auth/useCreateUserWitEmailAndPasswordMutation.ts +0 -38
- package/react-native/auth/useCurrentUser.ts +0 -26
- package/react-native/auth/useEmailAuthProviderCredential.ts +0 -38
- package/react-native/auth/useFacebookAuthProviderCredential.ts +0 -31
- package/react-native/auth/useIdToken.ts +0 -83
- package/react-native/auth/useLinkWithCredentialMutation.ts +0 -35
- package/react-native/auth/useReauthenticateWitCredentialMutation.ts +0 -36
- package/react-native/auth/useReauthenticateWitRedirectMutation.ts +0 -42
- package/react-native/auth/useSendEmailVerificationMutation.ts +0 -33
- package/react-native/auth/useSignInAnonymouslyMutation.ts +0 -52
- package/react-native/auth/useSignInWitEmailAndPasswordMutation.ts +0 -39
- package/react-native/auth/useSignInWitRedirectMutation.ts +0 -38
- package/react-native/auth/useSignInWithCredentialMutation.ts +0 -36
- package/react-native/auth/useSignOutMutation.ts +0 -28
- package/react-native/auth/useUpdateProfileMutation.ts +0 -30
- package/react-native/context/FirebaseContext.ts +0 -25
- package/react-native/context/FirebaseContextProvider.tsx +0 -264
- package/react-native/context/index.d.ts +0 -1
- package/react-native/context/index.js +0 -1
- package/react-native/context/index.ts +0 -1
- package/react-native/firestore/index.d.ts +0 -23
- package/react-native/firestore/index.js +0 -23
- package/react-native/firestore/index.ts +0 -23
- package/react-native/firestore/useAddDocMutation.ts +0 -80
- package/react-native/firestore/useBatchWrite.ts +0 -58
- package/react-native/firestore/useCollectionReference.ts +0 -58
- package/react-native/firestore/useCompositeFilter.ts +0 -60
- package/react-native/firestore/useCountQuery.ts +0 -85
- package/react-native/firestore/useDeleteDocMutation.ts +0 -71
- package/react-native/firestore/useDocReference.ts +0 -42
- package/react-native/firestore/useDocReferences.ts +0 -40
- package/react-native/firestore/useEnsureDoc.ts +0 -79
- package/react-native/firestore/useFirestore.js +0 -13
- package/react-native/firestore/useGetDocData.ts +0 -52
- package/react-native/firestore/useGetRealtimeDocData.ts +0 -106
- package/react-native/firestore/useInfiniteQuery.ts +0 -115
- package/react-native/firestore/useQuery.ts +0 -89
- package/react-native/firestore/useQueryConstraints.ts +0 -44
- package/react-native/firestore/useRunTransaction.ts +0 -55
- package/react-native/firestore/useSetDocMutation.ts +0 -76
- package/react-native/firestore/useUpdateDocMutation.ts +0 -77
- package/react-native/firestore/utils/buildCompositeFilter.ts +0 -75
- package/react-native/firestore/utils/buildQueryConstraint.ts +0 -54
- package/react-native/firestore/utils/getDocData.ts +0 -33
- package/react-native/firestore/utils/getDocRef.ts +0 -41
- package/react-native/firestore/utils/getDocSnap.ts +0 -34
- package/react-native/index.d.ts +0 -1
- package/react-native/index.js +0 -1
- package/react-native/index.ts +0 -1
- package/react-native/remoteConfig/index.d.ts +0 -3
- package/react-native/remoteConfig/index.js +0 -3
- package/react-native/remoteConfig/index.ts +0 -3
- package/react-native/remoteConfig/useFetchAndActivate.ts +0 -36
- package/react-native/remoteConfig/useGetValue.ts +0 -16
- package/react-native/remoteConfig/useRemoteConfig.js +0 -10
- package/types/AppModel.ts +0 -10
- package/types/QueryConstraints.ts +0 -57
- package/types/index.d.ts +0 -2
- package/types/index.js +0 -2
- package/types/index.ts +0 -2
- package/web/analytics/index.d.ts +0 -3
- package/web/analytics/index.js +0 -3
- package/web/analytics/index.ts +0 -3
- package/web/analytics/useAnalytics.js +0 -10
- package/web/analytics/useLogEvent.ts +0 -34
- package/web/analytics/useSetAnalyticsCollectionEnabled.ts +0 -22
- package/web/auth/index.d.ts +0 -20
- package/web/auth/index.js +0 -20
- package/web/auth/index.ts +0 -20
- package/web/auth/mutation-keys.ts +0 -23
- package/web/auth/useAppleAuthProviderCredential.ts +0 -32
- package/web/auth/useAuth.js +0 -10
- package/web/auth/useAuthStateReady.ts +0 -30
- package/web/auth/useCreateUserWitEmailAndPasswordMutation.ts +0 -33
- package/web/auth/useCurrentUser.ts +0 -25
- package/web/auth/useEmailAuthProviderCredential.ts +0 -38
- package/web/auth/useFacebookAuthProviderCredential.ts +0 -31
- package/web/auth/useGetRedirectResultMutation.ts +0 -27
- package/web/auth/useIdToken.ts +0 -83
- package/web/auth/useLinkWithCredentialMutation.ts +0 -30
- package/web/auth/useReauthenticateWitCredentialMutation.ts +0 -31
- package/web/auth/useReauthenticateWitRedirectMutation.ts +0 -37
- package/web/auth/useSendEmailVerificationMutation.ts +0 -28
- package/web/auth/useSignInAnonymouslyMutation.ts +0 -49
- package/web/auth/useSignInWitEmailAndPasswordMutation.ts +0 -34
- package/web/auth/useSignInWitRedirectMutation.ts +0 -33
- package/web/auth/useSignInWithCredentialMutation.ts +0 -31
- package/web/auth/useSignOutMutation.ts +0 -25
- package/web/auth/useUpdateProfileMutation.ts +0 -30
- package/web/context/FirebaseContext.ts +0 -25
- package/web/context/FirebaseContextProvider.tsx +0 -263
- package/web/context/index.d.ts +0 -1
- package/web/context/index.js +0 -1
- package/web/context/index.ts +0 -1
- package/web/firestore/index.d.ts +0 -23
- package/web/firestore/index.js +0 -23
- package/web/firestore/index.ts +0 -23
- package/web/firestore/useAddDocMutation.ts +0 -74
- package/web/firestore/useBatchWrite.ts +0 -58
- package/web/firestore/useCollectionReference.ts +0 -58
- package/web/firestore/useCompositeFilter.ts +0 -55
- package/web/firestore/useCountQuery.ts +0 -90
- package/web/firestore/useDeleteDocMutation.ts +0 -69
- package/web/firestore/useDocReference.ts +0 -43
- package/web/firestore/useDocReferences.ts +0 -40
- package/web/firestore/useEnsureDoc.ts +0 -92
- package/web/firestore/useFirestore.js +0 -13
- package/web/firestore/useGetDocData.ts +0 -52
- package/web/firestore/useGetRealtimeDocData.ts +0 -105
- package/web/firestore/useInfiniteQuery.ts +0 -117
- package/web/firestore/useQuery.ts +0 -94
- package/web/firestore/useQueryConstraints.ts +0 -44
- package/web/firestore/useRunTransaction.ts +0 -56
- package/web/firestore/useSetDocMutation.ts +0 -77
- package/web/firestore/useUpdateDocMutation.ts +0 -78
- package/web/firestore/utils/buildCompositeFilter.ts +0 -73
- package/web/firestore/utils/buildQueryConstraint.ts +0 -55
- package/web/firestore/utils/getDocData.ts +0 -33
- package/web/firestore/utils/getDocRef.ts +0 -43
- package/web/firestore/utils/getDocSnap.ts +0 -34
- package/web/index.d.ts +0 -1
- package/web/index.js +0 -1
- package/web/index.ts +0 -1
- package/web/remoteConfig/index.d.ts +0 -3
- package/web/remoteConfig/index.js +0 -3
- package/web/remoteConfig/index.ts +0 -3
- package/web/remoteConfig/useFetchAndActivate.ts +0 -36
- package/web/remoteConfig/useGetValue.ts +0 -16
- package/web/remoteConfig/useRemoteConfig.js +0 -10
- /package/{react-native → dist/react-native}/analytics/useAnalytics.d.ts +0 -0
- /package/{react-native → dist/react-native}/analytics/useLogEvent.d.ts +0 -0
- /package/{react-native → dist/react-native}/analytics/useSetAnalyticsCollectionEnabled.d.ts +0 -0
- /package/{react-native → dist/react-native}/auth/mutation-keys.d.ts +0 -0
- /package/{react-native → dist/react-native}/auth/mutation-keys.js +0 -0
- /package/{react-native → dist/react-native}/auth/useAppleAuthProviderCredential.d.ts +0 -0
- /package/{react-native → dist/react-native}/auth/useAppleAuthProviderCredential.js +0 -0
- /package/{react-native → dist/react-native}/auth/useAuth.d.ts +0 -0
- /package/{react-native → dist/react-native}/auth/useAuthStateReady.d.ts +0 -0
- /package/{react-native → dist/react-native}/auth/useCreateUserWitEmailAndPasswordMutation.d.ts +0 -0
- /package/{react-native → dist/react-native}/auth/useCurrentUser.d.ts +0 -0
- /package/{react-native → dist/react-native}/auth/useEmailAuthProviderCredential.d.ts +0 -0
- /package/{react-native → dist/react-native}/auth/useEmailAuthProviderCredential.js +0 -0
- /package/{react-native → dist/react-native}/auth/useFacebookAuthProviderCredential.d.ts +0 -0
- /package/{react-native → dist/react-native}/auth/useFacebookAuthProviderCredential.js +0 -0
- /package/{react-native → dist/react-native}/auth/useIdToken.d.ts +0 -0
- /package/{react-native → dist/react-native}/auth/useLinkWithCredentialMutation.d.ts +0 -0
- /package/{react-native → dist/react-native}/auth/useReauthenticateWitCredentialMutation.d.ts +0 -0
- /package/{react-native → dist/react-native}/auth/useReauthenticateWitRedirectMutation.d.ts +0 -0
- /package/{react-native → dist/react-native}/auth/useSendEmailVerificationMutation.d.ts +0 -0
- /package/{react-native → dist/react-native}/auth/useSignInAnonymouslyMutation.d.ts +0 -0
- /package/{react-native → dist/react-native}/auth/useSignInWitEmailAndPasswordMutation.d.ts +0 -0
- /package/{react-native → dist/react-native}/auth/useSignInWitRedirectMutation.d.ts +0 -0
- /package/{react-native → dist/react-native}/auth/useSignInWithCredentialMutation.d.ts +0 -0
- /package/{react-native → dist/react-native}/auth/useSignOutMutation.d.ts +0 -0
- /package/{react-native → dist/react-native}/auth/useUpdateProfileMutation.d.ts +0 -0
- /package/{react-native → dist/react-native}/context/FirebaseContext.d.ts +0 -0
- /package/{react-native → dist/react-native}/context/FirebaseContext.js +0 -0
- /package/{react-native → dist/react-native}/context/FirebaseContextProvider.d.ts +0 -0
- /package/{react-native → dist/react-native}/firestore/useAddDocMutation.js +0 -0
- /package/{react-native → dist/react-native}/firestore/useBatchWrite.d.ts +0 -0
- /package/{react-native → dist/react-native}/firestore/useCountQuery.js +0 -0
- /package/{react-native → dist/react-native}/firestore/useDeleteDocMutation.js +0 -0
- /package/{react-native → dist/react-native}/firestore/useFirestore.d.ts +0 -0
- /package/{react-native → dist/react-native}/firestore/useInfiniteQuery.js +0 -0
- /package/{react-native → dist/react-native}/firestore/useQuery.js +0 -0
- /package/{react-native → dist/react-native}/firestore/useRunTransaction.d.ts +0 -0
- /package/{react-native → dist/react-native}/firestore/useSetDocMutation.js +0 -0
- /package/{react-native → dist/react-native}/firestore/useUpdateDocMutation.js +0 -0
- /package/{react-native → dist/react-native}/firestore/utils/buildCompositeFilter.js +0 -0
- /package/{react-native → dist/react-native}/firestore/utils/buildQueryConstraint.js +0 -0
- /package/{react-native → dist/react-native}/firestore/utils/getDocRef.js +0 -0
- /package/{react-native → dist/react-native}/remoteConfig/useFetchAndActivate.d.ts +0 -0
- /package/{react-native → dist/react-native}/remoteConfig/useGetValue.d.ts +0 -0
- /package/{react-native → dist/react-native}/remoteConfig/useRemoteConfig.d.ts +0 -0
- /package/{types → dist/types}/AppModel.d.ts +0 -0
- /package/{types → dist/types}/AppModel.js +0 -0
- /package/{types → dist/types}/QueryConstraints.js +0 -0
- /package/{web → dist/web}/analytics/useAnalytics.d.ts +0 -0
- /package/{web → dist/web}/analytics/useLogEvent.d.ts +0 -0
- /package/{web → dist/web}/analytics/useSetAnalyticsCollectionEnabled.d.ts +0 -0
- /package/{web → dist/web}/auth/mutation-keys.d.ts +0 -0
- /package/{web → dist/web}/auth/mutation-keys.js +0 -0
- /package/{web → dist/web}/auth/useAppleAuthProviderCredential.d.ts +0 -0
- /package/{web → dist/web}/auth/useAppleAuthProviderCredential.js +0 -0
- /package/{web → dist/web}/auth/useAuth.d.ts +0 -0
- /package/{web → dist/web}/auth/useAuthStateReady.d.ts +0 -0
- /package/{web → dist/web}/auth/useCreateUserWitEmailAndPasswordMutation.d.ts +0 -0
- /package/{web → dist/web}/auth/useCurrentUser.d.ts +0 -0
- /package/{web → dist/web}/auth/useEmailAuthProviderCredential.d.ts +0 -0
- /package/{web → dist/web}/auth/useEmailAuthProviderCredential.js +0 -0
- /package/{web → dist/web}/auth/useFacebookAuthProviderCredential.d.ts +0 -0
- /package/{web → dist/web}/auth/useFacebookAuthProviderCredential.js +0 -0
- /package/{web → dist/web}/auth/useGetRedirectResultMutation.d.ts +0 -0
- /package/{web → dist/web}/auth/useIdToken.d.ts +0 -0
- /package/{web → dist/web}/auth/useLinkWithCredentialMutation.d.ts +0 -0
- /package/{web → dist/web}/auth/useReauthenticateWitCredentialMutation.d.ts +0 -0
- /package/{web → dist/web}/auth/useReauthenticateWitRedirectMutation.d.ts +0 -0
- /package/{web → dist/web}/auth/useSendEmailVerificationMutation.d.ts +0 -0
- /package/{web → dist/web}/auth/useSignInAnonymouslyMutation.d.ts +0 -0
- /package/{web → dist/web}/auth/useSignInWitEmailAndPasswordMutation.d.ts +0 -0
- /package/{web → dist/web}/auth/useSignInWitRedirectMutation.d.ts +0 -0
- /package/{web → dist/web}/auth/useSignInWithCredentialMutation.d.ts +0 -0
- /package/{web → dist/web}/auth/useSignOutMutation.d.ts +0 -0
- /package/{web → dist/web}/auth/useUpdateProfileMutation.d.ts +0 -0
- /package/{web → dist/web}/context/FirebaseContext.d.ts +0 -0
- /package/{web → dist/web}/context/FirebaseContext.js +0 -0
- /package/{web → dist/web}/context/FirebaseContextProvider.d.ts +0 -0
- /package/{web → dist/web}/firestore/useAddDocMutation.js +0 -0
- /package/{web → dist/web}/firestore/useBatchWrite.d.ts +0 -0
- /package/{web → dist/web}/firestore/useCountQuery.js +0 -0
- /package/{web → dist/web}/firestore/useDeleteDocMutation.js +0 -0
- /package/{web → dist/web}/firestore/useFirestore.d.ts +0 -0
- /package/{web → dist/web}/firestore/useInfiniteQuery.js +0 -0
- /package/{web → dist/web}/firestore/useQuery.js +0 -0
- /package/{web → dist/web}/firestore/useRunTransaction.d.ts +0 -0
- /package/{web → dist/web}/firestore/useSetDocMutation.js +0 -0
- /package/{web → dist/web}/firestore/useUpdateDocMutation.js +0 -0
- /package/{web → dist/web}/firestore/utils/buildCompositeFilter.js +0 -0
- /package/{web → dist/web}/firestore/utils/buildQueryConstraint.js +0 -0
- /package/{web → dist/web}/firestore/utils/getDocRef.js +0 -0
- /package/{web → dist/web}/remoteConfig/useFetchAndActivate.d.ts +0 -0
- /package/{web → dist/web}/remoteConfig/useGetValue.d.ts +0 -0
- /package/{web → dist/web}/remoteConfig/useRemoteConfig.d.ts +0 -0
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { getDoc as firestoreGetDoc } from "@react-native-firebase/firestore";
|
|
2
|
-
import { getDocRef } from "./getDocRef";
|
|
2
|
+
import { getDocRef } from "./getDocRef.js";
|
|
3
3
|
/**
|
|
4
4
|
* Asynchronously retrieves a document snapshot from Firestore using a specified document reference
|
|
5
5
|
* or path information. This function handles getting the appropriate document reference based on
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./context/index.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./context/index.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ensureInitialized, fetchAndActivate } from "@react-native-firebase/remote-config";
|
|
2
2
|
import { useCallback, useMemo, useState } from "react";
|
|
3
|
-
import { useRemoteConfig } from "./useRemoteConfig";
|
|
3
|
+
import { useRemoteConfig } from "./useRemoteConfig.js";
|
|
4
4
|
/**
|
|
5
5
|
* Custom hook to fetch and activate remote configuration settings.
|
|
6
6
|
* Initializes remote configuration, fetches, activates it, and tracks the fetch status.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { getValue } from "@react-native-firebase/remote-config";
|
|
2
2
|
import { useMemo } from "react";
|
|
3
|
-
import { useRemoteConfig } from "./useRemoteConfig";
|
|
3
|
+
import { useRemoteConfig } from "./useRemoteConfig.js";
|
|
4
4
|
/**
|
|
5
5
|
* Custom hook to retrieve a value associated with a specified key from remote configuration.
|
|
6
6
|
* Utilizes memoization to optimize performance by recalculating the result only if dependencies change.
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { useContext } from "react";
|
|
2
|
-
import { FirebaseContext } from "../context/FirebaseContext";
|
|
3
|
-
|
|
2
|
+
import { FirebaseContext } from "../context/FirebaseContext.js";
|
|
4
3
|
/**
|
|
5
4
|
* Hook to access the Firebase Remote Config instance from the context.
|
|
6
5
|
* @returns {RemoteConfig} The remoteConfig object from the Firebase context.
|
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
import { useContext } from "react";
|
|
2
|
-
|
|
3
|
-
import { FirebaseContext } from "../context/FirebaseContext";
|
|
4
|
-
|
|
2
|
+
import { FirebaseContext } from "../context/FirebaseContext.js";
|
|
5
3
|
/**
|
|
6
4
|
* Hook to access Firebase analytics from the Firebase context.
|
|
7
5
|
* @returns {any} The analytics object from the Firebase context.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { logEvent } from "firebase/analytics";
|
|
2
2
|
import { useCallback, useMemo } from "react";
|
|
3
|
-
import { useAnalytics } from "./useAnalytics";
|
|
3
|
+
import { useAnalytics } from "./useAnalytics.js";
|
|
4
4
|
/**
|
|
5
5
|
* Custom hook to create a log event function that logs an analytics event with specified parameters.
|
|
6
6
|
* @param {Object} options - The options for the log event.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { setAnalyticsCollectionEnabled } from "firebase/analytics";
|
|
2
2
|
import { useEffect } from "react";
|
|
3
|
-
import { useAnalytics } from "./useAnalytics";
|
|
3
|
+
import { useAnalytics } from "./useAnalytics.js";
|
|
4
4
|
/**
|
|
5
5
|
* Custom hook to enable or disable analytics collection
|
|
6
6
|
* @param {Object} options - The options for hook.
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
export * from "./mutation-keys.js";
|
|
2
|
+
export * from "./useAuth.js";
|
|
3
|
+
export * from "./useCreateUserWitEmailAndPasswordMutation.js";
|
|
4
|
+
export * from "./useSendEmailVerificationMutation.js";
|
|
5
|
+
export * from "./useSignInWitEmailAndPasswordMutation.js";
|
|
6
|
+
export * from "./useCurrentUser.js";
|
|
7
|
+
export * from "./useAuthStateReady.js";
|
|
8
|
+
export * from "./useSignInWitRedirectMutation.js";
|
|
9
|
+
export * from "./useUpdateProfileMutation.js";
|
|
10
|
+
export * from "./useSignOutMutation.js";
|
|
11
|
+
export * from "./useIdToken.js";
|
|
12
|
+
export * from "./useReauthenticateWitCredentialMutation.js";
|
|
13
|
+
export * from "./useReauthenticateWitRedirectMutation.js";
|
|
14
|
+
export * from "./useSignInAnonymouslyMutation.js";
|
|
15
|
+
export * from "./useEmailAuthProviderCredential.js";
|
|
16
|
+
export * from "./useFacebookAuthProviderCredential.js";
|
|
17
|
+
export * from "./useAppleAuthProviderCredential.js";
|
|
18
|
+
export * from "./useLinkWithCredentialMutation.js";
|
|
19
|
+
export * from "./useSignInWithCredentialMutation.js";
|
|
20
|
+
export * from "./useGetRedirectResultMutation.js";
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
export * from "./mutation-keys.js";
|
|
2
|
+
export * from "./useAuth.js";
|
|
3
|
+
export * from "./useCreateUserWitEmailAndPasswordMutation.js";
|
|
4
|
+
export * from "./useSendEmailVerificationMutation.js";
|
|
5
|
+
export * from "./useSignInWitEmailAndPasswordMutation.js";
|
|
6
|
+
export * from "./useCurrentUser.js";
|
|
7
|
+
export * from "./useAuthStateReady.js";
|
|
8
|
+
export * from "./useSignInWitRedirectMutation.js";
|
|
9
|
+
export * from "./useUpdateProfileMutation.js";
|
|
10
|
+
export * from "./useSignOutMutation.js";
|
|
11
|
+
export * from "./useIdToken.js";
|
|
12
|
+
export * from "./useReauthenticateWitCredentialMutation.js";
|
|
13
|
+
export * from "./useReauthenticateWitRedirectMutation.js";
|
|
14
|
+
export * from "./useSignInAnonymouslyMutation.js";
|
|
15
|
+
export * from "./useEmailAuthProviderCredential.js";
|
|
16
|
+
export * from "./useFacebookAuthProviderCredential.js";
|
|
17
|
+
export * from "./useAppleAuthProviderCredential.js";
|
|
18
|
+
export * from "./useLinkWithCredentialMutation.js";
|
|
19
|
+
export * from "./useSignInWithCredentialMutation.js";
|
|
20
|
+
export * from "./useGetRedirectResultMutation.js";
|
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
import { useContext } from "react";
|
|
2
|
-
|
|
3
|
-
import { FirebaseContext } from "../context/FirebaseContext";
|
|
4
|
-
|
|
2
|
+
import { FirebaseContext } from "../context/FirebaseContext.js";
|
|
5
3
|
/**
|
|
6
4
|
* Custom hook to retrieve the authentication object from the Firebase context.
|
|
7
5
|
* @returns {Auth} The authentication object from the Firebase context.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { useEffect, useState } from "react";
|
|
2
|
-
import { useAuth } from "./useAuth";
|
|
2
|
+
import { useAuth } from "./useAuth.js";
|
|
3
3
|
/**
|
|
4
4
|
* A custom hook that determines if the Firebase authentication state is ready.
|
|
5
5
|
* It uses Firebase authentication to check if the auth state is ready and updates the state accordingly.
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { useMutation } from "@tanstack/react-query";
|
|
2
2
|
import { createUserWithEmailAndPassword } from "firebase/auth";
|
|
3
|
-
import { useAuth } from "./useAuth";
|
|
4
|
-
import { CREATE_USER_WITH_EMAIL_AND_PASSWORD_MUTATION_KEY } from "./mutation-keys";
|
|
3
|
+
import { useAuth } from "./useAuth.js";
|
|
4
|
+
import { CREATE_USER_WITH_EMAIL_AND_PASSWORD_MUTATION_KEY } from "./mutation-keys.js";
|
|
5
5
|
/**
|
|
6
6
|
* Custom hook to initiate a user creation process using email and password with Firebase authentication.
|
|
7
7
|
* This hook utilizes the `useMutation` functionality to support creating new user credentials asynchronously.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { onAuthStateChanged } from "firebase/auth";
|
|
2
2
|
import { useEffect, useState } from "react";
|
|
3
|
-
import { useAuth } from "./useAuth";
|
|
3
|
+
import { useAuth } from "./useAuth.js";
|
|
4
4
|
/**
|
|
5
5
|
* Hook that provides the current authenticated user from Firebase Auth.
|
|
6
6
|
* It listens for changes in the authentication state and updates the user accordingly.
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { useMutation } from "@tanstack/react-query";
|
|
2
2
|
import { getRedirectResult } from "firebase/auth";
|
|
3
|
-
import { useAuth } from "./useAuth";
|
|
4
|
-
import { GET_REDIRECT_RESULT_MUTATION_KEY } from "./mutation-keys";
|
|
3
|
+
import { useAuth } from "./useAuth.js";
|
|
4
|
+
import { GET_REDIRECT_RESULT_MUTATION_KEY } from "./mutation-keys.js";
|
|
5
5
|
/**
|
|
6
6
|
* Custom hook to retrieve redirect result after sign in with redirect.
|
|
7
7
|
* This hook utilizes the `useMutation` functionality to support creating new user credentials asynchronously.
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { useCallback, useEffect, useState } from "react";
|
|
2
2
|
import { onIdTokenChanged, getIdToken } from "firebase/auth";
|
|
3
|
-
import { useCurrentUser } from "./useCurrentUser";
|
|
4
|
-
import { useAuth } from "./useAuth";
|
|
3
|
+
import { useCurrentUser } from "./useCurrentUser.js";
|
|
4
|
+
import { useAuth } from "./useAuth.js";
|
|
5
5
|
/**
|
|
6
6
|
* A hook to manage the ID token.
|
|
7
7
|
* It monitors changes to the ID token and provides the token itself along with a refresh method to update the token when needed.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { useMutation } from "@tanstack/react-query";
|
|
2
2
|
import { linkWithCredential } from "firebase/auth";
|
|
3
|
-
import { LINK_WITH_CREDENTIAL_MUTATION_KEY } from "./mutation-keys";
|
|
3
|
+
import { LINK_WITH_CREDENTIAL_MUTATION_KEY } from "./mutation-keys.js";
|
|
4
4
|
/**
|
|
5
5
|
* Custom hook for handling linking of Firebase account to auth provider using credential
|
|
6
6
|
* This hook utilizes the `useMutation` mechanism to perform the sign-in operation.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { useMutation } from "@tanstack/react-query";
|
|
2
2
|
import { reauthenticateWithCredential } from "firebase/auth";
|
|
3
|
-
import { REAUTHENTICATE_WITH_CREDENTIAL_MUTATION_KEY } from "./mutation-keys";
|
|
3
|
+
import { REAUTHENTICATE_WITH_CREDENTIAL_MUTATION_KEY } from "./mutation-keys.js";
|
|
4
4
|
/**
|
|
5
5
|
* Custom hook to create a mutation for re-authenticating a user with a given credential.
|
|
6
6
|
* This hook utilizes useMutation from React Query to manage the asynchronous re-authentication
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { useMutation } from "@tanstack/react-query";
|
|
2
2
|
import { reauthenticateWithRedirect } from "firebase/auth";
|
|
3
|
-
import { REAUTHENTICATE_WITH_REDIRECT_MUTATION_KEY } from "./mutation-keys";
|
|
3
|
+
import { REAUTHENTICATE_WITH_REDIRECT_MUTATION_KEY } from "./mutation-keys.js";
|
|
4
4
|
/**
|
|
5
5
|
* Custom hook that provides a mutation to reauthenticate a user with a given authentication provider using redirection.
|
|
6
6
|
* This hook uses the `useMutation` hook from the React Query library to handle async mutation logic.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { useMutation } from "@tanstack/react-query";
|
|
2
2
|
import { sendEmailVerification } from "firebase/auth";
|
|
3
|
-
import { SEND_EMAIL_VERIFICATION_MUTATION_KEY } from "./mutation-keys";
|
|
3
|
+
import { SEND_EMAIL_VERIFICATION_MUTATION_KEY } from "./mutation-keys.js";
|
|
4
4
|
/**
|
|
5
5
|
* A custom hook to create a mutation for sending an email verification to a user using Firebase.
|
|
6
6
|
* This uses the `useMutation` hook from a query library and wraps it with specific configuration options.
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { useMutation } from "@tanstack/react-query";
|
|
2
2
|
import { signInAnonymously } from "firebase/auth";
|
|
3
|
-
import { useAuth } from "./useAuth";
|
|
4
|
-
import { SIGN_IN_ANONYMOUSLY_MUTATION_KEY } from "./mutation-keys";
|
|
3
|
+
import { useAuth } from "./useAuth.js";
|
|
4
|
+
import { SIGN_IN_ANONYMOUSLY_MUTATION_KEY } from "./mutation-keys.js";
|
|
5
5
|
/**
|
|
6
6
|
* Executes a mutation and returns users credentials
|
|
7
7
|
*
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { useMutation } from "@tanstack/react-query";
|
|
2
2
|
import { signInWithEmailAndPassword } from "firebase/auth";
|
|
3
|
-
import { useAuth } from "./useAuth";
|
|
4
|
-
import { SIGN_IN_WITH_EMAIL_AND_PASSWORD_MUTATION_KEY } from "./mutation-keys";
|
|
3
|
+
import { useAuth } from "./useAuth.js";
|
|
4
|
+
import { SIGN_IN_WITH_EMAIL_AND_PASSWORD_MUTATION_KEY } from "./mutation-keys.js";
|
|
5
5
|
/**
|
|
6
6
|
* Custom hook to perform a sign-in operation using email and password with Firebase Authentication.
|
|
7
7
|
* It utilizes the `useMutation` hook to manage the asynchronous operation and its state.
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { useMutation } from "@tanstack/react-query";
|
|
2
2
|
import { signInWithRedirect } from "firebase/auth";
|
|
3
|
-
import { useAuth } from "./useAuth";
|
|
4
|
-
import { SIGN_IN_WITH_REDIRECT_MUTATION_KEY } from "./mutation-keys";
|
|
3
|
+
import { useAuth } from "./useAuth.js";
|
|
4
|
+
import { SIGN_IN_WITH_REDIRECT_MUTATION_KEY } from "./mutation-keys.js";
|
|
5
5
|
/**
|
|
6
6
|
* Custom hook for handling Firebase authentication using sign-in with redirect functionality.
|
|
7
7
|
* This hook utilizes the `useMutation` mechanism to perform the sign-in operation.
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { useMutation } from "@tanstack/react-query";
|
|
2
2
|
import { signInWithCredential } from "firebase/auth";
|
|
3
|
-
import { SIGN_IN_WITH_CREDENTIAL_MUTATION_KEY } from "./mutation-keys";
|
|
4
|
-
import { useAuth } from "./useAuth";
|
|
3
|
+
import { SIGN_IN_WITH_CREDENTIAL_MUTATION_KEY } from "./mutation-keys.js";
|
|
4
|
+
import { useAuth } from "./useAuth.js";
|
|
5
5
|
/**
|
|
6
6
|
* Custom hook for handling sign in using credential
|
|
7
7
|
* This hook utilizes the `useMutation` mechanism to perform the sign-in operation.
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { useMutation } from "@tanstack/react-query";
|
|
2
2
|
import { signOut } from "firebase/auth";
|
|
3
|
-
import { SIGN_OUT_MUTATION_KEY } from "./mutation-keys";
|
|
4
|
-
import { useAuth } from "./useAuth";
|
|
3
|
+
import { SIGN_OUT_MUTATION_KEY } from "./mutation-keys.js";
|
|
4
|
+
import { useAuth } from "./useAuth.js";
|
|
5
5
|
/**
|
|
6
6
|
* Custom hook for handling the sign-out mutation using Firebase authentication.
|
|
7
7
|
* It wraps the useMutation hook to provide a sign-out function with Firebase.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { useMutation } from "@tanstack/react-query";
|
|
2
2
|
import { updateProfile } from "firebase/auth";
|
|
3
|
-
import { CREATE_USER_WITH_EMAIL_AND_PASSWORD_MUTATION_KEY } from "./mutation-keys";
|
|
3
|
+
import { CREATE_USER_WITH_EMAIL_AND_PASSWORD_MUTATION_KEY } from "./mutation-keys.js";
|
|
4
4
|
/**
|
|
5
5
|
* Custom hook to manage the mutation for updating a user's profile.
|
|
6
6
|
* Utilizes Firebase for updating the user's display name.
|
|
@@ -4,7 +4,7 @@ import { getAnalytics, setAnalyticsCollectionEnabled, setConsent } from "firebas
|
|
|
4
4
|
import { getRemoteConfig } from "firebase/remote-config";
|
|
5
5
|
import { connectFirestoreEmulator, initializeFirestore } from "firebase/firestore";
|
|
6
6
|
import { initializeApp } from "firebase/app";
|
|
7
|
-
import { FirebaseContext } from "./FirebaseContext";
|
|
7
|
+
import { FirebaseContext } from "./FirebaseContext.js";
|
|
8
8
|
/**
|
|
9
9
|
* FirebaseContextProvider component configures and provides Firebase services to its children.
|
|
10
10
|
* Initializes Firebase app and enables optional Firebase services such as Firestore, Auth, Analytics,
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./FirebaseContextProvider.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./FirebaseContextProvider.js";
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
export * from "./useFirestore.js";
|
|
2
|
+
export * from "./useAddDocMutation.js";
|
|
3
|
+
export * from "./useBatchWrite.js";
|
|
4
|
+
export * from "./useCollectionReference.js";
|
|
5
|
+
export * from "./useCompositeFilter.js";
|
|
6
|
+
export * from "./useCountQuery.js";
|
|
7
|
+
export * from "./useDeleteDocMutation.js";
|
|
8
|
+
export * from "./useDocReference.js";
|
|
9
|
+
export * from "./useDocReferences.js";
|
|
10
|
+
export * from "./useGetDocData.js";
|
|
11
|
+
export * from "./useInfiniteQuery.js";
|
|
12
|
+
export * from "./useQuery.js";
|
|
13
|
+
export * from "./useRunTransaction.js";
|
|
14
|
+
export * from "./useSetDocMutation.js";
|
|
15
|
+
export * from "./useUpdateDocMutation.js";
|
|
16
|
+
export * from "./useGetRealtimeDocData.js";
|
|
17
|
+
export * from "./useQueryConstraints.js";
|
|
18
|
+
export * from "./useEnsureDoc.js";
|
|
19
|
+
export * from "./utils/getDocData.js";
|
|
20
|
+
export * from "./utils/getDocSnap.js";
|
|
21
|
+
export * from "./utils/getDocRef.js";
|
|
22
|
+
export * from "./utils/buildQueryConstraint.js";
|
|
23
|
+
export * from "./utils/buildCompositeFilter.js";
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
export * from "./useFirestore.js";
|
|
2
|
+
export * from "./useAddDocMutation.js";
|
|
3
|
+
export * from "./useBatchWrite.js";
|
|
4
|
+
export * from "./useCollectionReference.js";
|
|
5
|
+
export * from "./useCompositeFilter.js";
|
|
6
|
+
export * from "./useCountQuery.js";
|
|
7
|
+
export * from "./useDeleteDocMutation.js";
|
|
8
|
+
export * from "./useDocReference.js";
|
|
9
|
+
export * from "./useDocReferences.js";
|
|
10
|
+
export * from "./useGetDocData.js";
|
|
11
|
+
export * from "./useInfiniteQuery.js";
|
|
12
|
+
export * from "./useQuery.js";
|
|
13
|
+
export * from "./useRunTransaction.js";
|
|
14
|
+
export * from "./useSetDocMutation.js";
|
|
15
|
+
export * from "./useUpdateDocMutation.js";
|
|
16
|
+
export * from "./useGetRealtimeDocData.js";
|
|
17
|
+
export * from "./useQueryConstraints.js";
|
|
18
|
+
export * from "./useEnsureDoc.js";
|
|
19
|
+
export * from "./utils/getDocData.js";
|
|
20
|
+
export * from "./utils/getDocSnap.js";
|
|
21
|
+
export * from "./utils/getDocRef.js";
|
|
22
|
+
export * from "./utils/buildQueryConstraint.js";
|
|
23
|
+
export * from "./utils/buildCompositeFilter.js";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { UseMutationOptions } from "@tanstack/react-query";
|
|
2
2
|
import { WithFieldValue, CollectionReference } from "firebase/firestore";
|
|
3
3
|
import { FirebaseError } from "firebase/app";
|
|
4
|
-
import { AppModel } from "../../types";
|
|
4
|
+
import { AppModel } from "../../types/index.js";
|
|
5
5
|
/**
|
|
6
6
|
* @inline
|
|
7
7
|
*/
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { useMutation } from "@tanstack/react-query";
|
|
2
2
|
import { writeBatch } from "firebase/firestore";
|
|
3
|
-
import { useFirestore } from "./useFirestore";
|
|
3
|
+
import { useFirestore } from "./useFirestore.js";
|
|
4
4
|
/**
|
|
5
5
|
* Custom hook to perform batch write operations using Firestore.
|
|
6
6
|
*
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { collection } from "firebase/firestore";
|
|
2
2
|
import { useMemo } from "react";
|
|
3
|
-
import { useFirestore } from "./useFirestore";
|
|
3
|
+
import { useFirestore } from "./useFirestore.js";
|
|
4
4
|
/**
|
|
5
5
|
* Gets a `CollectionReference` instance that refers to a subcollection of
|
|
6
6
|
* `reference` at the specified relative path.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { and, or } from "firebase/firestore";
|
|
2
2
|
import { useMemo } from "react";
|
|
3
|
-
import { buildCompositeFilter } from "./utils/buildCompositeFilter";
|
|
3
|
+
import { buildCompositeFilter } from "./utils/buildCompositeFilter.js";
|
|
4
4
|
/**
|
|
5
5
|
* A custom hook that constructs a composite or where query filter based on the provided query structure.
|
|
6
6
|
* It recursively builds query constraints using logical "or" or "and" operators.
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { CollectionReference, QueryConstraint, QueryNonFilterConstraint } from "firebase/firestore";
|
|
2
2
|
import { UseQueryResult, UseQueryOptions as UseReactQueryOptions } from "@tanstack/react-query";
|
|
3
|
-
import { AppModel } from "../../types";
|
|
4
|
-
import { QueryFilterConstraint } from "./utils/buildCompositeFilter";
|
|
3
|
+
import { AppModel } from "../../types/index.js";
|
|
4
|
+
import { QueryFilterConstraint } from "./utils/buildCompositeFilter.js";
|
|
5
5
|
/**
|
|
6
6
|
* @inline
|
|
7
7
|
*/
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { UseMutationOptions } from "@tanstack/react-query";
|
|
2
2
|
import { WithFieldValue, DocumentReference } from "firebase/firestore";
|
|
3
3
|
import { FirebaseError } from "firebase/app";
|
|
4
|
-
import { AppModel } from "../../types";
|
|
4
|
+
import { AppModel } from "../../types/index.js";
|
|
5
5
|
/**
|
|
6
6
|
* @inline
|
|
7
7
|
*/
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { useMemo } from "react";
|
|
2
|
-
import { useFirestore } from "./useFirestore";
|
|
3
|
-
import { getDocRef } from "./utils/getDocRef";
|
|
2
|
+
import { useFirestore } from "./useFirestore.js";
|
|
3
|
+
import { getDocRef } from "./utils/getDocRef.js";
|
|
4
4
|
/**
|
|
5
5
|
* Gets a `CollectionReference` instance
|
|
6
6
|
*
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { useMemo } from "react";
|
|
2
|
-
import { useFirestore } from "./useFirestore";
|
|
3
|
-
import { getDocRef } from "./utils/getDocRef";
|
|
2
|
+
import { useFirestore } from "./useFirestore.js";
|
|
3
|
+
import { getDocRef } from "./utils/getDocRef.js";
|
|
4
4
|
/**
|
|
5
5
|
* Gets `CollectionReference` instances
|
|
6
6
|
*
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { UseQueryOptions } from "@tanstack/react-query";
|
|
2
|
-
import { AppModel } from "../../types";
|
|
3
|
-
import { GetDocDataOptions } from "./utils/getDocData";
|
|
2
|
+
import { AppModel } from "../../types/index.js";
|
|
3
|
+
import { GetDocDataOptions } from "./utils/getDocData.js";
|
|
4
4
|
/**
|
|
5
5
|
* @inline
|
|
6
6
|
*/
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { useQuery } from "@tanstack/react-query";
|
|
2
2
|
import { getDoc, setDoc } from "firebase/firestore";
|
|
3
|
-
import { getDocRef } from "./utils/getDocRef";
|
|
4
|
-
import { getDocSnap } from "./utils/getDocSnap";
|
|
5
|
-
import { useFirestore } from "./useFirestore";
|
|
3
|
+
import { getDocRef } from "./utils/getDocRef.js";
|
|
4
|
+
import { getDocSnap } from "./utils/getDocSnap.js";
|
|
5
|
+
import { useFirestore } from "./useFirestore.js";
|
|
6
6
|
/**
|
|
7
7
|
* This hook checks if a doc with a requested reference exists.
|
|
8
8
|
* It creates a document with requested data if it does not exist.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { UseQueryOptions } from "@tanstack/react-query";
|
|
2
|
-
import { AppModel } from "../../types";
|
|
3
|
-
import { GetDocDataOptions } from "./utils/getDocData";
|
|
2
|
+
import { AppModel } from "../../types/index.js";
|
|
3
|
+
import { GetDocDataOptions } from "./utils/getDocData.js";
|
|
4
4
|
/**
|
|
5
5
|
* @inline
|
|
6
6
|
*/
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { useQuery } from "@tanstack/react-query";
|
|
2
|
-
import { useFirestore } from "./useFirestore";
|
|
3
|
-
import { getDocData } from "./utils/getDocData";
|
|
2
|
+
import { useFirestore } from "./useFirestore.js";
|
|
3
|
+
import { getDocData } from "./utils/getDocData.js";
|
|
4
4
|
/**
|
|
5
5
|
* Executes a query on a Firestore data source and returns the resulting document.
|
|
6
6
|
*
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { onSnapshot } from "firebase/firestore";
|
|
2
2
|
import { useEffect, useMemo, useState } from "react";
|
|
3
|
-
import { useDocReference } from "./useDocReference";
|
|
3
|
+
import { useDocReference } from "./useDocReference.js";
|
|
4
4
|
/**
|
|
5
5
|
* A hook to get realtime updates to a firestore document.
|
|
6
6
|
*
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { CollectionReference, QueryConstraint, QueryNonFilterConstraint } from "firebase/firestore";
|
|
2
2
|
import { UseInfiniteQueryOptions as UseReactInfiniteQueryOptions, QueryKey, UseInfiniteQueryResult, InfiniteData } from "@tanstack/react-query";
|
|
3
|
-
import { AppModel } from "../../types";
|
|
4
|
-
import { QueryFilterConstraint } from "./utils/buildCompositeFilter";
|
|
3
|
+
import { AppModel } from "../../types/index.js";
|
|
4
|
+
import { QueryFilterConstraint } from "./utils/buildCompositeFilter.js";
|
|
5
5
|
/**
|
|
6
6
|
* @inline
|
|
7
7
|
*/
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { CollectionReference, QueryConstraint, QueryNonFilterConstraint } from "firebase/firestore";
|
|
2
2
|
import { UseQueryResult, UseQueryOptions as UseReactQueryOptions } from "@tanstack/react-query";
|
|
3
|
-
import { AppModel } from "../../types";
|
|
4
|
-
import { QueryFilterConstraint } from "./utils/buildCompositeFilter";
|
|
3
|
+
import { AppModel } from "../../types/index.js";
|
|
4
|
+
import { QueryFilterConstraint } from "./utils/buildCompositeFilter.js";
|
|
5
5
|
/**
|
|
6
6
|
* @inline
|
|
7
7
|
*/
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { QueryNonFilterConstraint } from "firebase/firestore";
|
|
2
|
-
import { AppModel } from "../../types/AppModel";
|
|
3
|
-
import { NonFilterQueryConstraint } from "../../types/QueryConstraints";
|
|
2
|
+
import { AppModel } from "../../types/AppModel.js";
|
|
3
|
+
import { NonFilterQueryConstraint } from "../../types/QueryConstraints.js";
|
|
4
4
|
/**
|
|
5
5
|
* @inline
|
|
6
6
|
*/
|