pds-dev-kit-web 2.2.297 → 2.2.298

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.
@@ -1,3 +1,2 @@
1
- import type { IComposition } from './types';
2
- export declare const sampleMockComposition1: IComposition;
1
+ export declare const sampleMockComposition1: any;
3
2
  export declare const sampleMockComposition2: any;
@@ -107,6 +107,12 @@ function Button(props) {
107
107
  CB_CONTENT_PROP_TEXT_SPEC_VALUETYPE === 'DELEGATEDDATA';
108
108
  if (isDataConnected) {
109
109
  if (queryContext === null || queryContext === void 0 ? void 0 : queryContext.queryData) {
110
+ if (CB_CONTENT_PROP_TEXT_SPEC_CONNECTDATA === 'NONE') {
111
+ if (mode === 'EDIT') {
112
+ return (0, jsx_runtime_1.jsx)(DataNotFound_1.default, { stringKey: "str_10477" });
113
+ }
114
+ return '';
115
+ }
110
116
  if (!Object.prototype.hasOwnProperty.call(queryContext.queryData, CB_CONTENT_PROP_TEXT_SPEC_CONNECTDATA)) {
111
117
  if (mode === 'EDIT') {
112
118
  return (0, jsx_runtime_1.jsx)(DataNotFound_1.default, { stringKey: "str_10478" });
@@ -204,7 +204,7 @@ function ContentsCarousel(props) {
204
204
  return renderSwiper(compositions);
205
205
  }
206
206
  // 데이터 연결
207
- if (queryPath === 'NONE' || !queryPath || !queryData) {
207
+ if (CB_CONTENT_PROP_CONTENTSCAROUSEL_SPEC_CONNECTDATA === 'NONE' || !queryPath || !queryData) {
208
208
  return (0, jsx_runtime_1.jsx)(EmptyString, { stringKey: "str_10477" }, "no-query");
209
209
  }
210
210
  var queryDataValue = queryData[queryPath];
@@ -204,7 +204,7 @@ function ContentsList(props) {
204
204
  return renderList(compositions);
205
205
  }
206
206
  // 데이터 연결
207
- if (queryPath === 'NONE' || !queryPath || !queryData) {
207
+ if (CB_CONTENT_PROP_CONTENTSLIST_SPEC_CONNECTDATA === 'NONE' || !queryPath || !queryData) {
208
208
  return (0, jsx_runtime_1.jsx)(EmptyString, { stringKey: "str_10477" }, "no-query");
209
209
  }
210
210
  var queryDataValue = queryData[queryPath];
@@ -111,28 +111,32 @@ function Image(props) {
111
111
  };
112
112
  var showDataNotFound = function () {
113
113
  if (mode !== 'EDIT') {
114
- return false;
114
+ return (0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, {});
115
115
  }
116
116
  if (CB_CONTENT_PROP_IMAGE.CB_CONTENT_PROP_IMAGE_SPEC_VALUETYPE === 'DATA' ||
117
117
  CB_CONTENT_PROP_IMAGE.CB_CONTENT_PROP_IMAGE_SPEC_VALUETYPE === 'DELEGATEDDATA') {
118
118
  if (!(queryContext === null || queryContext === void 0 ? void 0 : queryContext.queryData)) {
119
- return true;
119
+ return (0, jsx_runtime_1.jsx)(DataNotFound_1.default, { stringKey: "str_10477" });
120
+ }
121
+ if (CB_CONTENT_PROP_IMAGE.CB_CONTENT_PROP_IMAGE_SPEC_CONNECTDATA === 'NONE') {
122
+ return (0, jsx_runtime_1.jsx)(DataNotFound_1.default, { stringKey: "str_10477" });
120
123
  }
121
124
  if (!Object.prototype.hasOwnProperty.call(queryContext.queryData, CB_CONTENT_PROP_IMAGE.CB_CONTENT_PROP_IMAGE_SPEC_CONNECTDATA)) {
122
125
  if (mode === 'EDIT') {
123
- return true;
126
+ return (0, jsx_runtime_1.jsx)(DataNotFound_1.default, { stringKey: "str_10597" });
124
127
  }
125
- return false;
128
+ return (0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, {});
126
129
  }
127
- if (!queryContext.queryData[CB_CONTENT_PROP_IMAGE.CB_CONTENT_PROP_IMAGE_SPEC_CONNECTDATA]) {
128
- return true;
130
+ var value = queryContext.queryData[CB_CONTENT_PROP_IMAGE.CB_CONTENT_PROP_IMAGE_SPEC_CONNECTDATA];
131
+ if (!value) {
132
+ return (0, jsx_runtime_1.jsx)(DataNotFound_1.default, { stringKey: "str_10478" });
129
133
  }
130
134
  }
131
- return false;
135
+ return (0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, {});
132
136
  };
133
137
  return ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [isEditModeAndHidden && (0, jsx_runtime_1.jsx)(S_HiddenCover_1.S_HiddenCover, {}), (0, jsx_runtime_1.jsx)(S_CB_AnimationObserverBox_1.S_CB_AnimationObserverBox, __assign({ ref: hasEffect ? cbRef : null, effectVisibleStyle: effectVisibleStyle }, { children: (0, jsx_runtime_1.jsx)(S_ImageWrapper, __assign({ style: __assign({}, effectCssProperties) }, { children: (0, jsx_runtime_1.jsxs)(S_CB_BoxWithShadow_1.S_CB_BoxWithShadow, __assign({ className: "cb-layout-box", normalStyle: __assign(__assign(__assign(__assign({}, layout), { overflow: 'hidden' }), boxStyle.normal), { cursor: CLINKCursor }), hoverStyle: __assign({}, boxStyle.hover), cbStylePropsShadowSpecs: CB_STYLE_PROP_SHADOW, device: device, onClick: onClickCLINK }, { children: [(0, jsx_runtime_1.jsx)(S_Image, { src: imgSrc() === 'ERROR'
134
138
  ? 'https://static.publ.site/pages-sample/img_cb_style_prop_bgmedia_spec_imageselector_01.png'
135
- : imgSrc(), normalStyle: __assign({}, imgStyle.normal), hoverStyle: __assign({}, imgStyle.hover) }), showDataNotFound() && (0, jsx_runtime_1.jsx)(DataNotFound_1.default, { stringKey: "str_10478" })] })) })) }))] }));
139
+ : imgSrc(), normalStyle: __assign({}, imgStyle.normal), hoverStyle: __assign({}, imgStyle.hover) }), showDataNotFound()] })) })) }))] }));
136
140
  }
