@builder.io/sdk-qwik 0.7.1-6 → 0.7.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/browser/index.qwik.cjs +332 -234
- package/lib/browser/index.qwik.mjs +333 -235
- package/lib/edge/index.qwik.cjs +339 -241
- package/lib/edge/index.qwik.mjs +340 -242
- package/lib/node/index.qwik.cjs +341 -243
- package/lib/node/index.qwik.mjs +341 -243
- package/lib/node/{node-evaluate-fc9f27d1.cjs → node-evaluate-1a278bf5.cjs} +2 -1
- package/package.json +2 -3
- package/types/src/blocks/button/button.d.ts +2 -1
- package/types/src/blocks/img/img.d.ts +2 -1
- package/types/src/blocks/input/input.d.ts +2 -1
- package/types/src/blocks/section/section.d.ts +2 -1
- package/types/src/blocks/select/select.d.ts +2 -1
- package/types/src/blocks/submit-button/submit-button.d.ts +2 -1
- package/types/src/blocks/symbol/symbol.d.ts +4 -2
- package/types/src/blocks/textarea/textarea.d.ts +2 -1
- package/types/src/components/block/components/block-wrapper.d.ts +2 -1
- package/types/src/constants/sdk-version.d.ts +1 -1
- package/types/src/context/types.d.ts +1 -1
- package/types/src/functions/evaluate/node-runtime/safeDynamicRequire.d.ts +2 -4
- package/types/src/helpers/ab-tests.d.ts +1 -1
- package/types/src/server-index.d.ts +2 -2
- package/lib/index.qwik.js +0 -7609
- package/types/blocks/BaseText.d.ts +0 -5
- package/types/blocks/button/button.d.ts +0 -11
- package/types/blocks/button/component-info.d.ts +0 -2
- package/types/blocks/columns/columns.d.ts +0 -32
- package/types/blocks/columns/component-info.d.ts +0 -2
- package/types/blocks/custom-code/component-info.d.ts +0 -2
- package/types/blocks/custom-code/custom-code.d.ts +0 -7
- package/types/blocks/embed/component-info.d.ts +0 -2
- package/types/blocks/embed/embed.d.ts +0 -6
- package/types/blocks/embed/helpers.d.ts +0 -1
- package/types/blocks/form/component-info.d.ts +0 -2
- package/types/blocks/fragment/component-info.d.ts +0 -2
- package/types/blocks/fragment/fragment.d.ts +0 -7
- package/types/blocks/helpers.d.ts +0 -13
- package/types/blocks/image/component-info.d.ts +0 -2
- package/types/blocks/image/image.d.ts +0 -23
- package/types/blocks/image/image.helpers.d.ts +0 -1
- package/types/blocks/img/component-info.d.ts +0 -2
- package/types/blocks/img/img.d.ts +0 -12
- package/types/blocks/input/component-info.d.ts +0 -2
- package/types/blocks/input/input.d.ts +0 -13
- package/types/blocks/raw-text/component-info.d.ts +0 -2
- package/types/blocks/raw-text/raw-text.d.ts +0 -6
- package/types/blocks/section/component-info.d.ts +0 -2
- package/types/blocks/section/section.d.ts +0 -10
- package/types/blocks/select/component-info.d.ts +0 -2
- package/types/blocks/select/select.d.ts +0 -14
- package/types/blocks/submit-button/component-info.d.ts +0 -2
- package/types/blocks/submit-button/submit-button.d.ts +0 -8
- package/types/blocks/symbol/component-info.d.ts +0 -2
- package/types/blocks/symbol/symbol.d.ts +0 -24
- package/types/blocks/symbol/symbol.helpers.d.ts +0 -14
- package/types/blocks/text/component-info.d.ts +0 -2
- package/types/blocks/text/text.d.ts +0 -5
- package/types/blocks/textarea/component-info.d.ts +0 -2
- package/types/blocks/textarea/textarea.d.ts +0 -11
- package/types/blocks/video/component-info.d.ts +0 -2
- package/types/blocks/video/video.d.ts +0 -19
- package/types/components/block/block.d.ts +0 -9
- package/types/components/block/block.helpers.d.ts +0 -13
- package/types/components/block/components/block-styles.d.ts +0 -8
- package/types/components/block/components/block-wrapper.d.ts +0 -20
- package/types/components/block/components/component-ref/component-ref.d.ts +0 -3
- package/types/components/block/components/component-ref/component-ref.helpers.d.ts +0 -35
- package/types/components/block/components/interactive-element.d.ts +0 -11
- package/types/components/block/components/repeated-block.d.ts +0 -9
- package/types/components/block/types.d.ts +0 -6
- package/types/components/blocks/blocks-wrapper.d.ts +0 -13
- package/types/components/blocks/blocks.d.ts +0 -8
- package/types/components/blocks/deopt.d.ts +0 -4
- package/types/components/content/components/enable-editor.d.ts +0 -21
- package/types/components/content/components/styles.d.ts +0 -8
- package/types/components/content/components/styles.helpers.d.ts +0 -15
- package/types/components/content/content.d.ts +0 -5
- package/types/components/content/content.helpers.d.ts +0 -7
- package/types/components/content/content.types.d.ts +0 -24
- package/types/components/content/index.d.ts +0 -1
- package/types/components/content/wrap-component-ref.d.ts +0 -6
- package/types/components/content-variants/content-variants.d.ts +0 -9
- package/types/components/content-variants/content-variants.types.d.ts +0 -20
- package/types/components/content-variants/helpers.d.ts +0 -41
- package/types/components/inlined-script.d.ts +0 -6
- package/types/components/inlined-styles.d.ts +0 -6
- package/types/constants/builder-registered-components.d.ts +0 -6
- package/types/constants/device-sizes.d.ts +0 -13
- package/types/constants/sdk-version.d.ts +0 -1
- package/types/constants/target.d.ts +0 -2
- package/types/context/builder.context.d.ts +0 -2
- package/types/context/components.context.d.ts +0 -2
- package/types/context/types.d.ts +0 -35
- package/types/functions/apply-patch-with-mutation.d.ts +0 -10
- package/types/functions/camel-to-kebab-case.d.ts +0 -1
- package/types/functions/evaluate/browser-runtime/browser.d.ts +0 -4
- package/types/functions/evaluate/browser-runtime/index.d.ts +0 -1
- package/types/functions/evaluate/edge-runtime/acorn-interpreter.d.ts +0 -2
- package/types/functions/evaluate/edge-runtime/edge-runtime.d.ts +0 -2
- package/types/functions/evaluate/edge-runtime/index.d.ts +0 -1
- package/types/functions/evaluate/evaluate.d.ts +0 -6
- package/types/functions/evaluate/helpers.d.ts +0 -18
- package/types/functions/evaluate/index.d.ts +0 -1
- package/types/functions/evaluate/node-runtime/index.d.ts +0 -1
- package/types/functions/evaluate/non-node-runtime/acorn-interpreter.d.ts +0 -2
- package/types/functions/evaluate/non-node-runtime/index.d.ts +0 -1
- package/types/functions/evaluate/non-node-runtime/non-node-runtime.d.ts +0 -2
- package/types/functions/evaluate/placeholder-runtime.d.ts +0 -2
- package/types/functions/event-handler-name.d.ts +0 -1
- package/types/functions/extract-text-styles.d.ts +0 -4
- package/types/functions/fast-clone.d.ts +0 -4
- package/types/functions/fetch-builder-props.d.ts +0 -40
- package/types/functions/get-block-actions-handler.d.ts +0 -5
- package/types/functions/get-block-actions.d.ts +0 -10
- package/types/functions/get-block-component-options.d.ts +0 -2
- package/types/functions/get-block-properties.d.ts +0 -11
- package/types/functions/get-builder-search-params/index.d.ts +0 -12
- package/types/functions/get-content/generate-content-url.d.ts +0 -2
- package/types/functions/get-content/index.d.ts +0 -28
- package/types/functions/get-content/types.d.ts +0 -51
- package/types/functions/get-fetch.d.ts +0 -1
- package/types/functions/get-global-this.d.ts +0 -4
- package/types/functions/get-processed-block.d.ts +0 -10
- package/types/functions/get-react-native-block-styles.d.ts +0 -7
- package/types/functions/is-browser.d.ts +0 -1
- package/types/functions/is-edge-runtime.d.ts +0 -4
- package/types/functions/is-editing.d.ts +0 -1
- package/types/functions/is-iframe.d.ts +0 -1
- package/types/functions/is-non-node-server.d.ts +0 -4
- package/types/functions/is-previewing.d.ts +0 -1
- package/types/functions/on-change.d.ts +0 -7
- package/types/functions/register-component.d.ts +0 -15
- package/types/functions/register.d.ts +0 -16
- package/types/functions/sanitize-react-native-block-styles.d.ts +0 -3
- package/types/functions/set-editor-settings.d.ts +0 -4
- package/types/functions/set.d.ts +0 -7
- package/types/functions/track/helpers.d.ts +0 -5
- package/types/functions/track/index.d.ts +0 -51
- package/types/functions/track/interaction.d.ts +0 -13
- package/types/functions/transform-block-properties.d.ts +0 -1
- package/types/functions/transform-block.d.ts +0 -2
- package/types/helpers/ab-tests.d.ts +0 -9
- package/types/helpers/canTrack.d.ts +0 -1
- package/types/helpers/cookie.d.ts +0 -19
- package/types/helpers/css.d.ts +0 -7
- package/types/helpers/flatten.d.ts +0 -6
- package/types/helpers/localStorage.d.ts +0 -9
- package/types/helpers/logger.d.ts +0 -6
- package/types/helpers/nullable.d.ts +0 -2
- package/types/helpers/preview-lru-cache/get.d.ts +0 -2
- package/types/helpers/preview-lru-cache/helpers.d.ts +0 -0
- package/types/helpers/preview-lru-cache/init.d.ts +0 -6
- package/types/helpers/preview-lru-cache/set.d.ts +0 -7
- package/types/helpers/preview-lru-cache/types.d.ts +0 -0
- package/types/helpers/sessionId.d.ts +0 -6
- package/types/helpers/time.d.ts +0 -1
- package/types/helpers/url.d.ts +0 -6
- package/types/helpers/uuid.d.ts +0 -8
- package/types/helpers/visitorId.d.ts +0 -6
- package/types/index-helpers/blocks-exports.d.ts +0 -21
- package/types/index-helpers/top-of-file.d.ts +0 -1
- package/types/index.d.ts +0 -7
- package/types/scripts/init-editing.d.ts +0 -6
- package/types/server-index.d.ts +0 -15
- package/types/src/components/blocks/deopt.d.ts +0 -4
- package/types/src/functions/evaluate/non-node-runtime/acorn-interpreter.d.ts +0 -2
- package/types/src/functions/evaluate/non-node-runtime/index.d.ts +0 -1
- package/types/src/functions/evaluate/non-node-runtime/non-node-runtime.d.ts +0 -2
- package/types/src/functions/is-non-node-server.d.ts +0 -4
- package/types/types/api-version.d.ts +0 -2
- package/types/types/builder-block.d.ts +0 -66
- package/types/types/builder-content.d.ts +0 -44
- package/types/types/builder-props.d.ts +0 -9
- package/types/types/can-track.d.ts +0 -3
- package/types/types/components.d.ts +0 -111
- package/types/types/deep-partial.d.ts +0 -3
- package/types/types/element.d.ts +0 -59
- package/types/types/enforced-partials.d.ts +0 -21
- package/types/types/input.d.ts +0 -121
- package/types/types/targets.d.ts +0 -1
- package/types/types/typescript.d.ts +0 -11
package/lib/edge/index.qwik.cjs
CHANGED
|
@@ -59,6 +59,13 @@ const logger = {
|
|
|
59
59
|
warn: (...message) => console.warn(MSG_PREFIX, ...message),
|
|
60
60
|
debug: (...message) => console.debug(MSG_PREFIX, ...message)
|
|
61
61
|
};
|
|
62
|
+
const set = (obj, _path, value) => {
|
|
63
|
+
if (Object(obj) !== obj)
|
|
64
|
+
return obj;
|
|
65
|
+
const path = Array.isArray(_path) ? _path : _path.toString().match(/[^.[\]]+/g);
|
|
66
|
+
path.slice(0, -1).reduce((a, c, i) => Object(a[c]) === a[c] ? a[c] : a[c] = Math.abs(Number(path[i + 1])) >> 0 === +path[i + 1] ? [] : {}, obj)[path[path.length - 1]] = value;
|
|
67
|
+
return obj;
|
|
68
|
+
};
|
|
62
69
|
function isBrowser() {
|
|
63
70
|
return typeof window !== "undefined" && typeof document !== "undefined";
|
|
64
71
|
}
|
|
@@ -135,13 +142,6 @@ const parseCode = (code, { isExpression = true }) => {
|
|
|
135
142
|
const useCode = useReturn ? `return (${code});` : code;
|
|
136
143
|
return useCode;
|
|
137
144
|
};
|
|
138
|
-
const set = (obj, _path, value) => {
|
|
139
|
-
if (Object(obj) !== obj)
|
|
140
|
-
return obj;
|
|
141
|
-
const path = Array.isArray(_path) ? _path : _path.toString().match(/[^.[\]]+/g);
|
|
142
|
-
path.slice(0, -1).reduce((a, c, i) => Object(a[c]) === a[c] ? a[c] : a[c] = Math.abs(Number(path[i + 1])) >> 0 === +path[i + 1] ? [] : {}, obj)[path[path.length - 1]] = value;
|
|
143
|
-
return obj;
|
|
144
|
-
};
|
|
145
145
|
var p;
|
|
146
146
|
var ca = function(a) {
|
|
147
147
|
function b(f) {
|
|
@@ -4073,8 +4073,57 @@ const Block = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inlinedQrl(
|
|
|
4073
4073
|
},
|
|
4074
4074
|
children: [
|
|
4075
4075
|
/* @__PURE__ */ qwik._jsxC(ComponentRef, {
|
|
4076
|
-
|
|
4077
|
-
|
|
4076
|
+
get componentRef() {
|
|
4077
|
+
return componentRefProps.value.componentRef;
|
|
4078
|
+
},
|
|
4079
|
+
get componentOptions() {
|
|
4080
|
+
return componentRefProps.value.componentOptions;
|
|
4081
|
+
},
|
|
4082
|
+
get blockChildren() {
|
|
4083
|
+
return componentRefProps.value.blockChildren;
|
|
4084
|
+
},
|
|
4085
|
+
get context() {
|
|
4086
|
+
return componentRefProps.value.context;
|
|
4087
|
+
},
|
|
4088
|
+
get registeredComponents() {
|
|
4089
|
+
return componentRefProps.value.registeredComponents;
|
|
4090
|
+
},
|
|
4091
|
+
get builderBlock() {
|
|
4092
|
+
return componentRefProps.value.builderBlock;
|
|
4093
|
+
},
|
|
4094
|
+
get includeBlockProps() {
|
|
4095
|
+
return componentRefProps.value.includeBlockProps;
|
|
4096
|
+
},
|
|
4097
|
+
get isInteractive() {
|
|
4098
|
+
return componentRefProps.value.isInteractive;
|
|
4099
|
+
},
|
|
4100
|
+
[qwik._IMMUTABLE]: {
|
|
4101
|
+
blockChildren: qwik._fnSignal((p0) => p0.value.blockChildren, [
|
|
4102
|
+
componentRefProps
|
|
4103
|
+
], "p0.value.blockChildren"),
|
|
4104
|
+
builderBlock: qwik._fnSignal((p0) => p0.value.builderBlock, [
|
|
4105
|
+
componentRefProps
|
|
4106
|
+
], "p0.value.builderBlock"),
|
|
4107
|
+
componentOptions: qwik._fnSignal((p0) => p0.value.componentOptions, [
|
|
4108
|
+
componentRefProps
|
|
4109
|
+
], "p0.value.componentOptions"),
|
|
4110
|
+
componentRef: qwik._fnSignal((p0) => p0.value.componentRef, [
|
|
4111
|
+
componentRefProps
|
|
4112
|
+
], "p0.value.componentRef"),
|
|
4113
|
+
context: qwik._fnSignal((p0) => p0.value.context, [
|
|
4114
|
+
componentRefProps
|
|
4115
|
+
], "p0.value.context"),
|
|
4116
|
+
includeBlockProps: qwik._fnSignal((p0) => p0.value.includeBlockProps, [
|
|
4117
|
+
componentRefProps
|
|
4118
|
+
], "p0.value.includeBlockProps"),
|
|
4119
|
+
isInteractive: qwik._fnSignal((p0) => p0.value.isInteractive, [
|
|
4120
|
+
componentRefProps
|
|
4121
|
+
], "p0.value.isInteractive"),
|
|
4122
|
+
registeredComponents: qwik._fnSignal((p0) => p0.value.registeredComponents, [
|
|
4123
|
+
componentRefProps
|
|
4124
|
+
], "p0.value.registeredComponents")
|
|
4125
|
+
}
|
|
4126
|
+
}, 3, "jN_1"),
|
|
4078
4127
|
(childrenWithoutParentComponent.value || []).map((child) => {
|
|
4079
4128
|
return /* @__PURE__ */ qwik._jsxC(Block, {
|
|
4080
4129
|
block: child,
|
|
@@ -4124,8 +4173,57 @@ const Block = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inlinedQrl(
|
|
|
4124
4173
|
}, 1, "jN_2") : null
|
|
4125
4174
|
]
|
|
4126
4175
|
}, 1, "jN_3") : /* @__PURE__ */ qwik._jsxC(ComponentRef, {
|
|
4127
|
-
|
|
4128
|
-
|
|
4176
|
+
get componentRef() {
|
|
4177
|
+
return componentRefProps.value.componentRef;
|
|
4178
|
+
},
|
|
4179
|
+
get componentOptions() {
|
|
4180
|
+
return componentRefProps.value.componentOptions;
|
|
4181
|
+
},
|
|
4182
|
+
get blockChildren() {
|
|
4183
|
+
return componentRefProps.value.blockChildren;
|
|
4184
|
+
},
|
|
4185
|
+
get context() {
|
|
4186
|
+
return componentRefProps.value.context;
|
|
4187
|
+
},
|
|
4188
|
+
get registeredComponents() {
|
|
4189
|
+
return componentRefProps.value.registeredComponents;
|
|
4190
|
+
},
|
|
4191
|
+
get builderBlock() {
|
|
4192
|
+
return componentRefProps.value.builderBlock;
|
|
4193
|
+
},
|
|
4194
|
+
get includeBlockProps() {
|
|
4195
|
+
return componentRefProps.value.includeBlockProps;
|
|
4196
|
+
},
|
|
4197
|
+
get isInteractive() {
|
|
4198
|
+
return componentRefProps.value.isInteractive;
|
|
4199
|
+
},
|
|
4200
|
+
[qwik._IMMUTABLE]: {
|
|
4201
|
+
blockChildren: qwik._fnSignal((p0) => p0.value.blockChildren, [
|
|
4202
|
+
componentRefProps
|
|
4203
|
+
], "p0.value.blockChildren"),
|
|
4204
|
+
builderBlock: qwik._fnSignal((p0) => p0.value.builderBlock, [
|
|
4205
|
+
componentRefProps
|
|
4206
|
+
], "p0.value.builderBlock"),
|
|
4207
|
+
componentOptions: qwik._fnSignal((p0) => p0.value.componentOptions, [
|
|
4208
|
+
componentRefProps
|
|
4209
|
+
], "p0.value.componentOptions"),
|
|
4210
|
+
componentRef: qwik._fnSignal((p0) => p0.value.componentRef, [
|
|
4211
|
+
componentRefProps
|
|
4212
|
+
], "p0.value.componentRef"),
|
|
4213
|
+
context: qwik._fnSignal((p0) => p0.value.context, [
|
|
4214
|
+
componentRefProps
|
|
4215
|
+
], "p0.value.context"),
|
|
4216
|
+
includeBlockProps: qwik._fnSignal((p0) => p0.value.includeBlockProps, [
|
|
4217
|
+
componentRefProps
|
|
4218
|
+
], "p0.value.includeBlockProps"),
|
|
4219
|
+
isInteractive: qwik._fnSignal((p0) => p0.value.isInteractive, [
|
|
4220
|
+
componentRefProps
|
|
4221
|
+
], "p0.value.isInteractive"),
|
|
4222
|
+
registeredComponents: qwik._fnSignal((p0) => p0.value.registeredComponents, [
|
|
4223
|
+
componentRefProps
|
|
4224
|
+
], "p0.value.registeredComponents")
|
|
4225
|
+
}
|
|
4226
|
+
}, 3, "jN_4") : null
|
|
4129
4227
|
}, 1, "jN_5");
|
|
4130
4228
|
}, "Block_component_nnPv0RY0U0k"));
|
|
4131
4229
|
const onClick$1 = function onClick2(props, state) {
|
|
@@ -5097,13 +5195,185 @@ const componentInfo$9 = {
|
|
|
5097
5195
|
]
|
|
5098
5196
|
};
|
|
5099
5197
|
const componentInfo$8 = {
|
|
5198
|
+
name: "Custom Code",
|
|
5199
|
+
static: true,
|
|
5200
|
+
requiredPermissions: [
|
|
5201
|
+
"editCode"
|
|
5202
|
+
],
|
|
5203
|
+
inputs: [
|
|
5204
|
+
{
|
|
5205
|
+
name: "code",
|
|
5206
|
+
type: "html",
|
|
5207
|
+
required: true,
|
|
5208
|
+
defaultValue: "<p>Hello there, I am custom HTML code!</p>",
|
|
5209
|
+
code: true
|
|
5210
|
+
},
|
|
5211
|
+
{
|
|
5212
|
+
name: "replaceNodes",
|
|
5213
|
+
type: "boolean",
|
|
5214
|
+
helperText: "Preserve server rendered dom nodes",
|
|
5215
|
+
advanced: true
|
|
5216
|
+
},
|
|
5217
|
+
{
|
|
5218
|
+
name: "scriptsClientOnly",
|
|
5219
|
+
type: "boolean",
|
|
5220
|
+
defaultValue: false,
|
|
5221
|
+
helperText: "Only print and run scripts on the client. Important when scripts influence DOM that could be replaced when client loads",
|
|
5222
|
+
advanced: true
|
|
5223
|
+
}
|
|
5224
|
+
]
|
|
5225
|
+
};
|
|
5226
|
+
const CustomCode = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inlinedQrl((props) => {
|
|
5227
|
+
const elementRef = qwik.useSignal();
|
|
5228
|
+
const state = qwik.useStore({
|
|
5229
|
+
scriptsInserted: [],
|
|
5230
|
+
scriptsRun: []
|
|
5231
|
+
});
|
|
5232
|
+
qwik.useOn("qvisible", /* @__PURE__ */ qwik.inlinedQrl((event, element) => {
|
|
5233
|
+
const [state2] = qwik.useLexicalScope();
|
|
5234
|
+
if (!(element == null ? void 0 : element.getElementsByTagName) || typeof window === "undefined")
|
|
5235
|
+
return;
|
|
5236
|
+
const scripts = element.getElementsByTagName("script");
|
|
5237
|
+
for (let i = 0; i < scripts.length; i++) {
|
|
5238
|
+
const script = scripts[i];
|
|
5239
|
+
if (script.src) {
|
|
5240
|
+
if (state2.scriptsInserted.includes(script.src))
|
|
5241
|
+
continue;
|
|
5242
|
+
state2.scriptsInserted.push(script.src);
|
|
5243
|
+
const newScript = document.createElement("script");
|
|
5244
|
+
newScript.async = true;
|
|
5245
|
+
newScript.src = script.src;
|
|
5246
|
+
document.head.appendChild(newScript);
|
|
5247
|
+
} else if (!script.type || [
|
|
5248
|
+
"text/javascript",
|
|
5249
|
+
"application/javascript",
|
|
5250
|
+
"application/ecmascript"
|
|
5251
|
+
].includes(script.type)) {
|
|
5252
|
+
if (state2.scriptsRun.includes(script.innerText))
|
|
5253
|
+
continue;
|
|
5254
|
+
try {
|
|
5255
|
+
state2.scriptsRun.push(script.innerText);
|
|
5256
|
+
new Function(script.innerText)();
|
|
5257
|
+
} catch (error) {
|
|
5258
|
+
console.warn("`CustomCode`: Error running script:", error);
|
|
5259
|
+
}
|
|
5260
|
+
}
|
|
5261
|
+
}
|
|
5262
|
+
}, "CustomCode_component_useOn_zjAgBhFOiCs", [
|
|
5263
|
+
state
|
|
5264
|
+
]));
|
|
5265
|
+
return /* @__PURE__ */ qwik._jsxQ("div", {
|
|
5266
|
+
ref: elementRef
|
|
5267
|
+
}, {
|
|
5268
|
+
class: qwik._fnSignal((p0) => "builder-custom-code" + (p0.replaceNodes ? " replace-nodes" : ""), [
|
|
5269
|
+
props
|
|
5270
|
+
], '"builder-custom-code"+(p0.replaceNodes?" replace-nodes":"")'),
|
|
5271
|
+
dangerouslySetInnerHTML: qwik._fnSignal((p0) => p0.code, [
|
|
5272
|
+
props
|
|
5273
|
+
], "p0.code")
|
|
5274
|
+
}, null, 3, "bY_0");
|
|
5275
|
+
}, "CustomCode_component_uYOSy7w7Zqw"));
|
|
5276
|
+
const componentInfo$7 = {
|
|
5277
|
+
name: "Embed",
|
|
5278
|
+
static: true,
|
|
5279
|
+
inputs: [
|
|
5280
|
+
{
|
|
5281
|
+
name: "url",
|
|
5282
|
+
type: "url",
|
|
5283
|
+
required: true,
|
|
5284
|
+
defaultValue: "",
|
|
5285
|
+
helperText: "e.g. enter a youtube url, google map, etc",
|
|
5286
|
+
onChange: (options) => {
|
|
5287
|
+
const url = options.get("url");
|
|
5288
|
+
if (url) {
|
|
5289
|
+
options.set("content", "Loading...");
|
|
5290
|
+
const apiKey = "ae0e60e78201a3f2b0de4b";
|
|
5291
|
+
return fetch(`https://iframe.ly/api/iframely?url=${url}&api_key=${apiKey}`).then((res) => res.json()).then((data) => {
|
|
5292
|
+
if (options.get("url") === url) {
|
|
5293
|
+
if (data.html)
|
|
5294
|
+
options.set("content", data.html);
|
|
5295
|
+
else
|
|
5296
|
+
options.set("content", "Invalid url, please try another");
|
|
5297
|
+
}
|
|
5298
|
+
}).catch((_err) => {
|
|
5299
|
+
options.set("content", "There was an error embedding this URL, please try again or another URL");
|
|
5300
|
+
});
|
|
5301
|
+
} else
|
|
5302
|
+
options.delete("content");
|
|
5303
|
+
}
|
|
5304
|
+
},
|
|
5305
|
+
{
|
|
5306
|
+
name: "content",
|
|
5307
|
+
type: "html",
|
|
5308
|
+
defaultValue: '<div style="padding: 20px; text-align: center">(Choose an embed URL)<div>',
|
|
5309
|
+
hideFromUI: true
|
|
5310
|
+
}
|
|
5311
|
+
]
|
|
5312
|
+
};
|
|
5313
|
+
const SCRIPT_MIME_TYPES = [
|
|
5314
|
+
"text/javascript",
|
|
5315
|
+
"application/javascript",
|
|
5316
|
+
"application/ecmascript"
|
|
5317
|
+
];
|
|
5318
|
+
const isJsScript = (script) => SCRIPT_MIME_TYPES.includes(script.type);
|
|
5319
|
+
const findAndRunScripts = function findAndRunScripts2(props, state, elem) {
|
|
5320
|
+
if (!elem.value || !elem.value.getElementsByTagName)
|
|
5321
|
+
return;
|
|
5322
|
+
const scripts = elem.value.getElementsByTagName("script");
|
|
5323
|
+
for (let i = 0; i < scripts.length; i++) {
|
|
5324
|
+
const script = scripts[i];
|
|
5325
|
+
if (script.src && !state.scriptsInserted.includes(script.src)) {
|
|
5326
|
+
state.scriptsInserted.push(script.src);
|
|
5327
|
+
const newScript = document.createElement("script");
|
|
5328
|
+
newScript.async = true;
|
|
5329
|
+
newScript.src = script.src;
|
|
5330
|
+
document.head.appendChild(newScript);
|
|
5331
|
+
} else if (isJsScript(script) && !state.scriptsRun.includes(script.innerText))
|
|
5332
|
+
try {
|
|
5333
|
+
state.scriptsRun.push(script.innerText);
|
|
5334
|
+
new Function(script.innerText)();
|
|
5335
|
+
} catch (error) {
|
|
5336
|
+
console.warn("`Embed`: Error running script:", error);
|
|
5337
|
+
}
|
|
5338
|
+
}
|
|
5339
|
+
};
|
|
5340
|
+
const Embed = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inlinedQrl((props) => {
|
|
5341
|
+
const elem = qwik.useSignal();
|
|
5342
|
+
const state = qwik.useStore({
|
|
5343
|
+
ranInitFn: false,
|
|
5344
|
+
scriptsInserted: [],
|
|
5345
|
+
scriptsRun: []
|
|
5346
|
+
});
|
|
5347
|
+
qwik.useTaskQrl(/* @__PURE__ */ qwik.inlinedQrl(({ track: track2 }) => {
|
|
5348
|
+
const [elem2, props2, state2] = qwik.useLexicalScope();
|
|
5349
|
+
track2(() => elem2.value);
|
|
5350
|
+
track2(() => state2.ranInitFn);
|
|
5351
|
+
if (elem2.value && !state2.ranInitFn) {
|
|
5352
|
+
state2.ranInitFn = true;
|
|
5353
|
+
findAndRunScripts(props2, state2, elem2);
|
|
5354
|
+
}
|
|
5355
|
+
}, "Embed_component_useTask_bg7ez0XUtiM", [
|
|
5356
|
+
elem,
|
|
5357
|
+
props,
|
|
5358
|
+
state
|
|
5359
|
+
]));
|
|
5360
|
+
return /* @__PURE__ */ qwik._jsxQ("div", {
|
|
5361
|
+
ref: elem
|
|
5362
|
+
}, {
|
|
5363
|
+
class: "builder-embed",
|
|
5364
|
+
dangerouslySetInnerHTML: qwik._fnSignal((p0) => p0.content, [
|
|
5365
|
+
props
|
|
5366
|
+
], "p0.content")
|
|
5367
|
+
}, null, 3, "9r_0");
|
|
5368
|
+
}, "Embed_component_Uji08ORjXbE"));
|
|
5369
|
+
const componentInfo$6 = {
|
|
5100
5370
|
name: "Fragment",
|
|
5101
5371
|
static: true,
|
|
5102
5372
|
hidden: true,
|
|
5103
5373
|
canHaveChildren: true,
|
|
5104
5374
|
noWrap: true
|
|
5105
5375
|
};
|
|
5106
|
-
const componentInfo$
|
|
5376
|
+
const componentInfo$5 = {
|
|
5107
5377
|
name: "Image",
|
|
5108
5378
|
static: true,
|
|
5109
5379
|
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",
|
|
@@ -5251,7 +5521,49 @@ const componentInfo$7 = {
|
|
|
5251
5521
|
}
|
|
5252
5522
|
]
|
|
5253
5523
|
};
|
|
5254
|
-
const componentInfo$
|
|
5524
|
+
const componentInfo$4 = {
|
|
5525
|
+
// friendlyName?
|
|
5526
|
+
name: "Raw:Img",
|
|
5527
|
+
hideFromInsertMenu: true,
|
|
5528
|
+
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",
|
|
5529
|
+
inputs: [
|
|
5530
|
+
{
|
|
5531
|
+
name: "image",
|
|
5532
|
+
bubble: true,
|
|
5533
|
+
type: "file",
|
|
5534
|
+
allowedFileTypes: [
|
|
5535
|
+
"jpeg",
|
|
5536
|
+
"jpg",
|
|
5537
|
+
"png",
|
|
5538
|
+
"svg",
|
|
5539
|
+
"gif",
|
|
5540
|
+
"webp"
|
|
5541
|
+
],
|
|
5542
|
+
required: true
|
|
5543
|
+
}
|
|
5544
|
+
],
|
|
5545
|
+
noWrap: true,
|
|
5546
|
+
static: true
|
|
5547
|
+
};
|
|
5548
|
+
const ImgComponent = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inlinedQrl((props) => {
|
|
5549
|
+
return /* @__PURE__ */ qwik._jsxS("img", {
|
|
5550
|
+
...props.attributes
|
|
5551
|
+
}, {
|
|
5552
|
+
alt: qwik._fnSignal((p0) => p0.altText, [
|
|
5553
|
+
props
|
|
5554
|
+
], "p0.altText"),
|
|
5555
|
+
src: qwik._fnSignal((p0) => p0.imgSrc || p0.image, [
|
|
5556
|
+
props
|
|
5557
|
+
], "p0.imgSrc||p0.image"),
|
|
5558
|
+
style: qwik._fnSignal((p0) => ({
|
|
5559
|
+
objectFit: p0.backgroundSize || "cover",
|
|
5560
|
+
objectPosition: p0.backgroundPosition || "center"
|
|
5561
|
+
}), [
|
|
5562
|
+
props
|
|
5563
|
+
], '{objectFit:p0.backgroundSize||"cover",objectPosition:p0.backgroundPosition||"center"}')
|
|
5564
|
+
}, 0, isEditing() && props.imgSrc || "default-key");
|
|
5565
|
+
}, "ImgComponent_component_FXvIDBSffO8"));
|
|
5566
|
+
const componentInfo$3 = {
|
|
5255
5567
|
name: "Core:Section",
|
|
5256
5568
|
static: true,
|
|
5257
5569
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F682efef23ace49afac61748dd305c70a",
|
|
@@ -5296,7 +5608,7 @@ const componentInfo$6 = {
|
|
|
5296
5608
|
}
|
|
5297
5609
|
]
|
|
5298
5610
|
};
|
|
5299
|
-
const componentInfo$
|
|
5611
|
+
const componentInfo$2 = {
|
|
5300
5612
|
name: "Symbol",
|
|
5301
5613
|
noWrap: true,
|
|
5302
5614
|
static: true,
|
|
@@ -5336,7 +5648,7 @@ const componentInfo$5 = {
|
|
|
5336
5648
|
}
|
|
5337
5649
|
]
|
|
5338
5650
|
};
|
|
5339
|
-
const componentInfo$
|
|
5651
|
+
const componentInfo$1 = {
|
|
5340
5652
|
name: "Text",
|
|
5341
5653
|
static: true,
|
|
5342
5654
|
isRSC: true,
|
|
@@ -5371,7 +5683,7 @@ const Text = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inlinedQrl((
|
|
|
5371
5683
|
}
|
|
5372
5684
|
}, null, 3, "yO_0");
|
|
5373
5685
|
}, "Text_component_15p0cKUxgIE"));
|
|
5374
|
-
const componentInfo
|
|
5686
|
+
const componentInfo = {
|
|
5375
5687
|
name: "Video",
|
|
5376
5688
|
canHaveChildren: true,
|
|
5377
5689
|
defaultStyles: {
|
|
@@ -5555,220 +5867,6 @@ const Video = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inlinedQrl(
|
|
|
5555
5867
|
], '{width:"100%",height:"100%",...p0.attributes?.style,objectFit:p0.fit,objectPosition:p0.position,borderRadius:1}')
|
|
5556
5868
|
}, 0, "j7_0");
|
|
5557
5869
|
}, "Video_component_qdcTZflYyoQ"));
|
|
5558
|
-
const componentInfo$2 = {
|
|
5559
|
-
name: "Embed",
|
|
5560
|
-
static: true,
|
|
5561
|
-
inputs: [
|
|
5562
|
-
{
|
|
5563
|
-
name: "url",
|
|
5564
|
-
type: "url",
|
|
5565
|
-
required: true,
|
|
5566
|
-
defaultValue: "",
|
|
5567
|
-
helperText: "e.g. enter a youtube url, google map, etc",
|
|
5568
|
-
onChange: (options) => {
|
|
5569
|
-
const url = options.get("url");
|
|
5570
|
-
if (url) {
|
|
5571
|
-
options.set("content", "Loading...");
|
|
5572
|
-
const apiKey = "ae0e60e78201a3f2b0de4b";
|
|
5573
|
-
return fetch(`https://iframe.ly/api/iframely?url=${url}&api_key=${apiKey}`).then((res) => res.json()).then((data) => {
|
|
5574
|
-
if (options.get("url") === url) {
|
|
5575
|
-
if (data.html)
|
|
5576
|
-
options.set("content", data.html);
|
|
5577
|
-
else
|
|
5578
|
-
options.set("content", "Invalid url, please try another");
|
|
5579
|
-
}
|
|
5580
|
-
}).catch((_err) => {
|
|
5581
|
-
options.set("content", "There was an error embedding this URL, please try again or another URL");
|
|
5582
|
-
});
|
|
5583
|
-
} else
|
|
5584
|
-
options.delete("content");
|
|
5585
|
-
}
|
|
5586
|
-
},
|
|
5587
|
-
{
|
|
5588
|
-
name: "content",
|
|
5589
|
-
type: "html",
|
|
5590
|
-
defaultValue: '<div style="padding: 20px; text-align: center">(Choose an embed URL)<div>',
|
|
5591
|
-
hideFromUI: true
|
|
5592
|
-
}
|
|
5593
|
-
]
|
|
5594
|
-
};
|
|
5595
|
-
const SCRIPT_MIME_TYPES = [
|
|
5596
|
-
"text/javascript",
|
|
5597
|
-
"application/javascript",
|
|
5598
|
-
"application/ecmascript"
|
|
5599
|
-
];
|
|
5600
|
-
const isJsScript = (script) => SCRIPT_MIME_TYPES.includes(script.type);
|
|
5601
|
-
const findAndRunScripts = function findAndRunScripts2(props, state, elem) {
|
|
5602
|
-
if (!elem.value || !elem.value.getElementsByTagName)
|
|
5603
|
-
return;
|
|
5604
|
-
const scripts = elem.value.getElementsByTagName("script");
|
|
5605
|
-
for (let i = 0; i < scripts.length; i++) {
|
|
5606
|
-
const script = scripts[i];
|
|
5607
|
-
if (script.src && !state.scriptsInserted.includes(script.src)) {
|
|
5608
|
-
state.scriptsInserted.push(script.src);
|
|
5609
|
-
const newScript = document.createElement("script");
|
|
5610
|
-
newScript.async = true;
|
|
5611
|
-
newScript.src = script.src;
|
|
5612
|
-
document.head.appendChild(newScript);
|
|
5613
|
-
} else if (isJsScript(script) && !state.scriptsRun.includes(script.innerText))
|
|
5614
|
-
try {
|
|
5615
|
-
state.scriptsRun.push(script.innerText);
|
|
5616
|
-
new Function(script.innerText)();
|
|
5617
|
-
} catch (error) {
|
|
5618
|
-
console.warn("`Embed`: Error running script:", error);
|
|
5619
|
-
}
|
|
5620
|
-
}
|
|
5621
|
-
};
|
|
5622
|
-
const Embed = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inlinedQrl((props) => {
|
|
5623
|
-
const elem = qwik.useSignal();
|
|
5624
|
-
const state = qwik.useStore({
|
|
5625
|
-
ranInitFn: false,
|
|
5626
|
-
scriptsInserted: [],
|
|
5627
|
-
scriptsRun: []
|
|
5628
|
-
});
|
|
5629
|
-
qwik.useTaskQrl(/* @__PURE__ */ qwik.inlinedQrl(({ track: track2 }) => {
|
|
5630
|
-
const [elem2, props2, state2] = qwik.useLexicalScope();
|
|
5631
|
-
track2(() => elem2.value);
|
|
5632
|
-
track2(() => state2.ranInitFn);
|
|
5633
|
-
if (elem2.value && !state2.ranInitFn) {
|
|
5634
|
-
state2.ranInitFn = true;
|
|
5635
|
-
findAndRunScripts(props2, state2, elem2);
|
|
5636
|
-
}
|
|
5637
|
-
}, "Embed_component_useTask_bg7ez0XUtiM", [
|
|
5638
|
-
elem,
|
|
5639
|
-
props,
|
|
5640
|
-
state
|
|
5641
|
-
]));
|
|
5642
|
-
return /* @__PURE__ */ qwik._jsxQ("div", {
|
|
5643
|
-
ref: elem
|
|
5644
|
-
}, {
|
|
5645
|
-
class: "builder-embed",
|
|
5646
|
-
dangerouslySetInnerHTML: qwik._fnSignal((p0) => p0.content, [
|
|
5647
|
-
props
|
|
5648
|
-
], "p0.content")
|
|
5649
|
-
}, null, 3, "9r_0");
|
|
5650
|
-
}, "Embed_component_Uji08ORjXbE"));
|
|
5651
|
-
const ImgComponent = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inlinedQrl((props) => {
|
|
5652
|
-
return /* @__PURE__ */ qwik._jsxS("img", {
|
|
5653
|
-
...props.attributes
|
|
5654
|
-
}, {
|
|
5655
|
-
alt: qwik._fnSignal((p0) => p0.altText, [
|
|
5656
|
-
props
|
|
5657
|
-
], "p0.altText"),
|
|
5658
|
-
src: qwik._fnSignal((p0) => p0.imgSrc || p0.image, [
|
|
5659
|
-
props
|
|
5660
|
-
], "p0.imgSrc||p0.image"),
|
|
5661
|
-
style: qwik._fnSignal((p0) => ({
|
|
5662
|
-
objectFit: p0.backgroundSize || "cover",
|
|
5663
|
-
objectPosition: p0.backgroundPosition || "center"
|
|
5664
|
-
}), [
|
|
5665
|
-
props
|
|
5666
|
-
], '{objectFit:p0.backgroundSize||"cover",objectPosition:p0.backgroundPosition||"center"}')
|
|
5667
|
-
}, 0, isEditing() && props.imgSrc || "default-key");
|
|
5668
|
-
}, "ImgComponent_component_FXvIDBSffO8"));
|
|
5669
|
-
const componentInfo$1 = {
|
|
5670
|
-
// friendlyName?
|
|
5671
|
-
name: "Raw:Img",
|
|
5672
|
-
hideFromInsertMenu: true,
|
|
5673
|
-
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",
|
|
5674
|
-
inputs: [
|
|
5675
|
-
{
|
|
5676
|
-
name: "image",
|
|
5677
|
-
bubble: true,
|
|
5678
|
-
type: "file",
|
|
5679
|
-
allowedFileTypes: [
|
|
5680
|
-
"jpeg",
|
|
5681
|
-
"jpg",
|
|
5682
|
-
"png",
|
|
5683
|
-
"svg",
|
|
5684
|
-
"gif",
|
|
5685
|
-
"webp"
|
|
5686
|
-
],
|
|
5687
|
-
required: true
|
|
5688
|
-
}
|
|
5689
|
-
],
|
|
5690
|
-
noWrap: true,
|
|
5691
|
-
static: true
|
|
5692
|
-
};
|
|
5693
|
-
const CustomCode = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inlinedQrl((props) => {
|
|
5694
|
-
const elementRef = qwik.useSignal();
|
|
5695
|
-
const state = qwik.useStore({
|
|
5696
|
-
scriptsInserted: [],
|
|
5697
|
-
scriptsRun: []
|
|
5698
|
-
});
|
|
5699
|
-
qwik.useOn("qvisible", /* @__PURE__ */ qwik.inlinedQrl((event, element) => {
|
|
5700
|
-
const [state2] = qwik.useLexicalScope();
|
|
5701
|
-
if (!(element == null ? void 0 : element.getElementsByTagName) || typeof window === "undefined")
|
|
5702
|
-
return;
|
|
5703
|
-
const scripts = element.getElementsByTagName("script");
|
|
5704
|
-
for (let i = 0; i < scripts.length; i++) {
|
|
5705
|
-
const script = scripts[i];
|
|
5706
|
-
if (script.src) {
|
|
5707
|
-
if (state2.scriptsInserted.includes(script.src))
|
|
5708
|
-
continue;
|
|
5709
|
-
state2.scriptsInserted.push(script.src);
|
|
5710
|
-
const newScript = document.createElement("script");
|
|
5711
|
-
newScript.async = true;
|
|
5712
|
-
newScript.src = script.src;
|
|
5713
|
-
document.head.appendChild(newScript);
|
|
5714
|
-
} else if (!script.type || [
|
|
5715
|
-
"text/javascript",
|
|
5716
|
-
"application/javascript",
|
|
5717
|
-
"application/ecmascript"
|
|
5718
|
-
].includes(script.type)) {
|
|
5719
|
-
if (state2.scriptsRun.includes(script.innerText))
|
|
5720
|
-
continue;
|
|
5721
|
-
try {
|
|
5722
|
-
state2.scriptsRun.push(script.innerText);
|
|
5723
|
-
new Function(script.innerText)();
|
|
5724
|
-
} catch (error) {
|
|
5725
|
-
console.warn("`CustomCode`: Error running script:", error);
|
|
5726
|
-
}
|
|
5727
|
-
}
|
|
5728
|
-
}
|
|
5729
|
-
}, "CustomCode_component_useOn_zjAgBhFOiCs", [
|
|
5730
|
-
state
|
|
5731
|
-
]));
|
|
5732
|
-
return /* @__PURE__ */ qwik._jsxQ("div", {
|
|
5733
|
-
ref: elementRef
|
|
5734
|
-
}, {
|
|
5735
|
-
class: qwik._fnSignal((p0) => "builder-custom-code" + (p0.replaceNodes ? " replace-nodes" : ""), [
|
|
5736
|
-
props
|
|
5737
|
-
], '"builder-custom-code"+(p0.replaceNodes?" replace-nodes":"")'),
|
|
5738
|
-
dangerouslySetInnerHTML: qwik._fnSignal((p0) => p0.code, [
|
|
5739
|
-
props
|
|
5740
|
-
], "p0.code")
|
|
5741
|
-
}, null, 3, "bY_0");
|
|
5742
|
-
}, "CustomCode_component_uYOSy7w7Zqw"));
|
|
5743
|
-
const componentInfo = {
|
|
5744
|
-
name: "Custom Code",
|
|
5745
|
-
static: true,
|
|
5746
|
-
requiredPermissions: [
|
|
5747
|
-
"editCode"
|
|
5748
|
-
],
|
|
5749
|
-
inputs: [
|
|
5750
|
-
{
|
|
5751
|
-
name: "code",
|
|
5752
|
-
type: "html",
|
|
5753
|
-
required: true,
|
|
5754
|
-
defaultValue: "<p>Hello there, I am custom HTML code!</p>",
|
|
5755
|
-
code: true
|
|
5756
|
-
},
|
|
5757
|
-
{
|
|
5758
|
-
name: "replaceNodes",
|
|
5759
|
-
type: "boolean",
|
|
5760
|
-
helperText: "Preserve server rendered dom nodes",
|
|
5761
|
-
advanced: true
|
|
5762
|
-
},
|
|
5763
|
-
{
|
|
5764
|
-
name: "scriptsClientOnly",
|
|
5765
|
-
type: "boolean",
|
|
5766
|
-
defaultValue: false,
|
|
5767
|
-
helperText: "Only print and run scripts on the client. Important when scripts influence DOM that could be replaced when client loads",
|
|
5768
|
-
advanced: true
|
|
5769
|
-
}
|
|
5770
|
-
]
|
|
5771
|
-
};
|
|
5772
5870
|
const getDefaultRegisteredComponents = () => [
|
|
5773
5871
|
{
|
|
5774
5872
|
component: Button,
|
|
@@ -5780,39 +5878,39 @@ const getDefaultRegisteredComponents = () => [
|
|
|
5780
5878
|
},
|
|
5781
5879
|
{
|
|
5782
5880
|
component: CustomCode,
|
|
5783
|
-
...componentInfo
|
|
5881
|
+
...componentInfo$8
|
|
5784
5882
|
},
|
|
5785
5883
|
{
|
|
5786
5884
|
component: Embed,
|
|
5787
|
-
...componentInfo$
|
|
5885
|
+
...componentInfo$7
|
|
5788
5886
|
},
|
|
5789
5887
|
{
|
|
5790
5888
|
component: FragmentComponent,
|
|
5791
|
-
...componentInfo$
|
|
5889
|
+
...componentInfo$6
|
|
5792
5890
|
},
|
|
5793
5891
|
{
|
|
5794
5892
|
component: Image,
|
|
5795
|
-
...componentInfo$
|
|
5893
|
+
...componentInfo$5
|
|
5796
5894
|
},
|
|
5797
5895
|
{
|
|
5798
5896
|
component: ImgComponent,
|
|
5799
|
-
...componentInfo$
|
|
5897
|
+
...componentInfo$4
|
|
5800
5898
|
},
|
|
5801
5899
|
{
|
|
5802
5900
|
component: SectionComponent,
|
|
5803
|
-
...componentInfo$
|
|
5901
|
+
...componentInfo$3
|
|
5804
5902
|
},
|
|
5805
5903
|
{
|
|
5806
5904
|
component: Symbol$1,
|
|
5807
|
-
...componentInfo$
|
|
5905
|
+
...componentInfo$2
|
|
5808
5906
|
},
|
|
5809
5907
|
{
|
|
5810
5908
|
component: Text,
|
|
5811
|
-
...componentInfo$
|
|
5909
|
+
...componentInfo$1
|
|
5812
5910
|
},
|
|
5813
5911
|
{
|
|
5814
5912
|
component: Video,
|
|
5815
|
-
...componentInfo
|
|
5913
|
+
...componentInfo
|
|
5816
5914
|
}
|
|
5817
5915
|
];
|
|
5818
5916
|
const components = [];
|
|
@@ -6017,6 +6115,7 @@ function flatten(object, path = null, separator = ".") {
|
|
|
6017
6115
|
};
|
|
6018
6116
|
}, {});
|
|
6019
6117
|
}
|
|
6118
|
+
const DEFAULT_API_VERSION = "v3";
|
|
6020
6119
|
const BUILDER_SEARCHPARAMS_PREFIX = "builder.";
|
|
6021
6120
|
const BUILDER_OPTIONS_PREFIX = "options.";
|
|
6022
6121
|
const convertSearchParamsToQueryObject = (searchParams) => {
|
|
@@ -6046,7 +6145,6 @@ const getBuilderSearchParamsFromWindow = () => {
|
|
|
6046
6145
|
return getBuilderSearchParams(searchParams);
|
|
6047
6146
|
};
|
|
6048
6147
|
const normalizeSearchParams = (searchParams) => searchParams instanceof URLSearchParams ? convertSearchParamsToQueryObject(searchParams) : searchParams;
|
|
6049
|
-
const DEFAULT_API_VERSION = "v3";
|
|
6050
6148
|
const isPositiveNumber = (thing) => typeof thing === "number" && !isNaN(thing) && thing >= 0;
|
|
6051
6149
|
const generateContentUrl = (options) => {
|
|
6052
6150
|
let { noTraverse = false } = options;
|
|
@@ -6352,7 +6450,7 @@ const getInteractionPropertiesForEvent = (event) => {
|
|
|
6352
6450
|
}
|
|
6353
6451
|
};
|
|
6354
6452
|
};
|
|
6355
|
-
const SDK_VERSION = "0.7.
|
|
6453
|
+
const SDK_VERSION = "0.7.2";
|
|
6356
6454
|
const registry = {};
|
|
6357
6455
|
function register(type, info) {
|
|
6358
6456
|
let typeList = registry[type];
|