@thesonicprint/haptics 1.0.0 → 1.0.1
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/package.json +1 -1
- package/dist/index.d.mts +0 -61
- package/dist/index.d.ts +0 -61
package/package.json
CHANGED
package/dist/index.d.mts
DELETED
|
@@ -1,61 +0,0 @@
|
|
|
1
|
-
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
-
|
|
3
|
-
declare function useHaptics(): {
|
|
4
|
-
isSupported: any;
|
|
5
|
-
vibrate: (pattern: any) => any;
|
|
6
|
-
fadeIn: (duration: any) => void;
|
|
7
|
-
fadeOut: (duration: any) => void;
|
|
8
|
-
notification: (duration: any) => void;
|
|
9
|
-
heartbeat: (duration: any) => void;
|
|
10
|
-
clunk: (duration: any) => void;
|
|
11
|
-
pwm: (duration: any, on: any, off: any) => void;
|
|
12
|
-
createPattern: (...args: any[]) => any;
|
|
13
|
-
createPatternPWM: (on: any, off: any) => any;
|
|
14
|
-
};
|
|
15
|
-
|
|
16
|
-
declare function useHapticFeedback(pattern?: number, options?: {}): (customPattern: any) => any;
|
|
17
|
-
|
|
18
|
-
declare function useHapticRecorder(): {
|
|
19
|
-
isRecording: boolean;
|
|
20
|
-
recordedPattern: null;
|
|
21
|
-
startRecording: () => void;
|
|
22
|
-
stopRecording: () => any;
|
|
23
|
-
playback: (pattern: any) => void;
|
|
24
|
-
reset: () => void;
|
|
25
|
-
};
|
|
26
|
-
|
|
27
|
-
declare function HapticsProvider({ children, defaultEnabled }: {
|
|
28
|
-
children: any;
|
|
29
|
-
defaultEnabled?: boolean | undefined;
|
|
30
|
-
}): react_jsx_runtime.JSX.Element;
|
|
31
|
-
declare function useHapticsContext(): never;
|
|
32
|
-
|
|
33
|
-
declare const enabled: boolean;
|
|
34
|
-
declare function vibrate(pattern: any): boolean;
|
|
35
|
-
declare function record(): void;
|
|
36
|
-
declare function finish(): number[];
|
|
37
|
-
declare const fadeIn: ((args: any) => void) | null;
|
|
38
|
-
declare const fadeOut: ((args: any) => void) | null;
|
|
39
|
-
declare const notification: ((args: any) => void) | null;
|
|
40
|
-
declare const heartbeat: ((args: any) => void) | null;
|
|
41
|
-
declare const clunk: ((args: any) => void) | null;
|
|
42
|
-
declare function pwm(duration: any, on: any, off: any): void;
|
|
43
|
-
declare function createPatternPWM(on: any, off: any): (args: any) => void;
|
|
44
|
-
declare function createPattern(...args: any[]): ((args: any) => void) | null;
|
|
45
|
-
|
|
46
|
-
declare namespace _default {
|
|
47
|
-
export { enabled };
|
|
48
|
-
export { vibrate };
|
|
49
|
-
export { record };
|
|
50
|
-
export { finish };
|
|
51
|
-
export { fadeIn };
|
|
52
|
-
export { fadeOut };
|
|
53
|
-
export { notification };
|
|
54
|
-
export { heartbeat };
|
|
55
|
-
export { clunk };
|
|
56
|
-
export { pwm };
|
|
57
|
-
export { createPatternPWM };
|
|
58
|
-
export { createPattern };
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
export { HapticsProvider, clunk, createPattern, createPatternPWM, _default as default, enabled, fadeIn, fadeOut, finish, heartbeat, notification, pwm, record, useHapticFeedback, useHapticRecorder, useHaptics, useHapticsContext, vibrate };
|
package/dist/index.d.ts
DELETED
|
@@ -1,61 +0,0 @@
|
|
|
1
|
-
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
-
|
|
3
|
-
declare function useHaptics(): {
|
|
4
|
-
isSupported: any;
|
|
5
|
-
vibrate: (pattern: any) => any;
|
|
6
|
-
fadeIn: (duration: any) => void;
|
|
7
|
-
fadeOut: (duration: any) => void;
|
|
8
|
-
notification: (duration: any) => void;
|
|
9
|
-
heartbeat: (duration: any) => void;
|
|
10
|
-
clunk: (duration: any) => void;
|
|
11
|
-
pwm: (duration: any, on: any, off: any) => void;
|
|
12
|
-
createPattern: (...args: any[]) => any;
|
|
13
|
-
createPatternPWM: (on: any, off: any) => any;
|
|
14
|
-
};
|
|
15
|
-
|
|
16
|
-
declare function useHapticFeedback(pattern?: number, options?: {}): (customPattern: any) => any;
|
|
17
|
-
|
|
18
|
-
declare function useHapticRecorder(): {
|
|
19
|
-
isRecording: boolean;
|
|
20
|
-
recordedPattern: null;
|
|
21
|
-
startRecording: () => void;
|
|
22
|
-
stopRecording: () => any;
|
|
23
|
-
playback: (pattern: any) => void;
|
|
24
|
-
reset: () => void;
|
|
25
|
-
};
|
|
26
|
-
|
|
27
|
-
declare function HapticsProvider({ children, defaultEnabled }: {
|
|
28
|
-
children: any;
|
|
29
|
-
defaultEnabled?: boolean | undefined;
|
|
30
|
-
}): react_jsx_runtime.JSX.Element;
|
|
31
|
-
declare function useHapticsContext(): never;
|
|
32
|
-
|
|
33
|
-
declare const enabled: boolean;
|
|
34
|
-
declare function vibrate(pattern: any): boolean;
|
|
35
|
-
declare function record(): void;
|
|
36
|
-
declare function finish(): number[];
|
|
37
|
-
declare const fadeIn: ((args: any) => void) | null;
|
|
38
|
-
declare const fadeOut: ((args: any) => void) | null;
|
|
39
|
-
declare const notification: ((args: any) => void) | null;
|
|
40
|
-
declare const heartbeat: ((args: any) => void) | null;
|
|
41
|
-
declare const clunk: ((args: any) => void) | null;
|
|
42
|
-
declare function pwm(duration: any, on: any, off: any): void;
|
|
43
|
-
declare function createPatternPWM(on: any, off: any): (args: any) => void;
|
|
44
|
-
declare function createPattern(...args: any[]): ((args: any) => void) | null;
|
|
45
|
-
|
|
46
|
-
declare namespace _default {
|
|
47
|
-
export { enabled };
|
|
48
|
-
export { vibrate };
|
|
49
|
-
export { record };
|
|
50
|
-
export { finish };
|
|
51
|
-
export { fadeIn };
|
|
52
|
-
export { fadeOut };
|
|
53
|
-
export { notification };
|
|
54
|
-
export { heartbeat };
|
|
55
|
-
export { clunk };
|
|
56
|
-
export { pwm };
|
|
57
|
-
export { createPatternPWM };
|
|
58
|
-
export { createPattern };
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
export { HapticsProvider, clunk, createPattern, createPatternPWM, _default as default, enabled, fadeIn, fadeOut, finish, heartbeat, notification, pwm, record, useHapticFeedback, useHapticRecorder, useHaptics, useHapticsContext, vibrate };
|