decentraland-ui2 0.33.2-18823871893.commit-247e09a → 0.33.3-18844659011.commit-775a7d7

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.
@@ -0,0 +1,5 @@
1
+ import React from "react";
2
+ import { CommonNotificationProps } from "components/Notifications/types";
3
+ import { CreditsOnDemandGrantedNotificationProps } from "./types";
4
+ declare const CreditsOnDemandGrantedNotification: React.MemoExoticComponent<(props: CommonNotificationProps<CreditsOnDemandGrantedNotificationProps>) => import("react/jsx-runtime").JSX.Element>;
5
+ export { CreditsOnDemandGrantedNotification as CreditsClaimReminderNotification };
@@ -0,0 +1,15 @@
1
+ declare const i18n: {
2
+ en: {
3
+ description: string;
4
+ title: string;
5
+ };
6
+ es: {
7
+ description: string;
8
+ title: string;
9
+ };
10
+ zh: {
11
+ description: string;
12
+ title: string;
13
+ };
14
+ };
15
+ export { i18n };
@@ -0,0 +1,16 @@
1
+ const i18n = {
2
+ en: {
3
+ description: "Congrats! You've earned {amount} extra Credits for this season. Make sure to use them before they expire!",
4
+ title: "Bonus Credits Unlocked!",
5
+ },
6
+ es: {
7
+ description: "¡Felicidades! Has ganado {amount} créditos adicionales para esta temporada. ¡Asegúrate de usarlos antes de que caduquen!",
8
+ title: "¡Créditos adicionales desbloqueados!",
9
+ },
10
+ zh: {
11
+ description: "恭喜!您已获得本赛季的{amount}额外积分。请务必在它们过期前使用!",
12
+ title: "奖励积分已解锁!",
13
+ },
14
+ };
15
+ export { i18n };
16
+ //# sourceMappingURL=CreditsOnDemandGrantedNotification.i18n.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CreditsOnDemandGrantedNotification.i18n.js","sourceRoot":"","sources":["../../../../../src/components/Notifications/NotificationTypes/Credits/CreditsOnDemandGrantedNotification.i18n.ts"],"names":[],"mappings":"AAAA,MAAM,IAAI,GAAG;IACX,EAAE,EAAE;QACF,WAAW,EACT,2GAA2G;QAC7G,KAAK,EAAE,yBAAyB;KACjC;IACD,EAAE,EAAE;QACF,WAAW,EACT,0HAA0H;QAC5H,KAAK,EAAE,sCAAsC;KAC9C;IACD,EAAE,EAAE;QACF,WAAW,EACT,sCAAsC;QACxC,KAAK,EAAE,UAAU;KAClB;CACF,CAAA;AAED,OAAO,EAAE,IAAI,EAAE,CAAA"}
@@ -0,0 +1,15 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import React from "react";
3
+ import { replaceWithValues } from "components/Notifications/utils";
4
+ import { i18n } from "./CreditsClaimReminderNotification.i18n";
5
+ import { CreditsIcon } from "../../../Icon/Notifications/CreditsIcon";
6
+ import { NotificationItem } from "../../NotificationItem";
7
+ import { NotificationItemDescription, NotificationItemTitle, } from "../../NotificationItem.styled";
8
+ const CreditsOnDemandGrantedNotification = React.memo((props) => {
9
+ const { notification, locale } = props;
10
+ return (_jsxs(NotificationItem, { image: _jsx(CreditsIcon, { width: 48, height: 48 }), timestamp: notification.timestamp, isNew: !notification.read, locale: locale, children: [_jsx(NotificationItemTitle, { children: i18n[locale].title }), _jsx(NotificationItemDescription, { color: "inherit", underline: "none", children: replaceWithValues(i18n[locale].description, {
11
+ amount: notification.metadata.creditsGranted.toLocaleString(),
12
+ }) })] }));
13
+ });
14
+ export { CreditsOnDemandGrantedNotification as CreditsClaimReminderNotification };
15
+ //# sourceMappingURL=CreditsOnDemandGrantedNotification.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CreditsOnDemandGrantedNotification.js","sourceRoot":"","sources":["../../../../../src/components/Notifications/NotificationTypes/Credits/CreditsOnDemandGrantedNotification.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAEzB,OAAO,EAAE,iBAAiB,EAAE,MAAM,gCAAgC,CAAA;AAClE,OAAO,EAAE,IAAI,EAAE,MAAM,yCAAyC,CAAA;AAE9D,OAAO,EAAE,WAAW,EAAE,MAAM,yCAAyC,CAAA;AACrE,OAAO,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAA;AACzD,OAAO,EACL,2BAA2B,EAC3B,qBAAqB,GACtB,MAAM,+BAA+B,CAAA;AAEtC,MAAM,kCAAkC,GAAG,KAAK,CAAC,IAAI,CACnD,CAAC,KAAuE,EAAE,EAAE;IAC1E,MAAM,EAAE,YAAY,EAAE,MAAM,EAAE,GAAG,KAAK,CAAA;IACtC,OAAO,CACL,MAAC,gBAAgB,IACf,KAAK,EAAE,KAAC,WAAW,IAAC,KAAK,EAAE,EAAE,EAAE,MAAM,EAAE,EAAE,GAAI,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,iBAAiB,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,WAAW,EAAE;oBAC3C,MAAM,EAAE,YAAY,CAAC,QAAQ,CAAC,cAAc,CAAC,cAAc,EAAE;iBAC9D,CAAC,GAC0B,IACb,CACpB,CAAA;AACH,CAAC,CACF,CAAA;AAED,OAAO,EAAE,kCAAkC,IAAI,gCAAgC,EAAE,CAAA"}
@@ -1,6 +1,6 @@
1
1
  import { NotificationType } from "@dcl/schemas";
