pds-dev-kit-web-test 0.2.1 → 0.2.3

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 (194) hide show
  1. package/README.md +12 -1
  2. package/dist/src/sub/DynamicLayout/components/ComponentBlocks/Image/Image.d.ts +8 -0
  3. package/dist/src/sub/DynamicLayout/components/ComponentBlocks/Image/Image.js +46 -0
  4. package/dist/src/sub/DynamicLayout/components/ComponentBlocks/Image/index.d.ts +2 -0
  5. package/dist/src/sub/DynamicLayout/components/ComponentBlocks/Image/index.js +8 -0
  6. package/dist/src/sub/DynamicLayout/components/ComponentBlocks/RichText/RichText.d.ts +2 -3
  7. package/dist/src/sub/DynamicLayout/components/ComponentBlocks/RichText/RichText.js +3 -3
  8. package/dist/src/sub/DynamicLayout/components/ComponentBlocks/RichText/index.d.ts +2 -2
  9. package/dist/src/sub/DynamicLayout/components/ComponentBlocks/Text/Text.d.ts +13 -0
  10. package/dist/src/sub/DynamicLayout/components/ComponentBlocks/Text/Text.js +63 -0
  11. package/dist/src/sub/DynamicLayout/components/ComponentBlocks/Text/index.d.ts +2 -0
  12. package/dist/src/sub/DynamicLayout/components/ComponentBlocks/Text/index.js +8 -0
  13. package/dist/src/sub/DynamicLayout/components/ComponentBlocks/TwitterTimeline/TwitterTimeline.d.ts +3 -11
  14. package/dist/src/sub/DynamicLayout/components/ComponentBlocks/TwitterTimeline/TwitterTimeline.js +18 -18
  15. package/dist/src/sub/DynamicLayout/components/ComponentBlocks/TwitterTimeline/TwitterTimelineRerender.d.ts +14 -0
  16. package/dist/src/sub/DynamicLayout/components/ComponentBlocks/TwitterTimeline/TwitterTimelineRerender.js +41 -0
  17. package/dist/src/sub/DynamicLayout/components/ComponentBlocks/Wrapper/Wrapper.d.ts +35 -0
  18. package/dist/src/sub/DynamicLayout/components/ComponentBlocks/Wrapper/Wrapper.js +141 -0
  19. package/dist/src/sub/DynamicLayout/components/ComponentBlocks/Wrapper/constants.d.ts +2 -0
  20. package/dist/src/sub/DynamicLayout/components/ComponentBlocks/Wrapper/constants.js +33 -0
  21. package/dist/src/sub/DynamicLayout/components/ComponentBlocks/Wrapper/index.d.ts +1 -0
  22. package/dist/src/sub/DynamicLayout/components/ComponentBlocks/Wrapper/index.js +8 -0
  23. package/dist/src/sub/DynamicLayout/components/ComponentBlocks/index.d.ts +3 -2
  24. package/dist/src/sub/DynamicLayout/components/ComponentBlocks/index.js +3 -1
  25. package/dist/src/sub/DynamicLayout/components/EditModeSectionMatcher/EditModeSectionMatcher.js +3 -3
  26. package/dist/src/sub/DynamicLayout/components/Section/Section.d.ts +6 -3
  27. package/dist/src/sub/DynamicLayout/components/Section/Section.js +40 -8
  28. package/dist/src/sub/DynamicLayout/components/Section/components/CustomSectionBackgroundMedia.d.ts +9 -0
  29. package/dist/src/sub/DynamicLayout/components/Section/components/CustomSectionBackgroundMedia.js +68 -0
  30. package/dist/src/sub/DynamicLayout/components/SectionMatcher/SectionMatcher.js +4 -4
  31. package/dist/src/sub/DynamicLayout/components/index.d.ts +0 -1
  32. package/dist/src/sub/DynamicLayout/components/index.js +1 -6
  33. package/dist/src/sub/DynamicLayout/mock_customSection.d.ts +2 -0
  34. package/dist/src/sub/DynamicLayout/mock_customSection.js +838 -0
  35. package/dist/src/sub/DynamicLayout/mock_samplePage.js +5 -210
  36. package/dist/src/sub/DynamicLayout/nakedMocks.json +783 -0
  37. package/dist/src/sub/DynamicLayout/sectionActionTypes.d.ts +17 -4
  38. package/dist/src/sub/DynamicLayout/sections/CustomSection/CustomSection.d.ts +2 -9
  39. package/dist/src/sub/DynamicLayout/sections/CustomSection/CustomSection.js +85 -51
  40. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/ComponentBlock.d.ts +7 -0
  41. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/ComponentBlock.js +55 -0
  42. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/ComponentBlockMatcher.d.ts +3 -0
  43. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/ComponentBlockMatcher.js +70 -0
  44. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/Button/Button.d.ts +5 -0
  45. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/Button/Button.js +73 -0
  46. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/Button/btnTypes.d.ts +68 -0
  47. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/Button/btnTypes.js +2 -0
  48. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/Divider.d.ts +5 -0
  49. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/Divider.js +66 -0
  50. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/Image.d.ts +16 -0
  51. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/Image.js +102 -0
  52. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/RichText/RichText.d.ts +5 -0
  53. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/RichText/RichText.js +62 -0
  54. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/RichText/index.d.ts +1 -0
  55. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/RichText/index.js +8 -0
  56. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/RichText/types.d.ts +44 -0
  57. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/RichText/types.js +2 -0
  58. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/Text.d.ts +32 -0
  59. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/Text.js +58 -0
  60. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/Twitter.d.ts +10 -0
  61. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/Twitter.js +41 -0
  62. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/Youtube/Youtube.d.ts +5 -0
  63. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/Youtube/Youtube.js +69 -0
  64. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/Youtube/index.d.ts +1 -0
  65. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/Youtube/index.js +8 -0
  66. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/Youtube/parseYoutubeContentProp.d.ts +7 -0
  67. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/Youtube/parseYoutubeContentProp.js +33 -0
  68. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/Youtube/types.d.ts +48 -0
  69. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/Youtube/types.js +2 -0
  70. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/components/S_CB_Box.d.ts +2 -0
  71. package/dist/src/sub/DynamicLayout/sections/CustomSection/{BlockMatcher/blocks/Button.js → components/ComponentBlock/componentBlocks/components/S_CB_Box.js} +6 -11
  72. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/components/S_HiddenCover.d.ts +1 -0
  73. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/components/S_HiddenCover.js +13 -0
  74. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/hooks/useCLINK.d.ts +8 -0
  75. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/hooks/useCLINK.js +24 -0
  76. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/types.d.ts +20 -0
  77. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/types.js +2 -0
  78. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/utils/CLINKhandler.d.ts +0 -0
  79. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/utils/CLINKhandler.js +18 -0
  80. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/index.d.ts +1 -0
  81. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/index.js +8 -0
  82. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/index.d.ts +1 -0
  83. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/index.js +5 -0
  84. package/dist/src/sub/DynamicLayout/sections/CustomSection/hooks/index.d.ts +1 -0
  85. package/dist/src/sub/DynamicLayout/sections/CustomSection/hooks/index.js +5 -0
  86. package/dist/src/sub/DynamicLayout/sections/CustomSection/hooks/useIntersectionObserver.d.ts +6 -0
  87. package/dist/src/sub/DynamicLayout/sections/CustomSection/hooks/useIntersectionObserver.js +26 -0
  88. package/dist/src/sub/DynamicLayout/sections/CustomSection/index.d.ts +0 -1
  89. package/dist/src/sub/DynamicLayout/sections/CustomSection/newUtils/colorUtil.d.ts +31 -0
  90. package/dist/src/sub/DynamicLayout/sections/CustomSection/newUtils/colorUtil.js +66 -0
  91. package/dist/src/sub/DynamicLayout/sections/CustomSection/newUtils/index.d.ts +2 -0
  92. package/dist/src/sub/DynamicLayout/sections/CustomSection/newUtils/index.js +10 -0
  93. package/dist/src/sub/DynamicLayout/sections/CustomSection/newUtils/replaceUndefinedValues.d.ts +2 -0
  94. package/dist/src/sub/DynamicLayout/sections/CustomSection/newUtils/replaceUndefinedValues.js +46 -0
  95. package/dist/src/sub/DynamicLayout/sections/CustomSection/newUtils/textUtil.d.ts +18 -0
  96. package/dist/src/sub/DynamicLayout/sections/CustomSection/newUtils/textUtil.js +79 -0
  97. package/dist/src/sub/DynamicLayout/sections/CustomSection/types.d.ts +50 -81
  98. package/dist/src/sub/DynamicLayout/sections/CustomSection/types.js +11 -12
  99. package/dist/src/sub/DynamicLayout/sections/CustomSection/util/contentPropParsers/index.d.ts +3 -0
  100. package/dist/src/sub/DynamicLayout/sections/CustomSection/util/contentPropParsers/index.js +16 -0
  101. package/dist/src/sub/DynamicLayout/sections/CustomSection/util/contentPropParsers/parseContentVisibility.d.ts +12 -0
  102. package/dist/src/sub/DynamicLayout/sections/CustomSection/util/contentPropParsers/parseContentVisibility.js +18 -0
  103. package/dist/src/sub/DynamicLayout/sections/CustomSection/util/contentPropParsers/types.d.ts +5 -0
  104. package/dist/src/sub/DynamicLayout/sections/CustomSection/util/contentPropParsers/types.js +7 -0
  105. package/dist/src/sub/DynamicLayout/sections/CustomSection/util/effectPropParsers/constants.d.ts +4 -0
  106. package/dist/src/sub/DynamicLayout/sections/CustomSection/util/effectPropParsers/constants.js +46 -0
  107. package/dist/src/sub/DynamicLayout/sections/CustomSection/util/effectPropParsers/index.d.ts +3 -0
  108. package/dist/src/sub/DynamicLayout/sections/CustomSection/util/effectPropParsers/index.js +16 -0
  109. package/dist/src/sub/DynamicLayout/sections/CustomSection/util/effectPropParsers/parseEffectPropEntAnim.d.ts +19 -0
  110. package/dist/src/sub/DynamicLayout/sections/CustomSection/util/effectPropParsers/parseEffectPropEntAnim.js +51 -0
  111. package/dist/src/sub/DynamicLayout/sections/CustomSection/util/effectPropParsers/types.d.ts +5 -0
  112. package/dist/src/sub/DynamicLayout/sections/CustomSection/util/effectPropParsers/types.js +7 -0
  113. package/dist/src/sub/DynamicLayout/sections/CustomSection/util/index.d.ts +6 -0
  114. package/dist/src/sub/DynamicLayout/sections/CustomSection/util/index.js +18 -0
  115. package/dist/src/sub/DynamicLayout/sections/CustomSection/util/layoutPropParsers/index.d.ts +3 -0
  116. package/dist/src/sub/DynamicLayout/sections/CustomSection/util/layoutPropParsers/index.js +19 -0
  117. package/dist/src/sub/DynamicLayout/sections/CustomSection/util/layoutPropParsers/parseLayoutPropArrange.d.ts +24 -0
  118. package/dist/src/sub/DynamicLayout/sections/CustomSection/util/layoutPropParsers/parseLayoutPropArrange.js +80 -0
  119. package/dist/src/sub/DynamicLayout/sections/CustomSection/util/layoutPropParsers/parseLayoutPropPadding.d.ts +21 -0
  120. package/dist/src/sub/DynamicLayout/sections/CustomSection/util/layoutPropParsers/parseLayoutPropPadding.js +32 -0
  121. package/dist/src/sub/DynamicLayout/sections/CustomSection/util/layoutPropParsers/types.d.ts +7 -0
  122. package/dist/src/sub/DynamicLayout/sections/CustomSection/util/layoutPropParsers/types.js +8 -0
  123. package/dist/src/sub/DynamicLayout/sections/CustomSection/util/parseJsonProperties.d.ts +3 -0
  124. package/dist/src/sub/DynamicLayout/sections/CustomSection/util/parseJsonProperties.js +61 -0
  125. package/dist/src/sub/DynamicLayout/sections/CustomSection/util/parsePlacement.d.ts +20 -0
  126. package/dist/src/sub/DynamicLayout/sections/CustomSection/util/parsePlacement.js +46 -0
  127. package/dist/src/sub/DynamicLayout/sections/CustomSection/util/parseProperties.d.ts +5 -0
  128. package/dist/src/sub/DynamicLayout/sections/CustomSection/util/parseProperties.js +54 -0
  129. package/dist/src/sub/DynamicLayout/sections/CustomSection/util/stylePropParsers/index.d.ts +3 -0
  130. package/dist/src/sub/DynamicLayout/sections/CustomSection/util/stylePropParsers/index.js +41 -0
  131. package/dist/src/sub/DynamicLayout/sections/CustomSection/util/stylePropParsers/parseStylePropBgColor.d.ts +43 -0
  132. package/dist/src/sub/DynamicLayout/sections/CustomSection/util/stylePropParsers/parseStylePropBgColor.js +58 -0
  133. package/dist/src/sub/DynamicLayout/sections/CustomSection/util/stylePropParsers/parseStylePropBgImage.d.ts +19 -0
  134. package/dist/src/sub/DynamicLayout/sections/CustomSection/util/stylePropParsers/parseStylePropBgImage.js +118 -0
  135. package/dist/src/sub/DynamicLayout/sections/CustomSection/util/stylePropParsers/parseStylePropBgOverlay.d.ts +43 -0
  136. package/dist/src/sub/DynamicLayout/sections/CustomSection/util/stylePropParsers/parseStylePropBgOverlay.js +64 -0
  137. package/dist/src/sub/DynamicLayout/sections/CustomSection/util/stylePropParsers/parseStylePropBorder.d.ts +38 -0
  138. package/dist/src/sub/DynamicLayout/sections/CustomSection/util/stylePropParsers/parseStylePropBorder.js +73 -0
  139. package/dist/src/sub/DynamicLayout/sections/CustomSection/util/stylePropParsers/parseStylePropDivider.d.ts +26 -0
  140. package/dist/src/sub/DynamicLayout/sections/CustomSection/util/stylePropParsers/parseStylePropDivider.js +65 -0
  141. package/dist/src/sub/DynamicLayout/sections/CustomSection/util/stylePropParsers/parseStylePropImage.d.ts +19 -0
  142. package/dist/src/sub/DynamicLayout/sections/CustomSection/util/stylePropParsers/parseStylePropImage.js +118 -0
  143. package/dist/src/sub/DynamicLayout/sections/CustomSection/util/stylePropParsers/parseStylePropOpacity.d.ts +15 -0
  144. package/dist/src/sub/DynamicLayout/sections/CustomSection/util/stylePropParsers/parseStylePropOpacity.js +41 -0
  145. package/dist/src/sub/DynamicLayout/sections/CustomSection/util/stylePropParsers/parseStylePropShadow.d.ts +39 -0
  146. package/dist/src/sub/DynamicLayout/sections/CustomSection/util/stylePropParsers/parseStylePropShadow.js +46 -0
  147. package/dist/src/sub/DynamicLayout/sections/CustomSection/util/stylePropParsers/parseStylePropTextSpec.d.ts +39 -0
  148. package/dist/src/sub/DynamicLayout/sections/CustomSection/util/stylePropParsers/parseStylePropTextSpec.js +80 -0
  149. package/dist/src/sub/DynamicLayout/sections/CustomSection/util/stylePropParsers/types.d.ts +22 -0
  150. package/dist/src/sub/DynamicLayout/sections/CustomSection/util/stylePropParsers/types.js +16 -0
  151. package/dist/src/sub/DynamicLayout/sections/CustomSection/util/types.d.ts +134 -0
  152. package/dist/src/sub/DynamicLayout/sections/CustomSection/util/types.js +2 -0
  153. package/dist/src/sub/DynamicLayout/sections/index.d.ts +1 -0
  154. package/dist/src/sub/DynamicLayout/sections/index.js +3 -1
  155. package/dist/src/sub/DynamicLayout/types.d.ts +70 -4
  156. package/package.json +2 -3
  157. package/release-note.md +2 -2
  158. package/dist/src/sub/DynamicLayout/components/Box.d.ts +0 -13
  159. package/dist/src/sub/DynamicLayout/components/Box.js +0 -73
  160. package/dist/src/sub/DynamicLayout/custonSectionSampleData.d.ts +0 -218
  161. package/dist/src/sub/DynamicLayout/custonSectionSampleData.js +0 -198
  162. package/dist/src/sub/DynamicLayout/sections/CustomSection/BlockMatcher/BlockMatcher.d.ts +0 -11
  163. package/dist/src/sub/DynamicLayout/sections/CustomSection/BlockMatcher/BlockMatcher.js +0 -71
  164. package/dist/src/sub/DynamicLayout/sections/CustomSection/BlockMatcher/blocks/Accordion.d.ts +0 -12
  165. package/dist/src/sub/DynamicLayout/sections/CustomSection/BlockMatcher/blocks/Accordion.js +0 -46
  166. package/dist/src/sub/DynamicLayout/sections/CustomSection/BlockMatcher/blocks/AccordionCore/AccordionBody.d.ts +0 -8
  167. package/dist/src/sub/DynamicLayout/sections/CustomSection/BlockMatcher/blocks/AccordionCore/AccordionBody.js +0 -74
  168. package/dist/src/sub/DynamicLayout/sections/CustomSection/BlockMatcher/blocks/AccordionCore/AccordionCore.d.ts +0 -13
  169. package/dist/src/sub/DynamicLayout/sections/CustomSection/BlockMatcher/blocks/AccordionCore/AccordionCore.js +0 -25
  170. package/dist/src/sub/DynamicLayout/sections/CustomSection/BlockMatcher/blocks/AccordionCore/AccordionHeader.d.ts +0 -7
  171. package/dist/src/sub/DynamicLayout/sections/CustomSection/BlockMatcher/blocks/AccordionCore/AccordionHeader.js +0 -49
  172. package/dist/src/sub/DynamicLayout/sections/CustomSection/BlockMatcher/blocks/AccordionCore/AccordionItem.d.ts +0 -7
  173. package/dist/src/sub/DynamicLayout/sections/CustomSection/BlockMatcher/blocks/AccordionCore/AccordionItem.js +0 -19
  174. package/dist/src/sub/DynamicLayout/sections/CustomSection/BlockMatcher/blocks/AccordionCore/index.d.ts +0 -4
  175. package/dist/src/sub/DynamicLayout/sections/CustomSection/BlockMatcher/blocks/AccordionCore/index.js +0 -14
  176. package/dist/src/sub/DynamicLayout/sections/CustomSection/BlockMatcher/blocks/Button.d.ts +0 -8
  177. package/dist/src/sub/DynamicLayout/sections/CustomSection/BlockMatcher/blocks/Divider.d.ts +0 -7
  178. package/dist/src/sub/DynamicLayout/sections/CustomSection/BlockMatcher/blocks/Divider.js +0 -29
  179. package/dist/src/sub/DynamicLayout/sections/CustomSection/BlockMatcher/blocks/Image.d.ts +0 -7
  180. package/dist/src/sub/DynamicLayout/sections/CustomSection/BlockMatcher/blocks/Image.js +0 -18
  181. package/dist/src/sub/DynamicLayout/sections/CustomSection/BlockMatcher/blocks/Instagram.d.ts +0 -7
  182. package/dist/src/sub/DynamicLayout/sections/CustomSection/BlockMatcher/blocks/Instagram.js +0 -19
  183. package/dist/src/sub/DynamicLayout/sections/CustomSection/BlockMatcher/blocks/RichText.d.ts +0 -7
  184. package/dist/src/sub/DynamicLayout/sections/CustomSection/BlockMatcher/blocks/RichText.js +0 -9
  185. package/dist/src/sub/DynamicLayout/sections/CustomSection/BlockMatcher/blocks/Text.d.ts +0 -7
  186. package/dist/src/sub/DynamicLayout/sections/CustomSection/BlockMatcher/blocks/Text.js +0 -29
  187. package/dist/src/sub/DynamicLayout/sections/CustomSection/BlockMatcher/blocks/Twitter.d.ts +0 -7
  188. package/dist/src/sub/DynamicLayout/sections/CustomSection/BlockMatcher/blocks/Twitter.js +0 -30
  189. package/dist/src/sub/DynamicLayout/sections/CustomSection/BlockMatcher/blocks/Youtube.d.ts +0 -9
  190. package/dist/src/sub/DynamicLayout/sections/CustomSection/BlockMatcher/blocks/Youtube.js +0 -38
  191. package/dist/src/sub/DynamicLayout/sections/CustomSection/BlockMatcher/blocks/index.d.ts +0 -9
  192. package/dist/src/sub/DynamicLayout/sections/CustomSection/BlockMatcher/blocks/index.js +0 -24
  193. package/dist/src/sub/DynamicLayout/sections/CustomSection/BlockMatcher/index.d.ts +0 -1
  194. package/dist/src/sub/DynamicLayout/sections/CustomSection/BlockMatcher/index.js +0 -8
