@refinedev/core 4.55.0 → 4.56.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.
Files changed (64) hide show
  1. package/CHANGELOG.md +81 -0
  2. package/dist/components/link/index.d.cts +3 -3
  3. package/dist/components/link/index.d.cts.map +1 -1
  4. package/dist/components/link/index.d.mts +3 -3
  5. package/dist/components/link/index.d.mts.map +3 -3
  6. package/dist/components/link/index.d.ts +3 -3
  7. package/dist/components/link/index.d.ts.map +1 -1
  8. package/dist/components/pages/auth/components/forgotPassword/index.d.cts.map +1 -1
  9. package/dist/components/pages/auth/components/forgotPassword/index.d.ts.map +1 -1
  10. package/dist/components/pages/auth/components/login/index.d.cts.map +1 -1
  11. package/dist/components/pages/auth/components/login/index.d.ts.map +1 -1
  12. package/dist/components/pages/auth/components/register/index.d.cts.map +1 -1
  13. package/dist/components/pages/auth/components/register/index.d.ts.map +1 -1
  14. package/dist/components/pages/auth/components/updatePassword/index.d.cts.map +1 -1
  15. package/dist/components/pages/auth/components/updatePassword/index.d.ts.map +1 -1
  16. package/dist/components/pages/auth/types.d.cts +8 -0
  17. package/dist/components/pages/auth/types.d.cts.map +1 -1
  18. package/dist/components/pages/auth/types.d.mts +8 -0
  19. package/dist/components/pages/auth/types.d.mts.map +8 -0
  20. package/dist/components/pages/auth/types.d.ts +8 -0
  21. package/dist/components/pages/auth/types.d.ts.map +1 -1
  22. package/dist/contexts/metaContext/index.d.cts +18 -0
  23. package/dist/contexts/metaContext/index.d.cts.map +1 -0
  24. package/dist/contexts/metaContext/index.d.mts +18 -0
  25. package/dist/contexts/metaContext/index.d.mts.map +18 -0
  26. package/dist/contexts/metaContext/index.d.ts +18 -0
  27. package/dist/contexts/metaContext/index.d.ts.map +1 -0
  28. package/dist/hooks/auth/index.d.cts +1 -0
  29. package/dist/hooks/auth/index.d.cts.map +1 -1
  30. package/dist/hooks/auth/index.d.mts +1 -0
  31. package/dist/hooks/auth/index.d.mts.map +1 -0
  32. package/dist/hooks/auth/index.d.ts +1 -0
  33. package/dist/hooks/auth/index.d.ts.map +1 -1
  34. package/dist/hooks/router/use-link/index.d.cts +1 -1
  35. package/dist/hooks/router/use-link/index.d.mts +1 -1
  36. package/dist/hooks/router/use-link/index.d.mts.map +1 -1
  37. package/dist/hooks/router/use-link/index.d.ts +1 -1
  38. package/dist/hooks/useMeta/index.d.cts +2 -12
  39. package/dist/hooks/useMeta/index.d.cts.map +1 -1
  40. package/dist/hooks/useMeta/index.d.mts +2 -12
  41. package/dist/hooks/useMeta/index.d.mts.map +2 -12
  42. package/dist/hooks/useMeta/index.d.ts +2 -12
  43. package/dist/hooks/useMeta/index.d.ts.map +1 -1
  44. package/dist/index.cjs +18 -18
  45. package/dist/index.cjs.map +1 -1
  46. package/dist/index.d.cts +1 -0
  47. package/dist/index.d.cts.map +1 -1
  48. package/dist/index.d.mts +1 -0
  49. package/dist/index.d.mts.map +1 -0
  50. package/dist/index.d.ts +1 -0
  51. package/dist/index.d.ts.map +1 -1
  52. package/dist/index.mjs +18 -18
  53. package/dist/index.mjs.map +1 -1
  54. package/package.json +1 -1
  55. package/src/components/link/index.tsx +6 -8
  56. package/src/components/pages/auth/components/forgotPassword/index.tsx +2 -1
  57. package/src/components/pages/auth/components/login/index.tsx +3 -1
  58. package/src/components/pages/auth/components/register/index.tsx +3 -1
  59. package/src/components/pages/auth/components/updatePassword/index.tsx +2 -0
  60. package/src/components/pages/auth/types.tsx +8 -0
  61. package/src/contexts/metaContext/index.tsx +45 -0
  62. package/src/hooks/auth/index.ts +1 -0
  63. package/src/hooks/useMeta/index.ts +16 -2
  64. package/src/index.tsx +5 -0
@@ -2,21 +2,11 @@ import type { MetaQuery } from "../../contexts/data/types";
2
2
  import type { IResourceItem } from "../../contexts/resource/types";
3
3
  /**
4
4
  * Hook that returns a function to get meta.
5
- * The meta is a combination of the resource meta, hook meta and query params.
5
+ * The meta is a combination of the resource meta, hook meta, query params and metaContext value.
6
6
  * @internal
7
7
  */
