@builder.io/sdk-qwik 0.7.0 → 0.7.1-0
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 -83
- package/lib/browser/index.qwik.mjs +97 -84
- package/lib/edge/index.qwik.cjs +96 -83
- package/lib/edge/index.qwik.mjs +97 -84
- package/lib/index.qwik.cjs +8790 -0
- package/lib/index.qwik.mjs +8790 -0
- package/lib/node/index.qwik.cjs +96 -83
- package/lib/node/index.qwik.mjs +97 -84
- 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/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
|
@@ -3100,7 +3100,7 @@ const getInteractionPropertiesForEvent = (event) => {
|
|
|
3100
3100
|
}
|
|
3101
3101
|
};
|
|
3102
3102
|
};
|
|
3103
|
-
const SDK_VERSION = "0.7.0";
|
|
3103
|
+
const SDK_VERSION = "0.7.1-0";
|
|
3104
3104
|
const registry = {};
|
|
3105
3105
|
function register(type, info) {
|
|
3106
3106
|
let typeList = registry[type];
|
|
@@ -3358,6 +3358,7 @@ const emitStateUpdate = function emitStateUpdate2(props, state, elementRef) {
|
|
|
3358
3358
|
}));
|
|
3359
3359
|
};
|
|
3360
3360
|
const EnableEditor = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inlinedQrl((props) => {
|
|
3361
|
+
var _a, _b, _c;
|
|
3361
3362
|
qwik._jsxBranch();
|
|
3362
3363
|
const elementRef = qwik.useSignal();
|
|
3363
3364
|
const state = qwik.useStore({
|
|
@@ -3369,66 +3370,84 @@ const EnableEditor = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inli
|
|
|
3369
3370
|
}, {
|
|
3370
3371
|
deep: true
|
|
3371
3372
|
});
|
|
3372
|
-
qwik.
|
|
3373
|
-
qwik.useVisibleTaskQrl(/* @__PURE__ */ qwik.inlinedQrl(() => {
|
|
3374
|
-
var _a, _b;
|
|
3373
|
+
qwik.useOn("initeditingbldr", /* @__PURE__ */ qwik.inlinedQrl((event, element) => {
|
|
3375
3374
|
const [elementRef2, props2, state2] = qwik.useLexicalScope();
|
|
3376
|
-
|
|
3377
|
-
|
|
3375
|
+
state2.forceReRenderCount = state2.forceReRenderCount + 1;
|
|
3376
|
+
window.addEventListener("message", processMessage.bind(null, props2, state2, elementRef2));
|
|
3377
|
+
registerInsertMenu();
|
|
3378
|
+
setupBrowserForEditing({
|
|
3379
|
+
...props2.locale ? {
|
|
3380
|
+
locale: props2.locale
|
|
3381
|
+
} : {},
|
|
3382
|
+
...props2.includeRefs ? {
|
|
3383
|
+
includeRefs: props2.includeRefs
|
|
3384
|
+
} : {},
|
|
3385
|
+
...props2.enrich ? {
|
|
3386
|
+
enrich: props2.enrich
|
|
3387
|
+
} : {}
|
|
3388
|
+
});
|
|
3389
|
+
Object.values(props2.builderContextSignal.componentInfos).forEach((registeredComponent) => {
|
|
3390
|
+
var _a2;
|
|
3391
|
+
const message = createRegisterComponentMessage(registeredComponent);
|
|
3392
|
+
(_a2 = window.parent) == null ? void 0 : _a2.postMessage(message, "*");
|
|
3393
|
+
});
|
|
3394
|
+
window.addEventListener("builder:component:stateChangeListenerActivated", emitStateUpdate.bind(null, props2, state2, elementRef2));
|
|
3395
|
+
}, "EnableEditor_component_useOn_Qs8c0yql2i0", [
|
|
3396
|
+
elementRef,
|
|
3397
|
+
props,
|
|
3398
|
+
state
|
|
3399
|
+
]));
|
|
3400
|
+
qwik.useOn("initpreviewingbldr", /* @__PURE__ */ qwik.inlinedQrl((event, element) => {
|
|
3401
|
+
const [elementRef2, props2, state2] = qwik.useLexicalScope();
|
|
3402
|
+
const searchParams = new URL(location.href).searchParams;
|
|
3403
|
+
const searchParamPreviewModel = searchParams.get("builder.preview");
|
|
3404
|
+
const searchParamPreviewId = searchParams.get(`builder.preview.${searchParamPreviewModel}`);
|
|
3405
|
+
const previewApiKey = searchParams.get("apiKey") || searchParams.get("builder.space");
|
|
3406
|
+
if (searchParamPreviewModel === props2.model && previewApiKey === props2.apiKey && (!props2.content || searchParamPreviewId === props2.content.id))
|
|
3407
|
+
fetchOneEntry({
|
|
3408
|
+
model: props2.model,
|
|
3409
|
+
apiKey: props2.apiKey,
|
|
3410
|
+
apiVersion: props2.builderContextSignal.apiVersion
|
|
3411
|
+
}).then((content) => {
|
|
3412
|
+
if (content)
|
|
3413
|
+
mergeNewContent(props2, state2, elementRef2, content);
|
|
3414
|
+
});
|
|
3415
|
+
}, "EnableEditor_component_useOn_1_F94YipmknvI", [
|
|
3416
|
+
elementRef,
|
|
3417
|
+
props,
|
|
3418
|
+
state
|
|
3419
|
+
]));
|
|
3420
|
+
qwik.useOn("qvisible", /* @__PURE__ */ qwik.inlinedQrl((event, element) => {
|
|
3421
|
+
var _a2, _b2, _c2, _d;
|
|
3378
3422
|
if (isBrowser()) {
|
|
3379
|
-
if (isEditing())
|
|
3380
|
-
|
|
3381
|
-
|
|
3382
|
-
|
|
3383
|
-
|
|
3384
|
-
|
|
3385
|
-
|
|
3386
|
-
} : {},
|
|
3387
|
-
...props2.includeRefs ? {
|
|
3388
|
-
includeRefs: props2.includeRefs
|
|
3389
|
-
} : {},
|
|
3390
|
-
...props2.enrich ? {
|
|
3391
|
-
enrich: props2.enrich
|
|
3392
|
-
} : {}
|
|
3393
|
-
});
|
|
3394
|
-
Object.values(props2.builderContextSignal.componentInfos).forEach((registeredComponent) => {
|
|
3395
|
-
var _a2;
|
|
3396
|
-
const message = createRegisterComponentMessage(registeredComponent);
|
|
3397
|
-
(_a2 = window.parent) == null ? void 0 : _a2.postMessage(message, "*");
|
|
3398
|
-
});
|
|
3399
|
-
window.addEventListener("builder:component:stateChangeListenerActivated", emitStateUpdate.bind(null, props2, state2, elementRef2));
|
|
3400
|
-
}
|
|
3401
|
-
if (props2.builderContextSignal.content) {
|
|
3402
|
-
const variationId = (_a = props2.builderContextSignal.content) == null ? void 0 : _a.testVariationId;
|
|
3403
|
-
const contentId = (_b = props2.builderContextSignal.content) == null ? void 0 : _b.id;
|
|
3423
|
+
if (isEditing() && element)
|
|
3424
|
+
element.dispatchEvent(new CustomEvent("initeditingbldr"));
|
|
3425
|
+
const shouldTrackImpression = ((_a2 = element.attributes.getNamedItem("shouldTrack")) == null ? void 0 : _a2.value) === "true";
|
|
3426
|
+
if (shouldTrackImpression) {
|
|
3427
|
+
const variationId = (_b2 = element.attributes.getNamedItem("variationId")) == null ? void 0 : _b2.value;
|
|
3428
|
+
const contentId = (_c2 = element.attributes.getNamedItem("contentId")) == null ? void 0 : _c2.value;
|
|
3429
|
+
const apiKeyProp = (_d = element.attributes.getNamedItem("apiKey")) == null ? void 0 : _d.value;
|
|
3404
3430
|
_track({
|
|
3405
3431
|
type: "impression",
|
|
3406
|
-
canTrack:
|
|
3432
|
+
canTrack: true,
|
|
3407
3433
|
contentId,
|
|
3408
|
-
apiKey:
|
|
3434
|
+
apiKey: apiKeyProp,
|
|
3409
3435
|
variationId: variationId !== contentId ? variationId : void 0
|
|
3410
3436
|
});
|
|
3411
3437
|
}
|
|
3412
|
-
if (isPreviewing())
|
|
3413
|
-
|
|
3414
|
-
const searchParamPreviewModel = searchParams.get("builder.preview");
|
|
3415
|
-
const searchParamPreviewId = searchParams.get(`builder.preview.${searchParamPreviewModel}`);
|
|
3416
|
-
const previewApiKey = searchParams.get("apiKey") || searchParams.get("builder.space");
|
|
3417
|
-
if (searchParamPreviewModel === props2.model && previewApiKey === props2.apiKey && (!props2.content || searchParamPreviewId === props2.content.id))
|
|
3418
|
-
fetchOneEntry({
|
|
3419
|
-
model: props2.model,
|
|
3420
|
-
apiKey: props2.apiKey,
|
|
3421
|
-
apiVersion: props2.builderContextSignal.apiVersion
|
|
3422
|
-
}).then((content) => {
|
|
3423
|
-
if (content)
|
|
3424
|
-
mergeNewContent(props2, state2, elementRef2, content);
|
|
3425
|
-
});
|
|
3426
|
-
}
|
|
3427
|
-
evaluateJsCode(props2);
|
|
3428
|
-
runHttpRequests(props2, state2, elementRef2);
|
|
3429
|
-
emitStateUpdate(props2);
|
|
3438
|
+
if (isPreviewing() && element)
|
|
3439
|
+
element.dispatchEvent(new CustomEvent("initpreviewingbldr"));
|
|
3430
3440
|
}
|
|
3431
|
-
}, "
|
|
3441
|
+
}, "EnableEditor_component_useOn_2_FyR0YPSlJlw"));
|
|
3442
|
+
qwik.useContextProvider(builderContext, props.builderContextSignal);
|
|
3443
|
+
qwik.useTaskQrl(/* @__PURE__ */ qwik.inlinedQrl(() => {
|
|
3444
|
+
const [elementRef2, props2, state2] = qwik.useLexicalScope();
|
|
3445
|
+
if (!props2.apiKey)
|
|
3446
|
+
logger.error("No API key provided to `RenderContent` component. This can cause issues. Please provide an API key using the `apiKey` prop.");
|
|
3447
|
+
evaluateJsCode(props2);
|
|
3448
|
+
runHttpRequests(props2, state2, elementRef2);
|
|
3449
|
+
emitStateUpdate(props2);
|
|
3450
|
+
}, "EnableEditor_component_useTask_Nb2VI04qp0M", [
|
|
3432
3451
|
elementRef,
|
|
3433
3452
|
props,
|
|
3434
3453
|
state
|
|
@@ -3438,7 +3457,7 @@ const EnableEditor = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inli
|
|
|
3438
3457
|
track2(() => props2.content);
|
|
3439
3458
|
if (props2.content)
|
|
3440
3459
|
mergeNewContent(props2, state2, elementRef2, props2.content);
|
|
3441
|
-
}, "
|
|
3460
|
+
}, "EnableEditor_component_useTask_1_m0y1Z9vk4eQ", [
|
|
3442
3461
|
elementRef,
|
|
3443
3462
|
props,
|
|
3444
3463
|
state
|
|
@@ -3446,18 +3465,18 @@ const EnableEditor = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inli
|
|
|
3446
3465
|
qwik.useTaskQrl(/* @__PURE__ */ qwik.inlinedQrl(({ track: track2 }) => {
|
|
3447
3466
|
const [state2] = qwik.useLexicalScope();
|
|
3448
3467
|
track2(() => state2.shouldSendResetCookie);
|
|
3449
|
-
}, "
|
|
3468
|
+
}, "EnableEditor_component_useTask_2_xVyv0tDqZLs", [
|
|
3450
3469
|
state
|
|
3451
3470
|
]));
|
|
3452
3471
|
qwik.useTaskQrl(/* @__PURE__ */ qwik.inlinedQrl(({ track: track2 }) => {
|
|
3453
3472
|
const [elementRef2, props2, state2] = qwik.useLexicalScope();
|
|
3454
3473
|
track2(() => {
|
|
3455
|
-
var
|
|
3456
|
-
return (
|
|
3474
|
+
var _a2, _b2;
|
|
3475
|
+
return (_b2 = (_a2 = props2.builderContextSignal.content) == null ? void 0 : _a2.data) == null ? void 0 : _b2.jsCode;
|
|
3457
3476
|
});
|
|
3458
3477
|
track2(() => props2.builderContextSignal.rootState);
|
|
3459
3478
|
evaluateJsCode(props2);
|
|
3460
|
-
}, "
|
|
3479
|
+
}, "EnableEditor_component_useTask_3_bQ0e5LHZwWE", [
|
|
3461
3480
|
elementRef,
|
|
3462
3481
|
props,
|
|
3463
3482
|
state
|
|
@@ -3465,11 +3484,11 @@ const EnableEditor = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inli
|
|
|
3465
3484
|
qwik.useTaskQrl(/* @__PURE__ */ qwik.inlinedQrl(({ track: track2 }) => {
|
|
3466
3485
|
const [elementRef2, props2, state2] = qwik.useLexicalScope();
|
|
3467
3486
|
track2(() => {
|
|
3468
|
-
var
|
|
3469
|
-
return (
|
|
3487
|
+
var _a2, _b2;
|
|
3488
|
+
return (_b2 = (_a2 = props2.builderContextSignal.content) == null ? void 0 : _a2.data) == null ? void 0 : _b2.httpRequests;
|
|
3470
3489
|
});
|
|
3471
3490
|
runHttpRequests(props2, state2, elementRef2);
|
|
3472
|
-
}, "
|
|
3491
|
+
}, "EnableEditor_component_useTask_4_moHYZG8uNVU", [
|
|
3473
3492
|
elementRef,
|
|
3474
3493
|
props,
|
|
3475
3494
|
state
|
|
@@ -3478,41 +3497,35 @@ const EnableEditor = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inli
|
|
|
3478
3497
|
const [elementRef2, props2, state2] = qwik.useLexicalScope();
|
|
3479
3498
|
track2(() => props2.builderContextSignal.rootState);
|
|
3480
3499
|
emitStateUpdate(props2);
|
|
3481
|
-
}, "
|
|
3500
|
+
}, "EnableEditor_component_useTask_5_24QxS0r0KF8", [
|
|
3482
3501
|
elementRef,
|
|
3483
3502
|
props,
|
|
3484
3503
|
state
|
|
3485
3504
|
]));
|
|
3486
3505
|
return /* @__PURE__ */ qwik._jsxC(jsxRuntime.Fragment, {
|
|
3487
|
-
children: props.builderContextSignal.content ? /* @__PURE__ */ qwik.
|
|
3506
|
+
children: props.builderContextSignal.content ? /* @__PURE__ */ qwik.createElement("div", {
|
|
3507
|
+
apiKey: props.apiKey,
|
|
3508
|
+
contentId: (_a = props.builderContextSignal.content) == null ? void 0 : _a.id,
|
|
3509
|
+
variationId: (_b = props.builderContextSignal.content) == null ? void 0 : _b.testVariationId,
|
|
3510
|
+
shouldTrack: String(props.builderContextSignal.content && getDefaultCanTrack(props.canTrack)),
|
|
3511
|
+
key: state.forceReRenderCount,
|
|
3488
3512
|
ref: elementRef,
|
|
3489
|
-
...props.showContent ? {} : {
|
|
3490
|
-
hidden: true,
|
|
3491
|
-
"aria-hidden": true
|
|
3492
|
-
},
|
|
3493
|
-
children: /* @__PURE__ */ qwik._jsxC(qwik.Slot, null, 3, "06_0"),
|
|
3494
3513
|
onClick$: /* @__PURE__ */ qwik.inlinedQrl((event) => {
|
|
3495
3514
|
const [elementRef2, props2, state2] = qwik.useLexicalScope();
|
|
3496
3515
|
return onClick(props2, state2, elementRef2, event);
|
|
3497
|
-
}, "
|
|
3516
|
+
}, "EnableEditor_component__Fragment__createElement_PT7eU9x80Lw", [
|
|
3498
3517
|
elementRef,
|
|
3499
3518
|
props,
|
|
3500
3519
|
state
|
|
3501
|
-
])
|
|
3502
|
-
|
|
3503
|
-
"builder-
|
|
3504
|
-
|
|
3505
|
-
|
|
3506
|
-
|
|
3507
|
-
|
|
3508
|
-
|
|
3509
|
-
|
|
3510
|
-
props
|
|
3511
|
-
], "p0.model"),
|
|
3512
|
-
class: qwik._fnSignal((p0) => p0.classNameProp, [
|
|
3513
|
-
props
|
|
3514
|
-
], "p0.classNameProp")
|
|
3515
|
-
}, 0, state.forceReRenderCount) : null
|
|
3520
|
+
]),
|
|
3521
|
+
"builder-content-id": (_c = props.builderContextSignal.content) == null ? void 0 : _c.id,
|
|
3522
|
+
"builder-model": props.model,
|
|
3523
|
+
...props.showContent ? {} : {
|
|
3524
|
+
hidden: true,
|
|
3525
|
+
"aria-hidden": true
|
|
3526
|
+
},
|
|
3527
|
+
class: props.classNameProp
|
|
3528
|
+
}, /* @__PURE__ */ qwik._jsxC(qwik.Slot, null, 3, "06_0")) : null
|
|
3516
3529
|
}, 1, "06_1");
|
|
3517
3530
|
}, "EnableEditor_component_ko1mO8oaj8k"));
|
|
3518
3531
|
const getCssFromFont = (font) => {
|
|
@@ -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"));
|
|
@@ -3098,7 +3098,7 @@ const getInteractionPropertiesForEvent = (event) => {
|
|
|
3098
3098
|
}
|
|
3099
3099
|
};
|
|
3100
3100
|
};
|
|
3101
|
-
const SDK_VERSION = "0.7.0";
|
|
3101
|
+
const SDK_VERSION = "0.7.1-0";
|
|
3102
3102
|
const registry = {};
|
|
3103
3103
|
function register(type, info) {
|
|
3104
3104
|
let typeList = registry[type];
|
|
@@ -3356,6 +3356,7 @@ const emitStateUpdate = function emitStateUpdate2(props, state, elementRef) {
|
|
|
3356
3356
|
}));
|
|
3357
3357
|
};
|
|
3358
3358
|
const EnableEditor = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl((props) => {
|
|
3359
|
+
var _a, _b, _c;
|
|
3359
3360
|
_jsxBranch();
|
|
3360
3361
|
const elementRef = useSignal();
|
|
3361
3362
|
const state = useStore({
|
|
@@ -3367,66 +3368,84 @@ const EnableEditor = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl((pr
|
|
|
3367
3368
|
}, {
|
|
3368
3369
|
deep: true
|
|
3369
3370
|
});
|
|
3370
|
-
|
|
3371
|
-
useVisibleTaskQrl(/* @__PURE__ */ inlinedQrl(() => {
|
|
3372
|
-
var _a, _b;
|
|
3371
|
+
useOn("initeditingbldr", /* @__PURE__ */ inlinedQrl((event, element) => {
|
|
3373
3372
|
const [elementRef2, props2, state2] = useLexicalScope();
|
|
3374
|
-
|
|
3375
|
-
|
|
3373
|
+
state2.forceReRenderCount = state2.forceReRenderCount + 1;
|
|
3374
|
+
window.addEventListener("message", processMessage.bind(null, props2, state2, elementRef2));
|
|
3375
|
+
registerInsertMenu();
|
|
3376
|
+
setupBrowserForEditing({
|
|
3377
|
+
...props2.locale ? {
|
|
3378
|
+
locale: props2.locale
|
|
3379
|
+
} : {},
|
|
3380
|
+
...props2.includeRefs ? {
|
|
3381
|
+
includeRefs: props2.includeRefs
|
|
3382
|
+
} : {},
|
|
3383
|
+
...props2.enrich ? {
|
|
3384
|
+
enrich: props2.enrich
|
|
3385
|
+
} : {}
|
|
3386
|
+
});
|
|
3387
|
+
Object.values(props2.builderContextSignal.componentInfos).forEach((registeredComponent) => {
|
|
3388
|
+
var _a2;
|
|
3389
|
+
const message = createRegisterComponentMessage(registeredComponent);
|
|
3390
|
+
(_a2 = window.parent) == null ? void 0 : _a2.postMessage(message, "*");
|
|
3391
|
+
});
|
|
3392
|
+
window.addEventListener("builder:component:stateChangeListenerActivated", emitStateUpdate.bind(null, props2, state2, elementRef2));
|
|
3393
|
+
}, "EnableEditor_component_useOn_Qs8c0yql2i0", [
|
|
3394
|
+
elementRef,
|
|
3395
|
+
props,
|
|
3396
|
+
state
|
|
3397
|
+
]));
|
|
3398
|
+
useOn("initpreviewingbldr", /* @__PURE__ */ inlinedQrl((event, element) => {
|
|
3399
|
+
const [elementRef2, props2, state2] = useLexicalScope();
|
|
3400
|
+
const searchParams = new URL(location.href).searchParams;
|
|
3401
|
+
const searchParamPreviewModel = searchParams.get("builder.preview");
|
|
3402
|
+
const searchParamPreviewId = searchParams.get(`builder.preview.${searchParamPreviewModel}`);
|
|
3403
|
+
const previewApiKey = searchParams.get("apiKey") || searchParams.get("builder.space");
|
|
3404
|
+
if (searchParamPreviewModel === props2.model && previewApiKey === props2.apiKey && (!props2.content || searchParamPreviewId === props2.content.id))
|
|
3405
|
+
fetchOneEntry({
|
|
3406
|
+
model: props2.model,
|
|
3407
|
+
apiKey: props2.apiKey,
|
|
3408
|
+
apiVersion: props2.builderContextSignal.apiVersion
|
|
3409
|
+
}).then((content) => {
|
|
3410
|
+
if (content)
|
|
3411
|
+
mergeNewContent(props2, state2, elementRef2, content);
|
|
3412
|
+
});
|
|
3413
|
+
}, "EnableEditor_component_useOn_1_F94YipmknvI", [
|
|
3414
|
+
elementRef,
|
|
3415
|
+
props,
|
|
3416
|
+
state
|
|
3417
|
+
]));
|
|
3418
|
+
useOn("qvisible", /* @__PURE__ */ inlinedQrl((event, element) => {
|
|
3419
|
+
var _a2, _b2, _c2, _d;
|
|
3376
3420
|
if (isBrowser()) {
|
|
3377
|
-
if (isEditing())
|
|
3378
|
-
|
|
3379
|
-
|
|
3380
|
-
|
|
3381
|
-
|
|
3382
|
-
|
|
3383
|
-
|
|
3384
|
-
} : {},
|
|
3385
|
-
...props2.includeRefs ? {
|
|
3386
|
-
includeRefs: props2.includeRefs
|
|
3387
|
-
} : {},
|
|
3388
|
-
...props2.enrich ? {
|
|
3389
|
-
enrich: props2.enrich
|
|
3390
|
-
} : {}
|
|
3391
|
-
});
|
|
3392
|
-
Object.values(props2.builderContextSignal.componentInfos).forEach((registeredComponent) => {
|
|
3393
|
-
var _a2;
|
|
3394
|
-
const message = createRegisterComponentMessage(registeredComponent);
|
|
3395
|
-
(_a2 = window.parent) == null ? void 0 : _a2.postMessage(message, "*");
|
|
3396
|
-
});
|
|
3397
|
-
window.addEventListener("builder:component:stateChangeListenerActivated", emitStateUpdate.bind(null, props2, state2, elementRef2));
|
|
3398
|
-
}
|
|
3399
|
-
if (props2.builderContextSignal.content) {
|
|
3400
|
-
const variationId = (_a = props2.builderContextSignal.content) == null ? void 0 : _a.testVariationId;
|
|
3401
|
-
const contentId = (_b = props2.builderContextSignal.content) == null ? void 0 : _b.id;
|
|
3421
|
+
if (isEditing() && element)
|
|
3422
|
+
element.dispatchEvent(new CustomEvent("initeditingbldr"));
|
|
3423
|
+
const shouldTrackImpression = ((_a2 = element.attributes.getNamedItem("shouldTrack")) == null ? void 0 : _a2.value) === "true";
|
|
3424
|
+
if (shouldTrackImpression) {
|
|
3425
|
+
const variationId = (_b2 = element.attributes.getNamedItem("variationId")) == null ? void 0 : _b2.value;
|
|
3426
|
+
const contentId = (_c2 = element.attributes.getNamedItem("contentId")) == null ? void 0 : _c2.value;
|
|
3427
|
+
const apiKeyProp = (_d = element.attributes.getNamedItem("apiKey")) == null ? void 0 : _d.value;
|
|
3402
3428
|
_track({
|
|
3403
3429
|
type: "impression",
|
|
3404
|
-
canTrack:
|
|
3430
|
+
canTrack: true,
|
|
3405
3431
|
contentId,
|
|
3406
|
-
apiKey:
|
|
3432
|
+
apiKey: apiKeyProp,
|
|
3407
3433
|
variationId: variationId !== contentId ? variationId : void 0
|
|
3408
3434
|
});
|
|
3409
3435
|
}
|
|
3410
|
-
if (isPreviewing())
|
|
3411
|
-
|
|
3412
|
-
const searchParamPreviewModel = searchParams.get("builder.preview");
|
|
3413
|
-
const searchParamPreviewId = searchParams.get(`builder.preview.${searchParamPreviewModel}`);
|
|
3414
|
-
const previewApiKey = searchParams.get("apiKey") || searchParams.get("builder.space");
|
|
3415
|
-
if (searchParamPreviewModel === props2.model && previewApiKey === props2.apiKey && (!props2.content || searchParamPreviewId === props2.content.id))
|
|
3416
|
-
fetchOneEntry({
|
|
3417
|
-
model: props2.model,
|
|
3418
|
-
apiKey: props2.apiKey,
|
|
3419
|
-
apiVersion: props2.builderContextSignal.apiVersion
|
|
3420
|
-
}).then((content) => {
|
|
3421
|
-
if (content)
|
|
3422
|
-
mergeNewContent(props2, state2, elementRef2, content);
|
|
3423
|
-
});
|
|
3424
|
-
}
|
|
3425
|
-
evaluateJsCode(props2);
|
|
3426
|
-
runHttpRequests(props2, state2, elementRef2);
|
|
3427
|
-
emitStateUpdate(props2);
|
|
3436
|
+
if (isPreviewing() && element)
|
|
3437
|
+
element.dispatchEvent(new CustomEvent("initpreviewingbldr"));
|
|
3428
3438
|
}
|
|
3429
|
-
}, "
|
|
3439
|
+
}, "EnableEditor_component_useOn_2_FyR0YPSlJlw"));
|
|
3440
|
+
useContextProvider(builderContext, props.builderContextSignal);
|
|
3441
|
+
useTaskQrl(/* @__PURE__ */ inlinedQrl(() => {
|
|
3442
|
+
const [elementRef2, props2, state2] = useLexicalScope();
|
|
3443
|
+
if (!props2.apiKey)
|
|
3444
|
+
logger.error("No API key provided to `RenderContent` component. This can cause issues. Please provide an API key using the `apiKey` prop.");
|
|
3445
|
+
evaluateJsCode(props2);
|
|
3446
|
+
runHttpRequests(props2, state2, elementRef2);
|
|
3447
|
+
emitStateUpdate(props2);
|
|
3448
|
+
}, "EnableEditor_component_useTask_Nb2VI04qp0M", [
|
|
3430
3449
|
elementRef,
|
|
3431
3450
|
props,
|
|
3432
3451
|
state
|
|
@@ -3436,7 +3455,7 @@ const EnableEditor = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl((pr
|
|
|
3436
3455
|
track2(() => props2.content);
|
|
3437
3456
|
if (props2.content)
|
|
3438
3457
|
mergeNewContent(props2, state2, elementRef2, props2.content);
|
|
3439
|
-
}, "
|
|
3458
|
+
}, "EnableEditor_component_useTask_1_m0y1Z9vk4eQ", [
|
|
3440
3459
|
elementRef,
|
|
3441
3460
|
props,
|
|
3442
3461
|
state
|
|
@@ -3444,18 +3463,18 @@ const EnableEditor = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl((pr
|
|
|
3444
3463
|
useTaskQrl(/* @__PURE__ */ inlinedQrl(({ track: track2 }) => {
|
|
3445
3464
|
const [state2] = useLexicalScope();
|
|
3446
3465
|
track2(() => state2.shouldSendResetCookie);
|
|
3447
|
-
}, "
|
|
3466
|
+
}, "EnableEditor_component_useTask_2_xVyv0tDqZLs", [
|
|
3448
3467
|
state
|
|
3449
3468
|
]));
|
|
3450
3469
|
useTaskQrl(/* @__PURE__ */ inlinedQrl(({ track: track2 }) => {
|
|
3451
3470
|
const [elementRef2, props2, state2] = useLexicalScope();
|
|
3452
3471
|
track2(() => {
|
|
3453
|
-
var
|
|
3454
|
-
return (
|
|
3472
|
+
var _a2, _b2;
|
|
3473
|
+
return (_b2 = (_a2 = props2.builderContextSignal.content) == null ? void 0 : _a2.data) == null ? void 0 : _b2.jsCode;
|
|
3455
3474
|
});
|
|
3456
3475
|
track2(() => props2.builderContextSignal.rootState);
|
|
3457
3476
|
evaluateJsCode(props2);
|
|
3458
|
-
}, "
|
|
3477
|
+
}, "EnableEditor_component_useTask_3_bQ0e5LHZwWE", [
|
|
3459
3478
|
elementRef,
|
|
3460
3479
|
props,
|
|
3461
3480
|
state
|
|
@@ -3463,11 +3482,11 @@ const EnableEditor = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl((pr
|
|
|
3463
3482
|
useTaskQrl(/* @__PURE__ */ inlinedQrl(({ track: track2 }) => {
|
|
3464
3483
|
const [elementRef2, props2, state2] = useLexicalScope();
|
|
3465
3484
|
track2(() => {
|
|
3466
|
-
var
|
|
3467
|
-
return (
|
|
3485
|
+
var _a2, _b2;
|
|
3486
|
+
return (_b2 = (_a2 = props2.builderContextSignal.content) == null ? void 0 : _a2.data) == null ? void 0 : _b2.httpRequests;
|
|
3468
3487
|
});
|
|
3469
3488
|
runHttpRequests(props2, state2, elementRef2);
|
|
3470
|
-
}, "
|
|
3489
|
+
}, "EnableEditor_component_useTask_4_moHYZG8uNVU", [
|
|
3471
3490
|
elementRef,
|
|
3472
3491
|
props,
|
|
3473
3492
|
state
|
|
@@ -3476,41 +3495,35 @@ const EnableEditor = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl((pr
|
|
|
3476
3495
|
const [elementRef2, props2, state2] = useLexicalScope();
|
|
3477
3496
|
track2(() => props2.builderContextSignal.rootState);
|
|
3478
3497
|
emitStateUpdate(props2);
|
|
3479
|
-
}, "
|
|
3498
|
+
}, "EnableEditor_component_useTask_5_24QxS0r0KF8", [
|
|
3480
3499
|
elementRef,
|
|
3481
3500
|
props,
|
|
3482
3501
|
state
|
|
3483
3502
|
]));
|
|
3484
3503
|
return /* @__PURE__ */ _jsxC(Fragment, {
|
|
3485
|
-
children: props.builderContextSignal.content ? /* @__PURE__ */
|
|
3504
|
+
children: props.builderContextSignal.content ? /* @__PURE__ */ createElement("div", {
|
|
3505
|
+
apiKey: props.apiKey,
|
|
3506
|
+
contentId: (_a = props.builderContextSignal.content) == null ? void 0 : _a.id,
|
|
3507
|
+
variationId: (_b = props.builderContextSignal.content) == null ? void 0 : _b.testVariationId,
|
|
3508
|
+
shouldTrack: String(props.builderContextSignal.content && getDefaultCanTrack(props.canTrack)),
|
|
3509
|
+
key: state.forceReRenderCount,
|
|
3486
3510
|
ref: elementRef,
|
|
3487
|
-
...props.showContent ? {} : {
|
|
3488
|
-
hidden: true,
|
|
3489
|
-
"aria-hidden": true
|
|
3490
|
-
},
|
|
3491
|
-
children: /* @__PURE__ */ _jsxC(Slot, null, 3, "06_0"),
|
|
3492
3511
|
onClick$: /* @__PURE__ */ inlinedQrl((event) => {
|
|
3493
3512
|
const [elementRef2, props2, state2] = useLexicalScope();
|
|
3494
3513
|
return onClick(props2, state2, elementRef2, event);
|
|
3495
|
-
}, "
|
|
3514
|
+
}, "EnableEditor_component__Fragment__createElement_PT7eU9x80Lw", [
|
|
3496
3515
|
elementRef,
|
|
3497
3516
|
props,
|
|
3498
3517
|
state
|
|
3499
|
-
])
|
|
3500
|
-
|
|
3501
|
-
"builder-
|
|
3502
|
-
|
|
3503
|
-
|
|
3504
|
-
|
|
3505
|
-
|
|
3506
|
-
|
|
3507
|
-
|
|
3508
|
-
props
|
|
3509
|
-
], "p0.model"),
|
|
3510
|
-
class: _fnSignal((p0) => p0.classNameProp, [
|
|
3511
|
-
props
|
|
3512
|
-
], "p0.classNameProp")
|
|
3513
|
-
}, 0, state.forceReRenderCount) : null
|
|
3518
|
+
]),
|
|
3519
|
+
"builder-content-id": (_c = props.builderContextSignal.content) == null ? void 0 : _c.id,
|
|
3520
|
+
"builder-model": props.model,
|
|
3521
|
+
...props.showContent ? {} : {
|
|
3522
|
+
hidden: true,
|
|
3523
|
+
"aria-hidden": true
|
|
3524
|
+
},
|
|
3525
|
+
class: props.classNameProp
|
|
3526
|
+
}, /* @__PURE__ */ _jsxC(Slot, null, 3, "06_0")) : null
|
|
3514
3527
|
}, 1, "06_1");
|
|
3515
3528
|
}, "EnableEditor_component_ko1mO8oaj8k"));
|
|
3516
3529
|
const getCssFromFont = (font) => {
|