@ory/elements-react 1.0.0-next.10 → 1.0.0-next.11

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.
@@ -18,10 +18,10 @@ import { LoginFlow } from '@ory/client-fetch';
18
18
  import { MouseEventHandler } from 'react';
19
19
  import { OnRedirectHandler } from '@ory/client-fetch';
20
20
  import { PropsWithChildren } from 'react';
21
- import * as react from 'react';
22
21
  import * as react_jsx_runtime from 'react/jsx-runtime';
23
22
  import { RecoveryFlow } from '@ory/client-fetch';
24
23
  import { RegistrationFlow } from '@ory/client-fetch';
24
+ import { Session } from '@ory/client-fetch';
25
25
  import { SettingsFlow } from '@ory/client-fetch';
26
26
  import { UiNode } from '@ory/client-fetch';
27
27
  import { UiNodeAnchorAttributes } from '@ory/client-fetch';
@@ -37,211 +37,59 @@ import { UpdateSettingsFlowBody } from '@ory/client-fetch';
37
37
  import { UpdateVerificationFlowBody } from '@ory/client-fetch';
38
38
  import { VerificationFlow } from '@ory/client-fetch';
39
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
40
+ // Warning: (ae-forgotten-export) The symbol "OryFlow" needs to be exported by the entry point index.d.ts
53
41
  //
54
- // @public (undocumented)
55
- export type ErrorFlowContainer = BaseFlow<FlowType.Error, FlowError>;
56
-
57
- // @public (undocumented)
58
- export type FlowContainer = LoginFlowContainer | RegistrationFlowContainer | RecoveryFlowContainer | VerificationFlowContainer | SettingsFlowContainer;
42
+ // @public
43
+ export type ErrorFlowContainer = OryFlow<FlowType.Error, FlowError>;
59
44
 
60
- // @public (undocumented)
61
- export type FlowContainerSetter = Dispatch<Partial<FlowContainer>>;
45
+ // @public
46
+ export type FlowContainerSetter = Dispatch<Partial<OryFlowContainer>>;
62
47
 
63
- // @public (undocumented)
64
- export type FlowContextValue = FlowContainer & {
48
+ // @public
49
+ export type FlowContextValue = OryFlowContainer & {
65
50
  setFlowContainer: FlowContainerSetter;
66
51
  };
67
52
 
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)
53
+ // @public
86
54
  export type FormValues = Record<string, string | boolean | number | undefined>;
87
55
 
56
+ // Warning: (ae-forgotten-export) The symbol "IntlContextProps" needs to be exported by the entry point index.d.ts
57
+ //
88
58
  // @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;
59
+ export type IntlConfig = IntlContextProps;
197
60
 
198
- // @public (undocumented)
199
- export type LoginFlowContainer = BaseFlow<FlowType.Login, LoginFlow>;
61
+ // @public
62
+ export type LoginFlowContainer = OryFlow<FlowType.Login, LoginFlow>;
200
63
 
201
- // @public (undocumented)
64
+ // @public
202
65
  export function messageTestId(message: UiText): {
203
66
  "data-testid": string;
204
67
  };
205
68
 
206
- // @public (undocumented)
69
+ // @public
207
70
  export type OnSubmitHandlerProps<T extends UpdateLoginFlowBody | UpdateRegistrationFlowBody | UpdateVerificationFlowBody | UpdateRecoveryFlowBody | UpdateSettingsFlowBody> = {
208
- setFlowContainer: (flowContainer: FlowContainer) => void;
71
+ setFlowContainer: (flowContainer: OryFlowContainer) => void;
209
72
  body: T;
210
73
  onRedirect: OnRedirectHandler;
211
74
  };
212
75
 
213
76
  // @public
214
- export function onSubmitLogin({ config, flow }: FlowContainer, { setFlowContainer, body, onRedirect, }: OnSubmitHandlerProps<UpdateLoginFlowBody>): Promise<void>;
77
+ export function OryCard({ children }: PropsWithChildren): react_jsx_runtime.JSX.Element;
215
78
 
216
79
  // @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>;
80
+ export type OryCardAuthMethodListItemProps = {
81
+ onClick: () => void;
82
+ group: string;
83
+ };
221
84
 
222
85
  // @public
