pds-dev-kit-web-test 2.5.203 → 2.5.205
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.
@@ -108,26 +108,13 @@ var CustomSection = (0, react_1.forwardRef)(function CustomSection(props, ref) {
|
|
108
108
|
return {
|
109
109
|
selectCB: function (blockId) {
|
110
110
|
setSelectedBlockId(blockId);
|
111
|
-
var block = document.querySelector("div[data-grid-id=\"".concat(blockId.replace('CB_', ''), "\"]"));
|
112
|
-
console.log(block, 'id ,', "".concat(blockId.replace('CB_', '')));
|
113
|
-
if (block) {
|
114
|
-
block.scrollIntoView({
|
115
|
-
behavior: 'smooth',
|
116
|
-
block: 'center'
|
117
|
-
});
|
118
|
-
}
|
119
111
|
},
|
120
112
|
selectCBInBulk: function (blockIds) {
|
121
113
|
setBulkBlockIds(blockIds);
|
122
114
|
},
|
123
115
|
selectGroup: function (groupBlockId) {
|
124
|
-
var _a;
|
125
116
|
setBulkBlockIds([]);
|
126
117
|
setSelectedBlockId(groupBlockId);
|
127
|
-
(_a = document.querySelector("div[data-group-block-id=\"".concat(groupBlockId, "\"]"))) === null || _a === void 0 ? void 0 : _a.scrollIntoView({
|
128
|
-
behavior: 'smooth',
|
129
|
-
block: 'center'
|
130
|
-
});
|
131
118
|
}
|
132
119
|
};
|
133
120
|
}, [componentBlocks]);
|
@@ -157,6 +144,17 @@ var CustomSection = (0, react_1.forwardRef)(function CustomSection(props, ref) {
|
|
157
144
|
setBulkBlockIds([]);
|
158
145
|
}
|
159
146
|
}, [editingSectionId]);
|
147
|
+
(0, react_1.useEffect)(function () {
|
148
|
+
var _a;
|
149
|
+
var workDir = (_a = (0, group_1.getBlockWorkDirPath)(newblock, editingGroupBlock)) !== null && _a !== void 0 ? _a : 'ROOT';
|
150
|
+
sectionActionHandler &&
|
151
|
+
sectionActionHandler({
|
152
|
+
type: '@CUSTOMSECTION/WORKDIR_CHANGED',
|
153
|
+
payload: {
|
154
|
+
workDir: workDir
|
155
|
+
}
|
156
|
+
});
|
157
|
+
}, [newblock, editingGroupBlock, sectionActionHandler]);
|
160
158
|
// NOTE: 추후에 event를 외부에서 전달받게하거나, 아예 상태를 끌어올리거나 해야합니다.
|
161
159
|
(0, react_1.useLayoutEffect)(function () {
|
162
160
|
var _a, _b, _c, _d, _e, _f;
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "pds-dev-kit-web-test",
|
3
|
-
"version": "2.5.
|
3
|
+
"version": "2.5.205",
|
4
4
|
"license": "MIT",
|
5
5
|
"private": false,
|
6
6
|
"main": "dist/index.js",
|
@@ -23,7 +23,7 @@
|
|
23
23
|
"lottie-react": "^2.3.1",
|
24
24
|
"nuka-carousel": "^4.8.4",
|
25
25
|
"publ-echo": "^0.0.99",
|
26
|
-
"publ-echo-test": "^0.0.
|
26
|
+
"publ-echo-test": "^0.0.170",
|
27
27
|
"react-hook-form": "^7.28.1",
|
28
28
|
"react-i18next": "^11.12.0",
|
29
29
|
"react-router-dom": "^5.2.0",
|