@ludo.ninja/components 2.1.18 → 2.1.20

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.
@@ -71,7 +71,7 @@ const Collection = (props) => {
71
71
  const NEXT_PUBLIC_ENV_VALUE = (0, env_1.useEnvStore)((state) => state.NEXT_PUBLIC_ENV_VALUE);
72
72
  if (!props.collectionTitle || !props.collectionId)
73
73
  return null;
74
- return ((0, jsx_runtime_1.jsxs)(SCollection, { alignItems: "center", children: [!!props.collectionMedias && ((0, jsx_runtime_1.jsx)(ImageInterceptor_1.ImageInterceptor, { children: (0, jsx_runtime_1.jsx)(index_1.ExternalImage, { src: (0, Urls_1.getAssetImage)(props.collectionMedias[0]?.url, '/noContent/noContent.svg', Urls_1.mediaSizes.small, NEXT_PUBLIC_STATIC_DOMAIN), alt: "collection_img", width: 28, height: 28, borderRadius: 2 }) })), (0, jsx_runtime_1.jsx)(link_1.default, { href: `${ludoDomains_1.ludoDomains[NEXT_PUBLIC_ENV_VALUE]["app"]}/collection/${props?.collectionId}`, children: props.collectionTitle })] }));
74
+ return ((0, jsx_runtime_1.jsxs)(SCollection, { alignItems: "center", children: [!!props.collectionMedias && ((0, jsx_runtime_1.jsx)(ImageInterceptor_1.ImageInterceptor, { children: (0, jsx_runtime_1.jsx)(index_1.ExternalImage, { src: (0, Urls_1.getAssetImage)(props.collectionMedias[0]?.url, '/noContent/noContent.svg', Urls_1.mediaSizes.small, NEXT_PUBLIC_STATIC_DOMAIN), alt: "collection_img", width: 28, height: 28, borderRadius: 2 }) })), (0, jsx_runtime_1.jsx)(link_1.default, { href: `${ludoDomains_1.ludoDomains[NEXT_PUBLIC_ENV_VALUE]["collections"]}/${props?.collectionId}`, children: props.collectionTitle })] }));
75
75
  };
76
76
  const Title = ({ name, collectionTitle, collectionMedias, collectionId, }) => {
77
77
  const [cuttedString, setCuttedString] = (0, react_1.useState)(name);
@@ -128,7 +128,7 @@ const SearchSuggestions = ({ searchTerm, assets, profiles, collections, isLoadin
128
128
  ? [
129
129
  {
130
130
  caption: 'Collections',
131
- children: collections.map((collection) => ((0, jsx_runtime_1.jsx)(searchSuggestionsItem_1.default, { name: collection?.collectionTitle, link: `${ludoDomains_1.ludoDomains[NEXT_PUBLIC_ENV_VALUE]["app"]}/collection/${collection?.collectionId}`, imgUrl: '/noContent/noContent.svg', searchTerm: searchTerm }, `${collection?.collectionId}.${Math.random()}`))),
131
+ children: collections.map((collection) => ((0, jsx_runtime_1.jsx)(searchSuggestionsItem_1.default, { name: collection?.collectionTitle, link: `${ludoDomains_1.ludoDomains[NEXT_PUBLIC_ENV_VALUE]["collections"]}/${collection?.collectionId}`, imgUrl: '/noContent/noContent.svg', searchTerm: searchTerm }, `${collection?.collectionId}.${Math.random()}`))),
132
132
  },
133
133
  ]
134
134
  : []),
@@ -112,6 +112,9 @@ const CreationCard = ({ creationName, creation, isNeedHeight, likesDynamicInfo,
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}/`, "")}`;
114
114
  }
115
+ if (creation.getItemType() === ItemType_1.LabelKeys.collection) {
116
+ return `${ludoDomains_1.ludoDomains[NEXT_PUBLIC_ENV_VALUE]["collections"]}/${href.replace(`/${ItemType_1.LabelKeys.collection}/`, "")}`;
117
+ }
115
118
  return href;
116
119
  };
117
120
  // const domain = ludoDomains[NEXT_PUBLIC_ENV_VALUE as TEnvValue]["app"];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ludo.ninja/components",
3
- "version": "2.1.18",
3
+ "version": "2.1.20",
4
4
  "private": false,
5
5
  "main": "build/index.js",
6
6
  "types": "build/index.d.ts",