@ory/elements-react 1.0.0-next.36 → 1.0.0-next.37

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 CHANGED
@@ -1,3 +1,13 @@
1
+ ## 1.0.0-next.37 (2025-03-12)
2
+
3
+ ### 🩹 Fixes
4
+
5
+ - correctly render test id for error card ([#386](https://github.com/ory/elements/pull/386))
6
+
7
+ ### ❤️ Thank You
8
+
9
+ - Jonas Hungershausen
10
+
1
11
  ## 1.0.0-next.36 (2025-03-12)
2
12
 
3
13
  ### 🩹 Fixes
@@ -5133,53 +5133,60 @@ function Error2({
5133
5133
  {
5134
5134
  locale: (_f = (_e = config.intl) == null ? void 0 : _e.locale) != null ? _f : "en",
5135
5135
  customTranslations: (_g = config.intl) == null ? void 0 : _g.customTranslations,
5136
- children: /* @__PURE__ */ (0, import_jsx_runtime94.jsx)(Card, { "data-testid": "ory/screen/error", children: /* @__PURE__ */ (0, import_jsx_runtime94.jsxs)("div", { className: "flex flex-col gap-6 antialiased", children: [
5137
- /* @__PURE__ */ (0, import_jsx_runtime94.jsxs)("header", { className: "flex flex-col gap-8 antialiased", children: [
5138
- /* @__PURE__ */ (0, import_jsx_runtime94.jsx)(ErrorLogo, { config }),
5139
- /* @__PURE__ */ (0, import_jsx_runtime94.jsxs)("div", { className: "flex flex-col gap-2", children: [
5140
- /* @__PURE__ */ (0, import_jsx_runtime94.jsx)("h2", { className: "text-lg font-semibold leading-normal text-interface-foreground-default-primary", children: /* @__PURE__ */ (0, import_jsx_runtime94.jsx)(import_react_intl21.FormattedMessage, { id: "error.title.what-happened" }) }),
5141
- /* @__PURE__ */ (0, import_jsx_runtime94.jsx)("p", { className: "leading-normal text-interface-foreground-default-secondary", children: (_h = parsed.message) != null ? _h : description }),
5142
- parsed.reason && /* @__PURE__ */ (0, import_jsx_runtime94.jsx)("p", { className: "leading-normal text-interface-foreground-default-secondary", children: parsed.reason })
5143
- ] })
5144
- ] }),
5145
- /* @__PURE__ */ (0, import_jsx_runtime94.jsx)(Divider, {}),
5146
- /* @__PURE__ */ (0, import_jsx_runtime94.jsxs)("div", { className: "flex flex-col gap-2", children: [
5147
- /* @__PURE__ */ (0, import_jsx_runtime94.jsx)("h2", { className: "text-lg font-semibold leading-normal text-interface-foreground-default-primary", children: /* @__PURE__ */ (0, import_jsx_runtime94.jsx)(import_react_intl21.FormattedMessage, { id: "error.title.what-can-i-do" }) }),
5148
- /* @__PURE__ */ (0, import_jsx_runtime94.jsx)("p", { className: "leading-normal text-interface-foreground-default-secondary", children: /* @__PURE__ */ (0, import_jsx_runtime94.jsx)(import_react_intl21.FormattedMessage, { id: "error.instructions" }) }),
5149
- /* @__PURE__ */ (0, import_jsx_runtime94.jsx)("div", { children: session ? /* @__PURE__ */ (0, import_jsx_runtime94.jsx)(LoggedInActions, { config }) : /* @__PURE__ */ (0, import_jsx_runtime94.jsx)(GoBackButton, { config }) })
5150
- ] }),
5151
- /* @__PURE__ */ (0, import_jsx_runtime94.jsx)(Divider, {}),
5152
- /* @__PURE__ */ (0, import_jsx_runtime94.jsxs)("div", { className: "font-normal leading-normal antialiased gap-2 flex flex-col", children: [
5153
- /* @__PURE__ */ (0, import_jsx_runtime94.jsx)("span", { className: "text-interface-foreground-default-primary text-sm", children: /* @__PURE__ */ (0, import_jsx_runtime94.jsx)(import_react_intl21.FormattedMessage, { id: "error.footer.text" }) }),
5154
- parsed.id && /* @__PURE__ */ (0, import_jsx_runtime94.jsxs)("p", { className: "text-interface-foreground-default-secondary text-sm", children: [
5155
- "ID: ",
5156
- /* @__PURE__ */ (0, import_jsx_runtime94.jsx)("code", { children: parsed.id })
5157
- ] }),
5158
- /* @__PURE__ */ (0, import_jsx_runtime94.jsxs)("p", { className: "text-interface-foreground-default-secondary text-sm", children: [
5159
- "Time: ",
5160
- /* @__PURE__ */ (0, import_jsx_runtime94.jsx)("code", { children: (_i = parsed.timestamp) == null ? void 0 : _i.toUTCString() })
5161
- ] }),
5162
- /* @__PURE__ */ (0, import_jsx_runtime94.jsxs)("p", { className: "text-interface-foreground-default-secondary text-sm", children: [
5163
- "Message: ",
5164
- /* @__PURE__ */ (0, import_jsx_runtime94.jsx)("code", { children: parsed.reason })
5165
- ] }),
5166
- /* @__PURE__ */ (0, import_jsx_runtime94.jsx)("div", { children: /* @__PURE__ */ (0, import_jsx_runtime94.jsx)(
5167
- "button",
5168
- {
5169
- className: "text-interface-foreground-default-primary underline",
5170
- onClick: () => {
5171
- var _a2;
5172
- const text = `${parsed.id ? `ID: ${parsed.id}` : ""}
5136
+ children: /* @__PURE__ */ (0, import_jsx_runtime94.jsx)(Card, { children: /* @__PURE__ */ (0, import_jsx_runtime94.jsxs)(
5137
+ "div",
5138
+ {
5139
+ className: "flex flex-col gap-6 antialiased",
5140
+ "data-testid": "ory/screen/error",
5141
+ children: [
5142
+ /* @__PURE__ */ (0, import_jsx_runtime94.jsxs)("header", { className: "flex flex-col gap-8 antialiased", children: [
5143
+ /* @__PURE__ */ (0, import_jsx_runtime94.jsx)(ErrorLogo, { config }),
5144
+ /* @__PURE__ */ (0, import_jsx_runtime94.jsxs)("div", { className: "flex flex-col gap-2", children: [
5145
+ /* @__PURE__ */ (0, import_jsx_runtime94.jsx)("h2", { className: "text-lg font-semibold leading-normal text-interface-foreground-default-primary", children: /* @__PURE__ */ (0, import_jsx_runtime94.jsx)(import_react_intl21.FormattedMessage, { id: "error.title.what-happened" }) }),
5146
+ /* @__PURE__ */ (0, import_jsx_runtime94.jsx)("p", { className: "leading-normal text-interface-foreground-default-secondary", children: (_h = parsed.message) != null ? _h : description }),
5147
+ parsed.reason && /* @__PURE__ */ (0, import_jsx_runtime94.jsx)("p", { className: "leading-normal text-interface-foreground-default-secondary", children: parsed.reason })
5148
+ ] })
5149
+ ] }),
5150
+ /* @__PURE__ */ (0, import_jsx_runtime94.jsx)(Divider, {}),
5151
+ /* @__PURE__ */ (0, import_jsx_runtime94.jsxs)("div", { className: "flex flex-col gap-2", children: [
5152
+ /* @__PURE__ */ (0, import_jsx_runtime94.jsx)("h2", { className: "text-lg font-semibold leading-normal text-interface-foreground-default-primary", children: /* @__PURE__ */ (0, import_jsx_runtime94.jsx)(import_react_intl21.FormattedMessage, { id: "error.title.what-can-i-do" }) }),
5153
+ /* @__PURE__ */ (0, import_jsx_runtime94.jsx)("p", { className: "leading-normal text-interface-foreground-default-secondary", children: /* @__PURE__ */ (0, import_jsx_runtime94.jsx)(import_react_intl21.FormattedMessage, { id: "error.instructions" }) }),
5154
+ /* @__PURE__ */ (0, import_jsx_runtime94.jsx)("div", { children: session ? /* @__PURE__ */ (0, import_jsx_runtime94.jsx)(LoggedInActions, { config }) : /* @__PURE__ */ (0, import_jsx_runtime94.jsx)(GoBackButton, { config }) })
5155
+ ] }),
5156
+ /* @__PURE__ */ (0, import_jsx_runtime94.jsx)(Divider, {}),
5157
+ /* @__PURE__ */ (0, import_jsx_runtime94.jsxs)("div", { className: "font-normal leading-normal antialiased gap-2 flex flex-col", children: [
5158
+ /* @__PURE__ */ (0, import_jsx_runtime94.jsx)("span", { className: "text-interface-foreground-default-primary text-sm", children: /* @__PURE__ */ (0, import_jsx_runtime94.jsx)(import_react_intl21.FormattedMessage, { id: "error.footer.text" }) }),
5159
+ parsed.id && /* @__PURE__ */ (0, import_jsx_runtime94.jsxs)("p", { className: "text-interface-foreground-default-secondary text-sm", children: [
5160
+ "ID: ",
5161
+ /* @__PURE__ */ (0, import_jsx_runtime94.jsx)("code", { children: parsed.id })
5162
+ ] }),
5163
+ /* @__PURE__ */ (0, import_jsx_runtime94.jsxs)("p", { className: "text-interface-foreground-default-secondary text-sm", children: [
5164
+ "Time: ",
5165
+ /* @__PURE__ */ (0, import_jsx_runtime94.jsx)("code", { children: (_i = parsed.timestamp) == null ? void 0 : _i.toUTCString() })
5166
+ ] }),
5167
+ /* @__PURE__ */ (0, import_jsx_runtime94.jsxs)("p", { className: "text-interface-foreground-default-secondary text-sm", children: [
5168
+ "Message: ",
5169
+ /* @__PURE__ */ (0, import_jsx_runtime94.jsx)("code", { children: parsed.reason })
5170
+ ] }),
5171
+ /* @__PURE__ */ (0, import_jsx_runtime94.jsx)("div", { children: /* @__PURE__ */ (0, import_jsx_runtime94.jsx)(
5172
+ "button",
5173
+ {
5174
+ className: "text-interface-foreground-default-primary underline",
5175
+ onClick: () => {
5176
+ var _a2;
5177
+ const text = `${parsed.id ? `ID: ${parsed.id}` : ""}
5173
5178
  Time: ${(_a2 = parsed.timestamp) == null ? void 0 : _a2.toUTCString()}
5174
5179
  ${parsed.reason ? `Message: ${parsed.reason}` : ""}
5175
5180
  `;
5176
- void navigator.clipboard.writeText(text);
5177
- },
5178
- children: /* @__PURE__ */ (0, import_jsx_runtime94.jsx)(import_react_intl21.FormattedMessage, { id: "error.footer.copy" })
5179
- }
5180
- ) })
5181
- ] })
5182
- ] }) })
5181
+ void navigator.clipboard.writeText(text);
5182
+ },
5183
+ children: /* @__PURE__ */ (0, import_jsx_runtime94.jsx)(import_react_intl21.FormattedMessage, { id: "error.footer.copy" })
5184
+ }
5185
+ ) })
5186
+ ] })
5187
+ ]
5188
+ }
5189
+ ) })
5183
5190
  }
5184
5191
  );
5185
5192
  }