@builder.io/sdk-solid 4.0.5 → 4.0.7
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/dev.js +32 -15
- package/lib/browser/dev.jsx +57 -42
- package/lib/browser/index.js +32 -15
- package/lib/browser/index.jsx +57 -42
- package/lib/edge/dev.js +32 -15
- package/lib/edge/dev.jsx +57 -42
- package/lib/edge/index.js +32 -15
- package/lib/edge/index.jsx +57 -42
- package/lib/node/dev.js +32 -15
- package/lib/node/dev.jsx +57 -42
- package/lib/node/index.js +32 -15
- package/lib/node/index.jsx +57 -42
- package/package.json +1 -1
package/lib/browser/index.jsx
CHANGED
|
@@ -922,6 +922,9 @@ var provideBuilderContext = (block, context) => {
|
|
|
922
922
|
};
|
|
923
923
|
return {};
|
|
924
924
|
};
|
|
925
|
+
var generateKey = (index) => {
|
|
926
|
+
return index.toString();
|
|
927
|
+
};
|
|
925
928
|
|
|
926
929
|
// src/components/block/components/block-styles.tsx
|
|
927
930
|
import { Show as Show2, createMemo } from "solid-js";
|
|
@@ -1229,9 +1232,12 @@ function InteractiveElement(props) {
|
|
|
1229
1232
|
})
|
|
1230
1233
|
} : {};
|
|
1231
1234
|
});
|
|
1235
|
+
const targetWrapperProps = createMemo2(() => {
|
|
1236
|
+
return props.wrapperProps;
|
|
1237
|
+
});
|
|
1232
1238
|
return <><Show3
|
|
1233
1239
|
fallback={<Dynamic2
|
|
1234
|
-
{...
|
|
1240
|
+
{...targetWrapperProps()}
|
|
1235
1241
|
attributes={attributes()}
|
|
1236
1242
|
component={props.Wrapper}
|
|
1237
1243
|
>{props.children}</Dynamic2>}
|
|
@@ -1327,9 +1333,16 @@ function ComponentRef(props) {
|
|
|
1327
1333
|
var Component_ref_default = ComponentRef;
|
|
1328
1334
|
|
|
1329
1335
|
// src/components/block/components/repeated-block.tsx
|
|
1330
|
-
import { createSignal as createSignal4 } from "solid-js";
|
|
1336
|
+
import { on as on2, createEffect as createEffect2, createMemo as createMemo4, createSignal as createSignal4 } from "solid-js";
|
|
1331
1337
|
function RepeatedBlock(props) {
|
|
1332
1338
|
const [store, setStore] = createSignal4(props.repeatContext);
|
|
1339
|
+
const onUpdateFn_0_props_repeatContext = createMemo4(
|
|
1340
|
+
() => props.repeatContext
|
|
1341
|
+
);
|
|
1342
|
+
function onUpdateFn_0() {
|
|
1343
|
+
setStore(props.repeatContext);
|
|
1344
|
+
}
|
|
1345
|
+
createEffect2(on2(() => [onUpdateFn_0_props_repeatContext()], onUpdateFn_0));
|
|
1333
1346
|
return <><builder_context_default.Provider value={store()}><Block_default
|
|
1334
1347
|
block={props.block}
|
|
1335
1348
|
context={store()}
|
|
@@ -1434,7 +1447,7 @@ function Block(props) {
|
|
|
1434
1447
|
fallback={<For2 each={repeatItem()}>{(data, _index) => {
|
|
1435
1448
|
const index = _index();
|
|
1436
1449
|
return <Repeated_block_default
|
|
1437
|
-
key={index}
|
|
1450
|
+
key={generateKey(index)}
|
|
1438
1451
|
repeatContext={data.context}
|
|
1439
1452
|
block={data.block}
|
|
1440
1453
|
registeredComponents={props.registeredComponents}
|
|
@@ -1458,7 +1471,7 @@ function Block(props) {
|
|
|
1458
1471
|
fallback={<For2 each={repeatItem()}>{(data, _index) => {
|
|
1459
1472
|
const index = _index();
|
|
1460
1473
|
return <Repeated_block_default
|
|
1461
|
-
key={index}
|
|
1474
|
+
key={generateKey(index)}
|
|
1462
1475
|
repeatContext={data.context}
|
|
1463
1476
|
block={data.block}
|
|
1464
1477
|
registeredComponents={props.registeredComponents}
|
|
@@ -1498,7 +1511,7 @@ function Block(props) {
|
|
|
1498
1511
|
var Block_default = Block;
|
|
1499
1512
|
|
|
1500
1513
|
// src/components/blocks/blocks-wrapper.tsx
|
|
1501
|
-
import { onMount as onMount3, on as
|
|
1514
|
+
import { onMount as onMount3, on as on4, createEffect as createEffect4, createMemo as createMemo6, createSignal as createSignal6 } from "solid-js";
|
|
1502
1515
|
import { Dynamic as Dynamic4 } from "solid-js/web";
|
|
1503
1516
|
function BlocksWrapper(props) {
|
|
1504
1517
|
const [shouldUpdate, setShouldUpdate] = createSignal6(false);
|
|
@@ -1551,7 +1564,7 @@ function BlocksWrapper(props) {
|
|
|
1551
1564
|
const onUpdateFn_0_props_blocks = createMemo6(() => props.blocks);
|
|
1552
1565
|
function onUpdateFn_0() {
|
|
1553
1566
|
}
|
|
1554
|
-
|
|
1567
|
+
createEffect4(on4(() => [onUpdateFn_0_props_blocks()], onUpdateFn_0));
|
|
1555
1568
|
return <>
|
|
1556
1569
|
<Dynamic4
|
|
1557
1570
|
class={className() + " dynamic-023c60f2"}
|
|
@@ -1776,7 +1789,7 @@ function FragmentComponent(props) {
|
|
|
1776
1789
|
var fragment_default = FragmentComponent;
|
|
1777
1790
|
|
|
1778
1791
|
// src/blocks/image/image.tsx
|
|
1779
|
-
import { Show as Show8, createMemo as createMemo8 } from "solid-js";
|
|
1792
|
+
import { Show as Show8, onMount as onMount4, createMemo as createMemo8 } from "solid-js";
|
|
1780
1793
|
|
|
1781
1794
|
// src/blocks/image/image.helpers.ts
|
|
1782
1795
|
function removeProtocol(path) {
|
|
@@ -1865,12 +1878,14 @@ function Image(props) {
|
|
|
1865
1878
|
const out = props.aspectRatio ? aspectRatioStyles : void 0;
|
|
1866
1879
|
return out;
|
|
1867
1880
|
});
|
|
1881
|
+
onMount4(() => {
|
|
1882
|
+
});
|
|
1868
1883
|
return <>
|
|
1869
1884
|
<>
|
|
1870
1885
|
<picture>
|
|
1871
1886
|
<Show8 when={webpSrcSet()}><source type="image/webp" srcset={webpSrcSet()} /></Show8>
|
|
1872
1887
|
<img
|
|
1873
|
-
class={"builder-image" + (props.className ? " " + props.className : "") + " img-
|
|
1888
|
+
class={"builder-image" + (props.className ? " " + props.className : "") + " img-5f381e78"}
|
|
1874
1889
|
loading={props.highPriority ? "eager" : "lazy"}
|
|
1875
1890
|
fetchpriority={props.highPriority ? "high" : "auto"}
|
|
1876
1891
|
alt={props.altText}
|
|
@@ -1889,22 +1904,22 @@ function Image(props) {
|
|
|
1889
1904
|
<Show8
|
|
1890
1905
|
when={props.aspectRatio && !(props.builderBlock?.children?.length && props.fitContent)}
|
|
1891
1906
|
><div
|
|
1892
|
-
class="builder-image-sizer div-
|
|
1907
|
+
class="builder-image-sizer div-5f381e78"
|
|
1893
1908
|
style={{
|
|
1894
1909
|
"padding-top": props.aspectRatio * 100 + "%"
|
|
1895
1910
|
}}
|
|
1896
1911
|
/></Show8>
|
|
1897
1912
|
<Show8 when={props.builderBlock?.children?.length && props.fitContent}>{props.children}</Show8>
|
|
1898
|
-
<Show8 when={!props.fitContent && props.builderBlock?.children?.length}><div class="div-
|
|
1913
|
+
<Show8 when={!props.fitContent && props.builderBlock?.children?.length}><div class="div-5f381e78-2">{props.children}</div></Show8>
|
|
1899
1914
|
</>
|
|
1900
|
-
<style>{`.img-
|
|
1915
|
+
<style>{`.img-5f381e78 {
|
|
1901
1916
|
opacity: 1;
|
|
1902
1917
|
transition: opacity 0.2s ease-in-out;
|
|
1903
|
-
}.div-
|
|
1918
|
+
}.div-5f381e78 {
|
|
1904
1919
|
width: 100%;
|
|
1905
1920
|
pointer-events: none;
|
|
1906
1921
|
font-size: 0;
|
|
1907
|
-
}.div-
|
|
1922
|
+
}.div-5f381e78-2 {
|
|
1908
1923
|
display: flex;
|
|
1909
1924
|
flex-direction: column;
|
|
1910
1925
|
align-items: stretch;
|
|
@@ -1940,10 +1955,10 @@ function SectionComponent(props) {
|
|
|
1940
1955
|
var section_default = SectionComponent;
|
|
1941
1956
|
|
|
1942
1957
|
// src/blocks/symbol/symbol.tsx
|
|
1943
|
-
import { onMount as
|
|
1958
|
+
import { onMount as onMount10, on as on8, createEffect as createEffect8, createMemo as createMemo20, createSignal as createSignal20 } from "solid-js";
|
|
1944
1959
|
|
|
1945
1960
|
// src/components/content-variants/content-variants.tsx
|
|
1946
|
-
import { Show as Show16, For as For9, onMount as
|
|
1961
|
+
import { Show as Show16, For as For9, onMount as onMount9, createSignal as createSignal19, createMemo as createMemo19 } from "solid-js";
|
|
1947
1962
|
|
|
1948
1963
|
// src/helpers/url.ts
|
|
1949
1964
|
var getTopLevelDomain = (host) => {
|
|
@@ -2924,7 +2939,7 @@ var componentInfo6 = {
|
|
|
2924
2939
|
};
|
|
2925
2940
|
|
|
2926
2941
|
// src/blocks/personalization-container/personalization-container.tsx
|
|
2927
|
-
import { Show as Show10, For as For6, onMount as
|
|
2942
|
+
import { Show as Show10, For as For6, onMount as onMount5, createSignal as createSignal10, createMemo as createMemo10 } from "solid-js";
|
|
2928
2943
|
|
|
2929
2944
|
// src/components/inlined-script.tsx
|
|
2930
2945
|
function InlinedScript(props) {
|
|
@@ -3189,7 +3204,7 @@ function PersonalizationContainer(props) {
|
|
|
3189
3204
|
).join("");
|
|
3190
3205
|
});
|
|
3191
3206
|
let rootRef;
|
|
3192
|
-
|
|
3207
|
+
onMount5(() => {
|
|
3193
3208
|
setIsHydrated(true);
|
|
3194
3209
|
const unsub = userAttributesService.subscribeOnUserAttributesChange(
|
|
3195
3210
|
(attrs) => {
|
|
@@ -3591,10 +3606,10 @@ var tabs_default = Tabs;
|
|
|
3591
3606
|
|
|
3592
3607
|
// src/blocks/text/component-info.ts
|
|
3593
3608
|
var componentInfo11 = {
|
|
3594
|
-
shouldReceiveBuilderProps: {
|
|
3595
|
-
builderBlock:
|
|
3609
|
+
shouldReceiveBuilderProps: TARGET === "reactNative" ? {
|
|
3610
|
+
builderBlock: true,
|
|
3596
3611
|
builderContext: true
|
|
3597
|
-
},
|
|
3612
|
+
} : {},
|
|
3598
3613
|
name: "Text",
|
|
3599
3614
|
static: true,
|
|
3600
3615
|
isRSC: true,
|
|
@@ -3652,7 +3667,7 @@ var componentInfo12 = {
|
|
|
3652
3667
|
};
|
|
3653
3668
|
|
|
3654
3669
|
// src/blocks/custom-code/custom-code.tsx
|
|
3655
|
-
import { onMount as
|
|
3670
|
+
import { onMount as onMount6, on as on5, createEffect as createEffect5, createMemo as createMemo12, createSignal as createSignal12 } from "solid-js";
|
|
3656
3671
|
function CustomCode(props) {
|
|
3657
3672
|
const [scriptsInserted, setScriptsInserted] = createSignal12([]);
|
|
3658
3673
|
const [scriptsRun, setScriptsRun] = createSignal12([]);
|
|
@@ -3693,7 +3708,7 @@ function CustomCode(props) {
|
|
|
3693
3708
|
}
|
|
3694
3709
|
}
|
|
3695
3710
|
let elementRef;
|
|
3696
|
-
|
|
3711
|
+
onMount6(() => {
|
|
3697
3712
|
runScripts();
|
|
3698
3713
|
});
|
|
3699
3714
|
const onUpdateFn_0_props_code = createMemo12(() => props.code);
|
|
@@ -3702,7 +3717,7 @@ function CustomCode(props) {
|
|
|
3702
3717
|
runScripts();
|
|
3703
3718
|
}
|
|
3704
3719
|
}
|
|
3705
|
-
|
|
3720
|
+
createEffect5(on5(() => [onUpdateFn_0_props_code()], onUpdateFn_0));
|
|
3706
3721
|
return <><div
|
|
3707
3722
|
class={"builder-custom-code" + (props.replaceNodes ? " replace-nodes" : "")}
|
|
3708
3723
|
ref={elementRef}
|
|
@@ -3730,7 +3745,7 @@ var componentInfo13 = {
|
|
|
3730
3745
|
};
|
|
3731
3746
|
|
|
3732
3747
|
// src/blocks/embed/embed.tsx
|
|
3733
|
-
import { on as
|
|
3748
|
+
import { on as on6, createEffect as createEffect6, createMemo as createMemo13, createSignal as createSignal13 } from "solid-js";
|
|
3734
3749
|
|
|
3735
3750
|
// src/blocks/embed/helpers.ts
|
|
3736
3751
|
var SCRIPT_MIME_TYPES = ["text/javascript", "application/javascript", "application/ecmascript"];
|
|
@@ -3772,8 +3787,8 @@ function Embed(props) {
|
|
|
3772
3787
|
findAndRunScripts();
|
|
3773
3788
|
}
|
|
3774
3789
|
}
|
|
3775
|
-
|
|
3776
|
-
|
|
3790
|
+
createEffect6(
|
|
3791
|
+
on6(() => [onUpdateFn_0_elem(), onUpdateFn_0_ranInitFn__()], onUpdateFn_0)
|
|
3777
3792
|
);
|
|
3778
3793
|
return <><div class="builder-embed" ref={elem} innerHTML={props.content} /></>;
|
|
3779
3794
|
}
|
|
@@ -4605,7 +4620,7 @@ var componentInfo20 = {
|
|
|
4605
4620
|
};
|
|
4606
4621
|
|
|
4607
4622
|
// src/blocks/video/video.tsx
|
|
4608
|
-
import { Show as Show13, onMount as
|
|
4623
|
+
import { Show as Show13, onMount as onMount7, createSignal as createSignal15, createMemo as createMemo15 } from "solid-js";
|
|
4609
4624
|
function Video(props) {
|
|
4610
4625
|
const [lazyVideoObserver, setLazyVideoObserver] = createSignal15(void 0);
|
|
4611
4626
|
const videoProps = createMemo15(() => {
|
|
@@ -4633,7 +4648,7 @@ function Video(props) {
|
|
|
4633
4648
|
};
|
|
4634
4649
|
});
|
|
4635
4650
|
let videoRef;
|
|
4636
|
-
|
|
4651
|
+
onMount7(() => {
|
|
4637
4652
|
if (props.lazyLoad) {
|
|
4638
4653
|
const oberver = new IntersectionObserver(function(entries) {
|
|
4639
4654
|
entries.forEach(function(entry) {
|
|
@@ -4863,9 +4878,9 @@ var getUpdateVariantVisibilityScript = ({
|
|
|
4863
4878
|
// src/components/content/components/enable-editor.tsx
|
|
4864
4879
|
import {
|
|
4865
4880
|
Show as Show14,
|
|
4866
|
-
onMount as
|
|
4867
|
-
on as
|
|
4868
|
-
createEffect as
|
|
4881
|
+
onMount as onMount8,
|
|
4882
|
+
on as on7,
|
|
4883
|
+
createEffect as createEffect7,
|
|
4869
4884
|
createMemo as createMemo16,
|
|
4870
4885
|
createSignal as createSignal16
|
|
4871
4886
|
} from "solid-js";
|
|
@@ -4877,7 +4892,7 @@ function getPreviewContent(_searchParams) {
|
|
|
4877
4892
|
}
|
|
4878
4893
|
|
|
4879
4894
|
// src/constants/sdk-version.ts
|
|
4880
|
-
var SDK_VERSION = "4.0.
|
|
4895
|
+
var SDK_VERSION = "4.0.7";
|
|
4881
4896
|
|
|
4882
4897
|
// src/helpers/sdk-headers.ts
|
|
4883
4898
|
var getSdkHeaders = () => ({
|
|
@@ -5031,7 +5046,7 @@ var generateContentUrl = (options) => {
|
|
|
5031
5046
|
}
|
|
5032
5047
|
if (enrich)
|
|
5033
5048
|
url.searchParams.set("enrich", String(enrich));
|
|
5034
|
-
url.searchParams.set("omit", omit2
|
|
5049
|
+
url.searchParams.set("omit", omit2 ?? "meta.componentsUsed");
|
|
5035
5050
|
if (fields) {
|
|
5036
5051
|
url.searchParams.set("fields", fields);
|
|
5037
5052
|
}
|
|
@@ -5881,7 +5896,7 @@ function EnableEditor(props) {
|
|
|
5881
5896
|
let elementRef;
|
|
5882
5897
|
runHttpRequests();
|
|
5883
5898
|
emitStateUpdate();
|
|
5884
|
-
|
|
5899
|
+
onMount8(() => {
|
|
5885
5900
|
if (isBrowser()) {
|
|
5886
5901
|
if (isEditing() && !props.isNestedRender) {
|
|
5887
5902
|
window.addEventListener("message", processMessage);
|
|
@@ -5962,15 +5977,15 @@ function EnableEditor(props) {
|
|
|
5962
5977
|
mergeNewContent(props.content);
|
|
5963
5978
|
}
|
|
5964
5979
|
}
|
|
5965
|
-
|
|
5980
|
+
createEffect7(on7(() => [onUpdateFn_0_props_content()], onUpdateFn_0));
|
|
5966
5981
|
const onUpdateFn_1_props_builderContextSignal_rootState = createMemo16(
|
|
5967
5982
|
() => props.builderContextSignal.rootState
|
|
5968
5983
|
);
|
|
5969
5984
|
function onUpdateFn_1() {
|
|
5970
5985
|
emitStateUpdate();
|
|
5971
5986
|
}
|
|
5972
|
-
|
|
5973
|
-
|
|
5987
|
+
createEffect7(
|
|
5988
|
+
on7(
|
|
5974
5989
|
() => [onUpdateFn_1_props_builderContextSignal_rootState()],
|
|
5975
5990
|
onUpdateFn_1
|
|
5976
5991
|
)
|
|
@@ -5981,7 +5996,7 @@ function EnableEditor(props) {
|
|
|
5981
5996
|
mergeNewRootState(props.data);
|
|
5982
5997
|
}
|
|
5983
5998
|
}
|
|
5984
|
-
|
|
5999
|
+
createEffect7(on7(() => [onUpdateFn_2_props_data()], onUpdateFn_2));
|
|
5985
6000
|
const onUpdateFn_3_props_locale = createMemo16(() => props.locale);
|
|
5986
6001
|
function onUpdateFn_3() {
|
|
5987
6002
|
if (props.locale) {
|
|
@@ -5990,7 +6005,7 @@ function EnableEditor(props) {
|
|
|
5990
6005
|
});
|
|
5991
6006
|
}
|
|
5992
6007
|
}
|
|
5993
|
-
|
|
6008
|
+
createEffect7(on7(() => [onUpdateFn_3_props_locale()], onUpdateFn_3));
|
|
5994
6009
|
return <><builder_context_default.Provider value={props.builderContextSignal}><Show14
|
|
5995
6010
|
when={props.builderContextSignal.content || needsElementRefDivForEditing()}
|
|
5996
6011
|
><Dynamic5
|
|
@@ -6232,7 +6247,7 @@ function ContentVariants(props) {
|
|
|
6232
6247
|
canTrack: getDefaultCanTrack(props.canTrack)
|
|
6233
6248
|
});
|
|
6234
6249
|
});
|
|
6235
|
-
|
|
6250
|
+
onMount9(() => {
|
|
6236
6251
|
setShouldRenderVariants(false);
|
|
6237
6252
|
});
|
|
6238
6253
|
return <><>
|
|
@@ -6362,13 +6377,13 @@ function Symbol(props) {
|
|
|
6362
6377
|
}
|
|
6363
6378
|
});
|
|
6364
6379
|
}
|
|
6365
|
-
|
|
6380
|
+
onMount10(() => {
|
|
6366
6381
|
});
|
|
6367
6382
|
const onUpdateFn_0_props_symbol = createMemo20(() => props.symbol);
|
|
6368
6383
|
function onUpdateFn_0() {
|
|
6369
6384
|
setContent();
|
|
6370
6385
|
}
|
|
6371
|
-
|
|
6386
|
+
createEffect8(on8(() => [onUpdateFn_0_props_symbol()], onUpdateFn_0));
|
|
6372
6387
|
return <><div class={className()} {...{}} {...props.attributes} {...{}}><Content_variants_default
|
|
6373
6388
|
nonce={props.builderContext.nonce}
|
|
6374
6389
|
isNestedRender={true}
|
package/lib/edge/dev.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { delegateEvents, createComponent, spread, mergeProps, insert, effect, setAttribute, className, style, template, use, Dynamic, memo } from 'solid-js/web';
|
|
2
|
-
import { createContext, useContext, Show, For, createMemo,
|
|
2
|
+
import { createContext, useContext, Show, For, createMemo, onMount, createSignal, createEffect, on } from 'solid-js';
|
|
3
3
|
|
|
4
4
|
var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require : typeof Proxy !== "undefined" ? new Proxy(x, {
|
|
5
5
|
get: (a, b) => (typeof require !== "undefined" ? require : a)[b]
|
|
@@ -4117,6 +4117,9 @@ var provideBuilderContext = (block, context) => {
|
|
|
4117
4117
|
};
|
|
4118
4118
|
return {};
|
|
4119
4119
|
};
|
|
4120
|
+
var generateKey = (index) => {
|
|
4121
|
+
return index.toString();
|
|
4122
|
+
};
|
|
4120
4123
|
|
|
4121
4124
|
// src/constants/device-sizes.ts
|
|
4122
4125
|
var SIZES = {
|
|
@@ -4411,9 +4414,12 @@ function InteractiveElement(props) {
|
|
|
4411
4414
|
})
|
|
4412
4415
|
} : {};
|
|
4413
4416
|
});
|
|
4417
|
+
const targetWrapperProps = createMemo(() => {
|
|
4418
|
+
return props.wrapperProps;
|
|
4419
|
+
});
|
|
4414
4420
|
return createComponent(Show, {
|
|
4415
4421
|
get fallback() {
|
|
4416
|
-
return createComponent(Dynamic, mergeProps(
|
|
4422
|
+
return createComponent(Dynamic, mergeProps(targetWrapperProps, {
|
|
4417
4423
|
get attributes() {
|
|
4418
4424
|
return attributes();
|
|
4419
4425
|
},
|
|
@@ -4543,6 +4549,11 @@ function ComponentRef(props) {
|
|
|
4543
4549
|
var component_ref_default = ComponentRef;
|
|
4544
4550
|
function RepeatedBlock(props) {
|
|
4545
4551
|
const [store, setStore] = createSignal(props.repeatContext);
|
|
4552
|
+
const onUpdateFn_0_props_repeatContext = createMemo(() => props.repeatContext);
|
|
4553
|
+
function onUpdateFn_0() {
|
|
4554
|
+
setStore(props.repeatContext);
|
|
4555
|
+
}
|
|
4556
|
+
createEffect(on(() => [onUpdateFn_0_props_repeatContext()], onUpdateFn_0));
|
|
4546
4557
|
return createComponent(builder_context_default.Provider, {
|
|
4547
4558
|
get value() {
|
|
4548
4559
|
return store();
|
|
@@ -4669,7 +4680,9 @@ function Block(props) {
|
|
|
4669
4680
|
children: (data, _index) => {
|
|
4670
4681
|
const index = _index();
|
|
4671
4682
|
return createComponent(repeated_block_default, {
|
|
4672
|
-
key
|
|
4683
|
+
get key() {
|
|
4684
|
+
return generateKey(index);
|
|
4685
|
+
},
|
|
4673
4686
|
get repeatContext() {
|
|
4674
4687
|
return data.context;
|
|
4675
4688
|
},
|
|
@@ -4735,7 +4748,9 @@ function Block(props) {
|
|
|
4735
4748
|
children: (data, _index) => {
|
|
4736
4749
|
const index = _index();
|
|
4737
4750
|
return createComponent(repeated_block_default, {
|
|
4738
|
-
key
|
|
4751
|
+
get key() {
|
|
4752
|
+
return generateKey(index);
|
|
4753
|
+
},
|
|
4739
4754
|
get repeatContext() {
|
|
4740
4755
|
return data.context;
|
|
4741
4756
|
},
|
|
@@ -5231,16 +5246,16 @@ function getSrcSet(url) {
|
|
|
5231
5246
|
// src/blocks/image/image.tsx
|
|
5232
5247
|
var _tmpl$5 = /* @__PURE__ */ template(`<source type=image/webp>`);
|
|
5233
5248
|
var _tmpl$23 = /* @__PURE__ */ template(`<picture><img>`);
|
|
5234
|
-
var _tmpl$32 = /* @__PURE__ */ template(`<div class="builder-image-sizer div-
|
|
5235
|
-
var _tmpl$42 = /* @__PURE__ */ template(`<div class=div-
|
|
5236
|
-
var _tmpl$52 = /* @__PURE__ */ template(`<style>.img-
|
|
5249
|
+
var _tmpl$32 = /* @__PURE__ */ template(`<div class="builder-image-sizer div-5f381e78">`);
|
|
5250
|
+
var _tmpl$42 = /* @__PURE__ */ template(`<div class=div-5f381e78-2>`);
|
|
5251
|
+
var _tmpl$52 = /* @__PURE__ */ template(`<style>.img-5f381e78 {
|
|
5237
5252
|
opacity: 1;
|
|
5238
5253
|
transition: opacity 0.2s ease-in-out;
|
|
5239
|
-
}.div-
|
|
5254
|
+
}.div-5f381e78 {
|
|
5240
5255
|
width: 100%;
|
|
5241
5256
|
pointer-events: none;
|
|
5242
5257
|
font-size: 0;
|
|
5243
|
-
}.div-
|
|
5258
|
+
}.div-5f381e78-2 {
|
|
5244
5259
|
display: flex;
|
|
5245
5260
|
flex-direction: column;
|
|
5246
5261
|
align-items: stretch;
|
|
@@ -5290,6 +5305,8 @@ function Image(props) {
|
|
|
5290
5305
|
const out = props.aspectRatio ? aspectRatioStyles : void 0;
|
|
5291
5306
|
return out;
|
|
5292
5307
|
});
|
|
5308
|
+
onMount(() => {
|
|
5309
|
+
});
|
|
5293
5310
|
return [[(() => {
|
|
5294
5311
|
const _el$ = _tmpl$23(), _el$3 = _el$.firstChild;
|
|
5295
5312
|
insert(_el$, createComponent(Show, {
|
|
@@ -5303,7 +5320,7 @@ function Image(props) {
|
|
|
5303
5320
|
}
|
|
5304
5321
|
}), _el$3);
|
|
5305
5322
|
effect((_p$) => {
|
|
5306
|
-
const _v$ = "builder-image" + (props.className ? " " + props.className : "") + " img-
|
|
5323
|
+
const _v$ = "builder-image" + (props.className ? " " + props.className : "") + " img-5f381e78", _v$2 = props.highPriority ? "eager" : "lazy", _v$3 = props.highPriority ? "high" : "auto", _v$4 = props.altText, _v$5 = props.title, _v$6 = props.altText ? void 0 : "presentation", _v$7 = {
|
|
5307
5324
|
"object-position": props.backgroundPosition || "center",
|
|
5308
5325
|
"object-fit": props.backgroundSize || "cover",
|
|
5309
5326
|
...aspectRatioCss()
|
|
@@ -7139,10 +7156,10 @@ delegateEvents(["click"]);
|
|
|
7139
7156
|
|
|
7140
7157
|
// src/blocks/text/component-info.ts
|
|
7141
7158
|
var componentInfo11 = {
|
|
7142
|
-
shouldReceiveBuilderProps: {
|
|
7143
|
-
builderBlock:
|
|
7159
|
+
shouldReceiveBuilderProps: TARGET === "reactNative" ? {
|
|
7160
|
+
builderBlock: true,
|
|
7144
7161
|
builderContext: true
|
|
7145
|
-
},
|
|
7162
|
+
} : {},
|
|
7146
7163
|
name: "Text",
|
|
7147
7164
|
static: true,
|
|
7148
7165
|
isRSC: true,
|
|
@@ -8540,7 +8557,7 @@ function getPreviewContent(_searchParams) {
|
|
|
8540
8557
|
}
|
|
8541
8558
|
|
|
8542
8559
|
// src/constants/sdk-version.ts
|
|
8543
|
-
var SDK_VERSION = "4.0.
|
|
8560
|
+
var SDK_VERSION = "4.0.7";
|
|
8544
8561
|
|
|
8545
8562
|
// src/helpers/sdk-headers.ts
|
|
8546
8563
|
var getSdkHeaders = () => ({
|
|
@@ -8696,7 +8713,7 @@ var generateContentUrl = (options) => {
|
|
|
8696
8713
|
}
|
|
8697
8714
|
if (enrich)
|
|
8698
8715
|
url.searchParams.set("enrich", String(enrich));
|
|
8699
|
-
url.searchParams.set("omit", omit2
|
|
8716
|
+
url.searchParams.set("omit", omit2 ?? "meta.componentsUsed");
|
|
8700
8717
|
if (fields) {
|
|
8701
8718
|
url.searchParams.set("fields", fields);
|
|
8702
8719
|
}
|