2
2
  import { RawDecentralandNotification } from "components/Notifications/types";
3
- type CreditsNotificationsProps = CreditsCompleteYourWeeklyGoalsNotificationProps | CreditsDoNotMissOutNotificationProps | CreditsClaimReminderNotificationProps | CreditsExpireSoonReminderNotificationProps | CreditsExpireIn24HrsReminderNotificationProps;
3
+ type CreditsNotificationsProps = CreditsCompleteYourWeeklyGoalsNotificationProps | CreditsDoNotMissOutNotificationProps | CreditsClaimReminderNotificationProps | CreditsOnDemandGrantedNotificationProps | CreditsExpireSoonReminderNotificationProps | CreditsExpireIn24HrsReminderNotificationProps;
4
4
  type CreditsExpirationCommonProps = {
5
5
  expirationDate: string;
6
6
  };
@@ -9,4 +9,7 @@ type CreditsDoNotMissOutNotificationProps = RawDecentralandNotification<Notifica
9
9
  type CreditsClaimReminderNotificationProps = RawDecentralandNotification<NotificationType.CREDITS_REMINDER_CLAIM_CREDITS, {}>;
10
10
  type CreditsExpireSoonReminderNotificationProps = RawDecentralandNotification<NotificationType.CREDITS_REMINDER_USAGE, CreditsExpirationCommonProps>;
11
11
  type CreditsExpireIn24HrsReminderNotificationProps = RawDecentralandNotification<NotificationType.CREDITS_REMINDER_USAGE_24_HOURS, CreditsExpirationCommonProps>;
12
- export type { CreditsNotificationsProps, CreditsCompleteYourWeeklyGoalsNotificationProps, CreditsDoNotMissOutNotificationProps, CreditsClaimReminderNotificationProps, CreditsExpireSoonReminderNotificationProps, CreditsExpireIn24HrsReminderNotificationProps, };
12
+ type CreditsOnDemandGrantedNotificationProps = RawDecentralandNotification<NotificationType.CREDITS_ON_DEMAND_GRANTED, {
13
+ creditsGranted: number;
14
+ }>;
15
+ export type { CreditsNotificationsProps, CreditsCompleteYourWeeklyGoalsNotificationProps, CreditsDoNotMissOutNotificationProps, CreditsClaimReminderNotificationProps, CreditsExpireSoonReminderNotificationProps, CreditsExpireIn24HrsReminderNotificationProps, CreditsOnDemandGrantedNotificationProps, };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "decentraland-ui2",
3
- "version": "0.33.2-18823871893.commit-247e09a",
3
+ "version": "0.33.3-18844659011.commit-775a7d7",
4
4
  "description": "Decentraland's UI components and styles",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -39,7 +39,7 @@
39
39
  "dependencies": {
40
40
  "@contentful/rich-text-react-renderer": "^16.0.1",
41
41
  "@dcl/hooks": "^0.0.4",
42
- "@dcl/schemas": "^19.3.0",
42
+ "@dcl/schemas": "^19.4.0",
43
43
  "@dcl/ui-env": "^1.5.1",
44
44
  "@emotion/react": "^11.11.4",
45
45
  "@emotion/styled": "^11.11.5",
@@ -99,5 +99,5 @@
99
99
  "files": [
100
100
  "dist"
101
101
  ],
102
- "commit": "247e09a7aaf1b97313244302dd4a59da52dd1fc4"
102
+ "commit": "775a7d7af757ea81c4838a7bff39a162b732e98c"
103
103
  }