@pushwoosh/smart-components-kit 1.0.18 → 1.0.20
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.
|
@@ -14,7 +14,7 @@ export const LanguagesSelectForm = ({
|
|
|
14
14
|
const [search, setSearch] = useState('');
|
|
15
15
|
const [showAllLanguages, setShowAllLanguages] = useState(false);
|
|
16
16
|
const filteredLanguages = useMemo(() => {
|
|
17
|
-
const languageItems = showAllLanguages ? allLanguageItems : allLanguageItems.filter(lang => lang.subscribers > 0);
|
|
17
|
+
const languageItems = showAllLanguages ? allLanguageItems : allLanguageItems.filter(lang => lang.subscribers > 0 || langs.includes(lang.code));
|
|
18
18
|
if (!search) {
|
|
19
19
|
return languageItems;
|
|
20
20
|
}
|
package/context/types.d.ts
CHANGED
|
@@ -12,5 +12,8 @@ export type SPAContextType = {
|
|
|
12
12
|
readonly sessionStore: SessionStore;
|
|
13
13
|
readonly rpcGateway: API;
|
|
14
14
|
readonly language: string;
|
|
15
|
+
readonly helpers: {
|
|
16
|
+
getApiOrigin: (name: string) => string;
|
|
17
|
+
};
|
|
15
18
|
readonly __smartComponentsCache: Record<string, any>;
|
|
16
19
|
};
|
package/package.json
CHANGED