@builder.io/sdk-qwik 0.0.16 → 0.0.18
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/index.qwik.cjs +243 -518
- package/lib/index.qwik.mjs +225 -518
- package/package.json +6 -5
- package/types/blocks/button/button.d.ts +9 -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/form/form.d.ts +5 -0
- package/types/blocks/fragment/component-info.d.ts +2 -0
- package/types/blocks/fragment/fragment.d.ts +7 -0
- package/types/blocks/image/component-info.d.ts +2 -0
- package/types/blocks/image/image.d.ts +25 -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 +10 -0
- package/types/blocks/input/component-info.d.ts +2 -0
- package/types/blocks/input/input.d.ts +11 -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 +8 -0
- package/types/blocks/select/component-info.d.ts +2 -0
- package/types/blocks/select/select.d.ts +12 -0
- package/types/blocks/submit-button/component-info.d.ts +2 -0
- package/types/blocks/submit-button/submit-button.d.ts +6 -0
- package/types/blocks/symbol/component-info.d.ts +2 -0
- package/types/blocks/symbol/symbol.d.ts +20 -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 +9 -0
- package/types/blocks/util.d.ts +1 -0
- package/types/blocks/video/component-info.d.ts +2 -0
- package/types/blocks/video/video.d.ts +25 -0
- package/types/components/render-block/block-styles.d.ts +12 -0
- package/types/components/render-block/render-block.d.ts +32 -0
- package/types/components/render-block/render-block.helpers.d.ts +1 -0
- package/types/components/render-block/render-component.d.ts +12 -0
- package/types/components/render-block/render-repeated-block.d.ts +17 -0
- package/types/components/render-block/types.d.ts +6 -0
- package/types/components/render-blocks.d.ts +12 -0
- package/types/components/render-content/components/render-styles.d.ts +19 -0
- package/types/components/render-content/index.d.ts +1 -0
- package/types/components/render-content/render-content.d.ts +33 -0
- package/types/components/render-inlined-styles.d.ts +9 -0
- package/types/constants/builder-registered-components.d.ts +6 -0
- package/types/constants/device-sizes.d.ts +2 -0
- package/types/constants/target.d.ts +2 -0
- package/types/context/builder.context.d.ts +2 -0
- package/types/context/types.d.ts +16 -0
- package/types/functions/camel-to-kebab-case.d.ts +1 -0
- package/types/functions/convert-style-object.d.ts +1 -0
- package/types/functions/evaluate.d.ts +5 -0
- package/types/functions/event-handler-name.d.ts +1 -0
- package/types/functions/get-block-actions.d.ts +9 -0
- package/types/functions/get-block-component-options.d.ts +2 -0
- package/types/functions/get-block-properties.d.ts +5 -0
- package/types/functions/get-block-styles.d.ts +2 -0
- package/types/functions/get-block-tag.d.ts +10 -0
- package/types/functions/get-builder-search-params/fn.test.d.ts +1 -0
- package/types/functions/get-builder-search-params/index.d.ts +6 -0
- package/types/functions/get-content/ab-testing.d.ts +3 -0
- package/types/functions/get-content/fn.test.d.ts +1 -0
- package/types/functions/get-content/index.d.ts +9 -0
- package/types/functions/get-content/types.d.ts +26 -0
- package/types/functions/get-fetch.d.ts +1 -0
- package/types/functions/get-global-this.d.ts +1 -0
- package/types/functions/get-processed-block.d.ts +10 -0
- package/types/functions/get-processed-block.test.d.ts +1 -0
- package/types/functions/if-target.d.ts +7 -0
- package/types/functions/is-browser.d.ts +1 -0
- package/types/functions/is-editing.d.ts +1 -0
- package/types/functions/is-iframe.d.ts +1 -0
- package/types/functions/is-previewing.d.ts +1 -0
- package/types/functions/mark-mutable.d.ts +2 -0
- package/types/functions/on-change.d.ts +7 -0
- package/types/functions/on-change.test.d.ts +1 -0
- package/types/functions/register-component.d.ts +14 -0
- package/types/functions/register.d.ts +16 -0
- package/types/functions/sanitize-styles.d.ts +4 -0
- package/types/functions/set-editor-settings.d.ts +4 -0
- package/types/functions/set.d.ts +7 -0
- package/types/functions/set.test.d.ts +1 -0
- package/types/functions/track.d.ts +21 -0
- package/types/functions/transform-block.d.ts +2 -0
- package/types/helpers/cookie.d.ts +9 -0
- package/types/helpers/css.d.ts +1 -0
- package/types/helpers/flatten.d.ts +6 -0
- package/types/helpers/localStorage.d.ts +9 -0
- package/types/helpers/nullable.d.ts +2 -0
- package/types/helpers/sessionId.d.ts +7 -0
- package/types/helpers/time.d.ts +1 -0
- package/types/helpers/url.d.ts +6 -0
- package/types/helpers/url.test.d.ts +1 -0
- package/types/helpers/uuid.d.ts +8 -0
- package/types/helpers/visitorId.d.ts +8 -0
- package/types/index-helpers/blocks-exports.d.ts +10 -0
- package/types/index-helpers/top-of-file.d.ts +1 -0
- package/types/index.d.ts +10 -0
- package/types/scripts/init-editing.d.ts +2 -0
- package/types/types/builder-block.d.ts +57 -0
- package/types/types/builder-content.d.ts +38 -0
- package/types/types/can-track.d.ts +3 -0
- package/types/types/components.d.ts +177 -0
- package/types/types/deep-partial.d.ts +3 -0
- package/types/types/element.d.ts +59 -0
- package/types/types/targets.d.ts +3 -0
- package/types/types/typescript.d.ts +4 -0
- package/.yarn/cache/@builder.io-qwik-npm-0.0.103-bdc7786a46-98363e9103.zip +0 -0
- package/.yarn/cache/@gar-promisify-npm-1.1.3-ac1a325862-4059f790e2.zip +0 -0
- package/.yarn/cache/@npmcli-fs-npm-2.1.2-08d434e77b-405074965e.zip +0 -0
- package/.yarn/cache/@npmcli-move-file-npm-2.0.1-b593d8f741-52dc02259d.zip +0 -0
- package/.yarn/cache/@tootallnate-once-npm-2.0.0-e36cf4f140-ad87447820.zip +0 -0
- package/.yarn/cache/@types-node-npm-18.7.6-c1eafa3d9a-5122988c32.zip +0 -0
- package/.yarn/cache/abbrev-npm-1.1.1-3659247eab-a4a97ec07d.zip +0 -0
- package/.yarn/cache/agent-base-npm-6.0.2-428f325a93-f52b6872cc.zip +0 -0
- package/.yarn/cache/agentkeepalive-npm-4.2.1-b86a9fb343-39cb49ed8c.zip +0 -0
- package/.yarn/cache/aggregate-error-npm-3.1.0-415a406f4e-1101a33f21.zip +0 -0
- package/.yarn/cache/ansi-regex-npm-5.0.1-c963a48615-2aa4bb54ca.zip +0 -0
- package/.yarn/cache/aproba-npm-2.0.0-8716bcfde6-5615cadcfb.zip +0 -0
- package/.yarn/cache/are-we-there-yet-npm-3.0.1-3395b1512f-52590c2486.zip +0 -0
- package/.yarn/cache/balanced-match-npm-1.0.2-a53c126459-9706c088a2.zip +0 -0
- package/.yarn/cache/brace-expansion-npm-1.1.11-fb95eb05ad-faf34a7bb0.zip +0 -0
- package/.yarn/cache/brace-expansion-npm-2.0.1-17aa2616f9-a61e7cd2e8.zip +0 -0
- package/.yarn/cache/cacache-npm-16.1.2-0d36d1aaf1-defe1d6f55.zip +0 -0
- package/.yarn/cache/chownr-npm-2.0.0-638f1c9c61-c57cf9dd07.zip +0 -0
- package/.yarn/cache/clean-stack-npm-2.2.0-a8ce435a5c-2ac8cd2b2f.zip +0 -0
- package/.yarn/cache/color-support-npm-1.1.3-3be5c53455-9b73568176.zip +0 -0
- package/.yarn/cache/concat-map-npm-0.0.1-85a921b7ee-902a9f5d89.zip +0 -0
- package/.yarn/cache/console-control-strings-npm-1.1.0-e3160e5275-8755d76787.zip +0 -0
- package/.yarn/cache/debug-npm-4.3.4-4513954577-3dbad3f94e.zip +0 -0
- package/.yarn/cache/delegates-npm-1.0.0-9b1942d75f-a51744d9b5.zip +0 -0
- package/.yarn/cache/depd-npm-1.1.2-b0c8414da7-6b406620d2.zip +0 -0
- package/.yarn/cache/emoji-regex-npm-8.0.0-213764015c-d4c5c39d5a.zip +0 -0
- package/.yarn/cache/encoding-npm-0.1.13-82a1837d30-bb98632f8f.zip +0 -0
- package/.yarn/cache/env-paths-npm-2.2.1-7c7577428c-65b5df55a8.zip +0 -0
- package/.yarn/cache/err-code-npm-2.0.3-082e0ff9a7-8b7b1be20d.zip +0 -0
- package/.yarn/cache/esbuild-darwin-arm64-npm-0.14.54-ec53803fa6-8.zip +0 -0
- package/.yarn/cache/esbuild-npm-0.14.54-b3dcd8a41e-49e360b118.zip +0 -0
- package/.yarn/cache/fs-minipass-npm-2.1.0-501ef87306-1b8d128dae.zip +0 -0
- package/.yarn/cache/fs.realpath-npm-1.0.0-c8f05d8126-99ddea01a7.zip +0 -0
- package/.yarn/cache/fsevents-npm-2.3.2-a881d6ac9f-97ade64e75.zip +0 -0
- package/.yarn/cache/fsevents-patch-3340e2eb10-8.zip +0 -0
- package/.yarn/cache/function-bind-npm-1.1.1-b56b322ae9-b32fbaebb3.zip +0 -0
- package/.yarn/cache/gauge-npm-4.0.4-8f878385e9-788b6bfe52.zip +0 -0
- package/.yarn/cache/glob-npm-7.2.3-2d866d17a5-29452e97b3.zip +0 -0
- package/.yarn/cache/glob-npm-8.0.3-750f909025-50bcdea19d.zip +0 -0
- package/.yarn/cache/graceful-fs-npm-4.2.10-79c70989ca-3f109d70ae.zip +0 -0
- package/.yarn/cache/has-npm-1.0.3-b7f00631c1-b9ad53d53b.zip +0 -0
- package/.yarn/cache/has-unicode-npm-2.0.1-893adb4747-1eab07a743.zip +0 -0
- package/.yarn/cache/http-cache-semantics-npm-4.1.0-860520a31f-974de94a81.zip +0 -0
- package/.yarn/cache/http-proxy-agent-npm-5.0.0-7f1f121b83-e2ee1ff165.zip +0 -0
- package/.yarn/cache/https-proxy-agent-npm-5.0.1-42d65f358e-571fccdf38.zip +0 -0
- package/.yarn/cache/humanize-ms-npm-1.2.1-e942bd7329-9c7a74a282.zip +0 -0
- package/.yarn/cache/iconv-lite-npm-0.6.3-24b8aae27e-3f60d47a5c.zip +0 -0
- package/.yarn/cache/imurmurhash-npm-0.1.4-610c5068a0-7cae75c8cd.zip +0 -0
- package/.yarn/cache/indent-string-npm-4.0.0-7b717435b2-824cfb9929.zip +0 -0
- package/.yarn/cache/infer-owner-npm-1.0.4-685ac3d2af-181e732764.zip +0 -0
- package/.yarn/cache/inflight-npm-1.0.6-ccedb4b908-f4f76aa072.zip +0 -0
- package/.yarn/cache/inherits-npm-2.0.4-c66b3957a0-4a48a73384.zip +0 -0
- package/.yarn/cache/ip-npm-2.0.0-204facb3cc-cfcfac6b87.zip +0 -0
- package/.yarn/cache/is-core-module-npm-2.10.0-6dff9310aa-0f3f77811f.zip +0 -0
- package/.yarn/cache/is-fullwidth-code-point-npm-3.0.0-1ecf4ebee5-44a30c2945.zip +0 -0
- package/.yarn/cache/is-lambda-npm-1.0.1-7ab55bc8a8-93a32f0194.zip +0 -0
- package/.yarn/cache/isexe-npm-2.0.0-b58870bd2e-26bf6c5480.zip +0 -0
- package/.yarn/cache/lru-cache-npm-6.0.0-b4c8668fe1-f97f499f89.zip +0 -0
- package/.yarn/cache/lru-cache-npm-7.14.0-354cf654ec-efdd329f2c.zip +0 -0
- package/.yarn/cache/make-fetch-happen-npm-10.2.1-f1cc7cd2df-2332eb9a8e.zip +0 -0
- package/.yarn/cache/minimatch-npm-3.1.2-9405269906-c154e56640.zip +0 -0
- package/.yarn/cache/minimatch-npm-5.1.0-34f6240621-15ce53d31a.zip +0 -0
- package/.yarn/cache/minipass-collect-npm-1.0.2-3b4676eab5-14df761028.zip +0 -0
- package/.yarn/cache/minipass-fetch-npm-2.1.1-c4a8efdb09-1aae0c2240.zip +0 -0
- package/.yarn/cache/minipass-flush-npm-1.0.5-efe79d9826-56269a0b22.zip +0 -0
- package/.yarn/cache/minipass-npm-3.3.5-a555b091e7-f89f02bcaa.zip +0 -0
- package/.yarn/cache/minipass-pipeline-npm-1.2.4-5924cb077f-b14240dac0.zip +0 -0
- package/.yarn/cache/minipass-sized-npm-1.0.3-306d86f432-79076749fc.zip +0 -0
- package/.yarn/cache/minizlib-npm-2.1.2-ea89cd0cfb-f1fdeac0b0.zip +0 -0
- package/.yarn/cache/mkdirp-npm-1.0.4-37f6ef56b9-a96865108c.zip +0 -0
- package/.yarn/cache/ms-npm-2.1.2-ec0c1512ff-673cdb2c31.zip +0 -0
- package/.yarn/cache/ms-npm-2.1.3-81ff3cfac1-aa92de6080.zip +0 -0
- package/.yarn/cache/nanoid-npm-3.3.4-3d250377d6-2fddd6dee9.zip +0 -0
- package/.yarn/cache/negotiator-npm-0.6.3-9d50e36171-b8ffeb1e26.zip +0 -0
- package/.yarn/cache/node-gyp-npm-9.1.0-2091059b31-1437fa4a87.zip +0 -0
- package/.yarn/cache/nopt-npm-5.0.0-304b40fbfe-d35fdec187.zip +0 -0
- package/.yarn/cache/npmlog-npm-6.0.2-e0e69455c7-ae238cd264.zip +0 -0
- package/.yarn/cache/once-npm-1.4.0-ccf03ef07a-cd0a885013.zip +0 -0
- package/.yarn/cache/p-map-npm-4.0.0-4677ae07c7-cb0ab21ec0.zip +0 -0
- package/.yarn/cache/path-is-absolute-npm-1.0.1-31bc695ffd-060840f92c.zip +0 -0
- package/.yarn/cache/path-parse-npm-1.0.7-09564527b7-49abf3d811.zip +0 -0
- package/.yarn/cache/picocolors-npm-1.0.0-d81e0b1927-a2e8092dd8.zip +0 -0
- package/.yarn/cache/postcss-npm-8.4.16-7367383579-10eee25efd.zip +0 -0
- package/.yarn/cache/promise-inflight-npm-1.0.1-5bb925afac-2274948309.zip +0 -0
- package/.yarn/cache/promise-retry-npm-2.0.1-871f0b01b7-f96a3f6d90.zip +0 -0
- package/.yarn/cache/readable-stream-npm-3.6.0-23a4a5eb56-d4ea81502d.zip +0 -0
- package/.yarn/cache/resolve-npm-1.22.1-3980488690-07af5fc1e8.zip +0 -0
- package/.yarn/cache/resolve-patch-46f9469d0d-5656f4d0be.zip +0 -0
- package/.yarn/cache/retry-npm-0.12.0-72ac7fb4cc-623bd7d2e5.zip +0 -0
- package/.yarn/cache/rimraf-npm-3.0.2-2cb7dac69a-87f4164e39.zip +0 -0
- package/.yarn/cache/rollup-npm-2.78.0-09284f4c78-01b5a7ae08.zip +0 -0
- package/.yarn/cache/safe-buffer-npm-5.2.1-3481c8aa9b-b99c4b41fd.zip +0 -0
- package/.yarn/cache/safer-buffer-npm-2.1.2-8d5c0b705e-cab8f25ae6.zip +0 -0
- package/.yarn/cache/semver-npm-7.3.7-3bfe704194-2fa3e87756.zip +0 -0
- package/.yarn/cache/set-blocking-npm-2.0.0-49e2cffa24-6e65a05f7c.zip +0 -0
- package/.yarn/cache/signal-exit-npm-3.0.7-bd270458a3-a2f098f247.zip +0 -0
- package/.yarn/cache/smart-buffer-npm-4.2.0-5ac3f668bb-b5167a7142.zip +0 -0
- package/.yarn/cache/socks-npm-2.7.0-cc1cb019db-0b5d94e2b3.zip +0 -0
- package/.yarn/cache/socks-proxy-agent-npm-7.0.0-7aacf32ea0-7205543701.zip +0 -0
- package/.yarn/cache/source-map-js-npm-1.0.2-ee4f9f9b30-c049a7fc4d.zip +0 -0
- package/.yarn/cache/ssri-npm-9.0.1-33ce27f4f8-fb58f5e46b.zip +0 -0
- package/.yarn/cache/string-width-npm-4.2.3-2c27177bae-e52c10dc3f.zip +0 -0
- package/.yarn/cache/string_decoder-npm-1.3.0-2422117fd0-8417646695.zip +0 -0
- package/.yarn/cache/strip-ansi-npm-6.0.1-caddc7cb40-f3cd25890a.zip +0 -0
- package/.yarn/cache/supports-preserve-symlinks-flag-npm-1.0.0-f17c4d0028-53b1e247e6.zip +0 -0
- package/.yarn/cache/tar-npm-6.1.11-e6ac3cba9c-a04c07bb9e.zip +0 -0
- package/.yarn/cache/typescript-npm-4.7.4-65aa6ffb42-5750181b1c.zip +0 -0
- package/.yarn/cache/typescript-patch-ae154b3216-96d3030cb0.zip +0 -0
- package/.yarn/cache/unique-filename-npm-1.1.1-c885c5095b-cf4998c922.zip +0 -0
- package/.yarn/cache/unique-slug-npm-2.0.2-f6ba1ddeb7-5b6876a645.zip +0 -0
- package/.yarn/cache/util-deprecate-npm-1.0.2-e3fe1a219c-474acf1146.zip +0 -0
- package/.yarn/cache/vite-npm-3.0.2-a17ab24a12-10aebec0df.zip +0 -0
- package/.yarn/cache/which-npm-2.0.2-320ddf72f7-1a5c563d3c.zip +0 -0
- package/.yarn/cache/wide-align-npm-1.1.5-889d77e592-d5fc37cd56.zip +0 -0
- package/.yarn/cache/wrappy-npm-1.0.2-916de4d4b3-159da4805f.zip +0 -0
- package/.yarn/cache/yallist-npm-4.0.0-b493d9e907-343617202a.zip +0 -0
- package/.yarn/install-state.gz +0 -0
- package/DEVELOPER.md +0 -118
- package/lib/index.97024df8.js +0 -80165
- package/lib/index.d8c1e37f.cjs +0 -80165
- package/src/blocks/button/button.jsx +0 -27
- package/src/blocks/button/component-info.js +0 -41
- package/src/blocks/columns/columns.jsx +0 -102
- package/src/blocks/columns/component-info.js +0 -242
- package/src/blocks/custom-code/component-info.js +0 -31
- package/src/blocks/custom-code/custom-code.jsx +0 -71
- package/src/blocks/embed/component-info.js +0 -44
- package/src/blocks/embed/embed.jsx +0 -63
- package/src/blocks/embed/helpers.js +0 -9
- package/src/blocks/form/component-info.js +0 -262
- package/src/blocks/form/form.jsx +0 -303
- package/src/blocks/fragment/component-info.js +0 -11
- package/src/blocks/fragment/fragment.jsx +0 -11
- package/src/blocks/image/component-info.js +0 -151
- package/src/blocks/image/image.helpers.js +0 -48
- package/src/blocks/image/image.jsx +0 -110
- package/src/blocks/img/component-info.js +0 -20
- package/src/blocks/img/img.jsx +0 -19
- package/src/blocks/input/component-info.js +0 -74
- package/src/blocks/input/input.jsx +0 -21
- package/src/blocks/raw-text/component-info.js +0 -16
- package/src/blocks/raw-text/raw-text.jsx +0 -12
- package/src/blocks/section/component-info.js +0 -49
- package/src/blocks/section/section.jsx +0 -20
- package/src/blocks/select/component-info.js +0 -59
- package/src/blocks/select/select.jsx +0 -24
- package/src/blocks/submit-button/component-info.js +0 -28
- package/src/blocks/submit-button/submit-button.jsx +0 -11
- package/src/blocks/symbol/component-info.js +0 -43
- package/src/blocks/symbol/symbol.jsx +0 -78
- package/src/blocks/text/component-info.js +0 -24
- package/src/blocks/text/text.jsx +0 -7
- package/src/blocks/textarea/component-info.js +0 -47
- package/src/blocks/textarea/textarea.jsx +0 -15
- package/src/blocks/util.js +0 -7
- package/src/blocks/video/component-info.js +0 -106
- package/src/blocks/video/video.jsx +0 -53
- package/src/components/render-block/block-styles.jsx +0 -60
- package/src/components/render-block/render-block.helpers.js +0 -23
- package/src/components/render-block/render-block.jsx +0 -220
- package/src/components/render-block/render-component.jsx +0 -35
- package/src/components/render-block/render-repeated-block.jsx +0 -40
- package/src/components/render-block/types.js +0 -0
- package/src/components/render-blocks.jsx +0 -93
- package/src/components/render-content/components/render-styles.jsx +0 -76
- package/src/components/render-content/index.js +0 -4
- package/src/components/render-content/render-content.jsx +0 -368
- package/src/components/render-inlined-styles.jsx +0 -26
- package/src/constants/builder-registered-components.js +0 -51
- package/src/constants/device-sizes.js +0 -21
- package/src/constants/target.js +0 -4
- package/src/context/builder.context.js +0 -5
- package/src/functions/camel-to-kebab-case.js +0 -4
- package/src/functions/convert-style-object.js +0 -6
- package/src/functions/evaluate.js +0 -28
- package/src/functions/event-handler-name.js +0 -7
- package/src/functions/get-block-actions.js +0 -23
- package/src/functions/get-block-component-options.js +0 -28
- package/src/functions/get-block-properties.js +0 -29
- package/src/functions/get-block-styles.js +0 -34
- package/src/functions/get-block-tag.js +0 -6
- package/src/functions/get-builder-search-params/fn.test.js +0 -13
- package/src/functions/get-builder-search-params/index.js +0 -33
- package/src/functions/get-content/ab-testing.js +0 -38
- package/src/functions/get-content/fn.test.js +0 -31
- package/src/functions/get-content/index.js +0 -96
- package/src/functions/get-content/types.js +0 -0
- package/src/functions/get-fetch.js +0 -34
- package/src/functions/get-global-this.js +0 -18
- package/src/functions/get-processed-block.js +0 -57
- package/src/functions/get-processed-block.test.js +0 -32
- package/src/functions/if-target.js +0 -15
- package/src/functions/is-browser.js +0 -6
- package/src/functions/is-editing.js +0 -7
- package/src/functions/is-iframe.js +0 -7
- package/src/functions/is-previewing.js +0 -14
- package/src/functions/mark-mutable.js +0 -14
- package/src/functions/on-change.js +0 -27
- package/src/functions/on-change.test.js +0 -19
- package/src/functions/register-component.js +0 -72
- package/src/functions/register.js +0 -29
- package/src/functions/sanitize-styles.js +0 -5
- package/src/functions/set-editor-settings.js +0 -15
- package/src/functions/set.js +0 -11
- package/src/functions/set.test.js +0 -16
- package/src/functions/track.js +0 -115
- package/src/functions/transform-block.js +0 -6
- package/src/helpers/cookie.js +0 -59
- package/src/helpers/css.js +0 -12
- package/src/helpers/flatten.js +0 -34
- package/src/helpers/localStorage.js +0 -34
- package/src/helpers/nullable.js +0 -4
- package/src/helpers/sessionId.js +0 -26
- package/src/helpers/time.js +0 -5
- package/src/helpers/url.js +0 -10
- package/src/helpers/url.test.js +0 -15
- package/src/helpers/uuid.js +0 -13
- package/src/helpers/visitorId.js +0 -33
- package/src/index-helpers/blocks-exports.js +0 -22
- package/src/index-helpers/top-of-file.js +0 -4
- package/src/index.js +0 -10
- package/src/scripts/init-editing.js +0 -79
- package/src/types/builder-block.js +0 -0
- package/src/types/builder-content.js +0 -0
- package/src/types/can-track.js +0 -0
- package/src/types/components.js +0 -0
- package/src/types/deep-partial.js +0 -0
- package/src/types/element.js +0 -0
- package/src/types/targets.js +0 -0
- package/src/types/typescript.js +0 -0
- package/tsconfig.json +0 -110
- package/types.d.ts +0 -8
- package/vite.config.ts +0 -17
package/lib/index.qwik.cjs
CHANGED
|
@@ -2,6 +2,24 @@
|
|
|
2
2
|
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
|
3
3
|
const qwik = require("@builder.io/qwik");
|
|
4
4
|
const jsxRuntime = require("@builder.io/qwik/jsx-runtime");
|
|
5
|
+
function _interopNamespace(e) {
|
|
6
|
+
if (e && e.__esModule)
|
|
7
|
+
return e;
|
|
8
|
+
const n = Object.create(null, { [Symbol.toStringTag]: { value: "Module" } });
|
|
9
|
+
if (e) {
|
|
10
|
+
for (const k in e) {
|
|
11
|
+
if (k !== "default") {
|
|
12
|
+
const d = Object.getOwnPropertyDescriptor(e, k);
|
|
13
|
+
Object.defineProperty(n, k, d.get ? d : {
|
|
14
|
+
enumerable: true,
|
|
15
|
+
get: () => e[k]
|
|
16
|
+
});
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
n.default = e;
|
|
21
|
+
return Object.freeze(n);
|
|
22
|
+
}
|
|
5
23
|
const TARGET = "qwik";
|
|
6
24
|
function isBrowser() {
|
|
7
25
|
return typeof window !== "undefined" && typeof document !== "undefined";
|
|
@@ -64,9 +82,8 @@ const registerInsertMenu = () => {
|
|
|
64
82
|
});
|
|
65
83
|
};
|
|
66
84
|
const setupBrowserForEditing = () => {
|
|
67
|
-
var _a;
|
|
68
85
|
if (isBrowser()) {
|
|
69
|
-
|
|
86
|
+
window.parent?.postMessage({
|
|
70
87
|
type: "builder.sdkInfo",
|
|
71
88
|
data: {
|
|
72
89
|
target: TARGET,
|
|
@@ -74,7 +91,6 @@ const setupBrowserForEditing = () => {
|
|
|
74
91
|
}
|
|
75
92
|
}, "*");
|
|
76
93
|
window.addEventListener("message", ({ data }) => {
|
|
77
|
-
var _a2, _b;
|
|
78
94
|
if (data)
|
|
79
95
|
switch (data.type) {
|
|
80
96
|
case "builder.evaluate": {
|
|
@@ -90,7 +106,7 @@ const setupBrowserForEditing = () => {
|
|
|
90
106
|
error = err;
|
|
91
107
|
}
|
|
92
108
|
if (error)
|
|
93
|
-
|
|
109
|
+
window.parent?.postMessage({
|
|
94
110
|
type: "builder.evaluateError",
|
|
95
111
|
data: {
|
|
96
112
|
id,
|
|
@@ -99,8 +115,7 @@ const setupBrowserForEditing = () => {
|
|
|
99
115
|
}, "*");
|
|
100
116
|
else if (result && typeof result.then === "function")
|
|
101
117
|
result.then((finalResult) => {
|
|
102
|
-
|
|
103
|
-
(_a3 = window.parent) == null || _a3.postMessage({
|
|
118
|
+
window.parent?.postMessage({
|
|
104
119
|
type: "builder.evaluateResult",
|
|
105
120
|
data: {
|
|
106
121
|
id,
|
|
@@ -109,7 +124,7 @@ const setupBrowserForEditing = () => {
|
|
|
109
124
|
}, "*");
|
|
110
125
|
}).catch(console.error);
|
|
111
126
|
else
|
|
112
|
-
|
|
127
|
+
window.parent?.postMessage({
|
|
113
128
|
type: "builder.evaluateResult",
|
|
114
129
|
data: {
|
|
115
130
|
result,
|
|
@@ -122,7 +137,7 @@ const setupBrowserForEditing = () => {
|
|
|
122
137
|
});
|
|
123
138
|
}
|
|
124
139
|
};
|
|
125
|
-
|
|
140
|
+
const BuilderContext = qwik.createContext("Builder");
|
|
126
141
|
function isIframe() {
|
|
127
142
|
return isBrowser() && window.self !== window.top;
|
|
128
143
|
}
|
|
@@ -175,37 +190,18 @@ const set = (obj, _path, value) => {
|
|
|
175
190
|
function transformBlock(block) {
|
|
176
191
|
return block;
|
|
177
192
|
}
|
|
178
|
-
var __defProp$8 = Object.defineProperty;
|
|
179
|
-
var __defProps$6 = Object.defineProperties;
|
|
180
|
-
var __getOwnPropDescs$6 = Object.getOwnPropertyDescriptors;
|
|
181
|
-
var __getOwnPropSymbols$8 = Object.getOwnPropertySymbols;
|
|
182
|
-
var __hasOwnProp$8 = Object.prototype.hasOwnProperty;
|
|
183
|
-
var __propIsEnum$8 = Object.prototype.propertyIsEnumerable;
|
|
184
|
-
var __defNormalProp$8 = (obj, key, value) => key in obj ? __defProp$8(obj, key, {
|
|
185
|
-
enumerable: true,
|
|
186
|
-
configurable: true,
|
|
187
|
-
writable: true,
|
|
188
|
-
value
|
|
189
|
-
}) : obj[key] = value;
|
|
190
|
-
var __spreadValues$8 = (a, b) => {
|
|
191
|
-
for (var prop in b || (b = {}))
|
|
192
|
-
if (__hasOwnProp$8.call(b, prop))
|
|
193
|
-
__defNormalProp$8(a, prop, b[prop]);
|
|
194
|
-
if (__getOwnPropSymbols$8) {
|
|
195
|
-
for (var prop of __getOwnPropSymbols$8(b))
|
|
196
|
-
if (__propIsEnum$8.call(b, prop))
|
|
197
|
-
__defNormalProp$8(a, prop, b[prop]);
|
|
198
|
-
}
|
|
199
|
-
return a;
|
|
200
|
-
};
|
|
201
|
-
var __spreadProps$6 = (a, b) => __defProps$6(a, __getOwnPropDescs$6(b));
|
|
202
193
|
const evaluateBindings = ({ block, context, state }) => {
|
|
203
194
|
if (!block.bindings)
|
|
204
195
|
return block;
|
|
205
|
-
const copied =
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
196
|
+
const copied = {
|
|
197
|
+
...block,
|
|
198
|
+
properties: {
|
|
199
|
+
...block.properties
|
|
200
|
+
},
|
|
201
|
+
actions: {
|
|
202
|
+
...block.actions
|
|
203
|
+
}
|
|
204
|
+
};
|
|
209
205
|
for (const binding in block.bindings) {
|
|
210
206
|
const expression = block.bindings[binding];
|
|
211
207
|
const value = evaluate({
|
|
@@ -240,7 +236,9 @@ const tagName$1 = function tagName(props, state) {
|
|
|
240
236
|
return "style";
|
|
241
237
|
};
|
|
242
238
|
const RenderInlinedStyles = (props) => {
|
|
243
|
-
const state = {
|
|
239
|
+
const state = {
|
|
240
|
+
tagName: ""
|
|
241
|
+
};
|
|
244
242
|
state.tagName = tagName$1();
|
|
245
243
|
return /* @__PURE__ */ jsxRuntime.jsx(jsxRuntime.Fragment, {
|
|
246
244
|
children: /* @__PURE__ */ jsxRuntime.jsx(state.tagName, {
|
|
@@ -285,9 +283,8 @@ function capitalizeFirstLetter(string) {
|
|
|
285
283
|
}
|
|
286
284
|
const getEventHandlerName = (key) => `on${capitalizeFirstLetter(key)}`;
|
|
287
285
|
function getBlockActions(options) {
|
|
288
|
-
var _a;
|
|
289
286
|
const obj = {};
|
|
290
|
-
const optionActions =
|
|
287
|
+
const optionActions = options.block.actions ?? {};
|
|
291
288
|
for (const key in optionActions) {
|
|
292
289
|
if (!optionActions.hasOwnProperty(key))
|
|
293
290
|
continue;
|
|
@@ -301,105 +298,39 @@ function getBlockActions(options) {
|
|
|
301
298
|
}
|
|
302
299
|
return obj;
|
|
303
300
|
}
|
|
304
|
-
var __defProp$7 = Object.defineProperty;
|
|
305
|
-
var __defProps$5 = Object.defineProperties;
|
|
306
|
-
var __getOwnPropDescs$5 = Object.getOwnPropertyDescriptors;
|
|
307
|
-
var __getOwnPropSymbols$7 = Object.getOwnPropertySymbols;
|
|
308
|
-
var __hasOwnProp$7 = Object.prototype.hasOwnProperty;
|
|
309
|
-
var __propIsEnum$7 = Object.prototype.propertyIsEnumerable;
|
|
310
|
-
var __defNormalProp$7 = (obj, key, value) => key in obj ? __defProp$7(obj, key, {
|
|
311
|
-
enumerable: true,
|
|
312
|
-
configurable: true,
|
|
313
|
-
writable: true,
|
|
314
|
-
value
|
|
315
|
-
}) : obj[key] = value;
|
|
316
|
-
var __spreadValues$7 = (a, b) => {
|
|
317
|
-
for (var prop in b || (b = {}))
|
|
318
|
-
if (__hasOwnProp$7.call(b, prop))
|
|
319
|
-
__defNormalProp$7(a, prop, b[prop]);
|
|
320
|
-
if (__getOwnPropSymbols$7) {
|
|
321
|
-
for (var prop of __getOwnPropSymbols$7(b))
|
|
322
|
-
if (__propIsEnum$7.call(b, prop))
|
|
323
|
-
__defNormalProp$7(a, prop, b[prop]);
|
|
324
|
-
}
|
|
325
|
-
return a;
|
|
326
|
-
};
|
|
327
|
-
var __spreadProps$5 = (a, b) => __defProps$5(a, __getOwnPropDescs$5(b));
|
|
328
301
|
function getBlockComponentOptions(block) {
|
|
329
|
-
|
|
330
|
-
|
|
302
|
+
return {
|
|
303
|
+
...block.component?.options,
|
|
304
|
+
...block.options,
|
|
331
305
|
builderBlock: block
|
|
332
|
-
}
|
|
306
|
+
};
|
|
333
307
|
}
|
|
334
|
-
var __defProp$6 = Object.defineProperty;
|
|
335
|
-
var __defProps$4 = Object.defineProperties;
|
|
336
|
-
var __getOwnPropDescs$4 = Object.getOwnPropertyDescriptors;
|
|
337
|
-
var __getOwnPropSymbols$6 = Object.getOwnPropertySymbols;
|
|
338
|
-
var __hasOwnProp$6 = Object.prototype.hasOwnProperty;
|
|
339
|
-
var __propIsEnum$6 = Object.prototype.propertyIsEnumerable;
|
|
340
|
-
var __defNormalProp$6 = (obj, key, value) => key in obj ? __defProp$6(obj, key, {
|
|
341
|
-
enumerable: true,
|
|
342
|
-
configurable: true,
|
|
343
|
-
writable: true,
|
|
344
|
-
value
|
|
345
|
-
}) : obj[key] = value;
|
|
346
|
-
var __spreadValues$6 = (a, b) => {
|
|
347
|
-
for (var prop in b || (b = {}))
|
|
348
|
-
if (__hasOwnProp$6.call(b, prop))
|
|
349
|
-
__defNormalProp$6(a, prop, b[prop]);
|
|
350
|
-
if (__getOwnPropSymbols$6) {
|
|
351
|
-
for (var prop of __getOwnPropSymbols$6(b))
|
|
352
|
-
if (__propIsEnum$6.call(b, prop))
|
|
353
|
-
__defNormalProp$6(a, prop, b[prop]);
|
|
354
|
-
}
|
|
355
|
-
return a;
|
|
356
|
-
};
|
|
357
|
-
var __spreadProps$4 = (a, b) => __defProps$4(a, __getOwnPropDescs$4(b));
|
|
358
308
|
function getBlockProperties(block) {
|
|
359
|
-
|
|
360
|
-
|
|
309
|
+
return {
|
|
310
|
+
...block.properties,
|
|
361
311
|
"builder-id": block.id,
|
|
362
312
|
class: [
|
|
363
313
|
block.id,
|
|
364
314
|
"builder-block",
|
|
365
315
|
block.class,
|
|
366
|
-
|
|
316
|
+
block.properties?.class
|
|
367
317
|
].filter(Boolean).join(" ")
|
|
368
|
-
}
|
|
318
|
+
};
|
|
369
319
|
}
|
|
370
320
|
const convertStyleObject = (obj) => {
|
|
371
321
|
return obj;
|
|
372
322
|
};
|
|
373
323
|
const sanitizeBlockStyles = (_styles) => {
|
|
374
324
|
};
|
|
375
|
-
var __defProp$5 = Object.defineProperty;
|
|
376
|
-
var __getOwnPropSymbols$5 = Object.getOwnPropertySymbols;
|
|
377
|
-
var __hasOwnProp$5 = Object.prototype.hasOwnProperty;
|
|
378
|
-
var __propIsEnum$5 = Object.prototype.propertyIsEnumerable;
|
|
379
|
-
var __defNormalProp$5 = (obj, key, value) => key in obj ? __defProp$5(obj, key, {
|
|
380
|
-
enumerable: true,
|
|
381
|
-
configurable: true,
|
|
382
|
-
writable: true,
|
|
383
|
-
value
|
|
384
|
-
}) : obj[key] = value;
|
|
385
|
-
var __spreadValues$5 = (a, b) => {
|
|
386
|
-
for (var prop in b || (b = {}))
|
|
387
|
-
if (__hasOwnProp$5.call(b, prop))
|
|
388
|
-
__defNormalProp$5(a, prop, b[prop]);
|
|
389
|
-
if (__getOwnPropSymbols$5) {
|
|
390
|
-
for (var prop of __getOwnPropSymbols$5(b))
|
|
391
|
-
if (__propIsEnum$5.call(b, prop))
|
|
392
|
-
__defNormalProp$5(a, prop, b[prop]);
|
|
393
|
-
}
|
|
394
|
-
return a;
|
|
395
|
-
};
|
|
396
325
|
function getBlockStyles(block) {
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
if (
|
|
402
|
-
styles[getMaxWidthQueryForSize("
|
|
326
|
+
const styles = {
|
|
327
|
+
...convertStyleObject(block.responsiveStyles?.large),
|
|
328
|
+
...block.styles
|
|
329
|
+
};
|
|
330
|
+
if (block.responsiveStyles?.medium)
|
|
331
|
+
styles[getMaxWidthQueryForSize("medium")] = convertStyleObject(block.responsiveStyles?.medium);
|
|
332
|
+
if (block.responsiveStyles?.small)
|
|
333
|
+
styles[getMaxWidthQueryForSize("small")] = convertStyleObject(block.responsiveStyles?.small);
|
|
403
334
|
sanitizeBlockStyles();
|
|
404
335
|
return styles;
|
|
405
336
|
}
|
|
@@ -440,13 +371,13 @@ const RenderComponent = (props) => {
|
|
|
440
371
|
children: props.componentRef ? /* @__PURE__ */ jsxRuntime.jsxs(props.componentRef, {
|
|
441
372
|
...markPropsMutable(props.componentOptions),
|
|
442
373
|
children: [
|
|
443
|
-
(props.blockChildren || []).map((child)
|
|
374
|
+
(props.blockChildren || []).map(function(child) {
|
|
444
375
|
return /* @__PURE__ */ jsxRuntime.jsx(RenderBlock$1, {
|
|
445
376
|
block: child,
|
|
446
377
|
context: props.context
|
|
447
378
|
}, "render-block-" + child.id);
|
|
448
379
|
}),
|
|
449
|
-
(props.blockChildren || []).map((child)
|
|
380
|
+
(props.blockChildren || []).map(function(child) {
|
|
450
381
|
return /* @__PURE__ */ jsxRuntime.jsx(BlockStyles$1, {
|
|
451
382
|
block: child,
|
|
452
383
|
context: props.context
|
|
@@ -458,7 +389,7 @@ const RenderComponent = (props) => {
|
|
|
458
389
|
};
|
|
459
390
|
const RenderComponent$1 = RenderComponent;
|
|
460
391
|
const RenderRepeatedBlock = /* @__PURE__ */ qwik.componentQrl(qwik.inlinedQrl((props) => {
|
|
461
|
-
qwik.useContextProvider(
|
|
392
|
+
qwik.useContextProvider(BuilderContext, qwik.useStore({
|
|
462
393
|
content: (() => {
|
|
463
394
|
return props.repeatContext.content;
|
|
464
395
|
})(),
|
|
@@ -479,7 +410,7 @@ const RenderRepeatedBlock = /* @__PURE__ */ qwik.componentQrl(qwik.inlinedQrl((p
|
|
|
479
410
|
block: props.block,
|
|
480
411
|
context: props.repeatContext
|
|
481
412
|
});
|
|
482
|
-
}, "
|
|
413
|
+
}, "RenderRepeatedBlock_component_nRyVBtbGKc8"));
|
|
483
414
|
const RenderRepeatedBlock$1 = RenderRepeatedBlock;
|
|
484
415
|
const component = function component2(props, state) {
|
|
485
416
|
const componentName = getProcessedBlock({
|
|
@@ -586,13 +517,15 @@ const repeatItemData = function repeatItemData2(props, state) {
|
|
|
586
517
|
return repeatArray;
|
|
587
518
|
};
|
|
588
519
|
const RenderBlock = (props) => {
|
|
589
|
-
const state = {
|
|
520
|
+
const state = {
|
|
521
|
+
tagName: ""
|
|
522
|
+
};
|
|
590
523
|
state.tagName = tagName2(props);
|
|
591
524
|
return /* @__PURE__ */ jsxRuntime.jsx(jsxRuntime.Fragment, {
|
|
592
525
|
children: shouldWrap(props) ? !isEmptyHtmlElement(tagName2(props)) ? /* @__PURE__ */ jsxRuntime.jsxs(state.tagName, {
|
|
593
526
|
...attributes(props),
|
|
594
527
|
children: [
|
|
595
|
-
repeatItemData(props) ? (repeatItemData(props) || []).map((data, index)
|
|
528
|
+
repeatItemData(props) ? (repeatItemData(props) || []).map(function(data, index) {
|
|
596
529
|
return /* @__PURE__ */ jsxRuntime.jsx(RenderRepeatedBlock$1, {
|
|
597
530
|
repeatContext: data.context,
|
|
598
531
|
block: data.block
|
|
@@ -601,13 +534,13 @@ const RenderBlock = (props) => {
|
|
|
601
534
|
!repeatItemData(props) ? /* @__PURE__ */ jsxRuntime.jsx(RenderComponent$1, {
|
|
602
535
|
...renderComponentProps(props)
|
|
603
536
|
}) : null,
|
|
604
|
-
(childrenWithoutParentComponent(props) || []).map((child)
|
|
537
|
+
(childrenWithoutParentComponent(props) || []).map(function(child) {
|
|
605
538
|
return /* @__PURE__ */ jsxRuntime.jsx(RenderBlock, {
|
|
606
539
|
block: child,
|
|
607
540
|
context: props.context
|
|
608
541
|
}, "render-block-" + child.id);
|
|
609
542
|
}),
|
|
610
|
-
(childrenWithoutParentComponent(props) || []).map((child)
|
|
543
|
+
(childrenWithoutParentComponent(props) || []).map(function(child) {
|
|
611
544
|
return /* @__PURE__ */ jsxRuntime.jsx(BlockStyles$1, {
|
|
612
545
|
block: child,
|
|
613
546
|
context: props.context
|
|
@@ -647,20 +580,19 @@ const onMouseEnter = function onMouseEnter2(props, state, builderContext) {
|
|
|
647
580
|
}, "*");
|
|
648
581
|
};
|
|
649
582
|
const RenderBlocks = /* @__PURE__ */ qwik.componentQrl(qwik.inlinedQrl((props) => {
|
|
650
|
-
qwik.useStylesScopedQrl(qwik.inlinedQrl(STYLES$3, "
|
|
651
|
-
const builderContext = qwik.useContext(
|
|
652
|
-
const state = {
|
|
583
|
+
qwik.useStylesScopedQrl(qwik.inlinedQrl(STYLES$3, "RenderBlocks_component_useStylesScoped_0XKYzaR059E"));
|
|
584
|
+
const builderContext = qwik.useContext(BuilderContext);
|
|
585
|
+
const state = {
|
|
586
|
+
tagName: ""
|
|
587
|
+
};
|
|
653
588
|
return /* @__PURE__ */ jsxRuntime.jsxs("div", {
|
|
654
589
|
class: className(props) + " div-RenderBlocks",
|
|
655
590
|
"builder-path": props.path,
|
|
656
591
|
"builder-parent-id": props.parent,
|
|
657
|
-
dataSet: {
|
|
658
|
-
class: className(props)
|
|
659
|
-
},
|
|
660
592
|
onClick$: qwik.inlinedQrl((event) => {
|
|
661
593
|
const [builderContext2, props2, state2] = qwik.useLexicalScope();
|
|
662
594
|
return onClick$1(props2);
|
|
663
|
-
}, "
|
|
595
|
+
}, "RenderBlocks_component_div_onClick_RzhhZa265Yg", [
|
|
664
596
|
builderContext,
|
|
665
597
|
props,
|
|
666
598
|
state
|
|
@@ -668,19 +600,19 @@ const RenderBlocks = /* @__PURE__ */ qwik.componentQrl(qwik.inlinedQrl((props) =
|
|
|
668
600
|
onMouseEnter$: qwik.inlinedQrl((event) => {
|
|
669
601
|
const [builderContext2, props2, state2] = qwik.useLexicalScope();
|
|
670
602
|
return onMouseEnter(props2);
|
|
671
|
-
}, "
|
|
603
|
+
}, "RenderBlocks_component_div_onMouseEnter_nG7I7RYG3JQ", [
|
|
672
604
|
builderContext,
|
|
673
605
|
props,
|
|
674
606
|
state
|
|
675
607
|
]),
|
|
676
608
|
children: [
|
|
677
|
-
props.blocks ? (props.blocks || []).map((block)
|
|
609
|
+
props.blocks ? (props.blocks || []).map(function(block) {
|
|
678
610
|
return /* @__PURE__ */ jsxRuntime.jsx(RenderBlock$1, {
|
|
679
611
|
block,
|
|
680
612
|
context: builderContext
|
|
681
613
|
}, "render-block-" + block.id);
|
|
682
614
|
}) : null,
|
|
683
|
-
props.blocks ? (props.blocks || []).map((block)
|
|
615
|
+
props.blocks ? (props.blocks || []).map(function(block) {
|
|
684
616
|
return /* @__PURE__ */ jsxRuntime.jsx(BlockStyles$1, {
|
|
685
617
|
block,
|
|
686
618
|
context: builderContext
|
|
@@ -688,7 +620,7 @@ const RenderBlocks = /* @__PURE__ */ qwik.componentQrl(qwik.inlinedQrl((props) =
|
|
|
688
620
|
}) : null
|
|
689
621
|
]
|
|
690
622
|
});
|
|
691
|
-
}, "
|
|
623
|
+
}, "RenderBlocks_component_MYUZ0j1uLsw"));
|
|
692
624
|
const RenderBlocks$1 = RenderBlocks;
|
|
693
625
|
const STYLES$3 = `.div-RenderBlocks {
|
|
694
626
|
display: flex;
|
|
@@ -732,12 +664,14 @@ const columnCssVars = function columnCssVars2(props, state) {
|
|
|
732
664
|
};
|
|
733
665
|
};
|
|
734
666
|
const Columns = /* @__PURE__ */ qwik.componentQrl(qwik.inlinedQrl((props) => {
|
|
735
|
-
qwik.useStylesScopedQrl(qwik.inlinedQrl(STYLES$2, "
|
|
736
|
-
const state = {
|
|
667
|
+
qwik.useStylesScopedQrl(qwik.inlinedQrl(STYLES$2, "Columns_component_useStylesScoped_s7JLZz7MCCQ"));
|
|
668
|
+
const state = {
|
|
669
|
+
tagName: ""
|
|
670
|
+
};
|
|
737
671
|
return /* @__PURE__ */ jsxRuntime.jsx("div", {
|
|
738
672
|
class: "builder-columns div-Columns",
|
|
739
673
|
style: columnsCssVars(props, state),
|
|
740
|
-
children: (props.columns || []).map((column, index)
|
|
674
|
+
children: (props.columns || []).map(function(column, index) {
|
|
741
675
|
return /* @__PURE__ */ jsxRuntime.jsx("div", {
|
|
742
676
|
class: "builder-column div-Columns-2",
|
|
743
677
|
style: {
|
|
@@ -753,7 +687,7 @@ const Columns = /* @__PURE__ */ qwik.componentQrl(qwik.inlinedQrl((props) => {
|
|
|
753
687
|
}, index);
|
|
754
688
|
})
|
|
755
689
|
});
|
|
756
|
-
}, "
|
|
690
|
+
}, "Columns_component_7yLj4bxdI6c"));
|
|
757
691
|
const Columns$1 = Columns;
|
|
758
692
|
const STYLES$2 = `.div-Columns {
|
|
759
693
|
display: flex;
|
|
@@ -777,7 +711,7 @@ function updateQueryParam(uri = "", key, value) {
|
|
|
777
711
|
return uri + separator + key + "=" + encodeURIComponent(value);
|
|
778
712
|
}
|
|
779
713
|
function getShopifyImageUrl(src, size) {
|
|
780
|
-
if (!src || !
|
|
714
|
+
if (!src || !src?.match(/cdn\.shopify\.com/) || !size)
|
|
781
715
|
return src;
|
|
782
716
|
if (size === "master")
|
|
783
717
|
return removeProtocol(src);
|
|
@@ -841,7 +775,7 @@ const webpSrcSet = function webpSrcSet2(props, state) {
|
|
|
841
775
|
return "";
|
|
842
776
|
};
|
|
843
777
|
const Image = /* @__PURE__ */ qwik.componentQrl(qwik.inlinedQrl((props) => {
|
|
844
|
-
qwik.useStylesScopedQrl(qwik.inlinedQrl(STYLES$1, "
|
|
778
|
+
qwik.useStylesScopedQrl(qwik.inlinedQrl(STYLES$1, "Image_component_useStylesScoped_fBMYiVf9fuU"));
|
|
845
779
|
return /* @__PURE__ */ jsxRuntime.jsxs("div", {
|
|
846
780
|
class: "div-Image",
|
|
847
781
|
children: [
|
|
@@ -849,7 +783,7 @@ const Image = /* @__PURE__ */ qwik.componentQrl(qwik.inlinedQrl((props) => {
|
|
|
849
783
|
children: [
|
|
850
784
|
webpSrcSet(props) ? /* @__PURE__ */ jsxRuntime.jsx("source", {
|
|
851
785
|
type: "image/webp",
|
|
852
|
-
|
|
786
|
+
srcSet: webpSrcSet(props)
|
|
853
787
|
}) : null,
|
|
854
788
|
/* @__PURE__ */ jsxRuntime.jsx("img", {
|
|
855
789
|
loading: "lazy",
|
|
@@ -861,11 +795,11 @@ const Image = /* @__PURE__ */ qwik.componentQrl(qwik.inlinedQrl((props) => {
|
|
|
861
795
|
},
|
|
862
796
|
class: "builder-image" + (props.className ? " " + props.className : "") + " img-Image",
|
|
863
797
|
src: props.image,
|
|
864
|
-
|
|
798
|
+
srcSet: srcSetToUse(props),
|
|
865
799
|
sizes: props.sizes
|
|
866
800
|
}),
|
|
867
801
|
/* @__PURE__ */ jsxRuntime.jsx("source", {
|
|
868
|
-
|
|
802
|
+
srcSet: srcSetToUse(props)
|
|
869
803
|
})
|
|
870
804
|
]
|
|
871
805
|
}),
|
|
@@ -882,7 +816,7 @@ const Image = /* @__PURE__ */ qwik.componentQrl(qwik.inlinedQrl((props) => {
|
|
|
882
816
|
}) : null
|
|
883
817
|
]
|
|
884
818
|
});
|
|
885
|
-
}, "
|
|
819
|
+
}, "Image_component_LRxDkFa1EfU"));
|
|
886
820
|
const Image$1 = Image;
|
|
887
821
|
const STYLES$1 = `.div-Image {
|
|
888
822
|
position: relative; }.img-Image {
|
|
@@ -905,11 +839,11 @@ left: 0;
|
|
|
905
839
|
width: 100%;
|
|
906
840
|
height: 100%; }`;
|
|
907
841
|
const Text = /* @__PURE__ */ qwik.componentQrl(qwik.inlinedQrl((props) => {
|
|
908
|
-
return /* @__PURE__ */ jsxRuntime.jsx("
|
|
842
|
+
return /* @__PURE__ */ jsxRuntime.jsx("span", {
|
|
909
843
|
class: "builder-text",
|
|
910
844
|
dangerouslySetInnerHTML: props.text
|
|
911
845
|
});
|
|
912
|
-
}, "
|
|
846
|
+
}, "Text_component_15p0cKUxgIE"));
|
|
913
847
|
const Text$1 = Text;
|
|
914
848
|
const videoProps = function videoProps2(props, state) {
|
|
915
849
|
return {
|
|
@@ -944,10 +878,10 @@ const Video = /* @__PURE__ */ qwik.componentQrl(qwik.inlinedQrl((props) => {
|
|
|
944
878
|
src: props.video || "no-src",
|
|
945
879
|
poster: props.posterImage
|
|
946
880
|
});
|
|
947
|
-
}, "
|
|
881
|
+
}, "Video_component_qdcTZflYyoQ"));
|
|
948
882
|
const Video$1 = Video;
|
|
949
883
|
const Button = /* @__PURE__ */ qwik.componentQrl(qwik.inlinedQrl((props) => {
|
|
950
|
-
qwik.useStylesScopedQrl(qwik.inlinedQrl(STYLES, "
|
|
884
|
+
qwik.useStylesScopedQrl(qwik.inlinedQrl(STYLES, "Button_component_useStylesScoped_a1JZ0Q0Q2Oc"));
|
|
951
885
|
return /* @__PURE__ */ jsxRuntime.jsx(qwik.Fragment, {
|
|
952
886
|
children: props.link ? /* @__PURE__ */ jsxRuntime.jsx("a", {
|
|
953
887
|
role: "button",
|
|
@@ -961,7 +895,7 @@ const Button = /* @__PURE__ */ qwik.componentQrl(qwik.inlinedQrl((props) => {
|
|
|
961
895
|
children: props.text
|
|
962
896
|
})
|
|
963
897
|
});
|
|
964
|
-
}, "
|
|
898
|
+
}, "Button_component_gJoMUICXoUQ"));
|
|
965
899
|
const Button$1 = Button;
|
|
966
900
|
const STYLES = `.button-Button {
|
|
967
901
|
all: unset; }`;
|
|
@@ -1260,7 +1194,7 @@ const FragmentComponent = /* @__PURE__ */ qwik.componentQrl(qwik.inlinedQrl((pro
|
|
|
1260
1194
|
return /* @__PURE__ */ jsxRuntime.jsx("span", {
|
|
1261
1195
|
children: /* @__PURE__ */ jsxRuntime.jsx(qwik.Slot, {})
|
|
1262
1196
|
});
|
|
1263
|
-
}, "
|
|
1197
|
+
}, "FragmentComponent_component_T0AypnadAK0"));
|
|
1264
1198
|
const Fragment = FragmentComponent;
|
|
1265
1199
|
const componentInfo$6 = {
|
|
1266
1200
|
name: "Image",
|
|
@@ -1465,7 +1399,7 @@ const SectionComponent = /* @__PURE__ */ qwik.componentQrl(qwik.inlinedQrl((prop
|
|
|
1465
1399
|
})(),
|
|
1466
1400
|
children: /* @__PURE__ */ jsxRuntime.jsx(qwik.Slot, {})
|
|
1467
1401
|
});
|
|
1468
|
-
}, "
|
|
1402
|
+
}, "SectionComponent_component_ZWF9iD5WeLg"));
|
|
1469
1403
|
const Section = SectionComponent;
|
|
1470
1404
|
const componentInfo$4 = {
|
|
1471
1405
|
name: "Symbol",
|
|
@@ -1707,9 +1641,9 @@ const findAndRunScripts = function findAndRunScripts2(props, state, elem) {
|
|
|
1707
1641
|
const Embed = /* @__PURE__ */ qwik.componentQrl(qwik.inlinedQrl((props) => {
|
|
1708
1642
|
const elem = qwik.useRef();
|
|
1709
1643
|
const state = qwik.useStore({
|
|
1644
|
+
ranInitFn: false,
|
|
1710
1645
|
scriptsInserted: [],
|
|
1711
|
-
scriptsRun: []
|
|
1712
|
-
ranInitFn: false
|
|
1646
|
+
scriptsRun: []
|
|
1713
1647
|
});
|
|
1714
1648
|
qwik.useWatchQrl(qwik.inlinedQrl(({ track: track2 }) => {
|
|
1715
1649
|
const [elem2, props2, state2] = qwik.useLexicalScope();
|
|
@@ -1718,7 +1652,7 @@ const Embed = /* @__PURE__ */ qwik.componentQrl(qwik.inlinedQrl((props) => {
|
|
|
1718
1652
|
state2.ranInitFn = true;
|
|
1719
1653
|
findAndRunScripts(props2, state2, elem2);
|
|
1720
1654
|
}
|
|
1721
|
-
}, "
|
|
1655
|
+
}, "Embed_component_useWatch_AxgWjrHdlAI", [
|
|
1722
1656
|
elem,
|
|
1723
1657
|
props,
|
|
1724
1658
|
state
|
|
@@ -1728,7 +1662,7 @@ const Embed = /* @__PURE__ */ qwik.componentQrl(qwik.inlinedQrl((props) => {
|
|
|
1728
1662
|
ref: elem,
|
|
1729
1663
|
dangerouslySetInnerHTML: props.content
|
|
1730
1664
|
});
|
|
1731
|
-
}, "
|
|
1665
|
+
}, "Embed_component_Uji08ORjXbE"));
|
|
1732
1666
|
const embed = Embed;
|
|
1733
1667
|
const ImgComponent = /* @__PURE__ */ qwik.componentQrl(qwik.inlinedQrl((props) => {
|
|
1734
1668
|
return /* @__PURE__ */ jsxRuntime.jsx("img", {
|
|
@@ -1740,7 +1674,7 @@ const ImgComponent = /* @__PURE__ */ qwik.componentQrl(qwik.inlinedQrl((props) =
|
|
|
1740
1674
|
src: props.imgSrc || props.image,
|
|
1741
1675
|
...props.attributes
|
|
1742
1676
|
}, isEditing() && props.imgSrc || "default-key");
|
|
1743
|
-
}, "
|
|
1677
|
+
}, "ImgComponent_component_FXvIDBSffO8"));
|
|
1744
1678
|
const Img = ImgComponent;
|
|
1745
1679
|
const componentInfo2 = {
|
|
1746
1680
|
name: "Raw:Img",
|
|
@@ -1764,83 +1698,48 @@ const componentInfo2 = {
|
|
|
1764
1698
|
noWrap: true,
|
|
1765
1699
|
static: true
|
|
1766
1700
|
};
|
|
1767
|
-
var __defProp$4 = Object.defineProperty;
|
|
1768
|
-
var __getOwnPropSymbols$4 = Object.getOwnPropertySymbols;
|
|
1769
|
-
var __hasOwnProp$4 = Object.prototype.hasOwnProperty;
|
|
1770
|
-
var __propIsEnum$4 = Object.prototype.propertyIsEnumerable;
|
|
1771
|
-
var __defNormalProp$4 = (obj, key, value) => key in obj ? __defProp$4(obj, key, {
|
|
1772
|
-
enumerable: true,
|
|
1773
|
-
configurable: true,
|
|
1774
|
-
writable: true,
|
|
1775
|
-
value
|
|
1776
|
-
}) : obj[key] = value;
|
|
1777
|
-
var __spreadValues$4 = (a, b) => {
|
|
1778
|
-
for (var prop in b || (b = {}))
|
|
1779
|
-
if (__hasOwnProp$4.call(b, prop))
|
|
1780
|
-
__defNormalProp$4(a, prop, b[prop]);
|
|
1781
|
-
if (__getOwnPropSymbols$4) {
|
|
1782
|
-
for (var prop of __getOwnPropSymbols$4(b))
|
|
1783
|
-
if (__propIsEnum$4.call(b, prop))
|
|
1784
|
-
__defNormalProp$4(a, prop, b[prop]);
|
|
1785
|
-
}
|
|
1786
|
-
return a;
|
|
1787
|
-
};
|
|
1788
1701
|
const getDefaultRegisteredComponents = () => [
|
|
1789
|
-
|
|
1790
|
-
component: Columns$1
|
|
1791
|
-
|
|
1792
|
-
|
|
1793
|
-
|
|
1794
|
-
|
|
1795
|
-
|
|
1796
|
-
|
|
1797
|
-
|
|
1798
|
-
|
|
1799
|
-
|
|
1800
|
-
},
|
|
1801
|
-
|
|
1802
|
-
component:
|
|
1803
|
-
|
|
1804
|
-
|
|
1805
|
-
|
|
1806
|
-
|
|
1807
|
-
|
|
1808
|
-
|
|
1809
|
-
|
|
1810
|
-
|
|
1811
|
-
|
|
1812
|
-
},
|
|
1813
|
-
|
|
1814
|
-
component:
|
|
1815
|
-
|
|
1816
|
-
|
|
1817
|
-
|
|
1818
|
-
|
|
1819
|
-
|
|
1820
|
-
|
|
1821
|
-
|
|
1822
|
-
|
|
1823
|
-
|
|
1824
|
-
|
|
1825
|
-
|
|
1826
|
-
|
|
1827
|
-
|
|
1828
|
-
configurable: true,
|
|
1829
|
-
writable: true,
|
|
1830
|
-
value
|
|
1831
|
-
}) : obj[key] = value;
|
|
1832
|
-
var __spreadValues$3 = (a, b) => {
|
|
1833
|
-
for (var prop in b || (b = {}))
|
|
1834
|
-
if (__hasOwnProp$3.call(b, prop))
|
|
1835
|
-
__defNormalProp$3(a, prop, b[prop]);
|
|
1836
|
-
if (__getOwnPropSymbols$3) {
|
|
1837
|
-
for (var prop of __getOwnPropSymbols$3(b))
|
|
1838
|
-
if (__propIsEnum$3.call(b, prop))
|
|
1839
|
-
__defNormalProp$3(a, prop, b[prop]);
|
|
1702
|
+
{
|
|
1703
|
+
component: Columns$1,
|
|
1704
|
+
...componentInfo$8
|
|
1705
|
+
},
|
|
1706
|
+
{
|
|
1707
|
+
component: Image$1,
|
|
1708
|
+
...componentInfo$6
|
|
1709
|
+
},
|
|
1710
|
+
{
|
|
1711
|
+
component: Img,
|
|
1712
|
+
...componentInfo2
|
|
1713
|
+
},
|
|
1714
|
+
{
|
|
1715
|
+
component: Text$1,
|
|
1716
|
+
...componentInfo$3
|
|
1717
|
+
},
|
|
1718
|
+
{
|
|
1719
|
+
component: Video$1,
|
|
1720
|
+
...componentInfo$2
|
|
1721
|
+
},
|
|
1722
|
+
{
|
|
1723
|
+
component: Symbol$2,
|
|
1724
|
+
...componentInfo$4
|
|
1725
|
+
},
|
|
1726
|
+
{
|
|
1727
|
+
component: Button$1,
|
|
1728
|
+
...componentInfo$9
|
|
1729
|
+
},
|
|
1730
|
+
{
|
|
1731
|
+
component: Section,
|
|
1732
|
+
...componentInfo$5
|
|
1733
|
+
},
|
|
1734
|
+
{
|
|
1735
|
+
component: Fragment,
|
|
1736
|
+
...componentInfo$7
|
|
1737
|
+
},
|
|
1738
|
+
{
|
|
1739
|
+
component: embed,
|
|
1740
|
+
...componentInfo$1
|
|
1840
1741
|
}
|
|
1841
|
-
|
|
1842
|
-
};
|
|
1843
|
-
var __spreadProps$3 = (a, b) => __defProps$3(a, __getOwnPropDescs$3(b));
|
|
1742
|
+
];
|
|
1844
1743
|
function flatten(object, path = null, separator = ".") {
|
|
1845
1744
|
return Object.keys(object).reduce((acc, key) => {
|
|
1846
1745
|
const value = object[key];
|
|
@@ -1853,9 +1752,13 @@ function flatten(object, path = null, separator = ".") {
|
|
|
1853
1752
|
value !== null,
|
|
1854
1753
|
!(Array.isArray(value) && value.length === 0)
|
|
1855
1754
|
].every(Boolean);
|
|
1856
|
-
return isObject ?
|
|
1755
|
+
return isObject ? {
|
|
1756
|
+
...acc,
|
|
1757
|
+
...flatten(value, newPath, separator)
|
|
1758
|
+
} : {
|
|
1759
|
+
...acc,
|
|
1857
1760
|
[newPath]: value
|
|
1858
|
-
}
|
|
1761
|
+
};
|
|
1859
1762
|
}, {});
|
|
1860
1763
|
}
|
|
1861
1764
|
const BUILDER_SEARCHPARAMS_PREFIX = "builder.";
|
|
@@ -1894,35 +1797,14 @@ function getGlobalThis() {
|
|
|
1894
1797
|
return self;
|
|
1895
1798
|
return null;
|
|
1896
1799
|
}
|
|
1897
|
-
|
|
1898
|
-
|
|
1899
|
-
|
|
1900
|
-
|
|
1901
|
-
|
|
1902
|
-
|
|
1903
|
-
|
|
1904
|
-
|
|
1905
|
-
};
|
|
1906
|
-
var rejected = (value) => {
|
|
1907
|
-
try {
|
|
1908
|
-
step(generator.throw(value));
|
|
1909
|
-
} catch (e) {
|
|
1910
|
-
reject(e);
|
|
1911
|
-
}
|
|
1912
|
-
};
|
|
1913
|
-
var step = (x) => x.done ? resolve(x.value) : Promise.resolve(x.value).then(fulfilled, rejected);
|
|
1914
|
-
step((generator = generator.apply(__this, __arguments)).next());
|
|
1915
|
-
});
|
|
1916
|
-
};
|
|
1917
|
-
function getFetch() {
|
|
1918
|
-
return __async$2(this, null, function* () {
|
|
1919
|
-
const globalFetch = getGlobalThis().fetch;
|
|
1920
|
-
if (typeof globalFetch === "undefined" && typeof global !== "undefined") {
|
|
1921
|
-
const nodeFetch = Promise.resolve().then(() => require("./index.d8c1e37f.cjs")).then((d) => d.default);
|
|
1922
|
-
return nodeFetch.default || nodeFetch;
|
|
1923
|
-
}
|
|
1924
|
-
return globalFetch.default || globalFetch;
|
|
1925
|
-
});
|
|
1800
|
+
const NODE_FETCH_URL = () => "node-fetch";
|
|
1801
|
+
async function getFetch() {
|
|
1802
|
+
const globalFetch = getGlobalThis().fetch;
|
|
1803
|
+
if (typeof globalFetch === "undefined" && typeof global !== "undefined") {
|
|
1804
|
+
const nodeFetch = Promise.resolve().then(() => /* @__PURE__ */ _interopNamespace(require(NODE_FETCH_URL()))).then((d) => d.default);
|
|
1805
|
+
return nodeFetch.default || nodeFetch;
|
|
1806
|
+
}
|
|
1807
|
+
return globalFetch.default || globalFetch;
|
|
1926
1808
|
}
|
|
1927
1809
|
const handleABTesting = (item, testGroups) => {
|
|
1928
1810
|
if (item.variations && Object.keys(item.variations).length) {
|
|
@@ -1958,86 +1840,42 @@ const handleABTesting = (item, testGroups) => {
|
|
|
1958
1840
|
}
|
|
1959
1841
|
}
|
|
1960
1842
|
};
|
|
1961
|
-
var __defProp$2 = Object.defineProperty;
|
|
1962
|
-
var __defProps$2 = Object.defineProperties;
|
|
1963
|
-
var __getOwnPropDescs$2 = Object.getOwnPropertyDescriptors;
|
|
1964
|
-
var __getOwnPropSymbols$2 = Object.getOwnPropertySymbols;
|
|
1965
|
-
var __hasOwnProp$2 = Object.prototype.hasOwnProperty;
|
|
1966
|
-
var __propIsEnum$2 = Object.prototype.propertyIsEnumerable;
|
|
1967
|
-
var __defNormalProp$2 = (obj, key, value) => key in obj ? __defProp$2(obj, key, {
|
|
1968
|
-
enumerable: true,
|
|
1969
|
-
configurable: true,
|
|
1970
|
-
writable: true,
|
|
1971
|
-
value
|
|
1972
|
-
}) : obj[key] = value;
|
|
1973
|
-
var __spreadValues$2 = (a, b) => {
|
|
1974
|
-
for (var prop in b || (b = {}))
|
|
1975
|
-
if (__hasOwnProp$2.call(b, prop))
|
|
1976
|
-
__defNormalProp$2(a, prop, b[prop]);
|
|
1977
|
-
if (__getOwnPropSymbols$2) {
|
|
1978
|
-
for (var prop of __getOwnPropSymbols$2(b))
|
|
1979
|
-
if (__propIsEnum$2.call(b, prop))
|
|
1980
|
-
__defNormalProp$2(a, prop, b[prop]);
|
|
1981
|
-
}
|
|
1982
|
-
return a;
|
|
1983
|
-
};
|
|
1984
|
-
var __spreadProps$2 = (a, b) => __defProps$2(a, __getOwnPropDescs$2(b));
|
|
1985
|
-
var __async$1 = (__this, __arguments, generator) => {
|
|
1986
|
-
return new Promise((resolve, reject) => {
|
|
1987
|
-
var fulfilled = (value) => {
|
|
1988
|
-
try {
|
|
1989
|
-
step(generator.next(value));
|
|
1990
|
-
} catch (e) {
|
|
1991
|
-
reject(e);
|
|
1992
|
-
}
|
|
1993
|
-
};
|
|
1994
|
-
var rejected = (value) => {
|
|
1995
|
-
try {
|
|
1996
|
-
step(generator.throw(value));
|
|
1997
|
-
} catch (e) {
|
|
1998
|
-
reject(e);
|
|
1999
|
-
}
|
|
2000
|
-
};
|
|
2001
|
-
var step = (x) => x.done ? resolve(x.value) : Promise.resolve(x.value).then(fulfilled, rejected);
|
|
2002
|
-
step((generator = generator.apply(__this, __arguments)).next());
|
|
2003
|
-
});
|
|
2004
|
-
};
|
|
2005
1843
|
const fetch$ = getFetch();
|
|
2006
|
-
function getContent(options) {
|
|
2007
|
-
return
|
|
2008
|
-
|
|
2009
|
-
|
|
2010
|
-
|
|
2011
|
-
});
|
|
1844
|
+
async function getContent(options) {
|
|
1845
|
+
return (await getAllContent({
|
|
1846
|
+
...options,
|
|
1847
|
+
limit: 1
|
|
1848
|
+
})).results[0] || null;
|
|
2012
1849
|
}
|
|
2013
1850
|
const generateContentUrl = (options) => {
|
|
2014
1851
|
const { limit = 30, userAttributes, query, noTraverse = false, model, apiKey } = options;
|
|
2015
1852
|
const url = new URL(`https://cdn.builder.io/api/v2/content/${model}?apiKey=${apiKey}&limit=${limit}&noTraverse=${noTraverse}`);
|
|
2016
|
-
const queryOptions =
|
|
1853
|
+
const queryOptions = {
|
|
1854
|
+
...getBuilderSearchParamsFromWindow(),
|
|
1855
|
+
...normalizeSearchParams(options.options || {})
|
|
1856
|
+
};
|
|
2017
1857
|
const flattened = flatten(queryOptions);
|
|
2018
1858
|
for (const key in flattened)
|
|
2019
1859
|
url.searchParams.set(key, String(flattened[key]));
|
|
2020
1860
|
if (userAttributes)
|
|
2021
1861
|
url.searchParams.set("userAttributes", JSON.stringify(userAttributes));
|
|
2022
1862
|
if (query) {
|
|
2023
|
-
const
|
|
1863
|
+
const flattened1 = flatten({
|
|
2024
1864
|
query
|
|
2025
1865
|
});
|
|
2026
|
-
for (const key1 in
|
|
2027
|
-
url.searchParams.set(key1, JSON.stringify(
|
|
1866
|
+
for (const key1 in flattened1)
|
|
1867
|
+
url.searchParams.set(key1, JSON.stringify(flattened1[key1]));
|
|
2028
1868
|
}
|
|
2029
1869
|
return url;
|
|
2030
1870
|
};
|
|
2031
|
-
function getAllContent(options) {
|
|
2032
|
-
|
|
2033
|
-
|
|
2034
|
-
|
|
2035
|
-
|
|
2036
|
-
|
|
2037
|
-
|
|
2038
|
-
|
|
2039
|
-
return content;
|
|
2040
|
-
});
|
|
1871
|
+
async function getAllContent(options) {
|
|
1872
|
+
const url = generateContentUrl(options);
|
|
1873
|
+
const fetch2 = await fetch$;
|
|
1874
|
+
const content = await fetch2(url.href).then((res) => res.json());
|
|
1875
|
+
if (options.testGroups)
|
|
1876
|
+
for (const item of content.results)
|
|
1877
|
+
handleABTesting(item, options.testGroups);
|
|
1878
|
+
return content;
|
|
2041
1879
|
}
|
|
2042
1880
|
function isPreviewing() {
|
|
2043
1881
|
if (!isBrowser())
|
|
@@ -2046,59 +1884,19 @@ function isPreviewing() {
|
|
|
2046
1884
|
return false;
|
|
2047
1885
|
return Boolean(location.search.indexOf("builder.preview=") !== -1);
|
|
2048
1886
|
}
|
|
2049
|
-
var __defProp$1 = Object.defineProperty;
|
|
2050
|
-
var __defProps$1 = Object.defineProperties;
|
|
2051
|
-
var __getOwnPropDescs$1 = Object.getOwnPropertyDescriptors;
|
|
2052
|
-
var __getOwnPropSymbols$1 = Object.getOwnPropertySymbols;
|
|
2053
|
-
var __hasOwnProp$1 = Object.prototype.hasOwnProperty;
|
|
2054
|
-
var __propIsEnum$1 = Object.prototype.propertyIsEnumerable;
|
|
2055
|
-
var __defNormalProp$1 = (obj, key, value) => key in obj ? __defProp$1(obj, key, {
|
|
2056
|
-
enumerable: true,
|
|
2057
|
-
configurable: true,
|
|
2058
|
-
writable: true,
|
|
2059
|
-
value
|
|
2060
|
-
}) : obj[key] = value;
|
|
2061
|
-
var __spreadValues$1 = (a, b) => {
|
|
2062
|
-
for (var prop in b || (b = {}))
|
|
2063
|
-
if (__hasOwnProp$1.call(b, prop))
|
|
2064
|
-
__defNormalProp$1(a, prop, b[prop]);
|
|
2065
|
-
if (__getOwnPropSymbols$1) {
|
|
2066
|
-
for (var prop of __getOwnPropSymbols$1(b))
|
|
2067
|
-
if (__propIsEnum$1.call(b, prop))
|
|
2068
|
-
__defNormalProp$1(a, prop, b[prop]);
|
|
2069
|
-
}
|
|
2070
|
-
return a;
|
|
2071
|
-
};
|
|
2072
|
-
var __spreadProps$1 = (a, b) => __defProps$1(a, __getOwnPropDescs$1(b));
|
|
2073
|
-
var __objRest$1 = (source, exclude) => {
|
|
2074
|
-
var target = {};
|
|
2075
|
-
for (var prop in source)
|
|
2076
|
-
if (__hasOwnProp$1.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
2077
|
-
target[prop] = source[prop];
|
|
2078
|
-
if (source != null && __getOwnPropSymbols$1) {
|
|
2079
|
-
for (var prop of __getOwnPropSymbols$1(source))
|
|
2080
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$1.call(source, prop))
|
|
2081
|
-
target[prop] = source[prop];
|
|
2082
|
-
}
|
|
2083
|
-
return target;
|
|
2084
|
-
};
|
|
2085
1887
|
const components = [];
|
|
2086
1888
|
function registerComponent(component3, info) {
|
|
2087
|
-
components.push(
|
|
2088
|
-
component: component3
|
|
2089
|
-
|
|
1889
|
+
components.push({
|
|
1890
|
+
component: component3,
|
|
1891
|
+
...info
|
|
1892
|
+
});
|
|
2090
1893
|
console.warn("registerComponent is deprecated. Use the `customComponents` prop in RenderContent instead to provide your custom components to the builder SDK.");
|
|
2091
1894
|
return component3;
|
|
2092
1895
|
}
|
|
2093
|
-
const createRegisterComponentMessage = (
|
|
2094
|
-
|
|
2095
|
-
|
|
2096
|
-
|
|
2097
|
-
return {
|
|
2098
|
-
type: "builder.registerComponent",
|
|
2099
|
-
data: prepareComponentInfoToSend(info)
|
|
2100
|
-
};
|
|
2101
|
-
};
|
|
1896
|
+
const createRegisterComponentMessage = ({ component: _, ...info }) => ({
|
|
1897
|
+
type: "builder.registerComponent",
|
|
1898
|
+
data: prepareComponentInfoToSend(info)
|
|
1899
|
+
});
|
|
2102
1900
|
const fastClone = (obj) => JSON.parse(JSON.stringify(obj));
|
|
2103
1901
|
const serializeValue = (value) => typeof value === "function" ? serializeFn(value) : fastClone(value);
|
|
2104
1902
|
const serializeFn = (fnValue) => {
|
|
@@ -2106,16 +1904,13 @@ const serializeFn = (fnValue) => {
|
|
|
2106
1904
|
const appendFunction = !fnStr.startsWith("function") && !fnStr.startsWith("(");
|
|
2107
1905
|
return `return (${appendFunction ? "function " : ""}${fnStr}).apply(this, arguments)`;
|
|
2108
1906
|
};
|
|
2109
|
-
const prepareComponentInfoToSend = (
|
|
2110
|
-
|
|
2111
|
-
|
|
2112
|
-
|
|
2113
|
-
|
|
2114
|
-
|
|
2115
|
-
|
|
2116
|
-
}), {}))
|
|
2117
|
-
});
|
|
2118
|
-
};
|
|
1907
|
+
const prepareComponentInfoToSend = ({ inputs, ...info }) => ({
|
|
1908
|
+
...fastClone(info),
|
|
1909
|
+
inputs: inputs?.map((input) => Object.entries(input).reduce((acc, [key, value]) => ({
|
|
1910
|
+
...acc,
|
|
1911
|
+
[key]: serializeValue(value)
|
|
1912
|
+
}), {}))
|
|
1913
|
+
});
|
|
2119
1914
|
const getTopLevelDomain = (host) => {
|
|
2120
1915
|
const parts = host.split(".");
|
|
2121
1916
|
if (parts.length > 2)
|
|
@@ -2123,11 +1918,10 @@ const getTopLevelDomain = (host) => {
|
|
|
2123
1918
|
return host;
|
|
2124
1919
|
};
|
|
2125
1920
|
const getCookie = ({ name, canTrack }) => {
|
|
2126
|
-
var _a;
|
|
2127
1921
|
try {
|
|
2128
1922
|
if (!canTrack)
|
|
2129
1923
|
return void 0;
|
|
2130
|
-
return
|
|
1924
|
+
return document.cookie.split("; ").find((row) => row.startsWith(`${name}=`))?.split("=")[1];
|
|
2131
1925
|
} catch (err) {
|
|
2132
1926
|
console.debug("[COOKIE] GET error: ", err);
|
|
2133
1927
|
}
|
|
@@ -2225,20 +2019,18 @@ const setSessionId = ({ id, canTrack }) => setCookie({
|
|
|
2225
2019
|
});
|
|
2226
2020
|
const getLocalStorage = () => isBrowser() && typeof localStorage !== "undefined" ? localStorage : void 0;
|
|
2227
2021
|
const getLocalStorageItem = ({ key, canTrack }) => {
|
|
2228
|
-
var _a;
|
|
2229
2022
|
try {
|
|
2230
2023
|
if (canTrack)
|
|
2231
|
-
return
|
|
2024
|
+
return getLocalStorage()?.getItem(key);
|
|
2232
2025
|
return void 0;
|
|
2233
2026
|
} catch (err) {
|
|
2234
2027
|
console.debug("[LocalStorage] GET error: ", err);
|
|
2235
2028
|
}
|
|
2236
2029
|
};
|
|
2237
2030
|
const setLocalStorageItem = ({ key, canTrack, value }) => {
|
|
2238
|
-
var _a;
|
|
2239
2031
|
try {
|
|
2240
2032
|
if (canTrack)
|
|
2241
|
-
|
|
2033
|
+
getLocalStorage()?.setItem(key, value);
|
|
2242
2034
|
} catch (err) {
|
|
2243
2035
|
console.debug("[LocalStorage] SET error: ", err);
|
|
2244
2036
|
}
|
|
@@ -2267,62 +2059,6 @@ const setVisitorId = ({ id, canTrack }) => setLocalStorageItem({
|
|
|
2267
2059
|
value: id,
|
|
2268
2060
|
canTrack
|
|
2269
2061
|
});
|
|
2270
|
-
var __defProp = Object.defineProperty;
|
|
2271
|
-
var __defProps = Object.defineProperties;
|
|
2272
|
-
var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
|
|
2273
|
-
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
2274
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
2275
|
-
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
2276
|
-
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, {
|
|
2277
|
-
enumerable: true,
|
|
2278
|
-
configurable: true,
|
|
2279
|
-
writable: true,
|
|
2280
|
-
value
|
|
2281
|
-
}) : obj[key] = value;
|
|
2282
|
-
var __spreadValues = (a, b) => {
|
|
2283
|
-
for (var prop in b || (b = {}))
|
|
2284
|
-
if (__hasOwnProp.call(b, prop))
|
|
2285
|
-
__defNormalProp(a, prop, b[prop]);
|
|
2286
|
-
if (__getOwnPropSymbols) {
|
|
2287
|
-
for (var prop of __getOwnPropSymbols(b))
|
|
2288
|
-
if (__propIsEnum.call(b, prop))
|
|
2289
|
-
__defNormalProp(a, prop, b[prop]);
|
|
2290
|
-
}
|
|
2291
|
-
return a;
|
|
2292
|
-
};
|
|
2293
|
-
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
2294
|
-
var __objRest = (source, exclude) => {
|
|
2295
|
-
var target = {};
|
|
2296
|
-
for (var prop in source)
|
|
2297
|
-
if (__hasOwnProp.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
2298
|
-
target[prop] = source[prop];
|
|
2299
|
-
if (source != null && __getOwnPropSymbols) {
|
|
2300
|
-
for (var prop of __getOwnPropSymbols(source))
|
|
2301
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum.call(source, prop))
|
|
2302
|
-
target[prop] = source[prop];
|
|
2303
|
-
}
|
|
2304
|
-
return target;
|
|
2305
|
-
};
|
|
2306
|
-
var __async = (__this, __arguments, generator) => {
|
|
2307
|
-
return new Promise((resolve, reject) => {
|
|
2308
|
-
var fulfilled = (value) => {
|
|
2309
|
-
try {
|
|
2310
|
-
step(generator.next(value));
|
|
2311
|
-
} catch (e) {
|
|
2312
|
-
reject(e);
|
|
2313
|
-
}
|
|
2314
|
-
};
|
|
2315
|
-
var rejected = (value) => {
|
|
2316
|
-
try {
|
|
2317
|
-
step(generator.throw(value));
|
|
2318
|
-
} catch (e) {
|
|
2319
|
-
reject(e);
|
|
2320
|
-
}
|
|
2321
|
-
};
|
|
2322
|
-
var step = (x) => x.done ? resolve(x.value) : Promise.resolve(x.value).then(fulfilled, rejected);
|
|
2323
|
-
step((generator = generator.apply(__this, __arguments)).next());
|
|
2324
|
-
});
|
|
2325
|
-
};
|
|
2326
2062
|
const getTrackingEventData = ({ canTrack }) => {
|
|
2327
2063
|
if (!canTrack)
|
|
2328
2064
|
return {
|
|
@@ -2340,45 +2076,37 @@ const getTrackingEventData = ({ canTrack }) => {
|
|
|
2340
2076
|
visitorId
|
|
2341
2077
|
};
|
|
2342
2078
|
};
|
|
2343
|
-
const createEvent = (
|
|
2344
|
-
|
|
2345
|
-
|
|
2346
|
-
|
|
2347
|
-
|
|
2348
|
-
"contentId"
|
|
2349
|
-
]);
|
|
2350
|
-
return {
|
|
2351
|
-
type: eventType,
|
|
2352
|
-
data: __spreadProps(__spreadValues(__spreadValues({}, properties), getTrackingEventData({
|
|
2079
|
+
const createEvent = ({ type: eventType, canTrack, orgId, contentId, ...properties }) => ({
|
|
2080
|
+
type: eventType,
|
|
2081
|
+
data: {
|
|
2082
|
+
...properties,
|
|
2083
|
+
...getTrackingEventData({
|
|
2353
2084
|
canTrack
|
|
2354
|
-
})
|
|
2355
|
-
|
|
2356
|
-
|
|
2357
|
-
|
|
2358
|
-
|
|
2359
|
-
|
|
2360
|
-
|
|
2361
|
-
|
|
2362
|
-
|
|
2363
|
-
|
|
2364
|
-
|
|
2365
|
-
|
|
2366
|
-
|
|
2367
|
-
|
|
2368
|
-
|
|
2369
|
-
|
|
2370
|
-
|
|
2371
|
-
|
|
2372
|
-
|
|
2373
|
-
|
|
2374
|
-
|
|
2375
|
-
|
|
2376
|
-
|
|
2377
|
-
|
|
2378
|
-
|
|
2379
|
-
}).catch((err) => {
|
|
2380
|
-
console.error("Failed to track: ", err);
|
|
2381
|
-
});
|
|
2085
|
+
}),
|
|
2086
|
+
ownerId: orgId,
|
|
2087
|
+
contentId
|
|
2088
|
+
}
|
|
2089
|
+
});
|
|
2090
|
+
async function track(eventProps) {
|
|
2091
|
+
if (!eventProps.canTrack)
|
|
2092
|
+
return;
|
|
2093
|
+
if (isEditing())
|
|
2094
|
+
return;
|
|
2095
|
+
if (!(isBrowser() || TARGET === "reactNative"))
|
|
2096
|
+
return;
|
|
2097
|
+
return fetch(`https://builder.io/api/v1/track`, {
|
|
2098
|
+
method: "POST",
|
|
2099
|
+
body: JSON.stringify({
|
|
2100
|
+
events: [
|
|
2101
|
+
createEvent(eventProps)
|
|
2102
|
+
]
|
|
2103
|
+
}),
|
|
2104
|
+
headers: {
|
|
2105
|
+
"content-type": "application/json"
|
|
2106
|
+
},
|
|
2107
|
+
mode: "cors"
|
|
2108
|
+
}).catch((err) => {
|
|
2109
|
+
console.error("Failed to track: ", err);
|
|
2382
2110
|
});
|
|
2383
2111
|
}
|
|
2384
2112
|
const getCssFromFont = function getCssFromFont2(props, state, font) {
|
|
@@ -2424,11 +2152,13 @@ ${getFontCss(props, state, {
|
|
|
2424
2152
|
})}`;
|
|
2425
2153
|
};
|
|
2426
2154
|
const RenderContentStyles = /* @__PURE__ */ qwik.componentQrl(qwik.inlinedQrl((props) => {
|
|
2427
|
-
const state = {
|
|
2155
|
+
const state = {
|
|
2156
|
+
tagName: ""
|
|
2157
|
+
};
|
|
2428
2158
|
return /* @__PURE__ */ jsxRuntime.jsx(RenderInlinedStyles$1, {
|
|
2429
2159
|
styles: injectedStyles(props, state)
|
|
2430
2160
|
});
|
|
2431
|
-
}, "
|
|
2161
|
+
}, "RenderContentStyles_component_Og0xL34Zbvc"));
|
|
2432
2162
|
const RenderContentStyles$1 = RenderContentStyles;
|
|
2433
2163
|
const useContent = function useContent2(props, state, elementRef) {
|
|
2434
2164
|
if (!props.content && !state.overrideContent)
|
|
@@ -2502,7 +2232,7 @@ const onClick2 = function onClick3(props, state, elementRef, _event) {
|
|
|
2502
2232
|
track({
|
|
2503
2233
|
type: "click",
|
|
2504
2234
|
canTrack: canTrackToUse(props),
|
|
2505
|
-
contentId: useContent(props, state)
|
|
2235
|
+
contentId: useContent(props, state)?.id,
|
|
2506
2236
|
orgId: props.apiKey
|
|
2507
2237
|
});
|
|
2508
2238
|
};
|
|
@@ -2514,17 +2244,15 @@ const evalExpression = function evalExpression2(props, state, elementRef, expres
|
|
|
2514
2244
|
}));
|
|
2515
2245
|
};
|
|
2516
2246
|
const handleRequest = function handleRequest2(props, state, elementRef, { url, key }) {
|
|
2517
|
-
|
|
2518
|
-
const fetch2 = await getFetch();
|
|
2519
|
-
const response = await fetch2(url);
|
|
2520
|
-
const json = await response.json();
|
|
2247
|
+
getFetch().then((fetch2) => fetch2(url)).then((response) => response.json()).then((json) => {
|
|
2521
2248
|
const newOverrideState = {
|
|
2522
2249
|
...state.overrideState,
|
|
2523
2250
|
[key]: json
|
|
2524
2251
|
};
|
|
2525
2252
|
state.overrideState = newOverrideState;
|
|
2526
|
-
}
|
|
2527
|
-
|
|
2253
|
+
}).catch((err) => {
|
|
2254
|
+
console.log("error fetching dynamic data", url, err);
|
|
2255
|
+
});
|
|
2528
2256
|
};
|
|
2529
2257
|
const runHttpRequests = function runHttpRequests2(props, state, elementRef) {
|
|
2530
2258
|
const requests = useContent(props, state)?.data?.httpRequests ?? {};
|
|
@@ -2557,10 +2285,10 @@ const RenderContent = /* @__PURE__ */ qwik.componentQrl(qwik.inlinedQrl((props)
|
|
|
2557
2285
|
const state = qwik.useStore({
|
|
2558
2286
|
forceReRenderCount: 0,
|
|
2559
2287
|
overrideContent: null,
|
|
2560
|
-
|
|
2561
|
-
|
|
2288
|
+
overrideState: {},
|
|
2289
|
+
update: 0
|
|
2562
2290
|
});
|
|
2563
|
-
qwik.useContextProvider(
|
|
2291
|
+
qwik.useContextProvider(BuilderContext, qwik.useStore({
|
|
2564
2292
|
content: (() => {
|
|
2565
2293
|
return useContent(props, state);
|
|
2566
2294
|
})(),
|
|
@@ -2582,7 +2310,7 @@ const RenderContent = /* @__PURE__ */ qwik.componentQrl(qwik.inlinedQrl((props)
|
|
|
2582
2310
|
if (isBrowser()) {
|
|
2583
2311
|
if (isEditing()) {
|
|
2584
2312
|
state2.forceReRenderCount = state2.forceReRenderCount + 1;
|
|
2585
|
-
qwik._useMutableProps(elementRef2.current, true);
|
|
2313
|
+
elementRef2.current && qwik._useMutableProps(elementRef2.current, true);
|
|
2586
2314
|
registerInsertMenu();
|
|
2587
2315
|
setupBrowserForEditing();
|
|
2588
2316
|
Object.values(allRegisteredComponents(props2)).forEach((registeredComponent) => {
|
|
@@ -2596,7 +2324,7 @@ const RenderContent = /* @__PURE__ */ qwik.componentQrl(qwik.inlinedQrl((props)
|
|
|
2596
2324
|
track({
|
|
2597
2325
|
type: "impression",
|
|
2598
2326
|
canTrack: canTrackToUse(props2),
|
|
2599
|
-
contentId: useContent(props2, state2)
|
|
2327
|
+
contentId: useContent(props2, state2)?.id,
|
|
2600
2328
|
orgId: props2.apiKey
|
|
2601
2329
|
});
|
|
2602
2330
|
if (isPreviewing()) {
|
|
@@ -2617,7 +2345,7 @@ const RenderContent = /* @__PURE__ */ qwik.componentQrl(qwik.inlinedQrl((props)
|
|
|
2617
2345
|
runHttpRequests(props2, state2, elementRef2);
|
|
2618
2346
|
emitStateUpdate(props2, state2);
|
|
2619
2347
|
}
|
|
2620
|
-
}, "
|
|
2348
|
+
}, "RenderContent_component_useClientEffect_cA0sVHIkr5g", [
|
|
2621
2349
|
elementRef,
|
|
2622
2350
|
props,
|
|
2623
2351
|
state
|
|
@@ -2626,7 +2354,7 @@ const RenderContent = /* @__PURE__ */ qwik.componentQrl(qwik.inlinedQrl((props)
|
|
|
2626
2354
|
const [elementRef2, props2, state2] = qwik.useLexicalScope();
|
|
2627
2355
|
state2.useContent?.data && track2(state2.useContent?.data, "jsCode");
|
|
2628
2356
|
evaluateJsCode(props2, state2);
|
|
2629
|
-
}, "
|
|
2357
|
+
}, "RenderContent_component_useWatch_OIBatobA0hE", [
|
|
2630
2358
|
elementRef,
|
|
2631
2359
|
props,
|
|
2632
2360
|
state
|
|
@@ -2635,7 +2363,7 @@ const RenderContent = /* @__PURE__ */ qwik.componentQrl(qwik.inlinedQrl((props)
|
|
|
2635
2363
|
const [elementRef2, props2, state2] = qwik.useLexicalScope();
|
|
2636
2364
|
state2.useContent?.data && track2(state2.useContent?.data, "httpRequests");
|
|
2637
2365
|
runHttpRequests(props2, state2, elementRef2);
|
|
2638
|
-
}, "
|
|
2366
|
+
}, "RenderContent_component_useWatch_1_LQM67VNl14k", [
|
|
2639
2367
|
elementRef,
|
|
2640
2368
|
props,
|
|
2641
2369
|
state
|
|
@@ -2644,7 +2372,7 @@ const RenderContent = /* @__PURE__ */ qwik.componentQrl(qwik.inlinedQrl((props)
|
|
|
2644
2372
|
const [elementRef2, props2, state2] = qwik.useLexicalScope();
|
|
2645
2373
|
state2 && track2(state2, "contentState");
|
|
2646
2374
|
emitStateUpdate(props2, state2);
|
|
2647
|
-
}, "
|
|
2375
|
+
}, "RenderContent_component_useWatch_2_aGi0RpYNBO0", [
|
|
2648
2376
|
elementRef,
|
|
2649
2377
|
props,
|
|
2650
2378
|
state
|
|
@@ -2655,7 +2383,7 @@ const RenderContent = /* @__PURE__ */ qwik.componentQrl(qwik.inlinedQrl((props)
|
|
|
2655
2383
|
window.removeEventListener("message", processMessage.bind(null, props2, state2, elementRef2));
|
|
2656
2384
|
window.removeEventListener("builder:component:stateChangeListenerActivated", emitStateUpdate.bind(null, props2, state2, elementRef2));
|
|
2657
2385
|
}
|
|
2658
|
-
}, "
|
|
2386
|
+
}, "RenderContent_component_useCleanup_FwcO310HVAI", [
|
|
2659
2387
|
elementRef,
|
|
2660
2388
|
props,
|
|
2661
2389
|
state
|
|
@@ -2666,7 +2394,7 @@ const RenderContent = /* @__PURE__ */ qwik.componentQrl(qwik.inlinedQrl((props)
|
|
|
2666
2394
|
onClick$: qwik.inlinedQrl((event) => {
|
|
2667
2395
|
const [elementRef2, props2, state2] = qwik.useLexicalScope();
|
|
2668
2396
|
return onClick2(props2, state2);
|
|
2669
|
-
}, "
|
|
2397
|
+
}, "RenderContent_component__Fragment_div_onClick_wLg5o3ZkpC0", [
|
|
2670
2398
|
elementRef,
|
|
2671
2399
|
props,
|
|
2672
2400
|
state
|
|
@@ -2683,10 +2411,10 @@ const RenderContent = /* @__PURE__ */ qwik.componentQrl(qwik.inlinedQrl((props)
|
|
|
2683
2411
|
]
|
|
2684
2412
|
}) : null
|
|
2685
2413
|
});
|
|
2686
|
-
}, "
|
|
2414
|
+
}, "RenderContent_component_hEAI0ahViXM"));
|
|
2687
2415
|
const RenderContent$1 = RenderContent;
|
|
2688
2416
|
const Symbol$1 = /* @__PURE__ */ qwik.componentQrl(qwik.inlinedQrl((props) => {
|
|
2689
|
-
const builderContext = qwik.useContext(
|
|
2417
|
+
const builderContext = qwik.useContext(BuilderContext);
|
|
2690
2418
|
const state = qwik.useStore({
|
|
2691
2419
|
className: "builder-symbol",
|
|
2692
2420
|
content: null
|
|
@@ -2694,7 +2422,7 @@ const Symbol$1 = /* @__PURE__ */ qwik.componentQrl(qwik.inlinedQrl((props) => {
|
|
|
2694
2422
|
qwik.useClientEffectQrl(qwik.inlinedQrl(() => {
|
|
2695
2423
|
const [props2, state2] = qwik.useLexicalScope();
|
|
2696
2424
|
state2.content = props2.symbol?.content;
|
|
2697
|
-
}, "
|
|
2425
|
+
}, "Symbol_component_useClientEffect_Kfc9q3nzeSQ", [
|
|
2698
2426
|
props,
|
|
2699
2427
|
state
|
|
2700
2428
|
]));
|
|
@@ -2713,16 +2441,13 @@ const Symbol$1 = /* @__PURE__ */ qwik.componentQrl(qwik.inlinedQrl((props) => {
|
|
|
2713
2441
|
}).then((response) => {
|
|
2714
2442
|
state2.content = response;
|
|
2715
2443
|
});
|
|
2716
|
-
}, "
|
|
2444
|
+
}, "Symbol_component_useWatch_9HNT04zd0Dk", [
|
|
2717
2445
|
builderContext,
|
|
2718
2446
|
props,
|
|
2719
2447
|
state
|
|
2720
2448
|
]));
|
|
2721
2449
|
return /* @__PURE__ */ jsxRuntime.jsx("div", {
|
|
2722
2450
|
...props.attributes,
|
|
2723
|
-
dataSet: {
|
|
2724
|
-
class: state.className
|
|
2725
|
-
},
|
|
2726
2451
|
class: state.className,
|
|
2727
2452
|
children: /* @__PURE__ */ jsxRuntime.jsx(RenderContent$1, {
|
|
2728
2453
|
apiKey: builderContext.apiKey,
|
|
@@ -2737,7 +2462,7 @@ const Symbol$1 = /* @__PURE__ */ qwik.componentQrl(qwik.inlinedQrl((props) => {
|
|
|
2737
2462
|
content: markMutable(state.content)
|
|
2738
2463
|
})
|
|
2739
2464
|
});
|
|
2740
|
-
}, "
|
|
2465
|
+
}, "Symbol_component_WVvggdkUPdk"));
|
|
2741
2466
|
const Symbol$2 = Symbol$1;
|
|
2742
2467
|
const settings = {};
|
|
2743
2468
|
function setEditorSettings(newSettings) {
|