decentraland-ui2 0.23.3 → 0.24.0
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/dist/components/Icon/JumpInIcon.d.ts +4 -0
- package/dist/components/Icon/JumpInIcon.js +8 -0
- package/dist/components/Icon/JumpInIcon.js.map +1 -0
- package/dist/components/{JumpIn/SecondaryPin.d.ts → Icon/LocationIcon.d.ts} +2 -2
- package/dist/components/Icon/LocationIcon.js +8 -0
- package/dist/components/Icon/LocationIcon.js.map +1 -0
- package/dist/components/Icon/Notifications/ReferralInvitedUserAcceptedIcon.d.ts +4 -0
- package/dist/components/Icon/Notifications/ReferralInvitedUserAcceptedIcon.js +8 -0
- package/dist/components/Icon/Notifications/ReferralInvitedUserAcceptedIcon.js.map +1 -0
- package/dist/components/Icon/Notifications/RewardIcon.js +1 -1
- package/dist/components/Icon/Notifications/RewardIcon.js.map +1 -1
- package/dist/components/Icon/index.d.ts +4 -1
- package/dist/components/Icon/index.js +4 -1
- package/dist/components/Icon/index.js.map +1 -1
- package/dist/components/JumpIn/JumpIn.js +4 -5
- package/dist/components/JumpIn/JumpIn.js.map +1 -1
- package/dist/components/JumpIn/JumpIn.styled.d.ts +4 -7
- package/dist/components/JumpIn/JumpIn.styled.js +7 -16
- package/dist/components/JumpIn/JumpIn.styled.js.map +1 -1
- package/dist/components/Notifications/NotificationItemImage.js +2 -1
- package/dist/components/Notifications/NotificationItemImage.js.map +1 -1
- package/dist/components/Notifications/NotificationItemImage.styled.d.ts +2 -0
- package/dist/components/Notifications/NotificationItemImage.styled.js +3 -3
- package/dist/components/Notifications/NotificationItemImage.styled.js.map +1 -1
- package/dist/components/Notifications/NotificationTypes/Referral/ReferralInvitedUserAcceptedNotification.d.ts +4 -0
- package/dist/components/Notifications/NotificationTypes/Referral/ReferralInvitedUserAcceptedNotification.i18n.d.ts +15 -0
- package/dist/components/Notifications/NotificationTypes/Referral/ReferralInvitedUserAcceptedNotification.i18n.js +16 -0
- package/dist/components/Notifications/NotificationTypes/Referral/ReferralInvitedUserAcceptedNotification.i18n.js.map +1 -0
- package/dist/components/Notifications/NotificationTypes/Referral/ReferralInvitedUserAcceptedNotification.js +9 -0
- package/dist/components/Notifications/NotificationTypes/Referral/ReferralInvitedUserAcceptedNotification.js.map +1 -0
- package/dist/components/Notifications/NotificationTypes/Referral/ReferralNewTierReachedNotification.d.ts +4 -0
- package/dist/components/Notifications/NotificationTypes/Referral/ReferralNewTierReachedNotification.i18n.d.ts +15 -0
- package/dist/components/Notifications/NotificationTypes/Referral/ReferralNewTierReachedNotification.i18n.js +16 -0
- package/dist/components/Notifications/NotificationTypes/Referral/ReferralNewTierReachedNotification.i18n.js.map +1 -0
- package/dist/components/Notifications/NotificationTypes/Referral/ReferralNewTierReachedNotification.js +9 -0
- package/dist/components/Notifications/NotificationTypes/Referral/ReferralNewTierReachedNotification.js.map +1 -0
- package/dist/components/Notifications/NotificationTypes/Referral/ReferralNotification.d.ts +4 -0
- package/dist/components/Notifications/NotificationTypes/Referral/ReferralNotification.js +16 -0
- package/dist/components/Notifications/NotificationTypes/Referral/ReferralNotification.js.map +1 -0
- package/dist/components/Notifications/NotificationTypes/Referral/types.d.ts +10 -0
- package/dist/components/Notifications/NotificationTypes/Referral/types.js +2 -0
- package/dist/components/Notifications/NotificationTypes/Referral/types.js.map +1 -0
- package/dist/components/Notifications/NotificationTypes/index.d.ts +3 -1
- package/dist/components/Notifications/NotificationTypes/index.js +3 -1
- package/dist/components/Notifications/NotificationTypes/index.js.map +1 -1
- package/dist/components/Notifications/Notifications.stories.d.ts +2 -1
- package/dist/components/Notifications/Notifications.stories.js +11 -2
- package/dist/components/Notifications/Notifications.stories.js.map +1 -1
- package/dist/components/Notifications/index.d.ts +1 -1
- package/dist/components/Notifications/index.js.map +1 -1
- package/dist/components/Notifications/types.d.ts +18 -2
- package/dist/components/Notifications/types.js.map +1 -1
- package/dist/components/Notifications/utils.js +26 -24
- package/dist/components/Notifications/utils.js.map +1 -1
- package/dist/data/notifications.d.ts +7 -5
- package/dist/data/notifications.js +58 -17
- package/dist/data/notifications.js.map +1 -1
- package/package.json +3 -3
- package/dist/components/JumpIn/PrimaryJumpIn.d.ts +0 -4
- package/dist/components/JumpIn/PrimaryJumpIn.js +0 -6
- package/dist/components/JumpIn/PrimaryJumpIn.js.map +0 -1
- package/dist/components/JumpIn/SecondaryPin.js +0 -6
- package/dist/components/JumpIn/SecondaryPin.js.map +0 -1
@@ -0,0 +1,9 @@
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
2
|
+
import React from "react";
|
3
|
+
import { i18n } from "./ReferralNewTierReachedNotification.i18n";
|
4
|
+
import { ReferralNotification } from "./ReferralNotification";
|
5
|
+
const ReferralNewTierReachedNotification = React.memo((props) => {
|
6
|
+
return _jsx(ReferralNotification, { ...props, i18n: i18n });
|
7
|
+
});
|
8
|
+
export { ReferralNewTierReachedNotification };
|
9
|
+
//# sourceMappingURL=ReferralNewTierReachedNotification.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"ReferralNewTierReachedNotification.js","sourceRoot":"","sources":["../../../../../src/components/Notifications/NotificationTypes/Referral/ReferralNewTierReachedNotification.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,EAAE,IAAI,EAAE,MAAM,2CAA2C,CAAA;AAChE,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAA;AAM7D,MAAM,kCAAkC,GAAG,KAAK,CAAC,IAAI,CACnD,CAAC,KAAuE,EAAE,EAAE;IAC1E,OAAO,KAAC,oBAAoB,OAAK,KAAK,EAAE,IAAI,EAAE,IAAI,GAAI,CAAA;AACxD,CAAC,CACF,CAAA;AAED,OAAO,EAAE,kCAAkC,EAAE,CAAA"}
|
@@ -0,0 +1,16 @@
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
2
|
+
import React from "react";
|
3
|
+
import { NotificationType } from "@dcl/schemas";
|
4
|
+
import { ReferralInvitedUserAcceptedIcon, RewardIcon } from "../../../Icon";
|
5
|
+
import { NotificationItem } from "../../NotificationItem";
|
6
|
+
import { NotificationItemDescription, NotificationItemTitle, } from "../../NotificationItem.styled";
|
7
|
+
import { getBGColorByRarity } from "../../utils";
|
8
|
+
const ReferralNotification = React.memo((props) => {
|
9
|
+
const { notification, locale, i18n } = props;
|
10
|
+
const isNewTierReached = notification.type === NotificationType.REFERRAL_NEW_TIER_REACHED;
|
11
|
+
return (_jsxs(NotificationItem, { image: isNewTierReached ? (notification.metadata.image) : (_jsx(ReferralInvitedUserAcceptedIcon, { width: 48, height: 48 })), imageBackgroundColor: isNewTierReached && notification.metadata.rarity
|
12
|
+
? getBGColorByRarity(notification.metadata.rarity)
|
13
|
+
: "transparent", badgeIcon: isNewTierReached && _jsx(RewardIcon, {}), timestamp: notification.timestamp, isNew: !notification.read, locale: locale, children: [_jsx(NotificationItemTitle, { children: i18n[locale].title }), _jsx(NotificationItemDescription, { color: "inherit", underline: "none", children: i18n[locale].description })] }));
|
14
|
+
});
|
15
|
+
export { ReferralNotification };
|
16
|
+
//# sourceMappingURL=ReferralNotification.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"ReferralNotification.js","sourceRoot":"","sources":["../../../../../src/components/Notifications/NotificationTypes/Referral/ReferralNotification.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,EAAE,gBAAgB,EAAE,MAAM,cAAc,CAAA;AAE/C,OAAO,EAAE,+BAA+B,EAAE,UAAU,EAAE,MAAM,eAAe,CAAA;AAC3E,OAAO,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAA;AACzD,OAAO,EACL,2BAA2B,EAC3B,qBAAqB,GACtB,MAAM,+BAA+B,CAAA;AACtC,OAAO,EAAE,kBAAkB,EAAE,MAAM,aAAa,CAAA;AAEhD,MAAM,oBAAoB,GAAG,KAAK,CAAC,IAAI,CACrC,CAAC,KAAsC,EAAE,EAAE;IACzC,MAAM,EAAE,YAAY,EAAE,MAAM,EAAE,IAAI,EAAE,GAAG,KAAK,CAAA;IAE5C,MAAM,gBAAgB,GACpB,YAAY,CAAC,IAAI,KAAK,gBAAgB,CAAC,yBAAyB,CAAA;IAElE,OAAO,CACL,MAAC,gBAAgB,IACf,KAAK,EACH,gBAAgB,CAAC,CAAC,CAAC,CACjB,YAAY,CAAC,QAAQ,CAAC,KAAK,CAC5B,CAAC,CAAC,CAAC,CACF,KAAC,+BAA+B,IAAC,KAAK,EAAE,EAAE,EAAE,MAAM,EAAE,EAAE,GAAI,CAC3D,EAEH,oBAAoB,EAClB,gBAAgB,IAAI,YAAY,CAAC,QAAQ,CAAC,MAAM;YAC9C,CAAC,CAAC,kBAAkB,CAAC,YAAY,CAAC,QAAQ,CAAC,MAAM,CAAC;YAClD,CAAC,CAAC,aAAa,EAEnB,SAAS,EAAE,gBAAgB,IAAI,KAAC,UAAU,KAAG,EAC7C,SAAS,EAAE,YAAY,CAAC,SAAS,EACjC,KAAK,EAAE,CAAC,YAAY,CAAC,IAAI,EACzB,MAAM,EAAE,MAAM,aAEd,KAAC,qBAAqB,cAAE,IAAI,CAAC,MAAM,CAAC,CAAC,KAAK,GAAyB,EACnE,KAAC,2BAA2B,IAAC,KAAK,EAAC,SAAS,EAAC,SAAS,EAAC,MAAM,YAC1D,IAAI,CAAC,MAAM,CAAC,CAAC,WAAW,GACG,IACb,CACpB,CAAA;AACH,CAAC,CACF,CAAA;AAED,OAAO,EAAE,oBAAoB,EAAE,CAAA"}
|
@@ -0,0 +1,10 @@
|
|
1
|
+
import { CommonNotificationProps, NotificationLocale, ReferralInvitedUsersAcceptedNotificationProps, ReferralNewTierReachedNotificationProps } from "components/Notifications/types";
|
2
|
+
type ReferralNotificationProps = ReferralNewTierReachedNotificationProps | ReferralInvitedUsersAcceptedNotificationProps;
|
3
|
+
type i18nProps = {
|
4
|
+
title: string;
|
5
|
+
description: string;
|
6
|
+
};
|
7
|
+
type ReferralCommonNotificationProps = CommonNotificationProps<ReferralNotificationProps> & {
|
8
|
+
i18n: Record<NotificationLocale, i18nProps>;
|
9
|
+
};
|
10
|
+
export type { ReferralNotificationProps, ReferralCommonNotificationProps, i18nProps, };
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../../src/components/Notifications/NotificationTypes/Referral/types.ts"],"names":[],"mappings":""}
|
@@ -20,6 +20,8 @@ import { BidAcceptedNotification } from "./Marketplace/BidAcceptedNotification";
|
|
20
20
|
import { BidReceivedNotification } from "./Marketplace/BidReceivedNotification";
|
21
21
|
import { ItemSoldNotification } from "./Marketplace/ItemSoldNotification";
|
22
22
|
import { RoyaltiesEarnedNotification } from "./Marketplace/RoyaltiesEarnedNotification";
|
23
|
+
import { ReferralInvitedUserAcceptedNotification } from "./Referral/ReferralInvitedUserAcceptedNotification";
|
24
|
+
import { ReferralNewTierReachedNotification } from "./Referral/ReferralNewTierReachedNotification";
|
23
25
|
import { CampaignGasPriceHigherThanExpectedNotification } from "./Reward/CampaignGasPriceHigherThanExpectedNotification";
|
24
26
|
import { CampaignOutOfFundsNotification } from "./Reward/CampaignOutOfFundsNotification";
|
25
27
|
import { CampaignOutOfStockNotification } from "./Reward/CampaignOutOfStockNotification";
|
@@ -36,4 +38,4 @@ import { WorldsAccessRestrictedNotification } from "./Worlds/WorldsAccessRestric
|
|
36
38
|
import { WorldsMissingResourcesNotification } from "./Worlds/WorldsMissingResourcesNotification";
|
37
39
|
import { WorldsPermissionGrantedNotification } from "./Worlds/WorldsPermissionGrantedNotification";
|
38
40
|
import { WorldsPermissionRevokedNotification } from "./Worlds/WorldsPermissionRevokedNotification";
|
39
|
-
export { BidAcceptedNotification, BidReceivedNotification, CampaignGasPriceHigherThanExpectedNotification, CampaignOutOfFundsNotification, CampaignOutOfStockNotification, EventsStartedNotification, EventsStartsSoonNotification, GovernanceAnnouncementNotification, GovernanceAuthoredProposalFinishedNotification, GovernanceCoauthorRequestedNotification, GovernanceNewCommentOnProjectUpdateNotification, GovernanceNewCommentOnProposalNotification, GovernancePitchPassedNotification, GovernanceProposalEnactedNotification, GovernanceTenderPassedNotification, GovernanceVotingEndedVoterNotification, ItemSoldNotification, LandRentalEndedNotification, LandRentedNotification, RewardAssignedNotification, RewardDelayedNotification, RewardInProgressNotification, RoyaltiesEarnedNotification, StreamingKeyExpiredNotification, StreamingKeyResetNotification, StreamingKeyRevokeNotification, StreamingPlaceUpdatedNotification, StreamingTimeExceededNotification, WorldsAccessRestoredNotification, WorldsAccessRestrictedNotification, WorldsMissingResourcesNotification, WorldsPermissionGrantedNotification, WorldsPermissionRevokedNotification,
|
41
|
+
export { BidAcceptedNotification, BidReceivedNotification, CampaignGasPriceHigherThanExpectedNotification, CampaignOutOfFundsNotification, CampaignOutOfStockNotification, CreditsClaimReminderNotification, CreditsCompleteYourWeeklyGoalsNotification, CreditsDoNotMissOutNotification, CreditsExpireIn24HrsReminderNotification, CreditsExpireSoonReminderNotification, EventsStartedNotification, EventsStartsSoonNotification, GovernanceAnnouncementNotification, GovernanceAuthoredProposalFinishedNotification, GovernanceCoauthorRequestedNotification, GovernanceNewCommentOnProjectUpdateNotification, GovernanceNewCommentOnProposalNotification, GovernancePitchPassedNotification, GovernanceProposalEnactedNotification, GovernanceTenderPassedNotification, GovernanceVotingEndedVoterNotification, ItemSoldNotification, LandRentalEndedNotification, LandRentedNotification, ReferralInvitedUserAcceptedNotification, ReferralNewTierReachedNotification, RewardAssignedNotification, RewardDelayedNotification, RewardInProgressNotification, RoyaltiesEarnedNotification, StreamingKeyExpiredNotification, StreamingKeyResetNotification, StreamingKeyRevokeNotification, StreamingPlaceUpdatedNotification, StreamingTimeExceededNotification, WorldsAccessRestoredNotification, WorldsAccessRestrictedNotification, WorldsMissingResourcesNotification, WorldsPermissionGrantedNotification, WorldsPermissionRevokedNotification, };
|
@@ -20,6 +20,8 @@ import { BidAcceptedNotification } from "./Marketplace/BidAcceptedNotification";
|
|
20
20
|
import { BidReceivedNotification } from "./Marketplace/BidReceivedNotification";
|
21
21
|
import { ItemSoldNotification } from "./Marketplace/ItemSoldNotification";
|
22
22
|
import { RoyaltiesEarnedNotification } from "./Marketplace/RoyaltiesEarnedNotification";
|
23
|
+
import { ReferralInvitedUserAcceptedNotification } from "./Referral/ReferralInvitedUserAcceptedNotification";
|
24
|
+
import { ReferralNewTierReachedNotification } from "./Referral/ReferralNewTierReachedNotification";
|
23
25
|
import { CampaignGasPriceHigherThanExpectedNotification } from "./Reward/CampaignGasPriceHigherThanExpectedNotification";
|
24
26
|
import { CampaignOutOfFundsNotification } from "./Reward/CampaignOutOfFundsNotification";
|
25
27
|
import { CampaignOutOfStockNotification } from "./Reward/CampaignOutOfStockNotification";
|
@@ -36,5 +38,5 @@ import { WorldsAccessRestrictedNotification } from "./Worlds/WorldsAccessRestric
|
|
36
38
|
import { WorldsMissingResourcesNotification } from "./Worlds/WorldsMissingResourcesNotification";
|
37
39
|
import { WorldsPermissionGrantedNotification } from "./Worlds/WorldsPermissionGrantedNotification";
|
38
40
|
import { WorldsPermissionRevokedNotification } from "./Worlds/WorldsPermissionRevokedNotification";
|
39
|
-
export { BidAcceptedNotification, BidReceivedNotification, CampaignGasPriceHigherThanExpectedNotification, CampaignOutOfFundsNotification, CampaignOutOfStockNotification, EventsStartedNotification, EventsStartsSoonNotification, GovernanceAnnouncementNotification, GovernanceAuthoredProposalFinishedNotification, GovernanceCoauthorRequestedNotification, GovernanceNewCommentOnProjectUpdateNotification, GovernanceNewCommentOnProposalNotification, GovernancePitchPassedNotification, GovernanceProposalEnactedNotification, GovernanceTenderPassedNotification, GovernanceVotingEndedVoterNotification, ItemSoldNotification, LandRentalEndedNotification, LandRentedNotification, RewardAssignedNotification, RewardDelayedNotification, RewardInProgressNotification, RoyaltiesEarnedNotification, StreamingKeyExpiredNotification, StreamingKeyResetNotification, StreamingKeyRevokeNotification, StreamingPlaceUpdatedNotification, StreamingTimeExceededNotification, WorldsAccessRestoredNotification, WorldsAccessRestrictedNotification, WorldsMissingResourcesNotification, WorldsPermissionGrantedNotification, WorldsPermissionRevokedNotification,
|
41
|
+
export { BidAcceptedNotification, BidReceivedNotification, CampaignGasPriceHigherThanExpectedNotification, CampaignOutOfFundsNotification, CampaignOutOfStockNotification, CreditsClaimReminderNotification, CreditsCompleteYourWeeklyGoalsNotification, CreditsDoNotMissOutNotification, CreditsExpireIn24HrsReminderNotification, CreditsExpireSoonReminderNotification, EventsStartedNotification, EventsStartsSoonNotification, GovernanceAnnouncementNotification, GovernanceAuthoredProposalFinishedNotification, GovernanceCoauthorRequestedNotification, GovernanceNewCommentOnProjectUpdateNotification, GovernanceNewCommentOnProposalNotification, GovernancePitchPassedNotification, GovernanceProposalEnactedNotification, GovernanceTenderPassedNotification, GovernanceVotingEndedVoterNotification, ItemSoldNotification, LandRentalEndedNotification, LandRentedNotification, ReferralInvitedUserAcceptedNotification, ReferralNewTierReachedNotification, RewardAssignedNotification, RewardDelayedNotification, RewardInProgressNotification, RoyaltiesEarnedNotification, StreamingKeyExpiredNotification, StreamingKeyResetNotification, StreamingKeyRevokeNotification, StreamingPlaceUpdatedNotification, StreamingTimeExceededNotification, WorldsAccessRestoredNotification, WorldsAccessRestrictedNotification, WorldsMissingResourcesNotification, WorldsPermissionGrantedNotification, WorldsPermissionRevokedNotification, };
|
40
42
|
//# sourceMappingURL=index.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/components/Notifications/NotificationTypes/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gCAAgC,EAAE,MAAM,4CAA4C,CAAA;AAC7F,OAAO,EAAE,0CAA0C,EAAE,MAAM,sDAAsD,CAAA;AACjH,OAAO,EAAE,+BAA+B,EAAE,MAAM,2CAA2C,CAAA;AAC3F,OAAO,EAAE,wCAAwC,EAAE,MAAM,oDAAoD,CAAA;AAC7G,OAAO,EAAE,qCA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,EAAE,MAAM,uCAAuC,CAAA;AACpF,OAAO,EAAE,+BAA+B,EAAE,MAAM,6CAA6C,CAAA;AAC7F,OAAO,EAAE,6BAA6B,EAAE,MAAM,2CAA2C,CAAA;AACzF,OAAO,EAAE,8BAA8B,EAAE,MAAM,4CAA4C,CAAA;AAC3F,OAAO,EAAE,iCAAiC,EAAE,MAAM,+CAA+C,CAAA;AACjG,OAAO,EAAE,iCAAiC,EAAE,MAAM,+CAA+C,CAAA;AACjG,OAAO,EAAE,gCAAgC,EAAE,MAAM,2CAA2C,CAAA;AAC5F,OAAO,EAAE,kCAAkC,EAAE,MAAM,6CAA6C,CAAA;AAChG,OAAO,EAAE,kCAAkC,EAAE,MAAM,6CAA6C,CAAA;AAChG,OAAO,EAAE,mCAAmC,EAAE,MAAM,8CAA8C,CAAA;AAClG,OAAO,EAAE,mCAAmC,EAAE,MAAM,8CAA8C,CAAA;AAElG,OAAO,EACL,uBAAuB,EACvB,uBAAuB,EACvB,8CAA8C,EAC9C,8BAA8B,EAC9B,8BAA8B,EAC9B,yBAAyB,EACzB,4BAA4B,EAC5B,kCAAkC,EAClC,8CAA8C,EAC9C,uCAAuC,EACvC,+CAA+C,EAC/C,0CAA0C,EAC1C,iCAAiC,EACjC,qCAAqC,EACrC,kCAAkC,EAClC,sCAAsC,EACtC,oBAAoB,EACpB,2BAA2B,EAC3B,sBAAsB,EACtB,0BAA0B,EAC1B,yBAAyB,EACzB,4BAA4B,EAC5B,2BAA2B,EAC3B,+BAA+B,EAC/B,6BAA6B,EAC7B,8BAA8B,EAC9B,iCAAiC,EACjC,iCAAiC,EACjC,gCAAgC,EAChC,kCAAkC,EAClC,kCAAkC,EAClC,mCAAmC,EACnC,mCAAmC,
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/components/Notifications/NotificationTypes/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gCAAgC,EAAE,MAAM,4CAA4C,CAAA;AAC7F,OAAO,EAAE,0CAA0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BAA0B,EAC1B,yBAAyB,EACzB,4BAA4B,EAC5B,2BAA2B,EAC3B,+BAA+B,EAC/B,6BAA6B,EAC7B,8BAA8B,EAC9B,iCAAiC,EACjC,iCAAiC,EACjC,gCAAgC,EAChC,kCAAkC,EAClC,kCAAkC,EAClC,mCAAmC,EACnC,mCAAmC,GACpC,CAAA"}
|
@@ -13,9 +13,10 @@ declare const LandNotifications: Story;
|
|
13
13
|
declare const MarketplaceNotifications: Story;
|
14
14
|
declare const RewardsNotifications: Story;
|
15
15
|
declare const CreditsNotifications: Story;
|
16
|
+
declare const ReferralNotifications: Story;
|
16
17
|
declare const StreamingNotifications: Story;
|
17
18
|
declare const WorldsNotifications: Story;
|
18
19
|
declare const OpenNotLoading: Story;
|
19
20
|
declare const OnlySeen: Story;
|
20
21
|
export default meta;
|
21
|
-
export { WithoutNewNotifications, WithNewNotifications, Onboarding, OpenLoading, OpenNotLoadingButEmpty, EventsNotifications, GovernanceNotifications, LandNotifications, MarketplaceNotifications, RewardsNotifications, CreditsNotifications, StreamingNotifications, WorldsNotifications, OpenNotLoading, OnlySeen, };
|
22
|
+
export { WithoutNewNotifications, WithNewNotifications, Onboarding, OpenLoading, OpenNotLoadingButEmpty, EventsNotifications, GovernanceNotifications, LandNotifications, MarketplaceNotifications, RewardsNotifications, CreditsNotifications, ReferralNotifications, StreamingNotifications, WorldsNotifications, OpenNotLoading, OnlySeen, };
|
@@ -3,7 +3,7 @@ import { useState } from "react";
|
|
3
3
|
import { Box } from "@mui/material";
|
4
4
|
import { Notifications } from "./Notifications";
|
5
5
|
import { NotificationActiveTab } from "./types";
|
6
|
-
import { allTypeOfNotifications, bidAcceptedNotificationData, bidReceivedNotificationPropsData, campaignGasPriceHigherThanExpectedNotificationData, campaignOutOfFundsNotificationData, campaignOutOfStockNotificationData, creditsClaimReminderNotificationData, creditsCompleteYourWeeklyGoalsNotificationData, creditsDoNotMissOutNotificationData, creditsExpireIn24HrsReminderNotificationData, creditsExpireSoonReminderNotificationData, eventStartedNotificationData, eventStartsSoonFutureStartNotificationData, eventStartsSoonPastStartNotificationData, governanceAnnouncementNotificationData, governanceAuthoredProposalFinishedNotificationData, governanceCoauthorRequestedNotificationData, governanceNewCommentOnProjectUpdateNotificationData, governanceNewCommentOnProposalNotificationData, governancePitchPassedNotificationData, governanceProposalEnactedNotificationData, governanceTenderPassedNotificationData, governanceVotingEndedVoterNotificationData, itemSoldNotificationPropsData, landRentalEndedNotificationData, landRentedNotificationData, rewardAssignedNotificationData, rewardDelayedNotificationData, rewardInProgressNotificationData, royalitesEarnedNotificationPropsData, streamingKeyExpiredNotificationData, streamingKeyResetNotificationData, streamingKeyRevokeNotificationData, streamingPlaceUpdatedNotificationData, streamingTimeExceededNotificationData, worldsAccessRestoredNotificationData, worldsAccessRestrictedNotificationData, worldsMissingResourcesNotificationData, worldsPermissionGrantedNotificationPropsData, worldsPermissionRevokedNotificationData, } from "../../data/notifications";
|
6
|
+
import { allTypeOfNotifications, bidAcceptedNotificationData, bidReceivedNotificationPropsData, campaignGasPriceHigherThanExpectedNotificationData, campaignOutOfFundsNotificationData, campaignOutOfStockNotificationData, creditsClaimReminderNotificationData, creditsCompleteYourWeeklyGoalsNotificationData, creditsDoNotMissOutNotificationData, creditsExpireIn24HrsReminderNotificationData, creditsExpireSoonReminderNotificationData, eventStartedNotificationData, eventStartsSoonFutureStartNotificationData, eventStartsSoonPastStartNotificationData, governanceAnnouncementNotificationData, governanceAuthoredProposalFinishedNotificationData, governanceCoauthorRequestedNotificationData, governanceNewCommentOnProjectUpdateNotificationData, governanceNewCommentOnProposalNotificationData, governancePitchPassedNotificationData, governanceProposalEnactedNotificationData, governanceTenderPassedNotificationData, governanceVotingEndedVoterNotificationData, itemSoldNotificationPropsData, landRentalEndedNotificationData, landRentedNotificationData, referralInvitedUserAcceptedNotificationData, referralNewTierReachedNotificationData, rewardAssignedNotificationData, rewardDelayedNotificationData, rewardInProgressNotificationData, royalitesEarnedNotificationPropsData, streamingKeyExpiredNotificationData, streamingKeyResetNotificationData, streamingKeyRevokeNotificationData, streamingPlaceUpdatedNotificationData, streamingTimeExceededNotificationData, worldsAccessRestoredNotificationData, worldsAccessRestrictedNotificationData, worldsMissingResourcesNotificationData, worldsPermissionGrantedNotificationPropsData, worldsPermissionRevokedNotificationData, } from "../../data/notifications";
|
7
7
|
import { shorten } from "../AddressField/utils";
|
8
8
|
const meta = {
|
9
9
|
component: Notifications,
|
@@ -126,6 +126,15 @@ const CreditsNotifications = {
|
|
126
126
|
],
|
127
127
|
},
|
128
128
|
};
|
129
|
+
const ReferralNotifications = {
|
130
|
+
name: "Referral Notifications",
|
131
|
+
args: {
|
132
|
+
items: [
|
133
|
+
referralNewTierReachedNotificationData,
|
134
|
+
referralInvitedUserAcceptedNotificationData,
|
135
|
+
],
|
136
|
+
},
|
137
|
+
};
|
129
138
|
const StreamingNotifications = {
|
130
139
|
name: "Streaming Notifications",
|
131
140
|
args: {
|
@@ -168,5 +177,5 @@ const OnlySeen = {
|
|
168
177
|
};
|
169
178
|
// eslint-disable-next-line import/no-default-export
|
170
179
|
export default meta;
|
171
|
-
export { WithoutNewNotifications, WithNewNotifications, Onboarding, OpenLoading, OpenNotLoadingButEmpty, EventsNotifications, GovernanceNotifications, LandNotifications, MarketplaceNotifications, RewardsNotifications, CreditsNotifications, StreamingNotifications, WorldsNotifications, OpenNotLoading, OnlySeen, };
|
180
|
+
export { WithoutNewNotifications, WithNewNotifications, Onboarding, OpenLoading, OpenNotLoadingButEmpty, EventsNotifications, GovernanceNotifications, LandNotifications, MarketplaceNotifications, RewardsNotifications, CreditsNotifications, ReferralNotifications, StreamingNotifications, WorldsNotifications, OpenNotLoading, OnlySeen, };
|
172
181
|
//# sourceMappingURL=Notifications.stories.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"Notifications.stories.js","sourceRoot":"","sources":["../../../src/components/Notifications/Notifications.stories.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,OAA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EACtB,mBAAmB,EACnB,uBAAuB,EACvB,iBAAiB,EACjB,wBAAwB,EACxB,oBAAoB,EACpB,oBAAoB,EACpB,sBAAsB,EACtB,mBAAmB,EACnB,cAAc,EACd,QAAQ,GACT,CAAA"}
|
1
|
+
{"version":3,"file":"Notifications.stories.js","sourceRoot":"","sources":["../../../src/components/Notifications/Notifications.stories.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAA;AAChC,OAAO,EAAE,GAAG,EAAE,MAAM,eAAe,CAAA;AACnC,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAA;AAC/C,OAAO,EAAE,qBAAqB,EAAE,MAAM,SAAS,CAAA;AAC/C,OAAO,EACL,sBAAsB,EACtB,2BAA2B,EAC3B,gCAAgC,EAChC,kDAAkD,EAClD,kCAAkC,EAClC,kCAAkC,EAClC,oCAAoC,EACpC,8CAA8C,EAC9C,mCAAmC,EACnC,4CAA4C,EAC5C,yCAAyC,EACzC,4BAA4B,EAC5B,0CAA0C,EAC1C,wCAAwC,EACxC,sCAAsC,EACtC,kDAAkD,EAClD,2CAA2C,EAC3C,mDAAmD,EACnD,8CAA8C,EAC9C,qCAAqC,EACrC,yCAAyC,EACzC,sCAAsC,EACtC,0CAA0C,EAC1C,6BAA6B,EAC7B,+BAA+B,EAC/B,0BAA0B,EAC1B,2CAA2C,EAC3C,sCAAsC,EACtC,8BAA8B,EAC9B,6BAA6B,EAC7B,gCAAgC,EAChC,oCAAoC,EACpC,mCAAmC,EACnC,iCAAiC,EACjC,kCAAkC,EAClC,qCAAqC,EACrC,qCAAqC,EACrC,oCAAoC,EACpC,sCAAsC,EACtC,sCAAsC,EACtC,4CAA4C,EAC5C,uCAAuC,GACxC,MAAM,0BAA0B,CAAA;AACjC,OAAO,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAA;AAI/C,MAAM,IAAI,GAAS;IACjB,SAAS,EAAE,aAAa;IACxB,KAAK,EAAE,sCAAs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AAE;QACJ,KAAK,EAAE,sBAAsB,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE;YACtC,MAAM,aAAa,GAAG,IAAI,IAAI,EAAE,CAAA;YAChC,aAAa,CAAC,WAAW,CAAC,aAAa,CAAC,WAAW,EAAE,GAAG,CAAC,CAAC,CAAA;YAC1D,OAAO,EAAE,GAAG,CAAC,EAAE,IAAI,EAAE,IAAI,EAAE,SAAS,EAAE,aAAa,CAAC,OAAO,EAAE,EAAE,CAAA;QACjE,CAAC,CAAC;KACH;CACF,CAAA;AAED,oDAAoD;AACpD,eAAe,IAAI,CAAA;AACnB,OAAO,EACL,uBAAuB,EACvB,oBAAoB,EACpB,UAAU,EACV,WAAW,EACX,sBAAsB,EACtB,mBAAmB,EACnB,uBAAuB,EACvB,iBAAiB,EACjB,wBAAwB,EACxB,oBAAoB,EACpB,oBAAoB,EACpB,qBAAqB,EACrB,sBAAsB,EACtB,mBAAmB,EACnB,cAAc,EACd,QAAQ,GACT,CAAA"}
|
@@ -1,4 +1,4 @@
|
|
1
1
|
export { Notifications } from "./Notifications";
|
2
2
|
export type { NotificationsProps } from "./Notifications.types";
|
3
|
-
export type {
|
3
|
+
export type { BidAcceptedNotificationProps, BidReceivedNotificationProps, CommonNotificationProps, DCLNotificationProps, EventsStartedNotificationProps, EventsStartsSoonNotificationProps, GovernanceAnnouncementNotificationProps, GovernanceAuthoredProposalFinishedNotificationProps, GovernanceCoauthorRequestedNotificationProps, GovernanceNewCommentOnProjectUpdateNotificationProps, GovernanceNewCommentOnProposalNotificationProps, GovernancePitchPassedNotificationProps, GovernanceProposalEnactedNotificationProps, GovernanceTenderPassedNotificationProps, GovernanceVotingEndedVoterNotificationProps, ItemSoldNotificationProps, LandRentalEndedNotificationProps, LandRentedNotificationProps, NotificationLocale, RawDecentralandNotification, ReferralInvitedUsersAcceptedNotificationProps, ReferralNewTierReachedNotificationProps, RewardAssignedNotificationProps, RoyalitesEarnedNotificationProps, WorldsAccessRestoredNotificationProps, WorldsAccessRestrictedNotificationProps, WorldsMissingResourcesNotificationProps, WorldsPermissionGrantedNotificationProps, WorldsPermissionRevokedNotificationProps, } from "./types";
|
4
4
|
export { NotificationActiveTab } from "./types";
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/Notifications/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAA;
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/Notifications/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAA;AAiC/C,OAAO,EAAE,qBAAqB,EAAE,MAAM,SAAS,CAAA"}
|
@@ -139,11 +139,27 @@ type StreamingKeyExpiredNotificationProps = RawDecentralandNotification<Notifica
|
|
139
139
|
type StreamingTimeExceededNotificationProps = RawDecentralandNotification<NotificationType.STREAMING_TIME_EXCEEDED, CommonStreamingNotificationMetadataProps>;
|
140
140
|
type StreamingPlaceUpdatedNotificationProps = RawDecentralandNotification<NotificationType.STREAMING_PLACE_UPDATED, CommonStreamingNotificationMetadataProps>;
|
141
141
|
type StreamingNotificationsProps = StreamingKeyResetNotificationProps | StreamingKeyRevokeNotificationProps | StreamingKeyExpiredNotificationProps | StreamingTimeExceededNotificationProps | StreamingPlaceUpdatedNotificationProps;
|
142
|
-
type
|
142
|
+
type ReferralNotificationMetadataProps = {
|
143
|
+
title: string;
|
144
|
+
description: string;
|
145
|
+
address: string;
|
146
|
+
tier: number;
|
147
|
+
url: string;
|
148
|
+
image: string;
|
149
|
+
invitedUserAddress: string;
|
150
|
+
invitedUsers: number;
|
151
|
+
};
|
152
|
+
type NewTierReachedNotificationMetadata = ReferralNotificationMetadataProps & {
|
153
|
+
rarity: Rarity;
|
154
|
+
};
|
155
|
+
type ReferralNewTierReachedNotificationProps = RawDecentralandNotification<NotificationType.REFERRAL_NEW_TIER_REACHED, NewTierReachedNotificationMetadata>;
|
156
|
+
type ReferralInvitedUsersAcceptedNotificationProps = RawDecentralandNotification<NotificationType.REFERRAL_INVITED_USERS_ACCEPTED, ReferralNotificationMetadataProps>;
|
157
|
+
type ReferralNotificationsProps = ReferralNewTierReachedNotificationProps | ReferralInvitedUsersAcceptedNotificationProps;
|
158
|
+
type DCLNotificationProps = MarketplaceNotificationsProps | GovernanceNotificationsProps | WorldsNotificationsProps | LandNotificationsProps | RewardsNotificationProps | EventsNotificationsProps | StreamingNotificationsProps | CreditsNotificationsProps | ReferralNotificationsProps;
|
143
159
|
type CommonNotificationProps<N> = {
|
144
160
|
notification: N;
|
145
161
|
locale: NotificationLocale;
|
146
162
|
renderProfile?: (address: string) => JSX.Element | string | null;
|
147
163
|
};
|
148
164
|
export { NotificationActiveTab };
|
149
|
-
export type { NotificationLocale, RawDecentralandNotification, ItemSoldNotificationProps, RoyalitesEarnedNotificationProps, BidAcceptedNotificationProps, BidReceivedNotificationProps, GovernanceAnnouncementNotificationProps, GovernanceProposalEnactedNotificationProps, GovernanceCoauthorRequestedNotificationProps, GovernanceAuthoredProposalFinishedNotificationProps, GovernanceVotingEndedVoterNotificationProps, GovernanceNewCommentOnProposalNotificationProps, GovernanceNewCommentOnProjectUpdateNotificationProps, GovernancePitchPassedNotificationProps, GovernanceTenderPassedNotificationProps, WorldsMissingResourcesNotificationProps, WorldsAccessRestrictedNotificationProps, WorldsAccessRestoredNotificationProps, WorldsPermissionGrantedNotificationProps, WorldsPermissionRevokedNotificationProps, LandRentedNotificationProps, LandRentalEndedNotificationProps, RewardAssignedNotificationProps, RewardInProgressNotificationProps, RewardDelayedNotificationProps, CampaignOutOfStockNotificationProps, CampaignOutOfFundsNotificationProps, CampaignGasPriceHigherThanExpectedNotificationProps, EventsStartsSoonNotificationProps, EventsStartedNotificationProps, StreamingKeyResetNotificationProps, StreamingKeyRevokeNotificationProps, StreamingKeyExpiredNotificationProps, StreamingTimeExceededNotificationProps, StreamingPlaceUpdatedNotificationProps, StreamingNotificationsProps, DCLNotificationProps, CommonNotificationProps, CreditsNotificationsProps, CreditsCompleteYourWeeklyGoalsNotificationProps, CreditsDoNotMissOutNotificationProps, CreditsClaimReminderNotificationProps, CreditsExpireSoonReminderNotificationProps, CreditsExpireIn24HrsReminderNotificationProps, };
|
165
|
+
export type { NotificationLocale, RawDecentralandNotification, ItemSoldNotificationProps, RoyalitesEarnedNotificationProps, BidAcceptedNotificationProps, BidReceivedNotificationProps, GovernanceAnnouncementNotificationProps, GovernanceProposalEnactedNotificationProps, GovernanceCoauthorRequestedNotificationProps, GovernanceAuthoredProposalFinishedNotificationProps, GovernanceVotingEndedVoterNotificationProps, GovernanceNewCommentOnProposalNotificationProps, GovernanceNewCommentOnProjectUpdateNotificationProps, GovernancePitchPassedNotificationProps, GovernanceTenderPassedNotificationProps, WorldsMissingResourcesNotificationProps, WorldsAccessRestrictedNotificationProps, WorldsAccessRestoredNotificationProps, WorldsPermissionGrantedNotificationProps, WorldsPermissionRevokedNotificationProps, LandRentedNotificationProps, LandRentalEndedNotificationProps, RewardAssignedNotificationProps, RewardInProgressNotificationProps, RewardDelayedNotificationProps, CampaignOutOfStockNotificationProps, CampaignOutOfFundsNotificationProps, CampaignGasPriceHigherThanExpectedNotificationProps, EventsStartsSoonNotificationProps, EventsStartedNotificationProps, StreamingKeyResetNotificationProps, StreamingKeyRevokeNotificationProps, StreamingKeyExpiredNotificationProps, StreamingTimeExceededNotificationProps, StreamingPlaceUpdatedNotificationProps, StreamingNotificationsProps, DCLNotificationProps, CommonNotificationProps, CreditsNotificationsProps, CreditsCompleteYourWeeklyGoalsNotificationProps, CreditsDoNotMissOutNotificationProps, CreditsClaimReminderNotificationProps, CreditsExpireSoonReminderNotificationProps, CreditsExpireIn24HrsReminderNotificationProps, ReferralNewTierReachedNotificationProps, ReferralInvitedUsersAcceptedNotificationProps, };
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../src/components/Notifications/types.ts"],"names":[],"mappings":"AAUA,IAAK,qBAGJ;AAHD,WAAK,qBAAqB;IACxB,0CAAiB,CAAA;IACjB,sCAAa,CAAA;AACf,CAAC,EAHI,qBAAqB,KAArB,qBAAqB,QAGzB;
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../src/components/Notifications/types.ts"],"names":[],"mappings":"AAUA,IAAK,qBAGJ;AAHD,WAAK,qBAAqB;IACxB,0CAAiB,CAAA;IACjB,sCAAa,CAAA;AACf,CAAC,EAHI,qBAAqB,KAArB,qBAAqB,QAGzB;AAmZD,OAAO,EAAE,qBAAqB,EAAE,CAAA"}
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import { Fragment as _Fragment, jsx as _jsx } from "react/jsx-runtime";
|
2
2
|
import { NotificationType, Rarity } from "@dcl/schemas";
|
3
|
-
import { BidAcceptedNotification, BidReceivedNotification, CampaignGasPriceHigherThanExpectedNotification, CampaignOutOfFundsNotification, CampaignOutOfStockNotification, CreditsClaimReminderNotification, CreditsCompleteYourWeeklyGoalsNotification, CreditsDoNotMissOutNotification, CreditsExpireIn24HrsReminderNotification, CreditsExpireSoonReminderNotification, EventsStartedNotification, EventsStartsSoonNotification, GovernanceAnnouncementNotification, GovernanceAuthoredProposalFinishedNotification, GovernanceCoauthorRequestedNotification, GovernanceNewCommentOnProjectUpdateNotification, GovernanceNewCommentOnProposalNotification, GovernancePitchPassedNotification, GovernanceProposalEnactedNotification, GovernanceTenderPassedNotification, GovernanceVotingEndedVoterNotification, ItemSoldNotification, LandRentalEndedNotification, LandRentedNotification, RewardAssignedNotification, RewardDelayedNotification, RewardInProgressNotification, RoyaltiesEarnedNotification, StreamingKeyExpiredNotification, StreamingKeyResetNotification, StreamingKeyRevokeNotification, StreamingPlaceUpdatedNotification, StreamingTimeExceededNotification, WorldsAccessRestoredNotification, WorldsAccessRestrictedNotification, WorldsMissingResourcesNotification, WorldsPermissionGrantedNotification, WorldsPermissionRevokedNotification, } from "./NotificationTypes";
|
3
|
+
import { BidAcceptedNotification, BidReceivedNotification, CampaignGasPriceHigherThanExpectedNotification, CampaignOutOfFundsNotification, CampaignOutOfStockNotification, CreditsClaimReminderNotification, CreditsCompleteYourWeeklyGoalsNotification, CreditsDoNotMissOutNotification, CreditsExpireIn24HrsReminderNotification, CreditsExpireSoonReminderNotification, EventsStartedNotification, EventsStartsSoonNotification, GovernanceAnnouncementNotification, GovernanceAuthoredProposalFinishedNotification, GovernanceCoauthorRequestedNotification, GovernanceNewCommentOnProjectUpdateNotification, GovernanceNewCommentOnProposalNotification, GovernancePitchPassedNotification, GovernanceProposalEnactedNotification, GovernanceTenderPassedNotification, GovernanceVotingEndedVoterNotification, ItemSoldNotification, LandRentalEndedNotification, LandRentedNotification, ReferralInvitedUserAcceptedNotification, ReferralNewTierReachedNotification, RewardAssignedNotification, RewardDelayedNotification, RewardInProgressNotification, RoyaltiesEarnedNotification, StreamingKeyExpiredNotification, StreamingKeyResetNotification, StreamingKeyRevokeNotification, StreamingPlaceUpdatedNotification, StreamingTimeExceededNotification, WorldsAccessRestoredNotification, WorldsAccessRestrictedNotification, WorldsMissingResourcesNotification, WorldsPermissionGrantedNotification, WorldsPermissionRevokedNotification, } from "./NotificationTypes";
|
4
4
|
const MAXIMUM_FRACTION_DIGITS = 2;
|
5
5
|
function formatMana(mana, maximumFractionDigits = MAXIMUM_FRACTION_DIGITS) {
|
6
6
|
return (Number(mana) / 1e18).toFixed(maximumFractionDigits).toLocaleString();
|
@@ -9,44 +9,46 @@ function getBGColorByRarity(rarity) {
|
|
9
9
|
return Rarity.getGradient(rarity).join();
|
10
10
|
}
|
11
11
|
const NotificationComponentByType = {
|
12
|
-
[NotificationType.ROYALTIES_EARNED]: RoyaltiesEarnedNotification,
|
13
|
-
[NotificationType.ITEM_SOLD]: ItemSoldNotification,
|
14
12
|
[NotificationType.BID_ACCEPTED]: BidAcceptedNotification,
|
15
13
|
[NotificationType.BID_RECEIVED]: BidReceivedNotification,
|
14
|
+
[NotificationType.CREDITS_REMINDER_CLAIM_CREDITS]: CreditsClaimReminderNotification,
|
15
|
+
[NotificationType.CREDITS_REMINDER_COMPLETE_GOALS]: CreditsCompleteYourWeeklyGoalsNotification,
|
16
|
+
[NotificationType.CREDITS_REMINDER_DO_NOT_MISS_OUT]: CreditsDoNotMissOutNotification,
|
17
|
+
[NotificationType.CREDITS_REMINDER_USAGE]: CreditsExpireSoonReminderNotification,
|
18
|
+
[NotificationType.CREDITS_REMINDER_USAGE_24_HOURS]: CreditsExpireIn24HrsReminderNotification,
|
19
|
+
[NotificationType.EVENTS_STARTED]: EventsStartedNotification,
|
20
|
+
[NotificationType.EVENTS_STARTS_SOON]: EventsStartsSoonNotification,
|
16
21
|
[NotificationType.GOVERNANCE_ANNOUNCEMENT]: GovernanceAnnouncementNotification,
|
17
|
-
[NotificationType.GOVERNANCE_COAUTHOR_REQUESTED]: GovernanceCoauthorRequestedNotification,
|
18
22
|
[NotificationType.GOVERNANCE_AUTHORED_PROPOSAL_FINISHED]: GovernanceAuthoredProposalFinishedNotification,
|
23
|
+
[NotificationType.GOVERNANCE_COAUTHOR_REQUESTED]: GovernanceCoauthorRequestedNotification,
|
19
24
|
[NotificationType.GOVERNANCE_NEW_COMMENT_ON_PROPOSAL]: GovernanceNewCommentOnProposalNotification,
|
20
25
|
[NotificationType.GOVERNANCE_NEW_COMMENT_ON_PROJECT_UPDATE]: GovernanceNewCommentOnProjectUpdateNotification,
|
21
|
-
[NotificationType.GOVERNANCE_PROPOSAL_ENACTED]: GovernanceProposalEnactedNotification,
|
22
|
-
[NotificationType.GOVERNANCE_VOTING_ENDED_VOTER]: GovernanceVotingEndedVoterNotification,
|
23
26
|
[NotificationType.GOVERNANCE_PITCH_PASSED]: GovernancePitchPassedNotification,
|
27
|
+
[NotificationType.GOVERNANCE_PROPOSAL_ENACTED]: GovernanceProposalEnactedNotification,
|
24
28
|
[NotificationType.GOVERNANCE_TENDER_PASSED]: GovernanceTenderPassedNotification,
|
25
|
-
[NotificationType.
|
26
|
-
[NotificationType.
|
27
|
-
[NotificationType.WORLDS_ACCESS_RESTRICTED]: WorldsAccessRestrictedNotification,
|
28
|
-
[NotificationType.LAND_RENTED]: LandRentedNotification,
|
29
|
+
[NotificationType.GOVERNANCE_VOTING_ENDED_VOTER]: GovernanceVotingEndedVoterNotification,
|
30
|
+
[NotificationType.ITEM_SOLD]: ItemSoldNotification,
|
29
31
|
[NotificationType.LAND_RENTAL_ENDED]: LandRentalEndedNotification,
|
32
|
+
[NotificationType.LAND_RENTED]: LandRentedNotification,
|
33
|
+
[NotificationType.REFERRAL_INVITED_USERS_ACCEPTED]: ReferralInvitedUserAcceptedNotification,
|
34
|
+
[NotificationType.REFERRAL_NEW_TIER_REACHED]: ReferralNewTierReachedNotification,
|
30
35
|
[NotificationType.REWARD_ASSIGNED]: RewardAssignedNotification,
|
31
|
-
[NotificationType.REWARD_IN_PROGRESS]: RewardInProgressNotification,
|
32
|
-
[NotificationType.REWARD_DELAYED]: RewardDelayedNotification,
|
33
|
-
[NotificationType.EVENTS_STARTS_SOON]: EventsStartsSoonNotification,
|
34
|
-
[NotificationType.EVENTS_STARTED]: EventsStartedNotification,
|
35
|
-
[NotificationType.WORLDS_PERMISSION_GRANTED]: WorldsPermissionGrantedNotification,
|
36
|
-
[NotificationType.WORLDS_PERMISSION_REVOKED]: WorldsPermissionRevokedNotification,
|
37
|
-
[NotificationType.REWARD_CAMPAIGN_OUT_OF_FUNDS]: CampaignOutOfFundsNotification,
|
38
36
|
[NotificationType.REWARD_CAMPAIGN_GAS_PRICE_HIGHER_THAN_EXPECTED]: CampaignGasPriceHigherThanExpectedNotification,
|
37
|
+
[NotificationType.REWARD_CAMPAIGN_OUT_OF_FUNDS]: CampaignOutOfFundsNotification,
|
39
38
|
[NotificationType.REWARD_CAMPAIGN_OUT_OF_STOCK]: CampaignOutOfStockNotification,
|
39
|
+
[NotificationType.REWARD_DELAYED]: RewardDelayedNotification,
|
40
|
+
[NotificationType.REWARD_IN_PROGRESS]: RewardInProgressNotification,
|
41
|
+
[NotificationType.ROYALTIES_EARNED]: RoyaltiesEarnedNotification,
|
42
|
+
[NotificationType.STREAMING_KEY_EXPIRED]: StreamingKeyExpiredNotification,
|
40
43
|
[NotificationType.STREAMING_KEY_RESET]: StreamingKeyResetNotification,
|
41
44
|
[NotificationType.STREAMING_KEY_REVOKE]: StreamingKeyRevokeNotification,
|
42
|
-
[NotificationType.STREAMING_KEY_EXPIRED]: StreamingKeyExpiredNotification,
|
43
|
-
[NotificationType.STREAMING_TIME_EXCEEDED]: StreamingTimeExceededNotification,
|
44
45
|
[NotificationType.STREAMING_PLACE_UPDATED]: StreamingPlaceUpdatedNotification,
|
45
|
-
[NotificationType.
|
46
|
-
[NotificationType.
|
47
|
-
[NotificationType.
|
48
|
-
[NotificationType.
|
49
|
-
[NotificationType.
|
46
|
+
[NotificationType.STREAMING_TIME_EXCEEDED]: StreamingTimeExceededNotification,
|
47
|
+
[NotificationType.WORLDS_ACCESS_RESTORED]: WorldsAccessRestoredNotification,
|
48
|
+
[NotificationType.WORLDS_ACCESS_RESTRICTED]: WorldsAccessRestrictedNotification,
|
49
|
+
[NotificationType.WORLDS_MISSING_RESOURCES]: WorldsMissingResourcesNotification,
|
50
|
+
[NotificationType.WORLDS_PERMISSION_GRANTED]: WorldsPermissionGrantedNotification,
|
51
|
+
[NotificationType.WORLDS_PERMISSION_REVOKED]: WorldsPermissionRevokedNotification,
|
50
52
|
};
|
51
53
|
const CURRENT_AVAILABLE_NOTIFICATIONS = Object.keys(NotificationComponentByType);
|
52
54
|
const replaceWithValues = (str, values) => {
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"utils.js","sourceRoot":"","sources":["../../../src/components/Notifications/utils.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,gBAAgB,EAAE,MAAM,EAAE,MAAM,cAAc,CAAA;AACvD,OAAO,EACL,uBAAuB,EACvB,uBAAuB,EACvB,8CAA8C,EAC9C,8BAA8B,EAC9B,8BAA8B,EAC9B,gCAAgC,EAChC,0CAA0C,EAC1C,+BAA+B,EAC/B,wCAAwC,EACxC,qCAAqC,EACrC,yBAAyB,EACzB,4BAA4B,EAC5B,kCAAkC,EAClC,8CAA8C,EAC9C,uCAAuC,EACvC,+CAA+C,EAC/C,0CAA0C,EAC1C,iCAAiC,EACjC,qCAAqC,EACrC,kCAAkC,EAClC,sCAAsC,EACtC,oBAAoB,EACpB,2BAA2B,EAC3B,sBAAsB,EACtB,0BAA0B,EAC1B,yBAAyB,EACzB,4BAA4B,EAC5B,2BAA2B,EAC3B,+BAA+B,EAC/B,6BAA6B,EAC7B,8BAA8B,EAC9B,iCAAiC,EACjC,iCAAiC,EACjC,gCAAgC,EAChC,kCAAkC,EAClC,kCAAkC,EAClC,mCAAmC,EACnC,mCAAmC,GACpC,MAAM,qBAAqB,CAAA;AAG5B,MAAM,uBAAuB,GAAG,CAAC,CAAA;AAEjC,SAAS,UAAU,CACjB,IAAY,EACZ,qBAAqB,GAAG,uBAAuB;IAE/C,OAAO,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,IAAI,CAAC,CAAC,OAAO,CAAC,qBAAqB,CAAC,CAAC,cAAc,EAAE,CAAA;AAC9E,CAAC;AAED,SAAS,kBAAkB,CAAC,MAAc;IACxC,OAAO,MAAM,CAAC,WAAW,CAAC,MAAM,CAAC,CAAC,IAAI,EAAE,CAAA;AAC1C,CAAC;AASD,MAAM,2BAA2B,GAC/B;IACE,CAAC,gBAAgB,CAAC,
|
1
|
+
{"version":3,"file":"utils.js","sourceRoot":"","sources":["../../../src/components/Notifications/utils.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,gBAAgB,EAAE,MAAM,EAAE,MAAM,cAAc,CAAA;AACvD,OAAO,EACL,uBAAuB,EACvB,uBAAuB,EACvB,8CAA8C,EAC9C,8BAA8B,EAC9B,8BAA8B,EAC9B,gCAAgC,EAChC,0CAA0C,EAC1C,+BAA+B,EAC/B,wCAAwC,EACxC,qCAAqC,EACrC,yBAAyB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,CAAC,CAAA;AAED,OAAO,EACL,uBAAuB,EACvB,UAAU,EACV,kBAAkB,EAElB,2BAA2B,EAC3B,+BAA+B,EAC/B,iBAAiB,GAClB,CAAA"}
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import { CreditsExpireIn24HrsReminderNotificationProps, CreditsExpireSoonReminderNotificationProps } from "components/Notifications/NotificationTypes/Credits/types";
|
2
|
-
import { BidAcceptedNotificationProps, BidReceivedNotificationProps, CampaignGasPriceHigherThanExpectedNotificationProps, CampaignOutOfFundsNotificationProps, CampaignOutOfStockNotificationProps, CreditsClaimReminderNotificationProps, CreditsCompleteYourWeeklyGoalsNotificationProps, CreditsDoNotMissOutNotificationProps, EventsStartedNotificationProps, EventsStartsSoonNotificationProps, GovernanceAnnouncementNotificationProps, GovernanceAuthoredProposalFinishedNotificationProps, GovernanceCoauthorRequestedNotificationProps, GovernanceNewCommentOnProjectUpdateNotificationProps, GovernanceNewCommentOnProposalNotificationProps, GovernancePitchPassedNotificationProps, GovernanceProposalEnactedNotificationProps, GovernanceTenderPassedNotificationProps, GovernanceVotingEndedVoterNotificationProps, ItemSoldNotificationProps, LandRentalEndedNotificationProps, LandRentedNotificationProps, RewardAssignedNotificationProps, RewardDelayedNotificationProps, RewardInProgressNotificationProps, RoyalitesEarnedNotificationProps, StreamingKeyExpiredNotificationProps, StreamingKeyResetNotificationProps, StreamingKeyRevokeNotificationProps, StreamingPlaceUpdatedNotificationProps, StreamingTimeExceededNotificationProps, WorldsAccessRestoredNotificationProps, WorldsAccessRestrictedNotificationProps, WorldsMissingResourcesNotificationProps, WorldsPermissionGrantedNotificationProps, WorldsPermissionRevokedNotificationProps } from "../components/Notifications/types";
|
2
|
+
import { BidAcceptedNotificationProps, BidReceivedNotificationProps, CampaignGasPriceHigherThanExpectedNotificationProps, CampaignOutOfFundsNotificationProps, CampaignOutOfStockNotificationProps, CreditsClaimReminderNotificationProps, CreditsCompleteYourWeeklyGoalsNotificationProps, CreditsDoNotMissOutNotificationProps, EventsStartedNotificationProps, EventsStartsSoonNotificationProps, GovernanceAnnouncementNotificationProps, GovernanceAuthoredProposalFinishedNotificationProps, GovernanceCoauthorRequestedNotificationProps, GovernanceNewCommentOnProjectUpdateNotificationProps, GovernanceNewCommentOnProposalNotificationProps, GovernancePitchPassedNotificationProps, GovernanceProposalEnactedNotificationProps, GovernanceTenderPassedNotificationProps, GovernanceVotingEndedVoterNotificationProps, ItemSoldNotificationProps, LandRentalEndedNotificationProps, LandRentedNotificationProps, ReferralInvitedUsersAcceptedNotificationProps, ReferralNewTierReachedNotificationProps, RewardAssignedNotificationProps, RewardDelayedNotificationProps, RewardInProgressNotificationProps, RoyalitesEarnedNotificationProps, StreamingKeyExpiredNotificationProps, StreamingKeyResetNotificationProps, StreamingKeyRevokeNotificationProps, StreamingPlaceUpdatedNotificationProps, StreamingTimeExceededNotificationProps, WorldsAccessRestoredNotificationProps, WorldsAccessRestrictedNotificationProps, WorldsMissingResourcesNotificationProps, WorldsPermissionGrantedNotificationProps, WorldsPermissionRevokedNotificationProps } from "../components/Notifications/types";
|
3
3
|
declare const bidAcceptedNotificationData: BidAcceptedNotificationProps;
|
4
4
|
declare const bidReceivedNotificationPropsData: BidReceivedNotificationProps;
|
5
5
|
declare const campaignGasPriceHigherThanExpectedNotificationData: CampaignGasPriceHigherThanExpectedNotificationProps;
|
@@ -34,10 +34,12 @@ declare const worldsAccessRestrictedNotificationData: WorldsAccessRestrictedNoti
|
|
34
34
|
declare const worldsMissingResourcesNotificationData: WorldsMissingResourcesNotificationProps;
|
35
35
|
declare const worldsPermissionGrantedNotificationPropsData: WorldsPermissionGrantedNotificationProps;
|
36
36
|
declare const worldsPermissionRevokedNotificationData: WorldsPermissionRevokedNotificationProps;
|
37
|
+
declare const creditsClaimReminderNotificationData: CreditsClaimReminderNotificationProps;
|
37
38
|
declare const creditsCompleteYourWeeklyGoalsNotificationData: CreditsCompleteYourWeeklyGoalsNotificationProps;
|
38
39
|
declare const creditsDoNotMissOutNotificationData: CreditsDoNotMissOutNotificationProps;
|
39
|
-
declare const creditsClaimReminderNotificationData: CreditsClaimReminderNotificationProps;
|
40
|
-
declare const creditsExpireSoonReminderNotificationData: CreditsExpireSoonReminderNotificationProps;
|
41
40
|
declare const creditsExpireIn24HrsReminderNotificationData: CreditsExpireIn24HrsReminderNotificationProps;
|
42
|
-
declare const
|
43
|
-
|
41
|
+
declare const creditsExpireSoonReminderNotificationData: CreditsExpireSoonReminderNotificationProps;
|
42
|
+
declare const referralNewTierReachedNotificationData: ReferralNewTierReachedNotificationProps;
|
43
|
+
declare const referralInvitedUserAcceptedNotificationData: ReferralInvitedUsersAcceptedNotificationProps;
|
44
|
+
declare const allTypeOfNotifications: (CreditsCompleteYourWeeklyGoalsNotificationProps | CreditsDoNotMissOutNotificationProps | CreditsClaimReminderNotificationProps | CreditsExpireSoonReminderNotificationProps | CreditsExpireIn24HrsReminderNotificationProps | ItemSoldNotificationProps | RoyalitesEarnedNotificationProps | BidAcceptedNotificationProps | BidReceivedNotificationProps | RewardAssignedNotificationProps | RewardInProgressNotificationProps | RewardDelayedNotificationProps | CampaignOutOfFundsNotificationProps | CampaignOutOfStockNotificationProps | CampaignGasPriceHigherThanExpectedNotificationProps | GovernanceAnnouncementNotificationProps | GovernanceProposalEnactedNotificationProps | GovernanceCoauthorRequestedNotificationProps | GovernanceAuthoredProposalFinishedNotificationProps | GovernanceVotingEndedVoterNotificationProps | GovernanceNewCommentOnProposalNotificationProps | GovernanceNewCommentOnProjectUpdateNotificationProps | GovernancePitchPassedNotificationProps | GovernanceTenderPassedNotificationProps | WorldsMissingResourcesNotificationProps | WorldsAccessRestrictedNotificationProps | WorldsAccessRestoredNotificationProps | WorldsPermissionGrantedNotificationProps | WorldsPermissionRevokedNotificationProps | LandRentedNotificationProps | LandRentalEndedNotificationProps | EventsStartsSoonNotificationProps | EventsStartedNotificationProps | StreamingKeyResetNotificationProps | StreamingKeyRevokeNotificationProps | StreamingKeyExpiredNotificationProps | StreamingTimeExceededNotificationProps | StreamingPlaceUpdatedNotificationProps | ReferralNewTierReachedNotificationProps | ReferralInvitedUsersAcceptedNotificationProps)[];
|
45
|
+
export { allTypeOfNotifications, bidAcceptedNotificationData, bidReceivedNotificationPropsData, campaignGasPriceHigherThanExpectedNotificationData, campaignOutOfFundsNotificationData, campaignOutOfStockNotificationData, creditsClaimReminderNotificationData, creditsCompleteYourWeeklyGoalsNotificationData, creditsDoNotMissOutNotificationData, creditsExpireIn24HrsReminderNotificationData, creditsExpireSoonReminderNotificationData, eventStartedNotificationData, eventStartsSoonFutureStartNotificationData, eventStartsSoonPastStartNotificationData, governanceAnnouncementNotificationData, governanceAuthoredProposalFinishedNotificationData, governanceCoauthorRequestedNotificationData, governanceNewCommentOnProjectUpdateNotificationData, governanceNewCommentOnProposalNotificationData, governancePitchPassedNotificationData, governanceProposalEnactedNotificationData, governanceTenderPassedNotificationData, governanceVotingEndedVoterNotificationData, itemSoldNotificationPropsData, landRentalEndedNotificationData, landRentedNotificationData, referralInvitedUserAcceptedNotificationData, referralNewTierReachedNotificationData, rewardAssignedNotificationData, rewardDelayedNotificationData, rewardInProgressNotificationData, royalitesEarnedNotificationPropsData, streamingKeyExpiredNotificationData, streamingKeyResetNotificationData, streamingKeyRevokeNotificationData, streamingPlaceUpdatedNotificationData, streamingTimeExceededNotificationData, worldsAccessRestoredNotificationData, worldsAccessRestrictedNotificationData, worldsMissingResourcesNotificationData, worldsPermissionGrantedNotificationPropsData, worldsPermissionRevokedNotificationData, };
|
@@ -553,6 +553,16 @@ const worldsPermissionRevokedNotificationData = {
|
|
553
553
|
created_at: "2023-11-29T12:51:00.600Z",
|
554
554
|
updated_at: "2023-11-29T12:51:00.600Z",
|
555
555
|
};
|
556
|
+
const creditsClaimReminderNotificationData = {
|
557
|
+
id: NotificationType.CREDITS_REMINDER_CLAIM_CREDITS,
|
558
|
+
type: NotificationType.CREDITS_REMINDER_CLAIM_CREDITS,
|
559
|
+
address: "0x1234567890123456789012345678901234567890",
|
560
|
+
timestamp: new Date().getTime(),
|
561
|
+
read: true,
|
562
|
+
created_at: new Date().toISOString(),
|
563
|
+
updated_at: new Date().toISOString(),
|
564
|
+
metadata: {},
|
565
|
+
};
|
556
566
|
const creditsCompleteYourWeeklyGoalsNotificationData = {
|
557
567
|
id: NotificationType.CREDITS_REMINDER_COMPLETE_GOALS,
|
558
568
|
type: NotificationType.CREDITS_REMINDER_COMPLETE_GOALS,
|
@@ -573,15 +583,17 @@ const creditsDoNotMissOutNotificationData = {
|
|
573
583
|
updated_at: new Date().toISOString(),
|
574
584
|
metadata: {},
|
575
585
|
};
|
576
|
-
const
|
577
|
-
id: NotificationType.
|
578
|
-
type: NotificationType.
|
586
|
+
const creditsExpireIn24HrsReminderNotificationData = {
|
587
|
+
id: NotificationType.CREDITS_REMINDER_USAGE_24_HOURS,
|
588
|
+
type: NotificationType.CREDITS_REMINDER_USAGE_24_HOURS,
|
579
589
|
address: "0x1234567890123456789012345678901234567890",
|
580
590
|
timestamp: new Date().getTime(),
|
581
591
|
read: true,
|
582
592
|
created_at: new Date().toISOString(),
|
583
593
|
updated_at: new Date().toISOString(),
|
584
|
-
metadata: {
|
594
|
+
metadata: {
|
595
|
+
expirationDate: "July 27 at 23:59 UTC",
|
596
|
+
},
|
585
597
|
};
|
586
598
|
const creditsExpireSoonReminderNotificationData = {
|
587
599
|
id: NotificationType.CREDITS_REMINDER_USAGE,
|
@@ -595,16 +607,43 @@ const creditsExpireSoonReminderNotificationData = {
|
|
595
607
|
expirationDate: "July 27 at 23:59 UTC",
|
596
608
|
},
|
597
609
|
};
|
598
|
-
const
|
599
|
-
id: NotificationType.
|
600
|
-
type: NotificationType.
|
610
|
+
const referralNewTierReachedNotificationData = {
|
611
|
+
id: NotificationType.REFERRAL_NEW_TIER_REACHED,
|
612
|
+
type: NotificationType.REFERRAL_NEW_TIER_REACHED,
|
601
613
|
address: "0x1234567890123456789012345678901234567890",
|
602
614
|
timestamp: new Date().getTime(),
|
603
|
-
read:
|
604
|
-
created_at:
|
605
|
-
updated_at:
|
615
|
+
read: false,
|
616
|
+
created_at: "2023-11-29T12:51:00.600Z",
|
617
|
+
updated_at: "2023-11-29T12:51:00.600Z",
|
606
618
|
metadata: {
|
607
|
-
|
619
|
+
title: "Referral Reward Unlocked!",
|
620
|
+
description: "Check the 'Referral Rewards' tab in your web profile to see your prize!",
|
621
|
+
address: "0x1234567890123456789012345678901234567890",
|
622
|
+
tier: 1,
|
623
|
+
url: "https://decentraland.org/referrals",
|
624
|
+
image: "https://peer.decentraland.org/lambdas/collections/contents/urn:decentraland:ethereum:collections-v1:binance_us_collection:binance_us_upper_body/thumbnail",
|
625
|
+
invitedUserAddress: "0xabcdef1234567890abcdef1234567890abcdef12",
|
626
|
+
invitedUsers: 5,
|
627
|
+
rarity: Rarity.EXOTIC,
|
628
|
+
},
|
629
|
+
};
|
630
|
+
const referralInvitedUserAcceptedNotificationData = {
|
631
|
+
id: NotificationType.REFERRAL_INVITED_USERS_ACCEPTED,
|
632
|
+
type: NotificationType.REFERRAL_INVITED_USERS_ACCEPTED,
|
633
|
+
address: "0x1234567890123456789012345678901234567890",
|
634
|
+
timestamp: new Date().getTime(),
|
635
|
+
read: false,
|
636
|
+
created_at: "2023-11-29T12:51:00.600Z",
|
637
|
+
updated_at: "2023-11-29T12:51:00.600Z",
|
638
|
+
metadata: {
|
639
|
+
title: "Referral Completed!",
|
640
|
+
description: "Your friend jumped into Decentraland, so you're closer to unlocking your next reward!",
|
641
|
+
address: "0x1234567890123456789012345678901234567890",
|
642
|
+
tier: 1,
|
643
|
+
url: "https://decentraland.org/referrals",
|
644
|
+
image: "https://example.com/image.png",
|
645
|
+
invitedUserAddress: "0xabcdef1234567890abcdef1234567890abcdef12",
|
646
|
+
invitedUsers: 7,
|
608
647
|
},
|
609
648
|
};
|
610
649
|
const allTypeOfNotifications = [
|
@@ -613,6 +652,11 @@ const allTypeOfNotifications = [
|
|
613
652
|
campaignGasPriceHigherThanExpectedNotificationData,
|
614
653
|
campaignOutOfFundsNotificationData,
|
615
654
|
campaignOutOfStockNotificationData,
|
655
|
+
creditsClaimReminderNotificationData,
|
656
|
+
creditsCompleteYourWeeklyGoalsNotificationData,
|
657
|
+
creditsDoNotMissOutNotificationData,
|
658
|
+
creditsExpireIn24HrsReminderNotificationData,
|
659
|
+
creditsExpireSoonReminderNotificationData,
|
616
660
|
eventStartedNotificationData,
|
617
661
|
eventStartsSoonFutureStartNotificationData,
|
618
662
|
eventStartsSoonPastStartNotificationData,
|
@@ -628,6 +672,8 @@ const allTypeOfNotifications = [
|
|
628
672
|
itemSoldNotificationPropsData,
|
629
673
|
landRentalEndedNotificationData,
|
630
674
|
landRentedNotificationData,
|
675
|
+
referralInvitedUserAcceptedNotificationData,
|
676
|
+
referralNewTierReachedNotificationData,
|
631
677
|
rewardAssignedNotificationData,
|
632
678
|
rewardDelayedNotificationData,
|
633
679
|
rewardInProgressNotificationData,
|
@@ -642,11 +688,6 @@ const allTypeOfNotifications = [
|
|
642
688
|
worldsMissingResourcesNotificationData,
|
643
689
|
worldsPermissionGrantedNotificationPropsData,
|
644
690
|
worldsPermissionRevokedNotificationData,
|
645
|
-
creditsCompleteYourWeeklyGoalsNotificationData,
|
646
|
-
creditsDoNotMissOutNotificationData,
|
647
|
-
creditsClaimReminderNotificationData,
|
648
|
-
creditsExpireSoonReminderNotificationData,
|
649
|
-
creditsExpireIn24HrsReminderNotificationData,
|
650
691
|
];
|
651
|
-
export { allTypeOfNotifications, bidAcceptedNotificationData, bidReceivedNotificationPropsData, campaignGasPriceHigherThanExpectedNotificationData, campaignOutOfFundsNotificationData, campaignOutOfStockNotificationData, eventStartedNotificationData, eventStartsSoonFutureStartNotificationData, eventStartsSoonPastStartNotificationData, governanceAnnouncementNotificationData, governanceAuthoredProposalFinishedNotificationData, governanceCoauthorRequestedNotificationData, governanceNewCommentOnProjectUpdateNotificationData, governanceNewCommentOnProposalNotificationData, governancePitchPassedNotificationData, governanceProposalEnactedNotificationData, governanceTenderPassedNotificationData, governanceVotingEndedVoterNotificationData, itemSoldNotificationPropsData, landRentalEndedNotificationData, landRentedNotificationData, rewardAssignedNotificationData, rewardDelayedNotificationData, rewardInProgressNotificationData, royalitesEarnedNotificationPropsData, streamingKeyExpiredNotificationData, streamingKeyResetNotificationData, streamingKeyRevokeNotificationData, streamingPlaceUpdatedNotificationData, streamingTimeExceededNotificationData, worldsAccessRestoredNotificationData, worldsAccessRestrictedNotificationData, worldsMissingResourcesNotificationData, worldsPermissionGrantedNotificationPropsData, worldsPermissionRevokedNotificationData,
|
692
|
+
export { allTypeOfNotifications, bidAcceptedNotificationData, bidReceivedNotificationPropsData, campaignGasPriceHigherThanExpectedNotificationData, campaignOutOfFundsNotificationData, campaignOutOfStockNotificationData, creditsClaimReminderNotificationData, creditsCompleteYourWeeklyGoalsNotificationData, creditsDoNotMissOutNotificationData, creditsExpireIn24HrsReminderNotificationData, creditsExpireSoonReminderNotificationData, eventStartedNotificationData, eventStartsSoonFutureStartNotificationData, eventStartsSoonPastStartNotificationData, governanceAnnouncementNotificationData, governanceAuthoredProposalFinishedNotificationData, governanceCoauthorRequestedNotificationData, governanceNewCommentOnProjectUpdateNotificationData, governanceNewCommentOnProposalNotificationData, governancePitchPassedNotificationData, governanceProposalEnactedNotificationData, governanceTenderPassedNotificationData, governanceVotingEndedVoterNotificationData, itemSoldNotificationPropsData, landRentalEndedNotificationData, landRentedNotificationData, referralInvitedUserAcceptedNotificationData, referralNewTierReachedNotificationData, rewardAssignedNotificationData, rewardDelayedNotificationData, rewardInProgressNotificationData, royalitesEarnedNotificationPropsData, streamingKeyExpiredNotificationData, streamingKeyResetNotificationData, streamingKeyRevokeNotificationData, streamingPlaceUpdatedNotificationData, streamingTimeExceededNotificationData, worldsAccessRestoredNotificationData, worldsAccessRestrictedNotificationData, worldsMissingResourcesNotificationData, worldsPermissionGrantedNotificationPropsData, worldsPermissionRevokedNotificationData, };
|
652
693
|
//# sourceMappingURL=notifications.js.map
|