fastapi-rtk 2.8.0 → 2.9.1
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/MantineObjectInput.cjs +2 -2
- package/dist/.bundled/jsonforms/cjs/packages/jsonforms/src/complex/MantineTableControl/MantineTableControl.cjs +6 -11
- package/dist/.bundled/jsonforms/cjs/packages/jsonforms/src/layouts/Array/ExpandPanelRenderer.cjs +2 -2
- package/dist/.bundled/jsonforms/cjs/packages/jsonforms/src/layouts/Array/MantineArrayLayout.cjs +3 -5
- package/dist/.bundled/jsonforms/cjs/packages/jsonforms/src/utils/layout.cjs +2 -2
- package/dist/.bundled/jsonforms/esm/packages/jsonforms/src/MantineInputs/MantineObjectInput.mjs +2 -2
- package/dist/.bundled/jsonforms/esm/packages/jsonforms/src/complex/MantineTableControl/MantineTableControl.mjs +7 -12
- package/dist/.bundled/jsonforms/esm/packages/jsonforms/src/layouts/Array/ExpandPanelRenderer.mjs +2 -2
- package/dist/.bundled/jsonforms/esm/packages/jsonforms/src/layouts/Array/MantineArrayLayout.mjs +3 -5
- package/dist/.bundled/jsonforms/esm/packages/jsonforms/src/utils/layout.mjs +2 -2
- package/dist/.external/cjs/html-parse-stringify@3.0.1/html-parse-stringify/dist/html-parse-stringify.module.cjs +59 -0
- package/dist/.external/cjs/lodash@4.17.23/lodash/_cloneBuffer.cjs +1 -1
- package/dist/.external/cjs/lodash@4.17.23/lodash/_freeGlobal.cjs +1 -1
- package/dist/.external/cjs/lodash@4.17.23/lodash/_nodeUtil.cjs +1 -1
- package/dist/.external/cjs/lodash@4.17.23/lodash/isBuffer.cjs +1 -1
- package/dist/.external/cjs/lodash@4.17.23/lodash/lodash.cjs +2 -2
- package/dist/.external/cjs/mantine-react-table@2.0.0-beta.9_patch_hash_b9fcaf5fc0698f1949127d6bfb1f154a5bd28d0d1fe_7b4bd73d03bc0c4b3e9706b344be0f5a/mantine-react-table/locales/de/index.cjs +1 -1
- package/dist/.external/cjs/mantine-react-table@2.0.0-beta.9_patch_hash_b9fcaf5fc0698f1949127d6bfb1f154a5bd28d0d1fe_7b4bd73d03bc0c4b3e9706b344be0f5a/mantine-react-table/locales/en/index.cjs +1 -1
- package/dist/.external/cjs/react-i18next@15.7.4_i18next@25.8.0_typescript@5.9.3__react-dom@19.2.3_react@19.2.3__react@19.2.3_typescript@5.9.3/react-i18next/dist/es/I18nextProvider.cjs +3 -3
- package/dist/.external/cjs/react-i18next@15.7.4_i18next@25.8.0_typescript@5.9.3__react-dom@19.2.3_react@19.2.3__react@19.2.3_typescript@5.9.3/react-i18next/dist/es/Trans.cjs +48 -0
- package/dist/.external/cjs/react-i18next@15.7.4_i18next@25.8.0_typescript@5.9.3__react-dom@19.2.3_react@19.2.3__react@19.2.3_typescript@5.9.3/react-i18next/dist/es/TransWithoutContext.cjs +331 -0
- package/dist/.external/cjs/react-i18next@15.7.4_i18next@25.8.0_typescript@5.9.3__react-dom@19.2.3_react@19.2.3__react@19.2.3_typescript@5.9.3/react-i18next/dist/es/Translation.cjs +15 -0
- package/dist/.external/cjs/react-i18next@15.7.4_i18next@25.8.0_typescript@5.9.3__react-dom@19.2.3_react@19.2.3__react@19.2.3_typescript@5.9.3/react-i18next/dist/es/context.cjs +32 -2
- package/dist/.external/cjs/react-i18next@15.7.4_i18next@25.8.0_typescript@5.9.3__react-dom@19.2.3_react@19.2.3__react@19.2.3_typescript@5.9.3/react-i18next/dist/es/index.cjs +42 -0
- package/dist/.external/cjs/react-i18next@15.7.4_i18next@25.8.0_typescript@5.9.3__react-dom@19.2.3_react@19.2.3__react@19.2.3_typescript@5.9.3/react-i18next/dist/es/useSSR.cjs +32 -0
- package/dist/.external/cjs/react-i18next@15.7.4_i18next@25.8.0_typescript@5.9.3__react-dom@19.2.3_react@19.2.3__react@19.2.3_typescript@5.9.3/react-i18next/dist/es/useTranslation.cjs +9 -9
- package/dist/.external/cjs/react-i18next@15.7.4_i18next@25.8.0_typescript@5.9.3__react-dom@19.2.3_react@19.2.3__react@19.2.3_typescript@5.9.3/react-i18next/dist/es/utils.cjs +2 -0
- package/dist/.external/cjs/react-i18next@15.7.4_i18next@25.8.0_typescript@5.9.3__react-dom@19.2.3_react@19.2.3__react@19.2.3_typescript@5.9.3/react-i18next/dist/es/withSSR.cjs +23 -0
- package/dist/.external/cjs/react-i18next@15.7.4_i18next@25.8.0_typescript@5.9.3__react-dom@19.2.3_react@19.2.3__react@19.2.3_typescript@5.9.3/react-i18next/dist/es/withTranslation.cjs +35 -0
- package/dist/.external/cjs/toposort@2.0.2/toposort/index.cjs +1 -1
- package/dist/.external/cjs/void-elements@3.1.0/void-elements/index.cjs +26 -0
- package/dist/.external/cjs/yup@1.7.1/yup/index.esm.cjs +3 -1224
- package/dist/.external/cjs/zustand@5.0.10_@types_react@19.2.9_react@19.2.3/zustand/esm/index.cjs +7 -0
- package/dist/.external/esm/html-parse-stringify@3.0.1/html-parse-stringify/dist/html-parse-stringify.module.mjs +60 -0
- package/dist/.external/esm/lodash@4.17.23/lodash/_cloneBuffer.mjs +1 -1
- package/dist/.external/esm/lodash@4.17.23/lodash/_freeGlobal.mjs +1 -1
- package/dist/.external/esm/lodash@4.17.23/lodash/_nodeUtil.mjs +1 -1
- package/dist/.external/esm/lodash@4.17.23/lodash/isBuffer.mjs +1 -1
- package/dist/.external/esm/lodash@4.17.23/lodash/lodash.mjs +2 -2
- package/dist/.external/esm/mantine-react-table@2.0.0-beta.9_patch_hash_b9fcaf5fc0698f1949127d6bfb1f154a5bd28d0d1fe_7b4bd73d03bc0c4b3e9706b344be0f5a/mantine-react-table/locales/de/index.mjs +1 -1
- package/dist/.external/esm/mantine-react-table@2.0.0-beta.9_patch_hash_b9fcaf5fc0698f1949127d6bfb1f154a5bd28d0d1fe_7b4bd73d03bc0c4b3e9706b344be0f5a/mantine-react-table/locales/en/index.mjs +1 -1
- package/dist/.external/esm/react-i18next@15.7.4_i18next@25.8.0_typescript@5.9.3__react-dom@19.2.3_react@19.2.3__react@19.2.3_typescript@5.9.3/react-i18next/dist/es/Trans.mjs +49 -0
- package/dist/.external/esm/react-i18next@15.7.4_i18next@25.8.0_typescript@5.9.3__react-dom@19.2.3_react@19.2.3__react@19.2.3_typescript@5.9.3/react-i18next/dist/es/TransWithoutContext.mjs +331 -0
- package/dist/.external/esm/react-i18next@15.7.4_i18next@25.8.0_typescript@5.9.3__react-dom@19.2.3_react@19.2.3__react@19.2.3_typescript@5.9.3/react-i18next/dist/es/Translation.mjs +15 -0
- package/dist/.external/esm/react-i18next@15.7.4_i18next@25.8.0_typescript@5.9.3__react-dom@19.2.3_react@19.2.3__react@19.2.3_typescript@5.9.3/react-i18next/dist/es/context.mjs +32 -1
- package/dist/.external/esm/react-i18next@15.7.4_i18next@25.8.0_typescript@5.9.3__react-dom@19.2.3_react@19.2.3__react@19.2.3_typescript@5.9.3/react-i18next/dist/es/index.mjs +42 -0
- package/dist/.external/esm/react-i18next@15.7.4_i18next@25.8.0_typescript@5.9.3__react-dom@19.2.3_react@19.2.3__react@19.2.3_typescript@5.9.3/react-i18next/dist/es/useSSR.mjs +32 -0
- package/dist/.external/esm/react-i18next@15.7.4_i18next@25.8.0_typescript@5.9.3__react-dom@19.2.3_react@19.2.3__react@19.2.3_typescript@5.9.3/react-i18next/dist/es/utils.mjs +2 -0
- package/dist/.external/esm/react-i18next@15.7.4_i18next@25.8.0_typescript@5.9.3__react-dom@19.2.3_react@19.2.3__react@19.2.3_typescript@5.9.3/react-i18next/dist/es/withSSR.mjs +23 -0
- package/dist/.external/esm/react-i18next@15.7.4_i18next@25.8.0_typescript@5.9.3__react-dom@19.2.3_react@19.2.3__react@19.2.3_typescript@5.9.3/react-i18next/dist/es/withTranslation.mjs +35 -0
- package/dist/.external/esm/toposort@2.0.2/toposort/index.mjs +1 -1
- package/dist/.external/esm/void-elements@3.1.0/void-elements/index.mjs +26 -0
- package/dist/.external/esm/yup@1.7.1/yup/index.esm.mjs +4 -1225
- package/dist/.external/esm/zustand@5.0.10_@types_react@19.2.9_react@19.2.3/zustand/esm/index.mjs +7 -0
- package/dist/.external/esm/zustand@5.0.10_@types_react@19.2.9_react@19.2.3/zustand/esm/react.mjs +5 -5
- 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 +22 -19
- package/dist/{core/cjs/Wrappers → api/cjs}/ApiProvider/hooks/useProvideBulk.cjs +5 -3
- package/dist/{core/cjs/Wrappers → api/cjs}/ApiProvider/hooks/useProvideForm.cjs +2 -2
- 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 +1 -1
- package/dist/{core/cjs/Wrappers → api/cjs}/ApiProvider/utils/getValidationSchema.cjs +3 -3
- package/dist/{core/cjs/Wrappers → api/cjs}/Provider/Contexts/LangContext.cjs +20 -8
- package/dist/api/cjs/Provider/Provider.cjs +52 -0
- package/dist/{core/cjs/Wrappers → api/cjs}/Provider/hooks/useProvideAuth.cjs +17 -15
- package/dist/{core/cjs/Wrappers → api/cjs}/Provider/hooks/useProvideInfo.cjs +5 -3
- package/dist/api/cjs/Provider/hooks/useProvideLang.cjs +78 -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 +77 -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 +21 -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 +2 -2
- 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 +3 -4
- package/dist/{core/esm/Wrappers → api/esm}/Provider/Contexts/LangContext.mjs +22 -10
- package/dist/api/esm/Provider/Provider.mjs +52 -0
- package/dist/{core/esm/Wrappers → api/esm}/Provider/hooks/useProvideAuth.mjs +17 -15
- package/dist/{core/esm/Wrappers → api/esm}/Provider/hooks/useProvideInfo.mjs +5 -3
- package/dist/api/esm/Provider/hooks/useProvideLang.mjs +78 -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 +77 -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 +3 -0
- package/dist/api/lib/ApiProvider/hooks/utils/useApiActions.d.ts +11 -0
- package/dist/api/lib/ApiProvider/hooks/utils/useStreamingData.d.ts +193 -0
- 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 +79 -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 +1 -38
- 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 +36 -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 -7
- package/dist/constants/esm/index.mjs +16 -7
- package/dist/constants/lib/index.d.ts +1 -6
- package/dist/{jsonforms → contexts}/cjs/_virtual/_commonjsHelpers.cjs +0 -2
- package/dist/contexts/cjs/_virtual/index.cjs +5 -0
- package/dist/contexts/cjs/_virtual/index2.cjs +5 -0
- package/dist/contexts/cjs/_virtual/index3.cjs +6 -0
- package/dist/{constants → contexts}/cjs/_virtual/index4.cjs +2 -2
- package/dist/contexts/cjs/_virtual/index5.cjs +6 -0
- package/dist/contexts/cjs/index.cjs +4 -0
- package/dist/contexts/esm/_virtual/_commonjsHelpers.mjs +6 -0
- package/dist/contexts/esm/_virtual/index.mjs +5 -0
- package/dist/contexts/esm/_virtual/index2.mjs +5 -0
- package/dist/contexts/esm/_virtual/index3.mjs +7 -0
- package/dist/contexts/esm/_virtual/index4.mjs +4 -0
- package/dist/contexts/esm/_virtual/index5.mjs +7 -0
- package/dist/contexts/esm/index.mjs +5 -1
- package/dist/contexts/lib/index.d.ts +2 -0
- package/dist/core/cjs/Dialogs/AddDialog.cjs +2 -2
- package/dist/core/cjs/Dialogs/EditDialog.cjs +3 -4
- package/dist/core/cjs/Menu/UserMenu/UserMenu.cjs +2 -2
- package/dist/core/cjs/Modals/CommonModal.cjs +2 -2
- package/dist/core/cjs/Tables/DataGrid/Toolbar/Filter/FilterMenu.cjs +8 -9
- package/dist/core/cjs/Tables/NextGenDataGrid/components/OptimizedMRT_RowSelectColumn/zustand.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/useOptimizations.cjs +1 -2
- 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/_virtual/index.cjs +25 -3
- package/dist/core/cjs/_virtual/index2.cjs +25 -3
- package/dist/core/cjs/_virtual/index3.cjs +3 -5
- package/dist/core/cjs/_virtual/index4.cjs +2 -2
- package/dist/core/cjs/_virtual/index5.cjs +5 -0
- package/dist/core/cjs/_virtual/index6.cjs +3 -0
- package/dist/core/cjs/_virtual/{isBuffer.cjs → index7.cjs} +2 -2
- package/dist/core/cjs/adapters/web/cookieTransport.cjs +15 -0
- package/dist/core/cjs/adapters/web/index.cjs +26 -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/webLocalizationAdapter.cjs +13 -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 +91 -9
- package/dist/core/esm/Dialogs/AddDialog.mjs +1 -1
- package/dist/core/esm/Dialogs/EditDialog.mjs +3 -4
- package/dist/core/esm/Menu/UserMenu/UserMenu.mjs +1 -1
- package/dist/core/esm/Modals/CommonModal.mjs +1 -1
- package/dist/core/esm/Tables/DataGrid/Toolbar/Filter/FilterMenu.mjs +8 -9
- package/dist/core/esm/Tables/NextGenDataGrid/components/OptimizedMRT_RowSelectColumn/zustand.mjs +2 -2
- 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/useOptimizations.mjs +2 -3
- 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/_virtual/index.mjs +25 -3
- package/dist/core/esm/_virtual/index2.mjs +25 -3
- package/dist/core/esm/_virtual/index3.mjs +2 -5
- package/dist/core/esm/_virtual/index4.mjs +2 -2
- package/dist/core/esm/_virtual/index5.mjs +5 -0
- package/dist/core/esm/_virtual/index6.mjs +2 -0
- package/dist/core/esm/_virtual/index7.mjs +4 -0
- package/dist/core/esm/adapters/web/cookieTransport.mjs +15 -0
- package/dist/core/esm/adapters/web/index.mjs +26 -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/webLocalizationAdapter.mjs +13 -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 +23 -7
- package/dist/core/lib/Tables/NextGenDataGrid/components/OptimizedMRT_RowSelectColumn/zustand.d.ts +3 -3
- package/dist/core/lib/Tables/NextGenDataGrid/types.d.ts +3 -3
- 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 +10 -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/webLocalizationAdapter.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 +7 -8
- package/dist/core/lib/test-helpers/types.d.ts +1 -1
- package/dist/jsonforms/cjs/MantineInputs/MantineObjectInput.cjs +2 -2
- package/dist/jsonforms/cjs/complex/MantineTableControl/MantineTableControl.cjs +6 -11
- package/dist/jsonforms/cjs/layouts/Array/ExpandPanelRenderer.cjs +2 -2
- package/dist/jsonforms/cjs/layouts/Array/MantineArrayLayout.cjs +3 -5
- package/dist/jsonforms/cjs/utils/layout.cjs +2 -2
- package/dist/jsonforms/esm/MantineInputs/MantineObjectInput.mjs +2 -2
- package/dist/jsonforms/esm/complex/MantineTableControl/MantineTableControl.mjs +7 -12
- package/dist/jsonforms/esm/layouts/Array/ExpandPanelRenderer.mjs +2 -2
- package/dist/jsonforms/esm/layouts/Array/MantineArrayLayout.mjs +3 -5
- package/dist/jsonforms/esm/utils/layout.mjs +2 -2
- 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/_virtual/_commonjsHelpers.cjs +4 -0
- package/dist/utils/cjs/_virtual/lodash.cjs +6 -3
- package/dist/utils/cjs/index.cjs +4 -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/_virtual/_commonjsHelpers.mjs +5 -1
- package/dist/utils/esm/_virtual/lodash.mjs +3 -0
- package/dist/utils/esm/index.mjs +4 -6
- package/dist/utils/esm/randomId/randomId.mjs +4 -0
- package/dist/utils/lib/index.d.ts +3 -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/dist/zustand/cjs/index.cjs +2 -0
- package/dist/zustand/esm/index.mjs +3 -1
- package/dist/zustand/lib/index.d.ts +1 -0
- package/package.json +13 -2
- package/dist/.bundled/jsonforms/cjs/_virtual/lodash.cjs +0 -5
- package/dist/.bundled/jsonforms/cjs/_virtual/lodash2.cjs +0 -4
- package/dist/.bundled/jsonforms/cjs/_virtual/map.cjs +0 -6
- package/dist/.bundled/jsonforms/cjs/_virtual/union.cjs +0 -6
- package/dist/.bundled/jsonforms/esm/_virtual/lodash.mjs +0 -5
- package/dist/.bundled/jsonforms/esm/_virtual/lodash2.mjs +0 -4
- package/dist/.bundled/jsonforms/esm/_virtual/map.mjs +0 -7
- package/dist/.bundled/jsonforms/esm/_virtual/union.mjs +0 -7
- package/dist/.external/cjs/lodash@4.17.23/lodash/_arrayIncludesWith.cjs +0 -20
- package/dist/.external/cjs/lodash@4.17.23/lodash/_baseMap.cjs +0 -21
- package/dist/.external/cjs/lodash@4.17.23/lodash/_baseUniq.cjs +0 -59
- package/dist/.external/cjs/lodash@4.17.23/lodash/_createSet.cjs +0 -19
- package/dist/.external/cjs/lodash@4.17.23/lodash/map.cjs +0 -20
- package/dist/.external/cjs/lodash@4.17.23/lodash/union.cjs +0 -19
- package/dist/.external/esm/lodash@4.17.23/lodash/_arrayIncludesWith.mjs +0 -20
- package/dist/.external/esm/lodash@4.17.23/lodash/_baseMap.mjs +0 -21
- package/dist/.external/esm/lodash@4.17.23/lodash/_baseUniq.mjs +0 -59
- package/dist/.external/esm/lodash@4.17.23/lodash/_createSet.mjs +0 -19
- package/dist/.external/esm/lodash@4.17.23/lodash/map.mjs +0 -20
- package/dist/.external/esm/lodash@4.17.23/lodash/union.mjs +0 -19
- package/dist/constants/cjs/_virtual/index.cjs +0 -27
- package/dist/constants/cjs/_virtual/index2.cjs +0 -27
- package/dist/constants/cjs/_virtual/index3.cjs +0 -4
- package/dist/constants/esm/_virtual/index.mjs +0 -27
- package/dist/constants/esm/_virtual/index2.mjs +0 -27
- package/dist/constants/esm/_virtual/index3.mjs +0 -4
- package/dist/constants/esm/_virtual/index4.mjs +0 -4
- 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/cjs/_virtual/_commonjsHelpers.cjs +0 -8
- package/dist/core/cjs/_virtual/_nodeUtil.cjs +0 -4
- package/dist/core/cjs/_virtual/isEqual.cjs +0 -6
- package/dist/core/cjs/_virtual/lodash.cjs +0 -5
- package/dist/core/cjs/_virtual/lodash2.cjs +0 -4
- 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/esm/_virtual/_commonjsHelpers.mjs +0 -8
- package/dist/core/esm/_virtual/_nodeUtil.mjs +0 -4
- package/dist/core/esm/_virtual/isBuffer.mjs +0 -4
- package/dist/core/esm/_virtual/isEqual.mjs +0 -7
- package/dist/core/esm/_virtual/lodash.mjs +0 -5
- package/dist/core/esm/_virtual/lodash2.mjs +0 -4
- 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/hooks/utils/useStreamingData.d.ts +0 -193
- 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/jsonforms/cjs/_virtual/_cloneBuffer.cjs +0 -4
- package/dist/jsonforms/cjs/_virtual/_nodeUtil.cjs +0 -4
- package/dist/jsonforms/cjs/_virtual/isBuffer.cjs +0 -4
- package/dist/jsonforms/cjs/_virtual/isEmpty.cjs +0 -6
- package/dist/jsonforms/cjs/_virtual/lodash.cjs +0 -5
- package/dist/jsonforms/cjs/_virtual/lodash2.cjs +0 -4
- package/dist/jsonforms/cjs/_virtual/map.cjs +0 -6
- package/dist/jsonforms/cjs/_virtual/merge.cjs +0 -6
- package/dist/jsonforms/cjs/_virtual/range.cjs +0 -6
- package/dist/jsonforms/cjs/_virtual/startCase.cjs +0 -6
- package/dist/jsonforms/cjs/_virtual/union.cjs +0 -6
- package/dist/jsonforms/esm/_virtual/_cloneBuffer.mjs +0 -4
- package/dist/jsonforms/esm/_virtual/_commonjsHelpers.mjs +0 -8
- package/dist/jsonforms/esm/_virtual/_nodeUtil.mjs +0 -4
- package/dist/jsonforms/esm/_virtual/isBuffer.mjs +0 -4
- package/dist/jsonforms/esm/_virtual/isEmpty.mjs +0 -7
- package/dist/jsonforms/esm/_virtual/lodash.mjs +0 -5
- package/dist/jsonforms/esm/_virtual/lodash2.mjs +0 -4
- package/dist/jsonforms/esm/_virtual/map.mjs +0 -7
- package/dist/jsonforms/esm/_virtual/merge.mjs +0 -7
- package/dist/jsonforms/esm/_virtual/range.mjs +0 -7
- package/dist/jsonforms/esm/_virtual/startCase.mjs +0 -7
- package/dist/jsonforms/esm/_virtual/union.mjs +0 -7
- 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,16 +0,0 @@
|
|
|
1
|
-
import { convertToFormData, createFetchParams, urlJoin, parseResponse } from "fastapi-rtk/utils";
|
|
2
|
-
const formUpdateItem = async (path, id, data, options) => {
|
|
3
|
-
const formData = convertToFormData(data);
|
|
4
|
-
const { fetchPath, options: fetchOptions } = createFetchParams({
|
|
5
|
-
path: urlJoin(path, id.toString()),
|
|
6
|
-
method: "PUT",
|
|
7
|
-
options
|
|
8
|
-
});
|
|
9
|
-
delete fetchOptions["headers"]["Content-Type"];
|
|
10
|
-
fetchOptions["body"] = formData;
|
|
11
|
-
const response = await fetch(fetchPath, fetchOptions);
|
|
12
|
-
return await parseResponse(response);
|
|
13
|
-
};
|
|
14
|
-
export {
|
|
15
|
-
formUpdateItem
|
|
16
|
-
};
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { createFetchParams, parseResponse } from "fastapi-rtk/utils";
|
|
2
|
-
const getInfo = async (path, options) => {
|
|
3
|
-
const { fetchPath, options: fetchOptions } = createFetchParams({ path, method: "GET", options });
|
|
4
|
-
const response = await fetch(fetchPath, fetchOptions);
|
|
5
|
-
return await parseResponse(response);
|
|
6
|
-
};
|
|
7
|
-
export {
|
|
8
|
-
getInfo
|
|
9
|
-
};
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { createFetchParams, urlJoin, parseResponse } from "fastapi-rtk/utils";
|
|
2
|
-
const getItem = async (path, id, options) => {
|
|
3
|
-
const { fetchPath, options: fetchOptions } = createFetchParams({
|
|
4
|
-
path: urlJoin(path, id.toString()),
|
|
5
|
-
method: "GET",
|
|
6
|
-
options
|
|
7
|
-
});
|
|
8
|
-
const response = await fetch(fetchPath, fetchOptions);
|
|
9
|
-
return await parseResponse(response);
|
|
10
|
-
};
|
|
11
|
-
export {
|
|
12
|
-
getItem
|
|
13
|
-
};
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { createFetchParams, parseResponse } from "fastapi-rtk/utils";
|
|
2
|
-
const getItems = async (path, queryParams, options) => {
|
|
3
|
-
const { fetchPath, options: fetchOptions } = createFetchParams({ path, method: "GET", queryParams, options });
|
|
4
|
-
const response = await fetch(fetchPath, fetchOptions);
|
|
5
|
-
return await parseResponse(response);
|
|
6
|
-
};
|
|
7
|
-
export {
|
|
8
|
-
getItems
|
|
9
|
-
};
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { createFetchParams, urlJoin, parseResponse } from "fastapi-rtk/utils";
|
|
2
|
-
const updateItem = async (path, id, data, options) => {
|
|
3
|
-
const { fetchPath, options: fetchOptions } = createFetchParams({
|
|
4
|
-
path: urlJoin(path, id.toString()),
|
|
5
|
-
method: "PUT",
|
|
6
|
-
body: data,
|
|
7
|
-
options
|
|
8
|
-
});
|
|
9
|
-
const response = await fetch(fetchPath, fetchOptions);
|
|
10
|
-
return await parseResponse(response);
|
|
11
|
-
};
|
|
12
|
-
export {
|
|
13
|
-
updateItem
|
|
14
|
-
};
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import { createFetchParams, urlJoin, parseResponse } from "fastapi-rtk/utils";
|
|
2
|
-
const uploadItems = async (path, file, { delimiter, quotechar } = {}) => {
|
|
3
|
-
const formData = new FormData();
|
|
4
|
-
formData.append("file", file);
|
|
5
|
-
const queryParams = {};
|
|
6
|
-
if (delimiter) {
|
|
7
|
-
queryParams.delimiter = delimiter;
|
|
8
|
-
}
|
|
9
|
-
if (quotechar) {
|
|
10
|
-
queryParams.quotechar = quotechar;
|
|
11
|
-
}
|
|
12
|
-
const { fetchPath, options } = createFetchParams({
|
|
13
|
-
path: urlJoin(path, "/upload"),
|
|
14
|
-
method: "POST",
|
|
15
|
-
queryParams
|
|
16
|
-
});
|
|
17
|
-
const response = await fetch(fetchPath, {
|
|
18
|
-
...options,
|
|
19
|
-
headers: void 0,
|
|
20
|
-
body: formData
|
|
21
|
-
});
|
|
22
|
-
return await parseResponse(response);
|
|
23
|
-
};
|
|
24
|
-
export {
|
|
25
|
-
uploadItems
|
|
26
|
-
};
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { createFetchParams, urlJoin, parseResponse } from "fastapi-rtk/utils";
|
|
2
|
-
const postBulk = async (path, handler, data, options) => {
|
|
3
|
-
const { fetchPath, options: fetchOptions } = createFetchParams({
|
|
4
|
-
path: urlJoin(path, "/bulk", handler),
|
|
5
|
-
method: "POST",
|
|
6
|
-
body: data,
|
|
7
|
-
options
|
|
8
|
-
});
|
|
9
|
-
const response = await fetch(fetchPath, fetchOptions);
|
|
10
|
-
return await parseResponse(response);
|
|
11
|
-
};
|
|
12
|
-
export {
|
|
13
|
-
postBulk
|
|
14
|
-
};
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
import { LANG_LOCAL_STORAGE_PROPS, MRT_LOCALIZATION_IMPORT_MAP } from "fastapi-rtk/constants";
|
|
2
|
-
import { FastAPIRTKLogger } from "fastapi-rtk/utils";
|
|
3
|
-
import { useLocalStorage, useSetState } from "@mantine/hooks";
|
|
4
|
-
import { useCallback, useEffect } from "react";
|
|
5
|
-
import { useTranslation } from "../../../../../.external/esm/react-i18next@15.7.4_i18next@25.8.0_typescript@5.9.3__react-dom@19.2.3_react@19.2.3__react@19.2.3_typescript@5.9.3/react-i18next/dist/es/useTranslation.mjs";
|
|
6
|
-
const useProvideLang = (baseMRTLocalization = {}) => {
|
|
7
|
-
const translation = useTranslation();
|
|
8
|
-
const [localStorageLanguage, setLocalStorageLanguage] = useLocalStorage(LANG_LOCAL_STORAGE_PROPS);
|
|
9
|
-
const setLanguage = useCallback(
|
|
10
|
-
(lng) => {
|
|
11
|
-
translation.i18n.changeLanguage(lng).then(() => setLocalStorageLanguage(lng));
|
|
12
|
-
},
|
|
13
|
-
[setLocalStorageLanguage, translation.i18n]
|
|
14
|
-
);
|
|
15
|
-
const [MRTLocalization, setMRTLocalization] = useSetState(baseMRTLocalization);
|
|
16
|
-
useEffect(() => {
|
|
17
|
-
if (!translation.i18n.language) {
|
|
18
|
-
return;
|
|
19
|
-
}
|
|
20
|
-
const language = translation.i18n.language;
|
|
21
|
-
if (!(MRTLocalization == null ? void 0 : MRTLocalization[language])) {
|
|
22
|
-
if (!MRT_LOCALIZATION_IMPORT_MAP[language]) {
|
|
23
|
-
FastAPIRTKLogger.error(
|
|
24
|
-
`No localization found for '${language}', consider adding it yourself using 'MRTLocalization' prop within the 'langProps' in 'Provider' component. See here for the keys: https://github.com/KevinVandy/mantine-react-table/blob/v2/packages/mantine-react-table/src/locales/en.ts`
|
|
25
|
-
);
|
|
26
|
-
return;
|
|
27
|
-
}
|
|
28
|
-
MRT_LOCALIZATION_IMPORT_MAP[language]().then((languagePack) => setMRTLocalization({ [language]: languagePack })).catch(() => FastAPIRTKLogger.error(`Failed to load localization for ${language}`));
|
|
29
|
-
}
|
|
30
|
-
}, [translation.i18n.language]);
|
|
31
|
-
return {
|
|
32
|
-
currentLanguage: translation.i18n.language,
|
|
33
|
-
setLanguage,
|
|
34
|
-
translation,
|
|
35
|
-
useTranslation,
|
|
36
|
-
currentMRTLocalization: MRTLocalization[translation.i18n.language],
|
|
37
|
-
MRTLocalization,
|
|
38
|
-
setMRTLocalization,
|
|
39
|
-
localStorageLanguage,
|
|
40
|
-
setLocalStorageLanguage
|
|
41
|
-
};
|
|
42
|
-
};
|
|
43
|
-
export {
|
|
44
|
-
useProvideLang
|
|
45
|
-
};
|
|
@@ -1,99 +0,0 @@
|
|
|
1
|
-
import { urlJoin, createFetchParams } from "fastapi-rtk/utils";
|
|
2
|
-
async function authSignin(baseUrl, { username, password }) {
|
|
3
|
-
const formData = new FormData();
|
|
4
|
-
formData.append("username", username);
|
|
5
|
-
formData.append("password", password);
|
|
6
|
-
const { fetchPath, options } = createFetchParams({
|
|
7
|
-
path: urlJoin(baseUrl, "auth/login"),
|
|
8
|
-
method: "POST"
|
|
9
|
-
});
|
|
10
|
-
const res = await fetch(fetchPath, {
|
|
11
|
-
...options,
|
|
12
|
-
headers: {
|
|
13
|
-
"Content-Type": "application/x-www-form-urlencoded"
|
|
14
|
-
},
|
|
15
|
-
// #MUSTASSERT #MUSTANY URLSearchParams accepts FormData at runtime, but the DOM lib types omit that constructor overload
|
|
16
|
-
body: new URLSearchParams(formData)
|
|
17
|
-
});
|
|
18
|
-
if (!res.ok) {
|
|
19
|
-
if (res.status === 400) {
|
|
20
|
-
throw new Error("Username or password wrong.");
|
|
21
|
-
} else {
|
|
22
|
-
throw new Error("Failed to sign in.");
|
|
23
|
-
}
|
|
24
|
-
}
|
|
25
|
-
}
|
|
26
|
-
async function authSignout(baseUrl) {
|
|
27
|
-
const { fetchPath, options } = createFetchParams({
|
|
28
|
-
path: urlJoin(baseUrl, "auth/logout"),
|
|
29
|
-
method: "POST"
|
|
30
|
-
});
|
|
31
|
-
const res = await fetch(fetchPath, options);
|
|
32
|
-
if (!res.ok) {
|
|
33
|
-
throw new Error("Failed to sign out.");
|
|
34
|
-
}
|
|
35
|
-
}
|
|
36
|
-
async function authResetPassword(baseUrl, newPassword, { email }) {
|
|
37
|
-
const { fetchPath, options } = createFetchParams({
|
|
38
|
-
path: urlJoin(baseUrl, "auth/forgot-password"),
|
|
39
|
-
method: "POST",
|
|
40
|
-
body: { email }
|
|
41
|
-
});
|
|
42
|
-
const forgotPasswordRes = await fetch(fetchPath, options);
|
|
43
|
-
if (!forgotPasswordRes.ok) {
|
|
44
|
-
throw new Error("Could not request token to reset password");
|
|
45
|
-
}
|
|
46
|
-
const jsonResponse = await forgotPasswordRes.json();
|
|
47
|
-
const { token } = jsonResponse;
|
|
48
|
-
const { fetchPath: fetchPath2, options: options2 } = createFetchParams({
|
|
49
|
-
path: urlJoin(baseUrl, "auth/reset-password"),
|
|
50
|
-
method: "POST",
|
|
51
|
-
body: { token, password: newPassword }
|
|
52
|
-
});
|
|
53
|
-
const resetPasswordRes = await fetch(fetchPath2, options2);
|
|
54
|
-
if (!resetPasswordRes.ok) {
|
|
55
|
-
throw new Error("Could not reset password");
|
|
56
|
-
}
|
|
57
|
-
}
|
|
58
|
-
function authOAuthSignin(baseUrl, provider, popup, afterSigninPopup) {
|
|
59
|
-
const url = urlJoin(baseUrl, "auth/login", provider);
|
|
60
|
-
if (!popup) {
|
|
61
|
-
window.location.href = urlJoin(baseUrl, "auth/login", provider);
|
|
62
|
-
return;
|
|
63
|
-
}
|
|
64
|
-
const width = 500;
|
|
65
|
-
const height = 500;
|
|
66
|
-
const left = window.screenLeft + window.outerWidth / 2 - width / 2;
|
|
67
|
-
const top = window.screenTop + window.outerHeight / 2 - height / 2;
|
|
68
|
-
const authWindow = window.open(
|
|
69
|
-
url + "?popup=true",
|
|
70
|
-
"auth",
|
|
71
|
-
`toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=no, resizable=no, copyhistory=no, width=${width}, height=${height}, top=${top}, left=${left}`
|
|
72
|
-
);
|
|
73
|
-
const pollTimer = window.setInterval(function() {
|
|
74
|
-
if (authWindow.closed !== false) {
|
|
75
|
-
window.clearInterval(pollTimer);
|
|
76
|
-
afterSigninPopup == null ? void 0 : afterSigninPopup();
|
|
77
|
-
}
|
|
78
|
-
}, 200);
|
|
79
|
-
}
|
|
80
|
-
async function authInfo(baseUrl, signal) {
|
|
81
|
-
const { fetchPath, options } = createFetchParams({
|
|
82
|
-
path: urlJoin(baseUrl, "info/"),
|
|
83
|
-
method: "GET"
|
|
84
|
-
});
|
|
85
|
-
const res = await fetch(fetchPath, { signal, ...options });
|
|
86
|
-
const data = await res.json();
|
|
87
|
-
if (!res.ok) {
|
|
88
|
-
const errorMessage = typeof data.detail === "string" ? data.detail : JSON.stringify(data.detail, null, 2);
|
|
89
|
-
throw new Error(errorMessage);
|
|
90
|
-
}
|
|
91
|
-
return data;
|
|
92
|
-
}
|
|
93
|
-
export {
|
|
94
|
-
authInfo,
|
|
95
|
-
authOAuthSignin,
|
|
96
|
-
authResetPassword,
|
|
97
|
-
authSignin,
|
|
98
|
-
authSignout
|
|
99
|
-
};
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
import { createFetchParams, urlJoin } from "fastapi-rtk/utils";
|
|
2
|
-
async function getUser(baseUrl, signal) {
|
|
3
|
-
const { fetchPath, options } = createFetchParams({
|
|
4
|
-
path: urlJoin(baseUrl, "auth/user"),
|
|
5
|
-
method: "GET"
|
|
6
|
-
});
|
|
7
|
-
const res = await fetch(fetchPath, { signal, ...options });
|
|
8
|
-
const data = await res.json();
|
|
9
|
-
if (!res.ok) {
|
|
10
|
-
const errorMessage = typeof data.detail === "string" ? data.detail : JSON.stringify(data.detail, null, 2);
|
|
11
|
-
throw new Error(errorMessage);
|
|
12
|
-
}
|
|
13
|
-
return data;
|
|
14
|
-
}
|
|
15
|
-
async function updateUser(baseUrl, userData) {
|
|
16
|
-
const { fetchPath, options } = createFetchParams({
|
|
17
|
-
path: urlJoin(baseUrl, "auth/user"),
|
|
18
|
-
method: "PUT",
|
|
19
|
-
body: userData
|
|
20
|
-
});
|
|
21
|
-
const res = await fetch(fetchPath, options);
|
|
22
|
-
const data = await res.json();
|
|
23
|
-
if (!res.ok) {
|
|
24
|
-
const errorMessage = typeof data.detail === "string" ? data.detail : JSON.stringify(data.detail, null, 2);
|
|
25
|
-
throw new Error(errorMessage);
|
|
26
|
-
}
|
|
27
|
-
return data;
|
|
28
|
-
}
|
|
29
|
-
export {
|
|
30
|
-
getUser,
|
|
31
|
-
updateUser
|
|
32
|
-
};
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
var commonjsGlobal = typeof globalThis !== "undefined" ? globalThis : typeof window !== "undefined" ? window : typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : {};
|
|
2
|
-
function getDefaultExportFromCjs(x) {
|
|
3
|
-
return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, "default") ? x["default"] : x;
|
|
4
|
-
}
|
|
5
|
-
export {
|
|
6
|
-
commonjsGlobal,
|
|
7
|
-
getDefaultExportFromCjs
|
|
8
|
-
};
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { getDefaultExportFromCjs } from "./_commonjsHelpers.mjs";
|
|
2
|
-
import { __require as requireIsEqual } from "../../../.external/esm/lodash@4.17.23/lodash/isEqual.mjs";
|
|
3
|
-
var isEqualExports = requireIsEqual();
|
|
4
|
-
const isEqual = /* @__PURE__ */ getDefaultExportFromCjs(isEqualExports);
|
|
5
|
-
export {
|
|
6
|
-
isEqual as default
|
|
7
|
-
};
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import { FormsContextValue } from '../../../hooks/api/types';
|
|
2
|
-
export declare const FormContextViewProvider: import('react').Provider<FormsContextValue<import('../../../../../.external/lib/mantine-react-table').MRT_RowData> | null>, useFormViewProvider: (options?: import('fastapi-rtk/utils').SafeContextOptions<FormsContextValue<import('../../../../../.external/lib/mantine-react-table').MRT_RowData>>) => FormsContextValue<import('../../../../../.external/lib/mantine-react-table').MRT_RowData>;
|
|
3
|
-
export declare const FormContextAddProvider: import('react').Provider<FormsContextValue<import('../../../../../.external/lib/mantine-react-table').MRT_RowData> | null>, useFormAddProvider: (options?: import('fastapi-rtk/utils').SafeContextOptions<FormsContextValue<import('../../../../../.external/lib/mantine-react-table').MRT_RowData>>) => FormsContextValue<import('../../../../../.external/lib/mantine-react-table').MRT_RowData>;
|
|
4
|
-
export declare const FormContextEditProvider: import('react').Provider<FormsContextValue<import('../../../../../.external/lib/mantine-react-table').MRT_RowData> | null>, useFormEditProvider: (options?: import('fastapi-rtk/utils').SafeContextOptions<FormsContextValue<import('../../../../../.external/lib/mantine-react-table').MRT_RowData>>) => FormsContextValue<import('../../../../../.external/lib/mantine-react-table').MRT_RowData>;
|
|
5
|
-
export declare const FormContextDeleteProvider: import('react').Provider<FormsContextValue<import('../../../../../.external/lib/mantine-react-table').MRT_RowData> | null>, useFormDeleteProvider: (options?: import('fastapi-rtk/utils').SafeContextOptions<FormsContextValue<import('../../../../../.external/lib/mantine-react-table').MRT_RowData>>) => FormsContextValue<import('../../../../../.external/lib/mantine-react-table').MRT_RowData>;
|
|
@@ -1,90 +0,0 @@
|
|
|
1
|
-
import { convertId } from 'fastapi-rtk/utils';
|
|
2
|
-
import { InfiniteData, QueryKey, UseInfiniteQueryOptions, UseInfiniteQueryResult, UseQueryOptions, UseQueryResult } from '../../../../../.external/lib/@tanstack/react-query';
|
|
3
|
-
import { RefObject } from 'react';
|
|
4
|
-
import { createItem } from '../utils/api/createItem';
|
|
5
|
-
import { deleteItem } from '../utils/api/deleteItem';
|
|
6
|
-
import { downloadItems } from '../utils/api/downloadItems';
|
|
7
|
-
import { formCreateItem } from '../utils/api/formCreateItem';
|
|
8
|
-
import { formUpdateItem } from '../utils/api/formUpdateItem';
|
|
9
|
-
import { getInfo } from '../utils/api/getInfo';
|
|
10
|
-
import { getItem } from '../utils/api/getItem';
|
|
11
|
-
import { getItems } from '../utils/api/getItems';
|
|
12
|
-
import { updateItem } from '../utils/api/updateItem';
|
|
13
|
-
import { uploadItems } from '../utils/api/uploadItems';
|
|
14
|
-
import { postBulk } from '../utils/bulkActions/postBulkAction';
|
|
15
|
-
import { DataPage, PrimaryKey, StreamingPage } from 'fastapi-rtk/api-types';
|
|
16
|
-
import { CoreConvertedInfo, QueryParams } from '../utils/types';
|
|
17
|
-
export type { DataPage, StreamingPage };
|
|
18
|
-
/** An entry identifier as accepted by the action functions before conversion. */
|
|
19
|
-
export type EntryId = Parameters<typeof convertId>[0];
|
|
20
|
-
/** The converted `/_info` data as held by the info query, tagged with the resource path. */
|
|
21
|
-
export type InfoQueryData = CoreConvertedInfo & {
|
|
22
|
-
path: string;
|
|
23
|
-
};
|
|
24
|
-
/** The set of API functions the provider hooks dispatch through. */
|
|
25
|
-
export interface ApiFunctions {
|
|
26
|
-
getItem: typeof getItem;
|
|
27
|
-
getItems: typeof getItems;
|
|
28
|
-
createItem: typeof createItem;
|
|
29
|
-
updateItem: typeof updateItem;
|
|
30
|
-
deleteItem: typeof deleteItem;
|
|
31
|
-
downloadItems: typeof downloadItems;
|
|
32
|
-
uploadItems: typeof uploadItems;
|
|
33
|
-
getInfo: typeof getInfo;
|
|
34
|
-
formCreateItem: typeof formCreateItem;
|
|
35
|
-
formUpdateItem: typeof formUpdateItem;
|
|
36
|
-
}
|
|
37
|
-
/** The set of bulk-action functions the bulk provider dispatches through. */
|
|
38
|
-
export interface BulkFunctions {
|
|
39
|
-
postBulk: typeof postBulk;
|
|
40
|
-
}
|
|
41
|
-
/** A relation reference seeded into the query filters by the provider. */
|
|
42
|
-
export interface RelationParam {
|
|
43
|
-
foreign_key?: string;
|
|
44
|
-
type?: string;
|
|
45
|
-
id?: PrimaryKey | null;
|
|
46
|
-
id_?: PrimaryKey | null;
|
|
47
|
-
}
|
|
48
|
-
/** The arguments accepted by `useApiActions`. */
|
|
49
|
-
export interface UseApiActionsParams {
|
|
50
|
-
api: ApiFunctions;
|
|
51
|
-
path: string;
|
|
52
|
-
pathRef: RefObject<string>;
|
|
53
|
-
infoRef: RefObject<InfoQueryData | undefined>;
|
|
54
|
-
queryParamsRef: RefObject<QueryParams | null>;
|
|
55
|
-
currentLanguage: string;
|
|
56
|
-
}
|
|
57
|
-
/** The options accepted by the provider's download action. */
|
|
58
|
-
export interface DownloadActionOptions {
|
|
59
|
-
export_mode?: string;
|
|
60
|
-
delimiter?: string;
|
|
61
|
-
quotechar?: string;
|
|
62
|
-
}
|
|
63
|
-
/** The options accepted by the provider's upload action. */
|
|
64
|
-
export interface UploadActionOptions {
|
|
65
|
-
delimiter?: string;
|
|
66
|
-
quotechar?: string;
|
|
67
|
-
}
|
|
68
|
-
/** The arguments accepted by `useStreamingData`. */
|
|
69
|
-
export interface UseStreamingDataParams {
|
|
70
|
-
streamingMode: boolean;
|
|
71
|
-
dataQuery: UseQueryResult<DataPage | null>;
|
|
72
|
-
streamingQuery: UseInfiniteQueryResult<InfiniteData<StreamingPage | null>>;
|
|
73
|
-
streamingQueryKey: QueryKey;
|
|
74
|
-
}
|
|
75
|
-
/** The configuration object accepted by `useProvideApi`. */
|
|
76
|
-
export interface UseProvideApiParams {
|
|
77
|
-
path: string;
|
|
78
|
-
initialQueryParams?: QueryParams;
|
|
79
|
-
relation?: RelationParam;
|
|
80
|
-
fetchInfo?: boolean;
|
|
81
|
-
clearInfoOnRefetch?: boolean;
|
|
82
|
-
clearDataOnRefetch?: boolean;
|
|
83
|
-
refetchInfoBasedOnLang?: boolean;
|
|
84
|
-
refetchDataBasedOnLang?: boolean;
|
|
85
|
-
resetQueryParamsOnPathChange?: boolean;
|
|
86
|
-
infoQueryProps?: Partial<UseQueryOptions<InfoQueryData>>;
|
|
87
|
-
dataQueryProps?: Partial<UseQueryOptions<DataPage | null>>;
|
|
88
|
-
streamingQueryProps?: Partial<UseInfiniteQueryOptions<StreamingPage | null, Error, InfiniteData<StreamingPage | null>, QueryKey, number>>;
|
|
89
|
-
streaming?: boolean;
|
|
90
|
-
}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { BulkActionsContextValue } from '../../../hooks/api/types';
|
|
2
|
-
import { BulkFunctions } from './types';
|
|
3
|
-
export declare const defaultBulk: {
|
|
4
|
-
postBulk: (path: string, handler: string, data: import('../utils/bulkActions/types').BulkActionPayload, options?: import('../utils/api/types').FetchOptions) => Promise<import('../utils/bulkActions/types').BulkActionResponse>;
|
|
5
|
-
};
|
|
6
|
-
export declare const useProvideBulk: (params: {
|
|
7
|
-
path: string;
|
|
8
|
-
}, bulk?: BulkFunctions) => BulkActionsContextValue;
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import { FormsContextValue } from '../../../hooks/api/types';
|
|
2
|
-
export declare const useProvideForm: () => import('../../../../../.external/lib/zustand').UseBoundStore<import('../../../../../.external/lib/zustand').StoreApi<FormsContextValue<import('../../../../../.external/lib/mantine-react-table').MRT_RowData>>>;
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { MRT_RowData } from '../../../../../../.external/lib/mantine-react-table';
|
|
2
|
-
import { DownloadActionOptions, EntryId, UploadActionOptions, UseApiActionsParams } from '../types';
|
|
3
|
-
export declare const useApiActions: (params: UseApiActionsParams) => {
|
|
4
|
-
getEntry: (id: EntryId) => Promise<MRT_RowData>;
|
|
5
|
-
addEntry: (item: MRT_RowData) => Promise<MRT_RowData>;
|
|
6
|
-
updateEntry: (id: EntryId, item: MRT_RowData) => Promise<MRT_RowData>;
|
|
7
|
-
deleteEntry: (id: EntryId) => Promise<MRT_RowData | null>;
|
|
8
|
-
download: (label?: string, { export_mode, delimiter, quotechar }?: DownloadActionOptions) => Promise<void>;
|
|
9
|
-
upload: (file: File, { delimiter, quotechar }?: UploadActionOptions) => Promise<import('../../utils/api/types').UploadResponse>;
|
|
10
|
-
getItemURL: (type: string, item: string | File) => string;
|
|
11
|
-
};
|