@redneckz/wildless-cms-uni-blocks 0.6.18 → 0.6.20

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 (437) hide show
  1. package/bin/migration-scripts/0.6.19.js +21 -0
  2. package/bundle/blocks.schema.json +1 -1
  3. package/bundle/bundle.umd.js +129 -77
  4. package/bundle/bundle.umd.min.js +1 -1
  5. package/bundle/components/Blocks.d.ts +2 -41
  6. package/bundle/components/Blocks.mobile.d.ts +2 -18
  7. package/bundle/components/ContentPage/ContentPage.d.ts +2 -2
  8. package/bundle/components/ContentPage/mapSlot.d.ts +2 -0
  9. package/bundle/components/ContentPage/normalizeBlock.d.ts +3 -11
  10. package/bundle/components/ContentPage/normalizeBlock.mobile.d.ts +3 -2
  11. package/bundle/components/ContentPage/renderBlock.d.ts +7 -3
  12. package/bundle/components/ContentPage/renderBlockList.d.ts +14 -0
  13. package/bundle/components/ContentPage/renderSlots.d.ts +12 -0
  14. package/bundle/components/StepsBlock/renderStepContent.d.ts +2 -2
  15. package/bundle/components/TariffsTable/EmbeddableCellData.d.ts +7 -1
  16. package/bundle/components/TariffsTable/TariffsTableCell.d.ts +8 -2
  17. package/bundle/components/TariffsTable/TariffsTableContent.d.ts +3 -4
  18. package/bundle/components/TariffsTable/TariffsTableRenderCell.d.ts +11 -0
  19. package/bundle/components/TariffsTable/TariffsTableRow.d.ts +0 -1
  20. package/bundle/components/TariffsTable/TariffsTableRowContainer.d.ts +3 -1
  21. package/bundle/model/BlockDecorator.d.ts +4 -3
  22. package/bundle/model/BlocksRegistry.d.ts +1 -1
  23. package/bundle/model/ContentPageDef.d.ts +1 -4
  24. package/bundle/model/JSXBlock.d.ts +3 -1
  25. package/bundle/ui-kit/InnerTable/InnerTable.d.ts +1 -0
  26. package/bundle/ui-kit/InnerTable/InnerTableButton.d.ts +1 -0
  27. package/dist/components/Blocks.d.ts +2 -41
  28. package/dist/components/Blocks.js.map +1 -1
  29. package/dist/components/Blocks.mobile.d.ts +2 -18
  30. package/dist/components/Blocks.mobile.js.map +1 -1
  31. package/dist/components/Bonus/Bonus.js +1 -1
  32. package/dist/components/Bonus/Bonus.js.map +1 -1
  33. package/dist/components/ContentPage/ContentPage.d.ts +2 -2
  34. package/dist/components/ContentPage/ContentPage.js +12 -11
  35. package/dist/components/ContentPage/ContentPage.js.map +1 -1
  36. package/dist/components/ContentPage/mapSlot.d.ts +2 -0
  37. package/dist/components/ContentPage/mapSlot.js +14 -0
  38. package/dist/components/ContentPage/mapSlot.js.map +1 -0
  39. package/dist/components/ContentPage/normalizeBlock.d.ts +3 -11
  40. package/dist/components/ContentPage/normalizeBlock.js +13 -3
  41. package/dist/components/ContentPage/normalizeBlock.js.map +1 -1
  42. package/dist/components/ContentPage/normalizeBlock.mobile.d.ts +3 -2
  43. package/dist/components/ContentPage/normalizeBlock.mobile.js +18 -3
  44. package/dist/components/ContentPage/normalizeBlock.mobile.js.map +1 -1
  45. package/dist/components/ContentPage/normalizePage.js +2 -14
  46. package/dist/components/ContentPage/normalizePage.js.map +1 -1
  47. package/dist/components/ContentPage/renderBlock.d.ts +7 -3
  48. package/dist/components/ContentPage/renderBlock.js +9 -9
  49. package/dist/components/ContentPage/renderBlock.js.map +1 -1
  50. package/dist/components/ContentPage/renderBlockList.d.ts +14 -0
  51. package/dist/components/ContentPage/renderBlockList.js +18 -0
  52. package/dist/components/ContentPage/renderBlockList.js.map +1 -0
  53. package/dist/components/ContentPage/renderSlots.d.ts +12 -0
  54. package/dist/components/ContentPage/renderSlots.js +17 -0
  55. package/dist/components/ContentPage/renderSlots.js.map +1 -0
  56. package/dist/components/ProductBlock/renderBackwardButton.js +1 -1
  57. package/dist/components/ProductBlock/renderBackwardButton.js.map +1 -1
  58. package/dist/components/SafeDepositRental/SafeDepositRental.js +1 -1
  59. package/dist/components/SafeDepositRental/SafeDepositRental.js.map +1 -1
  60. package/dist/components/StepsBlock/StepsBlock.js +3 -3
  61. package/dist/components/StepsBlock/StepsBlock.js.map +1 -1
  62. package/dist/components/StepsBlock/renderItems.js +1 -4
  63. package/dist/components/StepsBlock/renderItems.js.map +1 -1
  64. package/dist/components/StepsBlock/renderStepContent.d.ts +2 -2
  65. package/dist/components/StepsBlock/renderStepContent.js +13 -8
  66. package/dist/components/StepsBlock/renderStepContent.js.map +1 -1
  67. package/dist/components/TariffsTable/EmbeddableCellData.d.ts +7 -1
  68. package/dist/components/TariffsTable/EmbeddableCellData.js +4 -11
  69. package/dist/components/TariffsTable/EmbeddableCellData.js.map +1 -1
  70. package/dist/components/TariffsTable/TariffsTable.js +1 -1
  71. package/dist/components/TariffsTable/TariffsTable.js.map +1 -1
  72. package/dist/components/TariffsTable/TariffsTableCell.d.ts +8 -2
  73. package/dist/components/TariffsTable/TariffsTableCell.js +13 -18
  74. package/dist/components/TariffsTable/TariffsTableCell.js.map +1 -1
  75. package/dist/components/TariffsTable/TariffsTableContent.d.ts +3 -4
  76. package/dist/components/TariffsTable/TariffsTableRenderCell.d.ts +11 -0
  77. package/dist/components/TariffsTable/TariffsTableRenderCell.js +42 -0
  78. package/dist/components/TariffsTable/TariffsTableRenderCell.js.map +1 -0
  79. package/dist/components/TariffsTable/TariffsTableRow.d.ts +0 -1
  80. package/dist/components/TariffsTable/TariffsTableRow.js +6 -2
  81. package/dist/components/TariffsTable/TariffsTableRow.js.map +1 -1
  82. package/dist/components/TariffsTable/TariffsTableRowContainer.d.ts +3 -1
  83. package/dist/components/TariffsTable/TariffsTableRowContainer.js +2 -8
  84. package/dist/components/TariffsTable/TariffsTableRowContainer.js.map +1 -1
  85. package/dist/components/TariffsTable/TariffsTableTileCell.js +1 -1
  86. package/dist/components/TariffsTable/TariffsTableTileCell.js.map +1 -1
  87. package/dist/model/BlockDecorator.d.ts +4 -3
  88. package/dist/model/BlockDecorator.js +1 -2
  89. package/dist/model/BlockDecorator.js.map +1 -1
  90. package/dist/model/BlocksRegistry.d.ts +1 -1
  91. package/dist/model/ContentPageDef.d.ts +1 -4
  92. package/dist/model/JSXBlock.d.ts +3 -1
  93. package/dist/model/getParentBlockDef.js +5 -2
  94. package/dist/model/getParentBlockDef.js.map +1 -1
  95. package/dist/ui-kit/InnerTable/InnerTable.d.ts +1 -0
  96. package/dist/ui-kit/InnerTable/InnerTable.js +3 -2
  97. package/dist/ui-kit/InnerTable/InnerTable.js.map +1 -1
  98. package/dist/ui-kit/InnerTable/InnerTableButton.d.ts +1 -0
  99. package/dist/ui-kit/InnerTable/InnerTableButton.js +2 -6
  100. package/dist/ui-kit/InnerTable/InnerTableButton.js.map +1 -1
  101. package/dist/ui-kit/InputRange/InputRange.js +1 -1
  102. package/dist/ui-kit/InputRange/InputRange.js.map +1 -1
  103. package/dist/ui-kit/Radio/Radio.js +1 -1
  104. package/dist/ui-kit/Radio/Radio.js.map +1 -1
  105. package/dist/ui-kit/Select/Select.js +1 -1
  106. package/dist/ui-kit/Select/Select.js.map +1 -1
  107. package/lib/common.css +1 -1
  108. package/lib/components/Blocks.d.ts +2 -41
  109. package/lib/components/Blocks.js.map +1 -1
  110. package/lib/components/Blocks.mobile.d.ts +2 -18
  111. package/lib/components/Blocks.mobile.js.map +1 -1
  112. package/lib/components/Bonus/Bonus.js +1 -1
  113. package/lib/components/Bonus/Bonus.js.map +1 -1
  114. package/lib/components/ContentPage/ContentPage.d.ts +2 -2
  115. package/lib/components/ContentPage/ContentPage.js +12 -11
  116. package/lib/components/ContentPage/ContentPage.js.map +1 -1
  117. package/lib/components/ContentPage/mapSlot.d.ts +2 -0
  118. package/lib/components/ContentPage/mapSlot.js +11 -0
  119. package/lib/components/ContentPage/mapSlot.js.map +1 -0
  120. package/lib/components/ContentPage/normalizeBlock.d.ts +3 -11
  121. package/lib/components/ContentPage/normalizeBlock.js +13 -3
  122. package/lib/components/ContentPage/normalizeBlock.js.map +1 -1
  123. package/lib/components/ContentPage/normalizeBlock.mobile.d.ts +3 -2
  124. package/lib/components/ContentPage/normalizeBlock.mobile.js +18 -3
  125. package/lib/components/ContentPage/normalizeBlock.mobile.js.map +1 -1
  126. package/lib/components/ContentPage/normalizePage.js +2 -14
  127. package/lib/components/ContentPage/normalizePage.js.map +1 -1
  128. package/lib/components/ContentPage/renderBlock.d.ts +7 -3
  129. package/lib/components/ContentPage/renderBlock.js +9 -9
  130. package/lib/components/ContentPage/renderBlock.js.map +1 -1
  131. package/lib/components/ContentPage/renderBlockList.d.ts +14 -0
  132. package/lib/components/ContentPage/renderBlockList.js +15 -0
  133. package/lib/components/ContentPage/renderBlockList.js.map +1 -0
  134. package/lib/components/ContentPage/renderSlots.d.ts +12 -0
  135. package/lib/components/ContentPage/renderSlots.js +14 -0
  136. package/lib/components/ContentPage/renderSlots.js.map +1 -0
  137. package/lib/components/ProductBlock/renderBackwardButton.js +1 -1
  138. package/lib/components/ProductBlock/renderBackwardButton.js.map +1 -1
  139. package/lib/components/SafeDepositRental/SafeDepositRental.js +1 -1
  140. package/lib/components/SafeDepositRental/SafeDepositRental.js.map +1 -1
  141. package/lib/components/StepsBlock/StepsBlock.fixture.d.ts +6 -2
  142. package/lib/components/StepsBlock/StepsBlock.js +3 -3
  143. package/lib/components/StepsBlock/StepsBlock.js.map +1 -1
  144. package/lib/components/StepsBlock/renderItems.js +1 -4
  145. package/lib/components/StepsBlock/renderItems.js.map +1 -1
  146. package/lib/components/StepsBlock/renderStepContent.d.ts +2 -2
  147. package/lib/components/StepsBlock/renderStepContent.js +14 -9
  148. package/lib/components/StepsBlock/renderStepContent.js.map +1 -1
  149. package/lib/components/TariffsTable/EmbeddableCellData.d.ts +7 -1
  150. package/lib/components/TariffsTable/EmbeddableCellData.js +4 -11
  151. package/lib/components/TariffsTable/EmbeddableCellData.js.map +1 -1
  152. package/lib/components/TariffsTable/TariffsTable.js +1 -1
  153. package/lib/components/TariffsTable/TariffsTable.js.map +1 -1
  154. package/lib/components/TariffsTable/TariffsTableCell.d.ts +8 -2
  155. package/lib/components/TariffsTable/TariffsTableCell.js +14 -19
  156. package/lib/components/TariffsTable/TariffsTableCell.js.map +1 -1
  157. package/lib/components/TariffsTable/TariffsTableContent.d.ts +3 -4
  158. package/lib/components/TariffsTable/TariffsTableRenderCell.d.ts +11 -0
  159. package/lib/components/TariffsTable/TariffsTableRenderCell.js +39 -0
  160. package/lib/components/TariffsTable/TariffsTableRenderCell.js.map +1 -0
  161. package/lib/components/TariffsTable/TariffsTableRow.d.ts +0 -1
  162. package/lib/components/TariffsTable/TariffsTableRow.js +6 -2
  163. package/lib/components/TariffsTable/TariffsTableRow.js.map +1 -1
  164. package/lib/components/TariffsTable/TariffsTableRowContainer.d.ts +3 -1
  165. package/lib/components/TariffsTable/TariffsTableRowContainer.js +2 -8
  166. package/lib/components/TariffsTable/TariffsTableRowContainer.js.map +1 -1
  167. package/lib/components/TariffsTable/TariffsTableTileCell.js +1 -1
  168. package/lib/components/TariffsTable/TariffsTableTileCell.js.map +1 -1
  169. package/lib/model/BlockDecorator.d.ts +4 -3
  170. package/lib/model/BlockDecorator.js +0 -1
  171. package/lib/model/BlockDecorator.js.map +1 -1
  172. package/lib/model/BlocksRegistry.d.ts +1 -1
  173. package/lib/model/ContentPageDef.d.ts +1 -4
  174. package/lib/model/JSXBlock.d.ts +3 -1
  175. package/lib/model/getParentBlockDef.js +5 -2
  176. package/lib/model/getParentBlockDef.js.map +1 -1
  177. package/lib/ui-kit/InnerTable/InnerTable.d.ts +1 -0
  178. package/lib/ui-kit/InnerTable/InnerTable.js +3 -2
  179. package/lib/ui-kit/InnerTable/InnerTable.js.map +1 -1
  180. package/lib/ui-kit/InnerTable/InnerTableButton.d.ts +1 -0
  181. package/lib/ui-kit/InnerTable/InnerTableButton.js +2 -6
  182. package/lib/ui-kit/InnerTable/InnerTableButton.js.map +1 -1
  183. package/lib/ui-kit/InputRange/InputRange.js +1 -1
  184. package/lib/ui-kit/InputRange/InputRange.js.map +1 -1
  185. package/lib/ui-kit/Radio/Radio.js +1 -1
  186. package/lib/ui-kit/Radio/Radio.js.map +1 -1
  187. package/lib/ui-kit/Select/Select.js +1 -1
  188. package/lib/ui-kit/Select/Select.js.map +1 -1
  189. package/mobile/bundle/bundle.umd.js +50 -23
  190. package/mobile/bundle/bundle.umd.min.js +1 -1
  191. package/mobile/bundle/components/Blocks.d.ts +2 -18
  192. package/mobile/bundle/components/ContentPage/ContentPage.d.ts +2 -2
  193. package/mobile/bundle/components/ContentPage/mapSlot.d.ts +2 -0
  194. package/mobile/bundle/components/ContentPage/normalizeBlock.d.ts +3 -2
  195. package/mobile/bundle/components/ContentPage/renderBlock.d.ts +7 -3
  196. package/mobile/bundle/components/ContentPage/renderBlockList.d.ts +14 -0
  197. package/mobile/bundle/components/ContentPage/renderSlots.d.ts +12 -0
  198. package/mobile/bundle/components/StepsBlock/renderStepContent.d.ts +2 -2
  199. package/mobile/bundle/components/TariffsTable/TariffsTableCell.d.ts +8 -2
  200. package/mobile/bundle/components/TariffsTable/TariffsTableContent.d.ts +3 -4
  201. package/mobile/bundle/components/TariffsTable/TariffsTableRenderCell.d.ts +11 -0
  202. package/mobile/bundle/components/TariffsTable/TariffsTableRow.d.ts +0 -1
  203. package/mobile/bundle/components/TariffsTable/TariffsTableRowContainer.d.ts +3 -1
  204. package/mobile/bundle/model/BlockDecorator.d.ts +4 -3
  205. package/mobile/bundle/model/BlocksRegistry.d.ts +1 -1
  206. package/mobile/bundle/model/ContentPageDef.d.ts +1 -4
  207. package/mobile/bundle/model/JSXBlock.d.ts +3 -1
  208. package/mobile/bundle/ui-kit/InnerTable/InnerTable.d.ts +1 -0
  209. package/mobile/bundle/ui-kit/InnerTable/InnerTableButton.d.ts +1 -0
  210. package/mobile/dist/components/Blocks.d.ts +2 -18
  211. package/mobile/dist/components/Blocks.js.map +1 -1
  212. package/mobile/dist/components/Bonus/Bonus.js +1 -1
  213. package/mobile/dist/components/Bonus/Bonus.js.map +1 -1
  214. package/mobile/dist/components/ContentPage/ContentPage.d.ts +2 -2
  215. package/mobile/dist/components/ContentPage/ContentPage.js +12 -11
  216. package/mobile/dist/components/ContentPage/ContentPage.js.map +1 -1
  217. package/mobile/dist/components/ContentPage/mapSlot.d.ts +2 -0
  218. package/mobile/dist/components/ContentPage/mapSlot.js +14 -0
  219. package/mobile/dist/components/ContentPage/mapSlot.js.map +1 -0
  220. package/mobile/dist/components/ContentPage/normalizeBlock.d.ts +3 -2
  221. package/mobile/dist/components/ContentPage/normalizeBlock.js +18 -3
  222. package/mobile/dist/components/ContentPage/normalizeBlock.js.map +1 -1
  223. package/mobile/dist/components/ContentPage/normalizePage.js +2 -14
  224. package/mobile/dist/components/ContentPage/normalizePage.js.map +1 -1
  225. package/mobile/dist/components/ContentPage/renderBlock.d.ts +7 -3
  226. package/mobile/dist/components/ContentPage/renderBlock.js +9 -9
  227. package/mobile/dist/components/ContentPage/renderBlock.js.map +1 -1
  228. package/mobile/dist/components/ContentPage/renderBlockList.d.ts +14 -0
  229. package/mobile/dist/components/ContentPage/renderBlockList.js +18 -0
  230. package/mobile/dist/components/ContentPage/renderBlockList.js.map +1 -0
  231. package/mobile/dist/components/ContentPage/renderSlots.d.ts +12 -0
  232. package/mobile/dist/components/ContentPage/renderSlots.js +17 -0
  233. package/mobile/dist/components/ContentPage/renderSlots.js.map +1 -0
  234. package/mobile/dist/components/ProductBlock/renderBackwardButton.js +1 -1
  235. package/mobile/dist/components/ProductBlock/renderBackwardButton.js.map +1 -1
  236. package/mobile/dist/components/SafeDepositRental/SafeDepositRental.js +1 -1
  237. package/mobile/dist/components/SafeDepositRental/SafeDepositRental.js.map +1 -1
  238. package/mobile/dist/components/StepsBlock/renderItems.js +1 -4
  239. package/mobile/dist/components/StepsBlock/renderItems.js.map +1 -1
  240. package/mobile/dist/components/StepsBlock/renderStepContent.d.ts +2 -2
  241. package/mobile/dist/components/StepsBlock/renderStepContent.js +13 -8
  242. package/mobile/dist/components/StepsBlock/renderStepContent.js.map +1 -1
  243. package/mobile/dist/components/TariffsTable/TariffsTableCell.d.ts +8 -2
  244. package/mobile/dist/components/TariffsTable/TariffsTableCell.js +13 -18
  245. package/mobile/dist/components/TariffsTable/TariffsTableCell.js.map +1 -1
  246. package/mobile/dist/components/TariffsTable/TariffsTableContent.d.ts +3 -4
  247. package/mobile/dist/components/TariffsTable/TariffsTableRenderCell.d.ts +11 -0
  248. package/mobile/dist/components/TariffsTable/TariffsTableRenderCell.js +42 -0
  249. package/mobile/dist/components/TariffsTable/TariffsTableRenderCell.js.map +1 -0
  250. package/mobile/dist/components/TariffsTable/TariffsTableRow.d.ts +0 -1
  251. package/mobile/dist/components/TariffsTable/TariffsTableRow.js +6 -2
  252. package/mobile/dist/components/TariffsTable/TariffsTableRow.js.map +1 -1
  253. package/mobile/dist/components/TariffsTable/TariffsTableRowContainer.d.ts +3 -1
  254. package/mobile/dist/components/TariffsTable/TariffsTableRowContainer.js +2 -8
  255. package/mobile/dist/components/TariffsTable/TariffsTableRowContainer.js.map +1 -1
  256. package/mobile/dist/components/TariffsTable/TariffsTableTileCell.js +1 -1
  257. package/mobile/dist/components/TariffsTable/TariffsTableTileCell.js.map +1 -1
  258. package/mobile/dist/model/BlockDecorator.d.ts +4 -3
  259. package/mobile/dist/model/BlockDecorator.js +1 -2
  260. package/mobile/dist/model/BlockDecorator.js.map +1 -1
  261. package/mobile/dist/model/BlocksRegistry.d.ts +1 -1
  262. package/mobile/dist/model/ContentPageDef.d.ts +1 -4
  263. package/mobile/dist/model/JSXBlock.d.ts +3 -1
  264. package/mobile/dist/model/getParentBlockDef.js +5 -2
  265. package/mobile/dist/model/getParentBlockDef.js.map +1 -1
  266. package/mobile/dist/ui-kit/InnerTable/InnerTable.d.ts +1 -0
  267. package/mobile/dist/ui-kit/InnerTable/InnerTable.js +3 -2
  268. package/mobile/dist/ui-kit/InnerTable/InnerTable.js.map +1 -1
  269. package/mobile/dist/ui-kit/InnerTable/InnerTableButton.d.ts +1 -0
  270. package/mobile/dist/ui-kit/InnerTable/InnerTableButton.js +2 -6
  271. package/mobile/dist/ui-kit/InnerTable/InnerTableButton.js.map +1 -1
  272. package/mobile/dist/ui-kit/InputRange/InputRange.js +1 -1
  273. package/mobile/dist/ui-kit/InputRange/InputRange.js.map +1 -1
  274. package/mobile/dist/ui-kit/Radio/Radio.js +1 -1
  275. package/mobile/dist/ui-kit/Radio/Radio.js.map +1 -1
  276. package/mobile/dist/ui-kit/Select/Select.js +1 -1
  277. package/mobile/dist/ui-kit/Select/Select.js.map +1 -1
  278. package/mobile/lib/components/Blocks.d.ts +2 -18
  279. package/mobile/lib/components/Blocks.js.map +1 -1
  280. package/mobile/lib/components/Bonus/Bonus.js +1 -1
  281. package/mobile/lib/components/Bonus/Bonus.js.map +1 -1
  282. package/mobile/lib/components/ContentPage/ContentPage.d.ts +2 -2
  283. package/mobile/lib/components/ContentPage/ContentPage.js +12 -11
  284. package/mobile/lib/components/ContentPage/ContentPage.js.map +1 -1
  285. package/mobile/lib/components/ContentPage/mapSlot.d.ts +2 -0
  286. package/mobile/lib/components/ContentPage/mapSlot.js +11 -0
  287. package/mobile/lib/components/ContentPage/mapSlot.js.map +1 -0
  288. package/mobile/lib/components/ContentPage/normalizeBlock.d.ts +3 -2
  289. package/mobile/lib/components/ContentPage/normalizeBlock.js +18 -3
  290. package/mobile/lib/components/ContentPage/normalizeBlock.js.map +1 -1
  291. package/mobile/lib/components/ContentPage/normalizePage.js +2 -14
  292. package/mobile/lib/components/ContentPage/normalizePage.js.map +1 -1
  293. package/mobile/lib/components/ContentPage/renderBlock.d.ts +7 -3
  294. package/mobile/lib/components/ContentPage/renderBlock.js +9 -9
  295. package/mobile/lib/components/ContentPage/renderBlock.js.map +1 -1
  296. package/mobile/lib/components/ContentPage/renderBlockList.d.ts +14 -0
  297. package/mobile/lib/components/ContentPage/renderBlockList.js +15 -0
  298. package/mobile/lib/components/ContentPage/renderBlockList.js.map +1 -0
  299. package/mobile/lib/components/ContentPage/renderSlots.d.ts +12 -0
  300. package/mobile/lib/components/ContentPage/renderSlots.js +14 -0
  301. package/mobile/lib/components/ContentPage/renderSlots.js.map +1 -0
  302. package/mobile/lib/components/ProductBlock/renderBackwardButton.js +1 -1
  303. package/mobile/lib/components/ProductBlock/renderBackwardButton.js.map +1 -1
  304. package/mobile/lib/components/SafeDepositRental/SafeDepositRental.js +1 -1
  305. package/mobile/lib/components/SafeDepositRental/SafeDepositRental.js.map +1 -1
  306. package/mobile/lib/components/StepsBlock/renderItems.js +1 -4
  307. package/mobile/lib/components/StepsBlock/renderItems.js.map +1 -1
  308. package/mobile/lib/components/StepsBlock/renderStepContent.d.ts +2 -2
  309. package/mobile/lib/components/StepsBlock/renderStepContent.js +14 -9
  310. package/mobile/lib/components/StepsBlock/renderStepContent.js.map +1 -1
  311. package/mobile/lib/components/TariffsTable/TariffsTableCell.d.ts +8 -2
  312. package/mobile/lib/components/TariffsTable/TariffsTableCell.js +14 -19
  313. package/mobile/lib/components/TariffsTable/TariffsTableCell.js.map +1 -1
  314. package/mobile/lib/components/TariffsTable/TariffsTableContent.d.ts +3 -4
  315. package/mobile/lib/components/TariffsTable/TariffsTableRenderCell.d.ts +11 -0
  316. package/mobile/lib/components/TariffsTable/TariffsTableRenderCell.js +39 -0
  317. package/mobile/lib/components/TariffsTable/TariffsTableRenderCell.js.map +1 -0
  318. package/mobile/lib/components/TariffsTable/TariffsTableRow.d.ts +0 -1
  319. package/mobile/lib/components/TariffsTable/TariffsTableRow.js +6 -2
  320. package/mobile/lib/components/TariffsTable/TariffsTableRow.js.map +1 -1
  321. package/mobile/lib/components/TariffsTable/TariffsTableRowContainer.d.ts +3 -1
  322. package/mobile/lib/components/TariffsTable/TariffsTableRowContainer.js +2 -8
  323. package/mobile/lib/components/TariffsTable/TariffsTableRowContainer.js.map +1 -1
  324. package/mobile/lib/components/TariffsTable/TariffsTableTileCell.js +1 -1
  325. package/mobile/lib/components/TariffsTable/TariffsTableTileCell.js.map +1 -1
  326. package/mobile/lib/model/BlockDecorator.d.ts +4 -3
  327. package/mobile/lib/model/BlockDecorator.js +0 -1
  328. package/mobile/lib/model/BlockDecorator.js.map +1 -1
  329. package/mobile/lib/model/BlocksRegistry.d.ts +1 -1
  330. package/mobile/lib/model/ContentPageDef.d.ts +1 -4
  331. package/mobile/lib/model/JSXBlock.d.ts +3 -1
  332. package/mobile/lib/model/getParentBlockDef.js +5 -2
  333. package/mobile/lib/model/getParentBlockDef.js.map +1 -1
  334. package/mobile/lib/ui-kit/InnerTable/InnerTable.d.ts +1 -0
  335. package/mobile/lib/ui-kit/InnerTable/InnerTable.js +3 -2
  336. package/mobile/lib/ui-kit/InnerTable/InnerTable.js.map +1 -1
  337. package/mobile/lib/ui-kit/InnerTable/InnerTableButton.d.ts +1 -0
  338. package/mobile/lib/ui-kit/InnerTable/InnerTableButton.js +2 -6
  339. package/mobile/lib/ui-kit/InnerTable/InnerTableButton.js.map +1 -1
  340. package/mobile/lib/ui-kit/InputRange/InputRange.js +1 -1
  341. package/mobile/lib/ui-kit/InputRange/InputRange.js.map +1 -1
  342. package/mobile/lib/ui-kit/Radio/Radio.js +1 -1
  343. package/mobile/lib/ui-kit/Radio/Radio.js.map +1 -1
  344. package/mobile/lib/ui-kit/Select/Select.js +1 -1
  345. package/mobile/lib/ui-kit/Select/Select.js.map +1 -1
  346. package/mobile/src/components/Blocks.ts +2 -1
  347. package/mobile/src/components/Bonus/Bonus.tsx +1 -1
  348. package/mobile/src/components/ContentPage/ContentPage.page.json +7 -10
  349. package/mobile/src/components/ContentPage/ContentPage.tsx +24 -28
  350. package/mobile/src/components/ContentPage/mapSlot.ts +17 -0
  351. package/mobile/src/components/ContentPage/normalizeBlock.ts +26 -4
  352. package/mobile/src/components/ContentPage/normalizePage.ts +3 -20
  353. package/mobile/src/components/ContentPage/renderBlock.tsx +16 -18
  354. package/mobile/src/components/ContentPage/renderBlockList.tsx +39 -0
  355. package/mobile/src/components/ContentPage/renderSlots.tsx +33 -0
  356. package/mobile/src/components/ProductBlock/renderBackwardButton.tsx +5 -1
  357. package/mobile/src/components/SafeDepositRental/SafeDepositRental.tsx +6 -1
  358. package/mobile/src/components/StepsBlock/renderItems.tsx +5 -8
  359. package/mobile/src/components/StepsBlock/renderStepContent.tsx +40 -15
  360. package/mobile/src/components/TariffsTable/TariffsTableCell.tsx +39 -45
  361. package/mobile/src/components/TariffsTable/TariffsTableContent.ts +3 -4
  362. package/mobile/src/components/TariffsTable/TariffsTableRenderCell.tsx +88 -0
  363. package/mobile/src/components/TariffsTable/TariffsTableRow.tsx +18 -9
  364. package/mobile/src/components/TariffsTable/TariffsTableRowContainer.tsx +5 -20
  365. package/mobile/src/components/TariffsTable/TariffsTableTileCell.tsx +3 -1
  366. package/mobile/src/model/BlockDecorator.ts +4 -4
  367. package/mobile/src/model/BlocksRegistry.ts +1 -1
  368. package/mobile/src/model/ContentPageDef.ts +1 -5
  369. package/mobile/src/model/JSXBlock.ts +3 -1
  370. package/mobile/src/model/getParentBlockDef.ts +6 -2
  371. package/mobile/src/ui-kit/InnerTable/InnerTable.tsx +13 -4
  372. package/mobile/src/ui-kit/InnerTable/InnerTableButton.tsx +20 -26
  373. package/mobile/src/ui-kit/InputRange/InputRange.tsx +1 -1
  374. package/mobile/src/ui-kit/Radio/Radio.tsx +2 -2
  375. package/mobile/src/ui-kit/Select/Select.tsx +1 -1
  376. package/package.json +1 -1
  377. package/src/components/Accordion/Accordion.fixture.mobile.tsx +16 -4
  378. package/src/components/Blocks.mobile.ts +2 -1
  379. package/src/components/Blocks.ts +2 -1
  380. package/src/components/Bonus/Bonus.tsx +1 -1
  381. package/src/components/ContentPage/ContentPage.page.json +7 -10
  382. package/src/components/ContentPage/ContentPage.tsx +24 -28
  383. package/src/components/ContentPage/mapSlot.ts +17 -0
  384. package/src/components/ContentPage/normalizeBlock.mobile.ts +26 -4
  385. package/src/components/ContentPage/normalizeBlock.ts +17 -4
  386. package/src/components/ContentPage/normalizePage.ts +3 -20
  387. package/src/components/ContentPage/renderBlock.tsx +16 -18
  388. package/src/components/ContentPage/renderBlockList.tsx +39 -0
  389. package/src/components/ContentPage/renderSlots.tsx +33 -0
  390. package/src/components/ProductBlock/renderBackwardButton.tsx +5 -1
  391. package/src/components/SafeDepositRental/SafeDepositRental.tsx +6 -1
  392. package/src/components/StepsBlock/StepsBlock.fixture.tsx +72 -81
  393. package/src/components/StepsBlock/StepsBlock.tsx +3 -3
  394. package/src/components/StepsBlock/renderItems.tsx +5 -8
  395. package/src/components/StepsBlock/renderStepContent.tsx +40 -15
  396. package/src/components/TariffsTable/EmbeddableCellData.tsx +20 -18
  397. package/src/components/TariffsTable/TariffsTable.tsx +1 -2
  398. package/src/components/TariffsTable/TariffsTableCell.tsx +39 -45
  399. package/src/components/TariffsTable/TariffsTableContent.ts +3 -4
  400. package/src/components/TariffsTable/TariffsTableRenderCell.tsx +88 -0
  401. package/src/components/TariffsTable/TariffsTableRow.tsx +18 -9
  402. package/src/components/TariffsTable/TariffsTableRowContainer.tsx +5 -20
  403. package/src/components/TariffsTable/TariffsTableTileCell.tsx +3 -1
  404. package/src/model/BlockDecorator.ts +4 -4
  405. package/src/model/BlocksRegistry.ts +1 -1
  406. package/src/model/ContentPageDef.ts +1 -5
  407. package/src/model/JSXBlock.ts +3 -1
  408. package/src/model/getParentBlockDef.ts +6 -2
  409. package/src/ui-kit/InnerTable/InnerTable.tsx +13 -4
  410. package/src/ui-kit/InnerTable/InnerTableButton.tsx +20 -26
  411. package/src/ui-kit/InputRange/InputRange.tsx +1 -1
  412. package/src/ui-kit/Radio/Radio.tsx +2 -2
  413. package/src/ui-kit/Select/Select.tsx +1 -1
  414. package/bundle/components/ContentPage/filterBlocks.d.ts +0 -12
  415. package/bundle/components/ContentPage/filterBlocks.mobile.d.ts +0 -12
  416. package/dist/components/ContentPage/filterBlocks.d.ts +0 -12
  417. package/dist/components/ContentPage/filterBlocks.js +0 -6
  418. package/dist/components/ContentPage/filterBlocks.js.map +0 -1
  419. package/dist/components/ContentPage/filterBlocks.mobile.d.ts +0 -12
  420. package/dist/components/ContentPage/filterBlocks.mobile.js +0 -8
  421. package/dist/components/ContentPage/filterBlocks.mobile.js.map +0 -1
  422. package/lib/components/ContentPage/filterBlocks.d.ts +0 -12
  423. package/lib/components/ContentPage/filterBlocks.js +0 -3
  424. package/lib/components/ContentPage/filterBlocks.js.map +0 -1
  425. package/lib/components/ContentPage/filterBlocks.mobile.d.ts +0 -12
  426. package/lib/components/ContentPage/filterBlocks.mobile.js +0 -5
  427. package/lib/components/ContentPage/filterBlocks.mobile.js.map +0 -1
  428. package/mobile/bundle/components/ContentPage/filterBlocks.d.ts +0 -3
  429. package/mobile/dist/components/ContentPage/filterBlocks.d.ts +0 -3
  430. package/mobile/dist/components/ContentPage/filterBlocks.js +0 -8
  431. package/mobile/dist/components/ContentPage/filterBlocks.js.map +0 -1
  432. package/mobile/lib/components/ContentPage/filterBlocks.d.ts +0 -3
  433. package/mobile/lib/components/ContentPage/filterBlocks.js +0 -5
  434. package/mobile/lib/components/ContentPage/filterBlocks.js.map +0 -1
  435. package/mobile/src/components/ContentPage/filterBlocks.ts +0 -11
  436. package/src/components/ContentPage/filterBlocks.mobile.ts +0 -11
  437. package/src/components/ContentPage/filterBlocks.ts +0 -6
