@superblocksteam/library 2.0.6-next.4 → 2.0.6-next.41

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 (97) hide show
  1. package/dist/{allPaths-CO-aWzss.js → allPaths-4y_K62Vs.js} +2 -2
  2. package/dist/{allPaths-CO-aWzss.js.map → allPaths-4y_K62Vs.js.map} +1 -1
  3. package/dist/{allPaths-BtYOw5Ru.js → allPaths-Byemqzqm.js} +2 -2
  4. package/dist/{allPaths-BtYOw5Ru.js.map → allPaths-Byemqzqm.js.map} +1 -1
  5. package/dist/{allPathsLoader-B3Ii4JGL.js → allPathsLoader-ClBdq20d.js} +3 -3
  6. package/dist/{allPathsLoader-KDCEbuYo.js.map → allPathsLoader-ClBdq20d.js.map} +1 -1
  7. package/dist/{allPathsLoader-KDCEbuYo.js → allPathsLoader-DHEhZoal.js} +3 -3
  8. package/dist/{allPathsLoader-B3Ii4JGL.js.map → allPathsLoader-DHEhZoal.js.map} +1 -1
  9. package/dist/{devtools-consolidated-B1B3uBW_.js → devtools-consolidated-D3M5wXPE.js} +2 -2
  10. package/dist/{devtools-consolidated-B1B3uBW_.js.map → devtools-consolidated-D3M5wXPE.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-kjgG33Rg.js → index-Cie8AtZt.js} +3943 -2380
  14. package/dist/{index-kjgG33Rg.js.map → index-Cie8AtZt.js.map} +1 -1
  15. package/dist/index.js +150 -149
  16. package/dist/{splitPathsBySizeLoader-Btq5cpt-.js → splitPathsBySizeLoader-B30Uhcpp.js} +2 -2
  17. package/dist/{splitPathsBySizeLoader-Btq5cpt-.js.map → splitPathsBySizeLoader-B30Uhcpp.js.map} +1 -1
  18. package/dist/{splitPathsBySizeLoader-VThmaq3t.js → splitPathsBySizeLoader-BPZd-Xd7.js} +2 -2
  19. package/dist/{splitPathsBySizeLoader-VThmaq3t.js.map → splitPathsBySizeLoader-BPZd-Xd7.js.map} +1 -1
  20. package/dist-types/edit-mode/dnd/utils.d.ts +4 -0
  21. package/dist-types/edit-mode/iframe-wrappers.d.ts +1 -0
  22. package/dist-types/edit-mode/source-update-api.d.ts +5 -0
  23. package/dist-types/edit-mode/superblocks-editor-bridge.d.ts +1 -0
  24. package/dist-types/internal-testing/components/slideout.d.ts +3 -0
  25. package/dist-types/lib/index.d.ts +1 -0
  26. package/dist-types/lib/internal-details/is-sb-component.d.ts +5 -1
  27. package/dist-types/lib/internal-details/lib/evaluator/base-entity-manager.d.ts +6 -6
  28. package/dist-types/lib/internal-details/lib/evaluator/compute-engines.d.ts +2 -1
  29. package/dist-types/lib/internal-details/lib/evaluator/lazy-function.d.ts +2 -1
  30. package/dist-types/lib/internal-details/lib/features/component-registry.d.ts +5 -0
  31. package/dist-types/lib/internal-details/lib/types.d.ts +3 -0
  32. package/dist-types/lib/triggers/implementations/components/control-slideout.d.ts +4 -3
  33. package/dist-types/lib/triggers/implementations/state/reset-state-var.d.ts +3 -3
  34. package/dist-types/lib/triggers/implementations/state/set-state-var.d.ts +3 -3
  35. package/dist-types/lib/triggers/implementations/timers/control-timer.d.ts +4 -3
  36. package/dist-types/lib/triggers/registry.d.ts +8 -8
  37. package/dist-types/lib/user-facing/build-manifest.d.ts +2 -0
  38. package/dist-types/lib/user-facing/components/button/index.d.ts +26 -26
  39. package/dist-types/lib/user-facing/components/button/props.d.ts +26 -26
  40. package/dist-types/lib/user-facing/components/checkbox/index.d.ts +31 -31
  41. package/dist-types/lib/user-facing/components/checkbox/props.d.ts +31 -31
  42. package/dist-types/lib/user-facing/components/column/index.d.ts +19 -19
  43. package/dist-types/lib/user-facing/components/column/props.d.ts +19 -19
  44. package/dist-types/lib/user-facing/components/container/index.d.ts +21 -21
  45. package/dist-types/lib/user-facing/components/container/props.d.ts +21 -21
  46. package/dist-types/lib/user-facing/components/custom/register-custom-component.d.ts +9 -9
  47. package/dist-types/lib/user-facing/components/date-picker/index.d.ts +48 -48
  48. package/dist-types/lib/user-facing/components/date-picker/props.d.ts +48 -48
  49. package/dist-types/lib/user-facing/components/dropdown/index.d.ts +54 -54
  50. package/dist-types/lib/user-facing/components/dropdown/props.d.ts +54 -54
  51. package/dist-types/lib/user-facing/components/grid/index.d.ts +20 -18
  52. package/dist-types/lib/user-facing/components/icon/index.d.ts +11 -13
  53. package/dist-types/lib/user-facing/components/icon/props.d.ts +11 -13
  54. package/dist-types/lib/user-facing/components/image/index.d.ts +20 -20
  55. package/dist-types/lib/user-facing/components/image/props.d.ts +23 -23
  56. package/dist-types/lib/user-facing/components/input/index.d.ts +63 -63
  57. package/dist-types/lib/user-facing/components/input/props.d.ts +63 -63
  58. package/dist-types/lib/user-facing/components/key-value/properties-props.d.ts +21 -21
  59. package/dist-types/lib/user-facing/components/key-value/props.d.ts +27 -27
  60. package/dist-types/lib/user-facing/components/modal/index.d.ts +27 -31
  61. package/dist-types/lib/user-facing/components/modal/props.d.ts +27 -27
  62. package/dist-types/lib/user-facing/components/page/index.d.ts +13 -13
  63. package/dist-types/lib/user-facing/components/page/props.d.ts +13 -13
  64. package/dist-types/lib/user-facing/components/section/index.d.ts +16 -16
  65. package/dist-types/lib/user-facing/components/section/props.d.ts +16 -16
  66. package/dist-types/lib/user-facing/components/slideout/constants.d.ts +10 -0
  67. package/dist-types/lib/user-facing/components/slideout/index.d.ts +41 -1
  68. package/dist-types/lib/user-facing/components/slideout/props.d.ts +39 -19
  69. package/dist-types/lib/user-facing/components/slideout/slideout-component.d.ts +31 -0
  70. package/dist-types/lib/user-facing/components/stack/index.d.ts +38 -38
  71. package/dist-types/lib/user-facing/components/switch/index.d.ts +32 -32
  72. package/dist-types/lib/user-facing/components/switch/props.d.ts +32 -32
  73. package/dist-types/lib/user-facing/components/table/column-properties-panel.d.ts +262 -161
  74. package/dist-types/lib/user-facing/components/table/index.d.ts +306 -205
  75. package/dist-types/lib/user-facing/components/table/props.d.ts +306 -205
  76. package/dist-types/lib/user-facing/components/table/table-utilities.d.ts +4 -4
  77. package/dist-types/lib/user-facing/components/table/table-widget.d.ts +5 -1
  78. package/dist-types/lib/user-facing/components/table/types.d.ts +31 -28
  79. package/dist-types/lib/user-facing/components/text/index.d.ts +35 -35
  80. package/dist-types/lib/user-facing/components/text/props.d.ts +35 -35
  81. package/dist-types/lib/user-facing/constants.d.ts +1 -1
  82. package/dist-types/lib/user-facing/entities/api/props.d.ts +10 -10
  83. package/dist-types/lib/user-facing/entities/timer/props.d.ts +12 -12
  84. package/dist-types/lib/user-facing/entities/variable/props.d.ts +7 -7
  85. package/dist-types/lib/user-facing/hooks/use-dialog-editing.d.ts +14 -0
  86. package/dist-types/lib/user-facing/layers.d.ts +1 -2
  87. package/dist-types/lib/user-facing/properties-panel/mixins/appearance-properties.d.ts +12 -12
  88. package/dist-types/lib/user-facing/properties-panel/mixins/appearance.d.ts +2 -2
  89. package/dist-types/lib/user-facing/properties-panel/mixins/form-inputs-properties.d.ts +10 -10
  90. package/dist-types/lib/user-facing/properties-panel/mixins/layout-section.d.ts +45 -45
  91. package/dist-types/lib/user-facing/properties-panel/mixins/loading.d.ts +1 -1
  92. package/dist-types/lib/user-facing/properties-panel/props-builder.d.ts +20 -9
  93. package/dist-types/lib/user-facing/sb-event-flow.d.ts +4 -4
  94. package/dist-types/lib/user-facing/sb-provider.d.ts +1 -2
  95. package/package.json +5 -3
  96. package/dist/icons-NrNO8p_u.js.map +0 -1
  97. package/dist-types/lib/user-facing/components/grid/utils.d.ts +0 -1
