pds-dev-kit-web 2.1.19 → 2.1.20

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.
@@ -1,9 +1,7 @@
1
- import { CSSProperties } from 'react';
1
+ /// <reference types="react" />
2
2
  import type { ISection } from '../../types';
3
3
  declare type SectionPropTypes = ISection & {
4
4
  children?: React.ReactNode;
5
- } & {
6
- overrideStyles?: CSSProperties;
7
5
  };
8
- declare function Section({ children, overrideStyles, ...props }: SectionPropTypes): JSX.Element;
6
+ declare function Section({ children, ...props }: SectionPropTypes): JSX.Element;
9
7
  export default Section;
@@ -37,9 +37,8 @@ var YouTubeIframe_1 = require("../YouTubeIframe");
37
37
  var sectionContext_1 = require("./sectionContext");
38
38
  function Section(_a) {
39
39
  var _b;
40
- var children = _a.children, overrideStyles = _a.overrideStyles, props = __rest(_a, ["children", "overrideStyles"]);
41
- var _c = (0, react_1.useState)(false), isHover = _c[0], setIsHover = _c[1];
42
- return ((0, jsx_runtime_1.jsx)(sectionContext_1.sectionContext.Provider, __assign({ value: __assign({}, props) }, { children: (0, jsx_runtime_1.jsxs)(S_Section, __assign({ style: overrideStyles, isIframeSection: ((_b = props.manifest) === null || _b === void 0 ? void 0 : _b.schema) === 'EXP_IFRAME', onMouseEnter: function () { return setIsHover(true); }, onMouseMove: function () { return !isHover && setIsHover(true); }, onMouseLeave: function () { return setIsHover(false); } }, { children: [(0, jsx_runtime_1.jsx)(Background, {}, void 0), children] }), void 0) }), void 0));
40
+ var children = _a.children, props = __rest(_a, ["children"]);
41
+ return ((0, jsx_runtime_1.jsx)(sectionContext_1.sectionContext.Provider, __assign({ value: __assign({}, props) }, { children: (0, jsx_runtime_1.jsxs)(S_Section, __assign({ isIframeSection: ((_b = props.manifest) === null || _b === void 0 ? void 0 : _b.schema) === 'EXP_IFRAME' }, { children: [(0, jsx_runtime_1.jsx)(Background, {}, void 0), children] }), void 0) }), void 0));
43
42
  }
44
43
  var S_Section = styled_components_1.default.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n box-sizing: border-box;\n height: ", ";\n position: relative;\n width: 100%;\n z-index: 0;\n"], ["\n box-sizing: border-box;\n height: ", ";\n position: relative;\n width: 100%;\n z-index: 0;\n"])), function (_a) {
45
44
  var isIframeSection = _a.isIframeSection;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pds-dev-kit-web",
3
- "version": "2.1.19",
3
+ "version": "2.1.20",
4
4
  "license": "MIT",
5
5
  "private": false,
6
6
  "main": "dist/index.js",
package/release-note.md CHANGED
@@ -1,9 +1,7 @@
1
1
  # PDS-DEV-KIT-WEB Release Notes
2
- ## [v2.1.19]
3
- ## daily|https://design.storybook.publ.biz/
2
+ ## [v2.1.20]
3
+ ## urgent|https://design.storybook.publ.biz/
4
4
 
5
- ### Components
6
- * CB와 관련한 픽스들을 모았습니다.
7
-
8
- ### Color
9
- * 컬러 키 값 23.08.07 02시 23분 기준 싱크
5
+ ### sub
6
+ * DynamicLayout
7
+ * Section에 hover관련 사항 제거를 통한 리렌더 이슈 픽스
@@ -0,0 +1,3 @@
1
+ {
2
+ "presets": ["es2015"]
3
+ }