@builder.io/sdk-solid 3.0.2 → 3.0.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/dist/index.d.ts +13 -2
- package/lib/browser/dev.js +18 -48
- package/lib/browser/dev.jsx +32 -44
- package/lib/browser/index.js +18 -48
- package/lib/browser/index.jsx +32 -44
- package/lib/edge/dev.js +18 -48
- package/lib/edge/dev.jsx +32 -44
- package/lib/edge/index.js +18 -48
- package/lib/edge/index.jsx +32 -44
- package/lib/node/dev.js +18 -48
- package/lib/node/dev.jsx +32 -44
- package/lib/node/index.js +18 -48
- package/lib/node/index.jsx +32 -44
- package/package.json +1 -1
package/lib/node/dev.jsx
CHANGED
|
@@ -1670,7 +1670,7 @@ function BlocksWrapper(props) {
|
|
|
1670
1670
|
});
|
|
1671
1671
|
return <>
|
|
1672
1672
|
<Dynamic4
|
|
1673
|
-
class={className() + " dynamic-
|
|
1673
|
+
class={className() + " dynamic-3c4beb0c"}
|
|
1674
1674
|
ref={blocksWrapperRef}
|
|
1675
1675
|
builder-path={dataPath()}
|
|
1676
1676
|
builder-parent-id={props.parent}
|
|
@@ -1682,7 +1682,7 @@ function BlocksWrapper(props) {
|
|
|
1682
1682
|
{...props.BlocksWrapperProps}
|
|
1683
1683
|
component={props.BlocksWrapper}
|
|
1684
1684
|
>{props.children}</Dynamic4>
|
|
1685
|
-
<style>{`.dynamic-
|
|
1685
|
+
<style>{`.dynamic-3c4beb0c {
|
|
1686
1686
|
display: flex;
|
|
1687
1687
|
flex-direction: column;
|
|
1688
1688
|
align-items: stretch;
|
|
@@ -1847,7 +1847,7 @@ function Columns(props) {
|
|
|
1847
1847
|
}
|
|
1848
1848
|
return <>
|
|
1849
1849
|
<div
|
|
1850
|
-
class={getColumnsClass(props.builderBlock?.id) + " div-
|
|
1850
|
+
class={getColumnsClass(props.builderBlock?.id) + " div-6331dfc5"}
|
|
1851
1851
|
style={columnsCssVars()}
|
|
1852
1852
|
{...{}}
|
|
1853
1853
|
>
|
|
@@ -1866,17 +1866,17 @@ function Columns(props) {
|
|
|
1866
1866
|
><Blocks_default
|
|
1867
1867
|
path={`columns.${index}.blocks`}
|
|
1868
1868
|
parent={props.builderBlock.id}
|
|
1869
|
-
styleProp={{
|
|
1870
|
-
flexGrow: "1"
|
|
1871
|
-
}}
|
|
1872
1869
|
context={props.builderContext}
|
|
1873
1870
|
registeredComponents={props.builderComponents}
|
|
1874
1871
|
linkComponent={props.builderLinkComponent}
|
|
1875
1872
|
blocks={column.blocks}
|
|
1873
|
+
styleProp={{
|
|
1874
|
+
"flex-grow": "1"
|
|
1875
|
+
}}
|
|
1876
1876
|
/></Dynamic_renderer_default>;
|
|
1877
1877
|
}}</For4>
|
|
1878
1878
|
</div>
|
|
1879
|
-
<style>{`.div-
|
|
1879
|
+
<style>{`.div-6331dfc5 {
|
|
1880
1880
|
display: flex;
|
|
1881
1881
|
line-height: normal;
|
|
1882
1882
|
}`}</style>
|
|
@@ -1891,7 +1891,7 @@ function FragmentComponent(props) {
|
|
|
1891
1891
|
var fragment_default = FragmentComponent;
|
|
1892
1892
|
|
|
1893
1893
|
// src/blocks/image/image.tsx
|
|
1894
|
-
import { Show as Show8,
|
|
1894
|
+
import { Show as Show8, createMemo as createMemo8 } from "solid-js";
|
|
1895
1895
|
|
|
1896
1896
|
// src/blocks/image/image.helpers.ts
|
|
1897
1897
|
function removeProtocol(path) {
|
|
@@ -1981,14 +1981,12 @@ function Image(props) {
|
|
|
1981
1981
|
const out = props.aspectRatio ? aspectRatioStyles : void 0;
|
|
1982
1982
|
return out;
|
|
1983
1983
|
});
|
|
1984
|
-
onMount4(() => {
|
|
1985
|
-
});
|
|
1986
1984
|
return <>
|
|
1987
1985
|
<>
|
|
1988
1986
|
<picture>
|
|
1989
1987
|
<Show8 when={webpSrcSet()}><source type="image/webp" srcset={webpSrcSet()} /></Show8>
|
|
1990
1988
|
<img
|
|
1991
|
-
class={"builder-image" + (props.className ? " " + props.className : "") + " img-
|
|
1989
|
+
class={"builder-image" + (props.className ? " " + props.className : "") + " img-dc6700b4"}
|
|
1992
1990
|
loading={props.highPriority ? "eager" : "lazy"}
|
|
1993
1991
|
fetchpriority={props.highPriority ? "high" : "auto"}
|
|
1994
1992
|
alt={props.altText}
|
|
@@ -2006,22 +2004,22 @@ function Image(props) {
|
|
|
2006
2004
|
<Show8
|
|
2007
2005
|
when={props.aspectRatio && !(props.builderBlock?.children?.length && props.fitContent)}
|
|
2008
2006
|
><div
|
|
2009
|
-
class="builder-image-sizer div-
|
|
2007
|
+
class="builder-image-sizer div-dc6700b4"
|
|
2010
2008
|
style={{
|
|
2011
2009
|
"padding-top": props.aspectRatio * 100 + "%"
|
|
2012
2010
|
}}
|
|
2013
2011
|
/></Show8>
|
|
2014
2012
|
<Show8 when={props.builderBlock?.children?.length && props.fitContent}>{props.children}</Show8>
|
|
2015
|
-
<Show8 when={!props.fitContent && props.builderBlock?.children?.length}><div class="div-
|
|
2013
|
+
<Show8 when={!props.fitContent && props.builderBlock?.children?.length}><div class="div-dc6700b4-2">{props.children}</div></Show8>
|
|
2016
2014
|
</>
|
|
2017
|
-
<style>{`.img-
|
|
2015
|
+
<style>{`.img-dc6700b4 {
|
|
2018
2016
|
opacity: 1;
|
|
2019
2017
|
transition: opacity 0.2s ease-in-out;
|
|
2020
|
-
}.div-
|
|
2018
|
+
}.div-dc6700b4 {
|
|
2021
2019
|
width: 100%;
|
|
2022
2020
|
pointer-events: none;
|
|
2023
2021
|
font-size: 0;
|
|
2024
|
-
}.div-
|
|
2022
|
+
}.div-dc6700b4-2 {
|
|
2025
2023
|
display: flex;
|
|
2026
2024
|
flex-direction: column;
|
|
2027
2025
|
align-items: stretch;
|
|
@@ -2057,10 +2055,10 @@ function SectionComponent(props) {
|
|
|
2057
2055
|
var section_default = SectionComponent;
|
|
2058
2056
|
|
|
2059
2057
|
// src/blocks/symbol/symbol.tsx
|
|
2060
|
-
import { onMount as
|
|
2058
|
+
import { onMount as onMount7, on as on4, createEffect as createEffect4, createMemo as createMemo19, createSignal as createSignal19 } from "solid-js";
|
|
2061
2059
|
|
|
2062
2060
|
// src/components/content-variants/content-variants.tsx
|
|
2063
|
-
import { Show as Show15, For as
|
|
2061
|
+
import { Show as Show15, For as For8, onMount as onMount6, createSignal as createSignal18, createMemo as createMemo18 } from "solid-js";
|
|
2064
2062
|
|
|
2065
2063
|
// src/helpers/url.ts
|
|
2066
2064
|
var getTopLevelDomain = (host) => {
|
|
@@ -3336,12 +3334,12 @@ var componentInfo11 = {
|
|
|
3336
3334
|
};
|
|
3337
3335
|
|
|
3338
3336
|
// src/blocks/custom-code/custom-code.tsx
|
|
3339
|
-
import { onMount as
|
|
3337
|
+
import { onMount as onMount4, createSignal as createSignal11 } from "solid-js";
|
|
3340
3338
|
function CustomCode(props) {
|
|
3341
3339
|
const [scriptsInserted, setScriptsInserted] = createSignal11([]);
|
|
3342
3340
|
const [scriptsRun, setScriptsRun] = createSignal11([]);
|
|
3343
3341
|
let elementRef;
|
|
3344
|
-
|
|
3342
|
+
onMount4(() => {
|
|
3345
3343
|
if (!elementRef?.getElementsByTagName || typeof window === "undefined") {
|
|
3346
3344
|
return;
|
|
3347
3345
|
}
|
|
@@ -3691,7 +3689,7 @@ var componentInfo13 = {
|
|
|
3691
3689
|
};
|
|
3692
3690
|
|
|
3693
3691
|
// src/blocks/form/form/form.tsx
|
|
3694
|
-
import { Show as Show11,
|
|
3692
|
+
import { Show as Show11, createSignal as createSignal13 } from "solid-js";
|
|
3695
3693
|
|
|
3696
3694
|
// src/functions/get-env.ts
|
|
3697
3695
|
var validEnvList = ["production", "qa", "test", "development", "dev", "cdn-qa", "cloud", "fast", "cdn2", "cdn-prod"];
|
|
@@ -3908,16 +3906,7 @@ function FormComponent(props) {
|
|
|
3908
3906
|
{...{}}
|
|
3909
3907
|
{...props.attributes}
|
|
3910
3908
|
>
|
|
3911
|
-
|
|
3912
|
-
const idx = _index();
|
|
3913
|
-
return <Block_default
|
|
3914
|
-
key={`form-block-${idx}`}
|
|
3915
|
-
block={block}
|
|
3916
|
-
context={props.builderContext}
|
|
3917
|
-
registeredComponents={props.builderComponents}
|
|
3918
|
-
linkComponent={props.builderLinkComponent}
|
|
3919
|
-
/>;
|
|
3920
|
-
}}</For7></Show11>
|
|
3909
|
+
{props.children}
|
|
3921
3910
|
<Show11 when={submissionState() === "error"}><Blocks_default
|
|
3922
3911
|
path="errorMessage"
|
|
3923
3912
|
blocks={props.errorMessage}
|
|
@@ -3928,14 +3917,14 @@ function FormComponent(props) {
|
|
|
3928
3917
|
blocks={props.sendingMessage}
|
|
3929
3918
|
context={props.builderContext}
|
|
3930
3919
|
/></Show11>
|
|
3931
|
-
<Show11 when={submissionState() === "error" && responseData()}><pre class="builder-form-error-text pre-
|
|
3920
|
+
<Show11 when={submissionState() === "error" && responseData()}><pre class="builder-form-error-text pre-04a43b72">{JSON.stringify(responseData(), null, 2)}</pre></Show11>
|
|
3932
3921
|
<Show11 when={submissionState() === "success"}><Blocks_default
|
|
3933
3922
|
path="successMessage"
|
|
3934
3923
|
blocks={props.successMessage}
|
|
3935
3924
|
context={props.builderContext}
|
|
3936
3925
|
/></Show11>
|
|
3937
3926
|
</form>
|
|
3938
|
-
<style>{`.pre-
|
|
3927
|
+
<style>{`.pre-04a43b72 {
|
|
3939
3928
|
padding: 10px;
|
|
3940
3929
|
color: red;
|
|
3941
3930
|
text-align: center;
|
|
@@ -4060,7 +4049,7 @@ var componentInfo15 = {
|
|
|
4060
4049
|
};
|
|
4061
4050
|
|
|
4062
4051
|
// src/blocks/form/select/select.tsx
|
|
4063
|
-
import { For as
|
|
4052
|
+
import { For as For7 } from "solid-js";
|
|
4064
4053
|
function SelectComponent(props) {
|
|
4065
4054
|
return <><select
|
|
4066
4055
|
{...{}}
|
|
@@ -4070,10 +4059,10 @@ function SelectComponent(props) {
|
|
|
4070
4059
|
defaultValue={props.defaultValue}
|
|
4071
4060
|
name={props.name}
|
|
4072
4061
|
required={props.required}
|
|
4073
|
-
><
|
|
4062
|
+
><For7 each={props.options}>{(option, _index) => {
|
|
4074
4063
|
const index = _index();
|
|
4075
4064
|
return <option key={`${option.name}-${index}`} value={option.value}>{option.name || option.value}</option>;
|
|
4076
|
-
}}</
|
|
4065
|
+
}}</For7></select></>;
|
|
4077
4066
|
}
|
|
4078
4067
|
var select_default = SelectComponent;
|
|
4079
4068
|
|
|
@@ -4328,7 +4317,6 @@ function Video(props) {
|
|
|
4328
4317
|
"object-position": props.position,
|
|
4329
4318
|
// Hack to get object fit to work as expected and
|
|
4330
4319
|
// not have the video overflow
|
|
4331
|
-
"z-index": 2,
|
|
4332
4320
|
"border-radius": "1px",
|
|
4333
4321
|
...props.aspectRatio ? {
|
|
4334
4322
|
position: "absolute"
|
|
@@ -4513,7 +4501,7 @@ var Inlined_script_default = InlinedScript;
|
|
|
4513
4501
|
// src/components/content/components/enable-editor.tsx
|
|
4514
4502
|
import {
|
|
4515
4503
|
Show as Show13,
|
|
4516
|
-
onMount as
|
|
4504
|
+
onMount as onMount5,
|
|
4517
4505
|
on as on3,
|
|
4518
4506
|
createEffect as createEffect3,
|
|
4519
4507
|
createMemo as createMemo15,
|
|
@@ -4527,7 +4515,7 @@ function getPreviewContent(_searchParams) {
|
|
|
4527
4515
|
}
|
|
4528
4516
|
|
|
4529
4517
|
// src/constants/sdk-version.ts
|
|
4530
|
-
var SDK_VERSION = "3.0.
|
|
4518
|
+
var SDK_VERSION = "3.0.5";
|
|
4531
4519
|
|
|
4532
4520
|
// src/helpers/sdk-headers.ts
|
|
4533
4521
|
var getSdkHeaders = () => ({
|
|
@@ -5521,7 +5509,7 @@ function EnableEditor(props) {
|
|
|
5521
5509
|
let elementRef;
|
|
5522
5510
|
runHttpRequests();
|
|
5523
5511
|
emitStateUpdate();
|
|
5524
|
-
|
|
5512
|
+
onMount5(() => {
|
|
5525
5513
|
if (isBrowser()) {
|
|
5526
5514
|
if (isEditing() && !props.isNestedRender) {
|
|
5527
5515
|
window.addEventListener("message", processMessage);
|
|
@@ -5866,7 +5854,7 @@ function ContentVariants(props) {
|
|
|
5866
5854
|
canTrack: getDefaultCanTrack(props.canTrack)
|
|
5867
5855
|
});
|
|
5868
5856
|
});
|
|
5869
|
-
|
|
5857
|
+
onMount6(() => {
|
|
5870
5858
|
setShouldRenderVariants(false);
|
|
5871
5859
|
});
|
|
5872
5860
|
return <><>
|
|
@@ -5886,7 +5874,7 @@ function ContentVariants(props) {
|
|
|
5886
5874
|
scriptStr={updateCookieAndStylesScriptStr()}
|
|
5887
5875
|
nonce={props.nonce || ""}
|
|
5888
5876
|
/>
|
|
5889
|
-
<
|
|
5877
|
+
<For8 each={getVariants(props.content)}>{(variant, _index) => {
|
|
5890
5878
|
const index = _index();
|
|
5891
5879
|
return <Content_default
|
|
5892
5880
|
apiHost={props.apiHost}
|
|
@@ -5913,7 +5901,7 @@ function ContentVariants(props) {
|
|
|
5913
5901
|
trustedHosts={props.trustedHosts}
|
|
5914
5902
|
{...{}}
|
|
5915
5903
|
/>;
|
|
5916
|
-
}}</
|
|
5904
|
+
}}</For8>
|
|
5917
5905
|
</Show15>
|
|
5918
5906
|
<Content_default
|
|
5919
5907
|
apiHost={props.apiHost}
|
|
@@ -5996,7 +5984,7 @@ function Symbol(props) {
|
|
|
5996
5984
|
}
|
|
5997
5985
|
});
|
|
5998
5986
|
}
|
|
5999
|
-
|
|
5987
|
+
onMount7(() => {
|
|
6000
5988
|
});
|
|
6001
5989
|
const onUpdateFn_0_props_symbol = createMemo19(() => props.symbol);
|
|
6002
5990
|
function onUpdateFn_0() {
|
package/lib/node/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { delegateEvents, createComponent, spread, mergeProps, insert, effect, setAttribute, className, style, template, Dynamic, memo, use } from 'solid-js/web';
|
|
2
|
-
import { createContext, useContext, Show, For, createMemo,
|
|
2
|
+
import { createContext, useContext, Show, For, createMemo, createSignal, onMount, createEffect, on } from 'solid-js';
|
|
3
3
|
import { createRequire } from 'node:module';
|
|
4
4
|
|
|
5
5
|
// src/blocks/button/button.tsx
|
|
@@ -1776,7 +1776,7 @@ function Block(props) {
|
|
|
1776
1776
|
});
|
|
1777
1777
|
}
|
|
1778
1778
|
var block_default = Block;
|
|
1779
|
-
var _tmpl$2 = /* @__PURE__ */ template(`<style>.dynamic-
|
|
1779
|
+
var _tmpl$2 = /* @__PURE__ */ template(`<style>.dynamic-3c4beb0c {
|
|
1780
1780
|
display: flex;
|
|
1781
1781
|
flex-direction: column;
|
|
1782
1782
|
align-items: stretch;
|
|
@@ -1819,7 +1819,7 @@ function BlocksWrapper(props) {
|
|
|
1819
1819
|
});
|
|
1820
1820
|
return [createComponent(Dynamic, mergeProps({
|
|
1821
1821
|
get ["class"]() {
|
|
1822
|
-
return className() + " dynamic-
|
|
1822
|
+
return className() + " dynamic-3c4beb0c";
|
|
1823
1823
|
},
|
|
1824
1824
|
ref(r$) {
|
|
1825
1825
|
const _ref$ = blocksWrapperRef;
|
|
@@ -1918,7 +1918,7 @@ var getColumnsClass = (id) => {
|
|
|
1918
1918
|
|
|
1919
1919
|
// src/blocks/columns/columns.tsx
|
|
1920
1920
|
var _tmpl$3 = /* @__PURE__ */ template(`<div>`);
|
|
1921
|
-
var _tmpl$22 = /* @__PURE__ */ template(`<style>.div-
|
|
1921
|
+
var _tmpl$22 = /* @__PURE__ */ template(`<style>.div-6331dfc5 {
|
|
1922
1922
|
display: flex;
|
|
1923
1923
|
line-height: normal;
|
|
1924
1924
|
}`);
|
|
@@ -2047,7 +2047,7 @@ function Columns(props) {
|
|
|
2047
2047
|
const _el$ = _tmpl$3();
|
|
2048
2048
|
spread(_el$, mergeProps({
|
|
2049
2049
|
get ["class"]() {
|
|
2050
|
-
return getColumnsClass(props.builderBlock?.id) + " div-
|
|
2050
|
+
return getColumnsClass(props.builderBlock?.id) + " div-6331dfc5";
|
|
2051
2051
|
},
|
|
2052
2052
|
get style() {
|
|
2053
2053
|
return columnsCssVars();
|
|
@@ -2088,9 +2088,6 @@ function Columns(props) {
|
|
|
2088
2088
|
get parent() {
|
|
2089
2089
|
return props.builderBlock.id;
|
|
2090
2090
|
},
|
|
2091
|
-
styleProp: {
|
|
2092
|
-
flexGrow: "1"
|
|
2093
|
-
},
|
|
2094
2091
|
get context() {
|
|
2095
2092
|
return props.builderContext;
|
|
2096
2093
|
},
|
|
@@ -2102,6 +2099,9 @@ function Columns(props) {
|
|
|
2102
2099
|
},
|
|
2103
2100
|
get blocks() {
|
|
2104
2101
|
return column.blocks;
|
|
2102
|
+
},
|
|
2103
|
+
styleProp: {
|
|
2104
|
+
"flex-grow": "1"
|
|
2105
2105
|
}
|
|
2106
2106
|
});
|
|
2107
2107
|
}
|
|
@@ -2172,16 +2172,16 @@ function getSrcSet(url) {
|
|
|
2172
2172
|
// src/blocks/image/image.tsx
|
|
2173
2173
|
var _tmpl$5 = /* @__PURE__ */ template(`<source type=image/webp>`);
|
|
2174
2174
|
var _tmpl$23 = /* @__PURE__ */ template(`<picture><img>`);
|
|
2175
|
-
var _tmpl$32 = /* @__PURE__ */ template(`<div class="builder-image-sizer div-
|
|
2176
|
-
var _tmpl$42 = /* @__PURE__ */ template(`<div class=div-
|
|
2177
|
-
var _tmpl$52 = /* @__PURE__ */ template(`<style>.img-
|
|
2175
|
+
var _tmpl$32 = /* @__PURE__ */ template(`<div class="builder-image-sizer div-dc6700b4">`);
|
|
2176
|
+
var _tmpl$42 = /* @__PURE__ */ template(`<div class=div-dc6700b4-2>`);
|
|
2177
|
+
var _tmpl$52 = /* @__PURE__ */ template(`<style>.img-dc6700b4 {
|
|
2178
2178
|
opacity: 1;
|
|
2179
2179
|
transition: opacity 0.2s ease-in-out;
|
|
2180
|
-
}.div-
|
|
2180
|
+
}.div-dc6700b4 {
|
|
2181
2181
|
width: 100%;
|
|
2182
2182
|
pointer-events: none;
|
|
2183
2183
|
font-size: 0;
|
|
2184
|
-
}.div-
|
|
2184
|
+
}.div-dc6700b4-2 {
|
|
2185
2185
|
display: flex;
|
|
2186
2186
|
flex-direction: column;
|
|
2187
2187
|
align-items: stretch;
|
|
@@ -2230,8 +2230,6 @@ function Image(props) {
|
|
|
2230
2230
|
const out = props.aspectRatio ? aspectRatioStyles : void 0;
|
|
2231
2231
|
return out;
|
|
2232
2232
|
});
|
|
2233
|
-
onMount(() => {
|
|
2234
|
-
});
|
|
2235
2233
|
return [[(() => {
|
|
2236
2234
|
const _el$ = _tmpl$23(), _el$3 = _el$.firstChild;
|
|
2237
2235
|
insert(_el$, createComponent(Show, {
|
|
@@ -2245,7 +2243,7 @@ function Image(props) {
|
|
|
2245
2243
|
}
|
|
2246
2244
|
}), _el$3);
|
|
2247
2245
|
effect((_p$) => {
|
|
2248
|
-
const _v$ = "builder-image" + (props.className ? " " + props.className : "") + " img-
|
|
2246
|
+
const _v$ = "builder-image" + (props.className ? " " + props.className : "") + " img-dc6700b4", _v$2 = props.highPriority ? "eager" : "lazy", _v$3 = props.highPriority ? "high" : "auto", _v$4 = props.altText, _v$5 = props.altText ? void 0 : "presentation", _v$6 = {
|
|
2249
2247
|
"object-position": props.backgroundPosition || "center",
|
|
2250
2248
|
"object-fit": props.backgroundSize || "cover",
|
|
2251
2249
|
...aspectRatioCss()
|
|
@@ -4058,9 +4056,9 @@ function logFetch(url) {
|
|
|
4058
4056
|
}
|
|
4059
4057
|
|
|
4060
4058
|
// src/blocks/form/form/form.tsx
|
|
4061
|
-
var _tmpl$13 = /* @__PURE__ */ template(`<pre class="builder-form-error-text pre-
|
|
4059
|
+
var _tmpl$13 = /* @__PURE__ */ template(`<pre class="builder-form-error-text pre-04a43b72">`);
|
|
4062
4060
|
var _tmpl$26 = /* @__PURE__ */ template(`<form>`);
|
|
4063
|
-
var _tmpl$34 = /* @__PURE__ */ template(`<style>.pre-
|
|
4061
|
+
var _tmpl$34 = /* @__PURE__ */ template(`<style>.pre-04a43b72 {
|
|
4064
4062
|
padding: 10px;
|
|
4065
4063
|
color: red;
|
|
4066
4064
|
text-align: center;
|
|
@@ -4270,34 +4268,7 @@ function FormComponent(props) {
|
|
|
4270
4268
|
return props.name;
|
|
4271
4269
|
}
|
|
4272
4270
|
}, {}, {}, () => props.attributes), false, true);
|
|
4273
|
-
insert(_el$,
|
|
4274
|
-
get when() {
|
|
4275
|
-
return props.builderBlock && props.builderBlock.children;
|
|
4276
|
-
},
|
|
4277
|
-
get children() {
|
|
4278
|
-
return createComponent(For, {
|
|
4279
|
-
get each() {
|
|
4280
|
-
return props.builderBlock?.children;
|
|
4281
|
-
},
|
|
4282
|
-
children: (block, _index) => {
|
|
4283
|
-
const idx = _index();
|
|
4284
|
-
return createComponent(block_default, {
|
|
4285
|
-
key: `form-block-${idx}`,
|
|
4286
|
-
block,
|
|
4287
|
-
get context() {
|
|
4288
|
-
return props.builderContext;
|
|
4289
|
-
},
|
|
4290
|
-
get registeredComponents() {
|
|
4291
|
-
return props.builderComponents;
|
|
4292
|
-
},
|
|
4293
|
-
get linkComponent() {
|
|
4294
|
-
return props.builderLinkComponent;
|
|
4295
|
-
}
|
|
4296
|
-
});
|
|
4297
|
-
}
|
|
4298
|
-
});
|
|
4299
|
-
}
|
|
4300
|
-
}), null);
|
|
4271
|
+
insert(_el$, () => props.children, null);
|
|
4301
4272
|
insert(_el$, createComponent(Show, {
|
|
4302
4273
|
get when() {
|
|
4303
4274
|
return submissionState() === "error";
|
|
@@ -4806,7 +4777,6 @@ function Video(props) {
|
|
|
4806
4777
|
"object-position": props.position,
|
|
4807
4778
|
// Hack to get object fit to work as expected and
|
|
4808
4779
|
// not have the video overflow
|
|
4809
|
-
"z-index": 2,
|
|
4810
4780
|
"border-radius": "1px",
|
|
4811
4781
|
...props.aspectRatio ? {
|
|
4812
4782
|
position: "absolute"
|
|
@@ -5034,7 +5004,7 @@ function getPreviewContent(_searchParams) {
|
|
|
5034
5004
|
}
|
|
5035
5005
|
|
|
5036
5006
|
// src/constants/sdk-version.ts
|
|
5037
|
-
var SDK_VERSION = "3.0.
|
|
5007
|
+
var SDK_VERSION = "3.0.5";
|
|
5038
5008
|
|
|
5039
5009
|
// src/helpers/sdk-headers.ts
|
|
5040
5010
|
var getSdkHeaders = () => ({
|