pds-dev-kit-web-test 2.4.71 → 2.5.1

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 (55) hide show
  1. package/dist/src/common/assets/icons/line/SectionBanner32.d.ts +4 -0
  2. package/dist/src/common/assets/icons/line/SectionBanner32.js +30 -0
  3. package/dist/src/common/assets/icons/line/SectionBanner40.d.ts +4 -0
  4. package/dist/src/common/assets/icons/line/SectionBanner40.js +30 -0
  5. package/dist/src/common/assets/icons/line/SectionContentsOperator32.d.ts +4 -0
  6. package/dist/src/common/assets/icons/line/SectionContentsOperator32.js +30 -0
  7. package/dist/src/common/assets/icons/line/SectionContentsOperator40.d.ts +4 -0
  8. package/dist/src/common/assets/icons/line/SectionContentsOperator40.js +30 -0
  9. package/dist/src/common/assets/icons/line/SectionFeed32.d.ts +4 -0
  10. package/dist/src/common/assets/icons/line/SectionFeed32.js +30 -0
  11. package/dist/src/common/assets/icons/line/SectionFeed40.d.ts +4 -0
  12. package/dist/src/common/assets/icons/line/SectionFeed40.js +30 -0
  13. package/dist/src/common/assets/icons/line/SectionHero32.d.ts +4 -0
  14. package/dist/src/common/assets/icons/line/SectionHero32.js +30 -0
  15. package/dist/src/common/assets/icons/line/SectionHero40.d.ts +4 -0
  16. package/dist/src/common/assets/icons/line/SectionHero40.js +30 -0
  17. package/dist/src/common/assets/icons/line/index.d.ts +8 -0
  18. package/dist/src/common/assets/icons/line/index.js +17 -1
  19. package/dist/src/common/styles/colorSet/PaletteColor_Dark.json +2 -1
  20. package/dist/src/common/styles/colorSet/PaletteColor_light.json +2 -1
  21. package/dist/src/common/styles/colorSet/UIColor.json +2 -1
  22. package/dist/src/common/styles/colorSet/index.d.ts +3 -0
  23. package/dist/src/common/styles/colorSet/ui-type.d.ts +1 -0
  24. package/dist/src/common/styles/ui-colors.js +13 -5
  25. package/dist/src/desktop/components/BasicFormGroup/BasicFormGroup.d.ts +2 -1
  26. package/dist/src/desktop/components/BasicFormGroup/BasicFormGroup.js +16 -2
  27. package/dist/src/desktop/components/HorizontalFormGroup/HorizontalFormGroup.d.ts +2 -1
  28. package/dist/src/desktop/components/HorizontalFormGroup/HorizontalFormGroup.js +8 -4
  29. package/dist/src/desktop/components/UserDesktopSideTab/UserDesktopSideTab.d.ts +2 -1
  30. package/dist/src/desktop/components/UserDesktopSideTab/UserDesktopSideTab.js +4 -4
  31. package/dist/src/desktop/components/UserDesktopTabBar/UserDesktopTabBar.d.ts +2 -1
  32. package/dist/src/desktop/components/UserDesktopTabBar/UserDesktopTabBar.js +58 -7
  33. package/dist/src/sub/DynamicLayout/DynamicLayout.js +14 -1
  34. package/dist/src/sub/DynamicLayout/components/SectionMatcher/SectionMatcher.js +1 -5
  35. package/dist/src/sub/DynamicLayout/components/YouTubeIframe/YouTubeIframe.js +2 -1
  36. package/dist/src/sub/DynamicLayout/mock_samplePage.d.ts +1 -0
  37. package/dist/src/sub/DynamicLayout/mock_samplePage.js +996 -1
  38. package/dist/src/sub/DynamicLayout/pagesPreviewMock.js +1 -1
  39. package/dist/src/sub/DynamicLayout/sections/CustomSection/CustomSection.d.ts +0 -1
  40. package/dist/src/sub/DynamicLayout/sections/CustomSection/CustomSection.js +76 -65
  41. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/Text/Text.js +2 -11
  42. package/dist/src/sub/DynamicLayout/sections/CustomSection/newUtils/textUtil.js +2 -5
  43. package/dist/src/sub/DynamicLayout/sections/CustomSection/util/parsePlacement.d.ts +1 -3
  44. package/dist/src/sub/DynamicLayout/sections/CustomSection/util/parsePlacement.js +5 -8
  45. package/package.json +1 -2
  46. package/release-note.md +2 -2
  47. package/dist/src/sub/DynamicLayout/sections/CustomSection/FlexGridCustomSection.d.ts +0 -13
  48. package/dist/src/sub/DynamicLayout/sections/CustomSection/FlexGridCustomSection.js +0 -237
  49. package/dist/src/sub/DynamicLayout/sections/CustomSection/FlexGridItem.d.ts +0 -11
  50. package/dist/src/sub/DynamicLayout/sections/CustomSection/FlexGridItem.js +0 -72
  51. package/dist/src/sub/DynamicLayout/sections/CustomSection/hooks/useIsMounted.d.ts +0 -1
  52. package/dist/src/sub/DynamicLayout/sections/CustomSection/hooks/useIsMounted.js +0 -15
  53. package/dist/src/sub/DynamicLayout/sections/CustomSection/hooks/useResizableObserver.d.ts +0 -12
  54. package/dist/src/sub/DynamicLayout/sections/CustomSection/hooks/useResizableObserver.js +0 -74
  55. package/pipeline_output.log +0 -6466
