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
|
@@ -1 +1 @@
|
|
|
1
|
-
import{toRaw as e}from"../../../reactivity/reactive/shared.mjs";import{getReactiveVersion as t,isReactive as n}from"../../../reactivity/reactive.mjs";import{isRef as r}from"../../../reactivity/ref.mjs";import{hasOwn as i}from"../../../utils.mjs";import{hasTrackableSetupBinding as a}from"../../setupTracking.mjs";import{diffSnapshots as
|
|
1
|
+
import{toRaw as e}from"../../../reactivity/reactive/shared.mjs";import{getReactiveVersion as t,isReactive as n}from"../../../reactivity/reactive.mjs";import{isRef as r}from"../../../reactivity/ref.mjs";import{hasOwn as i}from"../../../utils.mjs";import{hasTrackableSetupBinding as a}from"../../setupTracking.mjs";import{resolveBindingDiagnostics as o}from"../../bindingManifest.mjs";import{diffSnapshots as s,toPlain as c}from"../../diff.mjs";import{collectSnapshot as l}from"./snapshot.mjs";import{createSetDataCommitTracker as u}from"./commitTracker.mjs";function d(d){let{state:f,setupState:p,snapshotOmitKeys:m,computedRefs:h,dirtyComputedKeys:g,includeComputed:_,setDataStrategy:v,currentAdapter:y,shouldIncludeKey:b,toPlainMaxDepth:x,toPlainMaxKeys:S,includeFunctions:C=!1,functionPaths:w,debug:T,debugWhen:E,debugSampleRate:D,bindingManifest:O,loopWarning:k,targetLabel:A,runTracker:j,isMounted:M,initialSnapshot:N,initialState:P}=d,F=new WeakMap,I=new WeakMap,L={},R=Object.create(null),z=Object.create(null),B=[],V=-1/0,H=new Set(P&&typeof P==`object`?Object.keys(P):[]),U=e=>{if(Object.prototype.toString.call(e)!==`[object Object]`)return!1;let t=Object.getPrototypeOf(e);return t===null||t===Object.prototype},W=(e,t)=>{if(Object.is(e,t))return!0;if(Array.isArray(e)&&Array.isArray(t))return e.length===t.length&&e.every((e,n)=>W(e,t[n]));if(U(e)&&U(t)){let n=Object.keys(e),r=Object.keys(t);return n.length===r.length&&n.every(n=>i(t,n)&&W(e[n],t[n]))}return!1},G=i=>{let o=r(i)?i.value:i;if(typeof o!=`object`||!o)return o;if(!n(o)&&a(o))return{snapshot:c(o,new WeakMap,{cacheEligibility:I,maxDepth:x,maxKeys:S,includeFunctions:C,functionPaths:w})};let s=n(o)?e(o):o;return{raw:s,version:t(s)}},K=(e,t)=>Object.is(e,t)?!0:!e||!t||typeof e!=`object`||typeof t!=`object`||!i(e,`raw`)||!i(t,`raw`)?e&&t&&typeof e==`object`&&typeof t==`object`&&i(e,`snapshot`)&&i(t,`snapshot`)?W(e.snapshot,t.snapshot):!1:e.raw===t.raw&&e.version===t.version,q=e=>b(e)&&!(m!=null&&m.has(e));if(N)for(let[e,t]of Object.entries(N))q(e)&&(L[e]=t);let J=()=>{if(!N)return;let t=n(f)?e(f):f,r=p&&typeof p==`object`?n(p)?e(p):p:void 0;for(let e of Object.keys(N))if(q(e)){if(r&&i(r,e)){R[e]=G(r[e]);continue}if(i(t,e)){if(H.has(e))continue;t[e]=N[e],R[e]=G(t[e])}}},ee=t=>{let a=[],o=p&&typeof p==`object`?n(p)?e(p):p:void 0;for(let n of new Set([...Object.keys(f),...o?Object.keys(o):[]])){if(!q(n))continue;let s=o&&i(o,n)?o[n]:f[n],c=r(s)?s.value:s;c&&typeof c==`object`&&e(c)===t&&a.push(n)}return a},Y=(e,t)=>{if(!T)return;let n=e.reason!==`patch`&&e.reason!==`diff`;if(E===`fallback`&&!n||e.reason!==`commitFailure`&&D<1&&Math.random()>D)return;let r=e;if(O){let n=typeof t==`function`?t():t==null?[]:t,i=e.reason===`needsFullSnapshot`||e.reason===`maxPatchKeys`||e.reason===`maxPayloadBytes`;r={...e,bindings:o(O,n,i)}}try{T(r)}catch(e){}},X=u({initialSnapshot:L,adapter:y,onFailure:e=>{Y({mode:e.mode,reason:`commitFailure`,pendingPatchKeys:e.pendingPatchKeys,payloadKeys:e.payloadKeys,revision:e.revision,committedRevision:e.committedRevision,targetLabel:A,message:e.error.message});try{var t;(t=y.__wevu_reportSetDataError)==null||t.call(y,e.error)}catch(e){}}}),te=(e=0,t)=>{if(!k)return;let n=Date.now();B.push(n);let r=n-k.sampleWindowMs;for(;B.length&&B[0]<r;)B.shift();B.length<=k.maxFlushes||k.coolDownMs>0&&n-V<k.coolDownMs||(V=n,Y({mode:v,reason:`loopWarning`,pendingPatchKeys:e,payloadKeys:0,computedDirtyKeys:_?g.size:0,flushCount:B.length,windowMs:k.sampleWindowMs,targetLabel:A,message:`${A?`${A} `:``}疑似运行时更新循环:${B.length} 次 setData flush/${k.sampleWindowMs}ms`},t))},Z=()=>l({state:f,setupState:p,computedRefs:h,includeComputed:_,shouldIncludeKey:q,plainCache:F,plainCacheEligibility:I,toPlainMaxDepth:x,toPlainMaxKeys:S,includeFunctions:C,functionPaths:w});J();let ne=()=>{let t=n(f)?e(f):f,r=p&&typeof p==`object`?n(p)?e(p):p:void 0,a=X.state.dispatchedSnapshot,o={...a},s=new WeakMap,l=new Set,u=new Set,d=new Set;for(let e of new Set([...Object.keys(t),...r?Object.keys(r):[]])){if(!q(e))continue;l.add(e);let n=r&&i(r,e)?r:t,u=G(n[e]),f=R[e];f&&u&&typeof f==`object`&&typeof u==`object`&&i(f,`raw`)&&i(u,`raw`)&&Array.isArray(f.raw)&&Array.isArray(u.raw)&&f.raw!==u.raw&&d.add(e),(!K(f,u)||!i(a,e))&&(o[e]=c(n[e],s,{cache:F,cacheEligibility:I,maxDepth:x,maxKeys:S,includeFunctions:C,functionPaths:w,_path:e})),R[e]=u}for(let e of Object.keys(R))l.has(e)||(delete R[e],(!_||!i(h,e))&&delete o[e]);if(!_){for(let e of Object.keys(z))delete z[e];return{snapshot:o,replacedTopLevelKeys:d}}for(let e of Object.keys(h)){if(!q(e))continue;u.add(e);let t=h[e].value,n=G(t);(!K(z[e],n)||!i(a,e))&&(o[e]=c(t,s,{cache:F,cacheEligibility:I,maxDepth:x,maxKeys:S,includeFunctions:C,functionPaths:w,_path:e})),z[e]=n}for(let e of Object.keys(z))u.has(e)||(delete z[e],(!i(t,e)||!q(e))&&delete o[e]);return{snapshot:o,replacedTopLevelKeys:d}},Q=(e=`diff`,t=0,n)=>{var r;let i=v===`diff`?ne():void 0,a=(r=i==null?void 0:i.snapshot)==null?Z():r,o=X.state.dispatchedSnapshot,c=X.state.needsFullSnapshot,l=c?X.createFullPayload(a):i?(()=>{let e={};for(let t of i.replacedTopLevelKeys)e[t]=a[t];return{...s(o,a,{skipKeys:i.replacedTopLevelKeys}),...e}})():s(o,a);n==null||n(a);let u=Object.keys(l).length;if(!u&&!c)return;let d=c?`needsFullSnapshot`:e;Y({mode:`diff`,reason:d,pendingPatchKeys:t,payloadKeys:u},Object.keys(l)),X.dispatch({mode:`diff`,kind:c?`full`:`delta`,reason:d,snapshot:a,payload:l,pendingPatchKeys:t})},$=(e=0,t)=>M()?(te(e,t),j(),!0):!1;return{collect:Z,emitDebug:Y,getLatestSnapshot:()=>X.state.dispatchedSnapshot,dispatchUpdate:X.dispatch,needsFullSnapshot:()=>X.state.needsFullSnapshot,job:e=>{if($())return Q(`diff`)},plainCache:F,plainCacheEligibility:I,prepareJob:$,resolveTopKeysByRoot:ee,runDiffUpdate:Q,shouldIncludeSnapshotKey:q,snapshot:()=>v===`patch`?Z():{...X.state.dispatchedSnapshot},cloneLatestSnapshot:()=>({...X.state.dispatchedSnapshot}),dispose:X.dispose}}export{d as createSetDataScheduler};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{toRaw as e}from"../../../reactivity/reactive/shared.mjs";import{isReactive as t}from"../../../reactivity/reactive.mjs";import{hasOwn as n}from"../../../utils.mjs";import{toPlain as r}from"../../diff.mjs";function i(e){if(typeof e!=`object`||!e)return!1;let t=Object.getPrototypeOf(e);return t===Object.prototype||t===null}function a(e){return e===void 0?null:e}function o(e){if(Array.isArray(e))return e.map(e=>o(e));if(!i(e))return e;let t={};for(let n of Object.keys(e))t[n]=o(e[n]);return t}function s(e,t){if(Object.is(e,t))return!0;if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(!Object.is(e[n],t[n]))return!1;return!0}if(!i(e)||!i(t))return!1;let r=Object.keys(e),a=Object.keys(t);if(r.length!==a.length)return!1;for(let i of r)if(!n(t,i)||!Object.is(e[i],t[i]))return!1;return!0}function c(e,t,r,a){if(Object.is(e,t))return!0;if(r<=0)return!1;if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(!c(e[n],t[n],r-1,a))return!1;return!0}if(!i(e)||!i(t))return!1;let o=Object.keys(e),s=Object.keys(t);if(o.length!==s.length)return!1;for(let i of o)if(--a.keys,a.keys<=0||!n(t,i)||!c(e[i],t[i],r-1,a))return!1;return!0}function l(e,t,r,i
|
|
1
|
+
import{toRaw as e}from"../../../reactivity/reactive/shared.mjs";import{isReactive as t}from"../../../reactivity/reactive.mjs";import{hasOwn as n}from"../../../utils.mjs";import{toPlain as r}from"../../diff.mjs";function i(e){if(typeof e!=`object`||!e)return!1;let t=Object.getPrototypeOf(e);return t===Object.prototype||t===null}function a(e){return e===void 0?null:e}function o(e){if(Array.isArray(e))return e.map(e=>o(e));if(!i(e))return e;let t={};for(let n of Object.keys(e))t[n]=o(e[n]);return t}function s(e,t){if(Object.is(e,t))return!0;if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(!Object.is(e[n],t[n]))return!1;return!0}if(!i(e)||!i(t))return!1;let r=Object.keys(e),a=Object.keys(t);if(r.length!==a.length)return!1;for(let i of r)if(!n(t,i)||!Object.is(e[i],t[i]))return!1;return!0}function c(e,t,r,a){if(Object.is(e,t))return!0;if(r<=0)return!1;if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(!c(e[n],t[n],r-1,a))return!1;return!0}if(!i(e)||!i(t))return!1;let o=Object.keys(e),s=Object.keys(t);if(o.length!==s.length)return!1;for(let i of o)if(--a.keys,a.keys<=0||!n(t,i)||!c(e[i],t[i],r-1,a))return!1;return!0}function l(e,t,n,r,i){var a;let s=(a=i==null?void 0:i.cloneValue)==null||a,c=i==null?void 0:i.clonedParents,l=t.split(`.`).filter(Boolean);if(!l.length)return;c==null||c.add(e);let u=e;for(let e=0;e<l.length-1;e++){let t=l[e],n=u[t];if(typeof n!=`object`||!n)u[t]={},c==null||c.add(u[t]);else if(c&&!c.has(n)){let e=Array.isArray(n)?n.slice():{...n};u[t]=e,c.add(e)}u=u[t]}let d=l[l.length-1];if(r===`delete`)try{delete u[d]}catch(e){u[d]=null}else u[d]=s?o(n):n}function u(n){let{state:i,setupState:a,computedRefs:o,includeComputed:s,shouldIncludeKey:c,plainCache:l,plainCacheEligibility:u,toPlainMaxDepth:d,toPlainMaxKeys:f,includeFunctions:p=!1,functionPaths:m=[]}=n,h=new WeakMap,g={},_=Number.isFinite(f)?{keys:f}:void 0,v=t(i)?e(i):i,y=a&&typeof a==`object`?t(a)?e(a):a:void 0,b=Object.keys(v),x=y?Object.keys(y):[],S=s?Object.keys(o):[];for(let e of b)c(e)&&(g[e]=r(v[e],h,{cache:l,cacheEligibility:u,maxDepth:d,includeFunctions:p,functionPaths:m,_budget:_,_path:e}));for(let e of x)c(e)&&(g[e]=r(y[e],h,{cache:l,cacheEligibility:u,maxDepth:d,includeFunctions:p,functionPaths:m,_budget:_,_path:e}));for(let e of S)c(e)&&(g[e]=r(o[e].value,h,{cache:l,cacheEligibility:u,maxDepth:d,includeFunctions:p,functionPaths:m,_budget:_,_path:e}));return g}export{l as applySnapshotUpdate,o as cloneSnapshotValue,u as collectSnapshot,c as isDeepEqualValue,i as isPlainObjectLike,s as isShallowEqualValue,a as normalizeSetDataValue};
|
package/dist/runtime/app.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{getMiniProgramGlobalObject as e}from"./platform.mjs";import{
|
|
1
|
+
import{getMiniProgramGlobalObject as e}from"./platform.mjs";import{INTERNAL_DEFAULTS_SCOPE_KEY as t,applyWevuAppDefaults as n}from"./defaults.mjs";import{isSetDataHighFrequencyWarningRequested as r,requireRuntimeCapability as i}from"./capabilities.mjs";import{ensureRuntimeAppProvides as a,setRuntimeAppProvidedValue as o}from"./provideContext.mjs";import{version as s}from"../version.mjs";import{resolveBindingManifest as c}from"./bindingManifest.mjs";import{createRuntimeMount as l}from"./app/mount.mjs";import{setPendingRuntimeAppRegistration as u}from"./app/pending.mjs";import{registerApp as d}from"./register/app.mjs";import{WEVU_BINDING_MANIFEST_KEY as f,WEVU_INLINE_HANDLER as p,WEVU_INLINE_MAP_KEY as m,WEVU_SCOPED_SLOT_OWNER_REQUIRED_KEY as h,WEVU_SLOT_OWNER_ID_KEY as g}from"@weapp-core/constants";function _(_){let v=_[t],{[t]:y,[f]:b,[h]:x,data:S,computed:C,methods:w,setData:T,watch:E,setup:D,...O}=v===`component`?_:n(_),k=c(b),A=w==null?{}:w,j=C==null?{}:C,M=x===!0||Array.isArray(T==null?void 0:T.pick)&&T.pick.includes(g),N=A,P=N[m];Object.prototype.hasOwnProperty.call(N,m)&&P&&typeof P==`object`&&Object.keys(P).length>0&&typeof N[p]!=`function`&&typeof O[p]!=`function`&&i(`inlineEvents`,`createApp(inline event metadata)`),(T==null?void 0:T.strategy)===`patch`&&i(`patchStrategy`,`createApp(setData.strategy="patch")`),r(T==null?void 0:T.highFrequencyWarning)&&i(`setDataHighFrequencyWarning`,`createApp(setData.highFrequencyWarning)`),M&&i(`scopedSlots`,`createApp(scoped-slot bindings)`);let F=new Set,I=new Set,L=!1,R={globalProperties:{}},z={mount:l({data:S,resolvedComputed:j,resolvedMethods:A,appConfig:R,setDataOptions:T,bindingManifest:k}),use(e,...t){if(!e||F.has(e))return z;if(F.add(e),typeof e==`function`)e(z,...t);else if(typeof e.install==`function`)e.install(z,...t);else throw TypeError(`插件必须是函数,或包含 install 方法的对象`);return z},provide(e,t){return o(z,e,t,{syncGlobal:v!==`component`}),z},onUnmount(e){if(typeof e!=`function`)throw TypeError(`onUnmount 只接受函数`);return L?(e(),z):(I.add(e),z)},unmount(){if(!L){L=!0;for(let e of I)e();I.clear()}},config:R,version:s};try{a(z),Object.defineProperty(z,"__wevuSetDataOptions",{value:T,configurable:!0,enumerable:!1,writable:!1}),Object.defineProperty(z,"__wevuHasTemplateRuntimeBindings",{value:M,configurable:!0,enumerable:!1,writable:!1})}catch(e){z.__wevuSetDataOptions=T,z.__wevuHasTemplateRuntimeBindings=M}let B=()=>{let t=e(),n=`__wevuAppRegistered`;t&&t[n]||(t&&(t[n]=!0),d(z,w==null?{}:w,E,D,O))};return v!==`component`&&typeof App==`function`?B():v!==`component`&&u({app:z,register:B}),z}export{_ as createApp};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const e={"exact-path":!0,"snapshot-fallback":!0,"top-level":!0};function t(e){return Array.isArray(e)&&e.every(e=>typeof e==`string`)}function n(e){return typeof e==`number`&&Number.isFinite(e)&&Number.isInteger(e)}function r(e){if(!e||typeof e!=`object`)return!1;let t=e;return n(t.offset)&&t.offset>=0&&n(t.line)&&t.line>=1&&n(t.column)&&t.column>=1}function i(e){if(!e||typeof e!=`object`)return!1;let t=e,n=t.start,i=t.end;return r(n)&&r(i)&&i.offset>=n.offset}function a(e){return Object.values(e).every(e=>e===!0)}function o(n){if(!n||typeof n!=`object`)return!1;let r=n;return typeof r.id==`string`&&r.id.length>0&&typeof r.outputPath==`string`&&r.outputPath.length>0&&(r.sourceFile===void 0||typeof r.sourceFile==`string`&&r.sourceFile.length>0)&&(r.updateMode===void 0||typeof r.updateMode==`string`&&e[r.updateMode]===!0)&&(r.sourceRoots===void 0||t(r.sourceRoots))&&(r.sourceLocation===void 0||i(r.sourceLocation))}function s(e){if(!e||typeof e!=`object`)return;let t=e;if(t.version===1&&typeof t.sourceFile==`string`&&Array.isArray(t.bindings)&&t.bindings.every(o)&&(t.features===void 0||t.features&&typeof t.features==`object`&&!Array.isArray(t.features)&&a(t.features)))return t}function c(e,t){var n;return(n=e==null?void 0:e.bindings.some(e=>e.outputPath===t))!=null&&n}function l(e){return e.replace(/\[(?:'([^']+)'|"([^"]+)"|([^\]]+))\]/g,(e,t,n,r)=>{var i;return`.${(i=t==null?n:t)==null?r:i}`}).replace(/^\./,``)}function u(e){var t;return(t=l(e).split(`.`,1)[0])==null?``:t}function d(e,t){let n=l(e),r=l(t);return n===r||n.startsWith(`${r}.`)||r.startsWith(`${n}.`)}function f(e){var t;return(t=e.updateMode)==null?`exact-path`:t}function p(e,t){var n;if(!t)return!1;let r=f(e);if(r===`snapshot-fallback`&&e.outputPath===`*`)return!0;if(r===`exact-path`)return d(e.outputPath,t);let i=u(t);return u(e.outputPath)===i||r===`snapshot-fallback`&&((n=e.sourceRoots)==null?[]:n).some(e=>u(e)===i)}function m(e,t,n=!1){let r=[...t],i=new Set,a=[];for(let t of e.bindings){var o;if(i.has(t.id))continue;let s=f(t);if(!(r.length>0?r.some(e=>p(t,e)):n&&s===`snapshot-fallback`))continue;i.add(t.id);let c={id:t.id,outputPath:t.outputPath,updateMode:s,sourceFile:(o=t.sourceFile)==null?e.sourceFile:o};t.sourceLocation&&(c.sourceLocation=t.sourceLocation),a.push(c)}return a}export{c as hasBindingOutputPath,m as resolveBindingDiagnostics,s as resolveBindingManifest};
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
import { ComputedDefinitions, MethodDefinitions } from "./types/core.mjs";
|
|
2
|
+
import { InternalRuntimeState, RuntimeInstance } from "./types/runtime.mjs";
|
|
3
|
+
import { SetDataSnapshotOptions } from "./types/setData.mjs";
|
|
4
|
+
import "./types.mjs";
|
|
5
|
+
import { SetDataSchedulerOptions } from "./app/setData/scheduler.mjs";
|
|
6
|
+
import { InlineExpressionMap } from "./register/inline.mjs";
|
|
7
|
+
//#region src/runtime/capabilities.d.ts
|
|
8
|
+
export type RuntimeCapabilityName = 'patchStrategy' | 'templateRefs' | 'inlineEvents' | 'setDataHighFrequencyWarning' | 'scopedSlots' | 'layout';
|
|
9
|
+
export interface TemplateRefBinding {
|
|
10
|
+
selector: string;
|
|
11
|
+
inFor: boolean;
|
|
12
|
+
name?: string;
|
|
13
|
+
get?: () => unknown;
|
|
14
|
+
kind?: 'component' | 'element';
|
|
15
|
+
}
|
|
16
|
+
export interface LayoutHostBinding {
|
|
17
|
+
key: string;
|
|
18
|
+
refName?: string;
|
|
19
|
+
selector: string;
|
|
20
|
+
kind?: 'component';
|
|
21
|
+
}
|
|
22
|
+
export interface HighFrequencyWarningMonitorOptions {
|
|
23
|
+
option: SetDataSnapshotOptions['highFrequencyWarning'];
|
|
24
|
+
targetLabel: string;
|
|
25
|
+
isInPageScrollHook?: () => boolean;
|
|
26
|
+
now?: () => number;
|
|
27
|
+
logger?: (message: string) => void;
|
|
28
|
+
}
|
|
29
|
+
export interface SetDataScheduler {
|
|
30
|
+
job: () => void | Promise<void>;
|
|
31
|
+
snapshot: () => Record<string, unknown>;
|
|
32
|
+
cloneLatestSnapshot: () => Record<string, unknown>;
|
|
33
|
+
start?: () => void;
|
|
34
|
+
dispose?: () => void;
|
|
35
|
+
}
|
|
36
|
+
export interface ScopedSlotMountState {
|
|
37
|
+
ownerId: string;
|
|
38
|
+
shouldFlushNativeOwnerId: boolean;
|
|
39
|
+
}
|
|
40
|
+
export interface RuntimeCapabilityRegistry {
|
|
41
|
+
patchStrategy?: {
|
|
42
|
+
createScheduler: (options: SetDataSchedulerOptions) => SetDataScheduler;
|
|
43
|
+
};
|
|
44
|
+
templateRefs?: {
|
|
45
|
+
attachBindings: (target: InternalRuntimeState, bindings: readonly TemplateRefBinding[]) => void;
|
|
46
|
+
hasBindings: (target: InternalRuntimeState) => boolean;
|
|
47
|
+
schedule: (target: InternalRuntimeState, onResolved?: () => void, assignmentTarget?: InternalRuntimeState, onRejected?: (cause: unknown) => void) => void;
|
|
48
|
+
scheduleOwner: (target: InternalRuntimeState) => void;
|
|
49
|
+
clear: (target: InternalRuntimeState, assignmentTarget?: InternalRuntimeState) => void;
|
|
50
|
+
};
|
|
51
|
+
inlineEvents?: {
|
|
52
|
+
handler: (this: InternalRuntimeState, event: unknown) => unknown;
|
|
53
|
+
run: (context: unknown, expression: unknown, event: unknown, map?: InlineExpressionMap) => unknown;
|
|
54
|
+
};
|
|
55
|
+
setDataHighFrequencyWarning?: {
|
|
56
|
+
createMonitor: (options: HighFrequencyWarningMonitorOptions) => (() => void) | undefined;
|
|
57
|
+
};
|
|
58
|
+
scopedSlots?: {
|
|
59
|
+
prepareMount: (target: InternalRuntimeState) => ScopedSlotMountState;
|
|
60
|
+
attachMount: <D extends object, C extends ComputedDefinitions, M extends MethodDefinitions>(target: InternalRuntimeState, runtime: RuntimeInstance<D, C, M>, state: ScopedSlotMountState, deferSnapshot: boolean) => void;
|
|
61
|
+
refresh: (target: InternalRuntimeState, state: ScopedSlotMountState) => void;
|
|
62
|
+
syncNativeOwnerId: (target: InternalRuntimeState, state: ScopedSlotMountState) => void;
|
|
63
|
+
teardown: (target: InternalRuntimeState) => void;
|
|
64
|
+
resolveLifecycleProxy: (target: InternalRuntimeState) => unknown;
|
|
65
|
+
allocateOwnerId: () => string;
|
|
66
|
+
};
|
|
67
|
+
layout?: {
|
|
68
|
+
attachPageSetter: (target: InternalRuntimeState) => void;
|
|
69
|
+
attachHosts: (bindings: readonly LayoutHostBinding[], target: InternalRuntimeState) => void;
|
|
70
|
+
detachHosts: (bindings: readonly LayoutHostBinding[], target: InternalRuntimeState) => void;
|
|
71
|
+
};
|
|
72
|
+
}
|
|
73
|
+
//#endregion
|
|
74
|
+
export type { SetDataSchedulerOptions };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const e=`__wevuScopedSlotMountState`;function t(t){return t[e]}const n={},r=n;function i(e,t){n[e]!==t&&(n[e]=t)}function a(e,t){let r=n[e];if(!r)throw Error(`[wevu] runtime capability "${e}" is required by ${t}; install it before registration`);return r}function o(e){return e===!0?!0:!e||typeof e!=`object`||Array.isArray(e)?!1:e.enabled!==!1}export{e as RUNTIME_SCOPED_SLOT_STATE_KEY,t as getScopedSlotMountState,o as isSetDataHighFrequencyWarningRequested,i as registerRuntimeCapability,a as requireRuntimeCapability,r as runtimeCapabilityRegistry};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{INTERNAL_DEFAULTS_SCOPE_KEY as e}from"../defaults.mjs";import{registerComponent as t}from"../register/component.mjs";import{createApp as n}from"../app.mjs";function
|
|
1
|
+
import{INTERNAL_DEFAULTS_SCOPE_KEY as e}from"../defaults.mjs";import{registerComponent as t}from"../register/component.mjs";import{createApp as n}from"../app.mjs";import{WEVU_BINDING_MANIFEST_KEY as r,WEVU_SCOPED_SLOT_OWNER_REQUIRED_KEY as i}from"@weapp-core/constants";function a(a,o=!1){let s=n({data:a.data,computed:a.computed,methods:a.methods,setData:a.setData,[r]:a.bindingManifest,[i]:a.scopedSlotOwnerRequired,[e]:`component`});return{lifecycleDefinition:t(s,a.methods,a.watch,a.setup,a.mpOptions,{registerNative:o}),runtimeApp:s}}export{a as createRuntimeComponentDefinition};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{inject as e,provide as t}from"../provide.mjs";import{hasOwn as n}from"../../utils.mjs";const r=Symbol(`wevu-missing-options-api-injection`);function i(e){if(typeof e==`string`||typeof e==`symbol`)return{from:e};if(!e||typeof e!=`object`)return;let t=e;return{from:t.from,hasDefault:n(t,`default`),defaultValue:t.default}}function a(e,t){return typeof e==`function`?e.call(t):e}function o(t,n){let o={};if(Array.isArray(t)){for(let n of t)(typeof n==`string`||typeof n==`symbol`)&&(o[n]=e(n));return o}if(!t||typeof t!=`object`)return o;for(let[s,c]of Object.entries(t)){let t=i(c);if(!t||t.from==null)continue;let l=e(t.from,r);o[s]=l===r&&t.hasDefault?a(t.defaultValue,n):l===r?void 0:l}return o}function s(e,n){let r=typeof e==`function`?e.call(n):e;if(r&&typeof r==`object`)for(let e of Reflect.ownKeys(r))t(e,Reflect.get(r,e))}export{s as applyOptionsApiProvide,o as resolveOptionsApiInjections};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{hasOwn as e}from"../../utils.mjs";import{WEVU_SLOT_NAMES_PROP as t,WEVU_SLOT_OWNER_ID_PROP as n,WEVU_SLOT_SCOPE_KEY as r}from"@weapp-core/constants";const i=`__wevu_allowNullPropInput`,a=`allowNullPropInput`,o=new Map([[String,String],[Number,Number],[Boolean,Boolean],[Object,Object],[Array,Array],[Function,Function],[`String`,String],[`Number`,Number],[`Boolean`,Boolean],[`Object`,Object],[`Array`,Array],[`Function`,Function],[null,null],[`null`,null],[`Null`,null]]);function s(e){return o.get(e)}function c(e){if(
|
|
1
|
+
import{hasOwn as e}from"../../utils.mjs";import{WEVU_SLOT_NAMES_PROP as t,WEVU_SLOT_OWNER_ID_PROP as n,WEVU_SLOT_SCOPE_KEY as r}from"@weapp-core/constants";const i=`__wevu_allowNullPropInput`,a=`allowNullPropInput`,o=new Map([[String,String],[Number,Number],[Boolean,Boolean],[Object,Object],[Array,Array],[Function,Function],[`String`,String],[`Number`,Number],[`Boolean`,Boolean],[`Object`,Object],[`Array`,Array],[`Function`,Function],[null,null],[`null`,null],[`Null`,null]]);function s(e){return o.get(e)}function c(e,t=[]){if(Array.isArray(e)){for(let n of e)c(n,t);return t}let n=s(e);return n!==void 0&&!t.includes(n)&&t.push(n),t}function l(e){if(e===void 0)return[];let t=c(e).filter(e=>e!==null);return t.length>0?t:[null]}function u(e,t){let n=l(t);if(n.length!==0&&(e.type=n[0],n.length>1)){let t=[];for(let e of n.slice(1))t.includes(e)||t.push(e);t.length>0&&(e.optionalTypes=t)}}function d(t){e(t,`value`)||(t.type===String?t.value=``:t.type===Number?t.value=0:t.type===Boolean?t.value=!1:t.type===Array&&(t.value=[]))}function f(e,t,n){if(!n||e.type===null)return;let r=t&&typeof t==`object`&&!Array.isArray(t)?t:void 0,i=c(r?[r.type,r.optionalTypes]:t),a=i.includes(null),o=i.filter(e=>e!==null).length>1,s=(r==null?void 0:r.required)!==!0;(a||o||s)&&(a||d(e),e.type=null,delete e.optionalTypes)}function p(t,n){let r={};return t&&Object.entries(t).forEach(([t,i])=>{if(i!==void 0){if(i===null){r[t]={type:null};return}if(Array.isArray(i)||typeof i==`function`){let a={};u(a,i),e(a,`type`)||(a.type=null),f(a,i,n),r[t]=a;return}if(typeof i==`object`){if(t.endsWith(`Modifiers`)&&Object.keys(i).length===0){r[t]={type:Object,value:{}};return}let a={};if(`type`in i&&i.type!==void 0&&u(a,i.type),Array.isArray(i.optionalTypes)){let e=i.optionalTypes.map(e=>s(e)).filter(e=>e!=null);if(e.length>0){let t=Array.isArray(a.optionalTypes)?a.optionalTypes:[];for(let n of e)n!==a.type&&(t.includes(n)||t.push(n));t.length>0&&(a.optionalTypes=t)}}`observer`in i&&(typeof i.observer==`function`||typeof i.observer==`string`)&&(a.observer=i.observer);let o=`default`in i?i.default:i.value;o!==void 0&&(a.value=typeof o==`function`?o():o),e(a,`type`)||(a.type=null),f(a,i,n),r[t]=a}}}),r}function m(o,s,c){var l;let u=!!((l=o[i])==null?o[a]:l),{[i]:d,[a]:f,...m}=o,h=o.properties,g=h&&typeof h==`object`&&Object.keys(h).length>0?h:void 0,_=c==null?g:c,v=!!(s||_),y=i=>{let a={...i==null?{}:i};return v?(e(a,n)||(a[n]={type:String,value:``}),e(a,r)||(a[r]={type:null,value:null}),e(a,t)||(a[t]={type:null,value:null}),a):a};if(_){let{properties:e,...t}=m,n=_,r=p(s,u);return{...t,properties:y({...r,...n})}}return{...m,properties:y(p(s,u))}}export{m as normalizeProps};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{requireRuntimeCapability as e,runtimeCapabilityRegistry as t}from"../capabilities.mjs";import{runTeardownSteps as n}from"../teardown.mjs";import{hasOwn as r}from"../../utils.mjs";import{cloneSnapshotValue as i,isDeepEqualValue as a}from"../app/setData/snapshot.mjs";import{decodeWxmlEntities as o,resolveDatasetEventValue as s}from"../inlineDataset.mjs";import{getOwnerProxy as c,getOwnerSnapshot as l,getOwnerTarget as u,subscribeOwner as d}from"../scopedSlots.mjs";import{WEVU_BINDING_MANIFEST_KEY as f,WEVU_INLINE_HANDLER as p,WEVU_INLINE_MAP_KEY as m,WEVU_LAYOUT_HOSTS_KEY as h,WEVU_OWNER_HANDLER as g,WEVU_PROPS_DERIVED_KEYS_KEY as _,WEVU_PUBLIC_RUNTIME_KEY as v,WEVU_SCOPED_SLOT_OWNER_REQUIRED_KEY as y,WEVU_SLOT_FUNCTION_TOKEN as b,WEVU_SLOT_OWNER_ID_KEY as x,WEVU_SLOT_OWNER_ID_PROP as S,WEVU_SLOT_OWNER_KEY as C,WEVU_SLOT_OWNER_PROXY_KEY as w,WEVU_SLOT_PROPS_DATA_KEY as T,WEVU_SLOT_PROPS_KEY as E,WEVU_SLOT_SCOPE_KEY as D,WEVU_TEMPLATE_REFS_KEY as O}from"@weapp-core/constants";const k=[x,S,w,C,T,E,D];function A(e){var t,n,r,i;let a=(t=(n=e==null||(r=e.currentTarget)==null?void 0:r.dataset)==null?e==null||(i=e.target)==null?void 0:i.dataset:n)==null?{}:t,c=s(a,`wvArgs`,e),l=[];if(Array.isArray(c))l=c;else if(typeof c==`string`)try{l=JSON.parse(c)}catch(e){try{l=JSON.parse(o(c))}catch(e){l=[]}}return Array.isArray(l)||(l=[]),l.map(t=>t===`$event`?e:t)}function j(e){if(!e||typeof e!=`object`)return{};if(Array.isArray(e)){let t={};for(let n=0;n<e.length;n+=2){let r=e[n];typeof r==`string`&&r&&(t[r]=e[n+1])}return t}return e}function M(e){return Array.isArray(e)&&e[0]===b&&typeof e[1]==`string`}function N(e,t){return(...n)=>{var r;let i=e==null||(r=e.selectOwnerComponent)==null?void 0:r.call(e),a=i==null?void 0:i[p];if(typeof a!=`function`)return;let o={wd:1,wi:t[1]},s=Array.isArray(t[2])?t[2]:[],c=Array.isArray(t[3])?t[3]:[];s.forEach((e,t)=>o[`wvS${t}`]=e),c.forEach((e,t)=>o[`wvI${t}`]=e);let l={type:`wv-slot-function`,detail:n,currentTarget:{dataset:o},target:{dataset:o}};return a.call(i,l)}}function P(e,t){let n={};for(let[r,i]of Object.entries(t))n[r]=M(i)?N(e,i):i;return n}function F(e){var t,n,r,i;return(t=(n=e==null||(r=e.__wevu)==null?void 0:r.proxy)==null?e==null||(i=e[v])==null?void 0:i.proxy:n)==null?e:t}function I(e,t){if(!t||Object.keys(t).length===0)return;let n=F(e),r={};for(let[e,i]of Object.entries(t))try{let t;typeof i==`function`?t=i.call(n):typeof(i==null?void 0:i.get)==`function`&&(t=i.get.call(n)),t!==void 0&&(r[e]=t)}catch(e){}return r}function L(e){var t,n;e==null||(t=e.__wevu)==null||(n=t.__wevu_flushSetupSnapshotSync)==null||n.call(t)}function R(e,t,n){var o;L(e);let s=I(e,t);if(!s||typeof(e==null?void 0:e.setData)!=`function`)return;let c=r(e,`__wvScopedSlotComputedSnapshot`),l=(o=e.__wvScopedSlotComputedSnapshot)==null?{}:o,u={},d={};for(let[e,t]of Object.entries(s))u[e]=i(t),(n!=null&&n.force||!c||!r(l,e)||!a(l[e],t,20,{keys:1e4}))&&(d[e]=t);for(let e of Object.keys(l))r(s,e)||(d[e]=null);e.__wvScopedSlotComputedSnapshot=u,Object.keys(d).length>0&&e.setData(d)}function z(e,t){var n,o,s,c,l;let u=r(t==null?{}:t,D)?t[D]:e==null||(n=e.properties)==null?void 0:n[D],d=r(t==null?{}:t,E)?t[E]:e==null||(o=e.properties)==null?void 0:o[E],f=j(u),p=j(d),m={...f,...p},h=!r(e,`__wvSlotPropsSnapshot`)||!a((s=e.__wvSlotPropsSnapshot)==null?{}:s,m,20,{keys:1e4}),g=h||!e[T]?P(e,m):e[T];h&&(e.__wvSlotPropsSnapshot=i(m)),e[T]=g;let _=e==null||(c=e.__wevu)==null?void 0:c.state,v=!(!_||typeof _!=`object`||r(_,T)&&a((l=_[T])==null?{}:l,m,20,{keys:1e4}));return _&&typeof _==`object`&&(_[T]=g),{merged:g,runtimeSnapshotChanged:v,snapshot:m,snapshotChanged:h}}function B(e,t,n){let{runtimeSnapshotChanged:r,snapshot:i,snapshotChanged:a}=z(e,n);(a||r)&&typeof(e==null?void 0:e.setData)==`function`&&e.setData({[T]:i}),a&&R(e,t)}function V(e,t){var n;let r=!1;e[w]!==t&&(e[w]=t,r=!0);let i=e==null?void 0:e.data;if(i&&typeof i==`object`&&i[w]!==t){try{Object.defineProperty(i,w,{value:t,configurable:!0,enumerable:!1,writable:!0})}catch(e){i[w]=t}r=!0}let a=e==null||(n=e.__wevu)==null?void 0:n.state;return a&&typeof a==`object`&&a[w]!==t&&(a[w]=t,r=!0),r}function H(e){if(!e||typeof e!=`object`)return!1;let t=Object.getPrototypeOf(e);return t===Object.prototype||t===null}function U(e,t,n,r){if(typeof e==`function`){n[t]=e;return}if(typeof e!=`object`||!e)return e;if(r.has(e))return;if(Array.isArray(e)){r.add(e);let i=e.map((e,i)=>{let a=U(e,`${t}.${i}`,n,r);return a===void 0?null:a});return r.delete(e),i}if(!H(e))return i(e);r.add(e);let a={};for(let[i,o]of Object.entries(e)){let e=U(o,`${t}.${i}`,n,r);e!==void 0&&(a[i]=e)}return r.delete(e),a}function W(e){let t={},n=U(e,C,t,new WeakSet);return{[C]:n,...t}}function G(e,t,n,o){var s;let c=V(e,n),{snapshotChanged:l}=z(e),u=t||{},d=!r(e,`__wvOwnerSnapshot`)||!a((s=e.__wvOwnerSnapshot)==null?{}:s,u,20,{keys:1e4});if(d){var f;e.__wvOwnerSnapshot=i(u),e[C]=u;let t=e==null||(f=e.__wevu)==null?void 0:f.state;t&&typeof t==`object`&&(t[C]=u)}d&&typeof(e==null?void 0:e.setData)==`function`&&e.setData(W(u)),(d||c||l)&&R(e,o)}function K(e,t,n){if(!t){typeof(e==null?void 0:e.__wvOwnerUnsub)==`function`&&e.__wvOwnerUnsub(),e.__wvOwnerUnsub=void 0,e.__wvOwnerBoundId=``,V(e,void 0);return}let r=(t,r)=>{G(e,t,r,n)};e.__wvOwnerBoundId!==t&&(typeof e.__wvOwnerUnsub==`function`&&e.__wvOwnerUnsub(),e.__wvOwnerBoundId=t,e.__wvOwnerUnsub=d(t,r));let i=l(t);i&&r(i,c(t))}function q(e){var t,n,r,i;return(t=(n=e==null||(r=e.properties)==null?void 0:r[S])==null?e==null||(i=e.properties)==null?void 0:i[x]:n)==null?``:t}function J(e,t){B(e,t);let n=q(e);n&&K(e,n,t)}function Y(){let e={[C]:{},[T]:{}};return Object.defineProperty(e,w,{value:void 0,configurable:!0,enumerable:!1,writable:!0}),e}function X(r){let i=r==null?void 0:r.computed,a=r==null?void 0:r.layoutHosts,o=r==null?void 0:r.templateRefs;o!=null&&o.length&&e(`templateRefs`,`createWevuScopedSlotComponent(templateRefs)`);let c=!!(r!=null&&r.inlineMap&&Object.keys(r.inlineMap).length);c&&e(`inlineEvents`,`createWevuScopedSlotComponent(inlineMap)`),a!=null&&a.length&&e(`layout`,`createWevuScopedSlotComponent(layoutHosts)`);let l=e=>{let t=q(e);return t?u(t):void 0},d={[y]:!0,options:{virtualHost:!0},setData:{omit:k},[_]:k,properties:{[S]:{type:String,value:``,observer(e){K(this,e||``,i)}},[x]:{type:String,value:``,observer(e){K(this,e||``,i)}},[E]:{type:null,value:null,observer(e){B(this,i,{[E]:e})}},[D]:{type:null,value:null,observer(e){B(this,i,{[D]:e})}}},data:Y,lifetimes:{attached(){J(this,i)},ready(){J(this,i),R(this,i,{force:!0});let e=l(this);if(e&&o!=null&&o.length){var n;(n=t.templateRefs)==null||n.schedule(this,void 0,e)}},detached(){let e=l(this);n([()=>{if(e&&o!=null&&o.length){var n;(n=t.templateRefs)==null||n.clear(this,e)}},()=>{typeof this.__wvOwnerUnsub==`function`&&this.__wvOwnerUnsub()},()=>{this.__wvOwnerUnsub=void 0,this.__wvOwnerBoundId=``},()=>V(this,void 0)])}},methods:{[g](e){var n,r,i,a,o;let l=this[w],u=(n=this.__wevu)==null||(n=n.methods)==null?void 0:n[m];if(c){var d;let n=(d=t.inlineEvents)==null?void 0:d.run(l,void 0,e,u);if(n!==void 0)return n}if(!l)return;let f=(r=(i=e==null||(a=e.currentTarget)==null?void 0:a.dataset)==null?e==null||(o=e.target)==null?void 0:o.dataset:i)==null?{}:r,p=s(f,`wvHandler`,e);if(typeof p!=`string`||!p)return;let h=l==null?void 0:l[p];if(typeof h!=`function`)return;let g=A(e);return h.apply(l,g)}}};return r!=null&&r.computed&&Object.keys(r.computed).length>0&&(d.computed=r.computed),r!=null&&r.inlineMap&&Object.keys(r.inlineMap).length>0&&(d.methods={...d.methods,[m]:r.inlineMap}),o!=null&&o.length&&(d[O]=o),a!=null&&a.length&&(d[h]=a),r!=null&&r[f]&&(d[f]=r[f]),d}export{X as createScopedSlotOptions};
|
|
@@ -7,8 +7,7 @@ import { DefineComponent, ShallowUnwrapRef } from "../vue-types.mjs";
|
|
|
7
7
|
import { SetDataSnapshotOptions } from "./types/setData.mjs";
|
|
8
8
|
import { DefineComponentOptions } from "./types/options.mjs";
|
|
9
9
|
import "./types.mjs";
|
|
10
|
-
import {
|
|
11
|
-
import { TemplateRefBinding } from "./templateRefs.mjs";
|
|
10
|
+
import { WevuRuntimeBindingManifestV1 } from "@weapp-core/constants";
|
|
12
11
|
//#region src/runtime/define.d.ts
|
|
13
12
|
/**
|
|
14
13
|
* defineComponent 返回的组件定义描述,用于手动注册或高级用法。
|
|
@@ -24,16 +23,18 @@ export interface ComponentDefinition<D extends object, C extends ComputedDefinit
|
|
|
24
23
|
* @internal
|
|
25
24
|
*/
|
|
26
25
|
__wevu_options: {
|
|
26
|
+
scopedSlotOwnerRequired: boolean;
|
|
27
27
|
data: () => D;
|
|
28
28
|
computed: C;
|
|
29
29
|
methods: M;
|
|
30
30
|
setData: SetDataSnapshotOptions | undefined;
|
|
31
|
+
bindingManifest?: WevuRuntimeBindingManifestV1;
|
|
31
32
|
watch: Record<string, any> | undefined;
|
|
32
33
|
setup: ((props: any, ctx: any) => any) | undefined;
|
|
33
34
|
mpOptions: MiniProgramComponentRawOptions;
|
|
34
35
|
};
|
|
35
36
|
}
|
|
36
|
-
type SetupBindings<S> = Exclude<S, void> extends never ? Record<
|
|
37
|
+
type SetupBindings<S> = Exclude<S, void> extends never ? Record<never, never> : Exclude<S, void>;
|
|
37
38
|
type ResolveProps<P> = P extends ComponentPropsOptions ? InferProps<P> : P;
|
|
38
39
|
export interface WevuComponentConstructor<Props, RawBindings, D extends object, C extends ComputedDefinitions, M extends MethodDefinitions> {
|
|
39
40
|
new (): ComponentPublicInstance<D, C, M, Props> & ShallowUnwrapRef<RawBindings>;
|
|
@@ -82,7 +83,7 @@ export interface DefineComponentWithTypeProps<TypeProps> {
|
|
|
82
83
|
* ```
|
|
83
84
|
*/
|
|
84
85
|
export declare function defineComponent<TypeProps = any>(options: DefineComponentTypePropsOptions<TypeProps>): DefineComponentWithTypeProps<TypeProps>;
|
|
85
|
-
export declare function defineComponent<P extends ComponentPropsOptions =
|
|
86
|
+
export declare function defineComponent<P extends ComponentPropsOptions = Record<never, never>, D extends object = Record<never, never>, C extends ComputedDefinitions = Record<never, never>, M extends MethodDefinitions = Record<never, never>, S extends Record<string, any> | void = void>(options: DefineComponentOptions<P, D, C, M, S>): WevuComponentConstructor<ResolveProps<P>, SetupBindings<S>, D, C, M> & ComponentDefinition<D, C, M>;
|
|
86
87
|
/**
|
|
87
88
|
* 创建不触发宿主全局注册的 Wevu 组件定义。
|
|
88
89
|
*
|
|
@@ -113,13 +114,4 @@ export declare function getWevuComponentLifecycleDefinition(definition: object):
|
|
|
113
114
|
export declare function createWevuComponent<P extends ComponentPropsOptions = ComponentPropsOptions, D extends object = Record<string, any>, C extends ComputedDefinitions = ComputedDefinitions, M extends MethodDefinitions = MethodDefinitions>(options: DefineComponentOptions<P, D, C, M> & {
|
|
114
115
|
properties?: HostMiniProgramComponentPropertyOption;
|
|
115
116
|
}): void;
|
|
116
|
-
/**
|
|
117
|
-
* scoped slot 兼容组件入口(编译产物内部使用)。
|
|
118
|
-
* @internal
|
|
119
|
-
*/
|
|
120
|
-
export declare function createWevuScopedSlotComponent(overrides?: {
|
|
121
|
-
computed?: ComputedDefinitions;
|
|
122
|
-
inlineMap?: InlineExpressionMap;
|
|
123
|
-
templateRefs?: TemplateRefBinding[];
|
|
124
|
-
}): void;
|
|
125
117
|
//#endregion
|
package/dist/runtime/define.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{applyWevuComponentDefaults as e}from"./defaults.mjs";import{requireRuntimeCapability as t}from"./capabilities.mjs";import{hasOwn as n}from"../utils.mjs";import{hasBindingOutputPath as r,resolveBindingManifest as i}from"./bindingManifest.mjs";import{runSetupFunction as a}from"./register/setup.mjs";import{createRuntimeComponentDefinition as o}from"./define/componentDefinition.mjs";import{resolveNativeInitialData as s}from"./define/initialComputed.mjs";import{resolveVueComponentOptions as c}from"./define/options.mjs";import{applyOptionsApiProvide as l,resolveOptionsApiInjections as u}from"./define/optionsApi.mjs";import{normalizeProps as d}from"./define/props.mjs";import{applySetupResult as f}from"./define/setupResult.mjs";import{WEVU_BINDING_MANIFEST_KEY as p,WEVU_CSS_MODULES_KEY as m,WEVU_FUNCTION_PROP_PATHS_KEY as h,WEVU_SCOPED_SLOT_OWNER_REQUIRED_KEY as g,WEVU_SLOT_OWNER_ID_KEY as _,WEVU_SLOT_OWNER_ID_PROP as v,WEVU_SLOT_SCOPE_KEY as y}from"@weapp-core/constants";const b=new WeakMap;function x(e,t){let r={...t==null?{}:t};if(!e||typeof e!=`object`)return r;for(let[t,i]of Object.entries(e))i&&typeof i==`object`&&n(i,`value`)&&(r[t]=i.value);return r}function S(e,t){var n;return Array.isArray(e==null?void 0:e.pick)&&e.pick.includes(_)||(t==null||(n=t.features)==null?void 0:n.scopedSlots)===!0&&r(t,_)}function C(e){return!!e.__wevu_isPage}function w(e){let t=e.properties;return!!(t&&typeof t==`object`&&(v in t||y in t))}function T(e,t){return(t==null?void 0:t.strategy)!==`patch`||!w(e)?t:{...t,strategy:`diff`}}function E(e,t=!1){let{lifecycleDefinition:n,runtimeApp:r}=o(e,t),i={__wevu_runtime:r,__wevu_options:e};return b.set(i,n),i}function D(e){return O(e,!0)}function O(n,r){let{__typeProps:o,[g]:v,data:y,computed:b,methods:w,setData:D,watch:O,setup:k,props:A,inject:j,provide:M,allowFunctionProps:N,[p]:P,[m]:F,...I}=c(e(n)),L=i(P),R=I[h],z=Array.isArray(R)?[...new Set(R.filter(e=>typeof e==`string`&&e.length>0))]:[];delete I[h];let B=T(I,N===!0?{...D==null?{}:D,includeFunctions:!0,functionPaths:z}:N===!1?D:z.length?{...D==null?{}:D,functionPaths:z}:D),V=new Set(z.filter(e=>!e.includes(`.`))),H=d(I,A,I.properties),U=x(H.properties,w),W=typeof y==`function`?()=>y.call(U):y,G=typeof k==`function`||j!=null||M!=null||F?((e,t)=>{var n,r;F&&typeof F==`object`&&(t.instance[m]=F);let i=(n=(r=t==null?void 0:t.proxy)==null?t==null?void 0:t.instance:r)==null?Object.create(null):n,o=u(j,i);M!=null&&l(M,i);let s=typeof k==`function`?a(k,e,t):void 0,c={...o,...F==null?{}:F,...s==null?{}:s};return t&&Object.keys(c).length&&f(t.runtime,t.instance,c,{includeFunctionsInState:N===!0,functionPropPaths:N===!1?void 0:V}),c}):void 0,K=typeof W==`function`?W():W,q=K&&typeof K==`object`?Reflect.get(K,_):void 0,J=S(B,L),Y=J?t(`scopedSlots`,`defineComponent(scoped-slot owner metadata)`):void 0,X=J?{...K&&typeof K==`object`?K:{},[_]:C(I)?q||(Y==null?void 0:Y.allocateOwnerId()):q||``}:K,Z=s(X,b,B,w),Q=Z===void 0?H:{...H,data:Z};return E({scopedSlotOwnerRequired:v===!0,data:W,computed:b,methods:w,setData:B,bindingManifest:L,watch:O,setup:G,mpOptions:Q},r)}function k(e){return O(e,!1)}function A(e){let t=e.__wevu_options;if(!t)throw TypeError(`无法从非 Wevu 组件定义创建独立运行时`);return E(t)}function j(e){return b.get(e)}function M(e){var t;let n=(t=e.allowNullPropInput)==null||t;D({...e,allowNullPropInput:n,__wevu_allowNullPropInput:n})}export{A as createIsolatedWevuComponentDefinition,M as createWevuComponent,k as createWevuComponentDefinition,D as defineComponent,j as getWevuComponentLifecycleDefinition};
|
package/dist/runtime/diff.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{toRaw as e}from"../reactivity/reactive/shared.mjs";import{getReactiveVersion as t,isReactive as n}from"../reactivity/reactive.mjs";import{unref as r}from"../reactivity/ref.mjs";import{
|
|
1
|
+
import{toRaw as e}from"../reactivity/reactive/shared.mjs";import{getReactiveVersion as t,isReactive as n}from"../reactivity/reactive.mjs";import{unref as r}from"../reactivity/ref.mjs";import{isNoSetData as i}from"./noSetData.mjs";import{hasOwn as a}from"../utils.mjs";import{hasTrackableSetupBinding as o}from"./setupTracking.mjs";function s(e){if(Object.prototype.toString.call(e)!==`[object Object]`)return!1;let t=Object.getPrototypeOf(e);return t===null||t===Object.prototype}function c(e,t){if(!e||!t)return!1;let n=t;for(;n;){if(e.has(n))return!0;let t=n.lastIndexOf(`.`);if(t<0)return!1;n=n.slice(0,t)}return!1}function l(a,s,u,d,f,p,m,h,g,_){let v=r(a);if(typeof v==`bigint`){let e=Number(v);return Number.isSafeInteger(e)?e:v.toString()}if(typeof v==`symbol`)return v.toString();if(typeof v==`function`)return h||c(g,_)?v:void 0;if(typeof v!=`object`||!v)return v;if(i(v))return;let y=n(v),b=y?e(v):v,x=!!d&&y;if(d&&!x){let e=f==null?void 0:f.get(b);x=e==null?!o(b):e,f==null||f.set(b,x)}let S=x?d:void 0;if(p<=0||m.keys<=0)return b;if(S){let e=t(b),n=S.get(b);if(n&&n.version===e)return n.value}if(u.has(b))return;if(s.has(b))return s.get(b);if(b instanceof Date)return b.getTime();if(b instanceof RegExp)return b.toString();if(b instanceof Map){let e=[];return s.set(b,e),u.add(b),b.forEach((t,n)=>{e.push([l(n,s,u,void 0,void 0,1/0,{keys:1/0},h,void 0,``),l(t,s,u,void 0,void 0,1/0,{keys:1/0},h,void 0,``)])}),u.delete(b),e}if(b instanceof Set){let e=[];return s.set(b,e),u.add(b),b.forEach(t=>{e.push(l(t,s,u,void 0,void 0,1/0,{keys:1/0},h,void 0,``))}),u.delete(b),e}if(typeof ArrayBuffer<`u`){if(b instanceof ArrayBuffer)return b.byteLength;if(ArrayBuffer.isView(b)){let e=b;if(typeof e[Symbol.iterator]==`function`){let t=[...e];return s.set(b,t),t.map(e=>l(e,s,u,void 0,void 0,1/0,{keys:1/0},h,void 0,``))}let t=[...new Uint8Array(e.buffer,e.byteOffset,e.byteLength)];return s.set(b,t),t}}if(b instanceof Error)return{name:b.name,message:b.message};if(Array.isArray(b)){let e=[];s.set(b,e),u.add(b);let n=p-1;for(let t=0;t<b.length;t+=1){let r=_?`${_}.${t}`:String(t),i=l(b[t],s,u,d,f,n,m,h,g,r);e[t]=i===void 0?null:i}return u.delete(b),S&&S.set(b,{version:t(b),value:e}),e}let C={};s.set(b,C),u.add(b);let w=p-1;for(let e of Object.keys(b)){if(--m.keys,m.keys<=0)break;let t=_?`${_}.${e}`:e,n=l(b[e],s,u,d,f,w,m,h,g,t);n!==void 0&&(C[e]=n)}return u.delete(b),S&&S.set(b,{version:t(b),value:C}),C}function u(e,t=new WeakMap,n){var r,i,a;let o=(r=n==null?void 0:n._depth)==null?typeof(n==null?void 0:n.maxDepth)==`number`?Math.max(0,Math.floor(n.maxDepth)):1/0:r,s=(i=n==null?void 0:n._budget)==null?typeof(n==null?void 0:n.maxKeys)==`number`?{keys:Math.max(0,Math.floor(n.maxKeys))}:{keys:1/0}:i,c=Array.isArray(n==null?void 0:n.functionPaths)&&n.functionPaths.length?new Set(n.functionPaths):void 0;return l(e,t,new WeakSet,n==null?void 0:n.cache,n==null?void 0:n.cacheEligibility,o,s,!!(n!=null&&n.includeFunctions),c,(a=n==null?void 0:n._path)==null?``:a)}function d(e,t,n){if(e.length!==t.length)return!1;for(let r=0;r<e.length;r++)if(!n(e[r],t[r]))return!1;return!0}function f(e,t,n){let r=Object.keys(e),i=Object.keys(t);if(r.length!==i.length)return!1;for(let i of r)if(!a(t,i)||!n(e[i],t[i]))return!1;return!0}function p(e,t){return Object.is(e,t)?!0:Array.isArray(e)&&Array.isArray(t)?d(e,t,p):s(e)&&s(t)?f(e,t,p):!1}function m(e){return e===void 0?null:e}function h(e,t,n,r){if(!p(e,t)){if(s(e)&&s(t)){for(let i of Object.keys(t)){if(!a(e,i)){r[`${n}.${i}`]=m(t[i]);continue}h(e[i],t[i],`${n}.${i}`,r)}for(let i of Object.keys(e))a(t,i)||(r[`${n}.${i}`]=null);return}if(Array.isArray(e)&&Array.isArray(t)){d(e,t,p)||(r[n]=m(t));return}r[n]=m(t)}}function g(e,t,n){let r={},i=n==null?void 0:n.skipKeys;for(let n of Object.keys(t))i!=null&&i.has(n)||h(e[n],t[n],n,r);for(let n of Object.keys(e))i!=null&&i.has(n)||a(t,n)||(r[n]=null);return r}export{g as diffSnapshots,u as toPlain};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{registerRuntimeCapability as e}from"../capabilities.mjs";import{runInlineExpression as t}from"../register/inline.mjs";import{WEVU_INLINE_MAP_KEY as n}from"@weapp-core/constants";const r={handler(e){var r,i;let a=this.__wevu,o=(r=a==null?void 0:a.proxy)==null?this:r,s=a==null||(i=a.methods)==null?void 0:i[n];return t(o,void 0,e,s&&typeof s==`object`&&!Array.isArray(s)?s:void 0)},run:t};function i(){e(`inlineEvents`,r)}export{i as installInlineEvents};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{registerRuntimeCapability as e}from"../capabilities.mjs";import{registerRuntimeLayoutHosts as t,unregisterRuntimeLayoutHosts as n}from"../layoutBridge.mjs";import{resolveRuntimePageLayoutName as r,syncRuntimePageLayoutState as i}from"../pageLayout.mjs";import{runTeardownSteps as a}from"../teardown.mjs";import{installTemplateRefs as o}from"./templateRefs.mjs";import{WEVU_LAYOUT_HOST_BRIDGE_KEY as s,WEVU_PAGE_LAYOUT_NAME_KEY as c,WEVU_PAGE_LAYOUT_PROPS_KEY as l,WEVU_PAGE_LAYOUT_SETTER_KEY as u}from"@weapp-core/constants";const d={attachPageSetter(e){e[u]=(t,n)=>{var a;let o=(a=e.__wevu)==null?void 0:a.state;if(!o||typeof o!=`object`)return;o[c]=r(t);let s=t===!1||n==null?{}:n;o[l]=s,i(e,t,s)}},attachHosts(e,n){if(!e.length||n[s])return;let r=t(e,n);r&&(n[s]=r)},detachHosts(e,t){let r=t[s];e.length&&r&&a([()=>n(e,r),()=>{delete t[s]}])}};function f(){o(),e(`layout`,d)}export{f as installLayout};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{addMutationRecorder as e,removeMutationRecorder as t}from"../../reactivity/reactive/mutation.mjs";import{toRaw as n}from"../../reactivity/reactive/shared.mjs";import{clearPatchIndices as r,prelinkReactiveTree as i}from"../../reactivity/reactive/patch.mjs";import{registerRuntimeCapability as a}from"../capabilities.mjs";import{createSetDataScheduler as o}from"../app/setData/scheduler.mjs";import{preparePatchUpdate as s}from"../app/setData/patchScheduler.mjs";function c(a){let c=o(a),l=n(a.state),u=new Map,d=new Set,f=Object.create(null),p=!0,m=!1,h=!1,g=e=>{if(a.includeComputed){for(let e of Object.keys(f))delete f[e];for(let t of Object.keys(a.computedRefs))c.shouldIncludeSnapshotKey(t)&&(f[t]=e[t]);a.dirtyComputedKeys.clear()}},_=(e=`diff`)=>{let t=u.size+d.size;u.clear(),d.clear(),p=!1,c.runDiffUpdate(e,t,g)},v=e=>{if(!a.isMounted())return;if(e.root!==l){let t=c.resolveTopKeysByRoot(e.root);for(let e of t)d.add(e);return}if(!e.path){if(Array.isArray(e.fallbackTopKeys)&&e.fallbackTopKeys.length)for(let t of e.fallbackTopKeys)d.add(t);else p=!0;return}let t=e.path.split(`.`,1)[0];c.shouldIncludeSnapshotKey(t)&&u.set(e.path,{kind:e.kind,op:e.op})};return{job(){if(!c.prepareJob(u.size+d.size,()=>[...u.keys(),...d,...a.includeComputed?a.dirtyComputedKeys:[]]))return;if(p||c.needsFullSnapshot())return _(`needsFullSnapshot`);if(!(u.size>0||d.size>0||a.includeComputed&&a.dirtyComputedKeys.size>0))return _(`diff`);let e=s({state:a.state,computedRefs:a.computedRefs,dirtyComputedKeys:a.dirtyComputedKeys,includeComputed:a.includeComputed,computedCompare:a.computedCompare,computedCompareMaxDepth:a.computedCompareMaxDepth,computedCompareMaxKeys:a.computedCompareMaxKeys,shouldIncludeKey:c.shouldIncludeSnapshotKey,maxPatchKeys:a.maxPatchKeys,maxPayloadBytes:a.maxPayloadBytes,mergeSiblingThreshold:a.mergeSiblingThreshold,mergeSiblingMaxInflationRatio:a.mergeSiblingMaxInflationRatio,mergeSiblingMaxParentBytes:a.mergeSiblingMaxParentBytes,mergeSiblingSkipArray:a.mergeSiblingSkipArray,elevateTopKeyThreshold:a.elevateTopKeyThreshold,toPlainMaxDepth:a.toPlainMaxDepth,toPlainMaxKeys:a.toPlainMaxKeys,includeFunctions:a.includeFunctions,functionPaths:a.functionPaths,plainCache:c.plainCache,plainCacheEligibility:c.plainCacheEligibility,pendingPatches:u,fallbackTopKeys:d,dispatchedSnapshot:c.getLatestSnapshot(),dispatchedComputedSnapshot:f});if(e){if(c.emitDebug(e.debug,e.type===`patch`?Object.keys(e.payload):void 0),e.type===`fallback`)return _(e.reason);e.computedUpdates&&Object.assign(f,e.computedUpdates),c.dispatchUpdate({mode:`patch`,kind:`delta`,reason:`patch`,snapshot:e.snapshot,payload:e.payload,pendingPatchKeys:e.debug.pendingPatchKeys})}},snapshot:c.snapshot,cloneLatestSnapshot:c.cloneLatestSnapshot,start(){m||h||(m=!0,i(a.state,{shouldIncludeTopKey:a.shouldIncludeKey,maxDepth:a.prelinkMaxDepth,maxKeys:a.prelinkMaxKeys}),e(v))},dispose(){h||(h=!0,c.dispose(),m&&t(v),r(a.state))}}}const l={createScheduler:c};function u(){a(`patchStrategy`,l)}export{u as installPatchStrategy};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { PageLayoutState, WevuPageLayoutMap, resolveRuntimePageLayoutName as resolveRuntimePageLayoutName$1, syncRuntimePageLayoutState as syncRuntimePageLayoutState$1, syncRuntimePageLayoutStateFromRuntime as syncRuntimePageLayoutStateFromRuntime$1, usePageLayout as usePageLayout$1 } from "../pageLayout.mjs";
|
|
2
|
+
import { LayoutHostBinding } from "../capabilities.mjs";
|
|
3
|
+
import { LayoutBridgeInstance, registerPageLayoutBridge as registerPageLayoutBridge$1, registerRuntimeLayoutHosts as registerRuntimeLayoutHosts$1, resolveLayoutBridge as resolveLayoutBridge$1, resolveLayoutHost as resolveLayoutHost$1, unregisterPageLayoutBridge as unregisterPageLayoutBridge$1, unregisterRuntimeLayoutHosts as unregisterRuntimeLayoutHosts$1, useLayoutBridge as useLayoutBridge$1, useLayoutHosts as useLayoutHosts$1, waitForLayoutHost as waitForLayoutHost$1 } from "../layoutBridge.mjs";
|
|
4
|
+
//#region src/runtime/features/publicLayout.d.ts
|
|
5
|
+
export declare const registerPageLayoutBridge: typeof registerPageLayoutBridge$1;
|
|
6
|
+
export declare const unregisterPageLayoutBridge: typeof unregisterPageLayoutBridge$1;
|
|
7
|
+
export declare const resolveLayoutBridge: typeof resolveLayoutBridge$1;
|
|
8
|
+
export declare const resolveLayoutHost: typeof resolveLayoutHost$1;
|
|
9
|
+
export declare const waitForLayoutHost: typeof waitForLayoutHost$1;
|
|
10
|
+
export declare const useLayoutBridge: typeof useLayoutBridge$1;
|
|
11
|
+
export declare const registerRuntimeLayoutHosts: typeof registerRuntimeLayoutHosts$1;
|
|
12
|
+
export declare const unregisterRuntimeLayoutHosts: typeof unregisterRuntimeLayoutHosts$1;
|
|
13
|
+
export declare const useLayoutHosts: typeof useLayoutHosts$1;
|
|
14
|
+
export declare const usePageLayout: typeof usePageLayout$1;
|
|
15
|
+
type PublicPageLayoutName = keyof WevuPageLayoutMap extends never ? string : Extract<keyof WevuPageLayoutMap, string>;
|
|
16
|
+
type PublicPageLayoutProps<Name extends string> = Name extends keyof WevuPageLayoutMap ? WevuPageLayoutMap[Name] : object;
|
|
17
|
+
export declare function setPageLayout(layout: false): void;
|
|
18
|
+
export declare function setPageLayout<Name extends PublicPageLayoutName>(layout: Name, props?: PublicPageLayoutProps<Name>): void;
|
|
19
|
+
export declare const syncRuntimePageLayoutState: typeof syncRuntimePageLayoutState$1;
|
|
20
|
+
export declare const syncRuntimePageLayoutStateFromRuntime: typeof syncRuntimePageLayoutStateFromRuntime$1;
|
|
21
|
+
export declare const resolveRuntimePageLayoutName: typeof resolveRuntimePageLayoutName$1;
|
|
22
|
+
//#endregion
|
|
23
|
+
export type { LayoutBridgeInstance, LayoutHostBinding, PageLayoutState, WevuPageLayoutMap };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{getCurrentMiniProgramPages as e}from"../platform.mjs";import{getCurrentInstance as t}from"../hooks/base.mjs";import{runtimeCapabilityRegistry as n}from"../capabilities.mjs";import{registerPageLayoutBridge as r,registerRuntimeLayoutHosts as i,resolveLayoutBridge as a,resolveLayoutHost as o,unregisterPageLayoutBridge as s,unregisterRuntimeLayoutHosts as c,useLayoutBridge as l,useLayoutHosts as u,waitForLayoutHost as d}from"../layoutBridge.mjs";import{getCurrentPageInstance as f}from"../register/component/lifecycle/platform.mjs";import{resolveRuntimePageLayoutName as p,setPageLayout as m,syncRuntimePageLayoutState as h,syncRuntimePageLayoutStateFromRuntime as g,usePageLayout as _}from"../pageLayout.mjs";import{installLayout as v}from"./layout.mjs";const y=(...e)=>(v(),r(...e)),b=(...e)=>(v(),s(...e)),x=(...e)=>(v(),a(...e)),S=(...e)=>(v(),o(...e)),C=(...e)=>(v(),d(...e)),w=(...e)=>(v(),l(...e)),T=(...e)=>(v(),i(...e)),E=(...e)=>(v(),c(...e)),D=(...e)=>(v(),u(...e)),O=(...e)=>(v(),_(...e));function k(r,i){var a;v();let o=e(),s=t(),c=s&&typeof s.route==`string`&&s.route?s:(a=f())==null?o[o.length-1]:a;if(c){var l;(l=n.layout)==null||l.attachPageSetter(c)}if(r===!1){m(!1);return}m(r,i)}const A=(...e)=>(v(),h(...e)),j=(...e)=>(v(),g(...e)),M=(...e)=>(v(),p(...e));export{y as registerPageLayoutBridge,T as registerRuntimeLayoutHosts,x as resolveLayoutBridge,S as resolveLayoutHost,M as resolveRuntimePageLayoutName,k as setPageLayout,A as syncRuntimePageLayoutState,j as syncRuntimePageLayoutStateFromRuntime,b as unregisterPageLayoutBridge,E as unregisterRuntimeLayoutHosts,w as useLayoutBridge,D as useLayoutHosts,O as usePageLayout,C as waitForLayoutHost};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { ComputedDefinitions } from "../types/core.mjs";
|
|
2
|
+
import "../types.mjs";
|
|
3
|
+
import { InlineExpressionMap } from "../register/inline.mjs";
|
|
4
|
+
import { LayoutHostBinding, TemplateRefBinding } from "../capabilities.mjs";
|
|
5
|
+
import { WEVU_BINDING_MANIFEST_KEY, WevuRuntimeBindingManifestV1 } from "@weapp-core/constants";
|
|
6
|
+
//#region src/runtime/features/scopedSlots.d.ts
|
|
7
|
+
export interface CreateWevuScopedSlotComponentOptions {
|
|
8
|
+
computed?: ComputedDefinitions;
|
|
9
|
+
inlineMap?: InlineExpressionMap;
|
|
10
|
+
layoutHosts?: LayoutHostBinding[];
|
|
11
|
+
templateRefs?: TemplateRefBinding[];
|
|
12
|
+
[WEVU_BINDING_MANIFEST_KEY]?: WevuRuntimeBindingManifestV1;
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* 创建编译器生成的作用域插槽组件。
|
|
16
|
+
*/
|
|
17
|
+
export declare function createWevuScopedSlotComponent(overrides?: CreateWevuScopedSlotComponentOptions): void;
|
|
18
|
+
/**
|
|
19
|
+
* 安装作用域插槽的 owner 生命周期与组件创建能力。
|
|
20
|
+
*/
|
|
21
|
+
export declare function installScopedSlots(): void;
|
|
22
|
+
//#endregion
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{getScopedSlotHostGlobalObject as e}from"../platform.mjs";import{RUNTIME_SCOPED_SLOT_STATE_KEY as t,getScopedSlotMountState as n,registerRuntimeCapability as r,requireRuntimeCapability as i}from"../capabilities.mjs";import{runTeardownSteps as a}from"../teardown.mjs";import{callNativeSetData as o,resolveNativeSetData as s}from"../register/runtimeInstance/utils.mjs";import{createWevuComponent as c}from"../define.mjs";import{allocateOwnerId as l,attachOwnerSnapshot as u,getOwnerProxy as d,mergeOwnerSnapshotProps as f,removeOwner as p,resolveOwnerSnapshot as m,updateOwnerSnapshot as h}from"../scopedSlots.mjs";import{createScopedSlotOptions as g}from"../define/scopedSlotOptions.mjs";import{WEVU_PROPS_KEY as _,WEVU_RUNTIME_OWNER_ID_KEY as v,WEVU_SCOPED_SLOT_CREATOR_KEY as y,WEVU_SLOT_OWNER_ID_KEY as b}from"@weapp-core/constants";const x={prepareMount(e){var r;let i=n(e);if(i)return i;let a=(r=e.data)==null?void 0:r[b],o=typeof a==`string`&&a?a:l(),s={ownerId:o,shouldFlushNativeOwnerId:typeof a==`string`&&a!==o};return Object.defineProperty(e,t,{value:s,configurable:!0,enumerable:!1,writable:!1}),s},attachMount(e,t,n,r){u(e,t,n.ownerId,{deferSnapshot:r})},refresh(e,t){var n;let r=e.__wevu;if(!r)return;let i=m(r),a=(n=e[_])==null?e.properties:n;f(i,a),h(t.ownerId,i,r.proxy,e)},syncNativeOwnerId(e,t){if(!t.shouldFlushNativeOwnerId)return;try{e.data&&typeof e.data==`object`&&(e.data[b]=t.ownerId)}catch(e){}let n=s(e);n&&o(e,n,{[b]:t.ownerId})},teardown(e){var r,i;let o=n(e),s=e,c=(r=(i=o==null?void 0:o.ownerId)==null?s[v]:i)==null?s[b]:r;a([()=>{typeof c==`string`&&c&&p(c)},()=>{delete s[t]}])},resolveLifecycleProxy(e){var t,n,r,i,a;let o=e,s=(t=(n=(r=o[v])==null?o[b]:r)==null?(i=e.data)==null?void 0:i[b]:n)==null?(a=e.properties)==null?void 0:a[b]:t;return typeof s==`string`&&s?d(s):void 0},allocateOwnerId:l};function S(e){i(`scopedSlots`,`createWevuScopedSlotComponent`);let t=g(e);c(t)}function C(){r(`scopedSlots`,x);let t=e();t&&t[y]!==S&&(t[y]=S)}export{S as createWevuScopedSlotComponent,C as installScopedSlots};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{registerRuntimeCapability as e}from"../capabilities.mjs";import{createSetDataHighFrequencyWarningMonitor as t}from"../register/setDataFrequencyWarning.mjs";const n={createMonitor:t};function r(){e(`setDataHighFrequencyWarning`,n)}export{r as installSetDataHighFrequencyWarning};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{registerRuntimeCapability as e}from"../capabilities.mjs";import{clearTemplateRefs as t,scheduleTemplateRefUpdate as n}from"../templateRefs.mjs";import{WEVU_TEMPLATE_REFS_KEY as r}from"@weapp-core/constants";const i={attachBindings(e,t){Object.defineProperty(e,r,{value:t,configurable:!0,enumerable:!1,writable:!1})},hasBindings(e){let t=e[r];return Array.isArray(t)&&t.length>0},schedule:n,scheduleOwner(e){let t=e.selectOwnerComponent;if(typeof t==`function`)try{let r=t.call(e);r&&r!==e&&n(r)}catch(e){}},clear:t};function a(){e(`templateRefs`,i)}export{a as installTemplateRefs};
|
|
@@ -11,8 +11,7 @@ export declare function onMounted(handler: () => void): void;
|
|
|
11
11
|
*/
|
|
12
12
|
export declare function onUpdated(handler: () => void): void;
|
|
13
13
|
/**
|
|
14
|
-
* Vue 3
|
|
15
|
-
* 小程序无 before-unload 生命周期,setup 时同步执行以保持语义。
|
|
14
|
+
* Vue 3 对齐:在卸载清理前触发,保持实例上下文和暴露方法可用。
|
|
16
15
|
*/
|
|
17
16
|
export declare function onBeforeUnmount(handler: () => void): void;
|
|
18
17
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{assertInSetup as e,callHookList as t,pushHook as n}from"./base.mjs";import{
|
|
1
|
+
import{assertInSetup as e,callHookList as t,pushHook as n}from"./base.mjs";import{WEVU_ON_BEFORE_UNMOUNT_HOOK as r,WEVU_ON_BEFORE_UPDATE_HOOK as i,WEVU_ON_UPDATED_HOOK as a}from"@weapp-core/constants";function o(t){n(e(`onMounted`),`onReady`,t)}function s(t){n(e(`onUpdated`),a,t)}function c(t){n(e(`onBeforeUnmount`),r,t)}function l(t){n(e(`onUnmounted`),`onUnload`,t)}function u(t){e(`onBeforeMount`),t()}function d(t){n(e(`onBeforeUpdate`),i,t)}function f(t){let r=e(`onErrorCaptured`);n(r,`onError`,e=>t(e,r,``))}function p(t){n(e(`onActivated`),`onShow`,t)}function m(t){n(e(`onDeactivated`),`onHide`,t)}function h(t){e(`onServerPrefetch`)}function g(e,n){t(e,n===`before`?i:a)}export{g as callUpdateHooks,p as onActivated,u as onBeforeMount,c as onBeforeUnmount,d as onBeforeUpdate,m as onDeactivated,f as onErrorCaptured,o as onMounted,h as onServerPrefetch,l as onUnmounted,s as onUpdated};
|