@superblocksteam/library 2.0.6-next.89 → 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
@@ -33,31 +33,31 @@ export declare const size: ({ defaults, defaultsOnAdd, hasMinWidth, hasMaxWidth,
33
33
  showWidth?: (this: any, s: ScopedState) => boolean;
34
34
  showHeight?: (this: any, s: ScopedState) => boolean;
35
35
  }) => {
36
- maxHeight?: Prop<Dim<DimModes>, false, undefined> | undefined;
37
- minHeight?: Prop<Dim<DimModes>, false, undefined> | undefined;
38
- maxWidth?: Prop<Dim<DimModes>, false, undefined> | undefined;
39
- minWidth?: Prop<Dim<DimModes>, false, undefined> | undefined;
40
- width: Prop<Dim<DimModes>, false, undefined>;
41
- height: Prop<Dim<DimModes>, false, undefined>;
36
+ maxHeight?: Prop<Dim<DimModes>, false> | undefined;
37
+ minHeight?: Prop<Dim<DimModes>, false> | undefined;
38
+ maxWidth?: Prop<Dim<DimModes>, false> | undefined;
39
+ minWidth?: Prop<Dim<DimModes>, false> | undefined;
40
+ width: Prop<Dim<DimModes>, false>;
41
+ height: Prop<Dim<DimModes>, false>;
42
42
  };
43
43
  export declare const widthWithoutFit: () => {
44
- width: Prop<Dim<"fill" | "rows" | "columns" | "px" | "%">, false, undefined>;
44
+ width: Prop<Dim<"fill" | "rows" | "columns" | "px" | "%">, false>;
45
45
  };
46
46
  export declare const shouldScrollContents: (defaultValue?: boolean) => {
47
- shouldScrollContents: Prop<boolean, true, undefined>;
47
+ shouldScrollContents: Prop<boolean, true>;
48
48
  };
49
49
  export declare const visible: () => {
50
- isVisible: Prop<boolean, true, undefined>;
50
+ isVisible: Prop<boolean, true>;
51
51
  };
52
52
  export declare const spacing: (options?: {
53
53
  default?: Dim<"px">;
54
54
  } & Partial<PropertiesPanelDisplay<Dim<"px">, "SPACING_CONTROL">>) => {
55
- spacing: Prop<Dim<"px">, true, undefined>;
55
+ spacing: Prop<Dim<"px">, true>;
56
56
  };
57
57
  export declare const padding: (options?: {
58
58
  default?: Padding | ((this: any) => Padding);
59
59
  } & Partial<PropertiesPanelDisplay<Padding, "PADDING_CONTROL">>) => {
60
- padding: Prop<import("@superblocksteam/library-shared/types").Spacing, true, undefined>;
60
+ padding: Prop<import("@superblocksteam/library-shared/types").Spacing, true>;
61
61
  };
62
62
  export declare const margin: () => {
63
63
  margin: Prop<{
@@ -65,59 +65,59 @@ export declare const margin: () => {
65
65
  bottom: Dim<"px">;
66
66
  left: Dim<"px">;
67
67
  right: Dim<"px">;
68
- } | undefined, true, undefined>;
68
+ } | undefined, true>;
69
69
  };
70
70
  export declare const getAlignmentProps: <LayoutType extends "vertical" | "horizontal">() => {
71
- verticalAlign: Prop<VerticalAlignment<LayoutType>, true, undefined>;
72
- horizontalAlign: Prop<HorizontalAlignment<LayoutType>, true, undefined>;
71
+ verticalAlign: Prop<VerticalAlignment<LayoutType>, true>;
72
+ horizontalAlign: Prop<HorizontalAlignment<LayoutType>, true>;
73
73
  };
74
74
  export declare const containerLayout: (sizeProps?: Record<string, Prop<any, any>>) => import("../props-builder.js").UnionProp<{
75
- layout: Prop<ContainerLayout, true, undefined>;
75
+ layout: Prop<ContainerLayout, true>;
76
76
  }, [{
77
- readonly verticalAlign: Prop<"center" | "top" | "bottom" | "space-around" | "space-between", true, undefined>;
78
- readonly horizontalAlign: Prop<"center" | "left" | "right", true, undefined>;
79
- readonly layout: Prop<"vertical", true, undefined>;
77
+ readonly verticalAlign: Prop<"center" | "top" | "bottom" | "space-around" | "space-between", true>;
78
+ readonly horizontalAlign: Prop<"center" | "left" | "right", true>;
79
+ readonly layout: Prop<"vertical", true>;
80
80
  }, {
81
- readonly verticalAlign: Prop<"center" | "top" | "bottom", true, undefined>;
82
- readonly horizontalAlign: Prop<"center" | "space-around" | "space-between" | "left" | "right", true, undefined>;
83
- readonly layout: Prop<"horizontal", true, undefined>;
81
+ readonly verticalAlign: Prop<"center" | "top" | "bottom", true>;
82
+ readonly horizontalAlign: Prop<"center" | "space-around" | "space-between" | "left" | "right", true>;
83
+ readonly layout: Prop<"horizontal", true>;
84
84
  }, {
85
- readonly columns: Prop<number, true, undefined>;
86
- readonly rowHeight: Prop<Dim<"px">, true, undefined>;
87
- readonly layout: Prop<"freeform", true, undefined>;
85
+ readonly columns: Prop<number, true>;
86
+ readonly rowHeight: Prop<Dim<"px">, true>;
87
+ readonly layout: Prop<"freeform", true>;
88
88
  }], ({
89
- layout: Prop<ContainerLayout, true, undefined>;
89
+ layout: Prop<ContainerLayout, true>;
90
90
  } & {
91
- readonly verticalAlign: Prop<"center" | "top" | "bottom" | "space-around" | "space-between", true, undefined>;
92
- readonly horizontalAlign: Prop<"center" | "left" | "right", true, undefined>;
93
- readonly layout: Prop<"vertical", true, undefined>;
91
+ readonly verticalAlign: Prop<"center" | "top" | "bottom" | "space-around" | "space-between", true>;
92
+ readonly horizontalAlign: Prop<"center" | "left" | "right", true>;
93
+ readonly layout: Prop<"vertical", true>;
94
94
  }) | ({
95
- layout: Prop<ContainerLayout, true, undefined>;
95
+ layout: Prop<ContainerLayout, true>;
96
96
  } & {
97
- readonly verticalAlign: Prop<"center" | "top" | "bottom", true, undefined>;
98
- readonly horizontalAlign: Prop<"center" | "space-around" | "space-between" | "left" | "right", true, undefined>;
99
- readonly layout: Prop<"horizontal", true, undefined>;
97
+ readonly verticalAlign: Prop<"center" | "top" | "bottom", true>;
98
+ readonly horizontalAlign: Prop<"center" | "space-around" | "space-between" | "left" | "right", true>;
99
+ readonly layout: Prop<"horizontal", true>;
100
100
  }) | ({
101
- layout: Prop<ContainerLayout, true, undefined>;
101
+ layout: Prop<ContainerLayout, true>;
102
102
  } & {
103
- readonly columns: Prop<number, true, undefined>;
104
- readonly rowHeight: Prop<Dim<"px">, true, undefined>;
105
- readonly layout: Prop<"freeform", true, undefined>;
103
+ readonly columns: Prop<number, true>;
104
+ readonly rowHeight: Prop<Dim<"px">, true>;
105
+ readonly layout: Prop<"freeform", true>;
106
106
  })>;
