@redneckz/wildless-cms-uni-blocks 0.14.27 → 0.14.29

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 (562) hide show
  1. package/bin/migration-scripts/0.12.12.js +0 -10
  2. package/bin/migration-scripts/0.14.28.js +28 -0
  3. package/bin/migration-scripts/0.14.29.js +105 -0
  4. package/bin/migration-scripts/0.14.4.js +4 -4
  5. package/bin/utils.js +20 -9
  6. package/bundle/blocks.schema.json +1 -1
  7. package/bundle/bundle.umd.js +79 -120
  8. package/bundle/bundle.umd.min.js +1 -1
  9. package/bundle/components/BenefitsBlock/BenefitsBlockContent.d.ts +1 -0
  10. package/bundle/components/Bonus/BonusContent.d.ts +1 -0
  11. package/bundle/components/Calculator/CalculatorContent.d.ts +3 -0
  12. package/bundle/components/CarouselRecommendationCard/CarouselRecommendationCardContent.d.ts +3 -2
  13. package/bundle/components/Headline/headlineVersionStyles.d.ts +1 -2
  14. package/bundle/components/LinkDocs/LinkDocsContent.d.ts +6 -0
  15. package/bundle/components/MobileAppTile/MobileAppTileContent.d.ts +2 -2
  16. package/bundle/components/MobileAppTile/renderList.d.ts +1 -1
  17. package/bundle/components/OfficesAtmsMap/OfficesAtmsMapContent.d.ts +1 -0
  18. package/bundle/components/RichTextBlock/RichTextBlockContent.d.ts +2 -1
  19. package/bundle/components/TariffsTable/TariffsTableContent.d.ts +1 -0
  20. package/bundle/components/Tile/Tile.d.ts +5 -0
  21. package/bundle/components/Tile/TileContent.d.ts +6 -0
  22. package/bundle/components/VerticalLayout/VerticalLayout.d.ts +1 -0
  23. package/bundle/icons/IconName.d.ts +14 -2
  24. package/bundle/model/HeadlineType.d.ts +0 -8
  25. package/bundle/utils/getBorderStyle.d.ts +1 -0
  26. package/cosmos-static/icons/CardSendIcon.svg +1 -0
  27. package/cosmos-static/icons/CoinIcon.svg +1 -0
  28. package/cosmos-static/icons/ConvertCardIcon.svg +1 -0
  29. package/cosmos-static/icons/HeartTickIcon.svg +1 -0
  30. package/cosmos-static/icons/NotificationBingIcon.svg +1 -0
  31. package/cosmos-static/icons/Security/320/241ardIcon.svg +1 -0
  32. package/dist/components/BenefitsBlock/BenefitsBlockContent.d.ts +1 -0
  33. package/dist/components/Blocks.js +2 -6
  34. package/dist/components/Blocks.js.map +1 -1
  35. package/dist/components/Blocks.mobile.js +2 -2
  36. package/dist/components/Blocks.mobile.js.map +1 -1
  37. package/dist/components/Bonus/BonusContent.d.ts +1 -0
  38. package/dist/components/Calculator/Calculator.mobile.js +2 -1
  39. package/dist/components/Calculator/Calculator.mobile.js.map +1 -1
  40. package/dist/components/Calculator/CalculatorContent.d.ts +3 -0
  41. package/dist/components/Carousel/Carousel.js +1 -1
  42. package/dist/components/Carousel/Carousel.js.map +1 -1
  43. package/dist/components/Carousel/renderCarouselCards.js +2 -2
  44. package/dist/components/Carousel/renderCarouselCards.js.map +1 -1
  45. package/dist/components/CarouselRecommendationCard/CarouselRecommendationCard.js +4 -2
  46. package/dist/components/CarouselRecommendationCard/CarouselRecommendationCard.js.map +1 -1
  47. package/dist/components/CarouselRecommendationCard/CarouselRecommendationCardContent.d.ts +3 -2
  48. package/dist/components/Footer/SocialMedia.js +2 -2
  49. package/dist/components/Footer/SocialMedia.js.map +1 -1
  50. package/dist/components/Headline/headlineVersionStyles.d.ts +1 -2
  51. package/dist/components/Headline/headlineVersionStyles.js +1 -12
  52. package/dist/components/Headline/headlineVersionStyles.js.map +1 -1
  53. package/dist/components/HorizontalLayout/HorizontalLayout.js +2 -3
  54. package/dist/components/HorizontalLayout/HorizontalLayout.js.map +1 -1
  55. package/dist/components/LinkDocs/LinkDocItem.js +6 -14
  56. package/dist/components/LinkDocs/LinkDocItem.js.map +1 -1
  57. package/dist/components/LinkDocs/LinkDocs.js +4 -3
  58. package/dist/components/LinkDocs/LinkDocs.js.map +1 -1
  59. package/dist/components/LinkDocs/LinkDocsContent.d.ts +6 -0
  60. package/dist/components/LinkDocs/linkDocsContentExample.js +14 -5
  61. package/dist/components/LinkDocs/linkDocsContentExample.js.map +1 -1
  62. package/dist/components/MobileAppTile/MobileAppTile.js +2 -2
  63. package/dist/components/MobileAppTile/MobileAppTile.js.map +1 -1
  64. package/dist/components/MobileAppTile/MobileAppTileContent.d.ts +2 -2
  65. package/dist/components/MobileAppTile/renderList.d.ts +1 -1
  66. package/dist/components/MobileAppTile/renderList.js +3 -2
  67. package/dist/components/MobileAppTile/renderList.js.map +1 -1
  68. package/dist/components/OfficesAtmsMap/OfficesAtmsMapContent.d.ts +1 -0
  69. package/dist/components/ProductBlock/ProductBlock.js +4 -4
  70. package/dist/components/ProductBlock/ProductBlock.js.map +1 -1
  71. package/dist/components/RichTextBlock/RichTextBlockContent.d.ts +2 -1
  72. package/dist/components/TariffsTable/TariffsTable.js +1 -2
  73. package/dist/components/TariffsTable/TariffsTable.js.map +1 -1
  74. package/dist/components/TariffsTable/TariffsTableCell.js.map +1 -1
  75. package/dist/components/TariffsTable/TariffsTableContent.d.ts +1 -0
  76. package/dist/components/TariffsTable/TariffsTableVertical.js.map +1 -1
  77. package/dist/components/Tile/Tile.d.ts +5 -0
  78. package/dist/components/Tile/Tile.js +8 -0
  79. package/dist/components/Tile/Tile.js.map +1 -0
  80. package/dist/components/Tile/TileContent.d.ts +6 -0
  81. package/{mobile/dist/components/PromoTile/PromoTileContent.js → dist/components/Tile/TileContent.js} +1 -1
  82. package/dist/components/Tile/TileContent.js.map +1 -0
  83. package/dist/components/VerticalLayout/VerticalLayout.d.ts +1 -0
  84. package/dist/components/VerticalLayout/VerticalLayout.js +6 -2
  85. package/dist/components/VerticalLayout/VerticalLayout.js.map +1 -1
  86. package/dist/icons/IconName.d.ts +14 -2
  87. package/dist/icons/IconName.js +12 -0
  88. package/dist/icons/IconName.js.map +1 -1
  89. package/dist/model/HeadlineType.d.ts +0 -8
  90. package/dist/ui-kit/BaseTile/BaseTile.js +2 -2
  91. package/dist/ui-kit/BaseTile/BaseTile.js.map +1 -1
  92. package/dist/ui-kit/Button/renderButtonsSection.js +1 -1
  93. package/dist/ui-kit/List/List.js +1 -1
  94. package/dist/ui-kit/List/List.js.map +1 -1
  95. package/dist/ui-kit/List/ListItem.js +1 -1
  96. package/dist/ui-kit/List/ListItem.js.map +1 -1
  97. package/dist/utils/getBorderStyle.d.ts +1 -0
  98. package/dist/utils/getBorderStyle.js +7 -0
  99. package/dist/utils/getBorderStyle.js.map +1 -0
  100. package/lib/common.css +1 -1
  101. package/lib/components/BenefitsBlock/BenefitsBlockContent.d.ts +1 -0
  102. package/lib/components/Blocks.js +2 -6
  103. package/lib/components/Blocks.js.map +1 -1
  104. package/lib/components/Blocks.mobile.js +2 -2
  105. package/lib/components/Blocks.mobile.js.map +1 -1
  106. package/lib/components/Bonus/BonusContent.d.ts +1 -0
  107. package/lib/components/Calculator/Calculator.mobile.js +2 -1
  108. package/lib/components/Calculator/Calculator.mobile.js.map +1 -1
  109. package/lib/components/Calculator/CalculatorContent.d.ts +3 -0
  110. package/lib/components/Carousel/Carousel.fixture.d.ts +0 -2
  111. package/lib/components/Carousel/Carousel.fixture.mobile.d.ts +0 -2
  112. package/lib/components/Carousel/Carousel.js +1 -1
  113. package/lib/components/Carousel/Carousel.js.map +1 -1
  114. package/lib/components/Carousel/renderCarouselCards.js +2 -2
  115. package/lib/components/Carousel/renderCarouselCards.js.map +1 -1
  116. package/lib/components/CarouselRecommendationCard/CarouselRecommendationCard.fixture.d.ts +2 -0
  117. package/lib/components/CarouselRecommendationCard/CarouselRecommendationCard.js +4 -2
  118. package/lib/components/CarouselRecommendationCard/CarouselRecommendationCard.js.map +1 -1
  119. package/lib/components/CarouselRecommendationCard/CarouselRecommendationCardContent.d.ts +3 -2
  120. package/lib/components/Footer/SocialMedia.js +2 -2
  121. package/lib/components/Footer/SocialMedia.js.map +1 -1
  122. package/lib/components/Headline/headlineVersionStyles.d.ts +1 -2
  123. package/lib/components/Headline/headlineVersionStyles.js +0 -11
  124. package/lib/components/Headline/headlineVersionStyles.js.map +1 -1
  125. package/lib/components/HorizontalLayout/HorizontalLayout.js +2 -3
  126. package/lib/components/HorizontalLayout/HorizontalLayout.js.map +1 -1
  127. package/lib/components/LinkDocs/LinkDocItem.js +6 -14
  128. package/lib/components/LinkDocs/LinkDocItem.js.map +1 -1
  129. package/lib/components/LinkDocs/LinkDocs.js +4 -3
  130. package/lib/components/LinkDocs/LinkDocs.js.map +1 -1
  131. package/lib/components/LinkDocs/LinkDocsContent.d.ts +6 -0
  132. package/lib/components/LinkDocs/linkDocsContentExample.js +14 -5
  133. package/lib/components/LinkDocs/linkDocsContentExample.js.map +1 -1
  134. package/lib/components/MobileAppTile/MobileAppTile.js +2 -2
  135. package/lib/components/MobileAppTile/MobileAppTile.js.map +1 -1
  136. package/lib/components/MobileAppTile/MobileAppTileContent.d.ts +2 -2
  137. package/lib/components/MobileAppTile/renderList.d.ts +1 -1
  138. package/lib/components/MobileAppTile/renderList.js +3 -2
  139. package/lib/components/MobileAppTile/renderList.js.map +1 -1
  140. package/lib/components/OfficesAtmsMap/OfficesAtmsMapContent.d.ts +1 -0
  141. package/lib/components/ProductBlock/ProductBlock.js +4 -4
  142. package/lib/components/ProductBlock/ProductBlock.js.map +1 -1
  143. package/lib/components/RichTextBlock/RichTextBlock.fixture.d.ts +1 -0
  144. package/lib/components/RichTextBlock/RichTextBlockContent.d.ts +2 -1
  145. package/lib/components/TariffsTable/TariffsTable.js +1 -2
  146. package/lib/components/TariffsTable/TariffsTable.js.map +1 -1
  147. package/lib/components/TariffsTable/TariffsTableCell.js.map +1 -1
  148. package/lib/components/TariffsTable/TariffsTableContent.d.ts +1 -0
  149. package/lib/components/TariffsTable/TariffsTableVertical.js.map +1 -1
  150. package/lib/components/Tile/Tile.d.ts +5 -0
  151. package/lib/components/Tile/Tile.fixture.d.ts +15 -0
  152. package/lib/components/{PromoTile/PromoTile.fixture.d.ts → Tile/Tile.fixture.mobile.d.ts} +3 -0
  153. package/lib/components/Tile/Tile.js +6 -0
  154. package/lib/components/Tile/Tile.js.map +1 -0
  155. package/lib/components/Tile/TileContent.d.ts +6 -0
  156. package/lib/components/Tile/TileContent.js +2 -0
  157. package/lib/components/Tile/TileContent.js.map +1 -0
  158. package/lib/components/VerticalLayout/VerticalLayout.d.ts +1 -0
  159. package/lib/components/VerticalLayout/VerticalLayout.js +6 -2
  160. package/lib/components/VerticalLayout/VerticalLayout.js.map +1 -1
  161. package/lib/icons/IconName.d.ts +14 -2
  162. package/lib/icons/IconName.js +12 -0
  163. package/lib/icons/IconName.js.map +1 -1
  164. package/lib/model/HeadlineType.d.ts +0 -8
  165. package/lib/ui-kit/BaseTile/BaseTile.js +2 -2
  166. package/lib/ui-kit/BaseTile/BaseTile.js.map +1 -1
  167. package/lib/ui-kit/Button/renderButtonsSection.js +1 -1
  168. package/lib/ui-kit/List/List.js +1 -1
  169. package/lib/ui-kit/List/List.js.map +1 -1
  170. package/lib/ui-kit/List/ListItem.js +1 -1
  171. package/lib/ui-kit/List/ListItem.js.map +1 -1
  172. package/lib/utils/getBorderStyle.d.ts +1 -0
  173. package/lib/utils/getBorderStyle.js +4 -0
  174. package/lib/utils/getBorderStyle.js.map +1 -0
  175. package/mobile/bundle/bundle.umd.js +76 -99
  176. package/mobile/bundle/bundle.umd.min.js +1 -1
  177. package/mobile/bundle/components/BenefitsBlock/BenefitsBlockContent.d.ts +1 -0
  178. package/mobile/bundle/components/Bonus/BonusContent.d.ts +1 -0
  179. package/mobile/bundle/components/Calculator/CalculatorContent.d.ts +3 -0
  180. package/mobile/bundle/components/CarouselRecommendationCard/CarouselRecommendationCardContent.d.ts +3 -2
  181. package/mobile/bundle/components/Headline/headlineVersionStyles.d.ts +1 -2
  182. package/mobile/bundle/components/LinkDocs/LinkDocsContent.d.ts +6 -0
  183. package/mobile/bundle/components/MobileAppTile/MobileAppTileContent.d.ts +2 -2
  184. package/mobile/bundle/components/MobileAppTile/renderList.d.ts +1 -1
  185. package/mobile/bundle/components/OfficesAtmsMap/OfficesAtmsMapContent.d.ts +1 -0
  186. package/mobile/bundle/components/RichTextBlock/RichTextBlockContent.d.ts +2 -1
  187. package/mobile/bundle/components/TariffsTable/TariffsTableContent.d.ts +1 -0
  188. package/mobile/bundle/components/Tile/Tile.d.ts +5 -0
  189. package/mobile/bundle/components/Tile/TileContent.d.ts +6 -0
  190. package/mobile/bundle/components/VerticalLayout/VerticalLayout.d.ts +1 -0
  191. package/mobile/bundle/icons/IconName.d.ts +14 -2
  192. package/mobile/bundle/model/HeadlineType.d.ts +0 -8
  193. package/mobile/bundle/utils/getBorderStyle.d.ts +1 -0
  194. package/mobile/dist/components/BenefitsBlock/BenefitsBlockContent.d.ts +1 -0
  195. package/mobile/dist/components/Blocks.js +2 -2
  196. package/mobile/dist/components/Blocks.js.map +1 -1
  197. package/mobile/dist/components/Bonus/BonusContent.d.ts +1 -0
  198. package/mobile/dist/components/Calculator/Calculator.js +2 -1
  199. package/mobile/dist/components/Calculator/Calculator.js.map +1 -1
  200. package/mobile/dist/components/Calculator/CalculatorContent.d.ts +3 -0
  201. package/mobile/dist/components/Carousel/Carousel.js +1 -1
  202. package/mobile/dist/components/Carousel/Carousel.js.map +1 -1
  203. package/mobile/dist/components/Carousel/renderCarouselCards.js +2 -2
  204. package/mobile/dist/components/Carousel/renderCarouselCards.js.map +1 -1
  205. package/mobile/dist/components/CarouselRecommendationCard/CarouselRecommendationCard.js +4 -2
  206. package/mobile/dist/components/CarouselRecommendationCard/CarouselRecommendationCard.js.map +1 -1
  207. package/mobile/dist/components/CarouselRecommendationCard/CarouselRecommendationCardContent.d.ts +3 -2
  208. package/mobile/dist/components/Footer/SocialMedia.js +2 -2
  209. package/mobile/dist/components/Footer/SocialMedia.js.map +1 -1
  210. package/mobile/dist/components/Headline/headlineVersionStyles.d.ts +1 -2
  211. package/mobile/dist/components/Headline/headlineVersionStyles.js +1 -12
  212. package/mobile/dist/components/Headline/headlineVersionStyles.js.map +1 -1
  213. package/mobile/dist/components/LinkDocs/LinkDocItem.js +6 -14
  214. package/mobile/dist/components/LinkDocs/LinkDocItem.js.map +1 -1
  215. package/mobile/dist/components/LinkDocs/LinkDocs.js +4 -3
  216. package/mobile/dist/components/LinkDocs/LinkDocs.js.map +1 -1
  217. package/mobile/dist/components/LinkDocs/LinkDocsContent.d.ts +6 -0
  218. package/mobile/dist/components/LinkDocs/linkDocsContentExample.js +14 -5
  219. package/mobile/dist/components/LinkDocs/linkDocsContentExample.js.map +1 -1
  220. package/mobile/dist/components/MobileAppTile/MobileAppTile.js +2 -2
  221. package/mobile/dist/components/MobileAppTile/MobileAppTile.js.map +1 -1
  222. package/mobile/dist/components/MobileAppTile/MobileAppTileContent.d.ts +2 -2
  223. package/mobile/dist/components/MobileAppTile/renderList.d.ts +1 -1
  224. package/mobile/dist/components/MobileAppTile/renderList.js +3 -2
  225. package/mobile/dist/components/MobileAppTile/renderList.js.map +1 -1
  226. package/mobile/dist/components/OfficesAtmsMap/OfficesAtmsMapContent.d.ts +1 -0
  227. package/mobile/dist/components/ProductBlock/ProductBlock.js +4 -4
  228. package/mobile/dist/components/ProductBlock/ProductBlock.js.map +1 -1
  229. package/mobile/dist/components/RichTextBlock/RichTextBlockContent.d.ts +2 -1
  230. package/mobile/dist/components/TariffsTable/TariffsTable.js +1 -2
  231. package/mobile/dist/components/TariffsTable/TariffsTable.js.map +1 -1
  232. package/mobile/dist/components/TariffsTable/TariffsTableCell.js.map +1 -1
  233. package/mobile/dist/components/TariffsTable/TariffsTableContent.d.ts +1 -0
  234. package/mobile/dist/components/TariffsTable/TariffsTableVertical.js.map +1 -1
  235. package/mobile/dist/components/Tile/Tile.d.ts +5 -0
  236. package/mobile/dist/components/Tile/Tile.js +8 -0
  237. package/mobile/dist/components/Tile/Tile.js.map +1 -0
  238. package/mobile/dist/components/Tile/TileContent.d.ts +6 -0
  239. package/{dist/components/PromoTile/PromoTileContent.js → mobile/dist/components/Tile/TileContent.js} +1 -1
  240. package/mobile/dist/components/Tile/TileContent.js.map +1 -0
  241. package/mobile/dist/components/VerticalLayout/VerticalLayout.d.ts +1 -0
  242. package/mobile/dist/components/VerticalLayout/VerticalLayout.js +6 -2
  243. package/mobile/dist/components/VerticalLayout/VerticalLayout.js.map +1 -1
  244. package/mobile/dist/icons/IconName.d.ts +14 -2
  245. package/mobile/dist/icons/IconName.js +12 -0
  246. package/mobile/dist/icons/IconName.js.map +1 -1
  247. package/mobile/dist/model/HeadlineType.d.ts +0 -8
  248. package/mobile/dist/ui-kit/BaseTile/BaseTile.js +2 -2
  249. package/mobile/dist/ui-kit/BaseTile/BaseTile.js.map +1 -1
  250. package/mobile/dist/ui-kit/Button/renderButtonsSection.js +1 -1
  251. package/mobile/dist/ui-kit/List/List.js +1 -1
  252. package/mobile/dist/ui-kit/List/List.js.map +1 -1
  253. package/mobile/dist/ui-kit/List/ListItem.js +1 -1
  254. package/mobile/dist/ui-kit/List/ListItem.js.map +1 -1
  255. package/mobile/dist/utils/getBorderStyle.d.ts +1 -0
  256. package/mobile/dist/utils/getBorderStyle.js +7 -0
  257. package/mobile/dist/utils/getBorderStyle.js.map +1 -0
  258. package/mobile/lib/common.css +1 -1
  259. package/mobile/lib/components/BenefitsBlock/BenefitsBlockContent.d.ts +1 -0
  260. package/mobile/lib/components/Blocks.js +2 -2
  261. package/mobile/lib/components/Blocks.js.map +1 -1
  262. package/mobile/lib/components/Bonus/BonusContent.d.ts +1 -0
  263. package/mobile/lib/components/Calculator/Calculator.js +2 -1
  264. package/mobile/lib/components/Calculator/Calculator.js.map +1 -1
  265. package/mobile/lib/components/Calculator/CalculatorContent.d.ts +3 -0
  266. package/mobile/lib/components/Carousel/Carousel.js +1 -1
  267. package/mobile/lib/components/Carousel/Carousel.js.map +1 -1
  268. package/mobile/lib/components/Carousel/renderCarouselCards.js +2 -2
  269. package/mobile/lib/components/Carousel/renderCarouselCards.js.map +1 -1
  270. package/mobile/lib/components/CarouselRecommendationCard/CarouselRecommendationCard.js +4 -2
  271. package/mobile/lib/components/CarouselRecommendationCard/CarouselRecommendationCard.js.map +1 -1
  272. package/mobile/lib/components/CarouselRecommendationCard/CarouselRecommendationCardContent.d.ts +3 -2
  273. package/mobile/lib/components/Footer/SocialMedia.js +2 -2
  274. package/mobile/lib/components/Footer/SocialMedia.js.map +1 -1
  275. package/mobile/lib/components/Headline/headlineVersionStyles.d.ts +1 -2
  276. package/mobile/lib/components/Headline/headlineVersionStyles.js +0 -11
  277. package/mobile/lib/components/Headline/headlineVersionStyles.js.map +1 -1
  278. package/mobile/lib/components/LinkDocs/LinkDocItem.js +6 -14
  279. package/mobile/lib/components/LinkDocs/LinkDocItem.js.map +1 -1
  280. package/mobile/lib/components/LinkDocs/LinkDocs.js +4 -3
  281. package/mobile/lib/components/LinkDocs/LinkDocs.js.map +1 -1
  282. package/mobile/lib/components/LinkDocs/LinkDocsContent.d.ts +6 -0
  283. package/mobile/lib/components/LinkDocs/linkDocsContentExample.js +14 -5
  284. package/mobile/lib/components/LinkDocs/linkDocsContentExample.js.map +1 -1
  285. package/mobile/lib/components/MobileAppTile/MobileAppTile.js +2 -2
  286. package/mobile/lib/components/MobileAppTile/MobileAppTile.js.map +1 -1
  287. package/mobile/lib/components/MobileAppTile/MobileAppTileContent.d.ts +2 -2
  288. package/mobile/lib/components/MobileAppTile/renderList.d.ts +1 -1
  289. package/mobile/lib/components/MobileAppTile/renderList.js +3 -2
  290. package/mobile/lib/components/MobileAppTile/renderList.js.map +1 -1
  291. package/mobile/lib/components/OfficesAtmsMap/OfficesAtmsMapContent.d.ts +1 -0
  292. package/mobile/lib/components/ProductBlock/ProductBlock.js +4 -4
  293. package/mobile/lib/components/ProductBlock/ProductBlock.js.map +1 -1
  294. package/mobile/lib/components/RichTextBlock/RichTextBlockContent.d.ts +2 -1
  295. package/mobile/lib/components/TariffsTable/TariffsTable.js +1 -2
  296. package/mobile/lib/components/TariffsTable/TariffsTable.js.map +1 -1
  297. package/mobile/lib/components/TariffsTable/TariffsTableCell.js.map +1 -1
  298. package/mobile/lib/components/TariffsTable/TariffsTableContent.d.ts +1 -0
  299. package/mobile/lib/components/TariffsTable/TariffsTableVertical.js.map +1 -1
  300. package/mobile/lib/components/Tile/Tile.d.ts +5 -0
  301. package/mobile/lib/components/Tile/Tile.js +6 -0
  302. package/mobile/lib/components/Tile/Tile.js.map +1 -0
  303. package/mobile/lib/components/Tile/TileContent.d.ts +6 -0
  304. package/mobile/lib/components/Tile/TileContent.js +2 -0
  305. package/mobile/lib/components/Tile/TileContent.js.map +1 -0
  306. package/mobile/lib/components/VerticalLayout/VerticalLayout.d.ts +1 -0
  307. package/mobile/lib/components/VerticalLayout/VerticalLayout.js +6 -2
  308. package/mobile/lib/components/VerticalLayout/VerticalLayout.js.map +1 -1
  309. package/mobile/lib/icons/IconName.d.ts +14 -2
  310. package/mobile/lib/icons/IconName.js +12 -0
  311. package/mobile/lib/icons/IconName.js.map +1 -1
  312. package/mobile/lib/model/HeadlineType.d.ts +0 -8
  313. package/mobile/lib/ui-kit/BaseTile/BaseTile.js +2 -2
  314. package/mobile/lib/ui-kit/BaseTile/BaseTile.js.map +1 -1
  315. package/mobile/lib/ui-kit/Button/renderButtonsSection.js +1 -1
  316. package/mobile/lib/ui-kit/List/List.js +1 -1
  317. package/mobile/lib/ui-kit/List/List.js.map +1 -1
  318. package/mobile/lib/ui-kit/List/ListItem.js +1 -1
  319. package/mobile/lib/ui-kit/List/ListItem.js.map +1 -1
  320. package/mobile/lib/utils/getBorderStyle.d.ts +1 -0
  321. package/mobile/lib/utils/getBorderStyle.js +4 -0
  322. package/mobile/lib/utils/getBorderStyle.js.map +1 -0
  323. package/mobile/src/components/BenefitsBlock/BenefitsBlockContent.ts +1 -0
  324. package/mobile/src/components/Blocks.ts +2 -2
  325. package/mobile/src/components/Bonus/BonusContent.ts +1 -0
  326. package/mobile/src/components/Calculator/Calculator.tsx +4 -2
  327. package/mobile/src/components/Calculator/CalculatorContent.ts +3 -0
  328. package/mobile/src/components/Carousel/Carousel.tsx +1 -1
  329. package/mobile/src/components/Carousel/renderCarouselCards.tsx +3 -2
  330. package/mobile/src/components/CarouselRecommendationCard/CarouselRecommendationCard.tsx +20 -2
  331. package/mobile/src/components/CarouselRecommendationCard/CarouselRecommendationCardContent.ts +8 -1
  332. package/mobile/src/components/Footer/SocialMedia.tsx +2 -2
  333. package/mobile/src/components/Headline/headlineVersionStyles.ts +1 -13
  334. package/mobile/src/components/LinkDocs/LinkDocItem.tsx +24 -34
  335. package/mobile/src/components/LinkDocs/LinkDocs.example.json +4 -1
  336. package/mobile/src/components/LinkDocs/LinkDocs.tsx +5 -3
  337. package/mobile/src/components/LinkDocs/LinkDocsContent.ts +6 -0
  338. package/mobile/src/components/LinkDocs/linkDocsContentExample.ts +14 -5
  339. package/mobile/src/components/MobileAppTile/MobileAppTile.example.json +2 -1
  340. package/mobile/src/components/MobileAppTile/MobileAppTile.tsx +2 -1
  341. package/mobile/src/components/MobileAppTile/MobileAppTileContent.ts +5 -1
  342. package/mobile/src/components/MobileAppTile/renderList.tsx +9 -4
  343. package/mobile/src/components/OfficesAtmsMap/OfficesAtmsMapContent.ts +1 -0
  344. package/mobile/src/components/ProductBlock/ProductBlock.tsx +8 -5
  345. package/mobile/src/components/RichTextBlock/RichTextBlockContent.ts +2 -1
  346. package/mobile/src/components/TariffsTable/TariffsTable.tsx +2 -3
  347. package/mobile/src/components/TariffsTable/TariffsTableCell.tsx +0 -1
  348. package/mobile/src/components/TariffsTable/TariffsTableContent.ts +1 -0
  349. package/mobile/src/components/TariffsTable/TariffsTableVertical.tsx +0 -1
  350. package/mobile/src/components/Tile/Tile.example.json +28 -0
  351. package/mobile/src/components/Tile/Tile.tsx +23 -0
  352. package/mobile/src/components/Tile/Tile.ui.json +17 -0
  353. package/mobile/src/components/Tile/TileContent.ts +7 -0
  354. package/mobile/src/components/VerticalLayout/VerticalLayout.tsx +9 -2
  355. package/mobile/src/icons/CardSendIcon.svg +9 -0
  356. package/mobile/src/icons/CoinIcon.svg +5 -0
  357. package/mobile/src/icons/ConvertCardIcon.svg +8 -0
  358. package/mobile/src/icons/HeartTickIcon.svg +5 -0
  359. package/mobile/src/icons/IconName.ts +4 -4
  360. package/mobile/src/icons/NotificationBingIcon.svg +5 -0
  361. package/mobile/src/icons/Security/320/241ardIcon.svg +7 -0
  362. package/mobile/src/model/HeadlineType.ts +0 -10
  363. package/mobile/src/ui-kit/BaseTile/BaseTile.tsx +3 -3
  364. package/mobile/src/ui-kit/Button/renderButtonsSection.tsx +1 -1
  365. package/mobile/src/ui-kit/List/List.tsx +1 -1
  366. package/mobile/src/ui-kit/List/ListItem.tsx +15 -17
  367. package/mobile/src/utils/getBorderStyle.ts +4 -0
  368. package/package.json +1 -1
  369. package/src/components/BenefitsBlock/BenefitsBlockContent.ts +1 -0
  370. package/src/components/Blocks.mobile.ts +2 -2
  371. package/src/components/Blocks.ts +2 -6
  372. package/src/components/Bonus/BonusContent.ts +1 -0
  373. package/src/components/Calculator/Calculator.mobile.tsx +4 -2
  374. package/src/components/Calculator/CalculatorContent.ts +3 -0
  375. package/src/components/Carousel/Carousel.fixture.mobile.tsx +0 -34
  376. package/src/components/Carousel/Carousel.fixture.tsx +2 -52
  377. package/src/components/Carousel/Carousel.tsx +1 -1
  378. package/src/components/Carousel/renderCarouselCards.tsx +3 -2
  379. package/src/components/CarouselRecommendationCard/CarouselRecommendationCard.fixture.tsx +44 -0
  380. package/src/components/CarouselRecommendationCard/CarouselRecommendationCard.tsx +20 -2
  381. package/src/components/CarouselRecommendationCard/CarouselRecommendationCardContent.ts +8 -1
  382. package/src/components/Footer/SocialMedia.tsx +2 -2
  383. package/src/components/Headline/headlineVersionStyles.ts +1 -13
  384. package/src/components/HorizontalLayout/HorizontalLayout.tsx +2 -3
  385. package/src/components/LinkDocs/LinkDocItem.tsx +24 -34
  386. package/src/components/LinkDocs/LinkDocs.example.json +4 -1
  387. package/src/components/LinkDocs/LinkDocs.tsx +5 -3
  388. package/src/components/LinkDocs/LinkDocsContent.ts +6 -0
  389. package/src/components/LinkDocs/linkDocsContentExample.ts +14 -5
  390. package/src/components/MobileAppTile/MobileAppTile.example.json +2 -1
  391. package/src/components/MobileAppTile/MobileAppTile.fixture.mobile.tsx +3 -1
  392. package/src/components/MobileAppTile/MobileAppTile.tsx +2 -1
  393. package/src/components/MobileAppTile/MobileAppTileContent.ts +5 -1
  394. package/src/components/MobileAppTile/renderList.tsx +9 -4
  395. package/src/components/OfficesAtmsMap/OfficesAtmsMapContent.ts +1 -0
  396. package/src/components/ProductBlock/ProductBlock.tsx +8 -5
  397. package/src/components/RichTextBlock/RichTextBlock.fixture.tsx +15 -0
  398. package/src/components/RichTextBlock/RichTextBlockContent.ts +2 -1
  399. package/src/components/TariffsTable/TariffsTable.tsx +2 -3
  400. package/src/components/TariffsTable/TariffsTableCell.tsx +0 -1
  401. package/src/components/TariffsTable/TariffsTableContent.ts +1 -0
  402. package/src/components/TariffsTable/TariffsTableVertical.tsx +0 -1
  403. package/src/components/Tile/Tile.example.json +28 -0
  404. package/src/components/Tile/Tile.fixture.mobile.tsx +48 -0
  405. package/src/components/Tile/Tile.fixture.tsx +146 -0
  406. package/src/components/Tile/Tile.tsx +23 -0
  407. package/src/components/Tile/Tile.ui.json +17 -0
  408. package/src/components/Tile/TileContent.ts +7 -0
  409. package/src/components/VerticalLayout/VerticalLayout.fixture.tsx +4 -12
  410. package/src/components/VerticalLayout/VerticalLayout.tsx +9 -2
  411. package/src/icons/CardSendIcon.svg +9 -0
  412. package/src/icons/CoinIcon.svg +5 -0
  413. package/src/icons/ConvertCardIcon.svg +8 -0
  414. package/src/icons/HeartTickIcon.svg +5 -0
  415. package/src/icons/IconName.ts +19 -1
  416. package/src/icons/NotificationBingIcon.svg +5 -0
  417. package/src/icons/Security/320/241ardIcon.svg +7 -0
  418. package/src/model/HeadlineType.ts +0 -10
  419. package/src/ui-kit/BaseTile/BaseTile.tsx +3 -3
  420. package/src/ui-kit/Button/renderButtonsSection.tsx +1 -1
  421. package/src/ui-kit/List/List.tsx +1 -1
  422. package/src/ui-kit/List/ListItem.tsx +15 -17
  423. package/src/utils/getBorderStyle.ts +4 -0
  424. package/bin/migration-scripts/0.14.12.js +0 -34
  425. package/bin/migration-scripts/0.14.27.js +0 -38
  426. package/bundle/components/CarouselProductCard/CarouselProductCard.d.ts +0 -5
  427. package/bundle/components/CarouselProductCard/CarouselProductCardContent.d.ts +0 -27
  428. package/bundle/components/CarouselRichTextCard/CarouselRichTextCard.d.ts +0 -5
  429. package/bundle/components/CarouselRichTextCard/CarouselRichTextCardContent.d.ts +0 -6
  430. package/bundle/components/PromoTile/PromoTile.d.ts +0 -5
  431. package/bundle/components/PromoTile/PromoTileContent.d.ts +0 -10
  432. package/bundle/components/TariffsTable/headlineAlign.d.ts +0 -1
  433. package/bundle/components/TariffsTable/headlineAlign.mobile.d.ts +0 -1
  434. package/dist/components/CarouselProductCard/CarouselProductCard.d.ts +0 -5
  435. package/dist/components/CarouselProductCard/CarouselProductCard.js +0 -26
  436. package/dist/components/CarouselProductCard/CarouselProductCard.js.map +0 -1
  437. package/dist/components/CarouselProductCard/CarouselProductCardContent.d.ts +0 -27
  438. package/dist/components/CarouselProductCard/CarouselProductCardContent.js +0 -2
  439. package/dist/components/CarouselProductCard/CarouselProductCardContent.js.map +0 -1
  440. package/dist/components/CarouselRichTextCard/CarouselRichTextCard.d.ts +0 -5
  441. package/dist/components/CarouselRichTextCard/CarouselRichTextCard.js +0 -8
  442. package/dist/components/CarouselRichTextCard/CarouselRichTextCard.js.map +0 -1
  443. package/dist/components/CarouselRichTextCard/CarouselRichTextCardContent.d.ts +0 -6
  444. package/dist/components/CarouselRichTextCard/CarouselRichTextCardContent.js +0 -2
  445. package/dist/components/CarouselRichTextCard/CarouselRichTextCardContent.js.map +0 -1
  446. package/dist/components/PromoTile/PromoTile.d.ts +0 -5
  447. package/dist/components/PromoTile/PromoTile.js +0 -20
  448. package/dist/components/PromoTile/PromoTile.js.map +0 -1
  449. package/dist/components/PromoTile/PromoTileContent.d.ts +0 -10
  450. package/dist/components/PromoTile/PromoTileContent.js.map +0 -1
  451. package/dist/components/TariffsTable/headlineAlign.d.ts +0 -1
  452. package/dist/components/TariffsTable/headlineAlign.js +0 -4
  453. package/dist/components/TariffsTable/headlineAlign.js.map +0 -1
  454. package/dist/components/TariffsTable/headlineAlign.mobile.d.ts +0 -1
  455. package/dist/components/TariffsTable/headlineAlign.mobile.js +0 -4
  456. package/dist/components/TariffsTable/headlineAlign.mobile.js.map +0 -1
  457. package/lib/components/CarouselProductCard/CarouselProductCard.d.ts +0 -5
  458. package/lib/components/CarouselProductCard/CarouselProductCard.fixture.d.ts +0 -13
  459. package/lib/components/CarouselProductCard/CarouselProductCard.fixture.mobile.d.ts +0 -13
  460. package/lib/components/CarouselProductCard/CarouselProductCard.js +0 -24
  461. package/lib/components/CarouselProductCard/CarouselProductCard.js.map +0 -1
  462. package/lib/components/CarouselProductCard/CarouselProductCardContent.d.ts +0 -27
  463. package/lib/components/CarouselProductCard/CarouselProductCardContent.js +0 -2
  464. package/lib/components/CarouselProductCard/CarouselProductCardContent.js.map +0 -1
  465. package/lib/components/CarouselRichTextCard/CarouselRichTextCard.d.ts +0 -5
  466. package/lib/components/CarouselRichTextCard/CarouselRichTextCard.fixture.d.ts +0 -8
  467. package/lib/components/CarouselRichTextCard/CarouselRichTextCard.js +0 -6
  468. package/lib/components/CarouselRichTextCard/CarouselRichTextCard.js.map +0 -1
  469. package/lib/components/CarouselRichTextCard/CarouselRichTextCardContent.d.ts +0 -6
  470. package/lib/components/CarouselRichTextCard/CarouselRichTextCardContent.js +0 -2
  471. package/lib/components/CarouselRichTextCard/CarouselRichTextCardContent.js.map +0 -1
  472. package/lib/components/PromoTile/PromoTile.d.ts +0 -5
  473. package/lib/components/PromoTile/PromoTile.js +0 -18
  474. package/lib/components/PromoTile/PromoTile.js.map +0 -1
  475. package/lib/components/PromoTile/PromoTileContent.d.ts +0 -10
  476. package/lib/components/PromoTile/PromoTileContent.js +0 -2
  477. package/lib/components/PromoTile/PromoTileContent.js.map +0 -1
  478. package/lib/components/TariffsTable/headlineAlign.d.ts +0 -1
  479. package/lib/components/TariffsTable/headlineAlign.js +0 -2
  480. package/lib/components/TariffsTable/headlineAlign.js.map +0 -1
  481. package/lib/components/TariffsTable/headlineAlign.mobile.d.ts +0 -1
  482. package/lib/components/TariffsTable/headlineAlign.mobile.js +0 -2
  483. package/lib/components/TariffsTable/headlineAlign.mobile.js.map +0 -1
  484. package/mobile/bundle/components/CarouselProductCard/CarouselProductCard.d.ts +0 -5
  485. package/mobile/bundle/components/CarouselProductCard/CarouselProductCardContent.d.ts +0 -27
  486. package/mobile/bundle/components/CarouselRichTextCard/CarouselRichTextCard.d.ts +0 -5
  487. package/mobile/bundle/components/CarouselRichTextCard/CarouselRichTextCardContent.d.ts +0 -6
  488. package/mobile/bundle/components/PromoTile/PromoTile.d.ts +0 -5
  489. package/mobile/bundle/components/PromoTile/PromoTileContent.d.ts +0 -10
  490. package/mobile/bundle/components/TariffsTable/headlineAlign.d.ts +0 -1
  491. package/mobile/dist/components/CarouselProductCard/CarouselProductCard.d.ts +0 -5
  492. package/mobile/dist/components/CarouselProductCard/CarouselProductCard.js +0 -26
  493. package/mobile/dist/components/CarouselProductCard/CarouselProductCard.js.map +0 -1
  494. package/mobile/dist/components/CarouselProductCard/CarouselProductCardContent.d.ts +0 -27
  495. package/mobile/dist/components/CarouselProductCard/CarouselProductCardContent.js +0 -2
  496. package/mobile/dist/components/CarouselProductCard/CarouselProductCardContent.js.map +0 -1
  497. package/mobile/dist/components/CarouselRichTextCard/CarouselRichTextCard.d.ts +0 -5
  498. package/mobile/dist/components/CarouselRichTextCard/CarouselRichTextCard.js +0 -8
  499. package/mobile/dist/components/CarouselRichTextCard/CarouselRichTextCard.js.map +0 -1
  500. package/mobile/dist/components/CarouselRichTextCard/CarouselRichTextCardContent.d.ts +0 -6
  501. package/mobile/dist/components/CarouselRichTextCard/CarouselRichTextCardContent.js +0 -2
  502. package/mobile/dist/components/CarouselRichTextCard/CarouselRichTextCardContent.js.map +0 -1
  503. package/mobile/dist/components/PromoTile/PromoTile.d.ts +0 -5
  504. package/mobile/dist/components/PromoTile/PromoTile.js +0 -20
  505. package/mobile/dist/components/PromoTile/PromoTile.js.map +0 -1
  506. package/mobile/dist/components/PromoTile/PromoTileContent.d.ts +0 -10
  507. package/mobile/dist/components/PromoTile/PromoTileContent.js.map +0 -1
  508. package/mobile/dist/components/TariffsTable/headlineAlign.d.ts +0 -1
  509. package/mobile/dist/components/TariffsTable/headlineAlign.js +0 -4
  510. package/mobile/dist/components/TariffsTable/headlineAlign.js.map +0 -1
  511. package/mobile/lib/components/CarouselProductCard/CarouselProductCard.d.ts +0 -5
  512. package/mobile/lib/components/CarouselProductCard/CarouselProductCard.js +0 -24
  513. package/mobile/lib/components/CarouselProductCard/CarouselProductCard.js.map +0 -1
  514. package/mobile/lib/components/CarouselProductCard/CarouselProductCardContent.d.ts +0 -27
  515. package/mobile/lib/components/CarouselProductCard/CarouselProductCardContent.js +0 -2
  516. package/mobile/lib/components/CarouselProductCard/CarouselProductCardContent.js.map +0 -1
  517. package/mobile/lib/components/CarouselRichTextCard/CarouselRichTextCard.d.ts +0 -5
  518. package/mobile/lib/components/CarouselRichTextCard/CarouselRichTextCard.js +0 -6
  519. package/mobile/lib/components/CarouselRichTextCard/CarouselRichTextCard.js.map +0 -1
  520. package/mobile/lib/components/CarouselRichTextCard/CarouselRichTextCardContent.d.ts +0 -6
  521. package/mobile/lib/components/CarouselRichTextCard/CarouselRichTextCardContent.js +0 -2
  522. package/mobile/lib/components/CarouselRichTextCard/CarouselRichTextCardContent.js.map +0 -1
  523. package/mobile/lib/components/PromoTile/PromoTile.d.ts +0 -5
  524. package/mobile/lib/components/PromoTile/PromoTile.js +0 -18
  525. package/mobile/lib/components/PromoTile/PromoTile.js.map +0 -1
  526. package/mobile/lib/components/PromoTile/PromoTileContent.d.ts +0 -10
  527. package/mobile/lib/components/PromoTile/PromoTileContent.js +0 -2
  528. package/mobile/lib/components/PromoTile/PromoTileContent.js.map +0 -1
  529. package/mobile/lib/components/TariffsTable/headlineAlign.d.ts +0 -1
  530. package/mobile/lib/components/TariffsTable/headlineAlign.js +0 -2
  531. package/mobile/lib/components/TariffsTable/headlineAlign.js.map +0 -1
  532. package/mobile/src/components/CarouselProductCard/CarouselProductCard.example.json +0 -20
  533. package/mobile/src/components/CarouselProductCard/CarouselProductCard.tsx +0 -115
  534. package/mobile/src/components/CarouselProductCard/CarouselProductCard.ui.json +0 -21
  535. package/mobile/src/components/CarouselProductCard/CarouselProductCardContent.ts +0 -39
  536. package/mobile/src/components/CarouselRichTextCard/CarouselRichTextCard.example.json +0 -6
  537. package/mobile/src/components/CarouselRichTextCard/CarouselRichTextCard.tsx +0 -15
  538. package/mobile/src/components/CarouselRichTextCard/CarouselRichTextCard.ui.json +0 -7
  539. package/mobile/src/components/CarouselRichTextCard/CarouselRichTextCardContent.ts +0 -7
  540. package/mobile/src/components/PromoTile/PromoTile.example.json +0 -16
  541. package/mobile/src/components/PromoTile/PromoTile.tsx +0 -53
  542. package/mobile/src/components/PromoTile/PromoTile.ui.json +0 -1
  543. package/mobile/src/components/PromoTile/PromoTileContent.ts +0 -14
  544. package/mobile/src/components/TariffsTable/headlineAlign.tsx +0 -1
  545. package/src/components/CarouselProductCard/CarouselProductCard.example.json +0 -20
  546. package/src/components/CarouselProductCard/CarouselProductCard.fixture.mobile.tsx +0 -92
  547. package/src/components/CarouselProductCard/CarouselProductCard.fixture.tsx +0 -96
  548. package/src/components/CarouselProductCard/CarouselProductCard.tsx +0 -115
  549. package/src/components/CarouselProductCard/CarouselProductCard.ui.json +0 -21
  550. package/src/components/CarouselProductCard/CarouselProductCardContent.ts +0 -39
  551. package/src/components/CarouselRichTextCard/CarouselRichTextCard.example.json +0 -6
  552. package/src/components/CarouselRichTextCard/CarouselRichTextCard.fixture.tsx +0 -26
  553. package/src/components/CarouselRichTextCard/CarouselRichTextCard.tsx +0 -15
  554. package/src/components/CarouselRichTextCard/CarouselRichTextCard.ui.json +0 -7
  555. package/src/components/CarouselRichTextCard/CarouselRichTextCardContent.ts +0 -7
  556. package/src/components/PromoTile/PromoTile.example.json +0 -16
  557. package/src/components/PromoTile/PromoTile.fixture.tsx +0 -25
  558. package/src/components/PromoTile/PromoTile.tsx +0 -53
  559. package/src/components/PromoTile/PromoTile.ui.json +0 -1
  560. package/src/components/PromoTile/PromoTileContent.ts +0 -14
  561. package/src/components/TariffsTable/headlineAlign.mobile.tsx +0 -1
  562. package/src/components/TariffsTable/headlineAlign.tsx +0 -1
