wevu 7.0.3 → 7.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +20 -4
- package/dist/alipay/jsx-runtime.d.mts +13 -0
- package/dist/alipay/jsx-runtime.mjs +1 -0
- package/dist/alipayIntrinsicElements/base.d.mts +4 -0
- package/dist/alipayIntrinsicElements/elements/button.d.mts +29 -0
- package/dist/alipayIntrinsicElements/elements/camera.d.mts +18 -0
- package/dist/alipayIntrinsicElements/elements/canvas.d.mts +20 -0
- package/dist/alipayIntrinsicElements/elements/checkbox-group.d.mts +11 -0
- package/dist/alipayIntrinsicElements/elements/checkbox.d.mts +14 -0
- package/dist/alipayIntrinsicElements/elements/contact-button.d.mts +15 -0
- package/dist/alipayIntrinsicElements/elements/cover-image.d.mts +11 -0
- package/dist/alipayIntrinsicElements/elements/cover-view.d.mts +11 -0
- package/dist/alipayIntrinsicElements/elements/error-view.d.mts +14 -0
- package/dist/alipayIntrinsicElements/elements/form.d.mts +12 -0
- package/dist/alipayIntrinsicElements/elements/icon.d.mts +11 -0
- package/dist/alipayIntrinsicElements/elements/image.d.mts +17 -0
- package/dist/alipayIntrinsicElements/elements/input.d.mts +31 -0
- package/dist/alipayIntrinsicElements/elements/join-group-chat.d.mts +9 -0
- package/dist/alipayIntrinsicElements/elements/label.d.mts +9 -0
- package/dist/alipayIntrinsicElements/elements/lifestyle.d.mts +11 -0
- package/dist/alipayIntrinsicElements/elements/lottie.d.mts +25 -0
- package/dist/alipayIntrinsicElements/elements/map.d.mts +44 -0
- package/dist/alipayIntrinsicElements/elements/match-media.d.mts +15 -0
- package/dist/alipayIntrinsicElements/elements/movable-area.d.mts +9 -0
- package/dist/alipayIntrinsicElements/elements/movable-view.d.mts +32 -0
- package/dist/alipayIntrinsicElements/elements/navigator.d.mts +13 -0
- package/dist/alipayIntrinsicElements/elements/page-container.d.mts +27 -0
- package/dist/alipayIntrinsicElements/elements/page-meta.d.mts +19 -0
- package/dist/alipayIntrinsicElements/elements/picker-view-column.d.mts +7 -0
- package/dist/alipayIntrinsicElements/elements/picker-view.d.mts +18 -0
- package/dist/alipayIntrinsicElements/elements/picker.d.mts +15 -0
- package/dist/alipayIntrinsicElements/elements/progress.d.mts +14 -0
- package/dist/alipayIntrinsicElements/elements/radio-group.d.mts +11 -0
- package/dist/alipayIntrinsicElements/elements/radio.d.mts +12 -0
- package/dist/alipayIntrinsicElements/elements/rich-text.d.mts +17 -0
- package/dist/alipayIntrinsicElements/elements/root-portal.d.mts +9 -0
- package/dist/alipayIntrinsicElements/elements/scroll-view.d.mts +29 -0
- package/dist/alipayIntrinsicElements/elements/share-element.d.mts +12 -0
- package/dist/alipayIntrinsicElements/elements/slider.d.mts +23 -0
- package/dist/alipayIntrinsicElements/elements/subscribe-message.d.mts +11 -0
- package/dist/alipayIntrinsicElements/elements/swiper-item.d.mts +7 -0
- package/dist/alipayIntrinsicElements/elements/swiper.d.mts +36 -0
- package/dist/alipayIntrinsicElements/elements/switch.d.mts +15 -0
- package/dist/alipayIntrinsicElements/elements/text.d.mts +12 -0
- package/dist/alipayIntrinsicElements/elements/textarea.d.mts +24 -0
- package/dist/alipayIntrinsicElements/elements/video.d.mts +39 -0
- package/dist/alipayIntrinsicElements/elements/view.d.mts +29 -0
- package/dist/alipayIntrinsicElements/elements/web-view.d.mts +13 -0
- package/dist/alipayIntrinsicElements.d.mts +94 -0
- package/dist/dev/_virtual/{_@oxc-project_runtime@0.148.0 → _@oxc-project_runtime@0.149.0}/helpers/esm/defineProperty.mjs +1 -1
- package/dist/dev/_virtual/{_@oxc-project_runtime@0.148.0 → _@oxc-project_runtime@0.149.0}/helpers/esm/toPrimitive.mjs +1 -1
- package/dist/dev/_virtual/{_@oxc-project_runtime@0.148.0 → _@oxc-project_runtime@0.149.0}/helpers/esm/toPropertyKey.mjs +1 -1
- package/dist/dev/_virtual/{_@oxc-project_runtime@0.148.0 → _@oxc-project_runtime@0.149.0}/helpers/esm/typeof.mjs +1 -1
- package/dist/dev/alipayIntrinsicElements/base.d.mts +5 -0
- package/dist/dev/alipayIntrinsicElements/elements/button.d.mts +30 -0
- package/dist/dev/alipayIntrinsicElements/elements/camera.d.mts +19 -0
- package/dist/dev/alipayIntrinsicElements/elements/canvas.d.mts +21 -0
- package/dist/dev/alipayIntrinsicElements/elements/checkbox-group.d.mts +12 -0
- package/dist/dev/alipayIntrinsicElements/elements/checkbox.d.mts +15 -0
- package/dist/dev/alipayIntrinsicElements/elements/contact-button.d.mts +16 -0
- package/dist/dev/alipayIntrinsicElements/elements/cover-image.d.mts +12 -0
- package/dist/dev/alipayIntrinsicElements/elements/cover-view.d.mts +12 -0
- package/dist/dev/alipayIntrinsicElements/elements/error-view.d.mts +15 -0
- package/dist/dev/alipayIntrinsicElements/elements/form.d.mts +13 -0
- package/dist/dev/alipayIntrinsicElements/elements/icon.d.mts +12 -0
- package/dist/dev/alipayIntrinsicElements/elements/image.d.mts +18 -0
- package/dist/dev/alipayIntrinsicElements/elements/input.d.mts +32 -0
- package/dist/dev/alipayIntrinsicElements/elements/join-group-chat.d.mts +10 -0
- package/dist/dev/alipayIntrinsicElements/elements/label.d.mts +10 -0
- package/dist/dev/alipayIntrinsicElements/elements/lifestyle.d.mts +12 -0
- package/dist/dev/alipayIntrinsicElements/elements/lottie.d.mts +26 -0
- package/dist/dev/alipayIntrinsicElements/elements/map.d.mts +45 -0
- package/dist/dev/alipayIntrinsicElements/elements/match-media.d.mts +16 -0
- package/dist/dev/alipayIntrinsicElements/elements/movable-area.d.mts +10 -0
- package/dist/dev/alipayIntrinsicElements/elements/movable-view.d.mts +33 -0
- package/dist/dev/alipayIntrinsicElements/elements/navigator.d.mts +14 -0
- package/dist/dev/alipayIntrinsicElements/elements/page-container.d.mts +28 -0
- package/dist/dev/alipayIntrinsicElements/elements/page-meta.d.mts +20 -0
- package/dist/dev/alipayIntrinsicElements/elements/picker-view-column.d.mts +8 -0
- package/dist/dev/alipayIntrinsicElements/elements/picker-view.d.mts +19 -0
- package/dist/dev/alipayIntrinsicElements/elements/picker.d.mts +16 -0
- package/dist/dev/alipayIntrinsicElements/elements/progress.d.mts +15 -0
- package/dist/dev/alipayIntrinsicElements/elements/radio-group.d.mts +12 -0
- package/dist/dev/alipayIntrinsicElements/elements/radio.d.mts +13 -0
- package/dist/dev/alipayIntrinsicElements/elements/rich-text.d.mts +18 -0
- package/dist/dev/alipayIntrinsicElements/elements/root-portal.d.mts +10 -0
- package/dist/dev/alipayIntrinsicElements/elements/scroll-view.d.mts +30 -0
- package/dist/dev/alipayIntrinsicElements/elements/share-element.d.mts +13 -0
- package/dist/dev/alipayIntrinsicElements/elements/slider.d.mts +24 -0
- package/dist/dev/alipayIntrinsicElements/elements/subscribe-message.d.mts +12 -0
- package/dist/dev/alipayIntrinsicElements/elements/swiper-item.d.mts +8 -0
- package/dist/dev/alipayIntrinsicElements/elements/swiper.d.mts +37 -0
- package/dist/dev/alipayIntrinsicElements/elements/switch.d.mts +16 -0
- package/dist/dev/alipayIntrinsicElements/elements/text.d.mts +13 -0
- package/dist/dev/alipayIntrinsicElements/elements/textarea.d.mts +25 -0
- package/dist/dev/alipayIntrinsicElements/elements/video.d.mts +40 -0
- package/dist/dev/alipayIntrinsicElements/elements/view.d.mts +30 -0
- package/dist/dev/alipayIntrinsicElements/elements/web-view.d.mts +14 -0
- package/dist/dev/alipayIntrinsicElements.d.mts +94 -0
- package/dist/dev/api/vitest/setup.d.mts +1 -0
- package/dist/dev/api/vitest.d.mts +1 -0
- package/dist/dev/api.d.mts +1 -0
- package/dist/dev/compiler.d.mts +1 -0
- package/dist/dev/fetch.d.mts +9 -0
- package/dist/dev/index.d.mts +72 -0
- package/dist/dev/index.mjs +12 -15
- package/dist/dev/internal-reactivity.d.mts +18 -0
- package/dist/dev/internal-reactivity.mjs +3 -2
- package/dist/dev/internal-runtime.d.mts +44 -0
- package/dist/dev/internal-runtime.mjs +19 -14
- package/dist/dev/internal-template.d.mts +2 -0
- package/dist/dev/jsx-runtime.d.mts +44 -0
- package/dist/dev/jsxTypes.d.mts +9 -0
- package/dist/dev/macros/shared.d.mts +81 -0
- package/dist/dev/macros.d.mts +71 -0
- package/dist/dev/package.mjs +1 -1
- package/dist/dev/reactivity/asyncDerivation.d.mts +41 -0
- package/dist/dev/reactivity/asyncDerivation.mjs +130 -0
- package/dist/dev/reactivity/asyncDerivation.mjs.map +1 -0
- package/dist/dev/reactivity/computed.d.mts +21 -0
- package/dist/dev/reactivity/computed.mjs +2 -2
- package/dist/dev/reactivity/computed.mjs.map +1 -1
- package/dist/dev/reactivity/core.d.mts +35 -0
- package/dist/dev/reactivity/core.mjs +156 -32
- package/dist/dev/reactivity/core.mjs.map +1 -1
- package/dist/dev/reactivity/index.d.mts +16 -0
- package/dist/dev/reactivity/reactive/mutation.d.mts +21 -0
- package/dist/dev/reactivity/reactive/patch.d.mts +18 -0
- package/dist/dev/reactivity/reactive/shallow.d.mts +22 -0
- package/dist/dev/reactivity/reactive/shared.d.mts +4 -0
- package/dist/dev/reactivity/reactive.d.mts +42 -0
- package/dist/dev/reactivity/readonly.d.mts +27 -0
- package/dist/dev/reactivity/readonly.mjs.map +1 -1
- package/dist/dev/reactivity/ref.d.mts +27 -0
- package/dist/dev/reactivity/ref.mjs +1 -1
- package/dist/dev/reactivity/shallowRef.d.mts +19 -0
- package/dist/dev/reactivity/toRefs.d.mts +43 -0
- package/dist/dev/reactivity/traverse.d.mts +8 -0
- package/dist/dev/reactivity/watch/types.d.mts +43 -0
- package/dist/dev/reactivity/watch.d.mts +22 -0
- package/dist/dev/router/createRouter.d.mts +8 -0
- package/dist/dev/router/navigationCore.d.mts +6 -0
- package/dist/dev/router/resolve.d.mts +6 -0
- package/dist/dev/router/routeSync.d.mts +1 -0
- package/dist/dev/router/routeSync.mjs +8 -2
- package/dist/dev/router/routeSync.mjs.map +1 -1
- package/dist/dev/router/types.d.mts +172 -0
- package/dist/dev/router/useRoute.d.mts +19 -0
- package/dist/dev/router/useRoute.mjs +14 -7
- package/dist/dev/router/useRoute.mjs.map +1 -1
- package/dist/dev/router/useRouter.d.mts +8 -0
- package/dist/dev/router.d.mts +10 -0
- package/dist/dev/routerInternal/query.d.mts +7 -0
- package/dist/dev/routerInternal/types.d.mts +9 -0
- package/dist/dev/runtime/app/computed.mjs +2 -2
- package/dist/dev/runtime/app/computed.mjs.map +1 -1
- package/dist/dev/runtime/app/context.mjs +8 -2
- package/dist/dev/runtime/app/context.mjs.map +1 -1
- package/dist/dev/runtime/app/diagnostics.mjs +12 -0
- package/dist/dev/runtime/app/diagnostics.mjs.map +1 -1
- package/dist/dev/runtime/app/mount.mjs +31 -28
- package/dist/dev/runtime/app/mount.mjs.map +1 -1
- package/dist/dev/runtime/app/pending.d.mts +10 -0
- package/dist/dev/runtime/app/setData/commitTracker.d.mts +13 -0
- package/dist/dev/runtime/app/setData/commitTracker.mjs +265 -0
- package/dist/dev/runtime/app/setData/commitTracker.mjs.map +1 -0
- package/dist/dev/runtime/app/setData/patchScheduler.mjs +47 -51
- package/dist/dev/runtime/app/setData/patchScheduler.mjs.map +1 -1
- package/dist/dev/runtime/app/setData/scheduler.d.mts +51 -0
- package/dist/dev/runtime/app/setData/scheduler.mjs +98 -111
- package/dist/dev/runtime/app/setData/scheduler.mjs.map +1 -1
- package/dist/dev/runtime/app/setData/snapshot.mjs +11 -1
- package/dist/dev/runtime/app/setData/snapshot.mjs.map +1 -1
- package/dist/dev/runtime/app.d.mts +8 -0
- package/dist/dev/runtime/app.mjs +18 -6
- package/dist/dev/runtime/app.mjs.map +1 -1
- package/dist/dev/runtime/bindingManifest.mjs +105 -0
- package/dist/dev/runtime/bindingManifest.mjs.map +1 -0
- package/dist/dev/runtime/capabilities.d.mts +75 -0
- package/dist/dev/runtime/capabilities.mjs +40 -0
- package/dist/dev/runtime/capabilities.mjs.map +1 -0
- package/dist/dev/runtime/css.d.mts +14 -0
- package/dist/dev/runtime/defaults.d.mts +12 -0
- package/dist/dev/runtime/define/componentDefinition.mjs +3 -0
- package/dist/dev/runtime/define/componentDefinition.mjs.map +1 -1
- package/dist/dev/runtime/define/optionsApi.mjs +1 -1
- package/dist/dev/runtime/define/props.mjs +30 -60
- package/dist/dev/runtime/define/props.mjs.map +1 -1
- package/dist/dev/runtime/define/scopedSlotOptions.mjs +37 -21
- package/dist/dev/runtime/define/scopedSlotOptions.mjs.map +1 -1
- package/dist/dev/runtime/define.d.mts +118 -0
- package/dist/dev/runtime/define.mjs +32 -44
- package/dist/dev/runtime/define.mjs.map +1 -1
- package/dist/dev/runtime/diff.mjs +1 -1
- package/dist/dev/runtime/disposables.d.mts +31 -0
- package/dist/dev/runtime/elementIntersectionObserver.d.mts +26 -0
- package/dist/dev/runtime/features/inlineEvents.d.mts +7 -0
- package/dist/dev/runtime/features/inlineEvents.mjs +25 -0
- package/dist/dev/runtime/features/inlineEvents.mjs.map +1 -0
- package/dist/dev/runtime/features/layout.d.mts +7 -0
- package/dist/dev/runtime/features/layout.mjs +44 -0
- package/dist/dev/runtime/features/layout.mjs.map +1 -0
- package/dist/dev/runtime/features/patchStrategy.d.mts +7 -0
- package/dist/dev/runtime/features/patchStrategy.mjs +129 -0
- package/dist/dev/runtime/features/patchStrategy.mjs.map +1 -0
- package/dist/dev/runtime/features/publicLayout.d.mts +24 -0
- package/dist/dev/runtime/features/publicLayout.mjs +81 -0
- package/dist/dev/runtime/features/publicLayout.mjs.map +1 -0
- package/dist/dev/runtime/features/scopedSlots.d.mts +23 -0
- package/dist/dev/runtime/features/scopedSlots.mjs +88 -0
- package/dist/dev/runtime/features/scopedSlots.mjs.map +1 -0
- package/dist/dev/runtime/features/setDataHighFrequencyWarning.d.mts +7 -0
- package/dist/dev/runtime/features/setDataHighFrequencyWarning.mjs +15 -0
- package/dist/dev/runtime/features/setDataHighFrequencyWarning.mjs.map +1 -0
- package/dist/dev/runtime/features/templateRefs.d.mts +7 -0
- package/dist/dev/runtime/features/templateRefs.mjs +39 -0
- package/dist/dev/runtime/features/templateRefs.mjs.map +1 -0
- package/dist/dev/runtime/hooks/base.d.mts +27 -0
- package/dist/dev/runtime/hooks/register.d.mts +30 -0
- package/dist/dev/runtime/hooks/vue.d.mts +52 -0
- package/dist/dev/runtime/hooks/vue.mjs +3 -5
- package/dist/dev/runtime/hooks/vue.mjs.map +1 -1
- package/dist/dev/runtime/hooks.d.mts +4 -0
- package/dist/dev/runtime/index.d.mts +46 -0
- package/dist/dev/runtime/inlineDataset.mjs +75 -0
- package/dist/dev/runtime/inlineDataset.mjs.map +1 -0
- package/dist/dev/runtime/intersectionObserver.d.mts +14 -0
- package/dist/dev/runtime/jsxIsland.d.mts +37 -0
- package/dist/dev/runtime/jsxIsland.mjs.map +1 -1
- package/dist/dev/runtime/layoutBridge.d.mts +55 -0
- package/dist/dev/runtime/layoutBridge.mjs.map +1 -1
- package/dist/dev/runtime/noSetData.d.mts +5 -0
- package/dist/dev/runtime/pageEnvironment.d.mts +50 -0
- package/dist/dev/runtime/pageLayout.d.mts +25 -0
- package/dist/dev/runtime/pageLayout.mjs.map +1 -1
- package/dist/dev/runtime/pageScroll.d.mts +29 -0
- package/dist/dev/runtime/provide.d.mts +60 -0
- package/dist/dev/runtime/provideStore.d.mts +7 -0
- package/dist/dev/runtime/publicRuntime.d.mts +22 -0
- package/dist/dev/runtime/publicRuntime.mjs +91 -0
- package/dist/dev/runtime/publicRuntime.mjs.map +1 -0
- package/dist/dev/runtime/pullDownRefresh.d.mts +12 -0
- package/dist/dev/runtime/register/app.d.mts +14 -0
- package/dist/dev/runtime/register/app.mjs +7 -10
- package/dist/dev/runtime/register/app.mjs.map +1 -1
- package/dist/dev/runtime/register/component/lifecycle.mjs +22 -6
- package/dist/dev/runtime/register/component/lifecycle.mjs.map +1 -1
- package/dist/dev/runtime/register/component/methods.mjs +7 -10
- package/dist/dev/runtime/register/component/methods.mjs.map +1 -1
- package/dist/dev/runtime/register/component/options.mjs.map +1 -1
- package/dist/dev/runtime/register/component/registerDefinition.mjs +64 -69
- package/dist/dev/runtime/register/component/registerDefinition.mjs.map +1 -1
- package/dist/dev/runtime/register/component.d.mts +17 -0
- package/dist/dev/runtime/register/inline.d.mts +15 -0
- package/dist/dev/runtime/register/inline.mjs +4 -64
- package/dist/dev/runtime/register/inline.mjs.map +1 -1
- package/dist/dev/runtime/register/runtimeInstance/setupContext.mjs +16 -2
- package/dist/dev/runtime/register/runtimeInstance/setupContext.mjs.map +1 -1
- package/dist/dev/runtime/register/runtimeInstance/setupPhase.mjs +0 -4
- package/dist/dev/runtime/register/runtimeInstance/setupPhase.mjs.map +1 -1
- package/dist/dev/runtime/register/runtimeInstance/setupSnapshot.mjs +26 -0
- package/dist/dev/runtime/register/runtimeInstance/setupSnapshot.mjs.map +1 -0
- package/dist/dev/runtime/register/runtimeInstance/utils.mjs.map +1 -1
- package/dist/dev/runtime/register/runtimeInstance.d.mts +26 -0
- package/dist/dev/runtime/register/runtimeInstance.mjs +402 -160
- package/dist/dev/runtime/register/runtimeInstance.mjs.map +1 -1
- package/dist/dev/runtime/register/setDataFrequencyWarning.mjs.map +1 -1
- package/dist/dev/runtime/register/setup.d.mts +11 -0
- package/dist/dev/runtime/register/snapshot.mjs +6 -10
- package/dist/dev/runtime/register/snapshot.mjs.map +1 -1
- package/dist/dev/runtime/register/watch.d.mts +12 -0
- package/dist/dev/runtime/register.d.mts +5 -0
- package/dist/dev/runtime/scopedSlots.mjs +1 -1
- package/dist/dev/runtime/scopedSlots.mjs.map +1 -1
- package/dist/dev/runtime/selectorQuery.d.mts +54 -0
- package/dist/dev/runtime/selectorQuery.mjs +5 -0
- package/dist/dev/runtime/selectorQuery.mjs.map +1 -1
- package/dist/dev/runtime/teardown.mjs +18 -0
- package/dist/dev/runtime/teardown.mjs.map +1 -0
- package/dist/dev/runtime/template.d.mts +6 -0
- package/dist/dev/runtime/templateRefTypes.d.mts +12 -0
- package/dist/dev/runtime/templateRefs/helpers.mjs.map +1 -1
- package/dist/dev/runtime/templateRefs.mjs +187 -118
- package/dist/dev/runtime/templateRefs.mjs.map +1 -1
- package/dist/dev/runtime/types/core.d.mts +35 -0
- package/dist/dev/runtime/types/miniprogram.d.mts +84 -0
- package/dist/dev/runtime/types/miniprogramHost.d.mts +45 -0
- package/dist/dev/runtime/types/miniprogramHostSources.d.mts +112 -0
- package/dist/dev/runtime/types/options.d.mts +136 -0
- package/dist/dev/runtime/types/props/propTypes.d.mts +79 -0
- package/dist/dev/runtime/types/props/router.d.mts +51 -0
- package/dist/dev/runtime/types/props/setup.d.mts +96 -0
- package/dist/dev/runtime/types/props.d.mts +4 -0
- package/dist/dev/runtime/types/runtime.d.mts +59 -0
- package/dist/dev/runtime/types/setData.d.mts +237 -0
- package/dist/dev/runtime/types.d.mts +29 -0
- package/dist/dev/runtime/uniAppHost.d.mts +8 -0
- package/dist/dev/runtime/updatePerformance.d.mts +13 -0
- package/dist/dev/runtime/use.d.mts +13 -0
- package/dist/dev/runtime/vueCompat/context.d.mts +8 -0
- package/dist/dev/runtime/vueCompat/model.d.mts +30 -0
- package/dist/dev/runtime/vueCompat/router.d.mts +28 -0
- package/dist/dev/runtime/vueCompat/templateRef.d.mts +9 -0
- package/dist/dev/runtime/vueCompat/templateRef.mjs +2 -0
- package/dist/dev/runtime/vueCompat/templateRef.mjs.map +1 -1
- package/dist/dev/runtime/vueCompat.d.mts +5 -0
- package/dist/dev/scheduler.d.mts +4 -0
- package/dist/dev/store/base.mjs +12 -18
- package/dist/dev/store/base.mjs.map +1 -1
- package/dist/dev/store/define/optionsStyle.mjs +13 -23
- package/dist/dev/store/define/optionsStyle.mjs.map +1 -1
- package/dist/dev/store/define/setupStyle.mjs +14 -24
- package/dist/dev/store/define/setupStyle.mjs.map +1 -1
- package/dist/dev/store/define/shared.mjs +44 -1
- package/dist/dev/store/define/shared.mjs.map +1 -1
- package/dist/dev/store/define.d.mts +28 -0
- package/dist/dev/store/define.mjs.map +1 -1
- package/dist/dev/store/manager.d.mts +8 -0
- package/dist/dev/store/storeToRefs.d.mts +13 -0
- package/dist/dev/store/types.d.mts +70 -0
- package/dist/dev/store.d.mts +5 -0
- package/dist/dev/ttIntrinsicElements/base.d.mts +5 -0
- package/dist/dev/ttIntrinsicElements/elements/ad.d.mts +8 -0
- package/dist/dev/ttIntrinsicElements/elements/aweme-data.d.mts +15 -0
- package/dist/dev/ttIntrinsicElements/elements/aweme-user-card.d.mts +16 -0
- package/dist/dev/ttIntrinsicElements/elements/button.d.mts +23 -0
- package/dist/dev/ttIntrinsicElements/elements/camera.d.mts +19 -0
- package/dist/dev/ttIntrinsicElements/elements/canvas.d.mts +16 -0
- package/dist/dev/ttIntrinsicElements/elements/checkbox-group.d.mts +12 -0
- package/dist/dev/ttIntrinsicElements/elements/checkbox.d.mts +12 -0
- package/dist/dev/ttIntrinsicElements/elements/draw-ad.d.mts +16 -0
- package/dist/dev/ttIntrinsicElements/elements/form.d.mts +14 -0
- package/dist/dev/ttIntrinsicElements/elements/icon.d.mts +11 -0
- package/dist/dev/ttIntrinsicElements/elements/image.d.mts +16 -0
- package/dist/dev/ttIntrinsicElements/elements/input.d.mts +32 -0
- package/dist/dev/ttIntrinsicElements/elements/label.d.mts +10 -0
- package/dist/dev/ttIntrinsicElements/elements/live-player.d.mts +19 -0
- package/dist/dev/ttIntrinsicElements/elements/live-preview.d.mts +13 -0
- package/dist/dev/ttIntrinsicElements/elements/map.d.mts +36 -0
- package/dist/dev/ttIntrinsicElements/elements/mask.d.mts +8 -0
- package/dist/dev/ttIntrinsicElements/elements/match-media.d.mts +16 -0
- package/dist/dev/ttIntrinsicElements/elements/movable-area.d.mts +10 -0
- package/dist/dev/ttIntrinsicElements/elements/movable-view.d.mts +27 -0
- package/dist/dev/ttIntrinsicElements/elements/navigator.d.mts +16 -0
- package/dist/dev/ttIntrinsicElements/elements/open-data.d.mts +15 -0
- package/dist/dev/ttIntrinsicElements/elements/picker-view-column.d.mts +8 -0
- package/dist/dev/ttIntrinsicElements/elements/picker-view.d.mts +19 -0
- package/dist/dev/ttIntrinsicElements/elements/picker.d.mts +22 -0
- package/dist/dev/ttIntrinsicElements/elements/progress.d.mts +16 -0
- package/dist/dev/ttIntrinsicElements/elements/radio-group.d.mts +12 -0
- package/dist/dev/ttIntrinsicElements/elements/radio.d.mts +12 -0
- package/dist/dev/ttIntrinsicElements/elements/rich-text.d.mts +10 -0
- package/dist/dev/ttIntrinsicElements/elements/rtc-room.d.mts +13 -0
- package/dist/dev/ttIntrinsicElements/elements/scroll-view.d.mts +32 -0
- package/dist/dev/ttIntrinsicElements/elements/slider.d.mts +19 -0
- package/dist/dev/ttIntrinsicElements/elements/swiper-item.d.mts +10 -0
- package/dist/dev/ttIntrinsicElements/elements/swiper.d.mts +27 -0
- package/dist/dev/ttIntrinsicElements/elements/switch.d.mts +14 -0
- package/dist/dev/ttIntrinsicElements/elements/text.d.mts +12 -0
- package/dist/dev/ttIntrinsicElements/elements/textarea.d.mts +34 -0
- package/dist/dev/ttIntrinsicElements/elements/video.d.mts +58 -0
- package/dist/dev/ttIntrinsicElements/elements/view.d.mts +15 -0
- package/dist/dev/ttIntrinsicElements/elements/web-view.d.mts +15 -0
- package/dist/dev/ttIntrinsicElements.d.mts +88 -0
- package/dist/dev/version.d.mts +4 -0
- package/dist/dev/vue-augment.d.mts +8 -0
- package/dist/dev/vue-demi.d.mts +87 -0
- package/dist/dev/vue-demi.mjs +12 -15
- package/dist/dev/vue-demi.mjs.map +1 -1
- package/dist/dev/vue-types.d.mts +19 -0
- package/dist/dev/weappIntrinsicElements/base.d.mts +5 -0
- package/dist/dev/weappIntrinsicElements/elements/ad-custom.d.mts +14 -0
- package/dist/dev/weappIntrinsicElements/elements/ad.d.mts +17 -0
- package/dist/dev/weappIntrinsicElements/elements/audio.d.mts +21 -0
- package/dist/dev/weappIntrinsicElements/elements/block.d.mts +8 -0
- package/dist/dev/weappIntrinsicElements/elements/button.d.mts +42 -0
- package/dist/dev/weappIntrinsicElements/elements/camera.d.mts +19 -0
- package/dist/dev/weappIntrinsicElements/elements/canvas.d.mts +19 -0
- package/dist/dev/weappIntrinsicElements/elements/checkbox-group.d.mts +11 -0
- package/dist/dev/weappIntrinsicElements/elements/checkbox.d.mts +13 -0
- package/dist/dev/weappIntrinsicElements/elements/cover-image.d.mts +14 -0
- package/dist/dev/weappIntrinsicElements/elements/cover-view.d.mts +10 -0
- package/dist/dev/weappIntrinsicElements/elements/editor.d.mts +23 -0
- package/dist/dev/weappIntrinsicElements/elements/form.d.mts +17 -0
- package/dist/dev/weappIntrinsicElements/elements/functional-page-navigator.d.mts +16 -0
- package/dist/dev/weappIntrinsicElements/elements/icon.d.mts +12 -0
- package/dist/dev/weappIntrinsicElements/elements/image.d.mts +19 -0
- package/dist/dev/weappIntrinsicElements/elements/import.d.mts +10 -0
- package/dist/dev/weappIntrinsicElements/elements/include.d.mts +10 -0
- package/dist/dev/weappIntrinsicElements/elements/input.d.mts +47 -0
- package/dist/dev/weappIntrinsicElements/elements/keyboard-accessory.d.mts +8 -0
- package/dist/dev/weappIntrinsicElements/elements/label.d.mts +10 -0
- package/dist/dev/weappIntrinsicElements/elements/live-player.d.mts +36 -0
- package/dist/dev/weappIntrinsicElements/elements/live-pusher.d.mts +58 -0
- package/dist/dev/weappIntrinsicElements/elements/map.d.mts +106 -0
- package/dist/dev/weappIntrinsicElements/elements/match-media.d.mts +16 -0
- package/dist/dev/weappIntrinsicElements/elements/movable-area.d.mts +27 -0
- package/dist/dev/weappIntrinsicElements/elements/movable-view.d.mts +27 -0
- package/dist/dev/weappIntrinsicElements/elements/navigation-bar.d.mts +15 -0
- package/dist/dev/weappIntrinsicElements/elements/navigator.d.mts +26 -0
- package/dist/dev/weappIntrinsicElements/elements/official-account.d.mts +14 -0
- package/dist/dev/weappIntrinsicElements/elements/open-data.d.mts +16 -0
- package/dist/dev/weappIntrinsicElements/elements/page-container.d.mts +26 -0
- package/dist/dev/weappIntrinsicElements/elements/page-meta.d.mts +24 -0
- package/dist/dev/weappIntrinsicElements/elements/picker-view-column.d.mts +19 -0
- package/dist/dev/weappIntrinsicElements/elements/picker-view.d.mts +19 -0
- package/dist/dev/weappIntrinsicElements/elements/picker.d.mts +24 -0
- package/dist/dev/weappIntrinsicElements/elements/progress.d.mts +22 -0
- package/dist/dev/weappIntrinsicElements/elements/radio-group.d.mts +11 -0
- package/dist/dev/weappIntrinsicElements/elements/radio.d.mts +13 -0
- package/dist/dev/weappIntrinsicElements/elements/rich-text.d.mts +17 -0
- package/dist/dev/weappIntrinsicElements/elements/scroll-view.d.mts +64 -0
- package/dist/dev/weappIntrinsicElements/elements/share-element.d.mts +17 -0
- package/dist/dev/weappIntrinsicElements/elements/slider.d.mts +24 -0
- package/dist/dev/weappIntrinsicElements/elements/slot.d.mts +10 -0
- package/dist/dev/weappIntrinsicElements/elements/swiper-item.d.mts +11 -0
- package/dist/dev/weappIntrinsicElements/elements/swiper.d.mts +40 -0
- package/dist/dev/weappIntrinsicElements/elements/switch.d.mts +15 -0
- package/dist/dev/weappIntrinsicElements/elements/template.d.mts +12 -0
- package/dist/dev/weappIntrinsicElements/elements/text.d.mts +15 -0
- package/dist/dev/weappIntrinsicElements/elements/textarea.d.mts +41 -0
- package/dist/dev/weappIntrinsicElements/elements/video.d.mts +72 -0
- package/dist/dev/weappIntrinsicElements/elements/view.d.mts +15 -0
- package/dist/dev/weappIntrinsicElements/elements/voip-room.d.mts +15 -0
- package/dist/dev/weappIntrinsicElements/elements/web-view.d.mts +14 -0
- package/dist/dev/weappIntrinsicElements.d.mts +114 -0
- package/dist/dev/web-apis.d.mts +3 -0
- package/dist/fetch.d.mts +4 -4
- package/dist/index.d.mts +13 -14
- package/dist/index.mjs +1 -1
- package/dist/internal-reactivity.d.mts +2 -1
- package/dist/internal-reactivity.mjs +1 -1
- package/dist/internal-runtime.d.mts +13 -6
- package/dist/internal-runtime.mjs +1 -1
- package/dist/jsx-runtime.d.mts +51 -14
- package/dist/jsxTypes.d.mts +8 -0
- package/dist/macros/shared.d.mts +14 -15
- package/dist/macros.d.mts +22 -22
- package/dist/miniprogram/jsx-runtime.d.mts +13 -0
- package/dist/miniprogram/jsx-runtime.mjs +1 -0
- package/dist/miniprogramIntrinsicElements/base.d.mts +4 -0
- package/dist/miniprogramIntrinsicElements/elements/button.d.mts +23 -0
- package/dist/miniprogramIntrinsicElements/elements/camera.d.mts +18 -0
- package/dist/miniprogramIntrinsicElements/elements/canvas.d.mts +16 -0
- package/dist/miniprogramIntrinsicElements/elements/checkbox-group.d.mts +12 -0
- package/dist/miniprogramIntrinsicElements/elements/checkbox.d.mts +13 -0
- package/dist/miniprogramIntrinsicElements/elements/form.d.mts +13 -0
- package/dist/miniprogramIntrinsicElements/elements/icon.d.mts +12 -0
- package/dist/miniprogramIntrinsicElements/elements/image.d.mts +16 -0
- package/dist/miniprogramIntrinsicElements/elements/input.d.mts +29 -0
- package/dist/miniprogramIntrinsicElements/elements/label.d.mts +11 -0
- package/dist/miniprogramIntrinsicElements/elements/map.d.mts +31 -0
- package/dist/miniprogramIntrinsicElements/elements/match-media.d.mts +13 -0
- package/dist/miniprogramIntrinsicElements/elements/movable-area.d.mts +9 -0
- package/dist/miniprogramIntrinsicElements/elements/movable-view.d.mts +26 -0
- package/dist/miniprogramIntrinsicElements/elements/navigator.d.mts +15 -0
- package/dist/miniprogramIntrinsicElements/elements/picker-view-column.d.mts +9 -0
- package/dist/miniprogramIntrinsicElements/elements/picker-view.d.mts +20 -0
- package/dist/miniprogramIntrinsicElements/elements/picker.d.mts +14 -0
- package/dist/miniprogramIntrinsicElements/elements/progress.d.mts +12 -0
- package/dist/miniprogramIntrinsicElements/elements/radio-group.d.mts +12 -0
- package/dist/miniprogramIntrinsicElements/elements/radio.d.mts +13 -0
- package/dist/miniprogramIntrinsicElements/elements/rich-text.d.mts +11 -0
- package/dist/miniprogramIntrinsicElements/elements/scroll-view.d.mts +22 -0
- package/dist/miniprogramIntrinsicElements/elements/slider.d.mts +19 -0
- package/dist/miniprogramIntrinsicElements/elements/swiper-item.d.mts +9 -0
- package/dist/miniprogramIntrinsicElements/elements/swiper.d.mts +24 -0
- package/dist/miniprogramIntrinsicElements/elements/switch.d.mts +14 -0
- package/dist/miniprogramIntrinsicElements/elements/text.d.mts +13 -0
- package/dist/miniprogramIntrinsicElements/elements/textarea.d.mts +23 -0
- package/dist/miniprogramIntrinsicElements/elements/video.d.mts +29 -0
- package/dist/miniprogramIntrinsicElements/elements/view.d.mts +16 -0
- package/dist/miniprogramIntrinsicElements/elements/web-view.d.mts +15 -0
- package/dist/miniprogramIntrinsicElements.d.mts +70 -0
- package/dist/package.mjs +1 -1
- package/dist/reactivity/asyncDerivation.d.mts +40 -0
- package/dist/reactivity/asyncDerivation.mjs +1 -0
- package/dist/reactivity/computed.d.mts +8 -9
- package/dist/reactivity/computed.mjs +1 -1
- package/dist/reactivity/core.d.mts +15 -15
- package/dist/reactivity/core.mjs +1 -1
- package/dist/reactivity/index.d.mts +2 -1
- package/dist/reactivity/reactive/mutation.d.mts +6 -7
- package/dist/reactivity/reactive/patch.d.mts +4 -5
- package/dist/reactivity/reactive/shallow.d.mts +3 -4
- package/dist/reactivity/reactive/shared.d.mts +2 -3
- package/dist/reactivity/reactive.d.mts +6 -6
- package/dist/reactivity/readonly.d.mts +7 -8
- package/dist/reactivity/ref.d.mts +14 -15
- package/dist/reactivity/ref.mjs +1 -1
- package/dist/reactivity/shallowRef.d.mts +5 -6
- package/dist/reactivity/toRefs.d.mts +5 -6
- package/dist/reactivity/traverse.d.mts +2 -3
- package/dist/reactivity/watch/types.d.mts +18 -19
- package/dist/reactivity/watch.d.mts +8 -8
- package/dist/router/createRouter.d.mts +2 -3
- package/dist/router/navigationCore.d.mts +3 -4
- package/dist/router/resolve.d.mts +2 -3
- package/dist/router/routeSync.mjs +1 -1
- package/dist/router/types.d.mts +38 -39
- package/dist/router/useRoute.d.mts +5 -6
- package/dist/router/useRoute.mjs +1 -1
- package/dist/router/useRouter.d.mts +2 -3
- package/dist/routerInternal/query.d.mts +3 -4
- package/dist/routerInternal/types.d.mts +2 -3
- package/dist/runtime/app/computed.mjs +1 -1
- package/dist/runtime/app/context.mjs +1 -1
- package/dist/runtime/app/diagnostics.mjs +1 -1
- package/dist/runtime/app/mount.mjs +1 -1
- package/dist/runtime/app/pending.d.mts +3 -4
- package/dist/runtime/app/setData/commitTracker.d.mts +12 -0
- package/dist/runtime/app/setData/commitTracker.mjs +1 -0
- package/dist/runtime/app/setData/patchScheduler.mjs +1 -1
- package/dist/runtime/app/setData/scheduler.d.mts +50 -0
- package/dist/runtime/app/setData/scheduler.mjs +1 -1
- package/dist/runtime/app/setData/snapshot.mjs +1 -1
- package/dist/runtime/app.d.mts +2 -3
- package/dist/runtime/app.mjs +1 -1
- package/dist/runtime/bindingManifest.mjs +1 -0
- package/dist/runtime/capabilities.d.mts +74 -0
- package/dist/runtime/capabilities.mjs +1 -0
- package/dist/runtime/css.d.mts +3 -4
- package/dist/runtime/defaults.d.mts +5 -6
- package/dist/runtime/define/componentDefinition.mjs +1 -1
- package/dist/runtime/define/optionsApi.mjs +1 -1
- package/dist/runtime/define/props.mjs +1 -1
- package/dist/runtime/define/scopedSlotOptions.mjs +1 -1
- package/dist/runtime/define.d.mts +18 -27
- package/dist/runtime/define.mjs +1 -1
- package/dist/runtime/diff.mjs +1 -1
- package/dist/runtime/disposables.d.mts +6 -7
- package/dist/runtime/elementIntersectionObserver.d.mts +5 -6
- package/dist/runtime/features/inlineEvents.d.mts +6 -0
- package/dist/runtime/features/inlineEvents.mjs +1 -0
- package/dist/runtime/features/layout.d.mts +6 -0
- package/dist/runtime/features/layout.mjs +1 -0
- package/dist/runtime/features/patchStrategy.d.mts +6 -0
- package/dist/runtime/features/patchStrategy.mjs +1 -0
- package/dist/runtime/features/publicLayout.d.mts +23 -0
- package/dist/runtime/features/publicLayout.mjs +1 -0
- package/dist/runtime/features/scopedSlots.d.mts +22 -0
- package/dist/runtime/features/scopedSlots.mjs +1 -0
- package/dist/runtime/features/setDataHighFrequencyWarning.d.mts +6 -0
- package/dist/runtime/features/setDataHighFrequencyWarning.mjs +1 -0
- package/dist/runtime/features/templateRefs.d.mts +6 -0
- package/dist/runtime/features/templateRefs.mjs +1 -0
- package/dist/runtime/hooks/base.d.mts +7 -8
- package/dist/runtime/hooks/register.d.mts +26 -27
- package/dist/runtime/hooks/vue.d.mts +13 -15
- package/dist/runtime/hooks/vue.mjs +1 -1
- package/dist/runtime/index.d.mts +12 -14
- package/dist/runtime/inlineDataset.mjs +1 -0
- package/dist/runtime/intersectionObserver.d.mts +4 -5
- package/dist/runtime/jsxIsland.d.mts +20 -25
- package/dist/runtime/layoutBridge.d.mts +12 -17
- package/dist/runtime/noSetData.d.mts +3 -4
- package/dist/runtime/pageEnvironment.d.mts +9 -10
- package/dist/runtime/pageLayout.d.mts +9 -11
- package/dist/runtime/pageScroll.d.mts +4 -5
- package/dist/runtime/provide.d.mts +7 -7
- package/dist/runtime/provideStore.d.mts +2 -3
- package/dist/runtime/publicRuntime.d.mts +21 -0
- package/dist/runtime/publicRuntime.mjs +1 -0
- package/dist/runtime/pullDownRefresh.d.mts +4 -5
- package/dist/runtime/register/app.d.mts +2 -3
- package/dist/runtime/register/app.mjs +1 -1
- package/dist/runtime/register/component/lifecycle.mjs +1 -1
- package/dist/runtime/register/component/methods.mjs +1 -1
- package/dist/runtime/register/component/registerDefinition.mjs +1 -1
- package/dist/runtime/register/component.d.mts +2 -3
- package/dist/runtime/register/inline.d.mts +3 -4
- package/dist/runtime/register/inline.mjs +1 -1
- package/dist/runtime/register/runtimeInstance/setupContext.mjs +1 -1
- package/dist/runtime/register/runtimeInstance/setupPhase.mjs +1 -1
- package/dist/runtime/register/runtimeInstance/setupSnapshot.mjs +1 -0
- package/dist/runtime/register/runtimeInstance.d.mts +4 -5
- package/dist/runtime/register/runtimeInstance.mjs +1 -1
- package/dist/runtime/register/setup.d.mts +2 -3
- package/dist/runtime/register/snapshot.mjs +1 -1
- package/dist/runtime/register/watch.d.mts +3 -4
- package/dist/runtime/scopedSlots.mjs +1 -1
- package/dist/runtime/selectorQuery.d.mts +15 -16
- package/dist/runtime/selectorQuery.mjs +1 -1
- package/dist/runtime/teardown.mjs +1 -0
- package/dist/runtime/template.d.mts +4 -5
- package/dist/runtime/templateRefTypes.d.mts +7 -3
- package/dist/runtime/templateRefs.mjs +1 -1
- package/dist/runtime/types/core.d.mts +9 -10
- package/dist/runtime/types/miniprogram.d.mts +13 -10
- package/dist/runtime/types/miniprogramHost.d.mts +41 -41
- package/dist/runtime/types/miniprogramHostSources.d.mts +21 -22
- package/dist/runtime/types/options.d.mts +8 -9
- package/dist/runtime/types/props/propTypes.d.mts +16 -17
- package/dist/runtime/types/props/router.d.mts +13 -14
- package/dist/runtime/types/props/setup.d.mts +7 -8
- package/dist/runtime/types/props.d.mts +1 -1
- package/dist/runtime/types/runtime.d.mts +7 -8
- package/dist/runtime/types/setData.d.mts +21 -5
- package/dist/runtime/types.d.mts +10 -10
- package/dist/runtime/uniAppHost.d.mts +2 -3
- package/dist/runtime/updatePerformance.d.mts +5 -6
- package/dist/runtime/use.d.mts +3 -4
- package/dist/runtime/vueCompat/context.d.mts +4 -5
- package/dist/runtime/vueCompat/model.d.mts +9 -10
- package/dist/runtime/vueCompat/router.d.mts +3 -4
- package/dist/runtime/vueCompat/templateRef.d.mts +4 -5
- package/dist/runtime/vueCompat/templateRef.mjs +1 -1
- package/dist/scheduler.d.mts +2 -3
- package/dist/store/base.mjs +1 -1
- package/dist/store/define/optionsStyle.mjs +1 -1
- package/dist/store/define/setupStyle.mjs +1 -1
- package/dist/store/define/shared.mjs +1 -1
- package/dist/store/define.d.mts +12 -11
- package/dist/store/manager.d.mts +2 -3
- package/dist/store/storeToRefs.d.mts +3 -4
- package/dist/store/types.d.mts +12 -13
- package/dist/tt/jsx-runtime.d.mts +13 -0
- package/dist/tt/jsx-runtime.mjs +1 -0
- package/dist/ttIntrinsicElements/base.d.mts +4 -0
- package/dist/ttIntrinsicElements/elements/ad.d.mts +7 -0
- package/dist/ttIntrinsicElements/elements/aweme-data.d.mts +14 -0
- package/dist/ttIntrinsicElements/elements/aweme-user-card.d.mts +15 -0
- package/dist/ttIntrinsicElements/elements/button.d.mts +22 -0
- package/dist/ttIntrinsicElements/elements/camera.d.mts +18 -0
- package/dist/ttIntrinsicElements/elements/canvas.d.mts +15 -0
- package/dist/ttIntrinsicElements/elements/checkbox-group.d.mts +11 -0
- package/dist/ttIntrinsicElements/elements/checkbox.d.mts +11 -0
- package/dist/ttIntrinsicElements/elements/draw-ad.d.mts +15 -0
- package/dist/ttIntrinsicElements/elements/form.d.mts +13 -0
- package/dist/ttIntrinsicElements/elements/icon.d.mts +10 -0
- package/dist/ttIntrinsicElements/elements/image.d.mts +15 -0
- package/dist/ttIntrinsicElements/elements/input.d.mts +31 -0
- package/dist/ttIntrinsicElements/elements/label.d.mts +9 -0
- package/dist/ttIntrinsicElements/elements/live-player.d.mts +18 -0
- package/dist/ttIntrinsicElements/elements/live-preview.d.mts +12 -0
- package/dist/ttIntrinsicElements/elements/map.d.mts +35 -0
- package/dist/ttIntrinsicElements/elements/mask.d.mts +7 -0
- package/dist/ttIntrinsicElements/elements/match-media.d.mts +15 -0
- package/dist/ttIntrinsicElements/elements/movable-area.d.mts +9 -0
- package/dist/ttIntrinsicElements/elements/movable-view.d.mts +26 -0
- package/dist/ttIntrinsicElements/elements/navigator.d.mts +15 -0
- package/dist/ttIntrinsicElements/elements/open-data.d.mts +14 -0
- package/dist/ttIntrinsicElements/elements/picker-view-column.d.mts +7 -0
- package/dist/ttIntrinsicElements/elements/picker-view.d.mts +18 -0
- package/dist/ttIntrinsicElements/elements/picker.d.mts +21 -0
- package/dist/ttIntrinsicElements/elements/progress.d.mts +15 -0
- package/dist/ttIntrinsicElements/elements/radio-group.d.mts +11 -0
- package/dist/ttIntrinsicElements/elements/radio.d.mts +11 -0
- package/dist/ttIntrinsicElements/elements/rich-text.d.mts +9 -0
- package/dist/ttIntrinsicElements/elements/rtc-room.d.mts +12 -0
- package/dist/ttIntrinsicElements/elements/scroll-view.d.mts +31 -0
- package/dist/ttIntrinsicElements/elements/slider.d.mts +18 -0
- package/dist/ttIntrinsicElements/elements/swiper-item.d.mts +9 -0
- package/dist/ttIntrinsicElements/elements/swiper.d.mts +26 -0
- package/dist/ttIntrinsicElements/elements/switch.d.mts +13 -0
- package/dist/ttIntrinsicElements/elements/text.d.mts +11 -0
- package/dist/ttIntrinsicElements/elements/textarea.d.mts +33 -0
- package/dist/ttIntrinsicElements/elements/video.d.mts +57 -0
- package/dist/ttIntrinsicElements/elements/view.d.mts +14 -0
- package/dist/ttIntrinsicElements/elements/web-view.d.mts +14 -0
- package/dist/ttIntrinsicElements.d.mts +88 -0
- package/dist/version.d.mts +2 -3
- package/dist/vue-augment.d.mts +2 -1
- package/dist/vue-demi.d.mts +17 -18
- package/dist/vue-demi.mjs +1 -1
- package/dist/vue-types.d.mts +2 -2
- package/dist/weapp/jsx-runtime.d.mts +13 -0
- package/dist/weapp/jsx-runtime.mjs +1 -0
- package/dist/weappIntrinsicElements/base.d.mts +3 -21
- package/dist/weappIntrinsicElements/elements/ad-custom.d.mts +6 -6
- package/dist/weappIntrinsicElements/elements/ad.d.mts +7 -7
- package/dist/weappIntrinsicElements/elements/audio.d.mts +9 -9
- package/dist/weappIntrinsicElements/elements/block.d.mts +3 -4
- package/dist/weappIntrinsicElements/elements/button.d.mts +18 -17
- package/dist/weappIntrinsicElements/elements/camera.d.mts +12 -12
- package/dist/weappIntrinsicElements/elements/canvas.d.mts +10 -10
- package/dist/weappIntrinsicElements/elements/checkbox-group.d.mts +6 -9
- package/dist/weappIntrinsicElements/elements/checkbox.d.mts +3 -4
- package/dist/weappIntrinsicElements/elements/cover-image.d.mts +9 -6
- package/dist/weappIntrinsicElements/elements/cover-view.d.mts +3 -4
- package/dist/weappIntrinsicElements/elements/editor.d.mts +9 -9
- package/dist/weappIntrinsicElements/elements/form.d.mts +7 -7
- package/dist/weappIntrinsicElements/elements/functional-page-navigator.d.mts +9 -9
- package/dist/weappIntrinsicElements/elements/icon.d.mts +3 -4
- package/dist/weappIntrinsicElements/elements/image.d.mts +7 -7
- package/dist/weappIntrinsicElements/elements/import.d.mts +3 -4
- package/dist/weappIntrinsicElements/elements/include.d.mts +3 -4
- package/dist/weappIntrinsicElements/elements/input.d.mts +17 -18
- package/dist/weappIntrinsicElements/elements/keyboard-accessory.d.mts +3 -4
- package/dist/weappIntrinsicElements/elements/label.d.mts +3 -4
- package/dist/weappIntrinsicElements/elements/live-player.d.mts +18 -18
- package/dist/weappIntrinsicElements/elements/live-pusher.d.mts +19 -19
- package/dist/weappIntrinsicElements/elements/map.d.mts +18 -18
- package/dist/weappIntrinsicElements/elements/match-media.d.mts +3 -4
- package/dist/weappIntrinsicElements/elements/movable-area.d.mts +8 -8
- package/dist/weappIntrinsicElements/elements/movable-view.d.mts +8 -8
- package/dist/weappIntrinsicElements/elements/navigation-bar.d.mts +3 -4
- package/dist/weappIntrinsicElements/elements/navigator.d.mts +10 -10
- package/dist/weappIntrinsicElements/elements/official-account.d.mts +6 -6
- package/dist/weappIntrinsicElements/elements/open-data.d.mts +5 -5
- package/dist/weappIntrinsicElements/elements/page-container.d.mts +11 -11
- package/dist/weappIntrinsicElements/elements/page-meta.d.mts +7 -7
- package/dist/weappIntrinsicElements/elements/picker-view-column.d.mts +7 -7
- package/dist/weappIntrinsicElements/elements/picker-view.d.mts +7 -7
- package/dist/weappIntrinsicElements/elements/picker.d.mts +9 -9
- package/dist/weappIntrinsicElements/elements/progress.d.mts +5 -5
- package/dist/weappIntrinsicElements/elements/radio-group.d.mts +6 -9
- package/dist/weappIntrinsicElements/elements/radio.d.mts +3 -4
- package/dist/weappIntrinsicElements/elements/rich-text.d.mts +6 -7
- package/dist/weappIntrinsicElements/elements/scroll-view.d.mts +20 -25
- package/dist/weappIntrinsicElements/elements/share-element.d.mts +5 -7
- package/dist/weappIntrinsicElements/elements/slider.d.mts +6 -6
- package/dist/weappIntrinsicElements/elements/slot.d.mts +3 -4
- package/dist/weappIntrinsicElements/elements/swiper-item.d.mts +6 -38
- package/dist/weappIntrinsicElements/elements/swiper.d.mts +11 -14
- package/dist/weappIntrinsicElements/elements/switch.d.mts +5 -5
- package/dist/weappIntrinsicElements/elements/template.d.mts +3 -4
- package/dist/weappIntrinsicElements/elements/text.d.mts +5 -6
- package/dist/weappIntrinsicElements/elements/textarea.d.mts +16 -16
- package/dist/weappIntrinsicElements/elements/video.d.mts +24 -24
- package/dist/weappIntrinsicElements/elements/view.d.mts +5 -4
- package/dist/weappIntrinsicElements/elements/voip-room.d.mts +7 -7
- package/dist/weappIntrinsicElements/elements/web-view.d.mts +7 -7
- package/dist/weappIntrinsicElements.d.mts +111 -150
- package/package.json +19 -19
- package/dist/dev/jsx-runtime.mjs +0 -1
- package/dist/runtime/templateRefs.d.mts +0 -11
- /package/dist/_virtual/{_@oxc-project_runtime@0.148.0 → _@oxc-project_runtime@0.149.0}/helpers/esm/defineProperty.mjs +0 -0
- /package/dist/_virtual/{_@oxc-project_runtime@0.148.0 → _@oxc-project_runtime@0.149.0}/helpers/esm/toPrimitive.mjs +0 -0
- /package/dist/_virtual/{_@oxc-project_runtime@0.148.0 → _@oxc-project_runtime@0.149.0}/helpers/esm/toPropertyKey.mjs +0 -0
- /package/dist/_virtual/{_@oxc-project_runtime@0.148.0 → _@oxc-project_runtime@0.149.0}/helpers/esm/typeof.mjs +0 -0
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { WevuJsxEventHandler } from "../../jsx-runtime.mjs";
|
|
2
|
+
import { MiniProgramIntrinsicElementBaseAttributes } from "../base.mjs";
|
|
3
|
+
//#region src/miniprogramIntrinsicElements/elements/movable-view.d.ts
|
|
4
|
+
/**
|
|
5
|
+
* @see https://developers.weixin.qq.com/miniprogram/dev/component/movable-view.html
|
|
6
|
+
* @see https://opendocs.alipay.com/mini/component/movable-view
|
|
7
|
+
* @see https://developer.open-douyin.com/docs/resource/zh-CN/mini-app/develop/component/view-container/movable-view
|
|
8
|
+
*/
|
|
9
|
+
export type MiniProgramIntrinsicElementMovableView = MiniProgramIntrinsicElementBaseAttributes & {
|
|
10
|
+
animation?: boolean;
|
|
11
|
+
damping?: number;
|
|
12
|
+
direction?: string;
|
|
13
|
+
disabled?: boolean;
|
|
14
|
+
friction?: number;
|
|
15
|
+
inertia?: boolean;
|
|
16
|
+
onChange?: WevuJsxEventHandler;
|
|
17
|
+
onScale?: WevuJsxEventHandler;
|
|
18
|
+
'out-of-bounds'?: boolean;
|
|
19
|
+
scale?: boolean;
|
|
20
|
+
'scale-max'?: number;
|
|
21
|
+
'scale-min'?: number;
|
|
22
|
+
'scale-value'?: number;
|
|
23
|
+
x?: number;
|
|
24
|
+
y?: number;
|
|
25
|
+
};
|
|
26
|
+
//#endregion
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { MiniProgramIntrinsicElementBaseAttributes } from "../base.mjs";
|
|
2
|
+
//#region src/miniprogramIntrinsicElements/elements/navigator.d.ts
|
|
3
|
+
/**
|
|
4
|
+
* @see https://developers.weixin.qq.com/miniprogram/dev/component/navigator.html
|
|
5
|
+
* @see https://opendocs.alipay.com/mini/component/navigator
|
|
6
|
+
* @see https://developer.open-douyin.com/docs/resource/zh-CN/mini-app/develop/component/navigation/navigator
|
|
7
|
+
*/
|
|
8
|
+
export type MiniProgramIntrinsicElementNavigator = MiniProgramIntrinsicElementBaseAttributes & {
|
|
9
|
+
'hover-class'?: string;
|
|
10
|
+
'hover-start-time'?: number;
|
|
11
|
+
'hover-stay-time'?: number;
|
|
12
|
+
'open-type'?: 'exit' | 'navigate' | 'navigateBack' | 'reLaunch' | 'redirect' | 'switchTab';
|
|
13
|
+
url?: string;
|
|
14
|
+
};
|
|
15
|
+
//#endregion
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { MiniProgramIntrinsicElementBaseAttributes } from "../base.mjs";
|
|
2
|
+
//#region src/miniprogramIntrinsicElements/elements/picker-view-column.d.ts
|
|
3
|
+
/**
|
|
4
|
+
* @see https://developers.weixin.qq.com/miniprogram/dev/component/picker-view.html
|
|
5
|
+
* @see https://opendocs.alipay.com/mini/component/picker-view-column
|
|
6
|
+
* @see https://developer.open-douyin.com/docs/resource/zh-CN/mini-app/develop/component/list/picker-view-column
|
|
7
|
+
*/
|
|
8
|
+
export type MiniProgramIntrinsicElementPickerViewColumn = MiniProgramIntrinsicElementBaseAttributes;
|
|
9
|
+
//#endregion
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { WevuJsxEventHandler } from "../../jsx-runtime.mjs";
|
|
2
|
+
import { MiniProgramIntrinsicElementBaseAttributes } from "../base.mjs";
|
|
3
|
+
//#region src/miniprogramIntrinsicElements/elements/picker-view.d.ts
|
|
4
|
+
/**
|
|
5
|
+
* @see https://developers.weixin.qq.com/miniprogram/dev/component/picker-view.html
|
|
6
|
+
* @see https://opendocs.alipay.com/mini/component/picker-view
|
|
7
|
+
* @see https://developer.open-douyin.com/docs/resource/zh-CN/mini-app/develop/component/list/picker-view
|
|
8
|
+
*/
|
|
9
|
+
export type MiniProgramIntrinsicElementPickerView = MiniProgramIntrinsicElementBaseAttributes & {
|
|
10
|
+
'immediate-change'?: boolean;
|
|
11
|
+
'indicator-class'?: string;
|
|
12
|
+
'indicator-style'?: string;
|
|
13
|
+
'mask-class'?: string;
|
|
14
|
+
'mask-style'?: string;
|
|
15
|
+
onChange?: WevuJsxEventHandler;
|
|
16
|
+
onPickEnd?: WevuJsxEventHandler;
|
|
17
|
+
onPickStart?: WevuJsxEventHandler;
|
|
18
|
+
value?: number[];
|
|
19
|
+
};
|
|
20
|
+
//#endregion
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { WevuJsxEventHandler } from "../../jsx-runtime.mjs";
|
|
2
|
+
import { MiniProgramIntrinsicElementBaseAttributes } from "../base.mjs";
|
|
3
|
+
//#region src/miniprogramIntrinsicElements/elements/picker.d.ts
|
|
4
|
+
/**
|
|
5
|
+
* @see https://developers.weixin.qq.com/miniprogram/dev/component/picker.html
|
|
6
|
+
* @see https://opendocs.alipay.com/mini/component/picker
|
|
7
|
+
* @see https://developer.open-douyin.com/docs/resource/zh-CN/mini-app/develop/component/list/picker
|
|
8
|
+
*/
|
|
9
|
+
export type MiniProgramIntrinsicElementPicker = MiniProgramIntrinsicElementBaseAttributes & {
|
|
10
|
+
disabled?: boolean;
|
|
11
|
+
onChange?: WevuJsxEventHandler;
|
|
12
|
+
'range-key'?: string;
|
|
13
|
+
};
|
|
14
|
+
//#endregion
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { MiniProgramIntrinsicElementBaseAttributes } from "../base.mjs";
|
|
2
|
+
//#region src/miniprogramIntrinsicElements/elements/progress.d.ts
|
|
3
|
+
/**
|
|
4
|
+
* @see https://developers.weixin.qq.com/miniprogram/dev/component/progress.html
|
|
5
|
+
* @see https://opendocs.alipay.com/mini/component/progress
|
|
6
|
+
* @see https://developer.open-douyin.com/docs/resource/zh-CN/mini-app/develop/component/basic-content/progress
|
|
7
|
+
*/
|
|
8
|
+
export type MiniProgramIntrinsicElementProgress = MiniProgramIntrinsicElementBaseAttributes & {
|
|
9
|
+
active?: boolean;
|
|
10
|
+
'stroke-width'?: number;
|
|
11
|
+
};
|
|
12
|
+
//#endregion
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { WevuJsxEventHandler } from "../../jsx-runtime.mjs";
|
|
2
|
+
import { MiniProgramIntrinsicElementBaseAttributes } from "../base.mjs";
|
|
3
|
+
//#region src/miniprogramIntrinsicElements/elements/radio-group.d.ts
|
|
4
|
+
/**
|
|
5
|
+
* @see https://developers.weixin.qq.com/miniprogram/dev/component/radio-group.html
|
|
6
|
+
* @see https://opendocs.alipay.com/mini/component/radio-group
|
|
7
|
+
* @see https://developer.open-douyin.com/docs/resource/zh-CN/mini-app/develop/component/list/radio-group
|
|
8
|
+
*/
|
|
9
|
+
export type MiniProgramIntrinsicElementRadioGroup = MiniProgramIntrinsicElementBaseAttributes & {
|
|
10
|
+
onChange?: WevuJsxEventHandler;
|
|
11
|
+
};
|
|
12
|
+
//#endregion
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { MiniProgramIntrinsicElementBaseAttributes } from "../base.mjs";
|
|
2
|
+
//#region src/miniprogramIntrinsicElements/elements/radio.d.ts
|
|
3
|
+
/**
|
|
4
|
+
* @see https://developers.weixin.qq.com/miniprogram/dev/component/radio.html
|
|
5
|
+
* @see https://opendocs.alipay.com/mini/component/radio
|
|
6
|
+
* @see https://developer.open-douyin.com/docs/resource/zh-CN/mini-app/develop/component/list/radio
|
|
7
|
+
*/
|
|
8
|
+
export type MiniProgramIntrinsicElementRadio = MiniProgramIntrinsicElementBaseAttributes & {
|
|
9
|
+
checked?: boolean;
|
|
10
|
+
disabled?: boolean;
|
|
11
|
+
value?: string;
|
|
12
|
+
};
|
|
13
|
+
//#endregion
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { MiniProgramIntrinsicElementBaseAttributes } from "../base.mjs";
|
|
2
|
+
//#region src/miniprogramIntrinsicElements/elements/rich-text.d.ts
|
|
3
|
+
/**
|
|
4
|
+
* @see https://developers.weixin.qq.com/miniprogram/dev/component/rich-text.html
|
|
5
|
+
* @see https://opendocs.alipay.com/mini/component/rich-text
|
|
6
|
+
* @see https://developer.open-douyin.com/docs/resource/zh-CN/mini-app/develop/component/basic-content/rich-text
|
|
7
|
+
*/
|
|
8
|
+
export type MiniProgramIntrinsicElementRichText = MiniProgramIntrinsicElementBaseAttributes & {
|
|
9
|
+
space?: 'emsp' | 'ensp' | 'nbsp';
|
|
10
|
+
};
|
|
11
|
+
//#endregion
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { WevuJsxEventHandler } from "../../jsx-runtime.mjs";
|
|
2
|
+
import { MiniProgramIntrinsicElementBaseAttributes } from "../base.mjs";
|
|
3
|
+
//#region src/miniprogramIntrinsicElements/elements/scroll-view.d.ts
|
|
4
|
+
/**
|
|
5
|
+
* @see https://developers.weixin.qq.com/miniprogram/dev/component/scroll-view.html
|
|
6
|
+
* @see https://opendocs.alipay.com/mini/component/scroll-view
|
|
7
|
+
* @see https://developer.open-douyin.com/docs/resource/zh-CN/mini-app/develop/component/view-container/scroll-view
|
|
8
|
+
*/
|
|
9
|
+
export type MiniProgramIntrinsicElementScrollView = MiniProgramIntrinsicElementBaseAttributes & {
|
|
10
|
+
'lower-threshold'?: number;
|
|
11
|
+
onScroll?: WevuJsxEventHandler;
|
|
12
|
+
onScrollToLower?: WevuJsxEventHandler;
|
|
13
|
+
onScrollToUpper?: WevuJsxEventHandler;
|
|
14
|
+
'scroll-into-view'?: string;
|
|
15
|
+
'scroll-left'?: number;
|
|
16
|
+
'scroll-top'?: number;
|
|
17
|
+
'scroll-with-animation'?: boolean;
|
|
18
|
+
'scroll-x'?: boolean;
|
|
19
|
+
'scroll-y'?: boolean;
|
|
20
|
+
'upper-threshold'?: number;
|
|
21
|
+
};
|
|
22
|
+
//#endregion
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { WevuJsxEventHandler } from "../../jsx-runtime.mjs";
|
|
2
|
+
import { MiniProgramIntrinsicElementBaseAttributes } from "../base.mjs";
|
|
3
|
+
//#region src/miniprogramIntrinsicElements/elements/slider.d.ts
|
|
4
|
+
/**
|
|
5
|
+
* @see https://developers.weixin.qq.com/miniprogram/dev/component/slider.html
|
|
6
|
+
* @see https://opendocs.alipay.com/mini/component/slider
|
|
7
|
+
* @see https://developer.open-douyin.com/docs/resource/zh-CN/mini-app/develop/component/list/slider
|
|
8
|
+
*/
|
|
9
|
+
export type MiniProgramIntrinsicElementSlider = MiniProgramIntrinsicElementBaseAttributes & {
|
|
10
|
+
disabled?: boolean;
|
|
11
|
+
max?: number;
|
|
12
|
+
min?: number;
|
|
13
|
+
onChange?: WevuJsxEventHandler;
|
|
14
|
+
onChanging?: WevuJsxEventHandler;
|
|
15
|
+
'show-value'?: boolean;
|
|
16
|
+
step?: number;
|
|
17
|
+
value?: number;
|
|
18
|
+
};
|
|
19
|
+
//#endregion
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { MiniProgramIntrinsicElementBaseAttributes } from "../base.mjs";
|
|
2
|
+
//#region src/miniprogramIntrinsicElements/elements/swiper-item.d.ts
|
|
3
|
+
/**
|
|
4
|
+
* @see https://developers.weixin.qq.com/miniprogram/dev/component/swiper-item.html
|
|
5
|
+
* @see https://opendocs.alipay.com/mini/component/swiper-item
|
|
6
|
+
* @see https://developer.open-douyin.com/docs/resource/zh-CN/mini-app/develop/component/view-container/swiper-item
|
|
7
|
+
*/
|
|
8
|
+
export type MiniProgramIntrinsicElementSwiperItem = MiniProgramIntrinsicElementBaseAttributes;
|
|
9
|
+
//#endregion
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { WevuJsxEventHandler } from "../../jsx-runtime.mjs";
|
|
2
|
+
import { MiniProgramIntrinsicElementBaseAttributes } from "../base.mjs";
|
|
3
|
+
//#region src/miniprogramIntrinsicElements/elements/swiper.d.ts
|
|
4
|
+
/**
|
|
5
|
+
* @see https://developers.weixin.qq.com/miniprogram/dev/component/swiper.html
|
|
6
|
+
* @see https://opendocs.alipay.com/mini/component/swiper
|
|
7
|
+
* @see https://developer.open-douyin.com/docs/resource/zh-CN/mini-app/develop/component/view-container/swiper
|
|
8
|
+
*/
|
|
9
|
+
export type MiniProgramIntrinsicElementSwiper = MiniProgramIntrinsicElementBaseAttributes & {
|
|
10
|
+
autoplay?: boolean;
|
|
11
|
+
circular?: boolean;
|
|
12
|
+
current?: number;
|
|
13
|
+
'display-multiple-items'?: number;
|
|
14
|
+
duration?: number;
|
|
15
|
+
'easing-function'?: 'default' | 'easeInCubic' | 'easeInOutCubic' | 'easeOutCubic' | 'linear';
|
|
16
|
+
'indicator-dots'?: boolean;
|
|
17
|
+
interval?: number;
|
|
18
|
+
'next-margin'?: string;
|
|
19
|
+
onChange?: WevuJsxEventHandler;
|
|
20
|
+
onTransition?: WevuJsxEventHandler;
|
|
21
|
+
'previous-margin'?: string;
|
|
22
|
+
vertical?: boolean;
|
|
23
|
+
};
|
|
24
|
+
//#endregion
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { WevuJsxEventHandler } from "../../jsx-runtime.mjs";
|
|
2
|
+
import { MiniProgramIntrinsicElementBaseAttributes } from "../base.mjs";
|
|
3
|
+
//#region src/miniprogramIntrinsicElements/elements/switch.d.ts
|
|
4
|
+
/**
|
|
5
|
+
* @see https://developers.weixin.qq.com/miniprogram/dev/component/switch.html
|
|
6
|
+
* @see https://opendocs.alipay.com/mini/component/switch
|
|
7
|
+
* @see https://developer.open-douyin.com/docs/resource/zh-CN/mini-app/develop/component/list/switch
|
|
8
|
+
*/
|
|
9
|
+
export type MiniProgramIntrinsicElementSwitch = MiniProgramIntrinsicElementBaseAttributes & {
|
|
10
|
+
checked?: boolean;
|
|
11
|
+
disabled?: boolean;
|
|
12
|
+
onChange?: WevuJsxEventHandler;
|
|
13
|
+
};
|
|
14
|
+
//#endregion
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { MiniProgramIntrinsicElementBaseAttributes } from "../base.mjs";
|
|
2
|
+
//#region src/miniprogramIntrinsicElements/elements/text.d.ts
|
|
3
|
+
/**
|
|
4
|
+
* @see https://developers.weixin.qq.com/miniprogram/dev/component/text.html
|
|
5
|
+
* @see https://opendocs.alipay.com/mini/component/text
|
|
6
|
+
* @see https://developer.open-douyin.com/docs/resource/zh-CN/mini-app/develop/component/basic-content/text
|
|
7
|
+
*/
|
|
8
|
+
export type MiniProgramIntrinsicElementText = MiniProgramIntrinsicElementBaseAttributes & {
|
|
9
|
+
decode?: boolean;
|
|
10
|
+
selectable?: boolean;
|
|
11
|
+
space?: 'emsp' | 'ensp' | 'nbsp';
|
|
12
|
+
};
|
|
13
|
+
//#endregion
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { WevuJsxEventHandler } from "../../jsx-runtime.mjs";
|
|
2
|
+
import { MiniProgramIntrinsicElementBaseAttributes } from "../base.mjs";
|
|
3
|
+
//#region src/miniprogramIntrinsicElements/elements/textarea.d.ts
|
|
4
|
+
/**
|
|
5
|
+
* @see https://developers.weixin.qq.com/miniprogram/dev/component/textarea.html
|
|
6
|
+
* @see https://opendocs.alipay.com/mini/component/textarea
|
|
7
|
+
* @see https://developer.open-douyin.com/docs/resource/zh-CN/mini-app/develop/component/list/textarea
|
|
8
|
+
*/
|
|
9
|
+
export type MiniProgramIntrinsicElementTextarea = MiniProgramIntrinsicElementBaseAttributes & {
|
|
10
|
+
'auto-height'?: boolean;
|
|
11
|
+
disabled?: boolean;
|
|
12
|
+
focus?: boolean;
|
|
13
|
+
maxlength?: number;
|
|
14
|
+
onBlur?: WevuJsxEventHandler;
|
|
15
|
+
onConfirm?: WevuJsxEventHandler;
|
|
16
|
+
onFocus?: WevuJsxEventHandler;
|
|
17
|
+
onInput?: WevuJsxEventHandler;
|
|
18
|
+
placeholder?: string;
|
|
19
|
+
'placeholder-class'?: string;
|
|
20
|
+
'placeholder-style'?: string;
|
|
21
|
+
value?: string;
|
|
22
|
+
};
|
|
23
|
+
//#endregion
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { WevuJsxEventHandler } from "../../jsx-runtime.mjs";
|
|
2
|
+
import { MiniProgramIntrinsicElementBaseAttributes } from "../base.mjs";
|
|
3
|
+
//#region src/miniprogramIntrinsicElements/elements/video.d.ts
|
|
4
|
+
/**
|
|
5
|
+
* @see https://developers.weixin.qq.com/miniprogram/dev/component/video.html
|
|
6
|
+
* @see https://opendocs.alipay.com/mini/component/video
|
|
7
|
+
* @see https://developer.open-douyin.com/docs/resource/zh-CN/mini-app/develop/component/media-component/video
|
|
8
|
+
*/
|
|
9
|
+
export type MiniProgramIntrinsicElementVideo = MiniProgramIntrinsicElementBaseAttributes & {
|
|
10
|
+
autoplay?: boolean;
|
|
11
|
+
controls?: boolean;
|
|
12
|
+
'enable-progress-gesture'?: boolean;
|
|
13
|
+
'initial-time'?: number;
|
|
14
|
+
loop?: boolean;
|
|
15
|
+
muted?: boolean;
|
|
16
|
+
'object-fit'?: 'contain' | 'cover' | 'fill';
|
|
17
|
+
onEnded?: WevuJsxEventHandler;
|
|
18
|
+
onError?: WevuJsxEventHandler;
|
|
19
|
+
onFullScreenChange?: WevuJsxEventHandler;
|
|
20
|
+
onPause?: WevuJsxEventHandler;
|
|
21
|
+
onPlay?: WevuJsxEventHandler;
|
|
22
|
+
onTimeUpdate?: WevuJsxEventHandler;
|
|
23
|
+
poster?: string;
|
|
24
|
+
'show-fullscreen-btn'?: boolean;
|
|
25
|
+
'show-mute-btn'?: boolean;
|
|
26
|
+
'show-play-btn'?: boolean;
|
|
27
|
+
src?: string;
|
|
28
|
+
};
|
|
29
|
+
//#endregion
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { WevuJsxEventHandler } from "../../jsx-runtime.mjs";
|
|
2
|
+
import { MiniProgramIntrinsicElementBaseAttributes } from "../base.mjs";
|
|
3
|
+
//#region src/miniprogramIntrinsicElements/elements/view.d.ts
|
|
4
|
+
/**
|
|
5
|
+
* @see https://developers.weixin.qq.com/miniprogram/dev/component/view.html
|
|
6
|
+
* @see https://opendocs.alipay.com/mini/component/view
|
|
7
|
+
* @see https://developer.open-douyin.com/docs/resource/zh-CN/mini-app/develop/component/view-container/view
|
|
8
|
+
*/
|
|
9
|
+
export type MiniProgramIntrinsicElementView = MiniProgramIntrinsicElementBaseAttributes & {
|
|
10
|
+
'hover-class'?: string;
|
|
11
|
+
'hover-start-time'?: number;
|
|
12
|
+
'hover-stay-time'?: number;
|
|
13
|
+
'hover-stop-propagation'?: boolean;
|
|
14
|
+
onTap?: WevuJsxEventHandler;
|
|
15
|
+
};
|
|
16
|
+
//#endregion
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { WevuJsxEventHandler } from "../../jsx-runtime.mjs";
|
|
2
|
+
import { MiniProgramIntrinsicElementBaseAttributes } from "../base.mjs";
|
|
3
|
+
//#region src/miniprogramIntrinsicElements/elements/web-view.d.ts
|
|
4
|
+
/**
|
|
5
|
+
* @see https://developers.weixin.qq.com/miniprogram/dev/component/web-view.html
|
|
6
|
+
* @see https://opendocs.alipay.com/mini/component/web-view
|
|
7
|
+
* @see https://developer.open-douyin.com/docs/resource/zh-CN/mini-app/develop/component/open-capacity/web-view
|
|
8
|
+
*/
|
|
9
|
+
export type MiniProgramIntrinsicElementWebView = MiniProgramIntrinsicElementBaseAttributes & {
|
|
10
|
+
onError?: WevuJsxEventHandler;
|
|
11
|
+
onLoad?: WevuJsxEventHandler;
|
|
12
|
+
onMessage?: WevuJsxEventHandler;
|
|
13
|
+
src?: string;
|
|
14
|
+
};
|
|
15
|
+
//#endregion
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
import { MiniProgramIntrinsicElementBaseAttributes } from "./miniprogramIntrinsicElements/base.mjs";
|
|
2
|
+
import { MiniProgramIntrinsicElementButton } from "./miniprogramIntrinsicElements/elements/button.mjs";
|
|
3
|
+
import { MiniProgramIntrinsicElementCamera } from "./miniprogramIntrinsicElements/elements/camera.mjs";
|
|
4
|
+
import { MiniProgramIntrinsicElementCanvas } from "./miniprogramIntrinsicElements/elements/canvas.mjs";
|
|
5
|
+
import { MiniProgramIntrinsicElementCheckbox } from "./miniprogramIntrinsicElements/elements/checkbox.mjs";
|
|
6
|
+
import { MiniProgramIntrinsicElementCheckboxGroup } from "./miniprogramIntrinsicElements/elements/checkbox-group.mjs";
|
|
7
|
+
import { MiniProgramIntrinsicElementForm } from "./miniprogramIntrinsicElements/elements/form.mjs";
|
|
8
|
+
import { MiniProgramIntrinsicElementIcon } from "./miniprogramIntrinsicElements/elements/icon.mjs";
|
|
9
|
+
import { MiniProgramIntrinsicElementImage } from "./miniprogramIntrinsicElements/elements/image.mjs";
|
|
10
|
+
import { MiniProgramIntrinsicElementInput } from "./miniprogramIntrinsicElements/elements/input.mjs";
|
|
11
|
+
import { MiniProgramIntrinsicElementLabel } from "./miniprogramIntrinsicElements/elements/label.mjs";
|
|
12
|
+
import { MiniProgramIntrinsicElementMap } from "./miniprogramIntrinsicElements/elements/map.mjs";
|
|
13
|
+
import { MiniProgramIntrinsicElementMatchMedia } from "./miniprogramIntrinsicElements/elements/match-media.mjs";
|
|
14
|
+
import { MiniProgramIntrinsicElementMovableArea } from "./miniprogramIntrinsicElements/elements/movable-area.mjs";
|
|
15
|
+
import { MiniProgramIntrinsicElementMovableView } from "./miniprogramIntrinsicElements/elements/movable-view.mjs";
|
|
16
|
+
import { MiniProgramIntrinsicElementNavigator } from "./miniprogramIntrinsicElements/elements/navigator.mjs";
|
|
17
|
+
import { MiniProgramIntrinsicElementPicker } from "./miniprogramIntrinsicElements/elements/picker.mjs";
|
|
18
|
+
import { MiniProgramIntrinsicElementPickerView } from "./miniprogramIntrinsicElements/elements/picker-view.mjs";
|
|
19
|
+
import { MiniProgramIntrinsicElementPickerViewColumn } from "./miniprogramIntrinsicElements/elements/picker-view-column.mjs";
|
|
20
|
+
import { MiniProgramIntrinsicElementProgress } from "./miniprogramIntrinsicElements/elements/progress.mjs";
|
|
21
|
+
import { MiniProgramIntrinsicElementRadio } from "./miniprogramIntrinsicElements/elements/radio.mjs";
|
|
22
|
+
import { MiniProgramIntrinsicElementRadioGroup } from "./miniprogramIntrinsicElements/elements/radio-group.mjs";
|
|
23
|
+
import { MiniProgramIntrinsicElementRichText } from "./miniprogramIntrinsicElements/elements/rich-text.mjs";
|
|
24
|
+
import { MiniProgramIntrinsicElementScrollView } from "./miniprogramIntrinsicElements/elements/scroll-view.mjs";
|
|
25
|
+
import { MiniProgramIntrinsicElementSlider } from "./miniprogramIntrinsicElements/elements/slider.mjs";
|
|
26
|
+
import { MiniProgramIntrinsicElementSwiper } from "./miniprogramIntrinsicElements/elements/swiper.mjs";
|
|
27
|
+
import { MiniProgramIntrinsicElementSwiperItem } from "./miniprogramIntrinsicElements/elements/swiper-item.mjs";
|
|
28
|
+
import { MiniProgramIntrinsicElementSwitch } from "./miniprogramIntrinsicElements/elements/switch.mjs";
|
|
29
|
+
import { MiniProgramIntrinsicElementText } from "./miniprogramIntrinsicElements/elements/text.mjs";
|
|
30
|
+
import { MiniProgramIntrinsicElementTextarea } from "./miniprogramIntrinsicElements/elements/textarea.mjs";
|
|
31
|
+
import { MiniProgramIntrinsicElementVideo } from "./miniprogramIntrinsicElements/elements/video.mjs";
|
|
32
|
+
import { MiniProgramIntrinsicElementView } from "./miniprogramIntrinsicElements/elements/view.mjs";
|
|
33
|
+
import { MiniProgramIntrinsicElementWebView } from "./miniprogramIntrinsicElements/elements/web-view.mjs";
|
|
34
|
+
//#region src/miniprogramIntrinsicElements.d.ts
|
|
35
|
+
export interface MiniProgramIntrinsicElements {
|
|
36
|
+
button: MiniProgramIntrinsicElementButton;
|
|
37
|
+
camera: MiniProgramIntrinsicElementCamera;
|
|
38
|
+
canvas: MiniProgramIntrinsicElementCanvas;
|
|
39
|
+
checkbox: MiniProgramIntrinsicElementCheckbox;
|
|
40
|
+
'checkbox-group': MiniProgramIntrinsicElementCheckboxGroup;
|
|
41
|
+
form: MiniProgramIntrinsicElementForm;
|
|
42
|
+
icon: MiniProgramIntrinsicElementIcon;
|
|
43
|
+
image: MiniProgramIntrinsicElementImage;
|
|
44
|
+
input: MiniProgramIntrinsicElementInput;
|
|
45
|
+
label: MiniProgramIntrinsicElementLabel;
|
|
46
|
+
map: MiniProgramIntrinsicElementMap;
|
|
47
|
+
'match-media': MiniProgramIntrinsicElementMatchMedia;
|
|
48
|
+
'movable-area': MiniProgramIntrinsicElementMovableArea;
|
|
49
|
+
'movable-view': MiniProgramIntrinsicElementMovableView;
|
|
50
|
+
navigator: MiniProgramIntrinsicElementNavigator;
|
|
51
|
+
picker: MiniProgramIntrinsicElementPicker;
|
|
52
|
+
'picker-view': MiniProgramIntrinsicElementPickerView;
|
|
53
|
+
'picker-view-column': MiniProgramIntrinsicElementPickerViewColumn;
|
|
54
|
+
progress: MiniProgramIntrinsicElementProgress;
|
|
55
|
+
radio: MiniProgramIntrinsicElementRadio;
|
|
56
|
+
'radio-group': MiniProgramIntrinsicElementRadioGroup;
|
|
57
|
+
'rich-text': MiniProgramIntrinsicElementRichText;
|
|
58
|
+
'scroll-view': MiniProgramIntrinsicElementScrollView;
|
|
59
|
+
slider: MiniProgramIntrinsicElementSlider;
|
|
60
|
+
swiper: MiniProgramIntrinsicElementSwiper;
|
|
61
|
+
'swiper-item': MiniProgramIntrinsicElementSwiperItem;
|
|
62
|
+
switch: MiniProgramIntrinsicElementSwitch;
|
|
63
|
+
text: MiniProgramIntrinsicElementText;
|
|
64
|
+
textarea: MiniProgramIntrinsicElementTextarea;
|
|
65
|
+
video: MiniProgramIntrinsicElementVideo;
|
|
66
|
+
view: MiniProgramIntrinsicElementView;
|
|
67
|
+
'web-view': MiniProgramIntrinsicElementWebView;
|
|
68
|
+
}
|
|
69
|
+
//#endregion
|
|
70
|
+
export type { MiniProgramIntrinsicElementBaseAttributes };
|
package/dist/package.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var e=`7.0
|
|
1
|
+
var e=`7.1.0`;export{e as version};
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
//#region src/reactivity/asyncDerivation.d.ts
|
|
2
|
+
/** 异步派生状态的生命周期阶段。 */
|
|
3
|
+
export type AsyncDerivationStatus = 'idle' | 'initial-pending' | 'ready' | 'refreshing' | 'error' | 'disposed';
|
|
4
|
+
/** 传给异步加载函数的当前任务上下文。 */
|
|
5
|
+
export interface AsyncDerivationContext {
|
|
6
|
+
readonly signal: AbortSignal;
|
|
7
|
+
}
|
|
8
|
+
/** `useAsyncDerivation()` 的配置。 */
|
|
9
|
+
export interface UseAsyncDerivationOptions {
|
|
10
|
+
immediate?: boolean;
|
|
11
|
+
}
|
|
12
|
+
type AsyncDerivationIdleState<TStatus extends 'idle' | 'initial-pending' | 'disposed'> = Readonly<{
|
|
13
|
+
status: TStatus;
|
|
14
|
+
value: undefined;
|
|
15
|
+
error: undefined;
|
|
16
|
+
}>;
|
|
17
|
+
type AsyncDerivationReadyState<T, TStatus extends 'ready' | 'refreshing'> = Readonly<{
|
|
18
|
+
status: TStatus;
|
|
19
|
+
value: T;
|
|
20
|
+
error: undefined;
|
|
21
|
+
}>;
|
|
22
|
+
type AsyncDerivationErrorState<T> = Readonly<{
|
|
23
|
+
status: 'error';
|
|
24
|
+
value: T | undefined;
|
|
25
|
+
error: unknown;
|
|
26
|
+
}>;
|
|
27
|
+
/** 模板可观察的只读异步派生状态。 */
|
|
28
|
+
export type AsyncDerivationState<T> = AsyncDerivationIdleState<'idle'> | AsyncDerivationIdleState<'initial-pending'> | AsyncDerivationIdleState<'disposed'> | AsyncDerivationReadyState<T, 'ready'> | AsyncDerivationReadyState<T, 'refreshing'> | AsyncDerivationErrorState<T>;
|
|
29
|
+
type AsyncDerivationControls = Readonly<{
|
|
30
|
+
refresh: () => Promise<void>;
|
|
31
|
+
dispose: () => void;
|
|
32
|
+
}>;
|
|
33
|
+
/** 异步派生状态及其非枚举控制方法。 */
|
|
34
|
+
export type AsyncDerivation<T> = AsyncDerivationState<T> & AsyncDerivationControls;
|
|
35
|
+
/**
|
|
36
|
+
* 创建面向静态 WXML 数据绑定的异步派生状态。
|
|
37
|
+
* 加载错误通过 `status` 与 `error` 暴露,`refresh()` 始终正常完成。
|
|
38
|
+
*/
|
|
39
|
+
export declare function useAsyncDerivation<T>(loader: (context: AsyncDerivationContext) => T | PromiseLike<T>, options?: UseAsyncDerivationOptions): AsyncDerivation<T>;
|
|
40
|
+
//#endregion
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{batch as e,onScopeDispose as t,runWithoutTracking as n}from"./core.mjs";import{reactive as r}from"./reactive.mjs";import{readonly as i}from"./readonly.mjs";import{AbortControllerPolyfill as a}from"@wevu/web-apis/abort";const o=Promise.resolve();function s(){let e;return{promise:new Promise(t=>{e=t}),resolve:e}}function c(c,l={}){var u;let d={status:`idle`,value:void 0,error:void 0},f=r(d),p,m,h=0,g=!1,_=!1;function v(e){if(_||e!==h)return;let t=m;m=void 0,t==null||t.resolve()}function y(t,n){if(!(_||t!==h)){p=void 0,g=!0;try{e(()=>{f.status=`ready`,f.value=n,f.error=void 0})}finally{v(t)}}}function b(t,n){if(!(_||t!==h)){p=void 0;try{e(()=>{f.status=`error`,f.error=n,g||(f.value=void 0)})}finally{v(t)}}}function x(){var t;if(_)return o;let r=(t=m)==null?s():t;m=r;let i=++h,l=p,u=new(typeof AbortController==`function`?AbortController:a);p=u;try{l==null||l.abort()}catch(e){}return _||i!==h||(e(()=>{f.status=g?`refreshing`:`initial-pending`,f.error=void 0}),_||i!==h)||n(()=>{new Promise(e=>{e(c({signal:u.signal}))}).then(e=>y(i,e),e=>b(i,e)).catch(e=>{setTimeout(()=>{throw e},0)})}),r.promise}function S(){if(_)return;_=!0,h+=1;let t=p;p=void 0;try{t==null||t.abort()}catch(e){}try{e(()=>{f.status=`disposed`,f.value=void 0,f.error=void 0})}finally{g=!1;let e=m;m=void 0,e==null||e.resolve()}}Object.defineProperties(d,{refresh:{value:x},dispose:{value:S}});let C=i(f);return t(S),((u=l.immediate)==null||u)&&x(),C}export{c as useAsyncDerivation};
|
|
@@ -1,21 +1,20 @@
|
|
|
1
1
|
import { Ref } from "./ref.mjs";
|
|
2
2
|
//#region src/reactivity/computed.d.ts
|
|
3
|
-
type ComputedGetter<T> = () => T;
|
|
4
|
-
type ComputedSetter<T> = (value: T) => void;
|
|
3
|
+
export type ComputedGetter<T> = () => T;
|
|
4
|
+
export type ComputedSetter<T> = (value: T) => void;
|
|
5
5
|
interface BaseComputedRef<T, S = T> extends Ref<T, S> {
|
|
6
6
|
[key: symbol]: any;
|
|
7
7
|
}
|
|
8
|
-
interface ComputedRef<T = any> extends BaseComputedRef<T> {
|
|
8
|
+
export interface ComputedRef<T = any> extends BaseComputedRef<T> {
|
|
9
9
|
readonly value: T;
|
|
10
10
|
}
|
|
11
|
-
interface WritableComputedRef<T, S = T> extends BaseComputedRef<T, S> {
|
|
11
|
+
export interface WritableComputedRef<T, S = T> extends BaseComputedRef<T, S> {
|
|
12
12
|
value: T;
|
|
13
13
|
}
|
|
14
|
-
interface WritableComputedOptions<T> {
|
|
14
|
+
export interface WritableComputedOptions<T> {
|
|
15
15
|
get: ComputedGetter<T>;
|
|
16
16
|
set: ComputedSetter<T>;
|
|
17
17
|
}
|
|
18
|
-
declare function computed<T>(getter: ComputedGetter<T>): ComputedRef<T>;
|
|
19
|
-
declare function computed<T>(options: WritableComputedOptions<T>): WritableComputedRef<T>;
|
|
20
|
-
//#endregion
|
|
21
|
-
export { ComputedGetter, ComputedRef, ComputedSetter, WritableComputedOptions, WritableComputedRef, computed };
|
|
18
|
+
export declare function computed<T>(getter: ComputedGetter<T>): ComputedRef<T>;
|
|
19
|
+
export declare function computed<T>(options: WritableComputedOptions<T>): WritableComputedRef<T>;
|
|
20
|
+
//#endregion
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{createComputedEffect as e,track as t,trigger as n}from"./core.mjs";import{markAsRef as r}from"./ref.mjs";function i(i){let a,o;typeof i==`function`?(a=i,o=()=>{throw Error(`计算属性是只读的`)}):(a=i.get,o=i.set);let s,c=!0,l,u={get value(){return c&&(s=l(),c=!1),t(u,`value`),s},set value(e){o(e)}};return r(u),l=e(a,{lazy:!0,scheduler:()=>{c||(c=!0,n(u,`value`))}}),u}export{i as computed};
|
|
@@ -1,34 +1,34 @@
|
|
|
1
1
|
//#region src/reactivity/core.d.ts
|
|
2
|
-
type EffectScheduler = () => void;
|
|
3
|
-
type Dep = Set<ReactiveEffect>;
|
|
4
|
-
interface ReactiveEffect<T = any> {
|
|
2
|
+
export type EffectScheduler = () => void;
|
|
3
|
+
export type Dep = Set<ReactiveEffect>;
|
|
4
|
+
export interface ReactiveEffect<T = any> {
|
|
5
5
|
(): T;
|
|
6
6
|
deps: Dep[];
|
|
7
7
|
scheduler?: EffectScheduler;
|
|
8
8
|
active: boolean;
|
|
9
9
|
_running: boolean;
|
|
10
10
|
_fn: () => T;
|
|
11
|
+
_computed?: boolean;
|
|
11
12
|
onStop?: () => void;
|
|
12
13
|
}
|
|
13
|
-
declare function startBatch(): void;
|
|
14
|
-
declare function endBatch(): void;
|
|
15
|
-
declare function batch<T>(fn: () => T): T;
|
|
16
|
-
declare function stop(runner: ReactiveEffect): void;
|
|
17
|
-
interface EffectScope {
|
|
14
|
+
export declare function startBatch(): void;
|
|
15
|
+
export declare function endBatch(): void;
|
|
16
|
+
export declare function batch<T>(fn: () => T): T;
|
|
17
|
+
export declare function stop(runner: ReactiveEffect): void;
|
|
18
|
+
export interface EffectScope {
|
|
18
19
|
active: boolean;
|
|
19
20
|
effects: ReactiveEffect[];
|
|
20
21
|
cleanups: (() => void)[];
|
|
21
22
|
run: <T>(fn: () => T) => T | undefined;
|
|
22
23
|
stop: () => void;
|
|
23
24
|
}
|
|
24
|
-
declare function effectScope(detached?: boolean): EffectScope;
|
|
25
|
-
declare function getCurrentScope(): EffectScope | undefined;
|
|
26
|
-
declare function onScopeDispose(fn: () => void): void;
|
|
27
|
-
interface EffectOptions {
|
|
25
|
+
export declare function effectScope(detached?: boolean): EffectScope;
|
|
26
|
+
export declare function getCurrentScope(): EffectScope | undefined;
|
|
27
|
+
export declare function onScopeDispose(fn: () => void): void;
|
|
28
|
+
export interface EffectOptions {
|
|
28
29
|
scheduler?: EffectScheduler;
|
|
29
30
|
lazy?: boolean;
|
|
30
31
|
onStop?: () => void;
|
|
31
32
|
}
|
|
32
|
-
declare function effect<T = any>(fn: () => T, options?: EffectOptions): ReactiveEffect<T>;
|
|
33
|
-
//#endregion
|
|
34
|
-
export { Dep, EffectOptions, EffectScheduler, EffectScope, ReactiveEffect, batch, effect, effectScope, endBatch, getCurrentScope, onScopeDispose, startBatch, stop };
|
|
33
|
+
export declare function effect<T = any>(fn: () => T, options?: EffectOptions): ReactiveEffect<T>;
|
|
34
|
+
//#endregion
|
package/dist/reactivity/core.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{queueJob as e}from"../scheduler.mjs";import t from"../_virtual/_@oxc-project_runtime@0.
|
|
1
|
+
import{queueJob as e}from"../scheduler.mjs";import t from"../_virtual/_@oxc-project_runtime@0.149.0/helpers/esm/defineProperty.mjs";const n=new WeakMap;let r=null;const i=[];let a=!0,o,s=0,c=!1;const l=new Set,u=new Set;function d(e){if(e.active){if(e.scheduler){let t=o;o=e._scope;try{e.scheduler()}finally{o=t}return}e()}}function f(e){if(s>0||c){u.add(e);return}u.delete(e),e()}function p(){s++}function m(e){let t=e.values().next();if(!t.done)return e.delete(t.value),t.value}function h(){let e,t=!1;c=!0;try{for(;l.size;){let n=m(l);if(n)try{d(n)}catch(n){t||(e=n,t=!0)}}}finally{c=!1}for(;u.size;){let n=u.values().next().value;u.delete(n);try{n()}catch(n){t||(e=n,t=!0)}}if(t)throw e}function g(){s!==0&&(s--,s===0&&!c&&h())}function _(e){p();try{return e()}finally{g()}}function v(e){let{deps:t}=e;for(let n=0;n<t.length;n++)t[n].delete(e);t.length=0}function y(e){var t;e.active&&(e.active=!1,v(e),(t=e.onStop)==null||t.call(e))}var b=class{constructor(e=!1){if(this.detached=e,t(this,`active`,!0),t(this,`effects`,[]),t(this,`cleanups`,[]),t(this,`parent`,void 0),t(this,`scopes`,void 0),!e&&o){var n;if(!o.active){this.active=!1;return}this.parent=o,((n=o).scopes||(n.scopes=[])).push(this)}}run(e){if(!this.active)return;let t=o;o=this;try{return e()}finally{o=t}}stop(){if(!this.active)return;this.active=!1;let e=o;o=this;let t,n=!1,r=e=>{n||(t=e,n=!0)};try{let e=this.effects.splice(0);for(let t of e)try{y(t)}catch(e){r(e)}let t=this.cleanups.splice(0);for(let e of t)try{e()}catch(e){r(e)}let n=this.scopes;if(this.scopes=void 0,n){for(let e of n)try{e.stop()}catch(e){r(e)}n.length=0}}finally{var i;if((i=this.parent)!=null&&i.scopes){let e=this.parent.scopes.indexOf(this);e>=0&&this.parent.scopes.splice(e,1)}this.parent=void 0,o=e}if(n)throw t}};function x(e=!1){return new b(e)}function S(){return o}function C(e){o!=null&&o.active&&o.cleanups.push(e)}function w(e){let t=a;a=!1;try{return e()}finally{a=t}}function T(e){if(o){if(o.active){o.effects.push(e);return}y(e)}}function E(e,t={}){let n=function(){if(!n.active||n._running)return e();v(n);let t=o;o=n._scope;let s=a;try{return a=!0,n._running=!0,i.push(n),r=n,e()}finally{var c;i.pop(),r=(c=i[i.length-1])==null?null:c,n._running=!1,o=t,a=s}};return n.deps=[],n.scheduler=t.scheduler,n.onStop=t.onStop,n.active=!0,n._running=!1,n._fn=e,n._scope=o,n}function D(e,t,n){let r=E(e,t);return r._computed=n,T(r),t.lazy||r(),r}function O(e,t={}){return D(e,t,!1)}function k(e,t={}){return D(e,t,!0)}function A(e,t){if(!a||!r)return;let i=n.get(e);i||(i=new Map,n.set(e,i));let o=i.get(t);o||(o=new Set,i.set(t,o)),o.has(r)||(o.add(r),r.deps.push(o))}function j(e){if(!e._running){if(e._computed){d(e);return}if(s>0||c){l.add(e);return}d(e)}}function M(e,t){let i=n.get(e);if(!i)return;let a=i.get(t);if(!a)return;let o=new Set;a.forEach(e=>{e!==r&&o.add(e)}),o.forEach(j)}function N(e){a&&r&&(e.has(r)||(e.add(r),r.deps.push(e)))}function P(e){new Set(e).forEach(j)}export{_ as batch,k as createComputedEffect,E as createReactiveEffect,O as effect,x as effectScope,g as endBatch,S as getCurrentScope,C as onScopeDispose,f as queueBatchCallback,e as queueJob,w as runWithoutTracking,p as startBatch,y as stop,A as track,N as trackEffects,M as trigger,P as triggerEffects};
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { AsyncDerivation, AsyncDerivationContext, AsyncDerivationState, AsyncDerivationStatus, UseAsyncDerivationOptions, useAsyncDerivation } from "./asyncDerivation.mjs";
|
|
1
2
|
import { CustomRefFactory, CustomRefOptions, CustomRefSource, MaybeRef, MaybeRefOrGetter, Ref, ShallowRef, customRef, isRef, ref, toValue, unref } from "./ref.mjs";
|
|
2
3
|
import { ComputedGetter, ComputedRef, ComputedSetter, WritableComputedOptions, WritableComputedRef, computed } from "./computed.mjs";
|
|
3
4
|
import { EffectScope, batch, effect, effectScope, endBatch, getCurrentScope, onScopeDispose, startBatch, stop } from "./core.mjs";
|
|
@@ -12,4 +13,4 @@ import { ToRefs, toRef, toRefs } from "./toRefs.mjs";
|
|
|
12
13
|
import { traverse } from "./traverse.mjs";
|
|
13
14
|
import { MapSources, MaybeUndefined, MultiWatchSources, OnCleanup, WatchCallback, WatchEffect, WatchEffectOptions, WatchMultiSources, WatchOptions, WatchScheduler, WatchSource, WatchSourceValue, WatchSources, WatchStopHandle, getDeepWatchStrategy, setDeepWatchStrategy } from "./watch/types.mjs";
|
|
14
15
|
import { watch, watchEffect, watchPostEffect, watchSyncEffect } from "./watch.mjs";
|
|
15
|
-
export { type ComputedGetter, type ComputedRef, type ComputedSetter, type CustomRefFactory, type CustomRefOptions, type CustomRefSource, type EffectScope, type MapSources, type MaybeRef, type MaybeRefOrGetter, type MaybeUndefined, type MultiWatchSources, type MutationKind, type MutationOp, type MutationRecord, type OnCleanup, type PrelinkReactiveTreeOptions, type Ref, type ShallowRef, type ToRefs, type WatchCallback, type WatchEffect, type WatchEffectOptions, type WatchMultiSources, type WatchOptions, type WatchScheduler, type WatchSource, type WatchSourceValue, type WatchSources, type WatchStopHandle, type WritableComputedOptions, type WritableComputedRef, addMutationRecorder, batch, computed, customRef, effect, effectScope, endBatch, getCurrentScope, getDeepWatchStrategy, getReactiveVersion, isProxy, isRaw, isReactive, isReadonly, isRef, isShallowReactive, isShallowRef, markRaw, onScopeDispose, prelinkReactiveTree, reactive, readonly, ref, removeMutationRecorder, setDeepWatchStrategy, shallowReactive, shallowReadonly, shallowRef, startBatch, stop, toRaw, toRef, toRefs, toValue, touchReactive, traverse, triggerRef, unref, watch, watchEffect, watchPostEffect, watchSyncEffect };
|
|
16
|
+
export { type AsyncDerivation, type AsyncDerivationContext, type AsyncDerivationState, type AsyncDerivationStatus, type ComputedGetter, type ComputedRef, type ComputedSetter, type CustomRefFactory, type CustomRefOptions, type CustomRefSource, type EffectScope, type MapSources, type MaybeRef, type MaybeRefOrGetter, type MaybeUndefined, type MultiWatchSources, type MutationKind, type MutationOp, type MutationRecord, type OnCleanup, type PrelinkReactiveTreeOptions, type Ref, type ShallowRef, type ToRefs, type UseAsyncDerivationOptions, type WatchCallback, type WatchEffect, type WatchEffectOptions, type WatchMultiSources, type WatchOptions, type WatchScheduler, type WatchSource, type WatchSourceValue, type WatchSources, type WatchStopHandle, type WritableComputedOptions, type WritableComputedRef, addMutationRecorder, batch, computed, customRef, effect, effectScope, endBatch, getCurrentScope, getDeepWatchStrategy, getReactiveVersion, isProxy, isRaw, isReactive, isReadonly, isRef, isShallowReactive, isShallowRef, markRaw, onScopeDispose, prelinkReactiveTree, reactive, readonly, ref, removeMutationRecorder, setDeepWatchStrategy, shallowReactive, shallowReadonly, shallowRef, startBatch, stop, toRaw, toRef, toRefs, toValue, touchReactive, traverse, triggerRef, unref, useAsyncDerivation, watch, watchEffect, watchPostEffect, watchSyncEffect };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
//#region src/reactivity/reactive/mutation.d.ts
|
|
2
|
-
type MutationOp = 'set' | 'delete';
|
|
3
|
-
type MutationKind = 'property' | 'array';
|
|
4
|
-
interface MutationRecord {
|
|
2
|
+
export type MutationOp = 'set' | 'delete';
|
|
3
|
+
export type MutationKind = 'property' | 'array';
|
|
4
|
+
export interface MutationRecord {
|
|
5
5
|
root: object;
|
|
6
6
|
kind: MutationKind;
|
|
7
7
|
op: MutationOp;
|
|
@@ -15,7 +15,6 @@ interface MutationRecord {
|
|
|
15
15
|
fallbackTopKeys?: string[];
|
|
16
16
|
}
|
|
17
17
|
type MutationRecorder = (record: MutationRecord) => void;
|
|
18
|
-
declare function addMutationRecorder(recorder: MutationRecorder): void;
|
|
19
|
-
declare function removeMutationRecorder(recorder: MutationRecorder): void;
|
|
20
|
-
//#endregion
|
|
21
|
-
export { MutationKind, MutationOp, MutationRecord, addMutationRecorder, removeMutationRecorder };
|
|
18
|
+
export declare function addMutationRecorder(recorder: MutationRecorder): void;
|
|
19
|
+
export declare function removeMutationRecorder(recorder: MutationRecorder): void;
|
|
20
|
+
//#endregion
|