vue-tippy 6.0.0-alpha.60 → 6.0.0-alpha.61

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.
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * vue-tippy v6.0.0-alpha.60
2
+ * vue-tippy v6.0.0-alpha.61
3
3
  * (c) 2022
4
4
  * @license MIT
5
5
  */
@@ -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
 
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * vue-tippy v6.0.0-alpha.60
2
+ * vue-tippy v6.0.0-alpha.61
3
3
  * (c) 2022
4
4
  * @license MIT
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * vue-tippy v6.0.0-alpha.60
2
+ * vue-tippy v6.0.0-alpha.61
3
3
  * (c) 2022
4
4
  * @license MIT
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * vue-tippy v6.0.0-alpha.60
2
+ * vue-tippy v6.0.0-alpha.61
3
3
  * (c) 2022
4
4
  * @license MIT
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * vue-tippy v6.0.0-alpha.60
2
+ * vue-tippy v6.0.0-alpha.61
3
3
  * (c) 2022
4
4
  * @license MIT
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * vue-tippy v6.0.0-alpha.60
2
+ * vue-tippy v6.0.0-alpha.61
3
3
  * (c) 2022
4
4
  * @license MIT
5
5
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vue-tippy",
3
- "version": "6.0.0-alpha.60",
3
+ "version": "6.0.0-alpha.61",
4
4
  "main": "index.js",
5
5
  "module": "dist/vue-tippy.mjs",
6
6
  "unpkg": "dist/vue-tippy.iife.js",
@@ -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<typeof Tippy>
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