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,42 @@
1
+ "use strict";
2
+ var __assign = (this && this.__assign) || function () {
3
+ __assign = Object.assign || function(t) {
4
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
5
+ s = arguments[i];
6
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
7
+ t[p] = s[p];
8
+ }
9
+ return t;
10
+ };
11
+ return __assign.apply(this, arguments);
12
+ };
13
+ Object.defineProperty(exports, "__esModule", { value: true });
14
+ function replaceUndefinedValues(jsonData) {
15
+ return Object.entries(jsonData).reduce(function (acc, cur) {
16
+ var _a;
17
+ var _b = cur, currentPropKey = _b[0], currentProps = _b[1];
18
+ var propKey = ['CB_STYLE_PROP', 'CB_EFFECT_PROP', 'CB_LAYOUT_PROP'];
19
+ var isIncludedPropKey = propKey.some(function (key) { return currentPropKey.includes(key); });
20
+ if (isIncludedPropKey) {
21
+ var specs = Object.keys(currentProps).reduce(function (accSpecs, curSpec) {
22
+ if (currentProps[curSpec] === undefined || currentProps[curSpec] === null) {
23
+ var undefinedMobileKey = curSpec.replace(':MOBILE', '');
24
+ if (undefinedMobileKey in currentProps) {
25
+ accSpecs[curSpec] = currentProps[undefinedMobileKey];
26
+ }
27
+ else {
28
+ accSpecs[curSpec] = currentProps[curSpec];
29
+ }
30
+ }
31
+ return __assign({}, accSpecs);
32
+ }, currentProps);
33
+ return __assign(__assign({}, acc), (_a = {}, _a[currentPropKey] = specs, _a));
34
+ }
35
+ return acc;
36
+ }, jsonData);
37
+ }
38
+ exports.default = replaceUndefinedValues;
39
+ // eslint-disable-next-line @typescript-eslint/no-unused-vars
40
+ function hasOwnProperty(obj, prop) {
41
+ return Object.prototype.hasOwnProperty.call(obj, prop);
42
+ }
@@ -0,0 +1,18 @@
1
+ import type { Device } from '../util/types';
2
+ export declare function parseStyleTextToCSSProp<T>({ availableSpecCodes, props, propKey, device }: ParseStyleTextProps<T>): {
3
+ style: {};
4
+ hoverStyle: {};
5
+ };
6
+ declare type ParseStyleTextProps<T> = {
7
+ availableSpecCodes: Array<keyof T>;
8
+ props: T;
9
+ propKey: 'TEXT';
10
+ device: Device;
11
+ } | {
12
+ availableSpecCodes: Array<keyof T>;
13
+ props: T;
14
+ propKey: 'BTNTEXT';
15
+ device: Device;
16
+ };
17
+ export declare function getTextCSSPropKey(key: string, cbName: 'TEXT' | 'BTNTEXT'): "" | "color" | "fontFamily" | "letterSpacing" | "lineHeight" | "fontSize" | "fontWeight";
18
+ export {};
@@ -0,0 +1,79 @@
1
+ "use strict";
2
+ var __assign = (this && this.__assign) || function () {
3
+ __assign = Object.assign || function(t) {
4
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
5
+ s = arguments[i];
6
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
7
+ t[p] = s[p];
8
+ }
9
+ return t;
10
+ };
11
+ return __assign.apply(this, arguments);
12
+ };
13
+ Object.defineProperty(exports, "__esModule", { value: true });
14
+ exports.getTextCSSPropKey = exports.parseStyleTextToCSSProp = void 0;
15
+ function parseStyleTextToCSSProp(_a) {
16
+ var availableSpecCodes = _a.availableSpecCodes, props = _a.props, propKey = _a.propKey, device = _a.device;
17
+ return availableSpecCodes.reduce(function (acc, currentKey) {
18
+ var _a, _b, _c, _d;
19
+ var stringifiedKey = currentKey.toString();
20
+ var keyWithDevice = device === 'DESKTOP' ? currentKey : stringifiedKey + ":MOBILE";
21
+ var keyWithHover = keyWithDevice.toString() + ":HOVER";
22
+ var cssPropertyKey = getTextCSSPropKey(stringifiedKey, propKey);
23
+ var value = props[keyWithDevice];
24
+ var hoverValue = props[keyWithHover];
25
+ if (cssPropertyKey === 'lineHeight') {
26
+ var numValue = typeof value === 'number' ? value / 100 : value;
27
+ var numHoverValue = typeof hoverValue === 'number' ? hoverValue / 100 : hoverValue;
28
+ return {
29
+ style: __assign(__assign({}, acc.style), (_a = {}, _a[cssPropertyKey] = numValue, _a)),
30
+ hoverStyle: __assign(__assign({}, acc.hoverStyle), (_b = {}, _b[cssPropertyKey] = numHoverValue, _b))
31
+ };
32
+ }
33
+ return {
34
+ style: __assign(__assign({}, acc.style), (_c = {}, _c[cssPropertyKey] = value, _c)),
35
+ hoverStyle: __assign(__assign({}, acc.hoverStyle), (_d = {}, _d[cssPropertyKey] = hoverValue, _d))
36
+ };
37
+ }, {
38
+ style: {},
39
+ hoverStyle: {}
40
+ });
41
+ }
42
+ exports.parseStyleTextToCSSProp = parseStyleTextToCSSProp;
43
+ function getTextCSSPropKey(key, cbName) {
44
+ switch (key) {
45
+ case "CB_STYLE_PROP_" + cbName + "_SPEC_COLOR":
46
+ case "CB_STYLE_PROP_" + cbName + "_SPEC_COLOR:HOVER":
47
+ case "CB_STYLE_PROP_" + cbName + "_SPEC_COLOR:MOBILE":
48
+ case "CB_STYLE_PROP_" + cbName + "_SPEC_COLOR:MOBILE:HOVER":
49
+ return 'color';
50
+ case "CB_STYLE_PROP_" + cbName + "_SPEC_TYPEFACE":
51
+ case "CB_STYLE_PROP_" + cbName + "_SPEC_TYPEFACE:HOVER":
52
+ case "CB_STYLE_PROP_" + cbName + "_SPEC_TYPEFACE:MOBILE":
53
+ case "CB_STYLE_PROP_" + cbName + "_SPEC_TYPEFACE:MOBILE:HOVER":
54
+ return 'fontFamily';
55
+ case "CB_STYLE_PROP_" + cbName + "_SPEC_LETTERSPACING":
56
+ case "CB_STYLE_PROP_" + cbName + "_SPEC_LETTERSPACING:HOVER":
57
+ case "CB_STYLE_PROP_" + cbName + "_SPEC_LETTERSPACING:MOBILE":
58
+ case "CB_STYLE_PROP_" + cbName + "_SPEC_LETTERSPACING:MOBILE:HOVER":
59
+ return 'letterSpacing';
60
+ case "CB_STYLE_PROP_" + cbName + "_SPEC_LINEHEIGHT":
61
+ case "CB_STYLE_PROP_" + cbName + "_SPEC_LINEHEIGHT:HOVER":
62
+ case "CB_STYLE_PROP_" + cbName + "_SPEC_LINEHEIGHT:MOBILE":
63
+ case "CB_STYLE_PROP_" + cbName + "_SPEC_LINEHEIGHT:MOBILE:HOVER":
64
+ return 'lineHeight';
65
+ case "CB_STYLE_PROP_" + cbName + "_SPEC_SIZE":
66
+ case "CB_STYLE_PROP_" + cbName + "_SPEC_SIZE:HOVER":
67
+ case "CB_STYLE_PROP_" + cbName + "_SPEC_SIZE:MOBILE":
68
+ case "CB_STYLE_PROP_" + cbName + "_SPEC_SIZE:MOBILE:HOVER":
69
+ return 'fontSize';
70
+ case "CB_STYLE_PROP_" + cbName + "_SPEC_WEIGHT":
71
+ case "CB_STYLE_PROP_" + cbName + "_SPEC_WEIGHT:HOVER":
72
+ case "CB_STYLE_PROP_" + cbName + "_SPEC_WEIGHT:MOBILE":
73
+ case "CB_STYLE_PROP_" + cbName + "_SPEC_WEIGHT:MOBILE:HOVER":
74
+ return 'fontWeight';
75
+ default:
76
+ return '';
77
+ }
78
+ }
79
+ exports.getTextCSSPropKey = getTextCSSPropKey;
@@ -1,99 +1,50 @@
1
- import type { AccordionItem } from './BlockMatcher/blocks/Accordion';
2
- import type { CarouselSettings, ContentsCarouselItem } from './BlockMatcher/blocks/ContentsCarousel/ContentsCarousel';
3
- import type { ImgCarouselItem } from './BlockMatcher/blocks/ImageCarousel/ImageCarousel';
4
- import type React from 'react';
5
- export declare const ComponentNames: {
6
- TEXT: string;
7
- IMAGE: string;
8
- BUTTON: string;
9
- RICH_TEXT: string;
10
- DIVIDER: string;
11
- YOUTUBE: string;
12
- TWITTER: string;
13
- INSTAGRAM: string;
14
- ACCORDION: string;
15
- CONTENTS_CAROUSEL: string;
16
- IMAGE_CAROUSEL: string;
17
- };
18
- export declare type BlockComponents = typeof ComponentNames;
19
- export declare type BlockNames = keyof BlockComponents;
20
- export declare type BlockId = string;
21
- export declare type LinkTypes = 'INTERNAL' | 'EXTERNAL';
22
- export declare type LinkContentType = {
23
- type: LinkTypes;
24
- url: string;
25
- };
26
- export declare type TextComponentDataType = {
27
- type: BlockComponents['TEXT'];
28
- value: {
29
- text: string;
30
- };
31
- };
32
- export declare type ImageComponentDataType = {
33
- type: BlockComponents['IMAGE'];
34
- value: {
35
- src: string;
36
- alt: string;
37
- };
38
- };
39
- export declare type RichTextComponentDataType = {
40
- type: BlockComponents['RICH_TEXT'];
41
- value: {
42
- text: string;
43
- };
44
- };
45
- export declare type ButtonComponentDataType = {
46
- type: BlockComponents['BUTTON'];
47
- value: {
48
- text: string;
49
- };
50
- };
51
- export declare type DividerComponentDataType = {
52
- type: BlockComponents['DIVIDER'];
53
- value: {
54
- size: number;
55
- };
56
- };
57
- export declare type TwitterComponentDataType = {
58
- type: BlockComponents['TWITTER'];
59
- value: {
60
- accountId: string;
61
- };
62
- };
63
- export declare type YoutubeComponentDataType = {
64
- type: BlockComponents['YOUTUBE'];
65
- value: {
66
- src: string;
67
- startAt: number;
68
- endAt: number;
69
- };
70
- };
71
- export declare type AccordionComponentDataType = {
72
- type: BlockComponents['ACCORDION'];
73
- value: {
74
- accordionItems: AccordionItem[];
75
- openedItemId?: string;
76
- };
77
- };
78
- export declare type ContentsCarouselDataType = {
79
- type: BlockComponents['ACCORDION'];
80
- value: {
81
- contentsCarouselItems: ContentsCarouselItem[];
82
- carouselSettings: CarouselSettings;
83
- };
84
- };
85
- export declare type ImgCarouselDataType = {
86
- type: BlockComponents['IMAGE_CAROUSEL'];
87
- value: {
88
- imgCarouselItems: ImgCarouselItem[];
89
- carouselSettings: CarouselSettings;
90
- };
91
- };
92
- export declare type ComponentDataPairType = TextComponentDataType | ImageComponentDataType | TwitterComponentDataType | RichTextComponentDataType | ButtonComponentDataType | DividerComponentDataType | YoutubeComponentDataType | AccordionComponentDataType | ContentsCarouselDataType | ImgCarouselDataType;
93
- export declare type ContentType = {
94
- data: ComponentDataPairType;
95
- link?: LinkContentType;
96
- };
97
- export declare type StyleType = React.CSSProperties;
98
- export declare type LayoutType = React.CSSProperties;
99
- export declare type AnimationType = React.CSSProperties;
1
+ import type { CB_BTN_PROPERTIES_TYPE, CB_DIVIDER_PROPERTIES_TYPE, CB_IMG_PROPERTIES_TYPE, CB_RICHTEXT_PROPERTIES_TYPE, CB_TEXT_PROPERTIES_TYPE, CB_TWITTER_PROPERTIES_TYPE, CB_YOUTUBE_PROPERTIES_TYPE } from './util/types';
2
+ export declare type CB_TYPES = 'GENERAL';
3
+ export declare type ComponentBlock = CB_TEXT_TYPE | CB_BTN_TYPE | CB_RICHTEXT | CB_DIVIDER | CB_IMG | CB_YOUTUBE | CB_TWITTER;
4
+ declare type GeneralCustomSectionType = {
5
+ id: number;
6
+ type: 'GENERAL';
7
+ availablePlugins: Array<string>;
8
+ queryableTapSrc: string;
9
+ queryableDefinitionPreset: string;
10
+ dynamicLayoutSectionId: number;
11
+ };
12
+ export declare type AllCBProperties = CB_TEXT_PROPERTIES_TYPE | CB_BTN_PROPERTIES_TYPE | CB_RICHTEXT_PROPERTIES_TYPE | CB_RICHTEXT_PROPERTIES_TYPE | CB_DIVIDER_PROPERTIES_TYPE | CB_YOUTUBE_PROPERTIES_TYPE | CB_IMG_PROPERTIES_TYPE | CB_TWITTER_PROPERTIES_TYPE;
13
+ export declare type CB_TEXT_TYPE = GeneralCustomSectionType & {
14
+ componentBlockCode: CB_ALL_CODES.CB_TEXT;
15
+ properties: CB_TEXT_PROPERTIES_TYPE;
16
+ };
17
+ export declare type CB_BTN_TYPE = GeneralCustomSectionType & {
18
+ componentBlockCode: CB_ALL_CODES.CB_BTN;
19
+ properties: CB_BTN_PROPERTIES_TYPE;
20
+ };
21
+ export declare type CB_RICHTEXT = GeneralCustomSectionType & {
22
+ componentBlockCode: CB_ALL_CODES.CB_RICHTEXT;
23
+ properties: CB_RICHTEXT_PROPERTIES_TYPE;
24
+ };
25
+ export declare type CB_DIVIDER = GeneralCustomSectionType & {
26
+ componentBlockCode: CB_ALL_CODES.CB_DIVIDER;
27
+ properties: CB_DIVIDER_PROPERTIES_TYPE;
28
+ };
29
+ export declare type CB_IMG = GeneralCustomSectionType & {
30
+ componentBlockCode: CB_ALL_CODES.CB_IMG;
31
+ properties: CB_IMG_PROPERTIES_TYPE;
32
+ };
33
+ export declare type CB_YOUTUBE = GeneralCustomSectionType & {
34
+ componentBlockCode: CB_ALL_CODES.CB_YOUTUBE;
35
+ properties: CB_YOUTUBE_PROPERTIES_TYPE;
36
+ };
37
+ export declare type CB_TWITTER = GeneralCustomSectionType & {
38
+ componentBlockCode: CB_ALL_CODES.CB_TWITTER;
39
+ properties: CB_TWITTER_PROPERTIES_TYPE;
40
+ };
41
+ export declare enum CB_ALL_CODES {
42
+ CB_TEXT = "CB_TEXT",
43
+ CB_BTN = "CB_BTN",
44
+ CB_RICHTEXT = "CB_RICHTEXT",
45
+ CB_DIVIDER = "CB_DIVIDER",
46
+ CB_IMG = "CB_IMG",
47
+ CB_YOUTUBE = "CB_YOUTUBE",
48
+ CB_TWITTER = "CB_TWITTER"
49
+ }
50
+ export {};
@@ -1,16 +1,13 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ComponentNames = void 0;
4
- exports.ComponentNames = {
5
- TEXT: 'TEXT',
6
- IMAGE: 'IMAGE',
7
- BUTTON: 'BUTTON',
8
- RICH_TEXT: 'RICH_TEXT',
9
- DIVIDER: 'DIVIDER',
10
- YOUTUBE: 'YOUTUBE',
11
- TWITTER: 'TWITTER',
12
- INSTAGRAM: 'INSTAGRAM',
13
- ACCORDION: 'ACCORDION',
14
- CONTENTS_CAROUSEL: 'CONTENTS_CAROUSEL',
15
- IMAGE_CAROUSEL: 'IMAGE_CAROUSEL'
16
- };
3
+ exports.CB_ALL_CODES = void 0;
4
+ var CB_ALL_CODES;
5
+ (function (CB_ALL_CODES) {
6
+ CB_ALL_CODES["CB_TEXT"] = "CB_TEXT";
7
+ CB_ALL_CODES["CB_BTN"] = "CB_BTN";
8
+ CB_ALL_CODES["CB_RICHTEXT"] = "CB_RICHTEXT";
9
+ CB_ALL_CODES["CB_DIVIDER"] = "CB_DIVIDER";
10
+ CB_ALL_CODES["CB_IMG"] = "CB_IMG";
11
+ CB_ALL_CODES["CB_YOUTUBE"] = "CB_YOUTUBE";
12
+ CB_ALL_CODES["CB_TWITTER"] = "CB_TWITTER";
13
+ })(CB_ALL_CODES = exports.CB_ALL_CODES || (exports.CB_ALL_CODES = {}));
@@ -0,0 +1,3 @@
1
+ import { NamedContentPropType } from './types';
2
+ import type { Device, StyleType } from '../types';
3
+ export declare function parseContentProperties(namedProps: NamedContentPropType, device: Device): StyleType;
@@ -0,0 +1,16 @@
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.parseContentProperties = void 0;
7
+ var parseContentVisibility_1 = __importDefault(require("./parseContentVisibility"));
8
+ var types_1 = require("./types");
9
+ function parseContentProperties(namedProps, device) {
10
+ var name = namedProps.name;
11
+ switch (name) {
12
+ case types_1.CB_CONTENT_PROP_KEYS.CB_CONTENT_PROP_VISIBILITY:
13
+ return (0, parseContentVisibility_1.default)(namedProps, device);
14
+ }
15
+ }
16
+ exports.parseContentProperties = parseContentProperties;
@@ -0,0 +1,12 @@
1
+ import type { Device, StyleType } from '../types';
2
+ import type { CB_CONTENT_PROP_KEYS } from './types';
3
+ export declare type CB_CONTENT_PROP_VISIBILITY_SPECS = {
4
+ CB_CONTENT_PROP_VISIBILITY_SPEC_DESKTOP: boolean;
5
+ CB_CONTENT_PROP_VISIBILITY_SPEC_MOBILEWEB: boolean;
6
+ };
7
+ export declare type NAMED_CB_CONTENT_VISIBILITY_PROPS = {
8
+ name: CB_CONTENT_PROP_KEYS.CB_CONTENT_PROP_VISIBILITY;
9
+ specs: CB_CONTENT_PROP_VISIBILITY_SPECS;
10
+ };
11
+ declare function parseContentVisibility(namedProps: NAMED_CB_CONTENT_VISIBILITY_PROPS, device: Device): StyleType;
12
+ export default parseContentVisibility;
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ function parseContentVisibility(namedProps, device) {
4
+ var specs = namedProps.specs;
5
+ if (device === 'DESKTOP') {
6
+ return {
7
+ style: {
8
+ visibility: specs.CB_CONTENT_PROP_VISIBILITY_SPEC_DESKTOP ? 'visible' : 'hidden'
9
+ }
10
+ };
11
+ }
12
+ return {
13
+ style: {
14
+ visibility: specs.CB_CONTENT_PROP_VISIBILITY_SPEC_MOBILEWEB ? 'visible' : 'hidden'
15
+ }
16
+ };
17
+ }
18
+ exports.default = parseContentVisibility;
@@ -0,0 +1,5 @@
1
+ import type { NAMED_CB_CONTENT_VISIBILITY_PROPS } from './parseContentVisibility';
2
+ export declare enum CB_CONTENT_PROP_KEYS {
3
+ CB_CONTENT_PROP_VISIBILITY = "CB_CONTENT_PROP_VISIBILITY"
4
+ }
5
+ export declare type NamedContentPropType = NAMED_CB_CONTENT_VISIBILITY_PROPS;
@@ -0,0 +1,7 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.CB_CONTENT_PROP_KEYS = void 0;
4
+ var CB_CONTENT_PROP_KEYS;
5
+ (function (CB_CONTENT_PROP_KEYS) {
6
+ CB_CONTENT_PROP_KEYS["CB_CONTENT_PROP_VISIBILITY"] = "CB_CONTENT_PROP_VISIBILITY";
7
+ })(CB_CONTENT_PROP_KEYS = exports.CB_CONTENT_PROP_KEYS || (exports.CB_CONTENT_PROP_KEYS = {}));
@@ -0,0 +1,4 @@
1
+ export declare const animations: {
2
+ name: string;
3
+ value: string;
4
+ }[];
@@ -0,0 +1,46 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.animations = void 0;
4
+ // eslint-disable-next-line @typescript-eslint/no-unused-vars
5
+ exports.animations = [
6
+ { name: 'FADEIN', value: 'fade-in' },
7
+ { name: 'FADEINFWD', value: 'fade-in-fwd' },
8
+ { name: 'FADEINBCK', value: 'fade-in-bck' },
9
+ { name: 'FADEINTOP', value: 'fade-in-top' },
10
+ { name: 'FADEINRIGHT', value: 'fade-in-right' },
11
+ { name: 'FADEINBOTTOM', value: 'fade-in-bottom' },
12
+ { name: 'FADEINLEFT', value: 'fade-in-left' },
13
+ { name: 'SLIDEINTOP', value: 'slide-in-top' },
14
+ { name: 'SLIDEINRIGHT', value: 'slide-in-right' },
15
+ { name: 'SLIDEINBOTTOM', value: 'slide-in-bottom' },
16
+ { name: 'SLIDEINLEFT', value: 'slide-in-left' },
17
+ { name: 'TRACKINGINCONTRACT', value: 'tracking-in-contract' },
18
+ { name: 'ROTATECW', value: 'rotate-in-2-cw' },
19
+ { name: 'ROTATECCW', value: 'rotate-in-2-ccw' },
20
+ { name: 'SWINGINTOPFWD', value: 'swing-in-top-fwd' },
21
+ { name: 'SWINGINTOPBCK', value: 'swing-in-top-bck' },
22
+ { name: 'SWINGINRIGHTFWD', value: 'swing-in-right-fwd' },
23
+ { name: 'SWINGINRIGHTBCK', value: 'swing-in-right-bck' },
24
+ { name: 'SWINGINBOTTOMFWD', value: 'swing-in-bottom-fwd' },
25
+ { name: 'SWINGINLEFTFWD', value: 'swing-in-left-fwd' },
26
+ { name: 'SWINGINLEFTBCK', value: 'swing-in-left-bck' },
27
+ { name: 'ZOOMIN', value: 'scale-in-center' },
28
+ { name: 'ZOOMOUT', value: 'slide-in-bck-center' },
29
+ { name: 'ZOOMOUTCOTRACT', value: 'tracking-in-contract-bck' },
30
+ { name: 'FOCUSIN', value: 'text-focus-in' },
31
+ { name: 'PUFFIN', value: 'puff-in-center' },
32
+ { name: 'FOCUSINCONTRACT', value: 'focus-in-contract' },
33
+ { name: 'SHAKEH', value: 'shake-horizontal' },
34
+ { name: 'SHAKEV', value: 'shake-vertical' },
35
+ { name: 'SHAKET', value: 'shake-top' },
36
+ { name: 'VIBRATE', value: 'vibrate-1' },
37
+ { name: 'BLINK', value: 'blink-1' },
38
+ { name: 'FLICKER', value: 'flicker-in-2' },
39
+ { name: 'BOUNCEIN', value: 'bounce-top' },
40
+ { name: 'HEARTBEAT', value: 'heartbeat' },
41
+ { name: 'KENBURNSTOP', value: 'kenburns-top' },
42
+ { name: 'PANTOP', value: 'bg-pan-top' },
43
+ { name: 'PANRIGHT', value: 'bg-pan-right' },
44
+ { name: 'PANBOTTOM', value: 'bg-pan-bottom' },
45
+ { name: 'PANLEFT', value: 'bg-pan-left' }
46
+ ];
@@ -0,0 +1,3 @@
1
+ import { NamedEffectPropType } from './types';
2
+ import type { Device, StyleType } from '../types';
3
+ export declare function parseEffectProperties(namedProps: NamedEffectPropType, device: Device): StyleType;
@@ -0,0 +1,16 @@
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.parseEffectProperties = void 0;
7
+ var parseEffectPropEntAnim_1 = __importDefault(require("./parseEffectPropEntAnim"));
8
+ var types_1 = require("./types");
9
+ function parseEffectProperties(namedProps, device) {
10
+ var name = namedProps.name;
11
+ switch (name) {
12
+ case types_1.CB_EFFECT_PROP_KEYS.CB_EFFECT_PROP_ENTANIM:
13
+ return (0, parseEffectPropEntAnim_1.default)(namedProps, device);
14
+ }
15
+ }
16
+ exports.parseEffectProperties = parseEffectProperties;
@@ -0,0 +1,19 @@
1
+ import type { Device, StyleType } from '../types';
2
+ import type { CB_EFFECT_PROP_KEYS } from './types';
3
+ export declare type NAMED_CB_EFFECT_ENTANIM_PROPS = {
4
+ name: CB_EFFECT_PROP_KEYS.CB_EFFECT_PROP_ENTANIM;
5
+ specs: CB_EFFECT_PROP_ENTANIM_SPECS;
6
+ };
7
+ export default function parseEffectPropEntAnim(namedProps: NAMED_CB_EFFECT_ENTANIM_PROPS, device: Device): StyleType;
8
+ export declare type CB_EFFECT_PROP_ENTANIM_BASE = {
9
+ CB_EFFECT_PROP_ENTANIM_SPEC_DURATION: number;
10
+ CB_EFFECT_PROP_ENTANIM_SPEC_REPEAT: number;
11
+ CB_EFFECT_PROP_ENTANIM_SPEC_TFUNC: string;
12
+ CB_EFFECT_PROP_ENTANIM_SPEC_TYPE: string;
13
+ };
14
+ export declare type CB_EFFECT_PROP_ENTANIM_SPECS = CB_EFFECT_PROP_ENTANIM_BASE & Partial<{
15
+ 'CB_EFFECT_PROP_ENTANIM_SPEC_DURATION:MOBILE': number | undefined;
16
+ 'CB_EFFECT_PROP_ENTANIM_SPEC_REPEAT:MOBILE': number | undefined;
17
+ 'CB_EFFECT_PROP_ENTANIM_SPEC_TFUNC:MOBILE': string | undefined;
18
+ 'CB_EFFECT_PROP_ENTANIM_SPEC_TYPE:MOBILE': string | undefined;
19
+ }>;
@@ -0,0 +1,51 @@
1
+ "use strict";
2
+ var __assign = (this && this.__assign) || function () {
3
+ __assign = Object.assign || function(t) {
4
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
5
+ s = arguments[i];
6
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
7
+ t[p] = s[p];
8
+ }
9
+ return t;
10
+ };
11
+ return __assign.apply(this, arguments);
12
+ };
13
+ Object.defineProperty(exports, "__esModule", { value: true });
14
+ var constants_1 = require("./constants");
15
+ function parseEffectPropEntAnim(namedProps, device) {
16
+ var specs = namedProps.specs;
17
+ var animationCssProperties = AVAILABLE_SPECS.reduce(function (acc, cur) {
18
+ var _a;
19
+ var baseKey = device === 'DESKTOP' ? cur : cur + ":MOBILE";
20
+ var value = specs[baseKey];
21
+ return __assign(__assign({}, acc), (_a = {}, _a[cur] = value, _a));
22
+ }, {});
23
+ return { style: { animation: valueGenerator(animationCssProperties) } };
24
+ }
25
+ exports.default = parseEffectPropEntAnim;
26
+ function valueGenerator(valueSet) {
27
+ var _a;
28
+ var CB_EFFECT_PROP_ENTANIM_SPEC_TYPE = valueSet.CB_EFFECT_PROP_ENTANIM_SPEC_TYPE, CB_EFFECT_PROP_ENTANIM_SPEC_DURATION = valueSet.CB_EFFECT_PROP_ENTANIM_SPEC_DURATION, CB_EFFECT_PROP_ENTANIM_SPEC_TFUNC = valueSet.CB_EFFECT_PROP_ENTANIM_SPEC_TFUNC, CB_EFFECT_PROP_ENTANIM_SPEC_REPEAT = valueSet.CB_EFFECT_PROP_ENTANIM_SPEC_REPEAT;
29
+ var animationName = (_a = constants_1.animations.find(function (animation) { return animation.name === CB_EFFECT_PROP_ENTANIM_SPEC_TYPE; })) === null || _a === void 0 ? void 0 : _a.value;
30
+ return animationName + " " + CB_EFFECT_PROP_ENTANIM_SPEC_DURATION + "s " + tFuncMatcher(CB_EFFECT_PROP_ENTANIM_SPEC_TFUNC) + " 0s " + (CB_EFFECT_PROP_ENTANIM_SPEC_REPEAT === -1 ? 'infinite' : CB_EFFECT_PROP_ENTANIM_SPEC_REPEAT);
31
+ }
32
+ function tFuncMatcher(type) {
33
+ switch (type) {
34
+ case 'EASEINOUT':
35
+ return 'ease-in-out';
36
+ case 'EASEIN':
37
+ return 'ease-in';
38
+ case 'EASEOUT':
39
+ return 'ease-out';
40
+ case 'NONE':
41
+ return 'linear';
42
+ default:
43
+ return '';
44
+ }
45
+ }
46
+ var AVAILABLE_SPECS = [
47
+ 'CB_EFFECT_PROP_ENTANIM_SPEC_DURATION',
48
+ 'CB_EFFECT_PROP_ENTANIM_SPEC_REPEAT',
49
+ 'CB_EFFECT_PROP_ENTANIM_SPEC_TFUNC',
50
+ 'CB_EFFECT_PROP_ENTANIM_SPEC_TYPE'
51
+ ];
@@ -0,0 +1,5 @@
1
+ import type { NAMED_CB_EFFECT_ENTANIM_PROPS } from './parseEffectPropEntAnim';
2
+ export declare enum CB_EFFECT_PROP_KEYS {
3
+ CB_EFFECT_PROP_ENTANIM = "CB_EFFECT_PROP_ENTANIM"
4
+ }
5
+ export declare type NamedEffectPropType = NAMED_CB_EFFECT_ENTANIM_PROPS;
@@ -0,0 +1,7 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.CB_EFFECT_PROP_KEYS = void 0;
4
+ var CB_EFFECT_PROP_KEYS;
5
+ (function (CB_EFFECT_PROP_KEYS) {
6
+ CB_EFFECT_PROP_KEYS["CB_EFFECT_PROP_ENTANIM"] = "CB_EFFECT_PROP_ENTANIM";
7
+ })(CB_EFFECT_PROP_KEYS = exports.CB_EFFECT_PROP_KEYS || (exports.CB_EFFECT_PROP_KEYS = {}));
@@ -0,0 +1,6 @@
1
+ export { default as parseProperties } from './parseProperties';
2
+ export { default as parseJsonProperties } from './parseJsonProperties';
3
+ export { parseContentProperties } from './contentPropParsers';
4
+ export { parseEffectProperties } from './effectPropParsers';
5
+ export { parseLayoutProperties } from './layoutPropParsers';
6
+ export { parseStyleProperties } from './stylePropParsers';
@@ -0,0 +1,18 @@
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.parseStyleProperties = exports.parseLayoutProperties = exports.parseEffectProperties = exports.parseContentProperties = exports.parseJsonProperties = exports.parseProperties = void 0;
7
+ var parseProperties_1 = require("./parseProperties");
8
+ Object.defineProperty(exports, "parseProperties", { enumerable: true, get: function () { return __importDefault(parseProperties_1).default; } });
9
+ var parseJsonProperties_1 = require("./parseJsonProperties");
10
+ Object.defineProperty(exports, "parseJsonProperties", { enumerable: true, get: function () { return __importDefault(parseJsonProperties_1).default; } });
11
+ var contentPropParsers_1 = require("./contentPropParsers");
12
+ Object.defineProperty(exports, "parseContentProperties", { enumerable: true, get: function () { return contentPropParsers_1.parseContentProperties; } });
13
+ var effectPropParsers_1 = require("./effectPropParsers");
14
+ Object.defineProperty(exports, "parseEffectProperties", { enumerable: true, get: function () { return effectPropParsers_1.parseEffectProperties; } });
15
+ var layoutPropParsers_1 = require("./layoutPropParsers");
16
+ Object.defineProperty(exports, "parseLayoutProperties", { enumerable: true, get: function () { return layoutPropParsers_1.parseLayoutProperties; } });
17
+ var stylePropParsers_1 = require("./stylePropParsers");
18
+ Object.defineProperty(exports, "parseStyleProperties", { enumerable: true, get: function () { return stylePropParsers_1.parseStyleProperties; } });
@@ -0,0 +1,3 @@
1
+ import { NamedLayoutPropType } from './types';
2
+ import type { Device, StyleType } from '../types';
3
+ export declare function parseLayoutProperties(namedProps: NamedLayoutPropType, device: Device): StyleType;
@@ -0,0 +1,19 @@
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.parseLayoutProperties = void 0;
7
+ var parseLayoutPropArrange_1 = __importDefault(require("./parseLayoutPropArrange"));
8
+ var parseLayoutPropPadding_1 = __importDefault(require("./parseLayoutPropPadding"));
9
+ var types_1 = require("./types");
10
+ function parseLayoutProperties(namedProps, device) {
11
+ var name = namedProps.name;
12
+ switch (name) {
13
+ case types_1.CB_LAYOUT_PROP_KEYS.CB_LAYOUT_PROP_ARRANGE:
14
+ return (0, parseLayoutPropArrange_1.default)(namedProps, device);
15
+ case types_1.CB_LAYOUT_PROP_KEYS.CB_LAYOUT_PROP_PADDING:
16
+ return (0, parseLayoutPropPadding_1.default)(namedProps, device);
17
+ }
18
+ }
19
+ exports.parseLayoutProperties = parseLayoutProperties;
@@ -0,0 +1,24 @@
1
+ import type { Device, StyleType } from '../types';
2
+ import type { CB_LAYOUT_PROP_KEYS } from './types';
3
+ export declare enum CB_LAYOUT_PROP_ARRANGE_BASE_KEYS {
4
+ CB_LAYOUT_PROP_ARRANGE_SPEC_VERTICAL = "CB_LAYOUT_PROP_ARRANGE_SPEC_VERTICAL",
5
+ CB_LAYOUT_PROP_ARRANGE_SPEC_HORIZONTAL = "CB_LAYOUT_PROP_ARRANGE_SPEC_HORIZONTAL"
6
+ }
7
+ export declare enum CB_LAYOUT_PROP_ARRANGE_EXTRA_KEYS {
8
+ CB_LAYOUT_PROP_ARRANGE_SPEC_VERTICAL_MOBILE = "CB_LAYOUT_PROP_ARRANGE_SPEC_VERTICAL:MOBILE",
9
+ CB_LAYOUT_PROP_ARRANGE_SPEC_HORIZONTAL_MOBILE = "CB_LAYOUT_PROP_ARRANGE_SPEC_HORIZONTAL:MOBILE"
10
+ }
11
+ export declare type NAMED_CB_LAYOUT_ARRANGE_PROPS = {
12
+ name: CB_LAYOUT_PROP_KEYS.CB_LAYOUT_PROP_ARRANGE;
13
+ specs: CB_LAYOUT_PROP_ARRANGE_SPECS;
14
+ };
15
+ export default function parseLayoutPropArrange(namedProps: NAMED_CB_LAYOUT_ARRANGE_PROPS, device: Device): StyleType;
16
+ declare type CB_LAYOUT_PROP_ARRANGE_ENUM_VERTICAL = 'TOP' | 'MIDDLE' | 'BOTTOM';
17
+ declare type CB_LAYOUT_PROP_ARRANGE_ENUM_HORIZONTAL = 'LEFT' | 'CENTER' | 'RIGHT';
18
+ export declare type CB_LAYOUT_PROP_ARRANGE_SPECS = {
19
+ [CB_LAYOUT_PROP_ARRANGE_BASE_KEYS.CB_LAYOUT_PROP_ARRANGE_SPEC_VERTICAL]: CB_LAYOUT_PROP_ARRANGE_ENUM_VERTICAL;
20
+ [CB_LAYOUT_PROP_ARRANGE_BASE_KEYS.CB_LAYOUT_PROP_ARRANGE_SPEC_HORIZONTAL]: CB_LAYOUT_PROP_ARRANGE_ENUM_HORIZONTAL;
21
+ [CB_LAYOUT_PROP_ARRANGE_EXTRA_KEYS.CB_LAYOUT_PROP_ARRANGE_SPEC_VERTICAL_MOBILE]?: CB_LAYOUT_PROP_ARRANGE_ENUM_VERTICAL;
22
+ [CB_LAYOUT_PROP_ARRANGE_EXTRA_KEYS.CB_LAYOUT_PROP_ARRANGE_SPEC_HORIZONTAL_MOBILE]?: CB_LAYOUT_PROP_ARRANGE_ENUM_HORIZONTAL;
23
+ };
24
+ export {};