pds-dev-kit-web 2.1.14 → 2.1.16
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/dist/src/common/styles/colorSet/PaletteColor_Dark.json +1 -1
- package/dist/src/common/styles/colorSet/index.d.ts +2 -2
- package/dist/src/common/styles/colorSet/index.js +2 -2
- package/dist/src/desktop/components/DesktopHeaderBar/DesktopHeaderBar.d.ts +2 -1
- package/dist/src/desktop/components/DesktopHeaderBar/DesktopHeaderBar.js +38 -10
- package/dist/src/desktop/components/DesktopTabBar/DesktopTabBar.d.ts +1 -1
- package/dist/src/desktop/components/DesktopTabBar/DesktopTabBar.js +58 -26
- package/dist/src/desktop/layout/LayoutWF/ContainersBox/ContainersBox.js +1 -1
- package/dist/src/sub/DynamicLayout/DynamicLayout.js +1 -0
- 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 +6 -0
- package/dist/src/sub/DynamicLayout/components/ComponentBlocks/RichText/RichText.js +24 -0
- package/dist/src/sub/DynamicLayout/components/ComponentBlocks/RichText/index.d.ts +2 -0
- package/dist/src/sub/DynamicLayout/components/ComponentBlocks/RichText/index.js +8 -0
- 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 +70 -0
- package/dist/src/sub/DynamicLayout/components/ComponentBlocks/TwitterTimeline/TwitterTimeline.js +52 -0
- 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/TwitterTimeline/index.d.ts +2 -0
- package/dist/src/sub/DynamicLayout/components/ComponentBlocks/TwitterTimeline/index.js +8 -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 +4 -0
- package/dist/src/sub/DynamicLayout/components/ComponentBlocks/index.js +9 -0
- package/dist/src/sub/DynamicLayout/components/EditModeSectionMatcher/EditModeSectionMatcher.js +3 -0
- package/dist/src/sub/DynamicLayout/components/Section/CustomSection.d.ts +11 -0
- package/dist/src/sub/DynamicLayout/components/Section/CustomSection.js +46 -0
- package/dist/src/sub/DynamicLayout/components/Section/ErrorBoundary/ErrorBoundary.d.ts +15 -0
- package/dist/src/sub/DynamicLayout/components/Section/ErrorBoundary/ErrorBoundary.js +62 -0
- package/dist/src/sub/DynamicLayout/components/Section/ErrorBoundary/index.d.ts +1 -0
- package/dist/src/sub/DynamicLayout/components/Section/ErrorBoundary/index.js +8 -0
- package/dist/src/sub/DynamicLayout/components/Section/Section.d.ts +6 -3
- package/dist/src/sub/DynamicLayout/components/Section/Section.js +4 -2
- package/dist/src/sub/DynamicLayout/components/Section/components/CustomSectionBackground.d.ts +5 -0
- package/dist/src/sub/DynamicLayout/components/Section/components/CustomSectionBackground.js +72 -0
- package/dist/src/sub/DynamicLayout/components/Section/components/CustomSectionBackgroundMedia.d.ts +14 -0
- package/dist/src/sub/DynamicLayout/components/Section/components/CustomSectionBackgroundMedia.js +119 -0
- package/dist/src/sub/DynamicLayout/components/Section/index.d.ts +1 -0
- package/dist/src/sub/DynamicLayout/components/Section/index.js +3 -1
- package/dist/src/sub/DynamicLayout/components/Section/util/index.d.ts +1 -0
- package/dist/src/sub/DynamicLayout/components/Section/util/index.js +8 -0
- package/dist/src/sub/DynamicLayout/components/Section/util/parseSectionBackgroundMediaData.d.ts +6 -0
- package/dist/src/sub/DynamicLayout/components/Section/util/parseSectionBackgroundMediaData.js +38 -0
- package/dist/src/sub/DynamicLayout/components/SectionMatcher/SectionMatcher.js +4 -1
- package/dist/src/sub/DynamicLayout/components/YouTubeIframe/YouTubeIframe.d.ts +6 -1
- package/dist/src/sub/DynamicLayout/components/YouTubeIframe/YouTubeIframe.js +36 -8
- package/dist/src/sub/DynamicLayout/components/index.d.ts +1 -1
- package/dist/src/sub/DynamicLayout/components/index.js +2 -1
- package/dist/src/sub/DynamicLayout/mock_customSection.d.ts +2 -0
- package/dist/src/sub/DynamicLayout/mock_customSection.js +837 -0
- package/dist/src/sub/DynamicLayout/mock_samplePage.js +2082 -9
- package/dist/src/sub/DynamicLayout/nakedMocks.json +847 -0
- package/dist/src/sub/DynamicLayout/pagesPreviewMock.d.ts +379 -0
- package/dist/src/sub/DynamicLayout/pagesPreviewMock.js +386 -0
- package/dist/src/sub/DynamicLayout/sectionActionTypes.d.ts +29 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/CustomSection.d.ts +5 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/CustomSection.js +193 -0
- 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 +9 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/ComponentBlockMatcher.js +50 -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 +80 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/Button/btnTypes.d.ts +76 -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/Divider.d.ts +5 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/Divider/Divider.js +71 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/Image/Image.d.ts +5 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/Image/Image.js +127 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/Image/types.d.ts +12 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/Image/types.js +2 -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 +66 -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/Text.d.ts +5 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/Text/Text.js +65 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/Text/types.d.ts +38 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/Text/types.js +2 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/Twitter/Twitter.d.ts +5 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/Twitter/Twitter.js +50 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/Twitter/types.d.ts +6 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/Twitter/types.js +2 -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 +73 -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_AnimationObserverBox.d.ts +6 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/components/S_CB_AnimationObserverBox.js +27 -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/components/ComponentBlock/componentBlocks/components/S_CB_Box.js +46 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/components/S_CB_BoxWithShadow.d.ts +11 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/components/S_CB_BoxWithShadow.js +102 -0
- 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 +12 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/hooks/useCLINK.js +35 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/types.d.ts +21 -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/hooks/useRefDimensions.d.ts +5 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/hooks/useRefDimensions.js +19 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/index.d.ts +1 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/index.js +8 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/newUtils/colorUtil.d.ts +31 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/newUtils/colorUtil.js +71 -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 +40 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/newUtils/textUtil.d.ts +18 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/newUtils/textUtil.js +200 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/types.d.ts +50 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/types.js +13 -0
- 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 +8 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/util/index.js +22 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/util/isNullOrUndefined.d.ts +2 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/util/isNullOrUndefined.js +9 -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 +23 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/util/layoutPropParsers/parseLayoutPropPadding.js +32 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/util/layoutPropParsers/parseSectionPadding.d.ts +23 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/util/layoutPropParsers/parseSectionPadding.js +26 -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/parseCustomSectionPlacement.d.ts +20 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/util/parseCustomSectionPlacement.js +24 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/util/parseJsonProperties.d.ts +3 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/util/parseJsonProperties.js +67 -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 +92 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/util/stylePropParsers/parseStylePropBgImage.d.ts +23 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/util/stylePropParsers/parseStylePropBgImage.js +94 -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 +95 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/util/stylePropParsers/parseStylePropBorder.d.ts +39 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/util/stylePropParsers/parseStylePropBorder.js +85 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/util/stylePropParsers/parseStylePropDivider.d.ts +27 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/util/stylePropParsers/parseStylePropDivider.js +77 -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 +94 -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 +47 -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 +58 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/util/stylePropParsers/parseStylePropTextSpec.d.ts +8 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/util/stylePropParsers/parseStylePropTextSpec.js +91 -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 +77 -5
- package/package.json +2 -1
- package/release-note.md +6 -19
|
@@ -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[cur] = 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,8 @@
|
|
|
1
|
+
export { parseCustomSectionPlacement } from './parseCustomSectionPlacement';
|
|
2
|
+
export { parsePlacement } from './parsePlacement';
|
|
3
|
+
export { default as parseProperties } from './parseProperties';
|
|
4
|
+
export { default as parseJsonProperties } from './parseJsonProperties';
|
|
5
|
+
export { parseContentProperties } from './contentPropParsers';
|
|
6
|
+
export { parseEffectProperties } from './effectPropParsers';
|
|
7
|
+
export { parseLayoutProperties } from './layoutPropParsers';
|
|
8
|
+
export { parseStyleProperties } from './stylePropParsers';
|
|
@@ -0,0 +1,22 @@
|
|
|
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 = exports.parsePlacement = exports.parseCustomSectionPlacement = void 0;
|
|
7
|
+
var parseCustomSectionPlacement_1 = require("./parseCustomSectionPlacement");
|
|
8
|
+
Object.defineProperty(exports, "parseCustomSectionPlacement", { enumerable: true, get: function () { return parseCustomSectionPlacement_1.parseCustomSectionPlacement; } });
|
|
9
|
+
var parsePlacement_1 = require("./parsePlacement");
|
|
10
|
+
Object.defineProperty(exports, "parsePlacement", { enumerable: true, get: function () { return parsePlacement_1.parsePlacement; } });
|
|
11
|
+
var parseProperties_1 = require("./parseProperties");
|
|
12
|
+
Object.defineProperty(exports, "parseProperties", { enumerable: true, get: function () { return __importDefault(parseProperties_1).default; } });
|
|
13
|
+
var parseJsonProperties_1 = require("./parseJsonProperties");
|
|
14
|
+
Object.defineProperty(exports, "parseJsonProperties", { enumerable: true, get: function () { return __importDefault(parseJsonProperties_1).default; } });
|
|
15
|
+
var contentPropParsers_1 = require("./contentPropParsers");
|
|
16
|
+
Object.defineProperty(exports, "parseContentProperties", { enumerable: true, get: function () { return contentPropParsers_1.parseContentProperties; } });
|
|
17
|
+
var effectPropParsers_1 = require("./effectPropParsers");
|
|
18
|
+
Object.defineProperty(exports, "parseEffectProperties", { enumerable: true, get: function () { return effectPropParsers_1.parseEffectProperties; } });
|
|
19
|
+
var layoutPropParsers_1 = require("./layoutPropParsers");
|
|
20
|
+
Object.defineProperty(exports, "parseLayoutProperties", { enumerable: true, get: function () { return layoutPropParsers_1.parseLayoutProperties; } });
|
|
21
|
+
var stylePropParsers_1 = require("./stylePropParsers");
|
|
22
|
+
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;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import type { Device, StyleType } from '../types';
|
|
2
|
+
import type { CB_LAYOUT_PROP_KEYS } from './types';
|
|
3
|
+
export declare enum CB_LAYOUT_PROP_ARRANGE_BASE_KEYS {
|
|
4
|
+
CB_LAYOUT_PROP_ARRANGE_SPEC_VERTICAL = "CB_LAYOUT_PROP_ARRANGE_SPEC_VERTICAL",
|
|
5
|
+
CB_LAYOUT_PROP_ARRANGE_SPEC_HORIZONTAL = "CB_LAYOUT_PROP_ARRANGE_SPEC_HORIZONTAL"
|
|
6
|
+
}
|
|
7
|
+
export declare enum CB_LAYOUT_PROP_ARRANGE_EXTRA_KEYS {
|
|
8
|
+
CB_LAYOUT_PROP_ARRANGE_SPEC_VERTICAL_MOBILE = "CB_LAYOUT_PROP_ARRANGE_SPEC_VERTICAL:MOBILE",
|
|
9
|
+
CB_LAYOUT_PROP_ARRANGE_SPEC_HORIZONTAL_MOBILE = "CB_LAYOUT_PROP_ARRANGE_SPEC_HORIZONTAL:MOBILE"
|
|
10
|
+
}
|
|
11
|
+
export declare type NAMED_CB_LAYOUT_ARRANGE_PROPS = {
|
|
12
|
+
name: CB_LAYOUT_PROP_KEYS.CB_LAYOUT_PROP_ARRANGE;
|
|
13
|
+
specs: CB_LAYOUT_PROP_ARRANGE_SPECS;
|
|
14
|
+
};
|
|
15
|
+
export default function parseLayoutPropArrange(namedProps: NAMED_CB_LAYOUT_ARRANGE_PROPS, device: Device): StyleType;
|
|
16
|
+
declare type CB_LAYOUT_PROP_ARRANGE_ENUM_VERTICAL = 'TOP' | 'MIDDLE' | 'BOTTOM';
|
|
17
|
+
declare type CB_LAYOUT_PROP_ARRANGE_ENUM_HORIZONTAL = 'START' | 'CENTER' | 'END';
|
|
18
|
+
export declare type CB_LAYOUT_PROP_ARRANGE_SPECS = {
|
|
19
|
+
[CB_LAYOUT_PROP_ARRANGE_BASE_KEYS.CB_LAYOUT_PROP_ARRANGE_SPEC_VERTICAL]: CB_LAYOUT_PROP_ARRANGE_ENUM_VERTICAL;
|
|
20
|
+
[CB_LAYOUT_PROP_ARRANGE_BASE_KEYS.CB_LAYOUT_PROP_ARRANGE_SPEC_HORIZONTAL]: CB_LAYOUT_PROP_ARRANGE_ENUM_HORIZONTAL;
|
|
21
|
+
[CB_LAYOUT_PROP_ARRANGE_EXTRA_KEYS.CB_LAYOUT_PROP_ARRANGE_SPEC_VERTICAL_MOBILE]?: CB_LAYOUT_PROP_ARRANGE_ENUM_VERTICAL;
|
|
22
|
+
[CB_LAYOUT_PROP_ARRANGE_EXTRA_KEYS.CB_LAYOUT_PROP_ARRANGE_SPEC_HORIZONTAL_MOBILE]?: CB_LAYOUT_PROP_ARRANGE_ENUM_HORIZONTAL;
|
|
23
|
+
};
|
|
24
|
+
export {};
|
|
@@ -0,0 +1,80 @@
|
|
|
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.CB_LAYOUT_PROP_ARRANGE_EXTRA_KEYS = exports.CB_LAYOUT_PROP_ARRANGE_BASE_KEYS = void 0;
|
|
15
|
+
var CB_LAYOUT_PROP_ARRANGE_BASE_KEYS;
|
|
16
|
+
(function (CB_LAYOUT_PROP_ARRANGE_BASE_KEYS) {
|
|
17
|
+
CB_LAYOUT_PROP_ARRANGE_BASE_KEYS["CB_LAYOUT_PROP_ARRANGE_SPEC_VERTICAL"] = "CB_LAYOUT_PROP_ARRANGE_SPEC_VERTICAL";
|
|
18
|
+
CB_LAYOUT_PROP_ARRANGE_BASE_KEYS["CB_LAYOUT_PROP_ARRANGE_SPEC_HORIZONTAL"] = "CB_LAYOUT_PROP_ARRANGE_SPEC_HORIZONTAL";
|
|
19
|
+
})(CB_LAYOUT_PROP_ARRANGE_BASE_KEYS = exports.CB_LAYOUT_PROP_ARRANGE_BASE_KEYS || (exports.CB_LAYOUT_PROP_ARRANGE_BASE_KEYS = {}));
|
|
20
|
+
var CB_LAYOUT_PROP_ARRANGE_EXTRA_KEYS;
|
|
21
|
+
(function (CB_LAYOUT_PROP_ARRANGE_EXTRA_KEYS) {
|
|
22
|
+
CB_LAYOUT_PROP_ARRANGE_EXTRA_KEYS["CB_LAYOUT_PROP_ARRANGE_SPEC_VERTICAL_MOBILE"] = "CB_LAYOUT_PROP_ARRANGE_SPEC_VERTICAL:MOBILE";
|
|
23
|
+
CB_LAYOUT_PROP_ARRANGE_EXTRA_KEYS["CB_LAYOUT_PROP_ARRANGE_SPEC_HORIZONTAL_MOBILE"] = "CB_LAYOUT_PROP_ARRANGE_SPEC_HORIZONTAL:MOBILE";
|
|
24
|
+
})(CB_LAYOUT_PROP_ARRANGE_EXTRA_KEYS = exports.CB_LAYOUT_PROP_ARRANGE_EXTRA_KEYS || (exports.CB_LAYOUT_PROP_ARRANGE_EXTRA_KEYS = {}));
|
|
25
|
+
function parseLayoutPropArrange(namedProps, device) {
|
|
26
|
+
var specs = namedProps.specs;
|
|
27
|
+
var AVAILABLE_SPECS = Object.values(CB_LAYOUT_PROP_ARRANGE_BASE_KEYS);
|
|
28
|
+
return AVAILABLE_SPECS.reduce(function (acc, cur) {
|
|
29
|
+
var _a;
|
|
30
|
+
var currentKey = device === 'DESKTOP' ? cur : cur + ":MOBILE" || cur;
|
|
31
|
+
var value = (_a = specs[currentKey]) !== null && _a !== void 0 ? _a : specs[cur];
|
|
32
|
+
var CSSProperties = getCssProperties(value);
|
|
33
|
+
return {
|
|
34
|
+
style: __assign(__assign({}, acc.style), CSSProperties)
|
|
35
|
+
};
|
|
36
|
+
}, {
|
|
37
|
+
style: {}
|
|
38
|
+
});
|
|
39
|
+
}
|
|
40
|
+
exports.default = parseLayoutPropArrange;
|
|
41
|
+
function getCssProperties(value) {
|
|
42
|
+
switch (value) {
|
|
43
|
+
case 'TOP':
|
|
44
|
+
return {
|
|
45
|
+
display: 'flex',
|
|
46
|
+
flexDirection: 'column',
|
|
47
|
+
justifyContent: 'flex-start'
|
|
48
|
+
};
|
|
49
|
+
case 'MIDDLE':
|
|
50
|
+
return {
|
|
51
|
+
display: 'flex',
|
|
52
|
+
flexDirection: 'column',
|
|
53
|
+
justifyContent: 'center'
|
|
54
|
+
};
|
|
55
|
+
case 'BOTTOM':
|
|
56
|
+
return {
|
|
57
|
+
display: 'flex',
|
|
58
|
+
flexDirection: 'column',
|
|
59
|
+
justifyContent: 'flex-end'
|
|
60
|
+
};
|
|
61
|
+
case 'START':
|
|
62
|
+
return {
|
|
63
|
+
display: 'flex',
|
|
64
|
+
flexDirection: 'column',
|
|
65
|
+
alignItems: 'flex-start'
|
|
66
|
+
};
|
|
67
|
+
case 'CENTER':
|
|
68
|
+
return {
|
|
69
|
+
display: 'flex',
|
|
70
|
+
flexDirection: 'column',
|
|
71
|
+
alignItems: 'center'
|
|
72
|
+
};
|
|
73
|
+
case 'END':
|
|
74
|
+
return {
|
|
75
|
+
display: 'flex',
|
|
76
|
+
flexDirection: 'column',
|
|
77
|
+
alignItems: 'flex-end'
|
|
78
|
+
};
|
|
79
|
+
}
|
|
80
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import type { Device, StyleType } from '../types';
|
|
2
|
+
import type { CB_LAYOUT_PROP_KEYS } from './types';
|
|
3
|
+
export declare type NAMED_CB_LAYOUT_PADDING_PROPS = {
|
|
4
|
+
name: CB_LAYOUT_PROP_KEYS.CB_LAYOUT_PROP_PADDING;
|
|
5
|
+
specs: CB_LAYOUT_PROP_PADDING_SPECS;
|
|
6
|
+
};
|
|
7
|
+
export default function parseLayoutPropPadding(namedProps: NAMED_CB_LAYOUT_PADDING_PROPS, device: Device): StyleType;
|
|
8
|
+
declare type CB_LAYOUT_PROP_PADDING_SPEC_PADDING_OBJ = {
|
|
9
|
+
top: number;
|
|
10
|
+
left: number;
|
|
11
|
+
right: number;
|
|
12
|
+
bottom: number;
|
|
13
|
+
};
|
|
14
|
+
export declare type CB_STYLE_PROP_PADDING_BASE = {
|
|
15
|
+
CB_LAYOUT_PROP_PADDING_SPEC_PADDING: CB_LAYOUT_PROP_PADDING_SPEC_PADDING_OBJ;
|
|
16
|
+
};
|
|
17
|
+
export declare type CB_LAYOUT_PROP_PADDING_SPECS = CB_STYLE_PROP_PADDING_BASE & {
|
|
18
|
+
CB_LAYOUT_PROP_PADDING_SPEC_PADDING: CB_LAYOUT_PROP_PADDING_SPEC_PADDING_OBJ;
|
|
19
|
+
'CB_LAYOUT_PROP_PADDING_SPEC_PADDING:MOBILE': CB_LAYOUT_PROP_PADDING_SPEC_PADDING_OBJ | undefined;
|
|
20
|
+
CB_LAYOUT_PROP_PADDING_SPEC_FIX: boolean;
|
|
21
|
+
'CB_LAYOUT_PROP_PADDING_SPEC_FIX:MOBILE': boolean | undefined;
|
|
22
|
+
};
|
|
23
|
+
export {};
|
|
@@ -0,0 +1,32 @@
|
|
|
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 parseLayoutPropPadding(namedProps, device) {
|
|
15
|
+
var specs = namedProps.specs;
|
|
16
|
+
return AVAILABLE_SPECS.reduce(function (acc, cur) {
|
|
17
|
+
var _a;
|
|
18
|
+
var baseKey = device === 'DESKTOP' ? cur : cur + ":MOBILE";
|
|
19
|
+
var value = (_a = specs[baseKey]) !== null && _a !== void 0 ? _a : specs[cur];
|
|
20
|
+
var top = value.top, left = value.left, right = value.right, bottom = value.bottom;
|
|
21
|
+
return {
|
|
22
|
+
style: __assign(__assign({}, acc.style), { paddingTop: top + "px", paddingLeft: left + "px", paddingRight: right + "px", paddingBottom: bottom + "px" })
|
|
23
|
+
};
|
|
24
|
+
}, {
|
|
25
|
+
style: {}
|
|
26
|
+
});
|
|
27
|
+
}
|
|
28
|
+
exports.default = parseLayoutPropPadding;
|
|
29
|
+
var AVAILABLE_SPECS = [
|
|
30
|
+
'CB_LAYOUT_PROP_PADDING_SPEC_PADDING'
|
|
31
|
+
// 'CB_LAYOUT_PROP_PADDING_SPEC_FIX'
|
|
32
|
+
];
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import type { Device } from '../types';
|
|
2
|
+
declare type Padding = {
|
|
3
|
+
top: number;
|
|
4
|
+
left: number;
|
|
5
|
+
right: number;
|
|
6
|
+
bottom: number;
|
|
7
|
+
};
|
|
8
|
+
export declare type SectionPadding = {
|
|
9
|
+
CB_LAYOUT_PROP_PADDING_SPEC_PADDING: Padding;
|
|
10
|
+
'CB_LAYOUT_PROP_PADDING_SPEC_PADDING:MOBILE': null | Padding;
|
|
11
|
+
} | undefined | null;
|
|
12
|
+
declare function parseSectionPadding(prop: SectionPadding, device: Device): {
|
|
13
|
+
top?: undefined;
|
|
14
|
+
left?: undefined;
|
|
15
|
+
bottom?: undefined;
|
|
16
|
+
right?: undefined;
|
|
17
|
+
} | {
|
|
18
|
+
top: number;
|
|
19
|
+
left: number;
|
|
20
|
+
bottom: number;
|
|
21
|
+
right: number;
|
|
22
|
+
};
|
|
23
|
+
export default parseSectionPadding;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
function parseSectionPadding(prop, device) {
|
|
4
|
+
if (!prop) {
|
|
5
|
+
return {};
|
|
6
|
+
}
|
|
7
|
+
if (device === 'MOBILE') {
|
|
8
|
+
var padding_1 = prop['CB_LAYOUT_PROP_PADDING_SPEC_PADDING:MOBILE'];
|
|
9
|
+
if (padding_1) {
|
|
10
|
+
return {
|
|
11
|
+
top: padding_1.top,
|
|
12
|
+
left: padding_1.left,
|
|
13
|
+
bottom: padding_1.bottom,
|
|
14
|
+
right: padding_1.right
|
|
15
|
+
};
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
var padding = prop.CB_LAYOUT_PROP_PADDING_SPEC_PADDING;
|
|
19
|
+
return {
|
|
20
|
+
top: padding.top,
|
|
21
|
+
left: padding.left,
|
|
22
|
+
bottom: padding.bottom,
|
|
23
|
+
right: padding.right
|
|
24
|
+
};
|
|
25
|
+
}
|
|
26
|
+
exports.default = parseSectionPadding;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { NAMED_CB_LAYOUT_ARRANGE_PROPS } from './parseLayoutPropArrange';
|
|
2
|
+
import type { NAMED_CB_LAYOUT_PADDING_PROPS } from './parseLayoutPropPadding';
|
|
3
|
+
export declare enum CB_LAYOUT_PROP_KEYS {
|
|
4
|
+
CB_LAYOUT_PROP_PADDING = "CB_LAYOUT_PROP_PADDING",
|
|
5
|
+
CB_LAYOUT_PROP_ARRANGE = "CB_LAYOUT_PROP_ARRANGE"
|
|
6
|
+
}
|
|
7
|
+
export declare type NamedLayoutPropType = NAMED_CB_LAYOUT_ARRANGE_PROPS | NAMED_CB_LAYOUT_PADDING_PROPS;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CB_LAYOUT_PROP_KEYS = void 0;
|
|
4
|
+
var CB_LAYOUT_PROP_KEYS;
|
|
5
|
+
(function (CB_LAYOUT_PROP_KEYS) {
|
|
6
|
+
CB_LAYOUT_PROP_KEYS["CB_LAYOUT_PROP_PADDING"] = "CB_LAYOUT_PROP_PADDING";
|
|
7
|
+
CB_LAYOUT_PROP_KEYS["CB_LAYOUT_PROP_ARRANGE"] = "CB_LAYOUT_PROP_ARRANGE";
|
|
8
|
+
})(CB_LAYOUT_PROP_KEYS = exports.CB_LAYOUT_PROP_KEYS || (exports.CB_LAYOUT_PROP_KEYS = {}));
|
package/dist/src/sub/DynamicLayout/sections/CustomSection/util/parseCustomSectionPlacement.d.ts
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
declare type Props = {
|
|
2
|
+
isMobile: boolean;
|
|
3
|
+
customSectionProps: {
|
|
4
|
+
CB_PLACEMENT_PROP_SECTION_SPEC_FULLWIDTH: boolean;
|
|
5
|
+
'CB_PLACEMENT_PROP_SECTION_SPEC_FULLWIDTH:MOBILE': boolean | null | undefined;
|
|
6
|
+
CB_PLACEMENT_PROP_SECTION_SPEC_MINHEIGHT: number;
|
|
7
|
+
'CB_PLACEMENT_PROP_SECTION_SPEC_MINHEIGHT:MOBILE': number | null | undefined;
|
|
8
|
+
CB_PLACEMENT_PROP_SECTION_SPEC_ROWS: number;
|
|
9
|
+
'CB_PLACEMENT_PROP_SECTION_SPEC_ROWS:MOBILE': number | null | undefined;
|
|
10
|
+
CB_PLACEMENT_PROP_SECTION_SPEC_WIDTH: number;
|
|
11
|
+
'CB_PLACEMENT_PROP_SECTION_SPEC_WIDTH:MOBILE': number | null | undefined;
|
|
12
|
+
};
|
|
13
|
+
};
|
|
14
|
+
export declare function parseCustomSectionPlacement({ isMobile, customSectionProps }: Props): {
|
|
15
|
+
minHeight: number;
|
|
16
|
+
width: number;
|
|
17
|
+
rows: number;
|
|
18
|
+
isFullWidth: boolean;
|
|
19
|
+
};
|
|
20
|
+
export default parseCustomSectionPlacement;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.parseCustomSectionPlacement = void 0;
|
|
4
|
+
function parseCustomSectionPlacement(_a) {
|
|
5
|
+
var _b, _c, _d, _e;
|
|
6
|
+
var isMobile = _a.isMobile, customSectionProps = _a.customSectionProps;
|
|
7
|
+
var CB_PLACEMENT_PROP_SECTION_SPEC_FULLWIDTH = customSectionProps.CB_PLACEMENT_PROP_SECTION_SPEC_FULLWIDTH, CB_PLACEMENT_PROP_SECTION_SPEC_MINHEIGHT = customSectionProps.CB_PLACEMENT_PROP_SECTION_SPEC_MINHEIGHT, CB_PLACEMENT_PROP_SECTION_SPEC_ROWS = customSectionProps.CB_PLACEMENT_PROP_SECTION_SPEC_ROWS, CB_PLACEMENT_PROP_SECTION_SPEC_WIDTH = customSectionProps.CB_PLACEMENT_PROP_SECTION_SPEC_WIDTH;
|
|
8
|
+
if (isMobile) {
|
|
9
|
+
return {
|
|
10
|
+
minHeight: (_b = customSectionProps['CB_PLACEMENT_PROP_SECTION_SPEC_MINHEIGHT:MOBILE']) !== null && _b !== void 0 ? _b : CB_PLACEMENT_PROP_SECTION_SPEC_MINHEIGHT,
|
|
11
|
+
width: (_c = customSectionProps['CB_PLACEMENT_PROP_SECTION_SPEC_WIDTH:MOBILE']) !== null && _c !== void 0 ? _c : CB_PLACEMENT_PROP_SECTION_SPEC_WIDTH,
|
|
12
|
+
rows: (_d = customSectionProps['CB_PLACEMENT_PROP_SECTION_SPEC_ROWS:MOBILE']) !== null && _d !== void 0 ? _d : CB_PLACEMENT_PROP_SECTION_SPEC_ROWS,
|
|
13
|
+
isFullWidth: (_e = customSectionProps['CB_PLACEMENT_PROP_SECTION_SPEC_FULLWIDTH:MOBILE']) !== null && _e !== void 0 ? _e : CB_PLACEMENT_PROP_SECTION_SPEC_FULLWIDTH
|
|
14
|
+
};
|
|
15
|
+
}
|
|
16
|
+
return {
|
|
17
|
+
minHeight: CB_PLACEMENT_PROP_SECTION_SPEC_MINHEIGHT,
|
|
18
|
+
width: CB_PLACEMENT_PROP_SECTION_SPEC_WIDTH,
|
|
19
|
+
rows: CB_PLACEMENT_PROP_SECTION_SPEC_ROWS,
|
|
20
|
+
isFullWidth: CB_PLACEMENT_PROP_SECTION_SPEC_FULLWIDTH
|
|
21
|
+
};
|
|
22
|
+
}
|
|
23
|
+
exports.parseCustomSectionPlacement = parseCustomSectionPlacement;
|
|
24
|
+
exports.default = parseCustomSectionPlacement;
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import type { Device, JsonPropertiesParserResult } from './types';
|
|
2
|
+
import type { ISectionJsonProperties } from '../../../../DynamicLayout/types';
|
|
3
|
+
export default function parseJsonProperties(properties: ISectionJsonProperties | undefined, device: Device): JsonPropertiesParserResult;
|
|
@@ -0,0 +1,67 @@
|
|
|
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 contentPropParsers_1 = require("./contentPropParsers");
|
|
15
|
+
var types_1 = require("./contentPropParsers/types");
|
|
16
|
+
var effectPropParsers_1 = require("./effectPropParsers");
|
|
17
|
+
var types_2 = require("./effectPropParsers/types");
|
|
18
|
+
var layoutPropParsers_1 = require("./layoutPropParsers");
|
|
19
|
+
var types_3 = require("./layoutPropParsers/types");
|
|
20
|
+
var stylePropParsers_1 = require("./stylePropParsers");
|
|
21
|
+
var types_4 = require("./stylePropParsers/types");
|
|
22
|
+
function parseJsonProperties(properties, device) {
|
|
23
|
+
if (!properties) {
|
|
24
|
+
return {
|
|
25
|
+
style: {},
|
|
26
|
+
overlayStyle: {},
|
|
27
|
+
layout: {},
|
|
28
|
+
effect: {},
|
|
29
|
+
content: {}
|
|
30
|
+
};
|
|
31
|
+
}
|
|
32
|
+
return Object.entries(properties).reduce(function (acc, cur) {
|
|
33
|
+
var specKey = cur[0], specs = cur[1];
|
|
34
|
+
var normalizedProperty = {
|
|
35
|
+
name: specKey,
|
|
36
|
+
specs: specs
|
|
37
|
+
};
|
|
38
|
+
if (normalizedProperty.name in types_4.CB_STYLE_PROP_KEYS) {
|
|
39
|
+
var _a = (0, stylePropParsers_1.parseStyleProperties)(normalizedProperty, device), style = _a.style, overlayStyle = _a.overlayStyle;
|
|
40
|
+
// console.log(normalizedProperty.name, ' >>>', overlayStyle, overlayHoverStyle);
|
|
41
|
+
return __assign(__assign({}, acc), { style: __assign(__assign({}, acc.style), style), overlayStyle: __assign(__assign({}, acc.overlayStyle), overlayStyle) });
|
|
42
|
+
}
|
|
43
|
+
if (normalizedProperty.name in types_3.CB_LAYOUT_PROP_KEYS) {
|
|
44
|
+
var style = (0, layoutPropParsers_1.parseLayoutProperties)(normalizedProperty, device).style;
|
|
45
|
+
// console.log(normalizedProperty.name, ' >>>', style);
|
|
46
|
+
return __assign(__assign({}, acc), { layout: __assign(__assign({}, acc.layout), style) });
|
|
47
|
+
}
|
|
48
|
+
if (normalizedProperty.name in types_1.CB_CONTENT_PROP_KEYS) {
|
|
49
|
+
var style = (0, contentPropParsers_1.parseContentProperties)(normalizedProperty, device).style;
|
|
50
|
+
// console.log(normalizedProperty.name, ' >>>', style);
|
|
51
|
+
return __assign(__assign({}, acc), { style: __assign(__assign({}, acc.style), style) });
|
|
52
|
+
}
|
|
53
|
+
if (normalizedProperty.name in types_2.CB_EFFECT_PROP_KEYS) {
|
|
54
|
+
var style = (0, effectPropParsers_1.parseEffectProperties)(normalizedProperty, device).style;
|
|
55
|
+
// console.log(normalizedProperty.name, ' >>>', style);
|
|
56
|
+
return __assign(__assign({}, acc), { effect: __assign(__assign({}, acc.effect), style) });
|
|
57
|
+
}
|
|
58
|
+
return acc;
|
|
59
|
+
}, {
|
|
60
|
+
style: {},
|
|
61
|
+
overlayStyle: {},
|
|
62
|
+
layout: {},
|
|
63
|
+
effect: {},
|
|
64
|
+
content: {}
|
|
65
|
+
});
|
|
66
|
+
}
|
|
67
|
+
exports.default = parseJsonProperties;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import type { ComponentBlock } from '../types';
|
|
2
|
+
export declare function parsePlacement(components: ComponentBlock[]): {
|
|
3
|
+
sm: {
|
|
4
|
+
i: string;
|
|
5
|
+
x: number;
|
|
6
|
+
y: number;
|
|
7
|
+
w: number;
|
|
8
|
+
h: number;
|
|
9
|
+
z: number;
|
|
10
|
+
}[];
|
|
11
|
+
lg: {
|
|
12
|
+
i: string;
|
|
13
|
+
x: number;
|
|
14
|
+
y: number;
|
|
15
|
+
w: number;
|
|
16
|
+
h: number;
|
|
17
|
+
z: number;
|
|
18
|
+
}[];
|
|
19
|
+
};
|
|
20
|
+
export default parsePlacement;
|