phecda-vue 1.5.4 → 1.5.6

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.
Files changed (2) hide show
  1. package/dist/index.d.ts +2 -5
  2. package/package.json +2 -2
package/dist/index.d.ts CHANGED
@@ -4,9 +4,6 @@ import * as vue from 'vue';
4
4
  import { Ref, App, UnwrapNestedRefs, Component, DefineComponent, VNode } from 'vue';
5
5
  import { Handler } from 'mitt';
6
6
 
7
- type PublicOnly<T> = {
8
- [K in keyof T]: T[K] extends Function ? T[K] : K extends string ? T[K] extends ('private' | 'protected') ? never : T[K] : never;
9
- };
10
7
  type ReplaceInstanceValues<I> = {
11
8
  [P in keyof I]: I[P] extends (...args: any[]) => any ? I[P] : Ref<I[P]>;
12
9
  };
@@ -43,7 +40,7 @@ type _DeepPartial<T> = {
43
40
  declare function useO<T extends new (...args: any) => any>(Model: T): UnwrapNestedRefs<InstanceType<T>>;
44
41
  declare function usePatch<T extends new (...args: any) => any>(Model: T, Data: _DeepPartial<InstanceType<T>>): void;
45
42
  declare function useR<T extends new (...args: any) => any>(Model: T): UnwrapNestedRefs<InstanceType<T>>;
46
- declare function useV<T extends new (...args: any) => any>(Model: T): PublicOnly<ReplaceInstanceValues<InstanceType<T>>>;
43
+ declare function useV<T extends new (...args: any) => any>(Model: T): ReplaceInstanceValues<InstanceType<T>>;
47
44
  declare function useEvent<Key extends keyof Events>(eventName: Key, cb: Handler<Events[Key]>): () => void;
48
45
  declare function initialize<M extends new (...args: any) => any>(Model: M): InstanceType<M> | void;
49
46
 
@@ -130,4 +127,4 @@ declare class PV {
130
127
  off<Key extends keyof Events>(type: Key, handler?: (arg: Events[Key]) => void): void;
131
128
  }
132
129
 
133
- export { EXPRESS_RE, FN_RE, GetDevUIRules, PV, PhecdaEmitter, PublicOnly, ReplaceInstanceValues, SchemaToObj, createFilter, createForm, createFormData, createLayer, createModal, createPhecda, createPipe, createTable, emitter, getActivePhecda, getAntDRules, getElementPlusRules, getNaiveUIRules, getNutUIRules, getReactiveMap, getVantRules, initialize, phecdaSymbol, setActivePhecda, useEvent, useO, usePatch, useR, useV };
130
+ export { EXPRESS_RE, FN_RE, GetDevUIRules, PV, PhecdaEmitter, ReplaceInstanceValues, SchemaToObj, createFilter, createForm, createFormData, createLayer, createModal, createPhecda, createPipe, createTable, emitter, getActivePhecda, getAntDRules, getElementPlusRules, getNaiveUIRules, getNutUIRules, getReactiveMap, getVantRules, initialize, phecdaSymbol, setActivePhecda, useEvent, useO, usePatch, useR, useV };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "phecda-vue",
3
- "version": "1.5.4",
3
+ "version": "1.5.6",
4
4
  "description": "provide store/form/table with phecda function to vue",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
@@ -14,7 +14,7 @@
14
14
  "dependencies": {
15
15
  "mitt": "^3.0.0",
16
16
  "vue": "^3.2.45",
17
- "phecda-core": "1.4.1"
17
+ "phecda-core": "1.5.0"
18
18
  },
19
19
  "devDependencies": {
20
20
  "tsup": "^6.5.0"