@builder.io/sdk-qwik 0.16.20 → 0.16.21
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/browser/blocks/accordion/accordion.qwik.cjs +143 -74
- package/lib/browser/blocks/accordion/accordion.qwik.mjs +143 -74
- package/lib/browser/blocks/accordion/component-info.qwik.cjs +1 -2
- package/lib/browser/blocks/accordion/component-info.qwik.mjs +1 -2
- package/lib/browser/blocks/button/button.qwik.cjs +17 -8
- package/lib/browser/blocks/button/button.qwik.mjs +17 -8
- package/lib/browser/blocks/columns/columns.qwik.cjs +91 -45
- package/lib/browser/blocks/columns/columns.qwik.mjs +91 -45
- package/lib/browser/blocks/columns/component-info.qwik.cjs +3 -4
- package/lib/browser/blocks/columns/component-info.qwik.mjs +3 -4
- package/lib/browser/blocks/custom-code/custom-code.qwik.cjs +22 -18
- package/lib/browser/blocks/custom-code/custom-code.qwik.mjs +23 -19
- package/lib/browser/blocks/embed/embed.qwik.cjs +23 -17
- package/lib/browser/blocks/embed/embed.qwik.mjs +23 -17
- package/lib/browser/blocks/form/form/form.qwik.cjs +128 -74
- package/lib/browser/blocks/form/form/form.qwik.mjs +129 -75
- package/lib/browser/blocks/form/input/input.qwik.cjs +2 -2
- package/lib/browser/blocks/form/input/input.qwik.mjs +3 -3
- package/lib/browser/blocks/form/select/select.qwik.cjs +5 -7
- package/lib/browser/blocks/form/select/select.qwik.mjs +6 -8
- package/lib/browser/blocks/form/submit-button/submit-button.qwik.cjs +9 -7
- package/lib/browser/blocks/form/submit-button/submit-button.qwik.mjs +10 -8
- package/lib/browser/blocks/form/textarea/textarea.qwik.cjs +21 -11
- package/lib/browser/blocks/form/textarea/textarea.qwik.mjs +22 -12
- package/lib/browser/blocks/fragment/fragment.qwik.cjs +3 -6
- package/lib/browser/blocks/fragment/fragment.qwik.mjs +4 -7
- package/lib/browser/blocks/image/component-info.qwik.cjs +3 -6
- package/lib/browser/blocks/image/component-info.qwik.mjs +3 -6
- package/lib/browser/blocks/image/image.helpers.qwik.cjs +6 -12
- package/lib/browser/blocks/image/image.helpers.qwik.mjs +6 -12
- package/lib/browser/blocks/image/image.qwik.cjs +89 -63
- package/lib/browser/blocks/image/image.qwik.mjs +89 -63
- package/lib/browser/blocks/img/img.qwik.cjs +18 -12
- package/lib/browser/blocks/img/img.qwik.mjs +18 -12
- package/lib/browser/blocks/section/section.qwik.cjs +6 -7
- package/lib/browser/blocks/section/section.qwik.mjs +7 -8
- package/lib/browser/blocks/slot/slot.qwik.cjs +43 -17
- package/lib/browser/blocks/slot/slot.qwik.mjs +43 -17
- package/lib/browser/blocks/symbol/symbol.helpers.qwik.cjs +1 -2
- package/lib/browser/blocks/symbol/symbol.helpers.qwik.mjs +1 -2
- package/lib/browser/blocks/symbol/symbol.qwik.cjs +137 -45
- package/lib/browser/blocks/symbol/symbol.qwik.mjs +137 -45
- package/lib/browser/blocks/tabs/tabs.qwik.cjs +99 -45
- package/lib/browser/blocks/tabs/tabs.qwik.mjs +99 -45
- package/lib/browser/blocks/text/text.qwik.cjs +15 -11
- package/lib/browser/blocks/text/text.qwik.mjs +15 -11
- package/lib/browser/blocks/video/video.qwik.cjs +87 -73
- package/lib/browser/blocks/video/video.qwik.mjs +88 -74
- package/lib/browser/components/awaiter.qwik.cjs +7 -8
- package/lib/browser/components/awaiter.qwik.mjs +8 -9
- package/lib/browser/components/block/animator.qwik.cjs +11 -22
- package/lib/browser/components/block/animator.qwik.mjs +11 -22
- package/lib/browser/components/block/block.helpers.qwik.cjs +4 -8
- package/lib/browser/components/block/block.helpers.qwik.mjs +4 -8
- package/lib/browser/components/block/block.qwik.cjs +320 -114
- package/lib/browser/components/block/block.qwik.mjs +321 -115
- package/lib/browser/components/block/components/block-styles.qwik.cjs +39 -22
- package/lib/browser/components/block/components/block-styles.qwik.mjs +40 -23
- package/lib/browser/components/block/components/block-wrapper.qwik.cjs +18 -12
- package/lib/browser/components/block/components/block-wrapper.qwik.mjs +18 -12
- package/lib/browser/components/block/components/component-ref/component-ref.qwik.cjs +29 -12
- package/lib/browser/components/block/components/component-ref/component-ref.qwik.mjs +31 -14
- package/lib/browser/components/block/components/interactive-element.qwik.cjs +58 -25
- package/lib/browser/components/block/components/interactive-element.qwik.mjs +59 -26
- package/lib/browser/components/block/components/repeated-block.qwik.cjs +31 -10
- package/lib/browser/components/block/components/repeated-block.qwik.mjs +32 -11
- package/lib/browser/components/blocks/blocks-wrapper.qwik.cjs +73 -25
- package/lib/browser/components/blocks/blocks-wrapper.qwik.mjs +73 -25
- package/lib/browser/components/blocks/blocks.qwik.cjs +84 -20
- package/lib/browser/components/blocks/blocks.qwik.mjs +85 -21
- package/lib/browser/components/content/components/enable-editor.qwik.cjs +175 -90
- package/lib/browser/components/content/components/enable-editor.qwik.mjs +176 -91
- package/lib/browser/components/content/components/styles.helpers.qwik.cjs +6 -12
- package/lib/browser/components/content/components/styles.helpers.qwik.mjs +6 -12
- package/lib/browser/components/content/components/styles.qwik.cjs +20 -8
- package/lib/browser/components/content/components/styles.qwik.mjs +20 -8
- package/lib/browser/components/content/content.helpers.qwik.cjs +1 -2
- package/lib/browser/components/content/content.helpers.qwik.mjs +1 -2
- package/lib/browser/components/content/content.qwik.cjs +213 -51
- package/lib/browser/components/content/content.qwik.mjs +213 -51
- package/lib/browser/components/content-variants/content-variants.qwik.cjs +325 -76
- package/lib/browser/components/content-variants/content-variants.qwik.mjs +326 -77
- package/lib/browser/components/dynamic-renderer/dynamic-renderer.qwik.cjs +12 -11
- package/lib/browser/components/dynamic-renderer/dynamic-renderer.qwik.mjs +13 -12
- package/lib/browser/components/inlined-script.qwik.cjs +13 -8
- package/lib/browser/components/inlined-script.qwik.mjs +14 -9
- package/lib/browser/components/inlined-styles.qwik.cjs +13 -8
- package/lib/browser/components/inlined-styles.qwik.mjs +14 -9
- package/lib/browser/constants/device-sizes.qwik.cjs +1 -2
- package/lib/browser/constants/device-sizes.qwik.mjs +1 -2
- package/lib/browser/constants/sdk-version.qwik.cjs +1 -1
- package/lib/browser/constants/sdk-version.qwik.mjs +1 -1
- package/lib/browser/functions/evaluate/evaluate.qwik.cjs +2 -4
- package/lib/browser/functions/evaluate/evaluate.qwik.mjs +2 -4
- package/lib/browser/functions/evaluate/helpers.qwik.cjs +3 -6
- package/lib/browser/functions/evaluate/helpers.qwik.mjs +3 -6
- package/lib/browser/functions/evaluate/should-force-browser-runtime-in-node.qwik.cjs +1 -2
- package/lib/browser/functions/evaluate/should-force-browser-runtime-in-node.qwik.mjs +1 -2
- package/lib/browser/functions/get-block-actions-handler.qwik.cjs +14 -8
- package/lib/browser/functions/get-block-actions-handler.qwik.mjs +15 -9
- package/lib/browser/functions/get-block-actions.qwik.cjs +2 -4
- package/lib/browser/functions/get-block-actions.qwik.mjs +2 -4
- package/lib/browser/functions/get-builder-search-params/index.qwik.cjs +2 -4
- package/lib/browser/functions/get-builder-search-params/index.qwik.mjs +2 -4
- package/lib/browser/functions/get-content/generate-content-url.qwik.cjs +11 -22
- package/lib/browser/functions/get-content/generate-content-url.qwik.mjs +11 -22
- package/lib/browser/functions/get-content/index.qwik.cjs +2 -4
- package/lib/browser/functions/get-content/index.qwik.mjs +2 -4
- package/lib/browser/functions/get-global-this.qwik.cjs +4 -8
- package/lib/browser/functions/get-global-this.qwik.mjs +4 -8
- package/lib/browser/functions/get-processed-block.qwik.cjs +8 -15
- package/lib/browser/functions/get-processed-block.qwik.mjs +8 -15
- package/lib/browser/functions/is-from-trusted-host.qwik.cjs +1 -2
- package/lib/browser/functions/is-from-trusted-host.qwik.mjs +1 -2
- package/lib/browser/functions/is-previewing.qwik.cjs +1 -2
- package/lib/browser/functions/is-previewing.qwik.mjs +1 -2
- package/lib/browser/functions/register-component.qwik.cjs +1 -2
- package/lib/browser/functions/register-component.qwik.mjs +1 -2
- package/lib/browser/functions/register.qwik.cjs +3 -6
- package/lib/browser/functions/register.qwik.mjs +3 -6
- package/lib/browser/functions/set.qwik.cjs +1 -2
- package/lib/browser/functions/set.qwik.mjs +1 -2
- package/lib/browser/functions/track/helpers.qwik.cjs +1 -2
- package/lib/browser/functions/track/helpers.qwik.mjs +1 -2
- package/lib/browser/functions/track/index.qwik.cjs +4 -8
- package/lib/browser/functions/track/index.qwik.mjs +4 -8
- package/lib/browser/functions/track/interaction.qwik.cjs +3 -6
- package/lib/browser/functions/track/interaction.qwik.mjs +3 -6
- package/lib/browser/helpers/ab-tests.qwik.cjs +8 -15
- package/lib/browser/helpers/ab-tests.qwik.mjs +9 -16
- package/lib/browser/helpers/cookie.qwik.cjs +2 -4
- package/lib/browser/helpers/cookie.qwik.mjs +2 -4
- package/lib/browser/helpers/css.qwik.cjs +4 -6
- package/lib/browser/helpers/css.qwik.mjs +4 -6
- package/lib/browser/helpers/flatten.qwik.cjs +2 -3
- package/lib/browser/helpers/flatten.qwik.mjs +2 -3
- package/lib/browser/helpers/localStorage.qwik.cjs +2 -4
- package/lib/browser/helpers/localStorage.qwik.mjs +2 -4
- package/lib/browser/helpers/omit.qwik.cjs +1 -2
- package/lib/browser/helpers/omit.qwik.mjs +1 -2
- package/lib/browser/helpers/search/search.qwik.cjs +2 -3
- package/lib/browser/helpers/search/search.qwik.mjs +2 -3
- package/lib/browser/helpers/sessionId.qwik.cjs +3 -4
- package/lib/browser/helpers/sessionId.qwik.mjs +3 -4
- package/lib/browser/helpers/subscribe-to-editor.qwik.cjs +5 -10
- package/lib/browser/helpers/subscribe-to-editor.qwik.mjs +5 -10
- package/lib/browser/helpers/url.qwik.cjs +2 -4
- package/lib/browser/helpers/url.qwik.mjs +2 -4
- package/lib/browser/helpers/visitorId.qwik.cjs +3 -4
- package/lib/browser/helpers/visitorId.qwik.mjs +3 -4
- package/lib/browser/scripts/init-editing.qwik.cjs +19 -25
- package/lib/browser/scripts/init-editing.qwik.mjs +19 -25
- package/lib/edge/blocks/accordion/accordion.qwik.cjs +143 -74
- package/lib/edge/blocks/accordion/accordion.qwik.mjs +143 -74
- package/lib/edge/blocks/accordion/component-info.qwik.cjs +1 -2
- package/lib/edge/blocks/accordion/component-info.qwik.mjs +1 -2
- package/lib/edge/blocks/button/button.qwik.cjs +17 -8
- package/lib/edge/blocks/button/button.qwik.mjs +17 -8
- package/lib/edge/blocks/columns/columns.qwik.cjs +91 -45
- package/lib/edge/blocks/columns/columns.qwik.mjs +91 -45
- package/lib/edge/blocks/columns/component-info.qwik.cjs +3 -4
- package/lib/edge/blocks/columns/component-info.qwik.mjs +3 -4
- package/lib/edge/blocks/custom-code/custom-code.qwik.cjs +22 -18
- package/lib/edge/blocks/custom-code/custom-code.qwik.mjs +23 -19
- package/lib/edge/blocks/embed/embed.qwik.cjs +23 -17
- package/lib/edge/blocks/embed/embed.qwik.mjs +23 -17
- package/lib/edge/blocks/form/form/form.qwik.cjs +128 -74
- package/lib/edge/blocks/form/form/form.qwik.mjs +129 -75
- package/lib/edge/blocks/form/input/input.qwik.cjs +2 -2
- package/lib/edge/blocks/form/input/input.qwik.mjs +3 -3
- package/lib/edge/blocks/form/select/select.qwik.cjs +5 -7
- package/lib/edge/blocks/form/select/select.qwik.mjs +6 -8
- package/lib/edge/blocks/form/submit-button/submit-button.qwik.cjs +9 -7
- package/lib/edge/blocks/form/submit-button/submit-button.qwik.mjs +10 -8
- package/lib/edge/blocks/form/textarea/textarea.qwik.cjs +21 -11
- package/lib/edge/blocks/form/textarea/textarea.qwik.mjs +22 -12
- package/lib/edge/blocks/fragment/fragment.qwik.cjs +3 -6
- package/lib/edge/blocks/fragment/fragment.qwik.mjs +4 -7
- package/lib/edge/blocks/image/component-info.qwik.cjs +3 -6
- package/lib/edge/blocks/image/component-info.qwik.mjs +3 -6
- package/lib/edge/blocks/image/image.helpers.qwik.cjs +6 -12
- package/lib/edge/blocks/image/image.helpers.qwik.mjs +6 -12
- package/lib/edge/blocks/image/image.qwik.cjs +89 -63
- package/lib/edge/blocks/image/image.qwik.mjs +89 -63
- package/lib/edge/blocks/img/img.qwik.cjs +18 -12
- package/lib/edge/blocks/img/img.qwik.mjs +18 -12
- package/lib/edge/blocks/section/section.qwik.cjs +6 -7
- package/lib/edge/blocks/section/section.qwik.mjs +7 -8
- package/lib/edge/blocks/slot/slot.qwik.cjs +43 -17
- package/lib/edge/blocks/slot/slot.qwik.mjs +43 -17
- package/lib/edge/blocks/symbol/symbol.helpers.qwik.cjs +1 -2
- package/lib/edge/blocks/symbol/symbol.helpers.qwik.mjs +1 -2
- package/lib/edge/blocks/symbol/symbol.qwik.cjs +137 -45
- package/lib/edge/blocks/symbol/symbol.qwik.mjs +137 -45
- package/lib/edge/blocks/tabs/tabs.qwik.cjs +99 -45
- package/lib/edge/blocks/tabs/tabs.qwik.mjs +99 -45
- package/lib/edge/blocks/text/text.qwik.cjs +15 -11
- package/lib/edge/blocks/text/text.qwik.mjs +15 -11
- package/lib/edge/blocks/video/video.qwik.cjs +87 -73
- package/lib/edge/blocks/video/video.qwik.mjs +88 -74
- package/lib/edge/components/awaiter.qwik.cjs +7 -8
- package/lib/edge/components/awaiter.qwik.mjs +8 -9
- package/lib/edge/components/block/animator.qwik.cjs +11 -22
- package/lib/edge/components/block/animator.qwik.mjs +11 -22
- package/lib/edge/components/block/block.helpers.qwik.cjs +4 -8
- package/lib/edge/components/block/block.helpers.qwik.mjs +4 -8
- package/lib/edge/components/block/block.qwik.cjs +320 -114
- package/lib/edge/components/block/block.qwik.mjs +321 -115
- package/lib/edge/components/block/components/block-styles.qwik.cjs +39 -22
- package/lib/edge/components/block/components/block-styles.qwik.mjs +40 -23
- package/lib/edge/components/block/components/block-wrapper.qwik.cjs +18 -12
- package/lib/edge/components/block/components/block-wrapper.qwik.mjs +18 -12
- package/lib/edge/components/block/components/component-ref/component-ref.qwik.cjs +29 -12
- package/lib/edge/components/block/components/component-ref/component-ref.qwik.mjs +31 -14
- package/lib/edge/components/block/components/interactive-element.qwik.cjs +58 -25
- package/lib/edge/components/block/components/interactive-element.qwik.mjs +59 -26
- package/lib/edge/components/block/components/repeated-block.qwik.cjs +31 -10
- package/lib/edge/components/block/components/repeated-block.qwik.mjs +32 -11
- package/lib/edge/components/blocks/blocks-wrapper.qwik.cjs +73 -25
- package/lib/edge/components/blocks/blocks-wrapper.qwik.mjs +73 -25
- package/lib/edge/components/blocks/blocks.qwik.cjs +84 -20
- package/lib/edge/components/blocks/blocks.qwik.mjs +85 -21
- package/lib/edge/components/content/components/enable-editor.qwik.cjs +175 -90
- package/lib/edge/components/content/components/enable-editor.qwik.mjs +176 -91
- package/lib/edge/components/content/components/styles.helpers.qwik.cjs +6 -12
- package/lib/edge/components/content/components/styles.helpers.qwik.mjs +6 -12
- package/lib/edge/components/content/components/styles.qwik.cjs +20 -8
- package/lib/edge/components/content/components/styles.qwik.mjs +20 -8
- package/lib/edge/components/content/content.helpers.qwik.cjs +1 -2
- package/lib/edge/components/content/content.helpers.qwik.mjs +1 -2
- package/lib/edge/components/content/content.qwik.cjs +213 -51
- package/lib/edge/components/content/content.qwik.mjs +213 -51
- package/lib/edge/components/content-variants/content-variants.qwik.cjs +325 -76
- package/lib/edge/components/content-variants/content-variants.qwik.mjs +326 -77
- package/lib/edge/components/dynamic-renderer/dynamic-renderer.qwik.cjs +12 -11
- package/lib/edge/components/dynamic-renderer/dynamic-renderer.qwik.mjs +13 -12
- package/lib/edge/components/inlined-script.qwik.cjs +13 -8
- package/lib/edge/components/inlined-script.qwik.mjs +14 -9
- package/lib/edge/components/inlined-styles.qwik.cjs +13 -8
- package/lib/edge/components/inlined-styles.qwik.mjs +14 -9
- package/lib/edge/constants/device-sizes.qwik.cjs +1 -2
- package/lib/edge/constants/device-sizes.qwik.mjs +1 -2
- package/lib/edge/constants/sdk-version.qwik.cjs +1 -1
- package/lib/edge/constants/sdk-version.qwik.mjs +1 -1
- package/lib/edge/functions/evaluate/edge-runtime/acorn-interpreter.qwik.cjs +7 -6
- package/lib/edge/functions/evaluate/edge-runtime/acorn-interpreter.qwik.mjs +7 -6
- package/lib/edge/functions/evaluate/edge-runtime/edge-runtime.qwik.cjs +11 -20
- package/lib/edge/functions/evaluate/edge-runtime/edge-runtime.qwik.mjs +11 -20
- package/lib/edge/functions/evaluate/evaluate.qwik.cjs +2 -4
- package/lib/edge/functions/evaluate/evaluate.qwik.mjs +2 -4
- package/lib/edge/functions/evaluate/helpers.qwik.cjs +3 -6
- package/lib/edge/functions/evaluate/helpers.qwik.mjs +3 -6
- package/lib/edge/functions/evaluate/should-force-browser-runtime-in-node.qwik.cjs +1 -2
- package/lib/edge/functions/evaluate/should-force-browser-runtime-in-node.qwik.mjs +1 -2
- package/lib/edge/functions/get-block-actions-handler.qwik.cjs +14 -8
- package/lib/edge/functions/get-block-actions-handler.qwik.mjs +15 -9
- package/lib/edge/functions/get-block-actions.qwik.cjs +2 -4
- package/lib/edge/functions/get-block-actions.qwik.mjs +2 -4
- package/lib/edge/functions/get-builder-search-params/index.qwik.cjs +2 -4
- package/lib/edge/functions/get-builder-search-params/index.qwik.mjs +2 -4
- package/lib/edge/functions/get-content/generate-content-url.qwik.cjs +11 -22
- package/lib/edge/functions/get-content/generate-content-url.qwik.mjs +11 -22
- package/lib/edge/functions/get-content/index.qwik.cjs +2 -4
- package/lib/edge/functions/get-content/index.qwik.mjs +2 -4
- package/lib/edge/functions/get-global-this.qwik.cjs +4 -8
- package/lib/edge/functions/get-global-this.qwik.mjs +4 -8
- package/lib/edge/functions/get-processed-block.qwik.cjs +8 -15
- package/lib/edge/functions/get-processed-block.qwik.mjs +8 -15
- package/lib/edge/functions/is-from-trusted-host.qwik.cjs +1 -2
- package/lib/edge/functions/is-from-trusted-host.qwik.mjs +1 -2
- package/lib/edge/functions/is-previewing.qwik.cjs +1 -2
- package/lib/edge/functions/is-previewing.qwik.mjs +1 -2
- package/lib/edge/functions/register-component.qwik.cjs +1 -2
- package/lib/edge/functions/register-component.qwik.mjs +1 -2
- package/lib/edge/functions/register.qwik.cjs +3 -6
- package/lib/edge/functions/register.qwik.mjs +3 -6
- package/lib/edge/functions/set.qwik.cjs +1 -2
- package/lib/edge/functions/set.qwik.mjs +1 -2
- package/lib/edge/functions/track/helpers.qwik.cjs +1 -2
- package/lib/edge/functions/track/helpers.qwik.mjs +1 -2
- package/lib/edge/functions/track/index.qwik.cjs +4 -8
- package/lib/edge/functions/track/index.qwik.mjs +4 -8
- package/lib/edge/functions/track/interaction.qwik.cjs +3 -6
- package/lib/edge/functions/track/interaction.qwik.mjs +3 -6
- package/lib/edge/helpers/ab-tests.qwik.cjs +8 -15
- package/lib/edge/helpers/ab-tests.qwik.mjs +9 -16
- package/lib/edge/helpers/cookie.qwik.cjs +2 -4
- package/lib/edge/helpers/cookie.qwik.mjs +2 -4
- package/lib/edge/helpers/css.qwik.cjs +4 -6
- package/lib/edge/helpers/css.qwik.mjs +4 -6
- package/lib/edge/helpers/flatten.qwik.cjs +2 -3
- package/lib/edge/helpers/flatten.qwik.mjs +2 -3
- package/lib/edge/helpers/localStorage.qwik.cjs +2 -4
- package/lib/edge/helpers/localStorage.qwik.mjs +2 -4
- package/lib/edge/helpers/omit.qwik.cjs +1 -2
- package/lib/edge/helpers/omit.qwik.mjs +1 -2
- package/lib/edge/helpers/search/search.qwik.cjs +2 -3
- package/lib/edge/helpers/search/search.qwik.mjs +2 -3
- package/lib/edge/helpers/sessionId.qwik.cjs +3 -4
- package/lib/edge/helpers/sessionId.qwik.mjs +3 -4
- package/lib/edge/helpers/subscribe-to-editor.qwik.cjs +5 -10
- package/lib/edge/helpers/subscribe-to-editor.qwik.mjs +5 -10
- package/lib/edge/helpers/url.qwik.cjs +2 -4
- package/lib/edge/helpers/url.qwik.mjs +2 -4
- package/lib/edge/helpers/visitorId.qwik.cjs +3 -4
- package/lib/edge/helpers/visitorId.qwik.mjs +3 -4
- package/lib/edge/scripts/init-editing.qwik.cjs +19 -25
- package/lib/edge/scripts/init-editing.qwik.mjs +19 -25
- package/lib/node/blocks/accordion/accordion.qwik.cjs +143 -74
- package/lib/node/blocks/accordion/accordion.qwik.mjs +143 -74
- package/lib/node/blocks/accordion/component-info.qwik.cjs +1 -2
- package/lib/node/blocks/accordion/component-info.qwik.mjs +1 -2
- package/lib/node/blocks/button/button.qwik.cjs +17 -8
- package/lib/node/blocks/button/button.qwik.mjs +17 -8
- package/lib/node/blocks/columns/columns.qwik.cjs +91 -45
- package/lib/node/blocks/columns/columns.qwik.mjs +91 -45
- package/lib/node/blocks/columns/component-info.qwik.cjs +3 -4
- package/lib/node/blocks/columns/component-info.qwik.mjs +3 -4
- package/lib/node/blocks/custom-code/custom-code.qwik.cjs +22 -18
- package/lib/node/blocks/custom-code/custom-code.qwik.mjs +23 -19
- package/lib/node/blocks/embed/embed.qwik.cjs +23 -17
- package/lib/node/blocks/embed/embed.qwik.mjs +23 -17
- package/lib/node/blocks/form/form/form.qwik.cjs +128 -74
- package/lib/node/blocks/form/form/form.qwik.mjs +129 -75
- package/lib/node/blocks/form/input/input.qwik.cjs +2 -2
- package/lib/node/blocks/form/input/input.qwik.mjs +3 -3
- package/lib/node/blocks/form/select/select.qwik.cjs +5 -7
- package/lib/node/blocks/form/select/select.qwik.mjs +6 -8
- package/lib/node/blocks/form/submit-button/submit-button.qwik.cjs +9 -7
- package/lib/node/blocks/form/submit-button/submit-button.qwik.mjs +10 -8
- package/lib/node/blocks/form/textarea/textarea.qwik.cjs +21 -11
- package/lib/node/blocks/form/textarea/textarea.qwik.mjs +22 -12
- package/lib/node/blocks/fragment/fragment.qwik.cjs +3 -6
- package/lib/node/blocks/fragment/fragment.qwik.mjs +4 -7
- package/lib/node/blocks/image/component-info.qwik.cjs +3 -6
- package/lib/node/blocks/image/component-info.qwik.mjs +3 -6
- package/lib/node/blocks/image/image.helpers.qwik.cjs +6 -12
- package/lib/node/blocks/image/image.helpers.qwik.mjs +6 -12
- package/lib/node/blocks/image/image.qwik.cjs +89 -63
- package/lib/node/blocks/image/image.qwik.mjs +89 -63
- package/lib/node/blocks/img/img.qwik.cjs +18 -12
- package/lib/node/blocks/img/img.qwik.mjs +18 -12
- package/lib/node/blocks/section/section.qwik.cjs +6 -7
- package/lib/node/blocks/section/section.qwik.mjs +7 -8
- package/lib/node/blocks/slot/slot.qwik.cjs +43 -17
- package/lib/node/blocks/slot/slot.qwik.mjs +43 -17
- package/lib/node/blocks/symbol/symbol.helpers.qwik.cjs +1 -2
- package/lib/node/blocks/symbol/symbol.helpers.qwik.mjs +1 -2
- package/lib/node/blocks/symbol/symbol.qwik.cjs +137 -45
- package/lib/node/blocks/symbol/symbol.qwik.mjs +137 -45
- package/lib/node/blocks/tabs/tabs.qwik.cjs +99 -45
- package/lib/node/blocks/tabs/tabs.qwik.mjs +99 -45
- package/lib/node/blocks/text/text.qwik.cjs +15 -11
- package/lib/node/blocks/text/text.qwik.mjs +15 -11
- package/lib/node/blocks/video/video.qwik.cjs +87 -73
- package/lib/node/blocks/video/video.qwik.mjs +88 -74
- package/lib/node/components/awaiter.qwik.cjs +7 -8
- package/lib/node/components/awaiter.qwik.mjs +8 -9
- package/lib/node/components/block/animator.qwik.cjs +11 -22
- package/lib/node/components/block/animator.qwik.mjs +11 -22
- package/lib/node/components/block/block.helpers.qwik.cjs +4 -8
- package/lib/node/components/block/block.helpers.qwik.mjs +4 -8
- package/lib/node/components/block/block.qwik.cjs +320 -114
- package/lib/node/components/block/block.qwik.mjs +321 -115
- package/lib/node/components/block/components/block-styles.qwik.cjs +39 -22
- package/lib/node/components/block/components/block-styles.qwik.mjs +40 -23
- package/lib/node/components/block/components/block-wrapper.qwik.cjs +18 -12
- package/lib/node/components/block/components/block-wrapper.qwik.mjs +18 -12
- package/lib/node/components/block/components/component-ref/component-ref.qwik.cjs +29 -12
- package/lib/node/components/block/components/component-ref/component-ref.qwik.mjs +31 -14
- package/lib/node/components/block/components/interactive-element.qwik.cjs +58 -25
- package/lib/node/components/block/components/interactive-element.qwik.mjs +59 -26
- package/lib/node/components/block/components/repeated-block.qwik.cjs +31 -10
- package/lib/node/components/block/components/repeated-block.qwik.mjs +32 -11
- package/lib/node/components/blocks/blocks-wrapper.qwik.cjs +73 -25
- package/lib/node/components/blocks/blocks-wrapper.qwik.mjs +73 -25
- package/lib/node/components/blocks/blocks.qwik.cjs +84 -20
- package/lib/node/components/blocks/blocks.qwik.mjs +85 -21
- package/lib/node/components/content/components/enable-editor.qwik.cjs +175 -90
- package/lib/node/components/content/components/enable-editor.qwik.mjs +176 -91
- package/lib/node/components/content/components/styles.helpers.qwik.cjs +6 -12
- package/lib/node/components/content/components/styles.helpers.qwik.mjs +6 -12
- package/lib/node/components/content/components/styles.qwik.cjs +20 -8
- package/lib/node/components/content/components/styles.qwik.mjs +20 -8
- package/lib/node/components/content/content.helpers.qwik.cjs +1 -2
- package/lib/node/components/content/content.helpers.qwik.mjs +1 -2
- package/lib/node/components/content/content.qwik.cjs +213 -51
- package/lib/node/components/content/content.qwik.mjs +213 -51
- package/lib/node/components/content-variants/content-variants.qwik.cjs +325 -76
- package/lib/node/components/content-variants/content-variants.qwik.mjs +326 -77
- package/lib/node/components/dynamic-renderer/dynamic-renderer.qwik.cjs +12 -11
- package/lib/node/components/dynamic-renderer/dynamic-renderer.qwik.mjs +13 -12
- package/lib/node/components/inlined-script.qwik.cjs +13 -8
- package/lib/node/components/inlined-script.qwik.mjs +14 -9
- package/lib/node/components/inlined-styles.qwik.cjs +13 -8
- package/lib/node/components/inlined-styles.qwik.mjs +14 -9
- package/lib/node/constants/device-sizes.qwik.cjs +1 -2
- package/lib/node/constants/device-sizes.qwik.mjs +1 -2
- package/lib/node/constants/sdk-version.qwik.cjs +1 -1
- package/lib/node/constants/sdk-version.qwik.mjs +1 -1
- package/lib/node/functions/evaluate/evaluate.qwik.cjs +2 -4
- package/lib/node/functions/evaluate/evaluate.qwik.mjs +2 -4
- package/lib/node/functions/evaluate/helpers.qwik.cjs +3 -6
- package/lib/node/functions/evaluate/helpers.qwik.mjs +3 -6
- package/lib/node/functions/evaluate/node-runtime/init.qwik.cjs +1 -2
- package/lib/node/functions/evaluate/node-runtime/init.qwik.mjs +1 -2
- package/lib/node/functions/evaluate/should-force-browser-runtime-in-node.qwik.cjs +1 -2
- package/lib/node/functions/evaluate/should-force-browser-runtime-in-node.qwik.mjs +1 -2
- package/lib/node/functions/get-block-actions-handler.qwik.cjs +14 -8
- package/lib/node/functions/get-block-actions-handler.qwik.mjs +15 -9
- package/lib/node/functions/get-block-actions.qwik.cjs +2 -4
- package/lib/node/functions/get-block-actions.qwik.mjs +2 -4
- package/lib/node/functions/get-builder-search-params/index.qwik.cjs +2 -4
- package/lib/node/functions/get-builder-search-params/index.qwik.mjs +2 -4
- package/lib/node/functions/get-content/generate-content-url.qwik.cjs +11 -22
- package/lib/node/functions/get-content/generate-content-url.qwik.mjs +11 -22
- package/lib/node/functions/get-content/index.qwik.cjs +2 -4
- package/lib/node/functions/get-content/index.qwik.mjs +2 -4
- package/lib/node/functions/get-global-this.qwik.cjs +4 -8
- package/lib/node/functions/get-global-this.qwik.mjs +4 -8
- package/lib/node/functions/get-processed-block.qwik.cjs +8 -15
- package/lib/node/functions/get-processed-block.qwik.mjs +8 -15
- package/lib/node/functions/is-from-trusted-host.qwik.cjs +1 -2
- package/lib/node/functions/is-from-trusted-host.qwik.mjs +1 -2
- package/lib/node/functions/is-previewing.qwik.cjs +1 -2
- package/lib/node/functions/is-previewing.qwik.mjs +1 -2
- package/lib/node/functions/register-component.qwik.cjs +1 -2
- package/lib/node/functions/register-component.qwik.mjs +1 -2
- package/lib/node/functions/register.qwik.cjs +3 -6
- package/lib/node/functions/register.qwik.mjs +3 -6
- package/lib/node/functions/set.qwik.cjs +1 -2
- package/lib/node/functions/set.qwik.mjs +1 -2
- package/lib/node/functions/track/helpers.qwik.cjs +1 -2
- package/lib/node/functions/track/helpers.qwik.mjs +1 -2
- package/lib/node/functions/track/index.qwik.cjs +4 -8
- package/lib/node/functions/track/index.qwik.mjs +4 -8
- package/lib/node/functions/track/interaction.qwik.cjs +3 -6
- package/lib/node/functions/track/interaction.qwik.mjs +3 -6
- package/lib/node/helpers/ab-tests.qwik.cjs +8 -15
- package/lib/node/helpers/ab-tests.qwik.mjs +9 -16
- package/lib/node/helpers/cookie.qwik.cjs +2 -4
- package/lib/node/helpers/cookie.qwik.mjs +2 -4
- package/lib/node/helpers/css.qwik.cjs +4 -6
- package/lib/node/helpers/css.qwik.mjs +4 -6
- package/lib/node/helpers/flatten.qwik.cjs +2 -3
- package/lib/node/helpers/flatten.qwik.mjs +2 -3
- package/lib/node/helpers/localStorage.qwik.cjs +2 -4
- package/lib/node/helpers/localStorage.qwik.mjs +2 -4
- package/lib/node/helpers/omit.qwik.cjs +1 -2
- package/lib/node/helpers/omit.qwik.mjs +1 -2
- package/lib/node/helpers/search/search.qwik.cjs +2 -3
- package/lib/node/helpers/search/search.qwik.mjs +2 -3
- package/lib/node/helpers/sessionId.qwik.cjs +3 -4
- package/lib/node/helpers/sessionId.qwik.mjs +3 -4
- package/lib/node/helpers/subscribe-to-editor.qwik.cjs +5 -10
- package/lib/node/helpers/subscribe-to-editor.qwik.mjs +5 -10
- package/lib/node/helpers/url.qwik.cjs +2 -4
- package/lib/node/helpers/url.qwik.mjs +2 -4
- package/lib/node/helpers/visitorId.qwik.cjs +3 -4
- package/lib/node/helpers/visitorId.qwik.mjs +3 -4
- package/lib/node/scripts/init-editing.qwik.cjs +19 -25
- package/lib/node/scripts/init-editing.qwik.mjs +19 -25
- package/package.json +2 -2
- package/types/src/constants/sdk-version.d.ts +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { componentQrl, inlinedQrl, createElement } from "@builder.io/qwik";
|
|
2
2
|
import { isEditing } from "../../../functions/is-editing.qwik.mjs";
|
|
3
|
-
const FormInputComponent =
|
|
3
|
+
const FormInputComponent = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl((props) => {
|
|
4
4
|
return /* @__PURE__ */ createElement("input", {
|
|
5
5
|
...props.attributes,
|
|
6
6
|
key: isEditing() && props.defaultValue ? props.defaultValue : "default-key",
|
|
@@ -11,7 +11,7 @@ const FormInputComponent = component$((props) => {
|
|
|
11
11
|
defaultValue: props.defaultValue,
|
|
12
12
|
required: props.required
|
|
13
13
|
});
|
|
14
|
-
});
|
|
14
|
+
}, "FormInputComponent_component_AUUjdN0ueMs"));
|
|
15
15
|
export {
|
|
16
16
|
FormInputComponent,
|
|
17
17
|
FormInputComponent as default
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
|
3
|
-
const jsxRuntime = require("@builder.io/qwik/jsx-runtime");
|
|
4
3
|
const qwik = require("@builder.io/qwik");
|
|
5
4
|
const isEditing = require("../../../functions/is-editing.qwik.cjs");
|
|
6
|
-
const SelectComponent = qwik.
|
|
5
|
+
const SelectComponent = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inlinedQrl((props) => {
|
|
7
6
|
return /* @__PURE__ */ qwik.createElement("select", {
|
|
8
7
|
...props.attributes,
|
|
9
8
|
value: props.value,
|
|
@@ -12,11 +11,10 @@ const SelectComponent = qwik.component$((props) => {
|
|
|
12
11
|
name: props.name,
|
|
13
12
|
required: props.required
|
|
14
13
|
}, (props.options || []).map((option, index) => {
|
|
15
|
-
return /* @__PURE__ */
|
|
16
|
-
value: option
|
|
17
|
-
|
|
18
|
-
}, `${option.name}-${index}`);
|
|
14
|
+
return /* @__PURE__ */ qwik._jsxQ("option", {
|
|
15
|
+
value: qwik._wrapSignal(option, "value")
|
|
16
|
+
}, null, option.name || option.value, 1, `${option.name}-${index}`);
|
|
19
17
|
}));
|
|
20
|
-
});
|
|
18
|
+
}, "SelectComponent_component_SPKbsFLikZU"));
|
|
21
19
|
exports.SelectComponent = SelectComponent;
|
|
22
20
|
exports.default = SelectComponent;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { component$, createElement } from "@builder.io/qwik";
|
|
1
|
+
import { componentQrl, inlinedQrl, createElement, _jsxQ, _wrapSignal } from "@builder.io/qwik";
|
|
3
2
|
import { isEditing } from "../../../functions/is-editing.qwik.mjs";
|
|
4
|
-
const SelectComponent =
|
|
3
|
+
const SelectComponent = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl((props) => {
|
|
5
4
|
return /* @__PURE__ */ createElement("select", {
|
|
6
5
|
...props.attributes,
|
|
7
6
|
value: props.value,
|
|
@@ -10,12 +9,11 @@ const SelectComponent = component$((props) => {
|
|
|
10
9
|
name: props.name,
|
|
11
10
|
required: props.required
|
|
12
11
|
}, (props.options || []).map((option, index) => {
|
|
13
|
-
return /* @__PURE__ */
|
|
14
|
-
value: option
|
|
15
|
-
|
|
16
|
-
}, `${option.name}-${index}`);
|
|
12
|
+
return /* @__PURE__ */ _jsxQ("option", {
|
|
13
|
+
value: _wrapSignal(option, "value")
|
|
14
|
+
}, null, option.name || option.value, 1, `${option.name}-${index}`);
|
|
17
15
|
}));
|
|
18
|
-
});
|
|
16
|
+
}, "SelectComponent_component_SPKbsFLikZU"));
|
|
19
17
|
export {
|
|
20
18
|
SelectComponent,
|
|
21
19
|
SelectComponent as default
|
|
@@ -1,13 +1,15 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
|
3
|
-
const jsxRuntime = require("@builder.io/qwik/jsx-runtime");
|
|
4
3
|
const qwik = require("@builder.io/qwik");
|
|
5
|
-
const SubmitButton = qwik.
|
|
6
|
-
return /* @__PURE__ */
|
|
7
|
-
type: "submit",
|
|
4
|
+
const SubmitButton = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inlinedQrl((props) => {
|
|
5
|
+
return /* @__PURE__ */ qwik._jsxS("button", {
|
|
8
6
|
...props.attributes,
|
|
9
|
-
children:
|
|
10
|
-
|
|
11
|
-
|
|
7
|
+
children: qwik._fnSignal((p0) => p0.text, [
|
|
8
|
+
props
|
|
9
|
+
], "p0.text")
|
|
10
|
+
}, {
|
|
11
|
+
type: "submit"
|
|
12
|
+
}, 0, "6z_0");
|
|
13
|
+
}, "SubmitButton_component_NXvMBMCDhwc"));
|
|
12
14
|
exports.SubmitButton = SubmitButton;
|
|
13
15
|
exports.default = SubmitButton;
|
|
@@ -1,12 +1,14 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
return /* @__PURE__ */ jsx("button", {
|
|
5
|
-
type: "submit",
|
|
1
|
+
import { componentQrl, inlinedQrl, _jsxS, _fnSignal } from "@builder.io/qwik";
|
|
2
|
+
const SubmitButton = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl((props) => {
|
|
3
|
+
return /* @__PURE__ */ _jsxS("button", {
|
|
6
4
|
...props.attributes,
|
|
7
|
-
children:
|
|
8
|
-
|
|
9
|
-
|
|
5
|
+
children: _fnSignal((p0) => p0.text, [
|
|
6
|
+
props
|
|
7
|
+
], "p0.text")
|
|
8
|
+
}, {
|
|
9
|
+
type: "submit"
|
|
10
|
+
}, 0, "6z_0");
|
|
11
|
+
}, "SubmitButton_component_NXvMBMCDhwc"));
|
|
10
12
|
export {
|
|
11
13
|
SubmitButton,
|
|
12
14
|
SubmitButton as default
|
|
@@ -1,16 +1,26 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
|
3
|
-
const jsxRuntime = require("@builder.io/qwik/jsx-runtime");
|
|
4
3
|
const qwik = require("@builder.io/qwik");
|
|
5
|
-
const Textarea = qwik.
|
|
6
|
-
return /* @__PURE__ */
|
|
7
|
-
...props.attributes
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
4
|
+
const Textarea = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inlinedQrl((props) => {
|
|
5
|
+
return /* @__PURE__ */ qwik._jsxS("textarea", {
|
|
6
|
+
...props.attributes
|
|
7
|
+
}, {
|
|
8
|
+
defaultValue: qwik._fnSignal((p0) => p0.defaultValue, [
|
|
9
|
+
props
|
|
10
|
+
], "p0.defaultValue"),
|
|
11
|
+
name: qwik._fnSignal((p0) => p0.name, [
|
|
12
|
+
props
|
|
13
|
+
], "p0.name"),
|
|
14
|
+
placeholder: qwik._fnSignal((p0) => p0.placeholder, [
|
|
15
|
+
props
|
|
16
|
+
], "p0.placeholder"),
|
|
17
|
+
required: qwik._fnSignal((p0) => p0.required, [
|
|
18
|
+
props
|
|
19
|
+
], "p0.required"),
|
|
20
|
+
value: qwik._fnSignal((p0) => p0.value, [
|
|
21
|
+
props
|
|
22
|
+
], "p0.value")
|
|
23
|
+
}, 0, "kE_0");
|
|
24
|
+
}, "Textarea_component_o1TcxV139Oc"));
|
|
15
25
|
exports.Textarea = Textarea;
|
|
16
26
|
exports.default = Textarea;
|
|
@@ -1,15 +1,25 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
1
|
+
import { componentQrl, inlinedQrl, _jsxS, _fnSignal } from "@builder.io/qwik";
|
|
2
|
+
const Textarea = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl((props) => {
|
|
3
|
+
return /* @__PURE__ */ _jsxS("textarea", {
|
|
4
|
+
...props.attributes
|
|
5
|
+
}, {
|
|
6
|
+
defaultValue: _fnSignal((p0) => p0.defaultValue, [
|
|
7
|
+
props
|
|
8
|
+
], "p0.defaultValue"),
|
|
9
|
+
name: _fnSignal((p0) => p0.name, [
|
|
10
|
+
props
|
|
11
|
+
], "p0.name"),
|
|
12
|
+
placeholder: _fnSignal((p0) => p0.placeholder, [
|
|
13
|
+
props
|
|
14
|
+
], "p0.placeholder"),
|
|
15
|
+
required: _fnSignal((p0) => p0.required, [
|
|
16
|
+
props
|
|
17
|
+
], "p0.required"),
|
|
18
|
+
value: _fnSignal((p0) => p0.value, [
|
|
19
|
+
props
|
|
20
|
+
], "p0.value")
|
|
21
|
+
}, 0, "kE_0");
|
|
22
|
+
}, "Textarea_component_o1TcxV139Oc"));
|
|
13
23
|
export {
|
|
14
24
|
Textarea,
|
|
15
25
|
Textarea as default
|
|
@@ -1,11 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
|
3
|
-
const jsxRuntime = require("@builder.io/qwik/jsx-runtime");
|
|
4
3
|
const qwik = require("@builder.io/qwik");
|
|
5
|
-
const FragmentComponent = qwik.
|
|
6
|
-
return /* @__PURE__ */
|
|
7
|
-
|
|
8
|
-
});
|
|
9
|
-
});
|
|
4
|
+
const FragmentComponent = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inlinedQrl((props) => {
|
|
5
|
+
return /* @__PURE__ */ qwik._jsxQ("span", null, null, /* @__PURE__ */ qwik._jsxC(qwik.Slot, null, 3, "oj_0"), 1, "oj_1");
|
|
6
|
+
}, "FragmentComponent_component_T0AypnadAK0"));
|
|
10
7
|
exports.FragmentComponent = FragmentComponent;
|
|
11
8
|
exports.default = FragmentComponent;
|
|
@@ -1,10 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
children: /* @__PURE__ */ jsx(Slot, {})
|
|
6
|
-
});
|
|
7
|
-
});
|
|
1
|
+
import { componentQrl, inlinedQrl, _jsxQ, _jsxC, Slot } from "@builder.io/qwik";
|
|
2
|
+
const FragmentComponent = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl((props) => {
|
|
3
|
+
return /* @__PURE__ */ _jsxQ("span", null, null, /* @__PURE__ */ _jsxC(Slot, null, 3, "oj_0"), 1, "oj_1");
|
|
4
|
+
}, "FragmentComponent_component_T0AypnadAK0"));
|
|
8
5
|
export {
|
|
9
6
|
FragmentComponent,
|
|
10
7
|
FragmentComponent as default
|
|
@@ -43,9 +43,8 @@ const componentInfo = {
|
|
|
43
43
|
});
|
|
44
44
|
img.src = url;
|
|
45
45
|
setTimeout(() => {
|
|
46
|
-
if (!loaded)
|
|
46
|
+
if (!loaded)
|
|
47
47
|
reject(new Error("Image load timed out"));
|
|
48
|
-
}
|
|
49
48
|
}, timeout);
|
|
50
49
|
});
|
|
51
50
|
}
|
|
@@ -55,11 +54,10 @@ const componentInfo = {
|
|
|
55
54
|
const value = options.get("image");
|
|
56
55
|
const aspectRatio = options.get("aspectRatio");
|
|
57
56
|
fetch(value).then((res) => res.blob()).then((blob) => {
|
|
58
|
-
if (blob.type.includes("svg"))
|
|
57
|
+
if (blob.type.includes("svg"))
|
|
59
58
|
options.set("noWebp", true);
|
|
60
|
-
}
|
|
61
59
|
});
|
|
62
|
-
if (value && (!aspectRatio || aspectRatio === DEFAULT_ASPECT_RATIO))
|
|
60
|
+
if (value && (!aspectRatio || aspectRatio === DEFAULT_ASPECT_RATIO))
|
|
63
61
|
return loadImage(value).then((img) => {
|
|
64
62
|
const possiblyUpdatedAspectRatio = options.get("aspectRatio");
|
|
65
63
|
if (options.get("image") === value && (!possiblyUpdatedAspectRatio || possiblyUpdatedAspectRatio === DEFAULT_ASPECT_RATIO)) {
|
|
@@ -70,7 +68,6 @@ const componentInfo = {
|
|
|
70
68
|
}
|
|
71
69
|
}
|
|
72
70
|
});
|
|
73
|
-
}
|
|
74
71
|
}
|
|
75
72
|
},
|
|
76
73
|
{
|
|
@@ -41,9 +41,8 @@ const componentInfo = {
|
|
|
41
41
|
});
|
|
42
42
|
img.src = url;
|
|
43
43
|
setTimeout(() => {
|
|
44
|
-
if (!loaded)
|
|
44
|
+
if (!loaded)
|
|
45
45
|
reject(new Error("Image load timed out"));
|
|
46
|
-
}
|
|
47
46
|
}, timeout);
|
|
48
47
|
});
|
|
49
48
|
}
|
|
@@ -53,11 +52,10 @@ const componentInfo = {
|
|
|
53
52
|
const value = options.get("image");
|
|
54
53
|
const aspectRatio = options.get("aspectRatio");
|
|
55
54
|
fetch(value).then((res) => res.blob()).then((blob) => {
|
|
56
|
-
if (blob.type.includes("svg"))
|
|
55
|
+
if (blob.type.includes("svg"))
|
|
57
56
|
options.set("noWebp", true);
|
|
58
|
-
}
|
|
59
57
|
});
|
|
60
|
-
if (value && (!aspectRatio || aspectRatio === DEFAULT_ASPECT_RATIO))
|
|
58
|
+
if (value && (!aspectRatio || aspectRatio === DEFAULT_ASPECT_RATIO))
|
|
61
59
|
return loadImage(value).then((img) => {
|
|
62
60
|
const possiblyUpdatedAspectRatio = options.get("aspectRatio");
|
|
63
61
|
if (options.get("image") === value && (!possiblyUpdatedAspectRatio || possiblyUpdatedAspectRatio === DEFAULT_ASPECT_RATIO)) {
|
|
@@ -68,7 +66,6 @@ const componentInfo = {
|
|
|
68
66
|
}
|
|
69
67
|
}
|
|
70
68
|
});
|
|
71
|
-
}
|
|
72
69
|
}
|
|
73
70
|
},
|
|
74
71
|
{
|
|
@@ -6,18 +6,15 @@ function removeProtocol(path) {
|
|
|
6
6
|
function updateQueryParam(uri = "", key, value) {
|
|
7
7
|
const re = new RegExp("([?&])" + key + "=.*?(&|$)", "i");
|
|
8
8
|
const separator = uri.indexOf("?") !== -1 ? "&" : "?";
|
|
9
|
-
if (uri.match(re))
|
|
9
|
+
if (uri.match(re))
|
|
10
10
|
return uri.replace(re, "$1" + key + "=" + encodeURIComponent(value) + "$2");
|
|
11
|
-
}
|
|
12
11
|
return uri + separator + key + "=" + encodeURIComponent(value);
|
|
13
12
|
}
|
|
14
13
|
function getShopifyImageUrl(src, size) {
|
|
15
|
-
if (!src || !(src == null ? void 0 : src.match(/cdn\.shopify\.com/)) || !size)
|
|
14
|
+
if (!src || !(src == null ? void 0 : src.match(/cdn\.shopify\.com/)) || !size)
|
|
16
15
|
return src;
|
|
17
|
-
|
|
18
|
-
if (size === "master") {
|
|
16
|
+
if (size === "master")
|
|
19
17
|
return removeProtocol(src);
|
|
20
|
-
}
|
|
21
18
|
const match = src.match(/(_\d+x(\d+)?)?(\.(jpg|jpeg|gif|png|bmp|bitmap|tiff|tif)(\?v=\d+)?)/i);
|
|
22
19
|
if (match) {
|
|
23
20
|
const prefix = src.split(match[0]);
|
|
@@ -28,9 +25,8 @@ function getShopifyImageUrl(src, size) {
|
|
|
28
25
|
return null;
|
|
29
26
|
}
|
|
30
27
|
function getSrcSet(url) {
|
|
31
|
-
if (!url)
|
|
28
|
+
if (!url)
|
|
32
29
|
return url;
|
|
33
|
-
}
|
|
34
30
|
const sizes = [
|
|
35
31
|
100,
|
|
36
32
|
200,
|
|
@@ -43,21 +39,19 @@ function getSrcSet(url) {
|
|
|
43
39
|
if (url.match(/builder\.io/)) {
|
|
44
40
|
let srcUrl = url;
|
|
45
41
|
const widthInSrc = Number(url.split("?width=")[1]);
|
|
46
|
-
if (!isNaN(widthInSrc))
|
|
42
|
+
if (!isNaN(widthInSrc))
|
|
47
43
|
srcUrl = `${srcUrl} ${widthInSrc}w`;
|
|
48
|
-
}
|
|
49
44
|
return sizes.filter((size) => size !== widthInSrc).map((size) => `${updateQueryParam(url, "width", size)} ${size}w`).concat([
|
|
50
45
|
srcUrl
|
|
51
46
|
]).join(", ");
|
|
52
47
|
}
|
|
53
|
-
if (url.match(/cdn\.shopify\.com/))
|
|
48
|
+
if (url.match(/cdn\.shopify\.com/))
|
|
54
49
|
return sizes.map((size) => [
|
|
55
50
|
getShopifyImageUrl(url, `${size}x${size}`),
|
|
56
51
|
size
|
|
57
52
|
]).filter(([sizeUrl]) => !!sizeUrl).map(([sizeUrl, size]) => `${sizeUrl} ${size}w`).concat([
|
|
58
53
|
url
|
|
59
54
|
]).join(", ");
|
|
60
|
-
}
|
|
61
55
|
return url;
|
|
62
56
|
}
|
|
63
57
|
exports.getSrcSet = getSrcSet;
|
|
@@ -4,18 +4,15 @@ function removeProtocol(path) {
|
|
|
4
4
|
function updateQueryParam(uri = "", key, value) {
|
|
5
5
|
const re = new RegExp("([?&])" + key + "=.*?(&|$)", "i");
|
|
6
6
|
const separator = uri.indexOf("?") !== -1 ? "&" : "?";
|
|
7
|
-
if (uri.match(re))
|
|
7
|
+
if (uri.match(re))
|
|
8
8
|
return uri.replace(re, "$1" + key + "=" + encodeURIComponent(value) + "$2");
|
|
9
|
-
}
|
|
10
9
|
return uri + separator + key + "=" + encodeURIComponent(value);
|
|
11
10
|
}
|
|
12
11
|
function getShopifyImageUrl(src, size) {
|
|
13
|
-
if (!src || !(src == null ? void 0 : src.match(/cdn\.shopify\.com/)) || !size)
|
|
12
|
+
if (!src || !(src == null ? void 0 : src.match(/cdn\.shopify\.com/)) || !size)
|
|
14
13
|
return src;
|
|
15
|
-
|
|
16
|
-
if (size === "master") {
|
|
14
|
+
if (size === "master")
|
|
17
15
|
return removeProtocol(src);
|
|
18
|
-
}
|
|
19
16
|
const match = src.match(/(_\d+x(\d+)?)?(\.(jpg|jpeg|gif|png|bmp|bitmap|tiff|tif)(\?v=\d+)?)/i);
|
|
20
17
|
if (match) {
|
|
21
18
|
const prefix = src.split(match[0]);
|
|
@@ -26,9 +23,8 @@ function getShopifyImageUrl(src, size) {
|
|
|
26
23
|
return null;
|
|
27
24
|
}
|
|
28
25
|
function getSrcSet(url) {
|
|
29
|
-
if (!url)
|
|
26
|
+
if (!url)
|
|
30
27
|
return url;
|
|
31
|
-
}
|
|
32
28
|
const sizes = [
|
|
33
29
|
100,
|
|
34
30
|
200,
|
|
@@ -41,21 +37,19 @@ function getSrcSet(url) {
|
|
|
41
37
|
if (url.match(/builder\.io/)) {
|
|
42
38
|
let srcUrl = url;
|
|
43
39
|
const widthInSrc = Number(url.split("?width=")[1]);
|
|
44
|
-
if (!isNaN(widthInSrc))
|
|
40
|
+
if (!isNaN(widthInSrc))
|
|
45
41
|
srcUrl = `${srcUrl} ${widthInSrc}w`;
|
|
46
|
-
}
|
|
47
42
|
return sizes.filter((size) => size !== widthInSrc).map((size) => `${updateQueryParam(url, "width", size)} ${size}w`).concat([
|
|
48
43
|
srcUrl
|
|
49
44
|
]).join(", ");
|
|
50
45
|
}
|
|
51
|
-
if (url.match(/cdn\.shopify\.com/))
|
|
46
|
+
if (url.match(/cdn\.shopify\.com/))
|
|
52
47
|
return sizes.map((size) => [
|
|
53
48
|
getShopifyImageUrl(url, `${size}x${size}`),
|
|
54
49
|
size
|
|
55
50
|
]).filter(([sizeUrl]) => !!sizeUrl).map(([sizeUrl, size]) => `${sizeUrl} ${size}w`).concat([
|
|
56
51
|
url
|
|
57
52
|
]).join(", ");
|
|
58
|
-
}
|
|
59
53
|
return url;
|
|
60
54
|
}
|
|
61
55
|
export {
|
|
@@ -1,42 +1,46 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
|
3
|
-
const jsxRuntime = require("@builder.io/qwik/jsx-runtime");
|
|
4
|
-
const image_helpers = require("./image.helpers.qwik.cjs");
|
|
5
3
|
const qwik = require("@builder.io/qwik");
|
|
6
|
-
const
|
|
4
|
+
const image_helpers = require("./image.helpers.qwik.cjs");
|
|
5
|
+
const Image = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inlinedQrl((props) => {
|
|
7
6
|
var _a, _b, _c, _d, _e, _f;
|
|
8
|
-
qwik.
|
|
9
|
-
|
|
7
|
+
qwik._jsxBranch();
|
|
8
|
+
qwik.useStylesScopedQrl(/* @__PURE__ */ qwik.inlinedQrl(STYLES, "Image_component_useStylesScoped_fBMYiVf9fuU"));
|
|
9
|
+
const srcSetToUse = qwik.useComputedQrl(/* @__PURE__ */ qwik.inlinedQrl(() => {
|
|
10
10
|
var _a2;
|
|
11
|
-
const
|
|
11
|
+
const [props2] = qwik.useLexicalScope();
|
|
12
|
+
const imageToUse = props2.image || props2.src;
|
|
12
13
|
const url = imageToUse;
|
|
13
14
|
if (!url || // We can auto add srcset for cdn.builder.io and shopify
|
|
14
15
|
// images, otherwise you can supply this prop manually
|
|
15
|
-
!(url.match(/builder\.io/) || url.match(/cdn\.shopify\.com/)))
|
|
16
|
-
return
|
|
17
|
-
|
|
18
|
-
if (props.noWebp) {
|
|
16
|
+
!(url.match(/builder\.io/) || url.match(/cdn\.shopify\.com/)))
|
|
17
|
+
return props2.srcset;
|
|
18
|
+
if (props2.noWebp)
|
|
19
19
|
return void 0;
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
if (!props.srcset.includes(props.image.split("?")[0])) {
|
|
20
|
+
if (props2.srcset && ((_a2 = props2.image) == null ? void 0 : _a2.includes("builder.io/api/v1/image"))) {
|
|
21
|
+
if (!props2.srcset.includes(props2.image.split("?")[0])) {
|
|
23
22
|
console.debug("Removed given srcset");
|
|
24
23
|
return image_helpers.getSrcSet(url);
|
|
25
24
|
}
|
|
26
|
-
} else if (
|
|
25
|
+
} else if (props2.image && !props2.srcset)
|
|
27
26
|
return image_helpers.getSrcSet(url);
|
|
28
|
-
}
|
|
29
27
|
return image_helpers.getSrcSet(url);
|
|
30
|
-
}
|
|
31
|
-
|
|
28
|
+
}, "Image_component_srcSetToUse_useComputed_TZMibf9Gpvw", [
|
|
29
|
+
props
|
|
30
|
+
]));
|
|
31
|
+
const webpSrcSet = qwik.useComputedQrl(/* @__PURE__ */ qwik.inlinedQrl(() => {
|
|
32
32
|
var _a2;
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
33
|
+
const [props2, srcSetToUse2] = qwik.useLexicalScope();
|
|
34
|
+
if (((_a2 = srcSetToUse2.value) == null ? void 0 : _a2.match(/builder\.io/)) && !props2.noWebp)
|
|
35
|
+
return srcSetToUse2.value.replace(/\?/g, "?format=webp&");
|
|
36
|
+
else
|
|
36
37
|
return "";
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
38
|
+
}, "Image_component_webpSrcSet_useComputed_01YCu72BBtA", [
|
|
39
|
+
props,
|
|
40
|
+
srcSetToUse
|
|
41
|
+
]));
|
|
42
|
+
const aspectRatioCss = qwik.useComputedQrl(/* @__PURE__ */ qwik.inlinedQrl(() => {
|
|
43
|
+
const [props2] = qwik.useLexicalScope();
|
|
40
44
|
const aspectRatioStyles = {
|
|
41
45
|
position: "absolute",
|
|
42
46
|
height: "100%",
|
|
@@ -44,50 +48,72 @@ const Image = qwik.component$((props) => {
|
|
|
44
48
|
left: "0px",
|
|
45
49
|
top: "0px"
|
|
46
50
|
};
|
|
47
|
-
const out =
|
|
51
|
+
const out = props2.aspectRatio ? aspectRatioStyles : void 0;
|
|
48
52
|
return out;
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
+
}, "Image_component_aspectRatioCss_useComputed_yJ1jG0g5fbw", [
|
|
54
|
+
props
|
|
55
|
+
]));
|
|
56
|
+
qwik.useVisibleTaskQrl(/* @__PURE__ */ qwik.inlinedQrl(() => {
|
|
57
|
+
}, "Image_component_useVisibleTask_pRTGrfPyv0Y"));
|
|
58
|
+
return /* @__PURE__ */ qwik._jsxC(qwik.Fragment, {
|
|
53
59
|
children: [
|
|
54
|
-
/* @__PURE__ */
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
60
|
+
/* @__PURE__ */ qwik._jsxQ("picture", null, null, [
|
|
61
|
+
webpSrcSet.value ? /* @__PURE__ */ qwik._jsxQ("source", null, {
|
|
62
|
+
srcset: qwik._fnSignal((p0) => p0.value, [
|
|
63
|
+
webpSrcSet
|
|
64
|
+
], "p0.value"),
|
|
65
|
+
type: "image/webp"
|
|
66
|
+
}, null, 3, "0A_0") : null,
|
|
67
|
+
/* @__PURE__ */ qwik._jsxQ("img", null, {
|
|
68
|
+
alt: qwik._fnSignal((p0) => p0.altText, [
|
|
69
|
+
props
|
|
70
|
+
], "p0.altText"),
|
|
71
|
+
class: qwik._fnSignal((p0) => "builder-image" + (p0.className ? " " + p0.className : "") + " img-Image", [
|
|
72
|
+
props
|
|
73
|
+
], '"builder-image"+(p0.className?" "+p0.className:"")+" img-Image"'),
|
|
74
|
+
fetchPriority: qwik._fnSignal((p0) => p0.highPriority ? "high" : "auto", [
|
|
75
|
+
props
|
|
76
|
+
], 'p0.highPriority?"high":"auto"'),
|
|
77
|
+
loading: qwik._fnSignal((p0) => p0.highPriority ? "eager" : "lazy", [
|
|
78
|
+
props
|
|
79
|
+
], 'p0.highPriority?"eager":"lazy"'),
|
|
80
|
+
role: qwik._fnSignal((p0) => p0.altText ? void 0 : "presentation", [
|
|
81
|
+
props
|
|
82
|
+
], 'p0.altText?undefined:"presentation"'),
|
|
83
|
+
sizes: qwik._fnSignal((p0) => p0.sizes, [
|
|
84
|
+
props
|
|
85
|
+
], "p0.sizes"),
|
|
86
|
+
src: qwik._fnSignal((p0) => p0.image, [
|
|
87
|
+
props
|
|
88
|
+
], "p0.image"),
|
|
89
|
+
srcset: qwik._fnSignal((p0) => p0.value, [
|
|
90
|
+
srcSetToUse
|
|
91
|
+
], "p0.value"),
|
|
92
|
+
style: qwik._fnSignal((p0, p1) => ({
|
|
93
|
+
objectPosition: p1.backgroundPosition || "center",
|
|
94
|
+
objectFit: p1.backgroundSize || "cover",
|
|
95
|
+
...p0.value
|
|
96
|
+
}), [
|
|
97
|
+
aspectRatioCss,
|
|
98
|
+
props
|
|
99
|
+
], '{objectPosition:p1.backgroundPosition||"center",objectFit:p1.backgroundSize||"cover",...p0.value}')
|
|
100
|
+
}, null, 3, null)
|
|
101
|
+
], 1, null),
|
|
102
|
+
props.aspectRatio && !(((_b = (_a = props.builderBlock) == null ? void 0 : _a.children) == null ? void 0 : _b.length) && props.fitContent) ? /* @__PURE__ */ qwik._jsxQ("div", null, {
|
|
78
103
|
class: "builder-image-sizer div-Image",
|
|
79
|
-
style: {
|
|
80
|
-
paddingTop:
|
|
81
|
-
}
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
104
|
+
style: qwik._fnSignal((p0) => ({
|
|
105
|
+
paddingTop: p0.aspectRatio * 100 + "%"
|
|
106
|
+
}), [
|
|
107
|
+
props
|
|
108
|
+
], '{paddingTop:p0.aspectRatio*100+"%"}')
|
|
109
|
+
}, null, 3, "0A_1") : null,
|
|
110
|
+
((_d = (_c = props.builderBlock) == null ? void 0 : _c.children) == null ? void 0 : _d.length) && props.fitContent ? /* @__PURE__ */ qwik._jsxC(qwik.Slot, null, 3, "0A_2") : null,
|
|
111
|
+
!props.fitContent && ((_f = (_e = props.builderBlock) == null ? void 0 : _e.children) == null ? void 0 : _f.length) ? /* @__PURE__ */ qwik._jsxQ("div", null, {
|
|
112
|
+
class: "div-Image-2"
|
|
113
|
+
}, /* @__PURE__ */ qwik._jsxC(qwik.Slot, null, 3, "0A_3"), 1, "0A_4") : null
|
|
88
114
|
]
|
|
89
|
-
});
|
|
90
|
-
});
|
|
115
|
+
}, 1, "0A_5");
|
|
116
|
+
}, "Image_component_LRxDkFa1EfU"));
|
|
91
117
|
const STYLES = `
|
|
92
118
|
.img-Image {
|
|
93
119
|
opacity: 1;
|