@superblocksteam/library 1.99.99-next.2 → 2.0.0-next.10

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 (79) hide show
  1. package/dist/{allPaths-CCZMME3l.js → allPaths-DXE_RTrt.js} +2 -2
  2. package/dist/{allPaths-CCZMME3l.js.map → allPaths-DXE_RTrt.js.map} +1 -1
  3. package/dist/{allPaths-CHXNxDVP.js → allPaths-h7bsheRo.js} +2 -2
  4. package/dist/{allPaths-CHXNxDVP.js.map → allPaths-h7bsheRo.js.map} +1 -1
  5. package/dist/{allPathsLoader-DTWFaGcd.js → allPathsLoader-16QM90xQ.js} +3 -3
  6. package/dist/{allPathsLoader-DTWFaGcd.js.map → allPathsLoader-16QM90xQ.js.map} +1 -1
  7. package/dist/{allPathsLoader-Fr8EhLGp.js → allPathsLoader-BWX35Jie.js} +3 -3
  8. package/dist/{allPathsLoader-Fr8EhLGp.js.map → allPathsLoader-BWX35Jie.js.map} +1 -1
  9. package/dist/{icons-BrNMuu_I.js → icons-D_yAT9A6.js} +27 -19
  10. package/dist/icons-D_yAT9A6.js.map +1 -0
  11. package/dist/{index-U0oPeutu.js → index-tdErpvtu.js} +49094 -48912
  12. package/dist/{index-U0oPeutu.js.map → index-tdErpvtu.js.map} +1 -1
  13. package/dist/index.js +2 -2
  14. package/dist/{splitPathsBySizeLoader-PcZVWYaJ.js → splitPathsBySizeLoader-7yhv4gcq.js} +2 -2
  15. package/dist/{splitPathsBySizeLoader-PcZVWYaJ.js.map → splitPathsBySizeLoader-7yhv4gcq.js.map} +1 -1
  16. package/dist/{splitPathsBySizeLoader-DHk6oFvg.js → splitPathsBySizeLoader-wQWCogRx.js} +2 -2
  17. package/dist/{splitPathsBySizeLoader-DHk6oFvg.js.map → splitPathsBySizeLoader-wQWCogRx.js.map} +1 -1
  18. package/dist-types/edit-mode/dnd/utils.d.ts +25 -0
  19. package/dist-types/edit-mode/features/operation-store.d.ts +4 -0
  20. package/dist-types/edit-mode/source-update-api.d.ts +2 -1
  21. package/dist-types/internal-testing/components/table.d.ts +3 -1
  22. package/dist-types/lib/index.d.ts +1 -1
  23. package/dist-types/lib/internal-details/identifier-normalizer.d.ts +1 -1
  24. package/dist-types/lib/internal-details/lib/evaluator/lazy-function.d.ts +1 -1
  25. package/dist-types/lib/sb-trigger.d.ts +0 -1
  26. package/dist-types/lib/triggers/implementations/show-alert.d.ts +6 -5
  27. package/dist-types/lib/triggers/implementations/state/reset-state-var.d.ts +9 -4
  28. package/dist-types/lib/triggers/implementations/state/set-state-var.d.ts +10 -5
  29. package/dist-types/lib/triggers/registry.d.ts +18 -8
  30. package/dist-types/lib/user-facing/component-base/constants.d.ts +4 -4
  31. package/dist-types/lib/user-facing/component-base/sb-component.d.ts +1 -2
  32. package/dist-types/lib/user-facing/component-base/utils/input-validation.d.ts +3 -3
  33. package/dist-types/lib/user-facing/components/button/index.d.ts +0 -1
  34. package/dist-types/lib/user-facing/components/button/props.d.ts +0 -1
  35. package/dist-types/lib/user-facing/components/checkbox/index.d.ts +0 -1
  36. package/dist-types/lib/user-facing/components/checkbox/props.d.ts +0 -1
  37. package/dist-types/lib/user-facing/components/column/index.d.ts +4 -5
  38. package/dist-types/lib/user-facing/components/column/props.d.ts +27 -29
  39. package/dist-types/lib/user-facing/components/container/index.d.ts +4 -5
  40. package/dist-types/lib/user-facing/components/container/props.d.ts +4 -5
  41. package/dist-types/lib/user-facing/components/custom/register-custom-component.d.ts +0 -1
  42. package/dist-types/lib/user-facing/components/date-picker/date-picker-component.d.ts +11 -4
  43. package/dist-types/lib/user-facing/components/date-picker/index.d.ts +2 -3
  44. package/dist-types/lib/user-facing/components/date-picker/props.d.ts +2 -3
  45. package/dist-types/lib/user-facing/components/date-picker/types.d.ts +2 -2
  46. package/dist-types/lib/user-facing/components/date-picker/utils.d.ts +11 -0
  47. package/dist-types/lib/user-facing/components/dropdown/index.d.ts +0 -1
  48. package/dist-types/lib/user-facing/components/dropdown/props.d.ts +0 -1
  49. package/dist-types/lib/user-facing/components/grid/index.d.ts +0 -1
  50. package/dist-types/lib/user-facing/components/icon/index.d.ts +0 -1
  51. package/dist-types/lib/user-facing/components/icon/props.d.ts +0 -1
  52. package/dist-types/lib/user-facing/components/image/index.d.ts +0 -1
  53. package/dist-types/lib/user-facing/components/image/props.d.ts +0 -1
  54. package/dist-types/lib/user-facing/components/input/derived-properties.d.ts +0 -1
  55. package/dist-types/lib/user-facing/components/input/index.d.ts +0 -1
  56. package/dist-types/lib/user-facing/components/input/props.d.ts +2 -4
  57. package/dist-types/lib/user-facing/components/key-value/props.d.ts +0 -1
  58. package/dist-types/lib/user-facing/components/modal/index.d.ts +4 -4
  59. package/dist-types/lib/user-facing/components/modal/props.d.ts +4 -4
  60. package/dist-types/lib/user-facing/components/section/index.d.ts +2 -1
  61. package/dist-types/lib/user-facing/components/section/props.d.ts +2 -1
  62. package/dist-types/lib/user-facing/components/slideout/props.d.ts +0 -1
  63. package/dist-types/lib/user-facing/components/stack/index.d.ts +4 -7
  64. package/dist-types/lib/user-facing/components/switch/index.d.ts +0 -1
  65. package/dist-types/lib/user-facing/components/switch/props.d.ts +0 -1
  66. package/dist-types/lib/user-facing/components/table/index.d.ts +0 -1
  67. package/dist-types/lib/user-facing/components/table/props.d.ts +0 -1
  68. package/dist-types/lib/user-facing/components/text/index.d.ts +0 -1
  69. package/dist-types/lib/user-facing/components/text/props.d.ts +0 -1
  70. package/dist-types/lib/user-facing/global-functions.d.ts +2 -1
  71. package/dist-types/lib/user-facing/properties-panel/mixins/appearance-properties.d.ts +1 -0
  72. package/dist-types/lib/user-facing/properties-panel/mixins/layout-section.d.ts +11 -13
  73. package/dist-types/lib/user-facing/properties-panel/props-builder.d.ts +1 -1
  74. package/dist-types/lib/user-facing/sb-event-flow.d.ts +9 -9
  75. package/dist-types/lib/user-facing/state/create-bindable-entity-proxy.d.ts +3 -4
  76. package/dist-types/lib/user-facing/state/types.d.ts +1 -8
  77. package/dist-types/lib/user-facing/utils/notification.d.ts +17 -0
  78. package/package.json +2 -2
  79. package/dist/icons-BrNMuu_I.js.map +0 -1
