@superblocksteam/library 2.0.6-next.88 → 2.0.6-next.9

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 (111) hide show
  1. package/dist/{allPaths-CrtDGuNf.js → allPaths-BbwLOFSN.js} +2 -2
  2. package/dist/{allPaths-CrtDGuNf.js.map → allPaths-BbwLOFSN.js.map} +1 -1
  3. package/dist/{allPaths-CgvYrNUw.js → allPaths-YpR_xtpv.js} +2 -2
  4. package/dist/{allPaths-CgvYrNUw.js.map → allPaths-YpR_xtpv.js.map} +1 -1
  5. package/dist/{allPathsLoader-LUVVWlgN.js → allPathsLoader-CTr7XzYS.js} +3 -3
  6. package/dist/{allPathsLoader-LUVVWlgN.js.map → allPathsLoader-CTr7XzYS.js.map} +1 -1
  7. package/dist/{allPathsLoader-DhgvyPfz.js → allPathsLoader-DjBKQsij.js} +3 -3
  8. package/dist/{allPathsLoader-DhgvyPfz.js.map → allPathsLoader-DjBKQsij.js.map} +1 -1
  9. package/dist/{devtools-consolidated-DrBc1h4m.js → devtools-consolidated-B2GVETCf.js} +2 -2
  10. package/dist/{devtools-consolidated-DrBc1h4m.js.map → devtools-consolidated-B2GVETCf.js.map} +1 -1
  11. package/dist/{icons-lSlfQ50w.js → icons-NrNO8p_u.js} +14 -10
  12. package/dist/icons-NrNO8p_u.js.map +1 -0
  13. package/dist/{index-2ihBTDX4.js → index-snr_jI8a.js} +22121 -24008
  14. package/dist/{index-2ihBTDX4.js.map → index-snr_jI8a.js.map} +1 -1
  15. package/dist/index.js +149 -150
  16. package/dist/{splitPathsBySizeLoader-mxO24EVV.js → splitPathsBySizeLoader-Blv6tUe4.js} +2 -2
  17. package/dist/{splitPathsBySizeLoader-mxO24EVV.js.map → splitPathsBySizeLoader-Blv6tUe4.js.map} +1 -1
  18. package/dist/{splitPathsBySizeLoader-BS08Me-9.js → splitPathsBySizeLoader-DbNFtg9G.js} +2 -2
  19. package/dist/{splitPathsBySizeLoader-BS08Me-9.js.map → splitPathsBySizeLoader-DbNFtg9G.js.map} +1 -1
  20. package/dist-types/edit-mode/dnd/utils.d.ts +0 -4
  21. package/dist-types/edit-mode/features/ui-store.d.ts +1 -1
  22. package/dist-types/edit-mode/iframe-wrappers.d.ts +0 -1
  23. package/dist-types/edit-mode/source-update-api.d.ts +0 -5
  24. package/dist-types/edit-mode/superblocks-editor-bridge.d.ts +1 -7
  25. package/dist-types/lib/index.d.ts +0 -1
  26. package/dist-types/lib/internal-details/lib/evaluator/base-entity-manager.d.ts +14 -16
  27. package/dist-types/lib/internal-details/lib/evaluator/compute-engines.d.ts +1 -2
  28. package/dist-types/lib/internal-details/lib/evaluator/create-scope-proxy.d.ts +1 -1
  29. package/dist-types/lib/internal-details/lib/evaluator/entity-manager.d.ts +7 -7
  30. package/dist-types/lib/internal-details/lib/evaluator/lazy-function.d.ts +1 -2
  31. package/dist-types/lib/internal-details/lib/evaluator/pretty-print-function.d.ts +1 -1
  32. package/dist-types/lib/internal-details/lib/evaluator/use-shallow-mobx-observer.d.ts +1 -1
  33. package/dist-types/lib/internal-details/lib/features/component-registry.d.ts +0 -14
  34. package/dist-types/lib/internal-details/lib/root-store.d.ts +0 -2
  35. package/dist-types/lib/internal-details/lib/types.d.ts +1 -34
  36. package/dist-types/lib/internal-details/scope/global.d.ts +1 -1
  37. package/dist-types/lib/internal-details/scope/types.d.ts +2 -2
  38. package/dist-types/lib/triggers/implementations/components/control-slideout.d.ts +3 -4
  39. package/dist-types/lib/triggers/implementations/show-alert.d.ts +1 -1
  40. package/dist-types/lib/triggers/implementations/state/reset-state-var.d.ts +3 -3
  41. package/dist-types/lib/triggers/implementations/state/set-state-var.d.ts +3 -3
  42. package/dist-types/lib/triggers/implementations/timers/control-timer.d.ts +3 -4
  43. package/dist-types/lib/triggers/registry.d.ts +9 -9
  44. package/dist-types/lib/user-facing/component-base/sb-component.d.ts +1 -5
  45. package/dist-types/lib/user-facing/components/button/index.d.ts +26 -26
  46. package/dist-types/lib/user-facing/components/button/props.d.ts +26 -26
  47. package/dist-types/lib/user-facing/components/checkbox/index.d.ts +31 -31
  48. package/dist-types/lib/user-facing/components/checkbox/props.d.ts +31 -31
  49. package/dist-types/lib/user-facing/components/column/index.d.ts +19 -19
  50. package/dist-types/lib/user-facing/components/column/props.d.ts +19 -19
  51. package/dist-types/lib/user-facing/components/container/index.d.ts +21 -21
  52. package/dist-types/lib/user-facing/components/container/props.d.ts +21 -21
  53. package/dist-types/lib/user-facing/components/custom/register-custom-component.d.ts +11 -14
  54. package/dist-types/lib/user-facing/components/date-picker/index.d.ts +48 -48
  55. package/dist-types/lib/user-facing/components/date-picker/props.d.ts +48 -48
  56. package/dist-types/lib/user-facing/components/dropdown/index.d.ts +54 -54
  57. package/dist-types/lib/user-facing/components/dropdown/props.d.ts +54 -54
  58. package/dist-types/lib/user-facing/components/grid/index.d.ts +13 -13
  59. package/dist-types/lib/user-facing/components/icon/index.d.ts +13 -11
  60. package/dist-types/lib/user-facing/components/icon/props.d.ts +13 -11
  61. package/dist-types/lib/user-facing/components/image/index.d.ts +20 -20
  62. package/dist-types/lib/user-facing/components/image/props.d.ts +23 -23
  63. package/dist-types/lib/user-facing/components/input/index.d.ts +63 -63
  64. package/dist-types/lib/user-facing/components/input/input-component.d.ts +0 -1
  65. package/dist-types/lib/user-facing/components/input/props.d.ts +63 -63
  66. package/dist-types/lib/user-facing/components/key-value/properties-props.d.ts +21 -21
  67. package/dist-types/lib/user-facing/components/key-value/props.d.ts +27 -27
  68. package/dist-types/lib/user-facing/components/modal/index.d.ts +31 -27
  69. package/dist-types/lib/user-facing/components/modal/props.d.ts +27 -27
  70. package/dist-types/lib/user-facing/components/page/index.d.ts +13 -13
  71. package/dist-types/lib/user-facing/components/page/props.d.ts +13 -13
  72. package/dist-types/lib/user-facing/components/section/index.d.ts +16 -16
  73. package/dist-types/lib/user-facing/components/section/props.d.ts +16 -16
  74. package/dist-types/lib/user-facing/components/slideout/index.d.ts +1 -41
  75. package/dist-types/lib/user-facing/components/slideout/props.d.ts +19 -39
  76. package/dist-types/lib/user-facing/components/stack/index.d.ts +38 -38
  77. package/dist-types/lib/user-facing/components/switch/index.d.ts +32 -32
  78. package/dist-types/lib/user-facing/components/switch/props.d.ts +32 -32
  79. package/dist-types/lib/user-facing/components/table/column-properties-panel.d.ts +161 -262
  80. package/dist-types/lib/user-facing/components/table/index.d.ts +205 -305
  81. package/dist-types/lib/user-facing/components/table/props.d.ts +205 -305
  82. package/dist-types/lib/user-facing/components/table/table-utilities.d.ts +4 -4
  83. package/dist-types/lib/user-facing/components/table/table-widget.d.ts +4 -5
  84. package/dist-types/lib/user-facing/components/table/types.d.ts +31 -33
  85. package/dist-types/lib/user-facing/components/text/index.d.ts +35 -35
  86. package/dist-types/lib/user-facing/components/text/props.d.ts +35 -35
  87. package/dist-types/lib/user-facing/constants.d.ts +1 -1
  88. package/dist-types/lib/user-facing/entities/api/props.d.ts +11 -20
  89. package/dist-types/lib/user-facing/entities/timer/props.d.ts +12 -12
  90. package/dist-types/lib/user-facing/entities/variable/props.d.ts +7 -7
  91. package/dist-types/lib/user-facing/layers.d.ts +2 -1
  92. package/dist-types/lib/user-facing/properties-panel/create-managed-props-list.d.ts +0 -4
  93. package/dist-types/lib/user-facing/properties-panel/mixins/appearance-properties.d.ts +12 -12
  94. package/dist-types/lib/user-facing/properties-panel/mixins/appearance.d.ts +2 -2
  95. package/dist-types/lib/user-facing/properties-panel/mixins/form-inputs-properties.d.ts +10 -10
  96. package/dist-types/lib/user-facing/properties-panel/mixins/layout-section.d.ts +45 -45
  97. package/dist-types/lib/user-facing/properties-panel/mixins/loading.d.ts +1 -1
  98. package/dist-types/lib/user-facing/properties-panel/props-builder.d.ts +9 -28
  99. package/dist-types/lib/user-facing/sb-event-flow.d.ts +4 -4
  100. package/dist-types/lib/user-facing/sb-provider.d.ts +2 -1
  101. package/package.json +3 -4
  102. package/dist/icons-lSlfQ50w.js.map +0 -1
  103. package/dist-types/internal-testing/components/slideout.d.ts +0 -3
  104. package/dist-types/lib/internal-details/lib/evaluator/sanitize-object.d.ts +0 -6
  105. package/dist-types/lib/internal-details/lib/evaluator/suspense-helpers.d.ts +0 -8
  106. package/dist-types/lib/internal-details/location-store.d.ts +0 -18
  107. package/dist-types/lib/user-facing/build-manifest.d.ts +0 -2
  108. package/dist-types/lib/user-facing/components/slideout/constants.d.ts +0 -10
  109. package/dist-types/lib/user-facing/components/slideout/slideout-component.d.ts +0 -31
  110. package/dist-types/lib/user-facing/entities/api/suspensible-api.d.ts +0 -20
  111. package/dist-types/lib/user-facing/hooks/use-dialog-editing.d.ts +0 -14