@@ -0,0 +1,80 @@
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 AVAILABLE_SPECS = [
15
+ 'CB_STYLE_PROP_TEXT_SPEC_COLOR',
16
+ 'CB_STYLE_PROP_TEXT_SPEC_FITTOSIZE',
17
+ 'CB_STYLE_PROP_TEXT_SPEC_FONT',
18
+ 'CB_STYLE_PROP_TEXT_SPEC_LETTERSPACING',
19
+ 'CB_STYLE_PROP_TEXT_SPEC_LINEHEIGHT',
20
+ 'CB_STYLE_PROP_TEXT_SPEC_SIZE',
21
+ 'CB_STYLE_PROP_TEXT_SPEC_WEIGHT'
22
+ ];
23
+ function parseStylePropTextSpec(namedProps, device) {
24
+ var specs = namedProps.specs;
25
+ return AVAILABLE_SPECS.reduce(function (acc, cur) {
26
+ var _a, _b;
27
+ var baseKey = device === 'DESKTOP' ? cur : cur + ":MOBILE";
28
+ var cssPropertyKey = getParsedKey(baseKey);
29
+ var value = specs[baseKey];
30
+ var hoverValue = specs[baseKey + ":HOVER"];
31
+ return {
32
+ style: __assign(__assign({}, acc.style), (_a = {}, _a[cssPropertyKey] = value, _a)),
33
+ hoverStyle: __assign(__assign({}, acc.hoverStyle), (_b = {}, _b[cssPropertyKey] = hoverValue, _b))
34
+ };
35
+ }, {
36
+ style: {},
37
+ hoverStyle: {}
38
+ });
39
+ }
40
+ exports.default = parseStylePropTextSpec;
41
+ function getParsedKey(key) {
42
+ switch (key) {
43
+ case "CB_STYLE_PROP_TEXT_SPEC_COLOR":
44
+ case "CB_STYLE_PROP_TEXT_SPEC_COLOR:HOVER":
45
+ case "CB_STYLE_PROP_TEXT_SPEC_COLOR:MOBILE":
46
+ case "CB_STYLE_PROP_TEXT_SPEC_COLOR:MOBILE:HOVER":
47
+ return 'color';
48
+ case "CB_STYLE_PROP_TEXT_SPEC_FITTOSIZE":
49
+ case "CB_STYLE_PROP_TEXT_SPEC_FITTOSIZE:HOVER":
50
+ case "CB_STYLE_PROP_TEXT_SPEC_FITTOSIZE:MOBILE":
51
+ case "CB_STYLE_PROP_TEXT_SPEC_FITTOSIZE:MOBILE:HOVER":
52
+ // NOTE: 뭐지?
53
+ return 'unknown';
54
+ case "CB_STYLE_PROP_TEXT_SPEC_FONT":
55
+ case "CB_STYLE_PROP_TEXT_SPEC_FONT:HOVER":
56
+ case "CB_STYLE_PROP_TEXT_SPEC_FONT:MOBILE":
57
+ case "CB_STYLE_PROP_TEXT_SPEC_FONT:MOBILE:HOVER":
58
+ return 'fontFamily';
59
+ case "CB_STYLE_PROP_TEXT_SPEC_LETTERSPACING":
60
+ case "CB_STYLE_PROP_TEXT_SPEC_LETTERSPACING:HOVER":
61
+ case "CB_STYLE_PROP_TEXT_SPEC_LETTERSPACING:MOBILE":
62
+ case "CB_STYLE_PROP_TEXT_SPEC_LETTERSPACING:MOBILE:HOVER":
63
+ return 'letterSpacing';
64
+ case "CB_STYLE_PROP_TEXT_SPEC_LINEHEIGHT":
65
+ case "CB_STYLE_PROP_TEXT_SPEC_LINEHEIGHT:HOVER":
66
+ case "CB_STYLE_PROP_TEXT_SPEC_LINEHEIGHT:MOBILE":
67
+ case "CB_STYLE_PROP_TEXT_SPEC_LINEHEIGHT:MOBILE:HOVER":
68
+ return 'lineHeight';
69
+ case "CB_STYLE_PROP_TEXT_SPEC_SIZE":
70
+ case "CB_STYLE_PROP_TEXT_SPEC_SIZE:HOVER":
71
+ case "CB_STYLE_PROP_TEXT_SPEC_SIZE:MOBILE":
72
+ case "CB_STYLE_PROP_TEXT_SPEC_SIZE:MOBILE:HOVER":
73
+ return 'fontSize';
74
+ case "CB_STYLE_PROP_TEXT_SPEC_WEIGHT":
75
+ case "CB_STYLE_PROP_TEXT_SPEC_WEIGHT:HOVER":
76
+ case "CB_STYLE_PROP_TEXT_SPEC_WEIGHT:MOBILE":
77
+ case "CB_STYLE_PROP_TEXT_SPEC_WEIGHT:MOBILE:HOVER":
78
+ return 'fontWeight';
79
+ }
80
+ }
@@ -0,0 +1,22 @@
1
+ import type { NAMED_CB_STYLE_BGCOLOR_PROPS } from './parseStylePropBgColor';
2
+ import type { NAMED_CB_STYLE_BGIMAGE_PROPS } from './parseStylePropBgImage';
3
+ import type { NAMED_CB_STYLE_BGOVERLAY_PROPS } from './parseStylePropBgOverlay';
4
+ import type { NAMED_CB_STYLE_BORDER_PROPS } from './parseStylePropBorder';
5
+ import type { NAMED_CB_STYLE_DIVIDER_PROPS } from './parseStylePropDivider';
6
+ import type { NAMED_CB_STYLE_IMAGE_PROPS } from './parseStylePropImage';
7
+ import type { NAMED_CB_STYLE_OPACITY_PROPS } from './parseStylePropOpacity';
8
+ import type { NAMED_CB_STYLE_SHADOW_PROPS } from './parseStylePropShadow';
9
+ import type { NAMED_CB_STYLE_TEXT_PROPS } from './parseStylePropTextSpec';
10
+ export declare enum CB_STYLE_PROP_KEYS {
11
+ CB_STYLE_PROP_TEXT = "CB_STYLE_PROP_TEXT",
12
+ CB_STYLE_PROP_OPACITY = "CB_STYLE_PROP_OPACITY",
13
+ CB_STYLE_PROP_DIVIDER = "CB_STYLE_PROP_DIVIDER",
14
+ CB_STYLE_PROP_SHADOW = "CB_STYLE_PROP_SHADOW",
15
+ CB_STYLE_PROP_BORDER = "CB_STYLE_PROP_BORDER",
16
+ CB_STYLE_PROP_IMAGE = "CB_STYLE_PROP_IMAGE",
17
+ CB_STYLE_PROP_BTNCOLOR = "CB_STYLE_PROP_BTNCOLOR",
18
+ CB_STYLE_PROP_BGCOLOR = "CB_STYLE_PROP_BGCOLOR",
19
+ CB_STYLE_PROP_BGMEDIA = "CB_STYLE_PROP_BGMEDIA",
20
+ CB_STYLE_PROP_BGOVERLAY = "CB_STYLE_PROP_BGOVERLAY"
21
+ }
22
+ export declare type NamedStylePropType = NAMED_CB_STYLE_TEXT_PROPS | NAMED_CB_STYLE_OPACITY_PROPS | NAMED_CB_STYLE_DIVIDER_PROPS | NAMED_CB_STYLE_SHADOW_PROPS | NAMED_CB_STYLE_BORDER_PROPS | NAMED_CB_STYLE_IMAGE_PROPS | NAMED_CB_STYLE_BGCOLOR_PROPS | NAMED_CB_STYLE_BGIMAGE_PROPS | NAMED_CB_STYLE_BGOVERLAY_PROPS;
@@ -0,0 +1,16 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.CB_STYLE_PROP_KEYS = void 0;
4
+ var CB_STYLE_PROP_KEYS;
5
+ (function (CB_STYLE_PROP_KEYS) {
6
+ CB_STYLE_PROP_KEYS["CB_STYLE_PROP_TEXT"] = "CB_STYLE_PROP_TEXT";
7
+ CB_STYLE_PROP_KEYS["CB_STYLE_PROP_OPACITY"] = "CB_STYLE_PROP_OPACITY";
8
+ CB_STYLE_PROP_KEYS["CB_STYLE_PROP_DIVIDER"] = "CB_STYLE_PROP_DIVIDER";
9
+ CB_STYLE_PROP_KEYS["CB_STYLE_PROP_SHADOW"] = "CB_STYLE_PROP_SHADOW";
10
+ CB_STYLE_PROP_KEYS["CB_STYLE_PROP_BORDER"] = "CB_STYLE_PROP_BORDER";
11
+ CB_STYLE_PROP_KEYS["CB_STYLE_PROP_IMAGE"] = "CB_STYLE_PROP_IMAGE";
12
+ CB_STYLE_PROP_KEYS["CB_STYLE_PROP_BTNCOLOR"] = "CB_STYLE_PROP_BTNCOLOR";
13
+ CB_STYLE_PROP_KEYS["CB_STYLE_PROP_BGCOLOR"] = "CB_STYLE_PROP_BGCOLOR";
14
+ CB_STYLE_PROP_KEYS["CB_STYLE_PROP_BGMEDIA"] = "CB_STYLE_PROP_BGMEDIA";
15
+ CB_STYLE_PROP_KEYS["CB_STYLE_PROP_BGOVERLAY"] = "CB_STYLE_PROP_BGOVERLAY";
16
+ })(CB_STYLE_PROP_KEYS = exports.CB_STYLE_PROP_KEYS || (exports.CB_STYLE_PROP_KEYS = {}));
@@ -0,0 +1,134 @@
1
+ import type { CB_BTNTEXT_STYLE_PROPS, CB_STYLE_PROP_BTNCOLOR_SPECS } from '../components/ComponentBlock/componentBlocks/Button/btnTypes';
2
+ import type { CB_TEXT_STYLE_PROPS } from '../components/ComponentBlock/componentBlocks/Text';
3
+ import type { CB_TWITTER_STYLE_PROPS } from '../components/ComponentBlock/componentBlocks/Twitter';
4
+ import type { CB_CONTENT_PROP_CLINK, CB_CONTENT_PROP_IMAGE, CB_CONTENT_PROP_TEXT, CB_CONTENT_PROP_TWITTER } from '../components/ComponentBlock/componentBlocks/types';
5
+ import type { CB_CONTENT_PROP_YOUTUBE_TYPE, CB_STYLE_PROP_BGCOLOR_SPECS } from '../components/ComponentBlock/componentBlocks/Youtube/types';
6
+ import type { CB_CONTENT_PROP_VISIBILITY_SPECS } from './contentPropParsers/parseContentVisibility';
7
+ import type { CB_EFFECT_PROP_ENTANIM_SPECS } from './effectPropParsers/parseEffectPropEntAnim';
8
+ import type { CB_LAYOUT_PROP_ARRANGE_SPECS } from './layoutPropParsers/parseLayoutPropArrange';
9
+ import type { CB_LAYOUT_PROP_PADDING_SPECS } from './layoutPropParsers/parseLayoutPropPadding';
10
+ import type { NamedLayoutPropType } from './layoutPropParsers/types';
11
+ import type { CB_STYLE_PROP_BORDER_SPECS } from './stylePropParsers/parseStylePropBorder';
12
+ import type { CB_STYLE_PROP_DIVIDER_SPECS } from './stylePropParsers/parseStylePropDivider';
13
+ import type { CB_STYLE_PROP_IMAGE_SPECS } from './stylePropParsers/parseStylePropImage';
14
+ import type { CB_STYLE_PROP_TEXT_OPACITY_SPECS } from './stylePropParsers/parseStylePropOpacity';
15
+ import type { CB_STYLE_PROP_SHADOW_SPECS } from './stylePropParsers/parseStylePropShadow';
16
+ import type { NamedStylePropType } from './stylePropParsers/types';
17
+ import type { CSSProperties } from 'react';
18
+ export declare type STRING_PLAIN = string;
19
+ export declare type ENUM_STRING = string;
20
+ export declare type NUMBER_INTEGER = number;
21
+ export declare type STRING_8DIGIT_HEX = string;
22
+ export declare type CB_GENERAL_PROPERTIES_TYPE = {
23
+ CB_PLACEMENT_PROP_PLACEMENT: CB_PLACEMENT_PROP_SPECS;
24
+ CB_CONTENT_PROP_HOVER: {
25
+ CB_CONTENT_PROP_HOVER_SPEC_MUSE: boolean;
26
+ };
27
+ };
28
+ export declare type CB_TEXT_PROPERTIES_TYPE = CB_GENERAL_PROPERTIES_TYPE & {
29
+ CB_STYLE_PROP_TEXT: CB_TEXT_STYLE_PROPS;
30
+ CB_STYLE_PROP_OPACITY: CB_STYLE_PROP_TEXT_OPACITY_SPECS;
31
+ CB_LAYOUT_PROP_PADDING: CB_LAYOUT_PROP_PADDING_SPECS;
32
+ CB_LAYOUT_PROP_ARRANGE: CB_LAYOUT_PROP_ARRANGE_SPECS;
33
+ CB_CONTENT_PROP_TEXT: CB_CONTENT_PROP_TEXT;
34
+ CB_CONTENT_PROP_CLINK: CB_CONTENT_PROP_CLINK;
35
+ CB_CONTENT_PROP_VISIBILITY: CB_CONTENT_PROP_VISIBILITY_SPECS;
36
+ CB_EFFECT_PROP_ENTANIM: CB_EFFECT_PROP_ENTANIM_SPECS;
37
+ };
38
+ export declare type CB_BTN_PROPERTIES_TYPE = CB_GENERAL_PROPERTIES_TYPE & {
39
+ CB_CONTENT_PROP_TEXT: CB_CONTENT_PROP_TEXT;
40
+ CB_CONTENT_PROP_CLINK: CB_CONTENT_PROP_CLINK;
41
+ CB_STYLE_PROP_BTNTEXT: CB_BTNTEXT_STYLE_PROPS;
42
+ CB_STYLE_PROP_BORDER: CB_STYLE_PROP_BORDER_SPECS;
43
+ CB_LAYOUT_PROP_PADDING: CB_LAYOUT_PROP_PADDING_SPECS;
44
+ CB_LAYOUT_PROP_ARRANGE: CB_LAYOUT_PROP_ARRANGE_SPECS;
45
+ CB_STYLE_PROP_OPACITY: CB_STYLE_PROP_TEXT_OPACITY_SPECS;
46
+ CB_CONTENT_PROP_VISIBILITY: CB_CONTENT_PROP_VISIBILITY_SPECS;
47
+ CB_EFFECT_PROP_ENTANIM: CB_EFFECT_PROP_ENTANIM_SPECS;
48
+ CB_STYLE_PROP_BTNCOLOR: CB_STYLE_PROP_BTNCOLOR_SPECS;
49
+ CB_STYLE_PROP_SHADOW: CB_STYLE_PROP_SHADOW_SPECS;
50
+ };
51
+ export declare type CB_IMG_PROPERTIES_TYPE = CB_GENERAL_PROPERTIES_TYPE & {
52
+ CB_CONTENT_PROP_CLINK: CB_CONTENT_PROP_CLINK;
53
+ CB_CONTENT_PROP_IMAGE: CB_CONTENT_PROP_IMAGE;
54
+ CB_CONTENT_PROP_VISIBILITY: CB_CONTENT_PROP_VISIBILITY_SPECS;
55
+ CB_LAYOUT_PROP_ARRANGE: CB_LAYOUT_PROP_ARRANGE_SPECS;
56
+ CB_LAYOUT_PROP_PADDING: CB_LAYOUT_PROP_PADDING_SPECS;
57
+ CB_STYLE_PROP_BORDER: CB_STYLE_PROP_BORDER_SPECS;
58
+ CB_STYLE_PROP_IMAGE: CB_STYLE_PROP_IMAGE_SPECS;
59
+ CB_STYLE_PROP_OPACITY: CB_STYLE_PROP_TEXT_OPACITY_SPECS;
60
+ CB_STYLE_PROP_SHADOW: CB_STYLE_PROP_SHADOW_SPECS;
61
+ CB_EFFECT_PROP_ENTANIM: CB_EFFECT_PROP_ENTANIM_SPECS;
62
+ };
63
+ export declare type CB_TWITTER_PROPERTIES_TYPE = CB_GENERAL_PROPERTIES_TYPE & {
64
+ CB_CONTENT_PROP_TWITTER: CB_CONTENT_PROP_TWITTER;
65
+ CB_CONTENT_PROP_VISIBILITY: CB_CONTENT_PROP_VISIBILITY_SPECS;
66
+ CB_LAYOUT_PROP_ARRANGE: CB_LAYOUT_PROP_ARRANGE_SPECS;
67
+ CB_LAYOUT_PROP_PADDING: CB_LAYOUT_PROP_PADDING_SPECS;
68
+ CB_STYLE_PROP_OPACITY: CB_STYLE_PROP_TEXT_OPACITY_SPECS;
69
+ CB_STYLE_PROP_SHADOW: CB_STYLE_PROP_SHADOW_SPECS;
70
+ CB_STYLE_PROP_TWITTER: CB_TWITTER_STYLE_PROPS;
71
+ CB_EFFECT_PROP_ENTANIM: CB_EFFECT_PROP_ENTANIM_SPECS;
72
+ };
73
+ export declare type CB_RICHTEXT_PROPERTIES_TYPE = CB_GENERAL_PROPERTIES_TYPE & {
74
+ CB_CONTENT_PROP_TEXTEDIT: {
75
+ CB_CONTENT_PROP_TEXTEDIT_SPEC_EDITOR: string;
76
+ };
77
+ CB_CONTENT_PROP_VISIBILITY: CB_CONTENT_PROP_VISIBILITY_SPECS;
78
+ CB_EFFECT_PROP_ENTANIM: CB_EFFECT_PROP_ENTANIM_SPECS;
79
+ CB_LAYOUT_PROP_ARRANGE: CB_LAYOUT_PROP_ARRANGE_SPECS;
80
+ CB_LAYOUT_PROP_PADDING: CB_LAYOUT_PROP_PADDING_SPECS;
81
+ CB_STYLE_PROP_BGCOLOR: CB_STYLE_PROP_BGCOLOR_SPECS;
82
+ CB_STYLE_PROP_BORDER: CB_STYLE_PROP_BORDER_SPECS;
83
+ CB_STYLE_PROP_OPACITY: CB_STYLE_PROP_TEXT_OPACITY_SPECS;
84
+ CB_STYLE_PROP_SHADOW: CB_STYLE_PROP_SHADOW_SPECS;
85
+ };
86
+ export declare type CB_DIVIDER_PROPERTIES_TYPE = CB_GENERAL_PROPERTIES_TYPE & {
87
+ CB_CONTENT_PROP_VISIBILITY: CB_CONTENT_PROP_VISIBILITY_SPECS;
88
+ CB_EFFECT_PROP_ENTANIM: CB_EFFECT_PROP_ENTANIM_SPECS;
89
+ CB_LAYOUT_PROP_ARRANGE: CB_LAYOUT_PROP_ARRANGE_SPECS;
90
+ CB_LAYOUT_PROP_PADDING: CB_LAYOUT_PROP_PADDING_SPECS;
91
+ CB_STYLE_PROP_DIVIDER: CB_STYLE_PROP_DIVIDER_SPECS;
92
+ };
93
+ export declare type CB_YOUTUBE_PROPERTIES_TYPE = CB_GENERAL_PROPERTIES_TYPE & {
94
+ CB_CONTENT_PROP_VISIBILITY: CB_CONTENT_PROP_VISIBILITY_SPECS;
95
+ CB_CONTENT_PROP_YOUTUBE: CB_CONTENT_PROP_YOUTUBE_TYPE;
96
+ CB_LAYOUT_PROP_ARRANGE: CB_LAYOUT_PROP_ARRANGE_SPECS;
97
+ CB_LAYOUT_PROP_PADDING: CB_LAYOUT_PROP_PADDING_SPECS;
98
+ CB_STYLE_PROP_BGCOLOR: CB_STYLE_PROP_BGCOLOR_SPECS;
99
+ CB_STYLE_PROP_OPACITY: CB_STYLE_PROP_TEXT_OPACITY_SPECS;
100
+ CB_STYLE_PROP_SHADOW: CB_STYLE_PROP_SHADOW_SPECS;
101
+ CB_EFFECT_PROP_ENTANIM: CB_EFFECT_PROP_ENTANIM_SPECS;
102
+ };
103
+ export declare type StyleType = {
104
+ style: CSSProperties;
105
+ };
106
+ export declare type StyleAndHoverStyle = StyleType & {
107
+ hoverStyle: CSSProperties;
108
+ };
109
+ export declare type OverlayStyleAndOverlayHoverStyle = {
110
+ overlayStyle: CSSProperties;
111
+ overlayHoverStyle: CSSProperties;
112
+ };
113
+ export declare type Device = 'DESKTOP' | 'MOBILE';
114
+ export declare type DefaultBrightTheme = 'LIGHT' | 'DARK';
115
+ export declare type ParserResult = {
116
+ style: CSSProperties;
117
+ hoverStyle: CSSProperties;
118
+ layout: CSSProperties;
119
+ effect: CSSProperties;
120
+ content: Record<string, unknown>;
121
+ };
122
+ export declare type NamedPropAllTypes = NamedStylePropType | NamedLayoutPropType;
123
+ export declare type CB_PLACEMENT_PROP_SPECS = {
124
+ CB_PLACEMENT_PROP_PLACEMENT_SPEC_COLS: number;
125
+ 'CB_PLACEMENT_PROP_PLACEMENT_SPEC_COLS:MOBILE': number;
126
+ CB_PLACEMENT_PROP_PLACEMENT_SPEC_ROWS: number;
127
+ 'CB_PLACEMENT_PROP_PLACEMENT_SPEC_ROWS:MOBILE': number;
128
+ CB_PLACEMENT_PROP_PLACEMENT_SPEC_STARTX: number;
129
+ 'CB_PLACEMENT_PROP_PLACEMENT_SPEC_STARTX:MOBILE': number;
130
+ CB_PLACEMENT_PROP_PLACEMENT_SPEC_STARTY: number;
131
+ 'CB_PLACEMENT_PROP_PLACEMENT_SPEC_STARTY:MOBILE': number;
132
+ CB_PLACEMENT_PROP_PLACEMENT_SPEC_ZINDEX: number;
133
+ 'CB_PLACEMENT_PROP_PLACEMENT_SPEC_ZINDEX:MOBILE': number;
134
+ };
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -6,3 +6,4 @@ export { IntroSection } from './IntroSection';
6
6
  export { EditTypeMembershipSection } from './MembershipSection';
