pds-dev-kit-web 2.0.9-alpha.0 → 2.0.9-alpha.2

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 (39) hide show
  1. package/dist/index.d.ts +2 -2
  2. package/dist/src/common/styles/colorSet/PaletteColor_Dark.json +4 -1
  3. package/dist/src/common/styles/colorSet/PaletteColor_light.json +4 -1
  4. package/dist/src/common/styles/colorSet/SemanticColor.json +7 -1
  5. package/dist/src/common/styles/colorSet/UIColor.json +6 -1
  6. package/dist/src/common/styles/colorSet/index.d.ts +19 -2
  7. package/dist/src/common/styles/colorSet/index.js +2 -2
  8. package/dist/src/common/styles/colorSet/ui-type.d.ts +5 -0
  9. package/dist/src/sub/DynamicLayout/DynamicLayout.d.ts +1 -1
  10. package/dist/src/sub/DynamicLayout/DynamicLayout.js +2 -3
  11. package/dist/src/sub/DynamicLayout/components/EditModeSectionMatcher/components/GlobalFixedOverlay/GlobalFixedOverlay.js +7 -6
  12. package/dist/src/sub/DynamicLayout/components/EditModeSectionMatcher/components/GlobalFixedOverlay/MembershipSectionGlobalFixedOverlay/MembershipSectionGlobalFixedOverlay.js +1 -1
  13. package/dist/src/sub/DynamicLayout/mock_samplePage.d.ts +1 -2
  14. package/dist/src/sub/DynamicLayout/mock_samplePage.js +112 -100
  15. package/dist/src/sub/DynamicLayout/mock_storybook.d.ts +0 -2
  16. package/dist/src/sub/DynamicLayout/mock_storybook.js +113 -103
  17. package/dist/src/sub/DynamicLayout/sections/MembershipSection/EditType/MembershipSection.js +9 -18
  18. package/dist/src/sub/DynamicLayout/sections/MembershipSection/EditType/templates/TemplateA/TemplateA.d.ts +1 -5
  19. package/dist/src/sub/DynamicLayout/sections/MembershipSection/EditType/templates/TemplateA/TemplateA.js +12 -4
  20. package/dist/src/sub/DynamicLayout/sections/MembershipSection/EditType/templates/TemplateA/desktop/components/MembershipPlanSheet.js +1 -1
  21. package/dist/src/sub/DynamicLayout/sections/MembershipSection/EditType/templates/TemplateB/TemplateB.d.ts +1 -5
  22. package/dist/src/sub/DynamicLayout/sections/MembershipSection/EditType/templates/TemplateB/TemplateB.js +12 -4
  23. package/dist/src/sub/DynamicLayout/sections/MembershipSection/EditType/templates/TemplateB/desktop/components/MembershipPlanSheet.js +1 -1
  24. package/dist/src/sub/DynamicLayout/sections/MembershipSection/NormalType/MembershipSection.js +4 -7
  25. package/dist/src/sub/DynamicLayout/sections/MembershipSection/NormalType/templates/TemplateA/TemplateA.d.ts +1 -4
  26. package/dist/src/sub/DynamicLayout/sections/MembershipSection/NormalType/templates/TemplateA/TemplateA.js +3 -4
  27. package/dist/src/sub/DynamicLayout/sections/MembershipSection/NormalType/templates/TemplateA/desktop/D_TemplateA.d.ts +1 -4
  28. package/dist/src/sub/DynamicLayout/sections/MembershipSection/NormalType/templates/TemplateA/desktop/D_TemplateA.js +11 -3
  29. package/dist/src/sub/DynamicLayout/sections/MembershipSection/NormalType/templates/TemplateA/mobile/M_TemplateA.d.ts +1 -4
  30. package/dist/src/sub/DynamicLayout/sections/MembershipSection/NormalType/templates/TemplateA/mobile/M_TemplateA.js +11 -3
  31. package/dist/src/sub/DynamicLayout/sections/MembershipSection/NormalType/templates/TemplateB/TemplateB.d.ts +1 -4
  32. package/dist/src/sub/DynamicLayout/sections/MembershipSection/NormalType/templates/TemplateB/TemplateB.js +3 -4
  33. package/dist/src/sub/DynamicLayout/sections/MembershipSection/NormalType/templates/TemplateB/desktop/D_TemplateB.d.ts +1 -4
  34. package/dist/src/sub/DynamicLayout/sections/MembershipSection/NormalType/templates/TemplateB/desktop/D_TemplateB.js +11 -3
  35. package/dist/src/sub/DynamicLayout/sections/MembershipSection/NormalType/templates/TemplateB/mobile/M_TemplateB.d.ts +1 -4
  36. package/dist/src/sub/DynamicLayout/sections/MembershipSection/NormalType/templates/TemplateB/mobile/M_TemplateB.js +11 -3
  37. package/dist/src/sub/DynamicLayout/types.d.ts +28 -6
  38. package/package.json +1 -1
  39. package/release-note.md +4 -2
