pds-dev-kit-web-test 0.2.2 → 0.2.4

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 (317) hide show
  1. package/README.md +12 -1
  2. package/dist/src/desktop/common/components/TextFieldBase/TextFieldBase.js +1 -1
  3. package/dist/src/desktop/components/BasicListItem/Contents.d.ts +1 -1
  4. package/dist/src/desktop/components/BasicListItem/Contents.js +1 -1
  5. package/dist/src/desktop/components/BasicListItem/LeftBox/Badge.js +1 -1
  6. package/dist/src/desktop/components/BasicListItem/LeftBox/Checkbox.js +1 -1
  7. package/dist/src/desktop/components/BasicListItem/LeftBox/Icon.js +1 -1
  8. package/dist/src/desktop/components/BasicListItem/LeftBox/Image.js +1 -1
  9. package/dist/src/desktop/components/BasicListItem/LeftBox/Radio.js +1 -1
  10. package/dist/src/desktop/components/BasicListItem/RightBox/Description.d.ts +1 -1
  11. package/dist/src/desktop/components/BasicListItem/RightBox/Description.js +1 -1
  12. package/dist/src/desktop/components/BasicListItem/RightBox/MainButton.js +1 -1
  13. package/dist/src/desktop/components/BasicListItem/RightBox/Switch.js +1 -1
  14. package/dist/src/mobile/common/components/TextFieldBase/TextFieldBase.js +1 -1
  15. package/dist/src/mobile/components/BasicListItem/Contents.d.ts +1 -1
  16. package/dist/src/mobile/components/BasicListItem/Contents.js +1 -1
  17. package/dist/src/mobile/components/BasicListItem/LeftBox/Badge.js +1 -1
  18. package/dist/src/mobile/components/BasicListItem/LeftBox/Checkbox.js +1 -1
  19. package/dist/src/mobile/components/BasicListItem/LeftBox/Icon.js +1 -1
  20. package/dist/src/mobile/components/BasicListItem/LeftBox/Image.js +1 -1
  21. package/dist/src/mobile/components/BasicListItem/LeftBox/Radio.js +1 -1
  22. package/dist/src/mobile/components/BasicListItem/RightBox/Description.d.ts +1 -1
  23. package/dist/src/mobile/components/BasicListItem/RightBox/Description.js +1 -1
  24. package/dist/src/mobile/components/BasicListItem/RightBox/MainButton.js +1 -1
  25. package/dist/src/mobile/components/BasicListItem/RightBox/Switch.js +1 -1
  26. package/dist/src/sub/AdminList/AdminList/AdminList.d.ts +1 -1
  27. package/dist/src/sub/AdminList/AdminList/AdminList.js +2 -2
  28. package/dist/src/sub/AdminList/AdminList/HeaderRow.d.ts +1 -1
  29. package/dist/src/sub/AdminList/AdminList/HeaderRow.js +2 -2
  30. package/dist/src/sub/AdminList/AdminListHeader/AdminListHeader.d.ts +1 -1
  31. package/dist/src/sub/AdminList/AdminListHeader/AdminListHeader.js +2 -2
  32. package/dist/src/sub/AdminList/AdminListHeader/HeaderBar.d.ts +1 -1
  33. package/dist/src/sub/AdminList/AdminListHeader/HeaderBar.js +2 -2
  34. package/dist/src/sub/AdminList/AdminListItem/AdminListItem.d.ts +1 -1
  35. package/dist/src/sub/AdminList/AdminListItem/AdminListItem.js +3 -3
  36. package/dist/src/sub/AdminList/BulkActionBar/BulkActionBar.d.ts +1 -1
  37. package/dist/src/sub/AdminList/BulkActionBar/BulkActionBar.js +2 -2
  38. package/dist/src/sub/AdminList/ToolBar/ChipList.d.ts +1 -1
  39. package/dist/src/sub/AdminList/ToolBar/ChipList.js +1 -1
  40. package/dist/src/sub/AdminList/ToolBar/SearchField.js +4 -4
  41. package/dist/src/sub/AdminList/ToolBar/ToolBar.d.ts +1 -1
  42. package/dist/src/sub/AdminList/ToolBar/ToolBar.js +3 -3
  43. package/dist/src/sub/DynamicLayout/components/ComponentBlocks/Image/Image.d.ts +8 -0
  44. package/dist/src/sub/DynamicLayout/components/ComponentBlocks/Image/Image.js +46 -0
  45. package/dist/src/sub/DynamicLayout/components/ComponentBlocks/Image/index.d.ts +2 -0
  46. package/dist/src/sub/DynamicLayout/components/ComponentBlocks/Image/index.js +8 -0
  47. package/dist/src/sub/DynamicLayout/components/ComponentBlocks/RichText/RichText.d.ts +2 -3
  48. package/dist/src/sub/DynamicLayout/components/ComponentBlocks/RichText/RichText.js +3 -3
  49. package/dist/src/sub/DynamicLayout/components/ComponentBlocks/RichText/index.d.ts +2 -2
  50. package/dist/src/sub/DynamicLayout/components/ComponentBlocks/Text/Text.d.ts +13 -0
  51. package/dist/src/sub/DynamicLayout/components/ComponentBlocks/Text/Text.js +63 -0
  52. package/dist/src/sub/DynamicLayout/components/ComponentBlocks/Text/index.d.ts +2 -0
  53. package/dist/src/sub/DynamicLayout/components/ComponentBlocks/Text/index.js +8 -0
  54. package/dist/src/sub/DynamicLayout/components/ComponentBlocks/TwitterTimeline/TwitterTimeline.d.ts +3 -11
  55. package/dist/src/sub/DynamicLayout/components/ComponentBlocks/TwitterTimeline/TwitterTimeline.js +18 -18
  56. package/dist/src/sub/DynamicLayout/components/ComponentBlocks/TwitterTimeline/TwitterTimelineRerender.d.ts +14 -0
  57. package/dist/src/sub/DynamicLayout/components/ComponentBlocks/TwitterTimeline/TwitterTimelineRerender.js +41 -0
  58. package/dist/src/sub/DynamicLayout/components/ComponentBlocks/Wrapper/Wrapper.d.ts +35 -0
  59. package/dist/src/sub/DynamicLayout/components/ComponentBlocks/Wrapper/Wrapper.js +141 -0
  60. package/dist/src/sub/DynamicLayout/components/ComponentBlocks/Wrapper/constants.d.ts +2 -0
  61. package/dist/src/sub/DynamicLayout/components/ComponentBlocks/Wrapper/constants.js +33 -0
  62. package/dist/src/sub/DynamicLayout/components/ComponentBlocks/Wrapper/index.d.ts +1 -0
  63. package/dist/src/sub/DynamicLayout/components/ComponentBlocks/Wrapper/index.js +8 -0
  64. package/dist/src/sub/DynamicLayout/components/ComponentBlocks/index.d.ts +3 -2
  65. package/dist/src/sub/DynamicLayout/components/ComponentBlocks/index.js +3 -1
  66. package/dist/src/sub/DynamicLayout/components/EditModeSectionMatcher/EditModeSectionMatcher.js +4 -4
  67. package/dist/src/sub/DynamicLayout/components/Section/Section.d.ts +6 -3
  68. package/dist/src/sub/DynamicLayout/components/Section/Section.js +40 -8
  69. package/dist/src/sub/DynamicLayout/components/Section/components/CustomSectionBackgroundMedia.d.ts +9 -0
  70. package/dist/src/sub/DynamicLayout/components/Section/components/CustomSectionBackgroundMedia.js +68 -0
  71. package/dist/src/sub/DynamicLayout/components/SectionMatcher/SectionMatcher.js +4 -4
  72. package/dist/src/sub/DynamicLayout/components/desktop/common/Carousel.d.ts +1 -2
  73. package/dist/src/sub/DynamicLayout/components/desktop/common/Carousel.js +6 -6
  74. package/dist/src/sub/DynamicLayout/components/index.d.ts +0 -1
  75. package/dist/src/sub/DynamicLayout/components/index.js +1 -6
  76. package/dist/src/sub/DynamicLayout/mock_customSection.d.ts +2 -0
  77. package/dist/src/sub/DynamicLayout/mock_customSection.js +818 -0
  78. package/dist/src/sub/DynamicLayout/mock_samplePage.js +5 -210
  79. package/dist/src/sub/DynamicLayout/nakedMocks.json +839 -0
  80. package/dist/src/sub/DynamicLayout/sectionActionTypes.d.ts +17 -4
  81. package/dist/src/sub/DynamicLayout/sections/CustomSection/CustomSection.d.ts +2 -9
  82. package/dist/src/sub/DynamicLayout/sections/CustomSection/CustomSection.js +86 -52
  83. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/ComponentBlock.d.ts +7 -0
  84. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/ComponentBlock.js +55 -0
  85. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/ComponentBlockMatcher.d.ts +3 -0
  86. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/ComponentBlockMatcher.js +52 -0
  87. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/Button/Button.d.ts +5 -0
  88. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/Button/Button.js +79 -0
  89. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/Button/btnTypes.d.ts +68 -0
  90. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/Button/btnTypes.js +2 -0
  91. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/Divider/Divider.d.ts +5 -0
  92. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/Divider/Divider.js +66 -0
  93. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/Image/Image.d.ts +5 -0
  94. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/Image/Image.js +117 -0
  95. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/Image/types.d.ts +12 -0
  96. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/Image/types.js +2 -0
  97. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/RichText/RichText.d.ts +5 -0
  98. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/RichText/RichText.js +62 -0
  99. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/RichText/index.d.ts +1 -0
  100. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/RichText/index.js +8 -0
  101. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/RichText/types.d.ts +44 -0
  102. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/RichText/types.js +2 -0
  103. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/Text/Text.d.ts +5 -0
  104. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/Text/Text.js +58 -0
  105. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/Text/types.d.ts +28 -0
  106. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/Text/types.js +2 -0
  107. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/Twitter/Twitter.d.ts +5 -0
  108. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/Twitter/Twitter.js +43 -0
  109. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/Twitter/types.d.ts +6 -0
  110. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/Twitter/types.js +2 -0
  111. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/Youtube/Youtube.d.ts +5 -0
  112. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/Youtube/Youtube.js +69 -0
  113. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/Youtube/index.d.ts +1 -0
  114. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/Youtube/index.js +8 -0
  115. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/Youtube/parseYoutubeContentProp.d.ts +7 -0
  116. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/Youtube/parseYoutubeContentProp.js +33 -0
  117. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/Youtube/types.d.ts +48 -0
  118. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/Youtube/types.js +2 -0
  119. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/components/S_CB_Box.d.ts +2 -0
  120. package/dist/src/sub/DynamicLayout/sections/CustomSection/{BlockMatcher/blocks/Button.js → components/ComponentBlock/componentBlocks/components/S_CB_Box.js} +6 -11
  121. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/components/S_HiddenCover.d.ts +1 -0
  122. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/components/S_HiddenCover.js +13 -0
  123. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/hooks/useCLINK.d.ts +8 -0
  124. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/hooks/useCLINK.js +24 -0
  125. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/types.d.ts +20 -0
  126. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/types.js +2 -0
  127. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/utils/CLINKhandler.d.ts +0 -0
  128. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/utils/CLINKhandler.js +18 -0
  129. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/index.d.ts +1 -0
  130. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/index.js +8 -0
  131. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/index.d.ts +1 -0
  132. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/index.js +5 -0
  133. package/dist/src/sub/DynamicLayout/sections/CustomSection/hooks/index.d.ts +1 -0
  134. package/dist/src/sub/DynamicLayout/sections/CustomSection/hooks/index.js +5 -0
  135. package/dist/src/sub/DynamicLayout/sections/CustomSection/hooks/useIntersectionObserver.d.ts +6 -0
  136. package/dist/src/sub/DynamicLayout/sections/CustomSection/hooks/useIntersectionObserver.js +26 -0
  137. package/dist/src/sub/DynamicLayout/sections/CustomSection/index.d.ts +0 -1
  138. package/dist/src/sub/DynamicLayout/sections/CustomSection/newUtils/colorUtil.d.ts +31 -0
  139. package/dist/src/sub/DynamicLayout/sections/CustomSection/newUtils/colorUtil.js +66 -0
  140. package/dist/src/sub/DynamicLayout/sections/CustomSection/newUtils/index.d.ts +2 -0
  141. package/dist/src/sub/DynamicLayout/sections/CustomSection/newUtils/index.js +10 -0
  142. package/dist/src/sub/DynamicLayout/sections/CustomSection/newUtils/replaceUndefinedValues.d.ts +2 -0
  143. package/dist/src/sub/DynamicLayout/sections/CustomSection/newUtils/replaceUndefinedValues.js +42 -0
  144. package/dist/src/sub/DynamicLayout/sections/CustomSection/newUtils/textUtil.d.ts +18 -0
  145. package/dist/src/sub/DynamicLayout/sections/CustomSection/newUtils/textUtil.js +79 -0
  146. package/dist/src/sub/DynamicLayout/sections/CustomSection/types.d.ts +50 -99
  147. package/dist/src/sub/DynamicLayout/sections/CustomSection/types.js +11 -14
  148. package/dist/src/sub/DynamicLayout/sections/CustomSection/util/contentPropParsers/index.d.ts +3 -0
  149. package/dist/src/sub/DynamicLayout/sections/CustomSection/util/contentPropParsers/index.js +16 -0
  150. package/dist/src/sub/DynamicLayout/sections/CustomSection/util/contentPropParsers/parseContentVisibility.d.ts +12 -0
  151. package/dist/src/sub/DynamicLayout/sections/CustomSection/util/contentPropParsers/parseContentVisibility.js +18 -0
  152. package/dist/src/sub/DynamicLayout/sections/CustomSection/util/contentPropParsers/types.d.ts +5 -0
  153. package/dist/src/sub/DynamicLayout/sections/CustomSection/util/contentPropParsers/types.js +7 -0
  154. package/dist/src/sub/DynamicLayout/sections/CustomSection/util/effectPropParsers/constants.d.ts +4 -0
  155. package/dist/src/sub/DynamicLayout/sections/CustomSection/util/effectPropParsers/constants.js +46 -0
  156. package/dist/src/sub/DynamicLayout/sections/CustomSection/util/effectPropParsers/index.d.ts +3 -0
  157. package/dist/src/sub/DynamicLayout/sections/CustomSection/util/effectPropParsers/index.js +16 -0
  158. package/dist/src/sub/DynamicLayout/sections/CustomSection/util/effectPropParsers/parseEffectPropEntAnim.d.ts +19 -0
  159. package/dist/src/sub/DynamicLayout/sections/CustomSection/util/effectPropParsers/parseEffectPropEntAnim.js +51 -0
  160. package/dist/src/sub/DynamicLayout/sections/CustomSection/util/effectPropParsers/types.d.ts +5 -0
  161. package/dist/src/sub/DynamicLayout/sections/CustomSection/util/effectPropParsers/types.js +7 -0
  162. package/dist/src/sub/DynamicLayout/sections/CustomSection/util/index.d.ts +6 -0
  163. package/dist/src/sub/DynamicLayout/sections/CustomSection/util/index.js +18 -0
  164. package/dist/src/sub/DynamicLayout/sections/CustomSection/util/layoutPropParsers/index.d.ts +3 -0
  165. package/dist/src/sub/DynamicLayout/sections/CustomSection/util/layoutPropParsers/index.js +19 -0
  166. package/dist/src/sub/DynamicLayout/sections/CustomSection/util/layoutPropParsers/parseLayoutPropArrange.d.ts +24 -0
  167. package/dist/src/sub/DynamicLayout/sections/CustomSection/util/layoutPropParsers/parseLayoutPropArrange.js +80 -0
  168. package/dist/src/sub/DynamicLayout/sections/CustomSection/util/layoutPropParsers/parseLayoutPropPadding.d.ts +23 -0
  169. package/dist/src/sub/DynamicLayout/sections/CustomSection/util/layoutPropParsers/parseLayoutPropPadding.js +32 -0
  170. package/dist/src/sub/DynamicLayout/sections/CustomSection/util/layoutPropParsers/types.d.ts +7 -0
  171. package/dist/src/sub/DynamicLayout/sections/CustomSection/util/layoutPropParsers/types.js +8 -0
  172. package/dist/src/sub/DynamicLayout/sections/CustomSection/util/parseJsonProperties.d.ts +3 -0
  173. package/dist/src/sub/DynamicLayout/sections/CustomSection/util/parseJsonProperties.js +61 -0
  174. package/dist/src/sub/DynamicLayout/sections/CustomSection/util/parsePlacement.d.ts +20 -0
  175. package/dist/src/sub/DynamicLayout/sections/CustomSection/util/parsePlacement.js +46 -0
  176. package/dist/src/sub/DynamicLayout/sections/CustomSection/util/parseProperties.d.ts +5 -0
  177. package/dist/src/sub/DynamicLayout/sections/CustomSection/util/parseProperties.js +54 -0
  178. package/dist/src/sub/DynamicLayout/sections/CustomSection/util/stylePropParsers/index.d.ts +3 -0
  179. package/dist/src/sub/DynamicLayout/sections/CustomSection/util/stylePropParsers/index.js +41 -0
  180. package/dist/src/sub/DynamicLayout/sections/CustomSection/util/stylePropParsers/parseStylePropBgColor.d.ts +43 -0
  181. package/dist/src/sub/DynamicLayout/sections/CustomSection/util/stylePropParsers/parseStylePropBgColor.js +58 -0
  182. package/dist/src/sub/DynamicLayout/sections/CustomSection/util/stylePropParsers/parseStylePropBgImage.d.ts +19 -0
  183. package/dist/src/sub/DynamicLayout/sections/CustomSection/util/stylePropParsers/parseStylePropBgImage.js +118 -0
  184. package/dist/src/sub/DynamicLayout/sections/CustomSection/util/stylePropParsers/parseStylePropBgOverlay.d.ts +43 -0
  185. package/dist/src/sub/DynamicLayout/sections/CustomSection/util/stylePropParsers/parseStylePropBgOverlay.js +64 -0
  186. package/dist/src/sub/DynamicLayout/sections/CustomSection/util/stylePropParsers/parseStylePropBorder.d.ts +39 -0
  187. package/dist/src/sub/DynamicLayout/sections/CustomSection/util/stylePropParsers/parseStylePropBorder.js +73 -0
  188. package/dist/src/sub/DynamicLayout/sections/CustomSection/util/stylePropParsers/parseStylePropDivider.d.ts +27 -0
  189. package/dist/src/sub/DynamicLayout/sections/CustomSection/util/stylePropParsers/parseStylePropDivider.js +65 -0
  190. package/dist/src/sub/DynamicLayout/sections/CustomSection/util/stylePropParsers/parseStylePropImage.d.ts +19 -0
  191. package/dist/src/sub/DynamicLayout/sections/CustomSection/util/stylePropParsers/parseStylePropImage.js +118 -0
  192. package/dist/src/sub/DynamicLayout/sections/CustomSection/util/stylePropParsers/parseStylePropOpacity.d.ts +15 -0
  193. package/dist/src/sub/DynamicLayout/sections/CustomSection/util/stylePropParsers/parseStylePropOpacity.js +41 -0
  194. package/dist/src/sub/DynamicLayout/sections/CustomSection/util/stylePropParsers/parseStylePropShadow.d.ts +39 -0
  195. package/dist/src/sub/DynamicLayout/sections/CustomSection/util/stylePropParsers/parseStylePropShadow.js +46 -0
  196. package/dist/src/sub/DynamicLayout/sections/CustomSection/util/stylePropParsers/parseStylePropTextSpec.d.ts +39 -0
  197. package/dist/src/sub/DynamicLayout/sections/CustomSection/util/stylePropParsers/parseStylePropTextSpec.js +80 -0
  198. package/dist/src/sub/DynamicLayout/sections/CustomSection/util/stylePropParsers/types.d.ts +22 -0
  199. package/dist/src/sub/DynamicLayout/sections/CustomSection/util/stylePropParsers/types.js +16 -0
  200. package/dist/src/sub/DynamicLayout/sections/CustomSection/util/types.d.ts +134 -0
  201. package/dist/src/sub/DynamicLayout/sections/CustomSection/util/types.js +2 -0
  202. package/dist/src/sub/DynamicLayout/sections/FullscreenIframeSection/templates/TemplateA/desktop/D_TemplateA.js +1 -1
  203. package/dist/src/sub/DynamicLayout/sections/FullscreenIframeSection/templates/TemplateA/mobile/M_TemplateA.js +1 -1
  204. package/dist/src/sub/DynamicLayout/sections/MembershipSection/EditType/MembershipSection.d.ts +1 -1
  205. package/dist/src/sub/DynamicLayout/sections/MembershipSection/EditType/MembershipSection.js +1 -1
  206. package/dist/src/sub/DynamicLayout/sections/MembershipSection/EditType/templates/TemplateA/TemplateA.js +2 -2
  207. package/dist/src/sub/DynamicLayout/sections/MembershipSection/EditType/templates/TemplateA/desktop/D_TemplateA.d.ts +1 -1
  208. package/dist/src/sub/DynamicLayout/sections/MembershipSection/EditType/templates/TemplateA/desktop/components/EmptyMembershipSheet.js +4 -4
  209. package/dist/src/sub/DynamicLayout/sections/MembershipSection/EditType/templates/TemplateA/desktop/components/MembershipBenefitInfo.d.ts +1 -1
  210. package/dist/src/sub/DynamicLayout/sections/MembershipSection/EditType/templates/TemplateA/desktop/components/MembershipBenefitInfo.js +2 -2
  211. package/dist/src/sub/DynamicLayout/sections/MembershipSection/EditType/templates/TemplateA/desktop/components/MembershipPlanSheet.d.ts +1 -1
  212. package/dist/src/sub/DynamicLayout/sections/MembershipSection/EditType/templates/TemplateA/desktop/components/MembershipPlanSheet.js +5 -5
  213. package/dist/src/sub/DynamicLayout/sections/MembershipSection/EditType/templates/TemplateA/desktop/components/MembershipSheet.d.ts +1 -1
  214. package/dist/src/sub/DynamicLayout/sections/MembershipSection/EditType/templates/TemplateA/desktop/components/MembershipSheet.js +4 -4
  215. package/dist/src/sub/DynamicLayout/sections/MembershipSection/EditType/templates/TemplateA/desktop/components/NarrowMembershipListView.d.ts +1 -1
  216. package/dist/src/sub/DynamicLayout/sections/MembershipSection/EditType/templates/TemplateA/desktop/components/NarrowMembershipListView.js +3 -3
  217. package/dist/src/sub/DynamicLayout/sections/MembershipSection/EditType/templates/TemplateA/desktop/components/SectionContents.js +2 -2
  218. package/dist/src/sub/DynamicLayout/sections/MembershipSection/EditType/templates/TemplateA/desktop/components/UnavailableMembershipPlanSheet.d.ts +1 -1
  219. package/dist/src/sub/DynamicLayout/sections/MembershipSection/EditType/templates/TemplateA/desktop/components/UnavailableMembershipPlanSheet.js +4 -4
  220. package/dist/src/sub/DynamicLayout/sections/MembershipSection/EditType/templates/TemplateA/desktop/components/WideMembershipListView.d.ts +1 -1
  221. package/dist/src/sub/DynamicLayout/sections/MembershipSection/EditType/templates/TemplateA/desktop/components/WideMembershipListView.js +3 -3
  222. package/dist/src/sub/DynamicLayout/sections/MembershipSection/EditType/templates/TemplateA/mobile/M_TemplateA.d.ts +1 -1
  223. package/dist/src/sub/DynamicLayout/sections/MembershipSection/EditType/templates/TemplateA/mobile/components/EmptyMembershipSheet.js +4 -4
  224. package/dist/src/sub/DynamicLayout/sections/MembershipSection/EditType/templates/TemplateA/mobile/components/MembershipBenefitInfo.d.ts +1 -1
  225. package/dist/src/sub/DynamicLayout/sections/MembershipSection/EditType/templates/TemplateA/mobile/components/MembershipBenefitInfo.js +3 -3
  226. package/dist/src/sub/DynamicLayout/sections/MembershipSection/EditType/templates/TemplateA/mobile/components/MembershipContents.d.ts +1 -1
  227. package/dist/src/sub/DynamicLayout/sections/MembershipSection/EditType/templates/TemplateA/mobile/components/MembershipSectionSheet.d.ts +1 -1
  228. package/dist/src/sub/DynamicLayout/sections/MembershipSection/EditType/templates/TemplateA/mobile/components/MembershipSectionSheet.js +5 -5
  229. package/dist/src/sub/DynamicLayout/sections/MembershipSection/EditType/templates/TemplateA/mobile/components/SectionContents.js +2 -2
  230. package/dist/src/sub/DynamicLayout/sections/MembershipSection/EditType/templates/TemplateB/TemplateB.js +2 -2
  231. package/dist/src/sub/DynamicLayout/sections/MembershipSection/EditType/templates/TemplateB/desktop/D_TemplateB.d.ts +1 -1
  232. package/dist/src/sub/DynamicLayout/sections/MembershipSection/EditType/templates/TemplateB/desktop/components/EmptyMembershipSheet.js +4 -4
  233. package/dist/src/sub/DynamicLayout/sections/MembershipSection/EditType/templates/TemplateB/desktop/components/MembershipBenefitInfo.d.ts +1 -1
  234. package/dist/src/sub/DynamicLayout/sections/MembershipSection/EditType/templates/TemplateB/desktop/components/MembershipBenefitInfo.js +2 -2
  235. package/dist/src/sub/DynamicLayout/sections/MembershipSection/EditType/templates/TemplateB/desktop/components/MembershipCard.d.ts +1 -1
  236. package/dist/src/sub/DynamicLayout/sections/MembershipSection/EditType/templates/TemplateB/desktop/components/MembershipCard.js +2 -2
  237. package/dist/src/sub/DynamicLayout/sections/MembershipSection/EditType/templates/TemplateB/desktop/components/MembershipPlanSheet.d.ts +1 -1
  238. package/dist/src/sub/DynamicLayout/sections/MembershipSection/EditType/templates/TemplateB/desktop/components/MembershipPlanSheet.js +5 -5
  239. package/dist/src/sub/DynamicLayout/sections/MembershipSection/EditType/templates/TemplateB/desktop/components/MembershipSheet.d.ts +1 -1
  240. package/dist/src/sub/DynamicLayout/sections/MembershipSection/EditType/templates/TemplateB/desktop/components/MembershipSheet.js +6 -6
  241. package/dist/src/sub/DynamicLayout/sections/MembershipSection/EditType/templates/TemplateB/desktop/components/SectionContents.js +2 -2
  242. package/dist/src/sub/DynamicLayout/sections/MembershipSection/EditType/templates/TemplateB/desktop/components/UnavailableMembershipPlanSheet.d.ts +1 -1
  243. package/dist/src/sub/DynamicLayout/sections/MembershipSection/EditType/templates/TemplateB/desktop/components/UnavailableMembershipPlanSheet.js +4 -4
  244. package/dist/src/sub/DynamicLayout/sections/MembershipSection/EditType/templates/TemplateB/mobile/M_TemplateB.d.ts +1 -1
  245. package/dist/src/sub/DynamicLayout/sections/MembershipSection/EditType/templates/TemplateB/mobile/components/EmptyMembershipSheet.js +4 -4
  246. package/dist/src/sub/DynamicLayout/sections/MembershipSection/EditType/templates/TemplateB/mobile/components/MembershipBenefitInfo.d.ts +1 -1
  247. package/dist/src/sub/DynamicLayout/sections/MembershipSection/EditType/templates/TemplateB/mobile/components/MembershipBenefitInfo.js +3 -3
  248. package/dist/src/sub/DynamicLayout/sections/MembershipSection/EditType/templates/TemplateB/mobile/components/MembershipContents.d.ts +1 -1
  249. package/dist/src/sub/DynamicLayout/sections/MembershipSection/EditType/templates/TemplateB/mobile/components/MembershipSectionSheet.d.ts +1 -1
  250. package/dist/src/sub/DynamicLayout/sections/MembershipSection/EditType/templates/TemplateB/mobile/components/MembershipSectionSheet.js +5 -5
  251. package/dist/src/sub/DynamicLayout/sections/MembershipSection/EditType/templates/TemplateB/mobile/components/SectionContents.js +2 -2
  252. package/dist/src/sub/DynamicLayout/sections/MembershipSection/NormalType/MembershipSection.d.ts +1 -1
  253. package/dist/src/sub/DynamicLayout/sections/MembershipSection/NormalType/MembershipSection.js +1 -1
  254. package/dist/src/sub/DynamicLayout/sections/MembershipSection/NormalType/templates/TemplateA/TemplateA.js +1 -1
  255. package/dist/src/sub/DynamicLayout/sections/MembershipSection/NormalType/templates/TemplateA/desktop/D_TemplateA.js +1 -1
  256. package/dist/src/sub/DynamicLayout/sections/MembershipSection/NormalType/templates/TemplateA/desktop/components/SectionContents.js +2 -2
  257. package/dist/src/sub/DynamicLayout/sections/MembershipSection/NormalType/templates/TemplateA/mobile/M_TemplateA.js +1 -1
  258. package/dist/src/sub/DynamicLayout/sections/MembershipSection/NormalType/templates/TemplateA/mobile/components/SectionContents.js +2 -2
  259. package/dist/src/sub/DynamicLayout/sections/MembershipSection/NormalType/templates/TemplateB/TemplateB.js +1 -1
  260. package/dist/src/sub/DynamicLayout/sections/MembershipSection/NormalType/templates/TemplateB/desktop/D_TemplateB.js +1 -1
  261. package/dist/src/sub/DynamicLayout/sections/MembershipSection/NormalType/templates/TemplateB/desktop/components/SectionContents.js +2 -2
  262. package/dist/src/sub/DynamicLayout/sections/MembershipSection/NormalType/templates/TemplateB/mobile/M_TemplateB.js +1 -1
  263. package/dist/src/sub/DynamicLayout/sections/MembershipSection/NormalType/templates/TemplateB/mobile/components/SectionContents.js +2 -2
  264. package/dist/src/sub/DynamicLayout/sections/MembershipSection/components/desktop/MembershipSectionItem.d.ts +3 -3
  265. package/dist/src/sub/DynamicLayout/sections/MembershipSection/components/desktop/MembershipSectionItem.js +2 -2
  266. package/dist/src/sub/DynamicLayout/sections/MembershipSection/components/mobile/MembershipSectionItem.d.ts +3 -3
  267. package/dist/src/sub/DynamicLayout/sections/MembershipSection/components/mobile/MembershipSectionItem.js +2 -2
  268. package/dist/src/sub/DynamicLayout/sections/MembershipSection/constants.d.ts +1 -1
  269. package/dist/src/sub/DynamicLayout/sections/index.d.ts +1 -0
  270. package/dist/src/sub/DynamicLayout/sections/index.js +3 -1
  271. package/dist/src/sub/DynamicLayout/types.d.ts +70 -4
  272. package/package.json +2 -4
  273. package/release-note.md +15 -7
  274. package/dist/src/sub/DynamicLayout/components/Box.d.ts +0 -13
  275. package/dist/src/sub/DynamicLayout/components/Box.js +0 -73
  276. package/dist/src/sub/DynamicLayout/custonSectionSampleData.d.ts +0 -334
  277. package/dist/src/sub/DynamicLayout/custonSectionSampleData.js +0 -328
  278. package/dist/src/sub/DynamicLayout/sections/CustomSection/BlockMatcher/BlockMatcher.d.ts +0 -11
  279. package/dist/src/sub/DynamicLayout/sections/CustomSection/BlockMatcher/BlockMatcher.js +0 -86
  280. package/dist/src/sub/DynamicLayout/sections/CustomSection/BlockMatcher/blocks/Accordion.d.ts +0 -12
  281. package/dist/src/sub/DynamicLayout/sections/CustomSection/BlockMatcher/blocks/Accordion.js +0 -46
  282. package/dist/src/sub/DynamicLayout/sections/CustomSection/BlockMatcher/blocks/AccordionCore/AccordionBody.d.ts +0 -8
  283. package/dist/src/sub/DynamicLayout/sections/CustomSection/BlockMatcher/blocks/AccordionCore/AccordionBody.js +0 -74
  284. package/dist/src/sub/DynamicLayout/sections/CustomSection/BlockMatcher/blocks/AccordionCore/AccordionCore.d.ts +0 -13
  285. package/dist/src/sub/DynamicLayout/sections/CustomSection/BlockMatcher/blocks/AccordionCore/AccordionCore.js +0 -25
  286. package/dist/src/sub/DynamicLayout/sections/CustomSection/BlockMatcher/blocks/AccordionCore/AccordionHeader.d.ts +0 -7
  287. package/dist/src/sub/DynamicLayout/sections/CustomSection/BlockMatcher/blocks/AccordionCore/AccordionHeader.js +0 -49
  288. package/dist/src/sub/DynamicLayout/sections/CustomSection/BlockMatcher/blocks/AccordionCore/AccordionItem.d.ts +0 -7
  289. package/dist/src/sub/DynamicLayout/sections/CustomSection/BlockMatcher/blocks/AccordionCore/AccordionItem.js +0 -19
  290. package/dist/src/sub/DynamicLayout/sections/CustomSection/BlockMatcher/blocks/AccordionCore/index.d.ts +0 -4
  291. package/dist/src/sub/DynamicLayout/sections/CustomSection/BlockMatcher/blocks/AccordionCore/index.js +0 -14
  292. package/dist/src/sub/DynamicLayout/sections/CustomSection/BlockMatcher/blocks/Button.d.ts +0 -8
  293. package/dist/src/sub/DynamicLayout/sections/CustomSection/BlockMatcher/blocks/ContentsCarousel/CardItem.d.ts +0 -9
  294. package/dist/src/sub/DynamicLayout/sections/CustomSection/BlockMatcher/blocks/ContentsCarousel/CardItem.js +0 -34
  295. package/dist/src/sub/DynamicLayout/sections/CustomSection/BlockMatcher/blocks/ContentsCarousel/ContentsCarousel.d.ts +0 -28
  296. package/dist/src/sub/DynamicLayout/sections/CustomSection/BlockMatcher/blocks/ContentsCarousel/ContentsCarousel.js +0 -53
  297. package/dist/src/sub/DynamicLayout/sections/CustomSection/BlockMatcher/blocks/Divider.d.ts +0 -7
  298. package/dist/src/sub/DynamicLayout/sections/CustomSection/BlockMatcher/blocks/Divider.js +0 -29
  299. package/dist/src/sub/DynamicLayout/sections/CustomSection/BlockMatcher/blocks/Image.d.ts +0 -7
  300. package/dist/src/sub/DynamicLayout/sections/CustomSection/BlockMatcher/blocks/Image.js +0 -18
  301. package/dist/src/sub/DynamicLayout/sections/CustomSection/BlockMatcher/blocks/ImageCarousel/ImageCarousel.d.ts +0 -16
  302. package/dist/src/sub/DynamicLayout/sections/CustomSection/BlockMatcher/blocks/ImageCarousel/ImageCarousel.js +0 -41
  303. package/dist/src/sub/DynamicLayout/sections/CustomSection/BlockMatcher/blocks/Instagram.d.ts +0 -7
  304. package/dist/src/sub/DynamicLayout/sections/CustomSection/BlockMatcher/blocks/Instagram.js +0 -19
  305. package/dist/src/sub/DynamicLayout/sections/CustomSection/BlockMatcher/blocks/RichText.d.ts +0 -7
  306. package/dist/src/sub/DynamicLayout/sections/CustomSection/BlockMatcher/blocks/RichText.js +0 -9
  307. package/dist/src/sub/DynamicLayout/sections/CustomSection/BlockMatcher/blocks/Text.d.ts +0 -7
  308. package/dist/src/sub/DynamicLayout/sections/CustomSection/BlockMatcher/blocks/Text.js +0 -29
  309. package/dist/src/sub/DynamicLayout/sections/CustomSection/BlockMatcher/blocks/Twitter.d.ts +0 -7
  310. package/dist/src/sub/DynamicLayout/sections/CustomSection/BlockMatcher/blocks/Twitter.js +0 -30
  311. package/dist/src/sub/DynamicLayout/sections/CustomSection/BlockMatcher/blocks/Youtube.d.ts +0 -9
  312. package/dist/src/sub/DynamicLayout/sections/CustomSection/BlockMatcher/blocks/Youtube.js +0 -38
  313. package/dist/src/sub/DynamicLayout/sections/CustomSection/BlockMatcher/blocks/index.d.ts +0 -9
  314. package/dist/src/sub/DynamicLayout/sections/CustomSection/BlockMatcher/blocks/index.js +0 -24
  315. package/dist/src/sub/DynamicLayout/sections/CustomSection/BlockMatcher/index.d.ts +0 -1
  316. package/dist/src/sub/DynamicLayout/sections/CustomSection/BlockMatcher/index.js +0 -8
  317. package/webhook/node_modules/esrecurse/.babelrc +0 -3