7
7
  export { NormalTypeMembershipSection } from './MembershipSection';
8
8
  export { FullscreenIframeSection } from './FullscreenIframeSection';
9
+ export { CustomSection } from './CustomSection';
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.FullscreenIframeSection = exports.NormalTypeMembershipSection = exports.EditTypeMembershipSection = exports.IntroSection = exports.InfoBoxSection = exports.FooterSection = exports.ContentsSection = exports.ContentsCarouselSection = void 0;
3
+ exports.CustomSection = exports.FullscreenIframeSection = exports.NormalTypeMembershipSection = exports.EditTypeMembershipSection = exports.IntroSection = exports.InfoBoxSection = exports.FooterSection = exports.ContentsSection = exports.ContentsCarouselSection = void 0;
4
4
  var ContentsCarouselSection_1 = require("./ContentsCarouselSection");
5
5
  Object.defineProperty(exports, "ContentsCarouselSection", { enumerable: true, get: function () { return ContentsCarouselSection_1.ContentsCarouselSection; } });
6
6
  var ContentsSection_1 = require("./ContentsSection");
@@ -17,3 +17,5 @@ var MembershipSection_2 = require("./MembershipSection");
17
17
  Object.defineProperty(exports, "NormalTypeMembershipSection", { enumerable: true, get: function () { return MembershipSection_2.NormalTypeMembershipSection; } });
