@mediacubeco/expo-template-fsd 2.3.1 → 2.4.1

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 (333) hide show
  1. package/.claude/commands/git-commit.md +164 -0
  2. package/.claude/rules/architecture.md +38 -0
  3. package/.claude/rules/{prettier-eslint-typescript.mdc → prettier-eslint-typescript.md} +5 -10
  4. package/.claude/settings.json +2 -2
  5. package/.claude/skills/api/SKILL.md +362 -0
  6. package/.claude/skills/api/references/client/overview.md +106 -0
  7. package/.claude/skills/api/references/hooks/index.ts +3 -0
  8. package/.claude/skills/api/references/hooks/use-api-health.ts +25 -0
  9. package/.claude/skills/api/references/hooks/use-api-post.ts +46 -0
  10. package/.claude/skills/api/references/hooks/use-api-posts.ts +24 -0
  11. package/.claude/skills/api/references/mock/post.mock.ts +29 -0
  12. package/.claude/skills/{generate-api-model/references → api/references/model}/entities/common.ts +5 -2
  13. package/.claude/skills/api/references/model/resources/common.ts +9 -0
  14. package/.claude/skills/api/references/queries/health.ts +14 -0
  15. package/.claude/skills/api/references/queries/index.ts +2 -0
  16. package/.claude/skills/api/references/queries/post.ts +23 -0
  17. package/.claude/skills/api/references/repository/health/health.ts +11 -0
  18. package/.claude/skills/api/references/repository/health/health.types.ts +25 -0
  19. package/.claude/skills/api/references/repository/health/index.ts +2 -0
  20. package/.claude/skills/api/references/repository/post/index.ts +9 -0
  21. package/.claude/skills/api/references/repository/post/post.ts +34 -0
  22. package/.claude/skills/api/references/repository/post/post.types.ts +61 -0
  23. package/.claude/skills/code-style/SKILL.md +1025 -1
  24. package/.claude/skills/code-style/references/components/payout-speed-option/index.ts +2 -0
  25. package/.claude/skills/code-style/references/components/payout-speed-option/payout-speed-option.styles.ts +76 -0
  26. package/.claude/skills/code-style/references/components/payout-speed-option/payout-speed-option.tsx +58 -0
  27. package/.claude/skills/code-style/references/components/payout-speed-option/payout-speed-option.types.ts +22 -0
  28. package/.claude/skills/code-style/references/components/post/index.ts +2 -0
  29. package/.claude/skills/code-style/references/components/post/post.styles.ts +19 -0
  30. package/.claude/skills/code-style/references/components/post/post.tsx +21 -0
  31. package/.claude/skills/code-style/references/components/post/post.types.ts +9 -0
  32. package/.claude/skills/code-style/references/components/wrap/index.ts +2 -0
  33. package/.claude/skills/code-style/references/components/wrap/wrap.styles.ts +15 -0
  34. package/.claude/skills/code-style/references/components/wrap/wrap.tsx +31 -0
  35. package/.claude/skills/code-style/references/components/wrap/wrap.types.ts +10 -0
  36. package/.claude/skills/code-style/references/hooks/use-posts.ts +37 -0
  37. package/.claude/skills/code-style/references/pages/post/index.ts +4 -0
  38. package/.claude/skills/code-style/references/pages/post/post-details/index.ts +1 -0
  39. package/.claude/skills/code-style/references/pages/post/post-details/post-details.tsx +13 -0
  40. package/.claude/skills/code-style/references/pages/post/post-guide/index.ts +1 -0
  41. package/.claude/skills/code-style/references/pages/post/post-guide/post-guide.tsx +17 -0
  42. package/.claude/skills/code-style/references/pages/post/post-list/index.ts +1 -0
  43. package/.claude/skills/code-style/references/pages/post/post-list/post-list.styles.ts +17 -0
  44. package/.claude/skills/code-style/references/pages/post/post-list/post-list.tsx +25 -0
  45. package/.claude/skills/code-style/references/pages/post/post-share/index.ts +1 -0
  46. package/.claude/skills/code-style/references/pages/post/post-share/post-share.tsx +13 -0
  47. package/.claude/skills/code-style/references/routes/(stack)/_layout.tsx +18 -0
  48. package/.claude/skills/code-style/references/routes/(stack)/details.tsx +8 -0
  49. package/.claude/skills/code-style/references/routes/(stack)/guide.tsx +8 -0
  50. package/.claude/skills/code-style/references/routes/(stack)/index.tsx +8 -0
  51. package/.claude/skills/code-style/references/routes/(stack)/share.tsx +8 -0
  52. package/.claude/skills/code-style/references/routes/(tabs)/(post-details)/index.tsx +8 -0
  53. package/.claude/skills/code-style/references/routes/(tabs)/(post-list)/index.tsx +8 -0
  54. package/.claude/skills/code-style/references/routes/(tabs)/_layout.tsx +50 -0
  55. package/.claude/skills/code-style/references/routes/_app.tsx +20 -0
  56. package/.claude/skills/code-style/references/routes/guide.tsx +8 -0
  57. package/.claude/skills/code-style/references/routes/share.tsx +8 -0
  58. package/.claude/skills/code-style/references/store/use-post-draft-store.ts +62 -0
  59. package/.claude/skills/design-style/SKILL.md +320 -0
  60. package/.env +3 -1
  61. package/.env.example +3 -1
  62. package/CLAUDE.md +5 -11
  63. package/app.json +6 -3
  64. package/axios.d.ts +5 -0
  65. package/env.d.ts +3 -1
  66. package/package.json +33 -40
  67. package/patches/react-native-screens+4.25.2.patch +118 -0
  68. package/react-query.d.ts +13 -0
  69. package/src/app/(root)/(home)/_layout.tsx +2 -2
  70. package/src/app/(root)/(home)/index.tsx +2 -2
  71. package/src/app/(root)/(settings)/_layout.tsx +2 -2
  72. package/src/app/(root)/(settings)/index.tsx +2 -2
  73. package/src/app/(root)/_layout.tsx +35 -32
  74. package/src/pages/home/home-main.tsx +3 -7
  75. package/src/pages/settings/settings-main.tsx +3 -7
  76. package/src/shared/assets/fonts/index.ts +3 -3
  77. package/src/shared/assets/fonts/sf-pro-text-bold.ttf +0 -0
  78. package/src/shared/assets/fonts/sf-pro-text-regular.ttf +0 -0
  79. package/src/shared/assets/fonts/sf-pro-text-semibold.ttf +0 -0
  80. package/src/shared/assets/icons/back.tsx +21 -0
  81. package/src/shared/assets/icons/close.tsx +21 -0
  82. package/src/shared/assets/icons/common.ts +8 -0
  83. package/src/shared/assets/icons/default.tsx +44 -0
  84. package/src/shared/assets/icons/index.ts +14 -1
  85. package/src/shared/assets/icons/refresh.tsx +23 -0
  86. package/src/shared/assets/icons/share.tsx +38 -0
  87. package/src/shared/assets/icons/type.ts +7 -0
  88. package/src/shared/assets/translations/index.ts +4 -4
  89. package/src/shared/constants/config.ts +13 -0
  90. package/src/shared/constants/environment.ts +16 -4
  91. package/src/shared/constants/index.ts +1 -0
  92. package/src/shared/hooks/index.ts +1 -4
  93. package/src/shared/hooks/use-compose.ts +23 -0
  94. package/src/shared/lib/api/api.client.ts +157 -0
  95. package/src/shared/lib/api/api.provider.tsx +14 -36
  96. package/src/shared/lib/api/api.ts +1 -5
  97. package/src/shared/lib/api/api.types.ts +6 -3
  98. package/src/shared/lib/api/hooks/index.ts +1 -0
  99. package/src/shared/lib/api/index.ts +2 -3
  100. package/src/shared/lib/api/models/api-instance/api-instance.client.ts +50 -0
  101. package/src/shared/lib/api/models/api-instance/api-instance.ts +30 -82
  102. package/src/shared/lib/api/models/api-instance/api-instance.types.ts +16 -18
  103. package/src/shared/lib/api/models/api-instance/api-instance.utils.ts +13 -20
  104. package/src/shared/lib/api/models/api-instance/index.ts +3 -0
  105. package/src/shared/lib/api/queries/index.ts +1 -0
  106. package/src/shared/lib/api/repositories/index.ts +1 -1
  107. package/src/shared/lib/localization/constants/index.ts +16 -5
  108. package/src/shared/lib/localization/index.ts +5 -1
  109. package/src/shared/lib/navigation/hooks/index.ts +8 -3
  110. package/src/shared/{hooks/use-breakpoints.ts → lib/navigation/hooks/use-navigation-breakpoints.ts} +2 -5
  111. package/src/shared/lib/navigation/hooks/use-navigation-dimensions.ts +12 -0
  112. package/src/shared/lib/navigation/hooks/use-navigation-options.tsx +175 -0
  113. package/src/shared/lib/navigation/hooks/{use-navigation.ts → use-navigation-route.ts} +2 -2
  114. package/src/shared/lib/navigation/hooks/use-navigation-safe-area.ts +61 -0
  115. package/src/shared/lib/navigation/hooks/use-navigation-tabs-native.ts +10 -0
  116. package/src/shared/lib/navigation/hooks/use-navigation-tabs.tsx +10 -0
  117. package/src/shared/lib/navigation/hooks/use-navigation-transition.ts +27 -0
  118. package/src/shared/lib/navigation/index.ts +11 -4
  119. package/src/shared/lib/navigation/navigation-tabs-native.context.tsx +5 -0
  120. package/src/shared/lib/navigation/navigation-tabs-native.provider.tsx +17 -0
  121. package/src/shared/lib/navigation/navigation-tabs.context.tsx +10 -0
  122. package/src/shared/lib/navigation/navigation-tabs.provider.tsx +22 -0
  123. package/src/shared/lib/navigation/navigation.provider.tsx +6 -1
  124. package/src/shared/lib/storage/index.ts +1 -1
  125. package/src/shared/lib/storage/storage.provider.tsx +4 -0
  126. package/src/shared/lib/storage/storage.ts +29 -25
  127. package/src/shared/lib/theme/constants/animations.ts +26 -0
  128. package/src/shared/lib/theme/constants/colors.ts +336 -43
  129. package/src/shared/lib/theme/constants/delays.ts +1 -1
  130. package/src/shared/lib/theme/constants/durations.ts +1 -1
  131. package/src/shared/lib/theme/constants/fonts.ts +2 -1
  132. package/src/shared/lib/theme/constants/index.ts +42 -20
  133. package/src/shared/lib/theme/constants/shadows.ts +7 -25
  134. package/src/shared/lib/theme/constants/sizes.ts +11 -2
  135. package/src/shared/lib/theme/constants/transparencies.ts +1 -1
  136. package/src/shared/lib/theme/hooks/use-theme-setup.ts +3 -1
  137. package/src/shared/lib/theme/index.ts +10 -1
  138. package/src/shared/lib/theme/theme.provider.tsx +45 -19
  139. package/src/shared/lib/theme/theme.scope.tsx +43 -0
  140. package/src/shared/lib/theme/theme.types.ts +15 -3
  141. package/src/shared/lib/theme/utils/color.ts +81 -0
  142. package/src/shared/lib/theme/utils/index.ts +2 -0
  143. package/src/shared/lib/theme/utils/snapshot.ts +17 -0
  144. package/src/shared/lib/theme/utils/storage.ts +5 -2
  145. package/src/shared/services/browser/browser.ts +66 -0
  146. package/src/shared/services/browser/index.ts +1 -0
  147. package/src/shared/services/cookies/cookies.ts +73 -0
  148. package/src/shared/services/cookies/index.ts +1 -0
  149. package/src/shared/services/index.ts +5 -0
  150. package/src/shared/services/linking/index.ts +1 -0
  151. package/src/shared/services/linking/linking.ts +22 -0
  152. package/src/shared/services/share/index.ts +1 -0
  153. package/src/shared/services/share/share.ts +28 -0
  154. package/src/shared/services/universal-links/index.ts +104 -0
  155. package/src/shared/services/universal-links/universal-links.ts +25 -0
  156. package/src/shared/services/universal-links/universal-links.types.ts +5 -0
  157. package/src/shared/ui/atoms/blur/blur.tsx +9 -4
  158. package/src/shared/ui/atoms/blur/blur.types.ts +1 -1
  159. package/src/shared/ui/atoms/blur-progress/blur-progress.styles.ts +16 -0
  160. package/src/shared/ui/atoms/blur-progress/blur-progress.tsx +30 -0
  161. package/src/shared/ui/atoms/blur-progress/blur-progress.types.tsx +5 -0
  162. package/src/shared/ui/atoms/blur-progress/index.ts +1 -0
  163. package/src/shared/ui/atoms/glass/glass.tsx +13 -5
  164. package/src/shared/ui/atoms/glass/glass.types.ts +1 -1
  165. package/src/shared/ui/atoms/icon/icon.styles.ts +82 -0
  166. package/src/shared/ui/atoms/icon/icon.tsx +21 -0
  167. package/src/shared/ui/atoms/icon/icon.types.ts +23 -0
  168. package/src/shared/ui/atoms/icon/index.ts +2 -0
  169. package/src/shared/ui/atoms/index.ts +7 -0
  170. package/src/shared/ui/atoms/skeleton/index.ts +2 -0
  171. package/src/shared/ui/atoms/skeleton/skeleton.styles.ts +69 -0
  172. package/src/shared/ui/atoms/skeleton/skeleton.tsx +26 -0
  173. package/src/shared/ui/atoms/skeleton/skeleton.types.ts +9 -0
  174. package/src/shared/ui/atoms/spinner/index.ts +2 -0
  175. package/src/shared/ui/atoms/spinner/spinner.styles.ts +102 -0
  176. package/src/shared/ui/atoms/spinner/spinner.tsx +48 -0
  177. package/src/shared/ui/atoms/spinner/spinner.types.ts +25 -0
  178. package/src/shared/ui/atoms/text/index.ts +2 -0
  179. package/src/shared/ui/atoms/text/text.styles.ts +186 -0
  180. package/src/shared/ui/atoms/text/text.tsx +37 -0
  181. package/src/shared/ui/atoms/text/text.types.ts +35 -0
  182. package/src/shared/ui/atoms/touch/components/haptics/haptics.styles.ts +21 -0
  183. package/src/shared/ui/atoms/touch/components/haptics/haptics.tsx +28 -0
  184. package/src/shared/ui/atoms/touch/components/haptics/haptics.types.ts +17 -0
  185. package/src/shared/ui/atoms/touch/components/haptics/index.ts +2 -0
  186. package/src/shared/ui/atoms/touch/components/index.ts +3 -0
  187. package/src/shared/ui/atoms/touch/components/ripple/index.ts +2 -0
  188. package/src/shared/ui/atoms/touch/components/ripple/ripple.styles.ts +78 -0
  189. package/src/shared/ui/atoms/touch/components/ripple/ripple.tsx +29 -0
  190. package/src/shared/ui/atoms/touch/components/ripple/ripple.types.ts +17 -0
  191. package/src/shared/ui/atoms/touch/components/spring/index.ts +2 -0
  192. package/src/shared/ui/atoms/touch/components/spring/spring.styles.ts +31 -0
  193. package/src/shared/ui/atoms/touch/components/spring/spring.tsx +28 -0
  194. package/src/shared/ui/atoms/touch/components/spring/spring.types.ts +17 -0
  195. package/src/shared/ui/atoms/touch/index.ts +2 -0
  196. package/src/shared/ui/atoms/touch/touch.styles.ts +14 -0
  197. package/src/shared/ui/atoms/touch/touch.tsx +137 -0
  198. package/src/shared/ui/atoms/touch/touch.types.ts +27 -0
  199. package/src/shared/ui/atoms/visibility/index.ts +2 -0
  200. package/src/shared/ui/atoms/visibility/visibility.styles.ts +85 -0
  201. package/src/shared/ui/atoms/visibility/visibility.tsx +61 -0
  202. package/src/shared/ui/atoms/visibility/visibility.types.ts +34 -0
  203. package/src/shared/ui/molecules/keyboard-area/keyboard-area.styles.ts +11 -9
  204. package/src/shared/ui/molecules/keyboard-area/keyboard-area.tsx +3 -6
  205. package/src/shared/ui/molecules/refresh-control/refresh-control.tsx +3 -5
  206. package/src/shared/ui/molecules/refresh-control/refresh-control.types.ts +1 -1
  207. package/src/shared/ui/molecules/slider/components/indicator/components/dot/dot.styles.ts +41 -0
  208. package/src/shared/ui/molecules/slider/components/indicator/components/dot/dot.tsx +12 -0
  209. package/src/shared/ui/molecules/slider/components/indicator/components/dot/dot.types.ts +13 -0
  210. package/src/shared/ui/molecules/slider/components/indicator/components/dot/index.ts +2 -0
  211. package/src/shared/ui/molecules/slider/components/indicator/index.ts +2 -0
  212. package/src/shared/ui/molecules/slider/components/indicator/indicator.styles.ts +20 -0
  213. package/src/shared/ui/molecules/slider/components/indicator/indicator.tsx +22 -0
  214. package/src/shared/ui/molecules/slider/components/indicator/indicator.types.ts +10 -0
  215. package/src/shared/ui/molecules/slider/index.ts +3 -0
  216. package/src/shared/ui/molecules/slider/slider.styles.ts +68 -0
  217. package/src/shared/ui/molecules/slider/slider.tsx +64 -0
  218. package/src/shared/ui/molecules/slider/slider.types.ts +28 -0
  219. package/src/shared/ui/organisms/bar/bar.styles.ts +100 -0
  220. package/src/shared/ui/organisms/bar/bar.tsx +89 -0
  221. package/src/shared/ui/organisms/bar/bar.types.ts +49 -0
  222. package/src/shared/ui/organisms/bar/index.ts +2 -0
  223. package/src/shared/ui/organisms/bar-tab/bar-tab.tsx +9 -0
  224. package/src/shared/ui/organisms/bar-tab/bar-tab.types.ts +5 -0
  225. package/src/shared/ui/organisms/bar-tab/components/index.ts +1 -0
  226. package/src/shared/ui/organisms/bar-tab/components/tab/index.ts +2 -0
  227. package/src/shared/ui/organisms/bar-tab/components/tab/tab.styles.ts +21 -0
  228. package/src/shared/ui/organisms/bar-tab/components/tab/tab.tsx +18 -0
  229. package/src/shared/ui/organisms/bar-tab/components/tab/tab.types.ts +5 -0
  230. package/src/shared/ui/organisms/bar-tab/index.ts +2 -0
  231. package/src/shared/ui/organisms/bar-tab-navigation/bar-tab-navigation.styles.ts +22 -0
  232. package/src/shared/ui/organisms/bar-tab-navigation/bar-tab-navigation.tsx +66 -0
  233. package/src/shared/ui/organisms/bar-tab-navigation/bar-tab-navigation.types.ts +5 -0
  234. package/src/shared/ui/organisms/bar-tab-navigation/components/index.ts +1 -0
  235. package/src/shared/ui/organisms/bar-tab-navigation/components/tab-navigation/index.ts +2 -0
  236. package/src/shared/ui/organisms/bar-tab-navigation/components/tab-navigation/tab-navigation.styles.ts +56 -0
  237. package/src/shared/ui/organisms/bar-tab-navigation/components/tab-navigation/tab-navigation.tsx +30 -0
  238. package/src/shared/ui/organisms/bar-tab-navigation/components/tab-navigation/tab-navigation.types.ts +7 -0
  239. package/src/shared/ui/organisms/bar-tab-navigation/index.ts +2 -0
  240. package/src/shared/ui/organisms/index.ts +4 -1
  241. package/src/shared/ui/organisms/slider/components/indicator/components/dot/dot.styles.ts +41 -0
  242. package/src/shared/ui/organisms/slider/components/indicator/components/dot/dot.tsx +12 -0
  243. package/src/shared/ui/organisms/slider/components/indicator/components/dot/dot.types.ts +13 -0
  244. package/src/shared/ui/organisms/slider/components/indicator/components/dot/index.ts +2 -0
  245. package/src/shared/ui/organisms/slider/components/indicator/index.ts +2 -0
  246. package/src/shared/ui/organisms/slider/components/indicator/indicator.styles.ts +20 -0
  247. package/src/shared/ui/organisms/slider/components/indicator/indicator.tsx +22 -0
  248. package/src/shared/ui/organisms/slider/components/indicator/indicator.types.ts +10 -0
  249. package/src/shared/ui/organisms/slider/index.ts +3 -0
  250. package/src/shared/ui/organisms/slider/slider.styles.ts +68 -0
  251. package/src/shared/ui/organisms/slider/slider.tsx +64 -0
  252. package/src/shared/ui/organisms/slider/slider.types.ts +28 -0
  253. package/src/shared/ui/templates/index.ts +3 -0
  254. package/src/shared/ui/templates/modal-container/index.ts +13 -0
  255. package/src/shared/ui/templates/modal-container/modal-container-list.tsx +45 -0
  256. package/src/shared/ui/templates/modal-container/modal-container-scroll.tsx +66 -0
  257. package/src/shared/ui/templates/modal-container/modal-container-section-list.tsx +46 -0
  258. package/src/shared/ui/templates/modal-container/modal-container.hooks.tsx +172 -0
  259. package/src/shared/ui/templates/modal-container/modal-container.styles.ts +121 -0
  260. package/src/shared/ui/templates/modal-container/modal-container.types.ts +69 -0
  261. package/src/shared/ui/templates/screen-container/index.ts +1 -1
  262. package/src/shared/ui/templates/screen-container/screen-container-list.tsx +28 -10
  263. package/src/shared/ui/templates/screen-container/screen-container-scroll.tsx +28 -10
  264. package/src/shared/ui/templates/screen-container/screen-container-section-list.tsx +29 -11
  265. package/src/shared/ui/templates/screen-container/screen-container.hooks.tsx +79 -8
  266. package/src/shared/ui/templates/screen-container/screen-container.styles.ts +105 -15
  267. package/src/shared/ui/templates/screen-container/screen-container.types.tsx +34 -7
  268. package/src/shared/ui/templates/screen-header/components/index.ts +6 -0
  269. package/src/shared/ui/templates/screen-header/components/screen-header-description/index.ts +2 -0
  270. package/src/shared/ui/templates/screen-header/components/screen-header-description/screen-header-description.tsx +15 -0
  271. package/src/shared/ui/templates/screen-header/components/screen-header-description/screen-header-description.types.ts +11 -0
  272. package/src/shared/ui/templates/screen-header/components/screen-header-icon/index.ts +2 -0
  273. package/src/shared/ui/templates/screen-header/components/screen-header-icon/screen-header-icon.styles.ts +44 -0
  274. package/src/shared/ui/templates/screen-header/components/screen-header-icon/screen-header-icon.tsx +65 -0
  275. package/src/shared/ui/templates/screen-header/components/screen-header-icon/screen-header-icon.types.ts +14 -0
  276. package/src/shared/ui/templates/screen-header/components/screen-header-icon-back/index.ts +2 -0
  277. package/src/shared/ui/templates/screen-header/components/screen-header-icon-back/screen-header-icon-back.tsx +17 -0
  278. package/src/shared/ui/templates/screen-header/components/screen-header-icon-back/screen-header-icon-back.types.ts +6 -0
  279. package/src/shared/ui/templates/screen-header/components/screen-header-icon-close/index.ts +2 -0
  280. package/src/shared/ui/templates/screen-header/components/screen-header-icon-close/screen-header-icon-close.tsx +27 -0
  281. package/src/shared/ui/templates/screen-header/components/screen-header-icon-close/screen-header-icon-close.types.ts +10 -0
  282. package/src/shared/ui/templates/screen-header/components/screen-header-info/index.ts +2 -0
  283. package/src/shared/ui/templates/screen-header/components/screen-header-info/screen-header-info.tsx +15 -0
  284. package/src/shared/ui/templates/screen-header/components/screen-header-info/screen-header-info.types.ts +10 -0
  285. package/src/shared/ui/templates/screen-header/components/screen-header-title/index.ts +2 -0
  286. package/src/shared/ui/templates/screen-header/components/screen-header-title/screen-header-title.tsx +19 -0
  287. package/src/shared/ui/templates/screen-header/components/screen-header-title/screen-header-title.types.ts +13 -0
  288. package/src/shared/ui/templates/screen-header/index.ts +3 -0
  289. package/src/shared/ui/templates/screen-header/screen-header.styles.ts +49 -0
  290. package/src/shared/ui/templates/screen-header/screen-header.tsx +26 -0
  291. package/src/shared/ui/templates/screen-header/screen-header.types.ts +15 -0
  292. package/src/shared/ui/templates/web-container/index.ts +2 -0
  293. package/src/shared/ui/templates/web-container/web-container.styles.ts +34 -0
  294. package/src/shared/ui/templates/web-container/web-container.tsx +172 -0
  295. package/src/shared/ui/templates/web-container/web-container.types.ts +21 -0
  296. package/.claude/rules/app-routing.mdc +0 -47
  297. package/.claude/rules/exports-at-end.mdc +0 -55
  298. package/.claude/rules/kebab-case-naming.mdc +0 -29
  299. package/.claude/rules/mediacubeco-packages.mdc +0 -56
  300. package/.claude/skills/generate-api-model/SKILL.md +0 -230
  301. package/.claude/skills/generate-api-model/references/resources/common.ts +0 -8
  302. package/.claude/skills/generate-api-model-mock/SKILL.md +0 -56
  303. package/.claude/skills/git-commit/SKILL.md +0 -139
  304. package/.gitignore +0 -34
  305. package/src/shared/assets/icons/like.tsx +0 -17
  306. package/src/shared/hooks/use-animated.ts +0 -200
  307. package/src/shared/hooks/use-mixins.ts +0 -36
  308. package/src/shared/hooks/use-safe-area.ts +0 -75
  309. package/src/shared/lib/api/repositories/auth/auth.ts +0 -23
  310. package/src/shared/lib/api/repositories/auth/auth.types.ts +0 -22
  311. package/src/shared/lib/api/repositories/auth/index.ts +0 -1
  312. package/src/shared/lib/navigation/hooks/use-navigation-native-tabs.ts +0 -10
  313. package/src/shared/lib/navigation/hooks/use-navigation-options.ts +0 -123
  314. package/src/shared/lib/navigation/navigation-native-tabs.context.tsx +0 -5
  315. package/src/shared/lib/navigation/navigation-native-tabs.provider.tsx +0 -12
  316. package/src/shared/lib/theme/constants/borders.ts +0 -8
  317. package/src/shared/lib/theme/constants/weights.ts +0 -13
  318. /package/.claude/skills/{generate-api-model/references → api/references/model}/entities/index.ts +0 -0
  319. /package/.claude/skills/{generate-api-model/references → api/references/model}/entities/post/index.ts +0 -0
  320. /package/.claude/skills/{generate-api-model/references → api/references/model}/entities/post/post-comment.ts +0 -0
  321. /package/.claude/skills/{generate-api-model/references → api/references/model}/entities/post/post.ts +0 -0
  322. /package/.claude/skills/{generate-api-model/references → api/references/model}/entities/user/index.ts +0 -0
  323. /package/.claude/skills/{generate-api-model/references → api/references/model}/entities/user/user-settings.ts +0 -0
  324. /package/.claude/skills/{generate-api-model/references → api/references/model}/entities/user/user-verification.ts +0 -0
  325. /package/.claude/skills/{generate-api-model/references → api/references/model}/entities/user/user.ts +0 -0
  326. /package/.claude/skills/{generate-api-model/references → api/references/model}/resources/index.ts +0 -0
  327. /package/.claude/skills/{generate-api-model/references → api/references/model}/resources/post/index.ts +0 -0
  328. /package/.claude/skills/{generate-api-model/references → api/references/model}/resources/post/post-comment.ts +0 -0
  329. /package/.claude/skills/{generate-api-model/references → api/references/model}/resources/post/post.ts +0 -0
  330. /package/.claude/skills/{generate-api-model/references → api/references/model}/resources/user/index.ts +0 -0
  331. /package/.claude/skills/{generate-api-model/references → api/references/model}/resources/user/user-settings.ts +0 -0
  332. /package/.claude/skills/{generate-api-model/references → api/references/model}/resources/user/user-verification.ts +0 -0
  333. /package/.claude/skills/{generate-api-model/references → api/references/model}/resources/user/user.ts +0 -0
