@refinedev/core 4.55.0 → 4.57.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +169 -2
- package/README.md +6 -4
- package/dist/components/authenticated/index.d.cts +6 -1
- package/dist/components/authenticated/index.d.cts.map +1 -1
- package/dist/components/authenticated/index.d.mts +6 -1
- package/dist/components/authenticated/index.d.mts.map +6 -1
- package/dist/components/authenticated/index.d.ts +6 -1
- package/dist/components/authenticated/index.d.ts.map +1 -1
- package/dist/components/link/index.d.cts +3 -3
- package/dist/components/link/index.d.cts.map +1 -1
- package/dist/components/link/index.d.mts +3 -3
- package/dist/components/link/index.d.mts.map +3 -3
- package/dist/components/link/index.d.ts +3 -3
- package/dist/components/link/index.d.ts.map +1 -1
- package/dist/components/pages/auth/components/forgotPassword/index.d.cts.map +1 -1
- package/dist/components/pages/auth/components/forgotPassword/index.d.ts.map +1 -1
- package/dist/components/pages/auth/components/login/index.d.cts.map +1 -1
- package/dist/components/pages/auth/components/login/index.d.ts.map +1 -1
- package/dist/components/pages/auth/components/register/index.d.cts.map +1 -1
- package/dist/components/pages/auth/components/register/index.d.ts.map +1 -1
- package/dist/components/pages/auth/components/updatePassword/index.d.cts.map +1 -1
- package/dist/components/pages/auth/components/updatePassword/index.d.ts.map +1 -1
- package/dist/components/pages/auth/types.d.cts +8 -0
- package/dist/components/pages/auth/types.d.cts.map +1 -1
- package/dist/components/pages/auth/types.d.mts +8 -0
- package/dist/components/pages/auth/types.d.mts.map +8 -0
- package/dist/components/pages/auth/types.d.ts +8 -0
- package/dist/components/pages/auth/types.d.ts.map +1 -1
- package/dist/contexts/metaContext/index.d.cts +18 -0
- package/dist/contexts/metaContext/index.d.cts.map +1 -0
- package/dist/contexts/metaContext/index.d.mts +18 -0
- package/dist/contexts/metaContext/index.d.mts.map +18 -0
- package/dist/contexts/metaContext/index.d.ts +18 -0
- package/dist/contexts/metaContext/index.d.ts.map +1 -0
- package/dist/hooks/auth/index.d.cts +1 -0
- package/dist/hooks/auth/index.d.cts.map +1 -1
- package/dist/hooks/auth/index.d.mts +1 -0
- package/dist/hooks/auth/index.d.mts.map +1 -0
- package/dist/hooks/auth/index.d.ts +1 -0
- package/dist/hooks/auth/index.d.ts.map +1 -1
- package/dist/hooks/navigation/index.d.cts.map +1 -1
- package/dist/hooks/navigation/index.d.ts.map +1 -1
- package/dist/hooks/router/use-link/index.d.cts +1 -1
- package/dist/hooks/router/use-link/index.d.mts +1 -1
- package/dist/hooks/router/use-link/index.d.mts.map +1 -1
- package/dist/hooks/router/use-link/index.d.ts +1 -1
- package/dist/hooks/useMeta/index.d.cts +2 -12
- package/dist/hooks/useMeta/index.d.cts.map +1 -1
- package/dist/hooks/useMeta/index.d.mts +2 -12
- package/dist/hooks/useMeta/index.d.mts.map +2 -12
- package/dist/hooks/useMeta/index.d.ts +2 -12
- package/dist/hooks/useMeta/index.d.ts.map +1 -1
- package/dist/index.cjs +18 -18
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +1 -0
- package/dist/index.d.cts.map +1 -1
- package/dist/index.d.mts +1 -0
- package/dist/index.d.mts.map +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.mjs +18 -18
- package/dist/index.mjs.map +1 -1
- package/package.json +3 -3
- package/src/components/authenticated/index.tsx +9 -1
- package/src/components/link/index.tsx +6 -8
- package/src/components/pages/auth/components/forgotPassword/index.tsx +2 -1
- package/src/components/pages/auth/components/login/index.tsx +3 -1
- package/src/components/pages/auth/components/register/index.tsx +3 -1
- package/src/components/pages/auth/components/updatePassword/index.tsx +2 -0
- package/src/components/pages/auth/types.tsx +8 -0
- package/src/contexts/metaContext/index.tsx +45 -0
- package/src/hooks/auth/index.ts +1 -0
- package/src/hooks/data/useUpdate.ts +5 -5
- package/src/hooks/navigation/index.ts +5 -0
- package/src/hooks/useMeta/index.ts +16 -2
- package/src/index.tsx +5 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,172 @@
|
|
|
1
1
|
# @refinedev/core
|
|
2
2
|
|
|
3
|
+
## 4.57.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
📢 **Refine Community Release** 📢
|
|
8
|
+
|
|
9
|
+
- This PR fixes an issue where the ListButton component doesn't include a query filter in the navigation URL.
|
|
10
|
+
|
|
11
|
+
[Resolves #6528](https://github.com/refinedev/refine/issues/6528)
|
|
12
|
+
|
|
13
|
+
📢 **Refine Community Release** 📢
|
|
14
|
+
|
|
15
|
+
- chore: update package descriptions
|
|
16
|
+
|
|
17
|
+
📢 **Refine Community Release** 📢
|
|
18
|
+
|
|
19
|
+
- refactor: modified the Authenticated component to receive optional params prop to be passed to the useIsAuthenticated hook.
|
|
20
|
+
|
|
21
|
+
Fixes #6309
|
|
22
|
+
|
|
23
|
+
📢 **Refine Community Release** 📢
|
|
24
|
+
|
|
25
|
+
- fix: `useUpdate` and `useForm` hooks throws an error when `id` is an empty string. (`id=""`) #6505
|
|
26
|
+
|
|
27
|
+
This reverts a breaking change introduced in [PR #6116](https://github.com/refinedev/refine/pull/6116) and restores support for using an empty string as `id`. This enables updates without an `id` field, as allowed before `@refinedev/core@4.54.0`.
|
|
28
|
+
|
|
29
|
+
Affected versions with this bug:
|
|
30
|
+
|
|
31
|
+
- `@refinedev/core@4.54.0`
|
|
32
|
+
- `@refinedev/core@4.54.1`
|
|
33
|
+
- `@refinedev/core@4.55.0`
|
|
34
|
+
- `@refinedev/core@4.56.0`
|
|
35
|
+
|
|
36
|
+
The bug is fixed in:
|
|
37
|
+
|
|
38
|
+
- `@refinedev/core@4.56.1`
|
|
39
|
+
|
|
40
|
+
Resolves [#6505](https://github.com/refinedev/refine/issues/6505)
|
|
41
|
+
|
|
42
|
+
- Updated dependencies []:
|
|
43
|
+
- @refinedev/devtools-internal@1.1.16
|
|
44
|
+
|
|
45
|
+
## 4.57.0
|
|
46
|
+
|
|
47
|
+
### Minor Changes
|
|
48
|
+
|
|
49
|
+
⚡ **Refine Enterprise Release** ⚡
|
|
50
|
+
|
|
51
|
+
- [#6558](https://github.com/refinedev/refine/pull/6558) [`42d730aa2908003cfb0dcf0c57e9b70793c88ddc`](https://github.com/refinedev/refine/commit/42d730aa2908003cfb0dcf0c57e9b70793c88ddc) Thanks [@OmkarBansod02](https://github.com/OmkarBansod02)! - This PR fixes an issue where the ListButton component doesn't include a query filter in the navigation URL.
|
|
52
|
+
|
|
53
|
+
[Resolves #6528](https://github.com/refinedev/refine/issues/6528)
|
|
54
|
+
|
|
55
|
+
⚡ **Refine Enterprise Release** ⚡
|
|
56
|
+
|
|
57
|
+
- [#6483](https://github.com/refinedev/refine/pull/6483) [`8309c5690e7c49529f07d288e79896636c6ce7c2`](https://github.com/refinedev/refine/commit/8309c5690e7c49529f07d288e79896636c6ce7c2) Thanks [@reedwane](https://github.com/reedwane)! - refactor: modified the Authenticated component to receive optional params prop to be passed to the useIsAuthenticated hook.
|
|
58
|
+
|
|
59
|
+
Fixes #6309
|
|
60
|
+
|
|
61
|
+
### Patch Changes
|
|
62
|
+
|
|
63
|
+
⚡ **Refine Enterprise Release** ⚡
|
|
64
|
+
|
|
65
|
+
- [#6554](https://github.com/refinedev/refine/pull/6554) [`3cb2ca6f687398e422b867692b597b0c0d911706`](https://github.com/refinedev/refine/commit/3cb2ca6f687398e422b867692b597b0c0d911706) Thanks [@necatiozmen](https://github.com/necatiozmen)! - chore: update package descriptions
|
|
66
|
+
|
|
67
|
+
⚡ **Refine Enterprise Release** ⚡
|
|
68
|
+
|
|
69
|
+
- [#6514](https://github.com/refinedev/refine/pull/6514) [`f32af58283bdaf7712805520bd9feb8bfd27ba38`](https://github.com/refinedev/refine/commit/f32af58283bdaf7712805520bd9feb8bfd27ba38) Thanks [@alicanerdurmaz](https://github.com/alicanerdurmaz)! - fix: `useUpdate` and `useForm` hooks throws an error when `id` is an empty string. (`id=""`) #6505
|
|
70
|
+
|
|
71
|
+
This reverts a breaking change introduced in [PR #6116](https://github.com/refinedev/refine/pull/6116) and restores support for using an empty string as `id`. This enables updates without an `id` field, as allowed before `@refinedev/core@4.54.0`.
|
|
72
|
+
|
|
73
|
+
Affected versions with this bug:
|
|
74
|
+
|
|
75
|
+
- `@refinedev/core@4.54.0`
|
|
76
|
+
- `@refinedev/core@4.54.1`
|
|
77
|
+
- `@refinedev/core@4.55.0`
|
|
78
|
+
- `@refinedev/core@4.56.0`
|
|
79
|
+
|
|
80
|
+
The bug is fixed in:
|
|
81
|
+
|
|
82
|
+
- `@refinedev/core@4.56.1`
|
|
83
|
+
|
|
84
|
+
Resolves [#6505](https://github.com/refinedev/refine/issues/6505)
|
|
85
|
+
|
|
86
|
+
- Updated dependencies [[`1ced1baa1dda3251b2a3d058a9168533126efb53`](https://github.com/refinedev/refine/commit/1ced1baa1dda3251b2a3d058a9168533126efb53)]:
|
|
87
|
+
- @refinedev/devtools-internal@1.1.15
|
|
88
|
+
|
|
89
|
+
## 4.56.0
|
|
90
|
+
|
|
91
|
+
### Minor Changes
|
|
92
|
+
|
|
93
|
+
- [#6445](https://github.com/refinedev/refine/pull/6445) [`4ff4335274d5689ec62127312695b76d692a125a`](https://github.com/refinedev/refine/commit/4ff4335274d5689ec62127312695b76d692a125a) Thanks [@alicanerdurmaz](https://github.com/alicanerdurmaz)! - feat: added new prop called `mutationVariables` to `<AuthPage />`. #6431
|
|
94
|
+
From now on, you can pass additional parameters to the `authProvider` methods using the `mutationVariables` prop of the `<AuthPage />` component.
|
|
95
|
+
|
|
96
|
+
```tsx
|
|
97
|
+
import { AuthPage } from "@refinedev/antd"; // or "@refinedev/chakra-ui", "@refinedev/mantine", "@refinedev/mui"
|
|
98
|
+
|
|
99
|
+
const MyLoginPage = () => {
|
|
100
|
+
return (
|
|
101
|
+
<AuthPage
|
|
102
|
+
type="login" // all other types are also supported.
|
|
103
|
+
// highlight-start
|
|
104
|
+
mutationVariables={{
|
|
105
|
+
foo: "bar",
|
|
106
|
+
xyz: "abc",
|
|
107
|
+
}}
|
|
108
|
+
// highlight-end
|
|
109
|
+
/>
|
|
110
|
+
);
|
|
111
|
+
};
|
|
112
|
+
|
|
113
|
+
// all mutation methods are supported.
|
|
114
|
+
const authProvider = {
|
|
115
|
+
login: async ({ foo, xyz, ...otherProps }) => {
|
|
116
|
+
console.log(foo); // bar
|
|
117
|
+
console.log(xyz); // abc
|
|
118
|
+
// ...
|
|
119
|
+
},
|
|
120
|
+
register: async ({ foo, xyz, ...otherProps }) => {
|
|
121
|
+
console.log(foo); // bar
|
|
122
|
+
console.log(xyz); // abc
|
|
123
|
+
// ...
|
|
124
|
+
},
|
|
125
|
+
// ...
|
|
126
|
+
};
|
|
127
|
+
```
|
|
128
|
+
|
|
129
|
+
[Resolves #6431](https://github.com/refinedev/refine/issues/6431)
|
|
130
|
+
|
|
131
|
+
- [#6445](https://github.com/refinedev/refine/pull/6445) [`4ff4335274d5689ec62127312695b76d692a125a`](https://github.com/refinedev/refine/commit/4ff4335274d5689ec62127312695b76d692a125a) Thanks [@alicanerdurmaz](https://github.com/alicanerdurmaz)! - feat: exported useInvalidateAuthStore hook from auth hooks
|
|
132
|
+
|
|
133
|
+
Now you can invalide the users identity state and force a react query refresh using this hook
|
|
134
|
+
|
|
135
|
+
Resolves [#6341](https://github.com/refinedev/refine/issues/6341)
|
|
136
|
+
|
|
137
|
+
- [#6445](https://github.com/refinedev/refine/pull/6445) [`4ff4335274d5689ec62127312695b76d692a125a`](https://github.com/refinedev/refine/commit/4ff4335274d5689ec62127312695b76d692a125a) Thanks [@alicanerdurmaz](https://github.com/alicanerdurmaz)! - feat: Added `MetaContext` to share data between components, providers, and hooks.
|
|
138
|
+
|
|
139
|
+
> 🚨 Designed for internal use only.
|
|
140
|
+
|
|
141
|
+
### Patch Changes
|
|
142
|
+
|
|
143
|
+
- [#6445](https://github.com/refinedev/refine/pull/6445) [`4ff4335274d5689ec62127312695b76d692a125a`](https://github.com/refinedev/refine/commit/4ff4335274d5689ec62127312695b76d692a125a) Thanks [@alicanerdurmaz](https://github.com/alicanerdurmaz)! - fix: Added more flexibility to the [`<Link />`](https://refine.dev/docs/routing/components/link/) component's `ref` type by changing it from `HTMLAnchorElement` to `Element`.
|
|
144
|
+
From now on, we can pass any type of `ref` to the [`<Link />`](https://refine.dev/docs/routing/components/link/) component.
|
|
145
|
+
|
|
146
|
+
```tsx
|
|
147
|
+
// Before fix - Only worked with HTMLAnchorElement
|
|
148
|
+
const ref = useRef<HTMLAnchorElement>(null);
|
|
149
|
+
|
|
150
|
+
// After fix - Works with any Element type
|
|
151
|
+
const ref = useRef<HTMLDivElement>(null);
|
|
152
|
+
const ref = useRef<HTMLSpanElement>(null);
|
|
153
|
+
```
|
|
154
|
+
|
|
155
|
+
Resolves [#6463](https://github.com/refinedev/refine/issues/6463)
|
|
156
|
+
|
|
157
|
+
- [#6445](https://github.com/refinedev/refine/pull/6445) [`4ff4335274d5689ec62127312695b76d692a125a`](https://github.com/refinedev/refine/commit/4ff4335274d5689ec62127312695b76d692a125a) Thanks [@alicanerdurmaz](https://github.com/alicanerdurmaz)! - fix: Priority logic between `to` and `go` props in [`Link`](https://refine.dev/docs/routing/components/link/) component.
|
|
158
|
+
From now on, the `to` prop has priority over the `go` prop. If both are passed, the `to` prop will be used.
|
|
159
|
+
|
|
160
|
+
```tsx
|
|
161
|
+
// Before fix - go would override to
|
|
162
|
+
<Link to="/posts" go={{ resource: "categories" }} />
|
|
163
|
+
|
|
164
|
+
// After fix - to overrides go
|
|
165
|
+
<Link to="/posts" go={{ resource: "categories" }} />
|
|
166
|
+
```
|
|
167
|
+
|
|
168
|
+
Resolves [#6461](https://github.com/refinedev/refine/issues/6461)
|
|
169
|
+
|
|
3
170
|
## 4.55.0
|
|
4
171
|
|
|
5
172
|
### Minor Changes
|
|
@@ -1012,8 +1179,8 @@
|
|
|
1012
1179
|
import { Refine, Authenticated, AuthPage } from "@refinedev/core";
|
|
1013
1180
|
import {
|
|
1014
1181
|
CatchAllNavigate,
|
|
1015
|
-
} from "@refinedev/react-router
|
|
1016
|
-
import { BrowserRouter, Routes, Route, Outlet, Navigate } from "react-router
|
|
1182
|
+
} from "@refinedev/react-router";
|
|
1183
|
+
import { BrowserRouter, Routes, Route, Outlet, Navigate } from "react-router";
|
|
1017
1184
|
|
|
1018
1185
|
const App = () => {
|
|
1019
1186
|
return (
|
package/README.md
CHANGED
|
@@ -75,8 +75,8 @@ import React from "react";
|
|
|
75
75
|
import { Refine, useMany } from "@refinedev/core";
|
|
76
76
|
import { ThemedLayoutV2 } from "@refinedev/mui";
|
|
77
77
|
import dataProvider from "@refinedev/simple-rest";
|
|
78
|
-
import routerProvider from "@refinedev/react-router
|
|
79
|
-
import { BrowserRouter, Outlet, Route, Routes } from "react-router
|
|
78
|
+
import routerProvider from "@refinedev/react-router";
|
|
79
|
+
import { BrowserRouter, Outlet, Route, Routes } from "react-router";
|
|
80
80
|
|
|
81
81
|
import CssBaseline from "@mui/material/CssBaseline";
|
|
82
82
|
|
|
@@ -138,6 +138,7 @@ export const ProductList = () => {
|
|
|
138
138
|
field: "category",
|
|
139
139
|
flex: 1,
|
|
140
140
|
headerName: "Category",
|
|
141
|
+
display: "flex",
|
|
141
142
|
renderCell: ({ value }) =>
|
|
142
143
|
isLoading
|
|
143
144
|
? "Loading..."
|
|
@@ -147,6 +148,7 @@ export const ProductList = () => {
|
|
|
147
148
|
field: "createdAt",
|
|
148
149
|
flex: 1,
|
|
149
150
|
headerName: "Created at",
|
|
151
|
+
display: "flex",
|
|
150
152
|
renderCell: ({ value }) => <DateField value={value} />,
|
|
151
153
|
},
|
|
152
154
|
],
|
|
@@ -155,7 +157,7 @@ export const ProductList = () => {
|
|
|
155
157
|
|
|
156
158
|
return (
|
|
157
159
|
<List>
|
|
158
|
-
<DataGrid {...dataGridProps} columns={columns}
|
|
160
|
+
<DataGrid {...dataGridProps} columns={columns} />
|
|
159
161
|
</List>
|
|
160
162
|
);
|
|
161
163
|
};
|
|
@@ -184,7 +186,7 @@ You can take a look at some live examples that can be built using **Refine** fro
|
|
|
184
186
|
## Key Features
|
|
185
187
|
|
|
186
188
|
- Refine Devtools - dive deeper into your app and provide useful insights
|
|
187
|
-
- Connectors for **15+ backend services** including [REST API](https://github.com/refinedev/refine/tree/
|
|
189
|
+
- Connectors for **15+ backend services** including [REST API](https://github.com/refinedev/refine/tree/main/packages/simple-rest), [GraphQL](https://github.com/refinedev/refine/tree/main/packages/graphql), [NestJs CRUD](https://github.com/refinedev/refine/tree/main/packages/nestjsx-crud), [Airtable](https://github.com/refinedev/refine/tree/main/packages/airtable), [Strapi](https://github.com/refinedev/refine/tree/main/packages/strapi), [Strapi v4](https://github.com/refinedev/refine/tree/main/packages/strapi-v4), [Supabase](https://github.com/refinedev/refine/tree/main/packages/supabase), [Hasura](https://github.com/refinedev/refine/tree/main/packages/hasura), [Appwrite](https://github.com/refinedev/refine/tree/main/packages/appwrite), [Nestjs-Query](https://github.com/refinedev/refine/tree/main/packages/nestjs-query), [Firebase](https://firebase.google.com/), [Sanity](https://www.sanity.io/), and [Directus](https://directus.io/).
|
|
188
190
|
- SSR support with Next.js & Remix and Advanced routing with any router library of your choice
|
|
189
191
|
- Auto-generation of CRUD UIs based on your API data structure
|
|
190
192
|
- Perfect state management & mutations with React Query
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
+
export type AuthCheckParams = any;
|
|
2
3
|
export type AuthenticatedCommonProps = {
|
|
3
4
|
/**
|
|
4
5
|
* Unique key to identify the component.
|
|
@@ -32,9 +33,13 @@ export type AuthenticatedCommonProps = {
|
|
|
32
33
|
*/
|
|
33
34
|
loading?: React.ReactNode;
|
|
34
35
|
/**
|
|
35
|
-
* Content to show if user is logged in
|
|
36
|
+
* Content to show if user is logged in.
|
|
36
37
|
*/
|
|
37
38
|
children?: React.ReactNode;
|
|
39
|
+
/**
|
|
40
|
+
* optional params to be passed to the Auth Provider's check method via the useIsAuthenticated hook.
|
|
41
|
+
*/
|
|
42
|
+
params?: AuthCheckParams;
|
|
38
43
|
};
|
|
39
44
|
export type LegacyAuthenticatedProps = {
|
|
40
45
|
v3LegacyAuthProviderCompatible: true;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/authenticated/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAa1B,MAAM,MAAM,wBAAwB,GAAG;IACrC;;;;OAIG;IACH,GAAG,EAAE,KAAK,CAAC,GAAG,CAAC;IACf;;;;;;;;OAQG;IACH,cAAc,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC/B;;;;;OAKG;IACH,wBAAwB,CAAC,EAAE,OAAO,CAAC;IACnC;;OAEG;IACH,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B;;OAEG;IACH,OAAO,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B;;OAEG;IACH,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/authenticated/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAa1B,MAAM,MAAM,eAAe,GAAG,GAAG,CAAC;AAElC,MAAM,MAAM,wBAAwB,GAAG;IACrC;;;;OAIG;IACH,GAAG,EAAE,KAAK,CAAC,GAAG,CAAC;IACf;;;;;;;;OAQG;IACH,cAAc,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC/B;;;;;OAKG;IACH,wBAAwB,CAAC,EAAE,OAAO,CAAC;IACnC;;OAEG;IACH,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B;;OAEG;IACH,OAAO,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B;;OAEG;IACH,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B;;OAEG;IACH,MAAM,CAAC,EAAE,eAAe,CAAC;CAC1B,CAAC;AAEF,MAAM,MAAM,wBAAwB,GAAG;IACrC,8BAA8B,EAAE,IAAI,CAAC;CACtC,GAAG,wBAAwB,CAAC;AAE7B,MAAM,MAAM,kBAAkB,GAAG;IAC/B,8BAA8B,CAAC,EAAE,KAAK,CAAC;CACxC,GAAG,wBAAwB,CAAC;AAE7B;;;;;;;;;;;;;GAaG;AACH,wBAAgB,aAAa,CAC3B,KAAK,EAAE,wBAAwB,GAC9B,GAAG,CAAC,OAAO,GAAG,IAAI,CAAC;AAEtB;;;;;;;;;;;;;GAaG;AACH,wBAAgB,aAAa,CAAC,KAAK,EAAE,kBAAkB,GAAG,GAAG,CAAC,OAAO,GAAG,IAAI,CAAC"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
+
export type AuthCheckParams = any;
|
|
2
3
|
export type AuthenticatedCommonProps = {
|
|
3
4
|
/**
|
|
4
5
|
* Unique key to identify the component.
|
|
@@ -32,9 +33,13 @@ export type AuthenticatedCommonProps = {
|
|
|
32
33
|
*/
|
|
33
34
|
loading?: React.ReactNode;
|
|
34
35
|
/**
|
|
35
|
-
* Content to show if user is logged in
|
|
36
|
+
* Content to show if user is logged in.
|
|
36
37
|
*/
|
|
37
38
|
children?: React.ReactNode;
|
|
39
|
+
/**
|
|
40
|
+
* optional params to be passed to the Auth Provider's check method via the useIsAuthenticated hook.
|
|
41
|
+
*/
|
|
42
|
+
params?: AuthCheckParams;
|
|
38
43
|
};
|
|
39
44
|
export type LegacyAuthenticatedProps = {
|
|
40
45
|
v3LegacyAuthProviderCompatible: true;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
+
export type AuthCheckParams = any;
|
|
2
3
|
export type AuthenticatedCommonProps = {
|
|
3
4
|
/**
|
|
4
5
|
* Unique key to identify the component.
|
|
@@ -32,9 +33,13 @@ export type AuthenticatedCommonProps = {
|
|
|
32
33
|
*/
|
|
33
34
|
loading?: React.ReactNode;
|
|
34
35
|
/**
|
|
35
|
-
* Content to show if user is logged in
|
|
36
|
+
* Content to show if user is logged in.
|
|
36
37
|
*/
|
|
37
38
|
children?: React.ReactNode;
|
|
39
|
+
/**
|
|
40
|
+
* optional params to be passed to the Auth Provider's check method via the useIsAuthenticated hook.
|
|
41
|
+
*/
|
|
42
|
+
params?: AuthCheckParams;
|
|
38
43
|
};
|
|
39
44
|
export type LegacyAuthenticatedProps = {
|
|
40
45
|
v3LegacyAuthProviderCompatible: true;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
+
export type AuthCheckParams = any;
|
|
2
3
|
export type AuthenticatedCommonProps = {
|
|
3
4
|
/**
|
|
4
5
|
* Unique key to identify the component.
|
|
@@ -32,9 +33,13 @@ export type AuthenticatedCommonProps = {
|
|
|
32
33
|
*/
|
|
33
34
|
loading?: React.ReactNode;
|
|
34
35
|
/**
|
|
35
|
-
* Content to show if user is logged in
|
|
36
|
+
* Content to show if user is logged in.
|
|
36
37
|
*/
|
|
37
38
|
children?: React.ReactNode;
|
|
39
|
+
/**
|
|
40
|
+
* optional params to be passed to the Auth Provider's check method via the useIsAuthenticated hook.
|
|
41
|
+
*/
|
|
42
|
+
params?: AuthCheckParams;
|
|
38
43
|
};
|
|
39
44
|
export type LegacyAuthenticatedProps = {
|
|
40
45
|
v3LegacyAuthProviderCompatible: true;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/authenticated/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAa1B,MAAM,MAAM,wBAAwB,GAAG;IACrC;;;;OAIG;IACH,GAAG,EAAE,KAAK,CAAC,GAAG,CAAC;IACf;;;;;;;;OAQG;IACH,cAAc,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC/B;;;;;OAKG;IACH,wBAAwB,CAAC,EAAE,OAAO,CAAC;IACnC;;OAEG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-6,15 +6,15 @@ type LinkPropsWithGo = {
|
|
|
6
6
|
type LinkPropsWithTo = {
|
|
7
7
|
to: string;
|
|
8
8
|
};
|
|
9
|
-
export type LinkProps<TProps = {}> = React.PropsWithChildren<(LinkPropsWithGo | LinkPropsWithTo) &
|
|
9
|
+
export type LinkProps<TProps = {}> = React.PropsWithChildren<(LinkPropsWithGo | LinkPropsWithTo) & TProps>;
|
|
10
10
|
/**
|
|
11
11
|
* @param to The path to navigate to.
|
|
12
12
|
* @param go The useGo.go params to navigate to. If `to` provided, this will be ignored.
|
|
13
13
|
* @returns routerProvider.Link if it is provided, otherwise an anchor tag.
|
|
14
14
|
*/
|
|
15
|
-
declare const LinkComponent: <TProps = {}>(props: LinkProps<TProps>, ref: Ref<
|
|
15
|
+
declare const LinkComponent: <TProps = {}>(props: LinkProps<TProps>, ref: Ref<Element>) => React.JSX.Element;
|
|
16
16
|
export declare const Link: <T = {}>(props: LinkProps<T> & {
|
|
17
|
-
ref?: Ref<
|
|
17
|
+
ref?: Ref<Element>;
|
|
18
18
|
}) => ReturnType<typeof LinkComponent>;
|
|
19
19
|
export {};
|
|
20
20
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +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,
|
|
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,GAAG,MAAM,CAC7C,CAAC;AAEF;;;;GAIG;AACH,QAAA,MAAM,aAAa,uBACV,UAAU,MAAM,CAAC,OACnB,IAAI,OAAO,CAAC,sBA0ClB,CAAC;AAEF,eAAO,MAAM,IAAI,kBACR,UAAU,CAAC,CAAC,GAAG;IAAE,GAAG,CAAC,EAAE,IAAI,OAAO,CAAC,CAAA;CAAE,KACzC,WAAW,oBAAoB,CAAC,CAAC"}
|
|
@@ -6,15 +6,15 @@ type LinkPropsWithGo = {
|
|
|
6
6
|
type LinkPropsWithTo = {
|
|
7
7
|
to: string;
|
|
8
8
|
};
|
|
9
|
-
export type LinkProps<TProps = {}> = React.PropsWithChildren<(LinkPropsWithGo | LinkPropsWithTo) &
|
|
9
|
+
export type LinkProps<TProps = {}> = React.PropsWithChildren<(LinkPropsWithGo | LinkPropsWithTo) & TProps>;
|
|
10
10
|
/**
|
|
11
11
|
* @param to The path to navigate to.
|
|
12
12
|
* @param go The useGo.go params to navigate to. If `to` provided, this will be ignored.
|
|
13
13
|
* @returns routerProvider.Link if it is provided, otherwise an anchor tag.
|
|
14
14
|
*/
|
|
15
|
-
declare const LinkComponent: <TProps = {}>(props: LinkProps<TProps>, ref: Ref<
|
|
15
|
+
declare const LinkComponent: <TProps = {}>(props: LinkProps<TProps>, ref: Ref<Element>) => React.JSX.Element;
|
|
16
16
|
export declare const Link: <T = {}>(props: LinkProps<T> & {
|
|
17
|
-
ref?: Ref<
|
|
17
|
+
ref?: Ref<Element>;
|
|
18
18
|
}) => ReturnType<typeof LinkComponent>;
|
|
19
19
|
export {};
|
|
20
20
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -6,15 +6,15 @@ type LinkPropsWithGo = {
|
|
|
6
6
|
type LinkPropsWithTo = {
|
|
7
7
|
to: string;
|
|
8
8
|
};
|
|
9
|
-
export type LinkProps<TProps = {}> = React.PropsWithChildren<(LinkPropsWithGo | LinkPropsWithTo) &
|
|
9
|
+
export type LinkProps<TProps = {}> = React.PropsWithChildren<(LinkPropsWithGo | LinkPropsWithTo) & TProps>;
|
|
10
10
|
/**
|
|
11
11
|
* @param to The path to navigate to.
|
|
12
12
|
* @param go The useGo.go params to navigate to. If `to` provided, this will be ignored.
|
|
13
13
|
* @returns routerProvider.Link if it is provided, otherwise an anchor tag.
|
|
14
14
|
*/
|
|
15
|
-
declare const LinkComponent: <TProps = {}>(props: LinkProps<TProps>, ref: Ref<
|
|
15
|
+
declare const LinkComponent: <TProps = {}>(props: LinkProps<TProps>, ref: Ref<Element>) => React.JSX.Element;
|
|
16
16
|
export declare const Link: <T = {}>(props: LinkProps<T> & {
|
|
17
|
-
ref?: Ref<
|
|
17
|
+
ref?: Ref<Element>;
|
|
18
18
|
}) => ReturnType<typeof LinkComponent>;
|
|
19
19
|
export {};
|
|
20
20
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -6,15 +6,15 @@ type LinkPropsWithGo = {
|
|
|
6
6
|
type LinkPropsWithTo = {
|
|
7
7
|
to: string;
|
|
8
8
|
};
|
|
9
|
-
export type LinkProps<TProps = {}> = React.PropsWithChildren<(LinkPropsWithGo | LinkPropsWithTo) &
|
|
9
|
+
export type LinkProps<TProps = {}> = React.PropsWithChildren<(LinkPropsWithGo | LinkPropsWithTo) & TProps>;
|
|
10
10
|
/**
|
|
11
11
|
* @param to The path to navigate to.
|
|
12
12
|
* @param go The useGo.go params to navigate to. If `to` provided, this will be ignored.
|
|
13
13
|
* @returns routerProvider.Link if it is provided, otherwise an anchor tag.
|
|
14
14
|
*/
|
|
15
|
-
declare const LinkComponent: <TProps = {}>(props: LinkProps<TProps>, ref: Ref<
|
|
15
|
+
declare const LinkComponent: <TProps = {}>(props: LinkProps<TProps>, ref: Ref<Element>) => React.JSX.Element;
|
|
16
16
|
export declare const Link: <T = {}>(props: LinkProps<T> & {
|
|
17
|
-
ref?: Ref<
|
|
17
|
+
ref?: Ref<Element>;
|
|
18
18
|
}) => ReturnType<typeof LinkComponent>;
|
|
19
19
|
export {};
|
|
20
20
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +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,
|
|
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,GAAG,MAAM,CAC7C,CAAC;AAEF;;;;GAIG;AACH,QAAA,MAAM,aAAa,uBACV,UAAU,MAAM,CAAC,OACnB,IAAI,OAAO,CAAC,sBA0ClB,CAAC;AAEF,eAAO,MAAM,IAAI,kBACR,UAAU,CAAC,CAAC,GAAG;IAAE,GAAG,CAAC,EAAE,IAAI,OAAO,CAAC,CAAA;CAAE,KACzC,WAAW,oBAAoB,CAAC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/components/pages/auth/components/forgotPassword/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAmB,MAAM,OAAO,CAAC;AAUxC,OAAO,KAAK,EAAE,YAAY,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AACzD,OAAO,KAAK,EAEV,uBAAuB,EACxB,MAAM,aAAa,CAAC;AAErB,KAAK,mBAAmB,GAAG,uBAAuB,CAChD,YAAY,EACZ,YAAY,EACZ,aAAa,CACd,CAAC;AAEF,eAAO,MAAM,kBAAkB,EAAE,KAAK,CAAC,EAAE,CAAC,mBAAmB,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/components/pages/auth/components/forgotPassword/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAmB,MAAM,OAAO,CAAC;AAUxC,OAAO,KAAK,EAAE,YAAY,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AACzD,OAAO,KAAK,EAEV,uBAAuB,EACxB,MAAM,aAAa,CAAC;AAErB,KAAK,mBAAmB,GAAG,uBAAuB,CAChD,YAAY,EACZ,YAAY,EACZ,aAAa,CACd,CAAC;AAEF,eAAO,MAAM,kBAAkB,EAAE,KAAK,CAAC,EAAE,CAAC,mBAAmB,CAuF5D,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/components/pages/auth/components/forgotPassword/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAmB,MAAM,OAAO,CAAC;AAUxC,OAAO,KAAK,EAAE,YAAY,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AACzD,OAAO,KAAK,EAEV,uBAAuB,EACxB,MAAM,aAAa,CAAC;AAErB,KAAK,mBAAmB,GAAG,uBAAuB,CAChD,YAAY,EACZ,YAAY,EACZ,aAAa,CACd,CAAC;AAEF,eAAO,MAAM,kBAAkB,EAAE,KAAK,CAAC,EAAE,CAAC,mBAAmB,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/components/pages/auth/components/forgotPassword/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAmB,MAAM,OAAO,CAAC;AAUxC,OAAO,KAAK,EAAE,YAAY,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AACzD,OAAO,KAAK,EAEV,uBAAuB,EACxB,MAAM,aAAa,CAAC;AAErB,KAAK,mBAAmB,GAAG,uBAAuB,CAChD,YAAY,EACZ,YAAY,EACZ,aAAa,CACd,CAAC;AAEF,eAAO,MAAM,kBAAkB,EAAE,KAAK,CAAC,EAAE,CAAC,mBAAmB,CAuF5D,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/components/pages/auth/components/login/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAmB,MAAM,OAAO,CAAC;AAWxC,OAAO,KAAK,EAAE,YAAY,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AACzD,OAAO,KAAK,EAAkB,cAAc,EAAE,MAAM,aAAa,CAAC;AAElE,KAAK,UAAU,GAAG,cAAc,CAAC,YAAY,EAAE,YAAY,EAAE,aAAa,CAAC,CAAC;AAE5E,eAAO,MAAM,SAAS,EAAE,KAAK,CAAC,EAAE,CAAC,UAAU,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/components/pages/auth/components/login/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAmB,MAAM,OAAO,CAAC;AAWxC,OAAO,KAAK,EAAE,YAAY,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AACzD,OAAO,KAAK,EAAkB,cAAc,EAAE,MAAM,aAAa,CAAC;AAElE,KAAK,UAAU,GAAG,cAAc,CAAC,YAAY,EAAE,YAAY,EAAE,aAAa,CAAC,CAAC;AAE5E,eAAO,MAAM,SAAS,EAAE,KAAK,CAAC,EAAE,CAAC,UAAU,CAqL1C,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/components/pages/auth/components/login/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAmB,MAAM,OAAO,CAAC;AAWxC,OAAO,KAAK,EAAE,YAAY,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AACzD,OAAO,KAAK,EAAkB,cAAc,EAAE,MAAM,aAAa,CAAC;AAElE,KAAK,UAAU,GAAG,cAAc,CAAC,YAAY,EAAE,YAAY,EAAE,aAAa,CAAC,CAAC;AAE5E,eAAO,MAAM,SAAS,EAAE,KAAK,CAAC,EAAE,CAAC,UAAU,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/components/pages/auth/components/login/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAmB,MAAM,OAAO,CAAC;AAWxC,OAAO,KAAK,EAAE,YAAY,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AACzD,OAAO,KAAK,EAAkB,cAAc,EAAE,MAAM,aAAa,CAAC;AAElE,KAAK,UAAU,GAAG,cAAc,CAAC,YAAY,EAAE,YAAY,EAAE,aAAa,CAAC,CAAC;AAE5E,eAAO,MAAM,SAAS,EAAE,KAAK,CAAC,EAAE,CAAC,UAAU,CAqL1C,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/components/pages/auth/components/register/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAmB,MAAM,OAAO,CAAC;AAYxC,OAAO,KAAK,EAAE,YAAY,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AACzD,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAC;AAErD,KAAK,aAAa,GAAG,iBAAiB,CACpC,YAAY,EACZ,YAAY,EACZ,aAAa,CACd,CAAC;AAEF,eAAO,MAAM,YAAY,EAAE,KAAK,CAAC,EAAE,CAAC,aAAa,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/components/pages/auth/components/register/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAmB,MAAM,OAAO,CAAC;AAYxC,OAAO,KAAK,EAAE,YAAY,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AACzD,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAC;AAErD,KAAK,aAAa,GAAG,iBAAiB,CACpC,YAAY,EACZ,YAAY,EACZ,aAAa,CACd,CAAC;AAEF,eAAO,MAAM,YAAY,EAAE,KAAK,CAAC,EAAE,CAAC,aAAa,CAuJhD,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/components/pages/auth/components/register/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAmB,MAAM,OAAO,CAAC;AAYxC,OAAO,KAAK,EAAE,YAAY,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AACzD,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAC;AAErD,KAAK,aAAa,GAAG,iBAAiB,CACpC,YAAY,EACZ,YAAY,EACZ,aAAa,CACd,CAAC;AAEF,eAAO,MAAM,YAAY,EAAE,KAAK,CAAC,EAAE,CAAC,aAAa,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/components/pages/auth/components/register/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAmB,MAAM,OAAO,CAAC;AAYxC,OAAO,KAAK,EAAE,YAAY,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AACzD,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAC;AAErD,KAAK,aAAa,GAAG,iBAAiB,CACpC,YAAY,EACZ,YAAY,EACZ,aAAa,CACd,CAAC;AAEF,eAAO,MAAM,YAAY,EAAE,KAAK,CAAC,EAAE,CAAC,aAAa,CAuJhD,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/components/pages/auth/components/updatePassword/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAmB,MAAM,OAAO,CAAC;AAKxC,OAAO,KAAK,EAAE,YAAY,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AACzD,OAAO,KAAK,EAEV,uBAAuB,EACxB,MAAM,aAAa,CAAC;AAErB,KAAK,mBAAmB,GAAG,uBAAuB,CAChD,YAAY,EACZ,YAAY,EACZ,aAAa,CACd,CAAC;AAEF,eAAO,MAAM,kBAAkB,EAAE,KAAK,CAAC,EAAE,CAAC,mBAAmB,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/components/pages/auth/components/updatePassword/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAmB,MAAM,OAAO,CAAC;AAKxC,OAAO,KAAK,EAAE,YAAY,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AACzD,OAAO,KAAK,EAEV,uBAAuB,EACxB,MAAM,aAAa,CAAC;AAErB,KAAK,mBAAmB,GAAG,uBAAuB,CAChD,YAAY,EACZ,YAAY,EACZ,aAAa,CACd,CAAC;AAEF,eAAO,MAAM,kBAAkB,EAAE,KAAK,CAAC,EAAE,CAAC,mBAAmB,CAqF5D,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/components/pages/auth/components/updatePassword/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAmB,MAAM,OAAO,CAAC;AAKxC,OAAO,KAAK,EAAE,YAAY,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AACzD,OAAO,KAAK,EAEV,uBAAuB,EACxB,MAAM,aAAa,CAAC;AAErB,KAAK,mBAAmB,GAAG,uBAAuB,CAChD,YAAY,EACZ,YAAY,EACZ,aAAa,CACd,CAAC;AAEF,eAAO,MAAM,kBAAkB,EAAE,KAAK,CAAC,EAAE,CAAC,mBAAmB,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/components/pages/auth/components/updatePassword/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAmB,MAAM,OAAO,CAAC;AAKxC,OAAO,KAAK,EAAE,YAAY,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AACzD,OAAO,KAAK,EAEV,uBAAuB,EACxB,MAAM,aAAa,CAAC;AAErB,KAAK,mBAAmB,GAAG,uBAAuB,CAChD,YAAY,EACZ,YAAY,EACZ,aAAa,CACd,CAAC;AAEF,eAAO,MAAM,kBAAkB,EAAE,KAAK,CAAC,EAAE,CAAC,mBAAmB,CAqF5D,CAAC"}
|
|
@@ -126,6 +126,10 @@ export type AuthPageProps<TWrapperProps extends {} = Record<keyof any, unknown>,
|
|
|
126
126
|
* @optional
|
|
127
127
|
* */
|
|
128
128
|
title?: React.ReactNode;
|
|
129
|
+
/**
|
|
130
|
+
* @description Can be used to pass additional variables to the mutation. This is useful when you need to pass other variables to the authProvider.
|
|
131
|
+
*/
|
|
132
|
+
mutationVariables?: Record<string, any>;
|
|
129
133
|
};
|
|
130
134
|
/**
|
|
131
135
|
* This should be the base type for `AuthPage` `Login` component implementations in UI integrations.
|
|
@@ -141,6 +145,7 @@ export type LoginPageProps<TWrapperProps extends {} = Record<keyof any, unknown>
|
|
|
141
145
|
formProps?: TFormProps;
|
|
142
146
|
title?: React.ReactNode;
|
|
143
147
|
hideForm?: boolean;
|
|
148
|
+
mutationVariables?: Record<string, unknown>;
|
|
144
149
|
}>;
|
|
145
150
|
/**
|
|
146
151
|
* This should be the base type for `AuthPage` `Register` component implementations in UI integrations.
|
|
@@ -154,6 +159,7 @@ export type RegisterPageProps<TWrapperProps extends {} = Record<keyof any, unkno
|
|
|
154
159
|
formProps?: TFormProps;
|
|
155
160
|
title?: React.ReactNode;
|
|
156
161
|
hideForm?: boolean;
|
|
162
|
+
mutationVariables?: Record<string, unknown>;
|
|
157
163
|
}>;
|
|
158
164
|
/**
|
|
159
165
|
* This should be the base type for `AuthPage` `Reset Password` component implementations in UI integrations.
|
|
@@ -165,6 +171,7 @@ export type ForgotPasswordPageProps<TWrapperProps extends {} = Record<keyof any,
|
|
|
165
171
|
contentProps?: TContentProps;
|
|
166
172
|
formProps?: TFormProps;
|
|
167
173
|
title?: React.ReactNode;
|
|
174
|
+
mutationVariables?: Record<string, unknown>;
|
|
168
175
|
}>;
|
|
169
176
|
/**
|
|
170
177
|
* This should be the base type for `AuthPage` `Update Password` component implementations in UI integrations.
|
|
@@ -175,5 +182,6 @@ export type UpdatePasswordPageProps<TWrapperProps extends {} = Record<keyof any,
|
|
|
175
182
|
contentProps?: TContentProps;
|
|
176
183
|
formProps?: TFormProps;
|
|
177
184
|
title?: React.ReactNode;
|
|
185
|
+
mutationVariables?: Record<string, unknown>;
|
|
178
186
|
}>;
|
|
179
187
|
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/components/pages/auth/types.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,KAAK,iBAAiB,EAAE,MAAM,OAAO,CAAC;AAEtD,MAAM,MAAM,aAAa,GAAG;IAC1B,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACvB,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB,CAAC;AAEF,MAAM,WAAW,cAAc;IAC7B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB;AAED,MAAM,WAAW,iBAAiB;IAChC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB;AAED,MAAM,WAAW,uBAAuB;IACtC,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,WAAW,uBAAuB;IACtC,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,eAAe,CAAC,EAAE,MAAM,CAAC;CAC1B;AAED;;GAEG;AACH,MAAM,MAAM,aAAa,CACvB,aAAa,SAAS,EAAE,GAAG,MAAM,CAAC,MAAM,GAAG,EAAE,OAAO,CAAC,EACrD,aAAa,SAAS,EAAE,GAAG,MAAM,CAAC,MAAM,GAAG,EAAE,OAAO,CAAC,EACrD,UAAU,SAAS,EAAE,GAAG,MAAM,CAAC,MAAM,GAAG,EAAE,OAAO,CAAC,IAChD,CACA,iBAAiB,CAAC;IAChB;;;;OAIG;IACH,IAAI,CAAC,EAAE,OAAO,CAAC;IACf;;;;OAIG;IACH,SAAS,CAAC,EAAE,aAAa,EAAE,CAAC;IAC5B;;;;OAIG;IACH,YAAY,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC/B;;;;OAIG;IACH,kBAAkB,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACrC;;;OAGG;IACH,UAAU,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC7B;;;OAGG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB,CAAC,GACF,iBAAiB,CAAC;IAChB;;;OAGG;IACH,IAAI,EAAE,UAAU,CAAC;IACjB;;;OAGG;IACH,SAAS,CAAC,EAAE,aAAa,EAAE,CAAC;IAC5B;;;;OAIG;IACH,SAAS,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC5B;;;OAGG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB,CAAC,GACF,iBAAiB,CAAC;IAChB;;;OAGG;IACH,IAAI,EAAE,gBAAgB,CAAC;IACvB;;;OAGG;IACH,SAAS,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CAC7B,CAAC,GACF,iBAAiB,CAAC;IAChB;;;OAGG;IACH,IAAI,EAAE,gBAAgB,CAAC;CACxB,CAAC,CACL,GAAG;IACF;;;OAGG;IACH,YAAY,CAAC,EAAE,aAAa,CAAC;IAC7B;;;OAGG;IACH,YAAY,CAAC,EAAE,aAAa,CAAC;IAC7B;;;OAGG;IACH,aAAa,CAAC,EAAE,CACd,OAAO,EAAE,KAAK,CAAC,SAAS,EACxB,KAAK,EAAE,KAAK,CAAC,SAAS,KACnB,KAAK,CAAC,SAAS,CAAC;IACrB;;;OAGG;IACH,SAAS,CAAC,EAAE,UAAU,CAAC;IACvB;;;UAGM;IACN,KAAK,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/components/pages/auth/types.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,E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aAAa,CAAC;IAC7B,aAAa,CAAC,EAAE,CACd,OAAO,EAAE,KAAK,CAAC,SAAS,EACxB,KAAK,EAAE,KAAK,CAAC,SAAS,KACnB,KAAK,CAAC,SAAS,CAAC;IACrB,YAAY,CAAC,EAAE,aAAa,CAAC;IAC7B,SAAS,CAAC,EAAE,UAAU,CAAC;IACvB,KAAK,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACxB,iBAAiB,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CAC7C,CAAC,CAAC"}
|
|
@@ -126,6 +126,10 @@ export type AuthPageProps<TWrapperProps extends {} = Record<keyof any, unknown>,
|
|
|
126
126
|
* @optional
|
|
127
127
|
* */
|
|
128
128
|
title?: React.ReactNode;
|
|
129
|
+
/**
|
|
130
|
+
* @description Can be used to pass additional variables to the mutation. This is useful when you need to pass other variables to the authProvider.
|
|
131
|
+
*/
|
|
132
|
+
mutationVariables?: Record<string, any>;
|
|
129
133
|
};
|
|
130
134
|
/**
|
|
131
135
|
* This should be the base type for `AuthPage` `Login` component implementations in UI integrations.
|
|
@@ -141,6 +145,7 @@ export type LoginPageProps<TWrapperProps extends {} = Record<keyof any, unknown>
|
|
|
141
145
|
formProps?: TFormProps;
|
|
142
146
|
title?: React.ReactNode;
|
|
143
147
|
hideForm?: boolean;
|
|
148
|
+
mutationVariables?: Record<string, unknown>;
|
|
144
149
|
}>;
|
|
145
150
|
/**
|
|
146
151
|
* This should be the base type for `AuthPage` `Register` component implementations in UI integrations.
|
|
@@ -154,6 +159,7 @@ export type RegisterPageProps<TWrapperProps extends {} = Record<keyof any, unkno
|
|
|
154
159
|
formProps?: TFormProps;
|
|
155
160
|
title?: React.ReactNode;
|
|
156
161
|
hideForm?: boolean;
|
|
162
|
+
mutationVariables?: Record<string, unknown>;
|
|
157
163
|
}>;
|
|
158
164
|
/**
|
|
159
165
|
* This should be the base type for `AuthPage` `Reset Password` component implementations in UI integrations.
|
|
@@ -165,6 +171,7 @@ export type ForgotPasswordPageProps<TWrapperProps extends {} = Record<keyof any,
|
|
|
165
171
|
contentProps?: TContentProps;
|
|
166
172
|
formProps?: TFormProps;
|
|
167
173
|
title?: React.ReactNode;
|
|
174
|
+
mutationVariables?: Record<string, unknown>;
|
|
168
175
|
}>;
|
|
169
176
|
/**
|
|
170
177
|
* This should be the base type for `AuthPage` `Update Password` component implementations in UI integrations.
|
|
@@ -175,5 +182,6 @@ export type UpdatePasswordPageProps<TWrapperProps extends {} = Record<keyof any,
|
|
|
175
182
|
contentProps?: TContentProps;
|
|
176
183
|
formProps?: TFormProps;
|
|
177
184
|
title?: React.ReactNode;
|
|
185
|
+
mutationVariables?: Record<string, unknown>;
|
|
178
186
|
}>;
|
|
179
187
|
//# sourceMappingURL=types.d.ts.map
|
|
@@ -126,6 +126,10 @@ export type AuthPageProps<TWrapperProps extends {} = Record<keyof any, unknown>,
|
|
|
126
126
|
* @optional
|
|
127
127
|
* */
|
|
128
128
|
title?: React.ReactNode;
|
|
129
|
+
/**
|
|
130
|
+
* @description Can be used to pass additional variables to the mutation. This is useful when you need to pass other variables to the authProvider.
|
|
131
|
+
*/
|
|
132
|
+
mutationVariables?: Record<string, any>;
|
|
129
133
|
};
|
|
130
134
|
/**
|
|
131
135
|
* This should be the base type for `AuthPage` `Login` component implementations in UI integrations.
|
|
@@ -141,6 +145,7 @@ export type LoginPageProps<TWrapperProps extends {} = Record<keyof any, unknown>
|
|
|
141
145
|
formProps?: TFormProps;
|
|
142
146
|
title?: React.ReactNode;
|
|
143
147
|
hideForm?: boolean;
|
|
148
|
+
mutationVariables?: Record<string, unknown>;
|
|
144
149
|
}>;
|
|
145
150
|
/**
|
|
146
151
|
* This should be the base type for `AuthPage` `Register` component implementations in UI integrations.
|
|
@@ -154,6 +159,7 @@ export type RegisterPageProps<TWrapperProps extends {} = Record<keyof any, unkno
|
|
|
154
159
|
formProps?: TFormProps;
|
|
155
160
|
title?: React.ReactNode;
|
|
156
161
|
hideForm?: boolean;
|
|
162
|
+
mutationVariables?: Record<string, unknown>;
|
|
157
163
|
}>;
|
|
158
164
|
/**
|
|
159
165
|
* This should be the base type for `AuthPage` `Reset Password` component implementations in UI integrations.
|
|
@@ -165,6 +171,7 @@ export type ForgotPasswordPageProps<TWrapperProps extends {} = Record<keyof any,
|
|
|
165
171
|
contentProps?: TContentProps;
|
|
166
172
|
formProps?: TFormProps;
|
|
167
173
|
title?: React.ReactNode;
|
|
174
|
+
mutationVariables?: Record<string, unknown>;
|
|
168
175
|
}>;
|
|
169
176
|
/**
|
|
170
177
|
* This should be the base type for `AuthPage` `Update Password` component implementations in UI integrations.
|
|
@@ -175,5 +182,6 @@ export type UpdatePasswordPageProps<TWrapperProps extends {} = Record<keyof any,
|
|
|
175
182
|
contentProps?: TContentProps;
|
|
176
183
|
formProps?: TFormProps;
|
|
177
184
|
title?: React.ReactNode;
|
|
185
|
+
mutationVariables?: Record<string, unknown>;
|
|
178
186
|
}>;
|
|
179
187
|
//# sourceMappingURL=types.d.ts.map
|