pds-dev-kit-web-test 0.2.2 → 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 (202) 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/desktop/common/Carousel.d.ts +1 -2
  32. package/dist/src/sub/DynamicLayout/components/desktop/common/Carousel.js +6 -6
  33. package/dist/src/sub/DynamicLayout/components/index.d.ts +0 -1
  34. package/dist/src/sub/DynamicLayout/components/index.js +1 -6
  35. package/dist/src/sub/DynamicLayout/mock_customSection.d.ts +2 -0
  36. package/dist/src/sub/DynamicLayout/mock_customSection.js +838 -0
  37. package/dist/src/sub/DynamicLayout/mock_samplePage.js +5 -210
  38. package/dist/src/sub/DynamicLayout/nakedMocks.json +783 -0
  39. package/dist/src/sub/DynamicLayout/sectionActionTypes.d.ts +17 -4
  40. package/dist/src/sub/DynamicLayout/sections/CustomSection/CustomSection.d.ts +2 -9
  41. package/dist/src/sub/DynamicLayout/sections/CustomSection/CustomSection.js +85 -51
  42. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/ComponentBlock.d.ts +7 -0
  43. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/ComponentBlock.js +55 -0
  44. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/ComponentBlockMatcher.d.ts +3 -0
  45. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/ComponentBlockMatcher.js +70 -0
  46. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/Button/Button.d.ts +5 -0
  47. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/Button/Button.js +73 -0
  48. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/Button/btnTypes.d.ts +68 -0
  49. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/Button/btnTypes.js +2 -0
  50. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/Divider.d.ts +5 -0
  51. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/Divider.js +66 -0
  52. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/Image.d.ts +16 -0
  53. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/Image.js +102 -0
  54. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/RichText/RichText.d.ts +5 -0
  55. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/RichText/RichText.js +62 -0
  56. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/RichText/index.d.ts +1 -0
  57. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/RichText/index.js +8 -0
  58. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/RichText/types.d.ts +44 -0
  59. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/RichText/types.js +2 -0
  60. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/Text.d.ts +32 -0
  61. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/Text.js +58 -0
  62. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/Twitter.d.ts +10 -0
  63. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/Twitter.js +41 -0
  64. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/Youtube/Youtube.d.ts +5 -0
  65. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/Youtube/Youtube.js +69 -0
  66. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/Youtube/index.d.ts +1 -0
  67. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/Youtube/index.js +8 -0
  68. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/Youtube/parseYoutubeContentProp.d.ts +7 -0
  69. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/Youtube/parseYoutubeContentProp.js +33 -0
  70. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/Youtube/types.d.ts +48 -0
  71. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/Youtube/types.js +2 -0
  72. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/components/S_CB_Box.d.ts +2 -0
  73. package/dist/src/sub/DynamicLayout/sections/CustomSection/{BlockMatcher/blocks/Button.js → components/ComponentBlock/componentBlocks/components/S_CB_Box.js} +6 -11
  74. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/components/S_HiddenCover.d.ts +1 -0
  75. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/components/S_HiddenCover.js +13 -0
  76. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/hooks/useCLINK.d.ts +8 -0
  77. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/hooks/useCLINK.js +24 -0
  78. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/types.d.ts +20 -0
  79. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/types.js +2 -0
  80. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/utils/CLINKhandler.d.ts +0 -0
  81. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/utils/CLINKhandler.js +18 -0
  82. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/index.d.ts +1 -0
  83. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/index.js +8 -0
  84. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/index.d.ts +1 -0
  85. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/index.js +5 -0
  86. package/dist/src/sub/DynamicLayout/sections/CustomSection/hooks/index.d.ts +1 -0
  87. package/dist/src/sub/DynamicLayout/sections/CustomSection/hooks/index.js +5 -0
  88. package/dist/src/sub/DynamicLayout/sections/CustomSection/hooks/useIntersectionObserver.d.ts +6 -0
  89. package/dist/src/sub/DynamicLayout/sections/CustomSection/hooks/useIntersectionObserver.js +26 -0
  90. package/dist/src/sub/DynamicLayout/sections/CustomSection/index.d.ts +0 -1
  91. package/dist/src/sub/DynamicLayout/sections/CustomSection/newUtils/colorUtil.d.ts +31 -0
  92. package/dist/src/sub/DynamicLayout/sections/CustomSection/newUtils/colorUtil.js +66 -0
  93. package/dist/src/sub/DynamicLayout/sections/CustomSection/newUtils/index.d.ts +2 -0
  94. package/dist/src/sub/DynamicLayout/sections/CustomSection/newUtils/index.js +10 -0
  95. package/dist/src/sub/DynamicLayout/sections/CustomSection/newUtils/replaceUndefinedValues.d.ts +2 -0
  96. package/dist/src/sub/DynamicLayout/sections/CustomSection/newUtils/replaceUndefinedValues.js +46 -0
  97. package/dist/src/sub/DynamicLayout/sections/CustomSection/newUtils/textUtil.d.ts +18 -0
  98. package/dist/src/sub/DynamicLayout/sections/CustomSection/newUtils/textUtil.js +79 -0
  99. package/dist/src/sub/DynamicLayout/sections/CustomSection/types.d.ts +50 -99
  100. package/dist/src/sub/DynamicLayout/sections/CustomSection/types.js +11 -14
  101. package/dist/src/sub/DynamicLayout/sections/CustomSection/util/contentPropParsers/index.d.ts +3 -0
  102. package/dist/src/sub/DynamicLayout/sections/CustomSection/util/contentPropParsers/index.js +16 -0
  103. package/dist/src/sub/DynamicLayout/sections/CustomSection/util/contentPropParsers/parseContentVisibility.d.ts +12 -0
  104. package/dist/src/sub/DynamicLayout/sections/CustomSection/util/contentPropParsers/parseContentVisibility.js +18 -0
  105. package/dist/src/sub/DynamicLayout/sections/CustomSection/util/contentPropParsers/types.d.ts +5 -0
  106. package/dist/src/sub/DynamicLayout/sections/CustomSection/util/contentPropParsers/types.js +7 -0
  107. package/dist/src/sub/DynamicLayout/sections/CustomSection/util/effectPropParsers/constants.d.ts +4 -0
  108. package/dist/src/sub/DynamicLayout/sections/CustomSection/util/effectPropParsers/constants.js +46 -0
  109. package/dist/src/sub/DynamicLayout/sections/CustomSection/util/effectPropParsers/index.d.ts +3 -0
  110. package/dist/src/sub/DynamicLayout/sections/CustomSection/util/effectPropParsers/index.js +16 -0
  111. package/dist/src/sub/DynamicLayout/sections/CustomSection/util/effectPropParsers/parseEffectPropEntAnim.d.ts +19 -0
  112. package/dist/src/sub/DynamicLayout/sections/CustomSection/util/effectPropParsers/parseEffectPropEntAnim.js +51 -0
  113. package/dist/src/sub/DynamicLayout/sections/CustomSection/util/effectPropParsers/types.d.ts +5 -0
  114. package/dist/src/sub/DynamicLayout/sections/CustomSection/util/effectPropParsers/types.js +7 -0
  115. package/dist/src/sub/DynamicLayout/sections/CustomSection/util/index.d.ts +6 -0
  116. package/dist/src/sub/DynamicLayout/sections/CustomSection/util/index.js +18 -0
  117. package/dist/src/sub/DynamicLayout/sections/CustomSection/util/layoutPropParsers/index.d.ts +3 -0
  118. package/dist/src/sub/DynamicLayout/sections/CustomSection/util/layoutPropParsers/index.js +19 -0
  119. package/dist/src/sub/DynamicLayout/sections/CustomSection/util/layoutPropParsers/parseLayoutPropArrange.d.ts +24 -0
  120. package/dist/src/sub/DynamicLayout/sections/CustomSection/util/layoutPropParsers/parseLayoutPropArrange.js +80 -0
  121. package/dist/src/sub/DynamicLayout/sections/CustomSection/util/layoutPropParsers/parseLayoutPropPadding.d.ts +21 -0
  122. package/dist/src/sub/DynamicLayout/sections/CustomSection/util/layoutPropParsers/parseLayoutPropPadding.js +32 -0
  123. package/dist/src/sub/DynamicLayout/sections/CustomSection/util/layoutPropParsers/types.d.ts +7 -0
  124. package/dist/src/sub/DynamicLayout/sections/CustomSection/util/layoutPropParsers/types.js +8 -0
  125. package/dist/src/sub/DynamicLayout/sections/CustomSection/util/parseJsonProperties.d.ts +3 -0
  126. package/dist/src/sub/DynamicLayout/sections/CustomSection/util/parseJsonProperties.js +61 -0
  127. package/dist/src/sub/DynamicLayout/sections/CustomSection/util/parsePlacement.d.ts +20 -0
  128. package/dist/src/sub/DynamicLayout/sections/CustomSection/util/parsePlacement.js +46 -0
  129. package/dist/src/sub/DynamicLayout/sections/CustomSection/util/parseProperties.d.ts +5 -0
  130. package/dist/src/sub/DynamicLayout/sections/CustomSection/util/parseProperties.js +54 -0
  131. package/dist/src/sub/DynamicLayout/sections/CustomSection/util/stylePropParsers/index.d.ts +3 -0
  132. package/dist/src/sub/DynamicLayout/sections/CustomSection/util/stylePropParsers/index.js +41 -0
  133. package/dist/src/sub/DynamicLayout/sections/CustomSection/util/stylePropParsers/parseStylePropBgColor.d.ts +43 -0
  134. package/dist/src/sub/DynamicLayout/sections/CustomSection/util/stylePropParsers/parseStylePropBgColor.js +58 -0
  135. package/dist/src/sub/DynamicLayout/sections/CustomSection/util/stylePropParsers/parseStylePropBgImage.d.ts +19 -0
  136. package/dist/src/sub/DynamicLayout/sections/CustomSection/util/stylePropParsers/parseStylePropBgImage.js +118 -0
  137. package/dist/src/sub/DynamicLayout/sections/CustomSection/util/stylePropParsers/parseStylePropBgOverlay.d.ts +43 -0
  138. package/dist/src/sub/DynamicLayout/sections/CustomSection/util/stylePropParsers/parseStylePropBgOverlay.js +64 -0
  139. package/dist/src/sub/DynamicLayout/sections/CustomSection/util/stylePropParsers/parseStylePropBorder.d.ts +38 -0
  140. package/dist/src/sub/DynamicLayout/sections/CustomSection/util/stylePropParsers/parseStylePropBorder.js +73 -0
  141. package/dist/src/sub/DynamicLayout/sections/CustomSection/util/stylePropParsers/parseStylePropDivider.d.ts +26 -0
  142. package/dist/src/sub/DynamicLayout/sections/CustomSection/util/stylePropParsers/parseStylePropDivider.js +65 -0
  143. package/dist/src/sub/DynamicLayout/sections/CustomSection/util/stylePropParsers/parseStylePropImage.d.ts +19 -0
  144. package/dist/src/sub/DynamicLayout/sections/CustomSection/util/stylePropParsers/parseStylePropImage.js +118 -0
  145. package/dist/src/sub/DynamicLayout/sections/CustomSection/util/stylePropParsers/parseStylePropOpacity.d.ts +15 -0
  146. package/dist/src/sub/DynamicLayout/sections/CustomSection/util/stylePropParsers/parseStylePropOpacity.js +41 -0
  147. package/dist/src/sub/DynamicLayout/sections/CustomSection/util/stylePropParsers/parseStylePropShadow.d.ts +39 -0
  148. package/dist/src/sub/DynamicLayout/sections/CustomSection/util/stylePropParsers/parseStylePropShadow.js +46 -0
  149. package/dist/src/sub/DynamicLayout/sections/CustomSection/util/stylePropParsers/parseStylePropTextSpec.d.ts +39 -0
  150. package/dist/src/sub/DynamicLayout/sections/CustomSection/util/stylePropParsers/parseStylePropTextSpec.js +80 -0
  151. package/dist/src/sub/DynamicLayout/sections/CustomSection/util/stylePropParsers/types.d.ts +22 -0
  152. package/dist/src/sub/DynamicLayout/sections/CustomSection/util/stylePropParsers/types.js +16 -0
  153. package/dist/src/sub/DynamicLayout/sections/CustomSection/util/types.d.ts +134 -0
  154. package/dist/src/sub/DynamicLayout/sections/CustomSection/util/types.js +2 -0
  155. package/dist/src/sub/DynamicLayout/sections/index.d.ts +1 -0
  156. package/dist/src/sub/DynamicLayout/sections/index.js +3 -1
  157. package/dist/src/sub/DynamicLayout/types.d.ts +70 -4
  158. package/package.json +2 -4
  159. package/release-note.md +2 -3
  160. package/dist/src/sub/DynamicLayout/components/Box.d.ts +0 -13
  161. package/dist/src/sub/DynamicLayout/components/Box.js +0 -73
  162. package/dist/src/sub/DynamicLayout/custonSectionSampleData.d.ts +0 -334
  163. package/dist/src/sub/DynamicLayout/custonSectionSampleData.js +0 -328
  164. package/dist/src/sub/DynamicLayout/sections/CustomSection/BlockMatcher/BlockMatcher.d.ts +0 -11
  165. package/dist/src/sub/DynamicLayout/sections/CustomSection/BlockMatcher/BlockMatcher.js +0 -86
  166. package/dist/src/sub/DynamicLayout/sections/CustomSection/BlockMatcher/blocks/Accordion.d.ts +0 -12
  167. package/dist/src/sub/DynamicLayout/sections/CustomSection/BlockMatcher/blocks/Accordion.js +0 -46
  168. package/dist/src/sub/DynamicLayout/sections/CustomSection/BlockMatcher/blocks/AccordionCore/AccordionBody.d.ts +0 -8
  169. package/dist/src/sub/DynamicLayout/sections/CustomSection/BlockMatcher/blocks/AccordionCore/AccordionBody.js +0 -74
  170. package/dist/src/sub/DynamicLayout/sections/CustomSection/BlockMatcher/blocks/AccordionCore/AccordionCore.d.ts +0 -13
  171. package/dist/src/sub/DynamicLayout/sections/CustomSection/BlockMatcher/blocks/AccordionCore/AccordionCore.js +0 -25
  172. package/dist/src/sub/DynamicLayout/sections/CustomSection/BlockMatcher/blocks/AccordionCore/AccordionHeader.d.ts +0 -7
  173. package/dist/src/sub/DynamicLayout/sections/CustomSection/BlockMatcher/blocks/AccordionCore/AccordionHeader.js +0 -49
  174. package/dist/src/sub/DynamicLayout/sections/CustomSection/BlockMatcher/blocks/AccordionCore/AccordionItem.d.ts +0 -7
  175. package/dist/src/sub/DynamicLayout/sections/CustomSection/BlockMatcher/blocks/AccordionCore/AccordionItem.js +0 -19
  176. package/dist/src/sub/DynamicLayout/sections/CustomSection/BlockMatcher/blocks/AccordionCore/index.d.ts +0 -4
  177. package/dist/src/sub/DynamicLayout/sections/CustomSection/BlockMatcher/blocks/AccordionCore/index.js +0 -14
  178. package/dist/src/sub/DynamicLayout/sections/CustomSection/BlockMatcher/blocks/Button.d.ts +0 -8
  179. package/dist/src/sub/DynamicLayout/sections/CustomSection/BlockMatcher/blocks/ContentsCarousel/CardItem.d.ts +0 -9
  180. package/dist/src/sub/DynamicLayout/sections/CustomSection/BlockMatcher/blocks/ContentsCarousel/CardItem.js +0 -34
  181. package/dist/src/sub/DynamicLayout/sections/CustomSection/BlockMatcher/blocks/ContentsCarousel/ContentsCarousel.d.ts +0 -28
  182. package/dist/src/sub/DynamicLayout/sections/CustomSection/BlockMatcher/blocks/ContentsCarousel/ContentsCarousel.js +0 -53
  183. package/dist/src/sub/DynamicLayout/sections/CustomSection/BlockMatcher/blocks/Divider.d.ts +0 -7
  184. package/dist/src/sub/DynamicLayout/sections/CustomSection/BlockMatcher/blocks/Divider.js +0 -29
  185. package/dist/src/sub/DynamicLayout/sections/CustomSection/BlockMatcher/blocks/Image.d.ts +0 -7
  186. package/dist/src/sub/DynamicLayout/sections/CustomSection/BlockMatcher/blocks/Image.js +0 -18
  187. package/dist/src/sub/DynamicLayout/sections/CustomSection/BlockMatcher/blocks/ImageCarousel/ImageCarousel.d.ts +0 -16
  188. package/dist/src/sub/DynamicLayout/sections/CustomSection/BlockMatcher/blocks/ImageCarousel/ImageCarousel.js +0 -41
  189. package/dist/src/sub/DynamicLayout/sections/CustomSection/BlockMatcher/blocks/Instagram.d.ts +0 -7
  190. package/dist/src/sub/DynamicLayout/sections/CustomSection/BlockMatcher/blocks/Instagram.js +0 -19
  191. package/dist/src/sub/DynamicLayout/sections/CustomSection/BlockMatcher/blocks/RichText.d.ts +0 -7
  192. package/dist/src/sub/DynamicLayout/sections/CustomSection/BlockMatcher/blocks/RichText.js +0 -9
  193. package/dist/src/sub/DynamicLayout/sections/CustomSection/BlockMatcher/blocks/Text.d.ts +0 -7
  194. package/dist/src/sub/DynamicLayout/sections/CustomSection/BlockMatcher/blocks/Text.js +0 -29
  195. package/dist/src/sub/DynamicLayout/sections/CustomSection/BlockMatcher/blocks/Twitter.d.ts +0 -7
  196. package/dist/src/sub/DynamicLayout/sections/CustomSection/BlockMatcher/blocks/Twitter.js +0 -30
  197. package/dist/src/sub/DynamicLayout/sections/CustomSection/BlockMatcher/blocks/Youtube.d.ts +0 -9
  198. package/dist/src/sub/DynamicLayout/sections/CustomSection/BlockMatcher/blocks/Youtube.js +0 -38
  199. package/dist/src/sub/DynamicLayout/sections/CustomSection/BlockMatcher/blocks/index.d.ts +0 -9
  200. package/dist/src/sub/DynamicLayout/sections/CustomSection/BlockMatcher/blocks/index.js +0 -24
  201. package/dist/src/sub/DynamicLayout/sections/CustomSection/BlockMatcher/index.d.ts +0 -1
  202. package/dist/src/sub/DynamicLayout/sections/CustomSection/BlockMatcher/index.js +0 -8
