@ludo.ninja/components 1.0.8 → 1.1.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 (153) hide show
  1. package/dist/hooks/likes/useGetLikesAsset.js +140 -305
  2. package/dist/index.js +1 -0
  3. package/dist/modules/index.js +3 -0
  4. package/dist/modules/sessionScroll/index.js +33 -43
  5. package/dist/modules/user/auth/index.js +1 -0
  6. package/dist/modules/user/index.js +3 -0
  7. package/dist/modules/user/profileData/index.js +1 -0
  8. package/dist/store/index.js +4 -5
  9. package/dist/types/api/server-search/queries/useFetchCollections/index.d.ts +13 -23
  10. package/dist/types/api/server-search/queries/useFetchDynamicCollectionData/index.d.ts +9 -13
  11. package/dist/types/components/CreationCard/CardHead.d.ts +10 -22
  12. package/dist/types/components/CreationCard/index.d.ts +18 -39
  13. package/dist/types/components/addWalletsRedirectPage/index.d.ts +2 -5
  14. package/dist/types/components/assetPage/assetLikes/index.d.ts +4 -9
  15. package/dist/types/components/assetPage/assetNft/index.d.ts +1 -5
  16. package/dist/types/components/assetPage/assetWrapper/index.d.ts +5 -12
  17. package/dist/types/components/assetPage/audioVideoPlayer/Duration.d.ts +1 -2
  18. package/dist/types/components/assetPage/audioVideoPlayer/index.d.ts +87 -99
  19. package/dist/types/components/assetPage/category/index.d.ts +2 -5
  20. package/dist/types/components/assetPage/description/index.d.ts +1 -5
  21. package/dist/types/components/assetPage/detailsAccordeon/index.d.ts +2 -6
  22. package/dist/types/components/assetPage/figCaption/index.d.ts +2 -6
  23. package/dist/types/components/assetPage/information/index.d.ts +2 -6
  24. package/dist/types/components/assetPage/moreDropDown/index.d.ts +4 -5
  25. package/dist/types/components/assetPage/participants/index.d.ts +5 -12
  26. package/dist/types/components/assetPage/priceRank/index.d.ts +5 -11
  27. package/dist/types/components/assetPage/properties/index.d.ts +1 -5
  28. package/dist/types/components/assetPage/slider/index.d.ts +2 -7
  29. package/dist/types/components/assetPage/tittle/index.d.ts +5 -12
  30. package/dist/types/components/assetPage/viewer3D/index.d.ts +4 -10
  31. package/dist/types/components/collectionPage/collectionLike/index.d.ts +4 -9
  32. package/dist/types/components/deleteDialog/index.d.ts +5 -11
  33. package/dist/types/components/editProfile/UserPicProfile/index.d.ts +2 -5
  34. package/dist/types/components/favoriteList/add/addAssetToFavoriteList/index.d.ts +1 -2
  35. package/dist/types/components/favoriteList/add/addCollectionToFavoriteList/index.d.ts +1 -2
  36. package/dist/types/components/favoriteList/add/addCreationToFavoriteList/index.d.ts +2 -3
  37. package/dist/types/components/filters/index.d.ts +7 -23
  38. package/dist/types/components/forms/form/index.d.ts +8 -10
  39. package/dist/types/components/forms/formsNavigation/index.d.ts +0 -1
  40. package/dist/types/components/forms/formsTemplate/index.d.ts +6 -9
  41. package/dist/types/components/gallery/add/addAssetToGallery/index.d.ts +1 -2
  42. package/dist/types/components/gallery/add/addCreationToGallery/index.d.ts +0 -1
  43. package/dist/types/components/gradientLabel/index.d.ts +0 -1
  44. package/dist/types/components/headers/headerSearch/index.d.ts +0 -1
  45. package/dist/types/components/headers/headerSimple/index.d.ts +0 -1
  46. package/dist/types/components/inviteCodesPage/components/index.d.ts +0 -1
  47. package/dist/types/components/inviteCodesPage/components/inviteCodes/inviteCode/index.d.ts +3 -8
  48. package/dist/types/components/inviteCodesPage/components/inviteCodes/inviteCodeCaption/index.d.ts +4 -9
  49. package/dist/types/components/inviteCodesPage/components/inviteCodes/inviteCodeCopy/index.d.ts +2 -6
  50. package/dist/types/components/inviteCodesPage/components/inviteCodes/inviteCodeDate/index.d.ts +2 -5
  51. package/dist/types/components/inviteCodesPage/wrappers/index.d.ts +0 -1
  52. package/dist/types/components/inviteCodesPage/wrappers/resumeCodes/index.d.ts +5 -11
  53. package/dist/types/components/inviteCodesPage/wrappers/unusedCodes/index.d.ts +3 -8
  54. package/dist/types/components/inviteCodesPage/wrappers/usedCodes/index.d.ts +3 -8
  55. package/dist/types/components/linkTabs/linkTab/index.d.ts +5 -11
  56. package/dist/types/components/myWallets/index.d.ts +0 -1
  57. package/dist/types/components/navigation/index.d.ts +3 -4
  58. package/dist/types/components/profile/ProfileTabs.d.ts +5 -11
  59. package/dist/types/components/profile/aboutText/index.d.ts +2 -21
  60. package/dist/types/components/profile/addToGalleryBtns/index.d.ts +2 -5
  61. package/dist/types/components/profile/followersSocial/followers/index.d.ts +3 -7
  62. package/dist/types/components/profile/info/index.d.ts +2 -6
  63. package/dist/types/components/profile/profileUserCards/profileUserCard/index.d.ts +7 -16
  64. package/dist/types/components/profile/rank/index.d.ts +1 -5
  65. package/dist/types/components/profile/wallets/index.d.ts +0 -1
  66. package/dist/types/components/profile/wrapper/index.d.ts +4 -10
  67. package/dist/types/components/registrationPage/registrationSelection/index.d.ts +10 -12
  68. package/dist/types/components/rewards/FAQ/index.d.ts +0 -1
  69. package/dist/types/components/rewards/clarifications/index.d.ts +6 -8
  70. package/dist/types/components/rewards/logoBottom/index.d.ts +1 -1
  71. package/dist/types/components/rewards/seasonBanner/index.d.ts +3 -5
  72. package/dist/types/components/rewards/taskExpTab/index.d.ts +10 -21
  73. package/dist/types/components/rewards/tasksGrid/index.d.ts +3 -6
  74. package/dist/types/components/rewards/userExp/index.d.ts +8 -17
  75. package/dist/types/components/search/SearchInputContainer.d.ts +21 -35
  76. package/dist/types/components/search/index.d.ts +0 -1
  77. package/dist/types/components/search/searchCloseMoreButtons/index.d.ts +9 -14
  78. package/dist/types/components/search/searchSimpleInput/index.d.ts +2 -5
  79. package/dist/types/components/shareDialog/index.d.ts +29 -33
  80. package/dist/types/components/sidebar/index.d.ts +0 -1
  81. package/dist/types/components/sidebar/initializer.d.ts +1 -1
  82. package/dist/types/components/socialButtons/index.d.ts +0 -1
  83. package/dist/types/components/toTopBtn/index.d.ts +2 -5
  84. package/dist/types/dto/AssetEntity/views/AssetAudio/index.d.ts +3 -11
  85. package/dist/types/dto/AssetEntity/views/AssetObject/index.d.ts +5 -14
  86. package/dist/types/dto/AssetEntity/views/AssetVideo/index.d.ts +3 -11
  87. package/dist/types/dto/Collection/CollectionCreationEntity/index.d.ts +37 -39
  88. package/dist/types/dto/CreationEntity/index.d.ts +41 -43
  89. package/dist/types/dto/common/ItemViews/CreationAudio/index.d.ts +3 -11
  90. package/dist/types/dto/common/ItemViews/CreationObject/index.d.ts +2 -10
  91. package/dist/types/hooks/favorites/useGetFavoriteGallaryCreations/index.d.ts +16 -23
  92. package/dist/types/hooks/favorites/useGetUserFevoritesCreations/index.d.ts +17 -28
  93. package/dist/types/hooks/galleries/useGetUserGalleriesCreations/index.d.ts +17 -26
  94. package/dist/types/hooks/likes/dynamic/useGetCollectionInfoAndLikes.d.ts +11 -18
  95. package/dist/types/hooks/likes/dynamic/useGetMixedLikesFavoriteList.d.ts +13 -18
  96. package/dist/types/hooks/likes/dynamic/useGetTableLikes.d.ts +9 -19
  97. package/dist/types/hooks/likes/index.d.ts +12 -20
  98. package/dist/types/hooks/likes/useGetLikesAsset.d.ts +8 -20
  99. package/dist/types/hooks/useToGalleryAsset/index.d.ts +12 -21
  100. package/dist/types/index.d.ts +1 -0
  101. package/dist/types/layouts/GlobalLayout.d.ts +2 -5
  102. package/dist/types/layouts/base/LWithRegularHeader/index.d.ts +0 -1
  103. package/dist/types/layouts/base/LWithRegularHeader/type.d.ts +1 -3
  104. package/dist/types/layouts/base/LWithSearchHeader/index.d.ts +0 -1
  105. package/dist/types/layouts/base/LWithSearchHeader/type.d.ts +1 -3
  106. package/dist/types/layouts/base/LWithSimpleHeader/index.d.ts +0 -1
  107. package/dist/types/layouts/base/LWithSimpleHeader/type.d.ts +1 -3
  108. package/dist/types/layouts/base/LWithoutHeader/index.d.ts +0 -1
  109. package/dist/types/layouts/custom/accountLayout/index.d.ts +0 -1
  110. package/dist/types/layouts/custom/formsLayout/index.d.ts +0 -1
  111. package/dist/types/layouts/custom/mainLayout/index.d.ts +0 -1
  112. package/dist/types/layouts/custom/searchLayout/index.d.ts +0 -1
  113. package/dist/types/layouts/custom/simpleLayout/index.d.ts +0 -1
  114. package/dist/types/layouts/pageWithLayout.d.ts +3 -10
  115. package/dist/types/modules/gallery/ui/AllResults.d.ts +2 -5
  116. package/dist/types/modules/gallery/ui/EditGallery.d.ts +7 -18
  117. package/dist/types/modules/gallery/ui/GalleryDeleteIcon.d.ts +3 -7
  118. package/dist/types/modules/gallery/ui/chooseGalleryItems/index.d.ts +10 -15
  119. package/dist/types/modules/gallery/ui/itemsPreview/index.d.ts +13 -27
  120. package/dist/types/modules/index.d.ts +3 -0
  121. package/dist/types/modules/sessionScroll/index.d.ts +7 -10
  122. package/dist/types/modules/sessionScroll/useVirtuosoInitialScroll.d.ts +6 -14
  123. package/dist/types/modules/user/auth/index.d.ts +1 -0
  124. package/dist/types/modules/user/index.d.ts +3 -0
  125. package/dist/types/modules/user/profileData/index.d.ts +1 -0
  126. package/dist/types/modules/virtuoso/VirtuosoPageBuilder.d.ts +14 -32
  127. package/dist/types/modules/virtuoso/VirtuosoToTopBtn.d.ts +5 -9
  128. package/dist/types/modules/virtuoso/types.d.ts +2 -3
  129. package/dist/types/modules/virtuoso/useVirtuosoData.d.ts +8 -16
  130. package/dist/types/store/index.d.ts +7 -14
  131. package/dist/types/system/Cards/CardContent/CardLikes/index.d.ts +3 -7
  132. package/dist/types/system/Cards/CardHeadIcons/index.d.ts +10 -24
  133. package/dist/types/system/Cards/CardMedia/CardAudio/index.d.ts +5 -11
  134. package/dist/types/system/Cards/CardRank/index.d.ts +3 -2
  135. package/dist/types/system/Cards/CardsGrid/index.d.ts +9 -19
  136. package/dist/types/system/Cards/MultiMediaCard/index.d.ts +4 -10
  137. package/dist/types/system/Cards/RegularCard/index.d.ts +14 -28
  138. package/dist/types/system/CardsHolderWithSkeleton/CardsHolder/index.d.ts +13 -20
  139. package/dist/types/system/CardsHolderWithSkeleton/CardsHolderLoader/index.d.ts +0 -1
  140. package/dist/types/system/CardsHolderWithSkeleton/index.d.ts +20 -27
  141. package/dist/types/system/Forms/Selects/DesktopSelect/index.d.ts +6 -15
  142. package/dist/types/system/Img/Profilepic/index.d.ts +4 -6
  143. package/dist/types/system/ShareIconResize.d.ts +1 -1
  144. package/dist/types/utils/adaptive/check4k.d.ts +3 -7
  145. package/dist/types/utils/adaptive/scale.d.ts +8 -14
  146. package/dist/types/utils/copyBtn/index.d.ts +3 -8
  147. package/dist/types/utils/extractItemIds/index.d.ts +1 -4
  148. package/dist/types/utils/getPageSizeAssets.d.ts +3 -6
  149. package/dist/types/utils/screen/index.d.ts +9 -9
  150. package/package.json +1 -1
  151. package/src/index.ts +1 -0
  152. package/src/modules/user/index.ts +1 -1
  153. package/src/store/index.ts +2 -0
