@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
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,11 @@
|
|
|
1
|
+
## 1.0.0-next.22 (2025-01-18)
|
|
2
|
+
|
|
3
|
+
This was a version bump only for @ory/elements-react to align it with other projects, there were no code changes.
|
|
4
|
+
|
|
5
|
+
## 1.0.0-next.21 (2025-01-18)
|
|
6
|
+
|
|
7
|
+
This was a version bump only for @ory/elements-react to align it with other projects, there were no code changes.
|
|
8
|
+
|
|
1
9
|
## 1.0.0-next.20 (2025-01-16)
|
|
2
10
|
|
|
3
11
|
### 🚀 Features
|
package/README.md
CHANGED
|
@@ -174,3 +174,22 @@ watch mode use
|
|
|
174
174
|
```
|
|
175
175
|
npx nx run @ory/elements-react:dev
|
|
176
176
|
```
|
|
177
|
+
|
|
178
|
+
### Testing
|
|
179
|
+
|
|
180
|
+
To run the tests use
|
|
181
|
+
|
|
182
|
+
```
|
|
183
|
+
nx lint @ory/elements-react
|
|
184
|
+
nx test @ory/elements-react
|
|
185
|
+
```
|
|
186
|
+
|
|
187
|
+
#### Test selectors
|
|
188
|
+
|
|
189
|
+
To select elements use a `data-testid` selector. Nomenclature mandates `/` as
|
|
190
|
+
separators and a prefix of `ory/`:
|
|
191
|
+
|
|
192
|
+
- `ory/form/` is the prefix for form elements;
|
|
193
|
+
- `ory/screen/` is the prefix for elements on specific screens;
|
|
194
|
+
- `ory/screen/` is the prefix for translatable messages (e.g. validation
|
|
195
|
+
errors).
|
package/dist/index.js
CHANGED
|
@@ -3541,7 +3541,7 @@ function SettingsSectionContent({ group, nodes }) {
|
|
|
3541
3541
|
OryFormSection,
|
|
3542
3542
|
{
|
|
3543
3543
|
nodes: uniqueGroups.groups.totp,
|
|
3544
|
-
"data-testid": "totp
|
|
3544
|
+
"data-testid": "ory/screen/settings/group/totp",
|
|
3545
3545
|
children: [
|
|
3546
3546
|
/* @__PURE__ */ jsxRuntime.jsx(OrySettingsTotp, { nodes: (_a = uniqueGroups.groups.totp) != null ? _a : [] }),
|
|
3547
3547
|
(_b = uniqueGroups.groups.default) == null ? void 0 : _b.map((node, k) => /* @__PURE__ */ jsxRuntime.jsx(Node, { node }, k))
|
|
@@ -3554,7 +3554,7 @@ function SettingsSectionContent({ group, nodes }) {
|
|
|
3554
3554
|
OryFormSection,
|
|
3555
3555
|
{
|
|
3556
3556
|
nodes: uniqueGroups.groups.lookup_secret,
|
|
3557
|
-
"data-testid": "
|
|
3557
|
+
"data-testid": "ory/screen/settings/group/lookup_secret",
|
|
3558
3558
|
children: [
|
|
3559
3559
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
3560
3560
|
OrySettingsRecoveryCodes,
|
|
@@ -3572,7 +3572,7 @@ function SettingsSectionContent({ group, nodes }) {
|
|
|
3572
3572
|
OryFormSection,
|
|
3573
3573
|
{
|
|
3574
3574
|
nodes: uniqueGroups.groups.oidc,
|
|
3575
|
-
"data-testid": "oidc
|
|
3575
|
+
"data-testid": "ory/screen/settings/group/oidc",
|
|
3576
3576
|
children: [
|
|
3577
3577
|
/* @__PURE__ */ jsxRuntime.jsx(OrySettingsOidc, { nodes: (_e = uniqueGroups.groups.oidc) != null ? _e : [] }),
|
|
3578
3578
|
(_f = uniqueGroups.groups.default) == null ? void 0 : _f.map((node, k) => /* @__PURE__ */ jsxRuntime.jsx(Node, { node }, k))
|
|
@@ -3585,7 +3585,7 @@ function SettingsSectionContent({ group, nodes }) {
|
|
|
3585
3585
|
OryFormSection,
|
|
3586
3586
|
{
|
|
3587
3587
|
nodes: uniqueGroups.groups.webauthn,
|
|
3588
|
-
"data-testid": "webauthn
|
|
3588
|
+
"data-testid": "ory/screen/settings/group/webauthn",
|
|
3589
3589
|
children: [
|
|
3590
3590
|
/* @__PURE__ */ jsxRuntime.jsx(OrySettingsWebauthn, { nodes: (_g = uniqueGroups.groups.webauthn) != null ? _g : [] }),
|
|
3591
3591
|
(_h = uniqueGroups.groups.default) == null ? void 0 : _h.map((node, k) => /* @__PURE__ */ jsxRuntime.jsx(Node, { node }, k))
|
|
@@ -3598,7 +3598,7 @@ function SettingsSectionContent({ group, nodes }) {
|
|
|
3598
3598
|
OryFormSection,
|
|
3599
3599
|
{
|
|
3600
3600
|
nodes: uniqueGroups.groups.passkey,
|
|
3601
|
-
"data-testid": "passkey
|
|
3601
|
+
"data-testid": "ory/screen/settings/group/passkey",
|
|
3602
3602
|
children: [
|
|
3603
3603
|
/* @__PURE__ */ jsxRuntime.jsx(OrySettingsPasskey, { nodes: (_i = uniqueGroups.groups.passkey) != null ? _i : [] }),
|
|
3604
3604
|
(_j = uniqueGroups.groups.default) == null ? void 0 : _j.map((node, k) => /* @__PURE__ */ jsxRuntime.jsx(Node, { node }, k))
|
|
@@ -3606,28 +3606,35 @@ function SettingsSectionContent({ group, nodes }) {
|
|
|
3606
3606
|
}
|
|
3607
3607
|
);
|
|
3608
3608
|
}
|
|
3609
|
-
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
3610
|
-
|
|
3611
|
-
|
|
3612
|
-
|
|
3613
|
-
|
|
3614
|
-
|
|
3615
|
-
|
|
3616
|
-
|
|
3617
|
-
|
|
3618
|
-
|
|
3619
|
-
|
|
3620
|
-
|
|
3621
|
-
|
|
3622
|
-
|
|
3623
|
-
|
|
3624
|
-
|
|
3625
|
-
|
|
3626
|
-
|
|
3627
|
-
|
|
3628
|
-
|
|
3629
|
-
|
|
3630
|
-
|
|
3609
|
+
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
3610
|
+
OryFormSection,
|
|
3611
|
+
{
|
|
3612
|
+
nodes,
|
|
3613
|
+
"data-testid": `ory/screen/settings/group/${group}`,
|
|
3614
|
+
children: [
|
|
3615
|
+
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
3616
|
+
Card.SettingsSectionContent,
|
|
3617
|
+
{
|
|
3618
|
+
title: intl.formatMessage({
|
|
3619
|
+
id: `settings.${group}.title`
|
|
3620
|
+
}),
|
|
3621
|
+
description: intl.formatMessage({
|
|
3622
|
+
id: `settings.${group}.description`
|
|
3623
|
+
}),
|
|
3624
|
+
children: [
|
|
3625
|
+
(_k = uniqueGroups.groups.default) == null ? void 0 : _k.map((node, k) => /* @__PURE__ */ jsxRuntime.jsx(Node, { node }, k)),
|
|
3626
|
+
nodes.filter(
|
|
3627
|
+
(node) => "type" in node.attributes && node.attributes.type !== "submit"
|
|
3628
|
+
).map((node, k) => /* @__PURE__ */ jsxRuntime.jsx(Node, { node }, k))
|
|
3629
|
+
]
|
|
3630
|
+
}
|
|
3631
|
+
),
|
|
3632
|
+
/* @__PURE__ */ jsxRuntime.jsx(Card.SettingsSectionFooter, { children: nodes.filter(
|
|
3633
|
+
(node) => "type" in node.attributes && node.attributes.type === "submit"
|
|
3634
|
+
).map((node, k) => /* @__PURE__ */ jsxRuntime.jsx(Node, { node }, k)) })
|
|
3635
|
+
]
|
|
3636
|
+
}
|
|
3637
|
+
);
|
|
3631
3638
|
}
|
|
3632
3639
|
var getScriptNode = (nodes) => nodes.find(
|
|
3633
3640
|
(node) => "id" in node.attributes && node.attributes.id === "webauthn_script"
|
|
@@ -3699,7 +3706,7 @@ var uiTextToFormattedMessage = ({ id, context = {}, text }, intl) => {
|
|
|
3699
3706
|
// src/util/test-id.ts
|
|
3700
3707
|
function messageTestId(message) {
|
|
3701
3708
|
return {
|
|
3702
|
-
"data-testid": `ory/
|
|
3709
|
+
"data-testid": `ory/message/${message.id}`
|
|
3703
3710
|
};
|
|
3704
3711
|
}
|
|
3705
3712
|
|