@@ -52,7 +52,15 @@ function UserDesktopTabBar(_a) {
52
52
  item.onClick(e);
53
53
  }
54
54
  };
55
- return ((0, jsx_runtime_1.jsx)(S_TabBar, __assign({ "x-pds-name": "UserDesktopTabBar", "x-pds-element-type": "component", "x-pds-device-type": "desktop" }, { children: itemArray.map(function (item, index) { return ((0, jsx_runtime_1.jsx)(S_TabWrapper, __assign({ isActive: item.isActive, styleTheme: styleTheme, text: item.title, onClick: function (e) { return handleClickTabItem_1(item, e); } }, { children: (0, jsx_runtime_1.jsx)(TextLabel_1.TextLabel, { text: item.title, textAlign: "center", styleTheme: item.isActive ? 'body2Bold' : 'body2Regular', colorTheme: item.isActive ? 'usrTextBrandPrimary' : 'sysTextSecondary', singleLineMode: "use" }) }), index)); }) })));
55
+ return ((0, jsx_runtime_1.jsx)(S_TabBar, __assign({ "x-pds-name": "UserDesktopTabBar", "x-pds-element-type": "component", "x-pds-device-type": "desktop", styleTheme: styleTheme }, { children: itemArray.map(function (item, index) {
56
+ if (styleTheme === 'content') {
57
+ return ((0, jsx_runtime_1.jsx)(S_TabWrapper, __assign({ isActive: item.isActive, styleTheme: "content", text: item.title, onClick: function (e) { return handleClickTabItem_1(item, e); } }, { children: (0, jsx_runtime_1.jsx)(TextLabel_1.TextLabel, { text: item.title, textAlign: "center", styleTheme: "headingBold", colorTheme: item.isActive ? 'sysTextPrimary' : 'sysTextSecondary', singleLineMode: "use" }) }), index));
58
+ }
59
+ if (styleTheme === 'content2') {
60
+ return ((0, jsx_runtime_1.jsx)(S_TabWrapper, __assign({ isActive: item.isActive, styleTheme: "content2", text: item.title, onClick: function (e) { return handleClickTabItem_1(item, e); } }, { children: (0, jsx_runtime_1.jsx)(TextLabel_1.TextLabel, { text: item.title, textAlign: "center", styleTheme: "leadParaBold", colorTheme: item.isActive ? 'usrTextBrandPrimary' : 'sysTextTertiary', singleLineMode: "use" }) }), index));
61
+ }
62
+ return ((0, jsx_runtime_1.jsx)(S_TabWrapper, __assign({ isActive: item.isActive, styleTheme: styleTheme, text: item.title, onClick: function (e) { return handleClickTabItem_1(item, e); } }, { children: (0, jsx_runtime_1.jsx)(TextLabel_1.TextLabel, { text: item.title, textAlign: "center", styleTheme: item.isActive ? 'body2Bold' : 'body2Regular', colorTheme: item.isActive ? 'usrTextBrandPrimary' : 'sysTextSecondary', singleLineMode: "use" }) }), index));
63
+ }) })));
56
64
  }
