@ory/elements-react 1.0.0-next.9 → 1.0.0-pr.97a7df82
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 +591 -0
- package/DEVELOPMENT.md +94 -0
- package/LICENSE +201 -0
- package/README.md +359 -32
- package/babel.config.js +10 -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 +10 -0
- package/dist/client/frontendClient.d.ts +10 -0
- package/dist/client/frontendClient.js +75 -0
- package/dist/client/frontendClient.js.map +1 -0
- package/dist/client/frontendClient.mjs +54 -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 +531 -1888
- package/dist/index.d.ts +531 -1888
- package/dist/index.js +4285 -2549
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +4293 -2549
- package/dist/index.mjs.map +1 -1
- package/dist/theme/default/index.css +986 -308
- package/dist/theme/default/index.css.map +1 -1
- package/dist/theme/default/index.d.mts +54 -15
- package/dist/theme/default/index.d.ts +54 -15
- package/dist/theme/default/index.js +5621 -796
- package/dist/theme/default/index.js.map +1 -1
- package/dist/theme/default/index.mjs +5706 -768
- package/dist/theme/default/index.mjs.map +1 -1
- package/dist/theme/default/tailwind/defaults.d.mts +737 -0
- package/dist/theme/default/tailwind/defaults.d.ts +737 -0
- package/dist/theme/default/tailwind/defaults.js +219 -0
- package/dist/theme/default/tailwind/defaults.js.map +1 -0
- package/dist/theme/default/tailwind/defaults.mjs +196 -0
- package/dist/theme/default/tailwind/defaults.mjs.map +1 -0
- package/package.json +39 -14
- package/tailwind/defaults.ts +34 -0
- package/tailwind/generated/README.md +2 -0
- package/tailwind/generated/default-variables.css +216 -0
- package/tailwind/generated/variables-processed.json +161 -0
- package/tsconfig.json +10 -9
- package/tsconfig.runtime.json +4 -0
- package/.eslintrc.js +0 -61
- package/.vscode/i18n-ally-reviews.yml +0 -3
- package/.vscode/settings.json +0 -4
- package/api-report/elements-react-theme.api.json +0 -1260
- package/api-report/elements-react-theme.api.md +0 -128
- package/api-report/elements-react.api.json +0 -4262
- package/api-report/elements-react.api.md +0 -393
- package/api-report/temp/elements-react-theme.api.md +0 -130
- package/api-report/temp/elements-react.api.md +0 -328
- package/config/api-extractor-core.json +0 -457
- package/config/api-extractor-theme.json +0 -463
- package/jest.config.ts +0 -16
- package/postcss.config.ts +0 -6
- package/tailwind.config.ts +0 -54
- package/tsconfig.spec.json +0 -20
- package/variables-processed.json +0 -193
|
@@ -1,393 +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 { ComponentPropsWithoutRef } from 'react';
|
|
8
|
-
import { ComponentType } from 'react';
|
|
9
|
-
import { ConfigurationParameters } from '@ory/client-fetch';
|
|
10
|
-
import { DetailedHTMLProps } from 'react';
|
|
11
|
-
import { Dispatch } from 'react';
|
|
12
|
-
import { FlowError } from '@ory/client-fetch';
|
|
13
|
-
import { FlowType } from '@ory/client-fetch';
|
|
14
|
-
import { FormEventHandler } from 'react';
|
|
15
|
-
import { HTMLAttributes } from 'react';
|
|
16
|
-
import { IntlShape } from 'react-intl';
|
|
17
|
-
import { LoginFlow } from '@ory/client-fetch';
|
|
18
|
-
import { MouseEventHandler } from 'react';
|
|
19
|
-
import { OnRedirectHandler } from '@ory/client-fetch';
|
|
20
|
-
import { PropsWithChildren } from 'react';
|
|
21
|
-
import * as react 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 { VerificationFlow } from '@ory/client-fetch';
|
|
39
|
-
|
|
40
|
-
// @public (undocumented)
|
|
41
|
-
export type CustomLanguageFormats = {
|
|
42
|
-
[k in (typeof LanguageCodes)[number]]?: Partial<TranslationFile>;
|
|
43
|
-
};
|
|
44
|
-
|
|
45
|
-
// @public (undocumented)
|
|
46
|
-
export type CustomTranslations = {
|
|
47
|
-
customTranslations: Partial<CustomLanguageFormats>;
|
|
48
|
-
locale: (typeof LanguageCodes)[number];
|
|
49
|
-
defaultLocale: (typeof LanguageCodes)[number];
|
|
50
|
-
};
|
|
51
|
-
|
|
52
|
-
// Warning: (ae-forgotten-export) The symbol "BaseFlow" needs to be exported by the entry point index.d.ts
|
|
53
|
-
//
|
|
54
|
-
// @public (undocumented)
|
|
55
|
-
export type ErrorFlowContainer = BaseFlow<FlowType.Error, FlowError>;
|
|
56
|
-
|
|
57
|
-
// @public (undocumented)
|
|
58
|
-
export type FlowContainer = LoginFlowContainer | RegistrationFlowContainer | RecoveryFlowContainer | VerificationFlowContainer | SettingsFlowContainer;
|
|
59
|
-
|
|
60
|
-
// @public (undocumented)
|
|
61
|
-
export type FlowContainerSetter = Dispatch<Partial<FlowContainer>>;
|
|
62
|
-
|
|
63
|
-
// @public (undocumented)
|
|
64
|
-
export type FlowContextValue = FlowContainer & {
|
|
65
|
-
setFlowContainer: FlowContainerSetter;
|
|
66
|
-
};
|
|
67
|
-
|
|
68
|
-
// @public (undocumented)
|
|
69
|
-
export function formatMessage(uiText: UiText | undefined, intl: IntlShape): string;
|
|
70
|
-
|
|
71
|
-
// @public (undocumented)
|
|
72
|
-
export function formElementId(attributes: {
|
|
73
|
-
name: string;
|
|
74
|
-
}): {
|
|
75
|
-
id: string;
|
|
76
|
-
};
|
|
77
|
-
|
|
78
|
-
// @public (undocumented)
|
|
79
|
-
export function formLabelId(attributes: {
|
|
80
|
-
name: string;
|
|
81
|
-
}): {
|
|
82
|
-
htmlFor: string;
|
|
83
|
-
};
|
|
84
|
-
|
|
85
|
-
// @public (undocumented)
|
|
86
|
-
export type FormValues = Record<string, string | boolean | number | undefined>;
|
|
87
|
-
|
|
88
|
-
// @public (undocumented)
|
|
89
|
-
export type HeadlessAuthMethodListItemProps = {
|
|
90
|
-
onClick: () => void;
|
|
91
|
-
group: string;
|
|
92
|
-
};
|
|
93
|
-
|
|
94
|
-
// @public (undocumented)
|
|
95
|
-
export type HeadlessButtonProps = {
|
|
96
|
-
attributes: UiNodeInputAttributes;
|
|
97
|
-
node: UiNode;
|
|
98
|
-
} & Omit<ComponentPropsWithoutRef<"button">, "children">;
|
|
99
|
-
|
|
100
|
-
// @public (undocumented)
|
|
101
|
-
export type HeadlessCurrentIdentifierProps = {
|
|
102
|
-
attributes: UiNodeInputAttributes;
|
|
103
|
-
node: UiNode;
|
|
104
|
-
onClick?: () => void;
|
|
105
|
-
href?: string;
|
|
106
|
-
} & Omit<ComponentPropsWithoutRef<"button">, "children" | "onClick">;
|
|
107
|
-
|
|
108
|
-
// @public (undocumented)
|
|
109
|
-
export type HeadlessFormProps = ComponentPropsWithoutRef<"form"> & {
|
|
110
|
-
onSubmit: FormEventHandler<HTMLFormElement>;
|
|
111
|
-
};
|
|
112
|
-
|
|
113
|
-
// @public (undocumented)
|
|
114
|
-
export type HeadlessGroupContainerProps = PropsWithChildren;
|
|
115
|
-
|
|
116
|
-
// @public (undocumented)
|
|
117
|
-
export type HeadlessGroupProps = PropsWithChildren<{
|
|
118
|
-
groups: UiNodeGroupEnum[];
|
|
119
|
-
}>;
|
|
120
|
-
|
|
121
|
-
// @public (undocumented)
|
|
122
|
-
export type HeadlessImageProps = {
|
|
123
|
-
attributes: UiNodeImageAttributes;
|
|
124
|
-
node: UiNode;
|
|
125
|
-
};
|
|
126
|
-
|
|
127
|
-
// @public (undocumented)
|
|
128
|
-
export type HeadlessInputProps = {
|
|
129
|
-
attributes: UiNodeInputAttributes;
|
|
130
|
-
node: UiNode;
|
|
131
|
-
onClick?: MouseEventHandler;
|
|
132
|
-
};
|
|
133
|
-
|
|
134
|
-
// @public (undocumented)
|
|
135
|
-
export type HeadlessLabelProps = {
|
|
136
|
-
attributes: UiNodeInputAttributes;
|
|
137
|
-
node: UiNode;
|
|
138
|
-
} & ComponentPropsWithoutRef<"label">;
|
|
139
|
-
|
|
140
|
-
// @public (undocumented)
|
|
141
|
-
export type HeadlessLinkButtonProps = {
|
|
142
|
-
attributes: UiNodeAnchorAttributes;
|
|
143
|
-
node: UiNode;
|
|
144
|
-
} & Omit<ComponentPropsWithoutRef<"a">, "children">;
|
|
145
|
-
|
|
146
|
-
// @public (undocumented)
|
|
147
|
-
export function HeadlessMessage({ message }: HeadlessMessageProps): react_jsx_runtime.JSX.Element;
|
|
148
|
-
|
|
149
|
-
// @public (undocumented)
|
|
150
|
-
export type HeadlessMessageProps = {
|
|
151
|
-
message: UiText;
|
|
152
|
-
};
|
|
153
|
-
|
|
154
|
-
// @public (undocumented)
|
|
155
|
-
export type HeadlessMessagesProps = DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>;
|
|
156
|
-
|
|
157
|
-
// @public (undocumented)
|
|
158
|
-
export type HeadlessSocialButtonContainerProps = PropsWithChildren<{
|
|
159
|
-
nodes: UiNode[];
|
|
160
|
-
}>;
|
|
161
|
-
|
|
162
|
-
// @public (undocumented)
|
|
163
|
-
export type HeadlessSocialButtonProps = PropsWithChildren<{
|
|
164
|
-
node: UiNode;
|
|
165
|
-
attributes: UiNodeInputAttributes;
|
|
166
|
-
onClick?: () => void;
|
|
167
|
-
}>;
|
|
168
|
-
|
|
169
|
-
// @public (undocumented)
|
|
170
|
-
export type HeadlessSocialButtonsProps = PropsWithChildren<{
|
|
171
|
-
hideDivider?: boolean;
|
|
172
|
-
}>;
|
|
173
|
-
|
|
174
|
-
// @public (undocumented)
|
|
175
|
-
export type HeadlessTextProps = {
|
|
176
|
-
attributes: UiNodeTextAttributes;
|
|
177
|
-
node: UiNode;
|
|
178
|
-
};
|
|
179
|
-
|
|
180
|
-
// @public (undocumented)
|
|
181
|
-
export type HorizontalDividerProps = Record<string, never>;
|
|
182
|
-
|
|
183
|
-
// @public (undocumented)
|
|
184
|
-
export const IntlProvider: <T extends CustomTranslations | SupportedTranslations = SupportedTranslations>({ children, ...props }: PropsWithChildren<IntlProviderProps<T>>) => string | number | boolean | Iterable<react.ReactNode> | react_jsx_runtime.JSX.Element | null | undefined;
|
|
185
|
-
|
|
186
|
-
// @public (undocumented)
|
|
187
|
-
export type IntlProviderProps<Type> = Type extends CustomTranslations ? CustomTranslations : SupportedTranslations;
|
|
188
|
-
|
|
189
|
-
// @public (undocumented)
|
|
190
|
-
export const isCustomTranslations: (o: unknown) => o is CustomTranslations;
|
|
191
|
-
|
|
192
|
-
// @public (undocumented)
|
|
193
|
-
export const LanguageCodes: readonly ["ab", "aa", "af", "sq", "am", "ar", "hy", "as", "ay", "az", "ba", "eu", "bn", "dz", "bh", "bi", "br", "bg", "my", "be", "km", "ca", "zh", "co", "hr", "cs", "da", "nl", "en", "eo", "et", "fo", "fj", "fi", "fr", "fy", "gd", "gl", "ka", "de", "el", "kl", "gn", "gu", "ha", "iw", "hi", "hu", "is", "in", "ia", "ie", "ik", "ga", "it", "ja", "jw", "kn", "ks", "kk", "rw", "ky", "rn", "ko", "ku", "lo", "la", "lv", "ln", "lt", "mk", "mg", "ms", "ml", "mt", "mi", "mr", "mo", "mn", "na", "ne", "no", "oc", "or", "om", "ps", "fa", "pl", "pt", "pa", "qu", "rm", "ro", "ru", "sm", "sg", "sa", "sr", "sh", "st", "tn", "sn", "sd", "si", "ss", "sk", "sl", "so", "es", "su", "sw", "sv", "tl", "tg", "ta", "tt", "te", "th", "bo", "ti", "to", "ts", "tr", "tk", "tw", "uk", "ur", "uz", "vi", "vo", "cy", "wo", "xh", "ji", "yo", "zu"];
|
|
194
|
-
|
|
195
|
-
// @public (undocumented)
|
|
196
|
-
export type Locale = keyof typeof OryLocales;
|
|
197
|
-
|
|
198
|
-
// @public (undocumented)
|
|
199
|
-
export type LoginFlowContainer = BaseFlow<FlowType.Login, LoginFlow>;
|
|
200
|
-
|
|
201
|
-
// @public (undocumented)
|
|
202
|
-
export function messageTestId(message: UiText): {
|
|
203
|
-
"data-testid": string;
|
|
204
|
-
};
|
|
205
|
-
|
|
206
|
-
// @public (undocumented)
|
|
207
|
-
export type OnSubmitHandlerProps<T extends UpdateLoginFlowBody | UpdateRegistrationFlowBody | UpdateVerificationFlowBody | UpdateRecoveryFlowBody | UpdateSettingsFlowBody> = {
|
|
208
|
-
setFlowContainer: (flowContainer: FlowContainer) => void;
|
|
209
|
-
body: T;
|
|
210
|
-
onRedirect: OnRedirectHandler;
|
|
211
|
-
};
|
|
212
|
-
|
|
213
|
-
// @public
|
|
214
|
-
export function onSubmitLogin({ config, flow }: FlowContainer, { setFlowContainer, body, onRedirect, }: OnSubmitHandlerProps<UpdateLoginFlowBody>): Promise<void>;
|
|
215
|
-
|
|
216
|
-
// @public
|
|
217
|
-
export function onSubmitRecovery({ config, flow }: FlowContainer, { setFlowContainer, body, onRedirect, }: OnSubmitHandlerProps<UpdateRecoveryFlowBody>): Promise<void>;
|
|
218
|
-
|
|
219
|
-
// @public
|
|
220
|
-
export function onSubmitRegistration({ config, flow }: FlowContainer, { setFlowContainer, body, onRedirect, }: OnSubmitHandlerProps<UpdateRegistrationFlowBody>): Promise<void>;
|
|
221
|
-
|
|
222
|
-
// @public
|
|
223
|
-
export function onSubmitSettings({ config, flow }: FlowContainer, { setFlowContainer, body, onRedirect, }: OnSubmitHandlerProps<UpdateSettingsFlowBody>): Promise<void>;
|
|
224
|
-
|
|
225
|
-
// @public
|
|
226
|
-
export function onSubmitVerification({ config, flow }: FlowContainer, { setFlowContainer, body, onRedirect, }: OnSubmitHandlerProps<UpdateVerificationFlowBody>): Promise<void>;
|
|
227
|
-
|
|
228
|
-
// @public (undocumented)
|
|
229
|
-
export function OryCard({ children }: OryCardProps): react_jsx_runtime.JSX.Element;
|
|
230
|
-
|
|
231
|
-
// @public
|
|
232
|
-
export type OryCardComponents = {
|
|
233
|
-
Card: ComponentType<OryCardProps>;
|
|
234
|
-
CardFooter: ComponentType<OryCardFooterProps>;
|
|
235
|
-
CardHeader: ComponentType<OryCardProps>;
|
|
236
|
-
CardContent: ComponentType<OryCardContentProps>;
|
|
237
|
-
CardLogo: ComponentType;
|
|
238
|
-
};
|
|
239
|
-
|
|
240
|
-
// @public (undocumented)
|
|
241
|
-
export function OryCardContent({ children }: OryCardContentProps): react_jsx_runtime.JSX.Element;
|
|
242
|
-
|
|
243
|
-
// @public (undocumented)
|
|
244
|
-
export type OryCardContentProps = PropsWithChildren;
|
|
245
|
-
|
|
246
|
-
// @public (undocumented)
|
|
247
|
-
export function OryCardFooter(): react_jsx_runtime.JSX.Element;
|
|
248
|
-
|
|
249
|
-
// @public (undocumented)
|
|
250
|
-
export type OryCardFooterProps = Record<string, never>;
|
|
251
|
-
|
|
252
|
-
// @public (undocumented)
|
|
253
|
-
export function OryCardHeader(): react_jsx_runtime.JSX.Element;
|
|
254
|
-
|
|
255
|
-
// @public (undocumented)
|
|
256
|
-
export type OryCardHeaderProps = Record<string, never>;
|
|
257
|
-
|
|
258
|
-
// @public (undocumented)
|
|
259
|
-
export type OryCardProps = PropsWithChildren;
|
|
260
|
-
|
|
261
|
-
// @public (undocumented)
|
|
262
|
-
export function OryCardValidationMessages({ ...props }: HeadlessMessagesProps): react_jsx_runtime.JSX.Element | null;
|
|
263
|
-
|
|
264
|
-
// @public (undocumented)
|
|
265
|
-
export type OryClientConfiguration = {
|
|
266
|
-
name: string;
|
|
267
|
-
logoUrl?: string;
|
|
268
|
-
stylesheet?: string;
|
|
269
|
-
favicon?: string;
|
|
270
|
-
sdk: {
|
|
271
|
-
url: string;
|
|
272
|
-
options?: Partial<ConfigurationParameters>;
|
|
273
|
-
};
|
|
274
|
-
project: {
|
|
275
|
-
registration_enabled: boolean;
|
|
276
|
-
verification_enabled: boolean;
|
|
277
|
-
recovery_enabled: boolean;
|
|
278
|
-
recovery_ui_url: string;
|
|
279
|
-
registration_ui_url: string;
|
|
280
|
-
verification_ui_url: string;
|
|
281
|
-
login_ui_url: string;
|
|
282
|
-
};
|
|
283
|
-
};
|
|
284
|
-
|
|
285
|
-
// Warning: (ae-forgotten-export) The symbol "ComponentProviderProps" needs to be exported by the entry point index.d.ts
|
|
286
|
-
//
|
|
287
|
-
// @public (undocumented)
|
|
288
|
-
export function OryComponentProvider({ children, components, nodeSorter, }: PropsWithChildren<ComponentProviderProps>): react_jsx_runtime.JSX.Element;
|
|
289
|
-
|
|
290
|
-
// @public (undocumented)
|
|
291
|
-
export type OryFlowComponents = OryFormComponents & OryCardComponents;
|
|
292
|
-
|
|
293
|
-
// @public (undocumented)
|
|
294
|
-
export function OryFlowProvider({ children, ...container }: OryFlowProviderProps): react_jsx_runtime.JSX.Element;
|
|
295
|
-
|
|
296
|
-
// @public (undocumented)
|
|
297
|
-
export type OryFlowProviderProps = PropsWithChildren<FlowContainer>;
|
|
298
|
-
|
|
299
|
-
// @public (undocumented)
|
|
300
|
-
export function OryForm({ children }: OryFormProps): string | react_jsx_runtime.JSX.Element;
|
|
301
|
-
|
|
302
|
-
// @public (undocumented)
|
|
303
|
-
export type OryFormComponents = {
|
|
304
|
-
Button: ComponentType<HeadlessButtonProps>;
|
|
305
|
-
LinkButton: ComponentType<HeadlessLinkButtonProps>;
|
|
306
|
-
Input: ComponentType<HeadlessInputProps>;
|
|
307
|
-
PinCodeInput: ComponentType<HeadlessInputProps>;
|
|
308
|
-
Image: ComponentType<HeadlessImageProps>;
|
|
309
|
-
Label: ComponentType<HeadlessLabelProps>;
|
|
310
|
-
Checkbox: ComponentType<HeadlessInputProps>;
|
|
311
|
-
Text: ComponentType<HeadlessTextProps>;
|
|
312
|
-
FormContainer: ComponentType<HeadlessFormProps>;
|
|
313
|
-
SocialButton: ComponentType<HeadlessSocialButtonProps>;
|
|
314
|
-
SocialButtonContainer: ComponentType<HeadlessSocialButtonContainerProps>;
|
|
315
|
-
AuthMethodListItem: ComponentType<HeadlessAuthMethodListItemProps>;
|
|
316
|
-
HorizontalDivider: ComponentType<HorizontalDividerProps>;
|
|
317
|
-
FormGroup: ComponentType<HeadlessGroupContainerProps>;
|
|
318
|
-
MessageContainer: ComponentType<HeadlessMessagesProps>;
|
|
319
|
-
Message: ComponentType<HeadlessMessageProps>;
|
|
320
|
-
CurrentIdentifierButton: ComponentType<HeadlessCurrentIdentifierProps>;
|
|
321
|
-
};
|
|
322
|
-
|
|
323
|
-
// @public (undocumented)
|
|
324
|
-
export function OryFormGroupDivider(): react_jsx_runtime.JSX.Element | null;
|
|
325
|
-
|
|
326
|
-
// @public (undocumented)
|
|
327
|
-
export function OryFormGroups({ children, groups }: HeadlessGroupProps): react_jsx_runtime.JSX.Element;
|
|
328
|
-
|
|
329
|
-
// @public (undocumented)
|
|
330
|
-
export type OryFormProps = PropsWithChildren;
|
|
331
|
-
|
|
332
|
-
// @public (undocumented)
|
|
333
|
-
export function OryFormSocialButtons({ children, hideDivider, }: HeadlessSocialButtonsProps): react_jsx_runtime.JSX.Element | null;
|
|
334
|
-
|
|
335
|
-
// @public (undocumented)
|
|
336
|
-
export function OryFormSocialButtonsForm(): react_jsx_runtime.JSX.Element | null;
|
|
337
|
-
|
|
338
|
-
// @public (undocumented)
|
|
339
|
-
export namespace OryLocales {
|
|
340
|
-
{ locales_de as de, locales_en as en, locales_es as es, locales_fr as fr, locales_nl as nl, locales_pl as pl, locales_pt as pt, locales_sv as sv };
|
|
341
|
-
}
|
|
342
|
-
|
|
343
|
-
// @public (undocumented)
|
|
344
|
-
export function OryProvider<T extends SupportedTranslations>({ children, components: Components, ...props }: ProviderProps<T>): react_jsx_runtime.JSX.Element;
|
|
345
|
-
|
|
346
|
-
// @public (undocumented)
|
|
347
|
-
export function OryTwoStepCard(): react_jsx_runtime.JSX.Element;
|
|
348
|
-
|
|
349
|
-
// @public (undocumented)
|
|
350
|
-
export type ProviderProps<T> = {
|
|
351
|
-
components: OryFlowComponents;
|
|
352
|
-
} & IntlProviderProps<T> & FlowContainer & ComponentPropsWithoutRef<"div"> & PropsWithChildren;
|
|
353
|
-
|
|
354
|
-
// @public (undocumented)
|
|
355
|
-
export type RecoveryFlowContainer = BaseFlow<FlowType.Recovery, RecoveryFlow>;
|
|
356
|
-
|
|
357
|
-
// @public (undocumented)
|
|
358
|
-
export type RegistrationFlowContainer = BaseFlow<FlowType.Registration, RegistrationFlow>;
|
|
359
|
-
|
|
360
|
-
// @public (undocumented)
|
|
361
|
-
export type SettingsFlowContainer = BaseFlow<FlowType.Settings, SettingsFlow>;
|
|
362
|
-
|
|
363
|
-
// @public (undocumented)
|
|
364
|
-
export type SupportedTranslations = {
|
|
365
|
-
locale?: Locale;
|
|
366
|
-
defaultLocale?: string;
|
|
367
|
-
};
|
|
368
|
-
|
|
369
|
-
// @public (undocumented)
|
|
370
|
-
export type TranslationFile = {
|
|
371
|
-
[K in keyof typeof en]: string;
|
|
372
|
-
};
|
|
373
|
-
|
|
374
|
-
// @public
|
|
375
|
-
export const uiTextToFormattedMessage: ({ id, context, text }: Omit<UiText, "type">, intl: IntlShape) => string;
|
|
376
|
-
|
|
377
|
-
// @public (undocumented)
|
|
378
|
-
export function useComponents(): OryFlowComponents;
|
|
379
|
-
|
|
380
|
-
// @public (undocumented)
|
|
381
|
-
export function useNodeSorter(): (a: UiNode, b: UiNode, ctx: {
|
|
382
|
-
flowType: string;
|
|
383
|
-
}) => number;
|
|
384
|
-
|
|
385
|
-
// @public
|
|
386
|
-
export function useOryFlow(): FlowContextValue;
|
|
387
|
-
|
|
388
|
-
// @public (undocumented)
|
|
389
|
-
export type VerificationFlowContainer = BaseFlow<FlowType.Verification, VerificationFlow>;
|
|
390
|
-
|
|
391
|
-
// (No @packageDocumentation comment for this package)
|
|
392
|
-
|
|
393
|
-
```
|
|
@@ -1,130 +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 { ComponentPropsWithoutRef } from 'react';
|
|
8
|
-
import { ComponentType } from 'react';
|
|
9
|
-
import { ConfigurationParameters } from '@ory/client-fetch';
|
|
10
|
-
import { DetailedHTMLProps } from 'react';
|
|
11
|
-
import { FlowError } from '@ory/client-fetch';
|
|
12
|
-
import { FormEventHandler } from 'react';
|
|
13
|
-
import { HTMLAttributes } from 'react';
|
|
14
|
-
import { LoginFlow } from '@ory/client-fetch';
|
|
15
|
-
import { MouseEventHandler } from 'react';
|
|
16
|
-
import { PropsWithChildren } from 'react';
|
|
17
|
-
import * as react from 'react';
|
|
18
|
-
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
19
|
-
import { RecoveryFlow } from '@ory/client-fetch';
|
|
20
|
-
import { RegistrationFlow } from '@ory/client-fetch';
|
|
21
|
-
import { SettingsFlow } from '@ory/client-fetch';
|
|
22
|
-
import { UiNode } from '@ory/client-fetch';
|
|
23
|
-
import { UiNodeAnchorAttributes } from '@ory/client-fetch';
|
|
24
|
-
import { UiNodeImageAttributes } from '@ory/client-fetch';
|
|
25
|
-
import { UiNodeInputAttributes } from '@ory/client-fetch';
|
|
26
|
-
import { UiNodeTextAttributes } from '@ory/client-fetch';
|
|
27
|
-
import { UiText } from '@ory/client-fetch';
|
|
28
|
-
import { VerificationFlow } from '@ory/client-fetch';
|
|
29
|
-
|
|
30
|
-
// Warning: (ae-forgotten-export) The symbol "OryCardRootProps" needs to be exported by the entry point index.d.ts
|
|
31
|
-
//
|
|
32
|
-
// @public (undocumented)
|
|
33
|
-
export function DefaultCard({ children }: OryCardRootProps): react_jsx_runtime.JSX.Element;
|
|
34
|
-
|
|
35
|
-
// Warning: (ae-forgotten-export) The symbol "OryCardContentProps" needs to be exported by the entry point index.d.ts
|
|
36
|
-
//
|
|
37
|
-
// @public (undocumented)
|
|
38
|
-
export function DefaultCardContent({ children }: OryCardContentProps): react.ReactNode;
|
|
39
|
-
|
|
40
|
-
// @public (undocumented)
|
|
41
|
-
export function DefaultCardFooter(): react_jsx_runtime.JSX.Element | null;
|
|
42
|
-
|
|
43
|
-
// @public (undocumented)
|
|
44
|
-
export function DefaultCardHeader(): react_jsx_runtime.JSX.Element;
|
|
45
|
-
|
|
46
|
-
// @public (undocumented)
|
|
47
|
-
export function DefaultCardLogo(): react_jsx_runtime.JSX.Element;
|
|
48
|
-
|
|
49
|
-
// Warning: (ae-forgotten-export) The symbol "OryFormRootProps" needs to be exported by the entry point index.d.ts
|
|
50
|
-
//
|
|
51
|
-
// @public (undocumented)
|
|
52
|
-
export function DefaultFormContainer({ children, onSubmit, action, method, }: PropsWithChildren<OryFormRootProps>): react_jsx_runtime.JSX.Element;
|
|
53
|
-
|
|
54
|
-
// Warning: (ae-forgotten-export) The symbol "OryMessageContentProps" needs to be exported by the entry point index.d.ts
|
|
55
|
-
//
|
|
56
|
-
// @public (undocumented)
|
|
57
|
-
export function DefaultMessage({ message }: OryMessageContentProps): react_jsx_runtime.JSX.Element;
|
|
58
|
-
|
|
59
|
-
// @public (undocumented)
|
|
60
|
-
export function DefaultMessageContainer({ children }: PropsWithChildren): react_jsx_runtime.JSX.Element | null;
|
|
61
|
-
|
|
62
|
-
// @public (undocumented)
|
|
63
|
-
function Error_2({ error, children, }: PropsWithChildren<ErrorFlowContextProps>): react_jsx_runtime.JSX.Element;
|
|
64
|
-
export { Error_2 as Error }
|
|
65
|
-
|
|
66
|
-
// @public (undocumented)
|
|
67
|
-
export type ErrorFlowContextProps = {
|
|
68
|
-
error: FlowError;
|
|
69
|
-
components?: OryFlowComponentOverrides;
|
|
70
|
-
config: OryClientConfiguration;
|
|
71
|
-
};
|
|
72
|
-
|
|
73
|
-
// @public (undocumented)
|
|
74
|
-
export function Login({ flow, config, children, components: flowOverrideComponents, }: PropsWithChildren<LoginFlowContextProps>): react_jsx_runtime.JSX.Element;
|
|
75
|
-
|
|
76
|
-
// @public (undocumented)
|
|
77
|
-
export type LoginFlowContextProps = {
|
|
78
|
-
flow: LoginFlow;
|
|
79
|
-
components?: OryFlowComponentOverrides;
|
|
80
|
-
config: OryClientConfiguration;
|
|
81
|
-
};
|
|
82
|
-
|
|
83
|
-
// Warning: (ae-forgotten-export) The symbol "OryFlowComponents" needs to be exported by the entry point index.d.ts
|
|
84
|
-
//
|
|
85
|
-
// @public (undocumented)
|
|
86
|
-
export const OryDefaultComponents: OryFlowComponents;
|
|
87
|
-
|
|
88
|
-
// @public (undocumented)
|
|
89
|
-
export function Recovery({ flow, config, children, components: flowOverrideComponents, }: PropsWithChildren<RecoveryFlowContextProps>): react_jsx_runtime.JSX.Element;
|
|
90
|
-
|
|
91
|
-
// @public (undocumented)
|
|
92
|
-
export type RecoveryFlowContextProps = {
|
|
93
|
-
flow: RecoveryFlow;
|
|
94
|
-
components?: OryFlowComponentOverrides;
|
|
95
|
-
config: OryClientConfiguration;
|
|
96
|
-
};
|
|
97
|
-
|
|
98
|
-
// Warning: (ae-forgotten-export) The symbol "RegistrationFlowContextProps" needs to be exported by the entry point index.d.ts
|
|
99
|
-
//
|
|
100
|
-
// @public (undocumented)
|
|
101
|
-
export function Registration({ flow, children, components: flowOverrideComponents, config, }: PropsWithChildren<RegistrationFlowContextProps>): react_jsx_runtime.JSX.Element;
|
|
102
|
-
|
|
103
|
-
// @public (undocumented)
|
|
104
|
-
export function Settings({ flow, config, children, components: flowOverrideComponents, }: PropsWithChildren<SettingsFlowContextProps>): react_jsx_runtime.JSX.Element;
|
|
105
|
-
|
|
106
|
-
// @public (undocumented)
|
|
107
|
-
export type SettingsFlowContextProps = {
|
|
108
|
-
flow: SettingsFlow;
|
|
109
|
-
components?: OryFlowComponentOverrides;
|
|
110
|
-
config: OryClientConfiguration;
|
|
111
|
-
};
|
|
112
|
-
|
|
113
|
-
// @public (undocumented)
|
|
114
|
-
export function Verification({ flow, config, children, components: flowOverrideComponents, }: PropsWithChildren<VerificationFlowContextProps>): react_jsx_runtime.JSX.Element;
|
|
115
|
-
|
|
116
|
-
// @public (undocumented)
|
|
117
|
-
export type VerificationFlowContextProps = {
|
|
118
|
-
flow: VerificationFlow;
|
|
119
|
-
components?: OryFlowComponentOverrides;
|
|
120
|
-
config: OryClientConfiguration;
|
|
121
|
-
};
|
|
122
|
-
|
|
123
|
-
// Warnings were encountered during analysis:
|
|
124
|
-
//
|
|
125
|
-
// dist/theme/default/index.d.ts:25:5 - (ae-forgotten-export) The symbol "OryFlowComponentOverrides" needs to be exported by the entry point index.d.ts
|
|
126
|
-
// dist/theme/default/index.d.ts:26:5 - (ae-forgotten-export) The symbol "OryClientConfiguration" needs to be exported by the entry point index.d.ts
|
|
127
|
-
|
|
128
|
-
// (No @packageDocumentation comment for this package)
|
|
129
|
-
|
|
130
|
-
```
|