pds-dev-kit-web-test 0.2.9 → 0.2.11
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/desktop/common/components/TextFieldBase/TextFieldBase.js +1 -1
- 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/mobile/common/components/TextFieldBase/TextFieldBase.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/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/components/EditModeSectionMatcher/EditModeSectionMatcher.js +1 -1
- package/dist/src/sub/DynamicLayout/components/Section/Section.js +21 -4
- package/dist/src/sub/DynamicLayout/components/Section/components/CustomSectionBackgroundMedia.d.ts +1 -1
- package/dist/src/sub/DynamicLayout/components/Section/components/CustomSectionBackgroundMedia.js +1 -0
- package/dist/src/sub/DynamicLayout/mock_customSection.js +1 -1
- package/dist/src/sub/DynamicLayout/mock_samplePage.js +724 -11
- package/dist/src/sub/DynamicLayout/sections/CustomSection/CustomSection.js +11 -10
- 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 +5 -5
- 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 +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/types.d.ts +1 -1
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/components/S_CB_Box.js +33 -3
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/hooks/useCLINK.js +1 -1
- package/dist/src/sub/DynamicLayout/sections/CustomSection/util/isNullOrUndefined.d.ts +2 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/util/isNullOrUndefined.js +9 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/util/parseJsonProperties.d.ts +1 -1
- package/dist/src/sub/DynamicLayout/sections/CustomSection/util/parsePlacement.js +4 -4
- package/dist/src/sub/DynamicLayout/sections/CustomSection/util/stylePropParsers/parseStylePropBgColor.js +6 -2
- package/dist/src/sub/DynamicLayout/sections/CustomSection/util/stylePropParsers/parseStylePropBgOverlay.js +6 -2
- package/dist/src/sub/DynamicLayout/sections/FullscreenIframeSection/templates/TemplateA/desktop/D_TemplateA.js +1 -1
- package/dist/src/sub/DynamicLayout/sections/FullscreenIframeSection/templates/TemplateA/mobile/M_TemplateA.js +1 -1
- package/dist/src/sub/DynamicLayout/sections/MembershipSection/EditType/MembershipSection.d.ts +1 -1
- package/dist/src/sub/DynamicLayout/sections/MembershipSection/EditType/MembershipSection.js +1 -1
- package/dist/src/sub/DynamicLayout/sections/MembershipSection/EditType/templates/TemplateA/TemplateA.js +2 -2
- package/dist/src/sub/DynamicLayout/sections/MembershipSection/EditType/templates/TemplateA/desktop/D_TemplateA.d.ts +1 -1
- package/dist/src/sub/DynamicLayout/sections/MembershipSection/EditType/templates/TemplateA/desktop/components/EmptyMembershipSheet.js +4 -4
- package/dist/src/sub/DynamicLayout/sections/MembershipSection/EditType/templates/TemplateA/desktop/components/MembershipBenefitInfo.d.ts +1 -1
- package/dist/src/sub/DynamicLayout/sections/MembershipSection/EditType/templates/TemplateA/desktop/components/MembershipBenefitInfo.js +2 -2
- package/dist/src/sub/DynamicLayout/sections/MembershipSection/EditType/templates/TemplateA/desktop/components/MembershipPlanSheet.d.ts +1 -1
- package/dist/src/sub/DynamicLayout/sections/MembershipSection/EditType/templates/TemplateA/desktop/components/MembershipPlanSheet.js +5 -5
- package/dist/src/sub/DynamicLayout/sections/MembershipSection/EditType/templates/TemplateA/desktop/components/MembershipSheet.d.ts +1 -1
- package/dist/src/sub/DynamicLayout/sections/MembershipSection/EditType/templates/TemplateA/desktop/components/MembershipSheet.js +4 -4
- package/dist/src/sub/DynamicLayout/sections/MembershipSection/EditType/templates/TemplateA/desktop/components/NarrowMembershipListView.d.ts +1 -1
- package/dist/src/sub/DynamicLayout/sections/MembershipSection/EditType/templates/TemplateA/desktop/components/NarrowMembershipListView.js +3 -3
- package/dist/src/sub/DynamicLayout/sections/MembershipSection/EditType/templates/TemplateA/desktop/components/SectionContents.js +2 -2
- package/dist/src/sub/DynamicLayout/sections/MembershipSection/EditType/templates/TemplateA/desktop/components/UnavailableMembershipPlanSheet.d.ts +1 -1
- package/dist/src/sub/DynamicLayout/sections/MembershipSection/EditType/templates/TemplateA/desktop/components/UnavailableMembershipPlanSheet.js +4 -4
- package/dist/src/sub/DynamicLayout/sections/MembershipSection/EditType/templates/TemplateA/desktop/components/WideMembershipListView.d.ts +1 -1
- package/dist/src/sub/DynamicLayout/sections/MembershipSection/EditType/templates/TemplateA/desktop/components/WideMembershipListView.js +3 -3
- package/dist/src/sub/DynamicLayout/sections/MembershipSection/EditType/templates/TemplateA/mobile/M_TemplateA.d.ts +1 -1
- package/dist/src/sub/DynamicLayout/sections/MembershipSection/EditType/templates/TemplateA/mobile/components/EmptyMembershipSheet.js +4 -4
- package/dist/src/sub/DynamicLayout/sections/MembershipSection/EditType/templates/TemplateA/mobile/components/MembershipBenefitInfo.d.ts +1 -1
- package/dist/src/sub/DynamicLayout/sections/MembershipSection/EditType/templates/TemplateA/mobile/components/MembershipBenefitInfo.js +3 -3
- package/dist/src/sub/DynamicLayout/sections/MembershipSection/EditType/templates/TemplateA/mobile/components/MembershipContents.d.ts +1 -1
- package/dist/src/sub/DynamicLayout/sections/MembershipSection/EditType/templates/TemplateA/mobile/components/MembershipSectionSheet.d.ts +1 -1
- package/dist/src/sub/DynamicLayout/sections/MembershipSection/EditType/templates/TemplateA/mobile/components/MembershipSectionSheet.js +5 -5
- package/dist/src/sub/DynamicLayout/sections/MembershipSection/EditType/templates/TemplateA/mobile/components/SectionContents.js +2 -2
- package/dist/src/sub/DynamicLayout/sections/MembershipSection/EditType/templates/TemplateB/TemplateB.js +2 -2
- package/dist/src/sub/DynamicLayout/sections/MembershipSection/EditType/templates/TemplateB/desktop/D_TemplateB.d.ts +1 -1
- package/dist/src/sub/DynamicLayout/sections/MembershipSection/EditType/templates/TemplateB/desktop/components/EmptyMembershipSheet.js +4 -4
- package/dist/src/sub/DynamicLayout/sections/MembershipSection/EditType/templates/TemplateB/desktop/components/MembershipBenefitInfo.d.ts +1 -1
- package/dist/src/sub/DynamicLayout/sections/MembershipSection/EditType/templates/TemplateB/desktop/components/MembershipBenefitInfo.js +2 -2
- package/dist/src/sub/DynamicLayout/sections/MembershipSection/EditType/templates/TemplateB/desktop/components/MembershipCard.d.ts +1 -1
- package/dist/src/sub/DynamicLayout/sections/MembershipSection/EditType/templates/TemplateB/desktop/components/MembershipCard.js +2 -2
- package/dist/src/sub/DynamicLayout/sections/MembershipSection/EditType/templates/TemplateB/desktop/components/MembershipPlanSheet.d.ts +1 -1
- package/dist/src/sub/DynamicLayout/sections/MembershipSection/EditType/templates/TemplateB/desktop/components/MembershipPlanSheet.js +5 -5
- package/dist/src/sub/DynamicLayout/sections/MembershipSection/EditType/templates/TemplateB/desktop/components/MembershipSheet.d.ts +1 -1
- package/dist/src/sub/DynamicLayout/sections/MembershipSection/EditType/templates/TemplateB/desktop/components/MembershipSheet.js +6 -6
- package/dist/src/sub/DynamicLayout/sections/MembershipSection/EditType/templates/TemplateB/desktop/components/SectionContents.js +2 -2
- package/dist/src/sub/DynamicLayout/sections/MembershipSection/EditType/templates/TemplateB/desktop/components/UnavailableMembershipPlanSheet.d.ts +1 -1
- package/dist/src/sub/DynamicLayout/sections/MembershipSection/EditType/templates/TemplateB/desktop/components/UnavailableMembershipPlanSheet.js +4 -4
- package/dist/src/sub/DynamicLayout/sections/MembershipSection/EditType/templates/TemplateB/mobile/M_TemplateB.d.ts +1 -1
- package/dist/src/sub/DynamicLayout/sections/MembershipSection/EditType/templates/TemplateB/mobile/components/EmptyMembershipSheet.js +4 -4
- package/dist/src/sub/DynamicLayout/sections/MembershipSection/EditType/templates/TemplateB/mobile/components/MembershipBenefitInfo.d.ts +1 -1
- package/dist/src/sub/DynamicLayout/sections/MembershipSection/EditType/templates/TemplateB/mobile/components/MembershipBenefitInfo.js +3 -3
- package/dist/src/sub/DynamicLayout/sections/MembershipSection/EditType/templates/TemplateB/mobile/components/MembershipContents.d.ts +1 -1
- package/dist/src/sub/DynamicLayout/sections/MembershipSection/EditType/templates/TemplateB/mobile/components/MembershipSectionSheet.d.ts +1 -1
- package/dist/src/sub/DynamicLayout/sections/MembershipSection/EditType/templates/TemplateB/mobile/components/MembershipSectionSheet.js +5 -5
- package/dist/src/sub/DynamicLayout/sections/MembershipSection/EditType/templates/TemplateB/mobile/components/SectionContents.js +2 -2
- package/dist/src/sub/DynamicLayout/sections/MembershipSection/NormalType/MembershipSection.d.ts +1 -1
- package/dist/src/sub/DynamicLayout/sections/MembershipSection/NormalType/MembershipSection.js +1 -1
- package/dist/src/sub/DynamicLayout/sections/MembershipSection/NormalType/templates/TemplateA/TemplateA.js +1 -1
- package/dist/src/sub/DynamicLayout/sections/MembershipSection/NormalType/templates/TemplateA/desktop/D_TemplateA.js +1 -1
- package/dist/src/sub/DynamicLayout/sections/MembershipSection/NormalType/templates/TemplateA/desktop/components/SectionContents.js +2 -2
- package/dist/src/sub/DynamicLayout/sections/MembershipSection/NormalType/templates/TemplateA/mobile/M_TemplateA.js +1 -1
- package/dist/src/sub/DynamicLayout/sections/MembershipSection/NormalType/templates/TemplateA/mobile/components/SectionContents.js +2 -2
- package/dist/src/sub/DynamicLayout/sections/MembershipSection/NormalType/templates/TemplateB/TemplateB.js +1 -1
- package/dist/src/sub/DynamicLayout/sections/MembershipSection/NormalType/templates/TemplateB/desktop/D_TemplateB.js +1 -1
- package/dist/src/sub/DynamicLayout/sections/MembershipSection/NormalType/templates/TemplateB/desktop/components/SectionContents.js +2 -2
- package/dist/src/sub/DynamicLayout/sections/MembershipSection/NormalType/templates/TemplateB/mobile/M_TemplateB.js +1 -1
- package/dist/src/sub/DynamicLayout/sections/MembershipSection/NormalType/templates/TemplateB/mobile/components/SectionContents.js +2 -2
- package/dist/src/sub/DynamicLayout/sections/MembershipSection/components/desktop/MembershipSectionItem.d.ts +3 -3
- package/dist/src/sub/DynamicLayout/sections/MembershipSection/components/desktop/MembershipSectionItem.js +2 -2
- package/dist/src/sub/DynamicLayout/sections/MembershipSection/components/mobile/MembershipSectionItem.d.ts +3 -3
- package/dist/src/sub/DynamicLayout/sections/MembershipSection/components/mobile/MembershipSectionItem.js +2 -2
- package/dist/src/sub/DynamicLayout/sections/MembershipSection/constants.d.ts +1 -1
- package/package.json +1 -1
- package/release-note.md +1 -1
- package/webhook/node_modules/esrecurse/.babelrc +0 -3
|
@@ -21,10 +21,11 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
21
21
|
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
22
22
|
var publ_echo_1 = require("publ-echo");
|
|
23
23
|
var react_1 = require("react");
|
|
24
|
-
var dynamicLayoutContext_1 = require("
|
|
24
|
+
var dynamicLayoutContext_1 = require("@sub/DynamicLayout/dynamicLayoutContext");
|
|
25
25
|
var styled_components_1 = __importDefault(require("styled-components"));
|
|
26
26
|
var components_1 = require("../../components");
|
|
27
27
|
var ComponentBlockMatcher_1 = __importDefault(require("./components/ComponentBlock/ComponentBlockMatcher"));
|
|
28
|
+
var isNullOrUndefined_1 = __importDefault(require("./util/isNullOrUndefined"));
|
|
28
29
|
var parsePlacement_1 = require("./util/parsePlacement");
|
|
29
30
|
var Responsive = (0, publ_echo_1.WidthProvider)(publ_echo_1.ResponsiveGridEditor);
|
|
30
31
|
function CustomSection(props) {
|
|
@@ -54,30 +55,29 @@ function CustomSection(props) {
|
|
|
54
55
|
return CB_PLACEMENT_PROP_SECTION
|
|
55
56
|
? {
|
|
56
57
|
minHeight: isMobile &&
|
|
57
|
-
CB_PLACEMENT_PROP_SECTION['CB_PLACEMENT_PROP_SECTION_SPEC_MINHEIGHT:MOBILE']
|
|
58
|
-
undefined
|
|
58
|
+
!(0, isNullOrUndefined_1.default)(CB_PLACEMENT_PROP_SECTION['CB_PLACEMENT_PROP_SECTION_SPEC_MINHEIGHT:MOBILE'])
|
|
59
59
|
? CB_PLACEMENT_PROP_SECTION['CB_PLACEMENT_PROP_SECTION_SPEC_MINHEIGHT:MOBILE']
|
|
60
60
|
: CB_PLACEMENT_PROP_SECTION.CB_PLACEMENT_PROP_SECTION_SPEC_MINHEIGHT,
|
|
61
61
|
width: isMobile &&
|
|
62
|
-
CB_PLACEMENT_PROP_SECTION['CB_PLACEMENT_PROP_SECTION_SPEC_WIDTH:MOBILE']
|
|
62
|
+
!(0, isNullOrUndefined_1.default)(CB_PLACEMENT_PROP_SECTION['CB_PLACEMENT_PROP_SECTION_SPEC_WIDTH:MOBILE'])
|
|
63
63
|
? CB_PLACEMENT_PROP_SECTION['CB_PLACEMENT_PROP_SECTION_SPEC_WIDTH:MOBILE']
|
|
64
64
|
: CB_PLACEMENT_PROP_SECTION.CB_PLACEMENT_PROP_SECTION_SPEC_WIDTH,
|
|
65
65
|
rows: isMobile &&
|
|
66
|
-
CB_PLACEMENT_PROP_SECTION['CB_PLACEMENT_PROP_SECTION_SPEC_ROWS:MOBILE']
|
|
66
|
+
!(0, isNullOrUndefined_1.default)(CB_PLACEMENT_PROP_SECTION['CB_PLACEMENT_PROP_SECTION_SPEC_ROWS:MOBILE'])
|
|
67
67
|
? CB_PLACEMENT_PROP_SECTION['CB_PLACEMENT_PROP_SECTION_SPEC_ROWS:MOBILE']
|
|
68
68
|
: CB_PLACEMENT_PROP_SECTION.CB_PLACEMENT_PROP_SECTION_SPEC_ROWS,
|
|
69
69
|
isFullWidth: isMobile &&
|
|
70
|
-
CB_PLACEMENT_PROP_SECTION['CB_PLACEMENT_PROP_SECTION_SPEC_FULLWIDTH:MOBILE']
|
|
71
|
-
undefined
|
|
70
|
+
!(0, isNullOrUndefined_1.default)(CB_PLACEMENT_PROP_SECTION['CB_PLACEMENT_PROP_SECTION_SPEC_FULLWIDTH:MOBILE'])
|
|
72
71
|
? CB_PLACEMENT_PROP_SECTION['CB_PLACEMENT_PROP_SECTION_SPEC_FULLWIDTH:MOBILE']
|
|
73
72
|
: CB_PLACEMENT_PROP_SECTION.CB_PLACEMENT_PROP_SECTION_SPEC_FULLWIDTH
|
|
74
73
|
}
|
|
75
74
|
: {};
|
|
76
75
|
}, [CB_PLACEMENT_PROP_SECTION, isMobile]);
|
|
77
76
|
var rows = customSectionProps.rows, width = customSectionProps.width, minHeight = customSectionProps.minHeight, isFullWidth = customSectionProps.isFullWidth;
|
|
77
|
+
// eslint-disable-next-line react/destructuring-assignment
|
|
78
78
|
var customSectionStyles = {
|
|
79
|
-
minHeight: minHeight,
|
|
80
|
-
width: isFullWidth ? '100%' : width,
|
|
79
|
+
minHeight: minHeight + "px",
|
|
80
|
+
width: isFullWidth ? '100%' : width + "px",
|
|
81
81
|
display: 'flex',
|
|
82
82
|
alignItems: 'center',
|
|
83
83
|
justifyContent: 'center'
|
|
@@ -142,7 +142,8 @@ function CustomSection(props) {
|
|
|
142
142
|
});
|
|
143
143
|
};
|
|
144
144
|
return ((0, jsx_runtime_1.jsx)(S_gleStyles, __assign({ customHeight: customMinHeight }, { children: (0, jsx_runtime_1.jsx)(S_SectionWrapper, __assign({ ref: gleRef, "x-dlayout-section-type": "NO_NAME", onClick: onClickSection }, { children: (0, jsx_runtime_1.jsx)(components_1.Section, __assign({}, props, { overrideStyles: customSectionStyles, isMobile: isMobile }, { children: (0, jsx_runtime_1.jsx)(Responsive, __assign({ allowOverlap: true, layouts: { lg: layouts.lg, sm: layouts.sm }, resizeHandles: ['nw', 'e', 'n', 'ne', 's', 'se', 'sw', 'w'], breakpoints: { lg: 800, sm: 480 }, breakpoint: breakpoint, cols: { lg: 24, sm: 8 }, rowHeight: 50, margin: [10, 10], style: {
|
|
145
|
-
width: customSectionStyles.width
|
|
145
|
+
width: customSectionStyles.width,
|
|
146
|
+
minHeight: customMinHeight
|
|
146
147
|
}, onLayoutChange: onLayoutChange, onDragStop: onDragStop, onResizeStop: onResizeStop }, { children: componentBlocks ? (componentBlocks.map(function (each) { return ((0, jsx_runtime_1.jsx)("div", __assign({ className: selectedCB === each.id ? 'react-grid-item-selected' : '' }, { children: (0, jsx_runtime_1.jsx)("div", __assign({ style: {
|
|
147
148
|
width: '100%',
|
|
148
149
|
height: '100%',
|
|
@@ -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
|
declare type Props = CB_BTN_PROPERTIES_TYPE;
|
|
4
4
|
declare function Button(props: Props): JSX.Element;
|
|
5
5
|
export default Button;
|
|
@@ -17,11 +17,11 @@ 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("
|
|
21
|
-
var hooks_1 = require("
|
|
22
|
-
var newUtils_1 = require("
|
|
23
|
-
var colorUtil_1 = require("
|
|
24
|
-
var util_1 = require("
|
|
20
|
+
var DynamicLayout_1 = require("@sub/DynamicLayout");
|
|
21
|
+
var hooks_1 = require("@sub/DynamicLayout/sections/CustomSection/hooks");
|
|
22
|
+
var newUtils_1 = require("@sub/DynamicLayout/sections/CustomSection/newUtils");
|
|
23
|
+
var colorUtil_1 = require("@sub/DynamicLayout/sections/CustomSection/newUtils/colorUtil");
|
|
24
|
+
var util_1 = require("@sub/DynamicLayout/sections/CustomSection/util");
|
|
25
25
|
var S_CB_Box_1 = require("../components/S_CB_Box");
|
|
26
26
|
var S_HiddenCover_1 = require("../components/S_HiddenCover");
|
|
27
27
|
var useCLINK_1 = __importDefault(require("../hooks/useCLINK"));
|
|
@@ -36,7 +36,7 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
36
36
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
37
37
|
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
38
38
|
var react_1 = require("react");
|
|
39
|
-
var DynamicLayout_1 = require("
|
|
39
|
+
var DynamicLayout_1 = require("@sub/DynamicLayout");
|
|
40
40
|
var styled_components_1 = __importStar(require("styled-components"));
|
|
41
41
|
var hooks_1 = require("../../../../hooks");
|
|
42
42
|
var util_1 = require("../../../../util");
|
|
@@ -39,7 +39,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
39
39
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
40
40
|
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
41
41
|
var react_1 = require("react");
|
|
42
|
-
var DynamicLayout_1 = require("
|
|
42
|
+
var DynamicLayout_1 = require("@sub/DynamicLayout");
|
|
43
43
|
var styled_components_1 = __importStar(require("styled-components"));
|
|
44
44
|
var hooks_1 = require("../../../../hooks");
|
|
45
45
|
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 declare type ImagePropsKeys = keyof CB_IMAGE_STYLE_PROPS;
|
|
3
3
|
export declare 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
|
declare 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_Box_1 = require("../components/S_CB_Box");
|
|
31
31
|
var S_HiddenCover_1 = require("../components/S_HiddenCover");
|
|
@@ -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 declare type CB_STYLE_PROP_BGOVERLAY_ENUM_GRADIENT = 'LINEAR' | 'RADIAL';
|
|
4
4
|
export declare type CB_STYLE_PROP_BGOVERLAY_ENUM_TYPE = 'NONE' | 'SOLID' | 'GRADIENT';
|
|
5
5
|
export declare 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 textUtil_1 = require("../../../../newUtils/textUtil");
|
|
23
23
|
var util_1 = require("../../../../util");
|
|
@@ -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 declare type TextPropsKeys = keyof CB_TEXT_STYLE_PROPS;
|
|
3
3
|
export declare type CB_TEXT_STYLE_PROPS = {
|
|
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_Box_1 = require("../components/S_CB_Box");
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { DefaultBrightTheme } from '
|
|
1
|
+
import type { DefaultBrightTheme } from '@sub/DynamicLayout/sections/CustomSection/util/types';
|
|
2
2
|
export declare type TwitterPropsKeys = keyof CB_TWITTER_STYLE_PROPS;
|
|
3
3
|
export declare type CB_TWITTER_STYLE_PROPS = {
|
|
4
4
|
CB_STYLE_PROP_TWITTER_SPEC_THEME: DefaultBrightTheme;
|
|
@@ -1,5 +1,5 @@
|
|
|
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
|
declare type Props = CB_YOUTUBE_PROPERTIES_TYPE;
|
|
4
4
|
declare function Youtube(props: Props): JSX.Element;
|
|
5
5
|
export default Youtube;
|
|
@@ -20,10 +20,10 @@ 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 DynamicLayout_1 = require("
|
|
24
|
-
var hooks_1 = require("
|
|
25
|
-
var colorUtil_1 = require("
|
|
26
|
-
var util_1 = require("
|
|
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");
|
|
27
27
|
var styled_components_1 = __importDefault(require("styled-components"));
|
|
28
28
|
var S_CB_Box_1 = require("../components/S_CB_Box");
|
|
29
29
|
var S_HiddenCover_1 = require("../components/S_HiddenCover");
|
|
@@ -1,4 +1,4 @@
|
|
|
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 declare type CB_CONTENT_PROP_YOUTUBE_TYPE = {
|
|
3
3
|
CB_CONTENT_PROP_YOUTUBE_SPEC_ENDTIME: number;
|
|
4
4
|
CB_CONTENT_PROP_YOUTUBE_SPEC_MPLAY: boolean;
|
|
@@ -36,11 +36,41 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
36
36
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
37
37
|
exports.S_CB_Box = void 0;
|
|
38
38
|
var styled_components_1 = __importStar(require("styled-components"));
|
|
39
|
-
exports.S_CB_Box = 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 overflow: hidden;\n width: 100%;\n\n ", ";\n\n &:hover {\n ", ";\n }\n"], ["\n /*\n Introduced in IE 10.\n See http://ie.microsoft.com/testdrive/HTML5/msUserSelect/\n */\n\n height: 100%;\n overflow: hidden;\n width: 100%;\n\n ", ";\n\n &:hover {\n ", ";\n }\n"])), function (_a) {
|
|
39
|
+
exports.S_CB_Box = 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 overflow: hidden;\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 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 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 overflow: hidden;\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 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 position: absolute;\n top: 0;\n width: 100%;\n }\n }\n"])), function (_a) {
|
|
40
40
|
var normalStyle = _a.normalStyle;
|
|
41
|
-
return (0, styled_components_1.css)(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n ", "\n "], ["\n ", "\n "])), __assign({}, normalStyle));
|
|
41
|
+
return (0, styled_components_1.css)(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n ", "\n "], ["\n ", "\n "])), __assign(__assign({}, normalStyle), { boxShadow: '' }));
|
|
42
|
+
}, function (_a) {
|
|
43
|
+
var normalStyle = _a.normalStyle;
|
|
44
|
+
return normalStyle.borderBottomLeftRadius;
|
|
45
|
+
}, function (_a) {
|
|
46
|
+
var normalStyle = _a.normalStyle;
|
|
47
|
+
return normalStyle.borderBottomRightRadius;
|
|
48
|
+
}, function (_a) {
|
|
49
|
+
var normalStyle = _a.normalStyle;
|
|
50
|
+
return normalStyle.borderTopLeftRadius;
|
|
51
|
+
}, function (_a) {
|
|
52
|
+
var normalStyle = _a.normalStyle;
|
|
53
|
+
return normalStyle.borderTopRightRadius;
|
|
54
|
+
}, function (_a) {
|
|
55
|
+
var normalStyle = _a.normalStyle;
|
|
56
|
+
return normalStyle.boxShadow;
|
|
57
|
+
}, function (_a) {
|
|
58
|
+
var hoverStyle = _a.hoverStyle;
|
|
59
|
+
return (0, styled_components_1.css)(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n ", "\n "], ["\n ", "\n "])), __assign(__assign({}, hoverStyle), { boxShadow: '' }));
|
|
60
|
+
}, function (_a) {
|
|
61
|
+
var hoverStyle = _a.hoverStyle;
|
|
62
|
+
return hoverStyle.borderBottomLeftRadius;
|
|
63
|
+
}, function (_a) {
|
|
64
|
+
var hoverStyle = _a.hoverStyle;
|
|
65
|
+
return hoverStyle.borderBottomRightRadius;
|
|
66
|
+
}, function (_a) {
|
|
67
|
+
var hoverStyle = _a.hoverStyle;
|
|
68
|
+
return hoverStyle.borderTopLeftRadius;
|
|
69
|
+
}, function (_a) {
|
|
70
|
+
var hoverStyle = _a.hoverStyle;
|
|
71
|
+
return hoverStyle.borderTopRightRadius;
|
|
42
72
|
}, function (_a) {
|
|
43
73
|
var hoverStyle = _a.hoverStyle;
|
|
44
|
-
return
|
|
74
|
+
return hoverStyle.boxShadow;
|
|
45
75
|
});
|
|
46
76
|
var templateObject_1, templateObject_2, templateObject_3;
|
|
@@ -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;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import type { Device, OverlayStyleAndOverlayHoverStyle, ParserResult } 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): ParserResult & Partial<OverlayStyleAndOverlayHoverStyle>;
|
|
@@ -32,10 +32,10 @@ function parsePropPlacement(props, id) {
|
|
|
32
32
|
};
|
|
33
33
|
var mobileLayout = {
|
|
34
34
|
i: id.toString(),
|
|
35
|
-
x: props['
|
|
36
|
-
y: props['
|
|
37
|
-
w: props['
|
|
38
|
-
h: props['
|
|
35
|
+
x: props['CB_PLACEMENT_PROP_PLACEMENT_SPEC_STARTX:MOBILE'],
|
|
36
|
+
y: props['CB_PLACEMENT_PROP_PLACEMENT_SPEC_STARTY:MOBILE'],
|
|
37
|
+
w: props['CB_PLACEMENT_PROP_PLACEMENT_SPEC_COLS:MOBILE'],
|
|
38
|
+
h: props['CB_PLACEMENT_PROP_PLACEMENT_SPEC_ROWS:MOBILE'],
|
|
39
39
|
z: props['CB_PLACEMENT_PROP_PLACEMENT_SPEC_ZINDEX:MOBILE']
|
|
40
40
|
};
|
|
41
41
|
return {
|
|
@@ -10,7 +10,11 @@ var __assign = (this && this.__assign) || function () {
|
|
|
10
10
|
};
|
|
11
11
|
return __assign.apply(this, arguments);
|
|
12
12
|
};
|
|
13
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
14
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
15
|
+
};
|
|
13
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
var isNullOrUndefined_1 = __importDefault(require("../isNullOrUndefined"));
|
|
14
18
|
var AVAILABLE_SPECS = [
|
|
15
19
|
'CB_STYLE_PROP_BGCOLOR_SPEC_ANGLE',
|
|
16
20
|
'CB_STYLE_PROP_BGCOLOR_SPEC_COLOR',
|
|
@@ -29,8 +33,8 @@ function parseStylePropBgColor(namedProps, device) {
|
|
|
29
33
|
var value = specs[baseKey];
|
|
30
34
|
var hoverValue = specs[baseKey + ":HOVER"];
|
|
31
35
|
return {
|
|
32
|
-
style: __assign(__assign({}, acc.style), (_a = {}, _a[baseKey] = value
|
|
33
|
-
hoverStyle: __assign(__assign({}, acc.hoverStyle), (_b = {}, _b[baseKey] = hoverValue
|
|
36
|
+
style: __assign(__assign({}, acc.style), (_a = {}, _a[baseKey] = (0, isNullOrUndefined_1.default)(value) ? specs[cur] : value, _a)),
|
|
37
|
+
hoverStyle: __assign(__assign({}, acc.hoverStyle), (_b = {}, _b[baseKey] = (0, isNullOrUndefined_1.default)(hoverValue) ? specs[cur + ":HOVER"] : hoverValue, _b))
|
|
34
38
|
};
|
|
35
39
|
}, {
|
|
36
40
|
style: {},
|
|
@@ -10,7 +10,11 @@ var __assign = (this && this.__assign) || function () {
|
|
|
10
10
|
};
|
|
11
11
|
return __assign.apply(this, arguments);
|
|
12
12
|
};
|
|
13
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
14
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
15
|
+
};
|
|
13
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
var isNullOrUndefined_1 = __importDefault(require("../isNullOrUndefined"));
|
|
14
18
|
var AVAILABLE_SPECS = [
|
|
15
19
|
'CB_STYLE_PROP_BGOVERLAY_SPEC_ANGLE',
|
|
16
20
|
'CB_STYLE_PROP_BGOVERLAY_SPEC_COLOR',
|
|
@@ -31,8 +35,8 @@ function parseStylePropBgOverlay(namedProps, device) {
|
|
|
31
35
|
return {
|
|
32
36
|
style: __assign({}, acc.style),
|
|
33
37
|
hoverStyle: __assign({}, acc.hoverStyle),
|
|
34
|
-
overlayStyle: __assign(__assign({}, acc.overlayStyle), (_a = {}, _a[baseKey] = value
|
|
35
|
-
overlayHoverStyle: __assign(__assign({}, acc.overlayHoverStyle), (_b = {}, _b[baseKey] = hoverValue
|
|
38
|
+
overlayStyle: __assign(__assign({}, acc.overlayStyle), (_a = {}, _a[baseKey] = (0, isNullOrUndefined_1.default)(value) ? specs[cur] : value, _a)),
|
|
39
|
+
overlayHoverStyle: __assign(__assign({}, acc.overlayHoverStyle), (_b = {}, _b[baseKey] = (0, isNullOrUndefined_1.default)(hoverValue) ? specs[cur + ":HOVER"] : hoverValue, _b))
|
|
36
40
|
};
|
|
37
41
|
}, {
|
|
38
42
|
style: {},
|
|
@@ -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 DynamicLayout_1 = require("
|
|
5
|
+
var DynamicLayout_1 = require("@sub/DynamicLayout");
|
|
6
6
|
var Section_1 = require("../../../../../components/Section");
|
|
7
7
|
function TemplateA() {
|
|
8
8
|
var sectionActionHandler = (0, react_1.useContext)(DynamicLayout_1.dynamicLayoutContext).sectionActionHandler;
|
|
@@ -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 DynamicLayout_1 = require("
|
|
5
|
+
var DynamicLayout_1 = require("@sub/DynamicLayout");
|
|
6
6
|
var Section_1 = require("../../../../../components/Section");
|
|
7
7
|
function TemplateA() {
|
|
8
8
|
var sectionActionHandler = (0, react_1.useContext)(DynamicLayout_1.dynamicLayoutContext).sectionActionHandler;
|
package/dist/src/sub/DynamicLayout/sections/MembershipSection/EditType/MembershipSection.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import type { ISection } from '
|
|
2
|
+
import type { ISection } from '@sub/DynamicLayout/types';
|
|
3
3
|
declare function EditTypeMembershipSection({ ...props }: ISection): JSX.Element;
|
|
4
4
|
export default EditTypeMembershipSection;
|
|
@@ -31,7 +31,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
31
31
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
32
32
|
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
33
33
|
var react_1 = require("react");
|
|
34
|
-
var components_1 = require("
|
|
34
|
+
var components_1 = require("@sub/DynamicLayout/components");
|
|
35
35
|
var styled_components_1 = __importDefault(require("styled-components"));
|
|
36
36
|
var templates_1 = require("./templates");
|
|
37
37
|
function EditTypeMembershipSection(_a) {
|
|
@@ -2,8 +2,8 @@
|
|
|
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 Section_1 = require("
|
|
6
|
-
var dynamicLayoutContext_1 = require("
|
|
5
|
+
var Section_1 = require("@sub/DynamicLayout/components/Section");
|
|
6
|
+
var dynamicLayoutContext_1 = require("@sub/DynamicLayout/dynamicLayoutContext");
|
|
7
7
|
var desktop_1 = require("./desktop");
|
|
8
8
|
var mobile_1 = require("./mobile");
|
|
9
9
|
function TemplateA(_a) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import type { IMembershipDisplay } from '
|
|
2
|
+
import type { IMembershipDisplay } from '@sub/DynamicLayout/types';
|
|
3
3
|
declare type Props = {
|
|
4
4
|
membershipDisplay: IMembershipDisplay;
|
|
5
5
|
isWideView: boolean;
|
|
@@ -14,10 +14,10 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
14
14
|
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
15
15
|
var react_1 = require("react");
|
|
16
16
|
var react_i18next_1 = require("react-i18next");
|
|
17
|
-
var panels_1 = require("
|
|
18
|
-
var Section_1 = require("
|
|
19
|
-
var components_1 = require("
|
|
20
|
-
var constants_1 = require("
|
|
17
|
+
var panels_1 = require("@desktop/panels");
|
|
18
|
+
var Section_1 = require("@sub/DynamicLayout/components/Section");
|
|
19
|
+
var components_1 = require("@sub/DynamicLayout/sections/MembershipSection/components");
|
|
20
|
+
var constants_1 = require("@sub/DynamicLayout/sections/MembershipSection/constants");
|
|
21
21
|
function EmptyMembershipSheet() {
|
|
22
22
|
var t = (0, react_i18next_1.useTranslation)('translation').t;
|
|
23
23
|
var section = (0, react_1.useContext)(Section_1.sectionContext);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import type { IMembershipBenefitInfo } from '
|
|
2
|
+
import type { IMembershipBenefitInfo } from '@sub/DynamicLayout/types';
|
|
3
3
|
declare type Props = {
|
|
4
4
|
membershipBenefitInfo: IMembershipBenefitInfo;
|
|
5
5
|
itemToneTextLabelColor: string;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
4
|
-
var components_1 = require("
|
|
5
|
-
var components_2 = require("
|
|
4
|
+
var components_1 = require("@sub/DynamicLayout/components");
|
|
5
|
+
var components_2 = require("@sub/DynamicLayout/sections/MembershipSection/components");
|
|
6
6
|
function MembershipBenefitInfo(_a) {
|
|
7
7
|
var membershipBenefitInfo = _a.membershipBenefitInfo, itemToneTextLabelColor = _a.itemToneTextLabelColor;
|
|
8
8
|
return ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(components_1.Spacing, { size: "spacing_e" }, void 0), membershipBenefitInfo.benefitAlpha && ((0, jsx_runtime_1.jsx)(components_2.D_MembershipSectionItem.Description, { text: membershipBenefitInfo.benefitAlpha, styleTheme: "subTitleRegular", color: itemToneTextLabelColor, textAlign: "left", wordBreak: "break_all", bulletPointMode: "use" }, void 0)), membershipBenefitInfo.benefitBravo && ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(components_1.Spacing, { size: "spacing_b" }, void 0), (0, jsx_runtime_1.jsx)(components_2.D_MembershipSectionItem.Description, { text: membershipBenefitInfo.benefitBravo, styleTheme: "subTitleRegular", color: itemToneTextLabelColor, textAlign: "left", wordBreak: "break_all", bulletPointMode: "use" }, void 0)] }, void 0)), membershipBenefitInfo.benefitCharlie && ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(components_1.Spacing, { size: "spacing_b" }, void 0), (0, jsx_runtime_1.jsx)(components_2.D_MembershipSectionItem.Description, { text: membershipBenefitInfo.benefitCharlie, styleTheme: "subTitleRegular", color: itemToneTextLabelColor, textAlign: "left", wordBreak: "break_all", bulletPointMode: "use" }, void 0)] }, void 0)), membershipBenefitInfo.benefitDelta && ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(components_1.Spacing, { size: "spacing_b" }, void 0), (0, jsx_runtime_1.jsx)(components_2.D_MembershipSectionItem.Description, { text: membershipBenefitInfo.benefitDelta, styleTheme: "subTitleRegular", color: itemToneTextLabelColor, textAlign: "left", wordBreak: "break_all", bulletPointMode: "use" }, void 0)] }, void 0)), membershipBenefitInfo.benefitEcho && ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(components_1.Spacing, { size: "spacing_b" }, void 0), (0, jsx_runtime_1.jsx)(components_2.D_MembershipSectionItem.Description, { text: membershipBenefitInfo.benefitEcho, styleTheme: "subTitleRegular", color: itemToneTextLabelColor, textAlign: "left", wordBreak: "break_all", bulletPointMode: "use" }, void 0)] }, void 0))] }, void 0));
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import type { IConnectedSubscriptionProducts, ISectionStyles } from '
|
|
2
|
+
import type { IConnectedSubscriptionProducts, ISectionStyles } from '@sub/DynamicLayout/types';
|
|
3
3
|
declare type Props = {
|
|
4
4
|
connectedSubscriptionProducts: IConnectedSubscriptionProducts;
|
|
5
5
|
sectionStyles: ISectionStyles;
|
|
@@ -21,11 +21,11 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
21
21
|
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
22
22
|
var react_1 = require("react");
|
|
23
23
|
var react_i18next_1 = require("react-i18next");
|
|
24
|
-
var panels_1 = require("
|
|
25
|
-
var components_1 = require("
|
|
26
|
-
var components_2 = require("
|
|
27
|
-
var constants_1 = require("
|
|
28
|
-
var formatCurrency_1 = __importDefault(require("
|
|
24
|
+
var panels_1 = require("@desktop/panels");
|
|
25
|
+
var components_1 = require("@hybrid/components");
|
|
26
|
+
var components_2 = require("@sub/DynamicLayout/sections/MembershipSection/components");
|
|
27
|
+
var constants_1 = require("@sub/DynamicLayout/sections/MembershipSection/constants");
|
|
28
|
+
var formatCurrency_1 = __importDefault(require("@sub/DynamicLayout/utils/formatCurrency"));
|
|
29
29
|
var styled_components_1 = __importDefault(require("styled-components"));
|
|
30
30
|
function MembershipPlanSheet(_a) {
|
|
31
31
|
var connectedSubscriptionProducts = _a.connectedSubscriptionProducts, sectionStyles = _a.sectionStyles;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import type { IConnectedMembership } from '
|
|
2
|
+
import type { IConnectedMembership } from '@sub/DynamicLayout/types';
|
|
3
3
|
declare type Props = {
|
|
4
4
|
connectedMemberships: IConnectedMembership[];
|
|
5
5
|
isWideView: boolean;
|
|
@@ -39,10 +39,10 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
39
39
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
40
40
|
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
41
41
|
var react_1 = require("react");
|
|
42
|
-
var panels_1 = require("
|
|
43
|
-
var Section_1 = require("
|
|
44
|
-
var components_1 = require("
|
|
45
|
-
var constants_1 = require("
|
|
42
|
+
var panels_1 = require("@desktop/panels");
|
|
43
|
+
var Section_1 = require("@sub/DynamicLayout/components/Section");
|
|
44
|
+
var components_1 = require("@sub/DynamicLayout/sections/MembershipSection/components");
|
|
45
|
+
var constants_1 = require("@sub/DynamicLayout/sections/MembershipSection/constants");
|
|
46
46
|
var styled_components_1 = __importStar(require("styled-components"));
|
|
47
47
|
var MembershipBenefitInfo_1 = __importDefault(require("./MembershipBenefitInfo"));
|
|
48
48
|
var MembershipPlanSheet_1 = __importDefault(require("./MembershipPlanSheet"));
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import type { IConnectedMembership, TypeOfItemToneType } from '
|
|
2
|
+
import type { IConnectedMembership, TypeOfItemToneType } from '@sub/DynamicLayout/types';
|
|
3
3
|
declare type Props = {
|
|
4
4
|
connectedMemberships: IConnectedMembership[];
|
|
5
5
|
itemHighlightingColorInHex: string;
|
|
@@ -36,9 +36,9 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
36
36
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
37
37
|
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
38
38
|
var react_1 = require("react");
|
|
39
|
-
var panels_1 = require("
|
|
40
|
-
var components_1 = require("
|
|
41
|
-
var constants_1 = require("
|
|
39
|
+
var panels_1 = require("@desktop/panels");
|
|
40
|
+
var components_1 = require("@sub/DynamicLayout/sections/MembershipSection/components");
|
|
41
|
+
var constants_1 = require("@sub/DynamicLayout/sections/MembershipSection/constants");
|
|
42
42
|
var styled_components_1 = __importStar(require("styled-components"));
|
|
43
43
|
function NarrowMembershipListView(_a) {
|
|
44
44
|
var connectedMemberships = _a.connectedMemberships, itemHighlightingColorInHex = _a.itemHighlightingColorInHex, itemToneType = _a.itemToneType, currentIndex = _a.currentIndex, handleMembershipClick = _a.handleMembershipClick;
|
|
@@ -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);
|
|
@@ -13,10 +13,10 @@ 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_i18next_1 = require("react-i18next");
|
|
16
|
-
var panels_1 = require("
|
|
17
|
-
var components_1 = require("
|
|
18
|
-
var components_2 = require("
|
|
19
|
-
var constants_1 = require("
|
|
16
|
+
var panels_1 = require("@desktop/panels");
|
|
17
|
+
var components_1 = require("@hybrid/components");
|
|
18
|
+
var components_2 = require("@sub/DynamicLayout/sections/MembershipSection/components");
|
|
19
|
+
var constants_1 = require("@sub/DynamicLayout/sections/MembershipSection/constants");
|
|
20
20
|
function UnavailableMembershipPlanSheet(_a) {
|
|
21
21
|
var sectionStyles = _a.sectionStyles;
|
|
22
22
|
var t = (0, react_i18next_1.useTranslation)('translation').t;
|