@@ -0,0 +1,63 @@
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 __rest = (this && this.__rest) || function (s, e) {
18
+ var t = {};
19
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
20
+ t[p] = s[p];
21
+ if (s != null && typeof Object.getOwnPropertySymbols === "function")
22
+ for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
23
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
24
+ t[p[i]] = s[p[i]];
25
+ }
26
+ return t;
27
+ };
28
+ var __importDefault = (this && this.__importDefault) || function (mod) {
29
+ return (mod && mod.__esModule) ? mod : { "default": mod };
30
+ };
31
+ Object.defineProperty(exports, "__esModule", { value: true });
32
+ var jsx_runtime_1 = require("react/jsx-runtime");
33
+ var react_1 = require("react");
34
+ var styled_components_1 = __importDefault(require("styled-components"));
35
+ var Text = (0, react_1.forwardRef)(function (_a, ref) {
36
+ var text = _a.text, _b = _a.letterSpacing, letterSpacing = _b === void 0 ? 0 : _b, _c = _a.lineHeight, lineHeight = _c === void 0 ? 1.3 : _c, _d = _a.textAlign, textAlign = _d === void 0 ? 'left' : _d, args = __rest(_a, ["text", "letterSpacing", "lineHeight", "textAlign"]);
37
+ return ((0, jsx_runtime_1.jsx)(S_Text, __assign({ ref: ref, letterSpacing: letterSpacing, lineHeight: lineHeight, textAlign: textAlign }, args, { children: text }), void 0));
38
+ });
39
+ var S_Text = styled_components_1.default.p(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n height: auto;\n letter-spacing: ", "em;\n line-height: ", ";\n margin: 0;\n text-align: ", ";\n width: auto;\n\n ", ";\n ", ";\n ", ";\n ", ";\n"], ["\n height: auto;\n letter-spacing: ", "em;\n line-height: ", ";\n margin: 0;\n text-align: ", ";\n width: auto;\n\n ", ";\n ", ";\n ", ";\n ", ";\n"])), function (_a) {
40
+ var letterSpacing = _a.letterSpacing;
41
+ return letterSpacing;
42
+ }, function (_a) {
43
+ var lineHeight = _a.lineHeight;
44
+ return lineHeight;
45
+ }, function (_a) {
46
+ var textAlign = _a.textAlign;
47
+ return textAlign;
48
+ }, function (_a) {
49
+ var fontFamilyName = _a.fontFamilyName;
50
+ return fontFamilyName && "font-family: " + fontFamilyName;
51
+ }, function (_a) {
52
+ var fontWeight = _a.fontWeight;
53
+ return fontWeight && "font-weight: " + fontWeight;
54
+ }, function (_a) {
55
+ var fontSize = _a.fontSize;
56
+ return fontSize && "font-size: " + fontSize + "px";
57
+ }, function (_a) {
58
+ var textColor = _a.textColor;
59
+ return textColor && "color: " + textColor;
60
+ });
61
+ exports.default = Text;
62
+ Text.displayName = 'Text';
63
+ var templateObject_1;
@@ -0,0 +1,2 @@
1
+ import Text, { TextPropTypes } from './Text';
2
+ export { Text, TextPropTypes };
@@ -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.Text = void 0;
7
+ var Text_1 = __importDefault(require("./Text"));
8
+ exports.Text = Text_1.default;
@@ -6,7 +6,7 @@ declare const customChrome: {
6
6
  readonly noscrollbar: "noscrollbar";
7
7
  readonly transparent: "transparent";
8
8
  };