@@ -1,41 +1,2 @@
1
- export declare const Blocks: {
2
- Accordion: import("../model/JSXBlock").JSXBlock<import("./Accordion/Accordion").AccordionProps>;
3
- AccordionItem: import("../model/JSXBlock").JSXBlock<import("./AccordionItem/AccordionItemProps").AccordionItemProps>;
4
- BenefitsBlock: import("@redneckz/uni-jsx").UNIComponent<import("./BenefitsBlock/BenefitsBlock").BenefitsBlockProps, any, any>;
5
- Bonus: import("@redneckz/uni-jsx").UNIComponent<import("./Bonus/Bonus").BonusProps, any, any>;
6
- CardTransfer: import("@redneckz/uni-jsx").UNIComponent<import("./CardTransfer/CardTransfer").CardTransferProps, any, any>;
7
- ComparisonTable: import("@redneckz/uni-jsx").UNIComponent<import("./ComparisonTable/ComparisonTable").ComparisonTableProps, any, any>;
8
- Calculator: import("@redneckz/uni-jsx").UNIComponent<import("./Calculator/Calculator").CalculatorProps, any, any>;
9
- Catalog: import("@redneckz/uni-jsx").UNIComponent<import("./Catalog/Catalog").CatalogProps, any, any>;
10
- ContactsBlock: import("@redneckz/uni-jsx").UNIComponent<import("./ContactsBlock/ContactsBlock").ContactsBlockProps, any, any>;
11
- ExchangeRateTile: import("@redneckz/uni-jsx").UNIComponent<import("./ExchangeRateTile/ExchangeRateTile").ExchangeRateTileProps, any, any>;
12
- Footer: import("@redneckz/uni-jsx").UNIComponent<import("./Footer/Footer").FooterProps, any, any>;
13
- Gallery: import("@redneckz/uni-jsx").UNIComponent<import("./Gallery/GalleryProps").GalleryProps, any, any>;
14
- GracePeriod: import("@redneckz/uni-jsx").UNIComponent<import("./GracePeriod/GracePeriod").GracePeriodProps, any, any>;
15
- Header: import("@redneckz/uni-jsx").UNIComponent<import("./Header/Header").HeaderProps, any, any>;
16
- Headline: import("@redneckz/uni-jsx").UNIComponent<import("./Headline/Headline").HeadlineProps, any, any>;
17
- InsuranceAmountBlock: import("@redneckz/uni-jsx").UNIComponent<import("./InsuranceAmountBlock/InsuranceAmountBlock").InsuranceAmountBlockProps, any, any>;
18
- InvestmentInfo: import("@redneckz/uni-jsx").UNIComponent<import("./InvestmentInfo/InvestmentInfo").InvestmentInfoProps, any, any>;
19
- LinkDocs: import("@redneckz/uni-jsx").UNIComponent<import("./LinkDocs/LinkDocs").LinkDocsProps, any, any>;
20
- MiniGallery: import("@redneckz/uni-jsx").UNIComponent<import("./MiniGallery/MiniGallery").MiniGalleryProps, any, any>;
21
- MobileAppTile: import("@redneckz/uni-jsx").UNIComponent<import("./MobileAppTile/MobileAppTile").MobileAppTileProps, any, any>;
22
- PictureText: import("@redneckz/uni-jsx").UNIComponent<import("./PictureText/PictureText").PictureTextProps, any, any>;
23
- ProductBlock: import("@redneckz/uni-jsx").UNIComponent<import("./ProductBlock/ProductBlock").ProductBlockProps, any, any>;
24
- ProductGallery: import("@redneckz/uni-jsx").UNIComponent<import("./ProductGallery/ProductGallery").ProductGalleryProps, any, any>;
25
- ProductTile: import("@redneckz/uni-jsx").UNIComponent<import("./ProductTile/ProductTile").ProductTileProps, any, any>;
26
- PromoTile: import("@redneckz/uni-jsx").UNIComponent<import("./PromoTile/PromoTile").PromoTileProps, any, any>;
27
- OfficeMap: import("@redneckz/uni-jsx").UNIComponent<import("../model/JSXBlock").UniBlockProps, any, any>;
28
- OfficeServicesBlock: import("@redneckz/uni-jsx").UNIComponent<import("./OfficeServicesBlock/OfficeServicesBlock").OfficeServicesBlockProps, any, any>;
29
- OtherProducts: import("../model/JSXBlock").JSXBlock<import("./OtherProducts/OtherProducts").OtherProductsProps>;
30
- OtherProductsItem: import("../model/JSXBlock").JSXBlock<import("./OtherProductsItem/OtherProductsItem").OtherProductsItemProps>;
31
- Recommendation: import("@redneckz/uni-jsx").UNIComponent<import("./Recommendation/Recommendation").RecommendationProps, any, any>;
32
- StepsBlock: import("@redneckz/uni-jsx").UNIComponent<import("./StepsBlock/StepsBlock").StepsBlockProps, any, any>;
33
- TariffsTable: import("@redneckz/uni-jsx").UNIComponent<import("./TariffsTable/TariffsTable").TariffsTableProps, any, any>;
34
- TextBlock: import("@redneckz/uni-jsx").UNIComponent<import("./TextBlock/TextBlock").TextBlockProps, any, any>;
35
- Tile: import("@redneckz/uni-jsx").UNIComponent<import("./Tile/Tile").TileProps, any, any>;
36
- Placeholder: import("@redneckz/uni-jsx").UNIComponent<import("./Placeholder/Placeholder").PlaceholderProps, any, any>;
37
- BonusBenefitsBlock: import("@redneckz/uni-jsx").UNIComponent<import("./BonusBenefitsBlock/BonusBenefitsBlock").BenefitsBlockProps, any, any>;
38
- SafeDepositRental: import("@redneckz/uni-jsx").UNIComponent<import("./SafeDepositRental/SafeDepositRental").SafeDepositRentalProps, any, any>;
39
- Tabs: import("@redneckz/uni-jsx").UNIComponent<import("./Tabs/Tabs").TabsBlockProps, any, any>;
40
- ErrorBlock: import("@redneckz/uni-jsx").UNIComponent<import("./ErrorBlock/ErrorBlock").ErrorBlockProps, any, any>;
41
- };
1
+ import type { BlocksRegistry } from '../model/BlocksRegistry';
2
+ export declare const Blocks: BlocksRegistry;
@@ -1,18 +1,2 @@
1
- export declare const Blocks: {
2
- Accordion: import("../model/JSXBlock").JSXBlock<import("./Accordion/Accordion").AccordionProps>;
3
- AccordionItem: import("../model/JSXBlock").JSXBlock<import("./AccordionItem/AccordionItemProps").AccordionItemProps>;
4
- ComparisonTable: import("@redneckz/uni-jsx").UNIComponent<import("./ComparisonTable/ComparisonTable").ComparisonTableProps, any, any>;
5
- Footer: import("@redneckz/uni-jsx").UNIComponent<import("./Footer/Footer").FooterProps, any, any>;
6
- Gallery: import("@redneckz/uni-jsx").UNIComponent<import("./Gallery/GalleryProps").GalleryProps, any, any>;
7
- Header: import("@redneckz/uni-jsx").UNIComponent<import("./Header/Header").HeaderProps, any, any>;
8
- Headline: import("@redneckz/uni-jsx").UNIComponent<import("./Headline/Headline").HeadlineProps, any, any>;
9
- LinkDocs: import("@redneckz/uni-jsx").UNIComponent<import("./LinkDocs/LinkDocs").LinkDocsProps, any, any>;
10
- LinkList: import("@redneckz/uni-jsx").UNIComponent<import("./LinkList/LinkList").LinkListProps, any, any>;
11
- MobileAppTile: import("@redneckz/uni-jsx").UNIComponent<import("./MobileAppTile/MobileAppTile").MobileAppTileProps, any, any>;
12
- ProductBlock: import("@redneckz/uni-jsx").UNIComponent<import("./ProductBlock/ProductBlock").ProductBlockProps, any, any>;
13
- ProductGallery: import("@redneckz/uni-jsx").UNIComponent<import("./ProductGallery/ProductGallery").ProductGalleryProps, any, any>;
14
- StepsBlock: import("@redneckz/uni-jsx").UNIComponent<import("./StepsBlock/StepsBlock").StepsBlockProps, any, any>;
15
- TariffsTable: import("@redneckz/uni-jsx").UNIComponent<import("./TariffsTable/TariffsTable").TariffsTableProps, any, any>;
16
- TextBlock: import("@redneckz/uni-jsx").UNIComponent<import("./TextBlock/TextBlock").TextBlockProps, any, any>;
17
- Placeholder: import("@redneckz/uni-jsx").UNIComponent<import("./Placeholder/Placeholder").PlaceholderProps, any, any>;
18
- };
1
+ import type { BlocksRegistry } from '../model/BlocksRegistry';
2
+ export declare const Blocks: BlocksRegistry;
@@ -1,11 +1,11 @@
1
1
  import type { BlockDecorator } from '../../model/BlockDecorator';