223
- export function onSubmitSettings({ config, flow }: FlowContainer, { setFlowContainer, body, onRedirect, }: OnSubmitHandlerProps<UpdateSettingsFlowBody>): Promise<void>;
86
+ export function OryCardContent({ children }: OryCardContentProps): react_jsx_runtime.JSX.Element;
224
87
 
225
88
  // @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;
89
+ export type OryCardContentProps = PropsWithChildren;
230
90
 
231
91
  // @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;
92
+ export type OryCardDividerProps = Record<string, never>;
245
93
 
246
94
  // @public (undocumented)
247
95
  export function OryCardFooter(): react_jsx_runtime.JSX.Element;
@@ -255,11 +103,14 @@ export function OryCardHeader(): react_jsx_runtime.JSX.Element;
255
103
  // @public (undocumented)
256
104
  export type OryCardHeaderProps = Record<string, never>;
257
105
 
106
+ // @public (undocumented)
107
+ export type OryCardLogoProps = Record<string, never>;
108
+
258
109
  // @public (undocumented)
259
110
  export type OryCardProps = PropsWithChildren;
260
111
 
261
112
  // @public (undocumented)
262
- export function OryCardValidationMessages({ ...props }: HeadlessMessagesProps): react_jsx_runtime.JSX.Element | null;
113
+ export function OryCardValidationMessages({ ...props }: OryMessageRootProps): react_jsx_runtime.JSX.Element | null;
263
114
 
264
115
  // @public (undocumented)
265
116
  export type OryClientConfiguration = {
@@ -280,97 +131,177 @@ export type OryClientConfiguration = {
280
131
  verification_ui_url: string;
281
132
  login_ui_url: string;
282
133
  };
134
+ intl?: IntlConfig;
283
135
  };
284
136
 
285
- // Warning: (ae-forgotten-export) The symbol "ComponentProviderProps" needs to be exported by the entry point index.d.ts
137
+ // @public (undocumented)
138
+ export type OryCurrentIdentifierProps = {
139
+ attributes: UiNodeInputAttributes;
140
+ node: UiNode;
141
+ onClick?: () => void;
142
+ href?: string;
143
+ } & Omit<ComponentPropsWithoutRef<"button">, "children" | "onClick">;
144
+
145
+ // Warning: (ae-forgotten-export) The symbol "DeepPartialTwoLevels" needs to be exported by the entry point index.d.ts
286
146
  //
287
147
  // @public (undocumented)
288
- export function OryComponentProvider({ children, components, nodeSorter, }: PropsWithChildren<ComponentProviderProps>): react_jsx_runtime.JSX.Element;
148
+ export type OryFlowComponentOverrides = DeepPartialTwoLevels<OryFlowComponents>;
149
+
150
+ // @public
151
+ export type OryFlowComponents = {
152
+ Node: {
153
+ Button: ComponentType<OryNodeButtonProps>;
154
+ OidcButton: ComponentType<OryNodeOidcButtonProps>;
155
+ CurrentIdentifierButton: ComponentType<OryCurrentIdentifierProps>;
156
+ Anchor: ComponentType<OryNodeAnchorProps>;
157
+ Input: ComponentType<OryNodeInputProps>;
158
+ CodeInput: ComponentType<OryNodeInputProps>;
159
+ Image: ComponentType<OryNodeImageProps>;
160
+ Label: ComponentType<OryNodeLabelProps>;
161
+ Checkbox: ComponentType<OryNodeInputProps>;
162
+ Text: ComponentType<OryNodeTextProps>;
163
+ };
164
+ Card: {
165
+ Root: ComponentType<OryCardProps>;
166
+ Footer: ComponentType<OryCardFooterProps>;
167
+ Header: ComponentType<OryCardProps>;
168
+ Content: ComponentType<OryCardContentProps>;
169
+ Logo: ComponentType<OryCardLogoProps>;
170
+ Divider: ComponentType<OryCardDividerProps>;
171
+ AuthMethodListItem: ComponentType<OryCardAuthMethodListItemProps>;
172
+ };
173
+ Form: {
174
+ Root: ComponentType<OryFormRootProps>;
175
+ OidcRoot: ComponentType<OryFormOidcRootProps>;
176
+ Group: ComponentType<OryFormGroupProps>;
177
+ };
178
+ Message: {
179
+ Root: ComponentType<OryMessageRootProps>;
180
+ Content: ComponentType<OryMessageContentProps>;
181
+ };
182
+ };
183
+
184
+ // @public
185
+ export type OryFlowContainer = LoginFlowContainer | RegistrationFlowContainer | RecoveryFlowContainer | VerificationFlowContainer | SettingsFlowContainer;
289
186
 
