pds-dev-kit-web-test 2.5.324 → 2.5.326
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/hooks/useAbsolutePositioner.js +2 -2
- package/dist/src/common/hooks/useTooltip.d.ts +2 -2
- package/dist/src/common/hooks/useTooltip.js +3 -3
- package/dist/src/common/utils/SystemUIPositionGenerator/clickTypeSystemUICssGenerator.d.ts +1 -1
- package/dist/src/common/utils/SystemUIPositionGenerator/hoverTypeSystemUICssGenerator.d.ts +1 -1
- package/dist/src/common/utils/SystemUIPositionGenerator/hoverTypeSystemUICssGenerator.js +1 -1
- package/dist/src/desktop/common/components/TextFieldBase/TextFieldBase.js +2 -2
- package/dist/src/desktop/components/AdminList/BulkActionBar.d.ts +1 -1
- package/dist/src/desktop/components/AdminListHeader/HeaderBar.d.ts +1 -1
- package/dist/src/desktop/components/BasicButtonGroup/BasicButtonGroup.d.ts +1 -1
- package/dist/src/desktop/components/BasicButtonGroup/BasicButtonGroup.js +4 -4
- package/dist/src/desktop/components/BasicListItem/Contents.d.ts +1 -1
- package/dist/src/desktop/components/BasicListItem/Contents.js +1 -1
- package/dist/src/desktop/components/BasicListItem/LeftBox/Badge.js +1 -1
- package/dist/src/desktop/components/BasicListItem/LeftBox/Checkbox.js +1 -1
- package/dist/src/desktop/components/BasicListItem/LeftBox/Icon.js +1 -1
- package/dist/src/desktop/components/BasicListItem/LeftBox/Image.js +1 -1
- package/dist/src/desktop/components/BasicListItem/LeftBox/Radio.js +1 -1
- package/dist/src/desktop/components/BasicListItem/RightBox/Description.d.ts +1 -1
- package/dist/src/desktop/components/BasicListItem/RightBox/Description.js +1 -1
- package/dist/src/desktop/components/BasicListItem/RightBox/Switch.js +1 -1
- package/dist/src/desktop/components/ContextMenuItem/ContextMenuItem.d.ts +1 -1
- package/dist/src/desktop/components/ContextMenuItem/ContextMenuItem.js +1 -1
- package/dist/src/desktop/components/DesktopTabBar/DesktopTabBar.js +2 -2
- package/dist/src/desktop/components/Dropdown/Dropdown.d.ts +1 -1
- package/dist/src/desktop/components/Dropdown/Dropdown.js +1 -1
- package/dist/src/desktop/components/IconButton/IconButton.d.ts +1 -1
- package/dist/src/desktop/components/IconButton/IconButton.js +2 -2
- package/dist/src/desktop/components/SegmentedButtonGroup/SegmentedButtonGroup.d.ts +1 -1
- package/dist/src/desktop/components/SegmentedButtonGroup/SegmentedButtonGroup.js +3 -3
- package/dist/src/desktop/components/Select/Select.js +1 -1
- package/dist/src/desktop/components/Slider/Slider.d.ts +1 -1
- package/dist/src/desktop/components/Slider/Slider.js +1 -1
- package/dist/src/desktop/components/TextField/TextField.js +1 -1
- package/dist/src/desktop/components/TextLabel/TextLabel.d.ts +1 -1
- package/dist/src/desktop/components/TextLabel/TextLabel.js +2 -2
- package/dist/src/desktop/components/UploadIconButton/UploadIconButton.d.ts +1 -1
- package/dist/src/desktop/components/UploadIconButton/UploadIconButton.js +2 -2
- package/dist/src/hybrid/components/Switch/Switch.d.ts +1 -1
- package/dist/src/mobile/common/components/TextFieldBase/TextFieldBase.js +2 -2
- package/dist/src/mobile/components/BasicButtonGroup/BasicButtonGroup.d.ts +1 -1
- package/dist/src/mobile/components/BasicButtonGroup/BasicButtonGroup.js +1 -1
- package/dist/src/mobile/components/BasicListItem/Contents.d.ts +1 -1
- package/dist/src/mobile/components/BasicListItem/Contents.js +1 -1
- package/dist/src/mobile/components/BasicListItem/LeftBox/Badge.js +1 -1
- package/dist/src/mobile/components/BasicListItem/LeftBox/Checkbox.js +1 -1
- package/dist/src/mobile/components/BasicListItem/LeftBox/Icon.js +1 -1
- package/dist/src/mobile/components/BasicListItem/LeftBox/Image.js +1 -1
- package/dist/src/mobile/components/BasicListItem/LeftBox/Radio.js +1 -1
- package/dist/src/mobile/components/BasicListItem/RightBox/Description.d.ts +1 -1
- package/dist/src/mobile/components/BasicListItem/RightBox/Description.js +1 -1
- package/dist/src/mobile/components/BasicListItem/RightBox/Switch.js +1 -1
- package/dist/src/mobile/components/ContextMenuItem/ContextMenuItem.d.ts +1 -1
- package/dist/src/mobile/components/ContextMenuItem/ContextMenuItem.js +1 -1
- package/dist/src/mobile/components/Dropdown/Dropdown.d.ts +1 -1
- package/dist/src/mobile/components/Dropdown/Dropdown.js +1 -1
- package/dist/src/mobile/components/MobileHeaderBar/utils.d.ts +1 -1
- package/dist/src/mobile/components/SegmentedButtonGroup/SegmentedButtonGroup.d.ts +1 -1
- package/dist/src/mobile/components/SegmentedButtonGroup/SegmentedButtonGroup.js +1 -1
- package/dist/src/mobile/components/Select/Select.js +1 -1
- package/dist/src/mobile/components/Slider/Slider.d.ts +1 -1
- package/dist/src/mobile/components/Slider/Slider.js +1 -1
- package/dist/src/mobile/components/TextField/TextField.js +1 -1
- package/dist/src/sub/AdminList/AdminList/AdminList.d.ts +1 -1
- package/dist/src/sub/AdminList/AdminList/AdminList.js +2 -2
- package/dist/src/sub/AdminList/AdminList/HeaderRow.d.ts +1 -1
- package/dist/src/sub/AdminList/AdminList/HeaderRow.js +2 -2
- package/dist/src/sub/AdminList/AdminListHeader/AdminListHeader.d.ts +1 -1
- package/dist/src/sub/AdminList/AdminListHeader/AdminListHeader.js +2 -2
- package/dist/src/sub/AdminList/AdminListHeader/HeaderBar.d.ts +1 -1
- package/dist/src/sub/AdminList/AdminListHeader/HeaderBar.js +2 -2
- package/dist/src/sub/AdminList/AdminListItem/AdminListItem.d.ts +1 -1
- package/dist/src/sub/AdminList/AdminListItem/AdminListItem.js +3 -3
- package/dist/src/sub/AdminList/BulkActionBar/BulkActionBar.d.ts +1 -1
- package/dist/src/sub/AdminList/BulkActionBar/BulkActionBar.js +2 -2
- package/dist/src/sub/AdminList/ToolBar/ChipList.d.ts +1 -1
- package/dist/src/sub/AdminList/ToolBar/ChipList.js +1 -1
- package/dist/src/sub/AdminList/ToolBar/SearchField.js +4 -4
- package/dist/src/sub/AdminList/ToolBar/ToolBar.d.ts +1 -1
- package/dist/src/sub/AdminList/ToolBar/ToolBar.js +3 -3
- package/dist/src/sub/DynamicLayout/CompositionEditor/CompositionEditor.d.ts +20 -0
- package/dist/src/sub/DynamicLayout/CompositionEditor/CompositionEditor.js +1118 -0
- package/dist/src/sub/DynamicLayout/CompositionRenderer/ComponentBlockMatcher.js +1 -1
- package/dist/src/sub/DynamicLayout/CompositionRenderer/Composition.d.ts +4 -2
- package/dist/src/sub/DynamicLayout/CompositionRenderer/Composition.js +46 -46
- package/dist/src/sub/DynamicLayout/CompositionRenderer/CompositionRenderer.d.ts +1 -1
- package/dist/src/sub/DynamicLayout/DynamicLayout.d.ts +1 -1
- package/dist/src/sub/DynamicLayout/DynamicLayout.js +3 -2
- package/dist/src/sub/DynamicLayout/components/EditModeSectionMatcher/EditModeSectionMatcher.js +1 -1
- package/dist/src/sub/DynamicLayout/components/EditModeSectionMatcher/SectionBox.js +1 -4
- package/dist/src/sub/DynamicLayout/components/Section/CustomSection.d.ts +2 -2
- package/dist/src/sub/DynamicLayout/components/Section/components/CustomSectionBackground.js +2 -2
- package/dist/src/sub/DynamicLayout/components/Section/components/CustomSectionBackgroundMedia.d.ts +2 -2
- package/dist/src/sub/DynamicLayout/components/Section/components/CustomSectionBackgroundMedia.js +1 -1
- package/dist/src/sub/DynamicLayout/components/Section/sectionContext.d.ts +2 -2
- package/dist/src/sub/DynamicLayout/components/Section/util/parseSectionBackgroundMediaData.d.ts +2 -2
- package/dist/src/sub/DynamicLayout/components/Section/util/parseSectionBackgroundMediaData.js +1 -1
- package/dist/src/sub/DynamicLayout/components/SectionMatcher/SectionMatcher.js +1 -1
- package/dist/src/sub/DynamicLayout/compositionActionTypes.d.ts +139 -0
- package/dist/src/sub/DynamicLayout/compositionActionTypes.js +2 -0
- package/dist/src/sub/DynamicLayout/gleStyles.js +1 -1
- package/dist/src/sub/DynamicLayout/mock_composition.d.ts +3 -0
- package/dist/src/sub/DynamicLayout/mock_composition.js +755 -0
- package/dist/src/sub/DynamicLayout/mock_contentsCarousel.d.ts +2 -0
- package/dist/src/sub/DynamicLayout/mock_contentsCarousel.js +326 -0
- package/dist/src/sub/DynamicLayout/mock_slideBanner.d.ts +2 -0
- package/dist/src/sub/DynamicLayout/mock_slideBanner.js +318 -0
- package/dist/src/sub/DynamicLayout/mocks.d.ts +5 -1
- package/dist/src/sub/DynamicLayout/mocks.js +36 -12
- package/dist/src/sub/DynamicLayout/sections/CustomSection/CustomSection.js +6 -5
- package/dist/src/sub/DynamicLayout/sections/CustomSection/FlexGridItem.js +15 -11
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/ComponentBlockMatcher.js +8 -3
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/Button/Button.d.ts +1 -1
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/Button/Button.js +7 -27
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsCarousel/ContentsCarousel.d.ts +4 -4
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsCarousel/ContentsCarousel.js +144 -2
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsCarousel/ContentsCarouselCore.d.ts +17 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsCarousel/ContentsCarouselCore.js +39 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsCarousel/components/CustomNavigation.d.ts +31 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsCarousel/components/CustomNavigation.js +168 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsCarousel/components/CustomPagination.d.ts +26 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsCarousel/components/CustomPagination.js +185 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsCarousel/components/CustomProgressbar.d.ts +19 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsCarousel/components/CustomProgressbar.js +73 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsCarousel/contentsCarouselUtils.d.ts +50 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsCarousel/contentsCarouselUtils.js +919 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsCarousel/index.d.ts +1 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsCarousel/index.js +8 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsCarousel/types.d.ts +90 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsCarousel/types.js +2 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/Divider/Divider.js +1 -1
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/Embed/Embed.js +1 -1
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/Embed/IframeDenied.js +1 -1
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/Embed/types.d.ts +1 -1
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/Image/Image.js +1 -1
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/Image/types.d.ts +1 -1
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/RichText/RichText.d.ts +1 -1
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/RichText/RichText.js +5 -5
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/RichText/types.d.ts +1 -1
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/SlideBanner/SlideBanner.d.ts +8 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/SlideBanner/SlideBanner.js +143 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/SlideBanner/SlideBannerCore.d.ts +15 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/SlideBanner/SlideBannerCore.js +39 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/SlideBanner/components/CustomNavigation.d.ts +31 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/SlideBanner/components/CustomNavigation.js +168 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/SlideBanner/components/CustomPagination.d.ts +26 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/SlideBanner/components/CustomPagination.js +185 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/SlideBanner/components/CustomProgressbar.d.ts +19 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/SlideBanner/components/CustomProgressbar.js +73 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/SlideBanner/index.d.ts +1 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/SlideBanner/index.js +8 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/SlideBanner/slideBannerUtils.d.ts +48 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/SlideBanner/slideBannerUtils.js +855 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/SlideBanner/types.d.ts +80 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/SlideBanner/types.js +2 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/Text/Text.js +1 -1
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/Twitter/Twitter.js +2 -2
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/Twitter/types.d.ts +1 -1
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/Youtube/Youtube.d.ts +1 -1
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/Youtube/Youtube.js +4 -4
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/Youtube/parseYoutubeContentProp.d.ts +1 -1
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/Youtube/types.d.ts +1 -1
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/components/S_CB_BoxWithShadow.d.ts +1 -1
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/components/S_CB_BoxWithShadow.js +1 -1
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/hooks/useCLINK.js +1 -1
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/types.d.ts +30 -1
- package/dist/src/sub/DynamicLayout/sections/CustomSection/hooks/useGoogleFonts/useGoogleFonts.js +1 -1
- package/dist/src/sub/DynamicLayout/sections/CustomSection/types.d.ts +17 -8
- package/dist/src/sub/DynamicLayout/sections/CustomSection/types.js +2 -1
- package/dist/src/sub/DynamicLayout/sections/CustomSection/util/parseCompositionPlacement.d.ts +14 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/util/parseCompositionPlacement.js +27 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/util/parseJsonProperties.d.ts +2 -2
- package/dist/src/sub/DynamicLayout/sections/CustomSection/util/parseProperties.d.ts +2 -2
- package/dist/src/sub/DynamicLayout/sections/CustomSection/util/types.d.ts +34 -1
- package/dist/src/sub/DynamicLayout/sections/FlexGridCustomSection.js +2 -2
- package/dist/src/sub/DynamicLayout/sections/FullscreenIframeSection/templates/TemplateA/desktop/D_TemplateA.js +1 -1
- package/dist/src/sub/DynamicLayout/sections/FullscreenIframeSection/templates/TemplateA/mobile/M_TemplateA.js +1 -1
- package/dist/src/sub/DynamicLayout/sections/MembershipSection/EditType/MembershipSection.d.ts +1 -1
- package/dist/src/sub/DynamicLayout/sections/MembershipSection/EditType/MembershipSection.js +1 -1
- package/dist/src/sub/DynamicLayout/sections/MembershipSection/EditType/templates/TemplateA/TemplateA.js +2 -2
- package/dist/src/sub/DynamicLayout/sections/MembershipSection/EditType/templates/TemplateA/desktop/D_TemplateA.d.ts +1 -1
- package/dist/src/sub/DynamicLayout/sections/MembershipSection/EditType/templates/TemplateA/desktop/components/EmptyMembershipSheet.js +4 -4
- package/dist/src/sub/DynamicLayout/sections/MembershipSection/EditType/templates/TemplateA/desktop/components/MembershipBenefitInfo.d.ts +1 -1
- package/dist/src/sub/DynamicLayout/sections/MembershipSection/EditType/templates/TemplateA/desktop/components/MembershipBenefitInfo.js +2 -2
- package/dist/src/sub/DynamicLayout/sections/MembershipSection/EditType/templates/TemplateA/desktop/components/MembershipPlanSheet.d.ts +1 -1
- package/dist/src/sub/DynamicLayout/sections/MembershipSection/EditType/templates/TemplateA/desktop/components/MembershipPlanSheet.js +5 -5
- package/dist/src/sub/DynamicLayout/sections/MembershipSection/EditType/templates/TemplateA/desktop/components/MembershipSheet.d.ts +1 -1
- package/dist/src/sub/DynamicLayout/sections/MembershipSection/EditType/templates/TemplateA/desktop/components/MembershipSheet.js +4 -4
- package/dist/src/sub/DynamicLayout/sections/MembershipSection/EditType/templates/TemplateA/desktop/components/NarrowMembershipListView.d.ts +1 -1
- package/dist/src/sub/DynamicLayout/sections/MembershipSection/EditType/templates/TemplateA/desktop/components/NarrowMembershipListView.js +3 -3
- package/dist/src/sub/DynamicLayout/sections/MembershipSection/EditType/templates/TemplateA/desktop/components/SectionContents.js +2 -2
- package/dist/src/sub/DynamicLayout/sections/MembershipSection/EditType/templates/TemplateA/desktop/components/UnavailableMembershipPlanSheet.d.ts +1 -1
- package/dist/src/sub/DynamicLayout/sections/MembershipSection/EditType/templates/TemplateA/desktop/components/UnavailableMembershipPlanSheet.js +4 -4
- package/dist/src/sub/DynamicLayout/sections/MembershipSection/EditType/templates/TemplateA/desktop/components/WideMembershipListView.d.ts +1 -1
- package/dist/src/sub/DynamicLayout/sections/MembershipSection/EditType/templates/TemplateA/desktop/components/WideMembershipListView.js +3 -3
- package/dist/src/sub/DynamicLayout/sections/MembershipSection/EditType/templates/TemplateA/mobile/M_TemplateA.d.ts +1 -1
- package/dist/src/sub/DynamicLayout/sections/MembershipSection/EditType/templates/TemplateA/mobile/components/EmptyMembershipSheet.js +4 -4
- package/dist/src/sub/DynamicLayout/sections/MembershipSection/EditType/templates/TemplateA/mobile/components/MembershipBenefitInfo.d.ts +1 -1
- package/dist/src/sub/DynamicLayout/sections/MembershipSection/EditType/templates/TemplateA/mobile/components/MembershipBenefitInfo.js +3 -3
- package/dist/src/sub/DynamicLayout/sections/MembershipSection/EditType/templates/TemplateA/mobile/components/MembershipContents.d.ts +1 -1
- package/dist/src/sub/DynamicLayout/sections/MembershipSection/EditType/templates/TemplateA/mobile/components/MembershipSectionSheet.d.ts +1 -1
- package/dist/src/sub/DynamicLayout/sections/MembershipSection/EditType/templates/TemplateA/mobile/components/MembershipSectionSheet.js +5 -5
- package/dist/src/sub/DynamicLayout/sections/MembershipSection/EditType/templates/TemplateA/mobile/components/SectionContents.js +2 -2
- package/dist/src/sub/DynamicLayout/sections/MembershipSection/EditType/templates/TemplateB/TemplateB.js +2 -2
- package/dist/src/sub/DynamicLayout/sections/MembershipSection/EditType/templates/TemplateB/desktop/D_TemplateB.d.ts +1 -1
- package/dist/src/sub/DynamicLayout/sections/MembershipSection/EditType/templates/TemplateB/desktop/components/EmptyMembershipSheet.js +4 -4
- package/dist/src/sub/DynamicLayout/sections/MembershipSection/EditType/templates/TemplateB/desktop/components/MembershipBenefitInfo.d.ts +1 -1
- package/dist/src/sub/DynamicLayout/sections/MembershipSection/EditType/templates/TemplateB/desktop/components/MembershipBenefitInfo.js +2 -2
- package/dist/src/sub/DynamicLayout/sections/MembershipSection/EditType/templates/TemplateB/desktop/components/MembershipCard.d.ts +1 -1
- package/dist/src/sub/DynamicLayout/sections/MembershipSection/EditType/templates/TemplateB/desktop/components/MembershipCard.js +2 -2
- package/dist/src/sub/DynamicLayout/sections/MembershipSection/EditType/templates/TemplateB/desktop/components/MembershipPlanSheet.d.ts +1 -1
- package/dist/src/sub/DynamicLayout/sections/MembershipSection/EditType/templates/TemplateB/desktop/components/MembershipPlanSheet.js +5 -5
- package/dist/src/sub/DynamicLayout/sections/MembershipSection/EditType/templates/TemplateB/desktop/components/MembershipSheet.d.ts +1 -1
- package/dist/src/sub/DynamicLayout/sections/MembershipSection/EditType/templates/TemplateB/desktop/components/MembershipSheet.js +6 -6
- package/dist/src/sub/DynamicLayout/sections/MembershipSection/EditType/templates/TemplateB/desktop/components/SectionContents.js +2 -2
- package/dist/src/sub/DynamicLayout/sections/MembershipSection/EditType/templates/TemplateB/desktop/components/UnavailableMembershipPlanSheet.d.ts +1 -1
- package/dist/src/sub/DynamicLayout/sections/MembershipSection/EditType/templates/TemplateB/desktop/components/UnavailableMembershipPlanSheet.js +4 -4
- package/dist/src/sub/DynamicLayout/sections/MembershipSection/EditType/templates/TemplateB/mobile/M_TemplateB.d.ts +1 -1
- package/dist/src/sub/DynamicLayout/sections/MembershipSection/EditType/templates/TemplateB/mobile/components/EmptyMembershipSheet.js +4 -4
- package/dist/src/sub/DynamicLayout/sections/MembershipSection/EditType/templates/TemplateB/mobile/components/MembershipBenefitInfo.d.ts +1 -1
- package/dist/src/sub/DynamicLayout/sections/MembershipSection/EditType/templates/TemplateB/mobile/components/MembershipBenefitInfo.js +3 -3
- package/dist/src/sub/DynamicLayout/sections/MembershipSection/EditType/templates/TemplateB/mobile/components/MembershipContents.d.ts +1 -1
- package/dist/src/sub/DynamicLayout/sections/MembershipSection/EditType/templates/TemplateB/mobile/components/MembershipSectionSheet.d.ts +1 -1
- package/dist/src/sub/DynamicLayout/sections/MembershipSection/EditType/templates/TemplateB/mobile/components/MembershipSectionSheet.js +5 -5
- package/dist/src/sub/DynamicLayout/sections/MembershipSection/EditType/templates/TemplateB/mobile/components/SectionContents.js +2 -2
- package/dist/src/sub/DynamicLayout/sections/MembershipSection/NormalType/MembershipSection.d.ts +1 -1
- package/dist/src/sub/DynamicLayout/sections/MembershipSection/NormalType/MembershipSection.js +1 -1
- package/dist/src/sub/DynamicLayout/sections/MembershipSection/NormalType/templates/TemplateA/TemplateA.js +1 -1
- package/dist/src/sub/DynamicLayout/sections/MembershipSection/NormalType/templates/TemplateA/desktop/D_TemplateA.js +1 -1
- package/dist/src/sub/DynamicLayout/sections/MembershipSection/NormalType/templates/TemplateA/desktop/components/SectionContents.js +2 -2
- package/dist/src/sub/DynamicLayout/sections/MembershipSection/NormalType/templates/TemplateA/mobile/M_TemplateA.js +1 -1
- package/dist/src/sub/DynamicLayout/sections/MembershipSection/NormalType/templates/TemplateA/mobile/components/SectionContents.js +2 -2
- package/dist/src/sub/DynamicLayout/sections/MembershipSection/NormalType/templates/TemplateB/TemplateB.js +1 -1
- package/dist/src/sub/DynamicLayout/sections/MembershipSection/NormalType/templates/TemplateB/desktop/D_TemplateB.js +1 -1
- package/dist/src/sub/DynamicLayout/sections/MembershipSection/NormalType/templates/TemplateB/desktop/components/SectionContents.js +2 -2
- package/dist/src/sub/DynamicLayout/sections/MembershipSection/NormalType/templates/TemplateB/mobile/M_TemplateB.js +1 -1
- package/dist/src/sub/DynamicLayout/sections/MembershipSection/NormalType/templates/TemplateB/mobile/components/SectionContents.js +2 -2
- package/dist/src/sub/DynamicLayout/sections/MembershipSection/components/desktop/MembershipSectionItem.d.ts +3 -3
- package/dist/src/sub/DynamicLayout/sections/MembershipSection/components/desktop/MembershipSectionItem.js +2 -2
- package/dist/src/sub/DynamicLayout/sections/MembershipSection/components/mobile/MembershipSectionItem.d.ts +3 -3
- package/dist/src/sub/DynamicLayout/sections/MembershipSection/components/mobile/MembershipSectionItem.js +2 -2
- package/dist/src/sub/DynamicLayout/sections/MembershipSection/constants.d.ts +1 -1
- package/dist/src/sub/DynamicLayout/types.d.ts +34 -2
- package/dist/src/sub/SandollFontKit/types.d.ts +1 -1
- package/package.json +3 -3
- package/release-note.md +3 -3
@@ -46,7 +46,7 @@ function ComponentBlockMatcher(_a) {
|
|
46
46
|
return (0, jsx_runtime_1.jsx)(Youtube_1.Youtube, __assign({}, propsWithValue, { index: index }));
|
47
47
|
case types_1.CB_ALL_CODES.CB_EMBED:
|
48
48
|
return (0, jsx_runtime_1.jsx)(Embed_1.default, __assign({}, propsWithValue, { index: index }));
|
49
|
-
case types_1.CB_ALL_CODES.
|
49
|
+
case types_1.CB_ALL_CODES.CB_CONTENTSCAROUSEL: {
|
50
50
|
return (0, jsx_runtime_1.jsx)("div", { children: "NOT SUPPORTED NESTED CAROUSEL" });
|
51
51
|
}
|
52
52
|
default:
|
@@ -1,9 +1,11 @@
|
|
1
1
|
import React from 'react';
|
2
|
-
import type {
|
2
|
+
import type { IComposition } from '../types';
|
3
3
|
import type { Layout } from 'publ-echo/dist/lib/GridLayoutEditor/types';
|
4
4
|
export type LayoutsType = {
|
5
5
|
sm: Layout;
|
6
6
|
lg: Layout;
|
7
7
|
};
|
8
|
-
declare const _default: React.MemoExoticComponent<React.ForwardRefExoticComponent<
|
8
|
+
declare const _default: React.MemoExoticComponent<React.ForwardRefExoticComponent<IComposition & {
|
9
|
+
device?: "DESKTOP" | "MOBILE" | undefined;
|
10
|
+
} & React.RefAttributes<unknown>>>;
|
9
11
|
export default _default;
|
@@ -44,39 +44,37 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
44
44
|
var jsx_runtime_1 = require("react/jsx-runtime");
|
45
45
|
/* eslint-disable @typescript-eslint/no-unused-vars */
|
46
46
|
var react_1 = __importStar(require("react"));
|
47
|
-
var ErrorBoundary_1 = require("
|
48
|
-
var dynamicLayoutContext_1 = require("
|
47
|
+
var ErrorBoundary_1 = require("@sub/DynamicLayout/components/Section/ErrorBoundary");
|
48
|
+
var dynamicLayoutContext_1 = require("@sub/DynamicLayout/dynamicLayoutContext");
|
49
49
|
var styled_components_1 = __importDefault(require("styled-components"));
|
50
50
|
var components_1 = require("../components");
|
51
51
|
var gleStyles_1 = require("../gleStyles");
|
52
52
|
var useResizableObserver_1 = require("../sections/CustomSection/hooks/useResizableObserver");
|
53
|
-
|
53
|
+
require("../sections/CustomSection/util");
|
54
54
|
var parseSectionPadding_1 = __importDefault(require("../sections/CustomSection/util/layoutPropParsers/parseSectionPadding"));
|
55
|
+
var parseCompositionPlacement_1 = __importDefault(require("../sections/CustomSection/util/parseCompositionPlacement"));
|
55
56
|
var FlexGridItem_1 = __importDefault(require("./FlexGridItem"));
|
56
|
-
var GRID_CELL_MIN = 24;
|
57
|
-
var DESKTOP_GRID_COLS = 24;
|
58
|
-
var MOBILE_GRID_COLS = 8;
|
59
|
-
var GLE_MIN_WIDTH_DESKTOP_PX = "".concat(GRID_CELL_MIN * DESKTOP_GRID_COLS, "px");
|
60
|
-
var GLE_MIN_WIDTH_MOBILE_PX = "".concat(GRID_CELL_MIN * MOBILE_GRID_COLS, "px");
|
61
57
|
var Composition = (0, react_1.forwardRef)(function CustomSection(props, ref) {
|
62
|
-
var _a;
|
63
|
-
var
|
58
|
+
var _a, _b, _c, _d, _e, _f, _g;
|
59
|
+
var _h = (0, react_1.useContext)(dynamicLayoutContext_1.dynamicLayoutContext),
|
60
|
+
// NOTE: 이것을 사용해야함
|
61
|
+
contextDevice = _h.device, editingSectionId = _h.editingSectionId, mode = _h.mode, shortcutKeyMode = _h.shortcutKeyMode, sectionActionHandler = _h.sectionActionHandler, queryData = _h.queryData;
|
64
62
|
var componentBlocks = props.componentBlocks, jsonProperties = props.jsonProperties;
|
65
|
-
|
63
|
+
// NOTE: 임시. 테스트용.
|
64
|
+
var device = (_b = (_a = props.device) !== null && _a !== void 0 ? _a : contextDevice) !== null && _b !== void 0 ? _b : 'DESKTOP';
|
65
|
+
var isMobile = device === 'MOBILE';
|
66
|
+
var isEditMode = mode === 'EDIT';
|
67
|
+
var _j = jsonProperties, CB_PLACEMENT_PROP_COMPOSITION = _j.CB_PLACEMENT_PROP_COMPOSITION, CB_LAYOUT_PROP_PADDING = _j.CB_LAYOUT_PROP_PADDING, zOrders = _j.zOrders;
|
68
|
+
var colsDesktop = (_c = CB_PLACEMENT_PROP_COMPOSITION.CB_PLACEMENT_PROP_COMPOSITION_SPEC_COLUMNS) !== null && _c !== void 0 ? _c : 24;
|
69
|
+
var colsMobile = (_d = CB_PLACEMENT_PROP_COMPOSITION['CB_PLACEMENT_PROP_COMPOSITION_SPEC_COLUMNS:MOBILE']) !== null && _d !== void 0 ? _d : 8;
|
70
|
+
var rowsDesktop = (_e = CB_PLACEMENT_PROP_COMPOSITION.CB_PLACEMENT_PROP_COMPOSITION_SPEC_ROWS) !== null && _e !== void 0 ? _e : 26;
|
71
|
+
var rowsMobile = (_f = CB_PLACEMENT_PROP_COMPOSITION['CB_PLACEMENT_PROP_COMPOSITION_SPEC_ROWS:MOBILE']) !== null && _f !== void 0 ? _f : 26;
|
72
|
+
var rows = isMobile ? rowsMobile : rowsDesktop;
|
73
|
+
var cols = isMobile ? colsMobile : colsDesktop;
|
66
74
|
var containerRef = (0, react_1.useRef)(null);
|
67
75
|
var size = (0, useResizableObserver_1.useResizeObserver)({ ref: containerRef, box: 'border-box' });
|
68
|
-
var
|
76
|
+
var _k = (0, react_1.useState)(null), selectedCB = _k[0], setSelectedCB = _k[1];
|
69
77
|
var gleRef = (0, react_1.useRef)(null);
|
70
|
-
var isMobile = device === 'MOBILE';
|
71
|
-
var isEditMode = mode === 'EDIT';
|
72
|
-
// const layoutByDevice = device === 'DESKTOP' ? 'lg' : 'sm';
|
73
|
-
// const [layouts] = useState<LayoutsType>(() => {
|
74
|
-
// const { lg, sm } = parsePlacement(componentBlocks ?? []);
|
75
|
-
// return {
|
76
|
-
// lg,
|
77
|
-
// sm
|
78
|
-
// };
|
79
|
-
// });
|
80
78
|
(0, react_1.useEffect)(function () {
|
81
79
|
if (editingSectionId !== props.id) {
|
82
80
|
setSelectedCB(null);
|
@@ -124,14 +122,17 @@ var Composition = (0, react_1.forwardRef)(function CustomSection(props, ref) {
|
|
124
122
|
setSelectedCB('BULK');
|
125
123
|
}
|
126
124
|
}, [selectedCB, shortcutKeyMode, sectionActionHandler, setSelectedCB]);
|
127
|
-
var
|
125
|
+
var _l = (0, parseCompositionPlacement_1.default)({
|
128
126
|
isMobile: isMobile,
|
129
|
-
|
130
|
-
}),
|
127
|
+
compositionProps: CB_PLACEMENT_PROP_COMPOSITION
|
128
|
+
}), minHeight = _l.minHeight, maxHeight = _l.maxHeight, maxWidth = _l.maxWidth, minWidth = _l.minWidth;
|
129
|
+
var canvasWidth = 50 * cols;
|
131
130
|
var customSectionStyles = {
|
132
|
-
minHeight: "".concat(minHeight, "
|
133
|
-
|
134
|
-
|
131
|
+
minHeight: "".concat(minHeight, "px"),
|
132
|
+
maxHeight: "".concat(maxHeight, "px"),
|
133
|
+
width: "100%",
|
134
|
+
maxWidth: maxWidth ? "".concat(maxWidth, "px") : '100%',
|
135
|
+
minWidth: "".concat(Math.max(canvasWidth, minWidth !== null && minWidth !== void 0 ? minWidth : 0), "px")
|
135
136
|
};
|
136
137
|
var onClickSection = function () {
|
137
138
|
if (!isEditMode) {
|
@@ -147,44 +148,43 @@ var Composition = (0, react_1.forwardRef)(function CustomSection(props, ref) {
|
|
147
148
|
});
|
148
149
|
};
|
149
150
|
var padding = (0, parseSectionPadding_1.default)(CB_LAYOUT_PROP_PADDING, device);
|
150
|
-
var sectionRow = CB_PLACEMENT_PROP_SECTION[device === 'DESKTOP'
|
151
|
-
? 'CB_PLACEMENT_PROP_SECTION_SPEC_ROWS'
|
152
|
-
: 'CB_PLACEMENT_PROP_SECTION_SPEC_ROWS:MOBILE'];
|
153
151
|
var rowHeight = (function () {
|
154
152
|
if (!size.width) {
|
155
153
|
return 50;
|
156
154
|
}
|
157
155
|
if (device === 'MOBILE') {
|
158
|
-
var cellWidth_1 = size.width /
|
156
|
+
var cellWidth_1 = size.width / cols;
|
159
157
|
return cellWidth_1 * 0.56;
|
160
158
|
}
|
161
|
-
var cellWidth = size.width /
|
159
|
+
var cellWidth = size.width / cols;
|
162
160
|
return cellWidth * 0.56;
|
163
161
|
})();
|
162
|
+
// TODO: 폰트사이즈 작업 필요.
|
164
163
|
var baseFontSize = (function () {
|
165
|
-
var _a, _b;
|
166
164
|
if (!size.width) {
|
167
165
|
return 16;
|
168
166
|
}
|
169
|
-
|
167
|
+
// const responsiveFontMode =
|
168
|
+
// !!props.jsonProperties?.CB_CONTENT_PROP_COMPOSITION
|
169
|
+
// ?.CB_CONTENT_PROP_COMPOSITION_SPEC_VARIABLEROOTFONTSIZE;
|
170
170
|
if (device === 'MOBILE') {
|
171
|
-
if (responsiveFontMode) {
|
172
|
-
|
173
|
-
}
|
171
|
+
// if (responsiveFontMode) {
|
172
|
+
// return size.width * 0.0421;
|
173
|
+
// }
|
174
174
|
if (size.width < 327) {
|
175
175
|
return Math.max(getDefensiveFontSize(device, size.width), 14);
|
176
176
|
}
|
177
177
|
return 16;
|
178
178
|
}
|
179
|
-
if (responsiveFontMode) {
|
180
|
-
|
181
|
-
}
|
179
|
+
// if (responsiveFontMode) {
|
180
|
+
// return size.width * 0.0133;
|
181
|
+
// }
|
182
182
|
if (size.width < 1200) {
|
183
183
|
return Math.max(getDefensiveFontSize(device, size.width), 14);
|
184
184
|
}
|
185
185
|
return 16;
|
186
186
|
})();
|
187
|
-
return ((0, jsx_runtime_1.jsx)(ErrorBoundary_1.ErrorBoundary, { children: (0, jsx_runtime_1.jsx)(gleStyles_1.S_gleStyles, __assign({ style: { width: '100%', height: '100%' } }, { children: (0, jsx_runtime_1.jsx)(
|
187
|
+
return ((0, jsx_runtime_1.jsx)(ErrorBoundary_1.ErrorBoundary, { children: (0, jsx_runtime_1.jsx)(gleStyles_1.S_gleStyles, __assign({ style: { width: '100%', height: '100%' } }, { children: (0, jsx_runtime_1.jsx)(S_COMPOSITIONWrapper, __assign({ ref: gleRef, "x-dlayout-section-type": "NO_NAME", onClick: onClickSection, style: {
|
188
188
|
width: '100%',
|
189
189
|
height: '100%'
|
190
190
|
} }, { children: (0, jsx_runtime_1.jsx)(components_1.CustomSection, __assign({}, props, { isMobile: isMobile, overrideStyles: {
|
@@ -195,18 +195,18 @@ var Composition = (0, react_1.forwardRef)(function CustomSection(props, ref) {
|
|
195
195
|
paddingLeft: padding.left,
|
196
196
|
width: '100%',
|
197
197
|
height: '100%'
|
198
|
-
} }, { children: (0, jsx_runtime_1.jsx)(GridContainer, __assign({ ref: containerRef, cols:
|
198
|
+
} }, { children: (0, jsx_runtime_1.jsx)(GridContainer, __assign({ ref: containerRef, cols: cols, rowHeight: rowHeight, sectionRow: rows, style: {
|
199
199
|
width: customSectionStyles.width,
|
200
200
|
maxWidth: customSectionStyles.maxWidth,
|
201
|
-
minWidth: isMobile ? GLE_MIN_WIDTH_MOBILE_PX : GLE_MIN_WIDTH_DESKTOP_PX,
|
201
|
+
// minWidth: isMobile ? GLE_MIN_WIDTH_MOBILE_PX : GLE_MIN_WIDTH_DESKTOP_PX,
|
202
202
|
fontSize: "".concat(baseFontSize, "px")
|
203
|
-
} }, { children: (
|
203
|
+
} }, { children: (_g = props.componentBlocks) === null || _g === void 0 ? void 0 : _g.map(function (cb, index) {
|
204
204
|
var _a;
|
205
205
|
return ((0, jsx_runtime_1.jsx)(ErrorBoundary_1.ErrorBoundary, { children: (0, jsx_runtime_1.jsx)(FlexGridItem_1.default, { cb: cb, index: index, device: device, rowHeight: rowHeight, zIndex: (_a = zOrders === null || zOrders === void 0 ? void 0 : zOrders[device === 'DESKTOP' ? 'desktop' : 'mobile'][cb.id]) !== null && _a !== void 0 ? _a : 0 }) }, cb.id));
|
206
206
|
}) })) })) })) })) }));
|
207
207
|
});
|
208
208
|
var GridContainer = styled_components_1.default.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n display: grid; /* Space between grid items */\n gap: 10px;\n grid-auto-rows: minmax(", ", auto);\n grid-template-columns: repeat(", ", 1fr);\n grid-template-rows: repeat(", ", minmax(", ", 1fr));\n height: 100%;\n padding: 10px 10px;\n width: 100%;\n\n * {\n box-sizing: border-box;\n }\n"], ["\n display: grid; /* Space between grid items */\n gap: 10px;\n grid-auto-rows: minmax(", ", auto);\n grid-template-columns: repeat(", ", 1fr);\n grid-template-rows: repeat(", ", minmax(", ", 1fr));\n height: 100%;\n padding: 10px 10px;\n width: 100%;\n\n * {\n box-sizing: border-box;\n }\n"])), function (props) { return "".concat(props.rowHeight, "px"); }, function (props) { return props.cols; }, function (props) { return props.sectionRow; }, function (props) { return "".concat(0, "px"); });
|
209
|
-
var
|
209
|
+
var S_COMPOSITIONWrapper = styled_components_1.default.div(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n position: relative;\n"], ["\n position: relative;\n"])));
|
210
210
|
exports.default = react_1.default.memo(Composition);
|
211
211
|
function getDefensiveFontSize(device, width) {
|
212
212
|
if (device === 'MOBILE') {
|
@@ -1,5 +1,5 @@
|
|
1
1
|
/// <reference types="react" />
|
2
|
-
import type { IComposition } from '
|
2
|
+
import type { IComposition } from '@sub/DynamicLayout/types';
|
3
3
|
declare function CompositionRenderer({ compositions }: {
|
4
4
|
compositions: IComposition[];
|
5
5
|
}): JSX.Element;
|
@@ -1,4 +1,4 @@
|
|
1
1
|
/// <reference types="react" />
|
2
2
|
import type { DynamicLayoutProps } from './types';
|
3
|
-
declare function DynamicLayout({ device, mode, isPreview, sections, scrollDownTargetSectionId, editingSectionId, navigationHandler, sectionActionHandler, onClickEditSection, programmedSectionComponents, shortcutKeyMode, dynamicLayoutRef, zoomScale }: DynamicLayoutProps): JSX.Element;
|
3
|
+
declare function DynamicLayout({ device, mode, isPreview, sections, scrollDownTargetSectionId, editingSectionId, navigationHandler, sectionActionHandler, onClickEditSection, programmedSectionComponents, shortcutKeyMode, dynamicLayoutRef, zoomScale, queryData }: DynamicLayoutProps): JSX.Element;
|
4
4
|
export default DynamicLayout;
|
@@ -25,7 +25,7 @@ var EditModeSectionMatcher_1 = require("./components/EditModeSectionMatcher");
|
|
25
25
|
var SectionMatcher_1 = require("./components/SectionMatcher");
|
26
26
|
var dynamicLayoutContext_1 = require("./dynamicLayoutContext");
|
27
27
|
function DynamicLayout(_a) {
|
28
|
-
var device = _a.device, _b = _a.mode, mode = _b === void 0 ? 'NORMAL' : _b, isPreview = _a.isPreview, sections = _a.sections, scrollDownTargetSectionId = _a.scrollDownTargetSectionId, editingSectionId = _a.editingSectionId, navigationHandler = _a.navigationHandler, sectionActionHandler = _a.sectionActionHandler, onClickEditSection = _a.onClickEditSection, programmedSectionComponents = _a.programmedSectionComponents, shortcutKeyMode = _a.shortcutKeyMode, dynamicLayoutRef = _a.dynamicLayoutRef, zoomScale = _a.zoomScale;
|
28
|
+
var device = _a.device, _b = _a.mode, mode = _b === void 0 ? 'NORMAL' : _b, isPreview = _a.isPreview, sections = _a.sections, scrollDownTargetSectionId = _a.scrollDownTargetSectionId, editingSectionId = _a.editingSectionId, navigationHandler = _a.navigationHandler, sectionActionHandler = _a.sectionActionHandler, onClickEditSection = _a.onClickEditSection, programmedSectionComponents = _a.programmedSectionComponents, shortcutKeyMode = _a.shortcutKeyMode, dynamicLayoutRef = _a.dynamicLayoutRef, zoomScale = _a.zoomScale, queryData = _a.queryData;
|
29
29
|
var filteredSortedSection = __spreadArray([], sections, true).filter(function (section) {
|
30
30
|
var _a;
|
31
31
|
if (!section.display) {
|
@@ -51,7 +51,8 @@ function DynamicLayout(_a) {
|
|
51
51
|
editingSectionId: editingSectionId,
|
52
52
|
programmedSectionComponents: programmedSectionComponents,
|
53
53
|
shortcutKeyMode: shortcutKeyMode,
|
54
|
-
zoomScale: zoomScale
|
54
|
+
zoomScale: zoomScale,
|
55
|
+
queryData: queryData
|
55
56
|
} }, { children: [mode === 'EDIT' && onClickEditSection && ((0, jsx_runtime_1.jsx)(EditModeSectionMatcher_1.EditModeSectionMatcher, { dynamicLayoutRef: dynamicLayoutRef, editingSectionId: editingSectionId, scrollDownTargetSectionId: scrollDownTargetSectionId, filteredSortedSection: filteredSortedSection, onClickEditSection: onClickEditSection })), mode !== 'EDIT' &&
|
56
57
|
(iframeSection ? ((0, jsx_runtime_1.jsx)(SectionMatcher_1.SectionMatcher, __assign({}, iframeSection), iframeSection.id)) : (filteredSortedSection.map(function (section) { return (0, jsx_runtime_1.jsx)(SectionMatcher_1.SectionMatcher, __assign({}, section), section.id); })))] })));
|
57
58
|
}
|
package/dist/src/sub/DynamicLayout/components/EditModeSectionMatcher/EditModeSectionMatcher.js
CHANGED
@@ -27,7 +27,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
27
27
|
Object.defineProperty(exports, "__esModule", { value: true });
|
28
28
|
var jsx_runtime_1 = require("react/jsx-runtime");
|
29
29
|
var react_1 = require("react");
|
30
|
-
var sections_1 = require("
|
30
|
+
var sections_1 = require("@sub/DynamicLayout/sections");
|
31
31
|
var SectionBox_1 = __importDefault(require("./SectionBox"));
|
32
32
|
function EditModeSectionMatcher(_a) {
|
33
33
|
var filteredSortedSection = _a.filteredSortedSection, scrollDownTargetSectionId = _a.scrollDownTargetSectionId, editingSectionId = _a.editingSectionId, dynamicLayoutRef = _a.dynamicLayoutRef, onClickEditSection = _a.onClickEditSection;
|
@@ -81,12 +81,9 @@ var TopRightAbsoluteBox = styled_components_1.default.div(templateObject_1 || (t
|
|
81
81
|
var theme = _a.theme;
|
82
82
|
return theme.ui_editor_preview_editing;
|
83
83
|
});
|
84
|
-
var S_SectionBox = styled_components_1.default.div(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n height: ", ";\n position: relative;\n
|
84
|
+
var S_SectionBox = styled_components_1.default.div(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n height: ", ";\n position: relative;\n"], ["\n height: ", ";\n position: relative;\n"])), function (_a) {
|
85
85
|
var isIframeSection = _a.isIframeSection;
|
86
86
|
return (isIframeSection ? '100%' : 'auto');
|
87
|
-
}, function (_a) {
|
88
|
-
var isEditing = _a.isEditing;
|
89
|
-
return (isEditing ? 3 : 1);
|
90
87
|
});
|
91
88
|
var DimmedEditOverlay = styled_components_1.default.div(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n align-items: center;\n animation: ", ";\n background-color: ", ";\n bottom: 0;\n cursor: pointer;\n display: flex;\n justify-content: center;\n left: 0;\n\n opacity: ", ";\n\n position: absolute;\n right: 0;\n top: 0;\n transition: opacity 0.2s ease-out;\n z-index: 10;\n\n @keyframes fadeOut {\n 0% {\n opacity: 1;\n }\n\n 50% {\n opacity: 0.6;\n }\n\n 100% {\n opacity: 0;\n }\n }\n"], ["\n align-items: center;\n animation: ", ";\n background-color: ", ";\n bottom: 0;\n cursor: pointer;\n display: flex;\n justify-content: center;\n left: 0;\n\n opacity: ", ";\n\n position: absolute;\n right: 0;\n top: 0;\n transition: opacity 0.2s ease-out;\n z-index: 10;\n\n @keyframes fadeOut {\n 0% {\n opacity: 1;\n }\n\n 50% {\n opacity: 0.6;\n }\n\n 100% {\n opacity: 0;\n }\n }\n"])), function (_a) {
|
92
89
|
var fadeOut = _a.fadeOut;
|
@@ -1,7 +1,7 @@
|
|
1
1
|
/// <reference types="react" />
|
2
2
|
import { CSSProperties } from 'styled-components';
|
3
|
-
import type { ISection } from '../../types';
|
4
|
-
type SectionPropTypes = ISection & {
|
3
|
+
import type { ISection, IComposition } from '../../types';
|
4
|
+
type SectionPropTypes = (ISection | IComposition) & {
|
5
5
|
children?: React.ReactNode;
|
6
6
|
} & {
|
7
7
|
overrideStyles?: CSSProperties;
|
@@ -20,8 +20,8 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
20
20
|
Object.defineProperty(exports, "__esModule", { value: true });
|
21
21
|
var jsx_runtime_1 = require("react/jsx-runtime");
|
22
22
|
var react_1 = require("react");
|
23
|
-
var util_1 = require("
|
24
|
-
var isNullOrUndefined_1 = __importDefault(require("
|
23
|
+
var util_1 = require("@sub/DynamicLayout/sections/CustomSection/util");
|
24
|
+
var isNullOrUndefined_1 = __importDefault(require("@sub/DynamicLayout/sections/CustomSection/util/isNullOrUndefined"));
|
25
25
|
var styled_components_1 = __importDefault(require("styled-components"));
|
26
26
|
var sectionContext_1 = require("../sectionContext");
|
27
27
|
var CustomSectionBackgroundMedia_1 = require("./CustomSectionBackgroundMedia");
|
package/dist/src/sub/DynamicLayout/components/Section/components/CustomSectionBackgroundMedia.d.ts
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
import { MutableRefObject } from 'react';
|
2
2
|
import { CSSProperties } from 'styled-components';
|
3
|
-
import type { Device } from '
|
4
|
-
import type { CB_STYLE_PROP_BGMEDIA_SPECS } from '
|
3
|
+
import type { Device } from '@sub/DynamicLayout/sections/CustomSection/util/types';
|
4
|
+
import type { CB_STYLE_PROP_BGMEDIA_SPECS } from '@sub/DynamicLayout/types';
|
5
5
|
type Props = {
|
6
6
|
specs: CB_STYLE_PROP_BGMEDIA_SPECS;
|
7
7
|
playerId: number;
|
package/dist/src/sub/DynamicLayout/components/Section/components/CustomSectionBackgroundMedia.js
CHANGED
@@ -41,7 +41,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
41
41
|
exports.CustomSectionBackgroundMedia = void 0;
|
42
42
|
var jsx_runtime_1 = require("react/jsx-runtime");
|
43
43
|
var react_1 = require("react");
|
44
|
-
var utils_1 = require("
|
44
|
+
var utils_1 = require("@sub/DynamicLayout/utils");
|
45
45
|
var styled_components_1 = __importStar(require("styled-components"));
|
46
46
|
var YouTubeIframe_1 = require("../../YouTubeIframe");
|
47
47
|
var util_1 = require("../util");
|
@@ -1,3 +1,3 @@
|
|
1
1
|
/// <reference types="react" />
|
2
|
-
import type { ISection } from '../../types';
|
3
|
-
export declare const sectionContext: import("react").Context<ISection | null>;
|
2
|
+
import type { IComposition, ISection } from '../../types';
|
3
|
+
export declare const sectionContext: import("react").Context<ISection | IComposition | null>;
|
package/dist/src/sub/DynamicLayout/components/Section/util/parseSectionBackgroundMediaData.d.ts
CHANGED
@@ -1,5 +1,5 @@
|
|
1
|
-
import type { Device } from '
|
2
|
-
import type { CB_STYLE_PROP_BGMEDIA_SPECS } from '
|
1
|
+
import type { Device } from '@sub/DynamicLayout/sections/CustomSection/util/types';
|
2
|
+
import type { CB_STYLE_PROP_BGMEDIA_SPECS } from '@sub/DynamicLayout/types';
|
3
3
|
type SpecKeys = keyof Omit<CB_STYLE_PROP_BGMEDIA_SPECS, 'CB_STYLE_PROP_BGMEDIA_SPEC_MPLAY'>;
|
4
4
|
type ValueSetType = Partial<Record<SpecKeys, string | number | boolean | undefined>>;
|
5
5
|
export default function UseCustomSectionBackgroundMediaData(specs: CB_STYLE_PROP_BGMEDIA_SPECS, device: Device): ValueSetType;
|
package/dist/src/sub/DynamicLayout/components/Section/util/parseSectionBackgroundMediaData.js
CHANGED
@@ -14,7 +14,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
14
14
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
15
15
|
};
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
17
|
-
var isNullOrUndefined_1 = __importDefault(require("
|
17
|
+
var isNullOrUndefined_1 = __importDefault(require("@sub/DynamicLayout/sections/CustomSection/util/isNullOrUndefined"));
|
18
18
|
var AVAILABLE_SPECS = [
|
19
19
|
'CB_STYLE_PROP_BGMEDIA_SPEC_YSRC',
|
20
20
|
'CB_STYLE_PROP_BGMEDIA_SPEC_TYPE',
|
@@ -26,7 +26,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
26
26
|
};
|
27
27
|
Object.defineProperty(exports, "__esModule", { value: true });
|
28
28
|
var jsx_runtime_1 = require("react/jsx-runtime");
|
29
|
-
var FlexGridCustomSection_1 = __importDefault(require("
|
29
|
+
var FlexGridCustomSection_1 = __importDefault(require("@sub/DynamicLayout/sections/FlexGridCustomSection"));
|
30
30
|
var sections_1 = require("../../sections");
|
31
31
|
function SectionMatcher(_a) {
|
32
32
|
var props = __rest(_a, []);
|
@@ -0,0 +1,139 @@
|
|
1
|
+
/// <reference types="react" />
|
2
|
+
import type { Layout } from 'publ-echo/dist/lib';
|
3
|
+
import type { ResizeEventType } from 'publ-echo/dist/lib/GridItem/types';
|
4
|
+
import type { ComponentBlock, GroupBlock } from 'publ-echo/dist/lib/GridLayoutEditor/group';
|
5
|
+
import type { LayoutItem, Layouts } from 'publ-echo/dist/lib/GridLayoutEditor/types';
|
6
|
+
export type TypeOfCompositionAction = ActionMap<ActionHandlerPayload>[keyof ActionMap<ActionHandlerPayload>];
|
7
|
+
export type PayloadCBType = {
|
8
|
+
type: ComponentBlock['type'];
|
9
|
+
blockId: string;
|
10
|
+
cbId: number;
|
11
|
+
workDir: string;
|
12
|
+
};
|
13
|
+
export type PayloadGBType = {
|
14
|
+
type: GroupBlock['type'];
|
15
|
+
blockId: string;
|
16
|
+
childrenBlockIds: string[];
|
17
|
+
childrenCBIds: number[];
|
18
|
+
workDir: string;
|
19
|
+
};
|
20
|
+
export type PayloadBulkType = {
|
21
|
+
type: 'BULK';
|
22
|
+
blockId: 'BULK';
|
23
|
+
childrenBlockIds: string[];
|
24
|
+
childrenCBIds: number[];
|
25
|
+
workDir: string;
|
26
|
+
groupDisabled: boolean;
|
27
|
+
};
|
28
|
+
export type BlockPayloadType = PayloadCBType | PayloadGBType | PayloadBulkType;
|
29
|
+
type ActionHandlerPayload = {
|
30
|
+
'@COMPOSITION/CB_DRAG_START': {
|
31
|
+
layout: Layout;
|
32
|
+
prev?: LayoutItem;
|
33
|
+
item?: LayoutItem;
|
34
|
+
placeholder?: LayoutItem;
|
35
|
+
e?: ResizeEventType;
|
36
|
+
node?: HTMLElement;
|
37
|
+
};
|
38
|
+
'@COMPOSITION/CB_DRAG_STOP': {
|
39
|
+
layout: Layout;
|
40
|
+
prev?: LayoutItem;
|
41
|
+
item?: LayoutItem;
|
42
|
+
placeholder?: LayoutItem;
|
43
|
+
e?: ResizeEventType;
|
44
|
+
node?: HTMLElement;
|
45
|
+
blockId: string;
|
46
|
+
workDir: string;
|
47
|
+
};
|
48
|
+
'@COMPOSITION/CB_RESIZE_STOP': {
|
49
|
+
layout: Layout;
|
50
|
+
prev?: LayoutItem;
|
51
|
+
item?: LayoutItem;
|
52
|
+
placeholder?: LayoutItem;
|
53
|
+
e?: ResizeEventType;
|
54
|
+
node?: HTMLElement;
|
55
|
+
blockId: string;
|
56
|
+
workDir: string;
|
57
|
+
};
|
58
|
+
'@COMPOSITION/CB_AUTO_FIT_CONTENT': {
|
59
|
+
layout: Layout;
|
60
|
+
prev?: LayoutItem;
|
61
|
+
item?: LayoutItem;
|
62
|
+
placeholder?: LayoutItem;
|
63
|
+
e?: ResizeEventType;
|
64
|
+
node?: HTMLElement;
|
65
|
+
details: {
|
66
|
+
hadPaddingChanged: boolean;
|
67
|
+
};
|
68
|
+
blockId: string;
|
69
|
+
workDir: string;
|
70
|
+
};
|
71
|
+
'@COMPOSITION/PLACEMENT_CHANGED': {
|
72
|
+
layout: Layout;
|
73
|
+
layouts: Layouts;
|
74
|
+
};
|
75
|
+
'@COMPOSITION/BLOCK_CLICKED': {
|
76
|
+
block: BlockPayloadType;
|
77
|
+
};
|
78
|
+
'@COMPOSITION/CB_RIGHT_CLICKED': {
|
79
|
+
e: React.MouseEvent;
|
80
|
+
block: BlockPayloadType;
|
81
|
+
};
|
82
|
+
'@COMPOSITION/SECTION_CLICKED': {
|
83
|
+
sectionId: number;
|
84
|
+
};
|
85
|
+
'@COMPOSITION/SECTION_RIGHT_CLICKED': {
|
86
|
+
sectionId: number;
|
87
|
+
e: React.MouseEvent;
|
88
|
+
};
|
89
|
+
'@COMPOSITION/GROUP_RIGHT_CLICKED': {
|
90
|
+
e: React.MouseEvent;
|
91
|
+
block: PayloadGBType;
|
92
|
+
isEditingGroup: boolean;
|
93
|
+
};
|
94
|
+
'@COMPOSITION/BULK_RIGHT_CLICKED': {
|
95
|
+
e: React.MouseEvent;
|
96
|
+
block: PayloadBulkType;
|
97
|
+
};
|
98
|
+
'@COMPOSITION/BULK_CREATED': {
|
99
|
+
message: string;
|
100
|
+
data: LayoutItem;
|
101
|
+
};
|
102
|
+
'@COMPOSITION/BULK_DISMISSED': {
|
103
|
+
message: string;
|
104
|
+
editingGroupBlock: string;
|
105
|
+
};
|
106
|
+
'@COMPOSITION/COLLISION_NOT_FOUND': {
|
107
|
+
message: string;
|
108
|
+
};
|
109
|
+
'@COMPOSITION/ESCAPE_ONE_FROM_BULK': {
|
110
|
+
id: string;
|
111
|
+
};
|
112
|
+
'@COMPOSITION/BULK_DRAG_STOP': {
|
113
|
+
updatedBlocks: UpdatedBlock[];
|
114
|
+
};
|
115
|
+
'@COMPOSITION/GROUP_DRAG_STOP': {
|
116
|
+
updatedBlocks: UpdatedBlock[];
|
117
|
+
workDir: string;
|
118
|
+
};
|
119
|
+
'@COMPOSITION/WORKDIR_CHANGED': {
|
120
|
+
workDir: string;
|
121
|
+
};
|
122
|
+
};
|
123
|
+
export type UpdatedBlock = {
|
124
|
+
blockId: string;
|
125
|
+
cbId: number;
|
126
|
+
x: number;
|
127
|
+
y: number;
|
128
|
+
};
|
129
|
+
type ActionMap<M extends {
|
130
|
+
[index: string]: any;
|
131
|
+
}> = {
|
132
|
+
[Key in keyof M]: M[Key] extends undefined ? {
|
133
|
+
type: Key;
|
134
|
+
} : {
|
135
|
+
type: Key;
|
136
|
+
payload: M[Key];
|
137
|
+
};
|
138
|
+
};
|
139
|
+
export {};
|