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.
@@ -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.hasOwn(CB_CONTENT_PROP_TEXT_SPEC_CONNECTDATA)) {
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.hasOwn(CB_CONTENT_PROP_IMAGE.CB_CONTENT_PROP_IMAGE_SPEC_CONNECTDATA)) {
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.hasOwn(CB_CONTENT_PROP_TEXT_SPEC_CONNECTDATA)) {
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.hasOwn(CB_CONTENT_PROP_VIDEO.CB_CONTENT_PROP_VIDEO_SPEC_CONNECTDATA)) {
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
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pds-dev-kit-web-test",
3
- "version": "2.7.538",
3
+ "version": "2.7.540",
4
4
  "license": "MIT",
5
5
  "private": false,
6
6
  "main": "dist/index.js",