wevu 1.1.4 → 1.2.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/dist/index.d.mts CHANGED
@@ -1,6 +1,5 @@
1
1
  import { t as WeappIntrinsicElements } from "./weappIntrinsicElements-zTAqU5H3.mjs";
2
- import { Ref as Ref$1, ShallowRef as ShallowRef$1 } from "./vue-types";
3
- import { AllowedComponentProps as AllowedComponentProps$1, ComponentCustomProps as ComponentCustomProps$1, ComponentOptionsMixin as ComponentOptionsMixin$1, ComputedOptions, DefineComponent as DefineComponent$1, EmitsOptions as EmitsOptions$1, MethodOptions, ObjectDirective as ObjectDirective$1, PublicProps as PublicProps$1, ShallowUnwrapRef as ShallowUnwrapRef$1, SlotsType, VNode as VNode$1, VNodeProps as VNodeProps$1 } from "./vue-types";
2
+ import { AllowedComponentProps as AllowedComponentProps$1, ComponentCustomProps as ComponentCustomProps$1, ComponentOptionsMixin as ComponentOptionsMixin$1, ComputedOptions, DefineComponent as DefineComponent$1, EmitsOptions as EmitsOptions$1, MethodOptions, ObjectDirective as ObjectDirective$1, PublicProps as PublicProps$1, Ref as Ref$1, ShallowRef as ShallowRef$1, ShallowUnwrapRef as ShallowUnwrapRef$1, SlotsType, VNode as VNode$1, VNodeProps as VNodeProps$1 } from "vue";
4
3
 
5
4
  //#region src/reactivity/ref.d.ts
6
5
  type Ref<T$1 = any, S = T$1> = Ref$2<T$1, S>;
@@ -720,6 +719,12 @@ declare global {
720
719
  interface HTMLElementTagNameMap extends WeappTemplateRefElements {}
721
720
  }
722
721
  //#endregion
722
+ //#region src/vue-augment.d.ts
723
+ declare module '@vue/runtime-core' {
724
+ interface GlobalComponents extends GlobalComponents {}
725
+ interface GlobalDirectives extends GlobalDirectives {}
726
+ }
727
+ //#endregion
723
728
  //#region src/runtime/app.d.ts
724
729
  declare function createApp<D extends object, C extends ComputedDefinitions, M extends MethodDefinitions>(options: CreateAppOptions<D, C, M>): RuntimeApp<D, C, M>;
725
730
  //#endregion
@@ -1242,9 +1247,4 @@ declare function createStore(): StoreManager;
1242
1247
  type StoreToRefsResult<T$1 extends Record<string, any>> = { [K in keyof T$1]: T$1[K] extends ((...args: any[]) => any) ? T$1[K] : T$1[K] extends Ref<infer V> ? Ref<V> : Ref<T$1[K]> };
1243
1248
  declare function storeToRefs<T$1 extends Record<string, any>>(store: T$1): StoreToRefsResult<T$1>;
1244
1249
  //#endregion