@@ -19,9 +19,6 @@ function adjustCarousel(blocks) {
19
19
  ignoreUpdateVersion = true;
20
20
  }
21
21
  if (block.blocks && block.type === 'Carousel') {
22
- if (block.content) {
23
- deleteOldProperties(block.content);
24
- }
25
22
  if (!ignoreUpdateVersion) {
26
23
  updateVersion(block);
27
24
  }
@@ -39,10 +36,3 @@ function updateVersion(block) {
39
36
  }
40
37
  }
41
38
  }
42
-
43
- function deleteOldProperties(content) {
44
- Reflect.deleteProperty(content, 'isBlur');
45
- Reflect.deleteProperty(content, 'isCycle');
46
- Reflect.deleteProperty(content, 'isTheme');
47
- Reflect.deleteProperty(content, 'isPadding');
48
- }
@@ -0,0 +1,28 @@
1
+ export const description = 'v0.14.28';
2
+
3
+ export default (uniPath, content) => {
4
+ if (!content?.blocks) {
5
+ return content;
6
+ }
7
+
8
+ for (const block of content.blocks) {
9
+ adjustCarouselRichTextCardBlock(block);
10
+ }
11
+
12
+ return { ...content };
13
+ };
14
+
15
+ function adjustCarouselRichTextCardBlock(block) {
16
+ if (block.blocks) {
17
+ for (const childBlock of block.blocks) {
18
+ adjustCarouselRichTextCardBlock(childBlock);
19
+ }
20
+ }
21
+ if (block.type === 'CarouselRichTextCard' && block?.content) {
22
+ block.content.richVersion = 'striped';
23
+ block.content.padding = 'p-xl';
24
+ }
25
+ if (block.type === 'CarouselRichTextCard') {
26
+ block.type = 'RichTextBlock';
27
+ }
28
+ }
@@ -0,0 +1,105 @@
1
+ import { deleteEmptyProps, deleteProp, renameProp } from '../utils.js';
2
+
3
+ export const description = 'v0.14.29';
4
+
5
+ export default (uniPath, content) => {
6
+ if (!content?.blocks) {
7
+ return content;
8
+ }
9
+
10
+ for (const block of content.blocks) {
11
+ adjustCarouselProductCardBlock(block);
12
+ }
13
+
14
+ return { ...content };
15
+ };
16
+
17
+ function adjustCarouselProductCardBlock(block) {
18
+ if (block.blocks) {
19
+ for (const childBlock of block.blocks) {
20
+ adjustCarouselProductCardBlock(childBlock);
21
+ }
22
+ }
23
+
24
+ const content = block?.content;
25
+
26
+ if (!block?.content) {
27
+ return;
28
+ }
29
+
30
+ if (block.type === 'CarouselProductCard' && content) {
31
+ block.content = deleteEmptyProps(content);
32
+ block.content = deleteEmptyButton(content);
33
+
34
+ const isHeadlineSmallVersion = 'headlineSmallVersion' in content;
35
+ const isXL =
36
+ content?.headlineSmallVersion === 'XL_L' ||
37
+ content?.headlineSmallVersion === 'XL_R' ||
38
+ content?.headlineSmallVersion === 'L_R';
39
+ adjustSocialMedia(content);
40
+ if (isHeadlineSmallVersion && isXL && content?.title) {
41
+ renameProp(content, 'title', 'description');
42
+ }
43
+ content.imageOptions = {
44
+ ...content.imageOptions,
45
+ isImageAlwaysOnRight: false,
46
+ };
47
+
48
+ if (content?.isTopPosition) {
49
+ content.imageOptions = {
50
+ ...content.imageOptions,
51
+ directionRight: false,
52
+ };
53
+ }
54
+ if (content?.items && content?.items?.length) {
55
+ content.items = content.items.map((_) => _?.text || _);
56
+ }
57
+
58
+ deleteProp(content, 'headlineSmallVersion');
59
+ deleteProp(content, 'button');
60
+ deleteProp(content, 'isImageFullWidth');
61
+ deleteProp(content, 'isButtonFullWidth');
62
+ deleteProp(content, 'isTopPosition');
63
+
64
+ block.type = 'CarouselRecommendationCard';
65
+ }
66
+ }
67
+
68
+ function adjustSocialMedia(content) {
69
+ const button = content?.button;
70
+ if (button?.text || button?.icon || button?.iconRight) {
71
+ content.socialMedia = [{ ...button }];
72
+ }
73
+ }
74
+
75
+ function clearIcon(obj, prop = 'icon') {
76
+ const iconObj = obj?.[prop];
77
+
78
+ if (!iconObj) {
79
+ return;
80
+ }
81
+ const isIconName = iconObj?.icon || iconObj?.src;
82
+
83
+ if (!isIconName) {
84
+ deleteProp(obj, prop);
85
+ }
86
+ if (prop === 'icon') {
87
+ clearIcon(obj, 'iconRight');
88
+ }
89
+ }
90
+
91
+ function deleteEmptyButton(obj) {
92
+ if (obj?.buttons && !obj?.buttons?.length) {
93
+ for (const arrButton of obj.buttons) {
94
+ deleteEmptyButton(arrButton);
95
+ }
96
+ }
97
+ const button = obj?.button;
98
+ clearIcon(button);
99
+ if (button?.text || button?.icon || button?.iconRight) {
100
+ return obj;
101
+ }
102
+ deleteProp(obj, 'button');
103
+
104
+ return obj;
105
+ }
@@ -22,16 +22,16 @@ function adjustBusinessDepositCalculator(block) {
22
22
  if (block?.content && block?.type === 'Calculator') {
23
23
  const businessDepositCalculatorsTabs = block.content.calculatorTabs.filter(
24
24
  (_) =>
25
- _.calculatorBlock.calcType === 'BusinessDepositCalculatorForm' &&
26
- _.calculatorBlock.sourceBookDir,
25
+ _.calculatorBlock?.calcType === 'BusinessDepositCalculatorForm' &&
26
+ _.calculatorBlock?.sourceBookDir,
27
27
  );
28
- businessDepositCalculatorsTabs.forEach((calculatorTab) => {
28
+ for (let calculatorTab of businessDepositCalculatorsTabs) {
29
29
  calculatorTab.calculatorBlock['rateParams'] = {
30
30
  rateType: 'IP',
31
31
  sourceBookDir: calculatorTab.calculatorBlock.sourceBookDir,
32
32
  };
33
33
 
34
34
  Reflect.deleteProperty(calculatorTab.calculatorBlock, 'sourceBookDir');
35
- });
35
+ }
36
36
  }
37
37
  }
