@undp/carbon-library 1.0.258-CARBON-380.1 → 1.0.258-carbon-lib-test.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (50) hide show
  1. package/dist/cjs/index.js +395 -78
  2. package/dist/cjs/index.js.map +1 -1
  3. package/dist/cjs/types/Components/Common/CoBenifits/coBenifits.d.ts +0 -1
  4. package/dist/cjs/types/Components/Common/Models/programmeRetireForm.d.ts +0 -1
  5. package/dist/cjs/types/Components/Common/Models/programmeTransferForm.d.ts +0 -1
  6. package/dist/cjs/types/Components/Common/NdcActionBody/ndcActionBody.d.ts +0 -2
  7. package/dist/cjs/types/Components/Common/ProgrammeDocuments/programmeDocuments.d.ts +0 -2
  8. package/dist/cjs/types/Components/RegistryDashboard/programmeRejectAndTransferComponent.d.ts +0 -1
  9. package/dist/cjs/types/Context/ConnectionContext/connectionContext.d.ts +8 -0
  10. package/dist/cjs/types/Context/SettingsContext/settingsContext.d.ts +10 -0
  11. package/dist/cjs/types/Context/UserInformationContext/userInformationContext.d.ts +6 -0
  12. package/dist/cjs/types/Context/index.d.ts +3 -0
  13. package/dist/cjs/types/Definitions/Definitions/connectionContext.definitions.d.ts +1 -0
  14. package/dist/cjs/types/Storybook/AddNewCompanyComponent.stories.d.ts +12 -0
  15. package/dist/cjs/types/Storybook/AddNewUserComponent.stories.d.ts +12 -0
  16. package/dist/cjs/types/Storybook/Decorators/AddNewCompanyI18nDecorator.d.ts +2 -0
  17. package/dist/cjs/types/Storybook/Decorators/AddNewUserI18nDecorator.d.ts +2 -0
  18. package/dist/cjs/types/Storybook/Decorators/ConnectionContextDecorator.d.ts +2 -0
  19. package/dist/cjs/types/index.d.ts +1 -0
  20. package/dist/esm/index.js +389 -80
  21. package/dist/esm/index.js.map +1 -1
  22. package/dist/esm/types/Components/Common/CoBenifits/coBenifits.d.ts +0 -1
  23. package/dist/esm/types/Components/Common/Models/programmeRetireForm.d.ts +0 -1
  24. package/dist/esm/types/Components/Common/Models/programmeTransferForm.d.ts +0 -1
  25. package/dist/esm/types/Components/Common/NdcActionBody/ndcActionBody.d.ts +0 -2
  26. package/dist/esm/types/Components/Common/ProgrammeDocuments/programmeDocuments.d.ts +0 -2
  27. package/dist/esm/types/Components/RegistryDashboard/programmeRejectAndTransferComponent.d.ts +0 -1
  28. package/dist/esm/types/Context/ConnectionContext/connectionContext.d.ts +8 -0
  29. package/dist/esm/types/Context/SettingsContext/settingsContext.d.ts +10 -0
  30. package/dist/esm/types/Context/UserInformationContext/userInformationContext.d.ts +6 -0
  31. package/dist/esm/types/Context/index.d.ts +3 -0
  32. package/dist/esm/types/Definitions/Definitions/connectionContext.definitions.d.ts +1 -0
  33. package/dist/esm/types/Storybook/AddNewCompanyComponent.stories.d.ts +12 -0
  34. package/dist/esm/types/Storybook/AddNewUserComponent.stories.d.ts +12 -0
  35. package/dist/esm/types/Storybook/Decorators/AddNewCompanyI18nDecorator.d.ts +2 -0
  36. package/dist/esm/types/Storybook/Decorators/AddNewUserI18nDecorator.d.ts +2 -0
  37. package/dist/esm/types/Storybook/Decorators/ConnectionContextDecorator.d.ts +2 -0
  38. package/dist/esm/types/index.d.ts +1 -0
  39. package/dist/index.d.ts +21 -8
  40. package/dist/locales/i18n/addCompany/en.json +3 -3
  41. package/dist/locales/i18n/addProgramme/en.json +11 -11
  42. package/dist/locales/i18n/companyProfile/en.json +1 -1
  43. package/dist/locales/i18n/dashboard/en.json +51 -51
  44. package/dist/locales/i18n/mrvdashboard/en.json +19 -19
  45. package/dist/locales/i18n/nav/en.json +2 -2
  46. package/dist/locales/i18n/ndcAction/en.json +17 -17
  47. package/dist/locales/i18n/programme/en.json +19 -19
  48. package/dist/locales/i18n/userProfile/en.json +1 -1
  49. package/dist/locales/i18n/view/en.json +42 -42
  50. package/package.json +29 -2