290
187
  // @public (undocumented)
291
- export type OryFlowComponents = OryFormComponents & OryCardComponents;
188
+ export function OryForm({ children }: OryFormProps): string | react_jsx_runtime.JSX.Element;
189
+
190
+ // @public
191
+ export function OryFormGroupDivider(): react_jsx_runtime.JSX.Element | null;
292
192
 
293
193
  // @public (undocumented)
294
- export function OryFlowProvider({ children, ...container }: OryFlowProviderProps): react_jsx_runtime.JSX.Element;
194
+ export type OryFormGroupProps = PropsWithChildren;
295
195
 
296
196
  // @public (undocumented)
297
- export type OryFlowProviderProps = PropsWithChildren<FlowContainer>;
197
+ export function OryFormGroups({ children, groups }: OryFormGroupsProps): react_jsx_runtime.JSX.Element;
298
198
 
299
199
  // @public (undocumented)
300
- export function OryForm({ children }: OryFormProps): string | react_jsx_runtime.JSX.Element;
200
+ export type OryFormGroupsProps = PropsWithChildren<{
201
+ groups: UiNodeGroupEnum[];
202
+ }>;
301
203
 
302
204
  // @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
- };
205
+ export function OryFormOidcButtons({ children, hideDivider, }: OryFormOidcButtonsProps): react_jsx_runtime.JSX.Element | null;
322
206
 
323
207
  // @public (undocumented)
324
- export function OryFormGroupDivider(): react_jsx_runtime.JSX.Element | null;
208
+ export type OryFormOidcButtonsProps = PropsWithChildren<{
209
+ hideDivider?: boolean;
210
+ }>;
325
211
 
326
212
  // @public (undocumented)
327
- export function OryFormGroups({ children, groups }: HeadlessGroupProps): react_jsx_runtime.JSX.Element;
213
+ export type OryFormOidcRootProps = PropsWithChildren<{
214
+ nodes: UiNode[];
215
+ }>;
328
216
 
329
217
  // @public (undocumented)
330
218
  export type OryFormProps = PropsWithChildren;
331
219
 
332
220
  // @public (undocumented)
333
- export function OryFormSocialButtons({ children, hideDivider, }: HeadlessSocialButtonsProps): react_jsx_runtime.JSX.Element | null;
221
+ export type OryFormRootProps = ComponentPropsWithoutRef<"form"> & {
222
+ onSubmit: FormEventHandler<HTMLFormElement>;
223
+ };
334
224
 
335
225
  // @public (undocumented)
336
226
  export function OryFormSocialButtonsForm(): react_jsx_runtime.JSX.Element | null;
337
227
 
228
+ // Warning: (ae-forgotten-export) The symbol "LocaleMap" needs to be exported by the entry point index.d.ts
229
+ //
338
230
  // @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
- }
231
+ export const OryLocales: LocaleMap;
342
232
 
343
233
  // @public (undocumented)
344
- export function OryProvider<T extends SupportedTranslations>({ children, components: Components, ...props }: ProviderProps<T>): react_jsx_runtime.JSX.Element;
234
+ export type OryMessageContentProps = {
235
+ message: UiText;
236
+ };
345
237
 
346
238
  // @public (undocumented)
347
- export function OryTwoStepCard(): react_jsx_runtime.JSX.Element;
239
+ export type OryMessageRootProps = DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>;
348
240
 
349
241
  // @public (undocumented)
350
- export type ProviderProps<T> = {
351
- components: OryFlowComponents;
352
- } & IntlProviderProps<T> & FlowContainer & ComponentPropsWithoutRef<"div"> & PropsWithChildren;
242
+ export type OryNodeAnchorProps = {
243
+ attributes: UiNodeAnchorAttributes;
244
+ node: UiNode;
245
+ } & Omit<ComponentPropsWithoutRef<"a">, "children">;
353
246
 
