@superblocksteam/library 2.0.6-next.7 → 2.0.6-next.71

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 (110) hide show
  1. package/dist/{allPaths-cfdTvRwb.js → allPaths-C8bb71IY.js} +2 -2
  2. package/dist/{allPaths-cfdTvRwb.js.map → allPaths-C8bb71IY.js.map} +1 -1
  3. package/dist/{allPaths-BaN7j3DM.js → allPaths-D1A23ujt.js} +2 -2
  4. package/dist/{allPaths-BaN7j3DM.js.map → allPaths-D1A23ujt.js.map} +1 -1
  5. package/dist/{allPathsLoader-Bqab9RxG.js → allPathsLoader-CNN9R2Rh.js} +3 -3
  6. package/dist/{allPathsLoader-Bqab9RxG.js.map → allPathsLoader-CNN9R2Rh.js.map} +1 -1
  7. package/dist/{allPathsLoader-CEIi2NMj.js → allPathsLoader-DWutM7hr.js} +3 -3
  8. package/dist/{allPathsLoader-CEIi2NMj.js.map → allPathsLoader-DWutM7hr.js.map} +1 -1
  9. package/dist/{devtools-consolidated-B4v0ntt4.js → devtools-consolidated-BUaLyAXz.js} +2 -2
  10. package/dist/{devtools-consolidated-B4v0ntt4.js.map → devtools-consolidated-BUaLyAXz.js.map} +1 -1
  11. package/dist/{icons-NrNO8p_u.js → icons-lSlfQ50w.js} +10 -14
  12. package/dist/icons-lSlfQ50w.js.map +1 -0
  13. package/dist/{index-BJ9sUmxE.js → index-CJ3tumTb.js} +17589 -15788
  14. package/dist/{index-BJ9sUmxE.js.map → index-CJ3tumTb.js.map} +1 -1
  15. package/dist/index.js +150 -149
  16. package/dist/{splitPathsBySizeLoader-DIu1tvhz.js → splitPathsBySizeLoader-BDi1wIry.js} +2 -2
  17. package/dist/{splitPathsBySizeLoader-DIu1tvhz.js.map → splitPathsBySizeLoader-BDi1wIry.js.map} +1 -1
  18. package/dist/{splitPathsBySizeLoader-DA-I4-Q0.js → splitPathsBySizeLoader-XfZ-1ll3.js} +2 -2
  19. package/dist/{splitPathsBySizeLoader-DA-I4-Q0.js.map → splitPathsBySizeLoader-XfZ-1ll3.js.map} +1 -1
  20. package/dist-types/edit-mode/dnd/utils.d.ts +4 -0
  21. package/dist-types/edit-mode/features/ui-store.d.ts +1 -1
  22. package/dist-types/edit-mode/iframe-wrappers.d.ts +1 -0
  23. package/dist-types/edit-mode/source-update-api.d.ts +5 -0
  24. package/dist-types/edit-mode/superblocks-editor-bridge.d.ts +7 -1
  25. package/dist-types/internal-testing/components/slideout.d.ts +3 -0
  26. package/dist-types/lib/index.d.ts +1 -0
  27. package/dist-types/lib/internal-details/lib/evaluator/base-entity-manager.d.ts +14 -13
  28. package/dist-types/lib/internal-details/lib/evaluator/compute-engines.d.ts +2 -1
  29. package/dist-types/lib/internal-details/lib/evaluator/create-scope-proxy.d.ts +1 -1
  30. package/dist-types/lib/internal-details/lib/evaluator/entity-manager.d.ts +5 -6
  31. package/dist-types/lib/internal-details/lib/evaluator/lazy-function.d.ts +2 -1
  32. package/dist-types/lib/internal-details/lib/evaluator/pretty-print-function.d.ts +1 -1
  33. package/dist-types/lib/internal-details/lib/evaluator/sanitize-object.d.ts +6 -0
  34. package/dist-types/lib/internal-details/lib/evaluator/suspense-helpers.d.ts +8 -0
  35. package/dist-types/lib/internal-details/lib/evaluator/use-shallow-mobx-observer.d.ts +1 -1
  36. package/dist-types/lib/internal-details/lib/features/component-registry.d.ts +14 -0
  37. package/dist-types/lib/internal-details/lib/root-store.d.ts +2 -0
  38. package/dist-types/lib/internal-details/lib/types.d.ts +34 -1
  39. package/dist-types/lib/internal-details/location-store.d.ts +18 -0
  40. package/dist-types/lib/internal-details/scope/global.d.ts +1 -1
  41. package/dist-types/lib/internal-details/scope/types.d.ts +2 -2
  42. package/dist-types/lib/triggers/implementations/components/control-slideout.d.ts +4 -3
  43. package/dist-types/lib/triggers/implementations/state/reset-state-var.d.ts +3 -3
  44. package/dist-types/lib/triggers/implementations/state/set-state-var.d.ts +3 -3
  45. package/dist-types/lib/triggers/implementations/timers/control-timer.d.ts +4 -3
  46. package/dist-types/lib/triggers/registry.d.ts +8 -8
  47. package/dist-types/lib/user-facing/build-manifest.d.ts +2 -0
  48. package/dist-types/lib/user-facing/component-base/sb-component.d.ts +5 -1
  49. package/dist-types/lib/user-facing/components/button/index.d.ts +26 -26
  50. package/dist-types/lib/user-facing/components/button/props.d.ts +26 -26
  51. package/dist-types/lib/user-facing/components/checkbox/index.d.ts +31 -31
  52. package/dist-types/lib/user-facing/components/checkbox/props.d.ts +31 -31
  53. package/dist-types/lib/user-facing/components/column/index.d.ts +19 -19
  54. package/dist-types/lib/user-facing/components/column/props.d.ts +19 -19
  55. package/dist-types/lib/user-facing/components/container/index.d.ts +21 -21
  56. package/dist-types/lib/user-facing/components/container/props.d.ts +21 -21
  57. package/dist-types/lib/user-facing/components/custom/register-custom-component.d.ts +14 -11
  58. package/dist-types/lib/user-facing/components/date-picker/index.d.ts +48 -48
  59. package/dist-types/lib/user-facing/components/date-picker/props.d.ts +48 -48
  60. package/dist-types/lib/user-facing/components/dropdown/index.d.ts +54 -54
  61. package/dist-types/lib/user-facing/components/dropdown/props.d.ts +54 -54
  62. package/dist-types/lib/user-facing/components/grid/index.d.ts +13 -13
  63. package/dist-types/lib/user-facing/components/icon/index.d.ts +11 -13
  64. package/dist-types/lib/user-facing/components/icon/props.d.ts +11 -13
  65. package/dist-types/lib/user-facing/components/image/index.d.ts +20 -20
  66. package/dist-types/lib/user-facing/components/image/props.d.ts +23 -23
  67. package/dist-types/lib/user-facing/components/input/index.d.ts +63 -63
  68. package/dist-types/lib/user-facing/components/input/input-component.d.ts +1 -0
  69. package/dist-types/lib/user-facing/components/input/props.d.ts +63 -63
  70. package/dist-types/lib/user-facing/components/key-value/properties-props.d.ts +21 -21
  71. package/dist-types/lib/user-facing/components/key-value/props.d.ts +27 -27
  72. package/dist-types/lib/user-facing/components/modal/index.d.ts +27 -31
  73. package/dist-types/lib/user-facing/components/modal/props.d.ts +27 -27
  74. package/dist-types/lib/user-facing/components/page/index.d.ts +13 -13
  75. package/dist-types/lib/user-facing/components/page/props.d.ts +13 -13
  76. package/dist-types/lib/user-facing/components/section/index.d.ts +16 -16
  77. package/dist-types/lib/user-facing/components/section/props.d.ts +16 -16
  78. package/dist-types/lib/user-facing/components/slideout/constants.d.ts +10 -0
  79. package/dist-types/lib/user-facing/components/slideout/index.d.ts +41 -1
  80. package/dist-types/lib/user-facing/components/slideout/props.d.ts +39 -19
  81. package/dist-types/lib/user-facing/components/slideout/slideout-component.d.ts +31 -0
  82. package/dist-types/lib/user-facing/components/stack/index.d.ts +38 -38
  83. package/dist-types/lib/user-facing/components/switch/index.d.ts +32 -32
  84. package/dist-types/lib/user-facing/components/switch/props.d.ts +32 -32
  85. package/dist-types/lib/user-facing/components/table/column-properties-panel.d.ts +262 -161
  86. package/dist-types/lib/user-facing/components/table/index.d.ts +305 -205
  87. package/dist-types/lib/user-facing/components/table/props.d.ts +305 -205
  88. package/dist-types/lib/user-facing/components/table/table-utilities.d.ts +4 -4
  89. package/dist-types/lib/user-facing/components/table/table-widget.d.ts +5 -1
  90. package/dist-types/lib/user-facing/components/table/types.d.ts +31 -28
  91. package/dist-types/lib/user-facing/components/text/index.d.ts +35 -35
  92. package/dist-types/lib/user-facing/components/text/props.d.ts +35 -35
  93. package/dist-types/lib/user-facing/constants.d.ts +1 -1
  94. package/dist-types/lib/user-facing/entities/api/props.d.ts +20 -11
  95. package/dist-types/lib/user-facing/entities/api/suspensible-api.d.ts +20 -0
  96. package/dist-types/lib/user-facing/entities/timer/props.d.ts +12 -12
  97. package/dist-types/lib/user-facing/entities/variable/props.d.ts +7 -7
  98. package/dist-types/lib/user-facing/hooks/use-dialog-editing.d.ts +14 -0
  99. package/dist-types/lib/user-facing/layers.d.ts +1 -2
  100. package/dist-types/lib/user-facing/properties-panel/create-managed-props-list.d.ts +4 -0
  101. package/dist-types/lib/user-facing/properties-panel/mixins/appearance-properties.d.ts +12 -12
  102. package/dist-types/lib/user-facing/properties-panel/mixins/appearance.d.ts +2 -2
  103. package/dist-types/lib/user-facing/properties-panel/mixins/form-inputs-properties.d.ts +10 -10
  104. package/dist-types/lib/user-facing/properties-panel/mixins/layout-section.d.ts +45 -45
  105. package/dist-types/lib/user-facing/properties-panel/mixins/loading.d.ts +1 -1
  106. package/dist-types/lib/user-facing/properties-panel/props-builder.d.ts +28 -9
  107. package/dist-types/lib/user-facing/sb-event-flow.d.ts +4 -4
  108. package/dist-types/lib/user-facing/sb-provider.d.ts +1 -2
  109. package/package.json +4 -3
  110. package/dist/icons-NrNO8p_u.js.map +0 -1
