@undp/carbon-library 1.0.289-CARBON-347.1 → 1.0.289-CARBON-366.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (57) hide show
  1. package/dist/cjs/index.js +556 -1477
  2. package/dist/cjs/index.js.map +1 -1
  3. package/dist/cjs/types/Components/Common/CoBenifits/coBenifits.d.ts +1 -0
  4. package/dist/cjs/types/Components/Common/Models/programmeRetireForm.d.ts +1 -0
  5. package/dist/cjs/types/Components/Common/Models/programmeTransferForm.d.ts +1 -0
  6. package/dist/cjs/types/Components/Common/NdcActionBody/ndcActionBody.d.ts +2 -0
  7. package/dist/cjs/types/Components/Common/ProgrammeDocuments/programmeDocuments.d.ts +2 -0
  8. package/dist/cjs/types/Components/Common/StasticCard/stasticCard.d.ts +2 -0
  9. package/dist/cjs/types/Definitions/Definitions/connectionContext.definitions.d.ts +0 -3
  10. package/dist/cjs/types/Definitions/Enums/investment.enum.d.ts +0 -4
  11. package/dist/cjs/types/index.d.ts +0 -1
  12. package/dist/esm/index.js +558 -1471
  13. package/dist/esm/index.js.map +1 -1
  14. package/dist/esm/types/Components/Common/CoBenifits/coBenifits.d.ts +1 -0
  15. package/dist/esm/types/Components/Common/Models/programmeRetireForm.d.ts +1 -0
  16. package/dist/esm/types/Components/Common/Models/programmeTransferForm.d.ts +1 -0
  17. package/dist/esm/types/Components/Common/NdcActionBody/ndcActionBody.d.ts +2 -0
  18. package/dist/esm/types/Components/Common/ProgrammeDocuments/programmeDocuments.d.ts +2 -0
  19. package/dist/esm/types/Components/Common/StasticCard/stasticCard.d.ts +2 -0
  20. package/dist/esm/types/Definitions/Definitions/connectionContext.definitions.d.ts +0 -3
  21. package/dist/esm/types/Definitions/Enums/investment.enum.d.ts +0 -4
  22. package/dist/esm/types/index.d.ts +0 -1
  23. package/dist/index.d.ts +10 -27
  24. package/dist/locales/i18n/programme/en.json +3 -5
  25. package/package.json +2 -29
  26. package/dist/cjs/types/Context/ConnectionContext/connectionContext.d.ts +0 -8
  27. package/dist/cjs/types/Context/SettingsContext/settingsContext.d.ts +0 -10
  28. package/dist/cjs/types/Context/UserInformationContext/userInformationContext.d.ts +0 -6
  29. package/dist/cjs/types/Context/index.d.ts +0 -3
  30. package/dist/cjs/types/Storybook/AddNewCompanyComponent.stories.d.ts +0 -12
  31. package/dist/cjs/types/Storybook/AddNewUserComponent.stories.d.ts +0 -12
  32. package/dist/cjs/types/Storybook/Decorators/AddNewCompanyI18nDecorator.d.ts +0 -2
  33. package/dist/cjs/types/Storybook/Decorators/AddNewUserI18nDecorator.d.ts +0 -2
  34. package/dist/cjs/types/Storybook/Decorators/ConnectionContextDecorator.d.ts +0 -2
  35. package/dist/cjs/types/Storybook/Decorators/DashboardI18nDecorator.d.ts +0 -2
  36. package/dist/cjs/types/Storybook/Decorators/InvestmentCreationI18nDecorator.d.ts +0 -2
  37. package/dist/cjs/types/Storybook/Decorators/ProgrammeCreateI18nDecorator.d.ts +0 -2
  38. package/dist/cjs/types/Storybook/InvestmentCreationComponent.stories.d.ts +0 -12
  39. package/dist/cjs/types/Storybook/MRVDashboard.stories.d.ts +0 -12
  40. package/dist/cjs/types/Storybook/ProgrammeCreationComponent.stories.d.ts +0 -12
  41. package/dist/cjs/types/Storybook/RegistryDashboard.stories.d.ts +0 -12
  42. package/dist/esm/types/Context/ConnectionContext/connectionContext.d.ts +0 -8
  43. package/dist/esm/types/Context/SettingsContext/settingsContext.d.ts +0 -10
  44. package/dist/esm/types/Context/UserInformationContext/userInformationContext.d.ts +0 -6
  45. package/dist/esm/types/Context/index.d.ts +0 -3
  46. package/dist/esm/types/Storybook/AddNewCompanyComponent.stories.d.ts +0 -12
  47. package/dist/esm/types/Storybook/AddNewUserComponent.stories.d.ts +0 -12
  48. package/dist/esm/types/Storybook/Decorators/AddNewCompanyI18nDecorator.d.ts +0 -2
  49. package/dist/esm/types/Storybook/Decorators/AddNewUserI18nDecorator.d.ts +0 -2
  50. package/dist/esm/types/Storybook/Decorators/ConnectionContextDecorator.d.ts +0 -2
  51. package/dist/esm/types/Storybook/Decorators/DashboardI18nDecorator.d.ts +0 -2
  52. package/dist/esm/types/Storybook/Decorators/InvestmentCreationI18nDecorator.d.ts +0 -2
  53. package/dist/esm/types/Storybook/Decorators/ProgrammeCreateI18nDecorator.d.ts +0 -2
  54. package/dist/esm/types/Storybook/InvestmentCreationComponent.stories.d.ts +0 -12
  55. package/dist/esm/types/Storybook/MRVDashboard.stories.d.ts +0 -12
  56. package/dist/esm/types/Storybook/ProgrammeCreationComponent.stories.d.ts +0 -12
  57. package/dist/esm/types/Storybook/RegistryDashboard.stories.d.ts +0 -12
