pds-dev-kit-web-test 0.0.19 → 0.0.20

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.
Files changed (22) hide show
  1. package/dist/src/common/styles/colorSet/PaletteColor_Dark.json +4 -1
  2. package/dist/src/common/styles/colorSet/PaletteColor_light.json +4 -1
  3. package/dist/src/common/styles/colorSet/UIColor.json +9 -4
  4. package/dist/src/common/styles/colorSet/index.d.ts +11 -0
  5. package/dist/src/common/styles/colorSet/ui-type.d.ts +5 -0
  6. package/dist/src/sub/DynamicLayout/DynamicLayout.js +13 -2
  7. package/dist/src/sub/DynamicLayout/common/components/pdsOriginal/common/styles/colorSet/PaletteColor_Dark.json +4 -1
  8. package/dist/src/sub/DynamicLayout/common/components/pdsOriginal/common/styles/colorSet/PaletteColor_light.json +4 -1
  9. package/dist/src/sub/DynamicLayout/common/components/pdsOriginal/common/styles/colorSet/UIColor.json +11 -4
  10. package/dist/src/sub/DynamicLayout/common/components/pdsOriginal/common/styles/colorSet/index.d.ts +93 -80
  11. package/dist/src/sub/DynamicLayout/common/components/pdsOriginal/common/styles/colorSet/index.js +2 -2
  12. package/dist/src/sub/DynamicLayout/common/components/pdsOriginal/common/styles/colorSet/ui-type.d.ts +7 -0
  13. package/dist/src/sub/DynamicLayout/desktop/components/common/YouTubeIframe.js +5 -1
  14. package/dist/src/sub/DynamicLayout/desktop/sections/ContentsCarouselSection/templates/TemplateA/TemplateA.js +5 -4
  15. package/dist/src/sub/DynamicLayout/desktop/sections/ContentsCarouselSection/templates/TemplateB/TemplateB.js +4 -3
  16. package/dist/src/sub/DynamicLayout/desktop/sections/InfoBoxSection/templates/TemplateA/TemplateA.js +5 -4
  17. package/dist/src/sub/DynamicLayout/mobile/components/common/YouTubeIframe.js +5 -1
  18. package/dist/src/sub/DynamicLayout/mobile/sections/ContentsCarouselSection/templates/TemplateA/TemplateA.js +4 -3
  19. package/dist/src/sub/DynamicLayout/mobile/sections/ContentsCarouselSection/templates/TemplateB/TemplateB.js +4 -3
  20. package/dist/src/sub/DynamicLayout/mobile/sections/InfoBoxSection/templates/TemplateA/TemplateA.js +4 -3
  21. package/package.json +1 -1
  22. package/release-note.md +6 -21
@@ -224,5 +224,8 @@
224
224
  "sys_cpnt_sheet_base_04": "darkblue500",
225
225
  "sys_cpnt_sheet_base_05": "grey950",
226
226
  "sys_cpnt_sheet_base_06": "darkgreen500",
227
- "sys_facebook": "facebookblue"
227
+ "sys_facebook": "facebookblue",
228
+ "sys_component_base_19": "white/opacity65",
229
+ "sys_cpnt_pagination_dot_01": "white",
230
+ "sys_cpnt_pagination_dot_02": "white/opacity50"
228
231
  }
@@ -224,5 +224,8 @@
224
224
  "sys_cpnt_sheet_base_04": "blue500",
225
225
  "sys_cpnt_sheet_base_05": "grey950",
226
226
  "sys_cpnt_sheet_base_06": "green500",
227
- "sys_facebook": "facebookblue"
227
+ "sys_facebook": "facebookblue",
228
+ "sys_component_base_19": "white/opacity65",
229
+ "sys_cpnt_pagination_dot_01": "grey400",
230
+ "sys_cpnt_pagination_dot_02": "white/opacity50"
228
231
  }
@@ -634,12 +634,17 @@
634
634
  "ui_cpnt_sheet_base_06": "sys_cpnt_sheet_base_04",
635
635
  "ui_cpnt_sheet_base_07": "sys_cpnt_sheet_base_05",
636
636
  "ui_cpnt_sheet_base_08": "sys_cpnt_sheet_base_06",
637
- "ui_cpnt_pagination_dot_01": "sys_widget_white",
638
- "ui_cpnt_pagination_dot_02": "sys_cpnt_base_white_opacity50",
639
- "ui_cpnt_pagination_dot_border": "sys_border_line_01",
637
+ "ui_cpnt_pagination_dot_01": "sys_cpnt_pagination_dot_01",
638
+ "ui_cpnt_pagination_dot_02": "sys_cpnt_pagination_dot_02",
639
+ "ui_cpnt_pagination_dot_border": "sys_border_line_02",
640
640
  "ui_63": "sys_facebook",
641
641
  "ui_64": "sys_text_white",
642
642
  "ui_cpnt_sheet_border_04": "sys_border_line_02",
643
643
  "ui_cpnt_button_fill_base_01": "sys_component_base_05",
644
- "ui_cpnt_button_fill_base_hangup": "sys_component_base_red"
644
+ "ui_cpnt_button_fill_base_hangup": "sys_component_base_red",
645
+ "ui_cpnt_refund_text_status_issued": "sys_widget_orange_01",
646
+ "ui_cpnt_refund_text_status_refunded": "sys_widget_success_01",
647
+ "ui_cpnt_divider_white_01": "sys_component_base_19",
648
+ "ui_cpnt_timer_base_01": "sys_background_dimmed",
649
+ "ui_cpnt_timer_base_timeup": "sys_component_base_17"
645
650
  }
