@ory/elements-react 0.0.0-pr.f1435f4 → 0.0.0-pr.f1d09ee2
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 +14 -0
- package/dist/index.d.mts +13 -7
- package/dist/index.d.ts +13 -7
- package/dist/index.js +263 -185
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +264 -186
- package/dist/index.mjs.map +1 -1
- package/dist/theme/default/index.css +12 -6
- package/dist/theme/default/index.css.map +1 -1
- package/dist/theme/default/index.js +3141 -3032
- package/dist/theme/default/index.js.map +1 -1
- package/dist/theme/default/index.mjs +3185 -3073
- package/dist/theme/default/index.mjs.map +1 -1
- package/package.json +4 -4
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,17 @@
|
|
|
1
|
+
## 1.0.0-rc.1 (2025-04-21)
|
|
2
|
+
|
|
3
|
+
### 🩹 Fixes
|
|
4
|
+
|
|
5
|
+
- re-add missing error message when no methods provided ([#460](https://github.com/ory/elements/pull/460))
|
|
6
|
+
- resend not working for registration ([#468](https://github.com/ory/elements/pull/468))
|
|
7
|
+
- add missing color class to registration footer ([#473](https://github.com/ory/elements/pull/473))
|
|
8
|
+
- resend not working for registration ([#467](https://github.com/ory/elements/pull/467))
|
|
9
|
+
|
|
10
|
+
### ❤️ Thank You
|
|
11
|
+
|
|
12
|
+
- hackerman @aeneasr
|
|
13
|
+
- Jonas Hungershausen
|
|
14
|
+
|
|
1
15
|
## 1.0.0-rc.0 (2025-04-17)
|
|
2
16
|
|
|
3
17
|
### 🚀 Features
|
package/dist/index.d.mts
CHANGED
|
@@ -486,6 +486,7 @@ type ConsentFlow = {
|
|
|
486
486
|
ui: UiContainer;
|
|
487
487
|
consent_request: OAuth2ConsentRequest;
|
|
488
488
|
session: Session;
|
|
489
|
+
return_to?: string;
|
|
489
490
|
};
|
|
490
491
|
type ConsentFlowContainer = OryFlow<FlowType.OAuth2Consent, ConsentFlow>;
|
|
491
492
|
/**
|
|
@@ -561,18 +562,23 @@ type OnSubmitHandlerProps<T extends UpdateLoginFlowBody | UpdateRegistrationFlow
|
|
|
561
562
|
* @param message - the UiText message to generate a test id for
|
|
562
563
|
* @returns a unique, stable test id for the message
|
|
563
564
|
*/
|
|
564
|
-
declare function messageTestId(message:
|
|
565
|
+
declare function messageTestId(message: {
|
|
566
|
+
id: number | string;
|
|
567
|
+
}): {
|
|
565
568
|
"data-testid": string;
|
|
566
569
|
};
|
|
567
570
|
|
|
568
|
-
type
|
|
569
|
-
current: "provide_identifier";
|
|
570
|
-
} | {
|
|
571
|
+
type FormStateSelectMethod = {
|
|
571
572
|
current: "select_method";
|
|
572
|
-
}
|
|
573
|
+
};
|
|
574
|
+
type FormStateProvideIdentifier = {
|
|
575
|
+
current: "provide_identifier";
|
|
576
|
+
};
|
|
577
|
+
type FormStateMethodActive = {
|
|
573
578
|
current: "method_active";
|
|
574
579
|
method: UiNodeGroupEnum;
|
|
575
|
-
}
|
|
580
|
+
};
|
|
581
|
+
type FormState = FormStateSelectMethod | FormStateProvideIdentifier | FormStateMethodActive | {
|
|
576
582
|
current: "success_screen";
|
|
577
583
|
} | {
|
|
578
584
|
current: "settings";
|
|
@@ -619,4 +625,4 @@ type OryProviderProps = {
|
|
|
619
625
|
} & OryFlowContainer & PropsWithChildren;
|
|
620
626
|
declare function OryProvider({ children, components: Components, ...oryFlowProps }: OryProviderProps): react_jsx_runtime.JSX.Element;
|
|
621
627
|
|
|
622
|
-
export { type ConsentFlow, type ConsentFlowContainer, 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, OryConsentCard, 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 OryNodeConsentScopeCheckboxProps, 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 };
|
|
628
|
+
export { type ConsentFlow, type ConsentFlowContainer, type ErrorFlowContainer, type FlowContainerSetter, type FlowContextValue, type FormState, type FormStateAction, type FormStateMethodActive, type FormStateProvideIdentifier, type FormStateSelectMethod, 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, OryConsentCard, 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 OryNodeConsentScopeCheckboxProps, 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
|
@@ -486,6 +486,7 @@ type ConsentFlow = {
|
|
|
486
486
|
ui: UiContainer;
|
|
487
487
|
consent_request: OAuth2ConsentRequest;
|
|
488
488
|
session: Session;
|
|
489
|
+
return_to?: string;
|
|
489
490
|
};
|
|
490
491
|
type ConsentFlowContainer = OryFlow<FlowType.OAuth2Consent, ConsentFlow>;
|
|
491
492
|
/**
|
|
@@ -561,18 +562,23 @@ type OnSubmitHandlerProps<T extends UpdateLoginFlowBody | UpdateRegistrationFlow
|
|
|
561
562
|
* @param message - the UiText message to generate a test id for
|
|
562
563
|
* @returns a unique, stable test id for the message
|
|
563
564
|
*/
|
|
564
|
-
declare function messageTestId(message:
|
|
565
|
+
declare function messageTestId(message: {
|
|
566
|
+
id: number | string;
|
|
567
|
+
}): {
|
|
565
568
|
"data-testid": string;
|
|
566
569
|
};
|
|
567
570
|
|
|
568
|
-
type
|
|
569
|
-
current: "provide_identifier";
|
|
570
|
-
} | {
|
|
571
|
+
type FormStateSelectMethod = {
|
|
571
572
|
current: "select_method";
|
|
572
|
-
}
|
|
573
|
+
};
|
|
574
|
+
type FormStateProvideIdentifier = {
|
|
575
|
+
current: "provide_identifier";
|
|
576
|
+
};
|
|
577
|
+
type FormStateMethodActive = {
|
|
573
578
|
current: "method_active";
|
|
574
579
|
method: UiNodeGroupEnum;
|
|
575
|
-
}
|
|
580
|
+
};
|
|
581
|
+
type FormState = FormStateSelectMethod | FormStateProvideIdentifier | FormStateMethodActive | {
|
|
576
582
|
current: "success_screen";
|
|
577
583
|
} | {
|
|
578
584
|
current: "settings";
|
|
@@ -619,4 +625,4 @@ type OryProviderProps = {
|
|
|
619
625
|
} & OryFlowContainer & PropsWithChildren;
|
|
620
626
|
declare function OryProvider({ children, components: Components, ...oryFlowProps }: OryProviderProps): react_jsx_runtime.JSX.Element;
|
|
621
627
|
|
|
622
|
-
export { type ConsentFlow, type ConsentFlowContainer, 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, OryConsentCard, 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 OryNodeConsentScopeCheckboxProps, 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 };
|
|
628
|
+
export { type ConsentFlow, type ConsentFlowContainer, type ErrorFlowContainer, type FlowContainerSetter, type FlowContextValue, type FormState, type FormStateAction, type FormStateMethodActive, type FormStateProvideIdentifier, type FormStateSelectMethod, 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, OryConsentCard, 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 OryNodeConsentScopeCheckboxProps, 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 };
|