1245
- //#region src/index.d.ts
1246
- declare module './vue-types' {
1247
- export * from 'wevu';
1248
- }
1249
- //#endregion
1250
1250
  export { ActionSubscriber, type AllowedComponentProps, type AppConfig, type ComponentCustomProps, ComponentDefinition, type ComponentOptionsMixin, type ComponentPropsOptions, type ComponentPublicInstance, type ComputedDefinitions, ComputedGetter, ComputedRef, ComputedSetter, type CreateAppOptions, type DefineAppOptions, type DefineComponent, type DefineComponentOptions, DefineStoreOptions, EffectScope, EmitsOptions, type ExtractComputed, type ExtractDefaultPropTypes, type ExtractMethods, type ExtractPropTypes, type ExtractPublicPropTypes, GlobalComponents, GlobalDirectives, type InferPropType, type InferProps, type InternalRuntimeState, type InternalRuntimeStateFields, type MethodDefinitions, type MiniProgramAdapter, type MiniProgramAppOptions, type MiniProgramBehaviorIdentifier, type MiniProgramComponentBehaviorOptions, type MiniProgramComponentOptions, type MiniProgramComponentRawOptions, type MiniProgramInstance, type MiniProgramPageLifetimes, type ModelBinding, type ModelBindingOptions, type ModelBindingPayload, type MutationKind, type MutationOp, type MutationRecord, MutationType, type ObjectDirective, type PageFeatures, type PrelinkReactiveTreeOptions, type PropConstructor, type PropOptions, type PropType, type PublicProps, Ref, type RuntimeApp, type RuntimeInstance, type SetDataDebugInfo, type SetDataSnapshotOptions, type SetupContext, type SetupFunction, ShallowRef, type ShallowUnwrapRef, StoreManager, SubscriptionCallback, TemplateRef, TemplateRefValue, TemplateRefs, ToRefs, type TriggerEventOptions, type VNode, type VNodeProps, WatchOptions, WatchStopHandle, WevuDefaults, type WevuPlugin, WritableComputedOptions, WritableComputedRef, addMutationRecorder, batch, callHookList, callHookReturn, callUpdateHooks, computed, createApp, createStore, createWevuComponent, createWevuScopedSlotComponent, defineComponent, defineEmits, defineExpose, defineModel, defineOptions, defineProps, defineSlots, defineStore, effect, effectScope, endBatch, getCurrentInstance, getCurrentScope, getCurrentSetupContext, getDeepWatchStrategy, getReactiveVersion, inject, injectGlobal, isNoSetData, isRaw, isReactive, isRef, isShallowReactive, isShallowRef, markNoSetData, markRaw, mergeModels, mountRuntimeInstance, nextTick, normalizeClass, normalizeStyle, onActivated, onAddToFavorites, onBeforeMount, onBeforeUnmount, onBeforeUpdate, onDeactivated, onError, onErrorCaptured, onHide, onLaunch, onLoad, onMounted, onMoved, onPageNotFound, onPageScroll, onPullDownRefresh, onReachBottom, onReady, onResize, onRouteDone, onSaveExitState, onScopeDispose, onServerPrefetch, onShareAppMessage, onShareTimeline, onShow, onTabItemTap, onThemeChange, onUnhandledRejection, onUnload, onUnmounted, onUpdated, prelinkReactiveTree, provide, provideGlobal, reactive, readonly, ref, registerApp, registerComponent, removeMutationRecorder, resetWevuDefaults, runSetupFunction, setCurrentInstance, setCurrentSetupContext, setDeepWatchStrategy, setWevuDefaults, shallowReactive, shallowRef, startBatch, stop, storeToRefs, teardownRuntimeInstance, toRaw, toRef, toRefs, touchReactive, traverse, triggerRef, unref, useAttrs, useBindModel, useModel, useSlots, useTemplateRef, watch, watchEffect, withDefaults };
@@ -10,12 +10,8 @@ declare namespace JSX {
10
10
  interface ElementAttributesProperty {
11
11
  $props: Record<string, any>;
12
12
  }
13
- interface IntrinsicAttributes {
14
- [key: string]: any;
15
- }
16
- interface IntrinsicElements extends GlobalComponents, WeappIntrinsicElements {
17
- [key: string]: any;
18
- }
13
+ interface IntrinsicAttributes {}
14
+ interface IntrinsicElements extends GlobalComponents, WeappIntrinsicElements {}
19
15
  }
20
16
  //#endregion
21
17
  export { JSX };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "wevu",
3
3
  "type": "module",
4
- "version": "1.1.4",
4
+ "version": "1.2.0",
5
5
  "description": "Vue 3 风格的小程序运行时,包含响应式、diff+setData 与轻量状态管理",
6
6
  "author": "ice breaker <1324318532@qq.com>",
7
7
  "license": "MIT",
@@ -65,11 +65,14 @@
65
65
  "peerDependencies": {
66
66
  "miniprogram-api-typings": "^5.0.0"
67
67
  },
68
+ "dependencies": {
69
+ "vue": "^3.5.27"
70
+ },
68
71
  "devDependencies": {},
69
72
  "scripts": {
70
73
  "dev": "tsdown -w",
71
- "build": "tsdown && node scripts/vendor-vue-dts.mjs && rollup -c rollup.types.config.mjs && node scripts/patch-vue-dts.mjs",
72
- "build:types": "node scripts/vendor-vue-dts.mjs && rollup -c rollup.types.config.mjs && node scripts/patch-vue-dts.mjs",
74
+ "build": "tsdown",
75
+ "build:types": "tsdown --dts",
73
76
  "test": "vitest run",
74
77
  "test:dev": "vitest",
75
78
  "test:types": "tsd",