vite-plugin-taro-runtime 0.7.0 → 0.7.1-beta.2
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/README.md +10 -28
- package/dist/api/dist/env.d.ts +15 -0
- package/dist/api/dist/env.js +58 -0
- package/dist/api/dist/env.js.map +1 -0
- package/dist/api/dist/index.d.ts +2 -0
- package/dist/api/dist/index.js +28 -0
- package/dist/api/dist/index.js.map +1 -0
- package/dist/api/dist/interceptor/chain.d.ts +16 -0
- package/dist/api/dist/interceptor/chain.js +30 -0
- package/dist/api/dist/interceptor/chain.js.map +1 -0
- package/dist/api/dist/interceptor/index.d.ts +11 -0
- package/dist/api/dist/interceptor/index.js +30 -0
- package/dist/api/dist/interceptor/index.js.map +1 -0
- package/dist/api/dist/interceptor/interceptors.d.ts +3 -0
- package/dist/api/dist/interceptor/interceptors.js +48 -0
- package/dist/api/dist/interceptor/interceptors.js.map +1 -0
- package/dist/api/dist/tools.d.ts +4 -0
- package/dist/api/dist/tools.js +67 -0
- package/dist/api/dist/tools.js.map +1 -0
- package/dist/components/dist/components/helper.js +24 -0
- package/dist/components/dist/components/index.d.ts +130 -0
- package/dist/components/dist/components/index.js +103 -0
- package/dist/components/dist/components/index2.js +89 -0
- package/dist/components/dist/components/index3.js +39 -0
- package/dist/components/dist/components/picker-group.js +218 -0
- package/dist/components/dist/components/taro-ad-core.d.ts +11 -0
- package/dist/components/dist/components/taro-ad-core.js +33 -0
- package/dist/components/dist/components/taro-ad-custom-core.d.ts +11 -0
- package/dist/components/dist/components/taro-ad-custom-core.js +33 -0
- package/dist/components/dist/components/taro-animation-video-core.d.ts +11 -0
- package/dist/components/dist/components/taro-animation-video-core.js +33 -0
- package/dist/components/dist/components/taro-animation-view-core.d.ts +11 -0
- package/dist/components/dist/components/taro-animation-view-core.js +33 -0
- package/dist/components/dist/components/taro-ar-camera-core.d.ts +11 -0
- package/dist/components/dist/components/taro-ar-camera-core.js +33 -0
- package/dist/components/dist/components/taro-audio-core.d.ts +11 -0
- package/dist/components/dist/components/taro-audio-core.js +78 -0
- package/dist/components/dist/components/taro-aweme-data-core.d.ts +11 -0
- package/dist/components/dist/components/taro-aweme-data-core.js +33 -0
- package/dist/components/dist/components/taro-block-core.d.ts +11 -0
- package/dist/components/dist/components/taro-block-core.js +29 -0
- package/dist/components/dist/components/taro-button-core.d.ts +11 -0
- package/dist/components/dist/components/taro-button-core.js +100 -0
- package/dist/components/dist/components/taro-camera-core.d.ts +11 -0
- package/dist/components/dist/components/taro-camera-core.js +33 -0
- package/dist/components/dist/components/taro-canvas-core.d.ts +11 -0
- package/dist/components/dist/components/taro-canvas-core.js +69 -0
- package/dist/components/dist/components/taro-channel-live-core.d.ts +11 -0
- package/dist/components/dist/components/taro-channel-live-core.js +33 -0
- package/dist/components/dist/components/taro-channel-video-core.d.ts +11 -0
- package/dist/components/dist/components/taro-channel-video-core.js +33 -0
- package/dist/components/dist/components/taro-checkbox-core.d.ts +11 -0
- package/dist/components/dist/components/taro-checkbox-core.js +79 -0
- package/dist/components/dist/components/taro-checkbox-group-core.d.ts +11 -0
- package/dist/components/dist/components/taro-checkbox-group-core.js +88 -0
- package/dist/components/dist/components/taro-comment-detail-core.d.ts +11 -0
- package/dist/components/dist/components/taro-comment-detail-core.js +33 -0
- package/dist/components/dist/components/taro-comment-list-core.d.ts +11 -0
- package/dist/components/dist/components/taro-comment-list-core.js +33 -0
- package/dist/components/dist/components/taro-contact-button-core.d.ts +11 -0
- package/dist/components/dist/components/taro-contact-button-core.js +33 -0
- package/dist/components/dist/components/taro-cover-image-core.d.ts +11 -0
- package/dist/components/dist/components/taro-cover-image-core.js +50 -0
- package/dist/components/dist/components/taro-cover-view-core.d.ts +11 -0
- package/dist/components/dist/components/taro-cover-view-core.js +87 -0
- package/dist/components/dist/components/taro-custom-wrapper-core.d.ts +11 -0
- package/dist/components/dist/components/taro-custom-wrapper-core.js +29 -0
- package/dist/components/dist/components/taro-double-tap-gesture-handler-core.d.ts +11 -0
- package/dist/components/dist/components/taro-double-tap-gesture-handler-core.js +33 -0
- package/dist/components/dist/components/taro-draggable-sheet-core.d.ts +11 -0
- package/dist/components/dist/components/taro-draggable-sheet-core.js +33 -0
- package/dist/components/dist/components/taro-editor-core.d.ts +11 -0
- package/dist/components/dist/components/taro-editor-core.js +33 -0
- package/dist/components/dist/components/taro-follow-swan-core.d.ts +11 -0
- package/dist/components/dist/components/taro-follow-swan-core.js +33 -0
- package/dist/components/dist/components/taro-force-press-gesture-handler-core.d.ts +11 -0
- package/dist/components/dist/components/taro-force-press-gesture-handler-core.js +33 -0
- package/dist/components/dist/components/taro-form-core.d.ts +11 -0
- package/dist/components/dist/components/taro-form-core.js +156 -0
- package/dist/components/dist/components/taro-functional-page-navigator-core.d.ts +11 -0
- package/dist/components/dist/components/taro-functional-page-navigator-core.js +33 -0
- package/dist/components/dist/components/taro-grid-builder-core.d.ts +11 -0
- package/dist/components/dist/components/taro-grid-builder-core.js +33 -0
- package/dist/components/dist/components/taro-grid-view-core.d.ts +11 -0
- package/dist/components/dist/components/taro-grid-view-core.js +33 -0
- package/dist/components/dist/components/taro-horizontal-drag-gesture-handler-core.d.ts +11 -0
- package/dist/components/dist/components/taro-horizontal-drag-gesture-handler-core.js +33 -0
- package/dist/components/dist/components/taro-icon-core.d.ts +11 -0
- package/dist/components/dist/components/taro-icon-core.js +49 -0
- package/dist/components/dist/components/taro-image-core.d.ts +11 -0
- package/dist/components/dist/components/taro-image-core.js +82 -0
- package/dist/components/dist/components/taro-inline-payment-panel-core.d.ts +11 -0
- package/dist/components/dist/components/taro-inline-payment-panel-core.js +33 -0
- package/dist/components/dist/components/taro-input-core.d.ts +11 -0
- package/dist/components/dist/components/taro-input-core.js +241 -0
- package/dist/components/dist/components/taro-keyboard-accessory-core.d.ts +11 -0
- package/dist/components/dist/components/taro-keyboard-accessory-core.js +33 -0
- package/dist/components/dist/components/taro-label-core.d.ts +11 -0
- package/dist/components/dist/components/taro-label-core.js +32 -0
- package/dist/components/dist/components/taro-lifestyle-core.d.ts +11 -0
- package/dist/components/dist/components/taro-lifestyle-core.js +33 -0
- package/dist/components/dist/components/taro-like-core.d.ts +11 -0
- package/dist/components/dist/components/taro-like-core.js +33 -0
- package/dist/components/dist/components/taro-list-builder-core.d.ts +11 -0
- package/dist/components/dist/components/taro-list-builder-core.js +33 -0
- package/dist/components/dist/components/taro-list-view-core.d.ts +11 -0
- package/dist/components/dist/components/taro-list-view-core.js +33 -0
- package/dist/components/dist/components/taro-live-player-core.d.ts +11 -0
- package/dist/components/dist/components/taro-live-player-core.js +33 -0
- package/dist/components/dist/components/taro-live-pusher-core.d.ts +11 -0
- package/dist/components/dist/components/taro-live-pusher-core.js +33 -0
- package/dist/components/dist/components/taro-login-core.d.ts +11 -0
- package/dist/components/dist/components/taro-login-core.js +33 -0
- package/dist/components/dist/components/taro-long-press-gesture-handler-core.d.ts +11 -0
- package/dist/components/dist/components/taro-long-press-gesture-handler-core.js +33 -0
- package/dist/components/dist/components/taro-lottie-core.d.ts +11 -0
- package/dist/components/dist/components/taro-lottie-core.js +33 -0
- package/dist/components/dist/components/taro-map-core.d.ts +11 -0
- package/dist/components/dist/components/taro-map-core.js +1376 -0
- package/dist/components/dist/components/taro-match-media-core.d.ts +11 -0
- package/dist/components/dist/components/taro-match-media-core.js +33 -0
- package/dist/components/dist/components/taro-movable-area-core.d.ts +11 -0
- package/dist/components/dist/components/taro-movable-area-core.js +174 -0
- package/dist/components/dist/components/taro-movable-view-core.d.ts +11 -0
- package/dist/components/dist/components/taro-movable-view-core.js +361 -0
- package/dist/components/dist/components/taro-native-slot-core.d.ts +11 -0
- package/dist/components/dist/components/taro-native-slot-core.js +33 -0
- package/dist/components/dist/components/taro-navigation-bar-core.d.ts +11 -0
- package/dist/components/dist/components/taro-navigation-bar-core.js +33 -0
- package/dist/components/dist/components/taro-navigator-core.d.ts +11 -0
- package/dist/components/dist/components/taro-navigator-core.js +94 -0
- package/dist/components/dist/components/taro-nested-scroll-body-core.d.ts +11 -0
- package/dist/components/dist/components/taro-nested-scroll-body-core.js +33 -0
- package/dist/components/dist/components/taro-nested-scroll-header-core.d.ts +11 -0
- package/dist/components/dist/components/taro-nested-scroll-header-core.js +33 -0
- package/dist/components/dist/components/taro-official-account-core.d.ts +11 -0
- package/dist/components/dist/components/taro-official-account-core.js +33 -0
- package/dist/components/dist/components/taro-open-container-core.d.ts +11 -0
- package/dist/components/dist/components/taro-open-container-core.js +33 -0
- package/dist/components/dist/components/taro-open-data-core.d.ts +11 -0
- package/dist/components/dist/components/taro-open-data-core.js +33 -0
- package/dist/components/dist/components/taro-open-embedded-atomicservice-core.d.ts +11 -0
- package/dist/components/dist/components/taro-open-embedded-atomicservice-core.js +33 -0
- package/dist/components/dist/components/taro-page-container-core.d.ts +11 -0
- package/dist/components/dist/components/taro-page-container-core.js +33 -0
- package/dist/components/dist/components/taro-page-meta-core.d.ts +11 -0
- package/dist/components/dist/components/taro-page-meta-core.js +33 -0
- package/dist/components/dist/components/taro-pan-gesture-handler-core.d.ts +11 -0
- package/dist/components/dist/components/taro-pan-gesture-handler-core.js +33 -0
- package/dist/components/dist/components/taro-picker-core.d.ts +11 -0
- package/dist/components/dist/components/taro-picker-core.js +540 -0
- package/dist/components/dist/components/taro-picker-group.d.ts +11 -0
- package/dist/components/dist/components/taro-picker-group.js +6 -0
- package/dist/components/dist/components/taro-picker-view-column-core.d.ts +11 -0
- package/dist/components/dist/components/taro-picker-view-column-core.js +103 -0
- package/dist/components/dist/components/taro-picker-view-core.d.ts +11 -0
- package/dist/components/dist/components/taro-picker-view-core.js +121 -0
- package/dist/components/dist/components/taro-progress-core.d.ts +11 -0
- package/dist/components/dist/components/taro-progress-core.js +63 -0
- package/dist/components/dist/components/taro-pull-to-refresh-core.d.ts +11 -0
- package/dist/components/dist/components/taro-pull-to-refresh-core.js +287 -0
- package/dist/components/dist/components/taro-radio-core.d.ts +11 -0
- package/dist/components/dist/components/taro-radio-core.js +81 -0
- package/dist/components/dist/components/taro-radio-group-core.d.ts +11 -0
- package/dist/components/dist/components/taro-radio-group-core.js +99 -0
- package/dist/components/dist/components/taro-rich-text-core.d.ts +11 -0
- package/dist/components/dist/components/taro-rich-text-core.js +93 -0
- package/dist/components/dist/components/taro-root-portal-core.d.ts +11 -0
- package/dist/components/dist/components/taro-root-portal-core.js +33 -0
- package/dist/components/dist/components/taro-rtc-room-core.d.ts +11 -0
- package/dist/components/dist/components/taro-rtc-room-core.js +33 -0
- package/dist/components/dist/components/taro-rtc-room-item-core.d.ts +11 -0
- package/dist/components/dist/components/taro-rtc-room-item-core.js +33 -0
- package/dist/components/dist/components/taro-scale-gesture-handler-core.d.ts +11 -0
- package/dist/components/dist/components/taro-scale-gesture-handler-core.js +33 -0
- package/dist/components/dist/components/taro-script-core.d.ts +11 -0
- package/dist/components/dist/components/taro-script-core.js +33 -0
- package/dist/components/dist/components/taro-scroll-view-core.d.ts +11 -0
- package/dist/components/dist/components/taro-scroll-view-core.js +199 -0
- package/dist/components/dist/components/taro-share-element-core.d.ts +11 -0
- package/dist/components/dist/components/taro-share-element-core.js +33 -0
- package/dist/components/dist/components/taro-slider-core.d.ts +11 -0
- package/dist/components/dist/components/taro-slider-core.js +197 -0
- package/dist/components/dist/components/taro-slot-core.d.ts +11 -0
- package/dist/components/dist/components/taro-slot-core.js +33 -0
- package/dist/components/dist/components/taro-snapshot-core.d.ts +11 -0
- package/dist/components/dist/components/taro-snapshot-core.js +33 -0
- package/dist/components/dist/components/taro-span-core.d.ts +11 -0
- package/dist/components/dist/components/taro-span-core.js +33 -0
- package/dist/components/dist/components/taro-sticky-header-core.d.ts +11 -0
- package/dist/components/dist/components/taro-sticky-header-core.js +33 -0
- package/dist/components/dist/components/taro-sticky-section-core.d.ts +11 -0
- package/dist/components/dist/components/taro-sticky-section-core.js +33 -0
- package/dist/components/dist/components/taro-swiper-core.d.ts +11 -0
- package/dist/components/dist/components/taro-swiper-core.js +438 -0
- package/dist/components/dist/components/taro-swiper-item-core.d.ts +11 -0
- package/dist/components/dist/components/taro-swiper-item-core.js +42 -0
- package/dist/components/dist/components/taro-switch-core.d.ts +11 -0
- package/dist/components/dist/components/taro-switch-core.js +85 -0
- package/dist/components/dist/components/taro-tab-item-core.d.ts +11 -0
- package/dist/components/dist/components/taro-tab-item-core.js +33 -0
- package/dist/components/dist/components/taro-tabbar.d.ts +11 -0
- package/dist/components/dist/components/taro-tabbar.js +371 -0
- package/dist/components/dist/components/taro-tabs-core.d.ts +11 -0
- package/dist/components/dist/components/taro-tabs-core.js +33 -0
- package/dist/components/dist/components/taro-tap-gesture-handler-core.d.ts +11 -0
- package/dist/components/dist/components/taro-tap-gesture-handler-core.js +33 -0
- package/dist/components/dist/components/taro-text-core.d.ts +11 -0
- package/dist/components/dist/components/taro-text-core.js +45 -0
- package/dist/components/dist/components/taro-textarea-core.d.ts +11 -0
- package/dist/components/dist/components/taro-textarea-core.js +285 -0
- package/dist/components/dist/components/taro-vertical-drag-gesture-handler-core.d.ts +11 -0
- package/dist/components/dist/components/taro-vertical-drag-gesture-handler-core.js +33 -0
- package/dist/components/dist/components/taro-video-control.d.ts +11 -0
- package/dist/components/dist/components/taro-video-control.js +6 -0
- package/dist/components/dist/components/taro-video-core.d.ts +11 -0
- package/dist/components/dist/components/taro-video-core.js +500 -0
- package/dist/components/dist/components/taro-video-danmu.d.ts +11 -0
- package/dist/components/dist/components/taro-video-danmu.js +6 -0
- package/dist/components/dist/components/taro-view-core.d.ts +11 -0
- package/dist/components/dist/components/taro-view-core.js +92 -0
- package/dist/components/dist/components/taro-voip-room-core.d.ts +11 -0
- package/dist/components/dist/components/taro-voip-room-core.js +33 -0
- package/dist/components/dist/components/taro-web-view-core.d.ts +11 -0
- package/dist/components/dist/components/taro-web-view-core.js +44 -0
- package/dist/components/dist/components/video-control.js +240 -0
- package/dist/components/dist/components/video-danmu.js +108 -0
- package/dist/components/dist/taro-components/taro-components.css +1 -0
- package/dist/components/global.css +1 -0
- package/dist/components/lib/react/component-lib/index.d.ts +54 -0
- package/dist/components/lib/react/component-lib/index.js +68 -0
- package/dist/components/lib/react/component-lib/index.js.map +1 -0
- package/dist/components/lib/react/component-lib/input.d.ts +3 -0
- package/dist/components/lib/react/component-lib/input.js +17 -0
- package/dist/components/lib/react/component-lib/input.js.map +1 -0
- package/dist/components/lib/react/component-lib/reactify-wc.d.ts +7 -0
- package/dist/components/lib/react/component-lib/reactify-wc.js +176 -0
- package/dist/components/lib/react/component-lib/reactify-wc.js.map +1 -0
- package/dist/components/lib/react/components.d.ts +103 -0
- package/dist/components/lib/react/components.js +112 -0
- package/dist/components/lib/react/components.js.map +1 -0
- package/dist/components/lib/react/helper.d.ts +10 -0
- package/dist/components/lib/react/helper.js +10 -0
- package/dist/components/lib/react/helper.js.map +1 -0
- package/dist/components/lib/react/index.d.ts +1 -0
- package/dist/components/lib/react/index.js +2 -0
- package/dist/components/lib/react/index.js.map +1 -0
- package/dist/components/lib/react/node_modules/.pnpm/@rollup_plugin-typescript@11.1.6_rollup@4.39.0_tslib@2.8.1_typescript@5.4.5/node_modules/tslib/tslib.es6.js +405 -0
- package/dist/components/lib/react/node_modules/.pnpm/@rollup_plugin-typescript@11.1.6_rollup@4.39.0_tslib@2.8.1_typescript@5.4.5/node_modules/tslib/tslib.es6.js.map +1 -0
- package/dist/components/lib/react/react-component-lib/createComponent.d.ts +14 -0
- package/dist/components/lib/react/react-component-lib/createComponent.js +73 -0
- package/dist/components/lib/react/react-component-lib/createComponent.js.map +1 -0
- package/dist/components/lib/react/react-component-lib/createOverlayComponent.d.ts +25 -0
- package/dist/components/lib/react/react-component-lib/createOverlayComponent.js +94 -0
- package/dist/components/lib/react/react-component-lib/createOverlayComponent.js.map +1 -0
- package/dist/components/lib/react/react-component-lib/index.d.ts +2 -0
- package/dist/components/lib/react/react-component-lib/index.js +3 -0
- package/dist/components/lib/react/react-component-lib/index.js.map +1 -0
- package/dist/components/lib/react/react-component-lib/interfaces.d.ts +33 -0
- package/dist/components/lib/react/react-component-lib/utils/attachProps.d.ts +18 -0
- package/dist/components/lib/react/react-component-lib/utils/attachProps.js +182 -0
- package/dist/components/lib/react/react-component-lib/utils/attachProps.js.map +1 -0
- package/dist/components/lib/react/react-component-lib/utils/case.d.ts +6 -0
- package/dist/components/lib/react/react-component-lib/utils/case.js +13 -0
- package/dist/components/lib/react/react-component-lib/utils/case.js.map +1 -0
- package/dist/components/lib/react/react-component-lib/utils/dev.d.ts +6 -0
- package/dist/components/lib/react/react-component-lib/utils/index.d.ts +14 -0
- package/dist/components/lib/react/react-component-lib/utils/index.js +39 -0
- package/dist/components/lib/react/react-component-lib/utils/index.js.map +1 -0
- package/dist/components/types/Ad.d.ts +205 -0
- package/dist/components/types/AdCustom.d.ts +44 -0
- package/dist/components/types/AnimationVideo.d.ts +53 -0
- package/dist/components/types/AnimationView.d.ts +39 -0
- package/dist/components/types/ArCamera.d.ts +43 -0
- package/dist/components/types/Audio.d.ts +135 -0
- package/dist/components/types/AwemeData.d.ts +37 -0
- package/dist/components/types/Block.d.ts +9 -0
- package/dist/components/types/Button.d.ts +740 -0
- package/dist/components/types/Camera.d.ts +128 -0
- package/dist/components/types/Canvas.d.ts +98 -0
- package/dist/components/types/ChannelLive.d.ts +20 -0
- package/dist/components/types/ChannelVideo.d.ts +48 -0
- package/dist/components/types/Checkbox.d.ts +167 -0
- package/dist/components/types/CheckboxGroup.d.ts +81 -0
- package/dist/components/types/CommentDetail.d.ts +66 -0
- package/dist/components/types/CommentList.d.ts +112 -0
- package/dist/components/types/ContactButton.d.ts +46 -0
- package/dist/components/types/CoverImage.d.ts +151 -0
- package/dist/components/types/CoverView.d.ts +219 -0
- package/dist/components/types/CustomWrapper.d.ts +31 -0
- package/dist/components/types/DraggableSheet.d.ts +52 -0
- package/dist/components/types/Editor.d.ts +143 -0
- package/dist/components/types/FollowSwan.d.ts +25 -0
- package/dist/components/types/Form.d.ts +130 -0
- package/dist/components/types/FunctionalPageNavigator.d.ts +56 -0
- package/dist/components/types/GridBuilder.d.ts +72 -0
- package/dist/components/types/GridView.d.ts +51 -0
- package/dist/components/types/Icon.d.ts +97 -0
- package/dist/components/types/Image.d.ts +175 -0
- package/dist/components/types/InlinePaymentPanel.d.ts +49 -0
- package/dist/components/types/Input.d.ts +353 -0
- package/dist/components/types/KeyboardAccessory.d.ts +42 -0
- package/dist/components/types/Label.d.ts +52 -0
- package/dist/components/types/Lifestyle.d.ts +23 -0
- package/dist/components/types/Like.d.ts +90 -0
- package/dist/components/types/List.d.ts +38 -0
- package/dist/components/types/ListBuilder.d.ts +55 -0
- package/dist/components/types/ListItem.d.ts +6 -0
- package/dist/components/types/ListView.d.ts +19 -0
- package/dist/components/types/LivePlayer.d.ts +261 -0
- package/dist/components/types/LivePusher.d.ts +360 -0
- package/dist/components/types/Login.d.ts +40 -0
- package/dist/components/types/Lottie.d.ts +97 -0
- package/dist/components/types/Map.d.ts +732 -0
- package/dist/components/types/MatchMedia.d.ts +70 -0
- package/dist/components/types/MovableArea.d.ts +34 -0
- package/dist/components/types/MovableView.d.ts +180 -0
- package/dist/components/types/NativeSlot.d.ts +35 -0
- package/dist/components/types/NavigationBar.d.ts +44 -0
- package/dist/components/types/Navigator.d.ts +118 -0
- package/dist/components/types/NestedScrollBody.d.ts +15 -0
- package/dist/components/types/NestedScrollHeader.d.ts +15 -0
- package/dist/components/types/OfficialAccount.d.ts +58 -0
- package/dist/components/types/OpenContainer.d.ts +74 -0
- package/dist/components/types/OpenData.d.ts +98 -0
- package/dist/components/types/OpenEmbeddedAtomicservice.d.ts +52 -0
- package/dist/components/types/PageContainer.d.ts +110 -0
- package/dist/components/types/PageMeta.d.ts +133 -0
- package/dist/components/types/Picker.d.ts +452 -0
- package/dist/components/types/PickerView.d.ts +198 -0
- package/dist/components/types/PickerViewColumn.d.ts +12 -0
- package/dist/components/types/Progress.d.ts +105 -0
- package/dist/components/types/PullToRefresh.d.ts +26 -0
- package/dist/components/types/Radio.d.ts +187 -0
- package/dist/components/types/RadioGroup.d.ts +24 -0
- package/dist/components/types/RichText.d.ts +166 -0
- package/dist/components/types/RootPortal.d.ts +40 -0
- package/dist/components/types/RtcRoom.d.ts +88 -0
- package/dist/components/types/RtcRoomItem.d.ts +23 -0
- package/dist/components/types/Script.d.ts +37 -0
- package/dist/components/types/ScrollView.d.ts +510 -0
- package/dist/components/types/ShareElement.d.ts +270 -0
- package/dist/components/types/Slider.d.ts +145 -0
- package/dist/components/types/Slot.d.ts +42 -0
- package/dist/components/types/Snapshot.d.ts +25 -0
- package/dist/components/types/Span.d.ts +14 -0
- package/dist/components/types/StickyHeader.d.ts +31 -0
- package/dist/components/types/StickySection.d.ts +23 -0
- package/dist/components/types/Swiper.d.ts +339 -0
- package/dist/components/types/SwiperItem.d.ts +77 -0
- package/dist/components/types/Switch.d.ts +96 -0
- package/dist/components/types/TabItem.d.ts +31 -0
- package/dist/components/types/Tabs.d.ts +50 -0
- package/dist/components/types/Text.d.ts +146 -0
- package/dist/components/types/Textarea.d.ts +252 -0
- package/dist/components/types/Video.d.ts +604 -0
- package/dist/components/types/View.d.ts +183 -0
- package/dist/components/types/VoipRoom.d.ts +67 -0
- package/dist/components/types/WebView.d.ts +68 -0
- package/dist/components/types/common.d.ts +185 -0
- package/dist/components/types/event.d.ts +7 -0
- package/dist/components/types/gesture/DoubleTapGestureHandler.d.ts +53 -0
- package/dist/components/types/gesture/ForcePressGestureHandler.d.ts +49 -0
- package/dist/components/types/gesture/HorizontalDragGestureHandler.d.ts +53 -0
- package/dist/components/types/gesture/LongPressGestureHandler.d.ts +53 -0
- package/dist/components/types/gesture/PanGestureHandler.d.ts +53 -0
- package/dist/components/types/gesture/ScaleGestureHandler.d.ts +53 -0
- package/dist/components/types/gesture/TapGestureHandler.d.ts +53 -0
- package/dist/components/types/gesture/VerticalDragGestureHandler.d.ts +53 -0
- package/dist/components/types/global.d.ts +4 -0
- package/dist/components/types/index.d.ts +128 -0
- package/dist/components/types/index.solid.d.ts +301 -0
- package/dist/components/types/index.vue3.d.ts +337 -0
- package/dist/components/types/props.d.ts +72 -0
- package/dist/plugin-framework-react/runtime.js +1080 -0
- package/dist/plugin-framework-react/runtime.js.map +1 -0
- package/dist/plugin-platform-alipay/components-react.js +54 -0
- package/dist/plugin-platform-alipay/components-react.js.map +1 -0
- package/dist/plugin-platform-alipay/runtime-utils.js +854 -0
- package/dist/plugin-platform-alipay/runtime-utils.js.map +1 -0
- package/dist/plugin-platform-alipay/runtime.js +864 -0
- package/dist/plugin-platform-alipay/runtime.js.map +1 -0
- package/dist/plugin-platform-alipay/types/apis-list.d.ts +1 -0
- package/dist/plugin-platform-alipay/types/apis.d.ts +9 -0
- package/dist/plugin-platform-alipay/types/components-react.d.ts +10 -0
- package/dist/plugin-platform-alipay/types/components.d.ts +202 -0
- package/dist/plugin-platform-alipay/types/index.d.ts +5 -0
- package/dist/plugin-platform-alipay/types/program.d.ts +51 -0
- package/dist/plugin-platform-alipay/types/runtime-utils.d.ts +19 -0
- package/dist/plugin-platform-alipay/types/runtime.d.ts +1 -0
- package/dist/plugin-platform-alipay/types/template.d.ts +39 -0
- package/dist/plugin-platform-h5/definition.json +2481 -0
- package/dist/plugin-platform-h5/runtime/apis/index.d.ts +5 -0
- package/dist/plugin-platform-h5/runtime/apis/index.js +29 -0
- package/dist/plugin-platform-h5/runtime/apis/index.js.map +1 -0
- package/dist/plugin-platform-h5/runtime/apis/taro-h5.d.ts +1 -0
- package/dist/plugin-platform-h5/runtime/apis/taro-h5.js +2 -0
- package/dist/plugin-platform-h5/runtime/apis/taro-h5.js.map +1 -0
- package/dist/plugin-platform-h5/runtime/apis/taro.d.ts +2 -0
- package/dist/plugin-platform-h5/runtime/apis/taro.js +3 -0
- package/dist/plugin-platform-h5/runtime/apis/taro.js.map +1 -0
- package/dist/plugin-platform-weapp/components-react.js +81 -0
- package/dist/plugin-platform-weapp/components-react.js.map +1 -0
- package/dist/plugin-platform-weapp/runtime-utils.js +613 -0
- package/dist/plugin-platform-weapp/runtime-utils.js.map +1 -0
- package/dist/plugin-platform-weapp/runtime.js +614 -0
- package/dist/plugin-platform-weapp/runtime.js.map +1 -0
- package/dist/plugin-platform-weapp/types/apis-list.d.ts +1 -0
- package/dist/plugin-platform-weapp/types/apis.d.ts +1 -0
- package/dist/plugin-platform-weapp/types/components-react.d.ts +37 -0
- package/dist/plugin-platform-weapp/types/components.d.ts +503 -0
- package/dist/plugin-platform-weapp/types/index.d.ts +8 -0
- package/dist/plugin-platform-weapp/types/program.d.ts +35 -0
- package/dist/plugin-platform-weapp/types/runtime-utils.d.ts +13 -0
- package/dist/plugin-platform-weapp/types/runtime.d.ts +1 -0
- package/dist/plugin-platform-weapp/types/template.d.ts +25 -0
- package/dist/react/componentTree.d.ts +19 -0
- package/dist/react/constant.d.ts +7 -0
- package/dist/react/domInput.d.ts +12 -0
- package/dist/react/event.d.ts +13 -0
- package/dist/react/index.d.ts +33 -0
- package/dist/react/inputValueTracking.d.ts +3 -0
- package/dist/react/props.d.ts +5 -0
- package/dist/react/react.esm.js +1165 -0
- package/dist/react/react.esm.js.map +1 -0
- package/dist/react/reconciler.d.ts +4 -0
- package/dist/react/render.d.ts +25 -0
- package/dist/react/workTags.d.ts +26 -0
- package/dist/router/dist/api.d.ts +7 -0
- package/dist/router/dist/events/resize.d.ts +2 -0
- package/dist/router/dist/events/scroll.d.ts +2 -0
- package/dist/router/dist/history.d.ts +26 -0
- package/dist/router/dist/index.d.ts +9 -0
- package/dist/router/dist/index.esm.js +1755 -0
- package/dist/router/dist/navigationBar.d.ts +2 -0
- package/dist/router/dist/router/index.d.ts +11 -0
- package/dist/router/dist/router/mpa.d.ts +11 -0
- package/dist/router/dist/router/multi-page.d.ts +33 -0
- package/dist/router/dist/router/navigation-bar.d.ts +36 -0
- package/dist/router/dist/router/page.d.ts +53 -0
- package/dist/router/dist/router/spa.d.ts +4 -0
- package/dist/router/dist/router/stack.d.ts +26 -0
- package/dist/router/dist/style.d.ts +13 -0
- package/dist/router/dist/tabbar.d.ts +3 -0
- package/dist/router/dist/utils/index.d.ts +10 -0
- package/dist/router/dist/utils/navigate.d.ts +9 -0
- package/dist/router/types/api.d.ts +18 -0
- package/dist/router/types/component.d.ts +11 -0
- package/dist/router/types/history.d.ts +6 -0
- package/dist/router/types/router.d.ts +32 -0
- package/dist/router/types/taro.d.ts +8 -0
- package/dist/taro/index.js +9 -0
- package/dist/taro/package.json +76 -0
- package/dist/taro/types/api/ad/index.d.ts +197 -0
- package/dist/taro/types/api/ai/face.d.ts +133 -0
- package/dist/taro/types/api/ai/inference.d.ts +129 -0
- package/dist/taro/types/api/ai/visionkit.d.ts +874 -0
- package/dist/taro/types/api/alipay/index.d.ts +69 -0
- package/dist/taro/types/api/base/crypto.d.ts +104 -0
- package/dist/taro/types/api/base/debug.d.ts +329 -0
- package/dist/taro/types/api/base/env.d.ts +19 -0
- package/dist/taro/types/api/base/index.d.ts +102 -0
- package/dist/taro/types/api/base/performance.d.ts +258 -0
- package/dist/taro/types/api/base/system.d.ts +742 -0
- package/dist/taro/types/api/base/update.d.ts +130 -0
- package/dist/taro/types/api/base/weapp/app-event.d.ts +265 -0
- package/dist/taro/types/api/base/weapp/life-cycle.d.ts +155 -0
- package/dist/taro/types/api/canvas/index.d.ts +2162 -0
- package/dist/taro/types/api/cloud/index.d.ts +2622 -0
- package/dist/taro/types/api/data-analysis/index.d.ts +122 -0
- package/dist/taro/types/api/device/accelerometer.d.ts +102 -0
- package/dist/taro/types/api/device/accessibility.d.ts +26 -0
- package/dist/taro/types/api/device/battery.d.ts +46 -0
- package/dist/taro/types/api/device/bluetooth-ble.d.ts +601 -0
- package/dist/taro/types/api/device/bluetooth-peripheral.d.ts +430 -0
- package/dist/taro/types/api/device/bluetooth.d.ts +463 -0
- package/dist/taro/types/api/device/calendar.d.ts +98 -0
- package/dist/taro/types/api/device/clipboard.d.ts +81 -0
- package/dist/taro/types/api/device/compass.d.ts +105 -0
- package/dist/taro/types/api/device/contact.d.ts +110 -0
- package/dist/taro/types/api/device/gyroscope.d.ts +85 -0
- package/dist/taro/types/api/device/iBeacon.d.ts +168 -0
- package/dist/taro/types/api/device/keyboard.d.ts +97 -0
- package/dist/taro/types/api/device/memory.d.ts +52 -0
- package/dist/taro/types/api/device/motion.d.ts +88 -0
- package/dist/taro/types/api/device/network.d.ts +172 -0
- package/dist/taro/types/api/device/nfc.d.ts +1238 -0
- package/dist/taro/types/api/device/phone.d.ts +30 -0
- package/dist/taro/types/api/device/scan.d.ts +111 -0
- package/dist/taro/types/api/device/screen.d.ts +217 -0
- package/dist/taro/types/api/device/sms.d.ts +26 -0
- package/dist/taro/types/api/device/vibrate.d.ts +51 -0
- package/dist/taro/types/api/device/wifi.d.ts +301 -0
- package/dist/taro/types/api/ext/index.d.ts +64 -0
- package/dist/taro/types/api/files/index.d.ts +1472 -0
- package/dist/taro/types/api/framework/index.d.ts +51 -0
- package/dist/taro/types/api/location/index.d.ts +517 -0
- package/dist/taro/types/api/media/audio.d.ts +1013 -0
- package/dist/taro/types/api/media/background-audio.d.ts +291 -0
- package/dist/taro/types/api/media/camera.d.ts +207 -0
- package/dist/taro/types/api/media/editor.d.ts +239 -0
- package/dist/taro/types/api/media/image.d.ts +469 -0
- package/dist/taro/types/api/media/live.d.ts +461 -0
- package/dist/taro/types/api/media/map.d.ts +638 -0
- package/dist/taro/types/api/media/media-recorder.d.ts +117 -0
- package/dist/taro/types/api/media/recorder.d.ts +317 -0
- package/dist/taro/types/api/media/video-decoder.d.ts +117 -0
- package/dist/taro/types/api/media/video-processing.d.ts +84 -0
- package/dist/taro/types/api/media/video.d.ts +527 -0
- package/dist/taro/types/api/media/voip.d.ts +393 -0
- package/dist/taro/types/api/navigate/index.d.ts +327 -0
- package/dist/taro/types/api/network/download.d.ts +173 -0
- package/dist/taro/types/api/network/mdns.d.ts +191 -0
- package/dist/taro/types/api/network/request.d.ts +480 -0
- package/dist/taro/types/api/network/tcp.d.ts +181 -0
- package/dist/taro/types/api/network/udp.d.ts +218 -0
- package/dist/taro/types/api/network/upload.d.ts +201 -0
- package/dist/taro/types/api/network/websocket.d.ts +383 -0
- package/dist/taro/types/api/open-api/account.d.ts +51 -0
- package/dist/taro/types/api/open-api/address.d.ts +68 -0
- package/dist/taro/types/api/open-api/authorize.d.ts +80 -0
- package/dist/taro/types/api/open-api/card.d.ts +110 -0
- package/dist/taro/types/api/open-api/channels.d.ts +225 -0
- package/dist/taro/types/api/open-api/customer-service.d.ts +45 -0
- package/dist/taro/types/api/open-api/device-voip.d.ts +103 -0
- package/dist/taro/types/api/open-api/facial.d.ts +98 -0
- package/dist/taro/types/api/open-api/favorites.d.ts +101 -0
- package/dist/taro/types/api/open-api/group.d.ts +59 -0
- package/dist/taro/types/api/open-api/invoice.d.ts +87 -0
- package/dist/taro/types/api/open-api/license-plate.d.ts +27 -0
- package/dist/taro/types/api/open-api/login.d.ts +115 -0
- package/dist/taro/types/api/open-api/my-miniprogram.d.ts +28 -0
- package/dist/taro/types/api/open-api/privacy.d.ts +107 -0
- package/dist/taro/types/api/open-api/redpackage.d.ts +24 -0
- package/dist/taro/types/api/open-api/settings.d.ts +174 -0
- package/dist/taro/types/api/open-api/soter.d.ts +184 -0
- package/dist/taro/types/api/open-api/sticker.d.ts +83 -0
- package/dist/taro/types/api/open-api/subscribe-message.d.ts +305 -0
- package/dist/taro/types/api/open-api/user-info.d.ts +182 -0
- package/dist/taro/types/api/open-api/werun.d.ts +101 -0
- package/dist/taro/types/api/payment/index.d.ts +119 -0
- package/dist/taro/types/api/qq/index.d.ts +354 -0
- package/dist/taro/types/api/route/index.d.ts +324 -0
- package/dist/taro/types/api/share/index.d.ts +354 -0
- package/dist/taro/types/api/skyline/index.d.ts +345 -0
- package/dist/taro/types/api/storage/background-fetch.d.ts +131 -0
- package/dist/taro/types/api/storage/cache-manager.d.ts +249 -0
- package/dist/taro/types/api/storage/index.d.ts +397 -0
- package/dist/taro/types/api/swan/bookshelf.d.ts +307 -0
- package/dist/taro/types/api/swan/download-package.d.ts +80 -0
- package/dist/taro/types/api/swan/index.d.ts +251 -0
- package/dist/taro/types/api/swan/pay.d.ts +139 -0
- package/dist/taro/types/api/taro.extend.d.ts +233 -0
- package/dist/taro/types/api/taro.hooks.d.ts +148 -0
- package/dist/taro/types/api/ui/animation.d.ts +427 -0
- package/dist/taro/types/api/ui/background.d.ts +69 -0
- package/dist/taro/types/api/ui/custom-component.d.ts +23 -0
- package/dist/taro/types/api/ui/fonts.d.ts +77 -0
- package/dist/taro/types/api/ui/interaction.d.ts +281 -0
- package/dist/taro/types/api/ui/menu.d.ts +29 -0
- package/dist/taro/types/api/ui/navigation-bar.d.ts +130 -0
- package/dist/taro/types/api/ui/pull-down-refresh.d.ts +50 -0
- package/dist/taro/types/api/ui/scroll.d.ts +114 -0
- package/dist/taro/types/api/ui/sticky.d.ts +32 -0
- package/dist/taro/types/api/ui/tab-bar.d.ts +196 -0
- package/dist/taro/types/api/ui/window.d.ts +71 -0
- package/dist/taro/types/api/worker/index.d.ts +83 -0
- package/dist/taro/types/api/wxml/index.d.ts +540 -0
- package/dist/taro/types/compile/compiler.d.ts +32 -0
- package/dist/taro/types/compile/config/h5.d.ts +134 -0
- package/dist/taro/types/compile/config/harmony.d.ts +118 -0
- package/dist/taro/types/compile/config/index.d.ts +8 -0
- package/dist/taro/types/compile/config/manifest.d.ts +155 -0
- package/dist/taro/types/compile/config/mini.d.ts +120 -0
- package/dist/taro/types/compile/config/plugin.d.ts +34 -0
- package/dist/taro/types/compile/config/project.d.ts +338 -0
- package/dist/taro/types/compile/config/rn.d.ts +85 -0
- package/dist/taro/types/compile/config/util.d.ts +179 -0
- package/dist/taro/types/compile/hooks.d.ts +13 -0
- package/dist/taro/types/compile/index.d.ts +11 -0
- package/dist/taro/types/compile/viteCompilerContext.d.ts +167 -0
- package/dist/taro/types/global.d.ts +428 -0
- package/dist/taro/types/index.d.ts +196 -0
- package/dist/taro/types/taro.api.d.ts +130 -0
- package/dist/taro/types/taro.component.d.ts +168 -0
- package/dist/taro/types/taro.config.d.ts +712 -0
- package/dist/taro/types/taro.lifecycle.d.ts +220 -0
- package/dist/taro/types/taro.runtime.d.ts +9 -0
- package/dist/taro-h5/dist/api/ad/index.d.ts +2 -0
- package/dist/taro-h5/dist/api/ad/index.js +8 -0
- package/dist/taro-h5/dist/api/ad/index.js.map +1 -0
- package/dist/taro-h5/dist/api/ai/facial.d.ts +3 -0
- package/dist/taro-h5/dist/api/ai/facial.js +9 -0
- package/dist/taro-h5/dist/api/ai/facial.js.map +1 -0
- package/dist/taro-h5/dist/api/ai/index.d.ts +3 -0
- package/dist/taro-h5/dist/api/ai/index.js +4 -0
- package/dist/taro-h5/dist/api/ai/index.js.map +1 -0
- package/dist/taro-h5/dist/api/ai/inference.d.ts +2 -0
- package/dist/taro-h5/dist/api/ai/inference.js +8 -0
- package/dist/taro-h5/dist/api/ai/inference.js.map +1 -0
- package/dist/taro-h5/dist/api/ai/visual.d.ts +2 -0
- package/dist/taro-h5/dist/api/ai/visual.js +9 -0
- package/dist/taro-h5/dist/api/ai/visual.js.map +1 -0
- package/dist/taro-h5/dist/api/alipay/index.d.ts +2 -0
- package/dist/taro-h5/dist/api/alipay/index.js +8 -0
- package/dist/taro-h5/dist/api/alipay/index.js.map +1 -0
- package/dist/taro-h5/dist/api/base/crypto.d.ts +1 -0
- package/dist/taro-h5/dist/api/base/crypto.js +7 -0
- package/dist/taro-h5/dist/api/base/crypto.js.map +1 -0
- package/dist/taro-h5/dist/api/base/debug.d.ts +3 -0
- package/dist/taro-h5/dist/api/base/debug.js +8 -0
- package/dist/taro-h5/dist/api/base/debug.js.map +1 -0
- package/dist/taro-h5/dist/api/base/index.d.ts +15 -0
- package/dist/taro-h5/dist/api/base/index.js +26 -0
- package/dist/taro-h5/dist/api/base/index.js.map +1 -0
- package/dist/taro-h5/dist/api/base/performance.d.ts +5 -0
- package/dist/taro-h5/dist/api/base/performance.js +11 -0
- package/dist/taro-h5/dist/api/base/performance.js.map +1 -0
- package/dist/taro-h5/dist/api/base/system.d.ts +25 -0
- package/dist/taro-h5/dist/api/base/system.js +194 -0
- package/dist/taro-h5/dist/api/base/system.js.map +1 -0
- package/dist/taro-h5/dist/api/base/update.d.ts +2 -0
- package/dist/taro-h5/dist/api/base/update.js +8 -0
- package/dist/taro-h5/dist/api/base/update.js.map +1 -0
- package/dist/taro-h5/dist/api/base/weapp/app-event.d.ts +20 -0
- package/dist/taro-h5/dist/api/base/weapp/app-event.js +143 -0
- package/dist/taro-h5/dist/api/base/weapp/app-event.js.map +1 -0
- package/dist/taro-h5/dist/api/base/weapp/life-cycle.d.ts +4 -0
- package/dist/taro-h5/dist/api/base/weapp/life-cycle.js +19 -0
- package/dist/taro-h5/dist/api/base/weapp/life-cycle.js.map +1 -0
- package/dist/taro-h5/dist/api/canvas/CanvasContext.d.ts +106 -0
- package/dist/taro-h5/dist/api/canvas/CanvasContext.js +219 -0
- package/dist/taro-h5/dist/api/canvas/CanvasContext.js.map +1 -0
- package/dist/taro-h5/dist/api/canvas/canvasGetImageData.d.ts +6 -0
- package/dist/taro-h5/dist/api/canvas/canvasGetImageData.js +29 -0
- package/dist/taro-h5/dist/api/canvas/canvasGetImageData.js.map +1 -0
- package/dist/taro-h5/dist/api/canvas/canvasPutImageData.d.ts +7 -0
- package/dist/taro-h5/dist/api/canvas/canvasPutImageData.js +26 -0
- package/dist/taro-h5/dist/api/canvas/canvasPutImageData.js.map +1 -0
- package/dist/taro-h5/dist/api/canvas/canvasToTempFilePath.d.ts +7 -0
- package/dist/taro-h5/dist/api/canvas/canvasToTempFilePath.js +26 -0
- package/dist/taro-h5/dist/api/canvas/canvasToTempFilePath.js.map +1 -0
- package/dist/taro-h5/dist/api/canvas/createCanvasContext.d.ts +6 -0
- package/dist/taro-h5/dist/api/canvas/createCanvasContext.js +20 -0
- package/dist/taro-h5/dist/api/canvas/createCanvasContext.js.map +1 -0
- package/dist/taro-h5/dist/api/canvas/index.d.ts +10 -0
- package/dist/taro-h5/dist/api/canvas/index.js +12 -0
- package/dist/taro-h5/dist/api/canvas/index.js.map +1 -0
- package/dist/taro-h5/dist/api/cloud/index.d.ts +14 -0
- package/dist/taro-h5/dist/api/cloud/index.js +25 -0
- package/dist/taro-h5/dist/api/cloud/index.js.map +1 -0
- package/dist/taro-h5/dist/api/data-analysis/index.d.ts +4 -0
- package/dist/taro-h5/dist/api/data-analysis/index.js +9 -0
- package/dist/taro-h5/dist/api/data-analysis/index.js.map +1 -0
- package/dist/taro-h5/dist/api/device/accelerometer.d.ts +18 -0
- package/dist/taro-h5/dist/api/device/accelerometer.js +79 -0
- package/dist/taro-h5/dist/api/device/accelerometer.js.map +1 -0
- package/dist/taro-h5/dist/api/device/accessibility.d.ts +1 -0
- package/dist/taro-h5/dist/api/device/accessibility.js +7 -0
- package/dist/taro-h5/dist/api/device/accessibility.js.map +1 -0
- package/dist/taro-h5/dist/api/device/battery.d.ts +4 -0
- package/dist/taro-h5/dist/api/device/battery.js +27 -0
- package/dist/taro-h5/dist/api/device/battery.js.map +1 -0
- package/dist/taro-h5/dist/api/device/bluetooth-ble.d.ts +16 -0
- package/dist/taro-h5/dist/api/device/bluetooth-ble.js +22 -0
- package/dist/taro-h5/dist/api/device/bluetooth-ble.js.map +1 -0
- package/dist/taro-h5/dist/api/device/bluetooth-peripheral.d.ts +3 -0
- package/dist/taro-h5/dist/api/device/bluetooth-peripheral.js +9 -0
- package/dist/taro-h5/dist/api/device/bluetooth-peripheral.js.map +1 -0
- package/dist/taro-h5/dist/api/device/bluetooth.d.ts +13 -0
- package/dist/taro-h5/dist/api/device/bluetooth.js +19 -0
- package/dist/taro-h5/dist/api/device/bluetooth.js.map +1 -0
- package/dist/taro-h5/dist/api/device/calendar.d.ts +4 -0
- package/dist/taro-h5/dist/api/device/calendar.js +147 -0
- package/dist/taro-h5/dist/api/device/calendar.js.map +1 -0
- package/dist/taro-h5/dist/api/device/clipboard.d.ts +16 -0
- package/dist/taro-h5/dist/api/device/clipboard.js +77 -0
- package/dist/taro-h5/dist/api/device/clipboard.js.map +1 -0
- package/dist/taro-h5/dist/api/device/compass.d.ts +18 -0
- package/dist/taro-h5/dist/api/device/compass.js +82 -0
- package/dist/taro-h5/dist/api/device/compass.js.map +1 -0
- package/dist/taro-h5/dist/api/device/contact.d.ts +2 -0
- package/dist/taro-h5/dist/api/device/contact.js +8 -0
- package/dist/taro-h5/dist/api/device/contact.js.map +1 -0
- package/dist/taro-h5/dist/api/device/crypto.d.ts +1 -0
- package/dist/taro-h5/dist/api/device/crypto.js +7 -0
- package/dist/taro-h5/dist/api/device/crypto.js.map +1 -0
- package/dist/taro-h5/dist/api/device/gyroscope.d.ts +4 -0
- package/dist/taro-h5/dist/api/device/gyroscope.js +10 -0
- package/dist/taro-h5/dist/api/device/gyroscope.js.map +1 -0
- package/dist/taro-h5/dist/api/device/iBeacon.d.ts +7 -0
- package/dist/taro-h5/dist/api/device/iBeacon.js +13 -0
- package/dist/taro-h5/dist/api/device/iBeacon.js.map +1 -0
- package/dist/taro-h5/dist/api/device/index.d.ts +24 -0
- package/dist/taro-h5/dist/api/device/index.js +25 -0
- package/dist/taro-h5/dist/api/device/index.js.map +1 -0
- package/dist/taro-h5/dist/api/device/keyboard.d.ts +4 -0
- package/dist/taro-h5/dist/api/device/keyboard.js +10 -0
- package/dist/taro-h5/dist/api/device/keyboard.js.map +1 -0
- package/dist/taro-h5/dist/api/device/memory.d.ts +2 -0
- package/dist/taro-h5/dist/api/device/memory.js +8 -0
- package/dist/taro-h5/dist/api/device/memory.js.map +1 -0
- package/dist/taro-h5/dist/api/device/motion.d.ts +18 -0
- package/dist/taro-h5/dist/api/device/motion.js +76 -0
- package/dist/taro-h5/dist/api/device/motion.js.map +1 -0
- package/dist/taro-h5/dist/api/device/network.d.ts +15 -0
- package/dist/taro-h5/dist/api/device/network.js +83 -0
- package/dist/taro-h5/dist/api/device/network.js.map +1 -0
- package/dist/taro-h5/dist/api/device/nfc.d.ts +7 -0
- package/dist/taro-h5/dist/api/device/nfc.js +13 -0
- package/dist/taro-h5/dist/api/device/nfc.js.map +1 -0
- package/dist/taro-h5/dist/api/device/phone.d.ts +3 -0
- package/dist/taro-h5/dist/api/device/phone.js +28 -0
- package/dist/taro-h5/dist/api/device/phone.js.map +1 -0
- package/dist/taro-h5/dist/api/device/scan.d.ts +3 -0
- package/dist/taro-h5/dist/api/device/scan.js +14 -0
- package/dist/taro-h5/dist/api/device/scan.js.map +1 -0
- package/dist/taro-h5/dist/api/device/screen.d.ts +9 -0
- package/dist/taro-h5/dist/api/device/screen.js +15 -0
- package/dist/taro-h5/dist/api/device/screen.js.map +1 -0
- package/dist/taro-h5/dist/api/device/sms.d.ts +1 -0
- package/dist/taro-h5/dist/api/device/sms.js +7 -0
- package/dist/taro-h5/dist/api/device/sms.js.map +1 -0
- package/dist/taro-h5/dist/api/device/vibrate.d.ts +10 -0
- package/dist/taro-h5/dist/api/device/vibrate.js +44 -0
- package/dist/taro-h5/dist/api/device/vibrate.js.map +1 -0
- package/dist/taro-h5/dist/api/device/wifi.d.ts +12 -0
- package/dist/taro-h5/dist/api/device/wifi.js +18 -0
- package/dist/taro-h5/dist/api/device/wifi.js.map +1 -0
- package/dist/taro-h5/dist/api/ext/index.d.ts +2 -0
- package/dist/taro-h5/dist/api/ext/index.js +8 -0
- package/dist/taro-h5/dist/api/ext/index.js.map +1 -0
- package/dist/taro-h5/dist/api/files/index.d.ts +8 -0
- package/dist/taro-h5/dist/api/files/index.js +14 -0
- package/dist/taro-h5/dist/api/files/index.js.map +1 -0
- package/dist/taro-h5/dist/api/framework/index.d.ts +5 -0
- package/dist/taro-h5/dist/api/framework/index.js +11 -0
- package/dist/taro-h5/dist/api/framework/index.js.map +1 -0
- package/dist/taro-h5/dist/api/index.d.ts +25 -0
- package/dist/taro-h5/dist/api/index.js +133 -0
- package/dist/taro-h5/dist/api/index.js.map +1 -0
- package/dist/taro-h5/dist/api/location/chooseLocation.d.ts +7 -0
- package/dist/taro-h5/dist/api/location/chooseLocation.js +105 -0
- package/dist/taro-h5/dist/api/location/chooseLocation.js.map +1 -0
- package/dist/taro-h5/dist/api/location/getLocation.d.ts +3 -0
- package/dist/taro-h5/dist/api/location/getLocation.js +68 -0
- package/dist/taro-h5/dist/api/location/getLocation.js.map +1 -0
- package/dist/taro-h5/dist/api/location/index.d.ts +9 -0
- package/dist/taro-h5/dist/api/location/index.js +15 -0
- package/dist/taro-h5/dist/api/location/index.js.map +1 -0
- package/dist/taro-h5/dist/api/location/locationChange.d.ts +6 -0
- package/dist/taro-h5/dist/api/location/locationChange.js +130 -0
- package/dist/taro-h5/dist/api/location/locationChange.js.map +1 -0
- package/dist/taro-h5/dist/api/location/style.scss.js +8 -0
- package/dist/taro-h5/dist/api/location/style.scss.js.map +1 -0
- package/dist/taro-h5/dist/api/location/utils.d.ts +1 -0
- package/dist/taro-h5/dist/api/location/utils.js +4 -0
- package/dist/taro-h5/dist/api/location/utils.js.map +1 -0
- package/dist/taro-h5/dist/api/media/EditorContext.d.ts +17 -0
- package/dist/taro-h5/dist/api/media/audio/InnerAudioContext.d.ts +61 -0
- package/dist/taro-h5/dist/api/media/audio/InnerAudioContext.js +101 -0
- package/dist/taro-h5/dist/api/media/audio/InnerAudioContext.js.map +1 -0
- package/dist/taro-h5/dist/api/media/audio/index.d.ts +14 -0
- package/dist/taro-h5/dist/api/media/audio/index.js +19 -0
- package/dist/taro-h5/dist/api/media/audio/index.js.map +1 -0
- package/dist/taro-h5/dist/api/media/background-audio/BackgroundAudioManager.d.ts +64 -0
- package/dist/taro-h5/dist/api/media/background-audio/BackgroundAudioManager.js +101 -0
- package/dist/taro-h5/dist/api/media/background-audio/BackgroundAudioManager.js.map +1 -0
- package/dist/taro-h5/dist/api/media/background-audio/index.d.ts +13 -0
- package/dist/taro-h5/dist/api/media/background-audio/index.js +24 -0
- package/dist/taro-h5/dist/api/media/background-audio/index.js.map +1 -0
- package/dist/taro-h5/dist/api/media/camera.d.ts +1 -0
- package/dist/taro-h5/dist/api/media/camera.js +7 -0
- package/dist/taro-h5/dist/api/media/camera.js.map +1 -0
- package/dist/taro-h5/dist/api/media/image/chooseImage.d.ts +7 -0
- package/dist/taro-h5/dist/api/media/image/chooseImage.js +46 -0
- package/dist/taro-h5/dist/api/media/image/chooseImage.js.map +1 -0
- package/dist/taro-h5/dist/api/media/image/getImageInfo.d.ts +6 -0
- package/dist/taro-h5/dist/api/media/image/getImageInfo.js +50 -0
- package/dist/taro-h5/dist/api/media/image/getImageInfo.js.map +1 -0
- package/dist/taro-h5/dist/api/media/image/index.d.ts +11 -0
- package/dist/taro-h5/dist/api/media/image/index.js +14 -0
- package/dist/taro-h5/dist/api/media/image/index.js.map +1 -0
- package/dist/taro-h5/dist/api/media/image/previewImage.d.ts +9 -0
- package/dist/taro-h5/dist/api/media/image/previewImage.js +85 -0
- package/dist/taro-h5/dist/api/media/image/previewImage.js.map +1 -0
- package/dist/taro-h5/dist/api/media/image/saveImageToPhotosAlbum.d.ts +3 -0
- package/dist/taro-h5/dist/api/media/image/saveImageToPhotosAlbum.js +30 -0
- package/dist/taro-h5/dist/api/media/image/saveImageToPhotosAlbum.js.map +1 -0
- package/dist/taro-h5/dist/api/media/index.d.ts +12 -0
- package/dist/taro-h5/dist/api/media/index.js +13 -0
- package/dist/taro-h5/dist/api/media/index.js.map +1 -0
- package/dist/taro-h5/dist/api/media/live.d.ts +2 -0
- package/dist/taro-h5/dist/api/media/live.js +8 -0
- package/dist/taro-h5/dist/api/media/live.js.map +1 -0
- package/dist/taro-h5/dist/api/media/map.d.ts +1 -0
- package/dist/taro-h5/dist/api/media/map.js +7 -0
- package/dist/taro-h5/dist/api/media/map.js.map +1 -0
- package/dist/taro-h5/dist/api/media/media-recorder.d.ts +1 -0
- package/dist/taro-h5/dist/api/media/media-recorder.js +7 -0
- package/dist/taro-h5/dist/api/media/media-recorder.js.map +1 -0
- package/dist/taro-h5/dist/api/media/recorder.d.ts +3 -0
- package/dist/taro-h5/dist/api/media/recorder.js +9 -0
- package/dist/taro-h5/dist/api/media/recorder.js.map +1 -0
- package/dist/taro-h5/dist/api/media/video/chooseMedia.d.ts +6 -0
- package/dist/taro-h5/dist/api/media/video/chooseMedia.js +210 -0
- package/dist/taro-h5/dist/api/media/video/chooseMedia.js.map +1 -0
- package/dist/taro-h5/dist/api/media/video/chooseVideo.d.ts +7 -0
- package/dist/taro-h5/dist/api/media/video/chooseVideo.js +44 -0
- package/dist/taro-h5/dist/api/media/video/chooseVideo.js.map +1 -0
- package/dist/taro-h5/dist/api/media/video/getVideoInfo.d.ts +4 -0
- package/dist/taro-h5/dist/api/media/video/getVideoInfo.js +63 -0
- package/dist/taro-h5/dist/api/media/video/getVideoInfo.js.map +1 -0
- package/dist/taro-h5/dist/api/media/video/index.d.ts +12 -0
- package/dist/taro-h5/dist/api/media/video/index.js +19 -0
- package/dist/taro-h5/dist/api/media/video/index.js.map +1 -0
- package/dist/taro-h5/dist/api/media/video/saveVideoToPhotosAlbum.d.ts +3 -0
- package/dist/taro-h5/dist/api/media/video/saveVideoToPhotosAlbum.js +30 -0
- package/dist/taro-h5/dist/api/media/video/saveVideoToPhotosAlbum.js.map +1 -0
- package/dist/taro-h5/dist/api/media/video-decoder.d.ts +1 -0
- package/dist/taro-h5/dist/api/media/video-decoder.js +7 -0
- package/dist/taro-h5/dist/api/media/video-decoder.js.map +1 -0
- package/dist/taro-h5/dist/api/media/video-processing.d.ts +1 -0
- package/dist/taro-h5/dist/api/media/video-processing.js +7 -0
- package/dist/taro-h5/dist/api/media/video-processing.js.map +1 -0
- package/dist/taro-h5/dist/api/media/voip.d.ts +16 -0
- package/dist/taro-h5/dist/api/media/voip.js +22 -0
- package/dist/taro-h5/dist/api/media/voip.js.map +1 -0
- package/dist/taro-h5/dist/api/navigate/index.d.ts +5 -0
- package/dist/taro-h5/dist/api/navigate/index.js +11 -0
- package/dist/taro-h5/dist/api/navigate/index.js.map +1 -0
- package/dist/taro-h5/dist/api/network/download.d.ts +7 -0
- package/dist/taro-h5/dist/api/network/download.js +138 -0
- package/dist/taro-h5/dist/api/network/download.js.map +1 -0
- package/dist/taro-h5/dist/api/network/index.d.ts +7 -0
- package/dist/taro-h5/dist/api/network/index.js +8 -0
- package/dist/taro-h5/dist/api/network/index.js.map +1 -0
- package/dist/taro-h5/dist/api/network/mdns.d.ts +10 -0
- package/dist/taro-h5/dist/api/network/mdns.js +16 -0
- package/dist/taro-h5/dist/api/network/mdns.js.map +1 -0
- package/dist/taro-h5/dist/api/network/request/index.d.ts +7 -0
- package/dist/taro-h5/dist/api/network/request/index.js +179 -0
- package/dist/taro-h5/dist/api/network/request/index.js.map +1 -0
- package/dist/taro-h5/dist/api/network/tcp.d.ts +1 -0
- package/dist/taro-h5/dist/api/network/tcp.js +7 -0
- package/dist/taro-h5/dist/api/network/tcp.js.map +1 -0
- package/dist/taro-h5/dist/api/network/udp.d.ts +1 -0
- package/dist/taro-h5/dist/api/network/udp.js +7 -0
- package/dist/taro-h5/dist/api/network/udp.js.map +1 -0
- package/dist/taro-h5/dist/api/network/upload.d.ts +6 -0
- package/dist/taro-h5/dist/api/network/upload.js +159 -0
- package/dist/taro-h5/dist/api/network/upload.js.map +1 -0
- package/dist/taro-h5/dist/api/network/utils.d.ts +44 -0
- package/dist/taro-h5/dist/api/network/utils.js +69 -0
- package/dist/taro-h5/dist/api/network/utils.js.map +1 -0
- package/dist/taro-h5/dist/api/network/websocket/index.d.ts +9 -0
- package/dist/taro-h5/dist/api/network/websocket/index.js +74 -0
- package/dist/taro-h5/dist/api/network/websocket/index.js.map +1 -0
- package/dist/taro-h5/dist/api/network/websocket/socketTask.d.ts +26 -0
- package/dist/taro-h5/dist/api/network/websocket/socketTask.js +68 -0
- package/dist/taro-h5/dist/api/network/websocket/socketTask.js.map +1 -0
- package/dist/taro-h5/dist/api/open-api/account.d.ts +1 -0
- package/dist/taro-h5/dist/api/open-api/account.js +7 -0
- package/dist/taro-h5/dist/api/open-api/account.js.map +1 -0
- package/dist/taro-h5/dist/api/open-api/address.d.ts +1 -0
- package/dist/taro-h5/dist/api/open-api/address.js +7 -0
- package/dist/taro-h5/dist/api/open-api/address.js.map +1 -0
- package/dist/taro-h5/dist/api/open-api/authorize.d.ts +2 -0
- package/dist/taro-h5/dist/api/open-api/authorize.js +8 -0
- package/dist/taro-h5/dist/api/open-api/authorize.js.map +1 -0
- package/dist/taro-h5/dist/api/open-api/card.d.ts +2 -0
- package/dist/taro-h5/dist/api/open-api/card.js +8 -0
- package/dist/taro-h5/dist/api/open-api/card.js.map +1 -0
- package/dist/taro-h5/dist/api/open-api/channels-live.d.ts +8 -0
- package/dist/taro-h5/dist/api/open-api/channels-live.js +14 -0
- package/dist/taro-h5/dist/api/open-api/channels-live.js.map +1 -0
- package/dist/taro-h5/dist/api/open-api/customer-service.d.ts +1 -0
- package/dist/taro-h5/dist/api/open-api/customer-service.js +7 -0
- package/dist/taro-h5/dist/api/open-api/customer-service.js.map +1 -0
- package/dist/taro-h5/dist/api/open-api/device-voip.d.ts +2 -0
- package/dist/taro-h5/dist/api/open-api/device-voip.js +8 -0
- package/dist/taro-h5/dist/api/open-api/device-voip.js.map +1 -0
- package/dist/taro-h5/dist/api/open-api/facial.d.ts +4 -0
- package/dist/taro-h5/dist/api/open-api/facial.js +10 -0
- package/dist/taro-h5/dist/api/open-api/facial.js.map +1 -0
- package/dist/taro-h5/dist/api/open-api/favorites.d.ts +2 -0
- package/dist/taro-h5/dist/api/open-api/favorites.js +8 -0
- package/dist/taro-h5/dist/api/open-api/favorites.js.map +1 -0
- package/dist/taro-h5/dist/api/open-api/group.d.ts +1 -0
- package/dist/taro-h5/dist/api/open-api/group.js +7 -0
- package/dist/taro-h5/dist/api/open-api/group.js.map +1 -0
- package/dist/taro-h5/dist/api/open-api/index.d.ts +21 -0
- package/dist/taro-h5/dist/api/open-api/index.js +22 -0
- package/dist/taro-h5/dist/api/open-api/index.js.map +1 -0
- package/dist/taro-h5/dist/api/open-api/invoice.d.ts +2 -0
- package/dist/taro-h5/dist/api/open-api/invoice.js +8 -0
- package/dist/taro-h5/dist/api/open-api/invoice.js.map +1 -0
- package/dist/taro-h5/dist/api/open-api/license-plate.d.ts +1 -0
- package/dist/taro-h5/dist/api/open-api/license-plate.js +7 -0
- package/dist/taro-h5/dist/api/open-api/license-plate.js.map +1 -0
- package/dist/taro-h5/dist/api/open-api/login.d.ts +3 -0
- package/dist/taro-h5/dist/api/open-api/login.js +9 -0
- package/dist/taro-h5/dist/api/open-api/login.js.map +1 -0
- package/dist/taro-h5/dist/api/open-api/my-miniprogram.d.ts +1 -0
- package/dist/taro-h5/dist/api/open-api/my-miniprogram.js +7 -0
- package/dist/taro-h5/dist/api/open-api/my-miniprogram.js.map +1 -0
- package/dist/taro-h5/dist/api/open-api/privacy.d.ts +4 -0
- package/dist/taro-h5/dist/api/open-api/privacy.js +10 -0
- package/dist/taro-h5/dist/api/open-api/privacy.js.map +1 -0
- package/dist/taro-h5/dist/api/open-api/red-package.d.ts +1 -0
- package/dist/taro-h5/dist/api/open-api/red-package.js +7 -0
- package/dist/taro-h5/dist/api/open-api/red-package.js.map +1 -0
- package/dist/taro-h5/dist/api/open-api/settings.d.ts +2 -0
- package/dist/taro-h5/dist/api/open-api/settings.js +8 -0
- package/dist/taro-h5/dist/api/open-api/settings.js.map +1 -0
- package/dist/taro-h5/dist/api/open-api/soter.d.ts +3 -0
- package/dist/taro-h5/dist/api/open-api/soter.js +9 -0
- package/dist/taro-h5/dist/api/open-api/soter.js.map +1 -0
- package/dist/taro-h5/dist/api/open-api/subscribe-message.d.ts +2 -0
- package/dist/taro-h5/dist/api/open-api/subscribe-message.js +9 -0
- package/dist/taro-h5/dist/api/open-api/subscribe-message.js.map +1 -0
- package/dist/taro-h5/dist/api/open-api/user-info.d.ts +2 -0
- package/dist/taro-h5/dist/api/open-api/user-info.js +8 -0
- package/dist/taro-h5/dist/api/open-api/user-info.js.map +1 -0
- package/dist/taro-h5/dist/api/open-api/werun.d.ts +2 -0
- package/dist/taro-h5/dist/api/open-api/werun.js +8 -0
- package/dist/taro-h5/dist/api/open-api/werun.js.map +1 -0
- package/dist/taro-h5/dist/api/payment/index.d.ts +3 -0
- package/dist/taro-h5/dist/api/payment/index.js +9 -0
- package/dist/taro-h5/dist/api/payment/index.js.map +1 -0
- package/dist/taro-h5/dist/api/qq/index.d.ts +9 -0
- package/dist/taro-h5/dist/api/qq/index.js +15 -0
- package/dist/taro-h5/dist/api/qq/index.js.map +1 -0
- package/dist/taro-h5/dist/api/route/index.d.ts +7 -0
- package/dist/taro-h5/dist/api/route/index.js +12 -0
- package/dist/taro-h5/dist/api/route/index.js.map +1 -0
- package/dist/taro-h5/dist/api/share/index.d.ts +20 -0
- package/dist/taro-h5/dist/api/share/index.js +26 -0
- package/dist/taro-h5/dist/api/share/index.js.map +1 -0
- package/dist/taro-h5/dist/api/storage/background-fetch.d.ts +4 -0
- package/dist/taro-h5/dist/api/storage/background-fetch.js +10 -0
- package/dist/taro-h5/dist/api/storage/background-fetch.js.map +1 -0
- package/dist/taro-h5/dist/api/storage/cache-manager.d.ts +1 -0
- package/dist/taro-h5/dist/api/storage/cache-manager.js +7 -0
- package/dist/taro-h5/dist/api/storage/cache-manager.js.map +1 -0
- package/dist/taro-h5/dist/api/storage/index.d.ts +20 -0
- package/dist/taro-h5/dist/api/storage/index.js +166 -0
- package/dist/taro-h5/dist/api/storage/index.js.map +1 -0
- package/dist/taro-h5/dist/api/swan/index.d.ts +21 -0
- package/dist/taro-h5/dist/api/swan/index.js +30 -0
- package/dist/taro-h5/dist/api/swan/index.js.map +1 -0
- package/dist/taro-h5/dist/api/taro.d.ts +25 -0
- package/dist/taro-h5/dist/api/taro.js +114 -0
- package/dist/taro-h5/dist/api/taro.js.map +1 -0
- package/dist/taro-h5/dist/api/ui/animation/index.d.ts +3 -0
- package/dist/taro-h5/dist/api/ui/animation/index.js +321 -0
- package/dist/taro-h5/dist/api/ui/animation/index.js.map +1 -0
- package/dist/taro-h5/dist/api/ui/animation/worklet.d.ts +2 -0
- package/dist/taro-h5/dist/api/ui/animation/worklet.js +24 -0
- package/dist/taro-h5/dist/api/ui/animation/worklet.js.map +1 -0
- package/dist/taro-h5/dist/api/ui/background.d.ts +2 -0
- package/dist/taro-h5/dist/api/ui/background.js +8 -0
- package/dist/taro-h5/dist/api/ui/background.js.map +1 -0
- package/dist/taro-h5/dist/api/ui/custom-component.d.ts +1 -0
- package/dist/taro-h5/dist/api/ui/custom-component.js +7 -0
- package/dist/taro-h5/dist/api/ui/custom-component.js.map +1 -0
- package/dist/taro-h5/dist/api/ui/fonts.d.ts +3 -0
- package/dist/taro-h5/dist/api/ui/fonts.js +57 -0
- package/dist/taro-h5/dist/api/ui/fonts.js.map +1 -0
- package/dist/taro-h5/dist/api/ui/index.d.ts +13 -0
- package/dist/taro-h5/dist/api/ui/index.js +14 -0
- package/dist/taro-h5/dist/api/ui/index.js.map +1 -0
- package/dist/taro-h5/dist/api/ui/interaction/actionSheet.d.ts +74 -0
- package/dist/taro-h5/dist/api/ui/interaction/actionSheet.js +212 -0
- package/dist/taro-h5/dist/api/ui/interaction/actionSheet.js.map +1 -0
- package/dist/taro-h5/dist/api/ui/interaction/index.d.ts +11 -0
- package/dist/taro-h5/dist/api/ui/interaction/index.js +279 -0
- package/dist/taro-h5/dist/api/ui/interaction/index.js.map +1 -0
- package/dist/taro-h5/dist/api/ui/interaction/modal.d.ts +72 -0
- package/dist/taro-h5/dist/api/ui/interaction/modal.js +207 -0
- package/dist/taro-h5/dist/api/ui/interaction/modal.js.map +1 -0
- package/dist/taro-h5/dist/api/ui/interaction/toast.d.ts +86 -0
- package/dist/taro-h5/dist/api/ui/interaction/toast.js +185 -0
- package/dist/taro-h5/dist/api/ui/interaction/toast.js.map +1 -0
- package/dist/taro-h5/dist/api/ui/menu.d.ts +1 -0
- package/dist/taro-h5/dist/api/ui/menu.js +7 -0
- package/dist/taro-h5/dist/api/ui/menu.js.map +1 -0
- package/dist/taro-h5/dist/api/ui/navigation-bar/index.d.ts +16 -0
- package/dist/taro-h5/dist/api/ui/navigation-bar/index.js +62 -0
- package/dist/taro-h5/dist/api/ui/navigation-bar/index.js.map +1 -0
- package/dist/taro-h5/dist/api/ui/pull-down-refresh.d.ts +10 -0
- package/dist/taro-h5/dist/api/ui/pull-down-refresh.js +30 -0
- package/dist/taro-h5/dist/api/ui/pull-down-refresh.js.map +1 -0
- package/dist/taro-h5/dist/api/ui/scroll/index.d.ts +6 -0
- package/dist/taro-h5/dist/api/ui/scroll/index.js +89 -0
- package/dist/taro-h5/dist/api/ui/scroll/index.js.map +1 -0
- package/dist/taro-h5/dist/api/ui/sticky.d.ts +1 -0
- package/dist/taro-h5/dist/api/ui/sticky.js +7 -0
- package/dist/taro-h5/dist/api/ui/sticky.js.map +1 -0
- package/dist/taro-h5/dist/api/ui/tab-bar.d.ts +35 -0
- package/dist/taro-h5/dist/api/ui/tab-bar.js +287 -0
- package/dist/taro-h5/dist/api/ui/tab-bar.js.map +1 -0
- package/dist/taro-h5/dist/api/ui/window.d.ts +15 -0
- package/dist/taro-h5/dist/api/ui/window.js +36 -0
- package/dist/taro-h5/dist/api/ui/window.js.map +1 -0
- package/dist/taro-h5/dist/api/worker/index.d.ts +1 -0
- package/dist/taro-h5/dist/api/worker/index.js +7 -0
- package/dist/taro-h5/dist/api/worker/index.js.map +1 -0
- package/dist/taro-h5/dist/api/wxml/IntersectionObserver.d.ts +21 -0
- package/dist/taro-h5/dist/api/wxml/IntersectionObserver.js +113 -0
- package/dist/taro-h5/dist/api/wxml/IntersectionObserver.js.map +1 -0
- package/dist/taro-h5/dist/api/wxml/MediaQueryObserver.d.ts +8 -0
- package/dist/taro-h5/dist/api/wxml/MediaQueryObserver.js +55 -0
- package/dist/taro-h5/dist/api/wxml/MediaQueryObserver.js.map +1 -0
- package/dist/taro-h5/dist/api/wxml/index.d.ts +7 -0
- package/dist/taro-h5/dist/api/wxml/index.js +17 -0
- package/dist/taro-h5/dist/api/wxml/index.js.map +1 -0
- package/dist/taro-h5/dist/api/wxml/nodesRef.d.ts +15 -0
- package/dist/taro-h5/dist/api/wxml/nodesRef.js +48 -0
- package/dist/taro-h5/dist/api/wxml/nodesRef.js.map +1 -0
- package/dist/taro-h5/dist/api/wxml/selectorQuery.d.ts +25 -0
- package/dist/taro-h5/dist/api/wxml/selectorQuery.js +214 -0
- package/dist/taro-h5/dist/api/wxml/selectorQuery.js.map +1 -0
- package/dist/taro-h5/dist/node_modules/.pnpm/style-inject@0.3.0/node_modules/style-inject/dist/style-inject.es.js +29 -0
- package/dist/taro-h5/dist/node_modules/.pnpm/style-inject@0.3.0/node_modules/style-inject/dist/style-inject.es.js.map +1 -0
- package/dist/taro-h5/dist/utils/animation.d.ts +6 -0
- package/dist/taro-h5/dist/utils/animation.js +17 -0
- package/dist/taro-h5/dist/utils/animation.js.map +1 -0
- package/dist/taro-h5/dist/utils/handler.d.ts +42 -0
- package/dist/taro-h5/dist/utils/handler.js +86 -0
- package/dist/taro-h5/dist/utils/handler.js.map +1 -0
- package/dist/taro-h5/dist/utils/helper.d.ts +1 -0
- package/dist/taro-h5/dist/utils/helper.js +11 -0
- package/dist/taro-h5/dist/utils/helper.js.map +1 -0
- package/dist/taro-h5/dist/utils/index.d.ts +40 -0
- package/dist/taro-h5/dist/utils/index.js +181 -0
- package/dist/taro-h5/dist/utils/index.js.map +1 -0
- package/dist/taro-h5/dist/utils/valid.d.ts +1 -0
- package/dist/taro-h5/dist/utils/valid.js +7 -0
- package/dist/taro-h5/dist/utils/valid.js.map +1 -0
- package/dist/taro-h5/types/api.d.ts +4 -0
- package/dist/taro-h5/types/component.d.ts +6 -0
- package/dist/taro-h5/types/define.d.ts +2 -0
- package/dist/taro-h5/types/global.d.ts +1 -0
- package/dist/taro-h5/types/index.d.ts +33 -0
- package/dist/taro-h5/types/overlay.d.ts +9 -0
- package/package.json +143 -8
- package/dist/index.cjs.d.ts +0 -921
- package/dist/index.cjs.js +0 -5406
- package/dist/index.cjs.js.map +0 -1
- /package/dist/{bom → runtime/bom}/URL.d.ts +0 -0
- /package/dist/{bom → runtime/bom}/URL.js +0 -0
- /package/dist/{bom → runtime/bom}/URL.js.map +0 -0
- /package/dist/{bom → runtime/bom}/URLSearchParams.d.ts +0 -0
- /package/dist/{bom → runtime/bom}/URLSearchParams.js +0 -0
- /package/dist/{bom → runtime/bom}/URLSearchParams.js.map +0 -0
- /package/dist/{bom → runtime/bom}/document.d.ts +0 -0
- /package/dist/{bom → runtime/bom}/document.js +0 -0
- /package/dist/{bom → runtime/bom}/document.js.map +0 -0
- /package/dist/{bom → runtime/bom}/getComputedStyle.d.ts +0 -0
- /package/dist/{bom → runtime/bom}/getComputedStyle.js +0 -0
- /package/dist/{bom → runtime/bom}/getComputedStyle.js.map +0 -0
- /package/dist/{bom → runtime/bom}/history.d.ts +0 -0
- /package/dist/{bom → runtime/bom}/history.js +0 -0
- /package/dist/{bom → runtime/bom}/history.js.map +0 -0
- /package/dist/{bom → runtime/bom}/location.d.ts +0 -0
- /package/dist/{bom → runtime/bom}/location.js +0 -0
- /package/dist/{bom → runtime/bom}/location.js.map +0 -0
- /package/dist/{bom → runtime/bom}/navigator.d.ts +0 -0
- /package/dist/{bom → runtime/bom}/navigator.js +0 -0
- /package/dist/{bom → runtime/bom}/navigator.js.map +0 -0
- /package/dist/{bom → runtime/bom}/raf.d.ts +0 -0
- /package/dist/{bom → runtime/bom}/raf.js +0 -0
- /package/dist/{bom → runtime/bom}/raf.js.map +0 -0
- /package/dist/{bom → runtime/bom}/window.d.ts +0 -0
- /package/dist/{bom → runtime/bom}/window.js +0 -0
- /package/dist/{bom → runtime/bom}/window.js.map +0 -0
- /package/dist/{constants → runtime/constants}/index.d.ts +0 -0
- /package/dist/{constants → runtime/constants}/index.js +0 -0
- /package/dist/{constants → runtime/constants}/index.js.map +0 -0
- /package/dist/{current.d.ts → runtime/current.d.ts} +0 -0
- /package/dist/{current.js → runtime/current.js} +0 -0
- /package/dist/{current.js.map → runtime/current.js.map} +0 -0
- /package/dist/{dom → runtime/dom}/anchor-element.js +0 -0
- /package/dist/{dom → runtime/dom}/anchor-element.js.map +0 -0
- /package/dist/{dom → runtime/dom}/class-list.d.ts +0 -0
- /package/dist/{dom → runtime/dom}/class-list.js +0 -0
- /package/dist/{dom → runtime/dom}/class-list.js.map +0 -0
- /package/dist/{dom → runtime/dom}/document.d.ts +0 -0
- /package/dist/{dom → runtime/dom}/document.js +0 -0
- /package/dist/{dom → runtime/dom}/document.js.map +0 -0
- /package/dist/{dom → runtime/dom}/element.d.ts +0 -0
- /package/dist/{dom → runtime/dom}/element.js +0 -0
- /package/dist/{dom → runtime/dom}/element.js.map +0 -0
- /package/dist/{dom → runtime/dom}/event-source.d.ts +0 -0
- /package/dist/{dom → runtime/dom}/event-source.js +0 -0
- /package/dist/{dom → runtime/dom}/event-source.js.map +0 -0
- /package/dist/{dom → runtime/dom}/event-target.d.ts +0 -0
- /package/dist/{dom → runtime/dom}/event-target.js +0 -0
- /package/dist/{dom → runtime/dom}/event-target.js.map +0 -0
- /package/dist/{dom → runtime/dom}/event.d.ts +0 -0
- /package/dist/{dom → runtime/dom}/event.js +0 -0
- /package/dist/{dom → runtime/dom}/event.js.map +0 -0
- /package/dist/{dom → runtime/dom}/form.d.ts +0 -0
- /package/dist/{dom → runtime/dom}/form.js +0 -0
- /package/dist/{dom → runtime/dom}/form.js.map +0 -0
- /package/dist/{dom → runtime/dom}/node.d.ts +0 -0
- /package/dist/{dom → runtime/dom}/node.js +0 -0
- /package/dist/{dom → runtime/dom}/node.js.map +0 -0
- /package/dist/{dom → runtime/dom}/node_types.d.ts +0 -0
- /package/dist/{dom → runtime/dom}/root.d.ts +0 -0
- /package/dist/{dom → runtime/dom}/root.js +0 -0
- /package/dist/{dom → runtime/dom}/root.js.map +0 -0
- /package/dist/{dom → runtime/dom}/style.d.ts +0 -0
- /package/dist/{dom → runtime/dom}/style.js +0 -0
- /package/dist/{dom → runtime/dom}/style.js.map +0 -0
- /package/dist/{dom → runtime/dom}/style_properties.js +0 -0
- /package/dist/{dom → runtime/dom}/style_properties.js.map +0 -0
- /package/dist/{dom → runtime/dom}/svg.d.ts +0 -0
- /package/dist/{dom → runtime/dom}/svg.js +0 -0
- /package/dist/{dom → runtime/dom}/svg.js.map +0 -0
- /package/dist/{dom → runtime/dom}/text.d.ts +0 -0
- /package/dist/{dom → runtime/dom}/text.js +0 -0
- /package/dist/{dom → runtime/dom}/text.js.map +0 -0
- /package/dist/{dom → runtime/dom}/transfer.js +0 -0
- /package/dist/{dom → runtime/dom}/transfer.js.map +0 -0
- /package/dist/{dom → runtime/dom}/tree.js +0 -0
- /package/dist/{dom → runtime/dom}/tree.js.map +0 -0
- /package/dist/{dom-external → runtime/dom-external}/element.js +0 -0
- /package/dist/{dom-external → runtime/dom-external}/element.js.map +0 -0
- /package/dist/{dom-external → runtime/dom-external}/index.js +0 -0
- /package/dist/{dom-external → runtime/dom-external}/index.js.map +0 -0
- /package/dist/{dom-external → runtime/dom-external}/inner-html/html.d.ts +0 -0
- /package/dist/{dom-external → runtime/dom-external}/inner-html/html.js +0 -0
- /package/dist/{dom-external → runtime/dom-external}/inner-html/html.js.map +0 -0
- /package/dist/{dom-external → runtime/dom-external}/inner-html/parser.d.ts +0 -0
- /package/dist/{dom-external → runtime/dom-external}/inner-html/parser.js +0 -0
- /package/dist/{dom-external → runtime/dom-external}/inner-html/parser.js.map +0 -0
- /package/dist/{dom-external → runtime/dom-external}/inner-html/scanner.js +0 -0
- /package/dist/{dom-external → runtime/dom-external}/inner-html/scanner.js.map +0 -0
- /package/dist/{dom-external → runtime/dom-external}/inner-html/style.js +0 -0
- /package/dist/{dom-external → runtime/dom-external}/inner-html/style.js.map +0 -0
- /package/dist/{dom-external → runtime/dom-external}/inner-html/tags.js +0 -0
- /package/dist/{dom-external → runtime/dom-external}/inner-html/tags.js.map +0 -0
- /package/dist/{dom-external → runtime/dom-external}/inner-html/utils.js +0 -0
- /package/dist/{dom-external → runtime/dom-external}/inner-html/utils.js.map +0 -0
- /package/dist/{dom-external → runtime/dom-external}/mutation-observer/implements.d.ts +0 -0
- /package/dist/{dom-external → runtime/dom-external}/mutation-observer/implements.js +0 -0
- /package/dist/{dom-external → runtime/dom-external}/mutation-observer/implements.js.map +0 -0
- /package/dist/{dom-external → runtime/dom-external}/mutation-observer/index.d.ts +0 -0
- /package/dist/{dom-external → runtime/dom-external}/mutation-observer/index.js +0 -0
- /package/dist/{dom-external → runtime/dom-external}/mutation-observer/index.js.map +0 -0
- /package/dist/{dom-external → runtime/dom-external}/mutation-observer/record.d.ts +0 -0
- /package/dist/{dom-external → runtime/dom-external}/node.js +0 -0
- /package/dist/{dom-external → runtime/dom-external}/node.js.map +0 -0
- /package/dist/{dsl → runtime/dsl}/common.d.ts +0 -0
- /package/dist/{dsl → runtime/dsl}/common.js +0 -0
- /package/dist/{dsl → runtime/dsl}/common.js.map +0 -0
- /package/dist/{dsl → runtime/dsl}/instance.d.ts +0 -0
- /package/dist/{emitter → runtime/emitter}/emitter.d.ts +0 -0
- /package/dist/{emitter → runtime/emitter}/emitter.js +0 -0
- /package/dist/{emitter → runtime/emitter}/emitter.js.map +0 -0
- /package/dist/{env.d.ts → runtime/env.d.ts} +0 -0
- /package/dist/{env.js → runtime/env.js} +0 -0
- /package/dist/{env.js.map → runtime/env.js.map} +0 -0
- /package/dist/{hydrate.d.ts → runtime/hydrate.d.ts} +0 -0
- /package/dist/{hydrate.js → runtime/hydrate.js} +0 -0
- /package/dist/{hydrate.js.map → runtime/hydrate.js.map} +0 -0
- /package/dist/{index.d.ts → runtime/index.d.ts} +0 -0
- /package/dist/{index.js → runtime/index.js} +0 -0
- /package/dist/{index.js.map → runtime/index.js.map} +0 -0
- /package/dist/{interface → runtime/interface}/animate.d.ts +0 -0
- /package/dist/{interface → runtime/interface}/element.d.ts +0 -0
- /package/dist/{interface → runtime/interface}/event-target.d.ts +0 -0
- /package/dist/{interface → runtime/interface}/event.d.ts +0 -0
- /package/dist/{interface → runtime/interface}/hydrate.d.ts +0 -0
- /package/dist/{interface → runtime/interface}/node.d.ts +0 -0
- /package/dist/{interface → runtime/interface}/options.d.ts +0 -0
- /package/dist/{interface → runtime/interface}/utils.d.ts +0 -0
- /package/dist/{next-tick.d.ts → runtime/next-tick.d.ts} +0 -0
- /package/dist/{next-tick.js → runtime/next-tick.js} +0 -0
- /package/dist/{next-tick.js.map → runtime/next-tick.js.map} +0 -0
- /package/dist/{options.d.ts → runtime/options.d.ts} +0 -0
- /package/dist/{options.js → runtime/options.js} +0 -0
- /package/dist/{options.js.map → runtime/options.js.map} +0 -0
- /package/dist/{perf.d.ts → runtime/perf.d.ts} +0 -0
- /package/dist/{perf.js → runtime/perf.js} +0 -0
- /package/dist/{perf.js.map → runtime/perf.js.map} +0 -0
- /package/dist/{polyfill → runtime/polyfill}/array.js +0 -0
- /package/dist/{polyfill → runtime/polyfill}/array.js.map +0 -0
- /package/dist/{polyfill → runtime/polyfill}/index.d.ts +0 -0
- /package/dist/{polyfill → runtime/polyfill}/index.js +0 -0
- /package/dist/{polyfill → runtime/polyfill}/index.js.map +0 -0
- /package/dist/{polyfill → runtime/polyfill}/intersection-observer.js +0 -0
- /package/dist/{polyfill → runtime/polyfill}/intersection-observer.js.map +0 -0
- /package/dist/{polyfill → runtime/polyfill}/object.js +0 -0
- /package/dist/{polyfill → runtime/polyfill}/object.js.map +0 -0
- /package/dist/{runtime.esm.d.ts → runtime/runtime.esm.d.ts} +0 -0
- /package/dist/{runtime.esm.js → runtime/runtime.esm.js} +0 -0
- /package/dist/{runtime.esm.js.map → runtime/runtime.esm.js.map} +0 -0
- /package/dist/{utils → runtime/utils}/cache.d.ts +0 -0
- /package/dist/{utils → runtime/utils}/cache.js +0 -0
- /package/dist/{utils → runtime/utils}/cache.js.map +0 -0
- /package/dist/{utils → runtime/utils}/index.d.ts +0 -0
- /package/dist/{utils → runtime/utils}/index.js +0 -0
- /package/dist/{utils → runtime/utils}/index.js.map +0 -0
- /package/dist/{utils → runtime/utils}/lodash.d.ts +0 -0
- /package/dist/{utils → runtime/utils}/lodash.js +0 -0
- /package/dist/{utils → runtime/utils}/lodash.js.map +0 -0
- /package/dist/{utils → runtime/utils}/router.d.ts +0 -0
- /package/dist/{utils → runtime/utils}/router.js +0 -0
- /package/dist/{utils → runtime/utils}/router.js.map +0 -0
package/dist/index.cjs.d.ts
DELETED
|
@@ -1,921 +0,0 @@
|
|
|
1
|
-
import { Shortcuts, Events } from '@tarojs/shared';
|
|
2
|
-
export { Events, hooks } from '@tarojs/shared';
|
|
3
|
-
import { Component } from '@vue/runtime-core';
|
|
4
|
-
import { Component as Component$1, ComponentClass } from 'react';
|
|
5
|
-
|
|
6
|
-
declare class ClassList {
|
|
7
|
-
private el;
|
|
8
|
-
private tokenList;
|
|
9
|
-
constructor(className: string, el: TaroElement);
|
|
10
|
-
get value(): string;
|
|
11
|
-
get length(): number;
|
|
12
|
-
add(): void;
|
|
13
|
-
remove(): void;
|
|
14
|
-
contains(token: string): boolean;
|
|
15
|
-
toggle(token: string, force: boolean): boolean;
|
|
16
|
-
replace(token: string, replacement_token: string): void;
|
|
17
|
-
toString(): string;
|
|
18
|
-
private checkTokenIsValid;
|
|
19
|
-
private _update;
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
/** @ignore */
|
|
23
|
-
interface KeyFrame {
|
|
24
|
-
/** 关键帧的偏移,范围[0-1] */
|
|
25
|
-
offset?: number;
|
|
26
|
-
/** 动画缓动函数 */
|
|
27
|
-
ease?: string;
|
|
28
|
-
/** 基点位置,即 CSS transform-origin */
|
|
29
|
-
transformOrigin?: string;
|
|
30
|
-
/** 背景颜色,即 CSS background-color */
|
|
31
|
-
backgroundColor?: string;
|
|
32
|
-
/** 底边位置,即 CSS bottom */
|
|
33
|
-
bottom?: number | string;
|
|
34
|
-
/** 高度,即 CSS height */
|
|
35
|
-
height?: number | string;
|
|
36
|
-
/** 左边位置,即 CSS left */
|
|
37
|
-
left?: number | string;
|
|
38
|
-
/** 宽度,即 CSS width */
|
|
39
|
-
width?: number | string;
|
|
40
|
-
/** 不透明度,即 CSS opacity */
|
|
41
|
-
opacity?: number | string;
|
|
42
|
-
/** 右边位置,即 CSS right */
|
|
43
|
-
right?: number | string;
|
|
44
|
-
/** 顶边位置,即 CSS top */
|
|
45
|
-
top?: number | string;
|
|
46
|
-
/** 变换矩阵,即 CSS transform matrix */
|
|
47
|
-
matrix?: number[];
|
|
48
|
-
/** 三维变换矩阵,即 CSS transform matrix3d */
|
|
49
|
-
matrix3d?: number[];
|
|
50
|
-
/** 旋转,即 CSS transform rotate */
|
|
51
|
-
rotate?: number;
|
|
52
|
-
/** 三维旋转,即 CSS transform rotate3d */
|
|
53
|
-
rotate3d?: number[];
|
|
54
|
-
/** X 方向旋转,即 CSS transform rotateX */
|
|
55
|
-
rotateX?: number;
|
|
56
|
-
/** Y 方向旋转,即 CSS transform rotateY */
|
|
57
|
-
rotateY?: number;
|
|
58
|
-
/** Z 方向旋转,即 CSS transform rotateZ */
|
|
59
|
-
rotateZ?: number;
|
|
60
|
-
/** 缩放,即 CSS transform scale */
|
|
61
|
-
scale?: number[];
|
|
62
|
-
/** 三维缩放,即 CSS transform scale3d */
|
|
63
|
-
scale3d?: number[];
|
|
64
|
-
/** X 方向缩放,即 CSS transform scaleX */
|
|
65
|
-
scaleX?: number;
|
|
66
|
-
/** Y 方向缩放,即 CSS transform scaleY */
|
|
67
|
-
scaleY?: number;
|
|
68
|
-
/** Z 方向缩放,即 CSS transform scaleZ */
|
|
69
|
-
scaleZ?: number;
|
|
70
|
-
/** 倾斜,即 CSS transform skew */
|
|
71
|
-
skew?: number[];
|
|
72
|
-
/** X 方向倾斜,即 CSS transform skewX */
|
|
73
|
-
skewX?: number;
|
|
74
|
-
/** Y 方向倾斜,即 CSS transform skewY */
|
|
75
|
-
skewY?: number;
|
|
76
|
-
/** 位移,即 CSS transform translate */
|
|
77
|
-
translate?: Array<number | string>;
|
|
78
|
-
/** 三维位移,即 CSS transform translate3d */
|
|
79
|
-
translate3d?: Array<number | string>;
|
|
80
|
-
/** X 方向位移,即 CSS transform translateX */
|
|
81
|
-
translateX?: number | string;
|
|
82
|
-
/** Y 方向位移,即 CSS transform translateY */
|
|
83
|
-
translateY?: number | string;
|
|
84
|
-
/** Z 方向位移,即 CSS transform translateZ */
|
|
85
|
-
translateZ?: number | string;
|
|
86
|
-
composite?: 'replace' | 'add' | 'accumulate' | 'auto';
|
|
87
|
-
easing?: string;
|
|
88
|
-
[property: string]: any;
|
|
89
|
-
}
|
|
90
|
-
/** @ignore */
|
|
91
|
-
interface ScrollTimelineOption {
|
|
92
|
-
/** 指定滚动元素的选择器(只支持 scroll-view),该元素滚动时会驱动动画的进度 */
|
|
93
|
-
scrollSource: string;
|
|
94
|
-
/** 指定滚动的方向。有效值为 horizontal 或 vertical */
|
|
95
|
-
orientation?: string;
|
|
96
|
-
/** 指定开始驱动动画进度的滚动偏移量,单位 px */
|
|
97
|
-
startScrollOffset: number;
|
|
98
|
-
/** 指定停止驱动动画进度的滚动偏移量,单位 px */
|
|
99
|
-
endScrollOffset: number;
|
|
100
|
-
/** 起始和结束的滚动范围映射的时间长度,该时间可用于与关键帧动画里的时间 (duration) 相匹配,单位 ms */
|
|
101
|
-
timeRange: number;
|
|
102
|
-
}
|
|
103
|
-
|
|
104
|
-
interface Attributes {
|
|
105
|
-
name: string;
|
|
106
|
-
value: string;
|
|
107
|
-
}
|
|
108
|
-
|
|
109
|
-
interface EventOptions {
|
|
110
|
-
bubbles: boolean;
|
|
111
|
-
cancelable: boolean;
|
|
112
|
-
}
|
|
113
|
-
type Target = Record<string, unknown> & {
|
|
114
|
-
dataset: Record<string, unknown>;
|
|
115
|
-
id: string;
|
|
116
|
-
};
|
|
117
|
-
interface MpEvent {
|
|
118
|
-
type: string;
|
|
119
|
-
detail: Record<string, unknown>;
|
|
120
|
-
target: Target;
|
|
121
|
-
currentTarget: Target;
|
|
122
|
-
}
|
|
123
|
-
|
|
124
|
-
interface EventListenerOptions {
|
|
125
|
-
capture?: boolean;
|
|
126
|
-
}
|
|
127
|
-
interface AddEventListenerOptions extends EventListenerOptions {
|
|
128
|
-
once?: boolean;
|
|
129
|
-
passive?: boolean;
|
|
130
|
-
}
|
|
131
|
-
interface EventHandler<T = any, R = void> {
|
|
132
|
-
(...args: T[]): R;
|
|
133
|
-
_stop?: boolean;
|
|
134
|
-
}
|
|
135
|
-
|
|
136
|
-
type TFunc = (...args: any[]) => any;
|
|
137
|
-
type PageConfig = Record<string, any>;
|
|
138
|
-
|
|
139
|
-
interface MpInstance {
|
|
140
|
-
config: PageConfig;
|
|
141
|
-
setData: (data: unknown, cb: () => void) => void;
|
|
142
|
-
route?: string;
|
|
143
|
-
__route__: string;
|
|
144
|
-
$taroParams?: Record<string, unknown>;
|
|
145
|
-
$taroPath: string;
|
|
146
|
-
__data__: any;
|
|
147
|
-
data: any;
|
|
148
|
-
exitState?: any;
|
|
149
|
-
selectComponent: (selector: string) => any;
|
|
150
|
-
__webviewId__?: number;
|
|
151
|
-
}
|
|
152
|
-
interface MiniElementData {
|
|
153
|
-
[Shortcuts.Childnodes]?: MiniData[];
|
|
154
|
-
[Shortcuts.NodeName]: string;
|
|
155
|
-
[Shortcuts.Class]?: string;
|
|
156
|
-
[Shortcuts.Style]?: string;
|
|
157
|
-
uid?: string;
|
|
158
|
-
sid: string;
|
|
159
|
-
[key: string]: unknown;
|
|
160
|
-
}
|
|
161
|
-
interface MiniTextData {
|
|
162
|
-
[Shortcuts.Text]: string;
|
|
163
|
-
[Shortcuts.NodeName]: string;
|
|
164
|
-
}
|
|
165
|
-
type MiniData = MiniElementData | MiniTextData;
|
|
166
|
-
type HydratedData = () => MiniData | MiniData[];
|
|
167
|
-
|
|
168
|
-
type UpdatePayloadValue = string | boolean | HydratedData;
|
|
169
|
-
type DataTree = Record<string, UpdatePayloadValue | ReturnType<HydratedData>>;
|
|
170
|
-
interface UpdatePayload {
|
|
171
|
-
path: string;
|
|
172
|
-
value: UpdatePayloadValue;
|
|
173
|
-
}
|
|
174
|
-
|
|
175
|
-
declare const enum NodeType {
|
|
176
|
-
ELEMENT_NODE = 1,
|
|
177
|
-
ATTRIBUTE_NODE = 2,
|
|
178
|
-
TEXT_NODE = 3,
|
|
179
|
-
CDATA_SECTION_NODE = 4,
|
|
180
|
-
ENTITY_REFERENCE_NODE = 5,
|
|
181
|
-
COMMENT_NODE = 6,
|
|
182
|
-
PROCESSING_INSTRUCTION_NODE = 7,
|
|
183
|
-
DOCUMENT_NODE = 9
|
|
184
|
-
}
|
|
185
|
-
|
|
186
|
-
declare class TaroText extends TaroNode {
|
|
187
|
-
_value: string;
|
|
188
|
-
nodeType: NodeType;
|
|
189
|
-
nodeName: string;
|
|
190
|
-
constructor(value: any);
|
|
191
|
-
set textContent(text: string);
|
|
192
|
-
get textContent(): string;
|
|
193
|
-
set nodeValue(text: string);
|
|
194
|
-
get nodeValue(): string;
|
|
195
|
-
set data(text: string);
|
|
196
|
-
get data(): string;
|
|
197
|
-
}
|
|
198
|
-
|
|
199
|
-
interface Node {
|
|
200
|
-
type: string;
|
|
201
|
-
}
|
|
202
|
-
interface Comment extends Node {
|
|
203
|
-
type: 'comment';
|
|
204
|
-
content: string;
|
|
205
|
-
}
|
|
206
|
-
interface Text extends Node {
|
|
207
|
-
type: 'text';
|
|
208
|
-
content: string;
|
|
209
|
-
}
|
|
210
|
-
interface Element extends Node {
|
|
211
|
-
type: 'element';
|
|
212
|
-
tagName: string;
|
|
213
|
-
children: ChildNode[];
|
|
214
|
-
attributes: string[];
|
|
215
|
-
}
|
|
216
|
-
type ChildNode = Comment | Text | Element;
|
|
217
|
-
|
|
218
|
-
interface Options$2 {
|
|
219
|
-
prerender: boolean;
|
|
220
|
-
debug: boolean;
|
|
221
|
-
html?: {
|
|
222
|
-
skipElements: Set<string>;
|
|
223
|
-
voidElements: Set<string>;
|
|
224
|
-
closingElements: Set<string>;
|
|
225
|
-
transformText?: (taroText: TaroText, text: Text) => TaroText;
|
|
226
|
-
transformElement?: (taroElement: TaroElement, element: Element) => TaroElement;
|
|
227
|
-
renderHTMLTag: boolean;
|
|
228
|
-
};
|
|
229
|
-
miniGlobal?: any;
|
|
230
|
-
}
|
|
231
|
-
|
|
232
|
-
declare class TaroEventTarget {
|
|
233
|
-
__handlers: Record<string, EventHandler[]>;
|
|
234
|
-
addEventListener(type: string, handler: EventHandler, options?: boolean | AddEventListenerOptions): void;
|
|
235
|
-
removeEventListener(type: string, handler: EventHandler): void;
|
|
236
|
-
isAnyEventBinded(): boolean;
|
|
237
|
-
isOnlyClickBinded(): boolean;
|
|
238
|
-
}
|
|
239
|
-
|
|
240
|
-
declare class TaroRootElement extends TaroElement {
|
|
241
|
-
private updatePayloads;
|
|
242
|
-
private updateCallbacks;
|
|
243
|
-
pendingUpdate: boolean;
|
|
244
|
-
ctx: null | MpInstance;
|
|
245
|
-
constructor();
|
|
246
|
-
get _path(): string;
|
|
247
|
-
get _root(): TaroRootElement;
|
|
248
|
-
scheduleTask(fn: TFunc): void;
|
|
249
|
-
enqueueUpdate(payload: UpdatePayload): void;
|
|
250
|
-
performUpdate(initRender?: boolean, prerender?: TFunc): void;
|
|
251
|
-
enqueueUpdateCallback(cb: TFunc, ctx?: Record<string, any>): void;
|
|
252
|
-
flushUpdateCallback(): void;
|
|
253
|
-
}
|
|
254
|
-
|
|
255
|
-
interface RemoveChildOptions {
|
|
256
|
-
cleanRef?: boolean;
|
|
257
|
-
doUpdate?: boolean;
|
|
258
|
-
}
|
|
259
|
-
declare class TaroNode extends TaroEventTarget {
|
|
260
|
-
uid: string;
|
|
261
|
-
sid: string;
|
|
262
|
-
nodeType: NodeType;
|
|
263
|
-
nodeName: string;
|
|
264
|
-
parentNode: TaroNode | null;
|
|
265
|
-
childNodes: TaroNode[];
|
|
266
|
-
constructor();
|
|
267
|
-
private hydrate;
|
|
268
|
-
private updateChildNodes;
|
|
269
|
-
private updateSingleChild;
|
|
270
|
-
get _root(): TaroRootElement | null;
|
|
271
|
-
protected findIndex(refChild: TaroNode): number;
|
|
272
|
-
get _path(): string;
|
|
273
|
-
get nextSibling(): TaroNode | null;
|
|
274
|
-
get previousSibling(): TaroNode | null;
|
|
275
|
-
get parentElement(): TaroElement | null;
|
|
276
|
-
get firstChild(): TaroNode | null;
|
|
277
|
-
get lastChild(): TaroNode | null;
|
|
278
|
-
/**
|
|
279
|
-
* @textContent 目前只能置空子元素
|
|
280
|
-
* @TODO 等待完整 innerHTML 实现
|
|
281
|
-
*/
|
|
282
|
-
set textContent(text: string);
|
|
283
|
-
/**
|
|
284
|
-
* @doc https://developer.mozilla.org/zh-CN/docs/Web/API/Node/insertBefore
|
|
285
|
-
* @scenario
|
|
286
|
-
* [A,B,C]
|
|
287
|
-
* 1. insert D before C, D has no parent
|
|
288
|
-
* 2. insert D before C, D has the same parent of C
|
|
289
|
-
* 3. insert D before C, D has the different parent of C
|
|
290
|
-
*/
|
|
291
|
-
insertBefore<T extends TaroNode>(newChild: T, refChild?: TaroNode | null, isReplace?: boolean): T;
|
|
292
|
-
/**
|
|
293
|
-
* @doc https://developer.mozilla.org/zh-CN/docs/Web/API/Node/appendChild
|
|
294
|
-
* @scenario
|
|
295
|
-
* [A,B,C]
|
|
296
|
-
* 1. append C, C has no parent
|
|
297
|
-
* 2. append C, C has the same parent of B
|
|
298
|
-
* 3. append C, C has the different parent of B
|
|
299
|
-
*/
|
|
300
|
-
appendChild(newChild: TaroNode): TaroNode;
|
|
301
|
-
/**
|
|
302
|
-
* @doc https://developer.mozilla.org/zh-CN/docs/Web/API/Node/replaceChild
|
|
303
|
-
* @scenario
|
|
304
|
-
* [A,B,C]
|
|
305
|
-
* 1. replace B with C, C has no parent
|
|
306
|
-
* 2. replace B with C, C has no parent, C has the same parent of B
|
|
307
|
-
* 3. replace B with C, C has no parent, C has the different parent of B
|
|
308
|
-
*/
|
|
309
|
-
replaceChild(newChild: TaroNode, oldChild: TaroNode): TaroNode | undefined;
|
|
310
|
-
/**
|
|
311
|
-
* @doc https://developer.mozilla.org/zh-CN/docs/Web/API/Node/removeChild
|
|
312
|
-
* @scenario
|
|
313
|
-
* [A,B,C]
|
|
314
|
-
* 1. remove A or B
|
|
315
|
-
* 2. remove C
|
|
316
|
-
*/
|
|
317
|
-
removeChild<T extends TaroNode>(child: T, options?: RemoveChildOptions): T;
|
|
318
|
-
remove(options?: RemoveChildOptions): void;
|
|
319
|
-
hasChildNodes(): boolean;
|
|
320
|
-
enqueueUpdate(payload: UpdatePayload): void;
|
|
321
|
-
get ownerDocument(): TaroDocument;
|
|
322
|
-
static extend(methodName: string, options: TFunc | Record<string, any>): void;
|
|
323
|
-
}
|
|
324
|
-
|
|
325
|
-
declare class Style {
|
|
326
|
-
_pending: boolean;
|
|
327
|
-
_usedStyleProp: Set<string>;
|
|
328
|
-
_value: Partial<CSSStyleDeclaration>;
|
|
329
|
-
_element: TaroElement;
|
|
330
|
-
constructor(element: TaroElement);
|
|
331
|
-
private setCssVariables;
|
|
332
|
-
get cssText(): string;
|
|
333
|
-
set cssText(str: string);
|
|
334
|
-
setProperty(propertyName: string, value?: string | null): void;
|
|
335
|
-
removeProperty(propertyName: string): string;
|
|
336
|
-
getPropertyValue(propertyName: string): any;
|
|
337
|
-
}
|
|
338
|
-
|
|
339
|
-
declare class TaroEvent {
|
|
340
|
-
private cacheTarget;
|
|
341
|
-
private cacheCurrentTarget;
|
|
342
|
-
type: string;
|
|
343
|
-
bubbles: boolean;
|
|
344
|
-
cancelable: boolean;
|
|
345
|
-
_stop: boolean;
|
|
346
|
-
_end: boolean;
|
|
347
|
-
defaultPrevented: boolean;
|
|
348
|
-
button: number;
|
|
349
|
-
timeStamp: number;
|
|
350
|
-
mpEvent: MpEvent | undefined;
|
|
351
|
-
constructor(type: string, opts: EventOptions, event?: MpEvent);
|
|
352
|
-
stopPropagation(): void;
|
|
353
|
-
stopImmediatePropagation(): void;
|
|
354
|
-
preventDefault(): void;
|
|
355
|
-
get target(): any;
|
|
356
|
-
get currentTarget(): any;
|
|
357
|
-
}
|
|
358
|
-
declare function createEvent(event: MpEvent | string, node?: TaroElement): TaroEvent;
|
|
359
|
-
declare function eventHandler(event: MpEvent): any;
|
|
360
|
-
declare function eventHandlerTTDom(ele: any, listener: (event: MpEvent, element: any) => void, event: MpEvent): void;
|
|
361
|
-
|
|
362
|
-
declare class TaroElement extends TaroNode {
|
|
363
|
-
ctx?: any;
|
|
364
|
-
tagName: string;
|
|
365
|
-
props: Record<string, any>;
|
|
366
|
-
style: Style;
|
|
367
|
-
dataset: Record<string, unknown>;
|
|
368
|
-
innerHTML: string;
|
|
369
|
-
constructor();
|
|
370
|
-
private _stopPropagation;
|
|
371
|
-
get id(): string;
|
|
372
|
-
set id(val: string);
|
|
373
|
-
get className(): string;
|
|
374
|
-
set className(val: string);
|
|
375
|
-
get cssText(): string;
|
|
376
|
-
get classList(): ClassList;
|
|
377
|
-
get children(): TaroElement[];
|
|
378
|
-
get attributes(): Attributes[];
|
|
379
|
-
get textContent(): string;
|
|
380
|
-
set textContent(text: string);
|
|
381
|
-
hasAttribute(qualifiedName: string): boolean;
|
|
382
|
-
hasAttributes(): boolean;
|
|
383
|
-
get focus(): () => void;
|
|
384
|
-
set focus(value: () => void);
|
|
385
|
-
blur(): void;
|
|
386
|
-
setAttribute(qualifiedName: string, value: any): void;
|
|
387
|
-
removeAttribute(qualifiedName: string): void;
|
|
388
|
-
getAttribute(qualifiedName: string): string;
|
|
389
|
-
getElementsByTagName(tagName: string): TaroElement[];
|
|
390
|
-
getElementsByClassName(className: string): TaroElement[];
|
|
391
|
-
dispatchEvent(event: TaroEvent): boolean;
|
|
392
|
-
addEventListener(type: any, handler: any, options: any): void;
|
|
393
|
-
removeEventListener(type: any, handler: any, sideEffect?: boolean): void;
|
|
394
|
-
static extend(methodName: string, options: TFunc | Record<string, any>): void;
|
|
395
|
-
}
|
|
396
|
-
|
|
397
|
-
declare class FormElement extends TaroElement {
|
|
398
|
-
get type(): string;
|
|
399
|
-
set type(val: string);
|
|
400
|
-
get value(): string | boolean | number | any[];
|
|
401
|
-
set value(val: string | boolean | number | any[]);
|
|
402
|
-
dispatchEvent(event: TaroEvent): boolean;
|
|
403
|
-
}
|
|
404
|
-
|
|
405
|
-
declare class TaroDocument extends TaroElement {
|
|
406
|
-
documentElement: TaroElement;
|
|
407
|
-
head: TaroElement;
|
|
408
|
-
body: TaroElement;
|
|
409
|
-
createEvent: typeof createEvent;
|
|
410
|
-
cookie?: string;
|
|
411
|
-
constructor();
|
|
412
|
-
createElement(type: string): TaroElement | TaroRootElement | FormElement;
|
|
413
|
-
createElementNS(_svgNS: string, type: string): TaroElement | TaroRootElement | FormElement;
|
|
414
|
-
createTextNode(text: string): TaroText;
|
|
415
|
-
getElementById<T extends TaroElement>(id: string | undefined | null): T | null;
|
|
416
|
-
querySelector<T extends TaroElement>(query: string): T | null;
|
|
417
|
-
querySelectorAll(): never[];
|
|
418
|
-
createComment(): TaroText;
|
|
419
|
-
get defaultView(): any;
|
|
420
|
-
}
|
|
421
|
-
|
|
422
|
-
interface Env {
|
|
423
|
-
window: any;
|
|
424
|
-
document: TaroDocument;
|
|
425
|
-
}
|
|
426
|
-
declare const env: Env;
|
|
427
|
-
|
|
428
|
-
declare const taroDocumentProvider: TaroDocument;
|
|
429
|
-
|
|
430
|
-
type TGetComputedStyle = typeof window.getComputedStyle | ((el: TaroElement) => Style);
|
|
431
|
-
declare const taroGetComputedStyleProvider: TGetComputedStyle;
|
|
432
|
-
|
|
433
|
-
declare const eventCenter: Events;
|
|
434
|
-
type EventsType = typeof Events;
|
|
435
|
-
|
|
436
|
-
/**
|
|
437
|
-
* 一个小型缓存池,用于在切换页面时,存储一些上下文信息
|
|
438
|
-
*/
|
|
439
|
-
declare class RuntimeCache<T> {
|
|
440
|
-
name: string;
|
|
441
|
-
cache: Map<string, T>;
|
|
442
|
-
constructor(name: string);
|
|
443
|
-
has(identifier: string): boolean;
|
|
444
|
-
set(identifier: string, ctx: T): void;
|
|
445
|
-
get(identifier: string): T | undefined;
|
|
446
|
-
delete(identifier: string): void;
|
|
447
|
-
}
|
|
448
|
-
|
|
449
|
-
type Options$1 = {
|
|
450
|
-
window: any;
|
|
451
|
-
};
|
|
452
|
-
type LocationContext = {
|
|
453
|
-
lastHref: string;
|
|
454
|
-
};
|
|
455
|
-
declare class TaroLocation extends Events {
|
|
456
|
-
#private;
|
|
457
|
-
constructor(options: Options$1);
|
|
458
|
-
get protocol(): string;
|
|
459
|
-
set protocol(val: string);
|
|
460
|
-
get host(): string;
|
|
461
|
-
set host(val: string);
|
|
462
|
-
get hostname(): string;
|
|
463
|
-
set hostname(val: string);
|
|
464
|
-
get port(): string;
|
|
465
|
-
set port(val: string);
|
|
466
|
-
get pathname(): string;
|
|
467
|
-
set pathname(val: string);
|
|
468
|
-
get search(): string;
|
|
469
|
-
set search(val: string);
|
|
470
|
-
get hash(): string;
|
|
471
|
-
set hash(val: string);
|
|
472
|
-
get href(): string;
|
|
473
|
-
set href(val: string);
|
|
474
|
-
get origin(): string;
|
|
475
|
-
set origin(val: string);
|
|
476
|
-
assign(): void;
|
|
477
|
-
reload(): void;
|
|
478
|
-
replace(url: string): void;
|
|
479
|
-
toString(): string;
|
|
480
|
-
get cache(): RuntimeCache<LocationContext>;
|
|
481
|
-
}
|
|
482
|
-
|
|
483
|
-
declare const Location: typeof TaroLocation;
|
|
484
|
-
|
|
485
|
-
interface HistoryState {
|
|
486
|
-
state: Record<string, any> | null;
|
|
487
|
-
title: string;
|
|
488
|
-
url: string;
|
|
489
|
-
}
|
|
490
|
-
type Options = {
|
|
491
|
-
window: any;
|
|
492
|
-
};
|
|
493
|
-
type HistoryContext = {
|
|
494
|
-
location: TaroLocation;
|
|
495
|
-
stack: HistoryState[];
|
|
496
|
-
cur: number;
|
|
497
|
-
};
|
|
498
|
-
declare class TaroHistory extends Events {
|
|
499
|
-
#private;
|
|
500
|
-
constructor(location: TaroLocation, options: Options);
|
|
501
|
-
get length(): number;
|
|
502
|
-
get state(): Record<string, any> | null;
|
|
503
|
-
go(delta: number): void;
|
|
504
|
-
back(): void;
|
|
505
|
-
forward(): void;
|
|
506
|
-
pushState(state: any, title: string, url: string): void;
|
|
507
|
-
replaceState(state: any, title: string, url: string): void;
|
|
508
|
-
get cache(): RuntimeCache<HistoryContext>;
|
|
509
|
-
}
|
|
510
|
-
|
|
511
|
-
declare const History: typeof TaroHistory;
|
|
512
|
-
|
|
513
|
-
declare const nav: typeof window.navigator;
|
|
514
|
-
|
|
515
|
-
declare let now: () => number;
|
|
516
|
-
declare const _raf: typeof requestAnimationFrame | ((callback: any) => NodeJS.Timeout);
|
|
517
|
-
declare const _caf: typeof cancelAnimationFrame;
|
|
518
|
-
|
|
519
|
-
declare class TaroURL {
|
|
520
|
-
#private;
|
|
521
|
-
static createObjectURL(): void;
|
|
522
|
-
static revokeObjectURL(): void;
|
|
523
|
-
constructor(url: string, base?: string);
|
|
524
|
-
get protocol(): string;
|
|
525
|
-
set protocol(val: string);
|
|
526
|
-
get host(): string;
|
|
527
|
-
set host(val: string);
|
|
528
|
-
get hostname(): string;
|
|
529
|
-
set hostname(val: string);
|
|
530
|
-
get port(): string;
|
|
531
|
-
set port(val: string);
|
|
532
|
-
get pathname(): string;
|
|
533
|
-
set pathname(val: string);
|
|
534
|
-
get search(): string;
|
|
535
|
-
set search(val: string);
|
|
536
|
-
get hash(): string;
|
|
537
|
-
set hash(val: string);
|
|
538
|
-
get href(): string;
|
|
539
|
-
set href(val: string);
|
|
540
|
-
get origin(): string;
|
|
541
|
-
set origin(val: string);
|
|
542
|
-
get searchParams(): URLSearchParams;
|
|
543
|
-
toString(): string;
|
|
544
|
-
toJSON(): string;
|
|
545
|
-
_toRaw(): {
|
|
546
|
-
protocol: string;
|
|
547
|
-
port: string;
|
|
548
|
-
host: string;
|
|
549
|
-
hostname: string;
|
|
550
|
-
pathname: string;
|
|
551
|
-
hash: string;
|
|
552
|
-
search: string;
|
|
553
|
-
origin: string;
|
|
554
|
-
href: string;
|
|
555
|
-
};
|
|
556
|
-
}
|
|
557
|
-
|
|
558
|
-
declare const TaroURLProvider: typeof TaroURL;
|
|
559
|
-
declare function parseUrl(url?: string): {
|
|
560
|
-
href: string;
|
|
561
|
-
origin: string;
|
|
562
|
-
protocol: string;
|
|
563
|
-
hostname: string;
|
|
564
|
-
host: string;
|
|
565
|
-
port: string;
|
|
566
|
-
pathname: string;
|
|
567
|
-
search: string;
|
|
568
|
-
hash: string;
|
|
569
|
-
};
|
|
570
|
-
|
|
571
|
-
declare const URLSearchParams$1: any;
|
|
572
|
-
|
|
573
|
-
declare class TaroWindow extends Events {
|
|
574
|
-
navigator: Navigator;
|
|
575
|
-
requestAnimationFrame: typeof requestAnimationFrame | ((callback: any) => NodeJS.Timeout);
|
|
576
|
-
cancelAnimationFrame: typeof cancelAnimationFrame;
|
|
577
|
-
getComputedStyle: TGetComputedStyle;
|
|
578
|
-
Date: DateConstructor;
|
|
579
|
-
location: TaroLocation;
|
|
580
|
-
history: TaroHistory;
|
|
581
|
-
XMLHttpRequest?: Partial<XMLHttpRequest>;
|
|
582
|
-
constructor();
|
|
583
|
-
initEvent(): void;
|
|
584
|
-
get document(): TaroDocument;
|
|
585
|
-
addEventListener(event: string, callback: (arg: any) => void): void;
|
|
586
|
-
removeEventListener(event: string, callback: (arg: any) => void): void;
|
|
587
|
-
setTimeout(...args: Parameters<typeof setTimeout>): NodeJS.Timeout;
|
|
588
|
-
clearTimeout(...args: Parameters<typeof clearTimeout>): void;
|
|
589
|
-
}
|
|
590
|
-
declare const taroWindowProvider: TaroWindow;
|
|
591
|
-
declare const taroLocationProvider: TaroLocation;
|
|
592
|
-
declare const taroHistoryProvider: TaroHistory;
|
|
593
|
-
|
|
594
|
-
declare class SVGElement extends TaroElement {
|
|
595
|
-
}
|
|
596
|
-
|
|
597
|
-
declare function setInnerHTML(element: TaroNode, html: string): void;
|
|
598
|
-
|
|
599
|
-
/**
|
|
600
|
-
* A MutationRecord represents an individual DOM mutation.
|
|
601
|
-
* It is the object that is passed to MutationObserver's callback.
|
|
602
|
-
* @see https://dom.spec.whatwg.org/#interface-mutationrecord
|
|
603
|
-
* @see https://developer.mozilla.org/en-US/docs/Web/API/MutationRecord
|
|
604
|
-
*/
|
|
605
|
-
interface MutationRecord {
|
|
606
|
-
readonly target: TaroNode;
|
|
607
|
-
readonly addedNodes?: TaroNode[];
|
|
608
|
-
readonly removedNodes?: TaroNode[];
|
|
609
|
-
readonly previousSibling?: TaroNode | null;
|
|
610
|
-
readonly nextSibling?: TaroNode | null;
|
|
611
|
-
readonly attributeName?: string | null;
|
|
612
|
-
readonly attributeNamespace?: string | null;
|
|
613
|
-
oldValue?: string | null;
|
|
614
|
-
readonly type: MutationRecordType;
|
|
615
|
-
readonly value?: string | null;
|
|
616
|
-
}
|
|
617
|
-
declare const enum MutationRecordType {
|
|
618
|
-
ATTRIBUTES = "attributes",
|
|
619
|
-
CHARACTER_DATA = "characterData",
|
|
620
|
-
CHILD_LIST = "childList"
|
|
621
|
-
}
|
|
622
|
-
|
|
623
|
-
type MutationCallback = (mutations: MutationRecord[]) => any;
|
|
624
|
-
/**
|
|
625
|
-
* @see https://dom.spec.whatwg.org/#dictdef-mutationobserverinit
|
|
626
|
-
*/
|
|
627
|
-
interface MutationObserverInit {
|
|
628
|
-
attributeFilter?: string[];
|
|
629
|
-
attributeOldValue?: boolean;
|
|
630
|
-
attributes?: boolean;
|
|
631
|
-
characterData?: boolean;
|
|
632
|
-
characterDataOldValue?: boolean;
|
|
633
|
-
childList?: boolean;
|
|
634
|
-
subtree?: boolean;
|
|
635
|
-
}
|
|
636
|
-
/**
|
|
637
|
-
* The MutationObserver provides the ability
|
|
638
|
-
* to watch for changes being made to the DOM tree.
|
|
639
|
-
* It will invoke a specified callback function
|
|
640
|
-
* when DOM changes occur.
|
|
641
|
-
* @see https://dom.spec.whatwg.org/#mutationobserver
|
|
642
|
-
* @see https://developer.mozilla.org/en-US/docs/Web/API/MutationObserver
|
|
643
|
-
*/
|
|
644
|
-
declare class MutationObserverImpl {
|
|
645
|
-
callback: MutationCallback;
|
|
646
|
-
target: TaroNode | null;
|
|
647
|
-
options: MutationObserverInit;
|
|
648
|
-
records: MutationRecord[];
|
|
649
|
-
constructor(callback: MutationCallback);
|
|
650
|
-
/**
|
|
651
|
-
* Configures the MutationObserver
|
|
652
|
-
* to begin receiving notifications
|
|
653
|
-
* through its callback function
|
|
654
|
-
* when DOM changes matching the given options occur.
|
|
655
|
-
*
|
|
656
|
-
* Options matching is to be implemented.
|
|
657
|
-
*/
|
|
658
|
-
observe(target: TaroNode, options?: MutationObserverInit): void;
|
|
659
|
-
/**
|
|
660
|
-
* Stop the MutationObserver instance
|
|
661
|
-
* from receiving further notifications
|
|
662
|
-
* until and unless observe() is called again.
|
|
663
|
-
*/
|
|
664
|
-
disconnect(): void;
|
|
665
|
-
/**
|
|
666
|
-
* Removes all pending notifications
|
|
667
|
-
* from the MutationObserver's notification queue
|
|
668
|
-
* and returns them in a new Array of MutationRecord objects.
|
|
669
|
-
*/
|
|
670
|
-
takeRecords(): MutationRecord[];
|
|
671
|
-
}
|
|
672
|
-
|
|
673
|
-
declare class MutationObserver {
|
|
674
|
-
core: Pick<MutationObserverImpl, 'observe' | 'disconnect' | 'takeRecords'>;
|
|
675
|
-
constructor(callback: MutationCallback);
|
|
676
|
-
observe(...args: [TaroNode, MutationObserverInit?]): void;
|
|
677
|
-
disconnect(): void;
|
|
678
|
-
takeRecords(): MutationRecord[];
|
|
679
|
-
static record(record: MutationRecord): void;
|
|
680
|
-
}
|
|
681
|
-
|
|
682
|
-
declare const PROPERTY_THRESHOLD = 2046;
|
|
683
|
-
declare const TARO_RUNTIME = "Taro runtime";
|
|
684
|
-
declare const HOOKS_APP_ID = "taro-app";
|
|
685
|
-
declare const SET_DATA = "\u5C0F\u7A0B\u5E8F setData";
|
|
686
|
-
declare const PAGE_INIT = "\u9875\u9762\u521D\u59CB\u5316";
|
|
687
|
-
declare const ROOT_STR = "root";
|
|
688
|
-
declare const HTML = "html";
|
|
689
|
-
declare const HEAD = "head";
|
|
690
|
-
declare const BODY = "body";
|
|
691
|
-
declare const APP = "app";
|
|
692
|
-
declare const CONTAINER = "container";
|
|
693
|
-
declare const DOCUMENT_ELEMENT_NAME = "#document";
|
|
694
|
-
declare const DOCUMENT_FRAGMENT = "document-fragment";
|
|
695
|
-
declare const ID = "id";
|
|
696
|
-
declare const UID = "uid";
|
|
697
|
-
declare const CLASS = "class";
|
|
698
|
-
declare const STYLE = "style";
|
|
699
|
-
declare const FOCUS = "focus";
|
|
700
|
-
declare const VIEW = "view";
|
|
701
|
-
declare const STATIC_VIEW = "static-view";
|
|
702
|
-
declare const PURE_VIEW = "pure-view";
|
|
703
|
-
declare const CLICK_VIEW = "click-view";
|
|
704
|
-
declare const PROPS = "props";
|
|
705
|
-
declare const DATASET = "dataset";
|
|
706
|
-
declare const OBJECT = "object";
|
|
707
|
-
declare const VALUE = "value";
|
|
708
|
-
declare const INPUT = "input";
|
|
709
|
-
declare const CHANGE = "change";
|
|
710
|
-
declare const CUSTOM_WRAPPER = "custom-wrapper";
|
|
711
|
-
declare const TARGET = "target";
|
|
712
|
-
declare const CURRENT_TARGET = "currentTarget";
|
|
713
|
-
declare const TYPE = "type";
|
|
714
|
-
declare const CONFIRM = "confirm";
|
|
715
|
-
declare const TIME_STAMP = "timeStamp";
|
|
716
|
-
declare const KEY_CODE = "keyCode";
|
|
717
|
-
declare const TOUCHMOVE = "touchmove";
|
|
718
|
-
declare const DATE = "Date";
|
|
719
|
-
declare const SET_TIMEOUT = "setTimeout";
|
|
720
|
-
declare const COMPILE_MODE = "compileMode";
|
|
721
|
-
declare const CATCHMOVE = "catchMove";
|
|
722
|
-
declare const CATCH_VIEW = "catch-view";
|
|
723
|
-
declare const COMMENT = "comment";
|
|
724
|
-
declare const ON_LOAD = "onLoad";
|
|
725
|
-
declare const ON_READY = "onReady";
|
|
726
|
-
declare const ON_SHOW = "onShow";
|
|
727
|
-
declare const ON_HIDE = "onHide";
|
|
728
|
-
declare const OPTIONS = "options";
|
|
729
|
-
declare const EXTERNAL_CLASSES = "externalClasses";
|
|
730
|
-
declare const EVENT_CALLBACK_RESULT = "e_result";
|
|
731
|
-
declare const BEHAVIORS = "behaviors";
|
|
732
|
-
declare const A = "a";
|
|
733
|
-
declare enum CONTEXT_ACTIONS {
|
|
734
|
-
INIT = "0",
|
|
735
|
-
RESTORE = "1",
|
|
736
|
-
RECOVER = "2",
|
|
737
|
-
DESTROY = "3"
|
|
738
|
-
}
|
|
739
|
-
|
|
740
|
-
interface Instance<T = Record<string, any>> extends Component$1<T>, Show, PageInstance {
|
|
741
|
-
tid?: string;
|
|
742
|
-
node?: TaroElement;
|
|
743
|
-
$forceUpdate?(): void;
|
|
744
|
-
$nextTick?(cb: () => void): void;
|
|
745
|
-
$options: Instance;
|
|
746
|
-
}
|
|
747
|
-
interface PageProps {
|
|
748
|
-
tid?: string;
|
|
749
|
-
}
|
|
750
|
-
interface ReactPageComponent<T = PageProps> extends ComponentClass<T>, PageInstance {
|
|
751
|
-
}
|
|
752
|
-
interface ReactPageInstance<T = PageProps> extends Component$1<T>, PageInstance {
|
|
753
|
-
componentDidShow?(): void;
|
|
754
|
-
componentDidHide?(): void;
|
|
755
|
-
}
|
|
756
|
-
interface ReactAppInstance<T = AppInstance> extends Component$1<T>, AppInstance {
|
|
757
|
-
}
|
|
758
|
-
interface PageLifeCycle extends Show {
|
|
759
|
-
eh?(event: MpEvent): void;
|
|
760
|
-
onAddToFavorites?(): void;
|
|
761
|
-
onLoad?(options: Record<string, unknown>, cb?: TFunc): void;
|
|
762
|
-
onOptionMenuClick?(): void;
|
|
763
|
-
onKeyboardHeight?(obj: {
|
|
764
|
-
height: number;
|
|
765
|
-
}): void;
|
|
766
|
-
onPageScroll?(obj: {
|
|
767
|
-
scrollTop: number;
|
|
768
|
-
}): void;
|
|
769
|
-
onPullDownRefresh?(): void;
|
|
770
|
-
onPullIntercept?(): void;
|
|
771
|
-
onPopMenuClick?(): void;
|
|
772
|
-
onReachBottom?(): void;
|
|
773
|
-
onReady?(): void;
|
|
774
|
-
onResize?(options: unknown): void;
|
|
775
|
-
onSaveExitState?(): void;
|
|
776
|
-
onShareAppMessage?(obj: {
|
|
777
|
-
from: string;
|
|
778
|
-
target?: TaroElement;
|
|
779
|
-
webViewUrl: string;
|
|
780
|
-
}): void;
|
|
781
|
-
onShareTimeline?(): void;
|
|
782
|
-
onTabItemTap?(obj: {
|
|
783
|
-
index: string;
|
|
784
|
-
pagePath: string;
|
|
785
|
-
text: string;
|
|
786
|
-
}): void;
|
|
787
|
-
onTitleClick?(): void;
|
|
788
|
-
onUnload?(): void;
|
|
789
|
-
}
|
|
790
|
-
interface PageInstance extends PageLifeCycle {
|
|
791
|
-
/** 页面的初始数据 */
|
|
792
|
-
data?: Record<string, unknown>;
|
|
793
|
-
/** 页面路径 */
|
|
794
|
-
path?: string;
|
|
795
|
-
/** 页面的组件选项 */
|
|
796
|
-
options?: Record<string, unknown>;
|
|
797
|
-
/** 页面渲染引擎类型 */
|
|
798
|
-
renderer?: 'webview' | 'skyline';
|
|
799
|
-
/** 页面事件对象,支付宝小程序特有,详见[events](https://opendocs.alipay.com/mini/framework/page-detail#events) */
|
|
800
|
-
events?: Record<string, (...args: any[]) => any>;
|
|
801
|
-
/** 获得一个 EventChannel 对象,用于页面间通讯 */
|
|
802
|
-
getOpenerEventChannel?(): Record<string, any>;
|
|
803
|
-
/** 执行关键帧动画,详见[动画](https://developers.weixin.qq.com/miniprogram/dev/framework/view/animation.html) */
|
|
804
|
-
animate?(selector: string, keyFrames: KeyFrame[], duration: number, callback: () => void): void;
|
|
805
|
-
/** 滚动驱动的动画,详见[动画](https://developers.weixin.qq.com/miniprogram/dev/framework/view/animation.html) */
|
|
806
|
-
animate?(selector: string, keyFrames: KeyFrame[], duration: number, scrollTimeline: ScrollTimelineOption): void;
|
|
807
|
-
}
|
|
808
|
-
interface Show {
|
|
809
|
-
componentDidShow?(): void;
|
|
810
|
-
componentDidHide?(): void;
|
|
811
|
-
onShow?(): void;
|
|
812
|
-
onHide?(): void;
|
|
813
|
-
}
|
|
814
|
-
interface AppInstance extends Show {
|
|
815
|
-
componentDidShow?(options?: Record<string, unknown>): void;
|
|
816
|
-
mount?(component: React.ComponentClass | Component, id: string, cb: (...args: any[]) => void): void;
|
|
817
|
-
mount?(component: React.ComponentClass | Component, id: string, getCtx: (...args: any[]) => void, cb: (...args: any[]) => void): void;
|
|
818
|
-
onError?(error: string): void;
|
|
819
|
-
onLaunch?(options?: Record<string, unknown>): void;
|
|
820
|
-
onPageNotFound?(res: any): void;
|
|
821
|
-
onUnhandledRejection?(error: any): void;
|
|
822
|
-
onShow?(options?: Record<string, unknown>): void;
|
|
823
|
-
onHide?(options?: Record<string, unknown>): void;
|
|
824
|
-
unmount?(id: string, cb?: () => void): void;
|
|
825
|
-
taroGlobalData?: Record<any, any>;
|
|
826
|
-
config?: Record<any, any>;
|
|
827
|
-
}
|
|
828
|
-
|
|
829
|
-
interface Router {
|
|
830
|
-
params: Record<string, unknown>;
|
|
831
|
-
path: string;
|
|
832
|
-
$taroPath: string;
|
|
833
|
-
onReady: string;
|
|
834
|
-
onHide: string;
|
|
835
|
-
onShow: string;
|
|
836
|
-
exitState?: any;
|
|
837
|
-
}
|
|
838
|
-
interface Current {
|
|
839
|
-
app: AppInstance | null;
|
|
840
|
-
router: Router | null;
|
|
841
|
-
page: PageInstance | null;
|
|
842
|
-
preloadData?: any;
|
|
843
|
-
}
|
|
844
|
-
declare const Current: Current;
|
|
845
|
-
declare const getCurrentInstance: () => Current;
|
|
846
|
-
|
|
847
|
-
interface IEventSource extends Map<string | undefined | null, TaroNode> {
|
|
848
|
-
removeNode(child: TaroNode): void;
|
|
849
|
-
removeNodeTree(child: TaroNode): void;
|
|
850
|
-
}
|
|
851
|
-
declare const eventSource: IEventSource;
|
|
852
|
-
|
|
853
|
-
declare function injectPageInstance(inst: Instance<PageProps>, id: string): void;
|
|
854
|
-
declare function getPageInstance(id: string): Instance | undefined;
|
|
855
|
-
declare function removePageInstance(id: string): void;
|
|
856
|
-
declare function safeExecute(path: string, lifecycle: string, ...args: unknown[]): any;
|
|
857
|
-
declare function stringify(obj?: Record<string, unknown>): string;
|
|
858
|
-
declare function getPath(id: string, options?: Record<string, unknown>): string;
|
|
859
|
-
declare function getOnReadyEventKey(path: string): string;
|
|
860
|
-
declare function getOnShowEventKey(path: string): string;
|
|
861
|
-
declare function getOnHideEventKey(path: string): string;
|
|
862
|
-
declare function createPageConfig(component: any, pageName?: string, data?: Record<string, unknown>, pageConfig?: PageConfig): PageInstance;
|
|
863
|
-
declare function createComponentConfig(component: React.ComponentClass, componentName?: string, data?: Record<string, unknown>): any;
|
|
864
|
-
declare function createRecursiveComponentConfig(componentName?: string): any;
|
|
865
|
-
|
|
866
|
-
/**
|
|
867
|
-
* React also has a fancy function's name for this: `hydrate()`.
|
|
868
|
-
* You may have been heard `hydrate` as a SSR-related function,
|
|
869
|
-
* actually, `hydrate` basicly do the `render()` thing, but ignore some properties,
|
|
870
|
-
* it's a vnode traverser and modifier: that's exactly what Taro's doing in here.
|
|
871
|
-
*/
|
|
872
|
-
declare function hydrate(node: TaroElement | TaroText): MiniData;
|
|
873
|
-
|
|
874
|
-
declare const nextTick: (cb: TFunc, ctx?: Record<string, any>) => void;
|
|
875
|
-
|
|
876
|
-
declare const options: Options$2;
|
|
877
|
-
|
|
878
|
-
declare class Performance {
|
|
879
|
-
#private;
|
|
880
|
-
private recorder;
|
|
881
|
-
start(id: string): void;
|
|
882
|
-
stop(id: string, now?: number): void;
|
|
883
|
-
delayStop(id: string, delay?: number): ((...args: any[]) => void) | undefined;
|
|
884
|
-
}
|
|
885
|
-
declare const perf: Performance;
|
|
886
|
-
|
|
887
|
-
declare function throttle(fn: any, threshold?: number, scope?: any): (...args: any[]) => void;
|
|
888
|
-
declare function debounce(fn: any, ms?: number, scope?: any): (...args: any[]) => void;
|
|
889
|
-
|
|
890
|
-
declare const addLeadingSlash: (url?: string) => string;
|
|
891
|
-
declare const hasBasename: (path?: string, prefix?: string) => boolean;
|
|
892
|
-
declare const stripBasename: (path?: string, prefix?: string) => string;
|
|
893
|
-
declare const stripTrailing: (str?: string) => string;
|
|
894
|
-
declare const stripSuffix: (path?: string, suffix?: string) => string;
|
|
895
|
-
declare const getHomePage: (path?: string, basename?: string, customRoutes?: Record<string, string | string[]>, entryPagePath?: string) => string;
|
|
896
|
-
declare const getCurrentPage: (routerMode?: string, basename?: string) => string;
|
|
897
|
-
|
|
898
|
-
declare const incrementId: () => () => string;
|
|
899
|
-
declare function isElement(node: TaroNode): node is TaroElement;
|
|
900
|
-
declare function isText(node: TaroNode): node is TaroText;
|
|
901
|
-
declare function isComment(node: TaroNode): boolean;
|
|
902
|
-
declare function isHasExtractProp(el: TaroElement): boolean;
|
|
903
|
-
/**
|
|
904
|
-
* 往上寻找组件树直到 root,寻找是否有祖先组件绑定了同类型的事件
|
|
905
|
-
* @param node 当前组件
|
|
906
|
-
* @param type 事件类型
|
|
907
|
-
*/
|
|
908
|
-
declare function isParentBound(node: TaroElement | null, type: string): boolean;
|
|
909
|
-
declare function shortcutAttr(key: string): string;
|
|
910
|
-
declare const customWrapperCache: Map<string, Record<string, any>>;
|
|
911
|
-
interface Ctor {
|
|
912
|
-
new (...args: any[]): any;
|
|
913
|
-
}
|
|
914
|
-
declare function extend(ctor: Ctor, methodName: string, options: TFunc | Record<string, any>): void;
|
|
915
|
-
declare function getComponentsAlias(): any;
|
|
916
|
-
declare function convertNumber2PX(value: number): string;
|
|
917
|
-
|
|
918
|
-
declare function handlePolyfill(): void;
|
|
919
|
-
|
|
920
|
-
export { A, APP, BEHAVIORS, BODY, CATCHMOVE, CATCH_VIEW, CHANGE, CLASS, CLICK_VIEW, COMMENT, COMPILE_MODE, CONFIRM, CONTAINER, CONTEXT_ACTIONS, CURRENT_TARGET, CUSTOM_WRAPPER, Current, DATASET, DATE, DOCUMENT_ELEMENT_NAME, DOCUMENT_FRAGMENT, EVENT_CALLBACK_RESULT, EXTERNAL_CLASSES, FOCUS, FormElement, HEAD, HOOKS_APP_ID, HTML, History, ID, INPUT, KEY_CODE, Location, MutationObserver, OBJECT, ON_HIDE, ON_LOAD, ON_READY, ON_SHOW, OPTIONS, PAGE_INIT, PROPERTY_THRESHOLD, PROPS, PURE_VIEW, ROOT_STR, SET_DATA, SET_TIMEOUT, STATIC_VIEW, STYLE, SVGElement, Style, TARGET, TARO_RUNTIME, TIME_STAMP, TOUCHMOVE, TYPE, TaroElement, TaroEvent, TaroNode, TaroRootElement, TaroText, UID, TaroURLProvider as URL, URLSearchParams$1 as URLSearchParams, VALUE, VIEW, addLeadingSlash, _caf as cancelAnimationFrame, convertNumber2PX, createComponentConfig, createEvent, createPageConfig, createRecursiveComponentConfig, customWrapperCache, debounce, taroDocumentProvider as document, env, eventCenter, eventHandler, eventHandlerTTDom, eventSource, extend, getComponentsAlias, taroGetComputedStyleProvider as getComputedStyle, getCurrentInstance, getCurrentPage, getHomePage, getOnHideEventKey, getOnReadyEventKey, getOnShowEventKey, getPageInstance, getPath, handlePolyfill, hasBasename, taroHistoryProvider as history, hydrate, incrementId, injectPageInstance, isComment, isElement, isHasExtractProp, isParentBound, isText, taroLocationProvider as location, nav as navigator, nextTick, now, options, parseUrl, perf, removePageInstance, _raf as requestAnimationFrame, safeExecute, setInnerHTML, shortcutAttr, stringify, stripBasename, stripSuffix, stripTrailing, throttle, taroWindowProvider as window };
|
|
921
|
-
export type { AddEventListenerOptions, AppInstance, Attributes, DataTree, EventHandler, EventListenerOptions, EventOptions, EventsType, HydratedData, Instance, KeyFrame, MiniData, MiniElementData, MiniTextData, MpEvent, MpInstance, Options$2 as Options, PageConfig, PageInstance, PageLifeCycle, PageProps, ReactAppInstance, ReactPageComponent, ReactPageInstance, ScrollTimelineOption, TFunc, UpdatePayload, UpdatePayloadValue };
|