@@ -236,6 +236,9 @@ export type ColumnPropertyFunctions = {
236
236
  onDateSelected?: () => void;
237
237
  onCheckChange?: () => void;
238
238
  };
239
+ export type ContextualColumnProperty<T> = T | ((params: {
240
+ currentRow: UnknownRow;
241
+ }) => T);
239
242
  export interface ColumnProperties extends ColumnEditConfigs, ColumnPropertiesForEditing, ColumnPropertyFunctions {
240
243
  id: string;
241
244
  label: string;
@@ -245,41 +248,41 @@ export interface ColumnProperties extends ColumnEditConfigs, ColumnPropertiesFor
245
248
  isVisible: boolean;
246
249
  index: number;
247
250
  width: number;
248
- cellBackground?: string;
249
- horizontalAlign?: HorizontalAlignment;
250
- verticalAlign?: VerticalAlignment;
251
- cellProps?: {
251
+ cellBackground?: ContextualColumnProperty<string>;
252
+ horizontalAlign?: ContextualColumnProperty<HorizontalAlignment>;
253
+ verticalAlign?: ContextualColumnProperty<VerticalAlignment>;
254
+ cellProps?: ContextualColumnProperty<{
252
255
  textStyle: TextStyleWithVariant;
253
- };
256
+ }>;
254
257
  enableFilter?: boolean;
255
258
  enableSort?: boolean;
256
259
  isDerived: 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;
260
+ computedValue: ContextualColumnProperty<string>;
261
+ displayedValue?: ContextualColumnProperty<string>;
262
+ buttonLabel?: ContextualColumnProperty<string>;
263
+ buttonBackgroundColor?: ContextualColumnProperty<string>;
264
+ buttonBorder?: ContextualColumnProperty<PerSideBorder>;
265
+ buttonVariant?: ContextualColumnProperty<string>;
266
+ buttonTextStyle?: ContextualColumnProperty<TextStyleWithVariant>;
267
+ cellIcon?: ContextualColumnProperty<string>;
268
+ cellIconPosition?: ContextualColumnProperty<IconPosition>;
269
+ buttonIcon?: ContextualColumnProperty<string>;
270
+ buttonIconPosition?: ContextualColumnProperty<IconPosition>;
271
+ isDisabled?: ContextualColumnProperty<boolean>;
272
+ linkUrl?: ContextualColumnProperty<string>;
273
+ linkLabel?: ContextualColumnProperty<string>;
274
+ openInNewTab?: ContextualColumnProperty<boolean>;
272
275
  booleanStyleFalse?: BooleanStyleFalse;
273
- isEditable?: boolean | string;
276
+ isEditable?: ContextualColumnProperty<boolean>;
274
277
  isFrozen?: boolean;
275
- textWrap?: boolean;
276
- tagsWrap?: boolean;
278
+ textWrap?: ContextualColumnProperty<boolean>;
279
+ tagsWrap?: ContextualColumnProperty<boolean>;
277
280
  tagDisplayConfig: Record<string, TagDisplayConfig>;
278
- imageSize?: ImageSize;
279
- imageBorderRadius?: PerCornerBorderRadius;
280
- openImageUrl?: boolean;
281
- outputFormat?: string;
282
- inputFormat?: string;
281
+ imageSize?: ContextualColumnProperty<ImageSize>;
282
+ imageBorderRadius?: ContextualColumnProperty<PerCornerBorderRadius>;
283
+ openImageUrl?: ContextualColumnProperty<boolean>;
284
+ outputFormat?: ContextualColumnProperty<string>;
285
+ inputFormat?: ContextualColumnProperty<string>;
283
286
  }
