pds-dev-kit-web-test 0.3.7 → 0.3.8

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.
Files changed (59) hide show
  1. package/dist/index.d.ts +2 -2
  2. package/dist/src/common/assets/icons/fill/DeviceMobileNotification.d.ts +4 -0
  3. package/dist/src/common/assets/icons/fill/DeviceMobileNotification.js +30 -0
  4. package/dist/src/common/assets/icons/fill/index.d.ts +1 -0
  5. package/dist/src/common/assets/icons/fill/index.js +2 -0
  6. package/dist/src/common/assets/icons/line/Chapter.js +1 -1
  7. package/dist/src/common/assets/icons/line/DeviceMobileNotification.d.ts +4 -0
  8. package/dist/src/common/assets/icons/line/DeviceMobileNotification.js +30 -0
  9. package/dist/src/common/assets/icons/line/Pages.js +1 -1
  10. package/dist/src/common/assets/icons/line/VideoPlayCircle.js +1 -1
  11. package/dist/src/common/assets/icons/line/index.d.ts +1 -0
  12. package/dist/src/common/assets/icons/line/index.js +2 -0
  13. package/dist/src/common/index.d.ts +1 -1
  14. package/dist/src/common/styles/colorSet/PaletteColor_Dark.json +2 -1
  15. package/dist/src/common/styles/colorSet/PaletteColor_light.json +2 -1
  16. package/dist/src/common/styles/colorSet/UIColor.json +2 -1
  17. package/dist/src/common/styles/colorSet/index.d.ts +350 -347
  18. package/dist/src/common/styles/colorSet/index.js +3 -3
  19. package/dist/src/common/styles/colorSet/ui-type.d.ts +1 -0
  20. package/dist/src/common/types/components.d.ts +5 -0
  21. package/dist/src/desktop/components/ChatBubbleListItem/ChatBubbleListItem.js +5 -5
  22. package/dist/src/desktop/components/DesktopTabBar/DesktopTabBar.d.ts +4 -1
  23. package/dist/src/desktop/components/DesktopTabBar/DesktopTabBar.js +16 -4
  24. package/dist/src/desktop/components/Dropdown/Dropdown.d.ts +3 -2
  25. package/dist/src/desktop/components/Dropdown/Dropdown.js +124 -19
  26. package/dist/src/desktop/components/DynamicDesktopNavBar/DynamicDesktopNavBar.js +25 -6
  27. package/dist/src/desktop/components/DynamicDesktopNavBar/blocks/BrandLogo.d.ts +2 -1
  28. package/dist/src/desktop/components/DynamicDesktopNavBar/blocks/BrandLogo.js +2 -2
  29. package/dist/src/desktop/components/DynamicDesktopNavBar/blocks/UserProfile.d.ts +2 -2
  30. package/dist/src/desktop/components/DynamicDesktopNavBar/blocks/UserProfile.js +7 -5
  31. package/dist/src/desktop/components/DynamicDesktopNavBar/components/LogoNav.d.ts +2 -1
  32. package/dist/src/desktop/components/DynamicDesktopNavBar/components/LogoNav.js +12 -3
  33. package/dist/src/desktop/components/DynamicDesktopNavBar/templates/DynamicDesktopNavBarTemplates.d.ts +136 -1
  34. package/dist/src/desktop/components/DynamicDesktopNavBar/templates/constants.d.ts +141 -0
  35. package/dist/src/desktop/components/DynamicDesktopNavBar/templates/constants.js +141 -0
  36. package/dist/src/mobile/components/ChatBubbleListItem/ChatBubbleListItem.js +5 -5
  37. package/dist/src/mobile/components/Dropdown/Dropdown.d.ts +3 -2
  38. package/dist/src/mobile/components/Dropdown/Dropdown.js +123 -18
  39. package/dist/src/sub/DynamicLayout/components/EditModeSectionMatcher/SectionBox.js +4 -2
  40. package/dist/src/sub/DynamicLayout/pagesPreviewMock.d.ts +850 -8
  41. package/dist/src/sub/DynamicLayout/pagesPreviewMock.js +2048 -1202
  42. package/dist/src/sub/DynamicLayout/sections/CustomSection/CustomSection.js +1 -1
  43. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/Button/Button.js +2 -2
  44. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/Divider/Divider.js +2 -2
  45. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/Image/Image.js +15 -9
  46. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/RichText/RichText.js +2 -2
  47. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/Text/Text.js +2 -2
  48. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/Twitter/Twitter.js +2 -2
  49. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/Youtube/Youtube.js +2 -2
  50. package/dist/src/sub/DynamicLayout/sections/CustomSection/util/effectPropParsers/index.d.ts +2 -2
  51. package/dist/src/sub/DynamicLayout/sections/CustomSection/util/effectPropParsers/index.js +3 -0
  52. package/dist/src/sub/DynamicLayout/sections/CustomSection/util/effectPropParsers/parseEffectPropHoverAnim.d.ts +19 -0
  53. package/dist/src/sub/DynamicLayout/sections/CustomSection/util/effectPropParsers/parseEffectPropHoverAnim.js +51 -0
  54. package/dist/src/sub/DynamicLayout/sections/CustomSection/util/effectPropParsers/types.d.ts +4 -2
  55. package/dist/src/sub/DynamicLayout/sections/CustomSection/util/effectPropParsers/types.js +1 -0
  56. package/dist/src/sub/DynamicLayout/sections/CustomSection/util/parseProperties.js +2 -2
  57. package/dist/src/sub/DynamicLayout/sections/CustomSection/util/types.d.ts +4 -1
  58. package/package.json +1 -1
  59. package/release-note.md +3 -3
