@redneckz/wildless-cms-uni-blocks 0.6.41 → 0.6.43

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 (381) hide show
  1. package/bin/migration-scripts/0.6.34.js +2 -0
  2. package/bin/migration-scripts/0.6.43.js +29 -0
  3. package/bundle/blocks.schema.json +1 -1
  4. package/bundle/bundle.umd.js +213 -101
  5. package/bundle/bundle.umd.min.js +1 -1
  6. package/bundle/components/CarouselRecommendationCard/CarouselRecommendationCard.d.ts +5 -0
  7. package/bundle/components/CarouselRecommendationCard/CarouselRecommendationCardContent.d.ts +44 -0
  8. package/bundle/components/Header/HeaderSecondaryMenu.d.ts +2 -0
  9. package/bundle/components/ProductTile/ProductTileContent.d.ts +24 -2
  10. package/bundle/components/ProductTile/renderAdditionalDescription.d.ts +4 -0
  11. package/bundle/components/ProductTile/renderBenefit.d.ts +4 -0
  12. package/bundle/components/ProductTile/renderImage.d.ts +3 -0
  13. package/bundle/content-page-repository/transformImg.d.ts +1 -1
  14. package/bundle/hooks/useCachedAsyncData.d.ts +2 -0
  15. package/bundle/hooks/useLocation.d.ts +6 -0
  16. package/bundle/hooks/useRegions.d.ts +6 -0
  17. package/bundle/services/sitemap/SitemapProps.d.ts +8 -0
  18. package/bundle/ui-kit/Location/Location.d.ts +19 -0
  19. package/bundle/ui-kit/Location/SearchBar.d.ts +6 -0
  20. package/bundle/ui-kit/MarkdownText/MarkdownText.d.ts +2 -0
  21. package/bundle/ui-kit/MarkdownText/MarkdownTextProps.d.ts +6 -0
  22. package/bundle/utils/groupBy.d.ts +1 -0
  23. package/dist/components/Blocks.js +4 -2
  24. package/dist/components/Blocks.js.map +1 -1
  25. package/dist/components/CarouselRecommendationCard/CarouselRecommendationCard.d.ts +5 -0
  26. package/dist/components/CarouselRecommendationCard/CarouselRecommendationCard.js +22 -0
  27. package/dist/components/CarouselRecommendationCard/CarouselRecommendationCard.js.map +1 -0
  28. package/dist/components/CarouselRecommendationCard/CarouselRecommendationCardContent.d.ts +44 -0
  29. package/dist/components/CarouselRecommendationCard/CarouselRecommendationCardContent.js +2 -0
  30. package/dist/components/CarouselRecommendationCard/CarouselRecommendationCardContent.js.map +1 -0
  31. package/dist/components/Header/Header.js +2 -2
  32. package/dist/components/Header/Header.js.map +1 -1
  33. package/dist/components/Header/HeaderBurger.js +4 -3
  34. package/dist/components/Header/HeaderBurger.js.map +1 -1
  35. package/dist/components/Header/HeaderSecondaryMenu.d.ts +2 -0
  36. package/dist/components/Header/HeaderSecondaryMenu.js +13 -4
  37. package/dist/components/Header/HeaderSecondaryMenu.js.map +1 -1
  38. package/dist/components/ProductTile/ProductTile.js +9 -22
  39. package/dist/components/ProductTile/ProductTile.js.map +1 -1
  40. package/dist/components/ProductTile/ProductTileContent.d.ts +24 -2
  41. package/dist/components/ProductTile/renderAdditionalDescription.d.ts +4 -0
  42. package/dist/components/ProductTile/renderAdditionalDescription.js +18 -0
  43. package/dist/components/ProductTile/renderAdditionalDescription.js.map +1 -0
  44. package/dist/components/ProductTile/renderBenefit.d.ts +4 -0
  45. package/dist/components/ProductTile/renderBenefit.js +32 -0
  46. package/dist/components/ProductTile/renderBenefit.js.map +1 -0
  47. package/dist/components/ProductTile/renderImage.d.ts +3 -0
  48. package/dist/components/ProductTile/renderImage.js +12 -0
  49. package/dist/components/ProductTile/renderImage.js.map +1 -0
  50. package/dist/components/Recommendation/RecommendationCard.js +1 -1
  51. package/dist/components/Recommendation/RecommendationCard.js.map +1 -1
  52. package/dist/components/TextBlock/TextBlock.js +13 -28
  53. package/dist/components/TextBlock/TextBlock.js.map +1 -1
  54. package/dist/content-page-repository/transformImg.d.ts +1 -1
  55. package/dist/content-page-repository/transformImg.js +4 -10
  56. package/dist/content-page-repository/transformImg.js.map +1 -1
  57. package/dist/content-page-repository/transformMarkdown.js +3 -3
  58. package/dist/content-page-repository/transformMarkdown.js.map +1 -1
  59. package/dist/hooks/useCachedAsyncData.d.ts +2 -0
  60. package/dist/hooks/useCachedAsyncData.js +25 -0
  61. package/dist/hooks/useCachedAsyncData.js.map +1 -0
  62. package/dist/hooks/useLocation.d.ts +6 -0
  63. package/dist/hooks/useLocation.js +26 -0
  64. package/dist/hooks/useLocation.js.map +1 -0
  65. package/dist/hooks/useRegions.d.ts +6 -0
  66. package/dist/hooks/useRegions.js +11 -0
  67. package/dist/hooks/useRegions.js.map +1 -0
  68. package/dist/services/sitemap/SitemapProps.d.ts +8 -0
  69. package/dist/ui-kit/Location/Location.d.ts +19 -0
  70. package/dist/ui-kit/Location/Location.js +44 -0
  71. package/dist/ui-kit/Location/Location.js.map +1 -0
  72. package/dist/ui-kit/Location/SearchBar.d.ts +6 -0
  73. package/dist/ui-kit/Location/SearchBar.js +9 -0
  74. package/dist/ui-kit/Location/SearchBar.js.map +1 -0
  75. package/dist/ui-kit/MarkdownText/MarkdownText.d.ts +2 -0
  76. package/dist/ui-kit/MarkdownText/MarkdownText.js +9 -0
  77. package/dist/ui-kit/MarkdownText/MarkdownText.js.map +1 -0
  78. package/dist/ui-kit/MarkdownText/MarkdownTextProps.d.ts +6 -0
  79. package/dist/ui-kit/MarkdownText/MarkdownTextProps.js +2 -0
  80. package/dist/ui-kit/MarkdownText/MarkdownTextProps.js.map +1 -0
  81. package/dist/ui-kit/SwipeListControl/SwipeListContainer.js +8 -4
  82. package/dist/ui-kit/SwipeListControl/SwipeListContainer.js.map +1 -1
  83. package/dist/ui-kit/Text/Text.js +1 -5
  84. package/dist/ui-kit/Text/Text.js.map +1 -1
  85. package/dist/utils/groupBy.d.ts +1 -0
  86. package/dist/utils/groupBy.js +13 -0
  87. package/dist/utils/groupBy.js.map +1 -0
  88. package/lib/common.css +1 -1
  89. package/lib/components/Blocks.js +4 -2
  90. package/lib/components/Blocks.js.map +1 -1
  91. package/lib/components/Carousel/Carousel.fixture.d.ts +1 -0
  92. package/lib/components/CarouselRecommendationCard/CarouselRecommendationCard.d.ts +5 -0
  93. package/lib/components/CarouselRecommendationCard/CarouselRecommendationCard.fixture.d.ts +9 -0
  94. package/lib/components/CarouselRecommendationCard/CarouselRecommendationCard.js +20 -0
  95. package/lib/components/CarouselRecommendationCard/CarouselRecommendationCard.js.map +1 -0
  96. package/lib/components/CarouselRecommendationCard/CarouselRecommendationCardContent.d.ts +44 -0
  97. package/lib/components/CarouselRecommendationCard/CarouselRecommendationCardContent.js +2 -0
  98. package/lib/components/CarouselRecommendationCard/CarouselRecommendationCardContent.js.map +1 -0
  99. package/lib/components/Header/Header.js +2 -2
  100. package/lib/components/Header/Header.js.map +1 -1
  101. package/lib/components/Header/HeaderBurger.js +4 -3
  102. package/lib/components/Header/HeaderBurger.js.map +1 -1
  103. package/lib/components/Header/HeaderSecondaryMenu.d.ts +2 -0
  104. package/lib/components/Header/HeaderSecondaryMenu.js +13 -4
  105. package/lib/components/Header/HeaderSecondaryMenu.js.map +1 -1
  106. package/lib/components/ProductTile/ProductTile.js +10 -23
  107. package/lib/components/ProductTile/ProductTile.js.map +1 -1
  108. package/lib/components/ProductTile/ProductTileContent.d.ts +24 -2
  109. package/lib/components/ProductTile/renderAdditionalDescription.d.ts +4 -0
  110. package/lib/components/ProductTile/renderAdditionalDescription.js +15 -0
  111. package/lib/components/ProductTile/renderAdditionalDescription.js.map +1 -0
  112. package/lib/components/ProductTile/renderBenefit.d.ts +4 -0
  113. package/lib/components/ProductTile/renderBenefit.js +29 -0
  114. package/lib/components/ProductTile/renderBenefit.js.map +1 -0
  115. package/lib/components/ProductTile/renderImage.d.ts +3 -0
  116. package/lib/components/ProductTile/renderImage.js +9 -0
  117. package/lib/components/ProductTile/renderImage.js.map +1 -0
  118. package/lib/components/Recommendation/Recommendation.fixture.d.ts +1 -1
  119. package/lib/components/Recommendation/RecommendationCard.js +1 -1
  120. package/lib/components/Recommendation/RecommendationCard.js.map +1 -1
  121. package/lib/components/TextBlock/TextBlock.js +13 -28
  122. package/lib/components/TextBlock/TextBlock.js.map +1 -1
  123. package/lib/content-page-repository/transformImg.d.ts +1 -1
  124. package/lib/content-page-repository/transformImg.js +4 -10
  125. package/lib/content-page-repository/transformImg.js.map +1 -1
  126. package/lib/content-page-repository/transformMarkdown.js +3 -3
  127. package/lib/content-page-repository/transformMarkdown.js.map +1 -1
  128. package/lib/hooks/useCachedAsyncData.d.ts +2 -0
  129. package/lib/hooks/useCachedAsyncData.js +22 -0
  130. package/lib/hooks/useCachedAsyncData.js.map +1 -0
  131. package/lib/hooks/useLocation.d.ts +6 -0
  132. package/lib/hooks/useLocation.js +23 -0
  133. package/lib/hooks/useLocation.js.map +1 -0
  134. package/lib/hooks/useRegions.d.ts +6 -0
  135. package/lib/hooks/useRegions.js +8 -0
  136. package/lib/hooks/useRegions.js.map +1 -0
  137. package/lib/services/sitemap/SitemapProps.d.ts +8 -0
  138. package/lib/ui-kit/Location/Location.d.ts +19 -0
  139. package/lib/ui-kit/Location/Location.fixture.d.ts +6 -0
  140. package/lib/ui-kit/Location/Location.js +42 -0
  141. package/lib/ui-kit/Location/Location.js.map +1 -0
  142. package/lib/ui-kit/Location/SearchBar.d.ts +6 -0
  143. package/lib/ui-kit/Location/SearchBar.js +7 -0
  144. package/lib/ui-kit/Location/SearchBar.js.map +1 -0
  145. package/lib/ui-kit/MarkdownText/MarkdownText.d.ts +2 -0
  146. package/lib/ui-kit/MarkdownText/MarkdownText.js +7 -0
  147. package/lib/ui-kit/MarkdownText/MarkdownText.js.map +1 -0
  148. package/lib/ui-kit/MarkdownText/MarkdownTextProps.d.ts +6 -0
  149. package/lib/ui-kit/MarkdownText/MarkdownTextProps.js +2 -0
  150. package/lib/ui-kit/MarkdownText/MarkdownTextProps.js.map +1 -0
  151. package/lib/ui-kit/SwipeListControl/SwipeListContainer.js +8 -4
  152. package/lib/ui-kit/SwipeListControl/SwipeListContainer.js.map +1 -1
  153. package/lib/ui-kit/Text/Text.js +1 -5
  154. package/lib/ui-kit/Text/Text.js.map +1 -1
  155. package/lib/utils/groupBy.d.ts +1 -0
  156. package/lib/utils/groupBy.js +10 -0
  157. package/lib/utils/groupBy.js.map +1 -0
  158. package/mobile/bundle/bundle.umd.js +49 -25
  159. package/mobile/bundle/bundle.umd.min.js +1 -1
  160. package/mobile/bundle/components/CarouselRecommendationCard/CarouselRecommendationCard.d.ts +5 -0
  161. package/mobile/bundle/components/CarouselRecommendationCard/CarouselRecommendationCardContent.d.ts +44 -0
  162. package/mobile/bundle/components/Header/HeaderSecondaryMenu.d.ts +2 -0
  163. package/mobile/bundle/components/ProductTile/ProductTileContent.d.ts +24 -2
  164. package/mobile/bundle/components/ProductTile/renderAdditionalDescription.d.ts +4 -0
  165. package/mobile/bundle/components/ProductTile/renderBenefit.d.ts +4 -0
  166. package/mobile/bundle/components/ProductTile/renderImage.d.ts +3 -0
  167. package/mobile/bundle/content-page-repository/transformImg.d.ts +1 -1
  168. package/mobile/bundle/hooks/useCachedAsyncData.d.ts +2 -0
  169. package/mobile/bundle/hooks/useLocation.d.ts +6 -0
  170. package/mobile/bundle/hooks/useRegions.d.ts +6 -0
  171. package/mobile/bundle/services/sitemap/SitemapProps.d.ts +8 -0
  172. package/mobile/bundle/ui-kit/Location/Location.d.ts +19 -0
  173. package/mobile/bundle/ui-kit/Location/SearchBar.d.ts +6 -0
  174. package/mobile/bundle/ui-kit/MarkdownText/MarkdownText.d.ts +2 -0
  175. package/mobile/bundle/ui-kit/MarkdownText/MarkdownTextProps.d.ts +6 -0
  176. package/mobile/bundle/utils/groupBy.d.ts +1 -0
  177. package/mobile/dist/components/CarouselRecommendationCard/CarouselRecommendationCard.d.ts +5 -0
  178. package/mobile/dist/components/CarouselRecommendationCard/CarouselRecommendationCard.js +22 -0
  179. package/mobile/dist/components/CarouselRecommendationCard/CarouselRecommendationCard.js.map +1 -0
  180. package/mobile/dist/components/CarouselRecommendationCard/CarouselRecommendationCardContent.d.ts +44 -0
  181. package/mobile/dist/components/CarouselRecommendationCard/CarouselRecommendationCardContent.js +2 -0
  182. package/mobile/dist/components/CarouselRecommendationCard/CarouselRecommendationCardContent.js.map +1 -0
  183. package/mobile/dist/components/Header/HeaderBurger.js +4 -3
  184. package/mobile/dist/components/Header/HeaderBurger.js.map +1 -1
  185. package/mobile/dist/components/Header/HeaderSecondaryMenu.d.ts +2 -0
  186. package/mobile/dist/components/Header/HeaderSecondaryMenu.js +13 -4
  187. package/mobile/dist/components/Header/HeaderSecondaryMenu.js.map +1 -1
  188. package/mobile/dist/components/ProductTile/ProductTile.js +9 -22
  189. package/mobile/dist/components/ProductTile/ProductTile.js.map +1 -1
  190. package/mobile/dist/components/ProductTile/ProductTileContent.d.ts +24 -2
  191. package/mobile/dist/components/ProductTile/renderAdditionalDescription.d.ts +4 -0
  192. package/mobile/dist/components/ProductTile/renderAdditionalDescription.js +18 -0
  193. package/mobile/dist/components/ProductTile/renderAdditionalDescription.js.map +1 -0
  194. package/mobile/dist/components/ProductTile/renderBenefit.d.ts +4 -0
  195. package/mobile/dist/components/ProductTile/renderBenefit.js +32 -0
  196. package/mobile/dist/components/ProductTile/renderBenefit.js.map +1 -0
  197. package/mobile/dist/components/ProductTile/renderImage.d.ts +3 -0
  198. package/mobile/dist/components/ProductTile/renderImage.js +12 -0
  199. package/mobile/dist/components/ProductTile/renderImage.js.map +1 -0
  200. package/mobile/dist/components/Recommendation/RecommendationCard.js +1 -1
  201. package/mobile/dist/components/Recommendation/RecommendationCard.js.map +1 -1
  202. package/mobile/dist/content-page-repository/transformImg.d.ts +1 -1
  203. package/mobile/dist/content-page-repository/transformImg.js +4 -10
  204. package/mobile/dist/content-page-repository/transformImg.js.map +1 -1
  205. package/mobile/dist/content-page-repository/transformMarkdown.js +3 -3
  206. package/mobile/dist/content-page-repository/transformMarkdown.js.map +1 -1
  207. package/mobile/dist/hooks/useCachedAsyncData.d.ts +2 -0
  208. package/mobile/dist/hooks/useCachedAsyncData.js +25 -0
  209. package/mobile/dist/hooks/useCachedAsyncData.js.map +1 -0
  210. package/mobile/dist/hooks/useLocation.d.ts +6 -0
  211. package/mobile/dist/hooks/useLocation.js +26 -0
  212. package/mobile/dist/hooks/useLocation.js.map +1 -0
  213. package/mobile/dist/hooks/useRegions.d.ts +6 -0
  214. package/mobile/dist/hooks/useRegions.js +11 -0
  215. package/mobile/dist/hooks/useRegions.js.map +1 -0
  216. package/mobile/dist/services/sitemap/SitemapProps.d.ts +8 -0
  217. package/mobile/dist/ui-kit/Location/Location.d.ts +19 -0
  218. package/mobile/dist/ui-kit/Location/Location.js +44 -0
  219. package/mobile/dist/ui-kit/Location/Location.js.map +1 -0
  220. package/mobile/dist/ui-kit/Location/SearchBar.d.ts +6 -0
  221. package/mobile/dist/ui-kit/Location/SearchBar.js +9 -0
  222. package/mobile/dist/ui-kit/Location/SearchBar.js.map +1 -0
  223. package/mobile/dist/ui-kit/MarkdownText/MarkdownText.d.ts +2 -0
  224. package/mobile/dist/ui-kit/MarkdownText/MarkdownText.js +9 -0
  225. package/mobile/dist/ui-kit/MarkdownText/MarkdownText.js.map +1 -0
  226. package/mobile/dist/ui-kit/MarkdownText/MarkdownTextProps.d.ts +6 -0
  227. package/mobile/dist/ui-kit/MarkdownText/MarkdownTextProps.js +2 -0
  228. package/mobile/dist/ui-kit/MarkdownText/MarkdownTextProps.js.map +1 -0
  229. package/mobile/dist/ui-kit/SwipeListControl/SwipeListContainer.js +8 -4
  230. package/mobile/dist/ui-kit/SwipeListControl/SwipeListContainer.js.map +1 -1
  231. package/mobile/dist/ui-kit/Text/Text.js +1 -5
  232. package/mobile/dist/ui-kit/Text/Text.js.map +1 -1
  233. package/mobile/dist/utils/groupBy.d.ts +1 -0
  234. package/mobile/dist/utils/groupBy.js +13 -0
  235. package/mobile/dist/utils/groupBy.js.map +1 -0
  236. package/mobile/lib/components/CarouselRecommendationCard/CarouselRecommendationCard.d.ts +5 -0
  237. package/mobile/lib/components/CarouselRecommendationCard/CarouselRecommendationCard.js +20 -0
  238. package/mobile/lib/components/CarouselRecommendationCard/CarouselRecommendationCard.js.map +1 -0
  239. package/mobile/lib/components/CarouselRecommendationCard/CarouselRecommendationCardContent.d.ts +44 -0
  240. package/mobile/lib/components/CarouselRecommendationCard/CarouselRecommendationCardContent.js +2 -0
  241. package/mobile/lib/components/CarouselRecommendationCard/CarouselRecommendationCardContent.js.map +1 -0
  242. package/mobile/lib/components/Header/HeaderBurger.js +4 -3
  243. package/mobile/lib/components/Header/HeaderBurger.js.map +1 -1
  244. package/mobile/lib/components/Header/HeaderSecondaryMenu.d.ts +2 -0
  245. package/mobile/lib/components/Header/HeaderSecondaryMenu.js +13 -4
  246. package/mobile/lib/components/Header/HeaderSecondaryMenu.js.map +1 -1
  247. package/mobile/lib/components/ProductTile/ProductTile.js +10 -23
  248. package/mobile/lib/components/ProductTile/ProductTile.js.map +1 -1
  249. package/mobile/lib/components/ProductTile/ProductTileContent.d.ts +24 -2
  250. package/mobile/lib/components/ProductTile/renderAdditionalDescription.d.ts +4 -0
  251. package/mobile/lib/components/ProductTile/renderAdditionalDescription.js +15 -0
  252. package/mobile/lib/components/ProductTile/renderAdditionalDescription.js.map +1 -0
  253. package/mobile/lib/components/ProductTile/renderBenefit.d.ts +4 -0
  254. package/mobile/lib/components/ProductTile/renderBenefit.js +29 -0
  255. package/mobile/lib/components/ProductTile/renderBenefit.js.map +1 -0
  256. package/mobile/lib/components/ProductTile/renderImage.d.ts +3 -0
  257. package/mobile/lib/components/ProductTile/renderImage.js +9 -0
  258. package/mobile/lib/components/ProductTile/renderImage.js.map +1 -0
  259. package/mobile/lib/components/Recommendation/RecommendationCard.js +1 -1
  260. package/mobile/lib/components/Recommendation/RecommendationCard.js.map +1 -1
  261. package/mobile/lib/content-page-repository/transformImg.d.ts +1 -1
  262. package/mobile/lib/content-page-repository/transformImg.js +4 -10
  263. package/mobile/lib/content-page-repository/transformImg.js.map +1 -1
  264. package/mobile/lib/content-page-repository/transformMarkdown.js +3 -3
  265. package/mobile/lib/content-page-repository/transformMarkdown.js.map +1 -1
  266. package/mobile/lib/hooks/useCachedAsyncData.d.ts +2 -0
  267. package/mobile/lib/hooks/useCachedAsyncData.js +22 -0
  268. package/mobile/lib/hooks/useCachedAsyncData.js.map +1 -0
  269. package/mobile/lib/hooks/useLocation.d.ts +6 -0
  270. package/mobile/lib/hooks/useLocation.js +23 -0
  271. package/mobile/lib/hooks/useLocation.js.map +1 -0
  272. package/mobile/lib/hooks/useRegions.d.ts +6 -0
  273. package/mobile/lib/hooks/useRegions.js +8 -0
  274. package/mobile/lib/hooks/useRegions.js.map +1 -0
  275. package/mobile/lib/services/sitemap/SitemapProps.d.ts +8 -0
  276. package/mobile/lib/ui-kit/Location/Location.d.ts +19 -0
  277. package/mobile/lib/ui-kit/Location/Location.js +42 -0
  278. package/mobile/lib/ui-kit/Location/Location.js.map +1 -0
  279. package/mobile/lib/ui-kit/Location/SearchBar.d.ts +6 -0
  280. package/mobile/lib/ui-kit/Location/SearchBar.js +7 -0
  281. package/mobile/lib/ui-kit/Location/SearchBar.js.map +1 -0
  282. package/mobile/lib/ui-kit/MarkdownText/MarkdownText.d.ts +2 -0
  283. package/mobile/lib/ui-kit/MarkdownText/MarkdownText.js +7 -0
  284. package/mobile/lib/ui-kit/MarkdownText/MarkdownText.js.map +1 -0
  285. package/mobile/lib/ui-kit/MarkdownText/MarkdownTextProps.d.ts +6 -0
  286. package/mobile/lib/ui-kit/MarkdownText/MarkdownTextProps.js +2 -0
  287. package/mobile/lib/ui-kit/MarkdownText/MarkdownTextProps.js.map +1 -0
  288. package/mobile/lib/ui-kit/SwipeListControl/SwipeListContainer.js +8 -4
  289. package/mobile/lib/ui-kit/SwipeListControl/SwipeListContainer.js.map +1 -1
  290. package/mobile/lib/ui-kit/Text/Text.js +1 -5
  291. package/mobile/lib/ui-kit/Text/Text.js.map +1 -1
  292. package/mobile/lib/utils/groupBy.d.ts +1 -0
  293. package/mobile/lib/utils/groupBy.js +10 -0
  294. package/mobile/lib/utils/groupBy.js.map +1 -0
  295. package/mobile/src/common.css +50 -0
  296. package/mobile/src/components/CarouselRecommendationCard/CarouselRecommendationCard.example.json +19 -0
  297. package/mobile/src/components/CarouselRecommendationCard/CarouselRecommendationCard.tsx +62 -0
  298. package/mobile/src/components/CarouselRecommendationCard/CarouselRecommendationCard.ui.json +9 -0
  299. package/mobile/src/components/CarouselRecommendationCard/CarouselRecommendationCardContent.ts +45 -0
  300. package/mobile/src/components/Header/HeaderBurger.tsx +5 -7
  301. package/mobile/src/components/Header/HeaderSecondaryMenu.tsx +32 -5
  302. package/mobile/src/components/MiniGallery/MiniGallery.ui.json +1 -1
  303. package/mobile/src/components/ProductTile/ProductTile.example.json +3 -0
  304. package/mobile/src/components/ProductTile/ProductTile.tsx +13 -44
  305. package/mobile/src/components/ProductTile/ProductTile.ui.json +14 -1
  306. package/mobile/src/components/ProductTile/ProductTileContent.ts +26 -2
  307. package/mobile/src/components/ProductTile/renderAdditionalDescription.tsx +30 -0
  308. package/mobile/src/components/ProductTile/renderBenefit.tsx +39 -0
  309. package/mobile/src/components/ProductTile/renderImage.tsx +15 -0
  310. package/mobile/src/components/Recommendation/Recommendation.example.json +6 -5
  311. package/mobile/src/components/Recommendation/Recommendation.ui.json +8 -0
  312. package/mobile/src/components/Recommendation/RecommendationCard.tsx +1 -1
  313. package/mobile/src/content-page-repository/transformImg.ts +6 -14
  314. package/mobile/src/content-page-repository/transformMarkdown.ts +3 -3
  315. package/mobile/src/hooks/useCachedAsyncData.ts +37 -0
  316. package/mobile/src/hooks/useLocation.ts +48 -0
  317. package/mobile/src/hooks/useRegions.ts +16 -0
  318. package/mobile/src/services/sitemap/SitemapProps.ts +9 -0
  319. package/mobile/src/ui-kit/Location/Location.tsx +168 -0
  320. package/mobile/src/ui-kit/Location/SearchBar.tsx +30 -0
  321. package/mobile/src/ui-kit/MarkdownText/MarkdownText.tsx +8 -0
  322. package/mobile/src/ui-kit/MarkdownText/MarkdownTextProps.ts +6 -0
  323. package/mobile/src/ui-kit/SwipeListControl/SwipeListContainer.tsx +8 -4
  324. package/mobile/src/ui-kit/Text/Text.tsx +5 -7
  325. package/mobile/src/utils/groupBy.ts +10 -0
  326. package/package.json +2 -2
  327. package/src/common.css +50 -0
  328. package/src/components/Blocks.ts +4 -2
  329. package/src/components/Carousel/Carousel.fixture.tsx +22 -4
  330. package/src/components/CarouselRecommendationCard/CarouselRecommendationCard.example.json +19 -0
  331. package/src/components/CarouselRecommendationCard/CarouselRecommendationCard.fixture.tsx +47 -0
  332. package/src/components/CarouselRecommendationCard/CarouselRecommendationCard.tsx +62 -0
  333. package/src/components/CarouselRecommendationCard/CarouselRecommendationCard.ui.json +9 -0
  334. package/src/components/CarouselRecommendationCard/CarouselRecommendationCardContent.ts +45 -0
  335. package/src/components/Header/Header.tsx +6 -4
  336. package/src/components/Header/HeaderBurger.tsx +5 -7
  337. package/src/components/Header/HeaderSecondaryMenu.tsx +32 -5
  338. package/src/components/MiniGallery/MiniGallery.ui.json +1 -1
  339. package/src/components/ProductTile/ProductTile.example.json +3 -0
  340. package/src/components/ProductTile/ProductTile.fixture.tsx +11 -4
  341. package/src/components/ProductTile/ProductTile.tsx +13 -44
  342. package/src/components/ProductTile/ProductTile.ui.json +14 -1
  343. package/src/components/ProductTile/ProductTileContent.ts +26 -2
  344. package/src/components/ProductTile/renderAdditionalDescription.tsx +30 -0
  345. package/src/components/ProductTile/renderBenefit.tsx +39 -0
  346. package/src/components/ProductTile/renderImage.tsx +15 -0
  347. package/src/components/Recommendation/Recommendation.example.json +6 -5
  348. package/src/components/Recommendation/Recommendation.fixture.tsx +11 -10
  349. package/src/components/Recommendation/Recommendation.ui.json +8 -0
  350. package/src/components/Recommendation/RecommendationCard.tsx +1 -1
  351. package/src/components/TextBlock/TextBlock.tsx +49 -41
  352. package/src/content-page-repository/transformImg.ts +6 -14
  353. package/src/content-page-repository/transformMarkdown.ts +3 -3
  354. package/src/hooks/useCachedAsyncData.ts +37 -0
  355. package/src/hooks/useLocation.ts +48 -0
  356. package/src/hooks/useRegions.ts +16 -0
  357. package/src/services/sitemap/SitemapProps.ts +9 -0
  358. package/src/ui-kit/Location/Location.fixture.tsx +81 -0
  359. package/src/ui-kit/Location/Location.tsx +168 -0
  360. package/src/ui-kit/Location/SearchBar.tsx +30 -0
  361. package/src/ui-kit/MarkdownText/MarkdownText.tsx +8 -0
  362. package/src/ui-kit/MarkdownText/MarkdownTextProps.ts +6 -0
  363. package/src/ui-kit/SwipeListControl/SwipeListContainer.tsx +8 -4
  364. package/src/ui-kit/Text/Text.tsx +5 -7
  365. package/src/utils/groupBy.ts +10 -0
  366. package/bundle/hooks/useGeolocation.d.ts +0 -1
  367. package/dist/hooks/useGeolocation.d.ts +0 -1
  368. package/dist/hooks/useGeolocation.js +0 -21
  369. package/dist/hooks/useGeolocation.js.map +0 -1
  370. package/lib/hooks/useGeolocation.d.ts +0 -1
  371. package/lib/hooks/useGeolocation.js +0 -18
  372. package/lib/hooks/useGeolocation.js.map +0 -1
  373. package/mobile/bundle/hooks/useGeolocation.d.ts +0 -1
  374. package/mobile/dist/hooks/useGeolocation.d.ts +0 -1
  375. package/mobile/dist/hooks/useGeolocation.js +0 -21
  376. package/mobile/dist/hooks/useGeolocation.js.map +0 -1
  377. package/mobile/lib/hooks/useGeolocation.d.ts +0 -1
  378. package/mobile/lib/hooks/useGeolocation.js +0 -18
  379. package/mobile/lib/hooks/useGeolocation.js.map +0 -1
  380. package/mobile/src/hooks/useGeolocation.ts +0 -22
  381. package/src/hooks/useGeolocation.ts +0 -22
