@builder.io/sdk-qwik 0.7.0 → 0.7.1-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/lib/browser/index.qwik.cjs +96 -90
- package/lib/browser/index.qwik.mjs +97 -91
- package/lib/edge/index.qwik.cjs +96 -90
- package/lib/edge/index.qwik.mjs +97 -91
- package/lib/index.qwik.cjs +8790 -0
- package/lib/index.qwik.mjs +8790 -0
- package/lib/node/index.qwik.cjs +96 -90
- package/lib/node/index.qwik.mjs +97 -91
- package/package.json +1 -1
- package/types/blocks/BaseText.d.ts +5 -0
- package/types/blocks/button/button.d.ts +11 -0
- package/types/blocks/button/component-info.d.ts +2 -0
- package/types/blocks/columns/columns.d.ts +32 -0
- package/types/blocks/columns/component-info.d.ts +2 -0
- package/types/blocks/custom-code/component-info.d.ts +2 -0
- package/types/blocks/custom-code/custom-code.d.ts +7 -0
- package/types/blocks/embed/component-info.d.ts +2 -0
- package/types/blocks/embed/embed.d.ts +6 -0
- package/types/blocks/embed/helpers.d.ts +1 -0
- package/types/blocks/form/component-info.d.ts +2 -0
- package/types/blocks/fragment/component-info.d.ts +2 -0
- package/types/blocks/fragment/fragment.d.ts +7 -0
- package/types/blocks/helpers.d.ts +13 -0
- package/types/blocks/image/component-info.d.ts +2 -0
- package/types/blocks/image/image.d.ts +23 -0
- package/types/blocks/image/image.helpers.d.ts +1 -0
- package/types/blocks/img/component-info.d.ts +2 -0
- package/types/blocks/img/img.d.ts +12 -0
- package/types/blocks/input/component-info.d.ts +2 -0
- package/types/blocks/input/input.d.ts +13 -0
- package/types/blocks/raw-text/component-info.d.ts +2 -0
- package/types/blocks/raw-text/raw-text.d.ts +6 -0
- package/types/blocks/section/component-info.d.ts +2 -0
- package/types/blocks/section/section.d.ts +10 -0
- package/types/blocks/select/component-info.d.ts +2 -0
- package/types/blocks/select/select.d.ts +14 -0
- package/types/blocks/submit-button/component-info.d.ts +2 -0
- package/types/blocks/submit-button/submit-button.d.ts +8 -0
- package/types/blocks/symbol/component-info.d.ts +2 -0
- package/types/blocks/symbol/symbol.d.ts +24 -0
- package/types/blocks/symbol/symbol.helpers.d.ts +14 -0
- package/types/blocks/text/component-info.d.ts +2 -0
- package/types/blocks/text/text.d.ts +5 -0
- package/types/blocks/textarea/component-info.d.ts +2 -0
- package/types/blocks/textarea/textarea.d.ts +11 -0
- package/types/blocks/video/component-info.d.ts +2 -0
- package/types/blocks/video/video.d.ts +19 -0
- package/types/components/block/block.d.ts +9 -0
- package/types/components/block/block.helpers.d.ts +13 -0
- package/types/components/block/components/block-styles.d.ts +8 -0
- package/types/components/block/components/block-wrapper.d.ts +20 -0
- package/types/components/block/components/component-ref/component-ref.d.ts +3 -0
- package/types/components/block/components/component-ref/component-ref.helpers.d.ts +35 -0
- package/types/components/block/components/interactive-element.d.ts +11 -0
- package/types/components/block/components/repeated-block.d.ts +9 -0
- package/types/components/block/types.d.ts +6 -0
- package/types/components/blocks/blocks-wrapper.d.ts +13 -0
- package/types/components/blocks/blocks.d.ts +8 -0
- package/types/components/blocks/deopt.d.ts +4 -0
- package/types/components/content/components/enable-editor.d.ts +21 -0
- package/types/components/content/components/styles.d.ts +8 -0
- package/types/components/content/components/styles.helpers.d.ts +15 -0
- package/types/components/content/content.d.ts +5 -0
- package/types/components/content/content.helpers.d.ts +7 -0
- package/types/components/content/content.types.d.ts +24 -0
- package/types/components/content/index.d.ts +1 -0
- package/types/components/content/wrap-component-ref.d.ts +6 -0
- package/types/components/content-variants/content-variants.d.ts +9 -0
- package/types/components/content-variants/content-variants.types.d.ts +20 -0
- package/types/components/content-variants/helpers.d.ts +41 -0
- package/types/components/inlined-script.d.ts +6 -0
- package/types/components/inlined-styles.d.ts +6 -0
- package/types/constants/builder-registered-components.d.ts +6 -0
- package/types/constants/device-sizes.d.ts +13 -0
- package/types/constants/sdk-version.d.ts +1 -0
- package/types/constants/target.d.ts +2 -0
- package/types/context/builder.context.d.ts +2 -0
- package/types/context/components.context.d.ts +2 -0
- package/types/context/types.d.ts +35 -0
- package/types/functions/apply-patch-with-mutation.d.ts +10 -0
- package/types/functions/camel-to-kebab-case.d.ts +1 -0
- package/types/functions/evaluate/browser-runtime/browser.d.ts +4 -0
- package/types/functions/evaluate/browser-runtime/index.d.ts +1 -0
- package/types/functions/evaluate/edge-runtime/acorn-interpreter.d.ts +2 -0
- package/types/functions/evaluate/edge-runtime/edge-runtime.d.ts +2 -0
- package/types/functions/evaluate/edge-runtime/index.d.ts +1 -0
- package/types/functions/evaluate/evaluate.d.ts +6 -0
- package/types/functions/evaluate/helpers.d.ts +18 -0
- package/types/functions/evaluate/index.d.ts +1 -0
- package/types/functions/evaluate/node-runtime/index.d.ts +1 -0
- package/types/functions/evaluate/non-node-runtime/acorn-interpreter.d.ts +2 -0
- package/types/functions/evaluate/non-node-runtime/index.d.ts +1 -0
- package/types/functions/evaluate/non-node-runtime/non-node-runtime.d.ts +2 -0
- package/types/functions/evaluate/placeholder-runtime.d.ts +2 -0
- package/types/functions/event-handler-name.d.ts +1 -0
- package/types/functions/extract-text-styles.d.ts +4 -0
- package/types/functions/fast-clone.d.ts +4 -0
- package/types/functions/fetch-builder-props.d.ts +40 -0
- package/types/functions/get-block-actions-handler.d.ts +5 -0
- package/types/functions/get-block-actions.d.ts +10 -0
- package/types/functions/get-block-component-options.d.ts +2 -0
- package/types/functions/get-block-properties.d.ts +11 -0
- package/types/functions/get-builder-search-params/index.d.ts +12 -0
- package/types/functions/get-content/generate-content-url.d.ts +2 -0
- package/types/functions/get-content/index.d.ts +28 -0
- package/types/functions/get-content/types.d.ts +51 -0
- package/types/functions/get-fetch.d.ts +1 -0
- package/types/functions/get-global-this.d.ts +4 -0
- package/types/functions/get-processed-block.d.ts +10 -0
- package/types/functions/get-react-native-block-styles.d.ts +7 -0
- package/types/functions/is-browser.d.ts +1 -0
- package/types/functions/is-edge-runtime.d.ts +4 -0
- package/types/functions/is-editing.d.ts +1 -0
- package/types/functions/is-iframe.d.ts +1 -0
- package/types/functions/is-non-node-server.d.ts +4 -0
- package/types/functions/is-previewing.d.ts +1 -0
- package/types/functions/on-change.d.ts +7 -0
- package/types/functions/register-component.d.ts +15 -0
- package/types/functions/register.d.ts +16 -0
- package/types/functions/sanitize-react-native-block-styles.d.ts +3 -0
- package/types/functions/set-editor-settings.d.ts +4 -0
- package/types/functions/set.d.ts +7 -0
- package/types/functions/track/helpers.d.ts +5 -0
- package/types/functions/track/index.d.ts +51 -0
- package/types/functions/track/interaction.d.ts +13 -0
- package/types/functions/transform-block-properties.d.ts +1 -0
- package/types/functions/transform-block.d.ts +2 -0
- package/types/helpers/ab-tests.d.ts +9 -0
- package/types/helpers/canTrack.d.ts +1 -0
- package/types/helpers/cookie.d.ts +19 -0
- package/types/helpers/css.d.ts +7 -0
- package/types/helpers/flatten.d.ts +6 -0
- package/types/helpers/localStorage.d.ts +9 -0
- package/types/helpers/logger.d.ts +6 -0
- package/types/helpers/nullable.d.ts +2 -0
- package/types/helpers/preview-lru-cache/get.d.ts +2 -0
- package/types/helpers/preview-lru-cache/helpers.d.ts +0 -0
- package/types/helpers/preview-lru-cache/init.d.ts +6 -0
- package/types/helpers/preview-lru-cache/set.d.ts +7 -0
- package/types/helpers/preview-lru-cache/types.d.ts +0 -0
- package/types/helpers/sessionId.d.ts +6 -0
- package/types/helpers/time.d.ts +1 -0
- package/types/helpers/url.d.ts +6 -0
- package/types/helpers/uuid.d.ts +8 -0
- package/types/helpers/visitorId.d.ts +6 -0
- package/types/index-helpers/blocks-exports.d.ts +21 -0
- package/types/index-helpers/top-of-file.d.ts +1 -0
- package/types/index.d.ts +7 -0
- package/types/scripts/init-editing.d.ts +6 -0
- package/types/server-index.d.ts +15 -0
- package/types/src/blocks/BaseText.d.ts +5 -0
- package/types/src/blocks/button/button.d.ts +11 -0
- package/types/src/blocks/button/component-info.d.ts +2 -0
- package/types/src/blocks/columns/columns.d.ts +32 -0
- package/types/src/blocks/columns/component-info.d.ts +2 -0
- package/types/src/blocks/custom-code/component-info.d.ts +2 -0
- package/types/src/blocks/custom-code/custom-code.d.ts +7 -0
- package/types/src/blocks/embed/component-info.d.ts +2 -0
- package/types/src/blocks/embed/embed.d.ts +6 -0
- package/types/src/blocks/embed/helpers.d.ts +1 -0
- package/types/src/blocks/form/component-info.d.ts +2 -0
- package/types/src/blocks/fragment/component-info.d.ts +2 -0
- package/types/src/blocks/fragment/fragment.d.ts +7 -0
- package/types/src/blocks/helpers.d.ts +13 -0
- package/types/src/blocks/image/component-info.d.ts +2 -0
- package/types/src/blocks/image/image.d.ts +22 -0
- package/types/src/blocks/image/image.helpers.d.ts +1 -0
- package/types/src/blocks/img/component-info.d.ts +2 -0
- package/types/src/blocks/img/img.d.ts +12 -0
- package/types/src/blocks/input/component-info.d.ts +2 -0
- package/types/src/blocks/input/input.d.ts +13 -0
- package/types/src/blocks/raw-text/component-info.d.ts +2 -0
- package/types/src/blocks/raw-text/raw-text.d.ts +6 -0
- package/types/src/blocks/section/component-info.d.ts +2 -0
- package/types/src/blocks/section/section.d.ts +10 -0
- package/types/src/blocks/select/component-info.d.ts +2 -0
- package/types/src/blocks/select/select.d.ts +14 -0
- package/types/src/blocks/submit-button/component-info.d.ts +2 -0
- package/types/src/blocks/submit-button/submit-button.d.ts +8 -0
- package/types/src/blocks/symbol/component-info.d.ts +2 -0
- package/types/src/blocks/symbol/symbol.d.ts +24 -0
- package/types/src/blocks/symbol/symbol.helpers.d.ts +14 -0
- package/types/src/blocks/text/component-info.d.ts +2 -0
- package/types/src/blocks/text/text.d.ts +5 -0
- package/types/src/blocks/textarea/component-info.d.ts +2 -0
- package/types/src/blocks/textarea/textarea.d.ts +11 -0
- package/types/src/blocks/video/component-info.d.ts +2 -0
- package/types/src/blocks/video/video.d.ts +19 -0
- package/types/src/components/block/block.d.ts +9 -0
- package/types/src/components/block/block.helpers.d.ts +13 -0
- package/types/src/components/block/components/block-styles.d.ts +8 -0
- package/types/src/components/block/components/block-wrapper.d.ts +20 -0
- package/types/src/components/block/components/component-ref/component-ref.d.ts +3 -0
- package/types/src/components/block/components/component-ref/component-ref.helpers.d.ts +35 -0
- package/types/src/components/block/components/interactive-element.d.ts +11 -0
- package/types/src/components/block/components/repeated-block.d.ts +9 -0
- package/types/src/components/block/types.d.ts +6 -0
- package/types/src/components/blocks/blocks-wrapper.d.ts +13 -0
- package/types/src/components/blocks/blocks.d.ts +8 -0
- package/types/src/components/blocks/deopt.d.ts +4 -0
- package/types/src/components/content/components/enable-editor.d.ts +21 -0
- package/types/src/components/content/components/styles.d.ts +8 -0
- package/types/src/components/content/components/styles.helpers.d.ts +15 -0
- package/types/src/components/content/content.d.ts +5 -0
- package/types/src/components/content/content.helpers.d.ts +7 -0
- package/types/src/components/content/content.types.d.ts +24 -0
- package/types/src/components/content/index.d.ts +1 -0
- package/types/src/components/content/wrap-component-ref.d.ts +6 -0
- package/types/src/components/content-variants/content-variants.d.ts +9 -0
- package/types/src/components/content-variants/content-variants.types.d.ts +20 -0
- package/types/src/components/content-variants/helpers.d.ts +41 -0
- package/types/src/components/inlined-script.d.ts +6 -0
- package/types/src/components/inlined-styles.d.ts +6 -0
- package/types/src/constants/builder-registered-components.d.ts +6 -0
- package/types/src/constants/device-sizes.d.ts +13 -0
- package/types/src/constants/sdk-version.d.ts +1 -0
- package/types/src/constants/target.d.ts +2 -0
- package/types/src/context/builder.context.d.ts +2 -0
- package/types/src/context/components.context.d.ts +2 -0
- package/types/src/context/types.d.ts +35 -0
- package/types/src/functions/apply-patch-with-mutation.d.ts +10 -0
- package/types/src/functions/camel-to-kebab-case.d.ts +1 -0
- package/types/src/functions/deopt.d.ts +4 -0
- package/types/src/functions/evaluate/browser-runtime/browser.d.ts +4 -0
- package/types/src/functions/evaluate/browser-runtime/index.d.ts +1 -0
- package/types/src/functions/evaluate/edge-runtime/acorn-interpreter.d.ts +2 -0
- package/types/src/functions/evaluate/edge-runtime/edge-runtime.d.ts +2 -0
- package/types/src/functions/evaluate/edge-runtime/index.d.ts +1 -0
- package/types/src/functions/evaluate/evaluate.d.ts +6 -0
- package/types/src/functions/evaluate/helpers.d.ts +18 -0
- package/types/src/functions/evaluate/index.d.ts +1 -0
- package/types/src/functions/evaluate/node-runtime/index.d.ts +1 -0
- package/types/src/functions/evaluate/node-runtime/node-runtime.d.ts +2 -0
- package/types/src/functions/evaluate/non-node-runtime/acorn-interpreter.d.ts +2 -0
- package/types/src/functions/evaluate/non-node-runtime/index.d.ts +1 -0
- package/types/src/functions/evaluate/non-node-runtime/non-node-runtime.d.ts +2 -0
- package/types/src/functions/evaluate/placeholder-runtime.d.ts +2 -0
- package/types/src/functions/event-handler-name.d.ts +1 -0
- package/types/src/functions/extract-text-styles.d.ts +4 -0
- package/types/src/functions/fast-clone.d.ts +4 -0
- package/types/src/functions/fetch-builder-props.d.ts +53 -0
- package/types/src/functions/get-block-actions-handler.d.ts +5 -0
- package/types/src/functions/get-block-actions.d.ts +10 -0
- package/types/src/functions/get-block-component-options.d.ts +2 -0
- package/types/src/functions/get-block-properties.d.ts +11 -0
- package/types/src/functions/get-builder-search-params/index.d.ts +12 -0
- package/types/src/functions/get-content/generate-content-url.d.ts +2 -0
- package/types/src/functions/get-content/index.d.ts +28 -0
- package/types/src/functions/get-content/types.d.ts +51 -0
- package/types/src/functions/get-fetch.d.ts +1 -0
- package/types/src/functions/get-global-this.d.ts +4 -0
- package/types/src/functions/get-processed-block.d.ts +10 -0
- package/types/src/functions/get-react-native-block-styles.d.ts +7 -0
- package/types/src/functions/is-browser.d.ts +1 -0
- package/types/src/functions/is-edge-runtime.d.ts +4 -0
- package/types/src/functions/is-editing.d.ts +1 -0
- package/types/src/functions/is-iframe.d.ts +1 -0
- package/types/src/functions/is-non-node-server.d.ts +4 -0
- package/types/src/functions/is-previewing.d.ts +1 -0
- package/types/src/functions/on-change.d.ts +7 -0
- package/types/src/functions/register-component.d.ts +15 -0
- package/types/src/functions/register.d.ts +16 -0
- package/types/src/functions/sanitize-react-native-block-styles.d.ts +3 -0
- package/types/src/functions/set-editor-settings.d.ts +4 -0
- package/types/src/functions/set.d.ts +7 -0
- package/types/src/functions/track/helpers.d.ts +5 -0
- package/types/src/functions/track/index.d.ts +51 -0
- package/types/src/functions/track/interaction.d.ts +13 -0
- package/types/src/functions/transform-block-properties.d.ts +1 -0
- package/types/src/functions/transform-block.d.ts +2 -0
- package/types/src/helpers/ab-tests.d.ts +9 -0
- package/types/src/helpers/canTrack.d.ts +1 -0
- package/types/src/helpers/cookie.d.ts +19 -0
- package/types/src/helpers/css.d.ts +7 -0
- package/types/src/helpers/flatten.d.ts +6 -0
- package/types/src/helpers/localStorage.d.ts +9 -0
- package/types/src/helpers/logger.d.ts +6 -0
- package/types/src/helpers/nullable.d.ts +2 -0
- package/types/src/helpers/preview-lru-cache/get.d.ts +2 -0
- package/types/src/helpers/preview-lru-cache/helpers.d.ts +0 -0
- package/types/src/helpers/preview-lru-cache/init.d.ts +6 -0
- package/types/src/helpers/preview-lru-cache/set.d.ts +7 -0
- package/types/src/helpers/preview-lru-cache/types.d.ts +0 -0
- package/types/src/helpers/sessionId.d.ts +6 -0
- package/types/src/helpers/time.d.ts +1 -0
- package/types/src/helpers/url.d.ts +6 -0
- package/types/src/helpers/uuid.d.ts +8 -0
- package/types/src/helpers/visitorId.d.ts +6 -0
- package/types/src/index-helpers/blocks-exports.d.ts +21 -0
- package/types/src/index-helpers/top-of-file.d.ts +1 -0
- package/types/src/index.d.ts +7 -0
- package/types/src/scripts/init-editing.d.ts +6 -0
- package/types/src/server-index.d.ts +15 -0
- package/types/src/types/api-version.d.ts +2 -0
- package/types/src/types/builder-block.d.ts +66 -0
- package/types/src/types/builder-content.d.ts +44 -0
- package/types/src/types/builder-props.d.ts +9 -0
- package/types/src/types/can-track.d.ts +3 -0
- package/types/src/types/components.d.ts +110 -0
- package/types/src/types/deep-partial.d.ts +3 -0
- package/types/src/types/element.d.ts +59 -0
- package/types/src/types/enforced-partials.d.ts +21 -0
- package/types/src/types/input.d.ts +121 -0
- package/types/src/types/targets.d.ts +1 -0
- package/types/src/types/typescript.d.ts +11 -0
- package/types/types/api-version.d.ts +2 -0
- package/types/types/builder-block.d.ts +66 -0
- package/types/types/builder-content.d.ts +44 -0
- package/types/types/builder-props.d.ts +9 -0
- package/types/types/can-track.d.ts +3 -0
- package/types/types/components.d.ts +111 -0
- package/types/types/deep-partial.d.ts +3 -0
- package/types/types/element.d.ts +59 -0
- package/types/types/enforced-partials.d.ts +21 -0
- package/types/types/input.d.ts +121 -0
- package/types/types/targets.d.ts +1 -0
- package/types/types/typescript.d.ts +11 -0
package/lib/edge/index.qwik.cjs
CHANGED
|
@@ -6304,7 +6304,7 @@ const getInteractionPropertiesForEvent = (event) => {
|
|
|
6304
6304
|
}
|
|
6305
6305
|
};
|
|
6306
6306
|
};
|
|
6307
|
-
const SDK_VERSION = "0.7.
|
|
6307
|
+
const SDK_VERSION = "0.7.1-1";
|
|
6308
6308
|
const registry = {};
|
|
6309
6309
|
function register(type, info) {
|
|
6310
6310
|
let typeList = registry[type];
|
|
@@ -6562,6 +6562,7 @@ const emitStateUpdate = function emitStateUpdate2(props, state, elementRef) {
|
|
|
6562
6562
|
}));
|
|
6563
6563
|
};
|
|
6564
6564
|
const EnableEditor = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inlinedQrl((props) => {
|
|
6565
|
+
var _a, _b, _c;
|
|
6565
6566
|
qwik._jsxBranch();
|
|
6566
6567
|
const elementRef = qwik.useSignal();
|
|
6567
6568
|
const state = qwik.useStore({
|
|
@@ -6573,66 +6574,84 @@ const EnableEditor = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inli
|
|
|
6573
6574
|
}, {
|
|
6574
6575
|
deep: true
|
|
6575
6576
|
});
|
|
6576
|
-
qwik.
|
|
6577
|
-
qwik.useVisibleTaskQrl(/* @__PURE__ */ qwik.inlinedQrl(() => {
|
|
6578
|
-
var _a, _b;
|
|
6577
|
+
qwik.useOn("initeditingbldr", /* @__PURE__ */ qwik.inlinedQrl((event, element) => {
|
|
6579
6578
|
const [elementRef2, props2, state2] = qwik.useLexicalScope();
|
|
6580
|
-
|
|
6581
|
-
|
|
6579
|
+
state2.forceReRenderCount = state2.forceReRenderCount + 1;
|
|
6580
|
+
window.addEventListener("message", processMessage.bind(null, props2, state2, elementRef2));
|
|
6581
|
+
registerInsertMenu();
|
|
6582
|
+
setupBrowserForEditing({
|
|
6583
|
+
...props2.locale ? {
|
|
6584
|
+
locale: props2.locale
|
|
6585
|
+
} : {},
|
|
6586
|
+
...props2.includeRefs ? {
|
|
6587
|
+
includeRefs: props2.includeRefs
|
|
6588
|
+
} : {},
|
|
6589
|
+
...props2.enrich ? {
|
|
6590
|
+
enrich: props2.enrich
|
|
6591
|
+
} : {}
|
|
6592
|
+
});
|
|
6593
|
+
Object.values(props2.builderContextSignal.componentInfos).forEach((registeredComponent) => {
|
|
6594
|
+
var _a2;
|
|
6595
|
+
const message = createRegisterComponentMessage(registeredComponent);
|
|
6596
|
+
(_a2 = window.parent) == null ? void 0 : _a2.postMessage(message, "*");
|
|
6597
|
+
});
|
|
6598
|
+
window.addEventListener("builder:component:stateChangeListenerActivated", emitStateUpdate.bind(null, props2, state2, elementRef2));
|
|
6599
|
+
}, "EnableEditor_component_useOn_Qs8c0yql2i0", [
|
|
6600
|
+
elementRef,
|
|
6601
|
+
props,
|
|
6602
|
+
state
|
|
6603
|
+
]));
|
|
6604
|
+
qwik.useOn("initpreviewingbldr", /* @__PURE__ */ qwik.inlinedQrl((event, element) => {
|
|
6605
|
+
const [elementRef2, props2, state2] = qwik.useLexicalScope();
|
|
6606
|
+
const searchParams = new URL(location.href).searchParams;
|
|
6607
|
+
const searchParamPreviewModel = searchParams.get("builder.preview");
|
|
6608
|
+
const searchParamPreviewId = searchParams.get(`builder.preview.${searchParamPreviewModel}`);
|
|
6609
|
+
const previewApiKey = searchParams.get("apiKey") || searchParams.get("builder.space");
|
|
6610
|
+
if (searchParamPreviewModel === props2.model && previewApiKey === props2.apiKey && (!props2.content || searchParamPreviewId === props2.content.id))
|
|
6611
|
+
fetchOneEntry({
|
|
6612
|
+
model: props2.model,
|
|
6613
|
+
apiKey: props2.apiKey,
|
|
6614
|
+
apiVersion: props2.builderContextSignal.apiVersion
|
|
6615
|
+
}).then((content) => {
|
|
6616
|
+
if (content)
|
|
6617
|
+
mergeNewContent(props2, state2, elementRef2, content);
|
|
6618
|
+
});
|
|
6619
|
+
}, "EnableEditor_component_useOn_1_F94YipmknvI", [
|
|
6620
|
+
elementRef,
|
|
6621
|
+
props,
|
|
6622
|
+
state
|
|
6623
|
+
]));
|
|
6624
|
+
qwik.useOn("qvisible", /* @__PURE__ */ qwik.inlinedQrl((event, element) => {
|
|
6625
|
+
var _a2, _b2, _c2, _d;
|
|
6582
6626
|
if (isBrowser()) {
|
|
6583
|
-
if (isEditing())
|
|
6584
|
-
|
|
6585
|
-
|
|
6586
|
-
|
|
6587
|
-
|
|
6588
|
-
|
|
6589
|
-
|
|
6590
|
-
} : {},
|
|
6591
|
-
...props2.includeRefs ? {
|
|
6592
|
-
includeRefs: props2.includeRefs
|
|
6593
|
-
} : {},
|
|
6594
|
-
...props2.enrich ? {
|
|
6595
|
-
enrich: props2.enrich
|
|
6596
|
-
} : {}
|
|
6597
|
-
});
|
|
6598
|
-
Object.values(props2.builderContextSignal.componentInfos).forEach((registeredComponent) => {
|
|
6599
|
-
var _a2;
|
|
6600
|
-
const message = createRegisterComponentMessage(registeredComponent);
|
|
6601
|
-
(_a2 = window.parent) == null ? void 0 : _a2.postMessage(message, "*");
|
|
6602
|
-
});
|
|
6603
|
-
window.addEventListener("builder:component:stateChangeListenerActivated", emitStateUpdate.bind(null, props2, state2, elementRef2));
|
|
6604
|
-
}
|
|
6605
|
-
if (props2.builderContextSignal.content) {
|
|
6606
|
-
const variationId = (_a = props2.builderContextSignal.content) == null ? void 0 : _a.testVariationId;
|
|
6607
|
-
const contentId = (_b = props2.builderContextSignal.content) == null ? void 0 : _b.id;
|
|
6627
|
+
if (isEditing() && element)
|
|
6628
|
+
element.dispatchEvent(new CustomEvent("initeditingbldr"));
|
|
6629
|
+
const shouldTrackImpression = ((_a2 = element.attributes.getNamedItem("shouldTrack")) == null ? void 0 : _a2.value) === "true";
|
|
6630
|
+
if (shouldTrackImpression) {
|
|
6631
|
+
const variationId = (_b2 = element.attributes.getNamedItem("variationId")) == null ? void 0 : _b2.value;
|
|
6632
|
+
const contentId = (_c2 = element.attributes.getNamedItem("contentId")) == null ? void 0 : _c2.value;
|
|
6633
|
+
const apiKeyProp = (_d = element.attributes.getNamedItem("apiKey")) == null ? void 0 : _d.value;
|
|
6608
6634
|
_track({
|
|
6609
6635
|
type: "impression",
|
|
6610
|
-
canTrack:
|
|
6636
|
+
canTrack: true,
|
|
6611
6637
|
contentId,
|
|
6612
|
-
apiKey:
|
|
6638
|
+
apiKey: apiKeyProp,
|
|
6613
6639
|
variationId: variationId !== contentId ? variationId : void 0
|
|
6614
6640
|
});
|
|
6615
6641
|
}
|
|
6616
|
-
if (isPreviewing())
|
|
6617
|
-
|
|
6618
|
-
const searchParamPreviewModel = searchParams.get("builder.preview");
|
|
6619
|
-
const searchParamPreviewId = searchParams.get(`builder.preview.${searchParamPreviewModel}`);
|
|
6620
|
-
const previewApiKey = searchParams.get("apiKey") || searchParams.get("builder.space");
|
|
6621
|
-
if (searchParamPreviewModel === props2.model && previewApiKey === props2.apiKey && (!props2.content || searchParamPreviewId === props2.content.id))
|
|
6622
|
-
fetchOneEntry({
|
|
6623
|
-
model: props2.model,
|
|
6624
|
-
apiKey: props2.apiKey,
|
|
6625
|
-
apiVersion: props2.builderContextSignal.apiVersion
|
|
6626
|
-
}).then((content) => {
|
|
6627
|
-
if (content)
|
|
6628
|
-
mergeNewContent(props2, state2, elementRef2, content);
|
|
6629
|
-
});
|
|
6630
|
-
}
|
|
6631
|
-
evaluateJsCode(props2);
|
|
6632
|
-
runHttpRequests(props2, state2, elementRef2);
|
|
6633
|
-
emitStateUpdate(props2);
|
|
6642
|
+
if (isPreviewing() && element)
|
|
6643
|
+
element.dispatchEvent(new CustomEvent("initpreviewingbldr"));
|
|
6634
6644
|
}
|
|
6635
|
-
}, "
|
|
6645
|
+
}, "EnableEditor_component_useOn_2_FyR0YPSlJlw"));
|
|
6646
|
+
qwik.useContextProvider(builderContext, props.builderContextSignal);
|
|
6647
|
+
qwik.useTaskQrl(/* @__PURE__ */ qwik.inlinedQrl(() => {
|
|
6648
|
+
const [elementRef2, props2, state2] = qwik.useLexicalScope();
|
|
6649
|
+
if (!props2.apiKey)
|
|
6650
|
+
logger.error("No API key provided to `RenderContent` component. This can cause issues. Please provide an API key using the `apiKey` prop.");
|
|
6651
|
+
evaluateJsCode(props2);
|
|
6652
|
+
runHttpRequests(props2, state2, elementRef2);
|
|
6653
|
+
emitStateUpdate(props2);
|
|
6654
|
+
}, "EnableEditor_component_useTask_Nb2VI04qp0M", [
|
|
6636
6655
|
elementRef,
|
|
6637
6656
|
props,
|
|
6638
6657
|
state
|
|
@@ -6642,7 +6661,7 @@ const EnableEditor = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inli
|
|
|
6642
6661
|
track2(() => props2.content);
|
|
6643
6662
|
if (props2.content)
|
|
6644
6663
|
mergeNewContent(props2, state2, elementRef2, props2.content);
|
|
6645
|
-
}, "
|
|
6664
|
+
}, "EnableEditor_component_useTask_1_m0y1Z9vk4eQ", [
|
|
6646
6665
|
elementRef,
|
|
6647
6666
|
props,
|
|
6648
6667
|
state
|
|
@@ -6650,18 +6669,18 @@ const EnableEditor = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inli
|
|
|
6650
6669
|
qwik.useTaskQrl(/* @__PURE__ */ qwik.inlinedQrl(({ track: track2 }) => {
|
|
6651
6670
|
const [state2] = qwik.useLexicalScope();
|
|
6652
6671
|
track2(() => state2.shouldSendResetCookie);
|
|
6653
|
-
}, "
|
|
6672
|
+
}, "EnableEditor_component_useTask_2_xVyv0tDqZLs", [
|
|
6654
6673
|
state
|
|
6655
6674
|
]));
|
|
6656
6675
|
qwik.useTaskQrl(/* @__PURE__ */ qwik.inlinedQrl(({ track: track2 }) => {
|
|
6657
6676
|
const [elementRef2, props2, state2] = qwik.useLexicalScope();
|
|
6658
6677
|
track2(() => {
|
|
6659
|
-
var
|
|
6660
|
-
return (
|
|
6678
|
+
var _a2, _b2;
|
|
6679
|
+
return (_b2 = (_a2 = props2.builderContextSignal.content) == null ? void 0 : _a2.data) == null ? void 0 : _b2.jsCode;
|
|
6661
6680
|
});
|
|
6662
6681
|
track2(() => props2.builderContextSignal.rootState);
|
|
6663
6682
|
evaluateJsCode(props2);
|
|
6664
|
-
}, "
|
|
6683
|
+
}, "EnableEditor_component_useTask_3_bQ0e5LHZwWE", [
|
|
6665
6684
|
elementRef,
|
|
6666
6685
|
props,
|
|
6667
6686
|
state
|
|
@@ -6669,11 +6688,11 @@ const EnableEditor = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inli
|
|
|
6669
6688
|
qwik.useTaskQrl(/* @__PURE__ */ qwik.inlinedQrl(({ track: track2 }) => {
|
|
6670
6689
|
const [elementRef2, props2, state2] = qwik.useLexicalScope();
|
|
6671
6690
|
track2(() => {
|
|
6672
|
-
var
|
|
6673
|
-
return (
|
|
6691
|
+
var _a2, _b2;
|
|
6692
|
+
return (_b2 = (_a2 = props2.builderContextSignal.content) == null ? void 0 : _a2.data) == null ? void 0 : _b2.httpRequests;
|
|
6674
6693
|
});
|
|
6675
6694
|
runHttpRequests(props2, state2, elementRef2);
|
|
6676
|
-
}, "
|
|
6695
|
+
}, "EnableEditor_component_useTask_4_moHYZG8uNVU", [
|
|
6677
6696
|
elementRef,
|
|
6678
6697
|
props,
|
|
6679
6698
|
state
|
|
@@ -6682,41 +6701,35 @@ const EnableEditor = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inli
|
|
|
6682
6701
|
const [elementRef2, props2, state2] = qwik.useLexicalScope();
|
|
6683
6702
|
track2(() => props2.builderContextSignal.rootState);
|
|
6684
6703
|
emitStateUpdate(props2);
|
|
6685
|
-
}, "
|
|
6704
|
+
}, "EnableEditor_component_useTask_5_24QxS0r0KF8", [
|
|
6686
6705
|
elementRef,
|
|
6687
6706
|
props,
|
|
6688
6707
|
state
|
|
6689
6708
|
]));
|
|
6690
6709
|
return /* @__PURE__ */ qwik._jsxC(jsxRuntime.Fragment, {
|
|
6691
|
-
children: props.builderContextSignal.content ? /* @__PURE__ */ qwik.
|
|
6710
|
+
children: props.builderContextSignal.content ? /* @__PURE__ */ qwik.createElement("div", {
|
|
6711
|
+
apiKey: props.apiKey,
|
|
6712
|
+
contentId: (_a = props.builderContextSignal.content) == null ? void 0 : _a.id,
|
|
6713
|
+
variationId: (_b = props.builderContextSignal.content) == null ? void 0 : _b.testVariationId,
|
|
6714
|
+
shouldTrack: String(props.builderContextSignal.content && getDefaultCanTrack(props.canTrack)),
|
|
6715
|
+
key: state.forceReRenderCount,
|
|
6692
6716
|
ref: elementRef,
|
|
6693
|
-
...props.showContent ? {} : {
|
|
6694
|
-
hidden: true,
|
|
6695
|
-
"aria-hidden": true
|
|
6696
|
-
},
|
|
6697
|
-
children: /* @__PURE__ */ qwik._jsxC(qwik.Slot, null, 3, "06_0"),
|
|
6698
6717
|
onClick$: /* @__PURE__ */ qwik.inlinedQrl((event) => {
|
|
6699
6718
|
const [elementRef2, props2, state2] = qwik.useLexicalScope();
|
|
6700
6719
|
return onClick(props2, state2, elementRef2, event);
|
|
6701
|
-
}, "
|
|
6720
|
+
}, "EnableEditor_component__Fragment__createElement_PT7eU9x80Lw", [
|
|
6702
6721
|
elementRef,
|
|
6703
6722
|
props,
|
|
6704
6723
|
state
|
|
6705
|
-
])
|
|
6706
|
-
|
|
6707
|
-
"builder-
|
|
6708
|
-
|
|
6709
|
-
|
|
6710
|
-
|
|
6711
|
-
|
|
6712
|
-
|
|
6713
|
-
|
|
6714
|
-
props
|
|
6715
|
-
], "p0.model"),
|
|
6716
|
-
class: qwik._fnSignal((p0) => p0.classNameProp, [
|
|
6717
|
-
props
|
|
6718
|
-
], "p0.classNameProp")
|
|
6719
|
-
}, 0, state.forceReRenderCount) : null
|
|
6724
|
+
]),
|
|
6725
|
+
"builder-content-id": (_c = props.builderContextSignal.content) == null ? void 0 : _c.id,
|
|
6726
|
+
"builder-model": props.model,
|
|
6727
|
+
...props.showContent ? {} : {
|
|
6728
|
+
hidden: true,
|
|
6729
|
+
"aria-hidden": true
|
|
6730
|
+
},
|
|
6731
|
+
class: props.classNameProp
|
|
6732
|
+
}, /* @__PURE__ */ qwik._jsxC(qwik.Slot, null, 3, "06_0")) : null
|
|
6720
6733
|
}, 1, "06_1");
|
|
6721
6734
|
}, "EnableEditor_component_ko1mO8oaj8k"));
|
|
6722
6735
|
const getCssFromFont = (font) => {
|
|
@@ -7334,13 +7347,6 @@ const Symbol$1 = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inlinedQ
|
|
|
7334
7347
|
const state = qwik.useStore({
|
|
7335
7348
|
contentToUse: (_a = props.symbol) == null ? void 0 : _a.content
|
|
7336
7349
|
});
|
|
7337
|
-
qwik.useVisibleTaskQrl(/* @__PURE__ */ qwik.inlinedQrl(() => {
|
|
7338
|
-
const [props2, state2] = qwik.useLexicalScope();
|
|
7339
|
-
setContent(props2, state2);
|
|
7340
|
-
}, "Symbol_component_useVisibleTask_oMPs8W5ZhwE", [
|
|
7341
|
-
props,
|
|
7342
|
-
state
|
|
7343
|
-
]));
|
|
7344
7350
|
qwik.useTaskQrl(/* @__PURE__ */ qwik.inlinedQrl(({ track: track2 }) => {
|
|
7345
7351
|
const [props2, state2] = qwik.useLexicalScope();
|
|
7346
7352
|
track2(() => props2.symbol);
|
package/lib/edge/index.qwik.mjs
CHANGED
|
@@ -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, useTaskQrl, useVisibleTaskQrl } from "@builder.io/qwik";
|
|
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, useTaskQrl, useVisibleTaskQrl, useOn } from "@builder.io/qwik";
|
|
2
2
|
import { Fragment } from "@builder.io/qwik/jsx-runtime";
|
|
3
3
|
const Button = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl((props) => {
|
|
4
4
|
useStylesScopedQrl(/* @__PURE__ */ inlinedQrl(STYLES$3, "Button_component_useStylesScoped_a1JZ0Q0Q2Oc"));
|
|
@@ -6302,7 +6302,7 @@ const getInteractionPropertiesForEvent = (event) => {
|
|
|
6302
6302
|
}
|
|
6303
6303
|
};
|
|
6304
6304
|
};
|
|
6305
|
-
const SDK_VERSION = "0.7.
|
|
6305
|
+
const SDK_VERSION = "0.7.1-1";
|
|
6306
6306
|
const registry = {};
|
|
6307
6307
|
function register(type, info) {
|
|
6308
6308
|
let typeList = registry[type];
|
|
@@ -6560,6 +6560,7 @@ const emitStateUpdate = function emitStateUpdate2(props, state, elementRef) {
|
|
|
6560
6560
|
}));
|
|
6561
6561
|
};
|
|
6562
6562
|
const EnableEditor = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl((props) => {
|
|
6563
|
+
var _a, _b, _c;
|
|
6563
6564
|
_jsxBranch();
|
|
6564
6565
|
const elementRef = useSignal();
|
|
6565
6566
|
const state = useStore({
|
|
@@ -6571,66 +6572,84 @@ const EnableEditor = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl((pr
|
|
|
6571
6572
|
}, {
|
|
6572
6573
|
deep: true
|
|
6573
6574
|
});
|
|
6574
|
-
|
|
6575
|
-
useVisibleTaskQrl(/* @__PURE__ */ inlinedQrl(() => {
|
|
6576
|
-
var _a, _b;
|
|
6575
|
+
useOn("initeditingbldr", /* @__PURE__ */ inlinedQrl((event, element) => {
|
|
6577
6576
|
const [elementRef2, props2, state2] = useLexicalScope();
|
|
6578
|
-
|
|
6579
|
-
|
|
6577
|
+
state2.forceReRenderCount = state2.forceReRenderCount + 1;
|
|
6578
|
+
window.addEventListener("message", processMessage.bind(null, props2, state2, elementRef2));
|
|
6579
|
+
registerInsertMenu();
|
|
6580
|
+
setupBrowserForEditing({
|
|
6581
|
+
...props2.locale ? {
|
|
6582
|
+
locale: props2.locale
|
|
6583
|
+
} : {},
|
|
6584
|
+
...props2.includeRefs ? {
|
|
6585
|
+
includeRefs: props2.includeRefs
|
|
6586
|
+
} : {},
|
|
6587
|
+
...props2.enrich ? {
|
|
6588
|
+
enrich: props2.enrich
|
|
6589
|
+
} : {}
|
|
6590
|
+
});
|
|
6591
|
+
Object.values(props2.builderContextSignal.componentInfos).forEach((registeredComponent) => {
|
|
6592
|
+
var _a2;
|
|
6593
|
+
const message = createRegisterComponentMessage(registeredComponent);
|
|
6594
|
+
(_a2 = window.parent) == null ? void 0 : _a2.postMessage(message, "*");
|
|
6595
|
+
});
|
|
6596
|
+
window.addEventListener("builder:component:stateChangeListenerActivated", emitStateUpdate.bind(null, props2, state2, elementRef2));
|
|
6597
|
+
}, "EnableEditor_component_useOn_Qs8c0yql2i0", [
|
|
6598
|
+
elementRef,
|
|
6599
|
+
props,
|
|
6600
|
+
state
|
|
6601
|
+
]));
|
|
6602
|
+
useOn("initpreviewingbldr", /* @__PURE__ */ inlinedQrl((event, element) => {
|
|
6603
|
+
const [elementRef2, props2, state2] = useLexicalScope();
|
|
6604
|
+
const searchParams = new URL(location.href).searchParams;
|
|
6605
|
+
const searchParamPreviewModel = searchParams.get("builder.preview");
|
|
6606
|
+
const searchParamPreviewId = searchParams.get(`builder.preview.${searchParamPreviewModel}`);
|
|
6607
|
+
const previewApiKey = searchParams.get("apiKey") || searchParams.get("builder.space");
|
|
6608
|
+
if (searchParamPreviewModel === props2.model && previewApiKey === props2.apiKey && (!props2.content || searchParamPreviewId === props2.content.id))
|
|
6609
|
+
fetchOneEntry({
|
|
6610
|
+
model: props2.model,
|
|
6611
|
+
apiKey: props2.apiKey,
|
|
6612
|
+
apiVersion: props2.builderContextSignal.apiVersion
|
|
6613
|
+
}).then((content) => {
|
|
6614
|
+
if (content)
|
|
6615
|
+
mergeNewContent(props2, state2, elementRef2, content);
|
|
6616
|
+
});
|
|
6617
|
+
}, "EnableEditor_component_useOn_1_F94YipmknvI", [
|
|
6618
|
+
elementRef,
|
|
6619
|
+
props,
|
|
6620
|
+
state
|
|
6621
|
+
]));
|
|
6622
|
+
useOn("qvisible", /* @__PURE__ */ inlinedQrl((event, element) => {
|
|
6623
|
+
var _a2, _b2, _c2, _d;
|
|
6580
6624
|
if (isBrowser()) {
|
|
6581
|
-
if (isEditing())
|
|
6582
|
-
|
|
6583
|
-
|
|
6584
|
-
|
|
6585
|
-
|
|
6586
|
-
|
|
6587
|
-
|
|
6588
|
-
} : {},
|
|
6589
|
-
...props2.includeRefs ? {
|
|
6590
|
-
includeRefs: props2.includeRefs
|
|
6591
|
-
} : {},
|
|
6592
|
-
...props2.enrich ? {
|
|
6593
|
-
enrich: props2.enrich
|
|
6594
|
-
} : {}
|
|
6595
|
-
});
|
|
6596
|
-
Object.values(props2.builderContextSignal.componentInfos).forEach((registeredComponent) => {
|
|
6597
|
-
var _a2;
|
|
6598
|
-
const message = createRegisterComponentMessage(registeredComponent);
|
|
6599
|
-
(_a2 = window.parent) == null ? void 0 : _a2.postMessage(message, "*");
|
|
6600
|
-
});
|
|
6601
|
-
window.addEventListener("builder:component:stateChangeListenerActivated", emitStateUpdate.bind(null, props2, state2, elementRef2));
|
|
6602
|
-
}
|
|
6603
|
-
if (props2.builderContextSignal.content) {
|
|
6604
|
-
const variationId = (_a = props2.builderContextSignal.content) == null ? void 0 : _a.testVariationId;
|
|
6605
|
-
const contentId = (_b = props2.builderContextSignal.content) == null ? void 0 : _b.id;
|
|
6625
|
+
if (isEditing() && element)
|
|
6626
|
+
element.dispatchEvent(new CustomEvent("initeditingbldr"));
|
|
6627
|
+
const shouldTrackImpression = ((_a2 = element.attributes.getNamedItem("shouldTrack")) == null ? void 0 : _a2.value) === "true";
|
|
6628
|
+
if (shouldTrackImpression) {
|
|
6629
|
+
const variationId = (_b2 = element.attributes.getNamedItem("variationId")) == null ? void 0 : _b2.value;
|
|
6630
|
+
const contentId = (_c2 = element.attributes.getNamedItem("contentId")) == null ? void 0 : _c2.value;
|
|
6631
|
+
const apiKeyProp = (_d = element.attributes.getNamedItem("apiKey")) == null ? void 0 : _d.value;
|
|
6606
6632
|
_track({
|
|
6607
6633
|
type: "impression",
|
|
6608
|
-
canTrack:
|
|
6634
|
+
canTrack: true,
|
|
6609
6635
|
contentId,
|
|
6610
|
-
apiKey:
|
|
6636
|
+
apiKey: apiKeyProp,
|
|
6611
6637
|
variationId: variationId !== contentId ? variationId : void 0
|
|
6612
6638
|
});
|
|
6613
6639
|
}
|
|
6614
|
-
if (isPreviewing())
|
|
6615
|
-
|
|
6616
|
-
const searchParamPreviewModel = searchParams.get("builder.preview");
|
|
6617
|
-
const searchParamPreviewId = searchParams.get(`builder.preview.${searchParamPreviewModel}`);
|
|
6618
|
-
const previewApiKey = searchParams.get("apiKey") || searchParams.get("builder.space");
|
|
6619
|
-
if (searchParamPreviewModel === props2.model && previewApiKey === props2.apiKey && (!props2.content || searchParamPreviewId === props2.content.id))
|
|
6620
|
-
fetchOneEntry({
|
|
6621
|
-
model: props2.model,
|
|
6622
|
-
apiKey: props2.apiKey,
|
|
6623
|
-
apiVersion: props2.builderContextSignal.apiVersion
|
|
6624
|
-
}).then((content) => {
|
|
6625
|
-
if (content)
|
|
6626
|
-
mergeNewContent(props2, state2, elementRef2, content);
|
|
6627
|
-
});
|
|
6628
|
-
}
|
|
6629
|
-
evaluateJsCode(props2);
|
|
6630
|
-
runHttpRequests(props2, state2, elementRef2);
|
|
6631
|
-
emitStateUpdate(props2);
|
|
6640
|
+
if (isPreviewing() && element)
|
|
6641
|
+
element.dispatchEvent(new CustomEvent("initpreviewingbldr"));
|
|
6632
6642
|
}
|
|
6633
|
-
}, "
|
|
6643
|
+
}, "EnableEditor_component_useOn_2_FyR0YPSlJlw"));
|
|
6644
|
+
useContextProvider(builderContext, props.builderContextSignal);
|
|
6645
|
+
useTaskQrl(/* @__PURE__ */ inlinedQrl(() => {
|
|
6646
|
+
const [elementRef2, props2, state2] = useLexicalScope();
|
|
6647
|
+
if (!props2.apiKey)
|
|
6648
|
+
logger.error("No API key provided to `RenderContent` component. This can cause issues. Please provide an API key using the `apiKey` prop.");
|
|
6649
|
+
evaluateJsCode(props2);
|
|
6650
|
+
runHttpRequests(props2, state2, elementRef2);
|
|
6651
|
+
emitStateUpdate(props2);
|
|
6652
|
+
}, "EnableEditor_component_useTask_Nb2VI04qp0M", [
|
|
6634
6653
|
elementRef,
|
|
6635
6654
|
props,
|
|
6636
6655
|
state
|
|
@@ -6640,7 +6659,7 @@ const EnableEditor = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl((pr
|
|
|
6640
6659
|
track2(() => props2.content);
|
|
6641
6660
|
if (props2.content)
|
|
6642
6661
|
mergeNewContent(props2, state2, elementRef2, props2.content);
|
|
6643
|
-
}, "
|
|
6662
|
+
}, "EnableEditor_component_useTask_1_m0y1Z9vk4eQ", [
|
|
6644
6663
|
elementRef,
|
|
6645
6664
|
props,
|
|
6646
6665
|
state
|
|
@@ -6648,18 +6667,18 @@ const EnableEditor = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl((pr
|
|
|
6648
6667
|
useTaskQrl(/* @__PURE__ */ inlinedQrl(({ track: track2 }) => {
|
|
6649
6668
|
const [state2] = useLexicalScope();
|
|
6650
6669
|
track2(() => state2.shouldSendResetCookie);
|
|
6651
|
-
}, "
|
|
6670
|
+
}, "EnableEditor_component_useTask_2_xVyv0tDqZLs", [
|
|
6652
6671
|
state
|
|
6653
6672
|
]));
|
|
6654
6673
|
useTaskQrl(/* @__PURE__ */ inlinedQrl(({ track: track2 }) => {
|
|
6655
6674
|
const [elementRef2, props2, state2] = useLexicalScope();
|
|
6656
6675
|
track2(() => {
|
|
6657
|
-
var
|
|
6658
|
-
return (
|
|
6676
|
+
var _a2, _b2;
|
|
6677
|
+
return (_b2 = (_a2 = props2.builderContextSignal.content) == null ? void 0 : _a2.data) == null ? void 0 : _b2.jsCode;
|
|
6659
6678
|
});
|
|
6660
6679
|
track2(() => props2.builderContextSignal.rootState);
|
|
6661
6680
|
evaluateJsCode(props2);
|
|
6662
|
-
}, "
|
|
6681
|
+
}, "EnableEditor_component_useTask_3_bQ0e5LHZwWE", [
|
|
6663
6682
|
elementRef,
|
|
6664
6683
|
props,
|
|
6665
6684
|
state
|
|
@@ -6667,11 +6686,11 @@ const EnableEditor = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl((pr
|
|
|
6667
6686
|
useTaskQrl(/* @__PURE__ */ inlinedQrl(({ track: track2 }) => {
|
|
6668
6687
|
const [elementRef2, props2, state2] = useLexicalScope();
|
|
6669
6688
|
track2(() => {
|
|
6670
|
-
var
|
|
6671
|
-
return (
|
|
6689
|
+
var _a2, _b2;
|
|
6690
|
+
return (_b2 = (_a2 = props2.builderContextSignal.content) == null ? void 0 : _a2.data) == null ? void 0 : _b2.httpRequests;
|
|
6672
6691
|
});
|
|
6673
6692
|
runHttpRequests(props2, state2, elementRef2);
|
|
6674
|
-
}, "
|
|
6693
|
+
}, "EnableEditor_component_useTask_4_moHYZG8uNVU", [
|
|
6675
6694
|
elementRef,
|
|
6676
6695
|
props,
|
|
6677
6696
|
state
|
|
@@ -6680,41 +6699,35 @@ const EnableEditor = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl((pr
|
|
|
6680
6699
|
const [elementRef2, props2, state2] = useLexicalScope();
|
|
6681
6700
|
track2(() => props2.builderContextSignal.rootState);
|
|
6682
6701
|
emitStateUpdate(props2);
|
|
6683
|
-
}, "
|
|
6702
|
+
}, "EnableEditor_component_useTask_5_24QxS0r0KF8", [
|
|
6684
6703
|
elementRef,
|
|
6685
6704
|
props,
|
|
6686
6705
|
state
|
|
6687
6706
|
]));
|
|
6688
6707
|
return /* @__PURE__ */ _jsxC(Fragment, {
|
|
6689
|
-
children: props.builderContextSignal.content ? /* @__PURE__ */
|
|
6708
|
+
children: props.builderContextSignal.content ? /* @__PURE__ */ createElement("div", {
|
|
6709
|
+
apiKey: props.apiKey,
|
|
6710
|
+
contentId: (_a = props.builderContextSignal.content) == null ? void 0 : _a.id,
|
|
6711
|
+
variationId: (_b = props.builderContextSignal.content) == null ? void 0 : _b.testVariationId,
|
|
6712
|
+
shouldTrack: String(props.builderContextSignal.content && getDefaultCanTrack(props.canTrack)),
|
|
6713
|
+
key: state.forceReRenderCount,
|
|
6690
6714
|
ref: elementRef,
|
|
6691
|
-
...props.showContent ? {} : {
|
|
6692
|
-
hidden: true,
|
|
6693
|
-
"aria-hidden": true
|
|
6694
|
-
},
|
|
6695
|
-
children: /* @__PURE__ */ _jsxC(Slot, null, 3, "06_0"),
|
|
6696
6715
|
onClick$: /* @__PURE__ */ inlinedQrl((event) => {
|
|
6697
6716
|
const [elementRef2, props2, state2] = useLexicalScope();
|
|
6698
6717
|
return onClick(props2, state2, elementRef2, event);
|
|
6699
|
-
}, "
|
|
6718
|
+
}, "EnableEditor_component__Fragment__createElement_PT7eU9x80Lw", [
|
|
6700
6719
|
elementRef,
|
|
6701
6720
|
props,
|
|
6702
6721
|
state
|
|
6703
|
-
])
|
|
6704
|
-
|
|
6705
|
-
"builder-
|
|
6706
|
-
|
|
6707
|
-
|
|
6708
|
-
|
|
6709
|
-
|
|
6710
|
-
|
|
6711
|
-
|
|
6712
|
-
props
|
|
6713
|
-
], "p0.model"),
|
|
6714
|
-
class: _fnSignal((p0) => p0.classNameProp, [
|
|
6715
|
-
props
|
|
6716
|
-
], "p0.classNameProp")
|
|
6717
|
-
}, 0, state.forceReRenderCount) : null
|
|
6722
|
+
]),
|
|
6723
|
+
"builder-content-id": (_c = props.builderContextSignal.content) == null ? void 0 : _c.id,
|
|
6724
|
+
"builder-model": props.model,
|
|
6725
|
+
...props.showContent ? {} : {
|
|
6726
|
+
hidden: true,
|
|
6727
|
+
"aria-hidden": true
|
|
6728
|
+
},
|
|
6729
|
+
class: props.classNameProp
|
|
6730
|
+
}, /* @__PURE__ */ _jsxC(Slot, null, 3, "06_0")) : null
|
|
6718
6731
|
}, 1, "06_1");
|
|
6719
6732
|
}, "EnableEditor_component_ko1mO8oaj8k"));
|
|
6720
6733
|
const getCssFromFont = (font) => {
|
|
@@ -7332,13 +7345,6 @@ const Symbol$1 = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl((props)
|
|
|
7332
7345
|
const state = useStore({
|
|
7333
7346
|
contentToUse: (_a = props.symbol) == null ? void 0 : _a.content
|
|
7334
7347
|
});
|
|
7335
|
-
useVisibleTaskQrl(/* @__PURE__ */ inlinedQrl(() => {
|
|
7336
|
-
const [props2, state2] = useLexicalScope();
|
|
7337
|
-
setContent(props2, state2);
|
|
7338
|
-
}, "Symbol_component_useVisibleTask_oMPs8W5ZhwE", [
|
|
7339
|
-
props,
|
|
7340
|
-
state
|
|
7341
|
-
]));
|
|
7342
7348
|
useTaskQrl(/* @__PURE__ */ inlinedQrl(({ track: track2 }) => {
|
|
7343
7349
|
const [props2, state2] = useLexicalScope();
|
|
7344
7350
|
track2(() => props2.symbol);
|