@@ -38,10 +38,6 @@ export declare class TableWidget extends React.Component<TableWidgetProps, Table
38
38
  previousColumns: ReactTableColumnProps[];
39
39
  handleTableButtonClick: (columnId: string, onComplete: () => void) => void;
40
40
  getReactTableColumns(): ReactTableColumnProps[];
41
- columnPropertyFunctionMap: WeakMap<WeakKey, any>;
42
- functionCounter: number;
43
- getColumnPropertiesString: (columnProperties: ColumnProperties) => string;
44
- createTableCell(columnProperties: ColumnProperties, isHidden: boolean): (props: any) => React.JSX.Element;
45
41
  static transformData: (tableData: Array<Record<string, unknown>>, filteredOrderMap: Array<number>, columns: ReactTableColumnProps[], editOverrides: Record<number, Record<string, {
46
42
  value: unknown;
47
43
  validationErrors?: Array<string>;
@@ -62,7 +58,7 @@ export declare class TableWidget extends React.Component<TableWidgetProps, Table
62
58
  getCurrentRowIndex: (originalIndex: number) => number;
63
59
  getIsRowEdited: (rowIndex: number, isOriginalIndex?: boolean) => boolean;
64
60
  getIsRowInserted: (rowIndex: number, isOriginalIndex?: boolean) => boolean;
65
- getCellBackground: (currentRowIndex: number, columnId: string) => string | undefined;
61
+ getCellBackground: (currentRowIndex: number, columnId: string) => any;
66
62
  getIsLoading: () => boolean;
67
63
  getDropdownOptionsLoading: () => boolean;
68
64
  render(): React.JSX.Element;
@@ -80,6 +76,9 @@ export declare class TableWidget extends React.Component<TableWidgetProps, Table
80
76
  [key: string]: any;
81
77
  };
82
78
  rowIndex: number | undefined;
79
+ currentRow: {
80
+ [key: string]: any;
81
+ };
83
82
  };
