pds-dev-kit-web-test 2.7.590 → 2.7.592

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.
@@ -38,6 +38,7 @@ var types_1 = require("../../../../../../../DynamicLayout/sections/CustomSection
38
38
  var util_1 = require("../../../../../../../DynamicLayout/sections/CustomSection/util");
39
39
  var isNullOrUndefined_1 = __importDefault(require("../../../../../../../DynamicLayout/sections/CustomSection/util/isNullOrUndefined"));
40
40
  var styled_components_1 = __importDefault(require("styled-components"));
41
+ var EmptyTextForRender_1 = __importDefault(require("../../../fallbacks/EmptyTextForRender"));
41
42
  var S_CB_AnimationObserverBox_1 = require("../components/S_CB_AnimationObserverBox");
42
43
  var S_CB_BoxWithShadow_1 = require("../components/S_CB_BoxWithShadow");
43
44
  var S_HiddenCover_1 = require("../components/S_HiddenCover");
@@ -207,12 +208,18 @@ function ContentsCarousel(props) {
207
208
  }
208
209
  // 데이터 연결
209
210
  if (CB_CONTENT_PROP_CONTENTSCAROUSEL_SPEC_CONNECTDATA === 'NONE' || !queryPath || !queryData) {
210
- return (0, jsx_runtime_1.jsx)(EmptyString, { stringKey: "str_10477" }, "no-query");
211
+ if (mode === 'EDIT') {
212
+ return (0, jsx_runtime_1.jsx)(EmptyString, { stringKey: "str_10477" }, "no-query");
213
+ }
214
+ return (0, jsx_runtime_1.jsx)(EmptyTextForRender_1.default, {});
211
215
  }
212
216
  var queryDataValue = queryData[queryPath];
213
217
  // 쿼리 데이터와 키가 있으나, 쿼리 데이터에 결과가 빈 경우
214
218
  if (!(queryDataValue === null || queryDataValue === void 0 ? void 0 : queryDataValue.length)) {
215
- return (0, jsx_runtime_1.jsx)(EmptyString, { stringKey: "str_10660" }, "empty-item");
219
+ if (mode === 'EDIT') {
220
+ return (0, jsx_runtime_1.jsx)(EmptyString, { stringKey: "str_10660" }, "empty-item");
221
+ }
222
+ return (0, jsx_runtime_1.jsx)(EmptyTextForRender_1.default, {});
216
223
  }
217
224
  return renderSwiper(compositions);
218
225
  };
@@ -39,6 +39,7 @@ var types_1 = require("../../../../../../../DynamicLayout/sections/CustomSection
39
39
  var util_1 = require("../../../../../../../DynamicLayout/sections/CustomSection/util");
40
40
  var isNullOrUndefined_1 = __importDefault(require("../../../../../../../DynamicLayout/sections/CustomSection/util/isNullOrUndefined"));
41
41
  var styled_components_1 = __importDefault(require("styled-components"));
42
+ var EmptyTextForRender_1 = __importDefault(require("../../../fallbacks/EmptyTextForRender"));
42
43
  var S_CB_AnimationObserverBox_1 = require("../components/S_CB_AnimationObserverBox");
43
44
  var S_CB_BoxWithShadow_1 = require("../components/S_CB_BoxWithShadow");
44
45
  var S_HeightFitContentCover_1 = require("../components/S_HeightFitContentCover");
@@ -204,12 +205,18 @@ function ContentsList(props) {
204
205
  }
205
206
  // 데이터 연결
206
207
  if (CB_CONTENT_PROP_CONTENTSLIST_SPEC_CONNECTDATA === 'NONE' || !queryPath || !queryData) {
207
- return (0, jsx_runtime_1.jsx)(EmptyString, { stringKey: "str_10477" }, "no-query");
208
+ if (mode === 'EDIT') {
209
+ return (0, jsx_runtime_1.jsx)(EmptyString, { stringKey: "str_10477" }, "no-query");
210
+ }
211
+ return (0, jsx_runtime_1.jsx)(EmptyTextForRender_1.default, {});
208
212
  }
209
213
  var queryDataValue = queryData[queryPath];
210
214
  // 쿼리 데이터와 키가 있으나, 쿼리 데이터에 결과가 빈 경우
211
215
  if (!(queryDataValue === null || queryDataValue === void 0 ? void 0 : queryDataValue.length)) {
212
- return (0, jsx_runtime_1.jsx)(EmptyString, { stringKey: "str_10660" }, "empty-item");
216
+ if (mode === 'EDIT') {
217
+ return (0, jsx_runtime_1.jsx)(EmptyString, { stringKey: "str_10660" }, "empty-item");
218
+ }
219
+ return (0, jsx_runtime_1.jsx)(EmptyTextForRender_1.default, {});
213
220
  }
214
221
  return renderList(compositions);
215
222
  };
