@superblocksteam/library 2.0.72-next.7 → 2.0.72

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.
@@ -5,7 +5,7 @@ import * as React$2 from "react";
5
5
  import React$1, { LegacyRef, ReactNode } from "react";
6
6
  import { OrchestratorViewMode, PlaceholderInfo, Profile } from "@superblocksteam/shared";
7
7
  import { AiContextMode, AppToEditorMessage, Catalog, CatalogWithInternalDetails, ComponentRegistryShareState, ConsoleLogEntry, CreateChild, CreateChild as CreateChild$1, CreateRequest, DeleteMeLibraryApi, DeleteRequest, EditOperationPayload, EditOperationType, EditOperations, EditorConfig as EditorConfig$1, Entity, EntityOutputProp, InitData, InteractionMode, PayloadAction, PropertyInfo, ReparentRequest, RuntimeErrorData, RuntimeSyncComposite, SbApiRunOptions, SbElement, SbSelector, SetPropertiesRequest, SetPropertyRequest, SourceLocation, TransactionInfo, UrlState, ViteMessage, ViteMessageKind, WithBindingIdentifier } from "@superblocksteam/library-shared/types";
8
- import * as react_jsx_runtime0 from "react/jsx-runtime";
8
+ import * as react_jsx_runtime2 from "react/jsx-runtime";
9
9
  import { Graph } from "@dagrejs/graphlib";
10
10
  import { XYCoord } from "react-dnd";
11
11
 
@@ -76,7 +76,7 @@ declare const SbProvider: ({
76
76
  children?: React$1.ReactNode;
77
77
  className?: string;
78
78
  context?: SuperblocksAppContext;
79
- }) => react_jsx_runtime0.JSX.Element;
79
+ }) => react_jsx_runtime2.JSX.Element;
80
80
  //#endregion
81
81
  //#region src/lib/internal-details/lib/types.d.ts
82
82
  type ExecutionError = {
@@ -1220,7 +1220,7 @@ declare const App: (({
1220
1220
  context
1221
1221
  }: InternalProps<typeof propertiesDefinition> & {
1222
1222
  context?: SuperblocksAppContext;
1223
- }) => react_jsx_runtime0.JSX.Element) & {
1223
+ }) => react_jsx_runtime2.JSX.Element) & {
1224
1224
  displayName: string;
1225
1225
  };
1226
1226
  //#endregion
@@ -1278,10 +1278,10 @@ declare const PageNotFound: ({
1278
1278
  buttonText?: string;
1279
1279
  onButtonClick?: () => void;
1280
1280
  hideActions?: boolean;
1281
- }) => react_jsx_runtime0.JSX.Element;
1281
+ }) => react_jsx_runtime2.JSX.Element;
1282
1282
  //#endregion
1283
1283
  //#region src/lib/internal-details/internal-components/route-load-error.d.ts
1284
- declare function RouteLoadError(): react_jsx_runtime0.JSX.Element;
1284
+ declare function RouteLoadError(): react_jsx_runtime2.JSX.Element;
1285
1285
  //#endregion
1286
1286
  //#region src/lib/internal-details/use-api.d.ts