107
- export declare const basicLayout: () => Section<Record<string, Prop<any, any, undefined>> & {
108
- maxHeight?: Prop<Dim<DimModes>, false, undefined> | undefined;
109
- minHeight?: Prop<Dim<DimModes>, false, undefined> | undefined;
110
- maxWidth?: Prop<Dim<DimModes>, false, undefined> | undefined;
111
- minWidth?: Prop<Dim<DimModes>, false, undefined> | undefined;
112
- width: Prop<Dim<DimModes>, false, undefined>;
113
- height: Prop<Dim<DimModes>, false, undefined>;
107
+ export declare const basicLayout: () => Section<Record<string, Prop<any, any>> & {
108
+ maxHeight?: Prop<Dim<DimModes>, false> | undefined;
109
+ minHeight?: Prop<Dim<DimModes>, false> | undefined;
110
+ maxWidth?: Prop<Dim<DimModes>, false> | undefined;
111
+ minWidth?: Prop<Dim<DimModes>, false> | undefined;
112
+ width: Prop<Dim<DimModes>, false>;
113
+ height: Prop<Dim<DimModes>, false>;
114
114
  } & {
115
115
  margin: Prop<{
116
116
  top: Dim<"px">;
117
117
  bottom: Dim<"px">;
118
118
  left: Dim<"px">;
119
119
  right: Dim<"px">;
120
- } | undefined, true, undefined>;
120
+ } | undefined, true>;
121
121
  } & {
122
- isVisible: Prop<boolean, true, undefined>;
122
+ isVisible: Prop<boolean, true>;
123
123
  }>;
@@ -1,2 +1,2 @@
1
1
  import { Prop } from "../props-builder.js";
2
- export declare const loading: () => Prop<boolean, true, undefined>;
2
+ export declare const loading: () => Prop<boolean, true>;
@@ -5,7 +5,7 @@ import type { ValidateFn, ValidationResult } from "./validators.js";
5
5
  import type { RuntimeWidgetMeta } from "../../../edit-mode/features/runtime-widgets-manager.js";
6
6
  import type { Entity, InputProp, ScopedState, SingleInputProp, EntityFunction } from "../../internal-details/lib/evaluator/base-entity-manager.js";
7
7
  import type { SbEventFlow } from "../sb-event-flow.js";
8
- import type { Dim, DimModes, EvaluateOrValueComputedArgs } from "@superblocksteam/library-shared";
8
+ import type { Dim, DimModes } from "@superblocksteam/library-shared";
9
9
  import type { HeaderType } from "@superblocksteam/library-shared/props";
10
10
  import type { PropertyInfo, SbElement } from "@superblocksteam/library-shared/types";
11
11
  export type SbCustomRenderFunction = (props: any, state: any) => React.ReactNode;
@@ -31,12 +31,6 @@ type ManagedProp<T extends DataType = DataType> = PropertyForData<T> & {
31
31
  * - false: Only allows bindings at the top level (unless the property is composite)
32
32
  */
33
33
  nestedBindings?: boolean;
34
- /**
35
- * Indicates this property should be evaluated per-context (e.g., per-row in tables)
36
- * When true, the property value will be evaluated for each context with access to context variables
37
- */
38
- contextual?: boolean;
39
- computedArgs?: EvaluateOrValueComputedArgs;
40
34
  };
