@vueuse/integrations 6.3.2 → 6.5.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/index.d.ts CHANGED
@@ -4,8 +4,9 @@ import { AxiosResponse, AxiosError, AxiosRequestConfig, AxiosInstance } from 'ax
4
4
  import * as universal_cookie from 'universal-cookie';
5
5
  import universal_cookie__default from 'universal-cookie';
6
6
  import { IncomingMessage } from 'http';
7
- import { Fn, MaybeElementRef } from '@vueuse/core';
8
- import { Options, ActivateOptions, DeactivateOptions } from 'focus-trap';
7
+ import { Options, Drauu, Brush } from 'drauu';
8
+ import { EventHookOn, MaybeElementRef, Fn } from '@vueuse/core';
9
+ import { Options as Options$1, ActivateOptions, DeactivateOptions } from 'focus-trap';
9
10
  import { MaybeRef } from '@vueuse/shared';
10
11
  import { JwtPayload, JwtHeader } from 'jwt-decode';
11
12
  import nprogress, { NProgressOptions } from 'nprogress';
@@ -94,7 +95,34 @@ declare function useCookies(dependencies?: string[] | null, { doNotParse, autoUp
94
95
  removeChangeListener: (callback: universal_cookie.CookieChangeListener) => void;
95
96
  };
96
97
 
97
- interface UseFocusTrapOptions extends Options {
98
+ declare type UseDrauuOptions = Omit<Options, 'el'>;
99
+ interface UseDrauuReturn {
100
+ drauuInstance: Ref<Drauu | undefined>;
101
+ load: (svg: string) => void;
102
+ dump: () => string | undefined;
103
+ clear: () => void;
104
+ cancel: () => void;
105
+ undo: () => boolean | undefined;
106
+ redo: () => boolean | undefined;
107
+ canUndo: Ref<boolean>;
108
+ canRedo: Ref<boolean>;
109
+ brush: Ref<Brush>;
110
+ onChanged: EventHookOn;
111
+ onCommitted: EventHookOn;
112
+ onStart: EventHookOn;
113
+ onEnd: EventHookOn;
114
+ onCanceled: EventHookOn;
115
+ }
116
+ /**
117
+ * Reactive drauu
118
+ *
119
+ * @see https://vueuse.org/useDrauu
120
+ * @param target The target svg element
121
+ * @param options Drauu Options
122
+ */
123
+ declare function useDrauu(target: MaybeElementRef, options?: UseDrauuOptions): UseDrauuReturn;
124
+
125
+ interface UseFocusTrapOptions extends Options$1 {
98
126
  /**
99
127
  * Immediately activate the trap
100
128
  */
@@ -194,4 +222,4 @@ declare function useNProgress(currentProgress?: MaybeRef<number | null | undefin
194
222
  */
195
223
  declare function useQRCode(text: MaybeRef<string>, options?: QRCode.QRCodeToDataURLOptions): vue_demi.Ref<string>;
196
224
 
197
- export { JwtOptions, JwtResult, UseAxiosReturn, UseFocusTrapOptions, UseFocusTrapReturn, createCookies, useAxios, useCookies, useFocusTrap, useJwt, useNProgress, useQRCode };
225
+ export { JwtOptions, JwtResult, UseAxiosReturn, UseDrauuOptions, UseDrauuReturn, UseFocusTrapOptions, UseFocusTrapReturn, createCookies, useAxios, useCookies, useDrauu, useFocusTrap, useJwt, useNProgress, useQRCode };