8
8
  export declare const useMeta: () => ({ resource, meta: metaFromProp, }?: {
9
9
  resource?: IResourceItem;
10
10
  meta?: MetaQuery;
11
- }) => {
12
- queryContext?: Omit<import("@tanstack/query-core").QueryFunctionContext<import("@tanstack/query-core").QueryKey, any>, "meta"> | undefined;
13
- operation?: string | undefined;
14
- fields?: import("../../contexts/data/types").Fields | undefined;
15
- variables?: import("../../contexts/data/types").VariableOptions | undefined;
16
- gqlQuery?: import("graphql").DocumentNode | undefined;
17
- gqlMutation?: import("graphql").DocumentNode | undefined;
18
- gqlVariables?: {
19
- [key: string]: any;
20
- } | undefined;
21
- };
11
+ }) => Record<string, unknown>;
22
12
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/hooks/useMeta/index.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,2BAA2B,CAAC;AAC3D,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,+BAA+B,CAAC;AAEnE;;;;GAIG;AACH,eAAO,MAAM,OAAO,6CAMf;IACD,QAAQ,CAAC,EAAE,aAAa,CAAC;IACzB,IAAI,CAAC,EAAE,SAAS,CAAC;CAClB;;;;;;;;;;CAgBF,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/hooks/useMeta/index.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,2BAA2B,CAAC;AAC3D,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,+BAA+B,CAAC;AAEnE;;;;GAIG;AACH,eAAO,MAAM,OAAO,6CAQf;IACD,QAAQ,CAAC,EAAE,aAAa,CAAC;IACzB,IAAI,CAAC,EAAE,SAAS,CAAC;CAClB,4BA2BF,CAAC"}
@@ -2,21 +2,11 @@ import type { MetaQuery } from "../../contexts/data/types";
2
2
  import type { IResourceItem } from "../../contexts/resource/types";
3
3
  /**
4
4
  * Hook that returns a function to get meta.
5
- * The meta is a combination of the resource meta, hook meta and query params.
5
+ * The meta is a combination of the resource meta, hook meta, query params and metaContext value.
6
6
  * @internal
7
7
  */
8
8
  export declare const useMeta: () => ({ resource, meta: metaFromProp, }?: {
9
9
  resource?: IResourceItem;
10
10
  meta?: MetaQuery;
11
- }) => {
12
- queryContext?: Omit<import("@tanstack/query-core").QueryFunctionContext<import("@tanstack/query-core").QueryKey, any>, "meta"> | undefined;
13
- operation?: string | undefined;
14
- fields?: import("../../contexts/data/types").Fields | undefined;
15
- variables?: import("../../contexts/data/types").VariableOptions | undefined;
16
- gqlQuery?: import("graphql").DocumentNode | undefined;
17
- gqlMutation?: import("graphql").DocumentNode | undefined;
18
- gqlVariables?: {
19
- [key: string]: any;
20
- } | undefined;
21
- };
11
+ }) => Record<string, unknown>;
22
12
  //# sourceMappingURL=index.d.ts.map
@@ -2,21 +2,11 @@ import type { MetaQuery } from "../../contexts/data/types";
2
2
  import type { IResourceItem } from "../../contexts/resource/types";
3
3
  /**
4
4
  * Hook that returns a function to get meta.
5
- * The meta is a combination of the resource meta, hook meta and query params.
5
+ * The meta is a combination of the resource meta, hook meta, query params and metaContext value.
6
6
  * @internal
7
7
  */
8
8
  export declare const useMeta: () => ({ resource, meta: metaFromProp, }?: {
9
9
  resource?: IResourceItem;
10
10
  meta?: MetaQuery;
11
- }) => {
12
- queryContext?: Omit<import("@tanstack/query-core").QueryFunctionContext<import("@tanstack/query-core").QueryKey, any>, "meta"> | undefined;
13
- operation?: string | undefined;
14
- fields?: import("../../contexts/data/types").Fields | undefined;
15
- variables?: import("../../contexts/data/types").VariableOptions | undefined;
16
- gqlQuery?: import("graphql").DocumentNode | undefined;
17
- gqlMutation?: import("graphql").DocumentNode | undefined;
18
- gqlVariables?: {
19
- [key: string]: any;
20
- } | undefined;
21
- };
11
+ }) => Record<string, unknown>;
22
12
  //# sourceMappingURL=index.d.ts.map
@@ -2,21 +2,11 @@ import type { MetaQuery } from "../../contexts/data/types";
2
2
  import type { IResourceItem } from "../../contexts/resource/types";
3
3
  /**
4
4
  * Hook that returns a function to get meta.
5
- * The meta is a combination of the resource meta, hook meta and query params.
5
+ * The meta is a combination of the resource meta, hook meta, query params and metaContext value.
6
6
  * @internal
7
7
  */
8
8
  export declare const useMeta: () => ({ resource, meta: metaFromProp, }?: {
9
9
  resource?: IResourceItem;
10
10
  meta?: MetaQuery;
11
- }) => {
12
- queryContext?: Omit<import("@tanstack/query-core").QueryFunctionContext<import("@tanstack/query-core").QueryKey, any>, "meta"> | undefined;
13
- operation?: string | undefined;
14
- fields?: import("../../contexts/data/types").Fields | undefined;
15
- variables?: import("../../contexts/data/types").VariableOptions | undefined;
16
- gqlQuery?: import("graphql").DocumentNode | undefined;
17
- gqlMutation?: import("graphql").DocumentNode | undefined;
18
- gqlVariables?: {
19
- [key: string]: any;
20
- } | undefined;
21
- };
11
+ }) => Record<string, unknown>;
22
12
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/hooks/useMeta/index.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,2BAA2B,CAAC;AAC3D,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,+BAA+B,CAAC;AAEnE;;;;GAIG;AACH,eAAO,MAAM,OAAO,6CAMf;IACD,QAAQ,CAAC,EAAE,aAAa,CAAC;IACzB,IAAI,CAAC,EAAE,SAAS,CAAC;CAClB;;;;;;;;;;CAgBF,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/hooks/useMeta/index.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,2BAA2B,CAAC;AAC3D,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,+BAA+B,CAAC;AAEnE;;;;GAIG;AACH,eAAO,MAAM,OAAO,6CAQf;IACD,QAAQ,CAAC,EAAE,aAAa,CAAC;IACzB,IAAI,CAAC,EAAE,SAAS,CAAC;CAClB,4BA2BF,CAAC"}