@ory/elements-react 1.0.0-next.0 → 1.0.0-next.2
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/.eslintrc.js +12 -0
- package/dist/index.d.mts +16 -12
- package/dist/index.d.ts +16 -12
- package/dist/index.js +258 -174
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +258 -174
- package/dist/index.mjs.map +1 -1
- package/dist/theme/default/index.css +7 -3
- package/dist/theme/default/index.css.map +1 -1
- package/dist/theme/default/index.d.mts +16 -12
- package/dist/theme/default/index.d.ts +16 -12
- package/dist/theme/default/index.js +3016 -353
- package/dist/theme/default/index.js.map +1 -1
- package/dist/theme/default/index.mjs +2992 -329
- package/dist/theme/default/index.mjs.map +1 -1
- package/package.json +1 -1
- package/test-results/.last-run.json +4 -0
package/.eslintrc.js
CHANGED
|
@@ -13,6 +13,7 @@ module.exports = {
|
|
|
13
13
|
"eslint:recommended",
|
|
14
14
|
"plugin:react/recommended",
|
|
15
15
|
"plugin:react/jsx-runtime",
|
|
16
|
+
"plugin:react-hooks/recommended",
|
|
16
17
|
],
|
|
17
18
|
ignorePatterns: ["playwright/", "playwright-ct.config.ts", ".eslintrc.js"],
|
|
18
19
|
parserOptions: {
|
|
@@ -27,6 +28,17 @@ module.exports = {
|
|
|
27
28
|
"no-undef": "off",
|
|
28
29
|
// TODO(jonas): define if we want to use this rule and if we want types or interfaces
|
|
29
30
|
"@typescript-eslint/consistent-type-definitions": "off",
|
|
31
|
+
"react/prop-types": "off",
|
|
32
|
+
"@typescript-eslint/no-unsafe-assignment": "off",
|
|
33
|
+
"@typescript-eslint/no-unsafe-member-access": "off",
|
|
34
|
+
"@typescript-eslint/no-unused-vars": [
|
|
35
|
+
"error",
|
|
36
|
+
{
|
|
37
|
+
argsIgnorePattern: "^_",
|
|
38
|
+
varsIgnorePattern: "^_",
|
|
39
|
+
caughtErrorsIgnorePattern: "^_",
|
|
40
|
+
},
|
|
41
|
+
],
|
|
30
42
|
},
|
|
31
43
|
env: {
|
|
32
44
|
jest: true,
|
package/dist/index.d.mts
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import { UiNodeGroupEnum, UiText, UiNode, UiNodeInputAttributes, UiNodeAnchorAttributes, UiNodeTextAttributes, UiNodeImageAttributes, ConfigurationParameters, FlowType, LoginFlow, RegistrationFlow, RecoveryFlow, VerificationFlow, SettingsFlow, FlowError, UpdateLoginFlowBody, UpdateRegistrationFlowBody, UpdateVerificationFlowBody, UpdateRecoveryFlowBody, UpdateSettingsFlowBody, OnRedirectHandler } from '@ory/client-fetch';
|
|
2
2
|
import * as React from 'react';
|
|
3
|
-
import React__default, { PropsWithChildren, ComponentType, DetailedHTMLProps, HTMLAttributes, ComponentPropsWithoutRef, Dispatch,
|
|
3
|
+
import React__default, { PropsWithChildren, ComponentType, DetailedHTMLProps, HTMLAttributes, ComponentPropsWithoutRef, Dispatch, FormEventHandler, MouseEventHandler } from 'react';
|
|
4
4
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
5
5
|
import { IntlShape } from 'react-intl';
|
|
6
6
|
|
|
7
|
-
type OryCardHeaderProps =
|
|
7
|
+
type OryCardHeaderProps = Record<string, never>;
|
|
8
8
|
declare function OryCardHeader(): react_jsx_runtime.JSX.Element;
|
|
9
9
|
|
|
10
|
-
type OryCardContentProps = PropsWithChildren
|
|
10
|
+
type OryCardContentProps = PropsWithChildren;
|
|
11
11
|
declare function OryCardContent({ children }: OryCardContentProps): react_jsx_runtime.JSX.Element;
|
|
12
|
-
type OryCardFooterProps =
|
|
13
|
-
declare function OryCardFooter(
|
|
14
|
-
type OryCardProps = PropsWithChildren
|
|
12
|
+
type OryCardFooterProps = Record<string, never>;
|
|
13
|
+
declare function OryCardFooter(): react_jsx_runtime.JSX.Element;
|
|
14
|
+
type OryCardProps = PropsWithChildren;
|
|
15
15
|
declare function OryCard({ children }: OryCardProps): react_jsx_runtime.JSX.Element;
|
|
16
16
|
/**
|
|
17
17
|
* Card components are used to show login, registration, recovery, and verification flows.
|
|
@@ -36,10 +36,10 @@ type OryCardComponents = {
|
|
|
36
36
|
/**
|
|
37
37
|
* The card logo is the logo of the card container.
|
|
38
38
|
*/
|
|
39
|
-
CardLogo: ComponentType
|
|
39
|
+
CardLogo: ComponentType;
|
|
40
40
|
};
|
|
41
41
|
|
|
42
|
-
type HorizontalDividerProps =
|
|
42
|
+
type HorizontalDividerProps = Record<string, never>;
|
|
43
43
|
declare function OryFormGroupDivider(): react_jsx_runtime.JSX.Element | null;
|
|
44
44
|
|
|
45
45
|
type HeadlessGroupProps = PropsWithChildren<{
|
|
@@ -116,7 +116,7 @@ type HeadlessImageProps = {
|
|
|
116
116
|
};
|
|
117
117
|
type FormValues = Record<string, string | boolean | number | undefined>;
|
|
118
118
|
type HeadlessFormProps = ComponentPropsWithoutRef<"form"> & {
|
|
119
|
-
onSubmit:
|
|
119
|
+
onSubmit: FormEventHandler<HTMLFormElement>;
|
|
120
120
|
};
|
|
121
121
|
type HeadlessInputProps = {
|
|
122
122
|
attributes: UiNodeInputAttributes;
|
|
@@ -153,9 +153,13 @@ type OryClientConfiguration = {
|
|
|
153
153
|
options?: Partial<ConfigurationParameters>;
|
|
154
154
|
};
|
|
155
155
|
project: {
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
156
|
+
registration_enabled: boolean;
|
|
157
|
+
verification_enabled: boolean;
|
|
158
|
+
recovery_enabled: boolean;
|
|
159
|
+
recovery_ui_url: string;
|
|
160
|
+
registration_ui_url: string;
|
|
161
|
+
verification_ui_url: string;
|
|
162
|
+
login_ui_url: string;
|
|
159
163
|
};
|
|
160
164
|
};
|
|
161
165
|
|
package/dist/index.d.ts
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import { UiNodeGroupEnum, UiText, UiNode, UiNodeInputAttributes, UiNodeAnchorAttributes, UiNodeTextAttributes, UiNodeImageAttributes, ConfigurationParameters, FlowType, LoginFlow, RegistrationFlow, RecoveryFlow, VerificationFlow, SettingsFlow, FlowError, UpdateLoginFlowBody, UpdateRegistrationFlowBody, UpdateVerificationFlowBody, UpdateRecoveryFlowBody, UpdateSettingsFlowBody, OnRedirectHandler } from '@ory/client-fetch';
|
|
2
2
|
import * as React from 'react';
|
|
3
|
-
import React__default, { PropsWithChildren, ComponentType, DetailedHTMLProps, HTMLAttributes, ComponentPropsWithoutRef, Dispatch,
|
|
3
|
+
import React__default, { PropsWithChildren, ComponentType, DetailedHTMLProps, HTMLAttributes, ComponentPropsWithoutRef, Dispatch, FormEventHandler, MouseEventHandler } from 'react';
|
|
4
4
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
5
5
|
import { IntlShape } from 'react-intl';
|
|
6
6
|
|
|
7
|
-
type OryCardHeaderProps =
|
|
7
|
+
type OryCardHeaderProps = Record<string, never>;
|
|
8
8
|
declare function OryCardHeader(): react_jsx_runtime.JSX.Element;
|
|
9
9
|
|
|
10
|
-
type OryCardContentProps = PropsWithChildren
|
|
10
|
+
type OryCardContentProps = PropsWithChildren;
|
|
11
11
|
declare function OryCardContent({ children }: OryCardContentProps): react_jsx_runtime.JSX.Element;
|
|
12
|
-
type OryCardFooterProps =
|
|
13
|
-
declare function OryCardFooter(
|
|
14
|
-
type OryCardProps = PropsWithChildren
|
|
12
|
+
type OryCardFooterProps = Record<string, never>;
|
|
13
|
+
declare function OryCardFooter(): react_jsx_runtime.JSX.Element;
|
|
14
|
+
type OryCardProps = PropsWithChildren;
|
|
15
15
|
declare function OryCard({ children }: OryCardProps): react_jsx_runtime.JSX.Element;
|
|
16
16
|
/**
|
|
17
17
|
* Card components are used to show login, registration, recovery, and verification flows.
|
|
@@ -36,10 +36,10 @@ type OryCardComponents = {
|
|
|
36
36
|
/**
|
|
37
37
|
* The card logo is the logo of the card container.
|
|
38
38
|
*/
|
|
39
|
-
CardLogo: ComponentType
|
|
39
|
+
CardLogo: ComponentType;
|
|
40
40
|
};
|
|
41
41
|
|
|
42
|
-
type HorizontalDividerProps =
|
|
42
|
+
type HorizontalDividerProps = Record<string, never>;
|
|
43
43
|
declare function OryFormGroupDivider(): react_jsx_runtime.JSX.Element | null;
|
|
44
44
|
|
|
45
45
|
type HeadlessGroupProps = PropsWithChildren<{
|
|
@@ -116,7 +116,7 @@ type HeadlessImageProps = {
|
|
|
116
116
|
};
|
|
117
117
|
type FormValues = Record<string, string | boolean | number | undefined>;
|
|
118
118
|
type HeadlessFormProps = ComponentPropsWithoutRef<"form"> & {
|
|
119
|
-
onSubmit:
|
|
119
|
+
onSubmit: FormEventHandler<HTMLFormElement>;
|
|
120
120
|
};
|
|
121
121
|
type HeadlessInputProps = {
|
|
122
122
|
attributes: UiNodeInputAttributes;
|
|
@@ -153,9 +153,13 @@ type OryClientConfiguration = {
|
|
|
153
153
|
options?: Partial<ConfigurationParameters>;
|
|
154
154
|
};
|
|
155
155
|
project: {
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
156
|
+
registration_enabled: boolean;
|
|
157
|
+
verification_enabled: boolean;
|
|
158
|
+
recovery_enabled: boolean;
|
|
159
|
+
recovery_ui_url: string;
|
|
160
|
+
registration_ui_url: string;
|
|
161
|
+
verification_ui_url: string;
|
|
162
|
+
login_ui_url: string;
|
|
159
163
|
};
|
|
160
164
|
};
|
|
161
165
|
|