react-haptics 1.1.0

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/index.cjs ADDED
@@ -0,0 +1,36 @@
1
+ 'use strict';
2
+
3
+ var react = require('@haptics/react');
4
+ var core = require('@haptics/core');
5
+
6
+ var isIOS = core.isIOS();
7
+ var isVibrationSupported = core.isVibrationSupported();
8
+
9
+ Object.defineProperty(exports, "HapticsProvider", {
10
+ enumerable: true,
11
+ get: function () { return react.HapticsProvider; }
12
+ });
13
+ Object.defineProperty(exports, "useHaptics", {
14
+ enumerable: true,
15
+ get: function () { return react.useHaptics; }
16
+ });
17
+ Object.defineProperty(exports, "PRESETS", {
18
+ enumerable: true,
19
+ get: function () { return core.PRESETS; }
20
+ });
21
+ Object.defineProperty(exports, "iosTick", {
22
+ enumerable: true,
23
+ get: function () { return core.iosTick; }
24
+ });
25
+ Object.defineProperty(exports, "schedulePattern", {
26
+ enumerable: true,
27
+ get: function () { return core.schedulePattern; }
28
+ });
29
+ Object.defineProperty(exports, "toVibrateSequence", {
30
+ enumerable: true,
31
+ get: function () { return core.toVibrateSequence; }
32
+ });
33
+ exports.isIOS = isIOS;
34
+ exports.isVibrationSupported = isVibrationSupported;
35
+ //# sourceMappingURL=index.cjs.map
36
+ //# sourceMappingURL=index.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/index.ts"],"names":["_isIOS","_isVibrationSupported"],"mappings":";;;;;AAoBO,IAAM,QAAiBA,UAAA;AAGvB,IAAM,uBAAgCC,yBAAA","file":"index.cjs","sourcesContent":["// Re-export everything from @haptics/react\nexport { HapticsProvider, useHaptics } from \"@haptics/react\";\nexport type { HapticsProviderProps, HapticsContextValue } from \"@haptics/react\";\n\n// Re-export core utilities\nexport {\n\tPRESETS,\n\tiosTick,\n\tschedulePattern,\n\ttoVibrateSequence,\n} from \"@haptics/core\";\nexport type { Vibration, HapticPattern, PresetName } from \"@haptics/core\";\n\n// Backwards-compatible boolean re-exports (deprecated)\nimport {\n\tisIOS as _isIOS,\n\tisVibrationSupported as _isVibrationSupported,\n} from \"@haptics/core\";\n\n/** @deprecated Import from '@haptics/core' and call as isIOS() */\nexport const isIOS: boolean = _isIOS();\n\n/** @deprecated Import from '@haptics/core' and call as isVibrationSupported() */\nexport const isVibrationSupported: boolean = _isVibrationSupported();\n"]}
@@ -0,0 +1,9 @@
1
+ export { HapticsContextValue, HapticsProvider, HapticsProviderProps, useHaptics } from '@haptics/react';
2
+ export { HapticPattern, PRESETS, PresetName, Vibration, iosTick, schedulePattern, toVibrateSequence } from '@haptics/core';
3
+
4
+ /** @deprecated Import from '@haptics/core' and call as isIOS() */
5
+ declare const isIOS: boolean;
6
+ /** @deprecated Import from '@haptics/core' and call as isVibrationSupported() */
7
+ declare const isVibrationSupported: boolean;
8
+
9
+ export { isIOS, isVibrationSupported };
@@ -0,0 +1,9 @@
1
+ export { HapticsContextValue, HapticsProvider, HapticsProviderProps, useHaptics } from '@haptics/react';
2
+ export { HapticPattern, PRESETS, PresetName, Vibration, iosTick, schedulePattern, toVibrateSequence } from '@haptics/core';
3
+
4
+ /** @deprecated Import from '@haptics/core' and call as isIOS() */
5
+ declare const isIOS: boolean;
6
+ /** @deprecated Import from '@haptics/core' and call as isVibrationSupported() */
7
+ declare const isVibrationSupported: boolean;
8
+
9
+ export { isIOS, isVibrationSupported };
package/dist/index.js ADDED
@@ -0,0 +1,10 @@
1
+ export { HapticsProvider, useHaptics } from '@haptics/react';
2
+ import { isIOS as isIOS$1, isVibrationSupported as isVibrationSupported$1 } from '@haptics/core';
3
+ export { PRESETS, iosTick, schedulePattern, toVibrateSequence } from '@haptics/core';
4
+
5
+ var isIOS = isIOS$1();
6
+ var isVibrationSupported = isVibrationSupported$1();
7
+
8
+ export { isIOS, isVibrationSupported };
9
+ //# sourceMappingURL=index.js.map
10
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/index.ts"],"names":["_isIOS","_isVibrationSupported"],"mappings":";;;;AAoBO,IAAM,QAAiBA,OAAA;AAGvB,IAAM,uBAAgCC,sBAAA","file":"index.js","sourcesContent":["// Re-export everything from @haptics/react\nexport { HapticsProvider, useHaptics } from \"@haptics/react\";\nexport type { HapticsProviderProps, HapticsContextValue } from \"@haptics/react\";\n\n// Re-export core utilities\nexport {\n\tPRESETS,\n\tiosTick,\n\tschedulePattern,\n\ttoVibrateSequence,\n} from \"@haptics/core\";\nexport type { Vibration, HapticPattern, PresetName } from \"@haptics/core\";\n\n// Backwards-compatible boolean re-exports (deprecated)\nimport {\n\tisIOS as _isIOS,\n\tisVibrationSupported as _isVibrationSupported,\n} from \"@haptics/core\";\n\n/** @deprecated Import from '@haptics/core' and call as isIOS() */\nexport const isIOS: boolean = _isIOS();\n\n/** @deprecated Import from '@haptics/core' and call as isVibrationSupported() */\nexport const isVibrationSupported: boolean = _isVibrationSupported();\n"]}
package/package.json ADDED
@@ -0,0 +1,63 @@
1
+ {
2
+ "name": "react-haptics",
3
+ "version": "1.1.0",
4
+ "description": "Haptic feedback for React. Convenience package re-exporting @haptics/react and @haptics/core.",
5
+ "type": "module",
6
+ "main": "./dist/index.cjs",
7
+ "module": "./dist/index.js",
8
+ "types": "./dist/index.d.ts",
9
+ "exports": {
10
+ ".": {
11
+ "import": {
12
+ "types": "./dist/index.d.ts",
13
+ "default": "./dist/index.js"
14
+ },
15
+ "require": {
16
+ "types": "./dist/index.d.cts",
17
+ "default": "./dist/index.cjs"
18
+ }
19
+ }
20
+ },
21
+ "files": [
22
+ "dist"
23
+ ],
24
+ "sideEffects": false,
25
+ "scripts": {
26
+ "build": "tsup",
27
+ "dev": "tsup --watch",
28
+ "type-check": "tsc --noEmit"
29
+ },
30
+ "publishConfig": {
31
+ "access": "public"
32
+ },
33
+ "repository": {
34
+ "type": "git",
35
+ "url": "git+https://github.com/howdoiusekeyboard/haptics.git",
36
+ "directory": "packages/react-haptics"
37
+ },
38
+ "author": "Howdoiusekeyboard",
39
+ "license": "MIT",
40
+ "keywords": [
41
+ "haptics",
42
+ "react",
43
+ "haptic-feedback",
44
+ "vibration",
45
+ "ios",
46
+ "android"
47
+ ],
48
+ "dependencies": {
49
+ "@haptics/core": "^1.0.0",
50
+ "@haptics/react": "^1.0.0"
51
+ },
52
+ "peerDependencies": {
53
+ "react": ">=18",
54
+ "react-dom": ">=18"
55
+ },
56
+ "devDependencies": {
57
+ "@types/react": "^19.0.0",
58
+ "@types/react-dom": "^19.0.0",
59
+ "react": "^19.0.0",
60
+ "react-dom": "^19.0.0",
61
+ "tsup": "^8.0.0"
62
+ }
63
+ }