@@ -50,7 +50,7 @@ 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
52
  var CB_EFFECT_PROP_ENTANIM = props.CB_EFFECT_PROP_ENTANIM;
53
- var _b = (0, util_1.parseProperties)(props, device), propsStyle = _b.style, propsHoverStyle = _b.hoverStyle, layoutStyle = _b.layout, effect = _b.effect;
53
+ var _b = (0, util_1.parseProperties)(props, device), propsStyle = _b.style, propsHoverStyle = _b.hoverStyle, layoutStyle = _b.layout, effect = _b.effect, hoverEffect = _b.hoverEffect;
54
54
  var isEditModeAndHidden = propsStyle.visibility === 'hidden' && mode === 'EDIT';
55
55
  if (mode === 'EDIT') {
56
56
  propsStyle.visibility = 'visible';
@@ -64,7 +64,7 @@ function Divider(props) {
64
64
  : CB_EFFECT_PROP_ENTANIM['CB_EFFECT_PROP_ENTANIM_SPEC_TYPE:MOBILE'] === 'NONE';
65
65
  var hasEffect = !isNoneEffectType;
66
66
  var effectVisibleStyle = hasEffect ? { opacity: isVisible ? 1 : 0 } : {};
67
- 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_CB_Box_1.S_CB_Box, __assign({ className: "cb-layout-box", normalStyle: layoutStyle, hoverStyle: {} }, { children: (0, jsx_runtime_1.jsx)(S_DIVIDER, { className: "cb-divider", normalStyle: __assign(__assign({}, propsStyle), effectCssProperties), hoverStyle: __assign({}, propsHoverStyle) }) })) }))] }));
67
+ 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_CB_Box_1.S_CB_Box, __assign({ className: "cb-layout-box", normalStyle: layoutStyle, hoverStyle: {} }, { children: (0, jsx_runtime_1.jsx)(S_DIVIDER, { className: "cb-divider", normalStyle: __assign(__assign({}, propsStyle), effectCssProperties), hoverStyle: __assign(__assign({}, propsHoverStyle), hoverEffect) }) })) }))] }));
68
68
  }
69
69
  var S_DIVIDER = styled_components_1.default.div(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n width: 100%;\n\n ", ";\n\n &:hover {\n ", ";\n }\n"], ["\n width: 100%;\n\n ", ";\n\n &:hover {\n ", ";\n }\n"])), function (_a) {
70
70
  var normalStyle = _a.normalStyle;
@@ -60,7 +60,7 @@ function Image(props) {
60
60
  openNewTab: CB_CONTENT_PROP_CLINK_SPEC_NEWTAB,
61
61
  internalSrc: String(CB_CONTENT_PROP_CLINK_SPEC_INTERNALSRC)
62
62
  }), onClickCLINK = _c.onClickCLINK, CLINKCursor = _c.CLINKCursor;
63
- var _d = (0, util_1.parseProperties)(props, device), style = _d.style, hoverStyle = _d.hoverStyle, layout = _d.layout, effect = _d.effect;
63
+ var _d = (0, util_1.parseProperties)(props, device), style = _d.style, hoverStyle = _d.hoverStyle, layout = _d.layout, effect = _d.effect, hoverEffect = _d.hoverEffect;
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);
@@ -72,7 +72,7 @@ function Image(props) {
72
72
  : CB_EFFECT_PROP_ENTANIM['CB_EFFECT_PROP_ENTANIM_SPEC_TYPE:MOBILE'] === 'NONE';
73
73
  var hasEffect = !isNoneEffectType;
74
74
  var effectVisibleStyle = hasEffect ? { opacity: isVisible ? 1 : 0 } : {};
75
- 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, __assign({ src: CB_CONTENT_PROP_IMAGE.CB_CONTENT_PROP_IMAGE_SPEC_SELECTOR, normalStyle: __assign({}, imgStyle.normal), hoverStyle: __assign({}, imgStyle.hover) }, { children: (0, jsx_runtime_1.jsx)("img", { src: CB_CONTENT_PROP_IMAGE.CB_CONTENT_PROP_IMAGE_SPEC_SELECTOR, style: { visibility: 'hidden', width: '100%', height: '100%' } }) })) })) })) }))] }));
75
+ 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({ normalStyle: __assign({}, effectCssProperties), hoveEffect: __assign({}, hoverEffect) }, { 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, __assign({ src: CB_CONTENT_PROP_IMAGE.CB_CONTENT_PROP_IMAGE_SPEC_SELECTOR, normalStyle: __assign({}, imgStyle.normal), hoverStyle: __assign({}, imgStyle.hover) }, { children: (0, jsx_runtime_1.jsx)("img", { src: CB_CONTENT_PROP_IMAGE.CB_CONTENT_PROP_IMAGE_SPEC_SELECTOR, style: { visibility: 'hidden', width: '100%', height: '100%' } }) })) })) })) }))] }));
76
76
  }