@@ -4,7 +4,7 @@ export declare const SbDatePicker: React.FC<import("../../properties-panel/props
4
4
  label: import("../../properties-panel/props-builder.js").Prop<string, true>;
5
5
  defaultDate: import("../../properties-panel/props-builder.js").Prop<string, false>;
6
6
  dateFormat: import("../../properties-panel/props-builder.js").Prop<string, true>;
7
- displayDateFormat: import("../../properties-panel/props-builder.js").Prop<string, false>;
7
+ displayDateFormat: import("../../properties-panel/props-builder.js").Prop<string, true>;
8
8
  } & (Omit<{
9
9
  manageTimezone: import("../../properties-panel/props-builder.js").Prop<boolean, true>;
10
10
  }, "manageTimezone" | "displayTimezone" | "valueTimezone"> & ({
@@ -29,12 +29,11 @@ export declare const SbDatePicker: React.FC<import("../../properties-panel/props
29
29
  margin: import("../../properties-panel/props-builder.js").Prop<unknown, true>;
30
30
  } & {
31
31
  isVisible: import("../../properties-panel/props-builder.js").Prop<boolean, true>;
32
- collapseWhenInvisible: import("../../properties-panel/props-builder.js").Prop<boolean, false>;
33
32
  }>;
34
33
  appearance: import("../../properties-panel/props-builder.js").Section<Record<string, import("../../properties-panel/props-builder.js").Prop<any, any>> & {
35
34
  labelPosition: import("../../properties-panel/props-builder.js").Prop<"left" | "top", true>;
36
35
  labelStyle: import("../../properties-panel/props-builder.js").Prop<import("@superblocksteam/library-shared/types").TextStyleWithVariant, true>;
37
- showIcon: import("../../properties-panel/props-builder.js").Prop<boolean, true>;
36
+ icon: import("../../properties-panel/props-builder.js").Prop<string, true>;
38
37
  }>;
39
38
  interaction: import("../../properties-panel/props-builder.js").Section<Record<string, import("../../properties-panel/props-builder.js").Prop<any, any>> & {
40
39
  customValidationRule: import("../../properties-panel/props-builder.js").Prop<string, true>;
@@ -6,7 +6,7 @@ export declare const propertiesDefinition: {
6
6
  label: Prop<string, true>;
7
7
  defaultDate: Prop<string, false>;
8
8
  dateFormat: Prop<string, true>;
9
- displayDateFormat: Prop<string, false>;
9
+ displayDateFormat: Prop<string, true>;
10
10
  } & (Omit<{
11
11
  manageTimezone: Prop<boolean, true>;
12
12
  }, "manageTimezone" | "displayTimezone" | "valueTimezone"> & ({
@@ -31,12 +31,11 @@ export declare const propertiesDefinition: {
31
31
  margin: Prop<unknown, true>;
32
32
  } & {
33
33
  isVisible: Prop<boolean, true>;
34
- collapseWhenInvisible: Prop<boolean, false>;
35
34
  }>;
36
35
  appearance: Section<Record<string, Prop<any, any>> & {
37
36
  labelPosition: Prop<"left" | "top", true>;
38
37
  labelStyle: Prop<import("@superblocksteam/library-shared/types").TextStyleWithVariant, true>;
39
- showIcon: Prop<boolean, true>;
38
+ icon: Prop<string, true>;
40
39
  }>;
41
40
  interaction: Section<Record<string, Prop<any, any>> & {
42
41
  customValidationRule: Prop<string, true>;
@@ -19,8 +19,8 @@ export interface DatePickerComponentProps {
19
19
  timezone?: string;
20
20
  isRequired?: boolean;
21
21
  showTimezone?: boolean;
22
- showCalendarIcon?: boolean;
23
22
  forceOpen?: boolean;
23
+ icon?: string;
24
24
  iconSize?: number;
25
25
  inputClassName?: string;
26
26
  inputStyleOverride?: React.CSSProperties;
@@ -35,6 +35,6 @@ export interface DatePickerComponentProps {
35
35
  errorMessages?: string[];
36
36
  isFitContentHeight?: boolean;
37
37
  onInputClick?: (e: React.MouseEvent) => void;
38
- onDateSelected: (selectedDate: string) => void;
38
+ onDateSelected: (selectedDate?: string) => void;
39
39
  onDatePickerClosed?: () => void;
40
40
  }
@@ -16,6 +16,17 @@ export declare function normalizeDateFormat(dateFormat: string): string;
16
16
  * @returns {string} - The formatted date string in "MM/DD/YYYY HH:mm:ss" format.
17
17
  */
18
18
  export declare function stripTimezoneFromString(dateString: string, format: string): string;
19
+ /**
20
+ * Because the datepicker UI component works with JavaScript dates (which use the system TZ),
21
+ * we want to "strip" the timezone when passing it to this copmonent.
22
+ *
23
+ * For example:
24
+ * If the selected date is 01/01/2001 01:00PM EST and the system time is PST, we want to create a JS Date that has the value
25
+ * 01/01/2001 01:00PM PST and pass that to the blueprint datepicker.
26
+ *
27
+ * Then, when the user selects a date, we receive a date object with a value of 01/01/2001 02:00PM PST
28
+ * which we then convert to 01/01/2001 2:00PM EST to store as the selectedDate
29
+ */
19
30
  export declare const stripTimezoneFromDate: (date: Date, dateFormat: string, timezone?: string) => string;
20
31
  export declare const convertDateStringTimezone: (dateStr: string, dateFormat: string, originalTimezone?: string, newTimezone?: string) => string;
21
32
  export declare const formatIncludesTimezone: (dateFormat: string) => boolean;
@@ -32,7 +32,6 @@ export declare const SbDropdown: React.FC<import("../../properties-panel/props-b
32
32
  margin: import("../../properties-panel/props-builder.js").Prop<unknown, true>;
33
33
  } & {
34
34
  isVisible: import("../../properties-panel/props-builder.js").Prop<boolean, true>;
35
- collapseWhenInvisible: import("../../properties-panel/props-builder.js").Prop<boolean, false>;
36
35
  }>;
37
36
  interaction: import("../../properties-panel/props-builder.js").Section<Record<string, import("../../properties-panel/props-builder.js").Prop<any, any>> & {
38
37
  customValidationRule: import("../../properties-panel/props-builder.js").Prop<string, true>;
@@ -34,7 +34,6 @@ export declare const propertiesDefinition: {
34
34
  margin: Prop<unknown, true>;
35
35
  } & {
36
36
  isVisible: Prop<boolean, true>;
37
- collapseWhenInvisible: Prop<boolean, false>;
38
37
  }>;
39
38
  interaction: Section<Record<string, Prop<any, any>> & {
40
39
  customValidationRule: Prop<string, true>;
@@ -28,7 +28,6 @@ declare const _propertiesDefinition: {
28
28
  margin: Prop<unknown, true>;
29
29
  } & {
30
30
  isVisible: Prop<boolean, true>;
31
- collapseWhenInvisible: Prop<boolean, false>;
32
31
  }>;
33
32
  };
34
33
  export type GridProps = InternalProps<typeof _propertiesDefinition>;
@@ -10,7 +10,6 @@ export declare const SbIcon: import("react").FC<import("../../properties-panel/p
10
10
  margin: import("../../properties-panel/props-builder.js").Prop<unknown, true>;
11
11
  } & {
12
12
  isVisible: import("../../properties-panel/props-builder.js").Prop<boolean, true>;
13
- collapseWhenInvisible: import("../../properties-panel/props-builder.js").Prop<boolean, false>;
14
13
  }>;
15
14
  appearance: import("../../properties-panel/props-builder.js").Section<Record<string, import("../../properties-panel/props-builder.js").Prop<any, any>> & {
16
15
  color: import("../../properties-panel/props-builder.js").Prop<string, false>;
@@ -12,7 +12,6 @@ export declare const propertiesDefinition: {
12
12
  margin: Prop<unknown, true>;
13
13
  } & {
14
14
  isVisible: Prop<boolean, true>;
15
- collapseWhenInvisible: Prop<boolean, false>;
16
15
  }>;
17
16
  appearance: Section<Record<string, Prop<any, any>> & {
18
17
  color: Prop<string, false>;
@@ -21,7 +21,6 @@ export declare const SbImage: import("react").FC<import("../../properties-panel/
21
21
  margin: import("../../properties-panel/props-builder.js").Prop<unknown, true>;
22
22
  } & {
23
23
  isVisible: import("../../properties-panel/props-builder.js").Prop<boolean, true>;
24
- collapseWhenInvisible: import("../../properties-panel/props-builder.js").Prop<boolean, false>;
25
24
  }>;
26
25
  events: import("../../properties-panel/props-builder.js").Section<Record<string, import("../../properties-panel/props-builder.js").Prop<any, any>> & {
27
26
  onClick: import("../../properties-panel/props-builder.js").Prop<import("../../sb-event-flow.js").SbEventFlow, false>;
@@ -31,7 +31,6 @@ export declare const propertiesDefinition: {
31
31
  margin: Prop<unknown, true>;
32
32
  } & {
33
33
  isVisible: Prop<boolean, true>;
34
- collapseWhenInvisible: Prop<boolean, false>;
35
34
  }>;
36
35
  events: Section<Record<string, Prop<any, any>> & {
37
36
  onClick: Prop<import("../../sb-event-flow.js").SbEventFlow, false>;
@@ -1,5 +1,4 @@
1
1
  import type { InputWidgetProps } from "./types.js";
2
2
  export declare function getValue(this: InputWidgetProps): string | number | null | undefined;
3
- export declare function getValidationErrors(this: InputWidgetProps): Record<"number" | "url" | "required" | "email" | "minMax" | "customRule", string | undefined>;
4
3
  export declare function getShowError(this: InputWidgetProps): boolean;
5
4
  export declare function getIsValid(this: InputWidgetProps): boolean;
@@ -54,7 +54,6 @@ export declare const SbInput: import("react").FC<import("../../properties-panel/
54
54
  labelWidth?: undefined;
55
55
  }))))) & {
56
56
  isVisible: import("../../properties-panel/props-builder.js").Prop<boolean, true>;
57
- collapseWhenInvisible: import("../../properties-panel/props-builder.js").Prop<boolean, false>;
58
57
  }>;
59
58
  interaction: import("../../properties-panel/props-builder.js").Section<Record<string, import("../../properties-panel/props-builder.js").Prop<any, any>> & Omit<{
60
59
  inputType: import("../../properties-panel/props-builder.js").Prop<string, false>;
@@ -1,7 +1,6 @@
1
1
  import { Section, Prop } from "../../properties-panel/props-builder.js";
2
2
  import type { CurrencyCodeDisplayType } from "./types.js";
3
3
  import type { IconPosition } from "../../icons/constants.js";
4
- import type { TextStyleWithVariant } from "@superblocksteam/library-shared/types";
5
4
  export declare const propertiesDefinition: {
6
5
  general: Section<(Record<string, Prop<any, any>> & ({
7
6
  label: Prop<string, true>;
@@ -22,9 +21,9 @@ export declare const propertiesDefinition: {
22
21
  }>;
23
22
  appearance: Section<Record<string, Prop<any, any>> & {
24
23
  labelPosition: Prop<"left" | "top", true>;
25
- labelStyle: Prop<TextStyleWithVariant, true>;
24
+ labelStyle: Prop<import("@superblocksteam/library-shared/types").TextStyleWithVariant, true>;
26
25
  placeholderText: Prop<string, true>;
27
- textStyle: Prop<TextStyleWithVariant, true>;
26
+ textStyle: Prop<import("@superblocksteam/library-shared/types").TextStyleWithVariant, true>;
28
27
  backgroundColor: Prop<string, true>;
29
28
  border: Prop<import("@superblocksteam/library-shared/types").PerSideBorder, true>;
30
29
  borderRadius: Prop<import("@superblocksteam/library-shared/types").PerCornerBorderRadius, true>;
@@ -58,7 +57,6 @@ export declare const propertiesDefinition: {
58
57
  labelWidth?: undefined;
59
58
  }))))) & {
60
59
  isVisible: Prop<boolean, true>;
61
- collapseWhenInvisible: Prop<boolean, false>;
62
60
  }>;
63
61
  interaction: Section<Record<string, Prop<any, any>> & Omit<{
64
62
  inputType: Prop<string, false>;
@@ -21,7 +21,6 @@ export declare const propertiesDefinition: {
21
21
  }>;
22
22
  layout: Section<Record<string, Prop<any, any>> & {
23
23
  isVisible: Prop<boolean, true>;
24
- collapseWhenInvisible: Prop<boolean, false>;
25
24
  keyProps: Prop<any, true>;
26
25
  "keyProps.width": Prop<any, false>;
27
26
  "valueProps.position": Prop<"left" | "right", true>;
@@ -15,14 +15,14 @@ export declare const SbModal: import("react").FC<import("../../properties-panel/
15
15
  }) | (Omit<{
16
16
  layout: import("../../properties-panel/props-builder.js").Prop<ContainerLayout, true>;
17
17
  }, "layout" | "verticalAlign" | "horizontalAlign"> & {
18
- readonly verticalAlign: import("../../properties-panel/props-builder.js").Prop<import("../../component-base/constants.js").VerticalAlignment, true>;
19
- readonly horizontalAlign: import("../../properties-panel/props-builder.js").Prop<import("../../component-base/constants.js").HorizontalAlignment, true>;
18
+ readonly verticalAlign: import("../../properties-panel/props-builder.js").Prop<"center" | "space-around" | "space-between" | "bottom" | "top", true>;
19
+ readonly horizontalAlign: import("../../properties-panel/props-builder.js").Prop<"center" | "left" | "right", true>;
20
20
  readonly layout: import("../../properties-panel/props-builder.js").Prop<"vertical", true>;
21
21
  }) | (Omit<{
22
22
  layout: import("../../properties-panel/props-builder.js").Prop<ContainerLayout, true>;
23
23
  }, "layout" | "verticalAlign" | "horizontalAlign"> & {
24
- readonly verticalAlign: import("../../properties-panel/props-builder.js").Prop<import("../../component-base/constants.js").VerticalAlignment, true>;
25
- readonly horizontalAlign: import("../../properties-panel/props-builder.js").Prop<import("../../component-base/constants.js").HorizontalAlignment, true>;
24
+ readonly verticalAlign: import("../../properties-panel/props-builder.js").Prop<"center" | "bottom" | "top", true>;
25
+ readonly horizontalAlign: import("../../properties-panel/props-builder.js").Prop<"center" | "space-around" | "space-between" | "left" | "right", true>;
26
26
  readonly layout: import("../../properties-panel/props-builder.js").Prop<"horizontal", true>;
27
27
  }))) & {
28
28
  spacing: import("../../properties-panel/props-builder.js").Prop<Dim<"px">, true>;
@@ -12,14 +12,14 @@ export declare const propertiesDefinition: {
12
12
  }) | (Omit<{
13
13
  layout: Prop<import("../../component-base/constants.js").ContainerLayout, true>;
14
14
  }, "layout" | "verticalAlign" | "horizontalAlign"> & {
15
- readonly verticalAlign: Prop<import("../../component-base/constants.js").VerticalAlignment, true>;
16
- readonly horizontalAlign: Prop<import("../../component-base/constants.js").HorizontalAlignment, true>;
15
+ readonly verticalAlign: Prop<"center" | "space-around" | "space-between" | "bottom" | "top", true>;
16
+ readonly horizontalAlign: Prop<"center" | "left" | "right", true>;
17
17
  readonly layout: Prop<"vertical", true>;
18
18
  }) | (Omit<{
19
19
  layout: Prop<import("../../component-base/constants.js").ContainerLayout, true>;
20
20
  }, "layout" | "verticalAlign" | "horizontalAlign"> & {
21
- readonly verticalAlign: Prop<import("../../component-base/constants.js").VerticalAlignment, true>;
22
- readonly horizontalAlign: Prop<import("../../component-base/constants.js").HorizontalAlignment, true>;
21
+ readonly verticalAlign: Prop<"center" | "bottom" | "top", true>;
22
+ readonly horizontalAlign: Prop<"center" | "space-around" | "space-between" | "left" | "right", true>;
23
23
  readonly layout: Prop<"horizontal", true>;
24
24
  }))) & {
25
25
  spacing: Prop<import("@superblocksteam/library-shared").Dim<"px">, true>;
@@ -3,6 +3,8 @@ export declare const SbSection: import("react").FC<import("../../properties-pane
3
3
  columns: import("../../properties-panel/props-builder.js").Prop<string[], false>;
4
4
  }>;
5
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>;
7
+ } & {
6
8
  maxHeight?: import("../../properties-panel/props-builder.js").Prop<import("@superblocksteam/library-shared").Dim<import("@superblocksteam/library-shared").DimModes>, false> | undefined;
7
9
  minHeight?: import("../../properties-panel/props-builder.js").Prop<import("@superblocksteam/library-shared").Dim<import("@superblocksteam/library-shared").DimModes>, false> | undefined;
8
10
  maxWidth?: import("../../properties-panel/props-builder.js").Prop<import("@superblocksteam/library-shared").Dim<import("@superblocksteam/library-shared").DimModes>, false> | undefined;
@@ -13,7 +15,6 @@ export declare const SbSection: import("react").FC<import("../../properties-pane
13
15
  sticky: import("../../properties-panel/props-builder.js").Prop<boolean, true>;
14
16
  } & {
15
17
  isVisible: import("../../properties-panel/props-builder.js").Prop<boolean, true>;
16
- collapseWhenInvisible: import("../../properties-panel/props-builder.js").Prop<boolean, false>;
17
18
  }>;
18
19
  appearance: import("../../properties-panel/props-builder.js").Section<Record<string, import("../../properties-panel/props-builder.js").Prop<any, any>> & {
19
20
  backgroundColor: import("../../properties-panel/props-builder.js").Prop<string, false>;
@@ -6,6 +6,8 @@ export declare const propertiesDefinition: {
6
6
  columns: Prop<string[], false>;
7
7
  }>;
8
8
  layout: Section<Record<string, Prop<any, any>> & {
9
+ padding: Prop<import("@superblocksteam/library-shared/types").Spacing, true>;
10
+ } & {
9
11
  maxHeight?: Prop<Dim<import("@superblocksteam/library-shared").DimModes>, false> | undefined;
10
12
  minHeight?: Prop<Dim<import("@superblocksteam/library-shared").DimModes>, false> | undefined;
11
13
  maxWidth?: Prop<Dim<import("@superblocksteam/library-shared").DimModes>, false> | undefined;
@@ -16,7 +18,6 @@ export declare const propertiesDefinition: {
16
18
  sticky: Prop<boolean, true>;
17
19
  } & {
18
20
  isVisible: Prop<boolean, true>;
19
- collapseWhenInvisible: Prop<boolean, false>;
20
21
  }>;
21
22
  appearance: Section<Record<string, Prop<any, any>> & {
22
23
  backgroundColor: Prop<string, false>;
@@ -10,6 +10,5 @@ export declare const propertiesDefinition: {
10
10
  margin: import("../../properties-panel/props-builder.js").Prop<unknown, true>;
11
11
  } & {
12
12
  isVisible: import("../../properties-panel/props-builder.js").Prop<boolean, true>;
13
- collapseWhenInvisible: import("../../properties-panel/props-builder.js").Prop<boolean, false>;
14
13
  }>;
15
14
  };
@@ -1,13 +1,11 @@
1
1
  import { Dim } from "@superblocksteam/library-shared";
2
2
  import React from "react";
3
3
  import { Prop, Section } from "../../properties-panel/props-builder.js";
4
- import type { HorizontalAlignment, VerticalAlignment } from "../../component-base/constants.js";
5
4
  import type { InternalPropsWithOptional } from "../../properties-panel/props-builder.js";
6
5
  import type { DimModes } from "@superblocksteam/library-shared";
7
6
  declare const _propertiesDefinitionVStack: {
8
7
  layout: Section<Record<string, Prop<any, any>> & {
9
8
  isVisible: Prop<boolean, true>;
10
- collapseWhenInvisible: Prop<boolean, false>;
11
9
  shouldScrollContents: Prop<boolean, true>;
12
10
  margin: Prop<unknown, true>;
13
11
  maxHeight?: Prop<Dim<DimModes>, false> | undefined;
@@ -18,8 +16,8 @@ declare const _propertiesDefinitionVStack: {
18
16
  height: Prop<Dim<DimModes>, false>;
19
17
  padding: Prop<import("@superblocksteam/library-shared/types").Spacing, true>;
20
18
  spacing: Prop<Dim<"px">, true>;
21
- verticalAlign: Prop<VerticalAlignment, true>;
22
- horizontalAlign: Prop<HorizontalAlignment, true>;
19
+ verticalAlign: Prop<"center" | "space-around" | "space-between" | "bottom" | "top", true>;
20
+ horizontalAlign: Prop<"center" | "space-around" | "space-between" | "left" | "right", true>;
23
21
  }>;
24
22
  appearance: Section<Record<string, Prop<any, any>> & {
25
23
  backgroundColor: Prop<string, false>;
@@ -30,7 +28,6 @@ declare const _propertiesDefinitionVStack: {
30
28
  declare const _propertiesDefinitionHStack: {
31
29
  layout: Section<Record<string, Prop<any, any>> & {
32
30
  isVisible: Prop<boolean, true>;
33
- collapseWhenInvisible: Prop<boolean, false>;
34
31
  shouldScrollContents: Prop<boolean, true>;
35
32
  margin: Prop<unknown, true>;
36
33
  maxHeight?: Prop<Dim<DimModes>, false> | undefined;
@@ -41,8 +38,8 @@ declare const _propertiesDefinitionHStack: {
41
38
  height: Prop<Dim<DimModes>, false>;
42
39
  padding: Prop<import("@superblocksteam/library-shared/types").Spacing, true>;
43
40
  spacing: Prop<Dim<"px">, true>;
44
- verticalAlign: Prop<VerticalAlignment, true>;
45
- horizontalAlign: Prop<HorizontalAlignment, true>;
41
+ verticalAlign: Prop<"center" | "space-around" | "space-between" | "bottom" | "top", true>;
42
+ horizontalAlign: Prop<"center" | "space-around" | "space-between" | "left" | "right", true>;
46
43
  }>;
47
44
  appearance: Section<Record<string, Prop<any, any>> & {
48
45
  backgroundColor: Prop<string, false>;
@@ -19,7 +19,6 @@ export declare const SbSwitch: import("react").FC<import("../../properties-panel
19
19
  margin: import("../../properties-panel/props-builder.js").Prop<unknown, true>;
20
20
  } & {
21
21
  isVisible: import("../../properties-panel/props-builder.js").Prop<boolean, true>;
22
- collapseWhenInvisible: import("../../properties-panel/props-builder.js").Prop<boolean, false>;
23
22
  }>;
24
23
  interaction: import("../../properties-panel/props-builder.js").Section<Record<string, import("../../properties-panel/props-builder.js").Prop<any, any>> & {
25
24
  customValidationRule: import("../../properties-panel/props-builder.js").Prop<string, true>;
@@ -20,7 +20,6 @@ export declare const propertiesDefinition: {
20
20
  margin: Prop<unknown, true>;
21
21
  } & {
22
22
  isVisible: Prop<boolean, true>;
23
- collapseWhenInvisible: Prop<boolean, false>;
24
23
  }>;
25
24
  interaction: Section<Record<string, Prop<any, any>> & {
26
25
  customValidationRule: Prop<string, true>;
@@ -187,7 +187,6 @@ export declare const SbTable: import("react").FC<import("../../properties-panel/
187
187
  margin: import("../../properties-panel/props-builder.js").Prop<unknown, true>;
188
188
  } & {
189
189
  isVisible: import("../../properties-panel/props-builder.js").Prop<boolean, true>;
190
- collapseWhenInvisible: import("../../properties-panel/props-builder.js").Prop<boolean, false>;
191
190
  }>;
192
191
  interaction: import("../../properties-panel/props-builder.js").Section<Record<string, import("../../properties-panel/props-builder.js").Prop<any, any>> & {
193
192
  isFilterable: import("../../properties-panel/props-builder.js").Prop<boolean, true>;
@@ -191,7 +191,6 @@ export declare const propertiesDefinition: {
191
191
  margin: Prop<unknown, true>;
192
192
  } & {
193
193
  isVisible: Prop<boolean, true>;
194
- collapseWhenInvisible: Prop<boolean, false>;
195
194
  }>;
196
195
  interaction: Section<Record<string, Prop<any, any>> & {
197
196
  isFilterable: Prop<boolean, true>;
@@ -44,7 +44,6 @@ export declare const SbText: import("react").FC<import("../../properties-panel/p
44
44
  margin: import("../../properties-panel/props-builder.js").Prop<unknown, true>;
45
45
  } & {
46
46
  isVisible: import("../../properties-panel/props-builder.js").Prop<boolean, true>;
47
- collapseWhenInvisible: import("../../properties-panel/props-builder.js").Prop<boolean, false>;
48
47
  } & {
49
48
  shouldScroll: import("../../properties-panel/props-builder.js").Prop<boolean, false>;
50
49
  }>;
@@ -53,7 +53,6 @@ export declare const propertiesDefinition: {
53
53
  margin: Prop<unknown, true>;
54
54
  } & {
55
55
  isVisible: Prop<boolean, true>;
56
- collapseWhenInvisible: Prop<boolean, false>;
57
56
  } & {
58
57
  shouldScroll: Prop<boolean, false>;
59
58
  }>;
@@ -1,3 +1,4 @@
1
+ import { type NotificationPosition, type NotificationType } from "./utils/notification.jsx";
1
2
  export declare enum Types {
2
3
  STRING = "STRING",
3
4
  NUMBER = "NUMBER",
@@ -19,5 +20,5 @@ export declare function copyToClipboard(text: string, options?: {
19
20
  export declare function navigateTo(urlOrRoute: string, queryParams?: Record<string, any>, target?: string): boolean;
20
21
  export declare function setQueryParams(queryParams?: Record<string, any>, preserveExistingQueryParams?: boolean): boolean;
21
22
  export declare function download(data: any, fileName?: string, fileType?: string): void;
22
- export declare function showAlert(_message: string, _style: string, _durationSeconds?: number, _alertPosition?: string): void;
23
+ export declare function showAlert(message: string, style: NotificationType, durationSeconds?: number, alertPosition?: NotificationPosition): void;
23
24
  export declare function logoutIntegrations(): void;
@@ -19,4 +19,5 @@ 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>;
22
23
  export declare const labelTextStyle: () => Prop<TextStyleWithVariant, true>;
@@ -45,7 +45,6 @@ export declare const shouldScrollContents: (defaultValue?: boolean) => {
45
45
  };
46
46
  export declare const visible: () => {
47
47
  isVisible: Prop<boolean, true>;
48
- collapseWhenInvisible: Prop<boolean, false>;
49
48
  };
50
49
  export declare const spacing: (options?: {
51
50
  default?: Dim<"px">;
@@ -60,9 +59,9 @@ export declare const padding: (options?: {
60
59
  export declare const margin: () => {
61
60
  margin: Prop<unknown, true>;
62
61
  };
63
- export declare const getAlignmentProps: () => {
64
- verticalAlign: Prop<VerticalAlignment, true>;
65
- horizontalAlign: Prop<HorizontalAlignment, true>;
62
+ export declare const getAlignmentProps: <LayoutType extends "vertical" | "horizontal">() => {
63
+ verticalAlign: Prop<VerticalAlignment<LayoutType>, true>;
64
+ horizontalAlign: Prop<HorizontalAlignment<LayoutType>, true>;
66
65
  };
67
66
  export declare const containerLayout: () => import("../props-builder.js").UnionProp<{
68
67
  layout: Prop<ContainerLayout, true>;
@@ -72,12 +71,12 @@ export declare const containerLayout: () => import("../props-builder.js").UnionP
72
71
  readonly rows: Prop<number, false>;
73
72
  readonly rowSize: Prop<number, false>;
74
73
  }, {
75
- readonly verticalAlign: Prop<VerticalAlignment, true>;
76
- readonly horizontalAlign: Prop<HorizontalAlignment, true>;
74
+ readonly verticalAlign: Prop<"center" | "space-around" | "space-between" | "bottom" | "top", true>;
75
+ readonly horizontalAlign: Prop<"center" | "left" | "right", true>;
77
76
  readonly layout: Prop<"vertical", true>;
78
77
  }, {
79
- readonly verticalAlign: Prop<VerticalAlignment, true>;
80
- readonly horizontalAlign: Prop<HorizontalAlignment, true>;
78
+ readonly verticalAlign: Prop<"center" | "bottom" | "top", true>;
79
+ readonly horizontalAlign: Prop<"center" | "space-around" | "space-between" | "left" | "right", true>;
81
80
  readonly layout: Prop<"horizontal", true>;
82
81
  }], ({
83
82
  layout: Prop<ContainerLayout, true>;
@@ -89,14 +88,14 @@ export declare const containerLayout: () => import("../props-builder.js").UnionP
89
88
  }) | ({
90
89
  layout: Prop<ContainerLayout, true>;
91
90
  } & {
92
- readonly verticalAlign: Prop<VerticalAlignment, true>;
93
- readonly horizontalAlign: Prop<HorizontalAlignment, true>;
91
+ readonly verticalAlign: Prop<"center" | "space-around" | "space-between" | "bottom" | "top", true>;
92
+ readonly horizontalAlign: Prop<"center" | "left" | "right", true>;
94
93
  readonly layout: Prop<"vertical", true>;
95
94
  }) | ({
96
95
  layout: Prop<ContainerLayout, true>;
97
96
  } & {
98
- readonly verticalAlign: Prop<VerticalAlignment, true>;
99
- readonly horizontalAlign: Prop<HorizontalAlignment, true>;
97
+ readonly verticalAlign: Prop<"center" | "bottom" | "top", true>;
98
+ readonly horizontalAlign: Prop<"center" | "space-around" | "space-between" | "left" | "right", true>;
100
99
  readonly layout: Prop<"horizontal", true>;
101
100
  })>;
102
101
  export declare const basicLayout: () => Section<Record<string, Prop<any, any>> & {
@@ -110,5 +109,4 @@ export declare const basicLayout: () => Section<Record<string, Prop<any, any>> &
110
109
  margin: Prop<unknown, true>;
111
110
  } & {
112
111
  isVisible: Prop<boolean, true>;
113
- collapseWhenInvisible: Prop<boolean, false>;
114
112
  }>;
@@ -205,7 +205,7 @@ declare class Prop<Type extends DataType, _HasDefault extends boolean = false> {
205
205
  setName(name: string): this;
206
206
  onEdit(callback: SideEffectCallback): this;
207
207
  onEvaluate(callback: SideEffectCallback): this;
208
- propertiesPanel<CT extends ControlType>(schema: Omit<Partial<PropertiesPanelDisplay<Type, CT>>, "defaultValue">): this;
208
+ propertiesPanel<CT extends ControlType>(schema: Omit<Partial<PropertiesPanelDisplay<Type, CT>>, "defaultValue" | "isTriggerProperty">): this;
209
209
  build(): ManagedProp<Type>;
210
210
  toDefinition(entity?: Entity, scopedState?: ScopedState): WidgetPropertyDefinition<DataType> | undefined;
211
211
  getRelations(): Relation[][];
@@ -1,7 +1,7 @@
1
1
  import type { ScopedState, ValueInputProp } from "../internal-details/lib/evaluator/base-entity-manager.js";
2
- import type { SelectedStateVarProps, SelectedWidgetProps, StepDef } from "../sb-trigger.js";
3
- import type { TypeOptions } from "../triggers/implementations/show-alert.js";
4
- import type { ISbEventFlow } from "@superblocksteam/library-shared/types";
2
+ import type { SelectedWidgetProps, StepDef } from "../sb-trigger.js";
3
+ import type { NotificationPosition, NotificationType } from "./utils/notification.jsx";
4
+ import type { ISbEventFlow, WithBindingIdentifier } from "@superblocksteam/library-shared/types";
5
5
  declare class SbEventFlow implements ISbEventFlow<StepDef, ScopedState, ValueInputProp> {
6
6
  steps: StepDef[];
7
7
  private constructor();
@@ -35,14 +35,14 @@ declare class SbEventFlow implements ISbEventFlow<StepDef, ScopedState, ValueInp
35
35
  cancelApis(apis: any[], onCancel?: SbEventFlow): this;
36
36
  static resetComponent(widget: SelectedWidgetProps, propertyName: string, resetChildren: boolean): SbEventFlow;
37
37
  resetComponent(widget: SelectedWidgetProps, propertyName: string, resetChildren: boolean): this;
38
- static resetStateVar(state: SelectedStateVarProps): SbEventFlow;
39
- resetStateVar(state: SelectedStateVarProps): this;
40
- static setStateVar(name: string, value: ValueInputProp): SbEventFlow;
41
- setStateVar(name: string, value: ValueInputProp): this;
38
+ static resetStateVar(state: WithBindingIdentifier): SbEventFlow;
39
+ resetStateVar(state: WithBindingIdentifier): this;
40
+ static setStateVar(stateVarName: WithBindingIdentifier, value: ValueInputProp): SbEventFlow;
41
+ setStateVar(stateVar: WithBindingIdentifier, value: ValueInputProp): this;
42
42
  static setComponentProperty(widget: SelectedWidgetProps, propertyName: string, value: ValueInputProp): SbEventFlow;
43
43
  setComponentProperty(widget: SelectedWidgetProps, propertyName: string, value: ValueInputProp): this;
44
- static showAlert(message: ValueInputProp<string>, alertType: TypeOptions): SbEventFlow;
45
- showAlert(message: ValueInputProp<string>, alertType: TypeOptions): this;
44
+ static showAlert(message: ValueInputProp<string>, alertType: NotificationType, alertDuration?: number, alertPosition?: NotificationPosition): SbEventFlow;
45
+ showAlert(message: ValueInputProp<string>, alertType: NotificationType, alertDuration?: number, alertPosition?: NotificationPosition): this;
46
46
  static setProfile(profileId: string, profileAction: "set" | "unset"): SbEventFlow;
47
47
  setProfile(profileId: string, profileAction: "set" | "unset"): this;
48
48
  static triggerEvent(eventName: string, eventData: Record<string, string>): SbEventFlow;
@@ -1,6 +1,5 @@
1
- import { BindingMetaSymbol, type BindingIdentifier } from "./types.js";
1
+ import { type BindingIdentifier } from "@superblocksteam/library-shared/types";
2
2
  import type { Entity } from "../../internal-details/lib/evaluator/base-entity-manager.js";
3
- export declare const createBindableEntityProxy: (entityAccessor: () => Entity | undefined, identifier: BindingIdentifier) => {
3
+ export declare const createBindableEntityProxy: (entityAccessor: () => Entity | undefined, identifier: BindingIdentifier) => import("@superblocksteam/library-shared/types").WithBindingIdentifier<{
4
4
  entity: Entity | undefined;
5
- [BindingMetaSymbol]: BindingIdentifier;
6
- };
5
+ }>;
@@ -1,11 +1,4 @@
1
- export declare const BindingMetaSymbol: unique symbol;
2
- export type BindingIdentifier = {
3
- entityName: string;
4
- scopeId: string;
5
- };
6
- export type WithBindingIdentifier<T extends Record<string, any> = Record<string, any>> = T & {
7
- [BindingMetaSymbol]: BindingIdentifier;
8
- };
1
+ import type { WithBindingIdentifier } from "@superblocksteam/library-shared/types";
9
2
  export type SbScopeInstance<_Bindables extends Record<string, any>> = {
10
3
  entities: Record<string, WithBindingIdentifier>;
11
4
  initialEntities: Record<string, any>;
@@ -0,0 +1,17 @@
1
+ import React from "react";
2
+ export type NotificationPosition = "bottomRight" | "bottomLeft" | "topRight" | "topLeft" | "top" | "bottom";
3
+ export type NotificationType = "info" | "success" | "warning" | "error";
4
+ type NotificationConfig = {
5
+ key?: string;
6
+ message: JSX.Element | string;
7
+ description?: JSX.Element | string;
8
+ duration?: number;
9
+ placement?: NotificationPosition;
10
+ style?: React.CSSProperties;
11
+ dataTest?: string;
12
+ type: NotificationType;
13
+ };
14
+ export declare function cleanNotification(): void;
15
+ export declare function closeNotification(key: string): void;
16
+ export declare function sendNotification({ message, description, duration, key, placement, style, dataTest, type, }: NotificationConfig): void;
17
+ export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@superblocksteam/library",
3
- "version": "1.99.99-next.2",
3
+ "version": "2.0.0-next.10",
4
4
  "type": "module",
5
5
  "exports": {
6
6
  ".": {
@@ -32,7 +32,7 @@
32
32
  "@react-hook/resize-observer": "1.2.6",
33
33
  "@superblocksteam/fast-deep-equal": "3.1.4",
34
34
  "@superblocksteam/iso-currency": "2.0.0",
35
- "@superblocksteam/library-shared": "1.99.99-next.2",
35
+ "@superblocksteam/library-shared": "2.0.0-next.10",
36
36
  "@superblocksteam/shared": "0.9122.0",
37
37
  "antd": "4.24.15",
38
38
  "apca-w3": "^0.1.9",