@@ -0,0 +1,2 @@
1
+ export { default as PayoutSpeedOption } from './payout-speed-option'
2
+ export type { PayoutSpeed, PayoutSpeedOptionProps } from './payout-speed-option.types'
@@ -0,0 +1,76 @@
1
+ import { useCallback } from 'react'
2
+ import { StyleSheet } from 'react-native'
3
+ import {
4
+ interpolate,
5
+ interpolateColor,
6
+ useAnimatedStyle,
7
+ useSharedValue,
8
+ withTiming,
9
+ } from 'react-native-reanimated'
10
+ import { useThemeMode } from '~shared/lib'
11
+
12
+ /**
13
+ * Стили опции выбора скорости выплаты: карточка с анимированной рамкой
14
+ * выделения и галочкой. Канонический язык выделения проекта.
15
+ */
16
+ const usePayoutSpeedOptionStyles = () => {
17
+ const { COLORS, SIZES, ANIMATIONS } = useThemeMode()
18
+ const selection = useSharedValue(0)
19
+
20
+ /** Радиус карточки опции: щедрое скругление уровня карточки (калибр — меню-капсула). */
21
+ const OPTION_BORDER_RADIUS = SIZES['5XL']
22
+
23
+ /** Радиус тайла иконки: радиус карточки минус её паддинг — вложенные углы концентричны. */
24
+ const ICON_TILE_BORDER_RADIUS = OPTION_BORDER_RADIUS - SIZES['2XL']
25
+
26
+ const handleActive = useCallback(() => {
27
+ selection.set(withTiming(1, ANIMATIONS.TIMING.BASE))
28
+ }, [selection, ANIMATIONS.TIMING.BASE])
29
+
30
+ const handleInactive = useCallback(() => {
31
+ selection.set(withTiming(0, ANIMATIONS.TIMING.BASE))
32
+ }, [selection, ANIMATIONS.TIMING.BASE])
33
+
34
+ const styles = StyleSheet.create({
35
+ option: {
36
+ flexDirection: 'row',
37
+ alignItems: 'center',
38
+ gap: SIZES['XL'],
39
+ padding: SIZES['2XL'],
40
+ borderWidth: SIZES['S'],
41
+ borderRadius: OPTION_BORDER_RADIUS,
42
+ backgroundColor: COLORS.FILL.SECONDARY,
43
+ },
44
+ iconTile: {
45
+ padding: SIZES['M'],
46
+ borderRadius: ICON_TILE_BORDER_RADIUS,
47
+ backgroundColor: COLORS.FILL.PRIMARY_LIGHT,
48
+ },
49
+ content: {
50
+ flex: 1,
51
+ gap: SIZES['3XS'],
52
+ },
53
+ })
54
+
55
+ const animatedStyles = {
56
+ option: useAnimatedStyle(() => {
57
+ return {
58
+ borderColor: interpolateColor(
59
+ selection.value,
60
+ [0, 1],
61
+ [COLORS.STROKE.TRANSPARENT, COLORS.STROKE.PRIMARY]
62
+ ),
63
+ }
64
+ }),
65
+ check: useAnimatedStyle(() => {
66
+ return {
67
+ opacity: selection.value,
68
+ transform: [{ scale: interpolate(selection.value, [0, 1], [0, 1]) }],
69
+ }
70
+ }),
71
+ }
72
+
73
+ return { styles, animatedStyles, handleActive, handleInactive }
74
+ }
75
+
76
+ export { usePayoutSpeedOptionStyles }
@@ -0,0 +1,58 @@
1
+ import { runCallback } from '@mediacubeco/base/utils'
2
+ import { useCallback, useEffect } from 'react'
3
+ import { View } from 'react-native'
4
+ import Animated from 'react-native-reanimated'
5
+ import { Icon, Text, Touch } from '~shared/ui'
6
+ import { usePayoutSpeedOptionStyles } from './payout-speed-option.styles'
7
+ import { type PayoutSpeedOptionProps } from './payout-speed-option.types'
8
+
9
+ /**
10
+ * Опция выбора скорости выплаты: карточка с иконкой, названием и пояснением,
11
+ * анимированная рамка выделения и галочка выбранного состояния. Хаптика —
12
+ * на выборе: это значимое действие, фиксирующее решение.
13
+ */
14
+ const PayoutSpeedOption = ({
15
+ title,
16
+ description,
17
+ icon,
18
+ payoutSpeed,
19
+ isSelected,
20
+ onPress,
21
+ }: PayoutSpeedOptionProps) => {
22
+ const { styles, animatedStyles, handleActive, handleInactive } = usePayoutSpeedOptionStyles()
23
+
24
+ const handlePress = useCallback(() => {
25
+ runCallback(onPress, payoutSpeed)
26
+ }, [onPress, payoutSpeed])
27
+
28
+ useEffect(() => {
29
+ if (isSelected) {
30
+ handleActive()
31
+ } else {
32
+ handleInactive()
33
+ }
34
+ }, [isSelected, handleActive, handleInactive])
35
+
36
+ return (
37
+ <Touch withHaptics={true} onPress={handlePress}>
38
+ <Animated.View style={[styles.option, animatedStyles.option]}>
39
+ <View style={styles.iconTile}>
40
+ <Icon name={icon} variant={'primary'} size={'xs'} />
41
+ </View>
42
+ <View style={styles.content}>
43
+ <Text type={'bodySB'}>{title}</Text>
44
+ {description ? (
45
+ <Text type={'description'} variant={'secondary'}>
46
+ {description}
47
+ </Text>
48
+ ) : null}
49
+ </View>
50
+ <Animated.View style={animatedStyles.check}>
51
+ <Icon name={'check'} variant={'primary'} />
52
+ </Animated.View>
53
+ </Animated.View>
54
+ </Touch>
55
+ )
56
+ }
57
+
58
+ export default PayoutSpeedOption
@@ -0,0 +1,22 @@
1
+ import { type IconName } from '~shared/ui'
2
+
3
+ /** Идентификатор скорости выплаты. */
4
+ type PayoutSpeed = 'instant' | 'daily' | 'weekly'
5
+
6
+ /** Пропсы опции выбора скорости выплаты. */
7
+ type PayoutSpeedOptionProps = {
8
+ /** Название опции («Мгновенно»). */
9
+ title: string
10
+ /** Пояснение на языке результата («Деньги сегодня к 18:00»), не описания. */
11
+ description?: string
12
+ /** Иконка опции. */
13
+ icon: IconName
14
+ /** Значение опции. */
15
+ payoutSpeed: PayoutSpeed
16
+ /** Выбрана ли опция. */
17
+ isSelected: boolean
18
+ /** Колбэк выбора опции. */
19
+ onPress?: (payoutSpeed: PayoutSpeed) => void
20
+ }
21
+
22
+ export type { PayoutSpeed, PayoutSpeedOptionProps }
@@ -0,0 +1,2 @@
1
+ export { default as Post } from './post'
2
+ export type { PostProps } from './post.types'
@@ -0,0 +1,19 @@
1
+ import { StyleSheet } from 'react-native'
2
+ import { useThemeMode } from '../../../lib'
3
+
4
+ const usePostStyles = () => {
5
+ const { SIZES, COLORS } = useThemeMode()
6
+
7
+ const styles = StyleSheet.create({
8
+ container: {
9
+ gap: SIZES['S'],
10
+ padding: SIZES['2XL'],
11
+ borderRadius: SIZES['2XL'],
12
+ backgroundColor: COLORS.FILL.BASE,
13
+ },
14
+ })
15
+
16
+ return { styles }
17
+ }
18
+
19
+ export { usePostStyles }
@@ -0,0 +1,21 @@
1
+ import { View } from 'react-native'
2
+ import { Text } from '../../atoms'
3
+ import { usePostStyles } from './post.styles'
4
+ import { type PostProps } from './post.types'
5
+
6
+ const Post = ({ title, body, style }: PostProps) => {
7
+ const { styles } = usePostStyles()
8
+
9
+ return (
10
+ <View style={[styles.container, style]}>
11
+ <Text variant={'bodySB'}>{title}</Text>
12
+ {body ? (
13
+ <Text variant={'description'} color={'NEUTRAL'}>
14
+ {body}
15
+ </Text>
16
+ ) : null}
17
+ </View>
18
+ )
19
+ }
20
+
21
+ export default Post
@@ -0,0 +1,9 @@
1
+ import { type StyleProp, type ViewStyle } from 'react-native'
2
+
3
+ type PostProps = {
4
+ title: string
5
+ body?: string
6
+ style?: StyleProp<ViewStyle>
7
+ }
8
+
9
+ export type { PostProps }
@@ -0,0 +1,2 @@
1
+ export { default as Wrap } from './wrap'
2
+ export type { WrapProps } from './wrap.types'
@@ -0,0 +1,15 @@
1
+ import { StyleSheet } from 'react-native'
2
+
3
+ const useWrapStyles = () => {
4
+ const styles = StyleSheet.create({
5
+ outer: {},
6
+ inner: {
7
+ flex: 1,
8
+ overflow: 'hidden',
9
+ },
10
+ })
11
+
12
+ return { styles }
13
+ }
14
+
15
+ export { useWrapStyles }
@@ -0,0 +1,31 @@
1
+ import { ScrollView, View } from 'react-native'
2
+ import { useWrapStyles } from './wrap.styles'
3
+ import { type WrapProps } from './wrap.types'
4
+
5
+ const Wrap = ({
6
+ /* @ts-ignore */
7
+ style,
8
+ ref,
9
+ children,
10
+ outerStyle,
11
+ innerStyle,
12
+ horizontal,
13
+ decelerationRate = 'fast',
14
+ ...props
15
+ }: WrapProps) => {
16
+ const { styles } = useWrapStyles()
17
+
18
+ return (
19
+ <ScrollView
20
+ ref={ref}
21
+ style={[styles.outer, outerStyle]}
22
+ horizontal={horizontal}
23
+ decelerationRate={decelerationRate}
24
+ {...props}
25
+ >
26
+ <View style={[styles.inner, innerStyle]}>{children}</View>
27
+ </ScrollView>
28
+ )
29
+ }
30
+
31
+ export default Wrap
@@ -0,0 +1,10 @@
1
+ import { type Ref } from 'react'
2
+ import { type ScrollView, type ScrollViewProps, type ViewProps } from 'react-native'
3
+
4
+ type WrapProps = Omit<ScrollViewProps, 'style'> & {
5
+ ref?: Ref<ScrollView>
6
+ outerStyle?: ViewProps['style']
7
+ innerStyle?: ViewProps['style']
8
+ }
9
+
10
+ export type { WrapProps }
@@ -0,0 +1,37 @@
1
+ import { useCallback, useMemo, useState } from 'react'
2
+ import { useApiPosts } from '~shared/lib'
3
+
4
+ /** Приватный помощник: строка поиска и её обработчик. */
5
+ const useSearch = () => {
6
+ const [search, setSearch] = useState('')
7
+
8
+ const handleSearch = useCallback((value: string) => {
9
+ setSearch(value)
10
+ }, [])
11
+
12
+ return { search, handleSearch }
13
+ }
14
+
15
+ /** Список постов с фильтрацией по поиску и обновлением по pull-to-refresh. */
16
+ const usePosts = () => {
17
+ const { search, handleSearch } = useSearch()
18
+ const { data, isPending, refetch } = useApiPosts()
19
+
20
+ const postList = useMemo(() => {
21
+ return data.filter((post) => post.title.includes(search))
22
+ }, [data, search])
23
+
24
+ const handleRefresh = useCallback(async () => {
25
+ await refetch()
26
+ }, [refetch])
27
+
28
+ return {
29
+ search,
30
+ isPending,
31
+ postList,
32
+ handleRefresh,
33
+ handleSearch,
34
+ }
35
+ }
36
+
37
+ export { usePosts }
@@ -0,0 +1,4 @@
1
+ export * from './post-details'
2
+ export * from './post-guide'
3
+ export * from './post-list'
4
+ export * from './post-share'
@@ -0,0 +1 @@
1
+ export { default as PostDetails } from './post-details'
@@ -0,0 +1,13 @@
1
+ import { PostContent } from '~widgets/post-content'
2
+ import { ScreenContainerScroll } from '~shared/ui'
3
+
4
+ /** Экран деталей поста: вся вёрстка живёт в виджете, странице остаётся композиция. */
5
+ const PostDetails = () => {
6
+ return (
7
+ <ScreenContainerScroll>
8
+ <PostContent />
9
+ </ScreenContainerScroll>
10
+ )
11
+ }
12
+
13
+ export default PostDetails
@@ -0,0 +1 @@
1
+ export { default as PostGuide } from './post-guide'
@@ -0,0 +1,17 @@
1
+ import { useNavigationParams } from '~shared/lib'
2
+ import { WebContainer } from '~shared/ui'
3
+
4
+ /** Параметры веб-гайда: ссылка и заголовок страницы. */
5
+ type PostGuideParams = {
6
+ uri: string
7
+ title: string
8
+ }
9
+
10
+ /** Веб-экран гайда по постам: страница в модальном WebView. */
11
+ const PostGuide = () => {
12
+ const { uri, title } = useNavigationParams<PostGuideParams>()
13
+
14
+ return <WebContainer uri={uri} title={title} />
15
+ }
16
+
17
+ export default PostGuide
@@ -0,0 +1 @@
1
+ export { default as PostList } from './post-list'
@@ -0,0 +1,17 @@
1
+ import { StyleSheet } from 'react-native'
2
+ import { useThemeMode } from '~shared/lib'
3
+
4
+ /** Стили экрана списка постов. */
5
+ const usePostListStyles = () => {
6
+ const { SIZES } = useThemeMode()
7
+
8
+ const styles = StyleSheet.create({
9
+ inner: {
10
+ gap: SIZES['L'],
11
+ },
12
+ })
13
+
14
+ return { styles }
15
+ }
16
+
17
+ export { usePostListStyles }
@@ -0,0 +1,25 @@
1
+ import { View } from 'react-native'
2
+ import { usePosts } from '~entities/post'
3
+ import { ScreenContainerScroll, Text } from '~shared/ui'
4
+ import { usePostListStyles } from './post-list.styles'
5
+
6
+ /** Экран списка постов. */
7
+ const PostList = () => {
8
+ const { styles } = usePostListStyles()
9
+
10
+ const { postList, handleRefresh } = usePosts()
11
+
12
+ return (
13
+ <ScreenContainerScroll onRefresh={handleRefresh}>
14
+ <View style={styles.inner}>
15
+ {postList.map((post) => (
16
+ <Text key={post.id} variant={'primary'}>
17
+ {post.title}
18
+ </Text>
19
+ ))}
20
+ </View>
21
+ </ScreenContainerScroll>
22
+ )
23
+ }
24
+
25
+ export default PostList
@@ -0,0 +1 @@
1
+ export { default as PostShare } from './post-share'
@@ -0,0 +1,13 @@
1
+ import { PostShareForm } from '~widgets/post-share-form'
2
+ import { ModalContainerScroll } from '~shared/ui'
3
+
4
+ /** Модалка «Поделиться постом»: обычная страница домена, отличается только корнем ModalContainer*. */
5
+ const PostShare = () => {
6
+ return (
7
+ <ModalContainerScroll>
8
+ <PostShareForm />
9
+ </ModalContainerScroll>
10
+ )
11
+ }
12
+
13
+ export default PostShare
@@ -0,0 +1,18 @@
1
+ import { Stack } from 'expo-router'
2
+ import { useNavigationStackOptions } from '~shared/lib'
3
+
4
+ /** Стек-навигатор домена постов: экраны, шит-модалка и веб-экран в одном layout. */
5
+ const Layout = () => {
6
+ const { stackOptions, screenOptions, sheetOptions, webOptions } = useNavigationStackOptions()
7
+
8
+ return (
9
+ <Stack screenOptions={stackOptions}>
10
+ <Stack.Screen name={'index'} options={screenOptions} />
11
+ <Stack.Screen name={'details'} options={screenOptions} />
12
+ <Stack.Screen name={'share'} options={sheetOptions} />
13
+ <Stack.Screen name={'guide'} options={webOptions} />
14
+ </Stack>
15
+ )
16
+ }
17
+
18
+ export default Layout
@@ -0,0 +1,8 @@
1
+ import { PostDetails } from '~pages/post'
2
+
3
+ /** Роут деталей поста. */
4
+ const Page = () => {
5
+ return <PostDetails />
6
+ }
7
+
8
+ export default Page
@@ -0,0 +1,8 @@
1
+ import { PostGuide } from '~pages/post'
2
+
3
+ /** Роут веб-гайда по постам. */
4
+ const Page = () => {
5
+ return <PostGuide />
6
+ }
7
+
8
+ export default Page
@@ -0,0 +1,8 @@
1
+ import { PostList } from '~pages/post'
2
+
3
+ /** Роут списка постов. */
4
+ const Page = () => {
5
+ return <PostList />
6
+ }
7
+
8
+ export default Page
@@ -0,0 +1,8 @@
1
+ import { PostShare } from '~pages/post'
2
+
3
+ /** Роут модалки «Поделиться постом» в домене постов. */
4
+ const Page = () => {
5
+ return <PostShare />
6
+ }
7
+
8
+ export default Page
@@ -0,0 +1,8 @@
1
+ import { PostDetails } from '~pages/post'
2
+
3
+ /** Роут таба деталей поста. */
4
+ const Page = () => {
5
+ return <PostDetails />
6
+ }
7
+
8
+ export default Page
@@ -0,0 +1,8 @@
1
+ import { PostList } from '~pages/post'
2
+
3
+ /** Роут таба списка постов. */
4
+ const Page = () => {
5
+ return <PostList />
6
+ }
7
+
8
+ export default Page
@@ -0,0 +1,50 @@
1
+ import { isGlassEffectAPIAvailable } from 'expo-glass-effect'
2
+ import { Tabs } from 'expo-router'
3
+ import { NativeTabs } from 'expo-router/build/native-tabs'
4
+ import {
5
+ NavigationTabsNativeProvider,
6
+ NavigationTabsProvider,
7
+ useLocalizationText,
8
+ useNavigationTabBarNativeOptions,
9
+ useNavigationTabBarOptions,
10
+ } from '~shared/lib'
11
+ import { BarTabNavigation } from '~shared/ui'
12
+
13
+ /** Таб-навигатор: нативные табы на новых ОС, кастомный таб-бар как фолбэк. */
14
+ const Layout = () => {
15
+ const t = useLocalizationText()
16
+ const { createTabBarOptions } = useNavigationTabBarOptions(BarTabNavigation)
17
+ const { createTabBarNativeOptions } = useNavigationTabBarNativeOptions()
18
+
19
+ if (isGlassEffectAPIAvailable()) {
20
+ const tabBarNativeOptions = createTabBarNativeOptions()
21
+
22
+ return (
23
+ <NavigationTabsNativeProvider>
24
+ <NativeTabs {...tabBarNativeOptions}>
25
+ <NativeTabs.Trigger name={'(post-list)'}>
26
+ <NativeTabs.Trigger.Label>{t('post.list.title')}</NativeTabs.Trigger.Label>
27
+ <NativeTabs.Trigger.Icon sf={'list.bullet'} md={'list'} />
28
+ </NativeTabs.Trigger>
29
+ <NativeTabs.Trigger name={'(post-details)'}>
30
+ <NativeTabs.Trigger.Label>{t('post.details.title')}</NativeTabs.Trigger.Label>
31
+ <NativeTabs.Trigger.Icon sf={'doc.text'} md={'description'} />
32
+ </NativeTabs.Trigger>
33
+ </NativeTabs>
34
+ </NavigationTabsNativeProvider>
35
+ )
36
+ } else {
37
+ const tabBarOptions = createTabBarOptions()
38
+
39
+ return (
40
+ <NavigationTabsProvider>
41
+ <Tabs {...tabBarOptions}>
42
+ <Tabs.Screen name={'(post-list)'} options={{ title: t('post.list.title') }} />
43
+ <Tabs.Screen name={'(post-details)'} options={{ title: t('post.details.title') }} />
44
+ </Tabs>
45
+ </NavigationTabsProvider>
46
+ )
47
+ }
48
+ }
49
+
50
+ export default Layout
@@ -0,0 +1,20 @@
1
+ import { Stack } from 'expo-router'
2
+ import { useNavigationStackOptions } from '~shared/lib'
3
+
4
+ /** Корневой стек приложения: гард авторизации и глобально доступные роуты. */
5
+ const App = () => {
6
+ const { stackOptions, sheetOptions, webOptions } = useNavigationStackOptions()
7
+ const didAuth = true
8
+
9
+ return (
10
+ <Stack screenOptions={stackOptions}>
11
+ <Stack.Protected guard={didAuth}>
12
+ <Stack.Screen name={'(tabs)'} />
13
+ <Stack.Screen name={'share'} options={sheetOptions} />
14
+ <Stack.Screen name={'guide'} options={webOptions} />
15
+ </Stack.Protected>
16
+ </Stack>
17
+ )
18
+ }
19
+
20
+ export default App
@@ -0,0 +1,8 @@
1
+ import { PostGuide } from '~pages/post'
2
+
3
+ /** Корневой роут веб-гайда: открывается поверх любого экрана (пуш, диплинк). */
4
+ const Page = () => {
5
+ return <PostGuide />
6
+ }
7
+
8
+ export default Page
@@ -0,0 +1,8 @@
1
+ import { PostShare } from '~pages/post'
2
+
3
+ /** Корневой роут модалки «Поделиться постом»: открывается поверх любого экрана (пуш, диплинк). */
4
+ const Page = () => {
5
+ return <PostShare />
6
+ }
7
+
8
+ export default Page