gesture-kit-hybrid 1.0.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.
@@ -0,0 +1,11 @@
1
+ /**
2
+ * Multi Device Gesture - Cross-device gesture coordination
3
+ * @module gestures
4
+ */
5
+ import React from 'react';
6
+ export interface MultiDeviceGestureProps {
7
+ children: React.ReactNode;
8
+ enabled?: boolean;
9
+ [key: string]: any;
10
+ }
11
+ export declare const MultiDeviceGesture: React.FC<MultiDeviceGestureProps>;
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+ /**
3
+ * Multi Device Gesture - Cross-device gesture coordination
4
+ * @module gestures
5
+ */
6
+ var __importDefault = (this && this.__importDefault) || function (mod) {
7
+ return (mod && mod.__esModule) ? mod : { "default": mod };
8
+ };
9
+ Object.defineProperty(exports, "__esModule", { value: true });
10
+ exports.MultiDeviceGesture = void 0;
11
+ const react_1 = __importDefault(require("react"));
12
+ const react_native_1 = require("react-native");
13
+ const MultiDeviceGesture = ({ children, enabled = true, ...rest }) => {
14
+ // TODO: Implement Multi Device Gesture logic
15
+ return react_1.default.createElement(react_native_1.View, { ...rest }, children);
16
+ };
17
+ exports.MultiDeviceGesture = MultiDeviceGesture;
18
+ exports.MultiDeviceGesture.displayName = 'MultiDeviceGesture';
@@ -0,0 +1,11 @@
1
+ /**
2
+ * Sensor Camera Gesture - Combines sensor with camera
3
+ * @module gestures
4
+ */
5
+ import React from 'react';
6
+ export interface SensorCameraGestureProps {
7
+ children: React.ReactNode;
8
+ enabled?: boolean;
9
+ [key: string]: any;
10
+ }
11
+ export declare const SensorCameraGesture: React.FC<SensorCameraGestureProps>;
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+ /**
3
+ * Sensor Camera Gesture - Combines sensor with camera
4
+ * @module gestures
5
+ */
6
+ var __importDefault = (this && this.__importDefault) || function (mod) {
7
+ return (mod && mod.__esModule) ? mod : { "default": mod };
8
+ };
9
+ Object.defineProperty(exports, "__esModule", { value: true });
10
+ exports.SensorCameraGesture = void 0;
11
+ const react_1 = __importDefault(require("react"));
12
+ const react_native_1 = require("react-native");
13
+ const SensorCameraGesture = ({ children, enabled = true, ...rest }) => {
14
+ // TODO: Implement Sensor Camera Gesture logic
15
+ return react_1.default.createElement(react_native_1.View, { ...rest }, children);
16
+ };
17
+ exports.SensorCameraGesture = SensorCameraGesture;
18
+ exports.SensorCameraGesture.displayName = 'SensorCameraGesture';
@@ -0,0 +1,11 @@
1
+ /**
2
+ * Touch Camera Gesture - Combines touch with camera input
3
+ * @module gestures
4
+ */
5
+ import React from 'react';
6
+ export interface TouchCameraGestureProps {
7
+ children: React.ReactNode;
8
+ enabled?: boolean;
9
+ [key: string]: any;
10
+ }
11
+ export declare const TouchCameraGesture: React.FC<TouchCameraGestureProps>;
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+ /**
3
+ * Touch Camera Gesture - Combines touch with camera input
4
+ * @module gestures
5
+ */
6
+ var __importDefault = (this && this.__importDefault) || function (mod) {
7
+ return (mod && mod.__esModule) ? mod : { "default": mod };
8
+ };
9
+ Object.defineProperty(exports, "__esModule", { value: true });
10
+ exports.TouchCameraGesture = void 0;
11
+ const react_1 = __importDefault(require("react"));
12
+ const react_native_1 = require("react-native");
13
+ const TouchCameraGesture = ({ children, enabled = true, ...rest }) => {
14
+ // TODO: Implement Touch Camera Gesture logic
15
+ return react_1.default.createElement(react_native_1.View, { ...rest }, children);
16
+ };
17
+ exports.TouchCameraGesture = TouchCameraGesture;
18
+ exports.TouchCameraGesture.displayName = 'TouchCameraGesture';
@@ -0,0 +1,11 @@
1
+ /**
2
+ * Touch Sensor Gesture - Combines touch with sensor data
3
+ * @module gestures
4
+ */
5
+ import React from 'react';
6
+ export interface TouchSensorGestureProps {
7
+ children: React.ReactNode;
8
+ enabled?: boolean;
9
+ [key: string]: any;
10
+ }
11
+ export declare const TouchSensorGesture: React.FC<TouchSensorGestureProps>;
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+ /**
3
+ * Touch Sensor Gesture - Combines touch with sensor data
4
+ * @module gestures
5
+ */
6
+ var __importDefault = (this && this.__importDefault) || function (mod) {
7
+ return (mod && mod.__esModule) ? mod : { "default": mod };
8
+ };
9
+ Object.defineProperty(exports, "__esModule", { value: true });
10
+ exports.TouchSensorGesture = void 0;
11
+ const react_1 = __importDefault(require("react"));
12
+ const react_native_1 = require("react-native");
13
+ const TouchSensorGesture = ({ children, enabled = true, ...rest }) => {
14
+ // TODO: Implement Touch Sensor Gesture logic
15
+ return react_1.default.createElement(react_native_1.View, { ...rest }, children);
16
+ };
17
+ exports.TouchSensorGesture = TouchSensorGesture;
18
+ exports.TouchSensorGesture.displayName = 'TouchSensorGesture';
@@ -0,0 +1,11 @@
1
+ /**
2
+ * Touch Voice Gesture - Combines touch with voice input
3
+ * @module gestures
4
+ */
5
+ import React from 'react';
6
+ export interface TouchVoiceGestureProps {
7
+ children: React.ReactNode;
8
+ enabled?: boolean;
9
+ [key: string]: any;
10
+ }
11
+ export declare const TouchVoiceGesture: React.FC<TouchVoiceGestureProps>;
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+ /**
3
+ * Touch Voice Gesture - Combines touch with voice input
4
+ * @module gestures
5
+ */
6
+ var __importDefault = (this && this.__importDefault) || function (mod) {
7
+ return (mod && mod.__esModule) ? mod : { "default": mod };
8
+ };
9
+ Object.defineProperty(exports, "__esModule", { value: true });
10
+ exports.TouchVoiceGesture = void 0;
11
+ const react_1 = __importDefault(require("react"));
12
+ const react_native_1 = require("react-native");
13
+ const TouchVoiceGesture = ({ children, enabled = true, ...rest }) => {
14
+ // TODO: Implement Touch Voice Gesture logic
15
+ return react_1.default.createElement(react_native_1.View, { ...rest }, children);
16
+ };
17
+ exports.TouchVoiceGesture = TouchVoiceGesture;
18
+ exports.TouchVoiceGesture.displayName = 'TouchVoiceGesture';
@@ -0,0 +1,5 @@
1
+ export { useTouchSensor } from './useTouchSensor';
2
+ export { useTouchCamera } from './useTouchCamera';
3
+ export { useSensorCamera } from './useSensorCamera';
4
+ export { useTouchVoice } from './useTouchVoice';
5
+ export { useMultiDevice } from './useMultiDevice';
@@ -0,0 +1,13 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.useMultiDevice = exports.useTouchVoice = exports.useSensorCamera = exports.useTouchCamera = exports.useTouchSensor = void 0;
4
+ var useTouchSensor_1 = require("./useTouchSensor");
5
+ Object.defineProperty(exports, "useTouchSensor", { enumerable: true, get: function () { return useTouchSensor_1.useTouchSensor; } });
6
+ var useTouchCamera_1 = require("./useTouchCamera");
7
+ Object.defineProperty(exports, "useTouchCamera", { enumerable: true, get: function () { return useTouchCamera_1.useTouchCamera; } });
8
+ var useSensorCamera_1 = require("./useSensorCamera");
9
+ Object.defineProperty(exports, "useSensorCamera", { enumerable: true, get: function () { return useSensorCamera_1.useSensorCamera; } });
10
+ var useTouchVoice_1 = require("./useTouchVoice");
11
+ Object.defineProperty(exports, "useTouchVoice", { enumerable: true, get: function () { return useTouchVoice_1.useTouchVoice; } });
12
+ var useMultiDevice_1 = require("./useMultiDevice");
13
+ Object.defineProperty(exports, "useMultiDevice", { enumerable: true, get: function () { return useMultiDevice_1.useMultiDevice; } });
@@ -0,0 +1,10 @@
1
+ /**
2
+ * useMultiDevice - useMultiDevice hook
3
+ */
4
+ export interface useMultiDeviceOptions {
5
+ enabled?: boolean;
6
+ [key: string]: any;
7
+ }
8
+ export declare function useMultiDevice(options?: useMultiDeviceOptions): {
9
+ enabled: boolean;
10
+ };
@@ -0,0 +1,14 @@
1
+ "use strict";
2
+ /**
3
+ * useMultiDevice - useMultiDevice hook
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.useMultiDevice = useMultiDevice;
7
+ const react_1 = require("react");
8
+ function useMultiDevice(options = {}) {
9
+ const { enabled = true } = options;
10
+ return (0, react_1.useMemo)(() => {
11
+ // TODO: Implement useMultiDevice logic
12
+ return { enabled };
13
+ }, [enabled]);
14
+ }
@@ -0,0 +1,10 @@
1
+ /**
2
+ * useSensorCamera - useSensorCamera hook
3
+ */
4
+ export interface useSensorCameraOptions {
5
+ enabled?: boolean;
6
+ [key: string]: any;
7
+ }
8
+ export declare function useSensorCamera(options?: useSensorCameraOptions): {
9
+ enabled: boolean;
10
+ };
@@ -0,0 +1,14 @@
1
+ "use strict";
2
+ /**
3
+ * useSensorCamera - useSensorCamera hook
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.useSensorCamera = useSensorCamera;
7
+ const react_1 = require("react");
8
+ function useSensorCamera(options = {}) {
9
+ const { enabled = true } = options;
10
+ return (0, react_1.useMemo)(() => {
11
+ // TODO: Implement useSensorCamera logic
12
+ return { enabled };
13
+ }, [enabled]);
14
+ }
@@ -0,0 +1,10 @@
1
+ /**
2
+ * useTouchCamera - useTouchCamera hook
3
+ */
4
+ export interface useTouchCameraOptions {
5
+ enabled?: boolean;
6
+ [key: string]: any;
7
+ }
8
+ export declare function useTouchCamera(options?: useTouchCameraOptions): {
9
+ enabled: boolean;
10
+ };
@@ -0,0 +1,14 @@
1
+ "use strict";
2
+ /**
3
+ * useTouchCamera - useTouchCamera hook
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.useTouchCamera = useTouchCamera;
7
+ const react_1 = require("react");
8
+ function useTouchCamera(options = {}) {
9
+ const { enabled = true } = options;
10
+ return (0, react_1.useMemo)(() => {
11
+ // TODO: Implement useTouchCamera logic
12
+ return { enabled };
13
+ }, [enabled]);
14
+ }
@@ -0,0 +1,10 @@
1
+ /**
2
+ * useTouchSensor - useTouchSensor hook
3
+ */
4
+ export interface useTouchSensorOptions {
5
+ enabled?: boolean;
6
+ [key: string]: any;
7
+ }
8
+ export declare function useTouchSensor(options?: useTouchSensorOptions): {
9
+ enabled: boolean;
10
+ };
@@ -0,0 +1,14 @@
1
+ "use strict";
2
+ /**
3
+ * useTouchSensor - useTouchSensor hook
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.useTouchSensor = useTouchSensor;
7
+ const react_1 = require("react");
8
+ function useTouchSensor(options = {}) {
9
+ const { enabled = true } = options;
10
+ return (0, react_1.useMemo)(() => {
11
+ // TODO: Implement useTouchSensor logic
12
+ return { enabled };
13
+ }, [enabled]);
14
+ }
@@ -0,0 +1,10 @@
1
+ /**
2
+ * useTouchVoice - useTouchVoice hook
3
+ */
4
+ export interface useTouchVoiceOptions {
5
+ enabled?: boolean;
6
+ [key: string]: any;
7
+ }
8
+ export declare function useTouchVoice(options?: useTouchVoiceOptions): {
9
+ enabled: boolean;
10
+ };
@@ -0,0 +1,14 @@
1
+ "use strict";
2
+ /**
3
+ * useTouchVoice - useTouchVoice hook
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.useTouchVoice = useTouchVoice;
7
+ const react_1 = require("react");
8
+ function useTouchVoice(options = {}) {
9
+ const { enabled = true } = options;
10
+ return (0, react_1.useMemo)(() => {
11
+ // TODO: Implement useTouchVoice logic
12
+ return { enabled };
13
+ }, [enabled]);
14
+ }
@@ -0,0 +1,7 @@
1
+ export * from './types';
2
+ export { TouchSensorGesture } from './TouchSensorGesture';
3
+ export { TouchCameraGesture } from './TouchCameraGesture';
4
+ export { SensorCameraGesture } from './SensorCameraGesture';
5
+ export { TouchVoiceGesture } from './TouchVoiceGesture';
6
+ export { MultiDeviceGesture } from './MultiDeviceGesture';
7
+ export * from './hooks';
package/dist/index.js ADDED
@@ -0,0 +1,32 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ exports.MultiDeviceGesture = exports.TouchVoiceGesture = exports.SensorCameraGesture = exports.TouchCameraGesture = exports.TouchSensorGesture = void 0;
18
+ // Types
19
+ __exportStar(require("./types"), exports);
20
+ // Components
21
+ var TouchSensorGesture_1 = require("./TouchSensorGesture");
22
+ Object.defineProperty(exports, "TouchSensorGesture", { enumerable: true, get: function () { return TouchSensorGesture_1.TouchSensorGesture; } });
23
+ var TouchCameraGesture_1 = require("./TouchCameraGesture");
24
+ Object.defineProperty(exports, "TouchCameraGesture", { enumerable: true, get: function () { return TouchCameraGesture_1.TouchCameraGesture; } });
25
+ var SensorCameraGesture_1 = require("./SensorCameraGesture");
26
+ Object.defineProperty(exports, "SensorCameraGesture", { enumerable: true, get: function () { return SensorCameraGesture_1.SensorCameraGesture; } });
27
+ var TouchVoiceGesture_1 = require("./TouchVoiceGesture");
28
+ Object.defineProperty(exports, "TouchVoiceGesture", { enumerable: true, get: function () { return TouchVoiceGesture_1.TouchVoiceGesture; } });
29
+ var MultiDeviceGesture_1 = require("./MultiDeviceGesture");
30
+ Object.defineProperty(exports, "MultiDeviceGesture", { enumerable: true, get: function () { return MultiDeviceGesture_1.MultiDeviceGesture; } });
31
+ // Hooks
32
+ __exportStar(require("./hooks"), exports);
@@ -0,0 +1,29 @@
1
+ /**
2
+ * Type definitions for this gesture category.
3
+ */
4
+ import type { BaseGestureEvent } from 'gesture-kit-core';
5
+ export interface HybridEvent extends BaseGestureEvent {
6
+ sources: string[];
7
+ confidence: number;
8
+ }
9
+ export interface TouchSensorEvent extends HybridEvent {
10
+ sensorData: {
11
+ x: number;
12
+ y: number;
13
+ z: number;
14
+ };
15
+ }
16
+ export interface TouchCameraEvent extends HybridEvent {
17
+ cameraData: {
18
+ handDetected: boolean;
19
+ gestureClass: string;
20
+ };
21
+ }
22
+ export interface TouchVoiceEvent extends HybridEvent {
23
+ voiceCommand: string;
24
+ voiceConfidence: number;
25
+ }
26
+ export interface MultiDeviceEvent extends HybridEvent {
27
+ deviceId: string;
28
+ syncTimestamp: number;
29
+ }
package/dist/types.js ADDED
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * Type definitions for this gesture category.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
package/package.json ADDED
@@ -0,0 +1,27 @@
1
+ {
2
+ "name": "gesture-kit-hybrid",
3
+ "version": "1.0.0",
4
+ "description": "Hybrid gestures for gesture-kit",
5
+ "main": "dist/index.js",
6
+ "types": "dist/index.d.ts",
7
+ "files": ["dist", "README.md"],
8
+ "scripts": {
9
+ "build": "tsc",
10
+ "prepare": "npm run build",
11
+ "typecheck": "tsc --noEmit"
12
+ },
13
+ "peerDependencies": {
14
+ "react": ">=18.0.0",
15
+ "react-native": ">=0.71.0",
16
+ "react-native-gesture-handler": ">=2.10.0"
17
+ },
18
+ "devDependencies": {
19
+ "@types/react": "^18.2.0",
20
+ "react": "^18.2.0",
21
+ "react-native": "^0.73.11",
22
+ "react-native-gesture-handler": "^2.30.0",
23
+ "typescript": "^5.9.3"
24
+ },
25
+ "keywords": ["react-native", "gesture", "hybrid"],
26
+ "license": "MIT"
27
+ }