@ory/elements-react 1.0.0-next.20 → 1.0.0-next.21
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 +4 -0
- package/README.md +19 -0
- package/dist/index.js +35 -28
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +35 -28
- package/dist/index.mjs.map +1 -1
- package/dist/theme/default/index.js +13 -13
- package/dist/theme/default/index.js.map +1 -1
- package/dist/theme/default/index.mjs +13 -13
- package/dist/theme/default/index.mjs.map +1 -1
- package/package.json +1 -1
|
@@ -107,7 +107,7 @@ function LoginCardFooter() {
|
|
|
107
107
|
{
|
|
108
108
|
className: "text-button-link-brand-brand transition-colors hover:text-button-link-brand-brand-hover underline",
|
|
109
109
|
href: initFlowUrl(config.sdk.url, "registration", flow),
|
|
110
|
-
"data-testid": "ory/
|
|
110
|
+
"data-testid": "ory/screen/registration/action/login",
|
|
111
111
|
children: intl.formatMessage({
|
|
112
112
|
id: "login.registration-button",
|
|
113
113
|
defaultMessage: "Sign up"
|
|
@@ -157,7 +157,7 @@ function RegistrationCardFooter() {
|
|
|
157
157
|
{
|
|
158
158
|
className: "text-button-link-brand-brand transition-colors hover:text-button-link-brand-brand-hover underline",
|
|
159
159
|
href: initFlowUrl(config.sdk.url, "login", flow),
|
|
160
|
-
"data-testid": "ory/
|
|
160
|
+
"data-testid": "ory/screen/registration/action/login",
|
|
161
161
|
children: intl.formatMessage({
|
|
162
162
|
id: "registration.login-button",
|
|
163
163
|
defaultMessage: "Sign in"
|
|
@@ -428,7 +428,7 @@ function DefaultCurrentIdentifierButton() {
|
|
|
428
428
|
...attributes,
|
|
429
429
|
href: initFlowUrl2,
|
|
430
430
|
title: `Adjust ${nodeBackButton == null ? void 0 : nodeBackButton.attributes.value}`,
|
|
431
|
-
"data-testid": "ory/
|
|
431
|
+
"data-testid": "ory/screen/login/action/restart",
|
|
432
432
|
children: /* @__PURE__ */ jsxs5("span", { className: "inline-flex min-h-5 items-center gap-2 overflow-hidden text-ellipsis", children: [
|
|
433
433
|
/* @__PURE__ */ jsx6(
|
|
434
434
|
arrow_left_default,
|
|
@@ -803,7 +803,7 @@ function DefaultButtonSocial({
|
|
|
803
803
|
value: attributes.value,
|
|
804
804
|
type: "submit",
|
|
805
805
|
name: "provider",
|
|
806
|
-
"data-testid": `ory/
|
|
806
|
+
"data-testid": `ory/form/node/input/${attributes.name}`,
|
|
807
807
|
...props,
|
|
808
808
|
onClick,
|
|
809
809
|
disabled: isSubmitting,
|
|
@@ -949,7 +949,7 @@ function DefaultAuthMethodListItem({
|
|
|
949
949
|
className: "flex cursor-pointer gap-3 py-2 text-left items-start",
|
|
950
950
|
onClick,
|
|
951
951
|
type: isGroupImmediateSubmit(group) ? "submit" : "button",
|
|
952
|
-
"data-testid": `ory/
|
|
952
|
+
"data-testid": `ory/form/auth-picker/${group}`,
|
|
953
953
|
"aria-label": `Authenticate with ${group}`,
|
|
954
954
|
children: [
|
|
955
955
|
/* @__PURE__ */ jsx31("span", { className: "mt-1", children: Icon && /* @__PURE__ */ jsx31(
|
|
@@ -1303,7 +1303,7 @@ var DefaultInput = ({
|
|
|
1303
1303
|
maxLength: maxlength,
|
|
1304
1304
|
autoComplete: autocomplete,
|
|
1305
1305
|
placeholder: formattedLabel,
|
|
1306
|
-
"data-testid": `ory/
|
|
1306
|
+
"data-testid": `ory/form/node/input/${name}`,
|
|
1307
1307
|
className: cn(
|
|
1308
1308
|
"antialiased rounded-forms border leading-tight transition-colors placeholder:h-[20px] placeholder:text-input-foreground-tertiary focus-visible:outline-none focus:ring-0",
|
|
1309
1309
|
"bg-input-background-default border-input-border-default text-input-foreground-primary",
|
|
@@ -1366,7 +1366,7 @@ function DefaultLabel({
|
|
|
1366
1366
|
...messageTestId3(label),
|
|
1367
1367
|
className: "leading-normal text-input-foreground-primary",
|
|
1368
1368
|
htmlFor: attributes.name,
|
|
1369
|
-
"data-testid": `ory/
|
|
1369
|
+
"data-testid": `ory/form/node/input/label/${attributes.name}`,
|
|
1370
1370
|
...rest,
|
|
1371
1371
|
children: uiTextToFormattedMessage7(label, intl)
|
|
1372
1372
|
}
|
|
@@ -1418,7 +1418,7 @@ var DefaultLinkButton = forwardRef(({ attributes, node }, ref) => {
|
|
|
1418
1418
|
...attributes,
|
|
1419
1419
|
ref,
|
|
1420
1420
|
title: label ? uiTextToFormattedMessage8(label, intl) : "",
|
|
1421
|
-
"data-testid": `ory/
|
|
1421
|
+
"data-testid": `ory/form/node/link/${attributes.id}`,
|
|
1422
1422
|
className: cn(
|
|
1423
1423
|
"antialiased rounded cursor-pointer text-center border gap-3 leading-none bg-button-primary-background-default hover:bg-button-primary-background-hover transition-colors text-button-primary-foreground-default hover:text-button-primary-foreground-hover p-4 font-medium"
|
|
1424
1424
|
),
|
|
@@ -1563,11 +1563,11 @@ function DefaultText({ node, attributes }) {
|
|
|
1563
1563
|
var _a;
|
|
1564
1564
|
const intl = useIntl12();
|
|
1565
1565
|
return /* @__PURE__ */ jsxs26(Fragment3, { children: [
|
|
1566
|
-
/* @__PURE__ */ jsx44("p", { "data-testid": `ory/
|
|
1566
|
+
/* @__PURE__ */ jsx44("p", { "data-testid": `ory/form/node/text/${attributes.id}/label`, children: node.meta.label ? uiTextToFormattedMessage9(node.meta.label, intl) : "" }),
|
|
1567
1567
|
(_a = attributes.text.context.secrets) == null ? void 0 : _a.map((text, index) => /* @__PURE__ */ jsx44(
|
|
1568
1568
|
"pre",
|
|
1569
1569
|
{
|
|
1570
|
-
"data-testid": `ory/
|
|
1570
|
+
"data-testid": `ory/form/node/text/lookup_secret_codes/text`,
|
|
1571
1571
|
children: /* @__PURE__ */ jsx44("code", { children: text ? uiTextToFormattedMessage9(text, intl) : "" })
|
|
1572
1572
|
},
|
|
1573
1573
|
index
|
|
@@ -2050,7 +2050,7 @@ function DefaultSettingsRecoveryCodes({
|
|
|
2050
2050
|
onClick: onDownload,
|
|
2051
2051
|
type: "button",
|
|
2052
2052
|
className: "ml-auto",
|
|
2053
|
-
"data-testid": "
|
|
2053
|
+
"data-testid": "ory/screen/settings/group/recovery_code/download",
|
|
2054
2054
|
title: "Download recovery codes",
|
|
2055
2055
|
children: /* @__PURE__ */ jsx58(
|
|
2056
2056
|
download_default,
|
|
@@ -2067,7 +2067,7 @@ function DefaultSettingsRecoveryCodes({
|
|
|
2067
2067
|
"div",
|
|
2068
2068
|
{
|
|
2069
2069
|
className: "grid grid-cols-2 sm:grid-cols-3 md:grid-cols-5 flex-wrap gap-4 text-sm text-interface-foreground-default-primary",
|
|
2070
|
-
"data-testid": "
|
|
2070
|
+
"data-testid": "ory/screen/settings/group/recovery_code/codes",
|
|
2071
2071
|
children: codes.map((code) => /* @__PURE__ */ jsx58("p", { children: code }, code))
|
|
2072
2072
|
}
|
|
2073
2073
|
) }) : null
|
|
@@ -2344,7 +2344,7 @@ function Error({
|
|
|
2344
2344
|
error,
|
|
2345
2345
|
children
|
|
2346
2346
|
}) {
|
|
2347
|
-
return /* @__PURE__ */ jsx63("div", { "data-testid": "ory/
|
|
2347
|
+
return /* @__PURE__ */ jsx63("div", { "data-testid": "ory/screen/error/raw", children: JSON.stringify(error) || children });
|
|
2348
2348
|
}
|
|
2349
2349
|
|
|
2350
2350
|
// src/theme/default/flows/login.tsx
|