@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,94 +1,108 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
const Video = component$((props) => {
|
|
1
|
+
import { componentQrl, inlinedQrl, _jsxBranch, useComputedQrl, useLexicalScope, _jsxQ, _jsxS, _fnSignal, _jsxC, Slot } from "@builder.io/qwik";
|
|
2
|
+
const Video = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl((props) => {
|
|
4
3
|
var _a, _b, _c, _d, _e, _f, _g;
|
|
5
|
-
|
|
4
|
+
_jsxBranch();
|
|
5
|
+
const videoProps = useComputedQrl(/* @__PURE__ */ inlinedQrl(() => {
|
|
6
|
+
const [props2] = useLexicalScope();
|
|
6
7
|
return {
|
|
7
|
-
...
|
|
8
|
+
...props2.autoPlay === true ? {
|
|
8
9
|
autoPlay: true
|
|
9
10
|
} : {},
|
|
10
|
-
...
|
|
11
|
+
...props2.muted === true ? {
|
|
11
12
|
muted: true
|
|
12
13
|
} : {},
|
|
13
|
-
...
|
|
14
|
+
...props2.controls === true ? {
|
|
14
15
|
controls: true
|
|
15
16
|
} : {},
|
|
16
|
-
...
|
|
17
|
+
...props2.loop === true ? {
|
|
17
18
|
loop: true
|
|
18
19
|
} : {},
|
|
19
|
-
...
|
|
20
|
+
...props2.playsInline === true ? {
|
|
20
21
|
playsInline: true
|
|
21
22
|
} : {}
|
|
22
23
|
};
|
|
23
|
-
}
|
|
24
|
-
|
|
24
|
+
}, "Video_component_videoProps_useComputed_60AadUGY06E", [
|
|
25
|
+
props
|
|
26
|
+
]));
|
|
27
|
+
const spreadProps = useComputedQrl(/* @__PURE__ */ inlinedQrl(() => {
|
|
28
|
+
const [videoProps2] = useLexicalScope();
|
|
25
29
|
return {
|
|
26
|
-
...
|
|
30
|
+
...videoProps2.value
|
|
27
31
|
};
|
|
28
|
-
}
|
|
29
|
-
|
|
32
|
+
}, "Video_component_spreadProps_useComputed_ZdLsx18NYH4", [
|
|
33
|
+
videoProps
|
|
34
|
+
]));
|
|
35
|
+
return /* @__PURE__ */ _jsxQ("div", null, {
|
|
30
36
|
style: {
|
|
31
37
|
position: "relative"
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
})
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
38
|
+
}
|
|
39
|
+
}, [
|
|
40
|
+
/* @__PURE__ */ _jsxS("video", {
|
|
41
|
+
...spreadProps.value,
|
|
42
|
+
children: !props.lazyLoad ? /* @__PURE__ */ _jsxQ("source", null, {
|
|
43
|
+
src: _fnSignal((p0) => p0.video, [
|
|
44
|
+
props
|
|
45
|
+
], "p0.video"),
|
|
46
|
+
type: "video/mp4"
|
|
47
|
+
}, null, 3, "j7_0") : null,
|
|
48
|
+
style: {
|
|
49
|
+
width: "100%",
|
|
50
|
+
height: "100%",
|
|
51
|
+
...(_a = props.attributes) == null ? void 0 : _a.style,
|
|
52
|
+
objectFit: props.fit,
|
|
53
|
+
objectPosition: props.position,
|
|
54
|
+
// Hack to get object fit to work as expected and
|
|
55
|
+
// not have the video overflow
|
|
56
|
+
zIndex: 2,
|
|
57
|
+
borderRadius: "1px",
|
|
58
|
+
...props.aspectRatio ? {
|
|
59
|
+
position: "absolute"
|
|
60
|
+
} : null
|
|
61
|
+
}
|
|
62
|
+
}, {
|
|
63
|
+
class: "builder-video",
|
|
64
|
+
poster: _fnSignal((p0) => p0.posterImage, [
|
|
65
|
+
props
|
|
66
|
+
], "p0.posterImage"),
|
|
67
|
+
preload: _fnSignal((p0) => p0.preload || "metadata", [
|
|
68
|
+
props
|
|
69
|
+
], 'p0.preload||"metadata"'),
|
|
70
|
+
src: _fnSignal((p0) => p0.video || "no-src", [
|
|
71
|
+
props
|
|
72
|
+
], 'p0.video||"no-src"')
|
|
73
|
+
}, 0, null),
|
|
74
|
+
props.aspectRatio && !(props.fitContent && ((_c = (_b = props.builderBlock) == null ? void 0 : _b.children) == null ? void 0 : _c.length)) ? /* @__PURE__ */ _jsxQ("div", null, {
|
|
75
|
+
style: _fnSignal((p0) => ({
|
|
76
|
+
width: "100%",
|
|
77
|
+
paddingTop: p0.aspectRatio * 100 + "%",
|
|
78
|
+
pointerEvents: "none",
|
|
79
|
+
fontSize: "0px"
|
|
80
|
+
}), [
|
|
81
|
+
props
|
|
82
|
+
], '{width:"100%",paddingTop:p0.aspectRatio*100+"%",pointerEvents:"none",fontSize:"0px"}')
|
|
83
|
+
}, null, 3, "j7_1") : null,
|
|
84
|
+
((_e = (_d = props.builderBlock) == null ? void 0 : _d.children) == null ? void 0 : _e.length) && props.fitContent ? /* @__PURE__ */ _jsxQ("div", null, {
|
|
85
|
+
style: {
|
|
86
|
+
display: "flex",
|
|
87
|
+
flexDirection: "column",
|
|
88
|
+
alignItems: "stretch"
|
|
89
|
+
}
|
|
90
|
+
}, /* @__PURE__ */ _jsxC(Slot, null, 3, "j7_2"), 1, "j7_3") : null,
|
|
91
|
+
((_g = (_f = props.builderBlock) == null ? void 0 : _f.children) == null ? void 0 : _g.length) && !props.fitContent ? /* @__PURE__ */ _jsxQ("div", null, {
|
|
92
|
+
style: {
|
|
93
|
+
pointerEvents: "none",
|
|
94
|
+
display: "flex",
|
|
95
|
+
flexDirection: "column",
|
|
96
|
+
alignItems: "stretch",
|
|
97
|
+
position: "absolute",
|
|
98
|
+
top: "0",
|
|
99
|
+
left: "0",
|
|
100
|
+
width: "100%",
|
|
101
|
+
height: "100%"
|
|
102
|
+
}
|
|
103
|
+
}, /* @__PURE__ */ _jsxC(Slot, null, 3, "j7_4"), 1, "j7_5") : null
|
|
104
|
+
], 1, "j7_6");
|
|
105
|
+
}, "Video_component_qdcTZflYyoQ"));
|
|
92
106
|
export {
|
|
93
107
|
Video,
|
|
94
108
|
Video as default
|
|
@@ -1,13 +1,12 @@
|
|
|
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 Awaiter = qwik.
|
|
6
|
-
qwik.
|
|
7
|
-
});
|
|
8
|
-
return /* @__PURE__ */
|
|
9
|
-
children: /* @__PURE__ */
|
|
10
|
-
});
|
|
11
|
-
});
|
|
4
|
+
const Awaiter = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inlinedQrl((props) => {
|
|
5
|
+
qwik.useVisibleTaskQrl(/* @__PURE__ */ qwik.inlinedQrl(() => {
|
|
6
|
+
}, "Awaiter_component_useVisibleTask_GMx1IPL7vl0"));
|
|
7
|
+
return /* @__PURE__ */ qwik._jsxC(qwik.Fragment, {
|
|
8
|
+
children: /* @__PURE__ */ qwik._jsxC(qwik.Slot, null, 3, "iM_0")
|
|
9
|
+
}, 1, "iM_1");
|
|
10
|
+
}, "Awaiter_component_Uc1j2U3wluQ"));
|
|
12
11
|
exports.Awaiter = Awaiter;
|
|
13
12
|
exports.default = Awaiter;
|
|
@@ -1,12 +1,11 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
});
|
|
1
|
+
import { componentQrl, inlinedQrl, useVisibleTaskQrl, _jsxC, Fragment, Slot } from "@builder.io/qwik";
|
|
2
|
+
const Awaiter = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl((props) => {
|
|
3
|
+
useVisibleTaskQrl(/* @__PURE__ */ inlinedQrl(() => {
|
|
4
|
+
}, "Awaiter_component_useVisibleTask_GMx1IPL7vl0"));
|
|
5
|
+
return /* @__PURE__ */ _jsxC(Fragment, {
|
|
6
|
+
children: /* @__PURE__ */ _jsxC(Slot, null, 3, "iM_0")
|
|
7
|
+
}, 1, "iM_1");
|
|
8
|
+
}, "Awaiter_component_Uc1j2U3wluQ"));
|
|
10
9
|
export {
|
|
11
10
|
Awaiter,
|
|
12
11
|
Awaiter as default
|
|
@@ -30,9 +30,8 @@ function throttle(func, wait, options = {}) {
|
|
|
30
30
|
result = func.apply(context, args);
|
|
31
31
|
if (!timeout)
|
|
32
32
|
context = args = null;
|
|
33
|
-
} else if (!timeout && options.trailing !== false)
|
|
33
|
+
} else if (!timeout && options.trailing !== false)
|
|
34
34
|
timeout = setTimeout(later, remaining);
|
|
35
|
-
}
|
|
36
35
|
return result;
|
|
37
36
|
};
|
|
38
37
|
}
|
|
@@ -41,17 +40,15 @@ function assign(target, ..._args) {
|
|
|
41
40
|
for (let index = 1; index < arguments.length; index++) {
|
|
42
41
|
const nextSource = arguments[index];
|
|
43
42
|
if (nextSource != null) {
|
|
44
|
-
for (const nextKey in nextSource)
|
|
45
|
-
if (Object.prototype.hasOwnProperty.call(nextSource, nextKey))
|
|
43
|
+
for (const nextKey in nextSource)
|
|
44
|
+
if (Object.prototype.hasOwnProperty.call(nextSource, nextKey))
|
|
46
45
|
to[nextKey] = nextSource[nextKey];
|
|
47
|
-
}
|
|
48
|
-
}
|
|
49
46
|
}
|
|
50
47
|
}
|
|
51
48
|
return to;
|
|
52
49
|
}
|
|
53
50
|
function bindAnimations(animations) {
|
|
54
|
-
for (const animation of animations)
|
|
51
|
+
for (const animation of animations)
|
|
55
52
|
switch (animation.trigger) {
|
|
56
53
|
case "pageLoad":
|
|
57
54
|
triggerAnimation(animation);
|
|
@@ -60,7 +57,6 @@ function bindAnimations(animations) {
|
|
|
60
57
|
bindScrollInViewAnimation(animation);
|
|
61
58
|
break;
|
|
62
59
|
}
|
|
63
|
-
}
|
|
64
60
|
}
|
|
65
61
|
function warnElementNotPresent(id) {
|
|
66
62
|
console.warn(`Cannot animate element: element with ID ${id} not found!`);
|
|
@@ -75,21 +71,17 @@ function augmentAnimation(animation, element) {
|
|
|
75
71
|
lastStyles
|
|
76
72
|
];
|
|
77
73
|
for (const styles of bothStyles) {
|
|
78
|
-
for (const style of stylesUsed)
|
|
79
|
-
if (!(style in styles))
|
|
74
|
+
for (const style of stylesUsed)
|
|
75
|
+
if (!(style in styles))
|
|
80
76
|
styles[style] = computedStyle[style];
|
|
81
|
-
}
|
|
82
|
-
}
|
|
83
77
|
}
|
|
84
78
|
}
|
|
85
79
|
function getAllStylesUsed(animation) {
|
|
86
80
|
const properties = [];
|
|
87
81
|
for (const step of animation.steps) {
|
|
88
|
-
for (const key in step.styles)
|
|
89
|
-
if (properties.indexOf(key) === -1)
|
|
82
|
+
for (const key in step.styles)
|
|
83
|
+
if (properties.indexOf(key) === -1)
|
|
90
84
|
properties.push(key);
|
|
91
|
-
}
|
|
92
|
-
}
|
|
93
85
|
}
|
|
94
86
|
return properties;
|
|
95
87
|
}
|
|
@@ -106,9 +98,8 @@ function triggerAnimation(animation) {
|
|
|
106
98
|
assign(element.style, animation.steps[0].styles);
|
|
107
99
|
setTimeout(() => {
|
|
108
100
|
element.style.transition = `all ${animation.duration}s ${camelToKebabCase.camelToKebabCase(animation.easing)}`;
|
|
109
|
-
if (animation.delay)
|
|
101
|
+
if (animation.delay)
|
|
110
102
|
element.style.transitionDelay = animation.delay + "s";
|
|
111
|
-
}
|
|
112
103
|
assign(element.style, animation.steps[1].styles);
|
|
113
104
|
setTimeout(() => {
|
|
114
105
|
element.style.transition = "";
|
|
@@ -133,9 +124,8 @@ function bindScrollInViewAnimation(animation) {
|
|
|
133
124
|
pendingAnimation = true;
|
|
134
125
|
setTimeout(() => {
|
|
135
126
|
assign(element.style, animation.steps[1].styles);
|
|
136
|
-
if (!animation.repeat)
|
|
127
|
+
if (!animation.repeat)
|
|
137
128
|
document.removeEventListener("scroll", onScroll);
|
|
138
|
-
}
|
|
139
129
|
setTimeout(() => {
|
|
140
130
|
pendingAnimation = false;
|
|
141
131
|
if (!animation.repeat) {
|
|
@@ -166,9 +156,8 @@ function bindScrollInViewAnimation(animation) {
|
|
|
166
156
|
attachDefaultState();
|
|
167
157
|
setTimeout(() => {
|
|
168
158
|
element.style.transition = `all ${animation.duration}s ${camelToKebabCase.camelToKebabCase(animation.easing)}`;
|
|
169
|
-
if (animation.delay)
|
|
159
|
+
if (animation.delay)
|
|
170
160
|
element.style.transitionDelay = animation.delay + "s";
|
|
171
|
-
}
|
|
172
161
|
});
|
|
173
162
|
document.addEventListener("scroll", onScroll, {
|
|
174
163
|
capture: true,
|
|
@@ -28,9 +28,8 @@ function throttle(func, wait, options = {}) {
|
|
|
28
28
|
result = func.apply(context, args);
|
|
29
29
|
if (!timeout)
|
|
30
30
|
context = args = null;
|
|
31
|
-
} else if (!timeout && options.trailing !== false)
|
|
31
|
+
} else if (!timeout && options.trailing !== false)
|
|
32
32
|
timeout = setTimeout(later, remaining);
|
|
33
|
-
}
|
|
34
33
|
return result;
|
|
35
34
|
};
|
|
36
35
|
}
|
|
@@ -39,17 +38,15 @@ function assign(target, ..._args) {
|
|
|
39
38
|
for (let index = 1; index < arguments.length; index++) {
|
|
40
39
|
const nextSource = arguments[index];
|
|
41
40
|
if (nextSource != null) {
|
|
42
|
-
for (const nextKey in nextSource)
|
|
43
|
-
if (Object.prototype.hasOwnProperty.call(nextSource, nextKey))
|
|
41
|
+
for (const nextKey in nextSource)
|
|
42
|
+
if (Object.prototype.hasOwnProperty.call(nextSource, nextKey))
|
|
44
43
|
to[nextKey] = nextSource[nextKey];
|
|
45
|
-
}
|
|
46
|
-
}
|
|
47
44
|
}
|
|
48
45
|
}
|
|
49
46
|
return to;
|
|
50
47
|
}
|
|
51
48
|
function bindAnimations(animations) {
|
|
52
|
-
for (const animation of animations)
|
|
49
|
+
for (const animation of animations)
|
|
53
50
|
switch (animation.trigger) {
|
|
54
51
|
case "pageLoad":
|
|
55
52
|
triggerAnimation(animation);
|
|
@@ -58,7 +55,6 @@ function bindAnimations(animations) {
|
|
|
58
55
|
bindScrollInViewAnimation(animation);
|
|
59
56
|
break;
|
|
60
57
|
}
|
|
61
|
-
}
|
|
62
58
|
}
|
|
63
59
|
function warnElementNotPresent(id) {
|
|
64
60
|
console.warn(`Cannot animate element: element with ID ${id} not found!`);
|
|
@@ -73,21 +69,17 @@ function augmentAnimation(animation, element) {
|
|
|
73
69
|
lastStyles
|
|
74
70
|
];
|
|
75
71
|
for (const styles of bothStyles) {
|
|
76
|
-
for (const style of stylesUsed)
|
|
77
|
-
if (!(style in styles))
|
|
72
|
+
for (const style of stylesUsed)
|
|
73
|
+
if (!(style in styles))
|
|
78
74
|
styles[style] = computedStyle[style];
|
|
79
|
-
}
|
|
80
|
-
}
|
|
81
75
|
}
|
|
82
76
|
}
|
|
83
77
|
function getAllStylesUsed(animation) {
|
|
84
78
|
const properties = [];
|
|
85
79
|
for (const step of animation.steps) {
|
|
86
|
-
for (const key in step.styles)
|
|
87
|
-
if (properties.indexOf(key) === -1)
|
|
80
|
+
for (const key in step.styles)
|
|
81
|
+
if (properties.indexOf(key) === -1)
|
|
88
82
|
properties.push(key);
|
|
89
|
-
}
|
|
90
|
-
}
|
|
91
83
|
}
|
|
92
84
|
return properties;
|
|
93
85
|
}
|
|
@@ -104,9 +96,8 @@ function triggerAnimation(animation) {
|
|
|
104
96
|
assign(element.style, animation.steps[0].styles);
|
|
105
97
|
setTimeout(() => {
|
|
106
98
|
element.style.transition = `all ${animation.duration}s ${camelToKebabCase(animation.easing)}`;
|
|
107
|
-
if (animation.delay)
|
|
99
|
+
if (animation.delay)
|
|
108
100
|
element.style.transitionDelay = animation.delay + "s";
|
|
109
|
-
}
|
|
110
101
|
assign(element.style, animation.steps[1].styles);
|
|
111
102
|
setTimeout(() => {
|
|
112
103
|
element.style.transition = "";
|
|
@@ -131,9 +122,8 @@ function bindScrollInViewAnimation(animation) {
|
|
|
131
122
|
pendingAnimation = true;
|
|
132
123
|
setTimeout(() => {
|
|
133
124
|
assign(element.style, animation.steps[1].styles);
|
|
134
|
-
if (!animation.repeat)
|
|
125
|
+
if (!animation.repeat)
|
|
135
126
|
document.removeEventListener("scroll", onScroll);
|
|
136
|
-
}
|
|
137
127
|
setTimeout(() => {
|
|
138
128
|
pendingAnimation = false;
|
|
139
129
|
if (!animation.repeat) {
|
|
@@ -164,9 +154,8 @@ function bindScrollInViewAnimation(animation) {
|
|
|
164
154
|
attachDefaultState();
|
|
165
155
|
setTimeout(() => {
|
|
166
156
|
element.style.transition = `all ${animation.duration}s ${camelToKebabCase(animation.easing)}`;
|
|
167
|
-
if (animation.delay)
|
|
157
|
+
if (animation.delay)
|
|
168
158
|
element.style.transitionDelay = animation.delay + "s";
|
|
169
|
-
}
|
|
170
159
|
});
|
|
171
160
|
document.addEventListener("scroll", onScroll, {
|
|
172
161
|
capture: true,
|
|
@@ -4,24 +4,21 @@ const evaluate = require("../../functions/evaluate/evaluate.qwik.cjs");
|
|
|
4
4
|
const getComponent = ({ block, registeredComponents }) => {
|
|
5
5
|
var _a;
|
|
6
6
|
const componentName = (_a = block.component) == null ? void 0 : _a.name;
|
|
7
|
-
if (!componentName)
|
|
7
|
+
if (!componentName)
|
|
8
8
|
return null;
|
|
9
|
-
}
|
|
10
9
|
const ref = registeredComponents[componentName];
|
|
11
10
|
if (!ref) {
|
|
12
11
|
console.warn(`
|
|
13
12
|
Could not find a registered component named "${componentName}".
|
|
14
13
|
If you registered it, is the file that registered it imported by the file that needs to render it?`);
|
|
15
14
|
return void 0;
|
|
16
|
-
} else
|
|
15
|
+
} else
|
|
17
16
|
return ref;
|
|
18
|
-
}
|
|
19
17
|
};
|
|
20
18
|
const getRepeatItemData = ({ block, context }) => {
|
|
21
19
|
const { repeat, ...blockWithoutRepeat } = block;
|
|
22
|
-
if (!(repeat == null ? void 0 : repeat.collection))
|
|
20
|
+
if (!(repeat == null ? void 0 : repeat.collection))
|
|
23
21
|
return void 0;
|
|
24
|
-
}
|
|
25
22
|
const itemsArray = evaluate.evaluate({
|
|
26
23
|
code: repeat.collection,
|
|
27
24
|
localState: context.localState,
|
|
@@ -29,9 +26,8 @@ const getRepeatItemData = ({ block, context }) => {
|
|
|
29
26
|
rootSetState: context.rootSetState,
|
|
30
27
|
context: context.context
|
|
31
28
|
});
|
|
32
|
-
if (!Array.isArray(itemsArray))
|
|
29
|
+
if (!Array.isArray(itemsArray))
|
|
33
30
|
return void 0;
|
|
34
|
-
}
|
|
35
31
|
const collectionName = repeat.collection.split(".").pop();
|
|
36
32
|
const itemNameToUse = repeat.itemName || (collectionName ? collectionName + "Item" : "item");
|
|
37
33
|
const repeatArray = itemsArray.map((item, index) => ({
|
|
@@ -2,24 +2,21 @@ import { evaluate } from "../../functions/evaluate/evaluate.qwik.mjs";
|
|
|
2
2
|
const getComponent = ({ block, registeredComponents }) => {
|
|
3
3
|
var _a;
|
|
4
4
|
const componentName = (_a = block.component) == null ? void 0 : _a.name;
|
|
5
|
-
if (!componentName)
|
|
5
|
+
if (!componentName)
|
|
6
6
|
return null;
|
|
7
|
-
}
|
|
8
7
|
const ref = registeredComponents[componentName];
|
|
9
8
|
if (!ref) {
|
|
10
9
|
console.warn(`
|
|
11
10
|
Could not find a registered component named "${componentName}".
|
|
12
11
|
If you registered it, is the file that registered it imported by the file that needs to render it?`);
|
|
13
12
|
return void 0;
|
|
14
|
-
} else
|
|
13
|
+
} else
|
|
15
14
|
return ref;
|
|
16
|
-
}
|
|
17
15
|
};
|
|
18
16
|
const getRepeatItemData = ({ block, context }) => {
|
|
19
17
|
const { repeat, ...blockWithoutRepeat } = block;
|
|
20
|
-
if (!(repeat == null ? void 0 : repeat.collection))
|
|
18
|
+
if (!(repeat == null ? void 0 : repeat.collection))
|
|
21
19
|
return void 0;
|
|
22
|
-
}
|
|
23
20
|
const itemsArray = evaluate({
|
|
24
21
|
code: repeat.collection,
|
|
25
22
|
localState: context.localState,
|
|
@@ -27,9 +24,8 @@ const getRepeatItemData = ({ block, context }) => {
|
|
|
27
24
|
rootSetState: context.rootSetState,
|
|
28
25
|
context: context.context
|
|
29
26
|
});
|
|
30
|
-
if (!Array.isArray(itemsArray))
|
|
27
|
+
if (!Array.isArray(itemsArray))
|
|
31
28
|
return void 0;
|
|
32
|
-
}
|
|
33
29
|
const collectionName = repeat.collection.split(".").pop();
|
|
34
30
|
const itemNameToUse = repeat.itemName || (collectionName ? collectionName + "Item" : "item");
|
|
35
31
|
const repeatArray = itemsArray.map((item, index) => ({
|