@@ -306,6 +306,9 @@ declare const colorSet: {
306
306
  sys_cpnt_sheet_base_05: string;
307
307
  sys_cpnt_sheet_base_06: string;
308
308
  sys_facebook: string;
309
+ sys_component_base_19: string;
310
+ sys_cpnt_pagination_dot_01: string;
311
+ sys_cpnt_pagination_dot_02: string;
309
312
  };
310
313
  readonly PaletteColor_light: {
311
314
  sys_container_background_01: string;
@@ -534,6 +537,9 @@ declare const colorSet: {
534
537
  sys_cpnt_sheet_base_05: string;
535
538
  sys_cpnt_sheet_base_06: string;
536
539
  sys_facebook: string;
540
+ sys_component_base_19: string;
541
+ sys_cpnt_pagination_dot_01: string;
542
+ sys_cpnt_pagination_dot_02: string;
537
543
  };
538
544
  readonly UIColor: {
539
545
  ui_cpnt_button_fill_base_primary: string;
@@ -1179,6 +1185,11 @@ declare const colorSet: {
1179
1185
  ui_cpnt_sheet_border_04: string;
1180
1186
  ui_cpnt_button_fill_base_01: string;
1181
1187
  ui_cpnt_button_fill_base_hangup: string;
1188
+ ui_cpnt_refund_text_status_issued: string;
1189
+ ui_cpnt_refund_text_status_refunded: string;
1190
+ ui_cpnt_divider_white_01: string;
1191
+ ui_cpnt_timer_base_01: string;
1192
+ ui_cpnt_timer_base_timeup: string;
1182
1193
  };
1183
1194
  };
1184
1195
  export default colorSet;
@@ -642,4 +642,9 @@ export interface UITheme {
642
642
  ui_cpnt_sheet_border_04: string;
643
643
  ui_cpnt_button_fill_base_01: string;
644
644
  ui_cpnt_button_fill_base_hangup: string;
645
+ ui_cpnt_refund_text_status_issued: string;
646
+ ui_cpnt_refund_text_status_refunded: string;
647
+ ui_cpnt_divider_white_01: string;
648
+ ui_cpnt_timer_base_01: string;
649
+ ui_cpnt_timer_base_timeup: string;
645
650
  }
@@ -1,4 +1,13 @@
1
1
  "use strict";
2
+ var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
3
+ if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
4
+ if (ar || !(i in from)) {
5
+ if (!ar) ar = Array.prototype.slice.call(from, 0, i);
6
+ ar[i] = from[i];
7
+ }
8
+ }
9
+ return to.concat(ar || Array.prototype.slice.call(from));
10
+ };
2
11
  var __importDefault = (this && this.__importDefault) || function (mod) {
3
12
  return (mod && mod.__esModule) ? mod : { "default": mod };
4
13
  };
@@ -9,9 +18,11 @@ var dynamicLayoutContext_1 = require("./dynamicLayoutContext");
9
18
  var mobile_1 = require("./mobile");
10
19
  function DynamicLayout(_a) {
11
20
  var device = _a.device, isPreview = _a.isPreview, sections = _a.sections, navigationHandler = _a.navigationHandler;
21
+ var filteredSortedSection = __spreadArray([], sections, true).filter(function (section) { return section.display; })
22
+ .sort(function (a, b) { return a.order - b.order; });
12
23
  return (react_1.default.createElement(dynamicLayoutContext_1.dynamicLayoutContext.Provider, { value: { isPreview: isPreview, navigationHandler: navigationHandler } }, {
13
- MOBILE: react_1.default.createElement(mobile_1.MobileWeb, { sections: sections }),
14
- DESKTOP: react_1.default.createElement(desktop_1.DesktopWeb, { sections: sections })
24
+ MOBILE: react_1.default.createElement(mobile_1.MobileWeb, { sections: filteredSortedSection }),
25
+ DESKTOP: react_1.default.createElement(desktop_1.DesktopWeb, { sections: filteredSortedSection })
15
26
  }[device]));
16
27
  }
17
28
  exports.default = DynamicLayout;
@@ -224,5 +224,8 @@
224
224
  "sys_cpnt_sheet_base_04": "darkblue500",
225
225
  "sys_cpnt_sheet_base_05": "grey950",
226
226
  "sys_cpnt_sheet_base_06": "darkgreen500",
227
- "sys_facebook": "facebookblue"
227
+ "sys_facebook": "facebookblue",
228
+ "sys_component_base_19": "white/opacity65",
229
+ "sys_cpnt_pagination_dot_01": "white",
230
+ "sys_cpnt_pagination_dot_02": "white/opacity50"
228
231
  }
@@ -224,5 +224,8 @@
224
224
  "sys_cpnt_sheet_base_04": "blue500",
225
225
  "sys_cpnt_sheet_base_05": "grey950",
226
226
  "sys_cpnt_sheet_base_06": "green500",