1287
1287
  declare global {
package/dist/lib/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { n as consoleLogAttributes, t as early_console_buffer_default } from "../early-console-buffer-D4wVuyBf.js";
2
- import { A as useSuperblocksProfiles, B as PropsCategory, C as addNewPromise, D as getAppMode, E as SuperblocksContextProvider, F as iframeMessageHandler, H as createPropertiesPanelDefinition, I as isEmbeddedBySuperblocksFirstParty, L as isEditMode, M as sendNotification, N as colors$1, O as useSuperblocksContext, P as editorBridge, R as createManagedPropsList, S as api_hmr_tracker_default, T as resolveById, U as getEditStore, V as Section, _ as root_store_default, a as FixWithClarkButton, b as createIframeSpan, c as ErrorContent, d as ErrorMessage, f as ErrorStack, g as StyledClarkIcon, h as SecondaryButton, i as getWidgetRectAnchorName, j as useSuperblocksUser, k as useSuperblocksGroups, l as ErrorDetails, m as ErrorTitle, n as useJSXContext, o as ActionsContainer, p as ErrorSummary, r as getWidgetAnchorName, s as ErrorContainer, u as ErrorIconContainer, v as startEditorSync, w as rejectById, x as getContextFromTraceHeaders, y as generateId, z as Prop } from "../jsx-wrapper-qqx_Djw4.js";
2
+ import { A as useSuperblocksProfiles, B as PropsCategory, C as addNewPromise, D as getAppMode, E as SuperblocksContextProvider, F as iframeMessageHandler, H as createPropertiesPanelDefinition, I as isEmbeddedBySuperblocksFirstParty, L as isEditMode, M as sendNotification, N as colors$1, O as useSuperblocksContext, P as editorBridge, R as createManagedPropsList, S as api_hmr_tracker_default, T as resolveById, U as getEditStore, V as Section, _ as root_store_default, a as FixWithClarkButton, b as createIframeSpan, c as ErrorContent, d as ErrorMessage, f as ErrorStack, g as StyledClarkIcon, h as SecondaryButton, i as getWidgetRectAnchorName, j as useSuperblocksUser, k as useSuperblocksGroups, l as ErrorDetails, m as ErrorTitle, n as useJSXContext, o as ActionsContainer, p as ErrorSummary, r as getWidgetAnchorName, s as ErrorContainer, u as ErrorIconContainer, v as startEditorSync, w as rejectById, x as getContextFromTraceHeaders, y as generateId, z as Prop } from "../jsx-wrapper-DpoYDtf8.js";
3
3
  import { n as initTracerProviderWithOrigin } from "../utils-Clb3lSiX.js";
4
4
  import { action, autorun, computed, makeAutoObservable, makeObservable, observable, reaction, when } from "mobx";
5
5
  import { Dim, NATIVE_COMPONENT_TYPES, NO_SELECT_ATTRIBUTE, Property, Property as Property$1, SELECTOR_ID_ATTRIBUTE, SOURCE_ID_ATTRIBUTE, generateSourceId, getBindingIdentifier } from "@superblocksteam/library-shared";
@@ -4297,16 +4297,19 @@ var InternalErrorBoundary = class extends React.Component {
4297
4297
  render() {
4298
4298
  if (this.state.hasError) return /* @__PURE__ */ jsx(Observer, { children: () => {
4299
4299
  if (root_store_default.editStore?.ai.getIsEditing() ?? false) return null;
4300
- return /* @__PURE__ */ jsx(ErrorContainer, { children: /* @__PURE__ */ jsxs(ErrorContent, { children: [
4301
- /* @__PURE__ */ jsx(ErrorIconContainer, { children: /* @__PURE__ */ jsx(StyledClarkIcon, {}) }),
4302
- /* @__PURE__ */ jsx(ErrorTitle, { children: "Something went wrong" }),
4303
- /* @__PURE__ */ jsx(ErrorMessage, { children: this.state.error?.message || "Unknown error" }),
4304
- /* @__PURE__ */ jsxs(ActionsContainer, { children: [isEditMode() && /* @__PURE__ */ jsx(FixWithClarkButton, { error: this.state.error }), /* @__PURE__ */ jsx(SecondaryButton, {
4305
- onClick: this.handleRefresh,
4306
- children: "Refresh page"
4307
- })] }),
4308
- this.state.error && /* @__PURE__ */ jsxs(ErrorDetails, { children: [/* @__PURE__ */ jsx(ErrorSummary, { children: "Full details" }), /* @__PURE__ */ jsx(ErrorStack, { children: this.state.error.stack })] })
4309
- ] }) });
4300
+ return /* @__PURE__ */ jsx(ErrorContainer, {
4301
+ "data-testid": "runtime-error-container",
4302
+ children: /* @__PURE__ */ jsxs(ErrorContent, { children: [
4303
+ /* @__PURE__ */ jsx(ErrorIconContainer, { children: /* @__PURE__ */ jsx(StyledClarkIcon, {}) }),
4304
+ /* @__PURE__ */ jsx(ErrorTitle, { children: "Something went wrong" }),
4305
+ /* @__PURE__ */ jsx(ErrorMessage, { children: this.state.error?.message || "Unknown error" }),
4306
+ /* @__PURE__ */ jsxs(ActionsContainer, { children: [isEditMode() && /* @__PURE__ */ jsx(FixWithClarkButton, { error: this.state.error }), /* @__PURE__ */ jsx(SecondaryButton, {
4307
+ onClick: this.handleRefresh,
4308
+ children: "Refresh page"
4309
+ })] }),
4310
+ this.state.error && /* @__PURE__ */ jsxs(ErrorDetails, { children: [/* @__PURE__ */ jsx(ErrorSummary, { children: "Full details" }), /* @__PURE__ */ jsx(ErrorStack, { children: this.state.error.stack })] })
4311
+ ] })
4312
+ });
4310
4313
  } });
4311
4314
  return this.props.children;
4312
4315
  }