@builder.io/sdk-qwik 0.7.4 → 0.7.6
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 +24 -21
- package/lib/browser/index.qwik.mjs +24 -21
- package/lib/edge/index.qwik.cjs +24 -21
- package/lib/edge/index.qwik.mjs +24 -21
- package/lib/node/index.qwik.cjs +24 -21
- package/lib/node/index.qwik.mjs +24 -21
- package/package.json +1 -1
- package/types/src/components/content/content.helpers.d.ts +1 -1
- package/types/src/constants/sdk-version.d.ts +1 -1
|
@@ -719,8 +719,9 @@ const Block = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inlinedQrl(
|
|
|
719
719
|
props
|
|
720
720
|
]));
|
|
721
721
|
const processedBlock = qwik.useComputedQrl(/* @__PURE__ */ qwik.inlinedQrl(() => {
|
|
722
|
-
|
|
723
|
-
|
|
722
|
+
var _a2;
|
|
723
|
+
const [props2] = qwik.useLexicalScope();
|
|
724
|
+
return ((_a2 = props2.block.repeat) == null ? void 0 : _a2.collection) ? props2.block : getProcessedBlock({
|
|
724
725
|
block: props2.block,
|
|
725
726
|
localState: props2.context.localState,
|
|
726
727
|
rootState: props2.context.rootState,
|
|
@@ -729,8 +730,7 @@ const Block = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inlinedQrl(
|
|
|
729
730
|
shouldEvaluateBindings: true
|
|
730
731
|
});
|
|
731
732
|
}, "Block_component_processedBlock_useComputed_ESKw0l5FcBc", [
|
|
732
|
-
props
|
|
733
|
-
repeatItem
|
|
733
|
+
props
|
|
734
734
|
]));
|
|
735
735
|
const Tag = qwik.useComputedQrl(/* @__PURE__ */ qwik.inlinedQrl(() => {
|
|
736
736
|
const [props2] = qwik.useLexicalScope();
|
|
@@ -739,14 +739,20 @@ const Block = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inlinedQrl(
|
|
|
739
739
|
props
|
|
740
740
|
]));
|
|
741
741
|
const canShowBlock = qwik.useComputedQrl(/* @__PURE__ */ qwik.inlinedQrl(() => {
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
|
|
742
|
+
var _a2, _b;
|
|
743
|
+
const [processedBlock2, props2, repeatItem2] = qwik.useLexicalScope();
|
|
744
|
+
if ((_a2 = props2.block.repeat) == null ? void 0 : _a2.collection) {
|
|
745
|
+
if ((_b = repeatItem2.value) == null ? void 0 : _b.length)
|
|
746
|
+
return true;
|
|
747
|
+
return false;
|
|
748
|
+
}
|
|
749
|
+
const shouldHide = "hide" in processedBlock2.value ? processedBlock2.value.hide : false;
|
|
750
|
+
const shouldShow = "show" in processedBlock2.value ? processedBlock2.value.show : true;
|
|
751
|
+
return shouldShow && !shouldHide;
|
|
748
752
|
}, "Block_component_canShowBlock_useComputed_NJEFz8ICF08", [
|
|
749
|
-
processedBlock
|
|
753
|
+
processedBlock,
|
|
754
|
+
props,
|
|
755
|
+
repeatItem
|
|
750
756
|
]));
|
|
751
757
|
const childrenWithoutParentComponent = qwik.useComputedQrl(/* @__PURE__ */ qwik.inlinedQrl(() => {
|
|
752
758
|
var _a2;
|
|
@@ -3161,7 +3167,7 @@ const getInteractionPropertiesForEvent = (event) => {
|
|
|
3161
3167
|
}
|
|
3162
3168
|
};
|
|
3163
3169
|
};
|
|
3164
|
-
const SDK_VERSION = "0.7.
|
|
3170
|
+
const SDK_VERSION = "0.7.6";
|
|
3165
3171
|
const registry = {};
|
|
3166
3172
|
function register(type, info) {
|
|
3167
3173
|
let typeList = registry[type];
|
|
@@ -3672,22 +3678,19 @@ ${getFontCss({
|
|
|
3672
3678
|
const getContextStateInitialValue = ({ content, data, locale }) => {
|
|
3673
3679
|
var _a, _b, _c;
|
|
3674
3680
|
const defaultValues = {};
|
|
3675
|
-
|
|
3676
|
-
|
|
3677
|
-
if (input.name && input.defaultValue !== void 0
|
|
3681
|
+
const initialState = ((_a = content == null ? void 0 : content.data) == null ? void 0 : _a.state) || {};
|
|
3682
|
+
(_c = (_b = content == null ? void 0 : content.data) == null ? void 0 : _b.inputs) == null ? void 0 : _c.forEach((input) => {
|
|
3683
|
+
if (input.name && input.defaultValue !== void 0)
|
|
3678
3684
|
defaultValues[input.name] = input.defaultValue;
|
|
3679
3685
|
});
|
|
3680
|
-
|
|
3681
|
-
...
|
|
3686
|
+
return {
|
|
3687
|
+
...defaultValues,
|
|
3688
|
+
...initialState,
|
|
3682
3689
|
...data,
|
|
3683
3690
|
...locale ? {
|
|
3684
3691
|
locale
|
|
3685
3692
|
} : {}
|
|
3686
3693
|
};
|
|
3687
|
-
return {
|
|
3688
|
-
...defaultValues,
|
|
3689
|
-
...stateToUse
|
|
3690
|
-
};
|
|
3691
3694
|
};
|
|
3692
3695
|
const getContentInitialValue = ({ content, data }) => {
|
|
3693
3696
|
return !content ? void 0 : {
|
|
@@ -717,8 +717,9 @@ const Block = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl((props) =>
|
|
|
717
717
|
props
|
|
718
718
|
]));
|
|
719
719
|
const processedBlock = useComputedQrl(/* @__PURE__ */ inlinedQrl(() => {
|
|
720
|
-
|
|
721
|
-
|
|
720
|
+
var _a2;
|
|
721
|
+
const [props2] = useLexicalScope();
|
|
722
|
+
return ((_a2 = props2.block.repeat) == null ? void 0 : _a2.collection) ? props2.block : getProcessedBlock({
|
|
722
723
|
block: props2.block,
|
|
723
724
|
localState: props2.context.localState,
|
|
724
725
|
rootState: props2.context.rootState,
|
|
@@ -727,8 +728,7 @@ const Block = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl((props) =>
|
|
|
727
728
|
shouldEvaluateBindings: true
|
|
728
729
|
});
|
|
729
730
|
}, "Block_component_processedBlock_useComputed_ESKw0l5FcBc", [
|
|
730
|
-
props
|
|
731
|
-
repeatItem
|
|
731
|
+
props
|
|
732
732
|
]));
|
|
733
733
|
const Tag = useComputedQrl(/* @__PURE__ */ inlinedQrl(() => {
|
|
734
734
|
const [props2] = useLexicalScope();
|
|
@@ -737,14 +737,20 @@ const Block = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl((props) =>
|
|
|
737
737
|
props
|
|
738
738
|
]));
|
|
739
739
|
const canShowBlock = useComputedQrl(/* @__PURE__ */ inlinedQrl(() => {
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
|
|
740
|
+
var _a2, _b;
|
|
741
|
+
const [processedBlock2, props2, repeatItem2] = useLexicalScope();
|
|
742
|
+
if ((_a2 = props2.block.repeat) == null ? void 0 : _a2.collection) {
|
|
743
|
+
if ((_b = repeatItem2.value) == null ? void 0 : _b.length)
|
|
744
|
+
return true;
|
|
745
|
+
return false;
|
|
746
|
+
}
|
|
747
|
+
const shouldHide = "hide" in processedBlock2.value ? processedBlock2.value.hide : false;
|
|
748
|
+
const shouldShow = "show" in processedBlock2.value ? processedBlock2.value.show : true;
|
|
749
|
+
return shouldShow && !shouldHide;
|
|
746
750
|
}, "Block_component_canShowBlock_useComputed_NJEFz8ICF08", [
|
|
747
|
-
processedBlock
|
|
751
|
+
processedBlock,
|
|
752
|
+
props,
|
|
753
|
+
repeatItem
|
|
748
754
|
]));
|
|
749
755
|
const childrenWithoutParentComponent = useComputedQrl(/* @__PURE__ */ inlinedQrl(() => {
|
|
750
756
|
var _a2;
|
|
@@ -3159,7 +3165,7 @@ const getInteractionPropertiesForEvent = (event) => {
|
|
|
3159
3165
|
}
|
|
3160
3166
|
};
|
|
3161
3167
|
};
|
|
3162
|
-
const SDK_VERSION = "0.7.
|
|
3168
|
+
const SDK_VERSION = "0.7.6";
|
|
3163
3169
|
const registry = {};
|
|
3164
3170
|
function register(type, info) {
|
|
3165
3171
|
let typeList = registry[type];
|
|
@@ -3670,22 +3676,19 @@ ${getFontCss({
|
|
|
3670
3676
|
const getContextStateInitialValue = ({ content, data, locale }) => {
|
|
3671
3677
|
var _a, _b, _c;
|
|
3672
3678
|
const defaultValues = {};
|
|
3673
|
-
|
|
3674
|
-
|
|
3675
|
-
if (input.name && input.defaultValue !== void 0
|
|
3679
|
+
const initialState = ((_a = content == null ? void 0 : content.data) == null ? void 0 : _a.state) || {};
|
|
3680
|
+
(_c = (_b = content == null ? void 0 : content.data) == null ? void 0 : _b.inputs) == null ? void 0 : _c.forEach((input) => {
|
|
3681
|
+
if (input.name && input.defaultValue !== void 0)
|
|
3676
3682
|
defaultValues[input.name] = input.defaultValue;
|
|
3677
3683
|
});
|
|
3678
|
-
|
|
3679
|
-
...
|
|
3684
|
+
return {
|
|
3685
|
+
...defaultValues,
|
|
3686
|
+
...initialState,
|
|
3680
3687
|
...data,
|
|
3681
3688
|
...locale ? {
|
|
3682
3689
|
locale
|
|
3683
3690
|
} : {}
|
|
3684
3691
|
};
|
|
3685
|
-
return {
|
|
3686
|
-
...defaultValues,
|
|
3687
|
-
...stateToUse
|
|
3688
|
-
};
|
|
3689
3692
|
};
|
|
3690
3693
|
const getContentInitialValue = ({ content, data }) => {
|
|
3691
3694
|
return !content ? void 0 : {
|
package/lib/edge/index.qwik.cjs
CHANGED
|
@@ -3950,8 +3950,9 @@ const Block = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inlinedQrl(
|
|
|
3950
3950
|
props
|
|
3951
3951
|
]));
|
|
3952
3952
|
const processedBlock = qwik.useComputedQrl(/* @__PURE__ */ qwik.inlinedQrl(() => {
|
|
3953
|
-
|
|
3954
|
-
|
|
3953
|
+
var _a2;
|
|
3954
|
+
const [props2] = qwik.useLexicalScope();
|
|
3955
|
+
return ((_a2 = props2.block.repeat) == null ? void 0 : _a2.collection) ? props2.block : getProcessedBlock({
|
|
3955
3956
|
block: props2.block,
|
|
3956
3957
|
localState: props2.context.localState,
|
|
3957
3958
|
rootState: props2.context.rootState,
|
|
@@ -3960,8 +3961,7 @@ const Block = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inlinedQrl(
|
|
|
3960
3961
|
shouldEvaluateBindings: true
|
|
3961
3962
|
});
|
|
3962
3963
|
}, "Block_component_processedBlock_useComputed_ESKw0l5FcBc", [
|
|
3963
|
-
props
|
|
3964
|
-
repeatItem
|
|
3964
|
+
props
|
|
3965
3965
|
]));
|
|
3966
3966
|
const Tag = qwik.useComputedQrl(/* @__PURE__ */ qwik.inlinedQrl(() => {
|
|
3967
3967
|
const [props2] = qwik.useLexicalScope();
|
|
@@ -3970,14 +3970,20 @@ const Block = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inlinedQrl(
|
|
|
3970
3970
|
props
|
|
3971
3971
|
]));
|
|
3972
3972
|
const canShowBlock = qwik.useComputedQrl(/* @__PURE__ */ qwik.inlinedQrl(() => {
|
|
3973
|
-
|
|
3974
|
-
|
|
3975
|
-
|
|
3976
|
-
|
|
3977
|
-
|
|
3978
|
-
|
|
3973
|
+
var _a2, _b;
|
|
3974
|
+
const [processedBlock2, props2, repeatItem2] = qwik.useLexicalScope();
|
|
3975
|
+
if ((_a2 = props2.block.repeat) == null ? void 0 : _a2.collection) {
|
|
3976
|
+
if ((_b = repeatItem2.value) == null ? void 0 : _b.length)
|
|
3977
|
+
return true;
|
|
3978
|
+
return false;
|
|
3979
|
+
}
|
|
3980
|
+
const shouldHide = "hide" in processedBlock2.value ? processedBlock2.value.hide : false;
|
|
3981
|
+
const shouldShow = "show" in processedBlock2.value ? processedBlock2.value.show : true;
|
|
3982
|
+
return shouldShow && !shouldHide;
|
|
3979
3983
|
}, "Block_component_canShowBlock_useComputed_NJEFz8ICF08", [
|
|
3980
|
-
processedBlock
|
|
3984
|
+
processedBlock,
|
|
3985
|
+
props,
|
|
3986
|
+
repeatItem
|
|
3981
3987
|
]));
|
|
3982
3988
|
const childrenWithoutParentComponent = qwik.useComputedQrl(/* @__PURE__ */ qwik.inlinedQrl(() => {
|
|
3983
3989
|
var _a2;
|
|
@@ -6392,7 +6398,7 @@ const getInteractionPropertiesForEvent = (event) => {
|
|
|
6392
6398
|
}
|
|
6393
6399
|
};
|
|
6394
6400
|
};
|
|
6395
|
-
const SDK_VERSION = "0.7.
|
|
6401
|
+
const SDK_VERSION = "0.7.6";
|
|
6396
6402
|
const registry = {};
|
|
6397
6403
|
function register(type, info) {
|
|
6398
6404
|
let typeList = registry[type];
|
|
@@ -6903,22 +6909,19 @@ ${getFontCss({
|
|
|
6903
6909
|
const getContextStateInitialValue = ({ content, data, locale }) => {
|
|
6904
6910
|
var _a, _b, _c;
|
|
6905
6911
|
const defaultValues = {};
|
|
6906
|
-
|
|
6907
|
-
|
|
6908
|
-
if (input.name && input.defaultValue !== void 0
|
|
6912
|
+
const initialState = ((_a = content == null ? void 0 : content.data) == null ? void 0 : _a.state) || {};
|
|
6913
|
+
(_c = (_b = content == null ? void 0 : content.data) == null ? void 0 : _b.inputs) == null ? void 0 : _c.forEach((input) => {
|
|
6914
|
+
if (input.name && input.defaultValue !== void 0)
|
|
6909
6915
|
defaultValues[input.name] = input.defaultValue;
|
|
6910
6916
|
});
|
|
6911
|
-
|
|
6912
|
-
...
|
|
6917
|
+
return {
|
|
6918
|
+
...defaultValues,
|
|
6919
|
+
...initialState,
|
|
6913
6920
|
...data,
|
|
6914
6921
|
...locale ? {
|
|
6915
6922
|
locale
|
|
6916
6923
|
} : {}
|
|
6917
6924
|
};
|
|
6918
|
-
return {
|
|
6919
|
-
...defaultValues,
|
|
6920
|
-
...stateToUse
|
|
6921
|
-
};
|
|
6922
6925
|
};
|
|
6923
6926
|
const getContentInitialValue = ({ content, data }) => {
|
|
6924
6927
|
return !content ? void 0 : {
|
package/lib/edge/index.qwik.mjs
CHANGED
|
@@ -3948,8 +3948,9 @@ const Block = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl((props) =>
|
|
|
3948
3948
|
props
|
|
3949
3949
|
]));
|
|
3950
3950
|
const processedBlock = useComputedQrl(/* @__PURE__ */ inlinedQrl(() => {
|
|
3951
|
-
|
|
3952
|
-
|
|
3951
|
+
var _a2;
|
|
3952
|
+
const [props2] = useLexicalScope();
|
|
3953
|
+
return ((_a2 = props2.block.repeat) == null ? void 0 : _a2.collection) ? props2.block : getProcessedBlock({
|
|
3953
3954
|
block: props2.block,
|
|
3954
3955
|
localState: props2.context.localState,
|
|
3955
3956
|
rootState: props2.context.rootState,
|
|
@@ -3958,8 +3959,7 @@ const Block = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl((props) =>
|
|
|
3958
3959
|
shouldEvaluateBindings: true
|
|
3959
3960
|
});
|
|
3960
3961
|
}, "Block_component_processedBlock_useComputed_ESKw0l5FcBc", [
|
|
3961
|
-
props
|
|
3962
|
-
repeatItem
|
|
3962
|
+
props
|
|
3963
3963
|
]));
|
|
3964
3964
|
const Tag = useComputedQrl(/* @__PURE__ */ inlinedQrl(() => {
|
|
3965
3965
|
const [props2] = useLexicalScope();
|
|
@@ -3968,14 +3968,20 @@ const Block = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl((props) =>
|
|
|
3968
3968
|
props
|
|
3969
3969
|
]));
|
|
3970
3970
|
const canShowBlock = useComputedQrl(/* @__PURE__ */ inlinedQrl(() => {
|
|
3971
|
-
|
|
3972
|
-
|
|
3973
|
-
|
|
3974
|
-
|
|
3975
|
-
|
|
3976
|
-
|
|
3971
|
+
var _a2, _b;
|
|
3972
|
+
const [processedBlock2, props2, repeatItem2] = useLexicalScope();
|
|
3973
|
+
if ((_a2 = props2.block.repeat) == null ? void 0 : _a2.collection) {
|
|
3974
|
+
if ((_b = repeatItem2.value) == null ? void 0 : _b.length)
|
|
3975
|
+
return true;
|
|
3976
|
+
return false;
|
|
3977
|
+
}
|
|
3978
|
+
const shouldHide = "hide" in processedBlock2.value ? processedBlock2.value.hide : false;
|
|
3979
|
+
const shouldShow = "show" in processedBlock2.value ? processedBlock2.value.show : true;
|
|
3980
|
+
return shouldShow && !shouldHide;
|
|
3977
3981
|
}, "Block_component_canShowBlock_useComputed_NJEFz8ICF08", [
|
|
3978
|
-
processedBlock
|
|
3982
|
+
processedBlock,
|
|
3983
|
+
props,
|
|
3984
|
+
repeatItem
|
|
3979
3985
|
]));
|
|
3980
3986
|
const childrenWithoutParentComponent = useComputedQrl(/* @__PURE__ */ inlinedQrl(() => {
|
|
3981
3987
|
var _a2;
|
|
@@ -6390,7 +6396,7 @@ const getInteractionPropertiesForEvent = (event) => {
|
|
|
6390
6396
|
}
|
|
6391
6397
|
};
|
|
6392
6398
|
};
|
|
6393
|
-
const SDK_VERSION = "0.7.
|
|
6399
|
+
const SDK_VERSION = "0.7.6";
|
|
6394
6400
|
const registry = {};
|
|
6395
6401
|
function register(type, info) {
|
|
6396
6402
|
let typeList = registry[type];
|
|
@@ -6901,22 +6907,19 @@ ${getFontCss({
|
|
|
6901
6907
|
const getContextStateInitialValue = ({ content, data, locale }) => {
|
|
6902
6908
|
var _a, _b, _c;
|
|
6903
6909
|
const defaultValues = {};
|
|
6904
|
-
|
|
6905
|
-
|
|
6906
|
-
if (input.name && input.defaultValue !== void 0
|
|
6910
|
+
const initialState = ((_a = content == null ? void 0 : content.data) == null ? void 0 : _a.state) || {};
|
|
6911
|
+
(_c = (_b = content == null ? void 0 : content.data) == null ? void 0 : _b.inputs) == null ? void 0 : _c.forEach((input) => {
|
|
6912
|
+
if (input.name && input.defaultValue !== void 0)
|
|
6907
6913
|
defaultValues[input.name] = input.defaultValue;
|
|
6908
6914
|
});
|
|
6909
|
-
|
|
6910
|
-
...
|
|
6915
|
+
return {
|
|
6916
|
+
...defaultValues,
|
|
6917
|
+
...initialState,
|
|
6911
6918
|
...data,
|
|
6912
6919
|
...locale ? {
|
|
6913
6920
|
locale
|
|
6914
6921
|
} : {}
|
|
6915
6922
|
};
|
|
6916
|
-
return {
|
|
6917
|
-
...defaultValues,
|
|
6918
|
-
...stateToUse
|
|
6919
|
-
};
|
|
6920
6923
|
};
|
|
6921
6924
|
const getContentInitialValue = ({ content, data }) => {
|
|
6922
6925
|
return !content ? void 0 : {
|
package/lib/node/index.qwik.cjs
CHANGED
|
@@ -820,8 +820,9 @@ const Block = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inlinedQrl(
|
|
|
820
820
|
props
|
|
821
821
|
]));
|
|
822
822
|
const processedBlock = qwik.useComputedQrl(/* @__PURE__ */ qwik.inlinedQrl(() => {
|
|
823
|
-
|
|
824
|
-
|
|
823
|
+
var _a2;
|
|
824
|
+
const [props2] = qwik.useLexicalScope();
|
|
825
|
+
return ((_a2 = props2.block.repeat) == null ? void 0 : _a2.collection) ? props2.block : getProcessedBlock({
|
|
825
826
|
block: props2.block,
|
|
826
827
|
localState: props2.context.localState,
|
|
827
828
|
rootState: props2.context.rootState,
|
|
@@ -830,8 +831,7 @@ const Block = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inlinedQrl(
|
|
|
830
831
|
shouldEvaluateBindings: true
|
|
831
832
|
});
|
|
832
833
|
}, "Block_component_processedBlock_useComputed_ESKw0l5FcBc", [
|
|
833
|
-
props
|
|
834
|
-
repeatItem
|
|
834
|
+
props
|
|
835
835
|
]));
|
|
836
836
|
const Tag = qwik.useComputedQrl(/* @__PURE__ */ qwik.inlinedQrl(() => {
|
|
837
837
|
const [props2] = qwik.useLexicalScope();
|
|
@@ -840,14 +840,20 @@ const Block = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inlinedQrl(
|
|
|
840
840
|
props
|
|
841
841
|
]));
|
|
842
842
|
const canShowBlock = qwik.useComputedQrl(/* @__PURE__ */ qwik.inlinedQrl(() => {
|
|
843
|
-
|
|
844
|
-
|
|
845
|
-
|
|
846
|
-
|
|
847
|
-
|
|
848
|
-
|
|
843
|
+
var _a2, _b;
|
|
844
|
+
const [processedBlock2, props2, repeatItem2] = qwik.useLexicalScope();
|
|
845
|
+
if ((_a2 = props2.block.repeat) == null ? void 0 : _a2.collection) {
|
|
846
|
+
if ((_b = repeatItem2.value) == null ? void 0 : _b.length)
|
|
847
|
+
return true;
|
|
848
|
+
return false;
|
|
849
|
+
}
|
|
850
|
+
const shouldHide = "hide" in processedBlock2.value ? processedBlock2.value.hide : false;
|
|
851
|
+
const shouldShow = "show" in processedBlock2.value ? processedBlock2.value.show : true;
|
|
852
|
+
return shouldShow && !shouldHide;
|
|
849
853
|
}, "Block_component_canShowBlock_useComputed_NJEFz8ICF08", [
|
|
850
|
-
processedBlock
|
|
854
|
+
processedBlock,
|
|
855
|
+
props,
|
|
856
|
+
repeatItem
|
|
851
857
|
]));
|
|
852
858
|
const childrenWithoutParentComponent = qwik.useComputedQrl(/* @__PURE__ */ qwik.inlinedQrl(() => {
|
|
853
859
|
var _a2;
|
|
@@ -3262,7 +3268,7 @@ const getInteractionPropertiesForEvent = (event) => {
|
|
|
3262
3268
|
}
|
|
3263
3269
|
};
|
|
3264
3270
|
};
|
|
3265
|
-
const SDK_VERSION = "0.7.
|
|
3271
|
+
const SDK_VERSION = "0.7.6";
|
|
3266
3272
|
const registry = {};
|
|
3267
3273
|
function register(type, info) {
|
|
3268
3274
|
let typeList = registry[type];
|
|
@@ -3773,22 +3779,19 @@ ${getFontCss({
|
|
|
3773
3779
|
const getContextStateInitialValue = ({ content, data, locale }) => {
|
|
3774
3780
|
var _a, _b, _c;
|
|
3775
3781
|
const defaultValues = {};
|
|
3776
|
-
|
|
3777
|
-
|
|
3778
|
-
if (input.name && input.defaultValue !== void 0
|
|
3782
|
+
const initialState = ((_a = content == null ? void 0 : content.data) == null ? void 0 : _a.state) || {};
|
|
3783
|
+
(_c = (_b = content == null ? void 0 : content.data) == null ? void 0 : _b.inputs) == null ? void 0 : _c.forEach((input) => {
|
|
3784
|
+
if (input.name && input.defaultValue !== void 0)
|
|
3779
3785
|
defaultValues[input.name] = input.defaultValue;
|
|
3780
3786
|
});
|
|
3781
|
-
|
|
3782
|
-
...
|
|
3787
|
+
return {
|
|
3788
|
+
...defaultValues,
|
|
3789
|
+
...initialState,
|
|
3783
3790
|
...data,
|
|
3784
3791
|
...locale ? {
|
|
3785
3792
|
locale
|
|
3786
3793
|
} : {}
|
|
3787
3794
|
};
|
|
3788
|
-
return {
|
|
3789
|
-
...defaultValues,
|
|
3790
|
-
...stateToUse
|
|
3791
|
-
};
|
|
3792
3795
|
};
|
|
3793
3796
|
const getContentInitialValue = ({ content, data }) => {
|
|
3794
3797
|
return !content ? void 0 : {
|
package/lib/node/index.qwik.mjs
CHANGED
|
@@ -818,8 +818,9 @@ const Block = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl((props) =>
|
|
|
818
818
|
props
|
|
819
819
|
]));
|
|
820
820
|
const processedBlock = useComputedQrl(/* @__PURE__ */ inlinedQrl(() => {
|
|
821
|
-
|
|
822
|
-
|
|
821
|
+
var _a2;
|
|
822
|
+
const [props2] = useLexicalScope();
|
|
823
|
+
return ((_a2 = props2.block.repeat) == null ? void 0 : _a2.collection) ? props2.block : getProcessedBlock({
|
|
823
824
|
block: props2.block,
|
|
824
825
|
localState: props2.context.localState,
|
|
825
826
|
rootState: props2.context.rootState,
|
|
@@ -828,8 +829,7 @@ const Block = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl((props) =>
|
|
|
828
829
|
shouldEvaluateBindings: true
|
|
829
830
|
});
|
|
830
831
|
}, "Block_component_processedBlock_useComputed_ESKw0l5FcBc", [
|
|
831
|
-
props
|
|
832
|
-
repeatItem
|
|
832
|
+
props
|
|
833
833
|
]));
|
|
834
834
|
const Tag = useComputedQrl(/* @__PURE__ */ inlinedQrl(() => {
|
|
835
835
|
const [props2] = useLexicalScope();
|
|
@@ -838,14 +838,20 @@ const Block = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl((props) =>
|
|
|
838
838
|
props
|
|
839
839
|
]));
|
|
840
840
|
const canShowBlock = useComputedQrl(/* @__PURE__ */ inlinedQrl(() => {
|
|
841
|
-
|
|
842
|
-
|
|
843
|
-
|
|
844
|
-
|
|
845
|
-
|
|
846
|
-
|
|
841
|
+
var _a2, _b;
|
|
842
|
+
const [processedBlock2, props2, repeatItem2] = useLexicalScope();
|
|
843
|
+
if ((_a2 = props2.block.repeat) == null ? void 0 : _a2.collection) {
|
|
844
|
+
if ((_b = repeatItem2.value) == null ? void 0 : _b.length)
|
|
845
|
+
return true;
|
|
846
|
+
return false;
|
|
847
|
+
}
|
|
848
|
+
const shouldHide = "hide" in processedBlock2.value ? processedBlock2.value.hide : false;
|
|
849
|
+
const shouldShow = "show" in processedBlock2.value ? processedBlock2.value.show : true;
|
|
850
|
+
return shouldShow && !shouldHide;
|
|
847
851
|
}, "Block_component_canShowBlock_useComputed_NJEFz8ICF08", [
|
|
848
|
-
processedBlock
|
|
852
|
+
processedBlock,
|
|
853
|
+
props,
|
|
854
|
+
repeatItem
|
|
849
855
|
]));
|
|
850
856
|
const childrenWithoutParentComponent = useComputedQrl(/* @__PURE__ */ inlinedQrl(() => {
|
|
851
857
|
var _a2;
|
|
@@ -3260,7 +3266,7 @@ const getInteractionPropertiesForEvent = (event) => {
|
|
|
3260
3266
|
}
|
|
3261
3267
|
};
|
|
3262
3268
|
};
|
|
3263
|
-
const SDK_VERSION = "0.7.
|
|
3269
|
+
const SDK_VERSION = "0.7.6";
|
|
3264
3270
|
const registry = {};
|
|
3265
3271
|
function register(type, info) {
|
|
3266
3272
|
let typeList = registry[type];
|
|
@@ -3771,22 +3777,19 @@ ${getFontCss({
|
|
|
3771
3777
|
const getContextStateInitialValue = ({ content, data, locale }) => {
|
|
3772
3778
|
var _a, _b, _c;
|
|
3773
3779
|
const defaultValues = {};
|
|
3774
|
-
|
|
3775
|
-
|
|
3776
|
-
if (input.name && input.defaultValue !== void 0
|
|
3780
|
+
const initialState = ((_a = content == null ? void 0 : content.data) == null ? void 0 : _a.state) || {};
|
|
3781
|
+
(_c = (_b = content == null ? void 0 : content.data) == null ? void 0 : _b.inputs) == null ? void 0 : _c.forEach((input) => {
|
|
3782
|
+
if (input.name && input.defaultValue !== void 0)
|
|
3777
3783
|
defaultValues[input.name] = input.defaultValue;
|
|
3778
3784
|
});
|
|
3779
|
-
|
|
3780
|
-
...
|
|
3785
|
+
return {
|
|
3786
|
+
...defaultValues,
|
|
3787
|
+
...initialState,
|
|
3781
3788
|
...data,
|
|
3782
3789
|
...locale ? {
|
|
3783
3790
|
locale
|
|
3784
3791
|
} : {}
|
|
3785
3792
|
};
|
|
3786
|
-
return {
|
|
3787
|
-
...defaultValues,
|
|
3788
|
-
...stateToUse
|
|
3789
|
-
};
|
|
3790
3793
|
};
|
|
3791
3794
|
const getContentInitialValue = ({ content, data }) => {
|
|
3792
3795
|
return !content ? void 0 : {
|
package/package.json
CHANGED
|
@@ -2,6 +2,6 @@ import type { BuilderContent } from '../../types/builder-content.js';
|
|
|
2
2
|
import type { Nullable } from '../../types/typescript.js';
|
|
3
3
|
import type { ContentProps } from './content.types.js';
|
|
4
4
|
export declare const getContextStateInitialValue: ({ content, data, locale }: Pick<ContentProps, 'content' | 'data' | 'locale'>) => {
|
|
5
|
-
|
|
5
|
+
locale?: string | undefined;
|
|
6
6
|
};
|
|
7
7
|
export declare const getContentInitialValue: ({ content, data }: Pick<ContentProps, 'content' | 'data'>) => Nullable<BuilderContent>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "0.7.
|
|
1
|
+
export declare const SDK_VERSION = "0.7.6";
|