9
- declare type TwitterTimelinePropTypes = {
9
+ export declare type TwitterTimelinePropTypes = {
10
10
  /**
11
11
  * 임베드할 트위터 유저의 id 값 입니다.
12
12
  */
@@ -51,19 +51,11 @@ declare type TwitterTimelinePropTypes = {
51
51
  * @types transparent: 위젯의 배경색을 제거합니다.
52
52
  */
53
53
  customChrome?: (keyof typeof customChrome)[];
54
- /**
55
- * 임베드할 트위터 타임라인 위젯의 너비를 결정합니다. 최소 너비 180픽셀, 최대 너비 520픽셀로 상위 요소의 너비에 맞게 자동으로 조정됩니다.
56
- */
57
- width?: number;
58
- /**
59
- * 임베드할 트위터 타임라인 위젯의 높이를 결정합니다.
60
- */
61
- height?: number;
62
54
  /**
63
55
  * 트위터 스크립트가 로드 되기 전 혹은 로드 실패시 보여지는 컴포넌트입니다.
64
56
  * a 태그 내부에 들어가기 때문에 로딩과는 다른 용도로 사용됩니다.
65
57
  */
66
- fallback?: React.ReactNode;
58
+ fallback?: React.ReactNode | JSX.Element;
67
59
  };
68
60
  /**
69
61
  * 트위터의 Profile Timeline 임베드 컴포넌트입니다.
@@ -74,5 +66,5 @@ declare type TwitterTimelinePropTypes = {
74
66
  *
75
67
  * 트위터 표시 요구 약관: https://developer.twitter.com/en/developer-terms/display-requirements
76
68
  */
77
- declare function TwitterTimeline({ userId, tweetLimit, showReplies, theme, ariaPolite, dnt, customChrome, width, height, fallback }: TwitterTimelinePropTypes): JSX.Element;
69
+ declare const TwitterTimeline: import("react").ForwardRefExoticComponent<TwitterTimelinePropTypes & import("react").RefAttributes<HTMLDivElement>>;
78
70
  export default TwitterTimeline;
@@ -29,24 +29,24 @@ var customChrome = {
29
29
  *
30
30
  * 트위터 표시 요구 약관: https://developer.twitter.com/en/developer-terms/display-requirements
31
31
  */
32
- function TwitterTimeline(_a) {
33
- var userId = _a.userId, _b = _a.tweetLimit, tweetLimit = _b === void 0 ? 5 : _b, _c = _a.showReplies, showReplies = _c === void 0 ? false : _c, _d = _a.theme, theme = _d === void 0 ? 'light' : _d, _e = _a.ariaPolite, ariaPolite = _e === void 0 ? 'polite' : _e, _f = _a.dnt, dnt = _f === void 0 ? true : _f, _g = _a.customChrome, customChrome = _g === void 0 ? [] : _g, width = _a.width, _h = _a.height, height = _h === void 0 ? 600 : _h, fallback = _a.fallback;
32
+ var TwitterTimeline = (0, react_1.forwardRef)(function (_a, ref) {
33
+ var userId = _a.userId, _b = _a.tweetLimit, tweetLimit = _b === void 0 ? 5 : _b, _c = _a.showReplies, showReplies = _c === void 0 ? false : _c, _d = _a.theme, theme = _d === void 0 ? 'light' : _d, _e = _a.ariaPolite, ariaPolite = _e === void 0 ? 'polite' : _e, _f = _a.dnt, dnt = _f === void 0 ? true : _f, _g = _a.customChrome, customChrome = _g === void 0 ? [] : _g, fallback = _a.fallback;
34
34
  var TWITTER_EMBED_TIMELINE_SCRIPT_ID = 'twitter-timeline';
35
35
  var TWITTER_EMBED_TIMELINE_SCRIPT_SRC = 'https://platform.twitter.com/widgets.js';
36
- /**
37
- @when : 컴포넌트 렌더시
38
- @expected : 트위터 임베드 스크립트가 없다면 스크립트 주소와 아이디를 설정해줍니다.
39
- @clear : -
40
- */
41
- (0, react_1.useEffect)(function () {
42
- var hasScript = document.getElementById(TWITTER_EMBED_TIMELINE_SCRIPT_ID);
43
- if (!hasScript) {
44
- var script = document.createElement('script');
45
- script.src = TWITTER_EMBED_TIMELINE_SCRIPT_SRC;
46
- script.id = TWITTER_EMBED_TIMELINE_SCRIPT_ID;
47
- document.body.append(script);
48
- }
49
- }, []);
50
- return ((0, jsx_runtime_1.jsx)("section", __assign({ className: "twitter-embed-container" }, { children: (0, jsx_runtime_1.jsx)("div", __assign({ className: "twitter-embed" }, { children: (0, jsx_runtime_1.jsx)("a", __assign({ className: "twitter-timeline", "data-tweet-limit": tweetLimit, "data-show-replies": showReplies, "data-aria-polite": ariaPolite, "data-dnt": dnt, "data-theme": theme, "data-chrome": customChrome.join(' '), "data-width": width, "data-height": height, href: "https://twitter.com/" + userId }, { children: fallback }), void 0) }), void 0) }), void 0));
51
- }
36
+ function scriptLoader(scriptId, scriptUrl) {
37
+ var script = document.createElement('script');
38
+ script.async = true;
39
+ script.id = scriptId;
40
+ script.src = scriptUrl;
41
+ script.type = 'text/javascript';
42
+ script.onerror = function () {
43
+ // eslint-disable-next-line no-console
44
+ console.log('onerror >>>', userId);
45
+ };
46
+ document.head.appendChild(script);
47
+ }
48
+ scriptLoader(TWITTER_EMBED_TIMELINE_SCRIPT_ID, TWITTER_EMBED_TIMELINE_SCRIPT_SRC);
49
+ return ((0, jsx_runtime_1.jsx)("section", __assign({ className: "twitter-embed-container", ref: ref }, { children: (0, jsx_runtime_1.jsx)("div", __assign({ className: "twitter-embed" }, { children: (0, jsx_runtime_1.jsx)("a", __assign({ target: "_blank", className: "twitter-timeline", "data-tweet-limit": tweetLimit, "data-show-replies": showReplies, "data-aria-polite": ariaPolite, "data-dnt": dnt, "data-theme": theme, "data-chrome": customChrome.join(' '), href: "https://twitter.com/" + userId, rel: "noreferrer" }, { children: fallback }), void 0) }), void 0) }), void 0));
50
+ });
52
51
  exports.default = TwitterTimeline;
52
+ TwitterTimeline.displayName = 'TwitterTimeline';
@@ -0,0 +1,14 @@
1
+ /// <reference types="react" />
2
+ import type { TwitterTimelinePropTypes } from './TwitterTimeline';
3
+ export declare type TwitterTimelineWrapperPropTypes = TwitterTimelinePropTypes & {
4
+ /**
5
+ * 임베드할 트위터 타임라인 위젯의 너비를 결정합니다. 최소 너비 180픽셀, 최대 너비 520픽셀로 상위 요소의 너비에 맞게 자동으로 조정됩니다.
6
+ */
7
+ width?: number;
8
+ /**
9
+ * 임베드할 트위터 타임라인 위젯의 높이를 결정합니다.
10
+ */
11
+ height?: number;
12
+ };
13
+ declare function TwitterTimelineRerender(args: TwitterTimelineWrapperPropTypes): JSX.Element;
14
+ export default TwitterTimelineRerender;
@@ -0,0 +1,41 @@
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 styled_components_1 = __importDefault(require("styled-components"));
24
+ var TwitterTimeline_1 = __importDefault(require("./TwitterTimeline"));
25
+ function TwitterTimelineRerender(args) {
26
+ var userId = args.userId, tweetLimit = args.tweetLimit, showReplies = args.showReplies, theme = args.theme, ariaPolite = args.ariaPolite, dnt = args.dnt, customChrome = args.customChrome, fallback = args.fallback, width = args.width, height = args.height;
27
+ var forceRenderKey = (0, react_1.useMemo)(function () {
28
+ return String(userId + tweetLimit + showReplies + theme + ariaPolite + dnt + customChrome + fallback);
29
+ }, [userId, tweetLimit, showReplies, theme, ariaPolite, dnt, customChrome, fallback]);
30
+ var widthInRange = width && width > 180 && width < 520 ? width : undefined;
31
+ return ((0, jsx_runtime_1.jsx)(S_TwitterTimelineWrapper, __assign({ className: "twitter-timeline-wrapper", "$width": widthInRange, "$height": height }, { children: (0, jsx_runtime_1.jsx)(TwitterTimeline_1.default, __assign({}, args), forceRenderKey) }), void 0));
32
+ }
33
+ var S_TwitterTimelineWrapper = styled_components_1.default.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n box-sizing: content-box;\n height: ", ";\n max-width: 520px;\n min-width: 180px;\n overflow: auto;\n width: ", ";\n"], ["\n box-sizing: content-box;\n height: ", ";\n max-width: 520px;\n min-width: 180px;\n overflow: auto;\n width: ", ";\n"])), function (_a) {
34
+ var $height = _a.$height;
35
+ return ($height ? $height + "px" : '100%');
36
+ }, function (_a) {
37
+ var $width = _a.$width;
38
+ return ($width ? $width + "px" : '100%');
39
+ });
40
+ exports.default = TwitterTimelineRerender;
41
+ var templateObject_1;
@@ -0,0 +1,35 @@
1
+ /// <reference types="react" />
2
+ export declare type ComponentBlockWrapperPropTypes = {
3
+ children?: React.ReactNode;
4
+ boxSizing?: 'border-box' | 'content-box';
5
+ width?: number;
6
+ height?: number;
7
+ alignVertical?: 'top' | 'center' | 'bottom';
8
+ alignHorizontal?: 'left' | 'center' | 'right';
9
+ paddingTop?: number;
10
+ paddingRight?: number;
11
+ paddingBottom?: number;
12
+ paddingLeft?: number;
13
+ zIndex?: number;
14
+ borderType?: 'none' | 'solid' | 'dashed' | 'dotted';
15
+ borderSize?: number;
16
+ borderColor?: string;
17
+ borderRadius?: number;
18
+ backgroundType?: 'solid' | 'gradient';
19
+ backgroundColor?: string;
20
+ backgroundGradientType?: 'linear' | 'circular';
21
+ backgroundGradientStartColor?: string;
22
+ backgroundGradientStartPosition?: number;
23
+ backgroundGradientEndColor?: string;
24
+ backgroundGradientEndPosition?: number;
25
+ backgroundGradientDegree?: number;
26
+ shadowType?: 'outside' | 'inside';
27
+ shadowColor?: string;
28
+ shadowHorizontalDistance?: number;
29
+ shadowVerticalDistance?: number;
30
+ shadowBlur?: number;
31
+ shadowSpread?: number;
32
+ opacity?: number;
33
+ };
34
+ declare const Wrapper: import("react").ForwardRefExoticComponent<ComponentBlockWrapperPropTypes & import("react").RefAttributes<HTMLDivElement>>;
35
+ export default Wrapper;
@@ -0,0 +1,141 @@
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
+ var __rest = (this && this.__rest) || function (s, e) {
37
+ var t = {};
38
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
39
+ t[p] = s[p];
40
+ if (s != null && typeof Object.getOwnPropertySymbols === "function")
41
+ for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
42
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
43
+ t[p[i]] = s[p[i]];
44
+ }
45
+ return t;
46
+ };
47
+ Object.defineProperty(exports, "__esModule", { value: true });
48
+ var jsx_runtime_1 = require("react/jsx-runtime");
49
+ var react_1 = require("react");
50
+ var styled_components_1 = __importStar(require("styled-components"));
51
+ var Wrapper = (0, react_1.forwardRef)(function (_a, ref) {
52
+ var children = _a.children, args = __rest(_a, ["children"]);
53
+ return ((0, jsx_runtime_1.jsx)(S_Wrapper, __assign({ ref: ref }, args, { children: children }), void 0));
54
+ });
55
+ var ShadowStyle = (0, styled_components_1.css)(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n box-shadow: ", ";\n"], ["\n box-shadow: ", ";\n"])), function (_a) {
56
+ var shadowType = _a.shadowType, shadowColor = _a.shadowColor, shadowHorizontalDistance = _a.shadowHorizontalDistance, shadowVerticalDistance = _a.shadowVerticalDistance, shadowBlur = _a.shadowBlur, shadowSpread = _a.shadowSpread;
57
+ var isInset = shadowType === 'inside';
58
+ return (isInset ? 'inset' : '') + " " + shadowHorizontalDistance + "px " + shadowVerticalDistance + "px " + shadowBlur + "px " + shadowSpread + "px " + shadowColor;
59
+ });
60
+ var S_Wrapper = styled_components_1.default.div(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n border: ", ";\n border-radius: ", "px;\n box-sizing: ", ";\n display: flex;\n height: ", "px;\n opacity: ", ";\n overflow: hidden;\n padding-bottom: ", "px;\n padding-left: ", "px;\n padding-right: ", "px;\n padding-top: ", "px;\n width: ", "px;\n z-index: ", ";\n\n ", ";\n\n ", ";\n\n ", ";\n\n ", "\n"], ["\n border: ", ";\n border-radius: ", "px;\n box-sizing: ", ";\n display: flex;\n height: ", "px;\n opacity: ", ";\n overflow: hidden;\n padding-bottom: ", "px;\n padding-left: ", "px;\n padding-right: ", "px;\n padding-top: ", "px;\n width: ", "px;\n z-index: ", ";\n\n ", ";\n\n ", ";\n\n ", ";\n\n ", "\n"])), function (_a) {
61
+ var _b = _a.borderSize, borderSize = _b === void 0 ? 0 : _b, _c = _a.borderType, borderType = _c === void 0 ? 'none' : _c, _d = _a.borderColor, borderColor = _d === void 0 ? '' : _d;
62
+ return borderSize + "px " + borderType + " " + borderColor;
63
+ }, function (_a) {
64
+ var _b = _a.borderRadius, borderRadius = _b === void 0 ? 0 : _b;
65
+ return borderRadius;
66
+ }, function (_a) {
67
+ var _b = _a.boxSizing, boxSizing = _b === void 0 ? 'content-box' : _b;
68
+ return boxSizing;
69
+ }, function (_a) {
70
+ var _b = _a.height, height = _b === void 0 ? '100%' : _b;
71
+ return height;
72
+ }, function (_a) {
73
+ var _b = _a.opacity, opacity = _b === void 0 ? 1 : _b;
74
+ return opacity;
75
+ }, function (_a) {
76
+ var _b = _a.paddingBottom, paddingBottom = _b === void 0 ? 0 : _b;
77
+ return paddingBottom;
78
+ }, function (_a) {
79
+ var _b = _a.paddingLeft, paddingLeft = _b === void 0 ? 0 : _b;
80
+ return paddingLeft;
81
+ }, function (_a) {
82
+ var _b = _a.paddingRight, paddingRight = _b === void 0 ? 0 : _b;
83
+ return paddingRight;
84
+ }, function (_a) {
85
+ var _b = _a.paddingTop, paddingTop = _b === void 0 ? 0 : _b;
86
+ return paddingTop;
87
+ }, function (_a) {
88
+ var _b = _a.width, width = _b === void 0 ? '100%' : _b;
89
+ return width;
90
+ }, function (_a) {
91
+ var _b = _a.zIndex, zIndex = _b === void 0 ? 0 : _b;
92
+ return zIndex;
93
+ }, function (_a) {
94
+ var _b = _a.alignVertical, alignVertical = _b === void 0 ? 'top' : _b;
95
+ switch (alignVertical) {
96
+ case 'top':
97
+ return 'align-Items: flex-start';
98
+ case 'center':
99
+ return 'align-Items: center';
100
+ case 'bottom':
101
+ return 'align-Items: flex-end';
102
+ default:
103
+ return 'align-Items: flex-start';
104
+ }
105
+ }, function (_a) {
106
+ var _b = _a.alignHorizontal, alignHorizontal = _b === void 0 ? 'left' : _b;
107
+ switch (alignHorizontal) {
108
+ case 'left':
109
+ return 'justify-content: flex-start';
110
+ case 'center':
111
+ return 'justify-content: center';
112
+ case 'right':
113
+ return 'justify-content: flex-end';
114
+ default:
115
+ return 'justify-content: flex-start';
116
+ }
117
+ }, function (_a) {
118
+ var _b = _a.backgroundType, backgroundType = _b === void 0 ? 'solid' : _b;
119
+ switch (backgroundType) {
120
+ case 'solid':
121
+ return BackgroundSolidType;
122
+ case 'gradient':
123
+ return BackgroundGradientType;
124
+ default:
125
+ return BackgroundSolidType;
126
+ }
127
+ }, ShadowStyle);
128
+ var BackgroundSolidType = (0, styled_components_1.css)(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n background: ", ";\n"], ["\n background: ", ";\n"])), function (_a) {
129
+ var backgroundColor = _a.backgroundColor;
130
+ return (backgroundColor ? backgroundColor : 'none');
131
+ });
132
+ var BackgroundGradientType = (0, styled_components_1.css)(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\n background: ", ";\n"], ["\n background: ", ";\n"])), function (_a) {
133
+ var _b = _a.backgroundGradientType, backgroundGradientType = _b === void 0 ? 'linear' : _b, _c = _a.backgroundGradientStartColor, backgroundGradientStartColor = _c === void 0 ? 'white' : _c, _d = _a.backgroundGradientStartPosition, backgroundGradientStartPosition = _d === void 0 ? 0 : _d, _e = _a.backgroundGradientEndColor, backgroundGradientEndColor = _e === void 0 ? 'black' : _e, _f = _a.backgroundGradientEndPosition, backgroundGradientEndPosition = _f === void 0 ? 100 : _f, _g = _a.backgroundGradientDegree, backgroundGradientDegree = _g === void 0 ? 90 : _g;
134
+ var isRadial = backgroundGradientType === 'circular';
135
+ var gradientType = isRadial ? 'radial' : backgroundGradientType;
136
+ var degree = isRadial ? '' : backgroundGradientDegree + "deg,";
137
+ return gradientType + "-gradient(" + degree + " " + backgroundGradientStartColor + " " + backgroundGradientStartPosition + "%, " + backgroundGradientEndColor + " " + backgroundGradientEndPosition + "%)";
138
+ });
139
+ exports.default = Wrapper;
140
+ Wrapper.displayName = 'Wrapper';
141
+ var templateObject_1, templateObject_2, templateObject_3, templateObject_4;
@@ -0,0 +1,2 @@
1
+ import type { ComponentBlockWrapperPropTypes } from './Wrapper';
2
+ export declare const WrapperDefaultOptions: ComponentBlockWrapperPropTypes;
@@ -0,0 +1,33 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.WrapperDefaultOptions = void 0;
4
+ exports.WrapperDefaultOptions = {
5
+ width: 600,
6
+ height: 400,
7
+ alignHorizontal: 'center',
8
+ alignVertical: 'center',
9
+ paddingBottom: 20,
10
+ paddingLeft: 20,
11
+ paddingRight: 20,
12
+ paddingTop: 20,
13
+ zIndex: 0,
14
+ borderType: 'dotted',
15
+ borderSize: 5,
16
+ borderColor: 'dodgerblue',
17
+ borderRadius: 30,
18
+ backgroundType: 'gradient',
19
+ backgroundColor: 'gray',
20
+ backgroundGradientType: 'circular',
21
+ backgroundGradientStartColor: 'blue',
22
+ backgroundGradientStartPosition: 0,
23
+ backgroundGradientEndColor: 'lightblue',
24
+ backgroundGradientEndPosition: 100,
25
+ backgroundGradientDegree: 90,
26
+ shadowType: 'outside',
27
+ shadowColor: 'gray',
28
+ shadowHorizontalDistance: 15,
29
+ shadowVerticalDistance: 10,
30
+ shadowBlur: 3,
31
+ shadowSpread: 3,
32
+ opacity: 0.85
33
+ };
@@ -0,0 +1 @@
1
+ export { default as Wrapper } from './Wrapper';
@@ -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.Wrapper = void 0;
7
+ var Wrapper_1 = require("./Wrapper");
8
+ Object.defineProperty(exports, "Wrapper", { enumerable: true, get: function () { return __importDefault(Wrapper_1).default; } });
@@ -1,3 +1,4 @@
1
- import { RichText } from './RichText';
1
+ import { RichText, RichTextPropTypes } from './RichText';
2
+ import { Text, TextPropTypes } from './Text';
2
3
  import { TwitterTimeline } from './TwitterTimeline';
