@devtron-labs/devtron-fe-common-lib 1.9.5-beta-9 → 1.9.5-beta-12
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.
@@ -1,7 +1,7 @@
|
|
1
1
|
import { j as n, ah as y, aj as k, ai as W } from "./@vendor-C56_0-C8.js";
|
2
2
|
import V, { forwardRef as J, useMemo as P } from "react";
|
3
3
|
import K, { getDefaultRegistry as q } from "@rjsf/core";
|
4
|
-
import { T as F, j as N, c as v, b as S, a as Y, i as z, d as w, e as E, S as G } from "./@code-editor-
|
4
|
+
import { T as F, j as N, c as v, b as S, a as Y, i as z, d as w, e as E, S as G } from "./@code-editor-qi1yu9iI.js";
|
5
5
|
import Q, { components as D } from "react-select";
|
6
6
|
import { ReactComponent as X } from "./assets/ic-chevron-down.fc70d7a7.svg";
|
7
7
|
import { getUiOptions as B, getTemplate as $, getSubmitButtonOptions as Z, ADDITIONAL_PROPERTY_FLAG as L, errorId as ee, englishStringTranslator as te, TranslatableString as ne, titleId as re, canExpand as se, deepEquals as ae } from "@rjsf/utils";
|
@@ -1,6 +1,7 @@
|
|
1
1
|
import { MutableRefObject, ReactNode } from 'react';
|
2
2
|
import { ServerInfo } from '../Components/Header/types';
|
3
3
|
import { SERVER_MODE } from '../../Common';
|
4
|
+
import { LicenseInfoDialogType } from '..';
|
4
5
|
export interface MainContext {
|
5
6
|
serverMode: SERVER_MODE;
|
6
7
|
setServerMode: (serverMode: SERVER_MODE) => void;
|
@@ -38,7 +39,9 @@ export interface MainContext {
|
|
38
39
|
isManifestScanningEnabled: boolean;
|
39
40
|
canOnlyViewPermittedEnvOrgLevel: boolean;
|
40
41
|
viewIsPipelineRBACConfiguredNode: ReactNode;
|
41
|
-
handleOpenLicenseInfoDialog: () => void;
|
42
|
+
handleOpenLicenseInfoDialog: (initialDialogType?: LicenseInfoDialogType.ABOUT | LicenseInfoDialogType.LICENSE) => void;
|
43
|
+
showLicenseData: boolean;
|
44
|
+
setShowLicenseData: (showLicenseData: boolean) => void;
|
42
45
|
}
|
43
46
|
export interface MainContextProviderProps {
|
44
47
|
children: ReactNode;
|
package/dist/Shared/types.d.ts
CHANGED
@@ -875,6 +875,23 @@ export interface AppEnvIdType {
|
|
875
875
|
appId: number;
|
876
876
|
envId: number;
|
877
877
|
}
|
878
|
+
export declare enum LicenseInfoDialogType {
|
879
|
+
ABOUT = "about",
|
880
|
+
LICENSE = "license",
|
881
|
+
UPDATE = "update"
|
882
|
+
}
|
883
|
+
export declare enum LicensingErrorCodes {
|
884
|
+
FingerPrintMisMatch = "11001",
|
885
|
+
LicenseExpired = "11002",
|
886
|
+
TamperedCertificate = "11002",
|
887
|
+
NoPublicKey = "11003",
|
888
|
+
InstallationModeMismatch = "11004",
|
889
|
+
NoCertFound = "11006"
|
890
|
+
}
|
891
|
+
export interface LicenseErrorStruct {
|
892
|
+
code: LicensingErrorCodes;
|
893
|
+
userMessage: string;
|
894
|
+
}
|
878
895
|
export interface DevtronLicenseBaseDTO {
|
879
896
|
fingerprint: string | null;
|
880
897
|
isTrial: boolean | null;
|
@@ -896,6 +913,8 @@ export interface DevtronLicenseBaseDTO {
|
|
896
913
|
domain: string | null;
|
897
914
|
} | null;
|
898
915
|
license: string | null;
|
916
|
+
showLicenseData: boolean;
|
917
|
+
licenseStatusError?: LicenseErrorStruct;
|
899
918
|
}
|
900
919
|
export type DevtronLicenseDTO<isCentralDashboard extends boolean = false> = DevtronLicenseBaseDTO & (isCentralDashboard extends true ? {
|
901
920
|
claimedByUserDetails: {
|