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
package/README.md CHANGED
@@ -1 +1,12 @@
1
- pds-dev-kit-web-test
1
+ # PDS
2
+
3
+ publ design system 프로젝트
4
+
5
+ ## 프로젝트 목적
6
+
7
+ 이용자에게 publ 서비스를 쉽게 이해하기 위하여 기능이나 목적의 유형에 맞춘 일관된 인터페이스를 제공하고, publ팀에는 제품을 개발하는데 필요한 화면 구성의 기획, 시각적인 표현, 최종 산출물까지 이어질 수 있는 품질 관리를 달성하기 위함
8
+
9
+ ## 참고 문서
10
+
11
+ 해당 패키지 버전은 PDS 문서 2.0 버전을 따르고 있음
12
+ [PDS 2.0 문서 링크](https://design.docs.publ.biz/pds-project/)
@@ -0,0 +1,8 @@
1
+ /// <reference types="react" />
2
+ export declare type ImagePropTypes = {
3
+ imageSrc: string;
4
+ viewType?: 'fit' | 'fill';
5
+ imagePosition?: 'left-top' | 'left-center' | 'left-bottom' | 'center-top' | 'center-center' | 'center-bottom' | 'right-top' | 'right-center' | 'right-bottom';
6
+ };
7
+ declare const Image: import("react").ForwardRefExoticComponent<ImagePropTypes & import("react").RefAttributes<HTMLImageElement>>;
8
+ export default Image;
@@ -0,0 +1,46 @@
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
+ var jsx_runtime_1 = require("react/jsx-runtime");
11
+ var react_1 = require("react");
12
+ var styled_components_1 = __importDefault(require("styled-components"));
13
+ var Image = (0, react_1.forwardRef)(function (_a, ref) {
14
+ var imageSrc = _a.imageSrc, _b = _a.viewType, viewType = _b === void 0 ? 'fit' : _b, _c = _a.imagePosition, imagePosition = _c === void 0 ? 'center-center' : _c;
15
+ return (0, jsx_runtime_1.jsx)(S_Image, { ref: ref, src: imageSrc, viewType: viewType, imagePosition: imagePosition }, void 0);
16
+ });
17
+ var S_Image = styled_components_1.default.img(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n height: ", ";\n object-fit: ", ";\n object-fit: ", ";\n width: ", ";\n"], ["\n height: ", ";\n object-fit: ", ";\n object-fit: ", ";\n width: ", ";\n"])), function (_a) {
18
+ var viewType = _a.viewType;
19
+ return (viewType === 'fit' ? 'auto' : '100%');
20
+ }, function (_a) {
21
+ var viewType = _a.viewType;
22
+ switch (viewType) {
23
+ case 'fit':
24
+ return 'contain';
25
+ case 'fill':
26
+ return 'cover';
27
+ default:
28
+ return 'contain';
29
+ }
30
+ }, function (_a) {
31
+ var viewType = _a.viewType;
32
+ switch (viewType) {
33
+ case 'fit':
34
+ return 'contain';
35
+ case 'fill':
36
+ return 'cover';
37
+ default:
38
+ return 'contain';
39
+ }
40
+ }, function (_a) {
41
+ var viewType = _a.viewType;
42
+ return (viewType === 'fit' ? 'auto' : '100%');
43
+ });
44
+ exports.default = Image;
45
+ Image.displayName = 'Image';
46
+ var templateObject_1;
@@ -0,0 +1,2 @@
1
+ import Image, { ImagePropTypes } from './Image';
2
+ export { Image, ImagePropTypes };
@@ -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.Image = void 0;
7
+ var Image_1 = __importDefault(require("./Image"));
8
+ exports.Image = Image_1.default;
@@ -1,7 +1,6 @@
1
1
  /// <reference types="react" />