3
- export { RichText, TwitterTimeline };
4
+ export { RichText, RichTextPropTypes, Text, TextPropTypes, TwitterTimeline };
@@ -1,7 +1,9 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.TwitterTimeline = exports.RichText = void 0;
3
+ exports.TwitterTimeline = exports.Text = exports.RichText = void 0;
4
4
  var RichText_1 = require("./RichText");
5
5
  Object.defineProperty(exports, "RichText", { enumerable: true, get: function () { return RichText_1.RichText; } });
6
+ var Text_1 = require("./Text");
7
+ Object.defineProperty(exports, "Text", { enumerable: true, get: function () { return Text_1.Text; } });
6
8
  var TwitterTimeline_1 = require("./TwitterTimeline");
7
9
  Object.defineProperty(exports, "TwitterTimeline", { enumerable: true, get: function () { return TwitterTimeline_1.TwitterTimeline; } });
@@ -26,8 +26,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
26
26
  };
27
27
  Object.defineProperty(exports, "__esModule", { value: true });
28
28
  var jsx_runtime_1 = require("react/jsx-runtime");
29
- var sections_1 = require("../../../DynamicLayout/sections");
30
- var CustomSection_1 = require("../../../DynamicLayout/sections/CustomSection");
29
+ var sections_1 = require("@sub/DynamicLayout/sections");
31
30
  var SectionBox_1 = __importDefault(require("./SectionBox"));