137
141
  function parseImageCBStyle(style, hoverStyle, mode) {
138
142
  var boxStyle = {
@@ -184,7 +184,7 @@ function SlideBanner(props) {
184
184
  return renderSwiper(compositions);
185
185
  }
186
186
  // 데이터 연결
187
- if (queryPath === 'NONE' || !queryPath || !queryData) {
187
+ if (CB_CONTENT_PROP_SLIDEBANNER_SPEC_CONNECTDATA === 'NONE' || !queryPath || !queryData) {
188
188
  return (0, jsx_runtime_1.jsx)(EmptyString, { stringKey: "str_10477" }, "no-query");
189
189
  }
190
190
  var queryDataValue = queryData[queryPath];
@@ -95,6 +95,12 @@ function Text(props) {
95
95
  CB_CONTENT_PROP_TEXT_SPEC_VALUETYPE === 'DELEGATEDDATA';
96
96
  if (isDataConnected) {
97
97
  if (queryContext === null || queryContext === void 0 ? void 0 : queryContext.queryData) {
98
+ if (CB_CONTENT_PROP_TEXT_SPEC_CONNECTDATA === 'NONE') {
99
+ if (mode === 'EDIT') {
100
+ return (0, jsx_runtime_1.jsx)(DataNotFound_1.default, { stringKey: "str_10477" });
101
+ }
102
+ return '';
103
+ }
98
104
  if (!Object.prototype.hasOwnProperty.call(queryContext.queryData, CB_CONTENT_PROP_TEXT_SPEC_CONNECTDATA)) {
99
105
  if (mode === 'EDIT') {
100
106
  return (0, jsx_runtime_1.jsx)(DataNotFound_1.default, { stringKey: "str_10478" });
@@ -429,6 +429,7 @@ export interface IComposition {
429
429
  compositionTemplateCode: string;
430
430
  dynamicLayoutComponentBlockId: number;
431
431
  ccbManualItemUuid: string;
432
+ isInitialConversionTriggered: boolean;
432
433
  }
433
434
  export type ICompositionJsonProperties = {
434
435
  data: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pds-dev-kit-web",
3
- "version": "2.2.297",
3
+ "version": "2.2.298",
4
4
  "license": "MIT",
5
5
  "private": false,
6
6
  "main": "dist/index.js",
package/release-note.md CHANGED
@@ -1,7 +1,7 @@
1
1
  # PDS-DEV-KIT-WEB Release Notes
2
- ## [v2.2.297]
2
+ ## [v2.2.298]
3
3
  ## daily|https://design.storybook.publ.biz/
4
4
 
5
5
  ### 업데이트 사항
6
6
 
7
- * PDS-X 3.4 데이터연결
7
+ * [3.4 추가 작업사항] Project/papp contents