@superblocksteam/library 2.0.174-next.0 → 2.0.175-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.
Files changed (31) hide show
  1. package/dist/build-manifest-tU0L2vSJ.js +5 -0
  2. package/dist/{build-manifest-BQAcrmit.js.map → build-manifest-tU0L2vSJ.js.map} +1 -1
  3. package/dist/{devtools-consolidated-C5sXwPGD.js → devtools-consolidated-DLnb73OV.js} +3 -5
  4. package/dist/{devtools-consolidated-C5sXwPGD.js.map → devtools-consolidated-DLnb73OV.js.map} +1 -1
  5. package/dist/{early-console-buffer-DMR1SCsN.js → early-console-buffer-B88uX-DV.js} +4 -5
  6. package/dist/{early-console-buffer-DMR1SCsN.js.map → early-console-buffer-B88uX-DV.js.map} +1 -1
  7. package/dist/jsx-dev-runtime/index.d.ts +2 -7
  8. package/dist/jsx-dev-runtime/index.d.ts.map +1 -1
  9. package/dist/jsx-dev-runtime/index.js +3 -6
  10. package/dist/jsx-dev-runtime/index.js.map +1 -1
  11. package/dist/jsx-runtime/index.d.ts +3 -6
  12. package/dist/jsx-runtime/index.d.ts.map +1 -1
  13. package/dist/jsx-runtime/index.js +1 -2
  14. package/dist/{root-store-G9HJE1Mf.js → jsx-wrapper-BAO7prWO.js} +771 -107
  15. package/dist/jsx-wrapper-BAO7prWO.js.map +1 -0
  16. package/dist/lib/index.d.ts +72 -179
  17. package/dist/lib/index.d.ts.map +1 -1
  18. package/dist/lib/index.js +311 -378
  19. package/dist/lib/index.js.map +1 -1
  20. package/dist/{logs-CUUgkcJf.js → logs-rwNn0yg7.js} +13 -13
  21. package/dist/{logs-CUUgkcJf.js.map → logs-rwNn0yg7.js.map} +1 -1
  22. package/dist/{sdk-api-discovery-_lfMr9d5.js → sdk-api-discovery-CtyMcIGP.js} +8 -12
  23. package/dist/{sdk-api-discovery-_lfMr9d5.js.map → sdk-api-discovery-CtyMcIGP.js.map} +1 -1
  24. package/package.json +36 -42
  25. package/dist/build-manifest-BQAcrmit.js +0 -6
  26. package/dist/jsx-wrapper-B0I9j3Al.js +0 -639
  27. package/dist/jsx-wrapper-B0I9j3Al.js.map +0 -1
  28. package/dist/rolldown-runtime-CiIaOW0V.js +0 -13
  29. package/dist/root-store-G9HJE1Mf.js.map +0 -1
  30. package/dist/utils-DXaAwgS_.js +0 -61
  31. package/dist/utils-DXaAwgS_.js.map +0 -1
@@ -3,22 +3,16 @@ import { DataRouter, Location, Params } from "react-router";
3
3
  import { EditorConfig, EvaluateOrValueComputedArgs, Property, TailwindPropertyKey } from "@superblocksteam/library-shared";
4
4
  import * as React$2 from "react";
5
5
  import React$1, { ReactNode, createElement } from "react";
6
- import { OrchestratorViewMode, PlaceholderInfo, Profile } from "@superblocksteam/shared";
6
+ import { PlaceholderInfo, Profile } from "@superblocksteam/shared";
7
7
  import { AiContextMode, AppToEditorMessage, Catalog, ComponentRegistryShareState, ConsoleLogEntry, CreateChild, CreateChild as CreateChild$1, DeleteMeLibraryApi, EditorConfig as EditorConfig$1, Entity, EntityOutputProp, ExecutionTimingBreakdown, InitData, InteractionMode, LoadErrorMessageTypesMap, PayloadAction, PropertyInfo, RuntimeErrorData, SbApiRunOptions, SbElement, SbSelector, SourceLocation, UrlState, ViteMessage, ViteMessageKind, WithBindingIdentifier } from "@superblocksteam/library-shared/types";
8
- import * as _$react_jsx_runtime0 from "react/jsx-runtime";
9
8
  import { CompiledApi, IntegrationDeclaration } from "@superblocksteam/sdk-api";
10
9
  import { Graph } from "@dagrejs/graphlib";
11
- import { XYCoord } from "react-dnd";
12
-
13
- //#region src/lib/internal-details/scope/types.d.ts
14
10
  declare const AppMode: {
15
11
  readonly EDIT: "EDIT";
16
12
  readonly PUBLISHED: "PUBLISHED";
17
13
  readonly PREVIEW: "PREVIEW";
18
14
  };
19
15
  type AppMode = (typeof AppMode)[keyof typeof AppMode];
20
- //#endregion
21
- //#region src/lib/internal-details/superblocks-context.d.ts
22
16
  type User = {
23
17
  name: string;
24
18
  email: string;
@@ -70,39 +64,28 @@ declare class SuperblocksAppContext {
70
64
  };
71
65
  } | undefined;
72
66
  }