284
287
  export type EditProps = ColumnEditConfigs & {
285
288
  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>> & {
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>;
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>;
5
5
  }>;
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>;
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>;
15
15
  } & (Omit<{
16
- textType: import("../../properties-panel/props-builder.js").Prop<"number" | "time" | "text" | "date" | "currency", false>;
16
+ textType: import("../../properties-panel/props-builder.js").Prop<"number" | "time" | "text" | "date" | "currency", false, undefined>;
17
17
  }, "textType" | "dateInputFormat" | "dateOutputFormat"> & ({
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>;
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>;
23
23
  dateInputFormat?: undefined;
24
24
  dateOutputFormat?: undefined;
25
25
  } | {
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>;
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>;
30
30
  dateInputFormat?: undefined;
31
31
  dateOutputFormat?: undefined;
32
32
  } | {
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>;
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>;
36
36
  })))>;
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>;
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>;
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>;
50
+ } | undefined, true, undefined>;
51
51
  } & {
52
- isVisible: import("../../properties-panel/props-builder.js").Prop<boolean, true>;
52
+ isVisible: import("../../properties-panel/props-builder.js").Prop<boolean, true, undefined>;
53
53
  } & {
54
- shouldScroll: import("../../properties-panel/props-builder.js").Prop<boolean, false>;
54
+ shouldScroll: import("../../properties-panel/props-builder.js").Prop<boolean, false, undefined>;
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>> & {
14
- text: Prop<string, false>;
15
- textType: Prop<"number" | "time" | "text" | "date" | "currency", true>;
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>;
16
16
  }>;
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>;
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>;
26
26
  } & (Omit<{
27
- textType: Prop<"number" | "time" | "text" | "date" | "currency", false>;
27
+ textType: Prop<"number" | "time" | "text" | "date" | "currency", false, undefined>;
28
28
  }, "textType" | "dateInputFormat" | "dateOutputFormat"> & ({
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>;
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>;
34
34
  dateInputFormat?: undefined;
35
35
  dateOutputFormat?: undefined;
36
36
  } | {
37
- minDecimals: Prop<number, false>;
38
- maxDecimals: Prop<number, false>;
39
- textType: Prop<"number", true>;
40
- numberFormat: Prop<"compact" | "standard" | "scientific" | "engineering" | "unformatted", true>;
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>;
41
41
  dateInputFormat?: undefined;
42
42
  dateOutputFormat?: undefined;
43
43
  } | {
44
- textType: Prop<"date", true>;
45
- dateInputFormat: Prop<string, false>;
46
- dateOutputFormat: Prop<string, false>;
44
+ textType: Prop<"date", true, undefined>;
45
+ dateInputFormat: Prop<string, false, undefined>;
46
+ dateOutputFormat: Prop<string, false, undefined>;
47
47
  })))>;
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>;
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>;
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>;
61
+ } | undefined, true, undefined>;
62
62
  } & {
63
- isVisible: Prop<boolean, true>;
63
+ isVisible: Prop<boolean, true, undefined>;
64
64
  } & {
65
- shouldScroll: Prop<boolean, false>;
65
+ shouldScroll: Prop<boolean, false, undefined>;
66
66
  }>;
