@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.
@@ -5166,53 +5166,60 @@ function Error2({
5166
5166
  {
5167
5167
  locale: (_f = (_e = config.intl) == null ? void 0 : _e.locale) != null ? _f : "en",
5168
5168
  customTranslations: (_g = config.intl) == null ? void 0 : _g.customTranslations,
5169
- children: /* @__PURE__ */ jsx94(Card, { "data-testid": "ory/screen/error", children: /* @__PURE__ */ jsxs45("div", { className: "flex flex-col gap-6 antialiased", children: [
5170
- /* @__PURE__ */ jsxs45("header", { className: "flex flex-col gap-8 antialiased", children: [
5171
- /* @__PURE__ */ jsx94(ErrorLogo, { config }),
5172
- /* @__PURE__ */ jsxs45("div", { className: "flex flex-col gap-2", children: [
5173
- /* @__PURE__ */ jsx94("h2", { className: "text-lg font-semibold leading-normal text-interface-foreground-default-primary", children: /* @__PURE__ */ jsx94(FormattedMessage, { id: "error.title.what-happened" }) }),
5174
- /* @__PURE__ */ jsx94("p", { className: "leading-normal text-interface-foreground-default-secondary", children: (_h = parsed.message) != null ? _h : description }),
5175
- parsed.reason && /* @__PURE__ */ jsx94("p", { className: "leading-normal text-interface-foreground-default-secondary", children: parsed.reason })
5176
- ] })
5177
- ] }),
5178
- /* @__PURE__ */ jsx94(Divider, {}),
5179
- /* @__PURE__ */ jsxs45("div", { className: "flex flex-col gap-2", children: [
5180
- /* @__PURE__ */ jsx94("h2", { className: "text-lg font-semibold leading-normal text-interface-foreground-default-primary", children: /* @__PURE__ */ jsx94(FormattedMessage, { id: "error.title.what-can-i-do" }) }),
5181
- /* @__PURE__ */ jsx94("p", { className: "leading-normal text-interface-foreground-default-secondary", children: /* @__PURE__ */ jsx94(FormattedMessage, { id: "error.instructions" }) }),
5182
- /* @__PURE__ */ jsx94("div", { children: session ? /* @__PURE__ */ jsx94(LoggedInActions, { config }) : /* @__PURE__ */ jsx94(GoBackButton, { config }) })
5183
- ] }),
5184
- /* @__PURE__ */ jsx94(Divider, {}),
5185
- /* @__PURE__ */ jsxs45("div", { className: "font-normal leading-normal antialiased gap-2 flex flex-col", children: [
5186
- /* @__PURE__ */ jsx94("span", { className: "text-interface-foreground-default-primary text-sm", children: /* @__PURE__ */ jsx94(FormattedMessage, { id: "error.footer.text" }) }),
5187
- parsed.id && /* @__PURE__ */ jsxs45("p", { className: "text-interface-foreground-default-secondary text-sm", children: [
5188
- "ID: ",
5189
- /* @__PURE__ */ jsx94("code", { children: parsed.id })
5190
- ] }),
5191
- /* @__PURE__ */ jsxs45("p", { className: "text-interface-foreground-default-secondary text-sm", children: [
5192
- "Time: ",
5193
- /* @__PURE__ */ jsx94("code", { children: (_i = parsed.timestamp) == null ? void 0 : _i.toUTCString() })
5194
- ] }),
5195
- /* @__PURE__ */ jsxs45("p", { className: "text-interface-foreground-default-secondary text-sm", children: [
5196
- "Message: ",
5197
- /* @__PURE__ */ jsx94("code", { children: parsed.reason })
5198
- ] }),
5199
- /* @__PURE__ */ jsx94("div", { children: /* @__PURE__ */ jsx94(
5200
- "button",
5201
- {
5202
- className: "text-interface-foreground-default-primary underline",
5203
- onClick: () => {
5204
- var _a2;
5205
- const text = `${parsed.id ? `ID: ${parsed.id}` : ""}
5169
+ children: /* @__PURE__ */ jsx94(Card, { children: /* @__PURE__ */ jsxs45(
5170
+ "div",
5171
+ {
5172
+ className: "flex flex-col gap-6 antialiased",
5173
+ "data-testid": "ory/screen/error",
5174
+ children: [
5175
+ /* @__PURE__ */ jsxs45("header", { className: "flex flex-col gap-8 antialiased", children: [
5176
+ /* @__PURE__ */ jsx94(ErrorLogo, { config }),
5177
+ /* @__PURE__ */ jsxs45("div", { className: "flex flex-col gap-2", children: [
5178
+ /* @__PURE__ */ jsx94("h2", { className: "text-lg font-semibold leading-normal text-interface-foreground-default-primary", children: /* @__PURE__ */ jsx94(FormattedMessage, { id: "error.title.what-happened" }) }),
5179
+ /* @__PURE__ */ jsx94("p", { className: "leading-normal text-interface-foreground-default-secondary", children: (_h = parsed.message) != null ? _h : description }),
5180
+ parsed.reason && /* @__PURE__ */ jsx94("p", { className: "leading-normal text-interface-foreground-default-secondary", children: parsed.reason })
5181
+ ] })
5182
+ ] }),
5183
+ /* @__PURE__ */ jsx94(Divider, {}),
5184
+ /* @__PURE__ */ jsxs45("div", { className: "flex flex-col gap-2", children: [
5185
+ /* @__PURE__ */ jsx94("h2", { className: "text-lg font-semibold leading-normal text-interface-foreground-default-primary", children: /* @__PURE__ */ jsx94(FormattedMessage, { id: "error.title.what-can-i-do" }) }),
5186
+ /* @__PURE__ */ jsx94("p", { className: "leading-normal text-interface-foreground-default-secondary", children: /* @__PURE__ */ jsx94(FormattedMessage, { id: "error.instructions" }) }),
5187
+ /* @__PURE__ */ jsx94("div", { children: session ? /* @__PURE__ */ jsx94(LoggedInActions, { config }) : /* @__PURE__ */ jsx94(GoBackButton, { config }) })
5188
+ ] }),
5189
+ /* @__PURE__ */ jsx94(Divider, {}),
5190
+ /* @__PURE__ */ jsxs45("div", { className: "font-normal leading-normal antialiased gap-2 flex flex-col", children: [
5191
+ /* @__PURE__ */ jsx94("span", { className: "text-interface-foreground-default-primary text-sm", children: /* @__PURE__ */ jsx94(FormattedMessage, { id: "error.footer.text" }) }),
5192
+ parsed.id && /* @__PURE__ */ jsxs45("p", { className: "text-interface-foreground-default-secondary text-sm", children: [
5193
+ "ID: ",
5194
+ /* @__PURE__ */ jsx94("code", { children: parsed.id })
5195
+ ] }),
5196
+ /* @__PURE__ */ jsxs45("p", { className: "text-interface-foreground-default-secondary text-sm", children: [
5197
+ "Time: ",
5198
+ /* @__PURE__ */ jsx94("code", { children: (_i = parsed.timestamp) == null ? void 0 : _i.toUTCString() })
5199
+ ] }),
5200
+ /* @__PURE__ */ jsxs45("p", { className: "text-interface-foreground-default-secondary text-sm", children: [
5201
+ "Message: ",
5202
+ /* @__PURE__ */ jsx94("code", { children: parsed.reason })
5203
+ ] }),
5204
+ /* @__PURE__ */ jsx94("div", { children: /* @__PURE__ */ jsx94(
5205
+ "button",
5206
+ {
5207
+ className: "text-interface-foreground-default-primary underline",
5208
+ onClick: () => {
5209
+ var _a2;
5210
+ const text = `${parsed.id ? `ID: ${parsed.id}` : ""}
5206
5211
  Time: ${(_a2 = parsed.timestamp) == null ? void 0 : _a2.toUTCString()}
5207
5212
  ${parsed.reason ? `Message: ${parsed.reason}` : ""}
5208
5213
  `;
5209
- void navigator.clipboard.writeText(text);
5210
- },
5211
- children: /* @__PURE__ */ jsx94(FormattedMessage, { id: "error.footer.copy" })
5212
- }
5213
- ) })
5214
- ] })
5215
- ] }) })
5214
+ void navigator.clipboard.writeText(text);
5215
+ },
5216
+ children: /* @__PURE__ */ jsx94(FormattedMessage, { id: "error.footer.copy" })
5217
+ }
5218
+ ) })
5219
+ ] })
5220
+ ]
5221
+ }
5222
+ ) })
5216
5223
  }
5217
5224
  );
5218
5225
  }