@superblocksteam/library 2.0.18-next.8 → 2.0.18

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 (48) hide show
  1. package/dist/{allPaths-D7O-_vOB.js → allPaths-BcmnNOrM.js} +2 -2
  2. package/dist/{allPaths-D7O-_vOB.js.map → allPaths-BcmnNOrM.js.map} +1 -1
  3. package/dist/{allPaths-ejszmgwU.js → allPaths-BhKh3tRr.js} +2 -2
  4. package/dist/{allPaths-ejszmgwU.js.map → allPaths-BhKh3tRr.js.map} +1 -1
  5. package/dist/{allPathsLoader-CI9LHJlN.js → allPathsLoader-CdyUlNiF.js} +3 -3
  6. package/dist/{allPathsLoader-eZt2jgu3.js.map → allPathsLoader-CdyUlNiF.js.map} +1 -1
  7. package/dist/{allPathsLoader-eZt2jgu3.js → allPathsLoader-Cz_4-JNm.js} +3 -3
  8. package/dist/{allPathsLoader-CI9LHJlN.js.map → allPathsLoader-Cz_4-JNm.js.map} +1 -1
  9. package/dist/{devtools-consolidated-BxjezRQW.js → devtools-consolidated-CqGY1L2S.js} +2 -2
  10. package/dist/{devtools-consolidated-BxjezRQW.js.map → devtools-consolidated-CqGY1L2S.js.map} +1 -1
  11. package/dist/{index-BX_1dapF.js → index-bBeDqyQ9.js} +400 -236
  12. package/dist/{index-BX_1dapF.js.map → index-bBeDqyQ9.js.map} +1 -1
  13. package/dist/index.js +121 -119
  14. package/dist/{splitPathsBySizeLoader-BVwURmZz.js → splitPathsBySizeLoader-DswCZXDS.js} +2 -2
  15. package/dist/{splitPathsBySizeLoader-BVwURmZz.js.map → splitPathsBySizeLoader-DswCZXDS.js.map} +1 -1
  16. package/dist/{splitPathsBySizeLoader-mJA8HOFZ.js → splitPathsBySizeLoader-HWWTOmvU.js} +2 -2
  17. package/dist/{splitPathsBySizeLoader-mJA8HOFZ.js.map → splitPathsBySizeLoader-HWWTOmvU.js.map} +1 -1
  18. package/dist-types/edit-mode/dnd/utils.d.ts +0 -4
  19. package/dist-types/edit-mode/features/operation-store.d.ts +1 -0
  20. package/dist-types/lib/index.d.ts +1 -1
  21. package/dist-types/lib/internal-details/lib/features/component-registry.d.ts +4 -1
  22. package/dist-types/lib/internal-details/lib/features/type-defs-utils.d.ts +3 -0
  23. package/dist-types/lib/internal-details/sb-wrapper.d.ts +0 -1
  24. package/dist-types/lib/user-facing/components/column/editor.d.ts +2 -0
  25. package/dist-types/lib/user-facing/components/column/index.d.ts +6 -0
  26. package/dist-types/lib/user-facing/components/column/props.d.ts +23 -19
  27. package/dist-types/lib/user-facing/components/container/index.d.ts +6 -0
  28. package/dist-types/lib/user-facing/components/container/props.d.ts +3 -0
  29. package/dist-types/lib/user-facing/components/custom/register-custom-component.d.ts +5 -3
  30. package/dist-types/lib/user-facing/components/icon/editor.d.ts +3 -3
  31. package/dist-types/lib/user-facing/components/icon/props.d.ts +2 -0
  32. package/dist-types/lib/user-facing/components/modal/index.d.ts +6 -0
  33. package/dist-types/lib/user-facing/components/modal/props.d.ts +3 -0
  34. package/dist-types/lib/user-facing/components/page/editor.d.ts +2 -0
  35. package/dist-types/lib/user-facing/components/page/index.d.ts +2 -0
  36. package/dist-types/lib/user-facing/components/page/props.d.ts +1 -0
  37. package/dist-types/lib/user-facing/components/section/editor.d.ts +2 -0
  38. package/dist-types/lib/user-facing/components/section/index.d.ts +2 -0
  39. package/dist-types/lib/user-facing/components/section/props.d.ts +1 -0
  40. package/dist-types/lib/user-facing/components/slideout/index.d.ts +6 -0
  41. package/dist-types/lib/user-facing/components/slideout/props.d.ts +3 -0
  42. package/dist-types/lib/user-facing/properties-panel/props-builder.d.ts +4 -1
  43. package/dist-types/lib/utils/get-component-layout.d.ts +3 -0
  44. package/dist-types/lib/utils/{is-widget-grid.d.ts → is-component-grid.d.ts} +1 -1
  45. package/dist-types/lib/utils/is-component-stacklike.d.ts +2 -0
  46. package/dist-types/lib/utils/is-component-vstack.d.ts +2 -0
  47. package/package.json +2 -2
  48. package/dist-types/lib/utils/is-widget-vstack.d.ts +0 -2
