@superblocksteam/library 2.0.72-next.8 → 2.0.73-next.0
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/jsx-dev-runtime/index.js +1 -1
- package/dist/{jsx-wrapper-qqx_Djw4.js → jsx-wrapper-DpoYDtf8.js} +21 -18
- package/dist/{jsx-wrapper-qqx_Djw4.js.map → jsx-wrapper-DpoYDtf8.js.map} +1 -1
- package/dist/lib/index.d.ts.map +1 -1
- package/dist/lib/index.js +14 -11
- package/dist/lib/index.js.map +1 -1
- package/package.json +2 -2
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { S as api_hmr_tracker_default, _ as root_store_default, t as makeWrappedComponent } from "../jsx-wrapper-
|
|
1
|
+
import { S as api_hmr_tracker_default, _ as root_store_default, t as makeWrappedComponent } from "../jsx-wrapper-DpoYDtf8.js";
|
|
2
2
|
import "../utils-Clb3lSiX.js";
|
|
3
3
|
import { SOURCE_ID_ATTRIBUTE } from "@superblocksteam/library-shared";
|
|
4
4
|
import * as ReactJsxDevRuntime from "react/jsx-dev-runtime";
|
|
@@ -3413,24 +3413,27 @@ var ErrorBoundary = class extends Component {
|
|
|
3413
3413
|
render() {
|
|
3414
3414
|
if (this.state.hasError) return /* @__PURE__ */ jsx(Observer, { children: () => {
|
|
3415
3415
|
if (root_store_default.editStore?.ai.getIsEditing() ?? false) return /* @__PURE__ */ jsx(SuspenseFallback, {});
|
|
3416
|
-
return /* @__PURE__ */ jsxs(ErrorBoundaryContainer, { children: [/* @__PURE__ */ jsxs(ErrorDetailsContainer, {
|
|
3417
|
-
|
|
3418
|
-
children: [/* @__PURE__ */ jsx("
|
|
3419
|
-
style: {
|
|
3420
|
-
children: "
|
|
3421
|
-
|
|
3422
|
-
|
|
3423
|
-
|
|
3424
|
-
|
|
3425
|
-
|
|
3426
|
-
|
|
3427
|
-
|
|
3428
|
-
|
|
3429
|
-
|
|
3430
|
-
children: /* @__PURE__ */ jsx("
|
|
3431
|
-
|
|
3416
|
+
return /* @__PURE__ */ jsxs(ErrorBoundaryContainer, { children: [/* @__PURE__ */ jsxs(ErrorDetailsContainer, {
|
|
3417
|
+
"data-testid": "runtime-error-details",
|
|
3418
|
+
children: [/* @__PURE__ */ jsx("h3", { children: this.props.header || "Something went wrong." }), /* @__PURE__ */ jsxs("details", {
|
|
3419
|
+
style: { fontSize: "0.8em" },
|
|
3420
|
+
children: [/* @__PURE__ */ jsx("summary", {
|
|
3421
|
+
style: { paddingLeft: "0.25rem" },
|
|
3422
|
+
children: "Error details"
|
|
3423
|
+
}), /* @__PURE__ */ jsx("div", {
|
|
3424
|
+
style: {
|
|
3425
|
+
marginTop: "0.5rem",
|
|
3426
|
+
maxWidth: "100%",
|
|
3427
|
+
overflowX: "auto",
|
|
3428
|
+
scrollbarWidth: "thin"
|
|
3429
|
+
},
|
|
3430
|
+
children: /* @__PURE__ */ jsx("pre", {
|
|
3431
|
+
style: { color: "gray" },
|
|
3432
|
+
children: /* @__PURE__ */ jsx("code", { children: this.state.error?.stack ? this.state.error.stack : this.state.error?.toString() })
|
|
3433
|
+
})
|
|
3434
|
+
})]
|
|
3432
3435
|
})]
|
|
3433
|
-
})
|
|
3436
|
+
}), /* @__PURE__ */ jsxs(ErrorActionsContainer, { children: [isEditMode() && /* @__PURE__ */ jsx(FixWithClarkButton, {
|
|
3434
3437
|
onClick: this.handleFixWithClarkInitiated,
|
|
3435
3438
|
error: this.state.error,
|
|
3436
3439
|
identifier: this.props.identifier
|
|
@@ -3563,4 +3566,4 @@ const useJSXContext = () => {
|
|
|
3563
3566
|
|
|
3564
3567
|
//#endregion
|
|
3565
3568
|
export { useSuperblocksProfiles as A, PropsCategory as B, addNewPromise as C, getAppMode as D, SuperblocksContextProvider as E, iframeMessageHandler as F, createPropertiesPanelDefinition as H, isEmbeddedBySuperblocksFirstParty as I, isEditMode as L, sendNotification as M, colors as N, useSuperblocksContext as O, editorBridge as P, createManagedPropsList as R, api_hmr_tracker_default as S, resolveById as T, getEditStore as U, Section as V, root_store_default as _, FixWithClarkButton as a, createIframeSpan as b, ErrorContent as c, ErrorMessage as d, ErrorStack as f, StyledClarkIcon as g, SecondaryButton as h, getWidgetRectAnchorName as i, useSuperblocksUser as j, useSuperblocksGroups as k, ErrorDetails as l, ErrorTitle as m, useJSXContext as n, ActionsContainer as o, ErrorSummary as p, getWidgetAnchorName as r, ErrorContainer as s, makeWrappedComponent as t, ErrorIconContainer as u, startEditorSync as v, rejectById as w, getContextFromTraceHeaders as x, generateId as y, Prop as z };
|
|
3566
|
-
//# sourceMappingURL=jsx-wrapper-
|
|
3569
|
+
//# sourceMappingURL=jsx-wrapper-DpoYDtf8.js.map
|