@@ -4,26 +4,26 @@
4
4
  "issued": "Credits Issued",
5
5
  "balance": "Credits Balance",
6
6
  "transferred": "Credits Transferred",
7
- "viewProgrammes": "View Projects",
8
- "desc": "View the projects available in the Transparency System based on your permissions",
9
- "noProgrammes": "No Projects",
7
+ "viewProgrammes": "View Programmes",
8
+ "desc": "View the programmes available in the Transparency System based on your permissions",
9
+ "noProgrammes": "No Programmes",
10
10
  "serialNoh": "Serial Number",
11
11
  "certifiers": "Certifiers",
12
- "title": "Project Name",
13
- "gettingProgrammeError": "Error in getting project",
12
+ "title": "Programme Name",
13
+ "gettingProgrammeError": "Error in getting programme",
14
14
  "all": "All",
15
- "searchByName": "Search by project name",
15
+ "searchByName": "Search by programme name",
16
16
  "requestId": "Request ID",
17
17
  "date": "Date",
18
- "programmeName": "Project Name",
18
+ "programmeName": "Programme Name",
19
19
  "type": "Type",
20
20
  "level": "Level",
21
21
  "stream": "Stream",
22
22
  "investor": "Investor",
23
23
  "owner": "Owner",
24
24
  "amount": "Amount (USD)",
25
- "investmentTitle": "Financing",
26
- "investmentDesc": "Financing made on projects in the Transparency System",
25
+ "investmentTitle": "Investments",
26
+ "investmentDesc": "Investments made on programmes in the Transparency System",
27
27
  "addProgramme": "ADD PROGRAMME",
28
28
  "emissionsReductionExpected": "Emissions Reductions Expected (tCO2e)",
29
29
  "emissionsReductionAchieved": "Emissions Reductions Achieved (tCO2e)",
@@ -39,14 +39,14 @@
39
39
  "rejectDocHeader": "Are you sure you want to reject this document?",
40
40
  "rejectDocBody": "You can’t undo this action",
41
41
  "remarks": "Remarks",
42
- "rejectInvestmentHeader": "Are you sure you want to reject this financing?",
42
+ "rejectInvestmentHeader": "Are you sure you want to reject this investment?",
43
43
  "monitorDoc": "Monitoring Report",
44
44
  "veriDoc": "Verifcation Report",
45
- "investmentAccepted": "The financing request has been approved successfully",
46
- "investmentRejected": "The Financing has been rejected",
47
- "addInvestment": "Add Financing",
48
- "addInvestmentSub": "Add financing to a project in the Transparency System",
49
- "programmeFinancingInvested": "Project Financing Invested",
45
+ "investmentAccepted": "The investment request has been approved successfully",
46
+ "investmentRejected": "The Investment has been rejected",
47
+ "addInvestment": "Add Investment",
48
+ "addInvestmentSub": "Add investment to a programme in the Transparency System",
49
+ "programmeFinancingInvested": "Programme Financing Invested",
50
50
  "ownership": "Ownership",
51
51
  "investorName": "Investor Name",
52
52
  "amountInvested": "Amount Invested (USD)",
@@ -56,15 +56,15 @@
56
56
  "comments": "Comments",
57
57
  "paymentPerMetric": "Payment Per Metric",
58
58
  "esgType": "ESG Classification",
