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