@armoyu/ui 1.1.25 → 1.1.32
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.
- package/dist/app/Providers.d.ts.map +1 -1
- package/dist/app/gruplar/[groupId]/page.d.ts.map +1 -1
- package/dist/app/management-panel/layout.d.ts +5 -0
- package/dist/app/management-panel/layout.d.ts.map +1 -0
- package/dist/app/management-panel/page.d.ts +2 -0
- package/dist/app/management-panel/page.d.ts.map +1 -0
- package/dist/app/page.d.ts.map +1 -1
- package/dist/components/modules/auth/widgets/LoginWidget.d.ts.map +1 -1
- package/dist/components/modules/auth/widgets/LoginWidget.js +20 -26
- package/dist/components/modules/auth/widgets/LoginWidget.js.map +1 -1
- package/dist/components/modules/auth/widgets/RegisterWidget.d.ts.map +1 -1
- package/dist/components/modules/auth/widgets/RegisterWidget.js +43 -39
- package/dist/components/modules/auth/widgets/RegisterWidget.js.map +1 -1
- package/dist/components/modules/chat/ChatLayout.d.ts.map +1 -1
- package/dist/components/modules/community/CommunityLayout.d.ts.map +1 -1
- package/dist/components/shared/Header.d.ts.map +1 -1
- package/dist/components/shared/Header.js +80 -69
- package/dist/components/shared/Header.js.map +1 -1
- package/dist/components/shared/LoginModal.d.ts.map +1 -1
- package/dist/components/shared/LoginModal.js +7 -10
- package/dist/components/shared/LoginModal.js.map +1 -1
- package/dist/components/showcase/SocialTab.d.ts.map +1 -1
- package/dist/index.d.ts +33 -4
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +175 -274
- package/dist/index.js.map +1 -1
- package/package.json +48 -48
- package/src/globals.css +298 -238
- package/dist/app/Providers.js +0 -36
- package/dist/app/Providers.js.map +0 -1
- package/dist/app/api/proxy/[...path]/route.d.ts +0 -23
- package/dist/app/api/proxy/[...path]/route.d.ts.map +0 -1
- package/dist/app/api/proxy/[...path]/route.js +0 -134
- package/dist/app/api/proxy/[...path]/route.js.map +0 -1
- package/dist/app/egitim/[slug]/page.d.ts +0 -2
- package/dist/app/egitim/[slug]/page.d.ts.map +0 -1
- package/dist/app/egitim/[slug]/page.js +0 -10
- package/dist/app/egitim/[slug]/page.js.map +0 -1
- package/dist/app/etkinlikler/[eventId]/page.d.ts +0 -2
- package/dist/app/etkinlikler/[eventId]/page.d.ts.map +0 -1
- package/dist/app/etkinlikler/[eventId]/page.js +0 -15
- package/dist/app/etkinlikler/[eventId]/page.js.map +0 -1
- package/dist/app/etkinlikler/page.d.ts +0 -2
- package/dist/app/etkinlikler/page.d.ts.map +0 -1
- package/dist/app/etkinlikler/page.js +0 -35
- package/dist/app/etkinlikler/page.js.map +0 -1
- package/dist/app/gruplar/[groupId]/page.js +0 -13
- package/dist/app/gruplar/[groupId]/page.js.map +0 -1
- package/dist/app/layout.js +0 -36
- package/dist/app/layout.js.map +0 -1
- package/dist/app/not-found.d.ts +0 -2
- package/dist/app/not-found.d.ts.map +0 -1
- package/dist/app/not-found.js +0 -10
- package/dist/app/not-found.js.map +0 -1
- package/dist/app/page.js +0 -60
- package/dist/app/page.js.map +0 -1
- package/dist/components/Button.d.ts +0 -8
- package/dist/components/Button.d.ts.map +0 -1
- package/dist/components/Button.js +0 -52
- package/dist/components/Button.js.map +0 -1
- package/dist/components/GenderStatsBar.d.ts +0 -6
- package/dist/components/GenderStatsBar.d.ts.map +0 -1
- package/dist/components/GenderStatsBar.js +0 -11
- package/dist/components/GenderStatsBar.js.map +0 -1
- package/dist/components/RollingNumber.d.ts +0 -7
- package/dist/components/RollingNumber.d.ts.map +0 -1
- package/dist/components/RollingNumber.js +0 -27
- package/dist/components/RollingNumber.js.map +0 -1
- package/dist/components/Slider.d.ts +0 -11
- package/dist/components/Slider.d.ts.map +0 -1
- package/dist/components/Slider.js +0 -39
- package/dist/components/Slider.js.map +0 -1
- package/dist/components/StatsGrid.d.ts +0 -6
- package/dist/components/StatsGrid.d.ts.map +0 -1
- package/dist/components/StatsGrid.js +0 -17
- package/dist/components/StatsGrid.js.map +0 -1
- package/dist/components/ViewModeToggle.d.ts +0 -8
- package/dist/components/ViewModeToggle.d.ts.map +0 -1
- package/dist/components/ViewModeToggle.js +0 -13
- package/dist/components/ViewModeToggle.js.map +0 -1
- package/dist/components/common/Mentions/HashtagLink.d.ts +0 -7
- package/dist/components/common/Mentions/HashtagLink.d.ts.map +0 -1
- package/dist/components/common/Mentions/HashtagLink.js +0 -14
- package/dist/components/common/Mentions/HashtagLink.js.map +0 -1
- package/dist/components/common/Mentions/MentionLink.d.ts +0 -7
- package/dist/components/common/Mentions/MentionLink.d.ts.map +0 -1
- package/dist/components/common/Mentions/MentionLink.js +0 -40
- package/dist/components/common/Mentions/MentionLink.js.map +0 -1
- package/dist/components/common/Mentions/MentionText.d.ts +0 -8
- package/dist/components/common/Mentions/MentionText.d.ts.map +0 -1
- package/dist/components/common/Mentions/MentionText.js +0 -63
- package/dist/components/common/Mentions/MentionText.js.map +0 -1
- package/dist/components/modules/auth/widgets/AuthJoinCard.d.ts +0 -2
- package/dist/components/modules/auth/widgets/AuthJoinCard.d.ts.map +0 -1
- package/dist/components/modules/auth/widgets/AuthJoinCard.js +0 -19
- package/dist/components/modules/auth/widgets/AuthJoinCard.js.map +0 -1
- package/dist/components/modules/auth/widgets/InviteWidget.d.ts +0 -6
- package/dist/components/modules/auth/widgets/InviteWidget.d.ts.map +0 -1
- package/dist/components/modules/auth/widgets/InviteWidget.js +0 -71
- package/dist/components/modules/auth/widgets/InviteWidget.js.map +0 -1
- package/dist/components/modules/blog/pages/MyArticlesPage.d.ts +0 -2
- package/dist/components/modules/blog/pages/MyArticlesPage.d.ts.map +0 -1
- package/dist/components/modules/blog/pages/MyArticlesPage.js +0 -232
- package/dist/components/modules/blog/pages/MyArticlesPage.js.map +0 -1
- package/dist/components/modules/chat/ChatLayout.js +0 -238
- package/dist/components/modules/chat/ChatLayout.js.map +0 -1
- package/dist/components/modules/chat/widgets/ChatInput.d.ts +0 -5
- package/dist/components/modules/chat/widgets/ChatInput.d.ts.map +0 -1
- package/dist/components/modules/chat/widgets/ChatInput.js +0 -34
- package/dist/components/modules/chat/widgets/ChatInput.js.map +0 -1
- package/dist/components/modules/chat/widgets/ChatList.d.ts +0 -7
- package/dist/components/modules/chat/widgets/ChatList.d.ts.map +0 -1
- package/dist/components/modules/chat/widgets/ChatList.js +0 -77
- package/dist/components/modules/chat/widgets/ChatList.js.map +0 -1
- package/dist/components/modules/chat/widgets/ChatMessage.d.ts +0 -12
- package/dist/components/modules/chat/widgets/ChatMessage.d.ts.map +0 -1
- package/dist/components/modules/chat/widgets/ChatMessage.js +0 -34
- package/dist/components/modules/chat/widgets/ChatMessage.js.map +0 -1
- package/dist/components/modules/chat/widgets/ChatNotes.d.ts +0 -2
- package/dist/components/modules/chat/widgets/ChatNotes.d.ts.map +0 -1
- package/dist/components/modules/chat/widgets/ChatNotes.js +0 -18
- package/dist/components/modules/chat/widgets/ChatNotes.js.map +0 -1
- package/dist/components/modules/cloud/CloudModal.d.ts +0 -12
- package/dist/components/modules/cloud/CloudModal.d.ts.map +0 -1
- package/dist/components/modules/cloud/CloudModal.js +0 -254
- package/dist/components/modules/cloud/CloudModal.js.map +0 -1
- package/dist/components/modules/cloud/CloudWidget.d.ts +0 -9
- package/dist/components/modules/cloud/CloudWidget.d.ts.map +0 -1
- package/dist/components/modules/cloud/CloudWidget.js +0 -10
- package/dist/components/modules/cloud/CloudWidget.js.map +0 -1
- package/dist/components/modules/community/CommunityLayout.js +0 -139
- package/dist/components/modules/community/CommunityLayout.js.map +0 -1
- package/dist/components/modules/community/widgets/GroupAboutCard.d.ts +0 -6
- package/dist/components/modules/community/widgets/GroupAboutCard.d.ts.map +0 -1
- package/dist/components/modules/community/widgets/GroupAboutCard.js +0 -10
- package/dist/components/modules/community/widgets/GroupAboutCard.js.map +0 -1
- package/dist/components/modules/community/widgets/GroupFeedSection.d.ts +0 -9
- package/dist/components/modules/community/widgets/GroupFeedSection.d.ts.map +0 -1
- package/dist/components/modules/community/widgets/GroupFeedSection.js +0 -11
- package/dist/components/modules/community/widgets/GroupFeedSection.js.map +0 -1
- package/dist/components/modules/community/widgets/GroupHeader.d.ts +0 -11
- package/dist/components/modules/community/widgets/GroupHeader.d.ts.map +0 -1
- package/dist/components/modules/community/widgets/GroupHeader.js +0 -21
- package/dist/components/modules/community/widgets/GroupHeader.js.map +0 -1
- package/dist/components/modules/community/widgets/GroupMenu.d.ts +0 -10
- package/dist/components/modules/community/widgets/GroupMenu.d.ts.map +0 -1
- package/dist/components/modules/community/widgets/GroupMenu.js +0 -23
- package/dist/components/modules/community/widgets/GroupMenu.js.map +0 -1
- package/dist/components/modules/community/widgets/GroupPermissions.d.ts +0 -6
- package/dist/components/modules/community/widgets/GroupPermissions.d.ts.map +0 -1
- package/dist/components/modules/community/widgets/GroupPermissions.js +0 -10
- package/dist/components/modules/community/widgets/GroupPermissions.js.map +0 -1
- package/dist/components/modules/community/widgets/GroupStatsGrid.d.ts +0 -11
- package/dist/components/modules/community/widgets/GroupStatsGrid.d.ts.map +0 -1
- package/dist/components/modules/community/widgets/GroupStatsGrid.js +0 -16
- package/dist/components/modules/community/widgets/GroupStatsGrid.js.map +0 -1
- package/dist/components/modules/community/widgets/GroupTopMembers.d.ts +0 -7
- package/dist/components/modules/community/widgets/GroupTopMembers.d.ts.map +0 -1
- package/dist/components/modules/community/widgets/GroupTopMembers.js +0 -14
- package/dist/components/modules/community/widgets/GroupTopMembers.js.map +0 -1
- package/dist/components/modules/community/widgets/SchoolCard.d.ts +0 -7
- package/dist/components/modules/community/widgets/SchoolCard.d.ts.map +0 -1
- package/dist/components/modules/community/widgets/SchoolCard.js +0 -14
- package/dist/components/modules/community/widgets/SchoolCard.js.map +0 -1
- package/dist/components/modules/community/widgets/SurveyCard.d.ts +0 -8
- package/dist/components/modules/community/widgets/SurveyCard.d.ts.map +0 -1
- package/dist/components/modules/community/widgets/SurveyCard.js +0 -31
- package/dist/components/modules/community/widgets/SurveyCard.js.map +0 -1
- package/dist/components/modules/education/pages/EducationPage.d.ts +0 -2
- package/dist/components/modules/education/pages/EducationPage.d.ts.map +0 -1
- package/dist/components/modules/education/pages/EducationPage.js +0 -59
- package/dist/components/modules/education/pages/EducationPage.js.map +0 -1
- package/dist/components/modules/education/pages/SchoolDetailPage.d.ts +0 -2
- package/dist/components/modules/education/pages/SchoolDetailPage.d.ts.map +0 -1
- package/dist/components/modules/education/pages/SchoolDetailPage.js +0 -82
- package/dist/components/modules/education/pages/SchoolDetailPage.js.map +0 -1
- package/dist/components/modules/events/DetailPage.d.ts +0 -9
- package/dist/components/modules/events/DetailPage.d.ts.map +0 -1
- package/dist/components/modules/events/DetailPage.js +0 -88
- package/dist/components/modules/events/DetailPage.js.map +0 -1
- package/dist/components/modules/events/EventsLayout.d.ts +0 -8
- package/dist/components/modules/events/EventsLayout.d.ts.map +0 -1
- package/dist/components/modules/events/EventsLayout.js +0 -9
- package/dist/components/modules/events/EventsLayout.js.map +0 -1
- package/dist/components/modules/events/EventsPage.d.ts +0 -11
- package/dist/components/modules/events/EventsPage.d.ts.map +0 -1
- package/dist/components/modules/events/EventsPage.js +0 -94
- package/dist/components/modules/events/EventsPage.js.map +0 -1
- package/dist/components/modules/events/index.d.ts +0 -7
- package/dist/components/modules/events/index.d.ts.map +0 -1
- package/dist/components/modules/events/index.js +0 -17
- package/dist/components/modules/events/index.js.map +0 -1
- package/dist/components/modules/events/widgets/EventCard.d.ts +0 -12
- package/dist/components/modules/events/widgets/EventCard.d.ts.map +0 -1
- package/dist/components/modules/events/widgets/EventCard.js +0 -18
- package/dist/components/modules/events/widgets/EventCard.js.map +0 -1
- package/dist/components/modules/events/widgets/EventFormModal.d.ts +0 -9
- package/dist/components/modules/events/widgets/EventFormModal.d.ts.map +0 -1
- package/dist/components/modules/events/widgets/EventFormModal.js +0 -27
- package/dist/components/modules/events/widgets/EventFormModal.js.map +0 -1
- package/dist/components/modules/events/widgets/EventList.d.ts +0 -12
- package/dist/components/modules/events/widgets/EventList.d.ts.map +0 -1
- package/dist/components/modules/events/widgets/EventList.js +0 -36
- package/dist/components/modules/events/widgets/EventList.js.map +0 -1
- package/dist/components/modules/events/widgets/EventShowcase.d.ts +0 -6
- package/dist/components/modules/events/widgets/EventShowcase.d.ts.map +0 -1
- package/dist/components/modules/events/widgets/EventShowcase.js +0 -83
- package/dist/components/modules/events/widgets/EventShowcase.js.map +0 -1
- package/dist/components/modules/forum/pages/ForumBoardPage.d.ts +0 -8
- package/dist/components/modules/forum/pages/ForumBoardPage.d.ts.map +0 -1
- package/dist/components/modules/forum/pages/ForumBoardPage.js +0 -21
- package/dist/components/modules/forum/pages/ForumBoardPage.js.map +0 -1
- package/dist/components/modules/forum/pages/ForumPage.d.ts +0 -2
- package/dist/components/modules/forum/pages/ForumPage.d.ts.map +0 -1
- package/dist/components/modules/forum/pages/ForumPage.js +0 -17
- package/dist/components/modules/forum/pages/ForumPage.js.map +0 -1
- package/dist/components/modules/forum/pages/ForumTopicPage.d.ts +0 -8
- package/dist/components/modules/forum/pages/ForumTopicPage.d.ts.map +0 -1
- package/dist/components/modules/forum/pages/ForumTopicPage.js +0 -58
- package/dist/components/modules/forum/pages/ForumTopicPage.js.map +0 -1
- package/dist/components/modules/forum/widgets/ForumBoard.d.ts +0 -17
- package/dist/components/modules/forum/widgets/ForumBoard.d.ts.map +0 -1
- package/dist/components/modules/forum/widgets/ForumBoard.js +0 -13
- package/dist/components/modules/forum/widgets/ForumBoard.js.map +0 -1
- package/dist/components/modules/forum/widgets/ForumCategoryList.d.ts +0 -6
- package/dist/components/modules/forum/widgets/ForumCategoryList.d.ts.map +0 -1
- package/dist/components/modules/forum/widgets/ForumCategoryList.js +0 -10
- package/dist/components/modules/forum/widgets/ForumCategoryList.js.map +0 -1
- package/dist/components/modules/forum/widgets/ForumHeaderWidget.d.ts +0 -6
- package/dist/components/modules/forum/widgets/ForumHeaderWidget.d.ts.map +0 -1
- package/dist/components/modules/forum/widgets/ForumHeaderWidget.js +0 -9
- package/dist/components/modules/forum/widgets/ForumHeaderWidget.js.map +0 -1
- package/dist/components/modules/forum/widgets/ForumPost.d.ts +0 -14
- package/dist/components/modules/forum/widgets/ForumPost.d.ts.map +0 -1
- package/dist/components/modules/forum/widgets/ForumPost.js +0 -9
- package/dist/components/modules/forum/widgets/ForumPost.js.map +0 -1
- package/dist/components/modules/forum/widgets/ForumSidebar.d.ts +0 -2
- package/dist/components/modules/forum/widgets/ForumSidebar.d.ts.map +0 -1
- package/dist/components/modules/forum/widgets/ForumSidebar.js +0 -9
- package/dist/components/modules/forum/widgets/ForumSidebar.js.map +0 -1
- package/dist/components/modules/forum/widgets/NewTopicModal.d.ts +0 -8
- package/dist/components/modules/forum/widgets/NewTopicModal.d.ts.map +0 -1
- package/dist/components/modules/forum/widgets/NewTopicModal.js +0 -30
- package/dist/components/modules/forum/widgets/NewTopicModal.js.map +0 -1
- package/dist/components/modules/forum/widgets/TopicItem.d.ts +0 -16
- package/dist/components/modules/forum/widgets/TopicItem.d.ts.map +0 -1
- package/dist/components/modules/forum/widgets/TopicItem.js +0 -13
- package/dist/components/modules/forum/widgets/TopicItem.js.map +0 -1
- package/dist/components/modules/galleries/widgets/GalleryCard.d.ts +0 -10
- package/dist/components/modules/galleries/widgets/GalleryCard.d.ts.map +0 -1
- package/dist/components/modules/galleries/widgets/GalleryCard.js +0 -9
- package/dist/components/modules/galleries/widgets/GalleryCard.js.map +0 -1
- package/dist/components/modules/galleries/widgets/GalleryFilterBar.d.ts +0 -8
- package/dist/components/modules/galleries/widgets/GalleryFilterBar.d.ts.map +0 -1
- package/dist/components/modules/galleries/widgets/GalleryFilterBar.js +0 -9
- package/dist/components/modules/galleries/widgets/GalleryFilterBar.js.map +0 -1
- package/dist/components/modules/galleries/widgets/GalleryHeaderWidget.d.ts +0 -2
- package/dist/components/modules/galleries/widgets/GalleryHeaderWidget.d.ts.map +0 -1
- package/dist/components/modules/galleries/widgets/GalleryHeaderWidget.js +0 -9
- package/dist/components/modules/galleries/widgets/GalleryHeaderWidget.js.map +0 -1
- package/dist/components/modules/galleries/widgets/GalleryMasonryGrid.d.ts +0 -7
- package/dist/components/modules/galleries/widgets/GalleryMasonryGrid.d.ts.map +0 -1
- package/dist/components/modules/galleries/widgets/GalleryMasonryGrid.js +0 -9
- package/dist/components/modules/galleries/widgets/GalleryMasonryGrid.js.map +0 -1
- package/dist/components/modules/giveaway/pages/GiveawayDetailPage.d.ts +0 -6
- package/dist/components/modules/giveaway/pages/GiveawayDetailPage.d.ts.map +0 -1
- package/dist/components/modules/giveaway/pages/GiveawayDetailPage.js +0 -44
- package/dist/components/modules/giveaway/pages/GiveawayDetailPage.js.map +0 -1
- package/dist/components/modules/giveaway/pages/GiveawaysPage.d.ts +0 -2
- package/dist/components/modules/giveaway/pages/GiveawaysPage.d.ts.map +0 -1
- package/dist/components/modules/giveaway/pages/GiveawaysPage.js +0 -63
- package/dist/components/modules/giveaway/pages/GiveawaysPage.js.map +0 -1
- package/dist/components/modules/giveaways/pages/GiveawayDetailPage.d.ts +0 -6
- package/dist/components/modules/giveaways/pages/GiveawayDetailPage.d.ts.map +0 -1
- package/dist/components/modules/giveaways/pages/GiveawayDetailPage.js +0 -44
- package/dist/components/modules/giveaways/pages/GiveawayDetailPage.js.map +0 -1
- package/dist/components/modules/giveaways/pages/GiveawaysPage.d.ts +0 -2
- package/dist/components/modules/giveaways/pages/GiveawaysPage.d.ts.map +0 -1
- package/dist/components/modules/giveaways/pages/GiveawaysPage.js +0 -63
- package/dist/components/modules/giveaways/pages/GiveawaysPage.js.map +0 -1
- package/dist/components/modules/giveaways/widgets/GiveawayCard.d.ts +0 -10
- package/dist/components/modules/giveaways/widgets/GiveawayCard.d.ts.map +0 -1
- package/dist/components/modules/giveaways/widgets/GiveawayCard.js +0 -10
- package/dist/components/modules/giveaways/widgets/GiveawayCard.js.map +0 -1
- package/dist/components/modules/groups/widgets/ApplicationModal.d.ts +0 -8
- package/dist/components/modules/groups/widgets/ApplicationModal.d.ts.map +0 -1
- package/dist/components/modules/groups/widgets/ApplicationModal.js +0 -31
- package/dist/components/modules/groups/widgets/ApplicationModal.js.map +0 -1
- package/dist/components/modules/groups/widgets/GroupCard.d.ts +0 -14
- package/dist/components/modules/groups/widgets/GroupCard.d.ts.map +0 -1
- package/dist/components/modules/groups/widgets/GroupCard.js +0 -14
- package/dist/components/modules/groups/widgets/GroupCard.js.map +0 -1
- package/dist/components/modules/guest/widgets/Introduction.d.ts +0 -2
- package/dist/components/modules/guest/widgets/Introduction.d.ts.map +0 -1
- package/dist/components/modules/guest/widgets/Introduction.js +0 -18
- package/dist/components/modules/guest/widgets/Introduction.js.map +0 -1
- package/dist/components/modules/management/ManagementAccessDenied.d.ts +0 -7
- package/dist/components/modules/management/ManagementAccessDenied.d.ts.map +0 -1
- package/dist/components/modules/management/ManagementAccessDenied.js +0 -14
- package/dist/components/modules/management/ManagementAccessDenied.js.map +0 -1
- package/dist/components/modules/management/ManagementLayout.d.ts +0 -14
- package/dist/components/modules/management/ManagementLayout.d.ts.map +0 -1
- package/dist/components/modules/management/ManagementLayout.js +0 -17
- package/dist/components/modules/management/ManagementLayout.js.map +0 -1
- package/dist/components/modules/management/ManagementMobileToggle.d.ts +0 -6
- package/dist/components/modules/management/ManagementMobileToggle.d.ts.map +0 -1
- package/dist/components/modules/management/ManagementMobileToggle.js +0 -10
- package/dist/components/modules/management/ManagementMobileToggle.js.map +0 -1
- package/dist/components/modules/management/ManagementSidebar.d.ts +0 -17
- package/dist/components/modules/management/ManagementSidebar.d.ts.map +0 -1
- package/dist/components/modules/management/ManagementSidebar.js +0 -22
- package/dist/components/modules/management/ManagementSidebar.js.map +0 -1
- package/dist/components/modules/management/widgets/ManagementActivityFeed.d.ts +0 -18
- package/dist/components/modules/management/widgets/ManagementActivityFeed.d.ts.map +0 -1
- package/dist/components/modules/management/widgets/ManagementActivityFeed.js +0 -14
- package/dist/components/modules/management/widgets/ManagementActivityFeed.js.map +0 -1
- package/dist/components/modules/management/widgets/ManagementDashboard.d.ts +0 -45
- package/dist/components/modules/management/widgets/ManagementDashboard.d.ts.map +0 -1
- package/dist/components/modules/management/widgets/ManagementDashboard.js +0 -27
- package/dist/components/modules/management/widgets/ManagementDashboard.js.map +0 -1
- package/dist/components/modules/management/widgets/ManagementHeader.d.ts +0 -8
- package/dist/components/modules/management/widgets/ManagementHeader.d.ts.map +0 -1
- package/dist/components/modules/management/widgets/ManagementHeader.js +0 -9
- package/dist/components/modules/management/widgets/ManagementHeader.js.map +0 -1
- package/dist/components/modules/management/widgets/ManagementQuickActions.d.ts +0 -10
- package/dist/components/modules/management/widgets/ManagementQuickActions.d.ts.map +0 -1
- package/dist/components/modules/management/widgets/ManagementQuickActions.js +0 -14
- package/dist/components/modules/management/widgets/ManagementQuickActions.js.map +0 -1
- package/dist/components/modules/management/widgets/ManagementStatsGrid.d.ts +0 -14
- package/dist/components/modules/management/widgets/ManagementStatsGrid.d.ts.map +0 -1
- package/dist/components/modules/management/widgets/ManagementStatsGrid.js +0 -10
- package/dist/components/modules/management/widgets/ManagementStatsGrid.js.map +0 -1
- package/dist/components/modules/mods/pages/ModDetailPage.d.ts +0 -7
- package/dist/components/modules/mods/pages/ModDetailPage.d.ts.map +0 -1
- package/dist/components/modules/mods/pages/ModDetailPage.js +0 -27
- package/dist/components/modules/mods/pages/ModDetailPage.js.map +0 -1
- package/dist/components/modules/mods/pages/ModsPage.d.ts +0 -20
- package/dist/components/modules/mods/pages/ModsPage.d.ts.map +0 -1
- package/dist/components/modules/mods/pages/ModsPage.js +0 -50
- package/dist/components/modules/mods/pages/ModsPage.js.map +0 -1
- package/dist/components/modules/news/NewsLayout.d.ts +0 -7
- package/dist/components/modules/news/NewsLayout.d.ts.map +0 -1
- package/dist/components/modules/news/NewsLayout.js +0 -10
- package/dist/components/modules/news/NewsLayout.js.map +0 -1
- package/dist/components/modules/news/index.d.ts +0 -6
- package/dist/components/modules/news/index.d.ts.map +0 -1
- package/dist/components/modules/news/index.js +0 -22
- package/dist/components/modules/news/index.js.map +0 -1
- package/dist/components/modules/news/pages/NewsDetailPage.d.ts +0 -7
- package/dist/components/modules/news/pages/NewsDetailPage.d.ts.map +0 -1
- package/dist/components/modules/news/pages/NewsDetailPage.js +0 -59
- package/dist/components/modules/news/pages/NewsDetailPage.js.map +0 -1
- package/dist/components/modules/news/pages/NewsPage.d.ts +0 -2
- package/dist/components/modules/news/pages/NewsPage.d.ts.map +0 -1
- package/dist/components/modules/news/pages/NewsPage.js +0 -72
- package/dist/components/modules/news/pages/NewsPage.js.map +0 -1
- package/dist/components/modules/news/widgets/NewsCard.d.ts +0 -13
- package/dist/components/modules/news/widgets/NewsCard.d.ts.map +0 -1
- package/dist/components/modules/news/widgets/NewsCard.js +0 -13
- package/dist/components/modules/news/widgets/NewsCard.js.map +0 -1
- package/dist/components/modules/news/widgets/NewsComments.d.ts +0 -4
- package/dist/components/modules/news/widgets/NewsComments.d.ts.map +0 -1
- package/dist/components/modules/news/widgets/NewsComments.js +0 -10
- package/dist/components/modules/news/widgets/NewsComments.js.map +0 -1
- package/dist/components/modules/news/widgets/NewsDetailAuthor.d.ts +0 -8
- package/dist/components/modules/news/widgets/NewsDetailAuthor.d.ts.map +0 -1
- package/dist/components/modules/news/widgets/NewsDetailAuthor.js +0 -9
- package/dist/components/modules/news/widgets/NewsDetailAuthor.js.map +0 -1
- package/dist/components/modules/news/widgets/NewsDetailHero.d.ts +0 -9
- package/dist/components/modules/news/widgets/NewsDetailHero.d.ts.map +0 -1
- package/dist/components/modules/news/widgets/NewsDetailHero.js +0 -9
- package/dist/components/modules/news/widgets/NewsDetailHero.js.map +0 -1
- package/dist/components/modules/news/widgets/NewsDetailInteraction.d.ts +0 -7
- package/dist/components/modules/news/widgets/NewsDetailInteraction.d.ts.map +0 -1
- package/dist/components/modules/news/widgets/NewsDetailInteraction.js +0 -11
- package/dist/components/modules/news/widgets/NewsDetailInteraction.js.map +0 -1
- package/dist/components/modules/news/widgets/NewsDetailSidebar.d.ts +0 -8
- package/dist/components/modules/news/widgets/NewsDetailSidebar.d.ts.map +0 -1
- package/dist/components/modules/news/widgets/NewsDetailSidebar.js +0 -9
- package/dist/components/modules/news/widgets/NewsDetailSidebar.js.map +0 -1
- package/dist/components/modules/news/widgets/NewsHero.d.ts +0 -2
- package/dist/components/modules/news/widgets/NewsHero.d.ts.map +0 -1
- package/dist/components/modules/news/widgets/NewsHero.js +0 -10
- package/dist/components/modules/news/widgets/NewsHero.js.map +0 -1
- package/dist/components/modules/poll/pages/PollsPage.d.ts +0 -2
- package/dist/components/modules/poll/pages/PollsPage.d.ts.map +0 -1
- package/dist/components/modules/poll/pages/PollsPage.js +0 -60
- package/dist/components/modules/poll/pages/PollsPage.js.map +0 -1
- package/dist/components/modules/posts/widgets/MediaLightbox.d.ts +0 -28
- package/dist/components/modules/posts/widgets/MediaLightbox.d.ts.map +0 -1
- package/dist/components/modules/posts/widgets/MediaLightbox.js +0 -93
- package/dist/components/modules/posts/widgets/MediaLightbox.js.map +0 -1
- package/dist/components/modules/posts/widgets/PostCard.d.ts +0 -36
- package/dist/components/modules/posts/widgets/PostCard.d.ts.map +0 -1
- package/dist/components/modules/posts/widgets/PostCard.js +0 -296
- package/dist/components/modules/posts/widgets/PostCard.js.map +0 -1
- package/dist/components/modules/posts/widgets/PostInteractionsModal.d.ts +0 -15
- package/dist/components/modules/posts/widgets/PostInteractionsModal.d.ts.map +0 -1
- package/dist/components/modules/posts/widgets/PostInteractionsModal.js +0 -19
- package/dist/components/modules/posts/widgets/PostInteractionsModal.js.map +0 -1
- package/dist/components/modules/posts/widgets/RepostModal.d.ts +0 -22
- package/dist/components/modules/posts/widgets/RepostModal.d.ts.map +0 -1
- package/dist/components/modules/posts/widgets/RepostModal.js +0 -79
- package/dist/components/modules/posts/widgets/RepostModal.js.map +0 -1
- package/dist/components/modules/posts/widgets/SocialFeed.d.ts +0 -23
- package/dist/components/modules/posts/widgets/SocialFeed.d.ts.map +0 -1
- package/dist/components/modules/posts/widgets/SocialFeed.js +0 -126
- package/dist/components/modules/posts/widgets/SocialFeed.js.map +0 -1
- package/dist/components/modules/posts/widgets/Stories.d.ts +0 -2
- package/dist/components/modules/posts/widgets/Stories.d.ts.map +0 -1
- package/dist/components/modules/posts/widgets/Stories.js +0 -24
- package/dist/components/modules/posts/widgets/Stories.js.map +0 -1
- package/dist/components/modules/posts/widgets/StoryViewer.d.ts +0 -10
- package/dist/components/modules/posts/widgets/StoryViewer.d.ts.map +0 -1
- package/dist/components/modules/posts/widgets/StoryViewer.js +0 -54
- package/dist/components/modules/posts/widgets/StoryViewer.js.map +0 -1
- package/dist/components/modules/posts/widgets/reels/ReelCard.d.ts +0 -16
- package/dist/components/modules/posts/widgets/reels/ReelCard.d.ts.map +0 -1
- package/dist/components/modules/posts/widgets/reels/ReelCard.js +0 -58
- package/dist/components/modules/posts/widgets/reels/ReelCard.js.map +0 -1
- package/dist/components/modules/posts/widgets/reels/ReelsContainer.d.ts +0 -7
- package/dist/components/modules/posts/widgets/reels/ReelsContainer.d.ts.map +0 -1
- package/dist/components/modules/posts/widgets/reels/ReelsContainer.js +0 -27
- package/dist/components/modules/posts/widgets/reels/ReelsContainer.js.map +0 -1
- package/dist/components/modules/profile/ProfileLayout.js +0 -73
- package/dist/components/modules/profile/ProfileLayout.js.map +0 -1
- package/dist/components/modules/profile/tabs/AboutTab.d.ts +0 -10
- package/dist/components/modules/profile/tabs/AboutTab.d.ts.map +0 -1
- package/dist/components/modules/profile/tabs/AboutTab.js +0 -12
- package/dist/components/modules/profile/tabs/AboutTab.js.map +0 -1
- package/dist/components/modules/profile/tabs/CareerTab.d.ts +0 -8
- package/dist/components/modules/profile/tabs/CareerTab.d.ts.map +0 -1
- package/dist/components/modules/profile/tabs/CareerTab.js +0 -60
- package/dist/components/modules/profile/tabs/CareerTab.js.map +0 -1
- package/dist/components/modules/profile/tabs/FriendsTab.d.ts +0 -7
- package/dist/components/modules/profile/tabs/FriendsTab.d.ts.map +0 -1
- package/dist/components/modules/profile/tabs/FriendsTab.js +0 -52
- package/dist/components/modules/profile/tabs/FriendsTab.js.map +0 -1
- package/dist/components/modules/profile/tabs/GamesTab.d.ts +0 -7
- package/dist/components/modules/profile/tabs/GamesTab.d.ts.map +0 -1
- package/dist/components/modules/profile/tabs/GamesTab.js +0 -27
- package/dist/components/modules/profile/tabs/GamesTab.js.map +0 -1
- package/dist/components/modules/profile/tabs/GroupsTab.d.ts +0 -7
- package/dist/components/modules/profile/tabs/GroupsTab.d.ts.map +0 -1
- package/dist/components/modules/profile/tabs/GroupsTab.js +0 -15
- package/dist/components/modules/profile/tabs/GroupsTab.js.map +0 -1
- package/dist/components/modules/profile/tabs/MediaTab.d.ts +0 -7
- package/dist/components/modules/profile/tabs/MediaTab.d.ts.map +0 -1
- package/dist/components/modules/profile/tabs/MediaTab.js +0 -84
- package/dist/components/modules/profile/tabs/MediaTab.js.map +0 -1
- package/dist/components/modules/profile/tabs/PostsTab.js +0 -70
- package/dist/components/modules/profile/tabs/PostsTab.js.map +0 -1
- package/dist/components/modules/profile/tabs/QuestionsTab.d.ts +0 -6
- package/dist/components/modules/profile/tabs/QuestionsTab.d.ts.map +0 -1
- package/dist/components/modules/profile/tabs/QuestionsTab.js +0 -42
- package/dist/components/modules/profile/tabs/QuestionsTab.js.map +0 -1
- package/dist/components/modules/profile/tabs/TaggedPostsTab.js +0 -12
- package/dist/components/modules/profile/tabs/TaggedPostsTab.js.map +0 -1
- package/dist/components/modules/profile/tabs/WallTab.js +0 -76
- package/dist/components/modules/profile/tabs/WallTab.js.map +0 -1
- package/dist/components/modules/profile/widgets/CloudStorageModal.d.ts +0 -9
- package/dist/components/modules/profile/widgets/CloudStorageModal.d.ts.map +0 -1
- package/dist/components/modules/profile/widgets/CloudStorageModal.js +0 -35
- package/dist/components/modules/profile/widgets/CloudStorageModal.js.map +0 -1
- package/dist/components/modules/profile/widgets/EditProfileModal.d.ts +0 -9
- package/dist/components/modules/profile/widgets/EditProfileModal.d.ts.map +0 -1
- package/dist/components/modules/profile/widgets/EditProfileModal.js +0 -81
- package/dist/components/modules/profile/widgets/EditProfileModal.js.map +0 -1
- package/dist/components/modules/profile/widgets/ProfileBadgesWidget.d.ts +0 -2
- package/dist/components/modules/profile/widgets/ProfileBadgesWidget.d.ts.map +0 -1
- package/dist/components/modules/profile/widgets/ProfileBadgesWidget.js +0 -17
- package/dist/components/modules/profile/widgets/ProfileBadgesWidget.js.map +0 -1
- package/dist/components/modules/profile/widgets/ProfileCloudWidget.d.ts +0 -6
- package/dist/components/modules/profile/widgets/ProfileCloudWidget.d.ts.map +0 -1
- package/dist/components/modules/profile/widgets/ProfileCloudWidget.js +0 -9
- package/dist/components/modules/profile/widgets/ProfileCloudWidget.js.map +0 -1
- package/dist/components/modules/profile/widgets/ProfileFriendsWidget.d.ts +0 -8
- package/dist/components/modules/profile/widgets/ProfileFriendsWidget.d.ts.map +0 -1
- package/dist/components/modules/profile/widgets/ProfileFriendsWidget.js +0 -15
- package/dist/components/modules/profile/widgets/ProfileFriendsWidget.js.map +0 -1
- package/dist/components/modules/profile/widgets/ProfileGamesWidget.d.ts +0 -7
- package/dist/components/modules/profile/widgets/ProfileGamesWidget.d.ts.map +0 -1
- package/dist/components/modules/profile/widgets/ProfileGamesWidget.js +0 -14
- package/dist/components/modules/profile/widgets/ProfileGamesWidget.js.map +0 -1
- package/dist/components/modules/profile/widgets/ProfileGroupsWidget.d.ts +0 -7
- package/dist/components/modules/profile/widgets/ProfileGroupsWidget.d.ts.map +0 -1
- package/dist/components/modules/profile/widgets/ProfileGroupsWidget.js +0 -14
- package/dist/components/modules/profile/widgets/ProfileGroupsWidget.js.map +0 -1
- package/dist/components/modules/profile/widgets/ProfileHeader.d.ts +0 -8
- package/dist/components/modules/profile/widgets/ProfileHeader.d.ts.map +0 -1
- package/dist/components/modules/profile/widgets/ProfileHeader.js +0 -35
- package/dist/components/modules/profile/widgets/ProfileHeader.js.map +0 -1
- package/dist/components/modules/profile/widgets/ProfileInfoWidget.d.ts +0 -10
- package/dist/components/modules/profile/widgets/ProfileInfoWidget.d.ts.map +0 -1
- package/dist/components/modules/profile/widgets/ProfileInfoWidget.js +0 -44
- package/dist/components/modules/profile/widgets/ProfileInfoWidget.js.map +0 -1
- package/dist/components/modules/profile/widgets/ProfileSidebar.js +0 -14
- package/dist/components/modules/profile/widgets/ProfileSidebar.js.map +0 -1
- package/dist/components/modules/profile/widgets/ProfileStats.d.ts +0 -9
- package/dist/components/modules/profile/widgets/ProfileStats.d.ts.map +0 -1
- package/dist/components/modules/profile/widgets/ProfileStats.js +0 -37
- package/dist/components/modules/profile/widgets/ProfileStats.js.map +0 -1
- package/dist/components/modules/profile/widgets/ProfileTabsArea.js +0 -64
- package/dist/components/modules/profile/widgets/ProfileTabsArea.js.map +0 -1
- package/dist/components/modules/profile/widgets/SoulmateSelectorModal.d.ts +0 -10
- package/dist/components/modules/profile/widgets/SoulmateSelectorModal.d.ts.map +0 -1
- package/dist/components/modules/profile/widgets/SoulmateSelectorModal.js +0 -19
- package/dist/components/modules/profile/widgets/SoulmateSelectorModal.js.map +0 -1
- package/dist/components/modules/profile/widgets/TeamSelectorModal.d.ts +0 -11
- package/dist/components/modules/profile/widgets/TeamSelectorModal.d.ts.map +0 -1
- package/dist/components/modules/profile/widgets/TeamSelectorModal.js +0 -21
- package/dist/components/modules/profile/widgets/TeamSelectorModal.js.map +0 -1
- package/dist/components/modules/shop/CartLayout.d.ts +0 -12
- package/dist/components/modules/shop/CartLayout.d.ts.map +0 -1
- package/dist/components/modules/shop/CartLayout.js +0 -17
- package/dist/components/modules/shop/CartLayout.js.map +0 -1
- package/dist/components/modules/shop/CheckoutLayout.d.ts +0 -8
- package/dist/components/modules/shop/CheckoutLayout.d.ts.map +0 -1
- package/dist/components/modules/shop/CheckoutLayout.js +0 -26
- package/dist/components/modules/shop/CheckoutLayout.js.map +0 -1
- package/dist/components/modules/shop/DetailLayout.d.ts +0 -8
- package/dist/components/modules/shop/DetailLayout.d.ts.map +0 -1
- package/dist/components/modules/shop/DetailLayout.js +0 -27
- package/dist/components/modules/shop/DetailLayout.js.map +0 -1
- package/dist/components/modules/shop/OrdersLayout.d.ts +0 -15
- package/dist/components/modules/shop/OrdersLayout.d.ts.map +0 -1
- package/dist/components/modules/shop/OrdersLayout.js +0 -11
- package/dist/components/modules/shop/OrdersLayout.js.map +0 -1
- package/dist/components/modules/shop/StoreLayout.d.ts +0 -8
- package/dist/components/modules/shop/StoreLayout.d.ts.map +0 -1
- package/dist/components/modules/shop/StoreLayout.js +0 -9
- package/dist/components/modules/shop/StoreLayout.js.map +0 -1
- package/dist/components/modules/shop/widgets/BackToStore.d.ts +0 -2
- package/dist/components/modules/shop/widgets/BackToStore.d.ts.map +0 -1
- package/dist/components/modules/shop/widgets/BackToStore.js +0 -19
- package/dist/components/modules/shop/widgets/BackToStore.js.map +0 -1
- package/dist/components/modules/shop/widgets/CategoryWidget.d.ts +0 -8
- package/dist/components/modules/shop/widgets/CategoryWidget.d.ts.map +0 -1
- package/dist/components/modules/shop/widgets/CategoryWidget.js +0 -26
- package/dist/components/modules/shop/widgets/CategoryWidget.js.map +0 -1
- package/dist/components/modules/shop/widgets/ProductCard.d.ts +0 -8
- package/dist/components/modules/shop/widgets/ProductCard.d.ts.map +0 -1
- package/dist/components/modules/shop/widgets/ProductCard.js +0 -13
- package/dist/components/modules/shop/widgets/ProductCard.js.map +0 -1
- package/dist/components/modules/shop/widgets/StoreHeader.d.ts +0 -6
- package/dist/components/modules/shop/widgets/StoreHeader.d.ts.map +0 -1
- package/dist/components/modules/shop/widgets/StoreHeader.js +0 -15
- package/dist/components/modules/shop/widgets/StoreHeader.js.map +0 -1
- package/dist/components/modules/shop/widgets/StoreProductGrid.d.ts +0 -7
- package/dist/components/modules/shop/widgets/StoreProductGrid.d.ts.map +0 -1
- package/dist/components/modules/shop/widgets/StoreProductGrid.js +0 -19
- package/dist/components/modules/shop/widgets/StoreProductGrid.js.map +0 -1
- package/dist/components/modules/shop/widgets/StoreSearchBar.d.ts +0 -9
- package/dist/components/modules/shop/widgets/StoreSearchBar.d.ts.map +0 -1
- package/dist/components/modules/shop/widgets/StoreSearchBar.js +0 -15
- package/dist/components/modules/shop/widgets/StoreSearchBar.js.map +0 -1
- package/dist/components/modules/shop/widgets/StoreSidebar.d.ts +0 -8
- package/dist/components/modules/shop/widgets/StoreSidebar.d.ts.map +0 -1
- package/dist/components/modules/shop/widgets/StoreSidebar.js +0 -11
- package/dist/components/modules/shop/widgets/StoreSidebar.js.map +0 -1
- package/dist/components/modules/shop/widgets/StoreTrustBadges.d.ts +0 -2
- package/dist/components/modules/shop/widgets/StoreTrustBadges.d.ts.map +0 -1
- package/dist/components/modules/shop/widgets/StoreTrustBadges.js +0 -32
- package/dist/components/modules/shop/widgets/StoreTrustBadges.js.map +0 -1
- package/dist/components/modules/social/SocialLayout.js +0 -119
- package/dist/components/modules/social/SocialLayout.js.map +0 -1
- package/dist/components/modules/social/widgets/EconomyWidget.d.ts +0 -2
- package/dist/components/modules/social/widgets/EconomyWidget.d.ts.map +0 -1
- package/dist/components/modules/social/widgets/EconomyWidget.js +0 -57
- package/dist/components/modules/social/widgets/EconomyWidget.js.map +0 -1
- package/dist/components/modules/social/widgets/LeagueWidget.d.ts +0 -2
- package/dist/components/modules/social/widgets/LeagueWidget.d.ts.map +0 -1
- package/dist/components/modules/social/widgets/LeagueWidget.js +0 -53
- package/dist/components/modules/social/widgets/LeagueWidget.js.map +0 -1
- package/dist/components/modules/social/widgets/MinecraftWidget.d.ts +0 -2
- package/dist/components/modules/social/widgets/MinecraftWidget.d.ts.map +0 -1
- package/dist/components/modules/social/widgets/MinecraftWidget.js +0 -56
- package/dist/components/modules/social/widgets/MinecraftWidget.js.map +0 -1
- package/dist/components/modules/social/widgets/NewMembersWidget.d.ts +0 -2
- package/dist/components/modules/social/widgets/NewMembersWidget.d.ts.map +0 -1
- package/dist/components/modules/social/widgets/NewMembersWidget.js +0 -42
- package/dist/components/modules/social/widgets/NewMembersWidget.js.map +0 -1
- package/dist/components/modules/social/widgets/PostComposer.d.ts +0 -15
- package/dist/components/modules/social/widgets/PostComposer.d.ts.map +0 -1
- package/dist/components/modules/social/widgets/PostComposer.js +0 -167
- package/dist/components/modules/social/widgets/PostComposer.js.map +0 -1
- package/dist/components/modules/social/widgets/RankingWidget.d.ts +0 -5
- package/dist/components/modules/social/widgets/RankingWidget.d.ts.map +0 -1
- package/dist/components/modules/social/widgets/RankingWidget.js +0 -81
- package/dist/components/modules/social/widgets/RankingWidget.js.map +0 -1
- package/dist/components/modules/social/widgets/SocialSidebar.d.ts +0 -2
- package/dist/components/modules/social/widgets/SocialSidebar.d.ts.map +0 -1
- package/dist/components/modules/social/widgets/SocialSidebar.js +0 -12
- package/dist/components/modules/social/widgets/SocialSidebar.js.map +0 -1
- package/dist/components/modules/social/widgets/TrendingWidget.d.ts +0 -3
- package/dist/components/modules/social/widgets/TrendingWidget.d.ts.map +0 -1
- package/dist/components/modules/social/widgets/TrendingWidget.js +0 -41
- package/dist/components/modules/social/widgets/TrendingWidget.js.map +0 -1
- package/dist/components/modules/stations/widgets/StationCard.d.ts +0 -3
- package/dist/components/modules/stations/widgets/StationCard.d.ts.map +0 -1
- package/dist/components/modules/stations/widgets/StationCard.js +0 -32
- package/dist/components/modules/stations/widgets/StationCard.js.map +0 -1
- package/dist/components/modules/stations/widgets/StationQRModal.d.ts +0 -10
- package/dist/components/modules/stations/widgets/StationQRModal.d.ts.map +0 -1
- package/dist/components/modules/stations/widgets/StationQRModal.js +0 -16
- package/dist/components/modules/stations/widgets/StationQRModal.js.map +0 -1
- package/dist/components/modules/stories/widgets/AddStoryModal.d.ts +0 -13
- package/dist/components/modules/stories/widgets/AddStoryModal.d.ts.map +0 -1
- package/dist/components/modules/stories/widgets/AddStoryModal.js +0 -14
- package/dist/components/modules/stories/widgets/AddStoryModal.js.map +0 -1
- package/dist/components/modules/stories/widgets/Stories.d.ts +0 -2
- package/dist/components/modules/stories/widgets/Stories.d.ts.map +0 -1
- package/dist/components/modules/stories/widgets/Stories.js +0 -154
- package/dist/components/modules/stories/widgets/Stories.js.map +0 -1
- package/dist/components/modules/stories/widgets/StoryOverlay.d.ts +0 -10
- package/dist/components/modules/stories/widgets/StoryOverlay.d.ts.map +0 -1
- package/dist/components/modules/stories/widgets/StoryOverlay.js +0 -244
- package/dist/components/modules/stories/widgets/StoryOverlay.js.map +0 -1
- package/dist/components/shared/ArmoyuPlayer.d.ts +0 -18
- package/dist/components/shared/ArmoyuPlayer.d.ts.map +0 -1
- package/dist/components/shared/ArmoyuPlayer.js +0 -111
- package/dist/components/shared/ArmoyuPlayer.js.map +0 -1
- package/dist/components/shared/DevTools.d.ts +0 -2
- package/dist/components/shared/DevTools.d.ts.map +0 -1
- package/dist/components/shared/DevTools.js +0 -35
- package/dist/components/shared/DevTools.js.map +0 -1
- package/dist/components/shared/FilterTabs.d.ts +0 -16
- package/dist/components/shared/FilterTabs.d.ts.map +0 -1
- package/dist/components/shared/FilterTabs.js +0 -21
- package/dist/components/shared/FilterTabs.js.map +0 -1
- package/dist/components/shared/FloatingChatButton.js +0 -24
- package/dist/components/shared/FloatingChatButton.js.map +0 -1
- package/dist/components/shared/Footer.d.ts +0 -2
- package/dist/components/shared/Footer.d.ts.map +0 -1
- package/dist/components/shared/Footer.js +0 -13
- package/dist/components/shared/Footer.js.map +0 -1
- package/dist/components/shared/Icons.d.ts +0 -8
- package/dist/components/shared/Icons.d.ts.map +0 -1
- package/dist/components/shared/Icons.js +0 -11
- package/dist/components/shared/Icons.js.map +0 -1
- package/dist/components/shared/ListToolbar.d.ts +0 -32
- package/dist/components/shared/ListToolbar.d.ts.map +0 -1
- package/dist/components/shared/ListToolbar.js +0 -16
- package/dist/components/shared/ListToolbar.js.map +0 -1
- package/dist/components/shared/MainLayoutWrapper.d.ts +0 -5
- package/dist/components/shared/MainLayoutWrapper.d.ts.map +0 -1
- package/dist/components/shared/MainLayoutWrapper.js +0 -11
- package/dist/components/shared/MainLayoutWrapper.js.map +0 -1
- package/dist/components/shared/NotFound.d.ts +0 -21
- package/dist/components/shared/NotFound.d.ts.map +0 -1
- package/dist/components/shared/NotFound.js +0 -10
- package/dist/components/shared/NotFound.js.map +0 -1
- package/dist/components/shared/PageWidth.d.ts +0 -6
- package/dist/components/shared/PageWidth.d.ts.map +0 -1
- package/dist/components/shared/PageWidth.js +0 -17
- package/dist/components/shared/PageWidth.js.map +0 -1
- package/dist/components/shared/RegisterModal.d.ts +0 -7
- package/dist/components/shared/RegisterModal.d.ts.map +0 -1
- package/dist/components/shared/RegisterModal.js +0 -12
- package/dist/components/shared/RegisterModal.js.map +0 -1
- package/dist/components/shared/SearchBar.d.ts +0 -14
- package/dist/components/shared/SearchBar.d.ts.map +0 -1
- package/dist/components/shared/SearchBar.js +0 -24
- package/dist/components/shared/SearchBar.js.map +0 -1
- package/dist/components/shared/UserDrawer.d.ts +0 -23
- package/dist/components/shared/UserDrawer.d.ts.map +0 -1
- package/dist/components/shared/UserDrawer.js +0 -71
- package/dist/components/shared/UserDrawer.js.map +0 -1
- package/dist/components/showcase/AuthTab.js +0 -17
- package/dist/components/showcase/AuthTab.js.map +0 -1
- package/dist/components/showcase/CommunityTab.js +0 -9
- package/dist/components/showcase/CommunityTab.js.map +0 -1
- package/dist/components/showcase/CorporateTab.js +0 -23
- package/dist/components/showcase/CorporateTab.js.map +0 -1
- package/dist/components/showcase/GeneralTab.js +0 -9
- package/dist/components/showcase/GeneralTab.js.map +0 -1
- package/dist/components/showcase/GroupTab.d.ts +0 -2
- package/dist/components/showcase/GroupTab.d.ts.map +0 -1
- package/dist/components/showcase/GroupTab.js +0 -119
- package/dist/components/showcase/GroupTab.js.map +0 -1
- package/dist/components/showcase/MessagesTab.js +0 -28
- package/dist/components/showcase/MessagesTab.js.map +0 -1
- package/dist/components/showcase/MyPostsTab.js +0 -15
- package/dist/components/showcase/MyPostsTab.js.map +0 -1
- package/dist/components/showcase/ProfileTab.js +0 -76
- package/dist/components/showcase/ProfileTab.js.map +0 -1
- package/dist/components/showcase/ReelsTab.d.ts +0 -2
- package/dist/components/showcase/ReelsTab.d.ts.map +0 -1
- package/dist/components/showcase/ReelsTab.js +0 -100
- package/dist/components/showcase/ReelsTab.js.map +0 -1
- package/dist/components/showcase/ShopTab.js +0 -66
- package/dist/components/showcase/ShopTab.js.map +0 -1
- package/dist/components/showcase/ShowcaseNavigation.d.ts +0 -2
- package/dist/components/showcase/ShowcaseNavigation.d.ts.map +0 -1
- package/dist/components/showcase/ShowcaseNavigation.js +0 -124
- package/dist/components/showcase/ShowcaseNavigation.js.map +0 -1
- package/dist/components/showcase/SocialTab.js +0 -98
- package/dist/components/showcase/SocialTab.js.map +0 -1
- package/dist/components/showcase/StoriesTab.js +0 -10
- package/dist/components/showcase/StoriesTab.js.map +0 -1
- package/dist/context/ArmoyuContext.d.ts +0 -45
- package/dist/context/ArmoyuContext.d.ts.map +0 -1
- package/dist/context/ArmoyuContext.js +0 -91
- package/dist/context/ArmoyuContext.js.map +0 -1
- package/dist/context/AuthContext.d.ts +0 -23
- package/dist/context/AuthContext.d.ts.map +0 -1
- package/dist/context/AuthContext.js +0 -159
- package/dist/context/AuthContext.js.map +0 -1
- package/dist/context/CartContext.d.ts +0 -18
- package/dist/context/CartContext.d.ts.map +0 -1
- package/dist/context/CartContext.js +0 -67
- package/dist/context/CartContext.js.map +0 -1
- package/dist/context/ChatContext.d.ts +0 -27
- package/dist/context/ChatContext.d.ts.map +0 -1
- package/dist/context/ChatContext.js +0 -163
- package/dist/context/ChatContext.js.map +0 -1
- package/dist/context/LayoutContext.d.ts +0 -11
- package/dist/context/LayoutContext.d.ts.map +0 -1
- package/dist/context/LayoutContext.js +0 -21
- package/dist/context/LayoutContext.js.map +0 -1
- package/dist/context/SocketContext.d.ts +0 -13
- package/dist/context/SocketContext.d.ts.map +0 -1
- package/dist/context/SocketContext.js +0 -36
- package/dist/context/SocketContext.js.map +0 -1
- package/dist/context/ThemeContext.d.ts +0 -11
- package/dist/context/ThemeContext.d.ts.map +0 -1
- package/dist/context/ThemeContext.js +0 -44
- package/dist/context/ThemeContext.js.map +0 -1
- package/dist/hooks/useDebounce.d.ts +0 -2
- package/dist/hooks/useDebounce.d.ts.map +0 -1
- package/dist/hooks/useDebounce.js +0 -17
- package/dist/hooks/useDebounce.js.map +0 -1
- package/dist/lib/ArmoyuUI.d.ts +0 -18
- package/dist/lib/ArmoyuUI.d.ts.map +0 -1
- package/dist/lib/ArmoyuUI.js +0 -29
- package/dist/lib/ArmoyuUI.js.map +0 -1
- package/dist/lib/constants/config.d.ts +0 -9
- package/dist/lib/constants/config.d.ts.map +0 -1
- package/dist/lib/constants/config.js +0 -18
- package/dist/lib/constants/config.js.map +0 -1
- package/dist/lib/constants/educationData.d.ts +0 -11
- package/dist/lib/constants/educationData.d.ts.map +0 -1
- package/dist/lib/constants/educationData.js +0 -125
- package/dist/lib/constants/educationData.js.map +0 -1
- package/dist/lib/constants/punishmentData.d.ts +0 -30
- package/dist/lib/constants/punishmentData.d.ts.map +0 -1
- package/dist/lib/constants/punishmentData.js +0 -190
- package/dist/lib/constants/punishmentData.js.map +0 -1
- package/dist/lib/constants/seedData.d.ts +0 -182
- package/dist/lib/constants/seedData.d.ts.map +0 -1
- package/dist/lib/constants/seedData.js +0 -748
- package/dist/lib/constants/seedData.js.map +0 -1
- package/dist/lib/constants/stationData.d.ts +0 -16
- package/dist/lib/constants/stationData.d.ts.map +0 -1
- package/dist/lib/constants/stationData.js +0 -209
- package/dist/lib/constants/stationData.js.map +0 -1
- package/dist/lib/constants/surveyData.d.ts +0 -3
- package/dist/lib/constants/surveyData.d.ts.map +0 -1
- package/dist/lib/constants/surveyData.js +0 -55
- package/dist/lib/constants/surveyData.js.map +0 -1
- package/dist/lib/constants/teamData.d.ts +0 -19
- package/dist/lib/constants/teamData.d.ts.map +0 -1
- package/dist/lib/constants/teamData.js +0 -59
- package/dist/lib/constants/teamData.js.map +0 -1
- package/dist/lib/utils/numberFormat.d.ts +0 -10
- package/dist/lib/utils/numberFormat.d.ts.map +0 -1
- package/dist/lib/utils/numberFormat.js +0 -20
- package/dist/lib/utils/numberFormat.js.map +0 -1
- package/dist/lib/utils/odpUtils.d.ts +0 -16
- package/dist/lib/utils/odpUtils.d.ts.map +0 -1
- package/dist/lib/utils/odpUtils.js +0 -48
- package/dist/lib/utils/odpUtils.js.map +0 -1
- package/dist/lib/utils/postUtils.d.ts +0 -7
- package/dist/lib/utils/postUtils.d.ts.map +0 -1
- package/dist/lib/utils/postUtils.js +0 -40
- package/dist/lib/utils/postUtils.js.map +0 -1
- package/dist/models/BaseModel.d.ts +0 -13
- package/dist/models/BaseModel.d.ts.map +0 -1
- package/dist/models/BaseModel.js +0 -17
- package/dist/models/BaseModel.js.map +0 -1
- package/dist/models/auth/RankedUser.d.ts +0 -20
- package/dist/models/auth/RankedUser.d.ts.map +0 -1
- package/dist/models/auth/RankedUser.js +0 -40
- package/dist/models/auth/RankedUser.js.map +0 -1
- package/dist/models/auth/Role.d.ts +0 -16
- package/dist/models/auth/Role.d.ts.map +0 -1
- package/dist/models/auth/Role.js +0 -37
- package/dist/models/auth/Role.js.map +0 -1
- package/dist/models/auth/Session.d.ts +0 -24
- package/dist/models/auth/Session.d.ts.map +0 -1
- package/dist/models/auth/Session.js +0 -54
- package/dist/models/auth/Session.js.map +0 -1
- package/dist/models/auth/StaffApplication.d.ts +0 -20
- package/dist/models/auth/StaffApplication.d.ts.map +0 -1
- package/dist/models/auth/StaffApplication.js +0 -40
- package/dist/models/auth/StaffApplication.js.map +0 -1
- package/dist/models/auth/TeamMember.d.ts +0 -19
- package/dist/models/auth/TeamMember.d.ts.map +0 -1
- package/dist/models/auth/TeamMember.js +0 -38
- package/dist/models/auth/TeamMember.js.map +0 -1
- package/dist/models/auth/User.d.ts +0 -94
- package/dist/models/auth/User.d.ts.map +0 -1
- package/dist/models/auth/User.js +0 -234
- package/dist/models/auth/User.js.map +0 -1
- package/dist/models/auth/UserBadge.d.ts +0 -18
- package/dist/models/auth/UserBadge.d.ts.map +0 -1
- package/dist/models/auth/UserBadge.js +0 -38
- package/dist/models/auth/UserBadge.js.map +0 -1
- package/dist/models/community/ArmoyuEvent.d.ts +0 -52
- package/dist/models/community/ArmoyuEvent.d.ts.map +0 -1
- package/dist/models/community/ArmoyuEvent.js +0 -105
- package/dist/models/community/ArmoyuEvent.js.map +0 -1
- package/dist/models/community/Classroom.d.ts +0 -19
- package/dist/models/community/Classroom.d.ts.map +0 -1
- package/dist/models/community/Classroom.js +0 -37
- package/dist/models/community/Classroom.js.map +0 -1
- package/dist/models/community/Faculty.d.ts +0 -17
- package/dist/models/community/Faculty.d.ts.map +0 -1
- package/dist/models/community/Faculty.js +0 -33
- package/dist/models/community/Faculty.js.map +0 -1
- package/dist/models/community/Forum.d.ts +0 -26
- package/dist/models/community/Forum.d.ts.map +0 -1
- package/dist/models/community/Forum.js +0 -40
- package/dist/models/community/Forum.js.map +0 -1
- package/dist/models/community/Giveaway.d.ts +0 -22
- package/dist/models/community/Giveaway.d.ts.map +0 -1
- package/dist/models/community/Giveaway.js +0 -42
- package/dist/models/community/Giveaway.js.map +0 -1
- package/dist/models/community/Group.d.ts +0 -38
- package/dist/models/community/Group.d.ts.map +0 -1
- package/dist/models/community/Group.js +0 -119
- package/dist/models/community/Group.js.map +0 -1
- package/dist/models/community/School.d.ts +0 -28
- package/dist/models/community/School.d.ts.map +0 -1
- package/dist/models/community/School.js +0 -72
- package/dist/models/community/School.js.map +0 -1
- package/dist/models/community/SchoolTeam.d.ts +0 -27
- package/dist/models/community/SchoolTeam.d.ts.map +0 -1
- package/dist/models/community/SchoolTeam.js +0 -45
- package/dist/models/community/SchoolTeam.js.map +0 -1
- package/dist/models/community/Station.d.ts +0 -81
- package/dist/models/community/Station.d.ts.map +0 -1
- package/dist/models/community/Station.js +0 -172
- package/dist/models/community/Station.js.map +0 -1
- package/dist/models/community/Survey.d.ts +0 -27
- package/dist/models/community/Survey.d.ts.map +0 -1
- package/dist/models/community/Survey.js +0 -60
- package/dist/models/community/Survey.js.map +0 -1
- package/dist/models/community/SurveyAnswer.d.ts +0 -15
- package/dist/models/community/SurveyAnswer.d.ts.map +0 -1
- package/dist/models/community/SurveyAnswer.js +0 -30
- package/dist/models/community/SurveyAnswer.js.map +0 -1
- package/dist/models/community/Team.d.ts +0 -22
- package/dist/models/community/Team.d.ts.map +0 -1
- package/dist/models/community/Team.js +0 -64
- package/dist/models/community/Team.js.map +0 -1
- package/dist/models/community/Workplace.d.ts +0 -18
- package/dist/models/community/Workplace.d.ts.map +0 -1
- package/dist/models/community/Workplace.js +0 -36
- package/dist/models/community/Workplace.js.map +0 -1
- package/dist/models/content/Game.d.ts +0 -20
- package/dist/models/content/Game.d.ts.map +0 -1
- package/dist/models/content/Game.js +0 -44
- package/dist/models/content/Game.js.map +0 -1
- package/dist/models/content/Media.d.ts +0 -17
- package/dist/models/content/Media.d.ts.map +0 -1
- package/dist/models/content/Media.js +0 -34
- package/dist/models/content/Media.js.map +0 -1
- package/dist/models/content/Mod.d.ts +0 -21
- package/dist/models/content/Mod.d.ts.map +0 -1
- package/dist/models/content/Mod.js +0 -41
- package/dist/models/content/Mod.js.map +0 -1
- package/dist/models/content/News.d.ts +0 -36
- package/dist/models/content/News.d.ts.map +0 -1
- package/dist/models/content/News.js +0 -81
- package/dist/models/content/News.js.map +0 -1
- package/dist/models/content/PlatformStation.d.ts +0 -18
- package/dist/models/content/PlatformStation.d.ts.map +0 -1
- package/dist/models/content/PlatformStation.js +0 -36
- package/dist/models/content/PlatformStation.js.map +0 -1
- package/dist/models/content/PlatformTeam.d.ts +0 -14
- package/dist/models/content/PlatformTeam.d.ts.map +0 -1
- package/dist/models/content/PlatformTeam.js +0 -28
- package/dist/models/content/PlatformTeam.js.map +0 -1
- package/dist/models/content/Project.d.ts +0 -27
- package/dist/models/content/Project.d.ts.map +0 -1
- package/dist/models/content/Project.js +0 -47
- package/dist/models/content/Project.js.map +0 -1
- package/dist/models/content/ProjectScore.d.ts +0 -14
- package/dist/models/content/ProjectScore.d.ts.map +0 -1
- package/dist/models/content/ProjectScore.js +0 -28
- package/dist/models/content/ProjectScore.js.map +0 -1
- package/dist/models/content/StationEquipment.d.ts +0 -16
- package/dist/models/content/StationEquipment.d.ts.map +0 -1
- package/dist/models/content/StationEquipment.js +0 -32
- package/dist/models/content/StationEquipment.js.map +0 -1
- package/dist/models/core/Country.d.ts +0 -15
- package/dist/models/core/Country.d.ts.map +0 -1
- package/dist/models/core/Country.js +0 -30
- package/dist/models/core/Country.js.map +0 -1
- package/dist/models/core/PlatformStats.d.ts +0 -46
- package/dist/models/core/PlatformStats.d.ts.map +0 -1
- package/dist/models/core/PlatformStats.js +0 -92
- package/dist/models/core/PlatformStats.js.map +0 -1
- package/dist/models/core/Province.d.ts +0 -15
- package/dist/models/core/Province.d.ts.map +0 -1
- package/dist/models/core/Province.js +0 -30
- package/dist/models/core/Province.js.map +0 -1
- package/dist/models/core/Rule.d.ts +0 -16
- package/dist/models/core/Rule.d.ts.map +0 -1
- package/dist/models/core/Rule.js +0 -32
- package/dist/models/core/Rule.js.map +0 -1
- package/dist/models/core/SystemSettings.d.ts +0 -38
- package/dist/models/core/SystemSettings.d.ts.map +0 -1
- package/dist/models/core/SystemSettings.js +0 -68
- package/dist/models/core/SystemSettings.js.map +0 -1
- package/dist/models/index.d.ts +0 -58
- package/dist/models/index.d.ts.map +0 -1
- package/dist/models/index.js +0 -88
- package/dist/models/index.js.map +0 -1
- package/dist/models/shop/CartItem.d.ts +0 -20
- package/dist/models/shop/CartItem.d.ts.map +0 -1
- package/dist/models/shop/CartItem.js +0 -40
- package/dist/models/shop/CartItem.js.map +0 -1
- package/dist/models/shop/Invoice.d.ts +0 -18
- package/dist/models/shop/Invoice.d.ts.map +0 -1
- package/dist/models/shop/Invoice.js +0 -36
- package/dist/models/shop/Invoice.js.map +0 -1
- package/dist/models/shop/Order.d.ts +0 -23
- package/dist/models/shop/Order.d.ts.map +0 -1
- package/dist/models/shop/Order.js +0 -52
- package/dist/models/shop/Order.js.map +0 -1
- package/dist/models/shop/Product.d.ts +0 -26
- package/dist/models/shop/Product.d.ts.map +0 -1
- package/dist/models/shop/Product.js +0 -71
- package/dist/models/shop/Product.js.map +0 -1
- package/dist/models/social/chat/Chat.d.ts +0 -26
- package/dist/models/social/chat/Chat.d.ts.map +0 -1
- package/dist/models/social/chat/Chat.js +0 -84
- package/dist/models/social/chat/Chat.js.map +0 -1
- package/dist/models/social/chat/Message.d.ts +0 -18
- package/dist/models/social/chat/Message.d.ts.map +0 -1
- package/dist/models/social/chat/Message.js +0 -62
- package/dist/models/social/chat/Message.js.map +0 -1
- package/dist/models/social/chat/Note.d.ts +0 -16
- package/dist/models/social/chat/Note.d.ts.map +0 -1
- package/dist/models/social/chat/Note.js +0 -32
- package/dist/models/social/chat/Note.js.map +0 -1
- package/dist/models/social/feed/Comment.d.ts +0 -21
- package/dist/models/social/feed/Comment.d.ts.map +0 -1
- package/dist/models/social/feed/Comment.js +0 -50
- package/dist/models/social/feed/Comment.js.map +0 -1
- package/dist/models/social/feed/Post.d.ts +0 -26
- package/dist/models/social/feed/Post.d.ts.map +0 -1
- package/dist/models/social/feed/Post.js +0 -55
- package/dist/models/social/feed/Post.js.map +0 -1
- package/dist/models/social/feed/Story.d.ts +0 -31
- package/dist/models/social/feed/Story.d.ts.map +0 -1
- package/dist/models/social/feed/Story.js +0 -67
- package/dist/models/social/feed/Story.js.map +0 -1
- package/dist/models/social/feed/StoryAuthor.d.ts +0 -13
- package/dist/models/social/feed/StoryAuthor.d.ts.map +0 -1
- package/dist/models/social/feed/StoryAuthor.js +0 -29
- package/dist/models/social/feed/StoryAuthor.js.map +0 -1
- package/dist/models/social/gaming/Game.d.ts +0 -26
- package/dist/models/social/gaming/Game.d.ts.map +0 -1
- package/dist/models/social/gaming/Game.js +0 -49
- package/dist/models/social/gaming/Game.js.map +0 -1
- package/dist/models/social/meta/AuthEnums.d.ts +0 -18
- package/dist/models/social/meta/AuthEnums.d.ts.map +0 -1
- package/dist/models/social/meta/AuthEnums.js +0 -23
- package/dist/models/social/meta/AuthEnums.js.map +0 -1
- package/dist/models/social/meta/MediaEnums.d.ts +0 -20
- package/dist/models/social/meta/MediaEnums.d.ts.map +0 -1
- package/dist/models/social/meta/MediaEnums.js +0 -25
- package/dist/models/social/meta/MediaEnums.js.map +0 -1
- package/dist/models/social/notification/Notification.d.ts +0 -23
- package/dist/models/social/notification/Notification.d.ts.map +0 -1
- package/dist/models/social/notification/Notification.js +0 -68
- package/dist/models/social/notification/Notification.js.map +0 -1
- package/dist/models/social/notification/NotificationEnums.d.ts +0 -54
- package/dist/models/social/notification/NotificationEnums.d.ts.map +0 -1
- package/dist/models/social/notification/NotificationEnums.js +0 -62
- package/dist/models/social/notification/NotificationEnums.js.map +0 -1
- package/dist/models/social/notification/NotificationSender.d.ts +0 -16
- package/dist/models/social/notification/NotificationSender.d.ts.map +0 -1
- package/dist/models/social/notification/NotificationSender.js +0 -32
- package/dist/models/social/notification/NotificationSender.js.map +0 -1
- package/dist/models/social/poll/Poll.d.ts +0 -19
- package/dist/models/social/poll/Poll.d.ts.map +0 -1
- package/dist/models/social/poll/Poll.js +0 -37
- package/dist/models/social/poll/Poll.js.map +0 -1
- package/dist/models/social/poll/PollOption.d.ts +0 -15
- package/dist/models/social/poll/PollOption.d.ts.map +0 -1
- package/dist/models/social/poll/PollOption.js +0 -30
- package/dist/models/social/poll/PollOption.js.map +0 -1
- package/dist/models/social/search/SearchEnums.d.ts +0 -22
- package/dist/models/social/search/SearchEnums.d.ts.map +0 -1
- package/dist/models/social/search/SearchEnums.js +0 -27
- package/dist/models/social/search/SearchEnums.js.map +0 -1
- package/dist/models/social/search/SearchResult.d.ts +0 -21
- package/dist/models/social/search/SearchResult.d.ts.map +0 -1
- package/dist/models/social/search/SearchResult.js +0 -76
- package/dist/models/social/search/SearchResult.js.map +0 -1
- package/dist/models/social/stats/Leaderboard.d.ts +0 -29
- package/dist/models/social/stats/Leaderboard.d.ts.map +0 -1
- package/dist/models/social/stats/Leaderboard.js +0 -55
- package/dist/models/social/stats/Leaderboard.js.map +0 -1
- package/dist/models/social/support/SupportTicket.d.ts +0 -18
- package/dist/models/social/support/SupportTicket.d.ts.map +0 -1
- package/dist/models/social/support/SupportTicket.js +0 -36
- package/dist/models/social/support/SupportTicket.js.map +0 -1
- package/dist/models/social/user/BlockedUser.d.ts +0 -15
- package/dist/models/social/user/BlockedUser.d.ts.map +0 -1
- package/dist/models/social/user/BlockedUser.js +0 -29
- package/dist/models/social/user/BlockedUser.js.map +0 -1
- package/dist/models/store/StoreItem.d.ts +0 -18
- package/dist/models/store/StoreItem.d.ts.map +0 -1
- package/dist/models/store/StoreItem.js +0 -36
- package/dist/models/store/StoreItem.js.map +0 -1
- package/dist/scratch/test_api.d.ts +0 -2
- package/dist/scratch/test_api.d.ts.map +0 -1
- package/dist/scratch/test_api.js +0 -13
- package/dist/scratch/test_api.js.map +0 -1
- package/dist/scratch/test_api_pure.d.ts +0 -2
- package/dist/scratch/test_api_pure.d.ts.map +0 -1
- package/dist/scratch/test_api_pure.js +0 -53
- package/dist/scratch/test_api_pure.js.map +0 -1
- package/dist/scratch/test_api_stats.d.ts +0 -2
- package/dist/scratch/test_api_stats.d.ts.map +0 -1
- package/dist/scratch/test_api_stats.js +0 -31
- package/dist/scratch/test_api_stats.js.map +0 -1
- package/dist/types/index.d.ts +0 -4
- package/dist/types/index.d.ts.map +0 -1
- package/dist/types/index.js +0 -20
- package/dist/types/index.js.map +0 -1
- package/dist/types/navigation.d.ts +0 -6
- package/dist/types/navigation.d.ts.map +0 -1
- package/dist/types/navigation.js +0 -3
- package/dist/types/navigation.js.map +0 -1
- package/dist/types/socket.d.ts +0 -6
- package/dist/types/socket.d.ts.map +0 -1
- package/dist/types/socket.js +0 -3
- package/dist/types/socket.js.map +0 -1
- package/dist/types/stats.d.ts +0 -18
- package/dist/types/stats.d.ts.map +0 -1
- package/dist/types/stats.js +0 -3
- package/dist/types/stats.js.map +0 -1
- package/dist/utils/text/MentionUtils.d.ts +0 -8
- package/dist/utils/text/MentionUtils.d.ts.map +0 -1
- package/dist/utils/text/MentionUtils.js +0 -30
- package/dist/utils/text/MentionUtils.js.map +0 -1
|
@@ -1,91 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
'use client';
|
|
3
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
-
exports.ArmoyuProvider = ArmoyuProvider;
|
|
5
|
-
exports.useArmoyu = useArmoyu;
|
|
6
|
-
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
7
|
-
const react_1 = require("react");
|
|
8
|
-
const ArmoyuContext = (0, react_1.createContext)(undefined);
|
|
9
|
-
/**
|
|
10
|
-
* ArmoyuProvider provides the global ArmoyuUI instance to all UI components.
|
|
11
|
-
* This is required for any component that interacts with the ARMOYU backend.
|
|
12
|
-
*/
|
|
13
|
-
function ArmoyuProvider({ children, ui, navigation }) {
|
|
14
|
-
const [apiKey, setApiKey] = (0, react_1.useState)('armoyu_showcase_key');
|
|
15
|
-
const [token, setToken] = (0, react_1.useState)('');
|
|
16
|
-
const [isMockEnabled, setIsMockEnabled] = (0, react_1.useState)(true);
|
|
17
|
-
const [isMounted, setIsMounted] = (0, react_1.useState)(false);
|
|
18
|
-
// Sadece istemci tarafında localStorage'dan yükle
|
|
19
|
-
(0, react_1.useEffect)(() => {
|
|
20
|
-
setIsMounted(true);
|
|
21
|
-
const savedApiKey = localStorage.getItem('armoyu_showcase_apiKey');
|
|
22
|
-
const savedToken = localStorage.getItem('armoyu_token');
|
|
23
|
-
const savedMock = localStorage.getItem('armoyu_use_mock');
|
|
24
|
-
if (savedApiKey) {
|
|
25
|
-
setApiKey(savedApiKey);
|
|
26
|
-
ui.api.setApiKey(savedApiKey);
|
|
27
|
-
}
|
|
28
|
-
if (savedToken) {
|
|
29
|
-
setToken(savedToken);
|
|
30
|
-
ui.api.setToken(savedToken);
|
|
31
|
-
}
|
|
32
|
-
if (savedMock !== null) {
|
|
33
|
-
setIsMockEnabled(savedMock === 'true');
|
|
34
|
-
}
|
|
35
|
-
}, [ui]);
|
|
36
|
-
const setGlobalApiKey = (0, react_1.useCallback)((key) => {
|
|
37
|
-
setApiKey(key);
|
|
38
|
-
ui.api.setApiKey(key);
|
|
39
|
-
localStorage.setItem('armoyu_showcase_apiKey', key);
|
|
40
|
-
}, [ui]);
|
|
41
|
-
const setGlobalToken = (0, react_1.useCallback)((t) => {
|
|
42
|
-
setToken(t);
|
|
43
|
-
ui.api.setToken(t);
|
|
44
|
-
localStorage.setItem('armoyu_token', t);
|
|
45
|
-
}, [ui]);
|
|
46
|
-
const setMockEnabled = (0, react_1.useCallback)((enabled) => {
|
|
47
|
-
setIsMockEnabled(enabled);
|
|
48
|
-
localStorage.setItem('armoyu_use_mock', enabled ? 'true' : 'false');
|
|
49
|
-
}, []);
|
|
50
|
-
if (!isMounted || !ui) {
|
|
51
|
-
return null;
|
|
52
|
-
}
|
|
53
|
-
const defaultNavigation = {
|
|
54
|
-
profilePrefix: '/oyuncular',
|
|
55
|
-
groupPrefix: '/gruplar',
|
|
56
|
-
forumPrefix: '/forum',
|
|
57
|
-
educationPrefix: '/egitim',
|
|
58
|
-
newsPrefix: '/haberler',
|
|
59
|
-
galleryPrefix: '/galeriler',
|
|
60
|
-
giveawayPrefix: '/cekilisler',
|
|
61
|
-
projectPrefix: '/projeler',
|
|
62
|
-
storePrefix: '/magaza',
|
|
63
|
-
managementPrefix: '/yonetim',
|
|
64
|
-
myArticlesPrefix: '/yazilarim',
|
|
65
|
-
pollPrefix: '/anketler',
|
|
66
|
-
supportPrefix: '/destek',
|
|
67
|
-
...navigation
|
|
68
|
-
};
|
|
69
|
-
return ((0, jsx_runtime_1.jsx)(ArmoyuContext.Provider, { value: {
|
|
70
|
-
ui,
|
|
71
|
-
api: ui.api,
|
|
72
|
-
apiKey,
|
|
73
|
-
token,
|
|
74
|
-
isMockEnabled,
|
|
75
|
-
navigation: defaultNavigation,
|
|
76
|
-
setGlobalApiKey,
|
|
77
|
-
setGlobalToken,
|
|
78
|
-
setMockEnabled
|
|
79
|
-
}, children: children }));
|
|
80
|
-
}
|
|
81
|
-
/**
|
|
82
|
-
* Custom hook to access the ArmoyuApi instance.
|
|
83
|
-
*/
|
|
84
|
-
function useArmoyu() {
|
|
85
|
-
const context = (0, react_1.useContext)(ArmoyuContext);
|
|
86
|
-
if (context === undefined) {
|
|
87
|
-
throw new Error('useArmoyu must be used within an ArmoyuProvider');
|
|
88
|
-
}
|
|
89
|
-
return context;
|
|
90
|
-
}
|
|
91
|
-
//# sourceMappingURL=ArmoyuContext.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ArmoyuContext.js","sourceRoot":"","sources":["../../src/context/ArmoyuContext.tsx"],"names":[],"mappings":";AAAA,YAAY,CAAC;;AA8Cb,wCA+EC;AAKD,8BAMC;;AAtID,iCAAsG;AAgCtG,MAAM,aAAa,GAAG,IAAA,qBAAa,EAAgC,SAAS,CAAC,CAAC;AAQ9E;;;GAGG;AACH,SAAgB,cAAc,CAAC,EAAE,QAAQ,EAAE,EAAE,EAAE,UAAU,EAAuB;IAC9E,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,GAAG,IAAA,gBAAQ,EAAC,qBAAqB,CAAC,CAAC;IAC5D,MAAM,CAAC,KAAK,EAAE,QAAQ,CAAC,GAAG,IAAA,gBAAQ,EAAC,EAAE,CAAC,CAAC;IACvC,MAAM,CAAC,aAAa,EAAE,gBAAgB,CAAC,GAAG,IAAA,gBAAQ,EAAC,IAAI,CAAC,CAAC;IACzD,MAAM,CAAC,SAAS,EAAE,YAAY,CAAC,GAAG,IAAA,gBAAQ,EAAC,KAAK,CAAC,CAAC;IAElD,kDAAkD;IAClD,IAAA,iBAAS,EAAC,GAAG,EAAE;QACb,YAAY,CAAC,IAAI,CAAC,CAAC;QACnB,MAAM,WAAW,GAAG,YAAY,CAAC,OAAO,CAAC,wBAAwB,CAAC,CAAC;QACnE,MAAM,UAAU,GAAG,YAAY,CAAC,OAAO,CAAC,cAAc,CAAC,CAAC;QACxD,MAAM,SAAS,GAAG,YAAY,CAAC,OAAO,CAA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AE,EAAE,CAAC,CAAC;IAEP,IAAI,CAAC,SAAS,IAAI,CAAC,EAAE,EAAE,CAAC;QACtB,OAAO,IAAI,CAAC;IACd,CAAC;IAED,MAAM,iBAAiB,GAAqC;QAC1D,aAAa,EAAE,YAAY;QAC3B,WAAW,EAAE,UAAU;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,uBAAC,aAAa,CAAC,QAAQ,IAAC,KAAK,EAAE;YAC7B,EAAE;YACF,GAAG,EAAE,EAAE,CAAC,GAAG;YACX,MAAM;YACN,KAAK;YACL,aAAa;YACb,UAAU,EAAE,iBAAiB;YAC7B,eAAe;YACf,cAAc;YACd,cAAc;SACf,YACE,QAAQ,GACc,CAC1B,CAAC;AACJ,CAAC;AAED;;GAEG;AACH,SAAgB,SAAS;IACvB,MAAM,OAAO,GAAG,IAAA,kBAAU,EAAC,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,23 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { User } from '../models/auth/User';
|
|
3
|
-
import { Session } from '../models/auth/Session';
|
|
4
|
-
interface AuthContextType {
|
|
5
|
-
user: User | null;
|
|
6
|
-
session: Session | null;
|
|
7
|
-
login: (username: string, password: string) => Promise<void>;
|
|
8
|
-
register: (data: any) => Promise<void>;
|
|
9
|
-
logout: () => void;
|
|
10
|
-
isLoading: boolean;
|
|
11
|
-
isLoginModalOpen: boolean;
|
|
12
|
-
setIsLoginModalOpen: (open: boolean) => void;
|
|
13
|
-
isRegisterModalOpen: boolean;
|
|
14
|
-
setIsRegisterModalOpen: (open: boolean) => void;
|
|
15
|
-
updateUser: (updatedUser: User) => void;
|
|
16
|
-
updateSession: (updatedSession: Session) => void;
|
|
17
|
-
}
|
|
18
|
-
export declare function AuthProvider({ children }: {
|
|
19
|
-
children: React.ReactNode;
|
|
20
|
-
}): import("react/jsx-runtime").JSX.Element;
|
|
21
|
-
export declare function useAuth(): AuthContextType;
|
|
22
|
-
export {};
|
|
23
|
-
//# sourceMappingURL=AuthContext.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"AuthContext.d.ts","sourceRoot":"","sources":["../../src/context/AuthContext.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAyD,MAAM,OAAO,CAAC;AAC9E,OAAO,EAAE,IAAI,EAAE,MAAM,qBAAqB,CAAC;AAC3C,OAAO,EAAE,OAAO,EAAE,MAAM,wBAAwB,CAAC;AAGjD,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,QAAQ,EAAE,CAAC,IAAI,EAAE,GAAG,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;IACvC,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,mBAAmB,EAAE,OAAO,CAAC;IAC7B,sBAAsB,EAAE,CAAC,IAAI,EAAE,OAAO,KAAK,IAAI,CAAC;IAChD,UAAU,EAAE,CAAC,WAAW,EAAE,IAAI,KAAK,IAAI,CAAC;IACxC,aAAa,EAAE,CAAC,cAAc,EAAE,OAAO,KAAK,IAAI,CAAC;CAClD;AAMD,wBAAgB,YAAY,CAAC,EAAE,QAAQ,EAAE,EAAE;IAAE,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAA;CAAE,2CAgKvE;AAED,wBAAgB,OAAO,oBAMtB"}
|
|
@@ -1,159 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.AuthProvider = AuthProvider;
|
|
4
|
-
exports.useAuth = useAuth;
|
|
5
|
-
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
6
|
-
const react_1 = require("react");
|
|
7
|
-
const User_1 = require("../models/auth/User");
|
|
8
|
-
const Session_1 = require("../models/auth/Session");
|
|
9
|
-
const ArmoyuContext_1 = require("./ArmoyuContext");
|
|
10
|
-
const AuthContext = (0, react_1.createContext)(undefined);
|
|
11
|
-
const seedData_1 = require("../lib/constants/seedData");
|
|
12
|
-
function AuthProvider({ children }) {
|
|
13
|
-
const { api, setGlobalToken, apiKey } = (0, ArmoyuContext_1.useArmoyu)();
|
|
14
|
-
const [user, setUser] = (0, react_1.useState)(null);
|
|
15
|
-
const [session, setSession] = (0, react_1.useState)(null);
|
|
16
|
-
const [isLoading, setIsLoading] = (0, react_1.useState)(true);
|
|
17
|
-
const [isLoginModalOpen, setIsLoginModalOpen] = (0, react_1.useState)(false);
|
|
18
|
-
const [isRegisterModalOpen, setIsRegisterModalOpen] = (0, react_1.useState)(false);
|
|
19
|
-
(0, react_1.useEffect)(() => {
|
|
20
|
-
async function restoreSession() {
|
|
21
|
-
// Check local storage for persistent token
|
|
22
|
-
const token = typeof window !== 'undefined' ? localStorage.getItem('armoyu_token') : null;
|
|
23
|
-
const useMock = typeof window !== 'undefined' ? localStorage.getItem('armoyu_use_mock') === 'true' : false;
|
|
24
|
-
if (token) {
|
|
25
|
-
try {
|
|
26
|
-
// Set token in core API client
|
|
27
|
-
api.setToken(token);
|
|
28
|
-
// Request current user profile from real API
|
|
29
|
-
const response = await api.auth.me();
|
|
30
|
-
if (response.durum === 1 && response.icerik) {
|
|
31
|
-
const richUser = User_1.User.fromAPI(response.icerik);
|
|
32
|
-
setUser(richUser);
|
|
33
|
-
setSession(new Session_1.Session({ user: richUser, token }));
|
|
34
|
-
console.log('[AuthContext] Session restored for:', richUser.username);
|
|
35
|
-
}
|
|
36
|
-
else {
|
|
37
|
-
throw new Error(response.aciklama || 'Geçersiz oturum verisi.');
|
|
38
|
-
}
|
|
39
|
-
}
|
|
40
|
-
catch (e) {
|
|
41
|
-
console.warn('[AuthContext] Session restoration failed:', e.message);
|
|
42
|
-
if (typeof window !== 'undefined') {
|
|
43
|
-
localStorage.removeItem('armoyu_token');
|
|
44
|
-
}
|
|
45
|
-
api.setToken(null);
|
|
46
|
-
setUser(null);
|
|
47
|
-
setSession(null);
|
|
48
|
-
}
|
|
49
|
-
}
|
|
50
|
-
else if (useMock || apiKey === 'armoyu_showcase_key') {
|
|
51
|
-
// FALLBACK TO MOCK SESSION FOR SHOWCASE / DEV
|
|
52
|
-
console.log('[AuthContext] Loading Mock Session...');
|
|
53
|
-
setUser(seedData_1.MOCK_SESSION.user);
|
|
54
|
-
setSession(seedData_1.MOCK_SESSION);
|
|
55
|
-
}
|
|
56
|
-
setIsLoading(false);
|
|
57
|
-
}
|
|
58
|
-
restoreSession();
|
|
59
|
-
}, [api, apiKey]);
|
|
60
|
-
const login = async (username, password) => {
|
|
61
|
-
try {
|
|
62
|
-
// Real API login via core library
|
|
63
|
-
const response = await api.auth.login(username, password);
|
|
64
|
-
console.log('[AuthContext] API Cevabı:', response);
|
|
65
|
-
if (Number(response.durum) !== 1 || !response.icerik) {
|
|
66
|
-
console.error('[AuthContext] Giriş başarısız, cevap durum 1 değil veya içerik yok!');
|
|
67
|
-
throw new Error(response.aciklama || 'Giriş başarısız. Lütfen bilgilerinizi kontrol edin.');
|
|
68
|
-
}
|
|
69
|
-
const { user: userResponse, token: sessionToken } = response.icerik;
|
|
70
|
-
const richUser = User_1.User.fromAPI(userResponse);
|
|
71
|
-
if (!richUser.id || Number(richUser.id) === 0) {
|
|
72
|
-
console.error('[AuthContext] Geçersiz kullanıcı verisi (ID 0):', richUser);
|
|
73
|
-
throw new Error('Kullanıcı adı veya şifre hatalı! (Eşleşme sağlanamadı)');
|
|
74
|
-
}
|
|
75
|
-
const newSession = new Session_1.Session({ user: richUser, token: sessionToken });
|
|
76
|
-
setUser(richUser);
|
|
77
|
-
setSession(newSession);
|
|
78
|
-
// Store token in localStorage and sync with ArmoyuContext
|
|
79
|
-
if (sessionToken) {
|
|
80
|
-
setGlobalToken(sessionToken);
|
|
81
|
-
}
|
|
82
|
-
console.log('[AuthContext] Login successful for:', richUser.username);
|
|
83
|
-
setIsLoginModalOpen(false);
|
|
84
|
-
}
|
|
85
|
-
catch (error) {
|
|
86
|
-
console.error('[AuthContext] Login failed:', error);
|
|
87
|
-
setUser(null);
|
|
88
|
-
setSession(null);
|
|
89
|
-
throw error;
|
|
90
|
-
}
|
|
91
|
-
};
|
|
92
|
-
const register = async (data) => {
|
|
93
|
-
try {
|
|
94
|
-
// Real API registration via core library
|
|
95
|
-
const response = await api.auth.register({
|
|
96
|
-
username: data.username,
|
|
97
|
-
password: data.password,
|
|
98
|
-
email: data.email,
|
|
99
|
-
firstName: data.firstName,
|
|
100
|
-
lastName: data.lastName,
|
|
101
|
-
inviteCode: data.inviteCode
|
|
102
|
-
});
|
|
103
|
-
if (response.durum !== 1) {
|
|
104
|
-
throw new Error(response.aciklama || 'Kayıt başarısız.');
|
|
105
|
-
}
|
|
106
|
-
// Automatically login after successful registration
|
|
107
|
-
await login(data.username, data.password);
|
|
108
|
-
setIsRegisterModalOpen(false);
|
|
109
|
-
}
|
|
110
|
-
catch (error) {
|
|
111
|
-
console.error('[AuthContext] Registration failed:', error);
|
|
112
|
-
throw error;
|
|
113
|
-
}
|
|
114
|
-
};
|
|
115
|
-
const logout = () => {
|
|
116
|
-
api.auth.logout();
|
|
117
|
-
setGlobalToken('');
|
|
118
|
-
setUser(null);
|
|
119
|
-
setSession(null);
|
|
120
|
-
};
|
|
121
|
-
const updateUser = (updatedUser) => {
|
|
122
|
-
if (!updatedUser)
|
|
123
|
-
return;
|
|
124
|
-
setUser(updatedUser);
|
|
125
|
-
if (session) {
|
|
126
|
-
setSession(new Session_1.Session({ ...session, user: updatedUser }));
|
|
127
|
-
}
|
|
128
|
-
};
|
|
129
|
-
const updateSession = (updatedSession) => {
|
|
130
|
-
if (!updatedSession)
|
|
131
|
-
return;
|
|
132
|
-
setSession(updatedSession);
|
|
133
|
-
if (updatedSession.token) {
|
|
134
|
-
setGlobalToken(updatedSession.token);
|
|
135
|
-
}
|
|
136
|
-
};
|
|
137
|
-
return ((0, jsx_runtime_1.jsx)(AuthContext.Provider, { value: {
|
|
138
|
-
user,
|
|
139
|
-
session,
|
|
140
|
-
login,
|
|
141
|
-
register,
|
|
142
|
-
logout,
|
|
143
|
-
isLoading,
|
|
144
|
-
isLoginModalOpen,
|
|
145
|
-
setIsLoginModalOpen,
|
|
146
|
-
isRegisterModalOpen,
|
|
147
|
-
setIsRegisterModalOpen,
|
|
148
|
-
updateUser,
|
|
149
|
-
updateSession
|
|
150
|
-
}, children: children }));
|
|
151
|
-
}
|
|
152
|
-
function useAuth() {
|
|
153
|
-
const context = (0, react_1.useContext)(AuthContext);
|
|
154
|
-
if (context === undefined) {
|
|
155
|
-
throw new Error('useAuth must be used within an AuthProvider');
|
|
156
|
-
}
|
|
157
|
-
return context;
|
|
158
|
-
}
|
|
159
|
-
//# sourceMappingURL=AuthContext.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"AuthContext.js","sourceRoot":"","sources":["../../src/context/AuthContext.tsx"],"names":[],"mappings":";;AAwBA,oCAgKC;AAED,0BAMC;;AAh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from 'react';
|
|
2
|
-
import { Product } from '../models/shop/Product';
|
|
3
|
-
import { CartItem } from '../models/shop/CartItem';
|
|
4
|
-
interface CartContextType {
|
|
5
|
-
cart: CartItem[];
|
|
6
|
-
addToCart: (product: Product, quantity?: number) => void;
|
|
7
|
-
removeFromCart: (productId: string) => void;
|
|
8
|
-
updateQuantity: (productId: string, quantity: number) => void;
|
|
9
|
-
clearCart: () => void;
|
|
10
|
-
totalItems: number;
|
|
11
|
-
totalPrice: number;
|
|
12
|
-
}
|
|
13
|
-
export declare function CartProvider({ children }: {
|
|
14
|
-
children: React.ReactNode;
|
|
15
|
-
}): import("react/jsx-runtime").JSX.Element;
|
|
16
|
-
export declare function useCart(): CartContextType;
|
|
17
|
-
export {};
|
|
18
|
-
//# sourceMappingURL=CartContext.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"CartContext.d.ts","sourceRoot":"","sources":["../../src/context/CartContext.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAyD,MAAM,OAAO,CAAC;AAC9E,OAAO,EAAE,OAAO,EAAE,MAAM,wBAAwB,CAAC;AACjD,OAAO,EAAE,QAAQ,EAAE,MAAM,yBAAyB,CAAC;AAEnD,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,67 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.CartProvider = CartProvider;
|
|
4
|
-
exports.useCart = useCart;
|
|
5
|
-
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
6
|
-
const react_1 = require("react");
|
|
7
|
-
const CartItem_1 = require("../models/shop/CartItem");
|
|
8
|
-
const CartContext = (0, react_1.createContext)(undefined);
|
|
9
|
-
function CartProvider({ children }) {
|
|
10
|
-
const [cart, setCart] = (0, react_1.useState)([]);
|
|
11
|
-
// Load cart from localStorage on mount
|
|
12
|
-
(0, react_1.useEffect)(() => {
|
|
13
|
-
const savedCart = localStorage.getItem('armoyu_cart');
|
|
14
|
-
if (savedCart) {
|
|
15
|
-
try {
|
|
16
|
-
const parsed = JSON.parse(savedCart);
|
|
17
|
-
setCart(parsed.map((i) => CartItem_1.CartItem.fromAPI(i)));
|
|
18
|
-
}
|
|
19
|
-
catch (e) {
|
|
20
|
-
console.error('Failed to parse cart', e);
|
|
21
|
-
}
|
|
22
|
-
}
|
|
23
|
-
}, []);
|
|
24
|
-
// Save cart to localStorage on change
|
|
25
|
-
(0, react_1.useEffect)(() => {
|
|
26
|
-
localStorage.setItem('armoyu_cart', JSON.stringify(cart));
|
|
27
|
-
}, [cart]);
|
|
28
|
-
const addToCart = (product, quantity = 1) => {
|
|
29
|
-
setCart(prev => {
|
|
30
|
-
const existing = prev.find(item => item.product.id === product.id);
|
|
31
|
-
if (existing) {
|
|
32
|
-
return prev.map(item => item.product.id === product.id
|
|
33
|
-
? new CartItem_1.CartItem({ ...item, quantity: item.quantity + quantity })
|
|
34
|
-
: item);
|
|
35
|
-
}
|
|
36
|
-
return [...prev, new CartItem_1.CartItem({ product, quantity })];
|
|
37
|
-
});
|
|
38
|
-
};
|
|
39
|
-
const removeFromCart = (productId) => {
|
|
40
|
-
setCart(prev => prev.filter(item => item.product.id !== productId));
|
|
41
|
-
};
|
|
42
|
-
const updateQuantity = (productId, quantity) => {
|
|
43
|
-
setCart(prev => prev.map(item => item.product.id === productId
|
|
44
|
-
? new CartItem_1.CartItem({ ...item, quantity: Math.max(1, quantity) })
|
|
45
|
-
: item));
|
|
46
|
-
};
|
|
47
|
-
const clearCart = () => setCart([]);
|
|
48
|
-
const totalItems = cart.reduce((acc, item) => acc + item.quantity, 0);
|
|
49
|
-
const totalPrice = cart.reduce((acc, item) => acc + item.getTotalPrice(), 0);
|
|
50
|
-
return ((0, jsx_runtime_1.jsx)(CartContext.Provider, { value: {
|
|
51
|
-
cart,
|
|
52
|
-
addToCart,
|
|
53
|
-
removeFromCart,
|
|
54
|
-
updateQuantity,
|
|
55
|
-
clearCart,
|
|
56
|
-
totalItems,
|
|
57
|
-
totalPrice
|
|
58
|
-
}, children: children }));
|
|
59
|
-
}
|
|
60
|
-
function useCart() {
|
|
61
|
-
const context = (0, react_1.useContext)(CartContext);
|
|
62
|
-
if (context === undefined) {
|
|
63
|
-
throw new Error('useCart must be used within a CartProvider');
|
|
64
|
-
}
|
|
65
|
-
return context;
|
|
66
|
-
}
|
|
67
|
-
//# sourceMappingURL=CartContext.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"CartContext.js","sourceRoot":"","sources":["../../src/context/CartContext.tsx"],"names":[],"mappings":";;AAgBA,oCAiEC;AAED,0BAMC;;AAzFD,iCAA8E;AAE9E,sDAAmD;AAYnD,MAAM,WAAW,GAAG,IAAA,qBAAa,EAA8B,SAAS,CAAC,CAAC;AAE1E,SAAgB,YAAY,CAAC,EAAE,QAAQ,EAAiC;IACtE,MAAM,CAAC,IAAI,EAAE,OAAO,CAAC,GAAG,IAAA,gBAAQ,EAAa,EAAE,CAAC,CAAC;IAEjD,uCAAuC;IACvC,IAAA,iBAAS,EAAC,GAAG,EAAE;QACb,MAAM,SAAS,GAAG,YAAY,CAAC,OAA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,QAAQ,GACY,CACxB,CAAC;AACJ,CAAC;AAED,SAAgB,OAAO;IACrB,MAAM,OAAO,GAAG,IAAA,kBAAU,EAAC,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,27 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { Chat } from '../models/social/chat/Chat';
|
|
3
|
-
import { ChatMessage } from '../models/social/chat/Message';
|
|
4
|
-
interface ChatContextType {
|
|
5
|
-
isChatOpen: boolean;
|
|
6
|
-
isLiveMode: boolean;
|
|
7
|
-
chatList: Chat[];
|
|
8
|
-
searchResults: Chat[];
|
|
9
|
-
activeMessages: ChatMessage[];
|
|
10
|
-
isLoading: boolean;
|
|
11
|
-
hasMoreChat: boolean;
|
|
12
|
-
chatPage: number;
|
|
13
|
-
toggleChat: () => void;
|
|
14
|
-
openChat: () => void;
|
|
15
|
-
closeChat: () => void;
|
|
16
|
-
setLiveMode: (isLive: boolean) => void;
|
|
17
|
-
fetchChatList: (page?: number, forced?: boolean) => Promise<void>;
|
|
18
|
-
fetchMessages: (userId: number, page?: number, forced?: boolean) => Promise<void>;
|
|
19
|
-
searchFriends: (query: string) => Promise<void>;
|
|
20
|
-
sendMessage: (userId: number, content: string) => Promise<boolean>;
|
|
21
|
-
}
|
|
22
|
-
export declare function ChatProvider({ children }: {
|
|
23
|
-
children: React.ReactNode;
|
|
24
|
-
}): import("react/jsx-runtime").JSX.Element;
|
|
25
|
-
export declare function useChat(): ChatContextType;
|
|
26
|
-
export {};
|
|
27
|
-
//# sourceMappingURL=ChatContext.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ChatContext.d.ts","sourceRoot":"","sources":["../../src/context/ChatContext.tsx"],"names":[],"mappings":"AAAA,OAAO,KA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ule", { value: true });
|
|
3
|
-
exports.ChatProvider = ChatProvider;
|
|
4
|
-
exports.useChat = useChat;
|
|
5
|
-
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
6
|
-
const react_1 = require("react");
|
|
7
|
-
const Chat_1 = require("../models/social/chat/Chat");
|
|
8
|
-
const Message_1 = require("../models/social/chat/Message");
|
|
9
|
-
const User_1 = require("../models/auth/User");
|
|
10
|
-
const ArmoyuContext_1 = require("./ArmoyuContext");
|
|
11
|
-
const ChatContext = (0, react_1.createContext)(undefined);
|
|
12
|
-
function ChatProvider({ children }) {
|
|
13
|
-
const { api, apiKey, isMockEnabled, setMockEnabled } = (0, ArmoyuContext_1.useArmoyu)();
|
|
14
|
-
const [isChatOpen, setIsChatOpen] = (0, react_1.useState)(false);
|
|
15
|
-
const [chatList, setChatList] = (0, react_1.useState)([]);
|
|
16
|
-
const [searchResults, setSearchResults] = (0, react_1.useState)([]);
|
|
17
|
-
const [activeMessages, setActiveMessages] = (0, react_1.useState)([]);
|
|
18
|
-
const [isLoading, setIsLoading] = (0, react_1.useState)(false);
|
|
19
|
-
const [hasMoreChat, setHasMoreChat] = (0, react_1.useState)(true);
|
|
20
|
-
const [chatPage, setChatPage] = (0, react_1.useState)(1);
|
|
21
|
-
// Compute isLiveMode from global isMockEnabled
|
|
22
|
-
const isLiveMode = !isMockEnabled;
|
|
23
|
-
const toggleChat = () => setIsChatOpen(!isChatOpen);
|
|
24
|
-
const openChat = () => setIsChatOpen(true);
|
|
25
|
-
const closeChat = () => setIsChatOpen(false);
|
|
26
|
-
const setLiveMode = (isLive) => {
|
|
27
|
-
setMockEnabled(!isLive);
|
|
28
|
-
if (!isLive) {
|
|
29
|
-
setChatList([]);
|
|
30
|
-
setActiveMessages([]);
|
|
31
|
-
}
|
|
32
|
-
};
|
|
33
|
-
const fetchChatList = (0, react_1.useCallback)(async (page = 1, forced = false) => {
|
|
34
|
-
if (isMockEnabled && !forced) {
|
|
35
|
-
// Mock data for showcase doesn't need pagination for now
|
|
36
|
-
if (page > 1)
|
|
37
|
-
return;
|
|
38
|
-
setChatList([
|
|
39
|
-
new Chat_1.Chat({ id: '1', name: 'Berkay Tikenoğlu', lastMessage: new Message_1.ChatMessage({ content: 'Hocam selamlar!' }), unreadCount: 2, avatar: 'https://api.dicebear.com/7.x/initials/svg?seed=BT' }),
|
|
40
|
-
new Chat_1.Chat({ id: '2', name: 'MythX Destek', lastMessage: new Message_1.ChatMessage({ content: 'Tabii, hemen yardımcı olalım.' }), unreadCount: 0, avatar: 'https://api.dicebear.com/7.x/initials/svg?seed=MX' }),
|
|
41
|
-
new Chat_1.Chat({ id: '3', name: 'Minecraft Grubu', lastMessage: new Message_1.ChatMessage({ content: 'Yarın akşam 20:00 etkinlik var.' }), unreadCount: 5, avatar: 'https://api.dicebear.com/7.x/initials/svg?seed=MG' }),
|
|
42
|
-
]);
|
|
43
|
-
setHasMoreChat(false);
|
|
44
|
-
return;
|
|
45
|
-
}
|
|
46
|
-
if (!isLiveMode && !forced)
|
|
47
|
-
return;
|
|
48
|
-
if (isLoading)
|
|
49
|
-
return;
|
|
50
|
-
setIsLoading(true);
|
|
51
|
-
try {
|
|
52
|
-
const response = await api.chat.getFriendsChat(page);
|
|
53
|
-
const data = response.icerik || [];
|
|
54
|
-
if (Array.isArray(data)) {
|
|
55
|
-
const mapped = data.map((c) => Chat_1.Chat.fromAPI(c));
|
|
56
|
-
setChatList(prev => page === 1 ? mapped : [...prev, ...mapped]);
|
|
57
|
-
setChatPage(page);
|
|
58
|
-
setHasMoreChat(data.length >= 20); // API limitine göre hasMore set et
|
|
59
|
-
}
|
|
60
|
-
else {
|
|
61
|
-
setHasMoreChat(false);
|
|
62
|
-
}
|
|
63
|
-
}
|
|
64
|
-
catch (error) {
|
|
65
|
-
console.error("[ChatContext] Fetch chats failed:", error);
|
|
66
|
-
setHasMoreChat(false);
|
|
67
|
-
}
|
|
68
|
-
finally {
|
|
69
|
-
setIsLoading(false);
|
|
70
|
-
}
|
|
71
|
-
}, [api, isLiveMode, isMockEnabled, isLoading]);
|
|
72
|
-
const fetchMessages = (0, react_1.useCallback)(async (userId, page = 1, forced = false) => {
|
|
73
|
-
if (isMockEnabled && !forced) {
|
|
74
|
-
// Mock Messages for Showcase
|
|
75
|
-
const mockUser = new User_1.User({ displayName: 'Berkay Tikenoğlu', username: 'berkay' });
|
|
76
|
-
const systemUser = new User_1.User({ displayName: 'Sistem', username: 'sistem' });
|
|
77
|
-
const mockMsgs = [
|
|
78
|
-
new Message_1.ChatMessage({ id: 'm1', sender: mockUser, content: 'Selamlar hocam!', timestamp: '12:45' }),
|
|
79
|
-
new Message_1.ChatMessage({ id: 'm2', sender: systemUser, content: 'Aleykümselam, hoş geldin.', timestamp: '12:46' }),
|
|
80
|
-
new Message_1.ChatMessage({ id: 'm3', sender: mockUser, content: 'Vitrin modu test verileri bunlar.', timestamp: '12:47' }),
|
|
81
|
-
new Message_1.ChatMessage({ id: 'm4', sender: systemUser, content: 'Harika görünüyor, eline sağlık!', timestamp: '12:48' }),
|
|
82
|
-
];
|
|
83
|
-
setActiveMessages(page === 1 ? mockMsgs : [...mockMsgs, ...activeMessages]);
|
|
84
|
-
return;
|
|
85
|
-
}
|
|
86
|
-
if (!isLiveMode && !forced)
|
|
87
|
-
return;
|
|
88
|
-
setIsLoading(true);
|
|
89
|
-
try {
|
|
90
|
-
// Use getChatDetail for initial fetch or getChatHistory for pagination
|
|
91
|
-
const response = await api.chat.getChatDetail(userId, "ozel");
|
|
92
|
-
const data = response.icerik || [];
|
|
93
|
-
if (Array.isArray(data)) {
|
|
94
|
-
console.log('[ChatContext] Messages API Data:', data);
|
|
95
|
-
const msgs = data.map((m) => Message_1.ChatMessage.fromAPI(m));
|
|
96
|
-
setActiveMessages(prev => (page === 1 ? msgs : [...msgs, ...prev]));
|
|
97
|
-
}
|
|
98
|
-
}
|
|
99
|
-
catch (error) {
|
|
100
|
-
console.error("[ChatContext] Fetch messages failed:", error);
|
|
101
|
-
}
|
|
102
|
-
finally {
|
|
103
|
-
setIsLoading(false);
|
|
104
|
-
}
|
|
105
|
-
}, [api, isLiveMode, isMockEnabled]);
|
|
106
|
-
const searchFriends = (0, react_1.useCallback)(async (query) => {
|
|
107
|
-
if (!isLiveMode || !query.trim()) {
|
|
108
|
-
setSearchResults([]);
|
|
109
|
-
return;
|
|
110
|
-
}
|
|
111
|
-
try {
|
|
112
|
-
// API'den arkadaşları çek ve filtrele (Veya varsa search endpointi kullan)
|
|
113
|
-
const response = await api.chat.getFriendsChat(1);
|
|
114
|
-
const data = response.icerik || [];
|
|
115
|
-
if (Array.isArray(data)) {
|
|
116
|
-
const mapped = data.map((c) => Chat_1.Chat.fromAPI(c));
|
|
117
|
-
const filtered = mapped.filter(c => c.name.toLowerCase().includes(query.toLowerCase()) ||
|
|
118
|
-
c.id.toLowerCase().includes(query.toLowerCase()));
|
|
119
|
-
setSearchResults(filtered);
|
|
120
|
-
}
|
|
121
|
-
}
|
|
122
|
-
catch (error) {
|
|
123
|
-
console.error("[ChatContext] Search friends failed:", error);
|
|
124
|
-
}
|
|
125
|
-
}, [api, isLiveMode]);
|
|
126
|
-
const sendMessage = (0, react_1.useCallback)(async (userId, content) => {
|
|
127
|
-
if (!isLiveMode || apiKey === 'armoyu_showcase_key')
|
|
128
|
-
return false;
|
|
129
|
-
try {
|
|
130
|
-
const response = await api.chat.sendMessage(userId, content, "ozel");
|
|
131
|
-
return response.durum === 1;
|
|
132
|
-
}
|
|
133
|
-
catch (error) {
|
|
134
|
-
console.error("[ChatContext] Send message failed:", error);
|
|
135
|
-
return false;
|
|
136
|
-
}
|
|
137
|
-
}, [api, isLiveMode, apiKey]);
|
|
138
|
-
return ((0, jsx_runtime_1.jsx)(ChatContext.Provider, { value: {
|
|
139
|
-
isChatOpen,
|
|
140
|
-
isLiveMode,
|
|
141
|
-
chatList,
|
|
142
|
-
activeMessages,
|
|
143
|
-
isLoading,
|
|
144
|
-
toggleChat,
|
|
145
|
-
openChat,
|
|
146
|
-
closeChat,
|
|
147
|
-
setLiveMode,
|
|
148
|
-
fetchChatList,
|
|
149
|
-
fetchMessages,
|
|
150
|
-
searchFriends,
|
|
151
|
-
sendMessage,
|
|
152
|
-
hasMoreChat,
|
|
153
|
-
chatPage,
|
|
154
|
-
searchResults
|
|
155
|
-
}, children: children }));
|
|
156
|
-
}
|
|
157
|
-
function useChat() {
|
|
158
|
-
const context = (0, react_1.useContext)(ChatContext);
|
|
159
|
-
if (!context)
|
|
160
|
-
throw new Error('useChat must be used within ChatProvider');
|
|
161
|
-
return context;
|
|
162
|
-
}
|
|
163
|
-
//# sourceMappingURL=ChatContext.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ChatContext.js","sourceRoot":"","sources":["../../src/context/ChatContext.tsx"],"names":[],"mappings":";;AA6BA,oCA4JC;AAED,0BAIC;;AA/LD,iCAAgF;AAChF,qDAAkD;AAClD,2DAA4D;AAC5D,8CAA2C;AAC3C,mDAA4C;AAuB5C,MAAM,WAAW,GAAG,IAAA,qBAAa,EAA8B,SAAS,CAAC,CAAC;AAE1E,SAAgB,YAAY,CAAC,EAAE,QAAQ,EAAiC;IACtE,MAAM,EAAE,GAAG,EAAE,MAAM,EAAE,aAAa,EAAE,cAAc,EAAE,GAAG,IAAA,yBAAS,GAAE,CAAC;IACnE,MAAM,CAAC,UAAU,EAAE,aAAa,CAAC,GAAG,IAAA,gBAAQ,EAAC,KAAK,CAAC,CAAC;IACpD,MAAM,CAAC,QAAQ,EAAE,WAAW,CAAC,GAAG,IAAA,gBAAQ,EAAS,EAAE,CAAC,CAAC;IACrD,MAAM,CAAC,aAAa,EAAE,gBAAgB,CAAC,GAAG,IAAA,gBAAQ,EAAS,EAAE,CAAC,CAAC;IAC/D,MAAM,CAAC,cAAc,EAAE,iBAAiB,CAAC,GAAG,IAAA,gBAAQ,EAAgB,EAAE,CAAC,CAAC;IACxE,MAAM,CAAC,SAAS,EAAE,YAAY,CAAC,GAAG,IAAA,gBAAQ,EAAC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,CAAC,IAAI,CAAC,WAAW,CAAC,MAAM,EAAE,OAAO,EAAE,MAAM,CAAC,CAAC;YACrE,OAAO,QAAQ,CAAC,KAAK,KAAK,CAAC,CAAC;QAC9B,CAAC;QAAC,OAAO,KAAK,EAAE,CAAC;YACf,OAAO,CAAC,KAAK,CAAC,oCAAoC,EAAE,KAAK,CAAC,CAAC;YAC3D,OAAO,KAAK,CAAC;QACf,CAAC;IACH,CAAC,EAAE,CAAC,GAAG,EAAE,UAAU,EAAE,MAAM,CAAC,CAAC,CAAC;IAE9B,OAAO,CACL,uBAAC,WAAW,CAAC,QAAQ,IAAC,KAAK,EAAE;YAC3B,UAAU;YACV,UAAU;YACV,QAAQ;YACR,cAAc;YACd,SAAS;YACT,UAAU;YACV,QAAQ;YACR,SAAS;YACT,WAAW;YACX,aAAa;YACb,aAAa;YACb,aAAa;YACb,WAAW;YACX,WAAW;YACX,QAAQ;YACR,aAAa;SACd,YACE,QAAQ,GACY,CACxB,CAAC;AACJ,CAAC;AAED,SAAgB,OAAO;IACrB,MAAM,OAAO,GAAG,IAAA,kBAAU,EAAC,WAAW,CAAC,CAAC;IACxC,IAAI,CAAC,OAAO;QAAE,MAAM,IAAI,KAAK,CAAC,0CAA0C,CAAC,CAAC;IAC1E,OAAO,OAAO,CAAC;AACjB,CAAC"}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { ReactNode } from 'react';
|
|
2
|
-
type LayoutContextType = {
|
|
3
|
-
pageWidth: string;
|
|
4
|
-
setPageWidth: (width: string) => void;
|
|
5
|
-
};
|
|
6
|
-
export declare function LayoutProvider({ children }: {
|
|
7
|
-
children: ReactNode;
|
|
8
|
-
}): import("react/jsx-runtime").JSX.Element;
|
|
9
|
-
export declare function useLayout(): LayoutContextType;
|
|
10
|
-
export {};
|
|
11
|
-
//# sourceMappingURL=LayoutContext.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"LayoutContext.d.ts","sourceRoot":"","sources":["../../src/context/LayoutContext.tsx"],"names":[],"mappings":"AAEA,OAAc,EAAuC,SAAS,EAAE,MAAM,OAAO,CAAC;AAE9E,KAAK,iBAAiB,GAAG;IACvB,SAAS,EAAE,MAAM,CAAC;IAClB,YAAY,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;CACvC,CAAC;AAIF,wBAAgB,cAAc,CAAC,EAAE,QAAQ,EAAE,EAAE;IAAE,QAAQ,EAAE,SAAS,CAAA;CAAE,2CASnE;AAED,wBAAgB,SAAS,sBAMxB"}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
'use client';
|
|
3
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
-
exports.LayoutProvider = LayoutProvider;
|
|
5
|
-
exports.useLayout = useLayout;
|
|
6
|
-
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
7
|
-
const react_1 = require("react");
|
|
8
|
-
const LayoutContext = (0, react_1.createContext)(undefined);
|
|
9
|
-
function LayoutProvider({ children }) {
|
|
10
|
-
// Varsayılan masaüstü değeri %80 olarak ayarlanmıştır.
|
|
11
|
-
const [pageWidth, setPageWidth] = (0, react_1.useState)('max-w-[80%]');
|
|
12
|
-
return ((0, jsx_runtime_1.jsx)(LayoutContext.Provider, { value: { pageWidth, setPageWidth }, children: children }));
|
|
13
|
-
}
|
|
14
|
-
function useLayout() {
|
|
15
|
-
const context = (0, react_1.useContext)(LayoutContext);
|
|
16
|
-
if (!context) {
|
|
17
|
-
throw new Error('useLayout must be used within a LayoutProvider');
|
|
18
|
-
}
|
|
19
|
-
return context;
|
|
20
|
-
}
|
|
21
|
-
//# sourceMappingURL=LayoutContext.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"LayoutContext.js","sourceRoot":"","sources":["../../src/context/LayoutContext.tsx"],"names":[],"mappings":";AAAA,YAAY,CAAC;;AAWb,wCASC;AAED,8BAMC;;AA1BD,iCAA8E;AAO9E,MAAM,aAAa,GAAG,IAAA,qBAAa,EAAgC,SAAS,CAAC,CAAC;AAE9E,SAAgB,cAAc,CAAC,EAAE,QAAQ,EAA2B;IAClE,uDAAuD;IACvD,MAAM,CAAC,SAAS,EAAE,YAAY,CAAC,GAAG,IAAA,gBAAQ,EAAC,aAAa,CAAC,CAAC;IAE1D,OAAO,CACL,uBAAC,aAAa,CAAC,QAAQ,IAAC,KAAK,EAAE,EAAE,SAAS,EAAE,YAAY,EAAE,YACvD,QAAQ,GACc,CAC1B,CAAC;AACJ,CAAC;AAED,SAAgB,SAAS;IACvB,MAAM,OAAO,GAAG,IAAA,kBAAU,EAAC,aAAa,CAAC,CAAC;IAC1C,IAAI,CAAC,OAAO,EAAE,CAAC;QACb,MAAM,IAAI,KAAK,CAAC,gDAAgD,CAAC,CAAC;IACpE,CAAC;IACD,OAAO,OAAO,CAAC;AACjB,CAAC"}
|