18
18
  var FullscreenIframeSection_1 = require("./FullscreenIframeSection");
19
19
  Object.defineProperty(exports, "FullscreenIframeSection", { enumerable: true, get: function () { return FullscreenIframeSection_1.FullscreenIframeSection; } });
20
+ var CustomSection_1 = require("./CustomSection");
21
+ Object.defineProperty(exports, "CustomSection", { enumerable: true, get: function () { return CustomSection_1.CustomSection; } });
@@ -1,8 +1,14 @@
1
1
  /// <reference types="react" />
2
2
  import type { TypeOfSectionAction } from './sectionActionTypes';
3
+ import type { ComponentBlock } from './sections/CustomSection/types';
4
+ import type { CB_CONTENT_PROP_VISIBILITY_SPECS } from './sections/CustomSection/util/contentPropParsers/parseContentVisibility';
5
+ import type { CB_EFFECT_PROP_ENTANIM_SPECS } from './sections/CustomSection/util/effectPropParsers/parseEffectPropEntAnim';
6
+ import type { CB_LAYOUT_PROP_PADDING_SPECS } from './sections/CustomSection/util/layoutPropParsers/parseLayoutPropPadding';
7
+ import type { CB_STYLE_PROP_BGCOLOR_SPECS } from './sections/CustomSection/util/stylePropParsers/parseStylePropBgColor';
8
+ import type { CB_STYLE_PROP_BGOVERLAY_SPECS } from './sections/CustomSection/util/stylePropParsers/parseStylePropBgOverlay';
3
9
  export { TypeOfSectionAction };
