@undp/carbon-library 1.0.258-carbon-lib-test.0 → 1.0.258
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/cjs/index.js +179 -366
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/types/Components/Common/CoBenifits/coBenifits.d.ts +1 -0
- package/dist/cjs/types/Components/Common/Models/programmeRetireForm.d.ts +1 -0
- package/dist/cjs/types/Components/Common/Models/programmeTransferForm.d.ts +1 -0
- package/dist/cjs/types/Components/Common/NdcActionBody/ndcActionBody.d.ts +2 -0
- package/dist/cjs/types/Components/Common/ProgrammeDocuments/programmeDocuments.d.ts +2 -0
- package/dist/cjs/types/Definitions/Definitions/connectionContext.definitions.d.ts +0 -1
- package/dist/cjs/types/Definitions/Entities/programmeTransfer.d.ts +1 -0
- package/dist/cjs/types/index.d.ts +0 -1
- package/dist/esm/index.js +181 -360
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/types/Components/Common/CoBenifits/coBenifits.d.ts +1 -0
- package/dist/esm/types/Components/Common/Models/programmeRetireForm.d.ts +1 -0
- package/dist/esm/types/Components/Common/Models/programmeTransferForm.d.ts +1 -0
- package/dist/esm/types/Components/Common/NdcActionBody/ndcActionBody.d.ts +2 -0
- package/dist/esm/types/Components/Common/ProgrammeDocuments/programmeDocuments.d.ts +2 -0
- package/dist/esm/types/Definitions/Definitions/connectionContext.definitions.d.ts +0 -1
- package/dist/esm/types/Definitions/Entities/programmeTransfer.d.ts +1 -0
- package/dist/esm/types/index.d.ts +0 -1
- package/dist/index.d.ts +9 -21
- package/dist/locales/i18n/company/en.json +2 -1
- package/dist/locales/i18n/companyProfile/en.json +2 -1
- package/package.json +2 -29
- package/dist/cjs/types/Context/ConnectionContext/connectionContext.d.ts +0 -8
- package/dist/cjs/types/Context/SettingsContext/settingsContext.d.ts +0 -10
- package/dist/cjs/types/Context/UserInformationContext/userInformationContext.d.ts +0 -6
- package/dist/cjs/types/Context/index.d.ts +0 -3
- package/dist/cjs/types/Storybook/AddNewCompanyComponent.stories.d.ts +0 -12
- package/dist/cjs/types/Storybook/AddNewUserComponent.stories.d.ts +0 -12
- package/dist/cjs/types/Storybook/Decorators/AddNewCompanyI18nDecorator.d.ts +0 -2
- package/dist/cjs/types/Storybook/Decorators/AddNewUserI18nDecorator.d.ts +0 -2
- package/dist/cjs/types/Storybook/Decorators/ConnectionContextDecorator.d.ts +0 -2
- package/dist/esm/types/Context/ConnectionContext/connectionContext.d.ts +0 -8
- package/dist/esm/types/Context/SettingsContext/settingsContext.d.ts +0 -10
- package/dist/esm/types/Context/UserInformationContext/userInformationContext.d.ts +0 -6
- package/dist/esm/types/Context/index.d.ts +0 -3
- package/dist/esm/types/Storybook/AddNewCompanyComponent.stories.d.ts +0 -12
- package/dist/esm/types/Storybook/AddNewUserComponent.stories.d.ts +0 -12
- package/dist/esm/types/Storybook/Decorators/AddNewCompanyI18nDecorator.d.ts +0 -2
- package/dist/esm/types/Storybook/Decorators/AddNewUserI18nDecorator.d.ts +0 -2
- package/dist/esm/types/Storybook/Decorators/ConnectionContextDecorator.d.ts +0 -2
@@ -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>;
|
package/dist/index.d.ts
CHANGED
@@ -129,6 +129,7 @@ interface CoBenefitProps {
|
|
129
129
|
loading?: any;
|
130
130
|
sdgGoalImages?: any;
|
131
131
|
translator?: any;
|
132
|
+
useConnection?: any;
|
132
133
|
}
|
133
134
|
declare const CoBenifitsComponent: (props: CoBenefitProps) => React.JSX.Element;
|
134
135
|
|
@@ -184,6 +185,7 @@ declare class ProgrammeTransfer implements BaseEntity {
|
|
184
185
|
createdTime?: number;
|
185
186
|
retirementType?: RetireType;
|
186
187
|
toCompanyMeta?: any;
|
188
|
+
omgePercentage?: any;
|
187
189
|
}
|
188
190
|
|
189
191
|
declare enum ProgrammeStageR {
|
@@ -358,6 +360,7 @@ interface ProgrammeRetireFormProps {
|
|
358
360
|
hideType: boolean;
|
359
361
|
myCompanyId?: number;
|
360
362
|
translator: any;
|
363
|
+
useConnection: any;
|
361
364
|
}
|
362
365
|
declare const ProgrammeRetireForm: FC<ProgrammeRetireFormProps>;
|
363
366
|
|
@@ -384,6 +387,7 @@ interface ProgrammeTransferFormProps {
|
|
384
387
|
userCompanyId: number | undefined;
|
385
388
|
companyRole: string;
|
386
389
|
translator: any;
|
390
|
+
useConnection: any;
|
387
391
|
ministryLevelPermission?: boolean;
|
388
392
|
}
|
389
393
|
declare const ProgrammeTransferForm: FC<ProgrammeTransferFormProps>;
|
@@ -984,7 +988,6 @@ interface CountrySelect {
|
|
984
988
|
type Methods = 'get' | 'post' | 'delete' | 'put' | 'patch';
|
985
989
|
type ConnectionContextProviderProps = {
|
986
990
|
serverURL: string;
|
987
|
-
t: any;
|
988
991
|
children: ReactNode;
|
989
992
|
};
|
990
993
|
interface Response<T> {
|
@@ -1149,7 +1152,9 @@ interface NdcActionBodyProps {
|
|
1149
1152
|
programmeOwnerId?: any;
|
1150
1153
|
getProgrammeDocs?: any;
|
1151
1154
|
ministryLevelPermission?: boolean;
|
1155
|
+
useConnection: any;
|
1152
1156
|
translator: any;
|
1157
|
+
useUserContext: any;
|
1153
1158
|
onFinish?: any;
|
1154
1159
|
programme?: any;
|
1155
1160
|
}
|
@@ -1170,6 +1175,8 @@ interface ProgrammeDocumentsProps {
|
|
1170
1175
|
getDocumentDetails: any;
|
1171
1176
|
getProgrammeById: any;
|
1172
1177
|
ministryLevelPermission?: boolean;
|
1178
|
+
useConnection: any;
|
1179
|
+
useUserContext: any;
|
1173
1180
|
translator: any;
|
1174
1181
|
methodologyDocumentUpdated: any;
|
1175
1182
|
programmeStatus?: any;
|
@@ -1210,23 +1217,4 @@ declare const TooltipColor = "#6ACDFF";
|
|
1210
1217
|
declare const InvestmentBGColor = "rgba(151, 110, 215, 0.3)";
|
1211
1218
|
declare const InvestmentColor = "#9155FD";
|
1212
1219
|
|
1213
|
-
|
1214
|
-
|
1215
|
-
declare const useConnection: () => ConnectionProps;
|
1216
|
-
|
1217
|
-
declare const UserContext: React.Context<UserContextProps>;
|
1218
|
-
declare const UserInformationContextProvider: ({ children }: React.PropsWithChildren) => React.JSX.Element;
|
1219
|
-
|
1220
|
-
declare const useUserContext: () => UserContextProps;
|
1221
|
-
|
1222
|
-
declare const SettingsContext: React.Context<{
|
1223
|
-
isTransferFrozen: boolean;
|
1224
|
-
setTransferFrozen: (value: boolean) => void;
|
1225
|
-
}>;
|
1226
|
-
declare const SettingsContextProvider: ({ children }: React.PropsWithChildren) => React.JSX.Element;
|
1227
|
-
declare const useSettingsContext: () => {
|
1228
|
-
isTransferFrozen: boolean;
|
1229
|
-
setTransferFrozen: (value: boolean) => void;
|
1230
|
-
};
|
1231
|
-
|
1232
|
-
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, EnablementProperties, EnergyGenerationUnits, FormElementType, 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, 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 };
|
1220
|
+
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, EnablementProperties, EnergyGenerationUnits, FormElementType, 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, 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 };
|
@@ -19,5 +19,6 @@
|
|
19
19
|
"searchMail": "Search by email",
|
20
20
|
"searchName": "Search by name",
|
21
21
|
"min": "Ministry",
|
22
|
-
"nationalSopValue": "National Share of Proceeds"
|
22
|
+
"nationalSopValue": "National Share of Proceeds",
|
23
|
+
"omgePercentage":"Overall Mitigation in Global Emissions (OMGE) Account"
|
23
24
|
}
|
package/package.json
CHANGED
@@ -1,14 +1,12 @@
|
|
1
1
|
{
|
2
2
|
"name": "@undp/carbon-library",
|
3
|
-
"version": "1.0.258
|
3
|
+
"version": "1.0.258",
|
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,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,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;
|