@redneckz/wildless-cms-uni-blocks 0.14.458 → 0.14.460

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 (303) hide show
  1. package/bin/migration-scripts/0.14.454.js +101 -0
  2. package/bundle/blocks.schema.json +1 -1
  3. package/bundle/bundle.umd.js +25 -61
  4. package/bundle/bundle.umd.min.js +1 -1
  5. package/bundle/components/BenefitsBlock/BenefitsBlockContent.d.ts +2 -2
  6. package/bundle/components/CarouselRecommendationCard/CarouselRecommendationCardContent.d.ts +2 -2
  7. package/bundle/components/InvestmentInfo/InvestmentInfoContent.d.ts +2 -2
  8. package/bundle/components/MobileAppTile/MobileAppTileContent.d.ts +2 -2
  9. package/bundle/components/StepsBlock/StepsBlockContent.d.ts +5 -20
  10. package/bundle/components/StepsBlock/renderStep.d.ts +2 -2
  11. package/bundle/components/TariffsTable/EmbeddableCellData.d.ts +3 -3
  12. package/bundle/components/TariffsTable/TariffsTableContent.d.ts +5 -5
  13. package/bundle/ui-kit/BaseProductTile/BaseProductTileContent.d.ts +1 -2
  14. package/bundle/ui-kit/InputRange/InputRangeProps.d.ts +1 -2
  15. package/bundle/ui-kit/RichText/RichTextProps.d.ts +11 -3
  16. package/dist/components/BenefitsBlock/BenefitsBlock.js +2 -2
  17. package/dist/components/BenefitsBlock/BenefitsBlock.js.map +1 -1
  18. package/dist/components/BenefitsBlock/BenefitsBlockContent.d.ts +2 -2
  19. package/dist/components/CarouselRecommendationCard/CarouselRecommendationCard.js +2 -2
  20. package/dist/components/CarouselRecommendationCard/CarouselRecommendationCard.js.map +1 -1
  21. package/dist/components/CarouselRecommendationCard/CarouselRecommendationCardContent.d.ts +2 -2
  22. package/dist/components/InvestmentInfo/InvestmentInfo.js +3 -3
  23. package/dist/components/InvestmentInfo/InvestmentInfo.js.map +1 -1
  24. package/dist/components/InvestmentInfo/InvestmentInfoContent.d.ts +2 -2
  25. package/dist/components/MobileAppTile/MobileAppTile.js +3 -3
  26. package/dist/components/MobileAppTile/MobileAppTile.js.map +1 -1
  27. package/dist/components/MobileAppTile/MobileAppTileContent.d.ts +2 -2
  28. package/dist/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.js +1 -1
  29. package/dist/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.js.map +1 -1
  30. package/dist/components/StepsBlock/StepsBlock.js.map +1 -1
  31. package/dist/components/StepsBlock/StepsBlock.mobile.js +1 -19
  32. package/dist/components/StepsBlock/StepsBlock.mobile.js.map +1 -1
  33. package/dist/components/StepsBlock/StepsBlockContent.d.ts +5 -20
  34. package/dist/components/StepsBlock/renderStep.d.ts +2 -2
  35. package/dist/components/StepsBlock/renderStep.js +3 -17
  36. package/dist/components/StepsBlock/renderStep.js.map +1 -1
  37. package/dist/components/TariffsTable/EmbeddableCellData.d.ts +3 -3
  38. package/dist/components/TariffsTable/EmbeddableCellData.js +3 -3
  39. package/dist/components/TariffsTable/EmbeddableCellData.js.map +1 -1
  40. package/dist/components/TariffsTable/TariffsTableContent.d.ts +5 -5
  41. package/dist/components/TariffsTable/dataFixture.js +11 -6
  42. package/dist/components/TariffsTable/dataFixture.js.map +1 -1
  43. package/dist/ui-kit/BaseProductTile/BaseProductTile.js +9 -10
  44. package/dist/ui-kit/BaseProductTile/BaseProductTile.js.map +1 -1
  45. package/dist/ui-kit/BaseProductTile/BaseProductTileContent.d.ts +1 -2
  46. package/dist/ui-kit/InputRange/InputRangeProps.d.ts +1 -2
  47. package/dist/ui-kit/RichText/RichText.js +3 -2
  48. package/dist/ui-kit/RichText/RichText.js.map +1 -1
  49. package/dist/ui-kit/RichText/RichTextProps.d.ts +11 -3
  50. package/lib/common.css +1 -1
  51. package/lib/components/BenefitsBlock/BenefitsBlock.js +2 -2
  52. package/lib/components/BenefitsBlock/BenefitsBlock.js.map +1 -1
  53. package/lib/components/BenefitsBlock/BenefitsBlockContent.d.ts +2 -2
  54. package/lib/components/CarouselRecommendationCard/CarouselRecommendationCard.js +2 -2
  55. package/lib/components/CarouselRecommendationCard/CarouselRecommendationCard.js.map +1 -1
  56. package/lib/components/CarouselRecommendationCard/CarouselRecommendationCardContent.d.ts +2 -2
  57. package/lib/components/InvestmentInfo/InvestmentInfo.js +3 -3
  58. package/lib/components/InvestmentInfo/InvestmentInfo.js.map +1 -1
  59. package/lib/components/InvestmentInfo/InvestmentInfoContent.d.ts +2 -2
  60. package/lib/components/MobileAppTile/MobileAppTile.js +3 -3
  61. package/lib/components/MobileAppTile/MobileAppTile.js.map +1 -1
  62. package/lib/components/MobileAppTile/MobileAppTileContent.d.ts +2 -2
  63. package/lib/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.js +1 -1
  64. package/lib/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.js.map +1 -1
  65. package/lib/components/StepsBlock/StepsBlock.js.map +1 -1
  66. package/lib/components/StepsBlock/StepsBlock.mobile.js +1 -19
  67. package/lib/components/StepsBlock/StepsBlock.mobile.js.map +1 -1
  68. package/lib/components/StepsBlock/StepsBlockContent.d.ts +5 -20
  69. package/lib/components/StepsBlock/renderStep.d.ts +2 -2
  70. package/lib/components/StepsBlock/renderStep.js +3 -17
  71. package/lib/components/StepsBlock/renderStep.js.map +1 -1
  72. package/lib/components/TariffsTable/EmbeddableCellData.d.ts +3 -3
  73. package/lib/components/TariffsTable/EmbeddableCellData.js +3 -3
  74. package/lib/components/TariffsTable/EmbeddableCellData.js.map +1 -1
  75. package/lib/components/TariffsTable/TariffsTableContent.d.ts +5 -5
  76. package/lib/components/TariffsTable/dataFixture.js +11 -6
  77. package/lib/components/TariffsTable/dataFixture.js.map +1 -1
  78. package/lib/ui-kit/BaseProductTile/BaseProductTile.js +9 -10
  79. package/lib/ui-kit/BaseProductTile/BaseProductTile.js.map +1 -1
  80. package/lib/ui-kit/BaseProductTile/BaseProductTileContent.d.ts +1 -2
  81. package/lib/ui-kit/InputRange/InputRangeProps.d.ts +1 -2
  82. package/lib/ui-kit/RichText/RichText.fixture.d.ts +4 -0
  83. package/lib/ui-kit/RichText/RichText.js +3 -2
  84. package/lib/ui-kit/RichText/RichText.js.map +1 -1
  85. package/lib/ui-kit/RichText/RichTextProps.d.ts +11 -3
  86. package/mobile/bundle/bundle.umd.js +25 -65
  87. package/mobile/bundle/bundle.umd.min.js +1 -1
  88. package/mobile/bundle/components/BenefitsBlock/BenefitsBlockContent.d.ts +2 -2
  89. package/mobile/bundle/components/CarouselRecommendationCard/CarouselRecommendationCardContent.d.ts +2 -2
  90. package/mobile/bundle/components/InvestmentInfo/InvestmentInfoContent.d.ts +2 -2
  91. package/mobile/bundle/components/MobileAppTile/MobileAppTileContent.d.ts +2 -2
  92. package/mobile/bundle/components/StepsBlock/StepsBlockContent.d.ts +5 -20
  93. package/mobile/bundle/components/StepsBlock/renderStep.d.ts +2 -2
  94. package/mobile/bundle/components/TariffsTable/EmbeddableCellData.d.ts +3 -3
  95. package/mobile/bundle/components/TariffsTable/TariffsTableContent.d.ts +5 -5
  96. package/mobile/bundle/ui-kit/BaseProductTile/BaseProductTileContent.d.ts +1 -2
  97. package/mobile/bundle/ui-kit/InputRange/InputRangeProps.d.ts +1 -2
  98. package/mobile/bundle/ui-kit/RichText/RichTextProps.d.ts +11 -3
  99. package/mobile/dist/components/BenefitsBlock/BenefitsBlock.js +2 -2
  100. package/mobile/dist/components/BenefitsBlock/BenefitsBlock.js.map +1 -1
  101. package/mobile/dist/components/BenefitsBlock/BenefitsBlockContent.d.ts +2 -2
  102. package/mobile/dist/components/CarouselRecommendationCard/CarouselRecommendationCard.js +2 -2
  103. package/mobile/dist/components/CarouselRecommendationCard/CarouselRecommendationCard.js.map +1 -1
  104. package/mobile/dist/components/CarouselRecommendationCard/CarouselRecommendationCardContent.d.ts +2 -2
  105. package/mobile/dist/components/InvestmentInfo/InvestmentInfo.js +3 -3
  106. package/mobile/dist/components/InvestmentInfo/InvestmentInfo.js.map +1 -1
  107. package/mobile/dist/components/InvestmentInfo/InvestmentInfoContent.d.ts +2 -2
  108. package/mobile/dist/components/MobileAppTile/MobileAppTile.js +3 -3
  109. package/mobile/dist/components/MobileAppTile/MobileAppTile.js.map +1 -1
  110. package/mobile/dist/components/MobileAppTile/MobileAppTileContent.d.ts +2 -2
  111. package/mobile/dist/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.js +1 -1
  112. package/mobile/dist/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.js.map +1 -1
  113. package/mobile/dist/components/StepsBlock/StepsBlock.js +1 -19
  114. package/mobile/dist/components/StepsBlock/StepsBlock.js.map +1 -1
  115. package/mobile/dist/components/StepsBlock/StepsBlockContent.d.ts +5 -20
  116. package/mobile/dist/components/StepsBlock/renderStep.d.ts +2 -2
  117. package/mobile/dist/components/StepsBlock/renderStep.js +3 -17
  118. package/mobile/dist/components/StepsBlock/renderStep.js.map +1 -1
  119. package/mobile/dist/components/TariffsTable/EmbeddableCellData.d.ts +3 -3
  120. package/mobile/dist/components/TariffsTable/EmbeddableCellData.js +3 -3
  121. package/mobile/dist/components/TariffsTable/EmbeddableCellData.js.map +1 -1
  122. package/mobile/dist/components/TariffsTable/TariffsTableContent.d.ts +5 -5
  123. package/mobile/dist/components/TariffsTable/dataFixture.js +11 -6
  124. package/mobile/dist/components/TariffsTable/dataFixture.js.map +1 -1
  125. package/mobile/dist/ui-kit/BaseProductTile/BaseProductTile.js +9 -10
  126. package/mobile/dist/ui-kit/BaseProductTile/BaseProductTile.js.map +1 -1
  127. package/mobile/dist/ui-kit/BaseProductTile/BaseProductTileContent.d.ts +1 -2
  128. package/mobile/dist/ui-kit/InputRange/InputRangeProps.d.ts +1 -2
  129. package/mobile/dist/ui-kit/RichText/RichText.js +3 -2
  130. package/mobile/dist/ui-kit/RichText/RichText.js.map +1 -1
  131. package/mobile/dist/ui-kit/RichText/RichTextProps.d.ts +11 -3
  132. package/mobile/lib/common.css +1 -1
  133. package/mobile/lib/components/BenefitsBlock/BenefitsBlock.js +2 -2
  134. package/mobile/lib/components/BenefitsBlock/BenefitsBlock.js.map +1 -1
  135. package/mobile/lib/components/BenefitsBlock/BenefitsBlockContent.d.ts +2 -2
  136. package/mobile/lib/components/CarouselRecommendationCard/CarouselRecommendationCard.js +2 -2
  137. package/mobile/lib/components/CarouselRecommendationCard/CarouselRecommendationCard.js.map +1 -1
  138. package/mobile/lib/components/CarouselRecommendationCard/CarouselRecommendationCardContent.d.ts +2 -2
  139. package/mobile/lib/components/InvestmentInfo/InvestmentInfo.js +3 -3
  140. package/mobile/lib/components/InvestmentInfo/InvestmentInfo.js.map +1 -1
  141. package/mobile/lib/components/InvestmentInfo/InvestmentInfoContent.d.ts +2 -2
  142. package/mobile/lib/components/MobileAppTile/MobileAppTile.js +3 -3
  143. package/mobile/lib/components/MobileAppTile/MobileAppTile.js.map +1 -1
  144. package/mobile/lib/components/MobileAppTile/MobileAppTileContent.d.ts +2 -2
  145. package/mobile/lib/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.js +1 -1
  146. package/mobile/lib/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.js.map +1 -1
  147. package/mobile/lib/components/StepsBlock/StepsBlock.js +1 -19
  148. package/mobile/lib/components/StepsBlock/StepsBlock.js.map +1 -1
  149. package/mobile/lib/components/StepsBlock/StepsBlockContent.d.ts +5 -20
  150. package/mobile/lib/components/StepsBlock/renderStep.d.ts +2 -2
  151. package/mobile/lib/components/StepsBlock/renderStep.js +3 -17
  152. package/mobile/lib/components/StepsBlock/renderStep.js.map +1 -1
  153. package/mobile/lib/components/TariffsTable/EmbeddableCellData.d.ts +3 -3
  154. package/mobile/lib/components/TariffsTable/EmbeddableCellData.js +3 -3
  155. package/mobile/lib/components/TariffsTable/EmbeddableCellData.js.map +1 -1
  156. package/mobile/lib/components/TariffsTable/TariffsTableContent.d.ts +5 -5
  157. package/mobile/lib/components/TariffsTable/dataFixture.js +11 -6
  158. package/mobile/lib/components/TariffsTable/dataFixture.js.map +1 -1
  159. package/mobile/lib/ui-kit/BaseProductTile/BaseProductTile.js +9 -10
  160. package/mobile/lib/ui-kit/BaseProductTile/BaseProductTile.js.map +1 -1
  161. package/mobile/lib/ui-kit/BaseProductTile/BaseProductTileContent.d.ts +1 -2
  162. package/mobile/lib/ui-kit/InputRange/InputRangeProps.d.ts +1 -2
  163. package/mobile/lib/ui-kit/RichText/RichText.js +3 -2
  164. package/mobile/lib/ui-kit/RichText/RichText.js.map +1 -1
  165. package/mobile/lib/ui-kit/RichText/RichTextProps.d.ts +11 -3
  166. package/mobile/src/common.css +30 -1
  167. package/mobile/src/components/BenefitsBlock/BenefitsBlock.example.json +1 -1
  168. package/mobile/src/components/BenefitsBlock/BenefitsBlock.tsx +3 -3
  169. package/mobile/src/components/BenefitsBlock/BenefitsBlockContent.ts +2 -2
  170. package/mobile/src/components/CarouselRecommendationCard/CarouselRecommendationCard.tsx +3 -3
  171. package/mobile/src/components/CarouselRecommendationCard/CarouselRecommendationCardContent.ts +3 -3
  172. package/mobile/src/components/InvestmentInfo/InvestmentInfo.example.json +1 -1
  173. package/mobile/src/components/InvestmentInfo/InvestmentInfo.tsx +6 -10
  174. package/mobile/src/components/InvestmentInfo/InvestmentInfoContent.ts +2 -2
  175. package/mobile/src/components/MobileAppTile/MobileAppTile.example.json +1 -1
  176. package/mobile/src/components/MobileAppTile/MobileAppTile.tsx +4 -3
  177. package/mobile/src/components/MobileAppTile/MobileAppTileContent.ts +2 -2
  178. package/mobile/src/components/ProductBlock/ProductBlock.example.json +1 -1
  179. package/mobile/src/components/ProductGallery/ProductGallery.example.json +2 -2
  180. package/mobile/src/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.tsx +1 -1
  181. package/mobile/src/components/StepsBlock/StepsBlock.example.json +0 -3
  182. package/mobile/src/components/StepsBlock/StepsBlock.tsx +28 -50
  183. package/mobile/src/components/StepsBlock/StepsBlockContent.ts +9 -24
  184. package/mobile/src/components/StepsBlock/renderStep.tsx +5 -33
  185. package/mobile/src/components/TariffsTable/EmbeddableCellData.tsx +8 -10
  186. package/mobile/src/components/TariffsTable/TariffsTable.example.json +6 -6
  187. package/mobile/src/components/TariffsTable/TariffsTableContent.ts +5 -5
  188. package/mobile/src/components/TariffsTable/dataFixture.tsx +13 -7
  189. package/mobile/src/ui-kit/BaseProductTile/BaseProductTile.tsx +17 -17
  190. package/mobile/src/ui-kit/BaseProductTile/BaseProductTileContent.ts +0 -2
  191. package/mobile/src/ui-kit/InputRange/InputRangeProps.ts +1 -2
  192. package/mobile/src/ui-kit/RichText/RichText.tsx +11 -2
  193. package/mobile/src/ui-kit/RichText/RichTextProps.ts +13 -3
  194. package/package.json +1 -1
  195. package/src/common.css +30 -1
  196. package/src/components/BenefitsBlock/BenefitsBlock.example.json +1 -1
  197. package/src/components/BenefitsBlock/BenefitsBlock.fixture.mobile.tsx +1 -0
  198. package/src/components/BenefitsBlock/BenefitsBlock.fixture.tsx +16 -15
  199. package/src/components/BenefitsBlock/BenefitsBlock.tsx +3 -3
  200. package/src/components/BenefitsBlock/BenefitsBlockContent.ts +2 -2
  201. package/src/components/CarouselRecommendationCard/CarouselRecommendationCard.fixture.mobile.tsx +15 -8
  202. package/src/components/CarouselRecommendationCard/CarouselRecommendationCard.fixture.tsx +17 -10
  203. package/src/components/CarouselRecommendationCard/CarouselRecommendationCard.tsx +3 -3
  204. package/src/components/CarouselRecommendationCard/CarouselRecommendationCardContent.ts +3 -3
  205. package/src/components/InvestmentInfo/InvestmentInfo.example.json +1 -1
  206. package/src/components/InvestmentInfo/InvestmentInfo.fixture.tsx +7 -5
  207. package/src/components/InvestmentInfo/InvestmentInfo.tsx +6 -10
  208. package/src/components/InvestmentInfo/InvestmentInfoContent.ts +2 -2
  209. package/src/components/MobileAppTile/MobileAppTile.example.json +1 -1
  210. package/src/components/MobileAppTile/MobileAppTile.fixture.mobile.tsx +9 -7
  211. package/src/components/MobileAppTile/MobileAppTile.fixture.tsx +11 -9
  212. package/src/components/MobileAppTile/MobileAppTile.tsx +4 -3
  213. package/src/components/MobileAppTile/MobileAppTileContent.ts +2 -2
  214. package/src/components/ProductBlock/ProductBlock.example.json +1 -1
  215. package/src/components/ProductBlock/ProductBlock.fixture.mobile.tsx +9 -7
  216. package/src/components/ProductBlock/ProductBlock.fixture.tsx +8 -6
  217. package/src/components/ProductGallery/ProductGallery.example.json +2 -2
  218. package/src/components/ProductGallery/ProductGallery.fixture.mobile.tsx +16 -13
  219. package/src/components/ProductGallery/ProductGallery.fixture.tsx +16 -13
  220. package/src/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.tsx +1 -1
  221. package/src/components/StepsBlock/StepsBlock.example.json +0 -3
  222. package/src/components/StepsBlock/StepsBlock.fixture.mobile.tsx +4 -19
  223. package/src/components/StepsBlock/StepsBlock.fixture.tsx +17 -16
  224. package/src/components/StepsBlock/StepsBlock.mobile.tsx +28 -50
  225. package/src/components/StepsBlock/StepsBlock.tsx +2 -2
  226. package/src/components/StepsBlock/StepsBlockContent.ts +9 -24
  227. package/src/components/StepsBlock/renderStep.tsx +5 -33
  228. package/src/components/TariffsTable/EmbeddableCellData.tsx +8 -10
  229. package/src/components/TariffsTable/TariffsTable.example.json +6 -6
  230. package/src/components/TariffsTable/TariffsTableContent.ts +5 -5
  231. package/src/components/TariffsTable/dataFixture.tsx +13 -7
  232. package/src/ui-kit/BaseProductTile/BaseProductTile.tsx +17 -17
  233. package/src/ui-kit/BaseProductTile/BaseProductTileContent.ts +0 -2
  234. package/src/ui-kit/InputRange/InputRangeProps.ts +1 -2
  235. package/src/ui-kit/RichText/RichText.fixture.tsx +45 -0
  236. package/src/ui-kit/RichText/RichText.tsx +11 -2
  237. package/src/ui-kit/RichText/RichTextProps.ts +13 -3
  238. package/bundle/model/RichTextItem.d.ts +0 -8
  239. package/bundle/ui-kit/List/List.d.ts +0 -7
  240. package/bundle/ui-kit/List/ListContent.d.ts +0 -21
  241. package/bundle/ui-kit/List/ListItem.d.ts +0 -10
  242. package/dist/model/RichTextItem.d.ts +0 -8
  243. package/dist/model/RichTextItem.js +0 -2
  244. package/dist/model/RichTextItem.js.map +0 -1
  245. package/dist/ui-kit/List/List.d.ts +0 -7
  246. package/dist/ui-kit/List/List.js +0 -28
  247. package/dist/ui-kit/List/List.js.map +0 -1
  248. package/dist/ui-kit/List/ListContent.d.ts +0 -21
  249. package/dist/ui-kit/List/ListContent.js +0 -2
  250. package/dist/ui-kit/List/ListContent.js.map +0 -1
  251. package/dist/ui-kit/List/ListItem.d.ts +0 -10
  252. package/dist/ui-kit/List/ListItem.js +0 -7
  253. package/dist/ui-kit/List/ListItem.js.map +0 -1
  254. package/lib/model/RichTextItem.d.ts +0 -8
  255. package/lib/model/RichTextItem.js +0 -2
  256. package/lib/model/RichTextItem.js.map +0 -1
  257. package/lib/ui-kit/List/List.d.ts +0 -7
  258. package/lib/ui-kit/List/List.fixture.d.ts +0 -9
  259. package/lib/ui-kit/List/List.js +0 -26
  260. package/lib/ui-kit/List/List.js.map +0 -1
  261. package/lib/ui-kit/List/ListContent.d.ts +0 -21
  262. package/lib/ui-kit/List/ListContent.js +0 -2
  263. package/lib/ui-kit/List/ListContent.js.map +0 -1
  264. package/lib/ui-kit/List/ListItem.d.ts +0 -10
  265. package/lib/ui-kit/List/ListItem.js +0 -5
  266. package/lib/ui-kit/List/ListItem.js.map +0 -1
  267. package/mobile/bundle/model/RichTextItem.d.ts +0 -8
  268. package/mobile/bundle/ui-kit/List/List.d.ts +0 -7
  269. package/mobile/bundle/ui-kit/List/ListContent.d.ts +0 -21
  270. package/mobile/bundle/ui-kit/List/ListItem.d.ts +0 -10
  271. package/mobile/dist/model/RichTextItem.d.ts +0 -8
  272. package/mobile/dist/model/RichTextItem.js +0 -2
  273. package/mobile/dist/model/RichTextItem.js.map +0 -1
  274. package/mobile/dist/ui-kit/List/List.d.ts +0 -7
  275. package/mobile/dist/ui-kit/List/List.js +0 -28
  276. package/mobile/dist/ui-kit/List/List.js.map +0 -1
  277. package/mobile/dist/ui-kit/List/ListContent.d.ts +0 -21
  278. package/mobile/dist/ui-kit/List/ListContent.js +0 -2
  279. package/mobile/dist/ui-kit/List/ListContent.js.map +0 -1
  280. package/mobile/dist/ui-kit/List/ListItem.d.ts +0 -10
  281. package/mobile/dist/ui-kit/List/ListItem.js +0 -7
  282. package/mobile/dist/ui-kit/List/ListItem.js.map +0 -1
  283. package/mobile/lib/model/RichTextItem.d.ts +0 -8
  284. package/mobile/lib/model/RichTextItem.js +0 -2
  285. package/mobile/lib/model/RichTextItem.js.map +0 -1
  286. package/mobile/lib/ui-kit/List/List.d.ts +0 -7
  287. package/mobile/lib/ui-kit/List/List.js +0 -26
  288. package/mobile/lib/ui-kit/List/List.js.map +0 -1
  289. package/mobile/lib/ui-kit/List/ListContent.d.ts +0 -21
  290. package/mobile/lib/ui-kit/List/ListContent.js +0 -2
  291. package/mobile/lib/ui-kit/List/ListContent.js.map +0 -1
  292. package/mobile/lib/ui-kit/List/ListItem.d.ts +0 -10
  293. package/mobile/lib/ui-kit/List/ListItem.js +0 -5
  294. package/mobile/lib/ui-kit/List/ListItem.js.map +0 -1
  295. package/mobile/src/model/RichTextItem.ts +0 -9
  296. package/mobile/src/ui-kit/List/List.tsx +0 -56
  297. package/mobile/src/ui-kit/List/ListContent.ts +0 -25
  298. package/mobile/src/ui-kit/List/ListItem.tsx +0 -28
  299. package/src/model/RichTextItem.ts +0 -9
  300. package/src/ui-kit/List/List.fixture.tsx +0 -28
  301. package/src/ui-kit/List/List.tsx +0 -56
  302. package/src/ui-kit/List/ListContent.ts +0 -25
  303. package/src/ui-kit/List/ListItem.tsx +0 -28
