vue-tippy 6.0.0-alpha.60 → 6.0.0-alpha.61
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/vue-tippy.cjs +1 -1
- package/dist/vue-tippy.d.ts +2 -1
- package/dist/vue-tippy.esm-browser.js +1 -1
- package/dist/vue-tippy.iife.js +1 -1
- package/dist/vue-tippy.iife.prod.js +1 -1
- package/dist/vue-tippy.mjs +1 -1
- package/dist/vue-tippy.prod.cjs +1 -1
- package/package.json +1 -1
- package/src/types/index.ts +11 -2
package/dist/vue-tippy.cjs
CHANGED
package/dist/vue-tippy.d.ts
CHANGED
@@ -11,6 +11,7 @@ import { PropType } from 'vue';
|
|
11
11
|
import { Ref } from 'vue';
|
12
12
|
import { roundArrow } from 'tippy.js';
|
13
13
|
import tippy from 'tippy.js';
|
14
|
+
import { UnwrapNestedRefs } from 'vue';
|
14
15
|
import { VNode } from 'vue';
|
15
16
|
|
16
17
|
export declare const directive: Directive;
|
@@ -410,7 +411,7 @@ export declare const Tippy: import("vue").DefineComponent<{
|
|
410
411
|
}>;
|
411
412
|
export { tippy }
|
412
413
|
|
413
|
-
export declare type TippyComponent = InstanceType<typeof Tippy
|
414
|
+
export declare type TippyComponent = InstanceType<typeof Tippy & UnwrapNestedRefs<Pick<ReturnType<typeof useTippy>, 'tippy' | 'refresh' | 'refreshContent' | 'setContent' | 'setProps' | 'destroy' | 'hide' | 'show' | 'disable' | 'enable' | 'unmount' | 'mount' | 'state'>>>;
|
414
415
|
|
415
416
|
export declare type TippyContent = Content | VNode | Component | Ref;
|
416
417
|
|
package/dist/vue-tippy.iife.js
CHANGED
package/dist/vue-tippy.mjs
CHANGED
package/dist/vue-tippy.prod.cjs
CHANGED
package/package.json
CHANGED
package/src/types/index.ts
CHANGED
@@ -1,6 +1,7 @@
|
|
1
1
|
import Tippy from '../components/Tippy'
|
2
|
+
import { useTippy } from '../composables'
|
2
3
|
import { Props, Content, DefaultProps, Instance } from 'tippy.js'
|
3
|
-
import { VNode, Ref, Component } from 'vue'
|
4
|
+
import { VNode, Ref, Component, UnwrapNestedRefs } from 'vue'
|
4
5
|
|
5
6
|
export declare type TippyContent = Content | VNode | Component | Ref
|
6
7
|
export declare type TippyTarget =
|
@@ -18,7 +19,15 @@ export declare type TippyOptions = Partial<
|
|
18
19
|
}
|
19
20
|
>
|
20
21
|
|
21
|
-
export declare type TippyComponent = InstanceType<
|
22
|
+
export declare type TippyComponent = InstanceType<
|
23
|
+
typeof Tippy &
|
24
|
+
UnwrapNestedRefs<
|
25
|
+
Pick<
|
26
|
+
ReturnType<typeof useTippy>,
|
27
|
+
'tippy' | 'refresh' | 'refreshContent' | 'setContent' | 'setProps' | 'destroy' | 'hide' | 'show' | 'disable' | 'enable' | 'unmount' | 'mount' | 'state'
|
28
|
+
>
|
29
|
+
>
|
30
|
+
>
|
22
31
|
|
23
32
|
export interface TippyPluginOptions {
|
24
33
|
directive?: string
|