@ory/elements-react 1.0.0-next.23 → 1.0.0-next.25

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.
@@ -1,442 +0,0 @@
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
- ```