77
77
  function parseImageCBStyle(style, hoverStyle, mode) {
78
78
  var boxStyle = {
@@ -113,26 +113,32 @@ function parseImageCBStyle(style, hoverStyle, mode) {
113
113
  };
114
114
  return { boxStyle: boxStyle, imgStyle: imgStyle };
115
115
  }
116
- var S_ImageWrapper = styled_components_1.default.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n height: 100%;\n width: 100%;\n"], ["\n height: 100%;\n width: 100%;\n"])));
117
- var S_Image = styled_components_1.default.div(templateObject_6 || (templateObject_6 = __makeTemplateObject(["\n background-image: ", ";\n background-repeat: no-repeat;\n height: 100%;\n width: 100%;\n\n ", ";\n\n &:hover {\n ", ";\n }\n\n & img {\n ", ";\n }\n\n &:hover img {\n ", ";\n }\n"], ["\n background-image: ", ";\n background-repeat: no-repeat;\n height: 100%;\n width: 100%;\n\n ", ";\n\n &:hover {\n ", ";\n }\n\n & img {\n ", ";\n }\n\n &:hover img {\n ", ";\n }\n"])), function (_a) {
116
+ var S_ImageWrapper = styled_components_1.default.div(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n height: 100%;\n width: 100%;\n\n ", ";\n\n &:hover {\n ", ";\n }\n"], ["\n height: 100%;\n width: 100%;\n\n ", ";\n\n &:hover {\n ", ";\n }\n"])), function (_a) {
117
+ var normalStyle = _a.normalStyle;
118
+ return (0, styled_components_1.css)(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n ", "\n "], ["\n ", "\n "])), __assign({}, normalStyle));
119
+ }, function (_a) {
120
+ var hoveEffect = _a.hoveEffect;
121
+ return (0, styled_components_1.css)(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n ", "\n "], ["\n ", "\n "])), __assign({}, hoveEffect));
122
+ });
123
+ var S_Image = styled_components_1.default.div(templateObject_8 || (templateObject_8 = __makeTemplateObject(["\n background-image: ", ";\n background-repeat: no-repeat;\n height: 100%;\n width: 100%;\n\n ", ";\n\n &:hover {\n ", ";\n }\n\n & img {\n ", ";\n }\n\n &:hover img {\n ", ";\n }\n"], ["\n background-image: ", ";\n background-repeat: no-repeat;\n height: 100%;\n width: 100%;\n\n ", ";\n\n &:hover {\n ", ";\n }\n\n & img {\n ", ";\n }\n\n &:hover img {\n ", ";\n }\n"])), function (_a) {
118
124
  var src = _a.src;
119
125
  return "url(".concat(src, ")");
120
126
  }, function (_a) {
121
127
  var normalStyle = _a.normalStyle;
122
- return (0, styled_components_1.css)(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n ", "\n "], ["\n ", "\n "])), __assign(__assign({}, normalStyle), { backgroundPosition: normalStyle.backgroundPosition }));
128
+ return (0, styled_components_1.css)(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\n ", "\n "], ["\n ", "\n "])), __assign(__assign({}, normalStyle), { backgroundPosition: normalStyle.backgroundPosition }));
123
129
  }, function (_a) {
124
130
  var hoverStyle = _a.hoverStyle;
125
- return (0, styled_components_1.css)(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n ", "\n "], ["\n ", "\n "])), __assign(__assign({}, hoverStyle), { backgroundPosition: hoverStyle.backgroundPosition }));
131
+ return (0, styled_components_1.css)(templateObject_5 || (templateObject_5 = __makeTemplateObject(["\n ", "\n "], ["\n ", "\n "])), __assign(__assign({}, hoverStyle), { backgroundPosition: hoverStyle.backgroundPosition }));
126
132
  }, function (_a) {
127
133
  var normalStyle = _a.normalStyle;
128
134
  var isContain = normalStyle.backgroundSize === 'contain';
129
- return (0, styled_components_1.css)(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\n object-fit: ", ";\n "], ["\n object-fit: ", ";\n "])), isContain ? 'contain' : 'cover');
135
+ return (0, styled_components_1.css)(templateObject_6 || (templateObject_6 = __makeTemplateObject(["\n object-fit: ", ";\n "], ["\n object-fit: ", ";\n "])), isContain ? 'contain' : 'cover');
130
136
  }, function (_a) {
131
137
  var hoverStyle = _a.hoverStyle, normalStyle = _a.normalStyle;
132
138
  var isContain = hoverStyle.backgroundSize
133
139
  ? hoverStyle.backgroundSize === 'contain'
134
140
  : normalStyle.backgroundSize === 'contain';
135
- return (0, styled_components_1.css)(templateObject_5 || (templateObject_5 = __makeTemplateObject(["\n object-fit: ", ";\n "], ["\n object-fit: ", ";\n "])), isContain ? 'contain' : 'cover');
141
+ return (0, styled_components_1.css)(templateObject_7 || (templateObject_7 = __makeTemplateObject(["\n object-fit: ", ";\n "], ["\n object-fit: ", ";\n "])), isContain ? 'contain' : 'cover');
136
142
  });
137
143
  exports.default = Image;
138
- var templateObject_1, templateObject_2, templateObject_3, templateObject_4, templateObject_5, templateObject_6;
144
+ var templateObject_1, templateObject_2, templateObject_3, templateObject_4, templateObject_5, templateObject_6, templateObject_7, templateObject_8;
@@ -33,7 +33,7 @@ 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
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
- var _b = (0, util_1.parseProperties)(props, device), propsStyle = _b.style, propsHoverStyle = _b.hoverStyle, layoutStyle = _b.layout, effect = _b.effect;
36
+ var _b = (0, util_1.parseProperties)(props, device), propsStyle = _b.style, propsHoverStyle = _b.hoverStyle, layoutStyle = _b.layout, effect = _b.effect, hoverEffect = _b.hoverEffect;
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';
39
39
  if (mode === 'EDIT') {
@@ -48,7 +48,7 @@ function RichText(props) {
48
48
  : CB_EFFECT_PROP_ENTANIM['CB_EFFECT_PROP_ENTANIM_SPEC_TYPE:MOBILE'] === 'NONE';
49
49
  var hasEffect = !isNoneEffectType;
50
50
  var effectVisibleStyle = hasEffect ? { opacity: isVisible ? 1 : 0 } : {};
51
- 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_CB_BoxWithShadow_1.S_CB_BoxWithShadow, __assign({ className: "cb-layout-box", normalStyle: __assign(__assign(__assign(__assign({}, propsStyle), layoutStyle), effectCssProperties), bgColorStyle), hoverStyle: __assign(__assign({}, propsHoverStyle), bgColorHoverStyle), cbStylePropsShadowSpecs: CB_STYLE_PROP_SHADOW, device: device }, { children: (0, jsx_runtime_1.jsx)(S_RichTextWrapper, { children: (0, jsx_runtime_1.jsx)(RichText_1.RichText, { text: props.CB_CONTENT_PROP_TEXTEDIT.CB_CONTENT_PROP_TEXTEDIT_SPEC_EDITOR }) }) })) }))] }));
51
+ 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_CB_BoxWithShadow_1.S_CB_BoxWithShadow, __assign({ className: "cb-layout-box", normalStyle: __assign(__assign(__assign(__assign({}, propsStyle), layoutStyle), effectCssProperties), bgColorStyle), hoverStyle: __assign(__assign(__assign({}, propsHoverStyle), bgColorHoverStyle), hoverEffect), cbStylePropsShadowSpecs: CB_STYLE_PROP_SHADOW, device: device }, { children: (0, jsx_runtime_1.jsx)(S_RichTextWrapper, { children: (0, jsx_runtime_1.jsx)(RichText_1.RichText, { text: props.CB_CONTENT_PROP_TEXTEDIT.CB_CONTENT_PROP_TEXTEDIT_SPEC_EDITOR }) }) })) }))] }));
52
52
  }
