@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/edge/index.jsx
CHANGED
|
@@ -4675,7 +4675,7 @@ function BlocksWrapper(props) {
|
|
|
4675
4675
|
});
|
|
4676
4676
|
return <>
|
|
4677
4677
|
<Dynamic4
|
|
4678
|
-
class={className() + " dynamic-
|
|
4678
|
+
class={className() + " dynamic-3c4beb0c"}
|
|
4679
4679
|
ref={blocksWrapperRef}
|
|
4680
4680
|
builder-path={dataPath()}
|
|
4681
4681
|
builder-parent-id={props.parent}
|
|
@@ -4687,7 +4687,7 @@ function BlocksWrapper(props) {
|
|
|
4687
4687
|
{...props.BlocksWrapperProps}
|
|
4688
4688
|
component={props.BlocksWrapper}
|
|
4689
4689
|
>{props.children}</Dynamic4>
|
|
4690
|
-
<style>{`.dynamic-
|
|
4690
|
+
<style>{`.dynamic-3c4beb0c {
|
|
4691
4691
|
display: flex;
|
|
4692
4692
|
flex-direction: column;
|
|
4693
4693
|
align-items: stretch;
|
|
@@ -4852,7 +4852,7 @@ function Columns(props) {
|
|
|
4852
4852
|
}
|
|
4853
4853
|
return <>
|
|
4854
4854
|
<div
|
|
4855
|
-
class={getColumnsClass(props.builderBlock?.id) + " div-
|
|
4855
|
+
class={getColumnsClass(props.builderBlock?.id) + " div-6331dfc5"}
|
|
4856
4856
|
style={columnsCssVars()}
|
|
4857
4857
|
{...{}}
|
|
4858
4858
|
>
|
|
@@ -4871,17 +4871,17 @@ function Columns(props) {
|
|
|
4871
4871
|
><Blocks_default
|
|
4872
4872
|
path={`columns.${index}.blocks`}
|
|
4873
4873
|
parent={props.builderBlock.id}
|
|
4874
|
-
styleProp={{
|
|
4875
|
-
flexGrow: "1"
|
|
4876
|
-
}}
|
|
4877
4874
|
context={props.builderContext}
|
|
4878
4875
|
registeredComponents={props.builderComponents}
|
|
4879
4876
|
linkComponent={props.builderLinkComponent}
|
|
4880
4877
|
blocks={column.blocks}
|
|
4878
|
+
styleProp={{
|
|
4879
|
+
"flex-grow": "1"
|
|
4880
|
+
}}
|
|
4881
4881
|
/></Dynamic_renderer_default>;
|
|
4882
4882
|
}}</For4>
|
|
4883
4883
|
</div>
|
|
4884
|
-
<style>{`.div-
|
|
4884
|
+
<style>{`.div-6331dfc5 {
|
|
4885
4885
|
display: flex;
|
|
4886
4886
|
line-height: normal;
|
|
4887
4887
|
}`}</style>
|
|
@@ -4896,7 +4896,7 @@ function FragmentComponent(props) {
|
|
|
4896
4896
|
var fragment_default = FragmentComponent;
|
|
4897
4897
|
|
|
4898
4898
|
// src/blocks/image/image.tsx
|
|
4899
|
-
import { Show as Show8,
|
|
4899
|
+
import { Show as Show8, createMemo as createMemo8 } from "solid-js";
|
|
4900
4900
|
|
|
4901
4901
|
// src/blocks/image/image.helpers.ts
|
|
4902
4902
|
function removeProtocol(path) {
|
|
@@ -4985,14 +4985,12 @@ function Image(props) {
|
|
|
4985
4985
|
const out = props.aspectRatio ? aspectRatioStyles : void 0;
|
|
4986
4986
|
return out;
|
|
4987
4987
|
});
|
|
4988
|
-
onMount4(() => {
|
|
4989
|
-
});
|
|
4990
4988
|
return <>
|
|
4991
4989
|
<>
|
|
4992
4990
|
<picture>
|
|
4993
4991
|
<Show8 when={webpSrcSet()}><source type="image/webp" srcset={webpSrcSet()} /></Show8>
|
|
4994
4992
|
<img
|
|
4995
|
-
class={"builder-image" + (props.className ? " " + props.className : "") + " img-
|
|
4993
|
+
class={"builder-image" + (props.className ? " " + props.className : "") + " img-dc6700b4"}
|
|
4996
4994
|
loading={props.highPriority ? "eager" : "lazy"}
|
|
4997
4995
|
fetchpriority={props.highPriority ? "high" : "auto"}
|
|
4998
4996
|
alt={props.altText}
|
|
@@ -5010,22 +5008,22 @@ function Image(props) {
|
|
|
5010
5008
|
<Show8
|
|
5011
5009
|
when={props.aspectRatio && !(props.builderBlock?.children?.length && props.fitContent)}
|
|
5012
5010
|
><div
|
|
5013
|
-
class="builder-image-sizer div-
|
|
5011
|
+
class="builder-image-sizer div-dc6700b4"
|
|
5014
5012
|
style={{
|
|
5015
5013
|
"padding-top": props.aspectRatio * 100 + "%"
|
|
5016
5014
|
}}
|
|
5017
5015
|
/></Show8>
|
|
5018
5016
|
<Show8 when={props.builderBlock?.children?.length && props.fitContent}>{props.children}</Show8>
|
|
5019
|
-
<Show8 when={!props.fitContent && props.builderBlock?.children?.length}><div class="div-
|
|
5017
|
+
<Show8 when={!props.fitContent && props.builderBlock?.children?.length}><div class="div-dc6700b4-2">{props.children}</div></Show8>
|
|
5020
5018
|
</>
|
|
5021
|
-
<style>{`.img-
|
|
5019
|
+
<style>{`.img-dc6700b4 {
|
|
5022
5020
|
opacity: 1;
|
|
5023
5021
|
transition: opacity 0.2s ease-in-out;
|
|
5024
|
-
}.div-
|
|
5022
|
+
}.div-dc6700b4 {
|
|
5025
5023
|
width: 100%;
|
|
5026
5024
|
pointer-events: none;
|
|
5027
5025
|
font-size: 0;
|
|
5028
|
-
}.div-
|
|
5026
|
+
}.div-dc6700b4-2 {
|
|
5029
5027
|
display: flex;
|
|
5030
5028
|
flex-direction: column;
|
|
5031
5029
|
align-items: stretch;
|
|
@@ -5061,10 +5059,10 @@ function SectionComponent(props) {
|
|
|
5061
5059
|
var section_default = SectionComponent;
|
|
5062
5060
|
|
|
5063
5061
|
// src/blocks/symbol/symbol.tsx
|
|
5064
|
-
import { onMount as
|
|
5062
|
+
import { onMount as onMount7, on as on4, createEffect as createEffect4, createMemo as createMemo19, createSignal as createSignal19 } from "solid-js";
|
|
5065
5063
|
|
|
5066
5064
|
// src/components/content-variants/content-variants.tsx
|
|
5067
|
-
import { Show as Show15, For as
|
|
5065
|
+
import { Show as Show15, For as For8, onMount as onMount6, createSignal as createSignal18, createMemo as createMemo18 } from "solid-js";
|
|
5068
5066
|
|
|
5069
5067
|
// src/helpers/url.ts
|
|
5070
5068
|
var getTopLevelDomain = (host) => {
|
|
@@ -6339,12 +6337,12 @@ var componentInfo11 = {
|
|
|
6339
6337
|
};
|
|
6340
6338
|
|
|
6341
6339
|
// src/blocks/custom-code/custom-code.tsx
|
|
6342
|
-
import { onMount as
|
|
6340
|
+
import { onMount as onMount4, createSignal as createSignal11 } from "solid-js";
|
|
6343
6341
|
function CustomCode(props) {
|
|
6344
6342
|
const [scriptsInserted, setScriptsInserted] = createSignal11([]);
|
|
6345
6343
|
const [scriptsRun, setScriptsRun] = createSignal11([]);
|
|
6346
6344
|
let elementRef;
|
|
6347
|
-
|
|
6345
|
+
onMount4(() => {
|
|
6348
6346
|
if (!elementRef?.getElementsByTagName || typeof window === "undefined") {
|
|
6349
6347
|
return;
|
|
6350
6348
|
}
|
|
@@ -6692,7 +6690,7 @@ var componentInfo13 = {
|
|
|
6692
6690
|
};
|
|
6693
6691
|
|
|
6694
6692
|
// src/blocks/form/form/form.tsx
|
|
6695
|
-
import { Show as Show11,
|
|
6693
|
+
import { Show as Show11, createSignal as createSignal13 } from "solid-js";
|
|
6696
6694
|
|
|
6697
6695
|
// src/functions/get-env.ts
|
|
6698
6696
|
var validEnvList = ["production", "qa", "test", "development", "dev", "cdn-qa", "cloud", "fast", "cdn2", "cdn-prod"];
|
|
@@ -6909,16 +6907,7 @@ function FormComponent(props) {
|
|
|
6909
6907
|
{...{}}
|
|
6910
6908
|
{...props.attributes}
|
|
6911
6909
|
>
|
|
6912
|
-
|
|
6913
|
-
const idx = _index();
|
|
6914
|
-
return <Block_default
|
|
6915
|
-
key={`form-block-${idx}`}
|
|
6916
|
-
block={block}
|
|
6917
|
-
context={props.builderContext}
|
|
6918
|
-
registeredComponents={props.builderComponents}
|
|
6919
|
-
linkComponent={props.builderLinkComponent}
|
|
6920
|
-
/>;
|
|
6921
|
-
}}</For7></Show11>
|
|
6910
|
+
{props.children}
|
|
6922
6911
|
<Show11 when={submissionState() === "error"}><Blocks_default
|
|
6923
6912
|
path="errorMessage"
|
|
6924
6913
|
blocks={props.errorMessage}
|
|
@@ -6929,14 +6918,14 @@ function FormComponent(props) {
|
|
|
6929
6918
|
blocks={props.sendingMessage}
|
|
6930
6919
|
context={props.builderContext}
|
|
6931
6920
|
/></Show11>
|
|
6932
|
-
<Show11 when={submissionState() === "error" && responseData()}><pre class="builder-form-error-text pre-
|
|
6921
|
+
<Show11 when={submissionState() === "error" && responseData()}><pre class="builder-form-error-text pre-04a43b72">{JSON.stringify(responseData(), null, 2)}</pre></Show11>
|
|
6933
6922
|
<Show11 when={submissionState() === "success"}><Blocks_default
|
|
6934
6923
|
path="successMessage"
|
|
6935
6924
|
blocks={props.successMessage}
|
|
6936
6925
|
context={props.builderContext}
|
|
6937
6926
|
/></Show11>
|
|
6938
6927
|
</form>
|
|
6939
|
-
<style>{`.pre-
|
|
6928
|
+
<style>{`.pre-04a43b72 {
|
|
6940
6929
|
padding: 10px;
|
|
6941
6930
|
color: red;
|
|
6942
6931
|
text-align: center;
|
|
@@ -7061,7 +7050,7 @@ var componentInfo15 = {
|
|
|
7061
7050
|
};
|
|
7062
7051
|
|
|
7063
7052
|
// src/blocks/form/select/select.tsx
|
|
7064
|
-
import { For as
|
|
7053
|
+
import { For as For7 } from "solid-js";
|
|
7065
7054
|
function SelectComponent(props) {
|
|
7066
7055
|
return <><select
|
|
7067
7056
|
{...{}}
|
|
@@ -7071,10 +7060,10 @@ function SelectComponent(props) {
|
|
|
7071
7060
|
defaultValue={props.defaultValue}
|
|
7072
7061
|
name={props.name}
|
|
7073
7062
|
required={props.required}
|
|
7074
|
-
><
|
|
7063
|
+
><For7 each={props.options}>{(option, _index) => {
|
|
7075
7064
|
const index = _index();
|
|
7076
7065
|
return <option key={`${option.name}-${index}`} value={option.value}>{option.name || option.value}</option>;
|
|
7077
|
-
}}</
|
|
7066
|
+
}}</For7></select></>;
|
|
7078
7067
|
}
|
|
7079
7068
|
var select_default = SelectComponent;
|
|
7080
7069
|
|
|
@@ -7329,7 +7318,6 @@ function Video(props) {
|
|
|
7329
7318
|
"object-position": props.position,
|
|
7330
7319
|
// Hack to get object fit to work as expected and
|
|
7331
7320
|
// not have the video overflow
|
|
7332
|
-
"z-index": 2,
|
|
7333
7321
|
"border-radius": "1px",
|
|
7334
7322
|
...props.aspectRatio ? {
|
|
7335
7323
|
position: "absolute"
|
|
@@ -7514,7 +7502,7 @@ var Inlined_script_default = InlinedScript;
|
|
|
7514
7502
|
// src/components/content/components/enable-editor.tsx
|
|
7515
7503
|
import {
|
|
7516
7504
|
Show as Show13,
|
|
7517
|
-
onMount as
|
|
7505
|
+
onMount as onMount5,
|
|
7518
7506
|
on as on3,
|
|
7519
7507
|
createEffect as createEffect3,
|
|
7520
7508
|
createMemo as createMemo15,
|
|
@@ -7528,7 +7516,7 @@ function getPreviewContent(_searchParams) {
|
|
|
7528
7516
|
}
|
|
7529
7517
|
|
|
7530
7518
|
// src/constants/sdk-version.ts
|
|
7531
|
-
var SDK_VERSION = "3.0.
|
|
7519
|
+
var SDK_VERSION = "3.0.5";
|
|
7532
7520
|
|
|
7533
7521
|
// src/helpers/sdk-headers.ts
|
|
7534
7522
|
var getSdkHeaders = () => ({
|
|
@@ -8515,7 +8503,7 @@ function EnableEditor(props) {
|
|
|
8515
8503
|
let elementRef;
|
|
8516
8504
|
runHttpRequests();
|
|
8517
8505
|
emitStateUpdate();
|
|
8518
|
-
|
|
8506
|
+
onMount5(() => {
|
|
8519
8507
|
if (isBrowser()) {
|
|
8520
8508
|
if (isEditing() && !props.isNestedRender) {
|
|
8521
8509
|
window.addEventListener("message", processMessage);
|
|
@@ -8860,7 +8848,7 @@ function ContentVariants(props) {
|
|
|
8860
8848
|
canTrack: getDefaultCanTrack(props.canTrack)
|
|
8861
8849
|
});
|
|
8862
8850
|
});
|
|
8863
|
-
|
|
8851
|
+
onMount6(() => {
|
|
8864
8852
|
setShouldRenderVariants(false);
|
|
8865
8853
|
});
|
|
8866
8854
|
return <><>
|
|
@@ -8880,7 +8868,7 @@ function ContentVariants(props) {
|
|
|
8880
8868
|
scriptStr={updateCookieAndStylesScriptStr()}
|
|
8881
8869
|
nonce={props.nonce || ""}
|
|
8882
8870
|
/>
|
|
8883
|
-
<
|
|
8871
|
+
<For8 each={getVariants(props.content)}>{(variant, _index) => {
|
|
8884
8872
|
const index = _index();
|
|
8885
8873
|
return <Content_default
|
|
8886
8874
|
apiHost={props.apiHost}
|
|
@@ -8907,7 +8895,7 @@ function ContentVariants(props) {
|
|
|
8907
8895
|
trustedHosts={props.trustedHosts}
|
|
8908
8896
|
{...{}}
|
|
8909
8897
|
/>;
|
|
8910
|
-
}}</
|
|
8898
|
+
}}</For8>
|
|
8911
8899
|
</Show15>
|
|
8912
8900
|
<Content_default
|
|
8913
8901
|
apiHost={props.apiHost}
|
|
@@ -8990,7 +8978,7 @@ function Symbol2(props) {
|
|
|
8990
8978
|
}
|
|
8991
8979
|
});
|
|
8992
8980
|
}
|
|
8993
|
-
|
|
8981
|
+
onMount7(() => {
|
|
8994
8982
|
});
|
|
8995
8983
|
const onUpdateFn_0_props_symbol = createMemo19(() => props.symbol);
|
|
8996
8984
|
function onUpdateFn_0() {
|
package/lib/node/dev.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
|
|
@@ -1785,7 +1785,7 @@ function Block(props) {
|
|
|
1785
1785
|
});
|
|
1786
1786
|
}
|
|
1787
1787
|
var block_default = Block;
|
|
1788
|
-
var _tmpl$2 = /* @__PURE__ */ template(`<style>.dynamic-
|
|
1788
|
+
var _tmpl$2 = /* @__PURE__ */ template(`<style>.dynamic-3c4beb0c {
|
|
1789
1789
|
display: flex;
|
|
1790
1790
|
flex-direction: column;
|
|
1791
1791
|
align-items: stretch;
|
|
@@ -1828,7 +1828,7 @@ function BlocksWrapper(props) {
|
|
|
1828
1828
|
});
|
|
1829
1829
|
return [createComponent(Dynamic, mergeProps({
|
|
1830
1830
|
get ["class"]() {
|
|
1831
|
-
return className() + " dynamic-
|
|
1831
|
+
return className() + " dynamic-3c4beb0c";
|
|
1832
1832
|
},
|
|
1833
1833
|
ref(r$) {
|
|
1834
1834
|
const _ref$ = blocksWrapperRef;
|
|
@@ -1927,7 +1927,7 @@ var getColumnsClass = (id) => {
|
|
|
1927
1927
|
|
|
1928
1928
|
// src/blocks/columns/columns.tsx
|
|
1929
1929
|
var _tmpl$3 = /* @__PURE__ */ template(`<div>`);
|
|
1930
|
-
var _tmpl$22 = /* @__PURE__ */ template(`<style>.div-
|
|
1930
|
+
var _tmpl$22 = /* @__PURE__ */ template(`<style>.div-6331dfc5 {
|
|
1931
1931
|
display: flex;
|
|
1932
1932
|
line-height: normal;
|
|
1933
1933
|
}`);
|
|
@@ -2056,7 +2056,7 @@ function Columns(props) {
|
|
|
2056
2056
|
const _el$ = _tmpl$3();
|
|
2057
2057
|
spread(_el$, mergeProps({
|
|
2058
2058
|
get ["class"]() {
|
|
2059
|
-
return getColumnsClass(props.builderBlock?.id) + " div-
|
|
2059
|
+
return getColumnsClass(props.builderBlock?.id) + " div-6331dfc5";
|
|
2060
2060
|
},
|
|
2061
2061
|
get style() {
|
|
2062
2062
|
return columnsCssVars();
|
|
@@ -2097,9 +2097,6 @@ function Columns(props) {
|
|
|
2097
2097
|
get parent() {
|
|
2098
2098
|
return props.builderBlock.id;
|
|
2099
2099
|
},
|
|
2100
|
-
styleProp: {
|
|
2101
|
-
flexGrow: "1"
|
|
2102
|
-
},
|
|
2103
2100
|
get context() {
|
|
2104
2101
|
return props.builderContext;
|
|
2105
2102
|
},
|
|
@@ -2111,6 +2108,9 @@ function Columns(props) {
|
|
|
2111
2108
|
},
|
|
2112
2109
|
get blocks() {
|
|
2113
2110
|
return column.blocks;
|
|
2111
|
+
},
|
|
2112
|
+
styleProp: {
|
|
2113
|
+
"flex-grow": "1"
|
|
2114
2114
|
}
|
|
2115
2115
|
});
|
|
2116
2116
|
}
|
|
@@ -2181,16 +2181,16 @@ function getSrcSet(url) {
|
|
|
2181
2181
|
// src/blocks/image/image.tsx
|
|
2182
2182
|
var _tmpl$5 = /* @__PURE__ */ template(`<source type=image/webp>`);
|
|
2183
2183
|
var _tmpl$23 = /* @__PURE__ */ template(`<picture><img>`);
|
|
2184
|
-
var _tmpl$32 = /* @__PURE__ */ template(`<div class="builder-image-sizer div-
|
|
2185
|
-
var _tmpl$42 = /* @__PURE__ */ template(`<div class=div-
|
|
2186
|
-
var _tmpl$52 = /* @__PURE__ */ template(`<style>.img-
|
|
2184
|
+
var _tmpl$32 = /* @__PURE__ */ template(`<div class="builder-image-sizer div-dc6700b4">`);
|
|
2185
|
+
var _tmpl$42 = /* @__PURE__ */ template(`<div class=div-dc6700b4-2>`);
|
|
2186
|
+
var _tmpl$52 = /* @__PURE__ */ template(`<style>.img-dc6700b4 {
|
|
2187
2187
|
opacity: 1;
|
|
2188
2188
|
transition: opacity 0.2s ease-in-out;
|
|
2189
|
-
}.div-
|
|
2189
|
+
}.div-dc6700b4 {
|
|
2190
2190
|
width: 100%;
|
|
2191
2191
|
pointer-events: none;
|
|
2192
2192
|
font-size: 0;
|
|
2193
|
-
}.div-
|
|
2193
|
+
}.div-dc6700b4-2 {
|
|
2194
2194
|
display: flex;
|
|
2195
2195
|
flex-direction: column;
|
|
2196
2196
|
align-items: stretch;
|
|
@@ -2240,8 +2240,6 @@ function Image(props) {
|
|
|
2240
2240
|
const out = props.aspectRatio ? aspectRatioStyles : void 0;
|
|
2241
2241
|
return out;
|
|
2242
2242
|
});
|
|
2243
|
-
onMount(() => {
|
|
2244
|
-
});
|
|
2245
2243
|
return [[(() => {
|
|
2246
2244
|
const _el$ = _tmpl$23(), _el$3 = _el$.firstChild;
|
|
2247
2245
|
insert(_el$, createComponent(Show, {
|
|
@@ -2255,7 +2253,7 @@ function Image(props) {
|
|
|
2255
2253
|
}
|
|
2256
2254
|
}), _el$3);
|
|
2257
2255
|
effect((_p$) => {
|
|
2258
|
-
const _v$ = "builder-image" + (props.className ? " " + props.className : "") + " img-
|
|
2256
|
+
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 = {
|
|
2259
2257
|
"object-position": props.backgroundPosition || "center",
|
|
2260
2258
|
"object-fit": props.backgroundSize || "cover",
|
|
2261
2259
|
...aspectRatioCss()
|
|
@@ -4071,9 +4069,9 @@ function logFetch(url) {
|
|
|
4071
4069
|
}
|
|
4072
4070
|
|
|
4073
4071
|
// src/blocks/form/form/form.tsx
|
|
4074
|
-
var _tmpl$13 = /* @__PURE__ */ template(`<pre class="builder-form-error-text pre-
|
|
4072
|
+
var _tmpl$13 = /* @__PURE__ */ template(`<pre class="builder-form-error-text pre-04a43b72">`);
|
|
4075
4073
|
var _tmpl$26 = /* @__PURE__ */ template(`<form>`);
|
|
4076
|
-
var _tmpl$34 = /* @__PURE__ */ template(`<style>.pre-
|
|
4074
|
+
var _tmpl$34 = /* @__PURE__ */ template(`<style>.pre-04a43b72 {
|
|
4077
4075
|
padding: 10px;
|
|
4078
4076
|
color: red;
|
|
4079
4077
|
text-align: center;
|
|
@@ -4283,34 +4281,7 @@ function FormComponent(props) {
|
|
|
4283
4281
|
return props.name;
|
|
4284
4282
|
}
|
|
4285
4283
|
}, {}, {}, () => props.attributes), false, true);
|
|
4286
|
-
insert(_el$,
|
|
4287
|
-
get when() {
|
|
4288
|
-
return props.builderBlock && props.builderBlock.children;
|
|
4289
|
-
},
|
|
4290
|
-
get children() {
|
|
4291
|
-
return createComponent(For, {
|
|
4292
|
-
get each() {
|
|
4293
|
-
return props.builderBlock?.children;
|
|
4294
|
-
},
|
|
4295
|
-
children: (block, _index) => {
|
|
4296
|
-
const idx = _index();
|
|
4297
|
-
return createComponent(block_default, {
|
|
4298
|
-
key: `form-block-${idx}`,
|
|
4299
|
-
block,
|
|
4300
|
-
get context() {
|
|
4301
|
-
return props.builderContext;
|
|
4302
|
-
},
|
|
4303
|
-
get registeredComponents() {
|
|
4304
|
-
return props.builderComponents;
|
|
4305
|
-
},
|
|
4306
|
-
get linkComponent() {
|
|
4307
|
-
return props.builderLinkComponent;
|
|
4308
|
-
}
|
|
4309
|
-
});
|
|
4310
|
-
}
|
|
4311
|
-
});
|
|
4312
|
-
}
|
|
4313
|
-
}), null);
|
|
4284
|
+
insert(_el$, () => props.children, null);
|
|
4314
4285
|
insert(_el$, createComponent(Show, {
|
|
4315
4286
|
get when() {
|
|
4316
4287
|
return submissionState() === "error";
|
|
@@ -4819,7 +4790,6 @@ function Video(props) {
|
|
|
4819
4790
|
"object-position": props.position,
|
|
4820
4791
|
// Hack to get object fit to work as expected and
|
|
4821
4792
|
// not have the video overflow
|
|
4822
|
-
"z-index": 2,
|
|
4823
4793
|
"border-radius": "1px",
|
|
4824
4794
|
...props.aspectRatio ? {
|
|
4825
4795
|
position: "absolute"
|
|
@@ -5047,7 +5017,7 @@ function getPreviewContent(_searchParams) {
|
|
|
5047
5017
|
}
|
|
5048
5018
|
|
|
5049
5019
|
// src/constants/sdk-version.ts
|
|
5050
|
-
var SDK_VERSION = "3.0.
|
|
5020
|
+
var SDK_VERSION = "3.0.5";
|
|
5051
5021
|
|
|
5052
5022
|
// src/helpers/sdk-headers.ts
|
|
5053
5023
|
var getSdkHeaders = () => ({
|