pds-dev-kit-web-test 2.7.538 → 2.7.540
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/sections/CustomSection/components/ComponentBlock/componentBlocks/Button/Button.js +1 -1
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/Image/Image.js +1 -1
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/Text/Text.js +4 -2
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/VideoPlayer/VideoPlayer.js +1 -1
- package/package.json +1 -1
|
@@ -106,7 +106,7 @@ function Button(props) {
|
|
|
106
106
|
CB_CONTENT_PROP_TEXT_SPEC_VALUETYPE === 'DELEGATEDDATA';
|
|
107
107
|
if (isDataConnected) {
|
|
108
108
|
if (queryContext === null || queryContext === void 0 ? void 0 : queryContext.queryData) {
|
|
109
|
-
if (!queryContext.queryData
|
|
109
|
+
if (!Object.prototype.hasOwnProperty.call(queryContext.queryData, CB_CONTENT_PROP_TEXT_SPEC_CONNECTDATA)) {
|
|
110
110
|
if (mode === 'EDIT') {
|
|
111
111
|
return (0, jsx_runtime_1.jsx)(DataNotFound_1.default, { stringKey: "str_10478" });
|
|
112
112
|
}
|
|
@@ -118,7 +118,7 @@ function Image(props) {
|
|
|
118
118
|
if (!(queryContext === null || queryContext === void 0 ? void 0 : queryContext.queryData)) {
|
|
119
119
|
return true;
|
|
120
120
|
}
|
|
121
|
-
if (!queryContext.queryData
|
|
121
|
+
if (!Object.prototype.hasOwnProperty.call(queryContext.queryData, CB_CONTENT_PROP_IMAGE.CB_CONTENT_PROP_IMAGE_SPEC_CONNECTDATA)) {
|
|
122
122
|
if (mode === 'EDIT') {
|
|
123
123
|
return true;
|
|
124
124
|
}
|
|
@@ -94,7 +94,7 @@ function Text(props) {
|
|
|
94
94
|
CB_CONTENT_PROP_TEXT_SPEC_VALUETYPE === 'DELEGATEDDATA';
|
|
95
95
|
if (isDataConnected) {
|
|
96
96
|
if (queryContext === null || queryContext === void 0 ? void 0 : queryContext.queryData) {
|
|
97
|
-
if (!queryContext.queryData
|
|
97
|
+
if (!Object.prototype.hasOwnProperty.call(queryContext.queryData, CB_CONTENT_PROP_TEXT_SPEC_CONNECTDATA)) {
|
|
98
98
|
if (mode === 'EDIT') {
|
|
99
99
|
return (0, jsx_runtime_1.jsx)(DataNotFound_1.default, { stringKey: "str_10478" });
|
|
100
100
|
}
|
|
@@ -102,7 +102,6 @@ function Text(props) {
|
|
|
102
102
|
}
|
|
103
103
|
var value = queryContext.queryData[CB_CONTENT_PROP_TEXT_SPEC_CONNECTDATA];
|
|
104
104
|
if (Array.isArray(value)) {
|
|
105
|
-
// 각 객체에서 name만 추출하여 문자열 배열로 만든 뒤 결합
|
|
106
105
|
return value.map(function (item) { return item.name; }).join(', ');
|
|
107
106
|
}
|
|
108
107
|
if (CB_CONTENT_PROP_TEXT_SPEC_CONNECTDATA === 'saleStatus') {
|
|
@@ -173,6 +172,9 @@ function Text(props) {
|
|
|
173
172
|
return props.CB_CONTENT_PROP_TEXT.CB_CONTENT_PROP_TEXT_SPEC_TEXT;
|
|
174
173
|
};
|
|
175
174
|
var getTruncatedText = function (text) {
|
|
175
|
+
if (!text || typeof text !== 'string') {
|
|
176
|
+
return text;
|
|
177
|
+
}
|
|
176
178
|
var maxLength = props.CB_STYLE_PROP_TEXT.CB_STYLE_PROP_TEXT_SPEC_ELLIPSIS;
|
|
177
179
|
if (isRichText(text)) {
|
|
178
180
|
return domstringToPlain(text, maxLength, true);
|
|
@@ -152,7 +152,7 @@ function VideoPlayer(props) {
|
|
|
152
152
|
if (!(queryContext === null || queryContext === void 0 ? void 0 : queryContext.queryData)) {
|
|
153
153
|
return true;
|
|
154
154
|
}
|
|
155
|
-
if (!queryContext.queryData
|
|
155
|
+
if (!Object.prototype.hasOwnProperty.call(queryContext.queryData, CB_CONTENT_PROP_VIDEO.CB_CONTENT_PROP_VIDEO_SPEC_CONNECTDATA)) {
|
|
156
156
|
if (mode === 'EDIT') {
|
|
157
157
|
return true;
|
|
158
158
|
}
|