@ory/elements-react 1.0.0-next.16 → 1.0.0-next.17
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 +21 -0
- package/api-report/elements-react-theme.api.json +150 -0
- package/api-report/elements-react-theme.api.md +14 -2
- package/api-report/temp/elements-react-client.api.md +22 -0
- package/api-report/temp/elements-react-theme.api.md +146 -0
- package/api-report/temp/elements-react.api.md +421 -0
- package/dist/index.js +102 -38
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +103 -39
- package/dist/index.mjs.map +1 -1
- package/dist/theme/default/index.d.mts +12 -3
- package/dist/theme/default/index.d.ts +12 -3
- package/dist/theme/default/index.js +402 -381
- package/dist/theme/default/index.js.map +1 -1
- package/dist/theme/default/index.mjs +451 -424
- package/dist/theme/default/index.mjs.map +1 -1
- package/jest.config.ts +6 -0
- package/package.json +1 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
-
import { OryCardContentProps, OryCardProps, OryFormRootProps, OryMessageContentProps, OryFlowComponentOverrides, OryFlowComponents, OryClientConfiguration } from '@ory/elements-react';
|
|
2
|
+
import { OryCardContentProps, OryCardProps, OryNodeOidcButtonProps, OryFormRootProps, OryMessageContentProps, OryFlowComponentOverrides, OryFlowComponents, OryClientConfiguration } from '@ory/elements-react';
|
|
3
3
|
import * as react from 'react';
|
|
4
|
-
import { PropsWithChildren } from 'react';
|
|
4
|
+
import { ElementType, PropsWithChildren } from 'react';
|
|
5
5
|
import { FlowError, LoginFlow, RecoveryFlow, RegistrationFlow, SettingsFlow, VerificationFlow } from '@ory/client-fetch';
|
|
6
6
|
|
|
7
7
|
declare function DefaultCardContent({ children }: OryCardContentProps): react.ReactNode;
|
|
@@ -16,6 +16,15 @@ declare function DefaultCurrentIdentifierButton(): react_jsx_runtime.JSX.Element
|
|
|
16
16
|
|
|
17
17
|
declare function DefaultCard({ children }: OryCardProps): react_jsx_runtime.JSX.Element;
|
|
18
18
|
|
|
19
|
+
type DefaultSocialButtonProps = OryNodeOidcButtonProps & {
|
|
20
|
+
showLabel?: boolean;
|
|
21
|
+
logos?: Record<string, ElementType>;
|
|
22
|
+
};
|
|
23
|
+
declare function DefaultButtonSocial({ attributes, node, onClick, showLabel: _showLabel, logos: providedLogos, }: DefaultSocialButtonProps): react_jsx_runtime.JSX.Element;
|
|
24
|
+
declare namespace DefaultButtonSocial {
|
|
25
|
+
var WithLogos: (logos: Record<string, ElementType>) => (props: DefaultSocialButtonProps) => react_jsx_runtime.JSX.Element;
|
|
26
|
+
}
|
|
27
|
+
|
|
19
28
|
declare function DefaultFormContainer({ children, onSubmit, action, method, }: PropsWithChildren<OryFormRootProps>): react_jsx_runtime.JSX.Element;
|
|
20
29
|
declare function DefaultMessageContainer({ children }: PropsWithChildren): react_jsx_runtime.JSX.Element | null;
|
|
21
30
|
declare function DefaultMessage({ message }: OryMessageContentProps): react_jsx_runtime.JSX.Element;
|
|
@@ -64,4 +73,4 @@ type VerificationFlowContextProps = {
|
|
|
64
73
|
};
|
|
65
74
|
declare function Verification({ flow, config, children, components: flowOverrideComponents, }: PropsWithChildren<VerificationFlowContextProps>): react_jsx_runtime.JSX.Element;
|
|
66
75
|
|
|
67
|
-
export { DefaultCard, DefaultCardContent, DefaultCardFooter, DefaultCardHeader, DefaultCardLogo, DefaultCurrentIdentifierButton, DefaultFormContainer, DefaultMessage, DefaultMessageContainer, Error, type ErrorFlowContextProps, Login, type LoginFlowContextProps, Recovery, type RecoveryFlowContextProps, Registration, Settings, type SettingsFlowContextProps, Verification, type VerificationFlowContextProps, getOryComponents };
|
|
76
|
+
export { DefaultButtonSocial, DefaultCard, DefaultCardContent, DefaultCardFooter, DefaultCardHeader, DefaultCardLogo, DefaultCurrentIdentifierButton, DefaultFormContainer, DefaultMessage, DefaultMessageContainer, Error, type ErrorFlowContextProps, Login, type LoginFlowContextProps, Recovery, type RecoveryFlowContextProps, Registration, Settings, type SettingsFlowContextProps, Verification, type VerificationFlowContextProps, getOryComponents };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
-
import { OryCardContentProps, OryCardProps, OryFormRootProps, OryMessageContentProps, OryFlowComponentOverrides, OryFlowComponents, OryClientConfiguration } from '@ory/elements-react';
|
|
2
|
+
import { OryCardContentProps, OryCardProps, OryNodeOidcButtonProps, OryFormRootProps, OryMessageContentProps, OryFlowComponentOverrides, OryFlowComponents, OryClientConfiguration } from '@ory/elements-react';
|
|
3
3
|
import * as react from 'react';
|
|
4
|
-
import { PropsWithChildren } from 'react';
|
|
4
|
+
import { ElementType, PropsWithChildren } from 'react';
|
|
5
5
|
import { FlowError, LoginFlow, RecoveryFlow, RegistrationFlow, SettingsFlow, VerificationFlow } from '@ory/client-fetch';
|
|
6
6
|
|
|
7
7
|
declare function DefaultCardContent({ children }: OryCardContentProps): react.ReactNode;
|
|
@@ -16,6 +16,15 @@ declare function DefaultCurrentIdentifierButton(): react_jsx_runtime.JSX.Element
|
|
|
16
16
|
|
|
17
17
|
declare function DefaultCard({ children }: OryCardProps): react_jsx_runtime.JSX.Element;
|
|
18
18
|
|
|
19
|
+
type DefaultSocialButtonProps = OryNodeOidcButtonProps & {
|
|
20
|
+
showLabel?: boolean;
|
|
21
|
+
logos?: Record<string, ElementType>;
|
|
22
|
+
};
|
|
23
|
+
declare function DefaultButtonSocial({ attributes, node, onClick, showLabel: _showLabel, logos: providedLogos, }: DefaultSocialButtonProps): react_jsx_runtime.JSX.Element;
|
|
24
|
+
declare namespace DefaultButtonSocial {
|
|
25
|
+
var WithLogos: (logos: Record<string, ElementType>) => (props: DefaultSocialButtonProps) => react_jsx_runtime.JSX.Element;
|
|
26
|
+
}
|
|
27
|
+
|
|
19
28
|
declare function DefaultFormContainer({ children, onSubmit, action, method, }: PropsWithChildren<OryFormRootProps>): react_jsx_runtime.JSX.Element;
|
|
20
29
|
declare function DefaultMessageContainer({ children }: PropsWithChildren): react_jsx_runtime.JSX.Element | null;
|
|
21
30
|
declare function DefaultMessage({ message }: OryMessageContentProps): react_jsx_runtime.JSX.Element;
|
|
@@ -64,4 +73,4 @@ type VerificationFlowContextProps = {
|
|
|
64
73
|
};
|
|
65
74
|
declare function Verification({ flow, config, children, components: flowOverrideComponents, }: PropsWithChildren<VerificationFlowContextProps>): react_jsx_runtime.JSX.Element;
|
|
66
75
|
|
|
67
|
-
export { DefaultCard, DefaultCardContent, DefaultCardFooter, DefaultCardHeader, DefaultCardLogo, DefaultCurrentIdentifierButton, DefaultFormContainer, DefaultMessage, DefaultMessageContainer, Error, type ErrorFlowContextProps, Login, type LoginFlowContextProps, Recovery, type RecoveryFlowContextProps, Registration, Settings, type SettingsFlowContextProps, Verification, type VerificationFlowContextProps, getOryComponents };
|
|
76
|
+
export { DefaultButtonSocial, DefaultCard, DefaultCardContent, DefaultCardFooter, DefaultCardHeader, DefaultCardLogo, DefaultCurrentIdentifierButton, DefaultFormContainer, DefaultMessage, DefaultMessageContainer, Error, type ErrorFlowContextProps, Login, type LoginFlowContextProps, Recovery, type RecoveryFlowContextProps, Registration, Settings, type SettingsFlowContextProps, Verification, type VerificationFlowContextProps, getOryComponents };
|