@@ -0,0 +1,58 @@
1
+ "use strict";
2
+ var __assign = (this && this.__assign) || function () {
3
+ __assign = Object.assign || function(t) {
4
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
5
+ s = arguments[i];
6
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
7
+ t[p] = s[p];
8
+ }
9
+ return t;
10
+ };
11
+ return __assign.apply(this, arguments);
12
+ };
13
+ var __importDefault = (this && this.__importDefault) || function (mod) {
14
+ return (mod && mod.__esModule) ? mod : { "default": mod };
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ var jsx_runtime_1 = require("react/jsx-runtime");
18
+ /* eslint-disable react/destructuring-assignment */
19
+ var react_1 = require("react");
20
+ var hooks_1 = require("../../../hooks");
21
+ var textUtil_1 = require("../../../newUtils/textUtil");
22
+ var util_1 = require("../../../util");
23
+ var S_CB_Box_1 = require("./components/S_CB_Box");
24
+ var S_HiddenCover_1 = require("./components/S_HiddenCover");
25
+ var useCLINK_1 = __importDefault(require("./hooks/useCLINK"));
26
+ function Text(props) {
27
+ // const { device, mode } = useContext(dynamicLayoutContext);
28
+ var _a = props.CB_CONTENT_PROP_CLINK, CB_CONTENT_PROP_CLINK_SPEC_SRC = _a.CB_CONTENT_PROP_CLINK_SPEC_SRC, CB_CONTENT_PROP_CLINK_SPEC_TYPE = _a.CB_CONTENT_PROP_CLINK_SPEC_TYPE, CB_CONTENT_PROP_CLINK_SPEC_NEWTAB = _a.CB_CONTENT_PROP_CLINK_SPEC_NEWTAB;
29
+ var onClickBox = (0, useCLINK_1.default)({
30
+ src: CB_CONTENT_PROP_CLINK_SPEC_SRC,
31
+ type: CB_CONTENT_PROP_CLINK_SPEC_TYPE,
32
+ openNewTab: CB_CONTENT_PROP_CLINK_SPEC_NEWTAB
33
+ });
34
+ var _b = getTextStyles(props.CB_STYLE_PROP_TEXT, 'DESKTOP'), style = _b.style, hoverStyle = _b.hoverStyle;
35
+ var _c = (0, util_1.parseProperties)(props, 'DESKTOP'), prosStyle = _c.style, propsHoverStyle = _c.hoverStyle, layoutStyle = _c.layout, effect = _c.effect;
36
+ var mode = 'EDIT';
37
+ var isEditModeAndHidden = prosStyle.visibility === 'hidden' && mode === 'EDIT';
38
+ if (mode === 'EDIT') {
39
+ prosStyle.visibility = 'visible';
40
+ }
41
+ var cbRef = (0, react_1.useRef)(null);
42
+ var entry = (0, hooks_1.useIntersectionObserver)(cbRef, { threshold: 1, freezeOnceVisible: true });
43
+ var isVisible = !!(entry === null || entry === void 0 ? void 0 : entry.isIntersecting);
44
+ var effectCssProperties = isVisible ? effect : {};
45
+ return ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [isEditModeAndHidden && (0, jsx_runtime_1.jsx)(S_HiddenCover_1.S_HiddenCover, {}, void 0), (0, jsx_runtime_1.jsx)(S_CB_Box_1.S_CB_Box, __assign({ className: "cb-layout-box", normalStyle: __assign(__assign(__assign(__assign({}, style), prosStyle), layoutStyle), effectCssProperties), hoverStyle: __assign(__assign({}, hoverStyle), propsHoverStyle), onClick: onClickBox, ref: cbRef }, { children: props.CB_CONTENT_PROP_TEXT.CB_CONTENT_PROP_TEXT_SPEC_TEXT }), void 0)] }, void 0));
46
+ }
47
+ function getTextStyles(props, device) {
48
+ var availableSpecCodes = [
49
+ 'CB_STYLE_PROP_TEXT_SPEC_TYPEFACE',
50
+ 'CB_STYLE_PROP_TEXT_SPEC_WEIGHT',
51
+ 'CB_STYLE_PROP_TEXT_SPEC_SIZE',
52
+ 'CB_STYLE_PROP_TEXT_SPEC_LINEHEIGHT',
53
+ 'CB_STYLE_PROP_TEXT_SPEC_LETTERSPACING',
54
+ 'CB_STYLE_PROP_TEXT_SPEC_COLOR'
55
+ ];
56
+ return (0, textUtil_1.parseStyleTextToCSSProp)({ availableSpecCodes: availableSpecCodes, props: props, device: device, propKey: 'TEXT' });
57
+ }
58
+ exports.default = Text;
@@ -0,0 +1,10 @@
1
+ /// <reference types="react" />
2
+ import type { CB_TWITTER_PROPERTIES_TYPE, DefaultBrightTheme } from '../../../util/types';
3
+ declare type Props = CB_TWITTER_PROPERTIES_TYPE;
4
+ declare function Twitter(props: Props): JSX.Element;
5
+ export declare type TwitterPropsKeys = keyof CB_TWITTER_STYLE_PROPS;
6
+ export declare type CB_TWITTER_STYLE_PROPS = {
7
+ CB_STYLE_PROP_TWITTER_SPEC_THEME: DefaultBrightTheme;
8
+ 'CB_STYLE_PROP_TWITTER_SPEC_THEME:MOBILE': DefaultBrightTheme | undefined;
9
+ };
10
+ export default Twitter;
@@ -0,0 +1,41 @@
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 jsx_runtime_1 = require("react/jsx-runtime");
15
+ var react_1 = require("react");
16
+ var ComponentBlocks_1 = require("../../../../../../DynamicLayout/components/ComponentBlocks");
17
+ var hooks_1 = require("../../../hooks");
18
+ var util_1 = require("../../../util");
19
+ var S_CB_Box_1 = require("./components/S_CB_Box");
20
+ function Twitter(props) {
21
+ // const { device, mode } = useContext(dynamicLayoutContext);
22
+ 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;
23
+ var _a = (0, util_1.parseProperties)(props, 'DESKTOP'), style = _a.style, hoverStyle = _a.hoverStyle, layout = _a.layout, effect = _a.effect;
24
+ var userId = CB_CONTENT_PROP_TWITTER_SPEC_SRC.replace('https://twitter.com/', '');
25
+ var theme = CB_STYLE_PROP_TWITTER_SPEC_THEME.toLowerCase();
26
+ if ('display' in layout) {
27
+ delete layout.display;
28
+ }
29
+ if ('alignItems' in layout) {
30
+ delete layout.alignItems;
31
+ }
32
+ if ('justifyContent' in layout) {
33
+ delete layout.justifyContent;
34
+ }
35
+ var cbRef = (0, react_1.useRef)(null);
36
+ var entry = (0, hooks_1.useIntersectionObserver)(cbRef, { threshold: 1, freezeOnceVisible: true });
37
+ var isVisible = !!(entry === null || entry === void 0 ? void 0 : entry.isIntersecting);
38
+ var effectCssProperties = isVisible ? effect : {};
39
+ return ((0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, { children: (0, jsx_runtime_1.jsx)(S_CB_Box_1.S_CB_Box, __assign({ className: "cb-layout-box", normalStyle: __assign(__assign(__assign(__assign({}, style), layout), effectCssProperties), { overflowY: 'auto' }), hoverStyle: hoverStyle, ref: cbRef }, { children: (0, jsx_runtime_1.jsx)(ComponentBlocks_1.TwitterTimeline, { userId: userId, theme: theme }, void 0) }), void 0) }, void 0));
40
+ }
41
+ exports.default = Twitter;
@@ -0,0 +1,5 @@
1
+ /// <reference types="react" />
2
+ import type { CB_YOUTUBE_PROPERTIES_TYPE } from '../../../../../../../DynamicLayout/sections/CustomSection/util/types';
3
+ declare type Props = CB_YOUTUBE_PROPERTIES_TYPE;
4
+ declare function Youtube(props: Props): JSX.Element;
5
+ export default Youtube;
@@ -0,0 +1,69 @@
1
+ "use strict";
2
+ var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cooked, raw) {
3
+ if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
4
+ return cooked;
5
+ };
6
+ var __assign = (this && this.__assign) || function () {
7
+ __assign = Object.assign || function(t) {
8
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
9
+ s = arguments[i];
10
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
11
+ t[p] = s[p];
12
+ }
13
+ return t;
14
+ };
15
+ return __assign.apply(this, arguments);
16
+ };
17
+ var __importDefault = (this && this.__importDefault) || function (mod) {
18
+ return (mod && mod.__esModule) ? mod : { "default": mod };
19
+ };
20
+ Object.defineProperty(exports, "__esModule", { value: true });
21
+ var jsx_runtime_1 = require("react/jsx-runtime");
22
+ var react_1 = require("react");
23
+ var hooks_1 = require("../../../../../../../DynamicLayout/sections/CustomSection/hooks");
24
+ var colorUtil_1 = require("../../../../../../../DynamicLayout/sections/CustomSection/newUtils/colorUtil");
25
+ var util_1 = require("../../../../../../../DynamicLayout/sections/CustomSection/util");
26
+ var styled_components_1 = __importDefault(require("styled-components"));
27
+ var S_CB_Box_1 = require("../components/S_CB_Box");
28
+ var S_HiddenCover_1 = require("../components/S_HiddenCover");
29
+ var parseYoutubeContentProp_1 = __importDefault(require("./parseYoutubeContentProp"));
30
+ function Youtube(props) {
31
+ // const { device, mode } = useContext(dynamicLayoutContext);
32
+ var CB_CONTENT_PROP_YOUTUBE = props.CB_CONTENT_PROP_YOUTUBE, CB_STYLE_PROP_BGCOLOR = props.CB_STYLE_PROP_BGCOLOR;
33
+ var _a = (0, parseYoutubeContentProp_1.default)(CB_CONTENT_PROP_YOUTUBE), youtubeSrc = _a.youtubeSrc, thumbnailSrc = _a.thumbnailSrc, id = _a.id;
34
+ var isEditMode = false;
35
+ var _b = getBGColorStyles(CB_STYLE_PROP_BGCOLOR, 'DESKTOP'), bgColorStyle = _b.style, bgColorHoverStyle = _b.hoverStyle;
36
+ var _c = (0, util_1.parseProperties)(props, 'DESKTOP'), propsStyle = _c.style, propsHoverStyle = _c.hoverStyle, layoutStyle = _c.layout, effect = _c.effect;
37
+ var mode = 'EDIT';
38
+ var isEditModeAndHidden = propsStyle.visibility === 'hidden' && mode === 'EDIT';
39
+ if (mode === 'EDIT') {
40
+ propsStyle.visibility = 'visible';
41
+ }
42
+ var cbRef = (0, react_1.useRef)(null);
43
+ var entry = (0, hooks_1.useIntersectionObserver)(cbRef, { threshold: 1, freezeOnceVisible: true });
44
+ var isVisible = !!(entry === null || entry === void 0 ? void 0 : entry.isIntersecting);
45
+ var effectCssProperties = isVisible ? effect : {};
46
+ return ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [isEditModeAndHidden && (0, jsx_runtime_1.jsx)(S_HiddenCover_1.S_HiddenCover, {}, void 0), (0, jsx_runtime_1.jsx)(S_CB_Box_1.S_CB_Box, __assign({ className: "cb-layout-box", normalStyle: __assign(__assign(__assign(__assign({}, propsStyle), layoutStyle), effectCssProperties), bgColorStyle), hoverStyle: __assign(__assign({}, propsHoverStyle), bgColorHoverStyle), ref: cbRef }, { children: isEditMode ? ((0, jsx_runtime_1.jsxs)(S_ThumbnailBox, { children: [(0, jsx_runtime_1.jsx)(YoutubeButton, {}, void 0), (0, jsx_runtime_1.jsx)(S_Thumbnail, { src: thumbnailSrc }, void 0)] }, void 0)) : ((0, jsx_runtime_1.jsx)(S_Iframe, { title: id, src: youtubeSrc, allow: "accelerometer; encrypted-media; gyroscope; picture-in-picture" }, void 0)) }), void 0)] }, void 0));
47
+ }
48
+ function getBGColorStyles(props, device) {
49
+ var availableSpecCodes = [
50
+ 'CB_STYLE_PROP_BGCOLOR_SPEC_ANGLE',
51
+ 'CB_STYLE_PROP_BGCOLOR_SPEC_COLOR',
52
+ 'CB_STYLE_PROP_BGCOLOR_SPEC_ENDCOLOR',
53
+ 'CB_STYLE_PROP_BGCOLOR_SPEC_ENDLOC',
54
+ 'CB_STYLE_PROP_BGCOLOR_SPEC_GRADIENT',
55
+ 'CB_STYLE_PROP_BGCOLOR_SPEC_STARTCOLOR',
56
+ 'CB_STYLE_PROP_BGCOLOR_SPEC_STARTLOC',
57
+ 'CB_STYLE_PROP_BGCOLOR_SPEC_TYPE'
58
+ ];
59
+ return (0, colorUtil_1.parseStyleColorToCSSProp)({ availableSpecCodes: availableSpecCodes, props: props, propKey: 'BGCOLOR', device: device });
60
+ }
61
+ var S_ThumbnailBox = styled_components_1.default.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n align-items: center;\n display: flex;\n height: 100%;\n justify-content: center;\n position: relative;\n width: 100%;\n"], ["\n align-items: center;\n display: flex;\n height: 100%;\n justify-content: center;\n position: relative;\n width: 100%;\n"])));
62
+ var S_Thumbnail = styled_components_1.default.img(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n height: 100%;\n width: 100%;\n"], ["\n height: 100%;\n width: 100%;\n"])));
63
+ var S_Iframe = styled_components_1.default.iframe(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n border: none;\n height: 100%;\n width: 100%;\n"], ["\n border: none;\n height: 100%;\n width: 100%;\n"])));
64
+ var S_YoutubeButton = styled_components_1.default.div(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\n height: 48px;\n margin: auto;\n position: absolute;\n width: 68px;\n"], ["\n height: 48px;\n margin: auto;\n position: absolute;\n width: 68px;\n"])));
65
+ function YoutubeButton() {
66
+ return ((0, jsx_runtime_1.jsx)(S_YoutubeButton, { children: (0, jsx_runtime_1.jsxs)("svg", __assign({ height: "100%", version: "1.1", viewBox: "0 0 68 48", width: "100%" }, { children: [(0, jsx_runtime_1.jsx)("path", { className: "ytp-large-play-button-bg", d: "M66.52,7.74c-0.78-2.93-2.49-5.41-5.42-6.19C55.79,.13,34,0,34,0S12.21,.13,6.9,1.55 C3.97,2.33,2.27,4.81,1.48,7.74C0.06,13.05,0,24,0,24s0.06,10.95,1.48,16.26c0.78,2.93,2.49,5.41,5.42,6.19 C12.21,47.87,34,48,34,48s21.79-0.13,27.1-1.55c2.93-0.78,4.64-3.26,5.42-6.19C67.94,34.95,68,24,68,24S67.94,13.05,66.52,7.74z", fill: "#f00" }, void 0), (0, jsx_runtime_1.jsx)("path", { d: "M 45,24 27,14 27,34", fill: "#fff" }, void 0)] }), void 0) }, void 0));
67
+ }
68
+ exports.default = Youtube;
69
+ var templateObject_1, templateObject_2, templateObject_3, templateObject_4;
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.Youtube = void 0;
7
+ var Youtube_1 = require("./Youtube");
8
+ Object.defineProperty(exports, "Youtube", { enumerable: true, get: function () { return __importDefault(Youtube_1).default; } });
@@ -0,0 +1,7 @@
1
+ import type { CB_CONTENT_PROP_YOUTUBE_TYPE } from './types';
2
+ declare function parseYoutubeContentProp(props: CB_CONTENT_PROP_YOUTUBE_TYPE): {
3
+ id: string;
4
+ youtubeSrc: string;
5
+ thumbnailSrc: string;
6
+ };
7
+ export default parseYoutubeContentProp;
@@ -0,0 +1,33 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ function parseYoutubeContentProp(props) {
4
+ var id = getYoutubeId(props.CB_CONTENT_PROP_YOUTUBE_SPEC_SRC);
5
+ var start = props.CB_CONTENT_PROP_YOUTUBE_SPEC_STARTTIME;
6
+ var end = props.CB_CONTENT_PROP_YOUTUBE_SPEC_ENDTIME;
7
+ if (!id) {
8
+ return {
9
+ id: 'no-id',
10
+ youtubeSrc: '',
11
+ thumbnailSrc: ''
12
+ };
13
+ }
14
+ return {
15
+ id: id,
16
+ youtubeSrc: getEmbedUrl(id, start, end),
17
+ thumbnailSrc: getThumbnailUrl(id)
18
+ };
19
+ }
20
+ function getYoutubeId(src) {
21
+ var _a;
22
+ var embedUrl = src.match(/youtube\.com.*(\?v=|\/embed\/)(.{11})/);
23
+ var shareUrl = src.match(/youtu.be\/(.{11})/);
24
+ var shortsUrl = src.match(/youtube\.com\/shorts\/(.{11})/);
25
+ return (_a = (embedUrl || shareUrl || shortsUrl)) === null || _a === void 0 ? void 0 : _a.pop();
26
+ }
27
+ function getThumbnailUrl(id) {
28
+ return "https://img.youtube.com/vi/" + id + "/0.jpg";
29
+ }
30
+ function getEmbedUrl(id, start, end) {
31
+ return "https://www.youtube.com/embed/" + id + "?start=" + start + "&end=" + end;
32
+ }
33
+ exports.default = parseYoutubeContentProp;
@@ -0,0 +1,48 @@
1
+ import type { ENUM_STRING, NUMBER_INTEGER } from '../../../../../../../DynamicLayout/sections/CustomSection/util/types';
2
+ export declare type CB_CONTENT_PROP_YOUTUBE_TYPE = {
3
+ CB_CONTENT_PROP_YOUTUBE_SPEC_ENDTIME: number;
4
+ CB_CONTENT_PROP_YOUTUBE_SPEC_MPLAY: boolean;
5
+ CB_CONTENT_PROP_YOUTUBE_SPEC_REPLAY: boolean;
6
+ CB_CONTENT_PROP_YOUTUBE_SPEC_SRC: string;
7
+ CB_CONTENT_PROP_YOUTUBE_SPEC_STARTTIME: number;
8
+ };
9
+ export declare type CB_STYLE_PROP_BGCOLOR_ENUM_GRADIENT = 'LINEAR' | 'RADIAL';
10
+ export declare type CB_STYLE_PROP_BGCOLOR_ENUM_TYPE = 'NONE' | 'SOLID' | 'GRADIENT';
11
+ export declare type CB_STYLE_PROP_BGCOLOR_SPECS_BASE = {
12
+ CB_STYLE_PROP_BGCOLOR_SPEC_ANGLE: NUMBER_INTEGER;
13
+ CB_STYLE_PROP_BGCOLOR_SPEC_COLOR: ENUM_STRING;
14
+ CB_STYLE_PROP_BGCOLOR_SPEC_ENDCOLOR: ENUM_STRING;
15
+ CB_STYLE_PROP_BGCOLOR_SPEC_ENDLOC: NUMBER_INTEGER;
16
+ CB_STYLE_PROP_BGCOLOR_SPEC_GRADIENT: ENUM_STRING;
17
+ CB_STYLE_PROP_BGCOLOR_SPEC_STARTCOLOR: ENUM_STRING;
18
+ CB_STYLE_PROP_BGCOLOR_SPEC_STARTLOC: NUMBER_INTEGER;
19
+ CB_STYLE_PROP_BGCOLOR_SPEC_TYPE: ENUM_STRING;
20
+ };
21
+ export declare type CB_STYLE_PROP_BGCOLOR_SPECS = CB_STYLE_PROP_BGCOLOR_SPECS_BASE & {
22
+ 'CB_STYLE_PROP_BGCOLOR_SPEC_ANGLE:HOVER': NUMBER_INTEGER;
23
+ 'CB_STYLE_PROP_BGCOLOR_SPEC_ANGLE:MOBILE': NUMBER_INTEGER | undefined | null;
24
+ 'CB_STYLE_PROP_BGCOLOR_SPEC_ANGLE:MOBILE:HOVER': NUMBER_INTEGER | undefined | null;
25
+ 'CB_STYLE_PROP_BGCOLOR_SPEC_COLOR:HOVER': ENUM_STRING;
26
+ 'CB_STYLE_PROP_BGCOLOR_SPEC_COLOR:MOBILE': ENUM_STRING | undefined | null;
27
+ 'CB_STYLE_PROP_BGCOLOR_SPEC_COLOR:MOBILE:HOVER': ENUM_STRING | undefined | null;
28
+ 'CB_STYLE_PROP_BGCOLOR_SPEC_ENDCOLOR:HOVER': ENUM_STRING;
29
+ 'CB_STYLE_PROP_BGCOLOR_SPEC_ENDCOLOR:MOBILE': ENUM_STRING | undefined | null;
30
+ 'CB_STYLE_PROP_BGCOLOR_SPEC_ENDCOLOR:MOBILE:HOVER': ENUM_STRING | undefined | null;
31
+ 'CB_STYLE_PROP_BGCOLOR_SPEC_ENDLOC:HOVER': NUMBER_INTEGER;
32
+ 'CB_STYLE_PROP_BGCOLOR_SPEC_ENDLOC:MOBILE': NUMBER_INTEGER | undefined | null;
33
+ 'CB_STYLE_PROP_BGCOLOR_SPEC_ENDLOC:MOBILE:HOVER': NUMBER_INTEGER | undefined | null;
34
+ 'CB_STYLE_PROP_BGCOLOR_SPEC_GRADIENT:HOVER': ENUM_STRING;
35
+ 'CB_STYLE_PROP_BGCOLOR_SPEC_GRADIENT:MOBILE': ENUM_STRING | undefined | null;
36
+ 'CB_STYLE_PROP_BGCOLOR_SPEC_GRADIENT:MOBILE:HOVER': ENUM_STRING | undefined | null;
37
+ 'CB_STYLE_PROP_BGCOLOR_SPEC_STARTCOLOR:HOVER': ENUM_STRING;
38
+ 'CB_STYLE_PROP_BGCOLOR_SPEC_STARTCOLOR:MOBILE': ENUM_STRING | undefined | null;
39
+ 'CB_STYLE_PROP_BGCOLOR_SPEC_STARTCOLOR:MOBILE:HOVER': ENUM_STRING | undefined | null;
40
+ 'CB_STYLE_PROP_BGCOLOR_SPEC_STARTLOC:HOVER': NUMBER_INTEGER;
41
+ 'CB_STYLE_PROP_BGCOLOR_SPEC_STARTLOC:MOBILE': NUMBER_INTEGER | undefined | null;
42
+ 'CB_STYLE_PROP_BGCOLOR_SPEC_STARTLOC:MOBILE:HOVER': NUMBER_INTEGER | undefined | null;
43
+ 'CB_STYLE_PROP_BGCOLOR_SPEC_TYPE:HOVER': ENUM_STRING;
44
+ 'CB_STYLE_PROP_BGCOLOR_SPEC_TYPE:MOBILE': ENUM_STRING | undefined | null;
45
+ 'CB_STYLE_PROP_BGCOLOR_SPEC_TYPE:MOBILE:HOVER': ENUM_STRING | undefined | null;
46
+ };
47
+ export declare type BGColorPropsKeys = keyof CB_STYLE_PROP_BGCOLOR_SPECS;
48
+ export declare type BGColorValueSetType = Partial<Record<keyof CB_STYLE_PROP_BGCOLOR_SPECS, NUMBER_INTEGER | ENUM_STRING | undefined>>;
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,2 @@
1
+ import type { StylesProps } from '../types';
2
+ export declare const S_CB_Box: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, StylesProps, never>;
@@ -34,18 +34,13 @@ var __importStar = (this && this.__importStar) || function (mod) {
34
34
  return result;
35
35
  };
36
36
  Object.defineProperty(exports, "__esModule", { value: true });
37
- var jsx_runtime_1 = require("react/jsx-runtime");
37
+ exports.S_CB_Box = void 0;
38
38
  var styled_components_1 = __importStar(require("styled-components"));
39
- function Button(_a) {
40
- var text = _a.text, style = _a.style, hoverStyle = _a.hoverStyle;
41
- return ((0, jsx_runtime_1.jsx)(S_Button, __assign({ hoverStyle: hoverStyle, compoStyle: style, type: "button" }, { children: text }), void 0));
42
- }
43
- var S_Button = styled_components_1.default.button(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n all: unset;\n height: 100%;\n text-align: center;\n width: 100%;\n\n ", ";\n\n &:hover {\n transition: all 0.15s ease-out;\n ", ";\n }\n"], ["\n all: unset;\n height: 100%;\n text-align: center;\n width: 100%;\n\n ", ";\n\n &:hover {\n transition: all 0.15s ease-out;\n ", ";\n }\n"])), function (_a) {
44
- var compoStyle = _a.compoStyle;
45
- return compoStyle && (0, styled_components_1.css)(__assign({}, compoStyle));
39
+ exports.S_CB_Box = styled_components_1.default.div(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n /*\n Introduced in IE 10.\n See http://ie.microsoft.com/testdrive/HTML5/msUserSelect/\n */\n\n height: 100%;\n overflow: hidden;\n width: 100%;\n\n ", ";\n\n &:hover {\n ", ";\n }\n"], ["\n /*\n Introduced in IE 10.\n See http://ie.microsoft.com/testdrive/HTML5/msUserSelect/\n */\n\n height: 100%;\n overflow: hidden;\n width: 100%;\n\n ", ";\n\n &:hover {\n ", ";\n }\n"])), function (_a) {
40
+ var normalStyle = _a.normalStyle;
41
+ return (0, styled_components_1.css)(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n ", "\n "], ["\n ", "\n "])), __assign({}, normalStyle));
46
42
  }, function (_a) {
47
43
  var hoverStyle = _a.hoverStyle;
48
- return hoverStyle && (0, styled_components_1.css)(__assign({}, hoverStyle));
44
+ return (0, styled_components_1.css)(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n ", "\n "], ["\n ", "\n "])), __assign({}, hoverStyle));
49
45
  });
50
- exports.default = Button;
51
- var templateObject_1;
46
+ var templateObject_1, templateObject_2, templateObject_3;
@@ -0,0 +1 @@
1
+ export declare const S_HiddenCover: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
@@ -0,0 +1,13 @@
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 __importDefault = (this && this.__importDefault) || function (mod) {
7
+ return (mod && mod.__esModule) ? mod : { "default": mod };
8
+ };
9
+ Object.defineProperty(exports, "__esModule", { value: true });
10
+ exports.S_HiddenCover = void 0;
11
+ var styled_components_1 = __importDefault(require("styled-components"));
12
+ exports.S_HiddenCover = styled_components_1.default.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n background: repeating-linear-gradient(\n -60deg,\n #ffffff26,\n #ffffff26 12px,\n #0000001a 12px,\n #0000001a 25px\n );\n height: 100%;\n pointer-events: none;\n position: absolute;\n width: 100%;\n"], ["\n background: repeating-linear-gradient(\n -60deg,\n #ffffff26,\n #ffffff26 12px,\n #0000001a 12px,\n #0000001a 25px\n );\n height: 100%;\n pointer-events: none;\n position: absolute;\n width: 100%;\n"])));
13
+ var templateObject_1;
@@ -0,0 +1,8 @@
1
+ import type { CB_CONTENT_PROP_CLINK } from '../types';
2
+ declare type Props = {
3
+ src: string;
4
+ openNewTab: boolean;
5
+ type: CB_CONTENT_PROP_CLINK['CB_CONTENT_PROP_CLINK_SPEC_TYPE'];
6
+ };
7
+ export default function useCLINK(props: Props): () => void;
8
+ export {};
@@ -0,0 +1,24 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ var react_1 = require("react");
4
+ var dynamicLayoutContext_1 = require("../../../../../../../DynamicLayout/dynamicLayoutContext");
5
+ // NOTE: link기능은 탄력적일 필요가 없음.
6
+ function useCLINK(props) {
7
+ var src = props.src, openNewTab = props.openNewTab, type = props.type;
8
+ var navigationHandler = (0, react_1.useContext)(dynamicLayoutContext_1.dynamicLayoutContext).navigationHandler;
9
+ var navType = type === 'INTERNAL' ? 'INTERNAL_LINK' : 'WEB_LINK';
10
+ function onClickCLINK() {
11
+ // NOTE: EDIT 모드에서는 작동 안해야함. cursor..?
12
+ if (openNewTab) {
13
+ window.open(src, '_blank', 'noopener');
14
+ return;
15
+ }
16
+ if (typeof navigationHandler === 'function') {
17
+ navigationHandler(navType, src);
18
+ return;
19
+ }
20
+ // NOTE: error or do other action.
21
+ }
22
+ return onClickCLINK;
23
+ }
24
+ exports.default = useCLINK;
@@ -0,0 +1,20 @@
1
+ /// <reference types="react" />
2
+ import type { STRING_PLAIN } from '../../../util/types';
3
+ export declare type StylesProps = {
4
+ normalStyle: React.CSSProperties;
5
+ hoverStyle: React.CSSProperties;
6
+ };
7
+ export declare type CB_CONTENT_PROP_TEXT = {
8
+ CB_CONTENT_PROP_TEXT_SPEC_TEXT: STRING_PLAIN;
9
+ };
10
+ export declare type CB_CONTENT_PROP_CLINK = {
11
+ CB_CONTENT_PROP_CLINK_SPEC_TYPE: 'INTERNAL' | 'EXTERNAL';
12
+ CB_CONTENT_PROP_CLINK_SPEC_SRC: STRING_PLAIN;
13
+ CB_CONTENT_PROP_CLINK_SPEC_NEWTAB: boolean;
14
+ };
15
+ export declare type CB_CONTENT_PROP_IMAGE = {
16
+ CB_CONTENT_PROP_IMAGE_SPEC_SELECTOR: STRING_PLAIN;
17
+ };
18
+ export declare type CB_CONTENT_PROP_TWITTER = {
19
+ CB_CONTENT_PROP_TWITTER_SPEC_SRC: STRING_PLAIN;
20
+ };
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,18 @@
1
+ // import React from 'react';
2
+ // import type { CB_CONTENT_PROP_CLINK } from '../types';
3
+ // import type { Link } from 'react-router-dom';
4
+ // function CLINKhandler({
5
+ // src,
6
+ // openNewTab,
7
+ // type
8
+ // }: {
9
+ // src: string;
10
+ // openNewTab: boolean;
11
+ // type: CB_CONTENT_PROP_CLINK['CB_CONTENT_PROP_CLINK_SPEC_TYPE'];
12
+ // }) {
13
+ // function onClickCLINK() {
14
+ // <Link />
15
+ // }
16
+ // return;
17
+ // }
18
+ // export default CLINKhandler;
@@ -0,0 +1 @@
1
+ export { default as ComponentBlock } from './ComponentBlock';
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.ComponentBlock = void 0;
7
+ var ComponentBlock_1 = require("./ComponentBlock");
8
+ Object.defineProperty(exports, "ComponentBlock", { enumerable: true, get: function () { return __importDefault(ComponentBlock_1).default; } });
@@ -0,0 +1 @@
1
+ export { ComponentBlock } from './ComponentBlock';
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ComponentBlock = void 0;
4
+ var ComponentBlock_1 = require("./ComponentBlock");
5
+ Object.defineProperty(exports, "ComponentBlock", { enumerable: true, get: function () { return ComponentBlock_1.ComponentBlock; } });
@@ -0,0 +1 @@
1
+ export { useIntersectionObserver } from './useIntersectionObserver';
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.useIntersectionObserver = void 0;
4
+ var useIntersectionObserver_1 = require("./useIntersectionObserver");
5
+ Object.defineProperty(exports, "useIntersectionObserver", { enumerable: true, get: function () { return useIntersectionObserver_1.useIntersectionObserver; } });
@@ -0,0 +1,6 @@
1
+ import { RefObject } from 'react';
2
+ interface Args extends IntersectionObserverInit {
3
+ freezeOnceVisible?: boolean;
4
+ }
5
+ export declare function useIntersectionObserver(elementRef: RefObject<Element>, { threshold, root, rootMargin, freezeOnceVisible }: Args): IntersectionObserverEntry | undefined;
6
+ export {};
@@ -0,0 +1,26 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.useIntersectionObserver = void 0;
4
+ var react_1 = require("react");
5
+ function useIntersectionObserver(elementRef, _a) {
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;
7
+ var _f = (0, react_1.useState)(), entry = _f[0], setEntry = _f[1];
8
+ var frozen = (entry === null || entry === void 0 ? void 0 : entry.isIntersecting) && freezeOnceVisible;
9
+ var updateEntry = function (_a) {
10
+ var entry = _a[0];
11
+ setEntry(entry);
12
+ };
13
+ (0, react_1.useEffect)(function () {
14
+ var node = elementRef === null || elementRef === void 0 ? void 0 : elementRef.current; // DOM Ref
15
+ var hasIOSupport = !!window.IntersectionObserver;
16
+ if (!hasIOSupport || frozen || !node)
17
+ return;
18
+ var observerParams = { threshold: threshold, root: root, rootMargin: rootMargin };
19
+ var observer = new IntersectionObserver(updateEntry, observerParams);
20
+ observer.observe(node);
21
+ return function () { return observer.disconnect(); };
22
+ // eslint-disable-next-line react-hooks/exhaustive-deps
23
+ }, [elementRef === null || elementRef === void 0 ? void 0 : elementRef.current, JSON.stringify(threshold), root, rootMargin, frozen]);
24
+ return entry;
25
+ }
26
+ exports.useIntersectionObserver = useIntersectionObserver;
@@ -1,2 +1 @@
1
1
  export { default as CustomSection } from './CustomSection';
2
- export type { BlockNames, BlockId } from './types';
@@ -0,0 +1,31 @@
1
+ import type { BTNColorValueSetType } from '../components/ComponentBlock/componentBlocks/Button/btnTypes';
2
+ import type { BGOverlayValueSetType } from '../components/ComponentBlock/componentBlocks/RichText/types';
3
+ import type { BGColorValueSetType } from '../components/ComponentBlock/componentBlocks/Youtube/types';
4
+ import type { Device } from '../util/types';
5
+ import type { CSSProperties } from 'react';
6
+ declare type CBName = 'BTNCOLOR' | 'BGCOLOR' | 'BGOVERLAY';
7
+ declare type ExtractPropKey<T extends CBName> = Extract<T, CBName>;
8
+ declare type ValueSetType = BTNColorValueSetType & BGColorValueSetType & BGOverlayValueSetType;
9
+ export declare type ParseStyleColorProps<T> = {
10
+ availableSpecCodes: Array<keyof T>;
11
+ props: T;
12
+ propKey: ExtractPropKey<'BTNCOLOR'>;
13
+ device: Device;
14
+ } | {
15
+ availableSpecCodes: Array<keyof T>;
16
+ props: T;
17
+ propKey: ExtractPropKey<'BGCOLOR'>;
18
+ device: Device;
19
+ } | {
20
+ availableSpecCodes: Array<keyof T>;
21
+ props: T;
22
+ propKey: ExtractPropKey<'BGOVERLAY'>;
23
+ device: Device;
24
+ };
25
+ export declare function parseStyleColorToCSSProp<T>({ availableSpecCodes, props, propKey, device }: ParseStyleColorProps<T>): {
26
+ style: CSSProperties;
27
+ hoverStyle: CSSProperties;
28
+ };
29
+ export declare function getBtnColorStyles(value: ValueSetType, cbName: CBName): CSSProperties;
30
+ export declare function getLinearGradientStyles(value: ValueSetType, cbName: CBName): CSSProperties;
31
+ export {};
@@ -0,0 +1,66 @@
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
+ exports.getLinearGradientStyles = exports.getBtnColorStyles = exports.parseStyleColorToCSSProp = void 0;
15
+ function parseStyleColorToCSSProp(_a) {
16
+ var availableSpecCodes = _a.availableSpecCodes, props = _a.props, propKey = _a.propKey, device = _a.device;
17
+ var valueSet = availableSpecCodes.reduce(function (acc, currentKey) {
18
+ var _a, _b;
19
+ var stringifiedKey = currentKey.toString();
20
+ var baseKey = device === 'DESKTOP' ? currentKey : stringifiedKey + ":MOBILE";
21
+ var keyWithHover = baseKey.toString() + ":HOVER";
22
+ var value = props[baseKey];
23
+ var hoverValue = props[keyWithHover];
24
+ return {
25
+ normal: __assign(__assign({}, acc.normal), (_a = {}, _a[baseKey] = value, _a)),
26
+ hover: __assign(__assign({}, acc.hover), (_b = {}, _b[baseKey] = hoverValue, _b))
27
+ };
28
+ }, {
29
+ normal: {},
30
+ hover: {}
31
+ });
32
+ var style = getBtnColorStyles(valueSet.normal, propKey);
33
+ var hoverStyle = getBtnColorStyles(valueSet.hover, propKey);
34
+ return { style: style, hoverStyle: hoverStyle };
35
+ }
36
+ exports.parseStyleColorToCSSProp = parseStyleColorToCSSProp;
37
+ function getBtnColorStyles(value, cbName) {
38
+ if ("" + value["CB_STYLE_PROP_" + cbName + "_SPEC_TYPE"] === 'NONE' ||
39
+ value["CB_STYLE_PROP_" + cbName + "_SPEC_TYPE"] === 'SOLID') {
40
+ var style = {
41
+ backgroundColor: value["CB_STYLE_PROP_" + cbName + "_SPEC_COLOR"]
42
+ };
43
+ return style;
44
+ }
45
+ return getLinearGradientStyles(value, cbName);
46
+ }
47
+ exports.getBtnColorStyles = getBtnColorStyles;
48
+ function getLinearGradientStyles(value, cbName) {
49
+ var angle = value["CB_STYLE_PROP_" + cbName + "_SPEC_ANGLE"];
50
+ var startColor = value["CB_STYLE_PROP_" + cbName + "_SPEC_STARTCOLOR"];
51
+ var startLoc = value["CB_STYLE_PROP_" + cbName + "_SPEC_STARTLOC"];
52
+ var endColor = value["CB_STYLE_PROP_" + cbName + "_SPEC_ENDCOLOR"];
53
+ var endLoc = value["CB_STYLE_PROP_" + cbName + "_SPEC_ENDLOC"];
54
+ if (value["CB_STYLE_PROP_" + cbName + "_SPEC_GRADIENT"] === 'LINEAR') {
55
+ var gradient = angle + "deg, " + startColor + " " + startLoc + "%, " + endColor + " " + endLoc + "%";
56
+ var style = { background: "linear-gradient(" + gradient + ")" };
57
+ return style;
58
+ }
59
+ if (value["CB_STYLE_PROP_" + cbName + "_SPEC_GRADIENT"] === 'RADIAL') {
60
+ var gradient = startColor + " " + startLoc + "%, " + endColor + " " + endLoc + "%";
61
+ var style = { background: "radial-gradient(" + gradient + ")" };
62
+ return style;
63
+ }
64
+ return {};
65
+ }
66
+ exports.getLinearGradientStyles = getLinearGradientStyles;
@@ -0,0 +1,2 @@
1
+ export { parseStyleTextToCSSProp } from './textUtil';
2
+ export { default as replaceUndefinedValues } from './replaceUndefinedValues';
@@ -0,0 +1,10 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.replaceUndefinedValues = exports.parseStyleTextToCSSProp = void 0;
7
+ var textUtil_1 = require("./textUtil");
8
+ Object.defineProperty(exports, "parseStyleTextToCSSProp", { enumerable: true, get: function () { return textUtil_1.parseStyleTextToCSSProp; } });
9
+ var replaceUndefinedValues_1 = require("./replaceUndefinedValues");
10
+ Object.defineProperty(exports, "replaceUndefinedValues", { enumerable: true, get: function () { return __importDefault(replaceUndefinedValues_1).default; } });