@builder.io/sdk-qwik 0.1.6 → 0.1.8

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.
@@ -324,6 +324,13 @@ const useBlock$1 = function useBlock2(props, state) {
324
324
  shouldEvaluateBindings: true
325
325
  });
326
326
  };
327
+ const canShowBlock$1 = function canShowBlock2(props, state) {
328
+ if (checkIsDefined(useBlock$1(props).hide))
329
+ return !useBlock$1(props).hide;
330
+ if (checkIsDefined(useBlock$1(props).show))
331
+ return useBlock$1(props).show;
332
+ return true;
333
+ };
327
334
  const css = function css2(props, state) {
328
335
  const styles = useBlock$1(props).responsiveStyles;
329
336
  const content = props.context.content;
@@ -354,7 +361,7 @@ const css = function css2(props, state) {
354
361
  };
355
362
  const BlockStyles = (props) => {
356
363
  return /* @__PURE__ */ jsxRuntime.jsx(jsxRuntime.Fragment, {
357
- children: css(props) ? /* @__PURE__ */ jsxRuntime.jsx(RenderInlinedStyles, {
364
+ children: css(props) && canShowBlock$1(props) ? /* @__PURE__ */ jsxRuntime.jsx(RenderInlinedStyles, {
358
365
  styles: css(props)
359
366
  }, "LQ_0") : null,
360
367
  [qwik._IMMUTABLE]: {
@@ -572,6 +579,13 @@ const useBlock = function useBlock22(props, state) {
572
579
  shouldEvaluateBindings: true
573
580
  });
574
581
  };
582
+ const canShowBlock = function canShowBlock22(props, state) {
583
+ if (checkIsDefined(useBlock(props).hide))
584
+ return !useBlock(props).hide;
585
+ if (checkIsDefined(useBlock(props).show))
586
+ return useBlock(props).show;
587
+ return true;
588
+ };
575
589
  const proxyState = function proxyState2(props, state) {
576
590
  if (typeof Proxy === "undefined") {
577
591
  console.error("no Proxy available in this environment, cannot proxy state.");
@@ -611,8 +625,7 @@ const renderComponentProps = function renderComponentProps2(props, state) {
611
625
  ...attributes(props),
612
626
  ...actions(props)
613
627
  }
614
- },
615
- customBreakpoints: childrenContext(props)?.content?.meta?.breakpoints
628
+ }
616
629
  },
617
630
  context: childrenContext(props)
618
631
  };
@@ -645,7 +658,7 @@ const RenderBlock = (props) => {
645
658
  const state = {};
646
659
  state.tag = tag(props);
647
660
  return /* @__PURE__ */ jsxRuntime.jsx(jsxRuntime.Fragment, {
648
- children: !component(props)?.noWrap ? /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, {
661
+ children: canShowBlock(props) ? !component(props)?.noWrap ? /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, {
649
662
  children: [
650
663
  isEmptyHtmlElement(tag(props)) ? /* @__PURE__ */ jsxRuntime.jsx(state.tag, {
651
664
  ...attributes(props),
@@ -692,7 +705,7 @@ const RenderBlock = (props) => {
692
705
  }
693
706
  }, "9d_1") : /* @__PURE__ */ jsxRuntime.jsx(RenderComponent, {
694
707
  ...renderComponentProps(props)
695
- }, "9d_2"),
708
+ }, "9d_2") : null,
696
709
  [qwik._IMMUTABLE]: {
697
710
  children: false
698
711
  }
@@ -781,48 +794,48 @@ const STYLES$2 = `
781
794
  flex-direction: column;
782
795
  align-items: stretch;
783
796
  }`;
784
- const getGutterSize = function getGutterSize2(props, state) {
797
+ const getGutterSize = function getGutterSize2(props, state, builderContext2) {
785
798
  return typeof props.space === "number" ? props.space || 0 : 20;
786
799
  };
787
- const getColumns = function getColumns2(props, state) {
800
+ const getColumns = function getColumns2(props, state, builderContext2) {
788
801
  return props.columns || [];
789
802
  };
790
- const getWidth = function getWidth2(props, state, index) {
803
+ const getWidth = function getWidth2(props, state, builderContext2, index) {
791
804
  const columns = getColumns(props);
792
805
  return columns[index]?.width || 100 / columns.length;
793
806
  };
794
- const getColumnCssWidth = function getColumnCssWidth2(props, state, index) {
807
+ const getColumnCssWidth = function getColumnCssWidth2(props, state, builderContext2, index) {
795
808
  const columns = getColumns(props);
796
809
  const gutterSize = getGutterSize(props);
797
810
  const subtractWidth = gutterSize * (columns.length - 1) / columns.length;
798
- return `calc(${getWidth(props, state, index)}% - ${subtractWidth}px)`;
811
+ return `calc(${getWidth(props, state, builderContext2, index)}% - ${subtractWidth}px)`;
799
812
  };
800
- const maybeApplyForTablet = function maybeApplyForTablet2(props, state, prop) {
813
+ const maybeApplyForTablet = function maybeApplyForTablet2(props, state, builderContext2, prop) {
801
814
  const _stackColumnsAt = props.stackColumnsAt || "tablet";
802
815
  return _stackColumnsAt === "tablet" ? prop : "inherit";
803
816
  };
804
- const columnsCssVars = function columnsCssVars2(props, state) {
817
+ const columnsCssVars = function columnsCssVars2(props, state, builderContext2) {
805
818
  const flexDir = props.stackColumnsAt === "never" ? "inherit" : props.reverseColumnsWhenStacked ? "column-reverse" : "column";
806
819
  return {
807
820
  "--flex-dir": flexDir,
808
- "--flex-dir-tablet": maybeApplyForTablet(props, state, flexDir)
821
+ "--flex-dir-tablet": maybeApplyForTablet(props, state, builderContext2, flexDir)
809
822
  };
810
823
  };
811
- const columnCssVars = function columnCssVars2(props, state) {
824
+ const columnCssVars = function columnCssVars2(props, state, builderContext2) {
812
825
  const width = "100%";
813
826
  const marginLeft = "0";
814
827
  return {
815
828
  "--column-width": width,
816
829
  "--column-margin-left": marginLeft,
817
- "--column-width-tablet": maybeApplyForTablet(props, state, width),
818
- "--column-margin-left-tablet": maybeApplyForTablet(props, state, marginLeft)
830
+ "--column-width-tablet": maybeApplyForTablet(props, state, builderContext2, width),
831
+ "--column-margin-left-tablet": maybeApplyForTablet(props, state, builderContext2, marginLeft)
819
832
  };
820
833
  };
821
- const getWidthForBreakpointSize = function getWidthForBreakpointSize2(props, state, size) {
822
- const breakpointSizes = getSizesForBreakpoints(props.customBreakpoints || {});
834
+ const getWidthForBreakpointSize = function getWidthForBreakpointSize2(props, state, builderContext2, size) {
835
+ const breakpointSizes = getSizesForBreakpoints(builderContext2.content?.meta?.breakpoints || {});
823
836
  return breakpointSizes[size].max;
824
837
  };
825
- const columnStyleObjects = function columnStyleObjects2(props, state) {
838
+ const columnStyleObjects = function columnStyleObjects2(props, state, builderContext2) {
826
839
  return {
827
840
  columns: {
828
841
  small: {
@@ -846,9 +859,9 @@ const columnStyleObjects = function columnStyleObjects2(props, state) {
846
859
  }
847
860
  };
848
861
  };
849
- const columnsStyles = function columnsStyles2(props, state) {
862
+ const columnsStyles = function columnsStyles2(props, state, builderContext2) {
850
863
  return `
851
- @media (max-width: ${getWidthForBreakpointSize(props, state, "medium")}px) {
864
+ @media (max-width: ${getWidthForBreakpointSize(props, state, builderContext2, "medium")}px) {
852
865
  .${props.builderBlock.id}-breakpoints {
853
866
  ${convertStyleMapToCSS(columnStyleObjects().columns.medium)}
854
867
  }
@@ -858,7 +871,7 @@ const columnsStyles = function columnsStyles2(props, state) {
858
871
  }
859
872
  }
860
873
 
861
- @media (max-width: ${getWidthForBreakpointSize(props, state, "small")}px) {
874
+ @media (max-width: ${getWidthForBreakpointSize(props, state, builderContext2, "small")}px) {
862
875
  .${props.builderBlock.id}-breakpoints {
863
876
  ${convertStyleMapToCSS(columnStyleObjects().columns.small)}
864
877
  }
@@ -871,25 +884,26 @@ const columnsStyles = function columnsStyles2(props, state) {
871
884
  };
872
885
  const Columns = /* @__PURE__ */ qwik.componentQrl(qwik.inlinedQrl((props) => {
873
886
  qwik.useStylesScopedQrl(qwik.inlinedQrl(STYLES$1, "Columns_component_useStylesScoped_s7JLZz7MCCQ"));
887
+ const builderContext$1 = qwik.useContext(builderContext);
874
888
  const state = {};
875
889
  return /* @__PURE__ */ jsxRuntime.jsxs("div", {
876
890
  class: `builder-columns ${props.builderBlock.id}-breakpoints div-Columns`,
877
891
  style: {
878
892
  ...{},
879
- ...columnsCssVars(props, state)
893
+ ...columnsCssVars(props, state, builderContext$1)
880
894
  },
881
895
  children: [
882
896
  /* @__PURE__ */ jsxRuntime.jsx(RenderInlinedStyles, {
883
- styles: columnsStyles(props, state)
897
+ styles: columnsStyles(props, state, builderContext$1)
884
898
  }, "c0_0"),
885
899
  (props.columns || []).map(function(column, index) {
886
900
  return /* @__PURE__ */ jsxRuntime.jsx("div", {
887
901
  class: "builder-column div-Columns-2",
888
902
  style: {
889
- width: getColumnCssWidth(props, state, index),
903
+ width: getColumnCssWidth(props, state, builderContext$1, index),
890
904
  marginLeft: `${index === 0 ? 0 : getGutterSize(props)}px`,
891
905
  ...{},
892
- ...columnCssVars(props, state)
906
+ ...columnCssVars(props, state, builderContext$1)
893
907
  },
894
908
  children: /* @__PURE__ */ jsxRuntime.jsx(RenderBlocks, {
895
909
  get blocks() {
@@ -322,6 +322,13 @@ const useBlock$1 = function useBlock2(props, state) {
322
322
  shouldEvaluateBindings: true
323
323
  });
324
324
  };
325
+ const canShowBlock$1 = function canShowBlock2(props, state) {
326
+ if (checkIsDefined(useBlock$1(props).hide))
327
+ return !useBlock$1(props).hide;
328
+ if (checkIsDefined(useBlock$1(props).show))
329
+ return useBlock$1(props).show;
330
+ return true;
331
+ };
325
332
  const css = function css2(props, state) {
326
333
  const styles = useBlock$1(props).responsiveStyles;
327
334
  const content = props.context.content;
@@ -352,7 +359,7 @@ const css = function css2(props, state) {
352
359
  };
353
360
  const BlockStyles = (props) => {
354
361
  return /* @__PURE__ */ jsx(Fragment, {
355
- children: css(props) ? /* @__PURE__ */ jsx(RenderInlinedStyles, {
362
+ children: css(props) && canShowBlock$1(props) ? /* @__PURE__ */ jsx(RenderInlinedStyles, {
356
363
  styles: css(props)
357
364
  }, "LQ_0") : null,
358
365
  [_IMMUTABLE]: {
@@ -570,6 +577,13 @@ const useBlock = function useBlock22(props, state) {
570
577
  shouldEvaluateBindings: true
571
578
  });
572
579
  };
580
+ const canShowBlock = function canShowBlock22(props, state) {
581
+ if (checkIsDefined(useBlock(props).hide))
582
+ return !useBlock(props).hide;
583
+ if (checkIsDefined(useBlock(props).show))
584
+ return useBlock(props).show;
585
+ return true;
586
+ };
573
587
  const proxyState = function proxyState2(props, state) {
574
588
  if (typeof Proxy === "undefined") {
575
589
  console.error("no Proxy available in this environment, cannot proxy state.");
@@ -609,8 +623,7 @@ const renderComponentProps = function renderComponentProps2(props, state) {
609
623
  ...attributes(props),
610
624
  ...actions(props)
611
625
  }
612
- },
613
- customBreakpoints: childrenContext(props)?.content?.meta?.breakpoints
626
+ }
614
627
  },
615
628
  context: childrenContext(props)
616
629
  };
@@ -643,7 +656,7 @@ const RenderBlock = (props) => {
643
656
  const state = {};
644
657
  state.tag = tag(props);
645
658
  return /* @__PURE__ */ jsx(Fragment, {
646
- children: !component(props)?.noWrap ? /* @__PURE__ */ jsxs(Fragment, {
659
+ children: canShowBlock(props) ? !component(props)?.noWrap ? /* @__PURE__ */ jsxs(Fragment, {
647
660
  children: [
648
661
  isEmptyHtmlElement(tag(props)) ? /* @__PURE__ */ jsx(state.tag, {
649
662
  ...attributes(props),
@@ -690,7 +703,7 @@ const RenderBlock = (props) => {
690
703
  }
691
704
  }, "9d_1") : /* @__PURE__ */ jsx(RenderComponent, {
692
705
  ...renderComponentProps(props)
693
- }, "9d_2"),
706
+ }, "9d_2") : null,
694
707
  [_IMMUTABLE]: {
695
708
  children: false
696
709
  }
@@ -779,48 +792,48 @@ const STYLES$2 = `
779
792
  flex-direction: column;
780
793
  align-items: stretch;
781
794
  }`;
782
- const getGutterSize = function getGutterSize2(props, state) {
795
+ const getGutterSize = function getGutterSize2(props, state, builderContext2) {
783
796
  return typeof props.space === "number" ? props.space || 0 : 20;
784
797
  };
785
- const getColumns = function getColumns2(props, state) {
798
+ const getColumns = function getColumns2(props, state, builderContext2) {
786
799
  return props.columns || [];
787
800
  };
788
- const getWidth = function getWidth2(props, state, index) {
801
+ const getWidth = function getWidth2(props, state, builderContext2, index) {
789
802
  const columns = getColumns(props);
790
803
  return columns[index]?.width || 100 / columns.length;
791
804
  };
792
- const getColumnCssWidth = function getColumnCssWidth2(props, state, index) {
805
+ const getColumnCssWidth = function getColumnCssWidth2(props, state, builderContext2, index) {
793
806
  const columns = getColumns(props);
794
807
  const gutterSize = getGutterSize(props);
795
808
  const subtractWidth = gutterSize * (columns.length - 1) / columns.length;
796
- return `calc(${getWidth(props, state, index)}% - ${subtractWidth}px)`;
809
+ return `calc(${getWidth(props, state, builderContext2, index)}% - ${subtractWidth}px)`;
797
810
  };
798
- const maybeApplyForTablet = function maybeApplyForTablet2(props, state, prop) {
811
+ const maybeApplyForTablet = function maybeApplyForTablet2(props, state, builderContext2, prop) {
799
812
  const _stackColumnsAt = props.stackColumnsAt || "tablet";
800
813
  return _stackColumnsAt === "tablet" ? prop : "inherit";
801
814
  };
802
- const columnsCssVars = function columnsCssVars2(props, state) {
815
+ const columnsCssVars = function columnsCssVars2(props, state, builderContext2) {
803
816
  const flexDir = props.stackColumnsAt === "never" ? "inherit" : props.reverseColumnsWhenStacked ? "column-reverse" : "column";
804
817
  return {
805
818
  "--flex-dir": flexDir,
806
- "--flex-dir-tablet": maybeApplyForTablet(props, state, flexDir)
819
+ "--flex-dir-tablet": maybeApplyForTablet(props, state, builderContext2, flexDir)
807
820
  };
808
821
  };
809
- const columnCssVars = function columnCssVars2(props, state) {
822
+ const columnCssVars = function columnCssVars2(props, state, builderContext2) {
810
823
  const width = "100%";
811
824
  const marginLeft = "0";
812
825
  return {
813
826
  "--column-width": width,
814
827
  "--column-margin-left": marginLeft,
815
- "--column-width-tablet": maybeApplyForTablet(props, state, width),
816
- "--column-margin-left-tablet": maybeApplyForTablet(props, state, marginLeft)
828
+ "--column-width-tablet": maybeApplyForTablet(props, state, builderContext2, width),
829
+ "--column-margin-left-tablet": maybeApplyForTablet(props, state, builderContext2, marginLeft)
817
830
  };
818
831
  };
819
- const getWidthForBreakpointSize = function getWidthForBreakpointSize2(props, state, size) {
820
- const breakpointSizes = getSizesForBreakpoints(props.customBreakpoints || {});
832
+ const getWidthForBreakpointSize = function getWidthForBreakpointSize2(props, state, builderContext2, size) {
833
+ const breakpointSizes = getSizesForBreakpoints(builderContext2.content?.meta?.breakpoints || {});
821
834
  return breakpointSizes[size].max;
822
835
  };
823
- const columnStyleObjects = function columnStyleObjects2(props, state) {
836
+ const columnStyleObjects = function columnStyleObjects2(props, state, builderContext2) {
824
837
  return {
825
838
  columns: {
826
839
  small: {
@@ -844,9 +857,9 @@ const columnStyleObjects = function columnStyleObjects2(props, state) {
844
857
  }
845
858
  };
846
859
  };
847
- const columnsStyles = function columnsStyles2(props, state) {
860
+ const columnsStyles = function columnsStyles2(props, state, builderContext2) {
848
861
  return `
849
- @media (max-width: ${getWidthForBreakpointSize(props, state, "medium")}px) {
862
+ @media (max-width: ${getWidthForBreakpointSize(props, state, builderContext2, "medium")}px) {
850
863
  .${props.builderBlock.id}-breakpoints {
851
864
  ${convertStyleMapToCSS(columnStyleObjects().columns.medium)}
852
865
  }
@@ -856,7 +869,7 @@ const columnsStyles = function columnsStyles2(props, state) {
856
869
  }
857
870
  }
858
871
 
859
- @media (max-width: ${getWidthForBreakpointSize(props, state, "small")}px) {
872
+ @media (max-width: ${getWidthForBreakpointSize(props, state, builderContext2, "small")}px) {
860
873
  .${props.builderBlock.id}-breakpoints {
861
874
  ${convertStyleMapToCSS(columnStyleObjects().columns.small)}
862
875
  }
@@ -869,25 +882,26 @@ const columnsStyles = function columnsStyles2(props, state) {
869
882
  };
870
883
  const Columns = /* @__PURE__ */ componentQrl(inlinedQrl((props) => {
871
884
  useStylesScopedQrl(inlinedQrl(STYLES$1, "Columns_component_useStylesScoped_s7JLZz7MCCQ"));
885
+ const builderContext$1 = useContext(builderContext);
872
886
  const state = {};
873
887
  return /* @__PURE__ */ jsxs("div", {
874
888
  class: `builder-columns ${props.builderBlock.id}-breakpoints div-Columns`,
875
889
  style: {
876
890
  ...{},
877
- ...columnsCssVars(props, state)
891
+ ...columnsCssVars(props, state, builderContext$1)
878
892
  },
879
893
  children: [
880
894
  /* @__PURE__ */ jsx(RenderInlinedStyles, {
881
- styles: columnsStyles(props, state)
895
+ styles: columnsStyles(props, state, builderContext$1)
882
896
  }, "c0_0"),
883
897
  (props.columns || []).map(function(column, index) {
884
898
  return /* @__PURE__ */ jsx("div", {
885
899
  class: "builder-column div-Columns-2",
886
900
  style: {
887
- width: getColumnCssWidth(props, state, index),
901
+ width: getColumnCssWidth(props, state, builderContext$1, index),
888
902
  marginLeft: `${index === 0 ? 0 : getGutterSize(props)}px`,
889
903
  ...{},
890
- ...columnCssVars(props, state)
904
+ ...columnCssVars(props, state, builderContext$1)
891
905
  },
892
906
  children: /* @__PURE__ */ jsx(RenderBlocks, {
893
907
  get blocks() {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@builder.io/sdk-qwik",
3
- "version": "0.1.6",
3
+ "version": "0.1.8",
4
4
  "description": "Builder.io Qwik SDK",
5
5
  "type": "module",
6
6
  "main": "./lib/index.qwik.cjs",
@@ -1,6 +1,5 @@
1
1
  import type { BuilderBlock } from "../../types/builder-block";
2
2
  import type { SizeName } from "../../constants/device-sizes";
3
- import type { Breakpoints } from "../../types/builder-content";
4
3
  declare type Column = {
5
4
  blocks: any;
6
5
  width?: number;
@@ -12,25 +11,24 @@ export interface ColumnProps {
12
11
  space?: number;
13
12
  stackColumnsAt?: StackColumnsAt;
14
13
  reverseColumnsWhenStacked?: boolean;
15
- customBreakpoints?: Breakpoints;
16
14
  }
17
- export declare const getGutterSize: (props: any, state: any) => any;
18
- export declare const getColumns: (props: any, state: any) => any;
19
- export declare const getWidth: (props: any, state: any, index: number) => any;
20
- export declare const getColumnCssWidth: (props: any, state: any, index: number) => string;
21
- export declare const maybeApplyForTablet: (props: any, state: any, prop: string | undefined) => string | undefined;
22
- export declare const columnsCssVars: (props: any, state: any) => {
15
+ export declare const getGutterSize: (props: any, state: any, builderContext: any) => any;
16
+ export declare const getColumns: (props: any, state: any, builderContext: any) => any;
17
+ export declare const getWidth: (props: any, state: any, builderContext: any, index: number) => any;
18
+ export declare const getColumnCssWidth: (props: any, state: any, builderContext: any, index: number) => string;
19
+ export declare const maybeApplyForTablet: (props: any, state: any, builderContext: any, prop: string | undefined) => string | undefined;
20
+ export declare const columnsCssVars: (props: any, state: any, builderContext: any) => {
23
21
  "--flex-dir": string;
24
22
  "--flex-dir-tablet": string | undefined;
25
23
  };
26
- export declare const columnCssVars: (props: any, state: any) => {
24
+ export declare const columnCssVars: (props: any, state: any, builderContext: any) => {
27
25
  "--column-width": string;
28
26
  "--column-margin-left": string;
29
27
  "--column-width-tablet": string | undefined;
30
28
  "--column-margin-left-tablet": string | undefined;
31
29
  };
32
- export declare const getWidthForBreakpointSize: (props: any, state: any, size: SizeName) => number;
33
- export declare const columnStyleObjects: (props: any, state: any) => {
30
+ export declare const getWidthForBreakpointSize: (props: any, state: any, builderContext: any, size: SizeName) => number;
31
+ export declare const columnStyleObjects: (props: any, state: any, builderContext: any) => {
34
32
  columns: {
35
33
  small: {
36
34
  flexDirection: string;
@@ -52,12 +50,12 @@ export declare const columnStyleObjects: (props: any, state: any) => {
52
50
  };
53
51
  };
54
52
  };
55
- export declare const columnsStyles: (props: any, state: any) => string;
56
- export declare const reactNativeColumnsStyles: (props: any, state: any) => {
53
+ export declare const columnsStyles: (props: any, state: any, builderContext: any) => string;
54
+ export declare const reactNativeColumnsStyles: (props: any, state: any, builderContext: any) => {
57
55
  flexDirection: string;
58
56
  alignItems: string;
59
57
  };
60
- export declare const reactNativeColumnStyles: (props: any, state: any) => {
58
+ export declare const reactNativeColumnStyles: (props: any, state: any, builderContext: any) => {
61
59
  width: string;
62
60
  marginLeft: string;
63
61
  };
@@ -5,6 +5,7 @@ export declare type BlockStylesProps = {
5
5
  context: BuilderContextInterface;
6
6
  };
7
7
  export declare const useBlock: (props: any, state: any) => BuilderBlock;
8
+ export declare const canShowBlock: (props: any, state: any) => boolean | undefined;
8
9
  export declare const css: (props: any, state: any) => string;
9
10
  export declare const BlockStyles: (props: BlockStylesProps & {
10
11
  key?: any;
@@ -7,6 +7,7 @@ export declare type RenderBlockProps = {
7
7
  export declare const component: (props: any, state: any) => import("../../context/types.js").RegisteredComponent | null | undefined;
8
8
  export declare const tag: (props: any, state: any) => string;
9
9
  export declare const useBlock: (props: any, state: any) => any;
10
+ export declare const canShowBlock: (props: any, state: any) => any;
10
11
  export declare const proxyState: (props: any, state: any) => any;
11
12
  export declare const actions: (props: any, state: any) => {
12
13
  [index: string]: (event: Event) => any;
@@ -1,9 +1,7 @@
1
1
  import type { BuilderBlock } from "../../types/builder-block.js";
2
2
  import type { BuilderContextInterface } from "../../context/types.js";
3
- import type { Breakpoints } from "../../types/builder-content.js";
4
3
  declare type ComponentOptions = {
5
4
  [index: string]: any;
6
- customBreakpoints?: Breakpoints;
7
5
  attributes?: {
8
6
  [index: string]: any;
9
7
  };
@@ -13,7 +11,6 @@ export interface RenderComponentProps {
13
11
  componentOptions: ComponentOptions;
14
12
  blockChildren: BuilderBlock[];
15
13
  context: BuilderContextInterface;
16
- customBreakpoints?: Breakpoints;
17
14
  }
18
15
  export declare const RenderComponent: (props: RenderComponentProps & {
19
16
  key?: any;
@@ -54,5 +54,13 @@ export interface BuilderBlock {
54
54
  } | null;
55
55
  animations?: any[];
56
56
  style?: Partial<CSSStyleDeclaration>;
57
+ /**
58
+ * generated by the "Hide If" binding
59
+ */
60
+ hide?: boolean;
61
+ /**
62
+ * generated by the "Show If" binding
63
+ */
64
+ show?: boolean;
57
65
  }
58
66
  export {};