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
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __assign = (this && this.__assign) || function () {
|
|
3
|
+
__assign = Object.assign || function(t) {
|
|
4
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
5
|
+
s = arguments[i];
|
|
6
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
7
|
+
t[p] = s[p];
|
|
8
|
+
}
|
|
9
|
+
return t;
|
|
10
|
+
};
|
|
11
|
+
return __assign.apply(this, arguments);
|
|
12
|
+
};
|
|
13
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
14
|
+
function replaceUndefinedValues(jsonData) {
|
|
15
|
+
return Object.entries(jsonData).reduce(function (acc, cur) {
|
|
16
|
+
var _a;
|
|
17
|
+
var _b = cur, currentPropKey = _b[0], currentProps = _b[1];
|
|
18
|
+
if (currentPropKey.includes('CB_STYLE_PROP')) {
|
|
19
|
+
var specs = Object.entries(currentProps).reduce(function (accSpecs, curSpec) {
|
|
20
|
+
var _a;
|
|
21
|
+
var key = curSpec[0], value = curSpec[1];
|
|
22
|
+
var keyCopy = key;
|
|
23
|
+
var hasMobileKey = hasOwnProperty(accSpecs, keyCopy + ":MOBILE");
|
|
24
|
+
if (keyCopy.includes(':MOBILE') || hasMobileKey) {
|
|
25
|
+
return accSpecs;
|
|
26
|
+
}
|
|
27
|
+
if (keyCopy.includes(':HOVER')) {
|
|
28
|
+
keyCopy.replace(':HOVER', ':MOBILE:HOVER');
|
|
29
|
+
}
|
|
30
|
+
else {
|
|
31
|
+
keyCopy += ':MOBILE';
|
|
32
|
+
}
|
|
33
|
+
if (hasOwnProperty(accSpecs, keyCopy)) {
|
|
34
|
+
return accSpecs;
|
|
35
|
+
}
|
|
36
|
+
return __assign(__assign({}, accSpecs), (_a = {}, _a[keyCopy] = value, _a));
|
|
37
|
+
}, currentProps);
|
|
38
|
+
return __assign(__assign({}, acc), (_a = {}, _a[currentPropKey] = specs, _a));
|
|
39
|
+
}
|
|
40
|
+
return acc;
|
|
41
|
+
}, jsonData);
|
|
42
|
+
}
|
|
43
|
+
exports.default = replaceUndefinedValues;
|
|
44
|
+
function hasOwnProperty(obj, prop) {
|
|
45
|
+
return Object.prototype.hasOwnProperty.call(obj, prop);
|
|
46
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type { Device } from '../util/types';
|
|
2
|
+
export declare function parseStyleTextToCSSProp<T>({ availableSpecCodes, props, propKey, device }: ParseStyleTextProps<T>): {
|
|
3
|
+
style: {};
|
|
4
|
+
hoverStyle: {};
|
|
5
|
+
};
|
|
6
|
+
declare type ParseStyleTextProps<T> = {
|
|
7
|
+
availableSpecCodes: Array<keyof T>;
|
|
8
|
+
props: T;
|
|
9
|
+
propKey: 'TEXT';
|
|
10
|
+
device: Device;
|
|
11
|
+
} | {
|
|
12
|
+
availableSpecCodes: Array<keyof T>;
|
|
13
|
+
props: T;
|
|
14
|
+
propKey: 'BTNTEXT';
|
|
15
|
+
device: Device;
|
|
16
|
+
};
|
|
17
|
+
export declare function getTextCSSPropKey(key: string, cbName: 'TEXT' | 'BTNTEXT'): "" | "color" | "fontFamily" | "letterSpacing" | "lineHeight" | "fontSize" | "fontWeight";
|
|
18
|
+
export {};
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __assign = (this && this.__assign) || function () {
|
|
3
|
+
__assign = Object.assign || function(t) {
|
|
4
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
5
|
+
s = arguments[i];
|
|
6
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
7
|
+
t[p] = s[p];
|
|
8
|
+
}
|
|
9
|
+
return t;
|
|
10
|
+
};
|
|
11
|
+
return __assign.apply(this, arguments);
|
|
12
|
+
};
|
|
13
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
14
|
+
exports.getTextCSSPropKey = exports.parseStyleTextToCSSProp = void 0;
|
|
15
|
+
function parseStyleTextToCSSProp(_a) {
|
|
16
|
+
var availableSpecCodes = _a.availableSpecCodes, props = _a.props, propKey = _a.propKey, device = _a.device;
|
|
17
|
+
return availableSpecCodes.reduce(function (acc, currentKey) {
|
|
18
|
+
var _a, _b, _c, _d;
|
|
19
|
+
var stringifiedKey = currentKey.toString();
|
|
20
|
+
var keyWithDevice = device === 'DESKTOP' ? currentKey : stringifiedKey + ":MOBILE";
|
|
21
|
+
var keyWithHover = keyWithDevice.toString() + ":HOVER";
|
|
22
|
+
var cssPropertyKey = getTextCSSPropKey(stringifiedKey, propKey);
|
|
23
|
+
var value = props[keyWithDevice];
|
|
24
|
+
var hoverValue = props[keyWithHover];
|
|
25
|
+
if (cssPropertyKey === 'lineHeight') {
|
|
26
|
+
var numValue = typeof value === 'number' ? value / 100 : value;
|
|
27
|
+
var numHoverValue = typeof hoverValue === 'number' ? hoverValue / 100 : hoverValue;
|
|
28
|
+
return {
|
|
29
|
+
style: __assign(__assign({}, acc.style), (_a = {}, _a[cssPropertyKey] = numValue, _a)),
|
|
30
|
+
hoverStyle: __assign(__assign({}, acc.hoverStyle), (_b = {}, _b[cssPropertyKey] = numHoverValue, _b))
|
|
31
|
+
};
|
|
32
|
+
}
|
|
33
|
+
return {
|
|
34
|
+
style: __assign(__assign({}, acc.style), (_c = {}, _c[cssPropertyKey] = value, _c)),
|
|
35
|
+
hoverStyle: __assign(__assign({}, acc.hoverStyle), (_d = {}, _d[cssPropertyKey] = hoverValue, _d))
|
|
36
|
+
};
|
|
37
|
+
}, {
|
|
38
|
+
style: {},
|
|
39
|
+
hoverStyle: {}
|
|
40
|
+
});
|
|
41
|
+
}
|
|
42
|
+
exports.parseStyleTextToCSSProp = parseStyleTextToCSSProp;
|
|
43
|
+
function getTextCSSPropKey(key, cbName) {
|
|
44
|
+
switch (key) {
|
|
45
|
+
case "CB_STYLE_PROP_" + cbName + "_SPEC_COLOR":
|
|
46
|
+
case "CB_STYLE_PROP_" + cbName + "_SPEC_COLOR:HOVER":
|
|
47
|
+
case "CB_STYLE_PROP_" + cbName + "_SPEC_COLOR:MOBILE":
|
|
48
|
+
case "CB_STYLE_PROP_" + cbName + "_SPEC_COLOR:MOBILE:HOVER":
|
|
49
|
+
return 'color';
|
|
50
|
+
case "CB_STYLE_PROP_" + cbName + "_SPEC_TYPEFACE":
|
|
51
|
+
case "CB_STYLE_PROP_" + cbName + "_SPEC_TYPEFACE:HOVER":
|
|
52
|
+
case "CB_STYLE_PROP_" + cbName + "_SPEC_TYPEFACE:MOBILE":
|
|
53
|
+
case "CB_STYLE_PROP_" + cbName + "_SPEC_TYPEFACE:MOBILE:HOVER":
|
|
54
|
+
return 'fontFamily';
|
|
55
|
+
case "CB_STYLE_PROP_" + cbName + "_SPEC_LETTERSPACING":
|
|
56
|
+
case "CB_STYLE_PROP_" + cbName + "_SPEC_LETTERSPACING:HOVER":
|
|
57
|
+
case "CB_STYLE_PROP_" + cbName + "_SPEC_LETTERSPACING:MOBILE":
|
|
58
|
+
case "CB_STYLE_PROP_" + cbName + "_SPEC_LETTERSPACING:MOBILE:HOVER":
|
|
59
|
+
return 'letterSpacing';
|
|
60
|
+
case "CB_STYLE_PROP_" + cbName + "_SPEC_LINEHEIGHT":
|
|
61
|
+
case "CB_STYLE_PROP_" + cbName + "_SPEC_LINEHEIGHT:HOVER":
|
|
62
|
+
case "CB_STYLE_PROP_" + cbName + "_SPEC_LINEHEIGHT:MOBILE":
|
|
63
|
+
case "CB_STYLE_PROP_" + cbName + "_SPEC_LINEHEIGHT:MOBILE:HOVER":
|
|
64
|
+
return 'lineHeight';
|
|
65
|
+
case "CB_STYLE_PROP_" + cbName + "_SPEC_SIZE":
|
|
66
|
+
case "CB_STYLE_PROP_" + cbName + "_SPEC_SIZE:HOVER":
|
|
67
|
+
case "CB_STYLE_PROP_" + cbName + "_SPEC_SIZE:MOBILE":
|
|
68
|
+
case "CB_STYLE_PROP_" + cbName + "_SPEC_SIZE:MOBILE:HOVER":
|
|
69
|
+
return 'fontSize';
|
|
70
|
+
case "CB_STYLE_PROP_" + cbName + "_SPEC_WEIGHT":
|
|
71
|
+
case "CB_STYLE_PROP_" + cbName + "_SPEC_WEIGHT:HOVER":
|
|
72
|
+
case "CB_STYLE_PROP_" + cbName + "_SPEC_WEIGHT:MOBILE":
|
|
73
|
+
case "CB_STYLE_PROP_" + cbName + "_SPEC_WEIGHT:MOBILE:HOVER":
|
|
74
|
+
return 'fontWeight';
|
|
75
|
+
default:
|
|
76
|
+
return '';
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
exports.getTextCSSPropKey = getTextCSSPropKey;
|
|
@@ -1,99 +1,50 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
export declare type
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
};
|
|
51
|
-
export declare type DividerComponentDataType = {
|
|
52
|
-
type: BlockComponents['DIVIDER'];
|
|
53
|
-
value: {
|
|
54
|
-
size: number;
|
|
55
|
-
};
|
|
56
|
-
};
|
|
57
|
-
export declare type TwitterComponentDataType = {
|
|
58
|
-
type: BlockComponents['TWITTER'];
|
|
59
|
-
value: {
|
|
60
|
-
accountId: string;
|
|
61
|
-
};
|
|
62
|
-
};
|
|
63
|
-
export declare type YoutubeComponentDataType = {
|
|
64
|
-
type: BlockComponents['YOUTUBE'];
|
|
65
|
-
value: {
|
|
66
|
-
src: string;
|
|
67
|
-
startAt: number;
|
|
68
|
-
endAt: number;
|
|
69
|
-
};
|
|
70
|
-
};
|
|
71
|
-
export declare type AccordionComponentDataType = {
|
|
72
|
-
type: BlockComponents['ACCORDION'];
|
|
73
|
-
value: {
|
|
74
|
-
accordionItems: AccordionItem[];
|
|
75
|
-
openedItemId?: string;
|
|
76
|
-
};
|
|
77
|
-
};
|
|
78
|
-
export declare type ContentsCarouselDataType = {
|
|
79
|
-
type: BlockComponents['ACCORDION'];
|
|
80
|
-
value: {
|
|
81
|
-
contentsCarouselItems: ContentsCarouselItem[];
|
|
82
|
-
carouselSettings: CarouselSettings;
|
|
83
|
-
};
|
|
84
|
-
};
|
|
85
|
-
export declare type ImgCarouselDataType = {
|
|
86
|
-
type: BlockComponents['IMAGE_CAROUSEL'];
|
|
87
|
-
value: {
|
|
88
|
-
imgCarouselItems: ImgCarouselItem[];
|
|
89
|
-
carouselSettings: CarouselSettings;
|
|
90
|
-
};
|
|
91
|
-
};
|
|
92
|
-
export declare type ComponentDataPairType = TextComponentDataType | ImageComponentDataType | TwitterComponentDataType | RichTextComponentDataType | ButtonComponentDataType | DividerComponentDataType | YoutubeComponentDataType | AccordionComponentDataType | ContentsCarouselDataType | ImgCarouselDataType;
|
|
93
|
-
export declare type ContentType = {
|
|
94
|
-
data: ComponentDataPairType;
|
|
95
|
-
link?: LinkContentType;
|
|
96
|
-
};
|
|
97
|
-
export declare type StyleType = React.CSSProperties;
|
|
98
|
-
export declare type LayoutType = React.CSSProperties;
|
|
99
|
-
export declare type AnimationType = React.CSSProperties;
|
|
1
|
+
import type { CB_BTN_PROPERTIES_TYPE, CB_DIVIDER_PROPERTIES_TYPE, CB_IMG_PROPERTIES_TYPE, CB_RICHTEXT_PROPERTIES_TYPE, CB_TEXT_PROPERTIES_TYPE, CB_TWITTER_PROPERTIES_TYPE, CB_YOUTUBE_PROPERTIES_TYPE } from './util/types';
|
|
2
|
+
export declare type CB_TYPES = 'GENERAL';
|
|
3
|
+
export declare type ComponentBlock = CB_TEXT_TYPE | CB_BTN_TYPE | CB_RICHTEXT | CB_DIVIDER | CB_IMG | CB_YOUTUBE | CB_TWITTER;
|
|
4
|
+
declare type GeneralCustomSectionType = {
|
|
5
|
+
id: number;
|
|
6
|
+
type: 'GENERAL';
|
|
7
|
+
availablePlugins: Array<string>;
|
|
8
|
+
queryableTapSrc: string;
|
|
9
|
+
queryableDefinitionPreset: string;
|
|
10
|
+
dynamicLayoutSectionId: number;
|
|
11
|
+
};
|
|
12
|
+
export declare type AllCBProperties = CB_TEXT_PROPERTIES_TYPE | CB_BTN_PROPERTIES_TYPE | CB_RICHTEXT_PROPERTIES_TYPE | CB_RICHTEXT_PROPERTIES_TYPE | CB_DIVIDER_PROPERTIES_TYPE | CB_YOUTUBE_PROPERTIES_TYPE | CB_IMG_PROPERTIES_TYPE | CB_TWITTER_PROPERTIES_TYPE;
|
|
13
|
+
export declare type CB_TEXT_TYPE = GeneralCustomSectionType & {
|
|
14
|
+
componentBlockCode: CB_ALL_CODES.CB_TEXT;
|
|
15
|
+
properties: CB_TEXT_PROPERTIES_TYPE;
|
|
16
|
+
};
|
|
17
|
+
export declare type CB_BTN_TYPE = GeneralCustomSectionType & {
|
|
18
|
+
componentBlockCode: CB_ALL_CODES.CB_BTN;
|
|
19
|
+
properties: CB_BTN_PROPERTIES_TYPE;
|
|
20
|
+
};
|
|
21
|
+
export declare type CB_RICHTEXT = GeneralCustomSectionType & {
|
|
22
|
+
componentBlockCode: CB_ALL_CODES.CB_RICHTEXT;
|
|
23
|
+
properties: CB_RICHTEXT_PROPERTIES_TYPE;
|
|
24
|
+
};
|
|
25
|
+
export declare type CB_DIVIDER = GeneralCustomSectionType & {
|
|
26
|
+
componentBlockCode: CB_ALL_CODES.CB_DIVIDER;
|
|
27
|
+
properties: CB_DIVIDER_PROPERTIES_TYPE;
|
|
28
|
+
};
|
|
29
|
+
export declare type CB_IMG = GeneralCustomSectionType & {
|
|
30
|
+
componentBlockCode: CB_ALL_CODES.CB_IMG;
|
|
31
|
+
properties: CB_IMG_PROPERTIES_TYPE;
|
|
32
|
+
};
|
|
33
|
+
export declare type CB_YOUTUBE = GeneralCustomSectionType & {
|
|
34
|
+
componentBlockCode: CB_ALL_CODES.CB_YOUTUBE;
|
|
35
|
+
properties: CB_YOUTUBE_PROPERTIES_TYPE;
|
|
36
|
+
};
|
|
37
|
+
export declare type CB_TWITTER = GeneralCustomSectionType & {
|
|
38
|
+
componentBlockCode: CB_ALL_CODES.CB_TWITTER;
|
|
39
|
+
properties: CB_TWITTER_PROPERTIES_TYPE;
|
|
40
|
+
};
|
|
41
|
+
export declare enum CB_ALL_CODES {
|
|
42
|
+
CB_TEXT = "CB_TEXT",
|
|
43
|
+
CB_BTN = "CB_BTN",
|
|
44
|
+
CB_RICHTEXT = "CB_RICHTEXT",
|
|
45
|
+
CB_DIVIDER = "CB_DIVIDER",
|
|
46
|
+
CB_IMG = "CB_IMG",
|
|
47
|
+
CB_YOUTUBE = "CB_YOUTUBE",
|
|
48
|
+
CB_TWITTER = "CB_TWITTER"
|
|
49
|
+
}
|
|
50
|
+
export {};
|
|
@@ -1,16 +1,13 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
CONTENTS_CAROUSEL: 'CONTENTS_CAROUSEL',
|
|
15
|
-
IMAGE_CAROUSEL: 'IMAGE_CAROUSEL'
|
|
16
|
-
};
|
|
3
|
+
exports.CB_ALL_CODES = void 0;
|
|
4
|
+
var CB_ALL_CODES;
|
|
5
|
+
(function (CB_ALL_CODES) {
|
|
6
|
+
CB_ALL_CODES["CB_TEXT"] = "CB_TEXT";
|
|
7
|
+
CB_ALL_CODES["CB_BTN"] = "CB_BTN";
|
|
8
|
+
CB_ALL_CODES["CB_RICHTEXT"] = "CB_RICHTEXT";
|
|
9
|
+
CB_ALL_CODES["CB_DIVIDER"] = "CB_DIVIDER";
|
|
10
|
+
CB_ALL_CODES["CB_IMG"] = "CB_IMG";
|
|
11
|
+
CB_ALL_CODES["CB_YOUTUBE"] = "CB_YOUTUBE";
|
|
12
|
+
CB_ALL_CODES["CB_TWITTER"] = "CB_TWITTER";
|
|
13
|
+
})(CB_ALL_CODES = exports.CB_ALL_CODES || (exports.CB_ALL_CODES = {}));
|
|
@@ -0,0 +1,16 @@
|
|
|
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.parseContentProperties = void 0;
|
|
7
|
+
var parseContentVisibility_1 = __importDefault(require("./parseContentVisibility"));
|
|
8
|
+
var types_1 = require("./types");
|
|
9
|
+
function parseContentProperties(namedProps, device) {
|
|
10
|
+
var name = namedProps.name;
|
|
11
|
+
switch (name) {
|
|
12
|
+
case types_1.CB_CONTENT_PROP_KEYS.CB_CONTENT_PROP_VISIBILITY:
|
|
13
|
+
return (0, parseContentVisibility_1.default)(namedProps, device);
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
exports.parseContentProperties = parseContentProperties;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { Device, StyleType } from '../types';
|
|
2
|
+
import type { CB_CONTENT_PROP_KEYS } from './types';
|
|
3
|
+
export declare type CB_CONTENT_PROP_VISIBILITY_SPECS = {
|
|
4
|
+
CB_CONTENT_PROP_VISIBILITY_SPEC_DESKTOP: boolean;
|
|
5
|
+
CB_CONTENT_PROP_VISIBILITY_SPEC_MOBILEWEB: boolean;
|
|
6
|
+
};
|
|
7
|
+
export declare type NAMED_CB_CONTENT_VISIBILITY_PROPS = {
|
|
8
|
+
name: CB_CONTENT_PROP_KEYS.CB_CONTENT_PROP_VISIBILITY;
|
|
9
|
+
specs: CB_CONTENT_PROP_VISIBILITY_SPECS;
|
|
10
|
+
};
|
|
11
|
+
declare function parseContentVisibility(namedProps: NAMED_CB_CONTENT_VISIBILITY_PROPS, device: Device): StyleType;
|
|
12
|
+
export default parseContentVisibility;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
function parseContentVisibility(namedProps, device) {
|
|
4
|
+
var specs = namedProps.specs;
|
|
5
|
+
if (device === 'DESKTOP') {
|
|
6
|
+
return {
|
|
7
|
+
style: {
|
|
8
|
+
visibility: specs.CB_CONTENT_PROP_VISIBILITY_SPEC_DESKTOP ? 'visible' : 'hidden'
|
|
9
|
+
}
|
|
10
|
+
};
|
|
11
|
+
}
|
|
12
|
+
return {
|
|
13
|
+
style: {
|
|
14
|
+
visibility: specs.CB_CONTENT_PROP_VISIBILITY_SPEC_MOBILEWEB ? 'visible' : 'hidden'
|
|
15
|
+
}
|
|
16
|
+
};
|
|
17
|
+
}
|
|
18
|
+
exports.default = parseContentVisibility;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CB_CONTENT_PROP_KEYS = void 0;
|
|
4
|
+
var CB_CONTENT_PROP_KEYS;
|
|
5
|
+
(function (CB_CONTENT_PROP_KEYS) {
|
|
6
|
+
CB_CONTENT_PROP_KEYS["CB_CONTENT_PROP_VISIBILITY"] = "CB_CONTENT_PROP_VISIBILITY";
|
|
7
|
+
})(CB_CONTENT_PROP_KEYS = exports.CB_CONTENT_PROP_KEYS || (exports.CB_CONTENT_PROP_KEYS = {}));
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.animations = void 0;
|
|
4
|
+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
5
|
+
exports.animations = [
|
|
6
|
+
{ name: 'FADEIN', value: 'fade-in' },
|
|
7
|
+
{ name: 'FADEINFWD', value: 'fade-in-fwd' },
|
|
8
|
+
{ name: 'FADEINBCK', value: 'fade-in-bck' },
|
|
9
|
+
{ name: 'FADEINTOP', value: 'fade-in-top' },
|
|
10
|
+
{ name: 'FADEINRIGHT', value: 'fade-in-right' },
|
|
11
|
+
{ name: 'FADEINBOTTOM', value: 'fade-in-bottom' },
|
|
12
|
+
{ name: 'FADEINLEFT', value: 'fade-in-left' },
|
|
13
|
+
{ name: 'SLIDEINTOP', value: 'slide-in-top' },
|
|
14
|
+
{ name: 'SLIDEINRIGHT', value: 'slide-in-right' },
|
|
15
|
+
{ name: 'SLIDEINBOTTOM', value: 'slide-in-bottom' },
|
|
16
|
+
{ name: 'SLIDEINLEFT', value: 'slide-in-left' },
|
|
17
|
+
{ name: 'TRACKINGINCONTRACT', value: 'tracking-in-contract' },
|
|
18
|
+
{ name: 'ROTATECW', value: 'rotate-in-2-cw' },
|
|
19
|
+
{ name: 'ROTATECCW', value: 'rotate-in-2-ccw' },
|
|
20
|
+
{ name: 'SWINGINTOPFWD', value: 'swing-in-top-fwd' },
|
|
21
|
+
{ name: 'SWINGINTOPBCK', value: 'swing-in-top-bck' },
|
|
22
|
+
{ name: 'SWINGINRIGHTFWD', value: 'swing-in-right-fwd' },
|
|
23
|
+
{ name: 'SWINGINRIGHTBCK', value: 'swing-in-right-bck' },
|
|
24
|
+
{ name: 'SWINGINBOTTOMFWD', value: 'swing-in-bottom-fwd' },
|
|
25
|
+
{ name: 'SWINGINLEFTFWD', value: 'swing-in-left-fwd' },
|
|
26
|
+
{ name: 'SWINGINLEFTBCK', value: 'swing-in-left-bck' },
|
|
27
|
+
{ name: 'ZOOMIN', value: 'scale-in-center' },
|
|
28
|
+
{ name: 'ZOOMOUT', value: 'slide-in-bck-center' },
|
|
29
|
+
{ name: 'ZOOMOUTCOTRACT', value: 'tracking-in-contract-bck' },
|
|
30
|
+
{ name: 'FOCUSIN', value: 'text-focus-in' },
|
|
31
|
+
{ name: 'PUFFIN', value: 'puff-in-center' },
|
|
32
|
+
{ name: 'FOCUSINCONTRACT', value: 'focus-in-contract' },
|
|
33
|
+
{ name: 'SHAKEH', value: 'shake-horizontal' },
|
|
34
|
+
{ name: 'SHAKEV', value: 'shake-vertical' },
|
|
35
|
+
{ name: 'SHAKET', value: 'shake-top' },
|
|
36
|
+
{ name: 'VIBRATE', value: 'vibrate-1' },
|
|
37
|
+
{ name: 'BLINK', value: 'blink-1' },
|
|
38
|
+
{ name: 'FLICKER', value: 'flicker-in-2' },
|
|
39
|
+
{ name: 'BOUNCEIN', value: 'bounce-top' },
|
|
40
|
+
{ name: 'HEARTBEAT', value: 'heartbeat' },
|
|
41
|
+
{ name: 'KENBURNSTOP', value: 'kenburns-top' },
|
|
42
|
+
{ name: 'PANTOP', value: 'bg-pan-top' },
|
|
43
|
+
{ name: 'PANRIGHT', value: 'bg-pan-right' },
|
|
44
|
+
{ name: 'PANBOTTOM', value: 'bg-pan-bottom' },
|
|
45
|
+
{ name: 'PANLEFT', value: 'bg-pan-left' }
|
|
46
|
+
];
|
|
@@ -0,0 +1,16 @@
|
|
|
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.parseEffectProperties = void 0;
|
|
7
|
+
var parseEffectPropEntAnim_1 = __importDefault(require("./parseEffectPropEntAnim"));
|
|
8
|
+
var types_1 = require("./types");
|
|
9
|
+
function parseEffectProperties(namedProps, device) {
|
|
10
|
+
var name = namedProps.name;
|
|
11
|
+
switch (name) {
|
|
12
|
+
case types_1.CB_EFFECT_PROP_KEYS.CB_EFFECT_PROP_ENTANIM:
|
|
13
|
+
return (0, parseEffectPropEntAnim_1.default)(namedProps, device);
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
exports.parseEffectProperties = parseEffectProperties;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import type { Device, StyleType } from '../types';
|
|
2
|
+
import type { CB_EFFECT_PROP_KEYS } from './types';
|
|
3
|
+
export declare type NAMED_CB_EFFECT_ENTANIM_PROPS = {
|
|
4
|
+
name: CB_EFFECT_PROP_KEYS.CB_EFFECT_PROP_ENTANIM;
|
|
5
|
+
specs: CB_EFFECT_PROP_ENTANIM_SPECS;
|
|
6
|
+
};
|
|
7
|
+
export default function parseEffectPropEntAnim(namedProps: NAMED_CB_EFFECT_ENTANIM_PROPS, device: Device): StyleType;
|
|
8
|
+
export declare type CB_EFFECT_PROP_ENTANIM_BASE = {
|
|
9
|
+
CB_EFFECT_PROP_ENTANIM_SPEC_DURATION: number;
|
|
10
|
+
CB_EFFECT_PROP_ENTANIM_SPEC_REPEAT: number;
|
|
11
|
+
CB_EFFECT_PROP_ENTANIM_SPEC_TFUNC: string;
|
|
12
|
+
CB_EFFECT_PROP_ENTANIM_SPEC_TYPE: string;
|
|
13
|
+
};
|
|
14
|
+
export declare type CB_EFFECT_PROP_ENTANIM_SPECS = CB_EFFECT_PROP_ENTANIM_BASE & Partial<{
|
|
15
|
+
'CB_EFFECT_PROP_ENTANIM_SPEC_DURATION:MOBILE': number | undefined;
|
|
16
|
+
'CB_EFFECT_PROP_ENTANIM_SPEC_REPEAT:MOBILE': number | undefined;
|
|
17
|
+
'CB_EFFECT_PROP_ENTANIM_SPEC_TFUNC:MOBILE': string | undefined;
|
|
18
|
+
'CB_EFFECT_PROP_ENTANIM_SPEC_TYPE:MOBILE': string | undefined;
|
|
19
|
+
}>;
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __assign = (this && this.__assign) || function () {
|
|
3
|
+
__assign = Object.assign || function(t) {
|
|
4
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
5
|
+
s = arguments[i];
|
|
6
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
7
|
+
t[p] = s[p];
|
|
8
|
+
}
|
|
9
|
+
return t;
|
|
10
|
+
};
|
|
11
|
+
return __assign.apply(this, arguments);
|
|
12
|
+
};
|
|
13
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
14
|
+
var constants_1 = require("./constants");
|
|
15
|
+
function parseEffectPropEntAnim(namedProps, device) {
|
|
16
|
+
var specs = namedProps.specs;
|
|
17
|
+
var animationCssProperties = AVAILABLE_SPECS.reduce(function (acc, cur) {
|
|
18
|
+
var _a;
|
|
19
|
+
var baseKey = device === 'DESKTOP' ? cur : cur + ":MOBILE";
|
|
20
|
+
var value = specs[baseKey];
|
|
21
|
+
return __assign(__assign({}, acc), (_a = {}, _a[baseKey] = value, _a));
|
|
22
|
+
}, {});
|
|
23
|
+
return { style: { animation: valueGenerator(animationCssProperties) } };
|
|
24
|
+
}
|
|
25
|
+
exports.default = parseEffectPropEntAnim;
|
|
26
|
+
function valueGenerator(valueSet) {
|
|
27
|
+
var _a;
|
|
28
|
+
var CB_EFFECT_PROP_ENTANIM_SPEC_TYPE = valueSet.CB_EFFECT_PROP_ENTANIM_SPEC_TYPE, CB_EFFECT_PROP_ENTANIM_SPEC_DURATION = valueSet.CB_EFFECT_PROP_ENTANIM_SPEC_DURATION, CB_EFFECT_PROP_ENTANIM_SPEC_TFUNC = valueSet.CB_EFFECT_PROP_ENTANIM_SPEC_TFUNC, CB_EFFECT_PROP_ENTANIM_SPEC_REPEAT = valueSet.CB_EFFECT_PROP_ENTANIM_SPEC_REPEAT;
|
|
29
|
+
var animationName = (_a = constants_1.animations.find(function (animation) { return animation.name === CB_EFFECT_PROP_ENTANIM_SPEC_TYPE; })) === null || _a === void 0 ? void 0 : _a.value;
|
|
30
|
+
return animationName + " " + CB_EFFECT_PROP_ENTANIM_SPEC_DURATION + "s " + tFuncMatcher(CB_EFFECT_PROP_ENTANIM_SPEC_TFUNC) + " 0s " + (CB_EFFECT_PROP_ENTANIM_SPEC_REPEAT === -1 ? 'infinite' : CB_EFFECT_PROP_ENTANIM_SPEC_REPEAT);
|
|
31
|
+
}
|
|
32
|
+
function tFuncMatcher(type) {
|
|
33
|
+
switch (type) {
|
|
34
|
+
case 'EASEINOUT':
|
|
35
|
+
return 'ease-in-out';
|
|
36
|
+
case 'EASEIN':
|
|
37
|
+
return 'ease-in';
|
|
38
|
+
case 'EASEOUT':
|
|
39
|
+
return 'ease-out';
|
|
40
|
+
case 'NONE':
|
|
41
|
+
return 'linear';
|
|
42
|
+
default:
|
|
43
|
+
return '';
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
var AVAILABLE_SPECS = [
|
|
47
|
+
'CB_EFFECT_PROP_ENTANIM_SPEC_DURATION',
|
|
48
|
+
'CB_EFFECT_PROP_ENTANIM_SPEC_REPEAT',
|
|
49
|
+
'CB_EFFECT_PROP_ENTANIM_SPEC_TFUNC',
|
|
50
|
+
'CB_EFFECT_PROP_ENTANIM_SPEC_TYPE'
|
|
51
|
+
];
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CB_EFFECT_PROP_KEYS = void 0;
|
|
4
|
+
var CB_EFFECT_PROP_KEYS;
|
|
5
|
+
(function (CB_EFFECT_PROP_KEYS) {
|
|
6
|
+
CB_EFFECT_PROP_KEYS["CB_EFFECT_PROP_ENTANIM"] = "CB_EFFECT_PROP_ENTANIM";
|
|
7
|
+
})(CB_EFFECT_PROP_KEYS = exports.CB_EFFECT_PROP_KEYS || (exports.CB_EFFECT_PROP_KEYS = {}));
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export { default as parseProperties } from './parseProperties';
|
|
2
|
+
export { default as parseJsonProperties } from './parseJsonProperties';
|
|
3
|
+
export { parseContentProperties } from './contentPropParsers';
|
|
4
|
+
export { parseEffectProperties } from './effectPropParsers';
|
|
5
|
+
export { parseLayoutProperties } from './layoutPropParsers';
|
|
6
|
+
export { parseStyleProperties } from './stylePropParsers';
|
|
@@ -0,0 +1,18 @@
|
|
|
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.parseStyleProperties = exports.parseLayoutProperties = exports.parseEffectProperties = exports.parseContentProperties = exports.parseJsonProperties = exports.parseProperties = void 0;
|
|
7
|
+
var parseProperties_1 = require("./parseProperties");
|
|
8
|
+
Object.defineProperty(exports, "parseProperties", { enumerable: true, get: function () { return __importDefault(parseProperties_1).default; } });
|
|
9
|
+
var parseJsonProperties_1 = require("./parseJsonProperties");
|
|
10
|
+
Object.defineProperty(exports, "parseJsonProperties", { enumerable: true, get: function () { return __importDefault(parseJsonProperties_1).default; } });
|
|
11
|
+
var contentPropParsers_1 = require("./contentPropParsers");
|
|
12
|
+
Object.defineProperty(exports, "parseContentProperties", { enumerable: true, get: function () { return contentPropParsers_1.parseContentProperties; } });
|
|
13
|
+
var effectPropParsers_1 = require("./effectPropParsers");
|
|
14
|
+
Object.defineProperty(exports, "parseEffectProperties", { enumerable: true, get: function () { return effectPropParsers_1.parseEffectProperties; } });
|
|
15
|
+
var layoutPropParsers_1 = require("./layoutPropParsers");
|
|
16
|
+
Object.defineProperty(exports, "parseLayoutProperties", { enumerable: true, get: function () { return layoutPropParsers_1.parseLayoutProperties; } });
|
|
17
|
+
var stylePropParsers_1 = require("./stylePropParsers");
|
|
18
|
+
Object.defineProperty(exports, "parseStyleProperties", { enumerable: true, get: function () { return stylePropParsers_1.parseStyleProperties; } });
|
|
@@ -0,0 +1,19 @@
|
|
|
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.parseLayoutProperties = void 0;
|
|
7
|
+
var parseLayoutPropArrange_1 = __importDefault(require("./parseLayoutPropArrange"));
|
|
8
|
+
var parseLayoutPropPadding_1 = __importDefault(require("./parseLayoutPropPadding"));
|
|
9
|
+
var types_1 = require("./types");
|
|
10
|
+
function parseLayoutProperties(namedProps, device) {
|
|
11
|
+
var name = namedProps.name;
|
|
12
|
+
switch (name) {
|
|
13
|
+
case types_1.CB_LAYOUT_PROP_KEYS.CB_LAYOUT_PROP_ARRANGE:
|
|
14
|
+
return (0, parseLayoutPropArrange_1.default)(namedProps, device);
|
|
15
|
+
case types_1.CB_LAYOUT_PROP_KEYS.CB_LAYOUT_PROP_PADDING:
|
|
16
|
+
return (0, parseLayoutPropPadding_1.default)(namedProps, device);
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
exports.parseLayoutProperties = parseLayoutProperties;
|