@redneckz/wildless-cms-uni-blocks 0.14.915 → 0.14.916

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.
Files changed (44) hide show
  1. package/bundle/blocks.schema.json +1 -1
  2. package/bundle/bundle.umd.js +6 -6
  3. package/bundle/bundle.umd.min.js +1 -1
  4. package/bundle/components/Footer/LinkList.d.ts +0 -1
  5. package/bundle/model/AspectsProps.d.ts +9 -1
  6. package/bundle/ui-kit/Sitemap/SitemapProps.d.ts +1 -0
  7. package/dist/components/Footer/LinkList.d.ts +0 -1
  8. package/dist/components/Footer/LinkList.js +2 -2
  9. package/dist/components/Footer/LinkList.js.map +1 -1
  10. package/dist/model/AspectsProps.d.ts +9 -1
  11. package/dist/ui-kit/Sitemap/Sitemap.js +3 -3
  12. package/dist/ui-kit/Sitemap/Sitemap.js.map +1 -1
  13. package/dist/ui-kit/Sitemap/SitemapProps.d.ts +1 -0
  14. package/lib/components/Footer/LinkList.d.ts +0 -1
  15. package/lib/components/Footer/LinkList.js +2 -2
  16. package/lib/components/Footer/LinkList.js.map +1 -1
  17. package/lib/model/AspectsProps.d.ts +9 -1
  18. package/lib/retail/components/DraftDialog/utils.d.ts +3 -3
  19. package/lib/ui-kit/Sitemap/Sitemap.js +3 -3
  20. package/lib/ui-kit/Sitemap/Sitemap.js.map +1 -1
  21. package/lib/ui-kit/Sitemap/SitemapProps.d.ts +1 -0
  22. package/mobile/bundle/bundle.umd.js +3 -3
  23. package/mobile/bundle/bundle.umd.min.js +1 -1
  24. package/mobile/bundle/components/Footer/LinkList.d.ts +0 -1
  25. package/mobile/bundle/model/AspectsProps.d.ts +9 -1
  26. package/mobile/bundle/ui-kit/Sitemap/SitemapProps.d.ts +1 -0
  27. package/mobile/dist/components/Footer/LinkList.d.ts +0 -1
  28. package/mobile/dist/components/Footer/LinkList.js +2 -2
  29. package/mobile/dist/components/Footer/LinkList.js.map +1 -1
  30. package/mobile/dist/model/AspectsProps.d.ts +9 -1
  31. package/mobile/dist/ui-kit/Sitemap/SitemapProps.d.ts +1 -0
  32. package/mobile/lib/components/Footer/LinkList.d.ts +0 -1
  33. package/mobile/lib/components/Footer/LinkList.js +2 -2
  34. package/mobile/lib/components/Footer/LinkList.js.map +1 -1
  35. package/mobile/lib/model/AspectsProps.d.ts +9 -1
  36. package/mobile/lib/ui-kit/Sitemap/SitemapProps.d.ts +1 -0
  37. package/mobile/src/components/Footer/LinkList.tsx +2 -7
  38. package/mobile/src/model/AspectsProps.ts +11 -1
  39. package/mobile/src/ui-kit/Sitemap/SitemapProps.ts +1 -0
  40. package/package.json +1 -1
  41. package/src/components/Footer/LinkList.tsx +2 -7
  42. package/src/model/AspectsProps.ts +11 -1
  43. package/src/ui-kit/Sitemap/Sitemap.tsx +29 -29
  44. package/src/ui-kit/Sitemap/SitemapProps.ts +1 -0
@@ -2,7 +2,6 @@ import { type ComponentType } from '../../model/ComponentType';
2
2
  import { type LinkProps } from '../../model/LinkProps';
3
3
  interface LinkListProps extends ComponentType {
4
4
  items?: LinkProps[];
5
- isFlex?: boolean;
6
5
  }
7
6
  export declare const LinkList: import("@redneckz/uni-jsx").UNIComponent<LinkListProps, any, any>;
8
7
  export {};
