@bigbinary/neeto-commons-rn 1.8.4 → 2.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +64 -0
- package/eslint-config/index.js +366 -0
- package/eslint-config/rules/no-dangling-constants.js +35 -0
- package/eslint-config/rules/no-redundant-string-templates.js +85 -0
- package/lib/typescript/api/app_version.d.ts +10 -0
- package/lib/typescript/api/app_version.d.ts.map +1 -0
- package/lib/typescript/api/auth.d.ts +26 -0
- package/lib/typescript/api/auth.d.ts.map +1 -0
- package/lib/typescript/api/global_roles.d.ts +10 -0
- package/lib/typescript/api/global_roles.d.ts.map +1 -0
- package/lib/typescript/api/notifications.d.ts +38 -0
- package/lib/typescript/api/notifications.d.ts.map +1 -0
- package/lib/typescript/api/organization_roles.d.ts +11 -0
- package/lib/typescript/api/organization_roles.d.ts.map +1 -0
- package/lib/typescript/api/profile.d.ts +15 -0
- package/lib/typescript/api/profile.d.ts.map +1 -0
- package/lib/typescript/api/team_members.d.ts +34 -0
- package/lib/typescript/api/team_members.d.ts.map +1 -0
- package/lib/typescript/auth/index.d.ts +3 -0
- package/lib/typescript/auth/index.d.ts.map +1 -0
- package/lib/typescript/components/AppVersion.d.ts +2 -0
- package/lib/typescript/components/AppVersion.d.ts.map +1 -0
- package/lib/typescript/components/BottomSheet.d.ts +9 -0
- package/lib/typescript/components/BottomSheet.d.ts.map +1 -0
- package/lib/typescript/components/BottomSheetMenu.d.ts +7 -0
- package/lib/typescript/components/BottomSheetMenu.d.ts.map +1 -0
- package/lib/typescript/components/ConfirmSheet.d.ts +15 -0
- package/lib/typescript/components/ConfirmSheet.d.ts.map +1 -0
- package/lib/typescript/components/EmptyView.d.ts +19 -0
- package/lib/typescript/components/EmptyView.d.ts.map +1 -0
- package/lib/typescript/components/Header/BaseHeader.d.ts +7 -0
- package/lib/typescript/components/Header/BaseHeader.d.ts.map +1 -0
- package/lib/typescript/components/Header/ScreenHeader.d.ts +7 -0
- package/lib/typescript/components/Header/ScreenHeader.d.ts.map +1 -0
- package/lib/typescript/components/Header.d.ts +22 -0
- package/lib/typescript/components/Header.d.ts.map +1 -0
- package/lib/typescript/components/HyperlinkText.d.ts +17 -0
- package/lib/typescript/components/HyperlinkText.d.ts.map +1 -0
- package/lib/typescript/components/LineLoader.d.ts +13 -0
- package/lib/typescript/components/LineLoader.d.ts.map +1 -0
- package/lib/typescript/components/NotificationIcon.d.ts +6 -0
- package/lib/typescript/components/NotificationIcon.d.ts.map +1 -0
- package/lib/typescript/components/NotificationPreferenceList.d.ts +14 -0
- package/lib/typescript/components/NotificationPreferenceList.d.ts.map +1 -0
- package/lib/typescript/components/OfflineScreen.d.ts +7 -0
- package/lib/typescript/components/OfflineScreen.d.ts.map +1 -0
- package/lib/typescript/components/OrganizationItem.d.ts +8 -0
- package/lib/typescript/components/OrganizationItem.d.ts.map +1 -0
- package/lib/typescript/components/SocialButton.d.ts +11 -0
- package/lib/typescript/components/SocialButton.d.ts.map +1 -0
- package/lib/typescript/components/TextWithUrl.d.ts +7 -0
- package/lib/typescript/components/TextWithUrl.d.ts.map +1 -0
- package/lib/typescript/components/ToggleSwitch.d.ts +8 -0
- package/lib/typescript/components/ToggleSwitch.d.ts.map +1 -0
- package/lib/typescript/components/WorkspaceSwitcherPane.d.ts +9 -0
- package/lib/typescript/components/WorkspaceSwitcherPane.d.ts.map +1 -0
- package/lib/typescript/components/constants.d.ts +7 -0
- package/lib/typescript/components/constants.d.ts.map +1 -0
- package/lib/typescript/components/index.d.ts +14 -0
- package/lib/typescript/components/index.d.ts.map +1 -0
- package/lib/typescript/config/axios/caseConversion.d.ts +4 -0
- package/lib/typescript/config/axios/caseConversion.d.ts.map +1 -0
- package/lib/typescript/config/axios/constants.d.ts +4 -0
- package/lib/typescript/config/axios/constants.d.ts.map +1 -0
- package/lib/typescript/config/axios/index.d.ts +13 -0
- package/lib/typescript/config/axios/index.d.ts.map +1 -0
- package/lib/typescript/config/axios/networkErrorHandler.d.ts +5 -0
- package/lib/typescript/config/axios/networkErrorHandler.d.ts.map +1 -0
- package/lib/typescript/config/axios/paramsSerializer.d.ts +3 -0
- package/lib/typescript/config/axios/paramsSerializer.d.ts.map +1 -0
- package/lib/typescript/config/axios/types.d.ts +10 -0
- package/lib/typescript/config/axios/types.d.ts.map +1 -0
- package/lib/typescript/config/bugsnag.d.ts +4 -0
- package/lib/typescript/config/bugsnag.d.ts.map +1 -0
- package/lib/typescript/config/dayjs.d.ts +23 -0
- package/lib/typescript/config/dayjs.d.ts.map +1 -0
- package/lib/typescript/config/googleSignin.d.ts +2 -0
- package/lib/typescript/config/googleSignin.d.ts.map +1 -0
- package/lib/typescript/config/index.d.ts +2 -0
- package/lib/typescript/config/index.d.ts.map +1 -0
- package/lib/typescript/config/validations.d.ts +2 -0
- package/lib/typescript/config/validations.d.ts.map +1 -0
- package/lib/typescript/constants/index.d.ts +8 -0
- package/lib/typescript/constants/index.d.ts.map +1 -0
- package/lib/typescript/contexts/index.d.ts +2 -0
- package/lib/typescript/contexts/index.d.ts.map +1 -0
- package/lib/typescript/contexts/localization.d.ts +26 -0
- package/lib/typescript/contexts/localization.d.ts.map +1 -0
- package/lib/typescript/helpers/asyncStore.d.ts +6 -0
- package/lib/typescript/helpers/asyncStore.d.ts.map +1 -0
- package/lib/typescript/helpers/index.d.ts +2 -0
- package/lib/typescript/helpers/index.d.ts.map +1 -0
- package/lib/typescript/helpers/keychain.d.ts +4 -0
- package/lib/typescript/helpers/keychain.d.ts.map +1 -0
- package/lib/typescript/helpers/notifications/apnsToken.d.ts +2 -0
- package/lib/typescript/helpers/notifications/apnsToken.d.ts.map +1 -0
- package/lib/typescript/helpers/notifications/constants.d.ts +5 -0
- package/lib/typescript/helpers/notifications/constants.d.ts.map +1 -0
- package/lib/typescript/helpers/notifications/getDeviceToken.d.ts +2 -0
- package/lib/typescript/helpers/notifications/getDeviceToken.d.ts.map +1 -0
- package/lib/typescript/helpers/notifications/index.d.ts +4 -0
- package/lib/typescript/helpers/notifications/index.d.ts.map +1 -0
- package/lib/typescript/helpers/notifications/registerBackgroundHandlers.d.ts +3 -0
- package/lib/typescript/helpers/notifications/registerBackgroundHandlers.d.ts.map +1 -0
- package/lib/typescript/helpers/notifications/types.d.ts +19 -0
- package/lib/typescript/helpers/notifications/types.d.ts.map +1 -0
- package/lib/typescript/helpers/notifications/usePushNotification.d.ts +7 -0
- package/lib/typescript/helpers/notifications/usePushNotification.d.ts.map +1 -0
- package/lib/typescript/helpers/scale.d.ts +2 -0
- package/lib/typescript/helpers/scale.d.ts.map +1 -0
- package/lib/typescript/helpers/utils.d.ts +5 -0
- package/lib/typescript/helpers/utils.d.ts.map +1 -0
- package/lib/typescript/hooks/index.d.ts +3 -0
- package/lib/typescript/hooks/index.d.ts.map +1 -0
- package/lib/typescript/hooks/query/queryKeys.d.ts +9 -0
- package/lib/typescript/hooks/query/queryKeys.d.ts.map +1 -0
- package/lib/typescript/hooks/query/useAppVersionApi.d.ts +2 -0
- package/lib/typescript/hooks/query/useAppVersionApi.d.ts.map +1 -0
- package/lib/typescript/hooks/query/useAuth.d.ts +27 -0
- package/lib/typescript/hooks/query/useAuth.d.ts.map +1 -0
- package/lib/typescript/hooks/query/useNotification.d.ts +19 -0
- package/lib/typescript/hooks/query/useNotification.d.ts.map +1 -0
- package/lib/typescript/hooks/query/useProfile.d.ts +9 -0
- package/lib/typescript/hooks/query/useProfile.d.ts.map +1 -0
- package/lib/typescript/hooks/query/useRolesApi.d.ts +4 -0
- package/lib/typescript/hooks/query/useRolesApi.d.ts.map +1 -0
- package/lib/typescript/hooks/query/useTeamMembersApi.d.ts +23 -0
- package/lib/typescript/hooks/query/useTeamMembersApi.d.ts.map +1 -0
- package/lib/typescript/hooks/useAppState.d.ts +2 -0
- package/lib/typescript/hooks/useAppState.d.ts.map +1 -0
- package/lib/typescript/hooks/usePushNotificationPermissions.d.ts +2 -0
- package/lib/typescript/hooks/usePushNotificationPermissions.d.ts.map +1 -0
- package/lib/typescript/index.d.ts +9 -0
- package/lib/typescript/index.d.ts.map +1 -0
- package/lib/typescript/initializers/index.d.ts +3 -0
- package/lib/typescript/initializers/index.d.ts.map +1 -0
- package/lib/typescript/initializers/logRocket.d.ts +2 -0
- package/lib/typescript/initializers/logRocket.d.ts.map +1 -0
- package/lib/typescript/localization/i18n.d.ts +4 -0
- package/lib/typescript/localization/i18n.d.ts.map +1 -0
- package/lib/typescript/localization/index.d.ts +7 -0
- package/lib/typescript/localization/index.d.ts.map +1 -0
- package/lib/typescript/navigation/navigationService.d.ts +14 -0
- package/lib/typescript/navigation/navigationService.d.ts.map +1 -0
- package/lib/typescript/navigation/screenNames.d.ts +10 -0
- package/lib/typescript/navigation/screenNames.d.ts.map +1 -0
- package/lib/typescript/navigation/stacks.d.ts +3 -0
- package/lib/typescript/navigation/stacks.d.ts.map +1 -0
- package/lib/typescript/navigation/types.d.ts +24 -0
- package/lib/typescript/navigation/types.d.ts.map +1 -0
- package/lib/typescript/providers/NeetoCommonsRNProvider.d.ts +14 -0
- package/lib/typescript/providers/NeetoCommonsRNProvider.d.ts.map +1 -0
- package/lib/typescript/providers/index.d.ts +2 -0
- package/lib/typescript/providers/index.d.ts.map +1 -0
- package/lib/typescript/screens/NotificationsScreen.d.ts +11 -0
- package/lib/typescript/screens/NotificationsScreen.d.ts.map +1 -0
- package/lib/typescript/screens/authentication/AuthOptions.d.ts +7 -0
- package/lib/typescript/screens/authentication/AuthOptions.d.ts.map +1 -0
- package/lib/typescript/screens/authentication/IncompleteOnboardingInfo.d.ts +4 -0
- package/lib/typescript/screens/authentication/IncompleteOnboardingInfo.d.ts.map +1 -0
- package/lib/typescript/screens/authentication/LoginScreen.d.ts +3 -0
- package/lib/typescript/screens/authentication/LoginScreen.d.ts.map +1 -0
- package/lib/typescript/screens/authentication/OTPVerificationScreen.d.ts +4 -0
- package/lib/typescript/screens/authentication/OTPVerificationScreen.d.ts.map +1 -0
- package/lib/typescript/screens/authentication/Organization.d.ts +11 -0
- package/lib/typescript/screens/authentication/Organization.d.ts.map +1 -0
- package/lib/typescript/screens/authentication/SubDomainScreen.d.ts +4 -0
- package/lib/typescript/screens/authentication/SubDomainScreen.d.ts.map +1 -0
- package/lib/typescript/screens/authentication/constants.d.ts +17 -0
- package/lib/typescript/screens/authentication/constants.d.ts.map +1 -0
- package/lib/typescript/screens/index.d.ts +11 -0
- package/lib/typescript/screens/index.d.ts.map +1 -0
- package/lib/typescript/screens/profile/ChatWidget.d.ts +3 -0
- package/lib/typescript/screens/profile/ChatWidget.d.ts.map +1 -0
- package/lib/typescript/screens/profile/ProfileScreen.d.ts +12 -0
- package/lib/typescript/screens/profile/ProfileScreen.d.ts.map +1 -0
- package/lib/typescript/screens/profile/UserData.d.ts +21 -0
- package/lib/typescript/screens/profile/UserData.d.ts.map +1 -0
- package/lib/typescript/screens/team_members/Add.d.ts +4 -0
- package/lib/typescript/screens/team_members/Add.d.ts.map +1 -0
- package/lib/typescript/screens/team_members/Card.d.ts +9 -0
- package/lib/typescript/screens/team_members/Card.d.ts.map +1 -0
- package/lib/typescript/screens/team_members/Checkbox.d.ts +11 -0
- package/lib/typescript/screens/team_members/Checkbox.d.ts.map +1 -0
- package/lib/typescript/screens/team_members/Edit.d.ts +5 -0
- package/lib/typescript/screens/team_members/Edit.d.ts.map +1 -0
- package/lib/typescript/screens/team_members/Email.d.ts +11 -0
- package/lib/typescript/screens/team_members/Email.d.ts.map +1 -0
- package/lib/typescript/screens/team_members/LoadingCard.d.ts +6 -0
- package/lib/typescript/screens/team_members/LoadingCard.d.ts.map +1 -0
- package/lib/typescript/screens/team_members/ProductSelect.d.ts +11 -0
- package/lib/typescript/screens/team_members/ProductSelect.d.ts.map +1 -0
- package/lib/typescript/screens/team_members/RolesRadioGroup.d.ts +14 -0
- package/lib/typescript/screens/team_members/RolesRadioGroup.d.ts.map +1 -0
- package/lib/typescript/screens/team_members/SaveButtons.d.ts +10 -0
- package/lib/typescript/screens/team_members/SaveButtons.d.ts.map +1 -0
- package/lib/typescript/screens/team_members/constants.d.ts +16 -0
- package/lib/typescript/screens/team_members/constants.d.ts.map +1 -0
- package/lib/typescript/screens/team_members/index.d.ts +16 -0
- package/lib/typescript/screens/team_members/index.d.ts.map +1 -0
- package/lib/typescript/screens/team_members/utils.d.ts +20 -0
- package/lib/typescript/screens/team_members/utils.d.ts.map +1 -0
- package/lib/typescript/slices/auth.d.ts +31 -0
- package/lib/typescript/slices/auth.d.ts.map +1 -0
- package/lib/typescript/slices/index.d.ts +6 -0
- package/lib/typescript/slices/index.d.ts.map +1 -0
- package/lib/typescript/store/hooks.d.ts +6 -0
- package/lib/typescript/store/hooks.d.ts.map +1 -0
- package/lib/typescript/store/index.d.ts +18 -0
- package/lib/typescript/store/index.d.ts.map +1 -0
- package/lib/typescript/store/utils.d.ts +8 -0
- package/lib/typescript/store/utils.d.ts.map +1 -0
- package/lib/typescript/utils/apiHelpers.d.ts +5 -0
- package/lib/typescript/utils/apiHelpers.d.ts.map +1 -0
- package/package.json +267 -71
- package/src/api/app_version.ts +24 -0
- package/src/api/auth.ts +68 -0
- package/src/api/global_roles.ts +15 -0
- package/src/api/notifications.ts +66 -0
- package/src/api/organization_roles.ts +17 -0
- package/src/api/profile.ts +17 -0
- package/src/api/team_members.ts +39 -0
- package/src/assets/images/apple-logo.svg +3 -0
- package/src/assets/images/google-logo.svg +6 -0
- package/src/auth/index.ts +2 -0
- package/src/components/AppVersion.ts +154 -0
- package/src/components/BottomSheet.ts +9 -0
- package/src/components/BottomSheetMenu.ts +6 -0
- package/src/components/ConfirmSheet.ts +15 -0
- package/src/components/EmptyView.tsx +40 -0
- package/src/components/Header/BaseHeader.ts +6 -0
- package/src/components/Header/ScreenHeader.ts +6 -0
- package/src/components/Header.tsx +139 -0
- package/src/components/HyperlinkText.tsx +34 -0
- package/src/components/LineLoader.tsx +23 -0
- package/src/components/NotificationIcon.tsx +53 -0
- package/src/components/NotificationPreferenceList.tsx +132 -0
- package/src/components/OfflineScreen.tsx +89 -0
- package/src/components/OrganizationItem.tsx +67 -0
- package/src/components/SocialButton.tsx +78 -0
- package/src/components/TextWithUrl.ts +6 -0
- package/src/components/ToggleSwitch.tsx +89 -0
- package/src/components/WorkspaceSwitcherPane.tsx +113 -0
- package/src/components/constants.ts +16 -0
- package/src/components/index.ts +13 -0
- package/src/config/axios/caseConversion.ts +60 -0
- package/src/config/axios/constants.ts +17 -0
- package/src/config/axios/index.ts +291 -0
- package/src/config/axios/networkErrorHandler.ts +47 -0
- package/src/config/axios/paramsSerializer.ts +9 -0
- package/src/config/axios/types.ts +13 -0
- package/src/config/bugsnag.ts +48 -0
- package/src/config/dayjs.ts +42 -0
- package/src/config/googleSignin.ts +36 -0
- package/src/config/index.ts +11 -0
- package/src/config/validations.ts +15 -0
- package/src/constants/index.ts +9 -0
- package/src/contexts/index.ts +4 -0
- package/src/contexts/localization.tsx +183 -0
- package/src/helpers/asyncStore.ts +39 -0
- package/src/helpers/index.ts +1 -0
- package/src/helpers/keychain.ts +46 -0
- package/src/helpers/notifications/apnsToken.ts +69 -0
- package/src/helpers/notifications/constants.ts +34 -0
- package/src/helpers/notifications/getDeviceToken.ts +17 -0
- package/src/helpers/notifications/index.ts +3 -0
- package/src/helpers/notifications/registerBackgroundHandlers.ts +62 -0
- package/src/helpers/notifications/types.ts +27 -0
- package/src/helpers/notifications/usePushNotification.ts +208 -0
- package/src/helpers/scale.ts +4 -0
- package/src/helpers/utils.ts +68 -0
- package/src/hooks/index.ts +2 -0
- package/src/hooks/query/queryKeys.ts +8 -0
- package/src/hooks/query/useAppVersionApi.ts +12 -0
- package/src/hooks/query/useAuth.ts +253 -0
- package/src/hooks/query/useNotification.ts +130 -0
- package/src/hooks/query/useProfile.ts +21 -0
- package/src/hooks/query/useRolesApi.ts +25 -0
- package/src/hooks/query/useTeamMembersApi.ts +109 -0
- package/src/hooks/useAppState.ts +16 -0
- package/src/hooks/usePushNotificationPermissions.ts +111 -0
- package/src/index.ts +8 -0
- package/src/initializers/index.ts +3 -0
- package/src/initializers/logRocket.ts +25 -0
- package/src/localization/i18n.ts +19 -0
- package/src/localization/index.ts +14 -0
- package/src/navigation/navigationService.ts +37 -0
- package/src/navigation/screenNames.ts +11 -0
- package/src/navigation/stacks.tsx +30 -0
- package/src/navigation/types.ts +19 -0
- package/src/providers/NeetoCommonsRNProvider.tsx +77 -0
- package/src/providers/index.ts +1 -0
- package/src/screens/NotificationsScreen.tsx +290 -0
- package/src/screens/authentication/AuthOptions.tsx +254 -0
- package/src/screens/authentication/IncompleteOnboardingInfo.tsx +110 -0
- package/src/screens/authentication/LoginScreen.tsx +170 -0
- package/src/screens/authentication/OTPVerificationScreen.tsx +235 -0
- package/src/screens/authentication/Organization.tsx +102 -0
- package/src/screens/authentication/SubDomainScreen.tsx +176 -0
- package/src/screens/authentication/constants.ts +30 -0
- package/src/screens/index.ts +10 -0
- package/src/screens/profile/ChatWidget.tsx +8 -0
- package/src/screens/profile/ProfileScreen.tsx +251 -0
- package/src/screens/profile/UserData.tsx +92 -0
- package/src/screens/team_members/Add.tsx +248 -0
- package/src/screens/team_members/Card.tsx +124 -0
- package/src/screens/team_members/Checkbox.tsx +88 -0
- package/src/screens/team_members/Edit.tsx +171 -0
- package/src/screens/team_members/Email.tsx +59 -0
- package/src/screens/team_members/LoadingCard.tsx +75 -0
- package/src/screens/team_members/ProductSelect.tsx +218 -0
- package/src/screens/team_members/RolesRadioGroup.tsx +135 -0
- package/src/screens/team_members/SaveButtons.tsx +62 -0
- package/src/screens/team_members/constants.ts +33 -0
- package/src/screens/team_members/index.tsx +223 -0
- package/src/screens/team_members/utils.ts +84 -0
- package/src/slices/auth.ts +86 -0
- package/src/slices/index.ts +7 -0
- package/src/store/hooks.ts +8 -0
- package/src/store/index.ts +47 -0
- package/src/store/utils.ts +36 -0
- package/src/utils/apiHelpers.ts +7 -0
- package/types/assets.d.ts +38 -0
- package/types/neeto-icons-rn.d.ts +548 -0
- package/api/app_version.js +0 -1
- package/api/auth.js +0 -1
- package/api/global_roles.js +0 -1
- package/api/notifications.js +0 -1
- package/api/organization_roles.js +0 -1
- package/api/profile.js +0 -1
- package/api/team_members.js +0 -1
- package/auth/index.d.ts +0 -9
- package/auth/index.js +0 -1
- package/components/AppVersion.js +0 -1
- package/components/BottomSheet.js +0 -1
- package/components/BottomSheetMenu.js +0 -1
- package/components/ConfirmSheet.js +0 -1
- package/components/EmptyView.js +0 -1
- package/components/Header/BaseHeader.js +0 -1
- package/components/Header/ScreenHeader.js +0 -1
- package/components/Header.js +0 -1
- package/components/HyperlinkText.js +0 -1
- package/components/LineLoader.js +0 -1
- package/components/NotificationIcon.js +0 -1
- package/components/OfflineScreen.js +0 -1
- package/components/TextWithUrl.js +0 -1
- package/components/WorkspaceSwitcherPane.js +0 -1
- package/components/constants.js +0 -1
- package/components/index.js +0 -1
- package/config/axios/caseConversion.js +0 -1
- package/config/axios/constants.js +0 -1
- package/config/axios/index.js +0 -1
- package/config/axios/networkErrorHandler.js +0 -1
- package/config/axios/paramsSerializer.js +0 -1
- package/config/bugsnag.js +0 -1
- package/config/dayjs.js +0 -1
- package/config/googleSignin.js +0 -1
- package/config/index.js +0 -1
- package/config/validations.js +0 -1
- package/constants/index.d.ts +0 -5
- package/constants/index.js +0 -1
- package/contexts/index.js +0 -0
- package/contexts/localization.js +0 -1
- package/helpers/asyncStore.js +0 -1
- package/helpers/index.d.ts +0 -13
- package/helpers/index.js +0 -1
- package/helpers/keychain.d.ts +0 -4
- package/helpers/keychain.js +0 -1
- package/helpers/notifications/index.d.ts +0 -8
- package/helpers/notifications/index.js +0 -1
- package/helpers/notifications/usePushNotification.js +0 -1
- package/helpers/scale.js +0 -1
- package/helpers/utils.js +0 -1
- package/hooks/index.d.ts +0 -11
- package/hooks/index.js +0 -1
- package/hooks/query/constants.js +0 -1
- package/hooks/query/queryKeys.js +0 -1
- package/hooks/query/useAppVersionApi.js +0 -1
- package/hooks/query/useAuth.js +0 -1
- package/hooks/query/useNotification.js +0 -1
- package/hooks/query/useProfile.js +0 -1
- package/hooks/query/useRolesApi.js +0 -1
- package/hooks/query/useTeamMembersApi.js +0 -1
- package/hooks/useAppState.js +0 -1
- package/hooks/usePushNotificationPermissions.js +0 -1
- package/initializers/index.js +0 -1
- package/initializers/logRocket.js +0 -1
- package/localization/index.js +0 -1
- package/localization/translations/it.json +0 -13
- package/navigation/navigationService.js +0 -1
- package/navigation/screenNames.js +0 -1
- package/navigation/stacks.js +0 -1
- package/providers/NeetoCommonsRNProvider.js +0 -1
- package/providers/index.d.ts +0 -16
- package/providers/index.js +0 -1
- package/screens/NotificationsScreen.js +0 -1
- package/screens/authentication/AuthOptions.js +0 -1
- package/screens/authentication/IncompleteOnboardingInfo.js +0 -1
- package/screens/authentication/LoginScreen.js +0 -1
- package/screens/authentication/OTPVerificationScreen.js +0 -1
- package/screens/authentication/Organization.js +0 -1
- package/screens/authentication/SubDomainScreen.js +0 -1
- package/screens/authentication/constants.js +0 -1
- package/screens/index.js +0 -1
- package/screens/profile/ChatWidget.js +0 -1
- package/screens/profile/ProfileScreen.js +0 -1
- package/screens/profile/UserData.js +0 -1
- package/screens/team_members/Add.js +0 -1
- package/screens/team_members/Card.js +0 -1
- package/screens/team_members/Checkbox.js +0 -1
- package/screens/team_members/Edit.js +0 -1
- package/screens/team_members/Email.js +0 -1
- package/screens/team_members/LoadingCard.js +0 -1
- package/screens/team_members/ProductSelect.js +0 -1
- package/screens/team_members/RolesRadioGroup.js +0 -1
- package/screens/team_members/SaveButtons.js +0 -1
- package/screens/team_members/constants.js +0 -1
- package/screens/team_members/index.js +0 -1
- package/screens/team_members/utils.js +0 -1
- package/slices/auth.js +0 -1
- package/slices/index.js +0 -1
- package/store/index.d.ts +0 -7
- package/store/index.js +0 -1
- package/store/utils.js +0 -1
- package/utils/apiHelpers.js +0 -1
- /package/{assets → src/assets}/images/empty.svg +0 -0
- /package/{assets → src/assets}/images/wifi.png +0 -0
- /package/{localization → src/localization}/translations/en.json +0 -0
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export interface Permission {
|
|
2
|
+
name: string;
|
|
3
|
+
}
|
|
4
|
+
export interface Profile {
|
|
5
|
+
id: string;
|
|
6
|
+
name: string;
|
|
7
|
+
email: string;
|
|
8
|
+
profile_image_url?: string | null;
|
|
9
|
+
permissions?: Permission[];
|
|
10
|
+
[key: string]: unknown;
|
|
11
|
+
}
|
|
12
|
+
export declare const getProfileApi: () => Promise<import("axios").AxiosResponse<{
|
|
13
|
+
user: Profile;
|
|
14
|
+
}, any, {}, any>>;
|
|
15
|
+
//# sourceMappingURL=profile.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"profile.d.ts","sourceRoot":"","sources":["../../../src/api/profile.ts"],"names":[],"mappings":"AAEA,MAAM,WAAW,UAAU;IACzB,IAAI,EAAE,MAAM,CAAC;CACd;AAED,MAAM,WAAW,OAAO;IACtB,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;IACd,iBAAiB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAClC,WAAW,CAAC,EAAE,UAAU,EAAE,CAAC;IAC3B,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC;CACxB;AAED,eAAO,MAAM,aAAa;UACN,OAAO;iBAA6B,CAAC"}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
export interface TeamMember {
|
|
2
|
+
id: string;
|
|
3
|
+
name: string;
|
|
4
|
+
email: string;
|
|
5
|
+
first_name?: string;
|
|
6
|
+
last_name?: string;
|
|
7
|
+
display_name?: string;
|
|
8
|
+
role?: string;
|
|
9
|
+
organization_role?: string;
|
|
10
|
+
profile_image_url?: string | null;
|
|
11
|
+
is_active?: boolean;
|
|
12
|
+
}
|
|
13
|
+
export interface TeamMembersPage {
|
|
14
|
+
members: TeamMember[];
|
|
15
|
+
members_count: number;
|
|
16
|
+
}
|
|
17
|
+
export declare const fetch: (params?: Record<string, unknown>) => Promise<import("axios").AxiosResponse<TeamMembersPage, any, {}, any>>;
|
|
18
|
+
export declare const create: (payload: Record<string, unknown>) => Promise<import("axios").AxiosResponse<any, {
|
|
19
|
+
user: Record<string, unknown>;
|
|
20
|
+
}, {}, any>>;
|
|
21
|
+
export declare const update: (id: string, payload?: Record<string, unknown>) => Promise<import("axios").AxiosResponse<any, {
|
|
22
|
+
team: Record<string, unknown>;
|
|
23
|
+
}, {}, any>>;
|
|
24
|
+
declare const teamMembersApi: {
|
|
25
|
+
fetch: (params?: Record<string, unknown>) => Promise<import("axios").AxiosResponse<TeamMembersPage, any, {}, any>>;
|
|
26
|
+
create: (payload: Record<string, unknown>) => Promise<import("axios").AxiosResponse<any, {
|
|
27
|
+
user: Record<string, unknown>;
|
|
28
|
+
}, {}, any>>;
|
|
29
|
+
update: (id: string, payload?: Record<string, unknown>) => Promise<import("axios").AxiosResponse<any, {
|
|
30
|
+
team: Record<string, unknown>;
|
|
31
|
+
}, {}, any>>;
|
|
32
|
+
};
|
|
33
|
+
export default teamMembersApi;
|
|
34
|
+
//# sourceMappingURL=team_members.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"team_members.d.ts","sourceRoot":"","sources":["../../../src/api/team_members.ts"],"names":[],"mappings":"AAEA,MAAM,WAAW,UAAU;IACzB,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;IAId,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,iBAAiB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAClC,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB;AAED,MAAM,WAAW,eAAe;IAC9B,OAAO,EAAE,UAAU,EAAE,CAAC;IACtB,aAAa,EAAE,MAAM,CAAC;CACvB;AAED,eAAO,MAAM,KAAK,GAAI,SAAQ,MAAM,CAAC,MAAM,EAAE,OAAO,CAAM,0EACW,CAAC;AAEtE,eAAO,MAAM,MAAM,GAAI,SAAS,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC;;YACK,CAAC;AAE7D,eAAO,MAAM,MAAM,GAAI,IAAI,MAAM,EAAE,UAAS,MAAM,CAAC,MAAM,EAAE,OAAO,CAAM;;YACP,CAAC;AAElE,QAAA,MAAM,cAAc;qBATU,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC;sBAGrB,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC;;;iBAG5B,MAAM,YAAW,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC;;;CAOlE,CAAC;AAEF,eAAe,cAAc,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/auth/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AACjD,OAAO,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AppVersion.d.ts","sourceRoot":"","sources":["../../../src/components/AppVersion.ts"],"names":[],"mappings":"AA8BA,eAAO,MAAM,UAAU,YA2HtB,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { BottomSheet } from "@bigbinary/neetoui-rn";
|
|
2
|
+
/**
|
|
3
|
+
* @deprecated Moved to @bigbinary/neetoui-rn v3 (gorhom-based, same
|
|
4
|
+
* isVisible/hide/data/ContentRow facade). This re-export keeps one
|
|
5
|
+
* deprecation cycle of compatibility and disappears in the next commons
|
|
6
|
+
* major — import BottomSheet from the UI library instead.
|
|
7
|
+
*/
|
|
8
|
+
export default BottomSheet;
|
|
9
|
+
//# sourceMappingURL=BottomSheet.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BottomSheet.d.ts","sourceRoot":"","sources":["../../../src/components/BottomSheet.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAC;AAEpD;;;;;GAKG;AACH,eAAe,WAAW,CAAC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @deprecated Moved to @bigbinary/neetoui-rn v3. This re-export keeps one
|
|
3
|
+
* deprecation cycle of compatibility and disappears in the next commons
|
|
4
|
+
* major — import BottomSheetMenu from the UI library instead.
|
|
5
|
+
*/
|
|
6
|
+
export { BottomSheetMenu } from "@bigbinary/neetoui-rn";
|
|
7
|
+
//# sourceMappingURL=BottomSheetMenu.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BottomSheetMenu.d.ts","sourceRoot":"","sources":["../../../src/components/BottomSheetMenu.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,OAAO,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { type AlertParams } from "@bigbinary/neetoui-rn";
|
|
2
|
+
/**
|
|
3
|
+
* @deprecated Collapsed into the UI library's Alert (v3 presents every
|
|
4
|
+
* confirm as this bottom sheet). Same params: { title, description,
|
|
5
|
+
* isCancelable, buttons, onDismiss }. NeetoUIProvider hosts it, so
|
|
6
|
+
* rendering <ConfirmSheet /> is a no-op kept for compatibility. Call
|
|
7
|
+
* Alert.show directly once call sites migrate; this alias disappears in
|
|
8
|
+
* the next commons major.
|
|
9
|
+
*/
|
|
10
|
+
declare const ConfirmSheet: {
|
|
11
|
+
(): null;
|
|
12
|
+
show(params: AlertParams): void;
|
|
13
|
+
};
|
|
14
|
+
export default ConfirmSheet;
|
|
15
|
+
//# sourceMappingURL=ConfirmSheet.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ConfirmSheet.d.ts","sourceRoot":"","sources":["../../../src/components/ConfirmSheet.ts"],"names":[],"mappings":"AAAA,OAAO,EAAS,KAAK,WAAW,EAAE,MAAM,uBAAuB,CAAC;AAEhE;;;;;;;GAOG;AACH,QAAA,MAAM,YAAY;;iBAEW,WAAW;CAFT,CAAC;AAIhC,eAAe,YAAY,CAAC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
export interface EmptyViewProps {
|
|
3
|
+
title?: string | null;
|
|
4
|
+
showCTA?: boolean;
|
|
5
|
+
ctaLabel?: string | null;
|
|
6
|
+
/**
|
|
7
|
+
* Historically optional even with showCTA set; the library's primaryAction
|
|
8
|
+
* requires a handler, hence the cast below.
|
|
9
|
+
*/
|
|
10
|
+
onCTAPress?: (() => void) | null;
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* Compat wrapper over the UI library's EmptyView: keeps the historical
|
|
14
|
+
* commons prop API (showCTA/ctaLabel/onCTAPress) and the commons empty
|
|
15
|
+
* illustration. New code should use the library EmptyView directly
|
|
16
|
+
* ({ title, description, Illustration, primaryAction }).
|
|
17
|
+
*/
|
|
18
|
+
export declare const EmptyView: ({ title, showCTA, ctaLabel, onCTAPress, }: EmptyViewProps) => React.JSX.Element;
|
|
19
|
+
//# sourceMappingURL=EmptyView.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"EmptyView.d.ts","sourceRoot":"","sources":["../../../src/components/EmptyView.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAO1B,MAAM,WAAW,cAAc;IAC7B,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACtB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACzB;;;OAGG;IACH,UAAU,CAAC,EAAE,CAAC,MAAM,IAAI,CAAC,GAAG,IAAI,CAAC;CAClC;AAED;;;;;GAKG;AACH,eAAO,MAAM,SAAS,GAAI,2CAKvB,cAAc,sBAUhB,CAAC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @deprecated Moved to @bigbinary/neetoui-rn v3. This re-export keeps one
|
|
3
|
+
* deprecation cycle of compatibility and disappears in the next commons
|
|
4
|
+
* major — import BaseHeader from the UI library instead.
|
|
5
|
+
*/
|
|
6
|
+
export { BaseHeader } from "@bigbinary/neetoui-rn";
|
|
7
|
+
//# sourceMappingURL=BaseHeader.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BaseHeader.d.ts","sourceRoot":"","sources":["../../../../src/components/Header/BaseHeader.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,OAAO,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @deprecated Moved to @bigbinary/neetoui-rn v3. This re-export keeps one
|
|
3
|
+
* deprecation cycle of compatibility and disappears in the next commons
|
|
4
|
+
* major — import ScreenHeader from the UI library instead.
|
|
5
|
+
*/
|
|
6
|
+
export { ScreenHeader } from "@bigbinary/neetoui-rn";
|
|
7
|
+
//# sourceMappingURL=ScreenHeader.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ScreenHeader.d.ts","sourceRoot":"","sources":["../../../../src/components/Header/ScreenHeader.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,OAAO,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAC"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import React, { type ComponentType } from "react";
|
|
2
|
+
export interface HeaderProps {
|
|
3
|
+
title: string;
|
|
4
|
+
subTitle?: string;
|
|
5
|
+
canGoBack?: boolean;
|
|
6
|
+
onBackPress?: () => void;
|
|
7
|
+
showSideMenu?: boolean;
|
|
8
|
+
handleSearch?: () => void;
|
|
9
|
+
RightComponent?: ComponentType;
|
|
10
|
+
isLoading?: boolean;
|
|
11
|
+
showWorkspaceLogo?: boolean;
|
|
12
|
+
onMarkAllAsRead?: () => void;
|
|
13
|
+
showMarkAllOption?: boolean;
|
|
14
|
+
}
|
|
15
|
+
/**
|
|
16
|
+
* Compat wrapper over the UI library's navigation-agnostic Header: keeps
|
|
17
|
+
* the historical commons prop API (canGoBack/showSideMenu/RightComponent/
|
|
18
|
+
* onMarkAllAsRead) and wires react-navigation + the mark-all menu on top.
|
|
19
|
+
* New code should use the library Header with onBack and slots directly.
|
|
20
|
+
*/
|
|
21
|
+
export declare const Header: ({ title, subTitle, canGoBack, onBackPress, showSideMenu, handleSearch, RightComponent, isLoading, showWorkspaceLogo, onMarkAllAsRead, showMarkAllOption, }: HeaderProps) => React.JSX.Element;
|
|
22
|
+
//# sourceMappingURL=Header.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Header.d.ts","sourceRoot":"","sources":["../../../src/components/Header.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAY,KAAK,aAAa,EAAE,MAAM,OAAO,CAAC;AAwB5D,MAAM,WAAW,WAAW;IAC1B,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,WAAW,CAAC,EAAE,MAAM,IAAI,CAAC;IACzB,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,YAAY,CAAC,EAAE,MAAM,IAAI,CAAC;IAC1B,cAAc,CAAC,EAAE,aAAa,CAAC;IAC/B,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B,eAAe,CAAC,EAAE,MAAM,IAAI,CAAC;IAC7B,iBAAiB,CAAC,EAAE,OAAO,CAAC;CAC7B;AAED;;;;;GAKG;AACH,eAAO,MAAM,MAAM,GAAI,4JAYpB,WAAW,sBAkFb,CAAC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import React, { type ReactNode } from "react";
|
|
2
|
+
import { type StyleProp, type TextStyle } from "react-native";
|
|
3
|
+
import { type TypographyProps } from "@bigbinary/neetoui-rn";
|
|
4
|
+
export interface HyperlinkTextProps {
|
|
5
|
+
/**
|
|
6
|
+
* Rendered as Typography children, so anything `formatString` returns
|
|
7
|
+
* (a string, or a mixed string/element array) is accepted.
|
|
8
|
+
*/
|
|
9
|
+
text: ReactNode;
|
|
10
|
+
linkMapping: Record<string, string>;
|
|
11
|
+
linkStyleProps?: StyleProp<TextStyle>;
|
|
12
|
+
/** v3 Typography props — layout goes through its `style` entry. */
|
|
13
|
+
textStyleProps?: TypographyProps;
|
|
14
|
+
onPress?: (url: string, text?: string) => void;
|
|
15
|
+
}
|
|
16
|
+
export declare const HyperlinkText: ({ text, onPress, linkMapping, linkStyleProps, textStyleProps, }: HyperlinkTextProps) => React.JSX.Element;
|
|
17
|
+
//# sourceMappingURL=HyperlinkText.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"HyperlinkText.d.ts","sourceRoot":"","sources":["../../../src/components/HyperlinkText.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAC9C,OAAO,EAAE,KAAK,SAAS,EAAE,KAAK,SAAS,EAAE,MAAM,cAAc,CAAC;AAE9D,OAAO,EAAc,KAAK,eAAe,EAAE,MAAM,uBAAuB,CAAC;AAGzE,MAAM,WAAW,kBAAkB;IACjC;;;OAGG;IACH,IAAI,EAAE,SAAS,CAAC;IAChB,WAAW,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACpC,cAAc,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;IACtC,mEAAmE;IACnE,cAAc,CAAC,EAAE,eAAe,CAAC;IACjC,OAAO,CAAC,EAAE,CAAC,GAAG,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,MAAM,KAAK,IAAI,CAAC;CAChD;AAED,eAAO,MAAM,aAAa,GAAI,iEAM3B,kBAAkB,sBAQpB,CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
export interface LineLoaderProps {
|
|
3
|
+
isLoading?: boolean;
|
|
4
|
+
height?: number;
|
|
5
|
+
}
|
|
6
|
+
/**
|
|
7
|
+
* @deprecated Absorbed by the UI library's Skeleton
|
|
8
|
+
* (<Skeleton variant="line" animated />). This shim keeps the v2 prop
|
|
9
|
+
* contract for one deprecation cycle and disappears in the next commons
|
|
10
|
+
* major.
|
|
11
|
+
*/
|
|
12
|
+
export declare const LineLoader: ({ isLoading, height, }: LineLoaderProps) => React.JSX.Element;
|
|
13
|
+
//# sourceMappingURL=LineLoader.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"LineLoader.d.ts","sourceRoot":"","sources":["../../../src/components/LineLoader.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAM1B,MAAM,WAAW,eAAe;IAC9B,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED;;;;;GAKG;AACH,eAAO,MAAM,UAAU,GAAI,wBAGxB,eAAe,sBAEjB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"NotificationIcon.d.ts","sourceRoot":"","sources":["../../../src/components/NotificationIcon.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAc1B,MAAM,WAAW,qBAAqB;IACpC,WAAW,CAAC,EAAE,MAAM,IAAI,CAAC;CAC1B;AAED,eAAO,MAAM,gBAAgB,GAAI,kBAE9B,qBAAqB,sBAqBvB,CAAC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import React, { type ComponentType } from "react";
|
|
2
|
+
export interface NotificationPreference {
|
|
3
|
+
label: string;
|
|
4
|
+
enabled: boolean;
|
|
5
|
+
LeftIcon?: ComponentType;
|
|
6
|
+
onSwitch: (item: NotificationPreference, index: number) => void;
|
|
7
|
+
}
|
|
8
|
+
export interface NotificationPreferenceListProps {
|
|
9
|
+
data?: NotificationPreference[];
|
|
10
|
+
title?: string;
|
|
11
|
+
isLoading?: boolean;
|
|
12
|
+
}
|
|
13
|
+
export declare const NotificationPreferenceList: ({ data, title, isLoading, }: NotificationPreferenceListProps) => React.JSX.Element;
|
|
14
|
+
//# sourceMappingURL=NotificationPreferenceList.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"NotificationPreferenceList.d.ts","sourceRoot":"","sources":["../../../src/components/NotificationPreferenceList.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,KAAK,aAAa,EAAE,MAAM,OAAO,CAAC;AAgBlD,MAAM,WAAW,sBAAsB;IACrC,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,OAAO,CAAC;IACjB,QAAQ,CAAC,EAAE,aAAa,CAAC;IACzB,QAAQ,EAAE,CAAC,IAAI,EAAE,sBAAsB,EAAE,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;CACjE;AAKD,MAAM,WAAW,+BAA+B;IAC9C,IAAI,CAAC,EAAE,sBAAsB,EAAE,CAAC;IAChC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB;AAED,eAAO,MAAM,0BAA0B,GAAI,6BAIxC,+BAA+B,sBA+CjC,CAAC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
export interface OfflineScreenProps {
|
|
3
|
+
/** NetInfo reports an unknown connection state as `null`. */
|
|
4
|
+
setIsConnected: (isConnected: boolean | null) => void;
|
|
5
|
+
}
|
|
6
|
+
export declare const OfflineScreen: ({ setIsConnected }: OfflineScreenProps) => React.JSX.Element;
|
|
7
|
+
//# sourceMappingURL=OfflineScreen.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"OfflineScreen.d.ts","sourceRoot":"","sources":["../../../src/components/OfflineScreen.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAoB,MAAM,OAAO,CAAC;AAgBzC,MAAM,WAAW,kBAAkB;IACjC,6DAA6D;IAC7D,cAAc,EAAE,CAAC,WAAW,EAAE,OAAO,GAAG,IAAI,KAAK,IAAI,CAAC;CACvD;AAED,eAAO,MAAM,aAAa,GAAI,oBAAoB,kBAAkB,sBA4CnE,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
export interface OrganizationItemProps {
|
|
3
|
+
name: string;
|
|
4
|
+
subdomain: string;
|
|
5
|
+
label?: string;
|
|
6
|
+
}
|
|
7
|
+
export declare const OrganizationItem: ({ name, subdomain, label, }: OrganizationItemProps) => React.JSX.Element;
|
|
8
|
+
//# sourceMappingURL=OrganizationItem.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"OrganizationItem.d.ts","sourceRoot":"","sources":["../../../src/components/OrganizationItem.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAU1B,MAAM,WAAW,qBAAqB;IACpC,IAAI,EAAE,MAAM,CAAC;IACb,SAAS,EAAE,MAAM,CAAC;IAClB,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED,eAAO,MAAM,gBAAgB,GAAI,6BAI9B,qBAAqB,sBA4BvB,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { type StyleProp, type ViewStyle } from "react-native";
|
|
3
|
+
export interface SocialButtonProps {
|
|
4
|
+
variant: "apple" | "google";
|
|
5
|
+
disabled?: boolean;
|
|
6
|
+
isLoading?: boolean;
|
|
7
|
+
style?: StyleProp<ViewStyle>;
|
|
8
|
+
onPress: () => void;
|
|
9
|
+
}
|
|
10
|
+
export declare const SocialButton: ({ variant, disabled, isLoading, style, onPress, }: SocialButtonProps) => React.JSX.Element;
|
|
11
|
+
//# sourceMappingURL=SocialButton.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SocialButton.d.ts","sourceRoot":"","sources":["../../../src/components/SocialButton.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAc,KAAK,SAAS,EAAE,KAAK,SAAS,EAAE,MAAM,cAAc,CAAC;AAiB1E,MAAM,WAAW,iBAAiB;IAChC,OAAO,EAAE,OAAO,GAAG,QAAQ,CAAC;IAC5B,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,KAAK,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;IAC7B,OAAO,EAAE,MAAM,IAAI,CAAC;CACrB;AAKD,eAAO,MAAM,YAAY,GAAI,mDAM1B,iBAAiB,sBAyBnB,CAAC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @deprecated Moved to @bigbinary/neetoui-rn v3. This re-export keeps one
|
|
3
|
+
* deprecation cycle of compatibility and disappears in the next commons
|
|
4
|
+
* major — import TextWithUrl from the UI library instead.
|
|
5
|
+
*/
|
|
6
|
+
export { TextWithUrl } from "@bigbinary/neetoui-rn";
|
|
7
|
+
//# sourceMappingURL=TextWithUrl.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TextWithUrl.d.ts","sourceRoot":"","sources":["../../../src/components/TextWithUrl.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,OAAO,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
export interface ToggleSwitchProps {
|
|
3
|
+
value: boolean;
|
|
4
|
+
disabled?: boolean;
|
|
5
|
+
onValueChange?: (value: boolean) => void;
|
|
6
|
+
}
|
|
7
|
+
export declare const ToggleSwitch: ({ value, disabled, onValueChange, }: ToggleSwitchProps) => React.JSX.Element;
|
|
8
|
+
//# sourceMappingURL=ToggleSwitch.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ToggleSwitch.d.ts","sourceRoot":"","sources":["../../../src/components/ToggleSwitch.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA4B,MAAM,OAAO,CAAC;AAajD,MAAM,WAAW,iBAAiB;IAChC,KAAK,EAAE,OAAO,CAAC;IACf,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,aAAa,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,KAAK,IAAI,CAAC;CAC1C;AAED,eAAO,MAAM,YAAY,GAAI,qCAI1B,iBAAiB,sBA4CnB,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
export interface WorkspaceSwitcherPaneProps {
|
|
3
|
+
/** The drawer navigator's navigation object, injected by `drawerContent`. */
|
|
4
|
+
navigation: {
|
|
5
|
+
closeDrawer: () => void;
|
|
6
|
+
};
|
|
7
|
+
}
|
|
8
|
+
export declare const WorkspaceSwitcherPane: ({ navigation, }: WorkspaceSwitcherPaneProps) => React.JSX.Element;
|
|
9
|
+
//# sourceMappingURL=WorkspaceSwitcherPane.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"WorkspaceSwitcherPane.d.ts","sourceRoot":"","sources":["../../../src/components/WorkspaceSwitcherPane.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAkB1B,MAAM,WAAW,0BAA0B;IACzC,6EAA6E;IAC7E,UAAU,EAAE;QAAE,WAAW,EAAE,MAAM,IAAI,CAAA;KAAE,CAAC;CACzC;AAED,eAAO,MAAM,qBAAqB,GAAI,iBAEnC,0BAA0B,sBAyD5B,CAAC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export declare const ANDROID_APP_LINK: string;
|
|
2
|
+
export declare const IOS_PROD_APP_LINK: string;
|
|
3
|
+
export declare const IOS_STAGING_APP_LINK: string;
|
|
4
|
+
export declare const TOGGLE_KNOB_TRAVEL: number;
|
|
5
|
+
export declare const TOGGLE_ANIMATION_DURATION = 300;
|
|
6
|
+
export declare const PREFERENCE_TITLE_LINE_HEIGHT: number;
|
|
7
|
+
//# sourceMappingURL=constants.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../src/components/constants.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,gBAAgB,QAA6E,CAAC;AAE3G,eAAO,MAAM,iBAAiB,QAAuD,CAAC;AAEtF,eAAO,MAAM,oBAAoB,QAA6D,CAAC;AAG/F,eAAO,MAAM,kBAAkB,QAAoB,CAAC;AACpD,eAAO,MAAM,yBAAyB,MAAM,CAAC;AAG7C,eAAO,MAAM,4BAA4B,QAAoB,CAAC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export { BaseHeader } from "./Header/BaseHeader";
|
|
2
|
+
export { ScreenHeader } from "./Header/ScreenHeader";
|
|
3
|
+
export { AppVersion } from "./AppVersion";
|
|
4
|
+
export { LineLoader } from "./LineLoader";
|
|
5
|
+
export { Header } from "./Header";
|
|
6
|
+
export { NotificationIcon } from "./NotificationIcon";
|
|
7
|
+
export { default as BottomSheet } from "./BottomSheet";
|
|
8
|
+
export { BottomSheetMenu } from "./BottomSheetMenu";
|
|
9
|
+
export { default as ConfirmSheet } from "./ConfirmSheet";
|
|
10
|
+
export { EmptyView } from "./EmptyView";
|
|
11
|
+
export { TextWithUrl } from "./TextWithUrl";
|
|
12
|
+
export { OfflineScreen } from "./OfflineScreen";
|
|
13
|
+
export { WorkspaceSwitcherPane } from "./WorkspaceSwitcherPane";
|
|
14
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AACjD,OAAO,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAC;AACrD,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1C,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1C,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAClC,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AACtD,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,eAAe,CAAC;AACvD,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACpD,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,gBAAgB,CAAC;AACzD,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAC5C,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,OAAO,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAC"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { type CaseConversionOptions } from "./types";
|
|
2
|
+
export declare const convertRequestKeys: (data: unknown, options?: CaseConversionOptions) => unknown;
|
|
3
|
+
export declare const convertResponseKeys: (data: unknown, options?: CaseConversionOptions) => any;
|
|
4
|
+
//# sourceMappingURL=caseConversion.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"caseConversion.d.ts","sourceRoot":"","sources":["../../../../src/config/axios/caseConversion.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,KAAK,qBAAqB,EAAE,MAAM,SAAS,CAAC;AAkBrD,eAAO,MAAM,kBAAkB,GAC7B,MAAM,OAAO,EACb,UAAS,qBAA0B,YAcpC,CAAC;AAEF,eAAO,MAAM,mBAAmB,GAC9B,MAAM,OAAO,EACb,UAAS,qBAA0B,QAcpC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../../src/config/axios/constants.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,qBAAqB,EAAE,MAAM,SAAS,CAAC;AAErD,eAAO,MAAM,uBAAuB,SAA2C,CAAC;AAEhF,eAAO,MAAM,0BAA0B,GACrC,UAAS,qBAA0B,YASpC,CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { type AxiosError, type InternalAxiosRequestConfig } from "axios";
|
|
2
|
+
export interface ApiErrorData {
|
|
3
|
+
error?: string | Record<string, string>;
|
|
4
|
+
errors?: string[];
|
|
5
|
+
}
|
|
6
|
+
export declare const rootUrlCreator: ({ subdomain }: {
|
|
7
|
+
subdomain: string;
|
|
8
|
+
}) => string;
|
|
9
|
+
export declare const getErrorMessage: (data: ApiErrorData | undefined, error: AxiosError) => string;
|
|
10
|
+
export declare const cleanupAxiosInterceptors: () => void;
|
|
11
|
+
export declare const configureAxiosHeaders: (request: InternalAxiosRequestConfig) => Promise<InternalAxiosRequestConfig<any, any>>;
|
|
12
|
+
export declare const configureAxios: () => void;
|
|
13
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/config/axios/index.ts"],"names":[],"mappings":"AAIA,OAAc,EACZ,KAAK,UAAU,EAEf,KAAK,0BAA0B,EAChC,MAAM,OAAO,CAAC;AAmBf,MAAM,WAAW,YAAY;IAC3B,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACxC,MAAM,CAAC,EAAE,MAAM,EAAE,CAAC;CACnB;AA2CD,eAAO,MAAM,cAAc,GAAI,eAAe;IAAE,SAAS,EAAE,MAAM,CAAA;CAAE,WACG,CAAC;AAgCvE,eAAO,MAAM,eAAe,GAC1B,MAAM,YAAY,GAAG,SAAS,EAC9B,OAAO,UAAU,KAChB,MAMF,CAAC;AA6IF,eAAO,MAAM,wBAAwB,YAUpC,CAAC;AAEF,eAAO,MAAM,qBAAqB,GAChC,SAAS,0BAA0B,kDAepC,CAAC;AAEF,eAAO,MAAM,cAAc,YAI1B,CAAC"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { type Event } from "@bugsnag/react-native";
|
|
2
|
+
export declare const isNetworkError: (error: unknown) => boolean;
|
|
3
|
+
export declare const isEventErrorsNetworkRelated: (event: Event) => boolean;
|
|
4
|
+
export declare const handleNetworkError: (error: unknown, showToast?: boolean) => boolean;
|
|
5
|
+
//# sourceMappingURL=networkErrorHandler.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"networkErrorHandler.d.ts","sourceRoot":"","sources":["../../../../src/config/axios/networkErrorHandler.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,KAAK,EAAE,MAAM,uBAAuB,CAAC;AAMnD,eAAO,MAAM,cAAc,GAAI,OAAO,OAAO,YAmB5C,CAAC;AAEF,eAAO,MAAM,2BAA2B,GAAI,OAAO,KAAK,YACqB,CAAC;AAE9E,eAAO,MAAM,kBAAkB,GAAI,OAAO,OAAO,EAAE,mBAAgB,YAelE,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"paramsSerializer.d.ts","sourceRoot":"","sources":["../../../../src/config/axios/paramsSerializer.ts"],"names":[],"mappings":"AAGA,QAAA,MAAM,mBAAmB,YAGxB,CAAC;AAEF,eAAe,mBAAmB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/config/axios/types.ts"],"names":[],"mappings":"AAAA,OAAO,OAAO,CAAC;AAEf,MAAM,WAAW,qBAAqB;IACpC,oBAAoB,CAAC,EAAE,OAAO,CAAC;CAChC;AAID,OAAO,QAAQ,OAAO,CAAC;IACrB,UAAU,kBAAkB;QAC1B,qBAAqB,CAAC,EAAE,qBAAqB,CAAC;KAC/C;CACF"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"bugsnag.d.ts","sourceRoot":"","sources":["../../../src/config/bugsnag.ts"],"names":[],"mappings":"AACA,OAAgB,EAAE,KAAK,eAAe,EAAE,MAAM,uBAAuB,CAAC;AAStE,eAAO,MAAM,mBAAmB,GAAI,KAAK,eAAe,EAAE,QAAQ,MAAM,SAavE,CAAC;AAEF,eAAO,MAAM,gBAAgB,YAsB5B,CAAC"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import dayjs from "dayjs";
|
|
2
|
+
export declare const configureDayJS: () => void;
|
|
3
|
+
export declare const dateTimeFormats: Readonly<{
|
|
4
|
+
time: "h:mm A";
|
|
5
|
+
date: "MMM D, YYYY";
|
|
6
|
+
dateWeek: "MMM D, YYYY ddd";
|
|
7
|
+
dateWeekWithoutYear: "MMM D, ddd";
|
|
8
|
+
dateTime: "MMM D, YYYY h:mm A";
|
|
9
|
+
dateWeekTime: "MMM D, YYYY ddd h:mm A";
|
|
10
|
+
}>;
|
|
11
|
+
type DateInput = dayjs.ConfigType;
|
|
12
|
+
export declare const formatDateTime: Readonly<{
|
|
13
|
+
fromNow: (time: DateInput) => string;
|
|
14
|
+
time: (time: DateInput) => string;
|
|
15
|
+
date: (time: DateInput) => string;
|
|
16
|
+
dateWeek: (time: DateInput) => string;
|
|
17
|
+
dateWeekWithoutYear: (time: DateInput) => string;
|
|
18
|
+
dateTime: (time: DateInput) => string;
|
|
19
|
+
dateWeekTime: (time: DateInput) => string;
|
|
20
|
+
extended: (time: DateInput) => string;
|
|
21
|
+
}>;
|
|
22
|
+
export {};
|
|
23
|
+
//# sourceMappingURL=dayjs.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"dayjs.d.ts","sourceRoot":"","sources":["../../../src/config/dayjs.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAO1B,eAAO,MAAM,cAAc,YAM1B,CAAC;AAEF,eAAO,MAAM,eAAe;;;;;;;EAO1B,CAAC;AAEH,KAAK,SAAS,GAAG,KAAK,CAAC,UAAU,CAAC;AAElC,eAAO,MAAM,cAAc;oBACT,SAAS;iBACZ,SAAS;iBACT,SAAS;qBACL,SAAS;gCACE,SAAS;qBACpB,SAAS;yBACL,SAAS;qBAEb,SAAS;EAM1B,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"googleSignin.d.ts","sourceRoot":"","sources":["../../../src/config/googleSignin.ts"],"names":[],"mappings":"AAMA,eAAO,MAAM,qBAAqB,YA6BjC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/config/index.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,iBAAiB,YAK7B,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"validations.d.ts","sourceRoot":"","sources":["../../../src/config/validations.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,2BAA2B,YAUvC,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export { dateTimeFormats } from "../config/dayjs";
|
|
2
|
+
export declare const STORAGE_KEYS: {
|
|
3
|
+
readonly DEVICE_TOKEN: "devicetoken";
|
|
4
|
+
readonly IS_VISITED: "isVisited";
|
|
5
|
+
readonly NOTIFICATION_PERMISSION_REQUESTED: "notificationPermissionRequested";
|
|
6
|
+
};
|
|
7
|
+
export declare const DEFAULT_PAGE_SIZE = 30;
|
|
8
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/constants/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAC;AAElD,eAAO,MAAM,YAAY;;;;CAIf,CAAC;AAEX,eAAO,MAAM,iBAAiB,KAAK,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/contexts/index.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,CAAC"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import React, { type ReactNode } from "react";
|
|
2
|
+
import { type CommonsCatalog } from "../localization";
|
|
3
|
+
export type FormatStringArg = unknown;
|
|
4
|
+
export type FormatString = (template: string, ...args: FormatStringArg[]) => string | Array<string | ReactNode>;
|
|
5
|
+
type HostStringsRoot = Record<string, any>;
|
|
6
|
+
export type LocalizedStrings = HostStringsRoot & {
|
|
7
|
+
commons: CommonsCatalog;
|
|
8
|
+
formatString: FormatString;
|
|
9
|
+
};
|
|
10
|
+
export interface LocalizationValue {
|
|
11
|
+
strings: LocalizedStrings;
|
|
12
|
+
code: string;
|
|
13
|
+
}
|
|
14
|
+
export type ChangeLanguage = (languageCode: string) => void;
|
|
15
|
+
export type HostStrings = Record<string, Record<string, unknown>>;
|
|
16
|
+
export declare const useLocalization: () => LocalizationValue;
|
|
17
|
+
export declare const useLocalizationUpdate: () => ChangeLanguage;
|
|
18
|
+
export declare const formatString: FormatString;
|
|
19
|
+
interface LocalizationProviderProps {
|
|
20
|
+
children?: ReactNode;
|
|
21
|
+
hostStrings?: HostStrings;
|
|
22
|
+
initialLanguage?: string;
|
|
23
|
+
}
|
|
24
|
+
export declare const LocalizationProvider: ({ children, hostStrings, initialLanguage, }: LocalizationProviderProps) => React.JSX.Element;
|
|
25
|
+
export {};
|
|
26
|
+
//# sourceMappingURL=localization.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"localization.d.ts","sourceRoot":"","sources":["../../../src/contexts/localization.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAOZ,KAAK,SAAS,EACf,MAAM,OAAO,CAAC;AAKf,OAAO,EAEL,KAAK,cAAc,EACpB,MAAM,iBAAiB,CAAC;AAGzB,MAAM,MAAM,eAAe,GAAG,OAAO,CAAC;AAEtC,MAAM,MAAM,YAAY,GAAG,CACzB,QAAQ,EAAE,MAAM,EAChB,GAAG,IAAI,EAAE,eAAe,EAAE,KACvB,MAAM,GAAG,KAAK,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC;AAKxC,KAAK,eAAe,GAAG,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;AAE3C,MAAM,MAAM,gBAAgB,GAAG,eAAe,GAAG;IAC/C,OAAO,EAAE,cAAc,CAAC;IACxB,YAAY,EAAE,YAAY,CAAC;CAC5B,CAAC;AAEF,MAAM,WAAW,iBAAiB;IAChC,OAAO,EAAE,gBAAgB,CAAC;IAC1B,IAAI,EAAE,MAAM,CAAC;CACd;AAED,MAAM,MAAM,cAAc,GAAG,CAAC,YAAY,EAAE,MAAM,KAAK,IAAI,CAAC;AAG5D,MAAM,MAAM,WAAW,GAAG,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC;AAYlE,eAAO,MAAM,eAAe,QACS,iBAAiB,CAAC;AAEvD,eAAO,MAAM,qBAAqB,QACS,cAAc,CAAC;AAK1D,eAAO,MAAM,YAAY,EAAE,YAwB1B,CAAC;AAmBF,UAAU,yBAAyB;IACjC,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB,WAAW,CAAC,EAAE,WAAW,CAAC;IAC1B,eAAe,CAAC,EAAE,MAAM,CAAC;CAC1B;AAED,eAAO,MAAM,oBAAoB,GAAI,6CAIlC,yBAAyB,sBAgE3B,CAAC"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
declare const setItem: (key: string, value: unknown) => Promise<void | null>;
|
|
2
|
+
declare const getItem: <T = unknown>(key: string) => Promise<T | null>;
|
|
3
|
+
declare const removeItem: (key: string) => Promise<void | null>;
|
|
4
|
+
declare const getAllKeys: () => Promise<string[] | null>;
|
|
5
|
+
export { setItem, getItem, removeItem, getAllKeys };
|
|
6
|
+
//# sourceMappingURL=asyncStore.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"asyncStore.d.ts","sourceRoot":"","sources":["../../../src/helpers/asyncStore.ts"],"names":[],"mappings":"AAEA,QAAA,MAAM,OAAO,GAAU,KAAK,MAAM,EAAE,OAAO,OAAO,yBAMjD,CAAC;AAIF,QAAA,MAAM,OAAO,GAAU,CAAC,GAAG,OAAO,EAAE,KAAK,MAAM,KAAG,OAAO,CAAC,CAAC,GAAG,IAAI,CAQjE,CAAC;AAEF,QAAA,MAAM,UAAU,GAAU,KAAK,MAAM,yBAMpC,CAAC;AAEF,QAAA,MAAM,UAAU,gCAMf,CAAC;AAEF,OAAO,EAAE,OAAO,EAAE,OAAO,EAAE,UAAU,EAAE,UAAU,EAAE,CAAC"}
|