@rallie/vue
Advanced tools
Comparing version 0.13.1 to 0.14.0
import { UnwrapRef } from 'vue'; | ||
import type { Block, CreatedBlock } from '@rallie/block'; | ||
export declare function useBlockState<T extends Block<any>, U>(block: T, getter: (state: T['state']) => U): import("vue").Ref<UnwrapRef<U>>; | ||
export declare function useBlockEvents<T extends Block<any>>(block: T, events: Partial<T['events']>): void; | ||
export declare function useBlockMethods<T extends CreatedBlock<any>>(block: T, methods: Partial<T['methods']>): void; | ||
import type { BaseBlock, CreatedBlock } from '@rallie/block'; | ||
export declare function useBlockState<T extends BaseBlock<unknown>, U>(block: T, getter: (state: T['state']) => U): import("vue").Ref<UnwrapRef<U>>; | ||
export declare function useBlockEvents<T extends BaseBlock<unknown>>(block: T, events: Partial<T['events']>): void; | ||
export declare function useBlockMethods<T extends CreatedBlock<unknown>>(block: T, methods: Partial<T['methods']>): void; |
@@ -1,3 +0,3 @@ | ||
import type { Block, CreatedBlock } from '@rallie/block'; | ||
export declare function mixinBlockState<T extends Block<any>, U>(block: T, mapStateToComputed: (state: T['state']) => U): { | ||
import type { BaseBlock, CreatedBlock } from '@rallie/block'; | ||
export declare function mixinBlockState<T extends BaseBlock<unknown>, U>(block: T, mapStateToComputed: (state: T['state']) => U): { | ||
data(): { | ||
@@ -11,3 +11,3 @@ [x: string]: U; | ||
}; | ||
export declare function mixinBlockEvents<T extends Block<any>>(block: T, events: Partial<T['events']>): { | ||
export declare function mixinBlockEvents<T extends BaseBlock<unknown>>(block: T, events: Partial<T['events']>): { | ||
methods: Partial<T["events"]>; | ||
@@ -18,3 +18,3 @@ mounted(): void; | ||
}; | ||
export declare function mixinBlockMethods<T extends CreatedBlock<any>>(block: T, methods: Partial<T['methods']>): { | ||
export declare function mixinBlockMethods<T extends CreatedBlock<unknown>>(block: T, methods: Partial<T['methods']>): { | ||
methods: Partial<T["methods"]>; | ||
@@ -21,0 +21,0 @@ created(): void; |
{ | ||
"name": "@rallie/vue", | ||
"version": "0.13.1", | ||
"version": "0.14.0", | ||
"description": "vue binding for rallie", | ||
@@ -8,5 +8,17 @@ "author": "runnan <1608272694@qq.com>", | ||
"license": "MIT", | ||
"main": "./dist/index.umd.js", | ||
"module": "./dist/index.es.js", | ||
"types": "./dist/index.d.ts", | ||
"main": "./dist/hooks.umd.js", | ||
"module": "./dist/hooks.es.js", | ||
"types": "./dist/hooks.d.ts", | ||
"exports": { | ||
".": { | ||
"import": "./dist/hooks.es.js", | ||
"require": "./dist/hooks.umd.js", | ||
"types": "./dist/hooks.d.ts" | ||
}, | ||
"./mixins": { | ||
"import": "./dist/mixins.es.js", | ||
"require": "./dist/mixins.umd.js", | ||
"types": "./dist/mixins.d.ts" | ||
} | ||
}, | ||
"repository": { | ||
@@ -30,5 +42,5 @@ "type": "git", | ||
"devDependencies": { | ||
"@rallie/block": "0.13.0" | ||
"@rallie/block": "0.14.0" | ||
}, | ||
"gitHead": "c2af1f1044869fe6f9263c26378ed1f8ed02b424" | ||
"gitHead": "82e05f6b9be0e90ddffbcaccd72960c0a9b7bcb0" | ||
} |
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
Minified code
QualityThis package contains minified code. This may be harmless in some cases where minified code is included in packaged libraries, however packages on npm should not minify code.
Found 1 instance in 1 package
6923
10
42
3
1