package/dist/index.d.ts CHANGED
@@ -25,6 +25,6 @@ export { M_BasicChatListItem, M_BasicFormGroup, M_BasicList, M_BasicListItem, M_
25
25
  export { M_AnnotationSheet, M_ContentSheet, M_MobileBasicModal, M_SectionSheet };
26
26
  import { DynamicLayout } from './src/sub';
27
27
  export { DynamicLayout };
28
- import type { TypeOfSectionManifestSchema, TypeofSectionTemplate, TypeOfSectionContentMediaType, TypeOfSectionLinkType, TypeOfCarouselAutoplayMode, TypeOfCarouselInfiniteLoopMode, TypeOfBackgroundMediaType, TypeOfSectionButtonDesignType, TypeOfItemButtonDesignType, TypeOfItemManifestSchema, TypeOfItemLinkMethod, TypeOfItemLinkType, ISection, ISectionProperties, ISectionStyles, IItem, TypeOfSectionAction, TypeOfProgrammedItemActionButtonTextType, TypeOfItemToneType, IProgrammedSectionComponents, IProgrammedSectionPreviewData } from './src/sub/DynamicLayout/types';
29
- export { TypeOfSectionManifestSchema, TypeofSectionTemplate, TypeOfSectionContentMediaType, TypeOfSectionLinkType, TypeOfCarouselAutoplayMode, TypeOfCarouselInfiniteLoopMode, TypeOfBackgroundMediaType, TypeOfSectionButtonDesignType, TypeOfItemButtonDesignType, TypeOfItemManifestSchema, TypeOfItemLinkMethod, TypeOfItemLinkType, TypeOfSectionAction, ISection, ISectionProperties, ISectionStyles, IItem, TypeOfProgrammedItemActionButtonTextType, TypeOfItemToneType, IProgrammedSectionComponents, IProgrammedSectionPreviewData };
28
+ import type { TypeOfSectionManifestSchema, TypeofSectionTemplate, TypeOfSectionContentMediaType, TypeOfSectionLinkType, TypeOfCarouselAutoplayMode, TypeOfCarouselInfiniteLoopMode, TypeOfBackgroundMediaType, TypeOfSectionButtonDesignType, TypeOfItemButtonDesignType, TypeOfItemManifestSchema, TypeOfItemLinkMethod, TypeOfItemLinkType, ISection, ISectionProperties, ISectionStyles, IItem, TypeOfSectionAction, TypeOfProgrammedItemActionButtonTextType, TypeOfItemToneType, IProgrammedSectionComponents } from './src/sub/DynamicLayout/types';
29
+ export { TypeOfSectionManifestSchema, TypeofSectionTemplate, TypeOfSectionContentMediaType, TypeOfSectionLinkType, TypeOfCarouselAutoplayMode, TypeOfCarouselInfiniteLoopMode, TypeOfBackgroundMediaType, TypeOfSectionButtonDesignType, TypeOfItemButtonDesignType, TypeOfItemManifestSchema, TypeOfItemLinkMethod, TypeOfItemLinkType, TypeOfSectionAction, ISection, ISectionProperties, ISectionStyles, IItem, TypeOfProgrammedItemActionButtonTextType, TypeOfItemToneType, IProgrammedSectionComponents };
30
30
  export { AdminList, AdminListHeader, AdminListItem, BulkActionBar, ToolBar } from './src/sub';
@@ -292,5 +292,8 @@
292
292
  "sys_component_base_35": "darklightgreen500",
293
293
  "sys_component_base_36": "darkorange500",
294
294
  "sys_component_base_37": "darkpink300",
295
- "sys_component_base_38": "darkorange300"
295
+ "sys_component_base_38": "darkorange300",
296
+ "sys_plan_base_01": "darkpastelblue300/opacity60",
297
+ "sys_plan_base_02": "darksoftpurple500/opacity60",
298
+ "sys_plan_base_03": "darkcoolpink500/opacity60"
296
299
  }
@@ -292,5 +292,8 @@
292
292
  "sys_component_base_35": "lightgreen500",
293
293
  "sys_component_base_36": "orange500",
294
294
  "sys_component_base_37": "pink300",
295
- "sys_component_base_38": "orange300"
295
+ "sys_component_base_38": "orange300",
296
+ "sys_plan_base_01": "pastelblue300/opacity60",
297
+ "sys_plan_base_02": "softpurple500/opacity60",
298
+ "sys_plan_base_03": "coolpink500/opacity60"
296
299
  }
@@ -102,5 +102,11 @@
102
102
  "red30": "#FFE4E4",