4
- export declare type TypeOfSectionManifestSchema = 'BASE_INTRO' | 'BASE_CONTENTS' | 'BASE_CONTENTS_CAROUSEL' | 'BASE_FOOTER' | 'BASE_INFO_BOX' | 'EXP_IFRAME' | 'PRG_MEMBERSHIP_DISPLAY' | 'CUSTOM_SECTION';
5
- export declare type TypeofSectionTemplate = 'BASE_INTRO_A' | 'BASE_INTRO_B' | 'BASE_INTRO_C' | 'BASE_INTRO_D' | 'BASE_CONTENTS_A' | 'BASE_CONTENTS_B' | 'BASE_CONTENTS_CAROUSEL_A' | 'BASE_CONTENTS_CAROUSEL_B' | 'BASE_FOOTER_A' | 'BASE_FOOTER_B' | 'BASE_INFO_BOX_A' | 'EXP_IFRAME_A' | 'PRG_MEMBERSHIP_DISPLAY_A' | 'PRG_MEMBERSHIP_DISPLAY_B' | 'CUSTOM_SECTION_A';
10
+ export declare type TypeOfSectionManifestSchema = 'BASE_INTRO' | 'BASE_CONTENTS' | 'BASE_CONTENTS_CAROUSEL' | 'BASE_FOOTER' | 'BASE_INFO_BOX' | 'EXP_IFRAME' | 'PRG_MEMBERSHIP_DISPLAY' | 'CUSTOM';
11
+ export declare type TypeofSectionTemplate = 'BASE_INTRO_A' | 'BASE_INTRO_B' | 'BASE_INTRO_C' | 'BASE_INTRO_D' | 'BASE_CONTENTS_A' | 'BASE_CONTENTS_B' | 'BASE_CONTENTS_CAROUSEL_A' | 'BASE_CONTENTS_CAROUSEL_B' | 'BASE_FOOTER_A' | 'BASE_FOOTER_B' | 'BASE_INFO_BOX_A' | 'EXP_IFRAME_A' | 'PRG_MEMBERSHIP_DISPLAY_A' | 'PRG_MEMBERSHIP_DISPLAY_B' | undefined;
6
12
  export declare type TypeOfSectionContentMediaType = 'IMAGE' | 'YOUTUBE';
