accessibility-react-widget 2.0.0 → 2.0.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/README.md +9 -1
- package/dist/assets/main.css +1 -1
- package/dist/components/AccColors/AccColors.d.ts +3 -2
- package/dist/components/AccContent/AccContent.d.ts +3 -3
- package/dist/components/AccMenuContent/AccMenuContent.d.ts +4 -4
- package/dist/components/AccMenuContentBlock/AccMenuContentBlock.d.ts +4 -3
- package/dist/components/AccTools/AccTools.d.ts +3 -2
- package/dist/components/Accessibilik/index.d.ts +2 -1
- package/dist/components/AccessibilityMenu/AccessibilityMenu.d.ts +3 -3
- package/dist/components/Footer/Footer.d.ts +2 -1
- package/dist/components/Header/Header.d.ts +2 -1
- package/dist/components/Portal/Portal.d.ts +2 -1
- package/dist/components/RcSlider/RcSlider.d.ts +2 -1
- package/dist/components/buttons/AccButton/AccButton.d.ts +3 -2
- package/dist/components/buttons/AccValueControl/AccValueControl.d.ts +2 -1
- package/dist/components/buttons/AccValueControlButton/AccValueControlButton.d.ts +2 -1
- package/dist/components/buttons/AccessibilityButton/AccessibilityButton.d.ts +2 -1
- package/dist/components/buttons/colors/BlueLightFilterButton/BlueLightFilterButton.d.ts +3 -2
- package/dist/components/buttons/colors/BlueLightFilterButton/useBlueLightFilterButton.d.ts +1 -0
- package/dist/components/buttons/colors/BrightnessControl/BrightnessControl.d.ts +3 -2
- package/dist/components/buttons/colors/BrightnessControl/useBrightnessControl.d.ts +1 -0
- package/dist/components/buttons/colors/DarkContrastButton/DarkContrastButton.d.ts +3 -2
- package/dist/components/buttons/colors/DarkContrastButton/useDarkContrastButton.d.ts +1 -0
- package/dist/components/buttons/colors/HighContrastButton/HighContrastButton.d.ts +3 -2
- package/dist/components/buttons/colors/HighContrastButton/useHighContrastButton.d.ts +1 -0
- package/dist/components/buttons/colors/HighSaturationButton/HighSaturationButton.d.ts +3 -2
- package/dist/components/buttons/colors/HighSaturationButton/useHighSaturationButton.d.ts +1 -0
- package/dist/components/buttons/colors/LightContrastButton/LightContrastButton.d.ts +3 -2
- package/dist/components/buttons/colors/LightContrastButton/useLightContrastButton.d.ts +1 -0
- package/dist/components/buttons/colors/LowSaturationButton/LowSaturationButton.d.ts +3 -2
- package/dist/components/buttons/colors/LowSaturationButton/useLowSaturationButton.d.ts +1 -0
- package/dist/components/buttons/colors/MonochromeButton/MonochromeButton.d.ts +3 -2
- package/dist/components/buttons/colors/MonochromeButton/useMonochromeButton.d.ts +1 -0
- package/dist/components/buttons/colors/TextColorPickerButton/TextColorPickerButton.d.ts +3 -2
- package/dist/components/buttons/colors/TextColorPickerButton/useTextColorPickerButton.d.ts +1 -0
- package/dist/components/buttons/colors/VisualImpairmentButton/VisualImpairmentButton.d.ts +3 -2
- package/dist/components/buttons/colors/VisualImpairmentButton/useVisualImpairmentButton.d.ts +1 -0
- package/dist/components/buttons/content/AdjustFontSize/AdjustFontSize.d.ts +3 -3
- package/dist/components/buttons/content/AdjustFontSize/useAdjustFontSize.d.ts +1 -0
- package/dist/components/buttons/content/AlignTextButton/AlignTextButton.d.ts +5 -4
- package/dist/components/buttons/content/AlignTextButton/useAlignTextButton.d.ts +3 -0
- package/dist/components/buttons/content/DyslexiaFontButton/DyslexiaFontButton.d.ts +3 -2
- package/dist/components/buttons/content/DyslexiaFontButton/style.d.ts +1 -1
- package/dist/components/buttons/content/DyslexiaFontButton/useDyslexiaFontButton.d.ts +1 -0
- package/dist/components/buttons/content/FontWeightButton/FontWeightButton.d.ts +3 -2
- package/dist/components/buttons/content/FontWeightButton/useFontWeightButton.d.ts +1 -0
- package/dist/components/buttons/content/HighlightLinksButton/HighlightLinksButton.d.ts +3 -2
- package/dist/components/buttons/content/HighlightLinksButton/useHighlightLinksButton.d.ts +1 -0
- package/dist/components/buttons/content/HighlightTitlesButton/HighlightTitlesButton.d.ts +3 -2
- package/dist/components/buttons/content/HighlightTitlesButton/useHighlightTitlesButton.d.ts +1 -0
- package/dist/components/buttons/content/LetterSpacingButton/LetterSpacingButton.d.ts +3 -2
- package/dist/components/buttons/content/LetterSpacingButton/useLetterSpacingButton.d.ts +1 -0
- package/dist/components/buttons/content/LineHeightButton/LineHeightButton.d.ts +3 -2
- package/dist/components/buttons/content/LineHeightButton/useLineHeightButton.d.ts +4 -0
- package/dist/components/buttons/content/WordSpacingButton/WordSpacingButton.d.ts +3 -2
- package/dist/components/buttons/content/WordSpacingButton/useWordSpacingButton.d.ts +1 -0
- package/dist/components/buttons/content/ZoomButton/ZoomButton.d.ts +3 -2
- package/dist/components/buttons/content/ZoomButton/useZoomButton.d.ts +4 -0
- package/dist/components/buttons/tools/BigCursorButton/BigCursorButton.d.ts +3 -2
- package/dist/components/buttons/tools/BigCursorButton/useBigCursorButton.d.ts +1 -0
- package/dist/components/buttons/tools/ReadingGuide/ReadingGuide.d.ts +3 -2
- package/dist/components/buttons/tools/ReadingGuide/useReadingGuide.d.ts +1 -0
- package/dist/components/buttons/tools/TextToSpeech/TextToSpeech.d.ts +3 -2
- package/dist/config.d.ts +2 -1
- package/dist/constants.d.ts +1 -1
- package/dist/hooks/usePersistenceLayout/usePersistenceLayout.d.ts +9 -0
- package/dist/i18/locale/index.d.ts +1 -1
- package/dist/main.d.ts +2 -1
- package/dist/main.min.js +173 -131
- package/dist/types.d.ts +2 -3
- package/dist/utils.d.ts +3 -1
- package/package.json +11 -10
package/dist/types.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { Draft } from 'immer';
|
|
2
|
+
|
|
3
3
|
export type ChangeAccDraftHander = (d: Draft<AccessibilikState>) => void;
|
|
4
|
-
interface TextAlign {
|
|
4
|
+
export interface TextAlign {
|
|
5
5
|
left: string | null;
|
|
6
6
|
center: string | null;
|
|
7
7
|
right: string | null;
|
|
@@ -53,4 +53,3 @@ export interface AccessibilikState {
|
|
|
53
53
|
export type IconSvgComponent = React.FunctionComponent<React.SVGProps<SVGSVGElement> & {
|
|
54
54
|
title?: string | undefined;
|
|
55
55
|
}>;
|
|
56
|
-
export {};
|
package/dist/utils.d.ts
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
|
-
import { AccessibilikState } from
|
|
1
|
+
import { AccessibilikState } from './types';
|
|
2
|
+
|
|
2
3
|
export declare const isRuleAppliedToElement: (element: HTMLElement, rule: CSSStyleRule) => boolean;
|
|
3
4
|
export declare const getComputedStyleAndSetAccDataFontSize: (elem: HTMLElement) => void;
|
|
4
5
|
export declare const getDataImageSvgBase64: (svg: string) => string;
|
|
5
6
|
export declare const getAccInitState: () => AccessibilikState;
|
|
7
|
+
export declare const registerDomain: () => Promise<void>;
|
package/package.json
CHANGED
|
@@ -54,7 +54,7 @@
|
|
|
54
54
|
"Web accessibility standards",
|
|
55
55
|
"Universal web access solutions"
|
|
56
56
|
],
|
|
57
|
-
"version": "2.0.
|
|
57
|
+
"version": "2.0.1",
|
|
58
58
|
"type": "module",
|
|
59
59
|
"main": "dist/main.min.js",
|
|
60
60
|
"types": "dist/main.d.ts",
|
|
@@ -71,20 +71,20 @@
|
|
|
71
71
|
"scripts": {
|
|
72
72
|
"dev": "vite",
|
|
73
73
|
"build": "tsc --p ./tsconfig-build.json && vite build && npm run uglify && rm ./dist/main.js",
|
|
74
|
-
"buildUmd": "tsc --p ./tsconfig-build.json && vite build && npm run uglifyUmd && rm ./dist/
|
|
74
|
+
"buildUmd": "tsc --p ./tsconfig-build.json && vite build && npm run uglifyUmd && rm ./dist/accessibility-react-widget.umd.cjs",
|
|
75
75
|
"uglify": "uglifyjs ./dist/main.js -o ./dist/main.min.js --compress --mangle",
|
|
76
|
-
"uglifyUmd": "uglifyjs ./dist/
|
|
76
|
+
"uglifyUmd": "uglifyjs ./dist/accessibility-react-widget.umd.cjs -o ./dist/accessibilik.umd.min.cjs --compress --mangle",
|
|
77
77
|
"prepublishOnly": "npm run build",
|
|
78
78
|
"lint": "eslint . --ext ts,tsx --report-unused-disable-directives --max-warnings 0",
|
|
79
79
|
"preview": "vite preview"
|
|
80
80
|
},
|
|
81
81
|
"peerDependencies": {
|
|
82
|
-
"react": "^
|
|
83
|
-
"react-dom": "^
|
|
82
|
+
"react": "^19.1.0",
|
|
83
|
+
"react-dom": "^19.1.0"
|
|
84
84
|
},
|
|
85
85
|
"devDependencies": {
|
|
86
|
-
"@types/react": "^
|
|
87
|
-
"@types/react-dom": "^
|
|
86
|
+
"@types/react": "^19.1.2",
|
|
87
|
+
"@types/react-dom": "^19.1.2",
|
|
88
88
|
"@typescript-eslint/eslint-plugin": "^6.10.0",
|
|
89
89
|
"@typescript-eslint/parser": "^6.10.0",
|
|
90
90
|
"@vitejs/plugin-react": "^4.2.0",
|
|
@@ -94,12 +94,12 @@
|
|
|
94
94
|
"eslint-plugin-react-refresh": "^0.4.4",
|
|
95
95
|
"glob": "^10.3.10",
|
|
96
96
|
"postcss": "^8.4.32",
|
|
97
|
-
"react": "^
|
|
98
|
-
"react-dom": "^
|
|
97
|
+
"react": "^19.0.0",
|
|
98
|
+
"react-dom": "^19.0.0",
|
|
99
99
|
"rollup-plugin-terser": "^7.0.2",
|
|
100
100
|
"rollup-plugin-visualizer": "^5.12.0",
|
|
101
101
|
"sass": "^1.69.5",
|
|
102
|
-
"typescript": "^5.
|
|
102
|
+
"typescript": "^5.6.3",
|
|
103
103
|
"uglify-js": "^3.17.4",
|
|
104
104
|
"vite": "^5.0.0",
|
|
105
105
|
"vite-plugin-dts": "^3.6.4",
|
|
@@ -119,6 +119,7 @@
|
|
|
119
119
|
"rc-slider": "^10.5.0",
|
|
120
120
|
"react-colorful": "^5.6.1",
|
|
121
121
|
"react-i18next": "^13.5.0",
|
|
122
|
+
"react-router": "^7.5.0",
|
|
122
123
|
"react-select": "^5.8.0"
|
|
123
124
|
}
|
|
124
125
|
}
|