354
247
  // @public (undocumented)
355
- export type RecoveryFlowContainer = BaseFlow<FlowType.Recovery, RecoveryFlow>;
248
+ export type OryNodeButtonProps = {
249
+ attributes: UiNodeInputAttributes;
250
+ node: UiNode;
251
+ } & Omit<ComponentPropsWithoutRef<"button">, "children">;
356
252
 
357
253
  // @public (undocumented)
358
- export type RegistrationFlowContainer = BaseFlow<FlowType.Registration, RegistrationFlow>;
254
+ export type OryNodeImageProps = {
255
+ attributes: UiNodeImageAttributes;
256
+ node: UiNode;
257
+ };
359
258
 
360
259
  // @public (undocumented)
361
- export type SettingsFlowContainer = BaseFlow<FlowType.Settings, SettingsFlow>;
260
+ export type OryNodeInputProps = {
261
+ attributes: UiNodeInputAttributes;
262
+ node: UiNode;
263
+ onClick?: MouseEventHandler;
264
+ };
362
265
 
363
266
  // @public (undocumented)
364
- export type SupportedTranslations = {
365
- locale?: Locale;
366
- defaultLocale?: string;
267
+ export type OryNodeLabelProps = {
268
+ attributes: UiNodeInputAttributes;
269
+ node: UiNode;
270
+ } & ComponentPropsWithoutRef<"label">;
271
+
272
+ // @public (undocumented)
273
+ export type OryNodeOidcButtonProps = {
274
+ node: UiNode;
275
+ attributes: UiNodeInputAttributes;
276
+ onClick?: () => void;
367
277
  };
368
278
 
369
279
  // @public (undocumented)
370
- export type TranslationFile = {
371
- [K in keyof typeof en]: string;
280
+ export type OryNodeTextProps = {
281
+ attributes: UiNodeTextAttributes;
282
+ node: UiNode;
372
283
  };
373
284
 
285
+ // @public (undocumented)
286
+ export function OryProvider({ children, components: Components, ...oryFlowProps }: OryProviderProps): react_jsx_runtime.JSX.Element;
287
+
288
+ // @public (undocumented)
289
+ export type OryProviderProps = {
290
+ components: OryFlowComponents;
291
+ } & OryFlowContainer & PropsWithChildren;
292
+
293
+ // @public (undocumented)
294
+ export function OryTwoStepCard(): react_jsx_runtime.JSX.Element;
295
+
296
+ // @public
297
+ export type RecoveryFlowContainer = OryFlow<FlowType.Recovery, RecoveryFlow>;
298
+
299
+ // @public
300
+ export type RegistrationFlowContainer = OryFlow<FlowType.Registration, RegistrationFlow>;
301
+
302
+ // @public
303
+ export type SettingsFlowContainer = OryFlow<FlowType.Settings, SettingsFlow>;
304
+
374
305
  // @public
375
306
  export const uiTextToFormattedMessage: ({ id, context, text }: Omit<UiText, "type">, intl: IntlShape) => string;
376
307
 
@@ -385,8 +316,15 @@ export function useNodeSorter(): (a: UiNode, b: UiNode, ctx: {
385
316
  // @public
386
317
  export function useOryFlow(): FlowContextValue;
387
318
 
388
- // @public (undocumented)
389
- export type VerificationFlowContainer = BaseFlow<FlowType.Verification, VerificationFlow>;
319
+ // @public
320
+ export const useSession: () => {
321
+ session: Session | undefined;
322
+ error: string | undefined;
323
+ isLoading: boolean;
324
+ };
325
+
326
+ // @public
327
+ export type VerificationFlowContainer = OryFlow<FlowType.Verification, VerificationFlow>;
390
328
 
391
329
  // (No @packageDocumentation comment for this package)
392
330
 
@@ -21,6 +21,7 @@ import { PropsWithChildren } from 'react';
21
21
  import * as react_jsx_runtime from 'react/jsx-runtime';
22
22
  import { RecoveryFlow } from '@ory/client-fetch';
23
23
  import { RegistrationFlow } from '@ory/client-fetch';
24
+ import { Session } from '@ory/client-fetch';
24
25
  import { SettingsFlow } from '@ory/client-fetch';
25
26
  import { UiNode } from '@ory/client-fetch';
26
27
  import { UiNodeAnchorAttributes } from '@ory/client-fetch';
@@ -52,8 +53,10 @@ export type FlowContextValue = OryFlowContainer & {
52
53
  // @public
53
54
  export type FormValues = Record<string, string | boolean | number | undefined>;
54
55
 
56
+ // Warning: (ae-forgotten-export) The symbol "IntlContextProps" needs to be exported by the entry point index.d.ts
57
+ //
55
58
  // @public (undocumented)
56
- export type Locale = keyof typeof OryLocales;
59
+ export type IntlConfig = IntlContextProps;
57
60
 
58
61
  // @public
59
62
  export type LoginFlowContainer = OryFlow<FlowType.Login, LoginFlow>;
@@ -128,6 +131,7 @@ export type OryClientConfiguration = {
128
131
  verification_ui_url: string;
129
132
  login_ui_url: string;
130
133
  };
134
+ intl?: IntlConfig;
131
135
  };
132
136
 
133
137
  // @public (undocumented)
@@ -221,15 +225,10 @@ export type OryFormRootProps = ComponentPropsWithoutRef<"form"> & {
221
225
  // @public (undocumented)
222
226
  export function OryFormSocialButtonsForm(): react_jsx_runtime.JSX.Element | null;
223
227
 
224
- // Warning: (ae-forgotten-export) The symbol "CustomTranslations" needs to be exported by the entry point index.d.ts
228
+ // Warning: (ae-forgotten-export) The symbol "LocaleMap" needs to be exported by the entry point index.d.ts
225
229
  //
226
230
  // @public (undocumented)
227
- export type OryIntlProviderProps<Translation> = Translation extends CustomTranslations ? CustomTranslations : SupportedTranslations;
228
-
229
- // @public (undocumented)
230
- export namespace OryLocales {
231
- { 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 };
232
- }
231
+ export const OryLocales: LocaleMap;
233
232
 
234
233
  // @public (undocumented)
235
234
  export type OryMessageContentProps = {
@@ -284,12 +283,12 @@ export type OryNodeTextProps = {
284
283
  };
285
284
 
286
285
  // @public (undocumented)
287
- export function OryProvider<Translation extends SupportedTranslations>({ children, components: Components, ...props }: OryProviderProps<Translation>): react_jsx_runtime.JSX.Element;
286
+ export function OryProvider({ children, components: Components, ...oryFlowProps }: OryProviderProps): react_jsx_runtime.JSX.Element;
288
287
 
289
288
  // @public (undocumented)
290
- export type OryProviderProps<T> = {
289
+ export type OryProviderProps = {
291
290
  components: OryFlowComponents;
292
- } & OryIntlProviderProps<T> & OryFlowContainer & PropsWithChildren;
291
+ } & OryFlowContainer & PropsWithChildren;
293
292
 
294
293
  // @public (undocumented)
295
294
  export function OryTwoStepCard(): react_jsx_runtime.JSX.Element;
@@ -303,12 +302,6 @@ export type RegistrationFlowContainer = OryFlow<FlowType.Registration, Registrat
303
302
  // @public
304
303
  export type SettingsFlowContainer = OryFlow<FlowType.Settings, SettingsFlow>;
305
304
 
306
- // @public (undocumented)
307
- export type SupportedTranslations = {
308
- locale?: Locale;
309
- defaultLocale?: string;
310
- };
311
-
312
305
  // @public
313
306
  export const uiTextToFormattedMessage: ({ id, context, text }: Omit<UiText, "type">, intl: IntlShape) => string;
314
307
 
@@ -323,6 +316,13 @@ export function useNodeSorter(): (a: UiNode, b: UiNode, ctx: {
323
316
  // @public
324
317
  export function useOryFlow(): FlowContextValue;
325
318
 
319
+ // @public
320
+ export const useSession: () => {
321
+ session: Session | undefined;
322
+ error: string | undefined;
323
+ isLoading: boolean;
324
+ };
325
+
326
326
  // @public
327
327
  export type VerificationFlowContainer = OryFlow<FlowType.Verification, VerificationFlow>;
328
328