57
65
  if (textArray) {
58
66
  var handleClick_1 = function (value) {
@@ -60,7 +68,7 @@ function UserDesktopTabBar(_a) {
60
68
  history.push(value.path);
61
69
  }
62
70
  };
63
- return ((0, jsx_runtime_1.jsx)(S_TabBar, __assign({ "x-pds-name": "UserDesktopTabBar", "x-pds-element-type": "component", "x-pds-device-type": "desktop" }, { children: textArray.map(function (item) { return ((0, jsx_runtime_1.jsx)(S_TabWrapper, __assign({ styleTheme: styleTheme, isActive: pathname === item.path, onClick: function () {
71
+ return ((0, jsx_runtime_1.jsx)(S_TabBar, __assign({ "x-pds-name": "UserDesktopTabBar", "x-pds-element-type": "component", "x-pds-device-type": "desktop", styleTheme: styleTheme }, { children: textArray.map(function (item) { return ((0, jsx_runtime_1.jsx)(S_TabWrapper, __assign({ styleTheme: styleTheme, isActive: pathname === item.path, onClick: function () {
64
72
  handleClick_1(item);
65
73
  } }, { children: (0, jsx_runtime_1.jsx)(TextLabel_1.TextLabel, { text: item.title, styleTheme: pathname === item.path ? 'body2Bold' : 'body2Regular', colorTheme: pathname === item.path ? 'usrTextBrandPrimary' : 'sysTextSecondary', singleLineMode: "use" }) }), item.path)); }) })));
66
74
  }
@@ -75,7 +83,11 @@ var S_TabWrapper = styled_components_1.default.div(templateObject_2 || (template
75
83
  var styleTheme = _a.styleTheme;
76
84
  switch (styleTheme) {
77
85
  case 'main':
78
- return mainStyle; // TODO : 추후 styleTheme 의 enum 값이 추가되면 수정
86
+ return mainStyle;
87
+ case 'content':
88
+ return contentStyle;
89
+ case 'content2':
90
+ return content2Style;
79
91
  default:
80
92
  return mainStyle;
81
93
  }
@@ -99,12 +111,51 @@ var mainStyle = (0, styled_components_1.css)(templateObject_3 || (templateObject
99
111
  var isActive = _a.isActive;
100
112
  return !isActive && "display: none;";
101
113
  });
102
- var S_TabBar = styled_components_1.default.div(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\n background-color: ", ";\n border-bottom: 1px solid ", ";\n box-sizing: border-box;\n display: flex;\n flex-direction: row;\n height: 48px;\n justify-content: center;\n"], ["\n background-color: ", ";\n border-bottom: 1px solid ", ";\n box-sizing: border-box;\n display: flex;\n flex-direction: row;\n height: 48px;\n justify-content: center;\n"])), function (_a) {
114
+ var contentStyle = (0, styled_components_1.css)(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\n align-items: center;\n background-color: ", ";\n cursor: pointer;\n display: flex;\n margin-right: ", ";\n position: relative;\n\n &:last-child {\n margin-right: 0;\n }\n\n &::after {\n background-color: ", ";\n bottom: -1px;\n content: '';\n height: 2px;\n position: absolute;\n width: 100%;\n ", ";\n }\n"], ["\n align-items: center;\n background-color: ", ";\n cursor: pointer;\n display: flex;\n margin-right: ", ";\n position: relative;\n\n &:last-child {\n margin-right: 0;\n }\n\n &::after {\n background-color: ", ";\n bottom: -1px;\n content: '';\n height: 2px;\n position: absolute;\n width: 100%;\n ", ";\n }\n"])), function (_a) {
115
+ var isActive = _a.isActive, theme = _a.theme;
116
+ return isActive && theme.ui_cpnt_tabbar_base_area;
117
+ }, function (_a) {
103
118
  var theme = _a.theme;
104
- return theme.ui_cpnt_tabbar_base_area;
119
+ return theme.spacing.spacingF;
120
+ }, function (_a) {
121
+ var theme = _a.theme;
122
+ return theme.ui_19;
123
+ }, function (_a) {
124
+ var isActive = _a.isActive;
125
+ return !isActive && "display: none;";
126
+ });
127
+ var content2Style = (0, styled_components_1.css)(templateObject_5 || (templateObject_5 = __makeTemplateObject(["\n align-items: center;\n background-color: ", ";\n cursor: pointer;\n display: flex;\n height: 48px;\n margin-right: ", ";\n padding: ", ";\n position: relative;\n\n ", "\n\n &:last-child {\n margin-right: 0;\n }\n"], ["\n align-items: center;\n background-color: ", ";\n cursor: pointer;\n display: flex;\n height: 48px;\n margin-right: ", ";\n padding: ", ";\n position: relative;\n\n ", "\n\n &:last-child {\n margin-right: 0;\n }\n"])), function (_a) {
128
+ var isActive = _a.isActive, theme = _a.theme;
129
+ return isActive ? theme.ui_123 : theme.ui_cpnt_sheet_base_03;
130
+ }, function (_a) {
131
+ var theme = _a.theme;
132
+ return theme.spacing.spacingC;
105
133
  }, function (_a) {
106
134
  var theme = _a.theme;
107
- return theme.ui_cpnt_divider;
135
+ return "0 ".concat(theme.spacing.spacingD);
136
+ }, function (_a) {
137
+ var isActive = _a.isActive;
138
+ return isActive && "border-radius: 24px;";
139
+ });
140
+ var S_TabBar = styled_components_1.default.div(templateObject_6 || (templateObject_6 = __makeTemplateObject(["\n align-items: ", ";\n background-color: ", ";\n border-bottom: ", ";\n box-sizing: border-box;\n display: flex;\n flex-direction: row;\n height: ", ";\n justify-content: center;\n"], ["\n align-items: ", ";\n background-color: ", ";\n border-bottom: ", ";\n box-sizing: border-box;\n display: flex;\n flex-direction: row;\n height: ", ";\n justify-content: center;\n"])), function (_a) {
141
+ var styleTheme = _a.styleTheme;
142
+ return styleTheme === 'content2' && 'center';
143
+ }, function (_a) {
144
+ var theme = _a.theme;
145
+ return theme.ui_cpnt_tabbar_base_area;
146
+ }, function (_a) {
147
+ var styleTheme = _a.styleTheme, theme = _a.theme;
148
+ return styleTheme !== 'content2' && "1px solid ".concat(theme.ui_cpnt_divider);
149
+ }, function (_a) {
150
+ var styleTheme = _a.styleTheme;
151
+ switch (styleTheme) {
152
+ case 'content':
153
+ return '64px';
154
+ case 'content2':
155
+ return '96px';
156
+ default:
157
+ return '48px';
158
+ }
108
159
  });
109
160
  exports.default = UserDesktopTabBar;
110
- var templateObject_1, templateObject_2, templateObject_3, templateObject_4;
161
+ var templateObject_1, templateObject_2, templateObject_3, templateObject_4, templateObject_5, templateObject_6;
@@ -26,7 +26,20 @@ var SectionMatcher_1 = require("./components/SectionMatcher");
26
26
  var dynamicLayoutContext_1 = require("./dynamicLayoutContext");
27
27
  function DynamicLayout(_a) {
28
28
  var device = _a.device, _b = _a.mode, mode = _b === void 0 ? 'NORMAL' : _b, isPreview = _a.isPreview, sections = _a.sections, scrollDownTargetSectionId = _a.scrollDownTargetSectionId, editingSectionId = _a.editingSectionId, navigationHandler = _a.navigationHandler, sectionActionHandler = _a.sectionActionHandler, onClickEditSection = _a.onClickEditSection, programmedSectionComponents = _a.programmedSectionComponents, shortcutKeyMode = _a.shortcutKeyMode, dynamicLayoutRef = _a.dynamicLayoutRef;
29
- var filteredSortedSection = __spreadArray([], sections, true).filter(function (section) { return section.display; })
29
+ var filteredSortedSection = __spreadArray([], sections, true).filter(function (section) {
30
+ var _a;
31
+ if (!section.display) {
32
+ return false;
33
+ }
34
+ if (section.type === 'CUSTOM' && mode !== 'EDIT') {
35
+ var deviceKey = device === 'DESKTOP'
36
+ ? 'CB_CONTENT_PROP_VISIBILITY_SPEC_DESKTOP'
37
+ : 'CB_CONTENT_PROP_VISIBILITY_SPEC_MOBILEWEB';
38
+ var isVisible = (_a = section.jsonProperties) === null || _a === void 0 ? void 0 : _a.data.CB_CONTENT_PROP_VISIBILITY[deviceKey];
39
+ return isVisible;
40
+ }
41
+ return true;
42
+ })
30
43
  .sort(function (a, b) { return a.order - b.order; });
31
44
  var iframeSection = filteredSortedSection.find(function (section) { return section.manifest.schema === 'EXP_IFRAME' && section.display; });
32
45
  return ((0, jsx_runtime_1.jsxs)(dynamicLayoutContext_1.dynamicLayoutContext.Provider, __assign({ value: {
@@ -21,17 +21,13 @@ var __rest = (this && this.__rest) || function (s, e) {
21
21
  }
22
22
  return t;
23
23
  };
24
- var __importDefault = (this && this.__importDefault) || function (mod) {
25
- return (mod && mod.__esModule) ? mod : { "default": mod };
26
- };
27
24
  Object.defineProperty(exports, "__esModule", { value: true });
28
25
  var jsx_runtime_1 = require("react/jsx-runtime");
29
- var FlexGridCustomSection_1 = __importDefault(require("../../../DynamicLayout/sections/CustomSection/FlexGridCustomSection"));
30
26
  var sections_1 = require("../../sections");
31
27
  function SectionMatcher(_a) {
32
28
  var props = __rest(_a, []);
33
29
  if (props.type === 'CUSTOM') {
34
- return (0, jsx_runtime_1.jsx)(FlexGridCustomSection_1.default, __assign({}, props));
30
+ return (0, jsx_runtime_1.jsx)(sections_1.CustomSection, __assign({}, props));
35
31
  }
36
32
  var schema = props.manifest.schema;
37
33
  switch (schema) {
@@ -124,7 +124,8 @@ function YouTubeIframe(_a) {
124
124
  listType: 'playlist',
125
125
  disablekb: 1,
126
126
  playlist: videoId,
127
- start: startSeconds
127
+ start: startSeconds,
128
+ rel: 0
128
129
  };
129
130
  var player = new window.YT.Player(PLAYER_ID, {
130
131
  videoId: videoId,
@@ -1,4 +1,5 @@
1
1
  import type { ISection } from './types';
2
+ export declare const youtubeBgSection: any;
2
3
  export declare const samplePageIntroSection: ISection;
3
4
  export declare const samplePageContentsCarouselSection: ISection;
4
5
  export declare const samplePageIntroSection2: ISection;