@@ -1,21 +0,0 @@
1
- Object.defineProperty(exports, "__esModule", { value: true });
2
- exports.useGeolocation = void 0;
3
- const hooks_1 = require("@redneckz/uni-jsx/lib/hooks");
4
- const DaDataAPI_1 = require("../api/DaDataAPI");
5
- const DaData = (0, DaDataAPI_1.DaDataAPI)('https://10.80.4.9');
6
- function useGeolocation(defaultLocation) {
7
- const [city, setCity] = (0, hooks_1.useState)(defaultLocation);
8
- (0, hooks_1.useEffect)(() => {
9
- setCity(globalThis?.localStorage.getItem('location') || defaultLocation);
10
- }, [defaultLocation]);
11
- const getCity = (0, hooks_1.useCallback)(() => {
12
- DaData.getFetcherAddress().then((_) => {
13
- const location = _ || defaultLocation;
14
- globalThis?.localStorage.setItem('location', location);
15
- setCity(location);
16
- });
17
- }, [defaultLocation]);
18
- return [city, getCity];
19
- }
20
- exports.useGeolocation = useGeolocation;
21
- //# sourceMappingURL=useGeolocation.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"useGeolocation.js","sourceRoot":"","sources":["../../src/hooks/useGeolocation.ts"],"names":[],"mappings":";;AAAA,uDAA+E;AAC/E,gDAA6C;AAE7C,MAAM,MAAM,GAAG,IAAA,qBAAS,EAAC,mBAAmB,CAAC,CAAC;AAE9C,SAAgB,cAAc,CAAC,eAAuB;IACpD,MAAM,CAAC,IAAI,EAAE,OAAO,CAAC,GAAG,IAAA,gBAAQ,EAAC,eAAe,CAAC,CAAC;IAElD,IAAA,iBAAS,EAAC,GAAG,EAAE;QACb,OAAO,CAAC,UAAU,EAAE,YAAY,CAAC,OAAO,CAAC,UAAU,CAAC,IAAI,eAAe,CAAC,CAAC;IAC3E,CAAC,EAAE,CAAC,eAAe,CAAC,CAAC,CAAC;IAEtB,MAAM,OAAO,GAAG,IAAA,mBAAW,EAAC,GAAG,EAAE;QAC/B,MAAM,CAAC,iBAAiB,EAAE,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,EAAE;YACpC,MAAM,QAAQ,GAAG,CAAC,IAAI,eAAe,CAAC;YACtC,UAAU,EAAE,YAAY,CAAC,OAAO,CAAC,UAAU,EAAE,QAAQ,CAAC,CAAC;YACvD,OAAO,CAAC,QAAQ,CAAC,CAAC;QACpB,CAAC,CAAC,CAAC;IACL,CAAC,EAAE,CAAC,eAAe,CAAC,CAAC,CAAC;IAEtB,OAAO,CAAC,IAAI,EAAE,OAAO,CAAC,CAAC;AACzB,CAAC;AAhBD,wCAgBC"}
@@ -1 +0,0 @@
1
- export declare function useGeolocation(defaultLocation: string): [string, () => void];
@@ -1,18 +0,0 @@
1
- import { useCallback, useEffect, useState } from '@redneckz/uni-jsx/lib/hooks';
2
- import { DaDataAPI } from '../api/DaDataAPI.js';
3
- const DaData = DaDataAPI('https://10.80.4.9');
4
- export function useGeolocation(defaultLocation) {
5
- const [city, setCity] = useState(defaultLocation);
6
- useEffect(() => {
7
- setCity(globalThis?.localStorage.getItem('location') || defaultLocation);
8
- }, [defaultLocation]);
9
- const getCity = useCallback(() => {
10
- DaData.getFetcherAddress().then((_) => {
11
- const location = _ || defaultLocation;
12
- globalThis?.localStorage.setItem('location', location);
13
- setCity(location);
14
- });
15
- }, [defaultLocation]);
16
- return [city, getCity];
17
- }
18
- //# sourceMappingURL=useGeolocation.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"useGeolocation.js","sourceRoot":"","sources":["../../src/hooks/useGeolocation.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,6BAA6B,CAAC;AAC/E,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAE7C,MAAM,MAAM,GAAG,SAAS,CAAC,mBAAmB,CAAC,CAAC;AAE9C,MAAM,UAAU,cAAc,CAAC,eAAuB;IACpD,MAAM,CAAC,IAAI,EAAE,OAAO,CAAC,GAAG,QAAQ,CAAC,eAAe,CAAC,CAAC;IAElD,SAAS,CAAC,GAAG,EAAE;QACb,OAAO,CAAC,UAAU,EAAE,YAAY,CAAC,OAAO,CAAC,UAAU,CAAC,IAAI,eAAe,CAAC,CAAC;IAC3E,CAAC,EAAE,CAAC,eAAe,CAAC,CAAC,CAAC;IAEtB,MAAM,OAAO,GAAG,WAAW,CAAC,GAAG,EAAE;QAC/B,MAAM,CAAC,iBAAiB,EAAE,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,EAAE;YACpC,MAAM,QAAQ,GAAG,CAAC,IAAI,eAAe,CAAC;YACtC,UAAU,EAAE,YAAY,CAAC,OAAO,CAAC,UAAU,EAAE,QAAQ,CAAC,CAAC;YACvD,OAAO,CAAC,QAAQ,CAAC,CAAC;QACpB,CAAC,CAAC,CAAC;IACL,CAAC,EAAE,CAAC,eAAe,CAAC,CAAC,CAAC;IAEtB,OAAO,CAAC,IAAI,EAAE,OAAO,CAAC,CAAC;AACzB,CAAC"}
@@ -1 +0,0 @@
1
- export declare function useGeolocation(defaultLocation: string): [string, () => void];
@@ -1 +0,0 @@
1
- export declare function useGeolocation(defaultLocation: string): [string, () => void];
@@ -1,21 +0,0 @@
1
- Object.defineProperty(exports, "__esModule", { value: true });
2
- exports.useGeolocation = void 0;
3
- const hooks_1 = require("@redneckz/uni-jsx/lib/hooks");
4
- const DaDataAPI_1 = require("../api/DaDataAPI");
5
- const DaData = (0, DaDataAPI_1.DaDataAPI)('https://10.80.4.9');
6
- function useGeolocation(defaultLocation) {
7
- const [city, setCity] = (0, hooks_1.useState)(defaultLocation);
8
- (0, hooks_1.useEffect)(() => {
9
- setCity(globalThis?.localStorage.getItem('location') || defaultLocation);
10
- }, [defaultLocation]);
11
- const getCity = (0, hooks_1.useCallback)(() => {
12
- DaData.getFetcherAddress().then((_) => {
13
- const location = _ || defaultLocation;
14
- globalThis?.localStorage.setItem('location', location);
15
- setCity(location);
16
- });
17
- }, [defaultLocation]);
18
- return [city, getCity];
19
- }
20
- exports.useGeolocation = useGeolocation;
21
- //# sourceMappingURL=useGeolocation.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"useGeolocation.js","sourceRoot":"","sources":["../../src/hooks/useGeolocation.ts"],"names":[],"mappings":";;AAAA,uDAA+E;AAC/E,gDAA6C;AAE7C,MAAM,MAAM,GAAG,IAAA,qBAAS,EAAC,mBAAmB,CAAC,CAAC;AAE9C,SAAgB,cAAc,CAAC,eAAuB;IACpD,MAAM,CAAC,IAAI,EAAE,OAAO,CAAC,GAAG,IAAA,gBAAQ,EAAC,eAAe,CAAC,CAAC;IAElD,IAAA,iBAAS,EAAC,GAAG,EAAE;QACb,OAAO,CAAC,UAAU,EAAE,YAAY,CAAC,OAAO,CAAC,UAAU,CAAC,IAAI,eAAe,CAAC,CAAC;IAC3E,CAAC,EAAE,CAAC,eAAe,CAAC,CAAC,CAAC;IAEtB,MAAM,OAAO,GAAG,IAAA,mBAAW,EAAC,GAAG,EAAE;QAC/B,MAAM,CAAC,iBAAiB,EAAE,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,EAAE;YACpC,MAAM,QAAQ,GAAG,CAAC,IAAI,eAAe,CAAC;YACtC,UAAU,EAAE,YAAY,CAAC,OAAO,CAAC,UAAU,EAAE,QAAQ,CAAC,CAAC;YACvD,OAAO,CAAC,QAAQ,CAAC,CAAC;QACpB,CAAC,CAAC,CAAC;IACL,CAAC,EAAE,CAAC,eAAe,CAAC,CAAC,CAAC;IAEtB,OAAO,CAAC,IAAI,EAAE,OAAO,CAAC,CAAC;AACzB,CAAC;AAhBD,wCAgBC"}
@@ -1 +0,0 @@
1
- export declare function useGeolocation(defaultLocation: string): [string, () => void];
@@ -1,18 +0,0 @@
1
- import { useCallback, useEffect, useState } from '@redneckz/uni-jsx/lib/hooks';
2
- import { DaDataAPI } from '../api/DaDataAPI.js';
3
- const DaData = DaDataAPI('https://10.80.4.9');
4
- export function useGeolocation(defaultLocation) {
5
- const [city, setCity] = useState(defaultLocation);
6
- useEffect(() => {
7
- setCity(globalThis?.localStorage.getItem('location') || defaultLocation);
8
- }, [defaultLocation]);
9
- const getCity = useCallback(() => {
10
- DaData.getFetcherAddress().then((_) => {
11
- const location = _ || defaultLocation;
12
- globalThis?.localStorage.setItem('location', location);
13
- setCity(location);
14
- });
15
- }, [defaultLocation]);
16
- return [city, getCity];
17
- }
18
- //# sourceMappingURL=useGeolocation.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"useGeolocation.js","sourceRoot":"","sources":["../../src/hooks/useGeolocation.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,6BAA6B,CAAC;AAC/E,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAE7C,MAAM,MAAM,GAAG,SAAS,CAAC,mBAAmB,CAAC,CAAC;AAE9C,MAAM,UAAU,cAAc,CAAC,eAAuB;IACpD,MAAM,CAAC,IAAI,EAAE,OAAO,CAAC,GAAG,QAAQ,CAAC,eAAe,CAAC,CAAC;IAElD,SAAS,CAAC,GAAG,EAAE;QACb,OAAO,CAAC,UAAU,EAAE,YAAY,CAAC,OAAO,CAAC,UAAU,CAAC,IAAI,eAAe,CAAC,CAAC;IAC3E,CAAC,EAAE,CAAC,eAAe,CAAC,CAAC,CAAC;IAEtB,MAAM,OAAO,GAAG,WAAW,CAAC,GAAG,EAAE;QAC/B,MAAM,CAAC,iBAAiB,EAAE,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,EAAE;YACpC,MAAM,QAAQ,GAAG,CAAC,IAAI,eAAe,CAAC;YACtC,UAAU,EAAE,YAAY,CAAC,OAAO,CAAC,UAAU,EAAE,QAAQ,CAAC,CAAC;YACvD,OAAO,CAAC,QAAQ,CAAC,CAAC;QACpB,CAAC,CAAC,CAAC;IACL,CAAC,EAAE,CAAC,eAAe,CAAC,CAAC,CAAC;IAEtB,OAAO,CAAC,IAAI,EAAE,OAAO,CAAC,CAAC;AACzB,CAAC"}
@@ -1,22 +0,0 @@
1
- import { useCallback, useEffect, useState } from '@redneckz/uni-jsx/lib/hooks';
2
- import { DaDataAPI } from '../api/DaDataAPI';
3
-
4
- const DaData = DaDataAPI('https://10.80.4.9');
5
-
6
- export function useGeolocation(defaultLocation: string): [string, () => void] {
7
- const [city, setCity] = useState(defaultLocation);
8
-
9
- useEffect(() => {
10
- setCity(globalThis?.localStorage.getItem('location') || defaultLocation);
11
- }, [defaultLocation]);
12
-
13
- const getCity = useCallback(() => {
14
- DaData.getFetcherAddress().then((_) => {
15
- const location = _ || defaultLocation;
16
- globalThis?.localStorage.setItem('location', location);
17
- setCity(location);
18
- });
19
- }, [defaultLocation]);
20
-
21
- return [city, getCity];
22
- }
@@ -1,22 +0,0 @@
1
- import { useCallback, useEffect, useState } from '@redneckz/uni-jsx/lib/hooks';
2
- import { DaDataAPI } from '../api/DaDataAPI';
3
-
4
- const DaData = DaDataAPI('https://10.80.4.9');
5
-
6
- export function useGeolocation(defaultLocation: string): [string, () => void] {
7
- const [city, setCity] = useState(defaultLocation);
8
-
9
- useEffect(() => {
10
- setCity(globalThis?.localStorage.getItem('location') || defaultLocation);
11
- }, [defaultLocation]);
12
-
13
- const getCity = useCallback(() => {
14
- DaData.getFetcherAddress().then((_) => {
15
- const location = _ || defaultLocation;
16
- globalThis?.localStorage.setItem('location', location);
17
- setCity(location);
18
- });
19
- }, [defaultLocation]);
20
-
21
- return [city, getCity];
22
- }