@tarojs/components 3.6.0-canary.1 → 3.6.0-canary.10
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/loader.cjs.js +1 -1
- package/dist/cjs/taro-animation-video-core.cjs.entry.js +23 -0
- package/dist/cjs/taro-animation-video-core.cjs.entry.js.map +1 -0
- package/dist/cjs/taro-animation-view-core.cjs.entry.js +23 -0
- package/dist/cjs/taro-animation-view-core.cjs.entry.js.map +1 -0
- package/dist/cjs/taro-ar-camera-core.cjs.entry.js +23 -0
- package/dist/cjs/taro-ar-camera-core.cjs.entry.js.map +1 -0
- package/dist/cjs/taro-aweme-data-core.cjs.entry.js +23 -0
- package/dist/cjs/taro-aweme-data-core.cjs.entry.js.map +1 -0
- package/dist/cjs/taro-button-core.cjs.entry.js +5 -0
- package/dist/cjs/taro-button-core.cjs.entry.js.map +1 -1
- package/dist/cjs/taro-comment-detail-core.cjs.entry.js +23 -0
- package/dist/cjs/taro-comment-detail-core.cjs.entry.js.map +1 -0
- package/dist/cjs/taro-comment-list-core.cjs.entry.js +23 -0
- package/dist/cjs/taro-comment-list-core.cjs.entry.js.map +1 -0
- package/dist/cjs/taro-components.cjs.js +1 -1
- package/dist/cjs/taro-contact-button-core.cjs.entry.js +23 -0
- package/dist/cjs/taro-contact-button-core.cjs.entry.js.map +1 -0
- package/dist/cjs/taro-follow-swan-core.cjs.entry.js +23 -0
- package/dist/cjs/taro-follow-swan-core.cjs.entry.js.map +1 -0
- package/dist/cjs/taro-inline-payment-panel-core.cjs.entry.js +23 -0
- package/dist/cjs/taro-inline-payment-panel-core.cjs.entry.js.map +1 -0
- package/dist/cjs/taro-lifestyle-core.cjs.entry.js +23 -0
- package/dist/cjs/taro-lifestyle-core.cjs.entry.js.map +1 -0
- package/dist/cjs/taro-like-core.cjs.entry.js +23 -0
- package/dist/cjs/taro-like-core.cjs.entry.js.map +1 -0
- package/dist/cjs/taro-login-core.cjs.entry.js +23 -0
- package/dist/cjs/taro-login-core.cjs.entry.js.map +1 -0
- package/dist/cjs/taro-lottie-core.cjs.entry.js +23 -0
- package/dist/cjs/taro-lottie-core.cjs.entry.js.map +1 -0
- package/dist/cjs/taro-native-slot-core.cjs.entry.js +23 -0
- package/dist/cjs/taro-native-slot-core.cjs.entry.js.map +1 -0
- package/dist/cjs/taro-rtc-room-core.cjs.entry.js +23 -0
- package/dist/cjs/taro-rtc-room-core.cjs.entry.js.map +1 -0
- package/dist/cjs/taro-rtc-room-item-core.cjs.entry.js +23 -0
- package/dist/cjs/taro-rtc-room-item-core.cjs.entry.js.map +1 -0
- package/dist/cjs/taro-scroll-view-core.cjs.entry.js +1 -1
- package/dist/cjs/taro-scroll-view-core.cjs.entry.js.map +1 -1
- package/dist/cjs/taro-slot-core.cjs.entry.js +5 -0
- package/dist/cjs/taro-slot-core.cjs.entry.js.map +1 -1
- package/dist/cjs/taro-swiper-core_2.cjs.entry.js +2 -0
- package/dist/cjs/taro-swiper-core_2.cjs.entry.js.map +1 -1
- package/dist/cjs/taro-tab-item-core.cjs.entry.js +23 -0
- package/dist/cjs/taro-tab-item-core.cjs.entry.js.map +1 -0
- package/dist/cjs/taro-tabbar.cjs.entry.js.map +1 -1
- package/dist/cjs/taro-tabs-core.cjs.entry.js +23 -0
- package/dist/cjs/taro-tabs-core.cjs.entry.js.map +1 -0
- package/dist/cjs/taro-view-core.cjs.entry.js +6 -2
- package/dist/cjs/taro-view-core.cjs.entry.js.map +1 -1
- package/dist/collection/collection-manifest.json +18 -0
- package/dist/collection/components/animation-video/animation-video.js +12 -0
- package/dist/collection/components/animation-video/animation-video.js.map +1 -0
- package/dist/collection/components/animation-view/animation-view.js +12 -0
- package/dist/collection/components/animation-view/animation-view.js.map +1 -0
- package/dist/collection/components/ar-camera/ar-camera.js +12 -0
- package/dist/collection/components/ar-camera/ar-camera.js.map +1 -0
- package/dist/collection/components/aweme-data/aweme-data.js +12 -0
- package/dist/collection/components/aweme-data/aweme-data.js.map +1 -0
- package/dist/collection/components/button/button.js +11 -0
- package/dist/collection/components/button/button.js.map +1 -1
- package/dist/collection/components/comment/comment-detail.js +12 -0
- package/dist/collection/components/comment/comment-detail.js.map +1 -0
- package/dist/collection/components/comment/comment-list.js +12 -0
- package/dist/collection/components/comment/comment-list.js.map +1 -0
- package/dist/collection/components/contact-button/contact-button.js +12 -0
- package/dist/collection/components/contact-button/contact-button.js.map +1 -0
- package/dist/collection/components/follow-swan/follow-swan.js +12 -0
- package/dist/collection/components/follow-swan/follow-swan.js.map +1 -0
- package/dist/collection/components/inline-payment-panel/inline-payment-panel.js +12 -0
- package/dist/collection/components/inline-payment-panel/inline-payment-panel.js.map +1 -0
- package/dist/collection/components/lifestyle/lifestyle.js +12 -0
- package/dist/collection/components/lifestyle/lifestyle.js.map +1 -0
- package/dist/collection/components/like/like.js +12 -0
- package/dist/collection/components/like/like.js.map +1 -0
- package/dist/collection/components/login/login.js +12 -0
- package/dist/collection/components/login/login.js.map +1 -0
- package/dist/collection/components/lottie/lottie.js +12 -0
- package/dist/collection/components/lottie/lottie.js.map +1 -0
- package/dist/collection/components/rtc-room/rtc-room-item.js +12 -0
- package/dist/collection/components/rtc-room/rtc-room-item.js.map +1 -0
- package/dist/collection/components/rtc-room/rtc-room.js +12 -0
- package/dist/collection/components/rtc-room/rtc-room.js.map +1 -0
- package/dist/collection/components/scroll-view/scroll-view.js +1 -1
- package/dist/collection/components/scroll-view/scroll-view.js.map +1 -1
- package/dist/collection/components/slot/native-slot.js +12 -0
- package/dist/collection/components/slot/native-slot.js.map +1 -0
- package/dist/collection/components/slot/slot.js +4 -0
- package/dist/collection/components/slot/slot.js.map +1 -1
- package/dist/collection/components/swiper/swiper.js +20 -0
- package/dist/collection/components/swiper/swiper.js.map +1 -1
- package/dist/collection/components/tabs/tab-item.js +12 -0
- package/dist/collection/components/tabs/tab-item.js.map +1 -0
- package/dist/collection/components/tabs/tabs.js +12 -0
- package/dist/collection/components/tabs/tabs.js.map +1 -0
- package/dist/collection/components/view/view.js +6 -2
- package/dist/collection/components/view/view.js.map +1 -1
- package/dist/esm/loader.js +1 -1
- package/dist/esm/taro-animation-video-core.entry.js +19 -0
- package/dist/esm/taro-animation-video-core.entry.js.map +1 -0
- package/dist/esm/taro-animation-view-core.entry.js +19 -0
- package/dist/esm/taro-animation-view-core.entry.js.map +1 -0
- package/dist/esm/taro-ar-camera-core.entry.js +19 -0
- package/dist/esm/taro-ar-camera-core.entry.js.map +1 -0
- package/dist/esm/taro-aweme-data-core.entry.js +19 -0
- package/dist/esm/taro-aweme-data-core.entry.js.map +1 -0
- package/dist/esm/taro-button-core.entry.js +5 -0
- package/dist/esm/taro-button-core.entry.js.map +1 -1
- package/dist/esm/taro-comment-detail-core.entry.js +19 -0
- package/dist/esm/taro-comment-detail-core.entry.js.map +1 -0
- package/dist/esm/taro-comment-list-core.entry.js +19 -0
- package/dist/esm/taro-comment-list-core.entry.js.map +1 -0
- package/dist/esm/taro-components.js +1 -1
- package/dist/esm/taro-contact-button-core.entry.js +19 -0
- package/dist/esm/taro-contact-button-core.entry.js.map +1 -0
- package/dist/esm/taro-follow-swan-core.entry.js +19 -0
- package/dist/esm/taro-follow-swan-core.entry.js.map +1 -0
- package/dist/esm/taro-inline-payment-panel-core.entry.js +19 -0
- package/dist/esm/taro-inline-payment-panel-core.entry.js.map +1 -0
- package/dist/esm/taro-lifestyle-core.entry.js +19 -0
- package/dist/esm/taro-lifestyle-core.entry.js.map +1 -0
- package/dist/esm/taro-like-core.entry.js +19 -0
- package/dist/esm/taro-like-core.entry.js.map +1 -0
- package/dist/esm/taro-login-core.entry.js +19 -0
- package/dist/esm/taro-login-core.entry.js.map +1 -0
- package/dist/esm/taro-lottie-core.entry.js +19 -0
- package/dist/esm/taro-lottie-core.entry.js.map +1 -0
- package/dist/esm/taro-native-slot-core.entry.js +19 -0
- package/dist/esm/taro-native-slot-core.entry.js.map +1 -0
- package/dist/esm/taro-rtc-room-core.entry.js +19 -0
- package/dist/esm/taro-rtc-room-core.entry.js.map +1 -0
- package/dist/esm/taro-rtc-room-item-core.entry.js +19 -0
- package/dist/esm/taro-rtc-room-item-core.entry.js.map +1 -0
- package/dist/esm/taro-scroll-view-core.entry.js +1 -1
- package/dist/esm/taro-scroll-view-core.entry.js.map +1 -1
- package/dist/esm/taro-slot-core.entry.js +5 -0
- package/dist/esm/taro-slot-core.entry.js.map +1 -1
- package/dist/esm/taro-swiper-core_2.entry.js +2 -0
- package/dist/esm/taro-swiper-core_2.entry.js.map +1 -1
- package/dist/esm/taro-tab-item-core.entry.js +19 -0
- package/dist/esm/taro-tab-item-core.entry.js.map +1 -0
- package/dist/esm/taro-tabbar.entry.js.map +1 -1
- package/dist/esm/taro-tabs-core.entry.js +19 -0
- package/dist/esm/taro-tabs-core.entry.js.map +1 -0
- package/dist/esm/taro-view-core.entry.js +6 -2
- package/dist/esm/taro-view-core.entry.js.map +1 -1
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/loader.js.map +1 -1
- package/dist/esm-es5/taro-animation-video-core.entry.js +2 -0
- package/dist/esm-es5/taro-animation-video-core.entry.js.map +1 -0
- package/dist/esm-es5/taro-animation-view-core.entry.js +2 -0
- package/dist/esm-es5/taro-animation-view-core.entry.js.map +1 -0
- package/dist/esm-es5/taro-ar-camera-core.entry.js +2 -0
- package/dist/esm-es5/taro-ar-camera-core.entry.js.map +1 -0
- package/dist/esm-es5/taro-aweme-data-core.entry.js +2 -0
- package/dist/esm-es5/taro-aweme-data-core.entry.js.map +1 -0
- package/dist/esm-es5/taro-button-core.entry.js +1 -1
- package/dist/esm-es5/taro-button-core.entry.js.map +1 -1
- package/dist/esm-es5/taro-comment-detail-core.entry.js +2 -0
- package/dist/esm-es5/taro-comment-detail-core.entry.js.map +1 -0
- package/dist/esm-es5/taro-comment-list-core.entry.js +2 -0
- package/dist/esm-es5/taro-comment-list-core.entry.js.map +1 -0
- package/dist/esm-es5/taro-components.js +1 -1
- package/dist/esm-es5/taro-components.js.map +1 -1
- package/dist/esm-es5/taro-contact-button-core.entry.js +2 -0
- package/dist/esm-es5/taro-contact-button-core.entry.js.map +1 -0
- package/dist/esm-es5/taro-follow-swan-core.entry.js +2 -0
- package/dist/esm-es5/taro-follow-swan-core.entry.js.map +1 -0
- package/dist/esm-es5/taro-inline-payment-panel-core.entry.js +2 -0
- package/dist/esm-es5/taro-inline-payment-panel-core.entry.js.map +1 -0
- package/dist/esm-es5/taro-lifestyle-core.entry.js +2 -0
- package/dist/esm-es5/taro-lifestyle-core.entry.js.map +1 -0
- package/dist/esm-es5/taro-like-core.entry.js +2 -0
- package/dist/esm-es5/taro-like-core.entry.js.map +1 -0
- package/dist/esm-es5/taro-login-core.entry.js +2 -0
- package/dist/esm-es5/taro-login-core.entry.js.map +1 -0
- package/dist/esm-es5/taro-lottie-core.entry.js +2 -0
- package/dist/esm-es5/taro-lottie-core.entry.js.map +1 -0
- package/dist/esm-es5/taro-native-slot-core.entry.js +2 -0
- package/dist/esm-es5/taro-native-slot-core.entry.js.map +1 -0
- package/dist/esm-es5/taro-rtc-room-core.entry.js +2 -0
- package/dist/esm-es5/taro-rtc-room-core.entry.js.map +1 -0
- package/dist/esm-es5/taro-rtc-room-item-core.entry.js +2 -0
- package/dist/esm-es5/taro-rtc-room-item-core.entry.js.map +1 -0
- package/dist/esm-es5/taro-scroll-view-core.entry.js +1 -1
- package/dist/esm-es5/taro-scroll-view-core.entry.js.map +1 -1
- package/dist/esm-es5/taro-slot-core.entry.js +1 -1
- package/dist/esm-es5/taro-slot-core.entry.js.map +1 -1
- package/dist/esm-es5/taro-swiper-core_2.entry.js +1 -1
- package/dist/esm-es5/taro-swiper-core_2.entry.js.map +1 -1
- package/dist/esm-es5/taro-tab-item-core.entry.js +2 -0
- package/dist/esm-es5/taro-tab-item-core.entry.js.map +1 -0
- package/dist/esm-es5/taro-tabbar.entry.js.map +1 -1
- package/dist/esm-es5/taro-tabs-core.entry.js +2 -0
- package/dist/esm-es5/taro-tabs-core.entry.js.map +1 -0
- package/dist/esm-es5/taro-view-core.entry.js +1 -1
- package/dist/esm-es5/taro-view-core.entry.js.map +1 -1
- package/dist/react/component-lib/index.js +20 -10
- package/dist/react/component-lib/input.js +4 -10
- package/dist/react/component-lib/reactify-wc.js +21 -60
- package/dist/react/components.js +21 -4
- package/dist/react/helper.js +1 -6
- package/dist/react/react-component-lib/createComponent.js +99 -0
- package/dist/react/react-component-lib/createOverlayComponent.js +178 -0
- package/dist/react/react-component-lib/interfaces.js +0 -1
- package/dist/react/react-component-lib/utils/attachProps.js +10 -19
- package/dist/react/react-component-lib/utils/index.js +37 -0
- package/dist/taro-components/p-0be383a9.system.entry.js +2 -0
- package/dist/taro-components/p-0be383a9.system.entry.js.map +1 -0
- package/dist/taro-components/p-186ad7ff.entry.js +2 -0
- package/dist/taro-components/p-186ad7ff.entry.js.map +1 -0
- package/dist/taro-components/{p-e9abe3e2.entry.js → p-19afe402.entry.js} +2 -2
- package/dist/taro-components/p-19afe402.entry.js.map +1 -0
- package/dist/taro-components/p-1a47133c.system.entry.js +2 -0
- package/dist/taro-components/p-1a47133c.system.entry.js.map +1 -0
- package/dist/taro-components/p-1ad0aa95.system.entry.js +2 -0
- package/dist/taro-components/p-1ad0aa95.system.entry.js.map +1 -0
- package/dist/taro-components/p-1b1420c9.system.entry.js +2 -0
- package/dist/taro-components/p-1b1420c9.system.entry.js.map +1 -0
- package/dist/taro-components/p-281a2bcf.entry.js +2 -0
- package/dist/taro-components/p-281a2bcf.entry.js.map +1 -0
- package/dist/taro-components/p-28dade4f.entry.js +2 -0
- package/dist/taro-components/p-28dade4f.entry.js.map +1 -0
- package/dist/taro-components/p-31e10d77.system.entry.js +2 -0
- package/dist/taro-components/p-31e10d77.system.entry.js.map +1 -0
- package/dist/taro-components/p-36c64ed0.system.entry.js +2 -0
- package/dist/taro-components/p-36c64ed0.system.entry.js.map +1 -0
- package/dist/taro-components/p-37d71e63.entry.js +2 -0
- package/dist/taro-components/p-37d71e63.entry.js.map +1 -0
- package/dist/taro-components/p-386b9de8.entry.js +2 -0
- package/dist/taro-components/p-386b9de8.entry.js.map +1 -0
- package/dist/taro-components/{p-22f9f9fa.entry.js → p-427a2872.entry.js} +2 -2
- package/dist/taro-components/p-427a2872.entry.js.map +1 -0
- package/dist/taro-components/p-49a6cae4.system.entry.js.map +1 -1
- package/dist/taro-components/p-51040638.entry.js +2 -0
- package/dist/taro-components/p-51040638.entry.js.map +1 -0
- package/dist/taro-components/p-5bd1c1a1.entry.js +2 -0
- package/dist/taro-components/p-5bd1c1a1.entry.js.map +1 -0
- package/dist/taro-components/p-62d750a7.entry.js +2 -0
- package/dist/taro-components/p-62d750a7.entry.js.map +1 -0
- package/dist/taro-components/p-632f9a72.system.entry.js +2 -0
- package/dist/taro-components/p-632f9a72.system.entry.js.map +1 -0
- package/dist/taro-components/p-65971d99.entry.js +2 -0
- package/dist/taro-components/p-65971d99.entry.js.map +1 -0
- package/dist/taro-components/{p-1cd1c507.system.entry.js → p-6831f7b1.system.entry.js} +2 -2
- package/dist/taro-components/p-6831f7b1.system.entry.js.map +1 -0
- package/dist/taro-components/p-6c622fa2.system.entry.js +2 -0
- package/dist/taro-components/p-6c622fa2.system.entry.js.map +1 -0
- package/dist/taro-components/p-6cd941bc.entry.js +2 -0
- package/dist/taro-components/p-6cd941bc.entry.js.map +1 -0
- package/dist/taro-components/p-70defa84.entry.js +2 -0
- package/dist/taro-components/p-70defa84.entry.js.map +1 -0
- package/dist/taro-components/p-73106bc9.entry.js +2 -0
- package/dist/taro-components/p-73106bc9.entry.js.map +1 -0
- package/dist/taro-components/p-7afc274a.entry.js +2 -0
- package/dist/taro-components/p-7afc274a.entry.js.map +1 -0
- package/dist/taro-components/p-7bafbe22.entry.js +2 -0
- package/dist/taro-components/p-7bafbe22.entry.js.map +1 -0
- package/dist/taro-components/p-7e7a1e62.entry.js +2 -0
- package/dist/taro-components/p-7e7a1e62.entry.js.map +1 -0
- package/dist/taro-components/p-876edf66.entry.js +2 -0
- package/dist/taro-components/p-876edf66.entry.js.map +1 -0
- package/dist/taro-components/p-898aba38.system.entry.js +2 -0
- package/dist/taro-components/p-898aba38.system.entry.js.map +1 -0
- package/dist/taro-components/p-98901e99.system.entry.js +2 -0
- package/dist/taro-components/p-98901e99.system.entry.js.map +1 -0
- package/dist/taro-components/p-9f780103.system.entry.js +2 -0
- package/dist/taro-components/p-9f780103.system.entry.js.map +1 -0
- package/dist/taro-components/p-a4961ddd.entry.js +2 -0
- package/dist/taro-components/p-a4961ddd.entry.js.map +1 -0
- package/dist/taro-components/p-ad25cc91.system.entry.js +2 -0
- package/dist/taro-components/p-ad25cc91.system.entry.js.map +1 -0
- package/dist/taro-components/p-b4cccb3e.system.entry.js +2 -0
- package/dist/taro-components/p-b4cccb3e.system.entry.js.map +1 -0
- package/dist/taro-components/p-b6733e23.system.entry.js +2 -0
- package/dist/taro-components/p-b6733e23.system.entry.js.map +1 -0
- package/dist/taro-components/{p-c3acf0ea.system.entry.js → p-c43fe342.system.entry.js} +2 -2
- package/dist/taro-components/p-c43fe342.system.entry.js.map +1 -0
- package/dist/taro-components/p-cb17d8bd.system.js +1 -1
- package/dist/taro-components/p-cb17d8bd.system.js.map +1 -1
- package/dist/taro-components/{p-a2aab820.entry.js → p-d388c097.entry.js} +2 -2
- package/dist/taro-components/p-d388c097.entry.js.map +1 -0
- package/dist/taro-components/p-d6441fd8.entry.js +2 -0
- package/dist/taro-components/p-d6441fd8.entry.js.map +1 -0
- package/dist/taro-components/{p-057159bc.system.entry.js → p-dcfb7d97.system.entry.js} +2 -2
- package/dist/taro-components/p-dcfb7d97.system.entry.js.map +1 -0
- package/dist/taro-components/p-e0d6b00b.entry.js.map +1 -1
- package/dist/taro-components/p-e5607803.system.entry.js +2 -0
- package/dist/taro-components/p-e5607803.system.entry.js.map +1 -0
- package/dist/taro-components/p-e7965c55.system.entry.js +2 -0
- package/dist/taro-components/p-e7965c55.system.entry.js.map +1 -0
- package/dist/taro-components/p-f00ee372.system.entry.js +2 -0
- package/dist/taro-components/p-f00ee372.system.entry.js.map +1 -0
- package/dist/taro-components/{p-7baff0b4.entry.js → p-f120c272.entry.js} +2 -2
- package/dist/taro-components/p-f120c272.entry.js.map +1 -0
- package/dist/taro-components/p-f81d14ad.entry.js +2 -0
- package/dist/taro-components/p-f81d14ad.entry.js.map +1 -0
- package/dist/taro-components/p-fae28cc1.system.entry.js +2 -0
- package/dist/taro-components/p-fae28cc1.system.entry.js.map +1 -0
- package/dist/taro-components/p-fb843ff2.system.entry.js +2 -0
- package/dist/taro-components/p-fb843ff2.system.entry.js.map +1 -0
- package/dist/taro-components/p-fc0fbcce.system.entry.js +2 -0
- package/dist/taro-components/p-fc0fbcce.system.entry.js.map +1 -0
- package/dist/taro-components/taro-components.esm.js +1 -1
- package/dist/taro-components/taro-components.esm.js.map +1 -1
- package/dist/types/components/animation-video/animation-video.d.ts +5 -0
- package/dist/types/components/animation-view/animation-view.d.ts +5 -0
- package/dist/types/components/ar-camera/ar-camera.d.ts +5 -0
- package/dist/types/components/aweme-data/aweme-data.d.ts +5 -0
- package/dist/types/components/button/button.d.ts +1 -0
- package/dist/types/components/comment/comment-detail.d.ts +5 -0
- package/dist/types/components/comment/comment-list.d.ts +5 -0
- package/dist/types/components/contact-button/contact-button.d.ts +5 -0
- package/dist/types/components/follow-swan/follow-swan.d.ts +5 -0
- package/dist/types/components/inline-payment-panel/inline-payment-panel.d.ts +5 -0
- package/dist/types/components/lifestyle/lifestyle.d.ts +5 -0
- package/dist/types/components/like/like.d.ts +5 -0
- package/dist/types/components/login/login.d.ts +5 -0
- package/dist/types/components/lottie/lottie.d.ts +5 -0
- package/dist/types/components/rtc-room/rtc-room-item.d.ts +5 -0
- package/dist/types/components/rtc-room/rtc-room.d.ts +5 -0
- package/dist/types/components/slot/native-slot.d.ts +5 -0
- package/dist/types/components/slot/slot.d.ts +1 -0
- package/dist/types/components/swiper/swiper.d.ts +4 -0
- package/dist/types/components/tabs/tab-item.d.ts +5 -0
- package/dist/types/components/tabs/tabs.d.ts +5 -0
- package/dist/types/components.d.ts +242 -0
- package/dist/vue2/component-lib/components.js +22 -11
- package/dist/vue2/component-lib/createComponent.js +1 -1
- package/dist/vue2/component-lib/createFormsComponent.js +2 -12
- package/dist/vue2/component-lib/index.js +7 -9
- package/dist/vue2/component-lib/mixins/listeners.js +1 -6
- package/dist/vue2/component-lib/mixins/refs.js +1 -6
- package/dist/vue2/component-lib/picker.js +1 -6
- package/dist/vue2/component-lib/scroll-view.js +1 -6
- package/dist/vue2/components.js +58 -6
- package/dist/vue2/index.js +5 -9
- package/dist/vue2/vue-component-lib/utils.js +2 -7
- package/dist/vue3/component-lib/createComponent.js +2 -2
- package/dist/vue3/component-lib/createFormsComponent.js +6 -15
- package/dist/vue3/component-lib/forwardRef.js +0 -2
- package/dist/vue3/component-lib/icon.js +2 -2
- package/dist/vue3/component-lib/image.js +2 -2
- package/dist/vue3/component-lib/index.js +22 -11
- package/dist/vue3/component-lib/scroll-view.js +2 -2
- package/dist/vue3/component-lib/text.js +2 -2
- package/dist/vue3/components.js +19 -3
- package/dist/vue3/index.js +3 -5
- package/dist/vue3/vue-component-lib/utils.js +10 -36
- package/package.json +12 -6
- package/types/Ad.d.ts +1 -1
- package/types/AnimationVideo.d.ts +62 -0
- package/types/AnimationView.d.ts +45 -0
- package/types/ArCamera.d.ts +50 -0
- package/types/Audio.d.ts +1 -1
- package/types/AwemeData.d.ts +43 -0
- package/types/Button.d.ts +1 -1
- package/types/Camera.d.ts +1 -1
- package/types/Canvas.d.ts +1 -1
- package/types/Checkbox.d.ts +1 -1
- package/types/CheckboxGroup.d.ts +1 -1
- package/types/CommentDetail.d.ts +72 -0
- package/types/CommentList.d.ts +127 -0
- package/types/ContactButton.d.ts +53 -0
- package/types/CoverImage.d.ts +1 -1
- package/types/CoverView.d.ts +102 -4
- package/types/CustomWrapper.d.ts +2 -1
- package/types/FollowSwan.d.ts +28 -0
- package/types/Form.d.ts +1 -1
- package/types/Icon.d.ts +1 -1
- package/types/Image.d.ts +1 -1
- package/types/InlinePaymentPanel.d.ts +58 -0
- package/types/Input.d.ts +88 -11
- package/types/Label.d.ts +1 -1
- package/types/Lifestyle.d.ts +26 -0
- package/types/Like.d.ts +107 -0
- package/types/LivePlayer.d.ts +1 -1
- package/types/LivePusher.d.ts +1 -1
- package/types/Login.d.ts +45 -0
- package/types/Lottie.d.ts +113 -0
- package/types/Map.d.ts +2 -2
- package/types/MatchMedia.d.ts +1 -1
- package/types/MovableArea.d.ts +2 -2
- package/types/MovableView.d.ts +17 -17
- package/types/NativeSlot.d.ts +33 -0
- package/types/NavigationBar.d.ts +2 -1
- package/types/Navigator.d.ts +1 -1
- package/types/OpenData.d.ts +1 -1
- package/types/PageContainer.d.ts +28 -18
- package/types/PageMeta.d.ts +1 -1
- package/types/Picker.d.ts +1 -1
- package/types/PickerView.d.ts +1 -1
- package/types/PickerViewColumn.d.ts +1 -1
- package/types/Progress.d.ts +1 -1
- package/types/Radio.d.ts +1 -1
- package/types/RadioGroup.d.ts +1 -1
- package/types/RichText.d.ts +1 -1
- package/types/RootPortal.d.ts +11 -2
- package/types/RtcRoom.d.ts +104 -0
- package/types/RtcRoomItem.d.ts +26 -0
- package/types/ScrollView.d.ts +1 -1
- package/types/ShareElement.d.ts +20 -10
- package/types/Slider.d.ts +1 -1
- package/types/Slot.d.ts +3 -2
- package/types/Swiper.d.ts +13 -1
- package/types/SwiperItem.d.ts +3 -2
- package/types/Switch.d.ts +1 -1
- package/types/TabItem.d.ts +35 -0
- package/types/Tabs.d.ts +58 -0
- package/types/Text.d.ts +1 -1
- package/types/Textarea.d.ts +7 -1
- package/types/Video.d.ts +7 -3
- package/types/View.d.ts +8 -7
- package/types/VoipRoom.d.ts +1 -1
- package/types/WebView.d.ts +1 -1
- package/types/index.vue3.d.ts +268 -259
- package/virtual-list/index.d.ts +3 -120
- package/virtual-list/index.js +4 -7
- package/dist/taro-components/p-057159bc.system.entry.js.map +0 -1
- package/dist/taro-components/p-1cd1c507.system.entry.js.map +0 -1
- package/dist/taro-components/p-1e436d5b.entry.js +0 -2
- package/dist/taro-components/p-1e436d5b.entry.js.map +0 -1
- package/dist/taro-components/p-22f9f9fa.entry.js.map +0 -1
- package/dist/taro-components/p-7baff0b4.entry.js.map +0 -1
- package/dist/taro-components/p-946c0799.system.entry.js +0 -2
- package/dist/taro-components/p-946c0799.system.entry.js.map +0 -1
- package/dist/taro-components/p-a2aab820.entry.js.map +0 -1
- package/dist/taro-components/p-c3acf0ea.system.entry.js.map +0 -1
- package/dist/taro-components/p-d5579efa.system.entry.js +0 -2
- package/dist/taro-components/p-d5579efa.system.entry.js.map +0 -1
- package/dist/taro-components/p-e9abe3e2.entry.js.map +0 -1
- package/virtual-list/domHelpers.js +0 -40
- package/virtual-list/memoize.js +0 -38
- package/virtual-list/react/FixedSizeList.js +0 -193
- package/virtual-list/react/createListComponent.js +0 -654
- package/virtual-list/react/index.d.ts +0 -123
- package/virtual-list/react/index.js +0 -67
- package/virtual-list/timer.js +0 -24
- package/virtual-list/vue/index.js +0 -589
package/dist/react/components.js
CHANGED
|
@@ -1,36 +1,49 @@
|
|
|
1
1
|
/* eslint-disable */
|
|
2
|
-
|
|
3
2
|
/* tslint:disable */
|
|
4
|
-
|
|
5
3
|
/* auto-generated react proxies */
|
|
4
|
+
import { Fragment } from 'react';
|
|
6
5
|
import { manipulatePropsFunction } from './helper';
|
|
7
6
|
import { createReactComponent } from './react-component-lib';
|
|
8
7
|
export var Ad = /*@__PURE__*/createReactComponent('taro-ad-core', undefined, manipulatePropsFunction);
|
|
9
8
|
export var AdCustom = /*@__PURE__*/createReactComponent('taro-ad-custom-core', undefined, manipulatePropsFunction);
|
|
9
|
+
export var AnimationVideo = /*@__PURE__*/createReactComponent('taro-animation-video-core', undefined, manipulatePropsFunction);
|
|
10
|
+
export var AnimationView = /*@__PURE__*/createReactComponent('taro-animation-view-core', undefined, manipulatePropsFunction);
|
|
11
|
+
export var ArCamera = /*@__PURE__*/createReactComponent('taro-ar-camera-core', undefined, manipulatePropsFunction);
|
|
10
12
|
export var Audio = /*@__PURE__*/createReactComponent('taro-audio-core', undefined, manipulatePropsFunction);
|
|
11
|
-
export var
|
|
13
|
+
export var AwemeData = /*@__PURE__*/createReactComponent('taro-aweme-data-core', undefined, manipulatePropsFunction);
|
|
14
|
+
export var Block = Fragment;
|
|
12
15
|
export var Button = /*@__PURE__*/createReactComponent('taro-button-core', undefined, manipulatePropsFunction);
|
|
13
16
|
export var Camera = /*@__PURE__*/createReactComponent('taro-camera-core', undefined, manipulatePropsFunction);
|
|
14
17
|
export var Canvas = /*@__PURE__*/createReactComponent('taro-canvas-core', undefined, manipulatePropsFunction);
|
|
15
18
|
export var Checkbox = /*@__PURE__*/createReactComponent('taro-checkbox-core', undefined, manipulatePropsFunction);
|
|
16
19
|
export var CheckboxGroup = /*@__PURE__*/createReactComponent('taro-checkbox-group-core', undefined, manipulatePropsFunction);
|
|
20
|
+
export var CommentDetail = /*@__PURE__*/createReactComponent('taro-comment-detail-core', undefined, manipulatePropsFunction);
|
|
21
|
+
export var CommentList = /*@__PURE__*/createReactComponent('taro-comment-list-core', undefined, manipulatePropsFunction);
|
|
22
|
+
export var ContactButton = /*@__PURE__*/createReactComponent('taro-contact-button-core', undefined, manipulatePropsFunction);
|
|
17
23
|
export var CoverImage = /*@__PURE__*/createReactComponent('taro-cover-image-core', undefined, manipulatePropsFunction);
|
|
18
24
|
export var CoverView = /*@__PURE__*/createReactComponent('taro-cover-view-core', undefined, manipulatePropsFunction);
|
|
19
|
-
export var CustomWrapper =
|
|
25
|
+
export var CustomWrapper = Fragment;
|
|
20
26
|
export var Editor = /*@__PURE__*/createReactComponent('taro-editor-core', undefined, manipulatePropsFunction);
|
|
27
|
+
export var FollowSwan = /*@__PURE__*/createReactComponent('taro-follow-swan-core', undefined, manipulatePropsFunction);
|
|
21
28
|
export var Form = /*@__PURE__*/createReactComponent('taro-form-core', undefined, manipulatePropsFunction);
|
|
22
29
|
export var FunctionalPageNavigator = /*@__PURE__*/createReactComponent('taro-functional-page-navigator-core', undefined, manipulatePropsFunction);
|
|
23
30
|
export var Icon = /*@__PURE__*/createReactComponent('taro-icon-core', undefined, manipulatePropsFunction);
|
|
24
31
|
export var Image = /*@__PURE__*/createReactComponent('taro-image-core', undefined, manipulatePropsFunction);
|
|
32
|
+
export var InlinePaymentPanel = /*@__PURE__*/createReactComponent('taro-inline-payment-panel-core', undefined, manipulatePropsFunction);
|
|
25
33
|
export var Input = /*@__PURE__*/createReactComponent('taro-input-core', undefined, manipulatePropsFunction);
|
|
26
34
|
export var KeyboardAccessory = /*@__PURE__*/createReactComponent('taro-keyboard-accessory-core', undefined, manipulatePropsFunction);
|
|
27
35
|
export var Label = /*@__PURE__*/createReactComponent('taro-label-core', undefined, manipulatePropsFunction);
|
|
36
|
+
export var Lifestyle = /*@__PURE__*/createReactComponent('taro-lifestyle-core', undefined, manipulatePropsFunction);
|
|
37
|
+
export var Like = /*@__PURE__*/createReactComponent('taro-like-core', undefined, manipulatePropsFunction);
|
|
28
38
|
export var LivePlayer = /*@__PURE__*/createReactComponent('taro-live-player-core', undefined, manipulatePropsFunction);
|
|
29
39
|
export var LivePusher = /*@__PURE__*/createReactComponent('taro-live-pusher-core', undefined, manipulatePropsFunction);
|
|
40
|
+
export var Login = /*@__PURE__*/createReactComponent('taro-login-core', undefined, manipulatePropsFunction);
|
|
41
|
+
export var Lottie = /*@__PURE__*/createReactComponent('taro-lottie-core', undefined, manipulatePropsFunction);
|
|
30
42
|
export var Map = /*@__PURE__*/createReactComponent('taro-map-core', undefined, manipulatePropsFunction);
|
|
31
43
|
export var MatchMedia = /*@__PURE__*/createReactComponent('taro-match-media-core', undefined, manipulatePropsFunction);
|
|
32
44
|
export var MovableArea = /*@__PURE__*/createReactComponent('taro-movable-area-core', undefined, manipulatePropsFunction);
|
|
33
45
|
export var MovableView = /*@__PURE__*/createReactComponent('taro-movable-view-core', undefined, manipulatePropsFunction);
|
|
46
|
+
export var NativeSlot = /*@__PURE__*/createReactComponent('taro-native-slot-core', undefined, manipulatePropsFunction);
|
|
34
47
|
export var NavigationBar = /*@__PURE__*/createReactComponent('taro-navigation-bar-core', undefined, manipulatePropsFunction);
|
|
35
48
|
export var Navigator = /*@__PURE__*/createReactComponent('taro-navigator-core', undefined, manipulatePropsFunction);
|
|
36
49
|
export var OfficialAccount = /*@__PURE__*/createReactComponent('taro-official-account-core', undefined, manipulatePropsFunction);
|
|
@@ -47,6 +60,8 @@ export var Radio = /*@__PURE__*/createReactComponent('taro-radio-core', undefine
|
|
|
47
60
|
export var RadioGroup = /*@__PURE__*/createReactComponent('taro-radio-group-core', undefined, manipulatePropsFunction);
|
|
48
61
|
export var RichText = /*@__PURE__*/createReactComponent('taro-rich-text-core', undefined, manipulatePropsFunction);
|
|
49
62
|
export var RootPortal = /*@__PURE__*/createReactComponent('taro-root-portal-core', undefined, manipulatePropsFunction);
|
|
63
|
+
export var RtcRoom = /*@__PURE__*/createReactComponent('taro-rtc-room-core', undefined, manipulatePropsFunction);
|
|
64
|
+
export var RtcRoomItem = /*@__PURE__*/createReactComponent('taro-rtc-room-item-core', undefined, manipulatePropsFunction);
|
|
50
65
|
export var ScrollView = /*@__PURE__*/createReactComponent('taro-scroll-view-core', undefined, manipulatePropsFunction);
|
|
51
66
|
export var ShareElement = /*@__PURE__*/createReactComponent('taro-share-element-core', undefined, manipulatePropsFunction);
|
|
52
67
|
export var Slider = /*@__PURE__*/createReactComponent('taro-slider-core', undefined, manipulatePropsFunction);
|
|
@@ -54,7 +69,9 @@ export var Slot = /*@__PURE__*/createReactComponent('taro-slot-core', undefined,
|
|
|
54
69
|
export var Swiper = /*@__PURE__*/createReactComponent('taro-swiper-core', undefined, manipulatePropsFunction);
|
|
55
70
|
export var SwiperItem = /*@__PURE__*/createReactComponent('taro-swiper-item-core', undefined, manipulatePropsFunction);
|
|
56
71
|
export var Switch = /*@__PURE__*/createReactComponent('taro-switch-core', undefined, manipulatePropsFunction);
|
|
72
|
+
export var TabItem = /*@__PURE__*/createReactComponent('taro-tab-item-core', undefined, manipulatePropsFunction);
|
|
57
73
|
export var Tabbar = /*@__PURE__*/createReactComponent('taro-tabbar', undefined, manipulatePropsFunction);
|
|
74
|
+
export var Tabs = /*@__PURE__*/createReactComponent('taro-tabs-core', undefined, manipulatePropsFunction);
|
|
58
75
|
export var Text = /*@__PURE__*/createReactComponent('taro-text-core', undefined, manipulatePropsFunction);
|
|
59
76
|
export var Textarea = /*@__PURE__*/createReactComponent('taro-textarea-core', undefined, manipulatePropsFunction);
|
|
60
77
|
export var VideoControl = /*@__PURE__*/createReactComponent('taro-video-control', undefined, manipulatePropsFunction);
|
package/dist/react/helper.js
CHANGED
|
@@ -1,9 +1,4 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
4
|
-
|
|
5
|
-
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
6
|
-
|
|
1
|
+
import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2";
|
|
7
2
|
export var manipulatePropsFunction = function manipulatePropsFunction(originalProps) {
|
|
8
3
|
var propsToPass = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
|
9
4
|
var dangerouslySetInnerHTML = originalProps.dangerouslySetInnerHTML;
|
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2";
|
|
2
|
+
import _typeof from "@babel/runtime/helpers/esm/typeof";
|
|
3
|
+
import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
|
|
4
|
+
import _classCallCheck from "@babel/runtime/helpers/esm/classCallCheck";
|
|
5
|
+
import _createClass from "@babel/runtime/helpers/esm/createClass";
|
|
6
|
+
import _assertThisInitialized from "@babel/runtime/helpers/esm/assertThisInitialized";
|
|
7
|
+
import _inherits from "@babel/runtime/helpers/esm/inherits";
|
|
8
|
+
import _createSuper from "@babel/runtime/helpers/esm/createSuper";
|
|
9
|
+
import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
|
|
10
|
+
var _excluded = ["children", "forwardedRef", "style", "className", "ref"];
|
|
11
|
+
import React, { createElement } from 'react';
|
|
12
|
+
import { attachProps, camelToDashCase, createForwardRef, dashToPascalCase, isCoveredByReact, mergeRefs } from './utils';
|
|
13
|
+
export var createReactComponent = function createReactComponent(tagName, ReactComponentContext, manipulatePropsFunction, defineCustomElement) {
|
|
14
|
+
if (defineCustomElement !== undefined) {
|
|
15
|
+
defineCustomElement();
|
|
16
|
+
}
|
|
17
|
+
var displayName = dashToPascalCase(tagName);
|
|
18
|
+
var ReactComponent = /*#__PURE__*/function (_React$Component) {
|
|
19
|
+
_inherits(ReactComponent, _React$Component);
|
|
20
|
+
var _super = _createSuper(ReactComponent);
|
|
21
|
+
function ReactComponent(props) {
|
|
22
|
+
var _this;
|
|
23
|
+
_classCallCheck(this, ReactComponent);
|
|
24
|
+
_this = _super.call(this, props);
|
|
25
|
+
_defineProperty(_assertThisInitialized(_this), "componentEl", void 0);
|
|
26
|
+
_defineProperty(_assertThisInitialized(_this), "setComponentElRef", function (element) {
|
|
27
|
+
_this.componentEl = element;
|
|
28
|
+
});
|
|
29
|
+
return _this;
|
|
30
|
+
}
|
|
31
|
+
_createClass(ReactComponent, [{
|
|
32
|
+
key: "componentDidMount",
|
|
33
|
+
value: function componentDidMount() {
|
|
34
|
+
this.componentDidUpdate(this.props);
|
|
35
|
+
}
|
|
36
|
+
}, {
|
|
37
|
+
key: "componentDidUpdate",
|
|
38
|
+
value: function componentDidUpdate(prevProps) {
|
|
39
|
+
attachProps(this.componentEl, this.props, prevProps);
|
|
40
|
+
}
|
|
41
|
+
}, {
|
|
42
|
+
key: "render",
|
|
43
|
+
value: function render() {
|
|
44
|
+
var _this$props = this.props,
|
|
45
|
+
children = _this$props.children,
|
|
46
|
+
forwardedRef = _this$props.forwardedRef,
|
|
47
|
+
style = _this$props.style,
|
|
48
|
+
className = _this$props.className,
|
|
49
|
+
ref = _this$props.ref,
|
|
50
|
+
cProps = _objectWithoutProperties(_this$props, _excluded);
|
|
51
|
+
var propsToPass = Object.keys(cProps).reduce(function (acc, name) {
|
|
52
|
+
var value = cProps[name];
|
|
53
|
+
if (name.indexOf('on') === 0 && name[2] === name[2].toUpperCase()) {
|
|
54
|
+
var eventName = name.substring(2).toLowerCase();
|
|
55
|
+
if (typeof document !== 'undefined' && isCoveredByReact(eventName)) {
|
|
56
|
+
acc[name] = value;
|
|
57
|
+
}
|
|
58
|
+
} else {
|
|
59
|
+
// we should only render strings, booleans, and numbers as attrs in html.
|
|
60
|
+
// objects, functions, arrays etc get synced via properties on mount.
|
|
61
|
+
var type = _typeof(value);
|
|
62
|
+
if (type === 'string' || type === 'boolean' || type === 'number') {
|
|
63
|
+
acc[camelToDashCase(name)] = value;
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
return acc;
|
|
67
|
+
}, {});
|
|
68
|
+
if (manipulatePropsFunction) {
|
|
69
|
+
propsToPass = manipulatePropsFunction(this.props, propsToPass);
|
|
70
|
+
}
|
|
71
|
+
var newProps = _objectSpread(_objectSpread({}, propsToPass), {}, {
|
|
72
|
+
ref: mergeRefs(forwardedRef, this.setComponentElRef),
|
|
73
|
+
style: style
|
|
74
|
+
});
|
|
75
|
+
|
|
76
|
+
/**
|
|
77
|
+
* We use createElement here instead of
|
|
78
|
+
* React.createElement to work around a
|
|
79
|
+
* bug in Vite (https://github.com/vitejs/vite/issues/6104).
|
|
80
|
+
* React.createElement causes all elements to be rendered
|
|
81
|
+
* as <tagname> instead of the actual Web Component.
|
|
82
|
+
*/
|
|
83
|
+
return /*#__PURE__*/createElement(tagName, newProps, children);
|
|
84
|
+
}
|
|
85
|
+
}], [{
|
|
86
|
+
key: "displayName",
|
|
87
|
+
get: function get() {
|
|
88
|
+
return displayName;
|
|
89
|
+
}
|
|
90
|
+
}]);
|
|
91
|
+
return ReactComponent;
|
|
92
|
+
}(React.Component);
|
|
93
|
+
|
|
94
|
+
// If context was passed to createReactComponent then conditionally add it to the Component Class
|
|
95
|
+
if (ReactComponentContext) {
|
|
96
|
+
ReactComponent.contextType = ReactComponentContext;
|
|
97
|
+
}
|
|
98
|
+
return createForwardRef(ReactComponent, displayName);
|
|
99
|
+
};
|
|
@@ -0,0 +1,178 @@
|
|
|
1
|
+
import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2";
|
|
2
|
+
import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
|
|
3
|
+
import _regeneratorRuntime from "@babel/runtime/helpers/esm/regeneratorRuntime";
|
|
4
|
+
import _asyncToGenerator from "@babel/runtime/helpers/esm/asyncToGenerator";
|
|
5
|
+
import _classCallCheck from "@babel/runtime/helpers/esm/classCallCheck";
|
|
6
|
+
import _createClass from "@babel/runtime/helpers/esm/createClass";
|
|
7
|
+
import _assertThisInitialized from "@babel/runtime/helpers/esm/assertThisInitialized";
|
|
8
|
+
import _inherits from "@babel/runtime/helpers/esm/inherits";
|
|
9
|
+
import _createSuper from "@babel/runtime/helpers/esm/createSuper";
|
|
10
|
+
import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
|
|
11
|
+
var _excluded = ["children", "isOpen", "onDidDismiss", "onDidPresent", "onWillDismiss", "onWillPresent"];
|
|
12
|
+
import React from 'react';
|
|
13
|
+
import ReactDOM from 'react-dom';
|
|
14
|
+
import { attachProps, dashToPascalCase, defineCustomElement, setRef } from './utils';
|
|
15
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
16
|
+
export var createOverlayComponent = function createOverlayComponent(tagName, controller, customElement) {
|
|
17
|
+
defineCustomElement(tagName, customElement);
|
|
18
|
+
var displayName = dashToPascalCase(tagName);
|
|
19
|
+
var didDismissEventName = "on".concat(displayName, "DidDismiss");
|
|
20
|
+
var didPresentEventName = "on".concat(displayName, "DidPresent");
|
|
21
|
+
var willDismissEventName = "on".concat(displayName, "WillDismiss");
|
|
22
|
+
var willPresentEventName = "on".concat(displayName, "WillPresent");
|
|
23
|
+
var isDismissing = false;
|
|
24
|
+
var Overlay = /*#__PURE__*/function (_React$Component) {
|
|
25
|
+
_inherits(Overlay, _React$Component);
|
|
26
|
+
var _super = _createSuper(Overlay);
|
|
27
|
+
function Overlay(props) {
|
|
28
|
+
var _this;
|
|
29
|
+
_classCallCheck(this, Overlay);
|
|
30
|
+
_this = _super.call(this, props);
|
|
31
|
+
_defineProperty(_assertThisInitialized(_this), "overlay", void 0);
|
|
32
|
+
_defineProperty(_assertThisInitialized(_this), "el", void 0);
|
|
33
|
+
if (typeof document !== 'undefined') {
|
|
34
|
+
_this.el = document.createElement('div');
|
|
35
|
+
}
|
|
36
|
+
_this.handleDismiss = _this.handleDismiss.bind(_assertThisInitialized(_this));
|
|
37
|
+
return _this;
|
|
38
|
+
}
|
|
39
|
+
_createClass(Overlay, [{
|
|
40
|
+
key: "componentDidMount",
|
|
41
|
+
value: function componentDidMount() {
|
|
42
|
+
if (this.props.isOpen) {
|
|
43
|
+
this.present();
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
}, {
|
|
47
|
+
key: "componentWillUnmount",
|
|
48
|
+
value: function componentWillUnmount() {
|
|
49
|
+
if (this.overlay) {
|
|
50
|
+
this.overlay.dismiss();
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
}, {
|
|
54
|
+
key: "handleDismiss",
|
|
55
|
+
value: function handleDismiss(event) {
|
|
56
|
+
if (this.props.onDidDismiss) {
|
|
57
|
+
this.props.onDidDismiss(event);
|
|
58
|
+
}
|
|
59
|
+
setRef(this.props.forwardedRef, null);
|
|
60
|
+
}
|
|
61
|
+
}, {
|
|
62
|
+
key: "shouldComponentUpdate",
|
|
63
|
+
value: function shouldComponentUpdate(nextProps) {
|
|
64
|
+
// Check if the overlay component is about to dismiss
|
|
65
|
+
if (this.overlay && nextProps.isOpen !== this.props.isOpen && nextProps.isOpen === false) {
|
|
66
|
+
isDismissing = true;
|
|
67
|
+
}
|
|
68
|
+
return true;
|
|
69
|
+
}
|
|
70
|
+
}, {
|
|
71
|
+
key: "componentDidUpdate",
|
|
72
|
+
value: function () {
|
|
73
|
+
var _componentDidUpdate = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(prevProps) {
|
|
74
|
+
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
75
|
+
while (1) {
|
|
76
|
+
switch (_context.prev = _context.next) {
|
|
77
|
+
case 0:
|
|
78
|
+
if (this.overlay) {
|
|
79
|
+
attachProps(this.overlay, this.props, prevProps);
|
|
80
|
+
}
|
|
81
|
+
if (prevProps.isOpen !== this.props.isOpen && this.props.isOpen === true) {
|
|
82
|
+
this.present(prevProps);
|
|
83
|
+
}
|
|
84
|
+
if (!(this.overlay && prevProps.isOpen !== this.props.isOpen && this.props.isOpen === false)) {
|
|
85
|
+
_context.next = 7;
|
|
86
|
+
break;
|
|
87
|
+
}
|
|
88
|
+
_context.next = 5;
|
|
89
|
+
return this.overlay.dismiss();
|
|
90
|
+
case 5:
|
|
91
|
+
isDismissing = false;
|
|
92
|
+
|
|
93
|
+
/**
|
|
94
|
+
* Now that the overlay is dismissed
|
|
95
|
+
* we need to render again so that any
|
|
96
|
+
* inner components will be unmounted
|
|
97
|
+
*/
|
|
98
|
+
this.forceUpdate();
|
|
99
|
+
case 7:
|
|
100
|
+
case "end":
|
|
101
|
+
return _context.stop();
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
}, _callee, this);
|
|
105
|
+
}));
|
|
106
|
+
function componentDidUpdate(_x) {
|
|
107
|
+
return _componentDidUpdate.apply(this, arguments);
|
|
108
|
+
}
|
|
109
|
+
return componentDidUpdate;
|
|
110
|
+
}()
|
|
111
|
+
}, {
|
|
112
|
+
key: "present",
|
|
113
|
+
value: function () {
|
|
114
|
+
var _present = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(prevProps) {
|
|
115
|
+
var _this2 = this,
|
|
116
|
+
_objectSpread2;
|
|
117
|
+
var _this$props, children, isOpen, onDidDismiss, onDidPresent, onWillDismiss, onWillPresent, cProps, elementProps;
|
|
118
|
+
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
119
|
+
while (1) {
|
|
120
|
+
switch (_context2.prev = _context2.next) {
|
|
121
|
+
case 0:
|
|
122
|
+
_this$props = this.props, children = _this$props.children, isOpen = _this$props.isOpen, onDidDismiss = _this$props.onDidDismiss, onDidPresent = _this$props.onDidPresent, onWillDismiss = _this$props.onWillDismiss, onWillPresent = _this$props.onWillPresent, cProps = _objectWithoutProperties(_this$props, _excluded);
|
|
123
|
+
elementProps = _objectSpread(_objectSpread({}, cProps), {}, (_objectSpread2 = {
|
|
124
|
+
ref: this.props.forwardedRef
|
|
125
|
+
}, _defineProperty(_objectSpread2, didDismissEventName, this.handleDismiss), _defineProperty(_objectSpread2, didPresentEventName, function (e) {
|
|
126
|
+
return _this2.props.onDidPresent && _this2.props.onDidPresent(e);
|
|
127
|
+
}), _defineProperty(_objectSpread2, willDismissEventName, function (e) {
|
|
128
|
+
return _this2.props.onWillDismiss && _this2.props.onWillDismiss(e);
|
|
129
|
+
}), _defineProperty(_objectSpread2, willPresentEventName, function (e) {
|
|
130
|
+
return _this2.props.onWillPresent && _this2.props.onWillPresent(e);
|
|
131
|
+
}), _objectSpread2));
|
|
132
|
+
_context2.next = 4;
|
|
133
|
+
return controller.create(_objectSpread(_objectSpread({}, elementProps), {}, {
|
|
134
|
+
component: this.el,
|
|
135
|
+
componentProps: {}
|
|
136
|
+
}));
|
|
137
|
+
case 4:
|
|
138
|
+
this.overlay = _context2.sent;
|
|
139
|
+
setRef(this.props.forwardedRef, this.overlay);
|
|
140
|
+
attachProps(this.overlay, elementProps, prevProps);
|
|
141
|
+
_context2.next = 9;
|
|
142
|
+
return this.overlay.present();
|
|
143
|
+
case 9:
|
|
144
|
+
case "end":
|
|
145
|
+
return _context2.stop();
|
|
146
|
+
}
|
|
147
|
+
}
|
|
148
|
+
}, _callee2, this);
|
|
149
|
+
}));
|
|
150
|
+
function present(_x2) {
|
|
151
|
+
return _present.apply(this, arguments);
|
|
152
|
+
}
|
|
153
|
+
return present;
|
|
154
|
+
}()
|
|
155
|
+
}, {
|
|
156
|
+
key: "render",
|
|
157
|
+
value: function render() {
|
|
158
|
+
/**
|
|
159
|
+
* Continue to render the component even when
|
|
160
|
+
* overlay is dismissing otherwise component
|
|
161
|
+
* will be hidden before animation is done.
|
|
162
|
+
*/
|
|
163
|
+
return /*#__PURE__*/ReactDOM.createPortal(this.props.isOpen || isDismissing ? this.props.children : null, this.el);
|
|
164
|
+
}
|
|
165
|
+
}], [{
|
|
166
|
+
key: "displayName",
|
|
167
|
+
get: function get() {
|
|
168
|
+
return displayName;
|
|
169
|
+
}
|
|
170
|
+
}]);
|
|
171
|
+
return Overlay;
|
|
172
|
+
}(React.Component);
|
|
173
|
+
return /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
174
|
+
return /*#__PURE__*/_jsx(Overlay, _objectSpread(_objectSpread({}, props), {}, {
|
|
175
|
+
forwardedRef: ref
|
|
176
|
+
}));
|
|
177
|
+
});
|
|
178
|
+
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,34 +1,27 @@
|
|
|
1
|
-
import _typeof from "@babel/runtime/helpers/typeof";
|
|
1
|
+
import _typeof from "@babel/runtime/helpers/esm/typeof";
|
|
2
2
|
import { camelToDashCase } from './case';
|
|
3
3
|
export var attachProps = function attachProps(node, newProps) {
|
|
4
4
|
var oldProps = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
|
|
5
|
-
|
|
6
5
|
// some test frameworks don't render DOM elements, so we test here to make sure we are dealing with DOM first
|
|
7
6
|
if (node instanceof Element) {
|
|
8
7
|
// add any classes in className to the class list
|
|
9
8
|
var className = getClassName(node.classList, newProps, oldProps);
|
|
10
|
-
|
|
11
9
|
if (className !== '') {
|
|
12
10
|
node.className = className;
|
|
13
11
|
}
|
|
14
|
-
|
|
15
12
|
Object.keys(newProps).forEach(function (name) {
|
|
16
13
|
if (name === 'children' || name === 'style' || name === 'ref' || name === 'class' || name === 'className' || name === 'forwardedRef') {
|
|
17
14
|
return;
|
|
18
15
|
}
|
|
19
|
-
|
|
20
16
|
if (name.indexOf('on') === 0 && name[2] === name[2].toUpperCase()) {
|
|
21
17
|
var eventName = name.substring(2);
|
|
22
18
|
var eventNameLc = eventName.toLowerCase();
|
|
23
|
-
|
|
24
19
|
if (!isCoveredByReact(eventNameLc)) {
|
|
25
20
|
syncEvent(node, eventNameLc, newProps[name]);
|
|
26
21
|
}
|
|
27
22
|
} else {
|
|
28
23
|
node[name] = newProps[name];
|
|
29
|
-
|
|
30
24
|
var propType = _typeof(newProps[name]);
|
|
31
|
-
|
|
32
25
|
if (propType === 'string') {
|
|
33
26
|
node.setAttribute(camelToDashCase(name), newProps[name]);
|
|
34
27
|
}
|
|
@@ -38,14 +31,14 @@ export var attachProps = function attachProps(node, newProps) {
|
|
|
38
31
|
};
|
|
39
32
|
export var getClassName = function getClassName(classList, newProps, oldProps) {
|
|
40
33
|
var newClassProp = newProps.className || newProps.class;
|
|
41
|
-
var oldClassProp = oldProps.className || oldProps.class;
|
|
42
|
-
|
|
34
|
+
var oldClassProp = oldProps.className || oldProps.class;
|
|
35
|
+
// map the classes to Maps for performance
|
|
43
36
|
var currentClasses = arrayToMap(classList);
|
|
44
37
|
var incomingPropClasses = arrayToMap(newClassProp ? newClassProp.split(' ') : []);
|
|
45
38
|
var oldPropClasses = arrayToMap(oldClassProp ? oldClassProp.split(' ') : []);
|
|
46
|
-
var finalClassNames = [];
|
|
39
|
+
var finalClassNames = [];
|
|
40
|
+
// loop through each of the current classes on the component
|
|
47
41
|
// to see if it should be a part of the classNames added
|
|
48
|
-
|
|
49
42
|
currentClasses.forEach(function (currentClass) {
|
|
50
43
|
if (incomingPropClasses.has(currentClass)) {
|
|
51
44
|
// add it as its already included in classnames coming in from newProps
|
|
@@ -61,43 +54,41 @@ export var getClassName = function getClassName(classList, newProps, oldProps) {
|
|
|
61
54
|
});
|
|
62
55
|
return finalClassNames.join(' ');
|
|
63
56
|
};
|
|
57
|
+
|
|
64
58
|
/**
|
|
65
59
|
* Checks if an event is supported in the current execution environment.
|
|
66
60
|
* @license Modernizr 3.0.0pre (Custom Build) | MIT
|
|
67
61
|
*/
|
|
68
|
-
|
|
69
62
|
export var isCoveredByReact = function isCoveredByReact(eventNameSuffix) {
|
|
70
63
|
if (typeof document === 'undefined') {
|
|
71
64
|
return true;
|
|
72
65
|
} else {
|
|
73
66
|
var eventName = 'on' + eventNameSuffix;
|
|
74
67
|
var isSupported = (eventName in document);
|
|
75
|
-
|
|
76
68
|
if (!isSupported) {
|
|
77
69
|
var element = document.createElement('div');
|
|
78
70
|
element.setAttribute(eventName, 'return;');
|
|
79
71
|
isSupported = typeof element[eventName] === 'function';
|
|
80
72
|
}
|
|
81
|
-
|
|
82
73
|
return isSupported;
|
|
83
74
|
}
|
|
84
75
|
};
|
|
85
76
|
export var syncEvent = function syncEvent(node, eventName, newEventHandler) {
|
|
86
77
|
var eventStore = node.__events || (node.__events = {});
|
|
87
|
-
var oldEventHandler = eventStore[eventName];
|
|
78
|
+
var oldEventHandler = eventStore[eventName];
|
|
88
79
|
|
|
80
|
+
// Remove old listener so they don't double up.
|
|
89
81
|
if (oldEventHandler) {
|
|
90
82
|
node.removeEventListener(eventName, oldEventHandler);
|
|
91
|
-
}
|
|
92
|
-
|
|
83
|
+
}
|
|
93
84
|
|
|
85
|
+
// Bind new listener.
|
|
94
86
|
node.addEventListener(eventName, eventStore[eventName] = function handler(e) {
|
|
95
87
|
if (newEventHandler) {
|
|
96
88
|
newEventHandler.call(this, e);
|
|
97
89
|
}
|
|
98
90
|
});
|
|
99
91
|
};
|
|
100
|
-
|
|
101
92
|
var arrayToMap = function arrayToMap(arr) {
|
|
102
93
|
var map = new Map();
|
|
103
94
|
arr.forEach(function (s) {
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2";
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
4
|
+
export var setRef = function setRef(ref, value) {
|
|
5
|
+
if (typeof ref === 'function') {
|
|
6
|
+
ref(value);
|
|
7
|
+
} else if (ref != null) {
|
|
8
|
+
// Cast as a MutableRef so we can assign current
|
|
9
|
+
ref.current = value;
|
|
10
|
+
}
|
|
11
|
+
};
|
|
12
|
+
export var mergeRefs = function mergeRefs() {
|
|
13
|
+
for (var _len = arguments.length, refs = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
14
|
+
refs[_key] = arguments[_key];
|
|
15
|
+
}
|
|
16
|
+
return function (value) {
|
|
17
|
+
refs.forEach(function (ref) {
|
|
18
|
+
setRef(ref, value);
|
|
19
|
+
});
|
|
20
|
+
};
|
|
21
|
+
};
|
|
22
|
+
export var createForwardRef = function createForwardRef(ReactComponent, displayName) {
|
|
23
|
+
var forwardRef = function forwardRef(props, ref) {
|
|
24
|
+
return /*#__PURE__*/_jsx(ReactComponent, _objectSpread(_objectSpread({}, props), {}, {
|
|
25
|
+
forwardedRef: ref
|
|
26
|
+
}));
|
|
27
|
+
};
|
|
28
|
+
forwardRef.displayName = displayName;
|
|
29
|
+
return /*#__PURE__*/React.forwardRef(forwardRef);
|
|
30
|
+
};
|
|
31
|
+
export var defineCustomElement = function defineCustomElement(tagName, customElement) {
|
|
32
|
+
if (customElement !== undefined && typeof customElements !== 'undefined' && !customElements.get(tagName)) {
|
|
33
|
+
customElements.define(tagName, customElement);
|
|
34
|
+
}
|
|
35
|
+
};
|
|
36
|
+
export * from './attachProps';
|
|
37
|
+
export * from './case';
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
System.register(["./p-8a8f286f.system.js","./p-15e45ed6.system.js","@tarojs/taro"],(function(t){"use strict";var n,o,r,e;return{setters:[function(t){n=t.r;o=t.h;r=t.H},function(t){e=t.n},function(){}],execute:function(){var c=t("taro_rtc_room_core",function(){function t(t){n(this,t)}t.prototype.componentDidLoad=function(){e("RtcRoom",this)};t.prototype.render=function(){return o(r,null)};return t}())}}}));
|
|
2
|
+
//# sourceMappingURL=p-0be383a9.system.entry.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["src/components/rtc-room/rtc-room.tsx"],"names":["RtcRoom","exports","class_1","prototype","componentDidLoad","notSupport","this","render","h","Host"],"mappings":"gOAOaA,EAAOC,EAAA,qBAAA,mCAClBC,EAAAC,UAAAC,iBAAA,WACEC,EAAW,UAAWC,OAGxBJ,EAAAC,UAAAI,OAAA,WACE,OACEC,EAACC,EAAI,gBAPS","sourcesContent":["import { Component, ComponentInterface, h, Host } from '@stencil/core'\n\nimport { notSupport } from '../../utils'\n\n@Component({\n tag: 'taro-rtc-room-core'\n})\nexport class RtcRoom implements ComponentInterface {\n componentDidLoad () {\n notSupport('RtcRoom', this)\n }\n\n render () {\n return (\n <Host />\n )\n }\n}\n"]}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{r as o,h as r,H as t}from"./p-5bfefd19.js";import{n as s}from"./p-6a96da58.js";import"@tarojs/taro";const a=class{constructor(r){o(this,r)}componentDidLoad(){s("Slot",this)}render(){return r(t,null)}};export{a as taro_slot_core};
|
|
2
|
+
//# sourceMappingURL=p-186ad7ff.entry.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["src/components/slot/slot.tsx"],"names":["Slot","[object Object]","notSupport","this","h","Host"],"mappings":"iHAOaA,EAAI,+BACfC,mBACEC,EAAW,OAAQC,MAGrBF,SACE,OACEG,EAACC,EAAI","sourcesContent":["import { Component, ComponentInterface, h, Host } from '@stencil/core'\n\nimport { notSupport } from '../../utils'\n\n@Component({\n tag: 'taro-slot-core'\n})\nexport class Slot implements ComponentInterface {\n componentDidLoad () {\n notSupport('Slot', this)\n }\n\n render () {\n return (\n <Host />\n )\n }\n}\n"]}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{r as t,c as s,h as e,H as i,g as o}from"./p-5bfefd19.js";import{c as h}from"./p-76724e58.js";const n="body,html{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;-webkit-tap-highlight-color:rgba(0, 0, 0, 0)}taro-view-core{display:block}";const r=class{constructor(e){t(this,e);this.onLongPress=s(this,"longpress",7);this.startTime=0;this.animation=undefined;this.hoverClass=undefined;this.hoverStartTime=50;this.hoverStayTime=400;this.hover=false;this.touch=false}onTouchStart(){if(this.hoverClass){this.touch=true;setTimeout((()=>{if(this.touch){this.hover=true}}),this.hoverStartTime)}this.timeoutEvent=setTimeout((()=>{this.onLongPress.emit()}),350);this.startTime=Date.now()}onTouchMove(){clearTimeout(this.timeoutEvent)}onTouchEnd(){const t=Date.now()-this.startTime;if(t<350){clearTimeout(this.timeoutEvent)}if(this.hoverClass){this.touch=false;setTimeout((()=>{if(!this.touch){this.hover=false}}),this.hoverStayTime)}}componentDidRender(){const t=this.el;t.childNodes.forEach((t=>{if(t.nodeType===document.COMMENT_NODE&&t["s-cn"])t["s-cn"]=false}))}render(){const t=h({[`${this.hoverClass}`]:this.hover});let s={};if(!!this.animation){s["animation"]=this.animation;s["data-animation"]=this.animation}return e(i,Object.assign({class:t},s),e("slot",null))}get el(){return o(this)}};r.style=n;export{r as taro_view_core};
|
|
2
|
-
//# sourceMappingURL=p-
|
|
1
|
+
import{r as t,c as s,h as e,H as i,g as o}from"./p-5bfefd19.js";import{c as h}from"./p-76724e58.js";const n="body,html{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;-webkit-tap-highlight-color:rgba(0, 0, 0, 0)}taro-view-core{display:block}";const r=class{constructor(e){t(this,e);this.onLongPress=s(this,"longpress",7);this.startTime=0;this.animation=undefined;this.hoverClass=undefined;this.hoverStartTime=50;this.hoverStayTime=400;this.hover=false;this.touch=false}onTouchStart(){if(this.hoverClass){this.touch=true;setTimeout((()=>{if(this.touch){this.hover=true}}),this.hoverStartTime)}this.timeoutEvent=setTimeout((()=>{this.onLongPress.emit()}),350);this.startTime=Date.now()}onTouchMove(){clearTimeout(this.timeoutEvent)}onTouchEnd(){const t=Date.now()-this.startTime;if(t<350){clearTimeout(this.timeoutEvent)}if(this.hoverClass){this.touch=false;setTimeout((()=>{if(!this.touch){this.hover=false}}),this.hoverStayTime)}}componentDidRender(){const t=this.el;t.childNodes.forEach((t=>{if(t.nodeType===document.COMMENT_NODE&&t["s-cn"])t["s-cn"]=false;if(t.nodeType!==document.COMMENT_NODE&&t["s-sr"])t["s-sr"]=false}))}render(){const t=h({[`${this.hoverClass}`]:this.hover});let s={};if(!!this.animation){s["animation"]=this.animation;s["data-animation"]=this.animation}return e(i,Object.assign({class:t},s),e("slot",null))}get el(){return o(this)}};r.style=n;export{r as taro_view_core};
|
|
2
|
+
//# sourceMappingURL=p-19afe402.entry.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["src/components/view/style/index.scss?tag=taro-view-core","src/components/view/view.tsx"],"names":["indexCss","View","this","startTime","[object Object]","hoverClass","touch","setTimeout","hover","hoverStartTime","timeoutEvent","onLongPress","emit","Date","now","clearTimeout","spanTime","hoverStayTime","el","childNodes","forEach","item","nodeType","document","COMMENT_NODE","cls","classNames","attr","animation","h","Host","Object","assign","class"],"mappings":"oGAAA,MAAMA,EAAW,kLCOJC,EAAI,sEAePC,KAAAC,UAAY,yEAVK,sBACD,eACP,iBACA,MAUjBC,eACE,GAAIF,KAAKG,WAAY,CACnBH,KAAKI,MAAQ,KACbC,YAAW,KACT,GAAIL,KAAKI,MAAO,CACdJ,KAAKM,MAAQ,QAEdN,KAAKO,gBAGVP,KAAKQ,aAAeH,YAAW,KAC7BL,KAAKS,YAAYC,SAChB,KACHV,KAAKC,UAAYU,KAAKC,MAIxBV,cACEW,aAAab,KAAKQ,cAIpBN,aACE,MAAMY,EAAWH,KAAKC,MAAQZ,KAAKC,UACnC,GAAIa,EAAW,IAAK,CAClBD,aAAab,KAAKQ,cAEpB,GAAIR,KAAKG,WAAY,CACnBH,KAAKI,MAAQ,MACbC,YAAW,KACT,IAAKL,KAAKI,MAAO,CACfJ,KAAKM,MAAQ,SAEdN,KAAKe,gBAIZb,qBACE,MAAMc,EAAKhB,KAAKgB,GAChBA,EAAGC,WAAWC,SAAQC,IAEpB,GAAIA,EAAKC,WAAaC,SAASC,cAAgBH,EAAK,QAASA,EAAK,QAAU,MAE5E,GAAIA,EAAKC,WAAaC,SAASC,cAAgBH,EAAK,QAASA,EAAK,QAAU,SAIhFjB,SACE,MAAMqB,EAAMC,EAAW,CACrBtB,CAAC,GAAGF,KAAKG,cAAeH,KAAKM,QAE/B,IAAImB,EAAO,GACX,KAAMzB,KAAK0B,UAAW,CACpBD,EAAK,aAAezB,KAAK0B,UACzBD,EAAK,kBAAoBzB,KAAK0B,UAEhC,OACEC,EAACC,EAAIC,OAAAC,OAAA,CAACC,MAAOR,GAASE,GACpBE,EAAA,OAAA","sourcesContent":["body,\nhtml {\n user-select: none;\n -webkit-tap-highlight-color: rgb(0 0 0 / 0%);\n}\n\ntaro-view-core {\n display: block;\n}\n","import { Component, Prop, h, ComponentInterface, Host, Listen, State, Event, EventEmitter, Element } from '@stencil/core'\nimport classNames from 'classnames'\n\n@Component({\n tag: 'taro-view-core',\n styleUrl: './style/index.scss'\n})\nexport class View implements ComponentInterface {\n @Element() el: HTMLElement\n\n @Prop() animation: string\n @Prop() hoverClass: string\n @Prop() hoverStartTime = 50\n @Prop() hoverStayTime = 400\n @State() hover = false\n @State() touch = false\n\n @Event({\n eventName: 'longpress'\n }) onLongPress: EventEmitter\n\n private timeoutEvent: ReturnType<typeof setTimeout>\n private startTime = 0\n\n @Listen('touchstart')\n onTouchStart () {\n if (this.hoverClass) {\n this.touch = true\n setTimeout(() => {\n if (this.touch) {\n this.hover = true\n }\n }, this.hoverStartTime)\n }\n\n this.timeoutEvent = setTimeout(() => {\n this.onLongPress.emit()\n }, 350)\n this.startTime = Date.now()\n }\n\n @Listen('touchmove')\n onTouchMove () {\n clearTimeout(this.timeoutEvent)\n }\n\n @Listen('touchend')\n onTouchEnd () {\n const spanTime = Date.now() - this.startTime\n if (spanTime < 350) {\n clearTimeout(this.timeoutEvent)\n }\n if (this.hoverClass) {\n this.touch = false\n setTimeout(() => {\n if (!this.touch) {\n this.hover = false\n }\n }, this.hoverStayTime)\n }\n }\n\n componentDidRender () {\n const el = this.el\n el.childNodes.forEach(item => {\n // Note: ['s-cn'] Content Reference Node\n if (item.nodeType === document.COMMENT_NODE && item['s-cn']) item['s-cn'] = false\n // Note: ['s-sr'] Is a slot reference node (渲染完成后禁用 slotRelocation 特性, 避免 Stencil 组件相互调用时内置排序与第三方 UI 框架冲突导致组件顺序混乱)\n if (item.nodeType !== document.COMMENT_NODE && item['s-sr']) item['s-sr'] = false\n })\n }\n\n render() {\n const cls = classNames({\n [`${this.hoverClass}`]: this.hover\n })\n let attr = {}\n if (!!this.animation) {\n attr['animation'] = this.animation\n attr['data-animation'] = this.animation\n }\n return (\n <Host class={cls} {...attr}>\n <slot></slot>\n </Host>\n )\n }\n}\n"]}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
System.register(["./p-8a8f286f.system.js","./p-15e45ed6.system.js","@tarojs/taro"],(function(t){"use strict";var n,e,o,r;return{setters:[function(t){n=t.r;e=t.h;o=t.H},function(t){r=t.n},function(){}],execute:function(){var i=t("taro_comment_detail_core",function(){function t(t){n(this,t)}t.prototype.componentDidLoad=function(){r("CommentDetail",this)};t.prototype.render=function(){return e(o,null)};return t}())}}}));
|
|
2
|
+
//# sourceMappingURL=p-1a47133c.system.entry.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["src/components/comment/comment-detail.tsx"],"names":["CommentDetail","exports","class_1","prototype","componentDidLoad","notSupport","this","render","h","Host"],"mappings":"gOAOaA,EAAaC,EAAA,2BAAA,mCACxBC,EAAAC,UAAAC,iBAAA,WACEC,EAAW,gBAAiBC,OAG9BJ,EAAAC,UAAAI,OAAA,WACE,OACEC,EAACC,EAAI,gBAPe","sourcesContent":["import { Component, ComponentInterface, h, Host } from '@stencil/core'\n\nimport { notSupport } from '../../utils'\n\n@Component({\n tag: 'taro-comment-detail-core'\n})\nexport class CommentDetail implements ComponentInterface {\n componentDidLoad () {\n notSupport('CommentDetail', this)\n }\n\n render () {\n return (\n <Host />\n )\n }\n}\n"]}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
System.register(["./p-8a8f286f.system.js","./p-15e45ed6.system.js","@tarojs/taro"],(function(t){"use strict";var n,e,r,o;return{setters:[function(t){n=t.r;e=t.h;r=t.H},function(t){o=t.n},function(){}],execute:function(){var s=t("taro_tabs_core",function(){function t(t){n(this,t)}t.prototype.componentDidLoad=function(){o("Tabs",this)};t.prototype.render=function(){return e(r,null)};return t}())}}}));
|
|
2
|
+
//# sourceMappingURL=p-1ad0aa95.system.entry.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["src/components/tabs/tabs.tsx"],"names":["Tabs","exports","class_1","prototype","componentDidLoad","notSupport","this","render","h","Host"],"mappings":"gOAOaA,EAAIC,EAAA,iBAAA,mCACfC,EAAAC,UAAAC,iBAAA,WACEC,EAAW,OAAQC,OAGrBJ,EAAAC,UAAAI,OAAA,WACE,OACEC,EAACC,EAAI,gBAPM","sourcesContent":["import { Component, ComponentInterface, h, Host } from '@stencil/core'\n\nimport { notSupport } from '../../utils'\n\n@Component({\n tag: 'taro-tabs-core'\n})\nexport class Tabs implements ComponentInterface {\n componentDidLoad () {\n notSupport('Tabs', this)\n }\n\n render () {\n return (\n <Host />\n )\n }\n}\n"]}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
System.register(["./p-8a8f286f.system.js","./p-15e45ed6.system.js","@tarojs/taro"],(function(t){"use strict";var n,e,o,r;return{setters:[function(t){n=t.r;e=t.h;o=t.H},function(t){r=t.n},function(){}],execute:function(){var s=t("taro_slot_core",function(){function t(t){n(this,t)}t.prototype.componentDidLoad=function(){r("Slot",this)};t.prototype.render=function(){return e(o,null)};return t}())}}}));
|
|
2
|
+
//# sourceMappingURL=p-1b1420c9.system.entry.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["src/components/slot/slot.tsx"],"names":["Slot","exports","class_1","prototype","componentDidLoad","notSupport","this","render","h","Host"],"mappings":"gOAOaA,EAAIC,EAAA,iBAAA,mCACfC,EAAAC,UAAAC,iBAAA,WACEC,EAAW,OAAQC,OAGrBJ,EAAAC,UAAAI,OAAA,WACE,OACEC,EAACC,EAAI,gBAPM","sourcesContent":["import { Component, ComponentInterface, h, Host } from '@stencil/core'\n\nimport { notSupport } from '../../utils'\n\n@Component({\n tag: 'taro-slot-core'\n})\nexport class Slot implements ComponentInterface {\n componentDidLoad () {\n notSupport('Slot', this)\n }\n\n render () {\n return (\n <Host />\n )\n }\n}\n"]}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{r,h as o,H as s}from"./p-5bfefd19.js";import{n as t}from"./p-6a96da58.js";import"@tarojs/taro";const a=class{constructor(o){r(this,o)}componentDidLoad(){t("Tabs",this)}render(){return o(s,null)}};export{a as taro_tabs_core};
|
|
2
|
+
//# sourceMappingURL=p-281a2bcf.entry.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["src/components/tabs/tabs.tsx"],"names":["Tabs","[object Object]","notSupport","this","h","Host"],"mappings":"4GAOaA,EAAI,+BACfC,mBACEC,EAAW,OAAQC,MAGrBF,SACE,OACEG,EAACC,EAAI","sourcesContent":["import { Component, ComponentInterface, h, Host } from '@stencil/core'\n\nimport { notSupport } from '../../utils'\n\n@Component({\n tag: 'taro-tabs-core'\n})\nexport class Tabs implements ComponentInterface {\n componentDidLoad () {\n notSupport('Tabs', this)\n }\n\n render () {\n return (\n <Host />\n )\n }\n}\n"]}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{r,h as t,H as o}from"./p-5bfefd19.js";import{n as a}from"./p-6a96da58.js";import"@tarojs/taro";const s=class{constructor(t){r(this,t)}componentDidLoad(){a("TabItem",this)}render(){return t(o,null)}};export{s as taro_tab_item_core};
|
|
2
|
+
//# sourceMappingURL=p-28dade4f.entry.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["src/components/tabs/tab-item.tsx"],"names":["TabItem","[object Object]","notSupport","this","h","Host"],"mappings":"4GAOaA,EAAO,+BAClBC,mBACEC,EAAW,UAAWC,MAGxBF,SACE,OACEG,EAACC,EAAI","sourcesContent":["import { Component, ComponentInterface, h, Host } from '@stencil/core'\n\nimport { notSupport } from '../../utils'\n\n@Component({\n tag: 'taro-tab-item-core'\n})\nexport class TabItem implements ComponentInterface {\n componentDidLoad () {\n notSupport('TabItem', this)\n }\n\n render () {\n return (\n <Host />\n )\n }\n}\n"]}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
System.register(["./p-8a8f286f.system.js","./p-15e45ed6.system.js","@tarojs/taro"],(function(t){"use strict";var n,r,e,o;return{setters:[function(t){n=t.r;r=t.h;e=t.H},function(t){o=t.n},function(){}],execute:function(){var s=t("taro_ar_camera_core",function(){function t(t){n(this,t)}t.prototype.componentDidLoad=function(){o("ArCamera",this)};t.prototype.render=function(){return r(e,null)};return t}())}}}));
|
|
2
|
+
//# sourceMappingURL=p-31e10d77.system.entry.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["src/components/ar-camera/ar-camera.tsx"],"names":["ArCamera","exports","class_1","prototype","componentDidLoad","notSupport","this","render","h","Host"],"mappings":"gOAOaA,EAAQC,EAAA,sBAAA,mCACnBC,EAAAC,UAAAC,iBAAA,WACEC,EAAW,WAAYC,OAGzBJ,EAAAC,UAAAI,OAAA,WACE,OACEC,EAACC,EAAI,gBAPU","sourcesContent":["import { Component, ComponentInterface, h, Host } from '@stencil/core'\n\nimport { notSupport } from '../../utils'\n\n@Component({\n tag: 'taro-ar-camera-core'\n})\nexport class ArCamera implements ComponentInterface {\n componentDidLoad () {\n notSupport('ArCamera', this)\n }\n\n render () {\n return (\n <Host />\n )\n }\n}\n"]}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
System.register(["./p-8a8f286f.system.js","./p-15e45ed6.system.js","@tarojs/taro"],(function(t){"use strict";var n,o,e,r;return{setters:[function(t){n=t.r;o=t.h;e=t.H},function(t){r=t.n},function(){}],execute:function(){var s=t("taro_follow_swan_core",function(){function t(t){n(this,t)}t.prototype.componentDidLoad=function(){r("FollowSwan",this)};t.prototype.render=function(){return o(e,null)};return t}())}}}));
|
|
2
|
+
//# sourceMappingURL=p-36c64ed0.system.entry.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["src/components/follow-swan/follow-swan.tsx"],"names":["FollowSwan","exports","class_1","prototype","componentDidLoad","notSupport","this","render","h","Host"],"mappings":"gOAOaA,EAAUC,EAAA,wBAAA,mCACrBC,EAAAC,UAAAC,iBAAA,WACEC,EAAW,aAAcC,OAG3BJ,EAAAC,UAAAI,OAAA,WACE,OACEC,EAACC,EAAI,gBAPY","sourcesContent":["import { Component, ComponentInterface, h, Host } from '@stencil/core'\n\nimport { notSupport } from '../../utils'\n\n@Component({\n tag: 'taro-follow-swan-core'\n})\nexport class FollowSwan implements ComponentInterface {\n componentDidLoad () {\n notSupport('FollowSwan', this)\n }\n\n render () {\n return (\n <Host />\n )\n }\n}\n"]}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{r,h as a,H as o}from"./p-5bfefd19.js";import{n as t}from"./p-6a96da58.js";import"@tarojs/taro";const s=class{constructor(a){r(this,a)}componentDidLoad(){t("AwemeData",this)}render(){return a(o,null)}};export{s as taro_aweme_data_core};
|
|
2
|
+
//# sourceMappingURL=p-37d71e63.entry.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["src/components/aweme-data/aweme-data.tsx"],"names":["AwemeData","[object Object]","notSupport","this","h","Host"],"mappings":"4GAOaA,EAAS,+BACpBC,mBACEC,EAAW,YAAaC,MAG1BF,SACE,OACEG,EAACC,EAAI","sourcesContent":["import { Component, ComponentInterface, h, Host } from '@stencil/core'\n\nimport { notSupport } from '../../utils'\n\n@Component({\n tag: 'taro-aweme-data-core'\n})\nexport class AwemeData implements ComponentInterface {\n componentDidLoad () {\n notSupport('AwemeData', this)\n }\n\n render () {\n return (\n <Host />\n )\n }\n}\n"]}
|