@capacitor/screen-reader 8.0.0-dev-2435-20251110T145116.0 → 8.0.0-dev-2440-20251112T164419.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.
- package/dist/esm/definitions.d.ts +3 -3
- package/dist/esm/web.js.map +1 -1
- package/package.json +8 -8
|
@@ -24,7 +24,7 @@ export interface ScreenReaderState {
|
|
|
24
24
|
*/
|
|
25
25
|
value: boolean;
|
|
26
26
|
}
|
|
27
|
-
export
|
|
27
|
+
export type StateChangeListener = (state: ScreenReaderState) => void;
|
|
28
28
|
export interface ScreenReaderPlugin {
|
|
29
29
|
/**
|
|
30
30
|
* Whether a Screen Reader is currently active.
|
|
@@ -75,9 +75,9 @@ export interface ScreenReaderPlugin {
|
|
|
75
75
|
* @deprecated Use `SpeakOptions`.
|
|
76
76
|
* @since 1.0.0
|
|
77
77
|
*/
|
|
78
|
-
export
|
|
78
|
+
export type AccessibilitySpeakOptions = SpeakOptions;
|
|
79
79
|
/**
|
|
80
80
|
* @deprecated Use `StateChangeListener`.
|
|
81
81
|
* @since 1.0.0
|
|
82
82
|
*/
|
|
83
|
-
export
|
|
83
|
+
export type ScreenReaderStateChangeCallback = StateChangeListener;
|
package/dist/esm/web.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"web.js","sourceRoot":"","sources":["../../src/web.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAI5C,MAAM,OAAO,eAAgB,SAAQ,SAAS;IAC5C,KAAK,CAAC,SAAS;QACb,MAAM,IAAI,CAAC,WAAW,CAAC,+CAA+C,CAAC,CAAC;IAC1E,CAAC;IAED,KAAK,CAAC,KAAK,CAAC,OAAqB;QAC/B,IAAI,CAAC,CAAC,iBAAiB,IAAI,MAAM,CAAC,EAAE;
|
|
1
|
+
{"version":3,"file":"web.js","sourceRoot":"","sources":["../../src/web.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAI5C,MAAM,OAAO,eAAgB,SAAQ,SAAS;IAC5C,KAAK,CAAC,SAAS;QACb,MAAM,IAAI,CAAC,WAAW,CAAC,+CAA+C,CAAC,CAAC;IAC1E,CAAC;IAED,KAAK,CAAC,KAAK,CAAC,OAAqB;QAC/B,IAAI,CAAC,CAAC,iBAAiB,IAAI,MAAM,CAAC,EAAE,CAAC;YACnC,MAAM,IAAI,CAAC,WAAW,CACpB,kDAAkD,CACnD,CAAC;QACJ,CAAC;QAED,MAAM,SAAS,GAAG,IAAI,wBAAwB,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC;QAE9D,IAAI,OAAO,CAAC,QAAQ,EAAE,CAAC;YACrB,SAAS,CAAC,IAAI,GAAG,OAAO,CAAC,QAAQ,CAAC;QACpC,CAAC;QAED,eAAe,CAAC,KAAK,CAAC,SAAS,CAAC,CAAC;IACnC,CAAC;CACF","sourcesContent":["import { WebPlugin } from '@capacitor/core';\n\nimport type { ScreenReaderPlugin, SpeakOptions } from './definitions';\n\nexport class ScreenReaderWeb extends WebPlugin implements ScreenReaderPlugin {\n async isEnabled(): Promise<never> {\n throw this.unavailable('This feature is not available in the browser.');\n }\n\n async speak(options: SpeakOptions): Promise<void> {\n if (!('speechSynthesis' in window)) {\n throw this.unavailable(\n 'Browser does not support the SpeechSynthesis API',\n );\n }\n\n const utterance = new SpeechSynthesisUtterance(options.value);\n\n if (options.language) {\n utterance.lang = options.language;\n }\n\n speechSynthesis.speak(utterance);\n }\n}\n"]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@capacitor/screen-reader",
|
|
3
|
-
"version": "8.0.0-dev-
|
|
3
|
+
"version": "8.0.0-dev-2440-20251112T164419.0",
|
|
4
4
|
"description": "The Screen Reader API provides access to TalkBack/VoiceOver/etc. and provides simple text-to-speech capabilities for visual accessibility.",
|
|
5
5
|
"main": "dist/plugin.cjs.js",
|
|
6
6
|
"module": "dist/esm/index.js",
|
|
@@ -49,18 +49,18 @@
|
|
|
49
49
|
"devDependencies": {
|
|
50
50
|
"@capacitor/android": "next",
|
|
51
51
|
"@capacitor/core": "next",
|
|
52
|
-
"@capacitor/docgen": "0.
|
|
52
|
+
"@capacitor/docgen": "0.3.0",
|
|
53
53
|
"@capacitor/ios": "next",
|
|
54
54
|
"@ionic/eslint-config": "^0.4.0",
|
|
55
55
|
"@ionic/prettier-config": "~1.0.1",
|
|
56
|
-
"@ionic/swiftlint-config": "^
|
|
57
|
-
"eslint": "^8.57.
|
|
56
|
+
"@ionic/swiftlint-config": "^2.0.0",
|
|
57
|
+
"eslint": "^8.57.1",
|
|
58
58
|
"prettier": "~2.3.0",
|
|
59
59
|
"prettier-plugin-java": "~1.0.2",
|
|
60
|
-
"rimraf": "^6.0
|
|
61
|
-
"rollup": "^4.
|
|
62
|
-
"swiftlint": "^
|
|
63
|
-
"typescript": "
|
|
60
|
+
"rimraf": "^6.1.0",
|
|
61
|
+
"rollup": "^4.53.2",
|
|
62
|
+
"swiftlint": "^2.0.0",
|
|
63
|
+
"typescript": "^5.9.3"
|
|
64
64
|
},
|
|
65
65
|
"peerDependencies": {
|
|
66
66
|
"@capacitor/core": "next"
|