pds-dev-kit-web-test 2.7.535 → 2.7.537
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.
|
@@ -96,7 +96,16 @@ function Text(props) {
|
|
|
96
96
|
if (queryContext === null || queryContext === void 0 ? void 0 : queryContext.queryData) {
|
|
97
97
|
var value = queryContext.queryData[CB_CONTENT_PROP_TEXT_SPEC_CONNECTDATA];
|
|
98
98
|
if (Array.isArray(value)) {
|
|
99
|
-
|
|
99
|
+
// 각 객체에서 name만 추출하여 문자열 배열로 만든 뒤 결합
|
|
100
|
+
return value.map(function (item) { return item.name; }).join(', ');
|
|
101
|
+
}
|
|
102
|
+
if (CB_CONTENT_PROP_TEXT_SPEC_CONNECTDATA === 'saleStatus') {
|
|
103
|
+
if (value === 'ACTIVE') {
|
|
104
|
+
return t('str_commerce_products_status_sale_active');
|
|
105
|
+
}
|
|
106
|
+
if (value === 'DISCONTINUED') {
|
|
107
|
+
return t('str_commerce_products_status_sale_stopped');
|
|
108
|
+
}
|
|
100
109
|
}
|
|
101
110
|
if (CB_CONTENT_PROP_TEXT_SPEC_CONNECTDATA === 'paid') {
|
|
102
111
|
if (value === 'PAID') {
|