53
53
  function getBGColorStyles(props, device) {
54
54
  var availableSpecCodes = [
@@ -37,7 +37,7 @@ function Text(props) {
37
37
  internalSrc: String(CB_CONTENT_PROP_CLINK_SPEC_INTERNALSRC)
38
38
  }), CLINKCursor = _c.CLINKCursor, onClickCLINK = _c.onClickCLINK;
39
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;
40
+ var _e = (0, util_1.parseProperties)(props, device), propsStyle = _e.style, propsHoverStyle = _e.hoverStyle, layoutStyle = _e.layout, effect = _e.effect, hoverEffect = _e.hoverEffect;
41
41
  var isEditModeAndHidden = propsStyle.visibility === 'hidden' && mode === 'EDIT';
42
42
  var googleFonts = (0, getGoogleFonts_1.getGoogleFontsFromTextCB)(props.CB_STYLE_PROP_TEXT, device === 'MOBILE');
43
43
  (0, useGoogleFonts_1.default)({ fonts: googleFonts });
@@ -53,7 +53,7 @@ function Text(props) {
53
53
  : CB_EFFECT_PROP_ENTANIM['CB_EFFECT_PROP_ENTANIM_SPEC_TYPE:MOBILE'] === 'NONE';
54
54
  var hasEffect = !isNoneEffectType;
55
55
  var effectVisibleStyle = hasEffect ? { opacity: isVisible ? 1 : 0 } : {};
56
- 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_CB_Box_1.S_CB_Box, __assign({ className: "cb-layout-box", normalStyle: __assign(__assign(__assign(__assign(__assign({}, textStyle), propsStyle), layoutStyle), effectCssProperties), { whiteSpace: 'pre-wrap', wordBreak: 'break-word', cursor: CLINKCursor }), hoverStyle: __assign(__assign(__assign({}, textHoverStyle), propsHoverStyle), { whiteSpace: 'pre-wrap', wordBreak: 'break-word' }), onClick: onClickCLINK }, { children: props.CB_CONTENT_PROP_TEXT.CB_CONTENT_PROP_TEXT_SPEC_TEXT })) }))] }));
56
+ 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_CB_Box_1.S_CB_Box, __assign({ className: "cb-layout-box", normalStyle: __assign(__assign(__assign(__assign(__assign({}, textStyle), propsStyle), layoutStyle), effectCssProperties), { whiteSpace: 'pre-wrap', wordBreak: 'break-word', cursor: CLINKCursor }), hoverStyle: __assign(__assign(__assign(__assign({}, textHoverStyle), propsHoverStyle), hoverEffect), { whiteSpace: 'pre-wrap', wordBreak: 'break-word' }), onClick: onClickCLINK }, { children: props.CB_CONTENT_PROP_TEXT.CB_CONTENT_PROP_TEXT_SPEC_TEXT })) }))] }));
57
57
  }
