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,5 +1,5 @@
|
|
|
1
|
-
import { useQuery } from "../../../../../.external/esm/@tanstack_react-query@5.
|
|
2
|
-
import { useQueryClient } from "../../../../../.external/esm/@tanstack_react-query@5.
|
|
1
|
+
import { useQuery } from "../../../../../.external/esm/@tanstack_react-query@5.91.3_react@19.2.4/@tanstack/react-query/build/modern/useQuery.mjs";
|
|
2
|
+
import { useQueryClient } from "../../../../../.external/esm/@tanstack_react-query@5.91.3_react@19.2.4/@tanstack/react-query/build/modern/QueryClientProvider.mjs";
|
|
3
3
|
import { useState, useCallback, useMemo } from "react";
|
|
4
4
|
import { authOAuthSignin, authResetPassword, authSignout, authSignin } from "../utils/authFetch.mjs";
|
|
5
5
|
import { updateUser, getUser } from "../utils/userCRUD.mjs";
|
|
@@ -75,6 +75,7 @@ function useProvideAuth(baseURL, authQueryProps, auth = defaultAuth) {
|
|
|
75
75
|
user: query.isError ? null : query.data,
|
|
76
76
|
loading: query.isFetching,
|
|
77
77
|
error: error ? error.message : null,
|
|
78
|
+
query,
|
|
78
79
|
signin,
|
|
79
80
|
signout,
|
|
80
81
|
update,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { useQuery } from "../../../../../.external/esm/@tanstack_react-query@5.
|
|
1
|
+
import { useQuery } from "../../../../../.external/esm/@tanstack_react-query@5.91.3_react@19.2.4/@tanstack/react-query/build/modern/useQuery.mjs";
|
|
2
2
|
import { useEffect } from "react";
|
|
3
3
|
import { authInfo } from "../utils/authFetch.mjs";
|
|
4
4
|
const defaultInfo = { getInfo: authInfo };
|
|
@@ -13,7 +13,7 @@ function useProvideInfo(baseUrl, auth, info = defaultInfo) {
|
|
|
13
13
|
query.refetch();
|
|
14
14
|
}
|
|
15
15
|
}, [auth.user, query]);
|
|
16
|
-
return { baseUrl, info: query.data, loading: query.isFetching, error: query.error, fab: info.fab };
|
|
16
|
+
return { baseUrl, info: query.data, loading: query.isFetching, error: query.error, fab: info.fab, query };
|
|
17
17
|
}
|
|
18
18
|
export {
|
|
19
19
|
useProvideInfo
|
|
@@ -2,7 +2,7 @@ import { LANG_LOCAL_STORAGE_PROPS, MRT_LOCALIZATION_IMPORT_MAP } from "fastapi-r
|
|
|
2
2
|
import { FastAPIRTKLogger } from "fastapi-rtk/utils";
|
|
3
3
|
import { useLocalStorage, useSetState } from "@mantine/hooks";
|
|
4
4
|
import { useCallback, useEffect } from "react";
|
|
5
|
-
import { useTranslation } from "../../../../../.external/esm/react-i18next@15.7.4_i18next@25.8.
|
|
5
|
+
import { useTranslation } 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/useTranslation.mjs";
|
|
6
6
|
const useProvideLang = (baseMRTLocalization = {}) => {
|
|
7
7
|
const translation = useTranslation();
|
|
8
8
|
const [localStorageLanguage, setLocalStorageLanguage] = useLocalStorage(LANG_LOCAL_STORAGE_PROPS);
|
package/dist/core/esm/index.mjs
CHANGED
|
@@ -35,9 +35,9 @@ export * from "fastapi-rtk/constants";
|
|
|
35
35
|
export * from "fastapi-rtk/hooks";
|
|
36
36
|
export * from "fastapi-rtk/utils";
|
|
37
37
|
export * from "fastapi-rtk/zustand";
|
|
38
|
-
import * as index from "../../.external/esm/@tanstack_react-query@5.
|
|
38
|
+
import * as index from "../../.external/esm/@tanstack_react-query@5.91.3_react@19.2.4/@tanstack/react-query/build/modern/index.mjs";
|
|
39
39
|
import * as index_esm from "../../.external/esm/mantine-react-table@2.0.0-beta.9_@mantine_core@7.17.8_@mantine_dates@7.17.8_@mantine_hooks@7._o4mo2rpvy7fpui7fiyfvhudhey/mantine-react-table/dist/index.esm.mjs";
|
|
40
|
-
import { useTranslation } from "../../.external/esm/react-i18next@15.7.4_i18next@25.8.
|
|
40
|
+
import { useTranslation } 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/useTranslation.mjs";
|
|
41
41
|
export {
|
|
42
42
|
Actions,
|
|
43
43
|
Add,
|
|
@@ -11,6 +11,7 @@
|
|
|
11
11
|
* @property {boolean} [resetQueryParamsOnPathChange] - Whether to reset the `queryParams` on path change
|
|
12
12
|
* @property {Record<string, any>} [infoQueryProps] - The react-query props for the info query
|
|
13
13
|
* @property {Record<string, any>} [dataQueryProps] - The react-query props for the data query
|
|
14
|
+
* @property {Record<string, any>} [streamingQueryProps] - The react-query props for the streaming (infinite) query
|
|
14
15
|
* @property {boolean} [throwOnError] - Whether to throw an error on API request failure
|
|
15
16
|
* @property {boolean} [streaming] - Whether to enable streaming for the API requests
|
|
16
17
|
* @property {ReactNode} children - The children to be rendered inside the provider
|
|
@@ -20,7 +21,7 @@
|
|
|
20
21
|
* @param {ApiProviderProps} props
|
|
21
22
|
* @returns {React.ReactNode}
|
|
22
23
|
*/
|
|
23
|
-
export function ApiProvider({ resource_name, initialQueryParams, relation, fetchInfo, clearInfoOnRefetch, clearDataOnRefetch, refetchInfoBasedOnLang, refetchDataBasedOnLang, resetQueryParamsOnPathChange, infoQueryProps, dataQueryProps, throwOnError, streaming, children, }: ApiProviderProps): React.ReactNode;
|
|
24
|
+
export function ApiProvider({ resource_name, initialQueryParams, relation, fetchInfo, clearInfoOnRefetch, clearDataOnRefetch, refetchInfoBasedOnLang, refetchDataBasedOnLang, resetQueryParamsOnPathChange, infoQueryProps, dataQueryProps, streamingQueryProps, throwOnError, streaming, children, }: ApiProviderProps): React.ReactNode;
|
|
24
25
|
export function withApiProvider(apiProviderProps: ApiProviderProps | ((props: any) => ApiProviderProps), Component: React.ComponentType, options?: {
|
|
25
26
|
displayName?: string;
|
|
26
27
|
forwardRef?: boolean;
|
|
@@ -70,6 +71,10 @@ export type ApiProviderProps = {
|
|
|
70
71
|
* - The react-query props for the data query
|
|
71
72
|
*/
|
|
72
73
|
dataQueryProps?: Record<string, any>;
|
|
74
|
+
/**
|
|
75
|
+
* - The react-query props for the streaming (infinite) query
|
|
76
|
+
*/
|
|
77
|
+
streamingQueryProps?: Record<string, any>;
|
|
73
78
|
/**
|
|
74
79
|
* - Whether to throw an error on API request failure
|
|
75
80
|
*/
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export function useProvideApi({ path, initialQueryParams, relation, fetchInfo, clearInfoOnRefetch, clearDataOnRefetch, refetchInfoBasedOnLang, refetchDataBasedOnLang, resetQueryParamsOnPathChange, infoQueryProps, dataQueryProps, throwOnError, streaming: streamingMode, }: {
|
|
1
|
+
export function useProvideApi({ path, initialQueryParams, relation, fetchInfo, clearInfoOnRefetch, clearDataOnRefetch, refetchInfoBasedOnLang, refetchDataBasedOnLang, resetQueryParamsOnPathChange, infoQueryProps, dataQueryProps, streamingQueryProps, throwOnError, streaming: streamingMode, }: {
|
|
2
2
|
path: any;
|
|
3
3
|
initialQueryParams: any;
|
|
4
4
|
relation: any;
|
|
@@ -10,6 +10,7 @@ export function useProvideApi({ path, initialQueryParams, relation, fetchInfo, c
|
|
|
10
10
|
resetQueryParamsOnPathChange?: boolean;
|
|
11
11
|
infoQueryProps: any;
|
|
12
12
|
dataQueryProps: any;
|
|
13
|
+
streamingQueryProps: any;
|
|
13
14
|
throwOnError?: boolean;
|
|
14
15
|
streaming?: boolean;
|
|
15
16
|
}, api?: {
|
|
@@ -25,7 +26,7 @@ export function useProvideApi({ path, initialQueryParams, relation, fetchInfo, c
|
|
|
25
26
|
formUpdateItem: (path: any, id: any, data: any, options: any) => Promise<string | Record<string, any>>;
|
|
26
27
|
}): {
|
|
27
28
|
path: any;
|
|
28
|
-
data:
|
|
29
|
+
data: any;
|
|
29
30
|
info: unknown;
|
|
30
31
|
queryParams: {
|
|
31
32
|
filters?: any[];
|
|
@@ -35,30 +36,36 @@ export function useProvideApi({ path, initialQueryParams, relation, fetchInfo, c
|
|
|
35
36
|
page_size: number;
|
|
36
37
|
columns: any[];
|
|
37
38
|
};
|
|
38
|
-
loading:
|
|
39
|
+
loading: any;
|
|
39
40
|
infoLoading: boolean;
|
|
40
|
-
dataLoading:
|
|
41
|
+
dataLoading: any;
|
|
41
42
|
error: undefined;
|
|
42
43
|
infoError: Error;
|
|
43
|
-
dataError:
|
|
44
|
+
dataError: any;
|
|
45
|
+
infoQuery: import('@tanstack/react-query').DefinedUseQueryResult<unknown, Error>;
|
|
46
|
+
dataQuery: any;
|
|
47
|
+
streamingQuery: import('@tanstack/react-query').DefinedUseInfiniteQueryResult<import('@tanstack/react-query').InfiniteData<any, unknown>, Error>;
|
|
44
48
|
streaming: {
|
|
45
|
-
data:
|
|
49
|
+
data: any;
|
|
46
50
|
isEnd: boolean;
|
|
47
|
-
fetch: () =>
|
|
51
|
+
fetch: () => any;
|
|
52
|
+
reset: ({ refetch }?: {
|
|
53
|
+
refetch?: boolean;
|
|
54
|
+
}) => Promise<any>;
|
|
48
55
|
};
|
|
49
56
|
specialKey: {
|
|
50
57
|
all: string;
|
|
51
58
|
actions: string;
|
|
52
59
|
};
|
|
53
60
|
setQueryParams: (partialQueryParams: any) => void;
|
|
54
|
-
refetch: () =>
|
|
61
|
+
refetch: () => any;
|
|
55
62
|
refetchInfo: (options?: import('@tanstack/react-query').RefetchOptions) => Promise<import('@tanstack/react-query').QueryObserverResult<unknown, Error>>;
|
|
56
|
-
getEntry: (id: any) => Promise<
|
|
57
|
-
addEntry: (item: any) => Promise<
|
|
58
|
-
updateEntry: (id: any, item: any) => Promise<
|
|
59
|
-
deleteEntry: (id: any) => Promise<
|
|
63
|
+
getEntry: (id: any) => Promise<any>;
|
|
64
|
+
addEntry: (item: any) => Promise<any>;
|
|
65
|
+
updateEntry: (id: any, item: any) => Promise<any>;
|
|
66
|
+
deleteEntry: (id: any) => Promise<any>;
|
|
60
67
|
download: (label: any, { export_mode, delimiter, quotechar }?: {}) => Promise<void>;
|
|
61
|
-
upload: (file: any, { delimiter, quotechar }?: {}) => Promise<
|
|
68
|
+
upload: (file: any, { delimiter, quotechar }?: {}) => Promise<any>;
|
|
62
69
|
getFileURL: (item: any) => string;
|
|
63
70
|
getImageURL: (item: any) => string;
|
|
64
71
|
resetError: () => void;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
export function useApiActions({ api, path, pathRef, infoRef, queryParamsRef, currentLanguage, resetError, setError, throwOnError, }: {
|
|
2
|
+
api: any;
|
|
3
|
+
path: any;
|
|
4
|
+
pathRef: any;
|
|
5
|
+
infoRef: any;
|
|
6
|
+
queryParamsRef: any;
|
|
7
|
+
currentLanguage: any;
|
|
8
|
+
resetError: any;
|
|
9
|
+
setError: any;
|
|
10
|
+
throwOnError: any;
|
|
11
|
+
}): {
|
|
12
|
+
getEntry: (id: any) => Promise<any>;
|
|
13
|
+
addEntry: (item: any) => Promise<any>;
|
|
14
|
+
updateEntry: (id: any, item: any) => Promise<any>;
|
|
15
|
+
deleteEntry: (id: any) => Promise<any>;
|
|
16
|
+
download: (label: any, { export_mode, delimiter, quotechar }?: {}) => Promise<void>;
|
|
17
|
+
upload: (file: any, { delimiter, quotechar }?: {}) => Promise<any>;
|
|
18
|
+
getItemURL: (type: any, item: any) => string;
|
|
19
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export function useLatest(value: any): import('react').RefObject<any>;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
export function useStreamingData({ streamingMode, dataQuery, streamingQuery, streamingQueryKey }: {
|
|
2
|
+
streamingMode: any;
|
|
3
|
+
dataQuery: any;
|
|
4
|
+
streamingQuery: any;
|
|
5
|
+
streamingQueryKey: any;
|
|
6
|
+
}): {
|
|
7
|
+
streamingPages: any;
|
|
8
|
+
activeDataQuery: any;
|
|
9
|
+
fetchStreamingPage: () => any;
|
|
10
|
+
resetStreamingPages: ({ refetch }?: {
|
|
11
|
+
refetch?: boolean;
|
|
12
|
+
}) => Promise<any>;
|
|
13
|
+
streaming: {
|
|
14
|
+
data: any;
|
|
15
|
+
isEnd: boolean;
|
|
16
|
+
fetch: () => any;
|
|
17
|
+
reset: ({ refetch }?: {
|
|
18
|
+
refetch?: boolean;
|
|
19
|
+
}) => Promise<any>;
|
|
20
|
+
};
|
|
21
|
+
};
|
|
@@ -11,6 +11,7 @@ export function useProvideAuth(baseURL: any, authQueryProps: any, auth?: {
|
|
|
11
11
|
user: unknown;
|
|
12
12
|
loading: boolean;
|
|
13
13
|
error: any;
|
|
14
|
+
query: import('@tanstack/react-query').DefinedUseQueryResult<unknown, Error>;
|
|
14
15
|
signin: ({ username, password }: {
|
|
15
16
|
username: any;
|
|
16
17
|
password: any;
|
|
@@ -342,7 +342,11 @@ export type APIStreaming = {
|
|
|
342
342
|
/**
|
|
343
343
|
* - A function to fetch the next page of streaming data.
|
|
344
344
|
*/
|
|
345
|
-
fetch: () =>
|
|
345
|
+
fetch: () => Promise<any>;
|
|
346
|
+
/**
|
|
347
|
+
* - A function to reset the streaming data and start over.
|
|
348
|
+
*/
|
|
349
|
+
reset: () => Promise<any>;
|
|
346
350
|
};
|
|
347
351
|
export type APIDownloadOptions = {
|
|
348
352
|
/**
|
|
@@ -412,6 +416,18 @@ export type ApiContext = {
|
|
|
412
416
|
* - An error object if the API data request failed.
|
|
413
417
|
*/
|
|
414
418
|
dataError?: Error;
|
|
419
|
+
/**
|
|
420
|
+
* - The raw React Query object for the info request.
|
|
421
|
+
*/
|
|
422
|
+
infoQuery: Record<string, any>;
|
|
423
|
+
/**
|
|
424
|
+
* - The raw React Query object for the data request.
|
|
425
|
+
*/
|
|
426
|
+
dataQuery: Record<string, any>;
|
|
427
|
+
/**
|
|
428
|
+
* - The raw React Query infinite query object for streaming requests.
|
|
429
|
+
*/
|
|
430
|
+
streamingQuery: Record<string, any>;
|
|
415
431
|
/**
|
|
416
432
|
* - An object containing streaming data and a function to fetch more data. Only available when the `ApiProvider` is configured for streaming.
|
|
417
433
|
*/
|
|
@@ -84,6 +84,10 @@ export type AuthUser = {
|
|
|
84
84
|
roles: string[];
|
|
85
85
|
};
|
|
86
86
|
export type AuthContext = {
|
|
87
|
+
/**
|
|
88
|
+
* - The raw React Query object used to fetch the authenticated user.
|
|
89
|
+
*/
|
|
90
|
+
query: Record<string, any>;
|
|
87
91
|
/**
|
|
88
92
|
* - The authenticated user object, or null if not authenticated.
|
|
89
93
|
*/
|
|
@@ -40,6 +40,10 @@ export type InfoContext = {
|
|
|
40
40
|
* - The base URL for the API.
|
|
41
41
|
*/
|
|
42
42
|
baseUrl: string;
|
|
43
|
+
/**
|
|
44
|
+
* - The raw React Query object used to fetch info.
|
|
45
|
+
*/
|
|
46
|
+
query: Record<string, any>;
|
|
43
47
|
/**
|
|
44
48
|
* - An array of Info objects or null if not available.
|
|
45
49
|
*/
|
|
@@ -3,7 +3,7 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
|
3
3
|
const React = require("react");
|
|
4
4
|
const compareStateWithStore = require("../utils/compareStateWithStore.cjs");
|
|
5
5
|
const createProxy = require("../utils/createProxy.cjs");
|
|
6
|
-
const react = require("../../../.external/cjs/zustand@5.0.
|
|
6
|
+
const react = require("../../../.external/cjs/zustand@5.0.12_@types_react@19.2.14_react@19.2.4/zustand/esm/react.cjs");
|
|
7
7
|
function useProxy(obj) {
|
|
8
8
|
const [store] = React.useState(() => react.create(() => ({ ...obj })));
|
|
9
9
|
const [proxy] = React.useState(() => createProxy.createProxy(store, ["getState", "setState"]));
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { useState, useEffect } from "react";
|
|
2
2
|
import { compareStateWithStore } from "../utils/compareStateWithStore.mjs";
|
|
3
3
|
import { createProxy } from "../utils/createProxy.mjs";
|
|
4
|
-
import { create } from "../../../.external/esm/zustand@5.0.
|
|
4
|
+
import { create } from "../../../.external/esm/zustand@5.0.12_@types_react@19.2.14_react@19.2.4/zustand/esm/react.mjs";
|
|
5
5
|
function useProxy(obj) {
|
|
6
6
|
const [store] = useState(() => create(() => ({ ...obj })));
|
|
7
7
|
const [proxy] = useState(() => createProxy(store, ["getState", "setState"]));
|
package/package.json
CHANGED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|