@builder.io/sdk-qwik 0.14.8 → 0.14.9
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 +83 -49
- package/lib/browser/index.qwik.mjs +83 -49
- package/lib/edge/index.qwik.cjs +83 -49
- package/lib/edge/index.qwik.mjs +83 -49
- package/lib/node/index.qwik.cjs +83 -49
- package/lib/node/index.qwik.mjs +83 -49
- package/package.json +2 -2
- package/types/src/constants/sdk-version.d.ts +1 -1
package/lib/node/index.qwik.cjs
CHANGED
|
@@ -1904,7 +1904,7 @@ const Image = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inlinedQrl(
|
|
|
1904
1904
|
children: [
|
|
1905
1905
|
/* @__PURE__ */ qwik._jsxQ("picture", null, null, [
|
|
1906
1906
|
webpSrcSet.value ? /* @__PURE__ */ qwik._jsxQ("source", null, {
|
|
1907
|
-
|
|
1907
|
+
srcset: qwik._fnSignal((p0) => p0.value, [
|
|
1908
1908
|
webpSrcSet
|
|
1909
1909
|
], "p0.value"),
|
|
1910
1910
|
type: "image/webp"
|
|
@@ -1926,7 +1926,7 @@ const Image = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inlinedQrl(
|
|
|
1926
1926
|
src: qwik._fnSignal((p0) => p0.image, [
|
|
1927
1927
|
props
|
|
1928
1928
|
], "p0.image"),
|
|
1929
|
-
|
|
1929
|
+
srcset: qwik._fnSignal((p0) => p0.value, [
|
|
1930
1930
|
srcSetToUse
|
|
1931
1931
|
], "p0.value"),
|
|
1932
1932
|
style: qwik._fnSignal((p0, p1) => ({
|
|
@@ -4496,7 +4496,7 @@ function isFromTrustedHost(trustedHosts, e) {
|
|
|
4496
4496
|
const url = new URL(e.origin), hostname = url.hostname;
|
|
4497
4497
|
return (trustedHosts || DEFAULT_TRUSTED_HOSTS).findIndex((trustedHost) => trustedHost.startsWith("*.") ? hostname.endsWith(trustedHost.slice(1)) : trustedHost === hostname) > -1;
|
|
4498
4498
|
}
|
|
4499
|
-
const SDK_VERSION = "0.14.
|
|
4499
|
+
const SDK_VERSION = "0.14.9";
|
|
4500
4500
|
const registry = {};
|
|
4501
4501
|
function register(type, info) {
|
|
4502
4502
|
let typeList = registry[type];
|
|
@@ -4717,21 +4717,18 @@ const processMessage = function processMessage2(props, state, elementRef, event)
|
|
|
4717
4717
|
const { breakpoints, contentId } = messageContent;
|
|
4718
4718
|
if (!contentId || contentId !== ((_a = props.builderContextSignal.content) == null ? void 0 : _a.id))
|
|
4719
4719
|
return;
|
|
4720
|
-
if (breakpoints)
|
|
4720
|
+
if (breakpoints)
|
|
4721
4721
|
mergeNewContent(props, state, elementRef, {
|
|
4722
4722
|
meta: {
|
|
4723
4723
|
breakpoints
|
|
4724
4724
|
}
|
|
4725
4725
|
});
|
|
4726
|
-
state.forceReRenderCount = state.forceReRenderCount + 1;
|
|
4727
|
-
}
|
|
4728
4726
|
},
|
|
4729
4727
|
animation: (animation) => {
|
|
4730
4728
|
triggerAnimation(animation);
|
|
4731
4729
|
},
|
|
4732
4730
|
contentUpdate: (newContent) => {
|
|
4733
4731
|
mergeNewContent(props, state, elementRef, newContent);
|
|
4734
|
-
state.forceReRenderCount = state.forceReRenderCount + 1;
|
|
4735
4732
|
}
|
|
4736
4733
|
}
|
|
4737
4734
|
})(event);
|
|
@@ -4818,23 +4815,17 @@ const emitStateUpdate = function emitStateUpdate2(props, state, elementRef) {
|
|
|
4818
4815
|
}));
|
|
4819
4816
|
};
|
|
4820
4817
|
const EnableEditor = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inlinedQrl((props) => {
|
|
4821
|
-
var _a, _b, _c, _d, _e;
|
|
4822
4818
|
qwik._jsxBranch();
|
|
4823
4819
|
const elementRef = qwik.useSignal();
|
|
4824
4820
|
const state = qwik.useStore({
|
|
4825
4821
|
ContentWrapper: props.contentWrapper || "div",
|
|
4826
4822
|
clicked: false,
|
|
4827
|
-
|
|
4828
|
-
forceReRenderCount: 0,
|
|
4829
|
-
httpReqsData: {},
|
|
4830
|
-
lastUpdated: 0,
|
|
4831
|
-
shouldSendResetCookie: false
|
|
4823
|
+
httpReqsData: {}
|
|
4832
4824
|
}, {
|
|
4833
4825
|
deep: true
|
|
4834
4826
|
});
|
|
4835
4827
|
qwik.useOn("initeditingbldr", /* @__PURE__ */ qwik.inlinedQrl((event, element) => {
|
|
4836
4828
|
const [elementRef2, props2, state2] = qwik.useLexicalScope();
|
|
4837
|
-
state2.forceReRenderCount = state2.forceReRenderCount + 1;
|
|
4838
4829
|
window.addEventListener("message", processMessage.bind(null, props2, state2, elementRef2));
|
|
4839
4830
|
registerInsertMenu();
|
|
4840
4831
|
setupBrowserForEditing({
|
|
@@ -4849,9 +4840,9 @@ const EnableEditor = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inli
|
|
|
4849
4840
|
} : {}
|
|
4850
4841
|
});
|
|
4851
4842
|
Object.values(props2.builderContextSignal.componentInfos).forEach((registeredComponent) => {
|
|
4852
|
-
var
|
|
4843
|
+
var _a;
|
|
4853
4844
|
const message = createRegisterComponentMessage(registeredComponent);
|
|
4854
|
-
(
|
|
4845
|
+
(_a = window.parent) == null ? void 0 : _a.postMessage(message, "*");
|
|
4855
4846
|
});
|
|
4856
4847
|
window.addEventListener("builder:component:stateChangeListenerActivated", emitStateUpdate.bind(null, props2, state2, elementRef2));
|
|
4857
4848
|
}, "EnableEditor_component_useOn_Qs8c0yql2i0", [
|
|
@@ -4880,17 +4871,17 @@ const EnableEditor = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inli
|
|
|
4880
4871
|
state
|
|
4881
4872
|
]));
|
|
4882
4873
|
qwik.useOn("qvisible", /* @__PURE__ */ qwik.inlinedQrl((event, element) => {
|
|
4883
|
-
var
|
|
4874
|
+
var _a, _b, _c, _d;
|
|
4884
4875
|
if (isBrowser()) {
|
|
4885
4876
|
if (isEditing()) {
|
|
4886
4877
|
if (element)
|
|
4887
4878
|
element.dispatchEvent(new CustomEvent("initeditingbldr"));
|
|
4888
4879
|
}
|
|
4889
|
-
const shouldTrackImpression = ((
|
|
4880
|
+
const shouldTrackImpression = ((_a = element.attributes.getNamedItem("shouldTrack")) == null ? void 0 : _a.value) === "true";
|
|
4890
4881
|
if (shouldTrackImpression) {
|
|
4891
|
-
const variationId = (
|
|
4892
|
-
const contentId = (
|
|
4893
|
-
const apiKeyProp = (
|
|
4882
|
+
const variationId = (_b = element.attributes.getNamedItem("variationId")) == null ? void 0 : _b.value;
|
|
4883
|
+
const contentId = (_c = element.attributes.getNamedItem("contentId")) == null ? void 0 : _c.value;
|
|
4884
|
+
const apiKeyProp = (_d = element.attributes.getNamedItem("apiKey")) == null ? void 0 : _d.value;
|
|
4894
4885
|
_track({
|
|
4895
4886
|
type: "impression",
|
|
4896
4887
|
canTrack: true,
|
|
@@ -4928,20 +4919,14 @@ const EnableEditor = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inli
|
|
|
4928
4919
|
props,
|
|
4929
4920
|
state
|
|
4930
4921
|
]));
|
|
4931
|
-
qwik.useTaskQrl(/* @__PURE__ */ qwik.inlinedQrl(({ track: track2 }) => {
|
|
4932
|
-
const [state2] = qwik.useLexicalScope();
|
|
4933
|
-
track2(() => state2.shouldSendResetCookie);
|
|
4934
|
-
}, "EnableEditor_component_useTask_2_xVyv0tDqZLs", [
|
|
4935
|
-
state
|
|
4936
|
-
]));
|
|
4937
4922
|
qwik.useTaskQrl(/* @__PURE__ */ qwik.inlinedQrl(({ track: track2 }) => {
|
|
4938
4923
|
const [elementRef2, props2, state2] = qwik.useLexicalScope();
|
|
4939
4924
|
track2(() => {
|
|
4940
|
-
var
|
|
4941
|
-
return (
|
|
4925
|
+
var _a, _b;
|
|
4926
|
+
return (_b = (_a = props2.builderContextSignal.content) == null ? void 0 : _a.data) == null ? void 0 : _b.jsCode;
|
|
4942
4927
|
});
|
|
4943
4928
|
evaluateJsCode(props2);
|
|
4944
|
-
}, "
|
|
4929
|
+
}, "EnableEditor_component_useTask_2_xVyv0tDqZLs", [
|
|
4945
4930
|
elementRef,
|
|
4946
4931
|
props,
|
|
4947
4932
|
state
|
|
@@ -4949,11 +4934,11 @@ const EnableEditor = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inli
|
|
|
4949
4934
|
qwik.useTaskQrl(/* @__PURE__ */ qwik.inlinedQrl(({ track: track2 }) => {
|
|
4950
4935
|
const [elementRef2, props2, state2] = qwik.useLexicalScope();
|
|
4951
4936
|
track2(() => {
|
|
4952
|
-
var
|
|
4953
|
-
return (
|
|
4937
|
+
var _a, _b;
|
|
4938
|
+
return (_b = (_a = props2.builderContextSignal.content) == null ? void 0 : _a.data) == null ? void 0 : _b.httpRequests;
|
|
4954
4939
|
});
|
|
4955
4940
|
runHttpRequests(props2, state2, elementRef2);
|
|
4956
|
-
}, "
|
|
4941
|
+
}, "EnableEditor_component_useTask_3_bQ0e5LHZwWE", [
|
|
4957
4942
|
elementRef,
|
|
4958
4943
|
props,
|
|
4959
4944
|
state
|
|
@@ -4962,7 +4947,7 @@ const EnableEditor = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inli
|
|
|
4962
4947
|
const [elementRef2, props2, state2] = qwik.useLexicalScope();
|
|
4963
4948
|
track2(() => props2.builderContextSignal.rootState);
|
|
4964
4949
|
emitStateUpdate(props2);
|
|
4965
|
-
}, "
|
|
4950
|
+
}, "EnableEditor_component_useTask_4_moHYZG8uNVU", [
|
|
4966
4951
|
elementRef,
|
|
4967
4952
|
props,
|
|
4968
4953
|
state
|
|
@@ -4972,7 +4957,7 @@ const EnableEditor = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inli
|
|
|
4972
4957
|
track2(() => props2.data);
|
|
4973
4958
|
if (props2.data)
|
|
4974
4959
|
mergeNewRootState(props2, state2, elementRef2, props2.data);
|
|
4975
|
-
}, "
|
|
4960
|
+
}, "EnableEditor_component_useTask_5_24QxS0r0KF8", [
|
|
4976
4961
|
elementRef,
|
|
4977
4962
|
props,
|
|
4978
4963
|
state
|
|
@@ -4984,37 +4969,86 @@ const EnableEditor = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inli
|
|
|
4984
4969
|
mergeNewRootState(props2, state2, elementRef2, {
|
|
4985
4970
|
locale: props2.locale
|
|
4986
4971
|
});
|
|
4987
|
-
}, "
|
|
4972
|
+
}, "EnableEditor_component_useTask_6_0CaFTUOgv08", [
|
|
4988
4973
|
elementRef,
|
|
4989
4974
|
props,
|
|
4990
4975
|
state
|
|
4991
4976
|
]));
|
|
4992
4977
|
return /* @__PURE__ */ qwik._jsxC(jsxRuntime.Fragment, {
|
|
4993
|
-
children: props.builderContextSignal.content ? /* @__PURE__ */ qwik.
|
|
4994
|
-
apiKey
|
|
4995
|
-
|
|
4996
|
-
|
|
4997
|
-
|
|
4998
|
-
|
|
4999
|
-
|
|
4978
|
+
children: props.builderContextSignal.content ? /* @__PURE__ */ qwik._jsxC(state.ContentWrapper, {
|
|
4979
|
+
get apiKey() {
|
|
4980
|
+
return props.apiKey;
|
|
4981
|
+
},
|
|
4982
|
+
get contentId() {
|
|
4983
|
+
var _a;
|
|
4984
|
+
return (_a = props.builderContextSignal.content) == null ? void 0 : _a.id;
|
|
4985
|
+
},
|
|
4986
|
+
get variationId() {
|
|
4987
|
+
var _a;
|
|
4988
|
+
return (_a = props.builderContextSignal.content) == null ? void 0 : _a.testVariationId;
|
|
4989
|
+
},
|
|
5000
4990
|
onClick$: /* @__PURE__ */ qwik.inlinedQrl((event) => {
|
|
5001
4991
|
const [elementRef2, props2, state2] = qwik.useLexicalScope();
|
|
5002
4992
|
return onClick(props2, state2, elementRef2, event);
|
|
5003
|
-
}, "
|
|
4993
|
+
}, "EnableEditor_component__Fragment_onClick_b4nYT3DrjEk", [
|
|
5004
4994
|
elementRef,
|
|
5005
4995
|
props,
|
|
5006
4996
|
state
|
|
5007
4997
|
]),
|
|
5008
|
-
|
|
5009
|
-
|
|
4998
|
+
ref: elementRef,
|
|
4999
|
+
shouldTrack: String(props.builderContextSignal.content && getDefaultCanTrack(props.canTrack)),
|
|
5000
|
+
get "builder-content-id"() {
|
|
5001
|
+
var _a;
|
|
5002
|
+
return (_a = props.builderContextSignal.content) == null ? void 0 : _a.id;
|
|
5003
|
+
},
|
|
5004
|
+
get "builder-model"() {
|
|
5005
|
+
return props.model;
|
|
5006
|
+
},
|
|
5010
5007
|
...props.showContent ? {} : {
|
|
5011
5008
|
hidden: true,
|
|
5012
5009
|
"aria-hidden": true
|
|
5013
5010
|
},
|
|
5014
5011
|
...props.contentWrapperProps,
|
|
5015
|
-
class
|
|
5016
|
-
|
|
5017
|
-
|
|
5012
|
+
get class() {
|
|
5013
|
+
var _a, _b;
|
|
5014
|
+
return `variant-${((_a = props.content) == null ? void 0 : _a.testVariationId) || ((_b = props.content) == null ? void 0 : _b.id)}`;
|
|
5015
|
+
},
|
|
5016
|
+
children: /* @__PURE__ */ qwik._jsxC(qwik.Slot, null, 3, "06_0"),
|
|
5017
|
+
[qwik._IMMUTABLE]: {
|
|
5018
|
+
apiKey: qwik._fnSignal((p0) => p0.apiKey, [
|
|
5019
|
+
props
|
|
5020
|
+
], "p0.apiKey"),
|
|
5021
|
+
"builder-content-id": qwik._fnSignal((p0) => {
|
|
5022
|
+
var _a;
|
|
5023
|
+
return (_a = p0.builderContextSignal.content) == null ? void 0 : _a.id;
|
|
5024
|
+
}, [
|
|
5025
|
+
props
|
|
5026
|
+
], "p0.builderContextSignal.content?.id"),
|
|
5027
|
+
"builder-model": qwik._fnSignal((p0) => p0.model, [
|
|
5028
|
+
props
|
|
5029
|
+
], "p0.model"),
|
|
5030
|
+
class: qwik._fnSignal((p0) => {
|
|
5031
|
+
var _a, _b;
|
|
5032
|
+
return `variant-${((_a = p0.content) == null ? void 0 : _a.testVariationId) || ((_b = p0.content) == null ? void 0 : _b.id)}`;
|
|
5033
|
+
}, [
|
|
5034
|
+
props
|
|
5035
|
+
], "`variant-${p0.content?.testVariationId||p0.content?.id}`"),
|
|
5036
|
+
contentId: qwik._fnSignal((p0) => {
|
|
5037
|
+
var _a;
|
|
5038
|
+
return (_a = p0.builderContextSignal.content) == null ? void 0 : _a.id;
|
|
5039
|
+
}, [
|
|
5040
|
+
props
|
|
5041
|
+
], "p0.builderContextSignal.content?.id"),
|
|
5042
|
+
ref: qwik._IMMUTABLE,
|
|
5043
|
+
variationId: qwik._fnSignal((p0) => {
|
|
5044
|
+
var _a;
|
|
5045
|
+
return (_a = p0.builderContextSignal.content) == null ? void 0 : _a.testVariationId;
|
|
5046
|
+
}, [
|
|
5047
|
+
props
|
|
5048
|
+
], "p0.builderContextSignal.content?.testVariationId")
|
|
5049
|
+
}
|
|
5050
|
+
}, 0, "06_1") : null
|
|
5051
|
+
}, 1, "06_2");
|
|
5018
5052
|
}, "EnableEditor_component_ko1mO8oaj8k"));
|
|
5019
5053
|
const getCssFromFont = (font) => {
|
|
5020
5054
|
var _a;
|
package/lib/node/index.qwik.mjs
CHANGED
|
@@ -1902,7 +1902,7 @@ const Image = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl((props) =>
|
|
|
1902
1902
|
children: [
|
|
1903
1903
|
/* @__PURE__ */ _jsxQ("picture", null, null, [
|
|
1904
1904
|
webpSrcSet.value ? /* @__PURE__ */ _jsxQ("source", null, {
|
|
1905
|
-
|
|
1905
|
+
srcset: _fnSignal((p0) => p0.value, [
|
|
1906
1906
|
webpSrcSet
|
|
1907
1907
|
], "p0.value"),
|
|
1908
1908
|
type: "image/webp"
|
|
@@ -1924,7 +1924,7 @@ const Image = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl((props) =>
|
|
|
1924
1924
|
src: _fnSignal((p0) => p0.image, [
|
|
1925
1925
|
props
|
|
1926
1926
|
], "p0.image"),
|
|
1927
|
-
|
|
1927
|
+
srcset: _fnSignal((p0) => p0.value, [
|
|
1928
1928
|
srcSetToUse
|
|
1929
1929
|
], "p0.value"),
|
|
1930
1930
|
style: _fnSignal((p0, p1) => ({
|
|
@@ -4494,7 +4494,7 @@ function isFromTrustedHost(trustedHosts, e) {
|
|
|
4494
4494
|
const url = new URL(e.origin), hostname = url.hostname;
|
|
4495
4495
|
return (trustedHosts || DEFAULT_TRUSTED_HOSTS).findIndex((trustedHost) => trustedHost.startsWith("*.") ? hostname.endsWith(trustedHost.slice(1)) : trustedHost === hostname) > -1;
|
|
4496
4496
|
}
|
|
4497
|
-
const SDK_VERSION = "0.14.
|
|
4497
|
+
const SDK_VERSION = "0.14.9";
|
|
4498
4498
|
const registry = {};
|
|
4499
4499
|
function register(type, info) {
|
|
4500
4500
|
let typeList = registry[type];
|
|
@@ -4715,21 +4715,18 @@ const processMessage = function processMessage2(props, state, elementRef, event)
|
|
|
4715
4715
|
const { breakpoints, contentId } = messageContent;
|
|
4716
4716
|
if (!contentId || contentId !== ((_a = props.builderContextSignal.content) == null ? void 0 : _a.id))
|
|
4717
4717
|
return;
|
|
4718
|
-
if (breakpoints)
|
|
4718
|
+
if (breakpoints)
|
|
4719
4719
|
mergeNewContent(props, state, elementRef, {
|
|
4720
4720
|
meta: {
|
|
4721
4721
|
breakpoints
|
|
4722
4722
|
}
|
|
4723
4723
|
});
|
|
4724
|
-
state.forceReRenderCount = state.forceReRenderCount + 1;
|
|
4725
|
-
}
|
|
4726
4724
|
},
|
|
4727
4725
|
animation: (animation) => {
|
|
4728
4726
|
triggerAnimation(animation);
|
|
4729
4727
|
},
|
|
4730
4728
|
contentUpdate: (newContent) => {
|
|
4731
4729
|
mergeNewContent(props, state, elementRef, newContent);
|
|
4732
|
-
state.forceReRenderCount = state.forceReRenderCount + 1;
|
|
4733
4730
|
}
|
|
4734
4731
|
}
|
|
4735
4732
|
})(event);
|
|
@@ -4816,23 +4813,17 @@ const emitStateUpdate = function emitStateUpdate2(props, state, elementRef) {
|
|
|
4816
4813
|
}));
|
|
4817
4814
|
};
|
|
4818
4815
|
const EnableEditor = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl((props) => {
|
|
4819
|
-
var _a, _b, _c, _d, _e;
|
|
4820
4816
|
_jsxBranch();
|
|
4821
4817
|
const elementRef = useSignal();
|
|
4822
4818
|
const state = useStore({
|
|
4823
4819
|
ContentWrapper: props.contentWrapper || "div",
|
|
4824
4820
|
clicked: false,
|
|
4825
|
-
|
|
4826
|
-
forceReRenderCount: 0,
|
|
4827
|
-
httpReqsData: {},
|
|
4828
|
-
lastUpdated: 0,
|
|
4829
|
-
shouldSendResetCookie: false
|
|
4821
|
+
httpReqsData: {}
|
|
4830
4822
|
}, {
|
|
4831
4823
|
deep: true
|
|
4832
4824
|
});
|
|
4833
4825
|
useOn("initeditingbldr", /* @__PURE__ */ inlinedQrl((event, element) => {
|
|
4834
4826
|
const [elementRef2, props2, state2] = useLexicalScope();
|
|
4835
|
-
state2.forceReRenderCount = state2.forceReRenderCount + 1;
|
|
4836
4827
|
window.addEventListener("message", processMessage.bind(null, props2, state2, elementRef2));
|
|
4837
4828
|
registerInsertMenu();
|
|
4838
4829
|
setupBrowserForEditing({
|
|
@@ -4847,9 +4838,9 @@ const EnableEditor = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl((pr
|
|
|
4847
4838
|
} : {}
|
|
4848
4839
|
});
|
|
4849
4840
|
Object.values(props2.builderContextSignal.componentInfos).forEach((registeredComponent) => {
|
|
4850
|
-
var
|
|
4841
|
+
var _a;
|
|
4851
4842
|
const message = createRegisterComponentMessage(registeredComponent);
|
|
4852
|
-
(
|
|
4843
|
+
(_a = window.parent) == null ? void 0 : _a.postMessage(message, "*");
|
|
4853
4844
|
});
|
|
4854
4845
|
window.addEventListener("builder:component:stateChangeListenerActivated", emitStateUpdate.bind(null, props2, state2, elementRef2));
|
|
4855
4846
|
}, "EnableEditor_component_useOn_Qs8c0yql2i0", [
|
|
@@ -4878,17 +4869,17 @@ const EnableEditor = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl((pr
|
|
|
4878
4869
|
state
|
|
4879
4870
|
]));
|
|
4880
4871
|
useOn("qvisible", /* @__PURE__ */ inlinedQrl((event, element) => {
|
|
4881
|
-
var
|
|
4872
|
+
var _a, _b, _c, _d;
|
|
4882
4873
|
if (isBrowser()) {
|
|
4883
4874
|
if (isEditing()) {
|
|
4884
4875
|
if (element)
|
|
4885
4876
|
element.dispatchEvent(new CustomEvent("initeditingbldr"));
|
|
4886
4877
|
}
|
|
4887
|
-
const shouldTrackImpression = ((
|
|
4878
|
+
const shouldTrackImpression = ((_a = element.attributes.getNamedItem("shouldTrack")) == null ? void 0 : _a.value) === "true";
|
|
4888
4879
|
if (shouldTrackImpression) {
|
|
4889
|
-
const variationId = (
|
|
4890
|
-
const contentId = (
|
|
4891
|
-
const apiKeyProp = (
|
|
4880
|
+
const variationId = (_b = element.attributes.getNamedItem("variationId")) == null ? void 0 : _b.value;
|
|
4881
|
+
const contentId = (_c = element.attributes.getNamedItem("contentId")) == null ? void 0 : _c.value;
|
|
4882
|
+
const apiKeyProp = (_d = element.attributes.getNamedItem("apiKey")) == null ? void 0 : _d.value;
|
|
4892
4883
|
_track({
|
|
4893
4884
|
type: "impression",
|
|
4894
4885
|
canTrack: true,
|
|
@@ -4926,20 +4917,14 @@ const EnableEditor = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl((pr
|
|
|
4926
4917
|
props,
|
|
4927
4918
|
state
|
|
4928
4919
|
]));
|
|
4929
|
-
useTaskQrl(/* @__PURE__ */ inlinedQrl(({ track: track2 }) => {
|
|
4930
|
-
const [state2] = useLexicalScope();
|
|
4931
|
-
track2(() => state2.shouldSendResetCookie);
|
|
4932
|
-
}, "EnableEditor_component_useTask_2_xVyv0tDqZLs", [
|
|
4933
|
-
state
|
|
4934
|
-
]));
|
|
4935
4920
|
useTaskQrl(/* @__PURE__ */ inlinedQrl(({ track: track2 }) => {
|
|
4936
4921
|
const [elementRef2, props2, state2] = useLexicalScope();
|
|
4937
4922
|
track2(() => {
|
|
4938
|
-
var
|
|
4939
|
-
return (
|
|
4923
|
+
var _a, _b;
|
|
4924
|
+
return (_b = (_a = props2.builderContextSignal.content) == null ? void 0 : _a.data) == null ? void 0 : _b.jsCode;
|
|
4940
4925
|
});
|
|
4941
4926
|
evaluateJsCode(props2);
|
|
4942
|
-
}, "
|
|
4927
|
+
}, "EnableEditor_component_useTask_2_xVyv0tDqZLs", [
|
|
4943
4928
|
elementRef,
|
|
4944
4929
|
props,
|
|
4945
4930
|
state
|
|
@@ -4947,11 +4932,11 @@ const EnableEditor = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl((pr
|
|
|
4947
4932
|
useTaskQrl(/* @__PURE__ */ inlinedQrl(({ track: track2 }) => {
|
|
4948
4933
|
const [elementRef2, props2, state2] = useLexicalScope();
|
|
4949
4934
|
track2(() => {
|
|
4950
|
-
var
|
|
4951
|
-
return (
|
|
4935
|
+
var _a, _b;
|
|
4936
|
+
return (_b = (_a = props2.builderContextSignal.content) == null ? void 0 : _a.data) == null ? void 0 : _b.httpRequests;
|
|
4952
4937
|
});
|
|
4953
4938
|
runHttpRequests(props2, state2, elementRef2);
|
|
4954
|
-
}, "
|
|
4939
|
+
}, "EnableEditor_component_useTask_3_bQ0e5LHZwWE", [
|
|
4955
4940
|
elementRef,
|
|
4956
4941
|
props,
|
|
4957
4942
|
state
|
|
@@ -4960,7 +4945,7 @@ const EnableEditor = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl((pr
|
|
|
4960
4945
|
const [elementRef2, props2, state2] = useLexicalScope();
|
|
4961
4946
|
track2(() => props2.builderContextSignal.rootState);
|
|
4962
4947
|
emitStateUpdate(props2);
|
|
4963
|
-
}, "
|
|
4948
|
+
}, "EnableEditor_component_useTask_4_moHYZG8uNVU", [
|
|
4964
4949
|
elementRef,
|
|
4965
4950
|
props,
|
|
4966
4951
|
state
|
|
@@ -4970,7 +4955,7 @@ const EnableEditor = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl((pr
|
|
|
4970
4955
|
track2(() => props2.data);
|
|
4971
4956
|
if (props2.data)
|
|
4972
4957
|
mergeNewRootState(props2, state2, elementRef2, props2.data);
|
|
4973
|
-
}, "
|
|
4958
|
+
}, "EnableEditor_component_useTask_5_24QxS0r0KF8", [
|
|
4974
4959
|
elementRef,
|
|
4975
4960
|
props,
|
|
4976
4961
|
state
|
|
@@ -4982,37 +4967,86 @@ const EnableEditor = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl((pr
|
|
|
4982
4967
|
mergeNewRootState(props2, state2, elementRef2, {
|
|
4983
4968
|
locale: props2.locale
|
|
4984
4969
|
});
|
|
4985
|
-
}, "
|
|
4970
|
+
}, "EnableEditor_component_useTask_6_0CaFTUOgv08", [
|
|
4986
4971
|
elementRef,
|
|
4987
4972
|
props,
|
|
4988
4973
|
state
|
|
4989
4974
|
]));
|
|
4990
4975
|
return /* @__PURE__ */ _jsxC(Fragment, {
|
|
4991
|
-
children: props.builderContextSignal.content ? /* @__PURE__ */
|
|
4992
|
-
apiKey
|
|
4993
|
-
|
|
4994
|
-
|
|
4995
|
-
|
|
4996
|
-
|
|
4997
|
-
|
|
4976
|
+
children: props.builderContextSignal.content ? /* @__PURE__ */ _jsxC(state.ContentWrapper, {
|
|
4977
|
+
get apiKey() {
|
|
4978
|
+
return props.apiKey;
|
|
4979
|
+
},
|
|
4980
|
+
get contentId() {
|
|
4981
|
+
var _a;
|
|
4982
|
+
return (_a = props.builderContextSignal.content) == null ? void 0 : _a.id;
|
|
4983
|
+
},
|
|
4984
|
+
get variationId() {
|
|
4985
|
+
var _a;
|
|
4986
|
+
return (_a = props.builderContextSignal.content) == null ? void 0 : _a.testVariationId;
|
|
4987
|
+
},
|
|
4998
4988
|
onClick$: /* @__PURE__ */ inlinedQrl((event) => {
|
|
4999
4989
|
const [elementRef2, props2, state2] = useLexicalScope();
|
|
5000
4990
|
return onClick(props2, state2, elementRef2, event);
|
|
5001
|
-
}, "
|
|
4991
|
+
}, "EnableEditor_component__Fragment_onClick_b4nYT3DrjEk", [
|
|
5002
4992
|
elementRef,
|
|
5003
4993
|
props,
|
|
5004
4994
|
state
|
|
5005
4995
|
]),
|
|
5006
|
-
|
|
5007
|
-
|
|
4996
|
+
ref: elementRef,
|
|
4997
|
+
shouldTrack: String(props.builderContextSignal.content && getDefaultCanTrack(props.canTrack)),
|
|
4998
|
+
get "builder-content-id"() {
|
|
4999
|
+
var _a;
|
|
5000
|
+
return (_a = props.builderContextSignal.content) == null ? void 0 : _a.id;
|
|
5001
|
+
},
|
|
5002
|
+
get "builder-model"() {
|
|
5003
|
+
return props.model;
|
|
5004
|
+
},
|
|
5008
5005
|
...props.showContent ? {} : {
|
|
5009
5006
|
hidden: true,
|
|
5010
5007
|
"aria-hidden": true
|
|
5011
5008
|
},
|
|
5012
5009
|
...props.contentWrapperProps,
|
|
5013
|
-
class
|
|
5014
|
-
|
|
5015
|
-
|
|
5010
|
+
get class() {
|
|
5011
|
+
var _a, _b;
|
|
5012
|
+
return `variant-${((_a = props.content) == null ? void 0 : _a.testVariationId) || ((_b = props.content) == null ? void 0 : _b.id)}`;
|
|
5013
|
+
},
|
|
5014
|
+
children: /* @__PURE__ */ _jsxC(Slot$1, null, 3, "06_0"),
|
|
5015
|
+
[_IMMUTABLE]: {
|
|
5016
|
+
apiKey: _fnSignal((p0) => p0.apiKey, [
|
|
5017
|
+
props
|
|
5018
|
+
], "p0.apiKey"),
|
|
5019
|
+
"builder-content-id": _fnSignal((p0) => {
|
|
5020
|
+
var _a;
|
|
5021
|
+
return (_a = p0.builderContextSignal.content) == null ? void 0 : _a.id;
|
|
5022
|
+
}, [
|
|
5023
|
+
props
|
|
5024
|
+
], "p0.builderContextSignal.content?.id"),
|
|
5025
|
+
"builder-model": _fnSignal((p0) => p0.model, [
|
|
5026
|
+
props
|
|
5027
|
+
], "p0.model"),
|
|
5028
|
+
class: _fnSignal((p0) => {
|
|
5029
|
+
var _a, _b;
|
|
5030
|
+
return `variant-${((_a = p0.content) == null ? void 0 : _a.testVariationId) || ((_b = p0.content) == null ? void 0 : _b.id)}`;
|
|
5031
|
+
}, [
|
|
5032
|
+
props
|
|
5033
|
+
], "`variant-${p0.content?.testVariationId||p0.content?.id}`"),
|
|
5034
|
+
contentId: _fnSignal((p0) => {
|
|
5035
|
+
var _a;
|
|
5036
|
+
return (_a = p0.builderContextSignal.content) == null ? void 0 : _a.id;
|
|
5037
|
+
}, [
|
|
5038
|
+
props
|
|
5039
|
+
], "p0.builderContextSignal.content?.id"),
|
|
5040
|
+
ref: _IMMUTABLE,
|
|
5041
|
+
variationId: _fnSignal((p0) => {
|
|
5042
|
+
var _a;
|
|
5043
|
+
return (_a = p0.builderContextSignal.content) == null ? void 0 : _a.testVariationId;
|
|
5044
|
+
}, [
|
|
5045
|
+
props
|
|
5046
|
+
], "p0.builderContextSignal.content?.testVariationId")
|
|
5047
|
+
}
|
|
5048
|
+
}, 0, "06_1") : null
|
|
5049
|
+
}, 1, "06_2");
|
|
5016
5050
|
}, "EnableEditor_component_ko1mO8oaj8k"));
|
|
5017
5051
|
const getCssFromFont = (font) => {
|
|
5018
5052
|
var _a;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@builder.io/sdk-qwik",
|
|
3
|
-
"version": "0.14.
|
|
3
|
+
"version": "0.14.9",
|
|
4
4
|
"homepage": "https://github.com/BuilderIO/builder/tree/main/packages/sdks/output/qwik",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -109,7 +109,7 @@
|
|
|
109
109
|
"isolated-vm": "^4.6.0"
|
|
110
110
|
},
|
|
111
111
|
"devDependencies": {
|
|
112
|
-
"@builder.io/qwik": "^1.
|
|
112
|
+
"@builder.io/qwik": "^1.5.1",
|
|
113
113
|
"@builder.io/sdks": "workspace:*",
|
|
114
114
|
"@types/node": "latest",
|
|
115
115
|
"nx": "^16.6.0",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "0.14.
|
|
1
|
+
export declare const SDK_VERSION = "0.14.9";
|