@@ -14,6 +14,7 @@ export declare class ComponentRegistry implements ComponentRegistryShareState {
14
14
  private _typeRegistry;
15
15
  private _customComponentRegistry;
16
16
  private _managedPropsRegistry;
17
+ private _internalPropsRegistry;
17
18
  constructor(rootStore: RootStore);
18
19
  addType(type: string, component: Type): void;
19
20
  addCustomComponent(type: string, component: Type): void;
@@ -21,9 +22,22 @@ export declare class ComponentRegistry implements ComponentRegistryShareState {
21
22
  renameCustomComponent(oldName: string, newName: string): void;
22
23
  addManagedProps(type: string, props: ManagedPropsList): void;
23
24
  deleteManagedProps(type: string): void;
25
+ addInternalProps(type: string, props: Array<{
26
+ path: string;
27
+ factory: () => any;
28
+ }>): void;
29
+ getInternalProps(type: string): Array<{
30
+ path: string;
31
+ factory: () => any;
32
+ }>;
24
33
  get libraryComponentList(): string[];
25
34
  get customComponentList(): string[];
26
35
  get managedPropsRegistry(): Map<string, ManagedPropsList>;
27
36
  getManagedProps(type: string): ManagedPropsList;
28
37
  getComponent(type: string): Type | undefined;
38
+ /**
39
+ * Get the property path with the record identifier if it exists. For example,
40
+ * `columns.columnName.label` becomes `columns.*.label`, for record properties.
41
+ */
42
+ getPropertyWithRecordIdentifier(type: string, path: string): string;
29
43
  }
@@ -1,3 +1,4 @@
1
+ import { LocationStore } from "../location-store.js";
1
2
  import ApiManager from "./features/api-store.js";
2
3
  import { ComponentRegistry } from "./features/component-registry.js";
3
4
  import { NameManager } from "./features/name-manager.js";
@@ -9,6 +10,7 @@ declare class RootStore {
9
10
  entityManager: IEntityManager;
10
11
  componentRegistry: ComponentRegistry;
11
12
  editStore?: EditStore;
13
+ locationStore: LocationStore;
12
14
  private editorRegisteredCallbacks;
13
15
  private apisLoaded;
14
16
  private pageScopeLoaded;
@@ -160,11 +160,22 @@ export type FromParentToChildMessageTypesMap = {
160
160
  skipTriggerCreation?: boolean;
161
161
  otherComponentsUpdates?: Record<SbElement, Record<string, PropertyInfo>>;
162
162
  };
163
+ /**
164
+ * Request a route change in the child
165
+ */
166
+ "route-change": {
167
+ route: string;
168
+ params?: Record<string, string>;
169
+ search?: Record<string, string>;
170
+ };
163
171
  };
164
172
  export type FromParentToChildMessageTypes = keyof FromParentToChildMessageTypesMap;
165
173
  export type FromChildToParentMessageTypesMap = {
166
174
  "sb-ready": void;
167
175
  "iframe-action-batch": PayloadAction<unknown>[];
176
+ /**
177
+ * Navigate the parent window to a new URL
178
+ */
168
179
  "navigate-to": {
169
180
  url: string;
170
181
  newWindow?: boolean;
@@ -177,7 +188,6 @@ export type FromChildToParentMessageTypesMap = {
177
188
  "sb-edit-operation-request": EditOperationPayload<EditOperationType>;
178
189
  "client:selectWidgets": {
179
190
  sourceIds: SbElement[];
180
- selectingMultiple: boolean;
181
191
  };
182
192
  getDropTargetResult: {
183
193
  offset: XYCoord;
@@ -224,8 +234,31 @@ export type FromChildToParentMessageTypesMap = {
224
234
  message: any;
225
235
  apiName: string;
226
236
  };
237
+ /**
238
+ * Notify the parent of a route change
239
+ */
240
+ "route-change": {
241
+ /**
242
+ * Uninterpolated route
243
+ * @example "/orders/:orderId"
244
+ */
245
+ route: string;
246
+ /**
247
+ * Interpolated path
248
+ * @example "/orders/123"
249
+ */
250
+ path: string;
251
+ /**
252
+ * Route parameters used
253
+ * @example { orderId: 123 }
254
+ */
255
+ params: Record<string, unknown>;
256
+ };
227
257
  undo: void;
228
258
  redo: void;
259
+ "socket/error": {
260
+ message: string;
261
+ };
229
262
  } & AppToEditorMessage<PropertiesPanelDefinition>;
230
263
  export type FromChildToParentMessageTypes = keyof FromChildToParentMessageTypesMap;
231
264
  export {};
@@ -0,0 +1,18 @@
1
+ import type { RootStore } from "./lib/root-store.js";
2
+ import type { Global as GlobalType } from "./scope/types.js";
3
+ import type { Location } from "react-router";
4
+ type RouteInfo = Location & {
5
+ route: string;
6
+ path: string;
7
+ params: Record<string, unknown>;
8
+ };
9
+ export declare class LocationStore {
10
+ route?: RouteInfo;
11
+ rootStore: RootStore;
12
+ constructor(rootStore: RootStore);
13
+ updateLocation(route: RouteInfo): Promise<void>;
14
+ sendLocationToEditor(route: RouteInfo): void;
15
+ updateGlobalScopeUrl(route: RouteInfo): Promise<void>;
16
+ getUrlState(route: RouteInfo): NonNullable<GlobalType["URL"]>;
17
+ }
18
+ export {};
@@ -1,5 +1,5 @@
1
1
  import type { Global as GlobalType } from "./types.js";
2
- import type { UserAccessibleTheme, Theme as BaseTheme } from "@superblocksteam/library-shared/types";
2
+ import type { Theme as BaseTheme, UserAccessibleTheme } from "@superblocksteam/library-shared/types";
3
3
  export declare const GlobalScope: import("react").FC<import("react").JSX.IntrinsicAttributes & {
4
4
  children: React.ReactNode;
5
5
  }>;
@@ -5,7 +5,7 @@ export declare const AppMode: {
5
5
  readonly PREVIEW: "PREVIEW";
6
6
  };
7
7
  export type AppMode = (typeof AppMode)[keyof typeof AppMode];
8
- export type Global = {
8
+ export interface Global {
9
9
  mode?: AppMode;
10
10
  user?: User;
11
11
  URL?: UrlState;
@@ -25,7 +25,7 @@ export type Global = {
25
25
  id: string;
26
26
  name: string;
27
27
  };
28
- };
28
+ }
29
29
  type User = {
30
30
  name: string;
31
31
  email: string;
@@ -1,17 +1,18 @@
1
1
  import { TriggerStepType } from "@superblocksteam/library-shared/types";
2
2
  import type { BaseStepDef } from "../../../sb-trigger.js";
3
3
  import type { ExecutionContext } from "../../base.js";
4
+ import type { WithBindingIdentifier } from "@superblocksteam/library-shared/types";
4
5
  export interface ControlSlideoutStep extends BaseStepDef {
5
6
  type: typeof TriggerStepType.CONTROL_SLIDEOUT;
6
- name: string;
7
+ name?: string;
7
8
  direction: "open" | "close";
8
9
  }
9
10
  export declare const ControlSlideoutTrigger: {
10
11
  type: "controlSlideout";
11
12
  execute(context: ExecutionContext, step: ControlSlideoutStep): Promise<void>;
12
- create(name: string, direction: "open" | "close"): {
13
+ create(slideout: WithBindingIdentifier, direction: "open" | "close"): {
13
14
  type: "controlSlideout";
14
- name: string;
15
+ name: string | undefined;
15
16
  direction: "close" | "open";
16
17
  };
17
18
  };
@@ -4,13 +4,13 @@ import type { ExecutionContext } from "../../base.js";
4
4
  import type { WithBindingIdentifier } from "@superblocksteam/library-shared/types";
5
5
  export interface ResetStateVarStep extends BaseStepDef {
6
6
  type: typeof TriggerStepType.RESET_STATE_VAR;
7
- state?: WithBindingIdentifier;
7
+ variable?: WithBindingIdentifier;
8
8
  }
9
9
  export declare const ResetStateVarTrigger: {
10
10
  type: "resetStateVar";
11
11
  execute(context: ExecutionContext, step: ResetStateVarStep): Promise<void>;
12
- create(stateVar?: WithBindingIdentifier): {
12
+ create(variable?: WithBindingIdentifier): {
13
13
  type: "resetStateVar";
14
- state: WithBindingIdentifier | undefined;
14
+ variable: WithBindingIdentifier | undefined;
15
15
  };
16
16
  };
@@ -5,15 +5,15 @@ import type { ExecutionContext } from "../../base.js";
5
5
  import type { WithBindingIdentifier } from "@superblocksteam/library-shared/types";
6
6
  export interface SetStateVarStep extends BaseStepDef {
7
7
  type: typeof TriggerStepType.SET_STATE_VAR;
8
- state?: WithBindingIdentifier;
8
+ variable?: WithBindingIdentifier;
9
9
  value?: ValueInputProp;
10
10
  }
11
11
  export declare const SetStateVarTrigger: {
12
12
  type: "setStateVar";
13
13
  execute(context: ExecutionContext, step: SetStateVarStep): Promise<void>;
14
- create(stateVar?: WithBindingIdentifier, value?: ValueInputProp): {
14
+ create(variable?: WithBindingIdentifier, value?: ValueInputProp): {
15
15
  type: "setStateVar";
16
- state: WithBindingIdentifier | undefined;
16
+ variable: WithBindingIdentifier | undefined;
17
17
  value: ValueInputProp;
18
18
  };
19
19
  };
@@ -1,17 +1,18 @@
1
1
  import { TriggerStepType } from "@superblocksteam/library-shared/types";
2
2
  import type { BaseStepDef } from "../../../sb-trigger.js";
3
3
  import type { ExecutionContext } from "../../base.js";
4
+ import type { WithBindingIdentifier } from "@superblocksteam/library-shared/types";
4
5
  export interface ControlTimerStep extends BaseStepDef {
5
6
  type: typeof TriggerStepType.CONTROL_TIMER;
6
- timerId: string;
7
+ timer?: WithBindingIdentifier;
7
8
  action: "start" | "stop" | "toggle";
8
9
  }
9
10
  export declare const ControlTimerTrigger: {
10
11
  type: "controlTimer";
11
12
  execute(_context: ExecutionContext, step: ControlTimerStep): Promise<void>;
12
- create(timerId: string, action: "start" | "stop" | "toggle"): {
13
+ create(timer: WithBindingIdentifier, action: "start" | "stop" | "toggle"): {
13
14
  type: "controlTimer";
14
- timerId: string;
15
+ timer: WithBindingIdentifier;
15
16
  action: "toggle" | "stop" | "start";
16
17
  };
17
18
  };
@@ -69,9 +69,9 @@ declare const EventRegistry: {
69
69
  readonly controlSlideout: {
70
70
  type: "controlSlideout";
71
71
  execute(context: import("./base.js").ExecutionContext, step: import("./implementations/components/control-slideout.js").ControlSlideoutStep): Promise<void>;
72
- create(name: string, direction: "open" | "close"): {
72
+ create(slideout: import("@superblocksteam/library-shared/types").WithBindingIdentifier, direction: "open" | "close"): {
73
73
  type: "controlSlideout";
74
- name: string;
74
+ name: string | undefined;
75
75
  direction: "close" | "open";
76
76
  };
77
77
  };
@@ -116,9 +116,9 @@ declare const EventRegistry: {
116
116
  readonly setStateVar: {
117
117
  type: "setStateVar";
118
118
  execute(context: import("./base.js").ExecutionContext, step: import("./implementations/state/set-state-var.js").SetStateVarStep): Promise<void>;
119
- create(stateVar?: import("@superblocksteam/library-shared/types").WithBindingIdentifier, value?: import("../internal-details/lib/evaluator/base-entity-manager.js").ValueInputProp): {
119
+ create(variable?: import("@superblocksteam/library-shared/types").WithBindingIdentifier, value?: import("../internal-details/lib/evaluator/base-entity-manager.js").ValueInputProp): {
120
120
  type: "setStateVar";
121
- state: import("@superblocksteam/library-shared/types").WithBindingIdentifier | undefined;
121
+ variable: import("@superblocksteam/library-shared/types").WithBindingIdentifier | undefined;
122
122
  value: import("../internal-details/lib/evaluator/base-entity-manager.js").ValueInputProp;
123
123
  };
124
124
  };
@@ -135,17 +135,17 @@ declare const EventRegistry: {
135
135
  readonly resetStateVar: {
136
136
  type: "resetStateVar";
137
137
  execute(context: import("./base.js").ExecutionContext, step: import("./implementations/state/reset-state-var.js").ResetStateVarStep): Promise<void>;
138
- create(stateVar?: import("@superblocksteam/library-shared/types").WithBindingIdentifier): {
138
+ create(variable?: import("@superblocksteam/library-shared/types").WithBindingIdentifier): {
139
139
  type: "resetStateVar";
140
- state: import("@superblocksteam/library-shared/types").WithBindingIdentifier | undefined;
140
+ variable: import("@superblocksteam/library-shared/types").WithBindingIdentifier | undefined;
141
141
  };
142
142
  };
143
143
  readonly controlTimer: {
144
144
  type: "controlTimer";
145
145
  execute(_context: import("./base.js").ExecutionContext, step: import("./implementations/timers/control-timer.js").ControlTimerStep): Promise<void>;
146
- create(timerId: string, action: "start" | "stop" | "toggle"): {
146
+ create(timer: import("@superblocksteam/library-shared/types").WithBindingIdentifier, action: "start" | "stop" | "toggle"): {
147
147
  type: "controlTimer";
148
- timerId: string;
148
+ timer: import("@superblocksteam/library-shared/types").WithBindingIdentifier;
149
149
  action: "toggle" | "stop" | "start";
150
150
  };
151
151
  };
@@ -0,0 +1,2 @@
1
+ declare const _default: {};
2
+ export default _default;
@@ -10,8 +10,12 @@ export type SbComponentProps<El = HTMLElement> = {
10
10
  maxWidth?: Dim;
11
11
  maxHeight?: Dim;
12
12
  sourceId?: SbElement;
13
- reportInstanceId?: (instanceId: SbInstance) => void;
14
13
  marginLeft?: Dim<"columns">;
15
14
  marginTop?: Dim<"rows">;
16
15
  constraintTop?: string | string[];
16
+ /**
17
+ * undefined means auto, true means always loading, false means never loading
18
+ */
19
+ loading?: boolean;
20
+ reportInstanceId?: (instanceId: SbInstance) => void;
17
21
  } & Omit<React.HTMLAttributes<El>, "height" | "width" | "marginLeft" | "marginTop">;
@@ -1,41 +1,41 @@
1
1
  export declare const SbButton: import("react").FC<import("../../properties-panel/props-builder.js").ExternalProps<{
2
- general: import("../../properties-panel/props-builder.js").Section<Record<string, import("../../properties-panel/props-builder.js").Prop<any, any>> & {
3
- label: import("../../properties-panel/props-builder.js").Prop<string, false>;
2
+ general: import("../../properties-panel/props-builder.js").Section<Record<string, import("../../properties-panel/props-builder.js").Prop<any, any, undefined>> & {
3
+ label: import("../../properties-panel/props-builder.js").Prop<string, false, undefined>;
4
4
  }>;
5
- layout: import("../../properties-panel/props-builder.js").Section<Record<string, import("../../properties-panel/props-builder.js").Prop<any, any>> & {
6
- padding: import("../../properties-panel/props-builder.js").Prop<import("@superblocksteam/library-shared/types").Spacing, true>;
5
+ layout: import("../../properties-panel/props-builder.js").Section<Record<string, import("../../properties-panel/props-builder.js").Prop<any, any, undefined>> & {
6
+ padding: import("../../properties-panel/props-builder.js").Prop<import("@superblocksteam/library-shared/types").Spacing, true, undefined>;
7
7
  } & {
8
- maxHeight?: import("../../properties-panel/props-builder.js").Prop<import("@superblocksteam/library-shared").Dim<import("@superblocksteam/library-shared").DimModes>, false> | undefined;
9
- minHeight?: import("../../properties-panel/props-builder.js").Prop<import("@superblocksteam/library-shared").Dim<import("@superblocksteam/library-shared").DimModes>, false> | undefined;
10
- maxWidth?: import("../../properties-panel/props-builder.js").Prop<import("@superblocksteam/library-shared").Dim<import("@superblocksteam/library-shared").DimModes>, false> | undefined;
11
- minWidth?: import("../../properties-panel/props-builder.js").Prop<import("@superblocksteam/library-shared").Dim<import("@superblocksteam/library-shared").DimModes>, false> | undefined;
12
- width: import("../../properties-panel/props-builder.js").Prop<import("@superblocksteam/library-shared").Dim<import("@superblocksteam/library-shared").DimModes>, false>;
13
- height: import("../../properties-panel/props-builder.js").Prop<import("@superblocksteam/library-shared").Dim<import("@superblocksteam/library-shared").DimModes>, false>;
8
+ maxHeight?: import("../../properties-panel/props-builder.js").Prop<import("@superblocksteam/library-shared").Dim<import("@superblocksteam/library-shared").DimModes>, false, undefined> | undefined;
9
+ minHeight?: import("../../properties-panel/props-builder.js").Prop<import("@superblocksteam/library-shared").Dim<import("@superblocksteam/library-shared").DimModes>, false, undefined> | undefined;
10
+ maxWidth?: import("../../properties-panel/props-builder.js").Prop<import("@superblocksteam/library-shared").Dim<import("@superblocksteam/library-shared").DimModes>, false, undefined> | undefined;
11
+ minWidth?: import("../../properties-panel/props-builder.js").Prop<import("@superblocksteam/library-shared").Dim<import("@superblocksteam/library-shared").DimModes>, false, undefined> | undefined;
12
+ width: import("../../properties-panel/props-builder.js").Prop<import("@superblocksteam/library-shared").Dim<import("@superblocksteam/library-shared").DimModes>, false, undefined>;
13
+ height: import("../../properties-panel/props-builder.js").Prop<import("@superblocksteam/library-shared").Dim<import("@superblocksteam/library-shared").DimModes>, false, undefined>;
14
14
  } & {
15
15
  margin: import("../../properties-panel/props-builder.js").Prop<{
16
16
  top: import("@superblocksteam/library-shared").Dim<"px">;
17
17
  bottom: import("@superblocksteam/library-shared").Dim<"px">;
18
18
  left: import("@superblocksteam/library-shared").Dim<"px">;
19
19
  right: import("@superblocksteam/library-shared").Dim<"px">;
20
- } | undefined, true>;
20
+ } | undefined, true, undefined>;
21
21
  } & {
22
- isVisible: import("../../properties-panel/props-builder.js").Prop<boolean, true>;
22
+ isVisible: import("../../properties-panel/props-builder.js").Prop<boolean, true, undefined>;
23
23
  }>;
24
- appearance: import("../../properties-panel/props-builder.js").Section<Record<string, import("../../properties-panel/props-builder.js").Prop<any, any>> & {
25
- variant: import("../../properties-panel/props-builder.js").Prop<import("./props.js").ButtonVariant, true>;
26
- icon: import("../../properties-panel/props-builder.js").Prop<string, false>;
27
- iconPosition: import("../../properties-panel/props-builder.js").Prop<import("../../icons/constants.js").IconPosition, true>;
28
- textStyle: import("../../properties-panel/props-builder.js").Prop<import("@superblocksteam/library-shared/types").TextStyleWithVariant, true>;
29
- backgroundColor: import("../../properties-panel/props-builder.js").Prop<string, true>;
30
- border: import("../../properties-panel/props-builder.js").Prop<import("@superblocksteam/library-shared/types").PerSideBorder, true>;
31
- borderRadius: import("../../properties-panel/props-builder.js").Prop<import("@superblocksteam/library-shared/types").PerCornerBorderRadius, true>;
32
- horizontalAlign: import("../../properties-panel/props-builder.js").Prop<import("@superblocksteam/library-shared/props").HorizontalAlign, true>;
33
- loading: import("../../properties-panel/props-builder.js").Prop<boolean, true>;
24
+ appearance: import("../../properties-panel/props-builder.js").Section<Record<string, import("../../properties-panel/props-builder.js").Prop<any, any, undefined>> & {
25
+ variant: import("../../properties-panel/props-builder.js").Prop<import("./props.js").ButtonVariant, true, undefined>;
26
+ icon: import("../../properties-panel/props-builder.js").Prop<string, false, undefined>;
27
+ iconPosition: import("../../properties-panel/props-builder.js").Prop<import("../../icons/constants.js").IconPosition, true, undefined>;
28
+ textStyle: import("../../properties-panel/props-builder.js").Prop<import("@superblocksteam/library-shared/types").TextStyleWithVariant, true, undefined>;
29
+ backgroundColor: import("../../properties-panel/props-builder.js").Prop<string, true, undefined>;
30
+ border: import("../../properties-panel/props-builder.js").Prop<import("@superblocksteam/library-shared/types").PerSideBorder, true, undefined>;
31
+ borderRadius: import("../../properties-panel/props-builder.js").Prop<import("@superblocksteam/library-shared/types").PerCornerBorderRadius, true, undefined>;
32
+ horizontalAlign: import("../../properties-panel/props-builder.js").Prop<import("@superblocksteam/library-shared/props").HorizontalAlign, true, undefined>;
33
+ loading: import("../../properties-panel/props-builder.js").Prop<boolean, true, undefined>;
34
34
  }>;
35
- interaction: import("../../properties-panel/props-builder.js").Section<Record<string, import("../../properties-panel/props-builder.js").Prop<any, any>> & {
36
- isDisabled: import("../../properties-panel/props-builder.js").Prop<boolean, true>;
35
+ interaction: import("../../properties-panel/props-builder.js").Section<Record<string, import("../../properties-panel/props-builder.js").Prop<any, any, undefined>> & {
36
+ isDisabled: import("../../properties-panel/props-builder.js").Prop<boolean, true, undefined>;
37
37
  }>;
38
- events: import("../../properties-panel/props-builder.js").Section<Record<string, import("../../properties-panel/props-builder.js").Prop<any, any>> & {
39
- onClick: import("../../properties-panel/props-builder.js").Prop<import("../../sb-event-flow.js").SbEventFlow, false>;
38
+ events: import("../../properties-panel/props-builder.js").Section<Record<string, import("../../properties-panel/props-builder.js").Prop<any, any, undefined>> & {
39
+ onClick: import("../../properties-panel/props-builder.js").Prop<import("../../sb-event-flow.js").SbEventFlow, false, undefined>;
40
40
  }>;
41
41
  }>>;
@@ -4,43 +4,43 @@ import type { Dim } from "@superblocksteam/library-shared";
4
4
  import type { HorizontalAlign } from "@superblocksteam/library-shared/props";
5
5
  export type ButtonVariant = "primary" | "secondary" | "tertiary";
6
6
  export declare const propertiesDefinition: {
7
- general: Section<Record<string, Prop<any, any>> & {
8
- label: Prop<string, false>;
7
+ general: Section<Record<string, Prop<any, any, undefined>> & {
8
+ label: Prop<string, false, undefined>;
9
9
  }>;
10
- layout: Section<Record<string, Prop<any, any>> & {
11
- padding: Prop<import("@superblocksteam/library-shared/types").Spacing, true>;
10
+ layout: Section<Record<string, Prop<any, any, undefined>> & {
11
+ padding: Prop<import("@superblocksteam/library-shared/types").Spacing, true, undefined>;
12
12
  } & {
13
- maxHeight?: Prop<Dim<import("@superblocksteam/library-shared").DimModes>, false> | undefined;
14
- minHeight?: Prop<Dim<import("@superblocksteam/library-shared").DimModes>, false> | undefined;
15
- maxWidth?: Prop<Dim<import("@superblocksteam/library-shared").DimModes>, false> | undefined;
16
- minWidth?: Prop<Dim<import("@superblocksteam/library-shared").DimModes>, false> | undefined;
17
- width: Prop<Dim<import("@superblocksteam/library-shared").DimModes>, false>;
18
- height: Prop<Dim<import("@superblocksteam/library-shared").DimModes>, false>;
13
+ maxHeight?: Prop<Dim<import("@superblocksteam/library-shared").DimModes>, false, undefined> | undefined;
14
+ minHeight?: Prop<Dim<import("@superblocksteam/library-shared").DimModes>, false, undefined> | undefined;
15
+ maxWidth?: Prop<Dim<import("@superblocksteam/library-shared").DimModes>, false, undefined> | undefined;
16
+ minWidth?: Prop<Dim<import("@superblocksteam/library-shared").DimModes>, false, undefined> | undefined;
17
+ width: Prop<Dim<import("@superblocksteam/library-shared").DimModes>, false, undefined>;
18
+ height: Prop<Dim<import("@superblocksteam/library-shared").DimModes>, false, undefined>;
19
19
  } & {
20
20
  margin: Prop<{
21
21
  top: Dim<"px">;
22
22
  bottom: Dim<"px">;
23
23
  left: Dim<"px">;
24
24
  right: Dim<"px">;
25
- } | undefined, true>;
25
+ } | undefined, true, undefined>;
26
26
  } & {
27
- isVisible: Prop<boolean, true>;
27
+ isVisible: Prop<boolean, true, undefined>;
28
28
  }>;
29
- appearance: Section<Record<string, Prop<any, any>> & {
30
- variant: Prop<ButtonVariant, true>;
31
- icon: Prop<string, false>;
32
- iconPosition: Prop<IconPosition, true>;
33
- textStyle: Prop<import("@superblocksteam/library-shared/types").TextStyleWithVariant, true>;
34
- backgroundColor: Prop<string, true>;
35
- border: Prop<import("@superblocksteam/library-shared/types").PerSideBorder, true>;
36
- borderRadius: Prop<import("@superblocksteam/library-shared/types").PerCornerBorderRadius, true>;
37
- horizontalAlign: Prop<HorizontalAlign, true>;
38
- loading: Prop<boolean, true>;
29
+ appearance: Section<Record<string, Prop<any, any, undefined>> & {
30
+ variant: Prop<ButtonVariant, true, undefined>;
31
+ icon: Prop<string, false, undefined>;
32
+ iconPosition: Prop<IconPosition, true, undefined>;
33
+ textStyle: Prop<import("@superblocksteam/library-shared/types").TextStyleWithVariant, true, undefined>;
34
+ backgroundColor: Prop<string, true, undefined>;
35
+ border: Prop<import("@superblocksteam/library-shared/types").PerSideBorder, true, undefined>;
36
+ borderRadius: Prop<import("@superblocksteam/library-shared/types").PerCornerBorderRadius, true, undefined>;
37
+ horizontalAlign: Prop<HorizontalAlign, true, undefined>;
38
+ loading: Prop<boolean, true, undefined>;
39
39
  }>;
40
- interaction: Section<Record<string, Prop<any, any>> & {
41
- isDisabled: Prop<boolean, true>;
40
+ interaction: Section<Record<string, Prop<any, any, undefined>> & {
41
+ isDisabled: Prop<boolean, true, undefined>;
42
42
  }>;
43
- events: Section<Record<string, Prop<any, any>> & {
44
- onClick: Prop<import("../../sb-event-flow.js").SbEventFlow, false>;
43
+ events: Section<Record<string, Prop<any, any, undefined>> & {
44
+ onClick: Prop<import("../../sb-event-flow.js").SbEventFlow, false, undefined>;
45
45
  }>;
46
46
  };
@@ -1,47 +1,47 @@
1
1
  export declare const SbCheckbox: import("react").FC<import("../../properties-panel/props-builder.js").ExternalProps<{
2
- general: import("../../properties-panel/props-builder.js").Section<Record<string, import("../../properties-panel/props-builder.js").Prop<any, any>> & {
3
- label: import("../../properties-panel/props-builder.js").Prop<string, true>;
4
- defaultChecked: import("../../properties-panel/props-builder.js").Prop<boolean, true>;
2
+ general: import("../../properties-panel/props-builder.js").Section<Record<string, import("../../properties-panel/props-builder.js").Prop<any, any, undefined>> & {
3
+ label: import("../../properties-panel/props-builder.js").Prop<string, true, undefined>;
4
+ defaultChecked: import("../../properties-panel/props-builder.js").Prop<boolean, true, undefined>;
5
5
  }>;
6
- appearance: import("../../properties-panel/props-builder.js").Section<Record<string, import("../../properties-panel/props-builder.js").Prop<any, any>> & {
7
- labelStyle: import("../../properties-panel/props-builder.js").Prop<import("@superblocksteam/library-shared/types").TextStyleWithVariant, true>;
8
- loading: import("../../properties-panel/props-builder.js").Prop<boolean, true>;
6
+ appearance: import("../../properties-panel/props-builder.js").Section<Record<string, import("../../properties-panel/props-builder.js").Prop<any, any, undefined>> & {
7
+ labelStyle: import("../../properties-panel/props-builder.js").Prop<import("@superblocksteam/library-shared/types").TextStyleWithVariant, true, undefined>;
8
+ loading: import("../../properties-panel/props-builder.js").Prop<boolean, true, undefined>;
9
9
  }>;
10
- layout: import("../../properties-panel/props-builder.js").Section<Record<string, import("../../properties-panel/props-builder.js").Prop<any, any>> & {
11
- maxHeight?: import("../../properties-panel/props-builder.js").Prop<import("@superblocksteam/library-shared").Dim<import("@superblocksteam/library-shared").DimModes>, false> | undefined;
12
- minHeight?: import("../../properties-panel/props-builder.js").Prop<import("@superblocksteam/library-shared").Dim<import("@superblocksteam/library-shared").DimModes>, false> | undefined;
13
- maxWidth?: import("../../properties-panel/props-builder.js").Prop<import("@superblocksteam/library-shared").Dim<import("@superblocksteam/library-shared").DimModes>, false> | undefined;
14
- minWidth?: import("../../properties-panel/props-builder.js").Prop<import("@superblocksteam/library-shared").Dim<import("@superblocksteam/library-shared").DimModes>, false> | undefined;
15
- width: import("../../properties-panel/props-builder.js").Prop<import("@superblocksteam/library-shared").Dim<import("@superblocksteam/library-shared").DimModes>, false>;
16
- height: import("../../properties-panel/props-builder.js").Prop<import("@superblocksteam/library-shared").Dim<import("@superblocksteam/library-shared").DimModes>, false>;
10
+ layout: import("../../properties-panel/props-builder.js").Section<Record<string, import("../../properties-panel/props-builder.js").Prop<any, any, undefined>> & {
11
+ maxHeight?: import("../../properties-panel/props-builder.js").Prop<import("@superblocksteam/library-shared").Dim<import("@superblocksteam/library-shared").DimModes>, false, undefined> | undefined;
12
+ minHeight?: import("../../properties-panel/props-builder.js").Prop<import("@superblocksteam/library-shared").Dim<import("@superblocksteam/library-shared").DimModes>, false, undefined> | undefined;
13
+ maxWidth?: import("../../properties-panel/props-builder.js").Prop<import("@superblocksteam/library-shared").Dim<import("@superblocksteam/library-shared").DimModes>, false, undefined> | undefined;
14
+ minWidth?: import("../../properties-panel/props-builder.js").Prop<import("@superblocksteam/library-shared").Dim<import("@superblocksteam/library-shared").DimModes>, false, undefined> | undefined;
15
+ width: import("../../properties-panel/props-builder.js").Prop<import("@superblocksteam/library-shared").Dim<import("@superblocksteam/library-shared").DimModes>, false, undefined>;
16
+ height: import("../../properties-panel/props-builder.js").Prop<import("@superblocksteam/library-shared").Dim<import("@superblocksteam/library-shared").DimModes>, false, undefined>;
17
17
  } & {
18
18
  margin: import("../../properties-panel/props-builder.js").Prop<{
19
19
  top: import("@superblocksteam/library-shared").Dim<"px">;
20
20
  bottom: import("@superblocksteam/library-shared").Dim<"px">;
21
21
  left: import("@superblocksteam/library-shared").Dim<"px">;
22
22
  right: import("@superblocksteam/library-shared").Dim<"px">;
23
- } | undefined, true>;
23
+ } | undefined, true, undefined>;
24
24
  } & {
25
- isVisible: import("../../properties-panel/props-builder.js").Prop<boolean, true>;
25
+ isVisible: import("../../properties-panel/props-builder.js").Prop<boolean, true, undefined>;
26
26
  }>;
27
- interaction: import("../../properties-panel/props-builder.js").Section<Record<string, import("../../properties-panel/props-builder.js").Prop<any, any>> & {
28
- customValidationRule: import("../../properties-panel/props-builder.js").Prop<string, true>;
29
- customErrorMessage: import("../../properties-panel/props-builder.js").Prop<string, true>;
30
- isRequired: import("../../properties-panel/props-builder.js").Prop<boolean, false>;
31
- isDisabled: import("../../properties-panel/props-builder.js").Prop<boolean, true>;
32
- errorMessagePlacement: import("../../properties-panel/props-builder.js").Prop<import("@superblocksteam/library-shared/props").ErrorMessagePlacement, true>;
27
+ interaction: import("../../properties-panel/props-builder.js").Section<Record<string, import("../../properties-panel/props-builder.js").Prop<any, any, undefined>> & {
28
+ customValidationRule: import("../../properties-panel/props-builder.js").Prop<string, true, undefined>;
29
+ customErrorMessage: import("../../properties-panel/props-builder.js").Prop<string, true, undefined>;
30
+ isRequired: import("../../properties-panel/props-builder.js").Prop<boolean, false, undefined>;
31
+ isDisabled: import("../../properties-panel/props-builder.js").Prop<boolean, true, undefined>;
32
+ errorMessagePlacement: import("../../properties-panel/props-builder.js").Prop<import("@superblocksteam/library-shared/props").ErrorMessagePlacement, true, undefined>;
33
33
  }>;
34
- events: import("../../properties-panel/props-builder.js").Section<Record<string, import("../../properties-panel/props-builder.js").Prop<any, any>> & {
35
- onCheckChange: import("../../properties-panel/props-builder.js").Prop<import("../../sb-event-flow.js").SbEventFlow, false>;
34
+ events: import("../../properties-panel/props-builder.js").Section<Record<string, import("../../properties-panel/props-builder.js").Prop<any, any, undefined>> & {
35
+ onCheckChange: import("../../properties-panel/props-builder.js").Prop<import("../../sb-event-flow.js").SbEventFlow, false, undefined>;
36
36
  }>;
37
- meta: import("../../properties-panel/props-builder.js").Section<Record<string, import("../../properties-panel/props-builder.js").Prop<any, any>> & {
38
- isTouched: import("../../properties-panel/props-builder.js").Prop<boolean, true>;
39
- isChecked: import("../../properties-panel/props-builder.js").Prop<boolean, true>;
37
+ meta: import("../../properties-panel/props-builder.js").Section<Record<string, import("../../properties-panel/props-builder.js").Prop<any, any, undefined>> & {
38
+ isTouched: import("../../properties-panel/props-builder.js").Prop<boolean, true, undefined>;
39
+ isChecked: import("../../properties-panel/props-builder.js").Prop<boolean, true, undefined>;
40
40
  }>;
41
- derived: import("../../properties-panel/props-builder.js").Section<Record<string, import("../../properties-panel/props-builder.js").Prop<any, any>> & {
42
- value: import("../../properties-panel/props-builder.js").Prop<boolean, true>;
43
- validationErrors: import("../../properties-panel/props-builder.js").Prop<any, true>;
44
- isValid: import("../../properties-panel/props-builder.js").Prop<boolean, true>;
45
- showError: import("../../properties-panel/props-builder.js").Prop<boolean, true>;
41
+ derived: import("../../properties-panel/props-builder.js").Section<Record<string, import("../../properties-panel/props-builder.js").Prop<any, any, undefined>> & {
42
+ value: import("../../properties-panel/props-builder.js").Prop<boolean, true, undefined>;
43
+ validationErrors: import("../../properties-panel/props-builder.js").Prop<any, true, undefined>;
44
+ isValid: import("../../properties-panel/props-builder.js").Prop<boolean, true, undefined>;
45
+ showError: import("../../properties-panel/props-builder.js").Prop<boolean, true, undefined>;
46
46
  }>;
47
47
  }>>;