@builder.io/sdk-solid 0.13.1 → 0.13.3

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.
package/dist/index.d.ts CHANGED
@@ -84,11 +84,6 @@ interface BuilderBlock {
84
84
  show?: boolean;
85
85
  }
86
86
 
87
- type Nullable<T> = T | null | undefined;
88
- type Dictionary<T> = {
89
- [key: string]: T;
90
- };
91
-
92
87
  type BlocksWrapperProps = {
93
88
  blocks: BuilderBlock[] | undefined;
94
89
  parent: string | undefined;
@@ -102,6 +97,7 @@ type BlocksWrapperProps = {
102
97
  * Additonal props to pass to `blocksWrapper`. Defaults to `{}`.
103
98
  */
104
99
  BlocksWrapperProps: any;
100
+ children?: any;
105
101
  };
106
102
 
107
103
  type ApiVersion = 'v3';
@@ -226,8 +222,14 @@ interface Input {
226
222
  type?: string;
227
223
  };
228
224
  onChange?: ((options: Map<string, any>) => void | Promise<void>) | string;
225
+ meta?: Record<string, any>;
229
226
  }
230
227
 
228
+ type Nullable<T> = T | null | undefined;
229
+ type Dictionary<T> = {
230
+ [key: string]: T;
231
+ };
232
+
231
233
  interface Breakpoints {
232
234
  small: number;
233
235
  medium: number;
@@ -469,7 +471,7 @@ interface BuilderContextInterface extends Pick<BlocksWrapperProps, 'BlocksWrappe
469
471
  inheritedStyles: Record<string, unknown>;
470
472
  }
471
473
 
472
- type PropsWithBuilderData<T> = T & {
474
+ type BuilderDataProps = {
473
475
  builderBlock: BuilderBlock;
474
476
  builderContext: BuilderContextInterface;
475
477
  };
@@ -495,14 +497,14 @@ type Column = {
495
497
  link?: string;
496
498
  };
497
499
  type StackColumnsAt = 'tablet' | 'mobile' | 'never';
498
- interface ColumnProps extends BuilderComponentsProp, BuilderLinkComponentProp {
500
+ interface ColumnProps extends BuilderComponentsProp, BuilderLinkComponentProp, BuilderDataProps {
499
501
  columns?: Column[];
500
502
  space?: number;
501
503
  stackColumnsAt?: StackColumnsAt;
502
504
  reverseColumnsWhenStacked?: boolean;
503
505
  }
504
506
 
505
- declare function Columns(props: PropsWithBuilderData<ColumnProps>): solid_js.JSX.Element;
507
+ declare function Columns(props: ColumnProps): solid_js.JSX.Element;
506
508
 
507
509
  interface FragmentProps {
508
510
  maxWidth?: number;
@@ -550,7 +552,7 @@ interface SymbolInfo {
550
552
  inline?: boolean;
551
553
  dynamic?: boolean;
552
554
  }
553
- interface SymbolProps extends BuilderComponentsProp, BuilderLinkComponentProp {
555
+ interface SymbolProps extends BuilderComponentsProp, BuilderDataProps, BuilderLinkComponentProp {
554
556
  symbol?: SymbolInfo;
555
557
  dataOnly?: boolean;
556
558
  dynamic?: boolean;
@@ -558,7 +560,7 @@ interface SymbolProps extends BuilderComponentsProp, BuilderLinkComponentProp {
558
560
  inheritState?: boolean;
559
561
  }
560
562
 
561
- declare function Symbol(props: PropsWithBuilderData<SymbolProps>): solid_js.JSX.Element;
563
+ declare function Symbol(props: SymbolProps): solid_js.JSX.Element;
562
564
 
563
565
  type TextProps = {
564
566
  text?: string;