pds-dev-kit-web-test 2.7.417 → 2.7.419
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/sub/DynamicLayout/CompositionEditor/CompositionEditor.js +3 -0
- package/dist/src/sub/DynamicLayout/components/EditModeSectionMatcher/EditModeSectionMatcher.js +3 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/CustomSection.js +6 -0
- package/dist/src/sub/DynamicLayout/types.d.ts +1 -0
- package/package.json +2 -2
|
@@ -127,6 +127,9 @@ var CompositionEditor = (0, react_1.forwardRef)(function CompositionEditorCanvas
|
|
|
127
127
|
: pedigreeState;
|
|
128
128
|
(0, react_1.useImperativeHandle)(ref, function () {
|
|
129
129
|
return {
|
|
130
|
+
initCB: function () {
|
|
131
|
+
setSelectedBlockId(null);
|
|
132
|
+
},
|
|
130
133
|
selectCB: function (blockId) {
|
|
131
134
|
setSelectedBlockId(blockId);
|
|
132
135
|
},
|
package/dist/src/sub/DynamicLayout/components/EditModeSectionMatcher/EditModeSectionMatcher.js
CHANGED
|
@@ -38,6 +38,9 @@ function EditModeSectionMatcher(_a) {
|
|
|
38
38
|
}, []);
|
|
39
39
|
(0, react_1.useImperativeHandle)(dynamicLayoutRef, function () {
|
|
40
40
|
return {
|
|
41
|
+
initCB: function () {
|
|
42
|
+
selectedSectionRef === null || selectedSectionRef === void 0 ? void 0 : selectedSectionRef.initCB();
|
|
43
|
+
},
|
|
41
44
|
selectCB: function (cb) {
|
|
42
45
|
selectedSectionRef === null || selectedSectionRef === void 0 ? void 0 : selectedSectionRef.selectCB(cb);
|
|
43
46
|
},
|
|
@@ -119,6 +119,9 @@ var CustomSection = (0, react_1.forwardRef)(function CustomSection(props, ref) {
|
|
|
119
119
|
: pedigreeState;
|
|
120
120
|
(0, react_1.useImperativeHandle)(ref, function () {
|
|
121
121
|
return {
|
|
122
|
+
initCB: function () {
|
|
123
|
+
setSelectedBlockId(null);
|
|
124
|
+
},
|
|
122
125
|
selectCB: function (blockId) {
|
|
123
126
|
setSelectedBlockId(blockId);
|
|
124
127
|
},
|
|
@@ -577,6 +580,9 @@ var CustomSection = (0, react_1.forwardRef)(function CustomSection(props, ref) {
|
|
|
577
580
|
setLayouts(props.layouts);
|
|
578
581
|
};
|
|
579
582
|
var onDragStart = function (props) {
|
|
583
|
+
if (props.item) {
|
|
584
|
+
onClickCB(Number(props.item.i));
|
|
585
|
+
}
|
|
580
586
|
sectionActionHandler &&
|
|
581
587
|
sectionActionHandler({
|
|
582
588
|
type: '@CUSTOMSECTION/CB_DRAG_START',
|
|
@@ -217,6 +217,7 @@ export interface IItemDescription extends IDescription {
|
|
|
217
217
|
}
|
|
218
218
|
export type CustomSectionShortcutKeysType = 'BULK_SELECT' | 'COLLISION_SELECT' | 'SELECT_ALL' | 'MANUAL_COLLISION_SELECT' | 'MANUAL_BULK_BREAK' | null;
|
|
219
219
|
export type CustomSectionImperativeHandleRef = {
|
|
220
|
+
initCB: () => void;
|
|
220
221
|
selectCB: (cbId: string) => void;
|
|
221
222
|
selectCBInBulk: (cbIds: string[]) => void;
|
|
222
223
|
selectGroup: (groupBlockId: string) => void;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "pds-dev-kit-web-test",
|
|
3
|
-
"version": "2.7.
|
|
3
|
+
"version": "2.7.419",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"private": false,
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
"lottie-react": "^2.3.1",
|
|
26
26
|
"nuka-carousel": "^4.8.4",
|
|
27
27
|
"publ-echo": "^0.0.120",
|
|
28
|
-
"publ-echo-test": "^0.0.
|
|
28
|
+
"publ-echo-test": "^0.0.394",
|
|
29
29
|
"react-hook-form": "^7.28.1",
|
|
30
30
|
"react-i18next": "^11.12.0",
|
|
31
31
|
"react-router-dom": "^5.2.0",
|