@histoire/vendors 0.10.2 → 0.10.3
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/client/node_modules/@vueuse/core/node_modules/vue-demi/lib/v2.7/index.d.ts +2 -19
- package/dist/client/node_modules/@vueuse/core/node_modules/vue-demi/package.json +1 -1
- package/dist/client/node_modules/pinia/node_modules/vue-demi/lib/v2.7/index.d.ts +2 -19
- package/dist/client/node_modules/pinia/node_modules/vue-demi/package.json +1 -1
- package/package.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import Vue from 'vue'
|
|
2
|
-
import type { PluginFunction, PluginObject, VueConstructor,
|
|
2
|
+
import type { PluginFunction, PluginObject, VueConstructor, Directive, InjectionKey } from 'vue'
|
|
3
3
|
|
|
4
4
|
declare const isVue2: boolean
|
|
5
5
|
declare const isVue3: boolean
|
|
@@ -20,23 +20,6 @@ export * from 'vue'
|
|
|
20
20
|
export { V as Vue, Vue2, isVue2, isVue3, version, install }
|
|
21
21
|
|
|
22
22
|
// #region createApp polyfill
|
|
23
|
-
export type DirectiveModifiers = Record<string, boolean>
|
|
24
|
-
export interface DirectiveBinding<V> extends Readonly<VNodeDirective> {
|
|
25
|
-
readonly modifiers: DirectiveModifiers
|
|
26
|
-
readonly value: V
|
|
27
|
-
readonly oldValue: V | null
|
|
28
|
-
}
|
|
29
|
-
export type DirectiveHook<T = any, Prev = VNode | null, V = any> = (el: T, binding: DirectiveBinding<V>, vnode: VNode, prevVNode: Prev) => void
|
|
30
|
-
export interface ObjectDirective<T = any, V = any> {
|
|
31
|
-
bind?: DirectiveHook<T, any, V>
|
|
32
|
-
inserted?: DirectiveHook<T, any, V>
|
|
33
|
-
update?: DirectiveHook<T, any, V>
|
|
34
|
-
componentUpdated?: DirectiveHook<T, any, V>
|
|
35
|
-
unbind?: DirectiveHook<T, any, V>
|
|
36
|
-
}
|
|
37
|
-
export type FunctionDirective<T = any, V = any> = DirectiveHook<T, any, V>
|
|
38
|
-
export type Directive<T = any, V = any> = ObjectDirective<T, V> | FunctionDirective<T, V>
|
|
39
|
-
export interface InjectionKey<T> extends Symbol {}
|
|
40
23
|
export interface App<T = any> {
|
|
41
24
|
config: VueConstructor['config']
|
|
42
25
|
use: VueConstructor['use']
|
|
@@ -44,7 +27,7 @@ export interface App<T = any> {
|
|
|
44
27
|
component: VueConstructor['component']
|
|
45
28
|
directive(name: string): Directive | undefined
|
|
46
29
|
directive(name: string, directive: Directive): this
|
|
47
|
-
provide<T>(key: InjectionKey<T> |
|
|
30
|
+
provide<T>(key: InjectionKey<T> | string, value: T): this
|
|
48
31
|
mount: Vue['$mount']
|
|
49
32
|
unmount: Vue['$destroy']
|
|
50
33
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import Vue from 'vue'
|
|
2
|
-
import type { PluginFunction, PluginObject, VueConstructor,
|
|
2
|
+
import type { PluginFunction, PluginObject, VueConstructor, Directive, InjectionKey } from 'vue'
|
|
3
3
|
|
|
4
4
|
declare const isVue2: boolean
|
|
5
5
|
declare const isVue3: boolean
|
|
@@ -20,23 +20,6 @@ export * from 'vue'
|
|
|
20
20
|
export { V as Vue, Vue2, isVue2, isVue3, version, install }
|
|
21
21
|
|
|
22
22
|
// #region createApp polyfill
|
|
23
|
-
export type DirectiveModifiers = Record<string, boolean>
|
|
24
|
-
export interface DirectiveBinding<V> extends Readonly<VNodeDirective> {
|
|
25
|
-
readonly modifiers: DirectiveModifiers
|
|
26
|
-
readonly value: V
|
|
27
|
-
readonly oldValue: V | null
|
|
28
|
-
}
|
|
29
|
-
export type DirectiveHook<T = any, Prev = VNode | null, V = any> = (el: T, binding: DirectiveBinding<V>, vnode: VNode, prevVNode: Prev) => void
|
|
30
|
-
export interface ObjectDirective<T = any, V = any> {
|
|
31
|
-
bind?: DirectiveHook<T, any, V>
|
|
32
|
-
inserted?: DirectiveHook<T, any, V>
|
|
33
|
-
update?: DirectiveHook<T, any, V>
|
|
34
|
-
componentUpdated?: DirectiveHook<T, any, V>
|
|
35
|
-
unbind?: DirectiveHook<T, any, V>
|
|
36
|
-
}
|
|
37
|
-
export type FunctionDirective<T = any, V = any> = DirectiveHook<T, any, V>
|
|
38
|
-
export type Directive<T = any, V = any> = ObjectDirective<T, V> | FunctionDirective<T, V>
|
|
39
|
-
export interface InjectionKey<T> extends Symbol {}
|
|
40
23
|
export interface App<T = any> {
|
|
41
24
|
config: VueConstructor['config']
|
|
42
25
|
use: VueConstructor['use']
|
|
@@ -44,7 +27,7 @@ export interface App<T = any> {
|
|
|
44
27
|
component: VueConstructor['component']
|
|
45
28
|
directive(name: string): Directive | undefined
|
|
46
29
|
directive(name: string, directive: Directive): this
|
|
47
|
-
provide<T>(key: InjectionKey<T> |
|
|
30
|
+
provide<T>(key: InjectionKey<T> | string, value: T): this
|
|
48
31
|
mount: Vue['$mount']
|
|
49
32
|
unmount: Vue['$destroy']
|
|
50
33
|
}
|