2
- declare type RichTextPropTypes = {
2
+ export declare type RichTextPropTypes = {
3
3
  text: string;
4
- style: React.CSSProperties;
5
4
  };
6
- declare function RichText({ text, style }: RichTextPropTypes): JSX.Element;
5
+ declare function RichText({ text }: RichTextPropTypes): JSX.Element;
7
6
  export default RichText;
@@ -10,10 +10,10 @@ Object.defineProperty(exports, "__esModule", { value: true });
10
10
  var jsx_runtime_1 = require("react/jsx-runtime");
11
11
  var styled_components_1 = __importDefault(require("styled-components"));
12
12
  function RichText(_a) {
13
- var text = _a.text, style = _a.style;
14
- return (0, jsx_runtime_1.jsx)(S_RichText, { style: style, dangerouslySetInnerHTML: { __html: text } }, void 0);
13
+ var text = _a.text;
14
+ return (0, jsx_runtime_1.jsx)(S_RichText, { dangerouslySetInnerHTML: { __html: text } }, void 0);
15
15
  }
16
- var S_RichText = styled_components_1.default.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n /* NOTE: \uAD1C\uCC2E\uC740\uC9C0? */\n height: 100%;\n line-height: 1.5;\n /* NOTE: \uAD1C\uCC2E\uC740\uC9C0? */\n overflow: hidden;\n text-align: left;\n white-space: pre-wrap;\n width: 100%;\n word-break: break-word;\n\n a {\n color: ", ";\n }\n\n img {\n width: 100%;\n }\n\n figure {\n margin: 0;\n max-width: 100%;\n\n img {\n width: 100%;\n }\n }\n\n blockquote {\n border-left: 4px solid ", ";\n margin: 4px;\n padding: 4px;\n\n p {\n font-style: oblique;\n margin: 0;\n }\n }\n\n iframe {\n border: none;\n /* NOTE: \uAD1C\uCC2E\uC740\uC9C0? */\n width: 100%;\n }\n"], ["\n /* NOTE: \uAD1C\uCC2E\uC740\uC9C0? */\n height: 100%;\n line-height: 1.5;\n /* NOTE: \uAD1C\uCC2E\uC740\uC9C0? */\n overflow: hidden;\n text-align: left;\n white-space: pre-wrap;\n width: 100%;\n word-break: break-word;\n\n a {\n color: ", ";\n }\n\n img {\n width: 100%;\n }\n\n figure {\n margin: 0;\n max-width: 100%;\n\n img {\n width: 100%;\n }\n }\n\n blockquote {\n border-left: 4px solid ", ";\n margin: 4px;\n padding: 4px;\n\n p {\n font-style: oblique;\n margin: 0;\n }\n }\n\n iframe {\n border: none;\n /* NOTE: \uAD1C\uCC2E\uC740\uC9C0? */\n width: 100%;\n }\n"])), function (_a) {
16
+ var S_RichText = styled_components_1.default.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n line-height: 1.5;\n text-align: left;\n white-space: pre-wrap;\n width: 100%;\n word-break: break-word;\n\n a {\n color: ", ";\n }\n\n img {\n width: 100%;\n }\n\n figure {\n margin: 0;\n max-width: 100%;\n\n img {\n width: 100%;\n }\n }\n\n blockquote {\n border-left: 4px solid ", ";\n margin: 4px;\n padding: 4px;\n\n p {\n font-style: oblique;\n margin: 0;\n }\n }\n\n iframe {\n border: none;\n }\n"], ["\n line-height: 1.5;\n text-align: left;\n white-space: pre-wrap;\n width: 100%;\n word-break: break-word;\n\n a {\n color: ", ";\n }\n\n img {\n width: 100%;\n }\n\n figure {\n margin: 0;\n max-width: 100%;\n\n img {\n width: 100%;\n }\n }\n\n blockquote {\n border-left: 4px solid ", ";\n margin: 4px;\n padding: 4px;\n\n p {\n font-style: oblique;\n margin: 0;\n }\n }\n\n iframe {\n border: none;\n }\n"])), function (_a) {
17
17
  var theme = _a.theme;
18
18
  return theme.ui_papp_post_notice_link;
19
19
  }, function (_a) {
@@ -1,2 +1,2 @@
1
- import RichText from './RichText';
2
- export { RichText };
1
+ import RichText, { RichTextPropTypes } from './RichText';
2
+ export { RichText, RichTextPropTypes };
@@ -0,0 +1,13 @@
1
+ /// <reference types="react" />
2
+ export declare type TextPropTypes = {
3
+ text: string;
4
+ fontFamilyName?: 'Pretendard' | 'sans-serif' | 'serif';
5
+ fontWeight?: number;
6
+ fontSize?: number;
7
+ lineHeight?: number;
8
+ letterSpacing?: number;
9
+ textColor?: string;
10
+ textAlign?: 'left' | 'center' | 'right';
11
+ };
12
+ declare const Text: import("react").ForwardRefExoticComponent<TextPropTypes & import("react").RefAttributes<HTMLParagraphElement>>;
13
+ export default Text;
@@ -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; } });
@@ -27,7 +27,6 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
27
27
  Object.defineProperty(exports, "__esModule", { value: true });
28
28
  var jsx_runtime_1 = require("react/jsx-runtime");
29
29
  var sections_1 = require("../../../DynamicLayout/sections");
30
- var CustomSection_1 = require("../../../DynamicLayout/sections/CustomSection");
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
  }