@builder.io/sdk-solid 0.12.3 → 0.12.4

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
@@ -1,14 +1,5 @@
1
1
  import * as solid_js from 'solid-js';
2
2
 
3
- interface ButtonProps {
4
- attributes?: any;
5
- text?: string;
6
- link?: string;
7
- openLinkInNewTab?: boolean;
8
- }
9
-
10
- declare function Button(props: ButtonProps): solid_js.JSX.Element;
11
-
12
3
  type JSONValue$1 = string | number | boolean | JSONObject$1 | JSONArray$1;
13
4
  interface JSONObject$1 {
14
5
  [x: string]: JSONValue$1;
@@ -65,6 +56,7 @@ interface BuilderBlock {
65
56
  } | null;
66
57
  animations?: any[];
67
58
  style?: Partial<CSSStyleDeclaration>;
59
+ href?: string;
68
60
  /**
69
61
  * generated by the "Hide If" binding
70
62
  */
@@ -467,15 +459,27 @@ type PropsWithBuilderData<T> = T & {
467
459
  type BuilderComponentsProp = {
468
460
  builderComponents: RegisteredComponents;
469
461
  };
462
+ type BuilderLinkComponentProp = {
463
+ builderLinkComponent?: any;
464
+ };
465
+
466
+ interface ButtonProps extends BuilderLinkComponentProp {
467
+ attributes?: any;
468
+ text?: string;
469
+ link?: string;
470
+ openLinkInNewTab?: boolean;
471
+ }
472
+
473
+ declare function Button(props: ButtonProps): solid_js.JSX.Element;
470
474
 
471
475
  type Column = {
472
476
  blocks: BuilderBlock[];
473
477
  width?: number;
478
+ link?: string;
474
479
  };
475
480
  type StackColumnsAt = 'tablet' | 'mobile' | 'never';
476
- interface ColumnProps extends BuilderComponentsProp {
481
+ interface ColumnProps extends BuilderComponentsProp, BuilderLinkComponentProp {
477
482
  columns?: Column[];
478
- builderBlock: BuilderBlock;
479
483
  space?: number;
480
484
  stackColumnsAt?: StackColumnsAt;
481
485
  reverseColumnsWhenStacked?: boolean;
@@ -529,7 +533,7 @@ interface SymbolInfo {
529
533
  inline?: boolean;
530
534
  dynamic?: boolean;
531
535
  }
532
- interface SymbolProps extends BuilderComponentsProp {
536
+ interface SymbolProps extends BuilderComponentsProp, BuilderLinkComponentProp {
533
537
  symbol?: SymbolInfo;
534
538
  dataOnly?: boolean;
535
539
  dynamic?: boolean;
@@ -571,6 +575,7 @@ declare function Video(props: VideoProps): solid_js.JSX.Element;
571
575
  type BlocksProps = Partial<Omit<BlocksWrapperProps, 'BlocksWrapper' | 'BlocksWrapperProps'>> & {
572
576
  context?: BuilderContextInterface;
573
577
  registeredComponents?: RegisteredComponents;
578
+ linkComponent?: any;
574
579
  };
575
580
 
576
581
  declare function Blocks(props: BlocksProps): solid_js.JSX.Element;
@@ -603,6 +608,10 @@ interface ContentVariantsPrps {
603
608
  * An array of custom components to register (optional).
604
609
  */
605
610
  customComponents?: RegisteredComponent[];
611
+ /**
612
+ * The component to use for rendering links. Defaults to anchor element `<a>`.
613
+ */
614
+ linkComponent?: any;
606
615
  /**
607
616
  * A boolean to enable or disable tracking (optional). Defaults to `true`.
608
617
  */
@@ -620,7 +629,7 @@ interface ContentVariantsPrps {
620
629
  */
621
630
  enrich?: boolean;
622
631
  /**
623
- * The element that wraps your content. Defaults to `div` ('ScrollView' in React Native).
632
+ * The element that wraps your content. Defaults to `<div>` ('ScrollView' in React Native).
624
633
  */
625
634
  contentWrapper?: any;
626
635
  /**
@@ -628,7 +637,7 @@ interface ContentVariantsPrps {
628
637
  */
629
638
  contentWrapperProps?: any;
630
639
  /**
631
- * The element that wraps your blocks. Defaults to `div` ('ScrollView' in React Native).
640
+ * The element that wraps your blocks. Defaults to `<div>` ('ScrollView' in React Native).
632
641
  */
633
642
  blocksWrapper?: any;
634
643
  /**