@redneckz/wildless-cms-uni-blocks 0.14.20 → 0.14.22
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/bin/migration-scripts/0.14.20.js +30 -0
- package/bin/migration-scripts/0.14.21.js +33 -0
- package/bin/migration-scripts/0.14.7.js +1 -4
- package/bundle/blocks.schema.json +1 -1
- package/bundle/bundle.umd.js +18 -20
- package/bundle/bundle.umd.min.js +1 -1
- package/bundle/components/BonusBenefitsBlock/BonusBenefitsBlockContent.d.ts +2 -2
- package/bundle/components/BonusBenefitsBlock/renderBonusBenefit.d.ts +2 -1
- package/bundle/components/BonusBenefitsBlock/renderBonusBenefits.d.ts +2 -2
- package/bundle/components/BonusBenefitsBlock/renderBonusBenefits.mobile.d.ts +2 -2
- package/bundle/components/Footer/SocialMedia.d.ts +3 -1
- package/bundle/components/ProductBlock/ProductBlockContent.d.ts +2 -0
- package/bundle/content-page-repository/transformAttachmentLink.d.ts +3 -0
- package/bundle/content-page-repository/transformContentPage.d.ts +3 -2
- package/bundle/ui-kit/List/ListContent.d.ts +0 -1
- package/dist/api/CorporateLeadAPI.js +3 -0
- package/dist/api/CorporateLeadAPI.js.map +1 -1
- package/dist/components/BonusBenefitsBlock/BonusBenefitsBlock.js +1 -1
- package/dist/components/BonusBenefitsBlock/BonusBenefitsBlock.js.map +1 -1
- package/dist/components/BonusBenefitsBlock/BonusBenefitsBlockContent.d.ts +2 -2
- package/dist/components/BonusBenefitsBlock/renderBonusBenefit.d.ts +2 -1
- package/dist/components/BonusBenefitsBlock/renderBonusBenefit.js +1 -2
- package/dist/components/BonusBenefitsBlock/renderBonusBenefit.js.map +1 -1
- package/dist/components/BonusBenefitsBlock/renderBonusBenefits.d.ts +2 -2
- package/dist/components/BonusBenefitsBlock/renderBonusBenefits.js +1 -2
- package/dist/components/BonusBenefitsBlock/renderBonusBenefits.js.map +1 -1
- package/dist/components/BonusBenefitsBlock/renderBonusBenefits.mobile.d.ts +2 -2
- package/dist/components/BonusBenefitsBlock/renderBonusBenefits.mobile.js +1 -1
- package/dist/components/BonusBenefitsBlock/renderBonusBenefits.mobile.js.map +1 -1
- package/dist/components/CarouselRecommendationCard/CarouselRecommendationCard.js +1 -1
- package/dist/components/CarouselRecommendationCard/CarouselRecommendationCard.js.map +1 -1
- package/dist/components/Footer/Footer.js +1 -1
- package/dist/components/Footer/Footer.js.map +1 -1
- package/dist/components/Footer/SocialMedia.d.ts +3 -1
- package/dist/components/Footer/SocialMedia.js +4 -3
- package/dist/components/Footer/SocialMedia.js.map +1 -1
- package/dist/components/ProductBlock/ProductBlock.js +5 -2
- package/dist/components/ProductBlock/ProductBlock.js.map +1 -1
- package/dist/components/ProductBlock/ProductBlockContent.d.ts +2 -0
- package/dist/components/StickyBottomMenu/StickyBottomMenu.mobile.js +1 -1
- package/dist/components/StickyBottomMenu/StickyBottomMenu.mobile.js.map +1 -1
- package/dist/content-page-repository/transformAttachmentLink.d.ts +3 -0
- package/dist/content-page-repository/transformAttachmentLink.js +33 -0
- package/dist/content-page-repository/transformAttachmentLink.js.map +1 -0
- package/dist/content-page-repository/transformContentPage.d.ts +3 -2
- package/dist/content-page-repository/transformContentPage.js +7 -1
- package/dist/content-page-repository/transformContentPage.js.map +1 -1
- package/dist/content-page-repository/transformDocument.js +1 -1
- package/dist/content-page-repository/transformDocument.js.map +1 -1
- package/dist/content-page-repository/transformImg.js +1 -1
- package/dist/content-page-repository/transformImg.js.map +1 -1
- package/dist/ui-kit/List/ListContent.d.ts +0 -1
- package/lib/api/CorporateLeadAPI.js +3 -0
- package/lib/api/CorporateLeadAPI.js.map +1 -1
- package/lib/common.css +1 -1
- package/lib/components/BonusBenefitsBlock/BonusBenefitsBlock.js +1 -1
- package/lib/components/BonusBenefitsBlock/BonusBenefitsBlock.js.map +1 -1
- package/lib/components/BonusBenefitsBlock/BonusBenefitsBlockContent.d.ts +2 -2
- package/lib/components/BonusBenefitsBlock/renderBonusBenefit.d.ts +2 -1
- package/lib/components/BonusBenefitsBlock/renderBonusBenefit.js +1 -2
- package/lib/components/BonusBenefitsBlock/renderBonusBenefit.js.map +1 -1
- package/lib/components/BonusBenefitsBlock/renderBonusBenefits.d.ts +2 -2
- package/lib/components/BonusBenefitsBlock/renderBonusBenefits.js +1 -2
- package/lib/components/BonusBenefitsBlock/renderBonusBenefits.js.map +1 -1
- package/lib/components/BonusBenefitsBlock/renderBonusBenefits.mobile.d.ts +2 -2
- package/lib/components/BonusBenefitsBlock/renderBonusBenefits.mobile.js +1 -1
- package/lib/components/BonusBenefitsBlock/renderBonusBenefits.mobile.js.map +1 -1
- package/lib/components/CarouselRecommendationCard/CarouselRecommendationCard.js +1 -1
- package/lib/components/CarouselRecommendationCard/CarouselRecommendationCard.js.map +1 -1
- package/lib/components/Footer/Footer.js +1 -1
- package/lib/components/Footer/Footer.js.map +1 -1
- package/lib/components/Footer/SocialMedia.d.ts +3 -1
- package/lib/components/Footer/SocialMedia.js +4 -3
- package/lib/components/Footer/SocialMedia.js.map +1 -1
- package/lib/components/ProductBlock/ProductBlock.js +5 -2
- package/lib/components/ProductBlock/ProductBlock.js.map +1 -1
- package/lib/components/ProductBlock/ProductBlockContent.d.ts +2 -0
- package/lib/components/StickyBottomMenu/StickyBottomMenu.mobile.js +1 -1
- package/lib/components/StickyBottomMenu/StickyBottomMenu.mobile.js.map +1 -1
- package/lib/content-page-repository/transformAttachmentLink.d.ts +3 -0
- package/lib/content-page-repository/transformAttachmentLink.js +27 -0
- package/lib/content-page-repository/transformAttachmentLink.js.map +1 -0
- package/lib/content-page-repository/transformContentPage.d.ts +3 -2
- package/lib/content-page-repository/transformContentPage.js +6 -0
- package/lib/content-page-repository/transformContentPage.js.map +1 -1
- package/lib/content-page-repository/transformDocument.js +1 -1
- package/lib/content-page-repository/transformDocument.js.map +1 -1
- package/lib/content-page-repository/transformImg.js +1 -1
- package/lib/content-page-repository/transformImg.js.map +1 -1
- package/lib/ui-kit/List/ListContent.d.ts +0 -1
- package/mobile/bundle/bundle.umd.js +19 -12
- package/mobile/bundle/bundle.umd.min.js +1 -1
- package/mobile/bundle/components/BonusBenefitsBlock/BonusBenefitsBlockContent.d.ts +2 -2
- package/mobile/bundle/components/BonusBenefitsBlock/renderBonusBenefit.d.ts +2 -1
- package/mobile/bundle/components/BonusBenefitsBlock/renderBonusBenefits.d.ts +2 -2
- package/mobile/bundle/components/Footer/SocialMedia.d.ts +3 -1
- package/mobile/bundle/components/ProductBlock/ProductBlockContent.d.ts +2 -0
- package/mobile/bundle/content-page-repository/transformAttachmentLink.d.ts +3 -0
- package/mobile/bundle/content-page-repository/transformContentPage.d.ts +3 -2
- package/mobile/bundle/ui-kit/List/ListContent.d.ts +0 -1
- package/mobile/dist/api/CorporateLeadAPI.js +3 -0
- package/mobile/dist/api/CorporateLeadAPI.js.map +1 -1
- package/mobile/dist/components/BonusBenefitsBlock/BonusBenefitsBlock.js +1 -1
- package/mobile/dist/components/BonusBenefitsBlock/BonusBenefitsBlock.js.map +1 -1
- package/mobile/dist/components/BonusBenefitsBlock/BonusBenefitsBlockContent.d.ts +2 -2
- package/mobile/dist/components/BonusBenefitsBlock/renderBonusBenefit.d.ts +2 -1
- package/mobile/dist/components/BonusBenefitsBlock/renderBonusBenefit.js +1 -2
- package/mobile/dist/components/BonusBenefitsBlock/renderBonusBenefit.js.map +1 -1
- package/mobile/dist/components/BonusBenefitsBlock/renderBonusBenefits.d.ts +2 -2
- package/mobile/dist/components/BonusBenefitsBlock/renderBonusBenefits.js +1 -1
- package/mobile/dist/components/BonusBenefitsBlock/renderBonusBenefits.js.map +1 -1
- package/mobile/dist/components/CarouselRecommendationCard/CarouselRecommendationCard.js +1 -1
- package/mobile/dist/components/CarouselRecommendationCard/CarouselRecommendationCard.js.map +1 -1
- package/mobile/dist/components/Footer/SocialMedia.d.ts +3 -1
- package/mobile/dist/components/Footer/SocialMedia.js +4 -3
- package/mobile/dist/components/Footer/SocialMedia.js.map +1 -1
- package/mobile/dist/components/ProductBlock/ProductBlock.js +5 -2
- package/mobile/dist/components/ProductBlock/ProductBlock.js.map +1 -1
- package/mobile/dist/components/ProductBlock/ProductBlockContent.d.ts +2 -0
- package/mobile/dist/components/StickyBottomMenu/StickyBottomMenu.js +1 -1
- package/mobile/dist/components/StickyBottomMenu/StickyBottomMenu.js.map +1 -1
- package/mobile/dist/content-page-repository/transformAttachmentLink.d.ts +3 -0
- package/mobile/dist/content-page-repository/transformAttachmentLink.js +33 -0
- package/mobile/dist/content-page-repository/transformAttachmentLink.js.map +1 -0
- package/mobile/dist/content-page-repository/transformContentPage.d.ts +3 -2
- package/mobile/dist/content-page-repository/transformContentPage.js +7 -1
- package/mobile/dist/content-page-repository/transformContentPage.js.map +1 -1
- package/mobile/dist/content-page-repository/transformDocument.js +1 -1
- package/mobile/dist/content-page-repository/transformDocument.js.map +1 -1
- package/mobile/dist/content-page-repository/transformImg.js +1 -1
- package/mobile/dist/content-page-repository/transformImg.js.map +1 -1
- package/mobile/dist/ui-kit/List/ListContent.d.ts +0 -1
- package/mobile/lib/api/CorporateLeadAPI.js +3 -0
- package/mobile/lib/api/CorporateLeadAPI.js.map +1 -1
- package/mobile/lib/common.css +1 -1
- package/mobile/lib/components/BonusBenefitsBlock/BonusBenefitsBlock.js +1 -1
- package/mobile/lib/components/BonusBenefitsBlock/BonusBenefitsBlock.js.map +1 -1
- package/mobile/lib/components/BonusBenefitsBlock/BonusBenefitsBlockContent.d.ts +2 -2
- package/mobile/lib/components/BonusBenefitsBlock/renderBonusBenefit.d.ts +2 -1
- package/mobile/lib/components/BonusBenefitsBlock/renderBonusBenefit.js +1 -2
- package/mobile/lib/components/BonusBenefitsBlock/renderBonusBenefit.js.map +1 -1
- package/mobile/lib/components/BonusBenefitsBlock/renderBonusBenefits.d.ts +2 -2
- package/mobile/lib/components/BonusBenefitsBlock/renderBonusBenefits.js +1 -1
- package/mobile/lib/components/BonusBenefitsBlock/renderBonusBenefits.js.map +1 -1
- package/mobile/lib/components/CarouselRecommendationCard/CarouselRecommendationCard.js +1 -1
- package/mobile/lib/components/CarouselRecommendationCard/CarouselRecommendationCard.js.map +1 -1
- package/mobile/lib/components/Footer/SocialMedia.d.ts +3 -1
- package/mobile/lib/components/Footer/SocialMedia.js +4 -3
- package/mobile/lib/components/Footer/SocialMedia.js.map +1 -1
- package/mobile/lib/components/ProductBlock/ProductBlock.js +5 -2
- package/mobile/lib/components/ProductBlock/ProductBlock.js.map +1 -1
- package/mobile/lib/components/ProductBlock/ProductBlockContent.d.ts +2 -0
- package/mobile/lib/components/StickyBottomMenu/StickyBottomMenu.js +1 -1
- package/mobile/lib/components/StickyBottomMenu/StickyBottomMenu.js.map +1 -1
- package/mobile/lib/content-page-repository/transformAttachmentLink.d.ts +3 -0
- package/mobile/lib/content-page-repository/transformAttachmentLink.js +27 -0
- package/mobile/lib/content-page-repository/transformAttachmentLink.js.map +1 -0
- package/mobile/lib/content-page-repository/transformContentPage.d.ts +3 -2
- package/mobile/lib/content-page-repository/transformContentPage.js +6 -0
- package/mobile/lib/content-page-repository/transformContentPage.js.map +1 -1
- package/mobile/lib/content-page-repository/transformDocument.js +1 -1
- package/mobile/lib/content-page-repository/transformDocument.js.map +1 -1
- package/mobile/lib/content-page-repository/transformImg.js +1 -1
- package/mobile/lib/content-page-repository/transformImg.js.map +1 -1
- package/mobile/lib/ui-kit/List/ListContent.d.ts +0 -1
- package/mobile/src/api/CorporateLeadAPI.ts +4 -0
- package/mobile/src/components/Bonus/Bonus.ui.json +3 -0
- package/mobile/src/components/BonusBenefitsBlock/BonusBenefitsBlock.example.json +1 -1
- package/mobile/src/components/BonusBenefitsBlock/BonusBenefitsBlock.tsx +1 -1
- package/mobile/src/components/BonusBenefitsBlock/BonusBenefitsBlockContent.ts +2 -2
- package/mobile/src/components/BonusBenefitsBlock/renderBonusBenefit.tsx +26 -23
- package/mobile/src/components/BonusBenefitsBlock/renderBonusBenefits.tsx +3 -8
- package/mobile/src/components/BusinessBlock/BusinessBlock.ui.json +3 -0
- package/mobile/src/components/ButtonsBlock/ButtonsBlock.ui.json +3 -0
- package/mobile/src/components/Calculator/Calculator.ui.json +3 -0
- package/mobile/src/components/CarouselProductCard/CarouselProductCard.ui.json +3 -0
- package/mobile/src/components/CarouselRecommendationCard/CarouselRecommendationCard.tsx +3 -1
- package/mobile/src/components/CarouselTariffsCard/CarouselTariffsCard.ui.json +3 -0
- package/mobile/src/components/Footer/SocialMedia.tsx +8 -5
- package/mobile/src/components/ProductBlock/ProductBlock.tsx +9 -2
- package/mobile/src/components/ProductBlock/ProductBlockContent.ts +2 -0
- package/mobile/src/components/ProductGallery/ProductGallery.ui.json +3 -0
- package/mobile/src/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.ui.json +3 -0
- package/mobile/src/components/StepsBlock/StepsBlock.ui.json +6 -0
- package/mobile/src/components/StickyBottomMenu/StickyBottomMenu.tsx +0 -1
- package/mobile/src/components/TariffsTable/TariffsTable.ui.json +3 -0
- package/mobile/src/content-page-repository/transformAttachmentLink.ts +38 -0
- package/mobile/src/content-page-repository/transformContentPage.ts +13 -4
- package/mobile/src/content-page-repository/transformDocument.ts +1 -1
- package/mobile/src/content-page-repository/transformImg.ts +1 -1
- package/mobile/src/ui-kit/List/ListContent.ts +0 -1
- package/mobile/tailwind.config.cjs +127 -0
- package/package.json +2 -1
- package/src/api/CorporateLeadAPI.ts +4 -0
- package/src/components/Bonus/Bonus.ui.json +3 -0
- package/src/components/BonusBenefitsBlock/BonusBenefitsBlock.example.json +1 -1
- package/src/components/BonusBenefitsBlock/BonusBenefitsBlock.tsx +1 -1
- package/src/components/BonusBenefitsBlock/BonusBenefitsBlockContent.ts +2 -2
- package/src/components/BonusBenefitsBlock/renderBonusBenefit.tsx +26 -23
- package/src/components/BonusBenefitsBlock/renderBonusBenefits.mobile.tsx +3 -8
- package/src/components/BonusBenefitsBlock/renderBonusBenefits.tsx +4 -5
- package/src/components/BusinessBlock/BusinessBlock.ui.json +3 -0
- package/src/components/ButtonsBlock/ButtonsBlock.ui.json +3 -0
- package/src/components/Calculator/Calculator.ui.json +3 -0
- package/src/components/CarouselProductCard/CarouselProductCard.ui.json +3 -0
- package/src/components/CarouselRecommendationCard/CarouselRecommendationCard.tsx +3 -1
- package/src/components/CarouselTariffsCard/CarouselTariffsCard.ui.json +3 -0
- package/src/components/Footer/Footer.tsx +3 -1
- package/src/components/Footer/SocialMedia.tsx +8 -5
- package/src/components/ProductBlock/ProductBlock.tsx +9 -2
- package/src/components/ProductBlock/ProductBlockContent.ts +2 -0
- package/src/components/ProductGallery/ProductGallery.ui.json +3 -0
- package/src/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.ui.json +3 -0
- package/src/components/StepsBlock/StepsBlock.ui.json +6 -0
- package/src/components/StickyBottomMenu/StickyBottomMenu.mobile.tsx +0 -1
- package/src/components/TariffsTable/TariffsTable.ui.json +3 -0
- package/src/content-page-repository/transformAttachmentLink.ts +38 -0
- package/src/content-page-repository/transformContentPage.ts +13 -4
- package/src/content-page-repository/transformDocument.ts +1 -1
- package/src/content-page-repository/transformImg.ts +1 -1
- package/src/ui-kit/List/ListContent.ts +0 -1
- package/bundle/model/AlignText.d.ts +0 -6
- package/bundle/model/AlignType.d.ts +0 -21
- package/dist/model/AlignText.d.ts +0 -6
- package/dist/model/AlignText.js +0 -11
- package/dist/model/AlignText.js.map +0 -1
- package/dist/model/AlignType.d.ts +0 -21
- package/dist/model/AlignType.js +0 -2
- package/dist/model/AlignType.js.map +0 -1
- package/lib/model/AlignText.d.ts +0 -6
- package/lib/model/AlignText.js +0 -9
- package/lib/model/AlignText.js.map +0 -1
- package/lib/model/AlignType.d.ts +0 -21
- package/lib/model/AlignType.js +0 -2
- package/lib/model/AlignType.js.map +0 -1
- package/mobile/bundle/model/AlignText.d.ts +0 -6
- package/mobile/bundle/model/AlignType.d.ts +0 -21
- package/mobile/dist/model/AlignText.d.ts +0 -6
- package/mobile/dist/model/AlignText.js +0 -11
- package/mobile/dist/model/AlignText.js.map +0 -1
- package/mobile/dist/model/AlignType.d.ts +0 -21
- package/mobile/dist/model/AlignType.js +0 -2
- package/mobile/dist/model/AlignType.js.map +0 -1
- package/mobile/lib/model/AlignText.d.ts +0 -6
- package/mobile/lib/model/AlignText.js +0 -9
- package/mobile/lib/model/AlignText.js.map +0 -1
- package/mobile/lib/model/AlignType.d.ts +0 -21
- package/mobile/lib/model/AlignType.js +0 -2
- package/mobile/lib/model/AlignType.js.map +0 -1
- package/mobile/src/model/AlignText.ts +0 -11
- package/mobile/src/model/AlignType.ts +0 -22
- package/src/model/AlignText.ts +0 -11
- package/src/model/AlignType.ts +0 -22
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { type AlignType } from '../../model/AlignType';
|
|
2
1
|
import { type DescriptionProps, type SubtitleProps, type TitleProps } from '../../model/HeadlineType';
|
|
3
2
|
import { type UniBlockContent } from '../../model/JSXBlock';
|
|
4
3
|
import { type IconProps } from '../../model/Picture';
|
|
4
|
+
import { type TextAlign } from '../../ui-kit/Text/TextProps';
|
|
5
5
|
/**
|
|
6
6
|
* @title Количество элементов в строке
|
|
7
7
|
* @enumNames [
|
|
@@ -22,5 +22,5 @@ export declare type BonusBenefitsBlockContent = UniBlockContent & TitleProps & S
|
|
|
22
22
|
/** @title Список бонусов */
|
|
23
23
|
bonusBenefits?: BonusBenefit[];
|
|
24
24
|
columnsCount?: ColumnsCount;
|
|
25
|
-
cardTextAlign?:
|
|
25
|
+
cardTextAlign?: TextAlign;
|
|
26
26
|
};
|
|
@@ -1,3 +1,4 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
+
import { type TextAlign } from '../../ui-kit/Text/TextProps';
|
|
2
3
|
import { type BonusBenefit } from './BonusBenefitsBlockContent';
|
|
3
|
-
export declare const renderBonusBenefit: ({ icon, title, description }: BonusBenefit, i: number) => JSX.Element;
|
|
4
|
+
export declare const renderBonusBenefit: (cardTextAlign: TextAlign) => ({ icon, title, description }: BonusBenefit, i: number) => JSX.Element;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { type
|
|
2
|
+
import { type TextAlign } from '../../ui-kit/Text/TextProps';
|
|
3
3
|
import { type BonusBenefit, type ColumnsCount } from './BonusBenefitsBlockContent';
|
|
4
|
-
export declare const renderBonusBenefits: (bonusBenefits: BonusBenefit[], _columnsCount: ColumnsCount, _cardTextAlign:
|
|
4
|
+
export declare const renderBonusBenefits: (bonusBenefits: BonusBenefit[], _columnsCount: ColumnsCount, _cardTextAlign: TextAlign) => JSX.Element;
|
|
@@ -1,8 +1,10 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { ButtonVersion } from '../../model/ButtonVersion';
|
|
2
|
+
import type { ButtonContent } from '../../ui-kit/Button/ButtonContent';
|
|
2
3
|
export interface SocialMediaProps {
|
|
3
4
|
className?: string;
|
|
4
5
|
media?: ButtonContent[];
|
|
5
6
|
showButtonText?: boolean;
|
|
6
7
|
stretched?: boolean;
|
|
8
|
+
version?: ButtonVersion;
|
|
7
9
|
}
|
|
8
10
|
export declare const SocialMedia: import("@redneckz/uni-jsx").UNIComponent<SocialMediaProps, any, any>;
|
|
@@ -6,4 +6,6 @@ import { type BaseProductTileContent } from '../../ui-kit/BaseProductTile/BasePr
|
|
|
6
6
|
export declare type ProductBlockContent = UniBlockContent & BaseProductTileContent & {
|
|
7
7
|
/** @title Отображать кнопку возврата (только для десктопной версии) */
|
|
8
8
|
backwardButton?: boolean;
|
|
9
|
+
/** @title Показывать рамку вокруг блока */
|
|
10
|
+
showBorder?: boolean;
|
|
9
11
|
};
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import type { ContentPageDef } from '../model/ContentPageDef';
|
|
2
|
+
import type { TransformationOptions } from './TransformationOptions';
|
|
3
|
+
export declare const ATTACHMENT_PREFIX = "file://";
|
|
3
4
|
export declare function transformContentPage(pagePath: string, options: TransformationOptions): Promise<ContentPageDef>;
|
|
4
5
|
export declare const generatedPagePath: (pagePath: string) => string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CorporateLeadAPI.js","sourceRoot":"","sources":["../../src/api/CorporateLeadAPI.ts"],"names":[],"mappings":";;AAcA,SAAgB,gBAAgB;IAC9B,KAAK,UAAU,IAAI,CAAC,IAA4B;QAC9C,IAAI;YACF,MAAM,QAAQ,GAAG,MAAM,KAAK,CAAC,2BAA2B,EAAE;gBACxD,MAAM,EAAE,MAAM;gBACd,OAAO,EAAE,EAAE,cAAc,EAAE,kBAAkB,EAAE;gBAC/C,IAAI,EAAE,MAAM;gBACZ,IAAI,EAAE,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC;aAC3B,CAAC,CAAC;YAEH,MAAM,IAAI,GAAG,MAAM,QAAQ,CAAC,IAAI,EAAE,CAAC;YAEnC,OAAO,IAAI,CAAC;SACb;QAAC,OAAO,CAAC,EAAE;YACV,OAAO,IAAI,CAAC;SACb;IACH,CAAC;IAED,OAAO;QACL,IAAI;KACL,CAAC;AACJ,CAAC;
|
|
1
|
+
{"version":3,"file":"CorporateLeadAPI.js","sourceRoot":"","sources":["../../src/api/CorporateLeadAPI.ts"],"names":[],"mappings":";;AAcA,SAAgB,gBAAgB;IAC9B,KAAK,UAAU,IAAI,CAAC,IAA4B;QAC9C,IAAI;YACF,MAAM,QAAQ,GAAG,MAAM,KAAK,CAAC,2BAA2B,EAAE;gBACxD,MAAM,EAAE,MAAM;gBACd,OAAO,EAAE,EAAE,cAAc,EAAE,kBAAkB,EAAE;gBAC/C,IAAI,EAAE,MAAM;gBACZ,IAAI,EAAE,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC;aAC3B,CAAC,CAAC;YAEH,IAAI,CAAC,QAAQ,EAAE,EAAE,EAAE;gBACjB,OAAO,IAAI,CAAC;aACb;YAED,MAAM,IAAI,GAAG,MAAM,QAAQ,CAAC,IAAI,EAAE,CAAC;YAEnC,OAAO,IAAI,CAAC;SACb;QAAC,OAAO,CAAC,EAAE;YACV,OAAO,IAAI,CAAC;SACb;IACH,CAAC;IAED,OAAO;QACL,IAAI;KACL,CAAC;AACJ,CAAC;AAzBD,4CAyBC"}
|
|
@@ -5,7 +5,7 @@ const uni_jsx_1 = require("@redneckz/uni-jsx");
|
|
|
5
5
|
const BlockWrapper_1 = require("../../ui-kit/BlockWrapper");
|
|
6
6
|
const Headline_1 = require("../Headline/Headline");
|
|
7
7
|
const renderBonusBenefits_1 = require("./renderBonusBenefits");
|
|
8
|
-
exports.BonusBenefitsBlock = (0, uni_jsx_1.JSX)(({ bonusBenefits, cardTextAlign = 'center', className = '', columnsCount = '4', subtitle, title, ...rest }) => ((0, jsx_runtime_1.jsxs)(BlockWrapper_1.BlockWrapper, { className: className, defaultPadding: "p-6xl", ...rest, children: [(0, jsx_runtime_1.jsx)(Headline_1.Headline, { title: title, description: subtitle, headlineVersion: "M" }), bonusBenefits?.length
|
|
8
|
+
exports.BonusBenefitsBlock = (0, uni_jsx_1.JSX)(({ bonusBenefits, cardTextAlign = 'text-center', className = '', columnsCount = '4', subtitle, title, ...rest }) => ((0, jsx_runtime_1.jsxs)(BlockWrapper_1.BlockWrapper, { className: className, defaultPadding: "p-6xl", ...rest, children: [(0, jsx_runtime_1.jsx)(Headline_1.Headline, { title: title, description: subtitle, headlineVersion: "M" }), bonusBenefits?.length
|
|
9
9
|
? (0, renderBonusBenefits_1.renderBonusBenefits)(bonusBenefits, columnsCount, cardTextAlign)
|
|
10
10
|
: null] })));
|
|
11
11
|
//# sourceMappingURL=BonusBenefitsBlock.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BonusBenefitsBlock.js","sourceRoot":"","sources":["../../../src/components/BonusBenefitsBlock/BonusBenefitsBlock.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AAExC,4DAAyD;AACzD,mDAAgD;AAEhD,+DAA4D;AAI/C,QAAA,kBAAkB,GAAG,IAAA,aAAG,EACnC,CAAC,EACC,aAAa,EACb,aAAa,GAAG,
|
|
1
|
+
{"version":3,"file":"BonusBenefitsBlock.js","sourceRoot":"","sources":["../../../src/components/BonusBenefitsBlock/BonusBenefitsBlock.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AAExC,4DAAyD;AACzD,mDAAgD;AAEhD,+DAA4D;AAI/C,QAAA,kBAAkB,GAAG,IAAA,aAAG,EACnC,CAAC,EACC,aAAa,EACb,aAAa,GAAG,aAAa,EAC7B,SAAS,GAAG,EAAE,EACd,YAAY,GAAG,GAAG,EAClB,QAAQ,EACR,KAAK,EACL,GAAG,IAAI,EACR,EAAE,EAAE,CAAC,CACJ,wBAAC,2BAAY,IAAC,SAAS,EAAE,SAAS,EAAE,cAAc,EAAC,OAAO,KAAK,IAAI,aACjE,uBAAC,mBAAQ,IAAC,KAAK,EAAE,KAAK,EAAE,WAAW,EAAE,QAAQ,EAAE,eAAe,EAAC,GAAG,GAAG,EACpE,aAAa,EAAE,MAAM;YACpB,CAAC,CAAC,IAAA,yCAAmB,EAAC,aAAa,EAAE,YAAY,EAAE,aAAa,CAAC;YACjE,CAAC,CAAC,IAAI,IACK,CAChB,CACF,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { type AlignType } from '../../model/AlignType';
|
|
2
1
|
import { type DescriptionProps, type SubtitleProps, type TitleProps } from '../../model/HeadlineType';
|
|
3
2
|
import { type UniBlockContent } from '../../model/JSXBlock';
|
|
4
3
|
import { type IconProps } from '../../model/Picture';
|
|
4
|
+
import { type TextAlign } from '../../ui-kit/Text/TextProps';
|
|
5
5
|
/**
|
|
6
6
|
* @title Количество элементов в строке
|
|
7
7
|
* @enumNames [
|
|
@@ -22,5 +22,5 @@ export declare type BonusBenefitsBlockContent = UniBlockContent & TitleProps & S
|
|
|
22
22
|
/** @title Список бонусов */
|
|
23
23
|
bonusBenefits?: BonusBenefit[];
|
|
24
24
|
columnsCount?: ColumnsCount;
|
|
25
|
-
cardTextAlign?:
|
|
25
|
+
cardTextAlign?: TextAlign;
|
|
26
26
|
};
|
|
@@ -1,3 +1,4 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
+
import { type TextAlign } from '../../ui-kit/Text/TextProps';
|
|
2
3
|
import { type BonusBenefit } from './BonusBenefitsBlockContent';
|
|
3
|
-
export declare const renderBonusBenefit: ({ icon, title, description }: BonusBenefit, i: number) => JSX.Element;
|
|
4
|
+
export declare const renderBonusBenefit: (cardTextAlign: TextAlign) => ({ icon, title, description }: BonusBenefit, i: number) => JSX.Element;
|
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2
2
|
exports.renderBonusBenefit = void 0;
|
|
3
3
|
const jsx_runtime_1 = require("@redneckz/uni-jsx/jsx-runtime");
|
|
4
|
-
const AlignStyles_1 = require("../../model/AlignStyles");
|
|
5
4
|
const Img_1 = require("../../ui-kit/Img/Img");
|
|
6
5
|
const Text_1 = require("../../ui-kit/Text/Text");
|
|
7
6
|
const style_1 = require("../../utils/style");
|
|
8
7
|
const bonusBenefitStyles_1 = require("./bonusBenefitStyles");
|
|
9
|
-
const renderBonusBenefit = ({ icon, title, description }, i) => ((0, jsx_runtime_1.jsxs)("div", { className: (0, style_1.style)('flex flex-col', bonusBenefitStyles_1.bonusBenefitStyles, !description && !title ? 'justify-center' : ''), children: [title ? ((0, jsx_runtime_1.jsx)(Text_1.Text, { size: "text-h6", font: "font-normal", align:
|
|
8
|
+
const renderBonusBenefit = (cardTextAlign) => ({ icon, title, description }, i) => ((0, jsx_runtime_1.jsxs)("div", { className: (0, style_1.style)('flex flex-col gap-1', bonusBenefitStyles_1.bonusBenefitStyles, !description && !title ? 'justify-center' : ''), children: [title ? ((0, jsx_runtime_1.jsx)(Text_1.Text, { size: "text-h6", font: "font-normal", align: cardTextAlign, children: title })) : null, icon ? (0, jsx_runtime_1.jsx)(Img_1.Img, { image: icon, height: "180", className: "w-auto" }) : null, description ? ((0, jsx_runtime_1.jsx)(Text_1.Text, { size: "text-h6", font: "font-normal", align: cardTextAlign, children: description })) : null] }, String(i)));
|
|
10
9
|
exports.renderBonusBenefit = renderBonusBenefit;
|
|
11
10
|
//# sourceMappingURL=renderBonusBenefit.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"renderBonusBenefit.js","sourceRoot":"","sources":["../../../src/components/BonusBenefitsBlock/renderBonusBenefit.tsx"],"names":[],"mappings":";;;AAAA,
|
|
1
|
+
{"version":3,"file":"renderBonusBenefit.js","sourceRoot":"","sources":["../../../src/components/BonusBenefitsBlock/renderBonusBenefit.tsx"],"names":[],"mappings":";;;AAAA,8CAA2C;AAC3C,iDAA8C;AAE9C,6CAA0C;AAE1C,6DAA0D;AAEnD,MAAM,kBAAkB,GAC7B,CAAC,aAAwB,EAAE,EAAE,CAC7B,CAAC,EAAE,IAAI,EAAE,KAAK,EAAE,WAAW,EAAgB,EAAE,CAAS,EAAE,EAAE,CACxD,CACE,iCAEE,SAAS,EAAE,IAAA,aAAK,EACd,qBAAqB,EACrB,uCAAkB,EAClB,CAAC,WAAW,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,gBAAgB,CAAC,CAAC,CAAC,EAAE,CAC/C,aAEA,KAAK,CAAC,CAAC,CAAC,CACP,uBAAC,WAAI,IAAC,IAAI,EAAC,SAAS,EAAC,IAAI,EAAC,aAAa,EAAC,KAAK,EAAE,aAAa,YACzD,KAAK,GACD,CACR,CAAC,CAAC,CAAC,IAAI,EACP,IAAI,CAAC,CAAC,CAAC,uBAAC,SAAG,IAAC,KAAK,EAAE,IAAI,EAAE,MAAM,EAAC,KAAK,EAAC,SAAS,EAAC,QAAQ,GAAG,CAAC,CAAC,CAAC,IAAI,EAClE,WAAW,CAAC,CAAC,CAAC,CACb,uBAAC,WAAI,IAAC,IAAI,EAAC,SAAS,EAAC,IAAI,EAAC,aAAa,EAAC,KAAK,EAAE,aAAa,YACzD,WAAW,GACP,CACR,CAAC,CAAC,CAAC,IAAI,KAjBH,MAAM,CAAC,CAAC,CAAC,CAkBV,CACP,CAAC;AAxBO,QAAA,kBAAkB,sBAwBzB"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { type
|
|
2
|
+
import { type TextAlign } from '../../ui-kit/Text/TextProps';
|
|
3
3
|
import { type BonusBenefit, type ColumnsCount } from './BonusBenefitsBlockContent';
|
|
4
|
-
export declare const renderBonusBenefits: (bonusBenefits: BonusBenefit[], _columnsCount: ColumnsCount, _cardTextAlign:
|
|
4
|
+
export declare const renderBonusBenefits: (bonusBenefits: BonusBenefit[], _columnsCount: ColumnsCount, _cardTextAlign: TextAlign) => JSX.Element;
|
|
@@ -3,6 +3,6 @@ exports.renderBonusBenefits = void 0;
|
|
|
3
3
|
const jsx_runtime_1 = require("@redneckz/uni-jsx/jsx-runtime");
|
|
4
4
|
const SwipeListControl_1 = require("../../ui-kit/SwipeListControl/SwipeListControl");
|
|
5
5
|
const renderBonusBenefit_1 = require("./renderBonusBenefit");
|
|
6
|
-
const renderBonusBenefits = (bonusBenefits, _columnsCount, _cardTextAlign) => (
|
|
6
|
+
const renderBonusBenefits = (bonusBenefits, _columnsCount, _cardTextAlign) => (0, jsx_runtime_1.jsx)(SwipeListControl_1.SwipeListControl, { children: bonusBenefits.map((0, renderBonusBenefit_1.renderBonusBenefit)(_cardTextAlign)) });
|
|
7
7
|
exports.renderBonusBenefits = renderBonusBenefits;
|
|
8
8
|
//# sourceMappingURL=renderBonusBenefits.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"renderBonusBenefits.js","sourceRoot":"","sources":["../../../src/components/BonusBenefitsBlock/renderBonusBenefits.tsx"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"renderBonusBenefits.js","sourceRoot":"","sources":["../../../src/components/BonusBenefitsBlock/renderBonusBenefits.tsx"],"names":[],"mappings":";;;AAAA,qFAAkF;AAGlF,6DAA0D;AAEnD,MAAM,mBAAmB,GAAG,CACjC,aAA6B,EAC7B,aAA2B,EAC3B,cAAyB,EACzB,EAAE,CAAC,uBAAC,mCAAgB,cAAE,aAAa,CAAC,GAAG,CAAC,IAAA,uCAAkB,EAAC,cAAc,CAAC,CAAC,GAAoB,CAAC;AAJrF,QAAA,mBAAmB,uBAIkE"}
|
|
@@ -13,6 +13,6 @@ const Headline_1 = require("../Headline/Headline");
|
|
|
13
13
|
const ImageAlwaysOnRight_1 = require("./ImageAlwaysOnRight");
|
|
14
14
|
//TODO: replace SocialMedia with renderButtonSection
|
|
15
15
|
exports.CarouselRecommendationCard = (0, uni_jsx_1.JSX)(({ className, padding, description, href, icon, items = [], listItemSize = 'S', socialMedia = [], target, title, align = 'text-left', isImageAlwaysOnRight = ImageAlwaysOnRight_1.ImageAlwaysOnRight, ...rest }) => {
|
|
16
|
-
return ((0, jsx_runtime_1.jsx)(BlockWrapper_1.BlockWrapper, { className: (0, style_1.style)('relative min-h-28 group-data-gray:bg-main-divider/50', className), defaultPadding: "p-0", ...rest, children: (0, jsx_runtime_1.jsx)(LinkWrapper_1.LinkWrapper, { href: href, target: target, className: "h-full", children: (0, jsx_runtime_1.jsx)(BaseTile_1.BaseTile, { className: "h-full", defaultPadding: "p-m", padding: padding, insetTitle: title ? ((0, jsx_runtime_1.jsx)(Headline_1.Headline, { title: title, description: description, headlineVersion: "S", isEmbedded: true, align: align })) : null, rightImage: icon?.icon || icon?.src ? (0, jsx_runtime_1.jsx)(Img_1.Img, { image: icon }) : null, buttons: socialMedia.length ? (0, jsx_runtime_1.jsx)(SocialMedia_1.SocialMedia, { media: socialMedia, showButtonText: true }) : null, isImageAlwaysOnRight: isImageAlwaysOnRight, children: items.length ? (0, jsx_runtime_1.jsx)(List_1.List, { items: items, listItemSize: listItemSize }) : null }) }) }));
|
|
16
|
+
return ((0, jsx_runtime_1.jsx)(BlockWrapper_1.BlockWrapper, { className: (0, style_1.style)('relative min-h-28 group-data-gray:bg-main-divider/50', className), defaultPadding: "p-0", ...rest, children: (0, jsx_runtime_1.jsx)(LinkWrapper_1.LinkWrapper, { href: href, target: target, className: "h-full", children: (0, jsx_runtime_1.jsx)(BaseTile_1.BaseTile, { className: "h-full", defaultPadding: "p-m", padding: padding, insetTitle: title ? ((0, jsx_runtime_1.jsx)(Headline_1.Headline, { title: title, description: description, headlineVersion: "S", isEmbedded: true, align: align })) : null, rightImage: icon?.icon || icon?.src ? (0, jsx_runtime_1.jsx)(Img_1.Img, { image: icon }) : null, buttons: socialMedia.length ? ((0, jsx_runtime_1.jsx)(SocialMedia_1.SocialMedia, { media: socialMedia, showButtonText: true, version: rest.version })) : null, isImageAlwaysOnRight: isImageAlwaysOnRight, children: items.length ? (0, jsx_runtime_1.jsx)(List_1.List, { items: items, listItemSize: listItemSize }) : null }) }) }));
|
|
17
17
|
});
|
|
18
18
|
//# sourceMappingURL=CarouselRecommendationCard.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CarouselRecommendationCard.js","sourceRoot":"","sources":["../../../src/components/CarouselRecommendationCard/CarouselRecommendationCard.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AAExC,6DAA0D;AAC1D,4DAAyD;AACzD,8CAA2C;AAC3C,sEAAmE;AACnE,iDAA8C;AAC9C,6CAA0C;AAC1C,uDAAoD;AACpD,mDAAgD;AAEhD,6DAA0D;AAI1D,oDAAoD;AACvC,QAAA,0BAA0B,GAAG,IAAA,aAAG,EAC3C,CAAC,EACC,SAAS,EACT,OAAO,EACP,WAAW,EACX,IAAI,EACJ,IAAI,EACJ,KAAK,GAAG,EAAE,EACV,YAAY,GAAG,GAAG,EAClB,WAAW,GAAG,EAAE,EAChB,MAAM,EACN,KAAK,EACL,KAAK,GAAG,WAAW,EACnB,oBAAoB,GAAG,uCAAkB,EACzC,GAAG,IAAI,EACR,EAAE,EAAE;IACH,OAAO,CACL,uBAAC,2BAAY,IACX,SAAS,EAAE,IAAA,aAAK,EAAC,sDAAsD,EAAE,SAAS,CAAC,EACnF,cAAc,EAAC,KAAK,KAChB,IAAI,YAER,uBAAC,yBAAW,IAAC,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,EAAE,SAAS,EAAC,QAAQ,YACzD,uBAAC,mBAAQ,IACP,SAAS,EAAC,QAAQ,EAClB,cAAc,EAAC,KAAK,EACpB,OAAO,EAAE,OAAO,EAChB,UAAU,EACR,KAAK,CAAC,CAAC,CAAC,CACN,uBAAC,mBAAQ,IACP,KAAK,EAAE,KAAK,EACZ,WAAW,EAAE,WAAW,EACxB,eAAe,EAAC,GAAG,EACnB,UAAU,EAAE,IAAI,EAChB,KAAK,EAAE,KAAK,GACZ,CACH,CAAC,CAAC,CAAC,IAAI,EAEV,UAAU,EAAE,IAAI,EAAE,IAAI,IAAI,IAAI,EAAE,GAAG,CAAC,CAAC,CAAC,uBAAC,SAAG,IAAC,KAAK,EAAE,IAAI,GAAI,CAAC,CAAC,CAAC,IAAI,EACjE,OAAO,EACL,WAAW,CAAC,MAAM,CAAC,CAAC,CAAC,uBAAC,yBAAW,IAAC,KAAK,EAAE,WAAW,EAAE,cAAc,EAAE,IAAI,GAAI,CAAC,CAAC,CAAC,IAAI,
|
|
1
|
+
{"version":3,"file":"CarouselRecommendationCard.js","sourceRoot":"","sources":["../../../src/components/CarouselRecommendationCard/CarouselRecommendationCard.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AAExC,6DAA0D;AAC1D,4DAAyD;AACzD,8CAA2C;AAC3C,sEAAmE;AACnE,iDAA8C;AAC9C,6CAA0C;AAC1C,uDAAoD;AACpD,mDAAgD;AAEhD,6DAA0D;AAI1D,oDAAoD;AACvC,QAAA,0BAA0B,GAAG,IAAA,aAAG,EAC3C,CAAC,EACC,SAAS,EACT,OAAO,EACP,WAAW,EACX,IAAI,EACJ,IAAI,EACJ,KAAK,GAAG,EAAE,EACV,YAAY,GAAG,GAAG,EAClB,WAAW,GAAG,EAAE,EAChB,MAAM,EACN,KAAK,EACL,KAAK,GAAG,WAAW,EACnB,oBAAoB,GAAG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ButtonContent } from '../../ui-kit/Button/ButtonContent';
|
|
2
3
|
export interface SocialMediaProps {
|
|
3
4
|
className?: string;
|
|
4
5
|
media?: ButtonContent[];
|
|
5
6
|
showButtonText?: boolean;
|
|
6
7
|
stretched?: boolean;
|
|
8
|
+
version?: ButtonVersion;
|
|
7
9
|
}
|
|
8
10
|
export declare const SocialMedia: import("@redneckz/uni-jsx").UNIComponent<SocialMediaProps, any, any>;
|
|
@@ -7,20 +7,21 @@ const renderButtonsSection_1 = require("../../ui-kit/Button/renderButtonsSection
|
|
|
7
7
|
const Text_1 = require("../../ui-kit/Text/Text");
|
|
8
8
|
const style_1 = require("../../utils/style");
|
|
9
9
|
const findIconByHref_1 = require("./findIconByHref");
|
|
10
|
-
exports.SocialMedia = (0, uni_jsx_1.JSX)(({ className = '', media, showButtonText, stretched, children }) => {
|
|
10
|
+
exports.SocialMedia = (0, uni_jsx_1.JSX)(({ className = '', media, showButtonText, stretched, version = 'white', children }) => {
|
|
11
11
|
const [hasText, setHasText] = (0, hooks_1.useState)();
|
|
12
12
|
const buttons = media?.map((_) => {
|
|
13
13
|
const { href, icon, text } = _;
|
|
14
14
|
const { iconMapped } = (0, findIconByHref_1.findIconByHref)(href);
|
|
15
15
|
const iconCustom = getFilteredIcon(icon) ?? iconMapped;
|
|
16
|
-
const buttonText = showButtonText ? { text } : {};
|
|
16
|
+
const buttonText = showButtonText ? { text } : { text: '' };
|
|
17
17
|
if (!hasText && text) {
|
|
18
18
|
setHasText(true);
|
|
19
19
|
}
|
|
20
20
|
return {
|
|
21
|
+
..._,
|
|
21
22
|
...buttonText,
|
|
22
23
|
icon: { ...iconCustom, iconVersion: 'color' },
|
|
23
|
-
version
|
|
24
|
+
version,
|
|
24
25
|
};
|
|
25
26
|
});
|
|
26
27
|
const buttonClassName = (0, style_1.style)('border border-solid hover:border-transparent group-data-primary:border-main-divider border-main-divider group-data-gray:border-green group/media', showButtonText && hasText ? '' : ' basis-auto', stretched ? 'flex-1 justify-center' : '');
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SocialMedia.js","sourceRoot":"","sources":["../../../src/components/Footer/SocialMedia.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AACxC,uDAAuD;
|
|
1
|
+
{"version":3,"file":"SocialMedia.js","sourceRoot":"","sources":["../../../src/components/Footer/SocialMedia.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AACxC,uDAAuD;AAIvD,mFAAgF;AAChF,iDAA8C;AAC9C,6CAA0C;AAC1C,qDAAkD;AAUrC,QAAA,WAAW,GAAG,IAAA,aAAG,EAC5B,CAAC,EAAE,SAAS,GAAG,EAAE,EAAE,KAAK,EAAE,cAAc,EAAE,SAAS,EAAE,OAAO,GAAG,OAAO,EAAE,QAAQ,EAAE,EAAE,EAAE;IACpF,MAAM,CAAC,OAAO,EAAE,UAAU,CAAC,GAAG,IAAA,gBAAQ,GAAuB,CAAC;IAC9D,MAAM,OAAO,GAAgC,KAAK,EAAE,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE;QAC5D,MAAM,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,GAAG,CAAC,CAAC;QAC/B,MAAM,EAAE,UAAU,EAAE,GAAG,IAAA,+BAAc,EAAC,IAAI,CAAC,CAAC;QAC5C,MAAM,UAAU,GAAG,eAAe,CAAC,IAAI,CAAC,IAAI,UAAU,CAAC;QACvD,MAAM,UAAU,GAAG,cAAc,CAAC,CAAC,CAAC,EAAE,IAAI,EAAE,CAAC,CAAC,CAAC,EAAE,IAAI,EAAE,EAAE,EAAE,CAAC;QAE5D,IAAI,CAAC,OAAO,IAAI,IAAI,EAAE;YACpB,UAAU,CAAC,IAAI,CAAC,CAAC;SAClB;QAED,OAAO;YACL,GAAG,CAAC;YACJ,GAAG,UAAU;YACb,IAAI,EAAE,EAAE,GAAG,UAAU,EAAE,WAAW,EAAE,OAAO,EAAE;YAC7C,OAAO;SACR,CAAC;IACJ,CAAC,CAAC,CAAC;IAEH,MAAM,eAAe,GAAG,IAAA,aAAK,EAC3B,kJAAkJ,EAClJ,cAAc,IAAI,OAAO,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,aAAa,EAC9C,SAAS,CAAC,CAAC,CAAC,uBAAuB,CAAC,CAAC,CAAC,EAAE,CACzC,CAAC;IAEF,OAAO,CACL,iCAAK,SAAS,EAAC,0CAA0C,aACtD,QAAQ,CAAC,CAAC,CAAC,CACV,uBAAC,WAAI,IAAC,IAAI,EAAC,QAAQ,EAAC,IAAI,EAAC,YAAY,EAAC,KAAK,EAAC,qBAAqB,YAC9D,QAAQ,GACJ,CACR,CAAC,CAAC,CAAC,IAAI,EACR,gCAAK,SAAS,EAAE,IAAA,aAAK,EAAC,aAAa,EAAE,SAAS,CAAC,YAC5C,IAAA,2CAAoB,EAAC,OAAO,EAAE;oBAC7B,SAAS,EAAE,SAAS,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,EAAE;oBACpC,eAAe;iBAChB,CAAC,GACE,IACF,CACP,CAAC;AACJ,CAAC,CACF,CAAC;AAEF,MAAM,eAAe,GAAG,CAAC,IAAyB,EAAE,EAAE,CAAC,CAAC,IAAI,EAAE,GAAG,IAAI,IAAI,EAAE,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC"}
|
|
@@ -8,13 +8,16 @@ const BaseProductTile_1 = require("../../ui-kit/BaseProductTile/BaseProductTile"
|
|
|
8
8
|
const BlockWrapper_1 = require("../../ui-kit/BlockWrapper");
|
|
9
9
|
const style_1 = require("../../utils/style");
|
|
10
10
|
const renderBackwardButton_1 = require("./renderBackwardButton");
|
|
11
|
-
exports.ProductBlock = (0, uni_jsx_1.JSX)(({ className, padding, backwardButton, ...rest }) => {
|
|
11
|
+
exports.ProductBlock = (0, uni_jsx_1.JSX)(({ className, padding, backwardButton, showBorder, ...rest }) => {
|
|
12
12
|
const router = (0, useRouter_1.useRouter)();
|
|
13
13
|
const handleClick = (0, hooks_1.useCallback)((ev) => {
|
|
14
14
|
ev?.preventDefault();
|
|
15
15
|
router.back();
|
|
16
16
|
}, []);
|
|
17
|
-
|
|
17
|
+
const borderStyle = showBorder
|
|
18
|
+
? 'border border-solid border-gray group-data-secondary:border-white/50 group-data-gray:border-main-divider'
|
|
19
|
+
: '';
|
|
20
|
+
return ((0, jsx_runtime_1.jsxs)(BlockWrapper_1.BlockWrapper, { className: (0, style_1.style)('overflow-hidden flex flex-col gap-3xl box-border', borderStyle, className), defaultPadding: "p-6xl", padding: padding, ...rest, children: [backwardButton
|
|
18
21
|
? (0, renderBackwardButton_1.renderBackwardButton)(!rest.version || rest.version === 'primary' ? 'primary' : 'white', handleClick)
|
|
19
22
|
: null, (0, jsx_runtime_1.jsx)(BaseProductTile_1.BaseProductTile, { className: "grow h-full", ...rest })] }));
|
|
20
23
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ProductBlock.js","sourceRoot":"","sources":["../../../src/components/ProductBlock/ProductBlock.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AACxC,uDAA0D;AAC1D,qDAAkD;AAElD,kFAA+E;AAC/E,4DAAyD;AAEzD,6CAA0C;AAE1C,iEAA8D;AAIjD,QAAA,YAAY,GAAG,IAAA,aAAG,EAC7B,CAAC,EAAE,SAAS,EAAE,OAAO,EAAE,cAAc,EAAE,GAAG,IAAI,EAAE,EAAE,EAAE;
|
|
1
|
+
{"version":3,"file":"ProductBlock.js","sourceRoot":"","sources":["../../../src/components/ProductBlock/ProductBlock.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AACxC,uDAA0D;AAC1D,qDAAkD;AAElD,kFAA+E;AAC/E,4DAAyD;AAEzD,6CAA0C;AAE1C,iEAA8D;AAIjD,QAAA,YAAY,GAAG,IAAA,aAAG,EAC7B,CAAC,EAAE,SAAS,EAAE,OAAO,EAAE,cAAc,EAAE,UAAU,EAAE,GAAG,IAAI,EAAE,EAAE,EAAE;IAC9D,MAAM,MAAM,GAAG,IAAA,qBAAS,GAAE,CAAC;IAC3B,MAAM,WAAW,GAAG,IAAA,mBAAW,EAAC,CAAC,EAAqB,EAAE,EAAE;QACxD,EAAE,EAAE,cAAc,EAAE,CAAC;QACrB,MAAM,CAAC,IAAI,EAAE,CAAC;IAChB,CAAC,EAAE,EAAE,CAAC,CAAC;IACP,MAAM,WAAW,GAAG,UAAU;QAC5B,CAAC,CAAC,0GAA0G;QAC5G,CAAC,CAAC,EAAE,CAAC;IAEP,OAAO,CACL,wBAAC,2BAAY,IACX,SAAS,EAAE,IAAA,aAAK,EACd,kDAAkD,EAClD,WAAW,EACX,SAAS,CACV,EACD,cAAc,EAAC,OAAO,EACtB,OAAO,EAAE,OAAO,KACZ,IAAI,aAEP,cAAc;gBACb,CAAC,CAAC,IAAA,2CAAoB,EAClB,CAAC,IAAI,CAAC,OAAO,IAAI,IAAI,CAAC,OAAO,KAAK,SAAS,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,OAAO,EACjE,WAAW,CACZ;gBACH,CAAC,CAAC,IAAI,EACR,uBAAC,iCAAe,IAAC,SAAS,EAAC,aAAa,KAAK,IAAI,GAAI,IACxC,CAChB,CAAC;AACJ,CAAC,CACF,CAAC"}
|
|
@@ -6,4 +6,6 @@ import { type BaseProductTileContent } from '../../ui-kit/BaseProductTile/BasePr
|
|
|
6
6
|
export declare type ProductBlockContent = UniBlockContent & BaseProductTileContent & {
|
|
7
7
|
/** @title Отображать кнопку возврата (только для десктопной версии) */
|
|
8
8
|
backwardButton?: boolean;
|
|
9
|
+
/** @title Показывать рамку вокруг блока */
|
|
10
|
+
showBorder?: boolean;
|
|
9
11
|
};
|
|
@@ -26,6 +26,6 @@ exports.StickyBottomMenu = (0, uni_jsx_1.JSX)(({ ...rest }) => {
|
|
|
26
26
|
...menuItems.slice(middleIdx),
|
|
27
27
|
], [menuItems, middleIdx, burgerMenu]);
|
|
28
28
|
/* Attribute [data-component] need for correct render in wcms editor. Do not remove. */
|
|
29
|
-
return ((0, jsx_runtime_1.jsx)("div", { className: "w-full mb-5", "data-component": "sticky-bottom-menu-container", children: (0, jsx_runtime_1.jsx)(BlockWrapper_1.BlockWrapper, { className: "@container-normal fixed w-full h-[74px] bottom-0 left-0 my-0 mx-auto bg-transparent z-[100]", padding: "p-0",
|
|
29
|
+
return ((0, jsx_runtime_1.jsx)("div", { className: "w-full mb-5", "data-component": "sticky-bottom-menu-container", children: (0, jsx_runtime_1.jsx)(BlockWrapper_1.BlockWrapper, { className: "@container-normal fixed w-full h-[74px] bottom-0 left-0 my-0 mx-auto bg-transparent z-[100]", padding: "p-0", children: (0, jsx_runtime_1.jsx)(RenderMenuItems_1.RenderMenuItems, { menuItems: menuItemsWithButton, onClick: toggle }) }) }));
|
|
30
30
|
});
|
|
31
31
|
//# sourceMappingURL=StickyBottomMenu.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"StickyBottomMenu.js","sourceRoot":"","sources":["../../../src/components/StickyBottomMenu/StickyBottomMenu.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AACxC,uDAAsD;AACtD,+DAA4D;AAC5D,2DAAwD;AACxD,4DAAyD;AACzD,uDAAoD;AAEpD,+DAA4D;AAE/C,QAAA,gBAAgB,GAAG,IAAA,aAAG,EAAwB,CAAC,EAAE,GAAG,IAAI,EAAE,EAAE,EAAE;IACzE,MAAM,EAAE,SAAS,GAAG,EAAE,EAAE,GAAG,IAAA,+BAAc,EACvC,iCAAe,CAAC,kBAAkB,IAAI,oBAAoB,EAC1D,EAAE,QAAQ,EAAE,IAAI,CAAC,OAAO,EAAE,IAAI,EAAE,QAAQ,EAAE,UAAU,EAAE,kBAAkB,EAAE,WAAW,EAAE,IAAI,EAAE,CAC9F,CAAC;IAEF,MAAM,CAAC,sBAAsB,EAAE,EAAE,MAAM,EAAE,CAAC,GAAG,IAAA,yCAAmB,GAAE,CAAC;IAEnE,MAAM,UAAU,GAAG;QACjB,KAAK,EAAE,MAAM;QACb,IAAI,EAAE;YACJ,IAAI,EAAE,YAAY;YAClB,WAAW,EAAE,sBAAsB,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,OAAO;SACxD;QACD,QAAQ,EAAE,sBAAsB;KACjC,CAAC;IACF,MAAM,SAAS,GAAG,IAAI,CAAC,KAAK,CAAC,SAAS,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC;IACnD,MAAM,mBAAmB,GAAG,IAAA,eAAO,EACjC,GAAG,EAAE,CACH;QACE,GAAG,SAAS,CAAC,KAAK,CAAC,CAAC,EAAE,SAAS,CAAC;QAChC,UAAU;QACV,GAAG,SAAS,CAAC,KAAK,CAAC,SAAS,CAAC;KACX,EACtB,CAAC,SAAS,EAAE,SAAS,EAAE,UAAU,CAAC,CACnC,CAAC;IAEF,uFAAuF;IACvF,OAAO,CACL,gCAAK,SAAS,EAAC,aAAa,oBAAgB,8BAA8B,YACxE,uBAAC,2BAAY,IACX,SAAS,EAAC,6FAA6F,EACvG,OAAO,EAAC,KAAK,
|
|
1
|
+
{"version":3,"file":"StickyBottomMenu.js","sourceRoot":"","sources":["../../../src/components/StickyBottomMenu/StickyBottomMenu.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AACxC,uDAAsD;AACtD,+DAA4D;AAC5D,2DAAwD;AACxD,4DAAyD;AACzD,uDAAoD;AAEpD,+DAA4D;AAE/C,QAAA,gBAAgB,GAAG,IAAA,aAAG,EAAwB,CAAC,EAAE,GAAG,IAAI,EAAE,EAAE,EAAE;IACzE,MAAM,EAAE,SAAS,GAAG,EAAE,EAAE,GAAG,IAAA,+BAAc,EACvC,iCAAe,CAAC,kBAAkB,IAAI,oBAAoB,EAC1D,EAAE,QAAQ,EAAE,IAAI,CAAC,OAAO,EAAE,IAAI,EAAE,QAAQ,EAAE,UAAU,EAAE,kBAAkB,EAAE,WAAW,EAAE,IAAI,EAAE,CAC9F,CAAC;IAEF,MAAM,CAAC,sBAAsB,EAAE,EAAE,MAAM,EAAE,CAAC,GAAG,IAAA,yCAAmB,GAAE,CAAC;IAEnE,MAAM,UAAU,GAAG;QACjB,KAAK,EAAE,MAAM;QACb,IAAI,EAAE;YACJ,IAAI,EAAE,YAAY;YAClB,WAAW,EAAE,sBAAsB,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,OAAO;SACxD;QACD,QAAQ,EAAE,sBAAsB;KACjC,CAAC;IACF,MAAM,SAAS,GAAG,IAAI,CAAC,KAAK,CAAC,SAAS,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC;IACnD,MAAM,mBAAmB,GAAG,IAAA,eAAO,EACjC,GAAG,EAAE,CACH;QACE,GAAG,SAAS,CAAC,KAAK,CAAC,CAAC,EAAE,SAAS,CAAC;QAChC,UAAU;QACV,GAAG,SAAS,CAAC,KAAK,CAAC,SAAS,CAAC;KACX,EACtB,CAAC,SAAS,EAAE,SAAS,EAAE,UAAU,CAAC,CACnC,CAAC;IAEF,uFAAuF;IACvF,OAAO,CACL,gCAAK,SAAS,EAAC,aAAa,oBAAgB,8BAA8B,YACxE,uBAAC,2BAAY,IACX,SAAS,EAAC,6FAA6F,EACvG,OAAO,EAAC,KAAK,YAEb,uBAAC,iCAAe,IAAC,SAAS,EAAE,mBAAmB,EAAE,OAAO,EAAE,MAAM,GAAI,GACvD,GACX,CACP,CAAC;AACJ,CAAC,CAAC,CAAC"}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
2
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
3
|
+
};
|
|
4
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
+
exports.transformAttachmentLink = void 0;
|
|
6
|
+
const fs_1 = __importDefault(require("fs"));
|
|
7
|
+
const path_1 = __importDefault(require("path"));
|
|
8
|
+
const util_1 = __importDefault(require("util"));
|
|
9
|
+
const transformContentPage_1 = require("./transformContentPage");
|
|
10
|
+
const copyFile = util_1.default.promisify(fs_1.default.copyFile);
|
|
11
|
+
async function transformAttachmentLink(link, pagePath, options) {
|
|
12
|
+
if (!link?.href) {
|
|
13
|
+
return link;
|
|
14
|
+
}
|
|
15
|
+
const { contentDir, publicDir } = options;
|
|
16
|
+
const input = link.href.replace(transformContentPage_1.ATTACHMENT_PREFIX, '');
|
|
17
|
+
const docRelativePath = path_1.default.relative(contentDir, input);
|
|
18
|
+
const output = path_1.default.join(publicDir, docRelativePath);
|
|
19
|
+
try {
|
|
20
|
+
await copyFile(input, output);
|
|
21
|
+
}
|
|
22
|
+
catch (e) {
|
|
23
|
+
console.info(`No "${input}" attachment found on page: "${pagePath}"`);
|
|
24
|
+
return link;
|
|
25
|
+
}
|
|
26
|
+
const href = path_1.default.join('/', docRelativePath);
|
|
27
|
+
return {
|
|
28
|
+
...link,
|
|
29
|
+
href,
|
|
30
|
+
};
|
|
31
|
+
}
|
|
32
|
+
exports.transformAttachmentLink = transformAttachmentLink;
|
|
33
|
+
//# sourceMappingURL=transformAttachmentLink.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"transformAttachmentLink.js","sourceRoot":"","sources":["../../src/content-page-repository/transformAttachmentLink.ts"],"names":[],"mappings":";;;;;AAAA,4CAAoB;AACpB,gDAAwB;AACxB,gDAAwB;AAGxB,iEAA2D;AAE3D,MAAM,QAAQ,GAAG,cAAI,CAAC,SAAS,CAAC,YAAE,CAAC,QAAQ,CAAC,CAAC;AAEtC,KAAK,UAAU,uBAAuB,CAC3C,IAAe,EACf,QAAgB,EAChB,OAA8B;IAE9B,IAAI,CAAC,IAAI,EAAE,IAAI,EAAE;QACf,OAAO,IAAI,CAAC;KACb;IAED,MAAM,EAAE,UAAU,EAAE,SAAS,EAAE,GAAG,OAAO,CAAC;IAC1C,MAAM,KAAK,GAAG,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,wCAAiB,EAAE,EAAE,CAAC,CAAC;IACvD,MAAM,eAAe,GAAG,cAAI,CAAC,QAAQ,CAAC,UAAU,EAAE,KAAK,CAAC,CAAC;IACzD,MAAM,MAAM,GAAG,cAAI,CAAC,IAAI,CAAC,SAAS,EAAE,eAAe,CAAC,CAAC;IAErD,IAAI;QACF,MAAM,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC,CAAC;KAC/B;IAAC,OAAO,CAAC,EAAE;QACV,OAAO,CAAC,IAAI,CAAC,OAAO,KAAK,gCAAgC,QAAQ,GAAG,CAAC,CAAC;QAEtE,OAAO,IAAI,CAAC;KACb;IAED,MAAM,IAAI,GAAG,cAAI,CAAC,IAAI,CAAC,GAAG,EAAE,eAAe,CAAC,CAAC;IAE7C,OAAO;QACL,GAAG,IAAI;QACP,IAAI;KACL,CAAC;AACJ,CAAC;AA5BD,0DA4BC"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import type { ContentPageDef } from '../model/ContentPageDef';
|
|
2
|
+
import type { TransformationOptions } from './TransformationOptions';
|
|
3
|
+
export declare const ATTACHMENT_PREFIX = "file://";
|
|
3
4
|
export declare function transformContentPage(pagePath: string, options: TransformationOptions): Promise<ContentPageDef>;
|
|
4
5
|
export declare const generatedPagePath: (pagePath: string) => string;
|
|
@@ -2,11 +2,12 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
2
2
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
3
3
|
};
|
|
4
4
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
-
exports.generatedPagePath = exports.transformContentPage = void 0;
|
|
5
|
+
exports.generatedPagePath = exports.transformContentPage = exports.ATTACHMENT_PREFIX = void 0;
|
|
6
6
|
const json_ref_1 = require("@redneckz/json-ref");
|
|
7
7
|
const fs_1 = __importDefault(require("fs"));
|
|
8
8
|
const util_1 = __importDefault(require("util"));
|
|
9
9
|
const mapJSON_1 = require("./mapJSON");
|
|
10
|
+
const transformAttachmentLink_1 = require("./transformAttachmentLink");
|
|
10
11
|
const transformDocument_1 = require("./transformDocument");
|
|
11
12
|
const transformHTML_1 = require("./transformHTML");
|
|
12
13
|
const transformMarkdown_1 = require("./transformMarkdown");
|
|
@@ -14,6 +15,7 @@ const transformPicture_1 = require("./transformPicture");
|
|
|
14
15
|
const readFile = util_1.default.promisify(fs_1.default.readFile);
|
|
15
16
|
const writeFile = util_1.default.promisify(fs_1.default.writeFile);
|
|
16
17
|
const OUTPUT_SUFFIX = '.static';
|
|
18
|
+
exports.ATTACHMENT_PREFIX = 'file://';
|
|
17
19
|
const DOCUMENT_EXT_LIST = [
|
|
18
20
|
'.txt',
|
|
19
21
|
'.doc',
|
|
@@ -36,6 +38,9 @@ async function transformContentPage(pagePath, options) {
|
|
|
36
38
|
else if (isHTML(key, value)) {
|
|
37
39
|
return await (0, transformHTML_1.transformHTML)(value);
|
|
38
40
|
}
|
|
41
|
+
else if (isAttachmentLink(value)) {
|
|
42
|
+
return await (0, transformAttachmentLink_1.transformAttachmentLink)(value, pagePath, options);
|
|
43
|
+
}
|
|
39
44
|
else if (isDocumentRef(value)) {
|
|
40
45
|
return await (0, transformDocument_1.transformDocument)(value, pagePath, options);
|
|
41
46
|
}
|
|
@@ -57,6 +62,7 @@ const generatedPagePath = (pagePath) => `${pagePath}${OUTPUT_SUFFIX}`;
|
|
|
57
62
|
exports.generatedPagePath = generatedPagePath;
|
|
58
63
|
const isMarkdown = (key, value) => isString(value) && key?.endsWith('__md');
|
|
59
64
|
const isHTML = (key, value) => isString(value) && key?.endsWith('__html');
|
|
65
|
+
const isAttachmentLink = (_) => isLocalPath(_?.href) && _.href.startsWith(exports.ATTACHMENT_PREFIX);
|
|
60
66
|
const isDocumentRef = (_) => isLocalPath(_?.src) && DOCUMENT_EXT_LIST.some((ext) => _.src.toLowerCase().endsWith(ext));
|
|
61
67
|
const isPicture = (_) => Boolean(_ && isLocalPath(_?.src));
|
|
62
68
|
const isLocalPath = (_) => isString(_) && _.length < 1024 && !isURL(_);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"transformContentPage.js","sourceRoot":"","sources":["../../src/content-page-repository/transformContentPage.ts"],"names":[],"mappings":";;;;;AAAA,iDAA8D;AAE9D,4CAAoB;AACpB,gDAAwB;
|
|
1
|
+
{"version":3,"file":"transformContentPage.js","sourceRoot":"","sources":["../../src/content-page-repository/transformContentPage.ts"],"names":[],"mappings":";;;;;AAAA,iDAA8D;AAE9D,4CAAoB;AACpB,gDAAwB;AAKxB,uCAAoC;AAEpC,uEAAoE;AACpE,2DAAwD;AACxD,mDAAgD;AAChD,2DAAwD;AACxD,yDAAsD;AAEtD,MAAM,QAAQ,GAAG,cAAI,CAAC,SAAS,CAAC,YAAE,CAAC,QAAQ,CAAC,CAAC;AAC7C,MAAM,SAAS,GAAG,cAAI,CAAC,SAAS,CAAC,YAAE,CAAC,SAAS,CAAC,CAAC;AAE/C,MAAM,aAAa,GAAG,SAAS,CAAC;AAEnB,QAAA,iBAAiB,GAAG,SAAS,CAAC;AAE3C,MAAM,iBAAiB,GAAG;IACxB,MAAM;IACN,MAAM;IACN,OAAO;IACP,MAAM;IACN,OAAO;IACP,OAAO;IACP,MAAM;IACN,OAAO;IACP,MAAM;CACP,CAAC;AAEK,KAAK,UAAU,oBAAoB,CACxC,QAAgB,EAChB,OAA8B;IAE9B,MAAM,OAAO,GAAG,MAAM,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC,CAAC;IAEjD,MAAM,IAAI,GAAG,MAAM,IAAA,qBAAU,EAAC,IAAI,CAAC,KAAK,CAAC,OAAO,CAAa,EAAE,IAAA,uBAAY,EAAC,OAAO,CAAC,UAAU,CAAC,CAAC,CAAC;IACjG,MAAM,MAAM,GAAG,MAAM,IAAA,iBAAO,EAAC,IAAsB,EAAE,KAAK,EAAE,KAAU,EAAE,CAAC,GAAG,CAAC,EAAE,EAAE;QAC/E,IAAI;YACF,IAAI,UAAU,CAAC,GAAG,EAAE,KAAK,CAAC,EAAE;gBAC1B,OAAO,MAAM,IAAA,qCAAiB,E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
|
-
const input =
|
|
16
|
+
const input = attachment.src;
|
|
17
17
|
const docRelativePath = path_1.default.relative(contentDir, input);
|
|
18
18
|
const output = path_1.default.join(publicDir, docRelativePath);
|
|
19
19
|
const inputFileSize = (await stat(input)).size;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"transformDocument.js","sourceRoot":"","sources":["../../src/content-page-repository/transformDocument.ts"],"names":[],"mappings":";;;;;AAAA,4CAAoB;AACpB,gDAAwB;AACxB,gDAAwB;AAIxB,MAAM,QAAQ,GAAG,cAAI,CAAC,SAAS,CAAC,YAAE,CAAC,QAAQ,CAAC,CAAC;AAC7C,MAAM,IAAI,GAAG,cAAI,CAAC,SAAS,CAAC,YAAE,CAAC,IAAI,CAAC,CAAC;AAE9B,KAAK,UAAU,iBAAiB,CACrC,UAAsB,EACtB,QAAgB,EAChB,OAA8B;IAE9B,IAAI,CAAC,UAAU,EAAE,GAAG,EAAE;QACpB,OAAO,UAAU,CAAC;KACnB;IAED,MAAM,EAAE,UAAU,EAAE,SAAS,EAAE,GAAG,OAAO,CAAC;IAC1C,MAAM,KAAK,GAAG,
|
|
1
|
+
{"version":3,"file":"transformDocument.js","sourceRoot":"","sources":["../../src/content-page-repository/transformDocument.ts"],"names":[],"mappings":";;;;;AAAA,4CAAoB;AACpB,gDAAwB;AACxB,gDAAwB;AAIxB,MAAM,QAAQ,GAAG,cAAI,CAAC,SAAS,CAAC,YAAE,CAAC,QAAQ,CAAC,CAAC;AAC7C,MAAM,IAAI,GAAG,cAAI,CAAC,SAAS,CAAC,YAAE,CAAC,IAAI,CAAC,CAAC;AAE9B,KAAK,UAAU,iBAAiB,CACrC,UAAsB,EACtB,QAAgB,EAChB,OAA8B;IAE9B,IAAI,CAAC,UAAU,EAAE,GAAG,EAAE;QACpB,OAAO,UAAU,CAAC;KACnB;IAED,MAAM,EAAE,UAAU,EAAE,SAAS,EAAE,GAAG,OAAO,CAAC;IAC1C,MAAM,KAAK,GAAG,UAAU,CAAC,GAAG,CAAC;IAC7B,MAAM,eAAe,GAAG,cAAI,CAAC,QAAQ,CAAC,UAAU,EAAE,KAAK,CAAC,CAAC;IACzD,MAAM,MAAM,GAAG,cAAI,CAAC,IAAI,CAAC,SAAS,EAAE,eAAe,CAAC,CAAC;IACrD,MAAM,aAAa,GAAG,CAAC,MAAM,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,IAAI,CAAC;IAE/C,IAAI;QACF,MAAM,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC,CAAC;KAC/B;IAAC,OAAO,CAAC,EAAE;QACV,OAAO,CAAC,IAAI,CAAC,OAAO,KAAK,gCAAgC,QAAQ,GAAG,CAAC,CAAC;QAEtE,OAAO,UAAU,CAAC;KACnB;IAED,MAAM,GAAG,GAAG,cAAI,CAAC,IAAI,CAAC,GAAG,EAAE,eAAe,CAAC,CAAC;IAE5C,OAAO;QACL,GAAG,UAAU;QACb,GAAG;QACH,QAAQ,EAAE,aAAa;KACxB,CAAC;AACJ,CAAC;AA9BD,8CA8BC"}
|
|
@@ -20,7 +20,7 @@ function transformImg(src, pagePath, options) {
|
|
|
20
20
|
if (!src) {
|
|
21
21
|
return src || '';
|
|
22
22
|
}
|
|
23
|
-
const input =
|
|
23
|
+
const input = src;
|
|
24
24
|
const output = (0, computeImgOutputPath_1.computeImgOutputPath)(input, options);
|
|
25
25
|
const { cache = defaultTransformationCache } = options;
|
|
26
26
|
const cachedResult = cache.get(output);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"transformImg.js","sourceRoot":"","sources":["../../src/content-page-repository/transformImg.ts"],"names":[],"mappings":";;;;;AAAA,4CAAoB;AACpB,gDAAwB;AACxB,kDAA0C;AAC1C,gDAAwB;AAGxB,oEAAiE;AACjE,yCAAsC;AACtC,iEAA8D;AAC9D,2CAAwC;AAGxC,MAAM,KAAK,GAAG,cAAI,CAAC,SAAS,CAAC,YAAE,CAAC,KAAK,CAAC,CAAC;AACvC,MAAM,QAAQ,GAA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M,QAAQ,GAAG,MAAM,KAAK,CAAC,2BAA2B,EAAE;gBACxD,MAAM,EAAE,MAAM;gBACd,OAAO,EAAE,EAAE,cAAc,EAAE,kBAAkB,EAAE;gBAC/C,IAAI,EAAE,MAAM;gBACZ,IAAI,EAAE,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC;aAC3B,CAAC,CAAC;YAEH,MAAM,IAAI,GAAG,MAAM,QAAQ,CAAC,IAAI,EAAE,CAAC;YAEnC,OAAO,IAAI,CAAC;SACb;QAAC,OAAO,CAAC,EAAE;YACV,OAAO,IAAI,CAAC;SACb;IACH,CAAC;IAED,OAAO;QACL,IAAI;KACL,CAAC;AACJ,CAAC"}
|
|
1
|
+
{"version":3,"file":"CorporateLeadAPI.js","sourceRoot":"","sources":["../../src/api/CorporateLeadAPI.ts"],"names":[],"mappings":"AAcA,MAAM,UAAU,gBAAgB;IAC9B,KAAK,UAAU,IAAI,CAAC,IAA4B;QAC9C,IAAI;YACF,MAAM,QAAQ,GAAG,MAAM,KAAK,CAAC,2BAA2B,EAAE;gBACxD,MAAM,EAAE,MAAM;gBACd,OAAO,EAAE,EAAE,cAAc,EAAE,kBAAkB,EAAE;gBAC/C,IAAI,EAAE,MAAM;gBACZ,IAAI,EAAE,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC;aAC3B,CAAC,CAAC;YAEH,IAAI,CAAC,QAAQ,EAAE,EAAE,EAAE;gBACjB,OAAO,IAAI,CAAC;aACb;YAED,MAAM,IAAI,GAAG,MAAM,QAAQ,CAAC,IAAI,EAAE,CAAC;YAEnC,OAAO,IAAI,CAAC;SACb;QAAC,OAAO,CAAC,EAAE;YACV,OAAO,IAAI,CAAC;SACb;IACH,CAAC;IAED,OAAO;QACL,IAAI;KACL,CAAC;AACJ,CAAC"}
|