@@ -1,37 +1,19 @@
1
1
  import React, { ReactNode } from 'react';
2
-
3
2
  import { ApolloError } from '@apollo/client';
4
-
5
3
  import { TActiveTab } from '@/system/Tabs/TabsNav/type';
6
-
7
4
  import { TDimensions } from '@/utils/screen';
8
-
9
- export declare const VirtuosoPageBuilder: <TCreation>({
10
- activeTab,
11
- isMobile,
12
- creations,
13
- windowDimensions,
14
- isLoading,
15
- error,
16
- refetchQuery,
17
- loadMore,
18
- renderCreation,
19
- notFoundText,
20
- isNextLoading,
21
- headerSlot,
22
- isProfileCards,
23
- }: {
24
- activeTab: TActiveTab;
25
- isMobile: boolean;
26
- creations: TCreation[];
27
- windowDimensions: TDimensions | null;
28
- isLoading: boolean;
29
- isNextLoading: boolean;
30
- error: ApolloError | undefined;
31
- refetchQuery: () => Promise<void>;
32
- loadMore: () => Promise<void>;
33
- renderCreation: (creation: TCreation) => ReactNode;
34
- notFoundText?: string | undefined;
35
- headerSlot: JSX.Element;
36
- isProfileCards?: boolean | undefined;
5
+ export declare const VirtuosoPageBuilder: <TCreation>({ activeTab, isMobile, creations, windowDimensions, isLoading, error, refetchQuery, loadMore, renderCreation, notFoundText, isNextLoading, headerSlot, isProfileCards, }: {
6
+ activeTab: TActiveTab;
7
+ isMobile: boolean;
8
+ creations: TCreation[];
9
+ windowDimensions: TDimensions | null;
10
+ isLoading: boolean;
11
+ isNextLoading: boolean;
12
+ error: ApolloError | undefined;
13
+ refetchQuery: () => Promise<void>;
14
+ loadMore: () => Promise<void>;
15
+ renderCreation: (creation: TCreation) => ReactNode;
16
+ notFoundText?: string | undefined;
17
+ headerSlot: JSX.Element;
18
+ isProfileCards?: boolean | undefined;
37
19
  }) => React.JSX.Element;
@@ -1,13 +1,9 @@
1
1
  import { RefObject } from 'react';
2
-
3
2
  import { VirtuosoHandle } from 'react-virtuoso';
4
-
5
3
  export declare const useVirtuosoToTopBtnInitialize: () => {
6
- isShowBtn: boolean;
7
- onScroll(scrollY: number): void;
4
+ isShowBtn: boolean;
5
+ onScroll(scrollY: number): void;
8
6
  };
9
- export declare const VirtuosoToTopBtn: ({
10
- virtuoso,
11
- }: {
12
- virtuoso: RefObject<null | VirtuosoHandle>;
13
- }) => import('react').JSX.Element;
7
+ export declare const VirtuosoToTopBtn: ({ virtuoso, }: {
8
+ virtuoso: RefObject<null | VirtuosoHandle>;
9
+ }) => import("react").JSX.Element;
@@ -1,8 +1,7 @@
1
1
  import CollectionCreationEntity from '@/dto/Collection/CollectionCreationEntity';
2
2
  import CreationEntity from '@/dto/CreationEntity';
3
-
4
3
  export type TCreationAndCollection = CreationEntity | CollectionCreationEntity;
5
4
  export type TVirtuosoData<TData> = {
6
- creationPacks: TData[][];
7
- creations: TData[];
5
+ creationPacks: TData[][];
6
+ creations: TData[];
8
7
  };
@@ -1,20 +1,12 @@
1
1
  import { TVirtuosoData } from '@/modules/virtuoso/types';
2
-
3
2
  import { TActiveTab } from '@/system/Tabs/TabsNav/type';
4
-
5
- export declare const useVirtuosoData: <TData>({
6
- activeTab,
7
- creations,
8
- isMobile,
9
- isThreeColumn,
10
- isProfileCards,
11
- }: {
12
- activeTab: TActiveTab;
13
- isMobile: boolean;
14
- creations: TData[];
15
- isThreeColumn?: boolean | undefined;
16
- isProfileCards?: boolean | undefined;
3
+ export declare const useVirtuosoData: <TData>({ activeTab, creations, isMobile, isThreeColumn, isProfileCards, }: {
4
+ activeTab: TActiveTab;
5
+ isMobile: boolean;
6
+ creations: TData[];
7
+ isThreeColumn?: boolean | undefined;
8
+ isProfileCards?: boolean | undefined;
17
9
  }) => {
18
- virtuosoData: TVirtuosoData<TData>;
19
- placeholderData: number[][];
10
+ virtuosoData: TVirtuosoData<TData>;
11
+ placeholderData: number[][];
20
12
  };
@@ -1,18 +1,11 @@
1
1
  /// <reference types="react" />
2
+ export * from './ui';
3
+ export * from './media';
2
4
  interface ISSRStore {
3
- isMobile: boolean;
5
+ isMobile: boolean;
4
6
  }
5
- export declare const useSSRStore: <F>(
6
- selector: (state: ISSRStore) => F,
7
- equalityFn?: ((a: F, b: F) => boolean) | undefined
8
- ) => F;
9
- export declare const SSRProvider: ({
10
- children,
11
- initialState,
12
- }: {
13
- children: import('react').ReactNode;
14
- initialState:
15
- | ((prevStore: ISSRStore) => Partial<ISSRStore>)
16
- | Partial<ISSRStore>;
7
+ export declare const useSSRStore: <F>(selector: (state: ISSRStore) => F, equalityFn?: ((a: F, b: F) => boolean) | undefined) => F;
8
+ export declare const SSRProvider: ({ children, initialState }: {
9
+ children: import("react").ReactNode;
10
+ initialState: ((prevStore: ISSRStore) => Partial<ISSRStore>) | Partial<ISSRStore>;
17
11
  }) => JSX.Element;
18
- export {};
@@ -1,10 +1,6 @@
1
1
  import React from 'react';
2
-
3
- declare const CardLikes: ({
4
- likes,
5
- isLiked,
6
- }: {
7
- likes: number;
8
- isLiked: boolean;
2
+ declare const CardLikes: ({ likes, isLiked }: {
3
+ likes: number;
4
+ isLiked: boolean;
9
5
  }) => React.JSX.Element;
10
6
  export default CardLikes;
@@ -1,29 +1,15 @@
1
1
  import React from 'react';
2
-
3
2
  import CollectionCreationEntity from '@/dto/Collection/CollectionCreationEntity';
4
3
  import CreationEntity from '@/dto/CreationEntity';
5
-
6
- declare const CardHeadIcons: ({
7
- creation,
8
- isRegularCard,
9
- isIconLiked,
10
- addLikeToCard,
11
- deleteLikeFromCard,
12
- actionIsNeedRenderCheckbox,
13
- itemId,
14
- isUserProfile,
15
- isDisabled,
16
- }: {
17
- creation: CreationEntity | CollectionCreationEntity;
18
- isRegularCard: boolean;
19
- isIconLiked: boolean;
20
- addLikeToCard: (id: string) => void;
21
- deleteLikeFromCard: (id: string) => void;
22
- actionIsNeedRenderCheckbox?:
23
- | ((isNeedToShow: boolean, itemId?: string) => void)
24
- | undefined;
25
- itemId: string;
26
- isUserProfile: boolean;
27
- isDisabled?: boolean | undefined;
4
+ declare const CardHeadIcons: ({ creation, isRegularCard, isIconLiked, addLikeToCard, deleteLikeFromCard, actionIsNeedRenderCheckbox, itemId, isUserProfile, isDisabled, }: {
5
+ creation: CreationEntity | CollectionCreationEntity;
6
+ isRegularCard: boolean;
7
+ isIconLiked: boolean;
8
+ addLikeToCard: (id: string) => void;
9
+ deleteLikeFromCard: (id: string) => void;
10
+ actionIsNeedRenderCheckbox?: ((isNeedToShow: boolean, itemId?: string) => void) | undefined;
11
+ itemId: string;
12
+ isUserProfile: boolean;
13
+ isDisabled?: boolean | undefined;
28
14
  }) => React.JSX.Element;
29
15
  export default CardHeadIcons;
@@ -1,14 +1,8 @@
1
1
  import React from 'react';
2
-
3
- declare const CardAudio: ({
4
- audioSrc,
5
- imgSrc,
6
- errorImg,
7
- alt,
8
- }: {
9
- audioSrc: string;
10
- imgSrc: string;
11
- errorImg: string;
12
- alt: string;
2
+ declare const CardAudio: ({ audioSrc, imgSrc, errorImg, alt, }: {
3
+ audioSrc: string;
4
+ imgSrc: string;
5
+ errorImg: string;
6
+ alt: string;
13
7
  }) => React.JSX.Element;
14
8
  export default CardAudio;
@@ -1,4 +1,5 @@
1
1
  import React from 'react';
2
-
3
- declare const CardRank: ({ rank }: { rank: number }) => React.JSX.Element;
2
+ declare const CardRank: ({ rank }: {
3
+ rank: number;
4
+ }) => React.JSX.Element;
4
5
  export default CardRank;
@@ -1,23 +1,13 @@
1
1
  import React, { ReactNode } from 'react';
2
-
3
2
  import CreationEntity from '@/dto/CreationEntity';
4
-
5
- declare const CardsGrid: ({
6
- children,
7
- isTwoColumnLayout,
8
- addMethod,
9
- creations,
10
- isEmptyGallery,
11
- isForVirtualize,
12
- tabsSlot,
13
- }: {
14
- children: React.ReactNode;
15
- isTwoColumnLayout?: boolean | undefined;
16
- isNeedShowNetWorth?: boolean | undefined;
17
- addMethod?: (() => void) | undefined;
18
- creations?: CreationEntity[] | undefined;
19
- isEmptyGallery?: boolean | undefined;
20
- isForVirtualize?: boolean | undefined;
21
- tabsSlot?: ReactNode;
3
+ declare const CardsGrid: ({ children, isTwoColumnLayout, addMethod, creations, isEmptyGallery, isForVirtualize, tabsSlot, }: {
4
+ children: React.ReactNode;
5
+ isTwoColumnLayout?: boolean | undefined;
6
+ isNeedShowNetWorth?: boolean | undefined;
7
+ addMethod?: (() => void) | undefined;
8
+ creations?: CreationEntity[] | undefined;
9
+ isEmptyGallery?: boolean | undefined;
10
+ isForVirtualize?: boolean | undefined;
11
+ tabsSlot?: ReactNode;
22
12
  }) => React.JSX.Element;
23
13
  export default CardsGrid;
@@ -1,16 +1,10 @@
1
1
  import React from 'react';
2
-
3
2
  import CollectionCreationEntity from '@/dto/Collection/CollectionCreationEntity';
4
3
  import CreationEntity from '@/dto/CreationEntity';
5
4
  import GalleryEntityV2 from '@/dto/GalleryEntityV2';
6
-
7
- declare const MultiMediaCard: ({
8
- gallery,
9
- assets,
10
- collections,
11
- }: {
12
- gallery: GalleryEntityV2;
13
- assets: CreationEntity[] | null;
14
- collections: CollectionCreationEntity[] | null;
5
+ declare const MultiMediaCard: ({ gallery, assets, collections, }: {
6
+ gallery: GalleryEntityV2;
7
+ assets: CreationEntity[] | null;
8
+ collections: CollectionCreationEntity[] | null;
15
9
  }) => React.JSX.Element;
16
10
  export default MultiMediaCard;
@@ -1,36 +1,22 @@
1
1
  import React from 'react';
2
-
3
- import {
4
- IDynamicAssetData,
5
- IDynamicCollectionData,
6
- } from '@ludo.ninja/api/build/graphql_tools/__generated__/searchHost/schema';
7
-
2
+ import { IDynamicAssetData, IDynamicCollectionData } from '@ludo.ninja/api/build/graphql_tools/__generated__/searchHost/schema';
8
3
  import CollectionCreationEntity from '@/dto/Collection/CollectionCreationEntity';
9
4
  import CreationEntity from '@/dto/CreationEntity';
10
5
  import GalleryEntityV2 from '@/dto/GalleryEntityV2';
11
-
12
6
  export type RemoveToolsType = {
13
- gallery: GalleryEntityV2;
14
- removeFn: () => void;
7
+ gallery: GalleryEntityV2;
8
+ removeFn: () => void;
15
9
  };
16
- declare const RegularCard: ({
17
- creationName,
18
- creation,
19
- cardsCount,
20
- scrollKeys,
21
- isNeedHeight,
22
- likesDynamicInfo,
23
- toolsForRemove,
24
- }: {
25
- creationName?: string | undefined;
26
- creation: CreationEntity | CollectionCreationEntity;
27
- cardsCount: number;
28
- scrollKeys: {
29
- pageOffsetKey: string;
30
- itemsCountKey: string;
31
- };
32
- isNeedHeight: boolean;
33
- likesDynamicInfo?: IDynamicAssetData | IDynamicCollectionData | undefined;
34
- toolsForRemove?: RemoveToolsType | undefined;
10
+ declare const RegularCard: ({ creationName, creation, cardsCount, scrollKeys, isNeedHeight, likesDynamicInfo, toolsForRemove, }: {
11
+ creationName?: string | undefined;
12
+ creation: CreationEntity | CollectionCreationEntity;
13
+ cardsCount: number;
14
+ scrollKeys: {
15
+ pageOffsetKey: string;
16
+ itemsCountKey: string;
17
+ };
18
+ isNeedHeight: boolean;
19
+ likesDynamicInfo?: IDynamicAssetData | IDynamicCollectionData | undefined;
20
+ toolsForRemove?: RemoveToolsType | undefined;
35
21
  }) => React.JSX.Element;
36
22
  export default RegularCard;
@@ -1,29 +1,22 @@
1
1
  import React, { ReactNode } from 'react';
2
-
3
2
  import { ApolloError } from '@apollo/client';
4
-
5
- import {
6
- IDynamicAssetData,
7
- IDynamicCollectionData,
8
- } from '@ludo.ninja/api/build/graphql_tools/__generated__/searchHost/schema';
9
-
3
+ import { IDynamicAssetData, IDynamicCollectionData } from '@ludo.ninja/api/build/graphql_tools/__generated__/searchHost/schema';
10
4
  import CollectionCreationEntity from '@/dto/Collection/CollectionCreationEntity';
11
5
  import CreationEntity from '@/dto/CreationEntity';
12
6
  import GalleryEntityV2 from '@/dto/GalleryEntityV2';
13
-
14
7
  interface Props {
15
- loading: boolean;
16
- items: GalleryEntityV2[] | CreationEntity[] | CollectionCreationEntity[];
17
- refetchQuery: () => Promise<void>;
18
- error: ApolloError | undefined;
19
- children: React.ReactNode;
20
- notFoundText: string;
21
- isOneColumn?: number;
22
- isTwoColumnLayout: boolean;
23
- isNeedShowNetWorth: boolean;
24
- isForVirtualize?: boolean;
25
- likesArray?: Array<IDynamicAssetData | IDynamicCollectionData> | [];
26
- tabsSlot?: ReactNode;
8
+ loading: boolean;
9
+ items: GalleryEntityV2[] | CreationEntity[] | CollectionCreationEntity[];
10
+ refetchQuery: () => Promise<void>;
11
+ error: ApolloError | undefined;
12
+ children: React.ReactNode;
13
+ notFoundText: string;
14
+ isOneColumn?: number;
15
+ isTwoColumnLayout: boolean;
16
+ isNeedShowNetWorth: boolean;
17
+ isForVirtualize?: boolean;
18
+ likesArray?: Array<IDynamicAssetData | IDynamicCollectionData> | [];
19
+ tabsSlot?: ReactNode;
27
20
  }
28
21
  declare const CardsHolder: React.FC<Props>;
29
22
  export default CardsHolder;
@@ -1,4 +1,3 @@
1
1
  import React from 'react';
2
-
3
2
  declare const CardsHolderLoader: () => React.JSX.Element;
4
3
  export default CardsHolderLoader;
@@ -1,36 +1,29 @@
1
1
  import React, { ReactNode } from 'react';
2
-
3
2
  import { ApolloError } from '@apollo/client';
4
-
5
- import {
6
- IDynamicAssetData,
7
- IDynamicCollectionData,
8
- } from '@ludo.ninja/api/build/graphql_tools/__generated__/searchHost/schema';
9
-
3
+ import { IDynamicAssetData, IDynamicCollectionData } from '@ludo.ninja/api/build/graphql_tools/__generated__/searchHost/schema';
10
4
  import CollectionCreationEntity from '@/dto/Collection/CollectionCreationEntity';
11
5
  import CreationEntity from '@/dto/CreationEntity';
12
6
  import GalleryEntityV2 from '@/dto/GalleryEntityV2';
13
-
14
7
  interface Props {
15
- loading: boolean;
16
- items: CreationEntity[] | GalleryEntityV2[] | CollectionCreationEntity[];
17
- scrollKeys: {
18
- pageOffsetKey: string;
19
- itemsCountKey: string;
20
- };
21
- nextPageToken: string | null;
22
- refetchQuery: () => Promise<void>;
23
- loadMore: (pageToken: string) => Promise<void>;
24
- error: ApolloError | undefined;
25
- children: React.ReactNode;
26
- notFoundText: string;
27
- isOneColumn?: number;
28
- isTwoColumnLayout: boolean;
29
- isNeedShowNetWorth: boolean;
30
- infinityScrollLoader?: boolean;
31
- isForVirtualize?: boolean;
32
- likesArray?: Array<IDynamicAssetData | IDynamicCollectionData> | [];
33
- tabsSlot?: ReactNode;
8
+ loading: boolean;
9
+ items: CreationEntity[] | GalleryEntityV2[] | CollectionCreationEntity[];
10
+ scrollKeys: {
11
+ pageOffsetKey: string;
12
+ itemsCountKey: string;
13
+ };
14
+ nextPageToken: string | null;
15
+ refetchQuery: () => Promise<void>;
16
+ loadMore: (pageToken: string) => Promise<void>;
17
+ error: ApolloError | undefined;
18
+ children: React.ReactNode;
19
+ notFoundText: string;
20
+ isOneColumn?: number;
21
+ isTwoColumnLayout: boolean;
22
+ isNeedShowNetWorth: boolean;
23
+ infinityScrollLoader?: boolean;
24
+ isForVirtualize?: boolean;
25
+ likesArray?: Array<IDynamicAssetData | IDynamicCollectionData> | [];
26
+ tabsSlot?: ReactNode;
34
27
  }
35
28
  declare const CardsHolderWithSkeleton: React.FC<Props>;
36
29
  export default CardsHolderWithSkeleton;
@@ -1,21 +1,12 @@
1
1
  import React from 'react';
2
-
3
- import {
4
- ICollectionFilterInput,
5
- ICreationFilterInput,
6
- } from '@ludo.ninja/api/build/graphql_tools/__generated__/searchHost/schema';
7
-
2
+ import { ICollectionFilterInput, ICreationFilterInput } from '@ludo.ninja/api/build/graphql_tools/__generated__/searchHost/schema';
8
3
  import { ISelectInput } from '@/system/Forms/Selects/MobileSelect';
9
-
10
4
  interface Props {
11
- options: ISelectInput[];
12
- defaultOptionValue: string;
13
- isLoading?: boolean;
14
- onChangeHandler: (
15
- fieldName: keyof ICreationFilterInput & keyof ICollectionFilterInput,
16
- fieldValue: string
17
- ) => Promise<void>;
18
- name: string;
5
+ options: ISelectInput[];
6
+ defaultOptionValue: string;
7
+ isLoading?: boolean;
8
+ onChangeHandler: (fieldName: keyof ICreationFilterInput & keyof ICollectionFilterInput, fieldValue: string) => Promise<void>;
9
+ name: string;
19
10
  }
20
11
  declare const DesktopSelect: React.FC<Props>;
21
12
  export default DesktopSelect;
@@ -1,13 +1,11 @@
1
1
  import React from 'react';
2
-
3
2
  import { SpaceProps } from 'styled-system';
4
-
5
3
  export interface ProfilePicRawProps extends SpaceProps {
6
- userPicSrc: string;
7
- size: number;
4
+ userPicSrc: string;
5
+ size: number;
8
6
  }
9
7
  export type ProfilePicProps = ProfilePicRawProps;
10
8
  export declare const ProfilePic: {
11
- ({ userPicSrc, size }: ProfilePicProps): React.JSX.Element;
12
- displayName: string;
9
+ ({ userPicSrc, size }: ProfilePicProps): React.JSX.Element;
10
+ displayName: string;
13
11
  };
@@ -1,2 +1,2 @@
1
1
  /// <reference types="react" />
2
- export declare const ShareIconResize: () => import('react').JSX.Element;
2
+ export declare const ShareIconResize: () => import("react").JSX.Element;
@@ -1,9 +1,5 @@
1
1
  import { TDimensions } from '@/utils/screen';
2
-
3
- export declare const getAdaptiveValueWithCheck4k: ({
4
- windowDimensions,
5
- currentSize,
6
- }: {
7
- currentSize: number;
8
- windowDimensions: TDimensions | null;
2
+ export declare const getAdaptiveValueWithCheck4k: ({ windowDimensions, currentSize, }: {
3
+ currentSize: number;
4
+ windowDimensions: TDimensions | null;
9
5
  }) => number;
@@ -1,15 +1,9 @@
1
1
  import { TDimensions } from '@/utils/screen';
2
-
3
- export declare const getAdaptiveScale: ({
4
- windowDimensions,
5
- currentSize,
6
- }: {
7
- currentSize: number;
8
- windowDimensions: TDimensions | null;
9
- }) =>
10
- | {
11
- transform: string;
12
- }
13
- | {
14
- transform?: undefined;
15
- };
2
+ export declare const getAdaptiveScale: ({ windowDimensions, currentSize, }: {
3
+ currentSize: number;
4
+ windowDimensions: TDimensions | null;
5
+ }) => {
6
+ transform: string;
7
+ } | {
8
+ transform?: undefined;
9
+ };
@@ -1,10 +1,5 @@
1
1
  import React, { CSSProperties, PropsWithChildren } from 'react';
2
-
3
- export declare const CopyButton: ({
4
- value,
5
- style,
6
- children,
7
- }: React.PropsWithChildren<{
8
- value?: string | null | undefined;
9
- style?: CSSProperties | undefined;
2
+ export declare const CopyButton: ({ value, style, children, }: React.PropsWithChildren<{
3
+ value?: string | null | undefined;
4
+ style?: CSSProperties | undefined;
10
5
  }>) => React.JSX.Element;
@@ -1,5 +1,2 @@
1
1
  import { TCreationAndCollection } from '@/modules/virtuoso';
2
-
3
- export declare function extractItemIds(
4
- creations: TCreationAndCollection[]
5
- ): string[];
2
+ export declare function extractItemIds(creations: TCreationAndCollection[]): string[];
@@ -1,8 +1,5 @@
1
1
  export declare const limitCount = 40;
2
- export declare const getPageSize: ({
3
- limit,
4
- scrollTab,
5
- }: {
6
- limit?: number | undefined;
7
- scrollTab?: string | undefined;
2
+ export declare const getPageSize: ({ limit, scrollTab, }: {
3
+ limit?: number | undefined;
4
+ scrollTab?: string | undefined;
8
5
  }) => number;
@@ -1,18 +1,18 @@
1
1
  export type TDimensions = {
2
- windowWidth: number;
3
- windowHeight: number;
2
+ windowWidth: number;
3
+ windowHeight: number;
4
4
  };
5
5
  export declare function getWindowDimensions(): {
6
- windowWidth: number;
7
- windowHeight: number;
6
+ windowWidth: number;
7
+ windowHeight: number;
8
8
  };
9
9
  export declare function useWindowDimensions(isMobileInitial?: boolean): {
10
- windowDimensions: TDimensions;
11
- deviceType: 'isMobile' | 'isDesktop' | 'isTablet';
12
- isMobile: boolean | undefined;
10
+ windowDimensions: TDimensions;
11
+ deviceType: "isMobile" | "isDesktop" | "isTablet";
12
+ isMobile: boolean | undefined;
13
13
  };
14
14
  export declare function useWindowDimensionsWithServerInitial(): {
15
- isMobile: boolean;
16
- windowDimensions: TDimensions | null;
15
+ isMobile: boolean;
16
+ windowDimensions: TDimensions | null;
17
17
  };
18
18
  export declare function InitializeAppHeight(): null;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ludo.ninja/components",
3
- "version": "1.0.8",
3
+ "version": "1.1.0",
4
4
  "private": false,
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/types/index.d.ts",
package/src/index.ts CHANGED
@@ -4,4 +4,5 @@ export * from './styles';
4
4
  export * from './api';
5
5
  export * from './hooks';
6
6
  export * from './utils';
7
+ export * from './store';
7
8
  export * from './system';
@@ -1,3 +1,3 @@
1
- export * from './';
1
+ export * from './store';
2
2
  export * from './auth';
3
3
  export * from './profileData';
@@ -1,4 +1,6 @@
1
1
  import { createProvider } from 'next-zustand';
2
+ export * from './ui';
3
+ export * from './media';
2
4
 
3
5
  interface ISSRStore {
4
6
  isMobile: boolean;