@builder.io/sdk-qwik 0.0.16 → 0.0.17
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 +218 -510
- package/lib/index.qwik.mjs +218 -510
- 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/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/types-hacks.d.ts +6 -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/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
|
@@ -64,9 +64,8 @@ const registerInsertMenu = () => {
|
|
|
64
64
|
});
|
|
65
65
|
};
|
|
66
66
|
const setupBrowserForEditing = () => {
|
|
67
|
-
var _a;
|
|
68
67
|
if (isBrowser()) {
|
|
69
|
-
|
|
68
|
+
window.parent?.postMessage({
|
|
70
69
|
type: "builder.sdkInfo",
|
|
71
70
|
data: {
|
|
72
71
|
target: TARGET,
|
|
@@ -74,7 +73,6 @@ const setupBrowserForEditing = () => {
|
|
|
74
73
|
}
|
|
75
74
|
}, "*");
|
|
76
75
|
window.addEventListener("message", ({ data }) => {
|
|
77
|
-
var _a2, _b;
|
|
78
76
|
if (data)
|
|
79
77
|
switch (data.type) {
|
|
80
78
|
case "builder.evaluate": {
|
|
@@ -90,7 +88,7 @@ const setupBrowserForEditing = () => {
|
|
|
90
88
|
error = err;
|
|
91
89
|
}
|
|
92
90
|
if (error)
|
|
93
|
-
|
|
91
|
+
window.parent?.postMessage({
|
|
94
92
|
type: "builder.evaluateError",
|
|
95
93
|
data: {
|
|
96
94
|
id,
|
|
@@ -99,8 +97,7 @@ const setupBrowserForEditing = () => {
|
|
|
99
97
|
}, "*");
|
|
100
98
|
else if (result && typeof result.then === "function")
|
|
101
99
|
result.then((finalResult) => {
|
|
102
|
-
|
|
103
|
-
(_a3 = window.parent) == null || _a3.postMessage({
|
|
100
|
+
window.parent?.postMessage({
|
|
104
101
|
type: "builder.evaluateResult",
|
|
105
102
|
data: {
|
|
106
103
|
id,
|
|
@@ -109,7 +106,7 @@ const setupBrowserForEditing = () => {
|
|
|
109
106
|
}, "*");
|
|
110
107
|
}).catch(console.error);
|
|
111
108
|
else
|
|
112
|
-
|
|
109
|
+
window.parent?.postMessage({
|
|
113
110
|
type: "builder.evaluateResult",
|
|
114
111
|
data: {
|
|
115
112
|
result,
|
|
@@ -122,7 +119,7 @@ const setupBrowserForEditing = () => {
|
|
|
122
119
|
});
|
|
123
120
|
}
|
|
124
121
|
};
|
|
125
|
-
|
|
122
|
+
const BuilderContext = qwik.createContext("Builder");
|
|
126
123
|
function isIframe() {
|
|
127
124
|
return isBrowser() && window.self !== window.top;
|
|
128
125
|
}
|
|
@@ -175,37 +172,18 @@ const set = (obj, _path, value) => {
|
|
|
175
172
|
function transformBlock(block) {
|
|
176
173
|
return block;
|
|
177
174
|
}
|
|
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
175
|
const evaluateBindings = ({ block, context, state }) => {
|
|
203
176
|
if (!block.bindings)
|
|
204
177
|
return block;
|
|
205
|
-
const copied =
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
178
|
+
const copied = {
|
|
179
|
+
...block,
|
|
180
|
+
properties: {
|
|
181
|
+
...block.properties
|
|
182
|
+
},
|
|
183
|
+
actions: {
|
|
184
|
+
...block.actions
|
|
185
|
+
}
|
|
186
|
+
};
|
|
209
187
|
for (const binding in block.bindings) {
|
|
210
188
|
const expression = block.bindings[binding];
|
|
211
189
|
const value = evaluate({
|
|
@@ -240,7 +218,9 @@ const tagName$1 = function tagName(props, state) {
|
|
|
240
218
|
return "style";
|
|
241
219
|
};
|
|
242
220
|
const RenderInlinedStyles = (props) => {
|
|
243
|
-
const state = {
|
|
221
|
+
const state = {
|
|
222
|
+
tagName: ""
|
|
223
|
+
};
|
|
244
224
|
state.tagName = tagName$1();
|
|
245
225
|
return /* @__PURE__ */ jsxRuntime.jsx(jsxRuntime.Fragment, {
|
|
246
226
|
children: /* @__PURE__ */ jsxRuntime.jsx(state.tagName, {
|
|
@@ -285,9 +265,8 @@ function capitalizeFirstLetter(string) {
|
|
|
285
265
|
}
|
|
286
266
|
const getEventHandlerName = (key) => `on${capitalizeFirstLetter(key)}`;
|
|
287
267
|
function getBlockActions(options) {
|
|
288
|
-
var _a;
|
|
289
268
|
const obj = {};
|
|
290
|
-
const optionActions =
|
|
269
|
+
const optionActions = options.block.actions ?? {};
|
|
291
270
|
for (const key in optionActions) {
|
|
292
271
|
if (!optionActions.hasOwnProperty(key))
|
|
293
272
|
continue;
|
|
@@ -301,105 +280,39 @@ function getBlockActions(options) {
|
|
|
301
280
|
}
|
|
302
281
|
return obj;
|
|
303
282
|
}
|
|
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
283
|
function getBlockComponentOptions(block) {
|
|
329
|
-
|
|
330
|
-
|
|
284
|
+
return {
|
|
285
|
+
...block.component?.options,
|
|
286
|
+
...block.options,
|
|
331
287
|
builderBlock: block
|
|
332
|
-
}
|
|
288
|
+
};
|
|
333
289
|
}
|
|
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
290
|
function getBlockProperties(block) {
|
|
359
|
-
|
|
360
|
-
|
|
291
|
+
return {
|
|
292
|
+
...block.properties,
|
|
361
293
|
"builder-id": block.id,
|
|
362
294
|
class: [
|
|
363
295
|
block.id,
|
|
364
296
|
"builder-block",
|
|
365
297
|
block.class,
|
|
366
|
-
|
|
298
|
+
block.properties?.class
|
|
367
299
|
].filter(Boolean).join(" ")
|
|
368
|
-
}
|
|
300
|
+
};
|
|
369
301
|
}
|
|
370
302
|
const convertStyleObject = (obj) => {
|
|
371
303
|
return obj;
|
|
372
304
|
};
|
|
373
305
|
const sanitizeBlockStyles = (_styles) => {
|
|
374
306
|
};
|
|
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
307
|
function getBlockStyles(block) {
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
if (
|
|
402
|
-
styles[getMaxWidthQueryForSize("
|
|
308
|
+
const styles = {
|
|
309
|
+
...convertStyleObject(block.responsiveStyles?.large),
|
|
310
|
+
...block.styles
|
|
311
|
+
};
|
|
312
|
+
if (block.responsiveStyles?.medium)
|
|
313
|
+
styles[getMaxWidthQueryForSize("medium")] = convertStyleObject(block.responsiveStyles?.medium);
|
|
314
|
+
if (block.responsiveStyles?.small)
|
|
315
|
+
styles[getMaxWidthQueryForSize("small")] = convertStyleObject(block.responsiveStyles?.small);
|
|
403
316
|
sanitizeBlockStyles();
|
|
404
317
|
return styles;
|
|
405
318
|
}
|
|
@@ -440,13 +353,13 @@ const RenderComponent = (props) => {
|
|
|
440
353
|
children: props.componentRef ? /* @__PURE__ */ jsxRuntime.jsxs(props.componentRef, {
|
|
441
354
|
...markPropsMutable(props.componentOptions),
|
|
442
355
|
children: [
|
|
443
|
-
(props.blockChildren || []).map((child)
|
|
356
|
+
(props.blockChildren || []).map(function(child) {
|
|
444
357
|
return /* @__PURE__ */ jsxRuntime.jsx(RenderBlock$1, {
|
|
445
358
|
block: child,
|
|
446
359
|
context: props.context
|
|
447
360
|
}, "render-block-" + child.id);
|
|
448
361
|
}),
|
|
449
|
-
(props.blockChildren || []).map((child)
|
|
362
|
+
(props.blockChildren || []).map(function(child) {
|
|
450
363
|
return /* @__PURE__ */ jsxRuntime.jsx(BlockStyles$1, {
|
|
451
364
|
block: child,
|
|
452
365
|
context: props.context
|
|
@@ -458,7 +371,7 @@ const RenderComponent = (props) => {
|
|
|
458
371
|
};
|
|
459
372
|
const RenderComponent$1 = RenderComponent;
|
|
460
373
|
const RenderRepeatedBlock = /* @__PURE__ */ qwik.componentQrl(qwik.inlinedQrl((props) => {
|
|
461
|
-
qwik.useContextProvider(
|
|
374
|
+
qwik.useContextProvider(BuilderContext, qwik.useStore({
|
|
462
375
|
content: (() => {
|
|
463
376
|
return props.repeatContext.content;
|
|
464
377
|
})(),
|
|
@@ -479,7 +392,7 @@ const RenderRepeatedBlock = /* @__PURE__ */ qwik.componentQrl(qwik.inlinedQrl((p
|
|
|
479
392
|
block: props.block,
|
|
480
393
|
context: props.repeatContext
|
|
481
394
|
});
|
|
482
|
-
}, "
|
|
395
|
+
}, "RenderRepeatedBlock_component_nRyVBtbGKc8"));
|
|
483
396
|
const RenderRepeatedBlock$1 = RenderRepeatedBlock;
|
|
484
397
|
const component = function component2(props, state) {
|
|
485
398
|
const componentName = getProcessedBlock({
|
|
@@ -586,13 +499,15 @@ const repeatItemData = function repeatItemData2(props, state) {
|
|
|
586
499
|
return repeatArray;
|
|
587
500
|
};
|
|
588
501
|
const RenderBlock = (props) => {
|
|
589
|
-
const state = {
|
|
502
|
+
const state = {
|
|
503
|
+
tagName: ""
|
|
504
|
+
};
|
|
590
505
|
state.tagName = tagName2(props);
|
|
591
506
|
return /* @__PURE__ */ jsxRuntime.jsx(jsxRuntime.Fragment, {
|
|
592
507
|
children: shouldWrap(props) ? !isEmptyHtmlElement(tagName2(props)) ? /* @__PURE__ */ jsxRuntime.jsxs(state.tagName, {
|
|
593
508
|
...attributes(props),
|
|
594
509
|
children: [
|
|
595
|
-
repeatItemData(props) ? (repeatItemData(props) || []).map((data, index)
|
|
510
|
+
repeatItemData(props) ? (repeatItemData(props) || []).map(function(data, index) {
|
|
596
511
|
return /* @__PURE__ */ jsxRuntime.jsx(RenderRepeatedBlock$1, {
|
|
597
512
|
repeatContext: data.context,
|
|
598
513
|
block: data.block
|
|
@@ -601,13 +516,13 @@ const RenderBlock = (props) => {
|
|
|
601
516
|
!repeatItemData(props) ? /* @__PURE__ */ jsxRuntime.jsx(RenderComponent$1, {
|
|
602
517
|
...renderComponentProps(props)
|
|
603
518
|
}) : null,
|
|
604
|
-
(childrenWithoutParentComponent(props) || []).map((child)
|
|
519
|
+
(childrenWithoutParentComponent(props) || []).map(function(child) {
|
|
605
520
|
return /* @__PURE__ */ jsxRuntime.jsx(RenderBlock, {
|
|
606
521
|
block: child,
|
|
607
522
|
context: props.context
|
|
608
523
|
}, "render-block-" + child.id);
|
|
609
524
|
}),
|
|
610
|
-
(childrenWithoutParentComponent(props) || []).map((child)
|
|
525
|
+
(childrenWithoutParentComponent(props) || []).map(function(child) {
|
|
611
526
|
return /* @__PURE__ */ jsxRuntime.jsx(BlockStyles$1, {
|
|
612
527
|
block: child,
|
|
613
528
|
context: props.context
|
|
@@ -647,20 +562,19 @@ const onMouseEnter = function onMouseEnter2(props, state, builderContext) {
|
|
|
647
562
|
}, "*");
|
|
648
563
|
};
|
|
649
564
|
const RenderBlocks = /* @__PURE__ */ qwik.componentQrl(qwik.inlinedQrl((props) => {
|
|
650
|
-
qwik.useStylesScopedQrl(qwik.inlinedQrl(STYLES$3, "
|
|
651
|
-
const builderContext = qwik.useContext(
|
|
652
|
-
const state = {
|
|
565
|
+
qwik.useStylesScopedQrl(qwik.inlinedQrl(STYLES$3, "RenderBlocks_component_useStylesScoped_0XKYzaR059E"));
|
|
566
|
+
const builderContext = qwik.useContext(BuilderContext);
|
|
567
|
+
const state = {
|
|
568
|
+
tagName: ""
|
|
569
|
+
};
|
|
653
570
|
return /* @__PURE__ */ jsxRuntime.jsxs("div", {
|
|
654
571
|
class: className(props) + " div-RenderBlocks",
|
|
655
572
|
"builder-path": props.path,
|
|
656
573
|
"builder-parent-id": props.parent,
|
|
657
|
-
dataSet: {
|
|
658
|
-
class: className(props)
|
|
659
|
-
},
|
|
660
574
|
onClick$: qwik.inlinedQrl((event) => {
|
|
661
575
|
const [builderContext2, props2, state2] = qwik.useLexicalScope();
|
|
662
576
|
return onClick$1(props2);
|
|
663
|
-
}, "
|
|
577
|
+
}, "RenderBlocks_component_div_onClick_RzhhZa265Yg", [
|
|
664
578
|
builderContext,
|
|
665
579
|
props,
|
|
666
580
|
state
|
|
@@ -668,19 +582,19 @@ const RenderBlocks = /* @__PURE__ */ qwik.componentQrl(qwik.inlinedQrl((props) =
|
|
|
668
582
|
onMouseEnter$: qwik.inlinedQrl((event) => {
|
|
669
583
|
const [builderContext2, props2, state2] = qwik.useLexicalScope();
|
|
670
584
|
return onMouseEnter(props2);
|
|
671
|
-
}, "
|
|
585
|
+
}, "RenderBlocks_component_div_onMouseEnter_nG7I7RYG3JQ", [
|
|
672
586
|
builderContext,
|
|
673
587
|
props,
|
|
674
588
|
state
|
|
675
589
|
]),
|
|
676
590
|
children: [
|
|
677
|
-
props.blocks ? (props.blocks || []).map((block)
|
|
591
|
+
props.blocks ? (props.blocks || []).map(function(block) {
|
|
678
592
|
return /* @__PURE__ */ jsxRuntime.jsx(RenderBlock$1, {
|
|
679
593
|
block,
|
|
680
594
|
context: builderContext
|
|
681
595
|
}, "render-block-" + block.id);
|
|
682
596
|
}) : null,
|
|
683
|
-
props.blocks ? (props.blocks || []).map((block)
|
|
597
|
+
props.blocks ? (props.blocks || []).map(function(block) {
|
|
684
598
|
return /* @__PURE__ */ jsxRuntime.jsx(BlockStyles$1, {
|
|
685
599
|
block,
|
|
686
600
|
context: builderContext
|
|
@@ -688,7 +602,7 @@ const RenderBlocks = /* @__PURE__ */ qwik.componentQrl(qwik.inlinedQrl((props) =
|
|
|
688
602
|
}) : null
|
|
689
603
|
]
|
|
690
604
|
});
|
|
691
|
-
}, "
|
|
605
|
+
}, "RenderBlocks_component_MYUZ0j1uLsw"));
|
|
692
606
|
const RenderBlocks$1 = RenderBlocks;
|
|
693
607
|
const STYLES$3 = `.div-RenderBlocks {
|
|
694
608
|
display: flex;
|
|
@@ -732,12 +646,14 @@ const columnCssVars = function columnCssVars2(props, state) {
|
|
|
732
646
|
};
|
|
733
647
|
};
|
|
734
648
|
const Columns = /* @__PURE__ */ qwik.componentQrl(qwik.inlinedQrl((props) => {
|
|
735
|
-
qwik.useStylesScopedQrl(qwik.inlinedQrl(STYLES$2, "
|
|
736
|
-
const state = {
|
|
649
|
+
qwik.useStylesScopedQrl(qwik.inlinedQrl(STYLES$2, "Columns_component_useStylesScoped_s7JLZz7MCCQ"));
|
|
650
|
+
const state = {
|
|
651
|
+
tagName: ""
|
|
652
|
+
};
|
|
737
653
|
return /* @__PURE__ */ jsxRuntime.jsx("div", {
|
|
738
654
|
class: "builder-columns div-Columns",
|
|
739
655
|
style: columnsCssVars(props, state),
|
|
740
|
-
children: (props.columns || []).map((column, index)
|
|
656
|
+
children: (props.columns || []).map(function(column, index) {
|
|
741
657
|
return /* @__PURE__ */ jsxRuntime.jsx("div", {
|
|
742
658
|
class: "builder-column div-Columns-2",
|
|
743
659
|
style: {
|
|
@@ -753,7 +669,7 @@ const Columns = /* @__PURE__ */ qwik.componentQrl(qwik.inlinedQrl((props) => {
|
|
|
753
669
|
}, index);
|
|
754
670
|
})
|
|
755
671
|
});
|
|
756
|
-
}, "
|
|
672
|
+
}, "Columns_component_7yLj4bxdI6c"));
|
|
757
673
|
const Columns$1 = Columns;
|
|
758
674
|
const STYLES$2 = `.div-Columns {
|
|
759
675
|
display: flex;
|
|
@@ -777,7 +693,7 @@ function updateQueryParam(uri = "", key, value) {
|
|
|
777
693
|
return uri + separator + key + "=" + encodeURIComponent(value);
|
|
778
694
|
}
|
|
779
695
|
function getShopifyImageUrl(src, size) {
|
|
780
|
-
if (!src || !
|
|
696
|
+
if (!src || !src?.match(/cdn\.shopify\.com/) || !size)
|
|
781
697
|
return src;
|
|
782
698
|
if (size === "master")
|
|
783
699
|
return removeProtocol(src);
|
|
@@ -841,7 +757,7 @@ const webpSrcSet = function webpSrcSet2(props, state) {
|
|
|
841
757
|
return "";
|
|
842
758
|
};
|
|
843
759
|
const Image = /* @__PURE__ */ qwik.componentQrl(qwik.inlinedQrl((props) => {
|
|
844
|
-
qwik.useStylesScopedQrl(qwik.inlinedQrl(STYLES$1, "
|
|
760
|
+
qwik.useStylesScopedQrl(qwik.inlinedQrl(STYLES$1, "Image_component_useStylesScoped_fBMYiVf9fuU"));
|
|
845
761
|
return /* @__PURE__ */ jsxRuntime.jsxs("div", {
|
|
846
762
|
class: "div-Image",
|
|
847
763
|
children: [
|
|
@@ -849,7 +765,7 @@ const Image = /* @__PURE__ */ qwik.componentQrl(qwik.inlinedQrl((props) => {
|
|
|
849
765
|
children: [
|
|
850
766
|
webpSrcSet(props) ? /* @__PURE__ */ jsxRuntime.jsx("source", {
|
|
851
767
|
type: "image/webp",
|
|
852
|
-
|
|
768
|
+
srcSet: webpSrcSet(props)
|
|
853
769
|
}) : null,
|
|
854
770
|
/* @__PURE__ */ jsxRuntime.jsx("img", {
|
|
855
771
|
loading: "lazy",
|
|
@@ -861,11 +777,11 @@ const Image = /* @__PURE__ */ qwik.componentQrl(qwik.inlinedQrl((props) => {
|
|
|
861
777
|
},
|
|
862
778
|
class: "builder-image" + (props.className ? " " + props.className : "") + " img-Image",
|
|
863
779
|
src: props.image,
|
|
864
|
-
|
|
780
|
+
srcSet: srcSetToUse(props),
|
|
865
781
|
sizes: props.sizes
|
|
866
782
|
}),
|
|
867
783
|
/* @__PURE__ */ jsxRuntime.jsx("source", {
|
|
868
|
-
|
|
784
|
+
srcSet: srcSetToUse(props)
|
|
869
785
|
})
|
|
870
786
|
]
|
|
871
787
|
}),
|
|
@@ -882,7 +798,7 @@ const Image = /* @__PURE__ */ qwik.componentQrl(qwik.inlinedQrl((props) => {
|
|
|
882
798
|
}) : null
|
|
883
799
|
]
|
|
884
800
|
});
|
|
885
|
-
}, "
|
|
801
|
+
}, "Image_component_LRxDkFa1EfU"));
|
|
886
802
|
const Image$1 = Image;
|
|
887
803
|
const STYLES$1 = `.div-Image {
|
|
888
804
|
position: relative; }.img-Image {
|
|
@@ -909,7 +825,7 @@ const Text = /* @__PURE__ */ qwik.componentQrl(qwik.inlinedQrl((props) => {
|
|
|
909
825
|
class: "builder-text",
|
|
910
826
|
dangerouslySetInnerHTML: props.text
|
|
911
827
|
});
|
|
912
|
-
}, "
|
|
828
|
+
}, "Text_component_15p0cKUxgIE"));
|
|
913
829
|
const Text$1 = Text;
|
|
914
830
|
const videoProps = function videoProps2(props, state) {
|
|
915
831
|
return {
|
|
@@ -944,10 +860,10 @@ const Video = /* @__PURE__ */ qwik.componentQrl(qwik.inlinedQrl((props) => {
|
|
|
944
860
|
src: props.video || "no-src",
|
|
945
861
|
poster: props.posterImage
|
|
946
862
|
});
|
|
947
|
-
}, "
|
|
863
|
+
}, "Video_component_qdcTZflYyoQ"));
|
|
948
864
|
const Video$1 = Video;
|
|
949
865
|
const Button = /* @__PURE__ */ qwik.componentQrl(qwik.inlinedQrl((props) => {
|
|
950
|
-
qwik.useStylesScopedQrl(qwik.inlinedQrl(STYLES, "
|
|
866
|
+
qwik.useStylesScopedQrl(qwik.inlinedQrl(STYLES, "Button_component_useStylesScoped_a1JZ0Q0Q2Oc"));
|
|
951
867
|
return /* @__PURE__ */ jsxRuntime.jsx(qwik.Fragment, {
|
|
952
868
|
children: props.link ? /* @__PURE__ */ jsxRuntime.jsx("a", {
|
|
953
869
|
role: "button",
|
|
@@ -961,7 +877,7 @@ const Button = /* @__PURE__ */ qwik.componentQrl(qwik.inlinedQrl((props) => {
|
|
|
961
877
|
children: props.text
|
|
962
878
|
})
|
|
963
879
|
});
|
|
964
|
-
}, "
|
|
880
|
+
}, "Button_component_gJoMUICXoUQ"));
|
|
965
881
|
const Button$1 = Button;
|
|
966
882
|
const STYLES = `.button-Button {
|
|
967
883
|
all: unset; }`;
|
|
@@ -1260,7 +1176,7 @@ const FragmentComponent = /* @__PURE__ */ qwik.componentQrl(qwik.inlinedQrl((pro
|
|
|
1260
1176
|
return /* @__PURE__ */ jsxRuntime.jsx("span", {
|
|
1261
1177
|
children: /* @__PURE__ */ jsxRuntime.jsx(qwik.Slot, {})
|
|
1262
1178
|
});
|
|
1263
|
-
}, "
|
|
1179
|
+
}, "FragmentComponent_component_T0AypnadAK0"));
|
|
1264
1180
|
const Fragment = FragmentComponent;
|
|
1265
1181
|
const componentInfo$6 = {
|
|
1266
1182
|
name: "Image",
|
|
@@ -1465,7 +1381,7 @@ const SectionComponent = /* @__PURE__ */ qwik.componentQrl(qwik.inlinedQrl((prop
|
|
|
1465
1381
|
})(),
|
|
1466
1382
|
children: /* @__PURE__ */ jsxRuntime.jsx(qwik.Slot, {})
|
|
1467
1383
|
});
|
|
1468
|
-
}, "
|
|
1384
|
+
}, "SectionComponent_component_ZWF9iD5WeLg"));
|
|
1469
1385
|
const Section = SectionComponent;
|
|
1470
1386
|
const componentInfo$4 = {
|
|
1471
1387
|
name: "Symbol",
|
|
@@ -1707,9 +1623,9 @@ const findAndRunScripts = function findAndRunScripts2(props, state, elem) {
|
|
|
1707
1623
|
const Embed = /* @__PURE__ */ qwik.componentQrl(qwik.inlinedQrl((props) => {
|
|
1708
1624
|
const elem = qwik.useRef();
|
|
1709
1625
|
const state = qwik.useStore({
|
|
1626
|
+
ranInitFn: false,
|
|
1710
1627
|
scriptsInserted: [],
|
|
1711
|
-
scriptsRun: []
|
|
1712
|
-
ranInitFn: false
|
|
1628
|
+
scriptsRun: []
|
|
1713
1629
|
});
|
|
1714
1630
|
qwik.useWatchQrl(qwik.inlinedQrl(({ track: track2 }) => {
|
|
1715
1631
|
const [elem2, props2, state2] = qwik.useLexicalScope();
|
|
@@ -1718,7 +1634,7 @@ const Embed = /* @__PURE__ */ qwik.componentQrl(qwik.inlinedQrl((props) => {
|
|
|
1718
1634
|
state2.ranInitFn = true;
|
|
1719
1635
|
findAndRunScripts(props2, state2, elem2);
|
|
1720
1636
|
}
|
|
1721
|
-
}, "
|
|
1637
|
+
}, "Embed_component_useWatch_AxgWjrHdlAI", [
|
|
1722
1638
|
elem,
|
|
1723
1639
|
props,
|
|
1724
1640
|
state
|
|
@@ -1728,7 +1644,7 @@ const Embed = /* @__PURE__ */ qwik.componentQrl(qwik.inlinedQrl((props) => {
|
|
|
1728
1644
|
ref: elem,
|
|
1729
1645
|
dangerouslySetInnerHTML: props.content
|
|
1730
1646
|
});
|
|
1731
|
-
}, "
|
|
1647
|
+
}, "Embed_component_Uji08ORjXbE"));
|
|
1732
1648
|
const embed = Embed;
|
|
1733
1649
|
const ImgComponent = /* @__PURE__ */ qwik.componentQrl(qwik.inlinedQrl((props) => {
|
|
1734
1650
|
return /* @__PURE__ */ jsxRuntime.jsx("img", {
|
|
@@ -1740,7 +1656,7 @@ const ImgComponent = /* @__PURE__ */ qwik.componentQrl(qwik.inlinedQrl((props) =
|
|
|
1740
1656
|
src: props.imgSrc || props.image,
|
|
1741
1657
|
...props.attributes
|
|
1742
1658
|
}, isEditing() && props.imgSrc || "default-key");
|
|
1743
|
-
}, "
|
|
1659
|
+
}, "ImgComponent_component_FXvIDBSffO8"));
|
|
1744
1660
|
const Img = ImgComponent;
|
|
1745
1661
|
const componentInfo2 = {
|
|
1746
1662
|
name: "Raw:Img",
|
|
@@ -1764,83 +1680,48 @@ const componentInfo2 = {
|
|
|
1764
1680
|
noWrap: true,
|
|
1765
1681
|
static: true
|
|
1766
1682
|
};
|
|
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
1683
|
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]);
|
|
1684
|
+
{
|
|
1685
|
+
component: Columns$1,
|
|
1686
|
+
...componentInfo$8
|
|
1687
|
+
},
|
|
1688
|
+
{
|
|
1689
|
+
component: Image$1,
|
|
1690
|
+
...componentInfo$6
|
|
1691
|
+
},
|
|
1692
|
+
{
|
|
1693
|
+
component: Img,
|
|
1694
|
+
...componentInfo2
|
|
1695
|
+
},
|
|
1696
|
+
{
|
|
1697
|
+
component: Text$1,
|
|
1698
|
+
...componentInfo$3
|
|
1699
|
+
},
|
|
1700
|
+
{
|
|
1701
|
+
component: Video$1,
|
|
1702
|
+
...componentInfo$2
|
|
1703
|
+
},
|
|
1704
|
+
{
|
|
1705
|
+
component: Symbol$2,
|
|
1706
|
+
...componentInfo$4
|
|
1707
|
+
},
|
|
1708
|
+
{
|
|
1709
|
+
component: Button$1,
|
|
1710
|
+
...componentInfo$9
|
|
1711
|
+
},
|
|
1712
|
+
{
|
|
1713
|
+
component: Section,
|
|
1714
|
+
...componentInfo$5
|
|
1715
|
+
},
|
|
1716
|
+
{
|
|
1717
|
+
component: Fragment,
|
|
1718
|
+
...componentInfo$7
|
|
1719
|
+
},
|
|
1720
|
+
{
|
|
1721
|
+
component: embed,
|
|
1722
|
+
...componentInfo$1
|
|
1840
1723
|
}
|
|
1841
|
-
|
|
1842
|
-
};
|
|
1843
|
-
var __spreadProps$3 = (a, b) => __defProps$3(a, __getOwnPropDescs$3(b));
|
|
1724
|
+
];
|
|
1844
1725
|
function flatten(object, path = null, separator = ".") {
|
|
1845
1726
|
return Object.keys(object).reduce((acc, key) => {
|
|
1846
1727
|
const value = object[key];
|
|
@@ -1853,9 +1734,13 @@ function flatten(object, path = null, separator = ".") {
|
|
|
1853
1734
|
value !== null,
|
|
1854
1735
|
!(Array.isArray(value) && value.length === 0)
|
|
1855
1736
|
].every(Boolean);
|
|
1856
|
-
return isObject ?
|
|
1737
|
+
return isObject ? {
|
|
1738
|
+
...acc,
|
|
1739
|
+
...flatten(value, newPath, separator)
|
|
1740
|
+
} : {
|
|
1741
|
+
...acc,
|
|
1857
1742
|
[newPath]: value
|
|
1858
|
-
}
|
|
1743
|
+
};
|
|
1859
1744
|
}, {});
|
|
1860
1745
|
}
|
|
1861
1746
|
const BUILDER_SEARCHPARAMS_PREFIX = "builder.";
|
|
@@ -1894,35 +1779,13 @@ function getGlobalThis() {
|
|
|
1894
1779
|
return self;
|
|
1895
1780
|
return null;
|
|
1896
1781
|
}
|
|
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
|
-
});
|
|
1782
|
+
async function getFetch() {
|
|
1783
|
+
const globalFetch = getGlobalThis().fetch;
|
|
1784
|
+
if (typeof globalFetch === "undefined" && typeof global !== "undefined") {
|
|
1785
|
+
const nodeFetch = Promise.resolve().then(() => require("./index.d8c1e37f.cjs")).then((d) => d.default);
|
|
1786
|
+
return nodeFetch.default || nodeFetch;
|
|
1787
|
+
}
|
|
1788
|
+
return globalFetch.default || globalFetch;
|
|
1926
1789
|
}
|
|
1927
1790
|
const handleABTesting = (item, testGroups) => {
|
|
1928
1791
|
if (item.variations && Object.keys(item.variations).length) {
|
|
@@ -1958,86 +1821,42 @@ const handleABTesting = (item, testGroups) => {
|
|
|
1958
1821
|
}
|
|
1959
1822
|
}
|
|
1960
1823
|
};
|
|
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
1824
|
const fetch$ = getFetch();
|
|
2006
|
-
function getContent(options) {
|
|
2007
|
-
return
|
|
2008
|
-
|
|
2009
|
-
|
|
2010
|
-
|
|
2011
|
-
});
|
|
1825
|
+
async function getContent(options) {
|
|
1826
|
+
return (await getAllContent({
|
|
1827
|
+
...options,
|
|
1828
|
+
limit: 1
|
|
1829
|
+
})).results[0] || null;
|
|
2012
1830
|
}
|
|
2013
1831
|
const generateContentUrl = (options) => {
|
|
2014
1832
|
const { limit = 30, userAttributes, query, noTraverse = false, model, apiKey } = options;
|
|
2015
1833
|
const url = new URL(`https://cdn.builder.io/api/v2/content/${model}?apiKey=${apiKey}&limit=${limit}&noTraverse=${noTraverse}`);
|
|
2016
|
-
const queryOptions =
|
|
1834
|
+
const queryOptions = {
|
|
1835
|
+
...getBuilderSearchParamsFromWindow(),
|
|
1836
|
+
...normalizeSearchParams(options.options || {})
|
|
1837
|
+
};
|
|
2017
1838
|
const flattened = flatten(queryOptions);
|
|
2018
1839
|
for (const key in flattened)
|
|
2019
1840
|
url.searchParams.set(key, String(flattened[key]));
|
|
2020
1841
|
if (userAttributes)
|
|
2021
1842
|
url.searchParams.set("userAttributes", JSON.stringify(userAttributes));
|
|
2022
1843
|
if (query) {
|
|
2023
|
-
const
|
|
1844
|
+
const flattened1 = flatten({
|
|
2024
1845
|
query
|
|
2025
1846
|
});
|
|
2026
|
-
for (const key1 in
|
|
2027
|
-
url.searchParams.set(key1, JSON.stringify(
|
|
1847
|
+
for (const key1 in flattened1)
|
|
1848
|
+
url.searchParams.set(key1, JSON.stringify(flattened1[key1]));
|
|
2028
1849
|
}
|
|
2029
1850
|
return url;
|
|
2030
1851
|
};
|
|
2031
|
-
function getAllContent(options) {
|
|
2032
|
-
|
|
2033
|
-
|
|
2034
|
-
|
|
2035
|
-
|
|
2036
|
-
|
|
2037
|
-
|
|
2038
|
-
|
|
2039
|
-
return content;
|
|
2040
|
-
});
|
|
1852
|
+
async function getAllContent(options) {
|
|
1853
|
+
const url = generateContentUrl(options);
|
|
1854
|
+
const fetch2 = await fetch$;
|
|
1855
|
+
const content = await fetch2(url.href).then((res) => res.json());
|
|
1856
|
+
if (options.testGroups)
|
|
1857
|
+
for (const item of content.results)
|
|
1858
|
+
handleABTesting(item, options.testGroups);
|
|
1859
|
+
return content;
|
|
2041
1860
|
}
|
|
2042
1861
|
function isPreviewing() {
|
|
2043
1862
|
if (!isBrowser())
|
|
@@ -2046,59 +1865,19 @@ function isPreviewing() {
|
|
|
2046
1865
|
return false;
|
|
2047
1866
|
return Boolean(location.search.indexOf("builder.preview=") !== -1);
|
|
2048
1867
|
}
|
|
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
1868
|
const components = [];
|
|
2086
1869
|
function registerComponent(component3, info) {
|
|
2087
|
-
components.push(
|
|
2088
|
-
component: component3
|
|
2089
|
-
|
|
1870
|
+
components.push({
|
|
1871
|
+
component: component3,
|
|
1872
|
+
...info
|
|
1873
|
+
});
|
|
2090
1874
|
console.warn("registerComponent is deprecated. Use the `customComponents` prop in RenderContent instead to provide your custom components to the builder SDK.");
|
|
2091
1875
|
return component3;
|
|
2092
1876
|
}
|
|
2093
|
-
const createRegisterComponentMessage = (
|
|
2094
|
-
|
|
2095
|
-
|
|
2096
|
-
|
|
2097
|
-
return {
|
|
2098
|
-
type: "builder.registerComponent",
|
|
2099
|
-
data: prepareComponentInfoToSend(info)
|
|
2100
|
-
};
|
|
2101
|
-
};
|
|
1877
|
+
const createRegisterComponentMessage = ({ component: _, ...info }) => ({
|
|
1878
|
+
type: "builder.registerComponent",
|
|
1879
|
+
data: prepareComponentInfoToSend(info)
|
|
1880
|
+
});
|
|
2102
1881
|
const fastClone = (obj) => JSON.parse(JSON.stringify(obj));
|
|
2103
1882
|
const serializeValue = (value) => typeof value === "function" ? serializeFn(value) : fastClone(value);
|
|
2104
1883
|
const serializeFn = (fnValue) => {
|
|
@@ -2106,16 +1885,13 @@ const serializeFn = (fnValue) => {
|
|
|
2106
1885
|
const appendFunction = !fnStr.startsWith("function") && !fnStr.startsWith("(");
|
|
2107
1886
|
return `return (${appendFunction ? "function " : ""}${fnStr}).apply(this, arguments)`;
|
|
2108
1887
|
};
|
|
2109
|
-
const prepareComponentInfoToSend = (
|
|
2110
|
-
|
|
2111
|
-
|
|
2112
|
-
|
|
2113
|
-
|
|
2114
|
-
|
|
2115
|
-
|
|
2116
|
-
}), {}))
|
|
2117
|
-
});
|
|
2118
|
-
};
|
|
1888
|
+
const prepareComponentInfoToSend = ({ inputs, ...info }) => ({
|
|
1889
|
+
...fastClone(info),
|
|
1890
|
+
inputs: inputs?.map((input) => Object.entries(input).reduce((acc, [key, value]) => ({
|
|
1891
|
+
...acc,
|
|
1892
|
+
[key]: serializeValue(value)
|
|
1893
|
+
}), {}))
|
|
1894
|
+
});
|
|
2119
1895
|
const getTopLevelDomain = (host) => {
|
|
2120
1896
|
const parts = host.split(".");
|
|
2121
1897
|
if (parts.length > 2)
|
|
@@ -2123,11 +1899,10 @@ const getTopLevelDomain = (host) => {
|
|
|
2123
1899
|
return host;
|
|
2124
1900
|
};
|
|
2125
1901
|
const getCookie = ({ name, canTrack }) => {
|
|
2126
|
-
var _a;
|
|
2127
1902
|
try {
|
|
2128
1903
|
if (!canTrack)
|
|
2129
1904
|
return void 0;
|
|
2130
|
-
return
|
|
1905
|
+
return document.cookie.split("; ").find((row) => row.startsWith(`${name}=`))?.split("=")[1];
|
|
2131
1906
|
} catch (err) {
|
|
2132
1907
|
console.debug("[COOKIE] GET error: ", err);
|
|
2133
1908
|
}
|
|
@@ -2225,20 +2000,18 @@ const setSessionId = ({ id, canTrack }) => setCookie({
|
|
|
2225
2000
|
});
|
|
2226
2001
|
const getLocalStorage = () => isBrowser() && typeof localStorage !== "undefined" ? localStorage : void 0;
|
|
2227
2002
|
const getLocalStorageItem = ({ key, canTrack }) => {
|
|
2228
|
-
var _a;
|
|
2229
2003
|
try {
|
|
2230
2004
|
if (canTrack)
|
|
2231
|
-
return
|
|
2005
|
+
return getLocalStorage()?.getItem(key);
|
|
2232
2006
|
return void 0;
|
|
2233
2007
|
} catch (err) {
|
|
2234
2008
|
console.debug("[LocalStorage] GET error: ", err);
|
|
2235
2009
|
}
|
|
2236
2010
|
};
|
|
2237
2011
|
const setLocalStorageItem = ({ key, canTrack, value }) => {
|
|
2238
|
-
var _a;
|
|
2239
2012
|
try {
|
|
2240
2013
|
if (canTrack)
|
|
2241
|
-
|
|
2014
|
+
getLocalStorage()?.setItem(key, value);
|
|
2242
2015
|
} catch (err) {
|
|
2243
2016
|
console.debug("[LocalStorage] SET error: ", err);
|
|
2244
2017
|
}
|
|
@@ -2267,62 +2040,6 @@ const setVisitorId = ({ id, canTrack }) => setLocalStorageItem({
|
|
|
2267
2040
|
value: id,
|
|
2268
2041
|
canTrack
|
|
2269
2042
|
});
|
|
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
2043
|
const getTrackingEventData = ({ canTrack }) => {
|
|
2327
2044
|
if (!canTrack)
|
|
2328
2045
|
return {
|
|
@@ -2340,45 +2057,37 @@ const getTrackingEventData = ({ canTrack }) => {
|
|
|
2340
2057
|
visitorId
|
|
2341
2058
|
};
|
|
2342
2059
|
};
|
|
2343
|
-
const createEvent = (
|
|
2344
|
-
|
|
2345
|
-
|
|
2346
|
-
|
|
2347
|
-
|
|
2348
|
-
"contentId"
|
|
2349
|
-
]);
|
|
2350
|
-
return {
|
|
2351
|
-
type: eventType,
|
|
2352
|
-
data: __spreadProps(__spreadValues(__spreadValues({}, properties), getTrackingEventData({
|
|
2060
|
+
const createEvent = ({ type: eventType, canTrack, orgId, contentId, ...properties }) => ({
|
|
2061
|
+
type: eventType,
|
|
2062
|
+
data: {
|
|
2063
|
+
...properties,
|
|
2064
|
+
...getTrackingEventData({
|
|
2353
2065
|
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
|
-
});
|
|
2066
|
+
}),
|
|
2067
|
+
ownerId: orgId,
|
|
2068
|
+
contentId
|
|
2069
|
+
}
|
|
2070
|
+
});
|
|
2071
|
+
async function track(eventProps) {
|
|
2072
|
+
if (!eventProps.canTrack)
|
|
2073
|
+
return;
|
|
2074
|
+
if (isEditing())
|
|
2075
|
+
return;
|
|
2076
|
+
if (!(isBrowser() || TARGET === "reactNative"))
|
|
2077
|
+
return;
|
|
2078
|
+
return fetch(`https://builder.io/api/v1/track`, {
|
|
2079
|
+
method: "POST",
|
|
2080
|
+
body: JSON.stringify({
|
|
2081
|
+
events: [
|
|
2082
|
+
createEvent(eventProps)
|
|
2083
|
+
]
|
|
2084
|
+
}),
|
|
2085
|
+
headers: {
|
|
2086
|
+
"content-type": "application/json"
|
|
2087
|
+
},
|
|
2088
|
+
mode: "cors"
|
|
2089
|
+
}).catch((err) => {
|
|
2090
|
+
console.error("Failed to track: ", err);
|
|
2382
2091
|
});
|
|
2383
2092
|
}
|
|
2384
2093
|
const getCssFromFont = function getCssFromFont2(props, state, font) {
|
|
@@ -2424,11 +2133,13 @@ ${getFontCss(props, state, {
|
|
|
2424
2133
|
})}`;
|
|
2425
2134
|
};
|
|
2426
2135
|
const RenderContentStyles = /* @__PURE__ */ qwik.componentQrl(qwik.inlinedQrl((props) => {
|
|
2427
|
-
const state = {
|
|
2136
|
+
const state = {
|
|
2137
|
+
tagName: ""
|
|
2138
|
+
};
|
|
2428
2139
|
return /* @__PURE__ */ jsxRuntime.jsx(RenderInlinedStyles$1, {
|
|
2429
2140
|
styles: injectedStyles(props, state)
|
|
2430
2141
|
});
|
|
2431
|
-
}, "
|
|
2142
|
+
}, "RenderContentStyles_component_Og0xL34Zbvc"));
|
|
2432
2143
|
const RenderContentStyles$1 = RenderContentStyles;
|
|
2433
2144
|
const useContent = function useContent2(props, state, elementRef) {
|
|
2434
2145
|
if (!props.content && !state.overrideContent)
|
|
@@ -2502,7 +2213,7 @@ const onClick2 = function onClick3(props, state, elementRef, _event) {
|
|
|
2502
2213
|
track({
|
|
2503
2214
|
type: "click",
|
|
2504
2215
|
canTrack: canTrackToUse(props),
|
|
2505
|
-
contentId: useContent(props, state)
|
|
2216
|
+
contentId: useContent(props, state)?.id,
|
|
2506
2217
|
orgId: props.apiKey
|
|
2507
2218
|
});
|
|
2508
2219
|
};
|
|
@@ -2557,10 +2268,10 @@ const RenderContent = /* @__PURE__ */ qwik.componentQrl(qwik.inlinedQrl((props)
|
|
|
2557
2268
|
const state = qwik.useStore({
|
|
2558
2269
|
forceReRenderCount: 0,
|
|
2559
2270
|
overrideContent: null,
|
|
2560
|
-
|
|
2561
|
-
|
|
2271
|
+
overrideState: {},
|
|
2272
|
+
update: 0
|
|
2562
2273
|
});
|
|
2563
|
-
qwik.useContextProvider(
|
|
2274
|
+
qwik.useContextProvider(BuilderContext, qwik.useStore({
|
|
2564
2275
|
content: (() => {
|
|
2565
2276
|
return useContent(props, state);
|
|
2566
2277
|
})(),
|
|
@@ -2596,7 +2307,7 @@ const RenderContent = /* @__PURE__ */ qwik.componentQrl(qwik.inlinedQrl((props)
|
|
|
2596
2307
|
track({
|
|
2597
2308
|
type: "impression",
|
|
2598
2309
|
canTrack: canTrackToUse(props2),
|
|
2599
|
-
contentId: useContent(props2, state2)
|
|
2310
|
+
contentId: useContent(props2, state2)?.id,
|
|
2600
2311
|
orgId: props2.apiKey
|
|
2601
2312
|
});
|
|
2602
2313
|
if (isPreviewing()) {
|
|
@@ -2617,7 +2328,7 @@ const RenderContent = /* @__PURE__ */ qwik.componentQrl(qwik.inlinedQrl((props)
|
|
|
2617
2328
|
runHttpRequests(props2, state2, elementRef2);
|
|
2618
2329
|
emitStateUpdate(props2, state2);
|
|
2619
2330
|
}
|
|
2620
|
-
}, "
|
|
2331
|
+
}, "RenderContent_component_useClientEffect_cA0sVHIkr5g", [
|
|
2621
2332
|
elementRef,
|
|
2622
2333
|
props,
|
|
2623
2334
|
state
|
|
@@ -2626,7 +2337,7 @@ const RenderContent = /* @__PURE__ */ qwik.componentQrl(qwik.inlinedQrl((props)
|
|
|
2626
2337
|
const [elementRef2, props2, state2] = qwik.useLexicalScope();
|
|
2627
2338
|
state2.useContent?.data && track2(state2.useContent?.data, "jsCode");
|
|
2628
2339
|
evaluateJsCode(props2, state2);
|
|
2629
|
-
}, "
|
|
2340
|
+
}, "RenderContent_component_useWatch_OIBatobA0hE", [
|
|
2630
2341
|
elementRef,
|
|
2631
2342
|
props,
|
|
2632
2343
|
state
|
|
@@ -2635,7 +2346,7 @@ const RenderContent = /* @__PURE__ */ qwik.componentQrl(qwik.inlinedQrl((props)
|
|
|
2635
2346
|
const [elementRef2, props2, state2] = qwik.useLexicalScope();
|
|
2636
2347
|
state2.useContent?.data && track2(state2.useContent?.data, "httpRequests");
|
|
2637
2348
|
runHttpRequests(props2, state2, elementRef2);
|
|
2638
|
-
}, "
|
|
2349
|
+
}, "RenderContent_component_useWatch_1_LQM67VNl14k", [
|
|
2639
2350
|
elementRef,
|
|
2640
2351
|
props,
|
|
2641
2352
|
state
|
|
@@ -2644,7 +2355,7 @@ const RenderContent = /* @__PURE__ */ qwik.componentQrl(qwik.inlinedQrl((props)
|
|
|
2644
2355
|
const [elementRef2, props2, state2] = qwik.useLexicalScope();
|
|
2645
2356
|
state2 && track2(state2, "contentState");
|
|
2646
2357
|
emitStateUpdate(props2, state2);
|
|
2647
|
-
}, "
|
|
2358
|
+
}, "RenderContent_component_useWatch_2_aGi0RpYNBO0", [
|
|
2648
2359
|
elementRef,
|
|
2649
2360
|
props,
|
|
2650
2361
|
state
|
|
@@ -2655,7 +2366,7 @@ const RenderContent = /* @__PURE__ */ qwik.componentQrl(qwik.inlinedQrl((props)
|
|
|
2655
2366
|
window.removeEventListener("message", processMessage.bind(null, props2, state2, elementRef2));
|
|
2656
2367
|
window.removeEventListener("builder:component:stateChangeListenerActivated", emitStateUpdate.bind(null, props2, state2, elementRef2));
|
|
2657
2368
|
}
|
|
2658
|
-
}, "
|
|
2369
|
+
}, "RenderContent_component_useCleanup_FwcO310HVAI", [
|
|
2659
2370
|
elementRef,
|
|
2660
2371
|
props,
|
|
2661
2372
|
state
|
|
@@ -2666,7 +2377,7 @@ const RenderContent = /* @__PURE__ */ qwik.componentQrl(qwik.inlinedQrl((props)
|
|
|
2666
2377
|
onClick$: qwik.inlinedQrl((event) => {
|
|
2667
2378
|
const [elementRef2, props2, state2] = qwik.useLexicalScope();
|
|
2668
2379
|
return onClick2(props2, state2);
|
|
2669
|
-
}, "
|
|
2380
|
+
}, "RenderContent_component__Fragment_div_onClick_wLg5o3ZkpC0", [
|
|
2670
2381
|
elementRef,
|
|
2671
2382
|
props,
|
|
2672
2383
|
state
|
|
@@ -2683,10 +2394,10 @@ const RenderContent = /* @__PURE__ */ qwik.componentQrl(qwik.inlinedQrl((props)
|
|
|
2683
2394
|
]
|
|
2684
2395
|
}) : null
|
|
2685
2396
|
});
|
|
2686
|
-
}, "
|
|
2397
|
+
}, "RenderContent_component_hEAI0ahViXM"));
|
|
2687
2398
|
const RenderContent$1 = RenderContent;
|
|
2688
2399
|
const Symbol$1 = /* @__PURE__ */ qwik.componentQrl(qwik.inlinedQrl((props) => {
|
|
2689
|
-
const builderContext = qwik.useContext(
|
|
2400
|
+
const builderContext = qwik.useContext(BuilderContext);
|
|
2690
2401
|
const state = qwik.useStore({
|
|
2691
2402
|
className: "builder-symbol",
|
|
2692
2403
|
content: null
|
|
@@ -2694,7 +2405,7 @@ const Symbol$1 = /* @__PURE__ */ qwik.componentQrl(qwik.inlinedQrl((props) => {
|
|
|
2694
2405
|
qwik.useClientEffectQrl(qwik.inlinedQrl(() => {
|
|
2695
2406
|
const [props2, state2] = qwik.useLexicalScope();
|
|
2696
2407
|
state2.content = props2.symbol?.content;
|
|
2697
|
-
}, "
|
|
2408
|
+
}, "Symbol_component_useClientEffect_Kfc9q3nzeSQ", [
|
|
2698
2409
|
props,
|
|
2699
2410
|
state
|
|
2700
2411
|
]));
|
|
@@ -2713,16 +2424,13 @@ const Symbol$1 = /* @__PURE__ */ qwik.componentQrl(qwik.inlinedQrl((props) => {
|
|
|
2713
2424
|
}).then((response) => {
|
|
2714
2425
|
state2.content = response;
|
|
2715
2426
|
});
|
|
2716
|
-
}, "
|
|
2427
|
+
}, "Symbol_component_useWatch_9HNT04zd0Dk", [
|
|
2717
2428
|
builderContext,
|
|
2718
2429
|
props,
|
|
2719
2430
|
state
|
|
2720
2431
|
]));
|
|
2721
2432
|
return /* @__PURE__ */ jsxRuntime.jsx("div", {
|
|
2722
2433
|
...props.attributes,
|
|
2723
|
-
dataSet: {
|
|
2724
|
-
class: state.className
|
|
2725
|
-
},
|
|
2726
2434
|
class: state.className,
|
|
2727
2435
|
children: /* @__PURE__ */ jsxRuntime.jsx(RenderContent$1, {
|
|
2728
2436
|
apiKey: builderContext.apiKey,
|
|
@@ -2737,7 +2445,7 @@ const Symbol$1 = /* @__PURE__ */ qwik.componentQrl(qwik.inlinedQrl((props) => {
|
|
|
2737
2445
|
content: markMutable(state.content)
|
|
2738
2446
|
})
|
|
2739
2447
|
});
|
|
2740
|
-
}, "
|
|
2448
|
+
}, "Symbol_component_WVvggdkUPdk"));
|
|
2741
2449
|
const Symbol$2 = Symbol$1;
|
|
2742
2450
|
const settings = {};
|
|
2743
2451
|
function setEditorSettings(newSettings) {
|