pds-dev-kit-web-test 0.3.40 → 0.3.41
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/components/Section/components/CustomSectionBackground.js +3 -2
- package/dist/src/sub/DynamicLayout/sections/CustomSection/hooks/useGroupDrag/useGroupDrag.js +3 -2
- package/dist/src/sub/DynamicLayout/sections/CustomSection/util/parseJsonProperties.d.ts +1 -1
- package/package.json +1 -1
- package/release-note.md +2 -2
|
@@ -30,8 +30,9 @@ function CustomSectionBackground(_a) {
|
|
|
30
30
|
var context = (0, react_1.useContext)(sectionContext_1.sectionContext);
|
|
31
31
|
var id = context.id, jsonProperties = context.jsonProperties;
|
|
32
32
|
var backgroundRef = (0, react_1.useRef)(null);
|
|
33
|
-
var
|
|
34
|
-
var
|
|
33
|
+
var data = jsonProperties.data;
|
|
34
|
+
var CB_STYLE_PROP_BGOVERLAY = data.CB_STYLE_PROP_BGOVERLAY, CB_STYLE_PROP_BGMEDIA = data.CB_STYLE_PROP_BGMEDIA;
|
|
35
|
+
var _c = (0, util_1.parseJsonProperties)(data, isMobile ? 'MOBILE' : 'DESKTOP'), style = _c.style, overlayStyle = _c.overlayStyle, effect = _c.effect;
|
|
35
36
|
var isOverlay = getIsOverlay(isMobile, CB_STYLE_PROP_BGOVERLAY);
|
|
36
37
|
var isBgMedia = getIsBgMedia(isMobile, CB_STYLE_PROP_BGMEDIA);
|
|
37
38
|
var mediaType = getMediaType(isMobile, CB_STYLE_PROP_BGMEDIA);
|
package/dist/src/sub/DynamicLayout/sections/CustomSection/hooks/useGroupDrag/useGroupDrag.js
CHANGED
|
@@ -26,6 +26,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
26
26
|
exports.filterItemsById = exports.getGroupCB = void 0;
|
|
27
27
|
// eslint-disable-next-line import/no-extraneous-dependencies
|
|
28
28
|
var renderHelpers_1 = require("publ-echo/dist/lib/GridLayoutEditor/utils/renderHelpers");
|
|
29
|
+
var react_1 = require("react");
|
|
29
30
|
var deepCopy_1 = __importDefault(require("../../../../../DynamicLayout/utils/deepCopy"));
|
|
30
31
|
var utils_1 = require("./utils");
|
|
31
32
|
function useGroupDrag(_a) {
|
|
@@ -115,7 +116,7 @@ function useGroupDrag(_a) {
|
|
|
115
116
|
}
|
|
116
117
|
});
|
|
117
118
|
}
|
|
118
|
-
|
|
119
|
+
var breakGroupCB = (0, react_1.useCallback)(function () {
|
|
119
120
|
setLayouts(function (prev) {
|
|
120
121
|
var _a;
|
|
121
122
|
var _b;
|
|
@@ -140,7 +141,7 @@ function useGroupDrag(_a) {
|
|
|
140
141
|
message: 'group dismissed'
|
|
141
142
|
}
|
|
142
143
|
});
|
|
143
|
-
}
|
|
144
|
+
}, []);
|
|
144
145
|
function makeCollisionGroup(id, selectedCBId) {
|
|
145
146
|
setLayouts(function (prev) {
|
|
146
147
|
var _a, _b;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import type { Device, JsonPropertiesParserResult } from './types';
|
|
2
2
|
import type { ISectionJsonProperties } from '../../../../DynamicLayout/types';
|
|
3
|
-
export default function parseJsonProperties(properties: ISectionJsonProperties | undefined, device: Device): JsonPropertiesParserResult;
|
|
3
|
+
export default function parseJsonProperties(properties: ISectionJsonProperties['data'] | undefined, device: Device): JsonPropertiesParserResult;
|
package/package.json
CHANGED
package/release-note.md
CHANGED