73
- declare function useSuperblocksUser(): User | undefined;
74
- declare function useSuperblocksGroups(): Group[] | undefined;
75
- declare function useSuperblocksDataTags(): {
67
+ export declare function useSuperblocksUser(): User | undefined;
68
+ export declare function useSuperblocksGroups(): Group[] | undefined;
69
+ export declare function useSuperblocksDataTags(): {
76
70
  dataTags: DataTags | undefined;
77
71
  setDataTag: (dataTagKey: string) => void;
78
72
  };
79
73
  /** @deprecated Use useSuperblocksDataTags instead */
80
- declare function useSuperblocksProfiles(): {
74
+ export declare function useSuperblocksProfiles(): {
81
75
  profiles: DataTags | undefined;
82
76
  setProfile: (dataTagKey: string) => void;
83
77
  };
84
- declare function getAppMode(): AppMode | undefined;
85
- //#endregion
86
- //#region src/lib/user-facing/sb-provider.d.ts
87
- declare const SbProvider: ({
88
- name,
89
- children,
90
- className,
91
- context
92
- }: {
78
+ export declare function getAppMode(): AppMode | undefined;
79
+ declare const SbProvider: ({ name, children, className, context }: {
93
80
  name?: string;
94
81
  children?: React$1.ReactNode;
95
82
  className?: string;
96
83
  context?: SuperblocksAppContext;
97
- }) => _$react_jsx_runtime0.JSX.Element;
98
- //#endregion
99
- //#region src/lib/internal-details/lib/evaluator/entity-types.d.ts
84
+ }) => import("react/jsx-runtime").JSX.Element;
100
85
  type SingleInputProp<T = EntityOutputProp, ARGS extends any[] = any[]> = T extends Callback ? Callback<ARGS> : T;
101
- type NestedInputProp<T, ARGS extends any[] = any[]> = T extends object ? { [K in keyof T]: SingleInputProp<T[K], ARGS> | NestedInputProp<T[K], ARGS> } : never;
86
+ type NestedInputProp<T, ARGS extends any[] = any[]> = T extends object ? { [K in keyof T]: SingleInputProp<T[K], ARGS> | NestedInputProp<T[K], ARGS>; } : never;
102
87
  type InputProp<T = EntityOutputProp, ARGS extends any[] = any[]> = SingleInputProp<T, ARGS> | NestedInputProp<T, ARGS>;
103
88
  type EntityFunction<ARGS extends any[] = any[], R = EntityOutputProp> = (this: Entity, ...ARGS: ARGS) => R;
104
- //#endregion
105
- //#region src/edit-mode/runtime-graph/types.d.ts
106
89
  type ComponentNode = {
107
90
  selectorId: SbSelector;
108
91
  sourceId: SbElement;
@@ -114,8 +97,6 @@ type ComponentNode = {
114
97
  nearestSelectableAncestor: SbSelector | undefined;
115
98
  displayName: string;
116
99
  };
117
- //#endregion
118
- //#region src/edit-mode/features/runtime-tracking-store.d.ts
119
100
  declare class RuntimeTrackingStore {
120
101
  readonly editStore: EditStore | undefined;
121
102
  constructor(editStore: EditStore | undefined);
@@ -161,8 +142,6 @@ declare class RuntimeTrackingStore {
161
142
  */
162
143
  getOutermostComponentForFirstRenderedTag(anchorSelectorId: SbSelector): SbSelector | undefined;
163
144
  }
164
- //#endregion
165
- //#region src/edit-mode/features/ai-store.d.ts
166
145
  declare class AiManager {
167
146
  private readonly runtimeTrackingStore;
168
147
  private _isTaggingEnabled;
@@ -206,8 +185,6 @@ declare class AiManager {
206
185
  private removeAllSharedSelectors;
207
186
  private removeAllSelectorsForSource;
208
187
  }
209
- //#endregion
210
- //#region src/edit-mode/features/connection-manager.d.ts
211
188
  type ConnectionStatus = "pre-init" | "disconnected" | "connecting" | "connected";
212
189
  declare class ConnectionManager {
213
190
  connectionStatus: ConnectionStatus;
@@ -216,13 +193,9 @@ declare class ConnectionManager {
216
193
  connect(): void;
217
194
  disconnect(): void;
218
195
  }
219
- //#endregion
220
- //#region src/edit-mode/features/operation-store.d.ts
221
196
  declare class OperationManager {
222
197
  ensureFilesSynced(): Promise<void>;
223
198
  }
224
- //#endregion
225
- //#region src/edit-mode/features/ui-store.d.ts
226
199
  declare class UIStore {
227
200
  readonly root: RootStore;
228
201
  readonly editStore: EditStore;
@@ -253,11 +226,8 @@ declare class UIStore {
253
226
  */
254
227
  selectNewComponentBySourceId(sourceId: SbElement, selectorIdsToIgnore?: Set<`S-${string}`>): Promise<void>;
255
228
  }
256
- //#endregion
257
- //#region src/edit-mode/edit-store.d.ts
258
229
  declare global {
259
230
  interface Window {
260
- _SB_ENABLE_SESSION_RECORDING?: boolean;
261
231
  __SUPERBLOCKS_EDITOR_HOOK__: InstanceType<typeof EditStore>;
262
232
  }
263
233
  }
@@ -268,7 +238,6 @@ declare class EditStore {
268
238
  connectionManager: ConnectionManager;
269
239
  ai: AiManager;
270
240
  isInitialized: boolean;
271
- recordingInitialized: boolean;
272
241
  interactionMode: InteractionMode;
273
242
  lastInteractionMode: InteractionMode;
274
243
  private viteMessageListeners;
@@ -281,14 +250,7 @@ declare class EditStore {
281
250
  triggerViteMessage<T extends ViteMessageKind, Message extends Extract<ViteMessage, {
282
251
  kind: T;
283
252
  }>>(kind: T, message: Message): void;
284
- startRecording(recording: {
285
- userId: string;
286
- appId: string;
287
- sessionRecordingKey: string;
288
- }): void;
289
253
  }
290
- //#endregion
291
- //#region src/lib/internal-details/lib/types.d.ts
292
254
  type ExecutionError = {
293
255
  name?: string;
294
256
  message: string;
@@ -303,10 +265,10 @@ type ExecutionEventRequest = {
303
265
  };
304
266
  };
305
267
  type Resolutions = Record<string, // name of the field: eg: "range", for the range field let's say the code is {{[1,2,3]}}
306
- {
307
- value: any;
308
- bindings: any[];
309
- }>;
268
+ {
269
+ value: any;
270
+ bindings: any[];
271
+ }>;
310
272
  type ExecutionEvent = {
311
273
  name: string;
312
274
  type: string;
@@ -368,9 +330,13 @@ interface SdkApiMetadata {
368
330
  isStreaming: boolean;
369
331
  /** Declared integrations for this API */
370
332
  integrations: Array<{
371
- /** Key used in the API code to reference this integration */key: string; /** Plugin ID (e.g., "postgres", "slack") */
372
- pluginId: string; /** Integration name (e.g., "Production Postgres") */
373
- name: string; /** Integration ID (UUID) */
333
+ /** Key used in the API code to reference this integration */
334
+ key: string;
335
+ /** Plugin ID (e.g., "postgres", "slack") */
336
+ pluginId: string;
337
+ /** Integration name (e.g., "Production Postgres") */
338
+ name: string;
339
+ /** Integration ID (UUID) */
374
340
  id: string;
375
341
  }>;
376
342
  /** Entry point file path relative to app root (e.g. "server/apis/GetUsers/api.ts") */
@@ -508,9 +474,11 @@ type FromParentToChildMessageTypesMap = {
508
474
  agents: AgentInfo[];
509
475
  logContext: Record<string, unknown>;
510
476
  featureFlags?: Record<string, unknown>;
511
- sessionRecordingKey?: string; /** Selected integration profile for API execution */
512
- profile?: SdkProfileInfo; /** Current git branch name (editor mode only) */
513
- branchName?: string; /** Deployed/preview commit ID (non-editor modes) */
477
+ /** Selected integration profile for API execution */
478
+ profile?: SdkProfileInfo;
479
+ /** Current git branch name (editor mode only) */
480
+ branchName?: string;
481
+ /** Deployed/preview commit ID (non-editor modes) */
514
482
  commitId?: string;
515
483
  /**
516
484
  * Profile keys mapped to data-plane URLs when the gateway is enabled.
@@ -521,7 +489,9 @@ type FromParentToChildMessageTypesMap = {
521
489
  forceRefreshScopedToken?: boolean;
522
490
  };
523
491
  "sb-update-active-agents": {
524
- /** Pre-filtered URLs for current profile (cloud org fallback) */agentUrls: string[]; /** All active on-premise agents for local profile filtering */
492
+ /** Pre-filtered URLs for current profile (cloud org fallback) */
493
+ agentUrls: string[];
494
+ /** All active on-premise agents for local profile filtering */
525
495
  agents: AgentInfo[];
526
496
  /**
527
497
  * DP routing config mapping profile keys to DP URLs.
@@ -749,7 +719,10 @@ type FromChildToParentMessageTypesMap = LoadErrorMessageTypesMap & {
749
719
  interactionMode: InteractionMode;
750
720
  };
751
721
  getDropTargetResult: {
752
- offset: XYCoord;
722
+ offset: {
723
+ x: number;
724
+ y: number;
725
+ };
753
726
  size: {
754
727
  height: number;
755
728
  width: number;
@@ -890,7 +863,8 @@ type FromChildToParentMessageTypesMap = LoadErrorMessageTypesMap & {
890
863
  /** Full page content dimensions (APPS-5714), so the caller can choose
891
864
  * sensible `region` coordinates on a follow-up capture. Absent on error. */
892
865
  pageWidth?: number;
893
- pageHeight?: number; /** Which rectangle this capture actually used. Absent on error. */
866
+ pageHeight?: number;
867
+ /** Which rectangle this capture actually used. Absent on error. */
894
868
  mode?: ScreenshotCaptureMode;
895
869
  /** The part of the page the image shows, in full-page pixel coordinates.
896
870
  * Absent for selector captures. */
@@ -995,8 +969,6 @@ type FromChildToParentMessageTypesMap = LoadErrorMessageTypesMap & {
995
969
  };
996
970
  } & AppToEditorMessage;
997
971
  type FromChildToParentMessageTypes = keyof FromChildToParentMessageTypesMap;
998
- //#endregion
999
- //#region src/lib/internal-details/location-store.d.ts
1000
972
  declare class LocationStore {
1001
973
  route?: RouteInfo;
1002
974
  rootStore: RootStore;
@@ -1006,8 +978,6 @@ declare class LocationStore {
1006
978
  private matchesToRoutePattern;
1007
979
  locationToRouteInfo(location: Location, routes: DataRouter["routes"], params: Readonly<Params<string>>): RouteInfo | undefined;
1008
980
  }
1009
- //#endregion
1010
- //#region src/lib/internal-details/lib/features/api-store.d.ts
1011
981
  type ApiResult<T = any> = {
1012
982
  data?: T;
1013
983
  error?: string;
@@ -1066,23 +1036,14 @@ declare class ApiManager {
1066
1036
  private awaitBootstrapIfNeeded;
1067
1037
  notifyBootstrapComplete(): void;
1068
1038
  private prewarmExecutionPath;
1069
- loadApiManifest({
1070
- apis
1071
- }: {
1039
+ loadApiManifest({ apis }: {
1072
1040
  apis?: Record<string, {
1073
1041
  api: DeleteMeLibraryApi;
1074
1042
  scopeId: string;
1075
1043
  }>;
1076
1044
  }): void;
1077
1045
  rerunApiByCallId(callId: string): Promise<ApiResult>;
1078
- runApiByPath({
1079
- path,
1080
- inputs,
1081
- callId,
1082
- callback,
1083
- isTestRun,
1084
- injectedCallerId
1085
- }: {
1046
+ runApiByPath({ path, inputs, callId, callback, isTestRun, injectedCallerId }: {
1086
1047
  path: string;
1087
1048
  inputs: SbApiRunOptions;
1088
1049
  callId?: string;
@@ -1123,8 +1084,6 @@ declare class ApiManager {
1123
1084
  }>;
1124
1085
  cancelApi(apiName: string, _scopeId?: string): Promise<void>;
1125
1086
  }
1126
- //#endregion
1127
- //#region src/lib/internal-details/lib/root-store.d.ts
1128
1087
  /**
1129
1088
  * User information extracted from JWT for SDK API execution.
1130
1089
  * Matches the ApiUser interface from @superblocksteam/sdk-api.
@@ -1255,8 +1214,6 @@ declare class RootStore {
1255
1214
  notifyEditorRegistered(): void;
1256
1215
  onEditorRegistered(fn: () => void): void;
1257
1216
  }
1258
- //#endregion
1259
- //#region src/lib/internal-details/lib/features/component-registry.d.ts
1260
1217
  type DefaultTagNames = {
1261
1218
  container: string;
1262
1219
  button: string;
@@ -1294,8 +1251,6 @@ declare class ComponentRegistry implements ComponentRegistryShareState {
1294
1251
  */
1295
1252
  hasComponent(component: React$2.ElementType | string): boolean;
1296
1253
  }
1297
- //#endregion
1298
- //#region src/lib/internal-details/sb-wrapper.d.ts
1299
1254
  type InjectedProps = {
1300
1255
  dropTargetRef?: React$1.Ref<HTMLElement> | React$1.LegacyRef<HTMLElement>;
1301
1256
  };
@@ -1308,7 +1263,7 @@ interface CreationContext {
1308
1263
  selfTagName: string;
1309
1264
  generateUniqueName: (prefix: string) => string;
1310
1265
  }
1311
- type PropertyValues<P extends React$1.ComponentProps<any>> = { [K in keyof P]?: PropertyInfo | PropertyValues<P[K]> };
1266
+ type PropertyValues<P extends React$1.ComponentProps<any>> = { [K in keyof P]?: PropertyInfo | PropertyValues<P[K]>; };
1312
1267
  interface EditorTemplate<P extends React$1.ComponentProps<any> = React$1.ComponentProps<any>> {
1313
1268
  catalog?: Catalog;
1314
1269
  /***
@@ -1344,8 +1299,6 @@ interface Chainable<PROPS extends React$1.ComponentProps<any> = React$1.Componen
1344
1299
  * @returns A chainable object that provides methods for editor integration (addEditorTemplate and editorConfig).
1345
1300
  */
1346
1301
  declare const registerComponentInternal: <T extends React$1.ElementType>(Component: T, propertiesDefinition: PropertiesDefinition) => Chainable<React$1.ComponentProps<T>>;
1347
- //#endregion
1348
- //#region src/lib/user-facing/component-base/sb-component.d.ts
1349
1302
  type SbComponentProps<El = HTMLElement> = {
1350
1303
  name?: string;
1351
1304
  bind?: WithBindingIdentifier;
@@ -1355,8 +1308,6 @@ type SbComponentProps<El = HTMLElement> = {
1355
1308
  */
1356
1309
  loading?: boolean;
1357
1310
  } & Omit<React.HTMLAttributes<El>, "height" | "width">;
1358
- //#endregion
1359
- //#region src/lib/user-facing/properties-panel/props-builder.d.ts
1360
1311
  type Exact<T, Shape> = T extends Shape ? Exclude<keyof T, keyof Shape> extends never ? T : never : never;
1361
1312
  type ManagedProp<T extends DataType = DataType> = PropertyForData<T> & {
1362
1313
  default?: SingleInputProp<T>;
@@ -1402,15 +1353,12 @@ type DefaultValueBehavior = "RequiredIfDefault" | "AlwaysOptional";
1402
1353
  * Extracts the concrete type from a property definition
1403
1354
  * Enhanced to handle contextual properties
1404
1355
  */
1405
- type ExtractPropType<T, DefaultsBehavior extends DefaultValueBehavior, IsEvaluated extends boolean> = T extends Record<string, Prop<any, any, any>> ? ExtractProps<T, DefaultsBehavior, IsEvaluated> : T extends RecordProp<infer U> ? Record<string, ExtractProps<U, DefaultsBehavior, IsEvaluated>> : T extends CompositeProp<infer U> ? IsEvaluated extends true ? ExtractProps<U, DefaultsBehavior, IsEvaluated> : InputProp<ExtractProps<U, DefaultsBehavior, true>> : T extends UnionProp<infer SHARED, infer VARIANTS> ? VARIANTS extends readonly any[] ? { [I in keyof VARIANTS]: ExtractProps<MergeUnionVariant<SHARED, VARIANTS[I]>, DefaultsBehavior, IsEvaluated> }[number] : never : T extends Prop<infer V, infer _HasDefault, infer ContextualProps> ? IsEvaluated extends true ? ContextualProps extends undefined ? V extends Callback ? (...args: any[]) => Promise<void> : V : ContextualProps extends any[] ? (...args: ContextualProps) => V : InputProp<V> : InputProp<V> : never;
1356
+ type ExtractPropType<T, DefaultsBehavior extends DefaultValueBehavior, IsEvaluated extends boolean> = T extends Record<string, Prop<any, any, any>> ? ExtractProps<T, DefaultsBehavior, IsEvaluated> : T extends RecordProp<infer U> ? Record<string, ExtractProps<U, DefaultsBehavior, IsEvaluated>> : T extends CompositeProp<infer U> ? IsEvaluated extends true ? ExtractProps<U, DefaultsBehavior, IsEvaluated> : InputProp<ExtractProps<U, DefaultsBehavior, true>> : T extends UnionProp<infer SHARED, infer VARIANTS> ? VARIANTS extends readonly any[] ? { [I in keyof VARIANTS]: ExtractProps<MergeUnionVariant<SHARED, VARIANTS[I]>, DefaultsBehavior, IsEvaluated>; }[number] : never : T extends Prop<infer V, infer _HasDefault, infer ContextualProps> ? IsEvaluated extends true ? ContextualProps extends undefined ? V extends Callback ? (...args: any[]) => Promise<void> : V : ContextualProps extends any[] ? (...args: ContextualProps) => V : InputProp<V> : InputProp<V> : never;
1406
1357
  /**
1407
1358
  * Extracts a flat props object from a properties definition
1408
1359
  * Handles optionality based on DefaultValueBehavior
1409
1360
  */
1410
- type ExtractProps<T, DefaultsBehavior extends DefaultValueBehavior, IsEvaluated extends boolean> = T extends Record<string, Section> ? ExtractProps<MergeSections<T>, DefaultsBehavior, IsEvaluated> : T extends SectionPropRecord ? DefaultsBehavior extends "AlwaysOptional" ? { [K in keyof T as T[K] extends Prop<any, any, any> ? K : never]?: ExtractPropType<T[K], DefaultsBehavior, IsEvaluated> } : { [K in keyof T as T[K] extends Prop<any, infer HasDefault, any> ? HasDefault extends true ? K : never : never]: ExtractPropType<T[K], DefaultsBehavior, IsEvaluated> } & { [K in keyof T as T[K] extends Prop<any, infer HasDefault, any> ? HasDefault extends false ? K : never : never]?: ExtractPropType<T[K], DefaultsBehavior, IsEvaluated> } : never;
1411
- /**
1412
- * Handles non Prop types, aka our default types and CSS props
1413
- */
1361
+ type ExtractProps<T, DefaultsBehavior extends DefaultValueBehavior, IsEvaluated extends boolean> = T extends Record<string, Section> ? ExtractProps<MergeSections<T>, DefaultsBehavior, IsEvaluated> : T extends SectionPropRecord ? DefaultsBehavior extends "AlwaysOptional" ? { [K in keyof T as T[K] extends Prop<any, any, any> ? K : never]?: ExtractPropType<T[K], DefaultsBehavior, IsEvaluated>; } : { [K in keyof T as T[K] extends Prop<any, infer HasDefault, any> ? HasDefault extends true ? K : never : never]: ExtractPropType<T[K], DefaultsBehavior, IsEvaluated>; } & { [K in keyof T as T[K] extends Prop<any, infer HasDefault, any> ? HasDefault extends false ? K : never : never]?: ExtractPropType<T[K], DefaultsBehavior, IsEvaluated>; } : never;
1414
1362
  type SectionPropertiesPanelConfig = {
1415
1363
  showHeader?: boolean;
1416
1364
  isDefaultOpen?: boolean;
@@ -1431,22 +1379,17 @@ type EntityProps<Definition extends PropertiesDefinition, MergedSections = Merge
1431
1379
  * - Properties are fully evaluated to their final types
1432
1380
  */
1433
1381
  type InternalProps<Definition extends PropertiesDefinition, FlattenedProps = EntityProps<Definition>, BaseProps = Omit<SbComponentProps, keyof FlattenedProps>> = FlattenedProps & BaseProps & InjectedProps;
1434
- /**
1435
- * External props exposed to component consumers
1436
- * - All properties are optional regardless of defaults
1437
- * - Properties accept InputProp values (bindings/functions)
1438
- */
1439
1382
  type PropertiesDefinition = Record<string, Section>;
1440
- type SectionPropRecord<Props = Record<string, any>> = Partial<{ [K in keyof Props]: Prop<Props[K], any> }>;
1383
+ type SectionPropRecord<Props = Record<string, any>> = Partial<{ [K in keyof Props]: Prop<Props[K], any>; }>;
1441
1384
  declare class Section<TProps = any, // Component props type for validation
1442
- T extends SectionPropRecord<TProps> = SectionPropRecord<TProps>> {
1385
+ T extends SectionPropRecord<TProps> = SectionPropRecord<TProps>> {
1443
1386
  readonly category: PropsCategory;
1444
1387
  props: T;
1445
1388
  propertiesPanelConfig: SectionPropertiesPanelConfig;
1446
1389
  constructor(category: PropsCategory);
1447
- static category<Props = any>(category: PropsCategory): Section<Props, Partial<{ [K in keyof Props]: Prop<Props[K], any, undefined> }>>;
1448
- children<INP extends SectionPropRecord<TProps> | CompositeProp<any> | UnionProp<any, any>, OUT extends (INP extends CompositeProp<infer CU> ? CU : INP extends UnionProp<infer SHARED, infer VARIANTS> ? VARIANTS extends readonly any[] ? { [I in keyof VARIANTS]: MergeUnionVariant<SHARED, VARIANTS[I]> }[number] : never : INP)>(props: INP extends CompositeProp<any> | UnionProp<any, any> ? INP : Exact<INP, SectionPropRecord<TProps>>): Section<TProps, T & OUT>;
1449
- add: <INP extends SectionPropRecord<TProps> | CompositeProp<any> | UnionProp<any, any>, OUT extends (INP extends CompositeProp<infer CU> ? CU : INP extends UnionProp<infer SHARED, infer VARIANTS> ? VARIANTS extends readonly any[] ? { [I in keyof VARIANTS]: MergeUnionVariant<SHARED, VARIANTS[I]> }[number] : never : INP)>(props: INP extends CompositeProp<any> | UnionProp<any, any> ? INP : Exact<INP, SectionPropRecord<TProps>>) => Section<TProps, T & OUT>;
1390
+ static category<Props = any>(category: PropsCategory): Section<Props, Partial<{ [K in keyof Props]: Prop<Props[K], any, undefined>; }>>;
1391
+ children<INP extends SectionPropRecord<TProps> | CompositeProp<any> | UnionProp<any, any>, OUT extends (INP extends CompositeProp<infer CU> ? CU : INP extends UnionProp<infer SHARED, infer VARIANTS> ? VARIANTS extends readonly any[] ? { [I in keyof VARIANTS]: MergeUnionVariant<SHARED, VARIANTS[I]>; }[number] : never : INP)>(props: INP extends CompositeProp<any> | UnionProp<any, any> ? INP : Exact<INP, SectionPropRecord<TProps>>): Section<TProps, T & OUT>;
1392
+ add: <INP extends SectionPropRecord<TProps> | CompositeProp<any> | UnionProp<any, any>, OUT extends (INP extends CompositeProp<infer CU> ? CU : INP extends UnionProp<infer SHARED, infer VARIANTS> ? VARIANTS extends readonly any[] ? { [I in keyof VARIANTS]: MergeUnionVariant<SHARED, VARIANTS[I]>; }[number] : never : INP)>(props: INP extends CompositeProp<any> | UnionProp<any, any> ? INP : Exact<INP, SectionPropRecord<TProps>>) => Section<TProps, T & OUT>;
1450
1393
  /** @deprecated Panel configuration is accepted for source compatibility and ignored. */
1451
1394
  propertiesPanel(_config: SectionPropertiesPanelConfig): this;
1452
1395
  get name(): "Content" | "Routing" | "Interaction" | "Styles" | "Layout" | "Appearance" | "Permissions" | "Uncategorized" | "Actions";
@@ -1509,7 +1452,7 @@ declare class Prop<Type extends DataType, _HasDefault extends boolean = false, _
1509
1452
  static union<SHARED extends Record<string, Prop<unknown, boolean>>, VARIANTS extends UnionVariant<SHARED>[] = UnionVariant<SHARED>[]>(props: {
1510
1453
  shared: SHARED;
1511
1454
  variants: VARIANTS;
1512
- }): UnionProp<SHARED, VARIANTS, VARIANTS extends readonly any[] ? { [I in keyof VARIANTS]: SHARED & VARIANTS[I] }[number] : never>;
1455
+ }): UnionProp<SHARED, VARIANTS, VARIANTS extends readonly any[] ? { [I in keyof VARIANTS]: SHARED & VARIANTS[I]; }[number] : never>;
1513
1456
  default(de: SingleInputProp<DataType>): Prop<Type, true>;
1514
1457
  contextual<TContext extends any[] | undefined = any[]>(computedArgs?: EvaluateOrValueComputedArgs): Prop<Type, _HasDefault, TContext>;
1515
1458
  setName(name: string): this;
@@ -1557,16 +1500,14 @@ declare class FunctionProp<ARGS extends any[] = any[], RETURN = any> extends Pro
1557
1500
  actionPanel(_panel?: ActionPanel): this;
1558
1501
  getActionPanel(): ActionPanel | undefined;
1559
1502
  }
1560
- type UnionVariant<SHARED extends Record<string, Prop<any>>> = { [K in keyof SHARED]: Prop<any> };
1561
- declare class UnionProp<SHARED extends Record<string, Prop<unknown, boolean>>, VARIANTS extends UnionVariant<SHARED>[] = UnionVariant<SHARED>[], _OUTPUT = (VARIANTS extends readonly any[] ? { [I in keyof VARIANTS]: SHARED & VARIANTS[I] }[number] : never)> extends Prop<any> {
1503
+ type UnionVariant<SHARED extends Record<string, Prop<any>>> = { [K in keyof SHARED]: Prop<any>; };
1504
+ declare class UnionProp<SHARED extends Record<string, Prop<unknown, boolean>>, VARIANTS extends UnionVariant<SHARED>[] = UnionVariant<SHARED>[], _OUTPUT = VARIANTS extends readonly any[] ? { [I in keyof VARIANTS]: SHARED & VARIANTS[I]; }[number] : never> extends Prop<any> {
1562
1505
  typeString: "union";
1563
1506
  shared: SHARED;
1564
1507
  variants: VARIANTS;
1565
1508
  constructor(shared: SHARED, variants: VARIANTS);
1566
1509
  getProps(): Record<string, Prop<any, false, undefined>>;
1567
1510
  }
1568
- //#endregion
1569
- //#region src/lib/user-facing/components/app/props.d.ts
1570
1511
  declare const propertiesDefinition: {
1571
1512
  contents: Section<any, Partial<{
1572
1513
  [x: string]: Prop<any, any, undefined>;
@@ -1579,20 +1520,12 @@ declare const propertiesDefinition: {
1579
1520
  className: Prop<string, any, undefined>;
1580
1521
  }>>;
1581
1522
  };
1582
- //#endregion
1583
- //#region src/lib/user-facing/components/app/index.d.ts
1584
- declare const App: (({
1585
- children,
1586
- className,
1587
- context
1588
- }: InternalProps<typeof propertiesDefinition> & {
1523
+ declare const App: (({ children, className, context }: InternalProps<typeof propertiesDefinition> & {
1589
1524
  context?: SuperblocksAppContext;
1590
- }) => _$react_jsx_runtime0.JSX.Element) & {
1525
+ }) => import("react/jsx-runtime").JSX.Element) & {
1591
1526
  displayName: string;
1592
1527
  };
1593
- //#endregion
1594
- //#region src/lib/user-facing/components/custom/register-custom-component.d.ts
1595
- type PropertiesPanelDefinition<Props extends React$1.ComponentProps<any>> = SectionPropRecord<Props> | { [K in string]: Section<Props, SectionPropRecord<Props>> };
1528
+ type PropertiesPanelDefinition<Props extends React$1.ComponentProps<any>> = SectionPropRecord<Props> | { [K in string]: Section<Props, SectionPropRecord<Props>>; };
1596
1529
  /**
1597
1530
  * Registers a custom React component or HTML element with Superblocks.
1598
1531
  *
@@ -1628,29 +1561,16 @@ type PropertiesPanelDefinition<Props extends React$1.ComponentProps<any>> = Sect
1628
1561
  * });
1629
1562
  * ```
1630
1563
  */
1631
- declare function registerComponent<T extends React$1.ElementType>(component: T, propertiesDefinition?: PropertiesPanelDefinition<React$1.ComponentProps<T>>): ReturnType<typeof registerComponentInternal>;
1632
- //#endregion
1633
- //#region src/lib/user-facing/error-pages/page-not-found.d.ts
1634
- declare const PageNotFound: ({
1635
- title,
1636
- errorMessage,
1637
- buttonPath,
1638
- buttonText,
1639
- onButtonClick,
1640
- hideActions
1641
- }: {
1564
+ export declare function registerComponent<T extends React$1.ElementType>(component: T, propertiesDefinition?: PropertiesPanelDefinition<React$1.ComponentProps<T>>): ReturnType<typeof registerComponentInternal>;
1565
+ export declare const PageNotFound: ({ title, errorMessage, buttonPath, buttonText, onButtonClick, hideActions }: {
1642
1566
  title?: string;
1643
1567
  errorMessage?: string | React$1.ReactElement;
1644
1568
  buttonPath?: string;
1645
1569
  buttonText?: string;
1646
1570
  onButtonClick?: () => void;
1647
1571
  hideActions?: boolean;
1648
- }) => _$react_jsx_runtime0.JSX.Element;
1649
- //#endregion
1650
- //#region src/lib/internal-details/internal-components/route-load-error.d.ts
1651
- declare function RouteLoadError(): _$react_jsx_runtime0.JSX.Element;
1652
- //#endregion
1653
- //#region src/lib/internal-details/use-api.d.ts
1572
+ }) => import("react/jsx-runtime").JSX.Element;
1573
+ export declare function RouteLoadError(): import("react/jsx-runtime").JSX.Element;
1654
1574
  declare global {
1655
1575
  interface SuperblocksAPIRegistry {}
1656
1576
  }
@@ -1668,12 +1588,6 @@ type ApiInterfaces<Name extends string> = Name extends keyof SuperblocksAPIRegis
1668
1588
  input: never;
1669
1589
  output: never;
1670
1590
  };
1671
- /**
1672
- * Get the API path for an API by name.
1673
- *
1674
- * When SDK APIs are enabled, paths point to `/server/apis/<name>/api.ts`.
1675
- * When using legacy YAML mode, paths point to `/apis/<name>/api.yaml`.
1676
- */
1677
1591
  /** Helper type to extract input type from a CompiledApi */
1678
1592
  type ApiInput<T> = T extends CompiledApi<infer TInput, any> ? TInput : never;
1679
1593
  /** Helper type to extract output type from a CompiledApi */
@@ -1756,14 +1670,14 @@ type UseApiReturnType<TName extends string> = TName extends keyof ApiRegistry ?
1756
1670
  * @param name - The name of the registered API to execute
1757
1671
  * @returns An object with `run` and `cancel` functions
1758
1672
  */
1759
- declare function useApiStateful<Name extends RegisteredAPINames, Inputs = ApiInterfaces<Name>["input"], Response = ApiInterfaces<Name>["output"]>(name: Name): UseApiCoreMethods<Inputs, Response>;
1760
- declare function useApi<TName extends string>(apiName: TName, inputs?: undefined): UseApiReturnType<TName>;
1673
+ export declare function useApiStateful<Name extends RegisteredAPINames, Inputs = ApiInterfaces<Name>["input"], Response = ApiInterfaces<Name>["output"]>(name: Name): UseApiCoreMethods<Inputs, Response>;
1674
+ export declare function useApi<TName extends string>(apiName: TName, inputs?: undefined): UseApiReturnType<TName>;
1761
1675
  /**
1762
1676
  * @deprecated Use `useApiData` for declarative data fetching.
1763
1677
  * This overload will be removed in a future major version.
1764
1678
  */
1765
- declare function useApi<TName extends string>(apiName: TName, inputs: TName extends keyof ApiRegistry ? ApiInput<ApiRegistry[TName]> : Record<string, unknown>): UseApiReturnType<TName>;
1766
- declare function useApi<TApi extends CompiledApi<unknown, unknown>>(apiName: string, inputs?: ApiInput<TApi>): UseApiResult<ApiInput<TApi>, ApiOutput<TApi>>;
1679
+ export declare function useApi<TName extends string>(apiName: TName, inputs: TName extends keyof ApiRegistry ? ApiInput<ApiRegistry[TName]> : Record<string, unknown>): UseApiReturnType<TName>;
1680
+ export declare function useApi<TApi extends CompiledApi<unknown, unknown>>(apiName: string, inputs?: ApiInput<TApi>): UseApiResult<ApiInput<TApi>, ApiOutput<TApi>>;
1767
1681
  /**
1768
1682
  * Type for a registry of compiled APIs.
1769
1683
  * Used with useTypedApi to enable automatic type inference.
@@ -1788,9 +1702,7 @@ interface TypedUseApi<TRegistry extends AnyApiRegistry> {
1788
1702
  *
1789
1703
  * @returns A typed useApi function
1790
1704
  */
1791
- declare function useTypedApi<TRegistry extends AnyApiRegistry>(): TypedUseApi<TRegistry>;
1792
- //#endregion
1793
- //#region src/lib/internal-details/use-api-data.d.ts
1705
+ export declare function useTypedApi<TRegistry extends AnyApiRegistry>(): TypedUseApi<TRegistry>;
1794
1706
  interface UseApiDataResult<TOutput> {
1795
1707
  /** The most recent successful response. Persists across background refetches. */
1796
1708
  data: TOutput | undefined;
@@ -1879,7 +1791,7 @@ interface UseApiDataOptions {
1879
1791
  /** Shown while the real fetch is in progress, before any data arrives. */
1880
1792
  placeholderData?: unknown;
1881
1793
  }
1882
- declare function useApiData(apiName: string, inputs: Record<string, unknown>, options?: UseApiDataOptions): UseApiDataResult<unknown>;
1794
+ export declare function useApiData(apiName: string, inputs: Record<string, unknown>, options?: UseApiDataOptions): UseApiDataResult<unknown>;
1883
1795
  interface TypedUseApiData<TRegistry extends AnyApiRegistry> {
1884
1796
  <TName extends keyof TRegistry & string>(apiName: TName, inputs: ApiInput<TRegistry[TName]>, options?: UseApiDataOptions): UseApiDataResult<ApiOutput<TRegistry[TName]>>;
1885
1797
  }
@@ -1893,9 +1805,7 @@ interface TypedUseApiData<TRegistry extends AnyApiRegistry> {
1893
1805
  * export const useApiData = useTypedApiData<ApiRegistry>();
1894
1806
  * ```
1895
1807
  */
1896
- declare function useTypedApiData<TRegistry extends AnyApiRegistry>(): TypedUseApiData<TRegistry>;
1897
- //#endregion
1898
- //#region src/lib/internal-details/execute-api.d.ts
1808
+ export declare function useTypedApiData<TRegistry extends AnyApiRegistry>(): TypedUseApiData<TRegistry>;
1899
1809
  interface ExecuteApiOptions {
1900
1810
  /** AbortSignal to cancel the request mid-flight. */
1901
1811
  signal?: AbortSignal;
@@ -1915,7 +1825,7 @@ interface ExecuteApiOptions {
1915
1825
  * @throws {DOMException} with name "AbortError" if cancelled via signal.
1916
1826
  * @throws The orchestrator error object on API failure.
1917
1827
  */
1918
- declare function executeApi(apiName: string, inputs?: Record<string, unknown>, options?: ExecuteApiOptions): Promise<unknown>;
1828
+ export declare function executeApi(apiName: string, inputs?: Record<string, unknown>, options?: ExecuteApiOptions): Promise<unknown>;
1919
1829
  type TypedExecuteApi<TRegistry extends AnyApiRegistry> = <TName extends keyof TRegistry & string>(apiName: TName, inputs?: ApiInput<TRegistry[TName]>, options?: ExecuteApiOptions) => Promise<ApiOutput<TRegistry[TName]>>;
1920
1830
  /**
1921
1831
  * Creates a typed version of executeApi bound to a specific API registry.
@@ -1927,9 +1837,7 @@ type TypedExecuteApi<TRegistry extends AnyApiRegistry> = <TName extends keyof TR
1927
1837
  * export const executeApi = createTypedExecuteApi<ApiRegistry>();
1928
1838
  * ```
1929
1839
  */
1930
- declare function createTypedExecuteApi<TRegistry extends AnyApiRegistry>(): TypedExecuteApi<TRegistry>;
1931
- //#endregion
1932
- //#region src/lib/internal-details/query-cache.d.ts
1840
+ export declare function createTypedExecuteApi<TRegistry extends AnyApiRegistry>(): TypedExecuteApi<TRegistry>;
1933
1841
  /**
1934
1842
  * Build a deterministic, string cache key from API name + inputs.
1935
1843
  * Sorts object entries so { b: 2, a: 1 } and { a: 1, b: 2 } produce
@@ -1945,9 +1853,7 @@ declare class QueryClient {
1945
1853
  clear: () => void;
1946
1854
  };
1947
1855
  }
1948
- declare const queryClient: QueryClient;
1949
- //#endregion
1950
- //#region src/lib/user-facing/global-functions.d.ts
1856
+ export declare const queryClient: QueryClient;
1951
1857
  /**
1952
1858
  * Logs out the user from all authenticated integrations used in APIs.
1953
1859
  *
@@ -1973,22 +1879,18 @@ declare const queryClient: QueryClient;
1973
1879
  * }
1974
1880
  * ```
1975
1881
  */
1976
- declare function logoutIntegrations(): Promise<{
1882
+ export declare function logoutIntegrations(): Promise<{
1977
1883
  success: boolean;
1978
1884
  errors?: Array<{
1979
1885
  message: string;
1980
1886
  }>;
1981
1887
  }>;
1982
- //#endregion
1983
- //#region src/lib/user-facing/properties-panel/mixins/styles-category.d.ts
1984
1888
  /** @deprecated Accepted for source compatibility. Returns an empty section. */
1985
- declare const tailwindStylesCategory: (_props?: {
1889
+ export declare const tailwindStylesCategory: (_props?: {
1986
1890
  prioritizedTailwindProperties?: TailwindPropertyKey[];
1987
1891
  }) => Section<{
1988
1892
  className: string;
1989
1893
  }>;
1990
- //#endregion
1991
- //#region src/lib/internal-details/embed-store.d.ts
1992
1894
  /**
1993
1895
  * Store for managing embed properties and events.
1994
1896
  * Used when the library is embedded in an external application (third-party embedding).
@@ -2028,9 +1930,7 @@ declare class EmbedStore {
2028
1930
  message: string;
2029
1931
  }): void;
2030
1932
  }
2031
- declare const embedStore: EmbedStore;
2032
- //#endregion
2033
- //#region src/lib/user-facing/embed.d.ts
1933
+ export declare const embedStore: EmbedStore;
2034
1934
  /**
2035
1935
  * Emit a custom event to the external embedder.
2036
1936
  * This is used when the library is embedded in an iframe
@@ -2069,12 +1969,10 @@ declare function getEmbedProperties(): Record<string, unknown>;
2069
1969
  * The Superblocks object provides utilities for interacting with
2070
1970
  * the embedding context when the library is embedded in an iframe.
2071
1971
  */
2072
- declare const Superblocks: {
1972
+ export declare const Superblocks: {
2073
1973
  emitEvent: typeof emitEvent;
2074
1974
  getEmbedProperties: typeof getEmbedProperties;
2075
1975
  };
2076
- //#endregion
2077
- //#region src/lib/hooks/use-embed-properties.d.ts
2078
1976
  /**
2079
1977
  * React hook for accessing embed properties passed from the external embedder.
2080
1978
  * Automatically re-renders when properties change.
@@ -2096,9 +1994,7 @@ declare const Superblocks: {
2096
1994
  * }
2097
1995
  * ```
2098
1996
  */
2099
- declare function useEmbedProperties(): Record<string, unknown>;
2100
- //#endregion
2101
- //#region src/lib/hooks/use-embed-event.d.ts
1997
+ export declare function useEmbedProperties(): Record<string, unknown>;
2102
1998
  /**
2103
1999
  * React hook for listening to events triggered by the external embedder.
2104
2000
  * The handler will be called whenever the embedder triggers the specified event.
@@ -2125,9 +2021,7 @@ declare function useEmbedProperties(): Record<string, unknown>;
2125
2021
  * }
2126
2022
  * ```
2127
2023
  */
2128
- declare function useEmbedEvent(eventName: string, handler: (payload: Record<string, unknown>) => void): void;
2129
- //#endregion
2130
- //#region src/lib/hooks/use-emit-embed-event.d.ts
2024
+ export declare function useEmbedEvent(eventName: string, handler: (payload: Record<string, unknown>) => void): void;
2131
2025
  /**
2132
2026
  * React hook that returns a function to emit events to the external embedder.
2133
2027
  * Use this to communicate actions or state changes back to the parent application.
@@ -2161,7 +2055,6 @@ declare function useEmbedEvent(eventName: string, handler: (payload: Record<stri
2161
2055
  * }
2162
2056
  * ```
2163
2057
  */
2164
- declare function useEmitEmbedEvent(): (eventName: string, payload?: Record<string, unknown>) => void;
2165
- //#endregion
2166
- export { type AgentInfo, type AnyApiRegistry, type ApiInput, type ApiOutput, type ApiRegistry, App, type CreateChild, type CreationContext, type DataTag, type DataTags, type EditorConfig, type EditorTemplate, type ExecuteApiOptions, type FromChildToParentMessageTypes, type FromChildToParentMessageTypesMap, type FromParentToChildMessageTypes, type FromParentToChildMessageTypesMap, type IframeLoadTimings, PageNotFound, Prop, type PropertiesPanelDefinition, Property, PropsCategory, RouteLoadError, Section, Superblocks, SbProvider as SuperblocksProvider, type TypedExecuteApi, type TypedUseApi, type TypedUseApiData, type UseApiDataOptions, type UseApiDataResult, type UseApiResult, type UseApiReturnType, createElement, createTypedExecuteApi, embedStore, executeApi, getAppMode, logoutIntegrations, queryClient, registerComponent, tailwindStylesCategory, useApi, useApiData, useApiStateful, useEmbedEvent, useEmbedProperties, useEmitEmbedEvent, useSuperblocksDataTags, useSuperblocksGroups, useSuperblocksProfiles, useSuperblocksUser, useTypedApi, useTypedApiData };
2058
+ export declare function useEmitEmbedEvent(): (eventName: string, payload?: Record<string, unknown>) => void;
2059
+ export { type AgentInfo, type AnyApiRegistry, type ApiInput, type ApiOutput, type ApiRegistry, App, type CreateChild, type CreationContext, type DataTag, type DataTags, type EditorConfig, type EditorTemplate, type ExecuteApiOptions, type FromChildToParentMessageTypes, type FromChildToParentMessageTypesMap, type FromParentToChildMessageTypes, type FromParentToChildMessageTypesMap, type IframeLoadTimings, Prop, type PropertiesPanelDefinition, Property, PropsCategory, Section, SbProvider as SuperblocksProvider, type TypedExecuteApi, type TypedUseApi, type TypedUseApiData, type UseApiDataOptions, type UseApiDataResult, type UseApiResult, type UseApiReturnType, createElement };
2167
2060
  //# sourceMappingURL=index.d.ts.map