@ludo.ninja/components 1.9.6 → 2.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (701) hide show
  1. package/package.json +4 -6
  2. package/README.md +0 -40
  3. package/dist/api/graphql/index.d.ts +0 -4
  4. package/dist/api/graphql/index.js +0 -11
  5. package/dist/components/CreationCard/CardHead.d.ts +0 -14
  6. package/dist/components/CreationCard/CardHead.js +0 -129
  7. package/dist/components/CreationCard/index.d.ts +0 -30
  8. package/dist/components/CreationCard/index.js +0 -103
  9. package/dist/components/addWalletsRedirectPage/index.d.ts +0 -5
  10. package/dist/components/addWalletsRedirectPage/index.js +0 -38
  11. package/dist/components/banner/index.d.ts +0 -3
  12. package/dist/components/banner/index.js +0 -71
  13. package/dist/components/base/Meta/index.d.ts +0 -3
  14. package/dist/components/base/Meta/index.js +0 -60
  15. package/dist/components/base/NoSSR/index.d.ts +0 -5
  16. package/dist/components/base/NoSSR/index.js +0 -10
  17. package/dist/components/collectionPage/collectionLike/index.d.ts +0 -7
  18. package/dist/components/collectionPage/collectionLike/index.js +0 -41
  19. package/dist/components/deleteDialog/index.d.ts +0 -8
  20. package/dist/components/deleteDialog/index.js +0 -109
  21. package/dist/components/favoriteList/add/addAssetToFavoriteList/index.d.ts +0 -6
  22. package/dist/components/favoriteList/add/addAssetToFavoriteList/index.js +0 -94
  23. package/dist/components/favoriteList/add/addCollectionToFavoriteList/index.d.ts +0 -6
  24. package/dist/components/favoriteList/add/addCollectionToFavoriteList/index.js +0 -92
  25. package/dist/components/favoriteList/add/addCreationToFavoriteList/index.d.ts +0 -7
  26. package/dist/components/favoriteList/add/addCreationToFavoriteList/index.js +0 -94
  27. package/dist/components/filters/applyResetBtns/index.d.ts +0 -6
  28. package/dist/components/filters/applyResetBtns/index.js +0 -28
  29. package/dist/components/filters/galleriesFiltersForm/index.d.ts +0 -11
  30. package/dist/components/filters/galleriesFiltersForm/index.js +0 -90
  31. package/dist/components/filters/index.d.ts +0 -12
  32. package/dist/components/filters/index.js +0 -111
  33. package/dist/components/filters/mobileFilters/index.d.ts +0 -5
  34. package/dist/components/filters/mobileFilters/index.js +0 -21
  35. package/dist/components/filters/setsFiltersForm/index.d.ts +0 -10
  36. package/dist/components/filters/setsFiltersForm/index.js +0 -82
  37. package/dist/components/forms/form/index.d.ts +0 -14
  38. package/dist/components/forms/form/index.js +0 -136
  39. package/dist/components/forms/formsNavigation/index.d.ts +0 -3
  40. package/dist/components/forms/formsNavigation/index.js +0 -73
  41. package/dist/components/forms/formsTemplate/index.d.ts +0 -14
  42. package/dist/components/forms/formsTemplate/index.js +0 -776
  43. package/dist/components/forms/types/index.d.ts +0 -32
  44. package/dist/components/forms/types/index.js +0 -13
  45. package/dist/components/gallery/add/addAssetToGallery/index.d.ts +0 -6
  46. package/dist/components/gallery/add/addAssetToGallery/index.js +0 -94
  47. package/dist/components/gallery/add/addCreationToGallery/index.d.ts +0 -3
  48. package/dist/components/gallery/add/addCreationToGallery/index.js +0 -114
  49. package/dist/components/gradientLabel/index.d.ts +0 -3
  50. package/dist/components/gradientLabel/index.js +0 -24
  51. package/dist/components/headers/components/MobileToggle/index.d.ts +0 -0
  52. package/dist/components/headers/components/MobileToggle/index.js +0 -0
  53. package/dist/components/headers/components/headerExperienceLabel/index.d.ts +0 -5
  54. package/dist/components/headers/components/headerExperienceLabel/index.js +0 -32
  55. package/dist/components/headers/components/headerUserPic/index.d.ts +0 -5
  56. package/dist/components/headers/components/headerUserPic/index.js +0 -27
  57. package/dist/components/headers/header/index.d.ts +0 -3
  58. package/dist/components/headers/header/index.js +0 -32
  59. package/dist/components/headers/headerSearch/index.d.ts +0 -3
  60. package/dist/components/headers/headerSearch/index.js +0 -39
  61. package/dist/components/headers/headerSimple/index.d.ts +0 -3
  62. package/dist/components/headers/headerSimple/index.js +0 -33
  63. package/dist/components/index.d.ts +0 -2
  64. package/dist/components/index.js +0 -23
  65. package/dist/components/inviteCodesForms/getEarlyAccessForm/index.d.ts +0 -3
  66. package/dist/components/inviteCodesForms/getEarlyAccessForm/index.js +0 -181
  67. package/dist/components/inviteCodesForms/joinWaitListForm/index.d.ts +0 -3
  68. package/dist/components/inviteCodesForms/joinWaitListForm/index.js +0 -126
  69. package/dist/components/inviteCodesForms/styles/index.d.ts +0 -6
  70. package/dist/components/inviteCodesForms/styles/index.js +0 -18
  71. package/dist/components/inviteCodesPage/components/index.d.ts +0 -5
  72. package/dist/components/inviteCodesPage/components/index.js +0 -14
  73. package/dist/components/inviteCodesPage/components/inviteCodes/index.d.ts +0 -6
  74. package/dist/components/inviteCodesPage/components/inviteCodes/index.js +0 -24
  75. package/dist/components/inviteCodesPage/components/inviteCodes/inviteCode/index.d.ts +0 -7
  76. package/dist/components/inviteCodesPage/components/inviteCodes/inviteCode/index.js +0 -30
  77. package/dist/components/inviteCodesPage/components/inviteCodes/inviteCode/loader/index.d.ts +0 -3
  78. package/dist/components/inviteCodesPage/components/inviteCodes/inviteCode/loader/index.js +0 -26
  79. package/dist/components/inviteCodesPage/components/inviteCodes/inviteCodeCaption/index.d.ts +0 -7
  80. package/dist/components/inviteCodesPage/components/inviteCodes/inviteCodeCaption/index.js +0 -28
  81. package/dist/components/inviteCodesPage/components/inviteCodes/inviteCodeCaption/loader/index.d.ts +0 -3
  82. package/dist/components/inviteCodesPage/components/inviteCodes/inviteCodeCaption/loader/index.js +0 -21
  83. package/dist/components/inviteCodesPage/components/inviteCodes/inviteCodeCopy/index.d.ts +0 -6
  84. package/dist/components/inviteCodesPage/components/inviteCodes/inviteCodeCopy/index.js +0 -27
  85. package/dist/components/inviteCodesPage/components/inviteCodes/inviteCodeDate/index.d.ts +0 -5
  86. package/dist/components/inviteCodesPage/components/inviteCodes/inviteCodeDate/index.js +0 -23
  87. package/dist/components/inviteCodesPage/wrappers/index.d.ts +0 -4
  88. package/dist/components/inviteCodesPage/wrappers/index.js +0 -12
  89. package/dist/components/inviteCodesPage/wrappers/resumeCodes/index.d.ts +0 -8
  90. package/dist/components/inviteCodesPage/wrappers/resumeCodes/index.js +0 -49
  91. package/dist/components/inviteCodesPage/wrappers/resumeCodes/loader/index.d.ts +0 -3
  92. package/dist/components/inviteCodesPage/wrappers/resumeCodes/loader/index.js +0 -17
  93. package/dist/components/inviteCodesPage/wrappers/unusedCodes/index.d.ts +0 -7
  94. package/dist/components/inviteCodesPage/wrappers/unusedCodes/index.js +0 -31
  95. package/dist/components/inviteCodesPage/wrappers/usedCodes/index.d.ts +0 -7
  96. package/dist/components/inviteCodesPage/wrappers/usedCodes/index.js +0 -37
  97. package/dist/components/linkTabs/index.d.ts +0 -7
  98. package/dist/components/linkTabs/index.js +0 -23
  99. package/dist/components/linkTabs/linkTab/index.d.ts +0 -9
  100. package/dist/components/linkTabs/linkTab/index.js +0 -28
  101. package/dist/components/myWallets/index.d.ts +0 -3
  102. package/dist/components/myWallets/index.js +0 -33
  103. package/dist/components/myWallets/myWalletItem/index.d.ts +0 -10
  104. package/dist/components/myWallets/myWalletItem/index.js +0 -137
  105. package/dist/components/navigation/index.d.ts +0 -8
  106. package/dist/components/navigation/index.js +0 -75
  107. package/dist/components/profile/MultiversXAudit/MultiversXAudit.d.ts +0 -2
  108. package/dist/components/profile/MultiversXAudit/MultiversXAudit.js +0 -136
  109. package/dist/components/profile/ProfileTabs.d.ts +0 -7
  110. package/dist/components/profile/ProfileTabs.js +0 -46
  111. package/dist/components/profile/aboutText/index.d.ts +0 -5
  112. package/dist/components/profile/aboutText/index.js +0 -105
  113. package/dist/components/profile/addToGalleryBtns/index.d.ts +0 -5
  114. package/dist/components/profile/addToGalleryBtns/index.js +0 -42
  115. package/dist/components/profile/followersSocial/followers/index.d.ts +0 -7
  116. package/dist/components/profile/followersSocial/followers/index.js +0 -28
  117. package/dist/components/profile/followersSocial/index.d.ts +0 -5
  118. package/dist/components/profile/followersSocial/index.js +0 -28
  119. package/dist/components/profile/followersSocial/social/index.d.ts +0 -3
  120. package/dist/components/profile/followersSocial/social/index.js +0 -40
  121. package/dist/components/profile/index.d.ts +0 -1
  122. package/dist/components/profile/index.js +0 -5
  123. package/dist/components/profile/info/index.d.ts +0 -7
  124. package/dist/components/profile/info/index.js +0 -43
  125. package/dist/components/profile/interests/data.d.ts +0 -3
  126. package/dist/components/profile/interests/data.js +0 -22
  127. package/dist/components/profile/interests/index.d.ts +0 -2
  128. package/dist/components/profile/interests/index.js +0 -56
  129. package/dist/components/profile/interests/type.d.ts +0 -6
  130. package/dist/components/profile/interests/type.js +0 -2
  131. package/dist/components/profile/jsonLd/index.d.ts +0 -4
  132. package/dist/components/profile/jsonLd/index.js +0 -9
  133. package/dist/components/profile/pageHead/index.d.ts +0 -6
  134. package/dist/components/profile/pageHead/index.js +0 -51
  135. package/dist/components/profile/profileSkeleton/index.d.ts +0 -5
  136. package/dist/components/profile/profileSkeleton/index.js +0 -35
  137. package/dist/components/profile/profileUserCards/index.d.ts +0 -4
  138. package/dist/components/profile/profileUserCards/index.js +0 -19
  139. package/dist/components/profile/profileUserCards/profileUserCard/index.d.ts +0 -10
  140. package/dist/components/profile/profileUserCards/profileUserCard/index.js +0 -157
  141. package/dist/components/profile/rank/index.d.ts +0 -5
  142. package/dist/components/profile/rank/index.js +0 -33
  143. package/dist/components/profile/stats/index.d.ts +0 -5
  144. package/dist/components/profile/stats/index.js +0 -28
  145. package/dist/components/profile/wallets/index.d.ts +0 -2
  146. package/dist/components/profile/wallets/index.js +0 -73
  147. package/dist/components/profile/wrapper/index.d.ts +0 -7
  148. package/dist/components/profile/wrapper/index.js +0 -17
  149. package/dist/components/registrationPage/index.d.ts +0 -3
  150. package/dist/components/registrationPage/index.js +0 -10
  151. package/dist/components/registrationPage/registrationSelectBox/index.d.ts +0 -9
  152. package/dist/components/registrationPage/registrationSelectBox/index.js +0 -24
  153. package/dist/components/registrationPage/registrationSelection/index.d.ts +0 -16
  154. package/dist/components/registrationPage/registrationSelection/index.js +0 -43
  155. package/dist/components/rewards/FAQ/index.d.ts +0 -3
  156. package/dist/components/rewards/FAQ/index.js +0 -132
  157. package/dist/components/rewards/clarifications/index.d.ts +0 -8
  158. package/dist/components/rewards/clarifications/index.js +0 -54
  159. package/dist/components/rewards/logoBottom/index.d.ts +0 -3
  160. package/dist/components/rewards/logoBottom/index.js +0 -29
  161. package/dist/components/rewards/prograssBar/index.d.ts +0 -7
  162. package/dist/components/rewards/prograssBar/index.js +0 -32
  163. package/dist/components/rewards/rewardsButton/index.d.ts +0 -3
  164. package/dist/components/rewards/rewardsButton/index.js +0 -17
  165. package/dist/components/rewards/seasonBanner/index.d.ts +0 -5
  166. package/dist/components/rewards/seasonBanner/index.js +0 -29
  167. package/dist/components/rewards/taskExpTab/index.d.ts +0 -14
  168. package/dist/components/rewards/taskExpTab/index.js +0 -64
  169. package/dist/components/rewards/tasksGrid/index.d.ts +0 -6
  170. package/dist/components/rewards/tasksGrid/index.js +0 -142
  171. package/dist/components/rewards/userExp/index.d.ts +0 -12
  172. package/dist/components/rewards/userExp/index.js +0 -72
  173. package/dist/components/search/SearchInputContainer.d.ts +0 -26
  174. package/dist/components/search/SearchInputContainer.js +0 -244
  175. package/dist/components/search/index.d.ts +0 -3
  176. package/dist/components/search/index.js +0 -86
  177. package/dist/components/search/searchCategories/index.d.ts +0 -3
  178. package/dist/components/search/searchCategories/index.js +0 -79
  179. package/dist/components/search/searchCategories/type.d.ts +0 -5
  180. package/dist/components/search/searchCategories/type.js +0 -2
  181. package/dist/components/search/searchCloseMoreButtons/index.d.ts +0 -14
  182. package/dist/components/search/searchCloseMoreButtons/index.js +0 -54
  183. package/dist/components/search/searchResultCaption/index.d.ts +0 -7
  184. package/dist/components/search/searchResultCaption/index.js +0 -31
  185. package/dist/components/search/searchSelectsGalleries/index.d.ts +0 -9
  186. package/dist/components/search/searchSelectsGalleries/index.js +0 -70
  187. package/dist/components/search/searchSelectsSets/index.d.ts +0 -8
  188. package/dist/components/search/searchSelectsSets/index.js +0 -69
  189. package/dist/components/search/searchSimpleInput/index.d.ts +0 -5
  190. package/dist/components/search/searchSimpleInput/index.js +0 -85
  191. package/dist/components/search/searchSuggestions/index.d.ts +0 -14
  192. package/dist/components/search/searchSuggestions/index.js +0 -117
  193. package/dist/components/search/searchSuggestions/searchSuggestionsCaption/index.d.ts +0 -7
  194. package/dist/components/search/searchSuggestions/searchSuggestionsCaption/index.js +0 -27
  195. package/dist/components/search/searchSuggestions/searchSuggestionsFooter/index.d.ts +0 -3
  196. package/dist/components/search/searchSuggestions/searchSuggestionsFooter/index.js +0 -30
  197. package/dist/components/search/searchSuggestions/searchSuggestionsItem/index.d.ts +0 -11
  198. package/dist/components/search/searchSuggestions/searchSuggestionsItem/index.js +0 -40
  199. package/dist/components/search/searchSuggestions/searchSuggestionsItem/searchSuggestionsItemSkeleton/index.d.ts +0 -4
  200. package/dist/components/search/searchSuggestions/searchSuggestionsItem/searchSuggestionsItemSkeleton/index.js +0 -56
  201. package/dist/components/search/searchSuggestions/searchSuggestionsNotFound/index.d.ts +0 -5
  202. package/dist/components/search/searchSuggestions/searchSuggestionsNotFound/index.js +0 -29
  203. package/dist/components/shareDialog/index.d.ts +0 -34
  204. package/dist/components/shareDialog/index.js +0 -73
  205. package/dist/components/showcaseAssets/showcaseSort/data.d.ts +0 -3
  206. package/dist/components/showcaseAssets/showcaseSort/data.js +0 -29
  207. package/dist/components/showcaseAssets/showcaseSort/index.d.ts +0 -8
  208. package/dist/components/showcaseAssets/showcaseSort/index.js +0 -28
  209. package/dist/components/sidebar/data.d.ts +0 -20
  210. package/dist/components/sidebar/data.js +0 -89
  211. package/dist/components/sidebar/index.d.ts +0 -3
  212. package/dist/components/sidebar/index.js +0 -131
  213. package/dist/components/sidebar/initializer.d.ts +0 -2
  214. package/dist/components/sidebar/initializer.js +0 -36
  215. package/dist/components/sidebar/sidebarFilters/index.d.ts +0 -7
  216. package/dist/components/sidebar/sidebarFilters/index.js +0 -30
  217. package/dist/components/sidebar/sidebarInviteCodeLabel/index.d.ts +0 -3
  218. package/dist/components/sidebar/sidebarInviteCodeLabel/index.js +0 -67
  219. package/dist/components/socialButtons/data.d.ts +0 -3
  220. package/dist/components/socialButtons/data.js +0 -52
  221. package/dist/components/socialButtons/icons/discord.d.ts +0 -3
  222. package/dist/components/socialButtons/icons/discord.js +0 -7
  223. package/dist/components/socialButtons/icons/facebook.d.ts +0 -3
  224. package/dist/components/socialButtons/icons/facebook.js +0 -8
  225. package/dist/components/socialButtons/icons/instagram.d.ts +0 -3
  226. package/dist/components/socialButtons/icons/instagram.js +0 -9
  227. package/dist/components/socialButtons/icons/medium.d.ts +0 -3
  228. package/dist/components/socialButtons/icons/medium.js +0 -7
  229. package/dist/components/socialButtons/icons/telegram.d.ts +0 -3
  230. package/dist/components/socialButtons/icons/telegram.js +0 -7
  231. package/dist/components/socialButtons/icons/twitter.d.ts +0 -3
  232. package/dist/components/socialButtons/icons/twitter.js +0 -7
  233. package/dist/components/socialButtons/index.d.ts +0 -3
  234. package/dist/components/socialButtons/index.js +0 -32
  235. package/dist/components/socialButtons/type.d.ts +0 -8
  236. package/dist/components/socialButtons/type.js +0 -2
  237. package/dist/components/tabs/icons/bell.d.ts +0 -5
  238. package/dist/components/tabs/icons/bell.js +0 -9
  239. package/dist/components/tabs/icons/profile.d.ts +0 -5
  240. package/dist/components/tabs/icons/profile.js +0 -9
  241. package/dist/components/tabs/icons/secure.d.ts +0 -5
  242. package/dist/components/tabs/icons/secure.js +0 -8
  243. package/dist/components/tabs/index.d.ts +0 -3
  244. package/dist/components/tabs/index.js +0 -55
  245. package/dist/components/toTopBtn/index.d.ts +0 -6
  246. package/dist/components/toTopBtn/index.js +0 -85
  247. package/dist/dto/AssetEntity/index.d.ts +0 -63
  248. package/dist/dto/AssetEntity/index.js +0 -211
  249. package/dist/dto/AssetEntity/interface.d.ts +0 -39
  250. package/dist/dto/AssetEntity/interface.js +0 -2
  251. package/dist/dto/AssetEntity/views/AssetAudio/index.d.ts +0 -9
  252. package/dist/dto/AssetEntity/views/AssetAudio/index.js +0 -39
  253. package/dist/dto/AssetEntity/views/AssetImage/index.d.ts +0 -10
  254. package/dist/dto/AssetEntity/views/AssetImage/index.js +0 -50
  255. package/dist/dto/AssetEntity/views/AssetObject/index.d.ts +0 -11
  256. package/dist/dto/AssetEntity/views/AssetObject/index.js +0 -70
  257. package/dist/dto/AssetEntity/views/AssetOther/index.d.ts +0 -11
  258. package/dist/dto/AssetEntity/views/AssetOther/index.js +0 -54
  259. package/dist/dto/AssetEntity/views/AssetScreenshot/index.d.ts +0 -10
  260. package/dist/dto/AssetEntity/views/AssetScreenshot/index.js +0 -50
  261. package/dist/dto/AssetEntity/views/AssetVideo/index.d.ts +0 -9
  262. package/dist/dto/AssetEntity/views/AssetVideo/index.js +0 -39
  263. package/dist/dto/AssetEntity/views/index.d.ts +0 -6
  264. package/dist/dto/AssetEntity/views/index.js +0 -16
  265. package/dist/dto/Collection/CollectionCreationEntity/index.d.ts +0 -45
  266. package/dist/dto/Collection/CollectionCreationEntity/index.js +0 -162
  267. package/dist/dto/Collection/CollectionCreationEntity/interface.d.ts +0 -24
  268. package/dist/dto/Collection/CollectionCreationEntity/interface.js +0 -2
  269. package/dist/dto/Collection/CollectionEntity/index.d.ts +0 -32
  270. package/dist/dto/Collection/CollectionEntity/index.js +0 -74
  271. package/dist/dto/Collection/CollectionEntity/interface.d.ts +0 -16
  272. package/dist/dto/Collection/CollectionEntity/interface.js +0 -2
  273. package/dist/dto/CreationEntity/index.d.ts +0 -49
  274. package/dist/dto/CreationEntity/index.js +0 -168
  275. package/dist/dto/CreationEntity/interface.d.ts +0 -30
  276. package/dist/dto/CreationEntity/interface.js +0 -2
  277. package/dist/dto/GalleryEntityV2/index.d.ts +0 -32
  278. package/dist/dto/GalleryEntityV2/index.js +0 -74
  279. package/dist/dto/GalleryEntityV2/interface.d.ts +0 -16
  280. package/dist/dto/GalleryEntityV2/interface.js +0 -2
  281. package/dist/dto/common/ItemType/data.d.ts +0 -3
  282. package/dist/dto/common/ItemType/data.js +0 -37
  283. package/dist/dto/common/ItemType/index.d.ts +0 -45
  284. package/dist/dto/common/ItemType/index.js +0 -42
  285. package/dist/dto/common/ItemViews/CreationAudio/index.d.ts +0 -9
  286. package/dist/dto/common/ItemViews/CreationAudio/index.js +0 -39
  287. package/dist/dto/common/ItemViews/CreationImage/index.d.ts +0 -10
  288. package/dist/dto/common/ItemViews/CreationImage/index.js +0 -50
  289. package/dist/dto/common/ItemViews/CreationObject/index.d.ts +0 -8
  290. package/dist/dto/common/ItemViews/CreationObject/index.js +0 -43
  291. package/dist/dto/common/ItemViews/CreationOther/index.d.ts +0 -9
  292. package/dist/dto/common/ItemViews/CreationOther/index.js +0 -39
  293. package/dist/dto/common/ItemViews/CreationVideo/index.d.ts +0 -9
  294. package/dist/dto/common/ItemViews/CreationVideo/index.js +0 -39
  295. package/dist/dto/common/ItemViews/index.d.ts +0 -5
  296. package/dist/dto/common/ItemViews/index.js +0 -21
  297. package/dist/dto/common/Media/Audio/index.d.ts +0 -13
  298. package/dist/dto/common/Media/Audio/index.js +0 -54
  299. package/dist/dto/common/Media/Image/index.d.ts +0 -13
  300. package/dist/dto/common/Media/Image/index.js +0 -62
  301. package/dist/dto/common/Media/Object/index.d.ts +0 -13
  302. package/dist/dto/common/Media/Object/index.js +0 -63
  303. package/dist/dto/common/Media/Other/index.d.ts +0 -13
  304. package/dist/dto/common/Media/Other/index.js +0 -82
  305. package/dist/dto/common/Media/Screenshot/index.d.ts +0 -13
  306. package/dist/dto/common/Media/Screenshot/index.js +0 -62
  307. package/dist/dto/common/Media/Urls/index.d.ts +0 -31
  308. package/dist/dto/common/Media/Urls/index.js +0 -130
  309. package/dist/dto/common/Media/Video/index.d.ts +0 -13
  310. package/dist/dto/common/Media/Video/index.js +0 -54
  311. package/dist/dto/common/Media/index.d.ts +0 -26
  312. package/dist/dto/common/Media/index.js +0 -40
  313. package/dist/dto/common/Media/interface.d.ts +0 -26
  314. package/dist/dto/common/Media/interface.js +0 -2
  315. package/dist/dto/index.d.ts +0 -8
  316. package/dist/dto/index.js +0 -33
  317. package/dist/entities/user/type.d.ts +0 -5
  318. package/dist/entities/user/type.js +0 -2
  319. package/dist/fonts/FontsInitializeLayout.d.ts +0 -6
  320. package/dist/fonts/FontsInitializeLayout.js +0 -67
  321. package/dist/fonts/index.d.ts +0 -3
  322. package/dist/fonts/index.js +0 -25
  323. package/dist/fonts/vars.d.ts +0 -1
  324. package/dist/fonts/vars.js +0 -6
  325. package/dist/hooks/apollo/index.d.ts +0 -5
  326. package/dist/hooks/apollo/index.js +0 -11
  327. package/dist/hooks/audio/useMultiAudio/index.d.ts +0 -2
  328. package/dist/hooks/audio/useMultiAudio/index.js +0 -56
  329. package/dist/hooks/extension/useExtension/index.d.ts +0 -7
  330. package/dist/hooks/extension/useExtension/index.js +0 -78
  331. package/dist/hooks/favorites/index.d.ts +0 -2
  332. package/dist/hooks/favorites/index.js +0 -18
  333. package/dist/hooks/favorites/useGetFavoriteGallaryCreations/index.d.ts +0 -20
  334. package/dist/hooks/favorites/useGetFavoriteGallaryCreations/index.js +0 -194
  335. package/dist/hooks/favorites/useGetUserFevoritesCreations/index.d.ts +0 -22
  336. package/dist/hooks/favorites/useGetUserFevoritesCreations/index.js +0 -270
  337. package/dist/hooks/galleries/index.d.ts +0 -1
  338. package/dist/hooks/galleries/index.js +0 -17
  339. package/dist/hooks/galleries/useGetUserGalleriesCreations/index.d.ts +0 -17
  340. package/dist/hooks/galleries/useGetUserGalleriesCreations/index.js +0 -226
  341. package/dist/hooks/index.d.ts +0 -5
  342. package/dist/hooks/index.js +0 -21
  343. package/dist/hooks/likes/dynamic/useFindCollectionsAndLikes.js +0 -241
  344. package/dist/hooks/likes/dynamic/useFindCreationsAndLikes.js +0 -213
  345. package/dist/hooks/likes/dynamic/useGetCollectionInfoAndLikes.d.ts +0 -13
  346. package/dist/hooks/likes/dynamic/useGetCollectionInfoAndLikes.js +0 -210
  347. package/dist/hooks/likes/dynamic/useGetCreationsAndLikes.js +0 -230
  348. package/dist/hooks/likes/dynamic/useGetCreationsAndLikesByType.js +0 -240
  349. package/dist/hooks/likes/dynamic/useGetMixedLikesFavoriteList.d.ts +0 -17
  350. package/dist/hooks/likes/dynamic/useGetMixedLikesFavoriteList.js +0 -50
  351. package/dist/hooks/likes/dynamic/useGetTableLikes.d.ts +0 -15
  352. package/dist/hooks/likes/dynamic/useGetTableLikes.js +0 -116
  353. package/dist/hooks/likes/index.d.ts +0 -19
  354. package/dist/hooks/likes/index.js +0 -177
  355. package/dist/hooks/likes/useGetLikesAsset.d.ts +0 -20
  356. package/dist/hooks/likes/useGetLikesAsset.js +0 -159
  357. package/dist/hooks/searchFiltersConnector/index.d.ts +0 -11
  358. package/dist/hooks/searchFiltersConnector/index.js +0 -195
  359. package/dist/hooks/useToGalleryAsset/index.d.ts +0 -18
  360. package/dist/hooks/useToGalleryAsset/index.js +0 -103
  361. package/dist/index.d.ts +0 -9
  362. package/dist/index.js +0 -25
  363. package/dist/layouts/GlobalLayout.d.ts +0 -4
  364. package/dist/layouts/GlobalLayout.js +0 -48
  365. package/dist/layouts/base/LWithRegularHeader/index.d.ts +0 -3
  366. package/dist/layouts/base/LWithRegularHeader/index.js +0 -25
  367. package/dist/layouts/base/LWithRegularHeader/type.d.ts +0 -5
  368. package/dist/layouts/base/LWithRegularHeader/type.js +0 -2
  369. package/dist/layouts/base/LWithSearchHeader/index.d.ts +0 -3
  370. package/dist/layouts/base/LWithSearchHeader/index.js +0 -18
  371. package/dist/layouts/base/LWithSearchHeader/type.d.ts +0 -5
  372. package/dist/layouts/base/LWithSearchHeader/type.js +0 -2
  373. package/dist/layouts/base/LWithSimpleHeader/index.d.ts +0 -3
  374. package/dist/layouts/base/LWithSimpleHeader/index.js +0 -21
  375. package/dist/layouts/base/LWithSimpleHeader/type.d.ts +0 -5
  376. package/dist/layouts/base/LWithSimpleHeader/type.js +0 -2
  377. package/dist/layouts/base/LWithoutHeader/index.d.ts +0 -3
  378. package/dist/layouts/base/LWithoutHeader/index.js +0 -23
  379. package/dist/layouts/custom/accountLayout/index.d.ts +0 -3
  380. package/dist/layouts/custom/accountLayout/index.js +0 -23
  381. package/dist/layouts/custom/formsLayout/index.d.ts +0 -3
  382. package/dist/layouts/custom/formsLayout/index.js +0 -18
  383. package/dist/layouts/custom/mainLayout/index.d.ts +0 -3
  384. package/dist/layouts/custom/mainLayout/index.js +0 -22
  385. package/dist/layouts/custom/searchLayout/index.d.ts +0 -3
  386. package/dist/layouts/custom/searchLayout/index.js +0 -26
  387. package/dist/layouts/custom/simpleLayout/index.d.ts +0 -3
  388. package/dist/layouts/custom/simpleLayout/index.js +0 -22
  389. package/dist/layouts/custom/styles.d.ts +0 -3
  390. package/dist/layouts/custom/styles.js +0 -16
  391. package/dist/layouts/pageTransitionLayout.d.ts +0 -6
  392. package/dist/layouts/pageTransitionLayout.js +0 -24
  393. package/dist/layouts/pageWithLayout.d.ts +0 -9
  394. package/dist/layouts/pageWithLayout.js +0 -2
  395. package/dist/modules/index.d.ts +0 -4
  396. package/dist/modules/index.js +0 -20
  397. package/dist/modules/notifications/CreatorNotifications.d.ts +0 -2
  398. package/dist/modules/notifications/CreatorNotifications.js +0 -42
  399. package/dist/modules/notifications/index.d.ts +0 -22
  400. package/dist/modules/notifications/index.js +0 -6
  401. package/dist/modules/sessionScroll/globalTabs.d.ts +0 -12
  402. package/dist/modules/sessionScroll/globalTabs.js +0 -50
  403. package/dist/modules/sessionScroll/index.d.ts +0 -15
  404. package/dist/modules/sessionScroll/index.js +0 -77
  405. package/dist/modules/sessionScroll/type.d.ts +0 -7
  406. package/dist/modules/sessionScroll/type.js +0 -2
  407. package/dist/modules/sessionScroll/useVirtuosoInitialScroll.d.ts +0 -12
  408. package/dist/modules/sessionScroll/useVirtuosoInitialScroll.js +0 -62
  409. package/dist/modules/user/auth/index.d.ts +0 -1
  410. package/dist/modules/user/auth/index.js +0 -17
  411. package/dist/modules/user/auth/useAuthVerification.d.ts +0 -1
  412. package/dist/modules/user/auth/useAuthVerification.js +0 -120
  413. package/dist/modules/user/auth/useSignIn.d.ts +0 -1
  414. package/dist/modules/user/auth/useSignIn.js +0 -21
  415. package/dist/modules/user/auth/useSignOut.d.ts +0 -1
  416. package/dist/modules/user/auth/useSignOut.js +0 -78
  417. package/dist/modules/user/index.d.ts +0 -3
  418. package/dist/modules/user/index.js +0 -19
  419. package/dist/modules/user/profileData/index.d.ts +0 -1
  420. package/dist/modules/user/profileData/index.js +0 -17
  421. package/dist/modules/user/profileData/profileDataInitialization.d.ts +0 -2
  422. package/dist/modules/user/profileData/profileDataInitialization.js +0 -59
  423. package/dist/modules/user/store.d.ts +0 -33
  424. package/dist/modules/user/store.js +0 -78
  425. package/dist/modules/virtuoso/VirtuosoPageBuilder.d.ts +0 -19
  426. package/dist/modules/virtuoso/VirtuosoPageBuilder.js +0 -146
  427. package/dist/modules/virtuoso/VirtuosoToTopBtn.d.ts +0 -10
  428. package/dist/modules/virtuoso/VirtuosoToTopBtn.js +0 -43
  429. package/dist/modules/virtuoso/index.d.ts +0 -5
  430. package/dist/modules/virtuoso/index.js +0 -21
  431. package/dist/modules/virtuoso/types.d.ts +0 -7
  432. package/dist/modules/virtuoso/types.js +0 -2
  433. package/dist/modules/virtuoso/useSubscribeVirtuosoScrollToHeader.d.ts +0 -3
  434. package/dist/modules/virtuoso/useSubscribeVirtuosoScrollToHeader.js +0 -27
  435. package/dist/modules/virtuoso/useVirtuosoData.d.ts +0 -11
  436. package/dist/modules/virtuoso/useVirtuosoData.js +0 -50
  437. package/dist/pages/index.d.ts +0 -2
  438. package/dist/pages/index.js +0 -16
  439. package/dist/store/index.d.ts +0 -11
  440. package/dist/store/index.js +0 -28
  441. package/dist/store/media/index.d.ts +0 -1
  442. package/dist/store/media/index.js +0 -69
  443. package/dist/store/media/types.d.ts +0 -11
  444. package/dist/store/media/types.js +0 -2
  445. package/dist/store/ui/index.d.ts +0 -2
  446. package/dist/store/ui/index.js +0 -167
  447. package/dist/store/ui/types.d.ts +0 -34
  448. package/dist/store/ui/types.js +0 -2
  449. package/dist/store/ui/utils.d.ts +0 -7
  450. package/dist/store/ui/utils.js +0 -32
  451. package/dist/styles/ScreenWidth.d.ts +0 -22
  452. package/dist/styles/ScreenWidth.js +0 -26
  453. package/dist/styles/animations/index.d.ts +0 -2
  454. package/dist/styles/animations/index.js +0 -11
  455. package/dist/styles/colors/index.d.ts +0 -1
  456. package/dist/styles/colors/index.js +0 -38
  457. package/dist/styles/globalStyles.d.ts +0 -3
  458. package/dist/styles/globalStyles.js +0 -23
  459. package/dist/styles/index.d.ts +0 -5
  460. package/dist/styles/index.js +0 -26
  461. package/dist/styles/mixins/boxShadow.d.ts +0 -2
  462. package/dist/styles/mixins/boxShadow.js +0 -10
  463. package/dist/styles/mixins/boxTransform.d.ts +0 -2
  464. package/dist/styles/mixins/boxTransform.js +0 -10
  465. package/dist/styles/mixins/index.d.ts +0 -3
  466. package/dist/styles/mixins/index.js +0 -25
  467. package/dist/styles/mixins/z-indexes.d.ts +0 -10
  468. package/dist/styles/mixins/z-indexes.js +0 -13
  469. package/dist/styles/typography/index.d.ts +0 -1
  470. package/dist/styles/typography/index.js +0 -12
  471. package/dist/system/ActiveLink/index.d.ts +0 -9
  472. package/dist/system/ActiveLink/index.js +0 -71
  473. package/dist/system/Alert/index.d.ts +0 -3
  474. package/dist/system/Alert/index.js +0 -20
  475. package/dist/system/Alert/type.d.ts +0 -2
  476. package/dist/system/Alert/type.js +0 -8
  477. package/dist/system/BasicOverlay/index.d.ts +0 -3
  478. package/dist/system/BasicOverlay/index.js +0 -20
  479. package/dist/system/Buttons/IconButton/index.d.ts +0 -2
  480. package/dist/system/Buttons/IconButton/index.js +0 -7
  481. package/dist/system/Buttons/IconWithButton/index.d.ts +0 -2
  482. package/dist/system/Buttons/IconWithButton/index.js +0 -7
  483. package/dist/system/Buttons/IconWithButton/themes.d.ts +0 -0
  484. package/dist/system/Buttons/IconWithButton/themes.js +0 -0
  485. package/dist/system/Buttons/MainButton/index.d.ts +0 -2
  486. package/dist/system/Buttons/MainButton/index.js +0 -7
  487. package/dist/system/Buttons/MainButton/themes.d.ts +0 -0
  488. package/dist/system/Buttons/MainButton/themes.js +0 -0
  489. package/dist/system/Buttons/SecondaryButton/index.d.ts +0 -2
  490. package/dist/system/Buttons/SecondaryButton/index.js +0 -7
  491. package/dist/system/Buttons/index.d.ts +0 -4
  492. package/dist/system/Buttons/index.js +0 -14
  493. package/dist/system/Cards/CardCheckbox/index.d.ts +0 -6
  494. package/dist/system/Cards/CardCheckbox/index.js +0 -50
  495. package/dist/system/Cards/CardContent/CardCategory/index.d.ts +0 -6
  496. package/dist/system/Cards/CardContent/CardCategory/index.js +0 -27
  497. package/dist/system/Cards/CardContent/CardLikes/index.d.ts +0 -6
  498. package/dist/system/Cards/CardContent/CardLikes/index.js +0 -32
  499. package/dist/system/Cards/CardContent/CardShowMore/index.d.ts +0 -7
  500. package/dist/system/Cards/CardContent/CardShowMore/index.js +0 -40
  501. package/dist/system/Cards/CardContent/index.d.ts +0 -17
  502. package/dist/system/Cards/CardContent/index.js +0 -50
  503. package/dist/system/Cards/CardHeadIcons/index.d.ts +0 -15
  504. package/dist/system/Cards/CardHeadIcons/index.js +0 -134
  505. package/dist/system/Cards/CardMedia/CardAudio/index.d.ts +0 -8
  506. package/dist/system/Cards/CardMedia/CardAudio/index.js +0 -93
  507. package/dist/system/Cards/CardMedia/CardImage/index.d.ts +0 -7
  508. package/dist/system/Cards/CardMedia/CardImage/index.js +0 -44
  509. package/dist/system/Cards/CardMedia/CardVideo/index.d.ts +0 -7
  510. package/dist/system/Cards/CardMedia/CardVideo/index.js +0 -83
  511. package/dist/system/Cards/CardMedia/index.d.ts +0 -3
  512. package/dist/system/Cards/CardMedia/index.js +0 -12
  513. package/dist/system/Cards/CardRank/index.d.ts +0 -5
  514. package/dist/system/Cards/CardRank/index.js +0 -33
  515. package/dist/system/Cards/CardsGrid/index.d.ts +0 -13
  516. package/dist/system/Cards/CardsGrid/index.js +0 -80
  517. package/dist/system/Cards/HideLink/index.d.ts +0 -10
  518. package/dist/system/Cards/HideLink/index.js +0 -27
  519. package/dist/system/Cards/MultiMediaCard/index.d.ts +0 -10
  520. package/dist/system/Cards/MultiMediaCard/index.js +0 -78
  521. package/dist/system/Cards/RegularCard/index.d.ts +0 -22
  522. package/dist/system/Cards/RegularCard/index.js +0 -53
  523. package/dist/system/Cards/Styles/Content.d.ts +0 -3
  524. package/dist/system/Cards/Styles/Content.js +0 -16
  525. package/dist/system/Cards/Styles/Head.d.ts +0 -3
  526. package/dist/system/Cards/Styles/Head.js +0 -16
  527. package/dist/system/Cards/Styles/Headicons.d.ts +0 -5
  528. package/dist/system/Cards/Styles/Headicons.js +0 -19
  529. package/dist/system/Cards/Styles/Image.d.ts +0 -5
  530. package/dist/system/Cards/Styles/Image.js +0 -15
  531. package/dist/system/Cards/Styles/Likes.d.ts +0 -5
  532. package/dist/system/Cards/Styles/Likes.js +0 -17
  533. package/dist/system/Cards/Styles/MultiHead.d.ts +0 -3
  534. package/dist/system/Cards/Styles/MultiHead.js +0 -16
  535. package/dist/system/Cards/Styles/Video.d.ts +0 -3
  536. package/dist/system/Cards/Styles/Video.js +0 -13
  537. package/dist/system/Cards/Styles/index.d.ts +0 -7
  538. package/dist/system/Cards/Styles/index.js +0 -20
  539. package/dist/system/Cards/index.d.ts +0 -14
  540. package/dist/system/Cards/index.js +0 -46
  541. package/dist/system/CardsHolderWithSkeleton/CardsHolder/CardsError/index.d.ts +0 -5
  542. package/dist/system/CardsHolderWithSkeleton/CardsHolder/CardsError/index.js +0 -100
  543. package/dist/system/CardsHolderWithSkeleton/CardsHolder/CardsNoResults/index.d.ts +0 -5
  544. package/dist/system/CardsHolderWithSkeleton/CardsHolder/CardsNoResults/index.js +0 -26
  545. package/dist/system/CardsHolderWithSkeleton/CardsHolder/CardsSkeleton/index.d.ts +0 -6
  546. package/dist/system/CardsHolderWithSkeleton/CardsHolder/CardsSkeleton/index.js +0 -38
  547. package/dist/system/CardsHolderWithSkeleton/CardsHolder/index.d.ts +0 -22
  548. package/dist/system/CardsHolderWithSkeleton/CardsHolder/index.js +0 -38
  549. package/dist/system/CardsHolderWithSkeleton/CardsHolderLoader/index.d.ts +0 -3
  550. package/dist/system/CardsHolderWithSkeleton/CardsHolderLoader/index.js +0 -26
  551. package/dist/system/CardsHolderWithSkeleton/index.d.ts +0 -30
  552. package/dist/system/CardsHolderWithSkeleton/index.js +0 -19
  553. package/dist/system/DropDown/DropDown.test.d.ts +0 -1
  554. package/dist/system/DropDown/DropDown.test.js +0 -42
  555. package/dist/system/DropDown/index.d.ts +0 -8
  556. package/dist/system/DropDown/index.js +0 -63
  557. package/dist/system/Filters/helpers.d.ts +0 -7
  558. package/dist/system/Filters/helpers.js +0 -8
  559. package/dist/system/Filters/index.d.ts +0 -2
  560. package/dist/system/Filters/index.js +0 -18
  561. package/dist/system/Filters/type.d.ts +0 -16
  562. package/dist/system/Filters/type.js +0 -11
  563. package/dist/system/Flex/index.d.ts +0 -0
  564. package/dist/system/Flex/index.js +0 -0
  565. package/dist/system/Forms/Checkbox/Checkbox.test.d.ts +0 -1
  566. package/dist/system/Forms/Checkbox/Checkbox.test.js +0 -90
  567. package/dist/system/Forms/Checkbox/index.d.ts +0 -22
  568. package/dist/system/Forms/Checkbox/index.js +0 -71
  569. package/dist/system/Forms/DatePicker/index.d.ts +0 -16
  570. package/dist/system/Forms/DatePicker/index.js +0 -43
  571. package/dist/system/Forms/ErrorLabel/ErrorLabel.test.d.ts +0 -1
  572. package/dist/system/Forms/ErrorLabel/ErrorLabel.test.js +0 -27
  573. package/dist/system/Forms/ErrorLabel/index.d.ts +0 -7
  574. package/dist/system/Forms/ErrorLabel/index.js +0 -20
  575. package/dist/system/Forms/Input/Input.test.d.ts +0 -1
  576. package/dist/system/Forms/Input/Input.test.js +0 -57
  577. package/dist/system/Forms/Input/index.d.ts +0 -16
  578. package/dist/system/Forms/Input/index.js +0 -45
  579. package/dist/system/Forms/Input/type.d.ts +0 -5
  580. package/dist/system/Forms/Input/type.js +0 -2
  581. package/dist/system/Forms/Messages/index.d.ts +0 -67
  582. package/dist/system/Forms/Messages/index.js +0 -69
  583. package/dist/system/Forms/RadioInput/index.d.ts +0 -13
  584. package/dist/system/Forms/RadioInput/index.js +0 -42
  585. package/dist/system/Forms/Selects/DesktopSelect/index.d.ts +0 -12
  586. package/dist/system/Forms/Selects/DesktopSelect/index.js +0 -151
  587. package/dist/system/Forms/Selects/DesktopSelect/type.d.ts +0 -5
  588. package/dist/system/Forms/Selects/DesktopSelect/type.js +0 -2
  589. package/dist/system/Forms/Selects/MobileSelect/index.d.ts +0 -14
  590. package/dist/system/Forms/Selects/MobileSelect/index.js +0 -55
  591. package/dist/system/Forms/TextArea/index.d.ts +0 -14
  592. package/dist/system/Forms/TextArea/index.js +0 -44
  593. package/dist/system/Forms/index.d.ts +0 -6
  594. package/dist/system/Forms/index.js +0 -16
  595. package/dist/system/Img/ExternalImage/index.d.ts +0 -6
  596. package/dist/system/Img/ExternalImage/index.js +0 -53
  597. package/dist/system/Img/ImageInterceptor/ImageInterceptor.test.d.ts +0 -1
  598. package/dist/system/Img/ImageInterceptor/ImageInterceptor.test.js +0 -53
  599. package/dist/system/Img/ImageInterceptor/index.d.ts +0 -17
  600. package/dist/system/Img/ImageInterceptor/index.js +0 -56
  601. package/dist/system/Img/Profilepic/index.d.ts +0 -11
  602. package/dist/system/Img/Profilepic/index.js +0 -39
  603. package/dist/system/Img/Userpic/UserPic.test.d.ts +0 -2
  604. package/dist/system/Img/Userpic/UserPic.test.js +0 -69
  605. package/dist/system/Img/Userpic/index.d.ts +0 -9
  606. package/dist/system/Img/Userpic/index.js +0 -98
  607. package/dist/system/Img/index.d.ts +0 -4
  608. package/dist/system/Img/index.js +0 -20
  609. package/dist/system/Labels/ExperienceLabel/ExperienceLabel.test.d.ts +0 -1
  610. package/dist/system/Labels/ExperienceLabel/ExperienceLabel.test.js +0 -64
  611. package/dist/system/Labels/ExperienceLabel/index.d.ts +0 -7
  612. package/dist/system/Labels/ExperienceLabel/index.js +0 -42
  613. package/dist/system/Labels/InviteLabel/InviteLabel.test.d.ts +0 -1
  614. package/dist/system/Labels/InviteLabel/InviteLabel.test.js +0 -56
  615. package/dist/system/Labels/InviteLabel/index.d.ts +0 -7
  616. package/dist/system/Labels/InviteLabel/index.js +0 -38
  617. package/dist/system/Labels/SkeletonLabel/index.d.ts +0 -2
  618. package/dist/system/Labels/SkeletonLabel/index.js +0 -7
  619. package/dist/system/Modals/Modal/Modal.test.d.ts +0 -1
  620. package/dist/system/Modals/Modal/Modal.test.js +0 -36
  621. package/dist/system/Modals/Modal/index.d.ts +0 -3
  622. package/dist/system/Modals/Modal/index.js +0 -31
  623. package/dist/system/Modals/ModalSidebar/CreatorModalSidebarPortal.d.ts +0 -2
  624. package/dist/system/Modals/ModalSidebar/CreatorModalSidebarPortal.js +0 -48
  625. package/dist/system/Modals/ModalSidebar/ModalSidebar.test.d.ts +0 -1
  626. package/dist/system/Modals/ModalSidebar/ModalSidebar.test.js +0 -35
  627. package/dist/system/Modals/ModalSidebar/ModalSidebarPortal.d.ts +0 -5
  628. package/dist/system/Modals/ModalSidebar/ModalSidebarPortal.js +0 -19
  629. package/dist/system/Modals/ModalSidebar/index.d.ts +0 -4
  630. package/dist/system/Modals/ModalSidebar/index.js +0 -31
  631. package/dist/system/Modals/index.d.ts +0 -2
  632. package/dist/system/Modals/index.js +0 -10
  633. package/dist/system/Overlay/Overlay.test.d.ts +0 -1
  634. package/dist/system/Overlay/Overlay.test.js +0 -47
  635. package/dist/system/Overlay/index.d.ts +0 -3
  636. package/dist/system/Overlay/index.js +0 -28
  637. package/dist/system/PageLoader/index.d.ts +0 -2
  638. package/dist/system/PageLoader/index.js +0 -7
  639. package/dist/system/Palete/index.d.ts +0 -2
  640. package/dist/system/Palete/index.js +0 -7
  641. package/dist/system/ShareIconResize.d.ts +0 -2
  642. package/dist/system/ShareIconResize.js +0 -26
  643. package/dist/system/Tabs/TabNavLink/TabNavLink.test.d.ts +0 -2
  644. package/dist/system/Tabs/TabNavLink/TabNavLink.test.js +0 -40
  645. package/dist/system/Tabs/TabNavLink/index.d.ts +0 -12
  646. package/dist/system/Tabs/TabNavLink/index.js +0 -26
  647. package/dist/system/Tabs/TabsNav/TabsNav.test.d.ts +0 -2
  648. package/dist/system/Tabs/TabsNav/TabsNav.test.js +0 -43
  649. package/dist/system/Tabs/TabsNav/index.d.ts +0 -10
  650. package/dist/system/Tabs/TabsNav/index.js +0 -28
  651. package/dist/system/Tabs/TabsNav/type.d.ts +0 -6
  652. package/dist/system/Tabs/TabsNav/type.js +0 -2
  653. package/dist/system/Tabs/TabsPanel/TabsPanel.test.d.ts +0 -2
  654. package/dist/system/Tabs/TabsPanel/TabsPanel.test.js +0 -37
  655. package/dist/system/Tabs/TabsPanel/index.d.ts +0 -7
  656. package/dist/system/Tabs/TabsPanel/index.js +0 -21
  657. package/dist/system/Tabs/index.d.ts +0 -4
  658. package/dist/system/Tabs/index.js +0 -27
  659. package/dist/system/Text/index.d.ts +0 -0
  660. package/dist/system/Text/index.js +0 -0
  661. package/dist/system/index.d.ts +0 -21
  662. package/dist/system/index.js +0 -49
  663. package/dist/system/theme.d.ts +0 -1
  664. package/dist/system/theme.js +0 -7
  665. package/dist/tsconfig.tsbuildinfo +0 -1
  666. package/dist/utils/3d.d.ts +0 -5
  667. package/dist/utils/3d.js +0 -45
  668. package/dist/utils/adaptive/check4k.d.ts +0 -5
  669. package/dist/utils/adaptive/check4k.js +0 -17
  670. package/dist/utils/adaptive/index.d.ts +0 -2
  671. package/dist/utils/adaptive/index.js +0 -18
  672. package/dist/utils/adaptive/scale.d.ts +0 -9
  673. package/dist/utils/adaptive/scale.js +0 -19
  674. package/dist/utils/auth/index.d.ts +0 -1
  675. package/dist/utils/auth/index.js +0 -11
  676. package/dist/utils/copyBtn/index.d.ts +0 -5
  677. package/dist/utils/copyBtn/index.js +0 -107
  678. package/dist/utils/env/index.d.ts +0 -5
  679. package/dist/utils/env/index.js +0 -34
  680. package/dist/utils/env/isProd/index.d.ts +0 -3
  681. package/dist/utils/env/isProd/index.js +0 -9
  682. package/dist/utils/env/type.d.ts +0 -5
  683. package/dist/utils/env/type.js +0 -9
  684. package/dist/utils/extractItemIds/index.d.ts +0 -2
  685. package/dist/utils/extractItemIds/index.js +0 -12
  686. package/dist/utils/getDimensionsImage.d.ts +0 -4
  687. package/dist/utils/getDimensionsImage.js +0 -84
  688. package/dist/utils/getPageSizeAssets.d.ts +0 -5
  689. package/dist/utils/getPageSizeAssets.js +0 -19
  690. package/dist/utils/healzHandler/index.d.ts +0 -9
  691. package/dist/utils/healzHandler/index.js +0 -10
  692. package/dist/utils/imageProportionsSize/index.d.ts +0 -5
  693. package/dist/utils/imageProportionsSize/index.js +0 -24
  694. package/dist/utils/index.d.ts +0 -7
  695. package/dist/utils/index.js +0 -23
  696. package/dist/utils/screen/index.d.ts +0 -18
  697. package/dist/utils/screen/index.js +0 -87
  698. package/dist/utils/ssrFunctions/index.d.ts +0 -11
  699. package/dist/utils/ssrFunctions/index.js +0 -41
  700. package/dist/utils/ui/index.d.ts +0 -8
  701. package/dist/utils/ui/index.js +0 -8
