@redneckz/wildless-cms-uni-blocks 0.14.958 → 0.14.960
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/bundle/bundle.umd.js +7 -7
- package/bundle/bundle.umd.min.js +1 -1
- package/bundle/ui-kit/SearchBar/SearchBar.d.ts +2 -1
- package/bundle/ui-kit/SearchDialog/SearchDialog.d.ts +2 -0
- package/dist/components/Footer/renderLogoSearchBar.js +2 -2
- package/dist/components/Footer/renderLogoSearchBar.js.map +1 -1
- package/dist/ui-kit/SearchBar/SearchBar.d.ts +2 -1
- package/dist/ui-kit/SearchBar/SearchBar.js +1 -1
- package/dist/ui-kit/SearchBar/SearchBar.js.map +1 -1
- package/dist/ui-kit/SearchDialog/SearchDialog.d.ts +2 -0
- package/dist/ui-kit/SearchDialog/SearchDialog.js +2 -2
- package/dist/ui-kit/SearchDialog/SearchDialog.js.map +1 -1
- package/dist/ui-kit/YandexMap/useYandexMaps.js +2 -1
- package/dist/ui-kit/YandexMap/useYandexMaps.js.map +1 -1
- package/dist/wlc.json +2 -1
- package/lib/components/Footer/renderLogoSearchBar.js +2 -2
- package/lib/components/Footer/renderLogoSearchBar.js.map +1 -1
- package/lib/ui-kit/SearchBar/SearchBar.d.ts +2 -1
- package/lib/ui-kit/SearchBar/SearchBar.js +1 -1
- package/lib/ui-kit/SearchBar/SearchBar.js.map +1 -1
- package/lib/ui-kit/SearchDialog/SearchDialog.d.ts +2 -0
- package/lib/ui-kit/SearchDialog/SearchDialog.js +2 -2
- package/lib/ui-kit/SearchDialog/SearchDialog.js.map +1 -1
- package/lib/ui-kit/YandexMap/useYandexMaps.js +2 -1
- package/lib/ui-kit/YandexMap/useYandexMaps.js.map +1 -1
- package/lib/wlc.json +2 -1
- package/mobile/bundle/bundle.umd.js +2 -2
- package/mobile/bundle/bundle.umd.min.js +1 -1
- package/mobile/bundle/ui-kit/SearchBar/SearchBar.d.ts +2 -1
- package/mobile/bundle/ui-kit/SearchDialog/SearchDialog.d.ts +2 -0
- package/mobile/dist/ui-kit/SearchBar/SearchBar.d.ts +2 -1
- package/mobile/dist/ui-kit/SearchBar/SearchBar.js +1 -1
- package/mobile/dist/ui-kit/SearchBar/SearchBar.js.map +1 -1
- package/mobile/dist/ui-kit/SearchDialog/SearchDialog.d.ts +2 -0
- package/mobile/dist/ui-kit/SearchDialog/SearchDialog.js +2 -2
- package/mobile/dist/ui-kit/SearchDialog/SearchDialog.js.map +1 -1
- package/mobile/dist/ui-kit/YandexMap/useYandexMaps.js +2 -1
- package/mobile/dist/ui-kit/YandexMap/useYandexMaps.js.map +1 -1
- package/mobile/dist/wlc.json +2 -1
- package/mobile/lib/ui-kit/SearchBar/SearchBar.d.ts +2 -1
- package/mobile/lib/ui-kit/SearchBar/SearchBar.js +1 -1
- package/mobile/lib/ui-kit/SearchBar/SearchBar.js.map +1 -1
- package/mobile/lib/ui-kit/SearchDialog/SearchDialog.d.ts +2 -0
- package/mobile/lib/ui-kit/SearchDialog/SearchDialog.js +2 -2
- package/mobile/lib/ui-kit/SearchDialog/SearchDialog.js.map +1 -1
- package/mobile/lib/ui-kit/YandexMap/useYandexMaps.js +2 -1
- package/mobile/lib/ui-kit/YandexMap/useYandexMaps.js.map +1 -1
- package/mobile/lib/wlc.json +2 -1
- package/mobile/src/ui-kit/SearchBar/SearchBar.tsx +3 -1
- package/mobile/src/ui-kit/SearchDialog/SearchDialog.tsx +39 -28
- package/mobile/src/ui-kit/YandexMap/useYandexMaps.ts +4 -1
- package/mobile/src/wlc.json +2 -2
- package/package.json +1 -1
- package/src/components/Footer/renderLogoSearchBar.tsx +7 -2
- package/src/ui-kit/SearchBar/SearchBar.tsx +3 -1
- package/src/ui-kit/SearchDialog/SearchDialog.tsx +39 -28
- package/src/ui-kit/YandexMap/useYandexMaps.ts +4 -1
- package/src/wlc.json +2 -2
package/bundle/bundle.umd.js
CHANGED
|
@@ -4451,7 +4451,7 @@
|
|
|
4451
4451
|
|
|
4452
4452
|
const YMAPS_NAMESPACE = 'ymaps';
|
|
4453
4453
|
const useYandexMaps = () => {
|
|
4454
|
-
const url = `https://api-maps.yandex.ru/2.1/?lang=ru_RU`;
|
|
4454
|
+
const url = `https://api-maps.yandex.ru/2.1/?apikey=${projectSettings.YANDEX_MAP_API_KEY || ''}&lang=ru_RU`;
|
|
4455
4455
|
return useExternalNS(YMAPS_NAMESPACE, url, false);
|
|
4456
4456
|
};
|
|
4457
4457
|
|
|
@@ -11530,7 +11530,7 @@
|
|
|
11530
11530
|
});
|
|
11531
11531
|
|
|
11532
11532
|
const IS_SINGLE_SEARCH_INDEX = Boolean(env.SINGLE_SEARCH_INDEX);
|
|
11533
|
-
const SearchDialog = JSX(({ initialQuery, navigationItems, onClose }) => {
|
|
11533
|
+
const SearchDialog = JSX(({ initialQuery, navigationItems, onClose, search }) => {
|
|
11534
11534
|
const basePath = getBasePath(env.SITE_URL);
|
|
11535
11535
|
const basePathList = useMemo(() => (IS_SINGLE_SEARCH_INDEX ? [basePath] : navigationItems?.map((_) => _.href || '/')), [navigationItems]);
|
|
11536
11536
|
const [searchResult, searchInputProps] = useSearch({
|
|
@@ -11538,7 +11538,7 @@
|
|
|
11538
11538
|
initialQuery,
|
|
11539
11539
|
});
|
|
11540
11540
|
const searchItems = useMemo(() => combineTopItemsAndSearchResult(navigationItems)(searchResult), [navigationItems, searchResult]);
|
|
11541
|
-
return (jsx(Dialog, { maxWidth: "none", head: jsx(SearchInput, { className: "mt-s", autoFocus: true, ...searchInputProps }), onClose: onClose, children: jsx(Sitemap, { navigationItems: searchItems, isSearchPanel: true }) }));
|
|
11541
|
+
return (jsx(Dialog, { maxWidth: "none", head: jsx(SearchInput, { className: "mt-s", autoFocus: true, placeholder: search?.placeholder, ...searchInputProps }), onClose: onClose, children: jsx(Sitemap, { navigationItems: searchItems, isSearchPanel: true }) }));
|
|
11542
11542
|
});
|
|
11543
11543
|
const combineTopItemsAndSearchResult = (topItems) => (searchResult) => topItems?.length && searchResult?.length
|
|
11544
11544
|
? zip(topItems, searchResult).map(([_, portalSearchResult]) => ({
|
|
@@ -11558,15 +11558,15 @@
|
|
|
11558
11558
|
searchDialog.open({ initialQuery: _, onClose: resetQueryOnDialogClose });
|
|
11559
11559
|
}
|
|
11560
11560
|
}, [resetQueryOnDialogClose, searchDialog]);
|
|
11561
|
-
return (jsxs("div", { className: style('relative', className), role: "search", children: [jsx(SearchInput, { value: value, placeholder: search?.placeholder, onChange: handleInitialInputChange }), jsx(CloseButton, { className: "absolute top-0 right-0 sm:hidden", onClose: resetQueryOnDialogClose })] }));
|
|
11561
|
+
return (jsxs("div", { className: style('relative', className), role: "search", children: [jsx(SearchInput, { value: value, placeholder: search?.placeholder, onChange: handleInitialInputChange, ...rest }), jsx(CloseButton, { className: "absolute top-0 right-0 sm:hidden", onClose: resetQueryOnDialogClose })] }));
|
|
11562
11562
|
});
|
|
11563
11563
|
const isQueryLongEnough = (_) => _ && _.length >= MIN_QUERY_LEN;
|
|
11564
11564
|
|
|
11565
11565
|
const renderLogoSearchBar = (common, navigationItems) => {
|
|
11566
|
-
const { logo } = common ?? {};
|
|
11566
|
+
const { logo, search } = common ?? {};
|
|
11567
11567
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
11568
11568
|
const { dataHeader, dataFooter, ...logoProps } = logo ?? {};
|
|
11569
|
-
return (jsxs("div", { className: "flex items-stretch gap-3xl", children: [jsx(Logo, { className: LEFT_COLUMN_STYLE, logo: logoProps, data: dataFooter, showTitle: false }), jsx(SearchBar$1, { className: "grow", navigationItems: navigationItems, ...common })] }));
|
|
11569
|
+
return (jsxs("div", { className: "flex items-stretch gap-3xl", children: [jsx(Logo, { className: LEFT_COLUMN_STYLE, logo: logoProps, data: dataFooter, showTitle: false }), jsx(SearchBar$1, { className: "grow", navigationItems: navigationItems, placeholder: search?.placeholder, ...common })] }));
|
|
11570
11570
|
};
|
|
11571
11571
|
|
|
11572
11572
|
const TextInformationLink = JSX(({ className = '', index, ...rest }) => {
|
|
@@ -13000,7 +13000,7 @@
|
|
|
13000
13000
|
slots: () => [HEADER_SLOT, FOOTER_SLOT, STICKY_FOOTER_SLOT],
|
|
13001
13001
|
});
|
|
13002
13002
|
|
|
13003
|
-
const packageVersion = "0.14.
|
|
13003
|
+
const packageVersion = "0.14.959";
|
|
13004
13004
|
|
|
13005
13005
|
exports.Blocks = Blocks;
|
|
13006
13006
|
exports.ContentPage = ContentPage;
|