@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
|
@@ -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, {
|
|
5137
|
-
|
|
5138
|
-
|
|
5139
|
-
|
|
5140
|
-
|
|
5141
|
-
|
|
5142
|
-
|
|
5143
|
-
|
|
5144
|
-
|
|
5145
|
-
|
|
5146
|
-
|
|
5147
|
-
|
|
5148
|
-
|
|
5149
|
-
|
|
5150
|
-
|
|
5151
|
-
|
|
5152
|
-
|
|
5153
|
-
|
|
5154
|
-
|
|
5155
|
-
|
|
5156
|
-
/* @__PURE__ */ (0, import_jsx_runtime94.jsx)(
|
|
5157
|
-
|
|
5158
|
-
|
|
5159
|
-
|
|
5160
|
-
|
|
5161
|
-
|
|
5162
|
-
|
|
5163
|
-
|
|
5164
|
-
|
|
5165
|
-
|
|
5166
|
-
|
|
5167
|
-
|
|
5168
|
-
|
|
5169
|
-
|
|
5170
|
-
|
|
5171
|
-
|
|
5172
|
-
|
|
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
|
-
|
|
5177
|
-
|
|
5178
|
-
|
|
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
|
}
|