pds-dev-kit-web-test 0.2.36 → 0.2.37
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/common/styles/colorSet/PaletteColor_Dark.json +2 -1
- package/dist/src/common/styles/colorSet/PaletteColor_light.json +2 -1
- package/dist/src/common/styles/colorSet/UIColor.json +2 -1
- package/dist/src/common/styles/colorSet/index.d.ts +348 -345
- package/dist/src/common/styles/colorSet/index.js +3 -3
- package/dist/src/common/styles/colorSet/ui-type.d.ts +1 -0
- package/dist/src/desktop/common/components/TextFieldBase/TextFieldBase.js +4 -1
- package/dist/src/desktop/components/BasicChatListItem/BasicChatListItem.d.ts +4 -2
- package/dist/src/desktop/components/BasicChatListItem/BasicChatListItem.js +46 -15
- package/dist/src/desktop/components/BasicChatListItem/Popup.d.ts +1 -0
- package/dist/src/desktop/components/ChatBubbleListItem/ChatBubbleListItem.d.ts +3 -1
- package/dist/src/desktop/components/ChatBubbleListItem/ChatBubbleListItem.js +19 -3
- package/dist/src/desktop/components/ChatBubbleListItem/Popup.d.ts +1 -0
- package/dist/src/mobile/common/components/TextFieldBase/TextFieldBase.js +4 -1
- package/dist/src/mobile/components/BasicChatListItem/BasicChatListItem.d.ts +4 -2
- package/dist/src/mobile/components/BasicChatListItem/BasicChatListItem.js +59 -10
- package/dist/src/mobile/components/BasicChatListItem/Popup.d.ts +1 -0
- package/dist/src/mobile/components/ChatBubbleListItem/ChatBubbleListItem.d.ts +3 -1
- package/dist/src/mobile/components/ChatBubbleListItem/ChatBubbleListItem.js +21 -3
- package/dist/src/mobile/components/ChatBubbleListItem/Popup.d.ts +1 -0
- package/dist/src/mobile/components/ChatList/Body.js +1 -1
- package/dist/src/sub/DynamicLayout/DynamicLayout.d.ts +1 -1
- package/dist/src/sub/DynamicLayout/DynamicLayout.js +2 -3
- package/dist/src/sub/DynamicLayout/components/ComponentBlocks/RichText/RichText.js +1 -1
- package/dist/src/sub/DynamicLayout/components/desktop/Item/Item.js +1 -1
- package/dist/src/sub/DynamicLayout/components/mobile/Item/Item.js +1 -1
- package/dist/src/sub/DynamicLayout/sections/CustomSection/CustomSection.js +12 -23
- package/dist/src/sub/DynamicLayout/sections/CustomSection/newUtils/textUtil.js +1 -1
- package/dist/src/sub/DynamicLayout/types.d.ts +0 -4
- package/package.json +1 -1
- package/release-note.md +6 -6
|
@@ -53,9 +53,13 @@ var ComponentBlockMatcher_1 = __importDefault(require("./components/ComponentBlo
|
|
|
53
53
|
var util_1 = require("./util");
|
|
54
54
|
var parseSectionPadding_1 = __importDefault(require("./util/layoutPropParsers/parseSectionPadding"));
|
|
55
55
|
var Responsive = (0, publ_echo_1.WidthProvider)(publ_echo_1.ResponsiveGridEditor);
|
|
56
|
-
var GRID_CELL_MIN =
|
|
56
|
+
var GRID_CELL_MIN = 24;
|
|
57
|
+
var DESKTOP_GRID_COLS = 24;
|
|
58
|
+
var MOBILE_GRID_COLS = 8;
|
|
59
|
+
var GLE_MIN_WIDTH_DESKTOP_PX = "".concat(GRID_CELL_MIN * DESKTOP_GRID_COLS, "px");
|
|
60
|
+
var GLE_MIN_WIDTH_MOBILE_PX = "".concat(GRID_CELL_MIN * MOBILE_GRID_COLS, "px");
|
|
57
61
|
function CustomSection(props) {
|
|
58
|
-
var _a = (0, react_1.useContext)(dynamicLayoutContext_1.dynamicLayoutContext), device = _a.device, editingSectionId = _a.editingSectionId, mode = _a.mode, sectionActionHandler = _a.sectionActionHandler
|
|
62
|
+
var _a = (0, react_1.useContext)(dynamicLayoutContext_1.dynamicLayoutContext), device = _a.device, editingSectionId = _a.editingSectionId, mode = _a.mode, sectionActionHandler = _a.sectionActionHandler;
|
|
59
63
|
var componentBlocks = props.componentBlocks, jsonProperties = props.jsonProperties;
|
|
60
64
|
var _b = jsonProperties, CB_PLACEMENT_PROP_SECTION = _b.CB_PLACEMENT_PROP_SECTION, CB_LAYOUT_PROP_PADDING = _b.CB_LAYOUT_PROP_PADDING, CB_CONTENT_PROP_SECTION = _b.CB_CONTENT_PROP_SECTION;
|
|
61
65
|
var _c = (0, react_1.useState)(null), selectedCB = _c[0], setSelectedCB = _c[1];
|
|
@@ -64,19 +68,6 @@ function CustomSection(props) {
|
|
|
64
68
|
var _e = (0, react_1.useState)(16), baseFontSize = _e[0], setBaseFontSize = _e[1];
|
|
65
69
|
var isMobile = device === 'MOBILE';
|
|
66
70
|
var isEditMode = mode === 'EDIT';
|
|
67
|
-
var gridData = (0, react_1.useMemo)(function () {
|
|
68
|
-
var _a, _b;
|
|
69
|
-
var desktopCols = (_a = customGridRows === null || customGridRows === void 0 ? void 0 : customGridRows.lg) !== null && _a !== void 0 ? _a : 24;
|
|
70
|
-
var mobileCols = (_b = customGridRows === null || customGridRows === void 0 ? void 0 : customGridRows.sm) !== null && _b !== void 0 ? _b : 8;
|
|
71
|
-
var gleMinWidthDesktop = "".concat(GRID_CELL_MIN * desktopCols, "px");
|
|
72
|
-
var gleMinWidthMobile = "".concat(GRID_CELL_MIN * mobileCols, "px");
|
|
73
|
-
return {
|
|
74
|
-
desktopCols: desktopCols,
|
|
75
|
-
mobileCols: mobileCols,
|
|
76
|
-
gleMinWidthDesktop: gleMinWidthDesktop,
|
|
77
|
-
gleMinWidthMobile: gleMinWidthMobile
|
|
78
|
-
};
|
|
79
|
-
}, [customGridRows]);
|
|
80
71
|
var _f = (0, react_1.useState)(function () {
|
|
81
72
|
var _a = (0, util_1.parsePlacement)(componentBlocks !== null && componentBlocks !== void 0 ? componentBlocks : []), lg = _a.lg, sm = _a.sm;
|
|
82
73
|
return {
|
|
@@ -179,15 +170,13 @@ function CustomSection(props) {
|
|
|
179
170
|
// NOTE: local환경에서 CB_CONTENT_PROP_SECTION이 없는 경우가 있음.
|
|
180
171
|
!!(CB_CONTENT_PROP_SECTION === null || CB_CONTENT_PROP_SECTION === void 0 ? void 0 : CB_CONTENT_PROP_SECTION.CB_CONTENT_PROP_SECTION_SPEC_VARIABLEROOTFONTSIZE);
|
|
181
172
|
if (device === 'MOBILE') {
|
|
182
|
-
var cellWidth_1 = width /
|
|
183
|
-
|
|
184
|
-
setRowHeight(cellWidth_1);
|
|
173
|
+
var cellWidth_1 = width / MOBILE_GRID_COLS;
|
|
174
|
+
setRowHeight(cellWidth_1 * 0.56);
|
|
185
175
|
baseFontSize !== 16 && setBaseFontSize(16);
|
|
186
176
|
return;
|
|
187
177
|
}
|
|
188
|
-
var cellWidth = width /
|
|
189
|
-
|
|
190
|
-
setRowHeight(cellWidth);
|
|
178
|
+
var cellWidth = width / DESKTOP_GRID_COLS;
|
|
179
|
+
setRowHeight(cellWidth * 0.56);
|
|
191
180
|
responsiveFontMode ? setBaseFontSize(cellWidth / 2.35) : setBaseFontSize(16);
|
|
192
181
|
};
|
|
193
182
|
var padding = (0, parseSectionPadding_1.default)(CB_LAYOUT_PROP_PADDING, device);
|
|
@@ -198,9 +187,9 @@ function CustomSection(props) {
|
|
|
198
187
|
paddingBottom: padding.bottom,
|
|
199
188
|
paddingRight: padding.right,
|
|
200
189
|
paddingLeft: padding.left
|
|
201
|
-
} }, { children: (0, jsx_runtime_1.jsx)(Responsive, __assign({ allowOverlap: true, layouts: { lg: layouts.lg, sm: layouts.sm }, resizeHandles: ['nw', 'e', 'n', 'ne', 's', 'se', 'sw', 'w'], breakpoints: breakpoints, breakpoint: breakpoint, cols: { lg:
|
|
190
|
+
} }, { children: (0, jsx_runtime_1.jsx)(Responsive, __assign({ allowOverlap: true, layouts: { lg: layouts.lg, sm: layouts.sm }, resizeHandles: ['nw', 'e', 'n', 'ne', 's', 'se', 'sw', 'w'], breakpoints: breakpoints, breakpoint: breakpoint, cols: { lg: 24, sm: 8 }, rowHeight: rowHeight, margin: [10, 10], style: {
|
|
202
191
|
width: customSectionStyles.width,
|
|
203
|
-
minWidth: isMobile ?
|
|
192
|
+
minWidth: isMobile ? GLE_MIN_WIDTH_MOBILE_PX : GLE_MIN_WIDTH_DESKTOP_PX,
|
|
204
193
|
fontSize: "".concat(baseFontSize, "px")
|
|
205
194
|
}, onLayoutChange: onLayoutChange, onDragStop: onDragStop, onResizeStop: onResizeStop, onWidthChange: onWidthChange, minNbRow: rows, isDraggable: isEditMode, isResizable: isEditMode }, { children: (componentBlocks === null || componentBlocks === void 0 ? void 0 : componentBlocks.length) ? (componentBlocks.map(function (each) { return ((0, jsx_runtime_1.jsx)("div", __assign({ className: selectedCB === each.id ? 'react-grid-item-selected' : '' }, { children: (0, jsx_runtime_1.jsx)("div", __assign({ style: {
|
|
206
195
|
width: '100%',
|
|
@@ -224,10 +224,6 @@ export type DynamicLayoutProps = {
|
|
|
224
224
|
sectionActionHandler?: (action: TypeOfSectionAction) => void;
|
|
225
225
|
programmedSectionComponents?: IProgrammedSectionComponents;
|
|
226
226
|
width?: number;
|
|
227
|
-
customGridRows?: {
|
|
228
|
-
lg: number;
|
|
229
|
-
sm: number;
|
|
230
|
-
};
|
|
231
227
|
};
|
|
232
228
|
export type NavHandlerAction = {
|
|
233
229
|
openNewTab: boolean;
|
package/package.json
CHANGED
package/release-note.md
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
# pds-dev-kit-web-test Release Notes
|
|
2
|
-
## [v0.2.
|
|
3
|
-
## 기준 pds-dev-kit-web 버전 @2.2.
|
|
2
|
+
## [v0.2.37]
|
|
3
|
+
## 기준 pds-dev-kit-web 버전 @2.2.7
|
|
4
|
+
### common
|
|
5
|
+
* TextFieldBase
|
|
6
|
+
* 자동완성시 텍스트 색상이 톤을 따라 갈 수 있도록 수정
|
|
4
7
|
### sub
|
|
5
8
|
* DynamicLayout - custom section
|
|
6
|
-
*
|
|
7
|
-
* gridItem 관련 조정
|
|
8
|
-
* min cell width 8px
|
|
9
|
-
* height-width 1:1 ratio
|
|
9
|
+
* textUtil에서 PRETENDARD를 선택할 경우 Pretendard-Regular가 아닌 Pretendard JP가 부여될 수 있도록 수정
|