@refinedev/core 4.47.2 → 4.49.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +3066 -2919
- package/README.md +116 -167
- package/dist/components/authenticated/index.d.cts +75 -0
- package/dist/components/authenticated/index.d.cts.map +1 -0
- package/dist/components/authenticated/index.d.mts +75 -0
- package/dist/components/authenticated/index.d.mts.map +1 -0
- package/dist/components/authenticated/index.d.ts +3 -3
- package/dist/components/authenticated/index.d.ts.map +1 -1
- package/dist/components/autoSaveIndicator/index.d.cts +24 -0
- package/dist/components/autoSaveIndicator/index.d.cts.map +1 -0
- package/dist/components/autoSaveIndicator/index.d.mts +24 -0
- package/dist/components/autoSaveIndicator/index.d.mts.map +1 -0
- package/dist/components/autoSaveIndicator/index.d.ts +21 -1
- package/dist/components/autoSaveIndicator/index.d.ts.map +1 -1
- package/dist/components/canAccess/index.d.cts +52 -0
- package/dist/components/canAccess/index.d.cts.map +1 -0
- package/dist/components/canAccess/index.d.mts +52 -0
- package/dist/components/canAccess/index.d.mts.map +1 -0
- package/dist/components/canAccess/index.d.ts +8 -7
- package/dist/components/canAccess/index.d.ts.map +1 -1
- package/dist/components/containers/index.d.cts +2 -0
- package/dist/components/containers/index.d.cts.map +1 -0
- package/dist/components/containers/index.d.mts +2 -0
- package/dist/components/containers/index.d.mts.map +1 -0
- package/dist/components/containers/index.d.ts +1 -1
- package/dist/components/containers/index.d.ts.map +1 -1
- package/dist/components/containers/refine/index.d.cts +11 -0
- package/dist/components/containers/refine/index.d.cts.map +1 -0
- package/dist/components/containers/refine/index.d.mts +11 -0
- package/dist/components/containers/refine/index.d.mts.map +1 -0
- package/dist/components/containers/refine/index.d.ts +1 -134
- package/dist/components/containers/refine/index.d.ts.map +1 -1
- package/dist/components/gh-banner/index.d.cts +3 -0
- package/dist/components/gh-banner/index.d.cts.map +1 -0
- package/dist/components/gh-banner/index.d.mts +3 -0
- package/dist/components/gh-banner/index.d.mts.map +1 -0
- package/dist/components/gh-banner/styles.d.cts +2 -0
- package/dist/components/gh-banner/styles.d.cts.map +1 -0
- package/dist/components/gh-banner/styles.d.mts +2 -0
- package/dist/components/gh-banner/styles.d.mts.map +1 -0
- package/dist/components/index.d.cts +10 -0
- package/dist/components/index.d.cts.map +1 -0
- package/dist/components/index.d.mts +10 -0
- package/dist/components/index.d.mts.map +1 -0
- package/dist/components/index.d.ts +1 -1
- package/dist/components/index.d.ts.map +1 -1
- package/dist/components/layoutWrapper/defaultLayout/index.d.cts +4 -0
- package/dist/components/layoutWrapper/defaultLayout/index.d.cts.map +1 -0
- package/dist/components/layoutWrapper/defaultLayout/index.d.mts +4 -0
- package/dist/components/layoutWrapper/defaultLayout/index.d.mts.map +1 -0
- package/dist/components/layoutWrapper/defaultLayout/index.d.ts +1 -1
- package/dist/components/layoutWrapper/defaultLayout/index.d.ts.map +1 -1
- package/dist/components/layoutWrapper/index.d.cts +46 -0
- package/dist/components/layoutWrapper/index.d.cts.map +1 -0
- package/dist/components/layoutWrapper/index.d.mts +46 -0
- package/dist/components/layoutWrapper/index.d.mts.map +1 -0
- package/dist/components/layoutWrapper/index.d.ts +1 -1
- package/dist/components/layoutWrapper/index.d.ts.map +1 -1
- package/dist/components/pages/auth/components/forgotPassword/index.d.cts +7 -0
- package/dist/components/pages/auth/components/forgotPassword/index.d.cts.map +1 -0
- package/dist/components/pages/auth/components/forgotPassword/index.d.mts +7 -0
- package/dist/components/pages/auth/components/forgotPassword/index.d.mts.map +1 -0
- package/dist/components/pages/auth/components/forgotPassword/index.d.ts +2 -2
- package/dist/components/pages/auth/components/forgotPassword/index.d.ts.map +1 -1
- package/dist/components/pages/auth/components/index.d.cts +5 -0
- package/dist/components/pages/auth/components/index.d.cts.map +1 -0
- package/dist/components/pages/auth/components/index.d.mts +5 -0
- package/dist/components/pages/auth/components/index.d.mts.map +1 -0
- package/dist/components/pages/auth/components/login/index.d.cts +7 -0
- package/dist/components/pages/auth/components/login/index.d.cts.map +1 -0
- package/dist/components/pages/auth/components/login/index.d.mts +7 -0
- package/dist/components/pages/auth/components/login/index.d.mts.map +1 -0
- package/dist/components/pages/auth/components/login/index.d.ts +2 -2
- package/dist/components/pages/auth/components/login/index.d.ts.map +1 -1
- package/dist/components/pages/auth/components/register/index.d.cts +7 -0
- package/dist/components/pages/auth/components/register/index.d.cts.map +1 -0
- package/dist/components/pages/auth/components/register/index.d.mts +7 -0
- package/dist/components/pages/auth/components/register/index.d.mts.map +1 -0
- package/dist/components/pages/auth/components/register/index.d.ts +2 -2
- package/dist/components/pages/auth/components/register/index.d.ts.map +1 -1
- package/dist/components/pages/auth/components/updatePassword/index.d.cts +7 -0
- package/dist/components/pages/auth/components/updatePassword/index.d.cts.map +1 -0
- package/dist/components/pages/auth/components/updatePassword/index.d.mts +7 -0
- package/dist/components/pages/auth/components/updatePassword/index.d.mts.map +1 -0
- package/dist/components/pages/auth/components/updatePassword/index.d.ts +2 -2
- package/dist/components/pages/auth/components/updatePassword/index.d.ts.map +1 -1
- package/dist/components/pages/auth/index.d.cts +12 -0
- package/dist/components/pages/auth/index.d.cts.map +1 -0
- package/dist/components/pages/auth/index.d.mts +12 -0
- package/dist/components/pages/auth/index.d.mts.map +1 -0
- package/dist/components/pages/auth/index.d.ts +4 -4
- package/dist/components/pages/auth/index.d.ts.map +1 -1
- package/dist/components/pages/auth/types.d.cts +179 -0
- package/dist/components/pages/auth/types.d.cts.map +1 -0
- package/dist/components/pages/auth/types.d.mts +179 -0
- package/dist/components/pages/auth/types.d.mts.map +1 -0
- package/dist/components/pages/auth/types.d.ts +179 -0
- package/dist/components/pages/auth/types.d.ts.map +1 -0
- package/dist/components/pages/config-error/index.d.cts +3 -0
- package/dist/components/pages/config-error/index.d.cts.map +1 -0
- package/dist/components/pages/config-error/index.d.mts +3 -0
- package/dist/components/pages/config-error/index.d.mts.map +1 -0
- package/dist/components/pages/config-error/index.d.ts.map +1 -1
- package/dist/components/pages/config-success/index.d.cts +6 -0
- package/dist/components/pages/config-success/index.d.cts.map +1 -0
- package/dist/components/pages/config-success/index.d.mts +6 -0
- package/dist/components/pages/config-success/index.d.mts.map +1 -0
- package/dist/components/pages/config-success/index.d.ts.map +1 -1
- package/dist/components/pages/error/index.d.cts +9 -0
- package/dist/components/pages/error/index.d.cts.map +1 -0
- package/dist/components/pages/error/index.d.mts +9 -0
- package/dist/components/pages/error/index.d.mts.map +1 -0
- package/dist/components/pages/index.d.cts +7 -0
- package/dist/components/pages/index.d.cts.map +1 -0
- package/dist/components/pages/index.d.mts +7 -0
- package/dist/components/pages/index.d.mts.map +1 -0
- package/dist/components/pages/login/index.d.cts +13 -0
- package/dist/components/pages/login/index.d.cts.map +1 -0
- package/dist/components/pages/login/index.d.mts +13 -0
- package/dist/components/pages/login/index.d.mts.map +1 -0
- package/dist/components/pages/login/index.d.ts.map +1 -1
- package/dist/components/pages/ready/index.d.cts +8 -0
- package/dist/components/pages/ready/index.d.cts.map +1 -0
- package/dist/components/pages/ready/index.d.mts +8 -0
- package/dist/components/pages/ready/index.d.mts.map +1 -0
- package/dist/components/pages/ready/index.d.ts.map +1 -1
- package/dist/components/pages/welcome/index.d.cts +3 -0
- package/dist/components/pages/welcome/index.d.cts.map +1 -0
- package/dist/components/pages/welcome/index.d.mts +3 -0
- package/dist/components/pages/welcome/index.d.mts.map +1 -0
- package/dist/components/routeChangeHandler/index.d.cts +3 -0
- package/dist/components/routeChangeHandler/index.d.cts.map +1 -0
- package/dist/components/routeChangeHandler/index.d.mts +3 -0
- package/dist/components/routeChangeHandler/index.d.mts.map +1 -0
- package/dist/components/telemetry/index.d.cts +3 -0
- package/dist/components/telemetry/index.d.cts.map +1 -0
- package/dist/components/telemetry/index.d.mts +3 -0
- package/dist/components/telemetry/index.d.mts.map +1 -0
- package/dist/components/telemetry/types.d.cts +16 -0
- package/dist/components/telemetry/types.d.cts.map +1 -0
- package/dist/components/telemetry/types.d.mts +16 -0
- package/dist/components/telemetry/types.d.mts.map +1 -0
- package/dist/components/telemetry/types.d.ts +16 -0
- package/dist/components/telemetry/types.d.ts.map +1 -0
- package/dist/components/undoableQueue/index.d.cts +6 -0
- package/dist/components/undoableQueue/index.d.cts.map +1 -0
- package/dist/components/undoableQueue/index.d.mts +6 -0
- package/dist/components/undoableQueue/index.d.mts.map +1 -0
- package/dist/components/undoableQueue/index.d.ts +1 -1
- package/dist/components/undoableQueue/index.d.ts.map +1 -1
- package/dist/contexts/accessControl/index.d.cts +7 -0
- package/dist/contexts/accessControl/index.d.cts.map +1 -0
- package/dist/contexts/accessControl/index.d.mts +7 -0
- package/dist/contexts/accessControl/index.d.mts.map +1 -0
- package/dist/contexts/accessControl/index.d.ts +3 -6
- package/dist/contexts/accessControl/index.d.ts.map +1 -1
- package/dist/contexts/accessControl/types.d.cts +84 -0
- package/dist/contexts/accessControl/types.d.cts.map +1 -0
- package/dist/contexts/accessControl/types.d.mts +84 -0
- package/dist/contexts/accessControl/types.d.mts.map +1 -0
- package/dist/contexts/accessControl/types.d.ts +84 -0
- package/dist/contexts/accessControl/types.d.ts.map +1 -0
- package/dist/contexts/auditLog/index.d.cts +5 -0
- package/dist/contexts/auditLog/index.d.cts.map +1 -0
- package/dist/contexts/auditLog/index.d.mts +5 -0
- package/dist/contexts/auditLog/index.d.mts.map +1 -0
- package/dist/contexts/auditLog/index.d.ts +3 -5
- package/dist/contexts/auditLog/index.d.ts.map +1 -1
- package/dist/contexts/auditLog/types.d.cts +41 -0
- package/dist/contexts/auditLog/types.d.cts.map +1 -0
- package/dist/contexts/auditLog/types.d.mts +41 -0
- package/dist/contexts/auditLog/types.d.mts.map +1 -0
- package/dist/contexts/auditLog/types.d.ts +41 -0
- package/dist/contexts/auditLog/types.d.ts.map +1 -0
- package/dist/contexts/auth/index.d.cts +18 -0
- package/dist/contexts/auth/index.d.cts.map +1 -0
- package/dist/contexts/auth/index.d.mts +18 -0
- package/dist/contexts/auth/index.d.mts.map +1 -0
- package/dist/contexts/auth/index.d.ts +5 -7
- package/dist/contexts/auth/index.d.ts.map +1 -1
- package/dist/contexts/auth/types.d.cts +101 -0
- package/dist/contexts/auth/types.d.cts.map +1 -0
- package/dist/contexts/auth/types.d.mts +101 -0
- package/dist/contexts/auth/types.d.mts.map +1 -0
- package/dist/contexts/auth/types.d.ts +101 -0
- package/dist/contexts/auth/types.d.ts.map +1 -0
- package/dist/contexts/data/index.d.cts +10 -0
- package/dist/contexts/data/index.d.cts.map +1 -0
- package/dist/contexts/data/index.d.mts +10 -0
- package/dist/contexts/data/index.d.mts.map +1 -0
- package/dist/contexts/data/index.d.ts +7 -5
- package/dist/contexts/data/index.d.ts.map +1 -1
- package/dist/contexts/data/types.d.cts +347 -0
- package/dist/contexts/data/types.d.cts.map +1 -0
- package/dist/contexts/data/types.d.mts +347 -0
- package/dist/contexts/data/types.d.mts.map +1 -0
- package/dist/contexts/data/types.d.ts +347 -0
- package/dist/contexts/data/types.d.ts.map +1 -0
- package/dist/contexts/i18n/index.d.cts +7 -0
- package/dist/contexts/i18n/index.d.cts.map +1 -0
- package/dist/contexts/i18n/index.d.mts +7 -0
- package/dist/contexts/i18n/index.d.mts.map +1 -0
- package/dist/contexts/i18n/index.d.ts +7 -0
- package/dist/contexts/i18n/index.d.ts.map +1 -0
- package/dist/contexts/i18n/types.d.cts +13 -0
- package/dist/contexts/i18n/types.d.cts.map +1 -0
- package/dist/contexts/i18n/types.d.mts +13 -0
- package/dist/contexts/i18n/types.d.mts.map +1 -0
- package/dist/contexts/i18n/types.d.ts +13 -0
- package/dist/contexts/i18n/types.d.ts.map +1 -0
- package/dist/contexts/live/index.d.cts +5 -0
- package/dist/contexts/live/index.d.cts.map +1 -0
- package/dist/contexts/live/index.d.mts +5 -0
- package/dist/contexts/live/index.d.mts.map +1 -0
- package/dist/contexts/live/index.d.ts +3 -3
- package/dist/contexts/live/index.d.ts.map +1 -1
- package/dist/contexts/live/types.d.cts +96 -0
- package/dist/contexts/live/types.d.cts.map +1 -0
- package/dist/contexts/live/types.d.mts +96 -0
- package/dist/contexts/live/types.d.mts.map +1 -0
- package/dist/contexts/live/types.d.ts +96 -0
- package/dist/contexts/live/types.d.ts.map +1 -0
- package/dist/contexts/notification/index.d.cts +7 -0
- package/dist/contexts/notification/index.d.cts.map +1 -0
- package/dist/contexts/notification/index.d.mts +7 -0
- package/dist/contexts/notification/index.d.mts.map +1 -0
- package/dist/contexts/notification/index.d.ts +3 -5
- package/dist/contexts/notification/index.d.ts.map +1 -1
- package/dist/contexts/notification/types.d.cts +27 -0
- package/dist/contexts/notification/types.d.cts.map +1 -0
- package/dist/contexts/notification/types.d.mts +27 -0
- package/dist/contexts/notification/types.d.mts.map +1 -0
- package/dist/contexts/notification/types.d.ts +27 -0
- package/dist/contexts/notification/types.d.ts.map +1 -0
- package/dist/contexts/refine/index.d.cts +6 -0
- package/dist/contexts/refine/index.d.cts.map +1 -0
- package/dist/contexts/refine/index.d.mts +6 -0
- package/dist/contexts/refine/index.d.mts.map +1 -0
- package/dist/contexts/refine/index.d.ts +1 -1
- package/dist/contexts/refine/index.d.ts.map +1 -1
- package/dist/contexts/refine/types.d.cts +313 -0
- package/dist/contexts/refine/types.d.cts.map +1 -0
- package/dist/contexts/refine/types.d.mts +313 -0
- package/dist/contexts/refine/types.d.mts.map +1 -0
- package/dist/contexts/refine/types.d.ts +313 -0
- package/dist/contexts/refine/types.d.ts.map +1 -0
- package/dist/contexts/resource/index.d.cts +7 -0
- package/dist/contexts/resource/index.d.cts.map +1 -0
- package/dist/contexts/resource/index.d.mts +7 -0
- package/dist/contexts/resource/index.d.mts.map +1 -0
- package/dist/contexts/resource/index.d.ts +1 -3
- package/dist/contexts/resource/index.d.ts.map +1 -1
- package/dist/contexts/resource/types.d.cts +168 -0
- package/dist/contexts/resource/types.d.cts.map +1 -0
- package/dist/contexts/resource/types.d.mts +168 -0
- package/dist/contexts/resource/types.d.mts.map +1 -0
- package/dist/contexts/resource/types.d.ts +168 -0
- package/dist/contexts/resource/types.d.ts.map +1 -0
- package/dist/contexts/router/index.d.cts +7 -0
- package/dist/contexts/router/index.d.cts.map +1 -0
- package/dist/contexts/router/index.d.mts +7 -0
- package/dist/contexts/router/index.d.mts.map +1 -0
- package/dist/contexts/router/index.d.ts +4 -4
- package/dist/contexts/router/index.d.ts.map +1 -1
- package/dist/contexts/router/legacy/index.d.cts +6 -0
- package/dist/contexts/router/legacy/index.d.cts.map +1 -0
- package/dist/contexts/router/legacy/index.d.mts +6 -0
- package/dist/contexts/router/legacy/index.d.mts.map +1 -0
- package/dist/contexts/router/legacy/index.d.ts +6 -0
- package/dist/contexts/router/legacy/index.d.ts.map +1 -0
- package/dist/contexts/router/legacy/types.d.cts +47 -0
- package/dist/contexts/router/legacy/types.d.cts.map +1 -0
- package/dist/contexts/router/legacy/types.d.mts +47 -0
- package/dist/contexts/router/legacy/types.d.mts.map +1 -0
- package/dist/contexts/router/legacy/types.d.ts +47 -0
- package/dist/contexts/router/legacy/types.d.ts.map +1 -0
- package/dist/contexts/router/picker/index.d.cts.map +1 -0
- package/dist/contexts/router/picker/index.d.mts +15 -0
- package/dist/contexts/router/picker/index.d.mts.map +1 -0
- package/dist/contexts/router/picker/index.d.ts +15 -0
- package/dist/contexts/router/picker/index.d.ts.map +1 -0
- package/dist/contexts/router/types.d.cts +67 -0
- package/dist/contexts/router/types.d.cts.map +1 -0
- package/dist/contexts/router/types.d.mts +67 -0
- package/dist/contexts/router/types.d.mts.map +1 -0
- package/dist/contexts/router/types.d.ts +67 -0
- package/dist/contexts/router/types.d.ts.map +1 -0
- package/dist/contexts/undoableQueue/index.d.cts +6 -0
- package/dist/contexts/undoableQueue/index.d.cts.map +1 -0
- package/dist/contexts/undoableQueue/index.d.mts +6 -0
- package/dist/contexts/undoableQueue/index.d.mts.map +1 -0
- package/dist/contexts/undoableQueue/index.d.ts +5 -2
- package/dist/contexts/undoableQueue/index.d.ts.map +1 -1
- package/dist/contexts/undoableQueue/types.d.cts +21 -0
- package/dist/contexts/undoableQueue/types.d.cts.map +1 -0
- package/dist/contexts/undoableQueue/types.d.mts +21 -0
- package/dist/contexts/undoableQueue/types.d.mts.map +1 -0
- package/dist/contexts/undoableQueue/types.d.ts +21 -0
- package/dist/contexts/undoableQueue/types.d.ts.map +1 -0
- package/dist/contexts/unsavedWarn/index.d.cts +5 -0
- package/dist/contexts/unsavedWarn/index.d.cts.map +1 -0
- package/dist/contexts/unsavedWarn/index.d.mts +5 -0
- package/dist/contexts/unsavedWarn/index.d.mts.map +1 -0
- package/dist/contexts/unsavedWarn/index.d.ts +3 -5
- package/dist/contexts/unsavedWarn/index.d.ts.map +1 -1
- package/dist/contexts/unsavedWarn/types.d.cts +5 -0
- package/dist/contexts/unsavedWarn/types.d.cts.map +1 -0
- package/dist/contexts/unsavedWarn/types.d.mts +5 -0
- package/dist/contexts/unsavedWarn/types.d.mts.map +1 -0
- package/dist/contexts/unsavedWarn/types.d.ts +5 -0
- package/dist/contexts/unsavedWarn/types.d.ts.map +1 -0
- package/dist/definitions/helpers/async-debounce/index.d.cts +18 -0
- package/dist/definitions/helpers/async-debounce/index.d.cts.map +1 -0
- package/dist/definitions/helpers/async-debounce/index.d.mts +18 -0
- package/dist/definitions/helpers/async-debounce/index.d.mts.map +1 -0
- package/dist/definitions/helpers/async-debounce/index.d.ts +18 -0
- package/dist/definitions/helpers/async-debounce/index.d.ts.map +1 -0
- package/dist/definitions/helpers/check-router-prop-misuse/index.d.cts +4 -0
- package/dist/definitions/helpers/check-router-prop-misuse/index.d.cts.map +1 -0
- package/dist/definitions/helpers/check-router-prop-misuse/index.d.mts +4 -0
- package/dist/definitions/helpers/check-router-prop-misuse/index.d.mts.map +1 -0
- package/dist/definitions/helpers/check-router-prop-misuse/index.d.ts +3 -2
- package/dist/definitions/helpers/check-router-prop-misuse/index.d.ts.map +1 -1
- package/dist/definitions/helpers/defer-execution/index.d.cts +9 -0
- package/dist/definitions/helpers/defer-execution/index.d.cts.map +1 -0
- package/dist/definitions/helpers/defer-execution/index.d.mts +9 -0
- package/dist/definitions/helpers/defer-execution/index.d.mts.map +1 -0
- package/dist/definitions/helpers/defer-execution/index.d.ts +9 -0
- package/dist/definitions/helpers/defer-execution/index.d.ts.map +1 -0
- package/dist/definitions/helpers/downloadInBrowser/index.d.cts +2 -0
- package/dist/definitions/helpers/downloadInBrowser/index.d.cts.map +1 -0
- package/dist/definitions/helpers/downloadInBrowser/index.d.mts +2 -0
- package/dist/definitions/helpers/downloadInBrowser/index.d.mts.map +1 -0
- package/dist/definitions/helpers/downloadInBrowser/index.d.ts.map +1 -1
- package/dist/definitions/helpers/flatten-object-keys/index.d.cts +4 -0
- package/dist/definitions/helpers/flatten-object-keys/index.d.cts.map +1 -0
- package/dist/definitions/helpers/flatten-object-keys/index.d.mts +4 -0
- package/dist/definitions/helpers/flatten-object-keys/index.d.mts.map +1 -0
- package/dist/definitions/helpers/flatten-object-keys/index.d.ts +3 -1
- package/dist/definitions/helpers/flatten-object-keys/index.d.ts.map +1 -1
- package/dist/definitions/helpers/generateDocumentTitle/index.d.cts +7 -0
- package/dist/definitions/helpers/generateDocumentTitle/index.d.cts.map +1 -0
- package/dist/definitions/helpers/generateDocumentTitle/index.d.mts +7 -0
- package/dist/definitions/helpers/generateDocumentTitle/index.d.mts.map +1 -0
- package/dist/definitions/helpers/generateDocumentTitle/index.d.ts +2 -2
- package/dist/definitions/helpers/generateDocumentTitle/index.d.ts.map +1 -1
- package/dist/definitions/helpers/handleMultiple/index.d.cts +6 -0
- package/dist/definitions/helpers/handleMultiple/index.d.cts.map +1 -0
- package/dist/definitions/helpers/handleMultiple/index.d.mts +6 -0
- package/dist/definitions/helpers/handleMultiple/index.d.mts.map +1 -0
- package/dist/definitions/helpers/handleMultiple/index.d.ts.map +1 -1
- package/dist/definitions/helpers/handlePaginationParams/index.d.cts +9 -0
- package/dist/definitions/helpers/handlePaginationParams/index.d.cts.map +1 -0
- package/dist/definitions/helpers/handlePaginationParams/index.d.mts +9 -0
- package/dist/definitions/helpers/handlePaginationParams/index.d.mts.map +1 -0
- package/dist/definitions/helpers/handlePaginationParams/index.d.ts +2 -2
- package/dist/definitions/helpers/handlePaginationParams/index.d.ts.map +1 -1
- package/dist/definitions/helpers/handleRefineOptions/index.d.cts +26 -0
- package/dist/definitions/helpers/handleRefineOptions/index.d.cts.map +1 -0
- package/dist/definitions/helpers/handleRefineOptions/index.d.mts +26 -0
- package/dist/definitions/helpers/handleRefineOptions/index.d.mts.map +1 -0
- package/dist/definitions/helpers/handleRefineOptions/index.d.ts +5 -3
- package/dist/definitions/helpers/handleRefineOptions/index.d.ts.map +1 -1
- package/dist/definitions/helpers/handleUseParams/index.d.cts +2 -0
- package/dist/definitions/helpers/handleUseParams/index.d.cts.map +1 -0
- package/dist/definitions/helpers/handleUseParams/index.d.mts +2 -0
- package/dist/definitions/helpers/handleUseParams/index.d.mts.map +1 -0
- package/dist/definitions/helpers/hasPermission/index.d.cts +2 -0
- package/dist/definitions/helpers/hasPermission/index.d.cts.map +1 -0
- package/dist/definitions/helpers/hasPermission/index.d.mts +2 -0
- package/dist/definitions/helpers/hasPermission/index.d.mts.map +1 -0
- package/dist/definitions/helpers/hasPermission/index.d.ts.map +1 -1
- package/dist/definitions/helpers/humanizeString/index.d.cts +2 -0
- package/dist/definitions/helpers/humanizeString/index.d.cts.map +1 -0
- package/dist/definitions/helpers/humanizeString/index.d.mts +2 -0
- package/dist/definitions/helpers/humanizeString/index.d.mts.map +1 -0
- package/dist/definitions/helpers/importCSVMapper/index.d.cts +3 -0
- package/dist/definitions/helpers/importCSVMapper/index.d.cts.map +1 -0
- package/dist/definitions/helpers/importCSVMapper/index.d.mts +3 -0
- package/dist/definitions/helpers/importCSVMapper/index.d.mts.map +1 -0
- package/dist/definitions/helpers/importCSVMapper/index.d.ts +1 -1
- package/dist/definitions/helpers/importCSVMapper/index.d.ts.map +1 -1
- package/dist/definitions/helpers/index.d.cts +33 -0
- package/dist/definitions/helpers/index.d.cts.map +1 -0
- package/dist/definitions/helpers/index.d.mts +33 -0
- package/dist/definitions/helpers/index.d.mts.map +1 -0
- package/dist/definitions/helpers/index.d.ts +2 -0
- package/dist/definitions/helpers/index.d.ts.map +1 -1
- package/dist/definitions/helpers/keys/index.d.cts +64 -0
- package/dist/definitions/helpers/keys/index.d.cts.map +1 -0
- package/dist/definitions/helpers/keys/index.d.mts +64 -0
- package/dist/definitions/helpers/keys/index.d.mts.map +1 -0
- package/dist/definitions/helpers/keys/index.d.ts +11 -22
- package/dist/definitions/helpers/keys/index.d.ts.map +1 -1
- package/dist/definitions/helpers/legacy-resource-transform/index.d.cts +9 -0
- package/dist/definitions/helpers/legacy-resource-transform/index.d.cts.map +1 -0
- package/dist/definitions/helpers/legacy-resource-transform/index.d.mts +9 -0
- package/dist/definitions/helpers/legacy-resource-transform/index.d.mts.map +1 -0
- package/dist/definitions/helpers/legacy-resource-transform/index.d.ts +1 -1
- package/dist/definitions/helpers/legacy-resource-transform/index.d.ts.map +1 -1
- package/dist/definitions/helpers/menu/create-resource-key.d.cts +3 -0
- package/dist/definitions/helpers/menu/create-resource-key.d.cts.map +1 -0
- package/dist/definitions/helpers/menu/create-resource-key.d.mts +3 -0
- package/dist/definitions/helpers/menu/create-resource-key.d.mts.map +1 -0
- package/dist/definitions/helpers/menu/create-resource-key.d.ts +1 -1
- package/dist/definitions/helpers/menu/create-resource-key.d.ts.map +1 -1
- package/dist/definitions/helpers/menu/create-tree.d.cts +13 -0
- package/dist/definitions/helpers/menu/create-tree.d.cts.map +1 -0
- package/dist/definitions/helpers/menu/create-tree.d.mts +13 -0
- package/dist/definitions/helpers/menu/create-tree.d.mts.map +1 -0
- package/dist/definitions/helpers/menu/create-tree.d.ts +3 -3
- package/dist/definitions/helpers/menu/create-tree.d.ts.map +1 -1
- package/dist/definitions/helpers/pick-resource/index.d.cts +8 -0
- package/dist/definitions/helpers/pick-resource/index.d.cts.map +1 -0
- package/dist/definitions/helpers/pick-resource/index.d.mts +8 -0
- package/dist/definitions/helpers/pick-resource/index.d.mts.map +1 -0
- package/dist/definitions/helpers/pick-resource/index.d.ts +1 -1
- package/dist/definitions/helpers/pick-resource/index.d.ts.map +1 -1
- package/dist/definitions/helpers/pickDataProvider/index.d.cts +6 -0
- package/dist/definitions/helpers/pickDataProvider/index.d.cts.map +1 -0
- package/dist/definitions/helpers/pickDataProvider/index.d.mts +6 -0
- package/dist/definitions/helpers/pickDataProvider/index.d.mts.map +1 -0
- package/dist/definitions/helpers/pickDataProvider/index.d.ts +1 -1
- package/dist/definitions/helpers/pickDataProvider/index.d.ts.map +1 -1
- package/dist/definitions/helpers/pickNotDeprecated/index.d.cts +2 -0
- package/dist/definitions/helpers/pickNotDeprecated/index.d.cts.map +1 -0
- package/dist/definitions/helpers/pickNotDeprecated/index.d.mts +2 -0
- package/dist/definitions/helpers/pickNotDeprecated/index.d.mts.map +1 -0
- package/dist/definitions/helpers/pickNotDeprecated/index.d.ts.map +1 -1
- package/dist/definitions/helpers/property-path-to-array/index.d.cts +2 -0
- package/dist/definitions/helpers/property-path-to-array/index.d.cts.map +1 -0
- package/dist/definitions/helpers/property-path-to-array/index.d.mts +2 -0
- package/dist/definitions/helpers/property-path-to-array/index.d.mts.map +1 -0
- package/dist/definitions/helpers/queryKeys/index.d.cts +7 -0
- package/dist/definitions/helpers/queryKeys/index.d.cts.map +1 -0
- package/dist/definitions/helpers/queryKeys/index.d.mts +7 -0
- package/dist/definitions/helpers/queryKeys/index.d.mts.map +1 -0
- package/dist/definitions/helpers/queryKeys/index.d.ts +1 -2
- package/dist/definitions/helpers/queryKeys/index.d.ts.map +1 -1
- package/dist/definitions/helpers/redirectPage/index.d.cts +11 -0
- package/dist/definitions/helpers/redirectPage/index.d.cts.map +1 -0
- package/dist/definitions/helpers/redirectPage/index.d.mts +11 -0
- package/dist/definitions/helpers/redirectPage/index.d.mts.map +1 -0
- package/dist/definitions/helpers/redirectPage/index.d.ts +4 -2
- package/dist/definitions/helpers/redirectPage/index.d.ts.map +1 -1
- package/dist/definitions/helpers/routeGenerator/index.d.cts +7 -0
- package/dist/definitions/helpers/routeGenerator/index.d.cts.map +1 -0
- package/dist/definitions/helpers/routeGenerator/index.d.mts +7 -0
- package/dist/definitions/helpers/routeGenerator/index.d.mts.map +1 -0
- package/dist/definitions/helpers/routeGenerator/index.d.ts +1 -1
- package/dist/definitions/helpers/routeGenerator/index.d.ts.map +1 -1
- package/dist/definitions/helpers/router/check-by-segments.d.cts +9 -0
- package/dist/definitions/helpers/router/check-by-segments.d.cts.map +1 -0
- package/dist/definitions/helpers/router/check-by-segments.d.mts +9 -0
- package/dist/definitions/helpers/router/check-by-segments.d.mts.map +1 -0
- package/dist/definitions/helpers/router/compose-route.d.cts +11 -0
- package/dist/definitions/helpers/router/compose-route.d.cts.map +1 -0
- package/dist/definitions/helpers/router/compose-route.d.mts +11 -0
- package/dist/definitions/helpers/router/compose-route.d.mts.map +1 -0
- package/dist/definitions/helpers/router/compose-route.d.ts +2 -1
- package/dist/definitions/helpers/router/compose-route.d.ts.map +1 -1
- package/dist/definitions/helpers/router/get-action-routes-from-resource.d.cts +16 -0
- package/dist/definitions/helpers/router/get-action-routes-from-resource.d.cts.map +1 -0
- package/dist/definitions/helpers/router/get-action-routes-from-resource.d.mts +16 -0
- package/dist/definitions/helpers/router/get-action-routes-from-resource.d.mts.map +1 -0
- package/dist/definitions/helpers/router/get-action-routes-from-resource.d.ts +3 -2
- package/dist/definitions/helpers/router/get-action-routes-from-resource.d.ts.map +1 -1
- package/dist/definitions/helpers/router/get-default-action-path.d.cts +8 -0
- package/dist/definitions/helpers/router/get-default-action-path.d.cts.map +1 -0
- package/dist/definitions/helpers/router/get-default-action-path.d.mts +8 -0
- package/dist/definitions/helpers/router/get-default-action-path.d.mts.map +1 -0
- package/dist/definitions/helpers/router/get-default-action-path.d.ts +1 -1
- package/dist/definitions/helpers/router/get-default-action-path.d.ts.map +1 -1
- package/dist/definitions/helpers/router/get-parent-prefix-for-resource.d.cts +7 -0
- package/dist/definitions/helpers/router/get-parent-prefix-for-resource.d.cts.map +1 -0
- package/dist/definitions/helpers/router/get-parent-prefix-for-resource.d.mts +7 -0
- package/dist/definitions/helpers/router/get-parent-prefix-for-resource.d.mts.map +1 -0
- package/dist/definitions/helpers/router/get-parent-prefix-for-resource.d.ts +1 -1
- package/dist/definitions/helpers/router/get-parent-prefix-for-resource.d.ts.map +1 -1
- package/dist/definitions/helpers/router/get-parent-resource.d.cts +7 -0
- package/dist/definitions/helpers/router/get-parent-resource.d.cts.map +1 -0
- package/dist/definitions/helpers/router/get-parent-resource.d.mts +7 -0
- package/dist/definitions/helpers/router/get-parent-resource.d.mts.map +1 -0
- package/dist/definitions/helpers/router/get-parent-resource.d.ts +1 -1
- package/dist/definitions/helpers/router/get-parent-resource.d.ts.map +1 -1
- package/dist/definitions/helpers/router/index.d.cts +10 -0
- package/dist/definitions/helpers/router/index.d.cts.map +1 -0
- package/dist/definitions/helpers/router/index.d.mts +10 -0
- package/dist/definitions/helpers/router/index.d.mts.map +1 -0
- package/dist/definitions/helpers/router/is-parameter.d.cts +5 -0
- package/dist/definitions/helpers/router/is-parameter.d.cts.map +1 -0
- package/dist/definitions/helpers/router/is-parameter.d.mts +5 -0
- package/dist/definitions/helpers/router/is-parameter.d.mts.map +1 -0
- package/dist/definitions/helpers/router/is-segment-counts-same.d.cts +5 -0
- package/dist/definitions/helpers/router/is-segment-counts-same.d.cts.map +1 -0
- package/dist/definitions/helpers/router/is-segment-counts-same.d.mts +5 -0
- package/dist/definitions/helpers/router/is-segment-counts-same.d.mts.map +1 -0
- package/dist/definitions/helpers/router/match-resource-from-route.d.cts +15 -0
- package/dist/definitions/helpers/router/match-resource-from-route.d.cts.map +1 -0
- package/dist/definitions/helpers/router/match-resource-from-route.d.mts +15 -0
- package/dist/definitions/helpers/router/match-resource-from-route.d.mts.map +1 -0
- package/dist/definitions/helpers/router/match-resource-from-route.d.ts +2 -1
- package/dist/definitions/helpers/router/match-resource-from-route.d.ts.map +1 -1
- package/dist/definitions/helpers/router/pick-matched-route.d.cts +8 -0
- package/dist/definitions/helpers/router/pick-matched-route.d.cts.map +1 -0
- package/dist/definitions/helpers/router/pick-matched-route.d.mts +8 -0
- package/dist/definitions/helpers/router/pick-matched-route.d.mts.map +1 -0
- package/dist/definitions/helpers/router/pick-matched-route.d.ts.map +1 -1
- package/dist/definitions/helpers/router/pick-route-params.d.cts +6 -0
- package/dist/definitions/helpers/router/pick-route-params.d.cts.map +1 -0
- package/dist/definitions/helpers/router/pick-route-params.d.mts +6 -0
- package/dist/definitions/helpers/router/pick-route-params.d.mts.map +1 -0
- package/dist/definitions/helpers/router/prepare-route-params.d.cts +8 -0
- package/dist/definitions/helpers/router/prepare-route-params.d.cts.map +1 -0
- package/dist/definitions/helpers/router/prepare-route-params.d.mts +8 -0
- package/dist/definitions/helpers/router/prepare-route-params.d.mts.map +1 -0
- package/dist/definitions/helpers/router/prepare-route-params.d.ts.map +1 -1
- package/dist/definitions/helpers/router/remove-leading-trailing-slashes.d.cts +5 -0
- package/dist/definitions/helpers/router/remove-leading-trailing-slashes.d.cts.map +1 -0
- package/dist/definitions/helpers/router/remove-leading-trailing-slashes.d.mts +5 -0
- package/dist/definitions/helpers/router/remove-leading-trailing-slashes.d.mts.map +1 -0
- package/dist/definitions/helpers/router/split-to-segments.d.cts +5 -0
- package/dist/definitions/helpers/router/split-to-segments.d.cts.map +1 -0
- package/dist/definitions/helpers/router/split-to-segments.d.mts +5 -0
- package/dist/definitions/helpers/router/split-to-segments.d.mts.map +1 -0
- package/dist/definitions/helpers/safe-translate/index.d.cts +3 -0
- package/dist/definitions/helpers/safe-translate/index.d.cts.map +1 -0
- package/dist/definitions/helpers/safe-translate/index.d.mts +3 -0
- package/dist/definitions/helpers/safe-translate/index.d.mts.map +1 -0
- package/dist/definitions/helpers/safe-translate/index.d.ts +1 -1
- package/dist/definitions/helpers/safe-translate/index.d.ts.map +1 -1
- package/dist/definitions/helpers/sanitize-resource/index.d.cts +8 -0
- package/dist/definitions/helpers/sanitize-resource/index.d.cts.map +1 -0
- package/dist/definitions/helpers/sanitize-resource/index.d.mts +8 -0
- package/dist/definitions/helpers/sanitize-resource/index.d.mts.map +1 -0
- package/dist/definitions/helpers/sanitize-resource/index.d.ts +1 -1
- package/dist/definitions/helpers/sanitize-resource/index.d.ts.map +1 -1
- package/dist/definitions/helpers/sequentialPromises/index.d.cts +5 -0
- package/dist/definitions/helpers/sequentialPromises/index.d.cts.map +1 -0
- package/dist/definitions/helpers/sequentialPromises/index.d.mts +5 -0
- package/dist/definitions/helpers/sequentialPromises/index.d.mts.map +1 -0
- package/dist/definitions/helpers/sequentialPromises/index.d.ts +2 -2
- package/dist/definitions/helpers/sequentialPromises/index.d.ts.map +1 -1
- package/dist/definitions/helpers/treeView/createTreeView/index.d.cts +6 -0
- package/dist/definitions/helpers/treeView/createTreeView/index.d.cts.map +1 -0
- package/dist/definitions/helpers/treeView/createTreeView/index.d.mts +6 -0
- package/dist/definitions/helpers/treeView/createTreeView/index.d.mts.map +1 -0
- package/dist/definitions/helpers/treeView/createTreeView/index.d.ts +1 -1
- package/dist/definitions/helpers/treeView/createTreeView/index.d.ts.map +1 -1
- package/dist/definitions/helpers/treeView/index.d.cts +2 -0
- package/dist/definitions/helpers/treeView/index.d.cts.map +1 -0
- package/dist/definitions/helpers/treeView/index.d.mts +2 -0
- package/dist/definitions/helpers/treeView/index.d.mts.map +1 -0
- package/dist/definitions/helpers/useActiveAuthProvider/index.d.cts +34 -0
- package/dist/definitions/helpers/useActiveAuthProvider/index.d.cts.map +1 -0
- package/dist/definitions/helpers/useActiveAuthProvider/index.d.mts +34 -0
- package/dist/definitions/helpers/useActiveAuthProvider/index.d.mts.map +1 -0
- package/dist/definitions/helpers/useActiveAuthProvider/index.d.ts +14 -14
- package/dist/definitions/helpers/useInfinitePagination/index.d.cts +4 -0
- package/dist/definitions/helpers/useInfinitePagination/index.d.cts.map +1 -0
- package/dist/definitions/helpers/useInfinitePagination/index.d.mts +4 -0
- package/dist/definitions/helpers/useInfinitePagination/index.d.mts.map +1 -0
- package/dist/definitions/helpers/useInfinitePagination/index.d.ts +1 -1
- package/dist/definitions/helpers/useInfinitePagination/index.d.ts.map +1 -1
- package/dist/definitions/helpers/useMediaQuery/index.d.cts +2 -0
- package/dist/definitions/helpers/useMediaQuery/index.d.cts.map +1 -0
- package/dist/definitions/helpers/useMediaQuery/index.d.mts +2 -0
- package/dist/definitions/helpers/useMediaQuery/index.d.mts.map +1 -0
- package/dist/definitions/helpers/useUserFriendlyName/index.d.cts +6 -0
- package/dist/definitions/helpers/useUserFriendlyName/index.d.cts.map +1 -0
- package/dist/definitions/helpers/useUserFriendlyName/index.d.mts +6 -0
- package/dist/definitions/helpers/useUserFriendlyName/index.d.mts.map +1 -0
- package/dist/definitions/helpers/useUserFriendlyName/index.d.ts.map +1 -1
- package/dist/definitions/helpers/userFriendlyResourceName/index.d.cts +7 -0
- package/dist/definitions/helpers/userFriendlyResourceName/index.d.cts.map +1 -0
- package/dist/definitions/helpers/userFriendlyResourceName/index.d.mts +7 -0
- package/dist/definitions/helpers/userFriendlyResourceName/index.d.mts.map +1 -0
- package/dist/definitions/helpers/userFriendlyResourceName/index.d.ts.map +1 -1
- package/dist/definitions/helpers/userFriendlySeconds/index.d.cts +2 -0
- package/dist/definitions/helpers/userFriendlySeconds/index.d.cts.map +1 -0
- package/dist/definitions/helpers/userFriendlySeconds/index.d.mts +2 -0
- package/dist/definitions/helpers/userFriendlySeconds/index.d.mts.map +1 -0
- package/dist/definitions/index.d.cts +4 -0
- package/dist/definitions/index.d.cts.map +1 -0
- package/dist/definitions/index.d.mts +4 -0
- package/dist/definitions/index.d.mts.map +1 -0
- package/dist/definitions/table/index.d.cts +34 -0
- package/dist/definitions/table/index.d.cts.map +1 -0
- package/dist/definitions/table/index.d.mts +34 -0
- package/dist/definitions/table/index.d.mts.map +1 -0
- package/dist/definitions/table/index.d.ts +13 -13
- package/dist/definitions/table/index.d.ts.map +1 -1
- package/dist/definitions/upload/file2Base64/index.d.cts +2 -0
- package/dist/definitions/upload/file2Base64/index.d.cts.map +1 -0
- package/dist/definitions/upload/file2Base64/index.d.mts +2 -0
- package/dist/definitions/upload/file2Base64/index.d.mts.map +1 -0
- package/dist/definitions/upload/index.d.cts +2 -0
- package/dist/definitions/upload/index.d.cts.map +1 -0
- package/dist/definitions/upload/index.d.mts +2 -0
- package/dist/definitions/upload/index.d.mts.map +1 -0
- package/dist/hooks/accessControl/index.d.cts +3 -0
- package/dist/hooks/accessControl/index.d.cts.map +1 -0
- package/dist/hooks/accessControl/index.d.mts +3 -0
- package/dist/hooks/accessControl/index.d.mts.map +1 -0
- package/dist/hooks/accessControl/useCan/index.d.cts +18 -0
- package/dist/hooks/accessControl/useCan/index.d.cts.map +1 -0
- package/dist/hooks/accessControl/useCan/index.d.mts +18 -0
- package/dist/hooks/accessControl/useCan/index.d.mts.map +1 -0
- package/dist/hooks/accessControl/useCan/index.d.ts +2 -2
- package/dist/hooks/accessControl/useCan/index.d.ts.map +1 -1
- package/dist/hooks/accessControl/useCanWithoutCache.d.cts +3 -0
- package/dist/hooks/accessControl/useCanWithoutCache.d.cts.map +1 -0
- package/dist/hooks/accessControl/useCanWithoutCache.d.mts +3 -0
- package/dist/hooks/accessControl/useCanWithoutCache.d.mts.map +1 -0
- package/dist/hooks/accessControl/useCanWithoutCache.d.ts +1 -1
- package/dist/hooks/accessControl/useCanWithoutCache.d.ts.map +1 -1
- package/dist/hooks/auditLog/index.d.cts +3 -0
- package/dist/hooks/auditLog/index.d.cts.map +1 -0
- package/dist/hooks/auditLog/index.d.mts +3 -0
- package/dist/hooks/auditLog/index.d.mts.map +1 -0
- package/dist/hooks/auditLog/useLog/index.d.cts +27 -0
- package/dist/hooks/auditLog/useLog/index.d.cts.map +1 -0
- package/dist/hooks/auditLog/useLog/index.d.mts +27 -0
- package/dist/hooks/auditLog/useLog/index.d.mts.map +1 -0
- package/dist/hooks/auditLog/useLog/index.d.ts +5 -4
- package/dist/hooks/auditLog/useLog/index.d.ts.map +1 -1
- package/dist/hooks/auditLog/useLogList/index.d.cts +22 -0
- package/dist/hooks/auditLog/useLogList/index.d.cts.map +1 -0
- package/dist/hooks/auditLog/useLogList/index.d.mts +22 -0
- package/dist/hooks/auditLog/useLogList/index.d.mts.map +1 -0
- package/dist/hooks/auditLog/useLogList/index.d.ts +4 -4
- package/dist/hooks/auditLog/useLogList/index.d.ts.map +1 -1
- package/dist/hooks/auth/index.d.cts +11 -0
- package/dist/hooks/auth/index.d.cts.map +1 -0
- package/dist/hooks/auth/index.d.mts +11 -0
- package/dist/hooks/auth/index.d.mts.map +1 -0
- package/dist/hooks/auth/useForgotPassword/index.d.cts +22 -0
- package/dist/hooks/auth/useForgotPassword/index.d.cts.map +1 -0
- package/dist/hooks/auth/useForgotPassword/index.d.mts +22 -0
- package/dist/hooks/auth/useForgotPassword/index.d.mts.map +1 -0
- package/dist/hooks/auth/useForgotPassword/index.d.ts +8 -7
- package/dist/hooks/auth/useForgotPassword/index.d.ts.map +1 -1
- package/dist/hooks/auth/useGetIdentity/index.d.cts +21 -0
- package/dist/hooks/auth/useGetIdentity/index.d.cts.map +1 -0
- package/dist/hooks/auth/useGetIdentity/index.d.mts +21 -0
- package/dist/hooks/auth/useGetIdentity/index.d.mts.map +1 -0
- package/dist/hooks/auth/useGetIdentity/index.d.ts +8 -8
- package/dist/hooks/auth/useGetIdentity/index.d.ts.map +1 -1
- package/dist/hooks/auth/useInvalidateAuthStore/index.d.cts +2 -0
- package/dist/hooks/auth/useInvalidateAuthStore/index.d.cts.map +1 -0
- package/dist/hooks/auth/useInvalidateAuthStore/index.d.mts +2 -0
- package/dist/hooks/auth/useInvalidateAuthStore/index.d.mts.map +1 -0
- package/dist/hooks/auth/useIsAuthenticated/index.d.cts +25 -0
- package/dist/hooks/auth/useIsAuthenticated/index.d.cts.map +1 -0
- package/dist/hooks/auth/useIsAuthenticated/index.d.mts +25 -0
- package/dist/hooks/auth/useIsAuthenticated/index.d.mts.map +1 -0
- package/dist/hooks/auth/useIsAuthenticated/index.d.ts +7 -7
- package/dist/hooks/auth/useIsAuthenticated/index.d.ts.map +1 -1
- package/dist/hooks/auth/useIsExistAuthentication/index.d.cts +6 -0
- package/dist/hooks/auth/useIsExistAuthentication/index.d.cts.map +1 -0
- package/dist/hooks/auth/useIsExistAuthentication/index.d.mts +6 -0
- package/dist/hooks/auth/useIsExistAuthentication/index.d.mts.map +1 -0
- package/dist/hooks/auth/useLogin/index.d.cts +22 -0
- package/dist/hooks/auth/useLogin/index.d.cts.map +1 -0
- package/dist/hooks/auth/useLogin/index.d.mts +22 -0
- package/dist/hooks/auth/useLogin/index.d.mts.map +1 -0
- package/dist/hooks/auth/useLogin/index.d.ts +8 -8
- package/dist/hooks/auth/useLogin/index.d.ts.map +1 -1
- package/dist/hooks/auth/useLogout/index.d.cts +26 -0
- package/dist/hooks/auth/useLogout/index.d.cts.map +1 -0
- package/dist/hooks/auth/useLogout/index.d.mts +26 -0
- package/dist/hooks/auth/useLogout/index.d.mts.map +1 -0
- package/dist/hooks/auth/useLogout/index.d.ts +9 -9
- package/dist/hooks/auth/useLogout/index.d.ts.map +1 -1
- package/dist/hooks/auth/useOnError/index.d.cts +22 -0
- package/dist/hooks/auth/useOnError/index.d.cts.map +1 -0
- package/dist/hooks/auth/useOnError/index.d.mts +22 -0
- package/dist/hooks/auth/useOnError/index.d.mts.map +1 -0
- package/dist/hooks/auth/useOnError/index.d.ts +7 -7
- package/dist/hooks/auth/useOnError/index.d.ts.map +1 -1
- package/dist/hooks/auth/usePermissions/index.d.cts +24 -0
- package/dist/hooks/auth/usePermissions/index.d.cts.map +1 -0
- package/dist/hooks/auth/usePermissions/index.d.mts +24 -0
- package/dist/hooks/auth/usePermissions/index.d.mts.map +1 -0
- package/dist/hooks/auth/usePermissions/index.d.ts +14 -11
- package/dist/hooks/auth/usePermissions/index.d.ts.map +1 -1
- package/dist/hooks/auth/useRegister/index.d.cts +22 -0
- package/dist/hooks/auth/useRegister/index.d.cts.map +1 -0
- package/dist/hooks/auth/useRegister/index.d.mts +22 -0
- package/dist/hooks/auth/useRegister/index.d.mts.map +1 -0
- package/dist/hooks/auth/useRegister/index.d.ts +8 -7
- package/dist/hooks/auth/useRegister/index.d.ts.map +1 -1
- package/dist/hooks/auth/useUpdatePassword/index.d.cts +23 -0
- package/dist/hooks/auth/useUpdatePassword/index.d.cts.map +1 -0
- package/dist/hooks/auth/useUpdatePassword/index.d.mts +23 -0
- package/dist/hooks/auth/useUpdatePassword/index.d.mts.map +1 -0
- package/dist/hooks/auth/useUpdatePassword/index.d.ts +9 -7
- package/dist/hooks/auth/useUpdatePassword/index.d.ts.map +1 -1
- package/dist/hooks/breadcrumb/index.d.cts +18 -0
- package/dist/hooks/breadcrumb/index.d.cts.map +1 -0
- package/dist/hooks/breadcrumb/index.d.mts +18 -0
- package/dist/hooks/breadcrumb/index.d.mts.map +1 -0
- package/dist/hooks/breadcrumb/index.d.ts +3 -3
- package/dist/hooks/breadcrumb/index.d.ts.map +1 -1
- package/dist/hooks/button/actionable-button/index.d.cts +8 -0
- package/dist/hooks/button/actionable-button/index.d.cts.map +1 -0
- package/dist/hooks/button/actionable-button/index.d.mts +8 -0
- package/dist/hooks/button/actionable-button/index.d.mts.map +1 -0
- package/dist/hooks/button/actionable-button/index.d.ts +8 -0
- package/dist/hooks/button/actionable-button/index.d.ts.map +1 -0
- package/dist/hooks/button/button-can-access/index.d.cts +22 -0
- package/dist/hooks/button/button-can-access/index.d.cts.map +1 -0
- package/dist/hooks/button/button-can-access/index.d.mts +22 -0
- package/dist/hooks/button/button-can-access/index.d.mts.map +1 -0
- package/dist/hooks/button/button-can-access/index.d.ts +22 -0
- package/dist/hooks/button/button-can-access/index.d.ts.map +1 -0
- package/dist/hooks/button/delete-button/index.d.cts +28 -0
- package/dist/hooks/button/delete-button/index.d.cts.map +1 -0
- package/dist/hooks/button/delete-button/index.d.mts +28 -0
- package/dist/hooks/button/delete-button/index.d.mts.map +1 -0
- package/dist/hooks/button/delete-button/index.d.ts +28 -0
- package/dist/hooks/button/delete-button/index.d.ts.map +1 -0
- package/dist/hooks/button/index.d.cts +13 -0
- package/dist/hooks/button/index.d.cts.map +1 -0
- package/dist/hooks/button/index.d.mts +13 -0
- package/dist/hooks/button/index.d.mts.map +1 -0
- package/dist/hooks/button/index.d.ts +13 -0
- package/dist/hooks/button/index.d.ts.map +1 -0
- package/dist/hooks/button/navigation-button/index.d.cts +28 -0
- package/dist/hooks/button/navigation-button/index.d.cts.map +1 -0
- package/dist/hooks/button/navigation-button/index.d.mts +28 -0
- package/dist/hooks/button/navigation-button/index.d.mts.map +1 -0
- package/dist/hooks/button/navigation-button/index.d.ts +28 -0
- package/dist/hooks/button/navigation-button/index.d.ts.map +1 -0
- package/dist/hooks/button/refresh-button/index.d.cts +14 -0
- package/dist/hooks/button/refresh-button/index.d.cts.map +1 -0
- package/dist/hooks/button/refresh-button/index.d.mts +14 -0
- package/dist/hooks/button/refresh-button/index.d.mts.map +1 -0
- package/dist/hooks/button/refresh-button/index.d.ts +14 -0
- package/dist/hooks/button/refresh-button/index.d.ts.map +1 -0
- package/dist/hooks/data/index.d.cts +15 -0
- package/dist/hooks/data/index.d.cts.map +1 -0
- package/dist/hooks/data/index.d.mts +15 -0
- package/dist/hooks/data/index.d.mts.map +1 -0
- package/dist/hooks/data/useApiUrl.d.cts +2 -0
- package/dist/hooks/data/useApiUrl.d.cts.map +1 -0
- package/dist/hooks/data/useApiUrl.d.mts +2 -0
- package/dist/hooks/data/useApiUrl.d.mts.map +1 -0
- package/dist/hooks/data/useApiUrl.d.ts.map +1 -1
- package/dist/hooks/data/useCreate.d.cts +49 -0
- package/dist/hooks/data/useCreate.d.cts.map +1 -0
- package/dist/hooks/data/useCreate.d.mts +49 -0
- package/dist/hooks/data/useCreate.d.mts.map +1 -0
- package/dist/hooks/data/useCreate.d.ts +6 -6
- package/dist/hooks/data/useCreate.d.ts.map +1 -1
- package/dist/hooks/data/useCreateMany.d.cts +31 -0
- package/dist/hooks/data/useCreateMany.d.cts.map +1 -0
- package/dist/hooks/data/useCreateMany.d.mts +31 -0
- package/dist/hooks/data/useCreateMany.d.mts.map +1 -0
- package/dist/hooks/data/useCreateMany.d.ts +5 -4
- package/dist/hooks/data/useCreateMany.d.ts.map +1 -1
- package/dist/hooks/data/useCustom.d.cts +63 -0
- package/dist/hooks/data/useCustom.d.cts.map +1 -0
- package/dist/hooks/data/useCustom.d.mts +63 -0
- package/dist/hooks/data/useCustom.d.mts.map +1 -0
- package/dist/hooks/data/useCustom.d.ts +6 -5
- package/dist/hooks/data/useCustom.d.ts.map +1 -1
- package/dist/hooks/data/useCustomMutation.d.cts +42 -0
- package/dist/hooks/data/useCustomMutation.d.cts.map +1 -0
- package/dist/hooks/data/useCustomMutation.d.mts +42 -0
- package/dist/hooks/data/useCustomMutation.d.mts.map +1 -0
- package/dist/hooks/data/useCustomMutation.d.ts +5 -4
- package/dist/hooks/data/useCustomMutation.d.ts.map +1 -1
- package/dist/hooks/data/useDataProvider.d.cts +3 -0
- package/dist/hooks/data/useDataProvider.d.cts.map +1 -0
- package/dist/hooks/data/useDataProvider.d.mts +3 -0
- package/dist/hooks/data/useDataProvider.d.mts.map +1 -0
- package/dist/hooks/data/useDataProvider.d.ts +2 -2
- package/dist/hooks/data/useDataProvider.d.ts.map +1 -1
- package/dist/hooks/data/useDelete.d.cts +65 -0
- package/dist/hooks/data/useDelete.d.cts.map +1 -0
- package/dist/hooks/data/useDelete.d.mts +65 -0
- package/dist/hooks/data/useDelete.d.mts.map +1 -0
- package/dist/hooks/data/useDelete.d.ts +5 -4
- package/dist/hooks/data/useDelete.d.ts.map +1 -1
- package/dist/hooks/data/useDeleteMany.d.cts +65 -0
- package/dist/hooks/data/useDeleteMany.d.cts.map +1 -0
- package/dist/hooks/data/useDeleteMany.d.mts +65 -0
- package/dist/hooks/data/useDeleteMany.d.mts.map +1 -0
- package/dist/hooks/data/useDeleteMany.d.ts +5 -4
- package/dist/hooks/data/useDeleteMany.d.ts.map +1 -1
- package/dist/hooks/data/useInfiniteList.d.cts +74 -0
- package/dist/hooks/data/useInfiniteList.d.cts.map +1 -0
- package/dist/hooks/data/useInfiniteList.d.mts +74 -0
- package/dist/hooks/data/useInfiniteList.d.mts.map +1 -0
- package/dist/hooks/data/useInfiniteList.d.ts +9 -7
- package/dist/hooks/data/useInfiniteList.d.ts.map +1 -1
- package/dist/hooks/data/useList.d.cts +73 -0
- package/dist/hooks/data/useList.d.cts.map +1 -0
- package/dist/hooks/data/useList.d.mts +73 -0
- package/dist/hooks/data/useList.d.mts.map +1 -0
- package/dist/hooks/data/useList.d.ts +9 -7
- package/dist/hooks/data/useList.d.ts.map +1 -1
- package/dist/hooks/data/useMany.d.cts +48 -0
- package/dist/hooks/data/useMany.d.cts.map +1 -0
- package/dist/hooks/data/useMany.d.mts +48 -0
- package/dist/hooks/data/useMany.d.mts.map +1 -0
- package/dist/hooks/data/useMany.d.ts +4 -2
- package/dist/hooks/data/useMany.d.ts.map +1 -1
- package/dist/hooks/data/useOne.d.cts +50 -0
- package/dist/hooks/data/useOne.d.cts.map +1 -0
- package/dist/hooks/data/useOne.d.mts +50 -0
- package/dist/hooks/data/useOne.d.mts.map +1 -0
- package/dist/hooks/data/useOne.d.ts +4 -2
- package/dist/hooks/data/useOne.d.ts.map +1 -1
- package/dist/hooks/data/useUpdate.d.cts +83 -0
- package/dist/hooks/data/useUpdate.d.cts.map +1 -0
- package/dist/hooks/data/useUpdate.d.mts +83 -0
- package/dist/hooks/data/useUpdate.d.mts.map +1 -0
- package/dist/hooks/data/useUpdate.d.ts +10 -4
- package/dist/hooks/data/useUpdate.d.ts.map +1 -1
- package/dist/hooks/data/useUpdateMany.d.cts +84 -0
- package/dist/hooks/data/useUpdateMany.d.cts.map +1 -0
- package/dist/hooks/data/useUpdateMany.d.mts +84 -0
- package/dist/hooks/data/useUpdateMany.d.mts.map +1 -0
- package/dist/hooks/data/useUpdateMany.d.ts +10 -4
- package/dist/hooks/data/useUpdateMany.d.ts.map +1 -1
- package/dist/hooks/deepMemo/index.d.cts +7 -0
- package/dist/hooks/deepMemo/index.d.cts.map +1 -0
- package/dist/hooks/deepMemo/index.d.mts +7 -0
- package/dist/hooks/deepMemo/index.d.mts.map +1 -0
- package/dist/hooks/deepMemo/index.d.ts.map +1 -1
- package/dist/hooks/export/index.d.cts +99 -0
- package/dist/hooks/export/index.d.cts.map +1 -0
- package/dist/hooks/export/index.d.mts +99 -0
- package/dist/hooks/export/index.d.mts.map +1 -0
- package/dist/hooks/export/index.d.ts +10 -9
- package/dist/hooks/export/index.d.ts.map +1 -1
- package/dist/hooks/export/types.d.cts +23 -0
- package/dist/hooks/export/types.d.cts.map +1 -0
- package/dist/hooks/export/types.d.mts +23 -0
- package/dist/hooks/export/types.d.mts.map +1 -0
- package/dist/hooks/export/types.d.ts +23 -0
- package/dist/hooks/export/types.d.ts.map +1 -0
- package/dist/hooks/form/index.d.cts +18 -0
- package/dist/hooks/form/index.d.cts.map +1 -0
- package/dist/hooks/form/index.d.mts +18 -0
- package/dist/hooks/form/index.d.mts.map +1 -0
- package/dist/hooks/form/index.d.ts +17 -1
- package/dist/hooks/form/index.d.ts.map +1 -1
- package/dist/hooks/form/types.d.cts +146 -0
- package/dist/hooks/form/types.d.cts.map +1 -0
- package/dist/hooks/form/types.d.mts +146 -0
- package/dist/hooks/form/types.d.mts.map +1 -0
- package/dist/hooks/form/types.d.ts +146 -0
- package/dist/hooks/form/types.d.ts.map +1 -0
- package/dist/hooks/i18n/index.d.cts +5 -0
- package/dist/hooks/i18n/index.d.cts.map +1 -0
- package/dist/hooks/i18n/index.d.mts +5 -0
- package/dist/hooks/i18n/index.d.mts.map +1 -0
- package/dist/hooks/i18n/index.d.ts +5 -0
- package/dist/hooks/i18n/index.d.ts.map +1 -0
- package/dist/hooks/i18n/useGetLocale.d.cts +9 -0
- package/dist/hooks/i18n/useGetLocale.d.cts.map +1 -0
- package/dist/hooks/i18n/useGetLocale.d.mts +9 -0
- package/dist/hooks/i18n/useGetLocale.d.mts.map +1 -0
- package/dist/hooks/i18n/useGetLocale.d.ts +9 -0
- package/dist/hooks/i18n/useGetLocale.d.ts.map +1 -0
- package/dist/hooks/i18n/useSetLocale.d.cts +8 -0
- package/dist/hooks/i18n/useSetLocale.d.cts.map +1 -0
- package/dist/hooks/i18n/useSetLocale.d.mts +8 -0
- package/dist/hooks/i18n/useSetLocale.d.mts.map +1 -0
- package/dist/hooks/i18n/useSetLocale.d.ts +8 -0
- package/dist/hooks/i18n/useSetLocale.d.ts.map +1 -0
- package/dist/hooks/i18n/useTranslate.d.cts.map +1 -0
- package/dist/hooks/i18n/useTranslate.d.mts +11 -0
- package/dist/hooks/i18n/useTranslate.d.mts.map +1 -0
- package/dist/hooks/i18n/useTranslate.d.ts +11 -0
- package/dist/hooks/i18n/useTranslate.d.ts.map +1 -0
- package/dist/hooks/i18n/useTranslation.d.cts +18 -0
- package/dist/hooks/i18n/useTranslation.d.cts.map +1 -0
- package/dist/hooks/i18n/useTranslation.d.mts +18 -0
- package/dist/hooks/i18n/useTranslation.d.mts.map +1 -0
- package/dist/hooks/i18n/useTranslation.d.ts +18 -0
- package/dist/hooks/i18n/useTranslation.d.ts.map +1 -0
- package/dist/hooks/import/index.d.cts +101 -0
- package/dist/hooks/import/index.d.cts.map +1 -0
- package/dist/hooks/import/index.d.mts +101 -0
- package/dist/hooks/import/index.d.mts.map +1 -0
- package/dist/hooks/import/index.d.ts +13 -12
- package/dist/hooks/import/index.d.ts.map +1 -1
- package/dist/hooks/index.d.cts +31 -0
- package/dist/hooks/index.d.cts.map +1 -0
- package/dist/hooks/index.d.mts +31 -0
- package/dist/hooks/index.d.mts.map +1 -0
- package/dist/hooks/index.d.ts +6 -2
- package/dist/hooks/index.d.ts.map +1 -1
- package/dist/hooks/invalidate/index.d.cts +12 -0
- package/dist/hooks/invalidate/index.d.cts.map +1 -0
- package/dist/hooks/invalidate/index.d.mts +12 -0
- package/dist/hooks/invalidate/index.d.mts.map +1 -0
- package/dist/hooks/invalidate/index.d.ts +2 -2
- package/dist/hooks/invalidate/index.d.ts.map +1 -1
- package/dist/hooks/legacy-router/index.d.cts +2 -0
- package/dist/hooks/legacy-router/index.d.cts.map +1 -0
- package/dist/hooks/legacy-router/index.d.mts +2 -0
- package/dist/hooks/legacy-router/index.d.mts.map +1 -0
- package/dist/hooks/legacy-router/useRouterContext.d.cts +10 -0
- package/dist/hooks/legacy-router/useRouterContext.d.cts.map +1 -0
- package/dist/hooks/legacy-router/useRouterContext.d.mts +10 -0
- package/dist/hooks/legacy-router/useRouterContext.d.mts.map +1 -0
- package/dist/hooks/legacy-router/useRouterContext.d.ts.map +1 -1
- package/dist/hooks/live/index.d.cts +5 -0
- package/dist/hooks/live/index.d.cts.map +1 -0
- package/dist/hooks/live/index.d.mts +5 -0
- package/dist/hooks/live/index.d.mts.map +1 -0
- package/dist/hooks/live/useLiveMode/index.d.cts +3 -0
- package/dist/hooks/live/useLiveMode/index.d.cts.map +1 -0
- package/dist/hooks/live/useLiveMode/index.d.mts +3 -0
- package/dist/hooks/live/useLiveMode/index.d.mts.map +1 -0
- package/dist/hooks/live/useLiveMode/index.d.ts +1 -1
- package/dist/hooks/live/useLiveMode/index.d.ts.map +1 -1
- package/dist/hooks/live/usePublish/index.d.cts +3 -0
- package/dist/hooks/live/usePublish/index.d.cts.map +1 -0
- package/dist/hooks/live/usePublish/index.d.mts +3 -0
- package/dist/hooks/live/usePublish/index.d.mts.map +1 -0
- package/dist/hooks/live/usePublish/index.d.ts +2 -2
- package/dist/hooks/live/usePublish/index.d.ts.map +1 -1
- package/dist/hooks/live/useResourceSubscription/index.d.cts +43 -0
- package/dist/hooks/live/useResourceSubscription/index.d.cts.map +1 -0
- package/dist/hooks/live/useResourceSubscription/index.d.mts +43 -0
- package/dist/hooks/live/useResourceSubscription/index.d.mts.map +1 -0
- package/dist/hooks/live/useResourceSubscription/index.d.ts +7 -8
- package/dist/hooks/live/useResourceSubscription/index.d.ts.map +1 -1
- package/dist/hooks/live/useSubscription/index.d.cts +57 -0
- package/dist/hooks/live/useSubscription/index.d.cts.map +1 -0
- package/dist/hooks/live/useSubscription/index.d.mts +57 -0
- package/dist/hooks/live/useSubscription/index.d.mts.map +1 -0
- package/dist/hooks/live/useSubscription/index.d.ts +6 -5
- package/dist/hooks/live/useSubscription/index.d.ts.map +1 -1
- package/dist/hooks/memoized/index.d.cts +6 -0
- package/dist/hooks/memoized/index.d.cts.map +1 -0
- package/dist/hooks/memoized/index.d.mts +6 -0
- package/dist/hooks/memoized/index.d.mts.map +1 -0
- package/dist/hooks/memoized/index.d.ts.map +1 -1
- package/dist/hooks/menu/index.d.cts +2 -0
- package/dist/hooks/menu/index.d.cts.map +1 -0
- package/dist/hooks/menu/index.d.mts +2 -0
- package/dist/hooks/menu/index.d.mts.map +1 -0
- package/dist/hooks/menu/useMenu.d.cts +28 -0
- package/dist/hooks/menu/useMenu.d.cts.map +1 -0
- package/dist/hooks/menu/useMenu.d.mts +28 -0
- package/dist/hooks/menu/useMenu.d.mts.map +1 -0
- package/dist/hooks/menu/useMenu.d.ts +3 -3
- package/dist/hooks/menu/useMenu.d.ts.map +1 -1
- package/dist/hooks/modal/index.d.cts +2 -0
- package/dist/hooks/modal/index.d.cts.map +1 -0
- package/dist/hooks/modal/index.d.mts +2 -0
- package/dist/hooks/modal/index.d.mts.map +1 -0
- package/dist/hooks/modal/useModal/index.d.cts +13 -0
- package/dist/hooks/modal/useModal/index.d.cts.map +1 -0
- package/dist/hooks/modal/useModal/index.d.mts +13 -0
- package/dist/hooks/modal/useModal/index.d.mts.map +1 -0
- package/dist/hooks/modal/useModal/index.d.ts +2 -2
- package/dist/hooks/modal/useModal/index.d.ts.map +1 -1
- package/dist/hooks/navigation/index.d.cts +28 -0
- package/dist/hooks/navigation/index.d.cts.map +1 -0
- package/dist/hooks/navigation/index.d.mts +28 -0
- package/dist/hooks/navigation/index.d.mts.map +1 -0
- package/dist/hooks/navigation/index.d.ts +3 -2
- package/dist/hooks/navigation/index.d.ts.map +1 -1
- package/dist/hooks/notification/index.d.cts +4 -0
- package/dist/hooks/notification/index.d.cts.map +1 -0
- package/dist/hooks/notification/index.d.mts +4 -0
- package/dist/hooks/notification/index.d.mts.map +1 -0
- package/dist/hooks/notification/useCancelNotification/index.d.cts +8 -0
- package/dist/hooks/notification/useCancelNotification/index.d.cts.map +1 -0
- package/dist/hooks/notification/useCancelNotification/index.d.mts +8 -0
- package/dist/hooks/notification/useCancelNotification/index.d.mts.map +1 -0
- package/dist/hooks/notification/useCancelNotification/index.d.ts +2 -2
- package/dist/hooks/notification/useCancelNotification/index.d.ts.map +1 -1
- package/dist/hooks/notification/useHandleNotification/index.d.cts +3 -0
- package/dist/hooks/notification/useHandleNotification/index.d.cts.map +1 -0
- package/dist/hooks/notification/useHandleNotification/index.d.mts +3 -0
- package/dist/hooks/notification/useHandleNotification/index.d.mts.map +1 -0
- package/dist/hooks/notification/useHandleNotification/index.d.ts +1 -1
- package/dist/hooks/notification/useHandleNotification/index.d.ts.map +1 -1
- package/dist/hooks/notification/useNotification/index.d.cts +3 -0
- package/dist/hooks/notification/useNotification/index.d.cts.map +1 -0
- package/dist/hooks/notification/useNotification/index.d.mts +3 -0
- package/dist/hooks/notification/useNotification/index.d.mts.map +1 -0
- package/dist/hooks/notification/useNotification/index.d.ts +1 -1
- package/dist/hooks/notification/useNotification/index.d.ts.map +1 -1
- package/dist/hooks/redirection/index.d.cts +11 -0
- package/dist/hooks/redirection/index.d.cts.map +1 -0
- package/dist/hooks/redirection/index.d.mts +11 -0
- package/dist/hooks/redirection/index.d.mts.map +1 -0
- package/dist/hooks/redirection/index.d.ts +4 -2
- package/dist/hooks/redirection/index.d.ts.map +1 -1
- package/dist/hooks/refine/index.d.cts +6 -0
- package/dist/hooks/refine/index.d.cts.map +1 -0
- package/dist/hooks/refine/index.d.mts +6 -0
- package/dist/hooks/refine/index.d.mts.map +1 -0
- package/dist/hooks/refine/useMutationMode.d.cts +16 -0
- package/dist/hooks/refine/useMutationMode.d.cts.map +1 -0
- package/dist/hooks/refine/useMutationMode.d.mts +16 -0
- package/dist/hooks/refine/useMutationMode.d.mts.map +1 -0
- package/dist/hooks/refine/useMutationMode.d.ts +3 -2
- package/dist/hooks/refine/useMutationMode.d.ts.map +1 -1
- package/dist/hooks/refine/useRefineContext.d.cts +20 -0
- package/dist/hooks/refine/useRefineContext.d.cts.map +1 -0
- package/dist/hooks/refine/useRefineContext.d.mts +20 -0
- package/dist/hooks/refine/useRefineContext.d.mts.map +1 -0
- package/dist/hooks/refine/useRefineContext.d.ts +2 -2
- package/dist/hooks/refine/useSyncWithLocation.d.cts +13 -0
- package/dist/hooks/refine/useSyncWithLocation.d.cts.map +1 -0
- package/dist/hooks/refine/useSyncWithLocation.d.mts +13 -0
- package/dist/hooks/refine/useSyncWithLocation.d.mts.map +1 -0
- package/dist/hooks/refine/useSyncWithLocation.d.ts +2 -2
- package/dist/hooks/refine/useSyncWithLocation.d.ts.map +1 -1
- package/dist/hooks/refine/useTitle.d.cts +10 -0
- package/dist/hooks/refine/useTitle.d.cts.map +1 -0
- package/dist/hooks/refine/useTitle.d.mts +10 -0
- package/dist/hooks/refine/useTitle.d.mts.map +1 -0
- package/dist/hooks/refine/useTitle.d.ts +1 -1
- package/dist/hooks/refine/useTitle.d.ts.map +1 -1
- package/dist/hooks/refine/useWarnAboutChange/index.d.cts +16 -0
- package/dist/hooks/refine/useWarnAboutChange/index.d.cts.map +1 -0
- package/dist/hooks/refine/useWarnAboutChange/index.d.mts +16 -0
- package/dist/hooks/refine/useWarnAboutChange/index.d.mts.map +1 -0
- package/dist/hooks/refine/useWarnAboutChange/index.d.ts +3 -2
- package/dist/hooks/refine/useWarnAboutChange/index.d.ts.map +1 -1
- package/dist/hooks/resource/index.d.cts +3 -0
- package/dist/hooks/resource/index.d.cts.map +1 -0
- package/dist/hooks/resource/index.d.mts +3 -0
- package/dist/hooks/resource/index.d.mts.map +1 -0
- package/dist/hooks/resource/useResource/index.d.cts +63 -0
- package/dist/hooks/resource/useResource/index.d.cts.map +1 -0
- package/dist/hooks/resource/useResource/index.d.mts +63 -0
- package/dist/hooks/resource/useResource/index.d.mts.map +1 -0
- package/dist/hooks/resource/useResource/index.d.ts +14 -6
- package/dist/hooks/resource/useResource/index.d.ts.map +1 -1
- package/dist/hooks/resource/useResourceWithRoute/index.d.cts +8 -0
- package/dist/hooks/resource/useResourceWithRoute/index.d.cts.map +1 -0
- package/dist/hooks/resource/useResourceWithRoute/index.d.mts +8 -0
- package/dist/hooks/resource/useResourceWithRoute/index.d.mts.map +1 -0
- package/dist/hooks/resource/useResourceWithRoute/index.d.ts +2 -2
- package/dist/hooks/resource/useResourceWithRoute/index.d.ts.map +1 -1
- package/dist/hooks/router/index.d.cts +8 -0
- package/dist/hooks/router/index.d.cts.map +1 -0
- package/dist/hooks/router/index.d.mts +8 -0
- package/dist/hooks/router/index.d.mts.map +1 -0
- package/dist/hooks/router/use-back/index.d.cts +2 -0
- package/dist/hooks/router/use-back/index.d.cts.map +1 -0
- package/dist/hooks/router/use-back/index.d.mts +2 -0
- package/dist/hooks/router/use-back/index.d.mts.map +1 -0
- package/dist/hooks/router/use-get-to-path/index.d.cts +19 -0
- package/dist/hooks/router/use-get-to-path/index.d.cts.map +1 -0
- package/dist/hooks/router/use-get-to-path/index.d.mts +19 -0
- package/dist/hooks/router/use-get-to-path/index.d.mts.map +1 -0
- package/dist/hooks/router/use-get-to-path/index.d.ts +4 -3
- package/dist/hooks/router/use-get-to-path/index.d.ts.map +1 -1
- package/dist/hooks/router/use-go/index.d.cts +33 -0
- package/dist/hooks/router/use-go/index.d.cts.map +1 -0
- package/dist/hooks/router/use-go/index.d.mts +33 -0
- package/dist/hooks/router/use-go/index.d.mts.map +1 -0
- package/dist/hooks/router/use-go/index.d.ts +7 -5
- package/dist/hooks/router/use-go/index.d.ts.map +1 -1
- package/dist/hooks/router/use-link/index.d.cts +6 -0
- package/dist/hooks/router/use-link/index.d.cts.map +1 -0
- package/dist/hooks/router/use-link/index.d.mts +6 -0
- package/dist/hooks/router/use-link/index.d.mts.map +1 -0
- package/dist/hooks/router/use-parse/index.d.cts +5 -0
- package/dist/hooks/router/use-parse/index.d.cts.map +1 -0
- package/dist/hooks/router/use-parse/index.d.mts +5 -0
- package/dist/hooks/router/use-parse/index.d.mts.map +1 -0
- package/dist/hooks/router/use-parse/index.d.ts +2 -2
- package/dist/hooks/router/use-parse/index.d.ts.map +1 -1
- package/dist/hooks/router/use-parsed/index.d.cts +2 -0
- package/dist/hooks/router/use-parsed/index.d.cts.map +1 -0
- package/dist/hooks/router/use-parsed/index.d.mts +2 -0
- package/dist/hooks/router/use-parsed/index.d.mts.map +1 -0
- package/dist/hooks/router/use-router-misuse-warning/index.d.cts +3 -0
- package/dist/hooks/router/use-router-misuse-warning/index.d.cts.map +1 -0
- package/dist/hooks/router/use-router-misuse-warning/index.d.mts +3 -0
- package/dist/hooks/router/use-router-misuse-warning/index.d.mts.map +1 -0
- package/dist/hooks/router/use-router-misuse-warning/index.d.ts +2 -2
- package/dist/hooks/router/use-router-misuse-warning/index.d.ts.map +1 -1
- package/dist/hooks/router/use-to-path/index.d.cts +18 -0
- package/dist/hooks/router/use-to-path/index.d.cts.map +1 -0
- package/dist/hooks/router/use-to-path/index.d.mts +18 -0
- package/dist/hooks/router/use-to-path/index.d.mts.map +1 -0
- package/dist/hooks/router/use-to-path/index.d.ts +3 -2
- package/dist/hooks/router/use-to-path/index.d.ts.map +1 -1
- package/dist/hooks/show/index.d.cts +17 -0
- package/dist/hooks/show/index.d.cts.map +1 -0
- package/dist/hooks/show/index.d.mts +17 -0
- package/dist/hooks/show/index.d.mts.map +1 -0
- package/dist/hooks/show/index.d.ts +16 -1
- package/dist/hooks/show/index.d.ts.map +1 -1
- package/dist/hooks/show/types.d.cts +52 -0
- package/dist/hooks/show/types.d.cts.map +1 -0
- package/dist/hooks/show/types.d.mts +52 -0
- package/dist/hooks/show/types.d.mts.map +1 -0
- package/dist/hooks/show/types.d.ts +52 -0
- package/dist/hooks/show/types.d.ts.map +1 -0
- package/dist/hooks/show/useShow.d.cts +57 -0
- package/dist/hooks/show/useShow.d.cts.map +1 -0
- package/dist/hooks/show/useShow.d.mts +57 -0
- package/dist/hooks/show/useShow.d.mts.map +1 -0
- package/dist/hooks/show/useShow.d.ts +5 -3
- package/dist/hooks/show/useShow.d.ts.map +1 -1
- package/dist/hooks/use-refine-options/index.d.cts +2 -0
- package/dist/hooks/use-refine-options/index.d.cts.map +1 -0
- package/dist/hooks/use-refine-options/index.d.mts +2 -0
- package/dist/hooks/use-refine-options/index.d.mts.map +1 -0
- package/dist/hooks/use-refine-options/index.d.ts +2 -0
- package/dist/hooks/use-refine-options/index.d.ts.map +1 -0
- package/dist/hooks/use-resource-params/index.d.cts +43 -0
- package/dist/hooks/use-resource-params/index.d.cts.map +1 -0
- package/dist/hooks/use-resource-params/index.d.mts +43 -0
- package/dist/hooks/use-resource-params/index.d.mts.map +1 -0
- package/dist/hooks/use-resource-params/index.d.ts +43 -0
- package/dist/hooks/use-resource-params/index.d.ts.map +1 -0
- package/dist/hooks/use-resource-params/use-action/index.d.cts +12 -0
- package/dist/hooks/use-resource-params/use-action/index.d.cts.map +1 -0
- package/dist/hooks/use-resource-params/use-action/index.d.mts +12 -0
- package/dist/hooks/use-resource-params/use-action/index.d.mts.map +1 -0
- package/dist/hooks/use-resource-params/use-action/index.d.ts +12 -0
- package/dist/hooks/use-resource-params/use-action/index.d.ts.map +1 -0
- package/dist/hooks/use-resource-params/use-id/index.d.cts +12 -0
- package/dist/hooks/use-resource-params/use-id/index.d.cts.map +1 -0
- package/dist/hooks/use-resource-params/use-id/index.d.mts +12 -0
- package/dist/hooks/use-resource-params/use-id/index.d.mts.map +1 -0
- package/dist/hooks/use-resource-params/use-id/index.d.ts +12 -0
- package/dist/hooks/use-resource-params/use-id/index.d.ts.map +1 -0
- package/dist/hooks/useKeys/index.d.cts +5 -0
- package/dist/hooks/useKeys/index.d.cts.map +1 -0
- package/dist/hooks/useKeys/index.d.mts +5 -0
- package/dist/hooks/useKeys/index.d.mts.map +1 -0
- package/dist/hooks/useLoadingOvertime/index.d.cts +49 -0
- package/dist/hooks/useLoadingOvertime/index.d.cts.map +1 -0
- package/dist/hooks/useLoadingOvertime/index.d.mts +49 -0
- package/dist/hooks/useLoadingOvertime/index.d.mts.map +1 -0
- package/dist/hooks/useLoadingOvertime/index.d.ts +6 -6
- package/dist/hooks/useLoadingOvertime/index.d.ts.map +1 -1
- package/dist/hooks/useMeta/index.d.cts +19 -0
- package/dist/hooks/useMeta/index.d.cts.map +1 -0
- package/dist/hooks/useMeta/index.d.mts +19 -0
- package/dist/hooks/useMeta/index.d.mts.map +1 -0
- package/dist/hooks/useMeta/index.d.ts +4 -3
- package/dist/hooks/useMeta/index.d.ts.map +1 -1
- package/dist/hooks/useSelect/index.d.cts +131 -0
- package/dist/hooks/useSelect/index.d.cts.map +1 -0
- package/dist/hooks/useSelect/index.d.mts +131 -0
- package/dist/hooks/useSelect/index.d.mts.map +1 -0
- package/dist/hooks/useSelect/index.d.ts +27 -11
- package/dist/hooks/useSelect/index.d.ts.map +1 -1
- package/dist/hooks/useTable/index.d.cts +167 -0
- package/dist/hooks/useTable/index.d.cts.map +1 -0
- package/dist/hooks/useTable/index.d.mts +167 -0
- package/dist/hooks/useTable/index.d.mts.map +1 -0
- package/dist/hooks/useTable/index.d.ts +25 -23
- package/dist/hooks/useTable/index.d.ts.map +1 -1
- package/dist/hooks/useTelemetryData/index.d.cts +3 -0
- package/dist/hooks/useTelemetryData/index.d.cts.map +1 -0
- package/dist/hooks/useTelemetryData/index.d.mts +3 -0
- package/dist/hooks/useTelemetryData/index.d.mts.map +1 -0
- package/dist/hooks/useTelemetryData/index.d.ts +1 -1
- package/dist/hooks/useTelemetryData/index.d.ts.map +1 -1
- package/dist/index.cjs +72 -0
- package/dist/index.cjs.map +1 -0
- package/dist/index.d.cts +24 -0
- package/dist/index.d.cts.map +1 -0
- package/dist/index.d.mts +24 -0
- package/dist/index.d.mts.map +1 -0
- package/dist/index.d.ts +17 -5
- package/dist/index.d.ts.map +1 -1
- package/dist/index.mjs +72 -0
- package/dist/index.mjs.map +1 -0
- package/package.json +25 -10
- package/refine.config.js +97 -102
- package/src/components/authenticated/index.tsx +159 -161
- package/src/components/autoSaveIndicator/index.tsx +52 -29
- package/src/components/canAccess/index.tsx +89 -97
- package/src/components/containers/index.ts +1 -1
- package/src/components/containers/refine/index.tsx +185 -375
- package/src/components/gh-banner/index.tsx +235 -242
- package/src/components/gh-banner/styles.ts +5 -5
- package/src/components/index.ts +1 -1
- package/src/components/layoutWrapper/defaultLayout/index.tsx +2 -2
- package/src/components/layoutWrapper/index.tsx +89 -88
- package/src/components/pages/auth/components/forgotPassword/index.tsx +86 -98
- package/src/components/pages/auth/components/login/index.tsx +170 -185
- package/src/components/pages/auth/components/register/index.tsx +144 -161
- package/src/components/pages/auth/components/updatePassword/index.tsx +81 -90
- package/src/components/pages/auth/index.tsx +29 -29
- package/src/components/pages/auth/types.tsx +228 -0
- package/src/components/pages/config-error/index.tsx +422 -422
- package/src/components/pages/config-success/index.tsx +249 -260
- package/src/components/pages/error/index.tsx +48 -48
- package/src/components/pages/login/index.tsx +59 -73
- package/src/components/pages/ready/index.tsx +21 -29
- package/src/components/pages/welcome/index.tsx +7 -7
- package/src/components/routeChangeHandler/index.tsx +7 -7
- package/src/components/telemetry/index.tsx +32 -32
- package/src/components/telemetry/types.ts +15 -0
- package/src/components/undoableQueue/index.tsx +53 -51
- package/src/contexts/accessControl/index.tsx +36 -40
- package/src/contexts/accessControl/types.ts +93 -0
- package/src/contexts/auditLog/index.tsx +8 -10
- package/src/contexts/auditLog/types.ts +45 -0
- package/src/contexts/auth/index.tsx +169 -172
- package/src/contexts/auth/types.ts +115 -0
- package/src/contexts/data/index.tsx +31 -26
- package/src/contexts/data/types.ts +490 -0
- package/src/contexts/i18n/index.tsx +23 -0
- package/src/contexts/i18n/types.ts +22 -0
- package/src/contexts/live/index.tsx +11 -11
- package/src/contexts/live/types.ts +113 -0
- package/src/contexts/notification/index.tsx +8 -10
- package/src/contexts/notification/types.ts +47 -0
- package/src/contexts/refine/index.tsx +85 -83
- package/src/contexts/refine/types.ts +323 -0
- package/src/contexts/resource/index.tsx +12 -22
- package/src/contexts/resource/types.ts +205 -0
- package/src/contexts/router/index.tsx +12 -11
- package/src/contexts/router/legacy/index.tsx +41 -0
- package/src/contexts/router/legacy/types.ts +50 -0
- package/src/contexts/router/picker/index.tsx +21 -0
- package/src/contexts/router/types.ts +79 -0
- package/src/contexts/undoableQueue/index.tsx +82 -0
- package/src/contexts/undoableQueue/types.ts +22 -0
- package/src/contexts/unsavedWarn/index.tsx +10 -10
- package/src/contexts/unsavedWarn/types.ts +4 -0
- package/src/definitions/helpers/async-debounce/index.ts +67 -0
- package/src/definitions/helpers/check-router-prop-misuse/index.ts +22 -21
- package/src/definitions/helpers/defer-execution/index.ts +10 -0
- package/src/definitions/helpers/downloadInBrowser/index.ts +19 -20
- package/src/definitions/helpers/flatten-object-keys/index.ts +26 -29
- package/src/definitions/helpers/generateDocumentTitle/index.ts +47 -52
- package/src/definitions/helpers/handleMultiple/index.ts +4 -4
- package/src/definitions/helpers/handlePaginationParams/index.ts +18 -19
- package/src/definitions/helpers/handleRefineOptions/index.ts +90 -91
- package/src/definitions/helpers/handleUseParams/index.tsx +7 -7
- package/src/definitions/helpers/hasPermission/index.ts +6 -6
- package/src/definitions/helpers/humanizeString/index.ts +9 -9
- package/src/definitions/helpers/importCSVMapper/index.ts +11 -10
- package/src/definitions/helpers/index.ts +4 -2
- package/src/definitions/helpers/keys/index.ts +206 -259
- package/src/definitions/helpers/legacy-resource-transform/index.ts +13 -17
- package/src/definitions/helpers/menu/create-resource-key.ts +21 -24
- package/src/definitions/helpers/menu/create-tree.ts +62 -64
- package/src/definitions/helpers/pick-resource/index.ts +26 -26
- package/src/definitions/helpers/pickDataProvider/index.ts +16 -16
- package/src/definitions/helpers/pickNotDeprecated/index.ts +2 -2
- package/src/definitions/helpers/property-path-to-array/index.ts +3 -3
- package/src/definitions/helpers/queryKeys/index.ts +94 -95
- package/src/definitions/helpers/redirectPage/index.ts +22 -20
- package/src/definitions/helpers/routeGenerator/index.ts +17 -17
- package/src/definitions/helpers/router/__tests__/check-by-segments.ts +12 -15
- package/src/definitions/helpers/router/__tests__/compose-route.ts +48 -48
- package/src/definitions/helpers/router/__tests__/get-action-routes-from-resource.ts +152 -152
- package/src/definitions/helpers/router/__tests__/get-default-action-path.ts +39 -41
- package/src/definitions/helpers/router/__tests__/get-parent-prefix-for-resource.ts +69 -73
- package/src/definitions/helpers/router/__tests__/get-parent-resource.ts +40 -40
- package/src/definitions/helpers/router/__tests__/is-segment-counts-same.ts +11 -14
- package/src/definitions/helpers/router/__tests__/match-resource-from-route.ts +55 -55
- package/src/definitions/helpers/router/__tests__/pick-matched-route.ts +74 -74
- package/src/definitions/helpers/router/__tests__/pick-route-params.ts +12 -12
- package/src/definitions/helpers/router/__tests__/prepare-route-params.ts +18 -18
- package/src/definitions/helpers/router/__tests__/remove-leading-trailing-slashes.ts +9 -9
- package/src/definitions/helpers/router/__tests__/split-to-segments.ts +9 -9
- package/src/definitions/helpers/router/check-by-segments.ts +12 -12
- package/src/definitions/helpers/router/compose-route.ts +27 -28
- package/src/definitions/helpers/router/get-action-routes-from-resource.ts +43 -48
- package/src/definitions/helpers/router/get-default-action-path.ts +20 -20
- package/src/definitions/helpers/router/get-parent-prefix-for-resource.ts +23 -25
- package/src/definitions/helpers/router/get-parent-resource.ts +19 -19
- package/src/definitions/helpers/router/is-parameter.ts +1 -1
- package/src/definitions/helpers/router/is-segment-counts-same.ts +3 -3
- package/src/definitions/helpers/router/match-resource-from-route.ts +21 -20
- package/src/definitions/helpers/router/pick-matched-route.ts +44 -44
- package/src/definitions/helpers/router/pick-route-params.ts +7 -7
- package/src/definitions/helpers/router/prepare-route-params.ts +13 -10
- package/src/definitions/helpers/router/remove-leading-trailing-slashes.ts +1 -1
- package/src/definitions/helpers/router/split-to-segments.ts +2 -2
- package/src/definitions/helpers/safe-translate/index.ts +13 -13
- package/src/definitions/helpers/sanitize-resource/index.ts +27 -28
- package/src/definitions/helpers/sequentialPromises/index.ts +21 -21
- package/src/definitions/helpers/treeView/createTreeView/index.ts +39 -34
- package/src/definitions/helpers/useActiveAuthProvider/index.ts +18 -18
- package/src/definitions/helpers/useInfinitePagination/index.ts +17 -17
- package/src/definitions/helpers/useMediaQuery/index.ts +11 -11
- package/src/definitions/helpers/useUserFriendlyName/index.ts +11 -14
- package/src/definitions/helpers/userFriendlyResourceName/index.ts +7 -7
- package/src/definitions/helpers/userFriendlySeconds/index.ts +1 -1
- package/src/definitions/table/index.ts +134 -138
- package/src/definitions/upload/file2Base64/index.ts +15 -15
- package/src/hooks/accessControl/useCan/index.ts +59 -57
- package/src/hooks/accessControl/useCanWithoutCache.ts +32 -32
- package/src/hooks/auditLog/useLog/index.ts +129 -126
- package/src/hooks/auditLog/useLogList/index.ts +48 -46
- package/src/hooks/auth/useForgotPassword/index.ts +168 -168
- package/src/hooks/auth/useGetIdentity/index.ts +58 -59
- package/src/hooks/auth/useInvalidateAuthStore/index.ts +12 -12
- package/src/hooks/auth/useIsAuthenticated/index.ts +50 -53
- package/src/hooks/auth/useIsExistAuthentication/index.ts +3 -3
- package/src/hooks/auth/useLogin/index.ts +188 -200
- package/src/hooks/auth/useLogout/index.ts +187 -183
- package/src/hooks/auth/useOnError/index.ts +79 -78
- package/src/hooks/auth/usePermissions/index.ts +97 -64
- package/src/hooks/auth/useRegister/index.ts +176 -183
- package/src/hooks/auth/useUpdatePassword/index.ts +190 -199
- package/src/hooks/breadcrumb/index.ts +106 -112
- package/src/hooks/button/actionable-button/index.tsx +26 -0
- package/src/hooks/button/button-can-access/index.tsx +72 -0
- package/src/hooks/button/delete-button/index.tsx +101 -0
- package/src/hooks/button/index.tsx +35 -0
- package/src/hooks/button/navigation-button/index.tsx +106 -0
- package/src/hooks/button/refresh-button/index.tsx +65 -0
- package/src/hooks/data/useApiUrl.ts +7 -8
- package/src/hooks/data/useCreate.ts +245 -244
- package/src/hooks/data/useCreateMany.ts +222 -228
- package/src/hooks/data/useCustom.ts +185 -185
- package/src/hooks/data/useCustomMutation.ts +179 -178
- package/src/hooks/data/useDataProvider.tsx +35 -33
- package/src/hooks/data/useDelete.ts +451 -457
- package/src/hooks/data/useDeleteMany.ts +479 -487
- package/src/hooks/data/useInfiniteList.ts +283 -283
- package/src/hooks/data/useList.ts +283 -285
- package/src/hooks/data/useMany.ts +218 -218
- package/src/hooks/data/useOne.ts +213 -213
- package/src/hooks/data/useUpdate.ts +556 -559
- package/src/hooks/data/useUpdateMany.ts +584 -587
- package/src/hooks/deepMemo/index.tsx +5 -5
- package/src/hooks/export/index.ts +230 -221
- package/src/hooks/export/types.ts +31 -0
- package/src/hooks/form/index.ts +363 -1
- package/src/hooks/form/types.ts +249 -0
- package/src/hooks/i18n/index.ts +4 -0
- package/src/hooks/i18n/useGetLocale.ts +17 -0
- package/src/hooks/i18n/useSetLocale.ts +15 -0
- package/src/hooks/i18n/useTranslate.ts +40 -0
- package/src/hooks/i18n/useTranslation.tsx +24 -0
- package/src/hooks/import/index.tsx +268 -271
- package/src/hooks/index.ts +6 -2
- package/src/hooks/invalidate/index.tsx +79 -78
- package/src/hooks/legacy-router/useRouterContext.ts +13 -12
- package/src/hooks/live/useLiveMode/index.ts +8 -5
- package/src/hooks/live/usePublish/index.ts +4 -4
- package/src/hooks/live/useResourceSubscription/index.ts +105 -107
- package/src/hooks/live/useSubscription/index.ts +78 -78
- package/src/hooks/memoized/index.tsx +6 -6
- package/src/hooks/menu/useMenu.tsx +120 -125
- package/src/hooks/modal/useModal/index.tsx +16 -16
- package/src/hooks/navigation/index.ts +370 -398
- package/src/hooks/notification/useCancelNotification/index.tsx +6 -6
- package/src/hooks/notification/useHandleNotification/index.ts +19 -18
- package/src/hooks/notification/useNotification/index.ts +3 -3
- package/src/hooks/redirection/index.ts +45 -48
- package/src/hooks/refine/useMutationMode.ts +17 -7
- package/src/hooks/refine/useRefineContext.ts +36 -36
- package/src/hooks/refine/useSyncWithLocation.ts +4 -4
- package/src/hooks/refine/useTitle.tsx +5 -3
- package/src/hooks/refine/useWarnAboutChange/index.ts +12 -14
- package/src/hooks/resource/useResource/index.ts +151 -151
- package/src/hooks/resource/useResourceWithRoute/index.ts +16 -14
- package/src/hooks/router/use-back/index.tsx +8 -8
- package/src/hooks/router/use-get-to-path/index.ts +41 -39
- package/src/hooks/router/use-go/index.tsx +76 -74
- package/src/hooks/router/use-link/index.tsx +10 -10
- package/src/hooks/router/use-parse/index.tsx +15 -15
- package/src/hooks/router/use-parsed/index.tsx +4 -4
- package/src/hooks/router/use-router-misuse-warning/index.ts +12 -12
- package/src/hooks/router/use-to-path/index.ts +12 -11
- package/src/hooks/show/index.ts +92 -1
- package/src/hooks/show/types.ts +92 -0
- package/src/hooks/show/useShow.ts +138 -137
- package/src/hooks/use-refine-options/index.tsx +8 -0
- package/src/hooks/use-resource-params/index.ts +89 -0
- package/src/hooks/use-resource-params/use-action/index.tsx +27 -0
- package/src/hooks/use-resource-params/use-id/index.tsx +26 -0
- package/src/hooks/useKeys/index.tsx +7 -7
- package/src/hooks/useLoadingOvertime/index.ts +74 -76
- package/src/hooks/useMeta/index.ts +24 -22
- package/src/hooks/useSelect/index.ts +321 -281
- package/src/hooks/useTable/index.ts +492 -515
- package/src/hooks/useTelemetryData/index.ts +53 -53
- package/src/index.tsx +175 -132
- package/tsconfig.json +24 -25
- package/dist/contexts/accessControl/IAccessControlContext.d.ts +0 -49
- package/dist/contexts/accessControl/IAccessControlContext.d.ts.map +0 -1
- package/dist/contexts/auditLog/IAuditLogContext.d.ts +0 -29
- package/dist/contexts/auditLog/IAuditLogContext.d.ts.map +0 -1
- package/dist/contexts/auth/IAuthContext.d.ts +0 -26
- package/dist/contexts/auth/IAuthContext.d.ts.map +0 -1
- package/dist/contexts/data/IDataContext.d.ts +0 -203
- package/dist/contexts/data/IDataContext.d.ts.map +0 -1
- package/dist/contexts/legacy-router/IRouterContext.d.ts +0 -35
- package/dist/contexts/legacy-router/IRouterContext.d.ts.map +0 -1
- package/dist/contexts/legacy-router/index.d.ts +0 -9
- package/dist/contexts/legacy-router/index.d.ts.map +0 -1
- package/dist/contexts/live/ILiveContext.d.ts +0 -49
- package/dist/contexts/live/ILiveContext.d.ts.map +0 -1
- package/dist/contexts/notification/INotificationContext.d.ts +0 -14
- package/dist/contexts/notification/INotificationContext.d.ts.map +0 -1
- package/dist/contexts/refine/IRefineContext.d.ts +0 -129
- package/dist/contexts/refine/IRefineContext.d.ts.map +0 -1
- package/dist/contexts/resource/IResourceContext.d.ts +0 -49
- package/dist/contexts/resource/IResourceContext.d.ts.map +0 -1
- package/dist/contexts/router-picker/index.d.ts.map +0 -1
- package/dist/contexts/translation/ITranslationContext.d.ts +0 -11
- package/dist/contexts/translation/ITranslationContext.d.ts.map +0 -1
- package/dist/contexts/translation/index.d.ts +0 -9
- package/dist/contexts/translation/index.d.ts.map +0 -1
- package/dist/contexts/undoableQueue/IUndoableQueueContext.d.ts +0 -7
- package/dist/contexts/undoableQueue/IUndoableQueueContext.d.ts.map +0 -1
- package/dist/contexts/undoableQueue/actionTypes.d.ts +0 -6
- package/dist/contexts/undoableQueue/actionTypes.d.ts.map +0 -1
- package/dist/contexts/undoableQueue/undoableQueueContext.d.ts +0 -8
- package/dist/contexts/undoableQueue/undoableQueueContext.d.ts.map +0 -1
- package/dist/contexts/unsavedWarn/IUnsavedWarnContext.d.ts +0 -5
- package/dist/contexts/unsavedWarn/IUnsavedWarnContext.d.ts.map +0 -1
- package/dist/definitions/helpers/router/__tests__/check-by-segments.d.ts +0 -2
- package/dist/definitions/helpers/router/__tests__/check-by-segments.d.ts.map +0 -1
- package/dist/definitions/helpers/router/__tests__/compose-route.d.ts +0 -2
- package/dist/definitions/helpers/router/__tests__/compose-route.d.ts.map +0 -1
- package/dist/definitions/helpers/router/__tests__/get-action-routes-from-resource.d.ts +0 -2
- package/dist/definitions/helpers/router/__tests__/get-action-routes-from-resource.d.ts.map +0 -1
- package/dist/definitions/helpers/router/__tests__/get-default-action-path.d.ts +0 -2
- package/dist/definitions/helpers/router/__tests__/get-default-action-path.d.ts.map +0 -1
- package/dist/definitions/helpers/router/__tests__/get-parent-prefix-for-resource.d.ts +0 -2
- package/dist/definitions/helpers/router/__tests__/get-parent-prefix-for-resource.d.ts.map +0 -1
- package/dist/definitions/helpers/router/__tests__/get-parent-resource.d.ts +0 -2
- package/dist/definitions/helpers/router/__tests__/get-parent-resource.d.ts.map +0 -1
- package/dist/definitions/helpers/router/__tests__/is-segment-counts-same.d.ts +0 -2
- package/dist/definitions/helpers/router/__tests__/is-segment-counts-same.d.ts.map +0 -1
- package/dist/definitions/helpers/router/__tests__/match-resource-from-route.d.ts +0 -2
- package/dist/definitions/helpers/router/__tests__/match-resource-from-route.d.ts.map +0 -1
- package/dist/definitions/helpers/router/__tests__/pick-matched-route.d.ts +0 -2
- package/dist/definitions/helpers/router/__tests__/pick-matched-route.d.ts.map +0 -1
- package/dist/definitions/helpers/router/__tests__/pick-route-params.d.ts +0 -2
- package/dist/definitions/helpers/router/__tests__/pick-route-params.d.ts.map +0 -1
- package/dist/definitions/helpers/router/__tests__/prepare-route-params.d.ts +0 -2
- package/dist/definitions/helpers/router/__tests__/prepare-route-params.d.ts.map +0 -1
- package/dist/definitions/helpers/router/__tests__/remove-leading-trailing-slashes.d.ts +0 -2
- package/dist/definitions/helpers/router/__tests__/remove-leading-trailing-slashes.d.ts.map +0 -1
- package/dist/definitions/helpers/router/__tests__/split-to-segments.d.ts +0 -2
- package/dist/definitions/helpers/router/__tests__/split-to-segments.d.ts.map +0 -1
- package/dist/esm/index.js +0 -72
- package/dist/esm/index.js.map +0 -1
- package/dist/hooks/export/csvDownload.interface.d.ts +0 -20
- package/dist/hooks/export/csvDownload.interface.d.ts.map +0 -1
- package/dist/hooks/form/useForm.d.ts +0 -126
- package/dist/hooks/form/useForm.d.ts.map +0 -1
- package/dist/hooks/translate/index.d.ts +0 -4
- package/dist/hooks/translate/index.d.ts.map +0 -1
- package/dist/hooks/translate/useGetLocale.d.ts +0 -9
- package/dist/hooks/translate/useGetLocale.d.ts.map +0 -1
- package/dist/hooks/translate/useSetLocale.d.ts +0 -8
- package/dist/hooks/translate/useSetLocale.d.ts.map +0 -1
- package/dist/hooks/translate/useTranslate.d.ts.map +0 -1
- package/dist/iife/index.js +0 -72
- package/dist/iife/index.js.map +0 -1
- package/dist/index.js +0 -72
- package/dist/index.js.map +0 -1
- package/dist/interfaces/actions.d.ts +0 -10
- package/dist/interfaces/actions.d.ts.map +0 -1
- package/dist/interfaces/auditLog/index.d.ts +0 -2
- package/dist/interfaces/auditLog/index.d.ts.map +0 -1
- package/dist/interfaces/auditLog/logData.d.ts +0 -14
- package/dist/interfaces/auditLog/logData.d.ts.map +0 -1
- package/dist/interfaces/auth.d.ts +0 -179
- package/dist/interfaces/auth.d.ts.map +0 -1
- package/dist/interfaces/autoSave.d.ts +0 -36
- package/dist/interfaces/autoSave.d.ts.map +0 -1
- package/dist/interfaces/bindings/access-control.d.ts +0 -50
- package/dist/interfaces/bindings/access-control.d.ts.map +0 -1
- package/dist/interfaces/bindings/auth.d.ts +0 -73
- package/dist/interfaces/bindings/auth.d.ts.map +0 -1
- package/dist/interfaces/bindings/data.d.ts +0 -15
- package/dist/interfaces/bindings/data.d.ts.map +0 -1
- package/dist/interfaces/bindings/i18n.d.ts +0 -19
- package/dist/interfaces/bindings/i18n.d.ts.map +0 -1
- package/dist/interfaces/bindings/index.d.ts +0 -9
- package/dist/interfaces/bindings/index.d.ts.map +0 -1
- package/dist/interfaces/bindings/live.d.ts +0 -43
- package/dist/interfaces/bindings/live.d.ts.map +0 -1
- package/dist/interfaces/bindings/notifications.d.ts +0 -24
- package/dist/interfaces/bindings/notifications.d.ts.map +0 -1
- package/dist/interfaces/bindings/resource.d.ts +0 -150
- package/dist/interfaces/bindings/resource.d.ts.map +0 -1
- package/dist/interfaces/bindings/router.d.ts +0 -67
- package/dist/interfaces/bindings/router.d.ts.map +0 -1
- package/dist/interfaces/customComponents.d.ts +0 -26
- package/dist/interfaces/customComponents.d.ts.map +0 -1
- package/dist/interfaces/errors/HttpError.d.ts +0 -12
- package/dist/interfaces/errors/HttpError.d.ts.map +0 -1
- package/dist/interfaces/errors/RefineError.d.ts +0 -3
- package/dist/interfaces/errors/RefineError.d.ts.map +0 -1
- package/dist/interfaces/errors/index.d.ts +0 -3
- package/dist/interfaces/errors/index.d.ts.map +0 -1
- package/dist/interfaces/form-url-params.d.ts +0 -12
- package/dist/interfaces/form-url-params.d.ts.map +0 -1
- package/dist/interfaces/index.d.ts +0 -57
- package/dist/interfaces/index.d.ts.map +0 -1
- package/dist/interfaces/live/LiveEvent.d.ts +0 -14
- package/dist/interfaces/live/LiveEvent.d.ts.map +0 -1
- package/dist/interfaces/live/LiveModeProps.d.ts +0 -27
- package/dist/interfaces/live/LiveModeProps.d.ts.map +0 -1
- package/dist/interfaces/live/index.d.ts +0 -3
- package/dist/interfaces/live/index.d.ts.map +0 -1
- package/dist/interfaces/mapDataFn.d.ts +0 -4
- package/dist/interfaces/mapDataFn.d.ts.map +0 -1
- package/dist/interfaces/metaData/fields.d.ts +0 -3
- package/dist/interfaces/metaData/fields.d.ts.map +0 -1
- package/dist/interfaces/metaData/graphqlQueryOptions.d.ts +0 -53
- package/dist/interfaces/metaData/graphqlQueryOptions.d.ts.map +0 -1
- package/dist/interfaces/metaData/index.d.ts +0 -3
- package/dist/interfaces/metaData/index.d.ts.map +0 -1
- package/dist/interfaces/metaData/metaDataQuery.d.ts +0 -10
- package/dist/interfaces/metaData/metaDataQuery.d.ts.map +0 -1
- package/dist/interfaces/metaData/metaQuery.d.ts +0 -8
- package/dist/interfaces/metaData/metaQuery.d.ts.map +0 -1
- package/dist/interfaces/metaData/nestedField.d.ts +0 -8
- package/dist/interfaces/metaData/nestedField.d.ts.map +0 -1
- package/dist/interfaces/metaData/queryBuilderOptions.d.ts +0 -8
- package/dist/interfaces/metaData/queryBuilderOptions.d.ts.map +0 -1
- package/dist/interfaces/metaData/variableOptions.d.ts +0 -10
- package/dist/interfaces/metaData/variableOptions.d.ts.map +0 -1
- package/dist/interfaces/mutationMode.d.ts +0 -20
- package/dist/interfaces/mutationMode.d.ts.map +0 -1
- package/dist/interfaces/notification.d.ts +0 -11
- package/dist/interfaces/notification.d.ts.map +0 -1
- package/dist/interfaces/optimistic-update-map.d.ts +0 -12
- package/dist/interfaces/optimistic-update-map.d.ts.map +0 -1
- package/dist/interfaces/prettify.d.ts +0 -4
- package/dist/interfaces/prettify.d.ts.map +0 -1
- package/dist/interfaces/queryKey.d.ts +0 -17
- package/dist/interfaces/queryKey.d.ts.map +0 -1
- package/dist/interfaces/resourceErrorRouterParams.d.ts +0 -6
- package/dist/interfaces/resourceErrorRouterParams.d.ts.map +0 -1
- package/dist/interfaces/resourceRouterParams.d.ts +0 -7
- package/dist/interfaces/resourceRouterParams.d.ts.map +0 -1
- package/dist/interfaces/successErrorNotification.d.ts +0 -15
- package/dist/interfaces/successErrorNotification.d.ts.map +0 -1
- package/dist/interfaces/telemetry.d.ts +0 -16
- package/dist/interfaces/telemetry.d.ts.map +0 -1
- package/dist/interfaces/textTransformers.d.ts +0 -21
- package/dist/interfaces/textTransformers.d.ts.map +0 -1
- package/src/contexts/accessControl/IAccessControlContext.ts +0 -52
- package/src/contexts/auditLog/IAuditLogContext.ts +0 -31
- package/src/contexts/auth/IAuthContext.ts +0 -27
- package/src/contexts/data/IDataContext.ts +0 -316
- package/src/contexts/legacy-router/IRouterContext.ts +0 -37
- package/src/contexts/legacy-router/index.tsx +0 -45
- package/src/contexts/live/ILiveContext.ts +0 -56
- package/src/contexts/notification/INotificationContext.ts +0 -15
- package/src/contexts/refine/IRefineContext.ts +0 -140
- package/src/contexts/resource/IResourceContext.ts +0 -68
- package/src/contexts/router-picker/index.tsx +0 -21
- package/src/contexts/translation/ITranslationContext.ts +0 -19
- package/src/contexts/translation/index.tsx +0 -24
- package/src/contexts/undoableQueue/IUndoableQueueContext.ts +0 -6
- package/src/contexts/undoableQueue/actionTypes.ts +0 -5
- package/src/contexts/undoableQueue/index.ts +0 -5
- package/src/contexts/undoableQueue/undoableQueueContext.tsx +0 -83
- package/src/contexts/unsavedWarn/IUnsavedWarnContext.ts +0 -4
- package/src/hooks/export/csvDownload.interface.ts +0 -27
- package/src/hooks/form/useForm.ts +0 -639
- package/src/hooks/translate/index.ts +0 -3
- package/src/hooks/translate/useGetLocale.ts +0 -16
- package/src/hooks/translate/useSetLocale.ts +0 -14
- package/src/hooks/translate/useTranslate.ts +0 -40
- package/src/interfaces/actions.ts +0 -16
- package/src/interfaces/auditLog/index.ts +0 -1
- package/src/interfaces/auditLog/logData.ts +0 -15
- package/src/interfaces/auth.tsx +0 -228
- package/src/interfaces/autoSave.ts +0 -54
- package/src/interfaces/bindings/access-control.ts +0 -53
- package/src/interfaces/bindings/auth.ts +0 -82
- package/src/interfaces/bindings/data.ts +0 -18
- package/src/interfaces/bindings/i18n.ts +0 -29
- package/src/interfaces/bindings/index.ts +0 -25
- package/src/interfaces/bindings/live.ts +0 -56
- package/src/interfaces/bindings/notifications.ts +0 -25
- package/src/interfaces/bindings/resource.ts +0 -178
- package/src/interfaces/bindings/router.ts +0 -78
- package/src/interfaces/customComponents.ts +0 -28
- package/src/interfaces/errors/HttpError.ts +0 -13
- package/src/interfaces/errors/RefineError.ts +0 -3
- package/src/interfaces/errors/index.ts +0 -2
- package/src/interfaces/form-url-params.ts +0 -8
- package/src/interfaces/index.ts +0 -98
- package/src/interfaces/live/LiveEvent.ts +0 -14
- package/src/interfaces/live/LiveModeProps.ts +0 -28
- package/src/interfaces/live/index.ts +0 -2
- package/src/interfaces/mapDataFn.ts +0 -3
- package/src/interfaces/metaData/fields.ts +0 -3
- package/src/interfaces/metaData/graphqlQueryOptions.ts +0 -53
- package/src/interfaces/metaData/index.ts +0 -2
- package/src/interfaces/metaData/metaDataQuery.ts +0 -10
- package/src/interfaces/metaData/metaQuery.ts +0 -9
- package/src/interfaces/metaData/nestedField.ts +0 -8
- package/src/interfaces/metaData/queryBuilderOptions.ts +0 -8
- package/src/interfaces/metaData/variableOptions.ts +0 -9
- package/src/interfaces/mutationMode.ts +0 -32
- package/src/interfaces/notification.ts +0 -10
- package/src/interfaces/optimistic-update-map.ts +0 -49
- package/src/interfaces/prettify.ts +0 -3
- package/src/interfaces/queryKey.ts +0 -23
- package/src/interfaces/resourceErrorRouterParams.ts +0 -6
- package/src/interfaces/resourceRouterParams.ts +0 -7
- package/src/interfaces/successErrorNotification.ts +0 -33
- package/src/interfaces/telemetry.ts +0 -15
- package/src/interfaces/textTransformers.ts +0 -20
- /package/dist/contexts/{router-picker/index.d.ts → router/picker/index.d.cts} +0 -0
- /package/dist/hooks/{translate/useTranslate.d.ts → i18n/useTranslate.d.cts} +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useDataProvider.d.ts","sourceRoot":"","sources":["../../../src/hooks/data/useDataProvider.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAE,YAAY,EAAgB,MAAM,2BAA2B,CAAC;AACvE,eAAO,MAAM,eAAe,4BAIP,MAAM,KACtB,YAgCJ,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useDataProvider.d.ts","sourceRoot":"","sources":["../../../src/hooks/data/useDataProvider.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAE,YAAY,EAAgB,MAAM,2BAA2B,CAAC;AACvE,eAAO,MAAM,eAAe,4BAIP,MAAM,KACtB,YAgCJ,CAAC"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export declare const useDataProvider: () => (dataProviderName?: string) =>
|
|
1
|
+
import { DataProvider } from "../../contexts/data/types";
|
|
2
|
+
export declare const useDataProvider: () => (dataProviderName?: string) => DataProvider;
|
|
3
3
|
//# sourceMappingURL=useDataProvider.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useDataProvider.d.ts","sourceRoot":"","sources":["../../../src/hooks/data/useDataProvider.tsx"],"names":[],"mappings":"AAGA,OAAO,
|
|
1
|
+
{"version":3,"file":"useDataProvider.d.ts","sourceRoot":"","sources":["../../../src/hooks/data/useDataProvider.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAE,YAAY,EAAgB,MAAM,2BAA2B,CAAC;AACvE,eAAO,MAAM,eAAe,4BAIP,MAAM,KACtB,YAgCJ,CAAC"}
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
import { UseMutationOptions, UseMutationResult } from "@tanstack/react-query";
|
|
2
|
+
import { BaseKey, BaseRecord, DeleteOneResponse, HttpError, IQueryKeys, MetaQuery, MutationMode, PrevContext as DeleteContext } from "../../contexts/data/types";
|
|
3
|
+
import { SuccessErrorNotification } from "../../contexts/notification/types";
|
|
4
|
+
import { UseLoadingOvertimeOptionsProps, UseLoadingOvertimeReturnType } from "../useLoadingOvertime";
|
|
5
|
+
export type DeleteParams<TData, TError, TVariables> = {
|
|
6
|
+
/**
|
|
7
|
+
* id for mutation function
|
|
8
|
+
*/
|
|
9
|
+
id: BaseKey;
|
|
10
|
+
/**
|
|
11
|
+
* Resource name for API data interactions
|
|
12
|
+
*/
|
|
13
|
+
resource: string;
|
|
14
|
+
/**
|
|
15
|
+
* [Determines when mutations are executed](/advanced-tutorials/mutation-mode.md)
|
|
16
|
+
*/
|
|
17
|
+
mutationMode?: MutationMode;
|
|
18
|
+
/**
|
|
19
|
+
* Duration in ms to wait before executing the mutation when `mutationMode = "undoable"`
|
|
20
|
+
*/
|
|
21
|
+
undoableTimeout?: number;
|
|
22
|
+
/**
|
|
23
|
+
* Provides a function to cancel the mutation when `mutationMode = "undoable"`
|
|
24
|
+
*/
|
|
25
|
+
onCancel?: (cancelMutation: () => void) => void;
|
|
26
|
+
/**
|
|
27
|
+
* Metadata query for dataProvider
|
|
28
|
+
*/
|
|
29
|
+
meta?: MetaQuery;
|
|
30
|
+
/**
|
|
31
|
+
* @deprecated `metaData` is deprecated with refine@4, refine will pass `meta` instead, however, we still support `metaData` for backward compatibility.
|
|
32
|
+
*/
|
|
33
|
+
metaData?: MetaQuery;
|
|
34
|
+
/**
|
|
35
|
+
* If there is more than one `dataProvider`, you should use the `dataProviderName` that you will use.
|
|
36
|
+
* @default "default"
|
|
37
|
+
*/
|
|
38
|
+
dataProviderName?: string;
|
|
39
|
+
/**
|
|
40
|
+
* You can use it to manage the invalidations that will occur at the end of the mutation.
|
|
41
|
+
*/
|
|
42
|
+
invalidates?: Array<keyof IQueryKeys>;
|
|
43
|
+
/**
|
|
44
|
+
* Values for mutation function
|
|
45
|
+
*/
|
|
46
|
+
values?: TVariables;
|
|
47
|
+
} & SuccessErrorNotification<DeleteOneResponse<TData>, TError, BaseKey>;
|
|
48
|
+
export type UseDeleteReturnType<TData extends BaseRecord = BaseRecord, TError = HttpError, TVariables = {}> = UseMutationResult<DeleteOneResponse<TData>, TError, DeleteParams<TData, TError, TVariables>, DeleteContext<TData>> & UseLoadingOvertimeReturnType;
|
|
49
|
+
export type UseDeleteProps<TData extends BaseRecord = BaseRecord, TError extends HttpError = HttpError, TVariables = {}> = {
|
|
50
|
+
mutationOptions?: Omit<UseMutationOptions<DeleteOneResponse<TData>, TError, DeleteParams<TData, TError, TVariables>, DeleteContext<TData>>, "mutationFn" | "onError" | "onSuccess" | "onSettled" | "onMutate">;
|
|
51
|
+
} & UseLoadingOvertimeOptionsProps;
|
|
52
|
+
/**
|
|
53
|
+
* `useDelete` is a modified version of `react-query`'s {@link https://react-query.tanstack.com/reference/useMutation `useMutation`} for delete mutations.
|
|
54
|
+
*
|
|
55
|
+
* It uses `deleteOne` method as mutation function from the `dataProvider` which is passed to `<Refine>`.
|
|
56
|
+
*
|
|
57
|
+
* @see {@link https://refine.dev/docs/api-reference/core/hooks/data/useDelete} for more details.
|
|
58
|
+
*
|
|
59
|
+
* @typeParam TData - Result data of the query extends {@link https://refine.dev/docs/api-reference/core/interfaceReferences#baserecord `BaseRecord`}
|
|
60
|
+
* @typeParam TError - Custom error object that extends {@link https://refine.dev/docs/api-reference/core/interfaceReferences/#httperror `HttpError`}
|
|
61
|
+
* @typeParam TVariables - Values for params. default `{}`
|
|
62
|
+
*
|
|
63
|
+
*/
|
|
64
|
+
export declare const useDelete: <TData extends BaseRecord = BaseRecord, TError extends HttpError = HttpError, TVariables = {}>({ mutationOptions, overtimeOptions, }?: UseDeleteProps<TData, TError, TVariables>) => UseDeleteReturnType<TData, TError, TVariables>;
|
|
65
|
+
//# sourceMappingURL=useDelete.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useDelete.d.ts","sourceRoot":"","sources":["../../../src/hooks/data/useDelete.ts"],"names":[],"mappings":"AACA,OAAO,EACL,kBAAkB,EAClB,iBAAiB,EAGlB,MAAM,uBAAuB,CAAC;AAwB/B,OAAO,EACL,OAAO,EACP,UAAU,EACV,iBAAiB,EAEjB,SAAS,EACT,UAAU,EACV,SAAS,EACT,YAAY,EACZ,WAAW,IAAI,aAAa,EAE7B,MAAM,2BAA2B,CAAC;AACnC,OAAO,EAAE,wBAAwB,EAAE,MAAM,mCAAmC,CAAC;AAE7E,OAAO,EACL,8BAA8B,EAC9B,4BAA4B,EAE7B,MAAM,uBAAuB,CAAC;AAE/B,MAAM,MAAM,YAAY,CAAC,KAAK,EAAE,MAAM,EAAE,UAAU,IAAI;IACpD;;OAEG;IACH,EAAE,EAAE,OAAO,CAAC;IACZ;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;IACjB;;OAEG;IACH,YAAY,CAAC,EAAE,YAAY,CAAC;IAC5B;;OAEG;IACH,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB;;OAEG;IACH,QAAQ,CAAC,EAAE,CAAC,cAAc,EAAE,MAAM,IAAI,KAAK,IAAI,CAAC;IAChD;;OAEG;IACH,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB;;OAEG;IACH,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB;;;OAGG;IACH,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B;;OAEG;IACH,WAAW,CAAC,EAAE,KAAK,CAAC,MAAM,UAAU,CAAC,CAAC;IACtC;;OAEG;IACH,MAAM,CAAC,EAAE,UAAU,CAAC;CACrB,GAAG,wBAAwB,CAAC,iBAAiB,CAAC,KAAK,CAAC,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC;AAExE,MAAM,MAAM,mBAAmB,CAC7B,KAAK,SAAS,UAAU,GAAG,UAAU,EACrC,MAAM,GAAG,SAAS,EAClB,UAAU,GAAG,EAAE,IACb,iBAAiB,CACnB,iBAAiB,CAAC,KAAK,CAAC,EACxB,MAAM,EACN,YAAY,CAAC,KAAK,EAAE,MAAM,EAAE,UAAU,CAAC,EACvC,aAAa,CAAC,KAAK,CAAC,CACrB,GACC,4BAA4B,CAAC;AAE/B,MAAM,MAAM,cAAc,CACxB,KAAK,SAAS,UAAU,GAAG,UAAU,EACrC,MAAM,SAAS,SAAS,GAAG,SAAS,EACpC,UAAU,GAAG,EAAE,IACb;IACF,eAAe,CAAC,EAAE,IAAI,CACpB,kBAAkB,CAChB,iBAAiB,CAAC,KAAK,CAAC,EACxB,MAAM,EACN,YAAY,CAAC,KAAK,EAAE,MAAM,EAAE,UAAU,CAAC,EACvC,aAAa,CAAC,KAAK,CAAC,CACrB,EACD,YAAY,GAAG,SAAS,GAAG,WAAW,GAAG,WAAW,GAAG,UAAU,CAClE,CAAC;CACH,GAAG,8BAA8B,CAAC;AAEnC;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,SAAS,yIAOnB,eAAe,KAAK,EAAE,MAAM,EAAE,UAAU,CAAC,KAAQ,oBAClD,KAAK,EACL,MAAM,EACN,UAAU,CAqWX,CAAC"}
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
import { UseMutationOptions, UseMutationResult } from "@tanstack/react-query";
|
|
2
|
+
import { BaseKey, BaseRecord, DeleteOneResponse, HttpError, IQueryKeys, MetaQuery, MutationMode, PrevContext as DeleteContext } from "../../contexts/data/types";
|
|
3
|
+
import { SuccessErrorNotification } from "../../contexts/notification/types";
|
|
4
|
+
import { UseLoadingOvertimeOptionsProps, UseLoadingOvertimeReturnType } from "../useLoadingOvertime";
|
|
5
|
+
export type DeleteParams<TData, TError, TVariables> = {
|
|
6
|
+
/**
|
|
7
|
+
* id for mutation function
|
|
8
|
+
*/
|
|
9
|
+
id: BaseKey;
|
|
10
|
+
/**
|
|
11
|
+
* Resource name for API data interactions
|
|
12
|
+
*/
|
|
13
|
+
resource: string;
|
|
14
|
+
/**
|
|
15
|
+
* [Determines when mutations are executed](/advanced-tutorials/mutation-mode.md)
|
|
16
|
+
*/
|
|
17
|
+
mutationMode?: MutationMode;
|
|
18
|
+
/**
|
|
19
|
+
* Duration in ms to wait before executing the mutation when `mutationMode = "undoable"`
|
|
20
|
+
*/
|
|
21
|
+
undoableTimeout?: number;
|
|
22
|
+
/**
|
|
23
|
+
* Provides a function to cancel the mutation when `mutationMode = "undoable"`
|
|
24
|
+
*/
|
|
25
|
+
onCancel?: (cancelMutation: () => void) => void;
|
|
26
|
+
/**
|
|
27
|
+
* Metadata query for dataProvider
|
|
28
|
+
*/
|
|
29
|
+
meta?: MetaQuery;
|
|
30
|
+
/**
|
|
31
|
+
* @deprecated `metaData` is deprecated with refine@4, refine will pass `meta` instead, however, we still support `metaData` for backward compatibility.
|
|
32
|
+
*/
|
|
33
|
+
metaData?: MetaQuery;
|
|
34
|
+
/**
|
|
35
|
+
* If there is more than one `dataProvider`, you should use the `dataProviderName` that you will use.
|
|
36
|
+
* @default "default"
|
|
37
|
+
*/
|
|
38
|
+
dataProviderName?: string;
|
|
39
|
+
/**
|
|
40
|
+
* You can use it to manage the invalidations that will occur at the end of the mutation.
|
|
41
|
+
*/
|
|
42
|
+
invalidates?: Array<keyof IQueryKeys>;
|
|
43
|
+
/**
|
|
44
|
+
* Values for mutation function
|
|
45
|
+
*/
|
|
46
|
+
values?: TVariables;
|
|
47
|
+
} & SuccessErrorNotification<DeleteOneResponse<TData>, TError, BaseKey>;
|
|
48
|
+
export type UseDeleteReturnType<TData extends BaseRecord = BaseRecord, TError = HttpError, TVariables = {}> = UseMutationResult<DeleteOneResponse<TData>, TError, DeleteParams<TData, TError, TVariables>, DeleteContext<TData>> & UseLoadingOvertimeReturnType;
|
|
49
|
+
export type UseDeleteProps<TData extends BaseRecord = BaseRecord, TError extends HttpError = HttpError, TVariables = {}> = {
|
|
50
|
+
mutationOptions?: Omit<UseMutationOptions<DeleteOneResponse<TData>, TError, DeleteParams<TData, TError, TVariables>, DeleteContext<TData>>, "mutationFn" | "onError" | "onSuccess" | "onSettled" | "onMutate">;
|
|
51
|
+
} & UseLoadingOvertimeOptionsProps;
|
|
52
|
+
/**
|
|
53
|
+
* `useDelete` is a modified version of `react-query`'s {@link https://react-query.tanstack.com/reference/useMutation `useMutation`} for delete mutations.
|
|
54
|
+
*
|
|
55
|
+
* It uses `deleteOne` method as mutation function from the `dataProvider` which is passed to `<Refine>`.
|
|
56
|
+
*
|
|
57
|
+
* @see {@link https://refine.dev/docs/api-reference/core/hooks/data/useDelete} for more details.
|
|
58
|
+
*
|
|
59
|
+
* @typeParam TData - Result data of the query extends {@link https://refine.dev/docs/api-reference/core/interfaceReferences#baserecord `BaseRecord`}
|
|
60
|
+
* @typeParam TError - Custom error object that extends {@link https://refine.dev/docs/api-reference/core/interfaceReferences/#httperror `HttpError`}
|
|
61
|
+
* @typeParam TVariables - Values for params. default `{}`
|
|
62
|
+
*
|
|
63
|
+
*/
|
|
64
|
+
export declare const useDelete: <TData extends BaseRecord = BaseRecord, TError extends HttpError = HttpError, TVariables = {}>({ mutationOptions, overtimeOptions, }?: UseDeleteProps<TData, TError, TVariables>) => UseDeleteReturnType<TData, TError, TVariables>;
|
|
65
|
+
//# sourceMappingURL=useDelete.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useDelete.d.ts","sourceRoot":"","sources":["../../../src/hooks/data/useDelete.ts"],"names":[],"mappings":"AACA,OAAO,EACL,kBAAkB,EAClB,iBAAiB,EAGlB,MAAM,uBAAuB,CAAC;AAwB/B,OAAO,EACL,OAAO,EACP,UAAU,EACV,iBAAiB,EAEjB,SAAS,EACT,UAAU,EACV,SAAS,EACT,YAAY,EACZ,WAAW,IAAI,aAAa,EAE7B,MAAM,2BAA2B,CAAC;AACnC,OAAO,EAAE,wBAAwB,EAAE,MAAM,mCAAmC,CAAC;AAE7E,OAAO,EACL,8BAA8B,EAC9B,4BAA4B,EAE7B,MAAM,uBAAuB,CAAC;AAE/B,MAAM,MAAM,YAAY,CAAC,KAAK,EAAE,MAAM,EAAE,UAAU,IAAI;IACpD;;OAEG;IACH,EAAE,EAAE,OAAO,CAAC;IACZ;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;IACjB;;OAEG;IACH,YAAY,CAAC,EAAE,YAAY,CAAC;IAC5B;;OAEG;IACH,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB;;OAEG;IACH,QAAQ,CAAC,EAAE,CAAC,cAAc,EAAE,MAAM,IAAI,KAAK,IAAI,CAAC;IAChD;;OAEG;IACH,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB;;OAEG;IACH,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB;;;OAGG;IACH,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B;;OAEG;IACH,WAAW,CAAC,EAAE,KAAK,CAAC,MAAM,UAAU,CAAC,CAAC;IACtC;;OAEG;IACH,MAAM,CAAC,EAAE,UAAU,CAAC;CACrB,GAAG,wBAAwB,CAAC,iBAAiB,CAAC,KAAK,CAAC,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC;AAExE,MAAM,MAAM,mBAAmB,CAC7B,KAAK,SAAS,UAAU,GAAG,UAAU,EACrC,MAAM,GAAG,SAAS,EAClB,UAAU,GAAG,EAAE,IACb,iBAAiB,CACnB,iBAAiB,CAAC,KAAK,CAAC,EACxB,MAAM,EACN,YAAY,CAAC,KAAK,EAAE,MAAM,EAAE,UAAU,CAAC,EACvC,aAAa,CAAC,KAAK,CAAC,CACrB,GACC,4BAA4B,CAAC;AAE/B,MAAM,MAAM,cAAc,CACxB,KAAK,SAAS,UAAU,GAAG,UAAU,EACrC,MAAM,SAAS,SAAS,GAAG,SAAS,EACpC,UAAU,GAAG,EAAE,IACb;IACF,eAAe,CAAC,EAAE,IAAI,CACpB,kBAAkB,CAChB,iBAAiB,CAAC,KAAK,CAAC,EACxB,MAAM,EACN,YAAY,CAAC,KAAK,EAAE,MAAM,EAAE,UAAU,CAAC,EACvC,aAAa,CAAC,KAAK,CAAC,CACrB,EACD,YAAY,GAAG,SAAS,GAAG,WAAW,GAAG,WAAW,GAAG,UAAU,CAClE,CAAC;CACH,GAAG,8BAA8B,CAAC;AAEnC;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,SAAS,yIAOnB,eAAe,KAAK,EAAE,MAAM,EAAE,UAAU,CAAC,KAAQ,oBAClD,KAAK,EACL,MAAM,EACN,UAAU,CAqWX,CAAC"}
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { UseMutationOptions, UseMutationResult } from "@tanstack/react-query";
|
|
2
|
-
import { BaseKey, BaseRecord, DeleteOneResponse, HttpError, IQueryKeys, MetaQuery, MutationMode, PrevContext as DeleteContext
|
|
2
|
+
import { BaseKey, BaseRecord, DeleteOneResponse, HttpError, IQueryKeys, MetaQuery, MutationMode, PrevContext as DeleteContext } from "../../contexts/data/types";
|
|
3
|
+
import { SuccessErrorNotification } from "../../contexts/notification/types";
|
|
3
4
|
import { UseLoadingOvertimeOptionsProps, UseLoadingOvertimeReturnType } from "../useLoadingOvertime";
|
|
4
|
-
export
|
|
5
|
+
export type DeleteParams<TData, TError, TVariables> = {
|
|
5
6
|
/**
|
|
6
7
|
* id for mutation function
|
|
7
8
|
*/
|
|
@@ -44,8 +45,8 @@ export declare type DeleteParams<TData, TError, TVariables> = {
|
|
|
44
45
|
*/
|
|
45
46
|
values?: TVariables;
|
|
46
47
|
} & SuccessErrorNotification<DeleteOneResponse<TData>, TError, BaseKey>;
|
|
47
|
-
export
|
|
48
|
-
export
|
|
48
|
+
export type UseDeleteReturnType<TData extends BaseRecord = BaseRecord, TError = HttpError, TVariables = {}> = UseMutationResult<DeleteOneResponse<TData>, TError, DeleteParams<TData, TError, TVariables>, DeleteContext<TData>> & UseLoadingOvertimeReturnType;
|
|
49
|
+
export type UseDeleteProps<TData extends BaseRecord = BaseRecord, TError extends HttpError = HttpError, TVariables = {}> = {
|
|
49
50
|
mutationOptions?: Omit<UseMutationOptions<DeleteOneResponse<TData>, TError, DeleteParams<TData, TError, TVariables>, DeleteContext<TData>>, "mutationFn" | "onError" | "onSuccess" | "onSettled" | "onMutate">;
|
|
50
51
|
} & UseLoadingOvertimeOptionsProps;
|
|
51
52
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useDelete.d.ts","sourceRoot":"","sources":["../../../src/hooks/data/useDelete.ts"],"names":[],"mappings":"AACA,OAAO,
|
|
1
|
+
{"version":3,"file":"useDelete.d.ts","sourceRoot":"","sources":["../../../src/hooks/data/useDelete.ts"],"names":[],"mappings":"AACA,OAAO,EACL,kBAAkB,EAClB,iBAAiB,EAGlB,MAAM,uBAAuB,CAAC;AAwB/B,OAAO,EACL,OAAO,EACP,UAAU,EACV,iBAAiB,EAEjB,SAAS,EACT,UAAU,EACV,SAAS,EACT,YAAY,EACZ,WAAW,IAAI,aAAa,EAE7B,MAAM,2BAA2B,CAAC;AACnC,OAAO,EAAE,wBAAwB,EAAE,MAAM,mCAAmC,CAAC;AAE7E,OAAO,EACL,8BAA8B,EAC9B,4BAA4B,EAE7B,MAAM,uBAAuB,CAAC;AAE/B,MAAM,MAAM,YAAY,CAAC,KAAK,EAAE,MAAM,EAAE,UAAU,IAAI;IACpD;;OAEG;IACH,EAAE,EAAE,OAAO,CAAC;IACZ;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;IACjB;;OAEG;IACH,YAAY,CAAC,EAAE,YAAY,CAAC;IAC5B;;OAEG;IACH,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB;;OAEG;IACH,QAAQ,CAAC,EAAE,CAAC,cAAc,EAAE,MAAM,IAAI,KAAK,IAAI,CAAC;IAChD;;OAEG;IACH,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB;;OAEG;IACH,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB;;;OAGG;IACH,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B;;OAEG;IACH,WAAW,CAAC,EAAE,KAAK,CAAC,MAAM,UAAU,CAAC,CAAC;IACtC;;OAEG;IACH,MAAM,CAAC,EAAE,UAAU,CAAC;CACrB,GAAG,wBAAwB,CAAC,iBAAiB,CAAC,KAAK,CAAC,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC;AAExE,MAAM,MAAM,mBAAmB,CAC7B,KAAK,SAAS,UAAU,GAAG,UAAU,EACrC,MAAM,GAAG,SAAS,EAClB,UAAU,GAAG,EAAE,IACb,iBAAiB,CACnB,iBAAiB,CAAC,KAAK,CAAC,EACxB,MAAM,EACN,YAAY,CAAC,KAAK,EAAE,MAAM,EAAE,UAAU,CAAC,EACvC,aAAa,CAAC,KAAK,CAAC,CACrB,GACC,4BAA4B,CAAC;AAE/B,MAAM,MAAM,cAAc,CACxB,KAAK,SAAS,UAAU,GAAG,UAAU,EACrC,MAAM,SAAS,SAAS,GAAG,SAAS,EACpC,UAAU,GAAG,EAAE,IACb;IACF,eAAe,CAAC,EAAE,IAAI,CACpB,kBAAkB,CAChB,iBAAiB,CAAC,KAAK,CAAC,EACxB,MAAM,EACN,YAAY,CAAC,KAAK,EAAE,MAAM,EAAE,UAAU,CAAC,EACvC,aAAa,CAAC,KAAK,CAAC,CACrB,EACD,YAAY,GAAG,SAAS,GAAG,WAAW,GAAG,WAAW,GAAG,UAAU,CAClE,CAAC;CACH,GAAG,8BAA8B,CAAC;AAEnC;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,SAAS,yIAOnB,eAAe,KAAK,EAAE,MAAM,EAAE,UAAU,CAAC,KAAQ,oBAClD,KAAK,EACL,MAAM,EACN,UAAU,CAqWX,CAAC"}
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
import { UseMutationOptions, UseMutationResult } from "@tanstack/react-query";
|
|
2
|
+
import { BaseKey, BaseRecord, DeleteManyResponse, HttpError, IQueryKeys, MetaQuery, MutationMode, PrevContext as DeleteContext } from "../../contexts/data/types";
|
|
3
|
+
import { SuccessErrorNotification } from "../../contexts/notification/types";
|
|
4
|
+
import { UseLoadingOvertimeOptionsProps, UseLoadingOvertimeReturnType } from "../useLoadingOvertime";
|
|
5
|
+
export type DeleteManyParams<TData, TError, TVariables> = {
|
|
6
|
+
/**
|
|
7
|
+
* ids for mutation function
|
|
8
|
+
*/
|
|
9
|
+
ids: BaseKey[];
|
|
10
|
+
/**
|
|
11
|
+
* Resource name for API data interactions
|
|
12
|
+
*/
|
|
13
|
+
resource: string;
|
|
14
|
+
/**
|
|
15
|
+
* [Determines when mutations are executed](/advanced-tutorials/mutation-mode.md)
|
|
16
|
+
*/
|
|
17
|
+
mutationMode?: MutationMode;
|
|
18
|
+
/**
|
|
19
|
+
* Duration in ms to wait before executing the mutation when `mutationMode = "undoable"`
|
|
20
|
+
*/
|
|
21
|
+
undoableTimeout?: number;
|
|
22
|
+
/**
|
|
23
|
+
* Provides a function to cancel the mutation when `mutationMode = "undoable"`
|
|
24
|
+
*/
|
|
25
|
+
onCancel?: (cancelMutation: () => void) => void;
|
|
26
|
+
/**
|
|
27
|
+
* Metadata query for dataProvider
|
|
28
|
+
*/
|
|
29
|
+
meta?: MetaQuery;
|
|
30
|
+
/**
|
|
31
|
+
* @deprecated `metaData` is deprecated with refine@4, refine will pass `meta` instead, however, we still support `metaData` for backward compatibility.
|
|
32
|
+
*/
|
|
33
|
+
metaData?: MetaQuery;
|
|
34
|
+
/**
|
|
35
|
+
* If there is more than one `dataProvider`, you should use the `dataProviderName` that you will use.
|
|
36
|
+
* @default "default"
|
|
37
|
+
*/
|
|
38
|
+
dataProviderName?: string;
|
|
39
|
+
/**
|
|
40
|
+
* You can use it to manage the invalidations that will occur at the end of the mutation.
|
|
41
|
+
*/
|
|
42
|
+
invalidates?: Array<keyof IQueryKeys>;
|
|
43
|
+
/**
|
|
44
|
+
* Values for mutation function
|
|
45
|
+
*/
|
|
46
|
+
values?: TVariables;
|
|
47
|
+
} & SuccessErrorNotification<DeleteManyResponse<TData>, TError, BaseKey[]>;
|
|
48
|
+
export type UseDeleteManyReturnType<TData extends BaseRecord = BaseRecord, TError = HttpError, TVariables = {}> = UseMutationResult<DeleteManyResponse<TData>, TError, DeleteManyParams<TData, TError, TVariables>, unknown> & UseLoadingOvertimeReturnType;
|
|
49
|
+
export type UseDeleteManyProps<TData extends BaseRecord = BaseRecord, TError extends HttpError = HttpError, TVariables = {}> = {
|
|
50
|
+
mutationOptions?: Omit<UseMutationOptions<DeleteManyResponse<TData>, TError, DeleteManyParams<TData, TError, TVariables>, DeleteContext<TData>>, "mutationFn" | "onError" | "onSuccess" | "onSettled" | "onMutate">;
|
|
51
|
+
} & UseLoadingOvertimeOptionsProps;
|
|
52
|
+
/**
|
|
53
|
+
* `useDeleteMany` is a modified version of `react-query`'s {@link https://react-query.tanstack.com/reference/useMutation `useMutation`} for multiple delete mutations.
|
|
54
|
+
*
|
|
55
|
+
* It uses `deleteMany` method as mutation function from the `dataProvider` which is passed to `<Refine>`.
|
|
56
|
+
*
|
|
57
|
+
* @see {@link https://refine.dev/docs/api-reference/core/hooks/data/useDeleteMany} for more details.
|
|
58
|
+
*
|
|
59
|
+
* @typeParam TData - Result data of the query extends {@link https://refine.dev/docs/core/interfaceReferences#baserecord `BaseRecord`}
|
|
60
|
+
* @typeParam TError - Custom error object that extends {@link https://refine.dev/docs/core/interfaceReferences#httperror `HttpError`}
|
|
61
|
+
* @typeParam TVariables - Values for params. default `{}`
|
|
62
|
+
*
|
|
63
|
+
*/
|
|
64
|
+
export declare const useDeleteMany: <TData extends BaseRecord = BaseRecord, TError extends HttpError = HttpError, TVariables = {}>({ mutationOptions, overtimeOptions, }?: UseDeleteManyProps<TData, TError, TVariables>) => UseDeleteManyReturnType<TData, TError, TVariables>;
|
|
65
|
+
//# sourceMappingURL=useDeleteMany.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useDeleteMany.d.ts","sourceRoot":"","sources":["../../../src/hooks/data/useDeleteMany.ts"],"names":[],"mappings":"AACA,OAAO,EACL,kBAAkB,EAClB,iBAAiB,EAGlB,MAAM,uBAAuB,CAAC;AAyB/B,OAAO,EACL,OAAO,EACP,UAAU,EACV,kBAAkB,EAElB,SAAS,EACT,UAAU,EACV,SAAS,EACT,YAAY,EACZ,WAAW,IAAI,aAAa,EAE7B,MAAM,2BAA2B,CAAC;AACnC,OAAO,EAAE,wBAAwB,EAAE,MAAM,mCAAmC,CAAC;AAE7E,OAAO,EACL,8BAA8B,EAC9B,4BAA4B,EAE7B,MAAM,uBAAuB,CAAC;AAE/B,MAAM,MAAM,gBAAgB,CAAC,KAAK,EAAE,MAAM,EAAE,UAAU,IAAI;IACxD;;OAEG;IACH,GAAG,EAAE,OAAO,EAAE,CAAC;IACf;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;IACjB;;OAEG;IACH,YAAY,CAAC,EAAE,YAAY,CAAC;IAC5B;;OAEG;IACH,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB;;OAEG;IACH,QAAQ,CAAC,EAAE,CAAC,cAAc,EAAE,MAAM,IAAI,KAAK,IAAI,CAAC;IAChD;;OAEG;IACH,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB;;OAEG;IACH,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB;;;OAGG;IACH,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B;;OAEG;IACH,WAAW,CAAC,EAAE,KAAK,CAAC,MAAM,UAAU,CAAC,CAAC;IACtC;;OAEG;IACH,MAAM,CAAC,EAAE,UAAU,CAAC;CACrB,GAAG,wBAAwB,CAAC,kBAAkB,CAAC,KAAK,CAAC,EAAE,MAAM,EAAE,OAAO,EAAE,CAAC,CAAC;AAE3E,MAAM,MAAM,uBAAuB,CACjC,KAAK,SAAS,UAAU,GAAG,UAAU,EACrC,MAAM,GAAG,SAAS,EAClB,UAAU,GAAG,EAAE,IACb,iBAAiB,CACnB,kBAAkB,CAAC,KAAK,CAAC,EACzB,MAAM,EACN,gBAAgB,CAAC,KAAK,EAAE,MAAM,EAAE,UAAU,CAAC,EAC3C,OAAO,CACR,GACC,4BAA4B,CAAC;AAE/B,MAAM,MAAM,kBAAkB,CAC5B,KAAK,SAAS,UAAU,GAAG,UAAU,EACrC,MAAM,SAAS,SAAS,GAAG,SAAS,EACpC,UAAU,GAAG,EAAE,IACb;IACF,eAAe,CAAC,EAAE,IAAI,CACpB,kBAAkB,CAChB,kBAAkB,CAAC,KAAK,CAAC,EACzB,MAAM,EACN,gBAAgB,CAAC,KAAK,EAAE,MAAM,EAAE,UAAU,CAAC,EAC3C,aAAa,CAAC,KAAK,CAAC,CACrB,EACD,YAAY,GAAG,SAAS,GAAG,WAAW,GAAG,WAAW,GAAG,UAAU,CAClE,CAAC;CACH,GAAG,8BAA8B,CAAC;AAEnC;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,aAAa,yIAOvB,mBAAmB,KAAK,EAAE,MAAM,EAAE,UAAU,CAAC,KAAQ,wBACtD,KAAK,EACL,MAAM,EACN,UAAU,CAmYX,CAAC"}
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
import { UseMutationOptions, UseMutationResult } from "@tanstack/react-query";
|
|
2
|
+
import { BaseKey, BaseRecord, DeleteManyResponse, HttpError, IQueryKeys, MetaQuery, MutationMode, PrevContext as DeleteContext } from "../../contexts/data/types";
|
|
3
|
+
import { SuccessErrorNotification } from "../../contexts/notification/types";
|
|
4
|
+
import { UseLoadingOvertimeOptionsProps, UseLoadingOvertimeReturnType } from "../useLoadingOvertime";
|
|
5
|
+
export type DeleteManyParams<TData, TError, TVariables> = {
|
|
6
|
+
/**
|
|
7
|
+
* ids for mutation function
|
|
8
|
+
*/
|
|
9
|
+
ids: BaseKey[];
|
|
10
|
+
/**
|
|
11
|
+
* Resource name for API data interactions
|
|
12
|
+
*/
|
|
13
|
+
resource: string;
|
|
14
|
+
/**
|
|
15
|
+
* [Determines when mutations are executed](/advanced-tutorials/mutation-mode.md)
|
|
16
|
+
*/
|
|
17
|
+
mutationMode?: MutationMode;
|
|
18
|
+
/**
|
|
19
|
+
* Duration in ms to wait before executing the mutation when `mutationMode = "undoable"`
|
|
20
|
+
*/
|
|
21
|
+
undoableTimeout?: number;
|
|
22
|
+
/**
|
|
23
|
+
* Provides a function to cancel the mutation when `mutationMode = "undoable"`
|
|
24
|
+
*/
|
|
25
|
+
onCancel?: (cancelMutation: () => void) => void;
|
|
26
|
+
/**
|
|
27
|
+
* Metadata query for dataProvider
|
|
28
|
+
*/
|
|
29
|
+
meta?: MetaQuery;
|
|
30
|
+
/**
|
|
31
|
+
* @deprecated `metaData` is deprecated with refine@4, refine will pass `meta` instead, however, we still support `metaData` for backward compatibility.
|
|
32
|
+
*/
|
|
33
|
+
metaData?: MetaQuery;
|
|
34
|
+
/**
|
|
35
|
+
* If there is more than one `dataProvider`, you should use the `dataProviderName` that you will use.
|
|
36
|
+
* @default "default"
|
|
37
|
+
*/
|
|
38
|
+
dataProviderName?: string;
|
|
39
|
+
/**
|
|
40
|
+
* You can use it to manage the invalidations that will occur at the end of the mutation.
|
|
41
|
+
*/
|
|
42
|
+
invalidates?: Array<keyof IQueryKeys>;
|
|
43
|
+
/**
|
|
44
|
+
* Values for mutation function
|
|
45
|
+
*/
|
|
46
|
+
values?: TVariables;
|
|
47
|
+
} & SuccessErrorNotification<DeleteManyResponse<TData>, TError, BaseKey[]>;
|
|
48
|
+
export type UseDeleteManyReturnType<TData extends BaseRecord = BaseRecord, TError = HttpError, TVariables = {}> = UseMutationResult<DeleteManyResponse<TData>, TError, DeleteManyParams<TData, TError, TVariables>, unknown> & UseLoadingOvertimeReturnType;
|
|
49
|
+
export type UseDeleteManyProps<TData extends BaseRecord = BaseRecord, TError extends HttpError = HttpError, TVariables = {}> = {
|
|
50
|
+
mutationOptions?: Omit<UseMutationOptions<DeleteManyResponse<TData>, TError, DeleteManyParams<TData, TError, TVariables>, DeleteContext<TData>>, "mutationFn" | "onError" | "onSuccess" | "onSettled" | "onMutate">;
|
|
51
|
+
} & UseLoadingOvertimeOptionsProps;
|
|
52
|
+
/**
|
|
53
|
+
* `useDeleteMany` is a modified version of `react-query`'s {@link https://react-query.tanstack.com/reference/useMutation `useMutation`} for multiple delete mutations.
|
|
54
|
+
*
|
|
55
|
+
* It uses `deleteMany` method as mutation function from the `dataProvider` which is passed to `<Refine>`.
|
|
56
|
+
*
|
|
57
|
+
* @see {@link https://refine.dev/docs/api-reference/core/hooks/data/useDeleteMany} for more details.
|
|
58
|
+
*
|
|
59
|
+
* @typeParam TData - Result data of the query extends {@link https://refine.dev/docs/core/interfaceReferences#baserecord `BaseRecord`}
|
|
60
|
+
* @typeParam TError - Custom error object that extends {@link https://refine.dev/docs/core/interfaceReferences#httperror `HttpError`}
|
|
61
|
+
* @typeParam TVariables - Values for params. default `{}`
|
|
62
|
+
*
|
|
63
|
+
*/
|
|
64
|
+
export declare const useDeleteMany: <TData extends BaseRecord = BaseRecord, TError extends HttpError = HttpError, TVariables = {}>({ mutationOptions, overtimeOptions, }?: UseDeleteManyProps<TData, TError, TVariables>) => UseDeleteManyReturnType<TData, TError, TVariables>;
|
|
65
|
+
//# sourceMappingURL=useDeleteMany.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useDeleteMany.d.ts","sourceRoot":"","sources":["../../../src/hooks/data/useDeleteMany.ts"],"names":[],"mappings":"AACA,OAAO,EACL,kBAAkB,EAClB,iBAAiB,EAGlB,MAAM,uBAAuB,CAAC;AAyB/B,OAAO,EACL,OAAO,EACP,UAAU,EACV,kBAAkB,EAElB,SAAS,EACT,UAAU,EACV,SAAS,EACT,YAAY,EACZ,WAAW,IAAI,aAAa,EAE7B,MAAM,2BAA2B,CAAC;AACnC,OAAO,EAAE,wBAAwB,EAAE,MAAM,mCAAmC,CAAC;AAE7E,OAAO,EACL,8BAA8B,EAC9B,4BAA4B,EAE7B,MAAM,uBAAuB,CAAC;AAE/B,MAAM,MAAM,gBAAgB,CAAC,KAAK,EAAE,MAAM,EAAE,UAAU,IAAI;IACxD;;OAEG;IACH,GAAG,EAAE,OAAO,EAAE,CAAC;IACf;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;IACjB;;OAEG;IACH,YAAY,CAAC,EAAE,YAAY,CAAC;IAC5B;;OAEG;IACH,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB;;OAEG;IACH,QAAQ,CAAC,EAAE,CAAC,cAAc,EAAE,MAAM,IAAI,KAAK,IAAI,CAAC;IAChD;;OAEG;IACH,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB;;OAEG;IACH,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB;;;OAGG;IACH,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B;;OAEG;IACH,WAAW,CAAC,EAAE,KAAK,CAAC,MAAM,UAAU,CAAC,CAAC;IACtC;;OAEG;IACH,MAAM,CAAC,EAAE,UAAU,CAAC;CACrB,GAAG,wBAAwB,CAAC,kBAAkB,CAAC,KAAK,CAAC,EAAE,MAAM,EAAE,OAAO,EAAE,CAAC,CAAC;AAE3E,MAAM,MAAM,uBAAuB,CACjC,KAAK,SAAS,UAAU,GAAG,UAAU,EACrC,MAAM,GAAG,SAAS,EAClB,UAAU,GAAG,EAAE,IACb,iBAAiB,CACnB,kBAAkB,CAAC,KAAK,CAAC,EACzB,MAAM,EACN,gBAAgB,CAAC,KAAK,EAAE,MAAM,EAAE,UAAU,CAAC,EAC3C,OAAO,CACR,GACC,4BAA4B,CAAC;AAE/B,MAAM,MAAM,kBAAkB,CAC5B,KAAK,SAAS,UAAU,GAAG,UAAU,EACrC,MAAM,SAAS,SAAS,GAAG,SAAS,EACpC,UAAU,GAAG,EAAE,IACb;IACF,eAAe,CAAC,EAAE,IAAI,CACpB,kBAAkB,CAChB,kBAAkB,CAAC,KAAK,CAAC,EACzB,MAAM,EACN,gBAAgB,CAAC,KAAK,EAAE,MAAM,EAAE,UAAU,CAAC,EAC3C,aAAa,CAAC,KAAK,CAAC,CACrB,EACD,YAAY,GAAG,SAAS,GAAG,WAAW,GAAG,WAAW,GAAG,UAAU,CAClE,CAAC;CACH,GAAG,8BAA8B,CAAC;AAEnC;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,aAAa,yIAOvB,mBAAmB,KAAK,EAAE,MAAM,EAAE,UAAU,CAAC,KAAQ,wBACtD,KAAK,EACL,MAAM,EACN,UAAU,CAmYX,CAAC"}
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { UseMutationOptions, UseMutationResult } from "@tanstack/react-query";
|
|
2
|
-
import { BaseKey, BaseRecord, DeleteManyResponse, HttpError, IQueryKeys, MetaQuery, MutationMode, PrevContext as DeleteContext
|
|
2
|
+
import { BaseKey, BaseRecord, DeleteManyResponse, HttpError, IQueryKeys, MetaQuery, MutationMode, PrevContext as DeleteContext } from "../../contexts/data/types";
|
|
3
|
+
import { SuccessErrorNotification } from "../../contexts/notification/types";
|
|
3
4
|
import { UseLoadingOvertimeOptionsProps, UseLoadingOvertimeReturnType } from "../useLoadingOvertime";
|
|
4
|
-
export
|
|
5
|
+
export type DeleteManyParams<TData, TError, TVariables> = {
|
|
5
6
|
/**
|
|
6
7
|
* ids for mutation function
|
|
7
8
|
*/
|
|
@@ -44,8 +45,8 @@ export declare type DeleteManyParams<TData, TError, TVariables> = {
|
|
|
44
45
|
*/
|
|
45
46
|
values?: TVariables;
|
|
46
47
|
} & SuccessErrorNotification<DeleteManyResponse<TData>, TError, BaseKey[]>;
|
|
47
|
-
export
|
|
48
|
-
export
|
|
48
|
+
export type UseDeleteManyReturnType<TData extends BaseRecord = BaseRecord, TError = HttpError, TVariables = {}> = UseMutationResult<DeleteManyResponse<TData>, TError, DeleteManyParams<TData, TError, TVariables>, unknown> & UseLoadingOvertimeReturnType;
|
|
49
|
+
export type UseDeleteManyProps<TData extends BaseRecord = BaseRecord, TError extends HttpError = HttpError, TVariables = {}> = {
|
|
49
50
|
mutationOptions?: Omit<UseMutationOptions<DeleteManyResponse<TData>, TError, DeleteManyParams<TData, TError, TVariables>, DeleteContext<TData>>, "mutationFn" | "onError" | "onSuccess" | "onSettled" | "onMutate">;
|
|
50
51
|
} & UseLoadingOvertimeOptionsProps;
|
|
51
52
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useDeleteMany.d.ts","sourceRoot":"","sources":["../../../src/hooks/data/useDeleteMany.ts"],"names":[],"mappings":"AACA,OAAO,
|
|
1
|
+
{"version":3,"file":"useDeleteMany.d.ts","sourceRoot":"","sources":["../../../src/hooks/data/useDeleteMany.ts"],"names":[],"mappings":"AACA,OAAO,EACL,kBAAkB,EAClB,iBAAiB,EAGlB,MAAM,uBAAuB,CAAC;AAyB/B,OAAO,EACL,OAAO,EACP,UAAU,EACV,kBAAkB,EAElB,SAAS,EACT,UAAU,EACV,SAAS,EACT,YAAY,EACZ,WAAW,IAAI,aAAa,EAE7B,MAAM,2BAA2B,CAAC;AACnC,OAAO,EAAE,wBAAwB,EAAE,MAAM,mCAAmC,CAAC;AAE7E,OAAO,EACL,8BAA8B,EAC9B,4BAA4B,EAE7B,MAAM,uBAAuB,CAAC;AAE/B,MAAM,MAAM,gBAAgB,CAAC,KAAK,EAAE,MAAM,EAAE,UAAU,IAAI;IACxD;;OAEG;IACH,GAAG,EAAE,OAAO,EAAE,CAAC;IACf;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;IACjB;;OAEG;IACH,YAAY,CAAC,EAAE,YAAY,CAAC;IAC5B;;OAEG;IACH,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB;;OAEG;IACH,QAAQ,CAAC,EAAE,CAAC,cAAc,EAAE,MAAM,IAAI,KAAK,IAAI,CAAC;IAChD;;OAEG;IACH,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB;;OAEG;IACH,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB;;;OAGG;IACH,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B;;OAEG;IACH,WAAW,CAAC,EAAE,KAAK,CAAC,MAAM,UAAU,CAAC,CAAC;IACtC;;OAEG;IACH,MAAM,CAAC,EAAE,UAAU,CAAC;CACrB,GAAG,wBAAwB,CAAC,kBAAkB,CAAC,KAAK,CAAC,EAAE,MAAM,EAAE,OAAO,EAAE,CAAC,CAAC;AAE3E,MAAM,MAAM,uBAAuB,CACjC,KAAK,SAAS,UAAU,GAAG,UAAU,EACrC,MAAM,GAAG,SAAS,EAClB,UAAU,GAAG,EAAE,IACb,iBAAiB,CACnB,kBAAkB,CAAC,KAAK,CAAC,EACzB,MAAM,EACN,gBAAgB,CAAC,KAAK,EAAE,MAAM,EAAE,UAAU,CAAC,EAC3C,OAAO,CACR,GACC,4BAA4B,CAAC;AAE/B,MAAM,MAAM,kBAAkB,CAC5B,KAAK,SAAS,UAAU,GAAG,UAAU,EACrC,MAAM,SAAS,SAAS,GAAG,SAAS,EACpC,UAAU,GAAG,EAAE,IACb;IACF,eAAe,CAAC,EAAE,IAAI,CACpB,kBAAkB,CAChB,kBAAkB,CAAC,KAAK,CAAC,EACzB,MAAM,EACN,gBAAgB,CAAC,KAAK,EAAE,MAAM,EAAE,UAAU,CAAC,EAC3C,aAAa,CAAC,KAAK,CAAC,CACrB,EACD,YAAY,GAAG,SAAS,GAAG,WAAW,GAAG,WAAW,GAAG,UAAU,CAClE,CAAC;CACH,GAAG,8BAA8B,CAAC;AAEnC;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,aAAa,yIAOvB,mBAAmB,KAAK,EAAE,MAAM,EAAE,UAAU,CAAC,KAAQ,wBACtD,KAAK,EACL,MAAM,EACN,UAAU,CAmYX,CAAC"}
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
import { InfiniteData, InfiniteQueryObserverResult, UseInfiniteQueryOptions } from "@tanstack/react-query";
|
|
2
|
+
import { BaseRecord, CrudFilter, CrudSort, GetListResponse, HttpError, MetaQuery, Pagination, Prettify } from "../../contexts/data/types";
|
|
3
|
+
import { LiveModeProps } from "../../contexts/live/types";
|
|
4
|
+
import { SuccessErrorNotification } from "../../contexts/notification/types";
|
|
5
|
+
import { UseLoadingOvertimeOptionsProps, UseLoadingOvertimeReturnType } from "../useLoadingOvertime";
|
|
6
|
+
export interface UseInfiniteListConfig {
|
|
7
|
+
pagination?: Pagination;
|
|
8
|
+
hasPagination?: boolean;
|
|
9
|
+
sort?: CrudSort[];
|
|
10
|
+
filters?: CrudFilter[];
|
|
11
|
+
}
|
|
12
|
+
type BaseInfiniteListProps = {
|
|
13
|
+
/**
|
|
14
|
+
* Metadata query for `dataProvider`
|
|
15
|
+
*/
|
|
16
|
+
meta?: MetaQuery;
|
|
17
|
+
/**
|
|
18
|
+
* Metadata query for `dataProvider`
|
|
19
|
+
* @deprecated `metaData` is deprecated with refine@4, refine will pass `meta` instead, however, we still support `metaData` for backward compatibility.
|
|
20
|
+
*/
|
|
21
|
+
metaData?: MetaQuery;
|
|
22
|
+
/**
|
|
23
|
+
* Configuration for pagination, sorting and filtering
|
|
24
|
+
* @type [`useInfiniteListConfig`](/docs/api-reference/core/hooks/data/useInfiniteList/#config-parameters)
|
|
25
|
+
* @deprecated `config` property is deprecated. Use `pagination`, `hasPagination`, `sorters` and `filters` instead.
|
|
26
|
+
*/
|
|
27
|
+
config?: UseInfiniteListConfig;
|
|
28
|
+
/**
|
|
29
|
+
* Pagination properties
|
|
30
|
+
*/
|
|
31
|
+
pagination?: Pagination;
|
|
32
|
+
/**
|
|
33
|
+
* Whether to use server-side pagination or not
|
|
34
|
+
* @deprecated `hasPagination` property is deprecated. Use `pagination.mode` instead.
|
|
35
|
+
*/
|
|
36
|
+
hasPagination?: boolean;
|
|
37
|
+
/**
|
|
38
|
+
* Sorter parameters
|
|
39
|
+
*/
|
|
40
|
+
sorters?: CrudSort[];
|
|
41
|
+
/**
|
|
42
|
+
* Filter parameters
|
|
43
|
+
*/
|
|
44
|
+
filters?: CrudFilter[];
|
|
45
|
+
/**
|
|
46
|
+
* If there is more than one `dataProvider`, you should use the `dataProviderName` that you will use
|
|
47
|
+
*/
|
|
48
|
+
dataProviderName?: string;
|
|
49
|
+
};
|
|
50
|
+
export type UseInfiniteListProps<TQueryFnData, TError, TData> = {
|
|
51
|
+
/**
|
|
52
|
+
* Resource name for API data interactions
|
|
53
|
+
*/
|
|
54
|
+
resource: string;
|
|
55
|
+
/**
|
|
56
|
+
* Tanstack Query's [useInfiniteQuery](https://tanstack.com/query/v4/docs/react/reference/useInfiniteQuery) options
|
|
57
|
+
*/
|
|
58
|
+
queryOptions?: UseInfiniteQueryOptions<GetListResponse<TQueryFnData>, TError, GetListResponse<TData>>;
|
|
59
|
+
} & BaseInfiniteListProps & SuccessErrorNotification<InfiniteData<GetListResponse<TData>>, TError, Prettify<BaseInfiniteListProps>> & LiveModeProps & UseLoadingOvertimeOptionsProps;
|
|
60
|
+
/**
|
|
61
|
+
* `useInfiniteList` is a modified version of `react-query`'s {@link https://tanstack.com/query/latest/docs/react/guides/infinite-queries `useInfiniteQuery`} used for retrieving items from a `resource` with pagination, sort, and filter configurations.
|
|
62
|
+
*
|
|
63
|
+
* It uses the `getList` method as the query function from the `dataProvider` which is passed to `<Refine>`.
|
|
64
|
+
*
|
|
65
|
+
* @see {@link https://refine.dev/docs/api-reference/core/hooks/data/useInfiniteList} for more details.
|
|
66
|
+
*
|
|
67
|
+
* @typeParam TQueryFnData - Result data returned by the query function. Extends {@link https://refine.dev/docs/api-reference/core/interfaceReferences#baserecord `BaseRecord`}
|
|
68
|
+
* @typeParam TError - Custom error object that extends {@link https://refine.dev/docs/api-reference/core/interfaceReferences#httperror `HttpError`}
|
|
69
|
+
* @typeParam TData - Result data returned by the `select` function. Extends {@link https://refine.dev/docs/api-reference/core/interfaceReferences#baserecord `BaseRecord`}. Defaults to `TQueryFnData`
|
|
70
|
+
*
|
|
71
|
+
*/
|
|
72
|
+
export declare const useInfiniteList: <TQueryFnData extends BaseRecord = BaseRecord, TError extends HttpError = HttpError, TData extends BaseRecord = TQueryFnData>({ resource: resourceFromProp, config, filters, hasPagination, pagination, sorters, queryOptions, successNotification, errorNotification, meta, metaData, liveMode, onLiveEvent, liveParams, dataProviderName, overtimeOptions, }: UseInfiniteListProps<TQueryFnData, TError, TData>) => InfiniteQueryObserverResult<GetListResponse<TData>, TError> & UseLoadingOvertimeReturnType;
|
|
73
|
+
export {};
|
|
74
|
+
//# sourceMappingURL=useInfiniteList.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useInfiniteList.d.ts","sourceRoot":"","sources":["../../../src/hooks/data/useInfiniteList.ts"],"names":[],"mappings":"AACA,OAAO,EACL,YAAY,EACZ,2BAA2B,EAC3B,uBAAuB,EAExB,MAAM,uBAAuB,CAAC;AAqB/B,OAAO,EACL,UAAU,EACV,UAAU,EACV,QAAQ,EACR,eAAe,EACf,SAAS,EACT,SAAS,EACT,UAAU,EACV,QAAQ,EACT,MAAM,2BAA2B,CAAC;AACnC,OAAO,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAC;AAC1D,OAAO,EAAE,wBAAwB,EAAE,MAAM,mCAAmC,CAAC;AAC7E,OAAO,EACL,8BAA8B,EAC9B,4BAA4B,EAE7B,MAAM,uBAAuB,CAAC;AAE/B,MAAM,WAAW,qBAAqB;IACpC,UAAU,CAAC,EAAE,UAAU,CAAC;IACxB,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,IAAI,CAAC,EAAE,QAAQ,EAAE,CAAC;IAClB,OAAO,CAAC,EAAE,UAAU,EAAE,CAAC;CACxB;AAED,KAAK,qBAAqB,GAAG;IAC3B;;OAEG;IACH,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB;;;OAGG;IACH,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB;;;;OAIG;IACH,MAAM,CAAC,EAAE,qBAAqB,CAAC;IAC/B;;OAEG;IACH,UAAU,CAAC,EAAE,UAAU,CAAC;IACxB;;;OAGG;IACH,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB;;OAEG;IACH,OAAO,CAAC,EAAE,QAAQ,EAAE,CAAC;IACrB;;OAEG;IACH,OAAO,CAAC,EAAE,UAAU,EAAE,CAAC;IACvB;;OAEG;IACH,gBAAgB,CAAC,EAAE,MAAM,CAAC;CAC3B,CAAC;AAEF,MAAM,MAAM,oBAAoB,CAAC,YAAY,EAAE,MAAM,EAAE,KAAK,IAAI;IAC9D;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;IACjB;;OAEG;IACH,YAAY,CAAC,EAAE,uBAAuB,CACpC,eAAe,CAAC,YAAY,CAAC,EAC7B,MAAM,EACN,eAAe,CAAC,KAAK,CAAC,CACvB,CAAC;CACH,GAAG,qBAAqB,GACvB,wBAAwB,CACtB,YAAY,CAAC,eAAe,CAAC,KAAK,CAAC,CAAC,EACpC,MAAM,EACN,QAAQ,CAAC,qBAAqB,CAAC,CAChC,GACD,aAAa,GACb,8BAA8B,CAAC;AAEjC;;;;;;;;;;;GAWG;AAEH,eAAO,MAAM,eAAe,kWAqBzB,qBACD,YAAY,EACZ,MAAM,EACN,KAAK,CACN,KAAG,4BAA4B,gBAAgB,KAAK,CAAC,EAAE,MAAM,CAAC,GAC7D,4BAwLD,CAAC"}
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
import { InfiniteData, InfiniteQueryObserverResult, UseInfiniteQueryOptions } from "@tanstack/react-query";
|
|
2
|
+
import { BaseRecord, CrudFilter, CrudSort, GetListResponse, HttpError, MetaQuery, Pagination, Prettify } from "../../contexts/data/types";
|
|
3
|
+
import { LiveModeProps } from "../../contexts/live/types";
|
|
4
|
+
import { SuccessErrorNotification } from "../../contexts/notification/types";
|
|
5
|
+
import { UseLoadingOvertimeOptionsProps, UseLoadingOvertimeReturnType } from "../useLoadingOvertime";
|
|
6
|
+
export interface UseInfiniteListConfig {
|
|
7
|
+
pagination?: Pagination;
|
|
8
|
+
hasPagination?: boolean;
|
|
9
|
+
sort?: CrudSort[];
|
|
10
|
+
filters?: CrudFilter[];
|
|
11
|
+
}
|
|
12
|
+
type BaseInfiniteListProps = {
|
|
13
|
+
/**
|
|
14
|
+
* Metadata query for `dataProvider`
|
|
15
|
+
*/
|
|
16
|
+
meta?: MetaQuery;
|
|
17
|
+
/**
|
|
18
|
+
* Metadata query for `dataProvider`
|
|
19
|
+
* @deprecated `metaData` is deprecated with refine@4, refine will pass `meta` instead, however, we still support `metaData` for backward compatibility.
|
|
20
|
+
*/
|
|
21
|
+
metaData?: MetaQuery;
|
|
22
|
+
/**
|
|
23
|
+
* Configuration for pagination, sorting and filtering
|
|
24
|
+
* @type [`useInfiniteListConfig`](/docs/api-reference/core/hooks/data/useInfiniteList/#config-parameters)
|
|
25
|
+
* @deprecated `config` property is deprecated. Use `pagination`, `hasPagination`, `sorters` and `filters` instead.
|
|
26
|
+
*/
|
|
27
|
+
config?: UseInfiniteListConfig;
|
|
28
|
+
/**
|
|
29
|
+
* Pagination properties
|
|
30
|
+
*/
|
|
31
|
+
pagination?: Pagination;
|
|
32
|
+
/**
|
|
33
|
+
* Whether to use server-side pagination or not
|
|
34
|
+
* @deprecated `hasPagination` property is deprecated. Use `pagination.mode` instead.
|
|
35
|
+
*/
|
|
36
|
+
hasPagination?: boolean;
|
|
37
|
+
/**
|
|
38
|
+
* Sorter parameters
|
|
39
|
+
*/
|
|
40
|
+
sorters?: CrudSort[];
|
|
41
|
+
/**
|
|
42
|
+
* Filter parameters
|
|
43
|
+
*/
|
|
44
|
+
filters?: CrudFilter[];
|
|
45
|
+
/**
|
|
46
|
+
* If there is more than one `dataProvider`, you should use the `dataProviderName` that you will use
|
|
47
|
+
*/
|
|
48
|
+
dataProviderName?: string;
|
|
49
|
+
};
|
|
50
|
+
export type UseInfiniteListProps<TQueryFnData, TError, TData> = {
|
|
51
|
+
/**
|
|
52
|
+
* Resource name for API data interactions
|
|
53
|
+
*/
|
|
54
|
+
resource: string;
|
|
55
|
+
/**
|
|
56
|
+
* Tanstack Query's [useInfiniteQuery](https://tanstack.com/query/v4/docs/react/reference/useInfiniteQuery) options
|
|
57
|
+
*/
|
|
58
|
+
queryOptions?: UseInfiniteQueryOptions<GetListResponse<TQueryFnData>, TError, GetListResponse<TData>>;
|
|
59
|
+
} & BaseInfiniteListProps & SuccessErrorNotification<InfiniteData<GetListResponse<TData>>, TError, Prettify<BaseInfiniteListProps>> & LiveModeProps & UseLoadingOvertimeOptionsProps;
|
|
60
|
+
/**
|
|
61
|
+
* `useInfiniteList` is a modified version of `react-query`'s {@link https://tanstack.com/query/latest/docs/react/guides/infinite-queries `useInfiniteQuery`} used for retrieving items from a `resource` with pagination, sort, and filter configurations.
|
|
62
|
+
*
|
|
63
|
+
* It uses the `getList` method as the query function from the `dataProvider` which is passed to `<Refine>`.
|
|
64
|
+
*
|
|
65
|
+
* @see {@link https://refine.dev/docs/api-reference/core/hooks/data/useInfiniteList} for more details.
|
|
66
|
+
*
|
|
67
|
+
* @typeParam TQueryFnData - Result data returned by the query function. Extends {@link https://refine.dev/docs/api-reference/core/interfaceReferences#baserecord `BaseRecord`}
|
|
68
|
+
* @typeParam TError - Custom error object that extends {@link https://refine.dev/docs/api-reference/core/interfaceReferences#httperror `HttpError`}
|
|
69
|
+
* @typeParam TData - Result data returned by the `select` function. Extends {@link https://refine.dev/docs/api-reference/core/interfaceReferences#baserecord `BaseRecord`}. Defaults to `TQueryFnData`
|
|
70
|
+
*
|
|
71
|
+
*/
|
|
72
|
+
export declare const useInfiniteList: <TQueryFnData extends BaseRecord = BaseRecord, TError extends HttpError = HttpError, TData extends BaseRecord = TQueryFnData>({ resource: resourceFromProp, config, filters, hasPagination, pagination, sorters, queryOptions, successNotification, errorNotification, meta, metaData, liveMode, onLiveEvent, liveParams, dataProviderName, overtimeOptions, }: UseInfiniteListProps<TQueryFnData, TError, TData>) => InfiniteQueryObserverResult<GetListResponse<TData>, TError> & UseLoadingOvertimeReturnType;
|
|
73
|
+
export {};
|
|
74
|
+
//# sourceMappingURL=useInfiniteList.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useInfiniteList.d.ts","sourceRoot":"","sources":["../../../src/hooks/data/useInfiniteList.ts"],"names":[],"mappings":"AACA,OAAO,EACL,YAAY,EACZ,2BAA2B,EAC3B,uBAAuB,EAExB,MAAM,uBAAuB,CAAC;AAqB/B,OAAO,EACL,UAAU,EACV,UAAU,EACV,QAAQ,EACR,eAAe,EACf,SAAS,EACT,SAAS,EACT,UAAU,EACV,QAAQ,EACT,MAAM,2BAA2B,CAAC;AACnC,OAAO,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAC;AAC1D,OAAO,EAAE,wBAAwB,EAAE,MAAM,mCAAmC,CAAC;AAC7E,OAAO,EACL,8BAA8B,EAC9B,4BAA4B,EAE7B,MAAM,uBAAuB,CAAC;AAE/B,MAAM,WAAW,qBAAqB;IACpC,UAAU,CAAC,EAAE,UAAU,CAAC;IACxB,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,IAAI,CAAC,EAAE,QAAQ,EAAE,CAAC;IAClB,OAAO,CAAC,EAAE,UAAU,EAAE,CAAC;CACxB;AAED,KAAK,qBAAqB,GAAG;IAC3B;;OAEG;IACH,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB;;;OAGG;IACH,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB;;;;OAIG;IACH,MAAM,CAAC,EAAE,qBAAqB,CAAC;IAC/B;;OAEG;IACH,UAAU,CAAC,EAAE,UAAU,CAAC;IACxB;;;OAGG;IACH,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB;;OAEG;IACH,OAAO,CAAC,EAAE,QAAQ,EAAE,CAAC;IACrB;;OAEG;IACH,OAAO,CAAC,EAAE,UAAU,EAAE,CAAC;IACvB;;OAEG;IACH,gBAAgB,CAAC,EAAE,MAAM,CAAC;CAC3B,CAAC;AAEF,MAAM,MAAM,oBAAoB,CAAC,YAAY,EAAE,MAAM,EAAE,KAAK,IAAI;IAC9D;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;IACjB;;OAEG;IACH,YAAY,CAAC,EAAE,uBAAuB,CACpC,eAAe,CAAC,YAAY,CAAC,EAC7B,MAAM,EACN,eAAe,CAAC,KAAK,CAAC,CACvB,CAAC;CACH,GAAG,qBAAqB,GACvB,wBAAwB,CACtB,YAAY,CAAC,eAAe,CAAC,KAAK,CAAC,CAAC,EACpC,MAAM,EACN,QAAQ,CAAC,qBAAqB,CAAC,CAChC,GACD,aAAa,GACb,8BAA8B,CAAC;AAEjC;;;;;;;;;;;GAWG;AAEH,eAAO,MAAM,eAAe,kWAqBzB,qBACD,YAAY,EACZ,MAAM,EACN,KAAK,CACN,KAAG,4BAA4B,gBAAgB,KAAK,CAAC,EAAE,MAAM,CAAC,GAC7D,4BAwLD,CAAC"}
|
|
@@ -1,13 +1,15 @@
|
|
|
1
1
|
import { InfiniteData, InfiniteQueryObserverResult, UseInfiniteQueryOptions } from "@tanstack/react-query";
|
|
2
|
-
import { BaseRecord,
|
|
2
|
+
import { BaseRecord, CrudFilter, CrudSort, GetListResponse, HttpError, MetaQuery, Pagination, Prettify } from "../../contexts/data/types";
|
|
3
|
+
import { LiveModeProps } from "../../contexts/live/types";
|
|
4
|
+
import { SuccessErrorNotification } from "../../contexts/notification/types";
|
|
3
5
|
import { UseLoadingOvertimeOptionsProps, UseLoadingOvertimeReturnType } from "../useLoadingOvertime";
|
|
4
6
|
export interface UseInfiniteListConfig {
|
|
5
7
|
pagination?: Pagination;
|
|
6
8
|
hasPagination?: boolean;
|
|
7
|
-
sort?:
|
|
8
|
-
filters?:
|
|
9
|
+
sort?: CrudSort[];
|
|
10
|
+
filters?: CrudFilter[];
|
|
9
11
|
}
|
|
10
|
-
|
|
12
|
+
type BaseInfiniteListProps = {
|
|
11
13
|
/**
|
|
12
14
|
* Metadata query for `dataProvider`
|
|
13
15
|
*/
|
|
@@ -35,17 +37,17 @@ declare type BaseInfiniteListProps = {
|
|
|
35
37
|
/**
|
|
36
38
|
* Sorter parameters
|
|
37
39
|
*/
|
|
38
|
-
sorters?:
|
|
40
|
+
sorters?: CrudSort[];
|
|
39
41
|
/**
|
|
40
42
|
* Filter parameters
|
|
41
43
|
*/
|
|
42
|
-
filters?:
|
|
44
|
+
filters?: CrudFilter[];
|
|
43
45
|
/**
|
|
44
46
|
* If there is more than one `dataProvider`, you should use the `dataProviderName` that you will use
|
|
45
47
|
*/
|
|
46
48
|
dataProviderName?: string;
|
|
47
49
|
};
|
|
48
|
-
export
|
|
50
|
+
export type UseInfiniteListProps<TQueryFnData, TError, TData> = {
|
|
49
51
|
/**
|
|
50
52
|
* Resource name for API data interactions
|
|
51
53
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useInfiniteList.d.ts","sourceRoot":"","sources":["../../../src/hooks/data/useInfiniteList.ts"],"names":[],"mappings":"AACA,OAAO,
|
|
1
|
+
{"version":3,"file":"useInfiniteList.d.ts","sourceRoot":"","sources":["../../../src/hooks/data/useInfiniteList.ts"],"names":[],"mappings":"AACA,OAAO,EACL,YAAY,EACZ,2BAA2B,EAC3B,uBAAuB,EAExB,MAAM,uBAAuB,CAAC;AAqB/B,OAAO,EACL,UAAU,EACV,UAAU,EACV,QAAQ,EACR,eAAe,EACf,SAAS,EACT,SAAS,EACT,UAAU,EACV,QAAQ,EACT,MAAM,2BAA2B,CAAC;AACnC,OAAO,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAC;AAC1D,OAAO,EAAE,wBAAwB,EAAE,MAAM,mCAAmC,CAAC;AAC7E,OAAO,EACL,8BAA8B,EAC9B,4BAA4B,EAE7B,MAAM,uBAAuB,CAAC;AAE/B,MAAM,WAAW,qBAAqB;IACpC,UAAU,CAAC,EAAE,UAAU,CAAC;IACxB,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,IAAI,CAAC,EAAE,QAAQ,EAAE,CAAC;IAClB,OAAO,CAAC,EAAE,UAAU,EAAE,CAAC;CACxB;AAED,KAAK,qBAAqB,GAAG;IAC3B;;OAEG;IACH,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB;;;OAGG;IACH,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB;;;;OAIG;IACH,MAAM,CAAC,EAAE,qBAAqB,CAAC;IAC/B;;OAEG;IACH,UAAU,CAAC,EAAE,UAAU,CAAC;IACxB;;;OAGG;IACH,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB;;OAEG;IACH,OAAO,CAAC,EAAE,QAAQ,EAAE,CAAC;IACrB;;OAEG;IACH,OAAO,CAAC,EAAE,UAAU,EAAE,CAAC;IACvB;;OAEG;IACH,gBAAgB,CAAC,EAAE,MAAM,CAAC;CAC3B,CAAC;AAEF,MAAM,MAAM,oBAAoB,CAAC,YAAY,EAAE,MAAM,EAAE,KAAK,IAAI;IAC9D;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;IACjB;;OAEG;IACH,YAAY,CAAC,EAAE,uBAAuB,CACpC,eAAe,CAAC,YAAY,CAAC,EAC7B,MAAM,EACN,eAAe,CAAC,KAAK,CAAC,CACvB,CAAC;CACH,GAAG,qBAAqB,GACvB,wBAAwB,CACtB,YAAY,CAAC,eAAe,CAAC,KAAK,CAAC,CAAC,EACpC,MAAM,EACN,QAAQ,CAAC,qBAAqB,CAAC,CAChC,GACD,aAAa,GACb,8BAA8B,CAAC;AAEjC;;;;;;;;;;;GAWG;AAEH,eAAO,MAAM,eAAe,kWAqBzB,qBACD,YAAY,EACZ,MAAM,EACN,KAAK,CACN,KAAG,4BAA4B,gBAAgB,KAAK,CAAC,EAAE,MAAM,CAAC,GAC7D,4BAwLD,CAAC"}
|