pds-dev-kit-web-test 2.7.116 → 2.7.117
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 +2 -2
- 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/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 +3 -3
- 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/DatePicker/DatePicker.d.ts +1 -1
- package/dist/src/mobile/components/DatePicker/DatePicker.js +2 -2
- package/dist/src/mobile/components/DatePicker/DatePickerHeader.d.ts +1 -1
- package/dist/src/mobile/components/DatePicker/Day.js +1 -1
- package/dist/src/mobile/components/DatePicker/utils.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/mobile/components/TextLabel/TextLabel.js +2 -2
- 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.js +2 -2
- package/dist/src/sub/DynamicLayout/CompositionRenderer/Composition.js +4 -4
- package/dist/src/sub/DynamicLayout/CompositionRenderer/FlexGridItem.d.ts +2 -4
- package/dist/src/sub/DynamicLayout/CompositionRenderer/FlexGridItem.js +5 -7
- package/dist/src/sub/DynamicLayout/CompositionRenderer/createCompositions.d.ts +1 -1
- package/dist/src/sub/DynamicLayout/GridAutoRowEditor/GridAutoRowEditor.js +30 -65
- package/dist/src/sub/DynamicLayout/components/EditModeSectionMatcher/EditModeSectionMatcher.js +1 -1
- 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 +2 -2
- package/dist/src/sub/DynamicLayout/components/Section/components/VideoBGMedia.js +1 -1
- 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/mock_componentBlocks.d.ts +0 -135
- package/dist/src/sub/DynamicLayout/mock_componentBlocks.js +1 -3
- package/dist/src/sub/DynamicLayout/mocks.js +3 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/CustomSection.js +5 -5
- package/dist/src/sub/DynamicLayout/sections/CustomSection/FlexGridItem.d.ts +1 -1
- package/dist/src/sub/DynamicLayout/sections/CustomSection/FlexGridItem.js +2 -2
- 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 -7
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsCarousel/ContentsCarousel.d.ts +2 -2
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsCarousel/ContentsCarousel.js +4 -4
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsCarousel/components/CustomNavigationNextBtn.js +1 -1
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsCarousel/components/CustomNavigationPrevBtn.js +1 -1
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsCarousel/components/navigationConfigs.d.ts +1 -1
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsCarousel/contentsCarouselUtils.d.ts +1 -1
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsCarousel/types.d.ts +1 -1
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsList/ContentsList.d.ts +2 -2
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsList/ContentsList.js +6 -7
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsList/components/paginationConfigs.js +1 -1
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsList/contentsListUtils.d.ts +1 -1
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsList/types.d.ts +1 -1
- 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 +2 -2
- 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 +2 -2
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/SlideBanner/SlideBanner.js +4 -4
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/SlideBanner/components/CustomNavigationNextBtn.js +1 -1
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/SlideBanner/components/CustomNavigationPrevBtn.js +1 -1
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/SlideBanner/components/CustomPagination.js +17 -15
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/SlideBanner/components/navigationConfigs.d.ts +1 -1
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/SlideBanner/slideBannerUtils.d.ts +1 -1
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/SlideBanner/types.d.ts +1 -1
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/Text/Text.d.ts +2 -2
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/Text/Text.js +6 -16
- 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/VideoPlayer/VideoPlayer.d.ts +1 -1
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/VideoPlayer/VideoPlayer.js +5 -5
- 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 +4 -7
- package/dist/src/sub/DynamicLayout/sections/CustomSection/hooks/useGoogleFonts/useGoogleFonts.js +1 -1
- package/dist/src/sub/DynamicLayout/sections/CustomSection/types.d.ts +1 -1
- package/dist/src/sub/DynamicLayout/sections/CustomSection/util/parseCompositionPlacement.d.ts +1 -1
- package/dist/src/sub/DynamicLayout/sections/CustomSection/util/parseJsonProperties.d.ts +1 -1
- package/dist/src/sub/DynamicLayout/sections/CustomSection/util/parsePlacement.d.ts +1 -1
- package/dist/src/sub/DynamicLayout/sections/CustomSection/util/types.d.ts +1 -1
- package/dist/src/sub/DynamicLayout/sections/FlexGridCustomSection.js +13 -31
- 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/SandollFontKit/types.d.ts +1 -1
- package/package.json +1 -1
- package/dist/src/sub/DynamicLayout/CompositionRenderer/FlexGridItemForCCB.d.ts +0 -14
- package/dist/src/sub/DynamicLayout/CompositionRenderer/FlexGridItemForCCB.js +0 -68
- package/dist/src/sub/DynamicLayout/utils/groupUtils.d.ts +0 -24
- package/dist/src/sub/DynamicLayout/utils/groupUtils.js +0 -224
- /package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/{ComponentBlockMatcherWithCCB.d.ts → ComponentBlockMatcher.d.ts} +0 -0
- /package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/{ComponentBlockMatcherWithCCB.js → ComponentBlockMatcher.js} +0 -0
|
@@ -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 Section_1 = require("
|
|
24
|
-
var components_1 = require("
|
|
23
|
+
var Section_1 = require("@sub/DynamicLayout/components/Section");
|
|
24
|
+
var components_1 = require("@sub/DynamicLayout/sections/MembershipSection/components");
|
|
25
25
|
var styled_components_1 = __importDefault(require("styled-components"));
|
|
26
26
|
function SectionContents() {
|
|
27
27
|
var section = (0, react_1.useContext)(Section_1.sectionContext);
|
|
@@ -9,7 +9,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
9
9
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
10
|
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
11
11
|
var react_1 = require("react");
|
|
12
|
-
var dynamicLayoutContext_1 = require("
|
|
12
|
+
var dynamicLayoutContext_1 = require("@sub/DynamicLayout/dynamicLayoutContext");
|
|
13
13
|
var styled_components_1 = __importDefault(require("styled-components"));
|
|
14
14
|
var SectionContents_1 = __importDefault(require("./components/SectionContents"));
|
|
15
15
|
function TemplateA() {
|
|
@@ -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 Section_1 = require("
|
|
24
|
-
var components_1 = require("
|
|
23
|
+
var Section_1 = require("@sub/DynamicLayout/components/Section");
|
|
24
|
+
var components_1 = require("@sub/DynamicLayout/sections/MembershipSection/components");
|
|
25
25
|
var styled_components_1 = __importDefault(require("styled-components"));
|
|
26
26
|
function SectionContents() {
|
|
27
27
|
var section = (0, react_1.useContext)(Section_1.sectionContext);
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
4
4
|
var react_1 = require("react");
|
|
5
|
-
var dynamicLayoutContext_1 = require("
|
|
5
|
+
var dynamicLayoutContext_1 = require("@sub/DynamicLayout/dynamicLayoutContext");
|
|
6
6
|
var desktop_1 = require("./desktop");
|
|
7
7
|
var mobile_1 = require("./mobile");
|
|
8
8
|
function TemplateB() {
|
|
@@ -9,7 +9,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
9
9
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
10
|
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
11
11
|
var react_1 = require("react");
|
|
12
|
-
var dynamicLayoutContext_1 = require("
|
|
12
|
+
var dynamicLayoutContext_1 = require("@sub/DynamicLayout/dynamicLayoutContext");
|
|
13
13
|
var styled_components_1 = __importDefault(require("styled-components"));
|
|
14
14
|
var SectionContents_1 = __importDefault(require("./components/SectionContents"));
|
|
15
15
|
function TemplateB() {
|
|
@@ -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 Section_1 = require("
|
|
24
|
-
var components_1 = require("
|
|
23
|
+
var Section_1 = require("@sub/DynamicLayout/components/Section");
|
|
24
|
+
var components_1 = require("@sub/DynamicLayout/sections/MembershipSection/components");
|
|
25
25
|
var styled_components_1 = __importDefault(require("styled-components"));
|
|
26
26
|
function SectionContents() {
|
|
27
27
|
var section = (0, react_1.useContext)(Section_1.sectionContext);
|
|
@@ -9,7 +9,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
9
9
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
10
|
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
11
11
|
var react_1 = require("react");
|
|
12
|
-
var dynamicLayoutContext_1 = require("
|
|
12
|
+
var dynamicLayoutContext_1 = require("@sub/DynamicLayout/dynamicLayoutContext");
|
|
13
13
|
var styled_components_1 = __importDefault(require("styled-components"));
|
|
14
14
|
var SectionContents_1 = __importDefault(require("./components/SectionContents"));
|
|
15
15
|
function TemplateB() {
|
|
@@ -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 Section_1 = require("
|
|
24
|
-
var components_1 = require("
|
|
23
|
+
var Section_1 = require("@sub/DynamicLayout/components/Section");
|
|
24
|
+
var components_1 = require("@sub/DynamicLayout/sections/MembershipSection/components");
|
|
25
25
|
var styled_components_1 = __importDefault(require("styled-components"));
|
|
26
26
|
function SectionContents() {
|
|
27
27
|
var section = (0, react_1.useContext)(Section_1.sectionContext);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import type { PDSIconType } from '
|
|
3
|
-
import type { TextLabelProps } from '
|
|
4
|
-
import type { IItemButton, IItemDescription, IItemTitle, IMembershipCardTemplate } from '
|
|
2
|
+
import type { PDSIconType } from '@sub/DynamicLayout/components/pdsOriginal/common';
|
|
3
|
+
import type { TextLabelProps } from '@sub/DynamicLayout/components/pdsOriginal/desktop/TextLabel/TextLabel';
|
|
4
|
+
import type { IItemButton, IItemDescription, IItemTitle, IMembershipCardTemplate } from '@sub/DynamicLayout/types';
|
|
5
5
|
declare function MembershipSectionItem(): JSX.Element;
|
|
6
6
|
declare namespace MembershipSectionItem {
|
|
7
7
|
var Title: ({ text, color, lineHeight, ...textLabelProps }: IItemTitle & TextLabelProps & {
|
|
@@ -51,8 +51,8 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
|
51
51
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
52
52
|
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
53
53
|
var react_1 = require("react");
|
|
54
|
-
var pdsOriginal_1 = require("
|
|
55
|
-
var dynamicLayoutContext_1 = require("
|
|
54
|
+
var pdsOriginal_1 = require("@sub/DynamicLayout/components/pdsOriginal");
|
|
55
|
+
var dynamicLayoutContext_1 = require("@sub/DynamicLayout/dynamicLayoutContext");
|
|
56
56
|
var styled_components_1 = __importStar(require("styled-components"));
|
|
57
57
|
var constants_1 = require("../../constants");
|
|
58
58
|
function MembershipSectionItem() {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import type { PDSIconType } from '
|
|
3
|
-
import type { TextLabelProps } from '
|
|
4
|
-
import type { IItemButton, IItemDescription, IItemTitle, IMembershipCardTemplate } from '
|
|
2
|
+
import type { PDSIconType } from '@sub/DynamicLayout/components/pdsOriginal/common';
|
|
3
|
+
import type { TextLabelProps } from '@sub/DynamicLayout/components/pdsOriginal/desktop/TextLabel/TextLabel';
|
|
4
|
+
import type { IItemButton, IItemDescription, IItemTitle, IMembershipCardTemplate } from '@sub/DynamicLayout/types';
|
|
5
5
|
declare function MembershipSectionItem(): JSX.Element;
|
|
6
6
|
declare namespace MembershipSectionItem {
|
|
7
7
|
var Title: ({ text, color, lineHeight, ...textLabelProps }: IItemTitle & TextLabelProps & {
|
|
@@ -51,8 +51,8 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
|
51
51
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
52
52
|
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
53
53
|
var react_1 = require("react");
|
|
54
|
-
var pdsOriginal_1 = require("
|
|
55
|
-
var dynamicLayoutContext_1 = require("
|
|
54
|
+
var pdsOriginal_1 = require("@sub/DynamicLayout/components/pdsOriginal");
|
|
55
|
+
var dynamicLayoutContext_1 = require("@sub/DynamicLayout/dynamicLayoutContext");
|
|
56
56
|
var styled_components_1 = __importStar(require("styled-components"));
|
|
57
57
|
var constants_1 = require("../../constants");
|
|
58
58
|
function MembershipSectionItem() {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { TypeOfMembershipSectionToneColor } from './type';
|
|
2
|
-
import type { SubscriptionProductType, TypeOfItemToneType, TypeOfProgrammedItemActionButtonTextType } from '
|
|
2
|
+
import type { SubscriptionProductType, TypeOfItemToneType, TypeOfProgrammedItemActionButtonTextType } from '@sub/DynamicLayout/types';
|
|
3
3
|
export declare const MEMBERSHIP_SECTION_PREVIEW_WIDTH = 375;
|
|
4
4
|
export declare const COMMON_OVERLAY_IMAGE_SRC = "https://static.publ.site/membership_card_deco.png";
|
|
5
5
|
export declare const MEMBERSHIP_SECTION_TONE_COLOR: {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { SandollFont } from './api/types';
|
|
2
|
-
import type { PDSIconType } from '
|
|
2
|
+
import type { PDSIconType } from '@common/types';
|
|
3
3
|
export type SANDOLL_Font = SandollFont;
|
|
4
4
|
export type SANDOLL_CategoryType = 'buri' | 'min-buri' | 'slab' | 'round' | 'script' | 'deco' | 'symbol' | 'blackLetter' | 'display';
|
|
5
5
|
export type SANDOLL_SortOptionType = 'date' | 'alpha';
|
package/package.json
CHANGED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import type { ComponentBlock } from '../sections/CustomSection/types';
|
|
3
|
-
import type { Device } from '../sections/CustomSection/util/types';
|
|
4
|
-
type Props = {
|
|
5
|
-
cb: ComponentBlock;
|
|
6
|
-
index: number;
|
|
7
|
-
device: Device;
|
|
8
|
-
rowHeight: number;
|
|
9
|
-
zIndex: number;
|
|
10
|
-
showPinned?: boolean;
|
|
11
|
-
style?: React.CSSProperties;
|
|
12
|
-
};
|
|
13
|
-
declare function FlexGridItem({ cb, index, device, rowHeight, zIndex, showPinned, style }: Props): JSX.Element;
|
|
14
|
-
export default FlexGridItem;
|
|
@@ -1,68 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cooked, raw) {
|
|
3
|
-
if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
|
|
4
|
-
return cooked;
|
|
5
|
-
};
|
|
6
|
-
var __assign = (this && this.__assign) || function () {
|
|
7
|
-
__assign = Object.assign || function(t) {
|
|
8
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
9
|
-
s = arguments[i];
|
|
10
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
11
|
-
t[p] = s[p];
|
|
12
|
-
}
|
|
13
|
-
return t;
|
|
14
|
-
};
|
|
15
|
-
return __assign.apply(this, arguments);
|
|
16
|
-
};
|
|
17
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
18
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
19
|
-
};
|
|
20
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
21
|
-
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
22
|
-
var react_1 = require("react");
|
|
23
|
-
var styled_components_1 = __importDefault(require("styled-components"));
|
|
24
|
-
var ComponentBlockMatcher_1 = __importDefault(require("./ComponentBlockMatcher"));
|
|
25
|
-
var gap = 10;
|
|
26
|
-
function FlexGridItem(_a) {
|
|
27
|
-
var cb = _a.cb, index = _a.index, device = _a.device, rowHeight = _a.rowHeight, zIndex = _a.zIndex, showPinned = _a.showPinned, style = _a.style;
|
|
28
|
-
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
29
|
-
var defaultHeight = getMaxHeight(cb.jsonProperties.data.CB_PLACEMENT_PROP_PLACEMENT, device, rowHeight);
|
|
30
|
-
var gridArea = getGridAreaFromCB(cb.jsonProperties.data.CB_PLACEMENT_PROP_PLACEMENT, device);
|
|
31
|
-
var _b = (0, react_1.useState)(false), isPinned = _b[0], setIsPinned = _b[1];
|
|
32
|
-
return ((0, jsx_runtime_1.jsxs)(GridItem, __assign({ style: __assign({ zIndex: zIndex, gridArea: gridArea, position: 'relative', maxHeight: isPinned ? defaultHeight : 'none' }, style) }, { children: [showPinned && ((0, jsx_runtime_1.jsx)(S_Pinned, { children: isPinned ? ((0, jsx_runtime_1.jsx)("button", __assign({ type: "button", onClick: function () { return setIsPinned(false); } }, { children: "H\uACE0\uC815\uB428 \uD83D\uDCCC" }))) : ((0, jsx_runtime_1.jsx)("button", __assign({ type: "button", onClick: function () { return setIsPinned(true); } }, { children: "H\uB298\uC5B4\uB0A8 \uD83E\uDEB1" }))) })), (0, jsx_runtime_1.jsx)(ComponentBlockMatcher_1.default, { rowHeight: rowHeight, cbProps: cb, device: device, index: index })] })));
|
|
33
|
-
}
|
|
34
|
-
var S_Pinned = styled_components_1.default.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n pointer-events: auto;\n position: absolute;\n right: 0;\n top: 0;\n z-index: 9999999;\n"], ["\n pointer-events: auto;\n position: absolute;\n right: 0;\n top: 0;\n z-index: 9999999;\n"])));
|
|
35
|
-
var GridItem = styled_components_1.default.div(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n height: auto;\n word-break: break-word;\n"], ["\n height: auto;\n word-break: break-word;\n"])));
|
|
36
|
-
function getMaxHeight(props, device, rowHeight) {
|
|
37
|
-
if (device === 'DESKTOP') {
|
|
38
|
-
var CB_PLACEMENT_PROP_PLACEMENT_SPEC_ROWS = props.CB_PLACEMENT_PROP_PLACEMENT_SPEC_ROWS;
|
|
39
|
-
var height_1 = CB_PLACEMENT_PROP_PLACEMENT_SPEC_ROWS * rowHeight +
|
|
40
|
-
(CB_PLACEMENT_PROP_PLACEMENT_SPEC_ROWS - 1) * gap;
|
|
41
|
-
return height_1;
|
|
42
|
-
}
|
|
43
|
-
var rowsMobile = props['CB_PLACEMENT_PROP_PLACEMENT_SPEC_ROWS:MOBILE'];
|
|
44
|
-
var height = rowsMobile * rowHeight + (rowsMobile - 1) * gap;
|
|
45
|
-
return height;
|
|
46
|
-
}
|
|
47
|
-
function getGridAreaFromCB(props, device) {
|
|
48
|
-
var CB_PLACEMENT_PROP_PLACEMENT_SPEC_STARTX = props.CB_PLACEMENT_PROP_PLACEMENT_SPEC_STARTX, CB_PLACEMENT_PROP_PLACEMENT_SPEC_STARTY = props.CB_PLACEMENT_PROP_PLACEMENT_SPEC_STARTY, cols = props.CB_PLACEMENT_PROP_PLACEMENT_SPEC_COLS, rows = props.CB_PLACEMENT_PROP_PLACEMENT_SPEC_ROWS;
|
|
49
|
-
if (device === 'DESKTOP') {
|
|
50
|
-
var colStart_1 = CB_PLACEMENT_PROP_PLACEMENT_SPEC_STARTX + 1;
|
|
51
|
-
var rowStart_1 = CB_PLACEMENT_PROP_PLACEMENT_SPEC_STARTY + 1;
|
|
52
|
-
var rowEnd_1 = rows + rowStart_1;
|
|
53
|
-
var colEnd_1 = cols + colStart_1;
|
|
54
|
-
// <grid-row-start> / <grid-column-start> / <grid-row-end> / <grid-column-end>;
|
|
55
|
-
return "".concat(rowStart_1, " / ").concat(colStart_1, " / ").concat(rowEnd_1, " / ").concat(colEnd_1);
|
|
56
|
-
}
|
|
57
|
-
var startXMobile = props['CB_PLACEMENT_PROP_PLACEMENT_SPEC_STARTX:MOBILE'];
|
|
58
|
-
var startYMobile = props['CB_PLACEMENT_PROP_PLACEMENT_SPEC_STARTY:MOBILE'];
|
|
59
|
-
var colsMobile = props['CB_PLACEMENT_PROP_PLACEMENT_SPEC_COLS:MOBILE'];
|
|
60
|
-
var rowsMobile = props['CB_PLACEMENT_PROP_PLACEMENT_SPEC_ROWS:MOBILE'];
|
|
61
|
-
var colStart = startXMobile + 1;
|
|
62
|
-
var rowStart = startYMobile + 1;
|
|
63
|
-
var rowEnd = rowsMobile + rowStart;
|
|
64
|
-
var colEnd = colsMobile + colStart;
|
|
65
|
-
return "".concat(rowStart, " / ").concat(colStart, " / ").concat(rowEnd, " / ").concat(colEnd);
|
|
66
|
-
}
|
|
67
|
-
exports.default = FlexGridItem;
|
|
68
|
-
var templateObject_1, templateObject_2;
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import type { ComponentBlock } from '../sections/CustomSection/types';
|
|
3
|
-
import type { Device } from '../sections/CustomSection/util/types';
|
|
4
|
-
import type { LayoutItem } from 'publ-echo/dist/lib';
|
|
5
|
-
import type { Block } from 'publ-echo/dist/lib/GridLayoutEditor/group';
|
|
6
|
-
export declare function findAllChildrenCbIds(block: Block, targetGroupId: string): number[];
|
|
7
|
-
export default function RenderPedigreeRecursively({ isEditMode, block, layoutItems, cbs, parentGroupArea, rowHeight, device, selectedRows, pinnedGBs, isParentGroupPinned, onToggleGBPinned }: {
|
|
8
|
-
isEditMode: boolean;
|
|
9
|
-
block: Block;
|
|
10
|
-
layoutItems: LayoutItem[];
|
|
11
|
-
cbs: ComponentBlock[];
|
|
12
|
-
rowHeight: number;
|
|
13
|
-
device: Device;
|
|
14
|
-
selectedRows: number[];
|
|
15
|
-
pinnedGBs: string[];
|
|
16
|
-
onToggleGBPinned: (gbId: string) => void;
|
|
17
|
-
isParentGroupPinned?: boolean;
|
|
18
|
-
parentGroupArea?: {
|
|
19
|
-
rowStart: number;
|
|
20
|
-
colStart: number;
|
|
21
|
-
rowEnd: number;
|
|
22
|
-
colEnd: number;
|
|
23
|
-
};
|
|
24
|
-
}): JSX.Element;
|
|
@@ -1,224 +0,0 @@
|
|
|
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
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
20
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
21
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
22
|
-
}
|
|
23
|
-
Object.defineProperty(o, k2, desc);
|
|
24
|
-
}) : (function(o, m, k, k2) {
|
|
25
|
-
if (k2 === undefined) k2 = k;
|
|
26
|
-
o[k2] = m[k];
|
|
27
|
-
}));
|
|
28
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
29
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
30
|
-
}) : function(o, v) {
|
|
31
|
-
o["default"] = v;
|
|
32
|
-
});
|
|
33
|
-
var __importStar = (this && this.__importStar) || function (mod) {
|
|
34
|
-
if (mod && mod.__esModule) return mod;
|
|
35
|
-
var result = {};
|
|
36
|
-
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
37
|
-
__setModuleDefault(result, mod);
|
|
38
|
-
return result;
|
|
39
|
-
};
|
|
40
|
-
var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
|
|
41
|
-
if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
|
|
42
|
-
if (ar || !(i in from)) {
|
|
43
|
-
if (!ar) ar = Array.prototype.slice.call(from, 0, i);
|
|
44
|
-
ar[i] = from[i];
|
|
45
|
-
}
|
|
46
|
-
}
|
|
47
|
-
return to.concat(ar || Array.prototype.slice.call(from));
|
|
48
|
-
};
|
|
49
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
50
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
51
|
-
};
|
|
52
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
53
|
-
exports.findAllChildrenCbIds = void 0;
|
|
54
|
-
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
55
|
-
var renderHelpers_1 = require("publ-echo-test/dist/lib/GridLayoutEditor/utils/renderHelpers");
|
|
56
|
-
var styled_components_1 = __importDefault(require("styled-components"));
|
|
57
|
-
var ErrorBoundary_1 = require("../components/Section/ErrorBoundary");
|
|
58
|
-
var FlexGridItem_1 = __importStar(require("../CompositionRenderer/FlexGridItem"));
|
|
59
|
-
function findAllChildrenCbIds(block, targetGroupId) {
|
|
60
|
-
// 현재 블록이 target group이면, 모든 하위 컴포넌트 블록 ID를 수집
|
|
61
|
-
if (block.blockId === targetGroupId) {
|
|
62
|
-
if (block.type === 'COMPONENT_BLOCK') {
|
|
63
|
-
return [block.componentBlockId];
|
|
64
|
-
}
|
|
65
|
-
// GROUP_BLOCK인 경우 모든 자식들의 ID를 재귀적으로 수집
|
|
66
|
-
return block.children.reduce(function (acc, child) {
|
|
67
|
-
return __spreadArray(__spreadArray([], acc, true), findAllChildrenCbIds(child, child.blockId), true);
|
|
68
|
-
}, []);
|
|
69
|
-
}
|
|
70
|
-
// 현재 블록이 target group이 아니고 COMPONENT_BLOCK이면 빈 배열 반환
|
|
71
|
-
if (block.type === 'COMPONENT_BLOCK') {
|
|
72
|
-
return [];
|
|
73
|
-
}
|
|
74
|
-
// GROUP_BLOCK이면 자식들에 대해 재귀적으로 탐색
|
|
75
|
-
return block.children.reduce(function (acc, child) {
|
|
76
|
-
return __spreadArray(__spreadArray([], acc, true), findAllChildrenCbIds(child, targetGroupId), true);
|
|
77
|
-
}, []);
|
|
78
|
-
}
|
|
79
|
-
exports.findAllChildrenCbIds = findAllChildrenCbIds;
|
|
80
|
-
function RenderPedigreeRecursively(_a) {
|
|
81
|
-
var isEditMode = _a.isEditMode, block = _a.block, layoutItems = _a.layoutItems, cbs = _a.cbs, parentGroupArea = _a.parentGroupArea, rowHeight = _a.rowHeight, device = _a.device, selectedRows = _a.selectedRows, pinnedGBs = _a.pinnedGBs, _b = _a.isParentGroupPinned, isParentGroupPinned = _b === void 0 ? false : _b, onToggleGBPinned = _a.onToggleGBPinned;
|
|
82
|
-
var type = block.type;
|
|
83
|
-
if (type === 'GROUP_BLOCK') {
|
|
84
|
-
var childrenIds = findAllChildrenCbIds(block, block.blockId).map(function (i) { return i.toString(); });
|
|
85
|
-
var bounding_1 = (0, renderHelpers_1.getBoundingArea)(layoutItems, childrenIds);
|
|
86
|
-
if (!bounding_1) {
|
|
87
|
-
return (0, jsx_runtime_1.jsx)("div", { children: "GROUP: NO BOUNDING AREA" });
|
|
88
|
-
}
|
|
89
|
-
var gridArea_1 = getGridAreaFromGroup({
|
|
90
|
-
x: bounding_1.x,
|
|
91
|
-
y: bounding_1.y,
|
|
92
|
-
cols: bounding_1.w,
|
|
93
|
-
rows: bounding_1.h
|
|
94
|
-
});
|
|
95
|
-
var relativeGridArea_1 = parentGroupArea
|
|
96
|
-
? calculateRelativeGridArea(gridArea_1, parentGroupArea)
|
|
97
|
-
: gridArea_1;
|
|
98
|
-
// 그룹의 시작 행을 기준으로 상대적인 selectedRows 계산
|
|
99
|
-
var relativeSelectedRows_1 = selectedRows
|
|
100
|
-
.map(function (row) { return row - gridArea_1.rowStart + 1; })
|
|
101
|
-
.filter(function (row) { return row >= 0 && row <= bounding_1.h; });
|
|
102
|
-
var isGBPinned_1 = pinnedGBs.includes(block.blockId);
|
|
103
|
-
var defaultHeight = getMaxHeight({ cols: bounding_1.w, rows: bounding_1.h, x: bounding_1.x, y: bounding_1.y }, rowHeight);
|
|
104
|
-
return ((0, jsx_runtime_1.jsxs)(S_GroupItem, __assign({ cols: bounding_1.w, sectionRow: bounding_1.h, isEditMode: isEditMode, rowHeight: rowHeight, selectedRows: relativeSelectedRows_1, style: {
|
|
105
|
-
gridArea: gridAreaObjToString(relativeGridArea_1),
|
|
106
|
-
display: 'grid',
|
|
107
|
-
zIndex: device === 'DESKTOP'
|
|
108
|
-
? block.zOrderDesktopInternal
|
|
109
|
-
: block.zOrderMobileInternal,
|
|
110
|
-
maxHeight: isGBPinned_1 ? defaultHeight : 'none'
|
|
111
|
-
} }, { children: [isEditMode && ((0, jsx_runtime_1.jsx)(S_Pinned, { children: isGBPinned_1 ? ((0, jsx_runtime_1.jsx)("button", __assign({ type: "button", onClick: function () { return onToggleGBPinned(block.blockId); } }, { children: "H\uACE0\uC815\uB428 \uD83D\uDCCC" }))) : ((0, jsx_runtime_1.jsx)("button", __assign({ type: "button", onClick: function () { return onToggleGBPinned(block.blockId); } }, { children: "H\uB298\uC5B4\uB0A8 \uD83E\uDEB1" }))) })), block.children.map(function (child) { return ((0, jsx_runtime_1.jsx)(RenderPedigreeRecursively, { rowHeight: rowHeight, block: child, layoutItems: layoutItems, cbs: cbs, parentGroupArea: gridArea_1, device: device, selectedRows: relativeSelectedRows_1, pinnedGBs: pinnedGBs, onToggleGBPinned: onToggleGBPinned, isEditMode: isEditMode, isParentGroupPinned: isGBPinned_1 }, child.blockId)); })] })));
|
|
112
|
-
}
|
|
113
|
-
// default: TYPE === 'COMPONENT_BLOCK'
|
|
114
|
-
var cbIndex = cbs.findIndex(function (c) { return c.blockId === block.blockId; });
|
|
115
|
-
var cb = cbs[cbIndex];
|
|
116
|
-
if (!cb) {
|
|
117
|
-
return (0, jsx_runtime_1.jsxs)("div", { children: ["NO CB FOUND FOR ", block.blockId] });
|
|
118
|
-
}
|
|
119
|
-
var originalGridAreaString = (0, FlexGridItem_1.getGridAreaFromCB)(cb.jsonProperties.data.CB_PLACEMENT_PROP_PLACEMENT, device);
|
|
120
|
-
var originalGridArea = parseGridArea(originalGridAreaString);
|
|
121
|
-
// 부모 그룹이 있는 경우, 상대적 위치 계산
|
|
122
|
-
var relativeGridArea = parentGroupArea
|
|
123
|
-
? calculateRelativeGridArea(originalGridArea, parentGroupArea)
|
|
124
|
-
: originalGridArea;
|
|
125
|
-
return (
|
|
126
|
-
// <S_GridItem
|
|
127
|
-
// style={{
|
|
128
|
-
// gridArea: gridAreaObjToString(relativeGridArea)
|
|
129
|
-
// }}
|
|
130
|
-
// data-og-grid-area={originalGridAreaString}
|
|
131
|
-
// data-rel-grid-area={gridAreaObjToString(relativeGridArea)}
|
|
132
|
-
// >
|
|
133
|
-
(0, jsx_runtime_1.jsx)(ErrorBoundary_1.ErrorBoundary, { children: (0, jsx_runtime_1.jsx)(FlexGridItem_1.default, { cb: cb, index: cbIndex, device: device, rowHeight: rowHeight, zIndex: device === 'DESKTOP'
|
|
134
|
-
? block.zOrderDesktopInternal
|
|
135
|
-
: block.zOrderMobileInternal, style: {
|
|
136
|
-
gridArea: gridAreaObjToString(relativeGridArea),
|
|
137
|
-
pointerEvents: isEditMode ? 'none' : 'auto',
|
|
138
|
-
boxShadow: isEditMode ? '0 0 0 2px red' : ''
|
|
139
|
-
}, showPinned: isEditMode && !parentGroupArea, isParentGroupPinned: isParentGroupPinned }) }, cb.id)
|
|
140
|
-
// </S_GridItem>
|
|
141
|
-
);
|
|
142
|
-
}
|
|
143
|
-
exports.default = RenderPedigreeRecursively;
|
|
144
|
-
var S_Pinned = styled_components_1.default.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n pointer-events: auto;\n position: absolute;\n right: 0;\n top: 0;\n z-index: 9999999;\n"], ["\n pointer-events: auto;\n position: absolute;\n right: 0;\n top: 0;\n z-index: 9999999;\n"])));
|
|
145
|
-
function clamp(num, min, max) {
|
|
146
|
-
return Math.max(Math.min(num, max), min);
|
|
147
|
-
}
|
|
148
|
-
function gridAreaObjToString(area) {
|
|
149
|
-
var rowStart = area.rowStart, colStart = area.colStart, rowEnd = area.rowEnd, colEnd = area.colEnd;
|
|
150
|
-
return "".concat(rowStart, " / ").concat(colStart, " / ").concat(rowEnd, " / ").concat(colEnd);
|
|
151
|
-
}
|
|
152
|
-
function getGridAreaFromGroup(position) {
|
|
153
|
-
var x = position.x, y = position.y, cols = position.cols, rows = position.rows;
|
|
154
|
-
var colStart = clamp(x + 1, 1, Math.max(1, 25 - cols));
|
|
155
|
-
var rowStart = clamp(y + 1, 1, Infinity);
|
|
156
|
-
var rowEnd = clamp(rows + rowStart, rowStart + 1, Infinity);
|
|
157
|
-
var colEnd = clamp(colStart + cols, colStart + 1, 25);
|
|
158
|
-
return {
|
|
159
|
-
rowStart: rowStart,
|
|
160
|
-
colStart: colStart,
|
|
161
|
-
rowEnd: rowEnd,
|
|
162
|
-
colEnd: colEnd
|
|
163
|
-
};
|
|
164
|
-
// const startXMobile = props['CB_PLACEMENT_PROP_PLACEMENT_SPEC_STARTX:MOBILE'];
|
|
165
|
-
// const startYMobile = props['CB_PLACEMENT_PROP_PLACEMENT_SPEC_STARTY:MOBILE'];
|
|
166
|
-
// const colsMobile = props['CB_PLACEMENT_PROP_PLACEMENT_SPEC_COLS:MOBILE'];
|
|
167
|
-
// const rowsMobile = props['CB_PLACEMENT_PROP_PLACEMENT_SPEC_ROWS:MOBILE'];
|
|
168
|
-
// const colStart = clamp(startXMobile + 1, 1, Math.max(1, 9 - colsMobile));
|
|
169
|
-
// const rowStart = clamp(startYMobile + 1, 1, Infinity);
|
|
170
|
-
// const rowEnd = clamp(rowsMobile + rowStart, rowStart + 1, Infinity);
|
|
171
|
-
// const colEnd = clamp(colStart + colsMobile, colStart + 1, 9);
|
|
172
|
-
// return `${rowStart} / ${colStart} / ${rowEnd} / ${colEnd}`;
|
|
173
|
-
}
|
|
174
|
-
/**
|
|
175
|
-
* grid-area 문자열을 파싱하여 객체로 변환합니다.
|
|
176
|
-
* 예: "1 / 2 / 3 / 4" => { rowStart: 1, colStart: 2, rowEnd: 3, colEnd: 4 }
|
|
177
|
-
*/
|
|
178
|
-
function parseGridArea(gridArea) {
|
|
179
|
-
var _a = gridArea
|
|
180
|
-
.split('/')
|
|
181
|
-
.map(function (str) { return parseInt(str.trim(), 10); }), rowStart = _a[0], colStart = _a[1], rowEnd = _a[2], colEnd = _a[3];
|
|
182
|
-
return { rowStart: rowStart, colStart: colStart, rowEnd: rowEnd, colEnd: colEnd };
|
|
183
|
-
}
|
|
184
|
-
/**
|
|
185
|
-
* 부모 그룹 영역을 기준으로 컴포넌트의 상대적 위치를 계산합니다.
|
|
186
|
-
* 예: 부모가 row 21에서 시작하고 컴포넌트가 row 21에 있다면, 상대적으로는 row 1에 위치하게 됩니다.
|
|
187
|
-
*/
|
|
188
|
-
function calculateRelativeGridArea(componentArea, parentArea) {
|
|
189
|
-
return {
|
|
190
|
-
// 컴포넌트의 시작 위치에서 부모의 시작 위치를 빼서 상대적 위치 계산
|
|
191
|
-
rowStart: componentArea.rowStart - parentArea.rowStart + 1,
|
|
192
|
-
colStart: componentArea.colStart - parentArea.colStart + 1,
|
|
193
|
-
// 상대적 끝 위치도 같은 방식으로 계산
|
|
194
|
-
rowEnd: componentArea.rowEnd - parentArea.rowStart + 1,
|
|
195
|
-
colEnd: componentArea.colEnd - parentArea.colStart + 1
|
|
196
|
-
};
|
|
197
|
-
}
|
|
198
|
-
function getMaxHeight(props, rowHeight) {
|
|
199
|
-
var gap = 10;
|
|
200
|
-
var rows = props.rows;
|
|
201
|
-
var height = rows * rowHeight + (rows - 1) * gap;
|
|
202
|
-
return height;
|
|
203
|
-
// if (device === 'DESKTOP') {
|
|
204
|
-
// const { rows } = props;
|
|
205
|
-
// const height = rows * rowHeight + (rows - 1) * gap;
|
|
206
|
-
// return height;
|
|
207
|
-
// }
|
|
208
|
-
// const rowsMobile = props['CB_PLACEMENT_PROP_PLACEMENT_SPEC_ROWS:MOBILE'];
|
|
209
|
-
// const height = rowsMobile * rowHeight + (rowsMobile - 1) * gap;
|
|
210
|
-
// return height;
|
|
211
|
-
}
|
|
212
|
-
var S_GroupItem = styled_components_1.default.div(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n box-shadow: ", ";\n gap: 10px;\n grid-template-columns: repeat(", ", 1fr);\n grid-template-rows: ", ";\n pointer-events: none;\n position: relative; /* \uBC30\uC5F4\uC744 \uACF5\uBC31\uC73C\uB85C \uAD6C\uBD84\uB41C \uBB38\uC790\uC5F4\uB85C \uD569\uCE69\uB2C8\uB2E4. */\n"], ["\n box-shadow: ", ";\n gap: 10px;\n grid-template-columns: repeat(", ", 1fr);\n grid-template-rows: ", ";\n pointer-events: none;\n position: relative; /* \uBC30\uC5F4\uC744 \uACF5\uBC31\uC73C\uB85C \uAD6C\uBD84\uB41C \uBB38\uC790\uC5F4\uB85C \uD569\uCE69\uB2C8\uB2E4. */\n"])), function (props) { return (props.isEditMode ? '0 0 0 2px blue' : 'none'); }, function (props) { return props.cols; }, function (props) {
|
|
213
|
-
// // 전체 행 개수만큼 배열을 생성하여 각 행의 CSS 값을 정의합니다.
|
|
214
|
-
return Array.from({ length: props.sectionRow })
|
|
215
|
-
.map(function (_, index) {
|
|
216
|
-
// props로 받은 selectedRows 배열에 현재 행(index)이 포함되어 있는지 확인합니다.
|
|
217
|
-
return props.selectedRows.includes(index)
|
|
218
|
-
? "minmax(".concat(props.rowHeight, "px, auto)") // 포함되어 있다면 minmax 사용
|
|
219
|
-
: "".concat(props.rowHeight, "px");
|
|
220
|
-
} // 포함되어 있지 않다면 고정 높이 사용
|
|
221
|
-
)
|
|
222
|
-
.join(' ');
|
|
223
|
-
});
|
|
224
|
-
var templateObject_1, templateObject_2;
|
|
File without changes
|