@ludo.ninja/components 2.0.16 → 2.0.18
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/api/server-assets/queries/useFetchAssetByBlockchain/index.d.ts +1 -1
- package/build/api/server-galleries/queries/useFetchGallery/index.d.ts +1 -1
- package/build/api/server-galleries/queries/useFetchMyFavorites/index.d.ts +1 -1
- package/build/api/server-galleries/queries/useFetchMyGalleries/index.d.ts +1 -1
- package/build/api/server-galleries/queries/useFetchUserFavorites/index.d.ts +1 -1
- package/build/api/server-search/queries/useFetchAllCreations/index.d.ts +1 -1
- package/build/api/server-search/queries/useFetchCollection/index.d.ts +1 -1
- package/build/api/server-search/queries/useFetchCollections/index.d.ts +1 -1
- package/build/api/server-search/queries/useFetchDynamicCollectionData/index.d.ts +1 -1
- package/build/api/server-search/queries/useFetchFindAllTopEntitiesByName/index.d.ts +1 -1
- package/build/api/server-search/queries/useFindCreations/index.d.ts +1 -1
- package/build/api/server-search/queries/useFindUserCreations/index.d.ts +1 -1
- package/build/components/assetPage/category/index.d.ts +1 -1
- package/build/components/assetPage/information/index.d.ts +1 -1
- package/build/components/assetPage/slider/index.d.ts +1 -1
- package/build/components/assetPage/slider/slideItem.d.ts +1 -1
- package/build/components/search/searchSuggestions/index.d.ts +1 -1
- package/build/components/searchFiltersConnector/filters/galleriesFiltersForm/index.d.ts +1 -1
- package/build/components/searchFiltersConnector/filters/index.d.ts +1 -1
- package/build/components/searchFiltersConnector/filters/setsFiltersForm/index.d.ts +1 -1
- package/build/components/searchFiltersConnector/index.d.ts +1 -1
- package/build/components/shareDialog/index.d.ts +33 -0
- package/build/components/shareDialog/index.js +99 -0
- package/build/dto/AssetEntity/index.d.ts +3 -3
- package/build/dto/AssetEntity/interface.d.ts +1 -1
- package/build/dto/AssetEntity/views/AssetAudio/index.d.ts +2 -2
- package/build/dto/AssetEntity/views/AssetImage/index.d.ts +2 -2
- package/build/dto/AssetEntity/views/AssetObject/index.d.ts +2 -2
- package/build/dto/AssetEntity/views/AssetOther/index.d.ts +2 -2
- package/build/dto/AssetEntity/views/AssetScreenshot/index.d.ts +2 -2
- package/build/dto/AssetEntity/views/AssetVideo/index.d.ts +2 -2
- package/build/dto/AssetEntity/views/index.d.ts +5 -5
- package/build/dto/Collection/CollectionCreationEntity/index.d.ts +3 -3
- package/build/dto/Collection/CollectionCreationEntity/interface.d.ts +2 -2
- package/build/dto/Collection/CollectionEntity/index.d.ts +1 -1
- package/build/dto/CreationEntity/index.d.ts +3 -3
- package/build/dto/common/ItemType/data.d.ts +1 -1
- package/build/dto/common/ItemViews/CreationAudio/index.d.ts +2 -2
- package/build/dto/common/ItemViews/CreationImage/index.d.ts +2 -2
- package/build/dto/common/ItemViews/CreationObject/index.d.ts +2 -2
- package/build/dto/common/ItemViews/CreationOther/index.d.ts +2 -2
- package/build/dto/common/ItemViews/CreationVideo/index.d.ts +2 -2
- package/build/dto/common/Media/Audio/index.d.ts +2 -2
- package/build/dto/common/Media/Image/index.d.ts +2 -2
- package/build/dto/common/Media/Object/index.d.ts +2 -2
- package/build/dto/common/Media/Other/index.d.ts +2 -2
- package/build/dto/common/Media/Screenshot/index.d.ts +2 -2
- package/build/dto/common/Media/Video/index.d.ts +2 -2
- package/build/dto/common/Media/index.d.ts +1 -1
- package/build/dto/common/Media/interface.d.ts +1 -1
- package/build/hooks/favorites/useGetFavoriteGallaryCreations/index.d.ts +3 -3
- package/build/hooks/favorites/useGetUserFevoritesCreations/index.d.ts +3 -3
- package/build/hooks/galleries/useGetUserGalleriesCreations/index.d.ts +3 -3
- package/build/hooks/likes/dynamic/useFindCollectionsAndLikes.d.ts +1 -1
- package/build/hooks/likes/dynamic/useFindCreationsAndLikes.d.ts +1 -1
- package/build/hooks/likes/dynamic/useGetCollectionInfoAndLikes.d.ts +1 -1
- package/build/hooks/likes/dynamic/useGetCreationsAndLikes.d.ts +2 -2
- package/build/hooks/likes/dynamic/useGetCreationsAndLikesByType.d.ts +1 -1
- package/build/hooks/likes/dynamic/useGetMixedLikesFavoriteList.d.ts +2 -2
- package/build/hooks/likes/dynamic/useGetTableLikes.d.ts +2 -2
- package/build/hooks/likes/index.d.ts +2 -2
- package/build/layouts/base/LWithRegularHeader/index.d.ts +1 -1
- package/build/layouts/base/LWithRegularHeader/type.d.ts +1 -1
- package/build/layouts/base/LWithSearchHeader/index.d.ts +1 -1
- package/build/layouts/base/LWithSearchHeader/type.d.ts +1 -1
- package/build/layouts/custom/mainLayout/index.d.ts +1 -1
- package/build/layouts/pageWithLayout.d.ts +2 -2
- package/build/modules/gallery/api/useGetAssetsAndCollectionForFavorite.d.ts +5 -5
- package/build/modules/gallery/store.d.ts +1 -1
- package/build/modules/gallery/ui/EditGallery.d.ts +1 -1
- package/build/modules/gallery/ui/chooseGalleryItems/chooseGalleryItem/index.d.ts +1 -1
- package/build/modules/gallery/ui/itemsPreview/index.d.ts +3 -3
- package/build/modules/gallery/useToGalleryAsset.d.ts +1 -1
- package/build/modules/opportunity/OpportunityCard.d.ts +1 -1
- package/build/modules/opportunity/OpportunityDropDown.d.ts +1 -1
- package/build/modules/opportunity/popup/OpportunityMenu.d.ts +1 -1
- package/build/modules/sessionScroll/globalTabs.d.ts +1 -1
- package/build/modules/sessionScroll/useVirtuosoInitialScroll.d.ts +2 -2
- package/build/modules/user/auth/useSignIn.d.ts +1 -1
- package/build/modules/user/store.d.ts +1 -1
- package/build/modules/virtuoso/VirtuosoPageBuilder.d.ts +2 -2
- package/build/modules/virtuoso/types.d.ts +2 -2
- package/build/modules/virtuoso/useVirtuosoData.d.ts +2 -2
- package/build/store/media/index.d.ts +1 -1
- package/build/store/ui/types.d.ts +3 -3
- package/build/store/ui/utils.d.ts +1 -1
- package/build/system/Cards/CardContent/CardCategory/index.d.ts +1 -1
- package/build/system/Cards/CreationCard/CardHead.d.ts +2 -2
- package/build/system/Cards/CreationCard/index.d.ts +2 -2
- package/build/system/Cards/MultiMediaCard/index.d.ts +3 -3
- package/build/system/Filters/type.d.ts +1 -1
- package/build/system/Forms/Selects/DesktopSelect/index.d.ts +1 -1
- package/build/system/Img/index.d.ts +3 -3
- package/build/system/Tabs/TabNavLink/index.d.ts +1 -1
- package/build/system/Tabs/TabsNav/index.d.ts +1 -1
- package/build/system/index.d.ts +2 -2
- package/build/utils/adaptive/check4k.d.ts +1 -1
- package/build/utils/adaptive/scale.d.ts +1 -1
- package/build/utils/ssrFunctions/index.d.ts +1 -1
- package/package.json +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ApolloClient, NormalizedCacheObject } from '@apollo/client';
|
|
2
2
|
import { searchSchema as schema } from '@ludo.ninja/api';
|
|
3
|
-
import AssetEntity from '
|
|
3
|
+
import AssetEntity from '../../../../dto/AssetEntity';
|
|
4
4
|
declare const prefetchAssetByBlockchain: ({ blockchain, address, elrondId, tokenId, }: schema.IQueryFetchAssetByBlockchainArgs, apolloClient: ApolloClient<NormalizedCacheObject>) => Promise<import("@apollo/client").ApolloQueryResult<any> | {
|
|
5
5
|
data: {
|
|
6
6
|
fetchAssetByBlockchain: null;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ApolloClient, NormalizedCacheObject } from '@apollo/client';
|
|
2
2
|
import { galleriesSchema as schema } from '@ludo.ninja/api';
|
|
3
|
-
import GalleryEntityV2 from '
|
|
3
|
+
import GalleryEntityV2 from '../../../../dto/GalleryEntityV2';
|
|
4
4
|
declare const prefetchGalleryV2: ({ galleryId }: schema.IQueryFetchGalleryV2Args, apolloClient: ApolloClient<NormalizedCacheObject>) => Promise<import("@apollo/client").ApolloQueryResult<any> | {
|
|
5
5
|
data: {
|
|
6
6
|
fetchGalleryV2: null;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { galleriesSchema as schema } from '@ludo.ninja/api';
|
|
2
|
-
import GalleryEntityV2 from '
|
|
2
|
+
import GalleryEntityV2 from '../../../../dto/GalleryEntityV2';
|
|
3
3
|
declare const useFetchMyFavoritesV2: () => {
|
|
4
4
|
galleryItems: GalleryEntityV2[];
|
|
5
5
|
isNextLoading: boolean;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { galleriesSchema as schema } from '@ludo.ninja/api';
|
|
2
|
-
import GalleryEntityV2 from '
|
|
2
|
+
import GalleryEntityV2 from '../../../../dto/GalleryEntityV2';
|
|
3
3
|
declare const useFetchMyGalleriesV2: () => {
|
|
4
4
|
galleryItems: GalleryEntityV2[];
|
|
5
5
|
isNextLoading: boolean;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { galleriesSchema as schema } from '@ludo.ninja/api';
|
|
2
|
-
import GalleryEntityV2 from '
|
|
2
|
+
import GalleryEntityV2 from '../../../../dto/GalleryEntityV2';
|
|
3
3
|
declare const useFetchUserFavoritesV2: ({ userId, pageSize, pageToken, }: schema.IQueryFetchUserFavoritesV2Args) => {
|
|
4
4
|
loadingFavorites: boolean;
|
|
5
5
|
error: import("@apollo/client").ApolloError | undefined;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ApolloClient, NormalizedCacheObject } from '@apollo/client';
|
|
2
2
|
import { searchSchema as schema } from '@ludo.ninja/api';
|
|
3
|
-
import CreationEntity from '
|
|
3
|
+
import CreationEntity from '../../../../dto/CreationEntity';
|
|
4
4
|
export declare const prefetchAllCreations: ({ page }: schema.IQueryFetchAllCreationsArgs, apolloClient: ApolloClient<NormalizedCacheObject>) => Promise<import("@apollo/client").ApolloQueryResult<any> | {
|
|
5
5
|
data: {
|
|
6
6
|
fetchAllCreations: null;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ApolloClient, NormalizedCacheObject } from '@apollo/client';
|
|
2
2
|
import { searchSchema as schema } from '@ludo.ninja/api';
|
|
3
|
-
import CollectionEntity from '
|
|
3
|
+
import CollectionEntity from '../../../../dto/Collection/CollectionEntity';
|
|
4
4
|
declare const prefetchCollection: ({ collectionId }: {
|
|
5
5
|
collectionId: string;
|
|
6
6
|
}, apolloClient: ApolloClient<NormalizedCacheObject>) => Promise<import("@apollo/client").ApolloQueryResult<any> | {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { searchSchema as schema } from '@ludo.ninja/api';
|
|
2
|
-
import CollectionCreationEntity from '
|
|
2
|
+
import CollectionCreationEntity from '../../../../dto/Collection/CollectionCreationEntity';
|
|
3
3
|
export declare const useFindCollections: ({ term, input, page, }: schema.IQueryFindCollectionsArgs) => {
|
|
4
4
|
loadMore: (pageToken: string) => Promise<void>;
|
|
5
5
|
loading: boolean;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { searchSchema as schema } from '@ludo.ninja/api';
|
|
2
|
-
import CollectionCreationEntity from '
|
|
2
|
+
import CollectionCreationEntity from '../../../../dto/Collection/CollectionCreationEntity';
|
|
3
3
|
declare const useFetchDynamicCollectionData: ({ input, }: schema.IQueryFetchDynamicCollectionDataArgs) => {
|
|
4
4
|
loadMore: (pageToken: string | null) => Promise<void>;
|
|
5
5
|
loading: boolean;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ApolloClient, NormalizedCacheObject } from '@apollo/client';
|
|
2
2
|
import { searchSchema as schema } from '@ludo.ninja/api';
|
|
3
3
|
import { ProfileEntity } from '@ludo.ninja/core';
|
|
4
|
-
import AssetEntity from '
|
|
4
|
+
import AssetEntity from '../../../../dto/AssetEntity';
|
|
5
5
|
export declare const prefetchFindAllTopEntitiesByName: ({ name, pageSize }: schema.IQueryFindAllTopEntitiesByNameArgs, apolloClient: ApolloClient<NormalizedCacheObject>) => Promise<import("@apollo/client").ApolloQueryResult<any> | {
|
|
6
6
|
data: {
|
|
7
7
|
findAllTopEntitiesByName: null;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ApolloClient, NormalizedCacheObject } from '@apollo/client';
|
|
2
2
|
import { searchSchema as schema } from '@ludo.ninja/api';
|
|
3
|
-
import CreationEntity from '
|
|
3
|
+
import CreationEntity from '../../../../dto/CreationEntity';
|
|
4
4
|
export declare const prefetchFindCreations: ({ term, input, page }: schema.IQueryFindCreationsArgs, apolloClient: ApolloClient<NormalizedCacheObject>) => Promise<import("@apollo/client").ApolloQueryResult<any> | {
|
|
5
5
|
data: {
|
|
6
6
|
findCreations: null;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { searchSchema as schema } from '@ludo.ninja/api';
|
|
2
|
-
import CreationEntity from '
|
|
2
|
+
import CreationEntity from '../../../../dto/CreationEntity';
|
|
3
3
|
declare const useFindUserCreations: ({ ownerId, input, scrollTab, }: {
|
|
4
4
|
scrollTab: string | undefined;
|
|
5
5
|
ownerId: schema.IQueryFindUserCreationsArgs["ownerId"];
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { collectionsSchema as schema } from '@ludo.ninja/api';
|
|
3
3
|
import { ProfileEntity } from '@ludo.ninja/core';
|
|
4
|
-
import AssetEntity from '
|
|
4
|
+
import AssetEntity from '../../../dto/AssetEntity';
|
|
5
5
|
interface Props {
|
|
6
6
|
assets: AssetEntity[];
|
|
7
7
|
profiles: ProfileEntity[];
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { optionType } from '
|
|
1
|
+
import { optionType } from '../../../../system/Forms/Selects/DesktopSelect/type';
|
|
2
2
|
declare const GalleryFiltersForm: ({ selectTypeSearchResult, selectBlockchainSearchResult, selectBlockchainCategoryResult, selectBlockchainTimeResult, handleNeedShowButtons, handleFiltersCount, }: {
|
|
3
3
|
selectTypeSearchResult: optionType[];
|
|
4
4
|
selectBlockchainSearchResult: optionType[];
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { searchSchema as schema } from '@ludo.ninja/api';
|
|
2
|
-
import { SelectsType } from '
|
|
2
|
+
import { SelectsType } from '../../../system/Filters/type';
|
|
3
3
|
declare const Filters: ({ filterInputHandler, handleResetFilter, selectData, filterInput, handleMobileFilterInput, isMobile, }: {
|
|
4
4
|
filterInputHandler: (fieldName: keyof schema.ICreationFilterInput & keyof schema.ICollectionFilterInput, fieldValue: string) => Promise<void>;
|
|
5
5
|
filterInput: schema.ICreationFilterInput | schema.ICollectionFilterInput;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { optionType } from '
|
|
1
|
+
import { optionType } from '../../../../system/Forms/Selects/DesktopSelect/type';
|
|
2
2
|
declare const SetsFiltersForm: ({ selectTypeSearchResult, selectBlockchainCategoryResult, selectBlockchainTimeResult, handleNeedShowButtons, handleFiltersCount, }: {
|
|
3
3
|
selectTypeSearchResult: optionType[];
|
|
4
4
|
selectBlockchainCategoryResult: optionType[];
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { searchSchema as schema } from '@ludo.ninja/api';
|
|
2
|
-
import { DefaultsCollectionsSearchPageProps, DefaultsNftSearchPageProps } from '
|
|
2
|
+
import { DefaultsCollectionsSearchPageProps, DefaultsNftSearchPageProps } from '../../api/server-preferences/queries/fetchSearchResultSelections/queryData';
|
|
3
3
|
export declare const useSearchFiltersConnector: <TFilterInput extends schema.ICreationFilterInput | schema.ICollectionFilterInput = schema.ICreationFilterInput>({ defaults, isDisabledTypeFilters, isMobile, }: {
|
|
4
4
|
defaults: DefaultsNftSearchPageProps | DefaultsCollectionsSearchPageProps;
|
|
5
5
|
isDisabledTypeFilters?: boolean;
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
interface IShareDialog {
|
|
2
|
+
link: string | null;
|
|
3
|
+
onHide: () => void;
|
|
4
|
+
params?: {
|
|
5
|
+
email?: {
|
|
6
|
+
body?: string;
|
|
7
|
+
separator?: string;
|
|
8
|
+
subject?: string;
|
|
9
|
+
};
|
|
10
|
+
telegram?: {
|
|
11
|
+
title?: string;
|
|
12
|
+
};
|
|
13
|
+
whatsapp?: {
|
|
14
|
+
title?: string;
|
|
15
|
+
separator?: string;
|
|
16
|
+
};
|
|
17
|
+
twitter?: {
|
|
18
|
+
title?: string;
|
|
19
|
+
via?: string;
|
|
20
|
+
hashtags?: string[];
|
|
21
|
+
related?: string[];
|
|
22
|
+
};
|
|
23
|
+
reddit?: {
|
|
24
|
+
title?: string;
|
|
25
|
+
};
|
|
26
|
+
facebook?: {
|
|
27
|
+
quote?: string;
|
|
28
|
+
hashtag?: string;
|
|
29
|
+
};
|
|
30
|
+
};
|
|
31
|
+
}
|
|
32
|
+
declare const ShareDialog: ({ link, onHide, params }: IShareDialog) => import("react/jsx-runtime").JSX.Element;
|
|
33
|
+
export default ShareDialog;
|
|
@@ -0,0 +1,99 @@
|
|
|
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
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
7
|
+
const react_share_1 = require("react-share");
|
|
8
|
+
const styled_components_1 = __importDefault(require("styled-components"));
|
|
9
|
+
const type_1 = require("@ludo.ninja/ui/build/system/Alert/type");
|
|
10
|
+
const _4k_1 = require("@ludo.ninja/ui/build/utils/4k");
|
|
11
|
+
const utils_1 = require("@ludo.ninja/utils");
|
|
12
|
+
const ui_1 = require("../../store/ui");
|
|
13
|
+
const ScreenWidth_1 = require("../../styles/ScreenWidth");
|
|
14
|
+
const colors_1 = require("../../styles/colors");
|
|
15
|
+
const index_1 = require("../../system/index");
|
|
16
|
+
// import CopyIcon from '@/public/share/copy-link-btn.svg';
|
|
17
|
+
// import EmailIcon from '@/public/share/email-btn.svg';
|
|
18
|
+
// import FacebookIcon from '@/public/share/facebook-btn.svg';
|
|
19
|
+
// import InstagramIcon from '@/public/share/insta-btn.svg';
|
|
20
|
+
// import RedditIcon from '@/public/share/reddit-btn.svg';
|
|
21
|
+
// import TelegramIcon from '@/public/share/telegram-btn.svg';
|
|
22
|
+
// import TwitterIcon from '@/public/share/twitter-btn.svg';
|
|
23
|
+
// import WatsUpIcon from '@/public/share/whatsapp-btn.svg';
|
|
24
|
+
// Styles
|
|
25
|
+
const STitle = (0, styled_components_1.default)(index_1.H1) `
|
|
26
|
+
margin-bottom: 24px;
|
|
27
|
+
color: ${colors_1.BlackColor};
|
|
28
|
+
${ScreenWidth_1.mediaQuery.minWidthFourK} {
|
|
29
|
+
margin-bottom: ${(0, _4k_1.adaptiveValueCalc)(24)};
|
|
30
|
+
}
|
|
31
|
+
`;
|
|
32
|
+
const StyledShare = styled_components_1.default.div `
|
|
33
|
+
.shareButtons {
|
|
34
|
+
display: grid;
|
|
35
|
+
grid-template-columns: 1fr 1fr 1fr 1fr;
|
|
36
|
+
row-gap: 24px;
|
|
37
|
+
column-gap: 16px;
|
|
38
|
+
margin: 0 43px 33px 43px;
|
|
39
|
+
justify-content: center;
|
|
40
|
+
|
|
41
|
+
${ScreenWidth_1.mediaQuery.mobile} {
|
|
42
|
+
grid-template-columns: 1fr 1fr;
|
|
43
|
+
justify-items: center;
|
|
44
|
+
align-items: center;
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
.shareBtn {
|
|
49
|
+
width: 108px;
|
|
50
|
+
height: 64px;
|
|
51
|
+
display: flex;
|
|
52
|
+
align-items: center;
|
|
53
|
+
justify-content: space-between;
|
|
54
|
+
flex-direction: column;
|
|
55
|
+
cursor: pointer;
|
|
56
|
+
border: none;
|
|
57
|
+
background-color: transparent;
|
|
58
|
+
|
|
59
|
+
img {
|
|
60
|
+
width: 40px;
|
|
61
|
+
height: 40px;
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
${ScreenWidth_1.mediaQuery.minWidthFourK} {
|
|
66
|
+
.shareButtons {
|
|
67
|
+
row-gap: ${(0, _4k_1.adaptiveValueCalc)(24)};
|
|
68
|
+
column-gap: ${(0, _4k_1.adaptiveValueCalc)(16)};
|
|
69
|
+
margin: 0 ${(0, _4k_1.adaptiveValueCalc)(43)} ${(0, _4k_1.adaptiveValueCalc)(33)}
|
|
70
|
+
${(0, _4k_1.adaptiveValueCalc)(43)};
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
.shareBtn {
|
|
74
|
+
width: ${(0, _4k_1.adaptiveValueCalc)(108)};
|
|
75
|
+
height: ${(0, _4k_1.adaptiveValueCalc)(64)};
|
|
76
|
+
|
|
77
|
+
img {
|
|
78
|
+
width: ${(0, _4k_1.adaptiveValueCalc)(40)};
|
|
79
|
+
height: ${(0, _4k_1.adaptiveValueCalc)(40)};
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
`;
|
|
84
|
+
const ShareDialog = ({ link, onHide, params }) => {
|
|
85
|
+
const url = new URL(link || '');
|
|
86
|
+
url.search = '';
|
|
87
|
+
const urlWithoutGetParameters = url.toString();
|
|
88
|
+
const openAlert = (0, ui_1.useUiStore)((state) => state.openAlert);
|
|
89
|
+
return ((0, jsx_runtime_1.jsxs)(StyledShare, { children: [(0, jsx_runtime_1.jsx)(index_1.Flex, { alignItems: 'center', justifyContent: 'center', children: (0, jsx_runtime_1.jsx)(STitle, { children: 'Share to...' }) }), (0, jsx_runtime_1.jsxs)("div", { className: "shareButtons", children: [(0, jsx_runtime_1.jsxs)("button", { onClick: () => {
|
|
90
|
+
onHide();
|
|
91
|
+
(0, utils_1.copyToClipboard)(urlWithoutGetParameters).then(() => {
|
|
92
|
+
openAlert({
|
|
93
|
+
type: type_1.alertVariants.copied,
|
|
94
|
+
});
|
|
95
|
+
});
|
|
96
|
+
}, className: 'shareBtn', children: [(0, jsx_runtime_1.jsx)("img", { src: "/share/copy-link-btn.svg", alt: "share", height: 40, width: 40 }), (0, jsx_runtime_1.jsx)(index_1.H5, { color: colors_1.TextGrayColor, children: "Copy Link" })] }), (0, jsx_runtime_1.jsxs)(react_share_1.EmailShareButton, { url: urlWithoutGetParameters, body: params?.email?.body, separator: params?.email?.separator, subject: params?.email?.subject, className: "shareBtn", onClick: onHide, children: [(0, jsx_runtime_1.jsx)("img", { src: "/share/email-btn.svg", alt: "email", height: 40, width: 40 }), (0, jsx_runtime_1.jsx)(index_1.H5, { color: colors_1.TextGrayColor, children: "Email" })] }), (0, jsx_runtime_1.jsxs)(react_share_1.TelegramShareButton, { url: urlWithoutGetParameters, title: params?.telegram?.title, className: "shareBtn", onClick: onHide, children: [(0, jsx_runtime_1.jsx)("img", { src: "/share/telegram-btn.svg", alt: "telegram", height: 40, width: 40 }), (0, jsx_runtime_1.jsx)(index_1.H5, { color: colors_1.TextGrayColor, children: "Telegram" })] }), (0, jsx_runtime_1.jsxs)(react_share_1.WhatsappShareButton, { url: urlWithoutGetParameters, title: params?.whatsapp?.title, separator: params?.whatsapp?.separator, className: "shareBtn", onClick: onHide, children: [(0, jsx_runtime_1.jsx)("img", { src: "/share/whatsapp-btn.svg", alt: "whatsapp", height: 40, width: 40 }), (0, jsx_runtime_1.jsx)(index_1.H5, { color: colors_1.TextGrayColor, children: "WhatsApp" })] }), (0, jsx_runtime_1.jsxs)(react_share_1.TwitterShareButton, { url: urlWithoutGetParameters, title: params?.twitter?.title, via: params?.twitter?.via, related: params?.twitter?.related, hashtags: params?.twitter?.hashtags, className: "shareBtn", onClick: onHide, children: [(0, jsx_runtime_1.jsx)("img", { src: "/share/twitter-btn.svg", alt: "twitter", width: 40, height: 40 }), (0, jsx_runtime_1.jsx)(index_1.H5, { color: colors_1.TextGrayColor, children: "Twitter" })] }), (0, jsx_runtime_1.jsxs)(react_share_1.RedditShareButton, { url: urlWithoutGetParameters, title: params?.reddit?.title, className: "shareBtn", onClick: onHide, children: [(0, jsx_runtime_1.jsx)("img", { src: "/share/reddit-btn.svg", alt: "reddit", width: 40, height: 40 }), (0, jsx_runtime_1.jsx)(index_1.H5, { color: colors_1.TextGrayColor, children: "Reddit" })] }), (0, jsx_runtime_1.jsxs)(react_share_1.FacebookShareButton, { url: urlWithoutGetParameters, quote: params?.facebook?.quote || 'My cool NFT', hashtag: params?.facebook?.hashtag || '#ludo', className: "shareBtn", onClick: onHide, children: [(0, jsx_runtime_1.jsx)("img", { src: "/share/facebook-btn.svg", alt: "facebook", width: 40, height: 40 }), (0, jsx_runtime_1.jsx)(index_1.H5, { color: colors_1.TextGrayColor, children: "Facebook" })] })] })] }));
|
|
97
|
+
};
|
|
98
|
+
// Export
|
|
99
|
+
exports.default = ShareDialog;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { assetSchema as schema } from '@ludo.ninja/api';
|
|
2
2
|
import { BlockChainEntity, MarketPlaceEntity } from '@ludo.ninja/core';
|
|
3
|
-
import IAssetEntity from '
|
|
4
|
-
import { LabelKeys } from '
|
|
5
|
-
import Media from '
|
|
3
|
+
import IAssetEntity from './interface';
|
|
4
|
+
import { LabelKeys } from '../common/ItemType';
|
|
5
|
+
import Media from '../common/Media';
|
|
6
6
|
declare class AssetEntity implements IAssetEntity {
|
|
7
7
|
private assetId;
|
|
8
8
|
private blockchain;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { assetSchema as schema } from '@ludo.ninja/api';
|
|
2
2
|
import { BlockChainEntity, MarketPlaceEntity } from '@ludo.ninja/core';
|
|
3
|
-
import Media from '
|
|
3
|
+
import Media from '../common/Media';
|
|
4
4
|
import { LabelKeys } from '../common/ItemType';
|
|
5
5
|
interface IAssetEntity {
|
|
6
6
|
getAssetId(): string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import Audio from '
|
|
2
|
-
import { BasicMediaType, TGetMediaUrlFunc } from '
|
|
1
|
+
import Audio from '../../../common/Media/Audio';
|
|
2
|
+
import { BasicMediaType, TGetMediaUrlFunc } from '../../../common/Media/interface';
|
|
3
3
|
declare class AssetAudio extends Audio {
|
|
4
4
|
constructor({ media, mimeType, previewUrl, nsfw, alt, originalMime, }: BasicMediaType);
|
|
5
5
|
getMediaUrl(): TGetMediaUrlFunc;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import Image from '
|
|
2
|
-
import { BasicMediaType } from '
|
|
1
|
+
import Image from '../../../common/Media/Image';
|
|
2
|
+
import { BasicMediaType } from '../../../common/Media/interface';
|
|
3
3
|
declare class AssetImage extends Image {
|
|
4
4
|
constructor({ media, mimeType, previewUrl, nsfw, originalUrl, alt, originalMime, }: BasicMediaType);
|
|
5
5
|
getMediaUrl(): (NEXT_PUBLIC_STATIC_DOMAIN: string) => string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import Object from '
|
|
2
|
-
import { BasicMediaType, TGetMediaUrlFunc } from '
|
|
1
|
+
import Object from '../../../common/Media/Object';
|
|
2
|
+
import { BasicMediaType, TGetMediaUrlFunc } from '../../../common/Media/interface';
|
|
3
3
|
declare class AssetObject extends Object {
|
|
4
4
|
constructor({ media, mimeType, previewUrl, nsfw, originalUrl, alt, originalMime, }: BasicMediaType);
|
|
5
5
|
getMediaUrl(): TGetMediaUrlFunc;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import OtherClass from '
|
|
2
|
-
import { BasicMediaType } from '
|
|
1
|
+
import OtherClass from '../../../common/Media/Other';
|
|
2
|
+
import { BasicMediaType } from '../../../common/Media/interface';
|
|
3
3
|
declare class AssetOther extends OtherClass {
|
|
4
4
|
constructor({ media, mimeType, previewUrl, nsfw, originalUrl, alt, originalMime, }: BasicMediaType);
|
|
5
5
|
getMediaUrl(): (NEXT_PUBLIC_STATIC_DOMAIN: string) => string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import Screenshot from '
|
|
2
|
-
import { BasicMediaType } from '
|
|
1
|
+
import Screenshot from '../../../common/Media/Screenshot';
|
|
2
|
+
import { BasicMediaType } from '../../../common/Media/interface';
|
|
3
3
|
declare class AssetScreenshot extends Screenshot {
|
|
4
4
|
constructor({ media, mimeType, previewUrl, nsfw, originalUrl, alt, originalMime, }: BasicMediaType);
|
|
5
5
|
getMediaUrl(): (NEXT_PUBLIC_STATIC_DOMAIN: string) => string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import Video from '
|
|
2
|
-
import { BasicMediaType, TGetMediaUrlFunc } from '
|
|
1
|
+
import Video from '../../../common/Media/Video';
|
|
2
|
+
import { BasicMediaType, TGetMediaUrlFunc } from '../../../common/Media/interface';
|
|
3
3
|
declare class AssetVideo extends Video {
|
|
4
4
|
constructor({ media, mimeType, previewUrl, nsfw, alt, originalMime, }: BasicMediaType);
|
|
5
5
|
getMediaUrl(): TGetMediaUrlFunc;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import AssetAudio from '
|
|
2
|
-
import AssetImage from '
|
|
3
|
-
import AssetOther from '
|
|
4
|
-
import AssetScreenshot from '
|
|
5
|
-
import AssetVideo from '
|
|
1
|
+
import AssetAudio from './AssetAudio';
|
|
2
|
+
import AssetImage from './AssetImage';
|
|
3
|
+
import AssetOther from './AssetOther';
|
|
4
|
+
import AssetScreenshot from './AssetScreenshot';
|
|
5
|
+
import AssetVideo from './AssetVideo';
|
|
6
6
|
export { AssetImage, AssetAudio, AssetScreenshot, AssetVideo, AssetOther };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { collectionsSchema as schema } from '@ludo.ninja/api';
|
|
2
2
|
import { BlockChainEntity } from '@ludo.ninja/core';
|
|
3
|
-
import ICollectionCreationEntity from '
|
|
4
|
-
import { LabelKeys, LabelType } from '
|
|
5
|
-
import Media from '
|
|
3
|
+
import ICollectionCreationEntity from './interface';
|
|
4
|
+
import { LabelKeys, LabelType } from '../../common/ItemType';
|
|
5
|
+
import Media from '../../common/Media';
|
|
6
6
|
declare class CollectionCreationEntity implements ICollectionCreationEntity {
|
|
7
7
|
private collectionId;
|
|
8
8
|
private collectionTitle;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { BlockChainEntity } from '@ludo.ninja/core';
|
|
2
|
-
import { LabelKeys, LabelType } from '
|
|
3
|
-
import Media from '
|
|
2
|
+
import { LabelKeys, LabelType } from '../../common/ItemType';
|
|
3
|
+
import Media from '../../common/Media';
|
|
4
4
|
interface ICollectionCreationEntity {
|
|
5
5
|
getItemType(): LabelKeys;
|
|
6
6
|
getId(): string;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { collectionsSchema } from '@ludo.ninja/api';
|
|
2
2
|
import { BlockChainEntity, MarketPlaceEntity, ProfileEntity } from '@ludo.ninja/core';
|
|
3
|
-
import ICollectionEntity from '
|
|
3
|
+
import ICollectionEntity from './interface';
|
|
4
4
|
declare class CollectionEntity implements ICollectionEntity {
|
|
5
5
|
private collectionTitle;
|
|
6
6
|
private collectionId;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { searchSchema as schema } from '@ludo.ninja/api';
|
|
2
2
|
import { BlockChainEntity } from '@ludo.ninja/core';
|
|
3
|
-
import ICreationEntity from '
|
|
4
|
-
import { LabelKeys, LabelType } from '
|
|
5
|
-
import Media from '
|
|
3
|
+
import ICreationEntity from './interface';
|
|
4
|
+
import { LabelKeys, LabelType } from '../common/ItemType';
|
|
5
|
+
import Media from '../common/Media';
|
|
6
6
|
declare class CreationEntity implements ICreationEntity {
|
|
7
7
|
private itemId;
|
|
8
8
|
private itemType;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import Audio from '
|
|
2
|
-
import { BasicMediaType, TGetMediaUrlFunc } from '
|
|
1
|
+
import Audio from '../../Media/Audio';
|
|
2
|
+
import { BasicMediaType, TGetMediaUrlFunc } from '../../Media/interface';
|
|
3
3
|
declare class CreationAudio extends Audio {
|
|
4
4
|
constructor({ media, mimeType, previewUrl, nsfw, alt, originalMime, }: BasicMediaType);
|
|
5
5
|
getMediaUrl(): TGetMediaUrlFunc;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import Image from '
|
|
2
|
-
import { BasicMediaType } from '
|
|
1
|
+
import Image from '../../Media/Image';
|
|
2
|
+
import { BasicMediaType } from '../../Media/interface';
|
|
3
3
|
declare class CreationImage extends Image {
|
|
4
4
|
constructor({ media, mimeType, previewUrl, nsfw, originalUrl, alt, originalMime, }: BasicMediaType);
|
|
5
5
|
getMediaUrl(): (NEXT_PUBLIC_STATIC_DOMAIN: string) => string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import Object from '
|
|
2
|
-
import { BasicMediaType } from '
|
|
1
|
+
import Object from '../../Media/Object';
|
|
2
|
+
import { BasicMediaType } from '../../Media/interface';
|
|
3
3
|
declare class CreationObject extends Object {
|
|
4
4
|
constructor({ media, mimeType, previewUrl, nsfw, alt, originalMime, }: BasicMediaType);
|
|
5
5
|
displaySingleMedia(): JSX.Element;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import Other from '
|
|
2
|
-
import { BasicMediaType } from '
|
|
1
|
+
import Other from '../../Media/Other';
|
|
2
|
+
import { BasicMediaType } from '../../Media/interface';
|
|
3
3
|
declare class CreationOther extends Other {
|
|
4
4
|
constructor({ media, mimeType, previewUrl, nsfw, alt, originalMime, }: BasicMediaType);
|
|
5
5
|
getMediaUrl(): (NEXT_PUBLIC_STATIC_DOMAIN: string) => string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import Video from '
|
|
2
|
-
import { BasicMediaType, TGetMediaUrlFunc } from '
|
|
1
|
+
import Video from '../../Media/Video';
|
|
2
|
+
import { BasicMediaType, TGetMediaUrlFunc } from '../../Media/interface';
|
|
3
3
|
declare class CreationVideo extends Video {
|
|
4
4
|
constructor({ media, mimeType, previewUrl, nsfw, alt, originalMime, }: BasicMediaType);
|
|
5
5
|
getMediaUrl(): TGetMediaUrlFunc;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import Media from '
|
|
2
|
-
import { BasicMediaType, TGetMediaUrlFunc } from '
|
|
1
|
+
import Media from '..';
|
|
2
|
+
import { BasicMediaType, TGetMediaUrlFunc } from '../interface';
|
|
3
3
|
declare class Audio extends Media {
|
|
4
4
|
constructor({ media, mimeType, previewUrl, nsfw, alt, originalMime, }: BasicMediaType);
|
|
5
5
|
checkOwnType(): boolean;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import Media from '
|
|
2
|
-
import { BasicMediaType, TGetMediaUrlStr } from '
|
|
1
|
+
import Media from '..';
|
|
2
|
+
import { BasicMediaType, TGetMediaUrlStr } from '../interface';
|
|
3
3
|
declare class Image extends Media {
|
|
4
4
|
constructor({ media, mimeType, previewUrl, nsfw, originalUrl, alt, originalMime, }: BasicMediaType);
|
|
5
5
|
checkOwnType(): boolean;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import Media from '
|
|
2
|
-
import { BasicMediaType, TGetMediaUrlFunc } from '
|
|
1
|
+
import Media from '..';
|
|
2
|
+
import { BasicMediaType, TGetMediaUrlFunc } from '../interface';
|
|
3
3
|
declare class ObjectMedia extends Media {
|
|
4
4
|
constructor({ media, mimeType, previewUrl, nsfw, alt, originalMime, originalUrl, }: BasicMediaType);
|
|
5
5
|
checkOwnType(): boolean;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import Media from '
|
|
2
|
-
import { BasicMediaType, TGetMediaUrlStr } from '
|
|
1
|
+
import Media from '..';
|
|
2
|
+
import { BasicMediaType, TGetMediaUrlStr } from '../interface';
|
|
3
3
|
declare class Other extends Media {
|
|
4
4
|
constructor({ media, mimeType, previewUrl, nsfw, originalUrl, alt, originalMime, }: BasicMediaType);
|
|
5
5
|
checkOwnType(): boolean;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import Media from '
|
|
2
|
-
import { BasicMediaType, TGetMediaUrlStr } from '
|
|
1
|
+
import Media from '..';
|
|
2
|
+
import { BasicMediaType, TGetMediaUrlStr } from '../interface';
|
|
3
3
|
declare class Screenshot extends Media {
|
|
4
4
|
constructor({ media, mimeType, previewUrl, nsfw, originalUrl, alt, originalMime, }: BasicMediaType);
|
|
5
5
|
checkOwnType(): boolean;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import Media from '
|
|
2
|
-
import { BasicMediaType, TGetMediaUrlFunc } from '
|
|
1
|
+
import Media from '..';
|
|
2
|
+
import { BasicMediaType, TGetMediaUrlFunc } from '../interface';
|
|
3
3
|
declare class Video extends Media {
|
|
4
4
|
constructor({ media, mimeType, previewUrl, nsfw, alt, originalMime, }: BasicMediaType);
|
|
5
5
|
checkOwnType(): boolean;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { BasicMediaType, IMedia, TGetMediaUrlFunc, TGetMediaUrlStr } from '
|
|
1
|
+
import { BasicMediaType, IMedia, TGetMediaUrlFunc, TGetMediaUrlStr } from './interface';
|
|
2
2
|
declare abstract class Media implements IMedia {
|
|
3
3
|
protected readonly media: string | null;
|
|
4
4
|
protected readonly originalUrl: string | null | undefined;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import ICreationEntity from '
|
|
1
|
+
import ICreationEntity from '../../CreationEntity/interface';
|
|
2
2
|
export type TGetMediaUrlFunc = (getENVDomain: (env?: string) => string, isExternalImage?: boolean) => string;
|
|
3
3
|
export type TGetMediaUrlStr = (getENVDomain: string, isExternalImage?: boolean) => string;
|
|
4
4
|
export interface IMedia {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { IQueryFetchGalleryV2Args } from '@ludo.ninja/api/build/graphql_tools/__generated__/galleriesHost/schema';
|
|
2
|
-
import CollectionCreationEntity from '
|
|
3
|
-
import CreationEntity from '
|
|
4
|
-
import GalleryEntityV2 from '
|
|
2
|
+
import CollectionCreationEntity from '../../../dto/Collection/CollectionCreationEntity';
|
|
3
|
+
import CreationEntity from '../../../dto/CreationEntity';
|
|
4
|
+
import GalleryEntityV2 from '../../../dto/GalleryEntityV2';
|
|
5
5
|
declare const useGetFavoriteGallaryCreations: ({ galleryId, itemsCount, }: {
|
|
6
6
|
galleryId: string;
|
|
7
7
|
itemsCount: number | null;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { IQueryFetchUserFavoritesV2Args } from '@ludo.ninja/api/build/graphql_tools/__generated__/galleriesHost/schema';
|
|
2
|
-
import CollectionCreationEntity from '
|
|
3
|
-
import CreationEntity from '
|
|
4
|
-
import GalleryEntityV2 from '
|
|
2
|
+
import CollectionCreationEntity from '../../../dto/Collection/CollectionCreationEntity';
|
|
3
|
+
import CreationEntity from '../../../dto/CreationEntity';
|
|
4
|
+
import GalleryEntityV2 from '../../../dto/GalleryEntityV2';
|
|
5
5
|
declare const useGetUserFevoritesCreations: ({ userId, pageSize, pageToken, }: IQueryFetchUserFavoritesV2Args) => {
|
|
6
6
|
favorites: GalleryEntityV2[];
|
|
7
7
|
assets: CreationEntity[] | null;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { IQueryFetchUserGalleriesV2Args } from '@ludo.ninja/api/build/graphql_tools/__generated__/galleriesHost/schema';
|
|
2
|
-
import CollectionCreationEntity from '
|
|
3
|
-
import CreationEntity from '
|
|
4
|
-
import GalleryEntityV2 from '
|
|
2
|
+
import CollectionCreationEntity from '../../../dto/Collection/CollectionCreationEntity';
|
|
3
|
+
import CreationEntity from '../../../dto/CreationEntity';
|
|
4
|
+
import GalleryEntityV2 from '../../../dto/GalleryEntityV2';
|
|
5
5
|
declare const useGetUserGalleriesCreations: ({ userId, pageSize, pageToken, }: IQueryFetchUserGalleriesV2Args) => {
|
|
6
6
|
galleries: GalleryEntityV2[];
|
|
7
7
|
assets: CreationEntity[] | null;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { IDynamicCollectionData, IQueryFindCollectionsArgs } from '@ludo.ninja/api/build/graphql_tools/__generated__/searchHost/schema';
|
|
2
|
-
import CollectionCreationEntity from '
|
|
2
|
+
import CollectionCreationEntity from '../../../dto/Collection/CollectionCreationEntity';
|
|
3
3
|
export declare const useFindCollectionsAndLikes: ({ term, input, page, }: IQueryFindCollectionsArgs) => {
|
|
4
4
|
loadMore: (pageToken: string) => Promise<void>;
|
|
5
5
|
loading: boolean;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { IDynamicAssetData, IQueryFindCreationsArgs } from '@ludo.ninja/api/build/graphql_tools/__generated__/searchHost/schema';
|
|
2
|
-
import CreationEntity from '
|
|
2
|
+
import CreationEntity from '../../../dto/CreationEntity';
|
|
3
3
|
declare const useFindCreationsAndLikes: ({ term, input, page, }: IQueryFindCreationsArgs) => {
|
|
4
4
|
loading: boolean;
|
|
5
5
|
assetsLikesLoading: boolean;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { IDynamicAssetData, IQueryFetchDynamicCollectionDataArgs } from '@ludo.ninja/api/build/graphql_tools/__generated__/searchHost/schema';
|
|
2
|
-
import CollectionCreationEntity from '
|
|
2
|
+
import CollectionCreationEntity from '../../../dto/Collection/CollectionCreationEntity';
|
|
3
3
|
declare const useGetCollectionInfoAndLikes: ({ input, }: IQueryFetchDynamicCollectionDataArgs) => {
|
|
4
4
|
collectionAssetsList: CollectionCreationEntity[];
|
|
5
5
|
collectionItemsLikes: [] | IDynamicAssetData[];
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { IDynamicAssetData, IDynamicCollectionData, IQueryFetchAllCreationsArgs } from '@ludo.ninja/api/build/graphql_tools/__generated__/searchHost/schema';
|
|
2
|
-
import CollectionCreationEntity from '
|
|
3
|
-
import CreationEntity from '
|
|
2
|
+
import CollectionCreationEntity from '../../../dto/Collection/CollectionCreationEntity';
|
|
3
|
+
import CreationEntity from '../../../dto/CreationEntity';
|
|
4
4
|
declare const useGetCreationsAndLikes: ({ page }: IQueryFetchAllCreationsArgs) => {
|
|
5
5
|
loading: boolean;
|
|
6
6
|
assetsLikesLoading: boolean;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { IDynamicAssetData, IDynamicCollectionData, IQueryFetchCreationsByTypeArgs } from '@ludo.ninja/api/build/graphql_tools/__generated__/searchHost/schema';
|
|
2
|
-
import CreationEntity from '
|
|
2
|
+
import CreationEntity from '../../../dto/CreationEntity';
|
|
3
3
|
declare const useGetCreationsAndLikesByType: ({ itemType, page, }: IQueryFetchCreationsByTypeArgs) => {
|
|
4
4
|
loading: boolean;
|
|
5
5
|
assetsLikesLoading: boolean;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { searchSchema as schema } from '@ludo.ninja/api';
|
|
2
|
-
import CollectionCreationEntity from '
|
|
3
|
-
import CreationEntity from '
|
|
2
|
+
import CollectionCreationEntity from '../../../dto/Collection/CollectionCreationEntity';
|
|
3
|
+
import CreationEntity from '../../../dto/CreationEntity';
|
|
4
4
|
declare const useGetMixedLikesFavoriteList: ({ galleryId, itemsCount, }: {
|
|
5
5
|
galleryId: string;
|
|
6
6
|
itemsCount: number | null;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { searchSchema as schema } from '@ludo.ninja/api';
|
|
2
|
-
import CollectionCreationEntity from '
|
|
3
|
-
import CreationEntity from '
|
|
2
|
+
import CollectionCreationEntity from '../../../dto/Collection/CollectionCreationEntity';
|
|
3
|
+
import CreationEntity from '../../../dto/CreationEntity';
|
|
4
4
|
declare const useGetTableLikes: ({ allItems, }: {
|
|
5
5
|
allItems: Array<CreationEntity | CollectionCreationEntity>;
|
|
6
6
|
}) => {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { RemoveToolsType } from '
|
|
2
|
-
import { LabelKeys } from '
|
|
1
|
+
import { RemoveToolsType } from '../../system/Cards/CreationCard';
|
|
2
|
+
import { LabelKeys } from '../../dto/common/ItemType';
|
|
3
3
|
export type LikesType = {
|
|
4
4
|
likesCount: number;
|
|
5
5
|
isLiked: boolean;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { ReactElement, ReactNode } from 'react';
|
|
2
|
-
import { PageLWithRegularHeader } from '
|
|
3
|
-
import { PageLWithSearchHeader } from '
|
|
2
|
+
import { PageLWithRegularHeader } from './base/LWithRegularHeader/type';
|
|
3
|
+
import { PageLWithSearchHeader } from './base/LWithSearchHeader/type';
|
|
4
4
|
export type PageWithLayoutType = PageLWithRegularHeader | PageLWithSearchHeader;
|
|
5
5
|
export type LayoutProps = ({ children, }: {
|
|
6
6
|
children: ReactNode;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import GalleryEntityV2 from '
|
|
2
|
-
import { TCreationAndCollection } from '
|
|
3
|
-
import { TActiveTab } from '
|
|
4
|
-
import { TCurrentItemType } from '
|
|
5
|
-
import { TOpportunity } from '
|
|
1
|
+
import GalleryEntityV2 from '../../../dto/GalleryEntityV2';
|
|
2
|
+
import { TCreationAndCollection } from '../../virtuoso/types';
|
|
3
|
+
import { TActiveTab } from '../../../system/Tabs/TabsNav/type';
|
|
4
|
+
import { TCurrentItemType } from '../../../hooks/likes/useGetLikesAsset';
|
|
5
|
+
import { TOpportunity } from '../../opportunity/type';
|
|
6
6
|
export type TCreationWithOpportunity = TCreationAndCollection | TOpportunity;
|
|
7
7
|
export declare const useGetAssetsAndCollectionForFavorite: <TCreations>({ gallery, activeTab, fetchLikes, }: {
|
|
8
8
|
gallery: GalleryEntityV2;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import GalleryEntityV2 from '
|
|
1
|
+
import GalleryEntityV2 from '../../../dto/GalleryEntityV2';
|
|
2
2
|
export declare const EditGallery: ({ galleryId, handleRemoveAsset, gallery, titleAssets, titleForm, inputPlaceHolderText, }: {
|
|
3
3
|
gallery: GalleryEntityV2;
|
|
4
4
|
galleryId: string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import GalleryEntityV2 from '
|
|
1
|
+
import GalleryEntityV2 from '../../../../../dto/GalleryEntityV2';
|
|
2
2
|
declare const ChooseItem: ({ galleryItem, handleIsSelected, isSelected, }: {
|
|
3
3
|
galleryItem: GalleryEntityV2;
|
|
4
4
|
handleIsSelected: (arg: GalleryEntityV2) => void;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import CollectionCreationEntity from '
|
|
2
|
-
import CreationEntity from '
|
|
3
|
-
import { TVirtuosoData } from '
|
|
1
|
+
import CollectionCreationEntity from '../../../../dto/Collection/CollectionCreationEntity';
|
|
2
|
+
import CreationEntity from '../../../../dto/CreationEntity';
|
|
3
|
+
import { TVirtuosoData } from '../../../virtuoso/types';
|
|
4
4
|
export declare const useVirtuosoData: <TData>({ creations, isMobile, }: {
|
|
5
5
|
isMobile: boolean;
|
|
6
6
|
creations: TData[];
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { TOpportunity } from '
|
|
1
|
+
import { TOpportunity } from './type';
|
|
2
2
|
export declare const OpportunityCard: ({ opportunity, toolsForRemove, }: {
|
|
3
3
|
opportunity: TOpportunity;
|
|
4
4
|
toolsForRemove?: ((itemType: "asset" | "collection" | "opportunity") => void) | undefined;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { TOpportunity } from '
|
|
1
|
+
import { TOpportunity } from './type';
|
|
2
2
|
export declare const GOOGLE_FORM_REPORT_OPPORTUNITY = "https://docs.google.com/forms/d/e/1FAIpQLScjeZ0ZHrsOKteM1FtWx6GfolXfWa9W2JFSwpwwI_sz-dsrkg/viewform";
|
|
3
3
|
export declare const OpportunityDropDown: ({ opportunity, }: {
|
|
4
4
|
opportunity: TOpportunity;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { RefObject } from 'react';
|
|
2
2
|
import { VirtuosoHandle } from 'react-virtuoso';
|
|
3
|
-
import { TVirtuosoData } from '
|
|
4
|
-
import { TActiveTab } from '
|
|
3
|
+
import { TVirtuosoData } from '../virtuoso/types';
|
|
4
|
+
import { TActiveTab } from '../../system/Tabs/TabsNav/type';
|
|
5
5
|
export declare const useVirtuosoInitialScroll: <TData>({ virtuosoData, activeTab, virtuoso, }: {
|
|
6
6
|
virtuosoData: TVirtuosoData<TData>;
|
|
7
7
|
activeTab: TActiveTab;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { IUser } from '
|
|
1
|
+
import { IUser } from '../../../entities/user/type';
|
|
2
2
|
export declare const useSignIn: () => (user: IUser) => void;
|
|
@@ -2,7 +2,7 @@ import { ApolloError } from '@apollo/client';
|
|
|
2
2
|
import { experiencesSchema as schema } from '@ludo.ninja/api';
|
|
3
3
|
import { identitySchema } from '@ludo.ninja/api';
|
|
4
4
|
import { ProfileEntity } from '@ludo.ninja/core';
|
|
5
|
-
import { IUser } from '
|
|
5
|
+
import { IUser } from '../../entities/user/type';
|
|
6
6
|
type TMyProfile = identitySchema.IFetchMyProfileV2Query['fetchMyProfileV2'];
|
|
7
7
|
export interface IUserStore {
|
|
8
8
|
user: IUser | null;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ReactNode } from 'react';
|
|
2
2
|
import { ApolloError } from '@apollo/client';
|
|
3
|
-
import { TActiveTab } from '
|
|
4
|
-
import { TDimensions } from '
|
|
3
|
+
import { TActiveTab } from '../../system/Tabs/TabsNav/type';
|
|
4
|
+
import { TDimensions } from '../../utils/screen';
|
|
5
5
|
export declare const VirtuosoPageBuilder: <TCreation>({ activeTab, isMobile, creations, windowDimensions, isLoading, error, refetchQuery, loadMore, renderCreation, notFoundText, isNextLoading, headerSlot, isProfileCards, }: {
|
|
6
6
|
activeTab: TActiveTab;
|
|
7
7
|
isMobile: boolean;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import CollectionCreationEntity from '
|
|
2
|
-
import CreationEntity from '
|
|
1
|
+
import CollectionCreationEntity from '../../dto/Collection/CollectionCreationEntity';
|
|
2
|
+
import CreationEntity from '../../dto/CreationEntity';
|
|
3
3
|
export type TCreationAndCollection = CreationEntity | CollectionCreationEntity;
|
|
4
4
|
export type TVirtuosoData<TData> = {
|
|
5
5
|
creationPacks: TData[][];
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { TVirtuosoData } from '
|
|
2
|
-
import { TActiveTab } from '
|
|
1
|
+
import { TVirtuosoData } from './types';
|
|
2
|
+
import { TActiveTab } from '../../system/Tabs/TabsNav/type';
|
|
3
3
|
export declare const useVirtuosoData: <TData>({ activeTab, creations, isMobile, isThreeColumn, isProfileCards, }: {
|
|
4
4
|
activeTab: TActiveTab;
|
|
5
5
|
isMobile: boolean;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { IMediaStore } from '
|
|
1
|
+
import { IMediaStore } from './types';
|
|
2
2
|
export declare const useMediaStore: import("zustand/traditional").UseBoundStoreWithEqualityFn<import("zustand").StoreApi<IMediaStore>>;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { CSSProperties } from 'react';
|
|
2
2
|
import { DefaultTheme } from 'styled-components';
|
|
3
|
-
import { TNotificationData, TNotifications } from '
|
|
4
|
-
import { alertTypeProps } from '
|
|
5
|
-
import { ThemeEnum } from '
|
|
3
|
+
import { TNotificationData, TNotifications } from '../../modules/notifications';
|
|
4
|
+
import { alertTypeProps } from '../../system/Alert/type';
|
|
5
|
+
import { ThemeEnum } from '../../dto/Theme/interface';
|
|
6
6
|
export interface IUiStore {
|
|
7
7
|
theme: DefaultTheme;
|
|
8
8
|
toggleTheme: (theme: DefaultTheme, themeName: keyof typeof ThemeEnum) => void;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import CollectionCreationEntity from '
|
|
2
|
-
import CreationEntity from '
|
|
1
|
+
import CollectionCreationEntity from '../../../dto/Collection/CollectionCreationEntity';
|
|
2
|
+
import CreationEntity from '../../../dto/CreationEntity';
|
|
3
3
|
export declare const CardHead: ({ creation, isRegularCard, isIconLiked, addLikeToCard, deleteLikeFromCard, isUserProfile, isDisabled, isShowCheckbox, currentMyGalleryId, }: {
|
|
4
4
|
creation: CreationEntity | CollectionCreationEntity;
|
|
5
5
|
isRegularCard: boolean;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { searchSchema as schema } from '@ludo.ninja/api';
|
|
2
|
-
import GalleryEntityV2 from '
|
|
3
|
-
import { TCreationAndCollection } from '
|
|
2
|
+
import GalleryEntityV2 from '../../../dto/GalleryEntityV2';
|
|
3
|
+
import { TCreationAndCollection } from '../../../modules/virtuoso/types';
|
|
4
4
|
export type RemoveToolsType = {
|
|
5
5
|
gallery?: GalleryEntityV2;
|
|
6
6
|
removeFn: (itemType: 'asset' | 'collection') => void;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import CollectionCreationEntity from '
|
|
2
|
-
import CreationEntity from '
|
|
3
|
-
import GalleryEntityV2 from '
|
|
1
|
+
import CollectionCreationEntity from '../../../dto/Collection/CollectionCreationEntity';
|
|
2
|
+
import CreationEntity from '../../../dto/CreationEntity';
|
|
3
|
+
import GalleryEntityV2 from '../../../dto/GalleryEntityV2';
|
|
4
4
|
declare const MultiMediaCard: ({ gallery, assets, collections, }: {
|
|
5
5
|
gallery: GalleryEntityV2;
|
|
6
6
|
assets: CreationEntity[] | null;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { ICollectionFilterInput, ICreationFilterInput } from '@ludo.ninja/api/build/graphql_tools/__generated__/searchHost/schema';
|
|
3
|
-
import { ISelectInput } from '
|
|
3
|
+
import { ISelectInput } from '../MobileSelect';
|
|
4
4
|
interface Props {
|
|
5
5
|
options: ISelectInput[];
|
|
6
6
|
defaultOptionValue: string;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export * from '
|
|
2
|
-
export * from '
|
|
3
|
-
export * from '
|
|
1
|
+
export * from './ExternalImage';
|
|
2
|
+
export * from './Userpic';
|
|
3
|
+
export * from './Profilepic';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { TabsNavType } from '
|
|
2
|
+
import { TabsNavType } from '../TabsNav/type';
|
|
3
3
|
export declare const StyledTabsNavLink: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
|
|
4
4
|
isActive: boolean;
|
|
5
5
|
}>> & string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { TActiveTab, TabsNavType } from '
|
|
2
|
+
import { TActiveTab, TabsNavType } from './type';
|
|
3
3
|
export declare const StyledTabsNav: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
4
4
|
interface Props {
|
|
5
5
|
tabsData: TabsNavType[];
|
package/build/system/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export * from '
|
|
1
|
+
export * from './Img';
|
|
2
2
|
export * from '@ludo.ninja/ui/build/system/Box';
|
|
3
3
|
export * from '@ludo.ninja/ui/build/system/Flex';
|
|
4
4
|
export * from '@ludo.ninja/ui/build/system/Grid';
|
|
5
5
|
export * from '@ludo.ninja/ui/build/system/Text';
|
|
6
|
-
export * from '
|
|
6
|
+
export * from './theme';
|