@biggive/components 202406281731.0.0 → 202407010959.0.0
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/dist/biggive/biggive.esm.js +1 -1
- package/dist/biggive/biggive.esm.js.map +1 -1
- package/dist/biggive/{p-03e72a1b.entry.js → p-0b4ee936.entry.js} +2 -2
- package/dist/biggive/{p-496a5b1e.entry.js → p-0da9aaea.entry.js} +2 -2
- package/dist/biggive/{p-6cb8dd3e.entry.js → p-44ab6633.entry.js} +2 -2
- package/dist/biggive/{p-b4282163.entry.js → p-476b7951.entry.js} +2 -2
- package/dist/biggive/{p-09533b1f.entry.js → p-5acc52fd.entry.js} +2 -2
- package/dist/biggive/{p-b930ac6d.entry.js → p-5bee83dc.entry.js} +2 -2
- package/dist/biggive/{p-8146607d.entry.js → p-6d6302dc.entry.js} +2 -2
- package/dist/biggive/{p-fe03b6e6.entry.js → p-79ffb9ce.entry.js} +2 -2
- package/dist/biggive/{p-a52c70dd.entry.js → p-908e904e.entry.js} +2 -2
- package/dist/biggive/p-92294a84.entry.js +2 -0
- package/dist/biggive/{p-6ad95202.entry.js → p-9333c5d6.entry.js} +2 -2
- package/dist/biggive/p-a03263fd.js +3 -0
- package/dist/biggive/p-a03263fd.js.map +1 -0
- package/dist/biggive/{p-a4648f6b.entry.js → p-c5aff541.entry.js} +2 -2
- package/dist/biggive/{p-cc58f607.entry.js → p-ef8e48f7.entry.js} +2 -2
- package/dist/cjs/biggive-accordion_40.cjs.entry.js +1 -1
- package/dist/cjs/biggive-basic-card.cjs.entry.js +1 -1
- package/dist/cjs/biggive-beneficiary-icon.cjs.entry.js +1 -1
- package/dist/cjs/biggive-boxed-content.cjs.entry.js +1 -1
- package/dist/cjs/biggive-category-icon.cjs.entry.js +1 -1
- package/dist/cjs/biggive-cookie-banner.cjs.entry.js +1 -1
- package/dist/cjs/biggive-form.cjs.entry.js +1 -1
- package/dist/cjs/biggive-icon-group.cjs.entry.js +1 -1
- package/dist/cjs/biggive-image-card.cjs.entry.js +1 -1
- package/dist/cjs/biggive-nav-group.cjs.entry.js +1 -1
- package/dist/cjs/biggive-nav-item.cjs.entry.js +1 -1
- package/dist/cjs/biggive-table.cjs.entry.js +1 -1
- package/dist/cjs/biggive-video.cjs.entry.js +1 -1
- package/dist/cjs/biggive.cjs.js +2 -2
- package/dist/cjs/biggive.cjs.js.map +1 -1
- package/dist/cjs/{index-722b0f6d.js → index-489518dd.js} +159 -143
- package/dist/cjs/index-489518dd.js.map +1 -0
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/collection/collection-manifest.json +1 -1
- package/dist/esm/biggive-accordion_40.entry.js +1 -1
- package/dist/esm/biggive-basic-card.entry.js +1 -1
- package/dist/esm/biggive-beneficiary-icon.entry.js +1 -1
- package/dist/esm/biggive-boxed-content.entry.js +1 -1
- package/dist/esm/biggive-category-icon.entry.js +1 -1
- package/dist/esm/biggive-cookie-banner.entry.js +1 -1
- package/dist/esm/biggive-form.entry.js +1 -1
- package/dist/esm/biggive-icon-group.entry.js +1 -1
- package/dist/esm/biggive-image-card.entry.js +1 -1
- package/dist/esm/biggive-nav-group.entry.js +1 -1
- package/dist/esm/biggive-nav-item.entry.js +1 -1
- package/dist/esm/biggive-table.entry.js +1 -1
- package/dist/esm/biggive-video.entry.js +1 -1
- package/dist/esm/biggive.js +3 -3
- package/dist/esm/biggive.js.map +1 -1
- package/dist/esm/{index-7638dc89.js → index-707e0698.js} +159 -143
- package/dist/esm/index-707e0698.js.map +1 -0
- package/dist/esm/loader.js +2 -2
- package/dist/types/stencil-public-runtime.d.ts +0 -2
- package/hydrate/index.d.ts +29 -11
- package/hydrate/index.js +300 -291
- package/hydrate/index.mjs +21021 -0
- package/hydrate/package.json +7 -1
- package/loader/index.d.ts +3 -0
- package/package.json +2 -2
- package/dist/biggive/p-7113e36d.entry.js +0 -2
- package/dist/biggive/p-ec934e05.js +0 -3
- package/dist/biggive/p-ec934e05.js.map +0 -1
- package/dist/cjs/index-722b0f6d.js.map +0 -1
- package/dist/collection/components/biggive-accordion/test/biggive-accordion.e2e.js +0 -10
- package/dist/collection/components/biggive-accordion/test/biggive-accordion.e2e.js.map +0 -1
- package/dist/collection/components/biggive-accordion/test/biggive-accordion.spec.js +0 -20
- package/dist/collection/components/biggive-accordion/test/biggive-accordion.spec.js.map +0 -1
- package/dist/collection/components/biggive-accordion-entry/test/biggive-accordion-entry.e2e.js +0 -10
- package/dist/collection/components/biggive-accordion-entry/test/biggive-accordion-entry.e2e.js.map +0 -1
- package/dist/collection/components/biggive-accordion-entry/test/biggive-accordion-entry.spec.js +0 -16
- package/dist/collection/components/biggive-accordion-entry/test/biggive-accordion-entry.spec.js.map +0 -1
- package/dist/collection/components/biggive-article-card/test/biggive-article-card.e2e.js +0 -10
- package/dist/collection/components/biggive-article-card/test/biggive-article-card.e2e.js.map +0 -1
- package/dist/collection/components/biggive-article-card/test/biggive-article-card.spec.js +0 -47
- package/dist/collection/components/biggive-article-card/test/biggive-article-card.spec.js.map +0 -1
- package/dist/collection/components/biggive-back-to-top/test/biggive-back-to-top.e2e.js +0 -10
- package/dist/collection/components/biggive-back-to-top/test/biggive-back-to-top.e2e.js.map +0 -1
- package/dist/collection/components/biggive-back-to-top/test/biggive-back-to-top.spec.js +0 -25
- package/dist/collection/components/biggive-back-to-top/test/biggive-back-to-top.spec.js.map +0 -1
- package/dist/collection/components/biggive-basic-card/test/biggive-basic-card.e2e.js +0 -10
- package/dist/collection/components/biggive-basic-card/test/biggive-basic-card.e2e.js.map +0 -1
- package/dist/collection/components/biggive-basic-card/test/biggive-basic-card.spec.js +0 -39
- package/dist/collection/components/biggive-basic-card/test/biggive-basic-card.spec.js.map +0 -1
- package/dist/collection/components/biggive-beneficiary-icon/test/biggive-beneficiary-icon.e2e.js +0 -10
- package/dist/collection/components/biggive-beneficiary-icon/test/biggive-beneficiary-icon.e2e.js.map +0 -1
- package/dist/collection/components/biggive-beneficiary-icon/test/biggive-beneficiary-icon.spec.js +0 -25
- package/dist/collection/components/biggive-beneficiary-icon/test/biggive-beneficiary-icon.spec.js.map +0 -1
- package/dist/collection/components/biggive-biography-card/test/biggive-biography-card.e2e.js +0 -10
- package/dist/collection/components/biggive-biography-card/test/biggive-biography-card.e2e.js.map +0 -1
- package/dist/collection/components/biggive-biography-card/test/biggive-biography-card.spec.js +0 -22
- package/dist/collection/components/biggive-biography-card/test/biggive-biography-card.spec.js.map +0 -1
- package/dist/collection/components/biggive-boxed-content/test/biggive-boxed-content.e2e.js +0 -10
- package/dist/collection/components/biggive-boxed-content/test/biggive-boxed-content.e2e.js.map +0 -1
- package/dist/collection/components/biggive-boxed-content/test/biggive-boxed-content.spec.js +0 -20
- package/dist/collection/components/biggive-boxed-content/test/biggive-boxed-content.spec.js.map +0 -1
- package/dist/collection/components/biggive-branded-image/test/biggive-branded-image.e2e.js +0 -10
- package/dist/collection/components/biggive-branded-image/test/biggive-branded-image.e2e.js.map +0 -1
- package/dist/collection/components/biggive-branded-image/test/biggive-branded-image.spec.js +0 -22
- package/dist/collection/components/biggive-branded-image/test/biggive-branded-image.spec.js.map +0 -1
- package/dist/collection/components/biggive-button/test/biggive-button.e2e.js +0 -10
- package/dist/collection/components/biggive-button/test/biggive-button.e2e.js.map +0 -1
- package/dist/collection/components/biggive-button/test/biggive-button.spec.js +0 -22
- package/dist/collection/components/biggive-button/test/biggive-button.spec.js.map +0 -1
- package/dist/collection/components/biggive-call-to-action/test/biggive-call-to-action.e2e.js +0 -10
- package/dist/collection/components/biggive-call-to-action/test/biggive-call-to-action.e2e.js.map +0 -1
- package/dist/collection/components/biggive-call-to-action/test/biggive-call-to-action.spec.js +0 -27
- package/dist/collection/components/biggive-call-to-action/test/biggive-call-to-action.spec.js.map +0 -1
- package/dist/collection/components/biggive-campaign-card/test/biggive-campaign-card.e2e.js +0 -10
- package/dist/collection/components/biggive-campaign-card/test/biggive-campaign-card.e2e.js.map +0 -1
- package/dist/collection/components/biggive-campaign-card/test/biggive-campaign-card.spec.js +0 -104
- package/dist/collection/components/biggive-campaign-card/test/biggive-campaign-card.spec.js.map +0 -1
- package/dist/collection/components/biggive-campaign-card-filter-grid/test/biggive-campaign-card-filter-grid.e2e.js +0 -10
- package/dist/collection/components/biggive-campaign-card-filter-grid/test/biggive-campaign-card-filter-grid.e2e.js.map +0 -1
- package/dist/collection/components/biggive-campaign-card-filter-grid/test/biggive-campaign-card-filter-grid.spec.js +0 -164
- package/dist/collection/components/biggive-campaign-card-filter-grid/test/biggive-campaign-card-filter-grid.spec.js.map +0 -1
- package/dist/collection/components/biggive-campaign-highlights/test/biggive-campaign-highlights.e2e.js +0 -10
- package/dist/collection/components/biggive-campaign-highlights/test/biggive-campaign-highlights.e2e.js.map +0 -1
- package/dist/collection/components/biggive-campaign-highlights/test/biggive-campaign-highlights.spec.js +0 -40
- package/dist/collection/components/biggive-campaign-highlights/test/biggive-campaign-highlights.spec.js.map +0 -1
- package/dist/collection/components/biggive-category-icon/test/biggive-category-icon.e2e.js +0 -10
- package/dist/collection/components/biggive-category-icon/test/biggive-category-icon.e2e.js.map +0 -1
- package/dist/collection/components/biggive-category-icon/test/biggive-category-icon.spec.js +0 -25
- package/dist/collection/components/biggive-category-icon/test/biggive-category-icon.spec.js.map +0 -1
- package/dist/collection/components/biggive-cookie-banner/test/biggive-cookie-banner.e2e.js +0 -10
- package/dist/collection/components/biggive-cookie-banner/test/biggive-cookie-banner.e2e.js.map +0 -1
- package/dist/collection/components/biggive-footer/test/biggive-footer.e2e.js +0 -10
- package/dist/collection/components/biggive-footer/test/biggive-footer.e2e.js.map +0 -1
- package/dist/collection/components/biggive-footer/test/biggive-footer.spec.js +0 -51
- package/dist/collection/components/biggive-footer/test/biggive-footer.spec.js.map +0 -1
- package/dist/collection/components/biggive-form/test/biggive-form.e2e.js +0 -10
- package/dist/collection/components/biggive-form/test/biggive-form.e2e.js.map +0 -1
- package/dist/collection/components/biggive-form/test/biggive-form.spec.js +0 -18
- package/dist/collection/components/biggive-form/test/biggive-form.spec.js.map +0 -1
- package/dist/collection/components/biggive-form-field-select/test/biggive-form-field-select.e2e.js +0 -10
- package/dist/collection/components/biggive-form-field-select/test/biggive-form-field-select.e2e.js.map +0 -1
- package/dist/collection/components/biggive-form-field-select/test/biggive-form-field-select.spec.js +0 -38
- package/dist/collection/components/biggive-form-field-select/test/biggive-form-field-select.spec.js.map +0 -1
- package/dist/collection/components/biggive-formatted-text/test/biggive-formatted-text.e2e.js +0 -10
- package/dist/collection/components/biggive-formatted-text/test/biggive-formatted-text.e2e.js.map +0 -1
- package/dist/collection/components/biggive-formatted-text/test/biggive-formatted-text.spec.js +0 -20
- package/dist/collection/components/biggive-formatted-text/test/biggive-formatted-text.spec.js.map +0 -1
- package/dist/collection/components/biggive-generic-icon/test/biggive-generic-icon.e2e.js +0 -10
- package/dist/collection/components/biggive-generic-icon/test/biggive-generic-icon.e2e.js.map +0 -1
- package/dist/collection/components/biggive-generic-icon/test/biggive-generic-icon.spec.js +0 -18
- package/dist/collection/components/biggive-generic-icon/test/biggive-generic-icon.spec.js.map +0 -1
- package/dist/collection/components/biggive-grid/test/biggive-grid.e2e.js +0 -10
- package/dist/collection/components/biggive-grid/test/biggive-grid.e2e.js.map +0 -1
- package/dist/collection/components/biggive-grid/test/biggive-grid.spec.js +0 -20
- package/dist/collection/components/biggive-grid/test/biggive-grid.spec.js.map +0 -1
- package/dist/collection/components/biggive-heading/test/biggive-heading.e2e.js +0 -10
- package/dist/collection/components/biggive-heading/test/biggive-heading.e2e.js.map +0 -1
- package/dist/collection/components/biggive-heading/test/biggive-heading.spec.js +0 -20
- package/dist/collection/components/biggive-heading/test/biggive-heading.spec.js.map +0 -1
- package/dist/collection/components/biggive-hero-image/test/biggive-hero-image.e2e.js +0 -10
- package/dist/collection/components/biggive-hero-image/test/biggive-hero-image.e2e.js.map +0 -1
- package/dist/collection/components/biggive-hero-image/test/biggive-hero-image.spec.js +0 -47
- package/dist/collection/components/biggive-hero-image/test/biggive-hero-image.spec.js.map +0 -1
- package/dist/collection/components/biggive-icon-button/test/biggive-icon-button.e2e.js +0 -10
- package/dist/collection/components/biggive-icon-button/test/biggive-icon-button.e2e.js.map +0 -1
- package/dist/collection/components/biggive-icon-button/test/biggive-icon-button.spec.js +0 -27
- package/dist/collection/components/biggive-icon-button/test/biggive-icon-button.spec.js.map +0 -1
- package/dist/collection/components/biggive-icon-group/test/biggive-icon-group.e2e.js +0 -10
- package/dist/collection/components/biggive-icon-group/test/biggive-icon-group.e2e.js.map +0 -1
- package/dist/collection/components/biggive-icon-group/test/biggive-icon-group.spec.js +0 -22
- package/dist/collection/components/biggive-icon-group/test/biggive-icon-group.spec.js.map +0 -1
- package/dist/collection/components/biggive-image/test/biggive-image.e2e.js +0 -10
- package/dist/collection/components/biggive-image/test/biggive-image.e2e.js.map +0 -1
- package/dist/collection/components/biggive-image/test/biggive-image.spec.js +0 -22
- package/dist/collection/components/biggive-image/test/biggive-image.spec.js.map +0 -1
- package/dist/collection/components/biggive-image-button/test/biggive-image-button.e2e.js +0 -10
- package/dist/collection/components/biggive-image-button/test/biggive-image-button.e2e.js.map +0 -1
- package/dist/collection/components/biggive-image-button/test/biggive-image-button.spec.js +0 -25
- package/dist/collection/components/biggive-image-button/test/biggive-image-button.spec.js.map +0 -1
- package/dist/collection/components/biggive-image-card/test/biggive-image-card.e2e.js +0 -10
- package/dist/collection/components/biggive-image-card/test/biggive-image-card.e2e.js.map +0 -1
- package/dist/collection/components/biggive-image-card/test/biggive-image-card.spec.js +0 -30
- package/dist/collection/components/biggive-image-card/test/biggive-image-card.spec.js.map +0 -1
- package/dist/collection/components/biggive-image-feature/test/biggive-image-feature.e2e.js +0 -10
- package/dist/collection/components/biggive-image-feature/test/biggive-image-feature.e2e.js.map +0 -1
- package/dist/collection/components/biggive-image-feature/test/biggive-image-feature.spec.js +0 -31
- package/dist/collection/components/biggive-image-feature/test/biggive-image-feature.spec.js.map +0 -1
- package/dist/collection/components/biggive-main-menu/test/biggive-main-menu.e2e.js +0 -10
- package/dist/collection/components/biggive-main-menu/test/biggive-main-menu.e2e.js.map +0 -1
- package/dist/collection/components/biggive-main-menu/test/biggive-main-menu.spec.js +0 -248
- package/dist/collection/components/biggive-main-menu/test/biggive-main-menu.spec.js.map +0 -1
- package/dist/collection/components/biggive-misc-icon/test/biggive-misc-icon.e2e.js +0 -10
- package/dist/collection/components/biggive-misc-icon/test/biggive-misc-icon.e2e.js.map +0 -1
- package/dist/collection/components/biggive-misc-icon/test/biggive-misc-icon.spec.js +0 -22
- package/dist/collection/components/biggive-misc-icon/test/biggive-misc-icon.spec.js.map +0 -1
- package/dist/collection/components/biggive-nav-group/test/biggive-nav-group.e2e.js +0 -10
- package/dist/collection/components/biggive-nav-group/test/biggive-nav-group.e2e.js.map +0 -1
- package/dist/collection/components/biggive-nav-group/test/biggive-nav-group.spec.js +0 -20
- package/dist/collection/components/biggive-nav-group/test/biggive-nav-group.spec.js.map +0 -1
- package/dist/collection/components/biggive-nav-item/test/biggive-nav-item.e2e.js +0 -10
- package/dist/collection/components/biggive-nav-item/test/biggive-nav-item.e2e.js.map +0 -1
- package/dist/collection/components/biggive-nav-item/test/biggive-nav-item.spec.js +0 -21
- package/dist/collection/components/biggive-nav-item/test/biggive-nav-item.spec.js.map +0 -1
- package/dist/collection/components/biggive-page-column/test/biggive-page-column.e2e.js +0 -10
- package/dist/collection/components/biggive-page-column/test/biggive-page-column.e2e.js.map +0 -1
- package/dist/collection/components/biggive-page-column/test/biggive-page-column.spec.js +0 -18
- package/dist/collection/components/biggive-page-column/test/biggive-page-column.spec.js.map +0 -1
- package/dist/collection/components/biggive-page-columns/test/biggive-page-columns.e2e.js +0 -10
- package/dist/collection/components/biggive-page-columns/test/biggive-page-columns.e2e.js.map +0 -1
- package/dist/collection/components/biggive-page-columns/test/biggive-page-columns.spec.js +0 -27
- package/dist/collection/components/biggive-page-columns/test/biggive-page-columns.spec.js.map +0 -1
- package/dist/collection/components/biggive-page-section/test/biggive-page-section.e2e.js +0 -10
- package/dist/collection/components/biggive-page-section/test/biggive-page-section.e2e.js.map +0 -1
- package/dist/collection/components/biggive-page-section/test/biggive-page-section.spec.js +0 -22
- package/dist/collection/components/biggive-page-section/test/biggive-page-section.spec.js.map +0 -1
- package/dist/collection/components/biggive-popup/test/biggive-popup.e2e.js +0 -10
- package/dist/collection/components/biggive-popup/test/biggive-popup.e2e.js.map +0 -1
- package/dist/collection/components/biggive-popup/test/biggive-popup.spec.js +0 -27
- package/dist/collection/components/biggive-popup/test/biggive-popup.spec.js.map +0 -1
- package/dist/collection/components/biggive-progress-bar/test/biggive-progress-bar.e2e.js +0 -10
- package/dist/collection/components/biggive-progress-bar/test/biggive-progress-bar.e2e.js.map +0 -1
- package/dist/collection/components/biggive-progress-bar/test/biggive-progress-bar.spec.js +0 -25
- package/dist/collection/components/biggive-progress-bar/test/biggive-progress-bar.spec.js.map +0 -1
- package/dist/collection/components/biggive-quote/test/biggive-quote.e2e.js +0 -10
- package/dist/collection/components/biggive-quote/test/biggive-quote.e2e.js.map +0 -1
- package/dist/collection/components/biggive-quote/test/biggive-quote.spec.js +0 -30
- package/dist/collection/components/biggive-quote/test/biggive-quote.spec.js.map +0 -1
- package/dist/collection/components/biggive-sheet/test/biggive-sheet.e2e.js +0 -10
- package/dist/collection/components/biggive-sheet/test/biggive-sheet.e2e.js.map +0 -1
- package/dist/collection/components/biggive-sheet/test/biggive-sheet.spec.js +0 -42
- package/dist/collection/components/biggive-sheet/test/biggive-sheet.spec.js.map +0 -1
- package/dist/collection/components/biggive-social-icon/test/biggive-social-icon.e2e.js +0 -10
- package/dist/collection/components/biggive-social-icon/test/biggive-social-icon.e2e.js.map +0 -1
- package/dist/collection/components/biggive-social-icon/test/biggive-social-icon.spec.js +0 -22
- package/dist/collection/components/biggive-social-icon/test/biggive-social-icon.spec.js.map +0 -1
- package/dist/collection/components/biggive-tab/test/biggive-tab.e2e.js +0 -10
- package/dist/collection/components/biggive-tab/test/biggive-tab.e2e.js.map +0 -1
- package/dist/collection/components/biggive-tab/test/biggive-tab.spec.js +0 -20
- package/dist/collection/components/biggive-tab/test/biggive-tab.spec.js.map +0 -1
- package/dist/collection/components/biggive-tabbed-content/test/biggive-tabbed-content.e2e.js +0 -10
- package/dist/collection/components/biggive-tabbed-content/test/biggive-tabbed-content.e2e.js.map +0 -1
- package/dist/collection/components/biggive-tabbed-content/test/biggive-tabbed-content.spec.js +0 -35
- package/dist/collection/components/biggive-tabbed-content/test/biggive-tabbed-content.spec.js.map +0 -1
- package/dist/collection/components/biggive-table/test/biggive-table.e2e.js +0 -10
- package/dist/collection/components/biggive-table/test/biggive-table.e2e.js.map +0 -1
- package/dist/collection/components/biggive-table/test/biggive-table.spec.js +0 -16
- package/dist/collection/components/biggive-table/test/biggive-table.spec.js.map +0 -1
- package/dist/collection/components/biggive-timeline/test/biggive-timeline.e2e.js +0 -10
- package/dist/collection/components/biggive-timeline/test/biggive-timeline.e2e.js.map +0 -1
- package/dist/collection/components/biggive-timeline/test/biggive-timeline.spec.js +0 -35
- package/dist/collection/components/biggive-timeline/test/biggive-timeline.spec.js.map +0 -1
- package/dist/collection/components/biggive-timeline-entry/test/biggive-timeline-entry.e2e.js +0 -10
- package/dist/collection/components/biggive-timeline-entry/test/biggive-timeline-entry.e2e.js.map +0 -1
- package/dist/collection/components/biggive-timeline-entry/test/biggive-timeline-entry.spec.js +0 -16
- package/dist/collection/components/biggive-timeline-entry/test/biggive-timeline-entry.spec.js.map +0 -1
- package/dist/collection/components/biggive-totalizer/test/biggive-totalizer.e2e.js +0 -10
- package/dist/collection/components/biggive-totalizer/test/biggive-totalizer.e2e.js.map +0 -1
- package/dist/collection/components/biggive-totalizer/test/biggive-totalizer.spec.js +0 -37
- package/dist/collection/components/biggive-totalizer/test/biggive-totalizer.spec.js.map +0 -1
- package/dist/collection/components/biggive-totalizer-ticker-item/test/biggive-totalizer-ticker-item.e2e.js +0 -10
- package/dist/collection/components/biggive-totalizer-ticker-item/test/biggive-totalizer-ticker-item.e2e.js.map +0 -1
- package/dist/collection/components/biggive-totalizer-ticker-item/test/biggive-totalizer-ticker-item.spec.js +0 -20
- package/dist/collection/components/biggive-totalizer-ticker-item/test/biggive-totalizer-ticker-item.spec.js.map +0 -1
- package/dist/collection/components/biggive-video/test/biggive-video.e2e.js +0 -10
- package/dist/collection/components/biggive-video/test/biggive-video.e2e.js.map +0 -1
- package/dist/collection/components/biggive-video/test/biggive-video.spec.js +0 -22
- package/dist/collection/components/biggive-video/test/biggive-video.spec.js.map +0 -1
- package/dist/collection/components/biggive-video-feature/test/biggive-video-feature.e2e.js +0 -10
- package/dist/collection/components/biggive-video-feature/test/biggive-video-feature.e2e.js.map +0 -1
- package/dist/collection/components/biggive-video-feature/test/biggive-video-feature.spec.js +0 -31
- package/dist/collection/components/biggive-video-feature/test/biggive-video-feature.spec.js.map +0 -1
- package/dist/esm/index-7638dc89.js.map +0 -1
- /package/dist/biggive/{p-03e72a1b.entry.js.map → p-0b4ee936.entry.js.map} +0 -0
- /package/dist/biggive/{p-496a5b1e.entry.js.map → p-0da9aaea.entry.js.map} +0 -0
- /package/dist/biggive/{p-6cb8dd3e.entry.js.map → p-44ab6633.entry.js.map} +0 -0
- /package/dist/biggive/{p-b4282163.entry.js.map → p-476b7951.entry.js.map} +0 -0
- /package/dist/biggive/{p-09533b1f.entry.js.map → p-5acc52fd.entry.js.map} +0 -0
- /package/dist/biggive/{p-b930ac6d.entry.js.map → p-5bee83dc.entry.js.map} +0 -0
- /package/dist/biggive/{p-8146607d.entry.js.map → p-6d6302dc.entry.js.map} +0 -0
- /package/dist/biggive/{p-fe03b6e6.entry.js.map → p-79ffb9ce.entry.js.map} +0 -0
- /package/dist/biggive/{p-a52c70dd.entry.js.map → p-908e904e.entry.js.map} +0 -0
- /package/dist/biggive/{p-7113e36d.entry.js.map → p-92294a84.entry.js.map} +0 -0
- /package/dist/biggive/{p-6ad95202.entry.js.map → p-9333c5d6.entry.js.map} +0 -0
- /package/dist/biggive/{p-a4648f6b.entry.js.map → p-c5aff541.entry.js.map} +0 -0
- /package/dist/biggive/{p-cc58f607.entry.js.map → p-ef8e48f7.entry.js.map} +0 -0
package/hydrate/index.js
CHANGED
|
@@ -2,6 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
+
var stream = require('stream');
|
|
6
|
+
|
|
5
7
|
function hydrateFactory($stencilWindow, $stencilHydrateOpts, $stencilHydrateResults, $stencilAfterHydrate, $stencilHydrateResolve) {
|
|
6
8
|
var globalThis = $stencilWindow;
|
|
7
9
|
var self = $stencilWindow;
|
|
@@ -125,7 +127,7 @@ const NAMESPACE = 'biggive';
|
|
|
125
127
|
const BUILD = /* biggive */ { allRenderFn: true, appendChildSlotFix: false, asyncLoading: true, attachStyles: true, cloneNodeFix: false, cmpDidLoad: true, cmpDidRender: true, cmpDidUnload: false, cmpDidUpdate: false, cmpShouldUpdate: false, cmpWillLoad: true, cmpWillRender: true, cmpWillUpdate: false, connectedCallback: false, constructableCSS: false, cssAnnotations: true, devTools: false, disconnectedCallback: false, element: false, event: true, experimentalScopedSlotChanges: false, experimentalSlotFixes: false, formAssociated: false, hasRenderFn: true, hostListener: false, hostListenerTarget: false, hostListenerTargetBody: false, hostListenerTargetDocument: false, hostListenerTargetParent: false, hostListenerTargetWindow: false, hotModuleReplacement: false, hydrateClientSide: true, hydrateServerSide: true, hydratedAttribute: false, hydratedClass: true, hydratedSelectorName: "hydrated", invisiblePrehydration: true, isDebug: false, isDev: false, isTesting: false, lazyLoad: true, lifecycle: true, lifecycleDOMEvents: false, member: true, method: true, mode: false, observeAttribute: true, profile: false, prop: true, propBoolean: true, propMutable: true, propNumber: true, propString: true, reflect: false, scoped: false, scopedSlotTextContentFix: true, scriptDataOpts: false, shadowDelegatesFocus: false, shadowDom: true, shadowDomShim: true, slot: true, slotChildNodesFix: false, slotRelocation: true, state: true, style: true, svg: true, taskQueue: true, updatable: true, vdomAttribute: true, vdomClass: true, vdomFunctional: true, vdomKey: true, vdomListener: true, vdomPropOrAttr: true, vdomRef: true, vdomRender: true, vdomStyle: true, vdomText: true, vdomXlink: false, watchCallback: true };
|
|
126
128
|
|
|
127
129
|
/*
|
|
128
|
-
Stencil Hydrate Platform v4.
|
|
130
|
+
Stencil Hydrate Platform v4.19.0 | MIT Licensed | https://stenciljs.com
|
|
129
131
|
*/
|
|
130
132
|
var __defProp = Object.defineProperty;
|
|
131
133
|
var __export = (target, all) => {
|
|
@@ -150,7 +152,6 @@ var isComplexType = (o) => {
|
|
|
150
152
|
o = typeof o;
|
|
151
153
|
return o === "object" || o === "function";
|
|
152
154
|
};
|
|
153
|
-
var isPromise = (v) => !!v && (typeof v === "object" || typeof v === "function") && typeof v.then === "function";
|
|
154
155
|
|
|
155
156
|
// src/utils/query-nonce-meta-tag-content.ts
|
|
156
157
|
function queryNonceMetaTagContent(doc2) {
|
|
@@ -581,19 +582,21 @@ var registerStyle = (scopeId2, cssText, allowCS) => {
|
|
|
581
582
|
};
|
|
582
583
|
var addStyle = (styleContainerNode, cmpMeta, mode) => {
|
|
583
584
|
var _a;
|
|
585
|
+
const styleContainerDocument = styleContainerNode;
|
|
586
|
+
const styleContainerShadowRoot = styleContainerNode;
|
|
584
587
|
const scopeId2 = getScopeId(cmpMeta);
|
|
585
588
|
const style = styles.get(scopeId2);
|
|
586
589
|
styleContainerNode = styleContainerNode.nodeType === 11 /* DocumentFragment */ ? styleContainerNode : doc;
|
|
587
590
|
if (style) {
|
|
588
591
|
if (typeof style === "string") {
|
|
589
|
-
styleContainerNode =
|
|
592
|
+
styleContainerNode = styleContainerDocument.head || styleContainerNode;
|
|
590
593
|
let appliedStyles = rootAppliedStyles.get(styleContainerNode);
|
|
591
594
|
let styleElm;
|
|
592
595
|
if (!appliedStyles) {
|
|
593
596
|
rootAppliedStyles.set(styleContainerNode, appliedStyles = /* @__PURE__ */ new Set());
|
|
594
597
|
}
|
|
595
598
|
if (!appliedStyles.has(scopeId2)) {
|
|
596
|
-
if (
|
|
599
|
+
if (styleContainerShadowRoot.host && (styleElm = styleContainerNode.querySelector(`[${HYDRATED_STYLE_ID}="${scopeId2}"]`))) {
|
|
597
600
|
styleElm.innerHTML = style;
|
|
598
601
|
} else {
|
|
599
602
|
styleElm = doc.createElement("style");
|
|
@@ -624,7 +627,7 @@ var attachStyles = (hostRef) => {
|
|
|
624
627
|
const flags = cmpMeta.$flags$;
|
|
625
628
|
const endAttachStyles = createTime("attachStyles", cmpMeta.$tagName$);
|
|
626
629
|
const scopeId2 = addStyle(
|
|
627
|
-
elm.getRootNode(),
|
|
630
|
+
elm.shadowRoot ? elm.shadowRoot : elm.getRootNode(),
|
|
628
631
|
cmpMeta);
|
|
629
632
|
if (flags & 10 /* needsScopedEncapsulation */) {
|
|
630
633
|
elm["s-sc"] = scopeId2;
|
|
@@ -788,7 +791,7 @@ var createElm = (oldParentVNode, newParentVNode, childIndex, parentElm) => {
|
|
|
788
791
|
}
|
|
789
792
|
elm = newVNode2.$elm$ = doc.createElementNS(
|
|
790
793
|
isSvgMode ? SVG_NS : HTML_NS,
|
|
791
|
-
newVNode2.$flags$ & 2 /* isSlotFallback */ ? "slot-fb" : newVNode2.$tag$
|
|
794
|
+
!useNativeShadowDom && BUILD.slotRelocation && newVNode2.$flags$ & 2 /* isSlotFallback */ ? "slot-fb" : newVNode2.$tag$
|
|
792
795
|
) ;
|
|
793
796
|
if (isSvgMode && newVNode2.$tag$ === "foreignObject") {
|
|
794
797
|
isSvgMode = false;
|
|
@@ -1139,6 +1142,7 @@ var insertBefore = (parent, newNode, reference) => {
|
|
|
1139
1142
|
var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
|
|
1140
1143
|
var _a, _b, _c, _d;
|
|
1141
1144
|
const hostElm = hostRef.$hostElement$;
|
|
1145
|
+
const cmpMeta = hostRef.$cmpMeta$;
|
|
1142
1146
|
const oldVNode = hostRef.$vnode$ || newVNode(null, null);
|
|
1143
1147
|
const rootVnode = isHost(renderFnResults) ? renderFnResults : h(null, null, renderFnResults);
|
|
1144
1148
|
hostTagName = hostElm.tagName;
|
|
@@ -1156,7 +1160,7 @@ var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
|
|
|
1156
1160
|
{
|
|
1157
1161
|
scopeId = hostElm["s-sc"];
|
|
1158
1162
|
}
|
|
1159
|
-
useNativeShadowDom =
|
|
1163
|
+
useNativeShadowDom = (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) !== 0;
|
|
1160
1164
|
{
|
|
1161
1165
|
contentRef = hostElm["s-cr"];
|
|
1162
1166
|
checkSlotFallbackVisibility = false;
|
|
@@ -1273,7 +1277,10 @@ var dispatchHooks = (hostRef, isInitialLoad) => {
|
|
|
1273
1277
|
endSchedule();
|
|
1274
1278
|
return enqueue(maybePromise, () => updateComponent(hostRef, instance, isInitialLoad));
|
|
1275
1279
|
};
|
|
1276
|
-
var enqueue = (maybePromise, fn) => isPromisey(maybePromise) ? maybePromise.then(fn)
|
|
1280
|
+
var enqueue = (maybePromise, fn) => isPromisey(maybePromise) ? maybePromise.then(fn).catch((err2) => {
|
|
1281
|
+
console.error(err2);
|
|
1282
|
+
fn();
|
|
1283
|
+
}) : fn();
|
|
1277
1284
|
var isPromisey = (maybePromise) => maybePromise instanceof Promise || maybePromise && maybePromise.then && typeof maybePromise.then === "function";
|
|
1278
1285
|
var updateComponent = async (hostRef, instance, isInitialLoad) => {
|
|
1279
1286
|
var _a;
|
|
@@ -1454,13 +1461,13 @@ var setValue = (ref, propName, newVal, cmpMeta) => {
|
|
|
1454
1461
|
|
|
1455
1462
|
// src/runtime/proxy-component.ts
|
|
1456
1463
|
var proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
1457
|
-
var _a;
|
|
1464
|
+
var _a, _b;
|
|
1458
1465
|
const prototype = Cstr.prototype;
|
|
1459
|
-
if (cmpMeta.$members$) {
|
|
1460
|
-
if (Cstr.watchers) {
|
|
1466
|
+
if (cmpMeta.$members$ || (cmpMeta.$watchers$ || Cstr.watchers)) {
|
|
1467
|
+
if (Cstr.watchers && !cmpMeta.$watchers$) {
|
|
1461
1468
|
cmpMeta.$watchers$ = Cstr.watchers;
|
|
1462
1469
|
}
|
|
1463
|
-
const members = Object.entries(cmpMeta.$members$);
|
|
1470
|
+
const members = Object.entries((_a = cmpMeta.$members$) != null ? _a : {});
|
|
1464
1471
|
members.map(([memberName, [memberFlags]]) => {
|
|
1465
1472
|
if ((memberFlags & 31 /* Prop */ || (flags & 2 /* proxyState */) && memberFlags & 32 /* State */)) {
|
|
1466
1473
|
Object.defineProperty(prototype, memberName, {
|
|
@@ -1516,7 +1523,7 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
1516
1523
|
};
|
|
1517
1524
|
Cstr.observedAttributes = Array.from(
|
|
1518
1525
|
/* @__PURE__ */ new Set([
|
|
1519
|
-
...Object.keys((
|
|
1526
|
+
...Object.keys((_b = cmpMeta.$watchers$) != null ? _b : {}),
|
|
1520
1527
|
...members.filter(([_, m]) => m[0] & 15 /* HasAttribute */).map(([propName, m]) => {
|
|
1521
1528
|
const attrName = m[1] || propName;
|
|
1522
1529
|
attrNameToPropName.set(attrName, propName);
|
|
@@ -1576,7 +1583,10 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
|
|
|
1576
1583
|
customElements.whenDefined(cmpTag).then(() => hostRef.$flags$ |= 128 /* isWatchReady */);
|
|
1577
1584
|
}
|
|
1578
1585
|
if (Cstr && Cstr.style) {
|
|
1579
|
-
let style
|
|
1586
|
+
let style;
|
|
1587
|
+
if (typeof Cstr.style === "string") {
|
|
1588
|
+
style = Cstr.style;
|
|
1589
|
+
}
|
|
1580
1590
|
const scopeId2 = getScopeId(cmpMeta);
|
|
1581
1591
|
if (!styles.has(scopeId2)) {
|
|
1582
1592
|
const endRegisterStyles = createTime("registerStyles", cmpMeta.$tagName$);
|
|
@@ -1608,6 +1618,10 @@ var connectedCallback = (elm) => {
|
|
|
1608
1618
|
{
|
|
1609
1619
|
hostId = elm.getAttribute(HYDRATE_ID);
|
|
1610
1620
|
if (hostId) {
|
|
1621
|
+
if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) {
|
|
1622
|
+
const scopeId2 = addStyle(elm.shadowRoot, cmpMeta);
|
|
1623
|
+
elm.classList.remove(scopeId2 + "-h", scopeId2 + "-s");
|
|
1624
|
+
}
|
|
1611
1625
|
initializeClientHydrate(elm, cmpMeta.$tagName$, hostId, hostRef);
|
|
1612
1626
|
}
|
|
1613
1627
|
}
|
|
@@ -1696,6 +1710,7 @@ var insertVdomAnnotations = (doc2, staticComponents) => {
|
|
|
1696
1710
|
}
|
|
1697
1711
|
};
|
|
1698
1712
|
var parseVNodeAnnotations = (doc2, node, docData, orgLocationNodes) => {
|
|
1713
|
+
var _a;
|
|
1699
1714
|
if (node == null) {
|
|
1700
1715
|
return;
|
|
1701
1716
|
}
|
|
@@ -1703,7 +1718,8 @@ var parseVNodeAnnotations = (doc2, node, docData, orgLocationNodes) => {
|
|
|
1703
1718
|
orgLocationNodes.push(node);
|
|
1704
1719
|
}
|
|
1705
1720
|
if (node.nodeType === 1 /* ElementNode */) {
|
|
1706
|
-
node.childNodes.
|
|
1721
|
+
const childNodes = [...Array.from(node.childNodes), ...Array.from(((_a = node.shadowRoot) == null ? void 0 : _a.childNodes) || [])];
|
|
1722
|
+
childNodes.forEach((childNode) => {
|
|
1707
1723
|
const hostRef = getHostRef(childNode);
|
|
1708
1724
|
if (hostRef != null && !docData.staticComponents.has(childNode.nodeName.toLowerCase())) {
|
|
1709
1725
|
const cmpData = {
|
|
@@ -1784,44 +1800,53 @@ var insertChildVNodeAnnotations = (doc2, vnodeChild, cmpData, hostId, depth, ind
|
|
|
1784
1800
|
var hAsync = (nodeName, vnodeData, ...children) => {
|
|
1785
1801
|
if (Array.isArray(children) && children.length > 0) {
|
|
1786
1802
|
const flatChildren = children.flat(Infinity);
|
|
1787
|
-
if (flatChildren.some(
|
|
1803
|
+
if (flatChildren.some((child) => child instanceof Promise)) {
|
|
1788
1804
|
return Promise.all(flatChildren).then((resolvedChildren) => {
|
|
1789
1805
|
return h(nodeName, vnodeData, ...resolvedChildren);
|
|
1790
1806
|
}).catch((err2) => {
|
|
1791
1807
|
return h(nodeName, vnodeData);
|
|
1792
1808
|
});
|
|
1793
1809
|
}
|
|
1794
|
-
return h(nodeName, vnodeData, ...
|
|
1810
|
+
return h(nodeName, vnodeData, ...flatChildren);
|
|
1795
1811
|
}
|
|
1796
1812
|
return h(nodeName, vnodeData);
|
|
1797
1813
|
};
|
|
1798
|
-
|
|
1799
|
-
// src/hydrate/platform/proxy-host-element.ts
|
|
1800
|
-
function proxyHostElement(elm, cmpMeta) {
|
|
1814
|
+
function proxyHostElement(elm, cmpMeta, opts) {
|
|
1801
1815
|
if (typeof elm.componentOnReady !== "function") {
|
|
1802
1816
|
elm.componentOnReady = componentOnReady;
|
|
1803
1817
|
}
|
|
1804
1818
|
if (typeof elm.forceUpdate !== "function") {
|
|
1805
1819
|
elm.forceUpdate = forceUpdate2;
|
|
1806
1820
|
}
|
|
1807
|
-
if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) {
|
|
1808
|
-
|
|
1821
|
+
if (!elm.shadowRoot && !!(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */)) {
|
|
1822
|
+
if (opts.serializeShadowRoot) {
|
|
1823
|
+
elm.attachShadow({ mode: "open" });
|
|
1824
|
+
} else {
|
|
1825
|
+
elm.shadowRoot = elm;
|
|
1826
|
+
}
|
|
1809
1827
|
}
|
|
1810
1828
|
if (cmpMeta.$members$ != null) {
|
|
1811
1829
|
const hostRef = getHostRef(elm);
|
|
1812
1830
|
const members = Object.entries(cmpMeta.$members$);
|
|
1813
1831
|
members.forEach(([memberName, m]) => {
|
|
1832
|
+
var _a, _b;
|
|
1814
1833
|
const memberFlags = m[0];
|
|
1815
1834
|
if (memberFlags & 31 /* Prop */) {
|
|
1816
1835
|
const attributeName = m[1] || memberName;
|
|
1817
|
-
|
|
1836
|
+
let attrValue = elm.getAttribute(attributeName);
|
|
1837
|
+
if ((attrValue == null ? void 0 : attrValue.startsWith("{")) && attrValue.endsWith("}") || (attrValue == null ? void 0 : attrValue.startsWith("[")) && attrValue.endsWith("]")) {
|
|
1838
|
+
try {
|
|
1839
|
+
attrValue = JSON.parse(attrValue);
|
|
1840
|
+
} catch (e) {
|
|
1841
|
+
}
|
|
1842
|
+
}
|
|
1818
1843
|
if (attrValue != null) {
|
|
1819
1844
|
const parsedAttrValue = parsePropertyValue(attrValue, memberFlags);
|
|
1820
|
-
hostRef.$instanceValues
|
|
1845
|
+
(_a = hostRef == null ? void 0 : hostRef.$instanceValues$) == null ? void 0 : _a.set(memberName, parsedAttrValue);
|
|
1821
1846
|
}
|
|
1822
1847
|
const ownValue = elm[memberName];
|
|
1823
1848
|
if (ownValue !== void 0) {
|
|
1824
|
-
hostRef.$instanceValues
|
|
1849
|
+
(_b = hostRef == null ? void 0 : hostRef.$instanceValues$) == null ? void 0 : _b.set(memberName, ownValue);
|
|
1825
1850
|
delete elm[memberName];
|
|
1826
1851
|
}
|
|
1827
1852
|
Object.defineProperty(elm, memberName, {
|
|
@@ -1837,8 +1862,12 @@ function proxyHostElement(elm, cmpMeta) {
|
|
|
1837
1862
|
} else if (memberFlags & 64 /* Method */) {
|
|
1838
1863
|
Object.defineProperty(elm, memberName, {
|
|
1839
1864
|
value(...args) {
|
|
1865
|
+
var _a2;
|
|
1840
1866
|
const ref = getHostRef(this);
|
|
1841
|
-
return ref.$onInstancePromise
|
|
1867
|
+
return (_a2 = ref == null ? void 0 : ref.$onInstancePromise$) == null ? void 0 : _a2.then(() => {
|
|
1868
|
+
var _a3;
|
|
1869
|
+
return (_a3 = ref == null ? void 0 : ref.$lazyInstance$) == null ? void 0 : _a3[memberName](...args);
|
|
1870
|
+
}).catch(consoleError);
|
|
1842
1871
|
}
|
|
1843
1872
|
});
|
|
1844
1873
|
}
|
|
@@ -1846,7 +1875,8 @@ function proxyHostElement(elm, cmpMeta) {
|
|
|
1846
1875
|
}
|
|
1847
1876
|
}
|
|
1848
1877
|
function componentOnReady() {
|
|
1849
|
-
|
|
1878
|
+
var _a;
|
|
1879
|
+
return (_a = getHostRef(this)) == null ? void 0 : _a.$onReadyPromise$;
|
|
1850
1880
|
}
|
|
1851
1881
|
function forceUpdate2() {
|
|
1852
1882
|
}
|
|
@@ -1862,7 +1892,7 @@ function hydrateApp(win2, opts, results, afterHydrate, resolve) {
|
|
|
1862
1892
|
let tmrId;
|
|
1863
1893
|
let ranCompleted = false;
|
|
1864
1894
|
function hydratedComplete() {
|
|
1865
|
-
|
|
1895
|
+
globalThis.clearTimeout(tmrId);
|
|
1866
1896
|
createdElements.clear();
|
|
1867
1897
|
connectedElements.clear();
|
|
1868
1898
|
if (!ranCompleted) {
|
|
@@ -1903,7 +1933,7 @@ function hydrateApp(win2, opts, results, afterHydrate, resolve) {
|
|
|
1903
1933
|
createdElements.add(elm);
|
|
1904
1934
|
elm.connectedCallback = patchedConnectedCallback2;
|
|
1905
1935
|
registerHost(elm, Cstr.cmpMeta);
|
|
1906
|
-
proxyHostElement(elm, Cstr.cmpMeta);
|
|
1936
|
+
proxyHostElement(elm, Cstr.cmpMeta, opts);
|
|
1907
1937
|
}
|
|
1908
1938
|
}
|
|
1909
1939
|
}
|
|
@@ -1941,7 +1971,7 @@ function hydrateApp(win2, opts, results, afterHydrate, resolve) {
|
|
|
1941
1971
|
patchElement2(elm);
|
|
1942
1972
|
return elm;
|
|
1943
1973
|
};
|
|
1944
|
-
tmrId =
|
|
1974
|
+
tmrId = globalThis.setTimeout(timeoutExceeded, opts.timeout);
|
|
1945
1975
|
plt.$resourcesUrl$ = new URL(opts.resourcesUrl || "./", doc.baseURI).href;
|
|
1946
1976
|
patchChild2(win2.document.body);
|
|
1947
1977
|
waitLoop2().then(hydratedComplete).catch(hydratedError);
|
|
@@ -1960,6 +1990,7 @@ async function hydrateComponent(win2, results, tagName, elm, waitingElements) {
|
|
|
1960
1990
|
const cmpMeta = Cstr.cmpMeta;
|
|
1961
1991
|
if (cmpMeta != null) {
|
|
1962
1992
|
waitingElements.add(elm);
|
|
1993
|
+
getHostRef(this);
|
|
1963
1994
|
try {
|
|
1964
1995
|
connectedCallback(elm);
|
|
1965
1996
|
await elm.componentOnReady();
|
|
@@ -2130,7 +2161,7 @@ var registerComponents = (Cstrs) => {
|
|
|
2130
2161
|
var win = window;
|
|
2131
2162
|
var doc = win.document;
|
|
2132
2163
|
var writeTask = (cb) => {
|
|
2133
|
-
|
|
2164
|
+
nextTick(() => {
|
|
2134
2165
|
try {
|
|
2135
2166
|
cb();
|
|
2136
2167
|
} catch (e) {
|
|
@@ -2155,7 +2186,7 @@ var plt = {
|
|
|
2155
2186
|
rel: (el, eventName, listener, opts) => el.removeEventListener(eventName, listener, opts),
|
|
2156
2187
|
ce: (eventName, opts) => new win.CustomEvent(eventName, opts)
|
|
2157
2188
|
};
|
|
2158
|
-
var supportsShadow =
|
|
2189
|
+
var supportsShadow = BUILD.shadowDom;
|
|
2159
2190
|
var hostRefs = /* @__PURE__ */ new WeakMap();
|
|
2160
2191
|
var getHostRef = (ref) => hostRefs.get(ref);
|
|
2161
2192
|
var registerInstance = (lazyInstance, hostRef) => hostRefs.set(hostRef.$lazyInstance$ = lazyInstance, hostRef);
|
|
@@ -5534,7 +5565,7 @@ exports.hydrateApp = hydrateApp;
|
|
|
5534
5565
|
}
|
|
5535
5566
|
|
|
5536
5567
|
/*
|
|
5537
|
-
Stencil Hydrate Runner v4.
|
|
5568
|
+
Stencil Hydrate Runner v4.19.0 | MIT Licensed | https://stenciljs.com
|
|
5538
5569
|
*/
|
|
5539
5570
|
var __defProp = Object.defineProperty;
|
|
5540
5571
|
var __export = (target, all) => {
|
|
@@ -15932,67 +15963,50 @@ function humanReadableList(items) {
|
|
|
15932
15963
|
}
|
|
15933
15964
|
|
|
15934
15965
|
// src/mock-doc/serialize-node.ts
|
|
15935
|
-
function
|
|
15966
|
+
function normalizeSerializationOptions(opts = {}) {
|
|
15967
|
+
return {
|
|
15968
|
+
...opts,
|
|
15969
|
+
outerHtml: typeof opts.outerHtml !== "boolean" ? false : opts.outerHtml,
|
|
15970
|
+
...opts.prettyHtml ? {
|
|
15971
|
+
indentSpaces: typeof opts.indentSpaces !== "number" ? 2 : opts.indentSpaces,
|
|
15972
|
+
newLines: typeof opts.newLines !== "boolean" ? true : opts.newLines
|
|
15973
|
+
} : {
|
|
15974
|
+
prettyHtml: false,
|
|
15975
|
+
indentSpaces: typeof opts.indentSpaces !== "number" ? 0 : opts.indentSpaces,
|
|
15976
|
+
newLines: typeof opts.newLines !== "boolean" ? false : opts.newLines
|
|
15977
|
+
},
|
|
15978
|
+
approximateLineWidth: typeof opts.approximateLineWidth !== "number" ? -1 : opts.approximateLineWidth,
|
|
15979
|
+
removeEmptyAttributes: typeof opts.removeEmptyAttributes !== "boolean" ? true : opts.removeEmptyAttributes,
|
|
15980
|
+
removeAttributeQuotes: typeof opts.removeAttributeQuotes !== "boolean" ? false : opts.removeAttributeQuotes,
|
|
15981
|
+
removeBooleanAttributeQuotes: typeof opts.removeBooleanAttributeQuotes !== "boolean" ? false : opts.removeBooleanAttributeQuotes,
|
|
15982
|
+
removeHtmlComments: typeof opts.removeHtmlComments !== "boolean" ? false : opts.removeHtmlComments,
|
|
15983
|
+
serializeShadowRoot: typeof opts.serializeShadowRoot !== "boolean" ? false : opts.serializeShadowRoot,
|
|
15984
|
+
fullDocument: typeof opts.fullDocument !== "boolean" ? true : opts.fullDocument
|
|
15985
|
+
};
|
|
15986
|
+
}
|
|
15987
|
+
function serializeNodeToHtml(elm, serializationOptions = {}) {
|
|
15988
|
+
const opts = normalizeSerializationOptions(serializationOptions);
|
|
15936
15989
|
const output = {
|
|
15937
15990
|
currentLineWidth: 0,
|
|
15938
15991
|
indent: 0,
|
|
15939
15992
|
isWithinBody: false,
|
|
15940
15993
|
text: []
|
|
15941
15994
|
};
|
|
15942
|
-
|
|
15943
|
-
|
|
15944
|
-
|
|
15945
|
-
|
|
15946
|
-
|
|
15947
|
-
|
|
15948
|
-
}
|
|
15949
|
-
opts.approximateLineWidth = -1;
|
|
15950
|
-
} else {
|
|
15951
|
-
opts.prettyHtml = false;
|
|
15952
|
-
if (typeof opts.newLines !== "boolean") {
|
|
15953
|
-
opts.newLines = false;
|
|
15954
|
-
}
|
|
15955
|
-
if (typeof opts.indentSpaces !== "number") {
|
|
15956
|
-
opts.indentSpaces = 0;
|
|
15957
|
-
}
|
|
15958
|
-
}
|
|
15959
|
-
if (typeof opts.approximateLineWidth !== "number") {
|
|
15960
|
-
opts.approximateLineWidth = -1;
|
|
15961
|
-
}
|
|
15962
|
-
if (typeof opts.removeEmptyAttributes !== "boolean") {
|
|
15963
|
-
opts.removeEmptyAttributes = true;
|
|
15964
|
-
}
|
|
15965
|
-
if (typeof opts.removeAttributeQuotes !== "boolean") {
|
|
15966
|
-
opts.removeAttributeQuotes = false;
|
|
15967
|
-
}
|
|
15968
|
-
if (typeof opts.removeBooleanAttributeQuotes !== "boolean") {
|
|
15969
|
-
opts.removeBooleanAttributeQuotes = false;
|
|
15970
|
-
}
|
|
15971
|
-
if (typeof opts.removeHtmlComments !== "boolean") {
|
|
15972
|
-
opts.removeHtmlComments = false;
|
|
15973
|
-
}
|
|
15974
|
-
if (typeof opts.serializeShadowRoot !== "boolean") {
|
|
15975
|
-
opts.serializeShadowRoot = false;
|
|
15976
|
-
}
|
|
15977
|
-
if (opts.outerHtml) {
|
|
15978
|
-
serializeToHtml(elm, opts, output, false);
|
|
15979
|
-
} else {
|
|
15980
|
-
for (let i = 0, ii = elm.childNodes.length; i < ii; i++) {
|
|
15981
|
-
serializeToHtml(elm.childNodes[i], opts, output, false);
|
|
15982
|
-
}
|
|
15983
|
-
}
|
|
15984
|
-
if (output.text[0] === "\n") {
|
|
15985
|
-
output.text.shift();
|
|
15986
|
-
}
|
|
15987
|
-
if (output.text[output.text.length - 1] === "\n") {
|
|
15988
|
-
output.text.pop();
|
|
15995
|
+
let renderedNode = "";
|
|
15996
|
+
const children = !opts.fullDocument && elm.body ? Array.from(elm.body.childNodes) : opts.outerHtml ? [elm] : Array.from(elm.childNodes);
|
|
15997
|
+
for (let i = 0, ii = children.length; i < ii; i++) {
|
|
15998
|
+
const child = children[i];
|
|
15999
|
+
const chunks = Array.from(streamToHtml(child, opts, output));
|
|
16000
|
+
renderedNode += chunks.join("");
|
|
15989
16001
|
}
|
|
15990
|
-
return
|
|
16002
|
+
return renderedNode.trim();
|
|
15991
16003
|
}
|
|
15992
|
-
|
|
16004
|
+
var shadowRootTag = "mock:shadow-root";
|
|
16005
|
+
function* streamToHtml(node, opts, output) {
|
|
15993
16006
|
var _a2, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p;
|
|
16007
|
+
const isShadowRoot = node.nodeType === 11 /* DOCUMENT_FRAGMENT_NODE */;
|
|
15994
16008
|
if (node.nodeType === 1 /* ELEMENT_NODE */ || isShadowRoot) {
|
|
15995
|
-
const tagName = isShadowRoot ?
|
|
16009
|
+
const tagName = isShadowRoot ? shadowRootTag : getTagName(node);
|
|
15996
16010
|
if (tagName === "body") {
|
|
15997
16011
|
output.isWithinBody = true;
|
|
15998
16012
|
}
|
|
@@ -16000,17 +16014,23 @@ function serializeToHtml(node, opts, output, isShadowRoot) {
|
|
|
16000
16014
|
if (ignoreTag === false) {
|
|
16001
16015
|
const isWithinWhitespaceSensitiveNode = opts.newLines || ((_a2 = opts.indentSpaces) != null ? _a2 : 0) > 0 ? isWithinWhitespaceSensitive(node) : false;
|
|
16002
16016
|
if (opts.newLines && !isWithinWhitespaceSensitiveNode) {
|
|
16003
|
-
|
|
16017
|
+
yield "\n";
|
|
16004
16018
|
output.currentLineWidth = 0;
|
|
16005
16019
|
}
|
|
16006
16020
|
if (((_b = opts.indentSpaces) != null ? _b : 0) > 0 && !isWithinWhitespaceSensitiveNode) {
|
|
16007
16021
|
for (let i = 0; i < output.indent; i++) {
|
|
16008
|
-
|
|
16022
|
+
yield " ";
|
|
16009
16023
|
}
|
|
16010
16024
|
output.currentLineWidth += output.indent;
|
|
16011
16025
|
}
|
|
16012
|
-
|
|
16013
|
-
|
|
16026
|
+
const tag = tagName === shadowRootTag ? "template" : tagName;
|
|
16027
|
+
yield "<" + tag;
|
|
16028
|
+
output.currentLineWidth += tag.length + 1;
|
|
16029
|
+
if (tag === "template") {
|
|
16030
|
+
const mode = ` shadowrootmode="open"`;
|
|
16031
|
+
yield mode;
|
|
16032
|
+
output.currentLineWidth += mode.length;
|
|
16033
|
+
}
|
|
16014
16034
|
const attrsLength = node.attributes.length;
|
|
16015
16035
|
const attributes = opts.prettyHtml && attrsLength > 1 ? cloneAttributes(node.attributes, true) : node.attributes;
|
|
16016
16036
|
for (let i = 0; i < attrsLength; i++) {
|
|
@@ -16027,27 +16047,27 @@ function serializeToHtml(node, opts, output, isShadowRoot) {
|
|
|
16027
16047
|
if (attrNamespaceURI == null) {
|
|
16028
16048
|
output.currentLineWidth += attrName.length + 1;
|
|
16029
16049
|
if (opts.approximateLineWidth && opts.approximateLineWidth > 0 && output.currentLineWidth > opts.approximateLineWidth) {
|
|
16030
|
-
|
|
16050
|
+
yield "\n" + attrName;
|
|
16031
16051
|
output.currentLineWidth = 0;
|
|
16032
16052
|
} else {
|
|
16033
|
-
|
|
16053
|
+
yield " " + attrName;
|
|
16034
16054
|
}
|
|
16035
16055
|
} else if (attrNamespaceURI === "http://www.w3.org/XML/1998/namespace") {
|
|
16036
|
-
|
|
16056
|
+
yield " xml:" + attrName;
|
|
16037
16057
|
output.currentLineWidth += attrName.length + 5;
|
|
16038
16058
|
} else if (attrNamespaceURI === "http://www.w3.org/2000/xmlns/") {
|
|
16039
16059
|
if (attrName !== "xmlns") {
|
|
16040
|
-
|
|
16060
|
+
yield " xmlns:" + attrName;
|
|
16041
16061
|
output.currentLineWidth += attrName.length + 7;
|
|
16042
16062
|
} else {
|
|
16043
|
-
|
|
16063
|
+
yield " " + attrName;
|
|
16044
16064
|
output.currentLineWidth += attrName.length + 1;
|
|
16045
16065
|
}
|
|
16046
16066
|
} else if (attrNamespaceURI === XLINK_NS) {
|
|
16047
|
-
|
|
16067
|
+
yield " xlink:" + attrName;
|
|
16048
16068
|
output.currentLineWidth += attrName.length + 7;
|
|
16049
16069
|
} else {
|
|
16050
|
-
|
|
16070
|
+
yield " " + attrNamespaceURI + ":" + attrName;
|
|
16051
16071
|
output.currentLineWidth += attrNamespaceURI.length + attrName.length + 2;
|
|
16052
16072
|
}
|
|
16053
16073
|
if (opts.prettyHtml && attrName === "class") {
|
|
@@ -16062,43 +16082,45 @@ function serializeToHtml(node, opts, output, isShadowRoot) {
|
|
|
16062
16082
|
}
|
|
16063
16083
|
}
|
|
16064
16084
|
if (opts.removeAttributeQuotes && CAN_REMOVE_ATTR_QUOTES.test(attrValue)) {
|
|
16065
|
-
|
|
16085
|
+
yield "=" + escapeString(attrValue, true);
|
|
16066
16086
|
output.currentLineWidth += attrValue.length + 1;
|
|
16067
16087
|
} else {
|
|
16068
|
-
|
|
16088
|
+
yield '="' + escapeString(attrValue, true) + '"';
|
|
16069
16089
|
output.currentLineWidth += attrValue.length + 3;
|
|
16070
16090
|
}
|
|
16071
16091
|
}
|
|
16072
16092
|
if (node.hasAttribute("style")) {
|
|
16073
16093
|
const cssText = node.style.cssText;
|
|
16074
16094
|
if (opts.approximateLineWidth && opts.approximateLineWidth > 0 && output.currentLineWidth + cssText.length + 10 > opts.approximateLineWidth) {
|
|
16075
|
-
|
|
16076
|
-
style="${cssText}"
|
|
16095
|
+
yield `
|
|
16096
|
+
style="${cssText}">`;
|
|
16077
16097
|
output.currentLineWidth = 0;
|
|
16078
16098
|
} else {
|
|
16079
|
-
|
|
16099
|
+
yield ` style="${cssText}">`;
|
|
16080
16100
|
output.currentLineWidth += cssText.length + 10;
|
|
16081
16101
|
}
|
|
16082
16102
|
} else {
|
|
16083
|
-
|
|
16103
|
+
yield ">";
|
|
16084
16104
|
output.currentLineWidth += 1;
|
|
16085
16105
|
}
|
|
16086
16106
|
}
|
|
16087
16107
|
if (EMPTY_ELEMENTS.has(tagName) === false) {
|
|
16088
|
-
|
|
16108
|
+
const shadowRoot = node.shadowRoot;
|
|
16109
|
+
if (opts.serializeShadowRoot && shadowRoot != null) {
|
|
16089
16110
|
output.indent = output.indent + ((_c = opts.indentSpaces) != null ? _c : 0);
|
|
16090
|
-
|
|
16111
|
+
yield* streamToHtml(shadowRoot, opts, output);
|
|
16091
16112
|
output.indent = output.indent - ((_d = opts.indentSpaces) != null ? _d : 0);
|
|
16092
16113
|
if (opts.newLines && (node.childNodes.length === 0 || node.childNodes.length === 1 && node.childNodes[0].nodeType === 3 /* TEXT_NODE */ && ((_e = node.childNodes[0].nodeValue) == null ? void 0 : _e.trim()) === "")) {
|
|
16093
|
-
|
|
16114
|
+
yield "\n";
|
|
16094
16115
|
output.currentLineWidth = 0;
|
|
16095
16116
|
for (let i = 0; i < output.indent; i++) {
|
|
16096
|
-
|
|
16117
|
+
yield " ";
|
|
16097
16118
|
}
|
|
16098
16119
|
output.currentLineWidth += output.indent;
|
|
16099
16120
|
}
|
|
16100
16121
|
}
|
|
16101
16122
|
if (opts.excludeTagContent == null || opts.excludeTagContent.includes(tagName) === false) {
|
|
16123
|
+
const tag = tagName === shadowRootTag ? "template" : tagName;
|
|
16102
16124
|
const childNodes = tagName === "template" ? node.content.childNodes : node.childNodes;
|
|
16103
16125
|
const childNodeLength = childNodes.length;
|
|
16104
16126
|
if (childNodeLength > 0) {
|
|
@@ -16109,17 +16131,17 @@ style="${cssText}">`);
|
|
|
16109
16131
|
output.indent = output.indent + ((_h = opts.indentSpaces) != null ? _h : 0);
|
|
16110
16132
|
}
|
|
16111
16133
|
for (let i = 0; i < childNodeLength; i++) {
|
|
16112
|
-
|
|
16134
|
+
yield* streamToHtml(childNodes[i], opts, output);
|
|
16113
16135
|
}
|
|
16114
16136
|
if (ignoreTag === false) {
|
|
16115
16137
|
if (opts.newLines && !isWithinWhitespaceSensitiveNode) {
|
|
16116
|
-
|
|
16138
|
+
yield "\n";
|
|
16117
16139
|
output.currentLineWidth = 0;
|
|
16118
16140
|
}
|
|
16119
16141
|
if (((_i = opts.indentSpaces) != null ? _i : 0) > 0 && !isWithinWhitespaceSensitiveNode) {
|
|
16120
16142
|
output.indent = output.indent - ((_j = opts.indentSpaces) != null ? _j : 0);
|
|
16121
16143
|
for (let i = 0; i < output.indent; i++) {
|
|
16122
|
-
|
|
16144
|
+
yield " ";
|
|
16123
16145
|
}
|
|
16124
16146
|
output.currentLineWidth += output.indent;
|
|
16125
16147
|
}
|
|
@@ -16127,13 +16149,13 @@ style="${cssText}">`);
|
|
|
16127
16149
|
}
|
|
16128
16150
|
}
|
|
16129
16151
|
if (ignoreTag === false) {
|
|
16130
|
-
|
|
16131
|
-
output.currentLineWidth +=
|
|
16152
|
+
yield "</" + tag + ">";
|
|
16153
|
+
output.currentLineWidth += tag.length + 3;
|
|
16132
16154
|
}
|
|
16133
16155
|
}
|
|
16134
16156
|
}
|
|
16135
16157
|
if (((_k = opts.approximateLineWidth) != null ? _k : 0) > 0 && STRUCTURE_ELEMENTS.has(tagName)) {
|
|
16136
|
-
|
|
16158
|
+
yield "\n";
|
|
16137
16159
|
output.currentLineWidth = 0;
|
|
16138
16160
|
}
|
|
16139
16161
|
if (tagName === "body") {
|
|
@@ -16145,27 +16167,27 @@ style="${cssText}">`);
|
|
|
16145
16167
|
const trimmedTextContent = textContent.trim();
|
|
16146
16168
|
if (trimmedTextContent === "") {
|
|
16147
16169
|
if (isWithinWhitespaceSensitive(node)) {
|
|
16148
|
-
|
|
16170
|
+
yield textContent;
|
|
16149
16171
|
output.currentLineWidth += textContent.length;
|
|
16150
16172
|
} else if (((_l = opts.approximateLineWidth) != null ? _l : 0) > 0 && !output.isWithinBody) {
|
|
16151
16173
|
} else if (!opts.prettyHtml) {
|
|
16152
16174
|
output.currentLineWidth += 1;
|
|
16153
16175
|
if (opts.approximateLineWidth && opts.approximateLineWidth > 0 && output.currentLineWidth > opts.approximateLineWidth) {
|
|
16154
|
-
|
|
16176
|
+
yield "\n";
|
|
16155
16177
|
output.currentLineWidth = 0;
|
|
16156
16178
|
} else {
|
|
16157
|
-
|
|
16179
|
+
yield " ";
|
|
16158
16180
|
}
|
|
16159
16181
|
}
|
|
16160
16182
|
} else {
|
|
16161
16183
|
const isWithinWhitespaceSensitiveNode = opts.newLines || ((_m = opts.indentSpaces) != null ? _m : 0) > 0 || opts.prettyHtml ? isWithinWhitespaceSensitive(node) : false;
|
|
16162
16184
|
if (opts.newLines && !isWithinWhitespaceSensitiveNode) {
|
|
16163
|
-
|
|
16185
|
+
yield "\n";
|
|
16164
16186
|
output.currentLineWidth = 0;
|
|
16165
16187
|
}
|
|
16166
16188
|
if (((_n = opts.indentSpaces) != null ? _n : 0) > 0 && !isWithinWhitespaceSensitiveNode) {
|
|
16167
16189
|
for (let i = 0; i < output.indent; i++) {
|
|
16168
|
-
|
|
16190
|
+
yield " ";
|
|
16169
16191
|
}
|
|
16170
16192
|
output.currentLineWidth += output.indent;
|
|
16171
16193
|
}
|
|
@@ -16174,15 +16196,15 @@ style="${cssText}">`);
|
|
|
16174
16196
|
const parentTagName = node.parentNode != null && node.parentNode.nodeType === 1 /* ELEMENT_NODE */ ? node.parentNode.nodeName : null;
|
|
16175
16197
|
if (typeof parentTagName === "string" && NON_ESCAPABLE_CONTENT.has(parentTagName)) {
|
|
16176
16198
|
if (isWithinWhitespaceSensitive(node)) {
|
|
16177
|
-
|
|
16199
|
+
yield textContent;
|
|
16178
16200
|
} else {
|
|
16179
|
-
|
|
16201
|
+
yield trimmedTextContent;
|
|
16180
16202
|
textContentLength = trimmedTextContent.length;
|
|
16181
16203
|
}
|
|
16182
16204
|
output.currentLineWidth += textContentLength;
|
|
16183
16205
|
} else {
|
|
16184
16206
|
if (opts.prettyHtml && !isWithinWhitespaceSensitiveNode) {
|
|
16185
|
-
|
|
16207
|
+
yield escapeString(textContent.replace(/\s\s+/g, " ").trim(), false);
|
|
16186
16208
|
output.currentLineWidth += textContentLength;
|
|
16187
16209
|
} else {
|
|
16188
16210
|
if (isWithinWhitespaceSensitive(node)) {
|
|
@@ -16204,7 +16226,7 @@ style="${cssText}">`);
|
|
|
16204
16226
|
}
|
|
16205
16227
|
output.currentLineWidth += textContentLength;
|
|
16206
16228
|
}
|
|
16207
|
-
|
|
16229
|
+
yield escapeString(textContent, false);
|
|
16208
16230
|
}
|
|
16209
16231
|
}
|
|
16210
16232
|
}
|
|
@@ -16212,27 +16234,27 @@ style="${cssText}">`);
|
|
|
16212
16234
|
}
|
|
16213
16235
|
} else if (node.nodeType === 8 /* COMMENT_NODE */) {
|
|
16214
16236
|
const nodeValue = node.nodeValue;
|
|
16215
|
-
|
|
16216
|
-
|
|
16217
|
-
|
|
16218
|
-
return;
|
|
16219
|
-
}
|
|
16237
|
+
const isHydrateAnnotation = (nodeValue == null ? void 0 : nodeValue.startsWith(CONTENT_REF_ID + ".")) || (nodeValue == null ? void 0 : nodeValue.startsWith(ORG_LOCATION_ID + ".")) || (nodeValue == null ? void 0 : nodeValue.startsWith(SLOT_NODE_ID + ".")) || (nodeValue == null ? void 0 : nodeValue.startsWith(TEXT_NODE_ID + "."));
|
|
16238
|
+
if (opts.removeHtmlComments && !isHydrateAnnotation) {
|
|
16239
|
+
return;
|
|
16220
16240
|
}
|
|
16221
16241
|
const isWithinWhitespaceSensitiveNode = opts.newLines || ((_o = opts.indentSpaces) != null ? _o : 0) > 0 ? isWithinWhitespaceSensitive(node) : false;
|
|
16222
16242
|
if (opts.newLines && !isWithinWhitespaceSensitiveNode) {
|
|
16223
|
-
|
|
16243
|
+
yield "\n";
|
|
16224
16244
|
output.currentLineWidth = 0;
|
|
16225
16245
|
}
|
|
16226
16246
|
if (((_p = opts.indentSpaces) != null ? _p : 0) > 0 && !isWithinWhitespaceSensitiveNode) {
|
|
16227
16247
|
for (let i = 0; i < output.indent; i++) {
|
|
16228
|
-
|
|
16248
|
+
yield " ";
|
|
16229
16249
|
}
|
|
16230
16250
|
output.currentLineWidth += output.indent;
|
|
16231
16251
|
}
|
|
16232
|
-
|
|
16233
|
-
|
|
16252
|
+
yield "<!--" + nodeValue + "-->";
|
|
16253
|
+
if (nodeValue) {
|
|
16254
|
+
output.currentLineWidth += nodeValue.length + 7;
|
|
16255
|
+
}
|
|
16234
16256
|
} else if (node.nodeType === 10 /* DOCUMENT_TYPE_NODE */) {
|
|
16235
|
-
|
|
16257
|
+
yield "<!doctype html>";
|
|
16236
16258
|
}
|
|
16237
16259
|
}
|
|
16238
16260
|
var AMP_REGEX = /&/g;
|
|
@@ -16257,7 +16279,7 @@ function escapeString(str, attrMode) {
|
|
|
16257
16279
|
}
|
|
16258
16280
|
function isWithinWhitespaceSensitive(node) {
|
|
16259
16281
|
let _node = node;
|
|
16260
|
-
while (_node
|
|
16282
|
+
while (_node == null ? void 0 : _node.nodeName) {
|
|
16261
16283
|
if (WHITESPACE_SENSITIVE.has(_node.nodeName)) {
|
|
16262
16284
|
return true;
|
|
16263
16285
|
}
|
|
@@ -16573,6 +16595,10 @@ Testing components with ElementInternals is fully supported in e2e tests.`
|
|
|
16573
16595
|
get shadowRoot() {
|
|
16574
16596
|
return this.__shadowRoot || null;
|
|
16575
16597
|
}
|
|
16598
|
+
/**
|
|
16599
|
+
* Set shadow root for element
|
|
16600
|
+
* @param shadowRoot - ShadowRoot to set
|
|
16601
|
+
*/
|
|
16576
16602
|
set shadowRoot(shadowRoot) {
|
|
16577
16603
|
if (shadowRoot != null) {
|
|
16578
16604
|
shadowRoot.host = this;
|
|
@@ -18359,14 +18385,16 @@ var WINDOW_PROPS = [
|
|
|
18359
18385
|
];
|
|
18360
18386
|
var GLOBAL_CONSTRUCTORS = [
|
|
18361
18387
|
["CustomEvent", MockCustomEvent],
|
|
18388
|
+
["DocumentFragment", MockDocumentFragment],
|
|
18389
|
+
["DOMParser", MockDOMParser],
|
|
18362
18390
|
["Event", MockEvent],
|
|
18363
|
-
["Headers", MockHeaders],
|
|
18364
18391
|
["FocusEvent", MockFocusEvent],
|
|
18392
|
+
["Headers", MockHeaders],
|
|
18365
18393
|
["KeyboardEvent", MockKeyboardEvent],
|
|
18366
18394
|
["MouseEvent", MockMouseEvent],
|
|
18367
18395
|
["Request", MockRequest],
|
|
18368
18396
|
["Response", MockResponse],
|
|
18369
|
-
["
|
|
18397
|
+
["ShadowRoot", MockDocumentFragment],
|
|
18370
18398
|
["HTMLAnchorElement", MockAnchorElement],
|
|
18371
18399
|
["HTMLBaseElement", MockBaseElement],
|
|
18372
18400
|
["HTMLButtonElement", MockButtonElement],
|
|
@@ -18577,6 +18605,7 @@ var nativeClearTimeout = clearTimeout;
|
|
|
18577
18605
|
var nativeSetInterval = setInterval;
|
|
18578
18606
|
var nativeSetTimeout = setTimeout;
|
|
18579
18607
|
var nativeURL = URL;
|
|
18608
|
+
var nativeWindow = globalThis.window;
|
|
18580
18609
|
var MockWindow = class {
|
|
18581
18610
|
constructor(html = null) {
|
|
18582
18611
|
if (html !== false) {
|
|
@@ -18603,10 +18632,10 @@ var MockWindow = class {
|
|
|
18603
18632
|
blur() {
|
|
18604
18633
|
}
|
|
18605
18634
|
cancelAnimationFrame(id) {
|
|
18606
|
-
this.__clearTimeout(id);
|
|
18635
|
+
this.__clearTimeout.call(nativeWindow || this, id);
|
|
18607
18636
|
}
|
|
18608
18637
|
cancelIdleCallback(id) {
|
|
18609
|
-
this.__clearTimeout(id);
|
|
18638
|
+
this.__clearTimeout.call(nativeWindow || this, id);
|
|
18610
18639
|
}
|
|
18611
18640
|
get CharacterData() {
|
|
18612
18641
|
if (this.__charDataCstr == null) {
|
|
@@ -18624,10 +18653,10 @@ var MockWindow = class {
|
|
|
18624
18653
|
this.__charDataCstr = charDataCstr;
|
|
18625
18654
|
}
|
|
18626
18655
|
clearInterval(id) {
|
|
18627
|
-
this.__clearInterval(id);
|
|
18656
|
+
this.__clearInterval.call(nativeWindow || this, id);
|
|
18628
18657
|
}
|
|
18629
18658
|
clearTimeout(id) {
|
|
18630
|
-
this.__clearTimeout(id);
|
|
18659
|
+
this.__clearTimeout.call(nativeWindow || this, id);
|
|
18631
18660
|
}
|
|
18632
18661
|
close() {
|
|
18633
18662
|
resetWindow(this);
|
|
@@ -18927,20 +18956,24 @@ var MockWindow = class {
|
|
|
18927
18956
|
}
|
|
18928
18957
|
return intervalId;
|
|
18929
18958
|
}
|
|
18930
|
-
const timeoutId = this.__setTimeout(
|
|
18931
|
-
|
|
18932
|
-
|
|
18933
|
-
|
|
18934
|
-
|
|
18935
|
-
|
|
18936
|
-
|
|
18937
|
-
|
|
18938
|
-
|
|
18939
|
-
|
|
18959
|
+
const timeoutId = this.__setTimeout.call(
|
|
18960
|
+
nativeWindow || this,
|
|
18961
|
+
() => {
|
|
18962
|
+
if (this.__timeouts) {
|
|
18963
|
+
this.__timeouts.delete(timeoutId);
|
|
18964
|
+
try {
|
|
18965
|
+
callback(...args);
|
|
18966
|
+
} catch (e) {
|
|
18967
|
+
if (this.console) {
|
|
18968
|
+
this.console.error(e);
|
|
18969
|
+
} else {
|
|
18970
|
+
console.error(e);
|
|
18971
|
+
}
|
|
18940
18972
|
}
|
|
18941
18973
|
}
|
|
18942
|
-
}
|
|
18943
|
-
|
|
18974
|
+
},
|
|
18975
|
+
ms
|
|
18976
|
+
);
|
|
18944
18977
|
if (this.__timeouts) {
|
|
18945
18978
|
this.__timeouts.add(timeoutId);
|
|
18946
18979
|
}
|
|
@@ -18951,20 +18984,24 @@ var MockWindow = class {
|
|
|
18951
18984
|
this.__timeouts = /* @__PURE__ */ new Set();
|
|
18952
18985
|
}
|
|
18953
18986
|
ms = Math.min(ms, this.__maxTimeout);
|
|
18954
|
-
const timeoutId = this.__setTimeout(
|
|
18955
|
-
|
|
18956
|
-
|
|
18957
|
-
|
|
18958
|
-
|
|
18959
|
-
|
|
18960
|
-
|
|
18961
|
-
|
|
18962
|
-
|
|
18963
|
-
|
|
18987
|
+
const timeoutId = this.__setTimeout.call(
|
|
18988
|
+
nativeWindow || this,
|
|
18989
|
+
() => {
|
|
18990
|
+
if (this.__timeouts) {
|
|
18991
|
+
this.__timeouts.delete(timeoutId);
|
|
18992
|
+
try {
|
|
18993
|
+
callback(...args);
|
|
18994
|
+
} catch (e) {
|
|
18995
|
+
if (this.console) {
|
|
18996
|
+
this.console.error(e);
|
|
18997
|
+
} else {
|
|
18998
|
+
console.error(e);
|
|
18999
|
+
}
|
|
18964
19000
|
}
|
|
18965
19001
|
}
|
|
18966
|
-
}
|
|
18967
|
-
|
|
19002
|
+
},
|
|
19003
|
+
ms
|
|
19004
|
+
);
|
|
18968
19005
|
if (this.__timeouts) {
|
|
18969
19006
|
this.__timeouts.add(timeoutId);
|
|
18970
19007
|
}
|
|
@@ -19539,7 +19576,6 @@ function createWindowFromHtml(templateHtml, uniqueId) {
|
|
|
19539
19576
|
|
|
19540
19577
|
// src/utils/helpers.ts
|
|
19541
19578
|
var isString = (v) => typeof v === "string";
|
|
19542
|
-
var isPromise = (v) => !!v && (typeof v === "object" || typeof v === "function") && typeof v.then === "function";
|
|
19543
19579
|
|
|
19544
19580
|
// src/utils/message-utils.ts
|
|
19545
19581
|
var catchError = (diagnostics, err2, msg) => {
|
|
@@ -19630,6 +19666,7 @@ var unwrapErr = (result) => {
|
|
|
19630
19666
|
|
|
19631
19667
|
// src/compiler/html/canonical-link.ts
|
|
19632
19668
|
var updateCanonicalLink = (doc, href) => {
|
|
19669
|
+
var _a2;
|
|
19633
19670
|
let canonicalLinkElm = doc.head.querySelector('link[rel="canonical"]');
|
|
19634
19671
|
if (typeof href === "string") {
|
|
19635
19672
|
if (canonicalLinkElm == null) {
|
|
@@ -19642,7 +19679,7 @@ var updateCanonicalLink = (doc, href) => {
|
|
|
19642
19679
|
if (canonicalLinkElm != null) {
|
|
19643
19680
|
const existingHref = canonicalLinkElm.getAttribute("href");
|
|
19644
19681
|
if (!existingHref) {
|
|
19645
|
-
canonicalLinkElm.parentNode.removeChild(canonicalLinkElm);
|
|
19682
|
+
(_a2 = canonicalLinkElm.parentNode) == null ? void 0 : _a2.removeChild(canonicalLinkElm);
|
|
19646
19683
|
}
|
|
19647
19684
|
}
|
|
19648
19685
|
}
|
|
@@ -20676,10 +20713,10 @@ function renderBuildDiagnostic(results, level, header, msg) {
|
|
|
20676
20713
|
return diagnostic;
|
|
20677
20714
|
}
|
|
20678
20715
|
function renderBuildError(results, msg) {
|
|
20679
|
-
return renderBuildDiagnostic(results, "error", "Hydrate Error", msg);
|
|
20716
|
+
return renderBuildDiagnostic(results, "error", "Hydrate Error", msg || "");
|
|
20680
20717
|
}
|
|
20681
20718
|
function renderCatchError(results, err2) {
|
|
20682
|
-
const diagnostic = renderBuildError(results
|
|
20719
|
+
const diagnostic = renderBuildError(results);
|
|
20683
20720
|
if (err2 != null) {
|
|
20684
20721
|
if (err2.stack != null) {
|
|
20685
20722
|
diagnostic.messageText = err2.stack.toString();
|
|
@@ -20741,10 +20778,11 @@ function runtimeLog(pathname, type, msgs) {
|
|
|
20741
20778
|
|
|
20742
20779
|
// src/hydrate/runner/window-initialize.ts
|
|
20743
20780
|
function initializeWindow(win, doc, opts, results) {
|
|
20744
|
-
|
|
20745
|
-
|
|
20746
|
-
|
|
20747
|
-
|
|
20781
|
+
if (typeof opts.url === "string") {
|
|
20782
|
+
try {
|
|
20783
|
+
win.location.href = opts.url;
|
|
20784
|
+
} catch (e) {
|
|
20785
|
+
}
|
|
20748
20786
|
}
|
|
20749
20787
|
if (typeof opts.userAgent === "string") {
|
|
20750
20788
|
try {
|
|
@@ -20794,134 +20832,99 @@ function initializeWindow(win, doc, opts, results) {
|
|
|
20794
20832
|
}
|
|
20795
20833
|
|
|
20796
20834
|
// src/hydrate/runner/render.ts
|
|
20797
|
-
|
|
20835
|
+
var NOOP = () => {
|
|
20836
|
+
};
|
|
20837
|
+
function streamToString(html, option) {
|
|
20838
|
+
return renderToString(html, option, true);
|
|
20839
|
+
}
|
|
20840
|
+
function renderToString(html, options, asStream) {
|
|
20798
20841
|
const opts = normalizeHydrateOptions(options);
|
|
20799
20842
|
opts.serializeToHtml = true;
|
|
20800
|
-
|
|
20801
|
-
|
|
20802
|
-
|
|
20803
|
-
|
|
20804
|
-
|
|
20805
|
-
|
|
20806
|
-
|
|
20807
|
-
|
|
20808
|
-
|
|
20809
|
-
|
|
20810
|
-
|
|
20811
|
-
|
|
20812
|
-
|
|
20813
|
-
|
|
20814
|
-
|
|
20815
|
-
|
|
20816
|
-
|
|
20817
|
-
|
|
20843
|
+
opts.fullDocument = typeof opts.fullDocument === "boolean" ? opts.fullDocument : true;
|
|
20844
|
+
opts.serializeShadowRoot = Boolean(opts.serializeShadowRoot);
|
|
20845
|
+
opts.constrainTimeouts = false;
|
|
20846
|
+
return hydrateDocument(html, opts, asStream);
|
|
20847
|
+
}
|
|
20848
|
+
function hydrateDocument(doc, options, asStream) {
|
|
20849
|
+
const opts = normalizeHydrateOptions(options);
|
|
20850
|
+
let win = null;
|
|
20851
|
+
const results = generateHydrateResults(opts);
|
|
20852
|
+
if (hasError(results.diagnostics)) {
|
|
20853
|
+
return Promise.resolve(results);
|
|
20854
|
+
}
|
|
20855
|
+
if (typeof doc === "string") {
|
|
20856
|
+
try {
|
|
20857
|
+
opts.destroyWindow = true;
|
|
20858
|
+
opts.destroyDocument = true;
|
|
20859
|
+
win = new MockWindow(doc);
|
|
20860
|
+
if (!asStream) {
|
|
20861
|
+
return render(win, opts, results).then(() => results);
|
|
20818
20862
|
}
|
|
20819
|
-
|
|
20820
|
-
|
|
20821
|
-
|
|
20822
|
-
win
|
|
20823
|
-
render(win, opts, results, resolve);
|
|
20824
|
-
} catch (e) {
|
|
20825
|
-
if (win && win.close) {
|
|
20826
|
-
win.close();
|
|
20827
|
-
}
|
|
20828
|
-
win = null;
|
|
20829
|
-
renderCatchError(results, e);
|
|
20830
|
-
resolve(results);
|
|
20863
|
+
return renderStream(win, opts, results);
|
|
20864
|
+
} catch (e) {
|
|
20865
|
+
if (win && win.close) {
|
|
20866
|
+
win.close();
|
|
20831
20867
|
}
|
|
20832
|
-
|
|
20833
|
-
|
|
20834
|
-
resolve(results);
|
|
20868
|
+
win = null;
|
|
20869
|
+
renderCatchError(results, e);
|
|
20870
|
+
return Promise.resolve(results);
|
|
20835
20871
|
}
|
|
20836
|
-
}
|
|
20837
|
-
|
|
20838
|
-
|
|
20839
|
-
|
|
20840
|
-
|
|
20841
|
-
|
|
20842
|
-
|
|
20843
|
-
const results = generateHydrateResults(opts);
|
|
20844
|
-
if (hasError(results.diagnostics)) {
|
|
20845
|
-
resolve(results);
|
|
20846
|
-
} else if (typeof doc === "string") {
|
|
20847
|
-
try {
|
|
20848
|
-
opts.destroyWindow = true;
|
|
20849
|
-
opts.destroyDocument = true;
|
|
20850
|
-
win = new MockWindow(doc);
|
|
20851
|
-
render(win, opts, results, resolve);
|
|
20852
|
-
} catch (e) {
|
|
20853
|
-
if (win && win.close) {
|
|
20854
|
-
win.close();
|
|
20855
|
-
}
|
|
20856
|
-
win = null;
|
|
20857
|
-
renderCatchError(results, e);
|
|
20858
|
-
resolve(results);
|
|
20872
|
+
}
|
|
20873
|
+
if (isValidDocument(doc)) {
|
|
20874
|
+
try {
|
|
20875
|
+
opts.destroyDocument = false;
|
|
20876
|
+
win = patchDomImplementation(doc, opts);
|
|
20877
|
+
if (!asStream) {
|
|
20878
|
+
return render(win, opts, results).then(() => results);
|
|
20859
20879
|
}
|
|
20860
|
-
|
|
20861
|
-
|
|
20862
|
-
|
|
20863
|
-
win
|
|
20864
|
-
render(win, opts, results, resolve);
|
|
20865
|
-
} catch (e) {
|
|
20866
|
-
if (win && win.close) {
|
|
20867
|
-
win.close();
|
|
20868
|
-
}
|
|
20869
|
-
win = null;
|
|
20870
|
-
renderCatchError(results, e);
|
|
20871
|
-
resolve(results);
|
|
20880
|
+
return renderStream(win, opts, results);
|
|
20881
|
+
} catch (e) {
|
|
20882
|
+
if (win && win.close) {
|
|
20883
|
+
win.close();
|
|
20872
20884
|
}
|
|
20873
|
-
|
|
20874
|
-
|
|
20875
|
-
resolve(results);
|
|
20885
|
+
win = null;
|
|
20886
|
+
renderCatchError(results, e);
|
|
20887
|
+
return Promise.resolve(results);
|
|
20876
20888
|
}
|
|
20877
|
-
}
|
|
20889
|
+
}
|
|
20890
|
+
renderBuildError(results, `Invalid html or document. Must be either a valid "html" string, or DOM "document".`);
|
|
20891
|
+
return Promise.resolve(results);
|
|
20878
20892
|
}
|
|
20879
|
-
function render(win, opts, results
|
|
20880
|
-
if (!process.__stencilErrors) {
|
|
20893
|
+
async function render(win, opts, results) {
|
|
20894
|
+
if ("process" in globalThis && typeof process.on === "function" && !process.__stencilErrors) {
|
|
20881
20895
|
process.__stencilErrors = true;
|
|
20882
20896
|
process.on("unhandledRejection", (e) => {
|
|
20883
20897
|
console.log("unhandledRejection", e);
|
|
20884
20898
|
});
|
|
20885
20899
|
}
|
|
20886
20900
|
initializeWindow(win, win.document, opts, results);
|
|
20887
|
-
|
|
20888
|
-
|
|
20889
|
-
|
|
20890
|
-
|
|
20891
|
-
|
|
20892
|
-
|
|
20893
|
-
|
|
20894
|
-
} else {
|
|
20895
|
-
hydrateFactory(win, opts, results, afterHydrate, resolve);
|
|
20896
|
-
}
|
|
20897
|
-
} catch (e) {
|
|
20898
|
-
renderCatchError(results, e);
|
|
20899
|
-
finalizeHydrate(win, win.document, opts, results, resolve);
|
|
20900
|
-
}
|
|
20901
|
-
} else {
|
|
20902
|
-
hydrateFactory(win, opts, results, afterHydrate, resolve);
|
|
20901
|
+
const beforeHydrateFn = typeof opts.beforeHydrate === "function" ? opts.beforeHydrate(win.document) : NOOP;
|
|
20902
|
+
try {
|
|
20903
|
+
await Promise.resolve(beforeHydrateFn(win.document));
|
|
20904
|
+
return new Promise((resolve) => hydrateFactory(win, opts, results, afterHydrate, resolve));
|
|
20905
|
+
} catch (e) {
|
|
20906
|
+
renderCatchError(results, e);
|
|
20907
|
+
return finalizeHydrate(win, win.document, opts, results);
|
|
20903
20908
|
}
|
|
20904
20909
|
}
|
|
20905
|
-
function
|
|
20906
|
-
|
|
20907
|
-
|
|
20908
|
-
|
|
20909
|
-
|
|
20910
|
-
|
|
20911
|
-
|
|
20912
|
-
|
|
20913
|
-
|
|
20914
|
-
|
|
20915
|
-
|
|
20916
|
-
|
|
20917
|
-
|
|
20918
|
-
|
|
20919
|
-
|
|
20920
|
-
} else {
|
|
20921
|
-
finalizeHydrate(win, win.document, opts, results, resolve);
|
|
20910
|
+
function renderStream(win, opts, results) {
|
|
20911
|
+
async function* processRender() {
|
|
20912
|
+
const renderResult = await render(win, opts, results);
|
|
20913
|
+
yield renderResult.html;
|
|
20914
|
+
}
|
|
20915
|
+
return stream.Readable.from(processRender());
|
|
20916
|
+
}
|
|
20917
|
+
async function afterHydrate(win, opts, results, resolve) {
|
|
20918
|
+
const afterHydrateFn = typeof opts.afterHydrate === "function" ? opts.afterHydrate(win.document) : NOOP;
|
|
20919
|
+
try {
|
|
20920
|
+
await Promise.resolve(afterHydrateFn(win.document));
|
|
20921
|
+
return resolve(finalizeHydrate(win, win.document, opts, results));
|
|
20922
|
+
} catch (e) {
|
|
20923
|
+
renderCatchError(results, e);
|
|
20924
|
+
return resolve(finalizeHydrate(win, win.document, opts, results));
|
|
20922
20925
|
}
|
|
20923
20926
|
}
|
|
20924
|
-
function finalizeHydrate(win, doc, opts, results
|
|
20927
|
+
function finalizeHydrate(win, doc, opts, results) {
|
|
20925
20928
|
try {
|
|
20926
20929
|
inspectElement(results, doc.documentElement, 0);
|
|
20927
20930
|
if (opts.removeUnusedStyles !== false) {
|
|
@@ -20973,20 +20976,24 @@ function finalizeHydrate(win, doc, opts, results, resolve) {
|
|
|
20973
20976
|
} catch (e) {
|
|
20974
20977
|
renderCatchError(results, e);
|
|
20975
20978
|
}
|
|
20976
|
-
|
|
20977
|
-
|
|
20978
|
-
|
|
20979
|
-
|
|
20980
|
-
|
|
20981
|
-
|
|
20982
|
-
|
|
20983
|
-
|
|
20984
|
-
|
|
20985
|
-
|
|
20986
|
-
|
|
20979
|
+
destroyWindow(win, doc, opts, results);
|
|
20980
|
+
return results;
|
|
20981
|
+
}
|
|
20982
|
+
function destroyWindow(win, doc, opts, results) {
|
|
20983
|
+
if (!opts.destroyWindow) {
|
|
20984
|
+
return;
|
|
20985
|
+
}
|
|
20986
|
+
try {
|
|
20987
|
+
if (!opts.destroyDocument) {
|
|
20988
|
+
win.document = null;
|
|
20989
|
+
doc.defaultView = null;
|
|
20990
|
+
}
|
|
20991
|
+
if (win.close) {
|
|
20992
|
+
win.close();
|
|
20987
20993
|
}
|
|
20994
|
+
} catch (e) {
|
|
20995
|
+
renderCatchError(results, e);
|
|
20988
20996
|
}
|
|
20989
|
-
resolve(results);
|
|
20990
20997
|
}
|
|
20991
20998
|
function serializeDocumentToString(doc, opts) {
|
|
20992
20999
|
return serializeNodeToHtml(doc, {
|
|
@@ -20997,7 +21004,8 @@ function serializeDocumentToString(doc, opts) {
|
|
|
20997
21004
|
removeBooleanAttributeQuotes: opts.removeBooleanAttributeQuotes,
|
|
20998
21005
|
removeEmptyAttributes: opts.removeEmptyAttributes,
|
|
20999
21006
|
removeHtmlComments: opts.removeHtmlComments,
|
|
21000
|
-
serializeShadowRoot:
|
|
21007
|
+
serializeShadowRoot: opts.serializeShadowRoot,
|
|
21008
|
+
fullDocument: opts.fullDocument
|
|
21001
21009
|
});
|
|
21002
21010
|
}
|
|
21003
21011
|
function isValidDocument(doc) {
|
|
@@ -21018,3 +21026,4 @@ exports.createWindowFromHtml = createWindowFromHtml;
|
|
|
21018
21026
|
exports.hydrateDocument = hydrateDocument;
|
|
21019
21027
|
exports.renderToString = renderToString;
|
|
21020
21028
|
exports.serializeDocumentToString = serializeDocumentToString;
|
|
21029
|
+
exports.streamToString = streamToString;
|