@builder.io/sdk-vue 0.4.5 → 0.5.1
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/package.json +1 -1
- package/packages/_vue2/dist/block-styles.1cc420e2.js +77 -0
- package/packages/_vue2/dist/block-styles.2b3d669b.cjs +1 -0
- package/packages/_vue2/dist/block-wrapper.563cc17f.cjs +1 -0
- package/packages/_vue2/dist/block-wrapper.ea9a7e90.js +66 -0
- package/packages/_vue2/dist/block.0f28da5b.cjs +3 -0
- package/packages/_vue2/dist/block.7a80ed18.js +178 -0
- package/packages/_vue2/dist/blocks-wrapper.9aacce51.js +72 -0
- package/packages/_vue2/dist/blocks-wrapper.c53a5f23.cjs +1 -0
- package/packages/_vue2/dist/component-ref.a631e3d7.cjs +1 -0
- package/packages/_vue2/dist/component-ref.af9c1a83.js +98 -0
- package/packages/_vue2/dist/content.2c7fa09f.cjs +1 -0
- package/packages/_vue2/dist/content.cb96a18a.js +913 -0
- package/packages/_vue2/dist/css.22755cda.js +21 -0
- package/packages/_vue2/dist/css.30299cfb.cjs +6 -0
- package/packages/_vue2/dist/enable-editor.852e9797.js +427 -0
- package/packages/_vue2/dist/enable-editor.c1b99af3.cjs +1 -0
- package/packages/_vue2/dist/evaluate.80a7f105.cjs +31 -0
- package/packages/_vue2/dist/evaluate.ce05cec9.js +4970 -0
- package/packages/_vue2/dist/get-block-actions.93f4e72e.cjs +1 -0
- package/packages/_vue2/dist/get-block-actions.c73f00d1.js +36 -0
- package/packages/_vue2/dist/get-block-properties.15a37ec1.js +48 -0
- package/packages/_vue2/dist/get-block-properties.d0235e56.cjs +1 -0
- package/packages/_vue2/dist/get-processed-block.d59ca820.js +52 -0
- package/packages/_vue2/dist/get-processed-block.d8938868.cjs +1 -0
- package/packages/_vue2/dist/index.1021dd83.cjs +32 -0
- package/packages/_vue2/dist/{index.dcd9672f.js → index.ed62d736.js} +565 -575
- package/packages/_vue2/dist/inlined-script.3e3c93e8.cjs +1 -0
- package/packages/_vue2/dist/{inlined-script.5b4b5fc3.js → inlined-script.cf733bda.js} +1 -1
- package/packages/_vue2/dist/{inlined-styles.759d26e8.js → inlined-styles.2709172e.js} +1 -1
- package/packages/_vue2/dist/{inlined-styles.9ddda3d7.cjs → inlined-styles.cf1e15e1.cjs} +1 -1
- package/packages/_vue2/dist/interactive-element.d51dde5a.js +42 -0
- package/packages/_vue2/dist/interactive-element.ea2a7d23.cjs +1 -0
- package/packages/_vue2/dist/repeated-block.9a46bc14.js +38 -0
- package/packages/_vue2/dist/repeated-block.a299d789.cjs +1 -0
- package/packages/_vue2/dist/sdk.cjs +1 -1
- package/packages/_vue2/dist/sdk.js +10 -10
- package/packages/_vue2/dist/src/blocks/button/button.vue.d.ts +9 -18
- package/packages/_vue2/dist/src/blocks/button/component-info.d.ts +1 -1
- package/packages/_vue2/dist/src/blocks/columns/columns.vue.d.ts +7 -6
- package/packages/_vue2/dist/src/blocks/columns/component-info.d.ts +1 -1
- package/packages/_vue2/dist/src/blocks/custom-code/component-info.d.ts +1 -1
- package/packages/_vue2/dist/src/blocks/embed/component-info.d.ts +1 -1
- package/packages/_vue2/dist/src/blocks/embed/embed.vue.d.ts +1 -1
- package/packages/_vue2/dist/src/blocks/fragment/component-info.d.ts +1 -1
- package/packages/_vue2/dist/src/blocks/helpers.d.ts +13 -0
- package/packages/_vue2/dist/src/blocks/image/component-info.d.ts +1 -1
- package/packages/_vue2/dist/src/blocks/image/image.vue.d.ts +6 -6
- package/packages/_vue2/dist/src/blocks/img/component-info.d.ts +1 -1
- package/packages/_vue2/dist/src/blocks/img/img.vue.d.ts +27 -6
- package/packages/_vue2/dist/src/blocks/section/component-info.d.ts +1 -1
- package/packages/_vue2/dist/src/blocks/section/section.vue.d.ts +9 -6
- package/packages/_vue2/dist/src/blocks/symbol/component-info.d.ts +1 -1
- package/packages/_vue2/dist/src/blocks/symbol/symbol.helpers.d.ts +14 -0
- package/packages/_vue2/dist/src/blocks/symbol/symbol.vue.d.ts +11 -7
- package/packages/_vue2/dist/src/blocks/text/component-info.d.ts +1 -1
- package/packages/_vue2/dist/src/blocks/video/component-info.d.ts +1 -1
- package/packages/_vue2/dist/src/blocks/video/video.vue.d.ts +7 -3
- package/packages/_vue2/dist/src/components/block/block.helpers.d.ts +13 -0
- package/packages/{_vue3/dist/src/components/render-block/render-block.vue.d.ts → _vue2/dist/src/components/block/block.vue.d.ts} +3 -2
- package/packages/_vue2/dist/src/components/{render-block → block/components}/block-styles.vue.d.ts +4 -4
- package/packages/_vue2/dist/src/components/block/components/block-wrapper.vue.d.ts +29 -0
- package/packages/_vue2/dist/src/components/block/components/component-ref/component-ref.helpers.d.ts +30 -0
- package/packages/_vue2/dist/src/components/block/components/component-ref/component-ref.vue.d.ts +2 -0
- package/packages/_vue2/dist/src/components/block/components/interactive-element.vue.d.ts +30 -0
- package/packages/_vue2/dist/src/components/block/components/repeated-block.vue.d.ts +16 -0
- package/packages/_vue2/dist/src/components/{render-blocks.vue.d.ts → blocks/blocks-wrapper.vue.d.ts} +6 -6
- package/packages/_vue2/dist/src/components/blocks/blocks.vue.d.ts +29 -0
- package/packages/_vue2/dist/src/components/{render-content/render-content.vue.d.ts → content/components/enable-editor.vue.d.ts} +12 -34
- package/packages/{_vue3/dist/src/components/render-content/components/render-styles.helpers.d.ts → _vue2/dist/src/components/content/components/styles.helpers.d.ts} +1 -1
- package/packages/_vue2/dist/src/components/{render-content/components/render-styles.vue.d.ts → content/components/styles.vue.d.ts} +1 -1
- package/packages/_vue2/dist/src/components/content/content.helpers.d.ts +7 -0
- package/packages/{_vue3/dist/src/components/render-content/render-content.types.d.ts → _vue2/dist/src/components/content/content.types.d.ts} +4 -4
- package/packages/_vue2/dist/src/components/content/content.vue.d.ts +26 -0
- package/packages/_vue2/dist/src/components/{render-content-variants/render-content-variants.types.d.ts → content-variants/content-variants.types.d.ts} +5 -5
- package/packages/_vue2/dist/src/components/{render-content-variants/render-content-variants.vue.d.ts → content-variants/content-variants.vue.d.ts} +9 -8
- package/packages/_vue2/dist/src/components/{render-content-variants → content-variants}/helpers.d.ts +4 -4
- package/packages/_vue2/dist/src/constants/sdk-version.d.ts +1 -1
- package/packages/_vue2/dist/src/constants/target.d.ts +1 -1
- package/packages/_vue2/dist/src/context/builder.context.d.ts +1 -1
- package/packages/_vue2/dist/src/context/components.context.d.ts +7 -0
- package/packages/_vue2/dist/src/context/types.d.ts +1 -1
- package/packages/_vue2/dist/src/functions/{evaluate.d.ts → evaluate/evaluate.d.ts} +5 -2
- package/packages/_vue2/dist/src/functions/evaluate/index.d.ts +1 -0
- package/packages/_vue2/dist/src/functions/evaluate/interpreter.d.ts +2 -0
- package/packages/_vue2/dist/src/functions/evaluate/non-node-runtime.d.ts +2 -0
- package/packages/_vue2/dist/src/functions/evaluate/types.d.ts +10 -0
- package/packages/_vue2/dist/src/functions/get-block-actions.d.ts +1 -0
- package/packages/_vue2/dist/src/functions/get-block-properties.d.ts +5 -1
- package/packages/_vue2/dist/src/functions/get-content/index.d.ts +2 -6
- package/packages/_vue2/dist/src/functions/get-processed-block.d.ts +1 -1
- package/packages/_vue2/dist/src/functions/get-react-native-block-styles.d.ts +1 -1
- package/packages/_vue2/dist/src/functions/is-non-node-server.d.ts +4 -0
- package/packages/_vue2/dist/src/functions/register-component.d.ts +2 -1
- package/packages/_vue2/dist/src/helpers/ab-tests.d.ts +2 -2
- package/packages/_vue2/dist/src/helpers/cookie.d.ts +2 -2
- package/packages/_vue2/dist/src/helpers/css.d.ts +1 -1
- package/packages/_vue2/dist/src/helpers/localStorage.d.ts +2 -2
- package/packages/_vue2/dist/src/helpers/preview-lru-cache/get.d.ts +1 -0
- package/packages/_vue2/dist/src/helpers/preview-lru-cache/helpers.d.ts +1 -0
- package/packages/_vue2/dist/src/helpers/preview-lru-cache/init.d.ts +6 -0
- package/packages/_vue2/dist/src/helpers/preview-lru-cache/set.d.ts +7 -0
- package/packages/_vue2/dist/src/helpers/preview-lru-cache/types.d.ts +12 -0
- package/packages/_vue2/dist/src/helpers/sessionId.d.ts +2 -2
- package/packages/_vue2/dist/src/helpers/visitorId.d.ts +1 -1
- package/packages/_vue2/dist/src/index-helpers/blocks-exports.d.ts +2 -2
- package/packages/_vue2/dist/src/index.d.ts +2 -2
- package/packages/_vue2/dist/src/types/builder-props.d.ts +9 -0
- package/packages/_vue2/dist/src/types/components.d.ts +8 -2
- package/packages/_vue2/dist/src/types/enforced-partials.d.ts +1 -1
- package/packages/_vue2/dist/src/types/targets.d.ts +1 -3
- package/packages/_vue2/dist/src/types/typescript.d.ts +3 -0
- package/packages/_vue2/dist/style.css +1 -1
- package/packages/_vue2/dist/{render-styles.b41f1309.js → styles.40b9604d.js} +7 -5
- package/packages/_vue2/dist/{render-styles.ba0e223a.cjs → styles.f4f6200a.cjs} +4 -4
- package/packages/_vue3/dist/block-wrapper.33cc2e78.js +54 -0
- package/packages/_vue3/dist/block-wrapper.d1ace9c6.cjs +1 -0
- package/packages/_vue3/dist/component-ref.20d41b64.js +111 -0
- package/packages/_vue3/dist/component-ref.7c98446d.cjs +1 -0
- package/packages/_vue3/dist/get-block-actions.1279eafb.js +79 -0
- package/packages/_vue3/dist/get-block-actions.9d2cfc9a.cjs +1 -0
- package/packages/_vue3/dist/index.a657fd9d.js +8094 -0
- package/packages/_vue3/dist/index.c5eee389.cjs +99 -0
- package/packages/_vue3/dist/repeated-block.48916c9e.js +33 -0
- package/packages/_vue3/dist/repeated-block.5aa51bc7.cjs +1 -0
- package/packages/_vue3/dist/sdk.cjs +1 -72
- package/packages/_vue3/dist/sdk.js +22 -3275
- package/packages/_vue3/dist/src/blocks/button/button.vue.d.ts +10 -6
- package/packages/_vue3/dist/src/blocks/button/component-info.d.ts +1 -1
- package/packages/_vue3/dist/src/blocks/columns/columns.vue.d.ts +18 -8
- package/packages/_vue3/dist/src/blocks/columns/component-info.d.ts +1 -1
- package/packages/_vue3/dist/src/blocks/custom-code/component-info.d.ts +1 -1
- package/packages/_vue3/dist/src/blocks/custom-code/custom-code.vue.d.ts +3 -3
- package/packages/_vue3/dist/src/blocks/embed/component-info.d.ts +1 -1
- package/packages/_vue3/dist/src/blocks/fragment/component-info.d.ts +1 -1
- package/packages/_vue3/dist/src/blocks/helpers.d.ts +13 -0
- package/packages/_vue3/dist/src/blocks/image/component-info.d.ts +1 -1
- package/packages/_vue3/dist/src/blocks/image/image.vue.d.ts +6 -6
- package/packages/_vue3/dist/src/blocks/img/component-info.d.ts +1 -1
- package/packages/_vue3/dist/src/blocks/img/img.vue.d.ts +9 -7
- package/packages/_vue3/dist/src/blocks/section/component-info.d.ts +1 -1
- package/packages/_vue3/dist/src/blocks/section/section.vue.d.ts +9 -6
- package/packages/_vue3/dist/src/blocks/symbol/component-info.d.ts +1 -1
- package/packages/_vue3/dist/src/blocks/symbol/symbol.helpers.d.ts +14 -0
- package/packages/_vue3/dist/src/blocks/symbol/symbol.vue.d.ts +20 -7
- package/packages/_vue3/dist/src/blocks/text/component-info.d.ts +1 -1
- package/packages/_vue3/dist/src/blocks/video/component-info.d.ts +1 -1
- package/packages/_vue3/dist/src/blocks/video/video.vue.d.ts +7 -3
- package/packages/_vue3/dist/src/components/block/block.helpers.d.ts +13 -0
- package/packages/{_vue2/dist/src/components/render-block/render-block.vue.d.ts → _vue3/dist/src/components/block/block.vue.d.ts} +3 -2
- package/packages/_vue3/dist/src/components/{render-block → block/components}/block-styles.vue.d.ts +4 -4
- package/packages/_vue3/dist/src/components/block/components/block-wrapper.vue.d.ts +29 -0
- package/packages/_vue3/dist/src/components/block/components/component-ref/component-ref.helpers.d.ts +30 -0
- package/packages/_vue3/dist/src/components/block/components/component-ref/component-ref.vue.d.ts +2 -0
- package/packages/_vue3/dist/src/components/block/components/interactive-element.vue.d.ts +30 -0
- package/packages/_vue3/dist/src/components/{render-block/render-repeated-block.vue.d.ts → block/components/repeated-block.vue.d.ts} +3 -0
- package/packages/_vue3/dist/src/components/{render-blocks.vue.d.ts → blocks/blocks-wrapper.vue.d.ts} +6 -6
- package/packages/_vue3/dist/src/components/blocks/blocks.vue.d.ts +29 -0
- package/packages/_vue3/dist/src/components/{render-content/render-content.vue.d.ts → content/components/enable-editor.vue.d.ts} +18 -49
- package/packages/{_vue2/dist/src/components/render-content/components/render-styles.helpers.d.ts → _vue3/dist/src/components/content/components/styles.helpers.d.ts} +1 -1
- package/packages/_vue3/dist/src/components/content/content.helpers.d.ts +7 -0
- package/packages/{_vue2/dist/src/components/render-content/render-content.types.d.ts → _vue3/dist/src/components/content/content.types.d.ts} +4 -4
- package/packages/_vue3/dist/src/components/content/content.vue.d.ts +69 -0
- package/packages/_vue3/dist/src/components/{render-content-variants/render-content-variants.types.d.ts → content-variants/content-variants.types.d.ts} +5 -5
- package/packages/_vue3/dist/src/components/{render-content-variants/render-content-variants.vue.d.ts → content-variants/content-variants.vue.d.ts} +21 -20
- package/packages/_vue3/dist/src/components/{render-content-variants → content-variants}/helpers.d.ts +7 -7
- package/packages/_vue3/dist/src/constants/sdk-version.d.ts +1 -1
- package/packages/_vue3/dist/src/constants/target.d.ts +1 -1
- package/packages/_vue3/dist/src/context/builder.context.d.ts +1 -1
- package/packages/_vue3/dist/src/context/components.context.d.ts +7 -0
- package/packages/_vue3/dist/src/context/types.d.ts +1 -1
- package/packages/_vue3/dist/src/functions/{evaluate.d.ts → evaluate/evaluate.d.ts} +5 -2
- package/packages/_vue3/dist/src/functions/evaluate/index.d.ts +1 -0
- package/packages/_vue3/dist/src/functions/evaluate/interpreter.d.ts +2 -0
- package/packages/_vue3/dist/src/functions/evaluate/non-node-runtime.d.ts +2 -0
- package/packages/_vue3/dist/src/functions/evaluate/types.d.ts +10 -0
- package/packages/_vue3/dist/src/functions/get-block-actions.d.ts +1 -0
- package/packages/_vue3/dist/src/functions/get-block-properties.d.ts +5 -1
- package/packages/_vue3/dist/src/functions/get-content/index.d.ts +2 -6
- package/packages/_vue3/dist/src/functions/get-processed-block.d.ts +1 -1
- package/packages/_vue3/dist/src/functions/get-react-native-block-styles.d.ts +1 -1
- package/packages/_vue3/dist/src/functions/is-non-node-server.d.ts +4 -0
- package/packages/_vue3/dist/src/functions/register-component.d.ts +2 -1
- package/packages/_vue3/dist/src/helpers/ab-tests.d.ts +2 -2
- package/packages/_vue3/dist/src/helpers/cookie.d.ts +2 -2
- package/packages/_vue3/dist/src/helpers/css.d.ts +1 -1
- package/packages/_vue3/dist/src/helpers/localStorage.d.ts +2 -2
- package/packages/_vue3/dist/src/helpers/preview-lru-cache/get.d.ts +1 -0
- package/packages/_vue3/dist/src/helpers/preview-lru-cache/helpers.d.ts +1 -0
- package/packages/_vue3/dist/src/helpers/preview-lru-cache/init.d.ts +6 -0
- package/packages/_vue3/dist/src/helpers/preview-lru-cache/set.d.ts +7 -0
- package/packages/_vue3/dist/src/helpers/preview-lru-cache/types.d.ts +12 -0
- package/packages/_vue3/dist/src/helpers/sessionId.d.ts +2 -2
- package/packages/_vue3/dist/src/helpers/visitorId.d.ts +1 -1
- package/packages/_vue3/dist/src/index-helpers/blocks-exports.d.ts +2 -2
- package/packages/_vue3/dist/src/index.d.ts +2 -2
- package/packages/_vue3/dist/src/types/builder-props.d.ts +9 -0
- package/packages/_vue3/dist/src/types/components.d.ts +8 -2
- package/packages/_vue3/dist/src/types/enforced-partials.d.ts +1 -1
- package/packages/_vue3/dist/src/types/targets.d.ts +1 -3
- package/packages/_vue3/dist/src/types/typescript.d.ts +3 -0
- package/packages/_vue3/dist/style.css +1 -1
- package/packages/_vue2/dist/block-styles.503c2141.cjs +0 -1
- package/packages/_vue2/dist/block-styles.76e698a7.js +0 -72
- package/packages/_vue2/dist/css.1601c108.js +0 -75
- package/packages/_vue2/dist/css.6d92c2ca.cjs +0 -6
- package/packages/_vue2/dist/evaluate.5365c739.js +0 -63
- package/packages/_vue2/dist/evaluate.97a0f474.cjs +0 -4
- package/packages/_vue2/dist/index.4de025de.cjs +0 -32
- package/packages/_vue2/dist/inlined-script.6a6ca760.cjs +0 -1
- package/packages/_vue2/dist/render-block.844495c0.js +0 -263
- package/packages/_vue2/dist/render-block.c0841b5d.cjs +0 -3
- package/packages/_vue2/dist/render-component.a3770d92.cjs +0 -1
- package/packages/_vue2/dist/render-component.a57a8b32.js +0 -38
- package/packages/_vue2/dist/render-content.19fe4991.cjs +0 -1
- package/packages/_vue2/dist/render-content.8d297efd.js +0 -1359
- package/packages/_vue2/dist/render-repeated-block.be86aae1.cjs +0 -1
- package/packages/_vue2/dist/render-repeated-block.f51da3f5.js +0 -38
- package/packages/_vue2/dist/src/blocks/util.d.ts +0 -4
- package/packages/_vue2/dist/src/components/render-block/render-block.helpers.d.ts +0 -12
- package/packages/_vue2/dist/src/components/render-block/render-component.vue.d.ts +0 -16
- package/packages/_vue2/dist/src/components/render-block/render-repeated-block.vue.d.ts +0 -13
- package/packages/_vue2/dist/src/components/render-content/render-content.helpers.d.ts +0 -7
- package/packages/_vue3/dist/src/blocks/util.d.ts +0 -4
- package/packages/_vue3/dist/src/components/render-block/render-block.helpers.d.ts +0 -12
- package/packages/_vue3/dist/src/components/render-block/render-component.vue.d.ts +0 -16
- package/packages/_vue3/dist/src/components/render-content/render-content.helpers.d.ts +0 -7
- /package/packages/_vue2/dist/src/components/{render-block → block}/types.d.ts +0 -0
- /package/packages/_vue2/dist/src/components/{render-content → content}/wrap-component-ref.d.ts +0 -0
- /package/packages/_vue3/dist/src/components/{render-block → block}/types.d.ts +0 -0
- /package/packages/_vue3/dist/src/components/{render-content/components/render-styles.vue.d.ts → content/components/styles.vue.d.ts} +0 -0
- /package/packages/_vue3/dist/src/components/{render-content → content}/wrap-component-ref.d.ts +0 -0
|
@@ -0,0 +1,913 @@
|
|
|
1
|
+
import { defineComponent as p } from "vue";
|
|
2
|
+
import { n as u, b as y, d as x, B as v, C as S, F as _, I as T, S as I, e as C, h as w, V as k, j as F, k as f, s as g, T as R, m as E } from "./index.ed62d736.js";
|
|
3
|
+
const V = {
|
|
4
|
+
name: "Core:Button",
|
|
5
|
+
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F81a15681c3e74df09677dfc57a615b13",
|
|
6
|
+
defaultStyles: {
|
|
7
|
+
appearance: "none",
|
|
8
|
+
paddingTop: "15px",
|
|
9
|
+
paddingBottom: "15px",
|
|
10
|
+
paddingLeft: "25px",
|
|
11
|
+
paddingRight: "25px",
|
|
12
|
+
backgroundColor: "#000000",
|
|
13
|
+
color: "white",
|
|
14
|
+
borderRadius: "4px",
|
|
15
|
+
textAlign: "center",
|
|
16
|
+
cursor: "pointer"
|
|
17
|
+
},
|
|
18
|
+
inputs: [{
|
|
19
|
+
name: "text",
|
|
20
|
+
type: "text",
|
|
21
|
+
defaultValue: "Click me!",
|
|
22
|
+
bubble: !0
|
|
23
|
+
}, {
|
|
24
|
+
name: "link",
|
|
25
|
+
type: "url",
|
|
26
|
+
bubble: !0
|
|
27
|
+
}, {
|
|
28
|
+
name: "openLinkInNewTab",
|
|
29
|
+
type: "boolean",
|
|
30
|
+
defaultValue: !1,
|
|
31
|
+
friendlyName: "Open link in new tab"
|
|
32
|
+
}],
|
|
33
|
+
static: !0,
|
|
34
|
+
noWrap: !0
|
|
35
|
+
}, A = {
|
|
36
|
+
name: "Columns",
|
|
37
|
+
isRSC: !0,
|
|
38
|
+
inputs: [{
|
|
39
|
+
name: "columns",
|
|
40
|
+
type: "array",
|
|
41
|
+
broadcast: !0,
|
|
42
|
+
subFields: [{
|
|
43
|
+
name: "blocks",
|
|
44
|
+
type: "array",
|
|
45
|
+
hideFromUI: !0,
|
|
46
|
+
defaultValue: [{
|
|
47
|
+
"@type": "@builder.io/sdk:Element",
|
|
48
|
+
responsiveStyles: {
|
|
49
|
+
large: {
|
|
50
|
+
display: "flex",
|
|
51
|
+
flexDirection: "column",
|
|
52
|
+
alignItems: "stretch",
|
|
53
|
+
flexShrink: "0",
|
|
54
|
+
position: "relative",
|
|
55
|
+
marginTop: "30px",
|
|
56
|
+
textAlign: "center",
|
|
57
|
+
lineHeight: "normal",
|
|
58
|
+
height: "auto",
|
|
59
|
+
minHeight: "20px",
|
|
60
|
+
minWidth: "20px",
|
|
61
|
+
overflow: "hidden"
|
|
62
|
+
}
|
|
63
|
+
},
|
|
64
|
+
component: {
|
|
65
|
+
name: "Image",
|
|
66
|
+
options: {
|
|
67
|
+
image: "https://builder.io/api/v1/image/assets%2Fpwgjf0RoYWbdnJSbpBAjXNRMe9F2%2Ffb27a7c790324294af8be1c35fe30f4d",
|
|
68
|
+
backgroundPosition: "center",
|
|
69
|
+
backgroundSize: "cover",
|
|
70
|
+
aspectRatio: 0.7004048582995948
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
}, {
|
|
74
|
+
"@type": "@builder.io/sdk:Element",
|
|
75
|
+
responsiveStyles: {
|
|
76
|
+
large: {
|
|
77
|
+
display: "flex",
|
|
78
|
+
flexDirection: "column",
|
|
79
|
+
alignItems: "stretch",
|
|
80
|
+
flexShrink: "0",
|
|
81
|
+
position: "relative",
|
|
82
|
+
marginTop: "30px",
|
|
83
|
+
textAlign: "center",
|
|
84
|
+
lineHeight: "normal",
|
|
85
|
+
height: "auto"
|
|
86
|
+
}
|
|
87
|
+
},
|
|
88
|
+
component: {
|
|
89
|
+
name: "Text",
|
|
90
|
+
options: {
|
|
91
|
+
text: "<p>Enter some text...</p>"
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
}]
|
|
95
|
+
}, {
|
|
96
|
+
name: "width",
|
|
97
|
+
type: "number",
|
|
98
|
+
hideFromUI: !0,
|
|
99
|
+
helperText: "Width %, e.g. set to 50 to fill half of the space"
|
|
100
|
+
}, {
|
|
101
|
+
name: "link",
|
|
102
|
+
type: "url",
|
|
103
|
+
helperText: "Optionally set a url that clicking this column will link to"
|
|
104
|
+
}],
|
|
105
|
+
defaultValue: [{
|
|
106
|
+
blocks: [{
|
|
107
|
+
"@type": "@builder.io/sdk:Element",
|
|
108
|
+
responsiveStyles: {
|
|
109
|
+
large: {
|
|
110
|
+
display: "flex",
|
|
111
|
+
flexDirection: "column",
|
|
112
|
+
alignItems: "stretch",
|
|
113
|
+
flexShrink: "0",
|
|
114
|
+
position: "relative",
|
|
115
|
+
marginTop: "30px",
|
|
116
|
+
textAlign: "center",
|
|
117
|
+
lineHeight: "normal",
|
|
118
|
+
height: "auto",
|
|
119
|
+
minHeight: "20px",
|
|
120
|
+
minWidth: "20px",
|
|
121
|
+
overflow: "hidden"
|
|
122
|
+
}
|
|
123
|
+
},
|
|
124
|
+
component: {
|
|
125
|
+
name: "Image",
|
|
126
|
+
options: {
|
|
127
|
+
image: "https://builder.io/api/v1/image/assets%2Fpwgjf0RoYWbdnJSbpBAjXNRMe9F2%2Ffb27a7c790324294af8be1c35fe30f4d",
|
|
128
|
+
backgroundPosition: "center",
|
|
129
|
+
backgroundSize: "cover",
|
|
130
|
+
aspectRatio: 0.7004048582995948
|
|
131
|
+
}
|
|
132
|
+
}
|
|
133
|
+
}, {
|
|
134
|
+
"@type": "@builder.io/sdk:Element",
|
|
135
|
+
responsiveStyles: {
|
|
136
|
+
large: {
|
|
137
|
+
display: "flex",
|
|
138
|
+
flexDirection: "column",
|
|
139
|
+
alignItems: "stretch",
|
|
140
|
+
flexShrink: "0",
|
|
141
|
+
position: "relative",
|
|
142
|
+
marginTop: "30px",
|
|
143
|
+
textAlign: "center",
|
|
144
|
+
lineHeight: "normal",
|
|
145
|
+
height: "auto"
|
|
146
|
+
}
|
|
147
|
+
},
|
|
148
|
+
component: {
|
|
149
|
+
name: "Text",
|
|
150
|
+
options: {
|
|
151
|
+
text: "<p>Enter some text...</p>"
|
|
152
|
+
}
|
|
153
|
+
}
|
|
154
|
+
}]
|
|
155
|
+
}, {
|
|
156
|
+
blocks: [{
|
|
157
|
+
"@type": "@builder.io/sdk:Element",
|
|
158
|
+
responsiveStyles: {
|
|
159
|
+
large: {
|
|
160
|
+
display: "flex",
|
|
161
|
+
flexDirection: "column",
|
|
162
|
+
alignItems: "stretch",
|
|
163
|
+
flexShrink: "0",
|
|
164
|
+
position: "relative",
|
|
165
|
+
marginTop: "30px",
|
|
166
|
+
textAlign: "center",
|
|
167
|
+
lineHeight: "normal",
|
|
168
|
+
height: "auto",
|
|
169
|
+
minHeight: "20px",
|
|
170
|
+
minWidth: "20px",
|
|
171
|
+
overflow: "hidden"
|
|
172
|
+
}
|
|
173
|
+
},
|
|
174
|
+
component: {
|
|
175
|
+
name: "Image",
|
|
176
|
+
options: {
|
|
177
|
+
image: "https://builder.io/api/v1/image/assets%2Fpwgjf0RoYWbdnJSbpBAjXNRMe9F2%2Ffb27a7c790324294af8be1c35fe30f4d",
|
|
178
|
+
backgroundPosition: "center",
|
|
179
|
+
backgroundSize: "cover",
|
|
180
|
+
aspectRatio: 0.7004048582995948
|
|
181
|
+
}
|
|
182
|
+
}
|
|
183
|
+
}, {
|
|
184
|
+
"@type": "@builder.io/sdk:Element",
|
|
185
|
+
responsiveStyles: {
|
|
186
|
+
large: {
|
|
187
|
+
display: "flex",
|
|
188
|
+
flexDirection: "column",
|
|
189
|
+
alignItems: "stretch",
|
|
190
|
+
flexShrink: "0",
|
|
191
|
+
position: "relative",
|
|
192
|
+
marginTop: "30px",
|
|
193
|
+
textAlign: "center",
|
|
194
|
+
lineHeight: "normal",
|
|
195
|
+
height: "auto"
|
|
196
|
+
}
|
|
197
|
+
},
|
|
198
|
+
component: {
|
|
199
|
+
name: "Text",
|
|
200
|
+
options: {
|
|
201
|
+
text: "<p>Enter some text...</p>"
|
|
202
|
+
}
|
|
203
|
+
}
|
|
204
|
+
}]
|
|
205
|
+
}],
|
|
206
|
+
onChange: (e) => {
|
|
207
|
+
function t() {
|
|
208
|
+
n.forEach((a) => {
|
|
209
|
+
a.delete("width");
|
|
210
|
+
});
|
|
211
|
+
}
|
|
212
|
+
const n = e.get("columns");
|
|
213
|
+
Array.isArray(n) && !!n.find((i) => i.get("width")) && (!!n.find((l) => !l.get("width")) || n.reduce((r, s) => r + s.get("width"), 0) !== 100) && t();
|
|
214
|
+
}
|
|
215
|
+
}, {
|
|
216
|
+
name: "space",
|
|
217
|
+
type: "number",
|
|
218
|
+
defaultValue: 20,
|
|
219
|
+
helperText: "Size of gap between columns",
|
|
220
|
+
advanced: !0
|
|
221
|
+
}, {
|
|
222
|
+
name: "stackColumnsAt",
|
|
223
|
+
type: "string",
|
|
224
|
+
defaultValue: "tablet",
|
|
225
|
+
helperText: "Convert horizontal columns to vertical at what device size",
|
|
226
|
+
enum: ["tablet", "mobile", "never"],
|
|
227
|
+
advanced: !0
|
|
228
|
+
}, {
|
|
229
|
+
name: "reverseColumnsWhenStacked",
|
|
230
|
+
type: "boolean",
|
|
231
|
+
defaultValue: !1,
|
|
232
|
+
helperText: "When stacking columns for mobile devices, reverse the ordering",
|
|
233
|
+
advanced: !0
|
|
234
|
+
}]
|
|
235
|
+
}, $ = {
|
|
236
|
+
name: "Fragment",
|
|
237
|
+
static: !0,
|
|
238
|
+
hidden: !0,
|
|
239
|
+
canHaveChildren: !0,
|
|
240
|
+
noWrap: !0
|
|
241
|
+
}, W = {
|
|
242
|
+
name: "Image",
|
|
243
|
+
static: !0,
|
|
244
|
+
image: "https://firebasestorage.googleapis.com/v0/b/builder-3b0a2.appspot.com/o/images%2Fbaseline-insert_photo-24px.svg?alt=media&token=4e5d0ef4-f5e8-4e57-b3a9-38d63a9b9dc4",
|
|
245
|
+
defaultStyles: {
|
|
246
|
+
position: "relative",
|
|
247
|
+
minHeight: "20px",
|
|
248
|
+
minWidth: "20px",
|
|
249
|
+
overflow: "hidden"
|
|
250
|
+
},
|
|
251
|
+
canHaveChildren: !0,
|
|
252
|
+
inputs: [{
|
|
253
|
+
name: "image",
|
|
254
|
+
type: "file",
|
|
255
|
+
bubble: !0,
|
|
256
|
+
allowedFileTypes: ["jpeg", "jpg", "png", "svg"],
|
|
257
|
+
required: !0,
|
|
258
|
+
defaultValue: "https://cdn.builder.io/api/v1/image/assets%2FYJIGb4i01jvw0SRdL5Bt%2F72c80f114dc149019051b6852a9e3b7a",
|
|
259
|
+
onChange: (e) => {
|
|
260
|
+
e.delete("srcset"), e.delete("noWebp");
|
|
261
|
+
function n(o, r = 6e4) {
|
|
262
|
+
return new Promise((s, c) => {
|
|
263
|
+
const d = document.createElement("img");
|
|
264
|
+
let m = !1;
|
|
265
|
+
d.onload = () => {
|
|
266
|
+
m = !0, s(d);
|
|
267
|
+
}, d.addEventListener("error", (h) => {
|
|
268
|
+
console.warn("Image load failed", h.error), c(h.error);
|
|
269
|
+
}), d.src = o, setTimeout(() => {
|
|
270
|
+
m || c(new Error("Image load timed out"));
|
|
271
|
+
}, r);
|
|
272
|
+
});
|
|
273
|
+
}
|
|
274
|
+
function a(o) {
|
|
275
|
+
return Math.round(o * 1e3) / 1e3;
|
|
276
|
+
}
|
|
277
|
+
const i = e.get("image"), l = e.get("aspectRatio");
|
|
278
|
+
if (fetch(i).then((o) => o.blob()).then((o) => {
|
|
279
|
+
o.type.includes("svg") && e.set("noWebp", !0);
|
|
280
|
+
}), i && (!l || l === 0.7041))
|
|
281
|
+
return n(i).then((o) => {
|
|
282
|
+
const r = e.get("aspectRatio");
|
|
283
|
+
e.get("image") === i && (!r || r === 0.7041) && o.width && o.height && (e.set("aspectRatio", a(o.height / o.width)), e.set("height", o.height), e.set("width", o.width));
|
|
284
|
+
});
|
|
285
|
+
}
|
|
286
|
+
}, {
|
|
287
|
+
name: "backgroundSize",
|
|
288
|
+
type: "text",
|
|
289
|
+
defaultValue: "cover",
|
|
290
|
+
enum: [{
|
|
291
|
+
label: "contain",
|
|
292
|
+
value: "contain",
|
|
293
|
+
helperText: "The image should never get cropped"
|
|
294
|
+
}, {
|
|
295
|
+
label: "cover",
|
|
296
|
+
value: "cover",
|
|
297
|
+
helperText: "The image should fill it's box, cropping when needed"
|
|
298
|
+
}]
|
|
299
|
+
}, {
|
|
300
|
+
name: "backgroundPosition",
|
|
301
|
+
type: "text",
|
|
302
|
+
defaultValue: "center",
|
|
303
|
+
enum: ["center", "top", "left", "right", "bottom", "top left", "top right", "bottom left", "bottom right"]
|
|
304
|
+
}, {
|
|
305
|
+
name: "altText",
|
|
306
|
+
type: "string",
|
|
307
|
+
helperText: "Text to display when the user has images off"
|
|
308
|
+
}, {
|
|
309
|
+
name: "height",
|
|
310
|
+
type: "number",
|
|
311
|
+
hideFromUI: !0
|
|
312
|
+
}, {
|
|
313
|
+
name: "width",
|
|
314
|
+
type: "number",
|
|
315
|
+
hideFromUI: !0
|
|
316
|
+
}, {
|
|
317
|
+
name: "sizes",
|
|
318
|
+
type: "string",
|
|
319
|
+
hideFromUI: !0
|
|
320
|
+
}, {
|
|
321
|
+
name: "srcset",
|
|
322
|
+
type: "string",
|
|
323
|
+
hideFromUI: !0
|
|
324
|
+
}, {
|
|
325
|
+
name: "lazy",
|
|
326
|
+
type: "boolean",
|
|
327
|
+
defaultValue: !0,
|
|
328
|
+
hideFromUI: !0
|
|
329
|
+
}, {
|
|
330
|
+
name: "fitContent",
|
|
331
|
+
type: "boolean",
|
|
332
|
+
helperText: "When child blocks are provided, fit to them instead of using the image's aspect ratio",
|
|
333
|
+
defaultValue: !0
|
|
334
|
+
}, {
|
|
335
|
+
name: "aspectRatio",
|
|
336
|
+
type: "number",
|
|
337
|
+
helperText: "This is the ratio of height/width, e.g. set to 1.5 for a 300px wide and 200px tall photo. Set to 0 to not force the image to maintain it's aspect ratio",
|
|
338
|
+
advanced: !0,
|
|
339
|
+
defaultValue: 0.7041
|
|
340
|
+
}]
|
|
341
|
+
}, P = {
|
|
342
|
+
name: "Core:Section",
|
|
343
|
+
static: !0,
|
|
344
|
+
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F682efef23ace49afac61748dd305c70a",
|
|
345
|
+
inputs: [{
|
|
346
|
+
name: "maxWidth",
|
|
347
|
+
type: "number",
|
|
348
|
+
defaultValue: 1200
|
|
349
|
+
}, {
|
|
350
|
+
name: "lazyLoad",
|
|
351
|
+
type: "boolean",
|
|
352
|
+
defaultValue: !1,
|
|
353
|
+
advanced: !0,
|
|
354
|
+
description: "Only render this section when in view"
|
|
355
|
+
}],
|
|
356
|
+
defaultStyles: {
|
|
357
|
+
paddingLeft: "20px",
|
|
358
|
+
paddingRight: "20px",
|
|
359
|
+
paddingTop: "50px",
|
|
360
|
+
paddingBottom: "50px",
|
|
361
|
+
marginTop: "0px",
|
|
362
|
+
width: "100vw",
|
|
363
|
+
marginLeft: "calc(50% - 50vw)"
|
|
364
|
+
},
|
|
365
|
+
canHaveChildren: !0,
|
|
366
|
+
defaultChildren: [{
|
|
367
|
+
"@type": "@builder.io/sdk:Element",
|
|
368
|
+
responsiveStyles: {
|
|
369
|
+
large: {
|
|
370
|
+
textAlign: "center"
|
|
371
|
+
}
|
|
372
|
+
},
|
|
373
|
+
component: {
|
|
374
|
+
name: "Text",
|
|
375
|
+
options: {
|
|
376
|
+
text: "<p><b>I am a section! My content keeps from getting too wide, so that it's easy to read even on big screens.</b></p><p>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur</p>"
|
|
377
|
+
}
|
|
378
|
+
}
|
|
379
|
+
}]
|
|
380
|
+
}, U = {
|
|
381
|
+
name: "Symbol",
|
|
382
|
+
noWrap: !0,
|
|
383
|
+
static: !0,
|
|
384
|
+
isRSC: !0,
|
|
385
|
+
inputs: [{
|
|
386
|
+
name: "symbol",
|
|
387
|
+
type: "uiSymbol"
|
|
388
|
+
}, {
|
|
389
|
+
name: "dataOnly",
|
|
390
|
+
helperText: "Make this a data symbol that doesn't display any UI",
|
|
391
|
+
type: "boolean",
|
|
392
|
+
defaultValue: !1,
|
|
393
|
+
advanced: !0,
|
|
394
|
+
hideFromUI: !0
|
|
395
|
+
}, {
|
|
396
|
+
name: "inheritState",
|
|
397
|
+
helperText: "Inherit the parent component state and data",
|
|
398
|
+
type: "boolean",
|
|
399
|
+
defaultValue: !1,
|
|
400
|
+
advanced: !0
|
|
401
|
+
}, {
|
|
402
|
+
name: "renderToLiquid",
|
|
403
|
+
helperText: "Render this symbols contents to liquid. Turn off to fetch with javascript and use custom targeting",
|
|
404
|
+
type: "boolean",
|
|
405
|
+
defaultValue: !1,
|
|
406
|
+
advanced: !0,
|
|
407
|
+
hideFromUI: !0
|
|
408
|
+
}, {
|
|
409
|
+
name: "useChildren",
|
|
410
|
+
hideFromUI: !0,
|
|
411
|
+
type: "boolean"
|
|
412
|
+
}]
|
|
413
|
+
}, j = {
|
|
414
|
+
name: "Text",
|
|
415
|
+
static: !0,
|
|
416
|
+
isRSC: !0,
|
|
417
|
+
image: "https://firebasestorage.googleapis.com/v0/b/builder-3b0a2.appspot.com/o/images%2Fbaseline-text_fields-24px%20(1).svg?alt=media&token=12177b73-0ee3-42ca-98c6-0dd003de1929",
|
|
418
|
+
inputs: [{
|
|
419
|
+
name: "text",
|
|
420
|
+
type: "html",
|
|
421
|
+
required: !0,
|
|
422
|
+
autoFocus: !0,
|
|
423
|
+
bubble: !0,
|
|
424
|
+
defaultValue: "Enter some text..."
|
|
425
|
+
}],
|
|
426
|
+
defaultStyles: {
|
|
427
|
+
lineHeight: "normal",
|
|
428
|
+
height: "auto",
|
|
429
|
+
textAlign: "center"
|
|
430
|
+
}
|
|
431
|
+
}, H = {
|
|
432
|
+
name: "Video",
|
|
433
|
+
canHaveChildren: !0,
|
|
434
|
+
defaultStyles: {
|
|
435
|
+
minHeight: "20px",
|
|
436
|
+
minWidth: "20px"
|
|
437
|
+
},
|
|
438
|
+
image: "https://firebasestorage.googleapis.com/v0/b/builder-3b0a2.appspot.com/o/images%2Fbaseline-videocam-24px%20(1).svg?alt=media&token=49a84e4a-b20e-4977-a650-047f986874bb",
|
|
439
|
+
inputs: [{
|
|
440
|
+
name: "video",
|
|
441
|
+
type: "file",
|
|
442
|
+
allowedFileTypes: ["mp4"],
|
|
443
|
+
bubble: !0,
|
|
444
|
+
defaultValue: "https://firebasestorage.googleapis.com/v0/b/builder-3b0a2.appspot.com/o/assets%2FKQlEmWDxA0coC3PK6UvkrjwkIGI2%2F28cb070609f546cdbe5efa20e931aa4b?alt=media&token=912e9551-7a7c-4dfb-86b6-3da1537d1a7f",
|
|
445
|
+
required: !0
|
|
446
|
+
}, {
|
|
447
|
+
name: "posterImage",
|
|
448
|
+
type: "file",
|
|
449
|
+
allowedFileTypes: ["jpeg", "png"],
|
|
450
|
+
helperText: "Image to show before the video plays"
|
|
451
|
+
}, {
|
|
452
|
+
name: "autoPlay",
|
|
453
|
+
type: "boolean",
|
|
454
|
+
defaultValue: !0
|
|
455
|
+
}, {
|
|
456
|
+
name: "controls",
|
|
457
|
+
type: "boolean",
|
|
458
|
+
defaultValue: !1
|
|
459
|
+
}, {
|
|
460
|
+
name: "muted",
|
|
461
|
+
type: "boolean",
|
|
462
|
+
defaultValue: !0
|
|
463
|
+
}, {
|
|
464
|
+
name: "loop",
|
|
465
|
+
type: "boolean",
|
|
466
|
+
defaultValue: !0
|
|
467
|
+
}, {
|
|
468
|
+
name: "playsInline",
|
|
469
|
+
type: "boolean",
|
|
470
|
+
defaultValue: !0
|
|
471
|
+
}, {
|
|
472
|
+
name: "fit",
|
|
473
|
+
type: "text",
|
|
474
|
+
defaultValue: "cover",
|
|
475
|
+
enum: ["contain", "cover", "fill", "auto"]
|
|
476
|
+
}, {
|
|
477
|
+
name: "preload",
|
|
478
|
+
type: "text",
|
|
479
|
+
defaultValue: "metadata",
|
|
480
|
+
enum: ["auto", "metadata", "none"]
|
|
481
|
+
}, {
|
|
482
|
+
name: "fitContent",
|
|
483
|
+
type: "boolean",
|
|
484
|
+
helperText: "When child blocks are provided, fit to them instead of using the aspect ratio",
|
|
485
|
+
defaultValue: !0,
|
|
486
|
+
advanced: !0
|
|
487
|
+
}, {
|
|
488
|
+
name: "position",
|
|
489
|
+
type: "text",
|
|
490
|
+
defaultValue: "center",
|
|
491
|
+
enum: ["center", "top", "left", "right", "bottom", "top left", "top right", "bottom left", "bottom right"]
|
|
492
|
+
}, {
|
|
493
|
+
name: "height",
|
|
494
|
+
type: "number",
|
|
495
|
+
advanced: !0
|
|
496
|
+
}, {
|
|
497
|
+
name: "width",
|
|
498
|
+
type: "number",
|
|
499
|
+
advanced: !0
|
|
500
|
+
}, {
|
|
501
|
+
name: "aspectRatio",
|
|
502
|
+
type: "number",
|
|
503
|
+
advanced: !0,
|
|
504
|
+
defaultValue: 0.7004048582995948
|
|
505
|
+
}, {
|
|
506
|
+
name: "lazyLoad",
|
|
507
|
+
type: "boolean",
|
|
508
|
+
helperText: 'Load this video "lazily" - as in only when a user scrolls near the video. Recommended for optmized performance and bandwidth consumption',
|
|
509
|
+
defaultValue: !0,
|
|
510
|
+
advanced: !0
|
|
511
|
+
}]
|
|
512
|
+
}, L = {
|
|
513
|
+
name: "Embed",
|
|
514
|
+
static: !0,
|
|
515
|
+
inputs: [{
|
|
516
|
+
name: "url",
|
|
517
|
+
type: "url",
|
|
518
|
+
required: !0,
|
|
519
|
+
defaultValue: "",
|
|
520
|
+
helperText: "e.g. enter a youtube url, google map, etc",
|
|
521
|
+
onChange: (e) => {
|
|
522
|
+
const t = e.get("url");
|
|
523
|
+
if (t)
|
|
524
|
+
return e.set("content", "Loading..."), fetch(`https://iframe.ly/api/iframely?url=${t}&api_key=ae0e60e78201a3f2b0de4b`).then((a) => a.json()).then((a) => {
|
|
525
|
+
e.get("url") === t && (a.html ? e.set("content", a.html) : e.set("content", "Invalid url, please try another"));
|
|
526
|
+
}).catch((a) => {
|
|
527
|
+
e.set("content", "There was an error embedding this URL, please try again or another URL");
|
|
528
|
+
});
|
|
529
|
+
e.delete("content");
|
|
530
|
+
}
|
|
531
|
+
}, {
|
|
532
|
+
name: "content",
|
|
533
|
+
type: "html",
|
|
534
|
+
defaultValue: '<div style="padding: 20px; text-align: center">(Choose an embed URL)<div>',
|
|
535
|
+
hideFromUI: !0
|
|
536
|
+
}]
|
|
537
|
+
}, z = ["text/javascript", "application/javascript", "application/ecmascript"], D = (e) => z.includes(e.type), N = p({
|
|
538
|
+
name: "builder-embed",
|
|
539
|
+
props: ["content"],
|
|
540
|
+
data() {
|
|
541
|
+
return { scriptsInserted: [], scriptsRun: [], ranInitFn: !1 };
|
|
542
|
+
},
|
|
543
|
+
watch: {
|
|
544
|
+
onUpdateHook0: {
|
|
545
|
+
handler() {
|
|
546
|
+
this.$refs.elem && !this.ranInitFn && (this.ranInitFn = !0, this.findAndRunScripts());
|
|
547
|
+
},
|
|
548
|
+
immediate: !0
|
|
549
|
+
}
|
|
550
|
+
},
|
|
551
|
+
computed: {
|
|
552
|
+
onUpdateHook0() {
|
|
553
|
+
return {
|
|
554
|
+
0: this.$refs.elem,
|
|
555
|
+
1: this.ranInitFn
|
|
556
|
+
};
|
|
557
|
+
}
|
|
558
|
+
},
|
|
559
|
+
methods: {
|
|
560
|
+
findAndRunScripts() {
|
|
561
|
+
if (!this.$refs.elem || !this.$refs.elem.getElementsByTagName)
|
|
562
|
+
return;
|
|
563
|
+
const e = this.$refs.elem.getElementsByTagName("script");
|
|
564
|
+
for (let t = 0; t < e.length; t++) {
|
|
565
|
+
const n = e[t];
|
|
566
|
+
if (n.src && !this.scriptsInserted.includes(n.src)) {
|
|
567
|
+
this.scriptsInserted.push(n.src);
|
|
568
|
+
const a = document.createElement("script");
|
|
569
|
+
a.async = !0, a.src = n.src, document.head.appendChild(a);
|
|
570
|
+
} else if (D(n) && !this.scriptsRun.includes(n.innerText))
|
|
571
|
+
try {
|
|
572
|
+
this.scriptsRun.push(n.innerText), new Function(n.innerText)();
|
|
573
|
+
} catch (a) {
|
|
574
|
+
console.warn("`Embed`: Error running script:", a);
|
|
575
|
+
}
|
|
576
|
+
}
|
|
577
|
+
}
|
|
578
|
+
}
|
|
579
|
+
});
|
|
580
|
+
var q = function() {
|
|
581
|
+
var t = this, n = t._self._c;
|
|
582
|
+
return t._self._setupProxy, n("div", { ref: "elem", staticClass: "builder-embed", domProps: { innerHTML: t._s(t.content) } });
|
|
583
|
+
}, B = [], M = /* @__PURE__ */ u(
|
|
584
|
+
N,
|
|
585
|
+
q,
|
|
586
|
+
B,
|
|
587
|
+
!1,
|
|
588
|
+
null,
|
|
589
|
+
null,
|
|
590
|
+
null,
|
|
591
|
+
null
|
|
592
|
+
);
|
|
593
|
+
const K = M.exports, O = p({
|
|
594
|
+
name: "builder-img-component",
|
|
595
|
+
props: [
|
|
596
|
+
"backgroundSize",
|
|
597
|
+
"backgroundPosition",
|
|
598
|
+
"imgSrc",
|
|
599
|
+
"altText",
|
|
600
|
+
"image",
|
|
601
|
+
"attributes"
|
|
602
|
+
],
|
|
603
|
+
data() {
|
|
604
|
+
return { isEditing: y, filterAttrs: x };
|
|
605
|
+
}
|
|
606
|
+
});
|
|
607
|
+
var J = function() {
|
|
608
|
+
var t = this, n = t._self._c;
|
|
609
|
+
return t._self._setupProxy, n("img", t._g(t._b({ key: t.isEditing() && t.imgSrc || "default-key", style: {
|
|
610
|
+
objectFit: t.backgroundSize || "cover",
|
|
611
|
+
objectPosition: t.backgroundPosition || "center"
|
|
612
|
+
}, attrs: { alt: t.altText, src: t.imgSrc || t.image } }, "img", t.filterAttrs(t.attributes, "v-on:", !1), !1), t.filterAttrs(t.attributes, "v-on:", !0)));
|
|
613
|
+
}, Y = [], G = /* @__PURE__ */ u(
|
|
614
|
+
O,
|
|
615
|
+
J,
|
|
616
|
+
Y,
|
|
617
|
+
!1,
|
|
618
|
+
null,
|
|
619
|
+
null,
|
|
620
|
+
null,
|
|
621
|
+
null
|
|
622
|
+
);
|
|
623
|
+
const X = G.exports, Q = {
|
|
624
|
+
name: "Raw:Img",
|
|
625
|
+
hideFromInsertMenu: !0,
|
|
626
|
+
image: "https://firebasestorage.googleapis.com/v0/b/builder-3b0a2.appspot.com/o/images%2Fbaseline-insert_photo-24px.svg?alt=media&token=4e5d0ef4-f5e8-4e57-b3a9-38d63a9b9dc4",
|
|
627
|
+
inputs: [{
|
|
628
|
+
name: "image",
|
|
629
|
+
bubble: !0,
|
|
630
|
+
type: "file",
|
|
631
|
+
allowedFileTypes: ["jpeg", "jpg", "png", "svg", "gif", "webp"],
|
|
632
|
+
required: !0
|
|
633
|
+
}],
|
|
634
|
+
noWrap: !0,
|
|
635
|
+
static: !0
|
|
636
|
+
}, Z = p({
|
|
637
|
+
name: "builder-custom-code",
|
|
638
|
+
props: ["replaceNodes", "code"],
|
|
639
|
+
data() {
|
|
640
|
+
return { scriptsInserted: [], scriptsRun: [] };
|
|
641
|
+
},
|
|
642
|
+
mounted() {
|
|
643
|
+
this.findAndRunScripts();
|
|
644
|
+
},
|
|
645
|
+
methods: {
|
|
646
|
+
findAndRunScripts() {
|
|
647
|
+
if (this.$refs.elem && this.$refs.elem.getElementsByTagName && typeof window < "u") {
|
|
648
|
+
const e = this.$refs.elem.getElementsByTagName("script");
|
|
649
|
+
for (let t = 0; t < e.length; t++) {
|
|
650
|
+
const n = e[t];
|
|
651
|
+
if (n.src) {
|
|
652
|
+
if (this.scriptsInserted.includes(n.src))
|
|
653
|
+
continue;
|
|
654
|
+
this.scriptsInserted.push(n.src);
|
|
655
|
+
const a = document.createElement("script");
|
|
656
|
+
a.async = !0, a.src = n.src, document.head.appendChild(a);
|
|
657
|
+
} else if (!n.type || [
|
|
658
|
+
"text/javascript",
|
|
659
|
+
"application/javascript",
|
|
660
|
+
"application/ecmascript"
|
|
661
|
+
].includes(n.type)) {
|
|
662
|
+
if (this.scriptsRun.includes(n.innerText))
|
|
663
|
+
continue;
|
|
664
|
+
try {
|
|
665
|
+
this.scriptsRun.push(n.innerText), new Function(n.innerText)();
|
|
666
|
+
} catch (a) {
|
|
667
|
+
console.warn("`CustomCode`: Error running script:", a);
|
|
668
|
+
}
|
|
669
|
+
}
|
|
670
|
+
}
|
|
671
|
+
}
|
|
672
|
+
},
|
|
673
|
+
_classStringToObject(e) {
|
|
674
|
+
const t = {};
|
|
675
|
+
if (typeof e != "string")
|
|
676
|
+
return t;
|
|
677
|
+
const n = e.trim().split(/\s+/);
|
|
678
|
+
for (const a of n)
|
|
679
|
+
t[a] = !0;
|
|
680
|
+
return t;
|
|
681
|
+
}
|
|
682
|
+
}
|
|
683
|
+
});
|
|
684
|
+
var ee = function() {
|
|
685
|
+
var t = this, n = t._self._c;
|
|
686
|
+
return t._self._setupProxy, n("div", { ref: "elem", class: t._classStringToObject(
|
|
687
|
+
"builder-custom-code" + (t.replaceNodes ? " replace-nodes" : "")
|
|
688
|
+
), domProps: { innerHTML: t._s(t.code) } });
|
|
689
|
+
}, te = [], ne = /* @__PURE__ */ u(
|
|
690
|
+
Z,
|
|
691
|
+
ee,
|
|
692
|
+
te,
|
|
693
|
+
!1,
|
|
694
|
+
null,
|
|
695
|
+
null,
|
|
696
|
+
null,
|
|
697
|
+
null
|
|
698
|
+
);
|
|
699
|
+
const ae = ne.exports, oe = {
|
|
700
|
+
name: "Custom Code",
|
|
701
|
+
static: !0,
|
|
702
|
+
requiredPermissions: ["editCode"],
|
|
703
|
+
inputs: [{
|
|
704
|
+
name: "code",
|
|
705
|
+
type: "html",
|
|
706
|
+
required: !0,
|
|
707
|
+
defaultValue: "<p>Hello there, I am custom HTML code!</p>",
|
|
708
|
+
code: !0
|
|
709
|
+
}, {
|
|
710
|
+
name: "replaceNodes",
|
|
711
|
+
type: "boolean",
|
|
712
|
+
helperText: "Preserve server rendered dom nodes",
|
|
713
|
+
advanced: !0
|
|
714
|
+
}, {
|
|
715
|
+
name: "scriptsClientOnly",
|
|
716
|
+
type: "boolean",
|
|
717
|
+
defaultValue: !1,
|
|
718
|
+
helperText: "Only print and run scripts on the client. Important when scripts influence DOM that could be replaced when client loads",
|
|
719
|
+
advanced: !0
|
|
720
|
+
}]
|
|
721
|
+
}, b = () => [{
|
|
722
|
+
component: v,
|
|
723
|
+
...V
|
|
724
|
+
}, {
|
|
725
|
+
component: S,
|
|
726
|
+
...A
|
|
727
|
+
}, {
|
|
728
|
+
component: ae,
|
|
729
|
+
...oe
|
|
730
|
+
}, {
|
|
731
|
+
component: K,
|
|
732
|
+
...L
|
|
733
|
+
}, {
|
|
734
|
+
component: _,
|
|
735
|
+
...$
|
|
736
|
+
}, {
|
|
737
|
+
component: T,
|
|
738
|
+
...W
|
|
739
|
+
}, {
|
|
740
|
+
component: X,
|
|
741
|
+
...Q
|
|
742
|
+
}, {
|
|
743
|
+
component: I,
|
|
744
|
+
...P
|
|
745
|
+
}, {
|
|
746
|
+
component: C,
|
|
747
|
+
...U
|
|
748
|
+
}, {
|
|
749
|
+
component: w,
|
|
750
|
+
...j
|
|
751
|
+
}, {
|
|
752
|
+
component: k,
|
|
753
|
+
...H
|
|
754
|
+
}], ie = ({
|
|
755
|
+
content: e,
|
|
756
|
+
data: t,
|
|
757
|
+
locale: n
|
|
758
|
+
}) => {
|
|
759
|
+
var l, o, r;
|
|
760
|
+
const a = {};
|
|
761
|
+
(o = (l = e == null ? void 0 : e.data) == null ? void 0 : l.inputs) == null || o.forEach((s) => {
|
|
762
|
+
var c;
|
|
763
|
+
s.name && s.defaultValue !== void 0 && ((c = e == null ? void 0 : e.data) == null ? void 0 : c.state) && e.data.state[s.name] === void 0 && (a[s.name] = s.defaultValue);
|
|
764
|
+
});
|
|
765
|
+
const i = {
|
|
766
|
+
...(r = e == null ? void 0 : e.data) == null ? void 0 : r.state,
|
|
767
|
+
...t,
|
|
768
|
+
...n ? {
|
|
769
|
+
locale: n
|
|
770
|
+
} : {}
|
|
771
|
+
};
|
|
772
|
+
return {
|
|
773
|
+
...a,
|
|
774
|
+
...i
|
|
775
|
+
};
|
|
776
|
+
}, re = ({
|
|
777
|
+
content: e,
|
|
778
|
+
data: t
|
|
779
|
+
}) => e ? {
|
|
780
|
+
...e,
|
|
781
|
+
data: {
|
|
782
|
+
...e == null ? void 0 : e.data,
|
|
783
|
+
...t
|
|
784
|
+
},
|
|
785
|
+
meta: e == null ? void 0 : e.meta
|
|
786
|
+
} : void 0, se = () => import("./index.ed62d736.js").then((e) => e.E).then((e) => e.default).catch((e) => {
|
|
787
|
+
throw console.error(
|
|
788
|
+
"Error while attempting to dynamically import component Blocks at ../blocks/blocks.vue",
|
|
789
|
+
e
|
|
790
|
+
), e;
|
|
791
|
+
}), le = () => import("./styles.40b9604d.js").then((e) => e.default).catch((e) => {
|
|
792
|
+
throw console.error(
|
|
793
|
+
"Error while attempting to dynamically import component ContentStyles at ./components/styles.vue",
|
|
794
|
+
e
|
|
795
|
+
), e;
|
|
796
|
+
}), ce = () => import("./enable-editor.852e9797.js").then((e) => e.default).catch((e) => {
|
|
797
|
+
throw console.error(
|
|
798
|
+
"Error while attempting to dynamically import component EnableEditor at ./components/enable-editor.vue",
|
|
799
|
+
e
|
|
800
|
+
), e;
|
|
801
|
+
}), de = () => import("./inlined-script.cf733bda.js").then((e) => e.default).catch((e) => {
|
|
802
|
+
throw console.error(
|
|
803
|
+
"Error while attempting to dynamically import component InlinedScript at ../inlined-script.vue",
|
|
804
|
+
e
|
|
805
|
+
), e;
|
|
806
|
+
}), pe = p({
|
|
807
|
+
name: "content-component",
|
|
808
|
+
components: {
|
|
809
|
+
"enable-editor": ce,
|
|
810
|
+
"inlined-script": de,
|
|
811
|
+
"content-styles": le,
|
|
812
|
+
blocks: se
|
|
813
|
+
},
|
|
814
|
+
props: [
|
|
815
|
+
"content",
|
|
816
|
+
"customComponents",
|
|
817
|
+
"data",
|
|
818
|
+
"locale",
|
|
819
|
+
"context",
|
|
820
|
+
"apiKey",
|
|
821
|
+
"apiVersion",
|
|
822
|
+
"model",
|
|
823
|
+
"canTrack",
|
|
824
|
+
"includeRefs",
|
|
825
|
+
"enrich",
|
|
826
|
+
"classNameProp",
|
|
827
|
+
"showContent",
|
|
828
|
+
"isSsrAbTest"
|
|
829
|
+
],
|
|
830
|
+
data() {
|
|
831
|
+
var e, t;
|
|
832
|
+
return {
|
|
833
|
+
scriptStr: F({
|
|
834
|
+
variationId: (e = this.content) == null ? void 0 : e.testVariationId,
|
|
835
|
+
contentId: (t = this.content) == null ? void 0 : t.id
|
|
836
|
+
}),
|
|
837
|
+
registeredComponents: [
|
|
838
|
+
...b(),
|
|
839
|
+
...f,
|
|
840
|
+
...this.customComponents || []
|
|
841
|
+
].reduce(
|
|
842
|
+
(n, { component: a, ...i }) => ({
|
|
843
|
+
...n,
|
|
844
|
+
[i.name]: {
|
|
845
|
+
component: a,
|
|
846
|
+
...g(i)
|
|
847
|
+
}
|
|
848
|
+
}),
|
|
849
|
+
{}
|
|
850
|
+
),
|
|
851
|
+
builderContextSignal: {
|
|
852
|
+
content: re({
|
|
853
|
+
content: this.content,
|
|
854
|
+
data: this.data
|
|
855
|
+
}),
|
|
856
|
+
localState: void 0,
|
|
857
|
+
rootState: ie({
|
|
858
|
+
content: this.content,
|
|
859
|
+
data: this.data,
|
|
860
|
+
locale: this.locale
|
|
861
|
+
}),
|
|
862
|
+
rootSetState: this.contentSetState,
|
|
863
|
+
context: this.context || {},
|
|
864
|
+
apiKey: this.apiKey,
|
|
865
|
+
apiVersion: this.apiVersion,
|
|
866
|
+
componentInfos: [
|
|
867
|
+
...b(),
|
|
868
|
+
...f,
|
|
869
|
+
...this.customComponents || []
|
|
870
|
+
].reduce(
|
|
871
|
+
(n, { component: a, ...i }) => ({
|
|
872
|
+
...n,
|
|
873
|
+
[i.name]: g(i)
|
|
874
|
+
}),
|
|
875
|
+
{}
|
|
876
|
+
),
|
|
877
|
+
inheritedStyles: {}
|
|
878
|
+
},
|
|
879
|
+
TARGET: R
|
|
880
|
+
};
|
|
881
|
+
},
|
|
882
|
+
provide() {
|
|
883
|
+
const e = this;
|
|
884
|
+
return {
|
|
885
|
+
[E.key]: {
|
|
886
|
+
registeredComponents: e.registeredComponents
|
|
887
|
+
}
|
|
888
|
+
};
|
|
889
|
+
},
|
|
890
|
+
methods: {
|
|
891
|
+
contentSetState(e) {
|
|
892
|
+
this.builderContextSignal.rootState = e;
|
|
893
|
+
}
|
|
894
|
+
}
|
|
895
|
+
});
|
|
896
|
+
var ue = function() {
|
|
897
|
+
var a, i, l, o, r, s, c;
|
|
898
|
+
var t = this, n = t._self._c;
|
|
899
|
+
return t._self._setupProxy, n("enable-editor", t._b({ attrs: { content: t.content, model: t.model, context: t.context, apiKey: t.apiKey, canTrack: t.canTrack, locale: t.locale, includeRefs: t.includeRefs, enrich: t.enrich, classNameProp: t.classNameProp, showContent: t.showContent, builderContextSignal: t.builderContextSignal } }, "enable-editor", {}, !1), [t.isSsrAbTest ? [n("inlined-script", { attrs: { scriptStr: t.scriptStr } })] : t._e(), t.TARGET !== "reactNative" ? [n("content-styles", { attrs: { contentId: (a = t.builderContextSignal.content) == null ? void 0 : a.id, cssCode: (l = (i = t.builderContextSignal.content) == null ? void 0 : i.data) == null ? void 0 : l.cssCode, customFonts: (r = (o = t.builderContextSignal.content) == null ? void 0 : o.data) == null ? void 0 : r.customFonts } })] : t._e(), n("blocks", { attrs: { blocks: (c = (s = t.builderContextSignal.content) == null ? void 0 : s.data) == null ? void 0 : c.blocks, context: t.builderContextSignal, registeredComponents: t.registeredComponents } })], 2);
|
|
900
|
+
}, me = [], he = /* @__PURE__ */ u(
|
|
901
|
+
pe,
|
|
902
|
+
ue,
|
|
903
|
+
me,
|
|
904
|
+
!1,
|
|
905
|
+
null,
|
|
906
|
+
null,
|
|
907
|
+
null,
|
|
908
|
+
null
|
|
909
|
+
);
|
|
910
|
+
const be = he.exports;
|
|
911
|
+
export {
|
|
912
|
+
be as default
|
|
913
|
+
};
|