2
2
  import type { BlocksRegistry } from '../../model/BlocksRegistry';
3
3
  import type { ContentPageDef } from '../../model/ContentPageDef';
4
- import type { UniBlockProps } from '../../model/JSXBlock';
4
+ import type { JSXBlock, UniBlockProps } from '../../model/JSXBlock';
5
5
  interface ContentPageProps extends UniBlockProps {
6
6
  blocksRegistry: BlocksRegistry;
7
7
  data?: ContentPageDef;
8
8
  blockDecorator?: BlockDecorator;
9
9
  }
10
- export declare const ContentPage: import("@redneckz/uni-jsx").UNIComponent<ContentPageProps, any, any>;
10
+ export declare const ContentPage: JSXBlock<ContentPageProps>;
11
11
  export {};
@@ -0,0 +1,2 @@
1
+ import type { BlockDef, Slot } from '../../model/ContentPageDef';
2
+ export declare const mapSlot: (mapper: (blocks?: BlockDef[]) => BlockDef[]) => <S extends Slot>(slot: S) => S;
@@ -1,11 +1,3 @@
1
- import { BlockDef } from '../../model/ContentPageDef';
2
- export declare function normalizeBlock(block: BlockDef): {
3
- type?: string | undefined;
4
- content?: Record<string, any> | undefined;
5
- version?: import("../../model/BlockVersion").BlockVersion | undefined;
6
- hidden?: boolean | undefined;
7
- anchor?: string | undefined;
8
- labels?: string[] | undefined;
9
- style?: string[] | undefined;
10
- blocks?: BlockDef[] | undefined;
11
- };
1
+ import type { BlocksRegistry } from '../../model/BlocksRegistry';
2
+ import type { Slot } from '../../model/ContentPageDef';
3
+ export declare function normalizeBlock<S extends Slot>(block?: S, blocksRegistry?: BlocksRegistry): S;
@@ -1,2 +1,3 @@
1
- import { BlockDef } from '../../model/ContentPageDef';
2
- export declare function normalizeBlock(block: BlockDef): BlockDef;
1
+ import type { BlocksRegistry } from '../../model/BlocksRegistry';
2
+ import type { Slot } from '../../model/ContentPageDef';
3
+ export declare function normalizeBlock<S extends Slot>(block?: S, blocksRegistry?: BlocksRegistry): S;
@@ -2,12 +2,16 @@ import { BlockAncestors, BlockDecorator } from '../../model/BlockDecorator';
2
2
  import type { BlocksRegistry } from '../../model/BlocksRegistry';