@@ -1,226 +0,0 @@
1
- "use strict";
2
- var __assign = (this && this.__assign) || function () {
3
- __assign = Object.assign || function(t) {
4
- for (var s, i = 1, n = arguments.length; i < n; i++) {
5
- s = arguments[i];
6
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
7
- t[p] = s[p];
8
- }
9
- return t;
10
- };
11
- return __assign.apply(this, arguments);
12
- };
13
- var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
14
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
15
- return new (P || (P = Promise))(function (resolve, reject) {
16
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
17
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
18
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
19
- step((generator = generator.apply(thisArg, _arguments || [])).next());
20
- });
21
- };
22
- var __generator = (this && this.__generator) || function (thisArg, body) {
23
- var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
24
- return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
25
- function verb(n) { return function (v) { return step([n, v]); }; }
26
- function step(op) {
27
- if (f) throw new TypeError("Generator is already executing.");
28
- while (g && (g = 0, op[0] && (_ = 0)), _) try {
29
- if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
30
- if (y = 0, t) op = [op[0] & 2, t.value];
31
- switch (op[0]) {
32
- case 0: case 1: t = op; break;
33
- case 4: _.label++; return { value: op[1], done: false };
34
- case 5: _.label++; y = op[1]; op = [0]; continue;
35
- case 7: op = _.ops.pop(); _.trys.pop(); continue;
36
- default:
37
- if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
38
- if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
39
- if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
40
- if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
41
- if (t[2]) _.ops.pop();
42
- _.trys.pop(); continue;
43
- }
44
- op = body.call(thisArg, _);
45
- } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
46
- if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
47
- }
48
- };
49
- var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
50
- if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
51
- if (ar || !(i in from)) {
52
- if (!ar) ar = Array.prototype.slice.call(from, 0, i);
53
- ar[i] = from[i];
54
- }
55
- }
56
- return to.concat(ar || Array.prototype.slice.call(from));
57
- };
58
- var __importDefault = (this && this.__importDefault) || function (mod) {
59
- return (mod && mod.__esModule) ? mod : { "default": mod };
60
- };
61
- Object.defineProperty(exports, "__esModule", { value: true });
62
- exports.useGetUserGalleriesCreations = void 0;
63
- var react_1 = require("react");
64
- var client_1 = require("@apollo/client");
65
- var api_1 = require("@ludo.ninja/api");
66
- var api_2 = require("@ludo.ninja/api");
67
- var type_1 = require("@ludo.ninja/ui/build/system/Alert/type");
68
- var ui_1 = require("@/store/ui");
69
- var CollectionCreationEntity_1 = __importDefault(require("@/dto/Collection/CollectionCreationEntity"));
70
- var CreationEntity_1 = __importDefault(require("@/dto/CreationEntity"));
71
- var GalleryEntityV2_1 = __importDefault(require("@/dto/GalleryEntityV2"));
72
- var favorites_1 = require("@/hooks/favorites");
73
- var maxUserFavoritesLength = 1000;
74
- var useGetUserGalleriesCreations = function (_a) {
75
- var userId = _a.userId, pageSize = _a.pageSize, pageToken = _a.pageToken;
76
- var _b = (0, react_1.useState)(null), assets = _b[0], setAsset = _b[1];
77
- var _c = (0, react_1.useState)(null), collections = _c[0], setCollections = _c[1];
78
- var _d = (0, react_1.useState)([]), galleries = _d[0], setGalleries = _d[1];
79
- var _e = (0, react_1.useState)(true), loading = _e[0], setLoading = _e[1];
80
- var openAlert = (0, ui_1.useUiStore)(function (state) { return state.openAlert; });
81
- var nextPageToken = (0, react_1.useRef)(null);
82
- var _f = (0, react_1.useState)(false), isNextLoading = _f[0], setIsNextLoading = _f[1]; // todo: after update api , get isNextPage from results
83
- // const isHaveNextPage = favorites.length < results;
84
- var isHaveNextPage = !!nextPageToken.current;
85
- var _g = (0, client_1.useQuery)(api_2.galleriesSchema.FetchUserGalleriesV2Document, {
86
- context: { uri: api_1.hosts.galleriesHost },
87
- variables: { pageSize: pageSize, userId: userId, pageToken: pageToken },
88
- fetchPolicy: 'no-cache',
89
- onCompleted: function (_a) {
90
- var _b = _a.fetchUserGalleriesV2, galleries = _b.galleries, token = _b.nextPageToken;
91
- // nextPageToken.current = nextPage.nextPage?.token || null;
92
- nextPageToken.current = token || null;
93
- setGalleries(galleries.map(function (gallery) { return new GalleryEntityV2_1.default(gallery); }));
94
- setLoading(false);
95
- },
96
- onError: function () {
97
- openAlert({
98
- type: type_1.alertVariants.error,
99
- caption: 'Oops, something went wrong while fetching galleries.',
100
- });
101
- setGalleries([]);
102
- setLoading(false);
103
- },
104
- }), favoritesLoading = _g.loading, galleriesError = _g.error, refetch = _g.refetch, fetchMore = _g.fetchMore;
105
- var _h = (0, client_1.useLazyQuery)(api_2.searchSchema.FetchAssetsDocument, {
106
- context: { uri: api_1.hosts.searchHost },
107
- fetchPolicy: 'no-cache',
108
- onCompleted: function (_a) {
109
- var data = _a.fetchAssets;
110
- setAsset(data.map(function (asset) {
111
- return new CreationEntity_1.default(__assign(__assign({}, asset), { itemType: 'asset', itemId: asset.assetId }));
112
- }));
113
- setLoading(false);
114
- },
115
- onError: function () {
116
- openAlert({
117
- type: type_1.alertVariants.error,
118
- caption: 'Oops, something went wrong.',
119
- });
120
- setAsset(null);
121
- setLoading(false);
122
- },
123
- }), fetchAssets = _h[0], _j = _h[1], assetsLoading = _j.loading, assetsError = _j.error;
124
- var _k = (0, client_1.useLazyQuery)(api_2.searchSchema.FetchCollectionsByIdsDocument, {
125
- context: { uri: api_1.hosts.searchHost },
126
- fetchPolicy: 'no-cache',
127
- onCompleted: function (_a) {
128
- var data = _a.fetchCollectionsByIds;
129
- setCollections(data.map(function (collection) {
130
- return new CollectionCreationEntity_1.default(collection);
131
- }));
132
- setLoading(false);
133
- },
134
- onError: function () {
135
- openAlert({
136
- type: type_1.alertVariants.error,
137
- caption: 'Oops, something went wrong.',
138
- });
139
- setCollections(null);
140
- setLoading(false);
141
- },
142
- }), fetchCollections = _k[0], _l = _k[1], collectionsLoading = _l.loading, collectionsError = _l.error;
143
- (0, react_1.useEffect)(function () {
144
- if (galleries.length > 0) {
145
- var _a = (0, favorites_1.getMediaForGallery)(galleries, true), assetArray = _a.assetArray, collectionsArray = _a.collectionsArray;
146
- if (assetArray.length > 0) {
147
- fetchAssets({ variables: { assetIds: assetArray } });
148
- }
149
- if (collectionsArray.length > 0) {
150
- fetchCollections({ variables: { collectionIds: collectionsArray } });
151
- }
152
- }
153
- }, [galleries, fetchAssets, fetchCollections]);
154
- function refetchQueryGalleriesList() {
155
- return __awaiter(this, void 0, void 0, function () {
156
- return __generator(this, function (_a) {
157
- switch (_a.label) {
158
- case 0: return [4 /*yield*/, refetch()];
159
- case 1:
160
- _a.sent();
161
- return [2 /*return*/];
162
- }
163
- });
164
- });
165
- }
166
- function loadMoreGalleriesList() {
167
- return __awaiter(this, void 0, void 0, function () {
168
- return __generator(this, function (_a) {
169
- switch (_a.label) {
170
- case 0:
171
- if (!nextPageToken.current ||
172
- !isHaveNextPage ||
173
- galleries.length >= maxUserFavoritesLength)
174
- return [2 /*return*/];
175
- setIsNextLoading(true);
176
- return [4 /*yield*/, fetchMore({
177
- variables: { pageToken: nextPageToken.current },
178
- updateQuery: function (prev, _a) {
179
- var fetchMoreResult = _a.fetchMoreResult;
180
- if (!fetchMoreResult)
181
- return prev;
182
- var _b = fetchMoreResult.fetchMyFavoritesV2, token = _b.nextPageToken, nextGalleries = _b.galleries;
183
- nextPageToken.current = token || null;
184
- if (prev !== null && prev.hasOwn('fetchMyGalleriesV2')) {
185
- var prevGalleries = prev.fetchMyGalleriesV2.galleries;
186
- return {
187
- fetchMyGalleriesV2: {
188
- galleries: __spreadArray(__spreadArray([], prevGalleries, true), nextGalleries, true),
189
- nextPageToken: token,
190
- },
191
- };
192
- }
193
- else {
194
- return {
195
- fetchMyGalleriesV2: {
196
- galleries: nextGalleries,
197
- nextPageToken: token,
198
- },
199
- };
200
- }
201
- },
202
- })];
203
- case 1:
204
- _a.sent();
205
- return [2 /*return*/];
206
- }
207
- });
208
- });
209
- }
210
- return {
211
- galleries: galleries,
212
- assets: assets,
213
- collections: collections,
214
- loading: loading,
215
- loadingAssets: assetsLoading,
216
- loadingFavorites: favoritesLoading,
217
- loadingCollections: collectionsLoading,
218
- errorAssets: assetsError,
219
- errorCollections: collectionsError,
220
- errorGalleries: galleriesError,
221
- refetchQueryGalleriesList: refetchQueryGalleriesList,
222
- loadMoreGalleriesList: loadMoreGalleriesList,
223
- isNextLoading: isNextLoading,
224
- };
225
- };
226
- exports.useGetUserGalleriesCreations = useGetUserGalleriesCreations;
@@ -1,5 +0,0 @@
1
- export * from './likes/useGetLikesAsset';
2
- export * from './apollo';
3
- export * from './favorites';
4
- export * from './galleries';
5
- export * from './searchFiltersConnector';
@@ -1,21 +0,0 @@
1
- "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
- for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
- };
16
- Object.defineProperty(exports, "__esModule", { value: true });
17
- __exportStar(require("./likes/useGetLikesAsset"), exports);
18
- __exportStar(require("./apollo"), exports);
19
- __exportStar(require("./favorites"), exports);
20
- __exportStar(require("./galleries"), exports);
21
- __exportStar(require("./searchFiltersConnector"), exports);
@@ -1,241 +0,0 @@
1
- "use strict";
2
- var __assign = (this && this.__assign) || function () {
3
- __assign = Object.assign || function(t) {
4
- for (var s, i = 1, n = arguments.length; i < n; i++) {
5
- s = arguments[i];
6
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
7
- t[p] = s[p];
8
- }
9
- return t;
10
- };
11
- return __assign.apply(this, arguments);
12
- };
13
- var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
14
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
15
- return new (P || (P = Promise))(function (resolve, reject) {
16
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
17
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
18
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
19
- step((generator = generator.apply(thisArg, _arguments || [])).next());
20
- });
21
- };
22
- var __generator = (this && this.__generator) || function (thisArg, body) {
23
- var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
24
- return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
25
- function verb(n) { return function (v) { return step([n, v]); }; }
26
- function step(op) {
27
- if (f) throw new TypeError("Generator is already executing.");
28
- while (g && (g = 0, op[0] && (_ = 0)), _) try {
29
- if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
30
- if (y = 0, t) op = [op[0] & 2, t.value];
31
- switch (op[0]) {
32
- case 0: case 1: t = op; break;
33
- case 4: _.label++; return { value: op[1], done: false };
34
- case 5: _.label++; y = op[1]; op = [0]; continue;
35
- case 7: op = _.ops.pop(); _.trys.pop(); continue;
36
- default:
37
- if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
38
- if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
39
- if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
40
- if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
41
- if (t[2]) _.ops.pop();
42
- _.trys.pop(); continue;
43
- }
44
- op = body.call(thisArg, _);
45
- } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
46
- if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
47
- }
48
- };
49
- var __rest = (this && this.__rest) || function (s, e) {
50
- var t = {};
51
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
52
- t[p] = s[p];
53
- if (s != null && typeof Object.getOwnPropertySymbols === "function")
54
- for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
55
- if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
56
- t[p[i]] = s[p[i]];
57
- }
58
- return t;
59
- };
60
- var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
61
- if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
62
- if (ar || !(i in from)) {
63
- if (!ar) ar = Array.prototype.slice.call(from, 0, i);
64
- ar[i] = from[i];
65
- }
66
- }
67
- return to.concat(ar || Array.prototype.slice.call(from));
68
- };
69
- var __importDefault = (this && this.__importDefault) || function (mod) {
70
- return (mod && mod.__esModule) ? mod : { "default": mod };
71
- };
72
- Object.defineProperty(exports, "__esModule", { value: true });
73
- exports.useFindCollectionsAndLikes = void 0;
74
- var react_1 = require("react");
75
- var client_1 = require("@apollo/client");
76
- var api_1 = require("@ludo.ninja/api");
77
- var type_1 = require("@ludo.ninja/ui/build/system/Alert/type");
78
- var useGetCreationsAndLikes_1 = require("@/hooks/likes/dynamic/useGetCreationsAndLikes");
79
- var ui_1 = require("@ludo.ninja/components/dist/store/ui");
80
- var CollectionCreationEntity_1 = __importDefault(require("@/dto/Collection/CollectionCreationEntity"));
81
- // export const prefetchFindCollections = (
82
- // { term, input, pageSize, pageToken }: schema.IQueryFindCollectionsArgs,
83
- // apolloClient: ApolloClient<NormalizedCacheObject>
84
- // ) => {
85
- // return apolloClient
86
- // .query({
87
- // query: schema.FindCollectionsDocument,
88
- // variables: { term, input, pageSize, pageToken },
89
- // context: { uri: hosts.serverSearchHost },
90
- // fetchPolicy: 'network-only',
91
- // })
92
- // .catch(() => {
93
- // return {
94
- // data: { findCollections: null },
95
- // };
96
- // });
97
- // };
98
- var maxCollectionsLength = 1000;
99
- var useFindCollectionsAndLikes = function (_a) {
100
- var term = _a.term, input = _a.input, page = _a.page;
101
- var _b = (0, react_1.useState)([]), collections = _b[0], setCollections = _b[1];
102
- var _c = (0, react_1.useState)(null), nextPageToken = _c[0], setNextPageToken = _c[1];
103
- var _d = (0, react_1.useState)(0), results = _d[0], setResults = _d[1];
104
- var openAlert = (0, ui_1.useUiStore)(function (state) { return state.openAlert; });
105
- var _e = (0, react_1.useState)([]), collectionsLikes = _e[0], setCollectionsLikes = _e[1];
106
- var _f = (0, react_1.useState)(true), loading = _f[0], setLoading = _f[1];
107
- var _g = api_1.searchSchema.useFindCollectionsQuery({
108
- fetchPolicy: 'no-cache',
109
- context: {
110
- uri: api_1.hosts.searchHost,
111
- },
112
- variables: {
113
- term: term,
114
- input: input,
115
- page: page,
116
- },
117
- onCompleted: function (_a) {
118
- var _b, _c;
119
- var _d = _a.findCollections, collections = _d.collections, nextPage = __rest(_d, ["collections"]);
120
- setCollections(collections.map(function (collection) {
121
- return new CollectionCreationEntity_1.default(__assign(__assign({}, collection), { name: collection && collection.collectionTitle }), 'collection');
122
- }));
123
- if (!collections.length) {
124
- setLoading(false);
125
- }
126
- setResults(((_b = nextPage.nextPage) === null || _b === void 0 ? void 0 : _b.elements) || 0);
127
- setNextPageToken(((_c = nextPage.nextPage) === null || _c === void 0 ? void 0 : _c.token) || null);
128
- },
129
- onError: function () {
130
- openAlert({
131
- type: type_1.alertVariants.error,
132
- caption: 'Oops, something went wrong.',
133
- });
134
- setCollections([]);
135
- setNextPageToken(null);
136
- },
137
- }), error = _g.error, collectionsLoading = _g.loading, fetchMore = _g.fetchMore, refetch = _g.refetch;
138
- var _h = (0, client_1.useLazyQuery)(api_1.searchSchema.FetchDynamicCollectionsDataDocument, {
139
- context: { uri: api_1.hosts.searchHost },
140
- onCompleted: function (_a) {
141
- var fetchDynamicCollectionsData = _a.fetchDynamicCollectionsData;
142
- setCollectionsLikes(fetchDynamicCollectionsData);
143
- setLoading(false);
144
- },
145
- fetchPolicy: 'no-cache',
146
- onError: function () {
147
- openAlert({
148
- type: type_1.alertVariants.error,
149
- caption: 'Oops, something went wrong when fetch collections likes.',
150
- });
151
- setCollectionsLikes([]);
152
- setLoading(false);
153
- },
154
- }), fetchCollectionsLikes = _h[0], collectionsLikesLoading = _h[1].loading;
155
- (0, react_1.useEffect)(function () {
156
- if (collections.length > 0) {
157
- var itemsIdsArray = (0, useGetCreationsAndLikes_1.extractItemIds)(collections);
158
- if (itemsIdsArray.length > 0) {
159
- if (collections[0].getItemType() === 'collection') {
160
- fetchCollectionsLikes({
161
- variables: {
162
- input: itemsIdsArray.map(function (collectionId) {
163
- return {
164
- collectionId: collectionId,
165
- };
166
- }),
167
- },
168
- });
169
- }
170
- }
171
- }
172
- }, [collections, fetchCollectionsLikes]);
173
- (0, react_1.useEffect)(function () {
174
- setLoading(true);
175
- setCollectionsLikes([]);
176
- setCollections([]);
177
- }, [term, input]);
178
- return {
179
- loadMore: loadMore,
180
- loading: loading,
181
- collectionsLoading: collectionsLoading,
182
- collectionsLikesLoading: collectionsLikesLoading,
183
- collectionsLikes: collectionsLikes,
184
- error: error,
185
- results: results,
186
- collections: collections,
187
- nextPageToken: nextPageToken,
188
- refetchQuery: refetchQuery,
189
- };
190
- function refetchQuery() {
191
- return __awaiter(this, void 0, void 0, function () {
192
- return __generator(this, function (_a) {
193
- switch (_a.label) {
194
- case 0: return [4 /*yield*/, refetch()];
195
- case 1:
196
- _a.sent();
197
- return [2 /*return*/];
198
- }
199
- });
200
- });
201
- }
202
- function loadMore(pageToken) {
203
- var _a, _b;
204
- return __awaiter(this, void 0, void 0, function () {
205
- var data, _c, nextCollections, nextPage, nextList_1, error_1;
206
- return __generator(this, function (_d) {
207
- switch (_d.label) {
208
- case 0:
209
- if (!pageToken || collections.length >= maxCollectionsLength)
210
- return [2 /*return*/];
211
- _d.label = 1;
212
- case 1:
213
- _d.trys.push([1, 3, , 4]);
214
- return [4 /*yield*/, fetchMore({
215
- variables: {
216
- term: term,
217
- input: input,
218
- page: page,
219
- },
220
- })];
221
- case 2:
222
- data = (_d.sent()).data;
223
- _c = data.findCollections, nextCollections = _c.collections, nextPage = __rest(_c, ["collections"]);
224
- nextList_1 = nextCollections.map(function (collectionAsset) {
225
- return new CollectionCreationEntity_1.default(__assign(__assign({}, collectionAsset), { name: collectionAsset && collectionAsset.collectionTitle }), 'collection');
226
- });
227
- setCollections(function (prevCollection) { return __spreadArray(__spreadArray([], prevCollection, true), nextList_1, true); });
228
- setResults(((_a = nextPage.nextPage) === null || _a === void 0 ? void 0 : _a.elements) || 0);
229
- setNextPageToken(((_b = nextPage.nextPage) === null || _b === void 0 ? void 0 : _b.token) || null);
230
- return [3 /*break*/, 4];
231
- case 3:
232
- error_1 = _d.sent();
233
- throw new Error(error_1);
234
- case 4: return [2 /*return*/];
235
- }
236
- });
237
- });
238
- }
239
- };
240
- exports.useFindCollectionsAndLikes = useFindCollectionsAndLikes;
241
- exports.default = { /*prefetchFindCollections,*/ useFindCollectionsAndLikes: exports.useFindCollectionsAndLikes };