58
58
  function getTextStyles(props, device) {
59
59
  var availableSpecCodes = [
@@ -24,7 +24,7 @@ function Twitter(props) {
24
24
  var _a = (0, react_1.useContext)(DynamicLayout_1.dynamicLayoutContext), device = _a.device, mode = _a.mode;
25
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
- var _b = (0, util_1.parseProperties)(props, device), style = _b.style, hoverStyle = _b.hoverStyle, layout = _b.layout, effect = _b.effect;
27
+ var _b = (0, util_1.parseProperties)(props, device), style = _b.style, hoverStyle = _b.hoverStyle, layout = _b.layout, effect = _b.effect, hoverEffect = _b.hoverEffect;
28
28
  var userId = CB_CONTENT_PROP_TWITTER_SPEC_SRC.replace('https://twitter.com/', '');
29
29
  var theme = CB_STYLE_PROP_TWITTER_SPEC_THEME.toLowerCase();
30
30
  if ('display' in layout) {
@@ -47,6 +47,6 @@ function Twitter(props) {
47
47
  : CB_EFFECT_PROP_ENTANIM['CB_EFFECT_PROP_ENTANIM_SPEC_TYPE:MOBILE'] === 'NONE';
48
48
  var hasEffect = !isNoneEffectType;
49
49
  var effectVisibleStyle = hasEffect ? { opacity: isVisible ? 1 : 0 } : {};
50
- 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), { overflowY: 'auto' }), editModeStyle), hoverStyle: hoverStyle, cbStylePropsShadowSpecs: CB_STYLE_PROP_SHADOW, device: device }, { children: (0, jsx_runtime_1.jsx)(ComponentBlocks_1.TwitterTimeline, { userId: userId, theme: theme }, twitterTimelineKey) })) })));
50
+ 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), { overflowY: 'auto' }), editModeStyle), hoverStyle: __assign(__assign({}, hoverStyle), hoverEffect), cbStylePropsShadowSpecs: CB_STYLE_PROP_SHADOW, device: device }, { children: (0, jsx_runtime_1.jsx)(ComponentBlocks_1.TwitterTimeline, { userId: userId, theme: theme }, twitterTimelineKey) })) })));
51
51
  }
52
52
  exports.default = Twitter;
