fastapi-rtk 2.7.1 → 2.9.0
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/packages/jsonforms/src/MantineInputs/MantineFileInput.cjs +13 -4
- package/dist/.bundled/jsonforms/cjs/packages/jsonforms/src/MantineInputs/MantineObjectInput.cjs +23 -12
- package/dist/.bundled/jsonforms/cjs/packages/jsonforms/src/complex/MantineArrayControl/DeleteDialog.cjs +38 -7
- package/dist/.bundled/jsonforms/cjs/packages/jsonforms/src/complex/MantineArrayControl/MantineArrayControl.cjs +16 -11
- package/dist/.bundled/jsonforms/cjs/packages/jsonforms/src/complex/MantineTableControl/MantineTableControl.cjs +117 -23
- package/dist/.bundled/jsonforms/cjs/packages/jsonforms/src/complex/MantineTableControl/TableToolbar.cjs +30 -4
- package/dist/.bundled/jsonforms/cjs/packages/jsonforms/src/hooks/useContextProps.cjs +5 -7
- package/dist/.bundled/jsonforms/cjs/packages/jsonforms/src/hooks/useNavigationComponent.cjs +48 -13
- package/dist/.bundled/jsonforms/cjs/packages/jsonforms/src/hooks/useToolbarComponent.cjs +31 -11
- package/dist/.bundled/jsonforms/cjs/packages/jsonforms/src/labels/MantineLabelRenderer.cjs +9 -1
- package/dist/.bundled/jsonforms/cjs/packages/jsonforms/src/layouts/Array/ArrayToolbar.cjs +15 -4
- package/dist/.bundled/jsonforms/cjs/packages/jsonforms/src/layouts/Array/ExpandPanelRenderer.cjs +83 -18
- package/dist/.bundled/jsonforms/cjs/packages/jsonforms/src/layouts/Array/MantineArrayLayout.cjs +76 -43
- package/dist/.bundled/jsonforms/cjs/packages/jsonforms/src/layouts/MantineHotizontalLayoutRenderer.cjs +2 -2
- package/dist/.bundled/jsonforms/cjs/packages/jsonforms/src/layouts/MantineVerticalLayoutRenderer.cjs +2 -2
- package/dist/.bundled/jsonforms/esm/packages/jsonforms/src/MantineInputs/MantineFileInput.mjs +16 -7
- package/dist/.bundled/jsonforms/esm/packages/jsonforms/src/MantineInputs/MantineObjectInput.mjs +23 -12
- package/dist/.bundled/jsonforms/esm/packages/jsonforms/src/complex/MantineArrayControl/DeleteDialog.mjs +40 -9
- package/dist/.bundled/jsonforms/esm/packages/jsonforms/src/complex/MantineArrayControl/MantineArrayControl.mjs +17 -12
- package/dist/.bundled/jsonforms/esm/packages/jsonforms/src/complex/MantineTableControl/MantineTableControl.mjs +118 -24
- package/dist/.bundled/jsonforms/esm/packages/jsonforms/src/complex/MantineTableControl/TableToolbar.mjs +31 -5
- package/dist/.bundled/jsonforms/esm/packages/jsonforms/src/hooks/useContextProps.mjs +5 -7
- package/dist/.bundled/jsonforms/esm/packages/jsonforms/src/hooks/useNavigationComponent.mjs +49 -14
- package/dist/.bundled/jsonforms/esm/packages/jsonforms/src/hooks/useToolbarComponent.mjs +32 -12
- package/dist/.bundled/jsonforms/esm/packages/jsonforms/src/labels/MantineLabelRenderer.mjs +9 -1
- package/dist/.bundled/jsonforms/esm/packages/jsonforms/src/layouts/Array/ArrayToolbar.mjs +16 -5
- package/dist/.bundled/jsonforms/esm/packages/jsonforms/src/layouts/Array/ExpandPanelRenderer.mjs +85 -20
- package/dist/.bundled/jsonforms/esm/packages/jsonforms/src/layouts/Array/MantineArrayLayout.mjs +79 -46
- package/dist/.bundled/jsonforms/esm/packages/jsonforms/src/layouts/MantineHotizontalLayoutRenderer.mjs +2 -2
- package/dist/.bundled/jsonforms/esm/packages/jsonforms/src/layouts/MantineVerticalLayoutRenderer.mjs +2 -2
- package/dist/.external/cjs/yup@1.7.1/yup/index.esm.cjs +1 -435
- package/dist/.external/esm/yup@1.7.1/yup/index.esm.mjs +2 -436
- package/dist/.external/lib/type-fest/index.d.ts +95 -0
- package/dist/.external/lib/type-fest/source/async-return-type.d.ts +25 -0
- package/dist/.external/lib/type-fest/source/asyncify.d.ts +33 -0
- package/dist/.external/lib/type-fest/source/basic.d.ts +45 -0
- package/dist/.external/lib/type-fest/source/camel-case.d.ts +73 -0
- package/dist/.external/lib/type-fest/source/camel-cased-properties-deep.d.ts +54 -0
- package/dist/.external/lib/type-fest/source/camel-cased-properties.d.ts +36 -0
- package/dist/.external/lib/type-fest/source/conditional-except.d.ts +45 -0
- package/dist/.external/lib/type-fest/source/conditional-keys.d.ts +47 -0
- package/dist/.external/lib/type-fest/source/conditional-pick.d.ts +44 -0
- package/dist/.external/lib/type-fest/source/delimiter-case.d.ts +93 -0
- package/dist/.external/lib/type-fest/source/delimiter-cased-properties-deep.d.ts +60 -0
- package/dist/.external/lib/type-fest/source/delimiter-cased-properties.d.ts +37 -0
- package/dist/.external/lib/type-fest/source/entries.d.ts +62 -0
- package/dist/.external/lib/type-fest/source/entry.d.ts +65 -0
- package/dist/.external/lib/type-fest/source/exact.d.ts +73 -0
- package/dist/.external/lib/type-fest/source/except.d.ts +57 -0
- package/dist/.external/lib/type-fest/source/fixed-length-array.d.ts +43 -0
- package/dist/.external/lib/type-fest/source/get.d.ts +184 -0
- package/dist/.external/lib/type-fest/source/has-optional-keys.d.ts +21 -0
- package/dist/.external/lib/type-fest/source/has-required-keys.d.ts +59 -0
- package/dist/.external/lib/type-fest/source/includes.d.ts +22 -0
- package/dist/.external/lib/type-fest/source/internal.d.ts +59 -0
- package/dist/.external/lib/type-fest/source/invariant-of.d.ts +76 -0
- package/dist/.external/lib/type-fest/source/iterable-element.d.ts +54 -0
- package/dist/.external/lib/type-fest/source/join.d.ts +30 -0
- package/dist/.external/lib/type-fest/source/jsonify.d.ts +90 -0
- package/dist/.external/lib/type-fest/source/kebab-case.d.ts +38 -0
- package/dist/.external/lib/type-fest/source/kebab-cased-properties-deep.d.ts +47 -0
- package/dist/.external/lib/type-fest/source/kebab-cased-properties.d.ts +30 -0
- package/dist/.external/lib/type-fest/source/last-array-element.d.ts +28 -0
- package/dist/.external/lib/type-fest/source/literal-to-primitive.d.ts +36 -0
- package/dist/.external/lib/type-fest/source/literal-union.d.ts +35 -0
- package/dist/.external/lib/type-fest/source/merge-exclusive.d.ts +41 -0
- package/dist/.external/lib/type-fest/source/merge.d.ts +27 -0
- package/dist/.external/lib/type-fest/source/multidimensional-array.d.ts +43 -0
- package/dist/.external/lib/type-fest/source/multidimensional-readonly-array.d.ts +47 -0
- package/dist/.external/lib/type-fest/source/mutable.d.ts +5 -0
- package/dist/.external/lib/type-fest/source/numeric.d.ts +170 -0
- package/dist/.external/lib/type-fest/source/observable-like.d.ts +62 -0
- package/dist/.external/lib/type-fest/source/opaque.d.ts +107 -0
- package/dist/.external/lib/type-fest/source/optional-keys-of.d.ts +38 -0
- package/dist/.external/lib/type-fest/source/package-json.d.ts +663 -0
- package/dist/.external/lib/type-fest/source/partial-deep.d.ts +113 -0
- package/dist/.external/lib/type-fest/source/partial-on-undefined-deep.d.ts +70 -0
- package/dist/.external/lib/type-fest/source/pascal-case.d.ts +38 -0
- package/dist/.external/lib/type-fest/source/pascal-cased-properties-deep.d.ts +54 -0
- package/dist/.external/lib/type-fest/source/pascal-cased-properties.d.ts +34 -0
- package/dist/.external/lib/type-fest/source/primitive.d.ts +13 -0
- package/dist/.external/lib/type-fest/source/promisable.d.ts +25 -0
- package/dist/.external/lib/type-fest/source/promise-value.d.ts +29 -0
- package/dist/.external/lib/type-fest/source/readonly-deep.d.ts +85 -0
- package/dist/.external/lib/type-fest/source/readonly-tuple.d.ts +41 -0
- package/dist/.external/lib/type-fest/source/remove-index-signature.d.ts +104 -0
- package/dist/.external/lib/type-fest/source/replace.d.ts +67 -0
- package/dist/.external/lib/type-fest/source/require-all-or-none.d.ts +36 -0
- package/dist/.external/lib/type-fest/source/require-at-least-one.d.ts +35 -0
- package/dist/.external/lib/type-fest/source/require-exactly-one.d.ts +34 -0
- package/dist/.external/lib/type-fest/source/required-keys-of.d.ts +29 -0
- package/dist/.external/lib/type-fest/source/schema.d.ts +72 -0
- package/dist/.external/lib/type-fest/source/screaming-snake-case.d.ts +33 -0
- package/dist/.external/lib/type-fest/source/set-non-nullable.d.ts +35 -0
- package/dist/.external/lib/type-fest/source/set-optional.d.ts +35 -0
- package/dist/.external/lib/type-fest/source/set-required.d.ts +35 -0
- package/dist/.external/lib/type-fest/source/set-return-type.d.ts +31 -0
- package/dist/.external/lib/type-fest/source/simplify.d.ts +83 -0
- package/dist/.external/lib/type-fest/source/snake-case.d.ts +38 -0
- package/dist/.external/lib/type-fest/source/snake-cased-properties-deep.d.ts +47 -0
- package/dist/.external/lib/type-fest/source/snake-cased-properties.d.ts +30 -0
- package/dist/.external/lib/type-fest/source/split.d.ts +29 -0
- package/dist/.external/lib/type-fest/source/spread.d.ts +85 -0
- package/dist/.external/lib/type-fest/source/string-key-of.d.ts +25 -0
- package/dist/.external/lib/type-fest/source/stringified.d.ts +23 -0
- package/dist/.external/lib/type-fest/source/trim.d.ts +25 -0
- package/dist/.external/lib/type-fest/source/tsconfig-json.d.ts +1172 -0
- package/dist/.external/lib/type-fest/source/typed-array.d.ts +17 -0
- package/dist/.external/lib/type-fest/source/union-to-intersection.d.ts +60 -0
- package/dist/.external/lib/type-fest/source/value-of.d.ts +42 -0
- package/dist/.external/lib/type-fest/source/writable.d.ts +40 -0
- package/dist/api/cjs/ApiProvider/ApiProvider.cjs +80 -0
- package/dist/{core/cjs/Wrappers → api/cjs}/ApiProvider/hooks/useProvideApi.cjs +26 -25
- package/dist/{core/cjs/Wrappers → api/cjs}/ApiProvider/hooks/useProvideBulk.cjs +5 -3
- package/dist/{core/cjs/Wrappers → api/cjs}/ApiProvider/hooks/useProvideForm.cjs +1 -1
- package/dist/{core/cjs/Wrappers → api/cjs}/ApiProvider/hooks/utils/useApiActions.cjs +15 -15
- package/dist/{core/cjs/Wrappers → api/cjs}/ApiProvider/hooks/utils/useStreamingData.cjs +2 -2
- package/dist/{core/cjs/Wrappers → api/cjs}/ApiProvider/utils/getValidationSchema.cjs +1 -1
- package/dist/{core/cjs/Wrappers → api/cjs}/Provider/Contexts/LangContext.cjs +20 -6
- package/dist/api/cjs/Provider/Provider.cjs +51 -0
- package/dist/{core/cjs/Wrappers → api/cjs}/Provider/hooks/useProvideAuth.cjs +18 -17
- package/dist/{core/cjs/Wrappers → api/cjs}/Provider/hooks/useProvideInfo.cjs +6 -4
- package/dist/api/cjs/Provider/hooks/useProvideLang.cjs +76 -0
- package/dist/api/cjs/_virtual/_commonjsHelpers.cjs +6 -0
- package/dist/api/cjs/_virtual/index.cjs +5 -0
- package/dist/api/cjs/_virtual/index2.cjs +5 -0
- package/dist/api/cjs/_virtual/index3.cjs +6 -0
- package/dist/api/cjs/_virtual/index4.cjs +4 -0
- package/dist/api/cjs/adapters/AdaptersContext.cjs +10 -0
- package/dist/api/cjs/auth/authFetch.cjs +63 -0
- package/dist/api/cjs/auth/userCRUD.cjs +20 -0
- package/dist/api/cjs/fetchers/createItem.cjs +14 -0
- package/dist/api/cjs/fetchers/deleteItem.cjs +14 -0
- package/dist/api/cjs/fetchers/downloadItems.cjs +33 -0
- package/dist/api/cjs/fetchers/formCreateItem.cjs +18 -0
- package/dist/api/cjs/fetchers/formUpdateItem.cjs +18 -0
- package/dist/api/cjs/fetchers/getInfo.cjs +10 -0
- package/dist/api/cjs/fetchers/getItem.cjs +14 -0
- package/dist/api/cjs/fetchers/getItems.cjs +13 -0
- package/dist/api/cjs/fetchers/postBulkAction.cjs +14 -0
- package/dist/api/cjs/fetchers/request.cjs +9 -0
- package/dist/api/cjs/fetchers/updateItem.cjs +14 -0
- package/dist/api/cjs/fetchers/uploadItems.cjs +24 -0
- package/dist/{core → api}/cjs/hooks/auth/useAuth.cjs +1 -1
- package/dist/{core → api}/cjs/hooks/auth/useInfo.cjs +1 -1
- package/dist/api/cjs/hooks/useDidUpdate.cjs +20 -0
- package/dist/api/cjs/index.cjs +75 -0
- package/dist/{utils/cjs → api/cjs/utils}/convertToFormData/convertToFormData.cjs +5 -5
- package/dist/{utils/cjs → api/cjs/utils}/createFetchParams/createFetchParams.cjs +1 -3
- package/dist/api/esm/ApiProvider/ApiProvider.mjs +80 -0
- package/dist/{core/esm/Wrappers → api/esm}/ApiProvider/hooks/useProvideApi.mjs +19 -18
- package/dist/{core/esm/Wrappers → api/esm}/ApiProvider/hooks/useProvideBulk.mjs +5 -3
- package/dist/{core/esm/Wrappers → api/esm}/ApiProvider/hooks/useProvideForm.mjs +1 -1
- package/dist/{core/esm/Wrappers → api/esm}/ApiProvider/hooks/utils/useApiActions.mjs +15 -15
- package/dist/{core/esm/Wrappers → api/esm}/ApiProvider/hooks/utils/useStreamingData.mjs +1 -1
- package/dist/{core/esm/Wrappers → api/esm}/ApiProvider/utils/getValidationSchema.mjs +2 -2
- package/dist/{core/esm/Wrappers → api/esm}/Provider/Contexts/LangContext.mjs +21 -7
- package/dist/api/esm/Provider/Provider.mjs +51 -0
- package/dist/{core/esm/Wrappers → api/esm}/Provider/hooks/useProvideAuth.mjs +16 -15
- package/dist/{core/esm/Wrappers → api/esm}/Provider/hooks/useProvideInfo.mjs +5 -3
- package/dist/api/esm/Provider/hooks/useProvideLang.mjs +76 -0
- package/dist/api/esm/_virtual/_commonjsHelpers.mjs +6 -0
- package/dist/api/esm/_virtual/index.mjs +5 -0
- package/dist/api/esm/_virtual/index2.mjs +5 -0
- package/dist/api/esm/_virtual/index3.mjs +7 -0
- package/dist/api/esm/_virtual/index4.mjs +4 -0
- package/dist/api/esm/adapters/AdaptersContext.mjs +10 -0
- package/dist/api/esm/auth/authFetch.mjs +63 -0
- package/dist/api/esm/auth/userCRUD.mjs +20 -0
- package/dist/api/esm/fetchers/createItem.mjs +14 -0
- package/dist/api/esm/fetchers/deleteItem.mjs +14 -0
- package/dist/api/esm/fetchers/downloadItems.mjs +33 -0
- package/dist/api/esm/fetchers/formCreateItem.mjs +18 -0
- package/dist/api/esm/fetchers/formUpdateItem.mjs +18 -0
- package/dist/api/esm/fetchers/getInfo.mjs +10 -0
- package/dist/api/esm/fetchers/getItem.mjs +14 -0
- package/dist/api/esm/fetchers/getItems.mjs +13 -0
- package/dist/api/esm/fetchers/postBulkAction.mjs +14 -0
- package/dist/api/esm/fetchers/request.mjs +9 -0
- package/dist/api/esm/fetchers/updateItem.mjs +14 -0
- package/dist/api/esm/fetchers/uploadItems.mjs +24 -0
- package/dist/{core → api}/esm/hooks/auth/useAuth.mjs +1 -1
- package/dist/{core → api}/esm/hooks/auth/useInfo.mjs +1 -1
- package/dist/api/esm/hooks/useDidUpdate.mjs +20 -0
- package/dist/api/esm/index.mjs +75 -0
- package/dist/{utils/esm → api/esm/utils}/convertToFormData/convertToFormData.mjs +5 -5
- package/dist/{utils/esm → api/esm/utils}/createFetchParams/createFetchParams.mjs +1 -3
- package/dist/api/lib/ApiProvider/ApiProvider.d.ts +17 -0
- package/dist/{core/lib/Wrappers → api/lib}/ApiProvider/Contexts/BulkActionsContext.d.ts +1 -1
- package/dist/api/lib/ApiProvider/Contexts/FormContext.d.ts +5 -0
- package/dist/api/lib/ApiProvider/hooks/types.d.ts +150 -0
- package/dist/api/lib/ApiProvider/hooks/useProvideBulk.d.ts +7 -0
- package/dist/api/lib/ApiProvider/hooks/useProvideForm.d.ts +2 -0
- package/dist/api/lib/ApiProvider/hooks/utils/useApiActions.d.ts +11 -0
- package/dist/{core/lib/Wrappers → api/lib}/ApiProvider/hooks/utils/useStreamingData.d.ts +26 -26
- package/dist/api/lib/ApiProvider/types.d.ts +51 -0
- package/dist/{core/lib/Wrappers → api/lib}/ApiProvider/utils/getDefaultValues.d.ts +2 -2
- package/dist/{core/lib/Wrappers → api/lib}/ApiProvider/utils/getValidationSchema.d.ts +1 -1
- package/dist/{core/lib/Wrappers → api/lib}/Provider/Contexts/AuthContext.d.ts +1 -1
- package/dist/{core/lib/Wrappers → api/lib}/Provider/Contexts/InfoContext.d.ts +1 -1
- package/dist/{core/lib/Wrappers → api/lib}/Provider/Contexts/types.d.ts +5 -4
- package/dist/api/lib/Provider/Provider.d.ts +14 -0
- package/dist/api/lib/Provider/hooks/types.d.ts +22 -0
- package/dist/api/lib/Provider/hooks/useProvideAuth.d.ts +17 -0
- package/dist/{core/lib/Wrappers → api/lib}/Provider/hooks/useProvideInfo.d.ts +2 -2
- package/dist/{core/lib/Wrappers → api/lib}/Provider/hooks/useProvideLang.d.ts +1 -2
- package/dist/api/lib/Provider/types.d.ts +35 -0
- package/dist/api/lib/adapters/AdaptersContext.d.ts +10 -0
- package/dist/api/lib/adapters/types.d.ts +69 -0
- package/dist/{core/lib/Wrappers/Provider/utils → api/lib/auth}/authFetch.d.ts +13 -7
- package/dist/api/lib/auth/types.d.ts +40 -0
- package/dist/api/lib/auth/userCRUD.d.ts +22 -0
- package/dist/{core/lib/Wrappers/ApiProvider/utils/bulkActions/types.d.ts → api/lib/fetchers/bulkActions.types.d.ts} +3 -3
- package/dist/api/lib/fetchers/createItem.d.ts +4 -0
- package/dist/api/lib/fetchers/deleteItem.d.ts +4 -0
- package/dist/api/lib/fetchers/downloadItems.d.ts +4 -0
- package/dist/api/lib/fetchers/formCreateItem.d.ts +4 -0
- package/dist/api/lib/fetchers/formUpdateItem.d.ts +4 -0
- package/dist/{core/lib/Wrappers/ApiProvider/utils/api → api/lib/fetchers}/getInfo.d.ts +3 -1
- package/dist/api/lib/fetchers/getItem.d.ts +4 -0
- package/dist/{core/lib/Wrappers/ApiProvider/utils/api → api/lib/fetchers}/getItems.d.ts +3 -1
- package/dist/api/lib/fetchers/postBulkAction.d.ts +4 -0
- package/dist/api/lib/fetchers/request.d.ts +7 -0
- package/dist/{core/lib/Wrappers/ApiProvider/utils/api → api/lib/fetchers}/types.d.ts +3 -7
- package/dist/api/lib/fetchers/updateItem.d.ts +4 -0
- package/dist/api/lib/fetchers/uploadItems.d.ts +3 -0
- package/dist/api/lib/fetchers/uploadItems.test.d.ts +1 -0
- package/dist/{core → api}/lib/hooks/auth/types.d.ts +2 -39
- package/dist/api/lib/hooks/auth/useAuth.test.d.ts +1 -0
- package/dist/api/lib/hooks/auth/useInfo.test.d.ts +1 -0
- package/dist/api/lib/hooks/useDidUpdate.d.ts +3 -0
- package/dist/api/lib/index.d.ts +35 -0
- package/dist/api/lib/utils/convertToFormData/convertToFormData.d.ts +17 -0
- package/dist/api/lib/utils/convertToFormData/convertToFormData.test.d.ts +1 -0
- package/dist/{utils/lib → api/lib/utils}/createFetchParams/createFetchParams.d.ts +3 -4
- package/dist/api/lib/utils/createFetchParams/createFetchParams.test.d.ts +1 -0
- package/dist/{utils/lib → api/lib/utils}/parseResponse/parseResponse.d.ts +1 -2
- package/dist/api/lib/utils/parseResponse/parseResponse.test.d.ts +1 -0
- package/dist/constants/cjs/index.cjs +16 -2
- package/dist/constants/esm/index.mjs +16 -2
- package/dist/core/cjs/Dialogs/AddDialog.cjs +2 -2
- package/dist/core/cjs/Dialogs/EditDialog.cjs +2 -2
- package/dist/core/cjs/Menu/UserMenu/UserMenu.cjs +2 -2
- package/dist/core/cjs/Modals/CommonModal.cjs +2 -2
- package/dist/core/cjs/Tables/NextGenDataGrid/hooks/useActions.cjs +5 -5
- package/dist/core/cjs/Tables/NextGenDataGrid/hooks/useColumns/Cell.cjs +4 -4
- package/dist/core/cjs/Tables/NextGenDataGrid/hooks/useColumns/ColumnHeaderFilter.cjs +4 -4
- package/dist/core/cjs/Tables/NextGenDataGrid/hooks/useColumns/HeaderAdvancedFiltersMenuButton.cjs +4 -4
- package/dist/core/cjs/Tables/NextGenDataGrid/hooks/useColumns/useColumns.cjs +5 -5
- package/dist/core/cjs/Tables/NextGenDataGrid/hooks/useToolbar/useToolbar.cjs +9 -9
- package/dist/core/cjs/Wrappers/ApiProvider/ApiProvider.cjs +8 -74
- package/dist/core/cjs/Wrappers/Provider/Provider.cjs +18 -47
- package/dist/core/cjs/adapters/web/cookieTransport.cjs +15 -0
- package/dist/core/cjs/adapters/web/index.cjs +23 -0
- package/dist/core/cjs/adapters/web/webFileDownloadAdapter.cjs +16 -0
- package/dist/core/cjs/adapters/web/webFormDataAdapter.cjs +8 -0
- package/dist/core/cjs/adapters/web/webNetworkAdapter.cjs +6 -0
- package/dist/core/cjs/adapters/web/webOAuthOpener.cjs +26 -0
- package/dist/core/cjs/adapters/web/webStorageAdapter.cjs +21 -0
- package/dist/core/cjs/fab-react-toolkit-patch/api/hooks/useProvideApi.cjs +7 -12
- package/dist/core/cjs/fab-react-toolkit-patch/api/hooks/useProvideBulk.cjs +2 -2
- package/dist/core/cjs/fab-react-toolkit-patch/api/utils/api/downloadItems.cjs +5 -3
- package/dist/core/cjs/fab-react-toolkit-patch/api/utils/api/getItems.cjs +6 -5
- package/dist/core/cjs/fab-react-toolkit-patch/auth/utils/authFetch.cjs +19 -15
- package/dist/core/cjs/fab-react-toolkit-patch/auth/utils/userCRUD.cjs +9 -6
- package/dist/core/cjs/hooks/api/useBulkActions.cjs +2 -5
- package/dist/core/cjs/hooks/api/useForms.cjs +5 -5
- package/dist/core/cjs/index.cjs +83 -6
- package/dist/core/esm/Dialogs/AddDialog.mjs +1 -1
- package/dist/core/esm/Dialogs/EditDialog.mjs +1 -1
- package/dist/core/esm/Menu/UserMenu/UserMenu.mjs +1 -1
- package/dist/core/esm/Modals/CommonModal.mjs +1 -1
- package/dist/core/esm/Tables/NextGenDataGrid/hooks/useActions.mjs +1 -1
- package/dist/core/esm/Tables/NextGenDataGrid/hooks/useColumns/Cell.mjs +1 -1
- package/dist/core/esm/Tables/NextGenDataGrid/hooks/useColumns/ColumnHeaderFilter.mjs +1 -1
- package/dist/core/esm/Tables/NextGenDataGrid/hooks/useColumns/HeaderAdvancedFiltersMenuButton.mjs +1 -1
- package/dist/core/esm/Tables/NextGenDataGrid/hooks/useColumns/useColumns.mjs +1 -1
- package/dist/core/esm/Tables/NextGenDataGrid/hooks/useToolbar/useToolbar.mjs +1 -1
- package/dist/core/esm/Wrappers/ApiProvider/ApiProvider.mjs +5 -73
- package/dist/core/esm/Wrappers/Provider/Provider.mjs +15 -46
- package/dist/core/esm/adapters/web/cookieTransport.mjs +15 -0
- package/dist/core/esm/adapters/web/index.mjs +23 -0
- package/dist/core/esm/adapters/web/webFileDownloadAdapter.mjs +16 -0
- package/dist/core/esm/adapters/web/webFormDataAdapter.mjs +8 -0
- package/dist/core/esm/adapters/web/webNetworkAdapter.mjs +6 -0
- package/dist/core/esm/adapters/web/webOAuthOpener.mjs +26 -0
- package/dist/core/esm/adapters/web/webStorageAdapter.mjs +21 -0
- package/dist/core/esm/fab-react-toolkit-patch/api/hooks/useProvideApi.mjs +1 -6
- package/dist/core/esm/fab-react-toolkit-patch/api/hooks/useProvideBulk.mjs +1 -1
- package/dist/core/esm/fab-react-toolkit-patch/api/utils/api/downloadItems.mjs +5 -3
- package/dist/core/esm/fab-react-toolkit-patch/api/utils/api/getItems.mjs +4 -3
- package/dist/core/esm/fab-react-toolkit-patch/auth/utils/authFetch.mjs +15 -11
- package/dist/core/esm/fab-react-toolkit-patch/auth/utils/userCRUD.mjs +8 -5
- package/dist/core/esm/hooks/api/useBulkActions.mjs +2 -5
- package/dist/core/esm/hooks/api/useForms.mjs +1 -1
- package/dist/core/esm/index.mjs +21 -4
- package/dist/core/lib/Tables/NextGenDataGrid/types.d.ts +1 -1
- package/dist/core/lib/Wrappers/ApiProvider/ApiProvider.d.ts +4 -17
- package/dist/core/lib/Wrappers/ApiProvider/types.d.ts +3 -47
- package/dist/core/lib/Wrappers/Provider/Provider.d.ts +4 -14
- package/dist/core/lib/Wrappers/Provider/types.d.ts +6 -27
- package/dist/core/lib/adapters/web/cookieTransport.d.ts +2 -0
- package/dist/core/lib/adapters/web/index.d.ts +9 -0
- package/dist/core/lib/adapters/web/webAdapters.test.d.ts +1 -0
- package/dist/core/lib/adapters/web/webFileDownloadAdapter.d.ts +2 -0
- package/dist/core/lib/adapters/web/webFormDataAdapter.d.ts +2 -0
- package/dist/core/lib/adapters/web/webNetworkAdapter.d.ts +2 -0
- package/dist/core/lib/adapters/web/webOAuthOpener.d.ts +2 -0
- package/dist/core/lib/adapters/web/webStorageAdapter.d.ts +3 -0
- package/dist/core/lib/fab-react-toolkit-patch/api/hooks/useProvideApi.d.ts +1 -1
- package/dist/core/lib/fab-react-toolkit-patch/api/hooks/useProvideBulk.d.ts +1 -1
- package/dist/core/lib/fab-react-toolkit-patch/api/utils/api/downloadItems.d.ts +2 -2
- package/dist/core/lib/fab-react-toolkit-patch/api/utils/api/getItems.d.ts +3 -2
- package/dist/core/lib/fab-react-toolkit-patch/auth/utils/authFetch.d.ts +11 -6
- package/dist/core/lib/fab-react-toolkit-patch/auth/utils/userCRUD.d.ts +5 -3
- package/dist/core/lib/hooks/api/types.d.ts +1 -59
- package/dist/core/lib/hooks/api/useForms.d.ts +1 -1
- package/dist/core/lib/index.d.ts +5 -6
- package/dist/core/lib/test-helpers/types.d.ts +1 -1
- package/dist/jsonforms/cjs/MantineInputs/MantineFileInput.cjs +13 -4
- package/dist/jsonforms/cjs/MantineInputs/MantineObjectInput.cjs +23 -12
- package/dist/jsonforms/cjs/complex/MantineArrayControl/DeleteDialog.cjs +38 -7
- package/dist/jsonforms/cjs/complex/MantineArrayControl/MantineArrayControl.cjs +16 -11
- package/dist/jsonforms/cjs/complex/MantineTableControl/MantineTableControl.cjs +117 -23
- package/dist/jsonforms/cjs/complex/MantineTableControl/TableToolbar.cjs +30 -4
- package/dist/jsonforms/cjs/hooks/useContextProps.cjs +5 -7
- package/dist/jsonforms/cjs/hooks/useNavigationComponent.cjs +48 -13
- package/dist/jsonforms/cjs/hooks/useToolbarComponent.cjs +31 -11
- package/dist/jsonforms/cjs/labels/MantineLabelRenderer.cjs +9 -1
- package/dist/jsonforms/cjs/layouts/Array/ArrayToolbar.cjs +15 -4
- package/dist/jsonforms/cjs/layouts/Array/ExpandPanelRenderer.cjs +83 -18
- package/dist/jsonforms/cjs/layouts/Array/MantineArrayLayout.cjs +76 -43
- package/dist/jsonforms/cjs/layouts/MantineHotizontalLayoutRenderer.cjs +2 -2
- package/dist/jsonforms/cjs/layouts/MantineVerticalLayoutRenderer.cjs +2 -2
- package/dist/jsonforms/esm/MantineInputs/MantineFileInput.mjs +16 -7
- package/dist/jsonforms/esm/MantineInputs/MantineObjectInput.mjs +23 -12
- package/dist/jsonforms/esm/complex/MantineArrayControl/DeleteDialog.mjs +40 -9
- package/dist/jsonforms/esm/complex/MantineArrayControl/MantineArrayControl.mjs +17 -12
- package/dist/jsonforms/esm/complex/MantineTableControl/MantineTableControl.mjs +118 -24
- package/dist/jsonforms/esm/complex/MantineTableControl/TableToolbar.mjs +31 -5
- package/dist/jsonforms/esm/hooks/useContextProps.mjs +5 -7
- package/dist/jsonforms/esm/hooks/useNavigationComponent.mjs +49 -14
- package/dist/jsonforms/esm/hooks/useToolbarComponent.mjs +32 -12
- package/dist/jsonforms/esm/labels/MantineLabelRenderer.mjs +9 -1
- package/dist/jsonforms/esm/layouts/Array/ArrayToolbar.mjs +16 -5
- package/dist/jsonforms/esm/layouts/Array/ExpandPanelRenderer.mjs +85 -20
- package/dist/jsonforms/esm/layouts/Array/MantineArrayLayout.mjs +79 -46
- package/dist/jsonforms/esm/layouts/MantineHotizontalLayoutRenderer.mjs +2 -2
- package/dist/jsonforms/esm/layouts/MantineVerticalLayoutRenderer.mjs +2 -2
- package/dist/jsonforms/lib/MantineInputs/MantineObjectInput.d.ts +1 -1
- package/dist/jsonforms/lib/complex/MantineTableControl/MantineTableControl.customizer.test.d.ts +1 -0
- package/dist/jsonforms/lib/complex/MantineTableControl/types.d.ts +1 -0
- package/dist/jsonforms/lib/hooks/useContextProps.d.ts +3 -1
- package/dist/jsonforms/lib/hooks/useNavigationComponent.d.ts +1 -1
- package/dist/jsonforms/lib/layouts/Array/ExpandPanelRenderer.d.ts +1 -1
- package/dist/jsonforms/lib/layouts/Array/MantineArrayLayout.d.ts +1 -1
- package/dist/jsonforms/lib/test-helpers/inputWrap.d.ts +2 -2
- package/dist/react-native-adapters/cjs/asyncStorageAdapter.cjs +8 -0
- package/dist/react-native-adapters/cjs/bearerTransport.cjs +29 -0
- package/dist/react-native-adapters/cjs/createReactNativeAdapters.cjs +24 -0
- package/dist/react-native-adapters/cjs/index.cjs +16 -0
- package/dist/react-native-adapters/cjs/rnFileDownloadAdapter.cjs +24 -0
- package/dist/react-native-adapters/cjs/rnFormDataAdapter.cjs +15 -0
- package/dist/react-native-adapters/cjs/rnNetworkAdapter.cjs +9 -0
- package/dist/react-native-adapters/cjs/rnOAuthOpener.cjs +9 -0
- package/dist/react-native-adapters/esm/asyncStorageAdapter.mjs +8 -0
- package/dist/react-native-adapters/esm/bearerTransport.mjs +29 -0
- package/dist/react-native-adapters/esm/createReactNativeAdapters.mjs +24 -0
- package/dist/react-native-adapters/esm/index.mjs +16 -0
- package/dist/react-native-adapters/esm/rnFileDownloadAdapter.mjs +24 -0
- package/dist/react-native-adapters/esm/rnFormDataAdapter.mjs +15 -0
- package/dist/react-native-adapters/esm/rnNetworkAdapter.mjs +9 -0
- package/dist/react-native-adapters/esm/rnOAuthOpener.mjs +9 -0
- package/dist/react-native-adapters/lib/asyncStorageAdapter.d.ts +7 -0
- package/dist/react-native-adapters/lib/asyncStorageAdapter.test.d.ts +1 -0
- package/dist/react-native-adapters/lib/bearerTransport.d.ts +5 -0
- package/dist/react-native-adapters/lib/bearerTransport.test.d.ts +1 -0
- package/dist/react-native-adapters/lib/createReactNativeAdapters.d.ts +11 -0
- package/dist/react-native-adapters/lib/createReactNativeAdapters.test.d.ts +1 -0
- package/dist/react-native-adapters/lib/index.d.ts +8 -0
- package/dist/react-native-adapters/lib/rnFileDownloadAdapter.d.ts +7 -0
- package/dist/react-native-adapters/lib/rnFileDownloadAdapter.test.d.ts +1 -0
- package/dist/react-native-adapters/lib/rnFormDataAdapter.d.ts +2 -0
- package/dist/react-native-adapters/lib/rnFormDataAdapter.test.d.ts +1 -0
- package/dist/react-native-adapters/lib/rnNetworkAdapter.d.ts +4 -0
- package/dist/react-native-adapters/lib/rnNetworkAdapter.test.d.ts +1 -0
- package/dist/react-native-adapters/lib/rnOAuthOpener.d.ts +5 -0
- package/dist/react-native-adapters/lib/rnOAuthOpener.test.d.ts +1 -0
- package/dist/react-native-adapters/lib/types.d.ts +23 -0
- package/dist/utils/cjs/Memoizer/MemoWrapper.cjs +2 -2
- package/dist/utils/cjs/Memoizer/RenderWrapper.cjs +2 -2
- package/dist/utils/cjs/deepMerge/deepMerge.cjs +1 -1
- package/dist/utils/cjs/index.cjs +2 -6
- package/dist/utils/cjs/randomId/randomId.cjs +4 -0
- package/dist/utils/esm/Memoizer/MemoWrapper.mjs +1 -1
- package/dist/utils/esm/Memoizer/RenderWrapper.mjs +1 -1
- package/dist/utils/esm/deepMerge/deepMerge.mjs +1 -1
- package/dist/utils/esm/index.mjs +2 -6
- package/dist/utils/esm/randomId/randomId.mjs +4 -0
- package/dist/utils/lib/deepMerge/deepMerge.d.ts +2 -0
- package/dist/utils/lib/index.d.ts +1 -3
- package/dist/utils/lib/randomId/index.d.ts +1 -0
- package/dist/utils/lib/randomId/randomId.d.ts +2 -0
- package/dist/utils/lib/randomId/randomId.test.d.ts +1 -0
- package/package.json +11 -1
- package/dist/core/cjs/Wrappers/ApiProvider/utils/api/createItem.cjs +0 -14
- package/dist/core/cjs/Wrappers/ApiProvider/utils/api/deleteItem.cjs +0 -13
- package/dist/core/cjs/Wrappers/ApiProvider/utils/api/downloadItems.cjs +0 -39
- package/dist/core/cjs/Wrappers/ApiProvider/utils/api/formCreateItem.cjs +0 -12
- package/dist/core/cjs/Wrappers/ApiProvider/utils/api/formUpdateItem.cjs +0 -16
- package/dist/core/cjs/Wrappers/ApiProvider/utils/api/getInfo.cjs +0 -9
- package/dist/core/cjs/Wrappers/ApiProvider/utils/api/getItem.cjs +0 -13
- package/dist/core/cjs/Wrappers/ApiProvider/utils/api/getItems.cjs +0 -9
- package/dist/core/cjs/Wrappers/ApiProvider/utils/api/updateItem.cjs +0 -14
- package/dist/core/cjs/Wrappers/ApiProvider/utils/api/uploadItems.cjs +0 -26
- package/dist/core/cjs/Wrappers/ApiProvider/utils/bulkActions/postBulkAction.cjs +0 -14
- package/dist/core/cjs/Wrappers/Provider/hooks/useProvideLang.cjs +0 -45
- package/dist/core/cjs/Wrappers/Provider/utils/authFetch.cjs +0 -99
- package/dist/core/cjs/Wrappers/Provider/utils/userCRUD.cjs +0 -32
- package/dist/core/esm/Wrappers/ApiProvider/utils/api/createItem.mjs +0 -14
- package/dist/core/esm/Wrappers/ApiProvider/utils/api/deleteItem.mjs +0 -13
- package/dist/core/esm/Wrappers/ApiProvider/utils/api/downloadItems.mjs +0 -39
- package/dist/core/esm/Wrappers/ApiProvider/utils/api/formCreateItem.mjs +0 -12
- package/dist/core/esm/Wrappers/ApiProvider/utils/api/formUpdateItem.mjs +0 -16
- package/dist/core/esm/Wrappers/ApiProvider/utils/api/getInfo.mjs +0 -9
- package/dist/core/esm/Wrappers/ApiProvider/utils/api/getItem.mjs +0 -13
- package/dist/core/esm/Wrappers/ApiProvider/utils/api/getItems.mjs +0 -9
- package/dist/core/esm/Wrappers/ApiProvider/utils/api/updateItem.mjs +0 -14
- package/dist/core/esm/Wrappers/ApiProvider/utils/api/uploadItems.mjs +0 -26
- package/dist/core/esm/Wrappers/ApiProvider/utils/bulkActions/postBulkAction.mjs +0 -14
- package/dist/core/esm/Wrappers/Provider/hooks/useProvideLang.mjs +0 -45
- package/dist/core/esm/Wrappers/Provider/utils/authFetch.mjs +0 -99
- package/dist/core/esm/Wrappers/Provider/utils/userCRUD.mjs +0 -32
- package/dist/core/lib/Wrappers/ApiProvider/Contexts/FormContext.d.ts +0 -5
- package/dist/core/lib/Wrappers/ApiProvider/hooks/types.d.ts +0 -90
- package/dist/core/lib/Wrappers/ApiProvider/hooks/useProvideBulk.d.ts +0 -8
- package/dist/core/lib/Wrappers/ApiProvider/hooks/useProvideForm.d.ts +0 -2
- package/dist/core/lib/Wrappers/ApiProvider/hooks/utils/useApiActions.d.ts +0 -11
- package/dist/core/lib/Wrappers/ApiProvider/utils/api/createItem.d.ts +0 -3
- package/dist/core/lib/Wrappers/ApiProvider/utils/api/deleteItem.d.ts +0 -3
- package/dist/core/lib/Wrappers/ApiProvider/utils/api/downloadItems.d.ts +0 -3
- package/dist/core/lib/Wrappers/ApiProvider/utils/api/formCreateItem.d.ts +0 -3
- package/dist/core/lib/Wrappers/ApiProvider/utils/api/formUpdateItem.d.ts +0 -3
- package/dist/core/lib/Wrappers/ApiProvider/utils/api/getItem.d.ts +0 -3
- package/dist/core/lib/Wrappers/ApiProvider/utils/api/updateItem.d.ts +0 -3
- package/dist/core/lib/Wrappers/ApiProvider/utils/api/uploadItems.d.ts +0 -2
- package/dist/core/lib/Wrappers/ApiProvider/utils/bulkActions/postBulkAction.d.ts +0 -3
- package/dist/core/lib/Wrappers/Provider/hooks/types.d.ts +0 -24
- package/dist/core/lib/Wrappers/Provider/hooks/useProvideAuth.d.ts +0 -17
- package/dist/core/lib/Wrappers/Provider/utils/userCRUD.d.ts +0 -19
- package/dist/utils/lib/convertToFormData/convertToFormData.d.ts +0 -15
- /package/dist/{core/cjs/Wrappers → api/cjs}/ApiProvider/Contexts/BulkActionsContext.cjs +0 -0
- /package/dist/{core/cjs/Wrappers → api/cjs}/ApiProvider/Contexts/FormContext.cjs +0 -0
- /package/dist/{core/cjs/Wrappers → api/cjs}/ApiProvider/hooks/utils/useLatest.cjs +0 -0
- /package/dist/{core/cjs/Wrappers → api/cjs}/ApiProvider/utils/convertInfo.cjs +0 -0
- /package/dist/{core/cjs/Wrappers → api/cjs}/ApiProvider/utils/createQueryParams.cjs +0 -0
- /package/dist/{core/cjs/Wrappers → api/cjs}/ApiProvider/utils/getDefaultValues.cjs +0 -0
- /package/dist/{core/cjs/Wrappers → api/cjs}/Provider/Contexts/AuthContext.cjs +0 -0
- /package/dist/{core/cjs/Wrappers → api/cjs}/Provider/Contexts/InfoContext.cjs +0 -0
- /package/dist/{core → api}/cjs/translations/de.cjs +0 -0
- /package/dist/{utils/cjs → api/cjs/utils}/parseResponse/parseResponse.cjs +0 -0
- /package/dist/{core/esm/Wrappers → api/esm}/ApiProvider/Contexts/BulkActionsContext.mjs +0 -0
- /package/dist/{core/esm/Wrappers → api/esm}/ApiProvider/Contexts/FormContext.mjs +0 -0
- /package/dist/{core/esm/Wrappers → api/esm}/ApiProvider/hooks/utils/useLatest.mjs +0 -0
- /package/dist/{core/esm/Wrappers → api/esm}/ApiProvider/utils/convertInfo.mjs +0 -0
- /package/dist/{core/esm/Wrappers → api/esm}/ApiProvider/utils/createQueryParams.mjs +0 -0
- /package/dist/{core/esm/Wrappers → api/esm}/ApiProvider/utils/getDefaultValues.mjs +0 -0
- /package/dist/{core/esm/Wrappers → api/esm}/Provider/Contexts/AuthContext.mjs +0 -0
- /package/dist/{core/esm/Wrappers → api/esm}/Provider/Contexts/InfoContext.mjs +0 -0
- /package/dist/{core → api}/esm/translations/de.mjs +0 -0
- /package/dist/{utils/esm → api/esm/utils}/parseResponse/parseResponse.mjs +0 -0
- /package/dist/{core/lib/Wrappers/ApiProvider/hooks/useProvideApi.test.d.ts → api/lib/ApiProvider/ApiProvider.test.d.ts} +0 -0
- /package/dist/{core/lib/Wrappers → api/lib}/ApiProvider/Contexts/ApiContext.d.ts +0 -0
- /package/dist/{core/lib/Wrappers → api/lib}/ApiProvider/hooks/useProvideApi.d.ts +0 -0
- /package/dist/{core/lib/Wrappers/ApiProvider/hooks/useProvideBulk.test.d.ts → api/lib/ApiProvider/hooks/useProvideApi.test.d.ts} +0 -0
- /package/dist/{core/lib/Wrappers/ApiProvider/hooks/useProvideForm.test.d.ts → api/lib/ApiProvider/hooks/useProvideBulk.test.d.ts} +0 -0
- /package/dist/{core/lib/Wrappers/ApiProvider/hooks/utils/useApiActions.test.d.ts → api/lib/ApiProvider/hooks/useProvideForm.test.d.ts} +0 -0
- /package/dist/{core/lib/Wrappers/ApiProvider/hooks/utils/useLatest.test.d.ts → api/lib/ApiProvider/hooks/utils/useApiActions.test.d.ts} +0 -0
- /package/dist/{core/lib/Wrappers → api/lib}/ApiProvider/hooks/utils/useLatest.d.ts +0 -0
- /package/dist/{core/lib/Wrappers/ApiProvider/hooks/utils/useStreamingData.test.d.ts → api/lib/ApiProvider/hooks/utils/useLatest.test.d.ts} +0 -0
- /package/dist/{core/lib/Wrappers/ApiProvider/utils/api/createItem.test.d.ts → api/lib/ApiProvider/hooks/utils/useStreamingData.test.d.ts} +0 -0
- /package/dist/{core/lib/Wrappers → api/lib}/ApiProvider/utils/convertInfo.d.ts +0 -0
- /package/dist/{core/lib/Wrappers → api/lib}/ApiProvider/utils/convertInfo.test.d.ts +0 -0
- /package/dist/{core/lib/Wrappers → api/lib}/ApiProvider/utils/createQueryParams.d.ts +0 -0
- /package/dist/{core/lib/Wrappers → api/lib}/ApiProvider/utils/createQueryParams.test.d.ts +0 -0
- /package/dist/{core/lib/Wrappers → api/lib}/ApiProvider/utils/getDefaultValues.test.d.ts +0 -0
- /package/dist/{core/lib/Wrappers → api/lib}/ApiProvider/utils/getValidationSchema.test.d.ts +0 -0
- /package/dist/{core/lib/Wrappers → api/lib}/ApiProvider/utils/types.d.ts +0 -0
- /package/dist/{core/lib/Wrappers → api/lib}/Provider/Contexts/LangContext.d.ts +0 -0
- /package/dist/{core/lib/Wrappers/ApiProvider/utils/api/deleteItem.test.d.ts → api/lib/Provider/Provider.test.d.ts} +0 -0
- /package/dist/{core/lib/Wrappers → api/lib}/Provider/hooks/useProvideAuth.test.d.ts +0 -0
- /package/dist/{core/lib/Wrappers → api/lib}/Provider/hooks/useProvideInfo.test.d.ts +0 -0
- /package/dist/{core/lib/Wrappers → api/lib}/Provider/hooks/useProvideLang.test.d.ts +0 -0
- /package/dist/{core/lib/Wrappers/ApiProvider/utils/api/downloadItems.test.d.ts → api/lib/__tests__/purity.test.d.ts} +0 -0
- /package/dist/{core/lib/Wrappers/ApiProvider/utils/api/formCreateItem.test.d.ts → api/lib/__tests__/smoke.test.d.ts} +0 -0
- /package/dist/{core/lib/Wrappers/ApiProvider/utils/api/formUpdateItem.test.d.ts → api/lib/adapters/AdaptersContext.test.d.ts} +0 -0
- /package/dist/{core/lib/Wrappers/Provider/utils → api/lib/auth}/authFetch.test.d.ts +0 -0
- /package/dist/{core/lib/Wrappers/Provider/utils → api/lib/auth}/userCRUD.test.d.ts +0 -0
- /package/dist/{core/lib/Wrappers/ApiProvider/utils/api/getInfo.test.d.ts → api/lib/fetchers/createItem.test.d.ts} +0 -0
- /package/dist/{core/lib/Wrappers/ApiProvider/utils/api/getItem.test.d.ts → api/lib/fetchers/deleteItem.test.d.ts} +0 -0
- /package/dist/{core/lib/Wrappers/ApiProvider/utils/api/getItems.test.d.ts → api/lib/fetchers/downloadItems.test.d.ts} +0 -0
- /package/dist/{core/lib/Wrappers/ApiProvider/utils/api/updateItem.test.d.ts → api/lib/fetchers/formCreateItem.test.d.ts} +0 -0
- /package/dist/{core/lib/Wrappers/ApiProvider/utils/api/uploadItems.test.d.ts → api/lib/fetchers/formUpdateItem.test.d.ts} +0 -0
- /package/dist/{core/lib/Wrappers/ApiProvider/utils/bulkActions/postBulkAction.test.d.ts → api/lib/fetchers/getInfo.test.d.ts} +0 -0
- /package/dist/{core/lib/hooks/auth/useAuth.test.d.ts → api/lib/fetchers/getItem.test.d.ts} +0 -0
- /package/dist/{core/lib/hooks/auth/useInfo.test.d.ts → api/lib/fetchers/getItems.test.d.ts} +0 -0
- /package/dist/{utils/lib/convertToFormData/convertToFormData.test.d.ts → api/lib/fetchers/postBulkAction.test.d.ts} +0 -0
- /package/dist/{utils/lib/createFetchParams/createFetchParams.test.d.ts → api/lib/fetchers/request.test.d.ts} +0 -0
- /package/dist/{utils/lib/parseResponse/parseResponse.test.d.ts → api/lib/fetchers/updateItem.test.d.ts} +0 -0
- /package/dist/{core → api}/lib/hooks/auth/useAuth.d.ts +0 -0
- /package/dist/{core → api}/lib/hooks/auth/useInfo.d.ts +0 -0
- /package/dist/{core → api}/lib/translations/de.d.ts +0 -0
- /package/dist/{utils/lib → api/lib/utils}/convertToFormData/index.d.ts +0 -0
- /package/dist/{utils/lib → api/lib/utils}/createFetchParams/index.d.ts +0 -0
- /package/dist/{utils/lib → api/lib/utils}/parseResponse/index.d.ts +0 -0
|
@@ -1,11 +1,13 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
1
|
+
import { urlJoin } from "fastapi-rtk/utils";
|
|
2
|
+
import { createFetchParams } from "fastapi-rtk/api";
|
|
3
|
+
async function authSignin(adapters, baseUrl, { username, password }) {
|
|
3
4
|
const { fetchPath, options } = createFetchParams({
|
|
4
5
|
path: urlJoin(baseUrl, "auth/login"),
|
|
5
6
|
method: "POST",
|
|
6
7
|
body: { username, password }
|
|
7
8
|
});
|
|
8
|
-
const
|
|
9
|
+
const decorated = await adapters.authTransport.decorateRequest(options);
|
|
10
|
+
const res = await fetch(fetchPath, decorated);
|
|
9
11
|
if (!res.ok) {
|
|
10
12
|
if (res.status === 400) {
|
|
11
13
|
throw new Error("Username or password wrong.");
|
|
@@ -14,23 +16,24 @@ async function authSignin(baseUrl, { username, password }) {
|
|
|
14
16
|
}
|
|
15
17
|
}
|
|
16
18
|
}
|
|
17
|
-
async function authSignout(baseUrl) {
|
|
19
|
+
async function authSignout(adapters, baseUrl) {
|
|
18
20
|
const { fetchPath, options } = createFetchParams({
|
|
19
21
|
path: urlJoin(baseUrl, "auth/logout"),
|
|
20
22
|
method: "GET"
|
|
21
23
|
});
|
|
22
|
-
const
|
|
24
|
+
const decorated = await adapters.authTransport.decorateRequest(options);
|
|
25
|
+
const res = await fetch(fetchPath, decorated);
|
|
23
26
|
if (!res.ok) {
|
|
24
27
|
throw new Error("Failed to sign out.");
|
|
25
28
|
}
|
|
26
29
|
}
|
|
27
|
-
async function authResetPassword(baseUrl, newPassword, { email }) {
|
|
30
|
+
async function authResetPassword(adapters, baseUrl, newPassword, { email }) {
|
|
28
31
|
const { fetchPath, options } = createFetchParams({
|
|
29
32
|
path: urlJoin(baseUrl, "auth/forgot-password"),
|
|
30
33
|
method: "POST",
|
|
31
34
|
body: { email }
|
|
32
35
|
});
|
|
33
|
-
const forgotPasswordRes = await fetch(fetchPath, options);
|
|
36
|
+
const forgotPasswordRes = await fetch(fetchPath, await adapters.authTransport.decorateRequest(options));
|
|
34
37
|
if (!forgotPasswordRes.ok) {
|
|
35
38
|
throw new Error("Could not request token to reset password");
|
|
36
39
|
}
|
|
@@ -41,12 +44,12 @@ async function authResetPassword(baseUrl, newPassword, { email }) {
|
|
|
41
44
|
method: "POST",
|
|
42
45
|
body: { token, password: newPassword }
|
|
43
46
|
});
|
|
44
|
-
const resetPasswordRes = await fetch(fetchPath2, options2);
|
|
47
|
+
const resetPasswordRes = await fetch(fetchPath2, await adapters.authTransport.decorateRequest(options2));
|
|
45
48
|
if (!resetPasswordRes.ok) {
|
|
46
49
|
throw new Error("Could not reset password");
|
|
47
50
|
}
|
|
48
51
|
}
|
|
49
|
-
function authOAuthSignin(baseUrl, provider, popup, afterSigninPopup) {
|
|
52
|
+
async function authOAuthSignin(adapters, baseUrl, provider, popup, afterSigninPopup) {
|
|
50
53
|
const url = urlJoin(baseUrl, "auth/login", provider);
|
|
51
54
|
if (!popup) {
|
|
52
55
|
window.location.href = urlJoin(baseUrl, "auth/login", provider);
|
|
@@ -68,12 +71,13 @@ function authOAuthSignin(baseUrl, provider, popup, afterSigninPopup) {
|
|
|
68
71
|
}
|
|
69
72
|
}, 200);
|
|
70
73
|
}
|
|
71
|
-
async function authInfo(baseUrl, signal) {
|
|
74
|
+
async function authInfo(adapters, baseUrl, signal) {
|
|
72
75
|
const { fetchPath, options } = createFetchParams({
|
|
73
76
|
path: urlJoin(baseUrl, "info/"),
|
|
74
77
|
method: "GET"
|
|
75
78
|
});
|
|
76
|
-
const
|
|
79
|
+
const decorated = await adapters.authTransport.decorateRequest(options);
|
|
80
|
+
const res = await fetch(fetchPath, { signal, ...decorated });
|
|
77
81
|
const data = await res.json();
|
|
78
82
|
if (!res.ok) {
|
|
79
83
|
const errorMessage = typeof data.message === "string" ? data.message : JSON.stringify(data.message, null, 2);
|
|
@@ -1,10 +1,12 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
1
|
+
import { urlJoin } from "fastapi-rtk/utils";
|
|
2
|
+
import { createFetchParams } from "fastapi-rtk/api";
|
|
3
|
+
async function getUser(adapters, baseUrl, signal) {
|
|
3
4
|
const { fetchPath, options } = createFetchParams({
|
|
4
5
|
path: urlJoin(baseUrl, "auth/user"),
|
|
5
6
|
method: "GET"
|
|
6
7
|
});
|
|
7
|
-
const
|
|
8
|
+
const decorated = await adapters.authTransport.decorateRequest(options);
|
|
9
|
+
const res = await fetch(fetchPath, { signal, ...decorated });
|
|
8
10
|
const data = await res.json();
|
|
9
11
|
if (!res.ok) {
|
|
10
12
|
const errorMessage = typeof data.message === "string" ? data.message : JSON.stringify(data.message, null, 2);
|
|
@@ -12,13 +14,14 @@ async function getUser(baseUrl, signal) {
|
|
|
12
14
|
}
|
|
13
15
|
return data;
|
|
14
16
|
}
|
|
15
|
-
async function updateUser(baseUrl, userData) {
|
|
17
|
+
async function updateUser(adapters, baseUrl, userData) {
|
|
16
18
|
const { fetchPath, options } = createFetchParams({
|
|
17
19
|
path: urlJoin(baseUrl, "auth/user"),
|
|
18
20
|
method: "PUT",
|
|
19
21
|
body: userData
|
|
20
22
|
});
|
|
21
|
-
const
|
|
23
|
+
const decorated = await adapters.authTransport.decorateRequest(options);
|
|
24
|
+
const res = await fetch(fetchPath, decorated);
|
|
22
25
|
const data = await res.json();
|
|
23
26
|
if (!res.ok) {
|
|
24
27
|
const errorMessage = typeof data.message === "string" ? data.message : JSON.stringify(data.message, null, 2);
|
|
@@ -1,8 +1,5 @@
|
|
|
1
|
-
import { useBulkActionsProvider } from "
|
|
2
|
-
const useBulkActions = (options) => (
|
|
3
|
-
// #MUSTASSERT the BulkActionsContext is created from an untyped createSafeContext, so the provider hook returns unknown
|
|
4
|
-
useBulkActionsProvider(options)
|
|
5
|
-
);
|
|
1
|
+
import { useBulkActionsProvider } from "fastapi-rtk/api";
|
|
2
|
+
const useBulkActions = (options) => useBulkActionsProvider(options);
|
|
6
3
|
export {
|
|
7
4
|
useBulkActions
|
|
8
5
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { useFormDeleteProvider, useFormEditProvider, useFormAddProvider, useFormViewProvider } from "
|
|
1
|
+
import { useFormDeleteProvider, useFormEditProvider, useFormAddProvider, useFormViewProvider } from "fastapi-rtk/api";
|
|
2
2
|
function useForms(type, options) {
|
|
3
3
|
switch (type) {
|
|
4
4
|
case "view":
|
package/dist/core/esm/index.mjs
CHANGED
|
@@ -13,8 +13,7 @@ import { TabsDisplay, ViewDialog } from "./Dialogs/ViewDialog.mjs";
|
|
|
13
13
|
import { useApi, useLang, useTranslation } from "fastapi-rtk/contexts";
|
|
14
14
|
import { useBulkActions } from "./hooks/api/useBulkActions.mjs";
|
|
15
15
|
import { useForms } from "./hooks/api/useForms.mjs";
|
|
16
|
-
import { useAuth } from "
|
|
17
|
-
import { useInfo } from "./hooks/auth/useInfo.mjs";
|
|
16
|
+
import { buildRequest, convertToFormData, createFetchParams, createItem, deleteItem, downloadItems, formCreateItem, formUpdateItem, getInfo, getItem, getItems, parseResponse, postBulk, updateItem, uploadItems, useAdapters, useAuth, useInfo, withApiProvider, withProvider } from "fastapi-rtk/api";
|
|
18
17
|
import { DateTimePicker, TimePicker } from "fastapi-rtk/components";
|
|
19
18
|
import { UserMenu } from "./Menu/UserMenu/UserMenu.mjs";
|
|
20
19
|
import { Filter } from "./Tables/DataGrid/Toolbar/Filter/Filter.mjs";
|
|
@@ -25,10 +24,11 @@ import { overlayProps } from "./Modals/overlayProps.mjs";
|
|
|
25
24
|
import { DataGrid, DataGrid as DataGrid2 } from "./Tables/DataGrid/DataGrid.mjs";
|
|
26
25
|
import { NextGenDataGrid, NextGenDataGrid as NextGenDataGrid2, NextGenDataGrid as NextGenDataGrid3, NextGenDataGrid as NextGenDataGrid4 } from "./Tables/NextGenDataGrid/NextGenDataGrid.mjs";
|
|
27
26
|
import { AutoSizeColumn, usePatchProps } from "./Tables/NextGenDataGrid/hooks/usePatchProps.mjs";
|
|
28
|
-
import { ApiProvider
|
|
27
|
+
import { ApiProvider } from "./Wrappers/ApiProvider/ApiProvider.mjs";
|
|
29
28
|
import { InfiniteScroll } from "./Wrappers/InfiniteScroll/InfiniteScroll.mjs";
|
|
30
29
|
import { LazyLoadWrapper } from "./Wrappers/LazyLoadWrapper/LazyLoadWrapper.mjs";
|
|
31
|
-
import { Provider
|
|
30
|
+
import { Provider } from "./Wrappers/Provider/Provider.mjs";
|
|
31
|
+
import { webAdapters } from "./adapters/web/index.mjs";
|
|
32
32
|
export * from "fastapi-rtk/.bundled-jsonforms";
|
|
33
33
|
export * from "fastapi-rtk/api-types";
|
|
34
34
|
export * from "fastapi-rtk/constants";
|
|
@@ -68,12 +68,28 @@ export {
|
|
|
68
68
|
UserMenu,
|
|
69
69
|
View,
|
|
70
70
|
ViewDialog,
|
|
71
|
+
buildRequest,
|
|
72
|
+
convertToFormData,
|
|
73
|
+
createFetchParams,
|
|
74
|
+
createItem,
|
|
75
|
+
deleteItem,
|
|
76
|
+
downloadItems,
|
|
77
|
+
formCreateItem,
|
|
78
|
+
formUpdateItem,
|
|
79
|
+
getInfo,
|
|
80
|
+
getItem,
|
|
81
|
+
getItems,
|
|
71
82
|
index_esm as mantineReactTable,
|
|
72
83
|
index_esm as mrt,
|
|
73
84
|
normalProps,
|
|
74
85
|
overlayProps,
|
|
86
|
+
parseResponse,
|
|
87
|
+
postBulk,
|
|
75
88
|
index as reactQuery,
|
|
76
89
|
index as rq,
|
|
90
|
+
updateItem,
|
|
91
|
+
uploadItems,
|
|
92
|
+
useAdapters,
|
|
77
93
|
useApi,
|
|
78
94
|
useAuth,
|
|
79
95
|
useBulkActions,
|
|
@@ -82,6 +98,7 @@ export {
|
|
|
82
98
|
useLang,
|
|
83
99
|
usePatchProps,
|
|
84
100
|
useTranslation,
|
|
101
|
+
webAdapters,
|
|
85
102
|
withApiProvider,
|
|
86
103
|
withProvider
|
|
87
104
|
};
|
|
@@ -8,7 +8,7 @@ import { EditProps } from '../../ActionIcons/Edit/types';
|
|
|
8
8
|
import { ViewProps } from '../../ActionIcons/View/types';
|
|
9
9
|
import { AddDialogProps, DeleteDialogProps, EditDialogProps, ViewDialogProps } from '../../Dialogs/types';
|
|
10
10
|
import { BulkActions } from '../../hooks/api/types';
|
|
11
|
-
import { AuthContextValue } from '
|
|
11
|
+
import { AuthContextValue } from 'fastapi-rtk/api';
|
|
12
12
|
import { GridCustomizer } from '../DataGrid/Main/types';
|
|
13
13
|
import { SelectionStore } from './components/OptimizedMRT_RowSelectColumn/types';
|
|
14
14
|
import { OnClickEntry, Optimizations } from './hooks/types';
|
|
@@ -1,17 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
*/
|
|
6
|
-
export declare function ApiProvider<TQuery extends object = object>(props: ApiProviderProps<TQuery>): import("react/jsx-runtime").JSX.Element;
|
|
7
|
-
/**
|
|
8
|
-
* Higher-order component to wrap a component with ApiProvider.
|
|
9
|
-
*
|
|
10
|
-
* @param apiProviderProps - The props to be passed to the ApiProvider or a function that returns them.
|
|
11
|
-
* @param Component - The component to be wrapped.
|
|
12
|
-
* @param options - Additional options for the HOC.
|
|
13
|
-
* @returns The wrapped component.
|
|
14
|
-
*/
|
|
15
|
-
export declare const withApiProvider: <P extends object>(apiProviderProps: ApiProviderProps | ((props: P) => ApiProviderProps), Component: ComponentType<P>, options?: WithApiProviderOptions) => ComponentType<P> & {
|
|
16
|
-
displayName?: string;
|
|
17
|
-
};
|
|
1
|
+
import { ApiProviderProps } from './types';
|
|
2
|
+
/** Web-bound ApiProvider: wires the fab api/bulk defaults when the Provider was mounted with `fab`. */
|
|
3
|
+
export declare const ApiProvider: <TQuery extends object = object>(props: ApiProviderProps<TQuery>) => import("react/jsx-runtime").JSX.Element;
|
|
4
|
+
export { withApiProvider } from 'fastapi-rtk/api';
|
|
@@ -1,47 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
import { InfoQueryData, RelationParam } from './hooks/types';
|
|
5
|
-
import { QueryParams } from './utils/types';
|
|
6
|
-
/**
|
|
7
|
-
* Props accepted by the `ApiProvider` component.
|
|
8
|
-
*
|
|
9
|
-
* @typeParam TQuery - Custom query-param keys forwarded to the backend (read off `request.query_params`).
|
|
10
|
-
* Surfaced typed on `initialQueryParams`; pass the same shape to `useApi<…, TQuery>()` to type `queryParams` /
|
|
11
|
-
* `setQueryParams` (React context cannot carry the Provider's type param to a distant `useApi` call).
|
|
12
|
-
*/
|
|
13
|
-
export type ApiProviderProps<TQuery extends object = object> = PropsWithChildren<{
|
|
14
|
-
/** The name of the resource to be used in the API path. */
|
|
15
|
-
resource_name?: string;
|
|
16
|
-
/** The initial query parameters to be used in the API requests. May include custom keys (typed via `TQuery`) forwarded to the backend. */
|
|
17
|
-
initialQueryParams?: QueryParams & Partial<TQuery>;
|
|
18
|
-
/** The relation to be used in the API requests. */
|
|
19
|
-
relation?: RelationParam;
|
|
20
|
-
/** Whether to fetch the `info` for the API requests when the component mounts. */
|
|
21
|
-
fetchInfo?: boolean;
|
|
22
|
-
/** Whether to clear the `info` on refetch. */
|
|
23
|
-
clearInfoOnRefetch?: boolean;
|
|
24
|
-
/** Whether to clear the `data` on refetch. */
|
|
25
|
-
clearDataOnRefetch?: boolean;
|
|
26
|
-
/** Whether to refetch the `info` when the language changes. Defaults to true. */
|
|
27
|
-
refetchInfoBasedOnLang?: boolean;
|
|
28
|
-
/** Whether to refetch the `data` when the language changes. Defaults to true. */
|
|
29
|
-
refetchDataBasedOnLang?: boolean;
|
|
30
|
-
/** Whether to reset the `queryParams` on path change. */
|
|
31
|
-
resetQueryParamsOnPathChange?: boolean;
|
|
32
|
-
/** The react-query props for the info query. */
|
|
33
|
-
infoQueryProps?: Partial<UseQueryOptions<InfoQueryData>>;
|
|
34
|
-
/** The react-query props for the data query. */
|
|
35
|
-
dataQueryProps?: Partial<UseQueryOptions<DataPage | null>>;
|
|
36
|
-
/** The react-query props for the streaming (infinite) query. */
|
|
37
|
-
streamingQueryProps?: Partial<UseInfiniteQueryOptions<StreamingPage | null, Error, InfiniteData<StreamingPage | null>, QueryKey, number>>;
|
|
38
|
-
/** Whether to enable streaming for the API requests. */
|
|
39
|
-
streaming?: boolean;
|
|
40
|
-
}>;
|
|
41
|
-
/** Additional options for the `withApiProvider` HOC. */
|
|
42
|
-
export interface WithApiProviderOptions {
|
|
43
|
-
/** The display name for the wrapped component. */
|
|
44
|
-
displayName?: string;
|
|
45
|
-
/** Whether to forward refs to the wrapped component. */
|
|
46
|
-
forwardRef?: boolean;
|
|
47
|
-
}
|
|
1
|
+
import { ApiProviderProps as ApiBaseProviderProps } from 'fastapi-rtk/api';
|
|
2
|
+
/** Web-bound `ApiProviderProps`: omits `apiParams`/`bulkParams`, which the web `ApiProvider` wrapper injects based on `fab`. */
|
|
3
|
+
export type ApiProviderProps<TQuery extends object = object> = Omit<ApiBaseProviderProps<TQuery>, 'apiParams' | 'bulkParams'>;
|
|
@@ -1,14 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
/**
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
export declare const Provider: (props: InnerProviderProps) => import("react/jsx-runtime").JSX.Element;
|
|
6
|
-
/**
|
|
7
|
-
* Higher-order component to wrap a component with Provider.
|
|
8
|
-
*
|
|
9
|
-
* @param providerProps - The props passed to the Provider, or a function that returns them.
|
|
10
|
-
* @param Component - The component to wrap.
|
|
11
|
-
* @param options - Additional options for the HOC.
|
|
12
|
-
* @returns The wrapped component.
|
|
13
|
-
*/
|
|
14
|
-
export declare const withProvider: WithProvider;
|
|
1
|
+
import { ProviderProps } from './types';
|
|
2
|
+
/** Web-bound Provider: defaults baseUrl to the page's api path, injects the web adapters (per-key overridable), and wires the fab auth/info defaults when `fab` is set. */
|
|
3
|
+
export declare const Provider: ({ fab, ...props }: ProviderProps) => import("react/jsx-runtime").JSX.Element;
|
|
4
|
+
export { withProvider } from 'fastapi-rtk/api';
|
|
@@ -1,29 +1,8 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
import { LangProps } from './Contexts/types';
|
|
5
|
-
export interface ProviderProps {
|
|
6
|
-
/** The base URL for the API. */
|
|
1
|
+
import { Adapters, ProviderProps as ApiProviderProps } from 'fastapi-rtk/api';
|
|
2
|
+
import { PropsWithChildren } from 'react';
|
|
3
|
+
export type ProviderProps = PropsWithChildren<Omit<ApiProviderProps, 'baseUrl' | 'adapters' | 'authParams' | 'infoParams'> & {
|
|
7
4
|
baseUrl?: string;
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
/** The react-query props for the auth. See here `https://tanstack.com/query/latest/docs/framework/react/reference/useQuery`. */
|
|
11
|
-
authQueryProps?: Partial<UseQueryOptions<AuthUser>>;
|
|
12
|
-
/** Whether to use the backward compatibility to fab-react-toolkit. */
|
|
5
|
+
adapters?: Partial<Adapters>;
|
|
6
|
+
/** Backward compatibility to fab-react-toolkit: wires the fab auth/info (and, via the ApiProvider wrapper, api/bulk) defaults. */
|
|
13
7
|
fab?: boolean;
|
|
14
|
-
|
|
15
|
-
inheritMantineTheme?: boolean;
|
|
16
|
-
/** The props for the language context. */
|
|
17
|
-
langProps?: LangProps;
|
|
18
|
-
/** Whether to enable debug mode, which logs additional information to the console. */
|
|
19
|
-
debug?: boolean;
|
|
20
|
-
}
|
|
21
|
-
export interface WithProviderOptions {
|
|
22
|
-
/** The display name for the wrapped component. */
|
|
23
|
-
displayName?: string;
|
|
24
|
-
/** Whether to forward refs to the wrapped component. */
|
|
25
|
-
forwardRef?: boolean;
|
|
26
|
-
}
|
|
27
|
-
export type WithProviderProps<P> = ProviderProps | ((props: P) => ProviderProps);
|
|
28
|
-
export type WithProvider = <P>(providerProps: WithProviderProps<P>, Component: ComponentType<P>, options?: WithProviderOptions) => ComponentType<P>;
|
|
29
|
-
export type InnerProviderProps = PropsWithChildren<ProviderProps>;
|
|
8
|
+
}>;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { Adapters } from 'fastapi-rtk/api';
|
|
2
|
+
import { cookieTransport } from './cookieTransport';
|
|
3
|
+
import { webFileDownloadAdapter } from './webFileDownloadAdapter';
|
|
4
|
+
import { webFormDataAdapter } from './webFormDataAdapter';
|
|
5
|
+
import { webNetworkAdapter } from './webNetworkAdapter';
|
|
6
|
+
import { webOAuthOpener } from './webOAuthOpener';
|
|
7
|
+
import { webStorageAdapter } from './webStorageAdapter';
|
|
8
|
+
export declare const webAdapters: Adapters;
|
|
9
|
+
export { cookieTransport, webFileDownloadAdapter, webFormDataAdapter, webNetworkAdapter, webOAuthOpener, webStorageAdapter, };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { ApiFunctions } from '
|
|
1
|
+
import { ApiFunctions } from 'fastapi-rtk/api';
|
|
2
2
|
export declare const defaultApi: ApiFunctions;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
export declare const defaultBulk: {
|
|
2
|
-
postBulk: (path: string, handler: string, data: import('
|
|
2
|
+
postBulk: (adapters: import('fastapi-rtk/api').Adapters, path: string, handler: string, data: import('fastapi-rtk/api').BulkActionPayload, options?: import('fastapi-rtk/api').FetchOptions) => Promise<import('fastapi-rtk/api').BulkActionResponse>;
|
|
3
3
|
};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { QueryParams } from 'fastapi-rtk/api-types';
|
|
2
|
-
import { DownloadOptions } from '
|
|
3
|
-
export declare const downloadItems: (path: string, queryParams?: QueryParams, { label, export_mode, delimiter, quotechar }?: DownloadOptions) => Promise<void>;
|
|
2
|
+
import { Adapters, DownloadOptions } from 'fastapi-rtk/api';
|
|
3
|
+
export declare const downloadItems: (adapters: Adapters, path: string, queryParams?: QueryParams, { label, export_mode, delimiter, quotechar }?: DownloadOptions) => Promise<void>;
|
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
import { QueryParams } from 'fastapi-rtk/api-types';
|
|
2
|
-
import { FetchOptions } from '
|
|
2
|
+
import { Adapters, FetchOptions } from 'fastapi-rtk/api';
|
|
3
3
|
/**
|
|
4
4
|
* Fetches items from the specified path.
|
|
5
5
|
*
|
|
6
|
+
* @param adapters - Platform adapters; the active auth transport decorates the request (cookie sets credentials:'include').
|
|
6
7
|
* @param path - The API endpoint path to fetch items from.
|
|
7
8
|
* @param queryParams - An object containing query parameters to be sent with the request.
|
|
8
9
|
* @param options - Additional fetch options such as headers.
|
|
9
10
|
* @returns A promise that resolves to the fetched data, either as a JSON object or a text string.
|
|
10
11
|
* @throws {Error} - Throws an error if the response is not ok or if there is an issue with the fetch request.
|
|
11
12
|
*/
|
|
12
|
-
export declare const getItems: (path: string, queryParams?: QueryParams, options?: FetchOptions) => Promise<string | object | null>;
|
|
13
|
+
export declare const getItems: (adapters: Adapters, path: string, queryParams?: QueryParams, options?: FetchOptions) => Promise<string | object | null>;
|
|
@@ -1,50 +1,55 @@
|
|
|
1
1
|
import { AppApiInfo } from 'fastapi-rtk/api-types';
|
|
2
|
-
import { SigninCredentials } from '
|
|
2
|
+
import { Adapters, SigninCredentials } from 'fastapi-rtk/api';
|
|
3
3
|
/**
|
|
4
4
|
* Sign in a user using the provided credentials.
|
|
5
5
|
*
|
|
6
|
+
* @param adapters - Platform adapters; the active auth transport decorates the request (cookie sets credentials:'include').
|
|
6
7
|
* @param baseUrl - The base URL of the authentication endpoint.
|
|
7
8
|
* @param credentials - The user's sign in credentials.
|
|
8
9
|
* @returns Resolves when the user is signed in.
|
|
9
10
|
* @throws {Error} Throws an error if the sign in fails.
|
|
10
11
|
*/
|
|
11
|
-
export declare function authSignin(baseUrl: string, { username, password }: SigninCredentials): Promise<void>;
|
|
12
|
+
export declare function authSignin(adapters: Adapters, baseUrl: string, { username, password }: SigninCredentials): Promise<void>;
|
|
12
13
|
/**
|
|
13
14
|
* Sign out the current user.
|
|
14
15
|
*
|
|
16
|
+
* @param adapters - Platform adapters; the active auth transport decorates the request (cookie sets credentials:'include').
|
|
15
17
|
* @param baseUrl - The base URL of the authentication endpoint.
|
|
16
18
|
* @returns Resolves when the user is logged out.
|
|
17
19
|
* @throws {Error} Throws an error if the sign out fails.
|
|
18
20
|
*/
|
|
19
|
-
export declare function authSignout(baseUrl: string): Promise<void>;
|
|
21
|
+
export declare function authSignout(adapters: Adapters, baseUrl: string): Promise<void>;
|
|
20
22
|
/**
|
|
21
23
|
* Resets the user's password by first requesting a reset token and then using it to set a new password.
|
|
22
24
|
*
|
|
25
|
+
* @param adapters - Platform adapters; the active auth transport decorates the request (cookie sets credentials:'include').
|
|
23
26
|
* @param baseUrl - The base URL of the API.
|
|
24
27
|
* @param newPassword - The new password to set.
|
|
25
28
|
* @param param - An object containing the user's email.
|
|
26
29
|
* @throws Will throw an error if the request for the reset token or the password reset fails.
|
|
27
30
|
* @returns A promise that resolves when the password has been successfully reset.
|
|
28
31
|
*/
|
|
29
|
-
export declare function authResetPassword(baseUrl: string, newPassword: string, { email }: {
|
|
32
|
+
export declare function authResetPassword(adapters: Adapters, baseUrl: string, newPassword: string, { email }: {
|
|
30
33
|
email: string;
|
|
31
34
|
}): Promise<void>;
|
|
32
35
|
/**
|
|
33
36
|
* Initiates an OAuth sign-in process with the specified provider.
|
|
34
37
|
*
|
|
38
|
+
* @param adapters - Platform adapters (unused here; the popup/redirect flow stays inline for fab web parity).
|
|
35
39
|
* @param baseUrl - The base URL of the authentication server.
|
|
36
40
|
* @param provider - The OAuth provider to use for sign-in (e.g., 'google', 'facebook').
|
|
37
41
|
* @param popup - Whether to use a popup window for the sign-in process.
|
|
38
42
|
* @param afterSigninPopup - Optional callback function to be called after the popup is closed.
|
|
39
43
|
* @returns Redirects the user to the OAuth provider's sign-in page or opens a popup window for the sign-in process.
|
|
40
44
|
*/
|
|
41
|
-
export declare function authOAuthSignin(baseUrl: string, provider: string, popup: boolean, afterSigninPopup?: () => void): void
|
|
45
|
+
export declare function authOAuthSignin(adapters: Adapters, baseUrl: string, provider: string, popup: boolean, afterSigninPopup?: () => void): Promise<void>;
|
|
42
46
|
/**
|
|
43
47
|
* Fetches authentication information for the user.
|
|
44
48
|
*
|
|
49
|
+
* @param adapters - Platform adapters; the active auth transport decorates the request (cookie sets credentials:'include').
|
|
45
50
|
* @param baseUrl - The base URL of the API.
|
|
46
51
|
* @param signal - An AbortSignal to allow aborting the fetch request.
|
|
47
52
|
* @returns The authentication information of the user.
|
|
48
53
|
* @throws {Error} If the fetch request fails or the response is not ok.
|
|
49
54
|
*/
|
|
50
|
-
export declare function authInfo(baseUrl: string, signal?: AbortSignal): Promise<AppApiInfo[]>;
|
|
55
|
+
export declare function authInfo(adapters: Adapters, baseUrl: string, signal?: AbortSignal): Promise<AppApiInfo[]>;
|
|
@@ -1,19 +1,21 @@
|
|
|
1
|
-
import { AuthUser } from '
|
|
1
|
+
import { Adapters, AuthUser } from 'fastapi-rtk/api';
|
|
2
2
|
/**
|
|
3
3
|
* Fetches the current user's information.
|
|
4
4
|
*
|
|
5
|
+
* @param adapters - Platform adapters; the active auth transport decorates the request (cookie sets credentials:'include').
|
|
5
6
|
* @param baseUrl - The base URL of the user endpoint.
|
|
6
7
|
* @param signal - The signal to use for the fetch request.
|
|
7
8
|
* @returns The user's information as a JSON object.
|
|
8
9
|
* @throws {Error} Throws an error if fetching the user information fails.
|
|
9
10
|
*/
|
|
10
|
-
export declare function getUser(baseUrl: string, signal?: AbortSignal): Promise<AuthUser>;
|
|
11
|
+
export declare function getUser(adapters: Adapters, baseUrl: string, signal?: AbortSignal): Promise<AuthUser>;
|
|
11
12
|
/**
|
|
12
13
|
* Updates the current user's information.
|
|
13
14
|
*
|
|
15
|
+
* @param adapters - Platform adapters; the active auth transport decorates the request (cookie sets credentials:'include').
|
|
14
16
|
* @param baseUrl - The base URL of the user endpoint.
|
|
15
17
|
* @param userData - The new user data to update.
|
|
16
18
|
* @returns The updated user's information as a JSON object.
|
|
17
19
|
* @throws {Error} Throws an error if updating the user information fails.
|
|
18
20
|
*/
|
|
19
|
-
export declare function updateUser(baseUrl: string, userData: Partial<AuthUser>): Promise<AuthUser>;
|
|
21
|
+
export declare function updateUser(adapters: Adapters, baseUrl: string, userData: Partial<AuthUser>): Promise<AuthUser>;
|
|
@@ -1,59 +1 @@
|
|
|
1
|
-
|
|
2
|
-
import { MRT_RowData } from '../../../../.external/lib/mantine-react-table';
|
|
3
|
-
import { BulkActionResponse } from '../../Wrappers/ApiProvider/utils/bulkActions/types';
|
|
4
|
-
export interface BulkActions {
|
|
5
|
-
/** An array of currently selected IDs for bulk actions. */
|
|
6
|
-
selectedIds: Array<string | number>;
|
|
7
|
-
/** A function to set the selected IDs. */
|
|
8
|
-
setSelectedIds: (ids: Array<string | number>) => void;
|
|
9
|
-
}
|
|
10
|
-
export interface BulkActionsContextValue {
|
|
11
|
-
/** An object containing the selected IDs and a function to set them. */
|
|
12
|
-
bulkActions: BulkActions;
|
|
13
|
-
/**
|
|
14
|
-
* Dispatches a bulk action; falls back to the currently selected IDs when `data` is omitted.
|
|
15
|
-
* Resolves to `undefined` when the action throws (the error is surfaced via `error`).
|
|
16
|
-
*/
|
|
17
|
-
dispatchBulkActions: (handler: string, data?: Array<string | number>) => Promise<BulkActionResponse | undefined>;
|
|
18
|
-
/** An error object if the bulk action failed. */
|
|
19
|
-
error?: {
|
|
20
|
-
message: string;
|
|
21
|
-
originalError: Error;
|
|
22
|
-
};
|
|
23
|
-
/** A function to reset the error state. */
|
|
24
|
-
resetError: () => void;
|
|
25
|
-
}
|
|
26
|
-
export type FormType = 'view' | 'add' | 'edit' | 'delete';
|
|
27
|
-
export type FormViewMode = 'normal' | 'fullScreen' | 'overlay';
|
|
28
|
-
export interface FormState {
|
|
29
|
-
errors: ValidationError[];
|
|
30
|
-
data: MRT_RowData | undefined;
|
|
31
|
-
}
|
|
32
|
-
export interface FormsContextValue<TItem = MRT_RowData> {
|
|
33
|
-
/** Indicates whether the form is currently opened. */
|
|
34
|
-
opened: boolean;
|
|
35
|
-
/** A function to get the current opened state of the form. */
|
|
36
|
-
getOpened: () => boolean;
|
|
37
|
-
/** A function to set the opened state of the form. */
|
|
38
|
-
setOpened: (newOpened: boolean) => void;
|
|
39
|
-
/** The current view mode of the form. See `VIEW_MODE` from `@fastapi-rtk/constants` for more details. */
|
|
40
|
-
view: FormViewMode;
|
|
41
|
-
/** A function to get the current view mode of the form. */
|
|
42
|
-
getView: () => FormViewMode;
|
|
43
|
-
/** A function to set the view mode of the form. */
|
|
44
|
-
setView: (newView: FormViewMode) => void;
|
|
45
|
-
/** The current state of the form, including errors and data. */
|
|
46
|
-
state: FormState;
|
|
47
|
-
/** A function to get the current state of the form. */
|
|
48
|
-
getState: () => FormState;
|
|
49
|
-
/** A function to set the state of the form. */
|
|
50
|
-
setState: (newState: FormState) => void;
|
|
51
|
-
/** A function to reset the form state to its initial state. */
|
|
52
|
-
reset: () => void;
|
|
53
|
-
/** The current item being edited in the form, if applicable. */
|
|
54
|
-
item: TItem | undefined;
|
|
55
|
-
/** A function to get the current item in the form. */
|
|
56
|
-
getItem: () => TItem | undefined;
|
|
57
|
-
/** A function to set the current item in the form. */
|
|
58
|
-
setItem: (newItem: TItem | undefined) => void;
|
|
59
|
-
}
|
|
1
|
+
export type { BulkActions, BulkActionsContextValue, FormState, FormsContextValue, FormType, FormViewMode, } from 'fastapi-rtk/api';
|
|
@@ -6,7 +6,7 @@ import { FormsContextValue, FormType } from './types';
|
|
|
6
6
|
*
|
|
7
7
|
* The `'delete'` form stores the raw primary key of the row to delete, so its context is typed
|
|
8
8
|
* `FormsContextValue<PrimaryKey>` (`item` / `getItem` / `setItem` operate on the key); the other
|
|
9
|
-
* forms operate on a row object (`FormsContextValue
|
|
9
|
+
* forms operate on a row object (`FormsContextValue`, defaulted to `EntryRow`).
|
|
10
10
|
*
|
|
11
11
|
* @param type - The type of form context to access. Can be 'view', 'add', 'edit', or 'delete'.
|
|
12
12
|
* @param options - Options for the context hook.
|
package/dist/core/lib/index.d.ts
CHANGED
|
@@ -10,8 +10,7 @@ export * from './Dialogs';
|
|
|
10
10
|
export { useApi } from './hooks/api/useApi';
|
|
11
11
|
export { useBulkActions } from './hooks/api/useBulkActions';
|
|
12
12
|
export { useForms } from './hooks/api/useForms';
|
|
13
|
-
export { useAuth } from '
|
|
14
|
-
export { useInfo } from './hooks/auth/useInfo';
|
|
13
|
+
export { useAuth, useInfo } from 'fastapi-rtk/api';
|
|
15
14
|
export { useLang } from './hooks/lang/useLang';
|
|
16
15
|
export { DateTimePicker, TimePicker } from 'fastapi-rtk/components';
|
|
17
16
|
export { UserMenu } from './Menu/UserMenu/UserMenu';
|
|
@@ -21,12 +20,12 @@ export * from './Modals';
|
|
|
21
20
|
export { DataGrid, DataGrid as Datagrid, } from './Tables/DataGrid/DataGrid';
|
|
22
21
|
export { NextGenDataGrid, NextGenDataGrid as NextGenDatagrid, NextGenDataGrid as NextGendatagrid, NextGenDataGrid as Nextgendatagrid, } from './Tables/NextGenDataGrid/NextGenDataGrid';
|
|
23
22
|
export { AutoSizeColumn, usePatchProps } from './Tables/NextGenDataGrid/hooks/usePatchProps';
|
|
24
|
-
export { ApiProvider } from './Wrappers/ApiProvider/ApiProvider';
|
|
23
|
+
export { ApiProvider, withApiProvider } from './Wrappers/ApiProvider/ApiProvider';
|
|
25
24
|
export { InfiniteScroll } from './Wrappers/InfiniteScroll/InfiniteScroll';
|
|
26
25
|
export { LazyLoadWrapper } from './Wrappers/LazyLoadWrapper/LazyLoadWrapper';
|
|
27
|
-
export { Provider } from './Wrappers/Provider/Provider';
|
|
28
|
-
export {
|
|
29
|
-
export {
|
|
26
|
+
export { Provider, withProvider } from './Wrappers/Provider/Provider';
|
|
27
|
+
export { createFetchParams, parseResponse, convertToFormData, getItems, getItem, createItem, updateItem, deleteItem, getInfo, formCreateItem, formUpdateItem, uploadItems, downloadItems, postBulk, buildRequest, useAdapters, } from 'fastapi-rtk/api';
|
|
28
|
+
export { webAdapters } from './adapters/web';
|
|
30
29
|
export * from './sub-packages-exporter';
|
|
31
30
|
export * as rq from '../../.external/lib/@tanstack/react-query';
|
|
32
31
|
export * as mrt from '../../.external/lib/mantine-react-table';
|
|
@@ -2,7 +2,7 @@ import { ApiContextValue, LangContextValue } from 'fastapi-rtk/contexts';
|
|
|
2
2
|
import { i18n } from '../../../.external/lib/i18next';
|
|
3
3
|
import { QueryClient } from '../../../.external/lib/@tanstack/react-query';
|
|
4
4
|
import { BulkActionsContextValue, FormsContextValue } from '../hooks/api/types';
|
|
5
|
-
import { AuthContextValue, InfoContextValue } from '
|
|
5
|
+
import { AuthContextValue, InfoContextValue } from 'fastapi-rtk/api';
|
|
6
6
|
/**
|
|
7
7
|
* Context overrides accepted by `uiWrap`. Each provider slot takes a (usually partial) mock
|
|
8
8
|
* value; only the slots that are present get their provider mounted. Test fixtures
|