@ory/elements-react 1.0.0-next.4 → 1.0.0-next.6

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 ADDED
@@ -0,0 +1,44 @@
1
+ ## 1.0.0-next.6 (2024-09-18)
2
+
3
+
4
+ ### 🩹 Fixes
5
+
6
+ - **intl:** export locales object from package root
7
+
8
+
9
+ ### ❤️ Thank You
10
+
11
+ - Jonas Hungershausen
12
+
13
+ ## 1.0.0-next.5 (2024-09-17)
14
+
15
+ ### 🚀 Features
16
+
17
+ - @testing-library/react based tests
18
+
19
+ - **theme:** show resend code button on top of code input
20
+
21
+ ### 🩹 Fixes
22
+
23
+ - **core:** use SDK instead of HTML form submissions
24
+
25
+ - **core:** use empty strings instead of undefined default values
26
+
27
+ - **core:** code form submission precendence
28
+
29
+ - ⚠️ **theme:** scope css classes with .ory-default-theme
30
+
31
+ - **theme:** social sign in button styling
32
+
33
+ - **intl:** use correct abbreveation for swedish locale
34
+
35
+ - **core:** passkey script discovery
36
+
37
+ #### ⚠️ Breaking Changes
38
+
39
+ - ⚠️ **theme:** scope css classes with .ory-default-theme
40
+
41
+ ### ❤️ Thank You
42
+
43
+ - Jonas Hungershausen
44
+ - Miłosz
package/dist/index.d.mts CHANGED
@@ -1428,7 +1428,7 @@ var pt = {
1428
1428
  "verification.back-button": "Voltar"
1429
1429
  };
1430
1430
 
