@redneckz/wildless-cms-uni-blocks 0.14.519 → 0.14.521

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.
@@ -0,0 +1,18 @@
1
+ export declare type FileId = string;
2
+ export declare type ProjectId = string | number;
3
+ export declare type SearchParams = Record<string, string>;
4
+ export interface FileMeta {
5
+ id?: FileId;
6
+ path?: string;
7
+ timestamp?: Date;
8
+ size?: number;
9
+ }
10
+ export interface SearchResult {
11
+ rows: FileMeta[];
12
+ total: number;
13
+ }
14
+ export declare const FileStorage: {
15
+ getById: <T>(id: FileId) => Promise<T | null>;
16
+ getByName: (projectId: ProjectId, name: string) => Promise<any>;
17
+ find: (projectId: ProjectId, params?: SearchParams) => Promise<SearchResult>;
18
+ };
@@ -4641,7 +4641,8 @@
4641
4641
  const { logo = {} } = common;
4642
4642
  const [, activeTopItem] = useActiveRoute(navigationItems);
4643
4643
  const { internetBankButton } = portal || {};
4644
- const logoProps = customLogo.image?.icon || customLogo.image?.src ? customLogo : logo;
4644
+ const customProps = customLogo.image?.icon || customLogo.image?.src || customLogo?.title;
4645
+ const logoProps = customProps ? customLogo : logo;
4645
4646
  return (jsx(BlockWrapper, { tag: "header", className: style('pt-m px-20', activeTopItem?.items?.length ? 'pb-m' : 'pb-lg', className), defaultPadding: "", version: version, ...rest, children: jsxs("div", { className: "container", children: [jsx("div", { className: "whitespace-nowrap", children: jsx(HeaderTopMenu, { activeTopItem: activeTopItem, navigationItems: navigationItems?.filter(isVisibleItem(HEADER_AREA_KEYS)), version: version, headerData: { ...header, ...navigation }, search: common.search, bgColor: bgColor, logo: logoProps }) }), jsx("div", { className: style('mt-s h-px bg-main-divider', getVersionStyle(version)) }), activeTopItem?.items?.length && (jsx(HeaderSubMenu, { subItems: activeTopItem?.items?.filter(isVisibleItem(HEADER_AREA_KEYS)), version: version, internetBankButton: internetBankButton }))] }) }));
4646
4647
  });
4647
4648
  const getVersionStyle = (version) => (version === 'transparent' ? 'opacity-30' : '');
@@ -6446,7 +6447,7 @@
6446
6447
  slots: () => [HEADER_SLOT, FOOTER_SLOT, STICKY_FOOTER_SLOT],
6447
6448
  });
6448
6449
 
6449
- const packageVersion = "0.14.518";
6450
+ const packageVersion = "0.14.520";
6450
6451
 
6451
6452
  exports.Blocks = Blocks;
6452
6453
  exports.ContentPage = ContentPage;