pds-dev-kit-web 2.1.13 → 2.1.15
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/src/common/assets/icons/line/SectionContent32.js +1 -1
- package/dist/src/common/assets/icons/line/SectionContent40.js +1 -1
- package/dist/src/common/assets/icons/line/SectionContentsCarousel32.js +1 -1
- package/dist/src/common/assets/icons/line/SectionContentsCarousel40.js +1 -1
- package/dist/src/common/assets/icons/line/SectionCustom32.js +1 -1
- package/dist/src/common/assets/icons/line/SectionCustom40.js +1 -1
- package/dist/src/common/assets/icons/line/SectionDivider32.js +1 -1
- package/dist/src/common/assets/icons/line/SectionDivider40.js +1 -1
- package/dist/src/common/assets/icons/line/SectionFooter32.js +1 -1
- package/dist/src/common/assets/icons/line/SectionFooter40.js +1 -1
- package/dist/src/common/assets/icons/line/SectionIframe32.js +1 -1
- package/dist/src/common/assets/icons/line/SectionIframe40.js +1 -1
- package/dist/src/common/assets/icons/line/SectionInfoBox32.js +1 -1
- package/dist/src/common/assets/icons/line/SectionInfoBox40.js +1 -1
- package/dist/src/common/assets/icons/line/SectionIntro32.js +1 -1
- package/dist/src/common/assets/icons/line/SectionIntro40.js +1 -1
- package/dist/src/common/assets/icons/line/SectionMap32.js +1 -1
- package/dist/src/common/assets/icons/line/SectionMap40.js +1 -1
- package/dist/src/common/assets/icons/line/SectionMembership32.js +1 -1
- package/dist/src/common/assets/icons/line/SectionMembership40.js +1 -1
- package/dist/src/common/assets/icons/line/SectionPriceBox32.js +1 -1
- package/dist/src/common/assets/icons/line/SectionPriceBox40.js +1 -1
- package/dist/src/common/assets/icons/line/SectionProductsCarousel32.js +1 -1
- package/dist/src/common/assets/icons/line/SectionProductsCarousel40.js +1 -1
- package/dist/src/common/assets/icons/line/SectionReview32.js +1 -1
- package/dist/src/common/assets/icons/line/SectionReview40.js +1 -1
- package/dist/src/common/assets/icons/line/SectionSlider32.js +1 -1
- package/dist/src/common/assets/icons/line/SectionSlider40.js +1 -1
- package/dist/src/common/assets/icons/line/SectionTab32.js +1 -1
- package/dist/src/common/assets/icons/line/SectionTab40.js +1 -1
- package/dist/src/common/styles/colorSet/PaletteColor_Dark.json +1 -1
- package/dist/src/desktop/components/Slider/Slider.js +8 -1
- package/dist/src/mobile/components/Slider/Slider.js +8 -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 +35 -7
- 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 +107 -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 +3 -24
- package/webhook/node_modules/esrecurse/.babelrc +0 -3
package/dist/src/sub/DynamicLayout/components/Section/components/CustomSectionBackgroundMedia.js
ADDED
|
@@ -0,0 +1,119 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cooked, raw) {
|
|
3
|
+
if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
|
|
4
|
+
return cooked;
|
|
5
|
+
};
|
|
6
|
+
var __assign = (this && this.__assign) || function () {
|
|
7
|
+
__assign = Object.assign || function(t) {
|
|
8
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
9
|
+
s = arguments[i];
|
|
10
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
11
|
+
t[p] = s[p];
|
|
12
|
+
}
|
|
13
|
+
return t;
|
|
14
|
+
};
|
|
15
|
+
return __assign.apply(this, arguments);
|
|
16
|
+
};
|
|
17
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
18
|
+
if (k2 === undefined) k2 = k;
|
|
19
|
+
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
|
20
|
+
}) : (function(o, m, k, k2) {
|
|
21
|
+
if (k2 === undefined) k2 = k;
|
|
22
|
+
o[k2] = m[k];
|
|
23
|
+
}));
|
|
24
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
25
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
26
|
+
}) : function(o, v) {
|
|
27
|
+
o["default"] = v;
|
|
28
|
+
});
|
|
29
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
30
|
+
if (mod && mod.__esModule) return mod;
|
|
31
|
+
var result = {};
|
|
32
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
33
|
+
__setModuleDefault(result, mod);
|
|
34
|
+
return result;
|
|
35
|
+
};
|
|
36
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
37
|
+
exports.CustomSectionBackgroundMedia = void 0;
|
|
38
|
+
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
39
|
+
var react_1 = require("react");
|
|
40
|
+
var styled_components_1 = __importStar(require("styled-components"));
|
|
41
|
+
var YouTubeIframe_1 = require("../../YouTubeIframe");
|
|
42
|
+
var util_1 = require("../util");
|
|
43
|
+
function CustomSectionBackgroundMedia(_a) {
|
|
44
|
+
var specs = _a.specs, playerId = _a.playerId, mediaType = _a.mediaType, componentStyle = _a.componentStyle, device = _a.device, backgroundRef = _a.backgroundRef;
|
|
45
|
+
var _b = (0, util_1.parseSectionBackgroundMediaData)(specs, device), CB_STYLE_PROP_BGMEDIA_SPEC_YSRC = _b.CB_STYLE_PROP_BGMEDIA_SPEC_YSRC, CB_STYLE_PROP_BGMEDIA_SPEC_REPLAY = _b.CB_STYLE_PROP_BGMEDIA_SPEC_REPLAY, CB_STYLE_PROP_BGMEDIA_SPEC_STARTTIME = _b.CB_STYLE_PROP_BGMEDIA_SPEC_STARTTIME, CB_STYLE_PROP_BGMEDIA_SPEC_ENDTIME = _b.CB_STYLE_PROP_BGMEDIA_SPEC_ENDTIME, CB_STYLE_PROP_BGMEDIA_SPEC_IMAGESELECTOR = _b.CB_STYLE_PROP_BGMEDIA_SPEC_IMAGESELECTOR;
|
|
46
|
+
var _c = (0, react_1.useState)({ width: 0, height: 0 }), youtubeSize = _c[0], setYoutubeSize = _c[1];
|
|
47
|
+
var getResponsiveYoutubeSize = (0, react_1.useCallback)(function () {
|
|
48
|
+
var backgroundWrapper = backgroundRef.current;
|
|
49
|
+
if (!backgroundWrapper)
|
|
50
|
+
return { width: 0, height: 0 };
|
|
51
|
+
var backgroundSize = {
|
|
52
|
+
width: backgroundWrapper.getBoundingClientRect().width,
|
|
53
|
+
height: backgroundWrapper.getBoundingClientRect().height
|
|
54
|
+
};
|
|
55
|
+
var isHorizontal = backgroundSize.width / backgroundSize.height > 1;
|
|
56
|
+
var isOverRatio = backgroundSize.width / backgroundSize.height > 16 / 9;
|
|
57
|
+
var youtubeSize = isHorizontal && isOverRatio
|
|
58
|
+
? { width: backgroundSize.width, height: backgroundSize.width * (9 / 16) }
|
|
59
|
+
: { width: backgroundSize.height * (16 / 9), height: backgroundSize.height };
|
|
60
|
+
return youtubeSize;
|
|
61
|
+
}, [backgroundRef.current]);
|
|
62
|
+
(0, react_1.useEffect)(function () {
|
|
63
|
+
if (mediaType !== 'YOUTUBE')
|
|
64
|
+
return;
|
|
65
|
+
setYoutubeSize(getResponsiveYoutubeSize());
|
|
66
|
+
}, [getResponsiveYoutubeSize, CB_STYLE_PROP_BGMEDIA_SPEC_YSRC]);
|
|
67
|
+
(0, react_1.useEffect)(function () {
|
|
68
|
+
if (mediaType !== 'YOUTUBE')
|
|
69
|
+
return;
|
|
70
|
+
function onResize() {
|
|
71
|
+
setYoutubeSize(getResponsiveYoutubeSize());
|
|
72
|
+
}
|
|
73
|
+
var element = backgroundRef.current;
|
|
74
|
+
if (!element)
|
|
75
|
+
return;
|
|
76
|
+
var observer = new ResizeObserver(function (entries) {
|
|
77
|
+
entries.forEach(function () {
|
|
78
|
+
onResize();
|
|
79
|
+
});
|
|
80
|
+
});
|
|
81
|
+
observer.observe(element);
|
|
82
|
+
return function () {
|
|
83
|
+
observer.disconnect();
|
|
84
|
+
};
|
|
85
|
+
}, [device, specs, playerId, mediaType]);
|
|
86
|
+
if ('background' in componentStyle) {
|
|
87
|
+
delete componentStyle.background;
|
|
88
|
+
}
|
|
89
|
+
switch (mediaType) {
|
|
90
|
+
case 'IMAGE':
|
|
91
|
+
return ((0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, { children: CB_STYLE_PROP_BGMEDIA_SPEC_IMAGESELECTOR && ((0, jsx_runtime_1.jsx)(S_Image, __assign({ src: String(CB_STYLE_PROP_BGMEDIA_SPEC_IMAGESELECTOR), normalStyle: componentStyle }, { children: (0, jsx_runtime_1.jsx)("img", { src: String(CB_STYLE_PROP_BGMEDIA_SPEC_IMAGESELECTOR), style: { visibility: 'hidden', width: '100%', height: '100%' } }, void 0) }), void 0)) }, void 0));
|
|
92
|
+
case 'YOUTUBE':
|
|
93
|
+
return ((0, jsx_runtime_1.jsx)(S_YoutubeContainer, __assign({}, youtubeSize, { children: youtubeSize.height > 0 && youtubeSize.width > 0 && ((0, jsx_runtime_1.jsx)(YouTubeIframe_1.YouTubeIframe, { id: playerId, src: String(CB_STYLE_PROP_BGMEDIA_SPEC_YSRC), loopMode: CB_STYLE_PROP_BGMEDIA_SPEC_REPLAY ? 'use' : 'none', startSeconds: Number(CB_STYLE_PROP_BGMEDIA_SPEC_STARTTIME), endSeconds: Number(CB_STYLE_PROP_BGMEDIA_SPEC_ENDTIME), customHeight: youtubeSize.height, customWidth: youtubeSize.width }, void 0)) }), void 0));
|
|
94
|
+
case 'NONE':
|
|
95
|
+
default:
|
|
96
|
+
return (0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, {}, void 0);
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
exports.CustomSectionBackgroundMedia = CustomSectionBackgroundMedia;
|
|
100
|
+
var S_Image = styled_components_1.default.div(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n background-image: ", ";\n background-repeat: no-repeat;\n height: 100%;\n width: 100%;\n\n ", ";\n\n & img {\n ", ";\n }\n"], ["\n background-image: ", ";\n background-repeat: no-repeat;\n height: 100%;\n width: 100%;\n\n ", ";\n\n & img {\n ", ";\n }\n"])), function (_a) {
|
|
101
|
+
var src = _a.src;
|
|
102
|
+
return "url(" + src + ")";
|
|
103
|
+
}, function (_a) {
|
|
104
|
+
var normalStyle = _a.normalStyle;
|
|
105
|
+
var isContain = normalStyle.backgroundSize === 'contain';
|
|
106
|
+
return (0, styled_components_1.css)(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n ", "\n "], ["\n ", "\n "])), __assign(__assign({}, normalStyle), { backgroundPosition: isContain ? 'center' : normalStyle.backgroundPosition }));
|
|
107
|
+
}, function (_a) {
|
|
108
|
+
var normalStyle = _a.normalStyle;
|
|
109
|
+
var isContain = normalStyle.backgroundSize === 'contain';
|
|
110
|
+
return (0, styled_components_1.css)(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n object-fit: ", ";\n "], ["\n object-fit: ", ";\n "])), isContain ? 'contain' : 'cover');
|
|
111
|
+
});
|
|
112
|
+
var S_YoutubeContainer = styled_components_1.default.div(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\n height: ", ";\n width: ", ";\n"], ["\n height: ", ";\n width: ", ";\n"])), function (_a) {
|
|
113
|
+
var height = _a.height;
|
|
114
|
+
return height + "px";
|
|
115
|
+
}, function (_a) {
|
|
116
|
+
var width = _a.width;
|
|
117
|
+
return width + "px";
|
|
118
|
+
});
|
|
119
|
+
var templateObject_1, templateObject_2, templateObject_3, templateObject_4;
|
|
@@ -3,7 +3,9 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.sectionContext = exports.Section = void 0;
|
|
6
|
+
exports.sectionContext = exports.Section = exports.CustomSection = void 0;
|
|
7
|
+
var CustomSection_1 = require("./CustomSection");
|
|
8
|
+
Object.defineProperty(exports, "CustomSection", { enumerable: true, get: function () { return __importDefault(CustomSection_1).default; } });
|
|
7
9
|
var Section_1 = require("./Section");
|
|
8
10
|
Object.defineProperty(exports, "Section", { enumerable: true, get: function () { return __importDefault(Section_1).default; } });
|
|
9
11
|
var sectionContext_1 = require("./sectionContext");
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as parseSectionBackgroundMediaData } from './parseSectionBackgroundMediaData';
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.parseSectionBackgroundMediaData = void 0;
|
|
7
|
+
var parseSectionBackgroundMediaData_1 = require("./parseSectionBackgroundMediaData");
|
|
8
|
+
Object.defineProperty(exports, "parseSectionBackgroundMediaData", { enumerable: true, get: function () { return __importDefault(parseSectionBackgroundMediaData_1).default; } });
|
package/dist/src/sub/DynamicLayout/components/Section/util/parseSectionBackgroundMediaData.d.ts
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { Device } from '../../../../DynamicLayout/sections/CustomSection/util/types';
|
|
2
|
+
import type { CB_STYLE_PROP_BGMEDIA_SPECS } from '../../../../DynamicLayout/types';
|
|
3
|
+
declare type SpecKeys = keyof Omit<CB_STYLE_PROP_BGMEDIA_SPECS, 'CB_STYLE_PROP_BGMEDIA_SPEC_MPLAY'>;
|
|
4
|
+
declare type ValueSetType = Partial<Record<SpecKeys, string | number | boolean | undefined>>;
|
|
5
|
+
export default function UseCustomSectionBackgroundMediaData(specs: CB_STYLE_PROP_BGMEDIA_SPECS, device: Device): ValueSetType;
|
|
6
|
+
export {};
|
|
@@ -0,0 +1,38 @@
|
|
|
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
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
14
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
var isNullOrUndefined_1 = __importDefault(require("../../../../DynamicLayout/sections/CustomSection/util/isNullOrUndefined"));
|
|
18
|
+
var AVAILABLE_SPECS = [
|
|
19
|
+
'CB_STYLE_PROP_BGMEDIA_SPEC_YSRC',
|
|
20
|
+
'CB_STYLE_PROP_BGMEDIA_SPEC_TYPE',
|
|
21
|
+
'CB_STYLE_PROP_BGMEDIA_SPEC_SCROLL',
|
|
22
|
+
'CB_STYLE_PROP_BGMEDIA_SPEC_STARTTIME',
|
|
23
|
+
'CB_STYLE_PROP_BGMEDIA_SPEC_REPLAY',
|
|
24
|
+
'CB_STYLE_PROP_BGMEDIA_SPEC_IMAGEFIT',
|
|
25
|
+
'CB_STYLE_PROP_BGMEDIA_SPEC_IMAGEPOSITION',
|
|
26
|
+
'CB_STYLE_PROP_BGMEDIA_SPEC_IMAGESELECTOR',
|
|
27
|
+
'CB_STYLE_PROP_BGMEDIA_SPEC_IMAGEFIT',
|
|
28
|
+
'CB_STYLE_PROP_BGMEDIA_SPEC_ENDTIME'
|
|
29
|
+
];
|
|
30
|
+
function UseCustomSectionBackgroundMediaData(specs, device) {
|
|
31
|
+
return AVAILABLE_SPECS.reduce(function (acc, cur) {
|
|
32
|
+
var _a;
|
|
33
|
+
var baseKey = device === 'DESKTOP' ? cur : cur + ":MOBILE";
|
|
34
|
+
var value = (0, isNullOrUndefined_1.default)(specs[baseKey]) ? specs[cur] : specs[baseKey];
|
|
35
|
+
return __assign(__assign({}, acc), (_a = {}, _a[cur] = value, _a));
|
|
36
|
+
}, {});
|
|
37
|
+
}
|
|
38
|
+
exports.default = UseCustomSectionBackgroundMediaData;
|
|
@@ -26,6 +26,9 @@ var jsx_runtime_1 = require("react/jsx-runtime");
|
|
|
26
26
|
var sections_1 = require("../../sections");
|
|
27
27
|
function SectionMatcher(_a) {
|
|
28
28
|
var props = __rest(_a, []);
|
|
29
|
+
if (props.type === 'CUSTOM') {
|
|
30
|
+
return (0, jsx_runtime_1.jsx)(sections_1.CustomSection, __assign({}, props), void 0);
|
|
31
|
+
}
|
|
29
32
|
var schema = props.manifest.schema;
|
|
30
33
|
switch (schema) {
|
|
31
34
|
case 'BASE_INTRO':
|
|
@@ -43,7 +46,7 @@ function SectionMatcher(_a) {
|
|
|
43
46
|
case 'PRG_MEMBERSHIP_DISPLAY':
|
|
44
47
|
return (0, jsx_runtime_1.jsx)(sections_1.NormalTypeMembershipSection, __assign({}, props), void 0);
|
|
45
48
|
default:
|
|
46
|
-
return (0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, {}, void 0);
|
|
49
|
+
return (0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, { children: "ERROR: Schema NOT FOUND" }, void 0);
|
|
47
50
|
}
|
|
48
51
|
}
|
|
49
52
|
exports.default = SectionMatcher;
|
|
@@ -2,6 +2,11 @@
|
|
|
2
2
|
declare type Props = {
|
|
3
3
|
id: number;
|
|
4
4
|
src: string;
|
|
5
|
+
loopMode?: 'use' | 'none';
|
|
6
|
+
startSeconds?: number;
|
|
7
|
+
endSeconds?: number;
|
|
8
|
+
customHeight?: number;
|
|
9
|
+
customWidth?: number;
|
|
5
10
|
};
|
|
6
|
-
declare function YouTubeIframe({ id, src }: Props): JSX.Element;
|
|
11
|
+
declare function YouTubeIframe({ id, src, loopMode, startSeconds, endSeconds, customHeight, customWidth }: Props): JSX.Element;
|
|
7
12
|
export default YouTubeIframe;
|
|
@@ -13,16 +13,23 @@ var styled_components_1 = __importDefault(require("styled-components"));
|
|
|
13
13
|
var hooks_1 = require("../../hooks");
|
|
14
14
|
var TouTubeLinkParser_1 = __importDefault(require("../../utils/TouTubeLinkParser"));
|
|
15
15
|
function YouTubeIframe(_a) {
|
|
16
|
-
var id = _a.id, src = _a.src;
|
|
17
|
-
var
|
|
18
|
-
var
|
|
16
|
+
var id = _a.id, src = _a.src, _b = _a.loopMode, loopMode = _b === void 0 ? 'use' : _b, _c = _a.startSeconds, startSeconds = _c === void 0 ? 0 : _c, _d = _a.endSeconds, endSeconds = _d === void 0 ? 0 : _d, customHeight = _a.customHeight, customWidth = _a.customWidth;
|
|
17
|
+
var _e = (0, react_1.useState)(true), isYoutubeLoading = _e[0], setIsYoutubeLoading = _e[1];
|
|
18
|
+
var _f = (0, react_1.useState)(null), error = _f[0], setError = _f[1];
|
|
19
|
+
var _g = (0, react_1.useState)(null), timeoutId = _g[0], setTimeoutId = _g[1];
|
|
19
20
|
var playerRef = (0, react_1.useRef)();
|
|
20
21
|
var videoId = TouTubeLinkParser_1.default.getId(src);
|
|
21
22
|
var prevVideoId = (0, hooks_1.usePrevious)(videoId);
|
|
22
23
|
var PLAYER_ID = "PLAYER_" + id;
|
|
23
24
|
var YOUTUBE_SCRIPT_ID = "YOUTUBE_SCRIPT_" + id;
|
|
24
25
|
var YOUTUBE_SCRIPT_SRC = 'https://www.youtube.com/iframe_api';
|
|
26
|
+
var section = {
|
|
27
|
+
start: startSeconds,
|
|
28
|
+
end: endSeconds
|
|
29
|
+
};
|
|
30
|
+
var isLoop = loopMode === 'use';
|
|
25
31
|
var onPlayerReady = (0, react_1.useCallback)(function (event) {
|
|
32
|
+
event.target.seekTo(section.start);
|
|
26
33
|
event.target.mute();
|
|
27
34
|
event.target.playVideo();
|
|
28
35
|
}, []);
|
|
@@ -44,13 +51,21 @@ function YouTubeIframe(_a) {
|
|
|
44
51
|
case ENDED:
|
|
45
52
|
case PAUSED:
|
|
46
53
|
setIsYoutubeLoading(true);
|
|
47
|
-
event.target.
|
|
54
|
+
isLoop && event.target.seekTo(section.start);
|
|
48
55
|
break;
|
|
49
56
|
case PLAYING:
|
|
50
57
|
setError(null);
|
|
51
58
|
setTimeout(function () {
|
|
52
59
|
setIsYoutubeLoading(false);
|
|
53
60
|
}, 100);
|
|
61
|
+
if (isLoop && stateCode === PLAYING && section.end > section.start) {
|
|
62
|
+
var duration = section.end - section.start;
|
|
63
|
+
var restartVideoSection = function () {
|
|
64
|
+
event.target.seekTo(section.start);
|
|
65
|
+
};
|
|
66
|
+
var id_1 = setTimeout(restartVideoSection, duration * 1000);
|
|
67
|
+
setTimeoutId(id_1);
|
|
68
|
+
}
|
|
54
69
|
break;
|
|
55
70
|
}
|
|
56
71
|
}
|
|
@@ -58,6 +73,14 @@ function YouTubeIframe(_a) {
|
|
|
58
73
|
setIsYoutubeLoading(true);
|
|
59
74
|
}
|
|
60
75
|
}, []);
|
|
76
|
+
(0, react_1.useEffect)(function () {
|
|
77
|
+
if (!timeoutId) {
|
|
78
|
+
return;
|
|
79
|
+
}
|
|
80
|
+
return function () {
|
|
81
|
+
timeoutId && clearTimeout(timeoutId);
|
|
82
|
+
};
|
|
83
|
+
}, [timeoutId]);
|
|
61
84
|
var onPlayerError = (0, react_1.useCallback)(function (event) {
|
|
62
85
|
var _a;
|
|
63
86
|
// eslint-disable-next-line no-console
|
|
@@ -79,17 +102,22 @@ function YouTubeIframe(_a) {
|
|
|
79
102
|
return;
|
|
80
103
|
}
|
|
81
104
|
try {
|
|
82
|
-
//
|
|
105
|
+
// api 참고
|
|
106
|
+
// https://developers.google.com/youtube/player_parameters?hl=ko
|
|
83
107
|
var player = new window.YT.Player(PLAYER_ID, {
|
|
84
108
|
videoId: videoId,
|
|
109
|
+
height: customHeight || 720,
|
|
110
|
+
width: customWidth || 1920,
|
|
85
111
|
playerVars: {
|
|
112
|
+
cc_load_policy: 0,
|
|
86
113
|
playsinline: 1,
|
|
87
114
|
autoplay: 1,
|
|
88
115
|
controls: 0,
|
|
89
116
|
iv_load_policy: 3,
|
|
90
117
|
listType: 'playlist',
|
|
118
|
+
disablekb: 1,
|
|
91
119
|
playlist: videoId,
|
|
92
|
-
|
|
120
|
+
start: startSeconds
|
|
93
121
|
},
|
|
94
122
|
events: {
|
|
95
123
|
onReady: onPlayerReady,
|
|
@@ -155,7 +183,7 @@ function YouTubeIframe(_a) {
|
|
|
155
183
|
iv_load_policy: 3,
|
|
156
184
|
listType: 'playlist',
|
|
157
185
|
playlist: videoId,
|
|
158
|
-
loop: 1
|
|
186
|
+
loop: isLoop ? 1 : 0
|
|
159
187
|
}
|
|
160
188
|
});
|
|
161
189
|
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export * from './pdsOriginal';
|
|
2
|
-
export { Section } from './Section';
|
|
2
|
+
export { Section, CustomSection } from './Section';
|
|
@@ -10,7 +10,8 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
10
10
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
11
11
|
};
|
|
12
12
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13
|
-
exports.Section = void 0;
|
|
13
|
+
exports.CustomSection = exports.Section = void 0;
|
|
14
14
|
__exportStar(require("./pdsOriginal"), exports);
|
|
15
15
|
var Section_1 = require("./Section");
|
|
16
16
|
Object.defineProperty(exports, "Section", { enumerable: true, get: function () { return Section_1.Section; } });
|
|
17
|
+
Object.defineProperty(exports, "CustomSection", { enumerable: true, get: function () { return Section_1.CustomSection; } });
|