ape-accessibility 0.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.
@@ -0,0 +1,43 @@
1
+ interface WidgetConfig {
2
+ position?: 'bottom-left' | 'bottom-right';
3
+ zIndex?: number;
4
+ containerId?: string;
5
+ }
6
+ interface WidgetInstance {
7
+ destroy: () => void;
8
+ config: WidgetConfig;
9
+ }
10
+
11
+ interface AccessibilitySettings {
12
+ fontSize?: number;
13
+ contrast?: ContrastMode;
14
+ language?: LanguageMode;
15
+ colorblindMode?: ColorblindMode;
16
+ saturationMode?: SaturationMode;
17
+ dyslexiaFont?: boolean;
18
+ letterSpacing?: number;
19
+ lineHeight?: number;
20
+ fontWeight?: boolean;
21
+ highlightMode?: HighlightMode;
22
+ readingGuide?: boolean;
23
+ stopAnimations?: boolean;
24
+ bigCursor?: boolean;
25
+ hideImages?: boolean;
26
+ textAlign?: TextAlignMode;
27
+ ttsActive?: boolean;
28
+ updatedAt?: Date;
29
+ }
30
+ type ContrastMode = 'normal' | 'high' | 'dark' | 'light';
31
+ type LanguageMode = 'es' | 'en';
32
+ type ColorblindMode = 'normal' | 'protanopia' | 'deuteranopia' | 'tritanopia' | 'achromatopsia';
33
+ type SaturationMode = 'normal' | 'high' | 'low' | 'mono';
34
+ type HighlightMode = 'none' | 'titles' | 'links' | 'both';
35
+ type TextAlignMode = 'default' | 'left' | 'center' | 'right';
36
+ type AccessibilityProfile = 'none' | 'visionImpaired' | 'cognitive' | 'motorImpaired' | 'seniorFriendly';
37
+
38
+ declare function init(config?: WidgetConfig): WidgetInstance;
39
+ declare function destroy(): void;
40
+ declare function getSettings(): AccessibilitySettings;
41
+ declare function resetAllSettings(): void;
42
+
43
+ export { type AccessibilityProfile, type AccessibilitySettings, type WidgetConfig, type WidgetInstance, destroy, getSettings, init, resetAllSettings };
@@ -0,0 +1,43 @@
1
+ interface WidgetConfig {
2
+ position?: 'bottom-left' | 'bottom-right';
3
+ zIndex?: number;
4
+ containerId?: string;
5
+ }
6
+ interface WidgetInstance {
7
+ destroy: () => void;
8
+ config: WidgetConfig;
9
+ }
10
+
11
+ interface AccessibilitySettings {
12
+ fontSize?: number;
13
+ contrast?: ContrastMode;
14
+ language?: LanguageMode;
15
+ colorblindMode?: ColorblindMode;
16
+ saturationMode?: SaturationMode;
17
+ dyslexiaFont?: boolean;
18
+ letterSpacing?: number;
19
+ lineHeight?: number;
20
+ fontWeight?: boolean;
21
+ highlightMode?: HighlightMode;
22
+ readingGuide?: boolean;
23
+ stopAnimations?: boolean;
24
+ bigCursor?: boolean;
25
+ hideImages?: boolean;
26
+ textAlign?: TextAlignMode;
27
+ ttsActive?: boolean;
28
+ updatedAt?: Date;
29
+ }
30
+ type ContrastMode = 'normal' | 'high' | 'dark' | 'light';
31
+ type LanguageMode = 'es' | 'en';
32
+ type ColorblindMode = 'normal' | 'protanopia' | 'deuteranopia' | 'tritanopia' | 'achromatopsia';
33
+ type SaturationMode = 'normal' | 'high' | 'low' | 'mono';
34
+ type HighlightMode = 'none' | 'titles' | 'links' | 'both';
35
+ type TextAlignMode = 'default' | 'left' | 'center' | 'right';
36
+ type AccessibilityProfile = 'none' | 'visionImpaired' | 'cognitive' | 'motorImpaired' | 'seniorFriendly';
37
+
38
+ declare function init(config?: WidgetConfig): WidgetInstance;
39
+ declare function destroy(): void;
40
+ declare function getSettings(): AccessibilitySettings;
41
+ declare function resetAllSettings(): void;
42
+
43
+ export { type AccessibilityProfile, type AccessibilitySettings, type WidgetConfig, type WidgetInstance, destroy, getSettings, init, resetAllSettings };