@redneckz/wildless-cms-uni-blocks 0.13.14 → 0.13.15
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 +1 -1
- package/bundle/bundle.umd.min.js +1 -1
- package/bundle/components/CarouselRecommendationCard/CarouselRecommendationCardContent.d.ts +1 -1
- package/dist/components/CarouselRecommendationCard/CarouselRecommendationCardContent.d.ts +1 -1
- package/dist/components/ContentPage/normalizeBlock.mobile.js +2 -2
- package/dist/components/ContentPage/normalizeBlock.mobile.js.map +1 -1
- package/lib/components/CarouselRecommendationCard/CarouselRecommendationCardContent.d.ts +1 -1
- package/lib/components/ContentPage/normalizeBlock.mobile.js +2 -2
- package/lib/components/ContentPage/normalizeBlock.mobile.js.map +1 -1
- package/mobile/bundle/bundle.umd.js +1 -1
- package/mobile/bundle/bundle.umd.min.js +1 -1
- package/mobile/bundle/components/CarouselRecommendationCard/CarouselRecommendationCardContent.d.ts +1 -1
- package/mobile/dist/components/CarouselRecommendationCard/CarouselRecommendationCardContent.d.ts +1 -1
- package/mobile/dist/components/ContentPage/normalizeBlock.js +2 -2
- package/mobile/dist/components/ContentPage/normalizeBlock.js.map +1 -1
- package/mobile/lib/components/CarouselRecommendationCard/CarouselRecommendationCardContent.d.ts +1 -1
- package/mobile/lib/components/ContentPage/normalizeBlock.js +2 -2
- package/mobile/lib/components/ContentPage/normalizeBlock.js.map +1 -1
- package/mobile/src/components/CarouselRecommendationCard/CarouselRecommendationCard.ui.json +3 -0
- package/mobile/src/components/CarouselRecommendationCard/CarouselRecommendationCardContent.ts +1 -1
- package/mobile/src/components/ContentPage/normalizeBlock.ts +7 -2
- package/package.json +1 -1
- package/src/components/CarouselRecommendationCard/CarouselRecommendationCard.ui.json +3 -0
- package/src/components/CarouselRecommendationCard/CarouselRecommendationCardContent.ts +1 -1
- package/src/components/ContentPage/normalizeBlock.mobile.ts +7 -2
|
@@ -2,8 +2,8 @@ import type { AlignProps, HeadlineCommonProps } from '../../model/HeadlineType';
|
|
|
2
2
|
import type { UniBlockContent } from '../../model/JSXBlock';
|
|
3
3
|
import type { LinkCommonProps } from '../../model/LinkProps';
|
|
4
4
|
import type { IconProps } from '../../model/Picture';
|
|
5
|
-
import type { ListContent } from '../../ui-kit/List/ListContent';
|
|
6
5
|
import type { ButtonContent } from '../../ui-kit/Button/ButtonContent';
|
|
6
|
+
import type { ListContent } from '../../ui-kit/List/ListContent';
|
|
7
7
|
export declare type RecommendationSocialMedia = LinkCommonProps & IconProps & ButtonContent;
|
|
8
8
|
/**
|
|
9
9
|
* @title Карточка рекомендаций
|
|
@@ -2,8 +2,8 @@ import type { AlignProps, HeadlineCommonProps } from '../../model/HeadlineType';
|
|
|
2
2
|
import type { UniBlockContent } from '../../model/JSXBlock';
|
|
3
3
|
import type { LinkCommonProps } from '../../model/LinkProps';
|
|
4
4
|
import type { IconProps } from '../../model/Picture';
|
|
5
|
-
import type { ListContent } from '../../ui-kit/List/ListContent';
|
|
6
5
|
import type { ButtonContent } from '../../ui-kit/Button/ButtonContent';
|
|
6
|
+
import type { ListContent } from '../../ui-kit/List/ListContent';
|
|
7
7
|
export declare type RecommendationSocialMedia = LinkCommonProps & IconProps & ButtonContent;
|
|
8
8
|
/**
|
|
9
9
|
* @title Карточка рекомендаций
|
|
@@ -2,9 +2,9 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
2
2
|
exports.normalizeBlock = void 0;
|
|
3
3
|
const mapSlot_1 = require("./mapSlot");
|
|
4
4
|
function normalizeBlock(block, blocksRegistry) {
|
|
5
|
-
const { mobile, ...
|
|
5
|
+
const { mobile, ...desktop } = (block || {});
|
|
6
6
|
const result = mobile
|
|
7
|
-
? {
|
|
7
|
+
? Object.assign({}, desktop, mobile.style ? { style: mobile.style } : {}, mobile.content ? { content: mobile.content } : {})
|
|
8
8
|
: block;
|
|
9
9
|
return (0, mapSlot_1.mapSlot)(filterBlocks(blocksRegistry))(result || {});
|
|
10
10
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"normalizeBlock.mobile.js","sourceRoot":"","sources":["../../../src/components/ContentPage/normalizeBlock.mobile.ts"],"names":[],"mappings":";;AAEA,uCAAoC;AAEpC,SAAgB,cAAc,CAAiB,KAAS,EAAE,cAA+B;IACvF,MAAM,EAAE,MAAM,EAAE,GAAG,
|
|
1
|
+
{"version":3,"file":"normalizeBlock.mobile.js","sourceRoot":"","sources":["../../../src/components/ContentPage/normalizeBlock.mobile.ts"],"names":[],"mappings":";;AAEA,uCAAoC;AAEpC,SAAgB,cAAc,CAAiB,KAAS,EAAE,cAA+B;IACvF,MAAM,EAAE,MAAM,EAAE,GAAG,OAAO,EAAE,GAAG,CAAC,KAAK,IAAI,EAAE,CAAa,CAAC;IACzD,MAAM,MAAM,GAAG,MAAM;QACnB,CAAC,CAAC,MAAM,CAAC,MAAM,CACX,EAAE,EACF,OAAO,EACP,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,KAAK,EAAE,MAAM,CAAC,KAAK,EAAE,CAAC,CAAC,CAAC,EAAE,EAC3C,MAAM,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,OAAO,EAAE,MAAM,CAAC,OAAO,EAAE,CAAC,CAAC,CAAC,EAAE,CAClD;QACH,CAAC,CAAC,KAAK,CAAC;IAEV,OAAO,IAAA,iBAAO,EAAC,YAAY,CAAC,cAAc,CAAC,CAAC,CAAC,MAAM,IAAI,EAAE,CAAM,CAAC;AAClE,CAAC;AAZD,wCAYC;AAED,MAAM,YAAY,GAChB,CAAC,cAA+B,EAAE,EAAE,CACpC,CAAC,MAAmB,EAAc,EAAE,CAClC,MAAM;IACJ,CAAC,CAAC,MAAM;QACJ,EAAE,MAAM,CACN,CAAC,KAAK,EAAE,EAAE,CACR,cAAc;QACd,CAAC,KAAK,EAAE,IAAI,IAAI,KAAK,EAAE,MAAM,EAAE,IAAI,IAAI,EAAE,CAAC,IAAI,cAAc;QAC5D,CAAC,KAAK,CAAC,MAAM,EAAE,MAAM,CACxB;SACA,GAAG,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,cAAc,CAAC,KAAK,EAAE,cAAc,CAAC,CAAC;IAC1D,CAAC,CAAC,EAAE,CAAC"}
|
|
@@ -2,8 +2,8 @@ import type { AlignProps, HeadlineCommonProps } from '../../model/HeadlineType';
|
|
|
2
2
|
import type { UniBlockContent } from '../../model/JSXBlock';
|
|
3
3
|
import type { LinkCommonProps } from '../../model/LinkProps';
|
|
4
4
|
import type { IconProps } from '../../model/Picture';
|
|
5
|
-
import type { ListContent } from '../../ui-kit/List/ListContent';
|
|
6
5
|
import type { ButtonContent } from '../../ui-kit/Button/ButtonContent';
|
|
6
|
+
import type { ListContent } from '../../ui-kit/List/ListContent';
|
|
7
7
|
export declare type RecommendationSocialMedia = LinkCommonProps & IconProps & ButtonContent;
|
|
8
8
|
/**
|
|
9
9
|
* @title Карточка рекомендаций
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { mapSlot } from './mapSlot.js';
|
|
2
2
|
export function normalizeBlock(block, blocksRegistry) {
|
|
3
|
-
const { mobile, ...
|
|
3
|
+
const { mobile, ...desktop } = (block || {});
|
|
4
4
|
const result = mobile
|
|
5
|
-
? {
|
|
5
|
+
? Object.assign({}, desktop, mobile.style ? { style: mobile.style } : {}, mobile.content ? { content: mobile.content } : {})
|
|
6
6
|
: block;
|
|
7
7
|
return mapSlot(filterBlocks(blocksRegistry))(result || {});
|
|
8
8
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"normalizeBlock.mobile.js","sourceRoot":"","sources":["../../../src/components/ContentPage/normalizeBlock.mobile.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAEpC,MAAM,UAAU,cAAc,CAAiB,KAAS,EAAE,cAA+B;IACvF,MAAM,EAAE,MAAM,EAAE,GAAG,
|
|
1
|
+
{"version":3,"file":"normalizeBlock.mobile.js","sourceRoot":"","sources":["../../../src/components/ContentPage/normalizeBlock.mobile.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAEpC,MAAM,UAAU,cAAc,CAAiB,KAAS,EAAE,cAA+B;IACvF,MAAM,EAAE,MAAM,EAAE,GAAG,OAAO,EAAE,GAAG,CAAC,KAAK,IAAI,EAAE,CAAa,CAAC;IACzD,MAAM,MAAM,GAAG,MAAM;QACnB,CAAC,CAAC,MAAM,CAAC,MAAM,CACX,EAAE,EACF,OAAO,EACP,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,KAAK,EAAE,MAAM,CAAC,KAAK,EAAE,CAAC,CAAC,CAAC,EAAE,EAC3C,MAAM,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,OAAO,EAAE,MAAM,CAAC,OAAO,EAAE,CAAC,CAAC,CAAC,EAAE,CAClD;QACH,CAAC,CAAC,KAAK,CAAC;IAEV,OAAO,OAAO,CAAC,YAAY,CAAC,cAAc,CAAC,CAAC,CAAC,MAAM,IAAI,EAAE,CAAM,CAAC;AAClE,CAAC;AAED,MAAM,YAAY,GAChB,CAAC,cAA+B,EAAE,EAAE,CACpC,CAAC,MAAmB,EAAc,EAAE,CAClC,MAAM;IACJ,CAAC,CAAC,MAAM;QACJ,EAAE,MAAM,CACN,CAAC,KAAK,EAAE,EAAE,CACR,cAAc;QACd,CAAC,KAAK,EAAE,IAAI,IAAI,KAAK,EAAE,MAAM,EAAE,IAAI,IAAI,EAAE,CAAC,IAAI,cAAc;QAC5D,CAAC,KAAK,CAAC,MAAM,EAAE,MAAM,CACxB;SACA,GAAG,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,cAAc,CAAC,KAAK,EAAE,cAAc,CAAC,CAAC;IAC1D,CAAC,CAAC,EAAE,CAAC"}
|
|
@@ -4515,7 +4515,7 @@
|
|
|
4515
4515
|
|
|
4516
4516
|
const joinList = (sep) => (list) => list.reduce((acc, el, i) => (acc.length ? acc.concat({ ...sep, key: `sep-${i}` }, el) : [el]), []);
|
|
4517
4517
|
|
|
4518
|
-
const packageVersion = "0.13.
|
|
4518
|
+
const packageVersion = "0.13.15";
|
|
4519
4519
|
|
|
4520
4520
|
exports.Blocks = Blocks;
|
|
4521
4521
|
exports.ContentPage = ContentPage;
|