7
13
  export declare type TypeOfSectionLinkType = 'WEB_LINK' | 'INTERNAL_LINK' | 'NONE';
8
14
  export declare type TypeOfSectionType = 'PROGRAMMED' | 'DESIGNED' | 'CUSTOM';
@@ -21,6 +27,7 @@ declare type KeyOfSectionStyles = 'title_color_in_hex' | 'description_color_in_h
21
27
  declare type KeyOfItemProperties = 'title' | 'description' | 'body' | 'logo_image_src' | 'image_src' | 'link_type' | 'link_src' | 'button_label';
22
28
  export interface ISection {
23
29
  id: number;
30
+ administrativeTitle?: string;
24
31
  display: boolean;
25
32
  order: number;
26
33
  manifest: {
@@ -28,7 +35,7 @@ export interface ISection {
28
35
  availableProperties: Array<KeyOfSectionProperties>;
29
36
  availableStyles: Array<KeyOfSectionStyles>;
30
37
  availableTemplates: Array<TypeofSectionTemplate>;
31
- };
38
+ } | Record<string, never>;
32
39
  template: TypeofSectionTemplate;
33
40
  properties: ISectionProperties;
34
41
  styles: ISectionStyles;
@@ -37,7 +44,6 @@ export interface ISection {
37
44
  updatedAt: string;
38
45
  type: TypeOfSectionType;
39
46
  program?: 'MEMBERSHIP_DISPLAY';
40
- componentBlocks?: any[];
41
47
  programData?: {
42
48
  mdid: string;
43
49
  preview: {
@@ -50,6 +56,8 @@ export interface ISection {
50
56
  };
51
57
  };
52
58
  };
59
+ componentBlocks?: ComponentBlock[];
60
+ jsonProperties?: ISectionJsonProperties;
53
61
  }
54
62
  export interface SubscriptionProductInList {
55
63
  id: number;
@@ -282,3 +290,61 @@ export declare type IMembershipDisplay = {
282
290
  isDefault: boolean;
283
291
  connectedMemberships: IConnectedMembership[];
284
292
  };
293
+ export declare type ISectionJsonProperties = {
294
+ CB_CONTENT_PROP_VISIBILITY: CB_CONTENT_PROP_VISIBILITY_SPECS;
295
+ CB_EFFECT_PROP_ENTANIM: CB_EFFECT_PROP_ENTANIM_SPECS;
296
+ CB_LAYOUT_PROP_PADDING: CB_LAYOUT_PROP_PADDING_SPECS;
297
+ CB_PLACEMENT_PROP_SECTION: {
298
+ CB_PLACEMENT_PROP_SECTION_SPEC_FULLWIDTH: boolean;
299
+ 'CB_PLACEMENT_PROP_SECTION_SPEC_FULLWIDTH:MOBILE': boolean | undefined;
300
+ CB_PLACEMENT_PROP_SECTION_SPEC_MINHEIGHT: number;
301
+ 'CB_PLACEMENT_PROP_SECTION_SPEC_MINHEIGHT:MOBILE': number | undefined;
302
+ CB_PLACEMENT_PROP_SECTION_SPEC_ROWS: number;
303
+ 'CB_PLACEMENT_PROP_SECTION_SPEC_ROWS:MOBILE': number | undefined;
304
+ CB_PLACEMENT_PROP_SECTION_SPEC_WIDTH: number;
305
+ 'CB_PLACEMENT_PROP_SECTION_SPEC_WIDTH:MOBILE': number | undefined;
306
+ };
307
+ CB_STYLE_PROP_BGCOLOR: CB_STYLE_PROP_BGCOLOR_SPECS;
308
+ CB_STYLE_PROP_BGMEDIA: CB_STYLE_PROP_BGMEDIA_SPECS;
309
+ CB_STYLE_PROP_BGOVERLAY: CB_STYLE_PROP_BGOVERLAY_SPECS;
310
+ };
311
+ export declare type CB_STYLE_PROP_BGMEDIA_SPECS = {
312
+ CB_STYLE_PROP_BGMEDIA_SPEC_ENDTIME: number;
313
+ 'CB_STYLE_PROP_BGMEDIA_SPEC_ENDTIME:HOVER': number;
314
+ 'CB_STYLE_PROP_BGMEDIA_SPEC_ENDTIME:MOBILE': number | undefined;
315
+ 'CB_STYLE_PROP_BGMEDIA_SPEC_ENDTIME:MOBILE:HOVER': number | undefined;
316
+ CB_STYLE_PROP_BGMEDIA_SPEC_IMAGEFIT: string;
317
+ 'CB_STYLE_PROP_BGMEDIA_SPEC_IMAGEFIT:HOVER': string;
318
+ 'CB_STYLE_PROP_BGMEDIA_SPEC_IMAGEFIT:MOBILE': string | undefined;
319
+ 'CB_STYLE_PROP_BGMEDIA_SPEC_IMAGEFIT:MOBILE:HOVER': string | undefined;
320
+ CB_STYLE_PROP_BGMEDIA_SPEC_IMAGESELECTOR: string;
321
+ 'CB_STYLE_PROP_BGMEDIA_SPEC_IMAGESELECTOR:HOVER': string;
322
+ 'CB_STYLE_PROP_BGMEDIA_SPEC_IMAGESELECTOR:MOBILE': string | undefined;
323
+ 'CB_STYLE_PROP_BGMEDIA_SPEC_IMAGESELECTOR:MOBILE:HOVER': string | undefined;
324
+ CB_STYLE_PROP_BGMEDIA_SPEC_IMAGEPOSITION: string;
325
+ 'CB_STYLE_PROP_BGMEDIA_SPEC_IMAGEPOSITION:HOVER': string;
326
+ 'CB_STYLE_PROP_BGMEDIA_SPEC_IMAGEPOSITION:MOBILE': string | undefined;
327
+ 'CB_STYLE_PROP_BGMEDIA_SPEC_IMAGEPOSITION:MOBILE:HOVER': string | undefined;
328
+ CB_STYLE_PROP_BGMEDIA_SPEC_MPLAY: boolean;
329
+ 'CB_STYLE_PROP_BGMEDIA_SPEC_MPLAY:MOBILE': boolean | undefined;
330
+ CB_STYLE_PROP_BGMEDIA_SPEC_REPLAY: boolean;
331
+ 'CB_STYLE_PROP_BGMEDIA_SPEC_REPLAY:HOVER': boolean;
332
+ 'CB_STYLE_PROP_BGMEDIA_SPEC_REPLAY:MOBILE': boolean | undefined;
333
+ 'CB_STYLE_PROP_BGMEDIA_SPEC_REPLAY:MOBILE:HOVER': boolean | undefined;
334
+ CB_STYLE_PROP_BGMEDIA_SPEC_STARTTIME: number;
335
+ 'CB_STYLE_PROP_BGMEDIA_SPEC_STARTTIME:HOVER': number;
336
+ 'CB_STYLE_PROP_BGMEDIA_SPEC_STARTTIME:MOBILE': number | undefined;
337
+ 'CB_STYLE_PROP_BGMEDIA_SPEC_STARTTIME:MOBILE:HOVER': number | undefined;
338
+ CB_STYLE_PROP_BGMEDIA_SPEC_SCROLL: boolean;
339
+ 'CB_STYLE_PROP_BGMEDIA_SPEC_SCROLL:HOVER': boolean;
340
+ 'CB_STYLE_PROP_BGMEDIA_SPEC_SCROLL:MOBILE': boolean | undefined;
341
+ 'CB_STYLE_PROP_BGMEDIA_SPEC_SCROLL:MOBILE:HOVER': boolean | undefined;
342
+ CB_STYLE_PROP_BGMEDIA_SPEC_TYPE: string;
343
+ 'CB_STYLE_PROP_BGMEDIA_SPEC_TYPE:HOVER': string;
344
+ 'CB_STYLE_PROP_BGMEDIA_SPEC_TYPE:MOBILE': string | undefined;
345
+ 'CB_STYLE_PROP_BGMEDIA_SPEC_TYPE:MOBILE:HOVER': string | undefined;
346
+ CB_STYLE_PROP_BGMEDIA_SPEC_YSRC: string;
347
+ 'CB_STYLE_PROP_BGMEDIA_SPEC_YSRC:HOVER': string;
348
+ 'CB_STYLE_PROP_BGMEDIA_SPEC_YSRC:MOBILE': string | undefined;
349
+ 'CB_STYLE_PROP_BGMEDIA_SPEC_YSRC:MOBILE:HOVER': string | undefined;
350
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pds-dev-kit-web-test",
3
- "version": "0.2.1",
3
+ "version": "0.2.3",
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
- "react-grid-layout": "^1.3.4",
25
+ "publ-echo": "^0.0.20",
26
26
  "react-hook-form": "^7.28.1",
27
27
  "react-i18next": "^11.12.0",
28
28
  "react-router-dom": "^5.2.0",
@@ -85,7 +85,6 @@
85
85
  "@storybook/react": "^6.3.12",
86
86
  "@types/lodash": "^4.14.175",
87
87
  "@types/node": "^16.10.2",
88
- "@types/react-grid-layout": "^1.3.2",
89
88
  "@types/react-router-dom": "^5.3.3",
90
89
  "@types/smoothscroll-polyfill": "^0.3.1",
91
90
  "@types/styled-components": "^5.1.9",
package/release-note.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # pds-dev-kit-web-test Release Notes
2
- ## [v0.2.1]
2
+ ## [v0.2.3]
3
3
  ## 기준 pds-dev-kit-web 버전 @2.0.14
4
4
  ### sub
5
5
  * DynamicLayout - custom section
6
- * Accordion 컴포넌트 블럭 추가
6
+ * jsonProperties 관련 내용 추가
@@ -1,13 +0,0 @@
1
- import type { CSSProperties } from 'react';
2
- declare type Props = {
3
- direction?: 'vertical' | 'horizontal';
4
- children: React.ReactNode;
5
- relative?: boolean;
6
- justifyContent?: boolean;
7
- alignItems?: boolean;
8
- flex?: boolean;
9
- style?: CSSProperties;
10
- className?: string;
11
- };
12
- declare function Box({ direction, children, relative, justifyContent, alignItems, flex, style, className }: Props): JSX.Element;
13
- export default Box;
@@ -1,73 +0,0 @@
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
- Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
20
- }) : (function(o, m, k, k2) {
21
- if (k2 === undefined) k2 = k;
22
- o[k2] = m[k];
23
- }));
24
- var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
25
- Object.defineProperty(o, "default", { enumerable: true, value: v });
26
- }) : function(o, v) {
27
- o["default"] = v;
28
- });
29
- var __importStar = (this && this.__importStar) || function (mod) {
30
- if (mod && mod.__esModule) return mod;
31
- var result = {};
32
- if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
33
- __setModuleDefault(result, mod);
34
- return result;
35
- };
36
- Object.defineProperty(exports, "__esModule", { value: true });
37
- var jsx_runtime_1 = require("react/jsx-runtime");
38
- var styled_components_1 = __importStar(require("styled-components"));
39
- function Box(_a) {
40
- var _b = _a.direction, direction = _b === void 0 ? 'horizontal' : _b, children = _a.children, relative = _a.relative, justifyContent = _a.justifyContent, alignItems = _a.alignItems, flex = _a.flex, style = _a.style, className = _a.className;
41
- if (direction === 'horizontal') {
42
- return ((0, jsx_runtime_1.jsx)(Row, __assign({ style: style, relative: relative, justifyContent: justifyContent, alignItems: alignItems, flex: flex, className: className }, { children: children }), void 0));
43
- }
44
- return ((0, jsx_runtime_1.jsx)(Col, __assign({ style: style, relative: relative, justifyContent: justifyContent, alignItems: alignItems, flex: flex, className: className }, { children: children }), void 0));
45
- }
46
- exports.default = Box;
47
- var Col = styled_components_1.default.div(templateObject_5 || (templateObject_5 = __makeTemplateObject(["\n display: flex;\n flex-direction: column;\n\n ", ";\n\n ", ";\n\n ", ";\n\n ", ";\n"], ["\n display: flex;\n flex-direction: column;\n\n ", ";\n\n ", ";\n\n ", ";\n\n ", ";\n"])), function (_a) {
48
- var relative = _a.relative;
49
- return relative && (0, styled_components_1.css)(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n position: relative;\n "], ["\n position: relative;\n "])));
50
- }, function (_a) {
51
- var justifyContent = _a.justifyContent;
52
- return justifyContent && (0, styled_components_1.css)(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n justify-content: center;\n "], ["\n justify-content: center;\n "])));
53
- }, function (_a) {
54
- var alignItems = _a.alignItems;
55
- return alignItems && (0, styled_components_1.css)(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n align-items: center;\n "], ["\n align-items: center;\n "])));
56
- }, function (_a) {
57
- var flex = _a.flex;
58
- return flex && (0, styled_components_1.css)(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\n flex: 1;\n "], ["\n flex: 1;\n "])));
59
- });
60
- var Row = styled_components_1.default.div(templateObject_10 || (templateObject_10 = __makeTemplateObject(["\n display: flex;\n flex-direction: row;\n\n ", ";\n\n ", ";\n\n ", ";\n\n ", ";\n"], ["\n display: flex;\n flex-direction: row;\n\n ", ";\n\n ", ";\n\n ", ";\n\n ", ";\n"])), function (_a) {
61
- var relative = _a.relative;
62
- return relative && (0, styled_components_1.css)(templateObject_6 || (templateObject_6 = __makeTemplateObject(["\n position: relative;\n "], ["\n position: relative;\n "])));
63
- }, function (_a) {
64
- var justifyContent = _a.justifyContent;
65
- return justifyContent && (0, styled_components_1.css)(templateObject_7 || (templateObject_7 = __makeTemplateObject(["\n justify-content: center;\n "], ["\n justify-content: center;\n "])));
66
- }, function (_a) {
67
- var alignItems = _a.alignItems;
68
- return alignItems && (0, styled_components_1.css)(templateObject_8 || (templateObject_8 = __makeTemplateObject(["\n align-items: center;\n "], ["\n align-items: center;\n "])));
69
- }, function (_a) {
70
- var flex = _a.flex;
71
- return flex && (0, styled_components_1.css)(templateObject_9 || (templateObject_9 = __makeTemplateObject(["\n flex: 1;\n "], ["\n flex: 1;\n "])));
72
- });
73
- var templateObject_1, templateObject_2, templateObject_3, templateObject_4, templateObject_5, templateObject_6, templateObject_7, templateObject_8, templateObject_9, templateObject_10;