@superblocksteam/library 2.0.72-next.12 → 2.0.72-next.14
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-l2f8GWJ7.js → jsx-wrapper-DpoYDtf8.js} +23 -20
- package/dist/jsx-wrapper-DpoYDtf8.js.map +1 -0
- package/dist/lib/index.d.ts +6 -29
- package/dist/lib/index.d.ts.map +1 -1
- package/dist/lib/index.js +50 -32
- package/dist/lib/index.js.map +1 -1
- package/package.json +5 -5
- package/dist/jsx-wrapper-l2f8GWJ7.js.map +0 -1
|
@@ -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";
|
|
@@ -1723,7 +1723,7 @@ var ApiHmrTracker = class ApiHmrTracker {
|
|
|
1723
1723
|
requestIdleCallback(() => {
|
|
1724
1724
|
this.propagatedReloadCount = Math.max(this.propagatedReloadCount, reloadCount);
|
|
1725
1725
|
this.mountLikeTimer = null;
|
|
1726
|
-
});
|
|
1726
|
+
}, { timeout: 50 });
|
|
1727
1727
|
}, 0);
|
|
1728
1728
|
}
|
|
1729
1729
|
};
|
|
@@ -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
|
|
@@ -3562,5 +3565,5 @@ const useJSXContext = () => {
|
|
|
3562
3565
|
};
|
|
3563
3566
|
|
|
3564
3567
|
//#endregion
|
|
3565
|
-
export {
|
|
3566
|
-
//# sourceMappingURL=jsx-wrapper-
|
|
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 };
|
|
3569
|
+
//# sourceMappingURL=jsx-wrapper-DpoYDtf8.js.map
|