@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/dist/index.mjs CHANGED
@@ -3539,7 +3539,7 @@ function SettingsSectionContent({ group, nodes }) {
3539
3539
  OryFormSection,
3540
3540
  {
3541
3541
  nodes: uniqueGroups.groups.totp,
3542
- "data-testid": "totp-settings",
3542
+ "data-testid": "ory/screen/settings/group/totp",
3543
3543
  children: [
3544
3544
  /* @__PURE__ */ jsx(OrySettingsTotp, { nodes: (_a = uniqueGroups.groups.totp) != null ? _a : [] }),
3545
3545
  (_b = uniqueGroups.groups.default) == null ? void 0 : _b.map((node, k) => /* @__PURE__ */ jsx(Node, { node }, k))
@@ -3552,7 +3552,7 @@ function SettingsSectionContent({ group, nodes }) {
3552
3552
  OryFormSection,
3553
3553
  {
3554
3554
  nodes: uniqueGroups.groups.lookup_secret,
3555
- "data-testid": "recovery-codes-settings",
3555
+ "data-testid": "ory/screen/settings/group/lookup_secret",
3556
3556
  children: [
3557
3557
  /* @__PURE__ */ jsx(
3558
3558
  OrySettingsRecoveryCodes,
@@ -3570,7 +3570,7 @@ function SettingsSectionContent({ group, nodes }) {
3570
3570
  OryFormSection,
3571
3571
  {
3572
3572
  nodes: uniqueGroups.groups.oidc,
3573
- "data-testid": "oidc-settings",
3573
+ "data-testid": "ory/screen/settings/group/oidc",
3574
3574
  children: [
3575
3575
  /* @__PURE__ */ jsx(OrySettingsOidc, { nodes: (_e = uniqueGroups.groups.oidc) != null ? _e : [] }),
3576
3576
  (_f = uniqueGroups.groups.default) == null ? void 0 : _f.map((node, k) => /* @__PURE__ */ jsx(Node, { node }, k))
@@ -3583,7 +3583,7 @@ function SettingsSectionContent({ group, nodes }) {
3583
3583
  OryFormSection,
3584
3584
  {
3585
3585
  nodes: uniqueGroups.groups.webauthn,
3586
- "data-testid": "webauthn-settings",
3586
+ "data-testid": "ory/screen/settings/group/webauthn",
3587
3587
  children: [
3588
3588
  /* @__PURE__ */ jsx(OrySettingsWebauthn, { nodes: (_g = uniqueGroups.groups.webauthn) != null ? _g : [] }),
3589
3589
  (_h = uniqueGroups.groups.default) == null ? void 0 : _h.map((node, k) => /* @__PURE__ */ jsx(Node, { node }, k))
@@ -3596,7 +3596,7 @@ function SettingsSectionContent({ group, nodes }) {
3596
3596
  OryFormSection,
3597
3597
  {
3598
3598
  nodes: uniqueGroups.groups.passkey,
3599
- "data-testid": "passkey-settings",
3599
+ "data-testid": "ory/screen/settings/group/passkey",
3600
3600
  children: [
3601
3601
  /* @__PURE__ */ jsx(OrySettingsPasskey, { nodes: (_i = uniqueGroups.groups.passkey) != null ? _i : [] }),
3602
3602
  (_j = uniqueGroups.groups.default) == null ? void 0 : _j.map((node, k) => /* @__PURE__ */ jsx(Node, { node }, k))
@@ -3604,28 +3604,35 @@ function SettingsSectionContent({ group, nodes }) {
3604
3604
  }
3605
3605
  );
3606
3606
  }
3607
- return /* @__PURE__ */ jsxs(OryFormSection, { nodes, "data-testid": `${group}-settings`, children: [
3608
- /* @__PURE__ */ jsxs(
3609
- Card.SettingsSectionContent,
3610
- {
3611
- title: intl.formatMessage({
3612
- id: `settings.${group}.title`
3613
- }),
3614
- description: intl.formatMessage({
3615
- id: `settings.${group}.description`
3616
- }),
3617
- children: [
3618
- (_k = uniqueGroups.groups.default) == null ? void 0 : _k.map((node, k) => /* @__PURE__ */ jsx(Node, { node }, k)),
3619
- nodes.filter(
3620
- (node) => "type" in node.attributes && node.attributes.type !== "submit"
3621
- ).map((node, k) => /* @__PURE__ */ jsx(Node, { node }, k))
3622
- ]
3623
- }
3624
- ),
3625
- /* @__PURE__ */ jsx(Card.SettingsSectionFooter, { children: nodes.filter(
3626
- (node) => "type" in node.attributes && node.attributes.type === "submit"
3627
- ).map((node, k) => /* @__PURE__ */ jsx(Node, { node }, k)) })
3628
- ] });
3607
+ return /* @__PURE__ */ jsxs(
3608
+ OryFormSection,
3609
+ {
3610
+ nodes,
3611
+ "data-testid": `ory/screen/settings/group/${group}`,
3612
+ children: [
3613
+ /* @__PURE__ */ jsxs(
3614
+ Card.SettingsSectionContent,
3615
+ {
3616
+ title: intl.formatMessage({
3617
+ id: `settings.${group}.title`
3618
+ }),
3619
+ description: intl.formatMessage({
3620
+ id: `settings.${group}.description`
3621
+ }),
3622
+ children: [
3623
+ (_k = uniqueGroups.groups.default) == null ? void 0 : _k.map((node, k) => /* @__PURE__ */ jsx(Node, { node }, k)),
3624
+ nodes.filter(
3625
+ (node) => "type" in node.attributes && node.attributes.type !== "submit"
3626
+ ).map((node, k) => /* @__PURE__ */ jsx(Node, { node }, k))
3627
+ ]
3628
+ }
3629
+ ),
3630
+ /* @__PURE__ */ jsx(Card.SettingsSectionFooter, { children: nodes.filter(
3631
+ (node) => "type" in node.attributes && node.attributes.type === "submit"
3632
+ ).map((node, k) => /* @__PURE__ */ jsx(Node, { node }, k)) })
3633
+ ]
3634
+ }
3635
+ );
3629
3636
  }
3630
3637
  var getScriptNode = (nodes) => nodes.find(
3631
3638
  (node) => "id" in node.attributes && node.attributes.id === "webauthn_script"
@@ -3697,7 +3704,7 @@ var uiTextToFormattedMessage = ({ id, context = {}, text }, intl) => {
3697
3704
  // src/util/test-id.ts
3698
3705
  function messageTestId(message) {
3699
3706
  return {
3700
- "data-testid": `ory/ui/message/${message.id}`
3707
+ "data-testid": `ory/message/${message.id}`
3701
3708
  };
3702
3709
  }
3703
3710