wevu 7.0.4 → 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/types.d.mts +172 -0
- package/dist/dev/router/useRoute.d.mts +19 -0
- 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 +1 -1
- 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/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 +47 -9
- package/dist/jsxTypes.d.mts +8 -0
- 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.mjs +1 -1
- package/dist/reactivity/core.d.mts +1 -0
- package/dist/reactivity/core.mjs +1 -1
- package/dist/reactivity/index.d.mts +2 -1
- package/dist/reactivity/readonly.d.mts +1 -1
- package/dist/reactivity/ref.mjs +1 -1
- 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/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.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/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 +5 -13
- package/dist/runtime/define.mjs +1 -1
- package/dist/runtime/diff.mjs +1 -1
- 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/vue.d.mts +1 -2
- 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/jsxIsland.d.mts +2 -6
- package/dist/runtime/layoutBridge.d.mts +5 -9
- package/dist/runtime/pageLayout.d.mts +3 -4
- package/dist/runtime/publicRuntime.d.mts +21 -0
- package/dist/runtime/publicRuntime.mjs +1 -0
- 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/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.mjs +1 -1
- package/dist/runtime/register/snapshot.mjs +1 -1
- package/dist/runtime/scopedSlots.mjs +1 -1
- package/dist/runtime/selectorQuery.mjs +1 -1
- package/dist/runtime/teardown.mjs +1 -0
- package/dist/runtime/templateRefTypes.d.mts +5 -2
- package/dist/runtime/templateRefs.mjs +1 -1
- package/dist/runtime/types/miniprogram.d.mts +3 -0
- package/dist/runtime/types/options.d.mts +2 -2
- package/dist/runtime/types/props.d.mts +1 -1
- package/dist/runtime/types/setData.d.mts +18 -1
- package/dist/runtime/types.d.mts +3 -3
- package/dist/runtime/vueCompat/templateRef.mjs +1 -1
- 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 +10 -8
- package/dist/store/types.d.mts +4 -4
- 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/vue-demi.d.mts +13 -14
- package/dist/vue-demi.mjs +1 -1
- package/dist/weapp/jsx-runtime.d.mts +13 -0
- package/dist/weapp/jsx-runtime.mjs +1 -0
- package/dist/weappIntrinsicElements/base.d.mts +2 -19
- package/dist/weappIntrinsicElements/elements/ad-custom.d.mts +5 -4
- package/dist/weappIntrinsicElements/elements/ad.d.mts +6 -5
- package/dist/weappIntrinsicElements/elements/audio.d.mts +8 -7
- package/dist/weappIntrinsicElements/elements/block.d.mts +2 -2
- package/dist/weappIntrinsicElements/elements/button.d.mts +17 -15
- package/dist/weappIntrinsicElements/elements/camera.d.mts +11 -10
- package/dist/weappIntrinsicElements/elements/canvas.d.mts +9 -8
- package/dist/weappIntrinsicElements/elements/checkbox-group.d.mts +5 -7
- package/dist/weappIntrinsicElements/elements/checkbox.d.mts +2 -2
- package/dist/weappIntrinsicElements/elements/cover-image.d.mts +8 -4
- package/dist/weappIntrinsicElements/elements/cover-view.d.mts +2 -2
- package/dist/weappIntrinsicElements/elements/editor.d.mts +8 -7
- package/dist/weappIntrinsicElements/elements/form.d.mts +6 -5
- package/dist/weappIntrinsicElements/elements/functional-page-navigator.d.mts +8 -7
- package/dist/weappIntrinsicElements/elements/icon.d.mts +2 -2
- package/dist/weappIntrinsicElements/elements/image.d.mts +6 -5
- package/dist/weappIntrinsicElements/elements/import.d.mts +2 -2
- package/dist/weappIntrinsicElements/elements/include.d.mts +2 -2
- package/dist/weappIntrinsicElements/elements/input.d.mts +16 -16
- package/dist/weappIntrinsicElements/elements/keyboard-accessory.d.mts +2 -2
- package/dist/weappIntrinsicElements/elements/label.d.mts +2 -2
- package/dist/weappIntrinsicElements/elements/live-player.d.mts +17 -16
- package/dist/weappIntrinsicElements/elements/live-pusher.d.mts +18 -17
- package/dist/weappIntrinsicElements/elements/map.d.mts +17 -16
- package/dist/weappIntrinsicElements/elements/match-media.d.mts +2 -2
- package/dist/weappIntrinsicElements/elements/movable-area.d.mts +7 -6
- package/dist/weappIntrinsicElements/elements/movable-view.d.mts +7 -6
- package/dist/weappIntrinsicElements/elements/navigation-bar.d.mts +2 -2
- package/dist/weappIntrinsicElements/elements/navigator.d.mts +9 -8
- package/dist/weappIntrinsicElements/elements/official-account.d.mts +5 -4
- package/dist/weappIntrinsicElements/elements/open-data.d.mts +4 -3
- package/dist/weappIntrinsicElements/elements/page-container.d.mts +10 -9
- package/dist/weappIntrinsicElements/elements/page-meta.d.mts +6 -5
- package/dist/weappIntrinsicElements/elements/picker-view-column.d.mts +6 -5
- package/dist/weappIntrinsicElements/elements/picker-view.d.mts +6 -5
- package/dist/weappIntrinsicElements/elements/picker.d.mts +8 -7
- package/dist/weappIntrinsicElements/elements/progress.d.mts +4 -3
- package/dist/weappIntrinsicElements/elements/radio-group.d.mts +5 -7
- package/dist/weappIntrinsicElements/elements/radio.d.mts +2 -2
- package/dist/weappIntrinsicElements/elements/rich-text.d.mts +5 -5
- package/dist/weappIntrinsicElements/elements/scroll-view.d.mts +19 -23
- package/dist/weappIntrinsicElements/elements/share-element.d.mts +4 -5
- package/dist/weappIntrinsicElements/elements/slider.d.mts +5 -4
- package/dist/weappIntrinsicElements/elements/slot.d.mts +2 -2
- package/dist/weappIntrinsicElements/elements/swiper-item.d.mts +5 -36
- package/dist/weappIntrinsicElements/elements/swiper.d.mts +10 -12
- package/dist/weappIntrinsicElements/elements/switch.d.mts +4 -3
- package/dist/weappIntrinsicElements/elements/template.d.mts +2 -2
- package/dist/weappIntrinsicElements/elements/text.d.mts +4 -4
- package/dist/weappIntrinsicElements/elements/textarea.d.mts +15 -14
- package/dist/weappIntrinsicElements/elements/video.d.mts +23 -22
- package/dist/weappIntrinsicElements/elements/view.d.mts +4 -2
- package/dist/weappIntrinsicElements/elements/voip-room.d.mts +6 -5
- package/dist/weappIntrinsicElements/elements/web-view.d.mts +6 -5
- 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 -10
- /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,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 +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};
|
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 };
|
|
@@ -5,7 +5,7 @@ import { Ref } from "./ref.mjs";
|
|
|
5
5
|
* 选择浅层而非深层递归,是为了在小程序环境中保持实现和运行时开销最小,
|
|
6
6
|
* 仅阻止直接属性写入/删除,嵌套对象仍按原样透传。
|
|
7
7
|
*/
|
|
8
|
-
export declare function readonly<T extends object>(target: T): T
|
|
8
|
+
export declare function readonly<T extends object>(target: T): Readonly<T>;
|
|
9
9
|
export declare function readonly<T>(target: Ref<T>): Readonly<Ref<T>>;
|
|
10
10
|
/**
|
|
11
11
|
* 与 Vue 3 的 `shallowReadonly()` 对齐。
|
package/dist/reactivity/ref.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import e from"../_virtual/_@oxc-project_runtime@0.
|
|
1
|
+
import e from"../_virtual/_@oxc-project_runtime@0.149.0/helpers/esm/defineProperty.mjs";import{trackEffects as t,triggerEffects as n}from"./core.mjs";import{convertToReactive as r,markRaw as i}from"./reactive.mjs";const a=`__v_isRef`;function o(e){try{Object.defineProperty(e,a,{value:!0,configurable:!0})}catch(t){e[a]=!0}return e}function s(e){return!!(e&&typeof e==`object`&&e.__v_isRef===!0)}var c=class{constructor(t){e(this,`_value`,void 0),e(this,`_rawValue`,void 0),e(this,`dep`,void 0),o(this),this._rawValue=t,this._value=r(t)}get value(){return this.dep||(this.dep=new Set),t(this.dep),this._value}set value(e){Object.is(e,this._rawValue)||(this._rawValue=e,this._value=r(e),this.dep&&n(this.dep))}};function l(e){return s(e)?e:i(new c(e))}function u(e){return s(e)?e.value:e}function d(e){return typeof e==`function`?e():u(e)}var f=class{constructor(r,i){e(this,`_getValue`,void 0),e(this,`_setValue`,void 0),e(this,`dep`,void 0),o(this);let a=i,s=()=>{this.dep||(this.dep=new Set),t(this.dep)},c=()=>{this.dep&&n(this.dep)},l=e=>e===void 0&&a!==void 0?a:e;if(typeof r==`function`){let e=r(s,c);this._getValue=()=>l(e.get()),this._setValue=t=>e.set(t);return}let u=r;this._getValue=()=>(s(),l(u.get())),this._setValue=e=>{u.set(e),c()}}get value(){return this._getValue()}set value(e){this._setValue(e)}};function p(e,t){return i(new f(e,t))}export{a as RefFlag,p as customRef,s as isRef,o as markAsRef,l as ref,d as toValue,u as unref};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{createComputedEffect as e,track as t,trigger as n}from"../../reactivity/core.mjs";import{markAsRef as r}from"../../reactivity/ref.mjs";function i(i){let a=Object.create(null),o=Object.create(null),s=new Set;return{computedRefs:a,computedSetters:o,dirtyComputedKeys:s,createTrackedComputed:(a,o,c)=>{let l,u=!0,d,f={get value(){return u&&(l=d(),u=!1),t(f,`value`),l},set value(e){if(!c)throw Error(`计算属性是只读的`);c(e)}};return r(f),d=e(o,{lazy:!0,scheduler:()=>{u||(u=!0,i.setDataStrategy===`patch`&&i.includeComputed&&s.add(a),n(f,`value`))}}),f},computedProxy:new Proxy({},{get(e,t){if(typeof t==`string`&&a[t])return a[t].value},has(e,t){return typeof t==`string`&&!!a[t]},ownKeys(){return Object.keys(a)},getOwnPropertyDescriptor(e,t){if(typeof t==`string`&&a[t])return{configurable:!0,enumerable:!0,value:a[t].value}}})}}export{i as createComputedAccessors};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{nextTick as e}from"../../scheduler.mjs";import{toRaw as t}from"../../reactivity/reactive/shared.mjs";import{isRef as n,ref as r}from"../../reactivity/ref.mjs";import{hasOwn as i}from"../../utils.mjs";import{setComputedValue as a}from"../internal.mjs";import{normalizeEmitEventName as o,normalizeEmitPayload as s}from"../emit.mjs";import{isNativeBridgeMethod as c,markNativeBridgeMethod as l}from"../nativeBridge.mjs";import{createComputedAccessors as u}from"./computed.mjs";import{WEVU_COMPONENT_NAME_KEY as d,
|
|
1
|
+
import{nextTick as e}from"../../scheduler.mjs";import{toRaw as t}from"../../reactivity/reactive/shared.mjs";import{isRef as n,ref as r}from"../../reactivity/ref.mjs";import{hasOwn as i}from"../../utils.mjs";import{setComputedValue as a}from"../internal.mjs";import{normalizeEmitEventName as o,normalizeEmitPayload as s}from"../emit.mjs";import{isNativeBridgeMethod as c,markNativeBridgeMethod as l}from"../nativeBridge.mjs";import{createComputedAccessors as u}from"./computed.mjs";import{WEVU_COMPONENT_NAME_KEY as d,WEVU_HOST_COMMIT_PROMISE_KEY as f,WEVU_INLINE_MAP_KEY as p,WEVU_NATIVE_INSTANCE_KEY as m,WEVU_PARENT_INSTANCE_KEY as h,WEVU_PROPS_KEY as g,WEVU_RESOLVE_PUBLIC_INSTANCE_METHOD as _,WEVU_RUNTIME_APP_KEY as v,WEVU_RUNTIME_KEY as y}from"@weapp-core/constants";function b(b){let{state:x,setupState:S,computedDefs:C,methodDefs:w,appConfig:T,includeComputed:E,setDataStrategy:D}=b,O={},{computedRefs:k,computedSetters:A,dirtyComputedKeys:j,createTrackedComputed:M,computedProxy:N}=u({includeComputed:E,setDataStrategy:D}),P=r(0),F=Object.create(null),I=(e,n)=>{let r=t(e),i=r[y],a=i==null?void 0:i.proxy,o=(e,t)=>{let n=e[t];return c(n)},s=t=>!(!t||typeof t!=`object`||t===e||t===n||t===a||o(t,`triggerEvent`)||o(t,`createSelectorQuery`)||o(t,`createIntersectionObserver`)||o(t,`setData`)),l=r[m];if(s(l))return l;let u=i==null?void 0:i.instance;if(s(u))return u},L=e=>{if(i(O,e))return;let t=(...t)=>{let n=I(x,x);if(!n)return;let r=Reflect.get(n,e);if(typeof r==`function`)return r.apply(n,t)};l(t),O[e]=t},R=(e,t)=>{let n=new Set,r=e;for(;r&&!n.has(r);){var a;n.add(r);let e=(a=r[v])==null||(a=a.config)==null?void 0:a.globalProperties;if(e&&i(e,t))return{found:!0,value:e[t]};r=r[h]}let o=typeof globalThis<`u`?globalThis.getApp:void 0;if(typeof o==`function`)try{var s;let e=o(),n=e==null||(s=e[v])==null||(s=s.config)==null?void 0:s.globalProperties;if(n&&i(n,t))return{found:!0,value:n[t]}}catch(e){}return{found:!1,value:void 0}},z=e=>{let t=e&&Reflect.get(e,`selectOwnerComponent`);if(typeof t==`function`)try{var n,r,i,a;let o=t.call(e);if(!o||typeof o!=`object`)return;let s=Reflect.get(o,_);if(typeof s==`function`){let e=s.call(o);if(e)return e}return(n=(r=(i=o[y])==null?void 0:i.proxy)==null?(a=o.__wevu)==null?void 0:a.proxy:r)==null?o:n}catch(e){return}},B=new Proxy(x,{get(n,r,a){if(typeof r==`string`){if(P.value,i(S,r))return Reflect.get(S,r,a);if(r===`props`){let e=n[g];if(e&&typeof e==`object`)return e}if(r===`$props`){let e=n[g];if(e&&typeof e==`object`)return e}let m=n[g];if(m&&typeof m==`object`&&i(m,r))return Reflect.get(m,r);if(r===`data`||r===`$state`)return x;if(r===`$computed`)return N;if(r===`$emit`)return(e,...t)=>{let r=I(n,a),i=r&&Reflect.get(r,`triggerEvent`);if(typeof i!=`function`)return;let{detail:c,options:l}=s(t);return i.call(r,o(e),c,l)};if(r===`$nextTick`)return async t=>{await e();let r=I(n,a),i=r&&Reflect.get(r,f);if(i&&(typeof i==`object`||typeof i==`function`)&&`then`in i&&typeof i.then==`function`&&await i,t)return t.call(B)};if(r===`$set`)return(e,t,n)=>(Reflect.set(e,t,n),n);if(r===`$delete`)return(e,t)=>Reflect.deleteProperty(e,t);if(r===`$slots`){var c;return(c=t(n).$slots)==null?Object.freeze(Object.create(null)):c}if(r===`$refs`){var l;return(l=t(n).$refs)==null?Object.create(null):l}if(r===`$parent`)return z(I(n,a));if(r===`$options`){var u,p;let e=I(n,a);return{name:(u=(p=e==null?void 0:e[d])==null?e==null?void 0:e.name:p)==null?e==null?void 0:e.is:u}}if(i(F,r))return Reflect.get(F,r);if(i(O,r))return O[r];if(k[r])return k[r].value;if(i(T.globalProperties,r))return T.globalProperties[r];let h=R(I(n,a),r);if(h.found)return h.value}if(!Reflect.has(n,r)){let e=I(n,a);if(e&&Reflect.has(e,r)){let t=Reflect.get(e,r);return typeof t==`function`?t.bind(e):t}}let m=Reflect.get(n,r,a);return typeof r==`string`&&i(S,r)?Reflect.get(S,r,a):m},set(e,t,r,o){if(typeof t==`string`&&k[t])return a(A,t,r),!0;if(i(S,t)){let e=Reflect.get(S,t,o);return n(e)&&!n(r)?(e.value=r,!0):Reflect.set(S,t,r,o)}if(i(F,t))return Reflect.set(F,t,r);if(Reflect.has(e,t)){var s;let a=Reflect.get(e,t,o);return n(a)&&!n(r)?(a.value=r,!0):i((s=e[g])==null?{}:s,t)?Reflect.set(S,t,r,o):Reflect.set(e,t,r,o)}return Reflect.set(F,t,r)},has(e,t){if(t===`data`||t===`$emit`||t===`$nextTick`||t===`$set`||t===`$delete`||t===`$slots`||t===`$refs`||t===`$parent`||t===`$options`||typeof t==`string`&&(i(S,t)||k[t]||i(O,t))||i(F,t))return!0;let n=I(e,e);return typeof t==`string`&&R(n,t).found||n&&Reflect.has(n,t)?!0:Reflect.has(e,t)},ownKeys(e){let t=new Set;return Reflect.ownKeys(e).forEach(e=>{t.add(e)}),Reflect.ownKeys(S).forEach(e=>{t.add(e)}),Reflect.ownKeys(F).forEach(e=>t.add(e)),Object.keys(O).forEach(e=>t.add(e)),Object.keys(k).forEach(e=>t.add(e)),[...t]},getOwnPropertyDescriptor(e,t){if(typeof t==`string`&&i(S,t))return Object.getOwnPropertyDescriptor(S,t);if(i(F,t))return Object.getOwnPropertyDescriptor(F,t);if(Reflect.has(e,t))return Object.getOwnPropertyDescriptor(e,t);if(typeof t==`string`){if(t===`data`)return{configurable:!0,enumerable:!1,get(){return x}};if(k[t])return{configurable:!0,enumerable:!0,get(){return k[t].value},set(e){a(A,t,e)}};if(i(O,t))return{configurable:!0,enumerable:!1,value:O[t]}}}});return Object.keys(w).forEach(e=>{let t=w[e];if(typeof t==`function`){O[e]=(...e)=>t.apply(B,e);return}e===p&&t&&typeof t==`object`&&(O[e]=t)}),L(`triggerEvent`),L(`createSelectorQuery`),L(`createIntersectionObserver`),L(`setData`),Object.keys(C).forEach(e=>{let t=C[e];if(typeof t==`function`)k[e]=M(e,()=>t.call(B));else{var n,r;let i=(n=t.get)==null?void 0:n.bind(B);if(!i)throw Error(`计算属性 "${e}" 需要提供 getter`);let a=(r=t.set)==null?void 0:r.bind(B);a?(A[e]=a,k[e]=M(e,i,a)):k[e]=M(e,i)}}),{boundMethods:O,computedRefs:k,computedSetters:A,dirtyComputedKeys:j,computedProxy:N,publicInstance:B,touchSetupMethodsVersion(){P.value+=1}}}export{b as createRuntimeContext};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function e(e){return e!==`patch`&&e!==`diff`}function t(t){if(t!==`off`)return n=>{if(t===`fallback`&&!e(n.reason))return;let
|
|
1
|
+
function e(e){return e!==`patch`&&e!==`diff`}function t(t){if(t!==`off`)return n=>{var r;if(t===`fallback`&&!e(n.reason))return;let i=typeof n.bytes==`number`?n.bytes:n.estimatedBytes,a=typeof i==`number`?`${i}B`:`unknown`,o=[`mode=${n.mode}`,`reason=${n.reason}`,`pending=${n.pendingPatchKeys}`,`keys=${n.payloadKeys}`,`bytes=${a}`];if(typeof n.revision==`number`&&o.push(`revision=${n.revision}`),typeof n.committedRevision==`number`&&o.push(`committedRevision=${n.committedRevision}`),typeof n.mergedSiblingParents==`number`&&o.push(`mergedParents=${n.mergedSiblingParents}`),typeof n.computedDirtyKeys==`number`&&o.push(`computedDirty=${n.computedDirtyKeys}`),typeof n.flushCount==`number`&&o.push(`flushes=${n.flushCount}`),typeof n.windowMs==`number`&&o.push(`window=${n.windowMs}ms`),n.targetLabel&&o.push(`target=${n.targetLabel}`),(r=n.bindings)!=null&&r.length){let e=n.bindings.map(e=>{var t;let n=(t=e.sourceLocation)==null?void 0:t.start;return n?`${e.id}@${e.sourceFile}:${n.line}:${n.column}`:`${e.id}@${e.sourceFile}`});o.push(`bindings=${e.join(`,`)}`)}n.message&&o.push(`message=${n.message}`);let s=`[wevu:setData] ${o.join(` `)}`;if(e(n.reason)){console.warn(s);return}console.info(s)}}export{t as createDiagnosticsLogger};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{queueJob as e}from"../../scheduler.mjs";import{effect as t,stop as n}from"../../reactivity/core.mjs";import{
|
|
1
|
+
import{queueJob as e}from"../../scheduler.mjs";import{effect as t,stop as n}from"../../reactivity/core.mjs";import{touchReactive as r}from"../../reactivity/reactive/patch.mjs";import{shallowReactive as i}from"../../reactivity/reactive/shallow.mjs";import{isReactive as a,reactive as o}from"../../reactivity/reactive.mjs";import{watch as ee}from"../../reactivity/watch.mjs";import{requireRuntimeCapability as s}from"../capabilities.mjs";import{hasOwn as c}from"../../utils.mjs";import{createBindModel as te}from"../bindModel.mjs";import{hasTrackableSetupBinding as ne,touchSetupBinding as re}from"../setupTracking.mjs";import{createRuntimeContext as ie}from"./context.mjs";import{createDiagnosticsLogger as l}from"./diagnostics.mjs";import{createSetDataScheduler as u}from"./setData/scheduler.mjs";import{resolveSetDataOptions as ae}from"./setDataOptions.mjs";import{WEVU_ATTRS_KEY as oe,WEVU_PROPS_DERIVED_KEYS_KEY as d,WEVU_PROPS_KEY as f,WEVU_SETUP_STATE_KEY as p}from"@weapp-core/constants";function m(e,t){let n=(()=>{e()});return n.stop=()=>n(),n.pause=()=>{var e;t==null||(e=t.pause)==null||e.call(t)},n.resume=()=>{var e;t==null||(e=t.resume)==null||e.call(t)},n}function se(e){return typeof e==`function`?e():e==null?{}:e}function h(h){let{data:ce,resolvedComputed:le,resolvedMethods:ue,appConfig:de,setDataOptions:g,bindingManifest:_}=h;return h=>{var v;(g==null?void 0:g.strategy)===`patch`&&s(`patchStrategy`,`createRuntimeMount(setData.strategy="patch")`);let y=se(ce),b=h==null?void 0:h.__wevu_initialProps;if(y&&typeof y==`object`&&!c(y,f))try{Object.defineProperty(y,f,{value:i(Object.create(null)),configurable:!0,enumerable:!1,writable:!1})}catch(e){}let x=y&&typeof y==`object`?y[f]:void 0;x&&typeof x==`object`&&b&&typeof b==`object`&&Object.assign(x,b);let S=o(y),C=o(Object.create(null)),w=h==null?void 0:h.__wevu_snapshotOmitKeys,fe=!!(h!=null&&h.__wevu_deferInitialSnapshot),T=h==null?void 0:h.__wevu_initialSnapshot,E=h==null?void 0:h.__wevu_initialState,D=new Set(w instanceof Set||Array.isArray(w)?w:[]);if(y&&typeof y==`object`&&!c(y,p))try{Object.defineProperty(y,p,{value:C,configurable:!0,enumerable:!1,writable:!1})}catch(e){}if(y&&typeof y==`object`&&E&&typeof E==`object`)for(let[e,t]of Object.entries(E))D.has(e)||(y[e]=t);let pe=le,me=ue,O=!0,k=[],A=new Set;Object.keys(S).forEach(e=>{let t=S[e];ne(t)&&A.add(e)});let{includeComputed:j,setDataStrategy:M,maxPatchKeys:N,maxPayloadBytes:P,mergeSiblingThreshold:F,mergeSiblingMaxInflationRatio:I,mergeSiblingMaxParentBytes:L,mergeSiblingSkipArray:R,computedCompare:z,computedCompareMaxDepth:he,computedCompareMaxKeys:ge,prelinkMaxDepth:_e,prelinkMaxKeys:ve,debug:B,diagnostics:V,loopWarning:H,debugWhen:ye,debugSampleRate:be,elevateTopKeyThreshold:xe,toPlainMaxDepth:Se,toPlainMaxKeys:Ce,includeFunctions:we,functionPaths:Te,shouldIncludeKey:Ee}=ae(g),U=l(V),W=V===`off`&&H?l(`fallback`):void 0,De=B||U||W?e=>{if(typeof B==`function`)try{B(e)}catch(e){}U==null||U(e),e.reason===`loopWarning`&&(W==null||W(e))}:void 0,Oe=V===`always`?`always`:ye,{boundMethods:ke,computedRefs:G,computedSetters:Ae,dirtyComputedKeys:je,computedProxy:Me,publicInstance:K,touchSetupMethodsVersion:q}=ie({state:S,setupState:C,computedDefs:pe,methodDefs:me,appConfig:de,includeComputed:j,setDataStrategy:M}),J=h==null?{setData:()=>{}}:h,Ne=J.__wevu_targetLabel,Y,X={state:S,setupState:C,snapshotOmitKeys:D,computedRefs:G,dirtyComputedKeys:je,includeComputed:j,setDataStrategy:M,computedCompare:z,computedCompareMaxDepth:he,computedCompareMaxKeys:ge,currentAdapter:J,shouldIncludeKey:Ee,maxPatchKeys:N,maxPayloadBytes:P,mergeSiblingThreshold:F,mergeSiblingMaxInflationRatio:I,mergeSiblingMaxParentBytes:L,mergeSiblingSkipArray:R,elevateTopKeyThreshold:xe,prelinkMaxDepth:_e,prelinkMaxKeys:ve,toPlainMaxDepth:Se,toPlainMaxKeys:Ce,includeFunctions:we,functionPaths:Te,debug:De,debugWhen:Oe,debugSampleRate:be,bindingManifest:_,loopWarning:H,targetLabel:Ne,runTracker:()=>Y==null?void 0:Y(),isMounted:()=>O,initialSnapshot:T&&typeof T==`object`?T:void 0,initialState:E&&typeof E==`object`?E:void 0},Z=M===`patch`?s(`patchStrategy`,`createRuntimeMount(setData.strategy="patch")`).createScheduler(X):u(X),Q=()=>Z.job();Y=t(()=>{r(S);let e=S[f];a(e)&&r(e);let t=S[oe];a(t)&&r(t),A.forEach(e=>{var t;let n=(t=C[e])==null?S[e]:t;re(n)})},{lazy:!0,scheduler:()=>e(Q)}),fe||Q(),k.push(m(()=>n(Y))),(v=Z.start)==null||v.call(Z),Z.dispose&&k.push(m(Z.dispose));function Pe(e,t,n){let r=ee(e,(e,n)=>t(e,n),n);return k.push(r),m(()=>{r();let e=k.indexOf(r);e>=0&&k.splice(e,1)},r)}let $={get state(){return S},get setupState(){return C},get proxy(){return K},get methods(){return ke},get computed(){return Me},get adapter(){return J},bindModel:te(K,S,G,Ae,C),watch:Pe,snapshot:()=>Z.snapshot(),unmount:()=>{var e;if(O){O=!1,(e=Z.dispose)==null||e.call(Z);try{var t;(t=J.__wevu_disposeSetData)==null||t.call(J)}catch(e){}k.forEach(e=>{try{e()}catch(e){}}),k.length=0}}};try{Object.defineProperty($,"__wevu_touchSetupMethodsVersion",{value:q,configurable:!0,enumerable:!1,writable:!1})}catch(e){$.__wevu_touchSetupMethodsVersion=q}try{Object.defineProperty($,"__wevu_flushSetupSnapshotSync",{value:Q,configurable:!0,enumerable:!1,writable:!1})}catch(e){$.__wevu_flushSetupSnapshotSync=Q}try{Object.defineProperty($,"__wevu_cloneDispatchedSnapshot",{value:Z.cloneLatestSnapshot,configurable:!0,enumerable:!1,writable:!1})}catch(e){$.__wevu_cloneDispatchedSnapshot=Z.cloneLatestSnapshot}try{Object.defineProperty($,"__wevu_trackSetupReactiveKey",{value:e=>{A.add(e)},configurable:!0,enumerable:!1,writable:!1})}catch(e){$.__wevu_trackSetupReactiveKey=e=>{A.add(e)}}try{Object.defineProperty($,d,{value:D,configurable:!0,enumerable:!1,writable:!1})}catch(e){$[d]=D}return $}}export{h as createRuntimeMount};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { MiniProgramAdapter } from "../../types/miniprogram.mjs";
|
|
2
|
+
import "../../types.mjs";
|
|
3
|
+
//#region src/runtime/app/setData/commitTracker.d.ts
|
|
4
|
+
export type SetDataPayload = Record<string, unknown>;
|
|
5
|
+
export type SetDataAdapterSettlement = 'committed' | 'failed' | 'abandoned';
|
|
6
|
+
export type SetDataAdapterSettler = (settlement: SetDataAdapterSettlement, cause?: unknown) => void;
|
|
7
|
+
export interface CommitAwareSetDataAdapter extends MiniProgramAdapter {
|
|
8
|
+
__wevu_dispatchSetData?: (payload: SetDataPayload, settle: SetDataAdapterSettler) => void;
|
|
9
|
+
__wevu_reportSetDataError?: (error: Error) => void;
|
|
10
|
+
__wevu_disposeSetData?: () => void;
|
|
11
|
+
}
|
|
12
|
+
//#endregion
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{cloneSnapshotValue as e}from"./snapshot.mjs";const t=Promise.resolve();function n(e){return!(!e||typeof e!=`object`&&typeof e!=`function`||typeof e.then!=`function`)}function r(e){try{return e instanceof Error?e.message:String(e)}catch(e){return`<unprintable cause>`}}function i(e,t,n){let i=r(n),a=Error(`[wevu] setData commit failed (${e===`adapter`?`adapter failure`:`out-of-order completion`}, revision=${t.revision}, mode=${t.mode}, kind=${t.kind}): ${i}`);return a.cause=n,a}function a(e){let t=!1,r=!0,i=!1,a=!1,o=(n,r)=>{t||(t=!0,e.settle(n,r))},s=()=>{if(r){i=!0;return}a||e.completion===`callback`&&o(`committed`)};try{let t=e.invoke(s),c=n(t);if(a=c,r=!1,c){t.then(()=>o(`committed`),e=>o(`failed`,e));return}(e.completion===`return`||i)&&o(`committed`)}catch(e){r=!1,o(`failed`,e)}}function o(n){let r=n.initialSnapshot?e(n.initialSnapshot):{},o=new Set(Object.keys(r)),s=0,c=0,l,u;function d(e){return e.inLedger?(e.commitPromise||(e.commitPromise=new Promise(t=>{e.resolveCommit=t})),e.commitPromise):t}let f={preparedSnapshot:r,dispatchedSnapshot:r,committedSnapshot:r,revision:0,committedRevision:0,failedRevision:void 0,needsFullSnapshot:!1,get commitPromise(){return u?d(u):t},disposed:!1},p=(e,t,r)=>{let a=i(e,t,r);try{n.onFailure({kind:e,revision:t.revision,committedRevision:f.committedRevision,mode:t.mode,cause:r,error:a,payloadKeys:t.payloadKeys,pendingPatchKeys:t.pendingPatchKeys})}catch(e){}},m=e=>{var t;(t=e.resolveCommit)==null||t.call(e),e.resolveCommit=void 0},h=e=>{let t=l;for(;t;){let n=t.next;if(t.inLedger=!1,t.next=void 0,m(t),t===e){l=n,l||(u=void 0);return}t=n}},g=()=>{let e=l;for(;e;){let t=e.next;e.inLedger=!1,e.next=void 0,e.physicalSettled||(e.status=`abandoned`),m(e),e=t}l=void 0,u=void 0,s+=1,c=f.committedRevision},_=()=>{f.needsFullSnapshot=!0},v=(e,t,n)=>{t.status=`failed`,f.failedRevision=t.revision,_(),g(),p(e,t,n)},y=()=>{for(;(l==null?void 0:l.status)===`succeeded`;){let e=l;f.committedSnapshot=e.snapshot,f.committedRevision=e.revision,l=e.next,e.inLedger=!1,e.next=void 0,m(e)}l||(u=void 0)},b=e=>{f.committedSnapshot=e.snapshot,f.committedRevision=e.revision,f.failedRevision=void 0,f.needsFullSnapshot=!1,h(e),y()},x=(e,t,n)=>{if(t===`failed`){p(`adapter`,e,n);return}t===`committed`&&f.committedRevision>e.revision&&(l&&g(),_(),p(`out-of-order`,e,`revision ${e.revision} completed after committed revision ${f.committedRevision}`))},S=(e,t,n)=>{if(!(f.disposed||e.physicalSettled)){if(e.physicalSettled=!0,!e.inLedger||e.epoch!==s){x(e,t,n);return}if(t===`abandoned`){e.status=`abandoned`,_(),g();return}if(t===`failed`){v(`adapter`,e,n);return}if(e.status=`succeeded`,c>e.revision){v(`out-of-order`,e,`revision ${e.revision} completed after revision ${c}`);return}if(c=e.revision,e.kind===`full`){b(e);return}y()}};return{state:f,dispatch:t=>{if(f.disposed)return f.revision;let r=f.revision+1;f.revision=r,f.preparedSnapshot=t.snapshot;let i={revision:r,epoch:s,mode:t.mode,kind:t.kind,snapshot:t.snapshot,payloadKeys:Object.keys(t.payload).length,pendingPatchKeys:t.pendingPatchKeys,status:`dispatched`,physicalSettled:!1,inLedger:!0,next:void 0};u?u.next=i:l=i,u=i,f.dispatchedSnapshot=t.snapshot;for(let e of Object.keys(t.payload))o.add(e.split(`.`,1)[0]);let c=(e,t)=>{S(i,e,t)},d=e(t.payload);if(typeof n.adapter.__wevu_dispatchSetData==`function`)try{n.adapter.__wevu_dispatchSetData(d,c)}catch(e){c(`failed`,e)}else a({invoke:()=>{var e,t;return(e=(t=n.adapter).setData)==null?void 0:e.call(t,d)},completion:`return`,settle:c});return r},createFullPayload:e=>{let t={},n=new Set(Object.keys(e));for(let[n,r]of Object.entries(e))t[n]=r===void 0?null:r;for(let e of o)n.has(e)||(t[e]=null);return t},dispose:()=>{f.disposed||(f.disposed=!0,g())}}}export{o as createSetDataCommitTracker,a as observeSetDataCompletion};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{toPlain as e}from"../../diff.mjs";import{
|
|
1
|
+
import{toPlain as e}from"../../diff.mjs";import{applySnapshotUpdate as t,cloneSnapshotValue as n,isDeepEqualValue as r,isShallowEqualValue as i,normalizeSetDataValue as a}from"./snapshot.mjs";import{checkPayloadSize as o,collapsePayload as s,mergeSiblingPayload as c}from"./payload.mjs";function l(l){let{state:u,computedRefs:d,dirtyComputedKeys:f,includeComputed:p,computedCompare:m,computedCompareMaxDepth:h,computedCompareMaxKeys:g,shouldIncludeKey:_,maxPatchKeys:v,maxPayloadBytes:y,mergeSiblingThreshold:b,mergeSiblingMaxInflationRatio:x,mergeSiblingMaxParentBytes:S,mergeSiblingSkipArray:C,elevateTopKeyThreshold:w,toPlainMaxDepth:T,toPlainMaxKeys:E,includeFunctions:D=!1,functionPaths:O,plainCache:k,plainCacheEligibility:A,pendingPatches:j,fallbackTopKeys:M,dispatchedSnapshot:N,dispatchedComputedSnapshot:P}=l;if(j.size>v){let e=j.size;return j.clear(),f.clear(),{type:`fallback`,reason:`maxPatchKeys`,debug:{mode:`diff`,reason:`maxPatchKeys`,pendingPatchKeys:e,payloadKeys:0}}}let F=new WeakMap,I=new Map,L=Object.create(null),R=[...j.entries()];if(Number.isFinite(w)&&w>0){let e=new Map;for(let[t]of R){var z;let n=t.split(`.`,1)[0];e.set(n,((z=e.get(n))==null?0:z)+1)}for(let[t,n]of e)n>=w&&M.add(t)}let B=R.filter(([e])=>{for(let t of M)if(e===t||e.startsWith(`${t}.`))return!1;return!0}),V=new Map(B);j.clear();let H=e=>{let t=e.split(`.`).filter(Boolean),n=u;for(let e of t){if(typeof n!=`object`||!n)return n;n=Reflect.get(n,e)}return n},U=t=>{if(I.has(t))return I.get(t);let n=a(e(H(t),F,{cache:k,cacheEligibility:A,maxDepth:T,maxKeys:E,includeFunctions:D,functionPaths:O,_path:t}));return I.set(t,n),n};if(M.size){for(let e of M)_(e)&&(L[e]=U(e),V.set(e,{kind:`property`,op:`set`}));M.clear()}for(let[e,t]of B)L[e]=(t.kind===`array`?`set`:t.op)===`delete`?null:U(e);let W=0,G=Object.create(null);if(p&&f.size){let t=[...f];f.clear(),W=t.length;for(let o of t){if(!_(o))continue;let t=e(d[o].value,F,{cache:k,cacheEligibility:A,maxDepth:T,maxKeys:E,includeFunctions:D,functionPaths:O,_path:o}),s=P[o];(m===`deep`?r(s,t,h,{keys:g}):m===`shallow`?i(s,t):Object.is(s,t))||(L[o]=a(t),G[o]=n(t))}}let K=s(L),q=0;if(b){let e=c({input:K,entryMap:V,getPlainByPath:U,mergeSiblingThreshold:b,mergeSiblingSkipArray:C,mergeSiblingMaxParentBytes:S,mergeSiblingMaxInflationRatio:x});q=e.merged,K=s(e.out)}let J=o(K,y),Y=Object.keys(K).length,X={mode:J.fallback?`diff`:`patch`,reason:J.fallback?`maxPayloadBytes`:`patch`,pendingPatchKeys:B.length,payloadKeys:Y,mergedSiblingParents:q||void 0,computedDirtyKeys:W||void 0,estimatedBytes:J.estimatedBytes,bytes:J.bytes};if(J.fallback)return{type:`fallback`,reason:`maxPayloadBytes`,debug:X};if(!Y)return;let Z={...N},Q=new WeakSet;for(let[e,n]of Object.entries(K)){var $;let r=V.get(e);t(Z,e,n,(r==null?void 0:r.kind)===`array`||($=r==null?void 0:r.op)==null?`set`:$,{cloneValue:!1,clonedParents:Q})}return{type:`patch`,payload:K,snapshot:Z,computedUpdates:Object.keys(G).length?G:void 0,debug:X}}export{l as preparePatchUpdate};
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import { SetDataDebugInfo } from "../../types/setData.mjs";
|
|
2
|
+
import "../../types.mjs";
|
|
3
|
+
import { CommitAwareSetDataAdapter } from "./commitTracker.mjs";
|
|
4
|
+
import "../../capabilities.mjs";
|
|
5
|
+
import { WevuRuntimeBindingManifestV1 } from "@weapp-core/constants";
|
|
6
|
+
//#region src/runtime/app/setData/scheduler.d.ts
|
|
7
|
+
export interface SetDataSchedulerOptions {
|
|
8
|
+
state: Record<string, any>;
|
|
9
|
+
setupState?: Record<string, any>;
|
|
10
|
+
snapshotOmitKeys?: Set<string>;
|
|
11
|
+
computedRefs: Record<string, {
|
|
12
|
+
value: any;
|
|
13
|
+
}>;
|
|
14
|
+
dirtyComputedKeys: Set<string>;
|
|
15
|
+
includeComputed: boolean;
|
|
16
|
+
setDataStrategy: 'diff' | 'patch';
|
|
17
|
+
computedCompare: 'reference' | 'shallow' | 'deep';
|
|
18
|
+
computedCompareMaxDepth: number;
|
|
19
|
+
computedCompareMaxKeys: number;
|
|
20
|
+
currentAdapter: CommitAwareSetDataAdapter;
|
|
21
|
+
shouldIncludeKey: (key: string) => boolean;
|
|
22
|
+
maxPatchKeys: number;
|
|
23
|
+
maxPayloadBytes: number;
|
|
24
|
+
mergeSiblingThreshold: number;
|
|
25
|
+
mergeSiblingMaxInflationRatio: number;
|
|
26
|
+
mergeSiblingMaxParentBytes: number;
|
|
27
|
+
mergeSiblingSkipArray: boolean;
|
|
28
|
+
elevateTopKeyThreshold: number;
|
|
29
|
+
prelinkMaxDepth?: number;
|
|
30
|
+
prelinkMaxKeys?: number;
|
|
31
|
+
toPlainMaxDepth: number;
|
|
32
|
+
toPlainMaxKeys: number;
|
|
33
|
+
includeFunctions?: boolean;
|
|
34
|
+
functionPaths: string[];
|
|
35
|
+
debug: ((info: SetDataDebugInfo) => void) | undefined;
|
|
36
|
+
debugWhen: 'fallback' | 'always';
|
|
37
|
+
debugSampleRate: number;
|
|
38
|
+
bindingManifest?: WevuRuntimeBindingManifestV1;
|
|
39
|
+
loopWarning: false | {
|
|
40
|
+
sampleWindowMs: number;
|
|
41
|
+
maxFlushes: number;
|
|
42
|
+
coolDownMs: number;
|
|
43
|
+
};
|
|
44
|
+
targetLabel?: string;
|
|
45
|
+
runTracker: () => void;
|
|
46
|
+
isMounted: () => boolean;
|
|
47
|
+
initialSnapshot?: Record<string, any>;
|
|
48
|
+
initialState?: Record<string, any>;
|
|
49
|
+
}
|
|
50
|
+
//#endregion
|