@ory/elements-react 1.0.0-next.20 → 1.0.0-next.22
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 +8 -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
|
@@ -159,7 +159,7 @@ function LoginCardFooter() {
|
|
|
159
159
|
{
|
|
160
160
|
className: "text-button-link-brand-brand transition-colors hover:text-button-link-brand-brand-hover underline",
|
|
161
161
|
href: initFlowUrl(config.sdk.url, "registration", flow),
|
|
162
|
-
"data-testid": "ory/
|
|
162
|
+
"data-testid": "ory/screen/registration/action/login",
|
|
163
163
|
children: intl.formatMessage({
|
|
164
164
|
id: "login.registration-button",
|
|
165
165
|
defaultMessage: "Sign up"
|
|
@@ -209,7 +209,7 @@ function RegistrationCardFooter() {
|
|
|
209
209
|
{
|
|
210
210
|
className: "text-button-link-brand-brand transition-colors hover:text-button-link-brand-brand-hover underline",
|
|
211
211
|
href: initFlowUrl(config.sdk.url, "login", flow),
|
|
212
|
-
"data-testid": "ory/
|
|
212
|
+
"data-testid": "ory/screen/registration/action/login",
|
|
213
213
|
children: intl.formatMessage({
|
|
214
214
|
id: "registration.login-button",
|
|
215
215
|
defaultMessage: "Sign in"
|
|
@@ -477,7 +477,7 @@ function DefaultCurrentIdentifierButton() {
|
|
|
477
477
|
...attributes,
|
|
478
478
|
href: initFlowUrl2,
|
|
479
479
|
title: `Adjust ${nodeBackButton == null ? void 0 : nodeBackButton.attributes.value}`,
|
|
480
|
-
"data-testid": "ory/
|
|
480
|
+
"data-testid": "ory/screen/login/action/restart",
|
|
481
481
|
children: /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)("span", { className: "inline-flex min-h-5 items-center gap-2 overflow-hidden text-ellipsis", children: [
|
|
482
482
|
/* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
|
|
483
483
|
arrow_left_default,
|
|
@@ -845,7 +845,7 @@ function DefaultButtonSocial({
|
|
|
845
845
|
value: attributes.value,
|
|
846
846
|
type: "submit",
|
|
847
847
|
name: "provider",
|
|
848
|
-
"data-testid": `ory/
|
|
848
|
+
"data-testid": `ory/form/node/input/${attributes.name}`,
|
|
849
849
|
...props,
|
|
850
850
|
onClick,
|
|
851
851
|
disabled: isSubmitting,
|
|
@@ -991,7 +991,7 @@ function DefaultAuthMethodListItem({
|
|
|
991
991
|
className: "flex cursor-pointer gap-3 py-2 text-left items-start",
|
|
992
992
|
onClick,
|
|
993
993
|
type: isGroupImmediateSubmit(group) ? "submit" : "button",
|
|
994
|
-
"data-testid": `ory/
|
|
994
|
+
"data-testid": `ory/form/auth-picker/${group}`,
|
|
995
995
|
"aria-label": `Authenticate with ${group}`,
|
|
996
996
|
children: [
|
|
997
997
|
/* @__PURE__ */ (0, import_jsx_runtime31.jsx)("span", { className: "mt-1", children: Icon && /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
|
|
@@ -1337,7 +1337,7 @@ var DefaultInput = ({
|
|
|
1337
1337
|
maxLength: maxlength,
|
|
1338
1338
|
autoComplete: autocomplete,
|
|
1339
1339
|
placeholder: formattedLabel,
|
|
1340
|
-
"data-testid": `ory/
|
|
1340
|
+
"data-testid": `ory/form/node/input/${name}`,
|
|
1341
1341
|
className: cn(
|
|
1342
1342
|
"antialiased rounded-forms border leading-tight transition-colors placeholder:h-[20px] placeholder:text-input-foreground-tertiary focus-visible:outline-none focus:ring-0",
|
|
1343
1343
|
"bg-input-background-default border-input-border-default text-input-foreground-primary",
|
|
@@ -1391,7 +1391,7 @@ function DefaultLabel({
|
|
|
1391
1391
|
...(0, import_elements_react10.messageTestId)(label),
|
|
1392
1392
|
className: "leading-normal text-input-foreground-primary",
|
|
1393
1393
|
htmlFor: attributes.name,
|
|
1394
|
-
"data-testid": `ory/
|
|
1394
|
+
"data-testid": `ory/form/node/input/label/${attributes.name}`,
|
|
1395
1395
|
...rest,
|
|
1396
1396
|
children: (0, import_elements_react10.uiTextToFormattedMessage)(label, intl)
|
|
1397
1397
|
}
|
|
@@ -1441,7 +1441,7 @@ var DefaultLinkButton = (0, import_react.forwardRef)(({ attributes, node }, ref)
|
|
|
1441
1441
|
...attributes,
|
|
1442
1442
|
ref,
|
|
1443
1443
|
title: label ? (0, import_elements_react11.uiTextToFormattedMessage)(label, intl) : "",
|
|
1444
|
-
"data-testid": `ory/
|
|
1444
|
+
"data-testid": `ory/form/node/link/${attributes.id}`,
|
|
1445
1445
|
className: cn(
|
|
1446
1446
|
"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"
|
|
1447
1447
|
),
|
|
@@ -1586,11 +1586,11 @@ function DefaultText({ node, attributes }) {
|
|
|
1586
1586
|
var _a;
|
|
1587
1587
|
const intl = (0, import_react_intl12.useIntl)();
|
|
1588
1588
|
return /* @__PURE__ */ (0, import_jsx_runtime44.jsxs)(import_jsx_runtime44.Fragment, { children: [
|
|
1589
|
-
/* @__PURE__ */ (0, import_jsx_runtime44.jsx)("p", { "data-testid": `ory/
|
|
1589
|
+
/* @__PURE__ */ (0, import_jsx_runtime44.jsx)("p", { "data-testid": `ory/form/node/text/${attributes.id}/label`, children: node.meta.label ? (0, import_elements_react13.uiTextToFormattedMessage)(node.meta.label, intl) : "" }),
|
|
1590
1590
|
(_a = attributes.text.context.secrets) == null ? void 0 : _a.map((text, index) => /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
|
|
1591
1591
|
"pre",
|
|
1592
1592
|
{
|
|
1593
|
-
"data-testid": `ory/
|
|
1593
|
+
"data-testid": `ory/form/node/text/lookup_secret_codes/text`,
|
|
1594
1594
|
children: /* @__PURE__ */ (0, import_jsx_runtime44.jsx)("code", { children: text ? (0, import_elements_react13.uiTextToFormattedMessage)(text, intl) : "" })
|
|
1595
1595
|
},
|
|
1596
1596
|
index
|
|
@@ -2070,7 +2070,7 @@ function DefaultSettingsRecoveryCodes({
|
|
|
2070
2070
|
onClick: onDownload,
|
|
2071
2071
|
type: "button",
|
|
2072
2072
|
className: "ml-auto",
|
|
2073
|
-
"data-testid": "
|
|
2073
|
+
"data-testid": "ory/screen/settings/group/recovery_code/download",
|
|
2074
2074
|
title: "Download recovery codes",
|
|
2075
2075
|
children: /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(
|
|
2076
2076
|
download_default,
|
|
@@ -2087,7 +2087,7 @@ function DefaultSettingsRecoveryCodes({
|
|
|
2087
2087
|
"div",
|
|
2088
2088
|
{
|
|
2089
2089
|
className: "grid grid-cols-2 sm:grid-cols-3 md:grid-cols-5 flex-wrap gap-4 text-sm text-interface-foreground-default-primary",
|
|
2090
|
-
"data-testid": "
|
|
2090
|
+
"data-testid": "ory/screen/settings/group/recovery_code/codes",
|
|
2091
2091
|
children: codes.map((code) => /* @__PURE__ */ (0, import_jsx_runtime58.jsx)("p", { children: code }, code))
|
|
2092
2092
|
}
|
|
2093
2093
|
) }) : null
|
|
@@ -2364,7 +2364,7 @@ function Error2({
|
|
|
2364
2364
|
error,
|
|
2365
2365
|
children
|
|
2366
2366
|
}) {
|
|
2367
|
-
return /* @__PURE__ */ (0, import_jsx_runtime63.jsx)("div", { "data-testid": "ory/
|
|
2367
|
+
return /* @__PURE__ */ (0, import_jsx_runtime63.jsx)("div", { "data-testid": "ory/screen/error/raw", children: JSON.stringify(error) || children });
|
|
2368
2368
|
}
|
|
2369
2369
|
|
|
2370
2370
|
// src/theme/default/flows/login.tsx
|