59
- "investmentCreationSuccess": "The financing has been added successfully",
59
+ "investmentCreationSuccess": "The investment has been added successfully",
60
60
  "total": "Total Ownership",
61
61
  "ClimateFinance": "Climate Finance",
62
62
  "CarbonMarket": "Carbon Market",
63
63
  "rejectTip": "Request Adjustments",
64
64
  "invalidFileFormat": "Unsupported file format",
65
- "investmentReqApproved": "The financing request has been accepted.",
65
+ "investmentReqApproved": "The investment request has been accepted.",
66
66
  "designDocNotApproved": "The design document needs to be approved to upload this document",
67
- "programmeNotAuth": "The project has to be authorised to upload this document",
67
+ "programmeNotAuth": "The programme has to be authorised to upload this document",
68
68
  "monitoringRepNotApproved": "The monitoring report has to be approved to upload this document",
69
69
  "notAuthToUploadDoc": "You are not authorised to upload this document",
70
70
  "orgNotAuth": "Your organisation is not authorised to upload or view this document",
@@ -73,7 +73,7 @@
73
73
  "description": "Description",
74
74
  "emissionReductionAchievedandCreditIssued": "Emission Reduction Achieved/ Credit Issued",
75
75
  "environmentalImpactAssessment": "Environmental Impact Assessment",
76
- "docUploadProgrammeRejected": "This document cannot be uploaded for rejected projects",
76
+ "docUploadProgrammeRejected": "This document cannot be uploaded for rejected programmes",
77
77
  "typeCreation": "Type",
78
78
  "New": "NEW",
79
79
  "Existing": "EXISTING",
@@ -24,7 +24,7 @@
24
24
  "cancel": "Cancel",
25
25
  "remarks": "Remarks",
26
26
  "creditBalance": "Credit Balance",
27
- "programmeCount": "Number of Projects",
27
+ "programmeCount": "Number of Programmes",
28
28
  "logOut": "LOG OUT",
29
29
  "changePassword": "CHANGE PASSWORD",
30
30
  "passwordResetSuccess": "The password has been reset successfully",