67
67
  };
@@ -1,2 +1,2 @@
1
1
  export declare const CANVAS_ROOT_ID = "canvas-root";
2
- export declare const MODAL_TARGET_ROOT_ID = "modal-target-root";
2
+ export declare const PORTAL_ROOT_ID = "portal-root";
@@ -4,17 +4,17 @@ export type ApiEntity = InternalProps<typeof propertiesDefinition> & {
4
4
  cancel: () => Promise<any>;
5
5
  };
6
6
  export declare const propertiesDefinition: {
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>;
7
+ events: Section<Record<string, Prop<any, any, undefined>> & {
8
+ onSuccess: Prop<import("../../sb-event-flow.js").SbEventFlow, false, undefined>;
9
+ onError: Prop<import("../../sb-event-flow.js").SbEventFlow, false, undefined>;
10
10
  }>;
11
- metadata: Section<Record<string, Prop<any, any>> & {
12
- response: Prop<any, true>;
13
- error: Prop<any, true>;
14
- isRunning: Prop<boolean, true>;
11
+ metadata: Section<Record<string, Prop<any, any, undefined>> & {
12
+ response: Prop<any, true, undefined>;
13
+ error: Prop<any, true, undefined>;
14
+ isRunning: Prop<boolean, true, undefined>;
15
15
  }>;
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>;
16
+ functions: Section<Record<string, Prop<any, any, undefined>> & {
17
+ run: Prop<import("../../../internal-details/lib/evaluator/base-entity-manager.js").EntityFunction<[], Promise<any>>, true, undefined>;
18
+ cancel: Prop<import("../../../internal-details/lib/evaluator/base-entity-manager.js").EntityFunction<[], Promise<void>>, true, undefined>;
19
19
  }>;
20
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>> & {
4
- intervalMs: Prop<number, true>;
5
- startOnPageLoad: Prop<boolean, false>;
3
+ general: Section<Record<string, Prop<any, any, undefined>> & {
4
+ intervalMs: Prop<number, true, undefined>;
5
+ startOnPageLoad: Prop<boolean, false, undefined>;
6
6
  }>;
7
- events: Section<Record<string, Prop<any, any>> & {
8
- onFire: Prop<import("../../sb-event-flow.js").SbEventFlow, false>;
7
+ events: Section<Record<string, Prop<any, any, undefined>> & {
8
+ onFire: Prop<import("../../sb-event-flow.js").SbEventFlow, false, undefined>;
9
9
  }>;
10
- metadata: Section<Record<string, Prop<any, any>> & {
11
- timerId: Prop<string, false>;
12
- isRunning: Prop<boolean, true>;
10
+ metadata: Section<Record<string, Prop<any, any, undefined>> & {
11
+ timerId: Prop<string, false, undefined>;
12
+ isRunning: Prop<boolean, true, undefined>;
13
13
  }>;
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>;
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>;
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>> & {
5
- defaultValue: Prop<any, false>;
6
- value: Prop<any, false>;
7
- persistence: Prop<SbVariablePersistence, true>;
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>;
8
8
  }>;
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>;
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>;
12
12
  }>;
13
13
  };
@@ -0,0 +1,14 @@
1
+ /**
2
+ * A hook to enable editing dialogs.
3
+ *
4
+ * Dialog: A window overlaid on either the primary window or another dialog window, rendering the content underneath inert.
5
+ * E.g: Modal, Slideout, etc
6
+ *
7
+ * The hook expects an `isOpen` property on the component, but can be customized by passing a `isOpenPropertyName`.
8
+ */
9
+ import type { SbInstance } from "@superblocksteam/library-shared/types";
10
+ export declare function useDialogEditing(props: {
11
+ isOpen: boolean;
12
+ instanceId: SbInstance;
13
+ isOpenPropertyName?: string;
14
+ }): void;
@@ -22,7 +22,6 @@ export declare const Layers: {
22
22
  selectedRect: Indices;
23
23
  focusedRect: Indices;
24
24
  namePill: Indices;
25
- drawer: Indices;
26
25
  closeButton: Indices;
27
26
  stickySections: Indices;
28
27
  scrollbars: Indices;
@@ -31,7 +30,7 @@ export declare const Layers: {
31
30
  parentSelectedWrapper: Indices;
32
31
  widgetResizer: Indices;
33
32
  resizer: Indices;
34
- modal: Indices;
33
+ dialog: Indices;
35
34
  widgetName: Indices;
36
35
  selectionConstraintResize: Indices;
37
36
  addSectionButton: Indices;
@@ -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>;
5
+ variant: Prop<string, false, undefined>;
6
6
  textColor: import("../props-builder.js").CompositeProp<{
7
- default: Prop<string, false>;
7
+ default: Prop<string, false, undefined>;
8
8
  }>;
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>;
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>;
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>;
23
- export declare const labelTextStyle: () => Prop<TextStyleWithVariant, true>;
24
- export declare const inputTextStyle: () => Prop<TextStyleWithVariant, true>;
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>;
@@ -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>;
6
+ export declare const border: (propertiesPanelConfig?: Partial<Partial<PropertiesPanelDisplay<PerSideBorder, "BORDER_CONTROL">>>) => Prop<PerSideBorder, false, undefined>;
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>;
8
+ export declare const borderRadius: (propertiesPanelConfig?: Partial<Partial<PropertiesPanelDisplay<PerCornerBorderRadius, "BORDER_RADIUS_CONTROL">>>) => Prop<PerCornerBorderRadius, true, undefined>;
@@ -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>;
6
- export declare const labelWidth: Prop<Dim, true>;
5
+ export declare const errorMessagePlacement: Prop<ErrorMessagePlacement, true, undefined>;
6
+ export declare const labelWidth: Prop<Dim, true, undefined>;
7
7
  export declare const customValidationProperties: {
8
- customValidationRule: Prop<string, true>;
9
- customErrorMessage: Prop<string, true>;
8
+ customValidationRule: Prop<string, true, undefined>;
9
+ customErrorMessage: Prop<string, true, undefined>;
10
10
  };
11
- export declare const labelPosition: () => Prop<"top" | "left", true>;
11
+ export declare const labelPosition: () => Prop<"top" | "left", true, undefined>;
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>;
36
- customValidationRule: Prop<any, false>;
37
- customErrorMessage: Prop<string, true>;
35
+ errorMessagePlacement: Prop<ErrorMessagePlacement, true, undefined>;
36
+ customValidationRule: Prop<any, false, undefined>;
37
+ customErrorMessage: Prop<string, true, undefined>;
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>;
43
- maxDecimals: Prop<number, false>;
42
+ minDecimals: Prop<number, false, undefined>;
43
+ maxDecimals: Prop<number, false, undefined>;
44
44
  };