@@ -10,5 +10,6 @@ export interface CoBenefitProps {
10
10
  loading?: any;
11
11
  sdgGoalImages?: any;
12
12
  translator?: any;
13
+ useConnection?: any;
13
14
  }
14
15
  export declare const CoBenifitsComponent: (props: CoBenefitProps) => React.JSX.Element;
@@ -9,5 +9,6 @@ export interface ProgrammeRetireFormProps {
9
9
  hideType: boolean;
10
10
  myCompanyId?: number;
11
11
  translator: any;
12
+ useConnection: any;
12
13
  }
13
14
  export declare const ProgrammeRetireForm: FC<ProgrammeRetireFormProps>;
@@ -12,6 +12,7 @@ export interface ProgrammeTransferFormProps {
12
12
  userCompanyId: number | undefined;
13
13
  companyRole: string;
14
14
  translator: any;
15
+ useConnection: any;
15
16
  ministryLevelPermission?: boolean;
16
17
  }
17
18
  export declare const ProgrammeTransferForm: FC<ProgrammeTransferFormProps>;
@@ -8,7 +8,9 @@ export interface NdcActionBodyProps {
8
8
  programmeOwnerId?: any;
9
9
  getProgrammeDocs?: any;
10
10
  ministryLevelPermission?: boolean;
11
+ useConnection: any;
11
12
  translator: any;
13
+ useUserContext: any;
12
14
  onFinish?: any;
13
15
  programme?: any;
14
16
  }