@@ -1,20 +1,20 @@
1
1
  {
2
- "title": "Project Name",
3
- "details": "Project Details",
4
- "desc": "View the details of the selected project",
2
+ "title": "Programme Name",
3
+ "details": "Programme Details",
4
+ "desc": "View the details of the selected programme",
5
5
  "ownership": "Ownership",
6
6
  "general": "General",
7
- "name": "Project Name",
8
- "programmeOwner": "Project Owner",
7
+ "name": "Programme Name",
8
+ "programmeOwner": "Programme Owner",
9
9
  "serialNo": "Credit Issuance Serial Number",
10
10
  "currentStatus": "Current Status",
11
11
  "applicationType": "Applicant Type",
12
12
  "sector": "Sector",
13
13
  "sectoralScope": "Sectoral Scope",
14
- "startDate": "Project Start Date",
15
- "endDate": "Project End Date",
14
+ "startDate": "Programme Start Date",
15
+ "endDate": "Programme End Date",
16
16
  "buyerCountry": "Buyer Country Eligibility",
17
- "estimatedProgrammeCostUSD": "Estimated Project Cost (USD)",
17
+ "estimatedProgrammeCostUSD": "Estimated Programme Cost (USD)",
18
18
  "financingType": "Financing Type",
19
19
  "grantEquivalent": "Grant Equivalent Amount",
20
20
  "carbonPrice": "Carbon Price (USD per ton)",
@@ -35,31 +35,31 @@
35
35
  "issue": "Issue",
36
36
  "remarks": "Remarks",
37
37
  "popupText": "You can’t undo this action",
38
- "rejectTitle": "Are you sure you want to reject the project",
39
- "authTitle": "Are you sure you want to authorise the project",
40
- "issueTitle": "Are you sure you want to issue credits for the project",
41
- "certifyTitle": "Are you sure you want to certify the project",
38
+ "rejectTitle": "Are you sure you want to reject the programme",
39
+ "authTitle": "Are you sure you want to authorise the programme",
40
+ "issueTitle": "Are you sure you want to issue credits for the programme",
41
+ "certifyTitle": "Are you sure you want to certify the programme",
42
42
  "retireTitle": "Are you sure you want to retire the credits?",
43
- "revokeTitle": "Are you sure you want to revoke the certificate of the project",
43
+ "revokeTitle": "Are you sure you want to revoke the certificate of the programme",
44
44
  "transferTitle": "Request Credits",
45
- "programmeMaterial": "Project & Project Documents",
45
+ "programmeMaterial": "Programme & Project Documents",
46
46
  "projectMaterial": "Project Reports",
47
47
  "transfer": "Request",
48
48
  "by": "By",
49
- "programme": "Project",
49
+ "programme": "Programme",
50
50
  "issueCreditText": "Credits to be issued",
51
- "issueCreditNdcIdText": "Activity ID",
51
+ "issueCreditNdcIdText": "Action ID",
52
52
  "authCreditText": "Credits to authorise",
53
53
  "totalTransferCredit": "Total Amount",
54
54
  "totalRetireCredit": "Retired Credit Amount",
55
- "successAuth": "The project has been authorised successfully",
56
- "successReject": "The project has been rejected successfully",
57
- "successCertify": "The project has been certified successfully",
55
+ "successAuth": "The programme has been authorised successfully",
56
+ "successReject": "The programme has been rejected successfully",
57
+ "successCertify": "The programme has been certified successfully",
58
58
  "successRetire": "The credits have been retired successfully",
59
- "successRevoke": "The project has been revoked successfully",
59
+ "successRevoke": "The programme has been revoked successfully",
60
60
  "successRevokeCertifcate": "The certificate has been revoked successfully",
61
61
  "successRetireInit": "The international transfer retire request has been sent successfully",
62
- "successIssue": "The project has been issued successfully",
62
+ "successIssue": "The programme has been issued successfully",
63
63
  "successRequest": "The transfer request has been sent successfully ",
64
64
  "sendCreditTitle": "Send Credits",
65
65
  "to": "To",
@@ -81,30 +81,30 @@
81
81
  "tlRejectTitle": "Transfer Request Rejected",
82
82
  "tlTxRejectDesc": "The request to transfer {} {} credits from {} to {} was rejected by {}",
83
83
  "tlInitTitle": "Transfer Initiated",
84
- "tlInitDesc": "{} {} credits of this project were requested to be transferred from {} to {} by {}",
84
+ "tlInitDesc": "{} {} credits of this programme were requested to be transferred from {} to {} by {}",
85
85
  "via": "via",
86
- "tlDescInit": "credits of this project were requested to be transferred from",
87
- "tlCreate": "Project Created",
88
- "tlCreateDesc": "The project was created.",
86
+ "tlDescInit": "credits of this programme were requested to be transferred from",
87
+ "tlCreate": "Programme Created",
88
+ "tlCreateDesc": "The programme was created.",
89
89
  "tlAuth": "Authorised",
90
- "tlAuthDesc": "The project was authorised for {} {} credits until {} with the Serial Number {} by {}",
90
+ "tlAuthDesc": "The programme was authorised for {} {} credits until {} with the Serial Number {} by {}",
91
91
  "tlIssue": "Credits Issued",
92
- "tlIssueDesc": "The project was issued {} by {}",
93
- "t1IssueNdcDesc": "{} {} credits for the Activity {}",
92
+ "tlIssueDesc": "The programme was issued {} by {}",
93
+ "t1IssueNdcDesc": "{} {} credits for the NDC Action {}",
94
94
  "tlReject": "Rejected",
95
- "tlRejectDesc": "The project was rejected by {}",
95
+ "tlRejectDesc": "The programme was rejected by {}",
96
96
  "tlTransfer": "Transferred",
97
- "tlTransferDesc": "{} {} credits of this project were transferred from {} to {} by {}",
97
+ "tlTransferDesc": "{} {} credits of this programme were transferred from {} to {} by {}",
98
98
  "tlRevoke": "Certificate Revoked",
99
- "tlRevokeDesc": "The certification of this project was revoked {} by {}",
99
+ "tlRevokeDesc": "The certification of this programme was revoked {} by {}",
100
100
  "tlCertify": "Certified",
101
- "tlCertifyDesc": "The project was certified by {}",
101
+ "tlCertifyDesc": "The programme was certified by {}",
102
102
  "tlRetire": "Credits Retired",
103
- "tlRetireDesc": "{} {} credits of this project were retired from {} {}as {} by {}",
103
+ "tlRetireDesc": "{} {} credits of this programme were retired from {} {}as {} by {}",
104
104
  "tlFrozen": "Credits Frozen",
105
105
  "tlFrozenDesc": "{} {} credits were frozen due to the deactivation of {} by {}",
106
106
  "tlRetInit": "Retirement Initiated",
107
- "tlRetInitDesc": "Retirement of {} {} credits of this project from {} {}as {} was initiated by {}",
107
+ "tlRetInitDesc": "Retirement of {} {} credits of this programme from {} {}as {} was initiated by {}",
108
108
  "tlRetRejectTitle": "Retirement Not Recognised",
109
109
  "tlTxRetRejectDesc": "The request to transfer {} {} credits from {} to {} was not recognised by {}",
110
110
  "tlRetCancelTitle": "Retire request cancelled",
@@ -112,10 +112,10 @@
112
112
  "tlTxCancelDesc": "The request to transfer {} {} credits from {} to {} was cancelled by {}",
113
113
  "tlTxCancelSystemDesc": "The request to transfer {} {} credits from {} to {} was cancelled by the system due to the deactivation of {} by {}",
114
114
  "tlUnFrozen": "Credits Unfrozen",
115
- "tlUnFrozenDesc": "{} frozen {} credits of the project have been unfrozen due to the reactivation of {} by {}",
115
+ "tlUnFrozenDesc": "{} frozen {} credits of the programme have been unfrozen due to the reactivation of {} by {}",
116
116
  "tlTxLowCreditCancelSystemDesc": "The request to transfer {} {} credits from {} to {} was cancelled by the system due to insufficient credit balance",
117
117
  "tlOwnership": "New Ownership",
118
- "tlOwnershipDesc": "{} invested in this project obtaining {} ownership of the project.",
118
+ "tlOwnershipDesc": "{} invested in this programme obtaining {} ownership of the programme.",
119
119
  "tlPending": "Pending",
120
120
  "tlAuthorisation": "Authorisation",
121
121
  "typeOfMitigation": "Type Of Mitigation",
@@ -126,19 +126,19 @@
126
126
  "userEstimatedCredits": "User Estimated Credits",
127
127
  "systemEstimatedCredits": "System Estimated Credits",
128
128
  "actionId": "NDC ID",
129
- "programmeCost": "Project Cost (USD)",
129
+ "programmeCost": "Programme Cost (USD)",
130
130
  "ownershipPercentage": "Ownership Percentage",
131
- "programmeDocs": "Project Documents",
132
- "investments": "Financing",
133
- "investment": "Financing",
131
+ "programmeDocs": "Programme Documents",
132
+ "investments": "Investments",
133
+ "investment": "Investment",
134
134
  "creditEst": "User Estimated Credits",
135
135
  "carbonPriceUSDPerTon": "Minimum Carbon Price: USD per ton (assuming no other revenue)",
136
- "ndcActions": "Activities",
136
+ "ndcActions": "NDC Actions",
137
137
  "emissionsReductionExpected": "Emissions Reductions Expected",
138
138
  "emissionsReductionAchieved": "Emissions Reductions Achieved",
139
139
  "emissionsReductions": "Emissions Reductions {}",
140
140
  "addInvestment": "ADD INVESTMENT",
141
- "addAction": "ADD ACTIVITY",
141
+ "addAction": "ADD ACTION",
142
142
  "ministryLevel": "Ministry Level",
143
143
  "environmentalAssessmentRegistrationNo": "Environmental Assessment Registration Number",
144
144
  "methodology": "Methodology",
package/package.json CHANGED
@@ -1,12 +1,14 @@
1
1
  {
2
2
  "name": "@undp/carbon-library",
3
- "version": "1.0.258-CARBON-380.1",
3
+ "version": "1.0.258-carbon-lib-test.1",
4
4
  "description": "Shared Library of tools for Carbon Credits applications ecosystem for ExO and and HQ/GEF",
5
5
  "type": "module",
6
6
  "scripts": {
7
7
  "test": "echo \"Error: no test specified\" && exit 1",
8
8
  "build": "rollup -c --bundleConfigAsCjs",
9
- "prepare": "npm run build"
9
+ "prepare": "npm run build",
10
+ "storybook": "storybook dev -p 6006",
11
+ "build-storybook": "storybook build"
10
12
  },
11
13
  "keywords": [],
12
14
  "author": "",
@@ -16,10 +18,14 @@
16
18
  "@rollup/plugin-json": "^6.0.1",
17
19
  "@rollup/plugin-node-resolve": "^15.0.2",
18
20
  "@rollup/plugin-typescript": "^11.1.1",
21
+ "@storybook/addon-styling-webpack": "^0.0.5",
19
22
  "@undp/carbon-credit-calculator": "^1.1.1",
23
+ "jwt-decode": "^3.1.2",
20
24
  "node-sass": "^7.0.3",
21
25
  "postcss": "^8.4.23",
22
26
  "react-circle-flags": "^0.0.19",
27
+ "react-i18next": "^12.0.0",
28
+ "react-router-dom": "^6.4.3",
23
29
  "rollup": "^3.22.0",
24
30
  "rollup-plugin-copy": "^3.5.0",
25
31
  "rollup-plugin-dts": "^5.3.0",
@@ -30,6 +36,19 @@
30
36
  },
31
37
  "devDependencies": {
32
38
  "@ant-design/icons": "^5.2.5",
39
+ "@babel/preset-env": "^7.23.3",
40
+ "@babel/preset-react": "^7.23.3",
41
+ "@babel/preset-typescript": "^7.23.3",
42
+ "@storybook/addon-essentials": "7.5.3",
43
+ "@storybook/addon-interactions": "7.5.3",
44
+ "@storybook/addon-links": "7.5.3",
45
+ "@storybook/addon-onboarding": "1.0.8",
46
+ "@storybook/blocks": "7.5.3",
47
+ "@storybook/preset-ant-design": "^0.0.2",
48
+ "@storybook/preset-create-react-app": "^7.5.3",
49
+ "@storybook/react": "7.5.3",
50
+ "@storybook/react-webpack5": "7.5.3",
51
+ "@storybook/testing-library": "0.2.2",
33
52
  "@types/luxon": "^3.1.0",
34
53
  "@types/mapbox-gl": "^2.7.10",
35
54
  "@types/react": "^18.0.25",
@@ -39,13 +58,21 @@
39
58
  "axios": "^1.1.3",
40
59
  "buffer": "^6.0.3",
41
60
  "class-transformer": "^0.5.1",
61
+ "css-loader": "^6.8.1",
62
+ "i18next": "^22.0.6",
63
+ "i18next-browser-languagedetector": "^7.0.1",
64
+ "i18next-http-backend": "^2.0.1",
42
65
  "luxon": "^3.2.1",
43
66
  "mapbox-gl": "^2.11.1",
44
67
  "react": "^18.2.0",
45
68
  "react-apexcharts": "^1.4.0",
46
69
  "react-bootstrap-icons": "^1.10.2",
70
+ "react-dom": "18.2.0",
47
71
  "react-mapbox-gl": "^5.1.1",
48
72
  "react-phone-number-input": "^3.2.12",
73
+ "sass-loader": "^13.3.2",
74
+ "storybook": "7.5.3",
75
+ "style-loader": "^3.3.3",
49
76
  "validator": "^13.9.0"
50
77
  },
51
78
  "peerDependencies": {