@capacitor/text-zoom 7.0.2-nightly-20250702T150614.0 → 7.0.2-nightly-20250704T150546.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.map +1 -1
- package/dist/plugin.js.map +1 -1
- package/package.json +5 -5
package/dist/plugin.cjs.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"plugin.cjs.js","sources":["esm/index.js","esm/ios.js"],"sourcesContent":["import { registerPlugin } from '@capacitor/core';\nconst TextZoom = registerPlugin('TextZoom', {\n ios: () => import('./ios').then(m => new m.TextZoomIOS()),\n});\nexport * from './definitions';\nexport { TextZoom };\n//# sourceMappingURL=index.js.map","export class TextZoomIOS {\n async get() {\n const percentage = this.getRaw();\n const value = this.textSizePercentageToNumber(percentage);\n return { value };\n }\n async getPreferred() {\n throw 'Native implementation will be used';\n }\n async set(options) {\n const num = this.textSizeNumberToPercentage(options.value);\n this.setRaw(num);\n }\n getRaw() {\n if (typeof document !== 'undefined') {\n return document.body.style.webkitTextSizeAdjust || '100%';\n }\n return '100%';\n }\n setRaw(value) {\n if (typeof document !== 'undefined') {\n document.body.style.webkitTextSizeAdjust = value;\n }\n }\n textSizePercentageToNumber(percentage) {\n const m = TextZoomIOS.TEXT_SIZE_REGEX.exec(percentage);\n if (!m) {\n return 1;\n }\n const parsed = Number.parseInt(m[1], 10);\n if (Number.isNaN(parsed)) {\n return 1;\n }\n return parsed / 100;\n }\n textSizeNumberToPercentage(num) {\n return `${Math.round(num * 100)}%`;\n }\n}\nTextZoomIOS.TEXT_SIZE_REGEX = /(\\d+)%/;\n//# sourceMappingURL=ios.js.map"],"names":["registerPlugin"],"mappings":";;;;AACK,MAAC,QAAQ,GAAGA,mBAAc,CAAC,UAAU,EAAE;AAC5C,IAAI,GAAG,EAAE,MAAM,mDAAe,CAAC,IAAI,CAAC,CAAC,IAAI,IAAI,CAAC,CAAC,WAAW,EAAE,CAAC;AAC7D,CAAC;;ACHM,MAAM,WAAW,CAAC;AACzB,IAAI,MAAM,GAAG,GAAG;AAChB,QAAQ,MAAM,UAAU,GAAG,IAAI,CAAC,MAAM,EAAE;AACxC,QAAQ,MAAM,KAAK,GAAG,IAAI,CAAC,0BAA0B,CAAC,UAAU,CAAC;AACjE,QAAQ,OAAO,EAAE,KAAK,EAAE;AACxB;
|
|
1
|
+
{"version":3,"file":"plugin.cjs.js","sources":["esm/index.js","esm/ios.js"],"sourcesContent":["import { registerPlugin } from '@capacitor/core';\nconst TextZoom = registerPlugin('TextZoom', {\n ios: () => import('./ios').then(m => new m.TextZoomIOS()),\n});\nexport * from './definitions';\nexport { TextZoom };\n//# sourceMappingURL=index.js.map","export class TextZoomIOS {\n async get() {\n const percentage = this.getRaw();\n const value = this.textSizePercentageToNumber(percentage);\n return { value };\n }\n async getPreferred() {\n throw 'Native implementation will be used';\n }\n async set(options) {\n const num = this.textSizeNumberToPercentage(options.value);\n this.setRaw(num);\n }\n getRaw() {\n if (typeof document !== 'undefined') {\n return document.body.style.webkitTextSizeAdjust || '100%';\n }\n return '100%';\n }\n setRaw(value) {\n if (typeof document !== 'undefined') {\n document.body.style.webkitTextSizeAdjust = value;\n }\n }\n textSizePercentageToNumber(percentage) {\n const m = TextZoomIOS.TEXT_SIZE_REGEX.exec(percentage);\n if (!m) {\n return 1;\n }\n const parsed = Number.parseInt(m[1], 10);\n if (Number.isNaN(parsed)) {\n return 1;\n }\n return parsed / 100;\n }\n textSizeNumberToPercentage(num) {\n return `${Math.round(num * 100)}%`;\n }\n}\nTextZoomIOS.TEXT_SIZE_REGEX = /(\\d+)%/;\n//# sourceMappingURL=ios.js.map"],"names":["registerPlugin"],"mappings":";;;;AACK,MAAC,QAAQ,GAAGA,mBAAc,CAAC,UAAU,EAAE;AAC5C,IAAI,GAAG,EAAE,MAAM,mDAAe,CAAC,IAAI,CAAC,CAAC,IAAI,IAAI,CAAC,CAAC,WAAW,EAAE,CAAC;AA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AAClC,YAAY,OAAO,CAAC;AACpB,QAAQ;AACR,QAAQ,OAAO,MAAM,GAAG,GAAG;AAC3B,IAAI;AACJ,IAAI,0BAA0B,CAAC,GAAG,EAAE;AACpC,QAAQ,OAAO,CAAC,EAAE,IAAI,CAAC,KAAK,CAAC,GAAG,GAAG,GAAG,CAAC,CAAC,CAAC,CAAC;AAC1C,IAAI;AACJ;AACA,WAAW,CAAC,eAAe,GAAG,QAAQ;;;;;;;;;"}
|
package/dist/plugin.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"plugin.js","sources":["esm/index.js","esm/ios.js"],"sourcesContent":["import { registerPlugin } from '@capacitor/core';\nconst TextZoom = registerPlugin('TextZoom', {\n ios: () => import('./ios').then(m => new m.TextZoomIOS()),\n});\nexport * from './definitions';\nexport { TextZoom };\n//# sourceMappingURL=index.js.map","export class TextZoomIOS {\n async get() {\n const percentage = this.getRaw();\n const value = this.textSizePercentageToNumber(percentage);\n return { value };\n }\n async getPreferred() {\n throw 'Native implementation will be used';\n }\n async set(options) {\n const num = this.textSizeNumberToPercentage(options.value);\n this.setRaw(num);\n }\n getRaw() {\n if (typeof document !== 'undefined') {\n return document.body.style.webkitTextSizeAdjust || '100%';\n }\n return '100%';\n }\n setRaw(value) {\n if (typeof document !== 'undefined') {\n document.body.style.webkitTextSizeAdjust = value;\n }\n }\n textSizePercentageToNumber(percentage) {\n const m = TextZoomIOS.TEXT_SIZE_REGEX.exec(percentage);\n if (!m) {\n return 1;\n }\n const parsed = Number.parseInt(m[1], 10);\n if (Number.isNaN(parsed)) {\n return 1;\n }\n return parsed / 100;\n }\n textSizeNumberToPercentage(num) {\n return `${Math.round(num * 100)}%`;\n }\n}\nTextZoomIOS.TEXT_SIZE_REGEX = /(\\d+)%/;\n//# sourceMappingURL=ios.js.map"],"names":["registerPlugin"],"mappings":";;;AACK,UAAC,QAAQ,GAAGA,mBAAc,CAAC,UAAU,EAAE;IAC5C,IAAI,GAAG,EAAE,MAAM,mDAAe,CAAC,IAAI,CAAC,CAAC,IAAI,IAAI,CAAC,CAAC,WAAW,EAAE,CAAC;IAC7D,CAAC;;ICHM,MAAM,WAAW,CAAC;IACzB,IAAI,MAAM,GAAG,GAAG;IAChB,QAAQ,MAAM,UAAU,GAAG,IAAI,CAAC,MAAM,EAAE;IACxC,QAAQ,MAAM,KAAK,GAAG,IAAI,CAAC,0BAA0B,CAAC,UAAU,CAAC;IACjE,QAAQ,OAAO,EAAE,KAAK,EAAE;IACxB;
|
|
1
|
+
{"version":3,"file":"plugin.js","sources":["esm/index.js","esm/ios.js"],"sourcesContent":["import { registerPlugin } from '@capacitor/core';\nconst TextZoom = registerPlugin('TextZoom', {\n ios: () => import('./ios').then(m => new m.TextZoomIOS()),\n});\nexport * from './definitions';\nexport { TextZoom };\n//# sourceMappingURL=index.js.map","export class TextZoomIOS {\n async get() {\n const percentage = this.getRaw();\n const value = this.textSizePercentageToNumber(percentage);\n return { value };\n }\n async getPreferred() {\n throw 'Native implementation will be used';\n }\n async set(options) {\n const num = this.textSizeNumberToPercentage(options.value);\n this.setRaw(num);\n }\n getRaw() {\n if (typeof document !== 'undefined') {\n return document.body.style.webkitTextSizeAdjust || '100%';\n }\n return '100%';\n }\n setRaw(value) {\n if (typeof document !== 'undefined') {\n document.body.style.webkitTextSizeAdjust = value;\n }\n }\n textSizePercentageToNumber(percentage) {\n const m = TextZoomIOS.TEXT_SIZE_REGEX.exec(percentage);\n if (!m) {\n return 1;\n }\n const parsed = Number.parseInt(m[1], 10);\n if (Number.isNaN(parsed)) {\n return 1;\n }\n return parsed / 100;\n }\n textSizeNumberToPercentage(num) {\n return `${Math.round(num * 100)}%`;\n }\n}\nTextZoomIOS.TEXT_SIZE_REGEX = /(\\d+)%/;\n//# sourceMappingURL=ios.js.map"],"names":["registerPlugin"],"mappings":";;;AACK,UAAC,QAAQ,GAAGA,mBAAc,CAAC,UAAU,EAAE;IAC5C,IAAI,GAAG,EAAE,MAAM,mDAAe,CA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AAC;IAChD,QAAQ,IAAI,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,EAAE;IAClC,YAAY,OAAO,CAAC;IACpB,QAAQ;IACR,QAAQ,OAAO,MAAM,GAAG,GAAG;IAC3B,IAAI;IACJ,IAAI,0BAA0B,CAAC,GAAG,EAAE;IACpC,QAAQ,OAAO,CAAC,EAAE,IAAI,CAAC,KAAK,CAAC,GAAG,GAAG,GAAG,CAAC,CAAC,CAAC,CAAC;IAC1C,IAAI;IACJ;IACA,WAAW,CAAC,eAAe,GAAG,QAAQ;;;;;;;;;;;;;;;"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@capacitor/text-zoom",
|
|
3
|
-
"version": "7.0.2-nightly-
|
|
3
|
+
"version": "7.0.2-nightly-20250704T150546.0",
|
|
4
4
|
"description": "The Text Zoom API provides the ability to change Web View text size for visual accessibility.",
|
|
5
5
|
"main": "dist/plugin.cjs.js",
|
|
6
6
|
"module": "dist/esm/index.js",
|
|
@@ -47,10 +47,10 @@
|
|
|
47
47
|
"publish:cocoapod": "pod trunk push ./CapacitorTextZoom.podspec --allow-warnings"
|
|
48
48
|
},
|
|
49
49
|
"devDependencies": {
|
|
50
|
-
"@capacitor/android": "
|
|
51
|
-
"@capacitor/core": "
|
|
50
|
+
"@capacitor/android": "^7.0.0",
|
|
51
|
+
"@capacitor/core": "^7.0.0",
|
|
52
52
|
"@capacitor/docgen": "0.2.2",
|
|
53
|
-
"@capacitor/ios": "
|
|
53
|
+
"@capacitor/ios": "^7.0.0",
|
|
54
54
|
"@ionic/eslint-config": "^0.4.0",
|
|
55
55
|
"@ionic/prettier-config": "~1.0.1",
|
|
56
56
|
"@ionic/swiftlint-config": "^1.1.2",
|
|
@@ -81,5 +81,5 @@
|
|
|
81
81
|
"publishConfig": {
|
|
82
82
|
"access": "public"
|
|
83
83
|
},
|
|
84
|
-
"gitHead": "
|
|
84
|
+
"gitHead": "25236f382016b1ea80a58f79ad871a4416a7306d"
|
|
85
85
|
}
|