@@ -1,5 +1,6 @@
1
1
  export declare const Page: import("../../../internal-details/sb-wrapper.jsx").ChainableComponent<{
2
2
  contents: import("../../properties-panel/props-builder.js").Section<Record<string, import("../../properties-panel/props-builder.js").Prop<any, any, undefined>> & {
3
+ children: import("../../properties-panel/props-builder.js").Prop<any, false, undefined>;
3
4
  columns: import("../../properties-panel/props-builder.js").Prop<string[], false, undefined>;
4
5
  }>;
5
6
  layout: import("../../properties-panel/props-builder.js").Section<Record<string, import("../../properties-panel/props-builder.js").Prop<any, any, undefined>> & {
@@ -18,6 +19,7 @@ export declare const Page: import("../../../internal-details/sb-wrapper.jsx").Ch
18
19
  }>;
19
20
  }, import("../../properties-panel/props-builder.js").ExternalProps<{
20
21
  contents: import("../../properties-panel/props-builder.js").Section<Record<string, import("../../properties-panel/props-builder.js").Prop<any, any, undefined>> & {
22
+ children: import("../../properties-panel/props-builder.js").Prop<any, false, undefined>;
21
23
  columns: import("../../properties-panel/props-builder.js").Prop<string[], false, undefined>;
22
24
  }>;
23
25
  layout: import("../../properties-panel/props-builder.js").Section<Record<string, import("../../properties-panel/props-builder.js").Prop<any, any, undefined>> & {
@@ -2,6 +2,7 @@ import { Dim } from "@superblocksteam/library-shared";
2
2
  import { Prop, Section } from "../../properties-panel/props-builder.js";
3
3
  export declare const propertiesDefinition: {
4
4
  contents: Section<Record<string, Prop<any, any, undefined>> & {
5
+ children: Prop<any, false, undefined>;
5
6
  columns: Prop<string[], false, undefined>;
6
7
  }>;
7
8
  layout: Section<Record<string, Prop<any, any, undefined>> & {
@@ -1,3 +1,5 @@
1
1
  import type { propertiesDefinition } from "./props.js";
2
2
  import type { EditorTemplate } from "../../../internal-details/sb-wrapper.jsx";
3
+ import type { EditorConfig } from "@superblocksteam/library-shared/types";
3
4
  export declare const editorTemplate: EditorTemplate<typeof propertiesDefinition>;
5
+ export declare const editorConfig: EditorConfig;
@@ -1,5 +1,6 @@
1
1
  export declare const Section: import("../../../internal-details/sb-wrapper.jsx").ChainableComponent<{
2
2
  contents: import("../../properties-panel/props-builder.js").Section<Record<string, import("../../properties-panel/props-builder.js").Prop<any, any, undefined>> & {
3
+ children: import("../../properties-panel/props-builder.js").Prop<any, false, undefined>;
3
4
  columns: import("../../properties-panel/props-builder.js").Prop<string[], false, undefined>;
4
5
  }>;
5
6
  layout: import("../../properties-panel/props-builder.js").Section<Record<string, import("../../properties-panel/props-builder.js").Prop<any, any, undefined>> & {
@@ -23,6 +24,7 @@ export declare const Section: import("../../../internal-details/sb-wrapper.jsx")
23
24
  }>;
24
25
  }, import("../../properties-panel/props-builder.js").ExternalProps<{
25
26
  contents: import("../../properties-panel/props-builder.js").Section<Record<string, import("../../properties-panel/props-builder.js").Prop<any, any, undefined>> & {
27
+ children: import("../../properties-panel/props-builder.js").Prop<any, false, undefined>;
26
28
  columns: import("../../properties-panel/props-builder.js").Prop<string[], false, undefined>;
27
29
  }>;
28
30
  layout: import("../../properties-panel/props-builder.js").Section<Record<string, import("../../properties-panel/props-builder.js").Prop<any, any, undefined>> & {
@@ -3,6 +3,7 @@ import { Prop } from "../../properties-panel/props-builder.js";
3
3
  import { Section } from "../../properties-panel/props-builder.js";
4
4
  export declare const propertiesDefinition: {
5
5
  contents: Section<Record<string, Prop<any, any, undefined>> & {
6
+ children: Prop<any, false, undefined>;
6
7
  columns: Prop<string[], false, undefined>;
7
8
  }>;
8
9
  layout: Section<Record<string, Prop<any, any, undefined>> & {
@@ -1,6 +1,9 @@
1
1
  import { Dim } from "@superblocksteam/library-shared";
2
2
  import type { ContainerLayout } from "../../component-base/constants.js";
3
3
  export declare const Slideout: import("../../../internal-details/sb-wrapper.jsx").ChainableComponent<{
4
+ contents: import("../../properties-panel/props-builder.js").Section<Record<string, import("../../properties-panel/props-builder.js").Prop<any, any, undefined>> & {
5
+ children: import("../../properties-panel/props-builder.js").Prop<any, false, undefined>;
6
+ }>;
4
7
  layout: import("../../properties-panel/props-builder.js").Section<Record<string, import("../../properties-panel/props-builder.js").Prop<any, any, undefined>> & ((Omit<{
5
8
  layout: import("../../properties-panel/props-builder.js").Prop<ContainerLayout, true, undefined>;
6
9
  }, "layout" | "verticalAlign" | "horizontalAlign"> & {
@@ -39,6 +42,9 @@ export declare const Slideout: import("../../../internal-details/sb-wrapper.jsx"
39
42
  isOpen: import("../../properties-panel/props-builder.js").Prop<boolean, true, undefined>;
40
43
  }>;
41
44
  }, import("../../properties-panel/props-builder.js").ExternalProps<{
45
+ contents: import("../../properties-panel/props-builder.js").Section<Record<string, import("../../properties-panel/props-builder.js").Prop<any, any, undefined>> & {
46
+ children: import("../../properties-panel/props-builder.js").Prop<any, false, undefined>;
47
+ }>;
42
48
  layout: import("../../properties-panel/props-builder.js").Section<Record<string, import("../../properties-panel/props-builder.js").Prop<any, any, undefined>> & ((Omit<{
43
49
  layout: import("../../properties-panel/props-builder.js").Prop<ContainerLayout, true, undefined>;
44
50
  }, "layout" | "verticalAlign" | "horizontalAlign"> & {
@@ -3,6 +3,9 @@ import { Prop, Section } from "../../properties-panel/props-builder.js";
3
3
  import { SlideoutSize } from "./constants.js";
4
4
  import type { PerCornerBorderRadius } from "@superblocksteam/library-shared/types";
5
5
  export declare const propertiesDefinition: {
6
+ contents: Section<Record<string, Prop<any, any, undefined>> & {
7
+ children: Prop<any, false, undefined>;
8
+ }>;
6
9
  layout: Section<Record<string, Prop<any, any, undefined>> & ((Omit<{
7
10
  layout: Prop<import("../../component-base/constants.js").ContainerLayout, true, undefined>;
8
11
  }, "layout" | "verticalAlign" | "horizontalAlign"> & {
@@ -70,7 +70,7 @@ type DefaultValueBehavior = "RequiredIfDefault" | "AlwaysOptional";
70
70
  */
71
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[] ? {
72
72
  [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 EventFlow ? (...args: any[]) => Promise<void> : V : (context: ContextualProps) => V : ContextualProps extends any[] ? InputProp<V, ContextualProps> : InputProp<V> : never;
73
+ }[number] : never : T extends Prop<infer V, infer _HasDefault, infer ContextualProps> ? IsEvaluated extends true ? ContextualProps extends undefined ? V extends EventFlow ? (...args: any[]) => Promise<void> : V : ContextualProps extends any[] ? (...args: ContextualProps) => V : InputProp<V> : InputProp<V> : never;
74
74
  /**
75
75
  * Extracts a flat props object from a properties definition
76
76
  * Handles optionality based on DefaultValueBehavior
@@ -161,6 +161,9 @@ declare class Prop<Type extends DataType, _HasDefault extends boolean = false, _
161
161
  static dimension<T extends Dim<DimModes>>(): Prop<T>;
162
162
  static literal<T extends Readonly<string | number | boolean>>(value: T): Prop<T, true>;
163
163
  static event(): Prop<EventFlow>;
164
+ static children(config?: {
165
+ allowedChildren?: string[];
166
+ }): Prop<any>;
164
167
  static function<ARGS extends any[] = any[], RETURN = any>(implementation: EntityFunction<ARGS, RETURN>): Prop<EntityFunction<ARGS, RETURN>, true>;
165
168
  /**
166
169
  * Creates an internal property that is not exposed in the entity's public interface,
@@ -0,0 +1,3 @@
1
+ import type { RuntimeWidgetMeta } from "../../edit-mode/features/runtime-widgets-manager.js";
2
+ import type { ContainerLayout } from "../user-facing/component-base/constants.js";
3
+ export declare const getComponentLayout: (component: RuntimeWidgetMeta | undefined) => ContainerLayout | undefined;
@@ -1,2 +1,2 @@
1
1
  import type { RuntimeWidgetMeta } from "../../edit-mode/features/runtime-widgets-manager.js";
2
- export declare const isWidgetGrid: (widget: RuntimeWidgetMeta | undefined) => boolean;
2
+ export declare const isComponentGrid: (component: RuntimeWidgetMeta | undefined) => boolean;
@@ -0,0 +1,2 @@
1
+ import type { RuntimeWidgetMeta } from "../../edit-mode/features/runtime-widgets-manager.js";
2
+ export declare const isComponentStacklike: (component: RuntimeWidgetMeta | undefined) => boolean;
@@ -0,0 +1,2 @@
1
+ import type { RuntimeWidgetMeta } from "../../edit-mode/features/runtime-widgets-manager.js";
2
+ export declare const isComponentVStack: (component: RuntimeWidgetMeta | undefined) => boolean;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@superblocksteam/library",
3
- "version": "2.0.18-next.8",
3
+ "version": "2.0.18",
4
4
  "type": "module",
5
5
  "exports": {
6
6
  ".": {
@@ -33,7 +33,7 @@
33
33
  "@react-hook/resize-observer": "1.2.6",
34
34
  "@superblocksteam/fast-deep-equal": "3.1.4",
35
35
  "@superblocksteam/iso-currency": "2.0.0",
36
- "@superblocksteam/library-shared": "2.0.18-next.8",
36
+ "@superblocksteam/library-shared": "2.0.18",
37
37
  "@superblocksteam/shared": "0.9160.0",
38
38
  "antd": "4.24.15",
39
39
  "apca-w3": "^0.1.9",
@@ -1,2 +0,0 @@
1
- import type { RuntimeWidgetMeta } from "../../edit-mode/features/runtime-widgets-manager.js";
2
- export declare const isWidgetVStack: (widget: RuntimeWidgetMeta | undefined) => boolean;