@ethnolib/language-chooser-react-mui 0.1.8 → 0.1.10
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/index.js +2 -2
- package/index.mjs +3 -1
- package/package.json +3 -3
package/index.mjs
CHANGED
@@ -354129,6 +354129,8 @@ function pg(e) {
|
|
354129
354129
|
};
|
354130
354130
|
}
|
354131
354131
|
function yF(e, i) {
|
354132
|
+
if (!e)
|
354133
|
+
return;
|
354132
354134
|
const { languageSubtag: t, scriptSubtag: s, regionSubtag: r, variantSubtag: l, privateUseSubtag: m, otherSubtags: L } = pg(e);
|
354133
354135
|
if (L != null && L.length || l) {
|
354134
354136
|
console.log("langtag parsing found unexpected subtags", L);
|
@@ -356822,7 +356824,7 @@ const R_ = {
|
|
356822
356824
|
var Ma, Fa;
|
356823
356825
|
const { i18n: i, _: t } = kg(), s = IF(e.onSelectionChange, e.searchResultModifier), [r, l] = en(!1);
|
356824
356826
|
jn(() => {
|
356825
|
-
d && (d.value =
|
356827
|
+
d && (d.value = "", d.focus()), e.initialSearchString && l(!0), setTimeout(() => {
|
356826
356828
|
s.resetTo(e.initialSearchString || "", e.initialSelectionLanguageTag, e.initialCustomDisplayName), l(!1);
|
356827
356829
|
}, 0);
|
356828
356830
|
}, []);
|
package/package.json
CHANGED
@@ -3,7 +3,7 @@
|
|
3
3
|
"description": "A language chooser React component using MUI",
|
4
4
|
"author": "SIL Global",
|
5
5
|
"license": "MIT",
|
6
|
-
"version": "0.1.
|
6
|
+
"version": "0.1.10",
|
7
7
|
"main": "./index.js",
|
8
8
|
"types": "./index.d.ts",
|
9
9
|
"exports": {
|
@@ -18,8 +18,8 @@
|
|
18
18
|
"e2e": "playwright test"
|
19
19
|
},
|
20
20
|
"dependencies": {
|
21
|
-
"@ethnolib/find-language": "0.1.
|
22
|
-
"@ethnolib/language-chooser-react-hook": "0.1.
|
21
|
+
"@ethnolib/find-language": "0.1.7",
|
22
|
+
"@ethnolib/language-chooser-react-hook": "0.1.8",
|
23
23
|
"lodash": "^4.17.21",
|
24
24
|
"react-lazyload": "^3.2.1",
|
25
25
|
"@mui/icons-material": "^5.15.19"
|