@ludo.ninja/components 2.0.1 → 2.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (670) hide show
  1. package/build/api/graphql/index.d.ts +4 -0
  2. package/build/api/graphql/index.js +11 -0
  3. package/build/api/server-assets/mutations/useDislikeAsset/index.d.ts +7 -0
  4. package/build/api/server-assets/mutations/useDislikeAsset/index.js +32 -0
  5. package/build/api/server-assets/mutations/useLikeAsset/index.d.ts +7 -0
  6. package/build/api/server-assets/mutations/useLikeAsset/index.js +33 -0
  7. package/build/api/server-assets/queries/useFetchAssetByBlockchain/index.d.ts +14 -0
  8. package/build/api/server-assets/queries/useFetchAssetByBlockchain/index.js +48 -0
  9. package/build/api/server-assets/queries/useFetchAssets/index.d.ts +7 -0
  10. package/build/api/server-assets/queries/useFetchAssets/index.js +31 -0
  11. package/build/api/server-assets/queries/useFetchDynamicAssetLikes/index.d.ts +8 -0
  12. package/build/api/server-assets/queries/useFetchDynamicAssetLikes/index.js +35 -0
  13. package/build/api/server-assets/queries/useFetchDynamicAssetsLikes/index.d.ts +7 -0
  14. package/build/api/server-assets/queries/useFetchDynamicAssetsLikes/index.js +30 -0
  15. package/build/api/server-collection/mutations/useDislikeCollection/index.d.ts +7 -0
  16. package/build/api/server-collection/mutations/useDislikeCollection/index.js +31 -0
  17. package/build/api/server-collection/mutations/useLikeCollection/index.d.ts +7 -0
  18. package/build/api/server-collection/mutations/useLikeCollection/index.js +31 -0
  19. package/build/api/server-experiences/queries/useFetchMyExperienceWithLevel/index.d.ts +2 -0
  20. package/build/api/server-experiences/queries/useFetchMyExperienceWithLevel/index.js +84 -0
  21. package/build/api/server-experiences/queries/useFetchMyTasks/index.d.ts +31 -0
  22. package/build/api/server-experiences/queries/useFetchMyTasks/index.js +49 -0
  23. package/build/api/server-galleries/mutations/useAddAssetsToGallery/index.d.ts +7 -0
  24. package/build/api/server-galleries/mutations/useAddAssetsToGallery/index.js +36 -0
  25. package/build/api/server-galleries/mutations/useAddChangeGalleryBanner/index.d.ts +4 -0
  26. package/build/api/server-galleries/mutations/useAddChangeGalleryBanner/index.js +30 -0
  27. package/build/api/server-galleries/mutations/useAddCollectionsToGallery/index.d.ts +7 -0
  28. package/build/api/server-galleries/mutations/useAddCollectionsToGallery/index.js +35 -0
  29. package/build/api/server-galleries/mutations/useAddCreationsToGallery/index.d.ts +7 -0
  30. package/build/api/server-galleries/mutations/useAddCreationsToGallery/index.js +43 -0
  31. package/build/api/server-galleries/mutations/useCreateFavorites/index.d.ts +6 -0
  32. package/build/api/server-galleries/mutations/useCreateFavorites/index.js +25 -0
  33. package/build/api/server-galleries/mutations/useCreateGallery/index.d.ts +6 -0
  34. package/build/api/server-galleries/mutations/useCreateGallery/index.js +25 -0
  35. package/build/api/server-galleries/mutations/useDeleteGallery/index.d.ts +8 -0
  36. package/build/api/server-galleries/mutations/useDeleteGallery/index.js +42 -0
  37. package/build/api/server-galleries/mutations/useDeleteGalleryBanner/index.d.ts +5 -0
  38. package/build/api/server-galleries/mutations/useDeleteGalleryBanner/index.js +39 -0
  39. package/build/api/server-galleries/mutations/useEditGallery/index.d.ts +5 -0
  40. package/build/api/server-galleries/mutations/useEditGallery/index.js +23 -0
  41. package/build/api/server-galleries/mutations/useRemoveAssetFromGallery/index.d.ts +7 -0
  42. package/build/api/server-galleries/mutations/useRemoveAssetFromGallery/index.js +49 -0
  43. package/build/api/server-galleries/mutations/useRemoveCollectionFromGallery/index.d.ts +7 -0
  44. package/build/api/server-galleries/mutations/useRemoveCollectionFromGallery/index.js +44 -0
  45. package/build/api/server-galleries/queries/useFetchGallery/index.d.ts +16 -0
  46. package/build/api/server-galleries/queries/useFetchGallery/index.js +46 -0
  47. package/build/api/server-galleries/queries/useFetchGalleryAssets/index.d.ts +18 -0
  48. package/build/api/server-galleries/queries/useFetchGalleryAssets/index.js +86 -0
  49. package/build/api/server-galleries/queries/useFetchMyFavorites/index.d.ts +10 -0
  50. package/build/api/server-galleries/queries/useFetchMyFavorites/index.js +70 -0
  51. package/build/api/server-galleries/queries/useFetchMyGalleries/index.d.ts +10 -0
  52. package/build/api/server-galleries/queries/useFetchMyGalleries/index.js +72 -0
  53. package/build/api/server-galleries/queries/useFetchSubscribedGalleries/index.d.ts +9 -0
  54. package/build/api/server-galleries/queries/useFetchSubscribedGalleries/index.js +69 -0
  55. package/build/api/server-galleries/queries/useFetchUserFavorites/index.d.ts +11 -0
  56. package/build/api/server-galleries/queries/useFetchUserFavorites/index.js +68 -0
  57. package/build/api/server-identities/mutations/useAddWalletElrond/index.d.ts +6 -0
  58. package/build/api/server-identities/mutations/useAddWalletElrond/index.js +35 -0
  59. package/build/api/server-identities/mutations/useAddWalletFlow/index.d.ts +5 -0
  60. package/build/api/server-identities/mutations/useAddWalletFlow/index.js +35 -0
  61. package/build/api/server-identities/mutations/useAddWalletMetamask/index.d.ts +12 -0
  62. package/build/api/server-identities/mutations/useAddWalletMetamask/index.js +39 -0
  63. package/build/api/server-identities/mutations/useAddWalletSolana/index.d.ts +5 -0
  64. package/build/api/server-identities/mutations/useAddWalletSolana/index.js +35 -0
  65. package/build/api/server-identities/mutations/useAddWalletTezos/index.d.ts +5 -0
  66. package/build/api/server-identities/mutations/useAddWalletTezos/index.js +35 -0
  67. package/build/api/server-identities/mutations/useFollowProfile/index.d.ts +7 -0
  68. package/build/api/server-identities/mutations/useFollowProfile/index.js +40 -0
  69. package/build/api/server-identities/mutations/useGenerateNewInviteCodes/index.d.ts +7 -0
  70. package/build/api/server-identities/mutations/useGenerateNewInviteCodes/index.js +31 -0
  71. package/build/api/server-identities/mutations/useInviteCode/index.d.ts +7 -0
  72. package/build/api/server-identities/mutations/useInviteCode/index.js +34 -0
  73. package/build/api/server-identities/mutations/useRemoveWallet/index.d.ts +6 -0
  74. package/build/api/server-identities/mutations/useRemoveWallet/index.js +37 -0
  75. package/build/api/server-identities/mutations/useRevokeToken/index.d.ts +4 -0
  76. package/build/api/server-identities/mutations/useRevokeToken/index.js +21 -0
  77. package/build/api/server-identities/mutations/useSaveEmailOfJoiner/index.d.ts +7 -0
  78. package/build/api/server-identities/mutations/useSaveEmailOfJoiner/index.js +34 -0
  79. package/build/api/server-identities/mutations/useUnfollowProfile/index.d.ts +7 -0
  80. package/build/api/server-identities/mutations/useUnfollowProfile/index.js +39 -0
  81. package/build/api/server-identities/queries/useFetchProfile/index.d.ts +16 -0
  82. package/build/api/server-identities/queries/useFetchProfile/index.js +80 -0
  83. package/build/api/server-identities/queries/useFetchUserWallets/index.d.ts +7 -0
  84. package/build/api/server-identities/queries/useFetchUserWallets/index.js +19 -0
  85. package/build/api/server-medias/mutations/useDeleteUserpic/index.d.ts +6 -0
  86. package/build/api/server-medias/mutations/useDeleteUserpic/index.js +20 -0
  87. package/build/api/server-medias/mutations/useUploadUserpic/index.d.ts +4 -0
  88. package/build/api/server-medias/mutations/useUploadUserpic/index.js +27 -0
  89. package/build/api/server-medias/queries/useFetchUserPic/index.d.ts +12 -0
  90. package/build/api/server-medias/queries/useFetchUserPic/index.js +39 -0
  91. package/build/api/server-opportunities/mutations/useDislikeOpportunity.d.ts +4 -0
  92. package/build/api/server-opportunities/mutations/useDislikeOpportunity.js +29 -0
  93. package/build/api/server-opportunities/mutations/useLikeOpportunity.d.ts +4 -0
  94. package/build/api/server-opportunities/mutations/useLikeOpportunity.js +29 -0
  95. package/build/api/server-opportunities/mutations/useOpenOpportunity/index.d.ts +5 -0
  96. package/build/api/server-opportunities/mutations/useOpenOpportunity/index.js +28 -0
  97. package/build/api/server-opportunities/queries/useGetOpportunities.d.ts +4 -0
  98. package/build/api/server-opportunities/queries/useGetOpportunities.js +26 -0
  99. package/build/api/server-preferences/queries/fetchSearchResultSelections/index.d.ts +28 -0
  100. package/build/api/server-preferences/queries/fetchSearchResultSelections/index.js +33 -0
  101. package/build/api/server-preferences/queries/fetchSearchResultSelections/queryData.d.ts +14 -0
  102. package/build/api/server-preferences/queries/fetchSearchResultSelections/queryData.js +37 -0
  103. package/build/api/server-search/queries/useFetchAllCreations/index.d.ts +32 -0
  104. package/build/api/server-search/queries/useFetchAllCreations/index.js +94 -0
  105. package/build/api/server-search/queries/useFetchAssetsCount/index.d.ts +7 -0
  106. package/build/api/server-search/queries/useFetchAssetsCount/index.js +33 -0
  107. package/build/api/server-search/queries/useFetchCollection/index.d.ts +19 -0
  108. package/build/api/server-search/queries/useFetchCollection/index.js +59 -0
  109. package/build/api/server-search/queries/useFetchCollections/index.d.ts +23 -0
  110. package/build/api/server-search/queries/useFetchCollections/index.js +101 -0
  111. package/build/api/server-search/queries/useFetchDynamicCollectionData/index.d.ts +13 -0
  112. package/build/api/server-search/queries/useFetchDynamicCollectionData/index.js +126 -0
  113. package/build/api/server-search/queries/useFetchFindAllTopEntitiesByName/index.d.ts +47 -0
  114. package/build/api/server-search/queries/useFetchFindAllTopEntitiesByName/index.js +59 -0
  115. package/build/api/server-search/queries/useFetchNetWorth/index.d.ts +7 -0
  116. package/build/api/server-search/queries/useFetchNetWorth/index.js +23 -0
  117. package/build/api/server-search/queries/useFindCreations/index.d.ts +34 -0
  118. package/build/api/server-search/queries/useFindCreations/index.js +107 -0
  119. package/build/api/server-search/queries/useFindProfilesByName/index.d.ts +32 -0
  120. package/build/api/server-search/queries/useFindProfilesByName/index.js +59 -0
  121. package/build/api/server-search/queries/useFindShowcaseItems/index.d.ts +2 -0
  122. package/build/api/server-search/queries/useFindShowcaseItems/index.js +42 -0
  123. package/build/api/server-search/queries/useFindUserCreations/index.d.ts +16 -0
  124. package/build/api/server-search/queries/useFindUserCreations/index.js +95 -0
  125. package/build/api/server-search/queries/useFindUserShowcaseItems/index.d.ts +2 -0
  126. package/build/api/server-search/queries/useFindUserShowcaseItems/index.js +40 -0
  127. package/build/api/subscriptions/SubscriberInviteNotification.d.ts +1 -0
  128. package/build/api/subscriptions/SubscriberInviteNotification.js +44 -0
  129. package/build/components/assetPage/assetLikes/index.d.ts +6 -0
  130. package/build/components/assetPage/assetLikes/index.js +58 -0
  131. package/build/components/assetPage/assetNft/index.d.ts +4 -0
  132. package/build/components/assetPage/assetNft/index.js +37 -0
  133. package/build/components/assetPage/audioVideoPlayer/Duration.d.ts +5 -0
  134. package/build/components/assetPage/audioVideoPlayer/Duration.js +22 -0
  135. package/build/components/assetPage/audioVideoPlayer/index.d.ts +96 -0
  136. package/build/components/assetPage/audioVideoPlayer/index.js +308 -0
  137. package/build/components/assetPage/category/index.d.ts +6 -0
  138. package/build/components/assetPage/category/index.js +55 -0
  139. package/build/components/assetPage/description/index.d.ts +4 -0
  140. package/build/components/assetPage/description/index.js +43 -0
  141. package/build/components/assetPage/index.d.ts +11 -0
  142. package/build/components/assetPage/index.js +25 -0
  143. package/build/components/assetPage/information/index.d.ts +6 -0
  144. package/build/components/assetPage/information/index.js +117 -0
  145. package/build/components/assetPage/marketPlaces/index.d.ts +4 -0
  146. package/build/components/assetPage/marketPlaces/index.js +57 -0
  147. package/build/components/assetPage/media/AssetImage/index.d.ts +8 -0
  148. package/build/components/assetPage/media/AssetImage/index.js +187 -0
  149. package/build/components/assetPage/moreDropDown/index.d.ts +10 -0
  150. package/build/components/assetPage/moreDropDown/index.js +152 -0
  151. package/build/components/assetPage/participants/index.d.ts +9 -0
  152. package/build/components/assetPage/participants/index.js +178 -0
  153. package/build/components/assetPage/priceRank/index.d.ts +9 -0
  154. package/build/components/assetPage/priceRank/index.js +112 -0
  155. package/build/components/assetPage/properties/index.d.ts +4 -0
  156. package/build/components/assetPage/properties/index.js +42 -0
  157. package/build/components/assetPage/slider/index.d.ts +5 -0
  158. package/build/components/assetPage/slider/index.js +178 -0
  159. package/build/components/assetPage/slider/slideItem.d.ts +5 -0
  160. package/build/components/assetPage/slider/slideItem.js +53 -0
  161. package/build/components/assetPage/slider/store.d.ts +8 -0
  162. package/build/components/assetPage/slider/store.js +16 -0
  163. package/build/components/assetPage/tittle/index.d.ts +9 -0
  164. package/build/components/assetPage/tittle/index.js +89 -0
  165. package/build/components/assetPage/viewer3D/index.d.ts +7 -0
  166. package/build/components/assetPage/viewer3D/index.js +123 -0
  167. package/build/components/base/Meta/index.d.ts +2 -0
  168. package/build/components/base/Meta/index.js +39 -0
  169. package/build/components/base/NoSSR/index.d.ts +5 -0
  170. package/build/components/base/NoSSR/index.js +11 -0
  171. package/build/components/favoriteList/add/addCreationToFavoriteList/index.d.ts +7 -0
  172. package/build/components/favoriteList/add/addCreationToFavoriteList/index.js +28 -0
  173. package/build/components/gallery/add/addCreationToGallery/index.d.ts +2 -0
  174. package/build/components/gallery/add/addCreationToGallery/index.js +48 -0
  175. package/build/components/headers/components/MobileToggle/index.d.ts +0 -0
  176. package/build/components/headers/components/MobileToggle/index.js +1 -0
  177. package/build/components/headers/components/headerExperienceLabel/index.d.ts +4 -0
  178. package/build/components/headers/components/headerExperienceLabel/index.js +31 -0
  179. package/build/components/headers/components/headerUserPic/index.d.ts +4 -0
  180. package/build/components/headers/components/headerUserPic/index.js +29 -0
  181. package/build/components/headers/header/index.d.ts +2 -0
  182. package/build/components/headers/header/index.js +30 -0
  183. package/build/components/headers/headerSearch/index.d.ts +2 -0
  184. package/build/components/headers/headerSearch/index.js +37 -0
  185. package/build/components/headers/headerSimple/index.d.ts +2 -0
  186. package/build/components/headers/headerSimple/index.js +76 -0
  187. package/build/components/linkTabs/index.d.ts +7 -0
  188. package/build/components/linkTabs/index.js +51 -0
  189. package/build/components/linkTabs/linkTab/index.d.ts +8 -0
  190. package/build/components/linkTabs/linkTab/index.js +74 -0
  191. package/build/components/profile/profileSkeleton/index.d.ts +4 -0
  192. package/build/components/profile/profileSkeleton/index.js +75 -0
  193. package/build/components/search/SearchInputContainer.d.ts +26 -0
  194. package/build/components/search/SearchInputContainer.js +226 -0
  195. package/build/components/search/searchCloseMoreButtons/index.d.ts +14 -0
  196. package/build/components/search/searchCloseMoreButtons/index.js +58 -0
  197. package/build/components/search/searchSimpleInput/index.d.ts +4 -0
  198. package/build/components/search/searchSimpleInput/index.js +139 -0
  199. package/build/components/search/searchSuggestions/index.d.ts +14 -0
  200. package/build/components/search/searchSuggestions/index.js +145 -0
  201. package/build/components/search/searchSuggestions/searchSuggestionsCaption/index.d.ts +7 -0
  202. package/build/components/search/searchSuggestions/searchSuggestionsCaption/index.js +45 -0
  203. package/build/components/search/searchSuggestions/searchSuggestionsFooter/index.d.ts +2 -0
  204. package/build/components/search/searchSuggestions/searchSuggestionsFooter/index.js +52 -0
  205. package/build/components/search/searchSuggestions/searchSuggestionsItem/index.d.ts +11 -0
  206. package/build/components/search/searchSuggestions/searchSuggestionsItem/index.js +117 -0
  207. package/build/components/search/searchSuggestions/searchSuggestionsItem/searchSuggestionsItemSkeleton/index.d.ts +3 -0
  208. package/build/components/search/searchSuggestions/searchSuggestionsItem/searchSuggestionsItemSkeleton/index.js +116 -0
  209. package/build/components/search/searchSuggestions/searchSuggestionsNotFound/index.d.ts +4 -0
  210. package/build/components/search/searchSuggestions/searchSuggestionsNotFound/index.js +46 -0
  211. package/build/components/searchFiltersConnector/filters/applyResetBtns/index.d.ts +5 -0
  212. package/build/components/searchFiltersConnector/filters/applyResetBtns/index.js +55 -0
  213. package/build/components/searchFiltersConnector/filters/galleriesFiltersForm/index.d.ts +10 -0
  214. package/build/components/searchFiltersConnector/filters/galleriesFiltersForm/index.js +60 -0
  215. package/build/components/searchFiltersConnector/filters/index.d.ts +11 -0
  216. package/build/components/searchFiltersConnector/filters/index.js +158 -0
  217. package/build/components/searchFiltersConnector/filters/mobileFilters/index.d.ts +5 -0
  218. package/build/components/searchFiltersConnector/filters/mobileFilters/index.js +25 -0
  219. package/build/components/searchFiltersConnector/filters/setsFiltersForm/index.d.ts +9 -0
  220. package/build/components/searchFiltersConnector/filters/setsFiltersForm/index.js +53 -0
  221. package/build/components/searchFiltersConnector/index.d.ts +10 -0
  222. package/build/components/searchFiltersConnector/index.js +121 -0
  223. package/build/components/sidebar/data.d.ts +19 -0
  224. package/build/components/sidebar/data.js +80 -0
  225. package/build/components/sidebar/index.d.ts +2 -0
  226. package/build/components/sidebar/index.js +160 -0
  227. package/build/components/sidebar/initializer.d.ts +1 -0
  228. package/build/components/sidebar/initializer.js +36 -0
  229. package/build/components/sidebar/sidebarFilters/index.d.ts +7 -0
  230. package/build/components/sidebar/sidebarFilters/index.js +51 -0
  231. package/build/components/sidebar/sidebarInviteCodeLabel/index.d.ts +2 -0
  232. package/build/components/sidebar/sidebarInviteCodeLabel/index.js +38 -0
  233. package/build/components/toTopBtn/index.d.ts +5 -0
  234. package/build/components/toTopBtn/index.js +95 -0
  235. package/build/dto/AssetEntity/index.d.ts +63 -0
  236. package/build/dto/AssetEntity/index.js +223 -0
  237. package/build/dto/AssetEntity/interface.d.ts +39 -0
  238. package/build/dto/AssetEntity/interface.js +2 -0
  239. package/build/dto/AssetEntity/views/AssetAudio/index.d.ts +9 -0
  240. package/build/dto/AssetEntity/views/AssetAudio/index.js +27 -0
  241. package/build/dto/AssetEntity/views/AssetImage/index.d.ts +10 -0
  242. package/build/dto/AssetEntity/views/AssetImage/index.js +38 -0
  243. package/build/dto/AssetEntity/views/AssetObject/index.d.ts +11 -0
  244. package/build/dto/AssetEntity/views/AssetObject/index.js +59 -0
  245. package/build/dto/AssetEntity/views/AssetOther/index.d.ts +11 -0
  246. package/build/dto/AssetEntity/views/AssetOther/index.js +43 -0
  247. package/build/dto/AssetEntity/views/AssetScreenshot/index.d.ts +10 -0
  248. package/build/dto/AssetEntity/views/AssetScreenshot/index.js +38 -0
  249. package/build/dto/AssetEntity/views/AssetVideo/index.d.ts +9 -0
  250. package/build/dto/AssetEntity/views/AssetVideo/index.js +27 -0
  251. package/build/dto/AssetEntity/views/index.d.ts +6 -0
  252. package/build/dto/AssetEntity/views/index.js +16 -0
  253. package/build/dto/Collection/CollectionCreationEntity/index.d.ts +45 -0
  254. package/build/dto/Collection/CollectionCreationEntity/index.js +173 -0
  255. package/build/dto/Collection/CollectionCreationEntity/interface.d.ts +24 -0
  256. package/build/dto/Collection/CollectionCreationEntity/interface.js +2 -0
  257. package/build/dto/Collection/CollectionEntity/index.d.ts +32 -0
  258. package/build/dto/Collection/CollectionEntity/index.js +82 -0
  259. package/build/dto/Collection/CollectionEntity/interface.d.ts +16 -0
  260. package/build/dto/Collection/CollectionEntity/interface.js +2 -0
  261. package/build/dto/CreationEntity/index.d.ts +49 -0
  262. package/build/dto/CreationEntity/index.js +178 -0
  263. package/build/dto/CreationEntity/interface.d.ts +30 -0
  264. package/build/dto/CreationEntity/interface.js +2 -0
  265. package/build/dto/GalleryEntityV2/index.d.ts +32 -0
  266. package/build/dto/GalleryEntityV2/index.js +82 -0
  267. package/build/dto/GalleryEntityV2/interface.d.ts +16 -0
  268. package/build/dto/GalleryEntityV2/interface.js +2 -0
  269. package/build/dto/Theme/interface.d.ts +2 -0
  270. package/build/dto/Theme/interface.js +5 -0
  271. package/build/dto/common/ItemType/data.d.ts +3 -0
  272. package/build/dto/common/ItemType/data.js +36 -0
  273. package/build/dto/common/ItemType/index.d.ts +45 -0
  274. package/build/dto/common/ItemType/index.js +42 -0
  275. package/build/dto/common/ItemViews/CreationAudio/index.d.ts +9 -0
  276. package/build/dto/common/ItemViews/CreationAudio/index.js +27 -0
  277. package/build/dto/common/ItemViews/CreationImage/index.d.ts +10 -0
  278. package/build/dto/common/ItemViews/CreationImage/index.js +38 -0
  279. package/build/dto/common/ItemViews/CreationObject/index.d.ts +8 -0
  280. package/build/dto/common/ItemViews/CreationObject/index.js +30 -0
  281. package/build/dto/common/ItemViews/CreationOther/index.d.ts +9 -0
  282. package/build/dto/common/ItemViews/CreationOther/index.js +27 -0
  283. package/build/dto/common/ItemViews/CreationVideo/index.d.ts +9 -0
  284. package/build/dto/common/ItemViews/CreationVideo/index.js +27 -0
  285. package/build/dto/common/Media/Audio/index.d.ts +13 -0
  286. package/build/dto/common/Media/Audio/index.js +37 -0
  287. package/build/dto/common/Media/Image/index.d.ts +13 -0
  288. package/build/dto/common/Media/Image/index.js +45 -0
  289. package/build/dto/common/Media/Object/index.d.ts +13 -0
  290. package/build/dto/common/Media/Object/index.js +46 -0
  291. package/build/dto/common/Media/Other/index.d.ts +13 -0
  292. package/build/dto/common/Media/Other/index.js +65 -0
  293. package/build/dto/common/Media/Screenshot/index.d.ts +13 -0
  294. package/build/dto/common/Media/Screenshot/index.js +45 -0
  295. package/build/dto/common/Media/Urls/index.d.ts +31 -0
  296. package/build/dto/common/Media/Urls/index.js +124 -0
  297. package/build/dto/common/Media/Video/index.d.ts +13 -0
  298. package/build/dto/common/Media/Video/index.js +37 -0
  299. package/build/dto/common/Media/index.d.ts +26 -0
  300. package/build/dto/common/Media/index.js +45 -0
  301. package/build/dto/common/Media/interface.d.ts +28 -0
  302. package/build/dto/common/Media/interface.js +2 -0
  303. package/build/entities/user/type.d.ts +5 -0
  304. package/build/entities/user/type.js +2 -0
  305. package/build/fonts/FontsInitializeLayout.d.ts +6 -0
  306. package/build/fonts/FontsInitializeLayout.js +160 -0
  307. package/build/fonts/vars.d.ts +1 -0
  308. package/build/fonts/vars.js +6 -0
  309. package/build/hooks/apollo/index.d.ts +2 -0
  310. package/build/hooks/apollo/index.js +13 -0
  311. package/build/hooks/audio/useMultiAudio/index.d.ts +2 -0
  312. package/build/hooks/audio/useMultiAudio/index.js +47 -0
  313. package/build/hooks/extension/useExtension/index.d.ts +7 -0
  314. package/build/hooks/extension/useExtension/index.js +32 -0
  315. package/build/hooks/favorites/useGetFavoriteGallaryCreations/index.d.ts +23 -0
  316. package/build/hooks/favorites/useGetFavoriteGallaryCreations/index.js +132 -0
  317. package/build/hooks/favorites/useGetUserFevoritesCreations/index.d.ts +24 -0
  318. package/build/hooks/favorites/useGetUserFevoritesCreations/index.js +188 -0
  319. package/build/hooks/galleries/useGetUserGalleriesCreations/index.d.ts +24 -0
  320. package/build/hooks/galleries/useGetUserGalleriesCreations/index.js +177 -0
  321. package/build/hooks/likes/dynamic/useFindCollectionsAndLikes.d.ts +29 -0
  322. package/build/hooks/likes/dynamic/useFindCollectionsAndLikes.js +150 -0
  323. package/build/hooks/likes/dynamic/useFindCreationsAndLikes.d.ts +15 -0
  324. package/build/hooks/likes/dynamic/useFindCreationsAndLikes.js +125 -0
  325. package/build/hooks/likes/dynamic/useGetCollectionInfoAndLikes.d.ts +14 -0
  326. package/build/hooks/likes/dynamic/useGetCollectionInfoAndLikes.js +135 -0
  327. package/build/hooks/likes/dynamic/useGetCreationsAndLikes.d.ts +18 -0
  328. package/build/hooks/likes/dynamic/useGetCreationsAndLikes.js +139 -0
  329. package/build/hooks/likes/dynamic/useGetCreationsAndLikesByType.d.ts +16 -0
  330. package/build/hooks/likes/dynamic/useGetCreationsAndLikesByType.js +151 -0
  331. package/build/hooks/likes/dynamic/useGetMixedLikesFavoriteList.d.ts +19 -0
  332. package/build/hooks/likes/dynamic/useGetMixedLikesFavoriteList.js +49 -0
  333. package/build/hooks/likes/dynamic/useGetTableLikes.d.ts +15 -0
  334. package/build/hooks/likes/dynamic/useGetTableLikes.js +117 -0
  335. package/build/hooks/likes/index.d.ts +19 -0
  336. package/build/hooks/likes/index.js +113 -0
  337. package/build/hooks/likes/useGetLikesAsset.d.ts +20 -0
  338. package/build/hooks/likes/useGetLikesAsset.js +97 -0
  339. package/build/index.d.ts +0 -0
  340. package/build/modules/gallery/api/useGetAssetsAndCollectionForFavorite.d.ts +19 -0
  341. package/build/modules/gallery/api/useGetAssetsAndCollectionForFavorite.js +221 -0
  342. package/build/modules/gallery/api/useGetFavoriteGallery.d.ts +6 -0
  343. package/build/modules/gallery/api/useGetFavoriteGallery.js +40 -0
  344. package/build/modules/gallery/store.d.ts +26 -0
  345. package/build/modules/gallery/store.js +101 -0
  346. package/build/modules/gallery/ui/AllResults.d.ts +3 -0
  347. package/build/modules/gallery/ui/AllResults.js +12 -0
  348. package/build/modules/gallery/ui/Description.d.ts +4 -0
  349. package/build/modules/gallery/ui/Description.js +101 -0
  350. package/build/modules/gallery/ui/EditGallery.d.ts +9 -0
  351. package/build/modules/gallery/ui/EditGallery.js +51 -0
  352. package/build/modules/gallery/ui/GalleryDeleteIcon.d.ts +4 -0
  353. package/build/modules/gallery/ui/GalleryDeleteIcon.js +28 -0
  354. package/build/modules/gallery/ui/PlaceholderItemsGallery.d.ts +1 -0
  355. package/build/modules/gallery/ui/PlaceholderItemsGallery.js +71 -0
  356. package/build/modules/gallery/ui/STopSections.d.ts +2 -0
  357. package/build/modules/gallery/ui/STopSections.js +31 -0
  358. package/build/modules/gallery/ui/chooseGalleryItems/chooseGalleryItem/index.d.ts +7 -0
  359. package/build/modules/gallery/ui/chooseGalleryItems/chooseGalleryItem/index.js +92 -0
  360. package/build/modules/gallery/ui/chooseGalleryItems/index.d.ts +15 -0
  361. package/build/modules/gallery/ui/chooseGalleryItems/index.js +161 -0
  362. package/build/modules/gallery/ui/createGalleryForm/index.d.ts +13 -0
  363. package/build/modules/gallery/ui/createGalleryForm/index.js +140 -0
  364. package/build/modules/gallery/ui/editGalleryForm/index.d.ts +8 -0
  365. package/build/modules/gallery/ui/editGalleryForm/index.js +192 -0
  366. package/build/modules/gallery/ui/itemsPreview/index.d.ts +20 -0
  367. package/build/modules/gallery/ui/itemsPreview/index.js +279 -0
  368. package/build/modules/gallery/useToGalleryAsset.d.ts +18 -0
  369. package/build/modules/gallery/useToGalleryAsset.js +88 -0
  370. package/build/modules/notifications/CreatorNotifications.d.ts +1 -0
  371. package/build/modules/notifications/CreatorNotifications.js +41 -0
  372. package/build/modules/notifications/index.d.ts +22 -0
  373. package/build/modules/notifications/index.js +6 -0
  374. package/build/modules/opportunity/OpportunityCard.d.ts +5 -0
  375. package/build/modules/opportunity/OpportunityCard.js +235 -0
  376. package/build/modules/opportunity/OpportunityDropDown.d.ts +5 -0
  377. package/build/modules/opportunity/OpportunityDropDown.js +42 -0
  378. package/build/modules/opportunity/ShareIcon.d.ts +1 -0
  379. package/build/modules/opportunity/ShareIcon.js +6 -0
  380. package/build/modules/opportunity/encodeQuery.d.ts +14 -0
  381. package/build/modules/opportunity/encodeQuery.js +31 -0
  382. package/build/modules/opportunity/popup/CopyIcon.d.ts +8 -0
  383. package/build/modules/opportunity/popup/CopyIcon.js +7 -0
  384. package/build/modules/opportunity/popup/FacebookIcon.d.ts +8 -0
  385. package/build/modules/opportunity/popup/FacebookIcon.js +7 -0
  386. package/build/modules/opportunity/popup/LinkedInIcon.d.ts +8 -0
  387. package/build/modules/opportunity/popup/LinkedInIcon.js +7 -0
  388. package/build/modules/opportunity/popup/LogoXIcon.d.ts +8 -0
  389. package/build/modules/opportunity/popup/LogoXIcon.js +7 -0
  390. package/build/modules/opportunity/popup/OpportunityMenu.d.ts +8 -0
  391. package/build/modules/opportunity/popup/OpportunityMenu.js +201 -0
  392. package/build/modules/opportunity/type.d.ts +2 -0
  393. package/build/modules/opportunity/type.js +2 -0
  394. package/build/modules/sessionScroll/globalTabs.d.ts +12 -0
  395. package/build/modules/sessionScroll/globalTabs.js +50 -0
  396. package/build/modules/sessionScroll/index.d.ts +14 -0
  397. package/build/modules/sessionScroll/index.js +61 -0
  398. package/build/modules/sessionScroll/type.d.ts +7 -0
  399. package/build/modules/sessionScroll/type.js +2 -0
  400. package/build/modules/sessionScroll/useVirtuosoInitialScroll.d.ts +12 -0
  401. package/build/modules/sessionScroll/useVirtuosoInitialScroll.js +59 -0
  402. package/build/modules/user/auth/useAuthVerification.d.ts +1 -0
  403. package/build/modules/user/auth/useAuthVerification.js +74 -0
  404. package/build/modules/user/auth/useSignIn.d.ts +2 -0
  405. package/build/modules/user/auth/useSignIn.js +23 -0
  406. package/build/modules/user/auth/useSignOut.d.ts +1 -0
  407. package/build/modules/user/auth/useSignOut.js +37 -0
  408. package/build/modules/user/profileData/profileDataInitialization.d.ts +1 -0
  409. package/build/modules/user/profileData/profileDataInitialization.js +59 -0
  410. package/build/modules/user/store.d.ts +33 -0
  411. package/build/modules/user/store.js +73 -0
  412. package/build/modules/virtuoso/VirtuosoPageBuilder.d.ts +19 -0
  413. package/build/modules/virtuoso/VirtuosoPageBuilder.js +135 -0
  414. package/build/modules/virtuoso/VirtuosoToTopBtn.d.ts +9 -0
  415. package/build/modules/virtuoso/VirtuosoToTopBtn.js +38 -0
  416. package/build/modules/virtuoso/types.d.ts +7 -0
  417. package/build/modules/virtuoso/types.js +2 -0
  418. package/build/modules/virtuoso/useSubscribeVirtuosoScrollToHeader.d.ts +3 -0
  419. package/build/modules/virtuoso/useSubscribeVirtuosoScrollToHeader.js +27 -0
  420. package/build/modules/virtuoso/useVirtuosoData.d.ts +12 -0
  421. package/build/modules/virtuoso/useVirtuosoData.js +49 -0
  422. package/build/store/env/index.d.ts +22 -0
  423. package/build/store/env/index.js +37 -0
  424. package/build/store/index.d.ts +10 -0
  425. package/build/store/index.js +12 -0
  426. package/build/store/media/index.d.ts +2 -0
  427. package/build/store/media/index.js +59 -0
  428. package/build/store/media/types.d.ts +11 -0
  429. package/build/store/media/types.js +2 -0
  430. package/build/store/ui/index.d.ts +2 -0
  431. package/build/store/ui/index.js +116 -0
  432. package/build/store/ui/types.d.ts +34 -0
  433. package/build/store/ui/types.js +2 -0
  434. package/build/store/ui/utils.d.ts +7 -0
  435. package/build/store/ui/utils.js +25 -0
  436. package/build/styles/ScreenWidth.d.ts +22 -0
  437. package/build/styles/ScreenWidth.js +26 -0
  438. package/build/styles/animations/index.d.ts +2 -0
  439. package/build/styles/animations/index.js +20 -0
  440. package/build/styles/colors/index.d.ts +1 -0
  441. package/build/styles/colors/index.js +38 -0
  442. package/build/styles/globalStyles.d.ts +3 -0
  443. package/build/styles/globalStyles.js +86 -0
  444. package/build/styles/mixins/boxShadow.d.ts +2 -0
  445. package/build/styles/mixins/boxShadow.js +13 -0
  446. package/build/styles/mixins/boxTransform.d.ts +2 -0
  447. package/build/styles/mixins/boxTransform.js +12 -0
  448. package/build/styles/mixins/z-indexes.d.ts +10 -0
  449. package/build/styles/mixins/z-indexes.js +13 -0
  450. package/build/styles/typography/index.d.ts +1 -0
  451. package/build/styles/typography/index.js +13 -0
  452. package/build/system/ActiveLink/ActiveLink.test.d.ts +1 -0
  453. package/build/system/ActiveLink/ActiveLink.test.js +48 -0
  454. package/build/system/ActiveLink/index.d.ts +9 -0
  455. package/build/system/ActiveLink/index.js +49 -0
  456. package/build/system/Alert/index.d.ts +2 -0
  457. package/build/system/Alert/index.js +21 -0
  458. package/build/system/Alert/type.d.ts +2 -0
  459. package/build/system/Alert/type.js +8 -0
  460. package/build/system/BasicOverlay/index.d.ts +2 -0
  461. package/build/system/BasicOverlay/index.js +27 -0
  462. package/build/system/Buttons/IconButton/index.d.ts +2 -0
  463. package/build/system/Buttons/IconButton/index.js +7 -0
  464. package/build/system/Buttons/IconWithButton/index.d.ts +2 -0
  465. package/build/system/Buttons/IconWithButton/index.js +7 -0
  466. package/build/system/Buttons/IconWithButton/themes.d.ts +0 -0
  467. package/build/system/Buttons/IconWithButton/themes.js +1 -0
  468. package/build/system/Buttons/MainButton/index.d.ts +2 -0
  469. package/build/system/Buttons/MainButton/index.js +7 -0
  470. package/build/system/Buttons/MainButton/themes.d.ts +0 -0
  471. package/build/system/Buttons/MainButton/themes.js +1 -0
  472. package/build/system/Buttons/SecondaryButton/index.d.ts +2 -0
  473. package/build/system/Buttons/SecondaryButton/index.js +7 -0
  474. package/build/system/Cards/CardCheckbox/CardCheckbox.test.d.ts +1 -0
  475. package/build/system/Cards/CardCheckbox/CardCheckbox.test.js +35 -0
  476. package/build/system/Cards/CardCheckbox/index.d.ts +5 -0
  477. package/build/system/Cards/CardCheckbox/index.js +92 -0
  478. package/build/system/Cards/CardContent/CardCategory/CardCategory.test.d.ts +1 -0
  479. package/build/system/Cards/CardContent/CardCategory/CardCategory.test.js +28 -0
  480. package/build/system/Cards/CardContent/CardCategory/index.d.ts +5 -0
  481. package/build/system/Cards/CardContent/CardCategory/index.js +54 -0
  482. package/build/system/Cards/CardContent/CardContent.test.d.ts +1 -0
  483. package/build/system/Cards/CardContent/CardContent.test.js +103 -0
  484. package/build/system/Cards/CardContent/CardLikes/CardLikes.test.d.ts +1 -0
  485. package/build/system/Cards/CardContent/CardLikes/CardLikes.test.js +37 -0
  486. package/build/system/Cards/CardContent/CardLikes/index.d.ts +5 -0
  487. package/build/system/Cards/CardContent/CardLikes/index.js +29 -0
  488. package/build/system/Cards/CardContent/CardShowMore/CardShowMore.test.d.ts +1 -0
  489. package/build/system/Cards/CardContent/CardShowMore/CardShowMore.test.js +46 -0
  490. package/build/system/Cards/CardContent/CardShowMore/index.d.ts +7 -0
  491. package/build/system/Cards/CardContent/CardShowMore/index.js +121 -0
  492. package/build/system/Cards/CardContent/index.d.ts +17 -0
  493. package/build/system/Cards/CardContent/index.js +97 -0
  494. package/build/system/Cards/CardMedia/CardAudio/CardAudio.test.d.ts +1 -0
  495. package/build/system/Cards/CardMedia/CardAudio/CardAudio.test.js +92 -0
  496. package/build/system/Cards/CardMedia/CardAudio/index.d.ts +7 -0
  497. package/build/system/Cards/CardMedia/CardAudio/index.js +66 -0
  498. package/build/system/Cards/CardMedia/CardImage/CardImage.test.d.ts +1 -0
  499. package/build/system/Cards/CardMedia/CardImage/CardImage.test.js +34 -0
  500. package/build/system/Cards/CardMedia/CardImage/index.d.ts +6 -0
  501. package/build/system/Cards/CardMedia/CardImage/index.js +19 -0
  502. package/build/system/Cards/CardMedia/CardVideo/index.d.ts +6 -0
  503. package/build/system/Cards/CardMedia/CardVideo/index.js +54 -0
  504. package/build/system/Cards/CardRank/index.d.ts +4 -0
  505. package/build/system/Cards/CardRank/index.js +82 -0
  506. package/build/system/Cards/CreationCard/CardHead.d.ts +13 -0
  507. package/build/system/Cards/CreationCard/CardHead.js +76 -0
  508. package/build/system/Cards/CreationCard/index.d.ts +28 -0
  509. package/build/system/Cards/CreationCard/index.js +124 -0
  510. package/build/system/Cards/MultiMediaCard/index.d.ts +9 -0
  511. package/build/system/Cards/MultiMediaCard/index.js +130 -0
  512. package/build/system/Cards/Styles/Content.d.ts +3 -0
  513. package/build/system/Cards/Styles/Content.js +40 -0
  514. package/build/system/Cards/Styles/Head.d.ts +3 -0
  515. package/build/system/Cards/Styles/Head.js +45 -0
  516. package/build/system/Cards/Styles/Headicons.d.ts +5 -0
  517. package/build/system/Cards/Styles/Headicons.js +121 -0
  518. package/build/system/Cards/Styles/Image.d.ts +5 -0
  519. package/build/system/Cards/Styles/Image.js +24 -0
  520. package/build/system/Cards/Styles/Likes.d.ts +5 -0
  521. package/build/system/Cards/Styles/Likes.js +53 -0
  522. package/build/system/Cards/Styles/MultiHead.d.ts +3 -0
  523. package/build/system/Cards/Styles/MultiHead.js +44 -0
  524. package/build/system/Cards/Styles/Video.d.ts +3 -0
  525. package/build/system/Cards/Styles/Video.js +15 -0
  526. package/build/system/CardsHolderWithSkeleton/CardsHolder/CardsError/index.d.ts +4 -0
  527. package/build/system/CardsHolderWithSkeleton/CardsHolder/CardsError/index.js +48 -0
  528. package/build/system/CardsHolderWithSkeleton/CardsHolder/CardsNoResults/index.d.ts +4 -0
  529. package/build/system/CardsHolderWithSkeleton/CardsHolder/CardsNoResults/index.js +34 -0
  530. package/build/system/CardsHolderWithSkeleton/CardsHolder/CardsSkeleton/index.d.ts +5 -0
  531. package/build/system/CardsHolderWithSkeleton/CardsHolder/CardsSkeleton/index.js +57 -0
  532. package/build/system/CardsHolderWithSkeleton/CardsHolderLoader/index.d.ts +2 -0
  533. package/build/system/CardsHolderWithSkeleton/CardsHolderLoader/index.js +42 -0
  534. package/build/system/DropDown/DropDown.test.d.ts +1 -0
  535. package/build/system/DropDown/DropDown.test.js +38 -0
  536. package/build/system/DropDown/index.d.ts +8 -0
  537. package/build/system/DropDown/index.js +65 -0
  538. package/build/system/Filters/helpers.d.ts +6 -0
  539. package/build/system/Filters/helpers.js +8 -0
  540. package/build/system/Filters/type.d.ts +16 -0
  541. package/build/system/Filters/type.js +11 -0
  542. package/build/system/Flex/index.d.ts +0 -0
  543. package/build/system/Flex/index.js +1 -0
  544. package/build/system/Forms/Checkbox/Checkbox.test.d.ts +1 -0
  545. package/build/system/Forms/Checkbox/Checkbox.test.js +76 -0
  546. package/build/system/Forms/Checkbox/index.d.ts +22 -0
  547. package/build/system/Forms/Checkbox/index.js +64 -0
  548. package/build/system/Forms/DatePicker/index.d.ts +16 -0
  549. package/build/system/Forms/DatePicker/index.js +137 -0
  550. package/build/system/Forms/ErrorLabel/ErrorLabel.test.d.ts +1 -0
  551. package/build/system/Forms/ErrorLabel/ErrorLabel.test.js +28 -0
  552. package/build/system/Forms/ErrorLabel/index.d.ts +7 -0
  553. package/build/system/Forms/ErrorLabel/index.js +25 -0
  554. package/build/system/Forms/Input/Input.test.d.ts +1 -0
  555. package/build/system/Forms/Input/Input.test.js +54 -0
  556. package/build/system/Forms/Input/index.d.ts +16 -0
  557. package/build/system/Forms/Input/index.js +72 -0
  558. package/build/system/Forms/Input/type.d.ts +5 -0
  559. package/build/system/Forms/Input/type.js +2 -0
  560. package/build/system/Forms/Messages/index.d.ts +67 -0
  561. package/build/system/Forms/Messages/index.js +69 -0
  562. package/build/system/Forms/RadioInput/index.d.ts +12 -0
  563. package/build/system/Forms/RadioInput/index.js +73 -0
  564. package/build/system/Forms/Selects/DesktopSelect/index.d.ts +12 -0
  565. package/build/system/Forms/Selects/DesktopSelect/index.js +184 -0
  566. package/build/system/Forms/Selects/DesktopSelect/type.d.ts +5 -0
  567. package/build/system/Forms/Selects/DesktopSelect/type.js +2 -0
  568. package/build/system/Forms/Selects/MobileSelect/index.d.ts +14 -0
  569. package/build/system/Forms/Selects/MobileSelect/index.js +31 -0
  570. package/build/system/Forms/TextArea/TextArea.test.d.ts +1 -0
  571. package/build/system/Forms/TextArea/TextArea.test.js +54 -0
  572. package/build/system/Forms/TextArea/index.d.ts +14 -0
  573. package/build/system/Forms/TextArea/index.js +70 -0
  574. package/build/system/Forms/index.d.ts +5 -0
  575. package/build/system/Forms/index.js +14 -0
  576. package/build/system/Img/ExternalImage/index.d.ts +6 -0
  577. package/build/system/Img/ExternalImage/index.js +22 -0
  578. package/build/system/Img/ImageInterceptor/ImageInterceptor.test.d.ts +1 -0
  579. package/build/system/Img/ImageInterceptor/ImageInterceptor.test.js +45 -0
  580. package/build/system/Img/ImageInterceptor/index.d.ts +17 -0
  581. package/build/system/Img/ImageInterceptor/index.js +60 -0
  582. package/build/system/Img/Profilepic/index.d.ts +10 -0
  583. package/build/system/Img/Profilepic/index.js +34 -0
  584. package/build/system/Img/Userpic/UserPic.test.d.ts +2 -0
  585. package/build/system/Img/Userpic/UserPic.test.js +65 -0
  586. package/build/system/Img/Userpic/index.d.ts +9 -0
  587. package/build/system/Img/Userpic/index.js +84 -0
  588. package/build/system/Img/index.d.ts +3 -0
  589. package/build/system/Img/index.js +19 -0
  590. package/build/system/Labels/ExperienceLabel/ExperienceLabel.test.d.ts +1 -0
  591. package/build/system/Labels/ExperienceLabel/ExperienceLabel.test.js +52 -0
  592. package/build/system/Labels/ExperienceLabel/index.d.ts +6 -0
  593. package/build/system/Labels/ExperienceLabel/index.js +65 -0
  594. package/build/system/Labels/InviteLabel/InviteLabel.test.d.ts +1 -0
  595. package/build/system/Labels/InviteLabel/InviteLabel.test.js +44 -0
  596. package/build/system/Labels/InviteLabel/index.d.ts +6 -0
  597. package/build/system/Labels/InviteLabel/index.js +44 -0
  598. package/build/system/Labels/SkeletonLabel/index.d.ts +2 -0
  599. package/build/system/Labels/SkeletonLabel/index.js +7 -0
  600. package/build/system/Modals/Modal/Modal.test.d.ts +1 -0
  601. package/build/system/Modals/Modal/Modal.test.js +36 -0
  602. package/build/system/Modals/Modal/index.d.ts +2 -0
  603. package/build/system/Modals/Modal/index.js +82 -0
  604. package/build/system/Modals/ModalSidebar/CreatorModalSidebarPortal.d.ts +1 -0
  605. package/build/system/Modals/ModalSidebar/CreatorModalSidebarPortal.js +47 -0
  606. package/build/system/Modals/ModalSidebar/ModalSidebar.test.d.ts +1 -0
  607. package/build/system/Modals/ModalSidebar/ModalSidebar.test.js +35 -0
  608. package/build/system/Modals/ModalSidebar/ModalSidebarPortal.d.ts +5 -0
  609. package/build/system/Modals/ModalSidebar/ModalSidebarPortal.js +10 -0
  610. package/build/system/Modals/ModalSidebar/index.d.ts +4 -0
  611. package/build/system/Modals/ModalSidebar/index.js +78 -0
  612. package/build/system/Overlay/Overlay.test.d.ts +1 -0
  613. package/build/system/Overlay/Overlay.test.js +44 -0
  614. package/build/system/Overlay/index.d.ts +2 -0
  615. package/build/system/Overlay/index.js +41 -0
  616. package/build/system/PageLoader/index.d.ts +2 -0
  617. package/build/system/PageLoader/index.js +7 -0
  618. package/build/system/Palete/index.d.ts +2 -0
  619. package/build/system/Palete/index.js +7 -0
  620. package/build/system/ShareIconResize.d.ts +1 -0
  621. package/build/system/ShareIconResize.js +31 -0
  622. package/build/system/Tabs/TabNavLink/TabNavLink.test.d.ts +2 -0
  623. package/build/system/Tabs/TabNavLink/TabNavLink.test.js +40 -0
  624. package/build/system/Tabs/TabNavLink/index.d.ts +12 -0
  625. package/build/system/Tabs/TabNavLink/index.js +58 -0
  626. package/build/system/Tabs/TabsNav/TabsNav.test.d.ts +2 -0
  627. package/build/system/Tabs/TabsNav/TabsNav.test.js +43 -0
  628. package/build/system/Tabs/TabsNav/index.d.ts +10 -0
  629. package/build/system/Tabs/TabsNav/index.js +31 -0
  630. package/build/system/Tabs/TabsNav/type.d.ts +6 -0
  631. package/build/system/Tabs/TabsNav/type.js +2 -0
  632. package/build/system/Tabs/TabsPanel/TabsPanel.test.d.ts +2 -0
  633. package/build/system/Tabs/TabsPanel/TabsPanel.test.js +32 -0
  634. package/build/system/Tabs/TabsPanel/index.d.ts +7 -0
  635. package/build/system/Tabs/TabsPanel/index.js +17 -0
  636. package/build/system/Text/index.d.ts +0 -0
  637. package/build/system/Text/index.js +1 -0
  638. package/build/system/index.d.ts +6 -0
  639. package/build/system/index.js +22 -0
  640. package/build/system/theme.d.ts +1 -0
  641. package/build/system/theme.js +7 -0
  642. package/build/utils/3d.d.ts +5 -0
  643. package/build/utils/3d.js +44 -0
  644. package/build/utils/adaptive/check4k.d.ts +5 -0
  645. package/build/utils/adaptive/check4k.js +16 -0
  646. package/build/utils/adaptive/scale.d.ts +9 -0
  647. package/build/utils/adaptive/scale.js +18 -0
  648. package/build/utils/auth/index.d.ts +1 -0
  649. package/build/utils/auth/index.js +9 -0
  650. package/build/utils/copyBtn/index.d.ts +5 -0
  651. package/build/utils/copyBtn/index.js +46 -0
  652. package/build/utils/env/index.d.ts +1 -0
  653. package/build/utils/env/index.js +5 -0
  654. package/build/utils/extractItemIds.d.ts +2 -0
  655. package/build/utils/extractItemIds.js +13 -0
  656. package/build/utils/getDimensionsImage.d.ts +4 -0
  657. package/build/utils/getDimensionsImage.js +38 -0
  658. package/build/utils/getPageSizeAssets.d.ts +5 -0
  659. package/build/utils/getPageSizeAssets.js +17 -0
  660. package/build/utils/imageProportionsSize/index.d.ts +5 -0
  661. package/build/utils/imageProportionsSize/index.js +23 -0
  662. package/build/utils/screen/index.d.ts +18 -0
  663. package/build/utils/screen/index.js +87 -0
  664. package/build/utils/seacrhTabs.d.ts +4 -0
  665. package/build/utils/seacrhTabs.js +17 -0
  666. package/build/utils/ssrFunctions/index.d.ts +17 -0
  667. package/build/utils/ssrFunctions/index.js +33 -0
  668. package/build/utils/ui/index.d.ts +8 -0
  669. package/build/utils/ui/index.js +6 -0
  670. package/package.json +2 -2