41
35
  type ManagedPropsList = Array<ManagedProp & {
42
36
  propertiesPanelDisplay?: PropertiesPanelDisplay<any>;
@@ -64,23 +58,19 @@ type DefaultValueBehavior = "RequiredIfDefault" | "AlwaysOptional";
64
58
  *
65
59
  * For non-evaluated props: returns InputProp<ValueType>
66
60
  */
67
- /**
68
- * Extracts the concrete type from a property definition
69
- * Enhanced to handle contextual properties
70
- */
71
- type ExtractPropType<T, DefaultsBehavior extends DefaultValueBehavior, IsEvaluated extends boolean> = T extends Record<string, Prop<any, any, any>> ? ExtractProps<T, DefaultsBehavior, IsEvaluated> : T extends RecordProp<infer U> ? Record<string, ExtractProps<U, DefaultsBehavior, IsEvaluated>> : T extends CompositeProp<infer U> ? ExtractProps<U, DefaultsBehavior, IsEvaluated> : T extends UnionProp<infer SHARED, infer VARIANTS> ? VARIANTS extends readonly any[] ? {
61
+ type ExtractPropType<T, DefaultsBehavior extends DefaultValueBehavior, IsEvaluated extends boolean> = T extends Record<string, Prop<any, any>> ? ExtractProps<T, DefaultsBehavior, IsEvaluated> : T extends RecordProp<infer U> ? Record<string, ExtractProps<U, DefaultsBehavior, IsEvaluated>> : T extends CompositeProp<infer U> ? ExtractProps<U, DefaultsBehavior, IsEvaluated> : T extends UnionProp<infer SHARED, infer VARIANTS> ? VARIANTS extends readonly any[] ? {
72
62
  [I in keyof VARIANTS]: ExtractProps<MergeUnionVariant<SHARED, VARIANTS[I]>, DefaultsBehavior, IsEvaluated>;
73
- }[number] : never : T extends Prop<infer V, infer _HasDefault, infer ContextualProps> ? IsEvaluated extends true ? ContextualProps extends undefined ? V extends SbEventFlow ? (...args: any[]) => Promise<void> : V : (context: ContextualProps) => V : ContextualProps extends any[] ? InputProp<V, ContextualProps> : InputProp<V> : never;
63
+ }[number] : never : T extends Prop<infer V, infer _HasDefault> ? IsEvaluated extends true ? V extends SbEventFlow ? (...args: any[]) => Promise<void> : V : InputProp<V> : never;
74
64
  /**
75
65
  * Extracts a flat props object from a properties definition
76
66
  * Handles optionality based on DefaultValueBehavior
77
67
  */
78
- type ExtractProps<T, DefaultsBehavior extends DefaultValueBehavior, IsEvaluated extends boolean> = T extends Record<string, Section> ? ExtractProps<MergeSections<T>, DefaultsBehavior, IsEvaluated> : T extends Record<string, Prop<any, any, any>> ? DefaultsBehavior extends "AlwaysOptional" ? {
68
+ type ExtractProps<T, DefaultsBehavior extends DefaultValueBehavior, IsEvaluated extends boolean> = T extends Record<string, Section> ? ExtractProps<MergeSections<T>, DefaultsBehavior, IsEvaluated> : T extends Record<string, Prop<any, any>> ? DefaultsBehavior extends "AlwaysOptional" ? {
79
69
  [K in keyof T]?: ExtractPropType<T[K], DefaultsBehavior, IsEvaluated>;
80
70
  } : {
81
- [K in keyof T as T[K] extends Prop<any, infer HasDefault, any> ? HasDefault extends true ? K : never : never]: ExtractPropType<T[K], DefaultsBehavior, IsEvaluated>;
71
+ [K in keyof T as T[K] extends Prop<any, infer HasDefault> ? HasDefault extends true ? K : never : never]: ExtractPropType<T[K], DefaultsBehavior, IsEvaluated>;
82
72
  } & {
83
- [K in keyof T as T[K] extends Prop<any, infer HasDefault, any> ? HasDefault extends false ? K : never : never]?: ExtractPropType<T[K], DefaultsBehavior, IsEvaluated>;
73
+ [K in keyof T as T[K] extends Prop<any, infer HasDefault> ? HasDefault extends false ? K : never : never]?: ExtractPropType<T[K], DefaultsBehavior, IsEvaluated>;
84
74
  } : never;
85
75
  /**
86
76
  * Handles non Prop types, aka our default types and CSS props
@@ -136,7 +126,7 @@ declare class Section<T extends Record<string, Prop<any, any>> = Record<string,
136
126
  props: T;
137
127
  propertiesPanelConfig: SectionPropertiesPanelConfig;
138
128
  constructor(category: PropsPanelCategory);
139
- static category(category: PropsPanelCategory): Section<Record<string, Prop<any, any, undefined>>>;
129
+ static category(category: PropsPanelCategory): Section<Record<string, Prop<any, any>>>;
140
130
  children<INP extends Record<string, Prop<any, any>> | CompositeProp<any> | UnionProp<any, any>, OUT extends INP extends CompositeProp<infer CU> ? CU : INP extends UnionProp<infer SHARED, infer VARIANTS> ? VARIANTS extends readonly any[] ? {
141
131
  [I in keyof VARIANTS]: MergeUnionVariant<SHARED, VARIANTS[I]>;
142
132
  }[number] : never : INP>(props: INP): Section<T & OUT>;
@@ -144,7 +134,7 @@ declare class Section<T extends Record<string, Prop<any, any>> = Record<string,
144
134
  propertiesPanel(config: Omit<SectionDefinition<any>, "props">): this;
145
135
  get name(): "Content" | "Routing" | "Interaction" | "Layout" | "Appearance" | "Permissions" | "Uncategorized" | "Event handlers";
146
136
  }
147
- declare class Prop<Type extends DataType, _HasDefault extends boolean = false, _ContextualArgs extends any[] | undefined | ((entity: Entity) => any[] | undefined) = undefined> {
137
+ declare class Prop<Type extends DataType, _HasDefault extends boolean = false> {
148
138
  protected prop: ManagedProp<Type>;
149
139
  /**
150
140
  * Relations are an array of arrays
@@ -162,13 +152,6 @@ declare class Prop<Type extends DataType, _HasDefault extends boolean = false, _
162
152
  static literal<T extends Readonly<string | number | boolean>>(value: T): Prop<T, true>;
163
153
  static event(): Prop<SbEventFlow>;
164
154
  static function<ARGS extends any[] = any[], RETURN = any>(implementation: EntityFunction<ARGS, RETURN>): Prop<EntityFunction<ARGS, RETURN>, true>;
165
- /**
166
- * Creates an internal property that is not exposed in the entity's public interface,
167
- * not tracked for reactivity/syncing, and not serialized. This is useful for
168
- * storing implementation details like SuspensibleAPI instances that other
169
- * properties can reference via `this._propertyName`.
170
- */
171
- static internal<T = any>(factory: () => T): Prop<T, true>;
172
155
  /**
173
156
  * Creates a composite property, which is a property that contains nested properties. For example,
174
157
  * the following composite property:
@@ -219,9 +202,7 @@ declare class Prop<Type extends DataType, _HasDefault extends boolean = false, _
219
202
  writable(): this;
220
203
  readAndWrite(): this;
221
204
  default(de: SingleInputProp<DataType>): Prop<Type, true>;
222
- computed(computeFn: SingleInputProp<DataType>): Prop<Type, true>;
223
205
  allowNestedBindings(): Prop<Type, true>;
224
- contextual<TContext extends any[] | undefined = any[]>(computedArgs?: EvaluateOrValueComputedArgs): Prop<Type, _HasDefault, TContext>;
225
206
  validate(validateFn: ((value: any) => ValidationResult<Type>) | ValidateFn<any>): this;
226
207
  setName(name: string): this;
227
208
  onEdit(callback: SideEffectCallback): this;
@@ -268,7 +249,7 @@ declare class UnionProp<SHARED extends Record<string, Prop<unknown, boolean>>, V
268
249
  shared: SHARED;
269
250
  variants: VARIANTS;
270
251
  constructor(shared: SHARED, variants: VARIANTS);
271
- getProps(): SHARED & Record<string, Prop<any, false, undefined>>;
252
+ getProps(): SHARED & Record<string, Prop<any, false>>;
272
253
  }
273
254
  export type { Relation, ManagedProp, ManagedPropsList, InternalProps, InternalPropsWithOptional, ExternalProps, EntityProps, MergeSections, ExtractProps, ExtractPropType, PropertiesDefinition, };
274
255
  export { Prop, CompositeProp, RecordProp, UnionProp, Section, PropsPanelCategory, createManagedPropsList, };
@@ -23,12 +23,12 @@ declare class SbEventFlow implements ISbEventFlow<StepDef, ScopedState, ValueInp
23
23
  navigateToRoute(route: string): this;
24
24
  static setQueryParams(params: Record<string, ValueInputProp<string>>, keepQueryParams?: boolean): SbEventFlow;
25
25
  setQueryParams(params: Record<string, ValueInputProp<string>>, keepQueryParams?: boolean): this;
26
- static controlSlideout(slideout: WithBindingIdentifier, action: "open" | "close"): SbEventFlow;
27
- controlSlideout(slideout: WithBindingIdentifier, action: "open" | "close"): this;
26
+ static controlSlideout(slideoutId: string, action: "open" | "close"): SbEventFlow;
27
+ controlSlideout(slideoutId: string, action: "open" | "close"): this;
28
28
  static controlModal(modal: WithBindingIdentifier, action: "open" | "close"): SbEventFlow;
29
29
  controlModal(modal: WithBindingIdentifier, action: "open" | "close"): this;
30
- static controlTimer(stateTimer: WithBindingIdentifier, action: "start" | "stop" | "toggle"): SbEventFlow;
31
- controlTimer(stateTimer: WithBindingIdentifier, action: "start" | "stop" | "toggle"): this;
30
+ static controlTimer(timerId: string, action: "start" | "stop" | "toggle"): SbEventFlow;
31
+ controlTimer(timerId: string, action: "start" | "stop" | "toggle"): this;
32
32
  static runApis(apis: any[], onSuccess?: SbEventFlow, onError?: SbEventFlow): SbEventFlow;
33
33
  runApis(apis: any[], onSuccess?: SbEventFlow, onError?: SbEventFlow): this;
34
34
  static cancelApis(apis: any[], onCancel?: SbEventFlow): SbEventFlow;
@@ -1,11 +1,12 @@
1
1
  import React from "react";
2
2
  import type { GeneratedTheme, Theme } from "@superblocksteam/library-shared/types";
3
- declare const SbProvider: ({ name, settings, children, }: {
3
+ declare const SbProvider: ({ name, settings, preloadedData, children, }: {
4
4
  name: string;
5
5
  settings?: Record<string, any> & {
6
6
  theme?: Theme;
7
7
  themeOverrides?: Partial<GeneratedTheme>;
8
8
  };
9
+ preloadedData?: Array<Record<string, any>>;
9
10
  children?: React.ReactNode;
10
11
  }) => React.JSX.Element;
11
12
  export default SbProvider;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@superblocksteam/library",
3
- "version": "2.0.6-next.89",
3
+ "version": "2.0.6-next.9",
4
4
  "type": "module",
5
5
  "exports": {
6
6
  ".": {
@@ -29,11 +29,10 @@
29
29
  "@popperjs/core": "^2.11.7",
30
30
  "@radix-ui/colors": "^3.0.0",
31
31
  "@radix-ui/react-context-menu": "^2.2.2",
32
- "@radix-ui/react-dialog": "^1.1.6",
33
32
  "@react-hook/resize-observer": "1.2.6",
34
33
  "@superblocksteam/fast-deep-equal": "3.1.4",
35
34
  "@superblocksteam/iso-currency": "2.0.0",
36
- "@superblocksteam/library-shared": "2.0.6-next.89",
35
+ "@superblocksteam/library-shared": "2.0.6-next.9",
37
36
  "@superblocksteam/shared": "0.9160.0",
38
37
  "antd": "4.24.15",
39
38
  "apca-w3": "^0.1.9",
@@ -112,7 +111,7 @@
112
111
  "typescript-eslint": "^8.18.0",
113
112
  "vite": "^6.3.5",
114
113
  "vite-plugin-svgr": "^4.3.0",
115
- "vitest": "^3.2.0"
114
+ "vitest": "^2.1.9"
116
115
  },
117
116
  "publishConfig": {
118
117
  "registry": "https://registry.npmjs.org"
@@ -1 +0,0 @@
1
- {"version":3,"file":"icons-lSlfQ50w.js","sources":["../src/lib/user-facing/assets/icons/close.svg?react","../src/lib/user-facing/assets/icons/system-danger.svg?react","../src/lib/user-facing/assets/icons/system-error.svg?react","../src/lib/user-facing/assets/icons/system-info.svg?react","../src/lib/user-facing/assets/icons/system-success.svg?react","../src/lib/user-facing/assets/icons/plus.svg?react","../src/lib/user-facing/assets/icons/hide.svg?react","../src/lib/user-facing/assets/icons/chevron-down.svg?react","../src/lib/user-facing/assets/icons/cross-xs.svg?react","../src/lib/user-facing/assets/icons/checkmark.svg?react","../src/lib/user-facing/assets/icons/empty-checkbox.svg?react","../src/lib/user-facing/assets/icons/minus.svg?react","../src/lib/user-facing/assets/icons/play.svg?react","../src/lib/user-facing/assets/icons/trash.svg?react","../src/lib/user-facing/assets/icons/download.svg?react","../src/lib/user-facing/assets/icons/sort.svg?react","../src/lib/user-facing/assets/icons/filter.svg?react","../src/lib/user-facing/assets/icons/freeze.svg?react","../src/lib/user-facing/assets/icons/ellipsis.svg?react","../src/lib/user-facing/assets/images/clark.svg?react"],"sourcesContent":["import * as React from \"react\";\nconst SvgClose = (props) => /* @__PURE__ */ React.createElement(\"svg\", { width: 16, height: 16, viewBox: \"0 0 16 16\", fill: \"none\", xmlns: \"http://www.w3.org/2000/svg\", ...props }, /* @__PURE__ */ React.createElement(\"path\", { d: \"M4 12L12 4M4 4L12 12\", stroke: \"currentColor\", strokeLinecap: \"round\", strokeLinejoin: \"round\" }));\nexport default SvgClose;\n","import * as React from \"react\";\nconst SvgSystemDanger = (props) => /* @__PURE__ */ React.createElement(\"svg\", { width: 16, height: 16, viewBox: \"0 0 16 16\", fill: \"none\", xmlns: \"http://www.w3.org/2000/svg\", ...props }, /* @__PURE__ */ React.createElement(\"path\", { fillRule: \"evenodd\", clipRule: \"evenodd\", d: \"M8 15C11.866 15 15 11.866 15 8C15 4.13401 11.866 1 8 1C4.13401 1 1 4.13401 1 8C1 11.866 4.13401 15 8 15ZM8.75001 5C8.75001 4.58579 8.41422 4.25 8.00001 4.25C7.58579 4.25 7.25001 4.58579 7.25001 5V8C7.25001 8.41421 7.58579 8.75 8.00001 8.75C8.41422 8.75 8.75001 8.41421 8.75001 8V5ZM8 9.75001C7.44772 9.75001 7 10.1977 7 10.75C7 11.3023 7.44772 11.75 8 11.75C8.55228 11.75 9 11.3023 9 10.75C9 10.1977 8.55228 9.75001 8 9.75001Z\", fill: \"currentColor\" }));\nexport default SvgSystemDanger;\n","import * as React from \"react\";\nconst SvgSystemError = (props) => /* @__PURE__ */ React.createElement(\"svg\", { width: 16, height: 16, viewBox: \"0 0 16 16\", fill: \"none\", xmlns: \"http://www.w3.org/2000/svg\", ...props }, /* @__PURE__ */ React.createElement(\"path\", { fillRule: \"evenodd\", clipRule: \"evenodd\", d: \"M15 8C15 11.866 11.866 15 8 15C4.13401 15 1 11.866 1 8C1 4.13401 4.13401 1 8 1C11.866 1 15 4.13401 15 8ZM5.94194 5.05806C5.69786 4.81398 5.30214 4.81398 5.05806 5.05806C4.81398 5.30214 4.81398 5.69786 5.05806 5.94194L7.11612 8L5.05806 10.0581C4.81398 10.3021 4.81398 10.6979 5.05806 10.9419C5.30214 11.186 5.69786 11.186 5.94194 10.9419L8 8.88388L10.0581 10.9419C10.3021 11.186 10.6979 11.186 10.9419 10.9419C11.186 10.6979 11.186 10.3021 10.9419 10.0581L8.88388 8L10.9419 5.94194C11.186 5.69786 11.186 5.30214 10.9419 5.05806C10.6979 4.81398 10.3021 4.81398 10.0581 5.05806L8 7.11612L5.94194 5.05806Z\", fill: \"currentColor\" }));\nexport default SvgSystemError;\n","import * as React from \"react\";\nconst SvgSystemInfo = (props) => /* @__PURE__ */ React.createElement(\"svg\", { width: 16, height: 16, viewBox: \"0 0 16 16\", fill: \"none\", xmlns: \"http://www.w3.org/2000/svg\", ...props }, /* @__PURE__ */ React.createElement(\"path\", { d: \"M8 1C6.61553 1 5.26216 1.41054 4.11101 2.17971C2.95987 2.94888 2.06266 4.04213 1.53285 5.32122C1.00303 6.6003 0.86441 8.00776 1.13451 9.36563C1.4046 10.7235 2.07129 11.9708 3.05026 12.9497C4.02922 13.9287 5.2765 14.5954 6.63437 14.8655C7.99224 15.1356 9.3997 14.997 10.6788 14.4672C11.9579 13.9373 13.0511 13.0401 13.8203 11.889C14.5895 10.7378 15 9.38447 15 8C14.9964 6.14458 14.2578 4.36617 12.9458 3.05418C11.6338 1.7422 9.85542 1.00356 8 1ZM7.86539 4.23077C8.02513 4.23077 8.18129 4.27814 8.31412 4.36689C8.44694 4.45564 8.55046 4.58178 8.6116 4.72937C8.67273 4.87696 8.68872 5.03936 8.65756 5.19603C8.62639 5.35271 8.54947 5.49663 8.43651 5.60959C8.32355 5.72254 8.17964 5.79947 8.02296 5.83063C7.86628 5.8618 7.70388 5.8458 7.5563 5.78467C7.40871 5.72354 7.28257 5.62001 7.19381 5.48719C7.10506 5.35437 7.05769 5.19821 7.05769 5.03846C7.05769 4.82425 7.14279 4.61881 7.29426 4.46734C7.44573 4.31586 7.65117 4.23077 7.86539 4.23077ZM8.53846 11.7692H8C7.85719 11.7692 7.72023 11.7125 7.61925 11.6115C7.51827 11.5105 7.46154 11.3736 7.46154 11.2308V8C7.31873 8 7.18177 7.94327 7.08079 7.84229C6.97981 7.74131 6.92308 7.60435 6.92308 7.46154C6.92308 7.31873 6.97981 7.18177 7.08079 7.08079C7.18177 6.97981 7.31873 6.92308 7.46154 6.92308H8C8.14281 6.92308 8.27977 6.97981 8.38075 7.08079C8.48173 7.18177 8.53846 7.31873 8.53846 7.46154V10.6923C8.68127 10.6923 8.81823 10.749 8.91921 10.85C9.0202 10.951 9.07692 11.088 9.07692 11.2308C9.07692 11.3736 9.0202 11.5105 8.91921 11.6115C8.81823 11.7125 8.68127 11.7692 8.53846 11.7692Z\", fill: \"currentColor\" }));\nexport default SvgSystemInfo;\n","import * as React from \"react\";\nconst SvgSystemSuccess = (props) => /* @__PURE__ */ React.createElement(\"svg\", { width: 16, height: 16, viewBox: \"0 0 16 16\", fill: \"none\", xmlns: \"http://www.w3.org/2000/svg\", ...props }, /* @__PURE__ */ React.createElement(\"path\", { fillRule: \"evenodd\", clipRule: \"evenodd\", d: \"M8 15C11.866 15 15 11.866 15 8C15 4.13401 11.866 1 8 1C4.13401 1 1 4.13401 1 8C1 11.866 4.13401 15 8 15ZM11.4419 6.94194C11.686 6.69786 11.686 6.30214 11.4419 6.05806C11.1979 5.81398 10.8021 5.81398 10.5581 6.05806L7.5 9.11612L5.94194 7.55806C5.69786 7.31398 5.30214 7.31398 5.05806 7.55806C4.81398 7.80214 4.81398 8.19786 5.05806 8.44194L7.05806 10.4419C7.30214 10.686 7.69786 10.686 7.94194 10.4419L11.4419 6.94194Z\", fill: \"currentColor\" }));\nexport default SvgSystemSuccess;\n","import * as React from \"react\";\nconst SvgPlus = (props) => /* @__PURE__ */ React.createElement(\"svg\", { width: 16, height: 16, viewBox: \"0 0 16 16\", fill: \"none\", xmlns: \"http://www.w3.org/2000/svg\", ...props }, /* @__PURE__ */ React.createElement(\"path\", { d: \"M2.5 8H13.5M8 2.5V13.5\", stroke: \"currentColor\", strokeLinecap: \"round\", strokeLinejoin: \"round\" }));\nexport default SvgPlus;\n","import * as React from \"react\";\nconst SvgHide = (props) => /* @__PURE__ */ React.createElement(\"svg\", { width: 16, height: 14, viewBox: \"0 0 16 14\", fill: \"none\", xmlns: \"http://www.w3.org/2000/svg\", color: \"#A4AAB7\", ...props }, /* @__PURE__ */ React.createElement(\"g\", null, /* @__PURE__ */ React.createElement(\"path\", { d: \"M2.00001 1L3.88386 2.88385M14 13L12.1162 11.1161M12.1162 11.1161C11.0861 11.8322 9.72533 12.3333 8.00001 12.3333C3.33334 12.3333 1.33334 8.66667 1.33334 7C1.33334 5.94952 2.12787 4.10451 3.88386 2.88385M12.1162 11.1161L9.41419 8.41418M3.88386 2.88385L6.58577 5.58576M6.58577 5.58576C6.22382 5.94769 5.99995 6.4477 5.99995 7C5.99995 8.10457 6.89538 9 7.99995 9C8.55225 9 9.05226 8.77613 9.41419 8.41418M6.58577 5.58576L9.41419 8.41418M13.6132 9.66667C13.6954 9.55607 13.7727 9.44476 13.845 9.33333C14.4034 8.47271 14.6667 7.60471 14.6667 7C14.6667 5.33333 12.6667 1.66667 8.00001 1.66667C7.26869 1.66667 6.60286 1.75671 5.99995 1.915C5.88664 1.94475 5.77556 1.97691 5.66668 2.01133\", stroke: \"currentColor\", strokeWidth: 1.25, strokeLinecap: \"round\" })));\nexport default SvgHide;\n","import * as React from \"react\";\nconst SvgChevronDown = (props) => /* @__PURE__ */ React.createElement(\"svg\", { width: 16, height: 16, viewBox: \"0 0 16 16\", fill: \"none\", xmlns: \"http://www.w3.org/2000/svg\", ...props }, /* @__PURE__ */ React.createElement(\"path\", { d: \"M4 6L8 10L12 6\", stroke: \"currentColor\", strokeLinecap: \"round\", strokeLinejoin: \"round\" }));\nexport default SvgChevronDown;\n","import * as React from \"react\";\nconst SvgCrossXs = (props) => /* @__PURE__ */ React.createElement(\"svg\", { width: 16, height: 16, viewBox: \"0 0 16 16\", fill: \"none\", xmlns: \"http://www.w3.org/2000/svg\", ...props }, /* @__PURE__ */ React.createElement(\"path\", { d: \"M5 5L8 8M8 8L11 5M8 8L11 11M8 8L5 11\", stroke: \"currentColor\", strokeLinecap: \"round\", strokeLinejoin: \"round\" }));\nexport default SvgCrossXs;\n","import * as React from \"react\";\nconst SvgCheckmark = (props) => /* @__PURE__ */ React.createElement(\"svg\", { width: 16, height: 16, viewBox: \"2 2 12 12\", fill: \"none\", xmlns: \"http://www.w3.org/2000/svg\", ...props }, /* @__PURE__ */ React.createElement(\"path\", { d: \"M5.33325 7.33333L7.33325 9.33333L11.3333 5.33333\", stroke: \"currentColor\", strokeWidth: 1.25, strokeLinecap: \"round\", strokeLinejoin: \"round\" }));\nexport default SvgCheckmark;\n","import * as React from \"react\";\nconst SvgEmptyCheckbox = (props) => /* @__PURE__ */ React.createElement(\"svg\", { width: 14, height: 14, viewBox: \"0 0 14 14\", fill: \"none\", xmlns: \"http://www.w3.org/2000/svg\", ...props }, /* @__PURE__ */ React.createElement(\"rect\", { x: 0.5, y: 0.5, width: 13, height: 13, rx: 2.5, fill: \"white\", stroke: \"#C6CAD2\" }));\nexport default SvgEmptyCheckbox;\n","import * as React from \"react\";\nconst SvgMinus = (props) => /* @__PURE__ */ React.createElement(\"svg\", { width: 16, height: 16, viewBox: \"0 0 16 16\", fill: \"currentColor\", xmlns: \"http://www.w3.org/2000/svg\", ...props }, /* @__PURE__ */ React.createElement(\"path\", { fillRule: \"evenodd\", clipRule: \"evenodd\", d: \"M2.70837 8C2.70837 7.65482 2.9882 7.375 3.33337 7.375H12.6667C13.0119 7.375 13.2917 7.65482 13.2917 8C13.2917 8.34518 13.0119 8.625 12.6667 8.625H3.33337C2.9882 8.625 2.70837 8.34518 2.70837 8Z\" }));\nexport default SvgMinus;\n","import * as React from \"react\";\nconst SvgPlay = (props) => /* @__PURE__ */ React.createElement(\"svg\", { width: 20, height: 20, viewBox: \"0 0 20 20\", fill: \"currentColor\", xmlns: \"http://www.w3.org/2000/svg\", ...props }, /* @__PURE__ */ React.createElement(\"path\", { fillRule: \"evenodd\", clipRule: \"evenodd\", d: \"M10.0001 0.916664C4.9835 0.916664 0.916748 4.98341 0.916748 10C0.916748 15.0166 4.9835 19.0833 10.0001 19.0833C15.0167 19.0833 19.0834 15.0166 19.0834 10C19.0834 4.98341 15.0167 0.916664 10.0001 0.916664ZM7.50008 11.2799V8.72013C7.50008 7.77794 7.50008 7.30684 7.69728 7.04133C7.86917 6.80989 8.13258 6.6639 8.41995 6.64079C8.74962 6.61429 9.14911 6.86397 9.94808 7.36333L11.9959 8.6432L11.9959 8.6432C12.7157 9.09312 13.0757 9.31807 13.1991 9.60609C13.3069 9.85763 13.3069 10.1424 13.1991 10.3939C13.0757 10.6819 12.7157 10.9069 11.9959 11.3568L9.94808 12.6367C9.14911 13.136 8.74962 13.3857 8.41995 13.3592C8.13258 13.3361 7.86917 13.1901 7.69728 12.9587C7.50008 12.6931 7.50008 12.2221 7.50008 11.2799Z\" }));\nexport default SvgPlay;\n","import * as React from \"react\";\nconst SvgTrash = (props) => /* @__PURE__ */ React.createElement(\"svg\", { width: 16, height: 16, viewBox: \"0 0 16 16\", fill: \"none\", xmlns: \"http://www.w3.org/2000/svg\", ...props }, /* @__PURE__ */ React.createElement(\"path\", { opacity: 0.12, d: \"M12.5 12.5V3.5H3.5V12.5C3.5 13.3284 4.17157 14 5 14H11C11.8284 14 12.5 13.3284 12.5 12.5Z\", fill: \"#6C7689\" }), /* @__PURE__ */ React.createElement(\"path\", { d: \"M13.5 3.5H12.5M2.5 3.5H5M12.5 3.5V12.5C12.5 13.3284 11.8284 14 11 14C9 14 7 14 5 14C4.17157 14 3.5 13.3284 3.5 12.5V3.5M12.5 3.5H11M5 3.5L6 1.5H10L11 3.5M5 3.5H11\", stroke: \"#6C7689\", strokeLinecap: \"round\", strokeLinejoin: \"round\", style: {\n fill: \"none\"\n} }));\nexport default SvgTrash;\n","import * as React from \"react\";\nconst SvgDownload = (props) => /* @__PURE__ */ React.createElement(\"svg\", { width: 20, height: 20, viewBox: \"0 0 20 20\", fill: \"none\", xmlns: \"http://www.w3.org/2000/svg\", ...props }, /* @__PURE__ */ React.createElement(\"path\", { d: \"M2.8 14.8C1.72396 14.188 1 13.0441 1 11.7339C1 10.0843 2.14779 8.69817 3.701 8.30558C3.70033 8.26857 3.7 8.23148 3.7 8.19432C3.7 4.77329 6.52061 2 10 2C12.9627 2 15.4478 4.01078 16.1205 6.72007C17.805 7.35964 19 8.96712 19 10.849C19 12.2966 18.293 13.5817 17.2 14.389M10 11V18M10 18L12.5 15.5M10 18L7.5 15.5\", stroke: \"currentColor\", strokeWidth: 1.5, strokeLinecap: \"round\", strokeLinejoin: \"round\" }));\nexport default SvgDownload;\n","import * as React from \"react\";\nconst SvgSort = (props) => /* @__PURE__ */ React.createElement(\"svg\", { xmlns: \"http://www.w3.org/2000/svg\", width: 16, height: 16, fill: \"none\", viewBox: \"0 0 16 16\", ...props }, /* @__PURE__ */ React.createElement(\"path\", { fill: \"#D0D7DD\", d: \"M13.3359 7.99967L12.3959 7.05967L8.66927 10.7797V2.66634H7.33594L7.33594 10.7797L3.61594 7.05301L2.66927 7.99967L8.00261 13.333L13.3359 7.99967Z\" }));\nexport default SvgSort;\n","import * as React from \"react\";\nconst SvgFilter = (props) => /* @__PURE__ */ React.createElement(\"svg\", { width: 14, height: 13, viewBox: \"0 0 14 13\", fill: \"none\", xmlns: \"http://www.w3.org/2000/svg\", ...props }, /* @__PURE__ */ React.createElement(\"path\", { d: \"M1.63119 1H12.3687C12.4657 1.00003 12.5606 1.02827 12.6418 1.08127C12.723 1.13427 12.7871 1.20975 12.8261 1.29852C12.8652 1.38728 12.8776 1.48549 12.8619 1.58119C12.8461 1.67689 12.8029 1.76594 12.7374 1.8375L8.63119 6.35625C8.54573 6.44773 8.49873 6.56857 8.49994 6.69375V10.2312C8.5007 10.3143 8.48048 10.3963 8.44115 10.4695C8.40182 10.5427 8.34465 10.6048 8.27494 10.65L6.27494 11.9812C6.19992 12.0307 6.11297 12.059 6.02323 12.0631C5.9335 12.0673 5.84429 12.0473 5.76499 12.0051C5.68569 11.9629 5.61922 11.9001 5.57258 11.8233C5.52594 11.7465 5.50085 11.6586 5.49994 11.5688V6.69375C5.50114 6.56857 5.45415 6.44773 5.36869 6.35625L1.26244 1.8375C1.19697 1.76594 1.15373 1.67689 1.13798 1.58119C1.12224 1.48549 1.13466 1.38728 1.17374 1.29852C1.21282 1.20975 1.27688 1.13427 1.3581 1.08127C1.43932 1.02827 1.5342 1.00003 1.63119 1V1Z\", stroke: \"#6C7689\", strokeWidth: 1.25, strokeLinecap: \"round\", strokeLinejoin: \"round\" }));\nexport default SvgFilter;\n","import * as React from \"react\";\nconst SvgFreeze = (props) => /* @__PURE__ */ React.createElement(\"svg\", { width: \"24px\", height: \"24px\", viewBox: \"0 0 24 24\", fill: \"none\", xmlns: \"http://www.w3.org/2000/svg\", ...props }, /* @__PURE__ */ React.createElement(\"path\", { fillRule: \"evenodd\", clipRule: \"evenodd\", d: \"M11.4939 20.5644C11.1821 20.8372 10.7083 20.8056 10.4356 20.4939L3.43557 12.4939C3.18814 12.2111 3.18814 11.7889 3.43557 11.5061L10.4356 3.50613C10.7083 3.1944 11.1822 3.16281 11.4939 3.43557C11.8056 3.70834 11.8372 4.18216 11.5644 4.49388L5.65283 11.25L20 11.25C20.4142 11.25 20.75 11.5858 20.75 12C20.75 12.4142 20.4142 12.75 20 12.75L5.65283 12.75L11.5644 19.5061C11.8372 19.8179 11.8056 20.2917 11.4939 20.5644Z\", fill: \"currentColor\" }));\nexport default SvgFreeze;\n","import * as React from \"react\";\nconst SvgEllipsis = (props) => /* @__PURE__ */ React.createElement(\"svg\", { width: 12, height: 4, viewBox: \"0 0 12 4\", fill: \"currentColor\", xmlns: \"http://www.w3.org/2000/svg\", ...props }, /* @__PURE__ */ React.createElement(\"path\", { d: \"M1.99996 0.666504C1.26663 0.666504 0.666626 1.2665 0.666626 1.99984C0.666626 2.73317 1.26663 3.33317 1.99996 3.33317C2.73329 3.33317 3.33329 2.73317 3.33329 1.99984C3.33329 1.2665 2.73329 0.666504 1.99996 0.666504Z\" }), /* @__PURE__ */ React.createElement(\"path\", { d: \"M9.99996 0.666504C9.26663 0.666504 8.66663 1.2665 8.66663 1.99984C8.66663 2.73317 9.26663 3.33317 9.99996 3.33317C10.7333 3.33317 11.3333 2.73317 11.3333 1.99984C11.3333 1.2665 10.7333 0.666504 9.99996 0.666504Z\" }), /* @__PURE__ */ React.createElement(\"path\", { d: \"M5.99996 0.666504C5.26663 0.666504 4.66663 1.2665 4.66663 1.99984C4.66663 2.73317 5.26663 3.33317 5.99996 3.33317C6.73329 3.33317 7.33329 2.73317 7.33329 1.99984C7.33329 1.2665 6.73329 0.666504 5.99996 0.666504Z\" }));\nexport default SvgEllipsis;\n","import * as React from \"react\";\nconst SvgClark = (props) => /* @__PURE__ */ React.createElement(\"svg\", { width: 28, height: 20, viewBox: \"0 0 28 20\", fill: \"none\", xmlns: \"http://www.w3.org/2000/svg\", ...props }, /* @__PURE__ */ React.createElement(\"path\", { d: \"M20.4101 1.23853C17.6302 1.48173 15.5588 3.8863 15.7067 6.65157L18.3547 6.41988C18.5199 5.44519 19.325 4.66603 20.3558 4.57584C21.5806 4.46868 22.6602 5.37468 22.7674 6.59942C22.8594 7.65142 22.204 8.59642 21.2411 8.90995L21.4215 10.9716L21.4564 10.9921C22.0311 10.9419 22.6694 10.5377 23.0253 10.2436C24.6427 8.90661 24.7352 7.04449 24.7312 6.57165C24.7306 6.50857 24.7781 6.45461 24.841 6.44911L25.1108 6.42549C25.2166 6.41622 25.294 6.32392 25.2779 6.21892C25.21 5.77476 24.9744 4.64168 24.2597 3.80041C24.1964 3.72586 24.2411 3.60595 24.3386 3.59742L24.741 3.56221C24.8834 3.54975 24.9588 3.39563 24.8716 3.28231C24.3794 2.64217 22.8772 1.02267 20.4101 1.23853Z\", fill: \"url(#paint0_linear_735_5200)\" }), /* @__PURE__ */ React.createElement(\"path\", { opacity: 0.12, d: \"M18.3328 6.98742C18.4399 8.21219 19.5197 9.11815 20.7444 9.011L21.2988 8.9625C20.6867 6.22284 19.3122 5.41204 19.3122 5.41204C19.4647 5.02627 20.3564 4.57581 20.3564 4.57581C19.1316 4.68296 18.2257 5.76269 18.3328 6.98742Z\", fill: \"#2A333D\" }), /* @__PURE__ */ React.createElement(\"path\", { d: \"M6.64987 12.5642L6.69529 13.0564L6.46722 10.4494C5.43191 10.2861 4.60087 9.43595 4.50537 8.34472C4.39291 7.05918 5.34387 5.92583 6.62945 5.81337C7.39383 5.74649 8.10441 6.0556 8.57856 6.58745L11.1668 6.36103C10.4551 4.10391 8.25129 2.56222 5.79599 2.77703C3.32876 2.99288 2.13065 4.8486 1.75707 5.56449C1.69093 5.69126 1.79187 5.82995 1.93428 5.81749L2.33677 5.78226C2.43422 5.77372 2.4991 5.88407 2.44967 5.96849C1.89186 6.92107 1.85662 8.07787 1.86689 8.52707C1.86932 8.63326 1.96153 8.71072 2.06734 8.70145L2.33717 8.67787C2.40002 8.67237 2.45614 8.71726 2.46656 8.77949C2.54466 9.24587 2.95917 11.0636 4.78418 12.0994C5.18572 12.3273 6.07514 12.6145 6.64987 12.5642Z\", fill: \"url(#paint1_linear_735_5200)\" }), /* @__PURE__ */ React.createElement(\"path\", { opacity: 0.12, d: \"M9.16108 7.93755C9.27354 9.22309 8.32258 10.3564 7.037 10.4689L6.45508 10.5198C6.58846 7.57624 7.86146 6.48755 7.86146 6.48755C7.63354 6.11659 6.62969 5.81347 6.62969 5.81347C7.91527 5.70101 9.04858 6.65197 9.16108 7.93755Z\", fill: \"#2A333D\" }), /* @__PURE__ */ React.createElement(\"path\", { fillRule: \"evenodd\", clipRule: \"evenodd\", d: \"M21.7197 10.5433C21.2588 7.17688 19.0225 4.53246 15.0345 4.29123C14.926 4.28465 14.8717 4.28138 14.8331 4.25957C14.7984 4.24004 14.7721 4.21207 14.7547 4.17627C14.7353 4.13642 14.7353 4.08396 14.7353 3.97907V3.40726C14.7353 3.24855 14.5539 3.15816 14.4272 3.25371L13.4886 3.9615C13.3619 4.05704 13.1805 3.96665 13.1805 3.80796V3.44681C13.1805 3.28132 12.986 3.19286 12.862 3.30248C12.5925 3.54078 12.3235 3.77969 12.0552 4.01934C11.7949 4.252 11.6647 4.3683 11.5548 4.45011C11.4127 4.55592 11.4033 4.56207 11.2497 4.6503C11.131 4.71857 10.836 4.85477 10.2459 5.12715C7.45166 6.41715 6.1424 9.01238 6.39366 11.8842C6.82328 16.795 9.79797 18.5358 14.6601 18.1105C18.8747 17.7417 22.4177 15.6412 21.7197 10.5433ZM11.6391 10.2C11.7824 10.8209 11.4792 11.4211 10.9618 11.5405C10.4443 11.66 9.90866 11.2535 9.76532 10.6325C9.72401 10.4537 9.71978 10.2765 9.74705 10.112C9.83313 10.172 9.94328 10.1967 10.0535 10.1713C10.2605 10.1235 10.3895 9.91696 10.3418 9.71C10.3135 9.58746 10.2295 9.49219 10.1228 9.44484C10.2162 9.37223 10.3238 9.31942 10.4426 9.292C10.9601 9.17254 11.4957 9.57904 11.6391 10.2ZM18.6818 10.0523C19.1923 9.90592 19.4637 9.29065 19.2881 8.67811C19.1124 8.06554 18.5562 7.68761 18.0457 7.834C17.8998 7.87584 17.7734 7.956 17.6714 8.0635C17.7887 8.10177 17.8856 8.19569 17.9222 8.32331C17.9807 8.52746 17.8627 8.74046 17.6585 8.79904C17.5647 8.82592 17.469 8.81554 17.3872 8.77661C17.3812 8.91638 17.3977 9.06234 17.4395 9.20819C17.6152 9.82073 18.1714 10.1987 18.6818 10.0523ZM13.2339 13.6482L12.9811 10.7518C12.8867 9.67019 13.6397 8.69777 14.7106 8.51854C15.7814 8.33927 16.8101 9.01346 17.073 10.0668L17.7772 12.8876C18.1036 14.1952 17.2462 15.5034 15.917 15.7259C14.5879 15.9485 13.3511 14.9907 13.2339 13.6482Z\", fill: \"currentColor\" }), /* @__PURE__ */ React.createElement(\"path\", { opacity: 0.5, d: \"M13.8809 14.0962C14.3767 14.5024 15.0394 14.7029 15.7267 14.5879C16.4141 14.4728 16.9753 14.0674 17.3119 13.5219C17.254 14.3216 16.6582 15.0169 15.822 15.1569C14.9857 15.2969 14.196 14.8335 13.8809 14.0962Z\", fill: \"url(#paint2_linear_735_5200)\" }), /* @__PURE__ */ React.createElement(\"path\", { opacity: 0.5, d: \"M13.1914 13.1439C13.5758 14.1383 14.6198 14.7733 15.728 14.5878C16.8363 14.4023 17.6166 13.4619 17.6561 12.3965L17.7787 12.8875C18.1051 14.1951 17.2477 15.5033 15.9185 15.7258C14.5894 15.9483 13.3526 14.9906 13.2354 13.648L13.1914 13.1439Z\", fill: \"url(#paint3_linear_735_5200)\" }), /* @__PURE__ */ React.createElement(\"defs\", null, /* @__PURE__ */ React.createElement(\"linearGradient\", { id: \"paint0_linear_735_5200\", x1: 21.6358, y1: 4.1488, x2: 17.0271, y2: 8.78507, gradientUnits: \"userSpaceOnUse\" }, /* @__PURE__ */ React.createElement(\"stop\", { stopColor: \"currentColor\" }), /* @__PURE__ */ React.createElement(\"stop\", { offset: 1, stopColor: \"currentColor\", stopOpacity: 0.84 })), /* @__PURE__ */ React.createElement(\"linearGradient\", { id: \"paint1_linear_735_5200\", x1: 4.53449, y1: 6.60276, x2: 10.6431, y2: 9.71249, gradientUnits: \"userSpaceOnUse\" }, /* @__PURE__ */ React.createElement(\"stop\", { stopColor: \"currentColor\" }), /* @__PURE__ */ React.createElement(\"stop\", { offset: 1, stopColor: \"currentColor\", stopOpacity: 0.84 })), /* @__PURE__ */ React.createElement(\"linearGradient\", { id: \"paint2_linear_735_5200\", x1: 15.7877, y1: 13.8659, x2: 16.0042, y2: 15.0933, gradientUnits: \"userSpaceOnUse\" }, /* @__PURE__ */ React.createElement(\"stop\", { stopColor: \"currentColor\", stopOpacity: 0.6 }), /* @__PURE__ */ React.createElement(\"stop\", { offset: 1, stopColor: \"currentColor\" })), /* @__PURE__ */ React.createElement(\"linearGradient\", { id: \"paint3_linear_735_5200\", x1: 15.7043, y1: 13.5969, x2: 16.0698, y2: 15.6702, gradientUnits: \"userSpaceOnUse\" }, /* @__PURE__ */ React.createElement(\"stop\", { stopColor: \"currentColor\", stopOpacity: 0.6 }), /* @__PURE__ */ React.createElement(\"stop\", { offset: 1, stopColor: \"currentColor\" }))));\nexport default SvgClark;\n"],"names":[],"mappings":";AACK,MAAC,WAAW,CAAC,UAA0B,sBAAM,cAAc,OAAO,EAAE,OAAO,IAAI,QAAQ,IAAI,SAAS,aAAa,MAAM,QAAQ,OAAO,8BAA8B,GAAG,MAAK,GAAoB,sBAAM,cAAc,QAAQ,EAAE,GAAG,wBAAwB,QAAQ,gBAAgB,eAAe,SAAS,gBAAgB,QAAO,CAAE,CAAC;ACAnU,MAAC,kBAAkB,CAAC,UAA0B,sBAAM,cAAc,OAAO,EAAE,OAAO,IAAI,QAAQ,IAAI,SAAS,aAAa,MAAM,QAAQ,OAAO,8BAA8B,GAAG,MAAK,GAAoB,sBAAM,cAAc,QAAQ,EAAE,UAAU,WAAW,UAAU,WAAW,GAAG,8aAA8a,MAAM,eAAc,CAAE,CAAC;ACAvtB,MAAC,iBAAiB,CAAC,UAA0B,sBAAM,cAAc,OAAO,EAAE,OAAO,IAAI,QAAQ,IAAI,SAAS,aAAa,MAAM,QAAQ,OAAO,8BAA8B,GAAG,MAAK,GAAoB,sBAAM,cAAc,QAAQ,EAAE,UAAU,WAAW,UAAU,WAAW,GAAG,6lBAA6lB,MAAM,eAAc,CAAE,CAAC;ACAr4B,MAAC,gBAAgB,CAAC,UAA0B,sBAAM,cAAc,OAAO,EAAE,OAAO,IAAI,QAAQ,IAAI,SAAS,aAAa,MAAM,QAAQ,OAAO,8BAA8B,GAAG,MAAK,GAAoB,sBAAM,cAAc,QAAQ,EAAE,GAAG,+/CAA+/C,MAAM,eAAc,CAAE,CAAC;ACA5vD,MAAC,mBAAmB,CAAC,UAA0B,sBAAM,cAAc,OAAO,EAAE,O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0B,IAAI,SAAS,IAAI,SAAS,IAAI,SAAS,IAAI,SAAS,eAAe,iBAAkB,GAAkB,sBAAM,cAAc,QAAQ,EAAE,WAAW,gBAAgB,aAAa,IAAK,CAAA,GAAmB,sBAAM,cAAc,QAAQ,EAAE,QAAQ,GAAG,WAAW,eAAgB,CAAA,CAAC,GAAmB,sBAAM,cAAc,kBAAkB,EAAE,IAAI,0BAA0B,IAAI,SAAS,IAAI,SAAS,IAAI,SAAS,IAAI,SAAS,eAAe,iBAAgB,GAAoB,sBAAM,cAAc,QAAQ,EAAE,WAAW,gBAAgB,aAAa,KAAK,GAAmB,sBAAM,cAAc,QAAQ,EAAE,QAAQ,GAAG,WAAW,eAAc,CAAE,CAAC,CAAC,CAAC;"}
@@ -1,3 +0,0 @@
1
- export declare function Widgets(): import("react").JSX.Element;
2
- declare const _default: import("react").MemoExoticComponent<() => import("react").JSX.Element>;
3
- export default _default;
@@ -1,6 +0,0 @@
1
- import type { Entity, ScopedState } from "./base-entity-manager";
2
- declare function sanitizeObject<T extends object>(obj: T): T;
3
- declare function sanitizeEntity<T extends Entity>(entity: T): T;
4
- declare function sanitizeScopedState(state: ScopedState): ScopedState;
5
- declare function sanitizedToJS<T>(value: T): T;
6
- export { sanitizeObject, sanitizeEntity, sanitizeScopedState, sanitizedToJS };
@@ -1,8 +0,0 @@
1
- declare const SuspenseSymbol: unique symbol;
2
- type SuspenseResult = {
3
- __isSuspenseResult: typeof SuspenseSymbol;
4
- };
5
- declare function toJsOrSuspense<T extends Record<string, unknown>>(obj: T, key?: string): T | SuspenseResult;
6
- declare function removeSuspense<T extends Record<string, unknown>>(keys: string[], result: T | SuspenseResult, prevSafeResult: T | undefined): T;
7
- export { SuspenseSymbol, toJsOrSuspense, removeSuspense };
8
- export type { SuspenseResult };
@@ -1,18 +0,0 @@
1
- import type { RootStore } from "./lib/root-store.js";
2
- import type { Global as GlobalType } from "./scope/types.js";
3
- import type { Location } from "react-router";
4
- type RouteInfo = Location & {
5
- route: string;
6
- path: string;
7
- params: Record<string, unknown>;
8
- };
9
- export declare class LocationStore {
10
- route?: RouteInfo;
11
- rootStore: RootStore;
12
- constructor(rootStore: RootStore);
13
- updateLocation(route: RouteInfo): Promise<void>;
14
- sendLocationToEditor(route: RouteInfo): void;
15
- updateGlobalScopeUrl(route: RouteInfo): Promise<void>;
16
- getUrlState(route: RouteInfo): NonNullable<GlobalType["URL"]>;
17
- }
18
- export {};
@@ -1,2 +0,0 @@
1
- declare const _default: {};
2
- export default _default;
@@ -1,10 +0,0 @@
1
- import { Dim } from "@superblocksteam/library-shared";
2
- export declare const SlideoutSize: {
3
- readonly xsmall: "xsmall";
4
- readonly small: "small";
5
- readonly medium: "medium";
6
- readonly large: "large";
7
- readonly fullscreen: "fullscreen";
8
- };
9
- export type SlideoutSize = (typeof SlideoutSize)[keyof typeof SlideoutSize];
10
- export declare const SLIDEOUT_WIDTH_PRESETS: Record<SlideoutSize, Dim<"px" | "%">>;
@@ -1,31 +0,0 @@
1
- import { Dim } from "@superblocksteam/library-shared";
2
- import React from "react";
3
- import { SlideoutSize } from "./constants.js";
4
- import type { ContainerLayout, VerticalAlignment, HorizontalAlignment } from "../../component-base/constants.js";
5
- import type { ComputeStyleProps } from "../../themes/generatedStyles/generate-component-styles.js";
6
- import type { SbElement, SbInstance } from "@superblocksteam/library-shared/types";
7
- import type { ReactNode } from "react";
8
- type Props = {
9
- name?: string;
10
- isOpen: boolean;
11
- onClose: (e: any) => void;
12
- children: ReactNode;
13
- className?: string;
14
- closeOnClickOutside: boolean;
15
- hasBackdrop: boolean;
16
- widthPreset?: SlideoutSize;
17
- styleProps: ComputeStyleProps;
18
- sourceId: SbElement;
19
- instanceId: SbInstance;
20
- isEditing: boolean;
21
- layout: ContainerLayout;
22
- horizontalAlign?: HorizontalAlignment;
23
- verticalAlign?: VerticalAlignment;
24
- spacing: Dim<"px">;
25
- columns?: number;
26
- rows?: number;
27
- rowHeight?: Dim<"px">;
28
- dropTargetRef?: React.RefObject<HTMLElement | null>;
29
- };
30
- declare const SlideoutComponent: (props: Props) => React.JSX.Element;
31
- export default SlideoutComponent;
@@ -1,20 +0,0 @@
1
- export declare class SuspensibleAPI<TData = any, TArgs extends any[] = any[]> {
2
- private _response;
3
- private _error;
4
- private _promise;
5
- private _isLoading;
6
- private _runFn;
7
- private _cancelFn;
8
- constructor({ runFn, cancelFn, }: {
9
- runFn: (...args: TArgs) => Promise<TData>;
10
- cancelFn: (...args: TArgs) => Promise<void>;
11
- });
12
- /**
13
- * Context-aware response getter that either returns data or throws promises to trigger React Suspense.
14
- */
15
- get response(): TData | undefined;
16
- get isLoading(): boolean;
17
- get error(): Error | undefined;
18
- run(...args: TArgs): Promise<TData>;
19
- cancel(...args: TArgs): Promise<void>;
20
- }
@@ -1,14 +0,0 @@
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;