fastapi-rtk 1.0.49 → 1.0.51
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/.bundled/jsonforms/cjs/_virtual/index10.cjs +2 -2
- package/dist/.bundled/jsonforms/cjs/_virtual/index3.cjs +2 -2
- package/dist/.bundled/jsonforms/cjs/_virtual/index4.cjs +2 -2
- package/dist/.bundled/jsonforms/cjs/_virtual/index5.cjs +2 -2
- package/dist/.bundled/jsonforms/cjs/_virtual/index6.cjs +2 -2
- package/dist/.bundled/jsonforms/cjs/_virtual/index7.cjs +2 -2
- package/dist/.bundled/jsonforms/cjs/_virtual/index8.cjs +2 -2
- package/dist/.bundled/jsonforms/cjs/_virtual/index9.cjs +2 -2
- package/dist/.bundled/jsonforms/esm/_virtual/index10.mjs +2 -2
- package/dist/.bundled/jsonforms/esm/_virtual/index3.mjs +2 -2
- package/dist/.bundled/jsonforms/esm/_virtual/index4.mjs +2 -2
- package/dist/.bundled/jsonforms/esm/_virtual/index5.mjs +2 -2
- package/dist/.bundled/jsonforms/esm/_virtual/index6.mjs +2 -2
- package/dist/.bundled/jsonforms/esm/_virtual/index7.mjs +2 -2
- package/dist/.bundled/jsonforms/esm/_virtual/index8.mjs +2 -2
- package/dist/.bundled/jsonforms/esm/_virtual/index9.mjs +2 -2
- package/dist/.external/cjs/@tanstack_query-core@5.91.2/@tanstack/query-core/build/modern/environmentManager.cjs +21 -0
- package/dist/.external/cjs/{@tanstack_query-core@5.90.20 → @tanstack_query-core@5.91.2}/@tanstack/query-core/build/modern/focusManager.cjs +1 -2
- package/dist/.external/cjs/{@tanstack_query-core@5.90.20 → @tanstack_query-core@5.91.2}/@tanstack/query-core/build/modern/onlineManager.cjs +1 -2
- package/dist/.external/cjs/{@tanstack_query-core@5.90.20 → @tanstack_query-core@5.91.2}/@tanstack/query-core/build/modern/query.cjs +13 -5
- package/dist/.external/cjs/{@tanstack_query-core@5.90.20 → @tanstack_query-core@5.91.2}/@tanstack/query-core/build/modern/queryObserver.cjs +4 -3
- package/dist/.external/cjs/{@tanstack_query-core@5.90.20 → @tanstack_query-core@5.91.2}/@tanstack/query-core/build/modern/removable.cjs +2 -1
- package/dist/.external/cjs/{@tanstack_query-core@5.90.20 → @tanstack_query-core@5.91.2}/@tanstack/query-core/build/modern/retryer.cjs +2 -1
- package/dist/.external/cjs/{@tanstack_query-core@5.90.20 → @tanstack_query-core@5.91.2}/@tanstack/query-core/build/modern/streamedQuery.cjs +2 -4
- package/dist/.external/cjs/{@tanstack_react-query@5.90.21_react@19.2.4 → @tanstack_react-query@5.91.3_react@19.2.4}/@tanstack/react-query/build/modern/HydrationBoundary.cjs +1 -1
- package/dist/.external/cjs/{@tanstack_react-query@5.90.21_react@19.2.4 → @tanstack_react-query@5.91.3_react@19.2.4}/@tanstack/react-query/build/modern/errorBoundaryUtils.cjs +1 -1
- package/dist/.external/cjs/{@tanstack_react-query@5.90.21_react@19.2.4 → @tanstack_react-query@5.91.3_react@19.2.4}/@tanstack/react-query/build/modern/index.cjs +20 -18
- package/dist/.external/cjs/{@tanstack_react-query@5.90.21_react@19.2.4 → @tanstack_react-query@5.91.3_react@19.2.4}/@tanstack/react-query/build/modern/useBaseQuery.cjs +4 -3
- package/dist/.external/cjs/{@tanstack_react-query@5.90.21_react@19.2.4 → @tanstack_react-query@5.91.3_react@19.2.4}/@tanstack/react-query/build/modern/useInfiniteQuery.cjs +1 -1
- package/dist/.external/cjs/{@tanstack_react-query@5.90.21_react@19.2.4 → @tanstack_react-query@5.91.3_react@19.2.4}/@tanstack/react-query/build/modern/useIsFetching.cjs +1 -1
- package/dist/.external/cjs/{@tanstack_react-query@5.90.21_react@19.2.4 → @tanstack_react-query@5.91.3_react@19.2.4}/@tanstack/react-query/build/modern/useMutation.cjs +3 -3
- package/dist/.external/cjs/{@tanstack_react-query@5.90.21_react@19.2.4 → @tanstack_react-query@5.91.3_react@19.2.4}/@tanstack/react-query/build/modern/useMutationState.cjs +2 -2
- package/dist/.external/cjs/{@tanstack_react-query@5.90.21_react@19.2.4 → @tanstack_react-query@5.91.3_react@19.2.4}/@tanstack/react-query/build/modern/useQueries.cjs +4 -4
- package/dist/.external/cjs/{@tanstack_react-query@5.90.21_react@19.2.4 → @tanstack_react-query@5.91.3_react@19.2.4}/@tanstack/react-query/build/modern/useQuery.cjs +1 -1
- package/dist/.external/cjs/{@tanstack_react-query@5.90.21_react@19.2.4 → @tanstack_react-query@5.91.3_react@19.2.4}/@tanstack/react-query/build/modern/useSuspenseInfiniteQuery.cjs +2 -2
- package/dist/.external/cjs/{@tanstack_react-query@5.90.21_react@19.2.4 → @tanstack_react-query@5.91.3_react@19.2.4}/@tanstack/react-query/build/modern/useSuspenseQueries.cjs +1 -1
- package/dist/.external/cjs/{@tanstack_react-query@5.90.21_react@19.2.4 → @tanstack_react-query@5.91.3_react@19.2.4}/@tanstack/react-query/build/modern/useSuspenseQuery.cjs +2 -2
- package/dist/.external/cjs/ajv@8.18.0/ajv/dist/compile/codegen/index.cjs +1 -1
- package/dist/.external/cjs/ajv@8.18.0/ajv/dist/compile/index.cjs +1 -1
- package/dist/.external/cjs/ajv@8.18.0/ajv/dist/compile/validate/index.cjs +1 -1
- package/dist/.external/cjs/ajv@8.18.0/ajv/dist/vocabularies/applicator/index.cjs +1 -1
- package/dist/.external/cjs/ajv@8.18.0/ajv/dist/vocabularies/core/index.cjs +1 -1
- package/dist/.external/cjs/ajv@8.18.0/ajv/dist/vocabularies/discriminator/index.cjs +1 -1
- package/dist/.external/cjs/ajv@8.18.0/ajv/dist/vocabularies/format/index.cjs +1 -1
- package/dist/.external/cjs/ajv@8.18.0/ajv/dist/vocabularies/validation/index.cjs +1 -1
- package/dist/.external/cjs/{i18next@25.8.18_typescript@5.9.3 → i18next@25.8.20_typescript@5.9.3}/i18next/dist/esm/i18next.cjs +8 -10
- package/dist/.external/esm/@tanstack_query-core@5.91.2/@tanstack/query-core/build/modern/environmentManager.mjs +21 -0
- package/dist/.external/esm/{@tanstack_query-core@5.90.20 → @tanstack_query-core@5.91.2}/@tanstack/query-core/build/modern/focusManager.mjs +1 -2
- package/dist/.external/esm/{@tanstack_query-core@5.90.20 → @tanstack_query-core@5.91.2}/@tanstack/query-core/build/modern/onlineManager.mjs +1 -2
- package/dist/.external/esm/{@tanstack_query-core@5.90.20 → @tanstack_query-core@5.91.2}/@tanstack/query-core/build/modern/query.mjs +13 -5
- package/dist/.external/esm/{@tanstack_query-core@5.90.20 → @tanstack_query-core@5.91.2}/@tanstack/query-core/build/modern/queryObserver.mjs +5 -4
- package/dist/.external/esm/{@tanstack_query-core@5.90.20 → @tanstack_query-core@5.91.2}/@tanstack/query-core/build/modern/removable.mjs +3 -2
- package/dist/.external/esm/{@tanstack_query-core@5.90.20 → @tanstack_query-core@5.91.2}/@tanstack/query-core/build/modern/retryer.mjs +3 -2
- package/dist/.external/esm/{@tanstack_query-core@5.90.20 → @tanstack_query-core@5.91.2}/@tanstack/query-core/build/modern/streamedQuery.mjs +2 -4
- package/dist/.external/esm/{@tanstack_react-query@5.90.21_react@19.2.4 → @tanstack_react-query@5.91.3_react@19.2.4}/@tanstack/react-query/build/modern/HydrationBoundary.mjs +1 -1
- package/dist/.external/esm/{@tanstack_react-query@5.90.21_react@19.2.4 → @tanstack_react-query@5.91.3_react@19.2.4}/@tanstack/react-query/build/modern/errorBoundaryUtils.mjs +1 -1
- package/dist/.external/esm/{@tanstack_react-query@5.90.21_react@19.2.4 → @tanstack_react-query@5.91.3_react@19.2.4}/@tanstack/react-query/build/modern/index.mjs +20 -18
- package/dist/.external/esm/{@tanstack_react-query@5.90.21_react@19.2.4 → @tanstack_react-query@5.91.3_react@19.2.4}/@tanstack/react-query/build/modern/useBaseQuery.mjs +4 -3
- package/dist/.external/esm/{@tanstack_react-query@5.90.21_react@19.2.4 → @tanstack_react-query@5.91.3_react@19.2.4}/@tanstack/react-query/build/modern/useInfiniteQuery.mjs +1 -1
- package/dist/.external/esm/{@tanstack_react-query@5.90.21_react@19.2.4 → @tanstack_react-query@5.91.3_react@19.2.4}/@tanstack/react-query/build/modern/useIsFetching.mjs +1 -1
- package/dist/.external/esm/{@tanstack_react-query@5.90.21_react@19.2.4 → @tanstack_react-query@5.91.3_react@19.2.4}/@tanstack/react-query/build/modern/useMutation.mjs +3 -3
- package/dist/.external/esm/{@tanstack_react-query@5.90.21_react@19.2.4 → @tanstack_react-query@5.91.3_react@19.2.4}/@tanstack/react-query/build/modern/useMutationState.mjs +2 -2
- package/dist/.external/esm/{@tanstack_react-query@5.90.21_react@19.2.4 → @tanstack_react-query@5.91.3_react@19.2.4}/@tanstack/react-query/build/modern/useQueries.mjs +4 -4
- package/dist/.external/esm/{@tanstack_react-query@5.90.21_react@19.2.4 → @tanstack_react-query@5.91.3_react@19.2.4}/@tanstack/react-query/build/modern/useQuery.mjs +1 -1
- package/dist/.external/esm/{@tanstack_react-query@5.90.21_react@19.2.4 → @tanstack_react-query@5.91.3_react@19.2.4}/@tanstack/react-query/build/modern/useSuspenseInfiniteQuery.mjs +2 -2
- package/dist/.external/esm/{@tanstack_react-query@5.90.21_react@19.2.4 → @tanstack_react-query@5.91.3_react@19.2.4}/@tanstack/react-query/build/modern/useSuspenseQueries.mjs +1 -1
- package/dist/.external/esm/{@tanstack_react-query@5.90.21_react@19.2.4 → @tanstack_react-query@5.91.3_react@19.2.4}/@tanstack/react-query/build/modern/useSuspenseQuery.mjs +2 -2
- package/dist/.external/esm/ajv@8.18.0/ajv/dist/compile/codegen/index.mjs +1 -1
- package/dist/.external/esm/ajv@8.18.0/ajv/dist/compile/index.mjs +1 -1
- package/dist/.external/esm/ajv@8.18.0/ajv/dist/compile/validate/index.mjs +1 -1
- package/dist/.external/esm/ajv@8.18.0/ajv/dist/vocabularies/applicator/index.mjs +1 -1
- package/dist/.external/esm/ajv@8.18.0/ajv/dist/vocabularies/core/index.mjs +1 -1
- package/dist/.external/esm/ajv@8.18.0/ajv/dist/vocabularies/discriminator/index.mjs +1 -1
- package/dist/.external/esm/ajv@8.18.0/ajv/dist/vocabularies/format/index.mjs +1 -1
- package/dist/.external/esm/ajv@8.18.0/ajv/dist/vocabularies/validation/index.mjs +1 -1
- package/dist/.external/esm/{i18next@25.8.18_typescript@5.9.3 → i18next@25.8.20_typescript@5.9.3}/i18next/dist/esm/i18next.mjs +8 -10
- package/dist/core/cjs/ActionIcons/Add/Add.cjs +1 -1
- package/dist/core/cjs/ActionIcons/Delete/Delete.cjs +1 -1
- package/dist/core/cjs/ActionIcons/Download/Download.cjs +1 -1
- package/dist/core/cjs/ActionIcons/Edit/Edit.cjs +1 -1
- package/dist/core/cjs/ActionIcons/Refresh/Refresh.cjs +1 -1
- package/dist/core/cjs/ActionIcons/View/View.cjs +1 -1
- package/dist/core/cjs/Dialogs/AddDialog.cjs +2 -2
- package/dist/core/cjs/Dialogs/DeleteDialog.cjs +1 -1
- package/dist/core/cjs/Dialogs/EditDialog.cjs +2 -2
- package/dist/core/cjs/Modals/CommonModal.cjs +1 -1
- package/dist/core/cjs/Tables/DataGrid/ErrorDialog.cjs +1 -1
- package/dist/core/cjs/Tables/DataGrid/Toolbar/Filter/FilterMenu.cjs +1 -1
- package/dist/core/cjs/Tables/NextGenDataGrid/components/OptimizedMRT_RowSelectColumn/zustand.cjs +1 -1
- package/dist/core/cjs/Tables/NextGenDataGrid/hooks/useColumns/ColumnHeaderFilterInput/ColumnHeaderFilterInput.cjs +1 -1
- package/dist/core/cjs/Tables/NextGenDataGrid/hooks/useColumns/ColumnHeaderFilterInput/HeaderInputs/HeaderBetweenInput.cjs +1 -1
- package/dist/core/cjs/Tables/NextGenDataGrid/hooks/useColumns/HeaderAdvancedFiltersMenuButton.cjs +1 -1
- package/dist/core/cjs/Wrappers/ApiProvider/ApiProvider.cjs +2 -0
- package/dist/core/cjs/Wrappers/ApiProvider/hooks/useProvideApi.cjs +111 -187
- package/dist/core/cjs/Wrappers/ApiProvider/hooks/useProvideForm.cjs +1 -1
- package/dist/core/cjs/Wrappers/ApiProvider/hooks/utils/useApiActions.cjs +131 -0
- package/dist/core/cjs/Wrappers/ApiProvider/hooks/utils/useLatest.cjs +11 -0
- package/dist/core/cjs/Wrappers/ApiProvider/hooks/utils/useStreamingData.cjs +90 -0
- package/dist/core/cjs/Wrappers/Provider/Contexts/LangContext.cjs +3 -3
- package/dist/core/cjs/Wrappers/Provider/Provider.cjs +2 -2
- package/dist/core/cjs/Wrappers/Provider/hooks/useProvideAuth.cjs +3 -2
- package/dist/core/cjs/Wrappers/Provider/hooks/useProvideInfo.cjs +2 -2
- package/dist/core/cjs/Wrappers/Provider/hooks/useProvideLang.cjs +1 -1
- package/dist/core/cjs/index.cjs +2 -2
- package/dist/core/esm/ActionIcons/Add/Add.mjs +1 -1
- package/dist/core/esm/ActionIcons/Delete/Delete.mjs +1 -1
- package/dist/core/esm/ActionIcons/Download/Download.mjs +1 -1
- package/dist/core/esm/ActionIcons/Edit/Edit.mjs +1 -1
- package/dist/core/esm/ActionIcons/Refresh/Refresh.mjs +1 -1
- package/dist/core/esm/ActionIcons/View/View.mjs +1 -1
- package/dist/core/esm/Dialogs/AddDialog.mjs +2 -2
- package/dist/core/esm/Dialogs/DeleteDialog.mjs +1 -1
- package/dist/core/esm/Dialogs/EditDialog.mjs +2 -2
- package/dist/core/esm/Modals/CommonModal.mjs +1 -1
- package/dist/core/esm/Tables/DataGrid/ErrorDialog.mjs +1 -1
- package/dist/core/esm/Tables/DataGrid/Toolbar/Filter/FilterMenu.mjs +1 -1
- package/dist/core/esm/Tables/NextGenDataGrid/components/OptimizedMRT_RowSelectColumn/zustand.mjs +1 -1
- package/dist/core/esm/Tables/NextGenDataGrid/hooks/useColumns/ColumnHeaderFilterInput/ColumnHeaderFilterInput.mjs +1 -1
- package/dist/core/esm/Tables/NextGenDataGrid/hooks/useColumns/ColumnHeaderFilterInput/HeaderInputs/HeaderBetweenInput.mjs +1 -1
- package/dist/core/esm/Tables/NextGenDataGrid/hooks/useColumns/HeaderAdvancedFiltersMenuButton.mjs +1 -1
- package/dist/core/esm/Wrappers/ApiProvider/ApiProvider.mjs +2 -0
- package/dist/core/esm/Wrappers/ApiProvider/hooks/useProvideApi.mjs +113 -189
- package/dist/core/esm/Wrappers/ApiProvider/hooks/useProvideForm.mjs +1 -1
- package/dist/core/esm/Wrappers/ApiProvider/hooks/utils/useApiActions.mjs +131 -0
- package/dist/core/esm/Wrappers/ApiProvider/hooks/utils/useLatest.mjs +11 -0
- package/dist/core/esm/Wrappers/ApiProvider/hooks/utils/useStreamingData.mjs +90 -0
- package/dist/core/esm/Wrappers/Provider/Contexts/LangContext.mjs +3 -3
- package/dist/core/esm/Wrappers/Provider/Provider.mjs +2 -2
- package/dist/core/esm/Wrappers/Provider/hooks/useProvideAuth.mjs +3 -2
- package/dist/core/esm/Wrappers/Provider/hooks/useProvideInfo.mjs +2 -2
- package/dist/core/esm/Wrappers/Provider/hooks/useProvideLang.mjs +1 -1
- package/dist/core/esm/index.mjs +2 -2
- package/dist/core/lib/Wrappers/ApiProvider/ApiProvider.d.ts +6 -1
- package/dist/core/lib/Wrappers/ApiProvider/hooks/useProvideApi.d.ts +20 -13
- package/dist/core/lib/Wrappers/ApiProvider/hooks/utils/useApiActions.d.ts +19 -0
- package/dist/core/lib/Wrappers/ApiProvider/hooks/utils/useLatest.d.ts +1 -0
- package/dist/core/lib/Wrappers/ApiProvider/hooks/utils/useStreamingData.d.ts +21 -0
- package/dist/core/lib/Wrappers/Provider/hooks/useProvideAuth.d.ts +1 -0
- package/dist/core/lib/Wrappers/Provider/hooks/useProvideInfo.d.ts +1 -0
- package/dist/core/lib/hooks/api/useApi.d.ts +17 -1
- package/dist/core/lib/hooks/auth/useAuth.d.ts +4 -0
- package/dist/core/lib/hooks/auth/useInfo.d.ts +4 -0
- package/dist/zustand/cjs/useProxy/useProxy.cjs +1 -1
- package/dist/zustand/esm/useProxy/useProxy.mjs +1 -1
- package/package.json +1 -1
- /package/dist/.external/cjs/{@tanstack_query-core@5.90.20 → @tanstack_query-core@5.91.2}/@tanstack/query-core/build/modern/hydration.cjs +0 -0
- /package/dist/.external/cjs/{@tanstack_query-core@5.90.20 → @tanstack_query-core@5.91.2}/@tanstack/query-core/build/modern/infiniteQueryBehavior.cjs +0 -0
- /package/dist/.external/cjs/{@tanstack_query-core@5.90.20 → @tanstack_query-core@5.91.2}/@tanstack/query-core/build/modern/infiniteQueryObserver.cjs +0 -0
- /package/dist/.external/cjs/{@tanstack_query-core@5.90.20 → @tanstack_query-core@5.91.2}/@tanstack/query-core/build/modern/mutation.cjs +0 -0
- /package/dist/.external/cjs/{@tanstack_query-core@5.90.20 → @tanstack_query-core@5.91.2}/@tanstack/query-core/build/modern/mutationCache.cjs +0 -0
- /package/dist/.external/cjs/{@tanstack_query-core@5.90.20 → @tanstack_query-core@5.91.2}/@tanstack/query-core/build/modern/mutationObserver.cjs +0 -0
- /package/dist/.external/cjs/{@tanstack_query-core@5.90.20 → @tanstack_query-core@5.91.2}/@tanstack/query-core/build/modern/notifyManager.cjs +0 -0
- /package/dist/.external/cjs/{@tanstack_query-core@5.90.20 → @tanstack_query-core@5.91.2}/@tanstack/query-core/build/modern/queriesObserver.cjs +0 -0
- /package/dist/.external/cjs/{@tanstack_query-core@5.90.20 → @tanstack_query-core@5.91.2}/@tanstack/query-core/build/modern/queryCache.cjs +0 -0
- /package/dist/.external/cjs/{@tanstack_query-core@5.90.20 → @tanstack_query-core@5.91.2}/@tanstack/query-core/build/modern/queryClient.cjs +0 -0
- /package/dist/.external/cjs/{@tanstack_query-core@5.90.20 → @tanstack_query-core@5.91.2}/@tanstack/query-core/build/modern/subscribable.cjs +0 -0
- /package/dist/.external/cjs/{@tanstack_query-core@5.90.20 → @tanstack_query-core@5.91.2}/@tanstack/query-core/build/modern/thenable.cjs +0 -0
- /package/dist/.external/cjs/{@tanstack_query-core@5.90.20 → @tanstack_query-core@5.91.2}/@tanstack/query-core/build/modern/timeoutManager.cjs +0 -0
- /package/dist/.external/cjs/{@tanstack_query-core@5.90.20 → @tanstack_query-core@5.91.2}/@tanstack/query-core/build/modern/types.cjs +0 -0
- /package/dist/.external/cjs/{@tanstack_query-core@5.90.20 → @tanstack_query-core@5.91.2}/@tanstack/query-core/build/modern/utils.cjs +0 -0
- /package/dist/.external/cjs/{@tanstack_react-query@5.90.21_react@19.2.4 → @tanstack_react-query@5.91.3_react@19.2.4}/@tanstack/react-query/build/modern/IsRestoringProvider.cjs +0 -0
- /package/dist/.external/cjs/{@tanstack_react-query@5.90.21_react@19.2.4 → @tanstack_react-query@5.91.3_react@19.2.4}/@tanstack/react-query/build/modern/QueryClientProvider.cjs +0 -0
- /package/dist/.external/cjs/{@tanstack_react-query@5.90.21_react@19.2.4 → @tanstack_react-query@5.91.3_react@19.2.4}/@tanstack/react-query/build/modern/QueryErrorResetBoundary.cjs +0 -0
- /package/dist/.external/cjs/{@tanstack_react-query@5.90.21_react@19.2.4 → @tanstack_react-query@5.91.3_react@19.2.4}/@tanstack/react-query/build/modern/infiniteQueryOptions.cjs +0 -0
- /package/dist/.external/cjs/{@tanstack_react-query@5.90.21_react@19.2.4 → @tanstack_react-query@5.91.3_react@19.2.4}/@tanstack/react-query/build/modern/mutationOptions.cjs +0 -0
- /package/dist/.external/cjs/{@tanstack_react-query@5.90.21_react@19.2.4 → @tanstack_react-query@5.91.3_react@19.2.4}/@tanstack/react-query/build/modern/queryOptions.cjs +0 -0
- /package/dist/.external/cjs/{@tanstack_react-query@5.90.21_react@19.2.4 → @tanstack_react-query@5.91.3_react@19.2.4}/@tanstack/react-query/build/modern/suspense.cjs +0 -0
- /package/dist/.external/cjs/{@tanstack_react-query@5.90.21_react@19.2.4 → @tanstack_react-query@5.91.3_react@19.2.4}/@tanstack/react-query/build/modern/usePrefetchInfiniteQuery.cjs +0 -0
- /package/dist/.external/cjs/{@tanstack_react-query@5.90.21_react@19.2.4 → @tanstack_react-query@5.91.3_react@19.2.4}/@tanstack/react-query/build/modern/usePrefetchQuery.cjs +0 -0
- /package/dist/.external/cjs/{mantine-form-yup-resolver@2.0.0_@mantine_form@8.3.16_yup@1.7.1 → mantine-form-yup-resolver@2.0.0_@mantine_form@8.3.18_yup@1.7.1}/mantine-form-yup-resolver/dist/esm/index.cjs +0 -0
- /package/dist/.external/cjs/{react-i18next@15.7.4_i18next@25.8.18_react-dom@19.2.4_react@19.2.4_typescript@5.9.3 → react-i18next@15.7.4_i18next@25.8.20_react-dom@19.2.4_react@19.2.4_typescript@5.9.3}/react-i18next/dist/es/I18nextProvider.cjs +0 -0
- /package/dist/.external/cjs/{react-i18next@15.7.4_i18next@25.8.18_react-dom@19.2.4_react@19.2.4_typescript@5.9.3 → react-i18next@15.7.4_i18next@25.8.20_react-dom@19.2.4_react@19.2.4_typescript@5.9.3}/react-i18next/dist/es/context.cjs +0 -0
- /package/dist/.external/cjs/{react-i18next@15.7.4_i18next@25.8.18_react-dom@19.2.4_react@19.2.4_typescript@5.9.3 → react-i18next@15.7.4_i18next@25.8.20_react-dom@19.2.4_react@19.2.4_typescript@5.9.3}/react-i18next/dist/es/defaults.cjs +0 -0
- /package/dist/.external/cjs/{react-i18next@15.7.4_i18next@25.8.18_react-dom@19.2.4_react@19.2.4_typescript@5.9.3 → react-i18next@15.7.4_i18next@25.8.20_react-dom@19.2.4_react@19.2.4_typescript@5.9.3}/react-i18next/dist/es/i18nInstance.cjs +0 -0
- /package/dist/.external/cjs/{react-i18next@15.7.4_i18next@25.8.18_react-dom@19.2.4_react@19.2.4_typescript@5.9.3 → react-i18next@15.7.4_i18next@25.8.20_react-dom@19.2.4_react@19.2.4_typescript@5.9.3}/react-i18next/dist/es/initReactI18next.cjs +0 -0
- /package/dist/.external/cjs/{react-i18next@15.7.4_i18next@25.8.18_react-dom@19.2.4_react@19.2.4_typescript@5.9.3 → react-i18next@15.7.4_i18next@25.8.20_react-dom@19.2.4_react@19.2.4_typescript@5.9.3}/react-i18next/dist/es/unescape.cjs +0 -0
- /package/dist/.external/cjs/{react-i18next@15.7.4_i18next@25.8.18_react-dom@19.2.4_react@19.2.4_typescript@5.9.3 → react-i18next@15.7.4_i18next@25.8.20_react-dom@19.2.4_react@19.2.4_typescript@5.9.3}/react-i18next/dist/es/useTranslation.cjs +0 -0
- /package/dist/.external/cjs/{react-i18next@15.7.4_i18next@25.8.18_react-dom@19.2.4_react@19.2.4_typescript@5.9.3 → react-i18next@15.7.4_i18next@25.8.20_react-dom@19.2.4_react@19.2.4_typescript@5.9.3}/react-i18next/dist/es/utils.cjs +0 -0
- /package/dist/.external/cjs/{zustand@5.0.11_@types_react@19.2.14_react@19.2.4 → zustand@5.0.12_@types_react@19.2.14_react@19.2.4}/zustand/esm/react.cjs +0 -0
- /package/dist/.external/cjs/{zustand@5.0.11_@types_react@19.2.14_react@19.2.4 → zustand@5.0.12_@types_react@19.2.14_react@19.2.4}/zustand/esm/vanilla.cjs +0 -0
- /package/dist/.external/esm/{@tanstack_query-core@5.90.20 → @tanstack_query-core@5.91.2}/@tanstack/query-core/build/modern/hydration.mjs +0 -0
- /package/dist/.external/esm/{@tanstack_query-core@5.90.20 → @tanstack_query-core@5.91.2}/@tanstack/query-core/build/modern/infiniteQueryBehavior.mjs +0 -0
- /package/dist/.external/esm/{@tanstack_query-core@5.90.20 → @tanstack_query-core@5.91.2}/@tanstack/query-core/build/modern/infiniteQueryObserver.mjs +0 -0
- /package/dist/.external/esm/{@tanstack_query-core@5.90.20 → @tanstack_query-core@5.91.2}/@tanstack/query-core/build/modern/mutation.mjs +0 -0
- /package/dist/.external/esm/{@tanstack_query-core@5.90.20 → @tanstack_query-core@5.91.2}/@tanstack/query-core/build/modern/mutationCache.mjs +0 -0
- /package/dist/.external/esm/{@tanstack_query-core@5.90.20 → @tanstack_query-core@5.91.2}/@tanstack/query-core/build/modern/mutationObserver.mjs +0 -0
- /package/dist/.external/esm/{@tanstack_query-core@5.90.20 → @tanstack_query-core@5.91.2}/@tanstack/query-core/build/modern/notifyManager.mjs +0 -0
- /package/dist/.external/esm/{@tanstack_query-core@5.90.20 → @tanstack_query-core@5.91.2}/@tanstack/query-core/build/modern/queriesObserver.mjs +0 -0
- /package/dist/.external/esm/{@tanstack_query-core@5.90.20 → @tanstack_query-core@5.91.2}/@tanstack/query-core/build/modern/queryCache.mjs +0 -0
- /package/dist/.external/esm/{@tanstack_query-core@5.90.20 → @tanstack_query-core@5.91.2}/@tanstack/query-core/build/modern/queryClient.mjs +0 -0
- /package/dist/.external/esm/{@tanstack_query-core@5.90.20 → @tanstack_query-core@5.91.2}/@tanstack/query-core/build/modern/subscribable.mjs +0 -0
- /package/dist/.external/esm/{@tanstack_query-core@5.90.20 → @tanstack_query-core@5.91.2}/@tanstack/query-core/build/modern/thenable.mjs +0 -0
- /package/dist/.external/esm/{@tanstack_query-core@5.90.20 → @tanstack_query-core@5.91.2}/@tanstack/query-core/build/modern/timeoutManager.mjs +0 -0
- /package/dist/.external/esm/{@tanstack_query-core@5.90.20 → @tanstack_query-core@5.91.2}/@tanstack/query-core/build/modern/types.mjs +0 -0
- /package/dist/.external/esm/{@tanstack_query-core@5.90.20 → @tanstack_query-core@5.91.2}/@tanstack/query-core/build/modern/utils.mjs +0 -0
- /package/dist/.external/esm/{@tanstack_react-query@5.90.21_react@19.2.4 → @tanstack_react-query@5.91.3_react@19.2.4}/@tanstack/react-query/build/modern/IsRestoringProvider.mjs +0 -0
- /package/dist/.external/esm/{@tanstack_react-query@5.90.21_react@19.2.4 → @tanstack_react-query@5.91.3_react@19.2.4}/@tanstack/react-query/build/modern/QueryClientProvider.mjs +0 -0
- /package/dist/.external/esm/{@tanstack_react-query@5.90.21_react@19.2.4 → @tanstack_react-query@5.91.3_react@19.2.4}/@tanstack/react-query/build/modern/QueryErrorResetBoundary.mjs +0 -0
- /package/dist/.external/esm/{@tanstack_react-query@5.90.21_react@19.2.4 → @tanstack_react-query@5.91.3_react@19.2.4}/@tanstack/react-query/build/modern/infiniteQueryOptions.mjs +0 -0
- /package/dist/.external/esm/{@tanstack_react-query@5.90.21_react@19.2.4 → @tanstack_react-query@5.91.3_react@19.2.4}/@tanstack/react-query/build/modern/mutationOptions.mjs +0 -0
- /package/dist/.external/esm/{@tanstack_react-query@5.90.21_react@19.2.4 → @tanstack_react-query@5.91.3_react@19.2.4}/@tanstack/react-query/build/modern/queryOptions.mjs +0 -0
- /package/dist/.external/esm/{@tanstack_react-query@5.90.21_react@19.2.4 → @tanstack_react-query@5.91.3_react@19.2.4}/@tanstack/react-query/build/modern/suspense.mjs +0 -0
- /package/dist/.external/esm/{@tanstack_react-query@5.90.21_react@19.2.4 → @tanstack_react-query@5.91.3_react@19.2.4}/@tanstack/react-query/build/modern/usePrefetchInfiniteQuery.mjs +0 -0
- /package/dist/.external/esm/{@tanstack_react-query@5.90.21_react@19.2.4 → @tanstack_react-query@5.91.3_react@19.2.4}/@tanstack/react-query/build/modern/usePrefetchQuery.mjs +0 -0
- /package/dist/.external/esm/{mantine-form-yup-resolver@2.0.0_@mantine_form@8.3.16_yup@1.7.1 → mantine-form-yup-resolver@2.0.0_@mantine_form@8.3.18_yup@1.7.1}/mantine-form-yup-resolver/dist/esm/index.mjs +0 -0
- /package/dist/.external/esm/{react-i18next@15.7.4_i18next@25.8.18_react-dom@19.2.4_react@19.2.4_typescript@5.9.3 → react-i18next@15.7.4_i18next@25.8.20_react-dom@19.2.4_react@19.2.4_typescript@5.9.3}/react-i18next/dist/es/I18nextProvider.mjs +0 -0
- /package/dist/.external/esm/{react-i18next@15.7.4_i18next@25.8.18_react-dom@19.2.4_react@19.2.4_typescript@5.9.3 → react-i18next@15.7.4_i18next@25.8.20_react-dom@19.2.4_react@19.2.4_typescript@5.9.3}/react-i18next/dist/es/context.mjs +0 -0
- /package/dist/.external/esm/{react-i18next@15.7.4_i18next@25.8.18_react-dom@19.2.4_react@19.2.4_typescript@5.9.3 → react-i18next@15.7.4_i18next@25.8.20_react-dom@19.2.4_react@19.2.4_typescript@5.9.3}/react-i18next/dist/es/defaults.mjs +0 -0
- /package/dist/.external/esm/{react-i18next@15.7.4_i18next@25.8.18_react-dom@19.2.4_react@19.2.4_typescript@5.9.3 → react-i18next@15.7.4_i18next@25.8.20_react-dom@19.2.4_react@19.2.4_typescript@5.9.3}/react-i18next/dist/es/i18nInstance.mjs +0 -0
- /package/dist/.external/esm/{react-i18next@15.7.4_i18next@25.8.18_react-dom@19.2.4_react@19.2.4_typescript@5.9.3 → react-i18next@15.7.4_i18next@25.8.20_react-dom@19.2.4_react@19.2.4_typescript@5.9.3}/react-i18next/dist/es/initReactI18next.mjs +0 -0
- /package/dist/.external/esm/{react-i18next@15.7.4_i18next@25.8.18_react-dom@19.2.4_react@19.2.4_typescript@5.9.3 → react-i18next@15.7.4_i18next@25.8.20_react-dom@19.2.4_react@19.2.4_typescript@5.9.3}/react-i18next/dist/es/unescape.mjs +0 -0
- /package/dist/.external/esm/{react-i18next@15.7.4_i18next@25.8.18_react-dom@19.2.4_react@19.2.4_typescript@5.9.3 → react-i18next@15.7.4_i18next@25.8.20_react-dom@19.2.4_react@19.2.4_typescript@5.9.3}/react-i18next/dist/es/useTranslation.mjs +0 -0
- /package/dist/.external/esm/{react-i18next@15.7.4_i18next@25.8.18_react-dom@19.2.4_react@19.2.4_typescript@5.9.3 → react-i18next@15.7.4_i18next@25.8.20_react-dom@19.2.4_react@19.2.4_typescript@5.9.3}/react-i18next/dist/es/utils.mjs +0 -0
- /package/dist/.external/esm/{zustand@5.0.11_@types_react@19.2.14_react@19.2.4 → zustand@5.0.12_@types_react@19.2.14_react@19.2.4}/zustand/esm/react.mjs +0 -0
- /package/dist/.external/esm/{zustand@5.0.11_@types_react@19.2.14_react@19.2.4 → zustand@5.0.12_@types_react@19.2.14_react@19.2.4}/zustand/esm/vanilla.mjs +0 -0
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import { useState, useRef,
|
|
1
|
+
import { useState, useRef, useMemo, useCallback, useEffect } from "react";
|
|
2
2
|
import { convertId, getItemId, urlJoin } from "fastapi-rtk/utils";
|
|
3
|
-
import { useDidUpdate
|
|
4
|
-
import { keepPreviousData } from "../../../../../.external/esm/@tanstack_query-core@5.
|
|
5
|
-
import { useQuery } from "../../../../../.external/esm/@tanstack_react-query@5.
|
|
3
|
+
import { useDidUpdate } from "@mantine/hooks";
|
|
4
|
+
import { keepPreviousData } from "../../../../../.external/esm/@tanstack_query-core@5.91.2/@tanstack/query-core/build/modern/utils.mjs";
|
|
5
|
+
import { useQuery } from "../../../../../.external/esm/@tanstack_react-query@5.91.3_react@19.2.4/@tanstack/react-query/build/modern/useQuery.mjs";
|
|
6
|
+
import { useInfiniteQuery } from "../../../../../.external/esm/@tanstack_react-query@5.91.3_react@19.2.4/@tanstack/react-query/build/modern/useInfiniteQuery.mjs";
|
|
6
7
|
import { useLang } from "../../../hooks/lang/useLang.mjs";
|
|
7
8
|
import { createItem } from "../utils/api/createItem.mjs";
|
|
8
9
|
import { deleteItem } from "../utils/api/deleteItem.mjs";
|
|
@@ -16,6 +17,9 @@ import { updateItem } from "../utils/api/updateItem.mjs";
|
|
|
16
17
|
import { uploadItems } from "../utils/api/uploadItems.mjs";
|
|
17
18
|
import { convertInfo } from "../utils/convertInfo.mjs";
|
|
18
19
|
import { createQueryParams } from "../utils/createQueryParams.mjs";
|
|
20
|
+
import { useApiActions } from "./utils/useApiActions.mjs";
|
|
21
|
+
import { useLatest } from "./utils/useLatest.mjs";
|
|
22
|
+
import { useStreamingData } from "./utils/useStreamingData.mjs";
|
|
19
23
|
const defaultApi = {
|
|
20
24
|
getItem,
|
|
21
25
|
getItems,
|
|
@@ -28,6 +32,15 @@ const defaultApi = {
|
|
|
28
32
|
formCreateItem,
|
|
29
33
|
formUpdateItem
|
|
30
34
|
};
|
|
35
|
+
const getStreamingQuerySignature = (params) => {
|
|
36
|
+
if (!params) {
|
|
37
|
+
return null;
|
|
38
|
+
}
|
|
39
|
+
const rest = { ...params };
|
|
40
|
+
delete rest.page;
|
|
41
|
+
delete rest.streaming;
|
|
42
|
+
return JSON.stringify(rest);
|
|
43
|
+
};
|
|
31
44
|
function useProvideApi({
|
|
32
45
|
path,
|
|
33
46
|
initialQueryParams,
|
|
@@ -40,16 +53,15 @@ function useProvideApi({
|
|
|
40
53
|
resetQueryParamsOnPathChange = true,
|
|
41
54
|
infoQueryProps,
|
|
42
55
|
dataQueryProps,
|
|
56
|
+
streamingQueryProps,
|
|
43
57
|
throwOnError = false,
|
|
44
58
|
streaming: streamingMode = false
|
|
45
59
|
}, api = defaultApi) {
|
|
60
|
+
var _a;
|
|
46
61
|
const [queryParams, setQueryParams] = useState(
|
|
47
62
|
initialQueryParams ? createQueryParams(null, initialQueryParams) : null
|
|
48
63
|
);
|
|
49
|
-
const pathRef =
|
|
50
|
-
useEffect(() => {
|
|
51
|
-
pathRef.current = path;
|
|
52
|
-
}, [path]);
|
|
64
|
+
const pathRef = useLatest(path);
|
|
53
65
|
const memoizedQueryParamsPathRef = useRef(path);
|
|
54
66
|
const memoizedQueryParams = useMemo(
|
|
55
67
|
() => {
|
|
@@ -67,10 +79,7 @@ function useProvideApi({
|
|
|
67
79
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
68
80
|
[queryParams, relation]
|
|
69
81
|
);
|
|
70
|
-
const queryParamsRef =
|
|
71
|
-
useEffect(() => {
|
|
72
|
-
queryParamsRef.current = memoizedQueryParams;
|
|
73
|
-
}, [memoizedQueryParams]);
|
|
82
|
+
const queryParamsRef = useLatest(memoizedQueryParams);
|
|
74
83
|
const setQueryParamsCallback = useCallback(
|
|
75
84
|
(partialQueryParams) => setQueryParams((prev) => {
|
|
76
85
|
if (typeof partialQueryParams === "function") {
|
|
@@ -98,17 +107,11 @@ function useProvideApi({
|
|
|
98
107
|
[streamingMode]
|
|
99
108
|
);
|
|
100
109
|
const [error, setError] = useState();
|
|
101
|
-
const memoizedError = useMemo(() => error, [error]);
|
|
102
110
|
const resetError = useCallback(() => setError(void 0), []);
|
|
103
111
|
const { currentLanguage } = useLang();
|
|
104
|
-
const {
|
|
105
|
-
data: info,
|
|
106
|
-
isFetching: infoLoading,
|
|
107
|
-
refetch: infoRefetch,
|
|
108
|
-
error: infoError
|
|
109
|
-
} = useQuery({
|
|
112
|
+
const infoQuery = useQuery({
|
|
110
113
|
queryKey: [`info`, path, refetchInfoBasedOnLang ? currentLanguage : ""],
|
|
111
|
-
queryFn: ({ signal }) => api.getInfo(urlJoin(path, "_info"), { signal, headers: { "Accept-Language": currentLanguage } }).then((
|
|
114
|
+
queryFn: ({ signal }) => api.getInfo(urlJoin(path, "_info"), { signal, headers: { "Accept-Language": currentLanguage } }).then((data) => ({ ...convertInfo(data), path })),
|
|
112
115
|
placeholderData: clearInfoOnRefetch ? null : keepPreviousData,
|
|
113
116
|
enabled: fetchInfo,
|
|
114
117
|
retry: false,
|
|
@@ -117,16 +120,8 @@ function useProvideApi({
|
|
|
117
120
|
refetchOnWindowFocus: false,
|
|
118
121
|
...infoQueryProps
|
|
119
122
|
});
|
|
120
|
-
const infoRef =
|
|
121
|
-
|
|
122
|
-
infoRef.current = info;
|
|
123
|
-
}, [info]);
|
|
124
|
-
const {
|
|
125
|
-
data,
|
|
126
|
-
isFetching: dataLoading,
|
|
127
|
-
refetch: dataRefetch,
|
|
128
|
-
error: dataError
|
|
129
|
-
} = useQuery({
|
|
123
|
+
const infoRef = useLatest(infoQuery.data);
|
|
124
|
+
const dataQuery = useQuery({
|
|
130
125
|
queryKey: [
|
|
131
126
|
`data`,
|
|
132
127
|
memoizedQueryParamsPathRef.current,
|
|
@@ -136,28 +131,80 @@ function useProvideApi({
|
|
|
136
131
|
queryFn: ({ signal }) => memoizedQueryParams ? api.getItems(urlJoin(memoizedQueryParamsPathRef.current, "/"), memoizedQueryParams, {
|
|
137
132
|
signal,
|
|
138
133
|
headers: { "Accept-Language": currentLanguage }
|
|
139
|
-
}).then((
|
|
140
|
-
...
|
|
141
|
-
result:
|
|
134
|
+
}).then((data) => ({
|
|
135
|
+
...data,
|
|
136
|
+
result: data.result.map((item, index) => ({ ...item, id: data.ids[index] })),
|
|
142
137
|
path: memoizedQueryParamsPathRef.current,
|
|
143
138
|
queryParams: memoizedQueryParams
|
|
144
139
|
})) : null,
|
|
145
140
|
placeholderData: clearDataOnRefetch ? null : keepPreviousData,
|
|
146
141
|
retry: false,
|
|
142
|
+
enabled: !streamingMode,
|
|
147
143
|
...dataQueryProps
|
|
148
144
|
});
|
|
145
|
+
const streamingQuerySignature = useMemo(() => getStreamingQuerySignature(memoizedQueryParams), [memoizedQueryParams]);
|
|
146
|
+
const streamingQueryKey = useMemo(
|
|
147
|
+
() => [
|
|
148
|
+
`data-streaming`,
|
|
149
|
+
memoizedQueryParamsPathRef.current,
|
|
150
|
+
streamingQuerySignature,
|
|
151
|
+
refetchDataBasedOnLang ? currentLanguage : ""
|
|
152
|
+
],
|
|
153
|
+
[currentLanguage, refetchDataBasedOnLang, streamingQuerySignature]
|
|
154
|
+
);
|
|
155
|
+
const streamingQuery = useInfiniteQuery({
|
|
156
|
+
queryKey: streamingQueryKey,
|
|
157
|
+
queryFn: ({ signal, pageParam }) => {
|
|
158
|
+
if (!memoizedQueryParams) {
|
|
159
|
+
return null;
|
|
160
|
+
}
|
|
161
|
+
const page = pageParam ?? memoizedQueryParams.page ?? 0;
|
|
162
|
+
const params = { ...memoizedQueryParams, page };
|
|
163
|
+
return api.getItems(urlJoin(memoizedQueryParamsPathRef.current, "/"), params, {
|
|
164
|
+
signal,
|
|
165
|
+
headers: { "Accept-Language": currentLanguage }
|
|
166
|
+
}).then((data) => ({
|
|
167
|
+
...data,
|
|
168
|
+
result: data.result.map((item, index) => ({ ...item, id: data.ids[index] })),
|
|
169
|
+
path: memoizedQueryParamsPathRef.current,
|
|
170
|
+
queryParams: params
|
|
171
|
+
}));
|
|
172
|
+
},
|
|
173
|
+
initialPageParam: (memoizedQueryParams == null ? void 0 : memoizedQueryParams.page) ?? 0,
|
|
174
|
+
getNextPageParam: (lastPage) => {
|
|
175
|
+
var _a2, _b;
|
|
176
|
+
if (!lastPage) {
|
|
177
|
+
return void 0;
|
|
178
|
+
}
|
|
179
|
+
const currentPage = ((_a2 = lastPage.queryParams) == null ? void 0 : _a2.page) ?? 0;
|
|
180
|
+
const pageSize = (_b = lastPage.queryParams) == null ? void 0 : _b.page_size;
|
|
181
|
+
if (!pageSize || lastPage.result.length < pageSize) {
|
|
182
|
+
return void 0;
|
|
183
|
+
}
|
|
184
|
+
return currentPage + 1;
|
|
185
|
+
},
|
|
186
|
+
placeholderData: clearDataOnRefetch ? null : keepPreviousData,
|
|
187
|
+
retry: false,
|
|
188
|
+
enabled: streamingMode && !!memoizedQueryParams,
|
|
189
|
+
...streamingQueryProps
|
|
190
|
+
});
|
|
191
|
+
const { activeDataQuery, streaming } = useStreamingData({
|
|
192
|
+
streamingMode,
|
|
193
|
+
dataQuery,
|
|
194
|
+
streamingQuery,
|
|
195
|
+
streamingQueryKey
|
|
196
|
+
});
|
|
149
197
|
useEffect(() => {
|
|
150
|
-
if (
|
|
151
|
-
setError({ message: `Could not fetch info`, originalError:
|
|
198
|
+
if (infoQuery.error) {
|
|
199
|
+
setError({ message: `Could not fetch info`, originalError: infoQuery.error });
|
|
152
200
|
return;
|
|
153
201
|
}
|
|
154
|
-
if (
|
|
155
|
-
setError({ message: `Could not fetch list`, originalError:
|
|
202
|
+
if (activeDataQuery.error) {
|
|
203
|
+
setError({ message: `Could not fetch list`, originalError: activeDataQuery.error });
|
|
156
204
|
return;
|
|
157
205
|
}
|
|
158
206
|
resetError();
|
|
159
|
-
}, [
|
|
160
|
-
const loading = useMemo(() => infoLoading || dataLoading, [infoLoading, dataLoading]);
|
|
207
|
+
}, [activeDataQuery.error, infoQuery.error, resetError]);
|
|
161
208
|
useDidUpdate(() => {
|
|
162
209
|
if (!resetQueryParamsOnPathChange) {
|
|
163
210
|
return;
|
|
@@ -168,176 +215,53 @@ function useProvideApi({
|
|
|
168
215
|
}
|
|
169
216
|
setQueryParams({ ...newQueryParams });
|
|
170
217
|
}, [path]);
|
|
171
|
-
const getEntry =
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
if (throwOnError) {
|
|
182
|
-
throw error2;
|
|
183
|
-
}
|
|
184
|
-
}
|
|
185
|
-
},
|
|
186
|
-
[api, currentLanguage, resetError, throwOnError]
|
|
187
|
-
);
|
|
188
|
-
const addEntry = useCallback(
|
|
189
|
-
async (item) => {
|
|
190
|
-
var _a;
|
|
191
|
-
try {
|
|
192
|
-
resetError();
|
|
193
|
-
const func = ((_a = infoRef.current) == null ? void 0 : _a.add_type) === "form" ? api.formCreateItem : api.createItem;
|
|
194
|
-
const response = await func(pathRef.current, item, {
|
|
195
|
-
headers: { "Accept-Language": currentLanguage }
|
|
196
|
-
});
|
|
197
|
-
return response;
|
|
198
|
-
} catch (error2) {
|
|
199
|
-
setError({ message: `Could not add item`, originalError: error2 });
|
|
200
|
-
if (throwOnError) {
|
|
201
|
-
throw error2;
|
|
202
|
-
}
|
|
203
|
-
}
|
|
204
|
-
},
|
|
205
|
-
[api.createItem, api.formCreateItem, currentLanguage, resetError, throwOnError]
|
|
206
|
-
);
|
|
207
|
-
const updateEntry = useCallback(
|
|
208
|
-
async (id, item) => {
|
|
209
|
-
var _a;
|
|
210
|
-
try {
|
|
211
|
-
resetError();
|
|
212
|
-
const func = ((_a = infoRef.current) == null ? void 0 : _a.edit_type) === "form" ? api.formUpdateItem : api.updateItem;
|
|
213
|
-
const response = await func(pathRef.current, convertId(id), item, {
|
|
214
|
-
headers: { "Accept-Language": currentLanguage }
|
|
215
|
-
});
|
|
216
|
-
return response;
|
|
217
|
-
} catch (error2) {
|
|
218
|
-
setError({ message: "Could not update item with id {{id}}", data: { id }, originalError: error2 });
|
|
219
|
-
if (throwOnError) {
|
|
220
|
-
throw error2;
|
|
221
|
-
}
|
|
222
|
-
}
|
|
223
|
-
},
|
|
224
|
-
[api.formUpdateItem, api.updateItem, currentLanguage, resetError, throwOnError]
|
|
225
|
-
);
|
|
226
|
-
const deleteEntry = useCallback(
|
|
227
|
-
async (id) => {
|
|
228
|
-
try {
|
|
229
|
-
resetError();
|
|
230
|
-
const response = await api.deleteItem(pathRef.current, convertId(id), {
|
|
231
|
-
headers: { "Accept-Language": currentLanguage }
|
|
232
|
-
});
|
|
233
|
-
return response;
|
|
234
|
-
} catch (error2) {
|
|
235
|
-
setError({ message: "Could not delete item with id {{id}}", data: { id }, originalError: error2 });
|
|
236
|
-
if (throwOnError) {
|
|
237
|
-
throw error2;
|
|
238
|
-
}
|
|
239
|
-
}
|
|
240
|
-
},
|
|
241
|
-
[api, currentLanguage, resetError, throwOnError]
|
|
242
|
-
);
|
|
243
|
-
const download = useCallback(
|
|
244
|
-
async (label, { export_mode, delimiter, quotechar } = {}) => {
|
|
245
|
-
try {
|
|
246
|
-
resetError();
|
|
247
|
-
await api.downloadItems(pathRef.current, queryParamsRef.current, { label, export_mode, delimiter, quotechar });
|
|
248
|
-
} catch (error2) {
|
|
249
|
-
setError({ message: `Could not download`, originalError: error2 });
|
|
250
|
-
if (throwOnError) {
|
|
251
|
-
throw error2;
|
|
252
|
-
}
|
|
253
|
-
}
|
|
254
|
-
},
|
|
255
|
-
[api, resetError, throwOnError]
|
|
256
|
-
);
|
|
257
|
-
const upload = useCallback(
|
|
258
|
-
async (file, { delimiter, quotechar } = {}) => {
|
|
259
|
-
try {
|
|
260
|
-
resetError();
|
|
261
|
-
const response = await api.uploadItems(pathRef.current, file, { delimiter, quotechar });
|
|
262
|
-
return response;
|
|
263
|
-
} catch (error2) {
|
|
264
|
-
setError({ message: `Could not upload`, originalError: error2 });
|
|
265
|
-
if (throwOnError) {
|
|
266
|
-
throw error2;
|
|
267
|
-
}
|
|
268
|
-
}
|
|
269
|
-
},
|
|
270
|
-
[api, resetError, throwOnError]
|
|
271
|
-
);
|
|
272
|
-
const getItemURL = useCallback(
|
|
273
|
-
(type, item) => typeof item === "string" ? urlJoin(path, `_${type}`, item) : URL.createObjectURL(item),
|
|
274
|
-
[path]
|
|
275
|
-
);
|
|
276
|
-
const [streaming, setStreaming] = useSetState({
|
|
277
|
-
data: {},
|
|
278
|
-
isEnd: false,
|
|
279
|
-
fetch: streamingMode ? () => setQueryParamsCallback({ page: 0, streaming: true }) : () => null
|
|
218
|
+
const { getEntry, addEntry, updateEntry, deleteEntry, download, upload, getItemURL } = useApiActions({
|
|
219
|
+
api,
|
|
220
|
+
path,
|
|
221
|
+
pathRef,
|
|
222
|
+
infoRef,
|
|
223
|
+
queryParamsRef,
|
|
224
|
+
currentLanguage,
|
|
225
|
+
resetError,
|
|
226
|
+
setError,
|
|
227
|
+
throwOnError
|
|
280
228
|
});
|
|
281
|
-
useEffect(() => {
|
|
282
|
-
if (!streamingMode) {
|
|
283
|
-
return;
|
|
284
|
-
}
|
|
285
|
-
if (!data) {
|
|
286
|
-
return;
|
|
287
|
-
}
|
|
288
|
-
setStreaming((prev) => {
|
|
289
|
-
var _a;
|
|
290
|
-
const newStreaming = { isEnd: false };
|
|
291
|
-
const currentPage = ((_a = data.queryParams) == null ? void 0 : _a.page) ?? 0;
|
|
292
|
-
const nextPage = currentPage + 1;
|
|
293
|
-
if (prev.data[nextPage]) {
|
|
294
|
-
newStreaming.data = {};
|
|
295
|
-
} else {
|
|
296
|
-
newStreaming.data = { ...prev.data };
|
|
297
|
-
}
|
|
298
|
-
newStreaming.data[currentPage] = data.result;
|
|
299
|
-
if (data.result.length < data.queryParams.page_size) {
|
|
300
|
-
newStreaming.isEnd = true;
|
|
301
|
-
newStreaming.fetch = () => null;
|
|
302
|
-
} else {
|
|
303
|
-
newStreaming.fetch = () => setQueryParamsCallback({ page: nextPage, streaming: true });
|
|
304
|
-
}
|
|
305
|
-
return newStreaming;
|
|
306
|
-
});
|
|
307
|
-
}, [data, setQueryParamsCallback, setStreaming, streamingMode]);
|
|
308
229
|
const specialKey = useMemo(() => {
|
|
309
|
-
var
|
|
230
|
+
var _a2, _b;
|
|
310
231
|
const specialKey2 = {
|
|
311
232
|
all: "all",
|
|
312
233
|
actions: "actions"
|
|
313
234
|
};
|
|
314
|
-
(
|
|
235
|
+
(_b = (_a2 = activeDataQuery.data) == null ? void 0 : _a2.list_columns) == null ? void 0 : _b.forEach((key) => {
|
|
315
236
|
if (specialKey2[key]) {
|
|
316
237
|
specialKey2[key] = `_${key}`;
|
|
317
238
|
}
|
|
318
239
|
});
|
|
319
240
|
return specialKey2;
|
|
320
|
-
}, [data == null ? void 0 :
|
|
241
|
+
}, [(_a = activeDataQuery.data) == null ? void 0 : _a.list_columns]);
|
|
321
242
|
const refetch = useCallback(
|
|
322
|
-
() => queryParamsRef.current ?
|
|
323
|
-
[
|
|
243
|
+
() => queryParamsRef.current ? activeDataQuery.refetch() : setQueryParamsCallback(),
|
|
244
|
+
[activeDataQuery, queryParamsRef, setQueryParamsCallback]
|
|
324
245
|
);
|
|
325
246
|
return {
|
|
326
247
|
path,
|
|
327
|
-
data,
|
|
328
|
-
info,
|
|
248
|
+
data: activeDataQuery.data,
|
|
249
|
+
info: infoQuery.data,
|
|
329
250
|
queryParams: memoizedQueryParams,
|
|
330
|
-
loading,
|
|
331
|
-
infoLoading,
|
|
332
|
-
dataLoading,
|
|
333
|
-
error
|
|
334
|
-
infoError,
|
|
335
|
-
dataError,
|
|
251
|
+
loading: infoQuery.isFetching || activeDataQuery.isFetching,
|
|
252
|
+
infoLoading: infoQuery.isFetching,
|
|
253
|
+
dataLoading: activeDataQuery.isFetching,
|
|
254
|
+
error,
|
|
255
|
+
infoError: infoQuery.error,
|
|
256
|
+
dataError: activeDataQuery.error,
|
|
257
|
+
infoQuery,
|
|
258
|
+
dataQuery: activeDataQuery,
|
|
259
|
+
streamingQuery,
|
|
336
260
|
streaming,
|
|
337
261
|
specialKey,
|
|
338
262
|
setQueryParams: setQueryParamsCallback,
|
|
339
263
|
refetch,
|
|
340
|
-
refetchInfo:
|
|
264
|
+
refetchInfo: infoQuery.refetch,
|
|
341
265
|
getEntry,
|
|
342
266
|
addEntry,
|
|
343
267
|
updateEntry,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { initialState, VIEW_MODE } from "fastapi-rtk/constants";
|
|
2
2
|
import { useState } from "react";
|
|
3
|
-
import { create } from "../../../../../.external/esm/zustand@5.0.
|
|
3
|
+
import { create } from "../../../../../.external/esm/zustand@5.0.12_@types_react@19.2.14_react@19.2.4/zustand/esm/react.mjs";
|
|
4
4
|
const useProvideForm = () => {
|
|
5
5
|
const [storeAdd] = useState(
|
|
6
6
|
() => create((set, get) => ({
|
|
@@ -0,0 +1,131 @@
|
|
|
1
|
+
import { convertId, urlJoin } from "fastapi-rtk/utils";
|
|
2
|
+
import { useCallback } from "react";
|
|
3
|
+
const useApiActions = ({
|
|
4
|
+
api,
|
|
5
|
+
path,
|
|
6
|
+
pathRef,
|
|
7
|
+
infoRef,
|
|
8
|
+
queryParamsRef,
|
|
9
|
+
currentLanguage,
|
|
10
|
+
resetError,
|
|
11
|
+
setError,
|
|
12
|
+
throwOnError
|
|
13
|
+
}) => {
|
|
14
|
+
const getEntry = useCallback(
|
|
15
|
+
async (id) => {
|
|
16
|
+
try {
|
|
17
|
+
resetError();
|
|
18
|
+
const response = await api.getItem(pathRef.current, convertId(id), {
|
|
19
|
+
headers: { "Accept-Language": currentLanguage }
|
|
20
|
+
});
|
|
21
|
+
return response;
|
|
22
|
+
} catch (error) {
|
|
23
|
+
setError({ message: "Could not fetch item with id {{id}}", data: { id }, originalError: error });
|
|
24
|
+
if (throwOnError) {
|
|
25
|
+
throw error;
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
},
|
|
29
|
+
[api, currentLanguage, pathRef, resetError, setError, throwOnError]
|
|
30
|
+
);
|
|
31
|
+
const addEntry = useCallback(
|
|
32
|
+
async (item) => {
|
|
33
|
+
var _a;
|
|
34
|
+
try {
|
|
35
|
+
resetError();
|
|
36
|
+
const func = ((_a = infoRef.current) == null ? void 0 : _a.add_type) === "form" ? api.formCreateItem : api.createItem;
|
|
37
|
+
const response = await func(pathRef.current, item, {
|
|
38
|
+
headers: { "Accept-Language": currentLanguage }
|
|
39
|
+
});
|
|
40
|
+
return response;
|
|
41
|
+
} catch (error) {
|
|
42
|
+
setError({ message: `Could not add item`, originalError: error });
|
|
43
|
+
if (throwOnError) {
|
|
44
|
+
throw error;
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
},
|
|
48
|
+
[api.createItem, api.formCreateItem, currentLanguage, infoRef, pathRef, resetError, setError, throwOnError]
|
|
49
|
+
);
|
|
50
|
+
const updateEntry = useCallback(
|
|
51
|
+
async (id, item) => {
|
|
52
|
+
var _a;
|
|
53
|
+
try {
|
|
54
|
+
resetError();
|
|
55
|
+
const func = ((_a = infoRef.current) == null ? void 0 : _a.edit_type) === "form" ? api.formUpdateItem : api.updateItem;
|
|
56
|
+
const response = await func(pathRef.current, convertId(id), item, {
|
|
57
|
+
headers: { "Accept-Language": currentLanguage }
|
|
58
|
+
});
|
|
59
|
+
return response;
|
|
60
|
+
} catch (error) {
|
|
61
|
+
setError({ message: "Could not update item with id {{id}}", data: { id }, originalError: error });
|
|
62
|
+
if (throwOnError) {
|
|
63
|
+
throw error;
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
},
|
|
67
|
+
[api.formUpdateItem, api.updateItem, currentLanguage, infoRef, pathRef, resetError, setError, throwOnError]
|
|
68
|
+
);
|
|
69
|
+
const deleteEntry = useCallback(
|
|
70
|
+
async (id) => {
|
|
71
|
+
try {
|
|
72
|
+
resetError();
|
|
73
|
+
const response = await api.deleteItem(pathRef.current, convertId(id), {
|
|
74
|
+
headers: { "Accept-Language": currentLanguage }
|
|
75
|
+
});
|
|
76
|
+
return response;
|
|
77
|
+
} catch (error) {
|
|
78
|
+
setError({ message: "Could not delete item with id {{id}}", data: { id }, originalError: error });
|
|
79
|
+
if (throwOnError) {
|
|
80
|
+
throw error;
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
},
|
|
84
|
+
[api, currentLanguage, pathRef, resetError, setError, throwOnError]
|
|
85
|
+
);
|
|
86
|
+
const download = useCallback(
|
|
87
|
+
async (label, { export_mode, delimiter, quotechar } = {}) => {
|
|
88
|
+
try {
|
|
89
|
+
resetError();
|
|
90
|
+
await api.downloadItems(pathRef.current, queryParamsRef.current, { label, export_mode, delimiter, quotechar });
|
|
91
|
+
} catch (error) {
|
|
92
|
+
setError({ message: `Could not download`, originalError: error });
|
|
93
|
+
if (throwOnError) {
|
|
94
|
+
throw error;
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
},
|
|
98
|
+
[api, pathRef, queryParamsRef, resetError, setError, throwOnError]
|
|
99
|
+
);
|
|
100
|
+
const upload = useCallback(
|
|
101
|
+
async (file, { delimiter, quotechar } = {}) => {
|
|
102
|
+
try {
|
|
103
|
+
resetError();
|
|
104
|
+
const response = await api.uploadItems(pathRef.current, file, { delimiter, quotechar });
|
|
105
|
+
return response;
|
|
106
|
+
} catch (error) {
|
|
107
|
+
setError({ message: `Could not upload`, originalError: error });
|
|
108
|
+
if (throwOnError) {
|
|
109
|
+
throw error;
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
},
|
|
113
|
+
[api, pathRef, resetError, setError, throwOnError]
|
|
114
|
+
);
|
|
115
|
+
const getItemURL = useCallback(
|
|
116
|
+
(type, item) => typeof item === "string" ? urlJoin(path, `_${type}`, item) : URL.createObjectURL(item),
|
|
117
|
+
[path]
|
|
118
|
+
);
|
|
119
|
+
return {
|
|
120
|
+
getEntry,
|
|
121
|
+
addEntry,
|
|
122
|
+
updateEntry,
|
|
123
|
+
deleteEntry,
|
|
124
|
+
download,
|
|
125
|
+
upload,
|
|
126
|
+
getItemURL
|
|
127
|
+
};
|
|
128
|
+
};
|
|
129
|
+
export {
|
|
130
|
+
useApiActions
|
|
131
|
+
};
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
import { useQueryClient } from "../../../../../../.external/esm/@tanstack_react-query@5.91.3_react@19.2.4/@tanstack/react-query/build/modern/QueryClientProvider.mjs";
|
|
2
|
+
import { useMemo, useCallback } from "react";
|
|
3
|
+
const useStreamingData = ({ streamingMode, dataQuery, streamingQuery, streamingQueryKey }) => {
|
|
4
|
+
var _a;
|
|
5
|
+
const queryClient = useQueryClient();
|
|
6
|
+
const streamingPages = useMemo(() => {
|
|
7
|
+
var _a2;
|
|
8
|
+
return ((_a2 = streamingQuery.data) == null ? void 0 : _a2.pages) || [];
|
|
9
|
+
}, [(_a = streamingQuery.data) == null ? void 0 : _a.pages]);
|
|
10
|
+
const activeDataQuery = useMemo(() => {
|
|
11
|
+
if (!streamingMode) {
|
|
12
|
+
return dataQuery;
|
|
13
|
+
}
|
|
14
|
+
const currentPageData = streamingPages.at(-1) || null;
|
|
15
|
+
return {
|
|
16
|
+
...streamingQuery,
|
|
17
|
+
data: currentPageData
|
|
18
|
+
};
|
|
19
|
+
}, [dataQuery, streamingMode, streamingPages, streamingQuery]);
|
|
20
|
+
const fetchStreamingPage = useCallback(() => {
|
|
21
|
+
if (!streamingMode || streamingQuery.isFetchingNextPage) {
|
|
22
|
+
return null;
|
|
23
|
+
}
|
|
24
|
+
if (streamingPages.length === 0) {
|
|
25
|
+
return streamingQuery.refetch();
|
|
26
|
+
}
|
|
27
|
+
if (!streamingQuery.hasNextPage) {
|
|
28
|
+
return null;
|
|
29
|
+
}
|
|
30
|
+
return streamingQuery.fetchNextPage();
|
|
31
|
+
}, [streamingMode, streamingPages.length, streamingQuery]);
|
|
32
|
+
const resetStreamingPages = useCallback(
|
|
33
|
+
async ({ refetch = true } = {}) => {
|
|
34
|
+
if (!streamingMode) {
|
|
35
|
+
return null;
|
|
36
|
+
}
|
|
37
|
+
await queryClient.cancelQueries({ queryKey: streamingQueryKey });
|
|
38
|
+
queryClient.setQueryData(streamingQueryKey, (previousData) => {
|
|
39
|
+
if (!previousData) {
|
|
40
|
+
return previousData;
|
|
41
|
+
}
|
|
42
|
+
return {
|
|
43
|
+
...previousData,
|
|
44
|
+
pages: [],
|
|
45
|
+
pageParams: []
|
|
46
|
+
};
|
|
47
|
+
});
|
|
48
|
+
if (refetch) {
|
|
49
|
+
return streamingQuery.refetch();
|
|
50
|
+
}
|
|
51
|
+
return null;
|
|
52
|
+
},
|
|
53
|
+
[queryClient, streamingMode, streamingQuery, streamingQueryKey]
|
|
54
|
+
);
|
|
55
|
+
const streaming = useMemo(() => {
|
|
56
|
+
if (!streamingMode) {
|
|
57
|
+
return {
|
|
58
|
+
data: {},
|
|
59
|
+
isEnd: false,
|
|
60
|
+
fetch: async () => null,
|
|
61
|
+
reset: async () => null
|
|
62
|
+
};
|
|
63
|
+
}
|
|
64
|
+
const data = streamingPages.reduce((acc, page) => {
|
|
65
|
+
var _a2;
|
|
66
|
+
if (!page) {
|
|
67
|
+
return acc;
|
|
68
|
+
}
|
|
69
|
+
const pageNumber = ((_a2 = page.queryParams) == null ? void 0 : _a2.page) ?? 0;
|
|
70
|
+
acc[pageNumber] = page.result;
|
|
71
|
+
return acc;
|
|
72
|
+
}, {});
|
|
73
|
+
return {
|
|
74
|
+
data,
|
|
75
|
+
isEnd: streamingPages.length > 0 ? !streamingQuery.hasNextPage : false,
|
|
76
|
+
fetch: fetchStreamingPage,
|
|
77
|
+
reset: resetStreamingPages
|
|
78
|
+
};
|
|
79
|
+
}, [fetchStreamingPage, resetStreamingPages, streamingMode, streamingPages, streamingQuery.hasNextPage]);
|
|
80
|
+
return {
|
|
81
|
+
streamingPages,
|
|
82
|
+
activeDataQuery,
|
|
83
|
+
fetchStreamingPage,
|
|
84
|
+
resetStreamingPages,
|
|
85
|
+
streaming
|
|
86
|
+
};
|
|
87
|
+
};
|
|
88
|
+
export {
|
|
89
|
+
useStreamingData
|
|
90
|
+
};
|
|
@@ -3,12 +3,12 @@ import { LANG_LOCAL_STORAGE_PROPS } from "fastapi-rtk/constants";
|
|
|
3
3
|
import { createSafeContext, parseFromValuesOrFunc } from "fastapi-rtk/utils";
|
|
4
4
|
import { useProxy } from "fastapi-rtk/zustand";
|
|
5
5
|
import { useLocalStorage } from "@mantine/hooks";
|
|
6
|
-
import { createInstance } from "../../../../../.external/esm/i18next@25.8.
|
|
6
|
+
import { createInstance } from "../../../../../.external/esm/i18next@25.8.20_typescript@5.9.3/i18next/dist/esm/i18next.mjs";
|
|
7
7
|
import { useRef, useMemo, useEffect } from "react";
|
|
8
8
|
import de from "../../../translations/de.mjs";
|
|
9
9
|
import { useProvideLang } from "../hooks/useProvideLang.mjs";
|
|
10
|
-
import { I18nextProvider } from "../../../../../.external/esm/react-i18next@15.7.4_i18next@25.8.
|
|
11
|
-
import { initReactI18next } from "../../../../../.external/esm/react-i18next@15.7.4_i18next@25.8.
|
|
10
|
+
import { I18nextProvider } from "../../../../../.external/esm/react-i18next@15.7.4_i18next@25.8.20_react-dom@19.2.4_react@19.2.4_typescript@5.9.3/react-i18next/dist/es/I18nextProvider.mjs";
|
|
11
|
+
import { initReactI18next } from "../../../../../.external/esm/react-i18next@15.7.4_i18next@25.8.20_react-dom@19.2.4_react@19.2.4_typescript@5.9.3/react-i18next/dist/es/initReactI18next.mjs";
|
|
12
12
|
const getI18n = ({ initProps, callback, translations } = {}) => {
|
|
13
13
|
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
14
14
|
const i18n = createInstance();
|
|
@@ -2,8 +2,8 @@ import { jsx } from "react/jsx-runtime";
|
|
|
2
2
|
import { setDebugMode } from "fastapi-rtk/constants";
|
|
3
3
|
import { parseFromValuesOrFunc } from "fastapi-rtk/utils";
|
|
4
4
|
import { useProxy } from "fastapi-rtk/zustand";
|
|
5
|
-
import { QueryClient } from "../../../../.external/esm/@tanstack_query-core@5.
|
|
6
|
-
import { QueryClientProvider } from "../../../../.external/esm/@tanstack_react-query@5.
|
|
5
|
+
import { QueryClient } from "../../../../.external/esm/@tanstack_query-core@5.91.2/@tanstack/query-core/build/modern/queryClient.mjs";
|
|
6
|
+
import { QueryClientProvider } from "../../../../.external/esm/@tanstack_react-query@5.91.3_react@19.2.4/@tanstack/react-query/build/modern/QueryClientProvider.mjs";
|
|
7
7
|
import { useState, forwardRef, useMemo, useEffect } from "react";
|
|
8
8
|
import { defaultAuth } from "../../fab-react-toolkit-patch/auth/hooks/useProvideAuth.mjs";
|
|
9
9
|
import { defaultInfo } from "../../fab-react-toolkit-patch/auth/hooks/useProvideInfo.mjs";
|