3
3
  import type { BlockDef, ContentPageDef } from '../../model/ContentPageDef';
4
4
  import type { ContentPageContext } from './ContentPageContext';
5
- interface RenderBlockOptions {
5
+ export interface RenderBlockOptions {
6
6
  key: string;
7
7
  page: ContentPageDef;
8
8
  blockDecorator: BlockDecorator;
9
9
  blocksRegistry: BlocksRegistry;
10
10
  context: ContentPageContext;
11
11
  }
12
- export declare function renderBlock(block: BlockDef, options: RenderBlockOptions, ancestors?: BlockAncestors): any;
13
- export {};
12
+ export interface RenderBlockProps {
13
+ block?: BlockDef;
14
+ options: RenderBlockOptions;
15
+ ancestors?: BlockAncestors;
16
+ }
17
+ export declare function renderBlock({ block, options, ancestors }: RenderBlockProps): any;
@@ -0,0 +1,14 @@
1
+ import type { SlotName } from '../../model/BlockDecorator';
2
+ import { BlockAncestors } from '../../model/BlockDecorator';
3
+ import type { BlockDef, Slot } from '../../model/ContentPageDef';
4
+ import type { VNode } from '../../model/VNode';
5
+ import { RenderBlockOptions } from './renderBlock';
6
+ interface RenderBlockListProps {
7
+ blocks?: BlockDef[];
8
+ parent: Slot;
9
+ slotName?: SlotName;
10
+ options: RenderBlockOptions;
11
+ ancestors?: BlockAncestors;
12
+ }
13
+ export declare function renderBlocksList({ blocks, parent, slotName, options, ancestors, }: RenderBlockListProps): Record<string, VNode>;
14
+ export {};
@@ -0,0 +1,12 @@
1
+ import { BlockAncestors } from '../../model/BlockDecorator';
2
+ import type { BlockDef, Slot } from '../../model/ContentPageDef';
3
+ import type { VNode } from '../../model/VNode';
4
+ import type { RenderBlockOptions } from './renderBlock';
5
+ interface RenderSlotsProps {
6
+ slots?: Record<string, BlockDef[]>;
7
+ parent: Slot;
8
+ options: RenderBlockOptions;
9
+ ancestors?: BlockAncestors;
10
+ }
11
+ export declare function renderSlots({ slots, parent, options, ancestors, }: RenderSlotsProps): Record<string, VNode>;
12
+ export {};
@@ -1,8 +1,8 @@
1
- /// <reference types="react" />
2
1
  import type { BlockVersion } from '../../model/BlockVersion';
3
2
  import type { HandlerDecorator, Router } from '../ContentPage/ContentPageContext';
4
3
  import type { Step } from './StepsBlockContent';
5
4
  import type { StyleType } from './StepsBlockStyleMaps';
5
+ import type { VNode } from '../../model/VNode';
6
6
  export declare const renderStepContent: ({ styleMap, isMainButton, version, router, handlerDecorator, }: {
7
7
  styleMap: StyleType;
8
8
  isMainButton: boolean;
@@ -11,4 +11,4 @@ export declare const renderStepContent: ({ styleMap, isMainButton, version, rout
11
11
  handlerDecorator?: HandlerDecorator | undefined;
12
12
  }) => (step: Step, i: number, { length }: {
13
13
  length: number;
14
- }) => JSX.Element;
14
+ }) => VNode;
@@ -2,13 +2,19 @@
2
2
  import type { ButtonContent } from '../../ui-kit/Button/ButtonProps';
3
3
  import type { ImageContent } from '../../ui-kit/Img/ImgProps';
4
4
  import { TableInnerButtonProps } from '../../ui-kit/InnerTable/InnerTableButton';
5
+ import type { TariffsTableInnerContent } from '../../ui-kit/InnerTable/InnerTableProps';
5
6
  import type { ListProps } from '../../ui-kit/List/ListProps';
6
7
  import type { LabelDescriptionCell } from './TariffsTableContent';
7
8
  export declare type EmbeddableCellDataType = LabelDescriptionCell | ButtonContent | ImageContent | ListProps | TableInnerButtonProps;
9
+ interface TableCellDataProps extends TableInnerButtonProps {
10
+ isVisible?: boolean;
11
+ displayTable: (props: TariffsTableInnerContent) => void;
12
+ }
8
13
  export declare const EmbeddableCellData: {
9
14
  Buttons: ({ buttons }: ButtonContent) => JSX.Element | null;
10
15
  Img: ({ image }: ImageContent) => JSX.Element | null;
11
16
  List: ({ isDotted, ...rest }: ListProps) => JSX.Element;
12
17
  LabelDescription: ({ label, description }: LabelDescriptionCell) => JSX.Element;
13
- Table: import("@redneckz/uni-jsx").UNIComponent<TableInnerButtonProps, any, JSX.Element | null>;
18
+ Table: import("@redneckz/uni-jsx").UNIComponent<TableCellDataProps, any, any>;
14
19
  };
20
+ export {};
@@ -1,9 +1,15 @@
1
1
  import type { UniBlockProps } from '../../model/JSXBlock';
2
+ import type { TariffsTableInnerContent } from '../../ui-kit/InnerTable/InnerTableProps';
2
3
  import type { CellDef } from './TariffsTableContent';
3
- export interface TariffsTableCellProps extends UniBlockProps {
4
+ export interface TariffTableContentProps {
5
+ openTableInnerIdx?: number;
6
+ setOpenTableInnerIdx: (props?: number) => void;
7
+ setTableInner: (props?: TariffsTableInnerContent) => void;
8
+ tableInner?: TariffsTableInnerContent;
9
+ }
10
+ export interface TariffsTableCellProps extends TariffTableContentProps, UniBlockProps {
4
11
  rowIdx: number;
5
12
  cellIdx: number;
6
13
  cells: CellDef[];
7
- isLastRow: boolean;
8
14
  }
9
15
  export declare const TariffsTableCell: import("@redneckz/uni-jsx").UNIComponent<TariffsTableCellProps, any, any>;
@@ -1,10 +1,9 @@
1
1
  import type { EmptyOption } from '../../model/EmptyOptionType';
2
- import type { DescriptionProps, LabelProps } from '../../model/HeadlineType';
2
+ import type { DescriptionProps, LabelProps, TitleProps } from '../../model/HeadlineType';
3
3
  import type { UniBlockProps } from '../../model/JSXBlock';
4
4
  import type { ListOrientation } from '../../model/ListOrientation';
5
5
  import type { Picture } from '../../model/Picture';
6
6
  import type { ButtonContent } from '../../ui-kit/Button/ButtonProps';
7
- import type { HeadingProps } from '../../ui-kit/Heading/HeadingProps';
8
7
  import type { TariffsTableInnerContent } from '../../ui-kit/InnerTable/InnerTableProps';
9
8
  import type { ListProps } from '../../ui-kit/List/ListProps';
10
9
  /**
@@ -38,7 +37,7 @@ export declare type Data = {
38
37
  /**
39
38
  * @title Параметр
40
39
  */
41
- export declare type TariffsTableRowHeader = HeadingProps & {
40
+ export declare type TariffsTableRowHeader = TitleProps & {
42
41
  /** @default { "format": "webp", "size": { "width": 24, "height": 24 } } */
43
42
  icon?: Picture;
44
43
  };
@@ -97,7 +96,7 @@ export interface TariffsTableColumn {
97
96
  /**
98
97
  * @title Таблица тарифов
99
98
  */
100
- export declare type TariffsTableContent = HeadingProps & DescriptionProps & {
99
+ export declare type TariffsTableContent = TitleProps & DescriptionProps & {
101
100
  /** @title Колонки */
102
101
  tariffsColumns?: TariffsTableColumn[];
103
102
  /** @title Параметры */
@@ -0,0 +1,11 @@
1
+ /// <reference types="react" />
2
+ import type { ContentPageContext } from '../ContentPage/ContentPageContext';
3
+ import type { TariffTableContentProps } from './TariffsTableCell';
4
+ import type { CellDef } from './TariffsTableContent';
5
+ interface TariffTableCellInnerProps extends TariffTableContentProps {
6
+ cellIdx: number;
7
+ context: ContentPageContext;
8
+ rowIdx: number;
9
+ }
10
+ export declare const renderCellInner: ({ rowIdx, context, cellIdx, setTableInner, tableInner, openTableInnerIdx, setOpenTableInnerIdx, }: TariffTableCellInnerProps) => (cell: CellDef, i: number) => JSX.Element;
11
+ export {};
@@ -3,7 +3,6 @@ import type { Data } from './TariffsTableContent';
3
3
  export interface TariffsTableRowProps extends UniBlockProps {
4
4
  row: Data;
5
5
  activeCardIndex: number;
6
- isLastRow: boolean;
7
6
  rowIdx: number;
8
7
  }
9
8
  export declare const TariffsTableRow: import("@redneckz/uni-jsx").UNIComponent<TariffsTableRowProps, any, any>;
@@ -1,7 +1,9 @@
1
1
  import type { UniBlockProps } from '../../model/JSXBlock';
2
2
  import type { VNode } from '../../model/VNode';
3
+ import type { TariffsTableInnerContent } from '../../ui-kit/InnerTable/InnerTableProps';
3
4
  export interface TariffsTableRowContainerProps extends UniBlockProps {
4
5
  children?: VNode;
5
- rowIdx: number;
6
+ onHideContentClick: () => void;
7
+ tableInner?: TariffsTableInnerContent;
6
8
  }
7
9
  export declare const TariffsTableRowContainer: import("@redneckz/uni-jsx").UNIComponent<TariffsTableRowContainerProps, any, any>;
@@ -1,7 +1,8 @@
1
- import type { BlockDef, Slot, SlotsMap } from './ContentPageDef';
1
+ import type { BlockDef, Slot } from './ContentPageDef';
2
2
  export declare const DEFAULT_SLOT_NAME: null;
3
- export declare type BlockAncestors = [keyof SlotsMap | typeof DEFAULT_SLOT_NAME, ...Slot[]];
4
- export declare const DEFAULT_ANCESTORS: BlockAncestors;
3
+ export declare type SlotName = string | typeof DEFAULT_SLOT_NAME;
4
+ export declare type BlockAncestorItem = [Slot, SlotName];
5
+ export declare type BlockAncestors = BlockAncestorItem[];
5
6
  interface BlockDecoratorProps<VNode> {
6
7
  blockClassName: string;
7
8
  block: BlockDef;
@@ -1,2 +1,2 @@
1
1
  import type { JSXBlock } from './JSXBlock';
2
- export declare type BlocksRegistry<BlockProps = Record<string, any>> = Record<string, JSXBlock<BlockProps>>;
2
+ export declare type BlocksRegistry = Record<string, JSXBlock<any>>;
@@ -18,9 +18,7 @@ export interface BlockDef extends BaseBlockDef {
18
18
  export interface Slot {
19
19
  style?: string[];
20
20
  blocks?: BlockDef[];
21
- }
22
- export interface SlotsMap {
23
- header?: Slot;
21
+ slots?: Record<string, BlockDef[]>;
24
22
  }
25
23
  export interface ContentPageMeta {
26
24
  title?: string;
@@ -37,7 +35,6 @@ export interface ContentPageMeta {
37
35
  }
38
36
  export interface ContentPageDef extends ContentPageMeta, Slot {
39
37
  _customPageType?: string;
40
- slots?: SlotsMap;
41
38
  fallback?: Record<string, unknown>;
42
39
  likeControl?: boolean;
43
40
  colorPalette?: ColorPalette;
@@ -1,6 +1,6 @@
1
1
  import type { UNIComponent } from '@redneckz/uni-jsx';
2
2
  import type { ContentPageContext } from '../components/ContentPage/ContentPageContext';
3
- import type { BlockAncestors } from './BlockDecorator';
3
+ import type { BlockAncestors, SlotName } from './BlockDecorator';
4
4
  import type { ContentPageDef } from './ContentPageDef';
5
5
  import type { VNode } from './VNode';
6
6
  export interface UniBlockProps {
@@ -10,8 +10,10 @@ export interface UniBlockProps {
10
10
  ancestors?: BlockAncestors;
11
11
  labels?: string[];
12
12
  anchor?: string;
13
+ slots?: Record<string, VNode>;
13
14
  }
14
15
  export declare type JSXBlock<BlockProps = Record<string, any>> = UNIComponent<BlockProps & UniBlockProps, any, VNode | VNode[]> & {
15
16
  childrenTypes?: string[];
17
+ slots?: (props: BlockProps) => SlotName[];
16
18
  renderChild?: (child: VNode, i: number) => VNode;
17
19
  };
@@ -1,5 +1,6 @@
1
1
  import type { UniBlockProps } from '../../model/JSXBlock';
2
2
  import type { TariffsTableInnerContent } from './InnerTableProps';
3
3
  export interface InnerTableProps extends TariffsTableInnerContent, UniBlockProps {
4
+ onClick: () => void;
4
5
  }
5
6
  export declare const InnerTable: import("@redneckz/uni-jsx").UNIComponent<InnerTableProps, any, any>;
@@ -1,6 +1,7 @@
1
1
  import type { UniBlockProps } from '../../model/JSXBlock';
2
2
  import type { TariffsTableInnerEvent } from './InnerTableProps';
3
3
  export interface TableInnerButtonProps extends TariffsTableInnerEvent, UniBlockProps {
4
+ onClick?: () => void;
4
5
  isOpen?: boolean;
5
6
  }
6
7
  export declare const TableInnerButton: import("@redneckz/uni-jsx").UNIComponent<TableInnerButtonProps, any, any>;
@@ -1,41 +1,2 @@
1
- export declare const Blocks: {
2
- Accordion: import("../model/JSXBlock").JSXBlock<import("./Accordion/Accordion").AccordionProps>;
3
- AccordionItem: import("../model/JSXBlock").JSXBlock<import("./AccordionItem/AccordionItemProps").AccordionItemProps>;
4
- BenefitsBlock: import("@redneckz/uni-jsx").UNIComponent<import("./BenefitsBlock/BenefitsBlock").BenefitsBlockProps, any, any>;
5
- Bonus: import("@redneckz/uni-jsx").UNIComponent<import("./Bonus/Bonus").BonusProps, any, any>;
6
- CardTransfer: import("@redneckz/uni-jsx").UNIComponent<import("./CardTransfer/CardTransfer").CardTransferProps, any, any>;
7
- ComparisonTable: import("@redneckz/uni-jsx").UNIComponent<import("./ComparisonTable/ComparisonTable").ComparisonTableProps, any, any>;
8
- Calculator: import("@redneckz/uni-jsx").UNIComponent<import("./Calculator/Calculator").CalculatorProps, any, any>;
9
- Catalog: import("@redneckz/uni-jsx").UNIComponent<import("./Catalog/Catalog").CatalogProps, any, any>;
10
- ContactsBlock: import("@redneckz/uni-jsx").UNIComponent<import("./ContactsBlock/ContactsBlock").ContactsBlockProps, any, any>;
11
- ExchangeRateTile: import("@redneckz/uni-jsx").UNIComponent<import("./ExchangeRateTile/ExchangeRateTile").ExchangeRateTileProps, any, any>;
12
- Footer: import("@redneckz/uni-jsx").UNIComponent<import("./Footer/Footer").FooterProps, any, any>;
13
- Gallery: import("@redneckz/uni-jsx").UNIComponent<import("./Gallery/GalleryProps").GalleryProps, any, any>;
14
- GracePeriod: import("@redneckz/uni-jsx").UNIComponent<import("./GracePeriod/GracePeriod").GracePeriodProps, any, any>;
15
- Header: import("@redneckz/uni-jsx").UNIComponent<import("./Header/Header").HeaderProps, any, any>;
16
- Headline: import("@redneckz/uni-jsx").UNIComponent<import("./Headline/Headline").HeadlineProps, any, any>;
17
- InsuranceAmountBlock: import("@redneckz/uni-jsx").UNIComponent<import("./InsuranceAmountBlock/InsuranceAmountBlock").InsuranceAmountBlockProps, any, any>;
18
- InvestmentInfo: import("@redneckz/uni-jsx").UNIComponent<import("./InvestmentInfo/InvestmentInfo").InvestmentInfoProps, any, any>;
19
- LinkDocs: import("@redneckz/uni-jsx").UNIComponent<import("./LinkDocs/LinkDocs").LinkDocsProps, any, any>;
20
- MiniGallery: import("@redneckz/uni-jsx").UNIComponent<import("./MiniGallery/MiniGallery").MiniGalleryProps, any, any>;
21
- MobileAppTile: import("@redneckz/uni-jsx").UNIComponent<import("./MobileAppTile/MobileAppTile").MobileAppTileProps, any, any>;
22
- PictureText: import("@redneckz/uni-jsx").UNIComponent<import("./PictureText/PictureText").PictureTextProps, any, any>;
23
- ProductBlock: import("@redneckz/uni-jsx").UNIComponent<import("./ProductBlock/ProductBlock").ProductBlockProps, any, any>;
24
- ProductGallery: import("@redneckz/uni-jsx").UNIComponent<import("./ProductGallery/ProductGallery").ProductGalleryProps, any, any>;
25
- ProductTile: import("@redneckz/uni-jsx").UNIComponent<import("./ProductTile/ProductTile").ProductTileProps, any, any>;
26
- PromoTile: import("@redneckz/uni-jsx").UNIComponent<import("./PromoTile/PromoTile").PromoTileProps, any, any>;
27
- OfficeMap: import("@redneckz/uni-jsx").UNIComponent<import("../model/JSXBlock").UniBlockProps, any, any>;
28
- OfficeServicesBlock: import("@redneckz/uni-jsx").UNIComponent<import("./OfficeServicesBlock/OfficeServicesBlock").OfficeServicesBlockProps, any, any>;
29
- OtherProducts: import("../model/JSXBlock").JSXBlock<import("./OtherProducts/OtherProducts").OtherProductsProps>;
30
- OtherProductsItem: import("../model/JSXBlock").JSXBlock<import("./OtherProductsItem/OtherProductsItem").OtherProductsItemProps>;
31
- Recommendation: import("@redneckz/uni-jsx").UNIComponent<import("./Recommendation/Recommendation").RecommendationProps, any, any>;
32
- StepsBlock: import("@redneckz/uni-jsx").UNIComponent<import("./StepsBlock/StepsBlock").StepsBlockProps, any, any>;
33
- TariffsTable: import("@redneckz/uni-jsx").UNIComponent<import("./TariffsTable/TariffsTable").TariffsTableProps, any, any>;
34
- TextBlock: import("@redneckz/uni-jsx").UNIComponent<import("./TextBlock/TextBlock").TextBlockProps, any, any>;
35
- Tile: import("@redneckz/uni-jsx").UNIComponent<import("./Tile/Tile").TileProps, any, any>;
36
- Placeholder: import("@redneckz/uni-jsx").UNIComponent<import("./Placeholder/Placeholder").PlaceholderProps, any, any>;
37
- BonusBenefitsBlock: import("@redneckz/uni-jsx").UNIComponent<import("./BonusBenefitsBlock/BonusBenefitsBlock").BenefitsBlockProps, any, any>;
38
- SafeDepositRental: import("@redneckz/uni-jsx").UNIComponent<import("./SafeDepositRental/SafeDepositRental").SafeDepositRentalProps, any, any>;
39
- Tabs: import("@redneckz/uni-jsx").UNIComponent<import("./Tabs/Tabs").TabsBlockProps, any, any>;
40
- ErrorBlock: import("@redneckz/uni-jsx").UNIComponent<import("./ErrorBlock/ErrorBlock").ErrorBlockProps, any, any>;
41
- };
1
+ import type { BlocksRegistry } from '../model/BlocksRegistry';
2
+ export declare const Blocks: BlocksRegistry;
@@ -1 +1 @@
1
- {"version":3,"file":"Blocks.js","sourceRoot":"","sources":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;IACf,UAAU,EAAV,uBAAU;IACV,OAAO,EAAP,iBAAO;IACP,aAAa,EAAb,6BAAa;IACb,gBAAgB,EAAhB,mCAAgB;IAChB,MAAM,EAAN,eAAM;IACN,OAAO,EAAP,iBAAO;IACP,WAAW,EAAX,yBAAW;IACX,MAAM,EAAN,eAAM;IACN,QAAQ,EAAR,mBAAQ;IACR,oBAAoB,EAApB,2CAAoB;IACpB,cAAc,EAAd,+BAAc;IACd,QAAQ,EAAR,mBAAQ;IACR,WAAW,EAAX,yBAAW;IACX,aAAa,EAAb,6BAAa;IACb,WAAW,EAAX,yBAAW;IACX,YAAY,EAAZ,2BAAY;IACZ,cAAc,EAAd,+BAAc;IACd,WAAW,EAAX,yBAAW;IACX,SAAS,EAAT,qBAAS;IACT,SAAS,EAAT,qBAAS;IACT,mBAAmB,EAAnB,yCAAmB;IACnB,aAAa,EAAb,6BAAa;IACb,iBAAiB,EAAjB,qCAAiB;IACjB,cAAc,EAAd,+BAAc;IACd,UAAU,EAAV,uBAAU;IACV,YAAY,EAAZ,2BAAY;IACZ,SAAS,EAAT,qBAAS;IACT,IAAI,EAAJ,WAAI;IACJ,WAAW,EAAX,yBAAW;IACX,kBAAkB,EAAlB,uCAAkB;IAClB,iBAAiB,EAAjB,qCAAiB;IACjB,IAAI,EAAJ,WAAI;IACJ,UAAU,EAAV,uBAAU;CACX,CAAC"}
@@ -1,18 +1,2 @@
1
- export declare const Blocks: {
2
- Accordion: import("../model/JSXBlock").JSXBlock<import("./Accordion/Accordion").AccordionProps>;
3
- AccordionItem: import("../model/JSXBlock").JSXBlock<import("./AccordionItem/AccordionItemProps").AccordionItemProps>;
4
- ComparisonTable: import("@redneckz/uni-jsx").UNIComponent<import("./ComparisonTable/ComparisonTable").ComparisonTableProps, any, any>;
5
- Footer: import("@redneckz/uni-jsx").UNIComponent<import("./Footer/Footer").FooterProps, any, any>;
6
- Gallery: import("@redneckz/uni-jsx").UNIComponent<import("./Gallery/GalleryProps").GalleryProps, any, any>;
7
- Header: import("@redneckz/uni-jsx").UNIComponent<import("./Header/Header").HeaderProps, any, any>;
8
- Headline: import("@redneckz/uni-jsx").UNIComponent<import("./Headline/Headline").HeadlineProps, any, any>;
9
- LinkDocs: import("@redneckz/uni-jsx").UNIComponent<import("./LinkDocs/LinkDocs").LinkDocsProps, any, any>;
10
- LinkList: import("@redneckz/uni-jsx").UNIComponent<import("./LinkList/LinkList").LinkListProps, any, any>;
11
- MobileAppTile: import("@redneckz/uni-jsx").UNIComponent<import("./MobileAppTile/MobileAppTile").MobileAppTileProps, any, any>;
12
- ProductBlock: import("@redneckz/uni-jsx").UNIComponent<import("./ProductBlock/ProductBlock").ProductBlockProps, any, any>;
13
- ProductGallery: import("@redneckz/uni-jsx").UNIComponent<import("./ProductGallery/ProductGallery").ProductGalleryProps, any, any>;
14
- StepsBlock: import("@redneckz/uni-jsx").UNIComponent<import("./StepsBlock/StepsBlock").StepsBlockProps, any, any>;
15
- TariffsTable: import("@redneckz/uni-jsx").UNIComponent<import("./TariffsTable/TariffsTable").TariffsTableProps, any, any>;
16
- TextBlock: import("@redneckz/uni-jsx").UNIComponent<import("./TextBlock/TextBlock").TextBlockProps, any, any>;
17
- Placeholder: import("@redneckz/uni-jsx").UNIComponent<import("./Placeholder/Placeholder").PlaceholderProps, any, any>;
18
- };
1
+ import type { BlocksRegistry } from '../model/BlocksRegistry';
2
+ export declare const Blocks: BlocksRegistry;
@@ -1 +1 @@
1
- {"version":3,"file":"Blocks.mobile.js","sourceRoot":"","sources":["../../src/components/Blocks.mobile.ts"],"names":[],"mappings":";;AAAA,qDAAkD;AAClD,iEAA8D;AAC9D,uEAAoE;AACpE,4CAAyC;AACzC,+CAA4C;AAC5C,4CAAyC;AACzC,kDAA+C;AAC/C,kDAA+C;AAC/C,kDAA+C;AAC/C,iEAA8D;AAC9D,2DAAwD;AACxD,8DAA2D;AAC3D,oEAAiE;AACjE,wDAAqD;AACrD,8DAA2D;AAC3D,qDAAkD;AAErC,QAAA,MAAM,GAAG;IACpB,SAAS,EAAT,qBAAS;IACT,aAAa,EAAb,6BAAa;IACb,eAAe,EAAf,iCAAe;IACf,MAAM,EAAN,eAAM;IACN,OAAO,EAAP,iBAAO;IACP,MAAM,EAAN,eAAM;IACN,QAAQ,EAAR,mBAAQ;IACR,QAAQ,EAAR,mBAAQ;IACR,QAAQ,EAAR,mBAAQ;IACR,aAAa,EAAb,6BAAa;IACb,YAAY,EAAZ,2BAAY;IACZ,cAAc,EAAd,+BAAc;IACd,UAAU,EAAV,uBAAU;IACV,YAAY,EAAZ,2BAAY;IACZ,SAAS,EAAT,qBAAS;IACT,WAAW,EAAX,yBAAW;CACZ,CAAC"}
1
+ {"version":3,"file":"Blocks.mobile.js","sourceRoot":"","sources":["../../src/components/Blocks.mobile.ts"],"names":[],"mappings":";;AACA,qDAAkD;AAClD,iEAA8D;AAC9D,uEAAoE;AACpE,4CAAyC;AACzC,+CAA4C;AAC5C,4CAAyC;AACzC,kDAA+C;AAC/C,kDAA+C;AAC/C,kDAA+C;AAC/C,iEAA8D;AAC9D,2DAAwD;AACxD,8DAA2D;AAC3D,oEAAiE;AACjE,wDAAqD;AACrD,8DAA2D;AAC3D,qDAAkD;AAErC,QAAA,MAAM,GAAmB;IACpC,SAAS,EAAT,qBAAS;IACT,aAAa,EAAb,6BAAa;IACb,eAAe,EAAf,iCAAe;IACf,MAAM,EAAN,eAAM;IACN,OAAO,EAAP,iBAAO;IACP,MAAM,EAAN,eAAM;IACN,QAAQ,EAAR,mBAAQ;IACR,QAAQ,EAAR,mBAAQ;IACR,QAAQ,EAAR,mBAAQ;IACR,aAAa,EAAb,6BAAa;IACb,YAAY,EAAZ,2BAAY;IACZ,cAAc,EAAd,+BAAc;IACd,UAAU,EAAV,uBAAU;IACV,YAAY,EAAZ,2BAAY;IACZ,SAAS,EAAT,qBAAS;IACT,WAAW,EAAX,yBAAW;CACZ,CAAC"}
@@ -10,7 +10,7 @@ exports.Bonus = (0, uni_jsx_1.JSX)((props) => {
10
10
  const { context, className = '', title, description, bonusItems, ...rest } = props;
11
11
  return ((0, jsx_runtime_1.jsx)(BlockWrapper_1.BlockWrapper, { className: `font-sans bg-white p-[50px] pb-9 ${className}`, context: context, ...rest, children: (0, jsx_runtime_1.jsxs)("div", { className: "container", children: [(0, jsx_runtime_1.jsx)(Headline_1.Headline, { context: context, className: "!p-0", title: title, description: description, headlineVersion: "M", align: "center" }), (0, jsx_runtime_1.jsx)("div", { className: "flex flex-wrap w-full mt-9", children: bonusItems?.length
12
12
  ? bonusItems.map((_, i) => {
13
- return ((0, jsx_runtime_1.jsx)("div", { className: "flex-grow w-[49%] border border-gray pl-9 pt-9 pr-6 pb-6 mb-3 mx-2 even:mr-0 odd:ml-0 last:odd:mx-0", children: (0, jsx_runtime_1.jsxs)("div", { className: "flex justify-between w-full", children: [(0, jsx_runtime_1.jsxs)("div", { className: "flex flex-col justify-between mr-4", children: [(0, jsx_runtime_1.jsxs)("div", { children: [(0, jsx_runtime_1.jsx)("div", { className: "text-h4", children: _.title }), (0, jsx_runtime_1.jsx)("div", { className: "text-xl-light mt-2 max-w-[488px]", children: _.description })] }), _?.buttons?.length ? ((0, jsx_runtime_1.jsx)(ButtonSection_1.ButtonSection, { context: context, buttons: _?.buttons })) : null] }), _.bonusItemContent?.bonusType
13
+ return ((0, jsx_runtime_1.jsx)("div", { className: "flex-grow w-[49%] border border-gray p-9 mb-3 mx-2 even:mr-0 odd:ml-0 last:odd:mx-0", children: (0, jsx_runtime_1.jsxs)("div", { className: "flex justify-between w-full", children: [(0, jsx_runtime_1.jsxs)("div", { className: "flex flex-col justify-between mr-4", children: [(0, jsx_runtime_1.jsxs)("div", { children: [(0, jsx_runtime_1.jsx)("div", { className: "text-h4", children: _.title }), (0, jsx_runtime_1.jsx)("div", { className: "text-xl-light mt-2 max-w-[488px]", children: _.description })] }), _?.buttons?.length ? ((0, jsx_runtime_1.jsx)(ButtonSection_1.ButtonSection, { context: context, buttons: _?.buttons })) : null] }), _.bonusItemContent?.bonusType
14
14
  ? renderBonusItemContent(_.bonusItemContent)
15
15
  : null] }) }, String(i)));
16
16
  })
@@ -1 +1 @@
1
- {"version":3,"file":"Bonus.js","sourceRoot":"","sources":["../../../src/components/Bonus/Bonus.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AAExC,4DAAyD;AACzD,qEAAkE;AAClE,8CAA2C;AAC3C,mDAAgD;AAKnC,QAAA,KAAK,GAAG,IAAA,aAAG,EAAa,CAAC,KAAK,EAAE,EAAE;IAC7C,MAAM,EAAE,OAAO,EAAE,SAAS,GAAG,EAAE,EAAE,KAAK,EAAE,WAAW,EAAE,UAAU,EAAE,GAAG,IAAI,EAAE,GAAG,KAAK,CAAC;IAEnF,OAAO,CACL,uBAAC,2BAAY,IACX,SAAS,EAAE,oCAAoC,SAAS,EAAE,EAC1D,OAAO,EAAE,OAAO,KACZ,IAAI,YAER,iCAAK,SAAS,EAAC,WAAW,aACxB,uBAAC,mBAAQ,IACP,OAAO,EAAE,OAAO,EAChB,SAAS,EAAC,MAAM,EAChB,KAAK,EAAE,KAAK,EACZ,WAAW,EAAE,WAAW,EACxB,eAAe,EAAC,GAAG,EACnB,KAAK,EAAC,QAAQ,GACd,EACF,gCAAK,SAAS,EAAC,4BAA4B,YACxC,UAAU,EAAE,MAAM;wBACjB,CAAC,CAAC,UAAU,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE;4BACtB,OAAO,CACL,gCAEE,SAAS,EAAC,qGAAqG,YAE/G,iCAAK,SAAS,EAAC,6BAA6B,aAC1C,iCAAK,SAAS,EAAC,oCAAoC,aACjD,4CACE,gCAAK,SAAS,EAAC,SAAS,YAAE,CAAC,CAAC,KAAK,GAAO,EACxC,gCAAK,SAAS,EAAC,kCAAkC,YAAE,CAAC,CAAC,WAAW,GAAO,IACnE,EACL,CAAC,EAAE,OAAO,EAAE,MAAM,CAAC,CAAC,CAAC,CACpB,uBAAC,6BAAa,IAAC,OAAO,EAAE,OAAO,EA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AC,gBAAgB,CAAC;4CAC5C,CAAC,CAAC,IAAI,IACJ,IAhBD,MAAM,CAAC,CAAC,CAAC,CAiBV,CACP,CAAC;wBACJ,CAAC,CAAC;wBACJ,CAAC,CAAC,IAAI,GACJ,IACF,GACO,CAChB,CAAC;AACJ,CAAC,CAAC,CAAC;AAEH,MAAM,sBAAsB,GAAG,CAAC,gBAA+C,EAAE,EAAE,CAAC,CAClF,0CACG,gBAAgB,CAAC,SAAS,KAAK,OAAO;QACrC,CAAC,CAAC,gBAAgB,CAAC,gBAAiC,CAAC;QACrD,CAAC,CAAC,gBAAgB,CAAC,gBAAiC,CAAC,GACnD,CACP,CAAC;AAEF,MAAM,gBAAgB,GAAG,CAAC,CAAgB,EAAE,EAAE,CAAC,CAC7C,iCAAK,SAAS,EAAC,yDAAyD,aACrE,CAAC,CAAC,UAAU,CAAC,CAAC,CAAC,CACd,iCAAM,SAAS,EAAC,qGAAqG,YAClH,CAAC,CAAC,UAAU,GACR,CACR,CAAC,CAAC,CAAC,IAAI,EACP,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,CACb,iCAAM,SAAS,EAAC,0DAA0D,YACvE,CAAC,CAAC,SAAS,GACP,CACR,CAAC,CAAC,CAAC,IAAI,IACJ,CACP,CAAC;AAEF,MAAM,gBAAgB,GAAG,CAAC,CAAgB,EAAE,EAAE,CAC5C,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,CACR,uBAAC,SAAG,IAAC,SAAS,EAAE,iDAAiD,EAAE,KAAK,EAAE,CAAC,CAAC,KAAK,GAAI,CACtF,CAAC,CAAC,CAAC,IAAI,CAAC"}
@@ -1,11 +1,11 @@
1
1
  import type { BlockDecorator } from '../../model/BlockDecorator';
2
2
  import type { BlocksRegistry } from '../../model/BlocksRegistry';
3
3
  import type { ContentPageDef } from '../../model/ContentPageDef';
4
- import type { UniBlockProps } from '../../model/JSXBlock';
4
+ import type { JSXBlock, UniBlockProps } from '../../model/JSXBlock';
5
5
  interface ContentPageProps extends UniBlockProps {
6
6
  blocksRegistry: BlocksRegistry;
7
7
  data?: ContentPageDef;
8
8
  blockDecorator?: BlockDecorator;
9
9
  }
10
- export declare const ContentPage: import("@redneckz/uni-jsx").UNIComponent<ContentPageProps, any, any>;
10
+ export declare const ContentPage: JSXBlock<ContentPageProps>;
11
11
  export {};
@@ -4,23 +4,24 @@ const jsx_runtime_1 = require("@redneckz/uni-jsx/jsx-runtime");
4
4
  const uni_jsx_1 = require("@redneckz/uni-jsx");
5
5
  const style2className_1 = require("../../utils/style2className");
6
6
  const LikeControl_1 = require("../LikeControl/LikeControl");
7
- const renderBlock_1 = require("./renderBlock");
7
+ const renderBlockList_1 = require("./renderBlockList");
8
+ const renderSlots_1 = require("./renderSlots");
8
9
  const defaultBlockDecorator = ({ blockClassName, block, render }) => render({ blockClassName, block });
9
10
  exports.ContentPage = (0, uni_jsx_1.JSX)((props) => {
10
- const { className = '', context, data = {} } = props;
11
+ const { className = '', blocksRegistry, blockDecorator, context, data = {} } = props;
11
12
  const { style: pageStyle, blocks, slots, likeControl, colorPalette = 'pc' } = data;
12
- const blocksListRenderer = renderBlocksList(props);
13
- return ((0, jsx_runtime_1.jsxs)("section", { className: `relative ${(0, style2className_1.style2className)(pageStyle)} ${className}`, "data-theme": colorPalette, children: [slots?.header?.blocks?.length ? ((0, jsx_runtime_1.jsx)("div", { className: `${(0, style2className_1.style2className)(slots.header.style)}`, children: blocksListRenderer(slots.header.blocks, ['header']) })) : null, blocks?.length ? ((0, jsx_runtime_1.jsx)("div", { className: "container grid grid-cols-12 gap-1", children: blocksListRenderer(blocks) })) : null, likeControl ? renderLikeControl(context) : null] }));
14
- });
15
- function renderBlocksList({ blocksRegistry, data, blockDecorator, context }) {
16
- return (blocks, ancestors) => blocks.map((block, i) => (0, renderBlock_1.renderBlock)(block, {
17
- key: `${block.type || '#'}-${i}`,
13
+ const options = {
14
+ key: '',
18
15
  blocksRegistry,
19
- page: data || {},
16
+ page: data,
20
17
  blockDecorator: blockDecorator || defaultBlockDecorator,
21
18
  context,
22
- }, ancestors));
23
- }
19
+ };
20
+ const pageSlots = (0, renderSlots_1.renderSlots)({ slots, parent: data, options });
21
+ return ((0, jsx_runtime_1.jsxs)("section", { className: `relative ${(0, style2className_1.style2className)(pageStyle)} ${className}`, "data-theme": colorPalette, children: [pageSlots?.header ? ((0, jsx_runtime_1.jsx)("div", { className: "mb-5 shadow-[0_8px_32px_0px_#00000014]", children: pageSlots.header })) : null, blocks?.length ? ((0, jsx_runtime_1.jsx)("div", { className: "container grid grid-cols-12 gap-1", children: (0, renderBlockList_1.renderBlocksList)({ blocks, parent: data, options }) })) : null, likeControl ? renderLikeControl(context) : null] }));
22
+ });
23
+ exports.ContentPage.childrenTypes = [];
24
+ exports.ContentPage.slots = () => ['header'];
24
25
  function renderLikeControl(context) {
25
26
  return ((0, jsx_runtime_1.jsx)("div", { className: "flex items-end absolute bottom-0 right-0 h-full pointer-events-none", children: (0, jsx_runtime_1.jsx)(LikeControl_1.LikeControl, { className: "rounded-tl-lg sticky bottom-0 pointer-events-auto", context: context }, "LikeControl") }));
26
27
  }
@@ -1 +1 @@
1
- {"version":3,"file":"ContentPage.js","sourceRoot":"","sources":["../../../src/components/ContentPage/ContentPage.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AAKxC,iEAA8D;AAC9D,4DAAyD;AAEzD,+CAA4C;AAQ5C,MAAM,qBAAqB,GAAmB,CAAC,EAAE,cAAc,EAAE,KAAK,EAAE,MAAM,EAAE,EAAE,EAAE,CAClF,MAAM,CAAC,EAAE,cAAc,EAAE,KAAK,EAAE,CAAC,CAAC;AAEvB,QAAA,WAAW,GAAG,IAAA,aAAG,EAAmB,CAAC,KAAK,EAAE,EAAE;IACzD,MAAM,EAAE,SAAS,GAAG,EAAE,EAAE,OAAO,EAAE,IAAI,GAAG,EAAE,EAAE,GAAG,KAAK,CAAC;IAErD,MAAM,EAAE,KAAK,EAAE,SAAS,EAAE,MAAM,EAAE,KAAK,EAAE,WAAW,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E,SAAS,CAAC,MAAM,GAAO,CACjF,CAAC,CAAC,CAAC,IAAI,EAEP,MAAM,EAAE,MAAM,CAAC,CAAC,CAAC,CAChB,gCAAK,SAAS,EAAC,mCAAmC,YAC/C,IAAA,kCAAgB,EAAC,EAAE,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC,GAChD,CACP,CAAC,CAAC,CAAC,IAAI,EAEP,WAAW,CAAC,CAAC,CAAC,iBAAiB,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,IAAI,IACxC,CACX,CAAC;AACJ,CAAC,CAAC,CAAC;AAEH,mBAAW,CAAC,aAAa,GAAG,EAAE,CAAC;AAC/B,mBAAW,CAAC,KAAK,GAAG,GAAG,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC;AAErC,SAAS,iBAAiB,CAAC,OAA2B;IACpD,OAAO,CACL,gCAAK,SAAS,EAAC,qEAAqE,YAClF,uBAAC,yBAAW,IAEV,SAAS,EAAC,mDAAmD,EAC7D,OAAO,EAAE,OAAO,IAFZ,aAAa,CAGjB,GACE,CACP,CAAC;AACJ,CAAC"}
@@ -0,0 +1,2 @@
1
+ import type { BlockDef, Slot } from '../../model/ContentPageDef';
2
+ export declare const mapSlot: (mapper: (blocks?: BlockDef[]) => BlockDef[]) => <S extends Slot>(slot: S) => S;
@@ -0,0 +1,14 @@
1
+ Object.defineProperty(exports, "__esModule", { value: true });
2
+ exports.mapSlot = void 0;
3
+ const mapSlot = (mapper) => (slot) => ({
4
+ ...slot,
5
+ blocks: mapper(slot.blocks),
6
+ slots: slot.slots
7
+ ? Object.entries(slot.slots).reduce((res, [slotKey, slotBlocks]) => ({
8
+ ...res,
9
+ [slotKey]: mapper(slotBlocks),
10
+ }), {})
11
+ : {},
12
+ });
13
+ exports.mapSlot = mapSlot;
14
+ //# sourceMappingURL=mapSlot.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"mapSlot.js","sourceRoot":"","sources":["../../../src/components/ContentPage/mapSlot.ts"],"names":[],"mappings":";;AAEO,MAAM,OAAO,GAClB,CAAC,MAA2C,EAAE,EAAE,CAChD,CAAiB,IAAO,EAAK,EAAE,CAAC,CAAC;IAC/B,GAAG,IAAI;IACP,MAAM,EAAE,MAAM,CAAC,IAAI,CAAC,MAAM,CAAC;IAC3B,KAAK,EAAE,IAAI,CAAC,KAAK;QACf,CAAC,CAAC,MAAM,CAAC,OAAO,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,MAAM,CAC/B,CAAC,GAAG,EAAE,CAAC,OAAO,EAAE,UAAU,CAAC,EAAE,EAAE,CAAC,CAAC;YAC/B,GAAG,GAAG;YACN,CAAC,OAAO,CAAC,EAAE,MAAM,CAAC,UAAU,CAAC;SAC9B,CAAC,EACF,EAAE,CACH;QACH,CAAC,CAAC,EAAE;CACP,CAAC,CAAC;AAdQ,QAAA,OAAO,WAcf"}
@@ -1,11 +1,3 @@
1
- import { BlockDef } from '../../model/ContentPageDef';
2
- export declare function normalizeBlock(block: BlockDef): {
3
- type?: string | undefined;
4
- content?: Record<string, any> | undefined;
5
- version?: import("../../model/BlockVersion").BlockVersion | undefined;
6
- hidden?: boolean | undefined;
7
- anchor?: string | undefined;
8
- labels?: string[] | undefined;
9
- style?: string[] | undefined;
10
- blocks?: BlockDef[] | undefined;
11
- };
1
+ import type { BlocksRegistry } from '../../model/BlocksRegistry';
2
+ import type { Slot } from '../../model/ContentPageDef';
3
+ export declare function normalizeBlock<S extends Slot>(block?: S, blocksRegistry?: BlocksRegistry): S;