@armoyu/ui 1.1.1 → 1.1.2

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 (765) hide show
  1. package/package.json +1 -1
  2. package/dist/app/Providers.d.ts +0 -6
  3. package/dist/app/Providers.d.ts.map +0 -1
  4. package/dist/app/Providers.js +0 -37
  5. package/dist/app/Providers.js.map +0 -1
  6. package/dist/app/api/proxy/[...path]/route.d.ts +0 -23
  7. package/dist/app/api/proxy/[...path]/route.d.ts.map +0 -1
  8. package/dist/app/api/proxy/[...path]/route.js +0 -133
  9. package/dist/app/api/proxy/[...path]/route.js.map +0 -1
  10. package/dist/app/gruplar/[groupId]/page.d.ts +0 -2
  11. package/dist/app/gruplar/[groupId]/page.d.ts.map +0 -1
  12. package/dist/app/gruplar/[groupId]/page.js +0 -10
  13. package/dist/app/gruplar/[groupId]/page.js.map +0 -1
  14. package/dist/app/layout.d.ts +0 -8
  15. package/dist/app/layout.d.ts.map +0 -1
  16. package/dist/app/layout.js +0 -29
  17. package/dist/app/layout.js.map +0 -1
  18. package/dist/app/not-found.d.ts +0 -2
  19. package/dist/app/not-found.d.ts.map +0 -1
  20. package/dist/app/not-found.js +0 -7
  21. package/dist/app/not-found.js.map +0 -1
  22. package/dist/app/page.d.ts +0 -2
  23. package/dist/app/page.d.ts.map +0 -1
  24. package/dist/app/page.js +0 -39
  25. package/dist/app/page.js.map +0 -1
  26. package/dist/components/Button.d.ts +0 -8
  27. package/dist/components/Button.d.ts.map +0 -1
  28. package/dist/components/Button.js +0 -16
  29. package/dist/components/Button.js.map +0 -1
  30. package/dist/components/GenderStatsBar.d.ts +0 -6
  31. package/dist/components/GenderStatsBar.d.ts.map +0 -1
  32. package/dist/components/GenderStatsBar.js +0 -8
  33. package/dist/components/GenderStatsBar.js.map +0 -1
  34. package/dist/components/RollingNumber.d.ts +0 -7
  35. package/dist/components/RollingNumber.d.ts.map +0 -1
  36. package/dist/components/RollingNumber.js +0 -24
  37. package/dist/components/RollingNumber.js.map +0 -1
  38. package/dist/components/Slider.d.ts +0 -11
  39. package/dist/components/Slider.d.ts.map +0 -1
  40. package/dist/components/Slider.js +0 -36
  41. package/dist/components/Slider.js.map +0 -1
  42. package/dist/components/StatsGrid.d.ts +0 -6
  43. package/dist/components/StatsGrid.d.ts.map +0 -1
  44. package/dist/components/StatsGrid.js +0 -14
  45. package/dist/components/StatsGrid.js.map +0 -1
  46. package/dist/components/ViewModeToggle.d.ts +0 -8
  47. package/dist/components/ViewModeToggle.d.ts.map +0 -1
  48. package/dist/components/ViewModeToggle.js +0 -10
  49. package/dist/components/ViewModeToggle.js.map +0 -1
  50. package/dist/components/modules/auth/Dashboard.d.ts +0 -2
  51. package/dist/components/modules/auth/Dashboard.d.ts.map +0 -1
  52. package/dist/components/modules/auth/Dashboard.js +0 -251
  53. package/dist/components/modules/auth/Dashboard.js.map +0 -1
  54. package/dist/components/modules/auth/MediaLightbox.d.ts +0 -14
  55. package/dist/components/modules/auth/MediaLightbox.d.ts.map +0 -1
  56. package/dist/components/modules/auth/MediaLightbox.js +0 -47
  57. package/dist/components/modules/auth/MediaLightbox.js.map +0 -1
  58. package/dist/components/modules/auth/PostCard.d.ts +0 -26
  59. package/dist/components/modules/auth/PostCard.d.ts.map +0 -1
  60. package/dist/components/modules/auth/PostCard.js +0 -116
  61. package/dist/components/modules/auth/PostCard.js.map +0 -1
  62. package/dist/components/modules/auth/PostInteractionsModal.d.ts +0 -12
  63. package/dist/components/modules/auth/PostInteractionsModal.d.ts.map +0 -1
  64. package/dist/components/modules/auth/PostInteractionsModal.js +0 -13
  65. package/dist/components/modules/auth/PostInteractionsModal.js.map +0 -1
  66. package/dist/components/modules/auth/RepostModal.d.ts +0 -22
  67. package/dist/components/modules/auth/RepostModal.d.ts.map +0 -1
  68. package/dist/components/modules/auth/RepostModal.js +0 -76
  69. package/dist/components/modules/auth/RepostModal.js.map +0 -1
  70. package/dist/components/modules/auth/SidebarLeft.d.ts +0 -2
  71. package/dist/components/modules/auth/SidebarLeft.d.ts.map +0 -1
  72. package/dist/components/modules/auth/SidebarLeft.js +0 -9
  73. package/dist/components/modules/auth/SidebarLeft.js.map +0 -1
  74. package/dist/components/modules/auth/Stories.d.ts +0 -2
  75. package/dist/components/modules/auth/Stories.d.ts.map +0 -1
  76. package/dist/components/modules/auth/Stories.js +0 -16
  77. package/dist/components/modules/auth/Stories.js.map +0 -1
  78. package/dist/components/modules/auth/StoryViewer.d.ts +0 -10
  79. package/dist/components/modules/auth/StoryViewer.d.ts.map +0 -1
  80. package/dist/components/modules/auth/StoryViewer.js +0 -48
  81. package/dist/components/modules/auth/StoryViewer.js.map +0 -1
  82. package/dist/components/modules/auth/widgets/EconomyWidget.d.ts +0 -2
  83. package/dist/components/modules/auth/widgets/EconomyWidget.d.ts.map +0 -1
  84. package/dist/components/modules/auth/widgets/EconomyWidget.js +0 -38
  85. package/dist/components/modules/auth/widgets/EconomyWidget.js.map +0 -1
  86. package/dist/components/modules/auth/widgets/LeagueWidget.d.ts +0 -2
  87. package/dist/components/modules/auth/widgets/LeagueWidget.d.ts.map +0 -1
  88. package/dist/components/modules/auth/widgets/LeagueWidget.js +0 -36
  89. package/dist/components/modules/auth/widgets/LeagueWidget.js.map +0 -1
  90. package/dist/components/modules/auth/widgets/MinecraftWidget.d.ts +0 -2
  91. package/dist/components/modules/auth/widgets/MinecraftWidget.d.ts.map +0 -1
  92. package/dist/components/modules/auth/widgets/MinecraftWidget.js +0 -36
  93. package/dist/components/modules/auth/widgets/MinecraftWidget.js.map +0 -1
  94. package/dist/components/modules/auth/widgets/RankingWidget.d.ts +0 -5
  95. package/dist/components/modules/auth/widgets/RankingWidget.d.ts.map +0 -1
  96. package/dist/components/modules/auth/widgets/RankingWidget.js +0 -79
  97. package/dist/components/modules/auth/widgets/RankingWidget.js.map +0 -1
  98. package/dist/components/modules/chat/ChatContainer.d.ts +0 -2
  99. package/dist/components/modules/chat/ChatContainer.d.ts.map +0 -1
  100. package/dist/components/modules/chat/ChatContainer.js +0 -199
  101. package/dist/components/modules/chat/ChatContainer.js.map +0 -1
  102. package/dist/components/modules/chat/ChatInput.d.ts +0 -5
  103. package/dist/components/modules/chat/ChatInput.d.ts.map +0 -1
  104. package/dist/components/modules/chat/ChatInput.js +0 -31
  105. package/dist/components/modules/chat/ChatInput.js.map +0 -1
  106. package/dist/components/modules/chat/ChatLayout.d.ts +0 -2
  107. package/dist/components/modules/chat/ChatLayout.d.ts.map +0 -1
  108. package/dist/components/modules/chat/ChatLayout.js +0 -198
  109. package/dist/components/modules/chat/ChatLayout.js.map +0 -1
  110. package/dist/components/modules/chat/ChatList.d.ts +0 -7
  111. package/dist/components/modules/chat/ChatList.d.ts.map +0 -1
  112. package/dist/components/modules/chat/ChatList.js +0 -53
  113. package/dist/components/modules/chat/ChatList.js.map +0 -1
  114. package/dist/components/modules/chat/ChatMessage.d.ts +0 -12
  115. package/dist/components/modules/chat/ChatMessage.d.ts.map +0 -1
  116. package/dist/components/modules/chat/ChatMessage.js +0 -7
  117. package/dist/components/modules/chat/ChatMessage.js.map +0 -1
  118. package/dist/components/modules/chat/ChatNotes.d.ts +0 -2
  119. package/dist/components/modules/chat/ChatNotes.d.ts.map +0 -1
  120. package/dist/components/modules/chat/ChatNotes.js +0 -12
  121. package/dist/components/modules/chat/ChatNotes.js.map +0 -1
  122. package/dist/components/modules/chat/widgets/ChatInput.d.ts +0 -5
  123. package/dist/components/modules/chat/widgets/ChatInput.d.ts.map +0 -1
  124. package/dist/components/modules/chat/widgets/ChatInput.js +0 -31
  125. package/dist/components/modules/chat/widgets/ChatInput.js.map +0 -1
  126. package/dist/components/modules/chat/widgets/ChatList.d.ts +0 -7
  127. package/dist/components/modules/chat/widgets/ChatList.d.ts.map +0 -1
  128. package/dist/components/modules/chat/widgets/ChatList.js +0 -53
  129. package/dist/components/modules/chat/widgets/ChatList.js.map +0 -1
  130. package/dist/components/modules/chat/widgets/ChatMessage.d.ts +0 -12
  131. package/dist/components/modules/chat/widgets/ChatMessage.d.ts.map +0 -1
  132. package/dist/components/modules/chat/widgets/ChatMessage.js +0 -7
  133. package/dist/components/modules/chat/widgets/ChatMessage.js.map +0 -1
  134. package/dist/components/modules/chat/widgets/ChatNotes.d.ts +0 -2
  135. package/dist/components/modules/chat/widgets/ChatNotes.d.ts.map +0 -1
  136. package/dist/components/modules/chat/widgets/ChatNotes.js +0 -12
  137. package/dist/components/modules/chat/widgets/ChatNotes.js.map +0 -1
  138. package/dist/components/modules/community/CommunityLayout.d.ts +0 -7
  139. package/dist/components/modules/community/CommunityLayout.d.ts.map +0 -1
  140. package/dist/components/modules/community/CommunityLayout.js +0 -137
  141. package/dist/components/modules/community/CommunityLayout.js.map +0 -1
  142. package/dist/components/modules/community/GroupHeader.d.ts +0 -11
  143. package/dist/components/modules/community/GroupHeader.d.ts.map +0 -1
  144. package/dist/components/modules/community/GroupHeader.js +0 -18
  145. package/dist/components/modules/community/GroupHeader.js.map +0 -1
  146. package/dist/components/modules/community/GroupMenu.d.ts +0 -10
  147. package/dist/components/modules/community/GroupMenu.d.ts.map +0 -1
  148. package/dist/components/modules/community/GroupMenu.js +0 -17
  149. package/dist/components/modules/community/GroupMenu.js.map +0 -1
  150. package/dist/components/modules/community/GroupProfileContent.d.ts +0 -7
  151. package/dist/components/modules/community/GroupProfileContent.d.ts.map +0 -1
  152. package/dist/components/modules/community/GroupProfileContent.js +0 -127
  153. package/dist/components/modules/community/GroupProfileContent.js.map +0 -1
  154. package/dist/components/modules/community/SchoolCard.d.ts +0 -7
  155. package/dist/components/modules/community/SchoolCard.d.ts.map +0 -1
  156. package/dist/components/modules/community/SchoolCard.js +0 -8
  157. package/dist/components/modules/community/SchoolCard.js.map +0 -1
  158. package/dist/components/modules/community/SurveyCard.d.ts +0 -7
  159. package/dist/components/modules/community/SurveyCard.d.ts.map +0 -1
  160. package/dist/components/modules/community/SurveyCard.js +0 -38
  161. package/dist/components/modules/community/SurveyCard.js.map +0 -1
  162. package/dist/components/modules/community/widgets/GroupAboutCard.d.ts +0 -6
  163. package/dist/components/modules/community/widgets/GroupAboutCard.d.ts.map +0 -1
  164. package/dist/components/modules/community/widgets/GroupAboutCard.js +0 -7
  165. package/dist/components/modules/community/widgets/GroupAboutCard.js.map +0 -1
  166. package/dist/components/modules/community/widgets/GroupEventsList.d.ts +0 -8
  167. package/dist/components/modules/community/widgets/GroupEventsList.d.ts.map +0 -1
  168. package/dist/components/modules/community/widgets/GroupEventsList.js +0 -33
  169. package/dist/components/modules/community/widgets/GroupEventsList.js.map +0 -1
  170. package/dist/components/modules/community/widgets/GroupFeedSection.d.ts +0 -9
  171. package/dist/components/modules/community/widgets/GroupFeedSection.d.ts.map +0 -1
  172. package/dist/components/modules/community/widgets/GroupFeedSection.js +0 -8
  173. package/dist/components/modules/community/widgets/GroupFeedSection.js.map +0 -1
  174. package/dist/components/modules/community/widgets/GroupHeader.d.ts +0 -11
  175. package/dist/components/modules/community/widgets/GroupHeader.d.ts.map +0 -1
  176. package/dist/components/modules/community/widgets/GroupHeader.js +0 -18
  177. package/dist/components/modules/community/widgets/GroupHeader.js.map +0 -1
  178. package/dist/components/modules/community/widgets/GroupMenu.d.ts +0 -10
  179. package/dist/components/modules/community/widgets/GroupMenu.d.ts.map +0 -1
  180. package/dist/components/modules/community/widgets/GroupMenu.js +0 -17
  181. package/dist/components/modules/community/widgets/GroupMenu.js.map +0 -1
  182. package/dist/components/modules/community/widgets/GroupPermissions.d.ts +0 -6
  183. package/dist/components/modules/community/widgets/GroupPermissions.d.ts.map +0 -1
  184. package/dist/components/modules/community/widgets/GroupPermissions.js +0 -7
  185. package/dist/components/modules/community/widgets/GroupPermissions.js.map +0 -1
  186. package/dist/components/modules/community/widgets/GroupStatsGrid.d.ts +0 -11
  187. package/dist/components/modules/community/widgets/GroupStatsGrid.d.ts.map +0 -1
  188. package/dist/components/modules/community/widgets/GroupStatsGrid.js +0 -13
  189. package/dist/components/modules/community/widgets/GroupStatsGrid.js.map +0 -1
  190. package/dist/components/modules/community/widgets/GroupTopMembers.d.ts +0 -7
  191. package/dist/components/modules/community/widgets/GroupTopMembers.d.ts.map +0 -1
  192. package/dist/components/modules/community/widgets/GroupTopMembers.js +0 -8
  193. package/dist/components/modules/community/widgets/GroupTopMembers.js.map +0 -1
  194. package/dist/components/modules/community/widgets/SchoolCard.d.ts +0 -7
  195. package/dist/components/modules/community/widgets/SchoolCard.d.ts.map +0 -1
  196. package/dist/components/modules/community/widgets/SchoolCard.js +0 -8
  197. package/dist/components/modules/community/widgets/SchoolCard.js.map +0 -1
  198. package/dist/components/modules/community/widgets/SurveyCard.d.ts +0 -8
  199. package/dist/components/modules/community/widgets/SurveyCard.d.ts.map +0 -1
  200. package/dist/components/modules/community/widgets/SurveyCard.js +0 -25
  201. package/dist/components/modules/community/widgets/SurveyCard.js.map +0 -1
  202. package/dist/components/modules/forum/ForumBoard.d.ts +0 -17
  203. package/dist/components/modules/forum/ForumBoard.d.ts.map +0 -1
  204. package/dist/components/modules/forum/ForumBoard.js +0 -7
  205. package/dist/components/modules/forum/ForumBoard.js.map +0 -1
  206. package/dist/components/modules/forum/ForumPost.d.ts +0 -14
  207. package/dist/components/modules/forum/ForumPost.d.ts.map +0 -1
  208. package/dist/components/modules/forum/ForumPost.js +0 -6
  209. package/dist/components/modules/forum/ForumPost.js.map +0 -1
  210. package/dist/components/modules/forum/NewTopicModal.d.ts +0 -8
  211. package/dist/components/modules/forum/NewTopicModal.d.ts.map +0 -1
  212. package/dist/components/modules/forum/NewTopicModal.js +0 -27
  213. package/dist/components/modules/forum/NewTopicModal.js.map +0 -1
  214. package/dist/components/modules/forum/TopicItem.d.ts +0 -16
  215. package/dist/components/modules/forum/TopicItem.d.ts.map +0 -1
  216. package/dist/components/modules/forum/TopicItem.js +0 -7
  217. package/dist/components/modules/forum/TopicItem.js.map +0 -1
  218. package/dist/components/modules/forum/widgets/ForumBoard.d.ts +0 -17
  219. package/dist/components/modules/forum/widgets/ForumBoard.d.ts.map +0 -1
  220. package/dist/components/modules/forum/widgets/ForumBoard.js +0 -7
  221. package/dist/components/modules/forum/widgets/ForumBoard.js.map +0 -1
  222. package/dist/components/modules/forum/widgets/ForumCategoryList.d.ts +0 -6
  223. package/dist/components/modules/forum/widgets/ForumCategoryList.d.ts.map +0 -1
  224. package/dist/components/modules/forum/widgets/ForumCategoryList.js +0 -7
  225. package/dist/components/modules/forum/widgets/ForumCategoryList.js.map +0 -1
  226. package/dist/components/modules/forum/widgets/ForumHeaderWidget.d.ts +0 -6
  227. package/dist/components/modules/forum/widgets/ForumHeaderWidget.d.ts.map +0 -1
  228. package/dist/components/modules/forum/widgets/ForumHeaderWidget.js +0 -6
  229. package/dist/components/modules/forum/widgets/ForumHeaderWidget.js.map +0 -1
  230. package/dist/components/modules/forum/widgets/ForumPost.d.ts +0 -14
  231. package/dist/components/modules/forum/widgets/ForumPost.d.ts.map +0 -1
  232. package/dist/components/modules/forum/widgets/ForumPost.js +0 -6
  233. package/dist/components/modules/forum/widgets/ForumPost.js.map +0 -1
  234. package/dist/components/modules/forum/widgets/ForumSidebar.d.ts +0 -2
  235. package/dist/components/modules/forum/widgets/ForumSidebar.d.ts.map +0 -1
  236. package/dist/components/modules/forum/widgets/ForumSidebar.js +0 -6
  237. package/dist/components/modules/forum/widgets/ForumSidebar.js.map +0 -1
  238. package/dist/components/modules/forum/widgets/NewTopicModal.d.ts +0 -8
  239. package/dist/components/modules/forum/widgets/NewTopicModal.d.ts.map +0 -1
  240. package/dist/components/modules/forum/widgets/NewTopicModal.js +0 -27
  241. package/dist/components/modules/forum/widgets/NewTopicModal.js.map +0 -1
  242. package/dist/components/modules/forum/widgets/TopicItem.d.ts +0 -16
  243. package/dist/components/modules/forum/widgets/TopicItem.d.ts.map +0 -1
  244. package/dist/components/modules/forum/widgets/TopicItem.js +0 -7
  245. package/dist/components/modules/forum/widgets/TopicItem.js.map +0 -1
  246. package/dist/components/modules/galleries/GalleryCard.d.ts +0 -10
  247. package/dist/components/modules/galleries/GalleryCard.d.ts.map +0 -1
  248. package/dist/components/modules/galleries/GalleryCard.js +0 -6
  249. package/dist/components/modules/galleries/GalleryCard.js.map +0 -1
  250. package/dist/components/modules/galleries/widgets/GalleryCard.d.ts +0 -10
  251. package/dist/components/modules/galleries/widgets/GalleryCard.d.ts.map +0 -1
  252. package/dist/components/modules/galleries/widgets/GalleryCard.js +0 -6
  253. package/dist/components/modules/galleries/widgets/GalleryCard.js.map +0 -1
  254. package/dist/components/modules/galleries/widgets/GalleryFilterBar.d.ts +0 -8
  255. package/dist/components/modules/galleries/widgets/GalleryFilterBar.d.ts.map +0 -1
  256. package/dist/components/modules/galleries/widgets/GalleryFilterBar.js +0 -6
  257. package/dist/components/modules/galleries/widgets/GalleryFilterBar.js.map +0 -1
  258. package/dist/components/modules/galleries/widgets/GalleryHeaderWidget.d.ts +0 -2
  259. package/dist/components/modules/galleries/widgets/GalleryHeaderWidget.d.ts.map +0 -1
  260. package/dist/components/modules/galleries/widgets/GalleryHeaderWidget.js +0 -6
  261. package/dist/components/modules/galleries/widgets/GalleryHeaderWidget.js.map +0 -1
  262. package/dist/components/modules/galleries/widgets/GalleryMasonryGrid.d.ts +0 -7
  263. package/dist/components/modules/galleries/widgets/GalleryMasonryGrid.d.ts.map +0 -1
  264. package/dist/components/modules/galleries/widgets/GalleryMasonryGrid.js +0 -6
  265. package/dist/components/modules/galleries/widgets/GalleryMasonryGrid.js.map +0 -1
  266. package/dist/components/modules/giveaways/GiveawayCard.d.ts +0 -10
  267. package/dist/components/modules/giveaways/GiveawayCard.d.ts.map +0 -1
  268. package/dist/components/modules/giveaways/GiveawayCard.js +0 -7
  269. package/dist/components/modules/giveaways/GiveawayCard.js.map +0 -1
  270. package/dist/components/modules/giveaways/widgets/GiveawayCard.d.ts +0 -10
  271. package/dist/components/modules/giveaways/widgets/GiveawayCard.d.ts.map +0 -1
  272. package/dist/components/modules/giveaways/widgets/GiveawayCard.js +0 -7
  273. package/dist/components/modules/giveaways/widgets/GiveawayCard.js.map +0 -1
  274. package/dist/components/modules/groups/ApplicationModal.d.ts +0 -8
  275. package/dist/components/modules/groups/ApplicationModal.d.ts.map +0 -1
  276. package/dist/components/modules/groups/ApplicationModal.js +0 -28
  277. package/dist/components/modules/groups/ApplicationModal.js.map +0 -1
  278. package/dist/components/modules/groups/GroupCard.d.ts +0 -14
  279. package/dist/components/modules/groups/GroupCard.d.ts.map +0 -1
  280. package/dist/components/modules/groups/GroupCard.js +0 -8
  281. package/dist/components/modules/groups/GroupCard.js.map +0 -1
  282. package/dist/components/modules/groups/widgets/ApplicationModal.d.ts +0 -8
  283. package/dist/components/modules/groups/widgets/ApplicationModal.d.ts.map +0 -1
  284. package/dist/components/modules/groups/widgets/ApplicationModal.js +0 -28
  285. package/dist/components/modules/groups/widgets/ApplicationModal.js.map +0 -1
  286. package/dist/components/modules/groups/widgets/GroupCard.d.ts +0 -14
  287. package/dist/components/modules/groups/widgets/GroupCard.d.ts.map +0 -1
  288. package/dist/components/modules/groups/widgets/GroupCard.js +0 -8
  289. package/dist/components/modules/groups/widgets/GroupCard.js.map +0 -1
  290. package/dist/components/modules/guest/Introduction.d.ts +0 -2
  291. package/dist/components/modules/guest/Introduction.d.ts.map +0 -1
  292. package/dist/components/modules/guest/Introduction.js +0 -14
  293. package/dist/components/modules/guest/Introduction.js.map +0 -1
  294. package/dist/components/modules/guest/widgets/Introduction.d.ts +0 -2
  295. package/dist/components/modules/guest/widgets/Introduction.d.ts.map +0 -1
  296. package/dist/components/modules/guest/widgets/Introduction.js +0 -15
  297. package/dist/components/modules/guest/widgets/Introduction.js.map +0 -1
  298. package/dist/components/modules/magaza/BackToStore.d.ts +0 -2
  299. package/dist/components/modules/magaza/BackToStore.d.ts.map +0 -1
  300. package/dist/components/modules/magaza/BackToStore.js +0 -11
  301. package/dist/components/modules/magaza/BackToStore.js.map +0 -1
  302. package/dist/components/modules/magaza/StoreHeader.d.ts +0 -6
  303. package/dist/components/modules/magaza/StoreHeader.d.ts.map +0 -1
  304. package/dist/components/modules/magaza/StoreHeader.js +0 -9
  305. package/dist/components/modules/magaza/StoreHeader.js.map +0 -1
  306. package/dist/components/modules/magaza/widgets/StoreProductGrid.d.ts +0 -7
  307. package/dist/components/modules/magaza/widgets/StoreProductGrid.d.ts.map +0 -1
  308. package/dist/components/modules/magaza/widgets/StoreProductGrid.js +0 -13
  309. package/dist/components/modules/magaza/widgets/StoreProductGrid.js.map +0 -1
  310. package/dist/components/modules/magaza/widgets/StoreSidebar.d.ts +0 -8
  311. package/dist/components/modules/magaza/widgets/StoreSidebar.d.ts.map +0 -1
  312. package/dist/components/modules/magaza/widgets/StoreSidebar.js +0 -8
  313. package/dist/components/modules/magaza/widgets/StoreSidebar.js.map +0 -1
  314. package/dist/components/modules/magaza/widgets/StoreTrustBadges.d.ts +0 -2
  315. package/dist/components/modules/magaza/widgets/StoreTrustBadges.d.ts.map +0 -1
  316. package/dist/components/modules/magaza/widgets/StoreTrustBadges.js +0 -6
  317. package/dist/components/modules/magaza/widgets/StoreTrustBadges.js.map +0 -1
  318. package/dist/components/modules/news/NewsCard.d.ts +0 -12
  319. package/dist/components/modules/news/NewsCard.d.ts.map +0 -1
  320. package/dist/components/modules/news/NewsCard.js +0 -7
  321. package/dist/components/modules/news/NewsCard.js.map +0 -1
  322. package/dist/components/modules/news/NewsComments.d.ts +0 -2
  323. package/dist/components/modules/news/NewsComments.d.ts.map +0 -1
  324. package/dist/components/modules/news/NewsComments.js +0 -53
  325. package/dist/components/modules/news/NewsComments.js.map +0 -1
  326. package/dist/components/modules/news/widgets/NewsCard.d.ts +0 -12
  327. package/dist/components/modules/news/widgets/NewsCard.d.ts.map +0 -1
  328. package/dist/components/modules/news/widgets/NewsCard.js +0 -7
  329. package/dist/components/modules/news/widgets/NewsCard.js.map +0 -1
  330. package/dist/components/modules/news/widgets/NewsComments.d.ts +0 -4
  331. package/dist/components/modules/news/widgets/NewsComments.d.ts.map +0 -1
  332. package/dist/components/modules/news/widgets/NewsComments.js +0 -6
  333. package/dist/components/modules/news/widgets/NewsComments.js.map +0 -1
  334. package/dist/components/modules/posts/MediaLightbox.d.ts +0 -14
  335. package/dist/components/modules/posts/MediaLightbox.d.ts.map +0 -1
  336. package/dist/components/modules/posts/MediaLightbox.js +0 -47
  337. package/dist/components/modules/posts/MediaLightbox.js.map +0 -1
  338. package/dist/components/modules/posts/PostCard.d.ts +0 -26
  339. package/dist/components/modules/posts/PostCard.d.ts.map +0 -1
  340. package/dist/components/modules/posts/PostCard.js +0 -116
  341. package/dist/components/modules/posts/PostCard.js.map +0 -1
  342. package/dist/components/modules/posts/PostInteractionsModal.d.ts +0 -12
  343. package/dist/components/modules/posts/PostInteractionsModal.d.ts.map +0 -1
  344. package/dist/components/modules/posts/PostInteractionsModal.js +0 -13
  345. package/dist/components/modules/posts/PostInteractionsModal.js.map +0 -1
  346. package/dist/components/modules/posts/RepostModal.d.ts +0 -22
  347. package/dist/components/modules/posts/RepostModal.d.ts.map +0 -1
  348. package/dist/components/modules/posts/RepostModal.js +0 -76
  349. package/dist/components/modules/posts/RepostModal.js.map +0 -1
  350. package/dist/components/modules/posts/Stories.d.ts +0 -2
  351. package/dist/components/modules/posts/Stories.d.ts.map +0 -1
  352. package/dist/components/modules/posts/Stories.js +0 -16
  353. package/dist/components/modules/posts/Stories.js.map +0 -1
  354. package/dist/components/modules/posts/StoryViewer.d.ts +0 -10
  355. package/dist/components/modules/posts/StoryViewer.d.ts.map +0 -1
  356. package/dist/components/modules/posts/StoryViewer.js +0 -48
  357. package/dist/components/modules/posts/StoryViewer.js.map +0 -1
  358. package/dist/components/modules/posts/reels/ReelCard.d.ts +0 -16
  359. package/dist/components/modules/posts/reels/ReelCard.d.ts.map +0 -1
  360. package/dist/components/modules/posts/reels/ReelCard.js +0 -70
  361. package/dist/components/modules/posts/reels/ReelCard.js.map +0 -1
  362. package/dist/components/modules/posts/reels/ReelsContainer.d.ts +0 -8
  363. package/dist/components/modules/posts/reels/ReelsContainer.d.ts.map +0 -1
  364. package/dist/components/modules/posts/reels/ReelsContainer.js +0 -37
  365. package/dist/components/modules/posts/reels/ReelsContainer.js.map +0 -1
  366. package/dist/components/modules/posts/widgets/MediaLightbox.d.ts +0 -14
  367. package/dist/components/modules/posts/widgets/MediaLightbox.d.ts.map +0 -1
  368. package/dist/components/modules/posts/widgets/MediaLightbox.js +0 -47
  369. package/dist/components/modules/posts/widgets/MediaLightbox.js.map +0 -1
  370. package/dist/components/modules/posts/widgets/PostCard.d.ts +0 -26
  371. package/dist/components/modules/posts/widgets/PostCard.d.ts.map +0 -1
  372. package/dist/components/modules/posts/widgets/PostCard.js +0 -116
  373. package/dist/components/modules/posts/widgets/PostCard.js.map +0 -1
  374. package/dist/components/modules/posts/widgets/PostInteractionsModal.d.ts +0 -12
  375. package/dist/components/modules/posts/widgets/PostInteractionsModal.d.ts.map +0 -1
  376. package/dist/components/modules/posts/widgets/PostInteractionsModal.js +0 -13
  377. package/dist/components/modules/posts/widgets/PostInteractionsModal.js.map +0 -1
  378. package/dist/components/modules/posts/widgets/RepostModal.d.ts +0 -22
  379. package/dist/components/modules/posts/widgets/RepostModal.d.ts.map +0 -1
  380. package/dist/components/modules/posts/widgets/RepostModal.js +0 -76
  381. package/dist/components/modules/posts/widgets/RepostModal.js.map +0 -1
  382. package/dist/components/modules/posts/widgets/Stories.d.ts +0 -2
  383. package/dist/components/modules/posts/widgets/Stories.d.ts.map +0 -1
  384. package/dist/components/modules/posts/widgets/Stories.js +0 -16
  385. package/dist/components/modules/posts/widgets/Stories.js.map +0 -1
  386. package/dist/components/modules/posts/widgets/StoryViewer.d.ts +0 -10
  387. package/dist/components/modules/posts/widgets/StoryViewer.d.ts.map +0 -1
  388. package/dist/components/modules/posts/widgets/StoryViewer.js +0 -48
  389. package/dist/components/modules/posts/widgets/StoryViewer.js.map +0 -1
  390. package/dist/components/modules/posts/widgets/reels/ReelCard.d.ts +0 -16
  391. package/dist/components/modules/posts/widgets/reels/ReelCard.d.ts.map +0 -1
  392. package/dist/components/modules/posts/widgets/reels/ReelCard.js +0 -55
  393. package/dist/components/modules/posts/widgets/reels/ReelCard.js.map +0 -1
  394. package/dist/components/modules/posts/widgets/reels/ReelsContainer.d.ts +0 -8
  395. package/dist/components/modules/posts/widgets/reels/ReelsContainer.d.ts.map +0 -1
  396. package/dist/components/modules/posts/widgets/reels/ReelsContainer.js +0 -29
  397. package/dist/components/modules/posts/widgets/reels/ReelsContainer.js.map +0 -1
  398. package/dist/components/modules/profile/CloudStorageModal.d.ts +0 -9
  399. package/dist/components/modules/profile/CloudStorageModal.d.ts.map +0 -1
  400. package/dist/components/modules/profile/CloudStorageModal.js +0 -32
  401. package/dist/components/modules/profile/CloudStorageModal.js.map +0 -1
  402. package/dist/components/modules/profile/EditProfileModal.d.ts +0 -9
  403. package/dist/components/modules/profile/EditProfileModal.d.ts.map +0 -1
  404. package/dist/components/modules/profile/EditProfileModal.js +0 -28
  405. package/dist/components/modules/profile/EditProfileModal.js.map +0 -1
  406. package/dist/components/modules/profile/ProfileContent.d.ts +0 -5
  407. package/dist/components/modules/profile/ProfileContent.d.ts.map +0 -1
  408. package/dist/components/modules/profile/ProfileContent.js +0 -117
  409. package/dist/components/modules/profile/ProfileContent.js.map +0 -1
  410. package/dist/components/modules/profile/ProfileHeader.d.ts +0 -8
  411. package/dist/components/modules/profile/ProfileHeader.d.ts.map +0 -1
  412. package/dist/components/modules/profile/ProfileHeader.js +0 -20
  413. package/dist/components/modules/profile/ProfileHeader.js.map +0 -1
  414. package/dist/components/modules/profile/ProfileLayout.d.ts +0 -5
  415. package/dist/components/modules/profile/ProfileLayout.d.ts.map +0 -1
  416. package/dist/components/modules/profile/ProfileLayout.js +0 -71
  417. package/dist/components/modules/profile/ProfileLayout.js.map +0 -1
  418. package/dist/components/modules/profile/ProfileSidebar.d.ts +0 -11
  419. package/dist/components/modules/profile/ProfileSidebar.d.ts.map +0 -1
  420. package/dist/components/modules/profile/ProfileSidebar.js +0 -9
  421. package/dist/components/modules/profile/ProfileSidebar.js.map +0 -1
  422. package/dist/components/modules/profile/ProfileStats.d.ts +0 -7
  423. package/dist/components/modules/profile/ProfileStats.d.ts.map +0 -1
  424. package/dist/components/modules/profile/ProfileStats.js +0 -20
  425. package/dist/components/modules/profile/ProfileStats.js.map +0 -1
  426. package/dist/components/modules/profile/ProfileTabsArea.d.ts +0 -14
  427. package/dist/components/modules/profile/ProfileTabsArea.d.ts.map +0 -1
  428. package/dist/components/modules/profile/ProfileTabsArea.js +0 -59
  429. package/dist/components/modules/profile/ProfileTabsArea.js.map +0 -1
  430. package/dist/components/modules/profile/TeamSelectorModal.d.ts +0 -11
  431. package/dist/components/modules/profile/TeamSelectorModal.d.ts.map +0 -1
  432. package/dist/components/modules/profile/TeamSelectorModal.js +0 -17
  433. package/dist/components/modules/profile/TeamSelectorModal.js.map +0 -1
  434. package/dist/components/modules/profile/tabs/AboutTab.d.ts +0 -10
  435. package/dist/components/modules/profile/tabs/AboutTab.d.ts.map +0 -1
  436. package/dist/components/modules/profile/tabs/AboutTab.js +0 -9
  437. package/dist/components/modules/profile/tabs/AboutTab.js.map +0 -1
  438. package/dist/components/modules/profile/tabs/CareerTab.d.ts +0 -7
  439. package/dist/components/modules/profile/tabs/CareerTab.d.ts.map +0 -1
  440. package/dist/components/modules/profile/tabs/CareerTab.js +0 -46
  441. package/dist/components/modules/profile/tabs/CareerTab.js.map +0 -1
  442. package/dist/components/modules/profile/tabs/FriendsTab.d.ts +0 -10
  443. package/dist/components/modules/profile/tabs/FriendsTab.d.ts.map +0 -1
  444. package/dist/components/modules/profile/tabs/FriendsTab.js +0 -8
  445. package/dist/components/modules/profile/tabs/FriendsTab.js.map +0 -1
  446. package/dist/components/modules/profile/tabs/GamesTab.d.ts +0 -7
  447. package/dist/components/modules/profile/tabs/GamesTab.d.ts.map +0 -1
  448. package/dist/components/modules/profile/tabs/GamesTab.js +0 -37
  449. package/dist/components/modules/profile/tabs/GamesTab.js.map +0 -1
  450. package/dist/components/modules/profile/tabs/GroupsTab.d.ts +0 -6
  451. package/dist/components/modules/profile/tabs/GroupsTab.d.ts.map +0 -1
  452. package/dist/components/modules/profile/tabs/GroupsTab.js +0 -9
  453. package/dist/components/modules/profile/tabs/GroupsTab.js.map +0 -1
  454. package/dist/components/modules/profile/tabs/PostsTab.d.ts +0 -7
  455. package/dist/components/modules/profile/tabs/PostsTab.d.ts.map +0 -1
  456. package/dist/components/modules/profile/tabs/PostsTab.js +0 -92
  457. package/dist/components/modules/profile/tabs/PostsTab.js.map +0 -1
  458. package/dist/components/modules/profile/widgets/CloudStorageModal.d.ts +0 -9
  459. package/dist/components/modules/profile/widgets/CloudStorageModal.d.ts.map +0 -1
  460. package/dist/components/modules/profile/widgets/CloudStorageModal.js +0 -32
  461. package/dist/components/modules/profile/widgets/CloudStorageModal.js.map +0 -1
  462. package/dist/components/modules/profile/widgets/EditProfileModal.d.ts +0 -9
  463. package/dist/components/modules/profile/widgets/EditProfileModal.d.ts.map +0 -1
  464. package/dist/components/modules/profile/widgets/EditProfileModal.js +0 -28
  465. package/dist/components/modules/profile/widgets/EditProfileModal.js.map +0 -1
  466. package/dist/components/modules/profile/widgets/ProfileBadgesWidget.d.ts +0 -2
  467. package/dist/components/modules/profile/widgets/ProfileBadgesWidget.d.ts.map +0 -1
  468. package/dist/components/modules/profile/widgets/ProfileBadgesWidget.js +0 -6
  469. package/dist/components/modules/profile/widgets/ProfileBadgesWidget.js.map +0 -1
  470. package/dist/components/modules/profile/widgets/ProfileCloudWidget.d.ts +0 -6
  471. package/dist/components/modules/profile/widgets/ProfileCloudWidget.d.ts.map +0 -1
  472. package/dist/components/modules/profile/widgets/ProfileCloudWidget.js +0 -6
  473. package/dist/components/modules/profile/widgets/ProfileCloudWidget.js.map +0 -1
  474. package/dist/components/modules/profile/widgets/ProfileFriendsWidget.d.ts +0 -8
  475. package/dist/components/modules/profile/widgets/ProfileFriendsWidget.d.ts.map +0 -1
  476. package/dist/components/modules/profile/widgets/ProfileFriendsWidget.js +0 -12
  477. package/dist/components/modules/profile/widgets/ProfileFriendsWidget.js.map +0 -1
  478. package/dist/components/modules/profile/widgets/ProfileHeader.d.ts +0 -8
  479. package/dist/components/modules/profile/widgets/ProfileHeader.d.ts.map +0 -1
  480. package/dist/components/modules/profile/widgets/ProfileHeader.js +0 -20
  481. package/dist/components/modules/profile/widgets/ProfileHeader.js.map +0 -1
  482. package/dist/components/modules/profile/widgets/ProfileSidebar.d.ts +0 -11
  483. package/dist/components/modules/profile/widgets/ProfileSidebar.d.ts.map +0 -1
  484. package/dist/components/modules/profile/widgets/ProfileSidebar.js +0 -9
  485. package/dist/components/modules/profile/widgets/ProfileSidebar.js.map +0 -1
  486. package/dist/components/modules/profile/widgets/ProfileStats.d.ts +0 -7
  487. package/dist/components/modules/profile/widgets/ProfileStats.d.ts.map +0 -1
  488. package/dist/components/modules/profile/widgets/ProfileStats.js +0 -21
  489. package/dist/components/modules/profile/widgets/ProfileStats.js.map +0 -1
  490. package/dist/components/modules/profile/widgets/ProfileTabsArea.d.ts +0 -14
  491. package/dist/components/modules/profile/widgets/ProfileTabsArea.d.ts.map +0 -1
  492. package/dist/components/modules/profile/widgets/ProfileTabsArea.js +0 -59
  493. package/dist/components/modules/profile/widgets/ProfileTabsArea.js.map +0 -1
  494. package/dist/components/modules/profile/widgets/TeamSelectorModal.d.ts +0 -11
  495. package/dist/components/modules/profile/widgets/TeamSelectorModal.d.ts.map +0 -1
  496. package/dist/components/modules/profile/widgets/TeamSelectorModal.js +0 -17
  497. package/dist/components/modules/profile/widgets/TeamSelectorModal.js.map +0 -1
  498. package/dist/components/modules/shop/BackToStore.d.ts +0 -2
  499. package/dist/components/modules/shop/BackToStore.d.ts.map +0 -1
  500. package/dist/components/modules/shop/BackToStore.js +0 -11
  501. package/dist/components/modules/shop/BackToStore.js.map +0 -1
  502. package/dist/components/modules/shop/DetailLayout.d.ts +0 -8
  503. package/dist/components/modules/shop/DetailLayout.d.ts.map +0 -1
  504. package/dist/components/modules/shop/DetailLayout.js +0 -22
  505. package/dist/components/modules/shop/DetailLayout.js.map +0 -1
  506. package/dist/components/modules/shop/ProductCard.d.ts +0 -8
  507. package/dist/components/modules/shop/ProductCard.d.ts.map +0 -1
  508. package/dist/components/modules/shop/ProductCard.js +0 -11
  509. package/dist/components/modules/shop/ProductCard.js.map +0 -1
  510. package/dist/components/modules/shop/ProductDetailPage.d.ts +0 -8
  511. package/dist/components/modules/shop/ProductDetailPage.d.ts.map +0 -1
  512. package/dist/components/modules/shop/ProductDetailPage.js +0 -22
  513. package/dist/components/modules/shop/ProductDetailPage.js.map +0 -1
  514. package/dist/components/modules/shop/StoreHeader.d.ts +0 -6
  515. package/dist/components/modules/shop/StoreHeader.d.ts.map +0 -1
  516. package/dist/components/modules/shop/StoreHeader.js +0 -9
  517. package/dist/components/modules/shop/StoreHeader.js.map +0 -1
  518. package/dist/components/modules/shop/StoreLayout.d.ts +0 -8
  519. package/dist/components/modules/shop/StoreLayout.d.ts.map +0 -1
  520. package/dist/components/modules/shop/StoreLayout.js +0 -6
  521. package/dist/components/modules/shop/StoreLayout.js.map +0 -1
  522. package/dist/components/modules/shop/widgets/BackToStore.d.ts +0 -2
  523. package/dist/components/modules/shop/widgets/BackToStore.d.ts.map +0 -1
  524. package/dist/components/modules/shop/widgets/BackToStore.js +0 -11
  525. package/dist/components/modules/shop/widgets/BackToStore.js.map +0 -1
  526. package/dist/components/modules/shop/widgets/CategoryWidget.d.ts +0 -8
  527. package/dist/components/modules/shop/widgets/CategoryWidget.d.ts.map +0 -1
  528. package/dist/components/modules/shop/widgets/CategoryWidget.js +0 -23
  529. package/dist/components/modules/shop/widgets/CategoryWidget.js.map +0 -1
  530. package/dist/components/modules/shop/widgets/ProductCard.d.ts +0 -8
  531. package/dist/components/modules/shop/widgets/ProductCard.d.ts.map +0 -1
  532. package/dist/components/modules/shop/widgets/ProductCard.js +0 -10
  533. package/dist/components/modules/shop/widgets/ProductCard.js.map +0 -1
  534. package/dist/components/modules/shop/widgets/StoreHeader.d.ts +0 -6
  535. package/dist/components/modules/shop/widgets/StoreHeader.d.ts.map +0 -1
  536. package/dist/components/modules/shop/widgets/StoreHeader.js +0 -9
  537. package/dist/components/modules/shop/widgets/StoreHeader.js.map +0 -1
  538. package/dist/components/modules/shop/widgets/StoreProductGrid.d.ts +0 -7
  539. package/dist/components/modules/shop/widgets/StoreProductGrid.d.ts.map +0 -1
  540. package/dist/components/modules/shop/widgets/StoreProductGrid.js +0 -13
  541. package/dist/components/modules/shop/widgets/StoreProductGrid.js.map +0 -1
  542. package/dist/components/modules/shop/widgets/StoreSidebar.d.ts +0 -8
  543. package/dist/components/modules/shop/widgets/StoreSidebar.d.ts.map +0 -1
  544. package/dist/components/modules/shop/widgets/StoreSidebar.js +0 -8
  545. package/dist/components/modules/shop/widgets/StoreSidebar.js.map +0 -1
  546. package/dist/components/modules/shop/widgets/StoreTrustBadges.d.ts +0 -2
  547. package/dist/components/modules/shop/widgets/StoreTrustBadges.d.ts.map +0 -1
  548. package/dist/components/modules/shop/widgets/StoreTrustBadges.js +0 -29
  549. package/dist/components/modules/shop/widgets/StoreTrustBadges.js.map +0 -1
  550. package/dist/components/modules/social/Dashboard.d.ts +0 -2
  551. package/dist/components/modules/social/Dashboard.d.ts.map +0 -1
  552. package/dist/components/modules/social/Dashboard.js +0 -251
  553. package/dist/components/modules/social/Dashboard.js.map +0 -1
  554. package/dist/components/modules/social/SidebarLeft.d.ts +0 -2
  555. package/dist/components/modules/social/SidebarLeft.d.ts.map +0 -1
  556. package/dist/components/modules/social/SidebarLeft.js +0 -9
  557. package/dist/components/modules/social/SidebarLeft.js.map +0 -1
  558. package/dist/components/modules/social/SocialLayout.d.ts +0 -2
  559. package/dist/components/modules/social/SocialLayout.d.ts.map +0 -1
  560. package/dist/components/modules/social/SocialLayout.js +0 -249
  561. package/dist/components/modules/social/SocialLayout.js.map +0 -1
  562. package/dist/components/modules/social/widgets/EconomyWidget.d.ts +0 -2
  563. package/dist/components/modules/social/widgets/EconomyWidget.d.ts.map +0 -1
  564. package/dist/components/modules/social/widgets/EconomyWidget.js +0 -38
  565. package/dist/components/modules/social/widgets/EconomyWidget.js.map +0 -1
  566. package/dist/components/modules/social/widgets/LeagueWidget.d.ts +0 -2
  567. package/dist/components/modules/social/widgets/LeagueWidget.d.ts.map +0 -1
  568. package/dist/components/modules/social/widgets/LeagueWidget.js +0 -36
  569. package/dist/components/modules/social/widgets/LeagueWidget.js.map +0 -1
  570. package/dist/components/modules/social/widgets/MinecraftWidget.d.ts +0 -2
  571. package/dist/components/modules/social/widgets/MinecraftWidget.d.ts.map +0 -1
  572. package/dist/components/modules/social/widgets/MinecraftWidget.js +0 -36
  573. package/dist/components/modules/social/widgets/MinecraftWidget.js.map +0 -1
  574. package/dist/components/modules/social/widgets/RankingWidget.d.ts +0 -5
  575. package/dist/components/modules/social/widgets/RankingWidget.d.ts.map +0 -1
  576. package/dist/components/modules/social/widgets/RankingWidget.js +0 -79
  577. package/dist/components/modules/social/widgets/RankingWidget.js.map +0 -1
  578. package/dist/components/modules/social/widgets/SocialSidebar.d.ts +0 -2
  579. package/dist/components/modules/social/widgets/SocialSidebar.d.ts.map +0 -1
  580. package/dist/components/modules/social/widgets/SocialSidebar.js +0 -9
  581. package/dist/components/modules/social/widgets/SocialSidebar.js.map +0 -1
  582. package/dist/components/modules/stations/StationCard.d.ts +0 -3
  583. package/dist/components/modules/stations/StationCard.d.ts.map +0 -1
  584. package/dist/components/modules/stations/StationCard.js +0 -26
  585. package/dist/components/modules/stations/StationCard.js.map +0 -1
  586. package/dist/components/modules/stations/StationQRModal.d.ts +0 -10
  587. package/dist/components/modules/stations/StationQRModal.d.ts.map +0 -1
  588. package/dist/components/modules/stations/StationQRModal.js +0 -13
  589. package/dist/components/modules/stations/StationQRModal.js.map +0 -1
  590. package/dist/components/modules/stations/widgets/StationCard.d.ts +0 -3
  591. package/dist/components/modules/stations/widgets/StationCard.d.ts.map +0 -1
  592. package/dist/components/modules/stations/widgets/StationCard.js +0 -26
  593. package/dist/components/modules/stations/widgets/StationCard.js.map +0 -1
  594. package/dist/components/modules/stations/widgets/StationQRModal.d.ts +0 -10
  595. package/dist/components/modules/stations/widgets/StationQRModal.d.ts.map +0 -1
  596. package/dist/components/modules/stations/widgets/StationQRModal.js +0 -13
  597. package/dist/components/modules/stations/widgets/StationQRModal.js.map +0 -1
  598. package/dist/components/shared/DevTools.d.ts +0 -2
  599. package/dist/components/shared/DevTools.d.ts.map +0 -1
  600. package/dist/components/shared/DevTools.js +0 -39
  601. package/dist/components/shared/DevTools.js.map +0 -1
  602. package/dist/components/shared/FilterTabs.d.ts +0 -16
  603. package/dist/components/shared/FilterTabs.d.ts.map +0 -1
  604. package/dist/components/shared/FilterTabs.js +0 -18
  605. package/dist/components/shared/FilterTabs.js.map +0 -1
  606. package/dist/components/shared/FloatingChatButton.d.ts +0 -5
  607. package/dist/components/shared/FloatingChatButton.d.ts.map +0 -1
  608. package/dist/components/shared/FloatingChatButton.js +0 -21
  609. package/dist/components/shared/FloatingChatButton.js.map +0 -1
  610. package/dist/components/shared/Footer.d.ts +0 -2
  611. package/dist/components/shared/Footer.d.ts.map +0 -1
  612. package/dist/components/shared/Footer.js +0 -10
  613. package/dist/components/shared/Footer.js.map +0 -1
  614. package/dist/components/shared/Header.d.ts +0 -2
  615. package/dist/components/shared/Header.d.ts.map +0 -1
  616. package/dist/components/shared/Header.js +0 -109
  617. package/dist/components/shared/Header.js.map +0 -1
  618. package/dist/components/shared/ListToolbar.d.ts +0 -32
  619. package/dist/components/shared/ListToolbar.d.ts.map +0 -1
  620. package/dist/components/shared/ListToolbar.js +0 -13
  621. package/dist/components/shared/ListToolbar.js.map +0 -1
  622. package/dist/components/shared/LoginModal.d.ts +0 -5
  623. package/dist/components/shared/LoginModal.d.ts.map +0 -1
  624. package/dist/components/shared/LoginModal.js +0 -66
  625. package/dist/components/shared/LoginModal.js.map +0 -1
  626. package/dist/components/shared/MainLayoutWrapper.d.ts +0 -5
  627. package/dist/components/shared/MainLayoutWrapper.d.ts.map +0 -1
  628. package/dist/components/shared/MainLayoutWrapper.js +0 -8
  629. package/dist/components/shared/MainLayoutWrapper.js.map +0 -1
  630. package/dist/components/shared/NotFound.d.ts +0 -21
  631. package/dist/components/shared/NotFound.d.ts.map +0 -1
  632. package/dist/components/shared/NotFound.js +0 -7
  633. package/dist/components/shared/NotFound.js.map +0 -1
  634. package/dist/components/shared/PageWidth.d.ts +0 -6
  635. package/dist/components/shared/PageWidth.d.ts.map +0 -1
  636. package/dist/components/shared/PageWidth.js +0 -14
  637. package/dist/components/shared/PageWidth.js.map +0 -1
  638. package/dist/components/shared/SearchBar.d.ts +0 -14
  639. package/dist/components/shared/SearchBar.d.ts.map +0 -1
  640. package/dist/components/shared/SearchBar.js +0 -21
  641. package/dist/components/shared/SearchBar.js.map +0 -1
  642. package/dist/components/showcase/CommunityTab.d.ts +0 -2
  643. package/dist/components/showcase/CommunityTab.d.ts.map +0 -1
  644. package/dist/components/showcase/CommunityTab.js +0 -6
  645. package/dist/components/showcase/CommunityTab.js.map +0 -1
  646. package/dist/components/showcase/CorporateTab.d.ts +0 -2
  647. package/dist/components/showcase/CorporateTab.d.ts.map +0 -1
  648. package/dist/components/showcase/CorporateTab.js +0 -6
  649. package/dist/components/showcase/CorporateTab.js.map +0 -1
  650. package/dist/components/showcase/EventsTab.d.ts +0 -2
  651. package/dist/components/showcase/EventsTab.d.ts.map +0 -1
  652. package/dist/components/showcase/EventsTab.js +0 -80
  653. package/dist/components/showcase/EventsTab.js.map +0 -1
  654. package/dist/components/showcase/GeneralTab.d.ts +0 -2
  655. package/dist/components/showcase/GeneralTab.d.ts.map +0 -1
  656. package/dist/components/showcase/GeneralTab.js +0 -6
  657. package/dist/components/showcase/GeneralTab.js.map +0 -1
  658. package/dist/components/showcase/GroupTab.d.ts +0 -2
  659. package/dist/components/showcase/GroupTab.d.ts.map +0 -1
  660. package/dist/components/showcase/GroupTab.js +0 -74
  661. package/dist/components/showcase/GroupTab.js.map +0 -1
  662. package/dist/components/showcase/MessagesTab.d.ts +0 -2
  663. package/dist/components/showcase/MessagesTab.d.ts.map +0 -1
  664. package/dist/components/showcase/MessagesTab.js +0 -20
  665. package/dist/components/showcase/MessagesTab.js.map +0 -1
  666. package/dist/components/showcase/ProfileTab.d.ts +0 -2
  667. package/dist/components/showcase/ProfileTab.d.ts.map +0 -1
  668. package/dist/components/showcase/ProfileTab.js +0 -52
  669. package/dist/components/showcase/ProfileTab.js.map +0 -1
  670. package/dist/components/showcase/ReelsTab.d.ts +0 -2
  671. package/dist/components/showcase/ReelsTab.d.ts.map +0 -1
  672. package/dist/components/showcase/ReelsTab.js +0 -34
  673. package/dist/components/showcase/ReelsTab.js.map +0 -1
  674. package/dist/components/showcase/ShopTab.d.ts +0 -2
  675. package/dist/components/showcase/ShopTab.d.ts.map +0 -1
  676. package/dist/components/showcase/ShopTab.js +0 -32
  677. package/dist/components/showcase/ShopTab.js.map +0 -1
  678. package/dist/components/showcase/ShowcaseNavigation.d.ts +0 -2
  679. package/dist/components/showcase/ShowcaseNavigation.d.ts.map +0 -1
  680. package/dist/components/showcase/ShowcaseNavigation.js +0 -29
  681. package/dist/components/showcase/ShowcaseNavigation.js.map +0 -1
  682. package/dist/components/showcase/SocialTab.d.ts +0 -2
  683. package/dist/components/showcase/SocialTab.d.ts.map +0 -1
  684. package/dist/components/showcase/SocialTab.js +0 -109
  685. package/dist/components/showcase/SocialTab.js.map +0 -1
  686. package/dist/context/ArmoyuContext.d.ts +0 -42
  687. package/dist/context/ArmoyuContext.d.ts.map +0 -1
  688. package/dist/context/ArmoyuContext.js +0 -76
  689. package/dist/context/ArmoyuContext.js.map +0 -1
  690. package/dist/context/AuthContext.d.ts +0 -19
  691. package/dist/context/AuthContext.d.ts.map +0 -1
  692. package/dist/context/AuthContext.js +0 -116
  693. package/dist/context/AuthContext.js.map +0 -1
  694. package/dist/context/CartContext.d.ts +0 -17
  695. package/dist/context/CartContext.d.ts.map +0 -1
  696. package/dist/context/CartContext.js +0 -64
  697. package/dist/context/CartContext.js.map +0 -1
  698. package/dist/context/ChatContext.d.ts +0 -22
  699. package/dist/context/ChatContext.d.ts.map +0 -1
  700. package/dist/context/ChatContext.js +0 -98
  701. package/dist/context/ChatContext.js.map +0 -1
  702. package/dist/context/LayoutContext.d.ts +0 -11
  703. package/dist/context/LayoutContext.d.ts.map +0 -1
  704. package/dist/context/LayoutContext.js +0 -17
  705. package/dist/context/LayoutContext.js.map +0 -1
  706. package/dist/context/SocketContext.d.ts +0 -13
  707. package/dist/context/SocketContext.d.ts.map +0 -1
  708. package/dist/context/SocketContext.js +0 -32
  709. package/dist/context/SocketContext.js.map +0 -1
  710. package/dist/context/ThemeContext.d.ts +0 -11
  711. package/dist/context/ThemeContext.d.ts.map +0 -1
  712. package/dist/context/ThemeContext.js +0 -40
  713. package/dist/context/ThemeContext.js.map +0 -1
  714. package/dist/index.d.ts +0 -98
  715. package/dist/index.d.ts.map +0 -1
  716. package/dist/index.js +0 -110
  717. package/dist/index.js.map +0 -1
  718. package/dist/lib/ArmoyuUI.d.ts +0 -18
  719. package/dist/lib/ArmoyuUI.d.ts.map +0 -1
  720. package/dist/lib/ArmoyuUI.js +0 -25
  721. package/dist/lib/ArmoyuUI.js.map +0 -1
  722. package/dist/lib/constants/config.d.ts +0 -9
  723. package/dist/lib/constants/config.d.ts.map +0 -1
  724. package/dist/lib/constants/config.js +0 -15
  725. package/dist/lib/constants/config.js.map +0 -1
  726. package/dist/lib/constants/educationData.d.ts +0 -8
  727. package/dist/lib/constants/educationData.d.ts.map +0 -1
  728. package/dist/lib/constants/educationData.js +0 -118
  729. package/dist/lib/constants/educationData.js.map +0 -1
  730. package/dist/lib/constants/punishmentData.d.ts +0 -30
  731. package/dist/lib/constants/punishmentData.d.ts.map +0 -1
  732. package/dist/lib/constants/punishmentData.js +0 -184
  733. package/dist/lib/constants/punishmentData.js.map +0 -1
  734. package/dist/lib/constants/seedData.d.ts +0 -165
  735. package/dist/lib/constants/seedData.d.ts.map +0 -1
  736. package/dist/lib/constants/seedData.js +0 -709
  737. package/dist/lib/constants/seedData.js.map +0 -1
  738. package/dist/lib/constants/stationData.d.ts +0 -14
  739. package/dist/lib/constants/stationData.d.ts.map +0 -1
  740. package/dist/lib/constants/stationData.js +0 -167
  741. package/dist/lib/constants/stationData.js.map +0 -1
  742. package/dist/lib/constants/surveyData.d.ts +0 -3
  743. package/dist/lib/constants/surveyData.d.ts.map +0 -1
  744. package/dist/lib/constants/surveyData.js +0 -50
  745. package/dist/lib/constants/surveyData.js.map +0 -1
  746. package/dist/lib/constants/teamData.d.ts +0 -13
  747. package/dist/lib/constants/teamData.d.ts.map +0 -1
  748. package/dist/lib/constants/teamData.js +0 -66
  749. package/dist/lib/constants/teamData.js.map +0 -1
  750. package/dist/lib/utils/numberFormat.d.ts +0 -10
  751. package/dist/lib/utils/numberFormat.d.ts.map +0 -1
  752. package/dist/lib/utils/numberFormat.js +0 -17
  753. package/dist/lib/utils/numberFormat.js.map +0 -1
  754. package/dist/lib/utils/odpUtils.d.ts +0 -16
  755. package/dist/lib/utils/odpUtils.d.ts.map +0 -1
  756. package/dist/lib/utils/odpUtils.js +0 -44
  757. package/dist/lib/utils/odpUtils.js.map +0 -1
  758. package/dist/types/index.d.ts +0 -2
  759. package/dist/types/index.d.ts.map +0 -1
  760. package/dist/types/index.js +0 -2
  761. package/dist/types/index.js.map +0 -1
  762. package/dist/types/stats.d.ts +0 -18
  763. package/dist/types/stats.d.ts.map +0 -1
  764. package/dist/types/stats.js +0 -2
  765. package/dist/types/stats.js.map +0 -1
