@ory/elements-react 1.0.0-next.2 → 1.0.0-next.20
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/.vscode/i18n-ally-reviews.yml +3 -0
- package/.vscode/settings.json +4 -0
- package/CHANGELOG.md +299 -0
- package/README.md +160 -7
- package/api-report/elements-react-client.api.json +356 -0
- package/api-report/elements-react-client.api.md +33 -0
- package/api-report/elements-react-theme.api.json +1468 -0
- package/api-report/elements-react-theme.api.md +149 -0
- package/api-report/elements-react.api.json +3759 -0
- package/api-report/elements-react.api.md +442 -0
- package/api-report/temp/elements-react-client.api.md +33 -0
- package/api-report/temp/elements-react-theme.api.md +149 -0
- package/api-report/temp/elements-react.api.md +442 -0
- package/config/api-extractor-client.json +463 -0
- package/config/api-extractor-core.json +457 -0
- package/config/api-extractor-theme.json +463 -0
- package/dist/client/config.d.mts +21 -0
- package/dist/client/config.d.ts +21 -0
- package/dist/client/config.js +77 -0
- package/dist/client/config.js.map +1 -0
- package/dist/client/config.mjs +51 -0
- package/dist/client/config.mjs.map +1 -0
- package/dist/client/frontendClient.d.mts +7 -0
- package/dist/client/frontendClient.d.ts +7 -0
- package/dist/client/frontendClient.js +52 -0
- package/dist/client/frontendClient.js.map +1 -0
- package/dist/client/frontendClient.mjs +31 -0
- package/dist/client/frontendClient.mjs.map +1 -0
- package/dist/client/index.d.mts +5 -0
- package/dist/client/index.d.ts +5 -0
- package/dist/client/index.js +33 -0
- package/dist/client/index.js.map +1 -0
- package/dist/client/index.mjs +10 -0
- package/dist/client/index.mjs.map +1 -0
- package/dist/client/session-provider.d.mts +62 -0
- package/dist/client/session-provider.d.ts +62 -0
- package/dist/client/session-provider.js +96 -0
- package/dist/client/session-provider.js.map +1 -0
- package/dist/client/session-provider.mjs +71 -0
- package/dist/client/session-provider.mjs.map +1 -0
- package/dist/client/useSession.d.mts +32 -0
- package/dist/client/useSession.d.ts +32 -0
- package/dist/client/useSession.js +37 -0
- package/dist/client/useSession.js.map +1 -0
- package/dist/client/useSession.mjs +13 -0
- package/dist/client/useSession.mjs.map +1 -0
- package/dist/index.d.mts +441 -1634
- package/dist/index.d.ts +441 -1634
- package/dist/index.js +2492 -5790
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +2483 -5754
- package/dist/index.mjs.map +1 -1
- package/dist/theme/default/index.css +673 -169
- package/dist/theme/default/index.css.map +1 -1
- package/dist/theme/default/index.d.mts +29 -142
- package/dist/theme/default/index.d.ts +29 -142
- package/dist/theme/default/index.js +1968 -10130
- package/dist/theme/default/index.js.map +1 -1
- package/dist/theme/default/index.mjs +2014 -10203
- package/dist/theme/default/index.mjs.map +1 -1
- package/jest.config.ts +23 -0
- package/package.json +34 -9
- package/postcss.config.ts +1 -0
- package/tailwind.config.ts +21 -12
- package/tsconfig.json +15 -3
- package/tsconfig.spec.json +20 -0
- package/variables-processed.json +385 -187
- package/.eslintrc.js +0 -61
- package/test-results/.last-run.json +0 -4
|
@@ -0,0 +1,442 @@
|
|
|
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 * as class_variance_authority_types from 'class-variance-authority/types';
|
|
8
|
+
import { ComponentPropsWithoutRef } from 'react';
|
|
9
|
+
import { ComponentType } from 'react';
|
|
10
|
+
import { ConfigurationParameters } from '@ory/client-fetch';
|
|
11
|
+
import { DetailedHTMLProps } from 'react';
|
|
12
|
+
import { Dispatch } from 'react';
|
|
13
|
+
import { FlowError } from '@ory/client-fetch';
|
|
14
|
+
import { FlowType } from '@ory/client-fetch';
|
|
15
|
+
import { FormEventHandler } from 'react';
|
|
16
|
+
import { HTMLAttributes } from 'react';
|
|
17
|
+
import { IntlShape } from 'react-intl';
|
|
18
|
+
import { LoginFlow } from '@ory/client-fetch';
|
|
19
|
+
import { MouseEventHandler } from 'react';
|
|
20
|
+
import { OnRedirectHandler } from '@ory/client-fetch';
|
|
21
|
+
import { PropsWithChildren } from 'react';
|
|
22
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
23
|
+
import { RecoveryFlow } from '@ory/client-fetch';
|
|
24
|
+
import { RegistrationFlow } from '@ory/client-fetch';
|
|
25
|
+
import { SettingsFlow } from '@ory/client-fetch';
|
|
26
|
+
import { UiNode } from '@ory/client-fetch';
|
|
27
|
+
import { UiNodeAnchorAttributes } from '@ory/client-fetch';
|
|
28
|
+
import { UiNodeGroupEnum } from '@ory/client-fetch';
|
|
29
|
+
import { UiNodeImageAttributes } from '@ory/client-fetch';
|
|
30
|
+
import { UiNodeInputAttributes } from '@ory/client-fetch';
|
|
31
|
+
import { UiNodeTextAttributes } from '@ory/client-fetch';
|
|
32
|
+
import { UiText } from '@ory/client-fetch';
|
|
33
|
+
import { UpdateLoginFlowBody } from '@ory/client-fetch';
|
|
34
|
+
import { UpdateRecoveryFlowBody } from '@ory/client-fetch';
|
|
35
|
+
import { UpdateRegistrationFlowBody } from '@ory/client-fetch';
|
|
36
|
+
import { UpdateSettingsFlowBody } from '@ory/client-fetch';
|
|
37
|
+
import { UpdateVerificationFlowBody } from '@ory/client-fetch';
|
|
38
|
+
import { VariantProps } from 'class-variance-authority';
|
|
39
|
+
import { VerificationFlow } from '@ory/client-fetch';
|
|
40
|
+
|
|
41
|
+
// Warning: (ae-forgotten-export) The symbol "OryFlow" needs to be exported by the entry point index.d.ts
|
|
42
|
+
//
|
|
43
|
+
// @public
|
|
44
|
+
export type ErrorFlowContainer = OryFlow<FlowType.Error, FlowError>;
|
|
45
|
+
|
|
46
|
+
// @public
|
|
47
|
+
export type FlowContainerSetter = Dispatch<OryFlowContainer>;
|
|
48
|
+
|
|
49
|
+
// @public
|
|
50
|
+
export type FlowContextValue = OryFlowContainer & {
|
|
51
|
+
setFlowContainer: FlowContainerSetter;
|
|
52
|
+
formState: FormState;
|
|
53
|
+
dispatchFormState: Dispatch<FormStateAction>;
|
|
54
|
+
};
|
|
55
|
+
|
|
56
|
+
// @public (undocumented)
|
|
57
|
+
export type FormState = {
|
|
58
|
+
current: "provide_identifier";
|
|
59
|
+
} | {
|
|
60
|
+
current: "select_method";
|
|
61
|
+
} | {
|
|
62
|
+
current: "method_active";
|
|
63
|
+
method: UiNodeGroupEnum;
|
|
64
|
+
} | {
|
|
65
|
+
current: "success_screen";
|
|
66
|
+
} | {
|
|
67
|
+
current: "settings";
|
|
68
|
+
};
|
|
69
|
+
|
|
70
|
+
// @public (undocumented)
|
|
71
|
+
export type FormStateAction = {
|
|
72
|
+
type: "action_flow_update";
|
|
73
|
+
flow: OryFlowContainer;
|
|
74
|
+
} | {
|
|
75
|
+
type: "action_select_method";
|
|
76
|
+
method: UiNodeGroupEnum;
|
|
77
|
+
};
|
|
78
|
+
|
|
79
|
+
// @public
|
|
80
|
+
export type FormValues = Record<string, string | boolean | number | undefined>;
|
|
81
|
+
|
|
82
|
+
// @public (undocumented)
|
|
83
|
+
export const HeadlessPageHeader: () => react_jsx_runtime.JSX.Element;
|
|
84
|
+
|
|
85
|
+
// Warning: (ae-forgotten-export) The symbol "IntlContextProps" needs to be exported by the entry point index.d.ts
|
|
86
|
+
//
|
|
87
|
+
// @public (undocumented)
|
|
88
|
+
export type IntlConfig = IntlContextProps;
|
|
89
|
+
|
|
90
|
+
// @public
|
|
91
|
+
export type LoginFlowContainer = OryFlow<FlowType.Login, LoginFlow>;
|
|
92
|
+
|
|
93
|
+
// @public
|
|
94
|
+
export function messageTestId(message: UiText): {
|
|
95
|
+
"data-testid": string;
|
|
96
|
+
};
|
|
97
|
+
|
|
98
|
+
// @public
|
|
99
|
+
export type OnSubmitHandlerProps<T extends UpdateLoginFlowBody | UpdateRegistrationFlowBody | UpdateVerificationFlowBody | UpdateRecoveryFlowBody | UpdateSettingsFlowBody> = {
|
|
100
|
+
setFlowContainer: (flowContainer: OryFlowContainer) => void;
|
|
101
|
+
body: T;
|
|
102
|
+
onRedirect: OnRedirectHandler;
|
|
103
|
+
};
|
|
104
|
+
|
|
105
|
+
// @public
|
|
106
|
+
export function OryCard({ children }: PropsWithChildren): react_jsx_runtime.JSX.Element;
|
|
107
|
+
|
|
108
|
+
// @public
|
|
109
|
+
export type OryCardAuthMethodListItemProps = {
|
|
110
|
+
onClick: () => void;
|
|
111
|
+
group: string;
|
|
112
|
+
};
|
|
113
|
+
|
|
114
|
+
// @public
|
|
115
|
+
export function OryCardContent({ children }: OryCardContentProps): react_jsx_runtime.JSX.Element;
|
|
116
|
+
|
|
117
|
+
// @public
|
|
118
|
+
export type OryCardContentProps = PropsWithChildren;
|
|
119
|
+
|
|
120
|
+
// @public
|
|
121
|
+
export type OryCardDividerProps = Record<string, never>;
|
|
122
|
+
|
|
123
|
+
// @public (undocumented)
|
|
124
|
+
export function OryCardFooter(): react_jsx_runtime.JSX.Element;
|
|
125
|
+
|
|
126
|
+
// @public (undocumented)
|
|
127
|
+
export type OryCardFooterProps = Record<string, never>;
|
|
128
|
+
|
|
129
|
+
// @public (undocumented)
|
|
130
|
+
export function OryCardHeader(): react_jsx_runtime.JSX.Element;
|
|
131
|
+
|
|
132
|
+
// @public (undocumented)
|
|
133
|
+
export type OryCardHeaderProps = Record<string, never>;
|
|
134
|
+
|
|
135
|
+
// @public (undocumented)
|
|
136
|
+
export type OryCardLogoProps = Record<string, never>;
|
|
137
|
+
|
|
138
|
+
// @public (undocumented)
|
|
139
|
+
export type OryCardProps = PropsWithChildren;
|
|
140
|
+
|
|
141
|
+
// @public (undocumented)
|
|
142
|
+
export type OryCardSettingsSectionProps = PropsWithChildren & {
|
|
143
|
+
action: string;
|
|
144
|
+
method: string;
|
|
145
|
+
onSubmit: FormEventHandler<HTMLFormElement>;
|
|
146
|
+
};
|
|
147
|
+
|
|
148
|
+
// @public (undocumented)
|
|
149
|
+
export function OryCardValidationMessages({ ...props }: OryMessageRootProps): react_jsx_runtime.JSX.Element | null;
|
|
150
|
+
|
|
151
|
+
// @public (undocumented)
|
|
152
|
+
export type OryClientConfiguration = {
|
|
153
|
+
name: string;
|
|
154
|
+
logoUrl?: string;
|
|
155
|
+
stylesheet?: string;
|
|
156
|
+
favicon?: string;
|
|
157
|
+
sdk: {
|
|
158
|
+
url: string;
|
|
159
|
+
options?: Partial<ConfigurationParameters>;
|
|
160
|
+
};
|
|
161
|
+
project: {
|
|
162
|
+
registration_enabled: boolean;
|
|
163
|
+
verification_enabled: boolean;
|
|
164
|
+
recovery_enabled: boolean;
|
|
165
|
+
recovery_ui_url: string;
|
|
166
|
+
registration_ui_url: string;
|
|
167
|
+
verification_ui_url: string;
|
|
168
|
+
login_ui_url: string;
|
|
169
|
+
};
|
|
170
|
+
intl?: IntlConfig;
|
|
171
|
+
};
|
|
172
|
+
|
|
173
|
+
// Warning: (ae-forgotten-export) The symbol "DeepPartialTwoLevels" needs to be exported by the entry point index.d.ts
|
|
174
|
+
//
|
|
175
|
+
// @public (undocumented)
|
|
176
|
+
export type OryFlowComponentOverrides = DeepPartialTwoLevels<OryFlowComponents>;
|
|
177
|
+
|
|
178
|
+
// @public
|
|
179
|
+
export type OryFlowComponents = {
|
|
180
|
+
Node: {
|
|
181
|
+
Button: ComponentType<OryNodeButtonProps>;
|
|
182
|
+
OidcButton: ComponentType<OryNodeOidcButtonProps>;
|
|
183
|
+
Anchor: ComponentType<OryNodeAnchorProps>;
|
|
184
|
+
Input: ComponentType<OryNodeInputProps>;
|
|
185
|
+
CodeInput: ComponentType<OryNodeInputProps>;
|
|
186
|
+
Image: ComponentType<OryNodeImageProps>;
|
|
187
|
+
Label: ComponentType<OryNodeLabelProps>;
|
|
188
|
+
Checkbox: ComponentType<OryNodeInputProps>;
|
|
189
|
+
Text: ComponentType<OryNodeTextProps>;
|
|
190
|
+
};
|
|
191
|
+
Card: {
|
|
192
|
+
Root: ComponentType<OryCardProps>;
|
|
193
|
+
Footer: ComponentType<OryCardFooterProps>;
|
|
194
|
+
Header: ComponentType<OryCardProps>;
|
|
195
|
+
Content: ComponentType<OryCardContentProps>;
|
|
196
|
+
Logo: ComponentType<OryCardLogoProps>;
|
|
197
|
+
Divider: ComponentType<OryCardDividerProps>;
|
|
198
|
+
AuthMethodListItem: ComponentType<OryCardAuthMethodListItemProps>;
|
|
199
|
+
SettingsSection: ComponentType<OryCardSettingsSectionProps>;
|
|
200
|
+
SettingsSectionContent: ComponentType<OryFormSectionContentProps>;
|
|
201
|
+
SettingsSectionFooter: ComponentType<OryFormSectionFooterProps>;
|
|
202
|
+
};
|
|
203
|
+
Form: {
|
|
204
|
+
Root: ComponentType<OryFormRootProps>;
|
|
205
|
+
OidcRoot: ComponentType<OryFormOidcRootProps>;
|
|
206
|
+
Group: ComponentType<OryFormGroupProps>;
|
|
207
|
+
OidcSettings: ComponentType<OrySettingsOidcProps>;
|
|
208
|
+
WebauthnSettings: ComponentType<OrySettingsWebauthnProps>;
|
|
209
|
+
PasskeySettings: ComponentType<OrySettingsPasskeyProps>;
|
|
210
|
+
TotpSettings: ComponentType<OrySettingsTotpProps>;
|
|
211
|
+
RecoveryCodesSettings: ComponentType<OrySettingsRecoveryCodesProps>;
|
|
212
|
+
};
|
|
213
|
+
Message: {
|
|
214
|
+
Root: ComponentType<OryMessageRootProps>;
|
|
215
|
+
Content: ComponentType<OryMessageContentProps>;
|
|
216
|
+
};
|
|
217
|
+
Page: {
|
|
218
|
+
Header: ComponentType<OryPageHeaderProps>;
|
|
219
|
+
};
|
|
220
|
+
};
|
|
221
|
+
|
|
222
|
+
// @public
|
|
223
|
+
export type OryFlowContainer = LoginFlowContainer | RegistrationFlowContainer | RecoveryFlowContainer | VerificationFlowContainer | SettingsFlowContainer;
|
|
224
|
+
|
|
225
|
+
// @public (undocumented)
|
|
226
|
+
export function OryForm({ children, onAfterSubmit }: OryFormProps): string | react_jsx_runtime.JSX.Element;
|
|
227
|
+
|
|
228
|
+
// @public
|
|
229
|
+
export function OryFormGroupDivider(): react_jsx_runtime.JSX.Element | null;
|
|
230
|
+
|
|
231
|
+
// @public (undocumented)
|
|
232
|
+
export type OryFormGroupProps = PropsWithChildren;
|
|
233
|
+
|
|
234
|
+
// @public (undocumented)
|
|
235
|
+
export function OryFormGroups({ children, groups }: OryFormGroupsProps): react_jsx_runtime.JSX.Element;
|
|
236
|
+
|
|
237
|
+
// @public (undocumented)
|
|
238
|
+
export type OryFormGroupsProps = PropsWithChildren<{
|
|
239
|
+
groups: UiNodeGroupEnum[];
|
|
240
|
+
}>;
|
|
241
|
+
|
|
242
|
+
// @public (undocumented)
|
|
243
|
+
export function OryFormOidcButtons({ children, hideDivider, }: OryFormOidcButtonsProps): react_jsx_runtime.JSX.Element | null;
|
|
244
|
+
|
|
245
|
+
// @public (undocumented)
|
|
246
|
+
export type OryFormOidcButtonsProps = PropsWithChildren<{
|
|
247
|
+
hideDivider?: boolean;
|
|
248
|
+
}>;
|
|
249
|
+
|
|
250
|
+
// @public (undocumented)
|
|
251
|
+
export type OryFormOidcRootProps = PropsWithChildren<{
|
|
252
|
+
nodes: UiNode[];
|
|
253
|
+
}>;
|
|
254
|
+
|
|
255
|
+
// @public (undocumented)
|
|
256
|
+
export type OryFormProps = PropsWithChildren<{
|
|
257
|
+
onAfterSubmit?: (method: string | number | boolean | undefined) => void;
|
|
258
|
+
}>;
|
|
259
|
+
|
|
260
|
+
// @public (undocumented)
|
|
261
|
+
export type OryFormRootProps = ComponentPropsWithoutRef<"form"> & {
|
|
262
|
+
onSubmit: FormEventHandler<HTMLFormElement>;
|
|
263
|
+
};
|
|
264
|
+
|
|
265
|
+
// @public (undocumented)
|
|
266
|
+
export function OryFormSection({ children, nodes, ...rest }: OryFormSectionProps): react_jsx_runtime.JSX.Element;
|
|
267
|
+
|
|
268
|
+
// @public (undocumented)
|
|
269
|
+
export type OryFormSectionContentProps = PropsWithChildren<{
|
|
270
|
+
title?: string;
|
|
271
|
+
description?: string;
|
|
272
|
+
}>;
|
|
273
|
+
|
|
274
|
+
// @public (undocumented)
|
|
275
|
+
export type OryFormSectionFooterProps = PropsWithChildren<{
|
|
276
|
+
text?: string;
|
|
277
|
+
}>;
|
|
278
|
+
|
|
279
|
+
// Warning: (ae-forgotten-export) The symbol "OryFormProps$1" needs to be exported by the entry point index.d.ts
|
|
280
|
+
//
|
|
281
|
+
// @public (undocumented)
|
|
282
|
+
export type OryFormSectionProps = PropsWithChildren<OryFormProps$1 & {
|
|
283
|
+
nodes?: UiNode[];
|
|
284
|
+
}>;
|
|
285
|
+
|
|
286
|
+
// @public (undocumented)
|
|
287
|
+
export function OryFormSocialButtonsForm(): react_jsx_runtime.JSX.Element | null;
|
|
288
|
+
|
|
289
|
+
// Warning: (ae-forgotten-export) The symbol "LocaleMap" needs to be exported by the entry point index.d.ts
|
|
290
|
+
//
|
|
291
|
+
// @public (undocumented)
|
|
292
|
+
export const OryLocales: LocaleMap;
|
|
293
|
+
|
|
294
|
+
// @public (undocumented)
|
|
295
|
+
export type OryMessageContentProps = {
|
|
296
|
+
message: UiText;
|
|
297
|
+
};
|
|
298
|
+
|
|
299
|
+
// @public (undocumented)
|
|
300
|
+
export type OryMessageRootProps = DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>;
|
|
301
|
+
|
|
302
|
+
// @public (undocumented)
|
|
303
|
+
export type OryNodeAnchorProps = {
|
|
304
|
+
attributes: UiNodeAnchorAttributes;
|
|
305
|
+
node: UiNode;
|
|
306
|
+
} & Omit<ComponentPropsWithoutRef<"a">, "children">;
|
|
307
|
+
|
|
308
|
+
// Warning: (ae-forgotten-export) The symbol "ButtonVariants" needs to be exported by the entry point index.d.ts
|
|
309
|
+
//
|
|
310
|
+
// @public (undocumented)
|
|
311
|
+
export type OryNodeButtonProps = {
|
|
312
|
+
attributes: UiNodeInputAttributes;
|
|
313
|
+
node: UiNode;
|
|
314
|
+
} & Omit<ComponentPropsWithoutRef<"button">, "children"> & ButtonVariants;
|
|
315
|
+
|
|
316
|
+
// @public (undocumented)
|
|
317
|
+
export type OryNodeImageProps = {
|
|
318
|
+
attributes: UiNodeImageAttributes;
|
|
319
|
+
node: UiNode;
|
|
320
|
+
};
|
|
321
|
+
|
|
322
|
+
// @public (undocumented)
|
|
323
|
+
export type OryNodeInputProps = {
|
|
324
|
+
attributes: UiNodeInputAttributes;
|
|
325
|
+
node: UiNode;
|
|
326
|
+
onClick?: MouseEventHandler;
|
|
327
|
+
};
|
|
328
|
+
|
|
329
|
+
// @public (undocumented)
|
|
330
|
+
export type OryNodeLabelProps = {
|
|
331
|
+
attributes: UiNodeInputAttributes;
|
|
332
|
+
node: UiNode;
|
|
333
|
+
} & ComponentPropsWithoutRef<"label">;
|
|
334
|
+
|
|
335
|
+
// @public (undocumented)
|
|
336
|
+
export type OryNodeOidcButtonProps = {
|
|
337
|
+
node: UiNode;
|
|
338
|
+
attributes: UiNodeInputAttributes;
|
|
339
|
+
onClick?: () => void;
|
|
340
|
+
};
|
|
341
|
+
|
|
342
|
+
// @public (undocumented)
|
|
343
|
+
export type OryNodeTextProps = {
|
|
344
|
+
attributes: UiNodeTextAttributes;
|
|
345
|
+
node: UiNode;
|
|
346
|
+
};
|
|
347
|
+
|
|
348
|
+
// @public (undocumented)
|
|
349
|
+
export type OryPageHeaderProps = Record<never, never>;
|
|
350
|
+
|
|
351
|
+
// @public (undocumented)
|
|
352
|
+
export function OryProvider({ children, components: Components, ...oryFlowProps }: OryProviderProps): react_jsx_runtime.JSX.Element;
|
|
353
|
+
|
|
354
|
+
// @public (undocumented)
|
|
355
|
+
export type OryProviderProps = {
|
|
356
|
+
components: OryFlowComponents;
|
|
357
|
+
} & OryFlowContainer & PropsWithChildren;
|
|
358
|
+
|
|
359
|
+
// @public (undocumented)
|
|
360
|
+
export function OrySettingsCard(): react_jsx_runtime.JSX.Element;
|
|
361
|
+
|
|
362
|
+
// @public (undocumented)
|
|
363
|
+
export type OrySettingsOidcProps = {
|
|
364
|
+
linkButtons: (UiNode & {
|
|
365
|
+
onClick: () => void;
|
|
366
|
+
})[];
|
|
367
|
+
unlinkButtons: (UiNode & {
|
|
368
|
+
onClick: () => void;
|
|
369
|
+
})[];
|
|
370
|
+
};
|
|
371
|
+
|
|
372
|
+
// @public (undocumented)
|
|
373
|
+
export type OrySettingsPasskeyProps = {
|
|
374
|
+
triggerButton: UiNode & {
|
|
375
|
+
onClick: () => void;
|
|
376
|
+
};
|
|
377
|
+
removeButtons: (UiNode & {
|
|
378
|
+
onClick: () => void;
|
|
379
|
+
})[];
|
|
380
|
+
};
|
|
381
|
+
|
|
382
|
+
// @public (undocumented)
|
|
383
|
+
export type OrySettingsRecoveryCodesProps = {
|
|
384
|
+
codes: string[];
|
|
385
|
+
regnerateButton: UiNode | undefined;
|
|
386
|
+
revealButton: UiNode | undefined;
|
|
387
|
+
onRegenerate: () => void;
|
|
388
|
+
onReveal: () => void;
|
|
389
|
+
};
|
|
390
|
+
|
|
391
|
+
// @public (undocumented)
|
|
392
|
+
export type OrySettingsTotpProps = {
|
|
393
|
+
totpImage: UiNode | undefined;
|
|
394
|
+
totpSecret: UiNode | undefined;
|
|
395
|
+
totpInput: UiNode | undefined;
|
|
396
|
+
totpUnlink: UiNode | undefined;
|
|
397
|
+
onUnlink: () => void;
|
|
398
|
+
};
|
|
399
|
+
|
|
400
|
+
// @public (undocumented)
|
|
401
|
+
export type OrySettingsWebauthnProps = {
|
|
402
|
+
nameInput: UiNode;
|
|
403
|
+
triggerButton: UiNode & {
|
|
404
|
+
onClick: () => void;
|
|
405
|
+
};
|
|
406
|
+
removeButtons: (UiNode & {
|
|
407
|
+
onClick: () => void;
|
|
408
|
+
})[];
|
|
409
|
+
};
|
|
410
|
+
|
|
411
|
+
// @public (undocumented)
|
|
412
|
+
export function OryTwoStepCard(): react_jsx_runtime.JSX.Element;
|
|
413
|
+
|
|
414
|
+
// @public
|
|
415
|
+
export type RecoveryFlowContainer = OryFlow<FlowType.Recovery, RecoveryFlow>;
|
|
416
|
+
|
|
417
|
+
// @public
|
|
418
|
+
export type RegistrationFlowContainer = OryFlow<FlowType.Registration, RegistrationFlow>;
|
|
419
|
+
|
|
420
|
+
// @public
|
|
421
|
+
export type SettingsFlowContainer = OryFlow<FlowType.Settings, SettingsFlow>;
|
|
422
|
+
|
|
423
|
+
// @public
|
|
424
|
+
export const uiTextToFormattedMessage: ({ id, context, text }: Omit<UiText, "type">, intl: IntlShape) => string;
|
|
425
|
+
|
|
426
|
+
// @public (undocumented)
|
|
427
|
+
export function useComponents(): OryFlowComponents;
|
|
428
|
+
|
|
429
|
+
// @public (undocumented)
|
|
430
|
+
export function useNodeSorter(): (a: UiNode, b: UiNode, ctx: {
|
|
431
|
+
flowType: string;
|
|
432
|
+
}) => number;
|
|
433
|
+
|
|
434
|
+
// @public
|
|
435
|
+
export function useOryFlow(): FlowContextValue;
|
|
436
|
+
|
|
437
|
+
// @public
|
|
438
|
+
export type VerificationFlowContainer = OryFlow<FlowType.Verification, VerificationFlow>;
|
|
439
|
+
|
|
440
|
+
// (No @packageDocumentation comment for this package)
|
|
441
|
+
|
|
442
|
+
```
|
|
@@ -0,0 +1,33 @@
|
|
|
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 * as react_jsx_runtime from 'react/jsx-runtime';
|
|
8
|
+
import { Session } from '@ory/client-fetch';
|
|
9
|
+
|
|
10
|
+
// @public (undocumented)
|
|
11
|
+
export type SessionContextData = {
|
|
12
|
+
isLoading: boolean;
|
|
13
|
+
initialized: boolean;
|
|
14
|
+
session: Session | null;
|
|
15
|
+
error: Error | undefined;
|
|
16
|
+
refetch: () => Promise<void>;
|
|
17
|
+
};
|
|
18
|
+
|
|
19
|
+
// @public
|
|
20
|
+
export function SessionProvider({ session: initialSession, children, baseUrl, }: SessionProviderProps): react_jsx_runtime.JSX.Element;
|
|
21
|
+
|
|
22
|
+
// @public (undocumented)
|
|
23
|
+
export type SessionProviderProps = {
|
|
24
|
+
session?: Session | null;
|
|
25
|
+
baseUrl?: string;
|
|
26
|
+
} & React.PropsWithChildren;
|
|
27
|
+
|
|
28
|
+
// @public
|
|
29
|
+
export function useSession(): SessionContextData;
|
|
30
|
+
|
|
31
|
+
// (No @packageDocumentation comment for this package)
|
|
32
|
+
|
|
33
|
+
```
|
|
@@ -0,0 +1,149 @@
|
|
|
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 DefaultCardLayout({ children }: PropsWithChildren): react_jsx_runtime.JSX.Element;
|
|
61
|
+
|
|
62
|
+
// @public (undocumented)
|
|
63
|
+
export function DefaultCardLogo(): react_jsx_runtime.JSX.Element;
|
|
64
|
+
|
|
65
|
+
// @public (undocumented)
|
|
66
|
+
export function DefaultCurrentIdentifierButton(): react_jsx_runtime.JSX.Element | null;
|
|
67
|
+
|
|
68
|
+
// Warning: (ae-forgotten-export) The symbol "OryFormRootProps" needs to be exported by the entry point index.d.ts
|
|
69
|
+
//
|
|
70
|
+
// @public (undocumented)
|
|
71
|
+
export function DefaultFormContainer({ children, onSubmit, action, method, }: PropsWithChildren<OryFormRootProps>): react_jsx_runtime.JSX.Element;
|
|
72
|
+
|
|
73
|
+
// Warning: (ae-forgotten-export) The symbol "OryMessageContentProps" needs to be exported by the entry point index.d.ts
|
|
74
|
+
//
|
|
75
|
+
// @public (undocumented)
|
|
76
|
+
export function DefaultMessage({ message }: OryMessageContentProps): react_jsx_runtime.JSX.Element;
|
|
77
|
+
|
|
78
|
+
// @public (undocumented)
|
|
79
|
+
export function DefaultMessageContainer({ children }: PropsWithChildren): react_jsx_runtime.JSX.Element | null;
|
|
80
|
+
|
|
81
|
+
// @public (undocumented)
|
|
82
|
+
function Error_2({ error, children, }: PropsWithChildren<ErrorFlowContextProps>): react_jsx_runtime.JSX.Element;
|
|
83
|
+
export { Error_2 as Error }
|
|
84
|
+
|
|
85
|
+
// @public (undocumented)
|
|
86
|
+
export type ErrorFlowContextProps = {
|
|
87
|
+
error: FlowError;
|
|
88
|
+
components?: OryFlowComponentOverrides;
|
|
89
|
+
config: OryClientConfiguration;
|
|
90
|
+
};
|
|
91
|
+
|
|
92
|
+
// Warning: (ae-forgotten-export) The symbol "OryFlowComponents" needs to be exported by the entry point index.d.ts
|
|
93
|
+
//
|
|
94
|
+
// @public (undocumented)
|
|
95
|
+
export function getOryComponents(overrides?: OryFlowComponentOverrides): OryFlowComponents;
|
|
96
|
+
|
|
97
|
+
// @public (undocumented)
|
|
98
|
+
export function Login({ flow, config, children, components: flowOverrideComponents, }: PropsWithChildren<LoginFlowContextProps>): react_jsx_runtime.JSX.Element;
|
|
99
|
+
|
|
100
|
+
// @public (undocumented)
|
|
101
|
+
export type LoginFlowContextProps = {
|
|
102
|
+
flow: LoginFlow;
|
|
103
|
+
components?: OryFlowComponentOverrides;
|
|
104
|
+
config: OryClientConfiguration;
|
|
105
|
+
};
|
|
106
|
+
|
|
107
|
+
// @public (undocumented)
|
|
108
|
+
export function Recovery({ flow, config, children, components: flowOverrideComponents, }: PropsWithChildren<RecoveryFlowContextProps>): react_jsx_runtime.JSX.Element;
|
|
109
|
+
|
|
110
|
+
// @public (undocumented)
|
|
111
|
+
export type RecoveryFlowContextProps = {
|
|
112
|
+
flow: RecoveryFlow;
|
|
113
|
+
components?: OryFlowComponentOverrides;
|
|
114
|
+
config: OryClientConfiguration;
|
|
115
|
+
};
|
|
116
|
+
|
|
117
|
+
// Warning: (ae-forgotten-export) The symbol "RegistrationFlowContextProps" needs to be exported by the entry point index.d.ts
|
|
118
|
+
//
|
|
119
|
+
// @public (undocumented)
|
|
120
|
+
export function Registration({ flow, children, components: flowOverrideComponents, config, }: PropsWithChildren<RegistrationFlowContextProps>): react_jsx_runtime.JSX.Element;
|
|
121
|
+
|
|
122
|
+
// @public (undocumented)
|
|
123
|
+
export function Settings({ flow, config, children, components: flowOverrideComponents, }: PropsWithChildren<SettingsFlowContextProps>): react_jsx_runtime.JSX.Element;
|
|
124
|
+
|
|
125
|
+
// @public (undocumented)
|
|
126
|
+
export type SettingsFlowContextProps = {
|
|
127
|
+
flow: SettingsFlow;
|
|
128
|
+
components?: OryFlowComponentOverrides;
|
|
129
|
+
config: OryClientConfiguration;
|
|
130
|
+
};
|
|
131
|
+
|
|
132
|
+
// @public (undocumented)
|
|
133
|
+
export function Verification({ flow, config, children, components: flowOverrideComponents, }: PropsWithChildren<VerificationFlowContextProps>): react_jsx_runtime.JSX.Element;
|
|
134
|
+
|
|
135
|
+
// @public (undocumented)
|
|
136
|
+
export type VerificationFlowContextProps = {
|
|
137
|
+
flow: VerificationFlow;
|
|
138
|
+
components?: OryFlowComponentOverrides;
|
|
139
|
+
config: OryClientConfiguration;
|
|
140
|
+
};
|
|
141
|
+
|
|
142
|
+
// Warnings were encountered during analysis:
|
|
143
|
+
//
|
|
144
|
+
// dist/theme/default/index.d.ts:38:5 - (ae-forgotten-export) The symbol "OryFlowComponentOverrides" needs to be exported by the entry point index.d.ts
|
|
145
|
+
// dist/theme/default/index.d.ts:39:5 - (ae-forgotten-export) The symbol "OryClientConfiguration" needs to be exported by the entry point index.d.ts
|
|
146
|
+
|
|
147
|
+
// (No @packageDocumentation comment for this package)
|
|
148
|
+
|
|
149
|
+
```
|