@@ -9,6 +9,8 @@ export interface ProgrammeDocumentsProps {
9
9
  getDocumentDetails: any;
10
10
  getProgrammeById: any;
11
11
  ministryLevelPermission?: boolean;
12
+ useConnection: any;
13
+ useUserContext: any;
12
14
  translator: any;
13
15
  methodologyDocumentUpdated: any;
14
16
  programmeStatus?: any;
@@ -7,5 +7,7 @@ export interface StasticCardItemProps {
7
7
  icon: any;
8
8
  loading: boolean;
9
9
  companyRole: any;
10
+ tooltip: any;
11
+ t: any;
10
12
  }
11
13
  export declare const StasticCard: FC<StasticCardItemProps>;
@@ -3,8 +3,6 @@ import { ReactNode } from 'react';
3
3
  export type Methods = 'get' | 'post' | 'delete' | 'put' | 'patch';
4
4
  export type ConnectionContextProviderProps = {
5
5
  serverURL: string;
6
- t: any;
7
- statServerUrl?: string;
8
6
  children: ReactNode;
9
7
  };
10
8
  export interface Response<T> {
@@ -25,5 +23,4 @@ export type ConnectionProps = {
25
23
  updateToken: (token?: string) => void;
26
24
  token?: string;
27
25
  removeToken: (tkn?: string) => void;
28
- statServerUrl?: string;
29
26
  };
@@ -18,10 +18,6 @@ export declare enum InvestmentCreationType {
18
18
  EXISTING = "Existing",
19
19
  NEW = "New"
20
20
  }
21
- export declare enum InvestmentOwnershipType {
22
- PROJECT = "Project",
23
- NATIONAL = "National"
24
- }
25
21
  export declare enum InvestmentStream {
26
22
  CLIMATE_FINANCE = "ClimateFinance",
27
23
  CARBON_MARKET = "CarbonMarket"
@@ -1,4 +1,3 @@
1
1
  export * from './Components';
2
2
  export * from './Definitions';
3
3
  export * from './Styles';
4
- export * from './Context';
package/dist/index.d.ts CHANGED
@@ -93,6 +93,8 @@ interface StasticCardItemProps {
93
93
  icon: any;
94
94
  loading: boolean;
95
95
  companyRole: any;
96
+ tooltip: any;
97
+ t: any;
96
98
  }
97
99
  declare const StasticCard: FC<StasticCardItemProps>;
98
100
 
@@ -129,6 +131,7 @@ interface CoBenefitProps {
129
131
  loading?: any;
130
132
  sdgGoalImages?: any;
131
133
  translator?: any;
134
+ useConnection?: any;
132
135
  }
133
136
  declare const CoBenifitsComponent: (props: CoBenefitProps) => React.JSX.Element;
134
137
 
@@ -359,6 +362,7 @@ interface ProgrammeRetireFormProps {
359
362
  hideType: boolean;
360
363
  myCompanyId?: number;
361
364
  translator: any;
365
+ useConnection: any;
362
366
  }
363
367
  declare const ProgrammeRetireForm: FC<ProgrammeRetireFormProps>;
364
368
 
@@ -385,6 +389,7 @@ interface ProgrammeTransferFormProps {
385
389
  userCompanyId: number | undefined;
386
390
  companyRole: string;
387
391
  translator: any;
392
+ useConnection: any;
388
393
  ministryLevelPermission?: boolean;
389
394
  }
390
395
  declare const ProgrammeTransferForm: FC<ProgrammeTransferFormProps>;
@@ -456,10 +461,6 @@ declare enum InvestmentCreationType {
456
461
  EXISTING = "Existing",
457
462
  NEW = "New"
458
463
  }
459
- declare enum InvestmentOwnershipType {
460
- PROJECT = "Project",
461
- NATIONAL = "National"
462
- }
463
464
  declare enum InvestmentStream {
464
465
  CLIMATE_FINANCE = "ClimateFinance",
465
466
  CARBON_MARKET = "CarbonMarket"
@@ -1044,8 +1045,6 @@ interface CountrySelect {
1044
1045
  type Methods = 'get' | 'post' | 'delete' | 'put' | 'patch';
1045
1046
  type ConnectionContextProviderProps = {
1046
1047
  serverURL: string;
1047
- t: any;
1048
- statServerUrl?: string;
1049
1048
  children: ReactNode;
1050
1049
  };
1051
1050
  interface Response<T> {
@@ -1066,7 +1065,6 @@ type ConnectionProps = {
1066
1065
  updateToken: (token?: string) => void;
1067
1066
  token?: string;
1068
1067
  removeToken: (tkn?: string) => void;
1069
- statServerUrl?: string;
1070
1068
  };
1071
1069
 
1072
1070
  type HeaderProps = {
@@ -1232,7 +1230,9 @@ interface NdcActionBodyProps {
1232
1230
  programmeOwnerId?: any;
1233
1231
  getProgrammeDocs?: any;
1234
1232
  ministryLevelPermission?: boolean;
1233
+ useConnection: any;
1235
1234
  translator: any;
1235
+ useUserContext: any;
1236
1236
  onFinish?: any;
1237
1237
  programme?: any;
1238
1238
  }
@@ -1253,6 +1253,8 @@ interface ProgrammeDocumentsProps {
1253
1253
  getDocumentDetails: any;
1254
1254
  getProgrammeById: any;
1255
1255
  ministryLevelPermission?: boolean;
1256
+ useConnection: any;
1257
+ useUserContext: any;
1256
1258
  translator: any;
1257
1259
  methodologyDocumentUpdated: any;
1258
1260
  programmeStatus?: any;
@@ -1299,23 +1301,4 @@ declare const TooltipColor = "#6ACDFF";
1299
1301
  declare const InvestmentBGColor = "rgba(151, 110, 215, 0.3)";
1300
1302
  declare const InvestmentColor = "#9155FD";
1301
1303
 
1302
- declare const ConnectionContextProvider: FC<ConnectionContextProviderProps>;
1303
-
1304
- declare const useConnection: () => ConnectionProps;
1305
-
1306
- declare const UserContext: React.Context<UserContextProps>;
1307
- declare const UserInformationContextProvider: ({ children }: React.PropsWithChildren) => React.JSX.Element;
1308
-
1309
- declare const useUserContext: () => UserContextProps;
1310
-
1311
- declare const SettingsContext: React.Context<{
1312
- isTransferFrozen: boolean;
1313
- setTransferFrozen: (value: boolean) => void;
1314
- }>;
1315
- declare const SettingsContextProvider: ({ children }: React.PropsWithChildren) => React.JSX.Element;
1316
- declare const useSettingsContext: () => {
1317
- isTransferFrozen: boolean;
1318
- setTransferFrozen: (value: boolean) => void;
1319
- };
1320
-
1321
- export { Action, AdaptationProperties, AddNdcActionComponent, AddNewCompanyComponent, AddNewUserComponent, AdminBGColor, AdminColor, AgricultureProperties, BaseEntity, CarbonSystemType, CertBGColor, CertColor, CoBenefitProps, CoBenefitsProperties, CoBenifitsComponent, Company, CompanyManagementColumns, CompanyManagementComponent, CompanyProfileComponent, CompanyRole, CompanyState, ConfigurationSettingsType, ConnectionContextProvider, ConnectionContextProviderProps, ConnectionProps, CountrySelect, CreditCalculationProperties, CreditTransferComponent, CreditTransferStage, DevBGColor, DevColor, DocType, DocumentStatus, ESGType, Emission, EmissionGas, EmissionSector, EmissionSubSectors, EnablementProperties, EnergyGenerationUnits, FormElementType, GHGDashboardComponent, GHGEmissionsComponent, GHGProjectionsComponent, GhgStatCardTypes, GovBGColor, GovColor, HeaderProps, ImgWithFallback, InfoView, InfoViewProps, Instrument, InvestmentBGColor, InvestmentBody, InvestmentBodyProps, InvestmentColor, InvestmentCreationComponent, InvestmentCreationType, InvestmentLevel, InvestmentManagementComponent, InvestmentOwnershipType, InvestmentStatus, InvestmentStream, InvestmentType, LandAreaUnits, LayoutSiderProps, LegendItem, LegendItemItemProps, Loading, LoginProps, ManagerBGColor, ManagerColor, MapComponent, MapComponentProps, MapPopupData, MapSourceData, MapTypes, MapboxComponent, MarkerData, Methods, MinBGColor, MinColor, MitigationSubTypes, MitigationTypes, MrvDashboardComponent, MrvStatsCardsTypes, NdcAction, NdcActionBody, NdcActionBodyProps, NdcActionManagementComponent, NdcActionStatus, NdcActionTypes, NdcActionViewComponent, NdcDetailsComponent, NdcFinancing, OrganisationStatus, OrganisationStatusProps, ProfileIcon, ProfileIconProps, Programme, ProgrammeCertify, ProgrammeCreationComponent, ProgrammeDeveloperCreation, ProgrammeDocuments, ProgrammeDocumentsProps, ProgrammeEntity, ProgrammeIssueForm, ProgrammeIssueFormProps, ProgrammeManagementColumns, ProgrammeManagementComponent, ProgrammeProperties, ProgrammePropertiesR, ProgrammePropertiesT, ProgrammePropertiesU, ProgrammeR, ProgrammeRetireForm, ProgrammeRetireFormProps, ProgrammeRevokeForm, ProgrammeRevokeFormProps, ProgrammeStageLegend, ProgrammeStageMRV, ProgrammeStageR, ProgrammeStageUnified, ProgrammeT, ProgrammeTransfer, ProgrammeTransferForm, ProgrammeTransferFormProps, ProgrammeU, Projection, ProjectionTypes, RadioButtonStatus, RadioButtonStatus2, RegistryDashboardComponent, RejectDocumentationConfirmationModel, RejectDocumentationProps, Response, RetireType, Role, RoleIcon, RoleIconProps, RootBGColor, RootColor, SdgGoals, Sector, SectoralScope, SettingsContext, SettingsContextProvider, SolarProperties, StasticCard, StasticCardItemProps, StatsCardsTypes, SubTypeOfMitigation, SupportCreationComponent, SupportManagementComponent, SystemNames, TimelineBody, TimelineBodyProps, Titles, TooltipColor, TransferActionModel, TransferActionModelProps, TxType, TypeOfMitigation, UnitField, User, UserContext, UserContextProps, UserCreationProps, UserInformationContextProvider, UserManagementColumns, UserManagementComponent, UserProfileComponent, UserProps, UserRoleIcon, UserRoleIconProps, ViewBGColor, ViewColor, WidgetType, addCommSep, addCommSepRound, addNdcDesc, addRoundNumber, addSpaces, consumerGroupList, creditUnit, dateFormat, dateTimeFormat, energyGenerationUnitList, getBase64, getCompanyBgColor, getCreditStageVal, getFinancialFields, getGeneralFields, getInvestmentStatusEnumVal, getNdcActionStatusEnumVal, getNdcStatusTagType, getRetirementTypeString, getStageEnumVal, getStageTagType, getStageTagTypeMRV, getStageTransferEnumVal, getStatusTagType, getTransferStageTagType, getValidNdcActions, isBase64, landAreaUnitList, methodologyOptions, mitigationSubTypeList, mitigationSubTypesListMapped, mitigationTypeList, ndcActionTypeList, sectorMitigationTypesListMapped, sumArray, titleList, useConnection, useSettingsContext, useUserContext, userForgotPasswordProps };
1304
+ export { Action, AdaptationProperties, AddNdcActionComponent, AddNewCompanyComponent, AddNewUserComponent, AdminBGColor, AdminColor, AgricultureProperties, BaseEntity, CarbonSystemType, CertBGColor, CertColor, CoBenefitProps, CoBenefitsProperties, CoBenifitsComponent, Company, CompanyManagementColumns, CompanyManagementComponent, CompanyProfileComponent, CompanyRole, CompanyState, ConfigurationSettingsType, ConnectionContextProviderProps, ConnectionProps, CountrySelect, CreditCalculationProperties, CreditTransferComponent, CreditTransferStage, DevBGColor, DevColor, DocType, DocumentStatus, ESGType, Emission, EmissionGas, EmissionSector, EmissionSubSectors, EnablementProperties, EnergyGenerationUnits, FormElementType, GHGDashboardComponent, GHGEmissionsComponent, GHGProjectionsComponent, GhgStatCardTypes, GovBGColor, GovColor, HeaderProps, ImgWithFallback, InfoView, InfoViewProps, Instrument, InvestmentBGColor, InvestmentBody, InvestmentBodyProps, InvestmentColor, InvestmentCreationComponent, InvestmentCreationType, InvestmentLevel, InvestmentManagementComponent, InvestmentStatus, InvestmentStream, InvestmentType, LandAreaUnits, LayoutSiderProps, LegendItem, LegendItemItemProps, Loading, LoginProps, ManagerBGColor, ManagerColor, MapComponent, MapComponentProps, MapPopupData, MapSourceData, MapTypes, MapboxComponent, MarkerData, Methods, MinBGColor, MinColor, MitigationSubTypes, MitigationTypes, MrvDashboardComponent, MrvStatsCardsTypes, NdcAction, NdcActionBody, NdcActionBodyProps, NdcActionManagementComponent, NdcActionStatus, NdcActionTypes, NdcActionViewComponent, NdcDetailsComponent, NdcFinancing, OrganisationStatus, OrganisationStatusProps, ProfileIcon, ProfileIconProps, Programme, ProgrammeCertify, ProgrammeCreationComponent, ProgrammeDeveloperCreation, ProgrammeDocuments, ProgrammeDocumentsProps, ProgrammeEntity, ProgrammeIssueForm, ProgrammeIssueFormProps, ProgrammeManagementColumns, ProgrammeManagementComponent, ProgrammeProperties, ProgrammePropertiesR, ProgrammePropertiesT, ProgrammePropertiesU, ProgrammeR, ProgrammeRetireForm, ProgrammeRetireFormProps, ProgrammeRevokeForm, ProgrammeRevokeFormProps, ProgrammeStageLegend, ProgrammeStageMRV, ProgrammeStageR, ProgrammeStageUnified, ProgrammeT, ProgrammeTransfer, ProgrammeTransferForm, ProgrammeTransferFormProps, ProgrammeU, Projection, ProjectionTypes, RadioButtonStatus, RadioButtonStatus2, RegistryDashboardComponent, RejectDocumentationConfirmationModel, RejectDocumentationProps, Response, RetireType, Role, RoleIcon, RoleIconProps, RootBGColor, RootColor, SdgGoals, Sector, SectoralScope, SolarProperties, StasticCard, StasticCardItemProps, StatsCardsTypes, SubTypeOfMitigation, SupportCreationComponent, SupportManagementComponent, SystemNames, TimelineBody, TimelineBodyProps, Titles, TooltipColor, TransferActionModel, TransferActionModelProps, TxType, TypeOfMitigation, UnitField, User, UserContextProps, UserCreationProps, UserManagementColumns, UserManagementComponent, UserProfileComponent, UserProps, UserRoleIcon, UserRoleIconProps, ViewBGColor, ViewColor, WidgetType, addCommSep, addCommSepRound, addNdcDesc, addRoundNumber, addSpaces, consumerGroupList, creditUnit, dateFormat, dateTimeFormat, energyGenerationUnitList, getBase64, getCompanyBgColor, getCreditStageVal, getFinancialFields, getGeneralFields, getInvestmentStatusEnumVal, getNdcActionStatusEnumVal, getNdcStatusTagType, getRetirementTypeString, getStageEnumVal, getStageTagType, getStageTagTypeMRV, getStageTransferEnumVal, getStatusTagType, getTransferStageTagType, getValidNdcActions, isBase64, landAreaUnitList, methodologyOptions, mitigationSubTypeList, mitigationSubTypesListMapped, mitigationTypeList, ndcActionTypeList, sectorMitigationTypesListMapped, sumArray, titleList, userForgotPasswordProps };
@@ -56,13 +56,13 @@
56
56
  "comments": "Comments",
57
57
  "paymentPerMetric": "Payment Per Metric",
58
58
  "esgType": "ESG Classification",
59
- "investmentCreationSuccess": "The finance has been added successfully",
59
+ "investmentCreationSuccess": "The financing 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 financing request has been accepted.",
66
66
  "designDocNotApproved": "The design document needs to be approved to upload this document",
67
67
  "programmeNotAuth": "The project has to be authorised to upload this document",
68
68
  "monitoringRepNotApproved": "The monitoring report has to be approved to upload this document",
@@ -90,8 +90,6 @@
90
90
  "startOfPayback":"Start of Payback",
91
91
  "LumpSum":"LUMP SUM",
92
92
  "Upfront":"UPFRONT",
93
- "Annual":"ANNUAL",
94
- "existingInvestmentSource":"Source",
95
- "noInvestmentData":"No financing information available"
93
+ "Annual":"ANNUAL"
96
94
 
97
95
  }
package/package.json CHANGED
@@ -1,14 +1,12 @@
1
1
  {
2
2
  "name": "@undp/carbon-library",
3
- "version": "1.0.289-CARBON-347.1",
3
+ "version": "1.0.289-CARBON-366.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",
10
- "storybook": "storybook dev -p 6006",
11
- "build-storybook": "storybook build"
9
+ "prepare": "npm run build"
12
10
  },
13
11
  "keywords": [],
14
12
  "author": "",
@@ -18,14 +16,10 @@
18
16
  "@rollup/plugin-json": "^6.0.1",
19
17
  "@rollup/plugin-node-resolve": "^15.0.2",
20
18
  "@rollup/plugin-typescript": "^11.1.1",
21
- "@storybook/addon-styling-webpack": "^0.0.5",
22
19
  "@undp/carbon-credit-calculator": "^1.1.1",
23
- "jwt-decode": "^3.1.2",
24
20
  "node-sass": "^7.0.3",
25
21
  "postcss": "^8.4.23",
26
22
  "react-circle-flags": "^0.0.19",
27
- "react-i18next": "^12.0.0",
28
- "react-router-dom": "^6.4.3",
29
23
  "rollup": "^3.22.0",
30
24
  "rollup-plugin-copy": "^3.5.0",
31
25
  "rollup-plugin-dts": "^5.3.0",
@@ -36,19 +30,6 @@
36
30
  },
37
31
  "devDependencies": {
38
32
  "@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",
52
33
  "@types/luxon": "^3.1.0",
53
34
  "@types/mapbox-gl": "^2.7.10",
54
35
  "@types/react": "^18.0.25",
@@ -58,21 +39,13 @@
58
39
  "axios": "^1.1.3",
59
40
  "buffer": "^6.0.3",
60
41
  "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",
65
42
  "luxon": "^3.2.1",
66
43
  "mapbox-gl": "^2.11.1",
67
44
  "react": "^18.2.0",
68
45
  "react-apexcharts": "^1.4.0",
69
46
  "react-bootstrap-icons": "^1.10.2",
70
- "react-dom": "18.2.0",
71
47
  "react-mapbox-gl": "^5.1.1",
72
48
  "react-phone-number-input": "^3.2.12",
73
- "sass-loader": "^13.3.2",
74
- "storybook": "7.5.3",
75
- "style-loader": "^3.3.3",
76
49
  "validator": "^13.9.0"
77
50
  },
78
51
  "peerDependencies": {
@@ -1,8 +0,0 @@
1
- import React, { FC } from 'react';
2
- import { ConnectionContextProviderProps, ConnectionProps } from '../../Definitions';
3
- declare const ConnectionContext: React.Context<{
4
- connection?: ConnectionProps | undefined;
5
- }>;
6
- export declare const ConnectionContextProvider: FC<ConnectionContextProviderProps>;
7
- export default ConnectionContext;
8
- export declare const useConnection: () => ConnectionProps;
@@ -1,10 +0,0 @@
1
- import React from 'react';
2
- export declare const SettingsContext: React.Context<{
3
- isTransferFrozen: boolean;
4
- setTransferFrozen: (value: boolean) => void;
5
- }>;
6
- export declare const SettingsContextProvider: ({ children }: React.PropsWithChildren) => React.JSX.Element;
7
- export declare const useSettingsContext: () => {
8
- isTransferFrozen: boolean;
9
- setTransferFrozen: (value: boolean) => void;
10
- };
@@ -1,6 +0,0 @@
1
- import React from 'react';
2
- import { UserContextProps } from '../../Definitions';
3
- export declare const UserContext: React.Context<UserContextProps>;
4
- export declare const UserInformationContextProvider: ({ children }: React.PropsWithChildren) => React.JSX.Element;
5
- export default UserContext;
6
- export declare const useUserContext: () => UserContextProps;
@@ -1,3 +0,0 @@
1
- export * from './ConnectionContext/connectionContext';
2
- export * from './UserInformationContext/userInformationContext';
3
- export * from './SettingsContext/settingsContext';
@@ -1,12 +0,0 @@
1
- /// <reference types="react" />
2
- import type { StoryObj } from "@storybook/react";
3
- import "antd/dist/antd.css";
4
- import ConnectionContextDecorator from './Decorators/ConnectionContextDecorator';
5
- declare const meta: {
6
- title: string;
7
- component: (props: any) => import("react").JSX.Element;
8
- decorators: (typeof ConnectionContextDecorator)[];
9
- };
10
- export default meta;
11
- type Story = StoryObj<typeof meta>;
12
- export declare const Primary: Story;
@@ -1,12 +0,0 @@
1
- /// <reference types="react" />
2
- import type { StoryObj } from "@storybook/react";
3
- import "antd/dist/antd.css";
4
- import ConnectionContextDecorator from './Decorators/ConnectionContextDecorator';
5
- declare const meta: {
6
- title: string;
7
- component: (props: any) => import("react").JSX.Element;
8
- decorators: (typeof ConnectionContextDecorator)[];
9
- };
10
- export default meta;
11
- type Story = StoryObj<typeof meta>;
12
- export declare const Primary: Story;
@@ -1,2 +0,0 @@
1
- import React from "react";
2
- export default function AddNewCompanyI18nDecorator(Story: any, context: any): React.JSX.Element;
@@ -1,2 +0,0 @@
1
- import React from "react";
2
- export default function AddNewUserI18nDecorator(Story: any, context: any): React.JSX.Element;
@@ -1,2 +0,0 @@
1
- import React from "react";
2
- export default function ConnectionContextDecorator(Story: any, context: any): React.JSX.Element;
@@ -1,2 +0,0 @@
1
- import React from "react";
2
- export default function DashboardI18nDecorator(Story: any, context: any): React.JSX.Element;
@@ -1,2 +0,0 @@
1
- import React from "react";
2
- export default function InvestmentCreationI18nDecorator(Story: any, context: any): React.JSX.Element;
@@ -1,2 +0,0 @@
1
- import React from "react";
2
- export default function ProgrammeCreateI18nDecorator(Story: any, context: any): React.JSX.Element;
@@ -1,12 +0,0 @@
1
- /// <reference types="react" />
2
- import type { StoryObj } from "@storybook/react";
3
- import "antd/dist/antd.css";
4
- import ConnectionContextDecorator from './Decorators/ConnectionContextDecorator';
5
- declare const meta: {
6
- title: string;
7
- component: (props: any) => import("react").JSX.Element;
8
- decorators: (typeof ConnectionContextDecorator)[];
9
- };
10
- export default meta;
11
- type Story = StoryObj<typeof meta>;
12
- export declare const Primary: Story;
@@ -1,12 +0,0 @@
1
- /// <reference types="react" />
2
- import type { StoryObj } from "@storybook/react";
3
- import "antd/dist/antd.css";
4
- import ConnectionContextDecorator from './Decorators/ConnectionContextDecorator';
5
- declare const meta: {
6
- title: string;
7
- component: (props: any) => import("react").JSX.Element;
8
- decorators: (typeof ConnectionContextDecorator)[];
9
- };
10
- export default meta;
11
- type Story = StoryObj<typeof meta>;
12
- export declare const Primary: Story;
@@ -1,12 +0,0 @@
1
- /// <reference types="react" />
2
- import type { StoryObj } from "@storybook/react";
3
- import "antd/dist/antd.css";
4
- import ConnectionContextDecorator from './Decorators/ConnectionContextDecorator';
5
- declare const meta: {
6
- title: string;
7
- component: (props: any) => import("react").JSX.Element;
8
- decorators: (typeof ConnectionContextDecorator)[];
9
- };
10
- export default meta;
11
- type Story = StoryObj<typeof meta>;
12
- export declare const Primary: Story;
@@ -1,12 +0,0 @@
1
- /// <reference types="react" />
2
- import type { StoryObj } from "@storybook/react";
3
- import "antd/dist/antd.css";
4
- import ConnectionContextDecorator from './Decorators/ConnectionContextDecorator';
5
- declare const meta: {
6
- title: string;
7
- component: (props: any) => import("react").JSX.Element;
8
- decorators: (typeof ConnectionContextDecorator)[];
9
- };
10
- export default meta;
11
- type Story = StoryObj<typeof meta>;
12
- export declare const Primary: Story;
@@ -1,8 +0,0 @@
1
- import React, { FC } from 'react';
2
- import { ConnectionContextProviderProps, ConnectionProps } from '../../Definitions';
3
- declare const ConnectionContext: React.Context<{
4
- connection?: ConnectionProps | undefined;
5
- }>;
6
- export declare const ConnectionContextProvider: FC<ConnectionContextProviderProps>;
7
- export default ConnectionContext;
8
- export declare const useConnection: () => ConnectionProps;
@@ -1,10 +0,0 @@
1
- import React from 'react';
2
- export declare const SettingsContext: React.Context<{
3
- isTransferFrozen: boolean;
4
- setTransferFrozen: (value: boolean) => void;
5
- }>;
6
- export declare const SettingsContextProvider: ({ children }: React.PropsWithChildren) => React.JSX.Element;
7
- export declare const useSettingsContext: () => {
8
- isTransferFrozen: boolean;
9
- setTransferFrozen: (value: boolean) => void;
10
- };
@@ -1,6 +0,0 @@
1
- import React from 'react';
2
- import { UserContextProps } from '../../Definitions';
3
- export declare const UserContext: React.Context<UserContextProps>;
4
- export declare const UserInformationContextProvider: ({ children }: React.PropsWithChildren) => React.JSX.Element;
5
- export default UserContext;
6
- export declare const useUserContext: () => UserContextProps;
@@ -1,3 +0,0 @@
1
- export * from './ConnectionContext/connectionContext';
2
- export * from './UserInformationContext/userInformationContext';
3
- export * from './SettingsContext/settingsContext';
@@ -1,12 +0,0 @@
1
- /// <reference types="react" />
2
- import type { StoryObj } from "@storybook/react";
3
- import "antd/dist/antd.css";
4
- import ConnectionContextDecorator from './Decorators/ConnectionContextDecorator';
5
- declare const meta: {
6
- title: string;
7
- component: (props: any) => import("react").JSX.Element;
8
- decorators: (typeof ConnectionContextDecorator)[];
9
- };
10
- export default meta;
11
- type Story = StoryObj<typeof meta>;
12
- export declare const Primary: Story;
@@ -1,12 +0,0 @@
1
- /// <reference types="react" />
2
- import type { StoryObj } from "@storybook/react";
3
- import "antd/dist/antd.css";
4
- import ConnectionContextDecorator from './Decorators/ConnectionContextDecorator';
5
- declare const meta: {
6
- title: string;
7
- component: (props: any) => import("react").JSX.Element;
8
- decorators: (typeof ConnectionContextDecorator)[];
9
- };
10
- export default meta;
11
- type Story = StoryObj<typeof meta>;
12
- export declare const Primary: Story;
@@ -1,2 +0,0 @@
1
- import React from "react";
2
- export default function AddNewCompanyI18nDecorator(Story: any, context: any): React.JSX.Element;
@@ -1,2 +0,0 @@
1
- import React from "react";
2
- export default function AddNewUserI18nDecorator(Story: any, context: any): React.JSX.Element;
@@ -1,2 +0,0 @@
1
- import React from "react";
2
- export default function ConnectionContextDecorator(Story: any, context: any): React.JSX.Element;
@@ -1,2 +0,0 @@
1
- import React from "react";
2
- export default function DashboardI18nDecorator(Story: any, context: any): React.JSX.Element;
@@ -1,2 +0,0 @@
1
- import React from "react";
2
- export default function InvestmentCreationI18nDecorator(Story: any, context: any): React.JSX.Element;
@@ -1,2 +0,0 @@
1
- import React from "react";
2
- export default function ProgrammeCreateI18nDecorator(Story: any, context: any): React.JSX.Element;
@@ -1,12 +0,0 @@
1
- /// <reference types="react" />
2
- import type { StoryObj } from "@storybook/react";
3
- import "antd/dist/antd.css";
4
- import ConnectionContextDecorator from './Decorators/ConnectionContextDecorator';
5
- declare const meta: {
6
- title: string;
7
- component: (props: any) => import("react").JSX.Element;
8
- decorators: (typeof ConnectionContextDecorator)[];
9
- };
10
- export default meta;
11
- type Story = StoryObj<typeof meta>;
12
- export declare const Primary: Story;
@@ -1,12 +0,0 @@
1
- /// <reference types="react" />
2
- import type { StoryObj } from "@storybook/react";
3
- import "antd/dist/antd.css";
4
- import ConnectionContextDecorator from './Decorators/ConnectionContextDecorator';
5
- declare const meta: {
6
- title: string;
7
- component: (props: any) => import("react").JSX.Element;
8
- decorators: (typeof ConnectionContextDecorator)[];
9
- };
10
- export default meta;
11
- type Story = StoryObj<typeof meta>;
12
- export declare const Primary: Story;
@@ -1,12 +0,0 @@
1
- /// <reference types="react" />
2
- import type { StoryObj } from "@storybook/react";
3
- import "antd/dist/antd.css";
4
- import ConnectionContextDecorator from './Decorators/ConnectionContextDecorator';
5
- declare const meta: {
6
- title: string;
7
- component: (props: any) => import("react").JSX.Element;
8
- decorators: (typeof ConnectionContextDecorator)[];
9
- };
10
- export default meta;
11
- type Story = StoryObj<typeof meta>;
12
- export declare const Primary: Story;
@@ -1,12 +0,0 @@
1
- /// <reference types="react" />
2
- import type { StoryObj } from "@storybook/react";
3
- import "antd/dist/antd.css";
4
- import ConnectionContextDecorator from './Decorators/ConnectionContextDecorator';
5
- declare const meta: {
6
- title: string;
7
- component: (props: any) => import("react").JSX.Element;
8
- decorators: (typeof ConnectionContextDecorator)[];
9
- };
10
- export default meta;
11
- type Story = StoryObj<typeof meta>;
12
- export declare const Primary: Story;