@ory/elements-react 1.0.0-next.30 → 1.0.0-next.32
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 +25 -0
- package/DEVELOPMENT.md +19 -4
- package/babel.config.js +10 -0
- package/dist/index.d.mts +13 -2
- package/dist/index.d.ts +13 -2
- package/dist/index.js +225 -75
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +225 -75
- package/dist/index.mjs.map +1 -1
- package/dist/theme/default/index.css +121 -110
- package/dist/theme/default/index.css.map +1 -1
- package/dist/theme/default/index.js +969 -460
- package/dist/theme/default/index.js.map +1 -1
- package/dist/theme/default/index.mjs +940 -381
- package/dist/theme/default/index.mjs.map +1 -1
- package/package.json +6 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,28 @@
|
|
|
1
|
+
## 1.0.0-next.32 (2025-03-06)
|
|
2
|
+
|
|
3
|
+
### 🚀 Features
|
|
4
|
+
|
|
5
|
+
- use method selector in 2fa login ([#377](https://github.com/ory/elements/pull/377))
|
|
6
|
+
|
|
7
|
+
### ❤️ Thank You
|
|
8
|
+
|
|
9
|
+
- Pierre Caillaud @pcaillaudm
|
|
10
|
+
|
|
11
|
+
## 1.0.0-next.31 (2025-03-06)
|
|
12
|
+
|
|
13
|
+
### 🚀 Features
|
|
14
|
+
|
|
15
|
+
- support captchas natively in new and old elements ([#372](https://github.com/ory/elements/pull/372))
|
|
16
|
+
|
|
17
|
+
### 🩹 Fixes
|
|
18
|
+
|
|
19
|
+
- center text on OIDC buttons and debounce state update ([#366](https://github.com/ory/elements/pull/366))
|
|
20
|
+
|
|
21
|
+
### ❤️ Thank You
|
|
22
|
+
|
|
23
|
+
- hackerman @aeneasr
|
|
24
|
+
- Jonas Hungershausen
|
|
25
|
+
|
|
1
26
|
## 1.0.0-next.30 (2025-03-05)
|
|
2
27
|
|
|
3
28
|
### 🩹 Fixes
|
package/DEVELOPMENT.md
CHANGED
|
@@ -51,13 +51,13 @@ Each flow has its own story in the `packages/elements-react-stories` package. To
|
|
|
51
51
|
run the storybook development environment, execute:
|
|
52
52
|
|
|
53
53
|
```bash
|
|
54
|
-
npx nx storybook elements-react
|
|
54
|
+
npx nx storybook @ory/elements-react
|
|
55
55
|
```
|
|
56
56
|
|
|
57
57
|
You can also build the Storybook using:
|
|
58
58
|
|
|
59
59
|
```bash
|
|
60
|
-
npx nx build elements-react
|
|
60
|
+
npx nx build @ory/elements-react
|
|
61
61
|
```
|
|
62
62
|
|
|
63
63
|
The stories use stub responses
|
|
@@ -66,14 +66,29 @@ The stories use stub responses
|
|
|
66
66
|
|
|
67
67
|
@ory/elements-react and @ory/nextjs is released using nx releases.
|
|
68
68
|
|
|
69
|
-
There is a helper script located in
|
|
69
|
+
There is a helper script located in `./scripts/release.sh`.
|
|
70
70
|
|
|
71
71
|
Usage:
|
|
72
72
|
|
|
73
73
|
```bash
|
|
74
|
-
./scripts/release.sh
|
|
74
|
+
./scripts/release.sh <project> <tag>
|
|
75
|
+
|
|
76
|
+
./scripts/release.sh @ory/elements-react next
|
|
75
77
|
```
|
|
76
78
|
|
|
77
79
|
The script asks the user before executing each steps. Please double check
|
|
78
80
|
CHANGELOG.md and dry run outputs. nx also creates git tags and commits, that
|
|
79
81
|
should be commited. The script will do that automatically.
|
|
82
|
+
|
|
83
|
+
### Pre-releasing unmerged changes
|
|
84
|
+
|
|
85
|
+
You can release a PR's changes to npm to test them in a different repository,
|
|
86
|
+
etc. These versions are released on the `pr` npm tag, and will have the version
|
|
87
|
+
`0.0.0-pr.<git hash>`. These releases wont be pushed to master, but you might
|
|
88
|
+
have to revert the `package.json` and `package-lock.json` files.
|
|
89
|
+
|
|
90
|
+
Usage:
|
|
91
|
+
|
|
92
|
+
```bash
|
|
93
|
+
./scripts/release.sh @ory/elements-react pr
|
|
94
|
+
```
|
package/babel.config.js
ADDED
package/dist/index.d.mts
CHANGED
|
@@ -28,6 +28,9 @@ type OryNodeTextProps = {
|
|
|
28
28
|
node: UiNode;
|
|
29
29
|
};
|
|
30
30
|
type OryCardLogoProps = Record<string, never>;
|
|
31
|
+
type OryNodeCaptchaProps = {
|
|
32
|
+
node: UiNode;
|
|
33
|
+
};
|
|
31
34
|
/**
|
|
32
35
|
* Props for the AuthMethodListItem component. This component is used
|
|
33
36
|
* to render a single auth method in the AuthMethodList component.
|
|
@@ -35,6 +38,10 @@ type OryCardLogoProps = Record<string, never>;
|
|
|
35
38
|
type OryCardAuthMethodListItemProps = {
|
|
36
39
|
onClick: () => void;
|
|
37
40
|
group: string;
|
|
41
|
+
title?: {
|
|
42
|
+
id: string;
|
|
43
|
+
values?: Record<string, string>;
|
|
44
|
+
};
|
|
38
45
|
};
|
|
39
46
|
type OryNodeImageProps = {
|
|
40
47
|
attributes: UiNodeImageAttributes;
|
|
@@ -237,6 +244,10 @@ type OryFlowComponents = {
|
|
|
237
244
|
* The Text component is rendered whenever a "text" node is encountered.
|
|
238
245
|
*/
|
|
239
246
|
Text: ComponentType<OryNodeTextProps>;
|
|
247
|
+
/**
|
|
248
|
+
* The Captcha component is rendered whenever a "captcha" group is encountered.
|
|
249
|
+
*/
|
|
250
|
+
Captcha: ComponentType<OryNodeCaptchaProps>;
|
|
240
251
|
};
|
|
241
252
|
Card: {
|
|
242
253
|
/**
|
|
@@ -353,7 +364,7 @@ type OryFlowComponentOverrides = DeepPartialTwoLevels<OryFlowComponents>;
|
|
|
353
364
|
type OryFormProps = PropsWithChildren<{
|
|
354
365
|
onAfterSubmit?: (method: string | number | boolean | undefined) => void;
|
|
355
366
|
}>;
|
|
356
|
-
declare function OryForm({ children, onAfterSubmit }: OryFormProps):
|
|
367
|
+
declare function OryForm({ children, onAfterSubmit }: OryFormProps): react_jsx_runtime.JSX.Element;
|
|
357
368
|
|
|
358
369
|
declare function useComponents(): OryFlowComponents;
|
|
359
370
|
declare function useNodeSorter(): (a: UiNode, b: UiNode, ctx: {
|
|
@@ -582,4 +593,4 @@ type OryProviderProps = {
|
|
|
582
593
|
} & OryFlowContainer & PropsWithChildren;
|
|
583
594
|
declare function OryProvider({ children, components: Components, ...oryFlowProps }: OryProviderProps): react_jsx_runtime.JSX.Element;
|
|
584
595
|
|
|
585
|
-
export { type ErrorFlowContainer, type FlowContainerSetter, type FlowContextValue, type FormState, type FormStateAction, type FormValues, HeadlessPageHeader, type IntlConfig, type LoginFlowContainer, type OnSubmitHandlerProps, OryCard, type OryCardAuthMethodListItemProps, OryCardContent, type OryCardContentProps, type OryCardDividerProps, OryCardFooter, type OryCardFooterProps, OryCardHeader, type OryCardHeaderProps, type OryCardLogoProps, type OryCardRootProps as OryCardProps, type OryCardSettingsSectionProps, OryCardValidationMessages, type OryClientConfiguration, type OryFlowComponentOverrides, type OryFlowComponents, type OryFlowContainer, OryForm, OryFormGroupDivider, type OryFormGroupProps, OryFormGroups, type OryFormGroupsProps, OryFormOidcButtons, type OryFormOidcRootProps, type OryFormProps, type OryFormRootProps, OryFormSection, type OryFormSectionContentProps, type OryFormSectionFooterProps, type OryFormSectionProps, OryFormSocialButtonsForm, OryLocales, type OryMessageContentProps, type OryMessageRootProps, type OryNodeAnchorProps, type OryNodeButtonProps, type OryNodeImageProps, type OryNodeInputProps, type OryNodeLabelProps, type OryNodeOidcButtonProps, type OryNodeTextProps, type OryPageHeaderProps, OryProvider, type OryProviderProps, OrySettingsCard, type OrySettingsOidcProps, type OrySettingsPasskeyProps, type OrySettingsRecoveryCodesProps, type OrySettingsTotpProps, type OrySettingsWebauthnProps, OryTwoStepCard, type RecoveryFlowContainer, type RegistrationFlowContainer, type SettingsFlowContainer, type VerificationFlowContainer, messageTestId, uiTextToFormattedMessage, useComponents, useNodeSorter, useOryFlow };
|
|
596
|
+
export { type ErrorFlowContainer, type FlowContainerSetter, type FlowContextValue, type FormState, type FormStateAction, type FormValues, HeadlessPageHeader, type IntlConfig, type LoginFlowContainer, type OnSubmitHandlerProps, OryCard, type OryCardAuthMethodListItemProps, OryCardContent, type OryCardContentProps, type OryCardDividerProps, OryCardFooter, type OryCardFooterProps, OryCardHeader, type OryCardHeaderProps, type OryCardLogoProps, type OryCardRootProps as OryCardProps, type OryCardSettingsSectionProps, OryCardValidationMessages, type OryClientConfiguration, type OryFlowComponentOverrides, type OryFlowComponents, type OryFlowContainer, OryForm, OryFormGroupDivider, type OryFormGroupProps, OryFormGroups, type OryFormGroupsProps, OryFormOidcButtons, type OryFormOidcRootProps, type OryFormProps, type OryFormRootProps, OryFormSection, type OryFormSectionContentProps, type OryFormSectionFooterProps, type OryFormSectionProps, OryFormSocialButtonsForm, OryLocales, type OryMessageContentProps, type OryMessageRootProps, type OryNodeAnchorProps, type OryNodeButtonProps, type OryNodeCaptchaProps, type OryNodeImageProps, type OryNodeInputProps, type OryNodeLabelProps, type OryNodeOidcButtonProps, type OryNodeTextProps, type OryPageHeaderProps, OryProvider, type OryProviderProps, OrySettingsCard, type OrySettingsOidcProps, type OrySettingsPasskeyProps, type OrySettingsRecoveryCodesProps, type OrySettingsTotpProps, type OrySettingsWebauthnProps, OryTwoStepCard, type RecoveryFlowContainer, type RegistrationFlowContainer, type SettingsFlowContainer, type VerificationFlowContainer, messageTestId, uiTextToFormattedMessage, useComponents, useNodeSorter, useOryFlow };
|
package/dist/index.d.ts
CHANGED
|
@@ -28,6 +28,9 @@ type OryNodeTextProps = {
|
|
|
28
28
|
node: UiNode;
|
|
29
29
|
};
|
|
30
30
|
type OryCardLogoProps = Record<string, never>;
|
|
31
|
+
type OryNodeCaptchaProps = {
|
|
32
|
+
node: UiNode;
|
|
33
|
+
};
|
|
31
34
|
/**
|
|
32
35
|
* Props for the AuthMethodListItem component. This component is used
|
|
33
36
|
* to render a single auth method in the AuthMethodList component.
|
|
@@ -35,6 +38,10 @@ type OryCardLogoProps = Record<string, never>;
|
|
|
35
38
|
type OryCardAuthMethodListItemProps = {
|
|
36
39
|
onClick: () => void;
|
|
37
40
|
group: string;
|
|
41
|
+
title?: {
|
|
42
|
+
id: string;
|
|
43
|
+
values?: Record<string, string>;
|
|
44
|
+
};
|
|
38
45
|
};
|
|
39
46
|
type OryNodeImageProps = {
|
|
40
47
|
attributes: UiNodeImageAttributes;
|
|
@@ -237,6 +244,10 @@ type OryFlowComponents = {
|
|
|
237
244
|
* The Text component is rendered whenever a "text" node is encountered.
|
|
238
245
|
*/
|
|
239
246
|
Text: ComponentType<OryNodeTextProps>;
|
|
247
|
+
/**
|
|
248
|
+
* The Captcha component is rendered whenever a "captcha" group is encountered.
|
|
249
|
+
*/
|
|
250
|
+
Captcha: ComponentType<OryNodeCaptchaProps>;
|
|
240
251
|
};
|
|
241
252
|
Card: {
|
|
242
253
|
/**
|
|
@@ -353,7 +364,7 @@ type OryFlowComponentOverrides = DeepPartialTwoLevels<OryFlowComponents>;
|
|
|
353
364
|
type OryFormProps = PropsWithChildren<{
|
|
354
365
|
onAfterSubmit?: (method: string | number | boolean | undefined) => void;
|
|
355
366
|
}>;
|
|
356
|
-
declare function OryForm({ children, onAfterSubmit }: OryFormProps):
|
|
367
|
+
declare function OryForm({ children, onAfterSubmit }: OryFormProps): react_jsx_runtime.JSX.Element;
|
|
357
368
|
|
|
358
369
|
declare function useComponents(): OryFlowComponents;
|
|
359
370
|
declare function useNodeSorter(): (a: UiNode, b: UiNode, ctx: {
|
|
@@ -582,4 +593,4 @@ type OryProviderProps = {
|
|
|
582
593
|
} & OryFlowContainer & PropsWithChildren;
|
|
583
594
|
declare function OryProvider({ children, components: Components, ...oryFlowProps }: OryProviderProps): react_jsx_runtime.JSX.Element;
|
|
584
595
|
|
|
585
|
-
export { type ErrorFlowContainer, type FlowContainerSetter, type FlowContextValue, type FormState, type FormStateAction, type FormValues, HeadlessPageHeader, type IntlConfig, type LoginFlowContainer, type OnSubmitHandlerProps, OryCard, type OryCardAuthMethodListItemProps, OryCardContent, type OryCardContentProps, type OryCardDividerProps, OryCardFooter, type OryCardFooterProps, OryCardHeader, type OryCardHeaderProps, type OryCardLogoProps, type OryCardRootProps as OryCardProps, type OryCardSettingsSectionProps, OryCardValidationMessages, type OryClientConfiguration, type OryFlowComponentOverrides, type OryFlowComponents, type OryFlowContainer, OryForm, OryFormGroupDivider, type OryFormGroupProps, OryFormGroups, type OryFormGroupsProps, OryFormOidcButtons, type OryFormOidcRootProps, type OryFormProps, type OryFormRootProps, OryFormSection, type OryFormSectionContentProps, type OryFormSectionFooterProps, type OryFormSectionProps, OryFormSocialButtonsForm, OryLocales, type OryMessageContentProps, type OryMessageRootProps, type OryNodeAnchorProps, type OryNodeButtonProps, type OryNodeImageProps, type OryNodeInputProps, type OryNodeLabelProps, type OryNodeOidcButtonProps, type OryNodeTextProps, type OryPageHeaderProps, OryProvider, type OryProviderProps, OrySettingsCard, type OrySettingsOidcProps, type OrySettingsPasskeyProps, type OrySettingsRecoveryCodesProps, type OrySettingsTotpProps, type OrySettingsWebauthnProps, OryTwoStepCard, type RecoveryFlowContainer, type RegistrationFlowContainer, type SettingsFlowContainer, type VerificationFlowContainer, messageTestId, uiTextToFormattedMessage, useComponents, useNodeSorter, useOryFlow };
|
|
596
|
+
export { type ErrorFlowContainer, type FlowContainerSetter, type FlowContextValue, type FormState, type FormStateAction, type FormValues, HeadlessPageHeader, type IntlConfig, type LoginFlowContainer, type OnSubmitHandlerProps, OryCard, type OryCardAuthMethodListItemProps, OryCardContent, type OryCardContentProps, type OryCardDividerProps, OryCardFooter, type OryCardFooterProps, OryCardHeader, type OryCardHeaderProps, type OryCardLogoProps, type OryCardRootProps as OryCardProps, type OryCardSettingsSectionProps, OryCardValidationMessages, type OryClientConfiguration, type OryFlowComponentOverrides, type OryFlowComponents, type OryFlowContainer, OryForm, OryFormGroupDivider, type OryFormGroupProps, OryFormGroups, type OryFormGroupsProps, OryFormOidcButtons, type OryFormOidcRootProps, type OryFormProps, type OryFormRootProps, OryFormSection, type OryFormSectionContentProps, type OryFormSectionFooterProps, type OryFormSectionProps, OryFormSocialButtonsForm, OryLocales, type OryMessageContentProps, type OryMessageRootProps, type OryNodeAnchorProps, type OryNodeButtonProps, type OryNodeCaptchaProps, type OryNodeImageProps, type OryNodeInputProps, type OryNodeLabelProps, type OryNodeOidcButtonProps, type OryNodeTextProps, type OryPageHeaderProps, OryProvider, type OryProviderProps, OrySettingsCard, type OrySettingsOidcProps, type OrySettingsPasskeyProps, type OrySettingsRecoveryCodesProps, type OrySettingsTotpProps, type OrySettingsWebauthnProps, OryTwoStepCard, type RecoveryFlowContainer, type RegistrationFlowContainer, type SettingsFlowContainer, type VerificationFlowContainer, messageTestId, uiTextToFormattedMessage, useComponents, useNodeSorter, useOryFlow };
|