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