@@ -38,6 +38,7 @@ var types_1 = require("../../../../../../../DynamicLayout/sections/CustomSection
38
38
  var util_1 = require("../../../../../../../DynamicLayout/sections/CustomSection/util");
39
39
  var isNullOrUndefined_1 = __importDefault(require("../../../../../../../DynamicLayout/sections/CustomSection/util/isNullOrUndefined"));
40
40
  var styled_components_1 = __importDefault(require("styled-components"));
41
+ var EmptyTextForRender_1 = __importDefault(require("../../../fallbacks/EmptyTextForRender"));
41
42
  var S_CB_AnimationObserverBox_1 = require("../components/S_CB_AnimationObserverBox");
42
43
  var S_CB_BoxWithShadow_1 = require("../components/S_CB_BoxWithShadow");
43
44
  var S_HiddenCover_1 = require("../components/S_HiddenCover");
@@ -187,12 +188,18 @@ function SlideBanner(props) {
187
188
  }
188
189
  // 데이터 연결
189
190
  if (CB_CONTENT_PROP_SLIDEBANNER_SPEC_CONNECTDATA === 'NONE' || !queryPath || !queryData) {
190
- return (0, jsx_runtime_1.jsx)(EmptyString, { stringKey: "str_10477" }, "no-query");
191
+ if (mode === 'EDIT') {
192
+ return (0, jsx_runtime_1.jsx)(EmptyString, { stringKey: "str_10477" }, "no-query");
193
+ }
194
+ return (0, jsx_runtime_1.jsx)(EmptyTextForRender_1.default, {});
191
195
  }
192
196
  var queryDataValue = queryData[queryPath];
193
197
  // 쿼리 데이터와 키가 있으나, 쿼리 데이터에 결과가 빈 경우
194
198
  if (!(queryDataValue === null || queryDataValue === void 0 ? void 0 : queryDataValue.length)) {
195
- return (0, jsx_runtime_1.jsx)(EmptyString, { stringKey: "str_10660" }, "empty-item");
199
+ if (mode === 'EDIT') {
200
+ return (0, jsx_runtime_1.jsx)(EmptyString, { stringKey: "str_10660" }, "empty-item");
201
+ }
202
+ return (0, jsx_runtime_1.jsx)(EmptyTextForRender_1.default, {});
196
203
  }
197
204
  return renderSwiper(compositions);
198
205
  };
@@ -94,7 +94,6 @@ function Text(props) {
94
94
  var isDataConnected = CB_CONTENT_PROP_TEXT_SPEC_VALUETYPE === 'DATA' ||
95
95
  CB_CONTENT_PROP_TEXT_SPEC_VALUETYPE === 'DELEGATEDDATA';
96
96
  if (isDataConnected) {
97
- console.log('queryContext', queryContext);
98
97
  if (queryContext === null || queryContext === void 0 ? void 0 : queryContext.queryData) {
99
98
  if (CB_CONTENT_PROP_TEXT_SPEC_CONNECTDATA === 'NONE') {
100
99
  if (mode === 'EDIT') {
@@ -0,0 +1,2 @@
1
+ /// <reference types="react" />
2
+ export default function EmptyTextForRender(): JSX.Element;
@@ -0,0 +1,20 @@
1
+ "use strict";
2
+ var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cooked, raw) {
3
+ if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
4
+ return cooked;
5
+ };
6
+ var __importDefault = (this && this.__importDefault) || function (mod) {
7
+ return (mod && mod.__esModule) ? mod : { "default": mod };
8
+ };
9
+ Object.defineProperty(exports, "__esModule", { value: true });
10
+ var jsx_runtime_1 = require("react/jsx-runtime");
11
+ var react_i18next_1 = require("react-i18next");
12
+ var TextLabel_1 = require("../../../../../DynamicLayout/components/pdsOriginal/desktop/TextLabel");
13
+ var styled_components_1 = __importDefault(require("styled-components"));
14
+ function EmptyTextForRender() {
15
+ var t = (0, react_i18next_1.useTranslation)('translation').t;
16
+ return ((0, jsx_runtime_1.jsx)(S_Wrapper, { children: (0, jsx_runtime_1.jsx)(TextLabel_1.TextLabel, { text: t('str_10663'), styleTheme: "body2Regular", colorTheme: "sysTextTertiary" }) }));
17
+ }
18
+ exports.default = EmptyTextForRender;
19
+ var S_Wrapper = styled_components_1.default.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n align-items: center;\n bottom: 0;\n display: flex;\n height: 100%;\n justify-content: center;\n left: 0;\n position: absolute;\n right: 0;\n top: 0;\n width: 100%;\n"], ["\n align-items: center;\n bottom: 0;\n display: flex;\n height: 100%;\n justify-content: center;\n left: 0;\n position: absolute;\n right: 0;\n top: 0;\n width: 100%;\n"])));
20
+ var templateObject_1;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pds-dev-kit-web-test",
3
- "version": "2.7.590",
3
+ "version": "2.7.592",
4
4
  "license": "MIT",
5
5
  "private": false,
6
6
  "main": "dist/index.js",