@yuktishaalaa/yuktai 2.0.6 → 2.0.8
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 -47
- package/dist/index.d.cts +0 -101
- package/dist/index.d.ts +0 -101
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@yuktishaalaa/yuktai",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.8",
|
|
4
4
|
"description": "Privacy-first, offline-first universal accessibility engine with WCAG auto-fix, OCR, voice, and Indic language AI support.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.cjs",
|
|
@@ -12,41 +12,6 @@
|
|
|
12
12
|
"types": "./dist/index.d.ts",
|
|
13
13
|
"import": "./dist/index.js",
|
|
14
14
|
"require": "./dist/index.cjs"
|
|
15
|
-
},
|
|
16
|
-
"./core": {
|
|
17
|
-
"types": "./dist/core/renderer.d.ts",
|
|
18
|
-
"import": "./dist/core/renderer.js",
|
|
19
|
-
"require": "./dist/core/renderer.cjs"
|
|
20
|
-
},
|
|
21
|
-
"./react": {
|
|
22
|
-
"types": "./dist/core/YuktAIWrapper.d.ts",
|
|
23
|
-
"import": "./dist/core/YuktAIWrapper.js",
|
|
24
|
-
"require": "./dist/core/YuktAIWrapper.cjs"
|
|
25
|
-
},
|
|
26
|
-
"./next": {
|
|
27
|
-
"types": "./dist/core/YuktAIWrapper.d.ts",
|
|
28
|
-
"import": "./dist/core/YuktAIWrapper.js",
|
|
29
|
-
"require": "./dist/core/YuktAIWrapper.cjs"
|
|
30
|
-
},
|
|
31
|
-
"./plugins/ai": {
|
|
32
|
-
"types": "./dist/plugins/ai.d.ts",
|
|
33
|
-
"import": "./dist/plugins/ai.js",
|
|
34
|
-
"require": "./dist/plugins/ai.cjs"
|
|
35
|
-
},
|
|
36
|
-
"./plugins/ocr": {
|
|
37
|
-
"types": "./dist/plugins/ocr.d.ts",
|
|
38
|
-
"import": "./dist/plugins/ocr.js",
|
|
39
|
-
"require": "./dist/plugins/ocr.cjs"
|
|
40
|
-
},
|
|
41
|
-
"./plugins/voice": {
|
|
42
|
-
"types": "./dist/plugins/voice.d.ts",
|
|
43
|
-
"import": "./dist/plugins/voice.js",
|
|
44
|
-
"require": "./dist/plugins/voice.cjs"
|
|
45
|
-
},
|
|
46
|
-
"./plugins/wcag": {
|
|
47
|
-
"types": "./dist/plugins/wcag.d.ts",
|
|
48
|
-
"import": "./dist/plugins/wcag.js",
|
|
49
|
-
"require": "./dist/plugins/wcag.cjs"
|
|
50
15
|
}
|
|
51
16
|
},
|
|
52
17
|
"publishConfig": {
|
|
@@ -57,19 +22,8 @@
|
|
|
57
22
|
"scripts": {
|
|
58
23
|
"dev": "tsup --watch",
|
|
59
24
|
"build": "tsup",
|
|
60
|
-
"lint": "tsc --noEmit",
|
|
61
25
|
"prepublishOnly": "npm run build"
|
|
62
26
|
},
|
|
63
|
-
"repository": {
|
|
64
|
-
"type": "git",
|
|
65
|
-
"url": "git+https://github.com/sandeepmiriyala03/yuktai.git"
|
|
66
|
-
},
|
|
67
|
-
"keywords": [
|
|
68
|
-
"accessibility", "a11y", "wcag", "aria",
|
|
69
|
-
"indic", "ocr", "voice", "offline-ai",
|
|
70
|
-
"react", "nextjs", "vue", "angular",
|
|
71
|
-
"yuktai", "vibe-coding"
|
|
72
|
-
],
|
|
73
27
|
"author": "Sandeep Miriyala",
|
|
74
28
|
"license": "ISC",
|
|
75
29
|
"peerDependencies": {
|
package/dist/index.d.cts
DELETED
|
@@ -1,101 +0,0 @@
|
|
|
1
|
-
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
-
import { ReactNode } from 'react';
|
|
3
|
-
|
|
4
|
-
interface Plugin {
|
|
5
|
-
name: string;
|
|
6
|
-
execute(input: any): any | Promise<any>;
|
|
7
|
-
}
|
|
8
|
-
declare class Runtime {
|
|
9
|
-
private plugins;
|
|
10
|
-
register(name: string, plugin: Plugin): void;
|
|
11
|
-
/**
|
|
12
|
-
* 🔹 Direct Plugin Access
|
|
13
|
-
* This is what YuktAI.use(name) calls.
|
|
14
|
-
*/
|
|
15
|
-
use(name: string): Plugin | undefined;
|
|
16
|
-
/**
|
|
17
|
-
* 🔹 Run task
|
|
18
|
-
*/
|
|
19
|
-
run(task: string, input: unknown): Promise<unknown>;
|
|
20
|
-
getPlugins(): string[];
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
type ColorBlindMode = "none" | "deuteranopia" | "protanopia" | "tritanopia" | "achromatopsia";
|
|
24
|
-
type Severity = "critical" | "serious" | "moderate" | "minor";
|
|
25
|
-
interface A11yConfig {
|
|
26
|
-
enabled: boolean;
|
|
27
|
-
highContrast?: boolean;
|
|
28
|
-
reduceMotion?: boolean;
|
|
29
|
-
autoFix?: boolean;
|
|
30
|
-
fontSizeMultiplier?: number;
|
|
31
|
-
colorBlindMode?: ColorBlindMode;
|
|
32
|
-
keyboardHints?: boolean;
|
|
33
|
-
}
|
|
34
|
-
interface A11yFix {
|
|
35
|
-
tag: string;
|
|
36
|
-
fix: string;
|
|
37
|
-
severity: Severity;
|
|
38
|
-
element: string;
|
|
39
|
-
}
|
|
40
|
-
interface A11yReport {
|
|
41
|
-
fixed: number;
|
|
42
|
-
scanned: number;
|
|
43
|
-
renderTime: number;
|
|
44
|
-
details: A11yFix[];
|
|
45
|
-
}
|
|
46
|
-
declare const wcagPlugin: {
|
|
47
|
-
name: string;
|
|
48
|
-
version: string;
|
|
49
|
-
observer: MutationObserver | null;
|
|
50
|
-
execute(config: A11yConfig): Promise<string>;
|
|
51
|
-
scan(): A11yReport;
|
|
52
|
-
applyFixes(config: A11yConfig): A11yReport;
|
|
53
|
-
removeColorBlindSvg(): void;
|
|
54
|
-
startObserver(config: A11yConfig): void;
|
|
55
|
-
stopObserver(): void;
|
|
56
|
-
ensureLiveRegion(): void;
|
|
57
|
-
removeLiveRegion(): void;
|
|
58
|
-
announce(msg: string): void;
|
|
59
|
-
};
|
|
60
|
-
|
|
61
|
-
interface YuktAIWrapperProps {
|
|
62
|
-
children?: ReactNode;
|
|
63
|
-
position?: "left" | "right";
|
|
64
|
-
}
|
|
65
|
-
declare function YuktAIWrapper({ children, position }: YuktAIWrapperProps): react_jsx_runtime.JSX.Element;
|
|
66
|
-
|
|
67
|
-
declare const aiPlugin: {
|
|
68
|
-
name: string;
|
|
69
|
-
execute(input: string): Promise<string>;
|
|
70
|
-
};
|
|
71
|
-
|
|
72
|
-
declare const voicePlugin: {
|
|
73
|
-
name: string;
|
|
74
|
-
execute(input: string): Promise<string>;
|
|
75
|
-
};
|
|
76
|
-
|
|
77
|
-
declare global {
|
|
78
|
-
var __yuktai_runtime__: Runtime | undefined;
|
|
79
|
-
}
|
|
80
|
-
declare const YuktAI: {
|
|
81
|
-
wcagPlugin: {
|
|
82
|
-
name: string;
|
|
83
|
-
version: string;
|
|
84
|
-
observer: MutationObserver | null;
|
|
85
|
-
execute(config: A11yConfig): Promise<string>;
|
|
86
|
-
scan(): A11yReport;
|
|
87
|
-
applyFixes(config: A11yConfig): A11yReport;
|
|
88
|
-
removeColorBlindSvg(): void;
|
|
89
|
-
startObserver(config: A11yConfig): void;
|
|
90
|
-
stopObserver(): void;
|
|
91
|
-
ensureLiveRegion(): void;
|
|
92
|
-
removeLiveRegion(): void;
|
|
93
|
-
announce(msg: string): void;
|
|
94
|
-
};
|
|
95
|
-
list(): string[];
|
|
96
|
-
use(name: string): Plugin | undefined;
|
|
97
|
-
fix(config?: Partial<A11yConfig>): A11yReport;
|
|
98
|
-
scan(): A11yReport;
|
|
99
|
-
};
|
|
100
|
-
|
|
101
|
-
export { type A11yConfig, type A11yFix, type A11yReport, type ColorBlindMode, Runtime, type Severity, YuktAI, YuktAIWrapper, type YuktAIWrapperProps, aiPlugin, YuktAIWrapper as default, voicePlugin, wcagPlugin as wcag, wcagPlugin };
|
package/dist/index.d.ts
DELETED
|
@@ -1,101 +0,0 @@
|
|
|
1
|
-
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
-
import { ReactNode } from 'react';
|
|
3
|
-
|
|
4
|
-
interface Plugin {
|
|
5
|
-
name: string;
|
|
6
|
-
execute(input: any): any | Promise<any>;
|
|
7
|
-
}
|
|
8
|
-
declare class Runtime {
|
|
9
|
-
private plugins;
|
|
10
|
-
register(name: string, plugin: Plugin): void;
|
|
11
|
-
/**
|
|
12
|
-
* 🔹 Direct Plugin Access
|
|
13
|
-
* This is what YuktAI.use(name) calls.
|
|
14
|
-
*/
|
|
15
|
-
use(name: string): Plugin | undefined;
|
|
16
|
-
/**
|
|
17
|
-
* 🔹 Run task
|
|
18
|
-
*/
|
|
19
|
-
run(task: string, input: unknown): Promise<unknown>;
|
|
20
|
-
getPlugins(): string[];
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
type ColorBlindMode = "none" | "deuteranopia" | "protanopia" | "tritanopia" | "achromatopsia";
|
|
24
|
-
type Severity = "critical" | "serious" | "moderate" | "minor";
|
|
25
|
-
interface A11yConfig {
|
|
26
|
-
enabled: boolean;
|
|
27
|
-
highContrast?: boolean;
|
|
28
|
-
reduceMotion?: boolean;
|
|
29
|
-
autoFix?: boolean;
|
|
30
|
-
fontSizeMultiplier?: number;
|
|
31
|
-
colorBlindMode?: ColorBlindMode;
|
|
32
|
-
keyboardHints?: boolean;
|
|
33
|
-
}
|
|
34
|
-
interface A11yFix {
|
|
35
|
-
tag: string;
|
|
36
|
-
fix: string;
|
|
37
|
-
severity: Severity;
|
|
38
|
-
element: string;
|
|
39
|
-
}
|
|
40
|
-
interface A11yReport {
|
|
41
|
-
fixed: number;
|
|
42
|
-
scanned: number;
|
|
43
|
-
renderTime: number;
|
|
44
|
-
details: A11yFix[];
|
|
45
|
-
}
|
|
46
|
-
declare const wcagPlugin: {
|
|
47
|
-
name: string;
|
|
48
|
-
version: string;
|
|
49
|
-
observer: MutationObserver | null;
|
|
50
|
-
execute(config: A11yConfig): Promise<string>;
|
|
51
|
-
scan(): A11yReport;
|
|
52
|
-
applyFixes(config: A11yConfig): A11yReport;
|
|
53
|
-
removeColorBlindSvg(): void;
|
|
54
|
-
startObserver(config: A11yConfig): void;
|
|
55
|
-
stopObserver(): void;
|
|
56
|
-
ensureLiveRegion(): void;
|
|
57
|
-
removeLiveRegion(): void;
|
|
58
|
-
announce(msg: string): void;
|
|
59
|
-
};
|
|
60
|
-
|
|
61
|
-
interface YuktAIWrapperProps {
|
|
62
|
-
children?: ReactNode;
|
|
63
|
-
position?: "left" | "right";
|
|
64
|
-
}
|
|
65
|
-
declare function YuktAIWrapper({ children, position }: YuktAIWrapperProps): react_jsx_runtime.JSX.Element;
|
|
66
|
-
|
|
67
|
-
declare const aiPlugin: {
|
|
68
|
-
name: string;
|
|
69
|
-
execute(input: string): Promise<string>;
|
|
70
|
-
};
|
|
71
|
-
|
|
72
|
-
declare const voicePlugin: {
|
|
73
|
-
name: string;
|
|
74
|
-
execute(input: string): Promise<string>;
|
|
75
|
-
};
|
|
76
|
-
|
|
77
|
-
declare global {
|
|
78
|
-
var __yuktai_runtime__: Runtime | undefined;
|
|
79
|
-
}
|
|
80
|
-
declare const YuktAI: {
|
|
81
|
-
wcagPlugin: {
|
|
82
|
-
name: string;
|
|
83
|
-
version: string;
|
|
84
|
-
observer: MutationObserver | null;
|
|
85
|
-
execute(config: A11yConfig): Promise<string>;
|
|
86
|
-
scan(): A11yReport;
|
|
87
|
-
applyFixes(config: A11yConfig): A11yReport;
|
|
88
|
-
removeColorBlindSvg(): void;
|
|
89
|
-
startObserver(config: A11yConfig): void;
|
|
90
|
-
stopObserver(): void;
|
|
91
|
-
ensureLiveRegion(): void;
|
|
92
|
-
removeLiveRegion(): void;
|
|
93
|
-
announce(msg: string): void;
|
|
94
|
-
};
|
|
95
|
-
list(): string[];
|
|
96
|
-
use(name: string): Plugin | undefined;
|
|
97
|
-
fix(config?: Partial<A11yConfig>): A11yReport;
|
|
98
|
-
scan(): A11yReport;
|
|
99
|
-
};
|
|
100
|
-
|
|
101
|
-
export { type A11yConfig, type A11yFix, type A11yReport, type ColorBlindMode, Runtime, type Severity, YuktAI, YuktAIWrapper, type YuktAIWrapperProps, aiPlugin, YuktAIWrapper as default, voicePlugin, wcagPlugin as wcag, wcagPlugin };
|