pds-dev-kit-web-test 2.5.452 → 2.5.453
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/index.js +3 -2
- package/dist/src/common/hooks/useTooltip.js +1 -1
- package/dist/src/common/services/i18n/resources/en.json +29 -1
- package/dist/src/common/services/i18n/resources/es.json +28 -1
- package/dist/src/common/services/i18n/resources/fil.json +28 -1
- package/dist/src/common/services/i18n/resources/index.d.ts +194 -0
- package/dist/src/common/services/i18n/resources/ja.json +29 -1
- package/dist/src/common/services/i18n/resources/ko.json +29 -1
- package/dist/src/common/services/i18n/resources/zh-cn.json +29 -1
- package/dist/src/common/services/i18n/resources/zh-tw.json +29 -1
- package/dist/src/common/styles/colorSet/index.d.ts +2 -2
- package/dist/src/common/styles/colorSet/index.js +2 -2
- package/dist/src/common/utils/SystemUIPositionGenerator/hoverTypeSystemUICssGenerator.js +1 -1
- package/dist/src/common/utils/dateHelper.d.ts +3 -0
- package/dist/src/common/utils/dateHelper.js +37 -0
- package/dist/src/desktop/components/BasicButtonGroup/BasicButtonGroup.js +1 -1
- package/dist/src/desktop/components/Calendar/AllDaySchedulesSection.d.ts +13 -0
- package/dist/src/desktop/components/Calendar/AllDaySchedulesSection.js +49 -0
- package/dist/src/desktop/components/Calendar/Calendar.d.ts +4 -0
- package/dist/src/desktop/components/Calendar/Calendar.js +383 -0
- package/dist/src/desktop/components/Calendar/CurrentTimeIndicator.d.ts +7 -0
- package/dist/src/desktop/components/Calendar/CurrentTimeIndicator.js +48 -0
- package/dist/src/desktop/components/Calendar/DailyView.d.ts +17 -0
- package/dist/src/desktop/components/Calendar/DailyView.js +82 -0
- package/dist/src/desktop/components/Calendar/MonthlyView.d.ts +24 -0
- package/dist/src/desktop/components/Calendar/MonthlyView.js +186 -0
- package/dist/src/desktop/components/Calendar/MultiWeekSchedulesLayer.d.ts +19 -0
- package/dist/src/desktop/components/Calendar/MultiWeekSchedulesLayer.js +72 -0
- package/dist/src/desktop/components/Calendar/ScheduleItem.d.ts +16 -0
- package/dist/src/desktop/components/Calendar/ScheduleItem.js +49 -0
- package/dist/src/desktop/components/Calendar/WeeklyView.d.ts +21 -0
- package/dist/src/desktop/components/Calendar/WeeklyView.js +100 -0
- package/dist/src/desktop/components/Calendar/YearlyView.d.ts +12 -0
- package/dist/src/desktop/components/Calendar/YearlyView.js +76 -0
- package/dist/src/desktop/components/Calendar/calendarUtils.d.ts +24 -0
- package/dist/src/desktop/components/Calendar/calendarUtils.js +112 -0
- package/dist/src/desktop/components/Calendar/constants.d.ts +1 -0
- package/dist/src/desktop/components/Calendar/constants.js +31 -0
- package/dist/src/desktop/components/Calendar/index.d.ts +10 -0
- package/dist/src/desktop/components/Calendar/index.js +37 -0
- package/dist/src/desktop/components/Calendar/timeFormatUtils.d.ts +16 -0
- package/dist/src/desktop/components/Calendar/timeFormatUtils.js +45 -0
- package/dist/src/desktop/components/Calendar/types.d.ts +60 -0
- package/dist/src/desktop/components/index.d.ts +2 -1
- package/dist/src/desktop/components/index.js +3 -1
- package/dist/src/desktop/index.d.ts +1 -1
- package/dist/src/desktop/index.js +2 -1
- package/dist/src/sub/DynamicLayout/CompositionRenderer/ComponentBlockMatcher.js +1 -4
- package/dist/src/sub/DynamicLayout/CompositionRenderer/Composition.d.ts +3 -5
- package/dist/src/sub/DynamicLayout/CompositionRenderer/Composition.js +53 -53
- package/dist/src/sub/DynamicLayout/CompositionRenderer/CompositionRenderer.d.ts +6 -0
- package/dist/src/sub/DynamicLayout/CompositionRenderer/CompositionRenderer.js +27 -0
- package/dist/src/sub/DynamicLayout/DynamicLayout.d.ts +1 -1
- package/dist/src/sub/DynamicLayout/DynamicLayout.js +2 -4
- package/dist/src/sub/DynamicLayout/components/Section/components/CustomSectionBackgroundMedia.js +2 -24
- package/dist/src/sub/DynamicLayout/components/Section/sectionContext.d.ts +2 -2
- package/dist/src/sub/DynamicLayout/components/Section/util/parseSectionBackgroundMediaData.js +1 -3
- package/dist/src/sub/DynamicLayout/components/pdsOriginal/common/assets/icons/line/index.d.ts +0 -40
- package/dist/src/sub/DynamicLayout/components/pdsOriginal/common/assets/icons/line/index.js +177 -36
- package/dist/src/sub/DynamicLayout/components/pdsOriginal/common/styles/colorSet/PaletteColor_Dark.json +4 -152
- package/dist/src/sub/DynamicLayout/components/pdsOriginal/common/styles/colorSet/PaletteColor_light.json +2 -150
- package/dist/src/sub/DynamicLayout/components/pdsOriginal/common/styles/colorSet/SemanticColor.json +1 -45
- package/dist/src/sub/DynamicLayout/components/pdsOriginal/common/styles/colorSet/UIColor.json +9 -262
- package/dist/src/sub/DynamicLayout/components/pdsOriginal/common/styles/colorSet/index.d.ts +0 -593
- package/dist/src/sub/DynamicLayout/components/pdsOriginal/common/styles/colorSet/ui-type.d.ts +0 -253
- package/dist/src/sub/DynamicLayout/components/pdsOriginal/desktop/IconButton/IconButton.d.ts +1 -3
- package/dist/src/sub/DynamicLayout/components/pdsOriginal/desktop/IconButton/IconButton.js +3 -5
- package/dist/src/sub/DynamicLayout/components/pdsOriginal/hybrid/Icon/Icon.d.ts +1 -2
- package/dist/src/sub/DynamicLayout/components/pdsOriginal/hybrid/Icon/Icon.js +2 -9
- package/dist/src/sub/DynamicLayout/mocks.d.ts +960 -8
- package/dist/src/sub/DynamicLayout/mocks.js +6 -4286
- package/dist/src/sub/DynamicLayout/sectionActionTypes.d.ts +4 -4
- package/dist/src/sub/DynamicLayout/sections/CustomSection/CustomSection.d.ts +1 -1
- package/dist/src/sub/DynamicLayout/sections/CustomSection/CustomSection.js +7 -7
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/ComponentBlockMatcher.js +3 -13
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/Button/Button.js +2 -18
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsCarousel/ContentsCarousel.d.ts +4 -4
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsCarousel/ContentsCarousel.js +3 -121
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/Image/Image.js +3 -39
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/Text/Text.js +7 -31
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/types.d.ts +1 -45
- package/dist/src/sub/DynamicLayout/sections/CustomSection/newUtils/group.d.ts +1 -1
- package/dist/src/sub/DynamicLayout/sections/CustomSection/newUtils/replaceUndefinedValues.js +1 -1
- package/dist/src/sub/DynamicLayout/sections/CustomSection/types.d.ts +10 -27
- package/dist/src/sub/DynamicLayout/sections/CustomSection/types.js +1 -3
- package/dist/src/sub/DynamicLayout/sections/CustomSection/util/effectPropParsers/parseEffectPropEntAnim.d.ts +4 -4
- package/dist/src/sub/DynamicLayout/sections/CustomSection/util/layoutPropParsers/parseLayoutPropPadding.d.ts +2 -2
- package/dist/src/sub/DynamicLayout/sections/CustomSection/util/parseJsonProperties.d.ts +2 -2
- package/dist/src/sub/DynamicLayout/sections/CustomSection/util/parsePlacement.d.ts +2 -7
- package/dist/src/sub/DynamicLayout/sections/CustomSection/util/parsePlacement.js +5 -10
- package/dist/src/sub/DynamicLayout/sections/CustomSection/util/parseProperties.d.ts +2 -2
- package/dist/src/sub/DynamicLayout/sections/CustomSection/util/types.d.ts +3 -53
- package/dist/src/sub/DynamicLayout/sections/FlexGridCustomSection.d.ts +1 -1
- package/dist/src/sub/DynamicLayout/sections/FlexGridCustomSection.js +0 -1
- package/dist/src/sub/DynamicLayout/types.d.ts +17 -64
- package/package.json +2 -3
- package/dist/src/sub/DynamicLayout/CompositionEditor/CompositionEditor.d.ts +0 -22
- package/dist/src/sub/DynamicLayout/CompositionEditor/CompositionEditor.js +0 -1133
- package/dist/src/sub/DynamicLayout/CompositionRenderer/CompositionBackground.d.ts +0 -11
- package/dist/src/sub/DynamicLayout/CompositionRenderer/CompositionBackground.js +0 -45
- package/dist/src/sub/DynamicLayout/CompositionRenderer/createCompositions.d.ts +0 -10
- package/dist/src/sub/DynamicLayout/CompositionRenderer/createCompositions.js +0 -79
- package/dist/src/sub/DynamicLayout/components/pdsOriginal/common/assets/icons/line/editorNavigationIcons/downIcons.d.ts +0 -12
- package/dist/src/sub/DynamicLayout/components/pdsOriginal/common/assets/icons/line/editorNavigationIcons/downIcons.js +0 -76
- package/dist/src/sub/DynamicLayout/components/pdsOriginal/common/assets/icons/line/editorNavigationIcons/index.d.ts +0 -4
- package/dist/src/sub/DynamicLayout/components/pdsOriginal/common/assets/icons/line/editorNavigationIcons/index.js +0 -47
- package/dist/src/sub/DynamicLayout/components/pdsOriginal/common/assets/icons/line/editorNavigationIcons/leftIcons.d.ts +0 -12
- package/dist/src/sub/DynamicLayout/components/pdsOriginal/common/assets/icons/line/editorNavigationIcons/leftIcons.js +0 -76
- package/dist/src/sub/DynamicLayout/components/pdsOriginal/common/assets/icons/line/editorNavigationIcons/rightIcons.d.ts +0 -12
- package/dist/src/sub/DynamicLayout/components/pdsOriginal/common/assets/icons/line/editorNavigationIcons/rightIcons.js +0 -76
- package/dist/src/sub/DynamicLayout/components/pdsOriginal/common/assets/icons/line/editorNavigationIcons/upIcons.d.ts +0 -12
- package/dist/src/sub/DynamicLayout/components/pdsOriginal/common/assets/icons/line/editorNavigationIcons/upIcons.js +0 -76
- package/dist/src/sub/DynamicLayout/compositionActionTypes.d.ts +0 -139
- package/dist/src/sub/DynamicLayout/compositionActionTypes.js +0 -2
- package/dist/src/sub/DynamicLayout/compositionQueryContext.d.ts +0 -8
- package/dist/src/sub/DynamicLayout/compositionQueryContext.js +0 -14
- package/dist/src/sub/DynamicLayout/mock_composition.d.ts +0 -3
- package/dist/src/sub/DynamicLayout/mock_composition.js +0 -1607
- package/dist/src/sub/DynamicLayout/mock_contentsCarousel.d.ts +0 -1
- package/dist/src/sub/DynamicLayout/mock_contentsCarousel.js +0 -1111
- package/dist/src/sub/DynamicLayout/mock_contentsList.d.ts +0 -1
- package/dist/src/sub/DynamicLayout/mock_contentsList.js +0 -1091
- package/dist/src/sub/DynamicLayout/mock_queryData.d.ts +0 -96
- package/dist/src/sub/DynamicLayout/mock_queryData.js +0 -2639
- package/dist/src/sub/DynamicLayout/mock_slideBanner.d.ts +0 -842
- package/dist/src/sub/DynamicLayout/mock_slideBanner.js +0 -854
- package/dist/src/sub/DynamicLayout/mock_video.d.ts +0 -368
- package/dist/src/sub/DynamicLayout/mock_video.js +0 -371
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsCarousel/ContentsCarouselCore.d.ts +0 -12
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsCarousel/ContentsCarouselCore.js +0 -61
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsCarousel/components/CustomNavigationNextBtn.d.ts +0 -15
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsCarousel/components/CustomNavigationNextBtn.js +0 -69
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsCarousel/components/CustomNavigationPrevBtn.d.ts +0 -15
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsCarousel/components/CustomNavigationPrevBtn.js +0 -69
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsCarousel/components/CustomProgressbar.d.ts +0 -9
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsCarousel/components/CustomProgressbar.js +0 -87
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsCarousel/components/navigationConfigs.d.ts +0 -4
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsCarousel/components/navigationConfigs.js +0 -849
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsCarousel/components/progressConfigs.d.ts +0 -43
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsCarousel/components/progressConfigs.js +0 -162
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsCarousel/contentsCarouselUtils.d.ts +0 -39
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsCarousel/contentsCarouselUtils.js +0 -182
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsCarousel/hooks/useFlexGridLayout.d.ts +0 -25
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsCarousel/hooks/useFlexGridLayout.js +0 -234
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsCarousel/hooks/useSwiper.d.ts +0 -14
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsCarousel/hooks/useSwiper.js +0 -46
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsCarousel/index.d.ts +0 -1
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsCarousel/index.js +0 -8
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsCarousel/types.d.ts +0 -139
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsList/ContentsList.d.ts +0 -8
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsList/ContentsList.js +0 -190
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsList/ContentsListCore.d.ts +0 -17
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsList/ContentsListCore.js +0 -39
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsList/components/CustomPagination.d.ts +0 -10
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsList/components/CustomPagination.js +0 -85
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsList/components/paginationConfigs.d.ts +0 -25
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsList/components/paginationConfigs.js +0 -183
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsList/contentsListUtils.d.ts +0 -29
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsList/contentsListUtils.js +0 -128
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsList/hooks/useFlexGridLayout.d.ts +0 -23
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsList/hooks/useFlexGridLayout.js +0 -230
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsList/index.d.ts +0 -1
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsList/index.js +0 -8
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsList/types.d.ts +0 -67
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsList/types.js +0 -2
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/SlideBanner/SlideBanner.d.ts +0 -8
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/SlideBanner/SlideBanner.js +0 -138
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/SlideBanner/SlideBannerCore.d.ts +0 -12
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/SlideBanner/SlideBannerCore.js +0 -39
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/SlideBanner/components/CustomNavigationNextBtn.d.ts +0 -15
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/SlideBanner/components/CustomNavigationNextBtn.js +0 -69
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/SlideBanner/components/CustomNavigationPrevBtn.d.ts +0 -15
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/SlideBanner/components/CustomNavigationPrevBtn.js +0 -69
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/SlideBanner/components/CustomPagination.d.ts +0 -20
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/SlideBanner/components/CustomPagination.js +0 -173
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/SlideBanner/components/CustomProgressbar.d.ts +0 -9
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/SlideBanner/components/CustomProgressbar.js +0 -87
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/SlideBanner/components/navigationConfigs.d.ts +0 -4
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/SlideBanner/components/navigationConfigs.js +0 -849
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/SlideBanner/components/progressConfigs.d.ts +0 -43
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/SlideBanner/components/progressConfigs.js +0 -162
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/SlideBanner/hooks/useFlexGridLayout.d.ts +0 -26
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/SlideBanner/hooks/useFlexGridLayout.js +0 -235
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/SlideBanner/hooks/useSwiper.d.ts +0 -16
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/SlideBanner/hooks/useSwiper.js +0 -63
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/SlideBanner/index.d.ts +0 -1
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/SlideBanner/index.js +0 -8
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/SlideBanner/slideBannerUtils.d.ts +0 -46
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/SlideBanner/slideBannerUtils.js +0 -186
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/SlideBanner/types.d.ts +0 -163
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/SlideBanner/types.js +0 -2
- package/dist/src/sub/DynamicLayout/sections/CustomSection/util/parseCompositionPlacement.d.ts +0 -14
- package/dist/src/sub/DynamicLayout/sections/CustomSection/util/parseCompositionPlacement.js +0 -26
- /package/dist/src/{sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsCarousel → desktop/components/Calendar}/types.js +0 -0
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import type { Layout } from 'publ-echo
|
|
3
|
-
import type { ResizeEventType } from 'publ-echo
|
|
4
|
-
import type { ComponentBlock, GroupBlock } from 'publ-echo
|
|
5
|
-
import type { LayoutItem, Layouts } from 'publ-echo
|
|
2
|
+
import type { Layout } from 'publ-echo/dist/lib';
|
|
3
|
+
import type { ResizeEventType } from 'publ-echo/dist/lib/GridItem/types';
|
|
4
|
+
import type { ComponentBlock, GroupBlock } from 'publ-echo/dist/lib/GridLayoutEditor/group';
|
|
5
|
+
import type { LayoutItem, Layouts } from 'publ-echo/dist/lib/GridLayoutEditor/types';
|
|
6
6
|
export type TypeOfSectionAction = ActionMap<ActionHandlerPayload>[keyof ActionMap<ActionHandlerPayload>];
|
|
7
7
|
export type PayloadCBType = {
|
|
8
8
|
type: ComponentBlock['type'];
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import type { ISection } from '../../types';
|
|
3
|
-
import type { Layout } from 'publ-echo
|
|
3
|
+
import type { Layout } from 'publ-echo/dist/lib/GridLayoutEditor/types';
|
|
4
4
|
export type LayoutsType = {
|
|
5
5
|
sm: Layout;
|
|
6
6
|
lg: Layout;
|
|
@@ -51,9 +51,9 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
51
51
|
};
|
|
52
52
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
53
53
|
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
54
|
-
var
|
|
55
|
-
var group_1 = require("publ-echo
|
|
56
|
-
var renderHelpers_1 = require("publ-echo
|
|
54
|
+
var publ_echo_1 = require("publ-echo");
|
|
55
|
+
var group_1 = require("publ-echo/dist/lib/GridLayoutEditor/group");
|
|
56
|
+
var renderHelpers_1 = require("publ-echo/dist/lib/GridLayoutEditor/utils/renderHelpers");
|
|
57
57
|
var react_1 = __importStar(require("react"));
|
|
58
58
|
var ErrorBoundary_1 = require("../../../DynamicLayout/components/Section/ErrorBoundary");
|
|
59
59
|
var dynamicLayoutContext_1 = require("../../../DynamicLayout/dynamicLayoutContext");
|
|
@@ -66,7 +66,7 @@ var clsx_1 = require("./newUtils/clsx");
|
|
|
66
66
|
var group_2 = require("./newUtils/group");
|
|
67
67
|
var util_1 = require("./util");
|
|
68
68
|
var parseSectionPadding_1 = __importDefault(require("./util/layoutPropParsers/parseSectionPadding"));
|
|
69
|
-
var Responsive = (0,
|
|
69
|
+
var Responsive = (0, publ_echo_1.WidthProvider)(publ_echo_1.ResponsiveGridEditor);
|
|
70
70
|
var GRID_CELL_MIN = 24;
|
|
71
71
|
var DESKTOP_GRID_COLS = 24;
|
|
72
72
|
var MOBILE_GRID_COLS = 8;
|
|
@@ -74,7 +74,7 @@ var GLE_MIN_WIDTH_DESKTOP_PX = "".concat(GRID_CELL_MIN * DESKTOP_GRID_COLS, "px"
|
|
|
74
74
|
var GLE_MIN_WIDTH_MOBILE_PX = "".concat(GRID_CELL_MIN * MOBILE_GRID_COLS, "px");
|
|
75
75
|
var CustomSection = (0, react_1.forwardRef)(function CustomSection(props, ref) {
|
|
76
76
|
var _a, _b, _c, _d;
|
|
77
|
-
var _e = (0, react_1.useContext)(dynamicLayoutContext_1.dynamicLayoutContext), device = _e.device, editingSectionId = _e.editingSectionId, mode = _e.mode, shortcutKeyMode = _e.shortcutKeyMode, zoomScale = _e.zoomScale,
|
|
77
|
+
var _e = (0, react_1.useContext)(dynamicLayoutContext_1.dynamicLayoutContext), device = _e.device, editingSectionId = _e.editingSectionId, mode = _e.mode, shortcutKeyMode = _e.shortcutKeyMode, zoomScale = _e.zoomScale, sectionActionHandler = _e.sectionActionHandler;
|
|
78
78
|
var componentBlocks = props.componentBlocks, jsonProperties = props.jsonProperties;
|
|
79
79
|
var sectionPedigree = jsonProperties === null || jsonProperties === void 0 ? void 0 : jsonProperties.pedigree;
|
|
80
80
|
var _f = (0, react_1.useState)(sectionPedigree), pedigreeState = _f[0], setPedigreeState = _f[1];
|
|
@@ -92,7 +92,7 @@ var CustomSection = (0, react_1.forwardRef)(function CustomSection(props, ref) {
|
|
|
92
92
|
var isEditMode = mode === 'EDIT';
|
|
93
93
|
var layoutByDevice = device === 'DESKTOP' ? 'lg' : 'sm';
|
|
94
94
|
var _m = (0, react_1.useState)(function () {
|
|
95
|
-
var _a = (0, util_1.parsePlacement)(componentBlocks !== null && componentBlocks !== void 0 ? componentBlocks : [], zOrders
|
|
95
|
+
var _a = (0, util_1.parsePlacement)(componentBlocks !== null && componentBlocks !== void 0 ? componentBlocks : [], zOrders), lg = _a.lg, sm = _a.sm;
|
|
96
96
|
return {
|
|
97
97
|
lg: lg,
|
|
98
98
|
sm: sm
|
|
@@ -131,7 +131,7 @@ var CustomSection = (0, react_1.forwardRef)(function CustomSection(props, ref) {
|
|
|
131
131
|
};
|
|
132
132
|
}, [componentBlocks]);
|
|
133
133
|
(0, react_1.useLayoutEffect)(function () {
|
|
134
|
-
var parsedLayouts = (0, util_1.parsePlacement)(componentBlocks !== null && componentBlocks !== void 0 ? componentBlocks : [], zOrders
|
|
134
|
+
var parsedLayouts = (0, util_1.parsePlacement)(componentBlocks !== null && componentBlocks !== void 0 ? componentBlocks : [], zOrders);
|
|
135
135
|
setLayouts(function (prev) {
|
|
136
136
|
var _a;
|
|
137
137
|
var _b;
|
|
@@ -19,13 +19,11 @@ require("react");
|
|
|
19
19
|
var newUtils_1 = require("../../newUtils");
|
|
20
20
|
var types_1 = require("../../types");
|
|
21
21
|
var Button_1 = __importDefault(require("./componentBlocks/Button/Button"));
|
|
22
|
-
var ContentsCarousel_1 = require("./componentBlocks/ContentsCarousel");
|
|
23
|
-
var ContentsList_1 = require("./componentBlocks/ContentsList");
|
|
22
|
+
var ContentsCarousel_1 = __importDefault(require("./componentBlocks/ContentsCarousel/ContentsCarousel"));
|
|
24
23
|
var Divider_1 = __importDefault(require("./componentBlocks/Divider/Divider"));
|
|
25
24
|
var Embed_1 = __importDefault(require("./componentBlocks/Embed/Embed"));
|
|
26
25
|
var Image_1 = __importDefault(require("./componentBlocks/Image/Image"));
|
|
27
26
|
var RichText_1 = require("./componentBlocks/RichText");
|
|
28
|
-
var SlideBanner_1 = require("./componentBlocks/SlideBanner");
|
|
29
27
|
var Text_1 = __importDefault(require("./componentBlocks/Text/Text"));
|
|
30
28
|
var Twitter_1 = __importDefault(require("./componentBlocks/Twitter/Twitter"));
|
|
31
29
|
var VideoPlayer_1 = require("./componentBlocks/VideoPlayer");
|
|
@@ -53,17 +51,9 @@ function ComponentBlockMatcher(_a) {
|
|
|
53
51
|
return (0, jsx_runtime_1.jsx)(Embed_1.default, __assign({}, propsWithValue, { index: index }));
|
|
54
52
|
case types_1.CB_ALL_CODES.CB_VIDEOPLAYER:
|
|
55
53
|
return (0, jsx_runtime_1.jsx)(VideoPlayer_1.VideoPlayer, __assign({}, propsWithValue, { index: index }));
|
|
56
|
-
case types_1.CB_ALL_CODES.
|
|
54
|
+
case types_1.CB_ALL_CODES.CB_CONTENTS_CAROUSEL: {
|
|
57
55
|
var compositions = cbProps.compositions;
|
|
58
|
-
return ((0, jsx_runtime_1.jsx)(ContentsCarousel_1.
|
|
59
|
-
}
|
|
60
|
-
case types_1.CB_ALL_CODES.CB_SLIDEBANNER: {
|
|
61
|
-
var compositions = cbProps.compositions;
|
|
62
|
-
return ((0, jsx_runtime_1.jsx)(SlideBanner_1.SlideBanner, __assign({}, propsWithValue, { compositions: compositions, index: index })));
|
|
63
|
-
}
|
|
64
|
-
case types_1.CB_ALL_CODES.CB_LIST: {
|
|
65
|
-
var compositions = cbProps.compositions;
|
|
66
|
-
return ((0, jsx_runtime_1.jsx)(ContentsList_1.ContentsList, __assign({}, propsWithValue, { compositions: compositions, index: index })));
|
|
56
|
+
return ((0, jsx_runtime_1.jsx)(ContentsCarousel_1.default, __assign({}, propsWithValue, { compositions: compositions, index: index })));
|
|
67
57
|
}
|
|
68
58
|
default:
|
|
69
59
|
return (0, jsx_runtime_1.jsx)("div", { children: "Error: not supported CB" });
|
|
@@ -29,7 +29,6 @@ var jsx_runtime_1 = require("react/jsx-runtime");
|
|
|
29
29
|
/* eslint-disable react/destructuring-assignment */
|
|
30
30
|
var react_1 = require("react");
|
|
31
31
|
var DynamicLayout_1 = require("../../../../../../../DynamicLayout");
|
|
32
|
-
var compositionQueryContext_1 = require("../../../../../../../DynamicLayout/compositionQueryContext");
|
|
33
32
|
var hooks_1 = require("../../../../../../../DynamicLayout/sections/CustomSection/hooks");
|
|
34
33
|
var useGoogleFonts_1 = require("../../../../../../../DynamicLayout/sections/CustomSection/hooks/useGoogleFonts");
|
|
35
34
|
var newUtils_1 = require("../../../../../../../DynamicLayout/sections/CustomSection/newUtils");
|
|
@@ -41,24 +40,9 @@ var S_HiddenCover_1 = require("../components/S_HiddenCover");
|
|
|
41
40
|
var useCLINK_1 = __importDefault(require("../hooks/useCLINK"));
|
|
42
41
|
function Button(props) {
|
|
43
42
|
var _a = (0, react_1.useContext)(DynamicLayout_1.dynamicLayoutContext), device = _a.device, mode = _a.mode;
|
|
44
|
-
var
|
|
45
|
-
var index = props.index, CB_STYLE_PROP_COLOR = props.CB_STYLE_PROP_COLOR, _b = props.CB_CONTENT_PROP_CLINK, CB_CONTENT_PROP_CLINK_SPEC_SRC = _b.CB_CONTENT_PROP_CLINK_SPEC_SRC, CB_CONTENT_PROP_CLINK_SPEC_TYPE = _b.CB_CONTENT_PROP_CLINK_SPEC_TYPE, CB_CONTENT_PROP_CLINK_SPEC_NEWTAB = _b.CB_CONTENT_PROP_CLINK_SPEC_NEWTAB, CB_CONTENT_PROP_CLINK_SPEC_INTERNALSRC = _b.CB_CONTENT_PROP_CLINK_SPEC_INTERNALSRC, CB_CONTENT_PROP_CLINK_SPEC_VALUETYPE = _b.CB_CONTENT_PROP_CLINK_SPEC_VALUETYPE, CB_CONTENT_PROP_CLINK_SPEC_CONNECTDATA = _b.CB_CONTENT_PROP_CLINK_SPEC_CONNECTDATA, CB_STYLE_PROP_SHADOW = props.CB_STYLE_PROP_SHADOW, CB_EFFECT_PROP_ENTANIM = props.CB_EFFECT_PROP_ENTANIM;
|
|
46
|
-
var cLinkValue = function () {
|
|
47
|
-
if (CB_CONTENT_PROP_CLINK_SPEC_VALUETYPE === 'DATA' ||
|
|
48
|
-
CB_CONTENT_PROP_CLINK_SPEC_VALUETYPE === 'DELEGATEDDATA') {
|
|
49
|
-
if (!(queryContext === null || queryContext === void 0 ? void 0 : queryContext.queryData)) {
|
|
50
|
-
return '';
|
|
51
|
-
}
|
|
52
|
-
var link = queryContext.queryData[CB_CONTENT_PROP_CLINK_SPEC_CONNECTDATA];
|
|
53
|
-
if (!link) {
|
|
54
|
-
return '';
|
|
55
|
-
}
|
|
56
|
-
return link;
|
|
57
|
-
}
|
|
58
|
-
return CB_CONTENT_PROP_CLINK_SPEC_SRC;
|
|
59
|
-
};
|
|
43
|
+
var index = props.index, CB_STYLE_PROP_COLOR = props.CB_STYLE_PROP_COLOR, _b = props.CB_CONTENT_PROP_CLINK, CB_CONTENT_PROP_CLINK_SPEC_SRC = _b.CB_CONTENT_PROP_CLINK_SPEC_SRC, CB_CONTENT_PROP_CLINK_SPEC_TYPE = _b.CB_CONTENT_PROP_CLINK_SPEC_TYPE, CB_CONTENT_PROP_CLINK_SPEC_NEWTAB = _b.CB_CONTENT_PROP_CLINK_SPEC_NEWTAB, CB_CONTENT_PROP_CLINK_SPEC_INTERNALSRC = _b.CB_CONTENT_PROP_CLINK_SPEC_INTERNALSRC, CB_STYLE_PROP_SHADOW = props.CB_STYLE_PROP_SHADOW, CB_EFFECT_PROP_ENTANIM = props.CB_EFFECT_PROP_ENTANIM;
|
|
60
44
|
var _c = (0, useCLINK_1.default)({
|
|
61
|
-
src:
|
|
45
|
+
src: CB_CONTENT_PROP_CLINK_SPEC_SRC,
|
|
62
46
|
type: CB_CONTENT_PROP_CLINK_SPEC_TYPE,
|
|
63
47
|
openNewTab: CB_CONTENT_PROP_CLINK_SPEC_NEWTAB,
|
|
64
48
|
internalSrc: String(CB_CONTENT_PROP_CLINK_SPEC_INTERNALSRC)
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import type {
|
|
3
|
-
import type {
|
|
4
|
-
type Props =
|
|
5
|
-
compositions:
|
|
2
|
+
import type { CB_CONTENTS_CAROUSEL } from '../../../../../../../DynamicLayout/sections/CustomSection/types';
|
|
3
|
+
import type { CB_BTN_PROPERTIES_TYPE, IndexForIntersection } from '../../../../../../../DynamicLayout/sections/CustomSection/util/types';
|
|
4
|
+
type Props = CB_BTN_PROPERTIES_TYPE & IndexForIntersection & {
|
|
5
|
+
compositions: CB_CONTENTS_CAROUSEL['compositions'];
|
|
6
6
|
};
|
|
7
7
|
declare function ContentsCarousel(props: Props): JSX.Element;
|
|
8
8
|
export default ContentsCarousel;
|
|
@@ -1,130 +1,12 @@
|
|
|
1
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
2
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
18
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
19
4
|
};
|
|
20
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
21
6
|
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
22
|
-
var
|
|
23
|
-
var createCompositions_1 = require("../../../../../../../DynamicLayout/CompositionRenderer/createCompositions");
|
|
24
|
-
var dynamicLayoutContext_1 = require("../../../../../../../DynamicLayout/dynamicLayoutContext");
|
|
25
|
-
var hooks_1 = require("../../../../../../../DynamicLayout/sections/CustomSection/hooks");
|
|
26
|
-
var util_1 = require("../../../../../../../DynamicLayout/sections/CustomSection/util");
|
|
27
|
-
var styled_components_1 = __importDefault(require("styled-components"));
|
|
28
|
-
var S_CB_AnimationObserverBox_1 = require("../components/S_CB_AnimationObserverBox");
|
|
29
|
-
var S_CB_BoxWithShadow_1 = require("../components/S_CB_BoxWithShadow");
|
|
30
|
-
var CustomNavigationNextBtn_1 = require("./components/CustomNavigationNextBtn");
|
|
31
|
-
var CustomNavigationPrevBtn_1 = require("./components/CustomNavigationPrevBtn");
|
|
32
|
-
var CustomProgressbar_1 = require("./components/CustomProgressbar");
|
|
33
|
-
var ContentsCarouselCore_1 = __importDefault(require("./ContentsCarouselCore"));
|
|
34
|
-
var contentsCarouselUtils_1 = require("./contentsCarouselUtils");
|
|
35
|
-
var useFlexGridLayout_1 = require("./hooks/useFlexGridLayout");
|
|
36
|
-
var useSwiper_1 = require("./hooks/useSwiper");
|
|
7
|
+
var CompositionRenderer_1 = __importDefault(require("../../../../../../../DynamicLayout/CompositionRenderer/CompositionRenderer"));
|
|
37
8
|
function ContentsCarousel(props) {
|
|
38
|
-
var
|
|
39
|
-
|
|
40
|
-
var _c = (0, util_1.parseProperties)(props, device), style = _c.style, hoverStyle = _c.hoverStyle, layout = _c.layout, effect = _c.effect;
|
|
41
|
-
var _d = (0, contentsCarouselUtils_1.parseCarouselStyleToCarouselCoreProp)({
|
|
42
|
-
props: CB_STYLE_PROP_CONTENTSCAROUSEL,
|
|
43
|
-
contentsPropsPartials: { CB_CONTENT_PROP_CONTENTSCAROUSEL_SPEC_DISPLAYCOUNTS: CB_CONTENT_PROP_CONTENTSCAROUSEL_SPEC_DISPLAYCOUNTS },
|
|
44
|
-
device: device
|
|
45
|
-
}), contentsCarouselNormalStyle = _d.normalStyle, contentsCarouselHoverStyle = _d.hoverStyle;
|
|
46
|
-
var _e = (0, contentsCarouselUtils_1.parseCarouselStyleToCustomNavigationProp)({
|
|
47
|
-
props: CB_STYLE_PROP_CONTENTSCAROUSEL,
|
|
48
|
-
device: device
|
|
49
|
-
}), customNavigationNormalStyle = _e.normalStyle, customNavigationHoverStyle = _e.hoverStyle;
|
|
50
|
-
var _f = (0, contentsCarouselUtils_1.parseCarouselStyleToCustomProgressbarProp)({
|
|
51
|
-
props: CB_STYLE_PROP_CONTENTSCAROUSEL,
|
|
52
|
-
device: device
|
|
53
|
-
}), customProgressbarNormalStyle = _f.normalStyle, customProgressbarHoverStyle = _f.hoverStyle;
|
|
54
|
-
var _g = (0, useSwiper_1.useSwiper)(), swiperRef = _g.swiperRef, progressRef = _g.progressRef, leftTimeMsRef = _g.leftTimeMsRef, isBeginning = _g.isBeginning, isEnd = _g.isEnd, onSwiper = _g.onSwiper, onSlideChangeTransitionEnd = _g.onSlideChangeTransitionEnd, onAutoplayTimeLeft = _g.onAutoplayTimeLeft, onClickPrevBtn = _g.onClickPrevBtn, onClickNextBtn = _g.onClickNextBtn;
|
|
55
|
-
var _h = (0, react_1.useState)(false), isHovered = _h[0], setIsHovered = _h[1];
|
|
56
|
-
var loop = isHovered ? contentsCarouselHoverStyle.loop : contentsCarouselNormalStyle.loop;
|
|
57
|
-
// NOTE: edit모드에서는 그리드의 이벤트만 작동하도록 CB의 포인터 이벤트는 막습니다.
|
|
58
|
-
var editModeStyle = mode === 'EDIT' ? { pointerEvents: 'none' } : {};
|
|
59
|
-
// NOTE: EFFECT와 관련된 함수들입니다.
|
|
60
|
-
var cbRef = (0, react_1.useRef)(null);
|
|
61
|
-
var entry = (0, hooks_1.useIntersectionObserver)(cbRef, { threshold: 0.2, freezeOnceVisible: false }, [
|
|
62
|
-
index
|
|
63
|
-
]);
|
|
64
|
-
var isVisible = !!(entry === null || entry === void 0 ? void 0 : entry.isIntersecting);
|
|
65
|
-
var effectCssProperties = isVisible ? effect : {};
|
|
66
|
-
var isNoneEffectType = device === 'DESKTOP'
|
|
67
|
-
? CB_EFFECT_PROP_ENTANIM.CB_EFFECT_PROP_ENTANIM_SPEC_TYPE === 'NONE'
|
|
68
|
-
: CB_EFFECT_PROP_ENTANIM['CB_EFFECT_PROP_ENTANIM_SPEC_TYPE:MOBILE'] === 'NONE';
|
|
69
|
-
var hasEffect = !isNoneEffectType;
|
|
70
|
-
var effectVisibleStyle = hasEffect ? { opacity: isVisible ? 1 : 0 } : {};
|
|
71
|
-
var _j = (0, useFlexGridLayout_1.useFlexGridLayout)({
|
|
72
|
-
prevBtnLocation: (isHovered
|
|
73
|
-
? customNavigationHoverStyle.prevBtnLocation
|
|
74
|
-
: customNavigationNormalStyle.prevBtnLocation) || 'OUTSET1',
|
|
75
|
-
nextBtnLocation: (isHovered
|
|
76
|
-
? customNavigationHoverStyle.nextBtnLocation
|
|
77
|
-
: customNavigationNormalStyle.nextBtnLocation) || 'OUTSET1',
|
|
78
|
-
progressBarLocation: 'INSET5' // TODO: Design별 위치 선정 필요
|
|
79
|
-
}), layoutRef = _j.layoutRef, positionRefs = _j.positionRefs, ccbInset = _j.ccbInset, componentGroups = _j.componentGroups, getPositionStyle = _j.getPositionStyle, getComponentGroupLayout = _j.getComponentGroupLayout;
|
|
80
|
-
var renderElements = function (component) {
|
|
81
|
-
switch (component.type) {
|
|
82
|
-
case 'PREV':
|
|
83
|
-
return ((0, jsx_runtime_1.jsx)(CustomNavigationPrevBtn_1.CustomNavigationPrevBtn, { isDisabled: loop ? false : isBeginning, styles: isHovered ? customNavigationHoverStyle : customNavigationNormalStyle, onClick: onClickPrevBtn }));
|
|
84
|
-
case 'NEXT':
|
|
85
|
-
return ((0, jsx_runtime_1.jsx)(CustomNavigationNextBtn_1.CustomNavigationNextBtn, { isDisabled: loop ? false : isEnd, styles: isHovered ? customNavigationHoverStyle : customNavigationNormalStyle, onClick: onClickNextBtn }));
|
|
86
|
-
case 'PROGRESSBAR':
|
|
87
|
-
return ((0, jsx_runtime_1.jsx)(CustomProgressbar_1.CustomProgressbar, { progressRef: progressRef, leftTimeMsRef: leftTimeMsRef, styles: isHovered ? customProgressbarHoverStyle : customProgressbarNormalStyle }));
|
|
88
|
-
default:
|
|
89
|
-
return null;
|
|
90
|
-
}
|
|
91
|
-
};
|
|
92
|
-
return ((0, jsx_runtime_1.jsx)(S_CB_AnimationObserverBox_1.S_CB_AnimationObserverBox, __assign({ ref: hasEffect ? cbRef : null, effectVisibleStyle: effectVisibleStyle }, { children: (0, jsx_runtime_1.jsx)(S_CB_BoxWithShadow_1.S_CB_BoxWithShadow, __assign({ className: "cb-layout-box", normalStyle: __assign(__assign(__assign(__assign(__assign({}, style), layout), effectCssProperties), editModeStyle), { overflow: 'hidden' }), hoverStyle: __assign(__assign({}, hoverStyle), { overflow: 'hidden' }), cbStylePropsShadowSpecs: CB_STYLE_PROP_SHADOW, device: device, onMouseEnter: function () { return setIsHovered(true); }, onMouseLeave: function () { return setIsHovered(false); } }, { children: (0, jsx_runtime_1.jsxs)(S_SwiperLayout, __assign({ className: "cb-contentscarousel-layout-box", ref: layoutRef }, { children: [(0, jsx_runtime_1.jsx)(S_SwiperWrapper, __assign({ className: "cb-contentscarousel-wrapper", ccbInset: ccbInset, customStyle: isHovered
|
|
93
|
-
? contentsCarouselHoverStyle === null || contentsCarouselHoverStyle === void 0 ? void 0 : contentsCarouselHoverStyle.customStyle
|
|
94
|
-
: contentsCarouselNormalStyle === null || contentsCarouselNormalStyle === void 0 ? void 0 : contentsCarouselNormalStyle.customStyle }, { children: (0, jsx_runtime_1.jsx)(ContentsCarouselCore_1.default, __assign({ ref: swiperRef, className: "cb-contentscarousel", onSwiper: onSwiper, onSlideChangeTransitionEnd: onSlideChangeTransitionEnd, onAutoplayTimeLeft: onAutoplayTimeLeft, slidesPerView: CB_CONTENT_PROP_CONTENTSCAROUSEL_SPEC_DISPLAYCOUNTS, styles: isHovered ? contentsCarouselHoverStyle : contentsCarouselNormalStyle }, { children: (0, createCompositions_1.createCompositions)({
|
|
95
|
-
valueType: CB_CONTENT_PROP_CONTENTSCAROUSEL_SPEC_VALUETYPE,
|
|
96
|
-
queryPath: CB_CONTENT_PROP_CONTENTSCAROUSEL_SPEC_CONNECTDATA,
|
|
97
|
-
limit: CB_CONTENT_PROP_CONTENTSCAROUSEL_SPEC_ITEMCOUNTS,
|
|
98
|
-
queryData: queryData,
|
|
99
|
-
compositions: compositions
|
|
100
|
-
}) })) })), Object.entries(componentGroups).map(function (_a) {
|
|
101
|
-
var position = _a[0], groupComponents = _a[1];
|
|
102
|
-
return ((0, jsx_runtime_1.jsx)("div", __assign({ className: "cb-contentscarousel-button-group", ref: function (el) {
|
|
103
|
-
if (el) {
|
|
104
|
-
positionRefs.current[position] = el;
|
|
105
|
-
}
|
|
106
|
-
else {
|
|
107
|
-
delete positionRefs.current[position];
|
|
108
|
-
}
|
|
109
|
-
}, style: __assign(__assign({}, getPositionStyle(position, ccbInset)), { zIndex: 3 }) }, { children: (0, jsx_runtime_1.jsx)("div", __assign({ className: "cb-contentscarousel-button-layout-box", style: getComponentGroupLayout(groupComponents, position) }, { children: groupComponents.map(function (component) { return renderElements(component); }) })) }), position));
|
|
110
|
-
})] })) })) })));
|
|
9
|
+
var compositions = props.compositions;
|
|
10
|
+
return (0, jsx_runtime_1.jsx)(CompositionRenderer_1.default, { compositions: compositions });
|
|
111
11
|
}
|
|
112
|
-
var S_SwiperLayout = styled_components_1.default.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n height: 100%;\n margin: 0 auto;\n position: relative;\n width: 100%;\n"], ["\n height: 100%;\n margin: 0 auto;\n position: relative;\n width: 100%;\n"])));
|
|
113
|
-
var S_SwiperWrapper = styled_components_1.default.div(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n bottom: ", ";\n left: ", ";\n position: absolute;\n right: ", ";\n top: ", ";\n ", ";\n"], ["\n bottom: ", ";\n left: ", ";\n position: absolute;\n right: ", ";\n top: ", ";\n ", ";\n"])), function (_a) {
|
|
114
|
-
var ccbInset = _a.ccbInset;
|
|
115
|
-
return ccbInset.bottom;
|
|
116
|
-
}, function (_a) {
|
|
117
|
-
var ccbInset = _a.ccbInset;
|
|
118
|
-
return ccbInset.left;
|
|
119
|
-
}, function (_a) {
|
|
120
|
-
var ccbInset = _a.ccbInset;
|
|
121
|
-
return ccbInset.right;
|
|
122
|
-
}, function (_a) {
|
|
123
|
-
var ccbInset = _a.ccbInset;
|
|
124
|
-
return ccbInset.top;
|
|
125
|
-
}, function (_a) {
|
|
126
|
-
var customStyle = _a.customStyle;
|
|
127
|
-
return customStyle;
|
|
128
|
-
});
|
|
129
12
|
exports.default = ContentsCarousel;
|
|
130
|
-
var templateObject_1, templateObject_2;
|
|
@@ -44,7 +44,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
44
44
|
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
45
45
|
var react_1 = require("react");
|
|
46
46
|
var DynamicLayout_1 = require("../../../../../../../DynamicLayout");
|
|
47
|
-
var compositionQueryContext_1 = require("../../../../../../../DynamicLayout/compositionQueryContext");
|
|
48
47
|
var styled_components_1 = __importStar(require("styled-components"));
|
|
49
48
|
var hooks_1 = require("../../../../hooks");
|
|
50
49
|
var util_1 = require("../../../../util");
|
|
@@ -54,24 +53,9 @@ var S_HiddenCover_1 = require("../components/S_HiddenCover");
|
|
|
54
53
|
var useCLINK_1 = __importDefault(require("../hooks/useCLINK"));
|
|
55
54
|
function Image(props) {
|
|
56
55
|
var _a = (0, react_1.useContext)(DynamicLayout_1.dynamicLayoutContext), device = _a.device, mode = _a.mode;
|
|
57
|
-
var
|
|
58
|
-
var index = props.index, CB_CONTENT_PROP_IMAGE = props.CB_CONTENT_PROP_IMAGE, _b = props.CB_CONTENT_PROP_CLINK, CB_CONTENT_PROP_CLINK_SPEC_SRC = _b.CB_CONTENT_PROP_CLINK_SPEC_SRC, CB_CONTENT_PROP_CLINK_SPEC_TYPE = _b.CB_CONTENT_PROP_CLINK_SPEC_TYPE, CB_CONTENT_PROP_CLINK_SPEC_NEWTAB = _b.CB_CONTENT_PROP_CLINK_SPEC_NEWTAB, CB_CONTENT_PROP_CLINK_SPEC_INTERNALSRC = _b.CB_CONTENT_PROP_CLINK_SPEC_INTERNALSRC, CB_CONTENT_PROP_CLINK_SPEC_VALUETYPE = _b.CB_CONTENT_PROP_CLINK_SPEC_VALUETYPE, CB_CONTENT_PROP_CLINK_SPEC_CONNECTDATA = _b.CB_CONTENT_PROP_CLINK_SPEC_CONNECTDATA, CB_STYLE_PROP_SHADOW = props.CB_STYLE_PROP_SHADOW, CB_EFFECT_PROP_ENTANIM = props.CB_EFFECT_PROP_ENTANIM;
|
|
59
|
-
var cLinkValue = function () {
|
|
60
|
-
if (CB_CONTENT_PROP_CLINK_SPEC_VALUETYPE === 'DATA' ||
|
|
61
|
-
CB_CONTENT_PROP_CLINK_SPEC_VALUETYPE === 'DELEGATEDDATA') {
|
|
62
|
-
if (!(queryContext === null || queryContext === void 0 ? void 0 : queryContext.queryData)) {
|
|
63
|
-
return "ERROR: QueryData NOT FOUND";
|
|
64
|
-
}
|
|
65
|
-
var link = queryContext.queryData[CB_CONTENT_PROP_CLINK_SPEC_CONNECTDATA];
|
|
66
|
-
if (!link) {
|
|
67
|
-
return "ERROR: ".concat(CB_CONTENT_PROP_CLINK_SPEC_CONNECTDATA, " NOT found from queryData");
|
|
68
|
-
}
|
|
69
|
-
return link;
|
|
70
|
-
}
|
|
71
|
-
return CB_CONTENT_PROP_CLINK_SPEC_SRC;
|
|
72
|
-
};
|
|
56
|
+
var index = props.index, CB_CONTENT_PROP_IMAGE = props.CB_CONTENT_PROP_IMAGE, _b = props.CB_CONTENT_PROP_CLINK, CB_CONTENT_PROP_CLINK_SPEC_SRC = _b.CB_CONTENT_PROP_CLINK_SPEC_SRC, CB_CONTENT_PROP_CLINK_SPEC_TYPE = _b.CB_CONTENT_PROP_CLINK_SPEC_TYPE, CB_CONTENT_PROP_CLINK_SPEC_NEWTAB = _b.CB_CONTENT_PROP_CLINK_SPEC_NEWTAB, CB_CONTENT_PROP_CLINK_SPEC_INTERNALSRC = _b.CB_CONTENT_PROP_CLINK_SPEC_INTERNALSRC, CB_STYLE_PROP_SHADOW = props.CB_STYLE_PROP_SHADOW, CB_EFFECT_PROP_ENTANIM = props.CB_EFFECT_PROP_ENTANIM;
|
|
73
57
|
var _c = (0, useCLINK_1.default)({
|
|
74
|
-
src:
|
|
58
|
+
src: CB_CONTENT_PROP_CLINK_SPEC_SRC,
|
|
75
59
|
type: CB_CONTENT_PROP_CLINK_SPEC_TYPE,
|
|
76
60
|
openNewTab: CB_CONTENT_PROP_CLINK_SPEC_NEWTAB,
|
|
77
61
|
internalSrc: String(CB_CONTENT_PROP_CLINK_SPEC_INTERNALSRC)
|
|
@@ -90,27 +74,7 @@ function Image(props) {
|
|
|
90
74
|
: CB_EFFECT_PROP_ENTANIM['CB_EFFECT_PROP_ENTANIM_SPEC_TYPE:MOBILE'] === 'NONE';
|
|
91
75
|
var hasEffect = !isNoneEffectType;
|
|
92
76
|
var effectVisibleStyle = hasEffect ? { opacity: isVisible ? 1 : 0 } : {};
|
|
93
|
-
|
|
94
|
-
var isDataConnected = CB_CONTENT_PROP_IMAGE.CB_CONTENT_PROP_IMAGE_SPEC_VALUETYPE === 'DATA' ||
|
|
95
|
-
CB_CONTENT_PROP_IMAGE.CB_CONTENT_PROP_IMAGE_SPEC_VALUETYPE === 'DELEGATEDDATA';
|
|
96
|
-
if (!isDataConnected) {
|
|
97
|
-
return CB_CONTENT_PROP_IMAGE.CB_CONTENT_PROP_IMAGE_SPEC_SELECTOR;
|
|
98
|
-
}
|
|
99
|
-
if (!(queryContext === null || queryContext === void 0 ? void 0 : queryContext.queryData)) {
|
|
100
|
-
// eslint-disable-next-line
|
|
101
|
-
console.warn('ERROR: No query data found');
|
|
102
|
-
return 'ERROR';
|
|
103
|
-
}
|
|
104
|
-
if (!queryContext.queryData[CB_CONTENT_PROP_IMAGE.CB_CONTENT_PROP_IMAGE_SPEC_CONNECTDATA]) {
|
|
105
|
-
// eslint-disable-next-line
|
|
106
|
-
console.warn("ERROR: ".concat(CB_CONTENT_PROP_IMAGE.CB_CONTENT_PROP_IMAGE_SPEC_CONNECTDATA, " NOT found in query data"));
|
|
107
|
-
return 'ERROR';
|
|
108
|
-
}
|
|
109
|
-
return queryContext.queryData[CB_CONTENT_PROP_IMAGE.CB_CONTENT_PROP_IMAGE_SPEC_CONNECTDATA];
|
|
110
|
-
};
|
|
111
|
-
return ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [isEditModeAndHidden && (0, jsx_runtime_1.jsx)(S_HiddenCover_1.S_HiddenCover, {}), (0, jsx_runtime_1.jsx)(S_CB_AnimationObserverBox_1.S_CB_AnimationObserverBox, __assign({ ref: hasEffect ? cbRef : null, effectVisibleStyle: effectVisibleStyle }, { children: (0, jsx_runtime_1.jsx)(S_ImageWrapper, __assign({ style: __assign({}, effectCssProperties) }, { children: (0, jsx_runtime_1.jsx)(S_CB_BoxWithShadow_1.S_CB_BoxWithShadow, __assign({ className: "cb-layout-box", normalStyle: __assign(__assign(__assign(__assign({}, layout), { overflow: 'hidden' }), boxStyle.normal), { cursor: CLINKCursor }), hoverStyle: __assign({}, boxStyle.hover), cbStylePropsShadowSpecs: CB_STYLE_PROP_SHADOW, device: device, onClick: onClickCLINK }, { children: (0, jsx_runtime_1.jsx)(S_Image, { src: imgSrc() === 'ERROR'
|
|
112
|
-
? 'https://static.publ.site/pages-sample/img_cb_style_prop_bgmedia_spec_imageselector_01.png'
|
|
113
|
-
: imgSrc(), normalStyle: __assign({}, imgStyle.normal), hoverStyle: __assign({}, imgStyle.hover) }) })) })) }))] }));
|
|
77
|
+
return ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [isEditModeAndHidden && (0, jsx_runtime_1.jsx)(S_HiddenCover_1.S_HiddenCover, {}), (0, jsx_runtime_1.jsx)(S_CB_AnimationObserverBox_1.S_CB_AnimationObserverBox, __assign({ ref: hasEffect ? cbRef : null, effectVisibleStyle: effectVisibleStyle }, { children: (0, jsx_runtime_1.jsx)(S_ImageWrapper, __assign({ style: __assign({}, effectCssProperties) }, { children: (0, jsx_runtime_1.jsx)(S_CB_BoxWithShadow_1.S_CB_BoxWithShadow, __assign({ className: "cb-layout-box", normalStyle: __assign(__assign(__assign(__assign({}, layout), { overflow: 'hidden' }), boxStyle.normal), { cursor: CLINKCursor }), hoverStyle: __assign({}, boxStyle.hover), cbStylePropsShadowSpecs: CB_STYLE_PROP_SHADOW, device: device, onClick: onClickCLINK }, { children: (0, jsx_runtime_1.jsx)(S_Image, { src: CB_CONTENT_PROP_IMAGE.CB_CONTENT_PROP_IMAGE_SPEC_SELECTOR, normalStyle: __assign({}, imgStyle.normal), hoverStyle: __assign({}, imgStyle.hover) }) })) })) }))] }));
|
|
114
78
|
}
|
|
115
79
|
function parseImageCBStyle(style, hoverStyle, mode) {
|
|
116
80
|
var boxStyle = {
|
|
@@ -18,7 +18,6 @@ var jsx_runtime_1 = require("react/jsx-runtime");
|
|
|
18
18
|
/* eslint-disable react/destructuring-assignment */
|
|
19
19
|
var react_1 = require("react");
|
|
20
20
|
var DynamicLayout_1 = require("../../../../../../../DynamicLayout");
|
|
21
|
-
var compositionQueryContext_1 = require("../../../../../../../DynamicLayout/compositionQueryContext");
|
|
22
21
|
var hooks_1 = require("../../../../hooks");
|
|
23
22
|
var getGoogleFonts_1 = require("../../../../hooks/useGoogleFonts/getGoogleFonts");
|
|
24
23
|
var useGoogleFonts_1 = __importDefault(require("../../../../hooks/useGoogleFonts/useGoogleFonts"));
|
|
@@ -30,30 +29,15 @@ var S_HiddenCover_1 = require("../components/S_HiddenCover");
|
|
|
30
29
|
var useCLINK_1 = __importDefault(require("../hooks/useCLINK"));
|
|
31
30
|
function Text(props) {
|
|
32
31
|
var _a = (0, react_1.useContext)(DynamicLayout_1.dynamicLayoutContext), device = _a.device, mode = _a.mode;
|
|
33
|
-
var
|
|
34
|
-
var
|
|
35
|
-
|
|
36
|
-
if (CB_CONTENT_PROP_CLINK_SPEC_VALUETYPE === 'DATA' ||
|
|
37
|
-
CB_CONTENT_PROP_CLINK_SPEC_VALUETYPE === 'DELEGATEDDATA') {
|
|
38
|
-
if (!(queryContext === null || queryContext === void 0 ? void 0 : queryContext.queryData)) {
|
|
39
|
-
return "ERROR: QueryData NOT FOUND";
|
|
40
|
-
}
|
|
41
|
-
var link = queryContext.queryData[CB_CONTENT_PROP_CLINK_SPEC_CONNECTDATA];
|
|
42
|
-
if (!link) {
|
|
43
|
-
return "ERROR: ".concat(CB_CONTENT_PROP_CLINK_SPEC_CONNECTDATA, " NOT found from queryData");
|
|
44
|
-
}
|
|
45
|
-
return link;
|
|
46
|
-
}
|
|
47
|
-
return CB_CONTENT_PROP_CLINK_SPEC_SRC;
|
|
48
|
-
};
|
|
49
|
-
var _d = (0, useCLINK_1.default)({
|
|
50
|
-
src: cLinkValue(),
|
|
32
|
+
var index = props.index, _b = props.CB_CONTENT_PROP_CLINK, CB_CONTENT_PROP_CLINK_SPEC_SRC = _b.CB_CONTENT_PROP_CLINK_SPEC_SRC, CB_CONTENT_PROP_CLINK_SPEC_TYPE = _b.CB_CONTENT_PROP_CLINK_SPEC_TYPE, CB_CONTENT_PROP_CLINK_SPEC_NEWTAB = _b.CB_CONTENT_PROP_CLINK_SPEC_NEWTAB, CB_CONTENT_PROP_CLINK_SPEC_INTERNALSRC = _b.CB_CONTENT_PROP_CLINK_SPEC_INTERNALSRC, CB_EFFECT_PROP_ENTANIM = props.CB_EFFECT_PROP_ENTANIM;
|
|
33
|
+
var _c = (0, useCLINK_1.default)({
|
|
34
|
+
src: CB_CONTENT_PROP_CLINK_SPEC_SRC,
|
|
51
35
|
type: CB_CONTENT_PROP_CLINK_SPEC_TYPE,
|
|
52
36
|
openNewTab: CB_CONTENT_PROP_CLINK_SPEC_NEWTAB,
|
|
53
37
|
internalSrc: String(CB_CONTENT_PROP_CLINK_SPEC_INTERNALSRC)
|
|
54
|
-
}), CLINKCursor =
|
|
55
|
-
var
|
|
56
|
-
var
|
|
38
|
+
}), CLINKCursor = _c.CLINKCursor, onClickCLINK = _c.onClickCLINK;
|
|
39
|
+
var _d = getTextStyles(props.CB_STYLE_PROP_TEXT, device), textStyle = _d.style, textHoverStyle = _d.hoverStyle;
|
|
40
|
+
var _e = (0, util_1.parseProperties)(props, device), propsStyle = _e.style, propsHoverStyle = _e.hoverStyle, layoutStyle = _e.layout, effect = _e.effect;
|
|
57
41
|
var isEditModeAndHidden = propsStyle.visibility === 'hidden' && mode === 'EDIT';
|
|
58
42
|
var googleFonts = (0, getGoogleFonts_1.getGoogleFontsFromTextSpecCode)(props.CB_STYLE_PROP_TEXT, device === 'MOBILE');
|
|
59
43
|
(0, useGoogleFonts_1.default)({ fonts: googleFonts });
|
|
@@ -72,14 +56,6 @@ function Text(props) {
|
|
|
72
56
|
var hasEffect = !isNoneEffectType;
|
|
73
57
|
var effectVisibleStyle = hasEffect ? { opacity: isVisible ? 1 : 0 } : {};
|
|
74
58
|
var textValue = function () {
|
|
75
|
-
var isDataConnected = CB_CONTENT_PROP_TEXT_SPEC_VALUETYPE === 'DATA' ||
|
|
76
|
-
CB_CONTENT_PROP_TEXT_SPEC_VALUETYPE === 'DELEGATEDDATA';
|
|
77
|
-
if (isDataConnected) {
|
|
78
|
-
if (queryContext === null || queryContext === void 0 ? void 0 : queryContext.queryData) {
|
|
79
|
-
return queryContext.queryData[CB_CONTENT_PROP_TEXT_SPEC_CONNECTDATA];
|
|
80
|
-
}
|
|
81
|
-
return 'ERROR';
|
|
82
|
-
}
|
|
83
59
|
if (device === 'MOBILE' &&
|
|
84
60
|
mode !== 'EDIT' &&
|
|
85
61
|
props.CB_CONTENT_PROP_VISIBILITY.CB_CONTENT_PROP_VISIBILITY_SPEC_MOBILEWEB === false) {
|
|
@@ -107,7 +83,7 @@ function Text(props) {
|
|
|
107
83
|
e.currentTarget.classList.add('hovered');
|
|
108
84
|
}, onMouseLeave: function (e) {
|
|
109
85
|
e.currentTarget.classList.remove('hovered');
|
|
110
|
-
}, className: "cb-layout-box cb-text", normalStyle: __assign(__assign(__assign(__assign(__assign({}, textStyle), propsStyle), layoutStyle), effectCssProperties), { whiteSpace: 'pre-wrap', wordBreak: 'break-word', cursor: CLINKCursor, height: 'fit-content', minWidth: "calc(2ch + ".concat(layoutStyle.paddingLeft, " + ").concat(layoutStyle.paddingRight, ")") }), hoverStyle: __assign(__assign(__assign({}, textHoverStyle), propsHoverStyle), { whiteSpace: 'pre-wrap', wordBreak: 'break-word' }), onClick: onClickCLINK }, { children: textValue()
|
|
86
|
+
}, className: "cb-layout-box cb-text", normalStyle: __assign(__assign(__assign(__assign(__assign({}, textStyle), propsStyle), layoutStyle), effectCssProperties), { whiteSpace: 'pre-wrap', wordBreak: 'break-word', cursor: CLINKCursor, height: 'fit-content', minWidth: "calc(2ch + ".concat(layoutStyle.paddingLeft, " + ").concat(layoutStyle.paddingRight, ")") }), hoverStyle: __assign(__assign(__assign({}, textHoverStyle), propsHoverStyle), { whiteSpace: 'pre-wrap', wordBreak: 'break-word' }), onClick: onClickCLINK }, { children: textValue() })) }))] }));
|
|
111
87
|
}
|
|
112
88
|
function getTextStyles(props, device) {
|
|
113
89
|
var availableSpecCodes = [
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import type { ENUM_STRING, NUMBER_INTEGER, STRING_8DIGIT_HEX, STRING_PLAIN
|
|
2
|
+
import type { ENUM_STRING, NUMBER_INTEGER, STRING_8DIGIT_HEX, STRING_PLAIN } from '../../../util/types';
|
|
3
3
|
export type StylesProps = {
|
|
4
4
|
normalStyle: React.CSSProperties;
|
|
5
5
|
hoverStyle: React.CSSProperties;
|
|
@@ -7,21 +7,15 @@ export type StylesProps = {
|
|
|
7
7
|
export type CB_CONTENT_PROP_TEXT = {
|
|
8
8
|
CB_CONTENT_PROP_TEXT_SPEC_TEXT: STRING_PLAIN;
|
|
9
9
|
CB_CONTENT_PROP_TEXT_SPEC_TEXTMOBILEALTERNATIVE: STRING_PLAIN;
|
|
10
|
-
CB_CONTENT_PROP_TEXT_SPEC_VALUETYPE: CCB_VALUE_TYPE | CB_VALUE_TYPE;
|
|
11
|
-
CB_CONTENT_PROP_TEXT_SPEC_CONNECTDATA: STRING_PLAIN;
|
|
12
10
|
};
|
|
13
11
|
export type CB_CONTENT_PROP_CLINK = {
|
|
14
12
|
CB_CONTENT_PROP_CLINK_SPEC_TYPE: 'INTERNAL' | 'EXTERNAL' | 'DISABLED';
|
|
15
13
|
CB_CONTENT_PROP_CLINK_SPEC_SRC: STRING_PLAIN;
|
|
16
14
|
CB_CONTENT_PROP_CLINK_SPEC_INTERNALSRC: STRING_PLAIN;
|
|
17
15
|
CB_CONTENT_PROP_CLINK_SPEC_NEWTAB: boolean;
|
|
18
|
-
CB_CONTENT_PROP_CLINK_SPEC_VALUETYPE: CCB_VALUE_TYPE | CB_VALUE_TYPE;
|
|
19
|
-
CB_CONTENT_PROP_CLINK_SPEC_CONNECTDATA: STRING_PLAIN;
|
|
20
16
|
};
|
|
21
17
|
export type CB_CONTENT_PROP_IMAGE = {
|
|
22
18
|
CB_CONTENT_PROP_IMAGE_SPEC_SELECTOR: STRING_PLAIN;
|
|
23
|
-
CB_CONTENT_PROP_IMAGE_SPEC_VALUETYPE: CCB_VALUE_TYPE | CB_VALUE_TYPE;
|
|
24
|
-
CB_CONTENT_PROP_IMAGE_SPEC_CONNECTDATA: STRING_PLAIN;
|
|
25
19
|
};
|
|
26
20
|
export type CB_CONTENT_PROP_TWITTER = {
|
|
27
21
|
CB_CONTENT_PROP_TWITTER_SPEC_SRC: STRING_PLAIN;
|
|
@@ -29,44 +23,6 @@ export type CB_CONTENT_PROP_TWITTER = {
|
|
|
29
23
|
export type CB_CONTENT_PROP_CODEBLOCK = {
|
|
30
24
|
CB_CONTENT_PROP_CODEBLOCK_SPEC_CODE: STRING_PLAIN;
|
|
31
25
|
};
|
|
32
|
-
export type CB_CONTENT_PROP_CONTENTSCAROUSEL = {
|
|
33
|
-
CB_CONTENT_PROP_CONTENTSCAROUSEL_SPEC_VALUETYPE: CCB_VALUE_TYPE;
|
|
34
|
-
CB_CONTENT_PROP_CONTENTSCAROUSEL_SPEC_CONNECTDATA: STRING_PLAIN;
|
|
35
|
-
CB_CONTENT_PROP_CONTENTSCAROUSEL_SPEC_DATASORTING: STRING_PLAIN;
|
|
36
|
-
CB_CONTENT_PROP_CONTENTSCAROUSEL_SPEC_OFFSET: NUMBER_INTEGER;
|
|
37
|
-
CB_CONTENT_PROP_CONTENTSCAROUSEL_SPEC_MANUALITEMS: MockComposition[];
|
|
38
|
-
CB_CONTENT_PROP_CONTENTSCAROUSEL_SPEC_ITEMCOUNTS: NUMBER_INTEGER;
|
|
39
|
-
CB_CONTENT_PROP_CONTENTSCAROUSEL_SPEC_DISPLAYCOUNTS: NUMBER_INTEGER;
|
|
40
|
-
};
|
|
41
|
-
export type CB_CONTENT_PROP_SLIDEBANNER = {
|
|
42
|
-
CB_CONTENT_PROP_SLIDEBANNER_SPEC_VALUETYPE: CCB_VALUE_TYPE;
|
|
43
|
-
CB_CONTENT_PROP_SLIDEBANNER_SPEC_CONNECTDATA: STRING_PLAIN;
|
|
44
|
-
CB_CONTENT_PROP_SLIDEBANNER_SPEC_DATASORTING: STRING_PLAIN;
|
|
45
|
-
CB_CONTENT_PROP_SLIDEBANNER_SPEC_OFFSET: NUMBER_INTEGER;
|
|
46
|
-
CB_CONTENT_PROP_SLIDEBANNER_SPEC_MENUALITEMS: MockComposition[];
|
|
47
|
-
CB_CONTENT_PROP_SLIDEBANNER_SPEC_ITEMCOUNTS: NUMBER_INTEGER;
|
|
48
|
-
};
|
|
49
|
-
export type CB_CONTENT_PROP_CONTENTSLIST = {
|
|
50
|
-
CB_CONTENT_PROP_CONTENTSLIST_SPEC_VALUETYPE: CCB_VALUE_TYPE;
|
|
51
|
-
CB_CONTENT_PROP_CONTENTSLIST_SPEC_CONNECTDATA: STRING_PLAIN;
|
|
52
|
-
CB_CONTENT_PROP_CONTENTSLIST_SPEC_DATASORTING: STRING_PLAIN;
|
|
53
|
-
CB_CONTENT_PROP_CONTENTSLIST_SPEC_DATAFILTER: STRING_PLAIN;
|
|
54
|
-
CB_CONTENT_PROP_CONTENTSLIST_SPEC_OFFSET: NUMBER_INTEGER;
|
|
55
|
-
CB_CONTENT_PROP_CONTENTSLIST_SPEC_MANUALITEMS: MockComposition[];
|
|
56
|
-
CB_CONTENT_PROP_CONTENTSLIST_SPEC_ITEMCOUNTS: NUMBER_INTEGER;
|
|
57
|
-
CB_CONTENT_PROP_CONTENTSLIST_SPEC_DISPLAYCOUNTS: NUMBER_INTEGER;
|
|
58
|
-
CB_CONTENT_PROP_CONTENTSLIST_SPEC_COLUMNS: NUMBER_INTEGER;
|
|
59
|
-
CB_CONTENT_PROP_CONTENTSLIST_SPEC_EDITCOMMONITEM: null | STRING_PLAIN;
|
|
60
|
-
};
|
|
61
|
-
export type MockComposition = {
|
|
62
|
-
title: string;
|
|
63
|
-
width: number;
|
|
64
|
-
minWidth: number;
|
|
65
|
-
maxWidth: number;
|
|
66
|
-
height: number;
|
|
67
|
-
minHeight: number;
|
|
68
|
-
maxHeight: number;
|
|
69
|
-
};
|
|
70
26
|
export type CBTextPropsKeys = keyof CB_STYLE_PROP_TEXT_SPECS;
|
|
71
27
|
export type CB_STYLE_PROP_TEXT_SPECS_BASE = {
|
|
72
28
|
CB_STYLE_PROP_TEXT_SPEC_TYPEFACE: ENUM_STRING;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { ComponentBlock } from '../types';
|
|
2
|
-
import type { Layout, LayoutItem } from 'publ-echo
|
|
2
|
+
import type { Layout, LayoutItem } from 'publ-echo/dist/lib';
|
|
3
3
|
export interface LayoutItemWithGroupType extends LayoutItem {
|
|
4
4
|
childrenIds: string[];
|
|
5
5
|
keepInLastIndex?: boolean;
|
|
@@ -1,11 +1,10 @@
|
|
|
1
|
-
import type { CB_BTN_PROPERTIES_TYPE, CB_DIVIDER_PROPERTIES_TYPE, CB_EMBED_PROPERTIES_TYPE, CB_IMG_PROPERTIES_TYPE, CB_RICHTEXT_PROPERTIES_TYPE, CB_TEXT_PROPERTIES_TYPE, CB_TWITTER_PROPERTIES_TYPE,
|
|
1
|
+
import type { CB_BTN_PROPERTIES_TYPE, CB_DIVIDER_PROPERTIES_TYPE, CB_EMBED_PROPERTIES_TYPE, CB_IMG_PROPERTIES_TYPE, CB_RICHTEXT_PROPERTIES_TYPE, CB_TEXT_PROPERTIES_TYPE, CB_TWITTER_PROPERTIES_TYPE, CB_VIDEOPLAYER_PROPERTIES_TYPE, CB_YOUTUBE_PROPERTIES_TYPE } from './util/types';
|
|
2
2
|
import type { IComposition } from '../../../DynamicLayout/types';
|
|
3
3
|
export type CB_TYPES = 'GENERAL';
|
|
4
|
-
export type ComponentBlock = CB_TEXT_TYPE | CB_BTN_TYPE | CB_RICHTEXT | CB_DIVIDER | CB_IMG | CB_YOUTUBE | CB_TWITTER | CB_IFRAME | CB_GROUP |
|
|
4
|
+
export type ComponentBlock = CB_TEXT_TYPE | CB_BTN_TYPE | CB_RICHTEXT | CB_DIVIDER | CB_IMG | CB_YOUTUBE | CB_TWITTER | CB_IFRAME | CB_GROUP | CB_CONTENTS_CAROUSEL | CB_VIDEOPLAYER;
|
|
5
5
|
type GeneralCustomSectionType = {
|
|
6
6
|
id: number;
|
|
7
7
|
type: 'GENERAL';
|
|
8
|
-
blockId?: string;
|
|
9
8
|
availablePlugins: Array<string>;
|
|
10
9
|
queryableTapSrc: string;
|
|
11
10
|
queryableDefinitionPreset: string;
|
|
@@ -19,7 +18,7 @@ export type GroupCustomSectionType = {
|
|
|
19
18
|
queryableDefinitionPreset: string;
|
|
20
19
|
dynamicLayoutSectionId: number;
|
|
21
20
|
};
|
|
22
|
-
export type AllCBProperties = CB_TEXT_PROPERTIES_TYPE | CB_BTN_PROPERTIES_TYPE | CB_RICHTEXT_PROPERTIES_TYPE | CB_RICHTEXT_PROPERTIES_TYPE | CB_DIVIDER_PROPERTIES_TYPE | CB_YOUTUBE_PROPERTIES_TYPE | CB_IMG_PROPERTIES_TYPE | CB_TWITTER_PROPERTIES_TYPE | CB_EMBED_PROPERTIES_TYPE |
|
|
21
|
+
export type AllCBProperties = CB_TEXT_PROPERTIES_TYPE | CB_BTN_PROPERTIES_TYPE | CB_RICHTEXT_PROPERTIES_TYPE | CB_RICHTEXT_PROPERTIES_TYPE | CB_DIVIDER_PROPERTIES_TYPE | CB_YOUTUBE_PROPERTIES_TYPE | CB_IMG_PROPERTIES_TYPE | CB_TWITTER_PROPERTIES_TYPE | CB_EMBED_PROPERTIES_TYPE | CB_VIDEOPLAYER_PROPERTIES_TYPE;
|
|
23
22
|
export type CB_TEXT_TYPE = GeneralCustomSectionType & {
|
|
24
23
|
componentBlockCode: CB_ALL_CODES.CB_TEXT;
|
|
25
24
|
jsonProperties: {
|
|
@@ -56,12 +55,6 @@ export type CB_YOUTUBE = GeneralCustomSectionType & {
|
|
|
56
55
|
data: CB_YOUTUBE_PROPERTIES_TYPE;
|
|
57
56
|
};
|
|
58
57
|
};
|
|
59
|
-
export type CB_VIDEOPLAYER = GeneralCustomSectionType & {
|
|
60
|
-
componentBlockCode: CB_ALL_CODES.CB_VIDEOPLAYER;
|
|
61
|
-
jsonProperties: {
|
|
62
|
-
data: CB_YOUTUBE_PROPERTIES_TYPE;
|
|
63
|
-
};
|
|
64
|
-
};
|
|
65
58
|
export type CB_TWITTER = GeneralCustomSectionType & {
|
|
66
59
|
componentBlockCode: CB_ALL_CODES.CB_TWITTER;
|
|
67
60
|
jsonProperties: {
|
|
@@ -80,26 +73,18 @@ export type CB_GROUP = GeneralCustomSectionType & {
|
|
|
80
73
|
data: CB_BTN_PROPERTIES_TYPE;
|
|
81
74
|
};
|
|
82
75
|
};
|
|
83
|
-
export type
|
|
84
|
-
componentBlockCode: CB_ALL_CODES.
|
|
85
|
-
jsonProperties: {
|
|
86
|
-
data: CB_CONTENTSCAROUSEL_PROPERTIES_TYPE;
|
|
87
|
-
};
|
|
88
|
-
compositions: Array<IComposition>;
|
|
89
|
-
};
|
|
90
|
-
export type CB_SLIDEBANNER = GeneralCustomSectionType & {
|
|
91
|
-
componentBlockCode: CB_ALL_CODES.CB_SLIDEBANNER;
|
|
76
|
+
export type CB_CONTENTS_CAROUSEL = GeneralCustomSectionType & {
|
|
77
|
+
componentBlockCode: CB_ALL_CODES.CB_CONTENTS_CAROUSEL;
|
|
92
78
|
jsonProperties: {
|
|
93
|
-
data:
|
|
79
|
+
data: CB_BTN_PROPERTIES_TYPE;
|
|
94
80
|
};
|
|
95
81
|
compositions: Array<IComposition>;
|
|
96
82
|
};
|
|
97
|
-
export type
|
|
98
|
-
componentBlockCode: CB_ALL_CODES.
|
|
83
|
+
export type CB_VIDEOPLAYER = GeneralCustomSectionType & {
|
|
84
|
+
componentBlockCode: CB_ALL_CODES.CB_VIDEOPLAYER;
|
|
99
85
|
jsonProperties: {
|
|
100
|
-
data:
|
|
86
|
+
data: CB_VIDEOPLAYER_PROPERTIES_TYPE;
|
|
101
87
|
};
|
|
102
|
-
compositions: Array<IComposition>;
|
|
103
88
|
};
|
|
104
89
|
export declare enum CB_ALL_CODES {
|
|
105
90
|
CB_TEXT = "CB_TEXT",
|
|
@@ -111,9 +96,7 @@ export declare enum CB_ALL_CODES {
|
|
|
111
96
|
CB_TWITTER = "CB_TWITTER",
|
|
112
97
|
CB_EMBED = "CB_EMBED",
|
|
113
98
|
CB_GROUP = "CB_GROUP",
|
|
114
|
-
|
|
115
|
-
CB_CONTENTSCAROUSEL = "CB_CONTENTSCAROUSEL",
|
|
116
|
-
CB_SLIDEBANNER = "CB_SLIDEBANNER",
|
|
99
|
+
CB_CONTENTS_CAROUSEL = "CB_CONTENTS_CAROUSEL",
|
|
117
100
|
CB_VIDEOPLAYER = "CB_VIDEOPLAYER"
|
|
118
101
|
}
|
|
119
102
|
export {};
|
|
@@ -12,8 +12,6 @@ var CB_ALL_CODES;
|
|
|
12
12
|
CB_ALL_CODES["CB_TWITTER"] = "CB_TWITTER";
|
|
13
13
|
CB_ALL_CODES["CB_EMBED"] = "CB_EMBED";
|
|
14
14
|
CB_ALL_CODES["CB_GROUP"] = "CB_GROUP";
|
|
15
|
-
CB_ALL_CODES["
|
|
16
|
-
CB_ALL_CODES["CB_CONTENTSCAROUSEL"] = "CB_CONTENTSCAROUSEL";
|
|
17
|
-
CB_ALL_CODES["CB_SLIDEBANNER"] = "CB_SLIDEBANNER";
|
|
15
|
+
CB_ALL_CODES["CB_CONTENTS_CAROUSEL"] = "CB_CONTENTS_CAROUSEL";
|
|
18
16
|
CB_ALL_CODES["CB_VIDEOPLAYER"] = "CB_VIDEOPLAYER";
|
|
19
17
|
})(CB_ALL_CODES = exports.CB_ALL_CODES || (exports.CB_ALL_CODES = {}));
|