pds-dev-kit-web-test 2.5.262 → 2.5.264
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/src/common/assets/icons/fill/index.d.ts +0 -5
- package/dist/src/common/assets/icons/fill/index.js +1 -11
- package/dist/src/common/assets/icons/line/index.d.ts +0 -5
- package/dist/src/common/assets/icons/line/index.js +1 -11
- package/dist/src/common/hooks/useTooltip.js +1 -1
- package/dist/src/common/styles/colorSet/PaletteColor_Dark.json +1 -3
- package/dist/src/common/styles/colorSet/PaletteColor_light.json +1 -3
- package/dist/src/common/styles/colorSet/SemanticColor.json +1 -3
- package/dist/src/common/styles/colorSet/UIColor.json +2 -6
- package/dist/src/common/styles/colorSet/index.d.ts +0 -10
- package/dist/src/common/styles/colorSet/ui-type.d.ts +0 -4
- package/dist/src/common/utils/SystemUIPositionGenerator/hoverTypeSystemUICssGenerator.js +1 -1
- package/dist/src/desktop/components/BasicButtonGroup/BasicButtonGroup.js +1 -1
- package/dist/src/desktop/components/Dropdown/Dropdown.js +4 -6
- package/dist/src/desktop/components/MainButton/MainButton.d.ts +1 -1
- package/dist/src/desktop/components/MainButton/MainButton.js +6 -20
- package/dist/src/desktop/components/UploadMainButton/UploadMainButton.d.ts +1 -1
- package/dist/src/desktop/components/UploadMainButton/UploadMainButton.js +7 -21
- package/dist/src/mobile/components/MainButton/MainButton.d.ts +1 -1
- package/dist/src/mobile/components/MainButton/MainButton.js +6 -20
- package/dist/src/mobile/components/UploadMainButton/UploadMainButton.d.ts +1 -1
- package/dist/src/mobile/components/UploadMainButton/UploadMainButton.js +6 -20
- package/dist/src/sub/DynamicLayout/CompositionRenderer/ComponentBlockMatcher.d.ts +11 -0
- package/dist/src/sub/DynamicLayout/CompositionRenderer/ComponentBlockMatcher.js +56 -0
- package/dist/src/sub/DynamicLayout/CompositionRenderer/Composition.d.ts +9 -0
- package/dist/src/sub/DynamicLayout/CompositionRenderer/Composition.js +217 -0
- 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/CompositionRenderer/FlexGridItem.d.ts +12 -0
- package/dist/src/sub/DynamicLayout/CompositionRenderer/FlexGridItem.js +75 -0
- package/dist/src/sub/DynamicLayout/components/EditModeSectionMatcher/EditModeSectionMatcher.js +3 -0
- package/dist/src/sub/DynamicLayout/components/EditModeSectionMatcher/SectionBox.js +1 -1
- package/dist/src/sub/DynamicLayout/components/Section/ErrorBoundary/ErrorBoundary.js +12 -1
- package/dist/src/sub/DynamicLayout/components/SectionMatcher/SectionMatcher.js +5 -3
- package/dist/src/sub/DynamicLayout/gleStyles.d.ts +3 -0
- package/dist/src/sub/DynamicLayout/gleStyles.js +19 -0
- package/dist/src/sub/DynamicLayout/hooks/useCustomSectionShortcut/useCustomSectionShortcut.d.ts +1 -1
- package/dist/src/sub/DynamicLayout/hooks/useCustomSectionShortcut/useCustomSectionShortcut.js +6 -1
- package/dist/src/sub/DynamicLayout/mock_samplePage.js +132 -132
- package/dist/src/sub/DynamicLayout/mocks.d.ts +1111 -0
- package/dist/src/sub/DynamicLayout/mocks.js +4775 -0
- package/dist/src/sub/DynamicLayout/sectionActionTypes.d.ts +64 -15
- package/dist/src/sub/DynamicLayout/sections/CustomSection/CustomSection.d.ts +0 -5
- package/dist/src/sub/DynamicLayout/sections/CustomSection/CustomSection.js +731 -200
- package/dist/src/sub/DynamicLayout/sections/CustomSection/FlexGridItem.d.ts +2 -1
- package/dist/src/sub/DynamicLayout/sections/CustomSection/FlexGridItem.js +8 -5
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/ComponentBlockMatcher.d.ts +1 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/ComponentBlockMatcher.js +5 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/Button/Button.js +25 -23
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsCarousel/ContentsCarousel.d.ts +8 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsCarousel/ContentsCarousel.js +12 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/Text/Text.js +16 -2
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/components/S_Backdrop.d.ts +1 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/components/S_Backdrop.js +13 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/components/S_CB_Box.js +1 -1
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/components/S_CB_BoxWithShadow.js +1 -1
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/types.d.ts +79 -1
- package/dist/src/sub/DynamicLayout/sections/CustomSection/hooks/useGoogleFonts/getGoogleFonts.d.ts +2 -4
- package/dist/src/sub/DynamicLayout/sections/CustomSection/hooks/useGoogleFonts/getGoogleFonts.js +3 -14
- package/dist/src/sub/DynamicLayout/sections/CustomSection/hooks/useGoogleFonts/index.d.ts +1 -1
- package/dist/src/sub/DynamicLayout/sections/CustomSection/hooks/useGoogleFonts/index.js +2 -3
- package/dist/src/sub/DynamicLayout/sections/CustomSection/newUtils/clsx.d.ts +7 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/newUtils/clsx.js +33 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/newUtils/colorUtil.d.ts +4 -4
- package/dist/src/sub/DynamicLayout/sections/CustomSection/newUtils/fontSizeAdjustment.d.ts +1 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/newUtils/fontSizeAdjustment.js +333 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/{hooks/useGroupDrag/utils.d.ts → newUtils/group.d.ts} +4 -1
- package/dist/src/sub/DynamicLayout/sections/CustomSection/{hooks/useGroupDrag/utils.js → newUtils/group.js} +14 -1
- package/dist/src/sub/DynamicLayout/sections/CustomSection/newUtils/replaceUndefinedValues.js +8 -1
- package/dist/src/sub/DynamicLayout/sections/CustomSection/newUtils/textUtil.d.ts +1 -6
- package/dist/src/sub/DynamicLayout/sections/CustomSection/types.d.ts +18 -2
- package/dist/src/sub/DynamicLayout/sections/CustomSection/types.js +2 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/util/parsePlacement.d.ts +5 -2
- package/dist/src/sub/DynamicLayout/sections/CustomSection/util/parsePlacement.js +12 -9
- package/dist/src/sub/DynamicLayout/sections/CustomSection/util/stylePropParsers/parseStylePropTextSpec.d.ts +1 -1
- package/dist/src/sub/DynamicLayout/sections/CustomSection/util/stylePropParsers/types.d.ts +1 -1
- package/dist/src/sub/DynamicLayout/sections/CustomSection/util/stylePropParsers/types.js +1 -1
- package/dist/src/sub/DynamicLayout/sections/CustomSection/util/types.d.ts +3 -5
- package/dist/src/sub/DynamicLayout/sections/{CustomSection/FlexGridCustomSection.d.ts → FlexGridCustomSection.d.ts} +1 -5
- package/dist/src/sub/DynamicLayout/sections/{CustomSection/FlexGridCustomSection.js → FlexGridCustomSection.js} +44 -88
- package/dist/src/sub/DynamicLayout/types.d.ts +45 -1
- package/dist/src/sub/SandollFontKit/utils/appendSandollTagToHead.d.ts +1 -1
- package/dist/src/sub/SandollFontKit/utils/appendSandollTagToHead.js +17 -11
- package/package.json +3 -3
- package/release-note.md +3 -2
- package/dist/src/common/assets/icons/fill/BringToFrontArrow.d.ts +0 -4
- package/dist/src/common/assets/icons/fill/BringToFrontArrow.js +0 -30
- package/dist/src/common/assets/icons/fill/DesktopSync.d.ts +0 -4
- package/dist/src/common/assets/icons/fill/DesktopSync.js +0 -30
- package/dist/src/common/assets/icons/fill/MoveBackwardArrow.d.ts +0 -4
- package/dist/src/common/assets/icons/fill/MoveBackwardArrow.js +0 -30
- package/dist/src/common/assets/icons/fill/MoveForwardArrow.d.ts +0 -4
- package/dist/src/common/assets/icons/fill/MoveForwardArrow.js +0 -30
- package/dist/src/common/assets/icons/fill/SendToBackArrow.d.ts +0 -4
- package/dist/src/common/assets/icons/fill/SendToBackArrow.js +0 -30
- package/dist/src/common/assets/icons/line/BringToFrontArrow.d.ts +0 -4
- package/dist/src/common/assets/icons/line/BringToFrontArrow.js +0 -30
- package/dist/src/common/assets/icons/line/DesktopSync.d.ts +0 -4
- package/dist/src/common/assets/icons/line/DesktopSync.js +0 -30
- package/dist/src/common/assets/icons/line/MoveBackwardArrow.d.ts +0 -4
- package/dist/src/common/assets/icons/line/MoveBackwardArrow.js +0 -30
- package/dist/src/common/assets/icons/line/MoveForwardArrow.d.ts +0 -4
- package/dist/src/common/assets/icons/line/MoveForwardArrow.js +0 -30
- package/dist/src/common/assets/icons/line/SendToBackArrow.d.ts +0 -4
- package/dist/src/common/assets/icons/line/SendToBackArrow.js +0 -30
- package/dist/src/sub/DynamicLayout/pagesPreviewMock.d.ts +0 -14038
- package/dist/src/sub/DynamicLayout/pagesPreviewMock.js +0 -35827
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/Button/btnTypes.d.ts +0 -76
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/Button/btnTypes.js +0 -2
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/Text/types.d.ts +0 -38
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/Text/types.js +0 -2
- package/dist/src/sub/DynamicLayout/sections/CustomSection/hooks/useGroupDrag/index.d.ts +0 -1
- package/dist/src/sub/DynamicLayout/sections/CustomSection/hooks/useGroupDrag/index.js +0 -8
- package/dist/src/sub/DynamicLayout/sections/CustomSection/hooks/useGroupDrag/useGroupDrag.d.ts +0 -22
- package/dist/src/sub/DynamicLayout/sections/CustomSection/hooks/useGroupDrag/useGroupDrag.js +0 -273
@@ -0,0 +1,11 @@
|
|
1
|
+
/// <reference types="react" />
|
2
|
+
import type { ComponentBlock } from '../sections/CustomSection/types';
|
3
|
+
import type { Device } from '../sections/CustomSection/util/types';
|
4
|
+
type Props = {
|
5
|
+
cbProps: ComponentBlock;
|
6
|
+
device: Device;
|
7
|
+
index: number;
|
8
|
+
rowHeight: number;
|
9
|
+
};
|
10
|
+
export default function ComponentBlockMatcher({ cbProps, device, index }: Props): JSX.Element;
|
11
|
+
export {};
|
@@ -0,0 +1,56 @@
|
|
1
|
+
"use strict";
|
2
|
+
var __assign = (this && this.__assign) || function () {
|
3
|
+
__assign = Object.assign || function(t) {
|
4
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
5
|
+
s = arguments[i];
|
6
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
7
|
+
t[p] = s[p];
|
8
|
+
}
|
9
|
+
return t;
|
10
|
+
};
|
11
|
+
return __assign.apply(this, arguments);
|
12
|
+
};
|
13
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
14
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
15
|
+
};
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
17
|
+
var jsx_runtime_1 = require("react/jsx-runtime");
|
18
|
+
var Button_1 = __importDefault(require("../sections/CustomSection/components/ComponentBlock/componentBlocks/Button/Button"));
|
19
|
+
var Divider_1 = __importDefault(require("../sections/CustomSection/components/ComponentBlock/componentBlocks/Divider/Divider"));
|
20
|
+
var Embed_1 = __importDefault(require("../sections/CustomSection/components/ComponentBlock/componentBlocks/Embed/Embed"));
|
21
|
+
var Image_1 = __importDefault(require("../sections/CustomSection/components/ComponentBlock/componentBlocks/Image/Image"));
|
22
|
+
var RichText_1 = require("../sections/CustomSection/components/ComponentBlock/componentBlocks/RichText");
|
23
|
+
var Text_1 = __importDefault(require("../sections/CustomSection/components/ComponentBlock/componentBlocks/Text/Text"));
|
24
|
+
var Twitter_1 = __importDefault(require("../sections/CustomSection/components/ComponentBlock/componentBlocks/Twitter/Twitter"));
|
25
|
+
var Youtube_1 = require("../sections/CustomSection/components/ComponentBlock/componentBlocks/Youtube");
|
26
|
+
var newUtils_1 = require("../sections/CustomSection/newUtils");
|
27
|
+
var types_1 = require("../sections/CustomSection/types");
|
28
|
+
function ComponentBlockMatcher(_a) {
|
29
|
+
var cbProps = _a.cbProps, device = _a.device, index = _a.index;
|
30
|
+
var componentBlockCode = cbProps.componentBlockCode, data = cbProps.jsonProperties.data;
|
31
|
+
var propsWithValue = device === 'MOBILE' ? (0, newUtils_1.replaceUndefinedValues)(data) : data;
|
32
|
+
switch (componentBlockCode) {
|
33
|
+
case types_1.CB_ALL_CODES.CB_BTN:
|
34
|
+
return (0, jsx_runtime_1.jsx)(Button_1.default, __assign({}, propsWithValue, { index: index }));
|
35
|
+
case types_1.CB_ALL_CODES.CB_TEXT:
|
36
|
+
return (0, jsx_runtime_1.jsx)(Text_1.default, __assign({}, propsWithValue, { index: index }));
|
37
|
+
case types_1.CB_ALL_CODES.CB_RICHTEXT:
|
38
|
+
return (0, jsx_runtime_1.jsx)(RichText_1.RichText, __assign({}, propsWithValue, { index: index }));
|
39
|
+
case types_1.CB_ALL_CODES.CB_DIVIDER:
|
40
|
+
return (0, jsx_runtime_1.jsx)(Divider_1.default, __assign({}, propsWithValue, { index: index }));
|
41
|
+
case types_1.CB_ALL_CODES.CB_IMG:
|
42
|
+
return (0, jsx_runtime_1.jsx)(Image_1.default, __assign({}, propsWithValue, { index: index }));
|
43
|
+
case types_1.CB_ALL_CODES.CB_TWITTER:
|
44
|
+
return (0, jsx_runtime_1.jsx)(Twitter_1.default, __assign({}, propsWithValue, { index: index }));
|
45
|
+
case types_1.CB_ALL_CODES.CB_YOUTUBE:
|
46
|
+
return (0, jsx_runtime_1.jsx)(Youtube_1.Youtube, __assign({}, propsWithValue, { index: index }));
|
47
|
+
case types_1.CB_ALL_CODES.CB_EMBED:
|
48
|
+
return (0, jsx_runtime_1.jsx)(Embed_1.default, __assign({}, propsWithValue, { index: index }));
|
49
|
+
case types_1.CB_ALL_CODES.CB_CONTENTS_CAROUSEL: {
|
50
|
+
return (0, jsx_runtime_1.jsx)("div", { children: "NOT SUPPORTED NESTED CAROUSEL" });
|
51
|
+
}
|
52
|
+
default:
|
53
|
+
return (0, jsx_runtime_1.jsx)("div", { children: "Error: not supported CB" });
|
54
|
+
}
|
55
|
+
}
|
56
|
+
exports.default = ComponentBlockMatcher;
|
@@ -0,0 +1,9 @@
|
|
1
|
+
import React from 'react';
|
2
|
+
import type { ISection } from '../types';
|
3
|
+
import type { Layout } from 'publ-echo/dist/lib/GridLayoutEditor/types';
|
4
|
+
export type LayoutsType = {
|
5
|
+
sm: Layout;
|
6
|
+
lg: Layout;
|
7
|
+
};
|
8
|
+
declare const _default: React.MemoExoticComponent<React.ForwardRefExoticComponent<ISection & React.RefAttributes<unknown>>>;
|
9
|
+
export default _default;
|
@@ -0,0 +1,217 @@
|
|
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 __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
18
|
+
if (k2 === undefined) k2 = k;
|
19
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
20
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
21
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
22
|
+
}
|
23
|
+
Object.defineProperty(o, k2, desc);
|
24
|
+
}) : (function(o, m, k, k2) {
|
25
|
+
if (k2 === undefined) k2 = k;
|
26
|
+
o[k2] = m[k];
|
27
|
+
}));
|
28
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
29
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
30
|
+
}) : function(o, v) {
|
31
|
+
o["default"] = v;
|
32
|
+
});
|
33
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
34
|
+
if (mod && mod.__esModule) return mod;
|
35
|
+
var result = {};
|
36
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
37
|
+
__setModuleDefault(result, mod);
|
38
|
+
return result;
|
39
|
+
};
|
40
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
41
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
42
|
+
};
|
43
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
44
|
+
var jsx_runtime_1 = require("react/jsx-runtime");
|
45
|
+
/* eslint-disable @typescript-eslint/no-unused-vars */
|
46
|
+
var react_1 = __importStar(require("react"));
|
47
|
+
var ErrorBoundary_1 = require("../../DynamicLayout/components/Section/ErrorBoundary");
|
48
|
+
var dynamicLayoutContext_1 = require("../../DynamicLayout/dynamicLayoutContext");
|
49
|
+
var styled_components_1 = __importDefault(require("styled-components"));
|
50
|
+
var components_1 = require("../components");
|
51
|
+
var gleStyles_1 = require("../gleStyles");
|
52
|
+
var useResizableObserver_1 = require("../sections/CustomSection/hooks/useResizableObserver");
|
53
|
+
var util_1 = require("../sections/CustomSection/util");
|
54
|
+
var parseSectionPadding_1 = __importDefault(require("../sections/CustomSection/util/layoutPropParsers/parseSectionPadding"));
|
55
|
+
var FlexGridItem_1 = __importDefault(require("./FlexGridItem"));
|
56
|
+
var GRID_CELL_MIN = 24;
|
57
|
+
var DESKTOP_GRID_COLS = 24;
|
58
|
+
var MOBILE_GRID_COLS = 8;
|
59
|
+
var GLE_MIN_WIDTH_DESKTOP_PX = "".concat(GRID_CELL_MIN * DESKTOP_GRID_COLS, "px");
|
60
|
+
var GLE_MIN_WIDTH_MOBILE_PX = "".concat(GRID_CELL_MIN * MOBILE_GRID_COLS, "px");
|
61
|
+
var Composition = (0, react_1.forwardRef)(function CustomSection(props, ref) {
|
62
|
+
var _a;
|
63
|
+
var _b = (0, react_1.useContext)(dynamicLayoutContext_1.dynamicLayoutContext), device = _b.device, editingSectionId = _b.editingSectionId, mode = _b.mode, shortcutKeyMode = _b.shortcutKeyMode, sectionActionHandler = _b.sectionActionHandler;
|
64
|
+
var componentBlocks = props.componentBlocks, jsonProperties = props.jsonProperties;
|
65
|
+
var _c = jsonProperties, _d = _c.data, CB_PLACEMENT_PROP_SECTION = _d.CB_PLACEMENT_PROP_SECTION, CB_LAYOUT_PROP_PADDING = _d.CB_LAYOUT_PROP_PADDING, zOrders = _c.zOrders;
|
66
|
+
var containerRef = (0, react_1.useRef)(null);
|
67
|
+
var size = (0, useResizableObserver_1.useResizeObserver)({ ref: containerRef, box: 'border-box' });
|
68
|
+
var _e = (0, react_1.useState)(null), selectedCB = _e[0], setSelectedCB = _e[1];
|
69
|
+
var gleRef = (0, react_1.useRef)(null);
|
70
|
+
var isMobile = device === 'MOBILE';
|
71
|
+
var isEditMode = mode === 'EDIT';
|
72
|
+
// const layoutByDevice = device === 'DESKTOP' ? 'lg' : 'sm';
|
73
|
+
// const [layouts] = useState<LayoutsType>(() => {
|
74
|
+
// const { lg, sm } = parsePlacement(componentBlocks ?? []);
|
75
|
+
// return {
|
76
|
+
// lg,
|
77
|
+
// sm
|
78
|
+
// };
|
79
|
+
// });
|
80
|
+
(0, react_1.useEffect)(function () {
|
81
|
+
if (editingSectionId !== props.id) {
|
82
|
+
setSelectedCB(null);
|
83
|
+
// breakGroupCB();
|
84
|
+
}
|
85
|
+
}, [editingSectionId]);
|
86
|
+
// NOTE: 추후에 event를 외부에서 전달받게하거나, 아예 상태를 끌어올리거나 해야합니다.
|
87
|
+
(0, react_1.useLayoutEffect)(function () {
|
88
|
+
if (props.id !== editingSectionId) {
|
89
|
+
return;
|
90
|
+
}
|
91
|
+
if (!shortcutKeyMode) {
|
92
|
+
return;
|
93
|
+
}
|
94
|
+
if (shortcutKeyMode === 'SELECT_ALL') {
|
95
|
+
if ((componentBlocks === null || componentBlocks === void 0 ? void 0 : componentBlocks.length) === 1) {
|
96
|
+
setSelectedCB(componentBlocks[0].id);
|
97
|
+
return;
|
98
|
+
}
|
99
|
+
// makeAllInOneGroup();
|
100
|
+
return;
|
101
|
+
}
|
102
|
+
if (shortcutKeyMode === 'MANUAL_BULK_BREAK') {
|
103
|
+
// breakGroupCB();
|
104
|
+
setSelectedCB(null);
|
105
|
+
return;
|
106
|
+
}
|
107
|
+
}, [shortcutKeyMode, setSelectedCB]);
|
108
|
+
(0, react_1.useLayoutEffect)(function () {
|
109
|
+
if (props.id !== editingSectionId) {
|
110
|
+
return;
|
111
|
+
}
|
112
|
+
if (shortcutKeyMode === 'MANUAL_COLLISION_SELECT') {
|
113
|
+
if (!selectedCB || selectedCB === 'BULK') {
|
114
|
+
return;
|
115
|
+
}
|
116
|
+
// makeCollisionGroup(selectedCB);
|
117
|
+
// sectionActionHandler &&
|
118
|
+
// sectionActionHandler({
|
119
|
+
// type: '@CUSTOMSECTION/BLOCK_CLICKED',
|
120
|
+
// payload: {
|
121
|
+
// block:
|
122
|
+
// }
|
123
|
+
// });
|
124
|
+
setSelectedCB('BULK');
|
125
|
+
}
|
126
|
+
}, [selectedCB, shortcutKeyMode, sectionActionHandler, setSelectedCB]);
|
127
|
+
var _f = (0, util_1.parseCustomSectionPlacement)({
|
128
|
+
isMobile: isMobile,
|
129
|
+
customSectionProps: CB_PLACEMENT_PROP_SECTION
|
130
|
+
}), width = _f.width, minHeight = _f.minHeight, isFullWidth = _f.isFullWidth;
|
131
|
+
var customSectionStyles = {
|
132
|
+
minHeight: "".concat(minHeight, "vh"),
|
133
|
+
width: '100%',
|
134
|
+
maxWidth: isFullWidth ? '' : "".concat(width, "px")
|
135
|
+
};
|
136
|
+
var onClickSection = function () {
|
137
|
+
if (!isEditMode) {
|
138
|
+
return;
|
139
|
+
}
|
140
|
+
setSelectedCB(null);
|
141
|
+
sectionActionHandler &&
|
142
|
+
sectionActionHandler({
|
143
|
+
type: '@CUSTOMSECTION/SECTION_CLICKED',
|
144
|
+
payload: {
|
145
|
+
sectionId: props.id
|
146
|
+
}
|
147
|
+
});
|
148
|
+
};
|
149
|
+
var padding = (0, parseSectionPadding_1.default)(CB_LAYOUT_PROP_PADDING, device);
|
150
|
+
var sectionRow = CB_PLACEMENT_PROP_SECTION[device === 'DESKTOP'
|
151
|
+
? 'CB_PLACEMENT_PROP_SECTION_SPEC_ROWS'
|
152
|
+
: 'CB_PLACEMENT_PROP_SECTION_SPEC_ROWS:MOBILE'];
|
153
|
+
var rowHeight = (function () {
|
154
|
+
if (!size.width) {
|
155
|
+
return 50;
|
156
|
+
}
|
157
|
+
if (device === 'MOBILE') {
|
158
|
+
var cellWidth_1 = size.width / MOBILE_GRID_COLS;
|
159
|
+
return cellWidth_1 * 0.56;
|
160
|
+
}
|
161
|
+
var cellWidth = size.width / DESKTOP_GRID_COLS;
|
162
|
+
return cellWidth * 0.56;
|
163
|
+
})();
|
164
|
+
var baseFontSize = (function () {
|
165
|
+
var _a, _b;
|
166
|
+
if (!size.width) {
|
167
|
+
return 16;
|
168
|
+
}
|
169
|
+
var responsiveFontMode = !!((_b = (_a = props.jsonProperties) === null || _a === void 0 ? void 0 : _a.data.CB_CONTENT_PROP_SECTION) === null || _b === void 0 ? void 0 : _b.CB_CONTENT_PROP_SECTION_SPEC_VARIABLEROOTFONTSIZE);
|
170
|
+
if (device === 'MOBILE') {
|
171
|
+
if (responsiveFontMode) {
|
172
|
+
return size.width * 0.0421;
|
173
|
+
}
|
174
|
+
if (size.width < 327) {
|
175
|
+
return Math.max(getDefensiveFontSize(device, size.width), 14);
|
176
|
+
}
|
177
|
+
return 16;
|
178
|
+
}
|
179
|
+
if (responsiveFontMode) {
|
180
|
+
return size.width * 0.0133;
|
181
|
+
}
|
182
|
+
if (size.width < 1200) {
|
183
|
+
return Math.max(getDefensiveFontSize(device, size.width), 14);
|
184
|
+
}
|
185
|
+
return 16;
|
186
|
+
})();
|
187
|
+
return ((0, jsx_runtime_1.jsx)(ErrorBoundary_1.ErrorBoundary, { children: (0, jsx_runtime_1.jsx)(gleStyles_1.S_gleStyles, __assign({ style: { width: '100%', height: '100%' } }, { children: (0, jsx_runtime_1.jsx)(S_SectionWrapper, __assign({ ref: gleRef, "x-dlayout-section-type": "NO_NAME", onClick: onClickSection, style: {
|
188
|
+
width: '100%',
|
189
|
+
height: '100%'
|
190
|
+
} }, { children: (0, jsx_runtime_1.jsx)(components_1.CustomSection, __assign({}, props, { isMobile: isMobile, overrideStyles: {
|
191
|
+
// minHeight: customSectionStyles.minHeight,
|
192
|
+
paddingTop: padding.top,
|
193
|
+
paddingBottom: padding.bottom,
|
194
|
+
paddingRight: padding.right,
|
195
|
+
paddingLeft: padding.left,
|
196
|
+
width: '100%',
|
197
|
+
height: '100%'
|
198
|
+
} }, { children: (0, jsx_runtime_1.jsx)(GridContainer, __assign({ ref: containerRef, cols: isMobile ? 8 : 24, rowHeight: rowHeight, sectionRow: sectionRow !== null && sectionRow !== void 0 ? sectionRow : 0, style: {
|
199
|
+
width: customSectionStyles.width,
|
200
|
+
maxWidth: customSectionStyles.maxWidth,
|
201
|
+
minWidth: isMobile ? GLE_MIN_WIDTH_MOBILE_PX : GLE_MIN_WIDTH_DESKTOP_PX,
|
202
|
+
fontSize: "".concat(baseFontSize, "px")
|
203
|
+
} }, { children: (_a = props.componentBlocks) === null || _a === void 0 ? void 0 : _a.map(function (cb, index) {
|
204
|
+
var _a;
|
205
|
+
return ((0, jsx_runtime_1.jsx)(ErrorBoundary_1.ErrorBoundary, { children: (0, jsx_runtime_1.jsx)(FlexGridItem_1.default, { cb: cb, index: index, device: device, rowHeight: rowHeight, zIndex: (_a = zOrders === null || zOrders === void 0 ? void 0 : zOrders[device === 'DESKTOP' ? 'desktop' : 'mobile'][cb.id]) !== null && _a !== void 0 ? _a : 0 }) }, cb.id));
|
206
|
+
}) })) })) })) })) }));
|
207
|
+
});
|
208
|
+
var GridContainer = styled_components_1.default.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n display: grid; /* Space between grid items */\n gap: 10px;\n grid-auto-rows: minmax(", ", auto);\n grid-template-columns: repeat(", ", 1fr);\n grid-template-rows: repeat(", ", minmax(", ", 1fr));\n height: 100%;\n padding: 10px 10px;\n width: 100%;\n\n * {\n box-sizing: border-box;\n }\n"], ["\n display: grid; /* Space between grid items */\n gap: 10px;\n grid-auto-rows: minmax(", ", auto);\n grid-template-columns: repeat(", ", 1fr);\n grid-template-rows: repeat(", ", minmax(", ", 1fr));\n height: 100%;\n padding: 10px 10px;\n width: 100%;\n\n * {\n box-sizing: border-box;\n }\n"])), function (props) { return "".concat(props.rowHeight, "px"); }, function (props) { return props.cols; }, function (props) { return props.sectionRow; }, function (props) { return "".concat(0, "px"); });
|
209
|
+
var S_SectionWrapper = styled_components_1.default.div(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n position: relative;\n"], ["\n position: relative;\n"])));
|
210
|
+
exports.default = react_1.default.memo(Composition);
|
211
|
+
function getDefensiveFontSize(device, width) {
|
212
|
+
if (device === 'MOBILE') {
|
213
|
+
return width * (0.0000868 * width + 0.0202);
|
214
|
+
}
|
215
|
+
return width * (0.0000246 * width - 0.01618);
|
216
|
+
}
|
217
|
+
var templateObject_1, templateObject_2;
|
@@ -0,0 +1,27 @@
|
|
1
|
+
"use strict";
|
2
|
+
var __assign = (this && this.__assign) || function () {
|
3
|
+
__assign = Object.assign || function(t) {
|
4
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
5
|
+
s = arguments[i];
|
6
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
7
|
+
t[p] = s[p];
|
8
|
+
}
|
9
|
+
return t;
|
10
|
+
};
|
11
|
+
return __assign.apply(this, arguments);
|
12
|
+
};
|
13
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
14
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
15
|
+
};
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
17
|
+
var jsx_runtime_1 = require("react/jsx-runtime");
|
18
|
+
require("react");
|
19
|
+
var Composition_1 = __importDefault(require("./Composition"));
|
20
|
+
function CompositionRenderer(_a) {
|
21
|
+
var compositions = _a.compositions;
|
22
|
+
return ((0, jsx_runtime_1.jsx)("div", __assign({ style: {
|
23
|
+
width: '100%',
|
24
|
+
height: '100%'
|
25
|
+
} }, { children: compositions.map(function (composition) { return ((0, jsx_runtime_1.jsx)(Composition_1.default, __assign({}, composition), composition.id)); }) })));
|
26
|
+
}
|
27
|
+
exports.default = CompositionRenderer;
|
@@ -0,0 +1,12 @@
|
|
1
|
+
/// <reference types="react" />
|
2
|
+
import type { ComponentBlock } from '../sections/CustomSection/types';
|
3
|
+
import type { Device } from '../sections/CustomSection/util/types';
|
4
|
+
type Props = {
|
5
|
+
cb: ComponentBlock;
|
6
|
+
index: number;
|
7
|
+
device: Device;
|
8
|
+
rowHeight: number;
|
9
|
+
zIndex: number;
|
10
|
+
};
|
11
|
+
declare function FlexGridItem({ cb, index, device, rowHeight, zIndex }: Props): JSX.Element;
|
12
|
+
export default FlexGridItem;
|
@@ -0,0 +1,75 @@
|
|
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 __importDefault = (this && this.__importDefault) || function (mod) {
|
18
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
19
|
+
};
|
20
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
21
|
+
var jsx_runtime_1 = require("react/jsx-runtime");
|
22
|
+
var styled_components_1 = __importDefault(require("styled-components"));
|
23
|
+
var ComponentBlockMatcher_1 = __importDefault(require("./ComponentBlockMatcher"));
|
24
|
+
var gap = 10;
|
25
|
+
function FlexGridItem(_a) {
|
26
|
+
var cb = _a.cb, index = _a.index, device = _a.device, rowHeight = _a.rowHeight, zIndex = _a.zIndex;
|
27
|
+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
28
|
+
var defaultHeight = getMaxHeight(cb.jsonProperties.data.CB_PLACEMENT_PROP_PLACEMENT, device, rowHeight);
|
29
|
+
var gridArea = getGridAreaFromCB(cb.jsonProperties.data.CB_PLACEMENT_PROP_PLACEMENT, device);
|
30
|
+
// const zIndex =
|
31
|
+
// device === 'DESKTOP'
|
32
|
+
// ? cb.jsonProperties.data.CB_PLACEMENT_PROP_PLACEMENT.CB_PLACEMENT_PROP_PLACEMENT_SPEC_ZINDEX
|
33
|
+
// : cb.jsonProperties.data.CB_PLACEMENT_PROP_PLACEMENT[
|
34
|
+
// 'CB_PLACEMENT_PROP_PLACEMENT_SPEC_ZINDEX:MOBILE'
|
35
|
+
// ];
|
36
|
+
return ((0, jsx_runtime_1.jsx)(GridItem, __assign({ style: {
|
37
|
+
zIndex: zIndex,
|
38
|
+
gridArea: gridArea
|
39
|
+
// maxHeight: cb.componentBlockCode !== CB_ALL_CODES.CB_TEXT ? defaultHeight : undefined
|
40
|
+
} }, { children: (0, jsx_runtime_1.jsx)(ComponentBlockMatcher_1.default, { rowHeight: rowHeight, cbProps: cb, device: device, index: index }) })));
|
41
|
+
}
|
42
|
+
var GridItem = styled_components_1.default.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n height: auto;\n word-break: break-word;\n"], ["\n height: auto;\n word-break: break-word;\n"])));
|
43
|
+
function getMaxHeight(props, device, rowHeight) {
|
44
|
+
if (device === 'DESKTOP') {
|
45
|
+
var CB_PLACEMENT_PROP_PLACEMENT_SPEC_ROWS = props.CB_PLACEMENT_PROP_PLACEMENT_SPEC_ROWS;
|
46
|
+
var height_1 = CB_PLACEMENT_PROP_PLACEMENT_SPEC_ROWS * rowHeight +
|
47
|
+
(CB_PLACEMENT_PROP_PLACEMENT_SPEC_ROWS - 1) * gap;
|
48
|
+
return height_1;
|
49
|
+
}
|
50
|
+
var rowsMobile = props['CB_PLACEMENT_PROP_PLACEMENT_SPEC_ROWS:MOBILE'];
|
51
|
+
var height = rowsMobile * rowHeight + (rowsMobile - 1) * gap;
|
52
|
+
return height;
|
53
|
+
}
|
54
|
+
function getGridAreaFromCB(props, device) {
|
55
|
+
var CB_PLACEMENT_PROP_PLACEMENT_SPEC_STARTX = props.CB_PLACEMENT_PROP_PLACEMENT_SPEC_STARTX, CB_PLACEMENT_PROP_PLACEMENT_SPEC_STARTY = props.CB_PLACEMENT_PROP_PLACEMENT_SPEC_STARTY, cols = props.CB_PLACEMENT_PROP_PLACEMENT_SPEC_COLS, rows = props.CB_PLACEMENT_PROP_PLACEMENT_SPEC_ROWS;
|
56
|
+
if (device === 'DESKTOP') {
|
57
|
+
var colStart_1 = CB_PLACEMENT_PROP_PLACEMENT_SPEC_STARTX + 1;
|
58
|
+
var rowStart_1 = CB_PLACEMENT_PROP_PLACEMENT_SPEC_STARTY + 1;
|
59
|
+
var rowEnd_1 = rows + rowStart_1;
|
60
|
+
var colEnd_1 = cols + colStart_1;
|
61
|
+
// <grid-row-start> / <grid-column-start> / <grid-row-end> / <grid-column-end>;
|
62
|
+
return "".concat(rowStart_1, " / ").concat(colStart_1, " / ").concat(rowEnd_1, " / ").concat(colEnd_1);
|
63
|
+
}
|
64
|
+
var startXMobile = props['CB_PLACEMENT_PROP_PLACEMENT_SPEC_STARTX:MOBILE'];
|
65
|
+
var startYMobile = props['CB_PLACEMENT_PROP_PLACEMENT_SPEC_STARTY:MOBILE'];
|
66
|
+
var colsMobile = props['CB_PLACEMENT_PROP_PLACEMENT_SPEC_COLS:MOBILE'];
|
67
|
+
var rowsMobile = props['CB_PLACEMENT_PROP_PLACEMENT_SPEC_ROWS:MOBILE'];
|
68
|
+
var colStart = startXMobile + 1;
|
69
|
+
var rowStart = startYMobile + 1;
|
70
|
+
var rowEnd = rowsMobile + rowStart;
|
71
|
+
var colEnd = colsMobile + colStart;
|
72
|
+
return "".concat(rowStart, " / ").concat(colStart, " / ").concat(rowEnd, " / ").concat(colEnd);
|
73
|
+
}
|
74
|
+
exports.default = FlexGridItem;
|
75
|
+
var templateObject_1;
|
package/dist/src/sub/DynamicLayout/components/EditModeSectionMatcher/EditModeSectionMatcher.js
CHANGED
@@ -43,6 +43,9 @@ function EditModeSectionMatcher(_a) {
|
|
43
43
|
},
|
44
44
|
selectCBInBulk: function (cbIds) {
|
45
45
|
selectedSectionRef === null || selectedSectionRef === void 0 ? void 0 : selectedSectionRef.selectCBInBulk(cbIds);
|
46
|
+
},
|
47
|
+
selectGroup: function (groupId) {
|
48
|
+
selectedSectionRef === null || selectedSectionRef === void 0 ? void 0 : selectedSectionRef.selectGroup(groupId);
|
46
49
|
}
|
47
50
|
};
|
48
51
|
}, [selectedSectionRef]);
|
@@ -74,7 +74,7 @@ function SectionBox(_a) {
|
|
74
74
|
setIsHover(false);
|
75
75
|
onClickDelayedAsync();
|
76
76
|
};
|
77
|
-
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 }), (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" }) })] })), !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" }) }) }))), children] })) }));
|
77
|
+
return ((0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, { children: (0, jsx_runtime_1.jsxs)(S_SectionBox, __assign({ className: "editor-selected-section", 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 }), (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" }) })] })), !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" }) }) }))), children] })) }));
|
78
78
|
}
|
79
79
|
exports.default = SectionBox;
|
80
80
|
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) {
|
@@ -18,6 +18,17 @@ var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cook
|
|
18
18
|
if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
|
19
19
|
return cooked;
|
20
20
|
};
|
21
|
+
var __assign = (this && this.__assign) || function () {
|
22
|
+
__assign = Object.assign || function(t) {
|
23
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
24
|
+
s = arguments[i];
|
25
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
26
|
+
t[p] = s[p];
|
27
|
+
}
|
28
|
+
return t;
|
29
|
+
};
|
30
|
+
return __assign.apply(this, arguments);
|
31
|
+
};
|
21
32
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
22
33
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
23
34
|
};
|
@@ -50,7 +61,7 @@ var ErrorBoundary = /** @class */ (function (_super) {
|
|
50
61
|
ErrorBoundary.prototype.render = function () {
|
51
62
|
var hasError = this.state.hasError;
|
52
63
|
if (hasError) {
|
53
|
-
return (0, jsx_runtime_1.jsx)(ErrorWrapper, { children: "Error" });
|
64
|
+
return (0, jsx_runtime_1.jsx)(ErrorWrapper, __assign({ className: "error-boundary" }, { children: "Error" }));
|
54
65
|
}
|
55
66
|
var children = this.props.children;
|
56
67
|
return children;
|
@@ -21,15 +21,17 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
21
21
|
}
|
22
22
|
return t;
|
23
23
|
};
|
24
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
25
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
26
|
+
};
|
24
27
|
Object.defineProperty(exports, "__esModule", { value: true });
|
25
28
|
var jsx_runtime_1 = require("react/jsx-runtime");
|
26
|
-
|
29
|
+
var FlexGridCustomSection_1 = __importDefault(require("../../../DynamicLayout/sections/FlexGridCustomSection"));
|
27
30
|
var sections_1 = require("../../sections");
|
28
31
|
function SectionMatcher(_a) {
|
29
32
|
var props = __rest(_a, []);
|
30
33
|
if (props.type === 'CUSTOM') {
|
31
|
-
|
32
|
-
return (0, jsx_runtime_1.jsx)(sections_1.CustomSection, __assign({}, props));
|
34
|
+
return (0, jsx_runtime_1.jsx)(FlexGridCustomSection_1.default, __assign({}, props));
|
33
35
|
}
|
34
36
|
var schema = props.manifest.schema;
|
35
37
|
switch (schema) {
|