32
31
  function EditModeSectionMatcher(_a) {
33
32
  var filteredSortedSection = _a.filteredSortedSection, scrollDownTargetSectionId = _a.scrollDownTargetSectionId, editingSectionId = _a.editingSectionId, onClickEditSection = _a.onClickEditSection;
@@ -37,6 +36,9 @@ function EditModeSectionMatcher(_a) {
37
36
  exports.default = EditModeSectionMatcher;
38
37
  function Matcher(_a) {
39
38
  var props = __rest(_a, []);
39
+ if (props.type === 'CUSTOM') {
40
+ return (0, jsx_runtime_1.jsx)(sections_1.CustomSection, __assign({}, props), void 0);
41
+ }
40
42
  var schema = props.manifest.schema;
41
43
  switch (schema) {
42
44
  case 'BASE_INTRO':
@@ -53,8 +55,6 @@ function Matcher(_a) {
53
55
  return (0, jsx_runtime_1.jsx)(sections_1.FullscreenIframeSection, __assign({}, props), void 0);
54
56
  case 'PRG_MEMBERSHIP_DISPLAY':
55
57
  return (0, jsx_runtime_1.jsx)(sections_1.EditTypeMembershipSection, __assign({}, props), void 0);
56
- case 'CUSTOM_SECTION':
57
- return (0, jsx_runtime_1.jsx)(CustomSection_1.CustomSection, __assign({}, props), void 0);
58
58
  default:
59
59
  return (0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, {}, void 0);
60
60
  }
@@ -1,6 +1,9 @@
1
- /// <reference types="react" />
1
+ import { CSSProperties } from 'react';
2
2
  import type { ISection } from '../../types';
3
- declare function Section({ children, ...props }: ISection & {
3
+ declare type SectionPropTypes = ISection & {
4
4
  children?: React.ReactNode;
5
- }): JSX.Element;
5
+ } & {
6
+ overrideStyles?: CSSProperties;
7
+ };
8
+ declare function Section({ children, overrideStyles, ...props }: SectionPropTypes): JSX.Element;
6
9
  export default Section;
@@ -31,24 +31,30 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
31
31
  Object.defineProperty(exports, "__esModule", { value: true });
32
32
  var jsx_runtime_1 = require("react/jsx-runtime");
33
33
  var react_1 = require("react");
34
+ var util_1 = require("@sub/DynamicLayout/sections/CustomSection/util");
34
35
  var styled_components_1 = __importDefault(require("styled-components"));
35
36
  var pdsOriginal_1 = require("../pdsOriginal");
36
37
  var YouTubeIframe_1 = require("../YouTubeIframe");
38
+ var CustomSectionBackgroundMedia_1 = require("./components/CustomSectionBackgroundMedia");
37
39
  var sectionContext_1 = require("./sectionContext");
38
40
  function Section(_a) {
39
- var children = _a.children, props = __rest(_a, ["children"]);
40
- return ((0, jsx_runtime_1.jsx)(sectionContext_1.sectionContext.Provider, __assign({ value: props }, { children: (0, jsx_runtime_1.jsxs)(S_Section, __assign({ isIframeSection: props.manifest.schema === 'EXP_IFRAME' }, { children: [(0, jsx_runtime_1.jsx)(Background, {}, void 0), children] }), void 0) }), void 0));
41
+ var _b;
42
+ var children = _a.children, overrideStyles = _a.overrideStyles, props = __rest(_a, ["children", "overrideStyles"]);
43
+ var _c = (0, react_1.useState)(false), isHover = _c[0], setIsHover = _c[1];
44
+ return ((0, jsx_runtime_1.jsx)(sectionContext_1.sectionContext.Provider, __assign({ value: props }, { children: (0, jsx_runtime_1.jsxs)(S_Section, __assign({ style: overrideStyles, isIframeSection: ((_b = props.manifest) === null || _b === void 0 ? void 0 : _b.schema) === 'EXP_IFRAME', onMouseEnter: function () { return setIsHover(true); }, onMouseMove: function () { return !isHover && setIsHover(true); }, onMouseLeave: function () { return setIsHover(false); } }, { children: [(0, jsx_runtime_1.jsx)(Background, { isHover: isHover }, void 0), children] }), void 0) }), void 0));
41
45
  }
42
46
  var S_Section = styled_components_1.default.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n box-sizing: border-box;\n height: ", ";\n position: relative;\n width: 100%;\n z-index: 0;\n"], ["\n box-sizing: border-box;\n height: ", ";\n position: relative;\n width: 100%;\n z-index: 0;\n"])), function (_a) {
43
47
  var isIframeSection = _a.isIframeSection;
44
48
  return (isIframeSection ? '100%' : 'auto');
45
49
  });
46
- function Background() {
50
+ function Background(_a) {
51
+ var isHover = _a.isHover;
47
52
  var context = (0, react_1.useContext)(sectionContext_1.sectionContext);
48
- var id = context.id;
49
- var _a = context.styles, backgroundMediaSrc = _a.backgroundMediaSrc, backgroundColorInHex = _a.backgroundColorInHex, backgroundOverlayColorInHex = _a.backgroundOverlayColorInHex, backgroundMediaType = _a.backgroundMediaType;
53
+ var id = context.id, jsonProperties = context.jsonProperties;
54
+ var _b = context.styles, backgroundMediaSrc = _b.backgroundMediaSrc, backgroundColorInHex = _b.backgroundColorInHex, backgroundOverlayColorInHex = _b.backgroundOverlayColorInHex, backgroundMediaType = _b.backgroundMediaType;
50
55
  var backgroundRef = (0, react_1.useRef)(null);
51
- var _b = (0, react_1.useState)({ width: 0, height: 0 }), youtubeSize = _b[0], setYoutubeSize = _b[1];
56
+ var backgroundOverlayRef = (0, react_1.useRef)(null);
57
+ var _c = (0, react_1.useState)({ width: 0, height: 0 }), youtubeSize = _c[0], setYoutubeSize = _c[1];
52
58
  var getResponsiveYoutubeSize = (0, react_1.useCallback)(function () {
53
59
  var backgroundWrapper = backgroundRef.current;
54
60
  if (!backgroundWrapper)
@@ -88,6 +94,24 @@ function Background() {
88
94
  observer.disconnect();
89
95
  };
90
96
  }, []);
97
+ (0, react_1.useEffect)(function () {
98
+ var sectionElement = backgroundRef.current;
99
+ var sectionOverlayElement = backgroundOverlayRef.current;
100
+ if (sectionElement && style && hoverStyle) {
101
+ if ('background' in style && 'background' in hoverStyle) {
102
+ sectionElement.style.background = isHover
103
+ ? hoverStyle.background
104
+ : style.background;
105
+ }
106
+ }
107
+ if (sectionOverlayElement && overlayStyle && overlayHoverStyle) {
108
+ if ('background' in overlayStyle && 'background' in overlayHoverStyle) {
109
+ sectionOverlayElement.style.background = isHover
110
+ ? overlayHoverStyle.background
111
+ : overlayStyle.background;
112
+ }
113
+ }
114
+ }, [isHover]);
91
115
  var backgroundMedia = (0, react_1.useMemo)(function () {
92
116
  switch (backgroundMediaType) {
93
117
  case 'IMAGE':
@@ -101,7 +125,13 @@ function Background() {
101
125
  return (0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, {}, void 0);
102
126
  }
103
127
  }, [youtubeSize, id, backgroundMediaType, backgroundMediaSrc]);
104
- return ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(S_BackgroundWrapper, __assign({ ref: backgroundRef, color: backgroundColorInHex }, { children: backgroundMediaSrc && backgroundMedia }), void 0), (0, jsx_runtime_1.jsx)(S_BackgroundOverlay, { color: backgroundOverlayColorInHex }, void 0)] }, void 0));
128
+ if (!jsonProperties) {
129
+ return ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(S_BackgroundWrapper, __assign({ ref: backgroundRef, color: backgroundColorInHex }, { children: backgroundMediaSrc && backgroundMedia }), void 0), (0, jsx_runtime_1.jsx)(S_BackgroundOverlay, { color: backgroundOverlayColorInHex }, void 0)] }, void 0));
130
+ }
131
+ var _d = (0, util_1.parseJsonProperties)(jsonProperties, 'DESKTOP'), style = _d.style, hoverStyle = _d.hoverStyle, overlayStyle = _d.overlayStyle, overlayHoverStyle = _d.overlayHoverStyle, layout = _d.layout, effect = _d.effect;
132
+ return ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(S_CustomBackgroundWrapper, __assign({ className: "CustomSection", ref: backgroundRef, style: __assign(__assign(__assign(__assign({}, layout), effect), style), { visibility: isHover ? hoverStyle.visibility : style.visibility }) }, { children: jsonProperties.CB_STYLE_PROP_BGMEDIA && ((0, jsx_runtime_1.jsx)(CustomSectionBackgroundMedia_1.CustomSectionBackgroundMedia, { specs: jsonProperties.CB_STYLE_PROP_BGMEDIA, playerId: id, mediaType: isHover
133
+ ? jsonProperties.CB_STYLE_PROP_BGMEDIA.CB_STYLE_PROP_BGMEDIA_SPEC_TYPE
134
+ : jsonProperties.CB_STYLE_PROP_BGMEDIA['CB_STYLE_PROP_BGMEDIA_SPEC_TYPE:HOVER'] }, void 0)) }), void 0), (0, jsx_runtime_1.jsx)(S_CustomBackgroundOverlay, { className: "Overlay", ref: backgroundOverlayRef }, void 0)] }, void 0));
105
135
  }