103
103
  "orange300": "#FFA638",
104
104
  "darkorange300": "#F5A33E",
105
- "darkpink300": "#FB718E"
105
+ "darkpink300": "#FB718E",
106
+ "pastelblue300": "#8DCFFF",
107
+ "darkpastelblue300": "#81BFED",
108
+ "softpurple500": "#A58CFF",
109
+ "darksoftpurple500": "#9B80FC",
110
+ "coolpink500": "#FF85FC",
111
+ "darkcoolpink500": "#EF7AEC"
106
112
  }
@@ -759,5 +759,10 @@
759
759
  "ui_cpnt_badge_base_new": "sys_component_base_35",
760
760
  "ui_cpnt_badge_base_sale": "sys_component_base_36",
761
761
  "ui_cpnt_badge_base_timesale": "sys_component_base_37",
762
- "ui_cpnt_badge_base_best": "sys_component_base_38"
762
+ "ui_cpnt_badge_base_best": "sys_component_base_38",
763
+ "ui_cpnt_badge_base_recommended": "sys_component_base_green",
764
+ "ui_plan_base_01": "sys_plan_base_01",
765
+ "ui_plan_base_02": "sys_plan_base_02",
766
+ "ui_plan_base_03": "sys_plan_base_03",
767
+ "ui_cpnt_sheet_border_08": "sys_border_line_05"
763
768
  }
@@ -104,8 +104,14 @@ declare const colorSet: {
104
104
  orange300: string;
105
105
  darkorange300: string;
106
106
  darkpink300: string;
107
+ pastelblue300: string;
108
+ darkpastelblue300: string;
109
+ softpurple500: string;
110
+ darksoftpurple500: string;
111
+ coolpink500: string;
112
+ darkcoolpink500: string;
107
113
  };