1431
- var se = {
1431
+ var sv = {
1432
1432
  "consent.action-accept": "Tillåt",
1433
1433
  "consent.action-reject": "Neka",
1434
1434
  "consent.description": "Ge bara behörigheter om du litar på den här webbplatsen eller appen. Du behöver inte acceptera alla behörigheter.",
@@ -1612,9 +1612,9 @@ declare const locales_fr: typeof fr;
1612
1612
  declare const locales_nl: typeof nl;
1613
1613
  declare const locales_pl: typeof pl;
1614
1614
  declare const locales_pt: typeof pt;
1615
- declare const locales_se: typeof se;
1615
+ declare const locales_sv: typeof sv;
1616
1616
  declare namespace locales {
1617
- export { 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_se as se };
1617
+ export { 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 };
1618
1618
  }
1619
1619
 
1620
1620
  type TranslationFile = {
@@ -1706,7 +1706,7 @@ type OnSubmitHandlerProps<T extends UpdateLoginFlowBody | UpdateRegistrationFlow
1706
1706
  /**
1707
1707
  * This method is used to update the flow container when a validation error occurs, for example.
1708
1708
  */
1709
- setFlowContainer: (flowContainer: Partial<FlowContainer>) => void;
1709
+ setFlowContainer: (flowContainer: FlowContainer) => void;
1710
1710
  /**
1711
1711
  * The form values to submit.
1712
1712
  */
@@ -1772,4 +1772,4 @@ declare function onSubmitVerification({ config, flow }: FlowContainer, { setFlow
1772
1772
  */
1773
1773
  declare function onSubmitRegistration({ config, flow }: FlowContainer, { setFlowContainer, body, onRedirect, }: OnSubmitHandlerProps<UpdateRegistrationFlowBody>): Promise<void>;
1774
1774
 
1775
- export { type CustomLanguageFormats, type CustomTranslations, type ErrorFlowContainer, type FlowContainer, type FlowContainerSetter, type FlowContextValue, type FormValues, type HeadlessAuthMethodListItemProps, type HeadlessButtonProps, type HeadlessFormProps, type HeadlessGroupContainerProps, type HeadlessGroupProps, type HeadlessImageProps, type HeadlessInputProps, type HeadlessLabelProps, type HeadlessLinkButtonProps, HeadlessMessage, type HeadlessMessageProps, type HeadlessMessagesProps, type HeadlessSocialButtonContainerProps, type HeadlessSocialButtonProps, type HeadlessSocialButtonsProps, type HeadlessTextProps, type HorizontalDividerProps, IntlProvider, type IntlProviderProps, LanguageCodes, type Locale, type LoginFlowContainer, type OnSubmitHandlerProps, OryCard, type OryCardComponents, OryCardContent, type OryCardContentProps, OryCardFooter, type OryCardFooterProps, OryCardHeader, type OryCardHeaderProps, type OryCardProps, OryCardValidationMessages, type OryClientConfiguration, OryComponentProvider, type OryFlowComponents, OryFlowProvider, type OryFlowProviderProps, OryForm, type OryFormComponents, OryFormGroupDivider, OryFormGroups, type OryFormProps, OryFormSocialButtons, OryProvider, type ProviderProps, type RecoveryFlowContainer, type RegistrationFlowContainer, type SettingsFlowContainer, type SupportedTranslations, type TranslationFile, type VerificationFlowContainer, formElementId, formLabelId, formatMessage, isCustomTranslations, messageTestId, onSubmitLogin, onSubmitRecovery, onSubmitRegistration, onSubmitSettings, onSubmitVerification, uiTextToFormattedMessage, useComponents, useNodeSorter, useOryFlow };
1775
+ export { type CustomLanguageFormats, type CustomTranslations, type ErrorFlowContainer, type FlowContainer, type FlowContainerSetter, type FlowContextValue, type FormValues, type HeadlessAuthMethodListItemProps, type HeadlessButtonProps, type HeadlessFormProps, type HeadlessGroupContainerProps, type HeadlessGroupProps, type HeadlessImageProps, type HeadlessInputProps, type HeadlessLabelProps, type HeadlessLinkButtonProps, HeadlessMessage, type HeadlessMessageProps, type HeadlessMessagesProps, type HeadlessSocialButtonContainerProps, type HeadlessSocialButtonProps, type HeadlessSocialButtonsProps, type HeadlessTextProps, type HorizontalDividerProps, IntlProvider, type IntlProviderProps, LanguageCodes, type Locale, type LoginFlowContainer, type OnSubmitHandlerProps, OryCard, type OryCardComponents, OryCardContent, type OryCardContentProps, OryCardFooter, type OryCardFooterProps, OryCardHeader, type OryCardHeaderProps, type OryCardProps, OryCardValidationMessages, type OryClientConfiguration, OryComponentProvider, type OryFlowComponents, OryFlowProvider, type OryFlowProviderProps, OryForm, type OryFormComponents, OryFormGroupDivider, OryFormGroups, type OryFormProps, OryFormSocialButtons, locales as OryLocales, OryProvider, type ProviderProps, type RecoveryFlowContainer, type RegistrationFlowContainer, type SettingsFlowContainer, type SupportedTranslations, type TranslationFile, type VerificationFlowContainer, formElementId, formLabelId, formatMessage, isCustomTranslations, messageTestId, onSubmitLogin, onSubmitRecovery, onSubmitRegistration, onSubmitSettings, onSubmitVerification, uiTextToFormattedMessage, useComponents, useNodeSorter, useOryFlow };
package/dist/index.d.ts CHANGED
@@ -1428,7 +1428,7 @@ var pt = {
1428
1428
  "verification.back-button": "Voltar"
1429
1429
  };
1430
1430
 
1431
- var se = {
1431
+ var sv = {
1432
1432
  "consent.action-accept": "Tillåt",
1433
1433
  "consent.action-reject": "Neka",
1434
1434
  "consent.description": "Ge bara behörigheter om du litar på den här webbplatsen eller appen. Du behöver inte acceptera alla behörigheter.",
@@ -1612,9 +1612,9 @@ declare const locales_fr: typeof fr;
1612
1612
  declare const locales_nl: typeof nl;
1613
1613
  declare const locales_pl: typeof pl;
1614
1614
  declare const locales_pt: typeof pt;
1615
- declare const locales_se: typeof se;
1615
+ declare const locales_sv: typeof sv;
1616
1616
  declare namespace locales {
1617
- export { 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_se as se };
1617
+ export { 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 };
1618
1618
  }
1619
1619
 
1620
1620
  type TranslationFile = {
@@ -1706,7 +1706,7 @@ type OnSubmitHandlerProps<T extends UpdateLoginFlowBody | UpdateRegistrationFlow
1706
1706
  /**
1707
1707
  * This method is used to update the flow container when a validation error occurs, for example.
1708
1708
  */
1709
- setFlowContainer: (flowContainer: Partial<FlowContainer>) => void;
1709
+ setFlowContainer: (flowContainer: FlowContainer) => void;
1710
1710
  /**
1711
1711
  * The form values to submit.
1712
1712
  */
@@ -1772,4 +1772,4 @@ declare function onSubmitVerification({ config, flow }: FlowContainer, { setFlow
1772
1772
  */
1773
1773
  declare function onSubmitRegistration({ config, flow }: FlowContainer, { setFlowContainer, body, onRedirect, }: OnSubmitHandlerProps<UpdateRegistrationFlowBody>): Promise<void>;
1774
1774
 
1775
- export { type CustomLanguageFormats, type CustomTranslations, type ErrorFlowContainer, type FlowContainer, type FlowContainerSetter, type FlowContextValue, type FormValues, type HeadlessAuthMethodListItemProps, type HeadlessButtonProps, type HeadlessFormProps, type HeadlessGroupContainerProps, type HeadlessGroupProps, type HeadlessImageProps, type HeadlessInputProps, type HeadlessLabelProps, type HeadlessLinkButtonProps, HeadlessMessage, type HeadlessMessageProps, type HeadlessMessagesProps, type HeadlessSocialButtonContainerProps, type HeadlessSocialButtonProps, type HeadlessSocialButtonsProps, type HeadlessTextProps, type HorizontalDividerProps, IntlProvider, type IntlProviderProps, LanguageCodes, type Locale, type LoginFlowContainer, type OnSubmitHandlerProps, OryCard, type OryCardComponents, OryCardContent, type OryCardContentProps, OryCardFooter, type OryCardFooterProps, OryCardHeader, type OryCardHeaderProps, type OryCardProps, OryCardValidationMessages, type OryClientConfiguration, OryComponentProvider, type OryFlowComponents, OryFlowProvider, type OryFlowProviderProps, OryForm, type OryFormComponents, OryFormGroupDivider, OryFormGroups, type OryFormProps, OryFormSocialButtons, OryProvider, type ProviderProps, type RecoveryFlowContainer, type RegistrationFlowContainer, type SettingsFlowContainer, type SupportedTranslations, type TranslationFile, type VerificationFlowContainer, formElementId, formLabelId, formatMessage, isCustomTranslations, messageTestId, onSubmitLogin, onSubmitRecovery, onSubmitRegistration, onSubmitSettings, onSubmitVerification, uiTextToFormattedMessage, useComponents, useNodeSorter, useOryFlow };
1775
+ export { type CustomLanguageFormats, type CustomTranslations, type ErrorFlowContainer, type FlowContainer, type FlowContainerSetter, type FlowContextValue, type FormValues, type HeadlessAuthMethodListItemProps, type HeadlessButtonProps, type HeadlessFormProps, type HeadlessGroupContainerProps, type HeadlessGroupProps, type HeadlessImageProps, type HeadlessInputProps, type HeadlessLabelProps, type HeadlessLinkButtonProps, HeadlessMessage, type HeadlessMessageProps, type HeadlessMessagesProps, type HeadlessSocialButtonContainerProps, type HeadlessSocialButtonProps, type HeadlessSocialButtonsProps, type HeadlessTextProps, type HorizontalDividerProps, IntlProvider, type IntlProviderProps, LanguageCodes, type Locale, type LoginFlowContainer, type OnSubmitHandlerProps, OryCard, type OryCardComponents, OryCardContent, type OryCardContentProps, OryCardFooter, type OryCardFooterProps, OryCardHeader, type OryCardHeaderProps, type OryCardProps, OryCardValidationMessages, type OryClientConfiguration, OryComponentProvider, type OryFlowComponents, OryFlowProvider, type OryFlowProviderProps, OryForm, type OryFormComponents, OryFormGroupDivider, OryFormGroups, type OryFormProps, OryFormSocialButtons, locales as OryLocales, OryProvider, type ProviderProps, type RecoveryFlowContainer, type RegistrationFlowContainer, type SettingsFlowContainer, type SupportedTranslations, type TranslationFile, type VerificationFlowContainer, formElementId, formLabelId, formatMessage, isCustomTranslations, messageTestId, onSubmitLogin, onSubmitRecovery, onSubmitRegistration, onSubmitSettings, onSubmitVerification, uiTextToFormattedMessage, useComponents, useNodeSorter, useOryFlow };