pds-dev-kit-web-test 2.7.570 → 2.7.572

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.
@@ -2,7 +2,7 @@
2
2
  import type { ComponentBlock } from '../sections/CustomSection/types';
3
3
  import type { CB_VALUE_TYPE, CCB_VALUE_TYPE } from '../sections/CustomSection/util/types';
4
4
  import type { DynamicLayoutProps, IComposition, QueryData } from '../../DynamicLayout/types';
5
- export declare function createCompositions({ valueType, queryPath, queryData, compositions, limit, componentBlockCode, device, navigationHandler }: {
5
+ export declare function createCompositions({ valueType, queryPath, queryData, compositions, limit, componentBlockCode, device, navigationHandler, mode }: {
6
6
  valueType: CCB_VALUE_TYPE | CB_VALUE_TYPE;
7
7
  queryPath: string;
8
8
  queryData: QueryData | undefined;
@@ -11,4 +11,5 @@ export declare function createCompositions({ valueType, queryPath, queryData, co
11
11
  componentBlockCode: ComponentBlock['componentBlockCode'];
12
12
  device: 'MOBILE' | 'DESKTOP';
13
13
  navigationHandler: DynamicLayoutProps['navigationHandler'];
14
+ mode: DynamicLayoutProps['mode'];
14
15
  }): JSX.Element[];
@@ -20,14 +20,15 @@ var compositionQueryContext_1 = require("../compositionQueryContext");
20
20
  var dynamicLayoutContext_1 = require("../dynamicLayoutContext");
21
21
  var Composition_1 = __importDefault(require("./Composition"));
22
22
  function createCompositions(_a) {
23
- var valueType = _a.valueType, queryPath = _a.queryPath, queryData = _a.queryData, compositions = _a.compositions, limit = _a.limit, componentBlockCode = _a.componentBlockCode, device = _a.device, navigationHandler = _a.navigationHandler;
23
+ var valueType = _a.valueType, queryPath = _a.queryPath, queryData = _a.queryData, compositions = _a.compositions, limit = _a.limit, componentBlockCode = _a.componentBlockCode, device = _a.device, navigationHandler = _a.navigationHandler, mode = _a.mode;
24
24
  var isQueryDataConnected = valueType === 'DATA' || valueType === 'DELEGATEDDATA';
25
25
  // 직접 입력 유형인 경우
26
26
  if (!isQueryDataConnected) {
27
27
  var valueTypeCompositions = compositions.filter(function (composition) { return !!(composition === null || composition === void 0 ? void 0 : composition.ccbManualItemUuid); });
28
28
  return valueTypeCompositions.map(function (composition) { return ((0, jsx_runtime_1.jsx)(dynamicLayoutContext_1.dynamicLayoutContext.Provider, __assign({ value: {
29
- mode: 'EDIT',
30
- device: device
29
+ mode: mode,
30
+ device: device,
31
+ navigationHandler: navigationHandler
31
32
  } }, { children: (0, jsx_runtime_1.jsx)(Composition_1.default, __assign({}, composition, { ccbCode: componentBlockCode }), composition.id) }), composition.id)); });
32
33
  }
33
34
  var queryDataValue = queryData === null || queryData === void 0 ? void 0 : queryData[queryPath];
@@ -35,7 +36,7 @@ function createCompositions(_a) {
35
36
  if (!queryDataValue)
36
37
  return [(0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, {})];
37
38
  return queryDataValue.slice(0, limit).map(function (query, index) { return ((0, jsx_runtime_1.jsx)(compositionQueryContext_1.CCBQueryPathContext.Provider, __assign({ value: { queryData: query } }, { children: (0, jsx_runtime_1.jsx)(dynamicLayoutContext_1.dynamicLayoutContext.Provider, __assign({ value: {
38
- mode: 'EDIT',
39
+ mode: mode,
39
40
  device: device,
40
41
  navigationHandler: navigationHandler
41
42
  } }, { children: (0, jsx_runtime_1.jsx)(Composition_1.default, __assign({}, queryComposition, { ccbCode: componentBlockCode })) })) }), index)); });
@@ -190,7 +190,8 @@ function ContentsCarousel(props) {
190
190
  compositions: compositions,
191
191
  componentBlockCode: types_1.CB_ALL_CODES.CB_CONTENTSCAROUSEL,
192
192
  device: device,
193
- navigationHandler: navigationHandler
193
+ navigationHandler: navigationHandler,
194
+ mode: mode
194
195
  }) }), CB_CONTENT_PROP_CONTENTSCAROUSEL_SPEC_VALUETYPE +
195
196
  CB_EFFECT_PROP_CONTENTSCAROUSEL_SPEC_TRANSITIONTYPE +
196
197
  autoPlayEnabled +
@@ -194,7 +194,8 @@ function ContentsList(props) {
194
194
  compositions: compositions,
195
195
  componentBlockCode: types_1.CB_ALL_CODES.CB_LIST,
196
196
  device: device,
197
- navigationHandler: navigationHandler
197
+ navigationHandler: navigationHandler,
198
+ mode: mode
198
199
  }).slice(startIndex, endIndex + 1) })) })));
199
200
  };
200
201
  var renderCompositions = function (compositions) {
@@ -170,7 +170,8 @@ function SlideBanner(props) {
170
170
  compositions: compositions,
171
171
  componentBlockCode: types_1.CB_ALL_CODES.CB_SLIDEBANNER,
172
172
  navigationHandler: navigationHandler,
173
- device: device
173
+ device: device,
174
+ mode: mode
174
175
  }) }), CB_CONTENT_PROP_SLIDEBANNER_SPEC_VALUETYPE +
175
176
  CB_EFFECT_PROP_SLIDEBANNER_SPEC_TRANSITIONTYPE +
176
177
  autoPlayEnabled +
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pds-dev-kit-web-test",
3
- "version": "2.7.570",
3
+ "version": "2.7.572",
4
4
  "license": "MIT",
5
5
  "private": false,
6
6
  "main": "dist/index.js",