84
83
  handleRowClick: (_rowData: Record<string, unknown>, index: number) => void;
85
84
  updatePageNumber: (pageNo: number) => void;
@@ -107,6 +107,7 @@ export type TableInserts = {
107
107
  export type RowContext = {
108
108
  row: undefined | Record<string, unknown>;
109
109
  rowIndex: undefined | number;
110
+ currentRow: undefined | Record<string, unknown>;
110
111
  };
111
112
  export type ColumnContext = {
112
113
  value: any;
@@ -120,14 +121,14 @@ interface TableFunctions {
120
121
  selectedRowIndices?: number[];
121
122
  selectedRows?: Array<Record<string, unknown>>;
122
123
  }, rowContext: RowContext, triggerEventHandlers: boolean) => void;
123
- setPageNo: (value: number, triggerEventHandlers?: boolean) => void;
124
+ setPageNo: (value: number, rowContext: RowContext, triggerEventHandlers?: boolean) => void;
124
125
  setTableFilters: (columnId: string, filter: ColumnFilter, rowContext: RowContext) => void;
125
126
  setColumnOrder: (value: string[]) => void;
126
127
  setSortedColumn: (value: undefined | TableSortColumn) => void;
127
128
  setColumnSizeMap: (value: {
128
129
  [key: string]: number;
129
130
  }) => void;
130
- setSearchText: (value: string) => void;
131
+ setSearchText: (value: string, context: RowContext) => void;
131
132
  onRowClicked: (context: RowContext, onComplete?: () => void) => void;
132
133
  selectAllRows: (rowIndices: number[], rows: Array<Record<string, unknown>>, rowContext: RowContext) => void;
133
134
  deselectAllRows: (rowContext: RowContext) => void;
@@ -235,9 +236,6 @@ export type ColumnPropertyFunctions = {
235
236
  onDateSelected?: () => void;
236
237
  onCheckChange?: () => void;
237
238
  };
238
- export type ContextualColumnProperty<T> = T | ((params: {
239
- currentRow: UnknownRow;
240
- }) => T);
241
239
  export interface ColumnProperties extends ColumnEditConfigs, ColumnPropertiesForEditing, ColumnPropertyFunctions {
242
240
  id: string;
243
241
  label: string;
@@ -247,41 +245,41 @@ export interface ColumnProperties extends ColumnEditConfigs, ColumnPropertiesFor
247
245
  isVisible: boolean;
248
246
  index: number;
249
247
  width: number;
250
- cellBackground?: ContextualColumnProperty<string>;
251
- horizontalAlign?: ContextualColumnProperty<HorizontalAlignment>;
252
- verticalAlign?: ContextualColumnProperty<VerticalAlignment>;
253
- cellProps?: ContextualColumnProperty<{
248
+ cellBackground?: string;
249
+ horizontalAlign?: HorizontalAlignment;
250
+ verticalAlign?: VerticalAlignment;
251
+ cellProps?: {
254
252
  textStyle: TextStyleWithVariant;
255
- }>;
253
+ };
256
254
  enableFilter?: boolean;
257
255
  enableSort?: boolean;
258
256
  isDerived: boolean;
259
- computedValue: ContextualColumnProperty<string>;
260
- displayedValue?: ContextualColumnProperty<string>;
261
- buttonLabel?: ContextualColumnProperty<string>;
262
- buttonBackgroundColor?: ContextualColumnProperty<string>;
263
- buttonBorder?: ContextualColumnProperty<PerSideBorder>;
264
- buttonVariant?: ContextualColumnProperty<string>;
265
- buttonTextStyle?: ContextualColumnProperty<TextStyleWithVariant>;
266
- cellIcon?: ContextualColumnProperty<string>;
267
- cellIconPosition?: ContextualColumnProperty<IconPosition>;
268
- buttonIcon?: ContextualColumnProperty<string>;
269
- buttonIconPosition?: ContextualColumnProperty<IconPosition>;
270
- isDisabled?: ContextualColumnProperty<boolean>;
271
- linkUrl?: ContextualColumnProperty<string>;
272
- linkLabel?: ContextualColumnProperty<string>;
273
- openInNewTab?: ContextualColumnProperty<boolean>;
257
+ computedValue: string | string[];
258
+ displayedValue?: string | string[];
259
+ buttonLabel?: string;
260
+ buttonBackgroundColor?: string;
261
+ buttonBorder?: PerSideBorder;
262
+ buttonVariant?: string;
263
+ buttonTextStyle?: TextStyleWithVariant;
264
+ cellIcon?: string;
265
+ cellIconPosition?: IconPosition;
266
+ buttonIcon?: string;
267
+ buttonIconPosition?: IconPosition;
268
+ isDisabled?: boolean;
269
+ linkUrl?: string;
270
+ linkLabel?: string;
271
+ openInNewTab?: boolean;
274
272
  booleanStyleFalse?: BooleanStyleFalse;
275
- isEditable?: ContextualColumnProperty<boolean>;
273
+ isEditable?: boolean | string;
276
274
  isFrozen?: boolean;
277
- textWrap?: ContextualColumnProperty<boolean>;
278
- tagsWrap?: ContextualColumnProperty<boolean>;
275
+ textWrap?: boolean;
276
+ tagsWrap?: boolean;
279
277
  tagDisplayConfig: Record<string, TagDisplayConfig>;
280
- imageSize?: ContextualColumnProperty<ImageSize>;
281
- imageBorderRadius?: ContextualColumnProperty<PerCornerBorderRadius>;
282
- openImageUrl?: ContextualColumnProperty<boolean>;
283
- outputFormat?: ContextualColumnProperty<string>;
284
- inputFormat?: ContextualColumnProperty<string>;
278
+ imageSize?: ImageSize;
279
+ imageBorderRadius?: PerCornerBorderRadius;
280
+ openImageUrl?: boolean;
281
+ outputFormat?: string;
282
+ inputFormat?: string;
285
283
  }
286
284
  export type EditProps = ColumnEditConfigs & {
287
285
  handleEditStart: () => void;
@@ -1,56 +1,56 @@
1
1
  export declare const SbText: 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, undefined>> & {
3
- text: import("../../properties-panel/props-builder.js").Prop<string, false, undefined>;
4
- textType: import("../../properties-panel/props-builder.js").Prop<"number" | "time" | "text" | "date" | "currency", true, undefined>;
2
+ general: import("../../properties-panel/props-builder.js").Section<Record<string, import("../../properties-panel/props-builder.js").Prop<any, any>> & {
3
+ text: import("../../properties-panel/props-builder.js").Prop<string, false>;
4
+ textType: import("../../properties-panel/props-builder.js").Prop<"number" | "time" | "text" | "date" | "currency", true>;
5
5
  }>;
6
- appearance: import("../../properties-panel/props-builder.js").Section<Record<string, import("../../properties-panel/props-builder.js").Prop<any, any, undefined>> & ({
7
- textStyle: import("../../properties-panel/props-builder.js").Prop<import("@superblocksteam/library-shared/types").TextStyleWithVariant, true, undefined>;
8
- horizontalAlign: import("../../properties-panel/props-builder.js").Prop<import("@superblocksteam/library-shared/props").HorizontalAlign, true, undefined>;
9
- verticalAlign: import("../../properties-panel/props-builder.js").Prop<import("./props.js").VerticalAlign, true, undefined>;
10
- wrapText: import("../../properties-panel/props-builder.js").Prop<boolean, true, undefined>;
11
- loading: import("../../properties-panel/props-builder.js").Prop<boolean, true, undefined>;
12
- shouldScroll: import("../../properties-panel/props-builder.js").Prop<boolean, false, undefined>;
13
- icon: import("../../properties-panel/props-builder.js").Prop<string, false, undefined>;
14
- iconPosition: import("../../properties-panel/props-builder.js").Prop<import("../../icons/constants.js").IconPosition, true, undefined>;
6
+ appearance: import("../../properties-panel/props-builder.js").Section<Record<string, import("../../properties-panel/props-builder.js").Prop<any, any>> & ({
7
+ textStyle: import("../../properties-panel/props-builder.js").Prop<import("@superblocksteam/library-shared/types").TextStyleWithVariant, true>;
8
+ horizontalAlign: import("../../properties-panel/props-builder.js").Prop<import("@superblocksteam/library-shared/props").HorizontalAlign, true>;
9
+ verticalAlign: import("../../properties-panel/props-builder.js").Prop<import("./props.js").VerticalAlign, true>;
10
+ wrapText: import("../../properties-panel/props-builder.js").Prop<boolean, true>;
11
+ loading: import("../../properties-panel/props-builder.js").Prop<boolean, true>;
12
+ shouldScroll: import("../../properties-panel/props-builder.js").Prop<boolean, false>;
13
+ icon: import("../../properties-panel/props-builder.js").Prop<string, false>;
14
+ iconPosition: import("../../properties-panel/props-builder.js").Prop<import("../../icons/constants.js").IconPosition, true>;
15
15
  } & (Omit<{
16
- textType: import("../../properties-panel/props-builder.js").Prop<"number" | "time" | "text" | "date" | "currency", false, undefined>;
16
+ textType: import("../../properties-panel/props-builder.js").Prop<"number" | "time" | "text" | "date" | "currency", false>;
17
17
  }, "textType" | "dateInputFormat" | "dateOutputFormat"> & ({
18
- minDecimals: import("../../properties-panel/props-builder.js").Prop<number, false, undefined>;
19
- maxDecimals: import("../../properties-panel/props-builder.js").Prop<number, false, undefined>;
20
- textType: import("../../properties-panel/props-builder.js").Prop<"currency", true, undefined>;
21
- currency: import("../../properties-panel/props-builder.js").Prop<string, true, undefined>;
22
- numberFormat: import("../../properties-panel/props-builder.js").Prop<"compact" | "standard" | "scientific" | "engineering" | "unformatted", true, undefined>;
18
+ minDecimals: import("../../properties-panel/props-builder.js").Prop<number, false>;
19
+ maxDecimals: import("../../properties-panel/props-builder.js").Prop<number, false>;
20
+ textType: import("../../properties-panel/props-builder.js").Prop<"currency", true>;
21
+ currency: import("../../properties-panel/props-builder.js").Prop<string, true>;
22
+ numberFormat: import("../../properties-panel/props-builder.js").Prop<"compact" | "standard" | "scientific" | "engineering" | "unformatted", true>;
23
23
  dateInputFormat?: undefined;
24
24
  dateOutputFormat?: undefined;
25
25
  } | {
26
- minDecimals: import("../../properties-panel/props-builder.js").Prop<number, false, undefined>;
27
- maxDecimals: import("../../properties-panel/props-builder.js").Prop<number, false, undefined>;
28
- textType: import("../../properties-panel/props-builder.js").Prop<"number", true, undefined>;
29
- numberFormat: import("../../properties-panel/props-builder.js").Prop<"compact" | "standard" | "scientific" | "engineering" | "unformatted", true, undefined>;
26
+ minDecimals: import("../../properties-panel/props-builder.js").Prop<number, false>;
27
+ maxDecimals: import("../../properties-panel/props-builder.js").Prop<number, false>;
28
+ textType: import("../../properties-panel/props-builder.js").Prop<"number", true>;
29
+ numberFormat: import("../../properties-panel/props-builder.js").Prop<"compact" | "standard" | "scientific" | "engineering" | "unformatted", true>;
30
30
  dateInputFormat?: undefined;
31
31
  dateOutputFormat?: undefined;
32
32
  } | {
33
- textType: import("../../properties-panel/props-builder.js").Prop<"date", true, undefined>;
34
- dateInputFormat: import("../../properties-panel/props-builder.js").Prop<string, false, undefined>;
35
- dateOutputFormat: import("../../properties-panel/props-builder.js").Prop<string, false, undefined>;
33
+ textType: import("../../properties-panel/props-builder.js").Prop<"date", true>;
34
+ dateInputFormat: import("../../properties-panel/props-builder.js").Prop<string, false>;
35
+ dateOutputFormat: import("../../properties-panel/props-builder.js").Prop<string, false>;
36
36
  })))>;
37
- layout: import("../../properties-panel/props-builder.js").Section<Record<string, import("../../properties-panel/props-builder.js").Prop<any, any, undefined>> & {
38
- maxHeight?: import("../../properties-panel/props-builder.js").Prop<import("@superblocksteam/library-shared").Dim<import("@superblocksteam/library-shared").DimModes>, false, undefined> | undefined;
39
- minHeight?: import("../../properties-panel/props-builder.js").Prop<import("@superblocksteam/library-shared").Dim<import("@superblocksteam/library-shared").DimModes>, false, undefined> | undefined;
40
- maxWidth?: import("../../properties-panel/props-builder.js").Prop<import("@superblocksteam/library-shared").Dim<import("@superblocksteam/library-shared").DimModes>, false, undefined> | undefined;
41
- minWidth?: import("../../properties-panel/props-builder.js").Prop<import("@superblocksteam/library-shared").Dim<import("@superblocksteam/library-shared").DimModes>, false, undefined> | undefined;
42
- width: import("../../properties-panel/props-builder.js").Prop<import("@superblocksteam/library-shared").Dim<import("@superblocksteam/library-shared").DimModes>, false, undefined>;
43
- height: import("../../properties-panel/props-builder.js").Prop<import("@superblocksteam/library-shared").Dim<import("@superblocksteam/library-shared").DimModes>, false, undefined>;
37
+ layout: import("../../properties-panel/props-builder.js").Section<Record<string, import("../../properties-panel/props-builder.js").Prop<any, any>> & {
38
+ maxHeight?: import("../../properties-panel/props-builder.js").Prop<import("@superblocksteam/library-shared").Dim<import("@superblocksteam/library-shared").DimModes>, false> | undefined;
39
+ minHeight?: import("../../properties-panel/props-builder.js").Prop<import("@superblocksteam/library-shared").Dim<import("@superblocksteam/library-shared").DimModes>, false> | undefined;
40
+ maxWidth?: import("../../properties-panel/props-builder.js").Prop<import("@superblocksteam/library-shared").Dim<import("@superblocksteam/library-shared").DimModes>, false> | undefined;
41
+ minWidth?: import("../../properties-panel/props-builder.js").Prop<import("@superblocksteam/library-shared").Dim<import("@superblocksteam/library-shared").DimModes>, false> | undefined;
42
+ width: import("../../properties-panel/props-builder.js").Prop<import("@superblocksteam/library-shared").Dim<import("@superblocksteam/library-shared").DimModes>, false>;
43
+ height: import("../../properties-panel/props-builder.js").Prop<import("@superblocksteam/library-shared").Dim<import("@superblocksteam/library-shared").DimModes>, false>;
44
44
  } & {
45
45
  margin: import("../../properties-panel/props-builder.js").Prop<{
46
46
  top: import("@superblocksteam/library-shared").Dim<"px">;
47
47
  bottom: import("@superblocksteam/library-shared").Dim<"px">;
48
48
  left: import("@superblocksteam/library-shared").Dim<"px">;
49
49
  right: import("@superblocksteam/library-shared").Dim<"px">;
50
- } | undefined, true, undefined>;
50
+ } | undefined, true>;
51
51
  } & {
52
- isVisible: import("../../properties-panel/props-builder.js").Prop<boolean, true, undefined>;
52
+ isVisible: import("../../properties-panel/props-builder.js").Prop<boolean, true>;
53
53
  } & {
54
- shouldScroll: import("../../properties-panel/props-builder.js").Prop<boolean, false, undefined>;
54
+ shouldScroll: import("../../properties-panel/props-builder.js").Prop<boolean, false>;
55
55
  }>;
56
56
  }>>;
@@ -10,58 +10,58 @@ import type { Typographies } from "@superblocksteam/library-shared/types";
10
10
  export declare const DEFAULT_TEXT_WIDGET_TEXT_STYLE_VARIANT: keyof Typographies;
11
11
  export type VerticalAlign = "top" | "center" | "bottom";
12
12
  export declare const propertiesDefinition: {
13
- general: Section<Record<string, Prop<any, any, undefined>> & {
14
- text: Prop<string, false, undefined>;
15
- textType: Prop<"number" | "time" | "text" | "date" | "currency", true, undefined>;
13
+ general: Section<Record<string, Prop<any, any>> & {
14
+ text: Prop<string, false>;
15
+ textType: Prop<"number" | "time" | "text" | "date" | "currency", true>;
16
16
  }>;
17
- appearance: Section<Record<string, Prop<any, any, undefined>> & ({
18
- textStyle: Prop<import("@superblocksteam/library-shared/types").TextStyleWithVariant, true, undefined>;
19
- horizontalAlign: Prop<HorizontalAlign, true, undefined>;
20
- verticalAlign: Prop<VerticalAlign, true, undefined>;
21
- wrapText: Prop<boolean, true, undefined>;
22
- loading: Prop<boolean, true, undefined>;
23
- shouldScroll: Prop<boolean, false, undefined>;
24
- icon: Prop<string, false, undefined>;
25
- iconPosition: Prop<IconPosition, true, undefined>;
17
+ appearance: Section<Record<string, Prop<any, any>> & ({
18
+ textStyle: Prop<import("@superblocksteam/library-shared/types").TextStyleWithVariant, true>;
19
+ horizontalAlign: Prop<HorizontalAlign, true>;
20
+ verticalAlign: Prop<VerticalAlign, true>;
21
+ wrapText: Prop<boolean, true>;
22
+ loading: Prop<boolean, true>;
23
+ shouldScroll: Prop<boolean, false>;
24
+ icon: Prop<string, false>;
25
+ iconPosition: Prop<IconPosition, true>;
26
26
  } & (Omit<{
27
- textType: Prop<"number" | "time" | "text" | "date" | "currency", false, undefined>;
27
+ textType: Prop<"number" | "time" | "text" | "date" | "currency", false>;
28
28
  }, "textType" | "dateInputFormat" | "dateOutputFormat"> & ({
29
- minDecimals: Prop<number, false, undefined>;
30
- maxDecimals: Prop<number, false, undefined>;
31
- textType: Prop<"currency", true, undefined>;
32
- currency: Prop<string, true, undefined>;
33
- numberFormat: Prop<"compact" | "standard" | "scientific" | "engineering" | "unformatted", true, undefined>;
29
+ minDecimals: Prop<number, false>;
30
+ maxDecimals: Prop<number, false>;
31
+ textType: Prop<"currency", true>;
32
+ currency: Prop<string, true>;
33
+ numberFormat: Prop<"compact" | "standard" | "scientific" | "engineering" | "unformatted", true>;
34
34
  dateInputFormat?: undefined;
35
35
  dateOutputFormat?: undefined;
36
36
  } | {
37
- minDecimals: Prop<number, false, undefined>;
38
- maxDecimals: Prop<number, false, undefined>;
39
- textType: Prop<"number", true, undefined>;
40
- numberFormat: Prop<"compact" | "standard" | "scientific" | "engineering" | "unformatted", true, undefined>;
37
+ minDecimals: Prop<number, false>;
38
+ maxDecimals: Prop<number, false>;
39
+ textType: Prop<"number", true>;
40
+ numberFormat: Prop<"compact" | "standard" | "scientific" | "engineering" | "unformatted", true>;
41
41
  dateInputFormat?: undefined;
42
42
  dateOutputFormat?: undefined;
43
43
  } | {
44
- textType: Prop<"date", true, undefined>;
45
- dateInputFormat: Prop<string, false, undefined>;
46
- dateOutputFormat: Prop<string, false, undefined>;
44
+ textType: Prop<"date", true>;
45
+ dateInputFormat: Prop<string, false>;
46
+ dateOutputFormat: Prop<string, false>;
47
47
  })))>;
48
- layout: Section<Record<string, Prop<any, any, undefined>> & {
49
- maxHeight?: Prop<Dim<import("@superblocksteam/library-shared").DimModes>, false, undefined> | undefined;
50
- minHeight?: Prop<Dim<import("@superblocksteam/library-shared").DimModes>, false, undefined> | undefined;
51
- maxWidth?: Prop<Dim<import("@superblocksteam/library-shared").DimModes>, false, undefined> | undefined;
52
- minWidth?: Prop<Dim<import("@superblocksteam/library-shared").DimModes>, false, undefined> | undefined;
53
- width: Prop<Dim<import("@superblocksteam/library-shared").DimModes>, false, undefined>;
54
- height: Prop<Dim<import("@superblocksteam/library-shared").DimModes>, false, undefined>;
48
+ layout: Section<Record<string, Prop<any, any>> & {
49
+ maxHeight?: Prop<Dim<import("@superblocksteam/library-shared").DimModes>, false> | undefined;
50
+ minHeight?: Prop<Dim<import("@superblocksteam/library-shared").DimModes>, false> | undefined;
51
+ maxWidth?: Prop<Dim<import("@superblocksteam/library-shared").DimModes>, false> | undefined;
52
+ minWidth?: Prop<Dim<import("@superblocksteam/library-shared").DimModes>, false> | undefined;
53
+ width: Prop<Dim<import("@superblocksteam/library-shared").DimModes>, false>;
54
+ height: Prop<Dim<import("@superblocksteam/library-shared").DimModes>, false>;
55
55
  } & {
56
56
  margin: Prop<{
57
57
  top: Dim<"px">;
58
58
  bottom: Dim<"px">;
59
59
  left: Dim<"px">;
60
60
  right: Dim<"px">;
61
- } | undefined, true, undefined>;
61
+ } | undefined, true>;
62
62
  } & {
63
- isVisible: Prop<boolean, true, undefined>;
63
+ isVisible: Prop<boolean, true>;
64
64
  } & {
65
- shouldScroll: Prop<boolean, false, undefined>;
65
+ shouldScroll: Prop<boolean, false>;
66
66
  }>;
67
67
  };
@@ -1,2 +1,2 @@
1
1
  export declare const CANVAS_ROOT_ID = "canvas-root";
2
- export declare const PORTAL_ROOT_ID = "portal-root";
2
+ export declare const MODAL_TARGET_ROOT_ID = "modal-target-root";
@@ -1,29 +1,20 @@
1
1
  import { Section, Prop, type InternalProps } from "../../properties-panel/props-builder.js";
2
- import { SuspensibleAPI } from "./suspensible-api.js";
3
- export type ApiEntity = Omit<InternalProps<typeof propertiesDefinition>, "_suspensibleApi"> & {
2
+ export type ApiEntity = InternalProps<typeof propertiesDefinition> & {
4
3
  run: () => Promise<any>;
5
4
  cancel: () => Promise<any>;
6
- _suspensibleApi: SuspensibleAPI<any, any[]>;
7
5
  };
8
6
  export declare const propertiesDefinition: {
9
- events: Section<Record<string, Prop<any, any, undefined>> & {
10
- onSuccess: Prop<import("../../sb-event-flow.js").SbEventFlow, false, undefined>;
11
- onError: Prop<import("../../sb-event-flow.js").SbEventFlow, false, undefined>;
7
+ events: Section<Record<string, Prop<any, any>> & {
8
+ onSuccess: Prop<import("../../sb-event-flow.js").SbEventFlow, false>;
9
+ onError: Prop<import("../../sb-event-flow.js").SbEventFlow, false>;
12
10
  }>;
13
- metadata: Section<Record<string, Prop<any, any, undefined>> & {
14
- response: Prop<any, true, undefined>;
15
- error: Prop<any, true, undefined>;
16
- isLoading: Prop<boolean, true, undefined>;
11
+ metadata: Section<Record<string, Prop<any, any>> & {
12
+ response: Prop<any, true>;
13
+ error: Prop<any, true>;
14
+ isRunning: Prop<boolean, true>;
17
15
  }>;
18
- functions: Section<Record<string, Prop<any, any, undefined>> & {
19
- run: Prop<import("../../../internal-details/lib/evaluator/base-entity-manager.js").EntityFunction<[], Promise<any>>, true, undefined>;
20
- cancel: Prop<import("../../../internal-details/lib/evaluator/base-entity-manager.js").EntityFunction<[], Promise<void>>, true, undefined>;
21
- }>;
22
- internal: Section<Record<string, Prop<any, any, undefined>> & {
23
- /**
24
- * Internal SuspensibleAPI instance that manages loading states and React Suspense integration.
25
- * This property is hidden from the public interface but accessible to other properties.
26
- */
27
- _suspensibleApi: Prop<SuspensibleAPI<any, []>, true, undefined>;
16
+ functions: Section<Record<string, Prop<any, any>> & {
17
+ run: Prop<import("../../../internal-details/lib/evaluator/base-entity-manager.js").EntityFunction<[], Promise<any>>, true>;
18
+ cancel: Prop<import("../../../internal-details/lib/evaluator/base-entity-manager.js").EntityFunction<[], Promise<void>>, true>;
28
19
  }>;
29
20
  };
@@ -1,19 +1,19 @@
1
1
  import { Section, Prop } from "../../properties-panel/props-builder.js";
2
2
  export declare const propertiesDefinition: {
3
- general: Section<Record<string, Prop<any, any, undefined>> & {
4
- intervalMs: Prop<number, true, undefined>;
5
- startOnPageLoad: Prop<boolean, false, undefined>;
3
+ general: Section<Record<string, Prop<any, any>> & {
4
+ intervalMs: Prop<number, true>;
5
+ startOnPageLoad: Prop<boolean, false>;
6
6
  }>;
7
- events: Section<Record<string, Prop<any, any, undefined>> & {
8
- onFire: Prop<import("../../sb-event-flow.js").SbEventFlow, false, undefined>;
7
+ events: Section<Record<string, Prop<any, any>> & {
8
+ onFire: Prop<import("../../sb-event-flow.js").SbEventFlow, false>;
9
9
  }>;
10
- metadata: Section<Record<string, Prop<any, any, undefined>> & {
11
- timerId: Prop<string, false, undefined>;
12
- isRunning: Prop<boolean, true, undefined>;
10
+ metadata: Section<Record<string, Prop<any, any>> & {
11
+ timerId: Prop<string, false>;
12
+ isRunning: Prop<boolean, true>;
13
13
  }>;
14
- functions: Section<Record<string, Prop<any, any, undefined>> & {
15
- start: Prop<import("../../../internal-details/lib/evaluator/base-entity-manager.js").EntityFunction<[], void>, true, undefined>;
16
- stop: Prop<import("../../../internal-details/lib/evaluator/base-entity-manager.js").EntityFunction<[], void>, true, undefined>;
17
- toggle: Prop<import("../../../internal-details/lib/evaluator/base-entity-manager.js").EntityFunction<[], void>, true, undefined>;
14
+ functions: Section<Record<string, Prop<any, any>> & {
15
+ start: Prop<import("../../../internal-details/lib/evaluator/base-entity-manager.js").EntityFunction<[], void>, true>;
16
+ stop: Prop<import("../../../internal-details/lib/evaluator/base-entity-manager.js").EntityFunction<[], void>, true>;
17
+ toggle: Prop<import("../../../internal-details/lib/evaluator/base-entity-manager.js").EntityFunction<[], void>, true>;
18
18
  }>;
19
19
  };
@@ -1,13 +1,13 @@
1
1
  import { SbVariablePersistence } from "@superblocksteam/library-shared/types";
2
2
  import { Section, Prop } from "../../properties-panel/props-builder.js";
3
3
  export declare const propertiesDefinition: {
4
- general: Section<Record<string, Prop<any, any, undefined>> & {
5
- defaultValue: Prop<any, false, undefined>;
6
- value: Prop<any, false, undefined>;
7
- persistence: Prop<SbVariablePersistence, true, undefined>;
4
+ general: Section<Record<string, Prop<any, any>> & {
5
+ defaultValue: Prop<any, false>;
6
+ value: Prop<any, false>;
7
+ persistence: Prop<SbVariablePersistence, true>;
8
8
  }>;
9
- functions: Section<Record<string, Prop<any, any, undefined>> & {
10
- set: Prop<import("../../../internal-details/lib/evaluator/base-entity-manager.js").EntityFunction<[value: any], void>, true, undefined>;
11
- reset: Prop<import("../../../internal-details/lib/evaluator/base-entity-manager.js").EntityFunction<[], void>, true, undefined>;
9
+ functions: Section<Record<string, Prop<any, any>> & {
10
+ set: Prop<import("../../../internal-details/lib/evaluator/base-entity-manager.js").EntityFunction<[value: any], void>, true>;
11
+ reset: Prop<import("../../../internal-details/lib/evaluator/base-entity-manager.js").EntityFunction<[], void>, true>;
12
12
  }>;
13
13
  };
@@ -22,6 +22,7 @@ export declare const Layers: {
22
22
  selectedRect: Indices;
23
23
  focusedRect: Indices;
24
24
  namePill: Indices;
25
+ drawer: Indices;
25
26
  closeButton: Indices;
26
27
  stickySections: Indices;
27
28
  scrollbars: Indices;
@@ -30,7 +31,7 @@ export declare const Layers: {
30
31
  parentSelectedWrapper: Indices;
31
32
  widgetResizer: Indices;
32
33
  resizer: Indices;
33
- dialog: Indices;
34
+ modal: Indices;
34
35
  widgetName: Indices;
35
36
  selectionConstraintResize: Indices;
36
37
  addSectionButton: Indices;
@@ -1,9 +1,5 @@
1
1
  import { Section } from "./props-builder.js";
2
2
  import type { ManagedPropsList } from "./props-builder.js";
3
3
  export declare const RECORD_PATH_IDENTIFIER = "*";
4
- export declare function createInternalPropsList(sections: Record<string, Section>, parentPath?: string): Array<{
5
- path: string;
6
- factory: () => any;
7
- }>;
8
4
  declare function createManagedPropsList(sections: Record<string, Section>, parentPath?: string): ManagedPropsList;
9
5
  export { createManagedPropsList };
@@ -2,23 +2,23 @@ import { Prop } from "../props-builder.js";
2
2
  import type { PropertiesPanelDisplay } from "@superblocksteam/library-shared/props";
3
3
  import type { TextStyleWithVariant } from "@superblocksteam/library-shared/types";
4
4
  export declare const createTextStyleCompositeBase: () => {
5
- variant: Prop<string, false, undefined>;
5
+ variant: Prop<string, false>;
6
6
  textColor: import("../props-builder.js").CompositeProp<{
7
- default: Prop<string, false, undefined>;
7
+ default: Prop<string, false>;
8
8
  }>;
9
- fontFamily: Prop<string, false, undefined>;
10
- fontSize: Prop<import("@superblocksteam/library-shared").Dim<import("@superblocksteam/library-shared").DimModes>, false, undefined>;
11
- fontWeight: Prop<number, false, undefined>;
12
- fontStyle: Prop<string, false, undefined>;
13
- lineHeight: Prop<string, false, undefined>;
14
- letterSpacing: Prop<number, false, undefined>;
15
- textTransform: Prop<string, false, undefined>;
9
+ fontFamily: Prop<string, false>;
10
+ fontSize: Prop<import("@superblocksteam/library-shared").Dim<import("@superblocksteam/library-shared").DimModes>, false>;
11
+ fontWeight: Prop<number, false>;
12
+ fontStyle: Prop<string, false>;
13
+ lineHeight: Prop<string, false>;
14
+ letterSpacing: Prop<number, false>;
15
+ textTransform: Prop<string, false>;
16
16
  };
17
17
  export declare const basePropertiesPaneDisplay: PropertiesPanelDisplay<TextStyleWithVariant>;
18
18
  export declare const textStyleProp: ({ baseProp, propertiesPanel, }?: {
19
19
  baseProp?: ReturnType<typeof createTextStyleCompositeBase>;
20
20
  propertiesPanel?: Omit<Partial<PropertiesPanelDisplay<TextStyleWithVariant, "TEXT_STYLE">>, "controlType">;
21
21
  }) => Prop<TextStyleWithVariant>;
22
- export declare const colorProp: (schema: Omit<Partial<PropertiesPanelDisplay<string, "COLOR_PICKER">>, "controlType">) => Prop<string, false, undefined>;
23
- export declare const labelTextStyle: () => Prop<TextStyleWithVariant, true, undefined>;
24
- export declare const inputTextStyle: () => Prop<TextStyleWithVariant, true, undefined>;
22
+ export declare const colorProp: (schema: Omit<Partial<PropertiesPanelDisplay<string, "COLOR_PICKER">>, "controlType">) => Prop<string, false>;
23
+ export declare const labelTextStyle: () => Prop<TextStyleWithVariant, true>;
24
+ export declare const inputTextStyle: () => Prop<TextStyleWithVariant, true>;
@@ -3,6 +3,6 @@ import type { Dim } from "@superblocksteam/library-shared";
3
3
  import type { PropertiesPanelDisplay } from "@superblocksteam/library-shared/props";
4
4
  import type { BorderStyleBlock, PerCornerBorderRadius, PerSideBorder } from "@superblocksteam/library-shared/types";
5
5
  export declare const createPerSideBorder: (border: BorderStyleBlock) => PerSideBorder;
6
- export declare const border: (propertiesPanelConfig?: Partial<Partial<PropertiesPanelDisplay<PerSideBorder, "BORDER_CONTROL">>>) => Prop<PerSideBorder, false, undefined>;
6
+ export declare const border: (propertiesPanelConfig?: Partial<Partial<PropertiesPanelDisplay<PerSideBorder, "BORDER_CONTROL">>>) => Prop<PerSideBorder, false>;
7
7
  export declare const createBorderRadiusObject: (borderRadius: Dim<"px" | "%">) => PerCornerBorderRadius;
8
- export declare const borderRadius: (propertiesPanelConfig?: Partial<Partial<PropertiesPanelDisplay<PerCornerBorderRadius, "BORDER_RADIUS_CONTROL">>>) => Prop<PerCornerBorderRadius, true, undefined>;
8
+ export declare const borderRadius: (propertiesPanelConfig?: Partial<Partial<PropertiesPanelDisplay<PerCornerBorderRadius, "BORDER_RADIUS_CONTROL">>>) => Prop<PerCornerBorderRadius, true>;
@@ -2,13 +2,13 @@ import { Dim } from "@superblocksteam/library-shared";
2
2
  import { Prop } from "../props-builder.js";
3
3
  import type { ErrorMessagePlacement } from "@superblocksteam/library-shared/props";
4
4
  import type { PropertiesPanelDisplay } from "@superblocksteam/library-shared/props";
5
- export declare const errorMessagePlacement: Prop<ErrorMessagePlacement, true, undefined>;
6
- export declare const labelWidth: Prop<Dim, true, undefined>;
5
+ export declare const errorMessagePlacement: Prop<ErrorMessagePlacement, true>;
6
+ export declare const labelWidth: Prop<Dim, true>;
7
7
  export declare const customValidationProperties: {
8
- customValidationRule: Prop<string, true, undefined>;
9
- customErrorMessage: Prop<string, true, undefined>;
8
+ customValidationRule: Prop<string, true>;
9
+ customErrorMessage: Prop<string, true>;
10
10
  };
11
- export declare const labelPosition: () => Prop<"top" | "left", true, undefined>;
11
+ export declare const labelPosition: () => Prop<"top" | "left", true>;
12
12
  export declare const getTypographyOptions: () => {
13
13
  label: string;
14
14
  value: {
@@ -32,13 +32,13 @@ export declare const getCustomValidationProperties: ({ errorMessagePlacementSche
32
32
  customValidationRuleSchema?: Omit<Partial<PropertiesPanelDisplay<string, "INPUT_TEXT">>, "controlType" | "options">;
33
33
  customErrorMessageSchema?: Omit<Partial<PropertiesPanelDisplay<string, "INPUT_TEXT">>, "controlType" | "options">;
34
34
  }) => {
35
- errorMessagePlacement: Prop<ErrorMessagePlacement, true, undefined>;
36
- customValidationRule: Prop<any, false, undefined>;
37
- customErrorMessage: Prop<string, true, undefined>;
35
+ errorMessagePlacement: Prop<ErrorMessagePlacement, true>;
36
+ customValidationRule: Prop<any, false>;
37
+ customErrorMessage: Prop<string, true>;
38
38
  };
39
39
  export declare const getFractionDigitsProperties: ({ schema, }?: {
40
40
  schema?: Omit<Partial<PropertiesPanelDisplay<number, "INPUT_TEXT">>, "controlType">;
41
41
  }) => {
42
- minDecimals: Prop<number, false, undefined>;
43
- maxDecimals: Prop<number, false, undefined>;
42
+ minDecimals: Prop<number, false>;
43
+ maxDecimals: Prop<number, false>;
44
44
  };