@builder.io/sdk-solid 3.0.3 → 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 +2 -2
- package/lib/browser/dev.js +16 -46
- package/lib/browser/dev.jsx +30 -42
- package/lib/browser/index.js +16 -46
- package/lib/browser/index.jsx +30 -42
- package/lib/edge/dev.js +16 -46
- package/lib/edge/dev.jsx +30 -42
- package/lib/edge/index.js +16 -46
- package/lib/edge/index.jsx +30 -42
- package/lib/node/dev.js +16 -46
- package/lib/node/dev.jsx +30 -42
- package/lib/node/index.js +16 -46
- package/lib/node/index.jsx +30 -42
- package/package.json +1 -1
package/lib/edge/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
|
|
|
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]
|
|
@@ -4930,7 +4930,7 @@ var getColumnsClass = (id2) => {
|
|
|
4930
4930
|
|
|
4931
4931
|
// src/blocks/columns/columns.tsx
|
|
4932
4932
|
var _tmpl$3 = /* @__PURE__ */ template(`<div>`);
|
|
4933
|
-
var _tmpl$22 = /* @__PURE__ */ template(`<style>.div-
|
|
4933
|
+
var _tmpl$22 = /* @__PURE__ */ template(`<style>.div-6331dfc5 {
|
|
4934
4934
|
display: flex;
|
|
4935
4935
|
line-height: normal;
|
|
4936
4936
|
}`);
|
|
@@ -5059,7 +5059,7 @@ function Columns(props) {
|
|
|
5059
5059
|
const _el$ = _tmpl$3();
|
|
5060
5060
|
spread(_el$, mergeProps({
|
|
5061
5061
|
get ["class"]() {
|
|
5062
|
-
return getColumnsClass(props.builderBlock?.id) + " div-
|
|
5062
|
+
return getColumnsClass(props.builderBlock?.id) + " div-6331dfc5";
|
|
5063
5063
|
},
|
|
5064
5064
|
get style() {
|
|
5065
5065
|
return columnsCssVars();
|
|
@@ -5100,9 +5100,6 @@ function Columns(props) {
|
|
|
5100
5100
|
get parent() {
|
|
5101
5101
|
return props.builderBlock.id;
|
|
5102
5102
|
},
|
|
5103
|
-
styleProp: {
|
|
5104
|
-
flexGrow: "1"
|
|
5105
|
-
},
|
|
5106
5103
|
get context() {
|
|
5107
5104
|
return props.builderContext;
|
|
5108
5105
|
},
|
|
@@ -5114,6 +5111,9 @@ function Columns(props) {
|
|
|
5114
5111
|
},
|
|
5115
5112
|
get blocks() {
|
|
5116
5113
|
return column.blocks;
|
|
5114
|
+
},
|
|
5115
|
+
styleProp: {
|
|
5116
|
+
"flex-grow": "1"
|
|
5117
5117
|
}
|
|
5118
5118
|
});
|
|
5119
5119
|
}
|
|
@@ -5184,16 +5184,16 @@ function getSrcSet(url) {
|
|
|
5184
5184
|
// src/blocks/image/image.tsx
|
|
5185
5185
|
var _tmpl$5 = /* @__PURE__ */ template(`<source type=image/webp>`);
|
|
5186
5186
|
var _tmpl$23 = /* @__PURE__ */ template(`<picture><img>`);
|
|
5187
|
-
var _tmpl$32 = /* @__PURE__ */ template(`<div class="builder-image-sizer div-
|
|
5188
|
-
var _tmpl$42 = /* @__PURE__ */ template(`<div class=div-
|
|
5189
|
-
var _tmpl$52 = /* @__PURE__ */ template(`<style>.img-
|
|
5187
|
+
var _tmpl$32 = /* @__PURE__ */ template(`<div class="builder-image-sizer div-dc6700b4">`);
|
|
5188
|
+
var _tmpl$42 = /* @__PURE__ */ template(`<div class=div-dc6700b4-2>`);
|
|
5189
|
+
var _tmpl$52 = /* @__PURE__ */ template(`<style>.img-dc6700b4 {
|
|
5190
5190
|
opacity: 1;
|
|
5191
5191
|
transition: opacity 0.2s ease-in-out;
|
|
5192
|
-
}.div-
|
|
5192
|
+
}.div-dc6700b4 {
|
|
5193
5193
|
width: 100%;
|
|
5194
5194
|
pointer-events: none;
|
|
5195
5195
|
font-size: 0;
|
|
5196
|
-
}.div-
|
|
5196
|
+
}.div-dc6700b4-2 {
|
|
5197
5197
|
display: flex;
|
|
5198
5198
|
flex-direction: column;
|
|
5199
5199
|
align-items: stretch;
|
|
@@ -5242,8 +5242,6 @@ function Image(props) {
|
|
|
5242
5242
|
const out = props.aspectRatio ? aspectRatioStyles : void 0;
|
|
5243
5243
|
return out;
|
|
5244
5244
|
});
|
|
5245
|
-
onMount(() => {
|
|
5246
|
-
});
|
|
5247
5245
|
return [[(() => {
|
|
5248
5246
|
const _el$ = _tmpl$23(), _el$3 = _el$.firstChild;
|
|
5249
5247
|
insert(_el$, createComponent(Show, {
|
|
@@ -5257,7 +5255,7 @@ function Image(props) {
|
|
|
5257
5255
|
}
|
|
5258
5256
|
}), _el$3);
|
|
5259
5257
|
effect((_p$) => {
|
|
5260
|
-
const _v$ = "builder-image" + (props.className ? " " + props.className : "") + " img-
|
|
5258
|
+
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 = {
|
|
5261
5259
|
"object-position": props.backgroundPosition || "center",
|
|
5262
5260
|
"object-fit": props.backgroundSize || "cover",
|
|
5263
5261
|
...aspectRatioCss()
|
|
@@ -7070,9 +7068,9 @@ function logFetch(url) {
|
|
|
7070
7068
|
}
|
|
7071
7069
|
|
|
7072
7070
|
// src/blocks/form/form/form.tsx
|
|
7073
|
-
var _tmpl$13 = /* @__PURE__ */ template(`<pre class="builder-form-error-text pre-
|
|
7071
|
+
var _tmpl$13 = /* @__PURE__ */ template(`<pre class="builder-form-error-text pre-04a43b72">`);
|
|
7074
7072
|
var _tmpl$26 = /* @__PURE__ */ template(`<form>`);
|
|
7075
|
-
var _tmpl$34 = /* @__PURE__ */ template(`<style>.pre-
|
|
7073
|
+
var _tmpl$34 = /* @__PURE__ */ template(`<style>.pre-04a43b72 {
|
|
7076
7074
|
padding: 10px;
|
|
7077
7075
|
color: red;
|
|
7078
7076
|
text-align: center;
|
|
@@ -7282,34 +7280,7 @@ function FormComponent(props) {
|
|
|
7282
7280
|
return props.name;
|
|
7283
7281
|
}
|
|
7284
7282
|
}, {}, {}, () => props.attributes), false, true);
|
|
7285
|
-
insert(_el$,
|
|
7286
|
-
get when() {
|
|
7287
|
-
return props.builderBlock && props.builderBlock.children;
|
|
7288
|
-
},
|
|
7289
|
-
get children() {
|
|
7290
|
-
return createComponent(For, {
|
|
7291
|
-
get each() {
|
|
7292
|
-
return props.builderBlock?.children;
|
|
7293
|
-
},
|
|
7294
|
-
children: (block, _index) => {
|
|
7295
|
-
const idx = _index();
|
|
7296
|
-
return createComponent(block_default, {
|
|
7297
|
-
key: `form-block-${idx}`,
|
|
7298
|
-
block,
|
|
7299
|
-
get context() {
|
|
7300
|
-
return props.builderContext;
|
|
7301
|
-
},
|
|
7302
|
-
get registeredComponents() {
|
|
7303
|
-
return props.builderComponents;
|
|
7304
|
-
},
|
|
7305
|
-
get linkComponent() {
|
|
7306
|
-
return props.builderLinkComponent;
|
|
7307
|
-
}
|
|
7308
|
-
});
|
|
7309
|
-
}
|
|
7310
|
-
});
|
|
7311
|
-
}
|
|
7312
|
-
}), null);
|
|
7283
|
+
insert(_el$, () => props.children, null);
|
|
7313
7284
|
insert(_el$, createComponent(Show, {
|
|
7314
7285
|
get when() {
|
|
7315
7286
|
return submissionState() === "error";
|
|
@@ -7818,7 +7789,6 @@ function Video(props) {
|
|
|
7818
7789
|
"object-position": props.position,
|
|
7819
7790
|
// Hack to get object fit to work as expected and
|
|
7820
7791
|
// not have the video overflow
|
|
7821
|
-
"z-index": 2,
|
|
7822
7792
|
"border-radius": "1px",
|
|
7823
7793
|
...props.aspectRatio ? {
|
|
7824
7794
|
position: "absolute"
|
|
@@ -8046,7 +8016,7 @@ function getPreviewContent(_searchParams) {
|
|
|
8046
8016
|
}
|
|
8047
8017
|
|
|
8048
8018
|
// src/constants/sdk-version.ts
|
|
8049
|
-
var SDK_VERSION = "3.0.
|
|
8019
|
+
var SDK_VERSION = "3.0.5";
|
|
8050
8020
|
|
|
8051
8021
|
// src/helpers/sdk-headers.ts
|
|
8052
8022
|
var getSdkHeaders = () => ({
|
package/lib/edge/index.jsx
CHANGED
|
@@ -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
|
|
@@ -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 = () => ({
|