@ory/elements-react 1.0.0-next.16 → 1.0.0-next.17
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 +21 -0
- package/api-report/elements-react-theme.api.json +150 -0
- package/api-report/elements-react-theme.api.md +14 -2
- package/api-report/temp/elements-react-client.api.md +22 -0
- package/api-report/temp/elements-react-theme.api.md +146 -0
- package/api-report/temp/elements-react.api.md +421 -0
- package/dist/index.js +102 -38
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +103 -39
- package/dist/index.mjs.map +1 -1
- package/dist/theme/default/index.d.mts +12 -3
- package/dist/theme/default/index.d.ts +12 -3
- package/dist/theme/default/index.js +402 -381
- package/dist/theme/default/index.js.map +1 -1
- package/dist/theme/default/index.mjs +451 -424
- package/dist/theme/default/index.mjs.map +1 -1
- package/jest.config.ts +6 -0
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,24 @@
|
|
|
1
|
+
## 1.0.0-next.17 (2024-11-27)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### 🚀 Features
|
|
5
|
+
|
|
6
|
+
- allow overriding OIDC logos
|
|
7
|
+
|
|
8
|
+
- enable proper account linking flows
|
|
9
|
+
|
|
10
|
+
- **core:** add react-hook form resolver
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
### 🩹 Fixes
|
|
14
|
+
|
|
15
|
+
- handle recovery brute force protection
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
### ❤️ Thank You
|
|
19
|
+
|
|
20
|
+
- Jonas Hungershausen
|
|
21
|
+
|
|
1
22
|
## 1.0.0-next.16 (2024-11-26)
|
|
2
23
|
|
|
3
24
|
|
|
@@ -172,6 +172,156 @@
|
|
|
172
172
|
"name": "",
|
|
173
173
|
"preserveMemberOrder": false,
|
|
174
174
|
"members": [
|
|
175
|
+
{
|
|
176
|
+
"kind": "Function",
|
|
177
|
+
"canonicalReference": "@ory/elements-react!DefaultButtonSocial:function(1)",
|
|
178
|
+
"docComment": "",
|
|
179
|
+
"excerptTokens": [
|
|
180
|
+
{
|
|
181
|
+
"kind": "Content",
|
|
182
|
+
"text": "declare function DefaultButtonSocial({ attributes, node, onClick, "
|
|
183
|
+
},
|
|
184
|
+
{
|
|
185
|
+
"kind": "Reference",
|
|
186
|
+
"text": "showLabel",
|
|
187
|
+
"canonicalReference": "@ory/elements-react!~__type#showLabel"
|
|
188
|
+
},
|
|
189
|
+
{
|
|
190
|
+
"kind": "Content",
|
|
191
|
+
"text": ": _showLabel, "
|
|
192
|
+
},
|
|
193
|
+
{
|
|
194
|
+
"kind": "Reference",
|
|
195
|
+
"text": "logos",
|
|
196
|
+
"canonicalReference": "@ory/elements-react!~__type#logos"
|
|
197
|
+
},
|
|
198
|
+
{
|
|
199
|
+
"kind": "Content",
|
|
200
|
+
"text": ": providedLogos, }: "
|
|
201
|
+
},
|
|
202
|
+
{
|
|
203
|
+
"kind": "Reference",
|
|
204
|
+
"text": "DefaultSocialButtonProps",
|
|
205
|
+
"canonicalReference": "@ory/elements-react!~DefaultSocialButtonProps:type"
|
|
206
|
+
},
|
|
207
|
+
{
|
|
208
|
+
"kind": "Content",
|
|
209
|
+
"text": "): "
|
|
210
|
+
},
|
|
211
|
+
{
|
|
212
|
+
"kind": "Reference",
|
|
213
|
+
"text": "react_jsx_runtime.JSX.Element",
|
|
214
|
+
"canonicalReference": "@types/react!JSX.Element:interface"
|
|
215
|
+
},
|
|
216
|
+
{
|
|
217
|
+
"kind": "Content",
|
|
218
|
+
"text": ";"
|
|
219
|
+
}
|
|
220
|
+
],
|
|
221
|
+
"fileUrlPath": "dist/theme/default/index.d.ts",
|
|
222
|
+
"returnTypeTokenRange": {
|
|
223
|
+
"startIndex": 7,
|
|
224
|
+
"endIndex": 8
|
|
225
|
+
},
|
|
226
|
+
"releaseTag": "Public",
|
|
227
|
+
"overloadIndex": 1,
|
|
228
|
+
"parameters": [
|
|
229
|
+
{
|
|
230
|
+
"parameterName": "{ attributes, node, onClick, showLabel: _showLabel, logos: providedLogos, }",
|
|
231
|
+
"parameterTypeTokenRange": {
|
|
232
|
+
"startIndex": 5,
|
|
233
|
+
"endIndex": 6
|
|
234
|
+
},
|
|
235
|
+
"isOptional": false
|
|
236
|
+
}
|
|
237
|
+
],
|
|
238
|
+
"name": "DefaultButtonSocial"
|
|
239
|
+
},
|
|
240
|
+
{
|
|
241
|
+
"kind": "Namespace",
|
|
242
|
+
"canonicalReference": "@ory/elements-react!DefaultButtonSocial:namespace",
|
|
243
|
+
"docComment": "",
|
|
244
|
+
"excerptTokens": [
|
|
245
|
+
{
|
|
246
|
+
"kind": "Content",
|
|
247
|
+
"text": "declare namespace DefaultButtonSocial "
|
|
248
|
+
}
|
|
249
|
+
],
|
|
250
|
+
"fileUrlPath": "dist/theme/default/index.d.ts",
|
|
251
|
+
"releaseTag": "Public",
|
|
252
|
+
"name": "DefaultButtonSocial",
|
|
253
|
+
"preserveMemberOrder": false,
|
|
254
|
+
"members": [
|
|
255
|
+
{
|
|
256
|
+
"kind": "Function",
|
|
257
|
+
"canonicalReference": "@ory/elements-react!DefaultButtonSocial.WithLogos:function(1)",
|
|
258
|
+
"docComment": "",
|
|
259
|
+
"excerptTokens": [
|
|
260
|
+
{
|
|
261
|
+
"kind": "Content",
|
|
262
|
+
"text": "WithLogos: (logos: "
|
|
263
|
+
},
|
|
264
|
+
{
|
|
265
|
+
"kind": "Reference",
|
|
266
|
+
"text": "Record",
|
|
267
|
+
"canonicalReference": "!Record:type"
|
|
268
|
+
},
|
|
269
|
+
{
|
|
270
|
+
"kind": "Content",
|
|
271
|
+
"text": "<string, "
|
|
272
|
+
},
|
|
273
|
+
{
|
|
274
|
+
"kind": "Reference",
|
|
275
|
+
"text": "ElementType",
|
|
276
|
+
"canonicalReference": "@types/react!React.ElementType:type"
|
|
277
|
+
},
|
|
278
|
+
{
|
|
279
|
+
"kind": "Content",
|
|
280
|
+
"text": ">"
|
|
281
|
+
},
|
|
282
|
+
{
|
|
283
|
+
"kind": "Content",
|
|
284
|
+
"text": ") => "
|
|
285
|
+
},
|
|
286
|
+
{
|
|
287
|
+
"kind": "Content",
|
|
288
|
+
"text": "(props: "
|
|
289
|
+
},
|
|
290
|
+
{
|
|
291
|
+
"kind": "Reference",
|
|
292
|
+
"text": "DefaultSocialButtonProps",
|
|
293
|
+
"canonicalReference": "@ory/elements-react!~DefaultSocialButtonProps:type"
|
|
294
|
+
},
|
|
295
|
+
{
|
|
296
|
+
"kind": "Content",
|
|
297
|
+
"text": ") => "
|
|
298
|
+
},
|
|
299
|
+
{
|
|
300
|
+
"kind": "Reference",
|
|
301
|
+
"text": "react_jsx_runtime.JSX.Element",
|
|
302
|
+
"canonicalReference": "@types/react!JSX.Element:interface"
|
|
303
|
+
}
|
|
304
|
+
],
|
|
305
|
+
"returnTypeTokenRange": {
|
|
306
|
+
"startIndex": 6,
|
|
307
|
+
"endIndex": 10
|
|
308
|
+
},
|
|
309
|
+
"releaseTag": "Public",
|
|
310
|
+
"overloadIndex": 1,
|
|
311
|
+
"parameters": [
|
|
312
|
+
{
|
|
313
|
+
"parameterName": "logos",
|
|
314
|
+
"parameterTypeTokenRange": {
|
|
315
|
+
"startIndex": 1,
|
|
316
|
+
"endIndex": 5
|
|
317
|
+
},
|
|
318
|
+
"isOptional": false
|
|
319
|
+
}
|
|
320
|
+
],
|
|
321
|
+
"name": "WithLogos"
|
|
322
|
+
}
|
|
323
|
+
]
|
|
324
|
+
},
|
|
175
325
|
{
|
|
176
326
|
"kind": "Function",
|
|
177
327
|
"canonicalReference": "@ory/elements-react!DefaultCard:function(1)",
|
|
@@ -8,6 +8,7 @@ import { ComponentPropsWithoutRef } from 'react';
|
|
|
8
8
|
import { ComponentType } from 'react';
|
|
9
9
|
import { ConfigurationParameters } from '@ory/client-fetch';
|
|
10
10
|
import { DetailedHTMLProps } from 'react';
|
|
11
|
+
import { ElementType } from 'react';
|
|
11
12
|
import { FlowError } from '@ory/client-fetch';
|
|
12
13
|
import { FormEventHandler } from 'react';
|
|
13
14
|
import { HTMLAttributes } from 'react';
|
|
@@ -28,6 +29,17 @@ import { UiText } from '@ory/client-fetch';
|
|
|
28
29
|
import { VariantProps } from 'class-variance-authority';
|
|
29
30
|
import { VerificationFlow } from '@ory/client-fetch';
|
|
30
31
|
|
|
32
|
+
// Warning: (ae-forgotten-export) The symbol "DefaultSocialButtonProps" needs to be exported by the entry point index.d.ts
|
|
33
|
+
//
|
|
34
|
+
// @public (undocumented)
|
|
35
|
+
export function DefaultButtonSocial({ attributes, node, onClick, showLabel: _showLabel, logos: providedLogos, }: DefaultSocialButtonProps): react_jsx_runtime.JSX.Element;
|
|
36
|
+
|
|
37
|
+
// @public (undocumented)
|
|
38
|
+
export namespace DefaultButtonSocial {
|
|
39
|
+
var // (undocumented)
|
|
40
|
+
WithLogos: (logos: Record<string, ElementType>) => (props: DefaultSocialButtonProps) => react_jsx_runtime.JSX.Element;
|
|
41
|
+
}
|
|
42
|
+
|
|
31
43
|
// Warning: (ae-forgotten-export) The symbol "OryCardRootProps" needs to be exported by the entry point index.d.ts
|
|
32
44
|
//
|
|
33
45
|
// @public (undocumented)
|
|
@@ -126,8 +138,8 @@ export type VerificationFlowContextProps = {
|
|
|
126
138
|
|
|
127
139
|
// Warnings were encountered during analysis:
|
|
128
140
|
//
|
|
129
|
-
// dist/theme/default/index.d.ts:
|
|
130
|
-
// dist/theme/default/index.d.ts:
|
|
141
|
+
// dist/theme/default/index.d.ts:36:5 - (ae-forgotten-export) The symbol "OryFlowComponentOverrides" needs to be exported by the entry point index.d.ts
|
|
142
|
+
// dist/theme/default/index.d.ts:37:5 - (ae-forgotten-export) The symbol "OryClientConfiguration" needs to be exported by the entry point index.d.ts
|
|
131
143
|
|
|
132
144
|
// (No @packageDocumentation comment for this package)
|
|
133
145
|
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
## API Report File for "@ory/elements-react"
|
|
2
|
+
|
|
3
|
+
> Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/).
|
|
4
|
+
|
|
5
|
+
```ts
|
|
6
|
+
|
|
7
|
+
import { Session } from '@ory/client-fetch';
|
|
8
|
+
|
|
9
|
+
// @public
|
|
10
|
+
export const useSession: (config?: {
|
|
11
|
+
sdk: {
|
|
12
|
+
url: string;
|
|
13
|
+
};
|
|
14
|
+
}) => {
|
|
15
|
+
session: Session | undefined;
|
|
16
|
+
error: string | undefined;
|
|
17
|
+
isLoading: boolean;
|
|
18
|
+
};
|
|
19
|
+
|
|
20
|
+
// (No @packageDocumentation comment for this package)
|
|
21
|
+
|
|
22
|
+
```
|
|
@@ -0,0 +1,146 @@
|
|
|
1
|
+
## API Report File for "@ory/elements-react"
|
|
2
|
+
|
|
3
|
+
> Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/).
|
|
4
|
+
|
|
5
|
+
```ts
|
|
6
|
+
|
|
7
|
+
import { ComponentPropsWithoutRef } from 'react';
|
|
8
|
+
import { ComponentType } from 'react';
|
|
9
|
+
import { ConfigurationParameters } from '@ory/client-fetch';
|
|
10
|
+
import { DetailedHTMLProps } from 'react';
|
|
11
|
+
import { ElementType } from 'react';
|
|
12
|
+
import { FlowError } from '@ory/client-fetch';
|
|
13
|
+
import { FormEventHandler } from 'react';
|
|
14
|
+
import { HTMLAttributes } from 'react';
|
|
15
|
+
import { LoginFlow } from '@ory/client-fetch';
|
|
16
|
+
import { MouseEventHandler } from 'react';
|
|
17
|
+
import { PropsWithChildren } from 'react';
|
|
18
|
+
import * as react from 'react';
|
|
19
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
20
|
+
import { RecoveryFlow } from '@ory/client-fetch';
|
|
21
|
+
import { RegistrationFlow } from '@ory/client-fetch';
|
|
22
|
+
import { SettingsFlow } from '@ory/client-fetch';
|
|
23
|
+
import { UiNode } from '@ory/client-fetch';
|
|
24
|
+
import { UiNodeAnchorAttributes } from '@ory/client-fetch';
|
|
25
|
+
import { UiNodeImageAttributes } from '@ory/client-fetch';
|
|
26
|
+
import { UiNodeInputAttributes } from '@ory/client-fetch';
|
|
27
|
+
import { UiNodeTextAttributes } from '@ory/client-fetch';
|
|
28
|
+
import { UiText } from '@ory/client-fetch';
|
|
29
|
+
import { VariantProps } from 'class-variance-authority';
|
|
30
|
+
import { VerificationFlow } from '@ory/client-fetch';
|
|
31
|
+
|
|
32
|
+
// Warning: (ae-forgotten-export) The symbol "DefaultSocialButtonProps" needs to be exported by the entry point index.d.ts
|
|
33
|
+
//
|
|
34
|
+
// @public (undocumented)
|
|
35
|
+
export function DefaultButtonSocial({ attributes, node, onClick, showLabel: _showLabel, logos: providedLogos, }: DefaultSocialButtonProps): react_jsx_runtime.JSX.Element;
|
|
36
|
+
|
|
37
|
+
// @public (undocumented)
|
|
38
|
+
export namespace DefaultButtonSocial {
|
|
39
|
+
var // (undocumented)
|
|
40
|
+
WithLogos: (logos: Record<string, ElementType>) => (props: DefaultSocialButtonProps) => react_jsx_runtime.JSX.Element;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
// Warning: (ae-forgotten-export) The symbol "OryCardRootProps" needs to be exported by the entry point index.d.ts
|
|
44
|
+
//
|
|
45
|
+
// @public (undocumented)
|
|
46
|
+
export function DefaultCard({ children }: OryCardRootProps): react_jsx_runtime.JSX.Element;
|
|
47
|
+
|
|
48
|
+
// Warning: (ae-forgotten-export) The symbol "OryCardContentProps" needs to be exported by the entry point index.d.ts
|
|
49
|
+
//
|
|
50
|
+
// @public (undocumented)
|
|
51
|
+
export function DefaultCardContent({ children }: OryCardContentProps): react.ReactNode;
|
|
52
|
+
|
|
53
|
+
// @public (undocumented)
|
|
54
|
+
export function DefaultCardFooter(): react_jsx_runtime.JSX.Element | null;
|
|
55
|
+
|
|
56
|
+
// @public (undocumented)
|
|
57
|
+
export function DefaultCardHeader(): react_jsx_runtime.JSX.Element;
|
|
58
|
+
|
|
59
|
+
// @public (undocumented)
|
|
60
|
+
export function DefaultCardLogo(): react_jsx_runtime.JSX.Element;
|
|
61
|
+
|
|
62
|
+
// @public (undocumented)
|
|
63
|
+
export function DefaultCurrentIdentifierButton(): react_jsx_runtime.JSX.Element | null;
|
|
64
|
+
|
|
65
|
+
// Warning: (ae-forgotten-export) The symbol "OryFormRootProps" needs to be exported by the entry point index.d.ts
|
|
66
|
+
//
|
|
67
|
+
// @public (undocumented)
|
|
68
|
+
export function DefaultFormContainer({ children, onSubmit, action, method, }: PropsWithChildren<OryFormRootProps>): react_jsx_runtime.JSX.Element;
|
|
69
|
+
|
|
70
|
+
// Warning: (ae-forgotten-export) The symbol "OryMessageContentProps" needs to be exported by the entry point index.d.ts
|
|
71
|
+
//
|
|
72
|
+
// @public (undocumented)
|
|
73
|
+
export function DefaultMessage({ message }: OryMessageContentProps): react_jsx_runtime.JSX.Element;
|
|
74
|
+
|
|
75
|
+
// @public (undocumented)
|
|
76
|
+
export function DefaultMessageContainer({ children }: PropsWithChildren): react_jsx_runtime.JSX.Element | null;
|
|
77
|
+
|
|
78
|
+
// @public (undocumented)
|
|
79
|
+
function Error_2({ error, children, }: PropsWithChildren<ErrorFlowContextProps>): react_jsx_runtime.JSX.Element;
|
|
80
|
+
export { Error_2 as Error }
|
|
81
|
+
|
|
82
|
+
// @public (undocumented)
|
|
83
|
+
export type ErrorFlowContextProps = {
|
|
84
|
+
error: FlowError;
|
|
85
|
+
components?: OryFlowComponentOverrides;
|
|
86
|
+
config: OryClientConfiguration;
|
|
87
|
+
};
|
|
88
|
+
|
|
89
|
+
// Warning: (ae-forgotten-export) The symbol "OryFlowComponents" needs to be exported by the entry point index.d.ts
|
|
90
|
+
//
|
|
91
|
+
// @public (undocumented)
|
|
92
|
+
export function getOryComponents(overrides?: OryFlowComponentOverrides): OryFlowComponents;
|
|
93
|
+
|
|
94
|
+
// @public (undocumented)
|
|
95
|
+
export function Login({ flow, config, children, components: flowOverrideComponents, }: PropsWithChildren<LoginFlowContextProps>): react_jsx_runtime.JSX.Element;
|
|
96
|
+
|
|
97
|
+
// @public (undocumented)
|
|
98
|
+
export type LoginFlowContextProps = {
|
|
99
|
+
flow: LoginFlow;
|
|
100
|
+
components?: OryFlowComponentOverrides;
|
|
101
|
+
config: OryClientConfiguration;
|
|
102
|
+
};
|
|
103
|
+
|
|
104
|
+
// @public (undocumented)
|
|
105
|
+
export function Recovery({ flow, config, children, components: flowOverrideComponents, }: PropsWithChildren<RecoveryFlowContextProps>): react_jsx_runtime.JSX.Element;
|
|
106
|
+
|
|
107
|
+
// @public (undocumented)
|
|
108
|
+
export type RecoveryFlowContextProps = {
|
|
109
|
+
flow: RecoveryFlow;
|
|
110
|
+
components?: OryFlowComponentOverrides;
|
|
111
|
+
config: OryClientConfiguration;
|
|
112
|
+
};
|
|
113
|
+
|
|
114
|
+
// Warning: (ae-forgotten-export) The symbol "RegistrationFlowContextProps" needs to be exported by the entry point index.d.ts
|
|
115
|
+
//
|
|
116
|
+
// @public (undocumented)
|
|
117
|
+
export function Registration({ flow, children, components: flowOverrideComponents, config, }: PropsWithChildren<RegistrationFlowContextProps>): react_jsx_runtime.JSX.Element;
|
|
118
|
+
|
|
119
|
+
// @public (undocumented)
|
|
120
|
+
export function Settings({ flow, config, children, components: flowOverrideComponents, }: PropsWithChildren<SettingsFlowContextProps>): react_jsx_runtime.JSX.Element;
|
|
121
|
+
|
|
122
|
+
// @public (undocumented)
|
|
123
|
+
export type SettingsFlowContextProps = {
|
|
124
|
+
flow: SettingsFlow;
|
|
125
|
+
components?: OryFlowComponentOverrides;
|
|
126
|
+
config: OryClientConfiguration;
|
|
127
|
+
};
|
|
128
|
+
|
|
129
|
+
// @public (undocumented)
|
|
130
|
+
export function Verification({ flow, config, children, components: flowOverrideComponents, }: PropsWithChildren<VerificationFlowContextProps>): react_jsx_runtime.JSX.Element;
|
|
131
|
+
|
|
132
|
+
// @public (undocumented)
|
|
133
|
+
export type VerificationFlowContextProps = {
|
|
134
|
+
flow: VerificationFlow;
|
|
135
|
+
components?: OryFlowComponentOverrides;
|
|
136
|
+
config: OryClientConfiguration;
|
|
137
|
+
};
|
|
138
|
+
|
|
139
|
+
// Warnings were encountered during analysis:
|
|
140
|
+
//
|
|
141
|
+
// dist/theme/default/index.d.ts:36:5 - (ae-forgotten-export) The symbol "OryFlowComponentOverrides" needs to be exported by the entry point index.d.ts
|
|
142
|
+
// dist/theme/default/index.d.ts:37:5 - (ae-forgotten-export) The symbol "OryClientConfiguration" needs to be exported by the entry point index.d.ts
|
|
143
|
+
|
|
144
|
+
// (No @packageDocumentation comment for this package)
|
|
145
|
+
|
|
146
|
+
```
|