react-haptics 1.1.0 → 2.1.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/dist/index.cjs CHANGED
@@ -1,8 +1,10 @@
1
+ "use client";
1
2
  'use strict';
2
3
 
3
4
  var react = require('@haptics/react');
4
5
  var core = require('@haptics/core');
5
6
 
7
+ // src/index.ts
6
8
  var isIOS = core.isIOS();
7
9
  var isVibrationSupported = core.isVibrationSupported();
8
10
 
@@ -1 +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"]}
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"]}
package/dist/index.js CHANGED
@@ -1,7 +1,9 @@
1
+ "use client";
1
2
  export { HapticsProvider, useHaptics } from '@haptics/react';
2
3
  import { isIOS as isIOS$1, isVibrationSupported as isVibrationSupported$1 } from '@haptics/core';
3
4
  export { PRESETS, iosTick, schedulePattern, toVibrateSequence } from '@haptics/core';
4
5
 
6
+ // src/index.ts
5
7
  var isIOS = isIOS$1();
6
8
  var isVibrationSupported = isVibrationSupported$1();
7
9
 
package/dist/index.js.map CHANGED
@@ -1 +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"]}
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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-haptics",
3
- "version": "1.1.0",
3
+ "version": "2.1.1",
4
4
  "description": "Haptic feedback for React. Convenience package re-exporting @haptics/react and @haptics/core.",
5
5
  "type": "module",
6
6
  "main": "./dist/index.cjs",
@@ -46,8 +46,8 @@
46
46
  "android"
47
47
  ],
48
48
  "dependencies": {
49
- "@haptics/core": "^1.0.0",
50
- "@haptics/react": "^1.0.0"
49
+ "@haptics/core": "^2.1.0",
50
+ "@haptics/react": "^2.1.1"
51
51
  },
52
52
  "peerDependencies": {
53
53
  "react": ">=18",