108
- readonly PaletteColor_Dark: {
114
+ readonly PaletteColor_light: {
109
115
  sys_container_background_01: string;
110
116
  sys_container_background_02: string;
111
117
  sys_container_background_03: string;
@@ -400,8 +406,11 @@ declare const colorSet: {
400
406
  sys_component_base_36: string;
401
407
  sys_component_base_37: string;
402
408
  sys_component_base_38: string;
409
+ sys_plan_base_01: string;
410
+ sys_plan_base_02: string;
411
+ sys_plan_base_03: string;
403
412
  };
404
- readonly PaletteColor_light: {
413
+ readonly PaletteColor_Dark: {
405
414
  sys_container_background_01: string;
406
415
  sys_container_background_02: string;
407
416
  sys_container_background_03: string;
@@ -696,6 +705,9 @@ declare const colorSet: {
696
705
  sys_component_base_36: string;
697
706
  sys_component_base_37: string;
698
707
  sys_component_base_38: string;
708
+ sys_plan_base_01: string;
709
+ sys_plan_base_02: string;
710
+ sys_plan_base_03: string;
699
711
  };
700
712
  readonly UIColor: {
701
713
  ui_cpnt_button_fill_base_primary: string;
@@ -1459,6 +1471,11 @@ declare const colorSet: {
1459
1471
  ui_cpnt_badge_base_sale: string;
1460
1472
  ui_cpnt_badge_base_timesale: string;
1461
1473
  ui_cpnt_badge_base_best: string;
1474
+ ui_cpnt_badge_base_recommended: string;
1475
+ ui_plan_base_01: string;
1476
+ ui_plan_base_02: string;
1477
+ ui_plan_base_03: string;
1478
+ ui_cpnt_sheet_border_08: string;
1462
1479
  };
1463
1480
  };
1464
1481
  export default colorSet;
@@ -5,13 +5,13 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
6
  /* eslint-disable import/order */
7
7
  var SemanticColor_json_1 = __importDefault(require("./SemanticColor.json"));
8
- var PaletteColor_Dark_json_1 = __importDefault(require("./PaletteColor_Dark.json"));
9
8
  var PaletteColor_light_json_1 = __importDefault(require("./PaletteColor_light.json"));
9
+ var PaletteColor_Dark_json_1 = __importDefault(require("./PaletteColor_Dark.json"));
10
10
  var UIColor_json_1 = __importDefault(require("./UIColor.json"));
11
11
  var colorSet = {
12
12
  SemanticColor: SemanticColor_json_1.default,
13
- PaletteColor_Dark: PaletteColor_Dark_json_1.default,
14
13
  PaletteColor_light: PaletteColor_light_json_1.default,
14
+ PaletteColor_Dark: PaletteColor_Dark_json_1.default,
15
15
  UIColor: UIColor_json_1.default
16
16
  };
17
17
  exports.default = colorSet;
@@ -760,4 +760,9 @@ export interface UITheme {
760
760
  ui_cpnt_badge_base_sale: string;
761
761
  ui_cpnt_badge_base_timesale: string;
762
762
  ui_cpnt_badge_base_best: string;
763
+ ui_cpnt_badge_base_recommended: string;
764
+ ui_plan_base_01: string;
765
+ ui_plan_base_02: string;
766
+ ui_plan_base_03: string;
767
+ ui_cpnt_sheet_border_08: string;
763
768
  }
@@ -1,4 +1,4 @@
1
1
  /// <reference types="react" />
2
2
  import type { DynamicLayoutProps } from './types';
3
- declare function DynamicLayout({ device, mode, isPreview, sections, scrollDownTargetSectionId, editingSectionId, navigationHandler, sectionActionHandler, onClickEditSection, programmedSectionComponents, programmedSectionPreviewData }: DynamicLayoutProps): JSX.Element;
3
+ declare function DynamicLayout({ device, mode, isPreview, sections, scrollDownTargetSectionId, editingSectionId, navigationHandler, sectionActionHandler, onClickEditSection, programmedSectionComponents }: DynamicLayoutProps): JSX.Element;
4
4
  export default DynamicLayout;
@@ -25,7 +25,7 @@ var EditModeSectionMatcher_1 = require("./components/EditModeSectionMatcher");
25
25
  var SectionMatcher_1 = require("./components/SectionMatcher");
26
26
  var dynamicLayoutContext_1 = require("./dynamicLayoutContext");
27
27
  function DynamicLayout(_a) {
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, programmedSectionPreviewData = _a.programmedSectionPreviewData;
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;
29
29
  var filteredSortedSection = __spreadArray([], sections, true).filter(function (section) { return section.display; })
30
30
  .sort(function (a, b) { return a.order - b.order; });
31
31
  var iframeSection = filteredSortedSection.find(function (section) { return section.manifest.schema === 'EXP_IFRAME' && section.display; });
@@ -35,8 +35,7 @@ function DynamicLayout(_a) {
35
35
  isPreview: isPreview,
36
36
  navigationHandler: navigationHandler,
37
37
  sectionActionHandler: sectionActionHandler,
38
- programmedSectionComponents: programmedSectionComponents,
39
- programmedSectionPreviewData: programmedSectionPreviewData
38
+ programmedSectionComponents: programmedSectionComponents
40
39
  } }, { children: [mode === 'EDIT' && onClickEditSection && ((0, jsx_runtime_1.jsx)(EditModeSectionMatcher_1.EditModeSectionMatcher, { editingSectionId: editingSectionId, scrollDownTargetSectionId: scrollDownTargetSectionId, filteredSortedSection: filteredSortedSection, onClickEditSection: onClickEditSection }, void 0)), mode !== 'EDIT' &&
41
40
  (iframeSection ? ((0, jsx_runtime_1.jsx)(SectionMatcher_1.SectionMatcher, __assign({}, iframeSection), iframeSection.id)) : (filteredSortedSection.map(function (section) { return (0, jsx_runtime_1.jsx)(SectionMatcher_1.SectionMatcher, __assign({}, section), section.id); })))] }), void 0));
42
41
  }
@@ -9,15 +9,18 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
9
9
  Object.defineProperty(exports, "__esModule", { value: true });
10
10
  var jsx_runtime_1 = require("react/jsx-runtime");
11
11
  var react_1 = require("react");
12
+ var Section_1 = require("../../../../../DynamicLayout/components/Section");
12
13
  var dynamicLayoutContext_1 = require("../../../../../DynamicLayout/dynamicLayoutContext");
13
14
  var styled_components_1 = __importDefault(require("styled-components"));
14
15
  var MembershipSectionGlobalFixedOverlay_1 = require("./MembershipSectionGlobalFixedOverlay");