@@ -0,0 +1,4 @@
1
+ import { AppProps } from 'next/app';
2
+ import { ApolloClient, NormalizedCacheObject } from '@apollo/client';
3
+ export declare const APOLLO_STATE_PROP_NAME = "__APOLLO_STATE__";
4
+ export declare function addApolloState(client: ApolloClient<NormalizedCacheObject>, pageProps: AppProps['pageProps']): any;
@@ -0,0 +1,11 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.addApolloState = exports.APOLLO_STATE_PROP_NAME = void 0;
4
+ exports.APOLLO_STATE_PROP_NAME = '__APOLLO_STATE__';
5
+ function addApolloState(client, pageProps) {
6
+ if (pageProps?.props) {
7
+ pageProps.props[exports.APOLLO_STATE_PROP_NAME] = client.cache.extract();
8
+ }
9
+ return pageProps;
10
+ }
11
+ exports.addApolloState = addApolloState;
@@ -0,0 +1,7 @@
1
+ import { assetSchema as schema } from '@ludo.ninja/api';
2
+ declare const useDisLikeAsset: () => {
3
+ dislikeAsset: ({ assetId }: schema.IMutationDislikeAssetArgs) => Promise<void>;
4
+ errorDislikeAsset: import("@apollo/client").ApolloError | undefined;
5
+ isDisLiked: boolean;
6
+ };
7
+ export default useDisLikeAsset;
@@ -0,0 +1,32 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const react_1 = require("react");
4
+ const client_1 = require("@apollo/client");
5
+ const api_1 = require("@ludo.ninja/api");
6
+ const useDisLikeAsset = () => {
7
+ const [isDisLiked, setDisLiked] = (0, react_1.useState)(false);
8
+ const [mutate, { error }] = (0, client_1.useMutation)(api_1.assetSchema.DislikeAssetDocument, {
9
+ context: {
10
+ uri: api_1.hosts.assetsHost,
11
+ },
12
+ fetchPolicy: 'no-cache',
13
+ onCompleted: ({ dislikeAsset }) => {
14
+ setDisLiked(dislikeAsset);
15
+ },
16
+ onError: () => {
17
+ setDisLiked(false);
18
+ },
19
+ });
20
+ return { dislikeAsset, errorDislikeAsset: error, isDisLiked };
21
+ async function dislikeAsset({ assetId }) {
22
+ try {
23
+ await mutate({
24
+ variables: { assetId },
25
+ });
26
+ }
27
+ catch (err) {
28
+ throw new Error(err);
29
+ }
30
+ }
31
+ };
32
+ exports.default = useDisLikeAsset;
@@ -0,0 +1,7 @@
1
+ import { assetSchema as schema } from '@ludo.ninja/api';
2
+ declare const useLikeAsset: () => {
3
+ likeAsset: ({ assetId }: schema.IMutationLikeAssetArgs) => Promise<void>;
4
+ errorLikeAsset: import("@apollo/client").ApolloError | undefined;
5
+ isLiked: boolean;
6
+ };
7
+ export default useLikeAsset;
@@ -0,0 +1,33 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const react_1 = require("react");
4
+ const client_1 = require("@apollo/client");
5
+ const api_1 = require("@ludo.ninja/api");
6
+ const useLikeAsset = () => {
7
+ const [isLiked, setLike] = (0, react_1.useState)(false);
8
+ const [mutate, { error }] = (0, client_1.useMutation)(api_1.assetSchema.LikeAssetDocument, {
9
+ context: {
10
+ uri: api_1.hosts.assetsHost,
11
+ },
12
+ fetchPolicy: 'no-cache',
13
+ // refetchQueries: [schema.FetchLikedDocument],
14
+ onCompleted: ({ likeAsset }) => {
15
+ setLike(likeAsset);
16
+ },
17
+ onError: () => {
18
+ setLike(false);
19
+ },
20
+ });
21
+ return { likeAsset, errorLikeAsset: error, isLiked };
22
+ async function likeAsset({ assetId }) {
23
+ try {
24
+ await mutate({
25
+ variables: { assetId },
26
+ });
27
+ }
28
+ catch (err) {
29
+ throw new Error(err);
30
+ }
31
+ }
32
+ };
33
+ exports.default = useLikeAsset;
@@ -0,0 +1,14 @@
1
+ import { ApolloClient, NormalizedCacheObject } from '@apollo/client';
2
+ import { searchSchema as schema } from '@ludo.ninja/api';
3
+ import AssetEntity from '@/dto/AssetEntity';
4
+ declare const prefetchAssetByBlockchain: ({ blockchain, address, elrondId, tokenId, }: schema.IQueryFetchAssetByBlockchainArgs, apolloClient: ApolloClient<NormalizedCacheObject>) => Promise<import("@apollo/client").ApolloQueryResult<any> | {
5
+ data: {
6
+ fetchAssetByBlockchain: null;
7
+ };
8
+ }>;
9
+ declare const useFetchAssetByBlockchain: ({ blockchain, address, elrondId, tokenId, }: schema.IQueryFetchAssetByBlockchainArgs, prefetchedAsset: AssetEntity | null) => {
10
+ clientData: AssetEntity | null;
11
+ loading: boolean;
12
+ error: import("@apollo/client").ApolloError | undefined;
13
+ };
14
+ export { prefetchAssetByBlockchain, useFetchAssetByBlockchain };
@@ -0,0 +1,48 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.useFetchAssetByBlockchain = exports.prefetchAssetByBlockchain = void 0;
7
+ const react_1 = require("react");
8
+ const api_1 = require("@ludo.ninja/api");
9
+ const type_1 = require("@ludo.ninja/ui/build/system/Alert/type");
10
+ const ui_1 = require("@/store/ui");
11
+ const AssetEntity_1 = __importDefault(require("@/dto/AssetEntity"));
12
+ const prefetchAssetByBlockchain = async ({ blockchain, address, elrondId, tokenId, }, apolloClient) => {
13
+ return apolloClient
14
+ .query({
15
+ query: api_1.searchSchema.FetchAssetByBlockchainDocument,
16
+ variables: { blockchain, address, elrondId, tokenId },
17
+ context: { uri: api_1.hosts.serverSearchHost }, // faster service assets for production,
18
+ fetchPolicy: 'network-only',
19
+ })
20
+ .catch(() => {
21
+ return {
22
+ data: { fetchAssetByBlockchain: null },
23
+ };
24
+ });
25
+ };
26
+ exports.prefetchAssetByBlockchain = prefetchAssetByBlockchain;
27
+ const useFetchAssetByBlockchain = ({ blockchain, address, elrondId, tokenId, }, prefetchedAsset) => {
28
+ const [asset, setAsset] = (0, react_1.useState)(prefetchedAsset);
29
+ const openAlert = (0, ui_1.useUiStore)((state) => state.openAlert);
30
+ const { loading, error } = api_1.searchSchema.useFetchAssetByBlockchainQuery({
31
+ variables: { blockchain, address, elrondId, tokenId },
32
+ context: {
33
+ uri: api_1.hosts.searchHost,
34
+ },
35
+ onCompleted: ({ fetchAssetByBlockchain }) => {
36
+ setAsset(new AssetEntity_1.default(fetchAssetByBlockchain));
37
+ },
38
+ onError: () => {
39
+ openAlert({
40
+ type: type_1.alertVariants.error,
41
+ caption: 'Oops, something went wrong.',
42
+ });
43
+ setAsset(null);
44
+ },
45
+ });
46
+ return { clientData: asset, loading, error };
47
+ };
48
+ exports.useFetchAssetByBlockchain = useFetchAssetByBlockchain;
@@ -0,0 +1,7 @@
1
+ import { searchSchema as schema } from '@ludo.ninja/api';
2
+ declare const useFetchAssetsByIds: ({ assetIds }: schema.IQueryFetchAssetsArgs) => (import("@apollo/client").LazyQueryExecFunction<any, import("@apollo/client").OperationVariables> | {
3
+ clientData: schema.IAsset | null;
4
+ loading: boolean;
5
+ error: import("@apollo/client").ApolloError | undefined;
6
+ })[];
7
+ export { useFetchAssetsByIds };
@@ -0,0 +1,31 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.useFetchAssetsByIds = void 0;
4
+ const react_1 = require("react");
5
+ const client_1 = require("@apollo/client");
6
+ const api_1 = require("@ludo.ninja/api");
7
+ const type_1 = require("@ludo.ninja/ui/build/system/Alert/type");
8
+ const ui_1 = require("@/store/ui");
9
+ const useFetchAssetsByIds = ({ assetIds }) => {
10
+ const [assets, setAsset] = (0, react_1.useState)(null);
11
+ const openAlert = (0, ui_1.useUiStore)((state) => state.openAlert);
12
+ const [getAssets, { loading, error }] = (0, client_1.useLazyQuery)(api_1.searchSchema.FetchAssetsDocument, {
13
+ variables: { assetIds },
14
+ context: {
15
+ uri: api_1.hosts.searchHost,
16
+ },
17
+ fetchPolicy: 'cache-first',
18
+ onCompleted: ({ fetchAssets: data }) => {
19
+ setAsset(data);
20
+ },
21
+ onError: () => {
22
+ openAlert({
23
+ type: type_1.alertVariants.error,
24
+ caption: 'Oops, something went wrong.',
25
+ });
26
+ setAsset(null);
27
+ },
28
+ });
29
+ return [getAssets, { clientData: assets, loading, error }];
30
+ };
31
+ exports.useFetchAssetsByIds = useFetchAssetsByIds;
@@ -0,0 +1,8 @@
1
+ import { searchSchema as schema } from '@ludo.ninja/api';
2
+ declare const useFetchDynamicAssetLikes: ({ assetId, }: schema.IQueryFetchDynamicAssetDataArgs) => {
3
+ likesByUser: number;
4
+ isLikedByUser: boolean;
5
+ loading: boolean;
6
+ error: import("@apollo/client").ApolloError | undefined;
7
+ };
8
+ export default useFetchDynamicAssetLikes;
@@ -0,0 +1,35 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const react_1 = require("react");
4
+ const client_1 = require("@apollo/client");
5
+ const api_1 = require("@ludo.ninja/api");
6
+ const type_1 = require("@ludo.ninja/ui/build/system/Alert/type");
7
+ const ui_1 = require("@/store/ui");
8
+ const useFetchDynamicAssetLikes = ({ assetId, }) => {
9
+ const [isLikedByUser, setLikedByUser] = (0, react_1.useState)(false);
10
+ const [likesByUser, setLikesByUser] = (0, react_1.useState)(0);
11
+ const [loading, setLoading] = (0, react_1.useState)(true);
12
+ const openAlert = (0, ui_1.useUiStore)((state) => state.openAlert);
13
+ const { error } = (0, client_1.useQuery)(api_1.searchSchema.FetchDynamicAssetLikesDocument, {
14
+ variables: { assetId },
15
+ context: {
16
+ uri: api_1.hosts.searchHost,
17
+ },
18
+ fetchPolicy: 'no-cache',
19
+ onCompleted: ({ fetchDynamicAssetData: data }) => {
20
+ setLikedByUser(data.isLikedByUser ? data.isLikedByUser : false);
21
+ setLikesByUser(data.likesNum);
22
+ setLoading(false);
23
+ },
24
+ onError: () => {
25
+ openAlert({
26
+ type: type_1.alertVariants.error,
27
+ caption: 'Oops, something went wrong.',
28
+ });
29
+ setLikedByUser(false);
30
+ setLoading(false);
31
+ },
32
+ });
33
+ return { likesByUser, isLikedByUser, loading, error };
34
+ };
35
+ exports.default = useFetchDynamicAssetLikes;
@@ -0,0 +1,7 @@
1
+ import { searchSchema as schema } from '@ludo.ninja/api';
2
+ declare const useFetchDynamicAssetsLikes: ({ assetIds, }: schema.IQueryFetchDynamicAssetsDataArgs) => {
3
+ infoAssetsLikes: schema.IDynamicAssetData[] | null;
4
+ loading: boolean;
5
+ error: import("@apollo/client").ApolloError | undefined;
6
+ };
7
+ export default useFetchDynamicAssetsLikes;
@@ -0,0 +1,30 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const react_1 = require("react");
4
+ const client_1 = require("@apollo/client");
5
+ const api_1 = require("@ludo.ninja/api");
6
+ const type_1 = require("@ludo.ninja/ui/build/system/Alert/type");
7
+ const ui_1 = require("@/store/ui");
8
+ const useFetchDynamicAssetsLikes = ({ assetIds, }) => {
9
+ const [infoAssetsLikes, setInfoAssetsLikes] = (0, react_1.useState)(null);
10
+ const openAlert = (0, ui_1.useUiStore)((state) => state.openAlert);
11
+ const { loading, error } = (0, client_1.useQuery)(api_1.searchSchema.FetchDynamicAssetsLikesDocument, {
12
+ variables: { assetIds },
13
+ context: {
14
+ uri: api_1.hosts.searchHost,
15
+ },
16
+ fetchPolicy: 'no-cache',
17
+ onCompleted: ({ fetchDynamicAssetsData: data }) => {
18
+ setInfoAssetsLikes(data);
19
+ },
20
+ onError: () => {
21
+ openAlert({
22
+ type: type_1.alertVariants.error,
23
+ caption: 'Oops, something went wrong.',
24
+ });
25
+ setInfoAssetsLikes(null);
26
+ },
27
+ });
28
+ return { infoAssetsLikes, loading, error };
29
+ };
30
+ exports.default = useFetchDynamicAssetsLikes;
@@ -0,0 +1,7 @@
1
+ import { collectionsSchema as schema } from '@ludo.ninja/api';
2
+ declare const useDislikeCollection: () => {
3
+ dislikeCollection: ({ collectionId, }: schema.IMutationDislikeCollectionArgs) => Promise<void>;
4
+ errorDislikeCollection: import("@apollo/client").ApolloError | undefined;
5
+ isDisLiked: boolean;
6
+ };
7
+ export default useDislikeCollection;
@@ -0,0 +1,31 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const react_1 = require("react");
4
+ const client_1 = require("@apollo/client");
5
+ const api_1 = require("@ludo.ninja/api");
6
+ const useDislikeCollection = () => {
7
+ const [isDisLiked, setDisLiked] = (0, react_1.useState)(false);
8
+ const [mutate, { error }] = (0, client_1.useMutation)(api_1.collectionsSchema.DislikeCollectionDocument, {
9
+ context: {
10
+ uri: api_1.hosts.collectionsHost,
11
+ },
12
+ onCompleted: ({ dislikeCollection }) => {
13
+ setDisLiked(dislikeCollection);
14
+ },
15
+ onError: () => {
16
+ setDisLiked(false);
17
+ },
18
+ });
19
+ return { dislikeCollection, errorDislikeCollection: error, isDisLiked };
20
+ async function dislikeCollection({ collectionId, }) {
21
+ try {
22
+ await mutate({
23
+ variables: { collectionId },
24
+ });
25
+ }
26
+ catch (err) {
27
+ throw new Error(err);
28
+ }
29
+ }
30
+ };
31
+ exports.default = useDislikeCollection;
@@ -0,0 +1,7 @@
1
+ import { collectionsSchema as schema } from '@ludo.ninja/api';
2
+ declare const useLikeCollection: () => {
3
+ likeCollection: ({ collectionId, }: schema.IMutationLikeCollectionArgs) => Promise<void>;
4
+ errorLikeCollection: import("@apollo/client").ApolloError | undefined;
5
+ isLiked: boolean;
6
+ };
7
+ export default useLikeCollection;
@@ -0,0 +1,31 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const react_1 = require("react");
4
+ const client_1 = require("@apollo/client");
5
+ const api_1 = require("@ludo.ninja/api");
6
+ const useLikeCollection = () => {
7
+ const [isLiked, setLike] = (0, react_1.useState)(false);
8
+ const [mutate, { error }] = (0, client_1.useMutation)(api_1.collectionsSchema.LikeCollectionDocument, {
9
+ context: {
10
+ uri: api_1.hosts.collectionsHost,
11
+ },
12
+ onCompleted: ({ likeCollection }) => {
13
+ setLike(likeCollection);
14
+ },
15
+ onError: () => {
16
+ setLike(false);
17
+ },
18
+ });
19
+ return { likeCollection, errorLikeCollection: error, isLiked };
20
+ async function likeCollection({ collectionId, }) {
21
+ try {
22
+ await mutate({
23
+ variables: { collectionId },
24
+ });
25
+ }
26
+ catch (err) {
27
+ throw new Error(err);
28
+ }
29
+ }
30
+ };
31
+ exports.default = useLikeCollection;
@@ -0,0 +1,2 @@
1
+ declare const useFetchMyExperienceWithLevel: () => void;
2
+ export default useFetchMyExperienceWithLevel;
@@ -0,0 +1,84 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const react_1 = require("react");
4
+ const router_1 = require("next/router");
5
+ const client_1 = require("@apollo/client");
6
+ const api_1 = require("@ludo.ninja/api");
7
+ const type_1 = require("@ludo.ninja/ui/build/system/Alert/type");
8
+ const store_1 = require("@/modules/user/store");
9
+ const ui_1 = require("@/store/ui");
10
+ const notifications_1 = require("@/modules/notifications");
11
+ const useFetchMyExperienceWithLevel = () => {
12
+ const { user, isSignedIn, setUserExp, resetUserExp, setErrorExp, setIsLoadingExp, } = (0, store_1.useUserStore)((state) => ({
13
+ user: state.user,
14
+ isSignedIn: state.isSignedIn,
15
+ setUserExp: state.setUserExp,
16
+ resetUserExp: state.resetUserExp,
17
+ setErrorExp: state.setErrorExp,
18
+ setIsLoadingExp: state.setIsLoadingExp,
19
+ }));
20
+ const { openAlert, addNotification } = (0, ui_1.useUiStore)((state) => ({
21
+ openAlert: state.openAlert,
22
+ addNotification: state.addNotification,
23
+ }));
24
+ const router = (0, router_1.useRouter)();
25
+ const userId = user?.userId || '';
26
+ const [fetchExp, { subscribeToMore }] = (0, client_1.useLazyQuery)(api_1.experiencesSchema.FetchMyExperienceV2Document, {
27
+ context: {
28
+ uri: api_1.hosts.experiencesHost,
29
+ },
30
+ onCompleted: ({ fetchMyExperienceV2: { xps, level, levelMaxXps, levelMinXps }, }) => {
31
+ setIsLoadingExp(false);
32
+ setUserExp({
33
+ xps,
34
+ level,
35
+ levelMaxXps,
36
+ levelMinXps,
37
+ });
38
+ subscribe();
39
+ },
40
+ onError: (err) => {
41
+ openAlert({
42
+ type: type_1.alertVariants.error,
43
+ caption: err.message,
44
+ });
45
+ resetUserExp();
46
+ setErrorExp(err);
47
+ setIsLoadingExp(false);
48
+ },
49
+ });
50
+ const subscribe = () => {
51
+ const { authToken } = api_1.authCookies.getCookies();
52
+ subscribeToMore({
53
+ variables: { authToken },
54
+ document: api_1.experiencesSchema.OnMyExperienceIncrementedDocument,
55
+ updateQuery: (prev, { subscriptionData: { data } }) => {
56
+ if (!data)
57
+ return prev;
58
+ const { xps, level, levelMaxXps, levelMinXps, xpsIncrement, description, } = data.onMyExperienceIncremented;
59
+ if (xpsIncrement) {
60
+ addNotification((0, notifications_1.createXpNotification)({
61
+ xpsIncrement,
62
+ ...(description ? { description } : {}),
63
+ onClick: () => {
64
+ router.push(`/rewards/${userId}`);
65
+ },
66
+ }));
67
+ }
68
+ setUserExp({
69
+ xps,
70
+ level,
71
+ levelMaxXps,
72
+ levelMinXps,
73
+ });
74
+ },
75
+ });
76
+ };
77
+ (0, react_1.useEffect)(() => {
78
+ if (isSignedIn) {
79
+ setIsLoadingExp(true);
80
+ fetchExp();
81
+ }
82
+ }, [isSignedIn]);
83
+ };
84
+ exports.default = useFetchMyExperienceWithLevel;
@@ -0,0 +1,31 @@
1
+ import { ApolloClient, NormalizedCacheObject } from '@apollo/client';
2
+ import { experiencesSchema as schema } from '@ludo.ninja/api';
3
+ export declare const prefetchMyTasks: (apolloClient: ApolloClient<NormalizedCacheObject>) => Promise<import("@apollo/client").ApolloQueryResult<any> | {
4
+ data: {
5
+ fetchMyTasks: null;
6
+ };
7
+ }>;
8
+ export declare const useFetchMyTasks: ({ prefetchedMyTasks, }: {
9
+ prefetchedMyTasks: schema.ITask[] | null;
10
+ }) => {
11
+ loadingMyTasks: boolean;
12
+ errorMyTasks: import("@apollo/client").ApolloError | undefined;
13
+ data: any;
14
+ clientMyTasksData: schema.ITask[] | null;
15
+ };
16
+ declare const _default: {
17
+ useFetchMyTasks: ({ prefetchedMyTasks, }: {
18
+ prefetchedMyTasks: schema.ITask[] | null;
19
+ }) => {
20
+ loadingMyTasks: boolean;
21
+ errorMyTasks: import("@apollo/client").ApolloError | undefined;
22
+ data: any;
23
+ clientMyTasksData: schema.ITask[] | null;
24
+ };
25
+ prefetchMyTasks: (apolloClient: ApolloClient<NormalizedCacheObject>) => Promise<import("@apollo/client").ApolloQueryResult<any> | {
26
+ data: {
27
+ fetchMyTasks: null;
28
+ };
29
+ }>;
30
+ };
31
+ export default _default;
@@ -0,0 +1,49 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.useFetchMyTasks = exports.prefetchMyTasks = void 0;
4
+ const react_1 = require("react");
5
+ const client_1 = require("@apollo/client");
6
+ const api_1 = require("@ludo.ninja/api");
7
+ const type_1 = require("@ludo.ninja/ui/build/system/Alert/type");
8
+ const ui_1 = require("@/store/ui");
9
+ const prefetchMyTasks = (apolloClient) => {
10
+ return apolloClient
11
+ .query({
12
+ query: api_1.experiencesSchema.FetchMyTasksDocument,
13
+ context: { uri: api_1.hosts.serverExperiencesHost },
14
+ fetchPolicy: 'network-only',
15
+ })
16
+ .catch(() => {
17
+ return {
18
+ data: { fetchMyTasks: null },
19
+ };
20
+ });
21
+ };
22
+ exports.prefetchMyTasks = prefetchMyTasks;
23
+ const useFetchMyTasks = ({ prefetchedMyTasks, }) => {
24
+ const [myTasks, setMyTasks] = (0, react_1.useState)(prefetchedMyTasks);
25
+ const openAlert = (0, ui_1.useUiStore)((state) => state.openAlert);
26
+ const { data, error, loading } = (0, client_1.useQuery)(api_1.experiencesSchema.FetchMyTasksDocument, {
27
+ context: {
28
+ uri: api_1.hosts.experiencesHost,
29
+ },
30
+ onCompleted: ({ fetchMyTasks }) => {
31
+ setMyTasks(fetchMyTasks);
32
+ },
33
+ onError: (err) => {
34
+ openAlert({
35
+ type: type_1.alertVariants.error,
36
+ caption: err.message,
37
+ });
38
+ setMyTasks([]);
39
+ },
40
+ });
41
+ return {
42
+ loadingMyTasks: loading,
43
+ errorMyTasks: error,
44
+ data,
45
+ clientMyTasksData: myTasks,
46
+ };
47
+ };
48
+ exports.useFetchMyTasks = useFetchMyTasks;
49
+ exports.default = { useFetchMyTasks: exports.useFetchMyTasks, prefetchMyTasks: exports.prefetchMyTasks };
@@ -0,0 +1,7 @@
1
+ import { galleriesSchema as schema } from '@ludo.ninja/api';
2
+ declare const useAddAssetsToGalleryV2: () => {
3
+ addAssetsToGallery: ({ galleryId, assetIds, }: schema.IMutationAddAssetsToGalleryV2Args) => Promise<void>;
4
+ error: import("@apollo/client").ApolloError | undefined;
5
+ isAdded: boolean;
6
+ };
7
+ export { useAddAssetsToGalleryV2 };
@@ -0,0 +1,36 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.useAddAssetsToGalleryV2 = void 0;
4
+ const react_1 = require("react");
5
+ const client_1 = require("@apollo/client");
6
+ const api_1 = require("@ludo.ninja/api");
7
+ const useAddAssetsToGalleryV2 = () => {
8
+ const [isAdded, setAdd] = (0, react_1.useState)(false);
9
+ const [mutate, { error }] = (0, client_1.useMutation)(api_1.galleriesSchema.AddAssetsToGalleryV2Document, {
10
+ context: {
11
+ uri: api_1.hosts.galleriesHost,
12
+ },
13
+ fetchPolicy: 'no-cache',
14
+ onCompleted: ({ addAssetsToGalleryV2 }) => {
15
+ setAdd(addAssetsToGalleryV2);
16
+ },
17
+ notifyOnNetworkStatusChange: true,
18
+ refetchQueries: [
19
+ api_1.galleriesSchema.FetchUserFavoritesV2Document,
20
+ api_1.galleriesSchema.FetchUserGalleriesV2Document,
21
+ ],
22
+ // onError: (err) => console.log(err),
23
+ });
24
+ return { addAssetsToGallery, error, isAdded };
25
+ async function addAssetsToGallery({ galleryId, assetIds, }) {
26
+ try {
27
+ await mutate({
28
+ variables: { galleryId, assetIds },
29
+ });
30
+ }
31
+ catch (err) {
32
+ throw new Error(err);
33
+ }
34
+ }
35
+ };
36
+ exports.useAddAssetsToGalleryV2 = useAddAssetsToGalleryV2;
@@ -0,0 +1,4 @@
1
+ import { mediasSchema as schema } from '@ludo.ninja/api';
2
+ export declare const useAddChangeGalleryBanner: () => {
3
+ addBanner: ({ galleryId, file, }: schema.IMutationUploadGalleryBannerArgs) => Promise<import("@apollo/client").FetchResult<any>>;
4
+ };
@@ -0,0 +1,30 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.useAddChangeGalleryBanner = void 0;
4
+ const client_1 = require("@apollo/client");
5
+ const api_1 = require("@ludo.ninja/api");
6
+ const type_1 = require("@ludo.ninja/ui/build/system/Alert/type");
7
+ const ui_1 = require("@/store/ui");
8
+ const useAddChangeGalleryBanner = () => {
9
+ const openAlert = (0, ui_1.useUiStore)((state) => state.openAlert);
10
+ const [mutate] = (0, client_1.useMutation)(api_1.mediasSchema.UploadGalleryBannerDocument, {
11
+ context: {
12
+ uri: api_1.hosts.mediasHost,
13
+ },
14
+ fetchPolicy: 'no-cache',
15
+ onCompleted: () => {
16
+ openAlert({
17
+ type: type_1.alertVariants.success,
18
+ caption: 'Banner successfully added!',
19
+ text: '',
20
+ });
21
+ },
22
+ });
23
+ async function addBanner({ galleryId, file, }) {
24
+ return mutate({
25
+ variables: { galleryId, file },
26
+ });
27
+ }
28
+ return { addBanner };
29
+ };
30
+ exports.useAddChangeGalleryBanner = useAddChangeGalleryBanner;
@@ -0,0 +1,7 @@
1
+ import { galleriesSchema as schema } from '@ludo.ninja/api';
2
+ declare const useAddCollectionsToGalleryV2: () => {
3
+ addCollectionToGallery: ({ galleryId, collectionIds, }: schema.IMutationAddCollectionsToGalleryV2Args) => Promise<void>;
4
+ error: import("@apollo/client").ApolloError | undefined;
5
+ isAdded: boolean;
6
+ };
7
+ export { useAddCollectionsToGalleryV2 };