pds-dev-kit-web-test 0.3.44 → 2.2.48
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/styles/colorSet/PaletteColor_Dark.json +4 -1
- package/dist/src/common/styles/colorSet/PaletteColor_light.json +4 -1
- package/dist/src/common/styles/colorSet/UIColor.json +4 -1
- package/dist/src/common/styles/colorSet/index.d.ts +131 -122
- package/dist/src/common/styles/colorSet/index.js +4 -4
- package/dist/src/common/styles/colorSet/ui-type.d.ts +3 -0
- package/dist/src/desktop/common/components/TextFieldBase/TextFieldBase.js +1 -1
- package/dist/src/desktop/components/BasicListItem/BasicListItem.d.ts +2 -1
- package/dist/src/desktop/components/BasicListItem/BasicListItem.js +2 -2
- package/dist/src/desktop/components/BasicListItem/RightBox/MainButton.d.ts +1 -0
- package/dist/src/desktop/components/BasicListItem/RightBox/MainButton.js +2 -2
- package/dist/src/desktop/components/ChatBubbleListItem/ChatBubbleListItem.d.ts +3 -1
- package/dist/src/desktop/components/ChatBubbleListItem/ChatBubbleListItem.js +20 -9
- package/dist/src/desktop/components/ChatList/ChatList.d.ts +8 -1
- package/dist/src/desktop/components/ChatList/ChatList.js +3 -3
- package/dist/src/desktop/components/ChatList/Header.d.ts +2 -2
- package/dist/src/desktop/components/ChatList/Header.js +18 -3
- package/dist/src/desktop/components/DynamicDesktopNavBar/components/MenuItemNav/components/InternalLinkMenuItemNav.js +9 -18
- package/dist/src/desktop/components/DynamicDesktopNavBar/components/MenuItemNav/components/PAppMenuItemNav.js +2 -10
- package/dist/src/desktop/components/DynamicDesktopNavBar/components/MenuItemNav/components/PageMenuItemNav.js +2 -10
- package/dist/src/mobile/common/components/TextFieldBase/TextFieldBase.js +1 -1
- package/dist/src/mobile/components/BasicListItem/BasicListItem.d.ts +2 -1
- package/dist/src/mobile/components/BasicListItem/BasicListItem.js +2 -2
- package/dist/src/mobile/components/BasicListItem/RightBox/MainButton.d.ts +1 -0
- package/dist/src/mobile/components/BasicListItem/RightBox/MainButton.js +2 -2
- package/dist/src/mobile/components/ChatBubbleListItem/ChatBubbleListItem.d.ts +3 -1
- package/dist/src/mobile/components/ChatBubbleListItem/ChatBubbleListItem.js +20 -9
- package/dist/src/mobile/components/ChatList/ChatList.d.ts +8 -1
- package/dist/src/mobile/components/ChatList/ChatList.js +3 -3
- package/dist/src/mobile/components/ChatList/Header.d.ts +2 -2
- package/dist/src/mobile/components/ChatList/Header.js +15 -3
- package/dist/src/sub/DynamicLayout/DynamicLayout.d.ts +1 -1
- package/dist/src/sub/DynamicLayout/DynamicLayout.js +2 -3
- package/dist/src/sub/DynamicLayout/components/Section/components/CustomSectionBackground.js +2 -3
- package/dist/src/sub/DynamicLayout/mock_customSection.d.ts +2 -0
- package/dist/src/sub/DynamicLayout/mock_customSection.js +840 -0
- package/dist/src/sub/DynamicLayout/nakedMocks.json +847 -0
- package/dist/src/sub/DynamicLayout/pagesPreviewMock.d.ts +2 -1236
- package/dist/src/sub/DynamicLayout/pagesPreviewMock.js +6 -2298
- package/dist/src/sub/DynamicLayout/sectionActionTypes.d.ts +0 -18
- package/dist/src/sub/DynamicLayout/sections/CustomSection/CustomSection.d.ts +0 -5
- package/dist/src/sub/DynamicLayout/sections/CustomSection/CustomSection.js +24 -226
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/ComponentBlock.d.ts +1 -2
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/ComponentBlock.js +2 -2
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/ComponentBlockMatcher.d.ts +1 -2
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/ComponentBlockMatcher.js +10 -11
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/Button/Button.d.ts +2 -2
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/Button/Button.js +2 -4
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/Divider/Divider.d.ts +2 -2
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/Divider/Divider.js +2 -4
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/Image/Image.d.ts +2 -2
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/Image/Image.js +2 -4
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/RichText/RichText.d.ts +2 -2
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/RichText/RichText.js +2 -4
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/Text/Text.d.ts +2 -2
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/Text/Text.js +2 -5
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/Twitter/Twitter.d.ts +2 -2
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/Twitter/Twitter.js +2 -4
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/Youtube/Youtube.d.ts +2 -2
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/Youtube/Youtube.js +3 -5
- package/dist/src/sub/DynamicLayout/sections/CustomSection/hooks/useIntersectionObserver.d.ts +1 -1
- package/dist/src/sub/DynamicLayout/sections/CustomSection/hooks/useIntersectionObserver.js +9 -21
- package/dist/src/sub/DynamicLayout/sections/CustomSection/types.d.ts +7 -29
- package/dist/src/sub/DynamicLayout/sections/CustomSection/util/parseJsonProperties.d.ts +1 -1
- package/dist/src/sub/DynamicLayout/sections/CustomSection/util/parsePlacement.js +2 -2
- package/dist/src/sub/DynamicLayout/sections/CustomSection/util/types.d.ts +0 -3
- package/dist/src/sub/DynamicLayout/types.d.ts +18 -22
- package/package.json +2 -2
- package/release-note.md +6 -6
- package/webhook/node_modules/esrecurse/.babelrc +3 -0
- package/dist/src/sub/DynamicLayout/hooks/useCustomSectionShortcut/useCustomSectionShortcut.d.ts +0 -6
- package/dist/src/sub/DynamicLayout/hooks/useCustomSectionShortcut/useCustomSectionShortcut.js +0 -50
- 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 -21
- package/dist/src/sub/DynamicLayout/sections/CustomSection/hooks/useGroupDrag/useGroupDrag.js +0 -225
- package/dist/src/sub/DynamicLayout/sections/CustomSection/hooks/useGroupDrag/utils.d.ts +0 -12
- package/dist/src/sub/DynamicLayout/sections/CustomSection/hooks/useGroupDrag/utils.js +0 -127
- package/dist/src/sub/DynamicLayout/utils/deepCopy.d.ts +0 -1
- package/dist/src/sub/DynamicLayout/utils/deepCopy.js +0 -15
|
@@ -2,7 +2,6 @@ import React from 'react';
|
|
|
2
2
|
type Props = {
|
|
3
3
|
ani: string;
|
|
4
4
|
children: React.ReactNode;
|
|
5
|
-
index: number;
|
|
6
5
|
};
|
|
7
|
-
declare function ComponentBlock({ ani, children
|
|
6
|
+
declare function ComponentBlock({ ani, children }: Props): JSX.Element;
|
|
8
7
|
export default ComponentBlock;
|
|
@@ -43,9 +43,9 @@ var react_1 = require("react");
|
|
|
43
43
|
var styled_components_1 = __importStar(require("styled-components"));
|
|
44
44
|
var hooks_1 = require("../../hooks");
|
|
45
45
|
function ComponentBlock(_a) {
|
|
46
|
-
var ani = _a.ani, children = _a.children
|
|
46
|
+
var ani = _a.ani, children = _a.children;
|
|
47
47
|
var ref = (0, react_1.useRef)(null);
|
|
48
|
-
var entry = (0, hooks_1.useIntersectionObserver)(ref, { threshold: 0 }
|
|
48
|
+
var entry = (0, hooks_1.useIntersectionObserver)(ref, { threshold: 0 });
|
|
49
49
|
var isInViewport = !!(entry === null || entry === void 0 ? void 0 : entry.isIntersecting);
|
|
50
50
|
return ((0, jsx_runtime_1.jsx)(S_CBWrapper, { children: (0, jsx_runtime_1.jsx)(S_CBBox, __assign({ ref: ref, isInViewport: isInViewport, animationName: ani }, { children: children })) }));
|
|
51
51
|
}
|
|
@@ -4,7 +4,6 @@ import type { Device } from '../../util/types';
|
|
|
4
4
|
type Props = {
|
|
5
5
|
cbProps: ComponentBlock;
|
|
6
6
|
device: Device;
|
|
7
|
-
index: number;
|
|
8
7
|
};
|
|
9
|
-
export default function ComponentBlockMatcher({ cbProps, device
|
|
8
|
+
export default function ComponentBlockMatcher({ cbProps, device }: Props): JSX.Element;
|
|
10
9
|
export {};
|
|
@@ -15,7 +15,6 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
18
|
-
require("react");
|
|
19
18
|
var newUtils_1 = require("../../newUtils");
|
|
20
19
|
var types_1 = require("../../types");
|
|
21
20
|
var Button_1 = __importDefault(require("./componentBlocks/Button/Button"));
|
|
@@ -26,24 +25,24 @@ var Text_1 = __importDefault(require("./componentBlocks/Text/Text"));
|
|
|
26
25
|
var Twitter_1 = __importDefault(require("./componentBlocks/Twitter/Twitter"));
|
|
27
26
|
var Youtube_1 = require("./componentBlocks/Youtube");
|
|
28
27
|
function ComponentBlockMatcher(_a) {
|
|
29
|
-
var cbProps = _a.cbProps, device = _a.device
|
|
30
|
-
var componentBlockCode = cbProps.componentBlockCode,
|
|
31
|
-
var propsWithValue = device === 'MOBILE' ? (0, newUtils_1.replaceUndefinedValues)(
|
|
28
|
+
var cbProps = _a.cbProps, device = _a.device;
|
|
29
|
+
var componentBlockCode = cbProps.componentBlockCode, properties = cbProps.properties;
|
|
30
|
+
var propsWithValue = device === 'MOBILE' ? (0, newUtils_1.replaceUndefinedValues)(properties) : properties;
|
|
32
31
|
switch (componentBlockCode) {
|
|
33
32
|
case types_1.CB_ALL_CODES.CB_BTN:
|
|
34
|
-
return (0, jsx_runtime_1.jsx)(Button_1.default, __assign({}, propsWithValue
|
|
33
|
+
return (0, jsx_runtime_1.jsx)(Button_1.default, __assign({}, propsWithValue));
|
|
35
34
|
case types_1.CB_ALL_CODES.CB_TEXT:
|
|
36
|
-
return (0, jsx_runtime_1.jsx)(Text_1.default, __assign({}, propsWithValue
|
|
35
|
+
return (0, jsx_runtime_1.jsx)(Text_1.default, __assign({}, propsWithValue));
|
|
37
36
|
case types_1.CB_ALL_CODES.CB_RICHTEXT:
|
|
38
|
-
return (0, jsx_runtime_1.jsx)(RichText_1.RichText, __assign({}, propsWithValue
|
|
37
|
+
return (0, jsx_runtime_1.jsx)(RichText_1.RichText, __assign({}, propsWithValue));
|
|
39
38
|
case types_1.CB_ALL_CODES.CB_DIVIDER:
|
|
40
|
-
return (0, jsx_runtime_1.jsx)(Divider_1.default, __assign({}, propsWithValue
|
|
39
|
+
return (0, jsx_runtime_1.jsx)(Divider_1.default, __assign({}, propsWithValue));
|
|
41
40
|
case types_1.CB_ALL_CODES.CB_IMG:
|
|
42
|
-
return (0, jsx_runtime_1.jsx)(Image_1.default, __assign({}, propsWithValue
|
|
41
|
+
return (0, jsx_runtime_1.jsx)(Image_1.default, __assign({}, propsWithValue));
|
|
43
42
|
case types_1.CB_ALL_CODES.CB_TWITTER:
|
|
44
|
-
return (0, jsx_runtime_1.jsx)(Twitter_1.default, __assign({}, propsWithValue
|
|
43
|
+
return (0, jsx_runtime_1.jsx)(Twitter_1.default, __assign({}, propsWithValue));
|
|
45
44
|
case types_1.CB_ALL_CODES.CB_YOUTUBE:
|
|
46
|
-
return (0, jsx_runtime_1.jsx)(Youtube_1.Youtube, __assign({}, propsWithValue
|
|
45
|
+
return (0, jsx_runtime_1.jsx)(Youtube_1.Youtube, __assign({}, propsWithValue));
|
|
47
46
|
default:
|
|
48
47
|
return (0, jsx_runtime_1.jsx)("div", { children: "Error: not supported CB" });
|
|
49
48
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import type { CB_BTN_PROPERTIES_TYPE
|
|
3
|
-
type Props = CB_BTN_PROPERTIES_TYPE
|
|
2
|
+
import type { CB_BTN_PROPERTIES_TYPE } from '../../../../../../../DynamicLayout/sections/CustomSection/util/types';
|
|
3
|
+
type Props = CB_BTN_PROPERTIES_TYPE;
|
|
4
4
|
declare function Button(props: Props): JSX.Element;
|
|
5
5
|
export default Button;
|
|
@@ -40,7 +40,7 @@ var S_HiddenCover_1 = require("../components/S_HiddenCover");
|
|
|
40
40
|
var useCLINK_1 = __importDefault(require("../hooks/useCLINK"));
|
|
41
41
|
function Button(props) {
|
|
42
42
|
var _a = (0, react_1.useContext)(DynamicLayout_1.dynamicLayoutContext), device = _a.device, mode = _a.mode;
|
|
43
|
-
var
|
|
43
|
+
var CB_STYLE_PROP_BTNCOLOR = props.CB_STYLE_PROP_BTNCOLOR, _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;
|
|
44
44
|
var _c = (0, useCLINK_1.default)({
|
|
45
45
|
src: CB_CONTENT_PROP_CLINK_SPEC_SRC,
|
|
46
46
|
type: CB_CONTENT_PROP_CLINK_SPEC_TYPE,
|
|
@@ -57,9 +57,7 @@ function Button(props) {
|
|
|
57
57
|
propsStyle.visibility = 'visible';
|
|
58
58
|
}
|
|
59
59
|
var cbRef = (0, react_1.useRef)(null);
|
|
60
|
-
var entry = (0, hooks_1.useIntersectionObserver)(cbRef, { threshold: 0.2, freezeOnceVisible: false }
|
|
61
|
-
index
|
|
62
|
-
]);
|
|
60
|
+
var entry = (0, hooks_1.useIntersectionObserver)(cbRef, { threshold: 0.2, freezeOnceVisible: false });
|
|
63
61
|
var isVisible = !!(entry === null || entry === void 0 ? void 0 : entry.isIntersecting);
|
|
64
62
|
var effectCssProperties = isVisible ? effect : {};
|
|
65
63
|
var isNoneEffectType = device === 'DESKTOP'
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import type { CB_DIVIDER_PROPERTIES_TYPE
|
|
3
|
-
type Props = CB_DIVIDER_PROPERTIES_TYPE
|
|
2
|
+
import type { CB_DIVIDER_PROPERTIES_TYPE } from '../../../../util/types';
|
|
3
|
+
type Props = CB_DIVIDER_PROPERTIES_TYPE;
|
|
4
4
|
declare function Divider(props: Props): JSX.Element;
|
|
5
5
|
export default Divider;
|
|
@@ -49,16 +49,14 @@ var S_CB_Box_1 = require("../components/S_CB_Box");
|
|
|
49
49
|
var S_HiddenCover_1 = require("../components/S_HiddenCover");
|
|
50
50
|
function Divider(props) {
|
|
51
51
|
var _a = (0, react_1.useContext)(DynamicLayout_1.dynamicLayoutContext), device = _a.device, mode = _a.mode;
|
|
52
|
-
var
|
|
52
|
+
var CB_EFFECT_PROP_ENTANIM = props.CB_EFFECT_PROP_ENTANIM;
|
|
53
53
|
var _b = (0, util_1.parseProperties)(props, device), propsStyle = _b.style, propsHoverStyle = _b.hoverStyle, layoutStyle = _b.layout, effect = _b.effect;
|
|
54
54
|
var isEditModeAndHidden = propsStyle.visibility === 'hidden' && mode === 'EDIT';
|
|
55
55
|
if (mode === 'EDIT') {
|
|
56
56
|
propsStyle.visibility = 'visible';
|
|
57
57
|
}
|
|
58
58
|
var cbRef = (0, react_1.useRef)(null);
|
|
59
|
-
var entry = (0, hooks_1.useIntersectionObserver)(cbRef, { threshold: 0.2, freezeOnceVisible: false }
|
|
60
|
-
index
|
|
61
|
-
]);
|
|
59
|
+
var entry = (0, hooks_1.useIntersectionObserver)(cbRef, { threshold: 0.2, freezeOnceVisible: false });
|
|
62
60
|
var isVisible = !!(entry === null || entry === void 0 ? void 0 : entry.isIntersecting);
|
|
63
61
|
var effectCssProperties = isVisible ? effect : {};
|
|
64
62
|
var isNoneEffectType = device === 'DESKTOP'
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import type { CB_IMG_PROPERTIES_TYPE
|
|
3
|
-
type Props = CB_IMG_PROPERTIES_TYPE
|
|
2
|
+
import type { CB_IMG_PROPERTIES_TYPE } from '../../../../util/types';
|
|
3
|
+
type Props = CB_IMG_PROPERTIES_TYPE;
|
|
4
4
|
declare function Image(props: Props): JSX.Element;
|
|
5
5
|
export default Image;
|
|
@@ -53,7 +53,7 @@ var S_HiddenCover_1 = require("../components/S_HiddenCover");
|
|
|
53
53
|
var useCLINK_1 = __importDefault(require("../hooks/useCLINK"));
|
|
54
54
|
function Image(props) {
|
|
55
55
|
var _a = (0, react_1.useContext)(DynamicLayout_1.dynamicLayoutContext), device = _a.device, mode = _a.mode;
|
|
56
|
-
var
|
|
56
|
+
var 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;
|
|
57
57
|
var _c = (0, useCLINK_1.default)({
|
|
58
58
|
src: CB_CONTENT_PROP_CLINK_SPEC_SRC,
|
|
59
59
|
type: CB_CONTENT_PROP_CLINK_SPEC_TYPE,
|
|
@@ -64,9 +64,7 @@ function Image(props) {
|
|
|
64
64
|
var _e = parseImageCBStyle(style, hoverStyle, mode), boxStyle = _e.boxStyle, imgStyle = _e.imgStyle;
|
|
65
65
|
var isEditModeAndHidden = style.visibility === 'hidden' && mode === 'EDIT';
|
|
66
66
|
var cbRef = (0, react_1.useRef)(null);
|
|
67
|
-
var entry = (0, hooks_1.useIntersectionObserver)(cbRef, { threshold: 0.2, freezeOnceVisible: false }
|
|
68
|
-
index
|
|
69
|
-
]);
|
|
67
|
+
var entry = (0, hooks_1.useIntersectionObserver)(cbRef, { threshold: 0.2, freezeOnceVisible: false });
|
|
70
68
|
var isVisible = !!(entry === null || entry === void 0 ? void 0 : entry.isIntersecting);
|
|
71
69
|
var effectCssProperties = isVisible ? effect : {};
|
|
72
70
|
var isNoneEffectType = device === 'DESKTOP'
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import type { CB_RICHTEXT_PROPERTIES_TYPE
|
|
3
|
-
type Props = CB_RICHTEXT_PROPERTIES_TYPE
|
|
2
|
+
import type { CB_RICHTEXT_PROPERTIES_TYPE } from '../../../../../../../DynamicLayout/sections/CustomSection/util/types';
|
|
3
|
+
type Props = CB_RICHTEXT_PROPERTIES_TYPE;
|
|
4
4
|
declare function RichText(props: Props): JSX.Element;
|
|
5
5
|
export default RichText;
|
|
@@ -32,7 +32,7 @@ var S_CB_BoxWithShadow_1 = require("../components/S_CB_BoxWithShadow");
|
|
|
32
32
|
var S_HiddenCover_1 = require("../components/S_HiddenCover");
|
|
33
33
|
function RichText(props) {
|
|
34
34
|
var _a = (0, react_1.useContext)(DynamicLayout_1.dynamicLayoutContext), device = _a.device, mode = _a.mode;
|
|
35
|
-
var
|
|
35
|
+
var CB_STYLE_PROP_BGCOLOR = props.CB_STYLE_PROP_BGCOLOR, CB_STYLE_PROP_SHADOW = props.CB_STYLE_PROP_SHADOW, CB_EFFECT_PROP_ENTANIM = props.CB_EFFECT_PROP_ENTANIM;
|
|
36
36
|
var _b = (0, util_1.parseProperties)(props, device), propsStyle = _b.style, propsHoverStyle = _b.hoverStyle, layoutStyle = _b.layout, effect = _b.effect;
|
|
37
37
|
var _c = getBGColorStyles(CB_STYLE_PROP_BGCOLOR, device), bgColorStyle = _c.style, bgColorHoverStyle = _c.hoverStyle;
|
|
38
38
|
var isEditModeAndHidden = propsStyle.visibility === 'hidden' && mode === 'EDIT';
|
|
@@ -40,9 +40,7 @@ function RichText(props) {
|
|
|
40
40
|
propsStyle.visibility = 'visible';
|
|
41
41
|
}
|
|
42
42
|
var cbRef = (0, react_1.useRef)(null);
|
|
43
|
-
var entry = (0, hooks_1.useIntersectionObserver)(cbRef, { threshold: 0.2, freezeOnceVisible: false }
|
|
44
|
-
index
|
|
45
|
-
]);
|
|
43
|
+
var entry = (0, hooks_1.useIntersectionObserver)(cbRef, { threshold: 0.2, freezeOnceVisible: false });
|
|
46
44
|
var isVisible = !!(entry === null || entry === void 0 ? void 0 : entry.isIntersecting);
|
|
47
45
|
var effectCssProperties = isVisible ? effect : {};
|
|
48
46
|
var isNoneEffectType = device === 'DESKTOP'
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import type { CB_TEXT_PROPERTIES_TYPE
|
|
3
|
-
type Props = CB_TEXT_PROPERTIES_TYPE
|
|
2
|
+
import type { CB_TEXT_PROPERTIES_TYPE } from '../../../../util/types';
|
|
3
|
+
type Props = CB_TEXT_PROPERTIES_TYPE;
|
|
4
4
|
declare function Text(props: Props): JSX.Element;
|
|
5
5
|
export default Text;
|
|
@@ -15,7 +15,6 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
18
|
-
/* eslint-disable no-console */
|
|
19
18
|
/* eslint-disable react/destructuring-assignment */
|
|
20
19
|
var react_1 = require("react");
|
|
21
20
|
var DynamicLayout_1 = require("../../../../../../../DynamicLayout");
|
|
@@ -30,7 +29,7 @@ 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
|
|
32
|
+
var _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;
|
|
34
33
|
var _c = (0, useCLINK_1.default)({
|
|
35
34
|
src: CB_CONTENT_PROP_CLINK_SPEC_SRC,
|
|
36
35
|
type: CB_CONTENT_PROP_CLINK_SPEC_TYPE,
|
|
@@ -46,9 +45,7 @@ function Text(props) {
|
|
|
46
45
|
propsStyle.visibility = 'visible';
|
|
47
46
|
}
|
|
48
47
|
var cbRef = (0, react_1.useRef)(null);
|
|
49
|
-
var entry = (0, hooks_1.useIntersectionObserver)(cbRef, { threshold: 0.2, freezeOnceVisible: false }
|
|
50
|
-
index
|
|
51
|
-
]);
|
|
48
|
+
var entry = (0, hooks_1.useIntersectionObserver)(cbRef, { threshold: 0.2, freezeOnceVisible: false });
|
|
52
49
|
var isVisible = !!(entry === null || entry === void 0 ? void 0 : entry.isIntersecting);
|
|
53
50
|
var effectCssProperties = isVisible ? effect : {};
|
|
54
51
|
var isNoneEffectType = device === 'DESKTOP'
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import type { CB_TWITTER_PROPERTIES_TYPE
|
|
3
|
-
type Props = CB_TWITTER_PROPERTIES_TYPE
|
|
2
|
+
import type { CB_TWITTER_PROPERTIES_TYPE } from '../../../../util/types';
|
|
3
|
+
type Props = CB_TWITTER_PROPERTIES_TYPE;
|
|
4
4
|
declare function Twitter(props: Props): JSX.Element;
|
|
5
5
|
export default Twitter;
|
|
@@ -22,7 +22,7 @@ var S_CB_BoxWithShadow_1 = require("../components/S_CB_BoxWithShadow");
|
|
|
22
22
|
function Twitter(props) {
|
|
23
23
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
24
24
|
var _a = (0, react_1.useContext)(DynamicLayout_1.dynamicLayoutContext), device = _a.device, mode = _a.mode;
|
|
25
|
-
var CB_EFFECT_PROP_ENTANIM = props.CB_EFFECT_PROP_ENTANIM
|
|
25
|
+
var CB_EFFECT_PROP_ENTANIM = props.CB_EFFECT_PROP_ENTANIM;
|
|
26
26
|
var CB_CONTENT_PROP_TWITTER_SPEC_SRC = props.CB_CONTENT_PROP_TWITTER.CB_CONTENT_PROP_TWITTER_SPEC_SRC, CB_STYLE_PROP_TWITTER_SPEC_THEME = props.CB_STYLE_PROP_TWITTER.CB_STYLE_PROP_TWITTER_SPEC_THEME, CB_STYLE_PROP_SHADOW = props.CB_STYLE_PROP_SHADOW;
|
|
27
27
|
var _b = (0, util_1.parseProperties)(props, device), style = _b.style, hoverStyle = _b.hoverStyle, layout = _b.layout, effect = _b.effect;
|
|
28
28
|
var userId = CB_CONTENT_PROP_TWITTER_SPEC_SRC.replace('https://twitter.com/', '');
|
|
@@ -37,9 +37,7 @@ function Twitter(props) {
|
|
|
37
37
|
delete layout.justifyContent;
|
|
38
38
|
}
|
|
39
39
|
var cbRef = (0, react_1.useRef)(null);
|
|
40
|
-
var entry = (0, hooks_1.useIntersectionObserver)(cbRef, { threshold: 0.2, freezeOnceVisible: false }
|
|
41
|
-
index
|
|
42
|
-
]);
|
|
40
|
+
var entry = (0, hooks_1.useIntersectionObserver)(cbRef, { threshold: 0.2, freezeOnceVisible: false });
|
|
43
41
|
var isVisible = !!(entry === null || entry === void 0 ? void 0 : entry.isIntersecting);
|
|
44
42
|
var effectCssProperties = isVisible ? effect : {};
|
|
45
43
|
var editModeStyle = mode === 'EDIT' ? { pointerEvents: 'none' } : {};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import type { CB_YOUTUBE_PROPERTIES_TYPE
|
|
3
|
-
type Props = CB_YOUTUBE_PROPERTIES_TYPE
|
|
2
|
+
import type { CB_YOUTUBE_PROPERTIES_TYPE } from '../../../../../../../DynamicLayout/sections/CustomSection/util/types';
|
|
3
|
+
type Props = CB_YOUTUBE_PROPERTIES_TYPE;
|
|
4
4
|
export type YOUTUBE_AUTOPLAY_TRIGGER_POINT = 'ALWAYS' | 'VIEWPORT-FREEZE' | 'VIEWPORT';
|
|
5
5
|
declare function Youtube(props: Props): JSX.Element;
|
|
6
6
|
export default Youtube;
|
|
@@ -32,7 +32,7 @@ var parseYoutubeContentProp_1 = __importDefault(require("./parseYoutubeContentPr
|
|
|
32
32
|
var YOUTUBE_AUTOPLAY_TRIGGER_POINT = 'VIEWPORT';
|
|
33
33
|
function Youtube(props) {
|
|
34
34
|
var _a = (0, react_1.useContext)(DynamicLayout_1.dynamicLayoutContext), device = _a.device, mode = _a.mode;
|
|
35
|
-
var
|
|
35
|
+
var CB_CONTENT_PROP_YOUTUBE = props.CB_CONTENT_PROP_YOUTUBE, CB_STYLE_PROP_BGCOLOR = props.CB_STYLE_PROP_BGCOLOR, CB_STYLE_PROP_SHADOW = props.CB_STYLE_PROP_SHADOW, CB_EFFECT_PROP_ENTANIM = props.CB_EFFECT_PROP_ENTANIM;
|
|
36
36
|
var _b = (0, parseYoutubeContentProp_1.default)(CB_CONTENT_PROP_YOUTUBE, device, YOUTUBE_AUTOPLAY_TRIGGER_POINT), youtubeSrc = _b.youtubeSrc, thumbnailSrc = _b.thumbnailSrc, id = _b.id, cbAutoplayMode = _b.cbAutoplayMode;
|
|
37
37
|
var isEditMode = mode === 'EDIT';
|
|
38
38
|
var _c = getBGColorStyles(CB_STYLE_PROP_BGCOLOR, device), bgColorStyle = _c.style, bgColorHoverStyle = _c.hoverStyle;
|
|
@@ -42,9 +42,7 @@ function Youtube(props) {
|
|
|
42
42
|
propsStyle.visibility = 'visible';
|
|
43
43
|
}
|
|
44
44
|
var cbRef = (0, react_1.useRef)(null);
|
|
45
|
-
var entry = (0, hooks_1.useIntersectionObserver)(cbRef, { threshold: 0.2, freezeOnceVisible: false }
|
|
46
|
-
index
|
|
47
|
-
]);
|
|
45
|
+
var entry = (0, hooks_1.useIntersectionObserver)(cbRef, { threshold: 0.2, freezeOnceVisible: false });
|
|
48
46
|
var isVisible = !!(entry === null || entry === void 0 ? void 0 : entry.isIntersecting);
|
|
49
47
|
var effectCssProperties = isVisible ? effect : {};
|
|
50
48
|
var isNoneEffectType = device === 'DESKTOP'
|
|
@@ -56,7 +54,7 @@ function Youtube(props) {
|
|
|
56
54
|
var autoplayRef = (0, react_1.useRef)(null);
|
|
57
55
|
var autoplayEntry = (0, hooks_1.useIntersectionObserver)(autoplayRef, {
|
|
58
56
|
freezeOnceVisible: YOUTUBE_AUTOPLAY_TRIGGER_POINT === 'VIEWPORT-FREEZE' ? true : false
|
|
59
|
-
}
|
|
57
|
+
});
|
|
60
58
|
var onLoadIframe = function () {
|
|
61
59
|
var _a;
|
|
62
60
|
if (!((_a = iframeRef.current) === null || _a === void 0 ? void 0 : _a.contentWindow)) {
|
package/dist/src/sub/DynamicLayout/sections/CustomSection/hooks/useIntersectionObserver.d.ts
CHANGED
|
@@ -2,5 +2,5 @@ import { RefObject } from 'react';
|
|
|
2
2
|
interface Args extends IntersectionObserverInit {
|
|
3
3
|
freezeOnceVisible?: boolean;
|
|
4
4
|
}
|
|
5
|
-
export declare function useIntersectionObserver(elementRef: RefObject<Element>, { threshold, root, rootMargin, freezeOnceVisible }: Args
|
|
5
|
+
export declare function useIntersectionObserver(elementRef: RefObject<Element>, { threshold, root, rootMargin, freezeOnceVisible }: Args): IntersectionObserverEntry | undefined;
|
|
6
6
|
export {};
|
|
@@ -1,38 +1,26 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
|
|
3
|
-
if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
|
|
4
|
-
if (ar || !(i in from)) {
|
|
5
|
-
if (!ar) ar = Array.prototype.slice.call(from, 0, i);
|
|
6
|
-
ar[i] = from[i];
|
|
7
|
-
}
|
|
8
|
-
}
|
|
9
|
-
return to.concat(ar || Array.prototype.slice.call(from));
|
|
10
|
-
};
|
|
11
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
3
|
exports.useIntersectionObserver = void 0;
|
|
13
4
|
var react_1 = require("react");
|
|
14
|
-
function useIntersectionObserver(elementRef, _a
|
|
5
|
+
function useIntersectionObserver(elementRef, _a) {
|
|
15
6
|
var _b = _a.threshold, threshold = _b === void 0 ? 0 : _b, _c = _a.root, root = _c === void 0 ? null : _c, _d = _a.rootMargin, rootMargin = _d === void 0 ? '0%' : _d, _e = _a.freezeOnceVisible, freezeOnceVisible = _e === void 0 ? false : _e;
|
|
16
7
|
var _f = (0, react_1.useState)(), entry = _f[0], setEntry = _f[1];
|
|
17
8
|
var frozen = (entry === null || entry === void 0 ? void 0 : entry.isIntersecting) && freezeOnceVisible;
|
|
18
|
-
|
|
19
|
-
var
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
9
|
+
var updateEntry = function (_a) {
|
|
10
|
+
var entry = _a[0];
|
|
11
|
+
setEntry(entry);
|
|
12
|
+
};
|
|
13
|
+
(0, react_1.useEffect)(function () {
|
|
23
14
|
var node = elementRef === null || elementRef === void 0 ? void 0 : elementRef.current; // DOM Ref
|
|
24
15
|
var hasIOSupport = !!window.IntersectionObserver;
|
|
25
|
-
if (!hasIOSupport || frozen || !node)
|
|
16
|
+
if (!hasIOSupport || frozen || !node)
|
|
26
17
|
return;
|
|
27
|
-
}
|
|
28
18
|
var observerParams = { threshold: threshold, root: root, rootMargin: rootMargin };
|
|
29
19
|
var observer = new IntersectionObserver(updateEntry, observerParams);
|
|
30
20
|
observer.observe(node);
|
|
31
|
-
return function () {
|
|
32
|
-
observer.disconnect();
|
|
33
|
-
};
|
|
21
|
+
return function () { return observer.disconnect(); };
|
|
34
22
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
35
|
-
},
|
|
23
|
+
}, [elementRef === null || elementRef === void 0 ? void 0 : elementRef.current, JSON.stringify(threshold), root, rootMargin, frozen]);
|
|
36
24
|
return entry;
|
|
37
25
|
}
|
|
38
26
|
exports.useIntersectionObserver = useIntersectionObserver;
|
|
@@ -9,56 +9,34 @@ type GeneralCustomSectionType = {
|
|
|
9
9
|
queryableDefinitionPreset: string;
|
|
10
10
|
dynamicLayoutSectionId: number;
|
|
11
11
|
};
|
|
12
|
-
export type GroupCustomSectionType = {
|
|
13
|
-
id: 'group';
|
|
14
|
-
type: 'GROUP';
|
|
15
|
-
availablePlugins: Array<string>;
|
|
16
|
-
queryableTapSrc: string;
|
|
17
|
-
queryableDefinitionPreset: string;
|
|
18
|
-
dynamicLayoutSectionId: number;
|
|
19
|
-
};
|
|
20
12
|
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;
|
|
21
13
|
export type CB_TEXT_TYPE = GeneralCustomSectionType & {
|
|
22
14
|
componentBlockCode: CB_ALL_CODES.CB_TEXT;
|
|
23
|
-
|
|
24
|
-
data: CB_TEXT_PROPERTIES_TYPE;
|
|
25
|
-
};
|
|
15
|
+
properties: CB_TEXT_PROPERTIES_TYPE;
|
|
26
16
|
};
|
|
27
17
|
export type CB_BTN_TYPE = GeneralCustomSectionType & {
|
|
28
18
|
componentBlockCode: CB_ALL_CODES.CB_BTN;
|
|
29
|
-
|
|
30
|
-
data: CB_BTN_PROPERTIES_TYPE;
|
|
31
|
-
};
|
|
19
|
+
properties: CB_BTN_PROPERTIES_TYPE;
|
|
32
20
|
};
|
|
33
21
|
export type CB_RICHTEXT = GeneralCustomSectionType & {
|
|
34
22
|
componentBlockCode: CB_ALL_CODES.CB_RICHTEXT;
|
|
35
|
-
|
|
36
|
-
data: CB_RICHTEXT_PROPERTIES_TYPE;
|
|
37
|
-
};
|
|
23
|
+
properties: CB_RICHTEXT_PROPERTIES_TYPE;
|
|
38
24
|
};
|
|
39
25
|
export type CB_DIVIDER = GeneralCustomSectionType & {
|
|
40
26
|
componentBlockCode: CB_ALL_CODES.CB_DIVIDER;
|
|
41
|
-
|
|
42
|
-
data: CB_DIVIDER_PROPERTIES_TYPE;
|
|
43
|
-
};
|
|
27
|
+
properties: CB_DIVIDER_PROPERTIES_TYPE;
|
|
44
28
|
};
|
|
45
29
|
export type CB_IMG = GeneralCustomSectionType & {
|
|
46
30
|
componentBlockCode: CB_ALL_CODES.CB_IMG;
|
|
47
|
-
|
|
48
|
-
data: CB_IMG_PROPERTIES_TYPE;
|
|
49
|
-
};
|
|
31
|
+
properties: CB_IMG_PROPERTIES_TYPE;
|
|
50
32
|
};
|
|
51
33
|
export type CB_YOUTUBE = GeneralCustomSectionType & {
|
|
52
34
|
componentBlockCode: CB_ALL_CODES.CB_YOUTUBE;
|
|
53
|
-
|
|
54
|
-
data: CB_YOUTUBE_PROPERTIES_TYPE;
|
|
55
|
-
};
|
|
35
|
+
properties: CB_YOUTUBE_PROPERTIES_TYPE;
|
|
56
36
|
};
|
|
57
37
|
export type CB_TWITTER = GeneralCustomSectionType & {
|
|
58
38
|
componentBlockCode: CB_ALL_CODES.CB_TWITTER;
|
|
59
|
-
|
|
60
|
-
data: CB_TWITTER_PROPERTIES_TYPE;
|
|
61
|
-
};
|
|
39
|
+
properties: CB_TWITTER_PROPERTIES_TYPE;
|
|
62
40
|
};
|
|
63
41
|
export declare enum CB_ALL_CODES {
|
|
64
42
|
CB_TEXT = "CB_TEXT",
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import type { Device, JsonPropertiesParserResult } from './types';
|
|
2
2
|
import type { ISectionJsonProperties } from '../../../../DynamicLayout/types';
|
|
3
|
-
export default function parseJsonProperties(properties: ISectionJsonProperties
|
|
3
|
+
export default function parseJsonProperties(properties: ISectionJsonProperties | undefined, device: Device): JsonPropertiesParserResult;
|
|
@@ -12,8 +12,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
12
12
|
exports.parsePlacement = void 0;
|
|
13
13
|
function parsePlacement(components) {
|
|
14
14
|
return components.reduce(function (acc, cur) {
|
|
15
|
-
var id = cur.id,
|
|
16
|
-
var _a = parsePropPlacement(
|
|
15
|
+
var id = cur.id, properties = cur.properties;
|
|
16
|
+
var _a = parsePropPlacement(properties.CB_PLACEMENT_PROP_PLACEMENT, id), mobileLayout = _a.mobileLayout, desktopLayout = _a.desktopLayout;
|
|
17
17
|
return {
|
|
18
18
|
sm: __spreadArray(__spreadArray([], acc.sm, true), [mobileLayout], false),
|
|
19
19
|
lg: __spreadArray(__spreadArray([], acc.lg, true), [desktopLayout], false)
|
|
@@ -132,6 +132,3 @@ export type ParserResult = {
|
|
|
132
132
|
};
|
|
133
133
|
export type JsonPropertiesParserResult = Omit<ParserResult, 'hoverStyle'> & OverlayStyle;
|
|
134
134
|
export type NamedPropAllTypes = NamedStylePropType | NamedLayoutPropType;
|
|
135
|
-
export type IndexForIntersection = {
|
|
136
|
-
index: number;
|
|
137
|
-
};
|
|
@@ -210,7 +210,6 @@ export interface IItemDescription extends IDescription {
|
|
|
210
210
|
text: string;
|
|
211
211
|
color?: string;
|
|
212
212
|
}
|
|
213
|
-
export type CustomSectionShortcutKeysType = 'BULK_SELECT' | 'COLLISION_SELECT' | 'SELECT_ALL' | 'MANUAL_COLLISION_SELECT' | 'MANUAL_BULK_BREAK' | null;
|
|
214
213
|
export type DynamicLayoutProps = {
|
|
215
214
|
device: 'DESKTOP' | 'MOBILE';
|
|
216
215
|
/** @default 'NORMAL */
|
|
@@ -225,7 +224,6 @@ export type DynamicLayoutProps = {
|
|
|
225
224
|
sectionActionHandler?: (action: TypeOfSectionAction) => void;
|
|
226
225
|
programmedSectionComponents?: IProgrammedSectionComponents;
|
|
227
226
|
width?: number;
|
|
228
|
-
shortcutKeyMode?: CustomSectionShortcutKeysType;
|
|
229
227
|
};
|
|
230
228
|
export type NavHandlerAction = {
|
|
231
229
|
openNewTab: boolean;
|
|
@@ -297,27 +295,25 @@ export type IMembershipDisplay = {
|
|
|
297
295
|
connectedMemberships: IConnectedMembership[];
|
|
298
296
|
};
|
|
299
297
|
export type ISectionJsonProperties = {
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
'CB_PLACEMENT_PROP_SECTION_SPEC_WIDTH:MOBILE': number | null | undefined;
|
|
316
|
-
};
|
|
317
|
-
CB_STYLE_PROP_BGCOLOR?: CB_STYLE_PROP_BGCOLOR_SPECS;
|
|
318
|
-
CB_STYLE_PROP_BGMEDIA?: CB_STYLE_PROP_BGMEDIA_SPECS;
|
|
319
|
-
CB_STYLE_PROP_BGOVERLAY?: CB_STYLE_PROP_BGOVERLAY_SPECS;
|
|
298
|
+
CB_CONTENT_PROP_SECTION: {
|
|
299
|
+
CB_CONTENT_PROP_SECTION_SPEC_VARIABLEROOTFONTSIZE: boolean;
|
|
300
|
+
};
|
|
301
|
+
CB_CONTENT_PROP_VISIBILITY: CB_CONTENT_PROP_VISIBILITY_SPECS;
|
|
302
|
+
CB_EFFECT_PROP_ENTANIM: CB_EFFECT_PROP_ENTANIM_SPECS;
|
|
303
|
+
CB_LAYOUT_PROP_PADDING?: CB_LAYOUT_PROP_PADDING_SPECS;
|
|
304
|
+
CB_PLACEMENT_PROP_SECTION: {
|
|
305
|
+
CB_PLACEMENT_PROP_SECTION_SPEC_FULLWIDTH: boolean;
|
|
306
|
+
'CB_PLACEMENT_PROP_SECTION_SPEC_FULLWIDTH:MOBILE': boolean | null | undefined;
|
|
307
|
+
CB_PLACEMENT_PROP_SECTION_SPEC_MINHEIGHT: number;
|
|
308
|
+
'CB_PLACEMENT_PROP_SECTION_SPEC_MINHEIGHT:MOBILE': number | null | undefined;
|
|
309
|
+
CB_PLACEMENT_PROP_SECTION_SPEC_ROWS: number;
|
|
310
|
+
'CB_PLACEMENT_PROP_SECTION_SPEC_ROWS:MOBILE': number | null | undefined;
|
|
311
|
+
CB_PLACEMENT_PROP_SECTION_SPEC_WIDTH: number;
|
|
312
|
+
'CB_PLACEMENT_PROP_SECTION_SPEC_WIDTH:MOBILE': number | null | undefined;
|
|
320
313
|
};
|
|
314
|
+
CB_STYLE_PROP_BGCOLOR?: CB_STYLE_PROP_BGCOLOR_SPECS;
|
|
315
|
+
CB_STYLE_PROP_BGMEDIA?: CB_STYLE_PROP_BGMEDIA_SPECS;
|
|
316
|
+
CB_STYLE_PROP_BGOVERLAY?: CB_STYLE_PROP_BGOVERLAY_SPECS;
|
|
321
317
|
};
|
|
322
318
|
export type CB_STYLE_PROP_BGMEDIA_SPECS_BASE = {
|
|
323
319
|
CB_STYLE_PROP_BGMEDIA_SPEC_YSRC: string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "pds-dev-kit-web-test",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "2.2.48",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"private": false,
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
"i18next-intervalplural-postprocessor": "^3.0.0",
|
|
23
23
|
"lottie-react": "^2.3.1",
|
|
24
24
|
"nuka-carousel": "^4.8.4",
|
|
25
|
-
"publ-echo": "^0.0.
|
|
25
|
+
"publ-echo": "^0.0.25",
|
|
26
26
|
"react-hook-form": "^7.28.1",
|
|
27
27
|
"react-i18next": "^11.12.0",
|
|
28
28
|
"react-router-dom": "^5.2.0",
|
package/release-note.md
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
#
|
|
2
|
-
## [
|
|
3
|
-
##
|
|
4
|
-
|
|
1
|
+
# pds-dev-kit-web-test Release Notes
|
|
2
|
+
## [v0.3.45]
|
|
3
|
+
## 기준 pds-dev-kit-web 버전 @2.2.48
|
|
5
4
|
### sub
|
|
6
|
-
*
|
|
7
|
-
*
|
|
5
|
+
* components
|
|
6
|
+
* TextFieldBase
|
|
7
|
+
* e.preventDefault()에 대한 조건 e.code가 Enter인 것에서 e.key가 Enter인 것으로 변경
|
package/dist/src/sub/DynamicLayout/hooks/useCustomSectionShortcut/useCustomSectionShortcut.d.ts
DELETED
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
export declare const CUSTOMSECTION_SHORTCUT_KEYS: string[];
|
|
2
|
-
export type CustomSectionShortcutType = 'BULK_SELECT' | 'COLLISION_SELECT' | 'SELECT_ALL' | null;
|
|
3
|
-
declare function useCustomSectionShortcut(): {
|
|
4
|
-
shortcut: CustomSectionShortcutType;
|
|
5
|
-
};
|
|
6
|
-
export default useCustomSectionShortcut;
|
package/dist/src/sub/DynamicLayout/hooks/useCustomSectionShortcut/useCustomSectionShortcut.js
DELETED
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.CUSTOMSECTION_SHORTCUT_KEYS = void 0;
|
|
4
|
-
var react_1 = require("react");
|
|
5
|
-
exports.CUSTOMSECTION_SHORTCUT_KEYS = ['Shift', 'Meta', 'A', 'ㅁ'];
|
|
6
|
-
function useCustomSectionShortcut() {
|
|
7
|
-
var _a = (0, react_1.useState)(null), shortcut = _a[0], setShortcut = _a[1];
|
|
8
|
-
(0, react_1.useEffect)(function () {
|
|
9
|
-
var keys = new Map();
|
|
10
|
-
function onKeyDown(e) {
|
|
11
|
-
if (!exports.CUSTOMSECTION_SHORTCUT_KEYS.includes(e.key)) {
|
|
12
|
-
return;
|
|
13
|
-
}
|
|
14
|
-
keys.set(e.key, true);
|
|
15
|
-
var isShiftOn = keys.get('Shift');
|
|
16
|
-
var isMetaOn = keys.get('Meta');
|
|
17
|
-
var isAOn = keys.get('A') || keys.get('ㅁ');
|
|
18
|
-
if (isShiftOn && isAOn) {
|
|
19
|
-
setShortcut('SELECT_ALL');
|
|
20
|
-
return;
|
|
21
|
-
}
|
|
22
|
-
if (isShiftOn && isMetaOn) {
|
|
23
|
-
setShortcut('COLLISION_SELECT');
|
|
24
|
-
return;
|
|
25
|
-
}
|
|
26
|
-
if (isShiftOn) {
|
|
27
|
-
setShortcut('BULK_SELECT');
|
|
28
|
-
}
|
|
29
|
-
}
|
|
30
|
-
function onKeyUp(e) {
|
|
31
|
-
if (e.key === 'a') {
|
|
32
|
-
keys.delete('A');
|
|
33
|
-
}
|
|
34
|
-
else {
|
|
35
|
-
keys.delete(e.key);
|
|
36
|
-
}
|
|
37
|
-
setShortcut(null);
|
|
38
|
-
}
|
|
39
|
-
document.addEventListener('keydown', onKeyDown);
|
|
40
|
-
document.addEventListener('keyup', onKeyUp);
|
|
41
|
-
return function () {
|
|
42
|
-
document.removeEventListener('keydown', onKeyDown);
|
|
43
|
-
document.removeEventListener('keyup', onKeyUp);
|
|
44
|
-
};
|
|
45
|
-
}, []);
|
|
46
|
-
return {
|
|
47
|
-
shortcut: shortcut
|
|
48
|
-
};
|
|
49
|
-
}
|
|
50
|
-
exports.default = useCustomSectionShortcut;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default as useGroupDrag } from './useGroupDrag';
|