pds-dev-kit-web 2.0.4 → 2.0.6
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/sub/DynamicLayout/DynamicLayout.d.ts +1 -1
- package/dist/src/sub/DynamicLayout/DynamicLayout.js +4 -3
- package/dist/src/sub/DynamicLayout/components/EditModeSectionMatcher/EditModeSectionMatcher.js +2 -1
- package/dist/src/sub/DynamicLayout/components/EditModeSectionMatcher/SectionBox.d.ts +2 -1
- package/dist/src/sub/DynamicLayout/components/EditModeSectionMatcher/SectionBox.js +6 -3
- package/dist/src/sub/DynamicLayout/components/Section/Section.js +5 -2
- package/dist/src/sub/DynamicLayout/components/SectionMatcher/SectionMatcher.js +2 -0
- package/dist/src/sub/DynamicLayout/mock_samplePage.d.ts +1 -0
- package/dist/src/sub/DynamicLayout/mock_samplePage.js +84 -8
- package/dist/src/sub/DynamicLayout/sectionActionTypes.d.ts +19 -0
- package/dist/src/sub/DynamicLayout/sectionActionTypes.js +2 -0
- package/dist/src/sub/DynamicLayout/sections/FullscreenIframeSection/FullscreenIframeSection.d.ts +4 -0
- package/dist/src/sub/DynamicLayout/sections/FullscreenIframeSection/FullscreenIframeSection.js +51 -0
- package/dist/src/sub/DynamicLayout/sections/FullscreenIframeSection/index.d.ts +1 -0
- package/dist/src/sub/DynamicLayout/sections/FullscreenIframeSection/index.js +8 -0
- package/dist/src/sub/DynamicLayout/sections/FullscreenIframeSection/templates/TemplateA/TemplateA.d.ts +3 -0
- package/dist/src/sub/DynamicLayout/sections/FullscreenIframeSection/templates/TemplateA/TemplateA.js +15 -0
- package/dist/src/sub/DynamicLayout/sections/FullscreenIframeSection/templates/TemplateA/desktop/D_TemplateA.d.ts +3 -0
- package/dist/src/sub/DynamicLayout/sections/FullscreenIframeSection/templates/TemplateA/desktop/D_TemplateA.js +20 -0
- package/dist/src/sub/DynamicLayout/sections/FullscreenIframeSection/templates/TemplateA/desktop/index.d.ts +1 -0
- package/dist/src/sub/DynamicLayout/sections/FullscreenIframeSection/templates/TemplateA/desktop/index.js +8 -0
- package/dist/src/sub/DynamicLayout/sections/FullscreenIframeSection/templates/TemplateA/index.d.ts +1 -0
- package/dist/src/sub/DynamicLayout/sections/FullscreenIframeSection/templates/TemplateA/index.js +8 -0
- package/dist/src/sub/DynamicLayout/sections/FullscreenIframeSection/templates/TemplateA/mobile/M_TemplateA.d.ts +3 -0
- package/dist/src/sub/DynamicLayout/sections/FullscreenIframeSection/templates/TemplateA/mobile/M_TemplateA.js +20 -0
- package/dist/src/sub/DynamicLayout/sections/FullscreenIframeSection/templates/TemplateA/mobile/index.d.ts +1 -0
- package/dist/src/sub/DynamicLayout/sections/FullscreenIframeSection/templates/TemplateA/mobile/index.js +8 -0
- package/dist/src/sub/DynamicLayout/sections/FullscreenIframeSection/templates/index.d.ts +1 -0
- package/dist/src/sub/DynamicLayout/sections/FullscreenIframeSection/templates/index.js +5 -0
- package/dist/src/sub/DynamicLayout/sections/index.d.ts +1 -0
- package/dist/src/sub/DynamicLayout/sections/index.js +3 -1
- package/dist/src/sub/DynamicLayout/types.d.ts +7 -4
- package/package.json +1 -1
- package/release-note.md +4 -4
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 } from './src/sub/DynamicLayout/types';
|
|
29
|
-
export { TypeOfSectionManifestSchema, TypeofSectionTemplate, TypeOfSectionContentMediaType, TypeOfSectionLinkType, TypeOfCarouselAutoplayMode, TypeOfCarouselInfiniteLoopMode, TypeOfBackgroundMediaType, TypeOfSectionButtonDesignType, TypeOfItemButtonDesignType, TypeOfItemManifestSchema, TypeOfItemLinkMethod, TypeOfItemLinkType, ISection, ISectionProperties, ISectionStyles, IItem };
|
|
28
|
+
import type { TypeOfSectionManifestSchema, TypeofSectionTemplate, TypeOfSectionContentMediaType, TypeOfSectionLinkType, TypeOfCarouselAutoplayMode, TypeOfCarouselInfiniteLoopMode, TypeOfBackgroundMediaType, TypeOfSectionButtonDesignType, TypeOfItemButtonDesignType, TypeOfItemManifestSchema, TypeOfItemLinkMethod, TypeOfItemLinkType, ISection, ISectionProperties, ISectionStyles, IItem, TypeOfSectionAction } from './src/sub/DynamicLayout/types';
|
|
29
|
+
export { TypeOfSectionManifestSchema, TypeofSectionTemplate, TypeOfSectionContentMediaType, TypeOfSectionLinkType, TypeOfCarouselAutoplayMode, TypeOfCarouselInfiniteLoopMode, TypeOfBackgroundMediaType, TypeOfSectionButtonDesignType, TypeOfItemButtonDesignType, TypeOfItemManifestSchema, TypeOfItemLinkMethod, TypeOfItemLinkType, TypeOfSectionAction, ISection, ISectionProperties, ISectionStyles, IItem };
|
|
30
30
|
export { AdminList, AdminListHeader, AdminListItem, BulkActionBar, ToolBar } from './src/sub';
|
|
@@ -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, onClickEditSection }: DynamicLayoutProps): JSX.Element;
|
|
3
|
+
declare function DynamicLayout({ device, mode, isPreview, sections, scrollDownTargetSectionId, editingSectionId, navigationHandler, sectionActionHandler, onClickEditSection }: DynamicLayoutProps): JSX.Element;
|
|
4
4
|
export default DynamicLayout;
|
|
@@ -25,10 +25,11 @@ 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, onClickEditSection = _a.onClickEditSection;
|
|
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;
|
|
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
|
-
|
|
32
|
-
|
|
31
|
+
var iframeSection = filteredSortedSection.find(function (section) { return section.manifest.schema === 'EXP_IFRAME' && section.display; });
|
|
32
|
+
return ((0, jsx_runtime_1.jsxs)(dynamicLayoutContext_1.dynamicLayoutContext.Provider, __assign({ value: { device: device, mode: mode, isPreview: isPreview, navigationHandler: navigationHandler, sectionActionHandler: sectionActionHandler } }, { children: [mode === 'EDIT' && onClickEditSection && ((0, jsx_runtime_1.jsx)(EditModeSectionMatcher_1.EditModeSectionMatcher, { editingSectionId: editingSectionId, scrollDownTargetSectionId: scrollDownTargetSectionId, filteredSortedSection: filteredSortedSection, onClickEditSection: onClickEditSection }, void 0)), mode !== 'EDIT' &&
|
|
33
|
+
(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));
|
|
33
34
|
}
|
|
34
35
|
exports.default = DynamicLayout;
|
package/dist/src/sub/DynamicLayout/components/EditModeSectionMatcher/EditModeSectionMatcher.js
CHANGED
|
@@ -19,6 +19,7 @@ var SectionMatcher_1 = require("../SectionMatcher");
|
|
|
19
19
|
var SectionBox_1 = __importDefault(require("./SectionBox"));
|
|
20
20
|
function EditModeSectionMatcher(_a) {
|
|
21
21
|
var filteredSortedSection = _a.filteredSortedSection, scrollDownTargetSectionId = _a.scrollDownTargetSectionId, editingSectionId = _a.editingSectionId, onClickEditSection = _a.onClickEditSection;
|
|
22
|
-
|
|
22
|
+
var iframeSection = filteredSortedSection.find(function (section) { return section.manifest.schema === 'EXP_IFRAME' && section.display; });
|
|
23
|
+
return ((0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, { children: iframeSection ? ((0, jsx_runtime_1.jsx)(SectionBox_1.default, __assign({ isIframeSection: true, isEditing: editingSectionId === iframeSection.id, scrollIntoThisSection: iframeSection.id === scrollDownTargetSectionId, onClick: function () { return onClickEditSection(iframeSection); } }, { children: (0, jsx_runtime_1.jsx)(SectionMatcher_1.SectionMatcher, __assign({}, iframeSection), iframeSection.id) }), iframeSection.id)) : (filteredSortedSection.map(function (section) { return ((0, jsx_runtime_1.jsx)(SectionBox_1.default, __assign({ isEditing: editingSectionId === section.id, scrollIntoThisSection: section.id === scrollDownTargetSectionId, onClick: function () { return onClickEditSection(section); } }, { children: (0, jsx_runtime_1.jsx)(SectionMatcher_1.SectionMatcher, __assign({}, section), section.id) }), section.id)); })) }, void 0));
|
|
23
24
|
}
|
|
24
25
|
exports.default = EditModeSectionMatcher;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
export default function SectionBox({ scrollIntoThisSection, isEditing, children, onClick }: {
|
|
2
|
+
export default function SectionBox({ scrollIntoThisSection, isIframeSection, isEditing, children, onClick }: {
|
|
3
3
|
scrollIntoThisSection: boolean;
|
|
4
|
+
isIframeSection?: boolean;
|
|
4
5
|
isEditing: boolean;
|
|
5
6
|
children: React.ReactNode;
|
|
6
7
|
onClick: () => void;
|
|
@@ -26,7 +26,7 @@ var desktop_1 = require("../../../../desktop");
|
|
|
26
26
|
var useLazyUnmount_1 = require("../../hooks/useLazyUnmount");
|
|
27
27
|
var OverlayBorders_1 = __importDefault(require("./OverlayBorders"));
|
|
28
28
|
function SectionBox(_a) {
|
|
29
|
-
var scrollIntoThisSection = _a.scrollIntoThisSection, isEditing = _a.isEditing, children = _a.children, onClick = _a.onClick;
|
|
29
|
+
var scrollIntoThisSection = _a.scrollIntoThisSection, isIframeSection = _a.isIframeSection, isEditing = _a.isEditing, children = _a.children, onClick = _a.onClick;
|
|
30
30
|
var t = (0, react_i18next_1.useTranslation)('translation').t;
|
|
31
31
|
var sectionRef = (0, react_1.useRef)(null);
|
|
32
32
|
var _b = (0, react_1.useState)(false), isHover = _b[0], setIsHover = _b[1];
|
|
@@ -72,14 +72,17 @@ function SectionBox(_a) {
|
|
|
72
72
|
setIsHover(false);
|
|
73
73
|
onClickDelayedAsync();
|
|
74
74
|
};
|
|
75
|
-
return ((0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, { children: (0, jsx_runtime_1.jsxs)(S_SectionBox, __assign({ ref: sectionRef, onClick: onClickSectionBox, onMouseEnter: onMouseEnter, onMouseLeave: onMouseLeaveAsync, isEditing: isEditing }, { children: [isEditing && !hasNoChild && ((0, jsx_runtime_1.jsxs)(S_Editing, { children: [(0, jsx_runtime_1.jsx)(OverlayBorders_1.default, { zIndex: 1 }, void 0), (0, jsx_runtime_1.jsx)(TopRightAbsoluteBox, { children: (0, jsx_runtime_1.jsx)(desktop_1.D_TextLabel, { text: t('str_4657'), styleTheme: "caption1Bold", colorOverride: "ui_cpnt_textlabel_sys_black", singleLineMode: "use", customFontWeight: "bold", textAlign: "center" }, void 0) }, void 0)] }, void 0)), !isEditing && ((0, jsx_runtime_1.jsx)(DimmedEditOverlay, __assign({ isHover: isHover, fadeOut: fadeOut }, { children: (0, jsx_runtime_1.jsx)(S_EditButton, { children: (0, jsx_runtime_1.jsx)(desktop_1.D_TextLabel, { text: t('str_4653'), colorOverride: "ui_cpnt_textlabel_sys_black", singleLineMode: "use", customFontWeight: "bold", textAlign: "center" }, void 0) }, void 0) }), void 0)), children] }), void 0) }, void 0));
|
|
75
|
+
return ((0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, { children: (0, jsx_runtime_1.jsxs)(S_SectionBox, __assign({ ref: sectionRef, onClick: onClickSectionBox, onMouseEnter: onMouseEnter, onMouseLeave: onMouseLeaveAsync, isEditing: isEditing, isIframeSection: isIframeSection }, { children: [isEditing && !hasNoChild && ((0, jsx_runtime_1.jsxs)(S_Editing, { children: [(0, jsx_runtime_1.jsx)(OverlayBorders_1.default, { zIndex: 1 }, void 0), (0, jsx_runtime_1.jsx)(TopRightAbsoluteBox, { children: (0, jsx_runtime_1.jsx)(desktop_1.D_TextLabel, { text: t('str_4657'), styleTheme: "caption1Bold", colorOverride: "ui_cpnt_textlabel_sys_black", singleLineMode: "use", customFontWeight: "bold", textAlign: "center" }, void 0) }, void 0)] }, void 0)), !isEditing && ((0, jsx_runtime_1.jsx)(DimmedEditOverlay, __assign({ isHover: isHover, fadeOut: fadeOut }, { children: (0, jsx_runtime_1.jsx)(S_EditButton, { children: (0, jsx_runtime_1.jsx)(desktop_1.D_TextLabel, { text: t('str_4653'), colorOverride: "ui_cpnt_textlabel_sys_black", singleLineMode: "use", customFontWeight: "bold", textAlign: "center" }, void 0) }, void 0) }), void 0)), children] }), void 0) }, void 0));
|
|
76
76
|
}
|
|
77
77
|
exports.default = SectionBox;
|
|
78
78
|
var TopRightAbsoluteBox = styled_components_1.default.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n background-color: ", ";\n padding: 8px 10px;\n position: absolute;\n right: 0;\n top: 0;\n transition: background-color 0.2s ease-out;\n z-index: 4;\n"], ["\n background-color: ", ";\n padding: 8px 10px;\n position: absolute;\n right: 0;\n top: 0;\n transition: background-color 0.2s ease-out;\n z-index: 4;\n"])), function (_a) {
|
|
79
79
|
var theme = _a.theme;
|
|
80
80
|
return theme.ui_editor_preview_editing;
|
|
81
81
|
});
|
|
82
|
-
var S_SectionBox = styled_components_1.default.div(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n position: relative;\n"], ["\n position: relative;\n"])))
|
|
82
|
+
var S_SectionBox = styled_components_1.default.div(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n height: ", ";\n position: relative;\n"], ["\n height: ", ";\n position: relative;\n"])), function (_a) {
|
|
83
|
+
var isIframeSection = _a.isIframeSection;
|
|
84
|
+
return (isIframeSection ? '100%' : 'auto');
|
|
85
|
+
});
|
|
83
86
|
var DimmedEditOverlay = styled_components_1.default.div(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n align-items: center;\n animation: ", ";\n background-color: ", ";\n bottom: 0;\n cursor: pointer;\n display: flex;\n justify-content: center;\n left: 0;\n\n opacity: ", ";\n\n position: absolute;\n right: 0;\n top: 0;\n transition: opacity 0.2s ease-out;\n z-index: 10;\n\n @keyframes fadeOut {\n 0% {\n opacity: 1;\n }\n\n 50% {\n opacity: 0.6;\n }\n\n 100% {\n opacity: 0;\n }\n }\n"], ["\n align-items: center;\n animation: ", ";\n background-color: ", ";\n bottom: 0;\n cursor: pointer;\n display: flex;\n justify-content: center;\n left: 0;\n\n opacity: ", ";\n\n position: absolute;\n right: 0;\n top: 0;\n transition: opacity 0.2s ease-out;\n z-index: 10;\n\n @keyframes fadeOut {\n 0% {\n opacity: 1;\n }\n\n 50% {\n opacity: 0.6;\n }\n\n 100% {\n opacity: 0;\n }\n }\n"])), function (_a) {
|
|
84
87
|
var fadeOut = _a.fadeOut;
|
|
85
88
|
return fadeOut && 'fadeOut 0.2s ease-out';
|
|
@@ -37,9 +37,12 @@ var YouTubeIframe_1 = require("../YouTubeIframe");
|
|
|
37
37
|
var sectionContext_1 = require("./sectionContext");
|
|
38
38
|
function Section(_a) {
|
|
39
39
|
var children = _a.children, props = __rest(_a, ["children"]);
|
|
40
|
-
return ((0, jsx_runtime_1.jsx)(sectionContext_1.sectionContext.Provider, __assign({ value: props }, { children: (0, jsx_runtime_1.jsxs)(S_Section, { children: [(0, jsx_runtime_1.jsx)(Background, {}, void 0), children] }, void 0) }), void 0));
|
|
40
|
+
return ((0, jsx_runtime_1.jsx)(sectionContext_1.sectionContext.Provider, __assign({ value: props }, { children: (0, jsx_runtime_1.jsxs)(S_Section, __assign({ isIframeSection: props.manifest.schema === 'EXP_IFRAME' }, { children: [(0, jsx_runtime_1.jsx)(Background, {}, void 0), children] }), void 0) }), void 0));
|
|
41
41
|
}
|
|
42
|
-
var S_Section = styled_components_1.default.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n box-sizing: border-box;\n position: relative;\n width: 100%;\n z-index: 0;\n"], ["\n box-sizing: border-box;\n position: relative;\n width: 100%;\n z-index: 0;\n"])))
|
|
42
|
+
var S_Section = styled_components_1.default.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n box-sizing: border-box;\n height: ", ";\n position: relative;\n width: 100%;\n z-index: 0;\n"], ["\n box-sizing: border-box;\n height: ", ";\n position: relative;\n width: 100%;\n z-index: 0;\n"])), function (_a) {
|
|
43
|
+
var isIframeSection = _a.isIframeSection;
|
|
44
|
+
return (isIframeSection ? '100%' : 'auto');
|
|
45
|
+
});
|
|
43
46
|
function Background() {
|
|
44
47
|
var context = (0, react_1.useContext)(sectionContext_1.sectionContext);
|
|
45
48
|
var id = context.id;
|
|
@@ -38,6 +38,8 @@ function SectionMatcher(_a) {
|
|
|
38
38
|
return (0, jsx_runtime_1.jsx)(sections_1.FooterSection, __assign({}, props), void 0);
|
|
39
39
|
case 'BASE_INFO_BOX':
|
|
40
40
|
return (0, jsx_runtime_1.jsx)(sections_1.InfoBoxSection, __assign({}, props), void 0);
|
|
41
|
+
case 'EXP_IFRAME':
|
|
42
|
+
return (0, jsx_runtime_1.jsx)(sections_1.FullscreenIframeSection, __assign({}, props), void 0);
|
|
41
43
|
default:
|
|
42
44
|
return (0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, {}, void 0);
|
|
43
45
|
}
|
|
@@ -6,4 +6,5 @@ export declare const samplePageContentsSection: ISection;
|
|
|
6
6
|
export declare const samplePageInfoBoxSection: ISection;
|
|
7
7
|
export declare const samplePageIntroSection3: ISection;
|
|
8
8
|
export declare const samplePageFooterSection: ISection;
|
|
9
|
+
export declare const samplePageFullscreenIframeSection: ISection;
|
|
9
10
|
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.samplePageFooterSection = exports.samplePageIntroSection3 = exports.samplePageInfoBoxSection = exports.samplePageContentsSection = exports.samplePageIntroSection2 = exports.samplePageContentsCarouselSection = exports.samplePageIntroSection = void 0;
|
|
3
|
+
exports.samplePage = exports.samplePageFullscreenIframeSection = exports.samplePageFooterSection = exports.samplePageIntroSection3 = exports.samplePageInfoBoxSection = exports.samplePageContentsSection = exports.samplePageIntroSection2 = exports.samplePageContentsCarouselSection = exports.samplePageIntroSection = void 0;
|
|
4
4
|
exports.samplePageIntroSection = {
|
|
5
5
|
display: true,
|
|
6
6
|
dynamicLayoutSectionItems: [],
|
|
@@ -64,7 +64,8 @@ exports.samplePageIntroSection = {
|
|
|
64
64
|
itemLinkMethod: 'CLICK_BUTTON_IN_ITEM',
|
|
65
65
|
sectionContentMediaSrc: '',
|
|
66
66
|
sectionContentMediaType: 'IMAGE',
|
|
67
|
-
title: 'Entertainment Business Sample'
|
|
67
|
+
title: 'Entertainment Business Sample',
|
|
68
|
+
multiPurposeUrl: ''
|
|
68
69
|
},
|
|
69
70
|
styles: {
|
|
70
71
|
backgroundColorInHex: '#EFF0F3FF',
|
|
@@ -332,7 +333,8 @@ exports.samplePageContentsCarouselSection = {
|
|
|
332
333
|
itemLinkMethod: 'CLICK_BUTTON_IN_ITEM',
|
|
333
334
|
sectionContentMediaSrc: '',
|
|
334
335
|
sectionContentMediaType: 'IMAGE',
|
|
335
|
-
title: 'Music Festival'
|
|
336
|
+
title: 'Music Festival',
|
|
337
|
+
multiPurposeUrl: ''
|
|
336
338
|
},
|
|
337
339
|
styles: {
|
|
338
340
|
backgroundColorInHex: '#FFFFFFFF',
|
|
@@ -428,7 +430,8 @@ exports.samplePageIntroSection2 = {
|
|
|
428
430
|
itemLinkMethod: 'CLICK_BUTTON_IN_ITEM',
|
|
429
431
|
sectionContentMediaSrc: '',
|
|
430
432
|
sectionContentMediaType: 'IMAGE',
|
|
431
|
-
title: 'Sample'
|
|
433
|
+
title: 'Sample',
|
|
434
|
+
multiPurposeUrl: ''
|
|
432
435
|
},
|
|
433
436
|
styles: {
|
|
434
437
|
backgroundColorInHex: '#EFF0F3FF',
|
|
@@ -514,7 +517,8 @@ exports.samplePageContentsSection = {
|
|
|
514
517
|
itemLinkMethod: 'CLICK_BUTTON_IN_ITEM',
|
|
515
518
|
sectionContentMediaSrc: 'https://publ-upload-dev.s3.ap-northeast-2.amazonaws.com/be9aaa5a-ec5c-4727-b374-d7027b18f7ee.jpg',
|
|
516
519
|
sectionContentMediaType: 'IMAGE',
|
|
517
|
-
title: 'Sample'
|
|
520
|
+
title: 'Sample',
|
|
521
|
+
multiPurposeUrl: ''
|
|
518
522
|
},
|
|
519
523
|
styles: {
|
|
520
524
|
backgroundColorInHex: '#EFF0F3FF',
|
|
@@ -689,7 +693,8 @@ exports.samplePageInfoBoxSection = {
|
|
|
689
693
|
itemLinkMethod: 'CLICK_ITEM',
|
|
690
694
|
sectionContentMediaSrc: '',
|
|
691
695
|
sectionContentMediaType: 'IMAGE',
|
|
692
|
-
title: 'Sample'
|
|
696
|
+
title: 'Sample',
|
|
697
|
+
multiPurposeUrl: ''
|
|
693
698
|
},
|
|
694
699
|
styles: {
|
|
695
700
|
backgroundColorInHex: '#EFF0F3FF',
|
|
@@ -785,7 +790,8 @@ exports.samplePageIntroSection3 = {
|
|
|
785
790
|
itemLinkMethod: 'CLICK_BUTTON_IN_ITEM',
|
|
786
791
|
sectionContentMediaSrc: '',
|
|
787
792
|
sectionContentMediaType: 'IMAGE',
|
|
788
|
-
title: 'Contact Us'
|
|
793
|
+
title: 'Contact Us',
|
|
794
|
+
multiPurposeUrl: ''
|
|
789
795
|
},
|
|
790
796
|
styles: {
|
|
791
797
|
backgroundColorInHex: '#EFF0F3FF',
|
|
@@ -884,7 +890,8 @@ exports.samplePageFooterSection = {
|
|
|
884
890
|
itemLinkMethod: 'CLICK_BUTTON_IN_ITEM',
|
|
885
891
|
sectionContentMediaSrc: '',
|
|
886
892
|
sectionContentMediaType: 'IMAGE',
|
|
887
|
-
title: ''
|
|
893
|
+
title: '',
|
|
894
|
+
multiPurposeUrl: ''
|
|
888
895
|
},
|
|
889
896
|
styles: {
|
|
890
897
|
backgroundColorInHex: '#0F0F10FF',
|
|
@@ -917,6 +924,75 @@ exports.samplePageFooterSection = {
|
|
|
917
924
|
template: 'BASE_FOOTER_B',
|
|
918
925
|
updatedAt: '2023-01-06T09:05:45'
|
|
919
926
|
};
|
|
927
|
+
exports.samplePageFullscreenIframeSection = {
|
|
928
|
+
display: false,
|
|
929
|
+
dynamicLayoutSectionItems: null,
|
|
930
|
+
id: 999,
|
|
931
|
+
insertedAt: '2023-01-06T09:05:45',
|
|
932
|
+
manifest: {
|
|
933
|
+
availableProperties: ['multi_purpose_url'],
|
|
934
|
+
availableStyles: [],
|
|
935
|
+
availableTemplates: ['EXP_IFRAME_A'],
|
|
936
|
+
schema: 'EXP_IFRAME'
|
|
937
|
+
},
|
|
938
|
+
order: 7,
|
|
939
|
+
properties: {
|
|
940
|
+
buttonAlphaLabel: '',
|
|
941
|
+
buttonAlphaLinkSrc: '',
|
|
942
|
+
buttonAlphaLinkType: 'WEB_LINK',
|
|
943
|
+
buttonBravoLabel: '',
|
|
944
|
+
buttonBravoLinkSrc: '',
|
|
945
|
+
buttonBravoLinkType: 'WEB_LINK',
|
|
946
|
+
buttonCharlieLabel: '',
|
|
947
|
+
buttonCharlieLinkSrc: '',
|
|
948
|
+
buttonCharlieLinkType: 'WEB_LINK',
|
|
949
|
+
buttonDeltaLabel: '',
|
|
950
|
+
buttonDeltaLinkSrc: '',
|
|
951
|
+
buttonDeltaLinkType: 'WEB_LINK',
|
|
952
|
+
buttonEchoLabel: '',
|
|
953
|
+
buttonEchoLinkSrc: '',
|
|
954
|
+
buttonEchoLinkType: 'WEB_LINK',
|
|
955
|
+
carouselAutoplayMode: 'MANUAL',
|
|
956
|
+
carouselAutoplayTime: 3,
|
|
957
|
+
carouselInfiniteLoopMode: 'NO_USE',
|
|
958
|
+
description: '',
|
|
959
|
+
itemLinkMethod: 'CLICK_BUTTON_IN_ITEM',
|
|
960
|
+
sectionContentMediaSrc: '',
|
|
961
|
+
sectionContentMediaType: 'IMAGE',
|
|
962
|
+
title: '',
|
|
963
|
+
multiPurposeUrl: 'https://app.publr.co/'
|
|
964
|
+
},
|
|
965
|
+
styles: {
|
|
966
|
+
backgroundColorInHex: '#0F0F10FF',
|
|
967
|
+
backgroundMediaSrc: '',
|
|
968
|
+
backgroundMediaType: 'IMAGE',
|
|
969
|
+
backgroundOverlayColorInHex: '#00000000',
|
|
970
|
+
buttonAlphaBackgroundColorInHex: '#455EEFFF',
|
|
971
|
+
buttonAlphaDesignType: 'A',
|
|
972
|
+
buttonAlphaLabelColorInHex: '#FFFFFFFF',
|
|
973
|
+
buttonBravoBackgroundColorInHex: '#455EEFFF',
|
|
974
|
+
buttonBravoDesignType: 'A',
|
|
975
|
+
buttonBravoLabelColorInHex: '#FFFFFFFF',
|
|
976
|
+
buttonCharlieBackgroundColorInHex: '#455EEFFF',
|
|
977
|
+
buttonCharlieDesignType: 'A',
|
|
978
|
+
buttonCharlieLabelColorInHex: '#FFFFFFFF',
|
|
979
|
+
buttonDeltaBackgroundColorInHex: '#455EEFFF',
|
|
980
|
+
buttonDeltaDesignType: 'A',
|
|
981
|
+
buttonDeltaLabelColorInHex: '#FFFFFFFF',
|
|
982
|
+
buttonEchoBackgroundColorInHex: '#455EEFFF',
|
|
983
|
+
buttonEchoDesignType: 'A',
|
|
984
|
+
buttonEchoLabelColorInHex: '#FFFFFFFF',
|
|
985
|
+
descriptionColorInHex: '#68686BFF',
|
|
986
|
+
itemButtonBackgroundColorInHex: '#455EEFFF',
|
|
987
|
+
itemButtonDesignType: 'A',
|
|
988
|
+
itemButtonLabelColorInHex: '#FFFFFFFF',
|
|
989
|
+
itemDescriptionColorInHex: '#676970FF',
|
|
990
|
+
itemTitleColorInHex: '#1E1E20FF',
|
|
991
|
+
titleColorInHex: '#1E1E20FF'
|
|
992
|
+
},
|
|
993
|
+
template: 'EXP_IFRAME_A',
|
|
994
|
+
updatedAt: '2023-01-06T09:05:45'
|
|
995
|
+
};
|
|
920
996
|
exports.samplePage = [
|
|
921
997
|
exports.samplePageIntroSection,
|
|
922
998
|
exports.samplePageContentsCarouselSection,
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export declare type TypeOfSectionAction = ActionMap<ActionHandlerPayload>[keyof ActionMap<ActionHandlerPayload>];
|
|
3
|
+
declare type ActionHandlerPayload = {
|
|
4
|
+
LOAD_IFRAME_SECTION: {
|
|
5
|
+
event: React.SyntheticEvent<HTMLIFrameElement, Event>;
|
|
6
|
+
multiPurposeUrl: string;
|
|
7
|
+
};
|
|
8
|
+
};
|
|
9
|
+
declare type ActionMap<M extends {
|
|
10
|
+
[index: string]: any;
|
|
11
|
+
}> = {
|
|
12
|
+
[Key in keyof M]: M[Key] extends undefined ? {
|
|
13
|
+
type: Key;
|
|
14
|
+
} : {
|
|
15
|
+
type: Key;
|
|
16
|
+
payload: M[Key];
|
|
17
|
+
};
|
|
18
|
+
};
|
|
19
|
+
export {};
|
package/dist/src/sub/DynamicLayout/sections/FullscreenIframeSection/FullscreenIframeSection.js
ADDED
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cooked, raw) {
|
|
3
|
+
if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
|
|
4
|
+
return cooked;
|
|
5
|
+
};
|
|
6
|
+
var __assign = (this && this.__assign) || function () {
|
|
7
|
+
__assign = Object.assign || function(t) {
|
|
8
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
9
|
+
s = arguments[i];
|
|
10
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
11
|
+
t[p] = s[p];
|
|
12
|
+
}
|
|
13
|
+
return t;
|
|
14
|
+
};
|
|
15
|
+
return __assign.apply(this, arguments);
|
|
16
|
+
};
|
|
17
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
|
18
|
+
var t = {};
|
|
19
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
20
|
+
t[p] = s[p];
|
|
21
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
22
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
23
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
24
|
+
t[p[i]] = s[p[i]];
|
|
25
|
+
}
|
|
26
|
+
return t;
|
|
27
|
+
};
|
|
28
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
29
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
30
|
+
};
|
|
31
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
32
|
+
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
33
|
+
var styled_components_1 = __importDefault(require("styled-components"));
|
|
34
|
+
var components_1 = require("../../components");
|
|
35
|
+
var templates_1 = require("./templates");
|
|
36
|
+
function FullscreenIframeSection(_a) {
|
|
37
|
+
var props = __rest(_a, []);
|
|
38
|
+
return ((0, jsx_runtime_1.jsx)(S_SectionWrapper, __assign({ "x-dlayout-section-type": "FullscreenIframe" }, { children: (0, jsx_runtime_1.jsx)(components_1.Section, __assign({}, props, { children: (0, jsx_runtime_1.jsx)(TemplateMather, { styleTemplate: props.template }, void 0) }), void 0) }), void 0));
|
|
39
|
+
}
|
|
40
|
+
var S_SectionWrapper = styled_components_1.default.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n display: flex;\n height: 100%;\n"], ["\n display: flex;\n height: 100%;\n"])));
|
|
41
|
+
function TemplateMather(_a) {
|
|
42
|
+
var styleTemplate = _a.styleTemplate;
|
|
43
|
+
switch (styleTemplate) {
|
|
44
|
+
case 'EXP_IFRAME_A':
|
|
45
|
+
return (0, jsx_runtime_1.jsx)(templates_1.TemplateA, {}, void 0);
|
|
46
|
+
default:
|
|
47
|
+
return (0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, {}, void 0);
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
exports.default = FullscreenIframeSection;
|
|
51
|
+
var templateObject_1;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as FullscreenIframeSection } from './FullscreenIframeSection';
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.FullscreenIframeSection = void 0;
|
|
7
|
+
var FullscreenIframeSection_1 = require("./FullscreenIframeSection");
|
|
8
|
+
Object.defineProperty(exports, "FullscreenIframeSection", { enumerable: true, get: function () { return __importDefault(FullscreenIframeSection_1).default; } });
|
package/dist/src/sub/DynamicLayout/sections/FullscreenIframeSection/templates/TemplateA/TemplateA.js
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
4
|
+
var react_1 = require("react");
|
|
5
|
+
var dynamicLayoutContext_1 = require("../../../../dynamicLayoutContext");
|
|
6
|
+
var desktop_1 = require("./desktop");
|
|
7
|
+
var mobile_1 = require("./mobile");
|
|
8
|
+
function TemplateA() {
|
|
9
|
+
var device = (0, react_1.useContext)(dynamicLayoutContext_1.dynamicLayoutContext).device;
|
|
10
|
+
return ((0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, { children: {
|
|
11
|
+
MOBILE: (0, jsx_runtime_1.jsx)(mobile_1.M_TemplateA, {}, void 0),
|
|
12
|
+
DESKTOP: (0, jsx_runtime_1.jsx)(desktop_1.D_TemplateA, {}, void 0)
|
|
13
|
+
}[device] }, void 0));
|
|
14
|
+
}
|
|
15
|
+
exports.default = TemplateA;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
4
|
+
var react_1 = require("react");
|
|
5
|
+
var DynamicLayout_1 = require("../../../../../../DynamicLayout");
|
|
6
|
+
var Section_1 = require("../../../../../components/Section");
|
|
7
|
+
function TemplateA() {
|
|
8
|
+
var sectionActionHandler = (0, react_1.useContext)(DynamicLayout_1.dynamicLayoutContext).sectionActionHandler;
|
|
9
|
+
var section = (0, react_1.useContext)(Section_1.sectionContext);
|
|
10
|
+
var onIframeLoad = function (event) {
|
|
11
|
+
if (sectionActionHandler) {
|
|
12
|
+
sectionActionHandler({
|
|
13
|
+
type: 'LOAD_IFRAME_SECTION',
|
|
14
|
+
payload: { event: event, multiPurposeUrl: section.properties.multiPurposeUrl }
|
|
15
|
+
});
|
|
16
|
+
}
|
|
17
|
+
};
|
|
18
|
+
return ((0, jsx_runtime_1.jsx)("iframe", { "x-dlayout-section-element-name": "Iframe", id: String(section.id), title: section.manifest.schema, src: section.properties.multiPurposeUrl, style: { border: 'none', width: '100%', height: '100%', display: 'block' }, referrerPolicy: "strict-origin", sandbox: "allow-forms allow-same-origin allow-scripts allow-popups", onLoad: onIframeLoad }, void 0));
|
|
19
|
+
}
|
|
20
|
+
exports.default = TemplateA;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as D_TemplateA } from './D_TemplateA';
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.D_TemplateA = void 0;
|
|
7
|
+
var D_TemplateA_1 = require("./D_TemplateA");
|
|
8
|
+
Object.defineProperty(exports, "D_TemplateA", { enumerable: true, get: function () { return __importDefault(D_TemplateA_1).default; } });
|
package/dist/src/sub/DynamicLayout/sections/FullscreenIframeSection/templates/TemplateA/index.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as TemplateA } from './TemplateA';
|
package/dist/src/sub/DynamicLayout/sections/FullscreenIframeSection/templates/TemplateA/index.js
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.TemplateA = void 0;
|
|
7
|
+
var TemplateA_1 = require("./TemplateA");
|
|
8
|
+
Object.defineProperty(exports, "TemplateA", { enumerable: true, get: function () { return __importDefault(TemplateA_1).default; } });
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
4
|
+
var react_1 = require("react");
|
|
5
|
+
var DynamicLayout_1 = require("../../../../../../DynamicLayout");
|
|
6
|
+
var Section_1 = require("../../../../../components/Section");
|
|
7
|
+
function TemplateA() {
|
|
8
|
+
var sectionActionHandler = (0, react_1.useContext)(DynamicLayout_1.dynamicLayoutContext).sectionActionHandler;
|
|
9
|
+
var section = (0, react_1.useContext)(Section_1.sectionContext);
|
|
10
|
+
var onIframeLoad = function (event) {
|
|
11
|
+
if (sectionActionHandler) {
|
|
12
|
+
sectionActionHandler({
|
|
13
|
+
type: 'LOAD_IFRAME_SECTION',
|
|
14
|
+
payload: { event: event, multiPurposeUrl: section.properties.multiPurposeUrl }
|
|
15
|
+
});
|
|
16
|
+
}
|
|
17
|
+
};
|
|
18
|
+
return ((0, jsx_runtime_1.jsx)("iframe", { "x-dlayout-section-element-name": "Iframe", id: String(section.id), title: section.manifest.schema, src: section.properties.multiPurposeUrl, style: { border: 'none', width: '100%', height: '100%', display: 'block' }, referrerPolicy: "strict-origin", sandbox: "allow-forms allow-same-origin allow-scripts", onLoad: onIframeLoad }, void 0));
|
|
19
|
+
}
|
|
20
|
+
exports.default = TemplateA;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as M_TemplateA } from './M_TemplateA';
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.M_TemplateA = void 0;
|
|
7
|
+
var M_TemplateA_1 = require("./M_TemplateA");
|
|
8
|
+
Object.defineProperty(exports, "M_TemplateA", { enumerable: true, get: function () { return __importDefault(M_TemplateA_1).default; } });
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { TemplateA } from './TemplateA';
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.TemplateA = void 0;
|
|
4
|
+
var TemplateA_1 = require("./TemplateA");
|
|
5
|
+
Object.defineProperty(exports, "TemplateA", { enumerable: true, get: function () { return TemplateA_1.TemplateA; } });
|
|
@@ -3,3 +3,4 @@ export { ContentsSection } from './ContentsSection';
|
|
|
3
3
|
export { FooterSection } from './FooterSection';
|
|
4
4
|
export { InfoBoxSection } from './InfoBoxSection';
|
|
5
5
|
export { IntroSection } from './IntroSection';
|
|
6
|
+
export { FullscreenIframeSection } from './FullscreenIframeSection';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.IntroSection = exports.InfoBoxSection = exports.FooterSection = exports.ContentsSection = exports.ContentsCarouselSection = void 0;
|
|
3
|
+
exports.FullscreenIframeSection = exports.IntroSection = exports.InfoBoxSection = exports.FooterSection = exports.ContentsSection = exports.ContentsCarouselSection = void 0;
|
|
4
4
|
var ContentsCarouselSection_1 = require("./ContentsCarouselSection");
|
|
5
5
|
Object.defineProperty(exports, "ContentsCarouselSection", { enumerable: true, get: function () { return ContentsCarouselSection_1.ContentsCarouselSection; } });
|
|
6
6
|
var ContentsSection_1 = require("./ContentsSection");
|
|
@@ -11,3 +11,5 @@ var InfoBoxSection_1 = require("./InfoBoxSection");
|
|
|
11
11
|
Object.defineProperty(exports, "InfoBoxSection", { enumerable: true, get: function () { return InfoBoxSection_1.InfoBoxSection; } });
|
|
12
12
|
var IntroSection_1 = require("./IntroSection");
|
|
13
13
|
Object.defineProperty(exports, "IntroSection", { enumerable: true, get: function () { return IntroSection_1.IntroSection; } });
|
|
14
|
+
var FullscreenIframeSection_1 = require("./FullscreenIframeSection");
|
|
15
|
+
Object.defineProperty(exports, "FullscreenIframeSection", { enumerable: true, get: function () { return FullscreenIframeSection_1.FullscreenIframeSection; } });
|
|
@@ -1,5 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
export
|
|
1
|
+
import type { TypeOfSectionAction } from './sectionActionTypes';
|
|
2
|
+
export { TypeOfSectionAction };
|
|
3
|
+
export declare type TypeOfSectionManifestSchema = 'BASE_INTRO' | 'BASE_CONTENTS' | 'BASE_CONTENTS_CAROUSEL' | 'BASE_FOOTER' | 'BASE_INFO_BOX' | 'EXP_IFRAME';
|
|
4
|
+
export declare type TypeofSectionTemplate = 'BASE_INTRO_A' | 'BASE_INTRO_B' | 'BASE_INTRO_C' | 'BASE_INTRO_D' | 'BASE_CONTENTS_A' | 'BASE_CONTENTS_B' | 'BASE_CONTENTS_CAROUSEL_A' | 'BASE_CONTENTS_CAROUSEL_B' | 'BASE_FOOTER_A' | 'BASE_FOOTER_B' | 'BASE_INFO_BOX_A' | 'EXP_IFRAME_A';
|
|
3
5
|
export declare type TypeOfSectionContentMediaType = 'IMAGE' | 'YOUTUBE';
|
|
4
6
|
export declare type TypeOfSectionLinkType = 'WEB_LINK' | 'INTERNAL_LINK' | 'NONE';
|
|
5
7
|
export declare type TypeOfCarouselAutoplayMode = 'AUTO' | 'MANUAL';
|
|
@@ -10,7 +12,7 @@ export declare type TypeOfItemButtonDesignType = 'A' | 'B' | 'C' | 'D' | 'E' | '
|
|
|
10
12
|
export declare type TypeOfItemManifestSchema = 'BASE_CONTENTS_CAROUSEL_ITEM' | 'BASE_FOOTER_ITEM' | 'BASE_INFO_BOX_ITEM';
|
|
11
13
|
export declare type TypeOfItemLinkMethod = 'CLICK_ITEM' | 'CLICK_BUTTON_IN_ITEM' | 'NONE';
|
|
12
14
|
export declare type TypeOfItemLinkType = 'WEB_LINK' | 'INTERNAL_LINK' | 'NONE';
|
|
13
|
-
declare type KeyOfSectionProperties = 'title' | 'description' | 'section_content_media_type' | 'section_content_media_src' | 'button_alpha_label' | 'button_alpha_link_type' | 'button_alpha_link_src' | 'button_bravo_label' | 'button_bravo_link_type' | 'button_bravo_link_src' | 'button_charlie_label' | 'button_charlie_link_type' | 'button_charlie_link_src' | 'button_delta_label' | 'button_delta_link_type' | 'button_delta_link_src' | 'button_echo_label' | 'button_echo_link_type' | 'button_echo_link_src' | 'carousel_autoplay_mode' | 'carousel_autoplay_time' | 'carousel_infinite_loop_mode' | 'item_link_method';
|
|
15
|
+
declare type KeyOfSectionProperties = 'title' | 'description' | 'section_content_media_type' | 'section_content_media_src' | 'button_alpha_label' | 'button_alpha_link_type' | 'button_alpha_link_src' | 'button_bravo_label' | 'button_bravo_link_type' | 'button_bravo_link_src' | 'button_charlie_label' | 'button_charlie_link_type' | 'button_charlie_link_src' | 'button_delta_label' | 'button_delta_link_type' | 'button_delta_link_src' | 'button_echo_label' | 'button_echo_link_type' | 'button_echo_link_src' | 'carousel_autoplay_mode' | 'carousel_autoplay_time' | 'carousel_infinite_loop_mode' | 'item_link_method' | 'multi_purpose_url';
|
|
14
16
|
declare type KeyOfSectionStyles = 'title_color_in_hex' | 'description_color_in_hex' | 'background_color_in_hex' | 'background_media_type' | 'background_media_src' | 'background_overlay_color_in_hex' | 'button_alpha_design_type' | 'button_alpha_background_color_in_hex' | 'button_alpha_label_color_in_hex' | 'button_bravo_design_type' | 'button_bravo_background_color_in_hex' | 'button_bravo_label_color_in_hex' | 'button_charlie_design_type' | 'button_charlie_background_color_in_hex' | 'button_charlie_label_color_in_hex' | 'button_delta_design_type' | 'button_delta_background_color_in_hex' | 'button_delta_label_color_in_hex' | 'button_echo_design_type' | 'button_echo_background_color_in_hex' | 'button_echo_label_color_in_hex' | 'item_title_color_in_hex' | 'item_description_color_in_hex' | 'item_button_design_type' | 'item_button_background_color_in_hex' | 'item_button_label_color_in_hex';
|
|
15
17
|
declare type KeyOfItemProperties = 'title' | 'description' | 'body' | 'logo_image_src' | 'image_src' | 'link_type' | 'link_src' | 'button_label';
|
|
16
18
|
export interface ISection {
|
|
@@ -54,6 +56,7 @@ export interface ISectionProperties {
|
|
|
54
56
|
carouselAutoplayTime: number;
|
|
55
57
|
carouselInfiniteLoopMode: TypeOfCarouselInfiniteLoopMode;
|
|
56
58
|
itemLinkMethod: TypeOfItemLinkMethod;
|
|
59
|
+
multiPurposeUrl: string;
|
|
57
60
|
}
|
|
58
61
|
export interface ISectionStyles {
|
|
59
62
|
titleColorInHex: string;
|
|
@@ -174,5 +177,5 @@ export declare type DynamicLayoutProps = {
|
|
|
174
177
|
editingSectionId?: number;
|
|
175
178
|
navigationHandler?: (linkType: 'WEB_LINK' | 'INTERNAL_LINK' | 'NONE', src: string) => void;
|
|
176
179
|
onClickEditSection?: (section: ISection) => void;
|
|
180
|
+
sectionActionHandler?: (action: TypeOfSectionAction) => void;
|
|
177
181
|
};
|
|
178
|
-
export {};
|
package/package.json
CHANGED
package/release-note.md
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
# PDS-DEV-KIT-WEB Release Notes
|
|
2
|
-
## [v2.0.
|
|
2
|
+
## [v2.0.6]
|
|
3
3
|
|
|
4
|
-
##
|
|
4
|
+
## release|https://design.storybook.publ.biz/
|
|
5
5
|
|
|
6
6
|
### sub
|
|
7
7
|
* DynamicLayout
|
|
8
|
-
*
|
|
9
|
-
|
|
8
|
+
* Iframe Section 추가
|
|
9
|
+
* ActionHandler 추가
|