@@ -0,0 +1,101 @@
1
+ import { deleteProp, traversePageBlocks } from '../utils.js';
2
+
3
+ export const description = 'v0.14.454';
4
+
5
+ export default traversePageBlocks(adjustList);
6
+
7
+ function adjustList(block) {
8
+ const content = block?.content;
9
+
10
+ if (!content || !block?.type || !blockTypesArray.includes(block.type)) {
11
+ return;
12
+ }
13
+ if (content?.items?.length === 0) {
14
+ deleteProp(content, 'items');
15
+ }
16
+
17
+ if (block.type === 'BenefitsBlock' && content?.benefitList?.length) {
18
+ content.benefitList = listToHtml(content.benefitList);
19
+ }
20
+
21
+ if (block.type === 'ProductGallery' && content?.slides?.length) {
22
+ content.slides = listToHtml(content.slides);
23
+ for (const item of content.slides) {
24
+ if (item?.productBlock) {
25
+ item.productBlock = listToHtml(item.productBlock);
26
+ }
27
+ }
28
+ }
29
+
30
+ if (
31
+ block.type === 'AdTile' ||
32
+ block.type === 'CarouselRecommendationCard' ||
33
+ block.type === 'InvestmentInfo' ||
34
+ block.type === 'MobileAppTile' ||
35
+ block.type === 'ProductBlock' ||
36
+ block.type === 'MobileAppBlock'
37
+ ) {
38
+ block.content = listToHtml(content);
39
+ if (block?.mobile?.content?.items) {
40
+ block.mobile.content = listToHtml(content.mobile.content);
41
+ }
42
+ }
43
+
44
+ if (block.type === 'StepsBlock' && content?.steps) {
45
+ for (let step of content.steps) {
46
+ if (!step?.items) {
47
+ continue;
48
+ }
49
+ step = listToHtml(step);
50
+ deleteProp(step, 'type');
51
+ }
52
+ }
53
+
54
+ if (block.type === 'TariffsTable' && content?.tariffsColumns?.length) {
55
+ for (const column of content.tariffsColumns) {
56
+ for (const item of column?.data ?? []) {
57
+ for (let _ of item ?? []) {
58
+ if (_?.tableCellType === 'List' && _.items?.length) {
59
+ _ = listToHtml(_);
60
+ _.tableCellType = 'RichText';
61
+ }
62
+ }
63
+ }
64
+ }
65
+ }
66
+ }
67
+
68
+ const blockTypesArray = [
69
+ 'AdTile',
70
+ 'BenefitsBlock',
71
+ 'CarouselRecommendationCard',
72
+ 'InvestmentInfo',
73
+ 'MobileAppTile',
74
+ 'ProductBlock',
75
+ 'ProductGallery',
76
+ 'StepsBlock',
77
+ 'TariffsTable',
78
+ 'MobileAppBlock',
79
+ ];
80
+
81
+ const EMPTY_HTML = '<p><br></p>';
82
+
83
+ const createList = (items) => `<ul><li>${items.join('</li><li>')}</li></ul>`;
84
+
85
+ const listToHtml = (content) => {
86
+ if (Array.isArray(content)) {
87
+ for (let _ of content) {
88
+ _ = listToHtml(_);
89
+ }
90
+ }
91
+ if (content?.items?.length) {
92
+ const html = content?.__html;
93
+ content.__html =
94
+ content?.__html === EMPTY_HTML || !html
95
+ ? createList(content?.items)
96
+ : `${createList(content?.items)}${content?.__html}`;
97
+ }
98
+ deleteProp(content, 'items');
99
+
100
+ return content;
101
+ };