@@ -35,7 +35,7 @@ function Youtube(props) {
35
35
  var _b = (0, parseYoutubeContentProp_1.default)(CB_CONTENT_PROP_YOUTUBE), youtubeSrc = _b.youtubeSrc, thumbnailSrc = _b.thumbnailSrc, id = _b.id;
36
36
  var isEditMode = mode === 'EDIT';
37
37
  var _c = getBGColorStyles(CB_STYLE_PROP_BGCOLOR, device), bgColorStyle = _c.style, bgColorHoverStyle = _c.hoverStyle;
38
- var _d = (0, util_1.parseProperties)(props, device), propsStyle = _d.style, propsHoverStyle = _d.hoverStyle, layoutStyle = _d.layout, effect = _d.effect;
38
+ var _d = (0, util_1.parseProperties)(props, device), propsStyle = _d.style, propsHoverStyle = _d.hoverStyle, layoutStyle = _d.layout, effect = _d.effect, hoverEffect = _d.hoverEffect;
39
39
  var isEditModeAndHidden = propsStyle.visibility === 'hidden' && mode === 'EDIT';
40
40
  if (mode === 'EDIT') {
41
41
  propsStyle.visibility = 'visible';
@@ -49,7 +49,7 @@ function Youtube(props) {
49
49
  : CB_EFFECT_PROP_ENTANIM['CB_EFFECT_PROP_ENTANIM_SPEC_TYPE:MOBILE'] === 'NONE';
50
50
  var hasEffect = !isNoneEffectType;
51
51
  var effectVisibleStyle = hasEffect ? { opacity: isVisible ? 1 : 0 } : {};
52
- 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_CB_BoxWithShadow_1.S_CB_BoxWithShadow, __assign({ className: "cb-layout-box", normalStyle: __assign(__assign(__assign(__assign({}, propsStyle), layoutStyle), effectCssProperties), bgColorStyle), hoverStyle: __assign(__assign({}, propsHoverStyle), bgColorHoverStyle), cbStylePropsShadowSpecs: CB_STYLE_PROP_SHADOW, device: device }, { children: isEditMode ? ((0, jsx_runtime_1.jsxs)(S_ThumbnailBox, { children: [(0, jsx_runtime_1.jsx)(YoutubeButton, {}), (0, jsx_runtime_1.jsx)(S_Thumbnail, { src: thumbnailSrc })] })) : ((0, jsx_runtime_1.jsx)(S_Iframe, { title: id, src: youtubeSrc, allow: "accelerometer; encrypted-media; gyroscope; picture-in-picture" })) })) }))] }));
52
+ 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_CB_BoxWithShadow_1.S_CB_BoxWithShadow, __assign({ className: "cb-layout-box", normalStyle: __assign(__assign(__assign(__assign({}, propsStyle), layoutStyle), effectCssProperties), bgColorStyle), hoverStyle: __assign(__assign(__assign({}, propsHoverStyle), bgColorHoverStyle), hoverEffect), cbStylePropsShadowSpecs: CB_STYLE_PROP_SHADOW, device: device }, { children: isEditMode ? ((0, jsx_runtime_1.jsxs)(S_ThumbnailBox, { children: [(0, jsx_runtime_1.jsx)(YoutubeButton, {}), (0, jsx_runtime_1.jsx)(S_Thumbnail, { src: thumbnailSrc })] })) : ((0, jsx_runtime_1.jsx)(S_Iframe, { title: id, src: youtubeSrc, allow: "accelerometer; encrypted-media; gyroscope; picture-in-picture" })) })) }))] }));
53
53
  }
