@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
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { componentQrl, inlinedQrl, useStylesScopedQrl, _jsxC, _jsxS, _fnSignal, createContextId, _jsxQ, _jsxBranch, useComputedQrl, useLexicalScope, _IMMUTABLE, Slot, useStore, useContextProvider, _wrapProp, useContext, createElement, Fragment as Fragment$1, useSignal,
|
|
1
|
+
import { componentQrl, inlinedQrl, useStylesScopedQrl, _jsxC, _jsxS, _fnSignal, createContextId, _jsxQ, _jsxBranch, useComputedQrl, useLexicalScope, _IMMUTABLE, Slot, useStore, useContextProvider, _wrapProp, useContext, createElement, Fragment as Fragment$1, useSignal, useOn, useTaskQrl } from "@builder.io/qwik";
|
|
2
2
|
import { Fragment } from "@builder.io/qwik/jsx-runtime";
|
|
3
3
|
import { isServer } from "@builder.io/qwik/build";
|
|
4
4
|
const Button = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl((props) => {
|
|
@@ -840,8 +840,57 @@ const Block = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl((props) =>
|
|
|
840
840
|
},
|
|
841
841
|
children: [
|
|
842
842
|
/* @__PURE__ */ _jsxC(ComponentRef, {
|
|
843
|
-
|
|
844
|
-
|
|
843
|
+
get componentRef() {
|
|
844
|
+
return componentRefProps.value.componentRef;
|
|
845
|
+
},
|
|
846
|
+
get componentOptions() {
|
|
847
|
+
return componentRefProps.value.componentOptions;
|
|
848
|
+
},
|
|
849
|
+
get blockChildren() {
|
|
850
|
+
return componentRefProps.value.blockChildren;
|
|
851
|
+
},
|
|
852
|
+
get context() {
|
|
853
|
+
return componentRefProps.value.context;
|
|
854
|
+
},
|
|
855
|
+
get registeredComponents() {
|
|
856
|
+
return componentRefProps.value.registeredComponents;
|
|
857
|
+
},
|
|
858
|
+
get builderBlock() {
|
|
859
|
+
return componentRefProps.value.builderBlock;
|
|
860
|
+
},
|
|
861
|
+
get includeBlockProps() {
|
|
862
|
+
return componentRefProps.value.includeBlockProps;
|
|
863
|
+
},
|
|
864
|
+
get isInteractive() {
|
|
865
|
+
return componentRefProps.value.isInteractive;
|
|
866
|
+
},
|
|
867
|
+
[_IMMUTABLE]: {
|
|
868
|
+
blockChildren: _fnSignal((p0) => p0.value.blockChildren, [
|
|
869
|
+
componentRefProps
|
|
870
|
+
], "p0.value.blockChildren"),
|
|
871
|
+
builderBlock: _fnSignal((p0) => p0.value.builderBlock, [
|
|
872
|
+
componentRefProps
|
|
873
|
+
], "p0.value.builderBlock"),
|
|
874
|
+
componentOptions: _fnSignal((p0) => p0.value.componentOptions, [
|
|
875
|
+
componentRefProps
|
|
876
|
+
], "p0.value.componentOptions"),
|
|
877
|
+
componentRef: _fnSignal((p0) => p0.value.componentRef, [
|
|
878
|
+
componentRefProps
|
|
879
|
+
], "p0.value.componentRef"),
|
|
880
|
+
context: _fnSignal((p0) => p0.value.context, [
|
|
881
|
+
componentRefProps
|
|
882
|
+
], "p0.value.context"),
|
|
883
|
+
includeBlockProps: _fnSignal((p0) => p0.value.includeBlockProps, [
|
|
884
|
+
componentRefProps
|
|
885
|
+
], "p0.value.includeBlockProps"),
|
|
886
|
+
isInteractive: _fnSignal((p0) => p0.value.isInteractive, [
|
|
887
|
+
componentRefProps
|
|
888
|
+
], "p0.value.isInteractive"),
|
|
889
|
+
registeredComponents: _fnSignal((p0) => p0.value.registeredComponents, [
|
|
890
|
+
componentRefProps
|
|
891
|
+
], "p0.value.registeredComponents")
|
|
892
|
+
}
|
|
893
|
+
}, 3, "jN_1"),
|
|
845
894
|
(childrenWithoutParentComponent.value || []).map((child) => {
|
|
846
895
|
return /* @__PURE__ */ _jsxC(Block, {
|
|
847
896
|
block: child,
|
|
@@ -891,8 +940,57 @@ const Block = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl((props) =>
|
|
|
891
940
|
}, 1, "jN_2") : null
|
|
892
941
|
]
|
|
893
942
|
}, 1, "jN_3") : /* @__PURE__ */ _jsxC(ComponentRef, {
|
|
894
|
-
|
|
895
|
-
|
|
943
|
+
get componentRef() {
|
|
944
|
+
return componentRefProps.value.componentRef;
|
|
945
|
+
},
|
|
946
|
+
get componentOptions() {
|
|
947
|
+
return componentRefProps.value.componentOptions;
|
|
948
|
+
},
|
|
949
|
+
get blockChildren() {
|
|
950
|
+
return componentRefProps.value.blockChildren;
|
|
951
|
+
},
|
|
952
|
+
get context() {
|
|
953
|
+
return componentRefProps.value.context;
|
|
954
|
+
},
|
|
955
|
+
get registeredComponents() {
|
|
956
|
+
return componentRefProps.value.registeredComponents;
|
|
957
|
+
},
|
|
958
|
+
get builderBlock() {
|
|
959
|
+
return componentRefProps.value.builderBlock;
|
|
960
|
+
},
|
|
961
|
+
get includeBlockProps() {
|
|
962
|
+
return componentRefProps.value.includeBlockProps;
|
|
963
|
+
},
|
|
964
|
+
get isInteractive() {
|
|
965
|
+
return componentRefProps.value.isInteractive;
|
|
966
|
+
},
|
|
967
|
+
[_IMMUTABLE]: {
|
|
968
|
+
blockChildren: _fnSignal((p0) => p0.value.blockChildren, [
|
|
969
|
+
componentRefProps
|
|
970
|
+
], "p0.value.blockChildren"),
|
|
971
|
+
builderBlock: _fnSignal((p0) => p0.value.builderBlock, [
|
|
972
|
+
componentRefProps
|
|
973
|
+
], "p0.value.builderBlock"),
|
|
974
|
+
componentOptions: _fnSignal((p0) => p0.value.componentOptions, [
|
|
975
|
+
componentRefProps
|
|
976
|
+
], "p0.value.componentOptions"),
|
|
977
|
+
componentRef: _fnSignal((p0) => p0.value.componentRef, [
|
|
978
|
+
componentRefProps
|
|
979
|
+
], "p0.value.componentRef"),
|
|
980
|
+
context: _fnSignal((p0) => p0.value.context, [
|
|
981
|
+
componentRefProps
|
|
982
|
+
], "p0.value.context"),
|
|
983
|
+
includeBlockProps: _fnSignal((p0) => p0.value.includeBlockProps, [
|
|
984
|
+
componentRefProps
|
|
985
|
+
], "p0.value.includeBlockProps"),
|
|
986
|
+
isInteractive: _fnSignal((p0) => p0.value.isInteractive, [
|
|
987
|
+
componentRefProps
|
|
988
|
+
], "p0.value.isInteractive"),
|
|
989
|
+
registeredComponents: _fnSignal((p0) => p0.value.registeredComponents, [
|
|
990
|
+
componentRefProps
|
|
991
|
+
], "p0.value.registeredComponents")
|
|
992
|
+
}
|
|
993
|
+
}, 3, "jN_4") : null
|
|
896
994
|
}, 1, "jN_5");
|
|
897
995
|
}, "Block_component_nnPv0RY0U0k"));
|
|
898
996
|
const onClick$1 = function onClick2(props, state) {
|
|
@@ -1864,13 +1962,185 @@ const componentInfo$9 = {
|
|
|
1864
1962
|
]
|
|
1865
1963
|
};
|
|
1866
1964
|
const componentInfo$8 = {
|
|
1965
|
+
name: "Custom Code",
|
|
1966
|
+
static: true,
|
|
1967
|
+
requiredPermissions: [
|
|
1968
|
+
"editCode"
|
|
1969
|
+
],
|
|
1970
|
+
inputs: [
|
|
1971
|
+
{
|
|
1972
|
+
name: "code",
|
|
1973
|
+
type: "html",
|
|
1974
|
+
required: true,
|
|
1975
|
+
defaultValue: "<p>Hello there, I am custom HTML code!</p>",
|
|
1976
|
+
code: true
|
|
1977
|
+
},
|
|
1978
|
+
{
|
|
1979
|
+
name: "replaceNodes",
|
|
1980
|
+
type: "boolean",
|
|
1981
|
+
helperText: "Preserve server rendered dom nodes",
|
|
1982
|
+
advanced: true
|
|
1983
|
+
},
|
|
1984
|
+
{
|
|
1985
|
+
name: "scriptsClientOnly",
|
|
1986
|
+
type: "boolean",
|
|
1987
|
+
defaultValue: false,
|
|
1988
|
+
helperText: "Only print and run scripts on the client. Important when scripts influence DOM that could be replaced when client loads",
|
|
1989
|
+
advanced: true
|
|
1990
|
+
}
|
|
1991
|
+
]
|
|
1992
|
+
};
|
|
1993
|
+
const CustomCode = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl((props) => {
|
|
1994
|
+
const elementRef = useSignal();
|
|
1995
|
+
const state = useStore({
|
|
1996
|
+
scriptsInserted: [],
|
|
1997
|
+
scriptsRun: []
|
|
1998
|
+
});
|
|
1999
|
+
useOn("qvisible", /* @__PURE__ */ inlinedQrl((event, element) => {
|
|
2000
|
+
const [state2] = useLexicalScope();
|
|
2001
|
+
if (!(element == null ? void 0 : element.getElementsByTagName) || typeof window === "undefined")
|
|
2002
|
+
return;
|
|
2003
|
+
const scripts = element.getElementsByTagName("script");
|
|
2004
|
+
for (let i = 0; i < scripts.length; i++) {
|
|
2005
|
+
const script = scripts[i];
|
|
2006
|
+
if (script.src) {
|
|
2007
|
+
if (state2.scriptsInserted.includes(script.src))
|
|
2008
|
+
continue;
|
|
2009
|
+
state2.scriptsInserted.push(script.src);
|
|
2010
|
+
const newScript = document.createElement("script");
|
|
2011
|
+
newScript.async = true;
|
|
2012
|
+
newScript.src = script.src;
|
|
2013
|
+
document.head.appendChild(newScript);
|
|
2014
|
+
} else if (!script.type || [
|
|
2015
|
+
"text/javascript",
|
|
2016
|
+
"application/javascript",
|
|
2017
|
+
"application/ecmascript"
|
|
2018
|
+
].includes(script.type)) {
|
|
2019
|
+
if (state2.scriptsRun.includes(script.innerText))
|
|
2020
|
+
continue;
|
|
2021
|
+
try {
|
|
2022
|
+
state2.scriptsRun.push(script.innerText);
|
|
2023
|
+
new Function(script.innerText)();
|
|
2024
|
+
} catch (error) {
|
|
2025
|
+
console.warn("`CustomCode`: Error running script:", error);
|
|
2026
|
+
}
|
|
2027
|
+
}
|
|
2028
|
+
}
|
|
2029
|
+
}, "CustomCode_component_useOn_zjAgBhFOiCs", [
|
|
2030
|
+
state
|
|
2031
|
+
]));
|
|
2032
|
+
return /* @__PURE__ */ _jsxQ("div", {
|
|
2033
|
+
ref: elementRef
|
|
2034
|
+
}, {
|
|
2035
|
+
class: _fnSignal((p0) => "builder-custom-code" + (p0.replaceNodes ? " replace-nodes" : ""), [
|
|
2036
|
+
props
|
|
2037
|
+
], '"builder-custom-code"+(p0.replaceNodes?" replace-nodes":"")'),
|
|
2038
|
+
dangerouslySetInnerHTML: _fnSignal((p0) => p0.code, [
|
|
2039
|
+
props
|
|
2040
|
+
], "p0.code")
|
|
2041
|
+
}, null, 3, "bY_0");
|
|
2042
|
+
}, "CustomCode_component_uYOSy7w7Zqw"));
|
|
2043
|
+
const componentInfo$7 = {
|
|
2044
|
+
name: "Embed",
|
|
2045
|
+
static: true,
|
|
2046
|
+
inputs: [
|
|
2047
|
+
{
|
|
2048
|
+
name: "url",
|
|
2049
|
+
type: "url",
|
|
2050
|
+
required: true,
|
|
2051
|
+
defaultValue: "",
|
|
2052
|
+
helperText: "e.g. enter a youtube url, google map, etc",
|
|
2053
|
+
onChange: (options) => {
|
|
2054
|
+
const url = options.get("url");
|
|
2055
|
+
if (url) {
|
|
2056
|
+
options.set("content", "Loading...");
|
|
2057
|
+
const apiKey = "ae0e60e78201a3f2b0de4b";
|
|
2058
|
+
return fetch(`https://iframe.ly/api/iframely?url=${url}&api_key=${apiKey}`).then((res) => res.json()).then((data) => {
|
|
2059
|
+
if (options.get("url") === url) {
|
|
2060
|
+
if (data.html)
|
|
2061
|
+
options.set("content", data.html);
|
|
2062
|
+
else
|
|
2063
|
+
options.set("content", "Invalid url, please try another");
|
|
2064
|
+
}
|
|
2065
|
+
}).catch((_err) => {
|
|
2066
|
+
options.set("content", "There was an error embedding this URL, please try again or another URL");
|
|
2067
|
+
});
|
|
2068
|
+
} else
|
|
2069
|
+
options.delete("content");
|
|
2070
|
+
}
|
|
2071
|
+
},
|
|
2072
|
+
{
|
|
2073
|
+
name: "content",
|
|
2074
|
+
type: "html",
|
|
2075
|
+
defaultValue: '<div style="padding: 20px; text-align: center">(Choose an embed URL)<div>',
|
|
2076
|
+
hideFromUI: true
|
|
2077
|
+
}
|
|
2078
|
+
]
|
|
2079
|
+
};
|
|
2080
|
+
const SCRIPT_MIME_TYPES = [
|
|
2081
|
+
"text/javascript",
|
|
2082
|
+
"application/javascript",
|
|
2083
|
+
"application/ecmascript"
|
|
2084
|
+
];
|
|
2085
|
+
const isJsScript = (script) => SCRIPT_MIME_TYPES.includes(script.type);
|
|
2086
|
+
const findAndRunScripts = function findAndRunScripts2(props, state, elem) {
|
|
2087
|
+
if (!elem.value || !elem.value.getElementsByTagName)
|
|
2088
|
+
return;
|
|
2089
|
+
const scripts = elem.value.getElementsByTagName("script");
|
|
2090
|
+
for (let i = 0; i < scripts.length; i++) {
|
|
2091
|
+
const script = scripts[i];
|
|
2092
|
+
if (script.src && !state.scriptsInserted.includes(script.src)) {
|
|
2093
|
+
state.scriptsInserted.push(script.src);
|
|
2094
|
+
const newScript = document.createElement("script");
|
|
2095
|
+
newScript.async = true;
|
|
2096
|
+
newScript.src = script.src;
|
|
2097
|
+
document.head.appendChild(newScript);
|
|
2098
|
+
} else if (isJsScript(script) && !state.scriptsRun.includes(script.innerText))
|
|
2099
|
+
try {
|
|
2100
|
+
state.scriptsRun.push(script.innerText);
|
|
2101
|
+
new Function(script.innerText)();
|
|
2102
|
+
} catch (error) {
|
|
2103
|
+
console.warn("`Embed`: Error running script:", error);
|
|
2104
|
+
}
|
|
2105
|
+
}
|
|
2106
|
+
};
|
|
2107
|
+
const Embed = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl((props) => {
|
|
2108
|
+
const elem = useSignal();
|
|
2109
|
+
const state = useStore({
|
|
2110
|
+
ranInitFn: false,
|
|
2111
|
+
scriptsInserted: [],
|
|
2112
|
+
scriptsRun: []
|
|
2113
|
+
});
|
|
2114
|
+
useTaskQrl(/* @__PURE__ */ inlinedQrl(({ track: track2 }) => {
|
|
2115
|
+
const [elem2, props2, state2] = useLexicalScope();
|
|
2116
|
+
track2(() => elem2.value);
|
|
2117
|
+
track2(() => state2.ranInitFn);
|
|
2118
|
+
if (elem2.value && !state2.ranInitFn) {
|
|
2119
|
+
state2.ranInitFn = true;
|
|
2120
|
+
findAndRunScripts(props2, state2, elem2);
|
|
2121
|
+
}
|
|
2122
|
+
}, "Embed_component_useTask_bg7ez0XUtiM", [
|
|
2123
|
+
elem,
|
|
2124
|
+
props,
|
|
2125
|
+
state
|
|
2126
|
+
]));
|
|
2127
|
+
return /* @__PURE__ */ _jsxQ("div", {
|
|
2128
|
+
ref: elem
|
|
2129
|
+
}, {
|
|
2130
|
+
class: "builder-embed",
|
|
2131
|
+
dangerouslySetInnerHTML: _fnSignal((p0) => p0.content, [
|
|
2132
|
+
props
|
|
2133
|
+
], "p0.content")
|
|
2134
|
+
}, null, 3, "9r_0");
|
|
2135
|
+
}, "Embed_component_Uji08ORjXbE"));
|
|
2136
|
+
const componentInfo$6 = {
|
|
1867
2137
|
name: "Fragment",
|
|
1868
2138
|
static: true,
|
|
1869
2139
|
hidden: true,
|
|
1870
2140
|
canHaveChildren: true,
|
|
1871
2141
|
noWrap: true
|
|
1872
2142
|
};
|
|
1873
|
-
const componentInfo$
|
|
2143
|
+
const componentInfo$5 = {
|
|
1874
2144
|
name: "Image",
|
|
1875
2145
|
static: true,
|
|
1876
2146
|
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",
|
|
@@ -2018,7 +2288,49 @@ const componentInfo$7 = {
|
|
|
2018
2288
|
}
|
|
2019
2289
|
]
|
|
2020
2290
|
};
|
|
2021
|
-
const componentInfo$
|
|
2291
|
+
const componentInfo$4 = {
|
|
2292
|
+
// friendlyName?
|
|
2293
|
+
name: "Raw:Img",
|
|
2294
|
+
hideFromInsertMenu: true,
|
|
2295
|
+
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",
|
|
2296
|
+
inputs: [
|
|
2297
|
+
{
|
|
2298
|
+
name: "image",
|
|
2299
|
+
bubble: true,
|
|
2300
|
+
type: "file",
|
|
2301
|
+
allowedFileTypes: [
|
|
2302
|
+
"jpeg",
|
|
2303
|
+
"jpg",
|
|
2304
|
+
"png",
|
|
2305
|
+
"svg",
|
|
2306
|
+
"gif",
|
|
2307
|
+
"webp"
|
|
2308
|
+
],
|
|
2309
|
+
required: true
|
|
2310
|
+
}
|
|
2311
|
+
],
|
|
2312
|
+
noWrap: true,
|
|
2313
|
+
static: true
|
|
2314
|
+
};
|
|
2315
|
+
const ImgComponent = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl((props) => {
|
|
2316
|
+
return /* @__PURE__ */ _jsxS("img", {
|
|
2317
|
+
...props.attributes
|
|
2318
|
+
}, {
|
|
2319
|
+
alt: _fnSignal((p0) => p0.altText, [
|
|
2320
|
+
props
|
|
2321
|
+
], "p0.altText"),
|
|
2322
|
+
src: _fnSignal((p0) => p0.imgSrc || p0.image, [
|
|
2323
|
+
props
|
|
2324
|
+
], "p0.imgSrc||p0.image"),
|
|
2325
|
+
style: _fnSignal((p0) => ({
|
|
2326
|
+
objectFit: p0.backgroundSize || "cover",
|
|
2327
|
+
objectPosition: p0.backgroundPosition || "center"
|
|
2328
|
+
}), [
|
|
2329
|
+
props
|
|
2330
|
+
], '{objectFit:p0.backgroundSize||"cover",objectPosition:p0.backgroundPosition||"center"}')
|
|
2331
|
+
}, 0, isEditing() && props.imgSrc || "default-key");
|
|
2332
|
+
}, "ImgComponent_component_FXvIDBSffO8"));
|
|
2333
|
+
const componentInfo$3 = {
|
|
2022
2334
|
name: "Core:Section",
|
|
2023
2335
|
static: true,
|
|
2024
2336
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F682efef23ace49afac61748dd305c70a",
|
|
@@ -2063,7 +2375,7 @@ const componentInfo$6 = {
|
|
|
2063
2375
|
}
|
|
2064
2376
|
]
|
|
2065
2377
|
};
|
|
2066
|
-
const componentInfo$
|
|
2378
|
+
const componentInfo$2 = {
|
|
2067
2379
|
name: "Symbol",
|
|
2068
2380
|
noWrap: true,
|
|
2069
2381
|
static: true,
|
|
@@ -2103,7 +2415,7 @@ const componentInfo$5 = {
|
|
|
2103
2415
|
}
|
|
2104
2416
|
]
|
|
2105
2417
|
};
|
|
2106
|
-
const componentInfo$
|
|
2418
|
+
const componentInfo$1 = {
|
|
2107
2419
|
name: "Text",
|
|
2108
2420
|
static: true,
|
|
2109
2421
|
isRSC: true,
|
|
@@ -2138,7 +2450,7 @@ const Text = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl((props) =>
|
|
|
2138
2450
|
}
|
|
2139
2451
|
}, null, 3, "yO_0");
|
|
2140
2452
|
}, "Text_component_15p0cKUxgIE"));
|
|
2141
|
-
const componentInfo
|
|
2453
|
+
const componentInfo = {
|
|
2142
2454
|
name: "Video",
|
|
2143
2455
|
canHaveChildren: true,
|
|
2144
2456
|
defaultStyles: {
|
|
@@ -2322,220 +2634,6 @@ const Video = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl((props) =>
|
|
|
2322
2634
|
], '{width:"100%",height:"100%",...p0.attributes?.style,objectFit:p0.fit,objectPosition:p0.position,borderRadius:1}')
|
|
2323
2635
|
}, 0, "j7_0");
|
|
2324
2636
|
}, "Video_component_qdcTZflYyoQ"));
|
|
2325
|
-
const componentInfo$2 = {
|
|
2326
|
-
name: "Embed",
|
|
2327
|
-
static: true,
|
|
2328
|
-
inputs: [
|
|
2329
|
-
{
|
|
2330
|
-
name: "url",
|
|
2331
|
-
type: "url",
|
|
2332
|
-
required: true,
|
|
2333
|
-
defaultValue: "",
|
|
2334
|
-
helperText: "e.g. enter a youtube url, google map, etc",
|
|
2335
|
-
onChange: (options) => {
|
|
2336
|
-
const url = options.get("url");
|
|
2337
|
-
if (url) {
|
|
2338
|
-
options.set("content", "Loading...");
|
|
2339
|
-
const apiKey = "ae0e60e78201a3f2b0de4b";
|
|
2340
|
-
return fetch(`https://iframe.ly/api/iframely?url=${url}&api_key=${apiKey}`).then((res) => res.json()).then((data) => {
|
|
2341
|
-
if (options.get("url") === url) {
|
|
2342
|
-
if (data.html)
|
|
2343
|
-
options.set("content", data.html);
|
|
2344
|
-
else
|
|
2345
|
-
options.set("content", "Invalid url, please try another");
|
|
2346
|
-
}
|
|
2347
|
-
}).catch((_err) => {
|
|
2348
|
-
options.set("content", "There was an error embedding this URL, please try again or another URL");
|
|
2349
|
-
});
|
|
2350
|
-
} else
|
|
2351
|
-
options.delete("content");
|
|
2352
|
-
}
|
|
2353
|
-
},
|
|
2354
|
-
{
|
|
2355
|
-
name: "content",
|
|
2356
|
-
type: "html",
|
|
2357
|
-
defaultValue: '<div style="padding: 20px; text-align: center">(Choose an embed URL)<div>',
|
|
2358
|
-
hideFromUI: true
|
|
2359
|
-
}
|
|
2360
|
-
]
|
|
2361
|
-
};
|
|
2362
|
-
const SCRIPT_MIME_TYPES = [
|
|
2363
|
-
"text/javascript",
|
|
2364
|
-
"application/javascript",
|
|
2365
|
-
"application/ecmascript"
|
|
2366
|
-
];
|
|
2367
|
-
const isJsScript = (script) => SCRIPT_MIME_TYPES.includes(script.type);
|
|
2368
|
-
const findAndRunScripts = function findAndRunScripts2(props, state, elem) {
|
|
2369
|
-
if (!elem.value || !elem.value.getElementsByTagName)
|
|
2370
|
-
return;
|
|
2371
|
-
const scripts = elem.value.getElementsByTagName("script");
|
|
2372
|
-
for (let i = 0; i < scripts.length; i++) {
|
|
2373
|
-
const script = scripts[i];
|
|
2374
|
-
if (script.src && !state.scriptsInserted.includes(script.src)) {
|
|
2375
|
-
state.scriptsInserted.push(script.src);
|
|
2376
|
-
const newScript = document.createElement("script");
|
|
2377
|
-
newScript.async = true;
|
|
2378
|
-
newScript.src = script.src;
|
|
2379
|
-
document.head.appendChild(newScript);
|
|
2380
|
-
} else if (isJsScript(script) && !state.scriptsRun.includes(script.innerText))
|
|
2381
|
-
try {
|
|
2382
|
-
state.scriptsRun.push(script.innerText);
|
|
2383
|
-
new Function(script.innerText)();
|
|
2384
|
-
} catch (error) {
|
|
2385
|
-
console.warn("`Embed`: Error running script:", error);
|
|
2386
|
-
}
|
|
2387
|
-
}
|
|
2388
|
-
};
|
|
2389
|
-
const Embed = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl((props) => {
|
|
2390
|
-
const elem = useSignal();
|
|
2391
|
-
const state = useStore({
|
|
2392
|
-
ranInitFn: false,
|
|
2393
|
-
scriptsInserted: [],
|
|
2394
|
-
scriptsRun: []
|
|
2395
|
-
});
|
|
2396
|
-
useTaskQrl(/* @__PURE__ */ inlinedQrl(({ track: track2 }) => {
|
|
2397
|
-
const [elem2, props2, state2] = useLexicalScope();
|
|
2398
|
-
track2(() => elem2.value);
|
|
2399
|
-
track2(() => state2.ranInitFn);
|
|
2400
|
-
if (elem2.value && !state2.ranInitFn) {
|
|
2401
|
-
state2.ranInitFn = true;
|
|
2402
|
-
findAndRunScripts(props2, state2, elem2);
|
|
2403
|
-
}
|
|
2404
|
-
}, "Embed_component_useTask_bg7ez0XUtiM", [
|
|
2405
|
-
elem,
|
|
2406
|
-
props,
|
|
2407
|
-
state
|
|
2408
|
-
]));
|
|
2409
|
-
return /* @__PURE__ */ _jsxQ("div", {
|
|
2410
|
-
ref: elem
|
|
2411
|
-
}, {
|
|
2412
|
-
class: "builder-embed",
|
|
2413
|
-
dangerouslySetInnerHTML: _fnSignal((p0) => p0.content, [
|
|
2414
|
-
props
|
|
2415
|
-
], "p0.content")
|
|
2416
|
-
}, null, 3, "9r_0");
|
|
2417
|
-
}, "Embed_component_Uji08ORjXbE"));
|
|
2418
|
-
const ImgComponent = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl((props) => {
|
|
2419
|
-
return /* @__PURE__ */ _jsxS("img", {
|
|
2420
|
-
...props.attributes
|
|
2421
|
-
}, {
|
|
2422
|
-
alt: _fnSignal((p0) => p0.altText, [
|
|
2423
|
-
props
|
|
2424
|
-
], "p0.altText"),
|
|
2425
|
-
src: _fnSignal((p0) => p0.imgSrc || p0.image, [
|
|
2426
|
-
props
|
|
2427
|
-
], "p0.imgSrc||p0.image"),
|
|
2428
|
-
style: _fnSignal((p0) => ({
|
|
2429
|
-
objectFit: p0.backgroundSize || "cover",
|
|
2430
|
-
objectPosition: p0.backgroundPosition || "center"
|
|
2431
|
-
}), [
|
|
2432
|
-
props
|
|
2433
|
-
], '{objectFit:p0.backgroundSize||"cover",objectPosition:p0.backgroundPosition||"center"}')
|
|
2434
|
-
}, 0, isEditing() && props.imgSrc || "default-key");
|
|
2435
|
-
}, "ImgComponent_component_FXvIDBSffO8"));
|
|
2436
|
-
const componentInfo$1 = {
|
|
2437
|
-
// friendlyName?
|
|
2438
|
-
name: "Raw:Img",
|
|
2439
|
-
hideFromInsertMenu: true,
|
|
2440
|
-
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",
|
|
2441
|
-
inputs: [
|
|
2442
|
-
{
|
|
2443
|
-
name: "image",
|
|
2444
|
-
bubble: true,
|
|
2445
|
-
type: "file",
|
|
2446
|
-
allowedFileTypes: [
|
|
2447
|
-
"jpeg",
|
|
2448
|
-
"jpg",
|
|
2449
|
-
"png",
|
|
2450
|
-
"svg",
|
|
2451
|
-
"gif",
|
|
2452
|
-
"webp"
|
|
2453
|
-
],
|
|
2454
|
-
required: true
|
|
2455
|
-
}
|
|
2456
|
-
],
|
|
2457
|
-
noWrap: true,
|
|
2458
|
-
static: true
|
|
2459
|
-
};
|
|
2460
|
-
const CustomCode = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl((props) => {
|
|
2461
|
-
const elementRef = useSignal();
|
|
2462
|
-
const state = useStore({
|
|
2463
|
-
scriptsInserted: [],
|
|
2464
|
-
scriptsRun: []
|
|
2465
|
-
});
|
|
2466
|
-
useOn("qvisible", /* @__PURE__ */ inlinedQrl((event, element) => {
|
|
2467
|
-
const [state2] = useLexicalScope();
|
|
2468
|
-
if (!(element == null ? void 0 : element.getElementsByTagName) || typeof window === "undefined")
|
|
2469
|
-
return;
|
|
2470
|
-
const scripts = element.getElementsByTagName("script");
|
|
2471
|
-
for (let i = 0; i < scripts.length; i++) {
|
|
2472
|
-
const script = scripts[i];
|
|
2473
|
-
if (script.src) {
|
|
2474
|
-
if (state2.scriptsInserted.includes(script.src))
|
|
2475
|
-
continue;
|
|
2476
|
-
state2.scriptsInserted.push(script.src);
|
|
2477
|
-
const newScript = document.createElement("script");
|
|
2478
|
-
newScript.async = true;
|
|
2479
|
-
newScript.src = script.src;
|
|
2480
|
-
document.head.appendChild(newScript);
|
|
2481
|
-
} else if (!script.type || [
|
|
2482
|
-
"text/javascript",
|
|
2483
|
-
"application/javascript",
|
|
2484
|
-
"application/ecmascript"
|
|
2485
|
-
].includes(script.type)) {
|
|
2486
|
-
if (state2.scriptsRun.includes(script.innerText))
|
|
2487
|
-
continue;
|
|
2488
|
-
try {
|
|
2489
|
-
state2.scriptsRun.push(script.innerText);
|
|
2490
|
-
new Function(script.innerText)();
|
|
2491
|
-
} catch (error) {
|
|
2492
|
-
console.warn("`CustomCode`: Error running script:", error);
|
|
2493
|
-
}
|
|
2494
|
-
}
|
|
2495
|
-
}
|
|
2496
|
-
}, "CustomCode_component_useOn_zjAgBhFOiCs", [
|
|
2497
|
-
state
|
|
2498
|
-
]));
|
|
2499
|
-
return /* @__PURE__ */ _jsxQ("div", {
|
|
2500
|
-
ref: elementRef
|
|
2501
|
-
}, {
|
|
2502
|
-
class: _fnSignal((p0) => "builder-custom-code" + (p0.replaceNodes ? " replace-nodes" : ""), [
|
|
2503
|
-
props
|
|
2504
|
-
], '"builder-custom-code"+(p0.replaceNodes?" replace-nodes":"")'),
|
|
2505
|
-
dangerouslySetInnerHTML: _fnSignal((p0) => p0.code, [
|
|
2506
|
-
props
|
|
2507
|
-
], "p0.code")
|
|
2508
|
-
}, null, 3, "bY_0");
|
|
2509
|
-
}, "CustomCode_component_uYOSy7w7Zqw"));
|
|
2510
|
-
const componentInfo = {
|
|
2511
|
-
name: "Custom Code",
|
|
2512
|
-
static: true,
|
|
2513
|
-
requiredPermissions: [
|
|
2514
|
-
"editCode"
|
|
2515
|
-
],
|
|
2516
|
-
inputs: [
|
|
2517
|
-
{
|
|
2518
|
-
name: "code",
|
|
2519
|
-
type: "html",
|
|
2520
|
-
required: true,
|
|
2521
|
-
defaultValue: "<p>Hello there, I am custom HTML code!</p>",
|
|
2522
|
-
code: true
|
|
2523
|
-
},
|
|
2524
|
-
{
|
|
2525
|
-
name: "replaceNodes",
|
|
2526
|
-
type: "boolean",
|
|
2527
|
-
helperText: "Preserve server rendered dom nodes",
|
|
2528
|
-
advanced: true
|
|
2529
|
-
},
|
|
2530
|
-
{
|
|
2531
|
-
name: "scriptsClientOnly",
|
|
2532
|
-
type: "boolean",
|
|
2533
|
-
defaultValue: false,
|
|
2534
|
-
helperText: "Only print and run scripts on the client. Important when scripts influence DOM that could be replaced when client loads",
|
|
2535
|
-
advanced: true
|
|
2536
|
-
}
|
|
2537
|
-
]
|
|
2538
|
-
};
|
|
2539
2637
|
const getDefaultRegisteredComponents = () => [
|
|
2540
2638
|
{
|
|
2541
2639
|
component: Button,
|
|
@@ -2547,39 +2645,39 @@ const getDefaultRegisteredComponents = () => [
|
|
|
2547
2645
|
},
|
|
2548
2646
|
{
|
|
2549
2647
|
component: CustomCode,
|
|
2550
|
-
...componentInfo
|
|
2648
|
+
...componentInfo$8
|
|
2551
2649
|
},
|
|
2552
2650
|
{
|
|
2553
2651
|
component: Embed,
|
|
2554
|
-
...componentInfo$
|
|
2652
|
+
...componentInfo$7
|
|
2555
2653
|
},
|
|
2556
2654
|
{
|
|
2557
2655
|
component: FragmentComponent,
|
|
2558
|
-
...componentInfo$
|
|
2656
|
+
...componentInfo$6
|
|
2559
2657
|
},
|
|
2560
2658
|
{
|
|
2561
2659
|
component: Image,
|
|
2562
|
-
...componentInfo$
|
|
2660
|
+
...componentInfo$5
|
|
2563
2661
|
},
|
|
2564
2662
|
{
|
|
2565
2663
|
component: ImgComponent,
|
|
2566
|
-
...componentInfo$
|
|
2664
|
+
...componentInfo$4
|
|
2567
2665
|
},
|
|
2568
2666
|
{
|
|
2569
2667
|
component: SectionComponent,
|
|
2570
|
-
...componentInfo$
|
|
2668
|
+
...componentInfo$3
|
|
2571
2669
|
},
|
|
2572
2670
|
{
|
|
2573
2671
|
component: Symbol$1,
|
|
2574
|
-
...componentInfo$
|
|
2672
|
+
...componentInfo$2
|
|
2575
2673
|
},
|
|
2576
2674
|
{
|
|
2577
2675
|
component: Text,
|
|
2578
|
-
...componentInfo$
|
|
2676
|
+
...componentInfo$1
|
|
2579
2677
|
},
|
|
2580
2678
|
{
|
|
2581
2679
|
component: Video,
|
|
2582
|
-
...componentInfo
|
|
2680
|
+
...componentInfo
|
|
2583
2681
|
}
|
|
2584
2682
|
];
|
|
2585
2683
|
const components = [];
|
|
@@ -2784,6 +2882,7 @@ function flatten(object, path = null, separator = ".") {
|
|
|
2784
2882
|
};
|
|
2785
2883
|
}, {});
|
|
2786
2884
|
}
|
|
2885
|
+
const DEFAULT_API_VERSION = "v3";
|
|
2787
2886
|
const BUILDER_SEARCHPARAMS_PREFIX = "builder.";
|
|
2788
2887
|
const BUILDER_OPTIONS_PREFIX = "options.";
|
|
2789
2888
|
const convertSearchParamsToQueryObject = (searchParams) => {
|
|
@@ -2813,7 +2912,6 @@ const getBuilderSearchParamsFromWindow = () => {
|
|
|
2813
2912
|
return getBuilderSearchParams(searchParams);
|
|
2814
2913
|
};
|
|
2815
2914
|
const normalizeSearchParams = (searchParams) => searchParams instanceof URLSearchParams ? convertSearchParamsToQueryObject(searchParams) : searchParams;
|
|
2816
|
-
const DEFAULT_API_VERSION = "v3";
|
|
2817
2915
|
const isPositiveNumber = (thing) => typeof thing === "number" && !isNaN(thing) && thing >= 0;
|
|
2818
2916
|
const generateContentUrl = (options) => {
|
|
2819
2917
|
let { noTraverse = false } = options;
|
|
@@ -3119,7 +3217,7 @@ const getInteractionPropertiesForEvent = (event) => {
|
|
|
3119
3217
|
}
|
|
3120
3218
|
};
|
|
3121
3219
|
};
|
|
3122
|
-
const SDK_VERSION = "0.7.
|
|
3220
|
+
const SDK_VERSION = "0.7.2";
|
|
3123
3221
|
const registry = {};
|
|
3124
3222
|
function register(type, info) {
|
|
3125
3223
|
let typeList = registry[type];
|