@ludo.ninja/components 2.3.28 → 2.3.29
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.
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
export declare const useGetOpportunities: (availableProfileId: string) => {
|
|
2
|
-
opportunities: import("@ludo.ninja/api/build/graphql_tools/__generated__/opportunitiesHost/schema").Maybe<Pick<import("@ludo.ninja/api/build/graphql_tools/__generated__/opportunitiesHost/schema").IOpportunityV2, "name" | "views" | "createdAt" | "shareLink" | "blockchain" | "description" | "collection" | "liked" | "opportunityId" | "
|
|
2
|
+
opportunities: import("@ludo.ninja/api/build/graphql_tools/__generated__/opportunitiesHost/schema").Maybe<Pick<import("@ludo.ninja/api/build/graphql_tools/__generated__/opportunitiesHost/schema").IOpportunityV2, "name" | "views" | "createdAt" | "shareLink" | "blockchain" | "description" | "collection" | "liked" | "opportunityId" | "projectId" | "categoryId" | "opportunityStatus" | "opportunityType" | "notificationType" | "projectBlockchain" | "projectContract" | "projectName" | "projectSlug" | "categoryName" | "ludoUrl" | "projectUrl" | "activeFrom" | "activeUntil" | "minXpLevel" | "maxXpLevel" | "minRank" | "maxRank" | "media" | "reportLink" | "clicks" | "blockchains" | "minWalletValue" | "maxWalletValue" | "geolocations" | "subscribed" | "participantsLimit" | "availablePlacesForAirdrop">>[];
|
|
3
3
|
isLoadingOpportunities: boolean;
|
|
4
4
|
};
|
|
@@ -26,13 +26,14 @@ const Headicons_1 = __importDefault(require("../../system/Cards/Styles/Headicons
|
|
|
26
26
|
const ImageInterceptor_1 = require("../../system/Img/ImageInterceptor");
|
|
27
27
|
const index_1 = require("../../system/index");
|
|
28
28
|
const screen_1 = require("../../utils/screen");
|
|
29
|
+
const ludoDomains_1 = require("@ludo.ninja/core/build/ludoDomains");
|
|
29
30
|
const colors_2 = require("@ludo.ninja/ui/build/styles/colors");
|
|
30
31
|
const boxShadow_1 = __importDefault(require("@ludo.ninja/ui/build/styles/mixins/boxShadow"));
|
|
31
32
|
const _4k_1 = require("@ludo.ninja/ui/build/utils/4k");
|
|
32
33
|
const moment_1 = __importDefault(require("moment/moment"));
|
|
33
34
|
const react_1 = require("react");
|
|
34
|
-
const styled_components_1 = __importDefault(require("styled-components"));
|
|
35
35
|
const sanitize_html_1 = __importDefault(require("sanitize-html"));
|
|
36
|
+
const styled_components_1 = __importDefault(require("styled-components"));
|
|
36
37
|
const SWrapperLink = styled_components_1.default.a `
|
|
37
38
|
position: relative;
|
|
38
39
|
background-color: ${colors_2.WhiteColor};
|
|
@@ -249,7 +250,7 @@ const OpportunityCard = ({ opportunity, toolsForRemove, }) => {
|
|
|
249
250
|
const isProd = (0, env_1.useEnvStore)((state) => state.isProd);
|
|
250
251
|
const opportunityLink = opportunity.opportunityType === "TOKEN_AIRDROP"
|
|
251
252
|
// ? `${ludoDomains[NEXT_PUBLIC_ENV_VALUE as TEnvValue]["app"]}/brand/${opportunity.opportunityId}`
|
|
252
|
-
? opportunity.
|
|
253
|
+
? `${ludoDomains_1.ludoDomains[NEXT_PUBLIC_ENV_VALUE]["welcome"]}/${opportunity.projectSlug === 'tico' ? 'funtico' : opportunity.projectSlug}` || ''
|
|
253
254
|
: opportunity.projectUrl || opportunity.shareLink || "";
|
|
254
255
|
const isShowParticipantsCount = typeof opportunity.availablePlacesForAirdrop === 'number' && typeof opportunity.participantsLimit === 'number';
|
|
255
256
|
const sanitizedHtml = (0, sanitize_html_1.default)(opportunity?.description || '', {
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { opportunitiesSchema } from '@ludo.ninja/api';
|
|
2
|
-
export type TOpportunity = Pick<opportunitiesSchema.IOpportunityV2, 'opportunityId' | '
|
|
2
|
+
export type TOpportunity = Pick<opportunitiesSchema.IOpportunityV2, 'opportunityId' | 'projectId' | 'categoryId' | 'opportunityStatus' | 'opportunityType' | 'notificationType' | 'name' | 'description' | 'projectBlockchain' | 'projectContract' | 'projectName' | 'projectSlug' | 'categoryName' | 'ludoUrl' | 'projectUrl' | 'activeFrom' | 'activeUntil' | 'minXpLevel' | 'maxXpLevel' | 'minRank' | 'maxRank' | 'media' | 'reportLink' | 'clicks' | 'views' | 'blockchain' | 'collection' | 'createdAt' | 'minWalletValue' | 'maxWalletValue' | 'shareLink' | 'liked' | 'participantsLimit' | 'availablePlacesForAirdrop' | 'project'>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ludo.ninja/components",
|
|
3
|
-
"version": "2.3.
|
|
3
|
+
"version": "2.3.29",
|
|
4
4
|
"private": false,
|
|
5
5
|
"main": "build/index.js",
|
|
6
6
|
"types": "build/index.d.ts",
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
"publish": "npm publish --access public -workspace @ludo.ninja/components"
|
|
24
24
|
},
|
|
25
25
|
"dependencies": {
|
|
26
|
-
"@ludo.ninja/api": "^3.0.
|
|
26
|
+
"@ludo.ninja/api": "^3.0.69",
|
|
27
27
|
"@react-three/drei": "^9.68.3",
|
|
28
28
|
"@react-three/fiber": "^8.13.0",
|
|
29
29
|
"chart.js": "^4.4.3",
|