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.
@@ -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 _c = jsonProperties.data, CB_STYLE_PROP_BGOVERLAY = _c.CB_STYLE_PROP_BGOVERLAY, CB_STYLE_PROP_BGMEDIA = _c.CB_STYLE_PROP_BGMEDIA;
34
- var _d = (0, util_1.parseJsonProperties)(jsonProperties, isMobile ? 'MOBILE' : 'DESKTOP'), style = _d.style, overlayStyle = _d.overlayStyle, effect = _d.effect;
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);
@@ -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
- function breakGroupCB() {
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pds-dev-kit-web-test",
3
- "version": "0.3.40",
3
+ "version": "0.3.41",
4
4
  "license": "MIT",
5
5
  "private": false,
6
6
  "main": "dist/index.js",
package/release-note.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # pds-dev-kit-web-test Release Notes
2
- ## [v0.3.40]
2
+ ## [v0.3.41]
3
3
  ## 기준 pds-dev-kit-web 버전 @2.2.41
4
4
  ### sub
5
5
  * DynamicLayout
6
- * 커스텀섹션의 데이터 구조 변경 입니다.
6
+ * break 콜스택 초과이슈 픽스