fastapi-rtk 2.9.0 → 2.9.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/.bundled/jsonforms/cjs/_virtual/index10.cjs +2 -2
- package/dist/.bundled/jsonforms/cjs/_virtual/index6.cjs +2 -2
- package/dist/.bundled/jsonforms/cjs/_virtual/index7.cjs +2 -2
- package/dist/.bundled/jsonforms/cjs/_virtual/index8.cjs +2 -2
- package/dist/.bundled/jsonforms/cjs/_virtual/index9.cjs +2 -2
- package/dist/.bundled/jsonforms/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/_virtual/index10.mjs +2 -2
- package/dist/.bundled/jsonforms/esm/_virtual/index6.mjs +2 -2
- package/dist/.bundled/jsonforms/esm/_virtual/index7.mjs +2 -2
- package/dist/.bundled/jsonforms/esm/_virtual/index8.mjs +2 -2
- package/dist/.bundled/jsonforms/esm/_virtual/index9.mjs +2 -2
- package/dist/.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/ajv@8.17.1/ajv/dist/compile/index.cjs +1 -1
- package/dist/.external/cjs/ajv@8.17.1/ajv/dist/vocabularies/applicator/index.cjs +1 -1
- package/dist/.external/cjs/ajv@8.17.1/ajv/dist/vocabularies/core/index.cjs +1 -1
- package/dist/.external/cjs/ajv@8.17.1/ajv/dist/vocabularies/format/index.cjs +1 -1
- package/dist/.external/cjs/ajv@8.17.1/ajv/dist/vocabularies/validation/index.cjs +1 -1
- 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 -3
- 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/ajv@8.17.1/ajv/dist/compile/index.mjs +1 -1
- package/dist/.external/esm/ajv@8.17.1/ajv/dist/vocabularies/applicator/index.mjs +1 -1
- package/dist/.external/esm/ajv@8.17.1/ajv/dist/vocabularies/core/index.mjs +1 -1
- package/dist/.external/esm/ajv@8.17.1/ajv/dist/vocabularies/format/index.mjs +1 -1
- package/dist/.external/esm/ajv@8.17.1/ajv/dist/vocabularies/validation/index.mjs +1 -1
- 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 +3 -3
- 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/api/cjs/ApiProvider/hooks/useProvideApi.cjs +9 -7
- package/dist/api/cjs/ApiProvider/hooks/useProvideForm.cjs +2 -2
- package/dist/api/cjs/ApiProvider/hooks/utils/useStreamingData.cjs +2 -2
- package/dist/api/cjs/Provider/Contexts/LangContext.cjs +2 -4
- package/dist/api/cjs/Provider/Provider.cjs +4 -3
- package/dist/api/cjs/Provider/hooks/useProvideAuth.cjs +4 -3
- package/dist/api/cjs/Provider/hooks/useProvideInfo.cjs +2 -2
- package/dist/api/cjs/Provider/hooks/useProvideLang.cjs +9 -7
- package/dist/api/cjs/index.cjs +2 -0
- package/dist/api/esm/ApiProvider/hooks/useProvideApi.mjs +3 -1
- package/dist/api/esm/ApiProvider/hooks/useProvideForm.mjs +2 -2
- package/dist/api/esm/ApiProvider/hooks/utils/useStreamingData.mjs +1 -1
- package/dist/api/esm/Provider/Contexts/LangContext.mjs +3 -5
- package/dist/api/esm/Provider/Provider.mjs +2 -1
- package/dist/api/esm/Provider/hooks/useProvideAuth.mjs +2 -1
- package/dist/api/esm/Provider/hooks/useProvideInfo.mjs +1 -1
- package/dist/api/esm/Provider/hooks/useProvideLang.mjs +10 -8
- package/dist/api/esm/index.mjs +2 -0
- package/dist/api/lib/ApiProvider/hooks/types.d.ts +1 -1
- package/dist/api/lib/ApiProvider/hooks/useProvideForm.d.ts +2 -1
- package/dist/api/lib/ApiProvider/hooks/utils/useStreamingData.d.ts +26 -26
- package/dist/api/lib/ApiProvider/types.d.ts +1 -1
- package/dist/api/lib/Provider/hooks/useProvideAuth.d.ts +3 -3
- package/dist/api/lib/Provider/hooks/useProvideInfo.d.ts +1 -1
- package/dist/api/lib/Provider/types.d.ts +1 -1
- package/dist/api/lib/adapters/types.d.ts +10 -0
- package/dist/api/lib/hooks/auth/types.d.ts +1 -1
- package/dist/api/lib/index.d.ts +1 -0
- package/dist/constants/cjs/index.cjs +0 -5
- package/dist/constants/esm/index.mjs +0 -5
- 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 +6 -0
- package/dist/contexts/cjs/index.cjs +2 -0
- package/dist/contexts/esm/_virtual/_commonjsHelpers.mjs +6 -0
- package/dist/contexts/esm/_virtual/index.mjs +7 -0
- package/dist/contexts/esm/index.mjs +2 -0
- package/dist/contexts/lib/index.d.ts +1 -0
- package/dist/core/cjs/Dialogs/EditDialog.cjs +1 -2
- package/dist/core/cjs/Tables/NextGenDataGrid/components/OptimizedMRT_RowSelectColumn/zustand.cjs +2 -2
- package/dist/core/cjs/Tables/NextGenDataGrid/hooks/useOptimizations.cjs +1 -2
- package/dist/core/cjs/_virtual/_commonjsHelpers.cjs +0 -2
- 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 +5 -0
- package/dist/core/cjs/_virtual/index7.cjs +6 -0
- package/dist/core/cjs/_virtual/{isBuffer.cjs → index8.cjs} +2 -2
- package/dist/core/cjs/adapters/web/index.cjs +4 -1
- package/dist/core/cjs/adapters/web/webLocalizationAdapter.cjs +13 -0
- package/dist/core/cjs/index.cjs +10 -5
- package/dist/core/esm/Dialogs/EditDialog.mjs +2 -3
- package/dist/core/esm/Tables/NextGenDataGrid/components/OptimizedMRT_RowSelectColumn/zustand.mjs +2 -2
- package/dist/core/esm/Tables/NextGenDataGrid/hooks/useOptimizations.mjs +2 -3
- package/dist/core/esm/_virtual/_commonjsHelpers.mjs +0 -2
- 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 +5 -0
- package/dist/core/esm/_virtual/index7.mjs +7 -0
- package/dist/core/esm/_virtual/index8.mjs +4 -0
- package/dist/core/esm/adapters/web/index.mjs +4 -1
- package/dist/core/esm/adapters/web/webLocalizationAdapter.mjs +13 -0
- package/dist/core/esm/index.mjs +3 -4
- package/dist/core/lib/Tables/NextGenDataGrid/components/OptimizedMRT_RowSelectColumn/zustand.d.ts +3 -3
- package/dist/core/lib/Tables/NextGenDataGrid/types.d.ts +2 -2
- package/dist/core/lib/adapters/web/index.d.ts +2 -1
- package/dist/core/lib/adapters/web/webLocalizationAdapter.d.ts +2 -0
- package/dist/core/lib/index.d.ts +2 -2
- 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/utils/cjs/_virtual/_commonjsHelpers.cjs +4 -0
- package/dist/utils/cjs/_virtual/lodash.cjs +6 -3
- package/dist/utils/cjs/index.cjs +2 -0
- package/dist/utils/esm/_virtual/_commonjsHelpers.mjs +5 -1
- package/dist/utils/esm/_virtual/lodash.mjs +3 -0
- package/dist/utils/esm/index.mjs +2 -0
- package/dist/utils/lib/index.d.ts +2 -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 +3 -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/cjs/_virtual/index4.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/_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/_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/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
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { createElement } from "react";
|
|
2
|
+
import { useSSR } from "./useSSR.mjs";
|
|
3
|
+
import { composeInitialProps } from "./context.mjs";
|
|
4
|
+
import { getDisplayName } from "./utils.mjs";
|
|
5
|
+
const withSSR = () => function Extend(WrappedComponent) {
|
|
6
|
+
function I18nextWithSSR({
|
|
7
|
+
initialI18nStore,
|
|
8
|
+
initialLanguage,
|
|
9
|
+
...rest
|
|
10
|
+
}) {
|
|
11
|
+
useSSR(initialI18nStore, initialLanguage);
|
|
12
|
+
return createElement(WrappedComponent, {
|
|
13
|
+
...rest
|
|
14
|
+
});
|
|
15
|
+
}
|
|
16
|
+
I18nextWithSSR.getInitialProps = composeInitialProps(WrappedComponent);
|
|
17
|
+
I18nextWithSSR.displayName = `withI18nextSSR(${getDisplayName(WrappedComponent)})`;
|
|
18
|
+
I18nextWithSSR.WrappedComponent = WrappedComponent;
|
|
19
|
+
return I18nextWithSSR;
|
|
20
|
+
};
|
|
21
|
+
export {
|
|
22
|
+
withSSR
|
|
23
|
+
};
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { forwardRef, createElement } from "react";
|
|
2
|
+
import { useTranslation } from "./useTranslation.mjs";
|
|
3
|
+
import { getDisplayName } from "./utils.mjs";
|
|
4
|
+
const withTranslation = (ns, options = {}) => function Extend(WrappedComponent) {
|
|
5
|
+
function I18nextWithTranslation({
|
|
6
|
+
forwardedRef,
|
|
7
|
+
...rest
|
|
8
|
+
}) {
|
|
9
|
+
const [t, i18n, ready] = useTranslation(ns, {
|
|
10
|
+
...rest,
|
|
11
|
+
keyPrefix: options.keyPrefix
|
|
12
|
+
});
|
|
13
|
+
const passDownProps = {
|
|
14
|
+
...rest,
|
|
15
|
+
t,
|
|
16
|
+
i18n,
|
|
17
|
+
tReady: ready
|
|
18
|
+
};
|
|
19
|
+
if (options.withRef && forwardedRef) {
|
|
20
|
+
passDownProps.ref = forwardedRef;
|
|
21
|
+
} else if (!options.withRef && forwardedRef) {
|
|
22
|
+
passDownProps.forwardedRef = forwardedRef;
|
|
23
|
+
}
|
|
24
|
+
return createElement(WrappedComponent, passDownProps);
|
|
25
|
+
}
|
|
26
|
+
I18nextWithTranslation.displayName = `withI18nextTranslation(${getDisplayName(WrappedComponent)})`;
|
|
27
|
+
I18nextWithTranslation.WrappedComponent = WrappedComponent;
|
|
28
|
+
const forwardRef$1 = (props, ref) => createElement(I18nextWithTranslation, Object.assign({}, props, {
|
|
29
|
+
forwardedRef: ref
|
|
30
|
+
}));
|
|
31
|
+
return options.withRef ? forwardRef(forwardRef$1) : I18nextWithTranslation;
|
|
32
|
+
};
|
|
33
|
+
export {
|
|
34
|
+
withTranslation
|
|
35
|
+
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { __module as toposort } from "../../../../core/esm/_virtual/
|
|
1
|
+
import { __module as toposort } from "../../../../core/esm/_virtual/index8.mjs";
|
|
2
2
|
var hasRequiredToposort;
|
|
3
3
|
function requireToposort() {
|
|
4
4
|
if (hasRequiredToposort) return toposort.exports;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
var voidElements;
|
|
2
|
+
var hasRequiredVoidElements;
|
|
3
|
+
function requireVoidElements() {
|
|
4
|
+
if (hasRequiredVoidElements) return voidElements;
|
|
5
|
+
hasRequiredVoidElements = 1;
|
|
6
|
+
voidElements = {
|
|
7
|
+
"area": true,
|
|
8
|
+
"base": true,
|
|
9
|
+
"br": true,
|
|
10
|
+
"col": true,
|
|
11
|
+
"embed": true,
|
|
12
|
+
"hr": true,
|
|
13
|
+
"img": true,
|
|
14
|
+
"input": true,
|
|
15
|
+
"link": true,
|
|
16
|
+
"meta": true,
|
|
17
|
+
"param": true,
|
|
18
|
+
"source": true,
|
|
19
|
+
"track": true,
|
|
20
|
+
"wbr": true
|
|
21
|
+
};
|
|
22
|
+
return voidElements;
|
|
23
|
+
}
|
|
24
|
+
export {
|
|
25
|
+
requireVoidElements as __require
|
|
26
|
+
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { p as propertyExprExports } from "../../../../core/esm/_virtual/
|
|
2
|
-
import { t as tinyCaseExports } from "../../../../core/esm/_virtual/
|
|
3
|
-
import toposort from "../../../../core/esm/_virtual/
|
|
1
|
+
import { p as propertyExprExports } from "../../../../core/esm/_virtual/index5.mjs";
|
|
2
|
+
import { t as tinyCaseExports } from "../../../../core/esm/_virtual/index6.mjs";
|
|
3
|
+
import toposort from "../../../../core/esm/_virtual/index7.mjs";
|
|
4
4
|
const toString = Object.prototype.toString;
|
|
5
5
|
const errorToString = Error.prototype.toString;
|
|
6
6
|
const regExpToString = RegExp.prototype.toString;
|
package/dist/.external/esm/zustand@5.0.10_@types_react@19.2.9_react@19.2.3/zustand/esm/react.mjs
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import
|
|
1
|
+
import React from "react";
|
|
2
2
|
import { createStore } from "./vanilla.mjs";
|
|
3
3
|
const identity = (arg) => arg;
|
|
4
4
|
function useStore(api, selector = identity) {
|
|
5
|
-
const slice =
|
|
5
|
+
const slice = React.useSyncExternalStore(
|
|
6
6
|
api.subscribe,
|
|
7
|
-
|
|
8
|
-
|
|
7
|
+
React.useCallback(() => selector(api.getState()), [api, selector]),
|
|
8
|
+
React.useCallback(() => selector(api.getInitialState()), [api, selector])
|
|
9
9
|
);
|
|
10
|
-
|
|
10
|
+
React.useDebugValue(slice);
|
|
11
11
|
return slice;
|
|
12
12
|
}
|
|
13
13
|
const createImpl = (createState) => {
|
|
@@ -3,7 +3,9 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
|
3
3
|
const React = require("react");
|
|
4
4
|
const contexts = require("fastapi-rtk/contexts");
|
|
5
5
|
const utils = require("fastapi-rtk/utils");
|
|
6
|
-
const
|
|
6
|
+
const utils$1 = require("../../../../.external/cjs/@tanstack_query-core@5.90.20/@tanstack/query-core/build/modern/utils.cjs");
|
|
7
|
+
const useQuery = require("../../../../.external/cjs/@tanstack_react-query@5.90.20_react@19.2.3/@tanstack/react-query/build/modern/useQuery.cjs");
|
|
8
|
+
const useInfiniteQuery = require("../../../../.external/cjs/@tanstack_react-query@5.90.20_react@19.2.3/@tanstack/react-query/build/modern/useInfiniteQuery.cjs");
|
|
7
9
|
const AdaptersContext = require("../../adapters/AdaptersContext.cjs");
|
|
8
10
|
const createItem = require("../../fetchers/createItem.cjs");
|
|
9
11
|
const deleteItem = require("../../fetchers/deleteItem.cjs");
|
|
@@ -112,7 +114,7 @@ function useProvideApi(params, api = defaultApi) {
|
|
|
112
114
|
const [error, setError] = React.useState();
|
|
113
115
|
const resetError = React.useCallback(() => setError(void 0), []);
|
|
114
116
|
const { currentLanguage } = contexts.useLang();
|
|
115
|
-
const infoQuery =
|
|
117
|
+
const infoQuery = useQuery.useQuery({
|
|
116
118
|
queryKey: [`info`, path, refetchInfoBasedOnLang ? currentLanguage : ""],
|
|
117
119
|
queryFn: ({ signal }) => api.getInfo(adapters, utils.urlJoin(path, "_info"), { signal, headers: { "Accept-Language": currentLanguage } }).then((data) => {
|
|
118
120
|
const converted = convertInfo.convertInfo(data);
|
|
@@ -122,7 +124,7 @@ function useProvideApi(params, api = defaultApi) {
|
|
|
122
124
|
return { ...converted, path };
|
|
123
125
|
}),
|
|
124
126
|
// #MUSTASSERT #MUSTANY null clears the placeholder at runtime; react-query's placeholderData type does not include null
|
|
125
|
-
placeholderData: clearInfoOnRefetch ? null :
|
|
127
|
+
placeholderData: clearInfoOnRefetch ? null : utils$1.keepPreviousData,
|
|
126
128
|
enabled: fetchInfo,
|
|
127
129
|
retry: false,
|
|
128
130
|
refetchOnMount: false,
|
|
@@ -131,7 +133,7 @@ function useProvideApi(params, api = defaultApi) {
|
|
|
131
133
|
...infoQueryProps
|
|
132
134
|
});
|
|
133
135
|
const infoRef = useLatest.useLatest(infoQuery.data);
|
|
134
|
-
const dataQuery =
|
|
136
|
+
const dataQuery = useQuery.useQuery({
|
|
135
137
|
queryKey: [
|
|
136
138
|
`data`,
|
|
137
139
|
memoizedQueryParamsPathRef.current,
|
|
@@ -154,7 +156,7 @@ function useProvideApi(params, api = defaultApi) {
|
|
|
154
156
|
})
|
|
155
157
|
) : null,
|
|
156
158
|
// #MUSTASSERT #MUSTANY null clears the placeholder at runtime; react-query's placeholderData type does not include null
|
|
157
|
-
placeholderData: clearDataOnRefetch ? null :
|
|
159
|
+
placeholderData: clearDataOnRefetch ? null : utils$1.keepPreviousData,
|
|
158
160
|
retry: false,
|
|
159
161
|
enabled: !streamingMode,
|
|
160
162
|
...dataQueryProps
|
|
@@ -169,7 +171,7 @@ function useProvideApi(params, api = defaultApi) {
|
|
|
169
171
|
],
|
|
170
172
|
[currentLanguage, refetchDataBasedOnLang, streamingQuerySignature]
|
|
171
173
|
);
|
|
172
|
-
const streamingQuery =
|
|
174
|
+
const streamingQuery = useInfiniteQuery.useInfiniteQuery({
|
|
173
175
|
queryKey: streamingQueryKey,
|
|
174
176
|
queryFn: ({ signal, pageParam }) => {
|
|
175
177
|
if (!memoizedQueryParams) {
|
|
@@ -207,7 +209,7 @@ function useProvideApi(params, api = defaultApi) {
|
|
|
207
209
|
return currentPage + 1;
|
|
208
210
|
},
|
|
209
211
|
// #MUSTASSERT #MUSTANY null clears the placeholder at runtime; react-query's placeholderData type does not include null
|
|
210
|
-
placeholderData: clearDataOnRefetch ? null :
|
|
212
|
+
placeholderData: clearDataOnRefetch ? null : utils$1.keepPreviousData,
|
|
211
213
|
retry: false,
|
|
212
214
|
enabled: streamingMode && !!memoizedQueryParams,
|
|
213
215
|
...streamingQueryProps
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
3
|
const constants = require("fastapi-rtk/constants");
|
|
4
|
+
const zustand = require("fastapi-rtk/zustand");
|
|
4
5
|
const React = require("react");
|
|
5
|
-
const react = require("../../../../.external/cjs/zustand@5.0.10_@types_react@19.2.9_react@19.2.3/zustand/esm/react.cjs");
|
|
6
6
|
const useProvideForm = () => {
|
|
7
7
|
const [storeAdd] = React.useState(
|
|
8
|
-
() =>
|
|
8
|
+
() => zustand.zs.create((set, get) => ({
|
|
9
9
|
opened: false,
|
|
10
10
|
getOpened: () => get().opened,
|
|
11
11
|
setOpened: (newOpened) => set({ opened: newOpened }),
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
-
const
|
|
3
|
+
const QueryClientProvider = require("../../../../../.external/cjs/@tanstack_react-query@5.90.20_react@19.2.3/@tanstack/react-query/build/modern/QueryClientProvider.cjs");
|
|
4
4
|
const React = require("react");
|
|
5
5
|
const useStreamingData = (params) => {
|
|
6
6
|
var _a;
|
|
7
7
|
const { streamingMode, dataQuery, streamingQuery, streamingQueryKey } = params;
|
|
8
|
-
const queryClient =
|
|
8
|
+
const queryClient = QueryClientProvider.useQueryClient();
|
|
9
9
|
const streamingPages = React.useMemo(() => {
|
|
10
10
|
var _a2;
|
|
11
11
|
return ((_a2 = streamingQuery.data) == null ? void 0 : _a2.pages) || [];
|
|
@@ -10,8 +10,6 @@ const React = require("react");
|
|
|
10
10
|
const AdaptersContext = require("../../adapters/AdaptersContext.cjs");
|
|
11
11
|
const de = require("../../translations/de.cjs");
|
|
12
12
|
const useProvideLang = require("../hooks/useProvideLang.cjs");
|
|
13
|
-
const I18nextProvider = require("../../../../.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");
|
|
14
|
-
const initReactI18next = require("../../../../.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/initReactI18next.cjs");
|
|
15
13
|
const getI18n = (props = {}) => {
|
|
16
14
|
var _a, _b, _c, _d;
|
|
17
15
|
const { initProps, callback, translations } = props;
|
|
@@ -21,7 +19,7 @@ const getI18n = (props = {}) => {
|
|
|
21
19
|
return acc;
|
|
22
20
|
}, {});
|
|
23
21
|
const initResources = (initProps == null ? void 0 : initProps.resources) ?? {};
|
|
24
|
-
i18n.use(
|
|
22
|
+
i18n.use(contexts.i18nr.initReactI18next).init({
|
|
25
23
|
...initProps,
|
|
26
24
|
// the translations
|
|
27
25
|
// (tip move them in a JSON file and import them,
|
|
@@ -84,7 +82,7 @@ const LangContextProvider = (props) => {
|
|
|
84
82
|
React.useEffect(() => {
|
|
85
83
|
i18nRef.current.changeLanguage(language);
|
|
86
84
|
}, [language]);
|
|
87
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
85
|
+
return /* @__PURE__ */ jsxRuntime.jsx(contexts.i18nr.I18nextProvider, { i18n: i18nRef.current, children: /* @__PURE__ */ jsxRuntime.jsx(InnerLangContextProvider, { MRTLocalization: langProps == null ? void 0 : langProps.MRTLocalization, ...contextProps, children }) });
|
|
88
86
|
};
|
|
89
87
|
Object.defineProperty(exports, "InnerInnerLangContextProvider", {
|
|
90
88
|
enumerable: true,
|
|
@@ -4,7 +4,8 @@ const jsxRuntime = require("react/jsx-runtime");
|
|
|
4
4
|
const constants = require("fastapi-rtk/constants");
|
|
5
5
|
const utils = require("fastapi-rtk/utils");
|
|
6
6
|
const zustand = require("fastapi-rtk/zustand");
|
|
7
|
-
const
|
|
7
|
+
const queryClient = require("../../../.external/cjs/@tanstack_query-core@5.90.20/@tanstack/query-core/build/modern/queryClient.cjs");
|
|
8
|
+
const QueryClientProvider = require("../../../.external/cjs/@tanstack_react-query@5.90.20_react@19.2.3/@tanstack/react-query/build/modern/QueryClientProvider.cjs");
|
|
8
9
|
const React = require("react");
|
|
9
10
|
const AdaptersContext = require("../adapters/AdaptersContext.cjs");
|
|
10
11
|
const AuthContext = require("./Contexts/AuthContext.cjs");
|
|
@@ -31,8 +32,8 @@ function InnerProvider(props) {
|
|
|
31
32
|
);
|
|
32
33
|
}
|
|
33
34
|
const Provider = (props) => {
|
|
34
|
-
const [queryClient] = React.useState(() => new
|
|
35
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
35
|
+
const [queryClient$1] = React.useState(() => new queryClient.QueryClient(props.queryClientProps));
|
|
36
|
+
return /* @__PURE__ */ jsxRuntime.jsx(QueryClientProvider.QueryClientProvider, { client: queryClient$1, children: /* @__PURE__ */ jsxRuntime.jsx(AdaptersContext.AdaptersProvider, { value: props.adapters, children: /* @__PURE__ */ jsxRuntime.jsx(InnerProvider, { ...props }) }) });
|
|
36
37
|
};
|
|
37
38
|
const withProvider = (providerProps, Component, options = {}) => {
|
|
38
39
|
const { displayName, forwardRef: shouldForwardRef = false } = options;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
-
const
|
|
3
|
+
const useQuery = require("../../../../.external/cjs/@tanstack_react-query@5.90.20_react@19.2.3/@tanstack/react-query/build/modern/useQuery.cjs");
|
|
4
|
+
const QueryClientProvider = require("../../../../.external/cjs/@tanstack_react-query@5.90.20_react@19.2.3/@tanstack/react-query/build/modern/QueryClientProvider.cjs");
|
|
4
5
|
const React = require("react");
|
|
5
6
|
const AdaptersContext = require("../../adapters/AdaptersContext.cjs");
|
|
6
7
|
const authFetch = require("../../auth/authFetch.cjs");
|
|
@@ -14,9 +15,9 @@ const defaultAuth = {
|
|
|
14
15
|
oauthSignin: authFetch.authOAuthSignin
|
|
15
16
|
};
|
|
16
17
|
function useProvideAuth(baseURL, authQueryProps, auth = defaultAuth) {
|
|
17
|
-
const queryClient =
|
|
18
|
+
const queryClient = QueryClientProvider.useQueryClient();
|
|
18
19
|
const adapters = AdaptersContext.useAdapters();
|
|
19
|
-
const query =
|
|
20
|
+
const query = useQuery.useQuery({
|
|
20
21
|
queryKey: ["user"],
|
|
21
22
|
queryFn: ({ signal }) => userCRUD.getUser(adapters, baseURL, signal),
|
|
22
23
|
retry: false,
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
-
const
|
|
3
|
+
const useQuery = require("../../../../.external/cjs/@tanstack_react-query@5.90.20_react@19.2.3/@tanstack/react-query/build/modern/useQuery.cjs");
|
|
4
4
|
const React = require("react");
|
|
5
5
|
const AdaptersContext = require("../../adapters/AdaptersContext.cjs");
|
|
6
6
|
const authFetch = require("../../auth/authFetch.cjs");
|
|
7
7
|
const defaultInfo = { getInfo: authFetch.authInfo };
|
|
8
8
|
function useProvideInfo(baseUrl, auth, info = defaultInfo) {
|
|
9
9
|
const adapters = AdaptersContext.useAdapters();
|
|
10
|
-
const query =
|
|
10
|
+
const query = useQuery.useQuery({
|
|
11
11
|
queryKey: ["info"],
|
|
12
12
|
queryFn: ({ signal }) => info.getInfo(adapters, baseUrl, signal),
|
|
13
13
|
enabled: false
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
3
|
const constants = require("fastapi-rtk/constants");
|
|
4
|
+
const contexts = require("fastapi-rtk/contexts");
|
|
4
5
|
const utils = require("fastapi-rtk/utils");
|
|
5
6
|
const React = require("react");
|
|
6
7
|
const AdaptersContext = require("../../adapters/AdaptersContext.cjs");
|
|
7
|
-
const useTranslation = require("../../../../.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");
|
|
8
8
|
const useProvideLang = (baseMRTLocalization = {}) => {
|
|
9
|
-
const translation =
|
|
9
|
+
const translation = contexts.i18nr.useTranslation();
|
|
10
10
|
const adapters = AdaptersContext.useAdapters();
|
|
11
11
|
const [localStorageLanguage, setStoredLanguage] = React.useState(constants.LANG_LOCAL_STORAGE_PROPS.defaultValue);
|
|
12
12
|
React.useEffect(() => {
|
|
@@ -44,20 +44,22 @@ const useProvideLang = (baseMRTLocalization = {}) => {
|
|
|
44
44
|
[]
|
|
45
45
|
);
|
|
46
46
|
React.useEffect(() => {
|
|
47
|
+
var _a;
|
|
47
48
|
if (!translation.i18n.language) {
|
|
48
49
|
return;
|
|
49
50
|
}
|
|
50
51
|
const language = translation.i18n.language;
|
|
52
|
+
const loaders = ((_a = adapters.localization) == null ? void 0 : _a.loaders) ?? {};
|
|
51
53
|
if (!(MRTLocalization == null ? void 0 : MRTLocalization[language])) {
|
|
52
|
-
|
|
54
|
+
const loader = loaders[language];
|
|
55
|
+
if (!loader) {
|
|
53
56
|
utils.FastAPIRTKLogger.error(
|
|
54
57
|
`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`
|
|
55
58
|
);
|
|
56
59
|
return;
|
|
57
60
|
}
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
setMRTLocalization(pack);
|
|
61
|
+
loader().then((languagePack) => {
|
|
62
|
+
setMRTLocalization({ [language]: languagePack });
|
|
61
63
|
}).catch(() => utils.FastAPIRTKLogger.error(`Failed to load localization for ${language}`));
|
|
62
64
|
}
|
|
63
65
|
}, [translation.i18n.language]);
|
|
@@ -65,7 +67,7 @@ const useProvideLang = (baseMRTLocalization = {}) => {
|
|
|
65
67
|
currentLanguage: translation.i18n.language,
|
|
66
68
|
setLanguage,
|
|
67
69
|
translation,
|
|
68
|
-
useTranslation:
|
|
70
|
+
useTranslation: contexts.i18nr.useTranslation,
|
|
69
71
|
currentMRTLocalization: MRTLocalization[translation.i18n.language],
|
|
70
72
|
MRTLocalization,
|
|
71
73
|
setMRTLocalization,
|
package/dist/api/cjs/index.cjs
CHANGED
|
@@ -27,6 +27,7 @@ const FormContext = require("./ApiProvider/Contexts/FormContext.cjs");
|
|
|
27
27
|
const useAuth = require("./hooks/auth/useAuth.cjs");
|
|
28
28
|
const useInfo = require("./hooks/auth/useInfo.cjs");
|
|
29
29
|
const useDidUpdate = require("./hooks/useDidUpdate.cjs");
|
|
30
|
+
const index = require("../../.external/cjs/@tanstack_react-query@5.90.20_react@19.2.3/@tanstack/react-query/build/modern/index.cjs");
|
|
30
31
|
exports.AdaptersProvider = AdaptersContext.AdaptersProvider;
|
|
31
32
|
exports.useAdapters = AdaptersContext.useAdapters;
|
|
32
33
|
exports.useAdaptersProvider = AdaptersContext.useAdaptersProvider;
|
|
@@ -73,3 +74,4 @@ exports.useFormViewProvider = FormContext.useFormViewProvider;
|
|
|
73
74
|
exports.useAuth = useAuth.useAuth;
|
|
74
75
|
exports.useInfo = useInfo.useInfo;
|
|
75
76
|
exports.useDidUpdate = useDidUpdate.useDidUpdate;
|
|
77
|
+
exports.rq = index;
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
import { useState, useRef, useMemo, useCallback, useEffect } from "react";
|
|
2
2
|
import { useLang } from "fastapi-rtk/contexts";
|
|
3
3
|
import { convertId, getItemId, urlJoin } from "fastapi-rtk/utils";
|
|
4
|
-
import {
|
|
4
|
+
import { keepPreviousData } from "../../../../.external/esm/@tanstack_query-core@5.90.20/@tanstack/query-core/build/modern/utils.mjs";
|
|
5
|
+
import { useQuery } from "../../../../.external/esm/@tanstack_react-query@5.90.20_react@19.2.3/@tanstack/react-query/build/modern/useQuery.mjs";
|
|
6
|
+
import { useInfiniteQuery } from "../../../../.external/esm/@tanstack_react-query@5.90.20_react@19.2.3/@tanstack/react-query/build/modern/useInfiniteQuery.mjs";
|
|
5
7
|
import { useAdapters } from "../../adapters/AdaptersContext.mjs";
|
|
6
8
|
import { createItem } from "../../fetchers/createItem.mjs";
|
|
7
9
|
import { deleteItem } from "../../fetchers/deleteItem.mjs";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { initialState, VIEW_MODE } from "fastapi-rtk/constants";
|
|
2
|
+
import { zs } from "fastapi-rtk/zustand";
|
|
2
3
|
import { useState } from "react";
|
|
3
|
-
import { create } from "../../../../.external/esm/zustand@5.0.10_@types_react@19.2.9_react@19.2.3/zustand/esm/react.mjs";
|
|
4
4
|
const useProvideForm = () => {
|
|
5
5
|
const [storeAdd] = useState(
|
|
6
|
-
() => create((set, get) => ({
|
|
6
|
+
() => zs.create((set, get) => ({
|
|
7
7
|
opened: false,
|
|
8
8
|
getOpened: () => get().opened,
|
|
9
9
|
setOpened: (newOpened) => set({ opened: newOpened }),
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { useQueryClient } from "@tanstack/react-query";
|
|
1
|
+
import { useQueryClient } from "../../../../../.external/esm/@tanstack_react-query@5.90.20_react@19.2.3/@tanstack/react-query/build/modern/QueryClientProvider.mjs";
|
|
2
2
|
import { useMemo, useCallback } from "react";
|
|
3
3
|
const useStreamingData = (params) => {
|
|
4
4
|
var _a;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
2
|
import { LANG_LOCAL_STORAGE_PROPS } from "fastapi-rtk/constants";
|
|
3
|
-
import { InnerInnerLangContextProvider } from "fastapi-rtk/contexts";
|
|
3
|
+
import { i18nr, InnerInnerLangContextProvider } from "fastapi-rtk/contexts";
|
|
4
4
|
import { InnerInnerLangContextProvider as InnerInnerLangContextProvider2 } from "fastapi-rtk/contexts";
|
|
5
5
|
import { parseFromValuesOrFunc } from "fastapi-rtk/utils";
|
|
6
6
|
import { useProxy } from "fastapi-rtk/zustand";
|
|
@@ -9,8 +9,6 @@ import { useRef, useState, useEffect, useMemo } from "react";
|
|
|
9
9
|
import { useAdapters } from "../../adapters/AdaptersContext.mjs";
|
|
10
10
|
import de from "../../translations/de.mjs";
|
|
11
11
|
import { useProvideLang } from "../hooks/useProvideLang.mjs";
|
|
12
|
-
import { I18nextProvider } 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/I18nextProvider.mjs";
|
|
13
|
-
import { initReactI18next } 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/initReactI18next.mjs";
|
|
14
12
|
const getI18n = (props = {}) => {
|
|
15
13
|
var _a, _b, _c, _d;
|
|
16
14
|
const { initProps, callback, translations } = props;
|
|
@@ -20,7 +18,7 @@ const getI18n = (props = {}) => {
|
|
|
20
18
|
return acc;
|
|
21
19
|
}, {});
|
|
22
20
|
const initResources = (initProps == null ? void 0 : initProps.resources) ?? {};
|
|
23
|
-
i18n.use(initReactI18next).init({
|
|
21
|
+
i18n.use(i18nr.initReactI18next).init({
|
|
24
22
|
...initProps,
|
|
25
23
|
// the translations
|
|
26
24
|
// (tip move them in a JSON file and import them,
|
|
@@ -83,7 +81,7 @@ const LangContextProvider = (props) => {
|
|
|
83
81
|
useEffect(() => {
|
|
84
82
|
i18nRef.current.changeLanguage(language);
|
|
85
83
|
}, [language]);
|
|
86
|
-
return /* @__PURE__ */ jsx(I18nextProvider, { i18n: i18nRef.current, children: /* @__PURE__ */ jsx(InnerLangContextProvider, { MRTLocalization: langProps == null ? void 0 : langProps.MRTLocalization, ...contextProps, children }) });
|
|
84
|
+
return /* @__PURE__ */ jsx(i18nr.I18nextProvider, { i18n: i18nRef.current, children: /* @__PURE__ */ jsx(InnerLangContextProvider, { MRTLocalization: langProps == null ? void 0 : langProps.MRTLocalization, ...contextProps, children }) });
|
|
87
85
|
};
|
|
88
86
|
export {
|
|
89
87
|
InnerInnerLangContextProvider2 as InnerInnerLangContextProvider,
|
|
@@ -2,7 +2,8 @@ import { jsx } from "react/jsx-runtime";
|
|
|
2
2
|
import { setDebugMode } from "fastapi-rtk/constants";
|
|
3
3
|
import { parseFromValuesOrFunc } from "fastapi-rtk/utils";
|
|
4
4
|
import { useProxy } from "fastapi-rtk/zustand";
|
|
5
|
-
import { QueryClient
|
|
5
|
+
import { QueryClient } from "../../../.external/esm/@tanstack_query-core@5.90.20/@tanstack/query-core/build/modern/queryClient.mjs";
|
|
6
|
+
import { QueryClientProvider } from "../../../.external/esm/@tanstack_react-query@5.90.20_react@19.2.3/@tanstack/react-query/build/modern/QueryClientProvider.mjs";
|
|
6
7
|
import { useState, forwardRef, useEffect } from "react";
|
|
7
8
|
import { AdaptersProvider } from "../adapters/AdaptersContext.mjs";
|
|
8
9
|
import { AuthContextProvider } from "./Contexts/AuthContext.mjs";
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { useQuery } from "../../../../.external/esm/@tanstack_react-query@5.90.20_react@19.2.3/@tanstack/react-query/build/modern/useQuery.mjs";
|
|
2
|
+
import { useQueryClient } from "../../../../.external/esm/@tanstack_react-query@5.90.20_react@19.2.3/@tanstack/react-query/build/modern/QueryClientProvider.mjs";
|
|
2
3
|
import { useState, useCallback, useMemo } from "react";
|
|
3
4
|
import { useAdapters } from "../../adapters/AdaptersContext.mjs";
|
|
4
5
|
import { authOAuthSignin, authResetPassword, authSignout, authSignin } from "../../auth/authFetch.mjs";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { useQuery } from "@tanstack/react-query";
|
|
1
|
+
import { useQuery } from "../../../../.external/esm/@tanstack_react-query@5.90.20_react@19.2.3/@tanstack/react-query/build/modern/useQuery.mjs";
|
|
2
2
|
import { useEffect } from "react";
|
|
3
3
|
import { useAdapters } from "../../adapters/AdaptersContext.mjs";
|
|
4
4
|
import { authInfo } from "../../auth/authFetch.mjs";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { LANG_LOCAL_STORAGE_PROPS
|
|
1
|
+
import { LANG_LOCAL_STORAGE_PROPS } from "fastapi-rtk/constants";
|
|
2
|
+
import { i18nr } from "fastapi-rtk/contexts";
|
|
2
3
|
import { FastAPIRTKLogger } from "fastapi-rtk/utils";
|
|
3
4
|
import { useState, useEffect, useCallback } from "react";
|
|
4
5
|
import { useAdapters } from "../../adapters/AdaptersContext.mjs";
|
|
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
6
|
const useProvideLang = (baseMRTLocalization = {}) => {
|
|
7
|
-
const translation = useTranslation();
|
|
7
|
+
const translation = i18nr.useTranslation();
|
|
8
8
|
const adapters = useAdapters();
|
|
9
9
|
const [localStorageLanguage, setStoredLanguage] = useState(LANG_LOCAL_STORAGE_PROPS.defaultValue);
|
|
10
10
|
useEffect(() => {
|
|
@@ -42,20 +42,22 @@ const useProvideLang = (baseMRTLocalization = {}) => {
|
|
|
42
42
|
[]
|
|
43
43
|
);
|
|
44
44
|
useEffect(() => {
|
|
45
|
+
var _a;
|
|
45
46
|
if (!translation.i18n.language) {
|
|
46
47
|
return;
|
|
47
48
|
}
|
|
48
49
|
const language = translation.i18n.language;
|
|
50
|
+
const loaders = ((_a = adapters.localization) == null ? void 0 : _a.loaders) ?? {};
|
|
49
51
|
if (!(MRTLocalization == null ? void 0 : MRTLocalization[language])) {
|
|
50
|
-
|
|
52
|
+
const loader = loaders[language];
|
|
53
|
+
if (!loader) {
|
|
51
54
|
FastAPIRTKLogger.error(
|
|
52
55
|
`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`
|
|
53
56
|
);
|
|
54
57
|
return;
|
|
55
58
|
}
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
setMRTLocalization(pack);
|
|
59
|
+
loader().then((languagePack) => {
|
|
60
|
+
setMRTLocalization({ [language]: languagePack });
|
|
59
61
|
}).catch(() => FastAPIRTKLogger.error(`Failed to load localization for ${language}`));
|
|
60
62
|
}
|
|
61
63
|
}, [translation.i18n.language]);
|
|
@@ -63,7 +65,7 @@ const useProvideLang = (baseMRTLocalization = {}) => {
|
|
|
63
65
|
currentLanguage: translation.i18n.language,
|
|
64
66
|
setLanguage,
|
|
65
67
|
translation,
|
|
66
|
-
useTranslation,
|
|
68
|
+
useTranslation: i18nr.useTranslation,
|
|
67
69
|
currentMRTLocalization: MRTLocalization[translation.i18n.language],
|
|
68
70
|
MRTLocalization,
|
|
69
71
|
setMRTLocalization,
|
package/dist/api/esm/index.mjs
CHANGED
|
@@ -25,6 +25,7 @@ import { FormContextAddProvider, FormContextDeleteProvider, FormContextEditProvi
|
|
|
25
25
|
import { useAuth } from "./hooks/auth/useAuth.mjs";
|
|
26
26
|
import { useInfo } from "./hooks/auth/useInfo.mjs";
|
|
27
27
|
import { useDidUpdate } from "./hooks/useDidUpdate.mjs";
|
|
28
|
+
import * as index from "../../.external/esm/@tanstack_react-query@5.90.20_react@19.2.3/@tanstack/react-query/build/modern/index.mjs";
|
|
28
29
|
export {
|
|
29
30
|
AdaptersProvider,
|
|
30
31
|
ApiProvider,
|
|
@@ -55,6 +56,7 @@ export {
|
|
|
55
56
|
getUser,
|
|
56
57
|
parseResponse,
|
|
57
58
|
postBulk,
|
|
59
|
+
index as rq,
|
|
58
60
|
updateItem,
|
|
59
61
|
updateUser,
|
|
60
62
|
uploadItems,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { convertId } from 'fastapi-rtk/utils';
|
|
2
2
|
import { EntryRow } from 'fastapi-rtk/contexts';
|
|
3
|
-
import { InfiniteData, QueryKey, UseInfiniteQueryOptions, UseInfiniteQueryResult, UseQueryOptions, UseQueryResult } from '
|
|
3
|
+
import { InfiniteData, QueryKey, UseInfiniteQueryOptions, UseInfiniteQueryResult, UseQueryOptions, UseQueryResult } from '../../../../.external/lib/@tanstack/react-query';
|
|
4
4
|
import { RefObject } from 'react';
|
|
5
5
|
import { Adapters } from '../../adapters/types';
|
|
6
6
|
import { createItem } from '../../fetchers/createItem';
|
|
@@ -1,2 +1,3 @@
|
|
|
1
|
+
import { zs } from 'fastapi-rtk/zustand';
|
|
1
2
|
import { FormsContextValue } from './types';
|
|
2
|
-
export declare const useProvideForm: () =>
|
|
3
|
+
export declare const useProvideForm: () => zs.UseBoundStore<zs.StoreApi<FormsContextValue<import('fastapi-rtk/api-types').ResultRow>>>;
|