@builder.io/sdk-qwik 0.7.4 → 0.7.5
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 +18 -16
- package/lib/browser/index.qwik.mjs +18 -16
- package/lib/edge/index.qwik.cjs +18 -16
- package/lib/edge/index.qwik.mjs +18 -16
- package/lib/node/index.qwik.cjs +18 -16
- package/lib/node/index.qwik.mjs +18 -16
- 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,19 @@ const Block = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inlinedQrl(
|
|
|
739
739
|
props
|
|
740
740
|
]));
|
|
741
741
|
const canShowBlock = qwik.useComputedQrl(/* @__PURE__ */ qwik.inlinedQrl(() => {
|
|
742
|
-
|
|
742
|
+
var _a2, _b;
|
|
743
|
+
const [processedBlock2, props2, repeatItem2] = qwik.useLexicalScope();
|
|
743
744
|
if ("hide" in processedBlock2.value)
|
|
744
745
|
return !processedBlock2.value.hide;
|
|
745
746
|
if ("show" in processedBlock2.value)
|
|
746
747
|
return processedBlock2.value.show;
|
|
748
|
+
if (((_a2 = props2.block.repeat) == null ? void 0 : _a2.collection) && !((_b = repeatItem2.value) == null ? void 0 : _b.length))
|
|
749
|
+
return false;
|
|
747
750
|
return true;
|
|
748
751
|
}, "Block_component_canShowBlock_useComputed_NJEFz8ICF08", [
|
|
749
|
-
processedBlock
|
|
752
|
+
processedBlock,
|
|
753
|
+
props,
|
|
754
|
+
repeatItem
|
|
750
755
|
]));
|
|
751
756
|
const childrenWithoutParentComponent = qwik.useComputedQrl(/* @__PURE__ */ qwik.inlinedQrl(() => {
|
|
752
757
|
var _a2;
|
|
@@ -3161,7 +3166,7 @@ const getInteractionPropertiesForEvent = (event) => {
|
|
|
3161
3166
|
}
|
|
3162
3167
|
};
|
|
3163
3168
|
};
|
|
3164
|
-
const SDK_VERSION = "0.7.
|
|
3169
|
+
const SDK_VERSION = "0.7.5";
|
|
3165
3170
|
const registry = {};
|
|
3166
3171
|
function register(type, info) {
|
|
3167
3172
|
let typeList = registry[type];
|
|
@@ -3672,22 +3677,19 @@ ${getFontCss({
|
|
|
3672
3677
|
const getContextStateInitialValue = ({ content, data, locale }) => {
|
|
3673
3678
|
var _a, _b, _c;
|
|
3674
3679
|
const defaultValues = {};
|
|
3675
|
-
|
|
3676
|
-
|
|
3677
|
-
if (input.name && input.defaultValue !== void 0
|
|
3680
|
+
const initialState = ((_a = content == null ? void 0 : content.data) == null ? void 0 : _a.state) || {};
|
|
3681
|
+
(_c = (_b = content == null ? void 0 : content.data) == null ? void 0 : _b.inputs) == null ? void 0 : _c.forEach((input) => {
|
|
3682
|
+
if (input.name && input.defaultValue !== void 0)
|
|
3678
3683
|
defaultValues[input.name] = input.defaultValue;
|
|
3679
3684
|
});
|
|
3680
|
-
|
|
3681
|
-
...
|
|
3685
|
+
return {
|
|
3686
|
+
...defaultValues,
|
|
3687
|
+
...initialState,
|
|
3682
3688
|
...data,
|
|
3683
3689
|
...locale ? {
|
|
3684
3690
|
locale
|
|
3685
3691
|
} : {}
|
|
3686
3692
|
};
|
|
3687
|
-
return {
|
|
3688
|
-
...defaultValues,
|
|
3689
|
-
...stateToUse
|
|
3690
|
-
};
|
|
3691
3693
|
};
|
|
3692
3694
|
const getContentInitialValue = ({ content, data }) => {
|
|
3693
3695
|
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,19 @@ const Block = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl((props) =>
|
|
|
737
737
|
props
|
|
738
738
|
]));
|
|
739
739
|
const canShowBlock = useComputedQrl(/* @__PURE__ */ inlinedQrl(() => {
|
|
740
|
-
|
|
740
|
+
var _a2, _b;
|
|
741
|
+
const [processedBlock2, props2, repeatItem2] = useLexicalScope();
|
|
741
742
|
if ("hide" in processedBlock2.value)
|
|
742
743
|
return !processedBlock2.value.hide;
|
|
743
744
|
if ("show" in processedBlock2.value)
|
|
744
745
|
return processedBlock2.value.show;
|
|
746
|
+
if (((_a2 = props2.block.repeat) == null ? void 0 : _a2.collection) && !((_b = repeatItem2.value) == null ? void 0 : _b.length))
|
|
747
|
+
return false;
|
|
745
748
|
return true;
|
|
746
749
|
}, "Block_component_canShowBlock_useComputed_NJEFz8ICF08", [
|
|
747
|
-
processedBlock
|
|
750
|
+
processedBlock,
|
|
751
|
+
props,
|
|
752
|
+
repeatItem
|
|
748
753
|
]));
|
|
749
754
|
const childrenWithoutParentComponent = useComputedQrl(/* @__PURE__ */ inlinedQrl(() => {
|
|
750
755
|
var _a2;
|
|
@@ -3159,7 +3164,7 @@ const getInteractionPropertiesForEvent = (event) => {
|
|
|
3159
3164
|
}
|
|
3160
3165
|
};
|
|
3161
3166
|
};
|
|
3162
|
-
const SDK_VERSION = "0.7.
|
|
3167
|
+
const SDK_VERSION = "0.7.5";
|
|
3163
3168
|
const registry = {};
|
|
3164
3169
|
function register(type, info) {
|
|
3165
3170
|
let typeList = registry[type];
|
|
@@ -3670,22 +3675,19 @@ ${getFontCss({
|
|
|
3670
3675
|
const getContextStateInitialValue = ({ content, data, locale }) => {
|
|
3671
3676
|
var _a, _b, _c;
|
|
3672
3677
|
const defaultValues = {};
|
|
3673
|
-
|
|
3674
|
-
|
|
3675
|
-
if (input.name && input.defaultValue !== void 0
|
|
3678
|
+
const initialState = ((_a = content == null ? void 0 : content.data) == null ? void 0 : _a.state) || {};
|
|
3679
|
+
(_c = (_b = content == null ? void 0 : content.data) == null ? void 0 : _b.inputs) == null ? void 0 : _c.forEach((input) => {
|
|
3680
|
+
if (input.name && input.defaultValue !== void 0)
|
|
3676
3681
|
defaultValues[input.name] = input.defaultValue;
|
|
3677
3682
|
});
|
|
3678
|
-
|
|
3679
|
-
...
|
|
3683
|
+
return {
|
|
3684
|
+
...defaultValues,
|
|
3685
|
+
...initialState,
|
|
3680
3686
|
...data,
|
|
3681
3687
|
...locale ? {
|
|
3682
3688
|
locale
|
|
3683
3689
|
} : {}
|
|
3684
3690
|
};
|
|
3685
|
-
return {
|
|
3686
|
-
...defaultValues,
|
|
3687
|
-
...stateToUse
|
|
3688
|
-
};
|
|
3689
3691
|
};
|
|
3690
3692
|
const getContentInitialValue = ({ content, data }) => {
|
|
3691
3693
|
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,19 @@ const Block = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inlinedQrl(
|
|
|
3970
3970
|
props
|
|
3971
3971
|
]));
|
|
3972
3972
|
const canShowBlock = qwik.useComputedQrl(/* @__PURE__ */ qwik.inlinedQrl(() => {
|
|
3973
|
-
|
|
3973
|
+
var _a2, _b;
|
|
3974
|
+
const [processedBlock2, props2, repeatItem2] = qwik.useLexicalScope();
|
|
3974
3975
|
if ("hide" in processedBlock2.value)
|
|
3975
3976
|
return !processedBlock2.value.hide;
|
|
3976
3977
|
if ("show" in processedBlock2.value)
|
|
3977
3978
|
return processedBlock2.value.show;
|
|
3979
|
+
if (((_a2 = props2.block.repeat) == null ? void 0 : _a2.collection) && !((_b = repeatItem2.value) == null ? void 0 : _b.length))
|
|
3980
|
+
return false;
|
|
3978
3981
|
return true;
|
|
3979
3982
|
}, "Block_component_canShowBlock_useComputed_NJEFz8ICF08", [
|
|
3980
|
-
processedBlock
|
|
3983
|
+
processedBlock,
|
|
3984
|
+
props,
|
|
3985
|
+
repeatItem
|
|
3981
3986
|
]));
|
|
3982
3987
|
const childrenWithoutParentComponent = qwik.useComputedQrl(/* @__PURE__ */ qwik.inlinedQrl(() => {
|
|
3983
3988
|
var _a2;
|
|
@@ -6392,7 +6397,7 @@ const getInteractionPropertiesForEvent = (event) => {
|
|
|
6392
6397
|
}
|
|
6393
6398
|
};
|
|
6394
6399
|
};
|
|
6395
|
-
const SDK_VERSION = "0.7.
|
|
6400
|
+
const SDK_VERSION = "0.7.5";
|
|
6396
6401
|
const registry = {};
|
|
6397
6402
|
function register(type, info) {
|
|
6398
6403
|
let typeList = registry[type];
|
|
@@ -6903,22 +6908,19 @@ ${getFontCss({
|
|
|
6903
6908
|
const getContextStateInitialValue = ({ content, data, locale }) => {
|
|
6904
6909
|
var _a, _b, _c;
|
|
6905
6910
|
const defaultValues = {};
|
|
6906
|
-
|
|
6907
|
-
|
|
6908
|
-
if (input.name && input.defaultValue !== void 0
|
|
6911
|
+
const initialState = ((_a = content == null ? void 0 : content.data) == null ? void 0 : _a.state) || {};
|
|
6912
|
+
(_c = (_b = content == null ? void 0 : content.data) == null ? void 0 : _b.inputs) == null ? void 0 : _c.forEach((input) => {
|
|
6913
|
+
if (input.name && input.defaultValue !== void 0)
|
|
6909
6914
|
defaultValues[input.name] = input.defaultValue;
|
|
6910
6915
|
});
|
|
6911
|
-
|
|
6912
|
-
...
|
|
6916
|
+
return {
|
|
6917
|
+
...defaultValues,
|
|
6918
|
+
...initialState,
|
|
6913
6919
|
...data,
|
|
6914
6920
|
...locale ? {
|
|
6915
6921
|
locale
|
|
6916
6922
|
} : {}
|
|
6917
6923
|
};
|
|
6918
|
-
return {
|
|
6919
|
-
...defaultValues,
|
|
6920
|
-
...stateToUse
|
|
6921
|
-
};
|
|
6922
6924
|
};
|
|
6923
6925
|
const getContentInitialValue = ({ content, data }) => {
|
|
6924
6926
|
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,19 @@ const Block = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl((props) =>
|
|
|
3968
3968
|
props
|
|
3969
3969
|
]));
|
|
3970
3970
|
const canShowBlock = useComputedQrl(/* @__PURE__ */ inlinedQrl(() => {
|
|
3971
|
-
|
|
3971
|
+
var _a2, _b;
|
|
3972
|
+
const [processedBlock2, props2, repeatItem2] = useLexicalScope();
|
|
3972
3973
|
if ("hide" in processedBlock2.value)
|
|
3973
3974
|
return !processedBlock2.value.hide;
|
|
3974
3975
|
if ("show" in processedBlock2.value)
|
|
3975
3976
|
return processedBlock2.value.show;
|
|
3977
|
+
if (((_a2 = props2.block.repeat) == null ? void 0 : _a2.collection) && !((_b = repeatItem2.value) == null ? void 0 : _b.length))
|
|
3978
|
+
return false;
|
|
3976
3979
|
return true;
|
|
3977
3980
|
}, "Block_component_canShowBlock_useComputed_NJEFz8ICF08", [
|
|
3978
|
-
processedBlock
|
|
3981
|
+
processedBlock,
|
|
3982
|
+
props,
|
|
3983
|
+
repeatItem
|
|
3979
3984
|
]));
|
|
3980
3985
|
const childrenWithoutParentComponent = useComputedQrl(/* @__PURE__ */ inlinedQrl(() => {
|
|
3981
3986
|
var _a2;
|
|
@@ -6390,7 +6395,7 @@ const getInteractionPropertiesForEvent = (event) => {
|
|
|
6390
6395
|
}
|
|
6391
6396
|
};
|
|
6392
6397
|
};
|
|
6393
|
-
const SDK_VERSION = "0.7.
|
|
6398
|
+
const SDK_VERSION = "0.7.5";
|
|
6394
6399
|
const registry = {};
|
|
6395
6400
|
function register(type, info) {
|
|
6396
6401
|
let typeList = registry[type];
|
|
@@ -6901,22 +6906,19 @@ ${getFontCss({
|
|
|
6901
6906
|
const getContextStateInitialValue = ({ content, data, locale }) => {
|
|
6902
6907
|
var _a, _b, _c;
|
|
6903
6908
|
const defaultValues = {};
|
|
6904
|
-
|
|
6905
|
-
|
|
6906
|
-
if (input.name && input.defaultValue !== void 0
|
|
6909
|
+
const initialState = ((_a = content == null ? void 0 : content.data) == null ? void 0 : _a.state) || {};
|
|
6910
|
+
(_c = (_b = content == null ? void 0 : content.data) == null ? void 0 : _b.inputs) == null ? void 0 : _c.forEach((input) => {
|
|
6911
|
+
if (input.name && input.defaultValue !== void 0)
|
|
6907
6912
|
defaultValues[input.name] = input.defaultValue;
|
|
6908
6913
|
});
|
|
6909
|
-
|
|
6910
|
-
...
|
|
6914
|
+
return {
|
|
6915
|
+
...defaultValues,
|
|
6916
|
+
...initialState,
|
|
6911
6917
|
...data,
|
|
6912
6918
|
...locale ? {
|
|
6913
6919
|
locale
|
|
6914
6920
|
} : {}
|
|
6915
6921
|
};
|
|
6916
|
-
return {
|
|
6917
|
-
...defaultValues,
|
|
6918
|
-
...stateToUse
|
|
6919
|
-
};
|
|
6920
6922
|
};
|
|
6921
6923
|
const getContentInitialValue = ({ content, data }) => {
|
|
6922
6924
|
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,19 @@ const Block = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inlinedQrl(
|
|
|
840
840
|
props
|
|
841
841
|
]));
|
|
842
842
|
const canShowBlock = qwik.useComputedQrl(/* @__PURE__ */ qwik.inlinedQrl(() => {
|
|
843
|
-
|
|
843
|
+
var _a2, _b;
|
|
844
|
+
const [processedBlock2, props2, repeatItem2] = qwik.useLexicalScope();
|
|
844
845
|
if ("hide" in processedBlock2.value)
|
|
845
846
|
return !processedBlock2.value.hide;
|
|
846
847
|
if ("show" in processedBlock2.value)
|
|
847
848
|
return processedBlock2.value.show;
|
|
849
|
+
if (((_a2 = props2.block.repeat) == null ? void 0 : _a2.collection) && !((_b = repeatItem2.value) == null ? void 0 : _b.length))
|
|
850
|
+
return false;
|
|
848
851
|
return true;
|
|
849
852
|
}, "Block_component_canShowBlock_useComputed_NJEFz8ICF08", [
|
|
850
|
-
processedBlock
|
|
853
|
+
processedBlock,
|
|
854
|
+
props,
|
|
855
|
+
repeatItem
|
|
851
856
|
]));
|
|
852
857
|
const childrenWithoutParentComponent = qwik.useComputedQrl(/* @__PURE__ */ qwik.inlinedQrl(() => {
|
|
853
858
|
var _a2;
|
|
@@ -3262,7 +3267,7 @@ const getInteractionPropertiesForEvent = (event) => {
|
|
|
3262
3267
|
}
|
|
3263
3268
|
};
|
|
3264
3269
|
};
|
|
3265
|
-
const SDK_VERSION = "0.7.
|
|
3270
|
+
const SDK_VERSION = "0.7.5";
|
|
3266
3271
|
const registry = {};
|
|
3267
3272
|
function register(type, info) {
|
|
3268
3273
|
let typeList = registry[type];
|
|
@@ -3773,22 +3778,19 @@ ${getFontCss({
|
|
|
3773
3778
|
const getContextStateInitialValue = ({ content, data, locale }) => {
|
|
3774
3779
|
var _a, _b, _c;
|
|
3775
3780
|
const defaultValues = {};
|
|
3776
|
-
|
|
3777
|
-
|
|
3778
|
-
if (input.name && input.defaultValue !== void 0
|
|
3781
|
+
const initialState = ((_a = content == null ? void 0 : content.data) == null ? void 0 : _a.state) || {};
|
|
3782
|
+
(_c = (_b = content == null ? void 0 : content.data) == null ? void 0 : _b.inputs) == null ? void 0 : _c.forEach((input) => {
|
|
3783
|
+
if (input.name && input.defaultValue !== void 0)
|
|
3779
3784
|
defaultValues[input.name] = input.defaultValue;
|
|
3780
3785
|
});
|
|
3781
|
-
|
|
3782
|
-
...
|
|
3786
|
+
return {
|
|
3787
|
+
...defaultValues,
|
|
3788
|
+
...initialState,
|
|
3783
3789
|
...data,
|
|
3784
3790
|
...locale ? {
|
|
3785
3791
|
locale
|
|
3786
3792
|
} : {}
|
|
3787
3793
|
};
|
|
3788
|
-
return {
|
|
3789
|
-
...defaultValues,
|
|
3790
|
-
...stateToUse
|
|
3791
|
-
};
|
|
3792
3794
|
};
|
|
3793
3795
|
const getContentInitialValue = ({ content, data }) => {
|
|
3794
3796
|
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,19 @@ const Block = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl((props) =>
|
|
|
838
838
|
props
|
|
839
839
|
]));
|
|
840
840
|
const canShowBlock = useComputedQrl(/* @__PURE__ */ inlinedQrl(() => {
|
|
841
|
-
|
|
841
|
+
var _a2, _b;
|
|
842
|
+
const [processedBlock2, props2, repeatItem2] = useLexicalScope();
|
|
842
843
|
if ("hide" in processedBlock2.value)
|
|
843
844
|
return !processedBlock2.value.hide;
|
|
844
845
|
if ("show" in processedBlock2.value)
|
|
845
846
|
return processedBlock2.value.show;
|
|
847
|
+
if (((_a2 = props2.block.repeat) == null ? void 0 : _a2.collection) && !((_b = repeatItem2.value) == null ? void 0 : _b.length))
|
|
848
|
+
return false;
|
|
846
849
|
return true;
|
|
847
850
|
}, "Block_component_canShowBlock_useComputed_NJEFz8ICF08", [
|
|
848
|
-
processedBlock
|
|
851
|
+
processedBlock,
|
|
852
|
+
props,
|
|
853
|
+
repeatItem
|
|
849
854
|
]));
|
|
850
855
|
const childrenWithoutParentComponent = useComputedQrl(/* @__PURE__ */ inlinedQrl(() => {
|
|
851
856
|
var _a2;
|
|
@@ -3260,7 +3265,7 @@ const getInteractionPropertiesForEvent = (event) => {
|
|
|
3260
3265
|
}
|
|
3261
3266
|
};
|
|
3262
3267
|
};
|
|
3263
|
-
const SDK_VERSION = "0.7.
|
|
3268
|
+
const SDK_VERSION = "0.7.5";
|
|
3264
3269
|
const registry = {};
|
|
3265
3270
|
function register(type, info) {
|
|
3266
3271
|
let typeList = registry[type];
|
|
@@ -3771,22 +3776,19 @@ ${getFontCss({
|
|
|
3771
3776
|
const getContextStateInitialValue = ({ content, data, locale }) => {
|
|
3772
3777
|
var _a, _b, _c;
|
|
3773
3778
|
const defaultValues = {};
|
|
3774
|
-
|
|
3775
|
-
|
|
3776
|
-
if (input.name && input.defaultValue !== void 0
|
|
3779
|
+
const initialState = ((_a = content == null ? void 0 : content.data) == null ? void 0 : _a.state) || {};
|
|
3780
|
+
(_c = (_b = content == null ? void 0 : content.data) == null ? void 0 : _b.inputs) == null ? void 0 : _c.forEach((input) => {
|
|
3781
|
+
if (input.name && input.defaultValue !== void 0)
|
|
3777
3782
|
defaultValues[input.name] = input.defaultValue;
|
|
3778
3783
|
});
|
|
3779
|
-
|
|
3780
|
-
...
|
|
3784
|
+
return {
|
|
3785
|
+
...defaultValues,
|
|
3786
|
+
...initialState,
|
|
3781
3787
|
...data,
|
|
3782
3788
|
...locale ? {
|
|
3783
3789
|
locale
|
|
3784
3790
|
} : {}
|
|
3785
3791
|
};
|
|
3786
|
-
return {
|
|
3787
|
-
...defaultValues,
|
|
3788
|
-
...stateToUse
|
|
3789
|
-
};
|
|
3790
3792
|
};
|
|
3791
3793
|
const getContentInitialValue = ({ content, data }) => {
|
|
3792
3794
|
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.5";
|