pds-dev-kit-web-test 2.7.485 → 2.7.487
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.
|
@@ -60,6 +60,7 @@ var Composition = (0, react_1.forwardRef)(function CustomSection(props) {
|
|
|
60
60
|
var _e = (0, react_1.useContext)(dynamicLayoutContext_1.dynamicLayoutContext), device = _e.device, editingSectionId = _e.editingSectionId, mode = _e.mode, shortcutKeyMode = _e.shortcutKeyMode, sectionActionHandler = _e.sectionActionHandler, navigationHandler = _e.navigationHandler;
|
|
61
61
|
var componentBlocks = props.componentBlocks, jsonProperties = props.jsonProperties, ccbCode = props.ccbCode;
|
|
62
62
|
var pedigree = jsonProperties === null || jsonProperties === void 0 ? void 0 : jsonProperties.pedigree;
|
|
63
|
+
console.log('composition: ', props);
|
|
63
64
|
var _f = jsonProperties, _g = _f.data, CB_PLACEMENT_PROP_COMPOSITION = _g.CB_PLACEMENT_PROP_COMPOSITION, CB_LAYOUT_PROP_PADDING = _g.CB_LAYOUT_PROP_PADDING, zOrders = _f.zOrders;
|
|
64
65
|
var layouts = (0, util_1.parsePlacement)(componentBlocks !== null && componentBlocks !== void 0 ? componentBlocks : [], zOrders);
|
|
65
66
|
var isMobile = device === 'MOBILE';
|
|
@@ -146,11 +146,16 @@ function SlideBanner(props) {
|
|
|
146
146
|
var isMobile = device === 'MOBILE';
|
|
147
147
|
var isBgMedia = getIsBgMedia(isMobile, CB_STYLE_PROP_BGMEDIA);
|
|
148
148
|
var mediaType = getMediaType(isMobile, CB_STYLE_PROP_BGMEDIA);
|
|
149
|
-
var orderedCompositions =
|
|
150
|
-
.
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
149
|
+
var orderedCompositions = CB_CONTENT_PROP_SLIDEBANNER_SPEC_VALUETYPE === 'VALUE'
|
|
150
|
+
? __spreadArray([], CB_CONTENT_PROP_SLIDEBANNER_SPEC_MANUALITEMS, true).filter(function (item) { return compositions.find(function (comp) { return comp.ccbManualItemUuid === item.uuid; }); })
|
|
151
|
+
.sort(function (a, b) { return a.order - b.order; })
|
|
152
|
+
.map(function (item) {
|
|
153
|
+
return compositions.find(function (comp) { return comp.ccbManualItemUuid === item.uuid; });
|
|
154
|
+
})
|
|
155
|
+
: __spreadArray([], CB_CONTENT_PROP_SLIDEBANNER_SPEC_MANUALITEMS, true).filter(function () {
|
|
156
|
+
return compositions.find(function (comp) { return comp.isDefault; });
|
|
157
|
+
});
|
|
158
|
+
console.log('🥺', orderedCompositions);
|
|
154
159
|
var isEditModeAndHidden = style.visibility === 'hidden' && mode === 'EDIT';
|
|
155
160
|
if (mode === 'EDIT') {
|
|
156
161
|
style.visibility = 'visible';
|