@refinedev/core 4.54.1 → 4.55.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 +84 -0
- package/dist/components/index.d.cts +1 -0
- package/dist/components/index.d.cts.map +1 -1
- package/dist/components/index.d.mts +1 -0
- package/dist/components/index.d.mts.map +1 -0
- package/dist/components/index.d.ts +1 -0
- package/dist/components/index.d.ts.map +1 -1
- package/dist/components/link/index.d.cts +20 -0
- package/dist/components/link/index.d.cts.map +1 -0
- package/dist/components/link/index.d.mts +20 -0
- package/dist/components/link/index.d.mts.map +20 -0
- package/dist/components/link/index.d.ts +20 -0
- package/dist/components/link/index.d.ts.map +1 -0
- package/dist/contexts/notification/types.d.cts +2 -2
- package/dist/contexts/notification/types.d.cts.map +1 -1
- package/dist/contexts/notification/types.d.mts +2 -2
- package/dist/contexts/notification/types.d.mts.map +2 -2
- package/dist/contexts/notification/types.d.ts +2 -2
- package/dist/contexts/notification/types.d.ts.map +1 -1
- package/dist/hooks/menu/useMenu.d.cts +1 -1
- package/dist/hooks/menu/useMenu.d.cts.map +1 -1
- package/dist/hooks/menu/useMenu.d.mts +1 -1
- package/dist/hooks/menu/useMenu.d.mts.map +1 -1
- package/dist/hooks/menu/useMenu.d.ts +1 -1
- package/dist/hooks/menu/useMenu.d.ts.map +1 -1
- package/dist/hooks/navigation/index.d.cts +1 -1
- package/dist/hooks/navigation/index.d.mts +1 -1
- package/dist/hooks/navigation/index.d.mts.map +1 -1
- package/dist/hooks/navigation/index.d.ts +1 -1
- package/dist/hooks/router/use-link/index.d.cts +4 -5
- package/dist/hooks/router/use-link/index.d.cts.map +1 -1
- package/dist/hooks/router/use-link/index.d.mts +4 -5
- package/dist/hooks/router/use-link/index.d.mts.map +4 -5
- package/dist/hooks/router/use-link/index.d.ts +4 -5
- package/dist/hooks/router/use-link/index.d.ts.map +1 -1
- package/dist/hooks/useTable/index.d.cts.map +1 -1
- package/dist/hooks/useTable/index.d.ts.map +1 -1
- package/dist/index.cjs +10 -10
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +10 -10
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/src/components/index.ts +1 -0
- package/src/components/link/index.tsx +74 -0
- package/src/contexts/notification/types.ts +2 -2
- package/src/hooks/menu/useMenu.tsx +11 -7
- package/src/hooks/navigation/index.ts +1 -1
- package/src/hooks/router/use-link/index.tsx +2 -14
- package/src/hooks/useTable/index.ts +47 -31
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,89 @@
|
|
|
1
1
|
# @refinedev/core
|
|
2
2
|
|
|
3
|
+
## 4.55.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [#6330](https://github.com/refinedev/refine/pull/6330) [`5a81b35bc1eedbecb4b6c531a2fa5235dd0caf31`](https://github.com/refinedev/refine/commit/5a81b35bc1eedbecb4b6c531a2fa5235dd0caf31) Thanks [@alicanerdurmaz](https://github.com/alicanerdurmaz)! - feat: add [`<Link />`](https://refine.dev/docs/routing/components/link/) component to navigate to a resource with a specific action. Under the hood, It uses [`useGo`](https://refine.dev/docs/routing/hooks/use-go/) to generate the URL.
|
|
8
|
+
|
|
9
|
+
## Usage
|
|
10
|
+
|
|
11
|
+
```tsx
|
|
12
|
+
import { Link } from "@refinedev/core";
|
|
13
|
+
|
|
14
|
+
const MyComponent = () => {
|
|
15
|
+
return (
|
|
16
|
+
<>
|
|
17
|
+
{/* simple usage, navigates to `/posts` */}
|
|
18
|
+
<Link to="/posts">Posts</Link>
|
|
19
|
+
{/* complex usage with more control, navigates to `/posts` with query filters */}
|
|
20
|
+
<Link
|
|
21
|
+
go={{
|
|
22
|
+
query: {
|
|
23
|
+
// `useTable` or `useDataGrid` automatically use this filters to fetch data if `syncWithLocation` is true.
|
|
24
|
+
filters: [
|
|
25
|
+
{
|
|
26
|
+
operator: "eq",
|
|
27
|
+
value: "published",
|
|
28
|
+
field: "status",
|
|
29
|
+
},
|
|
30
|
+
],
|
|
31
|
+
},
|
|
32
|
+
to: {
|
|
33
|
+
resource: "posts",
|
|
34
|
+
action: "list",
|
|
35
|
+
},
|
|
36
|
+
}}
|
|
37
|
+
>
|
|
38
|
+
Posts
|
|
39
|
+
</Link>
|
|
40
|
+
</>
|
|
41
|
+
);
|
|
42
|
+
};
|
|
43
|
+
```
|
|
44
|
+
|
|
45
|
+
[Fixes #6329](https://github.com/refinedev/refine/issues/6329)
|
|
46
|
+
|
|
47
|
+
- [#6330](https://github.com/refinedev/refine/pull/6330) [`5a81b35bc1eedbecb4b6c531a2fa5235dd0caf31`](https://github.com/refinedev/refine/commit/5a81b35bc1eedbecb4b6c531a2fa5235dd0caf31) Thanks [@alicanerdurmaz](https://github.com/alicanerdurmaz)! - chore: From now on, [`useLink`](https://refine.dev/docs/routing/hooks/use-link/) returns [`<Link />`](https://refine.dev/docs/routing/components/link/) component instead of returning [`routerProvider.Link`](https://refine.dev/docs/routing/router-provider/#link).
|
|
48
|
+
|
|
49
|
+
Since the `<Link />` component uses `routerProvider.Link` under the hood with leveraging `useGo` hook to generate the URL there is no breaking change. It's recommended to use the `<Link />` component from the `@refinedev/core` package instead of `useLink` hook. This hook is used mostly for internal purposes and is only exposed for customization needs.
|
|
50
|
+
|
|
51
|
+
[Fixes #6329](https://github.com/refinedev/refine/issues/6329)
|
|
52
|
+
|
|
53
|
+
### Patch Changes
|
|
54
|
+
|
|
55
|
+
- [#6327](https://github.com/refinedev/refine/pull/6327) [`c630b090539082b5166b508053f87274624c794e`](https://github.com/refinedev/refine/commit/c630b090539082b5166b508053f87274624c794e) Thanks [@Anonymous961](https://github.com/Anonymous961)! - fix(core): added ability to return `undefined` to fallback to the default notification config when using the function form in `successNotification` and `errorNotification` props.
|
|
56
|
+
|
|
57
|
+
[Resolves #6270](https://github.com/refinedev/refine/issues/6270)
|
|
58
|
+
|
|
59
|
+
- [#6353](https://github.com/refinedev/refine/pull/6353) [`a0f2d7bbef3093e11c3024bb7fa2a0ffc3ce9e10`](https://github.com/refinedev/refine/commit/a0f2d7bbef3093e11c3024bb7fa2a0ffc3ce9e10) Thanks [@alicanerdurmaz](https://github.com/alicanerdurmaz)! - fix: The `label` and `route` fields in `useMenu().menuItems` were marked as deprecated, but they are not actually deprecated. This issue was caused by `menuItems` extending from `IResourceItem`, however, `menuItems` populates these fields and handles deprecation of these fields internally. This change removes the deprecation warning for these fields.
|
|
60
|
+
|
|
61
|
+
```tsx
|
|
62
|
+
export const Sider = () => {
|
|
63
|
+
const { menuItems } = useMenu();
|
|
64
|
+
menuItems.map((item) => {
|
|
65
|
+
// these are safe to use
|
|
66
|
+
console.log(item.label);
|
|
67
|
+
console.log(item.route);
|
|
68
|
+
item.children.map((child) => {
|
|
69
|
+
// these are safe to use
|
|
70
|
+
console.log(child.label);
|
|
71
|
+
console.log(child.route);
|
|
72
|
+
});
|
|
73
|
+
});
|
|
74
|
+
|
|
75
|
+
return <div>{/* ... */}</div>;
|
|
76
|
+
};
|
|
77
|
+
```
|
|
78
|
+
|
|
79
|
+
[Fixes #6352](https://github.com/refinedev/refine/issues/6352)
|
|
80
|
+
|
|
81
|
+
- [#6386](https://github.com/refinedev/refine/pull/6386) [`bfe28f0316b3623aaef0b60ae39ebe24939dd0af`](https://github.com/refinedev/refine/commit/bfe28f0316b3623aaef0b60ae39ebe24939dd0af) Thanks [@hugorezende](https://github.com/hugorezende)! - fix(core): wrap `setFilters` and `setSorters` methods with `useCallback` to prevent looping re-renders
|
|
82
|
+
|
|
83
|
+
With this we can use the setFilters as dependencies inside useEffects without infinite loop since state changes in the hook won't cause the functions to be re-assigned
|
|
84
|
+
|
|
85
|
+
[Fixes #6385](https://github.com/refinedev/refine/issues/6385)
|
|
86
|
+
|
|
3
87
|
## 4.54.1
|
|
4
88
|
|
|
5
89
|
### Patch Changes
|
|
@@ -7,4 +7,5 @@ export { RouteChangeHandler } from "./routeChangeHandler";
|
|
|
7
7
|
export { CanAccess, CanAccessProps } from "./canAccess";
|
|
8
8
|
export { GitHubBanner } from "./gh-banner";
|
|
9
9
|
export { AutoSaveIndicator, AutoSaveIndicatorProps } from "./autoSaveIndicator";
|
|
10
|
+
export { Link, LinkProps } from "./link";
|
|
10
11
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/components/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAC;AACxB,cAAc,cAAc,CAAC;AAC7B,cAAc,iBAAiB,CAAC;AAEhC,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAC1D,OAAO,EAAE,SAAS,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AACxD,OAAO,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAC3C,OAAO,EAAE,iBAAiB,EAAE,sBAAsB,EAAE,MAAM,qBAAqB,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/components/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAC;AACxB,cAAc,cAAc,CAAC;AAC7B,cAAc,iBAAiB,CAAC;AAEhC,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAC1D,OAAO,EAAE,SAAS,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AACxD,OAAO,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAC3C,OAAO,EAAE,iBAAiB,EAAE,sBAAsB,EAAE,MAAM,qBAAqB,CAAC;AAChF,OAAO,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,QAAQ,CAAC"}
|
|
@@ -7,4 +7,5 @@ export { RouteChangeHandler } from "./routeChangeHandler";
|
|
|
7
7
|
export { CanAccess, CanAccessProps } from "./canAccess";
|
|
8
8
|
export { GitHubBanner } from "./gh-banner";
|
|
9
9
|
export { AutoSaveIndicator, AutoSaveIndicatorProps } from "./autoSaveIndicator";
|
|
10
|
+
export { Link, LinkProps } from "./link";
|
|
10
11
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -7,4 +7,5 @@ export { RouteChangeHandler } from "./routeChangeHandler";
|
|
|
7
7
|
export { CanAccess, CanAccessProps } from "./canAccess";
|
|
8
8
|
export { GitHubBanner } from "./gh-banner";
|
|
9
9
|
export { AutoSaveIndicator, AutoSaveIndicatorProps } from "./autoSaveIndicator";
|
|
10
|
+
export { Link, LinkProps } from "./link";
|
|
10
11
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -7,4 +7,5 @@ export { RouteChangeHandler } from "./routeChangeHandler";
|
|
|
7
7
|
export { CanAccess, CanAccessProps } from "./canAccess";
|
|
8
8
|
export { GitHubBanner } from "./gh-banner";
|
|
9
9
|
export { AutoSaveIndicator, AutoSaveIndicatorProps } from "./autoSaveIndicator";
|
|
10
|
+
export { Link, LinkProps } from "./link";
|
|
10
11
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/components/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAC;AACxB,cAAc,cAAc,CAAC;AAC7B,cAAc,iBAAiB,CAAC;AAEhC,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAC1D,OAAO,EAAE,SAAS,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AACxD,OAAO,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAC3C,OAAO,EAAE,iBAAiB,EAAE,sBAAsB,EAAE,MAAM,qBAAqB,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/components/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAC;AACxB,cAAc,cAAc,CAAC;AAC7B,cAAc,iBAAiB,CAAC;AAEhC,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAC1D,OAAO,EAAE,SAAS,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AACxD,OAAO,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAC3C,OAAO,EAAE,iBAAiB,EAAE,sBAAsB,EAAE,MAAM,qBAAqB,CAAC;AAChF,OAAO,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,QAAQ,CAAC"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import React, { type Ref } from "react";
|
|
2
|
+
import type { GoConfigWithResource } from "../../hooks/router/use-go";
|
|
3
|
+
type LinkPropsWithGo = {
|
|
4
|
+
go: Omit<GoConfigWithResource, "type">;
|
|
5
|
+
};
|
|
6
|
+
type LinkPropsWithTo = {
|
|
7
|
+
to: string;
|
|
8
|
+
};
|
|
9
|
+
export type LinkProps<TProps = {}> = React.PropsWithChildren<(LinkPropsWithGo | LinkPropsWithTo) & React.AnchorHTMLAttributes<HTMLAnchorElement> & TProps>;
|
|
10
|
+
/**
|
|
11
|
+
* @param to The path to navigate to.
|
|
12
|
+
* @param go The useGo.go params to navigate to. If `to` provided, this will be ignored.
|
|
13
|
+
* @returns routerProvider.Link if it is provided, otherwise an anchor tag.
|
|
14
|
+
*/
|
|
15
|
+
declare const LinkComponent: <TProps = {}>(props: LinkProps<TProps>, ref: Ref<HTMLAnchorElement>) => React.JSX.Element;
|
|
16
|
+
export declare const Link: <T = {}>(props: LinkProps<T> & {
|
|
17
|
+
ref?: Ref<HTMLAnchorElement>;
|
|
18
|
+
}) => ReturnType<typeof LinkComponent>;
|
|
19
|
+
export {};
|
|
20
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/link/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,KAAK,GAAG,EAA0B,MAAM,OAAO,CAAC;AAGhE,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,2BAA2B,CAAC;AAGtE,KAAK,eAAe,GAAG;IACrB,EAAE,EAAE,IAAI,CAAC,oBAAoB,EAAE,MAAM,CAAC,CAAC;CACxC,CAAC;AAEF,KAAK,eAAe,GAAG;IACrB,EAAE,EAAE,MAAM,CAAC;CACZ,CAAC;AAEF,MAAM,MAAM,SAAS,CAAC,MAAM,GAAG,EAAE,IAAI,KAAK,CAAC,iBAAiB,CAC1D,CAAC,eAAe,GAAG,eAAe,CAAC,GACjC,KAAK,CAAC,oBAAoB,CAAC,iBAAiB,CAAC,GAC7C,MAAM,CACT,CAAC;AAEF;;;;GAIG;AACH,QAAA,MAAM,aAAa,uBACV,UAAU,MAAM,CAAC,OACnB,IAAI,iBAAiB,CAAC,sBA0C5B,CAAC;AAEF,eAAO,MAAM,IAAI,kBACR,UAAU,CAAC,CAAC,GAAG;IAAE,GAAG,CAAC,EAAE,IAAI,iBAAiB,CAAC,CAAA;CAAE,KACnD,WAAW,oBAAoB,CAAC,CAAC"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import React, { type Ref } from "react";
|
|
2
|
+
import type { GoConfigWithResource } from "../../hooks/router/use-go";
|
|
3
|
+
type LinkPropsWithGo = {
|
|
4
|
+
go: Omit<GoConfigWithResource, "type">;
|
|
5
|
+
};
|
|
6
|
+
type LinkPropsWithTo = {
|
|
7
|
+
to: string;
|
|
8
|
+
};
|
|
9
|
+
export type LinkProps<TProps = {}> = React.PropsWithChildren<(LinkPropsWithGo | LinkPropsWithTo) & React.AnchorHTMLAttributes<HTMLAnchorElement> & TProps>;
|
|
10
|
+
/**
|
|
11
|
+
* @param to The path to navigate to.
|
|
12
|
+
* @param go The useGo.go params to navigate to. If `to` provided, this will be ignored.
|
|
13
|
+
* @returns routerProvider.Link if it is provided, otherwise an anchor tag.
|
|
14
|
+
*/
|
|
15
|
+
declare const LinkComponent: <TProps = {}>(props: LinkProps<TProps>, ref: Ref<HTMLAnchorElement>) => React.JSX.Element;
|
|
16
|
+
export declare const Link: <T = {}>(props: LinkProps<T> & {
|
|
17
|
+
ref?: Ref<HTMLAnchorElement>;
|
|
18
|
+
}) => ReturnType<typeof LinkComponent>;
|
|
19
|
+
export {};
|
|
20
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import React, { type Ref } from "react";
|
|
2
|
+
import type { GoConfigWithResource } from "../../hooks/router/use-go";
|
|
3
|
+
type LinkPropsWithGo = {
|
|
4
|
+
go: Omit<GoConfigWithResource, "type">;
|
|
5
|
+
};
|
|
6
|
+
type LinkPropsWithTo = {
|
|
7
|
+
to: string;
|
|
8
|
+
};
|
|
9
|
+
export type LinkProps<TProps = {}> = React.PropsWithChildren<(LinkPropsWithGo | LinkPropsWithTo) & React.AnchorHTMLAttributes<HTMLAnchorElement> & TProps>;
|
|
10
|
+
/**
|
|
11
|
+
* @param to The path to navigate to.
|
|
12
|
+
* @param go The useGo.go params to navigate to. If `to` provided, this will be ignored.
|
|
13
|
+
* @returns routerProvider.Link if it is provided, otherwise an anchor tag.
|
|
14
|
+
*/
|
|
15
|
+
declare const LinkComponent: <TProps = {}>(props: LinkProps<TProps>, ref: Ref<HTMLAnchorElement>) => React.JSX.Element;
|
|
16
|
+
export declare const Link: <T = {}>(props: LinkProps<T> & {
|
|
17
|
+
ref?: Ref<HTMLAnchorElement>;
|
|
18
|
+
}) => ReturnType<typeof LinkComponent>;
|
|
19
|
+
export {};
|
|
20
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import React, { type Ref } from "react";
|
|
2
|
+
import type { GoConfigWithResource } from "../../hooks/router/use-go";
|
|
3
|
+
type LinkPropsWithGo = {
|
|
4
|
+
go: Omit<GoConfigWithResource, "type">;
|
|
5
|
+
};
|
|
6
|
+
type LinkPropsWithTo = {
|
|
7
|
+
to: string;
|
|
8
|
+
};
|
|
9
|
+
export type LinkProps<TProps = {}> = React.PropsWithChildren<(LinkPropsWithGo | LinkPropsWithTo) & React.AnchorHTMLAttributes<HTMLAnchorElement> & TProps>;
|
|
10
|
+
/**
|
|
11
|
+
* @param to The path to navigate to.
|
|
12
|
+
* @param go The useGo.go params to navigate to. If `to` provided, this will be ignored.
|
|
13
|
+
* @returns routerProvider.Link if it is provided, otherwise an anchor tag.
|
|
14
|
+
*/
|
|
15
|
+
declare const LinkComponent: <TProps = {}>(props: LinkProps<TProps>, ref: Ref<HTMLAnchorElement>) => React.JSX.Element;
|
|
16
|
+
export declare const Link: <T = {}>(props: LinkProps<T> & {
|
|
17
|
+
ref?: Ref<HTMLAnchorElement>;
|
|
18
|
+
}) => ReturnType<typeof LinkComponent>;
|
|
19
|
+
export {};
|
|
20
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/link/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,KAAK,GAAG,EAA0B,MAAM,OAAO,CAAC;AAGhE,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,2BAA2B,CAAC;AAGtE,KAAK,eAAe,GAAG;IACrB,EAAE,EAAE,IAAI,CAAC,oBAAoB,EAAE,MAAM,CAAC,CAAC;CACxC,CAAC;AAEF,KAAK,eAAe,GAAG;IACrB,EAAE,EAAE,MAAM,CAAC;CACZ,CAAC;AAEF,MAAM,MAAM,SAAS,CAAC,MAAM,GAAG,EAAE,IAAI,KAAK,CAAC,iBAAiB,CAC1D,CAAC,eAAe,GAAG,eAAe,CAAC,GACjC,KAAK,CAAC,oBAAoB,CAAC,iBAAiB,CAAC,GAC7C,MAAM,CACT,CAAC;AAEF;;;;GAIG;AACH,QAAA,MAAM,aAAa,uBACV,UAAU,MAAM,CAAC,OACnB,IAAI,iBAAiB,CAAC,sBA0C5B,CAAC;AAEF,eAAO,MAAM,IAAI,kBACR,UAAU,CAAC,CAAC,GAAG;IAAE,GAAG,CAAC,EAAE,IAAI,iBAAiB,CAAC,CAAA;CAAE,KACnD,WAAW,oBAAoB,CAAC,CAAC"}
|
|
@@ -4,12 +4,12 @@ export type SuccessErrorNotification<TData = unknown, TError = unknown, TVariabl
|
|
|
4
4
|
* @default '"There was an error creating resource (status code: `statusCode`)" or "Error when updating resource (status code: statusCode)"'
|
|
5
5
|
|
|
6
6
|
*/
|
|
7
|
-
successNotification?: OpenNotificationParams | false | ((data?: TData, values?: TVariables, resource?: string) => OpenNotificationParams | false);
|
|
7
|
+
successNotification?: OpenNotificationParams | false | ((data?: TData, values?: TVariables, resource?: string) => OpenNotificationParams | false | undefined);
|
|
8
8
|
/**
|
|
9
9
|
* Error notification configuration to be displayed when the mutation fails.
|
|
10
10
|
* @default '"There was an error creating resource (status code: `statusCode`)" or "Error when updating resource (status code: statusCode)"'
|
|
11
11
|
*/
|
|
12
|
-
errorNotification?: OpenNotificationParams | false | ((error?: TError, values?: TVariables, resource?: string) => OpenNotificationParams | false);
|
|
12
|
+
errorNotification?: OpenNotificationParams | false | ((error?: TError, values?: TVariables, resource?: string) => OpenNotificationParams | false | undefined);
|
|
13
13
|
};
|
|
14
14
|
export type OpenNotificationParams = {
|
|
15
15
|
key?: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/contexts/notification/types.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,wBAAwB,CAClC,KAAK,GAAG,OAAO,EACf,MAAM,GAAG,OAAO,EAChB,UAAU,GAAG,OAAO,IAClB;IACF;;;;SAIK;IACL,mBAAmB,CAAC,EAChB,sBAAsB,GACtB,KAAK,GACL,CAAC,CACC,IAAI,CAAC,EAAE,KAAK,EACZ,MAAM,CAAC,EAAE,UAAU,EACnB,QAAQ,CAAC,EAAE,MAAM,KACd,sBAAsB,GAAG,KAAK,CAAC,CAAC;
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/contexts/notification/types.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,wBAAwB,CAClC,KAAK,GAAG,OAAO,EACf,MAAM,GAAG,OAAO,EAChB,UAAU,GAAG,OAAO,IAClB;IACF;;;;SAIK;IACL,mBAAmB,CAAC,EAChB,sBAAsB,GACtB,KAAK,GACL,CAAC,CACC,IAAI,CAAC,EAAE,KAAK,EACZ,MAAM,CAAC,EAAE,UAAU,EACnB,QAAQ,CAAC,EAAE,MAAM,KACd,sBAAsB,GAAG,KAAK,GAAG,SAAS,CAAC,CAAC;IACrD;;;OAGG;IACH,iBAAiB,CAAC,EACd,sBAAsB,GACtB,KAAK,GACL,CAAC,CACC,KAAK,CAAC,EAAE,MAAM,EACd,MAAM,CAAC,EAAE,UAAU,EACnB,QAAQ,CAAC,EAAE,MAAM,KACd,sBAAsB,GAAG,KAAK,GAAG,SAAS,CAAC,CAAC;CACtD,CAAC;AAEF,MAAM,MAAM,sBAAsB,GAAG;IACnC,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;IAChB,IAAI,EAAE,SAAS,GAAG,OAAO,GAAG,UAAU,CAAC;IACvC,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,cAAc,CAAC,EAAE,MAAM,IAAI,CAAC;IAC5B,eAAe,CAAC,EAAE,MAAM,CAAC;CAC1B,CAAC;AAEF,MAAM,WAAW,oBAAoB;IACnC,IAAI,CAAC,EAAE,CAAC,MAAM,EAAE,sBAAsB,KAAK,IAAI,CAAC;IAChD,KAAK,CAAC,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,IAAI,CAAC;CAC/B;AAED,MAAM,MAAM,oBAAoB,GAAG,QAAQ,CAAC,oBAAoB,CAAC,CAAC"}
|
|
@@ -4,12 +4,12 @@ export type SuccessErrorNotification<TData = unknown, TError = unknown, TVariabl
|
|
|
4
4
|
* @default '"There was an error creating resource (status code: `statusCode`)" or "Error when updating resource (status code: statusCode)"'
|
|
5
5
|
|
|
6
6
|
*/
|
|
7
|
-
successNotification?: OpenNotificationParams | false | ((data?: TData, values?: TVariables, resource?: string) => OpenNotificationParams | false);
|
|
7
|
+
successNotification?: OpenNotificationParams | false | ((data?: TData, values?: TVariables, resource?: string) => OpenNotificationParams | false | undefined);
|
|
8
8
|
/**
|
|
9
9
|
* Error notification configuration to be displayed when the mutation fails.
|
|
10
10
|
* @default '"There was an error creating resource (status code: `statusCode`)" or "Error when updating resource (status code: statusCode)"'
|
|
11
11
|
*/
|
|
12
|
-
errorNotification?: OpenNotificationParams | false | ((error?: TError, values?: TVariables, resource?: string) => OpenNotificationParams | false);
|
|
12
|
+
errorNotification?: OpenNotificationParams | false | ((error?: TError, values?: TVariables, resource?: string) => OpenNotificationParams | false | undefined);
|
|
13
13
|
};
|
|
14
14
|
export type OpenNotificationParams = {
|
|
15
15
|
key?: string;
|
|
@@ -4,12 +4,12 @@ export type SuccessErrorNotification<TData = unknown, TError = unknown, TVariabl
|
|
|
4
4
|
* @default '"There was an error creating resource (status code: `statusCode`)" or "Error when updating resource (status code: statusCode)"'
|
|
5
5
|
|
|
6
6
|
*/
|
|
7
|
-
successNotification?: OpenNotificationParams | false | ((data?: TData, values?: TVariables, resource?: string) => OpenNotificationParams | false);
|
|
7
|
+
successNotification?: OpenNotificationParams | false | ((data?: TData, values?: TVariables, resource?: string) => OpenNotificationParams | false | undefined);
|
|
8
8
|
/**
|
|
9
9
|
* Error notification configuration to be displayed when the mutation fails.
|
|
10
10
|
* @default '"There was an error creating resource (status code: `statusCode`)" or "Error when updating resource (status code: statusCode)"'
|
|
11
11
|
*/
|
|
12
|
-
errorNotification?: OpenNotificationParams | false | ((error?: TError, values?: TVariables, resource?: string) => OpenNotificationParams | false);
|
|
12
|
+
errorNotification?: OpenNotificationParams | false | ((error?: TError, values?: TVariables, resource?: string) => OpenNotificationParams | false | undefined);
|
|
13
13
|
};
|
|
14
14
|
export type OpenNotificationParams = {
|
|
15
15
|
key?: string;
|
|
@@ -4,12 +4,12 @@ export type SuccessErrorNotification<TData = unknown, TError = unknown, TVariabl
|
|
|
4
4
|
* @default '"There was an error creating resource (status code: `statusCode`)" or "Error when updating resource (status code: statusCode)"'
|
|
5
5
|
|
|
6
6
|
*/
|
|
7
|
-
successNotification?: OpenNotificationParams | false | ((data?: TData, values?: TVariables, resource?: string) => OpenNotificationParams | false);
|
|
7
|
+
successNotification?: OpenNotificationParams | false | ((data?: TData, values?: TVariables, resource?: string) => OpenNotificationParams | false | undefined);
|
|
8
8
|
/**
|
|
9
9
|
* Error notification configuration to be displayed when the mutation fails.
|
|
10
10
|
* @default '"There was an error creating resource (status code: `statusCode`)" or "Error when updating resource (status code: statusCode)"'
|
|
11
11
|
*/
|
|
12
|
-
errorNotification?: OpenNotificationParams | false | ((error?: TError, values?: TVariables, resource?: string) => OpenNotificationParams | false);
|
|
12
|
+
errorNotification?: OpenNotificationParams | false | ((error?: TError, values?: TVariables, resource?: string) => OpenNotificationParams | false | undefined);
|
|
13
13
|
};
|
|
14
14
|
export type OpenNotificationParams = {
|
|
15
15
|
key?: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/contexts/notification/types.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,wBAAwB,CAClC,KAAK,GAAG,OAAO,EACf,MAAM,GAAG,OAAO,EAChB,UAAU,GAAG,OAAO,IAClB;IACF;;;;SAIK;IACL,mBAAmB,CAAC,EAChB,sBAAsB,GACtB,KAAK,GACL,CAAC,CACC,IAAI,CAAC,EAAE,KAAK,EACZ,MAAM,CAAC,EAAE,UAAU,EACnB,QAAQ,CAAC,EAAE,MAAM,KACd,sBAAsB,GAAG,KAAK,CAAC,CAAC;
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/contexts/notification/types.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,wBAAwB,CAClC,KAAK,GAAG,OAAO,EACf,MAAM,GAAG,OAAO,EAChB,UAAU,GAAG,OAAO,IAClB;IACF;;;;SAIK;IACL,mBAAmB,CAAC,EAChB,sBAAsB,GACtB,KAAK,GACL,CAAC,CACC,IAAI,CAAC,EAAE,KAAK,EACZ,MAAM,CAAC,EAAE,UAAU,EACnB,QAAQ,CAAC,EAAE,MAAM,KACd,sBAAsB,GAAG,KAAK,GAAG,SAAS,CAAC,CAAC;IACrD;;;OAGG;IACH,iBAAiB,CAAC,EACd,sBAAsB,GACtB,KAAK,GACL,CAAC,CACC,KAAK,CAAC,EAAE,MAAM,EACd,MAAM,CAAC,EAAE,UAAU,EACnB,QAAQ,CAAC,EAAE,MAAM,KACd,sBAAsB,GAAG,KAAK,GAAG,SAAS,CAAC,CAAC;CACtD,CAAC;AAEF,MAAM,MAAM,sBAAsB,GAAG;IACnC,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;IAChB,IAAI,EAAE,SAAS,GAAG,OAAO,GAAG,UAAU,CAAC;IACvC,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,cAAc,CAAC,EAAE,MAAM,IAAI,CAAC;IAC5B,eAAe,CAAC,EAAE,MAAM,CAAC;CAC1B,CAAC;AAEF,MAAM,WAAW,oBAAoB;IACnC,IAAI,CAAC,EAAE,CAAC,MAAM,EAAE,sBAAsB,KAAK,IAAI,CAAC;IAChD,KAAK,CAAC,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,IAAI,CAAC;CAC/B;AAED,MAAM,MAAM,oBAAoB,GAAG,QAAQ,CAAC,oBAAoB,CAAC,CAAC"}
|
|
@@ -9,7 +9,7 @@ export type UseMenuProps = {
|
|
|
9
9
|
meta?: Record<string, any>;
|
|
10
10
|
hideOnMissingParameter?: boolean;
|
|
11
11
|
};
|
|
12
|
-
export type TreeMenuItem = FlatTreeItem & {
|
|
12
|
+
export type TreeMenuItem = Omit<FlatTreeItem, "label" | "route" | "children"> & {
|
|
13
13
|
route?: string;
|
|
14
14
|
icon?: React.ReactNode;
|
|
15
15
|
label?: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useMenu.d.ts","sourceRoot":"","sources":["../../../src/hooks/menu/useMenu.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAQ1B,OAAO,EACL,KAAK,YAAY,EAElB,MAAM,4CAA4C,CAAC;AAGpD,KAAK,iBAAiB,GAAG;IACvB,eAAe,EAAE,MAAM,EAAE,CAAC;IAC1B,WAAW,EAAE,MAAM,CAAC;IACpB,SAAS,EAAE,YAAY,EAAE,CAAC;CAC3B,CAAC;AAEF,MAAM,MAAM,YAAY,GAAG;IACzB,IAAI,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IAC3B,sBAAsB,CAAC,EAAE,OAAO,CAAC;CAClC,CAAC;AAEF,MAAM,MAAM,YAAY,
|
|
1
|
+
{"version":3,"file":"useMenu.d.ts","sourceRoot":"","sources":["../../../src/hooks/menu/useMenu.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAQ1B,OAAO,EACL,KAAK,YAAY,EAElB,MAAM,4CAA4C,CAAC;AAGpD,KAAK,iBAAiB,GAAG;IACvB,eAAe,EAAE,MAAM,EAAE,CAAC;IAC1B,WAAW,EAAE,MAAM,CAAC;IACpB,SAAS,EAAE,YAAY,EAAE,CAAC;CAC3B,CAAC;AAEF,MAAM,MAAM,YAAY,GAAG;IACzB,IAAI,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IAC3B,sBAAsB,CAAC,EAAE,OAAO,CAAC;CAClC,CAAC;AAEF,MAAM,MAAM,YAAY,GAEtB,IAAI,CAAC,YAAY,EAAE,OAAO,GAAG,OAAO,GAAG,UAAU,CAAC,GAAG;IACnD,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,IAAI,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACvB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,EAAE,YAAY,EAAE,CAAC;CAC1B,CAAC;AASJ;;;;;;;GAOG;AACH,eAAO,MAAM,OAAO,sCACuB,YAAY,KAGpD,iBAmGF,CAAC"}
|
|
@@ -9,7 +9,7 @@ export type UseMenuProps = {
|
|
|
9
9
|
meta?: Record<string, any>;
|
|
10
10
|
hideOnMissingParameter?: boolean;
|
|
11
11
|
};
|
|
12
|
-
export type TreeMenuItem = FlatTreeItem & {
|
|
12
|
+
export type TreeMenuItem = Omit<FlatTreeItem, "label" | "route" | "children"> & {
|
|
13
13
|
route?: string;
|
|
14
14
|
icon?: React.ReactNode;
|
|
15
15
|
label?: string;
|
|
@@ -9,7 +9,7 @@ export type UseMenuProps = {
|
|
|
9
9
|
meta?: Record<string, any>;
|
|
10
10
|
hideOnMissingParameter?: boolean;
|
|
11
11
|
};
|
|
12
|
-
export type TreeMenuItem = FlatTreeItem & {
|
|
12
|
+
export type TreeMenuItem = Omit<FlatTreeItem, "label" | "route" | "children"> & {
|
|
13
13
|
route?: string;
|
|
14
14
|
icon?: React.ReactNode;
|
|
15
15
|
label?: string;
|
|
@@ -9,7 +9,7 @@ export type UseMenuProps = {
|
|
|
9
9
|
meta?: Record<string, any>;
|
|
10
10
|
hideOnMissingParameter?: boolean;
|
|
11
11
|
};
|
|
12
|
-
export type TreeMenuItem = FlatTreeItem & {
|
|
12
|
+
export type TreeMenuItem = Omit<FlatTreeItem, "label" | "route" | "children"> & {
|
|
13
13
|
route?: string;
|
|
14
14
|
icon?: React.ReactNode;
|
|
15
15
|
label?: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useMenu.d.ts","sourceRoot":"","sources":["../../../src/hooks/menu/useMenu.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAQ1B,OAAO,EACL,KAAK,YAAY,EAElB,MAAM,4CAA4C,CAAC;AAGpD,KAAK,iBAAiB,GAAG;IACvB,eAAe,EAAE,MAAM,EAAE,CAAC;IAC1B,WAAW,EAAE,MAAM,CAAC;IACpB,SAAS,EAAE,YAAY,EAAE,CAAC;CAC3B,CAAC;AAEF,MAAM,MAAM,YAAY,GAAG;IACzB,IAAI,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IAC3B,sBAAsB,CAAC,EAAE,OAAO,CAAC;CAClC,CAAC;AAEF,MAAM,MAAM,YAAY,
|
|
1
|
+
{"version":3,"file":"useMenu.d.ts","sourceRoot":"","sources":["../../../src/hooks/menu/useMenu.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAQ1B,OAAO,EACL,KAAK,YAAY,EAElB,MAAM,4CAA4C,CAAC;AAGpD,KAAK,iBAAiB,GAAG;IACvB,eAAe,EAAE,MAAM,EAAE,CAAC;IAC1B,WAAW,EAAE,MAAM,CAAC;IACpB,SAAS,EAAE,YAAY,EAAE,CAAC;CAC3B,CAAC;AAEF,MAAM,MAAM,YAAY,GAAG;IACzB,IAAI,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IAC3B,sBAAsB,CAAC,EAAE,OAAO,CAAC;CAClC,CAAC;AAEF,MAAM,MAAM,YAAY,GAEtB,IAAI,CAAC,YAAY,EAAE,OAAO,GAAG,OAAO,GAAG,UAAU,CAAC,GAAG;IACnD,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,IAAI,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACvB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,EAAE,YAAY,EAAE,CAAC;CAC1B,CAAC;AASJ;;;;;;;GAOG;AACH,eAAO,MAAM,OAAO,sCACuB,YAAY,KAGpD,iBAmGF,CAAC"}
|
|
@@ -2,7 +2,7 @@ import type { BaseKey, MetaDataQuery } from "../../contexts/data/types";
|
|
|
2
2
|
import type { IResourceItem } from "../../contexts/resource/types";
|
|
3
3
|
export type HistoryType = "push" | "replace";
|
|
4
4
|
/**
|
|
5
|
-
* `refine` uses {@link https://reactrouter.com/en/hooks/use-navigate `React Router`} and comes with all redirects out of the box.
|
|
5
|
+
* `refine` uses {@link https://reactrouter.com/en/main/hooks/use-navigate#usenavigate `React Router`} and comes with all redirects out of the box.
|
|
6
6
|
* It allows you to manage your routing operations in refine.
|
|
7
7
|
* Using this hook, you can manage all the routing operations of your application very easily.
|
|
8
8
|
*
|
|
@@ -2,7 +2,7 @@ import type { BaseKey, MetaDataQuery } from "../../contexts/data/types";
|
|
|
2
2
|
import type { IResourceItem } from "../../contexts/resource/types";
|
|
3
3
|
export type HistoryType = "push" | "replace";
|
|
4
4
|
/**
|
|
5
|
-
* `refine` uses {@link https://reactrouter.com/en/hooks/use-navigate `React Router`} and comes with all redirects out of the box.
|
|
5
|
+
* `refine` uses {@link https://reactrouter.com/en/main/hooks/use-navigate#usenavigate `React Router`} and comes with all redirects out of the box.
|
|
6
6
|
* It allows you to manage your routing operations in refine.
|
|
7
7
|
* Using this hook, you can manage all the routing operations of your application very easily.
|
|
8
8
|
*
|
|
@@ -2,7 +2,7 @@ import type { BaseKey, MetaDataQuery } from "../../contexts/data/types";
|
|
|
2
2
|
import type { IResourceItem } from "../../contexts/resource/types";
|
|
3
3
|
export type HistoryType = "push" | "replace";
|
|
4
4
|
/**
|
|
5
|
-
* `refine` uses {@link https://reactrouter.com/en/hooks/use-navigate `React Router`} and comes with all redirects out of the box.
|
|
5
|
+
* `refine` uses {@link https://reactrouter.com/en/main/hooks/use-navigate#usenavigate `React Router`} and comes with all redirects out of the box.
|
|
6
6
|
* It allows you to manage your routing operations in refine.
|
|
7
7
|
* Using this hook, you can manage all the routing operations of your application very easily.
|
|
8
8
|
*
|
|
@@ -2,7 +2,7 @@ import type { BaseKey, MetaDataQuery } from "../../contexts/data/types";
|
|
|
2
2
|
import type { IResourceItem } from "../../contexts/resource/types";
|
|
3
3
|
export type HistoryType = "push" | "replace";
|
|
4
4
|
/**
|
|
5
|
-
* `refine` uses {@link https://reactrouter.com/en/hooks/use-navigate `React Router`} and comes with all redirects out of the box.
|
|
5
|
+
* `refine` uses {@link https://reactrouter.com/en/main/hooks/use-navigate#usenavigate `React Router`} and comes with all redirects out of the box.
|
|
6
6
|
* It allows you to manage your routing operations in refine.
|
|
7
7
|
* Using this hook, you can manage all the routing operations of your application very easily.
|
|
8
8
|
*
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
export declare const useLink: () =>
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
}>>;
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export declare const useLink: () => <T = {}>(props: import("../../../components/link").LinkProps<T> & {
|
|
3
|
+
ref?: import("react").Ref<HTMLAnchorElement> | undefined;
|
|
4
|
+
}) => import("react").JSX.Element;
|
|
6
5
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/hooks/router/use-link/index.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/hooks/router/use-link/index.tsx"],"names":[],"mappings":";AAEA,eAAO,MAAM,OAAO;;iCAEnB,CAAC"}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
export declare const useLink: () =>
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
}>>;
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export declare const useLink: () => <T = {}>(props: import("../../../components/link").LinkProps<T> & {
|
|
3
|
+
ref?: import("react").Ref<HTMLAnchorElement> | undefined;
|
|
4
|
+
}) => import("react").JSX.Element;
|
|
6
5
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
export declare const useLink: () =>
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
}>>;
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export declare const useLink: () => <T = {}>(props: import("../../../components/link").LinkProps<T> & {
|
|
3
|
+
ref?: import("react").Ref<HTMLAnchorElement> | undefined;
|
|
4
|
+
}) => import("react").JSX.Element;
|
|
6
5
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
export declare const useLink: () =>
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
}>>;
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export declare const useLink: () => <T = {}>(props: import("../../../components/link").LinkProps<T> & {
|
|
3
|
+
ref?: import("react").Ref<HTMLAnchorElement> | undefined;
|
|
4
|
+
}) => import("react").JSX.Element;
|
|
6
5
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/hooks/router/use-link/index.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/hooks/router/use-link/index.tsx"],"names":[],"mappings":";AAEA,eAAO,MAAM,OAAO;;iCAEnB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/hooks/useTable/index.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/hooks/useTable/index.ts"],"names":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GAAG,YAAY,EACvC,EACA,cAAc,EACd,eAAe,EACf,aAAoB,EACpB,UAAU,EACV,aAAa,EACb,eAAwC,EACxC,wBAAwB,EACxB,aAAa,EACb,eAAwC,EACxC,OAAO,EAAE,eAAe,EACxB,OAAO,EAAE,eAAe,EACxB,gBAAgB,EAAE,oBAAoB,EACtC,QAAQ,EAAE,gBAAgB,EAC1B,mBAAmB,EACnB,iBAAiB,EACjB,YAAY,EACZ,QAAQ,EAAE,gBAAgB,EAC1B,WAAW,EACX,UAAU,EACV,IAAI,EACJ,QAAQ,EACR,gBAAgB,EAChB,eAAe,GAChB,GAAE,aAAa,CAAC,YAAY,EAAE,MAAM,EAAE,KAAK,CAAM,GAAG,kBAAkB,CACrE,KAAK,EACL,MAAM,CACP,CAoUA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/hooks/useTable/index.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/hooks/useTable/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAA2C,MAAM,OAAO,CAAC;AAEhE,OAAO,KAAK,EACV,mBAAmB,EACnB,eAAe,EAChB,MAAM,uBAAuB,CAAC;AA4B/B,OAAO,KAAK,EACV,UAAU,EACV,UAAU,EACV,QAAQ,EACR,eAAe,EACf,SAAS,EACT,SAAS,EACT,UAAU,EACV,QAAQ,EACT,MAAM,2BAA2B,CAAC;AACnC,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAC;AAC/D,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,mCAAmC,CAAC;AAClF,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AACrD,OAAO,EACL,KAAK,8BAA8B,EACnC,KAAK,4BAA4B,EAElC,MAAM,uBAAuB,CAAC;AAE/B,KAAK,iBAAiB,GAAG,OAAO,GAAG,SAAS,CAA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