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.
- package/dist/index.d.ts +2 -2
- package/dist/src/common/styles/colorSet/PaletteColor_Dark.json +4 -1
- package/dist/src/common/styles/colorSet/PaletteColor_light.json +4 -1
- package/dist/src/common/styles/colorSet/SemanticColor.json +7 -1
- package/dist/src/common/styles/colorSet/UIColor.json +6 -1
- package/dist/src/common/styles/colorSet/index.d.ts +19 -2
- package/dist/src/common/styles/colorSet/index.js +2 -2
- package/dist/src/common/styles/colorSet/ui-type.d.ts +5 -0
- package/dist/src/sub/DynamicLayout/DynamicLayout.d.ts +1 -1
- package/dist/src/sub/DynamicLayout/DynamicLayout.js +2 -3
- package/dist/src/sub/DynamicLayout/components/EditModeSectionMatcher/components/GlobalFixedOverlay/GlobalFixedOverlay.js +7 -6
- package/dist/src/sub/DynamicLayout/components/EditModeSectionMatcher/components/GlobalFixedOverlay/MembershipSectionGlobalFixedOverlay/MembershipSectionGlobalFixedOverlay.js +1 -1
- package/dist/src/sub/DynamicLayout/mock_samplePage.d.ts +1 -2
- package/dist/src/sub/DynamicLayout/mock_samplePage.js +112 -100
- package/dist/src/sub/DynamicLayout/mock_storybook.d.ts +0 -2
- package/dist/src/sub/DynamicLayout/mock_storybook.js +113 -103
- package/dist/src/sub/DynamicLayout/sections/MembershipSection/EditType/MembershipSection.js +9 -18
- package/dist/src/sub/DynamicLayout/sections/MembershipSection/EditType/templates/TemplateA/TemplateA.d.ts +1 -5
- package/dist/src/sub/DynamicLayout/sections/MembershipSection/EditType/templates/TemplateA/TemplateA.js +12 -4
- package/dist/src/sub/DynamicLayout/sections/MembershipSection/EditType/templates/TemplateA/desktop/components/MembershipPlanSheet.js +1 -1
- package/dist/src/sub/DynamicLayout/sections/MembershipSection/EditType/templates/TemplateB/TemplateB.d.ts +1 -5
- package/dist/src/sub/DynamicLayout/sections/MembershipSection/EditType/templates/TemplateB/TemplateB.js +12 -4
- package/dist/src/sub/DynamicLayout/sections/MembershipSection/EditType/templates/TemplateB/desktop/components/MembershipPlanSheet.js +1 -1
- package/dist/src/sub/DynamicLayout/sections/MembershipSection/NormalType/MembershipSection.js +4 -7
- package/dist/src/sub/DynamicLayout/sections/MembershipSection/NormalType/templates/TemplateA/TemplateA.d.ts +1 -4
- package/dist/src/sub/DynamicLayout/sections/MembershipSection/NormalType/templates/TemplateA/TemplateA.js +3 -4
- package/dist/src/sub/DynamicLayout/sections/MembershipSection/NormalType/templates/TemplateA/desktop/D_TemplateA.d.ts +1 -4
- package/dist/src/sub/DynamicLayout/sections/MembershipSection/NormalType/templates/TemplateA/desktop/D_TemplateA.js +11 -3
- package/dist/src/sub/DynamicLayout/sections/MembershipSection/NormalType/templates/TemplateA/mobile/M_TemplateA.d.ts +1 -4
- package/dist/src/sub/DynamicLayout/sections/MembershipSection/NormalType/templates/TemplateA/mobile/M_TemplateA.js +11 -3
- package/dist/src/sub/DynamicLayout/sections/MembershipSection/NormalType/templates/TemplateB/TemplateB.d.ts +1 -4
- package/dist/src/sub/DynamicLayout/sections/MembershipSection/NormalType/templates/TemplateB/TemplateB.js +3 -4
- package/dist/src/sub/DynamicLayout/sections/MembershipSection/NormalType/templates/TemplateB/desktop/D_TemplateB.d.ts +1 -4
- package/dist/src/sub/DynamicLayout/sections/MembershipSection/NormalType/templates/TemplateB/desktop/D_TemplateB.js +11 -3
- package/dist/src/sub/DynamicLayout/sections/MembershipSection/NormalType/templates/TemplateB/mobile/M_TemplateB.d.ts +1 -4
- package/dist/src/sub/DynamicLayout/sections/MembershipSection/NormalType/templates/TemplateB/mobile/M_TemplateB.js +11 -3
- package/dist/src/sub/DynamicLayout/types.d.ts +28 -6
- package/package.json +1 -1
- package/release-note.md +4 -2
|
@@ -8,15 +8,23 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
8
8
|
};
|
|
9
9
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
10
|
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
11
|
+
var react_1 = require("react");
|
|
12
|
+
var dynamicLayoutContext_1 = require("../../../../../../../DynamicLayout/dynamicLayoutContext");
|
|
11
13
|
var styled_components_1 = __importDefault(require("styled-components"));
|
|
12
14
|
var SectionContents_1 = __importDefault(require("./components/SectionContents"));
|
|
13
|
-
function TemplateB(
|
|
14
|
-
|
|
15
|
-
return ((0, jsx_runtime_1.jsxs)(S_MembershipSection, { children: [(0, jsx_runtime_1.jsx)(SectionContents_1.default, {}, void 0), programmedSectionComponents && programmedSectionComponents] }, void 0));
|
|
15
|
+
function TemplateB() {
|
|
16
|
+
return ((0, jsx_runtime_1.jsxs)(S_MembershipSection, { children: [(0, jsx_runtime_1.jsx)(SectionContents_1.default, {}, void 0), (0, jsx_runtime_1.jsx)(MembershipSection, {}, void 0)] }, void 0));
|
|
16
17
|
}
|
|
17
18
|
var S_MembershipSection = styled_components_1.default.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n --max-viewport-width: 1920;\n --max-viewport-width-px: 1920px;\n --max-width: 1500;\n --max-width-px: 1500px;\n --min-viewport-width: 1200;\n --min-viewport-width-px: 1200px;\n --min-width: 1000;\n --min-width-px: 1000px;\n margin: ", " auto;\n max-width: var(--max-width-px);\n min-width: var(--min-width-px);\n width: calc(\n (100% - var(--min-viewport-width-px)) * (var(--max-width) - var(--min-width)) /\n (var(--max-viewport-width) - var(--min-viewport-width)) + var(--min-width-px)\n );\n"], ["\n --max-viewport-width: 1920;\n --max-viewport-width-px: 1920px;\n --max-width: 1500;\n --max-width-px: 1500px;\n --min-viewport-width: 1200;\n --min-viewport-width-px: 1200px;\n --min-width: 1000;\n --min-width-px: 1000px;\n margin: ", " auto;\n max-width: var(--max-width-px);\n min-width: var(--min-width-px);\n width: calc(\n (100% - var(--min-viewport-width-px)) * (var(--max-width) - var(--min-width)) /\n (var(--max-viewport-width) - var(--min-viewport-width)) + var(--min-width-px)\n );\n"])), function (_a) {
|
|
18
19
|
var theme = _a.theme;
|
|
19
20
|
return theme.spacing.spacingH;
|
|
20
21
|
});
|
|
22
|
+
function MembershipSection() {
|
|
23
|
+
var programmedSectionComponents = (0, react_1.useContext)(dynamicLayoutContext_1.dynamicLayoutContext).programmedSectionComponents;
|
|
24
|
+
if (!programmedSectionComponents) {
|
|
25
|
+
return (0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, {}, void 0);
|
|
26
|
+
}
|
|
27
|
+
return programmedSectionComponents.PRG_MEMBERSHIP_DISPLAY ? (programmedSectionComponents.PRG_MEMBERSHIP_DISPLAY) : ((0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, {}, void 0));
|
|
28
|
+
}
|
|
21
29
|
exports.default = TemplateB;
|
|
22
30
|
var templateObject_1;
|
|
@@ -4,9 +4,17 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
7
|
+
var react_1 = require("react");
|
|
8
|
+
var dynamicLayoutContext_1 = require("../../../../../../../DynamicLayout/dynamicLayoutContext");
|
|
7
9
|
var SectionContents_1 = __importDefault(require("./components/SectionContents"));
|
|
8
|
-
function TemplateB(
|
|
9
|
-
|
|
10
|
-
|
|
10
|
+
function TemplateB() {
|
|
11
|
+
return ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(SectionContents_1.default, {}, void 0), (0, jsx_runtime_1.jsx)(MembershipSection, {}, void 0)] }, void 0));
|
|
12
|
+
}
|
|
13
|
+
function MembershipSection() {
|
|
14
|
+
var programmedSectionComponents = (0, react_1.useContext)(dynamicLayoutContext_1.dynamicLayoutContext).programmedSectionComponents;
|
|
15
|
+
if (!programmedSectionComponents) {
|
|
16
|
+
return (0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, {}, void 0);
|
|
17
|
+
}
|
|
18
|
+
return programmedSectionComponents.PRG_MEMBERSHIP_DISPLAY ? (programmedSectionComponents.PRG_MEMBERSHIP_DISPLAY) : ((0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, {}, void 0));
|
|
11
19
|
}
|
|
12
20
|
exports.default = TemplateB;
|
|
@@ -35,12 +35,35 @@ export interface ISection {
|
|
|
35
35
|
dynamicLayoutSectionItems: Array<IItem> | null;
|
|
36
36
|
insertedAt: string;
|
|
37
37
|
updatedAt: string;
|
|
38
|
-
type
|
|
38
|
+
type?: TypeOfSectionType;
|
|
39
39
|
program?: 'MEMBERSHIP_DISPLAY';
|
|
40
40
|
programData?: {
|
|
41
41
|
mdid: string;
|
|
42
|
+
preview: {
|
|
43
|
+
availableResources: ['REAL.MEMBERSHIP_DISPLAY'];
|
|
44
|
+
resource: {
|
|
45
|
+
mock: Record<string, never>;
|
|
46
|
+
real: {
|
|
47
|
+
membershipDisplay: IMembershipDisplay;
|
|
48
|
+
};
|
|
49
|
+
};
|
|
50
|
+
};
|
|
42
51
|
};
|
|
43
52
|
}
|
|
53
|
+
export interface SubscriptionProductInList {
|
|
54
|
+
id: number;
|
|
55
|
+
type: SubscriptionProductType;
|
|
56
|
+
title: string;
|
|
57
|
+
alias: string;
|
|
58
|
+
expiryPeriodInDays: ExpiryPeriodInDaysType;
|
|
59
|
+
isDeactivated: boolean;
|
|
60
|
+
fee: {
|
|
61
|
+
currency: 'KRW' | 'USD';
|
|
62
|
+
amount: string;
|
|
63
|
+
};
|
|
64
|
+
insertedAt: string;
|
|
65
|
+
updatedAt: string;
|
|
66
|
+
}
|
|
44
67
|
export interface ISectionProperties {
|
|
45
68
|
title: string;
|
|
46
69
|
description: string;
|
|
@@ -191,7 +214,6 @@ export declare type DynamicLayoutProps = {
|
|
|
191
214
|
onClickEditSection?: (section: ISection) => void;
|
|
192
215
|
sectionActionHandler?: (action: TypeOfSectionAction) => void;
|
|
193
216
|
programmedSectionComponents?: IProgrammedSectionComponents;
|
|
194
|
-
programmedSectionPreviewData?: IProgrammedSectionPreviewData;
|
|
195
217
|
};
|
|
196
218
|
declare type SubscriptionProductType = 'FREE_INFINITE' | 'FREE_FINITE' | 'ONCE_INFINITE' | 'ONCE_FINITE' | 'COUPON_FREE_INFINITE' | 'COUPON_FREE_FINITE' | 'COUPON_ONCE_INFINITE' | 'COUPON_ONCE_FINITE' | 'SUBSCRIPTION_30DAYS' | 'SUBSCRIPTION_90DAYS' | 'SUBSCRIPTION_180DAYS' | 'SUBSCRIPTION_365DAYS';
|
|
197
219
|
declare type ExpiryPeriodInDaysType = 1 | 3 | 7 | 14 | 30;
|
|
@@ -222,7 +244,10 @@ export declare type IConnectedSubscriptionProducts = {
|
|
|
222
244
|
alias: string;
|
|
223
245
|
expiryPeriodInDays: ExpiryPeriodInDaysType;
|
|
224
246
|
isDeactivated: boolean;
|
|
225
|
-
fee:
|
|
247
|
+
fee: {
|
|
248
|
+
currency: 'KRW' | 'USD';
|
|
249
|
+
amount: string;
|
|
250
|
+
};
|
|
226
251
|
insertedAt: string;
|
|
227
252
|
updatedAt: string;
|
|
228
253
|
};
|
|
@@ -256,6 +281,3 @@ export declare type IMembershipDisplay = {
|
|
|
256
281
|
isDefault: boolean;
|
|
257
282
|
connectedMemberships: IConnectedMembership[];
|
|
258
283
|
};
|
|
259
|
-
export declare type IProgrammedSectionPreviewData = {
|
|
260
|
-
MEMBERSHIP_DISPLAY?: IMembershipDisplay;
|
|
261
|
-
};
|
package/package.json
CHANGED
package/release-note.md
CHANGED