package/bin/utils.js CHANGED
@@ -7,18 +7,29 @@ export function renameProp(obj, oldKey, newKey) {
7
7
  return obj;
8
8
  }
9
9
 
10
- export function deleteEmptyProps(obj) {
11
- const isObj = (_) => _ && typeof _ === 'object';
12
- const isEmpty = (_) => _ === null || _ === undefined || (isObj(_) && !Object.keys(_).length);
13
-
14
- const emptyProps = Object.keys(obj).filter((key) => isEmpty(obj[key]));
15
- for (const key in emptyProps) {
10
+ export function deleteProp(obj, key) {
11
+ if (key in obj) {
16
12
  Reflect.deleteProperty(obj, key);
17
13
  }
14
+ }
18
15
 
19
- Object.values(obj).filter(isObj).forEach(deleteEmptyProps);
16
+ export function deleteEmptyProps(obj) {
17
+ if (Array.isArray(obj)) {
18
+ return obj.map(deleteEmptyProps).filter(isNotEmpty);
19
+ } else if (obj && typeof obj === 'object') {
20
+ const entries = Object.entries(obj)
21
+ .map(([k, v]) => [k, deleteEmptyProps(v)])
22
+ .filter(([, v]) => isNotEmpty(v));
20
23
 
21
- return obj;
24
+ return entries.reduce((acc, [k, v]) => Object.assign(acc, { [k]: v }), {});
25
+ } else {
26
+ return obj;
27
+ }
22
28
  }
23
29
 
24
- export const jsonCopy = (obj) => JSON.parse(JSON.stringify(obj));
30
+ const isNotEmpty = (_) =>
31
+ _ !== null &&
32
+ _ !== undefined &&
33
+ (!Array.isArray(_) || _.length > 0) &&
34
+ (typeof _ !== 'string' || _.length > 0) &&
35
+ (typeof _ !== 'object' || Object.keys(_).length > 0);