@capacitor/screen-reader 7.0.0-dev-2245-20241115T154846.0 → 7.0.0-dev-2245-20241122T184300.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/plugin.cjs.js +0 -2
- package/dist/plugin.cjs.js.map +1 -1
- package/dist/plugin.js +0 -2
- package/dist/plugin.js.map +1 -1
- package/package.json +3 -3
package/dist/plugin.cjs.js
CHANGED
package/dist/plugin.cjs.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"plugin.cjs.js","sources":["esm/index.js","esm/web.js"],"sourcesContent":["import { registerPlugin } from '@capacitor/core';\nconst ScreenReader = registerPlugin('ScreenReader', {\n web: () => import('./web').then(m => new m.ScreenReaderWeb()),\n});\nexport * from './definitions';\nexport { ScreenReader };\n//# sourceMappingURL=index.js.map","import { WebPlugin } from '@capacitor/core';\nexport class ScreenReaderWeb extends WebPlugin {\n async isEnabled() {\n throw this.unavailable('This feature is not available in the browser.');\n }\n async speak(options) {\n if (!('speechSynthesis' in window)) {\n throw this.unavailable('Browser does not support the SpeechSynthesis API');\n }\n const utterance = new SpeechSynthesisUtterance(options.value);\n if (options.language) {\n utterance.lang = options.language;\n }\n speechSynthesis.speak(utterance);\n }\n}\n//# sourceMappingURL=web.js.map"],"names":["registerPlugin","WebPlugin"],"mappings":"
|
1
|
+
{"version":3,"file":"plugin.cjs.js","sources":["esm/index.js","esm/web.js"],"sourcesContent":["import { registerPlugin } from '@capacitor/core';\nconst ScreenReader = registerPlugin('ScreenReader', {\n web: () => import('./web').then(m => new m.ScreenReaderWeb()),\n});\nexport * from './definitions';\nexport { ScreenReader };\n//# sourceMappingURL=index.js.map","import { WebPlugin } from '@capacitor/core';\nexport class ScreenReaderWeb extends WebPlugin {\n async isEnabled() {\n throw this.unavailable('This feature is not available in the browser.');\n }\n async speak(options) {\n if (!('speechSynthesis' in window)) {\n throw this.unavailable('Browser does not support the SpeechSynthesis API');\n }\n const utterance = new SpeechSynthesisUtterance(options.value);\n if (options.language) {\n utterance.lang = options.language;\n }\n speechSynthesis.speak(utterance);\n }\n}\n//# sourceMappingURL=web.js.map"],"names":["registerPlugin","WebPlugin"],"mappings":";;;;AACK,MAAC,YAAY,GAAGA,mBAAc,CAAC,cAAc,EAAE;AACpD,IAAI,GAAG,EAAE,MAAM,mDAAe,CAAC,IAAI,CAAC,CAAC,IAAI,IAAI,CAAC,CAAC,eAAe,EAAE,CAAC;AACjE,CAAC;;ACFM,MAAM,eAAe,SAASC,cAAS,CAAC;AAC/C,IAAI,MAAM,SAAS,GAAG;AACtB,QAAQ,MAAM,IAAI,CAAC,WAAW,CAAC,+CAA+C,CAAC;AAC/E;AACA,IAAI,MAAM,KAAK,CAAC,OAAO,EAAE;AACzB,QAAQ,IAAI,EAAE,iBAAiB,IAAI,MAAM,CAAC,EAAE;AAC5C,YAAY,MAAM,IAAI,CAAC,WAAW,CAAC,kDAAkD,CAAC;AACtF;AACA,QAAQ,MAAM,SAAS,GAAG,IAAI,wBAAwB,CAAC,OAAO,CAAC,KAAK,CAAC;AACrE,QAAQ,IAAI,OAAO,CAAC,QAAQ,EAAE;AAC9B,YAAY,SAAS,CAAC,IAAI,GAAG,OAAO,CAAC,QAAQ;AAC7C;AACA,QAAQ,eAAe,CAAC,KAAK,CAAC,SAAS,CAAC;AACxC;AACA;;;;;;;;;"}
|
package/dist/plugin.js
CHANGED
package/dist/plugin.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"plugin.js","sources":["esm/index.js","esm/web.js"],"sourcesContent":["import { registerPlugin } from '@capacitor/core';\nconst ScreenReader = registerPlugin('ScreenReader', {\n web: () => import('./web').then(m => new m.ScreenReaderWeb()),\n});\nexport * from './definitions';\nexport { ScreenReader };\n//# sourceMappingURL=index.js.map","import { WebPlugin } from '@capacitor/core';\nexport class ScreenReaderWeb extends WebPlugin {\n async isEnabled() {\n throw this.unavailable('This feature is not available in the browser.');\n }\n async speak(options) {\n if (!('speechSynthesis' in window)) {\n throw this.unavailable('Browser does not support the SpeechSynthesis API');\n }\n const utterance = new SpeechSynthesisUtterance(options.value);\n if (options.language) {\n utterance.lang = options.language;\n }\n speechSynthesis.speak(utterance);\n }\n}\n//# sourceMappingURL=web.js.map"],"names":["registerPlugin","WebPlugin"],"mappings":";;;AACK,UAAC,YAAY,GAAGA,mBAAc,CAAC,cAAc,EAAE;IACpD,IAAI,GAAG,EAAE,MAAM,mDAAe,CAAC,IAAI,CAAC,CAAC,IAAI,IAAI,CAAC,CAAC,eAAe,EAAE,CAAC;IACjE,CAAC;;ICFM,MAAM,eAAe,SAASC,cAAS,CAAC;IAC/C,IAAI,MAAM,SAAS,GAAG;IACtB,QAAQ,MAAM,IAAI,CAAC,WAAW,CAAC,+CAA+C,CAAC
|
1
|
+
{"version":3,"file":"plugin.js","sources":["esm/index.js","esm/web.js"],"sourcesContent":["import { registerPlugin } from '@capacitor/core';\nconst ScreenReader = registerPlugin('ScreenReader', {\n web: () => import('./web').then(m => new m.ScreenReaderWeb()),\n});\nexport * from './definitions';\nexport { ScreenReader };\n//# sourceMappingURL=index.js.map","import { WebPlugin } from '@capacitor/core';\nexport class ScreenReaderWeb extends WebPlugin {\n async isEnabled() {\n throw this.unavailable('This feature is not available in the browser.');\n }\n async speak(options) {\n if (!('speechSynthesis' in window)) {\n throw this.unavailable('Browser does not support the SpeechSynthesis API');\n }\n const utterance = new SpeechSynthesisUtterance(options.value);\n if (options.language) {\n utterance.lang = options.language;\n }\n speechSynthesis.speak(utterance);\n }\n}\n//# sourceMappingURL=web.js.map"],"names":["registerPlugin","WebPlugin"],"mappings":";;;AACK,UAAC,YAAY,GAAGA,mBAAc,CAAC,cAAc,EAAE;IACpD,IAAI,GAAG,EAAE,MAAM,mDAAe,CAAC,IAAI,CAAC,CAAC,IAAI,IAAI,CAAC,CAAC,eAAe,EAAE,CAAC;IACjE,CAAC;;ICFM,MAAM,eAAe,SAASC,cAAS,CAAC;IAC/C,IAAI,MAAM,SAAS,GAAG;IACtB,QAAQ,MAAM,IAAI,CAAC,WAAW,CAAC,+CAA+C,CAAC;IAC/E;IACA,IAAI,MAAM,KAAK,CAAC,OAAO,EAAE;IACzB,QAAQ,IAAI,EAAE,iBAAiB,IAAI,MAAM,CAAC,EAAE;IAC5C,YAAY,MAAM,IAAI,CAAC,WAAW,CAAC,kDAAkD,CAAC;IACtF;IACA,QAAQ,MAAM,SAAS,GAAG,IAAI,wBAAwB,CAAC,OAAO,CAAC,KAAK,CAAC;IACrE,QAAQ,IAAI,OAAO,CAAC,QAAQ,EAAE;IAC9B,YAAY,SAAS,CAAC,IAAI,GAAG,OAAO,CAAC,QAAQ;IAC7C;IACA,QAAQ,eAAe,CAAC,KAAK,CAAC,SAAS,CAAC;IACxC;IACA;;;;;;;;;;;;;;;"}
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@capacitor/screen-reader",
|
3
|
-
"version": "7.0.0-dev-2245-
|
3
|
+
"version": "7.0.0-dev-2245-20241122T184300.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",
|
@@ -40,7 +40,7 @@
|
|
40
40
|
"prettier": "prettier \"**/*.{css,html,ts,js,java}\"",
|
41
41
|
"swiftlint": "node-swiftlint",
|
42
42
|
"docgen": "docgen --api ScreenReaderPlugin --output-readme README.md --output-json dist/docs.json",
|
43
|
-
"build": "npm run clean && npm run docgen && tsc && rollup -c rollup.config.
|
43
|
+
"build": "npm run clean && npm run docgen && tsc && rollup -c rollup.config.mjs",
|
44
44
|
"clean": "rimraf ./dist",
|
45
45
|
"watch": "tsc --watch",
|
46
46
|
"prepublishOnly": "npm run build",
|
@@ -58,7 +58,7 @@
|
|
58
58
|
"prettier": "~2.3.0",
|
59
59
|
"prettier-plugin-java": "~1.0.2",
|
60
60
|
"rimraf": "^3.0.0",
|
61
|
-
"rollup": "^
|
61
|
+
"rollup": "^4.26.0",
|
62
62
|
"swiftlint": "^1.0.1",
|
63
63
|
"typescript": "~4.1.5"
|
64
64
|
},
|