pds-dev-kit-web-test 2.7.437 → 2.7.439

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.
@@ -14,10 +14,22 @@ var __assign = (this && this.__assign) || function () {
14
14
  };
15
15
  return __assign.apply(this, arguments);
16
16
  };
17
+ var __rest = (this && this.__rest) || function (s, e) {
18
+ var t = {};
19
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
20
+ t[p] = s[p];
21
+ if (s != null && typeof Object.getOwnPropertySymbols === "function")
22
+ for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
23
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
24
+ t[p[i]] = s[p[i]];
25
+ }
26
+ return t;
27
+ };
17
28
  var __importDefault = (this && this.__importDefault) || function (mod) {
18
29
  return (mod && mod.__esModule) ? mod : { "default": mod };
19
30
  };
20
31
  Object.defineProperty(exports, "__esModule", { value: true });
32
+ exports.extractBorderStyle = void 0;
21
33
  var jsx_runtime_1 = require("react/jsx-runtime");
22
34
  var react_1 = require("react");
23
35
  var util_1 = require("../../../../DynamicLayout/sections/CustomSection/util");
@@ -36,8 +48,39 @@ function CustomSectionBackground(_a) {
36
48
  var isOverlay = getIsOverlay(isMobile, CB_STYLE_PROP_BGOVERLAY);
37
49
  var isBgMedia = getIsBgMedia(isMobile, CB_STYLE_PROP_BGMEDIA);
38
50
  var mediaType = getMediaType(isMobile, CB_STYLE_PROP_BGMEDIA);
39
- return ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [isOverlay && CB_STYLE_PROP_BGOVERLAY && ((0, jsx_runtime_1.jsx)(S_CustomBackgroundOverlay, { className: "Overlay", style: __assign({}, overlayStyle) })), (0, jsx_runtime_1.jsx)(S_CustomBackgroundWrapper, __assign({ className: "CustomSection", ref: backgroundRef, style: __assign(__assign({}, effect), { background: style.background }) }, { children: isBgMedia && CB_STYLE_PROP_BGMEDIA && ((0, jsx_runtime_1.jsx)(CustomSectionBackgroundMedia_1.CustomSectionBackgroundMedia, { specs: CB_STYLE_PROP_BGMEDIA, componentStyle: style, playerId: id, mediaType: mediaType || 'NONE', device: isMobile ? 'MOBILE' : 'DESKTOP', backgroundRef: backgroundRef })) }))] }));
51
+ var _d = extractBorderStyle(style), borderStyleProps = _d.borderStyleProps, borderRadiusStyle = _d.borderRadiusStyle, remainingStyle = _d.remainingStyle;
52
+ return ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [isOverlay && CB_STYLE_PROP_BGOVERLAY && ((0, jsx_runtime_1.jsx)(S_CustomBackgroundOverlay, { className: "Overlay", style: __assign(__assign({}, overlayStyle), borderRadiusStyle) })), (0, jsx_runtime_1.jsx)(S_CustomBackgroundWrapper, __assign({ className: "CustomSection", ref: backgroundRef, style: __assign(__assign(__assign({}, effect), borderStyleProps), { background: style.background }) }, { children: isBgMedia && CB_STYLE_PROP_BGMEDIA && ((0, jsx_runtime_1.jsx)(CustomSectionBackgroundMedia_1.CustomSectionBackgroundMedia, { specs: CB_STYLE_PROP_BGMEDIA, componentStyle: remainingStyle, playerId: id, mediaType: mediaType || 'NONE', device: isMobile ? 'MOBILE' : 'DESKTOP', backgroundRef: backgroundRef })) }))] }));
53
+ }
54
+ function extractBorderStyle(style) {
55
+ var
56
+ // 1. 추출할 Border 관련 속성들 (CamelCase 키 사용)
57
+ borderStyle = style.borderStyle, borderWidth = style.borderWidth, borderColor = style.borderColor, borderTopLeftRadius = style.borderTopLeftRadius, borderTopRightRadius = style.borderTopRightRadius, borderBottomLeftRadius = style.borderBottomLeftRadius, borderBottomRightRadius = style.borderBottomRightRadius,
58
+ // 2. 나머지 모든 스타일 속성은 rest에 담김 (원본에서 Border 속성이 제거된 상태)
59
+ rest = __rest(style, ["borderStyle", "borderWidth", "borderColor", "borderTopLeftRadius", "borderTopRightRadius", "borderBottomLeftRadius", "borderBottomRightRadius"]);
60
+ // 3. 추출된 속성들을 하나의 객체로 묶음
61
+ var borderStyleProps = {
62
+ borderStyle: borderStyle,
63
+ borderWidth: borderWidth,
64
+ borderColor: borderColor,
65
+ borderTopLeftRadius: borderTopLeftRadius,
66
+ borderTopRightRadius: borderTopRightRadius,
67
+ borderBottomLeftRadius: borderBottomLeftRadius,
68
+ borderBottomRightRadius: borderBottomRightRadius
69
+ };
70
+ var borderRadiusStyle = {
71
+ borderTopLeftRadius: borderTopLeftRadius,
72
+ borderTopRightRadius: borderTopRightRadius,
73
+ borderBottomLeftRadius: borderBottomLeftRadius,
74
+ borderBottomRightRadius: borderBottomRightRadius
75
+ };
76
+ // 4. 두 객체를 반환
77
+ return {
78
+ borderStyleProps: borderStyleProps,
79
+ remainingStyle: rest,
80
+ borderRadiusStyle: borderRadiusStyle
81
+ };
40
82
  }
83
+ exports.extractBorderStyle = extractBorderStyle;
41
84
  function getIsOverlay(isMobile, specs) {
42
85
  if (!specs) {
43
86
  return false;