@ludo.ninja/components 2.1.49 → 2.1.51
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-medias/queries/useFetchUserPic/index.d.ts +1 -1
- package/build/api/server-search/queries/useFetchFindAllTopEntitiesByName/index.d.ts +4 -4
- package/build/system/Cards/CardContent/CardShowMore/index.js +1 -1
- package/build/system/Cards/CreationCard/index.js +3 -3
- package/package.json +1 -2
|
@@ -4,7 +4,7 @@ declare const useFetchUserpic: () => {
|
|
|
4
4
|
loading: boolean;
|
|
5
5
|
error: import("@apollo/client").ApolloError | undefined;
|
|
6
6
|
refetch: (variables?: Partial<schema.Exact<{
|
|
7
|
-
userId:
|
|
7
|
+
userId: schema.Scalars["ID"];
|
|
8
8
|
}>> | undefined) => Promise<import("@apollo/client").ApolloQueryResult<schema.IFetchUserpicQuery>>;
|
|
9
9
|
load: (userId: string) => void;
|
|
10
10
|
userPic: string | null;
|
|
@@ -12,8 +12,8 @@ export declare const useFetchFindAllTopEntitiesByName: () => {
|
|
|
12
12
|
loading: boolean;
|
|
13
13
|
error: import("@apollo/client").ApolloError | undefined;
|
|
14
14
|
load: ({ name, pageSize }: schema.IQueryFindAllTopEntitiesByNameArgs) => Promise<import("@apollo/client").QueryResult<schema.IFindAllTopEntitiesByNameQuery, schema.Exact<{
|
|
15
|
-
name:
|
|
16
|
-
pageSize:
|
|
15
|
+
name: schema.Scalars["String"];
|
|
16
|
+
pageSize: schema.Scalars["Int"];
|
|
17
17
|
}>>>;
|
|
18
18
|
topEntities: {
|
|
19
19
|
assets: AssetEntity[];
|
|
@@ -28,8 +28,8 @@ declare const _default: {
|
|
|
28
28
|
loading: boolean;
|
|
29
29
|
error: import("@apollo/client").ApolloError | undefined;
|
|
30
30
|
load: ({ name, pageSize }: schema.IQueryFindAllTopEntitiesByNameArgs) => Promise<import("@apollo/client").QueryResult<schema.IFindAllTopEntitiesByNameQuery, schema.Exact<{
|
|
31
|
-
name:
|
|
32
|
-
pageSize:
|
|
31
|
+
name: schema.Scalars["String"];
|
|
32
|
+
pageSize: schema.Scalars["Int"];
|
|
33
33
|
}>>>;
|
|
34
34
|
topEntities: {
|
|
35
35
|
assets: AssetEntity[];
|
|
@@ -110,7 +110,7 @@ const CardShowMore = ({ itemId, href }) => {
|
|
|
110
110
|
const openAlert = (0, ui_1.useUiStore)((state) => state.openAlert);
|
|
111
111
|
const copyAssetLinkToClipboard = (e) => {
|
|
112
112
|
e.preventDefault();
|
|
113
|
-
(0, utils_1.copyToClipboard)(
|
|
113
|
+
(0, utils_1.copyToClipboard)(href);
|
|
114
114
|
openAlert({
|
|
115
115
|
type: type_1.alertVariants.copied,
|
|
116
116
|
});
|
|
@@ -106,8 +106,8 @@ const CreationCard = ({ creationName, creation, isNeedHeight, likesDynamicInfo,
|
|
|
106
106
|
isLoadingLikes,
|
|
107
107
|
});
|
|
108
108
|
// Todo cardLink
|
|
109
|
-
const
|
|
110
|
-
const HideLink =
|
|
109
|
+
const isHideProd = isProd();
|
|
110
|
+
const HideLink = isHideProd ? react_1.default.Fragment : link_1.default;
|
|
111
111
|
const getLink = (href) => {
|
|
112
112
|
if (creation.getItemType() === ItemType_1.LabelKeys.asset) {
|
|
113
113
|
return `${ludoDomains_1.ludoDomains[NEXT_PUBLIC_ENV_VALUE]["asset"]}/${href.replace(`/${ItemType_1.LabelKeys.asset}/`, "")}`;
|
|
@@ -123,7 +123,7 @@ const CreationCard = ({ creationName, creation, isNeedHeight, likesDynamicInfo,
|
|
|
123
123
|
// } else {
|
|
124
124
|
// window.open(`${domain}/rewards/${userId}`,'_self');
|
|
125
125
|
// }
|
|
126
|
-
return ((0, jsx_runtime_1.jsxs)(StyledRegularCard, { isNeedHeight: isNeedHeight, isNeedTransform: isNeedShowMoreButton, isShowCheckbox: isShowCheckbox, children: [isShowCheckbox && checkboxSlot, (0, jsx_runtime_1.jsxs)(HideLink, { className: "linkRegularCard", href: getLink(creation.getCreationLink()), children: [(0, jsx_runtime_1.jsxs)(Head_1.default, { children: [creation.detectMediaType().displaySingleMedia(), (0, jsx_runtime_1.jsx)(CardHead_1.CardHead, { isRegularCard: !!isRegularCard, isIconLiked: likes.isLiked, creation: creation, addLikeToCard: addLike, deleteLikeFromCard: deleteLike, isUserProfile: isUserProfile || false, isDisabled: !!isLoadingLikes, isShowCheckbox: isShowCheckbox, currentMyGalleryId: currentMyGalleryId })] }), (0, jsx_runtime_1.jsx)(CardContent_1.default, { creationName: creationName, firstName: creation.getCreatorAddress(), secondName: creation.getName(), cuttedSecondName: creation.getCuttedSecondName(!isMobile), itemId: creation.getItemId(), isNeedShowMoreButton:
|
|
126
|
+
return ((0, jsx_runtime_1.jsxs)(StyledRegularCard, { isNeedHeight: isNeedHeight, isNeedTransform: isNeedShowMoreButton, isShowCheckbox: isShowCheckbox, children: [isShowCheckbox && checkboxSlot, (0, jsx_runtime_1.jsxs)(HideLink, { className: "linkRegularCard", href: getLink(creation.getCreationLink()), children: [(0, jsx_runtime_1.jsxs)(Head_1.default, { children: [creation.detectMediaType().displaySingleMedia(), (0, jsx_runtime_1.jsx)(CardHead_1.CardHead, { isRegularCard: !!isRegularCard, isIconLiked: likes.isLiked, creation: creation, addLikeToCard: addLike, deleteLikeFromCard: deleteLike, isUserProfile: isUserProfile || false, isDisabled: !!isLoadingLikes, isShowCheckbox: isShowCheckbox, currentMyGalleryId: currentMyGalleryId })] }), (0, jsx_runtime_1.jsx)(CardContent_1.default, { creationName: creationName, firstName: creation.getCreatorAddress(), secondName: creation.getName(), cuttedSecondName: creation.getCuttedSecondName(!isMobile), itemId: creation.getItemId(), isNeedShowMoreButton: isHideProd ? false : !!isNeedShowMoreButton, href: getLink(creation.getCreationLink()), children: (0, jsx_runtime_1.jsxs)(index_1.Flex, { alignItems: "end", justifyContent: "space-between", children: [(0, jsx_runtime_1.jsx)(CardCategory_1.default, { label: creation.getLabel() }), isHideProd &&
|
|
127
127
|
(isLoadingLikes ? ((0, jsx_runtime_1.jsx)(react_loading_skeleton_1.default, { style: { borderRadius: "3px" }, height: "100%", width: "30px" })) : ((0, jsx_runtime_1.jsx)(CardLikes_1.default, { isLiked: likes.isLiked, likes: likes.likesCount })))] }) })] })] }));
|
|
128
128
|
};
|
|
129
129
|
exports.CreationCard = CreationCard;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ludo.ninja/components",
|
|
3
|
-
"version": "2.1.
|
|
3
|
+
"version": "2.1.51",
|
|
4
4
|
"private": false,
|
|
5
5
|
"main": "build/index.js",
|
|
6
6
|
"types": "build/index.d.ts",
|
|
@@ -23,7 +23,6 @@
|
|
|
23
23
|
"publish": "npm publish --access public -workspace @ludo.ninja/components"
|
|
24
24
|
},
|
|
25
25
|
"dependencies": {
|
|
26
|
-
"@marker.io/browser": "^0.19.0",
|
|
27
26
|
"@react-three/drei": "^9.68.3",
|
|
28
27
|
"@react-three/fiber": "^8.13.0",
|
|
29
28
|
"chart.js": "^4.4.3",
|