@tarojs/components 4.0.0-beta.7 → 4.0.0-beta.9
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/cjs/{index-dbbe9dde.js → index-5b029707.js} +208 -5
- package/dist/cjs/{index-dfd8638f.js → index-8a70c333.js} +6 -0
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/taro-ad-core.cjs.entry.js +1 -1
- package/dist/cjs/taro-ad-custom-core.cjs.entry.js +1 -1
- package/dist/cjs/taro-animation-video-core.cjs.entry.js +1 -1
- package/dist/cjs/taro-animation-view-core.cjs.entry.js +1 -1
- package/dist/cjs/taro-ar-camera-core.cjs.entry.js +1 -1
- package/dist/cjs/taro-audio-core.cjs.entry.js +1 -1
- package/dist/cjs/taro-aweme-data-core.cjs.entry.js +1 -1
- package/dist/cjs/taro-block-core.cjs.entry.js +1 -1
- package/dist/cjs/taro-button-core.cjs.entry.js +1 -1
- package/dist/cjs/taro-camera-core.cjs.entry.js +1 -1
- package/dist/cjs/taro-canvas-core.cjs.entry.js +1 -1
- package/dist/cjs/taro-channel-live-core.cjs.entry.js +1 -1
- package/dist/cjs/taro-channel-video-core.cjs.entry.js +1 -1
- package/dist/cjs/taro-checkbox-core_2.cjs.entry.js +1 -1
- package/dist/cjs/taro-comment-detail-core.cjs.entry.js +1 -1
- package/dist/cjs/taro-comment-list-core.cjs.entry.js +1 -1
- package/dist/cjs/taro-components.cjs.js +1 -1
- package/dist/cjs/taro-contact-button-core.cjs.entry.js +1 -1
- package/dist/cjs/taro-cover-image-core.cjs.entry.js +1 -1
- package/dist/cjs/taro-cover-view-core.cjs.entry.js +1 -1
- package/dist/cjs/taro-custom-wrapper-core.cjs.entry.js +1 -1
- package/dist/cjs/taro-editor-core.cjs.entry.js +1 -1
- package/dist/cjs/taro-follow-swan-core.cjs.entry.js +1 -1
- package/dist/cjs/taro-form-core.cjs.entry.js +1 -1
- package/dist/cjs/taro-functional-page-navigator-core.cjs.entry.js +1 -1
- package/dist/cjs/taro-grid-view-core.cjs.entry.js +1 -1
- package/dist/cjs/taro-icon-core.cjs.entry.js +1 -1
- package/dist/cjs/taro-image-core.cjs.entry.js +1 -1
- package/dist/cjs/taro-inline-payment-panel-core.cjs.entry.js +1 -1
- package/dist/cjs/taro-input-core.cjs.entry.js +1 -1
- package/dist/cjs/taro-keyboard-accessory-core.cjs.entry.js +1 -1
- package/dist/cjs/taro-label-core.cjs.entry.js +1 -1
- package/dist/cjs/taro-lifestyle-core.cjs.entry.js +1 -1
- package/dist/cjs/taro-like-core.cjs.entry.js +1 -1
- package/dist/cjs/taro-list-view-core.cjs.entry.js +1 -1
- package/dist/cjs/taro-live-player-core.cjs.entry.js +1 -1
- package/dist/cjs/taro-live-pusher-core.cjs.entry.js +1 -1
- package/dist/cjs/taro-login-core.cjs.entry.js +1 -1
- package/dist/cjs/taro-lottie-core.cjs.entry.js +1 -1
- package/dist/cjs/taro-map-core.cjs.entry.js +1 -1
- package/dist/cjs/taro-match-media-core.cjs.entry.js +1 -1
- package/dist/cjs/taro-movable-area-core_2.cjs.entry.js +3 -2
- package/dist/cjs/taro-native-slot-core.cjs.entry.js +1 -1
- package/dist/cjs/taro-navigation-bar-core.cjs.entry.js +1 -1
- package/dist/cjs/taro-navigator-core.cjs.entry.js +1 -1
- package/dist/cjs/taro-official-account-core.cjs.entry.js +1 -1
- package/dist/cjs/taro-open-data-core.cjs.entry.js +1 -1
- package/dist/cjs/taro-page-container-core.cjs.entry.js +1 -1
- package/dist/cjs/taro-page-meta-core.cjs.entry.js +1 -1
- package/dist/cjs/taro-picker-core_2.cjs.entry.js +1 -1
- package/dist/cjs/taro-picker-view-column-core_2.cjs.entry.js +2 -2
- package/dist/cjs/taro-progress-core.cjs.entry.js +2 -2
- package/dist/cjs/taro-pull-to-refresh-core.cjs.entry.js +4 -1
- package/dist/cjs/taro-radio-core_2.cjs.entry.js +1 -1
- package/dist/cjs/taro-rich-text-core.cjs.entry.js +1 -1
- package/dist/cjs/taro-root-portal-core.cjs.entry.js +1 -1
- package/dist/cjs/taro-rtc-room-core.cjs.entry.js +1 -1
- package/dist/cjs/taro-rtc-room-item-core.cjs.entry.js +1 -1
- package/dist/cjs/taro-scroll-view-core.cjs.entry.js +2 -2
- package/dist/cjs/taro-share-element-core.cjs.entry.js +1 -1
- package/dist/cjs/taro-slider-core.cjs.entry.js +1 -1
- package/dist/cjs/taro-slot-core.cjs.entry.js +1 -1
- package/dist/cjs/taro-snapshot-core.cjs.entry.js +1 -1
- package/dist/cjs/taro-sticky-header-core.cjs.entry.js +1 -1
- package/dist/cjs/taro-sticky-section-core.cjs.entry.js +1 -1
- package/dist/cjs/taro-swiper-core_2.cjs.entry.js +6 -4
- package/dist/cjs/taro-switch-core.cjs.entry.js +1 -1
- package/dist/cjs/taro-tab-item-core.cjs.entry.js +1 -1
- package/dist/cjs/taro-tabbar.cjs.entry.js +2 -2
- package/dist/cjs/taro-tabs-core.cjs.entry.js +1 -1
- package/dist/cjs/taro-text-core.cjs.entry.js +1 -1
- package/dist/cjs/taro-textarea-core.cjs.entry.js +1 -1
- package/dist/cjs/taro-video-control_3.cjs.entry.js +2 -2
- package/dist/cjs/taro-view-core.cjs.entry.js +1 -1
- package/dist/cjs/taro-voip-room-core.cjs.entry.js +1 -1
- package/dist/cjs/taro-web-view-core.cjs.entry.js +1 -1
- package/dist/collection/components/movable-area/movable-area.js +2 -1
- package/dist/collection/components/progress/style/index.css +1 -1
- package/dist/collection/components/pull-to-refresh/pull-to-refresh.js +3 -0
- package/dist/collection/components/swiper/swiper.js +4 -2
- package/dist/collection/utils/index.js +10 -0
- package/dist/components/index3.js +6 -1
- package/dist/components/taro-movable-area-core.js +2 -1
- package/dist/components/taro-progress-core.js +1 -1
- package/dist/components/taro-pull-to-refresh-core.js +3 -0
- package/dist/components/taro-swiper-core.js +4 -2
- package/dist/components/taro-tabbar.js +1 -1
- package/dist/esm/{index-d1b03e47.js → index-a00a7418.js} +6 -1
- package/dist/esm/{index-486e187e.js → index-ab3c86da.js} +209 -5
- package/dist/esm/loader.js +2 -2
- package/dist/esm/taro-ad-core.entry.js +1 -1
- package/dist/esm/taro-ad-custom-core.entry.js +1 -1
- package/dist/esm/taro-animation-video-core.entry.js +1 -1
- package/dist/esm/taro-animation-view-core.entry.js +1 -1
- package/dist/esm/taro-ar-camera-core.entry.js +1 -1
- package/dist/esm/taro-audio-core.entry.js +1 -1
- package/dist/esm/taro-aweme-data-core.entry.js +1 -1
- package/dist/esm/taro-block-core.entry.js +1 -1
- package/dist/esm/taro-button-core.entry.js +1 -1
- package/dist/esm/taro-camera-core.entry.js +1 -1
- package/dist/esm/taro-canvas-core.entry.js +1 -1
- package/dist/esm/taro-channel-live-core.entry.js +1 -1
- package/dist/esm/taro-channel-video-core.entry.js +1 -1
- package/dist/esm/taro-checkbox-core_2.entry.js +1 -1
- package/dist/esm/taro-comment-detail-core.entry.js +1 -1
- package/dist/esm/taro-comment-list-core.entry.js +1 -1
- package/dist/esm/taro-components.js +2 -2
- package/dist/esm/taro-contact-button-core.entry.js +1 -1
- package/dist/esm/taro-cover-image-core.entry.js +1 -1
- package/dist/esm/taro-cover-view-core.entry.js +1 -1
- package/dist/esm/taro-custom-wrapper-core.entry.js +1 -1
- package/dist/esm/taro-editor-core.entry.js +1 -1
- package/dist/esm/taro-follow-swan-core.entry.js +1 -1
- package/dist/esm/taro-form-core.entry.js +1 -1
- package/dist/esm/taro-functional-page-navigator-core.entry.js +1 -1
- package/dist/esm/taro-grid-view-core.entry.js +1 -1
- package/dist/esm/taro-icon-core.entry.js +1 -1
- package/dist/esm/taro-image-core.entry.js +1 -1
- package/dist/esm/taro-inline-payment-panel-core.entry.js +1 -1
- package/dist/esm/taro-input-core.entry.js +1 -1
- package/dist/esm/taro-keyboard-accessory-core.entry.js +1 -1
- package/dist/esm/taro-label-core.entry.js +1 -1
- package/dist/esm/taro-lifestyle-core.entry.js +1 -1
- package/dist/esm/taro-like-core.entry.js +1 -1
- package/dist/esm/taro-list-view-core.entry.js +1 -1
- package/dist/esm/taro-live-player-core.entry.js +1 -1
- package/dist/esm/taro-live-pusher-core.entry.js +1 -1
- package/dist/esm/taro-login-core.entry.js +1 -1
- package/dist/esm/taro-lottie-core.entry.js +1 -1
- package/dist/esm/taro-map-core.entry.js +1 -1
- package/dist/esm/taro-match-media-core.entry.js +1 -1
- package/dist/esm/taro-movable-area-core_2.entry.js +3 -2
- package/dist/esm/taro-native-slot-core.entry.js +1 -1
- package/dist/esm/taro-navigation-bar-core.entry.js +1 -1
- package/dist/esm/taro-navigator-core.entry.js +1 -1
- package/dist/esm/taro-official-account-core.entry.js +1 -1
- package/dist/esm/taro-open-data-core.entry.js +1 -1
- package/dist/esm/taro-page-container-core.entry.js +1 -1
- package/dist/esm/taro-page-meta-core.entry.js +1 -1
- package/dist/esm/taro-picker-core_2.entry.js +1 -1
- package/dist/esm/taro-picker-view-column-core_2.entry.js +2 -2
- package/dist/esm/taro-progress-core.entry.js +2 -2
- package/dist/esm/taro-pull-to-refresh-core.entry.js +4 -1
- package/dist/esm/taro-radio-core_2.entry.js +1 -1
- package/dist/esm/taro-rich-text-core.entry.js +1 -1
- package/dist/esm/taro-root-portal-core.entry.js +1 -1
- package/dist/esm/taro-rtc-room-core.entry.js +1 -1
- package/dist/esm/taro-rtc-room-item-core.entry.js +1 -1
- package/dist/esm/taro-scroll-view-core.entry.js +2 -2
- package/dist/esm/taro-share-element-core.entry.js +1 -1
- package/dist/esm/taro-slider-core.entry.js +1 -1
- package/dist/esm/taro-slot-core.entry.js +1 -1
- package/dist/esm/taro-snapshot-core.entry.js +1 -1
- package/dist/esm/taro-sticky-header-core.entry.js +1 -1
- package/dist/esm/taro-sticky-section-core.entry.js +1 -1
- package/dist/esm/taro-swiper-core_2.entry.js +6 -4
- package/dist/esm/taro-switch-core.entry.js +1 -1
- package/dist/esm/taro-tab-item-core.entry.js +1 -1
- package/dist/esm/taro-tabbar.entry.js +2 -2
- package/dist/esm/taro-tabs-core.entry.js +1 -1
- package/dist/esm/taro-text-core.entry.js +1 -1
- package/dist/esm/taro-textarea-core.entry.js +1 -1
- package/dist/esm/taro-video-control_3.entry.js +2 -2
- package/dist/esm/taro-view-core.entry.js +1 -1
- package/dist/esm/taro-voip-room-core.entry.js +1 -1
- package/dist/esm/taro-web-view-core.entry.js +1 -1
- package/dist/esm-es5/index-a00a7418.js +1 -0
- package/dist/esm-es5/index-ab3c86da.js +2 -0
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/taro-ad-core.entry.js +1 -1
- package/dist/esm-es5/taro-ad-custom-core.entry.js +1 -1
- package/dist/esm-es5/taro-animation-video-core.entry.js +1 -1
- package/dist/esm-es5/taro-animation-view-core.entry.js +1 -1
- package/dist/esm-es5/taro-ar-camera-core.entry.js +1 -1
- package/dist/esm-es5/taro-audio-core.entry.js +1 -1
- package/dist/esm-es5/taro-aweme-data-core.entry.js +1 -1
- package/dist/esm-es5/taro-block-core.entry.js +1 -1
- package/dist/esm-es5/taro-button-core.entry.js +1 -1
- package/dist/esm-es5/taro-camera-core.entry.js +1 -1
- package/dist/esm-es5/taro-canvas-core.entry.js +1 -1
- package/dist/esm-es5/taro-channel-live-core.entry.js +1 -1
- package/dist/esm-es5/taro-channel-video-core.entry.js +1 -1
- package/dist/esm-es5/taro-checkbox-core_2.entry.js +1 -1
- package/dist/esm-es5/taro-comment-detail-core.entry.js +1 -1
- package/dist/esm-es5/taro-comment-list-core.entry.js +1 -1
- package/dist/esm-es5/taro-components.js +1 -1
- package/dist/esm-es5/taro-contact-button-core.entry.js +1 -1
- package/dist/esm-es5/taro-cover-image-core.entry.js +1 -1
- package/dist/esm-es5/taro-cover-view-core.entry.js +1 -1
- package/dist/esm-es5/taro-custom-wrapper-core.entry.js +1 -1
- package/dist/esm-es5/taro-editor-core.entry.js +1 -1
- package/dist/esm-es5/taro-follow-swan-core.entry.js +1 -1
- package/dist/esm-es5/taro-form-core.entry.js +1 -1
- package/dist/esm-es5/taro-functional-page-navigator-core.entry.js +1 -1
- package/dist/esm-es5/taro-grid-view-core.entry.js +1 -1
- package/dist/esm-es5/taro-icon-core.entry.js +1 -1
- package/dist/esm-es5/taro-image-core.entry.js +1 -1
- package/dist/esm-es5/taro-inline-payment-panel-core.entry.js +1 -1
- package/dist/esm-es5/taro-input-core.entry.js +1 -1
- package/dist/esm-es5/taro-keyboard-accessory-core.entry.js +1 -1
- package/dist/esm-es5/taro-label-core.entry.js +1 -1
- package/dist/esm-es5/taro-lifestyle-core.entry.js +1 -1
- package/dist/esm-es5/taro-like-core.entry.js +1 -1
- package/dist/esm-es5/taro-list-view-core.entry.js +1 -1
- package/dist/esm-es5/taro-live-player-core.entry.js +1 -1
- package/dist/esm-es5/taro-live-pusher-core.entry.js +1 -1
- package/dist/esm-es5/taro-login-core.entry.js +1 -1
- package/dist/esm-es5/taro-lottie-core.entry.js +1 -1
- package/dist/esm-es5/taro-map-core.entry.js +1 -1
- package/dist/esm-es5/taro-match-media-core.entry.js +1 -1
- package/dist/esm-es5/taro-movable-area-core_2.entry.js +1 -1
- package/dist/esm-es5/taro-native-slot-core.entry.js +1 -1
- package/dist/esm-es5/taro-navigation-bar-core.entry.js +1 -1
- package/dist/esm-es5/taro-navigator-core.entry.js +1 -1
- package/dist/esm-es5/taro-official-account-core.entry.js +1 -1
- package/dist/esm-es5/taro-open-data-core.entry.js +1 -1
- package/dist/esm-es5/taro-page-container-core.entry.js +1 -1
- package/dist/esm-es5/taro-page-meta-core.entry.js +1 -1
- package/dist/esm-es5/taro-picker-core_2.entry.js +1 -1
- package/dist/esm-es5/taro-picker-view-column-core_2.entry.js +1 -1
- package/dist/esm-es5/taro-progress-core.entry.js +1 -1
- package/dist/esm-es5/taro-pull-to-refresh-core.entry.js +1 -1
- package/dist/esm-es5/taro-radio-core_2.entry.js +1 -1
- package/dist/esm-es5/taro-rich-text-core.entry.js +1 -1
- package/dist/esm-es5/taro-root-portal-core.entry.js +1 -1
- package/dist/esm-es5/taro-rtc-room-core.entry.js +1 -1
- package/dist/esm-es5/taro-rtc-room-item-core.entry.js +1 -1
- package/dist/esm-es5/taro-scroll-view-core.entry.js +1 -1
- package/dist/esm-es5/taro-share-element-core.entry.js +1 -1
- package/dist/esm-es5/taro-slider-core.entry.js +1 -1
- package/dist/esm-es5/taro-slot-core.entry.js +1 -1
- package/dist/esm-es5/taro-snapshot-core.entry.js +1 -1
- package/dist/esm-es5/taro-sticky-header-core.entry.js +1 -1
- package/dist/esm-es5/taro-sticky-section-core.entry.js +1 -1
- package/dist/esm-es5/taro-swiper-core_2.entry.js +1 -1
- package/dist/esm-es5/taro-switch-core.entry.js +1 -1
- package/dist/esm-es5/taro-tab-item-core.entry.js +1 -1
- package/dist/esm-es5/taro-tabbar.entry.js +1 -1
- package/dist/esm-es5/taro-tabs-core.entry.js +1 -1
- package/dist/esm-es5/taro-text-core.entry.js +1 -1
- package/dist/esm-es5/taro-textarea-core.entry.js +1 -1
- package/dist/esm-es5/taro-video-control_3.entry.js +1 -1
- package/dist/esm-es5/taro-view-core.entry.js +1 -1
- package/dist/esm-es5/taro-voip-room-core.entry.js +1 -1
- package/dist/esm-es5/taro-web-view-core.entry.js +1 -1
- package/dist/hydrate/index.d.ts +217 -0
- package/dist/hydrate/index.js +13054 -0
- package/dist/hydrate/package.json +6 -0
- package/dist/taro-components/{p-7b6f6526.system.entry.js → p-0044961f.system.entry.js} +1 -1
- package/dist/taro-components/p-010faa87.system.js +1 -0
- package/dist/taro-components/{p-128f9eb0.entry.js → p-0132e803.entry.js} +1 -1
- package/dist/taro-components/{p-7cecf08e.system.entry.js → p-019124ae.system.entry.js} +1 -1
- package/dist/taro-components/{p-25bbf4aa.system.entry.js → p-04f97133.system.entry.js} +1 -1
- package/dist/taro-components/{p-de3e1cee.system.entry.js → p-069ae782.system.entry.js} +1 -1
- package/dist/taro-components/p-0d8a0733.entry.js +1 -0
- package/dist/taro-components/{p-74129eac.entry.js → p-0f95be56.entry.js} +1 -1
- package/dist/taro-components/{p-61cb688a.entry.js → p-0fe4660a.entry.js} +1 -1
- package/dist/taro-components/{p-205a0692.system.entry.js → p-1087c51a.system.entry.js} +1 -1
- package/dist/taro-components/{p-88c5f0eb.system.entry.js → p-11c0dc59.system.entry.js} +1 -1
- package/dist/taro-components/{p-5bb60b5e.entry.js → p-12b967fd.entry.js} +1 -1
- package/dist/taro-components/{p-4928ee37.entry.js → p-13bf0192.entry.js} +1 -1
- package/dist/taro-components/{p-3e9bf572.entry.js → p-13e80cf7.entry.js} +1 -1
- package/dist/taro-components/{p-bba220a9.entry.js → p-15c1ce79.entry.js} +1 -1
- package/dist/taro-components/p-16705ca9.entry.js +1 -0
- package/dist/taro-components/{p-bcf5d78a.system.entry.js → p-194ace03.system.entry.js} +1 -1
- package/dist/taro-components/p-19b04eb7.entry.js +1 -0
- package/dist/taro-components/{p-352b6b6b.system.entry.js → p-19b993d8.system.entry.js} +1 -1
- package/dist/taro-components/{p-dca5e9ee.entry.js → p-1b1034dc.entry.js} +1 -1
- package/dist/taro-components/{p-bb87373d.entry.js → p-22f6316e.entry.js} +1 -1
- package/dist/taro-components/p-25636983.entry.js +1 -0
- package/dist/taro-components/{p-4e4cc6ab.entry.js → p-28bc8a48.entry.js} +1 -1
- package/dist/taro-components/p-2b70c348.system.js +2 -0
- package/dist/taro-components/p-2d382d0e.entry.js +1 -0
- package/dist/taro-components/{p-8d437a7f.entry.js → p-2ebc3182.entry.js} +1 -1
- package/dist/taro-components/{p-b6694eb3.system.entry.js → p-2f8ebd28.system.entry.js} +1 -1
- package/dist/taro-components/{p-d60b66c2.entry.js → p-317c4cad.entry.js} +1 -1
- package/dist/taro-components/{p-846aa5ec.entry.js → p-342a2594.entry.js} +1 -1
- package/dist/taro-components/{p-e09e8b51.system.entry.js → p-3430d520.system.entry.js} +1 -1
- package/dist/taro-components/{p-26545e4e.system.entry.js → p-36ea0ac1.system.entry.js} +1 -1
- package/dist/taro-components/{p-e7d82e00.entry.js → p-370cc947.entry.js} +1 -1
- package/dist/taro-components/p-378b504c.entry.js +1 -0
- package/dist/taro-components/{p-00d05751.entry.js → p-37bc198d.entry.js} +1 -1
- package/dist/taro-components/{p-ba195b39.entry.js → p-39b3e34d.entry.js} +1 -1
- package/dist/taro-components/{p-b04cdd9a.system.entry.js → p-3a0a05fd.system.entry.js} +1 -1
- package/dist/taro-components/{p-5a1bb2d3.system.entry.js → p-3a3d40de.system.entry.js} +1 -1
- package/dist/taro-components/{p-2d6d4850.entry.js → p-3d423adc.entry.js} +1 -1
- package/dist/taro-components/{p-10d3c795.system.entry.js → p-3eedb8d7.system.entry.js} +1 -1
- package/dist/taro-components/{p-4cbd26dd.entry.js → p-43932446.entry.js} +1 -1
- package/dist/taro-components/{p-1ee83d63.system.entry.js → p-46ccb393.system.entry.js} +1 -1
- package/dist/taro-components/{p-a972aa1d.system.js → p-477f8fbd.system.js} +1 -1
- package/dist/taro-components/{p-16954dd6.entry.js → p-4824cc94.entry.js} +1 -1
- package/dist/taro-components/p-48a84765.entry.js +1 -0
- package/dist/taro-components/{p-861834ce.entry.js → p-49e9b2ff.entry.js} +1 -1
- package/dist/taro-components/p-4a748c0d.entry.js +1 -0
- package/dist/taro-components/{p-75b927b4.system.entry.js → p-4b5f75b9.system.entry.js} +1 -1
- package/dist/taro-components/{p-2f403f7f.entry.js → p-4e63d3bd.entry.js} +1 -1
- package/dist/taro-components/{p-87422c88.entry.js → p-4fcb258a.entry.js} +1 -1
- package/dist/taro-components/{p-2dea35fd.entry.js → p-4ffae31c.entry.js} +1 -1
- package/dist/taro-components/{p-510a69b3.entry.js → p-50b21f94.entry.js} +1 -1
- package/dist/taro-components/p-518a9b73.entry.js +1 -0
- package/dist/taro-components/p-52ad5213.system.entry.js +1 -0
- package/dist/taro-components/{p-bf0d2c21.system.entry.js → p-54b24e2f.system.entry.js} +1 -1
- package/dist/taro-components/{p-dbb47d14.system.entry.js → p-55934653.system.entry.js} +1 -1
- package/dist/taro-components/{p-02dd30fa.system.entry.js → p-562eace8.system.entry.js} +1 -1
- package/dist/taro-components/p-5893c3ed.js +1 -0
- package/dist/taro-components/{p-34933f34.system.entry.js → p-5a78fbdf.system.entry.js} +1 -1
- package/dist/taro-components/{p-8b70fd1d.entry.js → p-5b4de079.entry.js} +1 -1
- package/dist/taro-components/{p-f554428f.system.entry.js → p-5b86e66b.system.entry.js} +1 -1
- package/dist/taro-components/{p-d36f8c4f.entry.js → p-5bfdb5f3.entry.js} +1 -1
- package/dist/taro-components/{p-07e94301.system.entry.js → p-5c0f97d3.system.entry.js} +1 -1
- package/dist/taro-components/{p-bb712e32.entry.js → p-5dbabb65.entry.js} +1 -1
- package/dist/taro-components/{p-2f683899.entry.js → p-5f4c6ca5.entry.js} +1 -1
- package/dist/taro-components/{p-6229bb7d.system.entry.js → p-618ee593.system.entry.js} +1 -1
- package/dist/taro-components/{p-600d9210.entry.js → p-62df5526.entry.js} +1 -1
- package/dist/taro-components/{p-80106cc2.system.entry.js → p-66029061.system.entry.js} +1 -1
- package/dist/taro-components/{p-940d41e9.system.entry.js → p-69e70cd5.system.entry.js} +1 -1
- package/dist/taro-components/{p-578f19ea.system.entry.js → p-6c06b440.system.entry.js} +1 -1
- package/dist/taro-components/{p-0cf04b3d.system.entry.js → p-6f1034a6.system.entry.js} +1 -1
- package/dist/taro-components/p-6f3187bc.entry.js +1 -0
- package/dist/taro-components/p-6f8926e3.entry.js +1 -0
- package/dist/taro-components/{p-48e5ddaa.entry.js → p-756aa971.entry.js} +1 -1
- package/dist/taro-components/p-7615d8a6.system.entry.js +1 -0
- package/dist/taro-components/{p-1182efdd.system.entry.js → p-77e030e9.system.entry.js} +1 -1
- package/dist/taro-components/p-7b3ce3af.system.entry.js +1 -0
- package/dist/taro-components/{p-e457a83a.system.entry.js → p-7b80637e.system.entry.js} +1 -1
- package/dist/taro-components/{p-bdd7b5a9.entry.js → p-7e3f0837.entry.js} +1 -1
- package/dist/taro-components/p-7f3d9184.entry.js +1 -0
- package/dist/taro-components/{p-9e138188.entry.js → p-80228985.entry.js} +1 -1
- package/dist/taro-components/{p-50e1ba06.system.entry.js → p-80fa706c.system.entry.js} +1 -1
- package/dist/taro-components/{p-7f084a29.system.entry.js → p-829157b1.system.entry.js} +1 -1
- package/dist/taro-components/p-82c5b9d3.entry.js +1 -0
- package/dist/taro-components/{p-290fd78b.system.entry.js → p-82d52f00.system.entry.js} +1 -1
- package/dist/taro-components/p-8a6e93ed.entry.js +1 -0
- package/dist/taro-components/{p-d03136d7.system.entry.js → p-8b7e37c9.system.entry.js} +1 -1
- package/dist/taro-components/{p-37593ce7.entry.js → p-8bde1f48.entry.js} +1 -1
- package/dist/taro-components/{p-8df92f90.system.entry.js → p-90ee19f8.system.entry.js} +1 -1
- package/dist/taro-components/{p-1e3d7899.system.entry.js → p-923aa1c8.system.entry.js} +1 -1
- package/dist/taro-components/{p-970623a1.entry.js → p-92b7b545.entry.js} +1 -1
- package/dist/taro-components/{p-114f89d6.system.entry.js → p-93b39a89.system.entry.js} +1 -1
- package/dist/taro-components/{p-ebf38559.system.entry.js → p-970a4199.system.entry.js} +1 -1
- package/dist/taro-components/{p-3d76b46e.system.entry.js → p-97177863.system.entry.js} +1 -1
- package/dist/taro-components/{p-92daad3f.system.entry.js → p-99440bcc.system.entry.js} +1 -1
- package/dist/taro-components/{p-9a5bfa2a.system.entry.js → p-9f3e0019.system.entry.js} +1 -1
- package/dist/taro-components/{p-e1c2e636.entry.js → p-a0f42e7f.entry.js} +1 -1
- package/dist/taro-components/{p-80278124.entry.js → p-a2f848cc.entry.js} +1 -1
- package/dist/taro-components/{p-c0f710ae.entry.js → p-a6790f39.entry.js} +1 -1
- package/dist/taro-components/{p-014534ca.system.entry.js → p-a997cf7c.system.entry.js} +1 -1
- package/dist/taro-components/{p-8e45a207.system.entry.js → p-aa11b00c.system.entry.js} +1 -1
- package/dist/taro-components/{p-28bf8423.system.entry.js → p-adee7f1b.system.entry.js} +1 -1
- package/dist/taro-components/{p-9b4e5578.entry.js → p-ae99551a.entry.js} +1 -1
- package/dist/taro-components/{p-3dadbe4c.system.entry.js → p-aed23034.system.entry.js} +1 -1
- package/dist/taro-components/{p-a2a70581.system.entry.js → p-b259a558.system.entry.js} +1 -1
- package/dist/taro-components/{p-e25c2a22.entry.js → p-b3129dec.entry.js} +1 -1
- package/dist/taro-components/{p-bdee068b.system.entry.js → p-b3419d7f.system.entry.js} +1 -1
- package/dist/taro-components/{p-b8e2465a.entry.js → p-b43fa9b0.entry.js} +1 -1
- package/dist/taro-components/{p-64f5abce.entry.js → p-b4707cdd.entry.js} +1 -1
- package/dist/taro-components/{p-ff7dfc5c.system.entry.js → p-b655e854.system.entry.js} +1 -1
- package/dist/taro-components/{p-54941baf.system.entry.js → p-b66dfc82.system.entry.js} +1 -1
- package/dist/taro-components/{p-6cf765b7.system.entry.js → p-ba241824.system.entry.js} +1 -1
- package/dist/taro-components/p-baea6a63.entry.js +1 -0
- package/dist/taro-components/{p-caba17c6.system.entry.js → p-bdafd94c.system.entry.js} +1 -1
- package/dist/taro-components/{p-170ce205.system.entry.js → p-be68ae6e.system.entry.js} +1 -1
- package/dist/taro-components/{p-a17b1a7e.entry.js → p-c0d93f74.entry.js} +1 -1
- package/dist/taro-components/{p-6e9d509a.entry.js → p-c0f16127.entry.js} +1 -1
- package/dist/taro-components/{p-445810cb.entry.js → p-c253be9f.entry.js} +1 -1
- package/dist/taro-components/p-c2da52a5.entry.js +1 -0
- package/dist/taro-components/{p-3bd04d38.entry.js → p-c58627f4.entry.js} +1 -1
- package/dist/taro-components/{p-a197cbae.system.entry.js → p-c863ac7f.system.entry.js} +1 -1
- package/dist/taro-components/{p-d78ab2de.system.entry.js → p-cee51d71.system.entry.js} +1 -1
- package/dist/taro-components/{p-ba50342b.system.entry.js → p-d12b6a84.system.entry.js} +1 -1
- package/dist/taro-components/p-d184903b.entry.js +1 -0
- package/dist/taro-components/{p-72b954ce.system.entry.js → p-d1a095bd.system.entry.js} +1 -1
- package/dist/taro-components/p-d29a59cd.entry.js +1 -0
- package/dist/taro-components/p-da4c4cad.entry.js +1 -0
- package/dist/taro-components/{p-06cf6b18.system.entry.js → p-dbeadc04.system.entry.js} +1 -1
- package/dist/taro-components/{p-e26c787b.entry.js → p-dc366f18.entry.js} +1 -1
- package/dist/taro-components/p-dd7a128d.js +2 -0
- package/dist/taro-components/{p-870e0d9d.entry.js → p-dde26531.entry.js} +1 -1
- package/dist/taro-components/{p-581e844d.system.entry.js → p-de1d495a.system.entry.js} +1 -1
- package/dist/taro-components/{p-dc98486d.entry.js → p-e23769c4.entry.js} +1 -1
- package/dist/taro-components/{p-35e96af8.system.entry.js → p-e2694a79.system.entry.js} +1 -1
- package/dist/taro-components/{p-1d25f4e3.entry.js → p-e2a22cd1.entry.js} +1 -1
- package/dist/taro-components/{p-3ca9aa19.system.entry.js → p-e41ed824.system.entry.js} +1 -1
- package/dist/taro-components/{p-2bbdbe9c.system.entry.js → p-e5a80896.system.entry.js} +1 -1
- package/dist/taro-components/{p-b8858af9.system.entry.js → p-e5b43c80.system.entry.js} +1 -1
- package/dist/taro-components/{p-758e3319.system.entry.js → p-e6a2f1bd.system.entry.js} +1 -1
- package/dist/taro-components/p-e8753c5c.entry.js +1 -0
- package/dist/taro-components/{p-95058ee1.entry.js → p-ead6e57b.entry.js} +1 -1
- package/dist/taro-components/p-ec00e517.entry.js +1 -0
- package/dist/taro-components/p-ed081b3d.entry.js +1 -0
- package/dist/taro-components/{p-1b42ba7e.system.entry.js → p-eda34d91.system.entry.js} +1 -1
- package/dist/taro-components/{p-040f15f2.system.entry.js → p-ee9d6467.system.entry.js} +1 -1
- package/dist/taro-components/{p-2059cbc0.system.entry.js → p-f0056aca.system.entry.js} +1 -1
- package/dist/taro-components/{p-67ff5a50.system.entry.js → p-f470ce9f.system.entry.js} +1 -1
- package/dist/taro-components/{p-9890bb7b.entry.js → p-f662c928.entry.js} +1 -1
- package/dist/taro-components/{p-dc6db06e.system.entry.js → p-f7198b67.system.entry.js} +1 -1
- package/dist/taro-components/{p-74b1be20.system.entry.js → p-f782ee74.system.entry.js} +1 -1
- package/dist/taro-components/p-f94c0445.system.entry.js +1 -0
- package/dist/taro-components/p-f9a13a5c.entry.js +1 -0
- package/dist/taro-components/{p-9937cf08.system.entry.js → p-fbb789a4.system.entry.js} +1 -1
- package/dist/taro-components/{p-9623f19c.system.entry.js → p-fe1dd94f.system.entry.js} +1 -1
- package/dist/taro-components/{p-55be4215.entry.js → p-fe8ee676.entry.js} +1 -1
- package/dist/taro-components/{p-015b3025.system.entry.js → p-ffaac078.system.entry.js} +1 -1
- package/dist/taro-components/taro-components.esm.js +1 -1
- package/dist/taro-components/taro-components.js +1 -1
- package/dist/types/utils/index.d.ts +2 -0
- package/package.json +8 -9
- package/types/Canvas.d.ts +1 -1
- package/types/Input.d.ts +2 -1
- package/types/Map.d.ts +0 -2
- package/types/PageMeta.d.ts +6 -0
- package/types/Picker.d.ts +6 -1
- package/types/PickerView.d.ts +1 -0
- package/types/ShareElement.d.ts +1 -0
- package/types/Slider.d.ts +3 -2
- package/types/Swiper.d.ts +1 -3
- package/types/Switch.d.ts +2 -1
- package/types/Textarea.d.ts +2 -1
- package/dist/esm-es5/index-486e187e.js +0 -2
- package/dist/esm-es5/index-d1b03e47.js +0 -1
- package/dist/taro-components/p-0e3d8ada.entry.js +0 -1
- package/dist/taro-components/p-101f49dd.entry.js +0 -1
- package/dist/taro-components/p-1ced140d.entry.js +0 -1
- package/dist/taro-components/p-30623371.entry.js +0 -1
- package/dist/taro-components/p-387f300a.entry.js +0 -1
- package/dist/taro-components/p-3afbae36.entry.js +0 -1
- package/dist/taro-components/p-4408d796.entry.js +0 -1
- package/dist/taro-components/p-449f60fa.entry.js +0 -1
- package/dist/taro-components/p-46661961.entry.js +0 -1
- package/dist/taro-components/p-4e4ac1fe.system.entry.js +0 -1
- package/dist/taro-components/p-5307637c.system.entry.js +0 -1
- package/dist/taro-components/p-6066e633.entry.js +0 -1
- package/dist/taro-components/p-69e747dc.entry.js +0 -1
- package/dist/taro-components/p-6bbb639a.system.js +0 -2
- package/dist/taro-components/p-6f027b85.entry.js +0 -1
- package/dist/taro-components/p-764cd497.entry.js +0 -1
- package/dist/taro-components/p-7bd1345f.entry.js +0 -1
- package/dist/taro-components/p-83699a53.entry.js +0 -1
- package/dist/taro-components/p-95e88e0f.entry.js +0 -1
- package/dist/taro-components/p-98b1fc13.js +0 -2
- package/dist/taro-components/p-a61e195b.entry.js +0 -1
- package/dist/taro-components/p-ae128150.entry.js +0 -1
- package/dist/taro-components/p-b317674b.entry.js +0 -1
- package/dist/taro-components/p-b9f19e77.entry.js +0 -1
- package/dist/taro-components/p-bd5177d3.system.js +0 -1
- package/dist/taro-components/p-c11fcb25.system.entry.js +0 -1
- package/dist/taro-components/p-cbc19d63.entry.js +0 -1
- package/dist/taro-components/p-d3c7f87d.js +0 -1
- package/dist/taro-components/p-eeb6aeb5.system.entry.js +0 -1
- package/dist/taro-components/p-ef0aff29.entry.js +0 -1
- package/dist/taro-components/p-fd1d75db.entry.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{__awaiter,__generator}from"tslib";import{r as registerInstance,c as createEvent,h,g as getElement}from"./index-
|
|
1
|
+
import{__awaiter,__generator}from"tslib";import{r as registerInstance,c as createEvent,h,g as getElement}from"./index-ab3c86da.js";var indexCss="taro-textarea-core{width:300px;display:block}taro-textarea-core .auto-height{height:auto}.taro-textarea{height:inherit;-webkit-appearance:none;-moz-appearance:none;appearance:none;cursor:auto;border:0;width:100%;line-height:1.5;display:block;position:relative}.taro-textarea:focus{outline:none}";function fixControlledValue(e){return e!==null&&e!==void 0?e:""}var Textarea=function(){function e(e){var t=this;registerInstance(this,e);this.onInput=createEvent(this,"input",7);this.onFocus=createEvent(this,"focus",7);this.onBlur=createEvent(this,"blur",7);this.onConfirm=createEvent(this,"confirm",7);this.onChange=createEvent(this,"change",7);this.onLineChange=createEvent(this,"linechange",7);this.onKeyDown=createEvent(this,"keydown",7);this.handleInput=function(e){e.stopPropagation();t.handleLineChange();var n=e.target.value||"";t.value=n;t.onInput.emit({value:n,cursor:n.length})};this.handleFocus=function(e){e.stopPropagation();t.onFocus.emit({value:e.target.value})};this.handleBlur=function(e){e.stopPropagation();t.onBlur.emit({value:e.target.value})};this.handleChange=function(e){e.stopPropagation();t.onChange.emit({value:e.target.value})};this.handleLineChange=function(){var e=t.getNumberOfLines();if(e!==t.line){t.line=e;t.onLineChange.emit({height:t.textareaRef.clientHeight,lineCount:t.line})}};this.handleKeyDown=function(e){e.stopPropagation();var n=e.target.value;var a=e.keyCode||e.code;t.onKeyDown.emit({value:n,cursor:n.length,keyCode:a});a===13&&t.onConfirm.emit({value:n})};this.calculateContentHeight=function(e,t){var n=e.style.height,a=e.offsetHeight,i=e.scrollHeight,o=e.style.overflow,r=e.style.minHeight||null;if(a>=i){e.style.minHeight=0;e.style.height=a+t+"px";e.style.overflow="hidden";if(i<e.scrollHeight){while(e.offsetHeight>=e.scrollHeight){e.style.height=(a-=t)+"px"}while(e.offsetHeight<e.scrollHeight){e.style.height=a+++"px"}e.style.height=n;e.style.overflow=o;e.style.minHeight=r;return a}}else{return i}};this.getNumberOfLines=function(){var e=t.textareaRef,n=window.getComputedStyle?window.getComputedStyle(e):e.style,a=parseInt(n.lineHeight,10),i=t.calculateContentHeight(e,a),o=Math.floor(i/a);return o};this.value="";this.placeholder=undefined;this.disabled=false;this.maxlength=140;this.autoFocus=false;this.autoHeight=false;this.name=undefined;this.nativeProps={};this.line=1}e.prototype.watchAutoFocus=function(e,t){var n;if(!t&&e){(n=this.textareaRef)===null||n===void 0?void 0:n.focus()}};e.prototype.watchValue=function(e){var t=fixControlledValue(e);if(this.textareaRef.value!==t){this.textareaRef.value=t}};e.prototype.focus=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){this.textareaRef.focus();return[2]}))}))};e.prototype.render=function(){var e=this;var t=this,n=t.value,a=t.placeholder,i=t.disabled,o=t.maxlength,r=t.autoFocus,l=t.autoHeight,s=t.name,u=t.nativeProps,c=t.handleInput,f=t.handleFocus,g=t.handleBlur,d=t.handleChange;var p={};if(l){p.rows=this.line}return h("textarea",Object.assign({ref:function(t){if(t){e.textareaRef=t;if(r&&t)t.focus()}},class:"taro-textarea ".concat(l?"auto-height":""),value:fixControlledValue(n),placeholder:a,name:s,disabled:i,maxlength:o,autofocus:r,onInput:c,onFocus:f,onBlur:g,onChange:d,onKeyDown:this.handleKeyDown},u,p))};Object.defineProperty(e.prototype,"el",{get:function(){return getElement(this)},enumerable:false,configurable:true});Object.defineProperty(e,"watchers",{get:function(){return{autoFocus:["watchAutoFocus"],value:["watchValue"]}},enumerable:false,configurable:true});return e}();Textarea.style=indexCss;export{Textarea as taro_textarea_core};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{__awaiter,__generator,__spreadArray}from"tslib";import{r as registerInstance,h,H as Host,g as getElement,c as createEvent}from"./index-486e187e.js";import{c as classnames}from"./index-c3e4004b.js";import{t as throttle}from"./index-d1b03e47.js";var formatTime=function(e){if(!e)return"";var t=Math.round(e%60);var i=Math.round((e-t)/60);return"".concat(i<10?"0".concat(i):i,":").concat(t<10?"0".concat(t):t)};var calcDist=function(e,t){return Math.sqrt(Math.pow(e,2)+Math.pow(t,2))};var normalizeNumber=function(e){return Math.max(-1,Math.min(e,1))};var scene="default";var screenFn=function(){var e;var t=[["requestFullscreen","exitFullscreen","fullscreenElement","fullscreenEnabled","fullscreenchange","fullscreenerror"],["webkitRequestFullscreen","webkitExitFullscreen","webkitFullscreenElement","webkitFullscreenEnabled","webkitfullscreenchange","webkitfullscreenerror"],["webkitRequestFullScreen","webkitCancelFullScreen","webkitCurrentFullScreenElement","webkitCancelFullScreen","webkitfullscreenchange","webkitfullscreenerror"],["mozRequestFullScreen","mozCancelFullScreen","mozFullScreenElement","mozFullScreenEnabled","mozfullscreenchange","mozfullscreenerror"],["msRequestFullscreen","msExitFullscreen","msFullscreenElement","msFullscreenEnabled","MSFullscreenChange","MSFullscreenError"]];var i=["webkitEnterFullscreen","webkitExitFullscreen","webkitCurrentFullScreenElement","webkitSupportsFullscreen","fullscreenchange","fullscreenerror"];var o=0;var r=t.length;var n={};for(;o<r;o++){e=t[o];if(e&&e[1]in document){for(o=0;o<e.length;o++){n[t[0][o]]=e[o]}return n}}if(!n[t[0][0]]){scene="iOS";for(o=0;o<i.length;o++){n[t[0][o]]=i[o]}}return n}();var isHls=function(e){return/\.(m3u8)($|\?)/i.test(e)};var VideoControl=function(){function e(e){var t=this;registerInstance(this,e);this.visible=false;this.isDraggingProgressBall=false;this.percentage=0;this.progressDimensions={left:0,width:0};this.calcPercentage=function(e){var i=e-t.progressDimensions.left;i=Math.max(i,0);i=Math.min(i,t.progressDimensions.width);return i/t.progressDimensions.width};this.onDragProgressBallStart=function(){t.isDraggingProgressBall=true;t.hideControlsTimer&&clearTimeout(t.hideControlsTimer)};this.onClickProgress=function(e){e.stopPropagation();var i=t.calcPercentage(e.pageX);t.seekFunc(i*t.duration);t.toggleVisibility(true)};this.controls=undefined;this.currentTime=undefined;this.duration=undefined;this.isPlaying=undefined;this.pauseFunc=undefined;this.playFunc=undefined;this.seekFunc=undefined;this.showPlayBtn=undefined;this.showProgress=undefined}e.prototype.onDocumentTouchMove=function(e){if(!this.isDraggingProgressBall)return;var t=e.touches[0].pageX;this.percentage=this.calcPercentage(t);this.setProgressBall(this.percentage);this.setCurrentTime(this.percentage*this.duration)};e.prototype.onDocumentTouchEnd=function(){if(!this.isDraggingProgressBall)return;this.isDraggingProgressBall=false;this.seekFunc(this.percentage*this.duration);this.toggleVisibility(true)};e.prototype.setProgressBall=function(e){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){if(this.progressBallRef){this.progressBallRef.style.left="".concat(e*100,"%")}return[2]}))}))};e.prototype.toggleVisibility=function(e){return __awaiter(this,void 0,void 0,(function(){var t;var i=this;return __generator(this,(function(o){t=e===undefined?!this.visible:e;if(t){this.hideControlsTimer&&clearTimeout(this.hideControlsTimer);if(this.isPlaying){this.hideControlsTimer=setTimeout((function(){i.toggleVisibility(false)}),2e3)}this.el.style.visibility="visible"}else{this.el.style.visibility="hidden"}this.visible=!!t;return[2]}))}))};e.prototype.getIsDraggingProgressBall=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){return[2,this.isDraggingProgressBall]}))}))};e.prototype.setCurrentTime=function(e){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){this.currentTimeRef.innerHTML=formatTime(e);return[2]}))}))};e.prototype.render=function(){var e=this;var t=this,i=t.controls,o=t.currentTime,r=t.duration,n=t.isPlaying,s=t.pauseFunc,a=t.playFunc,l=t.showPlayBtn,u=t.showProgress;var c=formatTime(r);var d;if(!l){d=null}else if(n){d=h("div",{class:"taro-video-control-button taro-video-control-button-pause",onClick:s})}else{d=h("div",{class:"taro-video-control-button taro-video-control-button-play",onClick:a})}return h(Host,{class:"taro-video-bar taro-video-bar-full"},i&&h("div",{class:"taro-video-controls"},d,u&&h("div",{class:"taro-video-current-time",ref:function(t){return e.currentTimeRef=t}},formatTime(o)),u&&h("div",{class:"taro-video-progress-container",onClick:this.onClickProgress},h("div",{class:"taro-video-progress",ref:function(t){if(!t)return;var i=t.getBoundingClientRect();e.progressDimensions.left=i.left;e.progressDimensions.width=i.width}},h("div",{class:"taro-video-progress-buffered",style:{width:"100%"}}),h("div",{class:"taro-video-ball",ref:function(t){return e.progressBallRef=t},onTouchStart:this.onDragProgressBallStart,style:{left:"".concat(c?this.currentTime/r*100:0,"%")}},h("div",{class:"taro-video-inner"})))),u&&h("div",{class:"taro-video-duration"},c)),h("slot",null))};Object.defineProperty(e.prototype,"el",{get:function(){return getElement(this)},enumerable:false,configurable:true});return e}();var indexCss='.taro-video{width:100%;height:225px;line-height:0;display:inline-block;position:relative;overflow:hidden}.taro-video[hidden]{display:none}.taro-video-container{-o-object-position:inherit;object-position:inherit;background-color:#000;width:100%;height:100%;display:inline-block;position:absolute;top:0;left:0}.taro-video-container.taro-video-type-fullscreen{z-index:999;position:fixed;inset:0}.taro-video-container.taro-video-type-fullscreen.taro-video-type-rotate-left{-webkit-transform:translate(-50%,-50%)rotate(-90deg);transform:translate(-50%,-50%)rotate(-90deg)}.taro-video-container.taro-video-type-fullscreen.taro-video-type-rotate-right{-webkit-transform:translate(-50%,-50%)rotate(90deg);transform:translate(-50%,-50%)rotate(90deg)}.taro-video-video{-o-object-position:inherit;object-position:inherit;width:100%;height:100%;display:block}.taro-video-cover{z-index:1;background-color:rgba(1,1,1,.5);-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;-webkit-box-align:center;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center;width:100%;display:-ms-flexbox;display:flex;position:absolute;top:0;bottom:0;left:0}.taro-video-cover-play-button{background-position:50%;background-repeat:no-repeat;background-size:50%;width:40px;height:40px}.taro-video-cover-duration{color:#fff;margin-top:10px;font-size:16px;line-height:1}.taro-video-bar{visibility:hidden;z-index:1;background-color:rgba(0,0,0,.5);-webkit-box-align:center;-ms-flex-align:center;align-items:center;height:44px;padding:0 10px;display:-ms-flexbox;display:flex;position:absolute;bottom:0;right:0;overflow:hidden}.taro-video-bar.taro-video-bar-full{left:0}.taro-video-controls{-webkit-box-flex:1;-ms-flex-positive:1;flex-grow:1;margin:0 8.5px;display:-ms-flexbox;display:flex}.taro-video-control-button{-webkit-box-sizing:content-box;box-sizing:content-box;width:13px;height:15px;margin-left:-8.5px;padding:14.5px 12.5px}.taro-video-control-button:after{content:"";background-position:50%;background-repeat:no-repeat;background-size:100%;width:100%;height:100%;display:block}.taro-video-control-button.taro-video-control-button-play:after,.taro-video-cover-play-button{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABoAAAAeCAYAAAAy2w7YAAAAAXNSR0IArs4c6QAAAWhJREFUSA1j+P///0cgBoHjQGzCQCsAtgJB/AMy5wCxGNXtQ9iBwvoA5BUCMQvVLEQxHpNzDSjkRhXLMM3GKrIeKKpEkYVYjcUu+AMo3ALE3GRZiN1MvKKPgbIRJFuG10j8koeA0gZEW4jfLIKyf4EqpgOxMEELCRpFnIJ3QGU5QMyM00LizCFa1SWgSkeslhFtBGkKVwGVy6FYSJp+klR/A6quB2JOkIWMIK0oNlOf8xBoZDE9LAI7nYn6HsBq4l96WHQEaLUpAyiOaASeAM2NgvuPBpaACt82IEYtfKls0UagecpwXyAzqGTRdaA57sjmYrAptAjUsCkGYlYMg9EFyLQI1IiZB8Ti6Obh5JNh0QmgHlOcBuKSIMGi50C18UDMiMssvOJEWPQLqKYbiHnxGkRIkoBF24DyaoTMIEoeh0W3geI+RBlArCI0iz4D+RVAzEasfqLVAQ19AcSg5LoYiKWI1kiiQgCMBLnEEcfDSgAAAABJRU5ErkJggg==)}.taro-video-control-button.taro-video-control-button-pause:after{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABIAAAAgCAYAAAAffCjxAAAAAXNSR0IArs4c6QAAAFlJREFUSA3tksEKACAIQ7X//5zq98wOgQayum8QaGweHhMzG/6OujzKAymn+0LMqivu1XznWmX8/echTIyMyAgTwA72iIwwAexgj8gIE8CO3aMRbDPMaEy5BRGaKcZv8YxRAAAAAElFTkSuQmCC)}.taro-video-current-time,.taro-video-duration{color:#cbcbcb;height:14.5px;margin-top:15px;margin-bottom:14.5px;font-size:12px;line-height:14.5px}.taro-video-progress-container{-webkit-box-flex:2;-ms-flex-positive:2;flex-grow:2;position:relative}.taro-video-progress{background-color:rgba(255,255,255,.4);height:2px;margin:21px 12px;position:relative}.taro-video-progress-buffered{background-color:rgba(255,255,255,.8);width:0;height:100%;-webkit-transition:width .1s;transition:width .1s;position:absolute;top:0;left:0}.taro-video-ball{-webkit-box-sizing:content-box;box-sizing:content-box;width:16px;height:16px;margin-left:-22px;padding:14px;position:absolute;top:-21px;left:0}.taro-video-inner{background-color:#fff;border-radius:50%;width:100%;height:100%}.taro-video-danmu-button{color:#fff;white-space:nowrap;border:1px solid #fff;border-radius:5px;margin:0 8.5px;padding:2px 10px;font-size:13px;line-height:1}.taro-video-danmu-button.taro-video-danmu-button-active{color:#48c23d;border-color:#48c23d}.taro-video-fullscreen,.taro-video-mute{-webkit-box-sizing:content-box;box-sizing:content-box;background-position:50%;background-repeat:no-repeat;background-size:50%;width:17px;height:17px;padding:8.5px}.taro-video-fullscreen{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAhUlEQVRYR+2WSwrAMAhEnZO3PfmULLooGEFTiIXJ2s/kRY2wzQeb85sE9CRA8jSzY1YfAFzhJBnU1AVgxH2dSiArCnD9QgGzRNnOech48SRABHoSyFb5in3PSbhyo6yvCPQkEM3u7BsPe/0FIvBfAh/vhKmVbO9SWun1qk/PSVi9TcVPBG6R1YIhgWwNpQAAAABJRU5ErkJggg==)}.taro-video-fullscreen.taro-video-type-fullscreen{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAABPUlEQVRYR+2Xu0pDURBF1/ZLxNcHKNiIlfhA7C0UBSEE8RNEBNFPUEQEEbGxFiSSSrCwEHsf5E/ccsSUuWfUhKQ40947+y42Z8+ZK/pcinzf9hhwD1xJ2q/qsb0JHAOzkl5y+lGAGnCWICQtZgAS6DxQk3TeLYA6cAo0JSXxjmW7CcwBdUkJurKiDhSA4kBvHbA9CqwBQx2O7BSw8ssU3ALPFRF4knT3nQLbr8B4LjLBOdAAFgJaLUkjbYC9n+zm+i4kXWbmwCqwnRMCHiXthuZAQOzPrxSA4kBxYDAcsH0EzATCfCLpJjOINoCtgFZabg7bk7AFDAeaGpKWgitZTu5N0kQbYBmYrujo9mX0CVxL+gidAdu9vY5zXhWA4sAgOND3X7NJ4AHYCaxkB8B62gslvecSFpoDOZH/PP8Cnt7hIaM5xCEAAAAASUVORK5CYII=)}.taro-video-mute{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAACXBIWXMAAAsTAAALEwEAmpwYAAAG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KGWCU2Ft7CykrQWosEyf/If0hhIPgHDEmbNJZqCFxiQEgTUGxsBUVEHgvnyrjZZJO92V1fGIaZnTPvszPszNlQ6VIjnbr/DwCoDLMNak/dUVfUK0f2rQugnlcX/FevWgFQH6gf3autRgHUC+piiXHzAOmtPx9gXgug8itQx9SXwDpw47AGKXZWvXvQmNFCwE3gCXA2dY0Az4GrRzHONA9cU/vAbERsllEOyh31e8USV2mrMPdG9uyn+rDom2/BHHCm5puWKiKmgdtAnz+rvaxO5mNygEvHaZ5BfADuARvAaWBpP4DGFBHfgBngFzClTrUKkCDeA+9S837rAEnbqb7VFcCpVJ/oCmCw959aB1AfAROpudYqgDoOLKRmPyLelAF8bcD4pPoMeAtcB34AT4uDBqXXwFG8XXUU/72MIuK1OgE8Bs6l7mEvo8up7lN1Ge0n9aK6VHMFZvJTr9S3CiALaCQhqZOSvegMIAvu2UVSWpigLC1fbQ0gm6in7qpfLCQbhwGIYcyPQ53/G3YO8BtUtd35bvKcVwAAAABJRU5ErkJggg==)}.taro-video-mute.taro-video-type-mute{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACIAAAAgCAYAAAB3j6rJAAAACXBIWXMAAAsTAAALEwEAmpwYAAAGAGlUWHRYTUw6Y29tLmFkb2JlLnhtcAAAAAAAPD94cGFja2V0IGJlZ2luPSLvu78iIGlkPSJXNU0wTXBDZWhpSHpyZVN6TlRjemtjOWQiPz4gPHg6eG1wbWV0YSB4bWxuczp4PSJhZG9iZTpuczptZXRhLyIgeDp4bXB0az0iQWRvYmUgWE1QIENvcmUgNS42LWMxNDAgNzkuMTYwNDUxLCAyMDE3LzA1LzA2LTAxOjA4OjIxICAgICAgICAiPiA8cmRmOlJERiB4bWxuczpyZGY9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkvMDIvMjItcmRmLXN5bnRheC1ucyMiPiA8cmRmOkRlc2NyaXB0aW9uIHJkZjphYm91dD0iIiB4bWxuczp4bXA9Imh0dHA6Ly9ucy5hZG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u4FBHj/wUkaXsb+4pzpVaQFPqXrN7Be4Fx9VztIOr1BLEtmX4A94E/qdwHTKjDWYM6lu81dSlnn3V570BtuLxaMs2rZ/IgYxsBovaoPwsQA4VoFWEm8ql5DiysNyURsQTMpOIMcDYiPhd8xoGr/FtNC2G6FKXD6ihwGdiVHMoeeh8jYlA9ANwE3kTEp3bO6vE03qOONzR1r/q4RGrquaFFxFxE3ALOA9+6jExpdb180y55AhirhaRTatq0GXEzL8+ZIuI9cBJ4WKiartJf9nWV/mty7UfUafW7erpqRGI9EBuprffvu9n6C1KOmsqwI5A1AAAAAElFTkSuQmCC)}.taro-video-danmu{width:100%;margin-top:14px;margin-bottom:44px;font-size:14px;line-height:14px;position:absolute;top:0;bottom:0;left:0;overflow:visible}.taro-video-danmu-item{color:#fff;white-space:nowrap;line-height:1;-webkit-transition-property:left,-webkit-transform;transition-property:left,-webkit-transform;transition-property:left,transform;transition-property:left,transform,-webkit-transform;-webkit-transition-duration:3s;transition-duration:3s;-webkit-transition-timing-function:linear;transition-timing-function:linear;position:absolute;left:100%;-webkit-transform:translate(0);transform:translate(0)}.taro-video-toast{visibility:hidden;pointer-events:none;color:#000;background-color:rgba(255,255,255,.8);border-radius:5px;display:block;position:absolute;top:50%;left:50%;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%)}.taro-video-toast.taro-video-toast-volume{width:100px;height:100px;display:block}.taro-video-toast-volume .taro-video-toast-title{text-align:center;width:100%;margin-top:10px;font-size:12px;line-height:16px;display:block}.taro-video-toast-volume .taro-video-toast-icon{fill:#000;background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeAAAFhklEQVR4Xu2aeaxfQxTHP1VBES0NIQitWtpaaxeCUkQtaYVa0tiClAq1ExIiQTVppaWxt8RWSa2tWkJQRGgtQaSIpUKEpG0ssbbk28yV2+mZO/e9e3vvu/e98897mZnfzPl+75mZs0wvurn06ub46SGgxwLqZaA3sB/wO/A+8G/V6tS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TIjrMFBtYQdAk4DID0BnAAz4B6wNLgTKKG0VIDBHwqitwpOcW+OOB540FdeipNKbUWFrUtn06o5xOij4KyDuqU0IE3Obl/rLA63pTzm9XA8jKACjdniZAaSKFmUpB1yUhAlTsUEpMh913wEkuTe7rKTzPAHqO44vpKPkFhH3cWWBVV6ogJVYZUgz/tXtIYelzI3Ct0fExIGx6j7iKWBUUveyYBehv1RIjIEsfqziq8Xp4pSBJOYTVJFQcVY3wCFeKUjVGyYfQWB00+5bEVBECrNS+qsOKBpVHNCVWHs+LS7H5PV5pOu9v0+OKEOAXR39w1e1C7wM6AkJ1eLmkRcrpRQiQrqobXO5S3vL3/4kBKMsCknV0k+iasVLUMV3UX5SAPGtED8EOT+L9YENnCasUIXNO2goChFWHqAIRyxXN4qI1BCQg9dJESYq8LnbrCBAR8t50Lig6i0krCRBoVWhVlt45wkBrCRBuRZyPuAguxIPe9lXqhpd9DcZMXOvdkPF0Xu/8dohNUmZ/1QQkuitXr+d4fryuFx3jywQYm6suAqSX8vLTXKJDt4QqO6rtLYspXWZ/nQQkOJTAUJZGIav19q9MvKvN1RUIWKMAY5P3EBBjqO393d4C/gMVHwRQlpx21QAAAABJRU5ErkJggg==);background-position:50%;background-repeat:no-repeat;background-size:50%;width:50%;height:50%;margin-left:25%;display:block}.taro-video-toast-volume .taro-video-toast-value{width:80px;height:5px;margin-top:5px;margin-left:10px}.taro-video-toast-volume .taro-video-toast-value>.taro-video-toast-value-content{overflow:hidden}.taro-video-toast-volume-grids{width:80px;height:5px}.taro-video-toast-volume-grids-item{float:left;background-color:#000;width:7.1px;height:5px}.taro-video-toast-volume-grids-item:not(:first-child){margin-left:1px}.taro-video-toast.taro-video-toast-progress{color:#fff;background-color:rgba(0,0,0,.8);padding:6px;font-size:14px;line-height:18px}';var Video=function(){function e(e){var t=this;registerInstance(this,e);this.onPlay=createEvent(this,"play",7);this.onPause=createEvent(this,"pause",7);this.onEnded=createEvent(this,"ended",7);this.onTimeUpdate=createEvent(this,"timeupdate",7);this.onError=createEvent(this,"error",7);this.onFullScreenChange=createEvent(this,"fullscreenchange",7);this.onProgress=createEvent(this,"progress",7);this.onLoadedMetaData=createEvent(this,"loadedmetadata",7);this.currentTime=0;this.isDraggingProgress=false;this.gestureType="none";this.analyzeGesture=function(e){var i;var o={type:"none"};var r=e.touches[0].screenX;var n=e.touches[0].screenY;var s=r-t.lastTouchScreenX;var a=n-t.lastTouchScreenY;var l=t.isFullScreen?t.vslideGestureInFullscreen:t.vslideGesture;if(t.gestureType==="none"){var u=calcDist(s,a);if(u<10)return o;if(Math.abs(a)>=Math.abs(s)){if(l){t.gestureType="adjustVolume";t.lastVolume=t.videoRef.volume}else{return o}}else if(Math.abs(a)<Math.abs(s)){if(t.enableProgressGesture){t.gestureType="adjustProgress";t.lastPercentage=t.currentTime/((i=t.duration)!==null&&i!==void 0?i:t._duration)}else{return o}}}o.type=t.gestureType;o.dataX=normalizeNumber(s/200);o.dataY=normalizeNumber(a/200);return o};this.loadNativePlayer=function(){var e,i;if(t.videoRef){t.videoRef.src=t.src;(i=(e=t.videoRef).load)===null||i===void 0?void 0:i.call(e)}};this.init=function(){var e=t,i=e.src,o=e.videoRef;if(isHls(i)){import("hls.js").then((function(e){var r=e.default;t.HLS=r;if(r.isSupported()){if(t.hls){t.hls.destroy()}t.hls=new r;t.hls.loadSource(i);t.hls.attachMedia(o);t.hls.on(r.Events.MANIFEST_PARSED,(function(){t.autoplay&&t.play()}));t.hls.on(r.Events.ERROR,(function(e,i){t.handleError(i)}))}else if(o.canPlayType("application/vnd.apple.mpegurl")){t.loadNativePlayer()}else{console.error("该浏览器不支持 HLS 播放")}}))}else{t.loadNativePlayer()}};this.handlePlay=function(){t.isPlaying=true;t.isFirst=false;t.controlsRef.toggleVisibility(true);t.onPlay.emit()};this.handlePause=function(){t.isPlaying=false;t.controlsRef.toggleVisibility(true);t.onPause.emit()};this.handleEnded=function(){t.isFirst=true;t.pause();t.controlsRef.toggleVisibility();t.onEnded.emit()};this.handleTimeUpdate=throttle((function(e){return __awaiter(t,void 0,void 0,(function(){var t,i,o,r;return __generator(this,(function(n){switch(n.label){case 0:this.currentTime=this.videoRef.currentTime;o=this.duration||this._duration;return[4,this.controlsRef.getIsDraggingProgressBall()];case 1:r=n.sent();if(this.controls&&this.showProgress){if(!r&&!this.isDraggingProgress){this.controlsRef.setProgressBall(this.currentTime/o);this.controlsRef.setCurrentTime(this.currentTime)}}this.danmuRef.tick(this.currentTime);this.onTimeUpdate.emit({duration:(t=e.target)===null||t===void 0?void 0:t.duration,currentTime:(i=e.target)===null||i===void 0?void 0:i.currentTime});if(this.duration){if(this.currentTime>=this.duration){this.seek(0);this.handleEnded()}}return[2]}}))}))}),250);this.handleError=function(e){var i,o;if(t.hls){switch(e.type){case t.HLS.ErrorTypes.NETWORK_ERROR:t.onError.emit({errMsg:e.response});t.hls.startLoad();break;case t.HLS.ErrorTypes.MEDIA_ERROR:t.onError.emit({errMsg:e.reason||"媒体错误,请重试"});t.hls.recoverMediaError();break}}else{t.onError.emit({errMsg:(o=(i=e.target)===null||i===void 0?void 0:i.error)===null||o===void 0?void 0:o.message})}};this.handleDurationChange=function(){t._duration=t.videoRef.duration};this.handleProgress=function(){t.onProgress.emit()};this.handleLoadedMetaData=function(e){var i=e.target;t.onLoadedMetaData.emit({width:i.videoWidth,height:i.videoHeight,duration:i.duration})};this._play=function(){return t.videoRef.play()};this._pause=function(){return t.videoRef.pause()};this._stop=function(){t.videoRef.pause();t._seek(0)};this._seek=function(e){t.videoRef.currentTime=e};this.onTouchStartContainer=function(e){t.lastTouchScreenX=e.touches[0].screenX;t.lastTouchScreenY=e.touches[0].screenY};this.onClickContainer=function(){if(t.enablePlayGesture){var e=Date.now();if(e-t.lastClickedTime<300){t.isPlaying?t.pause():t.play()}t.lastClickedTime=e}t.controlsRef.toggleVisibility()};this.onClickFullScreenBtn=function(e){e.stopPropagation();t.toggleFullScreen()};this.handleFullScreenChange=function(e){var i=(new Date).getTime();if(!e.detail&&t.isFullScreen&&!document[screenFn.fullscreenElement]&&i-t.fullScreenTimestamp>100){t.toggleFullScreen(false,true)}};this.toggleFullScreen=function(e,i){if(e===void 0){e=!t.isFullScreen}if(i===void 0){i=false}t.isFullScreen=e;t.controlsRef.toggleVisibility(true);t.fullScreenTimestamp=(new Date).getTime();t.onFullScreenChange.emit({fullScreen:t.isFullScreen,direction:"vertical"});if(t.isFullScreen&&!document[screenFn.fullscreenElement]){setTimeout((function(){t.videoRef[screenFn.requestFullscreen]({navigationUI:"auto"})}),0)}else if(!i){document[screenFn.exitFullscreen]()}};this.toggleMute=function(e){e.stopPropagation();t.videoRef.muted=!t.isMute;t.controlsRef.toggleVisibility(true);t.isMute=!t.isMute};this.toggleDanmu=function(e){e.stopPropagation();t.controlsRef.toggleVisibility(true);t._enableDanmu=!t._enableDanmu};this.src=undefined;this.duration=undefined;this.controls=true;this.autoplay=false;this.loop=false;this.muted=false;this.initialTime=0;this.poster=undefined;this.objectFit="contain";this.showProgress=true;this.showFullscreenBtn=true;this.showPlayBtn=true;this.showCenterPlayBtn=true;this.showMuteBtn=false;this.danmuList=undefined;this.danmuBtn=false;this.enableDanmu=false;this.enablePlayGesture=false;this.enableProgressGesture=true;this.vslideGesture=false;this.vslideGestureInFullscreen=true;this.nativeProps={};this._duration=undefined;this._enableDanmu=false;this.isPlaying=false;this.isFirst=true;this.isFullScreen=false;this.fullScreenTimestamp=(new Date).getTime();this.isMute=false}e.prototype.componentWillLoad=function(){this._enableDanmu=this.enableDanmu};e.prototype.componentDidLoad=function(){var e,t;this.init();if(this.initialTime){this.videoRef.currentTime=this.initialTime}(t=(e=this.danmuRef).sendDanmu)===null||t===void 0?void 0:t.call(e,this.danmuList);if(document.addEventListener){document.addEventListener(screenFn.fullscreenchange,this.handleFullScreenChange)}if(this.videoRef&&scene==="iOS"){this.videoRef.addEventListener("webkitendfullscreen",this.handleFullScreenChange)}};e.prototype.componentDidRender=function(){};e.prototype.disconnectedCallback=function(){if(document.removeEventListener){document.removeEventListener(screenFn.fullscreenchange,this.handleFullScreenChange)}if(this.videoRef&&scene==="iOS"){this.videoRef.removeEventListener("webkitendfullscreen",this.handleFullScreenChange)}};e.prototype.watchEnableDanmu=function(e){this._enableDanmu=e};e.prototype.watchSrc=function(){this.init()};e.prototype.onDocumentTouchMove=function(e){return __awaiter(this,void 0,void 0,(function(){var t,i,o;return __generator(this,(function(r){switch(r.label){case 0:if(this.lastTouchScreenX===undefined||this.lastTouchScreenY===undefined)return[2];return[4,this.controlsRef.getIsDraggingProgressBall()];case 1:if(r.sent())return[2];t=this.analyzeGesture(e);if(t.type==="adjustVolume"){this.toastVolumeRef.style.visibility="visible";i=Math.max(Math.min(this.lastVolume-t.dataY,1),0);this.videoRef.volume=i;this.toastVolumeBarRef.style.width="".concat(i*100,"%")}else if(t.type==="adjustProgress"){this.isDraggingProgress=true;this.nextPercentage=Math.max(Math.min(this.lastPercentage+(t.dataX||0),1),0);if(this.controls&&this.showProgress){this.controlsRef.setProgressBall(this.nextPercentage);this.controlsRef.toggleVisibility(true)}o=this.duration||this._duration;this.toastProgressTitleRef.innerHTML="".concat(formatTime(this.nextPercentage*o)," / ").concat(formatTime(o));this.toastProgressRef.style.visibility="visible"}return[2]}}))}))};e.prototype.onDocumentTouchEnd=function(){var e;if(this.gestureType==="adjustVolume"){this.toastVolumeRef.style.visibility="hidden"}else if(this.gestureType==="adjustProgress"){this.toastProgressRef.style.visibility="hidden"}if(this.isDraggingProgress){this.isDraggingProgress=false;this.seek(this.nextPercentage*((e=this.duration)!==null&&e!==void 0?e:this._duration))}this.gestureType="none";this.lastTouchScreenX=undefined;this.lastTouchScreenY=undefined};e.prototype.getHlsObject=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){return[2,this.hls]}))}))};e.prototype.play=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){this._play();return[2]}))}))};e.prototype.pause=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){this._pause();return[2]}))}))};e.prototype.stop=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){this._stop();return[2]}))}))};e.prototype.seek=function(e){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){this._seek(e);return[2]}))}))};e.prototype.requestFullScreen=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){this.toggleFullScreen(true);return[2]}))}))};e.prototype.exitFullScreen=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){this.toggleFullScreen(false);return[2]}))}))};e.prototype.render=function(){var e=this;var t=this,i=t.controls,o=t.autoplay,r=t.loop,n=t.muted,s=t.poster,a=t.objectFit,l=t.isFirst,u=t.isMute,c=t.isFullScreen,d=t.showCenterPlayBtn,g=t.isPlaying,f=t._enableDanmu,A=t.showMuteBtn,p=t.danmuBtn,v=t.showFullscreenBtn,m=t.nativeProps;var b=this.duration||this._duration;var y=formatTime(b);return h(Host,{class:classnames("taro-video-container",{"taro-video-type-fullscreen":c}),onTouchStart:this.onTouchStartContainer,onClick:this.onClickContainer},h("video",Object.assign({class:"taro-video-video",style:{"object-fit":a},ref:function(t){if(t){e.videoRef=t}},autoplay:o,loop:r,muted:n,poster:i?s:undefined,playsinline:true,"webkit-playsinline":true,onPlay:this.handlePlay,onPause:this.handlePause,onEnded:this.handleEnded,onTimeUpdate:this.handleTimeUpdate,onError:this.handleError,onDurationChange:this.handleDurationChange,onProgress:this.handleProgress,onLoadedMetaData:this.handleLoadedMetaData},m),"暂时不支持播放该视频"),h("taro-video-danmu",{ref:function(t){if(t){e.danmuRef=t}},enable:f}),l&&d&&!g&&h("div",{class:"taro-video-cover"},h("div",{class:"taro-video-cover-play-button",onClick:function(){return e.play()}}),h("p",{class:"taro-video-cover-duration"},y)),h("taro-video-control",{ref:function(t){if(t){e.controlsRef=t}},controls:i,currentTime:this.currentTime,duration:b,isPlaying:this.isPlaying,pauseFunc:this._pause,playFunc:this._play,seekFunc:this._seek,showPlayBtn:this.showPlayBtn,showProgress:this.showProgress},A&&h("div",{class:classnames("taro-video-mute",{"taro-video-type-mute":u}),onClick:this.toggleMute}),p&&h("div",{class:classnames("taro-video-danmu-button",{"taro-video-danmu-button-active":f}),onClick:this.toggleDanmu},"弹幕"),v&&h("div",{class:classnames("taro-video-fullscreen",{"taro-video-type-fullscreen":c}),onClick:this.onClickFullScreenBtn})),h("div",{class:"taro-video-toast taro-video-toast-volume",ref:function(t){if(t){e.toastVolumeRef=t}}},h("div",{class:"taro-video-toast-title"},"音量"),h("div",{class:"taro-video-toast-icon"}),h("div",{class:"taro-video-toast-value"},h("div",{class:"taro-video-toast-value-content",ref:function(t){if(t){e.toastVolumeBarRef=t}}},h("div",{class:"taro-video-toast-volume-grids"},Array(10).fill(1).map((function(){return h("div",{class:"taro-video-toast-volume-grids-item"})})))))),h("div",{class:"taro-video-toast taro-video-toast-progress",ref:function(t){if(t){e.toastProgressRef=t}}},h("div",{class:"taro-video-toast-title",ref:function(t){if(t){e.toastProgressTitleRef=t}}})))};Object.defineProperty(e.prototype,"el",{get:function(){return getElement(this)},enumerable:false,configurable:true});Object.defineProperty(e,"watchers",{get:function(){return{enableDanmu:["watchEnableDanmu"],src:["watchSrc"]}},enumerable:false,configurable:true});return e}();Video.style=indexCss;var VideoDanmu=function(){function e(e){registerInstance(this,e);this.list=[];this.danmuElList=[];this.currentTime=0;this.enable=false;this.danmuList=[]}e.prototype.ensureProperties=function(e){var t=Object.assign({},e);if(!("time"in e)){t.time=this.currentTime}t.key=Math.random();t.bottom="".concat(Math.random()*90+5,"%");return t};e.prototype.sendDanmu=function(e){if(e===void 0){e=[]}return __awaiter(this,void 0,void 0,(function(){var t;var i=this;return __generator(this,(function(o){if(Array.isArray(e)){this.list=__spreadArray(__spreadArray([],this.list,true),e.map((function(e){return i.ensureProperties(e)})),true)}else{t=e;this.list=__spreadArray(__spreadArray([],this.list,true),[Object.assign({},this.ensureProperties(t))],false)}return[2]}))}))};e.prototype.tick=function(e){return __awaiter(this,void 0,void 0,(function(){var t,i,o,r;return __generator(this,(function(n){this.currentTime=e;if(!this.enable)return[2];t=this.list;i=t.filter((function(t){var i=t.time;return e-i<4&&e>i}));o=false;r=this.danmuList;if(i.length!==r.length){o=true}else{o=i.some((function(e){var t=e.key;return r.every((function(e){return t!==e.key}))}))}if(o){this.danmuList=i}return[2]}))}))};e.prototype.componentDidUpdate=function(){var e=this;requestAnimationFrame((function(){setTimeout((function(){var t=e.danmuElList.splice(0);t.forEach((function(e){e.style.left="0";e.style.webkitTransform="translateX(-100%)";e.style.transform="translateX(-100%)"}))}))}))};e.prototype.render=function(){var e=this;if(!this.enable)return"";return h(Host,{class:"taro-video-danmu"},this.danmuList.map((function(t){var i=t.text,o=t.color,r=t.bottom,n=t.key;return h("p",{class:"taro-video-danmu-item",key:n,style:{color:o,bottom:r},ref:function(t){if(t){e.danmuElList.push(t)}}},i)})))};return e}();export{VideoControl as taro_video_control,Video as taro_video_core,VideoDanmu as taro_video_danmu};
|
|
1
|
+
import{__awaiter,__generator,__spreadArray}from"tslib";import{r as registerInstance,h,H as Host,g as getElement,c as createEvent}from"./index-ab3c86da.js";import{c as classnames}from"./index-c3e4004b.js";import{t as throttle}from"./index-a00a7418.js";var formatTime=function(e){if(!e)return"";var t=Math.round(e%60);var i=Math.round((e-t)/60);return"".concat(i<10?"0".concat(i):i,":").concat(t<10?"0".concat(t):t)};var calcDist=function(e,t){return Math.sqrt(Math.pow(e,2)+Math.pow(t,2))};var normalizeNumber=function(e){return Math.max(-1,Math.min(e,1))};var scene="default";var screenFn=function(){var e;var t=[["requestFullscreen","exitFullscreen","fullscreenElement","fullscreenEnabled","fullscreenchange","fullscreenerror"],["webkitRequestFullscreen","webkitExitFullscreen","webkitFullscreenElement","webkitFullscreenEnabled","webkitfullscreenchange","webkitfullscreenerror"],["webkitRequestFullScreen","webkitCancelFullScreen","webkitCurrentFullScreenElement","webkitCancelFullScreen","webkitfullscreenchange","webkitfullscreenerror"],["mozRequestFullScreen","mozCancelFullScreen","mozFullScreenElement","mozFullScreenEnabled","mozfullscreenchange","mozfullscreenerror"],["msRequestFullscreen","msExitFullscreen","msFullscreenElement","msFullscreenEnabled","MSFullscreenChange","MSFullscreenError"]];var i=["webkitEnterFullscreen","webkitExitFullscreen","webkitCurrentFullScreenElement","webkitSupportsFullscreen","fullscreenchange","fullscreenerror"];var o=0;var r=t.length;var n={};for(;o<r;o++){e=t[o];if(e&&e[1]in document){for(o=0;o<e.length;o++){n[t[0][o]]=e[o]}return n}}if(!n[t[0][0]]){scene="iOS";for(o=0;o<i.length;o++){n[t[0][o]]=i[o]}}return n}();var isHls=function(e){return/\.(m3u8)($|\?)/i.test(e)};var VideoControl=function(){function e(e){var t=this;registerInstance(this,e);this.visible=false;this.isDraggingProgressBall=false;this.percentage=0;this.progressDimensions={left:0,width:0};this.calcPercentage=function(e){var i=e-t.progressDimensions.left;i=Math.max(i,0);i=Math.min(i,t.progressDimensions.width);return i/t.progressDimensions.width};this.onDragProgressBallStart=function(){t.isDraggingProgressBall=true;t.hideControlsTimer&&clearTimeout(t.hideControlsTimer)};this.onClickProgress=function(e){e.stopPropagation();var i=t.calcPercentage(e.pageX);t.seekFunc(i*t.duration);t.toggleVisibility(true)};this.controls=undefined;this.currentTime=undefined;this.duration=undefined;this.isPlaying=undefined;this.pauseFunc=undefined;this.playFunc=undefined;this.seekFunc=undefined;this.showPlayBtn=undefined;this.showProgress=undefined}e.prototype.onDocumentTouchMove=function(e){if(!this.isDraggingProgressBall)return;var t=e.touches[0].pageX;this.percentage=this.calcPercentage(t);this.setProgressBall(this.percentage);this.setCurrentTime(this.percentage*this.duration)};e.prototype.onDocumentTouchEnd=function(){if(!this.isDraggingProgressBall)return;this.isDraggingProgressBall=false;this.seekFunc(this.percentage*this.duration);this.toggleVisibility(true)};e.prototype.setProgressBall=function(e){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){if(this.progressBallRef){this.progressBallRef.style.left="".concat(e*100,"%")}return[2]}))}))};e.prototype.toggleVisibility=function(e){return __awaiter(this,void 0,void 0,(function(){var t;var i=this;return __generator(this,(function(o){t=e===undefined?!this.visible:e;if(t){this.hideControlsTimer&&clearTimeout(this.hideControlsTimer);if(this.isPlaying){this.hideControlsTimer=setTimeout((function(){i.toggleVisibility(false)}),2e3)}this.el.style.visibility="visible"}else{this.el.style.visibility="hidden"}this.visible=!!t;return[2]}))}))};e.prototype.getIsDraggingProgressBall=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){return[2,this.isDraggingProgressBall]}))}))};e.prototype.setCurrentTime=function(e){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){this.currentTimeRef.innerHTML=formatTime(e);return[2]}))}))};e.prototype.render=function(){var e=this;var t=this,i=t.controls,o=t.currentTime,r=t.duration,n=t.isPlaying,s=t.pauseFunc,a=t.playFunc,l=t.showPlayBtn,u=t.showProgress;var c=formatTime(r);var d;if(!l){d=null}else if(n){d=h("div",{class:"taro-video-control-button taro-video-control-button-pause",onClick:s})}else{d=h("div",{class:"taro-video-control-button taro-video-control-button-play",onClick:a})}return h(Host,{class:"taro-video-bar taro-video-bar-full"},i&&h("div",{class:"taro-video-controls"},d,u&&h("div",{class:"taro-video-current-time",ref:function(t){return e.currentTimeRef=t}},formatTime(o)),u&&h("div",{class:"taro-video-progress-container",onClick:this.onClickProgress},h("div",{class:"taro-video-progress",ref:function(t){if(!t)return;var i=t.getBoundingClientRect();e.progressDimensions.left=i.left;e.progressDimensions.width=i.width}},h("div",{class:"taro-video-progress-buffered",style:{width:"100%"}}),h("div",{class:"taro-video-ball",ref:function(t){return e.progressBallRef=t},onTouchStart:this.onDragProgressBallStart,style:{left:"".concat(c?this.currentTime/r*100:0,"%")}},h("div",{class:"taro-video-inner"})))),u&&h("div",{class:"taro-video-duration"},c)),h("slot",null))};Object.defineProperty(e.prototype,"el",{get:function(){return getElement(this)},enumerable:false,configurable:true});return e}();var indexCss='.taro-video{width:100%;height:225px;line-height:0;display:inline-block;position:relative;overflow:hidden}.taro-video[hidden]{display:none}.taro-video-container{-o-object-position:inherit;object-position:inherit;background-color:#000;width:100%;height:100%;display:inline-block;position:absolute;top:0;left:0}.taro-video-container.taro-video-type-fullscreen{z-index:999;position:fixed;inset:0}.taro-video-container.taro-video-type-fullscreen.taro-video-type-rotate-left{-webkit-transform:translate(-50%,-50%)rotate(-90deg);transform:translate(-50%,-50%)rotate(-90deg)}.taro-video-container.taro-video-type-fullscreen.taro-video-type-rotate-right{-webkit-transform:translate(-50%,-50%)rotate(90deg);transform:translate(-50%,-50%)rotate(90deg)}.taro-video-video{-o-object-position:inherit;object-position:inherit;width:100%;height:100%;display:block}.taro-video-cover{z-index:1;background-color:rgba(1,1,1,.5);-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;-webkit-box-align:center;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center;width:100%;display:-ms-flexbox;display:flex;position:absolute;top:0;bottom:0;left:0}.taro-video-cover-play-button{background-position:50%;background-repeat:no-repeat;background-size:50%;width:40px;height:40px}.taro-video-cover-duration{color:#fff;margin-top:10px;font-size:16px;line-height:1}.taro-video-bar{visibility:hidden;z-index:1;background-color:rgba(0,0,0,.5);-webkit-box-align:center;-ms-flex-align:center;align-items:center;height:44px;padding:0 10px;display:-ms-flexbox;display:flex;position:absolute;bottom:0;right:0;overflow:hidden}.taro-video-bar.taro-video-bar-full{left:0}.taro-video-controls{-webkit-box-flex:1;-ms-flex-positive:1;flex-grow:1;margin:0 8.5px;display:-ms-flexbox;display:flex}.taro-video-control-button{-webkit-box-sizing:content-box;box-sizing:content-box;width:13px;height:15px;margin-left:-8.5px;padding:14.5px 12.5px}.taro-video-control-button:after{content:"";background-position:50%;background-repeat:no-repeat;background-size:100%;width:100%;height:100%;display:block}.taro-video-control-button.taro-video-control-button-play:after,.taro-video-cover-play-button{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABoAAAAeCAYAAAAy2w7YAAAAAXNSR0IArs4c6QAAAWhJREFUSA1j+P///0cgBoHjQGzCQCsAtgJB/AMy5wCxGNXtQ9iBwvoA5BUCMQvVLEQxHpNzDSjkRhXLMM3GKrIeKKpEkYVYjcUu+AMo3ALE3GRZiN1MvKKPgbIRJFuG10j8koeA0gZEW4jfLIKyf4EqpgOxMEELCRpFnIJ3QGU5QMyM00LizCFa1SWgSkeslhFtBGkKVwGVy6FYSJp+klR/A6quB2JOkIWMIK0oNlOf8xBoZDE9LAI7nYn6HsBq4l96WHQEaLUpAyiOaASeAM2NgvuPBpaACt82IEYtfKls0UagecpwXyAzqGTRdaA57sjmYrAptAjUsCkGYlYMg9EFyLQI1IiZB8Ti6Obh5JNh0QmgHlOcBuKSIMGi50C18UDMiMssvOJEWPQLqKYbiHnxGkRIkoBF24DyaoTMIEoeh0W3geI+RBlArCI0iz4D+RVAzEasfqLVAQ19AcSg5LoYiKWI1kiiQgCMBLnEEcfDSgAAAABJRU5ErkJggg==)}.taro-video-control-button.taro-video-control-button-pause:after{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABIAAAAgCAYAAAAffCjxAAAAAXNSR0IArs4c6QAAAFlJREFUSA3tksEKACAIQ7X//5zq98wOgQayum8QaGweHhMzG/6OujzKAymn+0LMqivu1XznWmX8/echTIyMyAgTwA72iIwwAexgj8gIE8CO3aMRbDPMaEy5BRGaKcZv8YxRAAAAAElFTkSuQmCC)}.taro-video-current-time,.taro-video-duration{color:#cbcbcb;height:14.5px;margin-top:15px;margin-bottom:14.5px;font-size:12px;line-height:14.5px}.taro-video-progress-container{-webkit-box-flex:2;-ms-flex-positive:2;flex-grow:2;position:relative}.taro-video-progress{background-color:rgba(255,255,255,.4);height:2px;margin:21px 12px;position:relative}.taro-video-progress-buffered{background-color:rgba(255,255,255,.8);width:0;height:100%;-webkit-transition:width .1s;transition:width .1s;position:absolute;top:0;left:0}.taro-video-ball{-webkit-box-sizing:content-box;box-sizing:content-box;width:16px;height:16px;margin-left:-22px;padding:14px;position:absolute;top:-21px;left:0}.taro-video-inner{background-color:#fff;border-radius:50%;width:100%;height:100%}.taro-video-danmu-button{color:#fff;white-space:nowrap;border:1px solid #fff;border-radius:5px;margin:0 8.5px;padding:2px 10px;font-size:13px;line-height:1}.taro-video-danmu-button.taro-video-danmu-button-active{color:#48c23d;border-color:#48c23d}.taro-video-fullscreen,.taro-video-mute{-webkit-box-sizing:content-box;box-sizing:content-box;background-position:50%;background-repeat:no-repeat;background-size:50%;width:17px;height:17px;padding:8.5px}.taro-video-fullscreen{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAhUlEQVRYR+2WSwrAMAhEnZO3PfmULLooGEFTiIXJ2s/kRY2wzQeb85sE9CRA8jSzY1YfAFzhJBnU1AVgxH2dSiArCnD9QgGzRNnOech48SRABHoSyFb5in3PSbhyo6yvCPQkEM3u7BsPe/0FIvBfAh/vhKmVbO9SWun1qk/PSVi9TcVPBG6R1YIhgWwNpQAAAABJRU5ErkJggg==)}.taro-video-fullscreen.taro-video-type-fullscreen{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAABPUlEQVRYR+2Xu0pDURBF1/ZLxNcHKNiIlfhA7C0UBSEE8RNEBNFPUEQEEbGxFiSSSrCwEHsf5E/ccsSUuWfUhKQ40947+y42Z8+ZK/pcinzf9hhwD1xJ2q/qsb0JHAOzkl5y+lGAGnCWICQtZgAS6DxQk3TeLYA6cAo0JSXxjmW7CcwBdUkJurKiDhSA4kBvHbA9CqwBQx2O7BSw8ssU3ALPFRF4knT3nQLbr8B4LjLBOdAAFgJaLUkjbYC9n+zm+i4kXWbmwCqwnRMCHiXthuZAQOzPrxSA4kBxYDAcsH0EzATCfCLpJjOINoCtgFZabg7bk7AFDAeaGpKWgitZTu5N0kQbYBmYrujo9mX0CVxL+gidAdu9vY5zXhWA4sAgOND3X7NJ4AHYCaxkB8B62gslvecSFpoDOZH/PP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yeT4gPC9yZGY6RGVzY3JpcHRpb24+IDwvcmRmOlJERj4gPC94OnhtcG1ldGE+IDw/eHBhY2tldCBlbmQ9InIiPz459+FoAAABqElEQVRYhc2XPWsVQRSGnxPjF4oGRfxoRQKGWCU2Ft7CykrQWosEyf/If0hhIPgHDEmbNJZqCFxiQEgTUGxsBUVEHgvnyrjZZJO92V1fGIaZnTPvszPszNlQ6VIjnbr/DwCoDLMNak/dUVfUK0f2rQugnlcX/FevWgFQH6gf3autRgHUC+piiXHzAOmtPx9gXgug8itQx9SXwDpw47AGKXZWvXvQmNFCwE3gCXA2dY0Az4GrRzHONA9cU/vAbERsllEOyh31e8USV2mrMPdG9uyn+rDom2/BHHCm5puWKiKmgdtAnz+rvaxO5mNygEvHaZ5BfADuARvAaWBpP4DGFBHfgBngFzClTrUKkCDeA+9S837rAEnbqb7VFcCpVJ/oCmCw959aB1AfAROpudYqgDoOLKRmPyLelAF8bcD4pPoMeAtcB34AT4uDBqXXwFG8XXUU/72MIuK1OgE8Bs6l7mEvo8up7lN1Ge0n9aK6VHMFZvJTr9S3CiALaCQhqZOSvegMIAvu2UVSWpigLC1fbQ0gm6in7qpfLCQbhwGIYcyPQ53/G3YO8BtUtd35bvKcVwAAAABJRU5ErkJggg==)}.taro-video-mute.taro-video-type-mute{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACIAAAAgCAYAAAB3j6rJAAAACXBIWXMAAAsTAAALEwEAmpwYAAAGAGlUWHRYTUw6Y29tLmFkb2JlLnhtcAAAAAAAPD94cGFja2V0IGJlZ2luPSLvu78iIGlkPSJXNU0wTXBDZWhpSHpyZVN6TlRjemtjOWQiPz4gPHg6eG1wbWV0YSB4bWxuczp4PSJhZG9iZTpuczptZXRhLyIgeDp4bXB0az0iQWRvYmUgWE1QIENvcmUgNS42LWMxNDAgNzkuMTYwNDUxLCAyMDE3LzA1LzA2LTAxOjA4OjIxICAgICAgICAiPiA8cmRmOlJERiB4bWxuczpyZGY9Imh0d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3EgDqb/L7kU3MH2NHtl3dQX3r3Ak21UYAYAj4A/cl0JB+RF+uMRj4iQ+p8zt7KYFLdXKHuRi0gacBhV6a6pd5bA6KRNagFJPU9qv5u47toLmW1HnoR8Q5oAK1CVQu4FBHj/wUkaXsb+4pzpVaQFPqXrN7Be4Fx9VztIOr1BLEtmX4A94E/qdwHTKjDWYM6lu81dSlnn3V570BtuLxaMs2rZ/IgYxsBovaoPwsQA4VoFWEm8ql5DiysNyURsQTMpOIMcDYiPhd8xoGr/FtNC2G6FKXD6ihwGdiVHMoeeh8jYlA9ANwE3kTEp3bO6vE03qOONzR1r/q4RGrquaFFxFxE3ALOA9+6jExpdb180y55AhirhaRTatq0GXEzL8+ZIuI9cBJ4WKiartJf9nWV/mty7UfUafW7erpqRGI9EBuprffvu9n6C1KOmsqwI5A1AAAAAElFTkSuQmCC)}.taro-video-danmu{width:100%;margin-top:14px;margin-bottom:44px;font-size:14px;line-height:14px;position:absolute;top:0;bottom:0;left:0;overflow:visible}.taro-video-danmu-item{color:#fff;white-space:nowrap;line-height:1;-webkit-transition-property:left,-webkit-transform;transition-property:left,-webkit-transform;transition-property:left,transform;transition-property:left,transform,-webkit-transform;-webkit-transition-duration:3s;transition-duration:3s;-webkit-transition-timing-function:linear;transition-timing-function:linear;position:absolute;left:100%;-webkit-transform:translate(0);transform:translate(0)}.taro-video-toast{visibility:hidden;pointer-events:none;color:#000;background-color:rgba(255,255,255,.8);border-radius:5px;display:block;position:absolute;top:50%;left:50%;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%)}.taro-video-toast.taro-video-toast-volume{width:100px;height:100px;display:block}.taro-video-toast-volume .taro-video-toast-title{text-align:center;width:100%;margin-top:10px;font-size:12px;line-height:16px;display:block}.taro-video-toast-volume .taro-video-toast-icon{fill:#000;background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeAAAFhklEQVR4Xu2aeaxfQxTHP1VBES0NIQitWtpaaxeCUk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AL8ahAgT1AeYVreSKLLphGwF/CuAfLJQLldGSTFD75c5d4mNCoWyAqG9gYWGED1AOMKo12ZbiWA/idA++deY2DVTZ0Jh5UJPsFQtD/wDaAHGWl5EzgwaUi2gK4UXS11S0cTIjrMFBtYQdAk4DID0BnAAz4B6wNLgTKKG0VIDBHwqitwpOcW+OOB540FdeipNKbUWFrUtn06o5xOij4KyDuqU0IE3Obl/rLA63pTzm9XA8jKACjdniZAaSKFmUpB1yUhAlTsUEpMh913wEkuTe7rKTzPAHqO44vpKPkFhH3cWWBVV6ogJVYZUgz/tXtIYelzI3Ct0fExIGx6j7iKWBUUveyYBehv1RIjIEsfqziq8Xp4pSBJOYTVJFQcVY3wCFeKUjVGyYfQWB00+5bEVBECrNS+qsOKBpVHNCVWHs+LS7H5PV5pOu9v0+OKEOAXR39w1e1C7wM6AkJ1eLmkRcrpRQiQrqobXO5S3vL3/4kBKMsCknV0k+iasVLUMV3UX5SAPGtED8EOT+L9YENnCasUIXNO2goChFWHqAIRyxXN4qI1BCQg9dJESYq8LnbrCBAR8t50Lig6i0krCRBoVWhVlt45wkBrCRBuRZyPuAguxIPe9lXqhpd9DcZMXOvdkPF0Xu/8dohNUmZ/1QQkuitXr+d4fryuFx3jywQYm6suAqSX8vLTXKJDt4QqO6rtLYspXWZ/nQQkOJTAUJZGIav19q9MvKvN1RUIWKMAY5P3EBBjqO393d4C/gMVHwRQlpx21QAAAABJRU5ErkJggg==);background-position:50%;background-repeat:no-repeat;background-size:50%;width:50%;height:50%;margin-left:25%;display:block}.taro-video-toast-volume .taro-video-toast-value{width:80px;height:5px;margin-top:5px;margin-left:10px}.taro-video-toast-volume .taro-video-toast-value>.taro-video-toast-value-content{overflow:hidden}.taro-video-toast-volume-grids{width:80px;height:5px}.taro-video-toast-volume-grids-item{float:left;background-color:#000;width:7.1px;height:5px}.taro-video-toast-volume-grids-item:not(:first-child){margin-left:1px}.taro-video-toast.taro-video-toast-progress{color:#fff;background-color:rgba(0,0,0,.8);padding:6px;font-size:14px;line-height:18px}';var Video=function(){function e(e){var t=this;registerInstance(this,e);this.onPlay=createEvent(this,"play",7);this.onPause=createEvent(this,"pause",7);this.onEnded=createEvent(this,"ended",7);this.onTimeUpdate=createEvent(this,"timeupdate",7);this.onError=createEvent(this,"error",7);this.onFullScreenChange=createEvent(this,"fullscreenchange",7);this.onProgress=createEvent(this,"progress",7);this.onLoadedMetaData=createEvent(this,"loadedmetadata",7);this.currentTime=0;this.isDraggingProgress=false;this.gestureType="none";this.analyzeGesture=function(e){var i;var o={type:"none"};var r=e.touches[0].screenX;var n=e.touches[0].screenY;var s=r-t.lastTouchScreenX;var a=n-t.lastTouchScreenY;var l=t.isFullScreen?t.vslideGestureInFullscreen:t.vslideGesture;if(t.gestureType==="none"){var u=calcDist(s,a);if(u<10)return o;if(Math.abs(a)>=Math.abs(s)){if(l){t.gestureType="adjustVolume";t.lastVolume=t.videoRef.volume}else{return o}}else if(Math.abs(a)<Math.abs(s)){if(t.enableProgressGesture){t.gestureType="adjustProgress";t.lastPercentage=t.currentTime/((i=t.duration)!==null&&i!==void 0?i:t._duration)}else{return o}}}o.type=t.gestureType;o.dataX=normalizeNumber(s/200);o.dataY=normalizeNumber(a/200);return o};this.loadNativePlayer=function(){var e,i;if(t.videoRef){t.videoRef.src=t.src;(i=(e=t.videoRef).load)===null||i===void 0?void 0:i.call(e)}};this.init=function(){var e=t,i=e.src,o=e.videoRef;if(isHls(i)){import("hls.js").then((function(e){var r=e.default;t.HLS=r;if(r.isSupported()){if(t.hls){t.hls.destroy()}t.hls=new r;t.hls.loadSource(i);t.hls.attachMedia(o);t.hls.on(r.Events.MANIFEST_PARSED,(function(){t.autoplay&&t.play()}));t.hls.on(r.Events.ERROR,(function(e,i){t.handleError(i)}))}else if(o.canPlayType("application/vnd.apple.mpegurl")){t.loadNativePlayer()}else{console.error("该浏览器不支持 HLS 播放")}}))}else{t.loadNativePlayer()}};this.handlePlay=function(){t.isPlaying=true;t.isFirst=false;t.controlsRef.toggleVisibility(true);t.onPlay.emit()};this.handlePause=function(){t.isPlaying=false;t.controlsRef.toggleVisibility(true);t.onPause.emit()};this.handleEnded=function(){t.isFirst=true;t.pause();t.controlsRef.toggleVisibility();t.onEnded.emit()};this.handleTimeUpdate=throttle((function(e){return __awaiter(t,void 0,void 0,(function(){var t,i,o,r;return __generator(this,(function(n){switch(n.label){case 0:this.currentTime=this.videoRef.currentTime;o=this.duration||this._duration;return[4,this.controlsRef.getIsDraggingProgressBall()];case 1:r=n.sent();if(this.controls&&this.showProgress){if(!r&&!this.isDraggingProgress){this.controlsRef.setProgressBall(this.currentTime/o);this.controlsRef.setCurrentTime(this.currentTime)}}this.danmuRef.tick(this.currentTime);this.onTimeUpdate.emit({duration:(t=e.target)===null||t===void 0?void 0:t.duration,currentTime:(i=e.target)===null||i===void 0?void 0:i.currentTime});if(this.duration){if(this.currentTime>=this.duration){this.seek(0);this.handleEnded()}}return[2]}}))}))}),250);this.handleError=function(e){var i,o;if(t.hls){switch(e.type){case t.HLS.ErrorTypes.NETWORK_ERROR:t.onError.emit({errMsg:e.response});t.hls.startLoad();break;case t.HLS.ErrorTypes.MEDIA_ERROR:t.onError.emit({errMsg:e.reason||"媒体错误,请重试"});t.hls.recoverMediaError();break}}else{t.onError.emit({errMsg:(o=(i=e.target)===null||i===void 0?void 0:i.error)===null||o===void 0?void 0:o.message})}};this.handleDurationChange=function(){t._duration=t.videoRef.duration};this.handleProgress=function(){t.onProgress.emit()};this.handleLoadedMetaData=function(e){var i=e.target;t.onLoadedMetaData.emit({width:i.videoWidth,height:i.videoHeight,duration:i.duration})};this._play=function(){return t.videoRef.play()};this._pause=function(){return t.videoRef.pause()};this._stop=function(){t.videoRef.pause();t._seek(0)};this._seek=function(e){t.videoRef.currentTime=e};this.onTouchStartContainer=function(e){t.lastTouchScreenX=e.touches[0].screenX;t.lastTouchScreenY=e.touches[0].screenY};this.onClickContainer=function(){if(t.enablePlayGesture){var e=Date.now();if(e-t.lastClickedTime<300){t.isPlaying?t.pause():t.play()}t.lastClickedTime=e}t.controlsRef.toggleVisibility()};this.onClickFullScreenBtn=function(e){e.stopPropagation();t.toggleFullScreen()};this.handleFullScreenChange=function(e){var i=(new Date).getTime();if(!e.detail&&t.isFullScreen&&!document[screenFn.fullscreenElement]&&i-t.fullScreenTimestamp>100){t.toggleFullScreen(false,true)}};this.toggleFullScreen=function(e,i){if(e===void 0){e=!t.isFullScreen}if(i===void 0){i=false}t.isFullScreen=e;t.controlsRef.toggleVisibility(true);t.fullScreenTimestamp=(new Date).getTime();t.onFullScreenChange.emit({fullScreen:t.isFullScreen,direction:"vertical"});if(t.isFullScreen&&!document[screenFn.fullscreenElement]){setTimeout((function(){t.videoRef[screenFn.requestFullscreen]({navigationUI:"auto"})}),0)}else if(!i){document[screenFn.exitFullscreen]()}};this.toggleMute=function(e){e.stopPropagation();t.videoRef.muted=!t.isMute;t.controlsRef.toggleVisibility(true);t.isMute=!t.isMute};this.toggleDanmu=function(e){e.stopPropagation();t.controlsRef.toggleVisibility(true);t._enableDanmu=!t._enableDanmu};this.src=undefined;this.duration=undefined;this.controls=true;this.autoplay=false;this.loop=false;this.muted=false;this.initialTime=0;this.poster=undefined;this.objectFit="contain";this.showProgress=true;this.showFullscreenBtn=true;this.showPlayBtn=true;this.showCenterPlayBtn=true;this.showMuteBtn=false;this.danmuList=undefined;this.danmuBtn=false;this.enableDanmu=false;this.enablePlayGesture=false;this.enableProgressGesture=true;this.vslideGesture=false;this.vslideGestureInFullscreen=true;this.nativeProps={};this._duration=undefined;this._enableDanmu=false;this.isPlaying=false;this.isFirst=true;this.isFullScreen=false;this.fullScreenTimestamp=(new Date).getTime();this.isMute=false}e.prototype.componentWillLoad=function(){this._enableDanmu=this.enableDanmu};e.prototype.componentDidLoad=function(){var e,t;this.init();if(this.initialTime){this.videoRef.currentTime=this.initialTime}(t=(e=this.danmuRef).sendDanmu)===null||t===void 0?void 0:t.call(e,this.danmuList);if(document.addEventListener){document.addEventListener(screenFn.fullscreenchange,this.handleFullScreenChange)}if(this.videoRef&&scene==="iOS"){this.videoRef.addEventListener("webkitendfullscreen",this.handleFullScreenChange)}};e.prototype.componentDidRender=function(){};e.prototype.disconnectedCallback=function(){if(document.removeEventListener){document.removeEventListener(screenFn.fullscreenchange,this.handleFullScreenChange)}if(this.videoRef&&scene==="iOS"){this.videoRef.removeEventListener("webkitendfullscreen",this.handleFullScreenChange)}};e.prototype.watchEnableDanmu=function(e){this._enableDanmu=e};e.prototype.watchSrc=function(){this.init()};e.prototype.onDocumentTouchMove=function(e){return __awaiter(this,void 0,void 0,(function(){var t,i,o;return __generator(this,(function(r){switch(r.label){case 0:if(this.lastTouchScreenX===undefined||this.lastTouchScreenY===undefined)return[2];return[4,this.controlsRef.getIsDraggingProgressBall()];case 1:if(r.sent())return[2];t=this.analyzeGesture(e);if(t.type==="adjustVolume"){this.toastVolumeRef.style.visibility="visible";i=Math.max(Math.min(this.lastVolume-t.dataY,1),0);this.videoRef.volume=i;this.toastVolumeBarRef.style.width="".concat(i*100,"%")}else if(t.type==="adjustProgress"){this.isDraggingProgress=true;this.nextPercentage=Math.max(Math.min(this.lastPercentage+(t.dataX||0),1),0);if(this.controls&&this.showProgress){this.controlsRef.setProgressBall(this.nextPercentage);this.controlsRef.toggleVisibility(true)}o=this.duration||this._duration;this.toastProgressTitleRef.innerHTML="".concat(formatTime(this.nextPercentage*o)," / ").concat(formatTime(o));this.toastProgressRef.style.visibility="visible"}return[2]}}))}))};e.prototype.onDocumentTouchEnd=function(){var e;if(this.gestureType==="adjustVolume"){this.toastVolumeRef.style.visibility="hidden"}else if(this.gestureType==="adjustProgress"){this.toastProgressRef.style.visibility="hidden"}if(this.isDraggingProgress){this.isDraggingProgress=false;this.seek(this.nextPercentage*((e=this.duration)!==null&&e!==void 0?e:this._duration))}this.gestureType="none";this.lastTouchScreenX=undefined;this.lastTouchScreenY=undefined};e.prototype.getHlsObject=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){return[2,this.hls]}))}))};e.prototype.play=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){this._play();return[2]}))}))};e.prototype.pause=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){this._pause();return[2]}))}))};e.prototype.stop=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){this._stop();return[2]}))}))};e.prototype.seek=function(e){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){this._seek(e);return[2]}))}))};e.prototype.requestFullScreen=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){this.toggleFullScreen(true);return[2]}))}))};e.prototype.exitFullScreen=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){this.toggleFullScreen(false);return[2]}))}))};e.prototype.render=function(){var e=this;var t=this,i=t.controls,o=t.autoplay,r=t.loop,n=t.muted,s=t.poster,a=t.objectFit,l=t.isFirst,u=t.isMute,c=t.isFullScreen,d=t.showCenterPlayBtn,g=t.isPlaying,f=t._enableDanmu,A=t.showMuteBtn,p=t.danmuBtn,v=t.showFullscreenBtn,m=t.nativeProps;var b=this.duration||this._duration;var y=formatTime(b);return h(Host,{class:classnames("taro-video-container",{"taro-video-type-fullscreen":c}),onTouchStart:this.onTouchStartContainer,onClick:this.onClickContainer},h("video",Object.assign({class:"taro-video-video",style:{"object-fit":a},ref:function(t){if(t){e.videoRef=t}},autoplay:o,loop:r,muted:n,poster:i?s:undefined,playsinline:true,"webkit-playsinline":true,onPlay:this.handlePlay,onPause:this.handlePause,onEnded:this.handleEnded,onTimeUpdate:this.handleTimeUpdate,onError:this.handleError,onDurationChange:this.handleDurationChange,onProgress:this.handleProgress,onLoadedMetaData:this.handleLoadedMetaData},m),"暂时不支持播放该视频"),h("taro-video-danmu",{ref:function(t){if(t){e.danmuRef=t}},enable:f}),l&&d&&!g&&h("div",{class:"taro-video-cover"},h("div",{class:"taro-video-cover-play-button",onClick:function(){return e.play()}}),h("p",{class:"taro-video-cover-duration"},y)),h("taro-video-control",{ref:function(t){if(t){e.controlsRef=t}},controls:i,currentTime:this.currentTime,duration:b,isPlaying:this.isPlaying,pauseFunc:this._pause,playFunc:this._play,seekFunc:this._seek,showPlayBtn:this.showPlayBtn,showProgress:this.showProgress},A&&h("div",{class:classnames("taro-video-mute",{"taro-video-type-mute":u}),onClick:this.toggleMute}),p&&h("div",{class:classnames("taro-video-danmu-button",{"taro-video-danmu-button-active":f}),onClick:this.toggleDanmu},"弹幕"),v&&h("div",{class:classnames("taro-video-fullscreen",{"taro-video-type-fullscreen":c}),onClick:this.onClickFullScreenBtn})),h("div",{class:"taro-video-toast taro-video-toast-volume",ref:function(t){if(t){e.toastVolumeRef=t}}},h("div",{class:"taro-video-toast-title"},"音量"),h("div",{class:"taro-video-toast-icon"}),h("div",{class:"taro-video-toast-value"},h("div",{class:"taro-video-toast-value-content",ref:function(t){if(t){e.toastVolumeBarRef=t}}},h("div",{class:"taro-video-toast-volume-grids"},Array(10).fill(1).map((function(){return h("div",{class:"taro-video-toast-volume-grids-item"})})))))),h("div",{class:"taro-video-toast taro-video-toast-progress",ref:function(t){if(t){e.toastProgressRef=t}}},h("div",{class:"taro-video-toast-title",ref:function(t){if(t){e.toastProgressTitleRef=t}}})))};Object.defineProperty(e.prototype,"el",{get:function(){return getElement(this)},enumerable:false,configurable:true});Object.defineProperty(e,"watchers",{get:function(){return{enableDanmu:["watchEnableDanmu"],src:["watchSrc"]}},enumerable:false,configurable:true});return e}();Video.style=indexCss;var VideoDanmu=function(){function e(e){registerInstance(this,e);this.list=[];this.danmuElList=[];this.currentTime=0;this.enable=false;this.danmuList=[]}e.prototype.ensureProperties=function(e){var t=Object.assign({},e);if(!("time"in e)){t.time=this.currentTime}t.key=Math.random();t.bottom="".concat(Math.random()*90+5,"%");return t};e.prototype.sendDanmu=function(e){if(e===void 0){e=[]}return __awaiter(this,void 0,void 0,(function(){var t;var i=this;return __generator(this,(function(o){if(Array.isArray(e)){this.list=__spreadArray(__spreadArray([],this.list,true),e.map((function(e){return i.ensureProperties(e)})),true)}else{t=e;this.list=__spreadArray(__spreadArray([],this.list,true),[Object.assign({},this.ensureProperties(t))],false)}return[2]}))}))};e.prototype.tick=function(e){return __awaiter(this,void 0,void 0,(function(){var t,i,o,r;return __generator(this,(function(n){this.currentTime=e;if(!this.enable)return[2];t=this.list;i=t.filter((function(t){var i=t.time;return e-i<4&&e>i}));o=false;r=this.danmuList;if(i.length!==r.length){o=true}else{o=i.some((function(e){var t=e.key;return r.every((function(e){return t!==e.key}))}))}if(o){this.danmuList=i}return[2]}))}))};e.prototype.componentDidUpdate=function(){var e=this;requestAnimationFrame((function(){setTimeout((function(){var t=e.danmuElList.splice(0);t.forEach((function(e){e.style.left="0";e.style.webkitTransform="translateX(-100%)";e.style.transform="translateX(-100%)"}))}))}))};e.prototype.render=function(){var e=this;if(!this.enable)return"";return h(Host,{class:"taro-video-danmu"},this.danmuList.map((function(t){var i=t.text,o=t.color,r=t.bottom,n=t.key;return h("p",{class:"taro-video-danmu-item",key:n,style:{color:o,bottom:r},ref:function(t){if(t){e.danmuElList.push(t)}}},i)})))};return e}();export{VideoControl as taro_video_control,Video as taro_video_core,VideoDanmu as taro_video_danmu};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as registerInstance,c as createEvent,h,H as Host,g as getElement}from"./index-
|
|
1
|
+
import{r as registerInstance,c as createEvent,h,H as Host,g as getElement}from"./index-ab3c86da.js";import{c as classnames}from"./index-c3e4004b.js";import{h as handleStencilNodes}from"./helper-8a85bb65.js";import"@tarojs/taro";var indexCss="body,html{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;-webkit-tap-highlight-color:transparent}taro-view-core{display:block}";var View=function(){function t(t){registerInstance(this,t);this.onLongPress=createEvent(this,"longpress",7);this.startTime=0;this.animation=undefined;this.hoverClass=undefined;this.hoverStartTime=50;this.hoverStayTime=400;this.hover=false;this.touch=false}t.prototype.onTouchStart=function(){var t=this;if(this.hoverClass){this.touch=true;setTimeout((function(){if(t.touch){t.hover=true}}),this.hoverStartTime)}this.timeoutEvent=setTimeout((function(){t.onLongPress.emit()}),350);this.startTime=Date.now()};t.prototype.onTouchMove=function(){clearTimeout(this.timeoutEvent)};t.prototype.onTouchEnd=function(){var t=this;var e=Date.now()-this.startTime;if(e<350){clearTimeout(this.timeoutEvent)}if(this.hoverClass){this.touch=false;setTimeout((function(){if(!t.touch){t.hover=false}}),this.hoverStayTime)}};t.prototype.componentDidRender=function(){handleStencilNodes(this.el)};t.prototype.render=function(){var t;var e=classnames((t={},t["".concat(this.hoverClass)]=this.hover,t));var i={};if(!!this.animation){i["animation"]=this.animation;i["data-animation"]=this.animation}return h(Host,Object.assign({class:e},i),h("slot",null))};Object.defineProperty(t.prototype,"el",{get:function(){return getElement(this)},enumerable:false,configurable:true});return t}();View.style=indexCss;export{View as taro_view_core};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as registerInstance,h,H as Host}from"./index-
|
|
1
|
+
import{r as registerInstance,h,H as Host}from"./index-ab3c86da.js";import{n as notSupport}from"./helper-8a85bb65.js";import"@tarojs/taro";var VoipRoom=function(){function o(o){registerInstance(this,o)}o.prototype.componentDidLoad=function(){notSupport("VoipRoom",this)};o.prototype.render=function(){return h(Host,null)};return o}();export{VoipRoom as taro_voip_room_core};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as registerInstance,c as createEvent,h}from"./index-
|
|
1
|
+
import{r as registerInstance,c as createEvent,h}from"./index-ab3c86da.js";var indexCss="iframe{border:none}.taro-webview{z-index:999;width:100%;height:100%;position:fixed;top:0;bottom:0}";var WebView=function(){function e(e){registerInstance(this,e);this.onLoad=createEvent(this,"load",7);this.onError=createEvent(this,"error",7);this.src=undefined}e.prototype.render=function(){var e=this,r=e.src,t=e.onLoad,o=e.onError;return h("iframe",{class:"taro-webview",onLoad:function(e){e.stopPropagation();t.emit({src:r})},onError:function(e){e.stopPropagation();o.emit({src:r})},src:r})};return e}();WebView.style=indexCss;export{WebView as taro_web_view_core};
|
|
@@ -0,0 +1,217 @@
|
|
|
1
|
+
// Generated by dts-bundle-generator v7.1.0
|
|
2
|
+
|
|
3
|
+
export declare function createWindowFromHtml(templateHtml: string, uniqueId: string): any;
|
|
4
|
+
export interface HydrateDocumentOptions {
|
|
5
|
+
/**
|
|
6
|
+
* Build ID that will be added to `<html data-stencil-build="BUILD_ID">`. By default
|
|
7
|
+
* a random ID will be generated
|
|
8
|
+
*/
|
|
9
|
+
buildId?: string;
|
|
10
|
+
/**
|
|
11
|
+
* Sets the `href` attribute on the `<link rel="canonical">`
|
|
12
|
+
* tag within the `<head>`. If the value is not defined it will
|
|
13
|
+
* ensure a canonical link tag is no included in the `<head>`.
|
|
14
|
+
*/
|
|
15
|
+
canonicalUrl?: string;
|
|
16
|
+
/**
|
|
17
|
+
* Include the HTML comments and attributes used by the clientside
|
|
18
|
+
* JavaScript to read the structure of the HTML and rebuild each
|
|
19
|
+
* component. Defaults to `true`.
|
|
20
|
+
*/
|
|
21
|
+
clientHydrateAnnotations?: boolean;
|
|
22
|
+
/**
|
|
23
|
+
* Constrain `setTimeout()` to 1ms, but still async. Also
|
|
24
|
+
* only allows `setInterval()` to fire once, also constrained to 1ms.
|
|
25
|
+
* Defaults to `true`.
|
|
26
|
+
*/
|
|
27
|
+
constrainTimeouts?: boolean;
|
|
28
|
+
/**
|
|
29
|
+
* Sets `document.cookie`
|
|
30
|
+
*/
|
|
31
|
+
cookie?: string;
|
|
32
|
+
/**
|
|
33
|
+
* Sets the `dir` attribute on the top level `<html>`.
|
|
34
|
+
*/
|
|
35
|
+
direction?: string;
|
|
36
|
+
/**
|
|
37
|
+
* Component tag names listed here will not be prerendered, nor will
|
|
38
|
+
* hydrated on the clientside. Components listed here will be ignored
|
|
39
|
+
* as custom elements and treated no differently than a `<div>`.
|
|
40
|
+
*/
|
|
41
|
+
excludeComponents?: string[];
|
|
42
|
+
/**
|
|
43
|
+
* Sets the `lang` attribute on the top level `<html>`.
|
|
44
|
+
*/
|
|
45
|
+
language?: string;
|
|
46
|
+
/**
|
|
47
|
+
* Maximum number of components to hydrate on one page. Defaults to `300`.
|
|
48
|
+
*/
|
|
49
|
+
maxHydrateCount?: number;
|
|
50
|
+
/**
|
|
51
|
+
* Sets `document.referrer`
|
|
52
|
+
*/
|
|
53
|
+
referrer?: string;
|
|
54
|
+
/**
|
|
55
|
+
* Removes every `<script>` element found in the `document`. Defaults to `false`.
|
|
56
|
+
*/
|
|
57
|
+
removeScripts?: boolean;
|
|
58
|
+
/**
|
|
59
|
+
* Removes CSS not used by elements within the `document`. Defaults to `true`.
|
|
60
|
+
*/
|
|
61
|
+
removeUnusedStyles?: boolean;
|
|
62
|
+
/**
|
|
63
|
+
* The url the runtime uses for the resources, such as the assets directory.
|
|
64
|
+
*/
|
|
65
|
+
resourcesUrl?: string;
|
|
66
|
+
/**
|
|
67
|
+
* Prints out runtime console logs to the NodeJS process. Defaults to `false`.
|
|
68
|
+
*/
|
|
69
|
+
runtimeLogging?: boolean;
|
|
70
|
+
/**
|
|
71
|
+
* Component tags listed here will only be prerendered or serverside-rendered
|
|
72
|
+
* and will not be clientside hydrated. This is useful for components that
|
|
73
|
+
* are not dynamic and do not need to be defined as a custom element within the
|
|
74
|
+
* browser. For example, a header or footer component would be a good example that
|
|
75
|
+
* may not require any clientside JavaScript.
|
|
76
|
+
*/
|
|
77
|
+
staticComponents?: string[];
|
|
78
|
+
/**
|
|
79
|
+
* The amount of milliseconds to wait for a page to finish rendering until
|
|
80
|
+
* a timeout error is thrown. Defaults to `15000`.
|
|
81
|
+
*/
|
|
82
|
+
timeout?: number;
|
|
83
|
+
/**
|
|
84
|
+
* Sets `document.title`.
|
|
85
|
+
*/
|
|
86
|
+
title?: string;
|
|
87
|
+
/**
|
|
88
|
+
* Sets `location.href`
|
|
89
|
+
*/
|
|
90
|
+
url?: string;
|
|
91
|
+
/**
|
|
92
|
+
* Sets `navigator.userAgent`
|
|
93
|
+
*/
|
|
94
|
+
userAgent?: string;
|
|
95
|
+
}
|
|
96
|
+
export interface SerializeDocumentOptions extends HydrateDocumentOptions {
|
|
97
|
+
/**
|
|
98
|
+
* Runs after the `document` has been hydrated.
|
|
99
|
+
*/
|
|
100
|
+
afterHydrate?(document: any): any | Promise<any>;
|
|
101
|
+
/**
|
|
102
|
+
* Sets an approximate line width the HTML should attempt to stay within.
|
|
103
|
+
* Note that this is "approximate", in that HTML may often not be able
|
|
104
|
+
* to be split at an exact line width. Additionally, new lines created
|
|
105
|
+
* is where HTML naturally already has whitespace, such as before an
|
|
106
|
+
* attribute or spaces between words. Defaults to `100`.
|
|
107
|
+
*/
|
|
108
|
+
approximateLineWidth?: number;
|
|
109
|
+
/**
|
|
110
|
+
* Runs before the `document` has been hydrated.
|
|
111
|
+
*/
|
|
112
|
+
beforeHydrate?(document: any): any | Promise<any>;
|
|
113
|
+
/**
|
|
114
|
+
* Format the HTML in a nicely indented format.
|
|
115
|
+
* Defaults to `false`.
|
|
116
|
+
*/
|
|
117
|
+
prettyHtml?: boolean;
|
|
118
|
+
/**
|
|
119
|
+
* Remove quotes from attribute values when possible.
|
|
120
|
+
* Defaults to `true`.
|
|
121
|
+
*/
|
|
122
|
+
removeAttributeQuotes?: boolean;
|
|
123
|
+
/**
|
|
124
|
+
* Remove the `=""` from standardized `boolean` attributes,
|
|
125
|
+
* such as `hidden` or `checked`. Defaults to `true`.
|
|
126
|
+
*/
|
|
127
|
+
removeBooleanAttributeQuotes?: boolean;
|
|
128
|
+
/**
|
|
129
|
+
* Remove these standardized attributes when their value is empty:
|
|
130
|
+
* `class`, `dir`, `id`, `lang`, and `name`, `title`. Defaults to `true`.
|
|
131
|
+
*/
|
|
132
|
+
removeEmptyAttributes?: boolean;
|
|
133
|
+
/**
|
|
134
|
+
* Remove HTML comments. Defaults to `true`.
|
|
135
|
+
*/
|
|
136
|
+
removeHtmlComments?: boolean;
|
|
137
|
+
}
|
|
138
|
+
export interface HydrateFactoryOptions extends SerializeDocumentOptions {
|
|
139
|
+
serializeToHtml: boolean;
|
|
140
|
+
destroyWindow: boolean;
|
|
141
|
+
destroyDocument: boolean;
|
|
142
|
+
}
|
|
143
|
+
export interface Diagnostic {
|
|
144
|
+
level: "error" | "warn" | "info" | "log" | "debug";
|
|
145
|
+
type: string;
|
|
146
|
+
header?: string;
|
|
147
|
+
language?: string;
|
|
148
|
+
messageText: string;
|
|
149
|
+
debugText?: string;
|
|
150
|
+
code?: string;
|
|
151
|
+
absFilePath?: string;
|
|
152
|
+
relFilePath?: string;
|
|
153
|
+
lineNumber?: number;
|
|
154
|
+
columnNumber?: number;
|
|
155
|
+
lines?: {
|
|
156
|
+
lineIndex: number;
|
|
157
|
+
lineNumber: number;
|
|
158
|
+
text?: string;
|
|
159
|
+
errorCharStart: number;
|
|
160
|
+
errorLength?: number;
|
|
161
|
+
}[];
|
|
162
|
+
}
|
|
163
|
+
export interface HydrateResults {
|
|
164
|
+
buildId: string;
|
|
165
|
+
diagnostics: Diagnostic[];
|
|
166
|
+
url: string;
|
|
167
|
+
host: string;
|
|
168
|
+
hostname: string;
|
|
169
|
+
href: string;
|
|
170
|
+
port: string;
|
|
171
|
+
pathname: string;
|
|
172
|
+
search: string;
|
|
173
|
+
hash: string;
|
|
174
|
+
html: string;
|
|
175
|
+
components: HydrateComponent[];
|
|
176
|
+
anchors: HydrateAnchorElement[];
|
|
177
|
+
imgs: HydrateImgElement[];
|
|
178
|
+
scripts: HydrateScriptElement[];
|
|
179
|
+
styles: HydrateStyleElement[];
|
|
180
|
+
staticData: HydrateStaticData[];
|
|
181
|
+
title: string;
|
|
182
|
+
hydratedCount: number;
|
|
183
|
+
httpStatus: number;
|
|
184
|
+
}
|
|
185
|
+
export interface HydrateComponent {
|
|
186
|
+
tag: string;
|
|
187
|
+
mode: string;
|
|
188
|
+
count: number;
|
|
189
|
+
depth: number;
|
|
190
|
+
}
|
|
191
|
+
export interface HydrateElement {
|
|
192
|
+
[attrName: string]: string | undefined;
|
|
193
|
+
}
|
|
194
|
+
export interface HydrateAnchorElement extends HydrateElement {
|
|
195
|
+
href?: string;
|
|
196
|
+
target?: string;
|
|
197
|
+
}
|
|
198
|
+
export interface HydrateImgElement extends HydrateElement {
|
|
199
|
+
src?: string;
|
|
200
|
+
}
|
|
201
|
+
export interface HydrateScriptElement extends HydrateElement {
|
|
202
|
+
src?: string;
|
|
203
|
+
type?: string;
|
|
204
|
+
}
|
|
205
|
+
export interface HydrateStyleElement extends HydrateElement {
|
|
206
|
+
href?: string;
|
|
207
|
+
}
|
|
208
|
+
export interface HydrateStaticData {
|
|
209
|
+
id: string;
|
|
210
|
+
type: string;
|
|
211
|
+
content: string;
|
|
212
|
+
}
|
|
213
|
+
export declare function renderToString(html: string | any, options?: SerializeDocumentOptions): Promise<HydrateResults>;
|
|
214
|
+
export declare function hydrateDocument(doc: any | string, options?: HydrateDocumentOptions): Promise<HydrateResults>;
|
|
215
|
+
export declare function serializeDocumentToString(doc: any, opts: HydrateFactoryOptions): string;
|
|
216
|
+
|
|
217
|
+
export {};
|