pds-dev-kit-web-test 0.3.13 → 0.3.15
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/src/common/assets/icons/line/Face.d.ts +4 -0
- package/dist/src/common/assets/icons/line/Face.js +30 -0
- package/dist/src/common/assets/icons/line/index.d.ts +1 -0
- package/dist/src/common/assets/icons/line/index.js +2 -0
- 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/styles/colorSet/UIColor.json +2 -1
- package/dist/src/common/styles/colorSet/index.d.ts +965 -964
- package/dist/src/common/styles/colorSet/index.js +5 -5
- package/dist/src/common/styles/colorSet/ui-type.d.ts +1 -0
- 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/MainButton.js +1 -1
- package/dist/src/desktop/components/BasicListItem/RightBox/Switch.js +1 -1
- package/dist/src/desktop/components/ChatBubbleListItem/ChatBubble.d.ts +1 -1
- package/dist/src/desktop/components/ChatBubbleListItem/ChatBubble.js +2 -1
- package/dist/src/desktop/components/ChatBubbleListItem/ChatBubbleListItem.d.ts +1 -1
- package/dist/src/desktop/components/ChatBubbleListItem/ChatBubbleListItem.js +2 -1
- package/dist/src/desktop/components/ChatList/Body.js +2 -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/Slider/Slider.d.ts +1 -1
- package/dist/src/desktop/components/Slider/Slider.js +1 -1
- package/dist/src/desktop/components/TextField/TextField.d.ts +4 -2
- package/dist/src/desktop/components/TextField/TextField.js +14 -12
- 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/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/MainButton.js +1 -1
- package/dist/src/mobile/components/BasicListItem/RightBox/Switch.js +1 -1
- package/dist/src/mobile/components/ChatBubbleListItem/ChatBubble.d.ts +1 -1
- package/dist/src/mobile/components/ChatBubbleListItem/ChatBubble.js +2 -1
- package/dist/src/mobile/components/ChatBubbleListItem/ChatBubbleListItem.d.ts +1 -1
- package/dist/src/mobile/components/ChatBubbleListItem/ChatBubbleListItem.js +2 -1
- package/dist/src/mobile/components/ChatList/Body.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/Slider/Slider.d.ts +1 -1
- package/dist/src/mobile/components/Slider/Slider.js +1 -1
- package/dist/src/mobile/components/TextField/TextField.d.ts +4 -2
- package/dist/src/mobile/components/TextField/TextField.js +14 -12
- 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/DynamicLayout.d.ts +1 -1
- package/dist/src/sub/DynamicLayout/DynamicLayout.js +2 -3
- 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 +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/dynamicLayoutContext.js +1 -2
- package/dist/src/sub/DynamicLayout/pagesPreviewMock.d.ts +2 -3
- package/dist/src/sub/DynamicLayout/pagesPreviewMock.js +2 -3
- package/dist/src/sub/DynamicLayout/sectionActionTypes.d.ts +9 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/CustomSection.d.ts +5 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/CustomSection.js +67 -17
- 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 +6 -6
- 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/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/Text/Text.js +1 -1
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/Text/types.d.ts +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 +2 -1
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/Youtube/Youtube.js +14 -54
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/Youtube/parseYoutubeContentProp.d.ts +9 -1
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/Youtube/parseYoutubeContentProp.js +31 -6
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/Youtube/types.d.ts +3 -4
- 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/hooks/useGoogleFonts/useGoogleFonts.js +1 -1
- package/dist/src/sub/DynamicLayout/sections/CustomSection/hooks/useGroupDrag/index.d.ts +1 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/hooks/useGroupDrag/index.js +8 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/hooks/useGroupDrag/useGroupDrag.d.ts +16 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/hooks/useGroupDrag/useGroupDrag.js +76 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/hooks/useGroupDrag/utils.d.ts +10 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/hooks/useGroupDrag/utils.js +86 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/types.d.ts +8 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/util/parseJsonProperties.d.ts +1 -1
- 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 +0 -1
- package/package.json +2 -2
- package/release-note.md +5 -4
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import type { CB_BTN_PROPERTIES_TYPE } from '
|
|
2
|
+
import type { CB_BTN_PROPERTIES_TYPE } from '@sub/DynamicLayout/sections/CustomSection/util/types';
|
|
3
3
|
type Props = CB_BTN_PROPERTIES_TYPE;
|
|
4
4
|
declare function Button(props: Props): JSX.Element;
|
|
5
5
|
export default Button;
|
|
@@ -28,12 +28,12 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
28
28
|
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
29
29
|
/* eslint-disable react/destructuring-assignment */
|
|
30
30
|
var react_1 = require("react");
|
|
31
|
-
var DynamicLayout_1 = require("
|
|
32
|
-
var hooks_1 = require("
|
|
33
|
-
var useGoogleFonts_1 = require("
|
|
34
|
-
var newUtils_1 = require("
|
|
35
|
-
var colorUtil_1 = require("
|
|
36
|
-
var util_1 = require("
|
|
31
|
+
var DynamicLayout_1 = require("@sub/DynamicLayout");
|
|
32
|
+
var hooks_1 = require("@sub/DynamicLayout/sections/CustomSection/hooks");
|
|
33
|
+
var useGoogleFonts_1 = require("@sub/DynamicLayout/sections/CustomSection/hooks/useGoogleFonts");
|
|
34
|
+
var newUtils_1 = require("@sub/DynamicLayout/sections/CustomSection/newUtils");
|
|
35
|
+
var colorUtil_1 = require("@sub/DynamicLayout/sections/CustomSection/newUtils/colorUtil");
|
|
36
|
+
var util_1 = require("@sub/DynamicLayout/sections/CustomSection/util");
|
|
37
37
|
var S_CB_AnimationObserverBox_1 = require("../components/S_CB_AnimationObserverBox");
|
|
38
38
|
var S_CB_BoxWithShadow_1 = require("../components/S_CB_BoxWithShadow");
|
|
39
39
|
var S_HiddenCover_1 = require("../components/S_HiddenCover");
|
|
@@ -40,7 +40,7 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
40
40
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
41
41
|
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
42
42
|
var react_1 = require("react");
|
|
43
|
-
var DynamicLayout_1 = require("
|
|
43
|
+
var DynamicLayout_1 = require("@sub/DynamicLayout");
|
|
44
44
|
var styled_components_1 = __importStar(require("styled-components"));
|
|
45
45
|
var hooks_1 = require("../../../../hooks");
|
|
46
46
|
var util_1 = require("../../../../util");
|
|
@@ -43,7 +43,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
43
43
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
44
44
|
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
45
45
|
var react_1 = require("react");
|
|
46
|
-
var DynamicLayout_1 = require("
|
|
46
|
+
var DynamicLayout_1 = require("@sub/DynamicLayout");
|
|
47
47
|
var styled_components_1 = __importStar(require("styled-components"));
|
|
48
48
|
var hooks_1 = require("../../../../hooks");
|
|
49
49
|
var util_1 = require("../../../../util");
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { ENUM_STRING, STRING_PLAIN } from '
|
|
1
|
+
import type { ENUM_STRING, STRING_PLAIN } from '@sub/DynamicLayout/sections/CustomSection/util/types';
|
|
2
2
|
export type ImagePropsKeys = keyof CB_IMAGE_STYLE_PROPS;
|
|
3
3
|
export type CB_IMAGE_STYLE_PROPS = {
|
|
4
4
|
CB_STYLE_PROP_IMAGE_SPEC_FIT: STRING_PLAIN;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import type { CB_RICHTEXT_PROPERTIES_TYPE } from '
|
|
2
|
+
import type { CB_RICHTEXT_PROPERTIES_TYPE } from '@sub/DynamicLayout/sections/CustomSection/util/types';
|
|
3
3
|
type Props = CB_RICHTEXT_PROPERTIES_TYPE;
|
|
4
4
|
declare function RichText(props: Props): JSX.Element;
|
|
5
5
|
export default RichText;
|
|
@@ -21,11 +21,11 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
21
21
|
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
22
22
|
/* eslint-disable react/destructuring-assignment */
|
|
23
23
|
var react_1 = require("react");
|
|
24
|
-
var DynamicLayout_1 = require("
|
|
25
|
-
var RichText_1 = require("
|
|
26
|
-
var hooks_1 = require("
|
|
27
|
-
var colorUtil_1 = require("
|
|
28
|
-
var util_1 = require("
|
|
24
|
+
var DynamicLayout_1 = require("@sub/DynamicLayout");
|
|
25
|
+
var RichText_1 = require("@sub/DynamicLayout/components/ComponentBlocks/RichText");
|
|
26
|
+
var hooks_1 = require("@sub/DynamicLayout/sections/CustomSection/hooks");
|
|
27
|
+
var colorUtil_1 = require("@sub/DynamicLayout/sections/CustomSection/newUtils/colorUtil");
|
|
28
|
+
var util_1 = require("@sub/DynamicLayout/sections/CustomSection/util");
|
|
29
29
|
var styled_components_1 = __importDefault(require("styled-components"));
|
|
30
30
|
var S_CB_AnimationObserverBox_1 = require("../components/S_CB_AnimationObserverBox");
|
|
31
31
|
var S_CB_BoxWithShadow_1 = require("../components/S_CB_BoxWithShadow");
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { BGColorPropsKeys, CB_STYLE_PROP_BGCOLOR_SPECS } from '../Youtube/types';
|
|
2
|
-
import type { ENUM_STRING, NUMBER_INTEGER } from '
|
|
2
|
+
import type { ENUM_STRING, NUMBER_INTEGER } from '@sub/DynamicLayout/sections/CustomSection/util/types';
|
|
3
3
|
export type CB_STYLE_PROP_BGOVERLAY_ENUM_GRADIENT = 'LINEAR' | 'RADIAL';
|
|
4
4
|
export type CB_STYLE_PROP_BGOVERLAY_ENUM_TYPE = 'NONE' | 'SOLID' | 'GRADIENT';
|
|
5
5
|
export type CB_STYLE_PROP_BGOVERLAY_SPECS_BASE = {
|
|
@@ -17,7 +17,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
17
17
|
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
18
18
|
/* eslint-disable react/destructuring-assignment */
|
|
19
19
|
var react_1 = require("react");
|
|
20
|
-
var DynamicLayout_1 = require("
|
|
20
|
+
var DynamicLayout_1 = require("@sub/DynamicLayout");
|
|
21
21
|
var hooks_1 = require("../../../../hooks");
|
|
22
22
|
var getGoogleFonts_1 = require("../../../../hooks/useGoogleFonts/getGoogleFonts");
|
|
23
23
|
var useGoogleFonts_1 = __importDefault(require("../../../../hooks/useGoogleFonts/useGoogleFonts"));
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { ENUM_STRING, NUMBER_INTEGER, STRING_8DIGIT_HEX } from '
|
|
1
|
+
import type { ENUM_STRING, NUMBER_INTEGER, STRING_8DIGIT_HEX } from '@sub/DynamicLayout/sections/CustomSection/util/types';
|
|
2
2
|
export type TextPropsKeys = keyof CB_STYLE_PROP_TEXT_SPECS;
|
|
3
3
|
export type CB_STYLE_PROP_TEXT_SPECS_BASE = {
|
|
4
4
|
CB_STYLE_PROP_TEXT_SPEC_TYPEFACE: ENUM_STRING;
|
|
@@ -13,8 +13,8 @@ var __assign = (this && this.__assign) || function () {
|
|
|
13
13
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
14
14
|
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
15
15
|
var react_1 = require("react");
|
|
16
|
-
var DynamicLayout_1 = require("
|
|
17
|
-
var ComponentBlocks_1 = require("
|
|
16
|
+
var DynamicLayout_1 = require("@sub/DynamicLayout");
|
|
17
|
+
var ComponentBlocks_1 = require("@sub/DynamicLayout/components/ComponentBlocks");
|
|
18
18
|
var hooks_1 = require("../../../../hooks");
|
|
19
19
|
var util_1 = require("../../../../util");
|
|
20
20
|
var S_CB_AnimationObserverBox_1 = require("../components/S_CB_AnimationObserverBox");
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { DefaultBrightTheme } from '
|
|
1
|
+
import type { DefaultBrightTheme } from '@sub/DynamicLayout/sections/CustomSection/util/types';
|
|
2
2
|
export type TwitterPropsKeys = keyof CB_TWITTER_STYLE_PROPS;
|
|
3
3
|
export type CB_TWITTER_STYLE_PROPS = {
|
|
4
4
|
CB_STYLE_PROP_TWITTER_SPEC_THEME: DefaultBrightTheme;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import type { CB_YOUTUBE_PROPERTIES_TYPE } from '
|
|
2
|
+
import type { CB_YOUTUBE_PROPERTIES_TYPE } from '@sub/DynamicLayout/sections/CustomSection/util/types';
|
|
3
3
|
type Props = CB_YOUTUBE_PROPERTIES_TYPE;
|
|
4
|
+
export type YOUTUBE_AUTOPLAY_TRIGGER_POINT = 'ALWAYS' | 'VIEWPORT-FREEZE' | 'VIEWPORT';
|
|
4
5
|
declare function Youtube(props: Props): JSX.Element;
|
|
5
6
|
export default Youtube;
|
|
@@ -19,22 +19,21 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
19
19
|
};
|
|
20
20
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
21
21
|
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
22
|
-
/* eslint-disable no-console */
|
|
23
22
|
var react_1 = require("react");
|
|
24
|
-
var DynamicLayout_1 = require("
|
|
25
|
-
var hooks_1 = require("
|
|
26
|
-
var colorUtil_1 = require("
|
|
27
|
-
var util_1 = require("
|
|
28
|
-
var utils_1 = require("../../../../../../../DynamicLayout/utils");
|
|
23
|
+
var DynamicLayout_1 = require("@sub/DynamicLayout");
|
|
24
|
+
var hooks_1 = require("@sub/DynamicLayout/sections/CustomSection/hooks");
|
|
25
|
+
var colorUtil_1 = require("@sub/DynamicLayout/sections/CustomSection/newUtils/colorUtil");
|
|
26
|
+
var util_1 = require("@sub/DynamicLayout/sections/CustomSection/util");
|
|
29
27
|
var styled_components_1 = __importDefault(require("styled-components"));
|
|
30
28
|
var S_CB_AnimationObserverBox_1 = require("../components/S_CB_AnimationObserverBox");
|
|
31
29
|
var S_CB_BoxWithShadow_1 = require("../components/S_CB_BoxWithShadow");
|
|
32
30
|
var S_HiddenCover_1 = require("../components/S_HiddenCover");
|
|
33
31
|
var parseYoutubeContentProp_1 = __importDefault(require("./parseYoutubeContentProp"));
|
|
32
|
+
var YOUTUBE_AUTOPLAY_TRIGGER_POINT = 'VIEWPORT';
|
|
34
33
|
function Youtube(props) {
|
|
35
|
-
var _a = (0, react_1.useContext)(DynamicLayout_1.dynamicLayoutContext), device = _a.device, mode = _a.mode
|
|
34
|
+
var _a = (0, react_1.useContext)(DynamicLayout_1.dynamicLayoutContext), device = _a.device, mode = _a.mode;
|
|
36
35
|
var CB_CONTENT_PROP_YOUTUBE = props.CB_CONTENT_PROP_YOUTUBE, CB_STYLE_PROP_BGCOLOR = props.CB_STYLE_PROP_BGCOLOR, CB_STYLE_PROP_SHADOW = props.CB_STYLE_PROP_SHADOW, CB_EFFECT_PROP_ENTANIM = props.CB_EFFECT_PROP_ENTANIM;
|
|
37
|
-
var _b = (0, parseYoutubeContentProp_1.default)(CB_CONTENT_PROP_YOUTUBE), youtubeSrc = _b.youtubeSrc, thumbnailSrc = _b.thumbnailSrc, id = _b.id;
|
|
36
|
+
var _b = (0, parseYoutubeContentProp_1.default)(CB_CONTENT_PROP_YOUTUBE, device, YOUTUBE_AUTOPLAY_TRIGGER_POINT), youtubeSrc = _b.youtubeSrc, thumbnailSrc = _b.thumbnailSrc, id = _b.id, cbAutoplayMode = _b.cbAutoplayMode;
|
|
38
37
|
var isEditMode = mode === 'EDIT';
|
|
39
38
|
var _c = getBGColorStyles(CB_STYLE_PROP_BGCOLOR, device), bgColorStyle = _c.style, bgColorHoverStyle = _c.hoverStyle;
|
|
40
39
|
var _d = (0, util_1.parseProperties)(props, device), propsStyle = _d.style, propsHoverStyle = _d.hoverStyle, layoutStyle = _d.layout, effect = _d.effect;
|
|
@@ -54,48 +53,31 @@ function Youtube(props) {
|
|
|
54
53
|
var iframeRef = (0, react_1.useRef)(null);
|
|
55
54
|
var autoplayRef = (0, react_1.useRef)(null);
|
|
56
55
|
var autoplayEntry = (0, hooks_1.useIntersectionObserver)(autoplayRef, {
|
|
57
|
-
freezeOnceVisible:
|
|
56
|
+
freezeOnceVisible: YOUTUBE_AUTOPLAY_TRIGGER_POINT === 'VIEWPORT-FREEZE' ? true : false
|
|
58
57
|
});
|
|
59
|
-
var shouldAutoPlay = function () {
|
|
60
|
-
if (youtubeAutoplayMode === 'ALWAYS') {
|
|
61
|
-
return true;
|
|
62
|
-
}
|
|
63
|
-
if (youtubeAutoplayMode === 'VIEWPORT' && (autoplayEntry === null || autoplayEntry === void 0 ? void 0 : autoplayEntry.isIntersecting)) {
|
|
64
|
-
return true;
|
|
65
|
-
}
|
|
66
|
-
if (youtubeAutoplayMode === 'VIEWPORT-FREEZE' && (autoplayEntry === null || autoplayEntry === void 0 ? void 0 : autoplayEntry.isIntersecting)) {
|
|
67
|
-
return true;
|
|
68
|
-
}
|
|
69
|
-
if (youtubeAutoplayMode === 'VIEWPORT' && !(autoplayEntry === null || autoplayEntry === void 0 ? void 0 : autoplayEntry.isIntersecting)) {
|
|
70
|
-
return true;
|
|
71
|
-
}
|
|
72
|
-
return false;
|
|
73
|
-
};
|
|
74
58
|
var onLoadIframe = function () {
|
|
75
59
|
var _a;
|
|
76
60
|
if (!((_a = iframeRef.current) === null || _a === void 0 ? void 0 : _a.contentWindow)) {
|
|
77
61
|
return;
|
|
78
62
|
}
|
|
79
|
-
if (
|
|
80
|
-
console.log('play video');
|
|
63
|
+
if (cbAutoplayMode === 'VIEWPORT' && (autoplayEntry === null || autoplayEntry === void 0 ? void 0 : autoplayEntry.isIntersecting)) {
|
|
81
64
|
iframeRef.current.contentWindow.postMessage('{"event":"command","func":"playVideo","args":""}', '*');
|
|
82
65
|
}
|
|
83
66
|
};
|
|
67
|
+
// NOTE: Effect for AUTO-PLAY
|
|
84
68
|
(0, react_1.useEffect)(function () {
|
|
85
69
|
var _a;
|
|
86
70
|
if (!((_a = iframeRef.current) === null || _a === void 0 ? void 0 : _a.contentWindow)) {
|
|
87
71
|
return;
|
|
88
72
|
}
|
|
89
|
-
if (
|
|
73
|
+
if (cbAutoplayMode === 'VIEWPORT' && (autoplayEntry === null || autoplayEntry === void 0 ? void 0 : autoplayEntry.isIntersecting)) {
|
|
90
74
|
iframeRef.current.contentWindow.postMessage('{"event":"command","func":"playVideo","args":""}', '*');
|
|
91
75
|
}
|
|
92
|
-
if (
|
|
93
|
-
console.log('pause video');
|
|
76
|
+
if (cbAutoplayMode === 'VIEWPORT' && !(autoplayEntry === null || autoplayEntry === void 0 ? void 0 : autoplayEntry.isIntersecting)) {
|
|
94
77
|
iframeRef.current.contentWindow.postMessage('{"event":"command","func":"pauseVideo","args":""}', '*');
|
|
95
|
-
return;
|
|
96
78
|
}
|
|
97
|
-
}, [autoplayEntry === null || autoplayEntry === void 0 ? void 0 : autoplayEntry.isIntersecting,
|
|
98
|
-
return ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [isEditModeAndHidden && (0, jsx_runtime_1.jsx)(S_HiddenCover_1.S_HiddenCover, {}), (0, jsx_runtime_1.jsx)(S_CB_AnimationObserverBox_1.S_CB_AnimationObserverBox, __assign({ ref: hasEffect ? cbRef : null, effectVisibleStyle: effectVisibleStyle }, { children: (0, jsx_runtime_1.jsx)(S_CB_BoxWithShadow_1.S_CB_BoxWithShadow, __assign({ ref: autoplayRef, className: "cb-layout-box", normalStyle: __assign(__assign(__assign(__assign({}, propsStyle), layoutStyle), effectCssProperties), bgColorStyle), hoverStyle: __assign(__assign({}, propsHoverStyle), bgColorHoverStyle), cbStylePropsShadowSpecs: CB_STYLE_PROP_SHADOW, device: device }, { children: isEditMode ? ((0, jsx_runtime_1.jsxs)(S_ThumbnailBox, { children: [(0, jsx_runtime_1.jsx)(YoutubeButton, {}), (0, jsx_runtime_1.jsx)(S_Thumbnail, { src: thumbnailSrc })] })) : ((0, jsx_runtime_1.jsx)(S_Iframe, { ref: iframeRef, title: id, src:
|
|
79
|
+
}, [autoplayEntry === null || autoplayEntry === void 0 ? void 0 : autoplayEntry.isIntersecting, cbAutoplayMode]);
|
|
80
|
+
return ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [isEditModeAndHidden && (0, jsx_runtime_1.jsx)(S_HiddenCover_1.S_HiddenCover, {}), (0, jsx_runtime_1.jsx)(S_CB_AnimationObserverBox_1.S_CB_AnimationObserverBox, __assign({ ref: hasEffect ? cbRef : null, effectVisibleStyle: effectVisibleStyle }, { children: (0, jsx_runtime_1.jsx)(S_CB_BoxWithShadow_1.S_CB_BoxWithShadow, __assign({ ref: autoplayRef, className: "cb-layout-box", normalStyle: __assign(__assign(__assign(__assign({}, propsStyle), layoutStyle), effectCssProperties), bgColorStyle), hoverStyle: __assign(__assign({}, propsHoverStyle), bgColorHoverStyle), cbStylePropsShadowSpecs: CB_STYLE_PROP_SHADOW, device: device }, { children: isEditMode ? ((0, jsx_runtime_1.jsxs)(S_ThumbnailBox, { children: [(0, jsx_runtime_1.jsx)(YoutubeButton, {}), (0, jsx_runtime_1.jsx)(S_Thumbnail, { src: thumbnailSrc })] })) : ((0, jsx_runtime_1.jsx)(S_Iframe, { ref: iframeRef, title: id, src: youtubeSrc, onLoad: onLoadIframe, allow: "accelerometer; encrypted-media; gyroscope; picture-in-picture" })) })) }))] }));
|
|
99
81
|
}
|
|
100
82
|
function getBGColorStyles(props, device) {
|
|
101
83
|
var availableSpecCodes = [
|
|
@@ -117,27 +99,5 @@ var S_YoutubeButton = styled_components_1.default.div(templateObject_4 || (templ
|
|
|
117
99
|
function YoutubeButton() {
|
|
118
100
|
return ((0, jsx_runtime_1.jsx)(S_YoutubeButton, { children: (0, jsx_runtime_1.jsxs)("svg", __assign({ height: "100%", version: "1.1", viewBox: "0 0 68 48", width: "100%" }, { children: [(0, jsx_runtime_1.jsx)("path", { className: "ytp-large-play-button-bg", d: "M66.52,7.74c-0.78-2.93-2.49-5.41-5.42-6.19C55.79,.13,34,0,34,0S12.21,.13,6.9,1.55 C3.97,2.33,2.27,4.81,1.48,7.74C0.06,13.05,0,24,0,24s0.06,10.95,1.48,16.26c0.78,2.93,2.49,5.41,5.42,6.19 C12.21,47.87,34,48,34,48s21.79-0.13,27.1-1.55c2.93-0.78,4.64-3.26,5.42-6.19C67.94,34.95,68,24,68,24S67.94,13.05,66.52,7.74z", fill: "#f00" }), (0, jsx_runtime_1.jsx)("path", { d: "M 45,24 27,14 27,34", fill: "#fff" })] })) }));
|
|
119
101
|
}
|
|
120
|
-
function getAutoplaySrc(youtubeSrc, youtubeAutoplayMode) {
|
|
121
|
-
try {
|
|
122
|
-
var url = new URL(youtubeSrc);
|
|
123
|
-
if (url.hostname.includes('youtube.com') || url.hostname.includes('youtu.be')) {
|
|
124
|
-
var id = utils_1.YouTubeLinkParser.getId(youtubeSrc);
|
|
125
|
-
if (youtubeAutoplayMode === 'VIEWPORT') {
|
|
126
|
-
url.searchParams.set('enablejsapi', '1');
|
|
127
|
-
}
|
|
128
|
-
else {
|
|
129
|
-
url.searchParams.set('autoplay', '1');
|
|
130
|
-
}
|
|
131
|
-
url.searchParams.set('mute', '1');
|
|
132
|
-
url.searchParams.set('loop', '1');
|
|
133
|
-
url.searchParams.set('playlist', "".concat(id));
|
|
134
|
-
return url.href;
|
|
135
|
-
}
|
|
136
|
-
return 'Invalid YouTube URL';
|
|
137
|
-
}
|
|
138
|
-
catch (error) {
|
|
139
|
-
return 'Invalid URL';
|
|
140
|
-
}
|
|
141
|
-
}
|
|
142
102
|
exports.default = Youtube;
|
|
143
103
|
var templateObject_1, templateObject_2, templateObject_3, templateObject_4;
|
|
@@ -1,7 +1,15 @@
|
|
|
1
1
|
import type { CB_CONTENT_PROP_YOUTUBE_TYPE } from './types';
|
|
2
|
-
|
|
2
|
+
import type { YOUTUBE_AUTOPLAY_TRIGGER_POINT } from './Youtube';
|
|
3
|
+
import type { Device } from '@sub/DynamicLayout/sections/CustomSection/util/types';
|
|
4
|
+
declare function parseYoutubeContentProp(props: CB_CONTENT_PROP_YOUTUBE_TYPE, device: Device, autoplayTriggerPoint: YOUTUBE_AUTOPLAY_TRIGGER_POINT): {
|
|
3
5
|
id: string;
|
|
4
6
|
youtubeSrc: string;
|
|
5
7
|
thumbnailSrc: string;
|
|
8
|
+
cbAutoplayMode?: undefined;
|
|
9
|
+
} | {
|
|
10
|
+
id: string;
|
|
11
|
+
youtubeSrc: string;
|
|
12
|
+
thumbnailSrc: string;
|
|
13
|
+
cbAutoplayMode: string;
|
|
6
14
|
};
|
|
7
15
|
export default parseYoutubeContentProp;
|
|
@@ -1,9 +1,12 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
function parseYoutubeContentProp(props) {
|
|
3
|
+
function parseYoutubeContentProp(props, device, autoplayTriggerPoint) {
|
|
4
4
|
var id = getYoutubeId(props.CB_CONTENT_PROP_YOUTUBE_SPEC_SRC);
|
|
5
5
|
var start = props.CB_CONTENT_PROP_YOUTUBE_SPEC_STARTTIME;
|
|
6
|
-
var
|
|
6
|
+
var shouldAutoPlay = device === 'DESKTOP'
|
|
7
|
+
? props.CB_CONTENT_PROP_YOUTUBE_SPEC_AUTOPLAY
|
|
8
|
+
: props.CB_CONTENT_PROP_YOUTUBE_SPEC_MAUTOPLAY;
|
|
9
|
+
var cbAutoplayMode = shouldAutoPlay ? autoplayTriggerPoint : 'NONE';
|
|
7
10
|
if (!id) {
|
|
8
11
|
return {
|
|
9
12
|
id: 'no-id',
|
|
@@ -13,8 +16,9 @@ function parseYoutubeContentProp(props) {
|
|
|
13
16
|
}
|
|
14
17
|
return {
|
|
15
18
|
id: id,
|
|
16
|
-
youtubeSrc: getEmbedUrl(id, start,
|
|
17
|
-
thumbnailSrc: getThumbnailUrl(id)
|
|
19
|
+
youtubeSrc: getEmbedUrl(id, { start: start, shouldAutoPlay: shouldAutoPlay, autoplayMode: autoplayTriggerPoint }),
|
|
20
|
+
thumbnailSrc: getThumbnailUrl(id),
|
|
21
|
+
cbAutoplayMode: cbAutoplayMode
|
|
18
22
|
};
|
|
19
23
|
}
|
|
20
24
|
function getYoutubeId(src) {
|
|
@@ -27,7 +31,28 @@ function getYoutubeId(src) {
|
|
|
27
31
|
function getThumbnailUrl(id) {
|
|
28
32
|
return "https://img.youtube.com/vi/".concat(id, "/0.jpg");
|
|
29
33
|
}
|
|
30
|
-
function getEmbedUrl(id,
|
|
31
|
-
|
|
34
|
+
function getEmbedUrl(id, _a) {
|
|
35
|
+
var start = _a.start, autoplayMode = _a.autoplayMode, shouldAutoPlay = _a.shouldAutoPlay;
|
|
36
|
+
try {
|
|
37
|
+
var url = new URL("https://www.youtube.com/embed/".concat(id));
|
|
38
|
+
url.searchParams.set('start', "".concat(start));
|
|
39
|
+
if (!shouldAutoPlay) {
|
|
40
|
+
return url.href;
|
|
41
|
+
}
|
|
42
|
+
// NOTE: AUTOPLAY PARAMS
|
|
43
|
+
if (autoplayMode === 'ALWAYS') {
|
|
44
|
+
url.searchParams.set('autoplay', '1');
|
|
45
|
+
}
|
|
46
|
+
if (autoplayMode === 'VIEWPORT') {
|
|
47
|
+
url.searchParams.set('enablejsapi', '1');
|
|
48
|
+
}
|
|
49
|
+
url.searchParams.set('mute', '1');
|
|
50
|
+
url.searchParams.set('loop', '1');
|
|
51
|
+
url.searchParams.set('playlist', "".concat(id));
|
|
52
|
+
return url.href;
|
|
53
|
+
}
|
|
54
|
+
catch (error) {
|
|
55
|
+
return "https://www.youtube.com/embed/".concat(id, "?start=").concat(start);
|
|
56
|
+
}
|
|
32
57
|
}
|
|
33
58
|
exports.default = parseYoutubeContentProp;
|
|
@@ -1,10 +1,9 @@
|
|
|
1
|
-
import type { ENUM_STRING, NUMBER_INTEGER } from '
|
|
1
|
+
import type { ENUM_STRING, NUMBER_INTEGER } from '@sub/DynamicLayout/sections/CustomSection/util/types';
|
|
2
2
|
export type CB_CONTENT_PROP_YOUTUBE_TYPE = {
|
|
3
|
-
CB_CONTENT_PROP_YOUTUBE_SPEC_ENDTIME: number;
|
|
4
|
-
CB_CONTENT_PROP_YOUTUBE_SPEC_MPLAY: boolean;
|
|
5
|
-
CB_CONTENT_PROP_YOUTUBE_SPEC_REPLAY: boolean;
|
|
6
3
|
CB_CONTENT_PROP_YOUTUBE_SPEC_SRC: string;
|
|
7
4
|
CB_CONTENT_PROP_YOUTUBE_SPEC_STARTTIME: number;
|
|
5
|
+
CB_CONTENT_PROP_YOUTUBE_SPEC_AUTOPLAY: boolean;
|
|
6
|
+
CB_CONTENT_PROP_YOUTUBE_SPEC_MAUTOPLAY: boolean;
|
|
8
7
|
};
|
|
9
8
|
export type CB_STYLE_PROP_BGCOLOR_ENUM_GRADIENT = 'LINEAR' | 'RADIAL';
|
|
10
9
|
export type CB_STYLE_PROP_BGCOLOR_ENUM_TYPE = 'NONE' | 'SOLID' | 'GRADIENT';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { StylesProps } from '../types';
|
|
2
|
-
import type { Device, NUMBER_INTEGER } from '
|
|
2
|
+
import type { Device, NUMBER_INTEGER } from '@sub/DynamicLayout/sections/CustomSection/util/types';
|
|
3
3
|
export declare const S_CB_BoxWithShadow: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, StylesProps & {
|
|
4
4
|
cbStylePropsShadowSpecs: {
|
|
5
5
|
CB_STYLE_PROP_SHADOW_SPEC_OPACITY: NUMBER_INTEGER;
|
|
@@ -42,7 +42,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
42
42
|
};
|
|
43
43
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
44
44
|
exports.S_CB_BoxWithShadow = void 0;
|
|
45
|
-
var isNullOrUndefined_1 = __importDefault(require("
|
|
45
|
+
var isNullOrUndefined_1 = __importDefault(require("@sub/DynamicLayout/sections/CustomSection/util/isNullOrUndefined"));
|
|
46
46
|
var styled_components_1 = __importStar(require("styled-components"));
|
|
47
47
|
exports.S_CB_BoxWithShadow = styled_components_1.default.div(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n /*\n Introduced in IE 10.\n See http://ie.microsoft.com/testdrive/HTML5/msUserSelect/\n */\n\n height: 100%;\n width: 100%;\n\n ", ";\n\n &:before {\n border-bottom-left-radius: ", "px;\n border-bottom-right-radius: ", "px;\n border-top-left-radius: ", "px;\n border-top-right-radius: ", "px;\n box-shadow: ", ";\n content: '';\n height: 100%;\n left: 0;\n opacity: ", ";\n pointer-events: none;\n position: absolute;\n top: 0;\n width: 100%;\n }\n\n &:hover {\n ", ";\n\n &:before {\n border-bottom-left-radius: ", "px;\n border-bottom-right-radius: ", "px;\n border-top-left-radius: ", "px;\n border-top-right-radius: ", "px;\n box-shadow: ", ";\n content: '';\n height: 100%;\n left: 0;\n opacity: ", ";\n pointer-events: none;\n position: absolute;\n top: 0;\n width: 100%;\n }\n }\n"], ["\n /*\n Introduced in IE 10.\n See http://ie.microsoft.com/testdrive/HTML5/msUserSelect/\n */\n\n height: 100%;\n width: 100%;\n\n ", ";\n\n &:before {\n border-bottom-left-radius: ", "px;\n border-bottom-right-radius: ", "px;\n border-top-left-radius: ", "px;\n border-top-right-radius: ", "px;\n box-shadow: ", ";\n content: '';\n height: 100%;\n left: 0;\n opacity: ", ";\n pointer-events: none;\n position: absolute;\n top: 0;\n width: 100%;\n }\n\n &:hover {\n ", ";\n\n &:before {\n border-bottom-left-radius: ", "px;\n border-bottom-right-radius: ", "px;\n border-top-left-radius: ", "px;\n border-top-right-radius: ", "px;\n box-shadow: ", ";\n content: '';\n height: 100%;\n left: 0;\n opacity: ", ";\n pointer-events: none;\n position: absolute;\n top: 0;\n width: 100%;\n }\n }\n"])), function (_a) {
|
|
48
48
|
var normalStyle = _a.normalStyle;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
var react_1 = require("react");
|
|
4
|
-
var dynamicLayoutContext_1 = require("
|
|
4
|
+
var dynamicLayoutContext_1 = require("@sub/DynamicLayout/dynamicLayoutContext");
|
|
5
5
|
// NOTE: link기능은 탄력적일 필요가 없음.
|
|
6
6
|
function useCLINK(props) {
|
|
7
7
|
var src = props.src, openNewTab = props.openNewTab, type = props.type, internalSrc = props.internalSrc;
|
package/dist/src/sub/DynamicLayout/sections/CustomSection/hooks/useGoogleFonts/useGoogleFonts.js
CHANGED
|
@@ -4,7 +4,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
var react_1 = require("react");
|
|
7
|
-
var callGoogleFontCSSAndApply_1 = __importDefault(require("
|
|
7
|
+
var callGoogleFontCSSAndApply_1 = __importDefault(require("@sub/GoogleFontkit/utils/callGoogleFontCSSAndApply"));
|
|
8
8
|
function useGoogleFonts(_a) {
|
|
9
9
|
var fonts = _a.fonts;
|
|
10
10
|
(0, react_1.useEffect)(function () {
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as useGroupDrag } from './useGroupDrag';
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.useGroupDrag = void 0;
|
|
7
|
+
var useGroupDrag_1 = require("./useGroupDrag");
|
|
8
|
+
Object.defineProperty(exports, "useGroupDrag", { enumerable: true, get: function () { return __importDefault(useGroupDrag_1).default; } });
|
package/dist/src/sub/DynamicLayout/sections/CustomSection/hooks/useGroupDrag/useGroupDrag.d.ts
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { LayoutItemWithGroupType } from './utils';
|
|
3
|
+
import type { LayoutsType } from '../../CustomSection';
|
|
4
|
+
import type { Device } from '../../util/types';
|
|
5
|
+
import type { Layout } from 'publ-echo/dist/lib';
|
|
6
|
+
type Props = {
|
|
7
|
+
device: Device;
|
|
8
|
+
setLayouts: React.Dispatch<React.SetStateAction<LayoutsType>>;
|
|
9
|
+
};
|
|
10
|
+
declare function useGroupDrag({ device, setLayouts }: Props): {
|
|
11
|
+
isShiftOn: boolean;
|
|
12
|
+
setGroupCB: (selectedId: number | 'group', newId: number) => void;
|
|
13
|
+
breakGroupCB: () => void;
|
|
14
|
+
getGroupCB: (layout: Layout) => LayoutItemWithGroupType | null;
|
|
15
|
+
};
|
|
16
|
+
export default useGroupDrag;
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __assign = (this && this.__assign) || function () {
|
|
3
|
+
__assign = Object.assign || function(t) {
|
|
4
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
5
|
+
s = arguments[i];
|
|
6
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
7
|
+
t[p] = s[p];
|
|
8
|
+
}
|
|
9
|
+
return t;
|
|
10
|
+
};
|
|
11
|
+
return __assign.apply(this, arguments);
|
|
12
|
+
};
|
|
13
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
14
|
+
var react_1 = require("react");
|
|
15
|
+
var utils_1 = require("./utils");
|
|
16
|
+
function useGroupDrag(_a) {
|
|
17
|
+
var device = _a.device, setLayouts = _a.setLayouts;
|
|
18
|
+
var _b = (0, react_1.useState)(false), isShiftOn = _b[0], setIsShiftOn = _b[1];
|
|
19
|
+
var layoutByDevice = device === 'DESKTOP' ? 'lg' : 'sm';
|
|
20
|
+
(0, react_1.useEffect)(function () {
|
|
21
|
+
function onKeyDown(e) {
|
|
22
|
+
if (e.key === 'Shift') {
|
|
23
|
+
setIsShiftOn(true);
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
function onKeyUp() {
|
|
27
|
+
setIsShiftOn(false);
|
|
28
|
+
}
|
|
29
|
+
document.addEventListener('keydown', onKeyDown);
|
|
30
|
+
document.addEventListener('keyup', onKeyUp);
|
|
31
|
+
return function () {
|
|
32
|
+
document.removeEventListener('keydown', onKeyDown);
|
|
33
|
+
document.removeEventListener('keyup', onKeyUp);
|
|
34
|
+
};
|
|
35
|
+
}, []);
|
|
36
|
+
function setGroupCB(selectedId, newId) {
|
|
37
|
+
setLayouts(function (prev) {
|
|
38
|
+
var currentLayout = prev[layoutByDevice];
|
|
39
|
+
var firstIdx = currentLayout.findIndex(function (item) { return Number(item.i) === selectedId; });
|
|
40
|
+
var firstElem = currentLayout.splice(firstIdx, 1)[0];
|
|
41
|
+
var secondIdx = currentLayout.findIndex(function (item) { return Number(item.i) === newId; });
|
|
42
|
+
var secondElem = currentLayout.splice(secondIdx, 1)[0];
|
|
43
|
+
// if (currentLayout) {
|
|
44
|
+
// firstElem.childrenIds = currentLayout.childrenIds;
|
|
45
|
+
// firstElem.groupLayouts = currentLayout.groupLayouts;
|
|
46
|
+
// }
|
|
47
|
+
var group = (0, utils_1.getGroupData)(firstElem, secondElem);
|
|
48
|
+
currentLayout.push(group);
|
|
49
|
+
return __assign({}, prev);
|
|
50
|
+
});
|
|
51
|
+
}
|
|
52
|
+
function breakGroupCB() {
|
|
53
|
+
setLayouts(function (prev) {
|
|
54
|
+
var _a, _b;
|
|
55
|
+
var currentLayout = prev[layoutByDevice];
|
|
56
|
+
var groupIdx = currentLayout.findIndex(function (item) { return item.i === 'group'; });
|
|
57
|
+
if (groupIdx < 0) {
|
|
58
|
+
return prev;
|
|
59
|
+
}
|
|
60
|
+
var groupItem = currentLayout.splice(groupIdx, 1)[0];
|
|
61
|
+
var groupItems = (_b = (_a = groupItem === null || groupItem === void 0 ? void 0 : groupItem.groupLayouts) === null || _a === void 0 ? void 0 : _a.map(function (each) { return (__assign(__assign({}, each), { x: groupItem.x + each.x, y: groupItem.y + each.y })); })) !== null && _b !== void 0 ? _b : [];
|
|
62
|
+
currentLayout.push.apply(currentLayout, groupItems);
|
|
63
|
+
return __assign({}, prev);
|
|
64
|
+
});
|
|
65
|
+
}
|
|
66
|
+
function getGroupCB(layout) {
|
|
67
|
+
var groupIdx = layout.findIndex(function (item) { return item.i === 'group'; });
|
|
68
|
+
if (groupIdx < 0) {
|
|
69
|
+
return null;
|
|
70
|
+
}
|
|
71
|
+
var groupItem = layout[groupIdx];
|
|
72
|
+
return groupItem;
|
|
73
|
+
}
|
|
74
|
+
return { isShiftOn: isShiftOn, setGroupCB: setGroupCB, breakGroupCB: breakGroupCB, getGroupCB: getGroupCB };
|
|
75
|
+
}
|
|
76
|
+
exports.default = useGroupDrag;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { ComponentBlock } from '../../types';
|
|
2
|
+
import type { LayoutItem } from 'publ-echo/dist/lib';
|
|
3
|
+
export interface LayoutItemWithGroupType extends LayoutItem {
|
|
4
|
+
childrenIds: string[];
|
|
5
|
+
}
|
|
6
|
+
export declare function getGroupData(elem1: LayoutItemWithGroupType, elem2: LayoutItemWithGroupType): LayoutItemWithGroupType;
|
|
7
|
+
export declare function splitComponentBlocksByGroup(componentBlocks: ComponentBlock[], groupIds: string[]): {
|
|
8
|
+
inGroup: ComponentBlock[];
|
|
9
|
+
notInGroup: ComponentBlock[];
|
|
10
|
+
};
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __assign = (this && this.__assign) || function () {
|
|
3
|
+
__assign = Object.assign || function(t) {
|
|
4
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
5
|
+
s = arguments[i];
|
|
6
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
7
|
+
t[p] = s[p];
|
|
8
|
+
}
|
|
9
|
+
return t;
|
|
10
|
+
};
|
|
11
|
+
return __assign.apply(this, arguments);
|
|
12
|
+
};
|
|
13
|
+
var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
|
|
14
|
+
if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
|
|
15
|
+
if (ar || !(i in from)) {
|
|
16
|
+
if (!ar) ar = Array.prototype.slice.call(from, 0, i);
|
|
17
|
+
ar[i] = from[i];
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
return to.concat(ar || Array.prototype.slice.call(from));
|
|
21
|
+
};
|
|
22
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
23
|
+
exports.splitComponentBlocksByGroup = exports.getGroupData = void 0;
|
|
24
|
+
function getGroupData(elem1, elem2) {
|
|
25
|
+
var minX = Math.min(elem1.x, elem2.x);
|
|
26
|
+
var minY = Math.min(elem1.y, elem2.y);
|
|
27
|
+
var elem1W = elem1.x - minX + elem1.w;
|
|
28
|
+
var elem2W = elem2.x - minX + elem2.w;
|
|
29
|
+
var elem1H = elem1.y - minY + elem1.h;
|
|
30
|
+
var elem2H = elem2.y - minY + elem2.h;
|
|
31
|
+
var maxW = Math.max(elem1W, elem2W);
|
|
32
|
+
var maxH = Math.max(elem1H, elem2H);
|
|
33
|
+
var elem1InnerData = {
|
|
34
|
+
i: elem1.i,
|
|
35
|
+
x: elem1.x - minX,
|
|
36
|
+
y: elem1.y - minY,
|
|
37
|
+
w: elem1.w,
|
|
38
|
+
h: elem1.h
|
|
39
|
+
};
|
|
40
|
+
var elem2InnerData = {
|
|
41
|
+
i: elem2.i,
|
|
42
|
+
x: elem2.x - minX,
|
|
43
|
+
y: elem2.y - minY,
|
|
44
|
+
w: elem2.w,
|
|
45
|
+
h: elem2.h
|
|
46
|
+
};
|
|
47
|
+
var groupLayouts = elem1.groupLayouts
|
|
48
|
+
? getAdaptedGroupLayouts(elem1.groupLayouts, elem2InnerData, elem1, minX, minY)
|
|
49
|
+
: [elem1InnerData, elem2InnerData];
|
|
50
|
+
var childrenIds = elem1.groupLayouts ? __spreadArray(__spreadArray([], elem1.childrenIds, true), [elem2.i], false) : [elem1.i, elem2.i];
|
|
51
|
+
return {
|
|
52
|
+
i: 'group',
|
|
53
|
+
x: minX,
|
|
54
|
+
y: minY,
|
|
55
|
+
w: maxW,
|
|
56
|
+
h: maxH,
|
|
57
|
+
groupLayouts: groupLayouts,
|
|
58
|
+
childrenIds: childrenIds
|
|
59
|
+
};
|
|
60
|
+
}
|
|
61
|
+
exports.getGroupData = getGroupData;
|
|
62
|
+
function getAdaptedGroupLayouts(originals, comming, ogWrapper, minX, minY) {
|
|
63
|
+
var ogs = originals.map(function (og) {
|
|
64
|
+
var xNagativeGap = Math.max(0, ogWrapper.x - minX);
|
|
65
|
+
var yNagativeGap = Math.max(0, ogWrapper.y - minY);
|
|
66
|
+
return __assign(__assign({}, og), { x: og.x + xNagativeGap, y: og.y + yNagativeGap });
|
|
67
|
+
});
|
|
68
|
+
return __spreadArray(__spreadArray([], ogs, true), [comming], false);
|
|
69
|
+
}
|
|
70
|
+
function splitComponentBlocksByGroup(componentBlocks, groupIds) {
|
|
71
|
+
var inGroup = [];
|
|
72
|
+
var notInGroup = [];
|
|
73
|
+
componentBlocks.forEach(function (cb) {
|
|
74
|
+
if (groupIds.includes(cb.id.toString())) {
|
|
75
|
+
inGroup.push(cb);
|
|
76
|
+
}
|
|
77
|
+
else {
|
|
78
|
+
notInGroup.push(cb);
|
|
79
|
+
}
|
|
80
|
+
});
|
|
81
|
+
return {
|
|
82
|
+
inGroup: inGroup,
|
|
83
|
+
notInGroup: notInGroup
|
|
84
|
+
};
|
|
85
|
+
}
|
|
86
|
+
exports.splitComponentBlocksByGroup = splitComponentBlocksByGroup;
|
|
@@ -9,6 +9,14 @@ type GeneralCustomSectionType = {
|
|
|
9
9
|
queryableDefinitionPreset: string;
|
|
10
10
|
dynamicLayoutSectionId: number;
|
|
11
11
|
};
|
|
12
|
+
export type GroupCustomSectionType = {
|
|
13
|
+
id: 'group';
|
|
14
|
+
type: 'GROUP';
|
|
15
|
+
availablePlugins: Array<string>;
|
|
16
|
+
queryableTapSrc: string;
|
|
17
|
+
queryableDefinitionPreset: string;
|
|
18
|
+
dynamicLayoutSectionId: number;
|
|
19
|
+
};
|
|
12
20
|
export type AllCBProperties = CB_TEXT_PROPERTIES_TYPE | CB_BTN_PROPERTIES_TYPE | CB_RICHTEXT_PROPERTIES_TYPE | CB_RICHTEXT_PROPERTIES_TYPE | CB_DIVIDER_PROPERTIES_TYPE | CB_YOUTUBE_PROPERTIES_TYPE | CB_IMG_PROPERTIES_TYPE | CB_TWITTER_PROPERTIES_TYPE;
|
|
13
21
|
export type CB_TEXT_TYPE = GeneralCustomSectionType & {
|
|
14
22
|
componentBlockCode: CB_ALL_CODES.CB_TEXT;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import type { Device, JsonPropertiesParserResult } from './types';
|
|
2
|
-
import type { ISectionJsonProperties } from '
|
|
2
|
+
import type { ISectionJsonProperties } from '@sub/DynamicLayout/types';
|
|
3
3
|
export default function parseJsonProperties(properties: ISectionJsonProperties | undefined, device: Device): JsonPropertiesParserResult;
|