@zh-keyboard/react 0.2.1 → 0.2.2
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.
|
@@ -5264,7 +5264,7 @@ const Gr = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20vie
|
|
|
5264
5264
|
)) })
|
|
5265
5265
|
] }) });
|
|
5266
5266
|
}, dm = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%3e%3cpath%20d='M18,20V10H6V20H18M18,8A2,2%200%200,1%2020,10V20A2,2%200%200,1%2018,22H6C4.89,22%204,21.1%204,20V10A2,2%200%200,1%206,8H15V6A3,3%200%200,0%2012,3A3,3%200%200,0%209,6H7A5,5%200%200,1%2012,1A5,5%200%200,1%2017,6V8H18M12,17A2,2%200%200,1%2010,15A2,2%200%200,1%2012,13A2,2%200%200,1%2014,15A2,2%200%200,1%2012,17Z'%20/%3e%3c/svg%3e", vm = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%3e%3cpath%20d='M12,17C10.89,17%2010,16.1%2010,15C10,13.89%2010.89,13%2012,13A2,2%200%200,1%2014,15A2,2%200%200,1%2012,17M18,20V10H6V20H18M18,8A2,2%200%200,1%2020,10V20A2,2%200%200,1%2018,22H6C4.89,22%204,21.1%204,20V10C4,8.89%204.89,8%206,8H7V6A5,5%200%200,1%2012,1A5,5%200%200,1%2017,6V8H18M12,3A3,3%200%200,0%209,6V8H15V6A3,3%200%200,0%2012,3Z'%20/%3e%3c/svg%3e", pm = ({ onKey: a, onExit: s }) => {
|
|
5267
|
-
const l = "!@#$%^&*(){}[]<>/\\|:;\"'
|
|
5267
|
+
const l = "!@#$%^&*(){}[]<>/\\|:;\"',.?+-=_~`€£¥₹©®™°", h = "!@#¥%…&*(){}[]<>/\|:;"',。?+-=_~·€£¥₹©®™°", [j, x] = je("en"), w = Ue(() => j === "zh" ? h : l, [j]), [E, T] = je(!1);
|
|
5268
5268
|
function M(U) {
|
|
5269
5269
|
a({ key: U }), E || s();
|
|
5270
5270
|
}
|
|
@@ -5335,7 +5335,7 @@ const Gr = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20vie
|
|
|
5335
5335
|
}) => {
|
|
5336
5336
|
const [E, T] = je(a), M = $e(a), [H, F] = je(null), U = $e(null), L = pc(), [Y, G] = Ei(U), { recognizerInitialized: ne, recognizerProgress: re } = im(s);
|
|
5337
5337
|
Dt(() => {
|
|
5338
|
-
M.current = E;
|
|
5338
|
+
(E === "en" || E === "zh") && (M.current = E);
|
|
5339
5339
|
}, [E]);
|
|
5340
5340
|
const [le, Pe] = je(!1), ye = pt(() => {
|
|
5341
5341
|
if (G) {
|