106
136
  var S_BackgroundWrapper = styled_components_1.default.div(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n align-items: center;\n background-color: ", ";\n bottom: 0;\n display: flex;\n justify-content: center;\n left: 0;\n overflow: hidden;\n position: absolute;\n right: 0;\n top: 0;\n z-index: -2;\n"], ["\n align-items: center;\n background-color: ", ";\n bottom: 0;\n display: flex;\n justify-content: center;\n left: 0;\n overflow: hidden;\n position: absolute;\n right: 0;\n top: 0;\n z-index: -2;\n"])), function (_a) {
107
137
  var color = _a.color;
@@ -118,5 +148,7 @@ var S_YoutubeContainer = styled_components_1.default.div(templateObject_4 || (te
118
148
  var width = _a.width;
119
149
  return width + "px";
120
150
  });
151
+ var S_CustomBackgroundWrapper = styled_components_1.default.div(templateObject_5 || (templateObject_5 = __makeTemplateObject(["\n align-items: center;\n bottom: 0;\n display: flex;\n justify-content: center;\n left: 0;\n overflow: hidden;\n position: absolute;\n right: 0;\n top: 0;\n z-index: -2;\n"], ["\n align-items: center;\n bottom: 0;\n display: flex;\n justify-content: center;\n left: 0;\n overflow: hidden;\n position: absolute;\n right: 0;\n top: 0;\n z-index: -2;\n"])));
152
+ var S_CustomBackgroundOverlay = styled_components_1.default.div(templateObject_6 || (templateObject_6 = __makeTemplateObject(["\n bottom: 0;\n left: 0;\n position: absolute;\n right: 0;\n top: 0;\n z-index: -1;\n"], ["\n bottom: 0;\n left: 0;\n position: absolute;\n right: 0;\n top: 0;\n z-index: -1;\n"])));
121
153
  exports.default = Section;
122
- var templateObject_1, templateObject_2, templateObject_3, templateObject_4;
154
+ var templateObject_1, templateObject_2, templateObject_3, templateObject_4, templateObject_5, templateObject_6;
@@ -0,0 +1,9 @@
1
+ /// <reference types="react" />
2
+ import type { CB_STYLE_PROP_BGMEDIA_SPECS } from '@sub/DynamicLayout/types';
3
+ declare type Props = {
4
+ specs: CB_STYLE_PROP_BGMEDIA_SPECS;
5
+ playerId: number;
6
+ mediaType: string;
7
+ };
8
+ export declare function CustomSectionBackgroundMedia({ specs, playerId, mediaType }: Props): JSX.Element;
9
+ export {};