227
- "sys_facebook": "facebookblue"
227
+ "sys_facebook": "facebookblue",
228
+ "sys_component_base_19": "white/opacity65",
229
+ "sys_cpnt_pagination_dot_01": "grey400",
230
+ "sys_cpnt_pagination_dot_02": "white/opacity50"
228
231
  }
@@ -634,10 +634,17 @@
634
634
  "ui_cpnt_sheet_base_06": "sys_cpnt_sheet_base_04",
635
635
  "ui_cpnt_sheet_base_07": "sys_cpnt_sheet_base_05",
636
636
  "ui_cpnt_sheet_base_08": "sys_cpnt_sheet_base_06",
637
- "ui_cpnt_pagination_dot_01": "sys_widget_white",
638
- "ui_cpnt_pagination_dot_02": "sys_cpnt_base_white_opacity50",
639
- "ui_cpnt_pagination_dot_border": "sys_border_line_01",
637
+ "ui_cpnt_pagination_dot_01": "sys_cpnt_pagination_dot_01",
638
+ "ui_cpnt_pagination_dot_02": "sys_cpnt_pagination_dot_02",
639
+ "ui_cpnt_pagination_dot_border": "sys_border_line_02",
640
640
  "ui_63": "sys_facebook",
641
641
  "ui_64": "sys_text_white",
642
- "ui_cpnt_sheet_border_04": "sys_border_line_02"
642
+ "ui_cpnt_sheet_border_04": "sys_border_line_02",
643
+ "ui_cpnt_button_fill_base_01": "sys_component_base_05",
644
+ "ui_cpnt_button_fill_base_hangup": "sys_component_base_red",
645
+ "ui_cpnt_refund_text_status_issued": "sys_widget_orange_01",
646
+ "ui_cpnt_refund_text_status_refunded": "sys_widget_success_01",
647
+ "ui_cpnt_divider_white_01": "sys_component_base_19",
648
+ "ui_cpnt_timer_base_01": "sys_background_dimmed",
649
+ "ui_cpnt_timer_base_timeup": "sys_component_base_17"
643
650
  }
