@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.
@@ -1,4 +1,4 @@
1
- import { S as api_hmr_tracker_default, _ as root_store_default, t as makeWrappedComponent } from "../jsx-wrapper-l2f8GWJ7.js";
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, { children: [/* @__PURE__ */ jsx("h3", { children: this.props.header || "Something went wrong." }), /* @__PURE__ */ jsxs("details", {
3417
- style: { fontSize: "0.8em" },
3418
- children: [/* @__PURE__ */ jsx("summary", {
3419
- style: { paddingLeft: "0.25rem" },
3420
- children: "Error details"
3421
- }), /* @__PURE__ */ jsx("div", {
3422
- style: {
3423
- marginTop: "0.5rem",
3424
- maxWidth: "100%",
3425
- overflowX: "auto",
3426
- scrollbarWidth: "thin"
3427
- },
3428
- children: /* @__PURE__ */ jsx("pre", {
3429
- style: { color: "gray" },
3430
- children: /* @__PURE__ */ jsx("code", { children: this.state.error?.stack ? this.state.error.stack : this.state.error?.toString() })
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
- })] }), /* @__PURE__ */ jsxs(ErrorActionsContainer, { children: [isEditMode() && /* @__PURE__ */ jsx(FixWithClarkButton, {
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 { useSuperblocksUser as A, Section as B, rejectById as C, useSuperblocksContext as D, getAppMode as E, isEmbeddedBySuperblocksFirstParty as F, getEditStore as H, isEditMode as I, createManagedPropsList as L, colors as M, editorBridge as N, useSuperblocksGroups as O, iframeMessageHandler as P, Prop as R, api_hmr_tracker_default as S, SuperblocksContextProvider as T, createPropertiesPanelDefinition 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, sendNotification as j, useSuperblocksProfiles 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, resolveById as w, getContextFromTraceHeaders as x, generateId as y, PropsCategory as z };
3566
- //# sourceMappingURL=jsx-wrapper-l2f8GWJ7.js.map
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