54
54
  function getBGColorStyles(props, device) {
55
55
  var availableSpecCodes = [
@@ -1,3 +1,3 @@
1
1
  import { NamedEffectPropType } from './types';
2
- import type { Device, StyleType } from '../types';
3
- export declare function parseEffectProperties(namedProps: NamedEffectPropType, device: Device): StyleType;
2
+ import type { Device, StyleAndHoverStyle } from '../types';
3
+ export declare function parseEffectProperties(namedProps: NamedEffectPropType, device: Device): Partial<StyleAndHoverStyle>;
@@ -5,12 +5,15 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
6
  exports.parseEffectProperties = void 0;
7
7
  var parseEffectPropEntAnim_1 = __importDefault(require("./parseEffectPropEntAnim"));
8
+ var parseEffectPropHoverAnim_1 = __importDefault(require("./parseEffectPropHoverAnim"));
8
9
  var types_1 = require("./types");
9
10
  function parseEffectProperties(namedProps, device) {
10
11
  var name = namedProps.name;
11
12
  switch (name) {
12
13
  case types_1.CB_EFFECT_PROP_KEYS.CB_EFFECT_PROP_ENTANIM:
13
14
  return (0, parseEffectPropEntAnim_1.default)(namedProps, device);
15
+ case types_1.CB_EFFECT_PROP_KEYS.CB_EFFECT_PROP_HOVERANIM:
16
+ return (0, parseEffectPropHoverAnim_1.default)(namedProps, device);
14
17
  }
15
18
  }
16
19
  exports.parseEffectProperties = parseEffectProperties;
@@ -0,0 +1,19 @@
1
+ import type { Device, HoverStyle } from '../types';
2
+ import type { CB_EFFECT_PROP_KEYS } from './types';
3
+ export type NAMED_CB_EFFECT_HOVERANIM_PROPS = {
4
+ name: CB_EFFECT_PROP_KEYS.CB_EFFECT_PROP_HOVERANIM;
5
+ specs: CB_EFFECT_PROP_HOVERANIM_SPECS;
6
+ };
7
+ export default function parseEffectPropHOVERANIM(namedProps: NAMED_CB_EFFECT_HOVERANIM_PROPS, device: Device): HoverStyle;
8
+ export type CB_EFFECT_PROP_HOVERANIM_BASE = {
9
+ CB_EFFECT_PROP_HOVERANIM_SPEC_DURATION: number;
10
+ CB_EFFECT_PROP_HOVERANIM_SPEC_REPEAT: number;
11
+ CB_EFFECT_PROP_HOVERANIM_SPEC_TFUNC: string;
12
+ CB_EFFECT_PROP_HOVERANIM_SPEC_TYPE: string;
13
+ };
14
+ export type CB_EFFECT_PROP_HOVERANIM_SPECS = CB_EFFECT_PROP_HOVERANIM_BASE & Partial<{
15
+ 'CB_EFFECT_PROP_HOVERANIM_SPEC_DURATION:MOBILE': number | undefined;
16
+ 'CB_EFFECT_PROP_HOVERANIM_SPEC_REPEAT:MOBILE': number | undefined;
17
+ 'CB_EFFECT_PROP_HOVERANIM_SPEC_TFUNC:MOBILE': string | undefined;
18
+ 'CB_EFFECT_PROP_HOVERANIM_SPEC_TYPE:MOBILE': string | undefined;
19
+ }>;
@@ -0,0 +1,51 @@
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
+ Object.defineProperty(exports, "__esModule", { value: true });
14
+ var constants_1 = require("./constants");
15
+ function parseEffectPropHOVERANIM(namedProps, device) {
16
+ var specs = namedProps.specs;
17
+ var animationCssProperties = AVAILABLE_SPECS.reduce(function (acc, cur) {
18
+ var _a;
19
+ var baseKey = device === 'DESKTOP' ? cur : "".concat(cur, ":MOBILE");
20
+ var value = specs[baseKey];
21
+ return __assign(__assign({}, acc), (_a = {}, _a[cur] = value, _a));
22
+ }, {});
23
+ return { hoverStyle: { animation: valueGenerator(animationCssProperties) } };
24
+ }
25
+ exports.default = parseEffectPropHOVERANIM;
26
+ function valueGenerator(valueSet) {
27
+ var _a;
28
+ var CB_EFFECT_PROP_HOVERANIM_SPEC_TYPE = valueSet.CB_EFFECT_PROP_HOVERANIM_SPEC_TYPE, CB_EFFECT_PROP_HOVERANIM_SPEC_DURATION = valueSet.CB_EFFECT_PROP_HOVERANIM_SPEC_DURATION, CB_EFFECT_PROP_HOVERANIM_SPEC_TFUNC = valueSet.CB_EFFECT_PROP_HOVERANIM_SPEC_TFUNC, CB_EFFECT_PROP_HOVERANIM_SPEC_REPEAT = valueSet.CB_EFFECT_PROP_HOVERANIM_SPEC_REPEAT;
29
+ var animationName = (_a = constants_1.animations.find(function (animation) { return animation.name === CB_EFFECT_PROP_HOVERANIM_SPEC_TYPE; })) === null || _a === void 0 ? void 0 : _a.value;
30
+ return "".concat(animationName, " ").concat(CB_EFFECT_PROP_HOVERANIM_SPEC_DURATION, "s ").concat(tFuncMatcher(CB_EFFECT_PROP_HOVERANIM_SPEC_TFUNC), " 0s ").concat(CB_EFFECT_PROP_HOVERANIM_SPEC_REPEAT === -1 ? 'infinite' : CB_EFFECT_PROP_HOVERANIM_SPEC_REPEAT);
31
+ }
32
+ function tFuncMatcher(type) {
33
+ switch (type) {
34
+ case 'EASEINOUT':
35
+ return 'ease-in-out';
36
+ case 'EASEIN':
37
+ return 'ease-in';
38
+ case 'EASEOUT':
39
+ return 'ease-out';
40
+ case 'NONE':
41
+ return 'linear';
42
+ default:
43
+ return '';
44
+ }
45
+ }
46
+ var AVAILABLE_SPECS = [
47
+ 'CB_EFFECT_PROP_HOVERANIM_SPEC_DURATION',
48
+ 'CB_EFFECT_PROP_HOVERANIM_SPEC_REPEAT',
49
+ 'CB_EFFECT_PROP_HOVERANIM_SPEC_TFUNC',
50
+ 'CB_EFFECT_PROP_HOVERANIM_SPEC_TYPE'
51
+ ];
@@ -1,5 +1,7 @@
1
1
  import type { NAMED_CB_EFFECT_ENTANIM_PROPS } from './parseEffectPropEntAnim';
2
+ import type { NAMED_CB_EFFECT_HOVERANIM_PROPS } from './parseEffectPropHoverAnim';
2
3
  export declare enum CB_EFFECT_PROP_KEYS {
3
- CB_EFFECT_PROP_ENTANIM = "CB_EFFECT_PROP_ENTANIM"
4
+ CB_EFFECT_PROP_ENTANIM = "CB_EFFECT_PROP_ENTANIM",
5
+ CB_EFFECT_PROP_HOVERANIM = "CB_EFFECT_PROP_HOVERANIM"
4
6
  }
5
- export type NamedEffectPropType = NAMED_CB_EFFECT_ENTANIM_PROPS;
7
+ export type NamedEffectPropType = NAMED_CB_EFFECT_ENTANIM_PROPS | NAMED_CB_EFFECT_HOVERANIM_PROPS;
@@ -4,4 +4,5 @@ exports.CB_EFFECT_PROP_KEYS = void 0;
4
4
  var CB_EFFECT_PROP_KEYS;
5
5
  (function (CB_EFFECT_PROP_KEYS) {
6
6
  CB_EFFECT_PROP_KEYS["CB_EFFECT_PROP_ENTANIM"] = "CB_EFFECT_PROP_ENTANIM";
7
+ CB_EFFECT_PROP_KEYS["CB_EFFECT_PROP_HOVERANIM"] = "CB_EFFECT_PROP_HOVERANIM";
7
8
  })(CB_EFFECT_PROP_KEYS = exports.CB_EFFECT_PROP_KEYS || (exports.CB_EFFECT_PROP_KEYS = {}));
@@ -39,8 +39,8 @@ function parseProperties(properties, device) {
39
39
  return __assign(__assign({}, acc), { style: __assign(__assign({}, acc.style), style) });
40
40
  }
41
41
  if (normalizedProperty.name in types_2.CB_EFFECT_PROP_KEYS) {
42
- var style = (0, effectPropParsers_1.parseEffectProperties)(normalizedProperty, device).style;
43
- return __assign(__assign({}, acc), { effect: __assign(__assign({}, acc.effect), style) });
42
+ var _b = (0, effectPropParsers_1.parseEffectProperties)(normalizedProperty, device), style = _b.style, hoverStyle = _b.hoverStyle;
43
+ return __assign(__assign({}, acc), { effect: __assign(__assign({}, acc.effect), style), hoverEffect: __assign(__assign({}, acc.hoverEffect), hoverStyle) });
44
44
  }
45
45
  return acc;
46
46
  }, {
@@ -115,9 +115,11 @@ export type CB_YOUTUBE_PROPERTIES_TYPE = CB_GENERAL_PROPERTIES_TYPE & {
115
115
  export type StyleType = {
116
116
  style: CSSProperties;
117
117
  };
118
- export type StyleAndHoverStyle = StyleType & {
118
+ export type HoverStyle = {
119
119
  hoverStyle: CSSProperties;
120
120
  };
121
+ export type StyleAndHoverStyle = StyleType & HoverStyle;
122
+ export type StyleOrHoverStyle = StyleType | HoverStyle;
121
123
  export type OverlayStyle = {
122
124
  overlayStyle: CSSProperties;
123
125
  };
@@ -128,6 +130,7 @@ export type ParserResult = {
128
130
  hoverStyle: CSSProperties;
129
131
  layout: CSSProperties;
130
132
  effect: CSSProperties;
133
+ hoverEffect?: CSSProperties;
131
134
  content: Record<string, unknown>;
132
135
  };
133
136
  export type JsonPropertiesParserResult = Omit<ParserResult, 'hoverStyle'> & OverlayStyle;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pds-dev-kit-web-test",
3
- "version": "0.3.7",
3
+ "version": "0.3.8",
4
4
  "license": "MIT",
5
5
  "private": false,
6
6
  "main": "dist/index.js",
package/release-note.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # pds-dev-kit-web-test Release Notes
2
- ## [v0.3.7]
3
- ## 기준 pds-dev-kit-web 버전 @2.2.26
2
+ ## [v0.3.8]
3
+ ## 기준 pds-dev-kit-web 버전 @2.2.34
4
4
  ### sub
5
5
  * DynamicLayout
6
- * 선택된 CB에 투명도 0.95추가
6
+ * hover effect 추가