@builder.io/sdk-qwik 0.11.2 → 0.11.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/lib/browser/index.qwik.cjs +272 -256
- package/lib/browser/index.qwik.mjs +272 -256
- package/lib/edge/index.qwik.cjs +272 -256
- package/lib/edge/index.qwik.mjs +272 -256
- package/lib/node/index.qwik.cjs +272 -256
- package/lib/node/index.qwik.mjs +272 -256
- package/package.json +1 -1
- package/types/src/blocks/button/button.d.ts +1 -9
- package/types/src/blocks/button/button.types.d.ts +6 -0
- package/types/src/blocks/columns/columns.d.ts +2 -14
- package/types/src/blocks/columns/columns.types.d.ts +15 -0
- package/types/src/blocks/fragment/fragment.d.ts +1 -5
- package/types/src/blocks/fragment/fragment.types.d.ts +5 -0
- package/types/src/blocks/image/image.d.ts +1 -19
- package/types/src/blocks/image/image.types.d.ts +19 -0
- package/types/src/blocks/section/section.d.ts +1 -9
- package/types/src/blocks/section/section.types.d.ts +6 -0
- package/types/src/blocks/symbol/symbol.d.ts +2 -23
- package/types/src/blocks/symbol/symbol.types.d.ts +18 -0
- package/types/src/blocks/text/text.d.ts +1 -3
- package/types/src/blocks/text/text.types.d.ts +3 -0
- package/types/src/blocks/video/video.d.ts +1 -21
- package/types/src/blocks/video/video.types.d.ts +21 -0
- package/types/src/components/blocks/blocks.d.ts +1 -6
- package/types/src/components/blocks/blocks.types.d.ts +6 -0
- package/types/src/components/content/components/enable-editor.d.ts +3 -1
- package/types/src/components/content/content.helpers.d.ts +1 -1
- package/types/src/components/content-variants/content-variants.types.d.ts +30 -1
- package/types/src/constants/sdk-version.d.ts +1 -1
- package/types/src/functions/get-content/index.d.ts +1 -1
- package/types/src/functions/get-content/types.d.ts +2 -2
- package/types/src/index-helpers/blocks-exports.d.ts +2 -2
- package/types/src/server-index.d.ts +10 -1
|
@@ -632,40 +632,25 @@ const ComponentRef = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inli
|
|
|
632
632
|
isInteractive: props.isInteractive,
|
|
633
633
|
contextValue: props.context
|
|
634
634
|
}),
|
|
635
|
-
children: [
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
}),
|
|
655
|
-
(props.blockChildren || []).map((child) => {
|
|
656
|
-
return /* @__PURE__ */ qwik._jsxC(BlockStyles, {
|
|
657
|
-
block: child,
|
|
658
|
-
get context() {
|
|
659
|
-
return props.context;
|
|
660
|
-
},
|
|
661
|
-
[qwik._IMMUTABLE]: {
|
|
662
|
-
context: qwik._fnSignal((p0) => p0.context, [
|
|
663
|
-
props
|
|
664
|
-
], "p0.context")
|
|
665
|
-
}
|
|
666
|
-
}, 3, "block-style-" + child.id);
|
|
667
|
-
})
|
|
668
|
-
]
|
|
635
|
+
children: (props.blockChildren || []).map((child) => {
|
|
636
|
+
return /* @__PURE__ */ qwik._jsxC(Block, {
|
|
637
|
+
block: child,
|
|
638
|
+
get context() {
|
|
639
|
+
return props.context;
|
|
640
|
+
},
|
|
641
|
+
get registeredComponents() {
|
|
642
|
+
return props.registeredComponents;
|
|
643
|
+
},
|
|
644
|
+
[qwik._IMMUTABLE]: {
|
|
645
|
+
context: qwik._fnSignal((p0) => p0.context, [
|
|
646
|
+
props
|
|
647
|
+
], "p0.context"),
|
|
648
|
+
registeredComponents: qwik._fnSignal((p0) => p0.registeredComponents, [
|
|
649
|
+
props
|
|
650
|
+
], "p0.registeredComponents")
|
|
651
|
+
}
|
|
652
|
+
}, 3, child.id);
|
|
653
|
+
})
|
|
669
654
|
}, 0, "z6_0") : null
|
|
670
655
|
}, 1, "z6_1");
|
|
671
656
|
}, "ComponentRef_component_tFQoBV6UFdc"));
|
|
@@ -794,216 +779,223 @@ const Block = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inlinedQrl(
|
|
|
794
779
|
state
|
|
795
780
|
]));
|
|
796
781
|
return /* @__PURE__ */ qwik._jsxC(jsxRuntime.Fragment, {
|
|
797
|
-
children: canShowBlock.value ?
|
|
782
|
+
children: canShowBlock.value ? /* @__PURE__ */ qwik._jsxC(jsxRuntime.Fragment, {
|
|
798
783
|
children: [
|
|
799
|
-
|
|
800
|
-
get Wrapper() {
|
|
801
|
-
return Tag.value;
|
|
802
|
-
},
|
|
784
|
+
/* @__PURE__ */ qwik._jsxC(BlockStyles, {
|
|
803
785
|
get block() {
|
|
804
|
-
return
|
|
786
|
+
return props.block;
|
|
805
787
|
},
|
|
806
788
|
get context() {
|
|
807
789
|
return props.context;
|
|
808
790
|
},
|
|
809
|
-
hasChildren: false,
|
|
810
791
|
[qwik._IMMUTABLE]: {
|
|
811
|
-
|
|
812
|
-
|
|
813
|
-
], "p0.
|
|
814
|
-
block: qwik._fnSignal((p0) => p0.value, [
|
|
815
|
-
processedBlock
|
|
816
|
-
], "p0.value"),
|
|
792
|
+
block: qwik._fnSignal((p0) => p0.block, [
|
|
793
|
+
props
|
|
794
|
+
], "p0.block"),
|
|
817
795
|
context: qwik._fnSignal((p0) => p0.context, [
|
|
818
796
|
props
|
|
819
|
-
], "p0.context")
|
|
820
|
-
hasChildren: qwik._IMMUTABLE
|
|
797
|
+
], "p0.context")
|
|
821
798
|
}
|
|
822
|
-
}, 3, "jN_0")
|
|
823
|
-
!
|
|
824
|
-
return /* @__PURE__ */ qwik._jsxC(RepeatedBlock, {
|
|
825
|
-
get repeatContext() {
|
|
826
|
-
return data.context;
|
|
827
|
-
},
|
|
828
|
-
get block() {
|
|
829
|
-
return data.block;
|
|
830
|
-
},
|
|
831
|
-
get registeredComponents() {
|
|
832
|
-
return props.registeredComponents;
|
|
833
|
-
},
|
|
834
|
-
[qwik._IMMUTABLE]: {
|
|
835
|
-
block: qwik._wrapProp(data, "block"),
|
|
836
|
-
registeredComponents: qwik._fnSignal((p0) => p0.registeredComponents, [
|
|
837
|
-
props
|
|
838
|
-
], "p0.registeredComponents"),
|
|
839
|
-
repeatContext: qwik._wrapProp(data, "context")
|
|
840
|
-
}
|
|
841
|
-
}, 3, index);
|
|
842
|
-
}) : null,
|
|
843
|
-
!isEmptyHtmlElement(Tag.value) && !repeatItem.value ? /* @__PURE__ */ qwik._jsxC(BlockWrapper, {
|
|
844
|
-
get Wrapper() {
|
|
845
|
-
return Tag.value;
|
|
846
|
-
},
|
|
847
|
-
get block() {
|
|
848
|
-
return processedBlock.value;
|
|
849
|
-
},
|
|
850
|
-
get context() {
|
|
851
|
-
return props.context;
|
|
852
|
-
},
|
|
799
|
+
}, 3, "jN_0"),
|
|
800
|
+
!((_a = blockComponent.value) == null ? void 0 : _a.noWrap) ? /* @__PURE__ */ qwik._jsxC(jsxRuntime.Fragment, {
|
|
853
801
|
children: [
|
|
854
|
-
/* @__PURE__ */ qwik._jsxC(
|
|
855
|
-
get
|
|
856
|
-
return
|
|
802
|
+
isEmptyHtmlElement(Tag.value) ? /* @__PURE__ */ qwik._jsxC(BlockWrapper, {
|
|
803
|
+
get Wrapper() {
|
|
804
|
+
return Tag.value;
|
|
857
805
|
},
|
|
858
|
-
get
|
|
859
|
-
return
|
|
860
|
-
},
|
|
861
|
-
get blockChildren() {
|
|
862
|
-
return componentRefProps.value.blockChildren;
|
|
806
|
+
get block() {
|
|
807
|
+
return processedBlock.value;
|
|
863
808
|
},
|
|
864
809
|
get context() {
|
|
865
|
-
return
|
|
866
|
-
},
|
|
867
|
-
get registeredComponents() {
|
|
868
|
-
return componentRefProps.value.registeredComponents;
|
|
869
|
-
},
|
|
870
|
-
get builderBlock() {
|
|
871
|
-
return componentRefProps.value.builderBlock;
|
|
872
|
-
},
|
|
873
|
-
get includeBlockProps() {
|
|
874
|
-
return componentRefProps.value.includeBlockProps;
|
|
875
|
-
},
|
|
876
|
-
get isInteractive() {
|
|
877
|
-
return componentRefProps.value.isInteractive;
|
|
810
|
+
return props.context;
|
|
878
811
|
},
|
|
812
|
+
hasChildren: false,
|
|
879
813
|
[qwik._IMMUTABLE]: {
|
|
880
|
-
|
|
881
|
-
|
|
882
|
-
], "p0.value
|
|
883
|
-
|
|
884
|
-
|
|
885
|
-
], "p0.value
|
|
886
|
-
|
|
887
|
-
|
|
888
|
-
], "p0.
|
|
889
|
-
|
|
890
|
-
componentRefProps
|
|
891
|
-
], "p0.value.componentRef"),
|
|
892
|
-
context: qwik._fnSignal((p0) => p0.value.context, [
|
|
893
|
-
componentRefProps
|
|
894
|
-
], "p0.value.context"),
|
|
895
|
-
includeBlockProps: qwik._fnSignal((p0) => p0.value.includeBlockProps, [
|
|
896
|
-
componentRefProps
|
|
897
|
-
], "p0.value.includeBlockProps"),
|
|
898
|
-
isInteractive: qwik._fnSignal((p0) => p0.value.isInteractive, [
|
|
899
|
-
componentRefProps
|
|
900
|
-
], "p0.value.isInteractive"),
|
|
901
|
-
registeredComponents: qwik._fnSignal((p0) => p0.value.registeredComponents, [
|
|
902
|
-
componentRefProps
|
|
903
|
-
], "p0.value.registeredComponents")
|
|
814
|
+
Wrapper: qwik._fnSignal((p0) => p0.value, [
|
|
815
|
+
Tag
|
|
816
|
+
], "p0.value"),
|
|
817
|
+
block: qwik._fnSignal((p0) => p0.value, [
|
|
818
|
+
processedBlock
|
|
819
|
+
], "p0.value"),
|
|
820
|
+
context: qwik._fnSignal((p0) => p0.context, [
|
|
821
|
+
props
|
|
822
|
+
], "p0.context"),
|
|
823
|
+
hasChildren: qwik._IMMUTABLE
|
|
904
824
|
}
|
|
905
|
-
}, 3, "jN_1"),
|
|
906
|
-
(
|
|
907
|
-
return /* @__PURE__ */ qwik._jsxC(
|
|
908
|
-
|
|
909
|
-
|
|
910
|
-
|
|
825
|
+
}, 3, "jN_1") : null,
|
|
826
|
+
!isEmptyHtmlElement(Tag.value) && repeatItem.value ? (repeatItem.value || []).map((data, index) => {
|
|
827
|
+
return /* @__PURE__ */ qwik._jsxC(RepeatedBlock, {
|
|
828
|
+
get repeatContext() {
|
|
829
|
+
return data.context;
|
|
830
|
+
},
|
|
831
|
+
get block() {
|
|
832
|
+
return data.block;
|
|
911
833
|
},
|
|
912
834
|
get registeredComponents() {
|
|
913
835
|
return props.registeredComponents;
|
|
914
836
|
},
|
|
915
837
|
[qwik._IMMUTABLE]: {
|
|
916
|
-
|
|
917
|
-
state
|
|
918
|
-
], "p0.childrenContext"),
|
|
838
|
+
block: qwik._wrapProp(data, "block"),
|
|
919
839
|
registeredComponents: qwik._fnSignal((p0) => p0.registeredComponents, [
|
|
920
840
|
props
|
|
921
|
-
], "p0.registeredComponents")
|
|
841
|
+
], "p0.registeredComponents"),
|
|
842
|
+
repeatContext: qwik._wrapProp(data, "context")
|
|
922
843
|
}
|
|
923
|
-
}, 3,
|
|
924
|
-
}),
|
|
925
|
-
(
|
|
926
|
-
|
|
927
|
-
|
|
928
|
-
|
|
929
|
-
|
|
930
|
-
|
|
931
|
-
|
|
932
|
-
|
|
933
|
-
|
|
934
|
-
|
|
935
|
-
|
|
936
|
-
|
|
937
|
-
|
|
938
|
-
|
|
939
|
-
|
|
844
|
+
}, 3, index);
|
|
845
|
+
}) : null,
|
|
846
|
+
!isEmptyHtmlElement(Tag.value) && !repeatItem.value ? /* @__PURE__ */ qwik._jsxC(BlockWrapper, {
|
|
847
|
+
get Wrapper() {
|
|
848
|
+
return Tag.value;
|
|
849
|
+
},
|
|
850
|
+
get block() {
|
|
851
|
+
return processedBlock.value;
|
|
852
|
+
},
|
|
853
|
+
get context() {
|
|
854
|
+
return props.context;
|
|
855
|
+
},
|
|
856
|
+
children: [
|
|
857
|
+
/* @__PURE__ */ qwik._jsxC(ComponentRef, {
|
|
858
|
+
get componentRef() {
|
|
859
|
+
return componentRefProps.value.componentRef;
|
|
860
|
+
},
|
|
861
|
+
get componentOptions() {
|
|
862
|
+
return componentRefProps.value.componentOptions;
|
|
863
|
+
},
|
|
864
|
+
get blockChildren() {
|
|
865
|
+
return componentRefProps.value.blockChildren;
|
|
866
|
+
},
|
|
867
|
+
get context() {
|
|
868
|
+
return componentRefProps.value.context;
|
|
869
|
+
},
|
|
870
|
+
get registeredComponents() {
|
|
871
|
+
return componentRefProps.value.registeredComponents;
|
|
872
|
+
},
|
|
873
|
+
get builderBlock() {
|
|
874
|
+
return componentRefProps.value.builderBlock;
|
|
875
|
+
},
|
|
876
|
+
get includeBlockProps() {
|
|
877
|
+
return componentRefProps.value.includeBlockProps;
|
|
878
|
+
},
|
|
879
|
+
get isInteractive() {
|
|
880
|
+
return componentRefProps.value.isInteractive;
|
|
881
|
+
},
|
|
882
|
+
[qwik._IMMUTABLE]: {
|
|
883
|
+
blockChildren: qwik._fnSignal((p0) => p0.value.blockChildren, [
|
|
884
|
+
componentRefProps
|
|
885
|
+
], "p0.value.blockChildren"),
|
|
886
|
+
builderBlock: qwik._fnSignal((p0) => p0.value.builderBlock, [
|
|
887
|
+
componentRefProps
|
|
888
|
+
], "p0.value.builderBlock"),
|
|
889
|
+
componentOptions: qwik._fnSignal((p0) => p0.value.componentOptions, [
|
|
890
|
+
componentRefProps
|
|
891
|
+
], "p0.value.componentOptions"),
|
|
892
|
+
componentRef: qwik._fnSignal((p0) => p0.value.componentRef, [
|
|
893
|
+
componentRefProps
|
|
894
|
+
], "p0.value.componentRef"),
|
|
895
|
+
context: qwik._fnSignal((p0) => p0.value.context, [
|
|
896
|
+
componentRefProps
|
|
897
|
+
], "p0.value.context"),
|
|
898
|
+
includeBlockProps: qwik._fnSignal((p0) => p0.value.includeBlockProps, [
|
|
899
|
+
componentRefProps
|
|
900
|
+
], "p0.value.includeBlockProps"),
|
|
901
|
+
isInteractive: qwik._fnSignal((p0) => p0.value.isInteractive, [
|
|
902
|
+
componentRefProps
|
|
903
|
+
], "p0.value.isInteractive"),
|
|
904
|
+
registeredComponents: qwik._fnSignal((p0) => p0.value.registeredComponents, [
|
|
905
|
+
componentRefProps
|
|
906
|
+
], "p0.value.registeredComponents")
|
|
907
|
+
}
|
|
908
|
+
}, 3, "jN_2"),
|
|
909
|
+
(childrenWithoutParentComponent.value || []).map((child) => {
|
|
910
|
+
return /* @__PURE__ */ qwik._jsxC(Block, {
|
|
911
|
+
block: child,
|
|
912
|
+
get context() {
|
|
913
|
+
return state.childrenContext;
|
|
914
|
+
},
|
|
915
|
+
get registeredComponents() {
|
|
916
|
+
return props.registeredComponents;
|
|
917
|
+
},
|
|
918
|
+
[qwik._IMMUTABLE]: {
|
|
919
|
+
context: qwik._fnSignal((p0) => p0.childrenContext, [
|
|
920
|
+
state
|
|
921
|
+
], "p0.childrenContext"),
|
|
922
|
+
registeredComponents: qwik._fnSignal((p0) => p0.registeredComponents, [
|
|
923
|
+
props
|
|
924
|
+
], "p0.registeredComponents")
|
|
925
|
+
}
|
|
926
|
+
}, 3, child.id);
|
|
927
|
+
})
|
|
928
|
+
],
|
|
929
|
+
hasChildren: true,
|
|
930
|
+
[qwik._IMMUTABLE]: {
|
|
931
|
+
Wrapper: qwik._fnSignal((p0) => p0.value, [
|
|
932
|
+
Tag
|
|
933
|
+
], "p0.value"),
|
|
934
|
+
block: qwik._fnSignal((p0) => p0.value, [
|
|
935
|
+
processedBlock
|
|
936
|
+
], "p0.value"),
|
|
937
|
+
context: qwik._fnSignal((p0) => p0.context, [
|
|
938
|
+
props
|
|
939
|
+
], "p0.context"),
|
|
940
|
+
hasChildren: qwik._IMMUTABLE
|
|
941
|
+
}
|
|
942
|
+
}, 1, "jN_3") : null
|
|
943
|
+
]
|
|
944
|
+
}, 1, "jN_4") : /* @__PURE__ */ qwik._jsxC(ComponentRef, {
|
|
945
|
+
get componentRef() {
|
|
946
|
+
return componentRefProps.value.componentRef;
|
|
947
|
+
},
|
|
948
|
+
get componentOptions() {
|
|
949
|
+
return componentRefProps.value.componentOptions;
|
|
950
|
+
},
|
|
951
|
+
get blockChildren() {
|
|
952
|
+
return componentRefProps.value.blockChildren;
|
|
953
|
+
},
|
|
954
|
+
get context() {
|
|
955
|
+
return componentRefProps.value.context;
|
|
956
|
+
},
|
|
957
|
+
get registeredComponents() {
|
|
958
|
+
return componentRefProps.value.registeredComponents;
|
|
959
|
+
},
|
|
960
|
+
get builderBlock() {
|
|
961
|
+
return componentRefProps.value.builderBlock;
|
|
962
|
+
},
|
|
963
|
+
get includeBlockProps() {
|
|
964
|
+
return componentRefProps.value.includeBlockProps;
|
|
965
|
+
},
|
|
966
|
+
get isInteractive() {
|
|
967
|
+
return componentRefProps.value.isInteractive;
|
|
968
|
+
},
|
|
940
969
|
[qwik._IMMUTABLE]: {
|
|
941
|
-
|
|
942
|
-
|
|
943
|
-
], "p0.value"),
|
|
944
|
-
|
|
945
|
-
|
|
946
|
-
], "p0.value"),
|
|
947
|
-
|
|
948
|
-
|
|
949
|
-
], "p0.
|
|
950
|
-
|
|
970
|
+
blockChildren: qwik._fnSignal((p0) => p0.value.blockChildren, [
|
|
971
|
+
componentRefProps
|
|
972
|
+
], "p0.value.blockChildren"),
|
|
973
|
+
builderBlock: qwik._fnSignal((p0) => p0.value.builderBlock, [
|
|
974
|
+
componentRefProps
|
|
975
|
+
], "p0.value.builderBlock"),
|
|
976
|
+
componentOptions: qwik._fnSignal((p0) => p0.value.componentOptions, [
|
|
977
|
+
componentRefProps
|
|
978
|
+
], "p0.value.componentOptions"),
|
|
979
|
+
componentRef: qwik._fnSignal((p0) => p0.value.componentRef, [
|
|
980
|
+
componentRefProps
|
|
981
|
+
], "p0.value.componentRef"),
|
|
982
|
+
context: qwik._fnSignal((p0) => p0.value.context, [
|
|
983
|
+
componentRefProps
|
|
984
|
+
], "p0.value.context"),
|
|
985
|
+
includeBlockProps: qwik._fnSignal((p0) => p0.value.includeBlockProps, [
|
|
986
|
+
componentRefProps
|
|
987
|
+
], "p0.value.includeBlockProps"),
|
|
988
|
+
isInteractive: qwik._fnSignal((p0) => p0.value.isInteractive, [
|
|
989
|
+
componentRefProps
|
|
990
|
+
], "p0.value.isInteractive"),
|
|
991
|
+
registeredComponents: qwik._fnSignal((p0) => p0.value.registeredComponents, [
|
|
992
|
+
componentRefProps
|
|
993
|
+
], "p0.value.registeredComponents")
|
|
951
994
|
}
|
|
952
|
-
},
|
|
995
|
+
}, 3, "jN_5")
|
|
953
996
|
]
|
|
954
|
-
}, 1, "
|
|
955
|
-
|
|
956
|
-
return componentRefProps.value.componentRef;
|
|
957
|
-
},
|
|
958
|
-
get componentOptions() {
|
|
959
|
-
return componentRefProps.value.componentOptions;
|
|
960
|
-
},
|
|
961
|
-
get blockChildren() {
|
|
962
|
-
return componentRefProps.value.blockChildren;
|
|
963
|
-
},
|
|
964
|
-
get context() {
|
|
965
|
-
return componentRefProps.value.context;
|
|
966
|
-
},
|
|
967
|
-
get registeredComponents() {
|
|
968
|
-
return componentRefProps.value.registeredComponents;
|
|
969
|
-
},
|
|
970
|
-
get builderBlock() {
|
|
971
|
-
return componentRefProps.value.builderBlock;
|
|
972
|
-
},
|
|
973
|
-
get includeBlockProps() {
|
|
974
|
-
return componentRefProps.value.includeBlockProps;
|
|
975
|
-
},
|
|
976
|
-
get isInteractive() {
|
|
977
|
-
return componentRefProps.value.isInteractive;
|
|
978
|
-
},
|
|
979
|
-
[qwik._IMMUTABLE]: {
|
|
980
|
-
blockChildren: qwik._fnSignal((p0) => p0.value.blockChildren, [
|
|
981
|
-
componentRefProps
|
|
982
|
-
], "p0.value.blockChildren"),
|
|
983
|
-
builderBlock: qwik._fnSignal((p0) => p0.value.builderBlock, [
|
|
984
|
-
componentRefProps
|
|
985
|
-
], "p0.value.builderBlock"),
|
|
986
|
-
componentOptions: qwik._fnSignal((p0) => p0.value.componentOptions, [
|
|
987
|
-
componentRefProps
|
|
988
|
-
], "p0.value.componentOptions"),
|
|
989
|
-
componentRef: qwik._fnSignal((p0) => p0.value.componentRef, [
|
|
990
|
-
componentRefProps
|
|
991
|
-
], "p0.value.componentRef"),
|
|
992
|
-
context: qwik._fnSignal((p0) => p0.value.context, [
|
|
993
|
-
componentRefProps
|
|
994
|
-
], "p0.value.context"),
|
|
995
|
-
includeBlockProps: qwik._fnSignal((p0) => p0.value.includeBlockProps, [
|
|
996
|
-
componentRefProps
|
|
997
|
-
], "p0.value.includeBlockProps"),
|
|
998
|
-
isInteractive: qwik._fnSignal((p0) => p0.value.isInteractive, [
|
|
999
|
-
componentRefProps
|
|
1000
|
-
], "p0.value.isInteractive"),
|
|
1001
|
-
registeredComponents: qwik._fnSignal((p0) => p0.value.registeredComponents, [
|
|
1002
|
-
componentRefProps
|
|
1003
|
-
], "p0.value.registeredComponents")
|
|
1004
|
-
}
|
|
1005
|
-
}, 3, "jN_4") : null
|
|
1006
|
-
}, 1, "jN_5");
|
|
997
|
+
}, 1, "jN_6") : null
|
|
998
|
+
}, 1, "jN_7");
|
|
1007
999
|
}, "Block_component_nnPv0RY0U0k"));
|
|
1008
1000
|
const onClick$1 = function onClick2(props, state) {
|
|
1009
1001
|
var _a, _b;
|
|
@@ -1120,43 +1112,27 @@ const Blocks = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inlinedQrl
|
|
|
1120
1112
|
var _a;
|
|
1121
1113
|
return (_a = props.context) == null ? void 0 : _a.BlocksWrapperProps;
|
|
1122
1114
|
},
|
|
1123
|
-
children: [
|
|
1124
|
-
|
|
1125
|
-
|
|
1126
|
-
|
|
1127
|
-
|
|
1128
|
-
|
|
1129
|
-
|
|
1130
|
-
|
|
1131
|
-
|
|
1132
|
-
|
|
1133
|
-
|
|
1134
|
-
|
|
1135
|
-
|
|
1136
|
-
|
|
1137
|
-
|
|
1138
|
-
|
|
1139
|
-
|
|
1140
|
-
|
|
1141
|
-
|
|
1142
|
-
|
|
1143
|
-
|
|
1144
|
-
}) : null,
|
|
1145
|
-
props.blocks ? (props.blocks || []).map((block) => {
|
|
1146
|
-
return /* @__PURE__ */ qwik._jsxC(BlockStyles, {
|
|
1147
|
-
block,
|
|
1148
|
-
get context() {
|
|
1149
|
-
return props.context || builderContext$1;
|
|
1150
|
-
},
|
|
1151
|
-
[qwik._IMMUTABLE]: {
|
|
1152
|
-
context: qwik._fnSignal((p0, p1) => p1.context || p0, [
|
|
1153
|
-
builderContext$1,
|
|
1154
|
-
props
|
|
1155
|
-
], "p1.context||p0")
|
|
1156
|
-
}
|
|
1157
|
-
}, 3, "block-style-" + block.id);
|
|
1158
|
-
}) : null
|
|
1159
|
-
],
|
|
1115
|
+
children: props.blocks ? (props.blocks || []).map((block) => {
|
|
1116
|
+
return /* @__PURE__ */ qwik._jsxC(Block, {
|
|
1117
|
+
block,
|
|
1118
|
+
get context() {
|
|
1119
|
+
return props.context || builderContext$1;
|
|
1120
|
+
},
|
|
1121
|
+
get registeredComponents() {
|
|
1122
|
+
return props.registeredComponents || componentsContext.registeredComponents;
|
|
1123
|
+
},
|
|
1124
|
+
[qwik._IMMUTABLE]: {
|
|
1125
|
+
context: qwik._fnSignal((p0, p1) => p1.context || p0, [
|
|
1126
|
+
builderContext$1,
|
|
1127
|
+
props
|
|
1128
|
+
], "p1.context||p0"),
|
|
1129
|
+
registeredComponents: qwik._fnSignal((p0, p1) => p1.registeredComponents || p0.registeredComponents, [
|
|
1130
|
+
componentsContext,
|
|
1131
|
+
props
|
|
1132
|
+
], "p1.registeredComponents||p0.registeredComponents")
|
|
1133
|
+
}
|
|
1134
|
+
}, 3, block.id);
|
|
1135
|
+
}) : null,
|
|
1160
1136
|
[qwik._IMMUTABLE]: {
|
|
1161
1137
|
BlocksWrapper: qwik._fnSignal((p0) => {
|
|
1162
1138
|
var _a;
|
|
@@ -3206,7 +3182,7 @@ const getInteractionPropertiesForEvent = (event) => {
|
|
|
3206
3182
|
}
|
|
3207
3183
|
};
|
|
3208
3184
|
};
|
|
3209
|
-
const SDK_VERSION = "0.11.
|
|
3185
|
+
const SDK_VERSION = "0.11.4";
|
|
3210
3186
|
const registry = {};
|
|
3211
3187
|
function register(type, info) {
|
|
3212
3188
|
let typeList = registry[type];
|
|
@@ -3339,6 +3315,17 @@ const setupBrowserForEditing = (options = {}) => {
|
|
|
3339
3315
|
});
|
|
3340
3316
|
}
|
|
3341
3317
|
};
|
|
3318
|
+
const mergeNewRootState = function mergeNewRootState2(props, state, elementRef, newData) {
|
|
3319
|
+
var _a, _b;
|
|
3320
|
+
const combinedState = {
|
|
3321
|
+
...props.builderContextSignal.rootState,
|
|
3322
|
+
...newData
|
|
3323
|
+
};
|
|
3324
|
+
if (props.builderContextSignal.rootSetState)
|
|
3325
|
+
(_b = (_a = props.builderContextSignal).rootSetState) == null ? void 0 : _b.call(_a, combinedState);
|
|
3326
|
+
else
|
|
3327
|
+
props.builderContextSignal.rootState = combinedState;
|
|
3328
|
+
};
|
|
3342
3329
|
const mergeNewContent = function mergeNewContent2(props, state, elementRef, newContent) {
|
|
3343
3330
|
var _a, _b, _c, _d, _e;
|
|
3344
3331
|
const newContentValue = {
|
|
@@ -3470,6 +3457,7 @@ const EnableEditor = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inli
|
|
|
3470
3457
|
const state = qwik.useStore({
|
|
3471
3458
|
ContentWrapper: props.contentWrapper || "div",
|
|
3472
3459
|
clicked: false,
|
|
3460
|
+
firstRender: true,
|
|
3473
3461
|
forceReRenderCount: 0,
|
|
3474
3462
|
httpReqsData: {},
|
|
3475
3463
|
lastUpdated: 0,
|
|
@@ -3609,6 +3597,28 @@ const EnableEditor = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inli
|
|
|
3609
3597
|
props,
|
|
3610
3598
|
state
|
|
3611
3599
|
]));
|
|
3600
|
+
qwik.useTaskQrl(/* @__PURE__ */ qwik.inlinedQrl(({ track: track2 }) => {
|
|
3601
|
+
const [elementRef2, props2, state2] = qwik.useLexicalScope();
|
|
3602
|
+
track2(() => props2.data);
|
|
3603
|
+
if (props2.data)
|
|
3604
|
+
mergeNewRootState(props2, state2, elementRef2, props2.data);
|
|
3605
|
+
}, "EnableEditor_component_useTask_6_0CaFTUOgv08", [
|
|
3606
|
+
elementRef,
|
|
3607
|
+
props,
|
|
3608
|
+
state
|
|
3609
|
+
]));
|
|
3610
|
+
qwik.useTaskQrl(/* @__PURE__ */ qwik.inlinedQrl(({ track: track2 }) => {
|
|
3611
|
+
const [elementRef2, props2, state2] = qwik.useLexicalScope();
|
|
3612
|
+
track2(() => props2.locale);
|
|
3613
|
+
if (props2.locale)
|
|
3614
|
+
mergeNewRootState(props2, state2, elementRef2, {
|
|
3615
|
+
locale: props2.locale
|
|
3616
|
+
});
|
|
3617
|
+
}, "EnableEditor_component_useTask_7_Zh51H45HHnM", [
|
|
3618
|
+
elementRef,
|
|
3619
|
+
props,
|
|
3620
|
+
state
|
|
3621
|
+
]));
|
|
3612
3622
|
return /* @__PURE__ */ qwik._jsxC(jsxRuntime.Fragment, {
|
|
3613
3623
|
children: props.builderContextSignal.content ? /* @__PURE__ */ qwik.createElement(state.ContentWrapper, {
|
|
3614
3624
|
apiKey: props.apiKey,
|
|
@@ -3716,7 +3726,7 @@ ${getFontCss({
|
|
|
3716
3726
|
}
|
|
3717
3727
|
}, 3, "8O_0");
|
|
3718
3728
|
}, "ContentStyles_component_Qbhu1myPWm0"));
|
|
3719
|
-
const
|
|
3729
|
+
const getRootStateInitialValue = ({ content, data, locale }) => {
|
|
3720
3730
|
var _a, _b, _c;
|
|
3721
3731
|
const defaultValues = {};
|
|
3722
3732
|
const initialState = ((_a = content == null ? void 0 : content.data) == null ? void 0 : _a.state) || {};
|
|
@@ -3753,7 +3763,7 @@ const ContentComponent = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.
|
|
|
3753
3763
|
data: props.data
|
|
3754
3764
|
}),
|
|
3755
3765
|
localState: void 0,
|
|
3756
|
-
rootState:
|
|
3766
|
+
rootState: getRootStateInitialValue({
|
|
3757
3767
|
content: props.content,
|
|
3758
3768
|
data: props.data,
|
|
3759
3769
|
locale: props.locale
|
|
@@ -3811,6 +3821,9 @@ const ContentComponent = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.
|
|
|
3811
3821
|
get content() {
|
|
3812
3822
|
return props.content;
|
|
3813
3823
|
},
|
|
3824
|
+
get data() {
|
|
3825
|
+
return props.data;
|
|
3826
|
+
},
|
|
3814
3827
|
get model() {
|
|
3815
3828
|
return props.model;
|
|
3816
3829
|
},
|
|
@@ -3938,6 +3951,9 @@ const ContentComponent = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.
|
|
|
3938
3951
|
context: qwik._fnSignal((p0) => p0.context, [
|
|
3939
3952
|
props
|
|
3940
3953
|
], "p0.context"),
|
|
3954
|
+
data: qwik._fnSignal((p0) => p0.data, [
|
|
3955
|
+
props
|
|
3956
|
+
], "p0.data"),
|
|
3941
3957
|
enrich: qwik._fnSignal((p0) => p0.enrich, [
|
|
3942
3958
|
props
|
|
3943
3959
|
], "p0.enrich"),
|