@@ -1,4 +1,84 @@
1
1
  declare const colorSet: {
2
+ readonly SemanticColor: {
3
+ blue500: string;
4
+ blue700: string;
5
+ blue300: string;
6
+ green700: string;
7
+ green500: string;
8
+ green300: string;
9
+ red500: string;
10
+ grey900: string;
11
+ grey500: string;
12
+ grey400: string;
13
+ grey100: string;
14
+ grey50: string;
15
+ white: string;
16
+ black: string;
17
+ darkblue500: string;
18
+ grey950: string;
19
+ darkgrey900: string;
20
+ darkgrey500: string;
21
+ darkgrey400: string;
22
+ darkgrey100: string;
23
+ darkgrey50: string;
24
+ darkred500: string;
25
+ darkgreen700: string;
26
+ orange500: string;
27
+ darkorange500: string;
28
+ opacity00: string;
29
+ opacity20: string;
30
+ opacity30: string;
31
+ opacity65: string;
32
+ darkgreen500: string;
33
+ grey70: string;
34
+ navy500: string;
35
+ lightgreen500: string;
36
+ pink500: string;
37
+ darkgrey70: string;
38
+ darknavy500: string;
39
+ darkpink500: string;
40
+ darklightgreen500: string;
41
+ opacity10: string;
42
+ grey600: string;
43
+ darkgrey600: string;
44
+ skyblue500: string;
45
+ skyblue300: string;
46
+ pink300: string;
47
+ lightpink500: string;
48
+ darkblue300: string;
49
+ darkblue700: string;
50
+ darkgreen300: string;
51
+ darkskyblue500: string;
52
+ navy100: string;
53
+ darknavy100: string;
54
+ opacity80: string;
55
+ opacity50: string;
56
+ grey30: string;
57
+ opacity95: string;
58
+ darkgrey30: string;
59
+ opacity40: string;
60
+ kakaoyellow: string;
61
+ pastelblue500: string;
62
+ pastelpink500: string;
63
+ pastelorange500: string;
64
+ pastelgreen500: string;
65
+ pastelpurple500: string;
66
+ darkpastelblue500: string;
67
+ darkpastelpink500: string;
68
+ darkpastelorange500: string;
69
+ darkpastelgreen500: string;
70
+ darkpastelpurple500: string;
71
+ green30: string;
72
+ darkgreen30: string;
73
+ orange50: string;
74
+ darkorange50: string;
75
+ orange30: string;
76
+ darkorange30: string;
77
+ green50: string;
78
+ darkgreen50: string;
79
+ opacity90: string;
80
+ facebookblue: string;
81
+ };
2
82
  readonly PaletteColor_Dark: {
3
83
  sys_container_background_01: string;
4
84
  sys_container_background_02: string;
@@ -226,6 +306,9 @@ declare const colorSet: {
226
306
  sys_cpnt_sheet_base_05: string;
227
307
  sys_cpnt_sheet_base_06: string;
228
308
  sys_facebook: string;
309
+ sys_component_base_19: string;
310
+ sys_cpnt_pagination_dot_01: string;
311
+ sys_cpnt_pagination_dot_02: string;
229
312
  };
230
313
  readonly PaletteColor_light: {
231
314
  sys_container_background_01: string;
@@ -454,86 +537,9 @@ declare const colorSet: {
454
537
  sys_cpnt_sheet_base_05: string;
455
538
  sys_cpnt_sheet_base_06: string;
456
539
  sys_facebook: string;
457
- };
458
- readonly SemanticColor: {
459
- blue500: string;
460
- blue700: string;
461
- blue300: string;
462
- green700: string;
463
- green500: string;
464
- green300: string;
465
- red500: string;
466
- grey900: string;
467
- grey500: string;
468
- grey400: string;
469
- grey100: string;
470
- grey50: string;
471
- white: string;
472
- black: string;
473
- darkblue500: string;
474
- grey950: string;
475
- darkgrey900: string;
476
- darkgrey500: string;
477
- darkgrey400: string;
478
- darkgrey100: string;
479
- darkgrey50: string;
480
- darkred500: string;
481
- darkgreen700: string;
482
- orange500: string;
483
- darkorange500: string;
484
- opacity00: string;
485
- opacity20: string;
486
- opacity30: string;
487
- opacity65: string;
488
- darkgreen500: string;
489
- grey70: string;
490
- navy500: string;
491
- lightgreen500: string;
492
- pink500: string;
493
- darkgrey70: string;
494
- darknavy500: string;
495
- darkpink500: string;
496
- darklightgreen500: string;
497
- opacity10: string;
498
- grey600: string;
499
- darkgrey600: string;
500
- skyblue500: string;
501
- skyblue300: string;
502
- pink300: string;
503
- lightpink500: string;
504
- darkblue300: string;
505
- darkblue700: string;
506
- darkgreen300: string;
507
- darkskyblue500: string;
508
- navy100: string;
509
- darknavy100: string;
510
- opacity80: string;
511
- opacity50: string;
512
- grey30: string;
513
- opacity95: string;
514
- darkgrey30: string;
515
- opacity40: string;
516
- kakaoyellow: string;
517
- pastelblue500: string;
518
- pastelpink500: string;
519
- pastelorange500: string;
520
- pastelgreen500: string;
521
- pastelpurple500: string;
522
- darkpastelblue500: string;
523
- darkpastelpink500: string;
524
- darkpastelorange500: string;
525
- darkpastelgreen500: string;
526
- darkpastelpurple500: string;
527
- green30: string;
528
- darkgreen30: string;
529
- orange50: string;
530
- darkorange50: string;
531
- orange30: string;
532
- darkorange30: string;
533
- green50: string;
534
- darkgreen50: string;
535
- opacity90: string;
536
- facebookblue: string;
540
+ sys_component_base_19: string;
541
+ sys_cpnt_pagination_dot_01: string;
542
+ sys_cpnt_pagination_dot_02: string;
537
543
  };
538
544
  readonly UIColor: {
539
545
  ui_cpnt_button_fill_base_primary: string;
@@ -1177,6 +1183,13 @@ declare const colorSet: {
1177
1183
  ui_63: string;
1178
1184
  ui_64: string;
1179
1185
  ui_cpnt_sheet_border_04: string;
1186
+ ui_cpnt_button_fill_base_01: string;
1187
+ ui_cpnt_button_fill_base_hangup: string;
1188
+ ui_cpnt_refund_text_status_issued: string;
1189
+ ui_cpnt_refund_text_status_refunded: string;
1190
+ ui_cpnt_divider_white_01: string;
1191
+ ui_cpnt_timer_base_01: string;
1192
+ ui_cpnt_timer_base_timeup: string;
1180
1193
  };
1181
1194
  };
1182
1195
  export default colorSet;
@@ -4,14 +4,14 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
4
4
  };
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
6
  /* eslint-disable import/order */
7
+ var SemanticColor_json_1 = __importDefault(require("./SemanticColor.json"));
7
8
  var PaletteColor_Dark_json_1 = __importDefault(require("./PaletteColor_Dark.json"));
8
9
  var PaletteColor_light_json_1 = __importDefault(require("./PaletteColor_light.json"));
9
- var SemanticColor_json_1 = __importDefault(require("./SemanticColor.json"));
10
10
  var UIColor_json_1 = __importDefault(require("./UIColor.json"));
11
11
  var colorSet = {
12
+ SemanticColor: SemanticColor_json_1.default,
12
13
  PaletteColor_Dark: PaletteColor_Dark_json_1.default,
13
14
  PaletteColor_light: PaletteColor_light_json_1.default,
14
- SemanticColor: SemanticColor_json_1.default,
15
15
  UIColor: UIColor_json_1.default
16
16
  };
17
17
  exports.default = colorSet;
@@ -640,4 +640,11 @@ export interface UITheme {
640
640
  ui_63: string;
641
641
  ui_64: string;
642
642
  ui_cpnt_sheet_border_04: string;
643
+ ui_cpnt_button_fill_base_01: string;
644
+ ui_cpnt_button_fill_base_hangup: string;
645
+ ui_cpnt_refund_text_status_issued: string;
646
+ ui_cpnt_refund_text_status_refunded: string;
647
+ ui_cpnt_divider_white_01: string;
648
+ ui_cpnt_timer_base_01: string;
649
+ ui_cpnt_timer_base_timeup: string;
643
650
  }
@@ -61,7 +61,11 @@ function YouTubeIframe(_a) {
61
61
  playerVars: {
62
62
  playsinline: 1,
63
63
  autoplay: 1,
64
- controls: 0
64
+ controls: 0,
65
+ iv_load_policy: 3,
66
+ listType: 'playlist',
67
+ playlist: TouTubeLinkParser_1.default.getId(src),
68
+ loop: 1
65
69
  },
66
70
  events: {
67
71
  onReady: onPlayerReady,
@@ -57,15 +57,16 @@ function TemplateA() {
57
57
  !!item.properties.linkSrc);
58
58
  })
59
59
  : [];
60
- return (react_1.default.createElement(S_Wrapper, { hasNothing: !title && !description && !buttonAlphaLinkSrc && filteredItems.length === 0 },
60
+ var filteredSortedItems = filteredItems.sort(function (a, b) { return a.order - b.order; });
61
+ return (react_1.default.createElement(S_Wrapper, { hasNothing: !title && !description && !buttonAlphaLinkSrc && filteredSortedItems.length === 0 },
61
62
  react_1.default.createElement(S_ContentsArea, null,
62
63
  title && (react_1.default.createElement(S_SectionTitleBox, null,
63
64
  react_1.default.createElement(components_1.Section.Title, { text: title, color: titleColorInHex, textAlign: "center", customFontSize: "48px", customFontWeight: "bold" }))),
64
65
  description && (react_1.default.createElement(S_SectionDescriptionBox, null,
65
- react_1.default.createElement(components_1.Section.Description, { text: description, color: descriptionColorInHex, customFontSize: "20px", fontWeight: "600" }))),
66
+ react_1.default.createElement(components_1.Section.Description, { text: description, color: descriptionColorInHex, textAlign: "center", customFontSize: "20px", fontWeight: "600" }))),
66
67
  buttonAlphaLinkSrc && (react_1.default.createElement(S_SectionButtonBox, null,
67
68
  react_1.default.createElement(components_1.Section.Button, { text: buttonAlphaLabel, src: buttonAlphaLinkSrc, linkType: buttonAlphaLinkType, buttonType: buttonAlphaDesignType, backgroundColor: buttonAlphaBackgroundColorInHex, textColor: buttonAlphaLabelColorInHex, borderColor: buttonAlphaLabelColorInHex }))),
68
- filteredItems.length > 0 && (react_1.default.createElement(S_CarouselBox, null,
69
+ filteredSortedItems.length > 0 && (react_1.default.createElement(S_CarouselBox, null,
69
70
  react_1.default.createElement(components_1.Carousel, { spaceBetween: 24, slidesPerView: 3, slidesPerGroup: 1, breakpoints: {
70
71
  1301: {
71
72
  slidesPerView: 4
@@ -77,7 +78,7 @@ function TemplateA() {
77
78
  ? 'autoplay'
78
79
  : carouselInfiniteLoopMode === 'USE'
79
80
  ? 'loop'
80
- : 'normal', autoplayDelay: carouselAutoplayTime, buttonSpacing: "-24px" }, filteredItems.map(function (item) {
81
+ : 'normal', autoplayDelay: carouselAutoplayTime, buttonSpacing: "-24px" }, filteredSortedItems.map(function (item) {
81
82
  var id = item.id;
82
83
  var _a = item.properties, itemTitle = _a.title, itemDescription = _a.description, itemImageSrc = _a.imageSrc, itemLinkMethod = _a.linkMethod, itemLinkSrc = _a.linkSrc, itemLinkType = _a.linkType, itemButtonLabel = _a.buttonLabel;
83
84
  return (react_1.default.createElement(components_1.Item, __assign({ key: id }, item),
@@ -57,7 +57,8 @@ function TemplateB() {
57
57
  !!item.properties.linkSrc);
58
58
  })
59
59
  : [];
60
- return (react_1.default.createElement(S_Wrapper, { hasNothing: !title && !description && !buttonAlphaLinkSrc && filteredItems.length === 0 },
60
+ var filteredSortedItems = filteredItems.sort(function (a, b) { return a.order - b.order; });
61
+ return (react_1.default.createElement(S_Wrapper, { hasNothing: !title && !description && !buttonAlphaLinkSrc && filteredSortedItems.length === 0 },
61
62
  react_1.default.createElement(S_ContentsArea, null,
62
63
  title && (react_1.default.createElement(S_SectionTitleBox, null,
63
64
  react_1.default.createElement(components_1.Section.Title, { text: title, color: titleColorInHex, textAlign: "center", customFontSize: "48px", customFontWeight: "bold" }))),
@@ -65,7 +66,7 @@ function TemplateB() {
65
66
  react_1.default.createElement(components_1.Section.Description, { text: description, color: descriptionColorInHex, textAlign: "center", customFontSize: "20px", fontWeight: "600" }))),
66
67
  buttonAlphaLinkSrc && (react_1.default.createElement(S_SectionButtonBox, null,
67
68
  react_1.default.createElement(components_1.Section.Button, { text: buttonAlphaLabel, src: buttonAlphaLinkSrc, linkType: buttonAlphaLinkType, buttonType: buttonAlphaDesignType, backgroundColor: buttonAlphaBackgroundColorInHex, textColor: buttonAlphaLabelColorInHex, borderColor: buttonAlphaLabelColorInHex }))),
68
- filteredItems.length > 0 && (react_1.default.createElement(S_CarouselBox, null,
69
+ filteredSortedItems.length > 0 && (react_1.default.createElement(S_CarouselBox, null,
69
70
  react_1.default.createElement(components_1.Carousel, { spaceBetween: 42, slidesPerView: 3, slidesPerGroup: 1, breakpoints: {
70
71
  1301: {
71
72
  slidesPerView: 4
@@ -77,7 +78,7 @@ function TemplateB() {
77
78
  ? 'autoplay'
78
79
  : carouselInfiniteLoopMode === 'USE'
79
80
  ? 'loop'
80
- : 'normal', autoplayDelay: carouselAutoplayTime, buttonSpacing: "-24px" }, filteredItems.map(function (item) {
81
+ : 'normal', autoplayDelay: carouselAutoplayTime, buttonSpacing: "-24px" }, filteredSortedItems.map(function (item) {
81
82
  var id = item.id;
82
83
  var _a = item.properties, itemTitle = _a.title, itemDescription = _a.description, itemImageSrc = _a.imageSrc, itemLinkMethod = _a.linkMethod, itemLinkSrc = _a.linkSrc, itemLinkType = _a.linkType, itemButtonLabel = _a.buttonLabel;
83
84
  return (react_1.default.createElement(components_1.Item, __assign({ key: id }, item),
@@ -52,18 +52,19 @@ function TemplateA() {
52
52
  (!!item.properties.imageSrc || !!item.properties.title || !!item.properties.description);
53
53
  })
54
54
  : [];
55
- var hasNothing = !title && !description && !buttonAlphaLinkSrc && filteredItems.length <= 0;
55
+ var filteredSortedItems = filteredItems.sort(function (a, b) { return a.order - b.order; });
56
+ var hasNothing = !title && !description && !buttonAlphaLinkSrc && filteredSortedItems.length <= 0;
56
57
  return (react_1.default.createElement(S_ContentsArea, { hasNothing: hasNothing },
57
58
  title && (react_1.default.createElement(Section_1.Section.Title, { text: title, color: titleColorInHex, textAlign: "center", customFontSize: "48px", customFontWeight: "bold" })),
58
59
  description && (react_1.default.createElement(S_SectionDescriptionBox, null,
59
60
  react_1.default.createElement(Section_1.Section.Description, { text: description, color: descriptionColorInHex, textAlign: "center", customFontSize: "20px", fontWeight: "600" }))),
60
- filteredItems.length > 0 && (react_1.default.createElement(S_ItemsWrapper, { totalItems: filteredItems.length }, filteredItems.map(function (item, index, self) {
61
+ filteredSortedItems.length > 0 && (react_1.default.createElement(S_ItemsWrapper, { totalItems: filteredSortedItems.length }, filteredSortedItems.map(function (item, index, self) {
61
62
  var id = item.id;
62
63
  var _a = item.properties, itemTitle = _a.title, itemDescription = _a.description, itemImageSrc = _a.imageSrc;
63
64
  return (react_1.default.createElement(S_ItemWrapper, { key: id, isFirstItem: index === 0, totalItems: self.length },
64
65
  react_1.default.createElement(Item_1.Item, __assign({}, item),
65
66
  itemImageSrc && (react_1.default.createElement(S_ItemImageBox, null,
66
- react_1.default.createElement(Item_1.Item.Image, { src: itemImageSrc, width: 120, ratio: "1_1", shapeType: "rectangle", scaleType: "cover" }))),
67
+ react_1.default.createElement(Item_1.Item.Image, { src: itemImageSrc, width: 120, ratio: "1_1", shapeType: "rectangle", scaleType: "contain" }))),
67
68
  react_1.default.createElement(S_ItemBodyWrapper, null,
68
69
  itemTitle && (react_1.default.createElement(Item_1.Item.Title, { text: itemTitle, color: itemTitleColorInHex, textAlign: "center", customFontSize: "22px", customFontWeight: "bold", lineHeight: 1.4 })),
69
70
  itemDescription && (react_1.default.createElement(react_1.default.Fragment, null,
@@ -113,7 +114,7 @@ var S_CustomDividerBox = styled_components_1.default.div(templateObject_7 || (te
113
114
  });
114
115
  var S_CustomWidthDivider = styled_components_1.default.div(templateObject_8 || (templateObject_8 = __makeTemplateObject(["\n width: 24px;\n height: 3px;\n background-color: ", ";\n"], ["\n width: 24px;\n height: 3px;\n background-color: ", ";\n"])), function (_a) {
115
116
  var theme = _a.theme;
116
- return theme.ui_cpnt_divider_white_opacity30;
117
+ return theme.ui_cpnt_divider_white_01;
117
118
  });
118
119
  var S_ButtonBox = styled_components_1.default.div(templateObject_9 || (templateObject_9 = __makeTemplateObject(["\n display: flex;\n justify-content: center;\n margin: ", " 0;\n"], ["\n display: flex;\n justify-content: center;\n margin: ", " 0;\n"])), function (_a) {
119
120
  var theme = _a.theme;
@@ -61,7 +61,11 @@ function YouTubeIframe(_a) {
61
61
  playerVars: {
62
62
  playsinline: 1,
63
63
  autoplay: 1,
64
- controls: 0
64
+ controls: 0,
65
+ iv_load_policy: 3,
66
+ listType: 'playlist',
67
+ playlist: TouTubeLinkParser_1.default.getId(src),
68
+ loop: 1
65
69
  },
66
70
  events: {
67
71
  onReady: onPlayerReady,
@@ -57,19 +57,20 @@ function TemplateA() {
57
57
  !!item.properties.linkSrc);
58
58
  })
59
59
  : [];
60
- return (react_1.default.createElement(S_ContentsArea, { hasNothing: !title && !description && !buttonAlphaLinkSrc && filteredItems.length === 0 },
60
+ var filteredSortedItems = filteredItems.sort(function (a, b) { return a.order - b.order; });
61
+ return (react_1.default.createElement(S_ContentsArea, { hasNothing: !title && !description && !buttonAlphaLinkSrc && filteredSortedItems.length === 0 },
61
62
  title && (react_1.default.createElement(S_SectionTitleBox, null,
62
63
  react_1.default.createElement(components_1.Section.Title, { text: title, color: titleColorInHex, textAlign: "center", customFontSize: "32px", customFontWeight: "bold", lineHeight: 1.3 }))),
63
64
  description && (react_1.default.createElement(S_SectionDescriptionBox, null,
64
65
  react_1.default.createElement(components_1.Section.Description, { text: description, color: descriptionColorInHex, textAlign: "center", customFontSize: "18px", fontWeight: "600" }))),
65
66
  buttonAlphaLinkSrc && (react_1.default.createElement(S_SectionButtonBox, null,
66
67
  react_1.default.createElement(components_1.Section.Button, { text: buttonAlphaLabel, src: buttonAlphaLinkSrc, linkType: buttonAlphaLinkType, buttonType: buttonAlphaDesignType, backgroundColor: buttonAlphaBackgroundColorInHex, textColor: buttonAlphaLabelColorInHex, borderColor: buttonAlphaLabelColorInHex }))),
67
- filteredItems.length > 0 && (react_1.default.createElement(S_CarouselBox, null,
68
+ filteredSortedItems.length > 0 && (react_1.default.createElement(S_CarouselBox, null,
68
69
  react_1.default.createElement(components_1.Carousel, { spaceBetween: 16, slidesPerView: 2, mode: carouselAutoplayMode === 'AUTO'
69
70
  ? 'autoplay'
70
71
  : carouselInfiniteLoopMode === 'USE'
71
72
  ? 'loop'
72
- : 'normal', autoplayDelay: carouselAutoplayTime, paginationSpacing: [48, 24] }, filteredItems.map(function (item) {
73
+ : 'normal', autoplayDelay: carouselAutoplayTime, paginationSpacing: [48, 24] }, filteredSortedItems.map(function (item) {
73
74
  var id = item.id;
74
75
  var _a = item.properties, itemTitle = _a.title, itemDescription = _a.description, itemImageSrc = _a.imageSrc, itemLinkMethod = _a.linkMethod, itemLinkSrc = _a.linkSrc, itemLinkType = _a.linkType, itemButtonLabel = _a.buttonLabel;
75
76
  return (react_1.default.createElement(components_1.Item, __assign({ key: id }, item),
@@ -57,19 +57,20 @@ function TemplateB() {
57
57
  !!item.properties.linkSrc);
58
58
  })
59
59
  : [];
60
- return (react_1.default.createElement(S_ContentsArea, { hasNothing: !title && !description && !buttonAlphaLinkSrc && filteredItems.length === 0 },
60
+ var filteredSortedItems = filteredItems.sort(function (a, b) { return a.order - b.order; });
61
+ return (react_1.default.createElement(S_ContentsArea, { hasNothing: !title && !description && !buttonAlphaLinkSrc && filteredSortedItems.length === 0 },
61
62
  title && (react_1.default.createElement(S_SectionTitleBox, null,
62
63
  react_1.default.createElement(components_1.Section.Title, { text: title, color: titleColorInHex, textAlign: "center", customFontSize: "32px", customFontWeight: "bold", lineHeight: 1.3 }))),
63
64
  description && (react_1.default.createElement(S_SectionDescriptionBox, null,
64
65
  react_1.default.createElement(components_1.Section.Description, { text: description, color: descriptionColorInHex, textAlign: "center", customFontSize: "18px", fontWeight: "600" }))),
65
66
  buttonAlphaLinkSrc && (react_1.default.createElement(S_SectionButtonBox, null,
66
67
  react_1.default.createElement(components_1.Section.Button, { text: buttonAlphaLabel, src: buttonAlphaLinkSrc, linkType: buttonAlphaLinkType, buttonType: buttonAlphaDesignType, backgroundColor: buttonAlphaBackgroundColorInHex, textColor: buttonAlphaLabelColorInHex, borderColor: buttonAlphaLabelColorInHex }))),
67
- filteredItems && (react_1.default.createElement(S_CarouselBox, null,
68
+ filteredSortedItems && (react_1.default.createElement(S_CarouselBox, null,
68
69
  react_1.default.createElement(components_1.Carousel, { spaceBetween: 24, slidesPerView: 1, mode: carouselAutoplayMode === 'AUTO'
69
70
  ? 'autoplay'
70
71
  : carouselInfiniteLoopMode === 'USE'
71
72
  ? 'loop'
72
- : 'normal', autoplayDelay: carouselAutoplayTime, paginationSpacing: [48, 24] }, filteredItems.map(function (item) {
73
+ : 'normal', autoplayDelay: carouselAutoplayTime, paginationSpacing: [48, 24] }, filteredSortedItems.map(function (item) {
73
74
  var id = item.id;
74
75
  var _a = item.properties, itemTitle = _a.title, itemDescription = _a.description, itemImageSrc = _a.imageSrc, itemLinkMethod = _a.linkMethod, itemLinkSrc = _a.linkSrc, itemLinkType = _a.linkType, itemButtonLabel = _a.buttonLabel;
75
76
  return (react_1.default.createElement(components_1.Item, __assign({ key: id }, item),
@@ -52,18 +52,19 @@ function TemplateA() {
52
52
  (!!item.properties.imageSrc || !!item.properties.title || !!item.properties.description);
53
53
  })
54
54
  : [];
55
- var hasNothing = !title && !description && !buttonAlphaLinkSrc && filteredItems.length <= 0;
55
+ var filteredSortedItems = filteredItems.sort(function (a, b) { return a.order - b.order; });
56
+ var hasNothing = !title && !description && !buttonAlphaLinkSrc && filteredSortedItems.length <= 0;
56
57
  return (react_1.default.createElement(S_ContentsArea, { hasNothing: hasNothing },
57
58
  title && (react_1.default.createElement(Section_1.Section.Title, { text: title, color: titleColorInHex, textAlign: "center", customFontSize: "32px", customFontWeight: "bold", lineHeight: 1.3 })),
58
59
  description && (react_1.default.createElement(S_SectionDescriptionBox, null,
59
60
  react_1.default.createElement(Section_1.Section.Description, { text: description, color: descriptionColorInHex, textAlign: "center", customFontSize: "18px", fontWeight: "600" }))),
60
- filteredItems.length > 0 && (react_1.default.createElement(S_ItemsWrapper, null, filteredItems.map(function (item, index) {
61
+ filteredSortedItems.length > 0 && (react_1.default.createElement(S_ItemsWrapper, null, filteredSortedItems.map(function (item, index) {
61
62
  var id = item.id;
62
63
  var _a = item.properties, itemTitle = _a.title, itemDescription = _a.description, itemImageSrc = _a.imageSrc;
63
64
  return (react_1.default.createElement(S_ItemWrapper, { isFirstItem: index === 0, key: id },
64
65
  react_1.default.createElement(Item_1.Item, __assign({}, item),
65
66
  itemImageSrc && (react_1.default.createElement(S_ItemImageBox, null,
66
- react_1.default.createElement(Item_1.Item.Image, { src: itemImageSrc, width: 80, ratio: "1_1", scaleType: "cover" }))),
67
+ react_1.default.createElement(Item_1.Item.Image, { src: itemImageSrc, width: 80, ratio: "1_1", scaleType: "contain" }))),
67
68
  itemTitle && (react_1.default.createElement(Item_1.Item.Title, { text: itemTitle, color: itemTitleColorInHex, textAlign: "center", customFontSize: "20px", customFontWeight: "bold", lineHeight: 1.4 })),
68
69
  itemDescription && (react_1.default.createElement(S_ItemDescriptionBox, null,
69
70
  react_1.default.createElement(Item_1.Item.Description, { text: itemDescription, color: itemDescriptionColorInHex, textAlign: "center", styleTheme: "body2Regular" }))))));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pds-dev-kit-web-test",
3
- "version": "0.0.19",
3
+ "version": "0.0.20",
4
4
  "license": "MIT",
5
5
  "private": false,
6
6
  "main": "dist/index.js",
package/release-note.md CHANGED
@@ -1,24 +1,9 @@
1
1
  # PDS-DEV-KIT-WEB-TEST Release Notes
2
- ## [v0.0.19]
2
+ ## [v0.0.20]
3
3
 
4
4
  * sub
5
- * DynamicLayout 유튜브 배경의 비율 조정 (세로로 긴 섹션에서 제대로 표시되지 않는 이슈 픽스)
6
- * DynamicLayout 디자인 디테일 수정
7
- * mobile IntroSection 콘텐츠 영역의 넓이 조정 (띄어쓰기 없는 텍스트가 화면밖으로 넘어가는 이슈 픽스)
8
- * desktop 콘텐츠 캐러셀 섹션 / 인포박스 섹션
9
- * 섹션 본문
10
- * 아이템 제목
11
- * 아이템 이미지와 제목 사이 간격 spacing-d -> spacing-e로 수정
12
- * desktop 콘텐트 섹션
13
- * 섹션 본문
14
- * mobile 인트로 섹션
15
- * 섹션 제목
16
- * mobile 콘텐츠 캐러셀 / 인포박스 섹션
17
- * 섹션 제목
18
- * 아이템 제목
19
- * 아이템 본문
20
- * 아이템 이미지와 제목 사이 간격 spacing-c -> 18px로 수정
21
- * 아이템 제목과 아이템 본문 사이 간격 spacing-b -> spacing-c로 수정
22
- * 섹션과 아이템 사이 간격 spacing-g -> 56px로 수정
23
- * 콘텐트 섹션
24
- * 섹션 제목
5
+ * DynamicLayout 수정
6
+ * 인포박스섹션의 디바이더 컬러키 변경
7
+ * 섹션 아이템 순서 정렬과 필터 적용
8
+ * 컨텐츠 캐러셀 섹션의 내용 중앙 정렬
9
+ * 유튜브 연관 동영상 뜨는 이슈 수정