pds-dev-kit-web-test 2.5.339 → 2.5.341
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/sub/DynamicLayout/CompositionEditor/CompositionEditor.js +61 -49
- package/dist/src/sub/DynamicLayout/CompositionEditor/CompositionEditorContext.d.ts +4 -0
- package/dist/src/sub/DynamicLayout/CompositionEditor/CompositionEditorContext.js +8 -0
- package/dist/src/sub/DynamicLayout/CompositionRenderer/ComponentBlockMatcher.js +0 -3
- package/dist/src/sub/DynamicLayout/mock_contentsCarousel.js +1 -1
- package/dist/src/sub/DynamicLayout/mocks.d.ts +1 -3
- package/dist/src/sub/DynamicLayout/mocks.js +2 -14
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/ComponentBlockMatcher.js +0 -5
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/types.d.ts +1 -11
- package/dist/src/sub/DynamicLayout/sections/CustomSection/types.d.ts +3 -11
- package/dist/src/sub/DynamicLayout/sections/CustomSection/types.js +0 -1
- package/dist/src/sub/DynamicLayout/sections/CustomSection/util/parseProperties.d.ts +2 -2
- package/dist/src/sub/DynamicLayout/sections/CustomSection/util/types.d.ts +1 -16
- package/package.json +1 -1
- package/dist/src/sub/DynamicLayout/mock_contentsList.d.ts +0 -2
- package/dist/src/sub/DynamicLayout/mock_contentsList.js +0 -291
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsList/ContentsList.d.ts +0 -8
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsList/ContentsList.js +0 -93
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsList/ContentsListCore.d.ts +0 -17
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsList/ContentsListCore.js +0 -39
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsList/components/CustomPagination.d.ts +0 -27
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsList/components/CustomPagination.js +0 -188
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsList/contentsListUtils.d.ts +0 -30
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsList/contentsListUtils.js +0 -357
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsList/index.d.ts +0 -1
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsList/index.js +0 -8
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsList/types.d.ts +0 -46
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsList/types.js +0 -2
@@ -62,6 +62,7 @@ var styled_components_1 = __importDefault(require("styled-components"));
|
|
62
62
|
require("../components/Section");
|
63
63
|
var ComponentBlockMatcher_1 = __importDefault(require("../CompositionRenderer/ComponentBlockMatcher"));
|
64
64
|
var CompositionBackground_1 = __importDefault(require("../CompositionRenderer/CompositionBackground"));
|
65
|
+
var dynamicLayoutContext_1 = require("../dynamicLayoutContext");
|
65
66
|
require("../sections/CustomSection/components/ComponentBlock/componentBlocks/components/S_HiddenCover");
|
66
67
|
var clsx_1 = require("../sections/CustomSection/newUtils/clsx");
|
67
68
|
var group_2 = require("../sections/CustomSection/newUtils/group");
|
@@ -1052,57 +1053,68 @@ var CompositionEditor = (0, react_1.forwardRef)(function CompositionEditorCanvas
|
|
1052
1053
|
return ids.length + bulkBlockIds.length;
|
1053
1054
|
}
|
1054
1055
|
var editableCBIDs = (0, group_1.findDirectChildrenCbIds)(newblock, editingGroupBlock);
|
1055
|
-
return ((0, jsx_runtime_1.jsx)(ErrorBoundary_1.ErrorBoundary, { children: (0, jsx_runtime_1.jsx)(
|
1056
|
-
|
1057
|
-
|
1058
|
-
|
1059
|
-
|
1060
|
-
|
1061
|
-
|
1062
|
-
|
1063
|
-
|
1064
|
-
|
1065
|
-
|
1066
|
-
|
1067
|
-
|
1068
|
-
|
1069
|
-
|
1070
|
-
|
1071
|
-
|
1072
|
-
|
1073
|
-
|
1074
|
-
|
1075
|
-
|
1076
|
-
|
1077
|
-
|
1078
|
-
|
1079
|
-
|
1080
|
-
|
1081
|
-
|
1082
|
-
|
1083
|
-
|
1084
|
-
|
1085
|
-
|
1086
|
-
|
1087
|
-
|
1088
|
-
|
1089
|
-
|
1090
|
-
|
1091
|
-
|
1092
|
-
|
1093
|
-
|
1094
|
-
|
1095
|
-
|
1056
|
+
return ((0, jsx_runtime_1.jsx)(ErrorBoundary_1.ErrorBoundary, { children: (0, jsx_runtime_1.jsx)(dynamicLayoutContext_1.dynamicLayoutContext.Provider, __assign({ value: {
|
1057
|
+
device: device
|
1058
|
+
// mode,
|
1059
|
+
// isPreview,
|
1060
|
+
// navigationHandler,
|
1061
|
+
// sectionActionHandler,
|
1062
|
+
// editingSectionId,
|
1063
|
+
// programmedSectionComponents,
|
1064
|
+
// shortcutKeyMode,
|
1065
|
+
// zoomScale,
|
1066
|
+
// queryData
|
1067
|
+
} }, { children: (0, jsx_runtime_1.jsx)(gleStyles_1.S_gleStyles, __assign({ isBulkMode: shortcutKeyMode === 'BULK_SELECT' }, { children: (0, jsx_runtime_1.jsx)(S_COMPOSITIONWrapper, __assign({ ref: gleRef, "x-dlayout-section-type": "NO_NAME", onClick: onClickSection, onContextMenu: function (e) {
|
1068
|
+
e.stopPropagation();
|
1069
|
+
e.preventDefault();
|
1070
|
+
onContextSection(e);
|
1071
|
+
} }, { children: (0, jsx_runtime_1.jsx)(CompositionBackground_1.default, __assign({}, props.compositionData, { isMobile: isMobile, overrideStyles: {
|
1072
|
+
minHeight: customSectionStyles.minHeight,
|
1073
|
+
paddingTop: padding.top,
|
1074
|
+
paddingBottom: padding.bottom,
|
1075
|
+
paddingRight: padding.right,
|
1076
|
+
paddingLeft: padding.left
|
1077
|
+
} }, { children: (0, jsx_runtime_1.jsx)(Responsive, __assign({ sectionId: props.compositionData.id.toString(), innerRef: innerRef, className: (0, clsx_1.clsx)({
|
1078
|
+
'selected-grid-layout': editingSectionId === props.compositionData.id
|
1079
|
+
}), allowOverlap: true, layouts: layouts, resizeHandles: ['nw', 'e', 'n', 'ne', 's', 'se', 'sw', 'w'], breakpoints: breakpoints, breakpoint: breakpoint, cols: { lg: colsDesktop, sm: colsMobile }, rowHeight: rowHeight, margin: [10, 10], style: {
|
1080
|
+
width: customSectionStyles.width,
|
1081
|
+
maxWidth: customSectionStyles.maxWidth,
|
1082
|
+
// minWidth: isMobile ? GLE_MIN_WIDTH_MOBILE_PX : GLE_MIN_WIDTH_DESKTOP_PX,
|
1083
|
+
fontSize: "".concat(baseFontSize, "px")
|
1084
|
+
}, onLayoutChange: onLayoutChange, onDragStart: onDragStart, onDragStop: onDragStop, onResizeStop: onResizeStop, onDragStopForGroup: onBulkDragStop, onFitToContent: onAutoFitContent, onWidthChange: onWidthChange, minNbRow: rows, isDraggable: isEditMode, isResizable: isEditMode, zoom: props.editorProps.zoomScale,
|
1085
|
+
// GROUP
|
1086
|
+
selectedGroupBlock: (_d = selectedBlockId === null || selectedBlockId === void 0 ? void 0 : selectedBlockId.toString()) !== null && _d !== void 0 ? _d : 'ROOT', editingGroupBlock: editingGroupBlock, blockStructure: newblock, bulkIds: bulkBlockIds, onDoubleClickGroup: onDoubleClickGroup, onClickGroup: onClickGroup, onDoubleClickOutsideGroup: onDoubleClickOutsideGroup, onContextGroup: onContextGroup }, { children: layouts[layoutByDevice].map(function (each, index) {
|
1087
|
+
var matchedCB = componentBlocks === null || componentBlocks === void 0 ? void 0 : componentBlocks.find(function (cb) { return cb.id.toString() === each.i; });
|
1088
|
+
var isInBulk = bulkBlockIds.includes((0, group_1.formatCbIdToBlockId)(Number(each.i)));
|
1089
|
+
if (!matchedCB) {
|
1090
|
+
return (0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, {});
|
1091
|
+
}
|
1092
|
+
return ((0, jsx_runtime_1.jsx)("div", __assign({ className: (0, clsx_1.clsx)({
|
1093
|
+
'react-grid-item-selected': selectedBlockId === (0, group_1.formatCbIdToBlockId)(matchedCB.id)
|
1094
|
+
}) }, { children: (0, jsx_runtime_1.jsx)("div", __assign({ className: (0, clsx_1.clsx)({
|
1095
|
+
'grid-item-child': true
|
1096
|
+
}), style: {
|
1097
|
+
width: '100%',
|
1098
|
+
height: '100%'
|
1099
|
+
}, onClick: function (e) {
|
1100
|
+
e.stopPropagation();
|
1101
|
+
if (isInBulk) {
|
1102
|
+
clickOneCBInBulk(matchedCB.id);
|
1096
1103
|
return;
|
1097
1104
|
}
|
1098
|
-
|
1099
|
-
|
1100
|
-
|
1101
|
-
|
1102
|
-
|
1103
|
-
|
1104
|
-
|
1105
|
-
|
1105
|
+
if (editingGroupBlock !== 'ROOT') {
|
1106
|
+
if (!editableCBIDs.includes(matchedCB.id)) {
|
1107
|
+
e.preventDefault();
|
1108
|
+
return;
|
1109
|
+
}
|
1110
|
+
}
|
1111
|
+
onClickCB(matchedCB.id);
|
1112
|
+
}, onContextMenu: function (e) {
|
1113
|
+
e.stopPropagation();
|
1114
|
+
e.preventDefault();
|
1115
|
+
onContextMenuCB(matchedCB.id, e);
|
1116
|
+
} }, { children: (0, jsx_runtime_1.jsx)(ErrorBoundary_1.ErrorBoundary, { children: (0, jsx_runtime_1.jsx)(ComponentBlockMatcher_1.default, { cbProps: matchedCB, device: device, rowHeight: rowHeight, index: index }) }) })) }), each.i));
|
1117
|
+
}) })) })) })) })) })) }));
|
1106
1118
|
});
|
1107
1119
|
function isLayoutPlacementSame(current, prev) {
|
1108
1120
|
if (!prev) {
|
@@ -0,0 +1,8 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.dynamicLayoutContext = void 0;
|
4
|
+
var react_1 = require("react");
|
5
|
+
// import type { DynamicLayoutProps } from './types';
|
6
|
+
exports.dynamicLayoutContext = (0, react_1.createContext)({
|
7
|
+
device: 'DESKTOP'
|
8
|
+
});
|
@@ -49,9 +49,6 @@ function ComponentBlockMatcher(_a) {
|
|
49
49
|
case types_1.CB_ALL_CODES.CB_CONTENTSCAROUSEL: {
|
50
50
|
return (0, jsx_runtime_1.jsx)("div", { children: "NOT SUPPORTED NESTED CAROUSEL" });
|
51
51
|
}
|
52
|
-
case types_1.CB_ALL_CODES.CB_CONTENTSLIST: {
|
53
|
-
return (0, jsx_runtime_1.jsx)("div", { children: "NOT SUPPORTED NESTED CONTENTSLIST" });
|
54
|
-
}
|
55
52
|
default:
|
56
53
|
return (0, jsx_runtime_1.jsx)("div", { children: "Error: not supported CB" });
|
57
54
|
}
|
@@ -105,7 +105,7 @@ exports.SAMPLE_CONTENTSCAROUSEL_CB = {
|
|
105
105
|
CB_CONTENT_PROP_CONTENTSCAROUSEL_SPEC_CONNECT_DATA: '아티클:포스트',
|
106
106
|
CB_CONTENT_PROP_CONTENTSCAROUSEL_SPEC_DATASORTING: '최신순',
|
107
107
|
CB_CONTENT_PROP_CONTENTSCAROUSEL_SPEC_OFFSET: '1',
|
108
|
-
|
108
|
+
CB_CONTENT_PROP_CONTENTSCAROUSEL_SPEC_MENUALITEM: [],
|
109
109
|
CB_CONTENT_PROP_CONTENTSCAROUSEL_SPEC_ITEMCOUNTS: 50,
|
110
110
|
CB_CONTENT_PROP_CONTENTSCAROUSEL_SPEC_DISPLAYCOUNTS: 1
|
111
111
|
},
|
@@ -1,7 +1,7 @@
|
|
1
1
|
export declare const MOCK_SECTIONS: {
|
2
2
|
administrativeTitle: string;
|
3
3
|
appearanceTemplate: string;
|
4
|
-
componentBlocks: (import("./sections/CustomSection/types").
|
4
|
+
componentBlocks: (import("./sections/CustomSection/types").CB_CONTENTSCAROUSEL | import("./sections/CustomSection/types").CB_SLIDEBANNER | {
|
5
5
|
availablePlugins: never[];
|
6
6
|
blockId: string;
|
7
7
|
componentBlockCode: string;
|
@@ -999,7 +999,6 @@ export declare const MOCK_SECTIONS: {
|
|
999
999
|
'188287': number;
|
1000
1000
|
'188290': number;
|
1001
1001
|
'188291': number;
|
1002
|
-
'188292': number;
|
1003
1002
|
};
|
1004
1003
|
mobile: {
|
1005
1004
|
'188262': number;
|
@@ -1030,7 +1029,6 @@ export declare const MOCK_SECTIONS: {
|
|
1030
1029
|
'188287': number;
|
1031
1030
|
'188290': number;
|
1032
1031
|
'188291': number;
|
1033
|
-
'188292': number;
|
1034
1032
|
};
|
1035
1033
|
};
|
1036
1034
|
};
|
@@ -2,7 +2,6 @@
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
3
|
exports.MOCK_SECTIONS = void 0;
|
4
4
|
var mock_contentsCarousel_1 = require("./mock_contentsCarousel");
|
5
|
-
var mock_contentsList_1 = require("./mock_contentsList");
|
6
5
|
var mock_slideBanner_1 = require("./mock_slideBanner");
|
7
6
|
exports.MOCK_SECTIONS = [
|
8
7
|
{
|
@@ -11,7 +10,6 @@ exports.MOCK_SECTIONS = [
|
|
11
10
|
componentBlocks: [
|
12
11
|
mock_slideBanner_1.SAMPLE_SLIDEBANNER_CB,
|
13
12
|
mock_contentsCarousel_1.SAMPLE_CONTENTSCAROUSEL_CB,
|
14
|
-
mock_contentsList_1.SAMPLE_CONTENTSLIST_CB,
|
15
13
|
{
|
16
14
|
availablePlugins: [],
|
17
15
|
blockId: 'CB_188265',
|
@@ -4646,14 +4644,6 @@ exports.MOCK_SECTIONS = [
|
|
4646
4644
|
type: 'COMPONENT_BLOCK',
|
4647
4645
|
zOrderDesktopInternal: 28,
|
4648
4646
|
zOrderMobileInternal: 28
|
4649
|
-
},
|
4650
|
-
{
|
4651
|
-
blockId: 'CB_188292',
|
4652
|
-
children: [],
|
4653
|
-
componentBlockId: 188292,
|
4654
|
-
type: 'COMPONENT_BLOCK',
|
4655
|
-
zOrderDesktopInternal: 28,
|
4656
|
-
zOrderMobileInternal: 28
|
4657
4647
|
}
|
4658
4648
|
],
|
4659
4649
|
componentBlockId: null,
|
@@ -4691,8 +4681,7 @@ exports.MOCK_SECTIONS = [
|
|
4691
4681
|
'188286': 26,
|
4692
4682
|
'188287': 19,
|
4693
4683
|
'188290': 27,
|
4694
|
-
'188291': 28
|
4695
|
-
'188292': 29
|
4684
|
+
'188291': 28
|
4696
4685
|
},
|
4697
4686
|
mobile: {
|
4698
4687
|
'188262': 10,
|
@@ -4722,8 +4711,7 @@ exports.MOCK_SECTIONS = [
|
|
4722
4711
|
'188286': 25,
|
4723
4712
|
'188287': 19,
|
4724
4713
|
'188290': 27,
|
4725
|
-
'188291': 28
|
4726
|
-
'188292': 29
|
4714
|
+
'188291': 28
|
4727
4715
|
}
|
4728
4716
|
}
|
4729
4717
|
},
|
@@ -20,7 +20,6 @@ var newUtils_1 = require("../../newUtils");
|
|
20
20
|
var types_1 = require("../../types");
|
21
21
|
var Button_1 = __importDefault(require("./componentBlocks/Button/Button"));
|
22
22
|
var ContentsCarousel_1 = require("./componentBlocks/ContentsCarousel");
|
23
|
-
var ContentsList_1 = require("./componentBlocks/ContentsList");
|
24
23
|
var Divider_1 = __importDefault(require("./componentBlocks/Divider/Divider"));
|
25
24
|
var Embed_1 = __importDefault(require("./componentBlocks/Embed/Embed"));
|
26
25
|
var Image_1 = __importDefault(require("./componentBlocks/Image/Image"));
|
@@ -58,10 +57,6 @@ function ComponentBlockMatcher(_a) {
|
|
58
57
|
var compositions = cbProps.compositions;
|
59
58
|
return ((0, jsx_runtime_1.jsx)(SlideBanner_1.SlideBanner, __assign({}, propsWithValue, { compositions: compositions, index: index })));
|
60
59
|
}
|
61
|
-
case types_1.CB_ALL_CODES.CB_CONTENTSLIST: {
|
62
|
-
var compositions = cbProps.compositions;
|
63
|
-
return ((0, jsx_runtime_1.jsx)(ContentsList_1.ContentsList, __assign({}, propsWithValue, { compositions: compositions, index: index })));
|
64
|
-
}
|
65
60
|
default:
|
66
61
|
return (0, jsx_runtime_1.jsx)("div", { children: "Error: not supported CB" });
|
67
62
|
}
|
@@ -30,7 +30,7 @@ export type CB_CONTENT_PROP_CONTENTSCAROUSEL = {
|
|
30
30
|
CB_CONTENT_PROP_CONTENTSCAROUSEL_SPEC_CONNECT_DATA: STRING_PLAIN;
|
31
31
|
CB_CONTENT_PROP_CONTENTSCAROUSEL_SPEC_DATASORTING: STRING_PLAIN;
|
32
32
|
CB_CONTENT_PROP_CONTENTSCAROUSEL_SPEC_OFFSET: ENUM_STRING | null | undefined;
|
33
|
-
|
33
|
+
CB_CONTENT_PROP_CONTENTSCAROUSEL_SPEC_MENUALITEM: MockComposition[];
|
34
34
|
CB_CONTENT_PROP_CONTENTSCAROUSEL_SPEC_ITEMCOUNTS: NUMBER_INTEGER;
|
35
35
|
CB_CONTENT_PROP_CONTENTSCAROUSEL_SPEC_DISPLAYCOUNTS: NUMBER_INTEGER;
|
36
36
|
};
|
@@ -43,16 +43,6 @@ export type CB_CONTENT_PROP_SLIDEBANNER = {
|
|
43
43
|
CB_CONTENT_PROP_SLIDEBANNER_SPEC_ITEMCOUNTS: NUMBER_INTEGER;
|
44
44
|
CB_CONTENT_PROP_SLIDEBANNER_SPEC_DISPLAYCOUNTS: NUMBER_INTEGER;
|
45
45
|
};
|
46
|
-
export type CB_CONTENT_PROP_CONTENTSLIST = {
|
47
|
-
CB_CONTENT_PROP_CONTENTSLIST_SPEC_VALUETYPE: 'OPT_VALUE' | 'OPT_DATA';
|
48
|
-
CB_CONTENT_PROP_CONTENTSLIST_SPEC_CONNECTDATA: STRING_PLAIN;
|
49
|
-
CB_CONTENT_PROP_CONTENTSLIST_SPEC_DATASORTING: STRING_PLAIN;
|
50
|
-
CB_CONTENT_PROP_CONTENTSLIST_SPEC_OFFSET: ENUM_STRING | null | undefined;
|
51
|
-
CB_CONTENT_PROP_CONTENTSLIST_SPEC_MANUALITEM: MockComposition[];
|
52
|
-
CB_CONTENT_PROP_CONTENTSLIST_SPEC_ITEMCOUNTS: NUMBER_INTEGER;
|
53
|
-
CB_CONTENT_PROP_CONTENTSLIST_SPEC_COLUMNS: NUMBER_INTEGER;
|
54
|
-
CB_CONTENT_PROP_CONTENTSLIST_SPEC_DISPLAYCOUNTS: NUMBER_INTEGER;
|
55
|
-
};
|
56
46
|
export type MockComposition = {
|
57
47
|
title: string;
|
58
48
|
width: number;
|
@@ -1,7 +1,7 @@
|
|
1
|
-
import type { CB_BTN_PROPERTIES_TYPE, CB_DIVIDER_PROPERTIES_TYPE, CB_EMBED_PROPERTIES_TYPE, CB_IMG_PROPERTIES_TYPE, CB_RICHTEXT_PROPERTIES_TYPE, CB_TEXT_PROPERTIES_TYPE, CB_TWITTER_PROPERTIES_TYPE, CB_YOUTUBE_PROPERTIES_TYPE,
|
1
|
+
import type { CB_BTN_PROPERTIES_TYPE, CB_DIVIDER_PROPERTIES_TYPE, CB_EMBED_PROPERTIES_TYPE, CB_IMG_PROPERTIES_TYPE, CB_RICHTEXT_PROPERTIES_TYPE, CB_TEXT_PROPERTIES_TYPE, CB_TWITTER_PROPERTIES_TYPE, CB_YOUTUBE_PROPERTIES_TYPE, CB_CONTENTSCAROUSEL_PROPERTIES_TYPE, CB_SLIDEBANNER_PROPERTIES_TYPE } from './util/types';
|
2
2
|
import type { IComposition } from '../../../DynamicLayout/types';
|
3
3
|
export type CB_TYPES = 'GENERAL';
|
4
|
-
export type ComponentBlock = CB_TEXT_TYPE | CB_BTN_TYPE | CB_RICHTEXT | CB_DIVIDER | CB_IMG | CB_YOUTUBE | CB_TWITTER | CB_IFRAME | CB_GROUP |
|
4
|
+
export type ComponentBlock = CB_TEXT_TYPE | CB_BTN_TYPE | CB_RICHTEXT | CB_DIVIDER | CB_IMG | CB_YOUTUBE | CB_TWITTER | CB_IFRAME | CB_GROUP | CB_CONTENTSCAROUSEL | CB_SLIDEBANNER;
|
5
5
|
type GeneralCustomSectionType = {
|
6
6
|
id: number;
|
7
7
|
type: 'GENERAL';
|
@@ -19,7 +19,7 @@ export type GroupCustomSectionType = {
|
|
19
19
|
queryableDefinitionPreset: string;
|
20
20
|
dynamicLayoutSectionId: number;
|
21
21
|
};
|
22
|
-
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 | CB_EMBED_PROPERTIES_TYPE |
|
22
|
+
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 | CB_EMBED_PROPERTIES_TYPE | CB_CONTENTSCAROUSEL_PROPERTIES_TYPE | CB_SLIDEBANNER_PROPERTIES_TYPE;
|
23
23
|
export type CB_TEXT_TYPE = GeneralCustomSectionType & {
|
24
24
|
componentBlockCode: CB_ALL_CODES.CB_TEXT;
|
25
25
|
jsonProperties: {
|
@@ -88,13 +88,6 @@ export type CB_SLIDEBANNER = GeneralCustomSectionType & {
|
|
88
88
|
};
|
89
89
|
compositions: Array<IComposition>;
|
90
90
|
};
|
91
|
-
export type CB_CONTENTSLIST = GeneralCustomSectionType & {
|
92
|
-
componentBlockCode: CB_ALL_CODES.CB_CONTENTSLIST;
|
93
|
-
jsonProperties: {
|
94
|
-
data: CB_CONTENTSLIST_PROPERTIES_TYPE;
|
95
|
-
};
|
96
|
-
compositions: Array<IComposition>;
|
97
|
-
};
|
98
91
|
export declare enum CB_ALL_CODES {
|
99
92
|
CB_TEXT = "CB_TEXT",
|
100
93
|
CB_BTN = "CB_BTN",
|
@@ -105,7 +98,6 @@ export declare enum CB_ALL_CODES {
|
|
105
98
|
CB_TWITTER = "CB_TWITTER",
|
106
99
|
CB_EMBED = "CB_EMBED",
|
107
100
|
CB_GROUP = "CB_GROUP",
|
108
|
-
CB_CONTENTSLIST = "CB_CONTENTSLIST",
|
109
101
|
CB_CONTENTSCAROUSEL = "CB_CONTENTSCAROUSEL",
|
110
102
|
CB_SLIDEBANNER = "CB_SLIDEBANNER"
|
111
103
|
}
|
@@ -12,7 +12,6 @@ var CB_ALL_CODES;
|
|
12
12
|
CB_ALL_CODES["CB_TWITTER"] = "CB_TWITTER";
|
13
13
|
CB_ALL_CODES["CB_EMBED"] = "CB_EMBED";
|
14
14
|
CB_ALL_CODES["CB_GROUP"] = "CB_GROUP";
|
15
|
-
CB_ALL_CODES["CB_CONTENTSLIST"] = "CB_CONTENTSLIST";
|
16
15
|
CB_ALL_CODES["CB_CONTENTSCAROUSEL"] = "CB_CONTENTSCAROUSEL";
|
17
16
|
CB_ALL_CODES["CB_SLIDEBANNER"] = "CB_SLIDEBANNER";
|
18
17
|
})(CB_ALL_CODES = exports.CB_ALL_CODES || (exports.CB_ALL_CODES = {}));
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import { CB_LAYOUT_PROP_KEYS } from './layoutPropParsers/types';
|
2
2
|
import { CB_STYLE_PROP_KEYS } from './stylePropParsers/types';
|
3
|
-
import type { Device, ParserResult, CB_TEXT_PROPERTIES_TYPE, CB_BTN_PROPERTIES_TYPE, CB_IMG_PROPERTIES_TYPE, CB_TWITTER_PROPERTIES_TYPE, CB_DIVIDER_PROPERTIES_TYPE, CB_YOUTUBE_PROPERTIES_TYPE, CB_RICHTEXT_PROPERTIES_TYPE, CB_EMBED_PROPERTIES_TYPE,
|
3
|
+
import type { Device, ParserResult, CB_TEXT_PROPERTIES_TYPE, CB_BTN_PROPERTIES_TYPE, CB_IMG_PROPERTIES_TYPE, CB_TWITTER_PROPERTIES_TYPE, CB_DIVIDER_PROPERTIES_TYPE, CB_YOUTUBE_PROPERTIES_TYPE, CB_RICHTEXT_PROPERTIES_TYPE, CB_EMBED_PROPERTIES_TYPE, CB_CONTENTSCAROUSEL_PROPERTIES_TYPE, CB_SLIDEBANNER_PROPERTIES_TYPE } from './types';
|
4
4
|
export type specTypes = CB_LAYOUT_PROP_KEYS | CB_STYLE_PROP_KEYS;
|
5
|
-
export default function parseProperties(properties: CB_TEXT_PROPERTIES_TYPE | CB_BTN_PROPERTIES_TYPE | CB_IMG_PROPERTIES_TYPE | CB_TWITTER_PROPERTIES_TYPE | CB_DIVIDER_PROPERTIES_TYPE | CB_YOUTUBE_PROPERTIES_TYPE | CB_RICHTEXT_PROPERTIES_TYPE | CB_EMBED_PROPERTIES_TYPE |
|
5
|
+
export default function parseProperties(properties: CB_TEXT_PROPERTIES_TYPE | CB_BTN_PROPERTIES_TYPE | CB_IMG_PROPERTIES_TYPE | CB_TWITTER_PROPERTIES_TYPE | CB_DIVIDER_PROPERTIES_TYPE | CB_YOUTUBE_PROPERTIES_TYPE | CB_RICHTEXT_PROPERTIES_TYPE | CB_EMBED_PROPERTIES_TYPE | CB_CONTENTSCAROUSEL_PROPERTIES_TYPE | CB_SLIDEBANNER_PROPERTIES_TYPE, device: Device): ParserResult;
|
@@ -1,8 +1,7 @@
|
|
1
1
|
import type { CB_STYLE_PROP_CONTENTSCAROUSEL_SPECS } from '../components/ComponentBlock/componentBlocks/ContentsCarousel/types';
|
2
|
-
import type { CB_STYLE_PROP_CONTENTSLIST_SPECS } from '../components/ComponentBlock/componentBlocks/ContentsList/types';
|
3
2
|
import type { CB_STYLE_PROP_SLIDEBANNER_SPECS } from '../components/ComponentBlock/componentBlocks/SlideBanner/types';
|
4
3
|
import type { CB_TWITTER_STYLE_PROPS } from '../components/ComponentBlock/componentBlocks/Twitter/types';
|
5
|
-
import type { CB_CONTENT_PROP_CONTENTSCAROUSEL, CB_CONTENT_PROP_SLIDEBANNER, CB_CONTENT_PROP_CLINK, CB_CONTENT_PROP_CODEBLOCK, CB_CONTENT_PROP_IMAGE, CB_CONTENT_PROP_TEXT, CB_CONTENT_PROP_TWITTER, CB_STYLE_PROP_COLOR_SPECS, CB_STYLE_PROP_TEXT_SPECS
|
4
|
+
import type { CB_CONTENT_PROP_CONTENTSCAROUSEL, CB_CONTENT_PROP_SLIDEBANNER, CB_CONTENT_PROP_CLINK, CB_CONTENT_PROP_CODEBLOCK, CB_CONTENT_PROP_IMAGE, CB_CONTENT_PROP_TEXT, CB_CONTENT_PROP_TWITTER, CB_STYLE_PROP_COLOR_SPECS, CB_STYLE_PROP_TEXT_SPECS } from '../components/ComponentBlock/componentBlocks/types';
|
6
5
|
import type { CB_CONTENT_PROP_YOUTUBE_TYPE, CB_STYLE_PROP_BGCOLOR_SPECS } from '../components/ComponentBlock/componentBlocks/Youtube/types';
|
7
6
|
import type { CB_CONTENT_PROP_VISIBILITY_SPECS } from './contentPropParsers/parseContentVisibility';
|
8
7
|
import type { CB_EFFECT_PROP_ENTANIM_SPECS } from './effectPropParsers/parseEffectPropEntAnim';
|
@@ -154,20 +153,6 @@ export type CB_SLIDEBANNER_PROPERTIES_TYPE = CB_GENERAL_PROPERTIES_TYPE & {
|
|
154
153
|
CB_CONTENT_PROP_VISIBILITY: CB_CONTENT_PROP_VISIBILITY_SPECS;
|
155
154
|
CB_EFFECT_PROP_ENTANIM: CB_EFFECT_PROP_ENTANIM_SPECS;
|
156
155
|
};
|
157
|
-
export type CB_CONTENTSLIST_PROPERTIES_TYPE = CB_GENERAL_PROPERTIES_TYPE & {
|
158
|
-
CB_CONTENT_PROP_CONTENTSLIST: CB_CONTENT_PROP_CONTENTSLIST;
|
159
|
-
CB_STYLE_PROP_CONTENTSLIST: CB_STYLE_PROP_CONTENTSLIST_SPECS;
|
160
|
-
CB_STYLE_PROP_BORDER: CB_STYLE_PROP_BORDER_SPECS;
|
161
|
-
CB_STYLE_PROP_SHADOW: CB_STYLE_PROP_SHADOW_SPECS;
|
162
|
-
CB_STYLE_PROP_OPACITY: CB_STYLE_PROP_TEXT_OPACITY_SPECS;
|
163
|
-
CB_STYLE_PROP_BGCOLOR: CB_STYLE_PROP_BGCOLOR_SPECS;
|
164
|
-
CB_STYLE_PROP_BGOVERLAY: CB_STYLE_PROP_BGOVERLAY_SPECS;
|
165
|
-
CB_STYLE_PROP_BGMEDIA: CB_STYLE_PROP_BGMEDIA_SPECS;
|
166
|
-
CB_LAYOUT_PROP_PADDING: CB_LAYOUT_PROP_PADDING_SPECS;
|
167
|
-
CB_LAYOUT_PROP_ARRANGE: CB_LAYOUT_PROP_ARRANGE_SPECS;
|
168
|
-
CB_CONTENT_PROP_VISIBILITY: CB_CONTENT_PROP_VISIBILITY_SPECS;
|
169
|
-
CB_EFFECT_PROP_ENTANIM: CB_EFFECT_PROP_ENTANIM_SPECS;
|
170
|
-
};
|
171
156
|
export type StyleType = {
|
172
157
|
style: CSSProperties;
|
173
158
|
};
|
package/package.json
CHANGED