@@ -1,109 +0,0 @@
1
- 'use client';
2
- import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
3
- import { useEffect, useState, useCallback } from 'react';
4
- import { SocialSidebar, Stories, PostCard, postList } from '../../index';
5
- import { useArmoyu } from '../../context/ArmoyuContext';
6
- import { RefreshCcw, Wifi, WifiOff, Settings2 } from 'lucide-react';
7
- export function SocialTab() {
8
- const { api, apiKey, token } = useArmoyu();
9
- const [useLive, setUseLive] = useState(false);
10
- const [livePosts, setLivePosts] = useState([]);
11
- const [loading, setLoading] = useState(false);
12
- const [error, setError] = useState(null);
13
- const [lastRawData, setLastRawData] = useState(null);
14
- const [page, setPage] = useState(1);
15
- const [hasMore, setHasMore] = useState(true);
16
- const fetchLivePosts = useCallback(async (isLoadMore = false) => {
17
- setLoading(true);
18
- if (!isLoadMore) {
19
- setError(null);
20
- setLastRawData(null);
21
- }
22
- if (!apiKey || apiKey === 'armoyu_showcase_key') {
23
- setError("Canlı akış verilerini çekebilmek için lütfen geçerli bir API Anahtarı giriniz.");
24
- setLoading(false);
25
- return;
26
- }
27
- try {
28
- const targetPage = isLoadMore ? page + 1 : 1;
29
- console.log(`[SocialTab] Veri çekiliyor... Sayfa: ${targetPage}, API Key: ${apiKey ? "Mevcut" : "Eksik"}`);
30
- const posts = await api.social.getPosts(targetPage);
31
- const lastRaw = api.lastResponse;
32
- setLastRawData(lastRaw);
33
- console.log("---------------- [SocialTab DEBUG] ----------------");
34
- console.log("Ham Yanıt (lastRaw):", lastRaw);
35
- console.log("İşlenmiş Veri (posts):", posts);
36
- console.log("Veri Tipi:", Array.isArray(posts) ? "Dizi (Array)" : typeof posts);
37
- if (Array.isArray(posts)) {
38
- console.log("Gönderi Sayısı (Length):", posts.length);
39
- }
40
- console.log("---------------------------------------------------");
41
- if (!posts || (Array.isArray(posts) && posts.length === 0)) {
42
- if (lastRaw && lastRaw.durum === 0) {
43
- setError(lastRaw.aciklama || "API Hatası: Yetki veya veri erişim problemi.");
44
- return;
45
- }
46
- }
47
- // Gelen veriyi PostCard'ın beklediği formata güvenli bir şekilde dönüştür (Mapping)
48
- const rawArray = Array.isArray(posts) ? posts : (posts ? [posts] : []);
49
- const mappedPosts = rawArray.map((p) => {
50
- if (!p || typeof p !== 'object')
51
- return null;
52
- return {
53
- ...p,
54
- id: p.id?.toString() || p.postID?.toString() || Math.random().toString(),
55
- author: p.author || p.owner || null,
56
- content: p.content || p.paylasimicerik || '',
57
- media: Array.isArray(p.media) ? p.media : (Array.isArray(p.paylasimfoto) ? p.paylasimfoto.map((f) => ({ type: 'image', url: f.fotourl || f.fotoufakurl })) : []),
58
- createdAt: p.createdAt || p.paylasimzaman || 'Şimdi',
59
- stats: {
60
- likes: p.stats?.likes ?? p.likesCount ?? p.begenisay ?? 0,
61
- comments: p.stats?.comments ?? p.commentsCount ?? p.yorumsay ?? 0,
62
- reposts: p.stats?.reposts ?? p.repostsay ?? 0,
63
- shares: p.stats?.shares ?? p.sikayetsay ?? 0
64
- }
65
- };
66
- }).filter(Boolean);
67
- console.log(`[SocialTab] Mapleme Sonrası Gönderi Sayısı: ${mappedPosts.length}`);
68
- if (isLoadMore) {
69
- setLivePosts((prev) => [...prev, ...mappedPosts]);
70
- }
71
- else {
72
- setLivePosts(mappedPosts);
73
- }
74
- setPage(targetPage);
75
- setHasMore(mappedPosts.length > 0);
76
- setUseLive(true);
77
- }
78
- catch (err) {
79
- const lastRaw = api.lastResponse;
80
- setLastRawData(lastRaw);
81
- console.log("================ [SocialTab ERROR] ================");
82
- console.error("HATA:", err.message);
83
- console.log("API YANITI:", lastRaw);
84
- console.log("==================================================");
85
- if (lastRaw && lastRaw.durum === 0) {
86
- setError(lastRaw.aciklama || "API Hatası: Yetki veya veri erişim problemi.");
87
- }
88
- else {
89
- setError(err.message || "Veri çekilirken teknik bir hata oluştu.");
90
- }
91
- }
92
- finally {
93
- setLoading(false);
94
- }
95
- }, [api, apiKey, page]);
96
- // Sayfa açıldığında verileri otomatik çek (Opsiyonel: Eğer apiKey varsa)
97
- useEffect(() => {
98
- if (apiKey && apiKey !== 'armoyu_showcase_key') {
99
- fetchLivePosts(false);
100
- }
101
- // eslint-disable-next-line react-hooks/exhaustive-deps
102
- }, [apiKey]); // API Key değiştiğinde veya ilk açılışta fetch et
103
- const displayPosts = useLive ? livePosts : postList.slice(0, 3);
104
- return (_jsxs("div", { className: "space-y-8 animate-in fade-in duration-700", children: [_jsxs("div", { className: "flex flex-col xl:flex-row xl:items-center justify-between gap-6 bg-white/5 backdrop-blur-md p-6 rounded-[2rem] border border-white/5", children: [_jsxs("div", { className: "flex items-center gap-4", children: [_jsx("div", { className: cn("w-12 h-12 rounded-2xl flex items-center justify-center shadow-2xl transition-all duration-500", useLive ? "bg-emerald-500 shadow-emerald-500/20" : "bg-blue-600 shadow-blue-600/20"), children: useLive ? _jsx(Wifi, { className: "text-white w-6 h-6" }) : _jsx(WifiOff, { className: "text-white w-6 h-6" }) }), _jsxs("div", { children: [_jsx("h3", { className: "text-base font-black text-armoyu-text uppercase tracking-tight", children: useLive ? "CANLI VERİ AKIŞI" : "MOCK (PROTOTİP) VERİ" }), _jsxs("div", { className: "flex items-center gap-2", children: [_jsx("p", { className: "text-[10px] font-bold text-armoyu-text-muted uppercase tracking-widest opacity-60", children: useLive ? "@armoyu/core üzerinden çekiliyor" : "Lokal seedData.ts kullanılıyor" }), useLive && (_jsx("span", { className: "flex h-2 w-2 rounded-full bg-emerald-500 animate-pulse" }))] })] })] }), _jsxs("div", { className: "flex items-center gap-3", children: [_jsxs("div", { className: "hidden md:flex flex-col items-end mr-2", children: [_jsx("span", { className: "text-[10px] font-black text-zinc-500 uppercase tracking-widest", children: "AKT\u0130F ANAHTAR" }), _jsx("span", { className: "text-[11px] font-mono text-emerald-500 truncate max-w-[120px]", children: apiKey === 'armoyu_showcase_key' ? 'Varsayılan (Showcase)' : 'Özel Anahtar' })] }), _jsxs("button", { onClick: () => fetchLivePosts(false), disabled: loading, className: "bg-blue-600 hover:bg-blue-500 disabled:bg-zinc-800 text-white px-8 py-3.5 rounded-2xl text-[11px] font-black uppercase tracking-widest flex items-center gap-2 transition-all shadow-xl shadow-blue-600/20 hover:scale-105 active:scale-95", children: [loading ? _jsx(RefreshCcw, { className: "w-4 h-4 animate-spin" }) : _jsx(RefreshCcw, { className: "w-4 h-4" }), "VER\u0130LER\u0130 \u00C7EK"] }), useLive && (_jsx("button", { onClick: () => setUseLive(false), className: "bg-white/5 hover:bg-white/10 text-armoyu-text-muted p-3.5 rounded-2xl transition-all", title: "Mock veriye d\u00F6n", children: _jsx(Settings2, { className: "w-4 h-4" }) }))] })] }), error && (_jsxs("div", { className: "space-y-4 animate-in slide-in-from-top-2", children: [_jsxs("div", { className: "bg-red-500/10 border border-red-500/20 p-5 rounded-2xl flex items-start gap-4", children: [_jsx("div", { className: "w-10 h-10 rounded-xl bg-red-500/20 flex items-center justify-center text-red-500 shrink-0", children: _jsxs("svg", { xmlns: "http://www.w3.org/2000/svg", width: "20", height: "20", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2.5", children: [_jsx("circle", { cx: "12", cy: "12", r: "10" }), _jsx("line", { x1: "12", y1: "8", x2: "12", y2: "12" }), _jsx("line", { x1: "12", y1: "16", x2: "12.01", y2: "16" })] }) }), _jsxs("div", { children: [_jsx("h4", { className: "text-sm font-black text-red-500 uppercase tracking-tight", children: "VER\u0130 HATASI" }), _jsx("p", { className: "text-red-500/80 text-[11px] leading-relaxed font-bold", children: error }), _jsx("p", { className: "mt-2 text-[10px] text-red-500/50 font-medium italic", children: "Sa\u011F alttaki \"Dev Tools\" panelinden ge\u00E7erli bir API Key girerek tekrar deneyebilirsiniz." })] })] }), lastRawData && (_jsxs("div", { className: "bg-black/40 border border-white/5 p-4 rounded-2xl", children: [_jsxs("div", { className: "flex items-center gap-2 mb-2 text-[10px] font-black text-armoyu-text-muted uppercase tracking-widest opacity-50", children: [_jsxs("svg", { xmlns: "http://www.w3.org/2000/svg", width: "12", height: "12", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "3", children: [_jsx("polyline", { points: "4 17 10 11 4 5" }), _jsx("line", { x1: "12", y1: "19", x2: "20", y2: "19" })] }), "API YANITI (RAW)"] }), _jsx("pre", { className: "text-[10px] font-mono text-blue-400 overflow-x-auto p-2 bg-black/20 rounded-lg", children: JSON.stringify(lastRawData, null, 2) })] }))] })), _jsxs("div", { className: "grid grid-cols-1 lg:grid-cols-12 gap-8", children: [_jsx("aside", { className: "lg:col-span-3 hidden lg:block", children: _jsx(SocialSidebar, {}) }), _jsxs("div", { className: "lg:col-span-9 space-y-8", children: [_jsx(Stories, {}), _jsx("div", { className: "flex flex-col gap-6 max-w-2xl mx-auto", children: displayPosts.map((post) => (_jsx(PostCard, { ...post, author: post.owner || post.author }, post.id))) }), displayPosts.length === 0 && !loading && (_jsx("div", { className: "text-center py-24 border-2 border-dashed border-white/5 rounded-[3rem] bg-white/[0.02]", children: _jsx("p", { className: "text-armoyu-text-muted font-bold opacity-30 uppercase tracking-[0.3em] text-[10px]", children: "Hen\u00FCz yay\u0131nlanm\u0131\u015F bir g\u00F6nderi yok." }) })), useLive && displayPosts.length > 0 && hasMore && (_jsx("div", { className: "flex justify-center mt-6", children: _jsx("button", { onClick: () => fetchLivePosts(true), disabled: loading, className: "px-6 py-3 bg-blue-600 hover:bg-blue-500 disabled:bg-blue-600/50 text-white rounded-2xl text-xs font-black uppercase tracking-widest transition-all shadow-lg shadow-blue-600/20 active:scale-95 flex items-center gap-2", children: loading ? (_jsxs(_Fragment, { children: [_jsx(RefreshCcw, { className: "w-4 h-4 animate-spin" }), " Y\u00DCKLEN\u0130YOR..."] })) : "DAHA FAZLA GÖSTER" }) }))] })] })] }));
105
- }
106
- function cn(...classes) {
107
- return classes.filter(Boolean).join(' ');
108
- }
109
- //# sourceMappingURL=SocialTab.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"SocialTab.js","sourceRoot":"","sources":["../../../src/components/showcase/SocialTab.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;AAEb,OAAc,EAAE,SAAS,EAAE,QAAQ,EAAE,WAAW,EAAE,MAAM,OAAO,CAAC;AAChE,OAAO,EACL,aAAa,EACb,OAAO,EACP,QAAQ,EACR,QAAQ,EACT,MAAM,aAAa,CAAC;AAErB,OAAO,EAAE,SAAS,EAAE,MAAM,6BAA6B,CAAC;AACxD,OAAO,EAAE,UAAU,EAAE,IAAI,EAAE,OAA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,CACxC,cAAK,SAAS,EAAC,wFAAwF,YACrG,YAAG,SAAS,EAAC,oFAAoF,4EAAuC,GACpI,CACP,EACA,OAAO,IAAI,YAAY,CAAC,MAAM,GAAG,CAAC,IAAI,OAAO,IAAI,CAChD,cAAK,SAAS,EAAC,0BAA0B,YACvC,iBACE,OAAO,EAAE,GAAG,EAAE,CAAC,cAAc,CAAC,IAAI,CAAC,EACnC,QAAQ,EAAE,OAAO,EACjB,SAAS,EAAC,yNAAyN,YAElO,OAAO,CAAC,CAAC,CAAC,CACT,8BAAE,KAAC,UAAU,IAAC,SAAS,EAAC,sBAAsB,GAAG,gCAAiB,CACnE,CAAC,CAAC,CAAC,mBAAmB,GAChB,GACL,CACP,IACG,IACF,IACF,CACP,CAAC;AACJ,CAAC;AAED,SAAS,EAAE,CAAC,GAAG,OAAc;IAC3B,OAAO,OAAO,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;AAC3C,CAAC"}
@@ -1,42 +0,0 @@
1
- import { ReactNode } from 'react';
2
- import { ArmoyuUI } from '../lib/ArmoyuUI';
3
- export interface ArmoyuNavigationConfig {
4
- profilePrefix?: string;
5
- groupPrefix?: string;
6
- forumPrefix?: string;
7
- educationPrefix?: string;
8
- newsPrefix?: string;
9
- galleryPrefix?: string;
10
- giveawayPrefix?: string;
11
- projectPrefix?: string;
12
- storePrefix?: string;
13
- managementPrefix?: string;
14
- myArticlesPrefix?: string;
15
- pollPrefix?: string;
16
- supportPrefix?: string;
17
- }
18
- interface ArmoyuContextType {
19
- ui: ArmoyuUI;
20
- api: ArmoyuUI['api'];
21
- apiKey: string;
22
- token: string;
23
- navigation: Required<ArmoyuNavigationConfig>;
24
- setGlobalApiKey: (key: string) => void;
25
- setGlobalToken: (token: string) => void;
26
- }
27
- export interface ArmoyuProviderProps {
28
- children: ReactNode;
29
- ui: ArmoyuUI;
30
- navigation?: ArmoyuNavigationConfig;
31
- }
32
- /**
33
- * ArmoyuProvider provides the global ArmoyuUI instance to all UI components.
34
- * This is required for any component that interacts with the ARMOYU backend.
35
- */
36
- export declare function ArmoyuProvider({ children, ui, navigation }: ArmoyuProviderProps): import("react/jsx-runtime").JSX.Element | null;
37
- /**
38
- * Custom hook to access the ArmoyuApi instance.
39
- */
40
- export declare function useArmoyu(): ArmoyuContextType;
41
- export {};
42
- //# sourceMappingURL=ArmoyuContext.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ArmoyuContext.d.ts","sourceRoot":"","sources":["../../src/context/ArmoyuContext.tsx"],"names":[],"mappings":"AAEA,OAAc,EAA6B,SAAS,EAAoC,MAAM,OAAO,CAAC;AACtG,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAE3C,MAAM,WAAW,sBAAsB;IACrC,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB;AAED,UAAU,iBAAiB;IACzB,EAAE,EAAE,QAAQ,CAAC;IACb,GAAG,EAAE,QAAQ,CAAC,KAAK,CAAC,CAAC;IACrB,MAAM,EAAE,MAAM,CAAC;IACf,KAAK,EAAE,MAAM,CAAC;IACd,UAAU,EAAE,QAAQ,CAAC,sBAAsB,CAAC,CAAC;IAC7C,eAAe,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,IAAI,CAAC;IACvC,cAAc,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;CACzC;AAID,MAAM,WAAW,mBAAmB;IAClC,QAAQ,EAAE,SAAS,CAAC;IACpB,EAAE,EAAE,QAAQ,CAAC;IACb,UAAU,CAAC,EAAE,sBAAsB,CAAC;CACrC;AAED;;;GAGG;AACH,wBAAgB,cAAc,CAAC,EAAE,QAAQ,EAAE,EAAE,EAAE,UAAU,EAAE,EAAE,mBAAmB,kDAmE/E;AAED;;GAEG;AACH,wBAAgB,SAAS,sBAMxB"}
@@ -1,76 +0,0 @@
1
- 'use client';
2
- import { jsx as _jsx } from "react/jsx-runtime";
3
- import { createContext, useContext, useState, useCallback, useEffect } from 'react';
4
- const ArmoyuContext = createContext(undefined);
5
- /**
6
- * ArmoyuProvider provides the global ArmoyuUI instance to all UI components.
7
- * This is required for any component that interacts with the ARMOYU backend.
8
- */
9
- export function ArmoyuProvider({ children, ui, navigation }) {
10
- const [apiKey, setApiKey] = useState('armoyu_showcase_key');
11
- const [token, setToken] = useState('');
12
- const [isMounted, setIsMounted] = useState(false);
13
- // Sadece istemci tarafında localStorage'dan yükle
14
- useEffect(() => {
15
- setIsMounted(true);
16
- const savedApiKey = localStorage.getItem('armoyu_showcase_apiKey');
17
- const savedToken = localStorage.getItem('armoyu_token');
18
- if (savedApiKey) {
19
- setApiKey(savedApiKey);
20
- ui.api.setApiKey(savedApiKey);
21
- }
22
- if (savedToken) {
23
- setToken(savedToken);
24
- ui.api.setToken(savedToken);
25
- }
26
- }, [ui]);
27
- const setGlobalApiKey = useCallback((key) => {
28
- setApiKey(key);
29
- ui.api.setApiKey(key);
30
- localStorage.setItem('armoyu_showcase_apiKey', key);
31
- }, [ui]);
32
- const setGlobalToken = useCallback((t) => {
33
- setToken(t);
34
- ui.api.setToken(t);
35
- localStorage.setItem('armoyu_token', t);
36
- }, [ui]);
37
- if (!isMounted || !ui) {
38
- return null;
39
- }
40
- const defaultNavigation = {
41
- profilePrefix: '/oyuncular',
42
- groupPrefix: '/gruplar',
43
- forumPrefix: '/forum',
44
- educationPrefix: '/egitim',
45
- newsPrefix: '/haberler',
46
- galleryPrefix: '/galeriler',
47
- giveawayPrefix: '/cekilisler',
48
- projectPrefix: '/projeler',
49
- storePrefix: '/magaza',
50
- managementPrefix: '/yonetim',
51
- myArticlesPrefix: '/yazilarim',
52
- pollPrefix: '/anketler',
53
- supportPrefix: '/destek',
54
- ...navigation
55
- };
56
- return (_jsx(ArmoyuContext.Provider, { value: {
57
- ui,
58
- api: ui.api,
59
- apiKey,
60
- token,
61
- navigation: defaultNavigation,
62
- setGlobalApiKey,
63
- setGlobalToken
64
- }, children: children }));
65
- }
66
- /**
67
- * Custom hook to access the ArmoyuApi instance.
68
- */
69
- export function useArmoyu() {
70
- const context = useContext(ArmoyuContext);
71
- if (context === undefined) {
72
- throw new Error('useArmoyu must be used within an ArmoyuProvider');
73
- }
74
- return context;
75
- }
76
- //# sourceMappingURL=ArmoyuContext.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ArmoyuContext.js","sourceRoot":"","sources":["../../src/context/ArmoyuContext.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;AAEb,OAAc,EAAE,aAAa,EAAE,UAAU,EAAa,QAAQ,EAAE,WAAW,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AA6BtG,MAAM,aAAa,GAAG,aAAa,CAAgC,SAAS,CAAC,CAAC;AAQ9E;;;GAGG;AACH,MAAM,UAAU,cAAc,CAAC,EAAE,QAAQ,EAAE,EAAE,EAAE,UAAU,EAAuB;IAC9E,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,GAAG,QAAQ,CAAC,qBAAqB,CAAC,CAAC;IAC5D,MAAM,CAAC,KAAK,EAAE,QAAQ,CAAC,GAAG,QAAQ,CAAC,EAAE,CAAC,CAAC;IACvC,MAAM,CAAC,SAAS,EAAE,YAAY,CAAC,GAAG,QAAQ,CAAC,KAAK,CAAC,CAAC;IAElD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QACvB,WAAW,EAAE,QAAQ;QACrB,eAAe,EAAE,SAAS;QAC1B,UAAU,EAAE,WAAW;QACvB,aAAa,EAAE,YAAY;QAC3B,cAAc,EAAE,aAAa;QAC7B,aAAa,EAAE,WAAW;QAC1B,WAAW,EAAE,SAAS;QACtB,gBAAgB,EAAE,UAAU;QAC5B,gBAAgB,EAAE,YAAY;QAC9B,UAAU,EAAE,WAAW;QACvB,aAAa,EAAE,SAAS;QACxB,GAAG,UAAU;KACd,CAAC;IAEF,OAAO,CACL,KAAC,aAAa,CAAC,QAAQ,IAAC,KAAK,EAAE;YAC7B,EAAE;YACF,GAAG,EAAE,EAAE,CAAC,GAAG;YACX,MAAM;YACN,KAAK;YACL,UAAU,EAAE,iBAAiB;YAC7B,eAAe;YACf,cAAc;SACf,YACE,QAAQ,GACc,CAC1B,CAAC;AACJ,CAAC;AAED;;GAEG;AACH,MAAM,UAAU,SAAS;IACvB,MAAM,OAAO,GAAG,UAAU,CAAC,aAAa,CAAC,CAAC;IAC1C,IAAI,OAAO,KAAK,SAAS,EAAE,CAAC;QAC1B,MAAM,IAAI,KAAK,CAAC,iDAAiD,CAAC,CAAC;IACrE,CAAC;IACD,OAAO,OAAO,CAAC;AACjB,CAAC"}
@@ -1,19 +0,0 @@
1
- import React from 'react';
2
- import { User, Session } from '@armoyu/core';
3
- interface AuthContextType {
4
- user: User | null;
5
- session: Session | null;
6
- login: (username: string, password: string) => Promise<void>;
7
- logout: () => void;
8
- isLoading: boolean;
9
- isLoginModalOpen: boolean;
10
- setIsLoginModalOpen: (open: boolean) => void;
11
- updateUser: (updatedUser: User) => void;
12
- updateSession: (updatedSession: Session) => void;
13
- }
14
- export declare function AuthProvider({ children }: {
15
- children: React.ReactNode;
16
- }): import("react/jsx-runtime").JSX.Element;
17
- export declare function useAuth(): AuthContextType;
18
- export {};
19
- //# sourceMappingURL=AuthContext.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"AuthContext.d.ts","sourceRoot":"","sources":["../../src/context/AuthContext.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAyD,MAAM,OAAO,CAAC;AAC9E,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AAG7C,UAAU,eAAe;IACvB,IAAI,EAAE,IAAI,GAAG,IAAI,CAAC;IAClB,OAAO,EAAE,OAAO,GAAG,IAAI,CAAC;IACxB,KAAK,EAAE,CAAC,QAAQ,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;IAC7D,MAAM,EAAE,MAAM,IAAI,CAAC;IACnB,SAAS,EAAE,OAAO,CAAC;IACnB,gBAAgB,EAAE,OAAO,CAAC;IAC1B,mBAAmB,EAAE,CAAC,IAAI,EAAE,OAAO,KAAK,IAAI,CAAC;IAC7C,UAAU,EAAE,CAAC,WAAW,EAAE,IAAI,KAAK,IAAI,CAAC;IACxC,aAAa,EAAE,CAAC,cAAc,EAAE,OAAO,KAAK,IAAI,CAAC;CAClD;AAID,wBAAgB,YAAY,CAAC,EAAE,QAAQ,EAAE,EAAE;IAAE,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAA;CAAE,2CAoHvE;AAED,wBAAgB,OAAO,oBAMtB"}
@@ -1,116 +0,0 @@
1
- 'use client';
2
- import { jsx as _jsx } from "react/jsx-runtime";
3
- import { createContext, useContext, useState, useEffect } from 'react';
4
- import { Session } from '@armoyu/core';
5
- import { useArmoyu } from './ArmoyuContext';
6
- const AuthContext = createContext(undefined);
7
- export function AuthProvider({ children }) {
8
- const { api, setGlobalToken } = useArmoyu();
9
- const [user, setUser] = useState(null);
10
- const [session, setSession] = useState(null);
11
- const [isLoading, setIsLoading] = useState(true);
12
- const [isLoginModalOpen, setIsLoginModalOpen] = useState(false);
13
- useEffect(() => {
14
- async function restoreSession() {
15
- // Check local storage for persistent token
16
- const token = localStorage.getItem('armoyu_token');
17
- if (token) {
18
- try {
19
- // Set token in core API client
20
- api.setToken(token);
21
- // Request current user profile from real API
22
- const me = await api.auth.me();
23
- // VALIDATION: Ensure 'me' call returned a valid user with an ID
24
- if (me && me.id) {
25
- setUser(me);
26
- setSession(new Session({ user: me, token }));
27
- console.log('[AuthContext] Session restored for:', me.username);
28
- }
29
- else {
30
- // Token might be expired, invalid, or returned a "blank" user
31
- console.warn('[AuthContext] Invalid session detected during restoration, clearing...');
32
- localStorage.removeItem('armoyu_token');
33
- api.setToken(null);
34
- setUser(null);
35
- setSession(null);
36
- }
37
- }
38
- catch (e) {
39
- console.error('[AuthContext] Failed to restore session:', e);
40
- localStorage.removeItem('armoyu_token');
41
- api.setToken(null);
42
- setUser(null);
43
- setSession(null);
44
- }
45
- }
46
- setIsLoading(false);
47
- }
48
- restoreSession();
49
- }, []);
50
- const login = async (username, password) => {
51
- try {
52
- // Real API login via core library
53
- const { user: loggedInUser, session: newSession } = await api.auth.login(username, password);
54
- // DOUBLE CHECK: Ensure the core library returned a user with an ID
55
- if (!loggedInUser || !loggedInUser.id) {
56
- throw new Error('Giriş başarısız: Geçersiz kullanıcı verisi.');
57
- }
58
- setUser(loggedInUser);
59
- setSession(newSession);
60
- // Store token in localStorage and sync with ArmoyuContext
61
- if (newSession.token) {
62
- setGlobalToken(newSession.token);
63
- }
64
- console.log('[AuthContext] Login successful for:', loggedInUser.username);
65
- setIsLoginModalOpen(false);
66
- }
67
- catch (error) {
68
- console.error('[AuthContext] Login failed:', error);
69
- // Ensure state is cleared on failed login attempt
70
- setUser(null);
71
- setSession(null);
72
- throw error; // Let the component handle the error UI
73
- }
74
- };
75
- const logout = () => {
76
- api.auth.logout(); // Clears internal state and localStorage
77
- setGlobalToken('');
78
- setUser(null);
79
- setSession(null);
80
- };
81
- const updateUser = (updatedUser) => {
82
- if (!updatedUser)
83
- return;
84
- setUser(updatedUser);
85
- if (session) {
86
- setSession(new Session({ ...session, user: updatedUser }));
87
- }
88
- };
89
- const updateSession = (updatedSession) => {
90
- if (!updatedSession)
91
- return;
92
- setSession(updatedSession);
93
- if (updatedSession.token) {
94
- setGlobalToken(updatedSession.token);
95
- }
96
- };
97
- return (_jsx(AuthContext.Provider, { value: {
98
- user,
99
- session,
100
- login,
101
- logout,
102
- isLoading,
103
- isLoginModalOpen,
104
- setIsLoginModalOpen,
105
- updateUser,
106
- updateSession
107
- }, children: children }));
108
- }
109
- export function useAuth() {
110
- const context = useContext(AuthContext);
111
- if (context === undefined) {
112
- throw new Error('useAuth must be used within an AuthProvider');
113
- }
114
- return context;
115
- }
116
- //# sourceMappingURL=AuthContext.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"AuthContext.js","sourceRoot":"","sources":["../../src/context/AuthContext.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;AAEb,OAAc,EAAE,aAAa,EAAE,UAAU,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAC9E,OAAO,EAAQ,OAAO,EAAE,MAAM,cAAc,CAAC;AAC7C,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAc5C,MAAM,WAAW,GAAG,aAAa,CAA8B,SAAS,CAAC,CAAC;AAE1E,MAAM,UAAU,YAAY,CAAC,EAAE,QAAQ,EAAiC;IACtE,MAAM,EAAE,GAAG,EAAE,cAAc,EAAE,GAAG,SAAS,EAAE,CAAC;IAC5C,MAAM,CAAC,IAAI,EAAE,OAAO,CAAC,GAAG,QAAQ,CAAc,IAAI,CAAC,CAAC;IACpD,MAAM,CAAC,OAAO,EAAE,UAAU,CAAC,GAAG,QAAQ,CAAiB,IAAI,CAAC,CAAC;IAC7D,MAAM,CAAC,SAAS,EAAE,YAAY,CAAC,GAAG,QAAQ,CAAC,IAAI,CAAC,CAAC;IACjD,MAAM,CAAC,gBAAgB,EAAE,mBAAmB,CAAC,GAAG,QAAQ,CAAC,KAAK,CAAC,CAAC;IAEhE,SAAS,CAAC,GAAG,EAAE;QACb,KAAK,UAAU,cAAc;YAC3B,2CAA2C;YAC3C,MAAM,KAAK,GAAG,YAAY,C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,WAAW;YAAE,OAAO;QACzB,OAAO,CAAC,WAAW,CAAC,CAAC;QACrB,IAAI,OAAO,EAAE,CAAC;YACZ,UAAU,CAAC,IAAI,OAAO,CAAC,EAAE,GAAG,OAAO,EAAE,IAAI,EAAE,WAAW,EAAE,CAAC,CAAC,CAAC;QAC7D,CAAC;IACH,CAAC,CAAC;IAEF,MAAM,aAAa,GAAG,CAAC,cAAuB,EAAE,EAAE;QAChD,IAAI,CAAC,cAAc;YAAE,OAAO;QAC5B,UAAU,CAAC,cAAc,CAAC,CAAC;QAC3B,IAAI,cAAc,CAAC,KAAK,EAAE,CAAC;YACzB,cAAc,CAAC,cAAc,CAAC,KAAK,CAAC,CAAC;QACvC,CAAC;IACH,CAAC,CAAC;IAEF,OAAO,CACL,KAAC,WAAW,CAAC,QAAQ,IAAC,KAAK,EAAE;YAC3B,IAAI;YACJ,OAAO;YACP,KAAK;YACL,MAAM;YACN,SAAS;YACT,gBAAgB;YAChB,mBAAmB;YACnB,UAAU;YACV,aAAa;SACd,YACE,QAAQ,GACY,CACxB,CAAC;AACJ,CAAC;AAED,MAAM,UAAU,OAAO;IACrB,MAAM,OAAO,GAAG,UAAU,CAAC,WAAW,CAAC,CAAC;IACxC,IAAI,OAAO,KAAK,SAAS,EAAE,CAAC;QAC1B,MAAM,IAAI,KAAK,CAAC,6CAA6C,CAAC,CAAC;IACjE,CAAC;IACD,OAAO,OAAO,CAAC;AACjB,CAAC"}
@@ -1,17 +0,0 @@
1
- import React from 'react';
2
- import { Product, CartItem } from '@armoyu/core';
3
- interface CartContextType {
4
- cart: CartItem[];
5
- addToCart: (product: Product, quantity?: number) => void;
6
- removeFromCart: (productId: string) => void;
7
- updateQuantity: (productId: string, quantity: number) => void;
8
- clearCart: () => void;
9
- totalItems: number;
10
- totalPrice: number;
11
- }
12
- export declare function CartProvider({ children }: {
13
- children: React.ReactNode;
14
- }): import("react/jsx-runtime").JSX.Element;
15
- export declare function useCart(): CartContextType;
16
- export {};
17
- //# sourceMappingURL=CartContext.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"CartContext.d.ts","sourceRoot":"","sources":["../../src/context/CartContext.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAyD,MAAM,OAAO,CAAC;AAC9E,OAAO,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AAGjD,UAAU,eAAe;IACvB,IAAI,EAAE,QAAQ,EAAE,CAAC;IACjB,SAAS,EAAE,CAAC,OAAO,EAAE,OAAO,EAAE,QAAQ,CAAC,EAAE,MAAM,KAAK,IAAI,CAAC;IACzD,cAAc,EAAE,CAAC,SAAS,EAAE,MAAM,KAAK,IAAI,CAAC;IAC5C,cAAc,EAAE,CAAC,SAAS,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,KAAK,IAAI,CAAC;IAC9D,SAAS,EAAE,MAAM,IAAI,CAAC;IACtB,UAAU,EAAE,MAAM,CAAC;IACnB,UAAU,EAAE,MAAM,CAAC;CACpB;AAID,wBAAgB,YAAY,CAAC,EAAE,QAAQ,EAAE,EAAE;IAAE,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAA;CAAE,2CAiEvE;AAED,wBAAgB,OAAO,oBAMtB"}
@@ -1,64 +0,0 @@
1
- 'use client';
2
- import { jsx as _jsx } from "react/jsx-runtime";
3
- import { createContext, useContext, useState, useEffect } from 'react';
4
- import { CartItem } from '@armoyu/core';
5
- const CartContext = createContext(undefined);
6
- export function CartProvider({ children }) {
7
- const [cart, setCart] = useState([]);
8
- // Load cart from localStorage on mount
9
- useEffect(() => {
10
- const savedCart = localStorage.getItem('armoyu_cart');
11
- if (savedCart) {
12
- try {
13
- const parsed = JSON.parse(savedCart);
14
- setCart(parsed.map((i) => CartItem.fromJSON(i)));
15
- }
16
- catch (e) {
17
- console.error('Failed to parse cart', e);
18
- }
19
- }
20
- }, []);
21
- // Save cart to localStorage on change
22
- useEffect(() => {
23
- localStorage.setItem('armoyu_cart', JSON.stringify(cart));
24
- }, [cart]);
25
- const addToCart = (product, quantity = 1) => {
26
- setCart(prev => {
27
- const existing = prev.find(item => item.product.id === product.id);
28
- if (existing) {
29
- return prev.map(item => item.product.id === product.id
30
- ? new CartItem({ ...item, quantity: item.quantity + quantity })
31
- : item);
32
- }
33
- return [...prev, new CartItem({ product, quantity })];
34
- });
35
- };
36
- const removeFromCart = (productId) => {
37
- setCart(prev => prev.filter(item => item.product.id !== productId));
38
- };
39
- const updateQuantity = (productId, quantity) => {
40
- setCart(prev => prev.map(item => item.product.id === productId
41
- ? new CartItem({ ...item, quantity: Math.max(1, quantity) })
42
- : item));
43
- };
44
- const clearCart = () => setCart([]);
45
- const totalItems = cart.reduce((acc, item) => acc + item.quantity, 0);
46
- const totalPrice = cart.reduce((acc, item) => acc + item.getTotalPrice(), 0);
47
- return (_jsx(CartContext.Provider, { value: {
48
- cart,
49
- addToCart,
50
- removeFromCart,
51
- updateQuantity,
52
- clearCart,
53
- totalItems,
54
- totalPrice
55
- }, children: children }));
56
- }
57
- export function useCart() {
58
- const context = useContext(CartContext);
59
- if (context === undefined) {
60
- throw new Error('useCart must be used within a CartProvider');
61
- }
62
- return context;
63
- }
64
- //# sourceMappingURL=CartContext.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"CartContext.js","sourceRoot":"","sources":["../../src/context/CartContext.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;AAEb,OAAc,EAAE,aAAa,EAAE,UAAU,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAC9E,OAAO,EAAW,QAAQ,EAAE,MAAM,cAAc,CAAC;AAajD,MAAM,WAAW,GAAG,aAAa,CAA8B,SAAS,CAAC,CAAC;AAE1E,MAAM,UAAU,YAAY,CAAC,EAAE,QAAQ,EAAiC;IACtE,MAAM,CAAC,IAAI,EAAE,OAAO,CAAC,GAAG,QAAQ,CAAa,EAAE,CAAC,CAAC;IAEjD,uCAAuC;IACvC,SAAS,CAAC,GAAG,EAAE;QACb,MAAM,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,UAAU;SACX,YACE,QAAQ,GACY,CACxB,CAAC;AACJ,CAAC;AAED,MAAM,UAAU,OAAO;IACrB,MAAM,OAAO,GAAG,UAAU,CAAC,WAAW,CAAC,CAAC;IACxC,IAAI,OAAO,KAAK,SAAS,EAAE,CAAC;QAC1B,MAAM,IAAI,KAAK,CAAC,4CAA4C,CAAC,CAAC;IAChE,CAAC;IACD,OAAO,OAAO,CAAC;AACjB,CAAC"}
@@ -1,22 +0,0 @@
1
- import React from 'react';
2
- import { Chat, ChatMessage } from '@armoyu/core';
3
- interface ChatContextType {
4
- isChatOpen: boolean;
5
- isLiveMode: boolean;
6
- chatList: Chat[];
7
- activeMessages: ChatMessage[];
8
- isLoading: boolean;
9
- toggleChat: () => void;
10
- openChat: () => void;
11
- closeChat: () => void;
12
- setLiveMode: (isLive: boolean) => void;
13
- fetchChatList: () => Promise<void>;
14
- fetchMessages: (userId: number, page?: number) => Promise<void>;
15
- sendMessage: (userId: number, content: string) => Promise<boolean>;
16
- }
17
- export declare function ChatProvider({ children }: {
18
- children: React.ReactNode;
19
- }): import("react/jsx-runtime").JSX.Element;
20
- export declare function useChat(): ChatContextType;
21
- export {};
22
- //# sourceMappingURL=ChatContext.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ChatContext.d.ts","sourceRoot":"","sources":["../../src/context/ChatContext.tsx"],"names":[],"mappings":"AAEA,OAAO,KAA2D,MAAM,OAAO,CAAC;AAChF,OAAO,EAAE,IAAI,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAGjD,UAAU,eAAe;IACvB,UAAU,EAAE,OAAO,CAAC;IACpB,UAAU,EAAE,OAAO,CAAC;IACpB,QAAQ,EAAE,IAAI,EAAE,CAAC;IACjB,cAAc,EAAE,WAAW,EAAE,CAAC;IAC9B,SAAS,EAAE,OAAO,CAAC;IAEnB,UAAU,EAAE,MAAM,IAAI,CAAC;IACvB,QAAQ,EAAE,MAAM,IAAI,CAAC;IACrB,SAAS,EAAE,MAAM,IAAI,CAAC;IACtB,WAAW,EAAE,CAAC,MAAM,EAAE,OAAO,KAAK,IAAI,CAAC;IAEvC,aAAa,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,CAAC;IACnC,aAAa,EAAE,CAAC,MAAM,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,MAAM,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;IAChE,WAAW,EAAE,CAAC,MAAM,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,KAAK,OAAO,CAAC,OAAO,CAAC,CAAC;CACpE;AAID,wBAAgB,YAAY,CAAC,EAAE,QAAQ,EAAE,EAAE;IAAE,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAA;CAAE,2CA4FvE;AAED,wBAAgB,OAAO,oBAItB"}
@@ -1,98 +0,0 @@
1
- 'use client';
2
- import { jsx as _jsx } from "react/jsx-runtime";
3
- import { createContext, useContext, useState, useCallback } from 'react';
4
- import { Chat, ChatMessage } from '@armoyu/core';
5
- import { useArmoyu } from './ArmoyuContext';
6
- const ChatContext = createContext(undefined);
7
- export function ChatProvider({ children }) {
8
- const { api, apiKey } = useArmoyu();
9
- const [isChatOpen, setIsChatOpen] = useState(false);
10
- const [isLiveMode, setIsLiveMode] = useState(false);
11
- const [chatList, setChatList] = useState([]);
12
- const [activeMessages, setActiveMessages] = useState([]);
13
- const [isLoading, setIsLoading] = useState(false);
14
- const toggleChat = () => setIsChatOpen(!isChatOpen);
15
- const openChat = () => setIsChatOpen(true);
16
- const closeChat = () => setIsChatOpen(false);
17
- const fetchChatList = useCallback(async () => {
18
- if (!isLiveMode || apiKey === 'armoyu_showcase_key')
19
- return;
20
- setIsLoading(true);
21
- try {
22
- const response = await api.chat.getFriendsChat(1);
23
- console.log("[ChatContext] Raw Chat List Response:", response);
24
- const data = Array.isArray(response) ? response : (response?.icerik || response?.liste || response?.arkadaslar || response?.veriler || []);
25
- if (Array.isArray(data)) {
26
- setChatList(data.map((c) => Chat.fromJSON(c)));
27
- }
28
- }
29
- catch (error) {
30
- console.error("[ChatContext] Fetch chats failed:", error);
31
- }
32
- finally {
33
- setIsLoading(false);
34
- }
35
- }, [api, isLiveMode, apiKey]);
36
- const fetchMessages = useCallback(async (userId, page = 1) => {
37
- if (!isLiveMode || apiKey === 'armoyu_showcase_key')
38
- return;
39
- setIsLoading(true);
40
- try {
41
- // Diagnostic log before API call
42
- console.log(`[ChatContext] Calling fetchMessages for userId: ${userId} (Type: ${typeof userId})`);
43
- const response = await api.chat.getChatHistory(page, { userId });
44
- console.log(`[ChatContext] Raw Messages Response (User: ${userId}):`, response);
45
- const data = Array.isArray(response) ? response : (response?.icerik || response?.liste || response?.sohbetler || response?.veriler || []);
46
- if (Array.isArray(data)) {
47
- const msgs = data.map((m) => ChatMessage.fromJSON(m));
48
- setActiveMessages(page === 1 ? msgs : (prev) => [...msgs, ...prev]);
49
- }
50
- }
51
- catch (error) {
52
- console.error("[ChatContext] Fetch messages failed:", error);
53
- }
54
- finally {
55
- setIsLoading(false);
56
- }
57
- }, [api, isLiveMode, apiKey]);
58
- const sendMessage = useCallback(async (userId, content) => {
59
- if (!isLiveMode || apiKey === 'armoyu_showcase_key')
60
- return false;
61
- try {
62
- const result = await api.chat.sendMessage({ userId, content });
63
- return result && result.durum === 1;
64
- }
65
- catch (error) {
66
- console.error("[ChatContext] Send message failed:", error);
67
- return false;
68
- }
69
- }, [api, isLiveMode, apiKey]);
70
- const setLiveMode = (isLive) => {
71
- setIsLiveMode(isLive);
72
- if (!isLive) {
73
- setChatList([]);
74
- setActiveMessages([]);
75
- }
76
- };
77
- return (_jsx(ChatContext.Provider, { value: {
78
- isChatOpen,
79
- isLiveMode,
80
- chatList,
81
- activeMessages,
82
- isLoading,
83
- toggleChat,
84
- openChat,
85
- closeChat,
86
- setLiveMode,
87
- fetchChatList,
88
- fetchMessages,
89
- sendMessage
90
- }, children: children }));
91
- }
92
- export function useChat() {
93
- const context = useContext(ChatContext);
94
- if (!context)
95
- throw new Error('useChat must be used within ChatProvider');
96
- return context;
97
- }
98
- //# sourceMappingURL=ChatContext.js.map