@ludo.ninja/components 2.1.78 → 2.1.80
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/components/assetPage/audioVideoPlayer/index.d.ts +2 -2
- package/build/components/sidebar/sidebarSpa.d.ts +2 -2
- package/build/fonts/FontsInitializeLayout.d.ts +1 -1
- package/build/layouts/custom/styles.d.ts +2 -2
- package/build/modules/gallery/ui/STopSections.d.ts +1 -1
- package/build/modules/user/auth/useVerification.js +3 -1
- package/build/styles/animations/index.d.ts +2 -2
- package/build/styles/globalStyles.d.ts +1 -1
- package/build/styles/mixins/boxShadow.d.ts +1 -1
- package/build/styles/mixins/boxTransform.d.ts +1 -1
- package/build/system/Cards/CardContent/CardShowMore/index.d.ts +1 -2
- package/build/system/Cards/Styles/Content.d.ts +1 -1
- package/build/system/Cards/Styles/Head.d.ts +1 -1
- package/build/system/Cards/Styles/Headicons.d.ts +2 -2
- package/build/system/Cards/Styles/Image.d.ts +2 -2
- package/build/system/Cards/Styles/Likes.d.ts +2 -2
- package/build/system/Cards/Styles/MultiHead.d.ts +1 -1
- package/build/system/Cards/Styles/Video.d.ts +1 -1
- package/build/system/Forms/Input/index.d.ts +2 -2
- package/build/system/Modals/ModalSidebar/index.d.ts +1 -2
- package/build/system/Tabs/TabNavLink/index.d.ts +2 -2
- package/build/system/Tabs/TabsNav/index.d.ts +1 -1
- package/package.json +1 -1
- package/build/api/server-search/queries/useFetchCollection/index.d.ts +0 -19
- package/build/api/server-search/queries/useFetchCollection/index.js +0 -59
|
@@ -66,11 +66,11 @@ export interface PlayerStateTypes {
|
|
|
66
66
|
error: boolean;
|
|
67
67
|
isFullscreenMode: boolean;
|
|
68
68
|
}
|
|
69
|
-
export declare const ReactPlayerWrapper: import("styled-components
|
|
69
|
+
export declare const ReactPlayerWrapper: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {
|
|
70
70
|
poster: string | null | undefined;
|
|
71
71
|
playerType: string;
|
|
72
72
|
isFullscreenMode: boolean;
|
|
73
|
-
}
|
|
73
|
+
}, never>;
|
|
74
74
|
export declare class AudioVideoPlayer extends Component<ReactPlayerProps, PlayerStateTypes> {
|
|
75
75
|
private player;
|
|
76
76
|
constructor(props: ReactPlayerProps);
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
export declare const SLinkStyles: (Link: any) => import("styled-components
|
|
1
|
+
export declare const SLinkStyles: (Link: any) => import("styled-components").StyledComponent<any, import("styled-components").DefaultTheme, {
|
|
2
2
|
scale: {
|
|
3
3
|
transform: string;
|
|
4
4
|
} | object;
|
|
5
|
-
}
|
|
5
|
+
}, string | number | symbol>;
|
|
6
6
|
export declare const SidebarSpa: ({ SLink, UserPic, SidebarInviteCodeLabel }: {
|
|
7
7
|
SLink: any;
|
|
8
8
|
UserPic: any;
|
|
@@ -9,4 +9,4 @@ export declare const getFontsLayout: ({ poppinsFont, dmsansFont }: {
|
|
|
9
9
|
children: ReactNode;
|
|
10
10
|
}) => import("react/jsx-runtime").JSX.Element;
|
|
11
11
|
};
|
|
12
|
-
export declare const GlobalFontsFallback: import("styled-components").
|
|
12
|
+
export declare const GlobalFontsFallback: import("styled-components").FlattenSimpleInterpolation;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const StyledMain: import("styled-components
|
|
2
|
-
export declare const StyledMainForms: import("styled-components
|
|
1
|
+
export declare const StyledMain: import("styled-components").StyledComponent<"main", import("styled-components").DefaultTheme, {}, never>;
|
|
2
|
+
export declare const StyledMainForms: import("styled-components").StyledComponent<"main", import("styled-components").DefaultTheme, {}, never>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const STopSections: import("styled-components
|
|
1
|
+
export declare const STopSections: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
|
|
@@ -26,9 +26,11 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
26
26
|
exports.useVerification = void 0;
|
|
27
27
|
const useSignIn_1 = require("./useSignIn");
|
|
28
28
|
const useSignOut_1 = require("./useSignOut");
|
|
29
|
+
const env_1 = require("../../../store/env");
|
|
29
30
|
const useVerification = () => {
|
|
30
31
|
const signIn = (0, useSignIn_1.useSignIn)();
|
|
31
32
|
const signOut = (0, useSignOut_1.useSignOut)();
|
|
33
|
+
const isProd = (0, env_1.useEnvStore)((state) => state.isProd);
|
|
32
34
|
return async (currentLocation) => {
|
|
33
35
|
try {
|
|
34
36
|
const authCookies = await Promise.resolve().then(() => __importStar(require("@ludo.ninja/api/build/cookies"))); //update check version cookie in client
|
|
@@ -53,7 +55,7 @@ const useVerification = () => {
|
|
|
53
55
|
}
|
|
54
56
|
else {
|
|
55
57
|
//todo: remove required invite code
|
|
56
|
-
if (currentLocation !== "/forms/[formId]" && currentLocation !== "/minting") {
|
|
58
|
+
if (isProd() && currentLocation !== "/forms/[formId]" && currentLocation !== "/minting") {
|
|
57
59
|
await signOut();
|
|
58
60
|
}
|
|
59
61
|
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const rotateReverse: import("styled-components
|
|
2
|
-
export declare const rotate: import("styled-components
|
|
1
|
+
export declare const rotateReverse: import("styled-components").Keyframes;
|
|
2
|
+
export declare const rotate: import("styled-components").Keyframes;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const GlobalStyle: import("
|
|
1
|
+
declare const GlobalStyle: import("styled-components").GlobalStyleComponent<{}, import("styled-components").DefaultTheme>;
|
|
2
2
|
export default GlobalStyle;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const BoxShadow: () => import("styled-components").
|
|
1
|
+
declare const BoxShadow: () => import("styled-components").FlattenSimpleInterpolation;
|
|
2
2
|
export default BoxShadow;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const BoxTransform: () => import("styled-components").
|
|
1
|
+
declare const BoxTransform: () => import("styled-components").FlattenSimpleInterpolation;
|
|
2
2
|
export default BoxTransform;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import
|
|
2
|
-
export declare const StyledCardShowMore: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
1
|
+
export declare const StyledCardShowMore: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
|
|
3
2
|
declare const CardShowMore: ({ itemId, href }: {
|
|
4
3
|
itemId: string;
|
|
5
4
|
href: string;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const StyledContentCard: import("styled-components
|
|
1
|
+
declare const StyledContentCard: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
|
|
2
2
|
export default StyledContentCard;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const StyledCardHead: import("styled-components
|
|
1
|
+
declare const StyledCardHead: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
|
|
2
2
|
export default StyledCardHead;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
declare const StyledHeadIcons: import("styled-components
|
|
1
|
+
declare const StyledHeadIcons: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {
|
|
2
2
|
isMobile: boolean;
|
|
3
|
-
}
|
|
3
|
+
}, never>;
|
|
4
4
|
export default StyledHeadIcons;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
declare const StyledImg: import("styled-components
|
|
1
|
+
declare const StyledImg: import("styled-components").StyledComponent<"img", import("styled-components").DefaultTheme, {
|
|
2
2
|
isLoading: boolean;
|
|
3
|
-
}
|
|
3
|
+
}, never>;
|
|
4
4
|
export default StyledImg;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
declare const StyledLikes: import("styled-components
|
|
1
|
+
declare const StyledLikes: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {
|
|
2
2
|
isLiked: boolean;
|
|
3
|
-
}
|
|
3
|
+
}, never>;
|
|
4
4
|
export default StyledLikes;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const StyledMultiHead: import("styled-components
|
|
1
|
+
declare const StyledMultiHead: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
|
|
2
2
|
export default StyledMultiHead;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const StyledVideo: import("styled-components
|
|
1
|
+
declare const StyledVideo: import("styled-components").StyledComponent<"video", import("styled-components").DefaultTheme, {}, never>;
|
|
2
2
|
export default StyledVideo;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { UseFormRegisterReturn } from 'react-hook-form';
|
|
3
3
|
import { inputType } from './type';
|
|
4
|
-
export declare const StyledInput: import("styled-components
|
|
4
|
+
export declare const StyledInput: import("styled-components").StyledComponent<"input", import("styled-components").DefaultTheme, {
|
|
5
5
|
status: boolean;
|
|
6
|
-
}
|
|
6
|
+
}, never>;
|
|
7
7
|
interface Props {
|
|
8
8
|
data: inputType;
|
|
9
9
|
register: UseFormRegisterReturn;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import
|
|
2
|
-
export declare const StyledModalSidebar: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
1
|
+
export declare const StyledModalSidebar: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
|
|
3
2
|
declare const ModalSidebar: () => import("react/jsx-runtime").JSX.Element | null;
|
|
4
3
|
export default ModalSidebar;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { TabsNavType } from '../TabsNav/type';
|
|
3
|
-
export declare const StyledTabsNavLink: import("styled-components
|
|
3
|
+
export declare const StyledTabsNavLink: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {
|
|
4
4
|
isActive: boolean;
|
|
5
|
-
}
|
|
5
|
+
}, never>;
|
|
6
6
|
interface Props {
|
|
7
7
|
tabNavLink: TabsNavType;
|
|
8
8
|
activeNavLink: boolean;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { TActiveTab, TabsNavType } from './type';
|
|
3
|
-
export declare const StyledTabsNav: import("styled-components
|
|
3
|
+
export declare const StyledTabsNav: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
|
|
4
4
|
interface Props {
|
|
5
5
|
tabsData: TabsNavType[];
|
|
6
6
|
activeTab: TActiveTab;
|
package/package.json
CHANGED
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { ApolloClient, NormalizedCacheObject } from '@apollo/client';
|
|
2
|
-
import { searchSchema as schema } from '@ludo.ninja/api';
|
|
3
|
-
import CollectionEntity from '../../../../dto/Collection/CollectionEntity';
|
|
4
|
-
declare const prefetchCollection: ({ collectionId }: {
|
|
5
|
-
collectionId: string;
|
|
6
|
-
}, apolloClient: ApolloClient<NormalizedCacheObject>) => Promise<import("@apollo/client").ApolloQueryResult<any> | {
|
|
7
|
-
data: {
|
|
8
|
-
fetchCollection: null;
|
|
9
|
-
};
|
|
10
|
-
}>;
|
|
11
|
-
declare const useFetchCollection: ({ collectionId, prefetchedCollection, }: {
|
|
12
|
-
collectionId: string;
|
|
13
|
-
prefetchedCollection: schema.ICollection | null;
|
|
14
|
-
}) => {
|
|
15
|
-
isLoadingCollection: boolean;
|
|
16
|
-
error: import("@apollo/client").ApolloError | undefined;
|
|
17
|
-
collection: CollectionEntity | null;
|
|
18
|
-
};
|
|
19
|
-
export { prefetchCollection, useFetchCollection };
|
|
@@ -1,59 +0,0 @@
|
|
|
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.useFetchCollection = exports.prefetchCollection = void 0;
|
|
7
|
-
const react_1 = require("react");
|
|
8
|
-
const client_1 = require("@apollo/client");
|
|
9
|
-
const api_1 = require("@ludo.ninja/api");
|
|
10
|
-
const type_1 = require("@ludo.ninja/ui/build/system/Alert/type");
|
|
11
|
-
const ui_1 = require("../../../../store/ui");
|
|
12
|
-
const CollectionEntity_1 = __importDefault(require("../../../../dto/Collection/CollectionEntity"));
|
|
13
|
-
const prefetchCollection = ({ collectionId }, apolloClient) => {
|
|
14
|
-
return apolloClient
|
|
15
|
-
.query({
|
|
16
|
-
query: api_1.searchSchema.FetchCollectionDocument,
|
|
17
|
-
variables: { collectionId },
|
|
18
|
-
context: { uri: api_1.hosts.searchHost },
|
|
19
|
-
fetchPolicy: 'network-only',
|
|
20
|
-
})
|
|
21
|
-
.catch(() => {
|
|
22
|
-
return {
|
|
23
|
-
data: { fetchCollection: null },
|
|
24
|
-
};
|
|
25
|
-
});
|
|
26
|
-
};
|
|
27
|
-
exports.prefetchCollection = prefetchCollection;
|
|
28
|
-
const useFetchCollection = ({ collectionId, prefetchedCollection, }) => {
|
|
29
|
-
const [collection, setCollection] = (0, react_1.useState)(prefetchedCollection ? new CollectionEntity_1.default(prefetchedCollection) : null);
|
|
30
|
-
const [isLoadingCollection, setIsLoadingCollection] = (0, react_1.useState)(!prefetchedCollection);
|
|
31
|
-
const openAlert = (0, ui_1.useUiStore)((state) => state.openAlert);
|
|
32
|
-
const { error } = (0, client_1.useQuery)(api_1.searchSchema.FetchCollectionDocument, {
|
|
33
|
-
variables: { collectionId },
|
|
34
|
-
context: {
|
|
35
|
-
uri: api_1.hosts.searchHost,
|
|
36
|
-
},
|
|
37
|
-
fetchPolicy: 'cache-first',
|
|
38
|
-
onCompleted: ({ fetchCollection }) => {
|
|
39
|
-
if (fetchCollection) {
|
|
40
|
-
setCollection(new CollectionEntity_1.default(fetchCollection));
|
|
41
|
-
}
|
|
42
|
-
setIsLoadingCollection(false);
|
|
43
|
-
},
|
|
44
|
-
onError: () => {
|
|
45
|
-
openAlert({
|
|
46
|
-
type: type_1.alertVariants.error,
|
|
47
|
-
caption: 'Oops, something went wrong.',
|
|
48
|
-
});
|
|
49
|
-
setCollection(null);
|
|
50
|
-
setIsLoadingCollection(false);
|
|
51
|
-
},
|
|
52
|
-
});
|
|
53
|
-
return {
|
|
54
|
-
isLoadingCollection,
|
|
55
|
-
error,
|
|
56
|
-
collection,
|
|
57
|
-
};
|
|
58
|
-
};
|
|
59
|
-
exports.useFetchCollection = useFetchCollection;
|