pds-dev-kit-web-test 0.2.2 → 0.2.3
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/README.md +12 -1
- package/dist/src/sub/DynamicLayout/components/ComponentBlocks/Image/Image.d.ts +8 -0
- package/dist/src/sub/DynamicLayout/components/ComponentBlocks/Image/Image.js +46 -0
- package/dist/src/sub/DynamicLayout/components/ComponentBlocks/Image/index.d.ts +2 -0
- package/dist/src/sub/DynamicLayout/components/ComponentBlocks/Image/index.js +8 -0
- package/dist/src/sub/DynamicLayout/components/ComponentBlocks/RichText/RichText.d.ts +2 -3
- package/dist/src/sub/DynamicLayout/components/ComponentBlocks/RichText/RichText.js +3 -3
- package/dist/src/sub/DynamicLayout/components/ComponentBlocks/RichText/index.d.ts +2 -2
- package/dist/src/sub/DynamicLayout/components/ComponentBlocks/Text/Text.d.ts +13 -0
- package/dist/src/sub/DynamicLayout/components/ComponentBlocks/Text/Text.js +63 -0
- package/dist/src/sub/DynamicLayout/components/ComponentBlocks/Text/index.d.ts +2 -0
- package/dist/src/sub/DynamicLayout/components/ComponentBlocks/Text/index.js +8 -0
- package/dist/src/sub/DynamicLayout/components/ComponentBlocks/TwitterTimeline/TwitterTimeline.d.ts +3 -11
- package/dist/src/sub/DynamicLayout/components/ComponentBlocks/TwitterTimeline/TwitterTimeline.js +18 -18
- package/dist/src/sub/DynamicLayout/components/ComponentBlocks/TwitterTimeline/TwitterTimelineRerender.d.ts +14 -0
- package/dist/src/sub/DynamicLayout/components/ComponentBlocks/TwitterTimeline/TwitterTimelineRerender.js +41 -0
- package/dist/src/sub/DynamicLayout/components/ComponentBlocks/Wrapper/Wrapper.d.ts +35 -0
- package/dist/src/sub/DynamicLayout/components/ComponentBlocks/Wrapper/Wrapper.js +141 -0
- package/dist/src/sub/DynamicLayout/components/ComponentBlocks/Wrapper/constants.d.ts +2 -0
- package/dist/src/sub/DynamicLayout/components/ComponentBlocks/Wrapper/constants.js +33 -0
- package/dist/src/sub/DynamicLayout/components/ComponentBlocks/Wrapper/index.d.ts +1 -0
- package/dist/src/sub/DynamicLayout/components/ComponentBlocks/Wrapper/index.js +8 -0
- package/dist/src/sub/DynamicLayout/components/ComponentBlocks/index.d.ts +3 -2
- package/dist/src/sub/DynamicLayout/components/ComponentBlocks/index.js +3 -1
- package/dist/src/sub/DynamicLayout/components/EditModeSectionMatcher/EditModeSectionMatcher.js +3 -3
- package/dist/src/sub/DynamicLayout/components/Section/Section.d.ts +6 -3
- package/dist/src/sub/DynamicLayout/components/Section/Section.js +40 -8
- package/dist/src/sub/DynamicLayout/components/Section/components/CustomSectionBackgroundMedia.d.ts +9 -0
- package/dist/src/sub/DynamicLayout/components/Section/components/CustomSectionBackgroundMedia.js +68 -0
- package/dist/src/sub/DynamicLayout/components/SectionMatcher/SectionMatcher.js +4 -4
- package/dist/src/sub/DynamicLayout/components/desktop/common/Carousel.d.ts +1 -2
- package/dist/src/sub/DynamicLayout/components/desktop/common/Carousel.js +6 -6
- package/dist/src/sub/DynamicLayout/components/index.d.ts +0 -1
- package/dist/src/sub/DynamicLayout/components/index.js +1 -6
- package/dist/src/sub/DynamicLayout/mock_customSection.d.ts +2 -0
- package/dist/src/sub/DynamicLayout/mock_customSection.js +838 -0
- package/dist/src/sub/DynamicLayout/mock_samplePage.js +5 -210
- package/dist/src/sub/DynamicLayout/nakedMocks.json +783 -0
- package/dist/src/sub/DynamicLayout/sectionActionTypes.d.ts +17 -4
- package/dist/src/sub/DynamicLayout/sections/CustomSection/CustomSection.d.ts +2 -9
- package/dist/src/sub/DynamicLayout/sections/CustomSection/CustomSection.js +85 -51
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/ComponentBlock.d.ts +7 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/ComponentBlock.js +55 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/ComponentBlockMatcher.d.ts +3 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/ComponentBlockMatcher.js +70 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/Button/Button.d.ts +5 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/Button/Button.js +73 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/Button/btnTypes.d.ts +68 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/Button/btnTypes.js +2 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/Divider.d.ts +5 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/Divider.js +66 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/Image.d.ts +16 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/Image.js +102 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/RichText/RichText.d.ts +5 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/RichText/RichText.js +62 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/RichText/index.d.ts +1 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/RichText/index.js +8 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/RichText/types.d.ts +44 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/RichText/types.js +2 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/Text.d.ts +32 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/Text.js +58 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/Twitter.d.ts +10 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/Twitter.js +41 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/Youtube/Youtube.d.ts +5 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/Youtube/Youtube.js +69 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/Youtube/index.d.ts +1 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/Youtube/index.js +8 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/Youtube/parseYoutubeContentProp.d.ts +7 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/Youtube/parseYoutubeContentProp.js +33 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/Youtube/types.d.ts +48 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/Youtube/types.js +2 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/components/S_CB_Box.d.ts +2 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/{BlockMatcher/blocks/Button.js → components/ComponentBlock/componentBlocks/components/S_CB_Box.js} +6 -11
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/components/S_HiddenCover.d.ts +1 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/components/S_HiddenCover.js +13 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/hooks/useCLINK.d.ts +8 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/hooks/useCLINK.js +24 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/types.d.ts +20 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/types.js +2 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/utils/CLINKhandler.d.ts +0 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/utils/CLINKhandler.js +18 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/index.d.ts +1 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/index.js +8 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/index.d.ts +1 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/index.js +5 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/hooks/index.d.ts +1 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/hooks/index.js +5 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/hooks/useIntersectionObserver.d.ts +6 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/hooks/useIntersectionObserver.js +26 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/index.d.ts +0 -1
- package/dist/src/sub/DynamicLayout/sections/CustomSection/newUtils/colorUtil.d.ts +31 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/newUtils/colorUtil.js +66 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/newUtils/index.d.ts +2 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/newUtils/index.js +10 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/newUtils/replaceUndefinedValues.d.ts +2 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/newUtils/replaceUndefinedValues.js +46 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/newUtils/textUtil.d.ts +18 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/newUtils/textUtil.js +79 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/types.d.ts +50 -99
- package/dist/src/sub/DynamicLayout/sections/CustomSection/types.js +11 -14
- package/dist/src/sub/DynamicLayout/sections/CustomSection/util/contentPropParsers/index.d.ts +3 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/util/contentPropParsers/index.js +16 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/util/contentPropParsers/parseContentVisibility.d.ts +12 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/util/contentPropParsers/parseContentVisibility.js +18 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/util/contentPropParsers/types.d.ts +5 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/util/contentPropParsers/types.js +7 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/util/effectPropParsers/constants.d.ts +4 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/util/effectPropParsers/constants.js +46 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/util/effectPropParsers/index.d.ts +3 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/util/effectPropParsers/index.js +16 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/util/effectPropParsers/parseEffectPropEntAnim.d.ts +19 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/util/effectPropParsers/parseEffectPropEntAnim.js +51 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/util/effectPropParsers/types.d.ts +5 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/util/effectPropParsers/types.js +7 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/util/index.d.ts +6 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/util/index.js +18 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/util/layoutPropParsers/index.d.ts +3 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/util/layoutPropParsers/index.js +19 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/util/layoutPropParsers/parseLayoutPropArrange.d.ts +24 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/util/layoutPropParsers/parseLayoutPropArrange.js +80 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/util/layoutPropParsers/parseLayoutPropPadding.d.ts +21 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/util/layoutPropParsers/parseLayoutPropPadding.js +32 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/util/layoutPropParsers/types.d.ts +7 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/util/layoutPropParsers/types.js +8 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/util/parseJsonProperties.d.ts +3 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/util/parseJsonProperties.js +61 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/util/parsePlacement.d.ts +20 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/util/parsePlacement.js +46 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/util/parseProperties.d.ts +5 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/util/parseProperties.js +54 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/util/stylePropParsers/index.d.ts +3 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/util/stylePropParsers/index.js +41 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/util/stylePropParsers/parseStylePropBgColor.d.ts +43 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/util/stylePropParsers/parseStylePropBgColor.js +58 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/util/stylePropParsers/parseStylePropBgImage.d.ts +19 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/util/stylePropParsers/parseStylePropBgImage.js +118 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/util/stylePropParsers/parseStylePropBgOverlay.d.ts +43 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/util/stylePropParsers/parseStylePropBgOverlay.js +64 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/util/stylePropParsers/parseStylePropBorder.d.ts +38 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/util/stylePropParsers/parseStylePropBorder.js +73 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/util/stylePropParsers/parseStylePropDivider.d.ts +26 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/util/stylePropParsers/parseStylePropDivider.js +65 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/util/stylePropParsers/parseStylePropImage.d.ts +19 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/util/stylePropParsers/parseStylePropImage.js +118 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/util/stylePropParsers/parseStylePropOpacity.d.ts +15 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/util/stylePropParsers/parseStylePropOpacity.js +41 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/util/stylePropParsers/parseStylePropShadow.d.ts +39 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/util/stylePropParsers/parseStylePropShadow.js +46 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/util/stylePropParsers/parseStylePropTextSpec.d.ts +39 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/util/stylePropParsers/parseStylePropTextSpec.js +80 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/util/stylePropParsers/types.d.ts +22 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/util/stylePropParsers/types.js +16 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/util/types.d.ts +134 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/util/types.js +2 -0
- package/dist/src/sub/DynamicLayout/sections/index.d.ts +1 -0
- package/dist/src/sub/DynamicLayout/sections/index.js +3 -1
- package/dist/src/sub/DynamicLayout/types.d.ts +70 -4
- package/package.json +2 -4
- package/release-note.md +2 -3
- package/dist/src/sub/DynamicLayout/components/Box.d.ts +0 -13
- package/dist/src/sub/DynamicLayout/components/Box.js +0 -73
- package/dist/src/sub/DynamicLayout/custonSectionSampleData.d.ts +0 -334
- package/dist/src/sub/DynamicLayout/custonSectionSampleData.js +0 -328
- package/dist/src/sub/DynamicLayout/sections/CustomSection/BlockMatcher/BlockMatcher.d.ts +0 -11
- package/dist/src/sub/DynamicLayout/sections/CustomSection/BlockMatcher/BlockMatcher.js +0 -86
- package/dist/src/sub/DynamicLayout/sections/CustomSection/BlockMatcher/blocks/Accordion.d.ts +0 -12
- package/dist/src/sub/DynamicLayout/sections/CustomSection/BlockMatcher/blocks/Accordion.js +0 -46
- package/dist/src/sub/DynamicLayout/sections/CustomSection/BlockMatcher/blocks/AccordionCore/AccordionBody.d.ts +0 -8
- package/dist/src/sub/DynamicLayout/sections/CustomSection/BlockMatcher/blocks/AccordionCore/AccordionBody.js +0 -74
- package/dist/src/sub/DynamicLayout/sections/CustomSection/BlockMatcher/blocks/AccordionCore/AccordionCore.d.ts +0 -13
- package/dist/src/sub/DynamicLayout/sections/CustomSection/BlockMatcher/blocks/AccordionCore/AccordionCore.js +0 -25
- package/dist/src/sub/DynamicLayout/sections/CustomSection/BlockMatcher/blocks/AccordionCore/AccordionHeader.d.ts +0 -7
- package/dist/src/sub/DynamicLayout/sections/CustomSection/BlockMatcher/blocks/AccordionCore/AccordionHeader.js +0 -49
- package/dist/src/sub/DynamicLayout/sections/CustomSection/BlockMatcher/blocks/AccordionCore/AccordionItem.d.ts +0 -7
- package/dist/src/sub/DynamicLayout/sections/CustomSection/BlockMatcher/blocks/AccordionCore/AccordionItem.js +0 -19
- package/dist/src/sub/DynamicLayout/sections/CustomSection/BlockMatcher/blocks/AccordionCore/index.d.ts +0 -4
- package/dist/src/sub/DynamicLayout/sections/CustomSection/BlockMatcher/blocks/AccordionCore/index.js +0 -14
- package/dist/src/sub/DynamicLayout/sections/CustomSection/BlockMatcher/blocks/Button.d.ts +0 -8
- package/dist/src/sub/DynamicLayout/sections/CustomSection/BlockMatcher/blocks/ContentsCarousel/CardItem.d.ts +0 -9
- package/dist/src/sub/DynamicLayout/sections/CustomSection/BlockMatcher/blocks/ContentsCarousel/CardItem.js +0 -34
- package/dist/src/sub/DynamicLayout/sections/CustomSection/BlockMatcher/blocks/ContentsCarousel/ContentsCarousel.d.ts +0 -28
- package/dist/src/sub/DynamicLayout/sections/CustomSection/BlockMatcher/blocks/ContentsCarousel/ContentsCarousel.js +0 -53
- package/dist/src/sub/DynamicLayout/sections/CustomSection/BlockMatcher/blocks/Divider.d.ts +0 -7
- package/dist/src/sub/DynamicLayout/sections/CustomSection/BlockMatcher/blocks/Divider.js +0 -29
- package/dist/src/sub/DynamicLayout/sections/CustomSection/BlockMatcher/blocks/Image.d.ts +0 -7
- package/dist/src/sub/DynamicLayout/sections/CustomSection/BlockMatcher/blocks/Image.js +0 -18
- package/dist/src/sub/DynamicLayout/sections/CustomSection/BlockMatcher/blocks/ImageCarousel/ImageCarousel.d.ts +0 -16
- package/dist/src/sub/DynamicLayout/sections/CustomSection/BlockMatcher/blocks/ImageCarousel/ImageCarousel.js +0 -41
- package/dist/src/sub/DynamicLayout/sections/CustomSection/BlockMatcher/blocks/Instagram.d.ts +0 -7
- package/dist/src/sub/DynamicLayout/sections/CustomSection/BlockMatcher/blocks/Instagram.js +0 -19
- package/dist/src/sub/DynamicLayout/sections/CustomSection/BlockMatcher/blocks/RichText.d.ts +0 -7
- package/dist/src/sub/DynamicLayout/sections/CustomSection/BlockMatcher/blocks/RichText.js +0 -9
- package/dist/src/sub/DynamicLayout/sections/CustomSection/BlockMatcher/blocks/Text.d.ts +0 -7
- package/dist/src/sub/DynamicLayout/sections/CustomSection/BlockMatcher/blocks/Text.js +0 -29
- package/dist/src/sub/DynamicLayout/sections/CustomSection/BlockMatcher/blocks/Twitter.d.ts +0 -7
- package/dist/src/sub/DynamicLayout/sections/CustomSection/BlockMatcher/blocks/Twitter.js +0 -30
- package/dist/src/sub/DynamicLayout/sections/CustomSection/BlockMatcher/blocks/Youtube.d.ts +0 -9
- package/dist/src/sub/DynamicLayout/sections/CustomSection/BlockMatcher/blocks/Youtube.js +0 -38
- package/dist/src/sub/DynamicLayout/sections/CustomSection/BlockMatcher/blocks/index.d.ts +0 -9
- package/dist/src/sub/DynamicLayout/sections/CustomSection/BlockMatcher/blocks/index.js +0 -24
- package/dist/src/sub/DynamicLayout/sections/CustomSection/BlockMatcher/index.d.ts +0 -1
- package/dist/src/sub/DynamicLayout/sections/CustomSection/BlockMatcher/index.js +0 -8
package/README.md
CHANGED
|
@@ -1 +1,12 @@
|
|
|
1
|
-
|
|
1
|
+
# PDS
|
|
2
|
+
|
|
3
|
+
publ design system 프로젝트
|
|
4
|
+
|
|
5
|
+
## 프로젝트 목적
|
|
6
|
+
|
|
7
|
+
이용자에게 publ 서비스를 쉽게 이해하기 위하여 기능이나 목적의 유형에 맞춘 일관된 인터페이스를 제공하고, publ팀에는 제품을 개발하는데 필요한 화면 구성의 기획, 시각적인 표현, 최종 산출물까지 이어질 수 있는 품질 관리를 달성하기 위함
|
|
8
|
+
|
|
9
|
+
## 참고 문서
|
|
10
|
+
|
|
11
|
+
해당 패키지 버전은 PDS 문서 2.0 버전을 따르고 있음
|
|
12
|
+
[PDS 2.0 문서 링크](https://design.docs.publ.biz/pds-project/)
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export declare type ImagePropTypes = {
|
|
3
|
+
imageSrc: string;
|
|
4
|
+
viewType?: 'fit' | 'fill';
|
|
5
|
+
imagePosition?: 'left-top' | 'left-center' | 'left-bottom' | 'center-top' | 'center-center' | 'center-bottom' | 'right-top' | 'right-center' | 'right-bottom';
|
|
6
|
+
};
|
|
7
|
+
declare const Image: import("react").ForwardRefExoticComponent<ImagePropTypes & import("react").RefAttributes<HTMLImageElement>>;
|
|
8
|
+
export default Image;
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cooked, raw) {
|
|
3
|
+
if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
|
|
4
|
+
return cooked;
|
|
5
|
+
};
|
|
6
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
7
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
8
|
+
};
|
|
9
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
|
+
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
11
|
+
var react_1 = require("react");
|
|
12
|
+
var styled_components_1 = __importDefault(require("styled-components"));
|
|
13
|
+
var Image = (0, react_1.forwardRef)(function (_a, ref) {
|
|
14
|
+
var imageSrc = _a.imageSrc, _b = _a.viewType, viewType = _b === void 0 ? 'fit' : _b, _c = _a.imagePosition, imagePosition = _c === void 0 ? 'center-center' : _c;
|
|
15
|
+
return (0, jsx_runtime_1.jsx)(S_Image, { ref: ref, src: imageSrc, viewType: viewType, imagePosition: imagePosition }, void 0);
|
|
16
|
+
});
|
|
17
|
+
var S_Image = styled_components_1.default.img(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n height: ", ";\n object-fit: ", ";\n object-fit: ", ";\n width: ", ";\n"], ["\n height: ", ";\n object-fit: ", ";\n object-fit: ", ";\n width: ", ";\n"])), function (_a) {
|
|
18
|
+
var viewType = _a.viewType;
|
|
19
|
+
return (viewType === 'fit' ? 'auto' : '100%');
|
|
20
|
+
}, function (_a) {
|
|
21
|
+
var viewType = _a.viewType;
|
|
22
|
+
switch (viewType) {
|
|
23
|
+
case 'fit':
|
|
24
|
+
return 'contain';
|
|
25
|
+
case 'fill':
|
|
26
|
+
return 'cover';
|
|
27
|
+
default:
|
|
28
|
+
return 'contain';
|
|
29
|
+
}
|
|
30
|
+
}, function (_a) {
|
|
31
|
+
var viewType = _a.viewType;
|
|
32
|
+
switch (viewType) {
|
|
33
|
+
case 'fit':
|
|
34
|
+
return 'contain';
|
|
35
|
+
case 'fill':
|
|
36
|
+
return 'cover';
|
|
37
|
+
default:
|
|
38
|
+
return 'contain';
|
|
39
|
+
}
|
|
40
|
+
}, function (_a) {
|
|
41
|
+
var viewType = _a.viewType;
|
|
42
|
+
return (viewType === 'fit' ? 'auto' : '100%');
|
|
43
|
+
});
|
|
44
|
+
exports.default = Image;
|
|
45
|
+
Image.displayName = 'Image';
|
|
46
|
+
var templateObject_1;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.Image = void 0;
|
|
7
|
+
var Image_1 = __importDefault(require("./Image"));
|
|
8
|
+
exports.Image = Image_1.default;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
declare type RichTextPropTypes = {
|
|
2
|
+
export declare type RichTextPropTypes = {
|
|
3
3
|
text: string;
|
|
4
|
-
style: React.CSSProperties;
|
|
5
4
|
};
|
|
6
|
-
declare function RichText({ text
|
|
5
|
+
declare function RichText({ text }: RichTextPropTypes): JSX.Element;
|
|
7
6
|
export default RichText;
|
|
@@ -10,10 +10,10 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
10
10
|
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
11
11
|
var styled_components_1 = __importDefault(require("styled-components"));
|
|
12
12
|
function RichText(_a) {
|
|
13
|
-
var text = _a.text
|
|
14
|
-
return (0, jsx_runtime_1.jsx)(S_RichText, {
|
|
13
|
+
var text = _a.text;
|
|
14
|
+
return (0, jsx_runtime_1.jsx)(S_RichText, { dangerouslySetInnerHTML: { __html: text } }, void 0);
|
|
15
15
|
}
|
|
16
|
-
var S_RichText = styled_components_1.default.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n
|
|
16
|
+
var S_RichText = styled_components_1.default.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n line-height: 1.5;\n text-align: left;\n white-space: pre-wrap;\n width: 100%;\n word-break: break-word;\n\n a {\n color: ", ";\n }\n\n img {\n width: 100%;\n }\n\n figure {\n margin: 0;\n max-width: 100%;\n\n img {\n width: 100%;\n }\n }\n\n blockquote {\n border-left: 4px solid ", ";\n margin: 4px;\n padding: 4px;\n\n p {\n font-style: oblique;\n margin: 0;\n }\n }\n\n iframe {\n border: none;\n }\n"], ["\n line-height: 1.5;\n text-align: left;\n white-space: pre-wrap;\n width: 100%;\n word-break: break-word;\n\n a {\n color: ", ";\n }\n\n img {\n width: 100%;\n }\n\n figure {\n margin: 0;\n max-width: 100%;\n\n img {\n width: 100%;\n }\n }\n\n blockquote {\n border-left: 4px solid ", ";\n margin: 4px;\n padding: 4px;\n\n p {\n font-style: oblique;\n margin: 0;\n }\n }\n\n iframe {\n border: none;\n }\n"])), function (_a) {
|
|
17
17
|
var theme = _a.theme;
|
|
18
18
|
return theme.ui_papp_post_notice_link;
|
|
19
19
|
}, function (_a) {
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import RichText from './RichText';
|
|
2
|
-
export { RichText };
|
|
1
|
+
import RichText, { RichTextPropTypes } from './RichText';
|
|
2
|
+
export { RichText, RichTextPropTypes };
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export declare type TextPropTypes = {
|
|
3
|
+
text: string;
|
|
4
|
+
fontFamilyName?: 'Pretendard' | 'sans-serif' | 'serif';
|
|
5
|
+
fontWeight?: number;
|
|
6
|
+
fontSize?: number;
|
|
7
|
+
lineHeight?: number;
|
|
8
|
+
letterSpacing?: number;
|
|
9
|
+
textColor?: string;
|
|
10
|
+
textAlign?: 'left' | 'center' | 'right';
|
|
11
|
+
};
|
|
12
|
+
declare const Text: import("react").ForwardRefExoticComponent<TextPropTypes & import("react").RefAttributes<HTMLParagraphElement>>;
|
|
13
|
+
export default Text;
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cooked, raw) {
|
|
3
|
+
if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
|
|
4
|
+
return cooked;
|
|
5
|
+
};
|
|
6
|
+
var __assign = (this && this.__assign) || function () {
|
|
7
|
+
__assign = Object.assign || function(t) {
|
|
8
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
9
|
+
s = arguments[i];
|
|
10
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
11
|
+
t[p] = s[p];
|
|
12
|
+
}
|
|
13
|
+
return t;
|
|
14
|
+
};
|
|
15
|
+
return __assign.apply(this, arguments);
|
|
16
|
+
};
|
|
17
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
|
18
|
+
var t = {};
|
|
19
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
20
|
+
t[p] = s[p];
|
|
21
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
22
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
23
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
24
|
+
t[p[i]] = s[p[i]];
|
|
25
|
+
}
|
|
26
|
+
return t;
|
|
27
|
+
};
|
|
28
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
29
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
30
|
+
};
|
|
31
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
32
|
+
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
33
|
+
var react_1 = require("react");
|
|
34
|
+
var styled_components_1 = __importDefault(require("styled-components"));
|
|
35
|
+
var Text = (0, react_1.forwardRef)(function (_a, ref) {
|
|
36
|
+
var text = _a.text, _b = _a.letterSpacing, letterSpacing = _b === void 0 ? 0 : _b, _c = _a.lineHeight, lineHeight = _c === void 0 ? 1.3 : _c, _d = _a.textAlign, textAlign = _d === void 0 ? 'left' : _d, args = __rest(_a, ["text", "letterSpacing", "lineHeight", "textAlign"]);
|
|
37
|
+
return ((0, jsx_runtime_1.jsx)(S_Text, __assign({ ref: ref, letterSpacing: letterSpacing, lineHeight: lineHeight, textAlign: textAlign }, args, { children: text }), void 0));
|
|
38
|
+
});
|
|
39
|
+
var S_Text = styled_components_1.default.p(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n height: auto;\n letter-spacing: ", "em;\n line-height: ", ";\n margin: 0;\n text-align: ", ";\n width: auto;\n\n ", ";\n ", ";\n ", ";\n ", ";\n"], ["\n height: auto;\n letter-spacing: ", "em;\n line-height: ", ";\n margin: 0;\n text-align: ", ";\n width: auto;\n\n ", ";\n ", ";\n ", ";\n ", ";\n"])), function (_a) {
|
|
40
|
+
var letterSpacing = _a.letterSpacing;
|
|
41
|
+
return letterSpacing;
|
|
42
|
+
}, function (_a) {
|
|
43
|
+
var lineHeight = _a.lineHeight;
|
|
44
|
+
return lineHeight;
|
|
45
|
+
}, function (_a) {
|
|
46
|
+
var textAlign = _a.textAlign;
|
|
47
|
+
return textAlign;
|
|
48
|
+
}, function (_a) {
|
|
49
|
+
var fontFamilyName = _a.fontFamilyName;
|
|
50
|
+
return fontFamilyName && "font-family: " + fontFamilyName;
|
|
51
|
+
}, function (_a) {
|
|
52
|
+
var fontWeight = _a.fontWeight;
|
|
53
|
+
return fontWeight && "font-weight: " + fontWeight;
|
|
54
|
+
}, function (_a) {
|
|
55
|
+
var fontSize = _a.fontSize;
|
|
56
|
+
return fontSize && "font-size: " + fontSize + "px";
|
|
57
|
+
}, function (_a) {
|
|
58
|
+
var textColor = _a.textColor;
|
|
59
|
+
return textColor && "color: " + textColor;
|
|
60
|
+
});
|
|
61
|
+
exports.default = Text;
|
|
62
|
+
Text.displayName = 'Text';
|
|
63
|
+
var templateObject_1;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.Text = void 0;
|
|
7
|
+
var Text_1 = __importDefault(require("./Text"));
|
|
8
|
+
exports.Text = Text_1.default;
|
package/dist/src/sub/DynamicLayout/components/ComponentBlocks/TwitterTimeline/TwitterTimeline.d.ts
CHANGED
|
@@ -6,7 +6,7 @@ declare const customChrome: {
|
|
|
6
6
|
readonly noscrollbar: "noscrollbar";
|
|
7
7
|
readonly transparent: "transparent";
|
|
8
8
|
};
|
|
9
|
-
declare type TwitterTimelinePropTypes = {
|
|
9
|
+
export declare type TwitterTimelinePropTypes = {
|
|
10
10
|
/**
|
|
11
11
|
* 임베드할 트위터 유저의 id 값 입니다.
|
|
12
12
|
*/
|
|
@@ -51,19 +51,11 @@ declare type TwitterTimelinePropTypes = {
|
|
|
51
51
|
* @types transparent: 위젯의 배경색을 제거합니다.
|
|
52
52
|
*/
|
|
53
53
|
customChrome?: (keyof typeof customChrome)[];
|
|
54
|
-
/**
|
|
55
|
-
* 임베드할 트위터 타임라인 위젯의 너비를 결정합니다. 최소 너비 180픽셀, 최대 너비 520픽셀로 상위 요소의 너비에 맞게 자동으로 조정됩니다.
|
|
56
|
-
*/
|
|
57
|
-
width?: number;
|
|
58
|
-
/**
|
|
59
|
-
* 임베드할 트위터 타임라인 위젯의 높이를 결정합니다.
|
|
60
|
-
*/
|
|
61
|
-
height?: number;
|
|
62
54
|
/**
|
|
63
55
|
* 트위터 스크립트가 로드 되기 전 혹은 로드 실패시 보여지는 컴포넌트입니다.
|
|
64
56
|
* a 태그 내부에 들어가기 때문에 로딩과는 다른 용도로 사용됩니다.
|
|
65
57
|
*/
|
|
66
|
-
fallback?: React.ReactNode;
|
|
58
|
+
fallback?: React.ReactNode | JSX.Element;
|
|
67
59
|
};
|
|
68
60
|
/**
|
|
69
61
|
* 트위터의 Profile Timeline 임베드 컴포넌트입니다.
|
|
@@ -74,5 +66,5 @@ declare type TwitterTimelinePropTypes = {
|
|
|
74
66
|
*
|
|
75
67
|
* 트위터 표시 요구 약관: https://developer.twitter.com/en/developer-terms/display-requirements
|
|
76
68
|
*/
|
|
77
|
-
declare
|
|
69
|
+
declare const TwitterTimeline: import("react").ForwardRefExoticComponent<TwitterTimelinePropTypes & import("react").RefAttributes<HTMLDivElement>>;
|
|
78
70
|
export default TwitterTimeline;
|
package/dist/src/sub/DynamicLayout/components/ComponentBlocks/TwitterTimeline/TwitterTimeline.js
CHANGED
|
@@ -29,24 +29,24 @@ var customChrome = {
|
|
|
29
29
|
*
|
|
30
30
|
* 트위터 표시 요구 약관: https://developer.twitter.com/en/developer-terms/display-requirements
|
|
31
31
|
*/
|
|
32
|
-
|
|
33
|
-
var userId = _a.userId, _b = _a.tweetLimit, tweetLimit = _b === void 0 ? 5 : _b, _c = _a.showReplies, showReplies = _c === void 0 ? false : _c, _d = _a.theme, theme = _d === void 0 ? 'light' : _d, _e = _a.ariaPolite, ariaPolite = _e === void 0 ? 'polite' : _e, _f = _a.dnt, dnt = _f === void 0 ? true : _f, _g = _a.customChrome, customChrome = _g === void 0 ? [] : _g,
|
|
32
|
+
var TwitterTimeline = (0, react_1.forwardRef)(function (_a, ref) {
|
|
33
|
+
var userId = _a.userId, _b = _a.tweetLimit, tweetLimit = _b === void 0 ? 5 : _b, _c = _a.showReplies, showReplies = _c === void 0 ? false : _c, _d = _a.theme, theme = _d === void 0 ? 'light' : _d, _e = _a.ariaPolite, ariaPolite = _e === void 0 ? 'polite' : _e, _f = _a.dnt, dnt = _f === void 0 ? true : _f, _g = _a.customChrome, customChrome = _g === void 0 ? [] : _g, fallback = _a.fallback;
|
|
34
34
|
var TWITTER_EMBED_TIMELINE_SCRIPT_ID = 'twitter-timeline';
|
|
35
35
|
var TWITTER_EMBED_TIMELINE_SCRIPT_SRC = 'https://platform.twitter.com/widgets.js';
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
},
|
|
50
|
-
|
|
51
|
-
}
|
|
36
|
+
function scriptLoader(scriptId, scriptUrl) {
|
|
37
|
+
var script = document.createElement('script');
|
|
38
|
+
script.async = true;
|
|
39
|
+
script.id = scriptId;
|
|
40
|
+
script.src = scriptUrl;
|
|
41
|
+
script.type = 'text/javascript';
|
|
42
|
+
script.onerror = function () {
|
|
43
|
+
// eslint-disable-next-line no-console
|
|
44
|
+
console.log('onerror >>>', userId);
|
|
45
|
+
};
|
|
46
|
+
document.head.appendChild(script);
|
|
47
|
+
}
|
|
48
|
+
scriptLoader(TWITTER_EMBED_TIMELINE_SCRIPT_ID, TWITTER_EMBED_TIMELINE_SCRIPT_SRC);
|
|
49
|
+
return ((0, jsx_runtime_1.jsx)("section", __assign({ className: "twitter-embed-container", ref: ref }, { children: (0, jsx_runtime_1.jsx)("div", __assign({ className: "twitter-embed" }, { children: (0, jsx_runtime_1.jsx)("a", __assign({ target: "_blank", className: "twitter-timeline", "data-tweet-limit": tweetLimit, "data-show-replies": showReplies, "data-aria-polite": ariaPolite, "data-dnt": dnt, "data-theme": theme, "data-chrome": customChrome.join(' '), href: "https://twitter.com/" + userId, rel: "noreferrer" }, { children: fallback }), void 0) }), void 0) }), void 0));
|
|
50
|
+
});
|
|
52
51
|
exports.default = TwitterTimeline;
|
|
52
|
+
TwitterTimeline.displayName = 'TwitterTimeline';
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import type { TwitterTimelinePropTypes } from './TwitterTimeline';
|
|
3
|
+
export declare type TwitterTimelineWrapperPropTypes = TwitterTimelinePropTypes & {
|
|
4
|
+
/**
|
|
5
|
+
* 임베드할 트위터 타임라인 위젯의 너비를 결정합니다. 최소 너비 180픽셀, 최대 너비 520픽셀로 상위 요소의 너비에 맞게 자동으로 조정됩니다.
|
|
6
|
+
*/
|
|
7
|
+
width?: number;
|
|
8
|
+
/**
|
|
9
|
+
* 임베드할 트위터 타임라인 위젯의 높이를 결정합니다.
|
|
10
|
+
*/
|
|
11
|
+
height?: number;
|
|
12
|
+
};
|
|
13
|
+
declare function TwitterTimelineRerender(args: TwitterTimelineWrapperPropTypes): JSX.Element;
|
|
14
|
+
export default TwitterTimelineRerender;
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cooked, raw) {
|
|
3
|
+
if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
|
|
4
|
+
return cooked;
|
|
5
|
+
};
|
|
6
|
+
var __assign = (this && this.__assign) || function () {
|
|
7
|
+
__assign = Object.assign || function(t) {
|
|
8
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
9
|
+
s = arguments[i];
|
|
10
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
11
|
+
t[p] = s[p];
|
|
12
|
+
}
|
|
13
|
+
return t;
|
|
14
|
+
};
|
|
15
|
+
return __assign.apply(this, arguments);
|
|
16
|
+
};
|
|
17
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
18
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
19
|
+
};
|
|
20
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
21
|
+
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
22
|
+
var react_1 = require("react");
|
|
23
|
+
var styled_components_1 = __importDefault(require("styled-components"));
|
|
24
|
+
var TwitterTimeline_1 = __importDefault(require("./TwitterTimeline"));
|
|
25
|
+
function TwitterTimelineRerender(args) {
|
|
26
|
+
var userId = args.userId, tweetLimit = args.tweetLimit, showReplies = args.showReplies, theme = args.theme, ariaPolite = args.ariaPolite, dnt = args.dnt, customChrome = args.customChrome, fallback = args.fallback, width = args.width, height = args.height;
|
|
27
|
+
var forceRenderKey = (0, react_1.useMemo)(function () {
|
|
28
|
+
return String(userId + tweetLimit + showReplies + theme + ariaPolite + dnt + customChrome + fallback);
|
|
29
|
+
}, [userId, tweetLimit, showReplies, theme, ariaPolite, dnt, customChrome, fallback]);
|
|
30
|
+
var widthInRange = width && width > 180 && width < 520 ? width : undefined;
|
|
31
|
+
return ((0, jsx_runtime_1.jsx)(S_TwitterTimelineWrapper, __assign({ className: "twitter-timeline-wrapper", "$width": widthInRange, "$height": height }, { children: (0, jsx_runtime_1.jsx)(TwitterTimeline_1.default, __assign({}, args), forceRenderKey) }), void 0));
|
|
32
|
+
}
|
|
33
|
+
var S_TwitterTimelineWrapper = styled_components_1.default.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n box-sizing: content-box;\n height: ", ";\n max-width: 520px;\n min-width: 180px;\n overflow: auto;\n width: ", ";\n"], ["\n box-sizing: content-box;\n height: ", ";\n max-width: 520px;\n min-width: 180px;\n overflow: auto;\n width: ", ";\n"])), function (_a) {
|
|
34
|
+
var $height = _a.$height;
|
|
35
|
+
return ($height ? $height + "px" : '100%');
|
|
36
|
+
}, function (_a) {
|
|
37
|
+
var $width = _a.$width;
|
|
38
|
+
return ($width ? $width + "px" : '100%');
|
|
39
|
+
});
|
|
40
|
+
exports.default = TwitterTimelineRerender;
|
|
41
|
+
var templateObject_1;
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export declare type ComponentBlockWrapperPropTypes = {
|
|
3
|
+
children?: React.ReactNode;
|
|
4
|
+
boxSizing?: 'border-box' | 'content-box';
|
|
5
|
+
width?: number;
|
|
6
|
+
height?: number;
|
|
7
|
+
alignVertical?: 'top' | 'center' | 'bottom';
|
|
8
|
+
alignHorizontal?: 'left' | 'center' | 'right';
|
|
9
|
+
paddingTop?: number;
|
|
10
|
+
paddingRight?: number;
|
|
11
|
+
paddingBottom?: number;
|
|
12
|
+
paddingLeft?: number;
|
|
13
|
+
zIndex?: number;
|
|
14
|
+
borderType?: 'none' | 'solid' | 'dashed' | 'dotted';
|
|
15
|
+
borderSize?: number;
|
|
16
|
+
borderColor?: string;
|
|
17
|
+
borderRadius?: number;
|
|
18
|
+
backgroundType?: 'solid' | 'gradient';
|
|
19
|
+
backgroundColor?: string;
|
|
20
|
+
backgroundGradientType?: 'linear' | 'circular';
|
|
21
|
+
backgroundGradientStartColor?: string;
|
|
22
|
+
backgroundGradientStartPosition?: number;
|
|
23
|
+
backgroundGradientEndColor?: string;
|
|
24
|
+
backgroundGradientEndPosition?: number;
|
|
25
|
+
backgroundGradientDegree?: number;
|
|
26
|
+
shadowType?: 'outside' | 'inside';
|
|
27
|
+
shadowColor?: string;
|
|
28
|
+
shadowHorizontalDistance?: number;
|
|
29
|
+
shadowVerticalDistance?: number;
|
|
30
|
+
shadowBlur?: number;
|
|
31
|
+
shadowSpread?: number;
|
|
32
|
+
opacity?: number;
|
|
33
|
+
};
|
|
34
|
+
declare const Wrapper: import("react").ForwardRefExoticComponent<ComponentBlockWrapperPropTypes & import("react").RefAttributes<HTMLDivElement>>;
|
|
35
|
+
export default Wrapper;
|
|
@@ -0,0 +1,141 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cooked, raw) {
|
|
3
|
+
if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
|
|
4
|
+
return cooked;
|
|
5
|
+
};
|
|
6
|
+
var __assign = (this && this.__assign) || function () {
|
|
7
|
+
__assign = Object.assign || function(t) {
|
|
8
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
9
|
+
s = arguments[i];
|
|
10
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
11
|
+
t[p] = s[p];
|
|
12
|
+
}
|
|
13
|
+
return t;
|
|
14
|
+
};
|
|
15
|
+
return __assign.apply(this, arguments);
|
|
16
|
+
};
|
|
17
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
18
|
+
if (k2 === undefined) k2 = k;
|
|
19
|
+
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
|
20
|
+
}) : (function(o, m, k, k2) {
|
|
21
|
+
if (k2 === undefined) k2 = k;
|
|
22
|
+
o[k2] = m[k];
|
|
23
|
+
}));
|
|
24
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
25
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
26
|
+
}) : function(o, v) {
|
|
27
|
+
o["default"] = v;
|
|
28
|
+
});
|
|
29
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
30
|
+
if (mod && mod.__esModule) return mod;
|
|
31
|
+
var result = {};
|
|
32
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
33
|
+
__setModuleDefault(result, mod);
|
|
34
|
+
return result;
|
|
35
|
+
};
|
|
36
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
|
37
|
+
var t = {};
|
|
38
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
39
|
+
t[p] = s[p];
|
|
40
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
41
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
42
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
43
|
+
t[p[i]] = s[p[i]];
|
|
44
|
+
}
|
|
45
|
+
return t;
|
|
46
|
+
};
|
|
47
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
48
|
+
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
49
|
+
var react_1 = require("react");
|
|
50
|
+
var styled_components_1 = __importStar(require("styled-components"));
|
|
51
|
+
var Wrapper = (0, react_1.forwardRef)(function (_a, ref) {
|
|
52
|
+
var children = _a.children, args = __rest(_a, ["children"]);
|
|
53
|
+
return ((0, jsx_runtime_1.jsx)(S_Wrapper, __assign({ ref: ref }, args, { children: children }), void 0));
|
|
54
|
+
});
|
|
55
|
+
var ShadowStyle = (0, styled_components_1.css)(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n box-shadow: ", ";\n"], ["\n box-shadow: ", ";\n"])), function (_a) {
|
|
56
|
+
var shadowType = _a.shadowType, shadowColor = _a.shadowColor, shadowHorizontalDistance = _a.shadowHorizontalDistance, shadowVerticalDistance = _a.shadowVerticalDistance, shadowBlur = _a.shadowBlur, shadowSpread = _a.shadowSpread;
|
|
57
|
+
var isInset = shadowType === 'inside';
|
|
58
|
+
return (isInset ? 'inset' : '') + " " + shadowHorizontalDistance + "px " + shadowVerticalDistance + "px " + shadowBlur + "px " + shadowSpread + "px " + shadowColor;
|
|
59
|
+
});
|
|
60
|
+
var S_Wrapper = styled_components_1.default.div(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n border: ", ";\n border-radius: ", "px;\n box-sizing: ", ";\n display: flex;\n height: ", "px;\n opacity: ", ";\n overflow: hidden;\n padding-bottom: ", "px;\n padding-left: ", "px;\n padding-right: ", "px;\n padding-top: ", "px;\n width: ", "px;\n z-index: ", ";\n\n ", ";\n\n ", ";\n\n ", ";\n\n ", "\n"], ["\n border: ", ";\n border-radius: ", "px;\n box-sizing: ", ";\n display: flex;\n height: ", "px;\n opacity: ", ";\n overflow: hidden;\n padding-bottom: ", "px;\n padding-left: ", "px;\n padding-right: ", "px;\n padding-top: ", "px;\n width: ", "px;\n z-index: ", ";\n\n ", ";\n\n ", ";\n\n ", ";\n\n ", "\n"])), function (_a) {
|
|
61
|
+
var _b = _a.borderSize, borderSize = _b === void 0 ? 0 : _b, _c = _a.borderType, borderType = _c === void 0 ? 'none' : _c, _d = _a.borderColor, borderColor = _d === void 0 ? '' : _d;
|
|
62
|
+
return borderSize + "px " + borderType + " " + borderColor;
|
|
63
|
+
}, function (_a) {
|
|
64
|
+
var _b = _a.borderRadius, borderRadius = _b === void 0 ? 0 : _b;
|
|
65
|
+
return borderRadius;
|
|
66
|
+
}, function (_a) {
|
|
67
|
+
var _b = _a.boxSizing, boxSizing = _b === void 0 ? 'content-box' : _b;
|
|
68
|
+
return boxSizing;
|
|
69
|
+
}, function (_a) {
|
|
70
|
+
var _b = _a.height, height = _b === void 0 ? '100%' : _b;
|
|
71
|
+
return height;
|
|
72
|
+
}, function (_a) {
|
|
73
|
+
var _b = _a.opacity, opacity = _b === void 0 ? 1 : _b;
|
|
74
|
+
return opacity;
|
|
75
|
+
}, function (_a) {
|
|
76
|
+
var _b = _a.paddingBottom, paddingBottom = _b === void 0 ? 0 : _b;
|
|
77
|
+
return paddingBottom;
|
|
78
|
+
}, function (_a) {
|
|
79
|
+
var _b = _a.paddingLeft, paddingLeft = _b === void 0 ? 0 : _b;
|
|
80
|
+
return paddingLeft;
|
|
81
|
+
}, function (_a) {
|
|
82
|
+
var _b = _a.paddingRight, paddingRight = _b === void 0 ? 0 : _b;
|
|
83
|
+
return paddingRight;
|
|
84
|
+
}, function (_a) {
|
|
85
|
+
var _b = _a.paddingTop, paddingTop = _b === void 0 ? 0 : _b;
|
|
86
|
+
return paddingTop;
|
|
87
|
+
}, function (_a) {
|
|
88
|
+
var _b = _a.width, width = _b === void 0 ? '100%' : _b;
|
|
89
|
+
return width;
|
|
90
|
+
}, function (_a) {
|
|
91
|
+
var _b = _a.zIndex, zIndex = _b === void 0 ? 0 : _b;
|
|
92
|
+
return zIndex;
|
|
93
|
+
}, function (_a) {
|
|
94
|
+
var _b = _a.alignVertical, alignVertical = _b === void 0 ? 'top' : _b;
|
|
95
|
+
switch (alignVertical) {
|
|
96
|
+
case 'top':
|
|
97
|
+
return 'align-Items: flex-start';
|
|
98
|
+
case 'center':
|
|
99
|
+
return 'align-Items: center';
|
|
100
|
+
case 'bottom':
|
|
101
|
+
return 'align-Items: flex-end';
|
|
102
|
+
default:
|
|
103
|
+
return 'align-Items: flex-start';
|
|
104
|
+
}
|
|
105
|
+
}, function (_a) {
|
|
106
|
+
var _b = _a.alignHorizontal, alignHorizontal = _b === void 0 ? 'left' : _b;
|
|
107
|
+
switch (alignHorizontal) {
|
|
108
|
+
case 'left':
|
|
109
|
+
return 'justify-content: flex-start';
|
|
110
|
+
case 'center':
|
|
111
|
+
return 'justify-content: center';
|
|
112
|
+
case 'right':
|
|
113
|
+
return 'justify-content: flex-end';
|
|
114
|
+
default:
|
|
115
|
+
return 'justify-content: flex-start';
|
|
116
|
+
}
|
|
117
|
+
}, function (_a) {
|
|
118
|
+
var _b = _a.backgroundType, backgroundType = _b === void 0 ? 'solid' : _b;
|
|
119
|
+
switch (backgroundType) {
|
|
120
|
+
case 'solid':
|
|
121
|
+
return BackgroundSolidType;
|
|
122
|
+
case 'gradient':
|
|
123
|
+
return BackgroundGradientType;
|
|
124
|
+
default:
|
|
125
|
+
return BackgroundSolidType;
|
|
126
|
+
}
|
|
127
|
+
}, ShadowStyle);
|
|
128
|
+
var BackgroundSolidType = (0, styled_components_1.css)(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n background: ", ";\n"], ["\n background: ", ";\n"])), function (_a) {
|
|
129
|
+
var backgroundColor = _a.backgroundColor;
|
|
130
|
+
return (backgroundColor ? backgroundColor : 'none');
|
|
131
|
+
});
|
|
132
|
+
var BackgroundGradientType = (0, styled_components_1.css)(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\n background: ", ";\n"], ["\n background: ", ";\n"])), function (_a) {
|
|
133
|
+
var _b = _a.backgroundGradientType, backgroundGradientType = _b === void 0 ? 'linear' : _b, _c = _a.backgroundGradientStartColor, backgroundGradientStartColor = _c === void 0 ? 'white' : _c, _d = _a.backgroundGradientStartPosition, backgroundGradientStartPosition = _d === void 0 ? 0 : _d, _e = _a.backgroundGradientEndColor, backgroundGradientEndColor = _e === void 0 ? 'black' : _e, _f = _a.backgroundGradientEndPosition, backgroundGradientEndPosition = _f === void 0 ? 100 : _f, _g = _a.backgroundGradientDegree, backgroundGradientDegree = _g === void 0 ? 90 : _g;
|
|
134
|
+
var isRadial = backgroundGradientType === 'circular';
|
|
135
|
+
var gradientType = isRadial ? 'radial' : backgroundGradientType;
|
|
136
|
+
var degree = isRadial ? '' : backgroundGradientDegree + "deg,";
|
|
137
|
+
return gradientType + "-gradient(" + degree + " " + backgroundGradientStartColor + " " + backgroundGradientStartPosition + "%, " + backgroundGradientEndColor + " " + backgroundGradientEndPosition + "%)";
|
|
138
|
+
});
|
|
139
|
+
exports.default = Wrapper;
|
|
140
|
+
Wrapper.displayName = 'Wrapper';
|
|
141
|
+
var templateObject_1, templateObject_2, templateObject_3, templateObject_4;
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.WrapperDefaultOptions = void 0;
|
|
4
|
+
exports.WrapperDefaultOptions = {
|
|
5
|
+
width: 600,
|
|
6
|
+
height: 400,
|
|
7
|
+
alignHorizontal: 'center',
|
|
8
|
+
alignVertical: 'center',
|
|
9
|
+
paddingBottom: 20,
|
|
10
|
+
paddingLeft: 20,
|
|
11
|
+
paddingRight: 20,
|
|
12
|
+
paddingTop: 20,
|
|
13
|
+
zIndex: 0,
|
|
14
|
+
borderType: 'dotted',
|
|
15
|
+
borderSize: 5,
|
|
16
|
+
borderColor: 'dodgerblue',
|
|
17
|
+
borderRadius: 30,
|
|
18
|
+
backgroundType: 'gradient',
|
|
19
|
+
backgroundColor: 'gray',
|
|
20
|
+
backgroundGradientType: 'circular',
|
|
21
|
+
backgroundGradientStartColor: 'blue',
|
|
22
|
+
backgroundGradientStartPosition: 0,
|
|
23
|
+
backgroundGradientEndColor: 'lightblue',
|
|
24
|
+
backgroundGradientEndPosition: 100,
|
|
25
|
+
backgroundGradientDegree: 90,
|
|
26
|
+
shadowType: 'outside',
|
|
27
|
+
shadowColor: 'gray',
|
|
28
|
+
shadowHorizontalDistance: 15,
|
|
29
|
+
shadowVerticalDistance: 10,
|
|
30
|
+
shadowBlur: 3,
|
|
31
|
+
shadowSpread: 3,
|
|
32
|
+
opacity: 0.85
|
|
33
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as Wrapper } from './Wrapper';
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.Wrapper = void 0;
|
|
7
|
+
var Wrapper_1 = require("./Wrapper");
|
|
8
|
+
Object.defineProperty(exports, "Wrapper", { enumerable: true, get: function () { return __importDefault(Wrapper_1).default; } });
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
-
import { RichText } from './RichText';
|
|
1
|
+
import { RichText, RichTextPropTypes } from './RichText';
|
|
2
|
+
import { Text, TextPropTypes } from './Text';
|
|
2
3
|
import { TwitterTimeline } from './TwitterTimeline';
|
|
3
|
-
export { RichText, TwitterTimeline };
|
|
4
|
+
export { RichText, RichTextPropTypes, Text, TextPropTypes, TwitterTimeline };
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.TwitterTimeline = exports.RichText = void 0;
|
|
3
|
+
exports.TwitterTimeline = exports.Text = exports.RichText = void 0;
|
|
4
4
|
var RichText_1 = require("./RichText");
|
|
5
5
|
Object.defineProperty(exports, "RichText", { enumerable: true, get: function () { return RichText_1.RichText; } });
|
|
6
|
+
var Text_1 = require("./Text");
|
|
7
|
+
Object.defineProperty(exports, "Text", { enumerable: true, get: function () { return Text_1.Text; } });
|
|
6
8
|
var TwitterTimeline_1 = require("./TwitterTimeline");
|
|
7
9
|
Object.defineProperty(exports, "TwitterTimeline", { enumerable: true, get: function () { return TwitterTimeline_1.TwitterTimeline; } });
|
package/dist/src/sub/DynamicLayout/components/EditModeSectionMatcher/EditModeSectionMatcher.js
CHANGED
|
@@ -27,7 +27,6 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
27
27
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
28
28
|
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
29
29
|
var sections_1 = require("../../../DynamicLayout/sections");
|
|
30
|
-
var CustomSection_1 = require("../../../DynamicLayout/sections/CustomSection");
|
|
31
30
|
var SectionBox_1 = __importDefault(require("./SectionBox"));
|
|
32
31
|
function EditModeSectionMatcher(_a) {
|
|
33
32
|
var filteredSortedSection = _a.filteredSortedSection, scrollDownTargetSectionId = _a.scrollDownTargetSectionId, editingSectionId = _a.editingSectionId, onClickEditSection = _a.onClickEditSection;
|
|
@@ -37,6 +36,9 @@ function EditModeSectionMatcher(_a) {
|
|
|
37
36
|
exports.default = EditModeSectionMatcher;
|
|
38
37
|
function Matcher(_a) {
|
|
39
38
|
var props = __rest(_a, []);
|
|
39
|
+
if (props.type === 'CUSTOM') {
|
|
40
|
+
return (0, jsx_runtime_1.jsx)(sections_1.CustomSection, __assign({}, props), void 0);
|
|
41
|
+
}
|
|
40
42
|
var schema = props.manifest.schema;
|
|
41
43
|
switch (schema) {
|
|
42
44
|
case 'BASE_INTRO':
|
|
@@ -53,8 +55,6 @@ function Matcher(_a) {
|
|
|
53
55
|
return (0, jsx_runtime_1.jsx)(sections_1.FullscreenIframeSection, __assign({}, props), void 0);
|
|
54
56
|
case 'PRG_MEMBERSHIP_DISPLAY':
|
|
55
57
|
return (0, jsx_runtime_1.jsx)(sections_1.EditTypeMembershipSection, __assign({}, props), void 0);
|
|
56
|
-
case 'CUSTOM_SECTION':
|
|
57
|
-
return (0, jsx_runtime_1.jsx)(CustomSection_1.CustomSection, __assign({}, props), void 0);
|
|
58
58
|
default:
|
|
59
59
|
return (0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, {}, void 0);
|
|
60
60
|
}
|