15
16
  function GlobalFixedOverlay(_a) {
16
17
  var filteredSortedSection = _a.filteredSortedSection;
17
- var _b = (0, react_1.useContext)(dynamicLayoutContext_1.dynamicLayoutContext), device = _b.device, programmedSectionPreviewData = _b.programmedSectionPreviewData;
18
- if (!programmedSectionPreviewData) {
18
+ var device = (0, react_1.useContext)(dynamicLayoutContext_1.dynamicLayoutContext).device;
19
+ var section = (0, react_1.useContext)(Section_1.sectionContext);
20
+ if (!section || !section.programData) {
19
21
  return (0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, {}, void 0);
20
22
  }
23
+ var programmedSectionPreviewData = section.programData.preview.resource.real.membershipDisplay;
21
24
  var showMembershipFixedOverlay = getShowMembershipFixedOverlay({
22
25
  filteredSortedSection: filteredSortedSection,
23
26
  programmedSectionPreviewData: programmedSectionPreviewData,
@@ -29,12 +32,10 @@ var S_GlobalFixedOverlay = styled_components_1.default.div(templateObject_1 || (
29
32
  function getShowMembershipFixedOverlay(_a) {
30
33
  var filteredSortedSection = _a.filteredSortedSection, programmedSectionPreviewData = _a.programmedSectionPreviewData, device = _a.device;
31
34
  var membershipSection = filteredSortedSection.find(function (section) { return section.manifest.schema === 'PRG_MEMBERSHIP_DISPLAY'; });
32
- if (!programmedSectionPreviewData.MEMBERSHIP_DISPLAY ||
33
- !membershipSection ||
34
- device !== 'MOBILE') {
35
+ if (!programmedSectionPreviewData || !membershipSection || device !== 'MOBILE') {
35
36
  return null;
36
37
  }
37
- var connectedMemberships = programmedSectionPreviewData.MEMBERSHIP_DISPLAY.connectedMemberships;
38
+ var connectedMemberships = programmedSectionPreviewData.connectedMemberships;
38
39
  var styles = membershipSection.styles;
39
40
  var orderedConnectedMemberships = connectedMemberships.sort(function (a, b) { return a.order - b.order; });
40
41
  var showMembershipFixedOverlay = {
@@ -57,7 +57,7 @@ function MembershipSectionGlobalFixedOverlay(_a) {
57
57
  }
58
58
  return connectedSubscriptionProducts.length > 0
59
59
  ? t('str_5339', {
60
- price: connectedSubscriptionProducts[0].subscriptionProduct.fee
60
+ price: connectedSubscriptionProducts[0].subscriptionProduct.fee.amount
61
61
  })
62
62
  : t('str_5300');
63
63
  }, [isBottomSheetOpen, programmedItemActionButtonTextType, connectedSubscriptionProducts]);
@@ -1,4 +1,4 @@
1
- import type { IMembershipDisplay, ISection } from './types';
1
+ import type { ISection } from './types';
2
2
  export declare const samplePageIntroSection: ISection;
3
3
  export declare const samplePageContentsCarouselSection: ISection;
4
4
  export declare const samplePageIntroSection2: ISection;
@@ -8,5 +8,4 @@ export declare const samplePageIntroSection3: ISection;
8
8
  export declare const samplePageFooterSection: ISection;
9
9
  export declare const samplePageFullscreenIframeSection: ISection;
10
10
  export declare const samplePageMembershipSection: ISection;
11
- export declare const samplePageMemberships: IMembershipDisplay;
12
11
  export declare const samplePage: ISection[];
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.samplePage = exports.samplePageMemberships = exports.samplePageMembershipSection = exports.samplePageFullscreenIframeSection = exports.samplePageFooterSection = exports.samplePageIntroSection3 = exports.samplePageInfoBoxSection = exports.samplePageContentsSection = exports.samplePageIntroSection2 = exports.samplePageContentsCarouselSection = exports.samplePageIntroSection = void 0;
3
+ exports.samplePage = exports.samplePageMembershipSection = exports.samplePageFullscreenIframeSection = exports.samplePageFooterSection = exports.samplePageIntroSection3 = exports.samplePageInfoBoxSection = exports.samplePageContentsSection = exports.samplePageIntroSection2 = exports.samplePageContentsCarouselSection = exports.samplePageIntroSection = void 0;
4
4
  exports.samplePageIntroSection = {
5
5
  type: 'DESIGNED',
6
6
  display: true,
@@ -1026,21 +1026,18 @@ exports.samplePageFullscreenIframeSection = {
1026
1026
  updatedAt: '2023-01-06T09:05:45'
1027
1027
  };
1028
1028
  exports.samplePageMembershipSection = {
1029
+ display: true,
1029
1030
  type: 'PROGRAMMED',
1030
1031
  program: 'MEMBERSHIP_DISPLAY',
1031
- display: true,
1032
- dynamicLayoutSectionItems: null,
1033
- id: 15,
1034
- insertedAt: '2023-01-06T09:05:45',
1032
+ dynamicLayoutSectionItems: [],
1033
+ id: 116642,
1035
1034
  manifest: {
1036
1035
  availableProperties: [
1037
1036
  'title',
1038
1037
  'description',
1039
1038
  'button_alpha_label',
1040
1039
  'button_alpha_link_type',
1041
- 'button_alpha_link_src',
1042
- 'section_content_media_type',
1043
- 'section_content_media_src'
1040
+ 'button_alpha_link_src'
1044
1041
  ],
1045
1042
  availableStyles: [
1046
1043
  'title_color_in_hex',
@@ -1080,125 +1077,140 @@ exports.samplePageMembershipSection = {
1080
1077
  carouselAutoplayTime: 3,
1081
1078
  carouselInfiniteLoopMode: 'NO_USE',
1082
1079
  description: "Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged.",
1083
- itemLinkMethod: 'CLICK_BUTTON_IN_ITEM',
1084
1080
  sectionContentMediaSrc: '',
1085
1081
  sectionContentMediaType: 'IMAGE',
1086
1082
  title: 'Lorem Ipsum',
1087
- multiPurposeUrl: 'https://app.publr.co/'
1083
+ multiPurposeUrl: 'https://app.publr.co/',
1084
+ itemLinkMethod: 'NONE'
1088
1085
  },
1089
1086
  styles: {
1090
- backgroundColorInHex: '#FF1D973B',
1087
+ backgroundColorInHex: '#4A5D78AB',
1091
1088
  backgroundMediaSrc: '',
1092
1089
  backgroundMediaType: 'IMAGE',
1093
1090
  backgroundOverlayColorInHex: '#FFFFFF00',
1094
- buttonAlphaBackgroundColorInHex: '#FFC0CBFF',
1091
+ buttonAlphaBackgroundColorInHex: '#313131FF',
1095
1092
  buttonAlphaDesignType: 'C',
1096
1093
  buttonAlphaLabelColorInHex: '#f5efd9FF',
1097
- buttonBravoBackgroundColorInHex: '#FFC0CBFF',
1094
+ buttonBravoBackgroundColorInHex: '#313131FF',
1098
1095
  buttonBravoDesignType: 'E',
1099
1096
  buttonBravoLabelColorInHex: '#FFFFFFFF',
1100
1097
  buttonCharlieBackgroundColorInHex: '#465FF000',
1101
1098
  buttonCharlieDesignType: 'E',
1102
1099
  buttonCharlieLabelColorInHex: '#FFFFFFFF',
1103
- buttonDeltaBackgroundColorInHex: '#FFC0CBFF',
1100
+ buttonDeltaBackgroundColorInHex: '#313131FF',
1104
1101
  buttonDeltaDesignType: 'A',
1105
1102
  buttonDeltaLabelColorInHex: '#FFFFFFFF',
1106
- buttonEchoBackgroundColorInHex: '#FFC0CBFF',
1103
+ buttonEchoBackgroundColorInHex: '#313131FF',
1107
1104
  buttonEchoDesignType: 'A',
1108
1105
  buttonEchoLabelColorInHex: '#FFFFFFFF',
1109
- descriptionColorInHex: '#FEECD8FF',
1110
- itemButtonBackgroundColorInHex: '#FFC0CBFF',
1106
+ descriptionColorInHex: '#DEECFFA6',
1107
+ itemButtonBackgroundColorInHex: '#313131FF',
1111
1108
  itemButtonDesignType: 'A',
1112
1109
  itemButtonLabelColorInHex: '#FFFFFFFF',
1113
1110
  itemDescriptionColorInHex: '#68686BFF',
1114
1111
  itemTitleColorInHex: '#1E1E20FF',
1115
- itemHighlightingColorInHex: '#FF1D97FF',
1112
+ titleColorInHex: '#DEECFFFF',
1113
+ itemHighlightingColorInHex: '#313131FF',
1116
1114
  itemToneType: 'LIGHT',
1117
- titleColorInHex: '#F8FFACFF',
1118
1115
  programmedItemActionButtonTextType: 'A'
1119
1116
  },
1120
- template: 'PRG_MEMBERSHIP_DISPLAY_B',
1121
- updatedAt: '2023-01-06T09:05:45'
1122
- };
1123
- exports.samplePageMemberships = {
1124
- id: 1,
1125
- mdid: "MEMBERSHIP_DISPLAY_MD_ID",
1126
- title: "MEMBERSHIP_DISPLAY_MD_TITLE",
1127
- isDefault: true,
1128
- connectedMemberships: Array.from({ length: 6 }, function (_, i) {
1129
- var alphabet = ['A', 'B', 'C', 'D', 'E', 'F'];
1130
- var cardImage = [
1131
- 'https://cdn.dev.publishingkit.net/7f3f7a31-023b-4852-9a11-cbac31d25d93',
1132
- 'https://cdn.dev.publishingkit.net/c8973261-6c2a-4833-9b9f-20ee355647e4',
1133
- 'https://cdn.dev.publishingkit.net/8e585c93-9591-4300-ad93-d002560cbeae',
1134
- 'https://cdn.dev.publishingkit.net/4aaa2811-b3ff-435c-b50a-9486376ab230',
1135
- 'https://cdn.dev.publishingkit.net/5111c33c-07ba-4b91-8eb6-9975f4cd906a',
1136
- 'https://cdn.dev.publishingkit.net/16ac0a8a-acb1-465b-960c-6be66f2a04e8.jpg'
1137
- ];
1138
- var getOverlayType = function () {
1139
- if (i % 3 === 1)
1140
- return 'SOLID';
1141
- if (i % 3 === 2)
1142
- return 'GRADIENT';
1143
- return 'NONE';
1144
- };
1145
- var getDesignSchema = function () {
1146
- if (i % 3 === 1)
1147
- return 'B';
1148
- if (i % 3 === 2)
1149
- return 'C';
1150
- return 'A';
1151
- };
1152
- return {
1153
- id: i + 1,
1154
- order: i,
1155
- mdid: "CONNECTED_MEMBERSHIPS_" + alphabet[i] + "_MD_ID",
1156
- mid: "CONNECTED_MEMBERSHIPS_" + alphabet[i] + "_M_ID",
1157
- membership: {
1158
- id: i + 1,
1159
- type: 'GENERAL',
1160
- mid: "MEMBERSHIP_" + alphabet[i] + "_MID",
1161
- title: '청춘이 황금시대를 우리의 같은 무엇을 쓸쓸한 돋고, 장식하는 칼이다. 동산에는 투명하되!',
1162
- insertedAt: '2023-01-06T09:05:45',
1163
- updatedAt: '2023-01-06T09:05:45',
1164
- membershipCardTemplate: {
1165
- backgroundImageSrc: cardImage[i],
1166
- logoImageSrc: 'https://publ-upload-local.s3.ap-northeast-2.amazonaws.com/e11d1a92-a1c0-4faa-b341-13a32f21828d_image',
1167
- overlayType: getOverlayType(),
1168
- overlayColorPrimary: '#FFC0CB',
1169
- overlayColorSecondary: '#313131',
1170
- designSchema: getDesignSchema()
1171
- },
1172
- membershipBenefitInfo: {
1173
- benefitAlpha: '청춘이 황금시대를 우리의 같은 무엇을 쓸쓸한 돋고, 장식하는 칼이다. 동산에는 투명하되!',
1174
- benefitBravo: 'Lorem ipsum dolor sit amet. Et magnam molestiae.',
1175
- benefitCharlie: '청춘이 황금시대를 우리의 같은 무엇을 쓸쓸한 돋고, 장식하는 칼이다. 동산에는 투명하되!',
1176
- benefitDelta: 'Lorem ipsum dolor sit amet. Et magnam molestiae.',
1177
- benefitEcho: 'Lorem ipsum dolor sit amet. Et magnam molestiae.'
1178
- },
1179
- totalSubscriptionProducts: 3
1180
- },
1181
- connectedSubscriptionProducts: Array.from({ length: 5 }, function (_, i) {
1182
- return {
1183
- id: i + 1,
1184
- order: i,
1185
- connectedMembershipId: i + 1,
1186
- subscriptionProductId: i + 1,
1187
- subscriptionProduct: {
1188
- id: i + 1,
1189
- type: 'COUPON_ONCE_FINITE',
1190
- title: '청춘이 황금시대를 우리의 같은 무엇을',
1191
- alias: "CONNECTED_SUBSCRIPTION_PRODUCTS_" + alphabet[i] + "_ALIAS",
1192
- expiryPeriodInDays: 7,
1193
- isDeactivated: i % 2 === 0,
1194
- fee: 5000,
1195
- insertedAt: '2023-01-06T09:05:45',
1196
- updatedAt: '2023-01-06T09:05:45'
1117
+ template: 'PRG_MEMBERSHIP_DISPLAY_A',
1118
+ programData: {
1119
+ mdid: 'mdid',
1120
+ preview: {
1121
+ availableResources: ['REAL.MEMBERSHIP_DISPLAY'],
1122
+ resource: {
1123
+ mock: {},
1124
+ real: {
1125
+ membershipDisplay: {
1126
+ id: 1,
1127
+ mdid: "MEMBERSHIP_DISPLAY_MD_ID",
1128
+ title: "MEMBERSHIP_DISPLAY_MD_TITLE",
1129
+ isDefault: true,
1130
+ connectedMemberships: Array.from({ length: 6 }, function (_, i) {
1131
+ var alphabet = ['A', 'B', 'C', 'D', 'E', 'F'];
1132
+ var cardImage = [
1133
+ 'https://cdn.dev.publishingkit.net/7f3f7a31-023b-4852-9a11-cbac31d25d93',
1134
+ 'https://cdn.dev.publishingkit.net/c8973261-6c2a-4833-9b9f-20ee355647e4',
1135
+ 'https://cdn.dev.publishingkit.net/8e585c93-9591-4300-ad93-d002560cbeae',
1136
+ 'https://cdn.dev.publishingkit.net/4aaa2811-b3ff-435c-b50a-9486376ab230',
1137
+ 'https://cdn.dev.publishingkit.net/5111c33c-07ba-4b91-8eb6-9975f4cd906a',
1138
+ 'https://cdn.dev.publishingkit.net/16ac0a8a-acb1-465b-960c-6be66f2a04e8.jpg'
1139
+ ];
1140
+ var getOverlayType = function () {
1141
+ if (i % 3 === 1)
1142
+ return 'SOLID';
1143
+ if (i % 3 === 2)
1144
+ return 'GRADIENT';
1145
+ return 'NONE';
1146
+ };
1147
+ var getDesignSchema = function () {
1148
+ if (i % 3 === 1)
1149
+ return 'B';
1150
+ if (i % 3 === 2)
1151
+ return 'C';
1152
+ return 'A';
1153
+ };
1154
+ return {
1155
+ id: i + 1,
1156
+ order: i,
1157
+ mdid: "CONNECTED_MEMBERSHIPS_" + alphabet[i] + "_MD_ID",
1158
+ mid: "CONNECTED_MEMBERSHIPS_" + alphabet[i] + "_M_ID",
1159
+ membership: {
1160
+ id: i + 1,
1161
+ type: 'GENERAL',
1162
+ mid: "MEMBERSHIP_" + alphabet[i] + "_MID",
1163
+ title: '청춘이 황금시대를 우리의 같은 무엇을 쓸쓸한 돋고, 장식하는 칼이다. 동산에는 투명하되!',
1164
+ insertedAt: '2023-01-06T09:05:45',
1165
+ updatedAt: '2023-01-06T09:05:45',
1166
+ membershipCardTemplate: {
1167
+ backgroundImageSrc: cardImage[i],
1168
+ logoImageSrc: 'https://publ-upload-local.s3.ap-northeast-2.amazonaws.com/e11d1a92-a1c0-4faa-b341-13a32f21828d_image',
1169
+ overlayType: getOverlayType(),
1170
+ overlayColorPrimary: '#FFC0CB',
1171
+ overlayColorSecondary: '#313131',
1172
+ designSchema: getDesignSchema()
1173
+ },
1174
+ membershipBenefitInfo: {
1175
+ benefitAlpha: '청춘이 황금시대를 우리의 같은 무엇을 쓸쓸한 돋고, 장식하는 칼이다. 동산에는 투명하되!',
1176
+ benefitBravo: 'Lorem ipsum dolor sit amet. Et magnam molestiae.',
1177
+ benefitCharlie: '청춘이 황금시대를 우리의 같은 무엇을 쓸쓸한 돋고, 장식하는 칼이다. 동산에는 투명하되!',
1178
+ benefitDelta: 'Lorem ipsum dolor sit amet. Et magnam molestiae.',
1179
+ benefitEcho: 'Lorem ipsum dolor sit amet. Et magnam molestiae.'
1180
+ },
1181
+ totalSubscriptionProducts: 3
1182
+ },
1183
+ connectedSubscriptionProducts: Array.from({ length: 5 }, function (_, i) {
1184
+ return {
1185
+ id: i + 1,
1186
+ order: i,
1187
+ connectedMembershipId: i + 1,
1188
+ subscriptionProductId: i + 1,
1189
+ subscriptionProduct: {
1190
+ id: i + 1,
1191
+ type: 'COUPON_ONCE_FINITE',
1192
+ title: '청춘이 황금시대를 우리의 같은 무엇을',
1193
+ alias: "CONNECTED_SUBSCRIPTION_PRODUCTS_" + alphabet[i] + "_ALIAS",
1194
+ expiryPeriodInDays: 7,
1195
+ isDeactivated: i % 2 === 0,
1196
+ fee: {
1197
+ currency: 'KRW',
1198
+ amount: '10,000'
1199
+ },
1200
+ insertedAt: '2023-01-06T09:05:45',
1201
+ updatedAt: '2023-01-06T09:05:45'
1202
+ }
1203
+ };
1204
+ })
1205
+ };
1206
+ })
1197
1207
  }
1198
- };
1199
- })
1200
- };
1201
- })
1208
+ }
1209
+ }
1210
+ }
1211
+ },
1212
+ insertedAt: '2023-01-30T10:24:35',
1213
+ updatedAt: '2023-01-30T10:24:35'
1202
1214
  };
1203
1215
  exports.samplePage = [
1204
1216
  exports.samplePageIntroSection,
@@ -1,6 +1,4 @@
1
1
  /// <reference types="react" />
2
2
  import type DynamicLayout from './DynamicLayout';
3
- import type { IProgrammedSectionPreviewData } from './types';
4
3
  export declare const SampleSectionsMock: React.ComponentProps<typeof DynamicLayout>['sections'];
5
4
  export declare const MembershipSectionsMock: React.ComponentProps<typeof DynamicLayout>['sections'];
6
- export declare const MembershipPreviewDataMock: IProgrammedSectionPreviewData;