@@ -30,6 +30,14 @@ export declare type MindboxEventAspect = {
30
30
  export declare type ChatBotAspect = {
31
31
  aspectName: 'openChatBot';
32
32
  };
33
+ /**
34
+ * @title Отправить событие партнёру
35
+ * @default {"aspectName": "partnersEvent", "params": {"partner": "", "typeAction": "targetaction"}}
36
+ */
37
+ export declare type PartnersEventAspect = {
38
+ aspectName: 'partnersEvent';
39
+ params?: AspectData;
40
+ };
33
41
  /**
34
42
  * @title Не выбрано
35
43
  */
@@ -41,7 +49,7 @@ export declare type EmptyAspect = {
41
49
  * @title Параметр
42
50
  * @default { "aspectName": "" }
43
51
  */
44
- export declare type AspectsDef = EmptyAspect | ChatBotAspect | YandexReachGoalAspect | MindboxEventAspect | SnowplowEventAspect;
52
+ export declare type AspectsDef = EmptyAspect | ChatBotAspect | YandexReachGoalAspect | MindboxEventAspect | SnowplowEventAspect | PartnersEventAspect;
45
53
  export declare type AspectsProps = {
46
54
  /** @title Дополнительные атрибуты */
47
55
  data?: AspectsDef[];
@@ -2,4 +2,5 @@ import { type TopMenuItemProps } from '../../data/NavigationData';
2
2
  import { type ComponentType } from '../../model/ComponentType';
3
3
  export interface SitemapProps extends ComponentType {
4
4
  navigationItems?: TopMenuItemProps[];
5
+ isSearchPanel?: boolean;
5
6
  }
@@ -2,7 +2,6 @@ import { type ComponentType } from '../../model/ComponentType';
2
2
  import { type LinkProps } from '../../model/LinkProps';
3
3
  interface LinkListProps extends ComponentType {
4
4
  items?: LinkProps[];
5
- isFlex?: boolean;
6
5
  }
7
6
  export declare const LinkList: import("@redneckz/uni-jsx").UNIComponent<LinkListProps, any, any>;
8
7
  export {};
@@ -5,9 +5,9 @@ const uni_jsx_1 = require("@redneckz/uni-jsx");
5
5
  const useLink_1 = require("../../hooks/useLink");
6
6
  const dataAttributes_1 = require("../../utils/dataAttributes");
7
7
  const style_1 = require("../../utils/style");
8
- exports.LinkList = (0, uni_jsx_1.JSX)(({ className = '', items, isFlex = true }) => {
8
+ exports.LinkList = (0, uni_jsx_1.JSX)(({ className, items }) => {
9
9
  const link = (0, useLink_1.useLink)();
10
- return ((0, jsx_runtime_1.jsx)("ul", { className: (0, style_1.style)(isFlex ? 'flex flex-col gap-s' : 'block', 'w-full', className), children: items?.map(renderLinkListItem(link)) }));
10
+ return (0, jsx_runtime_1.jsx)("ul", { className: (0, style_1.style)('w-full', className), children: items?.map(renderLinkListItem(link)) });
11
11
  });
12
12
  const renderLinkListItem = (link) => ({ dataFooter, ...linkProps }, i) => {
13
13
  const { text, href, target, onClick } = link(linkProps);
@@ -1 +1 @@
1
- {"version":3,"file":"LinkList.js","sourceRoot":"","sources":["../../../src/components/Footer/LinkList.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AAExC,iDAA8C;AAG9C,+DAAkE;AAClE,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AAQ,GAAG,IAAA,aAAG,EAAgB,CAAC,EAAE,SAAS,EAAE,KAAK,EAAE,EAAE,EAAE;IAClE,MAAM,IAAI,GAAG,IAAA,iBAAO,GAAE,CAAC;IAEvB,OAAO,+BAAI,SAAS,EAAE,IAAA,aAAK,EAAC,QAAQ,EAAE,SAAS,CAAC,YAAG,KAAK,EAAE,GAAG,CAAC,kBAAkB,CAAC,IAAI,CAAC,CAAC,GAAM,CAAC;AAChG,CAAC,CAAC,CAAC;AAEH,MAAM,kBAAkB,GACtB,CAAC,IAAgC,EAAE,EAAE,CACrC,CAAC,EAAE,UAAU,EAAE,GAAG,SAAS,EAAuB,EAAE,CAAS,EAAE,EAAE;IAC/D,MAAM,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,GAAG,IAAI,CAAC,SAAS,CAAC,CAAC;IAExD,IAAI,CAAC,IAAI,EAAE;QACT,OAAO,IAAI,CAAC;KACb;IAED,OAAO,CACL,+BAAoB,SAAS,EAAC,WAAW,YACvC,8BACE,SAAS,EAAC,oCAAoC,EAC9C,IAAI,EAAC,MAAM,EACX,IAAI,EAAE,IAAI,EACV,MAAM,EAAE,MAAM,IAAI,OAAO,EACzB,OAAO,EAAE,OAAO,KAEZ,IAAA,qCAAoB,EAAC,UAAU,CAAC,YAEnC,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI,GACjB,IAXG,MAAM,CAAC,CAAC,CAAC,CAYb,CACN,CAAC;AACJ,CAAC,CAAC"}
@@ -30,6 +30,14 @@ export declare type MindboxEventAspect = {
30
30
  export declare type ChatBotAspect = {
31
31
  aspectName: 'openChatBot';
32
32
  };
33
+ /**
34
+ * @title Отправить событие партнёру
35
+ * @default {"aspectName": "partnersEvent", "params": {"partner": "", "typeAction": "targetaction"}}
36
+ */
37
+ export declare type PartnersEventAspect = {
38
+ aspectName: 'partnersEvent';
39
+ params?: AspectData;
40
+ };
33
41
  /**
34
42
  * @title Не выбрано
35
43
  */
@@ -41,7 +49,7 @@ export declare type EmptyAspect = {
41
49
  * @title Параметр
42
50
  * @default { "aspectName": "" }
43
51
  */
44
- export declare type AspectsDef = EmptyAspect | ChatBotAspect | YandexReachGoalAspect | MindboxEventAspect | SnowplowEventAspect;
52
+ export declare type AspectsDef = EmptyAspect | ChatBotAspect | YandexReachGoalAspect | MindboxEventAspect | SnowplowEventAspect | PartnersEventAspect;
45
53
  export declare type AspectsProps = {
46
54
  /** @title Дополнительные атрибуты */
47
55
  data?: AspectsDef[];
@@ -2,4 +2,5 @@ import { type TopMenuItemProps } from '../../data/NavigationData';
2
2
  import { type ComponentType } from '../../model/ComponentType';
3
3
  export interface SitemapProps extends ComponentType {
4
4
  navigationItems?: TopMenuItemProps[];
5
+ isSearchPanel?: boolean;
5
6
  }
@@ -2,7 +2,6 @@ import { type ComponentType } from '../../model/ComponentType';
2
2
  import { type LinkProps } from '../../model/LinkProps';
3
3
  interface LinkListProps extends ComponentType {
4
4
  items?: LinkProps[];
5
- isFlex?: boolean;
6
5
  }
7
6
  export declare const LinkList: import("@redneckz/uni-jsx").UNIComponent<LinkListProps, any, any>;
8
7
  export {};
@@ -3,9 +3,9 @@ import { JSX } from '@redneckz/uni-jsx';
3
3
  import { useLink } from '../../hooks/useLink.js';
4
4
  import { getAspectsAttributes } from '../../utils/dataAttributes.js';
5
5
  import { style } from '../../utils/style.js';
6
- export const LinkList = JSX(({ className = '', items, isFlex = true }) => {
6
+ export const LinkList = JSX(({ className, items }) => {
7
7
  const link = useLink();
8
- return (_jsx("ul", { className: style(isFlex ? 'flex flex-col gap-s' : 'block', 'w-full', className), children: items?.map(renderLinkListItem(link)) }));
8
+ return _jsx("ul", { className: style('w-full', className), children: items?.map(renderLinkListItem(link)) });
9
9
  });
10
10
  const renderLinkListItem = (link) => ({ dataFooter, ...linkProps }, i) => {
11
11
  const { text, href, target, onClick } = link(linkProps);
@@ -1 +1 @@
1
- {"version":3,"file":"LinkList.js","sourceRoot":"","sources":["../../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M,CAAC,CAAC,CAAC,CAYb,CACN,CAAC;AACJ,CAAC,CAAC"}
@@ -30,6 +30,14 @@ export declare type MindboxEventAspect = {
30
30
  export declare type ChatBotAspect = {
31
31
  aspectName: 'openChatBot';
32
32
  };
33
+ /**
34
+ * @title Отправить событие партнёру
35
+ * @default {"aspectName": "partnersEvent", "params": {"partner": "", "typeAction": "targetaction"}}
36
+ */
37
+ export declare type PartnersEventAspect = {
38
+ aspectName: 'partnersEvent';
39
+ params?: AspectData;
40
+ };
33
41
  /**
34
42
  * @title Не выбрано
35
43
  */
@@ -41,7 +49,7 @@ export declare type EmptyAspect = {
41
49
  * @title Параметр
42
50
  * @default { "aspectName": "" }
43
51
  */
44
- export declare type AspectsDef = EmptyAspect | ChatBotAspect | YandexReachGoalAspect | MindboxEventAspect | SnowplowEventAspect;
52
+ export declare type AspectsDef = EmptyAspect | ChatBotAspect | YandexReachGoalAspect | MindboxEventAspect | SnowplowEventAspect | PartnersEventAspect;
45
53
  export declare type AspectsProps = {
46
54
  /** @title Дополнительные атрибуты */
47
55
  data?: AspectsDef[];
@@ -2,4 +2,5 @@ import { type TopMenuItemProps } from '../../data/NavigationData';
2
2
  import { type ComponentType } from '../../model/ComponentType';
3
3
  export interface SitemapProps extends ComponentType {
4
4
  navigationItems?: TopMenuItemProps[];
5
+ isSearchPanel?: boolean;
5
6
  }
@@ -8,17 +8,12 @@ import { style } from '../../utils/style';
8
8
 
9
9
  interface LinkListProps extends ComponentType {
10
10
  items?: LinkProps[];
11
- isFlex?: boolean;
12
11
  }
13
12
 
14
- export const LinkList = JSX<LinkListProps>(({ className = '', items, isFlex = true }) => {
13
+ export const LinkList = JSX<LinkListProps>(({ className, items }) => {
15
14
  const link = useLink();
16
15
 
17
- return (
18
- <ul className={style(isFlex ? 'flex flex-col gap-s' : 'block', 'w-full', className)}>
19
- {items?.map(renderLinkListItem(link))}
20
- </ul>
21
- );
16
+ return <ul className={style('w-full', className)}>{items?.map(renderLinkListItem(link))}</ul>;
22
17
  });
23
18
 
24
19
  const renderLinkListItem =
@@ -35,6 +35,15 @@ export type ChatBotAspect = {
35
35
  aspectName: 'openChatBot';
36
36
  };
37
37
 
38
+ /**
39
+ * @title Отправить событие партнёру
40
+ * @default {"aspectName": "partnersEvent", "params": {"partner": "", "typeAction": "targetaction"}}
41
+ */
42
+ export type PartnersEventAspect = {
43
+ aspectName: 'partnersEvent';
44
+ params?: AspectData;
45
+ };
46
+
38
47
  /**
39
48
  * @title Не выбрано
40
49
  */
@@ -52,7 +61,8 @@ export type AspectsDef =
52
61
  | ChatBotAspect
53
62
  | YandexReachGoalAspect
54
63
  | MindboxEventAspect
55
- | SnowplowEventAspect;
64
+ | SnowplowEventAspect
65
+ | PartnersEventAspect;
56
66
 
57
67
  export type AspectsProps = {
58
68
  /** @title Дополнительные атрибуты */
@@ -3,4 +3,5 @@ import { type ComponentType } from '../../model/ComponentType';
3
3
 
4
4
  export interface SitemapProps extends ComponentType {
5
5
  navigationItems?: TopMenuItemProps[];
6
+ isSearchPanel?: boolean;
6
7
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@redneckz/wildless-cms-uni-blocks",
3
- "version": "0.14.915",
3
+ "version": "0.14.916",
4
4
  "private": false,
5
5
  "license": "MIT",
6
6
  "author": "ЦК",
@@ -8,17 +8,12 @@ import { style } from '../../utils/style';
8
8
 
9
9
  interface LinkListProps extends ComponentType {
10
10
  items?: LinkProps[];
11
- isFlex?: boolean;
12
11
  }
13
12
 
14
- export const LinkList = JSX<LinkListProps>(({ className = '', items, isFlex = true }) => {
13
+ export const LinkList = JSX<LinkListProps>(({ className, items }) => {
15
14
  const link = useLink();
16
15
 
17
- return (
18
- <ul className={style(isFlex ? 'flex flex-col gap-s' : 'block', 'w-full', className)}>
19
- {items?.map(renderLinkListItem(link))}
20
- </ul>
21
- );
16
+ return <ul className={style('w-full', className)}>{items?.map(renderLinkListItem(link))}</ul>;
22
17
  });
23
18
 
24
19
  const renderLinkListItem =
@@ -35,6 +35,15 @@ export type ChatBotAspect = {
35
35
  aspectName: 'openChatBot';
36
36
  };
37
37
 
38
+ /**
39
+ * @title Отправить событие партнёру
40
+ * @default {"aspectName": "partnersEvent", "params": {"partner": "", "typeAction": "targetaction"}}
41
+ */
42
+ export type PartnersEventAspect = {
43
+ aspectName: 'partnersEvent';
44
+ params?: AspectData;
45
+ };
46
+
38
47
  /**
39
48
  * @title Не выбрано
40
49
  */
@@ -52,7 +61,8 @@ export type AspectsDef =
52
61
  | ChatBotAspect
53
62
  | YandexReachGoalAspect
54
63
  | MindboxEventAspect
55
- | SnowplowEventAspect;
64
+ | SnowplowEventAspect
65
+ | PartnersEventAspect;
56
66
 
57
67
  export type AspectsProps = {
58
68
  /** @title Дополнительные атрибуты */
@@ -11,37 +11,35 @@ import { type SitemapProps } from './SitemapProps';
11
11
  const FOOTER_AREA_KEYS = ['all', 'footer'];
12
12
  const IS_SINGLE_SEARCH_INDEX = Boolean(env.SINGLE_SEARCH_INDEX);
13
13
 
14
- export const Sitemap = JSX<SitemapProps>(({ className, navigationItems }) => {
15
- const link = useLink();
14
+ export const Sitemap = JSX<SitemapProps>(
15
+ ({ className, navigationItems, isSearchPanel = false }) => {
16
+ const link = useLink();
16
17
 
17
- const filteredItems = navigationItems?.filter(isVisibleItem(FOOTER_AREA_KEYS))?.map(link) ?? [];
18
+ const filteredItems = navigationItems?.filter(isVisibleItem(FOOTER_AREA_KEYS))?.map(link) ?? [];
18
19
 
19
- const [firstItem] = filteredItems;
20
+ const [firstItem] = filteredItems;
20
21
 
21
- return (
22
- <div className="space-y-2">
23
- {IS_SINGLE_SEARCH_INDEX ? (
24
- <div>
25
- <LinkList
26
- className="columns-3 space-y-3 gap-x-6xl"
27
- items={firstItem?.items}
28
- isFlex={false}
29
- />
30
- </div>
31
- ) : (
32
- <div
33
- role="menu"
34
- className={style(
35
- 'w-full flex items-start justify-between flex-col md:flex-row gap-y-m lg:order-2',
36
- className,
37
- )}
38
- >
39
- {filteredItems?.map(renderColumn)}
40
- </div>
41
- )}
42
- </div>
43
- );
44
- });
22
+ return (
23
+ <div className="space-y-2">
24
+ {IS_SINGLE_SEARCH_INDEX && isSearchPanel ? (
25
+ <div>
26
+ <LinkList className="block columns-3 space-y-3 gap-x-6xl" items={firstItem?.items} />
27
+ </div>
28
+ ) : (
29
+ <div
30
+ role="menu"
31
+ className={style(
32
+ 'w-full flex items-start justify-between flex-col md:flex-row gap-m lg:order-2',
33
+ className,
34
+ )}
35
+ >
36
+ {filteredItems?.map(renderColumn)}
37
+ </div>
38
+ )}
39
+ </div>
40
+ );
41
+ },
42
+ );
45
43
 
46
44
  const renderColumn = (menuItem: TopMenuItemProps & { onClick: () => void }, index: number) => {
47
45
  const { text, items = [], href, target = '_self', onClick, dataFooter } = menuItem;
@@ -60,7 +58,9 @@ const renderColumn = (menuItem: TopMenuItemProps & { onClick: () => void }, inde
60
58
  >
61
59
  {text}
62
60
  </a>
63
- {visibleSubItems ? <LinkList items={visibleSubItems} /> : null}
61
+ {visibleSubItems ? (
62
+ <LinkList className="flex flex-col gap-s" items={visibleSubItems} />
63
+ ) : null}
64
64
  </div>
65
65
  );
66
66
  };
@@ -3,4 +3,5 @@ import { type ComponentType } from '../../model/ComponentType';
3
3
 
4
4
  export interface SitemapProps extends ComponentType {
5
5
  navigationItems?: TopMenuItemProps[];
6
+ isSearchPanel?: boolean;
6
7
  }