gesture-kit-ai 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
+ * Adaptive Gesture - Gestures that adapt to user behavior
3
+ * @module gestures
4
+ */
5
+ import React from 'react';
6
+ export interface AdaptiveGestureProps {
7
+ children: React.ReactNode;
8
+ enabled?: boolean;
9
+ [key: string]: any;
10
+ }
11
+ export declare const AdaptiveGesture: React.FC<AdaptiveGestureProps>;
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+ /**
3
+ * Adaptive Gesture - Gestures that adapt to user behavior
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.AdaptiveGesture = void 0;
11
+ const react_1 = __importDefault(require("react"));
12
+ const react_native_1 = require("react-native");
13
+ const AdaptiveGesture = ({ children, enabled = true, ...rest }) => {
14
+ // TODO: Implement Adaptive Gesture logic
15
+ return react_1.default.createElement(react_native_1.View, { ...rest }, children);
16
+ };
17
+ exports.AdaptiveGesture = AdaptiveGesture;
18
+ exports.AdaptiveGesture.displayName = 'AdaptiveGesture';
@@ -0,0 +1,11 @@
1
+ /**
2
+ * Context Aware Gesture - Context-aware gesture recognition
3
+ * @module gestures
4
+ */
5
+ import React from 'react';
6
+ export interface ContextAwareGestureProps {
7
+ children: React.ReactNode;
8
+ enabled?: boolean;
9
+ [key: string]: any;
10
+ }
11
+ export declare const ContextAwareGesture: React.FC<ContextAwareGestureProps>;
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+ /**
3
+ * Context Aware Gesture - Context-aware gesture recognition
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.ContextAwareGesture = void 0;
11
+ const react_1 = __importDefault(require("react"));
12
+ const react_native_1 = require("react-native");
13
+ const ContextAwareGesture = ({ children, enabled = true, ...rest }) => {
14
+ // TODO: Implement Context Aware Gesture logic
15
+ return react_1.default.createElement(react_native_1.View, { ...rest }, children);
16
+ };
17
+ exports.ContextAwareGesture = ContextAwareGesture;
18
+ exports.ContextAwareGesture.displayName = 'ContextAwareGesture';
@@ -0,0 +1,11 @@
1
+ /**
2
+ * Emotion Based Gesture - Emotion-driven gesture responses
3
+ * @module gestures
4
+ */
5
+ import React from 'react';
6
+ export interface EmotionBasedGestureProps {
7
+ children: React.ReactNode;
8
+ enabled?: boolean;
9
+ [key: string]: any;
10
+ }
11
+ export declare const EmotionBasedGesture: React.FC<EmotionBasedGestureProps>;
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+ /**
3
+ * Emotion Based Gesture - Emotion-driven gesture responses
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.EmotionBasedGesture = void 0;
11
+ const react_1 = __importDefault(require("react"));
12
+ const react_native_1 = require("react-native");
13
+ const EmotionBasedGesture = ({ children, enabled = true, ...rest }) => {
14
+ // TODO: Implement Emotion Based Gesture logic
15
+ return react_1.default.createElement(react_native_1.View, { ...rest }, children);
16
+ };
17
+ exports.EmotionBasedGesture = EmotionBasedGesture;
18
+ exports.EmotionBasedGesture.displayName = 'EmotionBasedGesture';
@@ -0,0 +1,11 @@
1
+ /**
2
+ * Gesture Prediction - AI-based gesture prediction
3
+ * @module gestures
4
+ */
5
+ import React from 'react';
6
+ export interface GesturePredictionProps {
7
+ children: React.ReactNode;
8
+ enabled?: boolean;
9
+ [key: string]: any;
10
+ }
11
+ export declare const GesturePrediction: React.FC<GesturePredictionProps>;
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+ /**
3
+ * Gesture Prediction - AI-based gesture prediction
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.GesturePrediction = void 0;
11
+ const react_1 = __importDefault(require("react"));
12
+ const react_native_1 = require("react-native");
13
+ const GesturePrediction = ({ children, enabled = true, ...rest }) => {
14
+ // TODO: Implement Gesture Prediction logic
15
+ return react_1.default.createElement(react_native_1.View, { ...rest }, children);
16
+ };
17
+ exports.GesturePrediction = GesturePrediction;
18
+ exports.GesturePrediction.displayName = 'GesturePrediction';
@@ -0,0 +1,11 @@
1
+ /**
2
+ * Intent Based Gesture - Intent-based gesture recognition
3
+ * @module gestures
4
+ */
5
+ import React from 'react';
6
+ export interface IntentBasedGestureProps {
7
+ children: React.ReactNode;
8
+ enabled?: boolean;
9
+ [key: string]: any;
10
+ }
11
+ export declare const IntentBasedGesture: React.FC<IntentBasedGestureProps>;
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+ /**
3
+ * Intent Based Gesture - Intent-based gesture recognition
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.IntentBasedGesture = void 0;
11
+ const react_1 = __importDefault(require("react"));
12
+ const react_native_1 = require("react-native");
13
+ const IntentBasedGesture = ({ children, enabled = true, ...rest }) => {
14
+ // TODO: Implement Intent Based Gesture logic
15
+ return react_1.default.createElement(react_native_1.View, { ...rest }, children);
16
+ };
17
+ exports.IntentBasedGesture = IntentBasedGesture;
18
+ exports.IntentBasedGesture.displayName = 'IntentBasedGesture';
@@ -0,0 +1,5 @@
1
+ export { useGesturePrediction } from './useGesturePrediction';
2
+ export { useAdaptiveGesture } from './useAdaptiveGesture';
3
+ export { useContextAware } from './useContextAware';
4
+ export { useEmotionBased } from './useEmotionBased';
5
+ export { useIntentBased } from './useIntentBased';
@@ -0,0 +1,13 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.useIntentBased = exports.useEmotionBased = exports.useContextAware = exports.useAdaptiveGesture = exports.useGesturePrediction = void 0;
4
+ var useGesturePrediction_1 = require("./useGesturePrediction");
5
+ Object.defineProperty(exports, "useGesturePrediction", { enumerable: true, get: function () { return useGesturePrediction_1.useGesturePrediction; } });
6
+ var useAdaptiveGesture_1 = require("./useAdaptiveGesture");
7
+ Object.defineProperty(exports, "useAdaptiveGesture", { enumerable: true, get: function () { return useAdaptiveGesture_1.useAdaptiveGesture; } });
8
+ var useContextAware_1 = require("./useContextAware");
9
+ Object.defineProperty(exports, "useContextAware", { enumerable: true, get: function () { return useContextAware_1.useContextAware; } });
10
+ var useEmotionBased_1 = require("./useEmotionBased");
11
+ Object.defineProperty(exports, "useEmotionBased", { enumerable: true, get: function () { return useEmotionBased_1.useEmotionBased; } });
12
+ var useIntentBased_1 = require("./useIntentBased");
13
+ Object.defineProperty(exports, "useIntentBased", { enumerable: true, get: function () { return useIntentBased_1.useIntentBased; } });
@@ -0,0 +1,10 @@
1
+ /**
2
+ * useAdaptiveGesture - useAdaptiveGesture hook
3
+ */
4
+ export interface useAdaptiveGestureOptions {
5
+ enabled?: boolean;
6
+ [key: string]: any;
7
+ }
8
+ export declare function useAdaptiveGesture(options?: useAdaptiveGestureOptions): {
9
+ enabled: boolean;
10
+ };
@@ -0,0 +1,14 @@
1
+ "use strict";
2
+ /**
3
+ * useAdaptiveGesture - useAdaptiveGesture hook
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.useAdaptiveGesture = useAdaptiveGesture;
7
+ const react_1 = require("react");
8
+ function useAdaptiveGesture(options = {}) {
9
+ const { enabled = true } = options;
10
+ return (0, react_1.useMemo)(() => {
11
+ // TODO: Implement useAdaptiveGesture logic
12
+ return { enabled };
13
+ }, [enabled]);
14
+ }
@@ -0,0 +1,10 @@
1
+ /**
2
+ * useContextAware - useContextAware hook
3
+ */
4
+ export interface useContextAwareOptions {
5
+ enabled?: boolean;
6
+ [key: string]: any;
7
+ }
8
+ export declare function useContextAware(options?: useContextAwareOptions): {
9
+ enabled: boolean;
10
+ };
@@ -0,0 +1,14 @@
1
+ "use strict";
2
+ /**
3
+ * useContextAware - useContextAware hook
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.useContextAware = useContextAware;
7
+ const react_1 = require("react");
8
+ function useContextAware(options = {}) {
9
+ const { enabled = true } = options;
10
+ return (0, react_1.useMemo)(() => {
11
+ // TODO: Implement useContextAware logic
12
+ return { enabled };
13
+ }, [enabled]);
14
+ }
@@ -0,0 +1,10 @@
1
+ /**
2
+ * useEmotionBased - useEmotionBased hook
3
+ */
4
+ export interface useEmotionBasedOptions {
5
+ enabled?: boolean;
6
+ [key: string]: any;
7
+ }
8
+ export declare function useEmotionBased(options?: useEmotionBasedOptions): {
9
+ enabled: boolean;
10
+ };
@@ -0,0 +1,14 @@
1
+ "use strict";
2
+ /**
3
+ * useEmotionBased - useEmotionBased hook
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.useEmotionBased = useEmotionBased;
7
+ const react_1 = require("react");
8
+ function useEmotionBased(options = {}) {
9
+ const { enabled = true } = options;
10
+ return (0, react_1.useMemo)(() => {
11
+ // TODO: Implement useEmotionBased logic
12
+ return { enabled };
13
+ }, [enabled]);
14
+ }
@@ -0,0 +1,10 @@
1
+ /**
2
+ * useGesturePrediction - useGesturePrediction hook
3
+ */
4
+ export interface useGesturePredictionOptions {
5
+ enabled?: boolean;
6
+ [key: string]: any;
7
+ }
8
+ export declare function useGesturePrediction(options?: useGesturePredictionOptions): {
9
+ enabled: boolean;
10
+ };
@@ -0,0 +1,14 @@
1
+ "use strict";
2
+ /**
3
+ * useGesturePrediction - useGesturePrediction hook
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.useGesturePrediction = useGesturePrediction;
7
+ const react_1 = require("react");
8
+ function useGesturePrediction(options = {}) {
9
+ const { enabled = true } = options;
10
+ return (0, react_1.useMemo)(() => {
11
+ // TODO: Implement useGesturePrediction logic
12
+ return { enabled };
13
+ }, [enabled]);
14
+ }
@@ -0,0 +1,10 @@
1
+ /**
2
+ * useIntentBased - useIntentBased hook
3
+ */
4
+ export interface useIntentBasedOptions {
5
+ enabled?: boolean;
6
+ [key: string]: any;
7
+ }
8
+ export declare function useIntentBased(options?: useIntentBasedOptions): {
9
+ enabled: boolean;
10
+ };
@@ -0,0 +1,14 @@
1
+ "use strict";
2
+ /**
3
+ * useIntentBased - useIntentBased hook
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.useIntentBased = useIntentBased;
7
+ const react_1 = require("react");
8
+ function useIntentBased(options = {}) {
9
+ const { enabled = true } = options;
10
+ return (0, react_1.useMemo)(() => {
11
+ // TODO: Implement useIntentBased logic
12
+ return { enabled };
13
+ }, [enabled]);
14
+ }
@@ -0,0 +1,7 @@
1
+ export * from './types';
2
+ export { GesturePrediction } from './GesturePrediction';
3
+ export { AdaptiveGesture } from './AdaptiveGesture';
4
+ export { ContextAwareGesture } from './ContextAwareGesture';
5
+ export { EmotionBasedGesture } from './EmotionBasedGesture';
6
+ export { IntentBasedGesture } from './IntentBasedGesture';
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.IntentBasedGesture = exports.EmotionBasedGesture = exports.ContextAwareGesture = exports.AdaptiveGesture = exports.GesturePrediction = void 0;
18
+ // Types
19
+ __exportStar(require("./types"), exports);
20
+ // Components
21
+ var GesturePrediction_1 = require("./GesturePrediction");
22
+ Object.defineProperty(exports, "GesturePrediction", { enumerable: true, get: function () { return GesturePrediction_1.GesturePrediction; } });
23
+ var AdaptiveGesture_1 = require("./AdaptiveGesture");
24
+ Object.defineProperty(exports, "AdaptiveGesture", { enumerable: true, get: function () { return AdaptiveGesture_1.AdaptiveGesture; } });
25
+ var ContextAwareGesture_1 = require("./ContextAwareGesture");
26
+ Object.defineProperty(exports, "ContextAwareGesture", { enumerable: true, get: function () { return ContextAwareGesture_1.ContextAwareGesture; } });
27
+ var EmotionBasedGesture_1 = require("./EmotionBasedGesture");
28
+ Object.defineProperty(exports, "EmotionBasedGesture", { enumerable: true, get: function () { return EmotionBasedGesture_1.EmotionBasedGesture; } });
29
+ var IntentBasedGesture_1 = require("./IntentBasedGesture");
30
+ Object.defineProperty(exports, "IntentBasedGesture", { enumerable: true, get: function () { return IntentBasedGesture_1.IntentBasedGesture; } });
31
+ // Hooks
32
+ __exportStar(require("./hooks"), exports);
@@ -0,0 +1,31 @@
1
+ /**
2
+ * Type definitions for this gesture category.
3
+ */
4
+ import type { BaseGestureEvent } from 'gesture-kit-core';
5
+ export interface AIGestureEvent extends BaseGestureEvent {
6
+ confidence: number;
7
+ modelVersion: string;
8
+ }
9
+ export interface PredictionEvent extends AIGestureEvent {
10
+ predictedGesture: string;
11
+ alternatives: Array<{
12
+ gesture: string;
13
+ probability: number;
14
+ }>;
15
+ }
16
+ export interface AdaptiveEvent extends AIGestureEvent {
17
+ userProfile: string;
18
+ adaptationLevel: number;
19
+ }
20
+ export interface ContextEvent extends AIGestureEvent {
21
+ context: string;
22
+ contextualFactors: Record<string, unknown>;
23
+ }
24
+ export interface EmotionEvent extends AIGestureEvent {
25
+ emotion: string;
26
+ intensity: number;
27
+ }
28
+ export interface IntentEvent extends AIGestureEvent {
29
+ intent: string;
30
+ entities: Record<string, string>;
31
+ }
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-ai",
3
+ "version": "1.0.0",
4
+ "description": "AI-driven 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", "ai"],
26
+ "license": "MIT"
27
+ }