@devtron-labs/devtron-fe-common-lib 1.11.0 → 1.11.2

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.
Files changed (23) hide show
  1. package/dist/{@code-editor-DdSJQRDu.js → @code-editor-ClgzimYq.js} +6603 -6449
  2. package/dist/{@common-rjsf-BSElpl3x.js → @common-rjsf-BcEbXDaF.js} +2 -2
  3. package/dist/{@framer-motion-DMD7dX-G.js → @framer-motion-CRC_R7iM.js} +1 -1
  4. package/dist/{@react-dates-DxmDHBUI.js → @react-dates-C-O0TUaC.js} +1 -1
  5. package/dist/{@react-select-BR4eLpVa.js → @react-select-CaCDGT85.js} +1 -1
  6. package/dist/{@react-virtualized-sticky-tree-Ca-pl6uN.js → @react-virtualized-sticky-tree-BINLYj4Y.js} +1 -1
  7. package/dist/{@vendor-DZHtXPTX.js → @vendor-DBDnc0ZN.js} +16369 -15535
  8. package/dist/Common/Constants.d.ts +1 -0
  9. package/dist/Shared/Components/Header/utils.d.ts +1 -1
  10. package/dist/Shared/Components/License/ActivateLicenseDialog.d.ts +3 -0
  11. package/dist/Shared/Components/License/License.components.d.ts +5 -0
  12. package/dist/Shared/Components/License/index.d.ts +5 -0
  13. package/dist/Shared/Components/License/services.d.ts +1 -0
  14. package/dist/Shared/Components/{DevtronLicenseCard → License}/types.d.ts +12 -0
  15. package/dist/Shared/Components/License/utils.d.ts +7 -0
  16. package/dist/Shared/Components/QRCode.d.ts +10 -0
  17. package/dist/Shared/Components/index.d.ts +2 -1
  18. package/dist/index.js +851 -848
  19. package/package.json +2 -1
  20. package/dist/Shared/Components/DevtronLicenseCard/InstallationFingerprintInfo.d.ts +0 -3
  21. package/dist/Shared/Components/DevtronLicenseCard/index.d.ts +0 -4
  22. package/dist/Shared/Components/DevtronLicenseCard/utils.d.ts +0 -6
  23. /package/dist/Shared/Components/{DevtronLicenseCard → License}/DevtronLicenseCard.d.ts +0 -0
@@ -131,6 +131,7 @@ export declare const ROUTES: {
131
131
  readonly RESOURCE_TEMPLATE: "resource/template";
132
132
  readonly ENVIRONMENT_DATA: "global/environment-variables";
133
133
  readonly DASHBOARD_EVENT: "dashboard-event";
134
+ readonly LICENSE_DATA: "license/data";
134
135
  };
135
136
  export declare enum KEY_VALUE {
136
137
  KEY = "key",
@@ -1,4 +1,4 @@
1
- import { DevtronLicenseInfo } from '../DevtronLicenseCard';
1
+ import { DevtronLicenseInfo } from '../License';
2
2
  export declare const getDateInMilliseconds: (days: any) => number;
3
3
  export declare const handlePostHogEventUpdate: (eventName: string) => Promise<void>;
4
4
  export declare const setActionWithExpiry: (key: string, days: number) => void;
@@ -0,0 +1,3 @@
1
+ import { ActivateLicenseDialogProps } from '../../index';
2
+ declare const ActivateLicenseDialog: ({ fingerprint, enterpriseName, handleClose, handleLicenseActivateSuccess, }: ActivateLicenseDialogProps) => JSX.Element;
3
+ export default ActivateLicenseDialog;
@@ -0,0 +1,5 @@
1
+ import { GatekeeperQRDialogProps, InstallFingerprintInfoProps } from './types';
2
+ export declare const GatekeeperQRDialog: ({ handleClose, fingerprint }: GatekeeperQRDialogProps) => JSX.Element;
3
+ export declare const ICDevtronWithBorder: () => JSX.Element;
4
+ declare const InstallationFingerprintInfo: ({ fingerprint, showHelpTooltip }: InstallFingerprintInfoProps) => JSX.Element;
5
+ export default InstallationFingerprintInfo;
@@ -0,0 +1,5 @@
1
+ export { default as DevtronLicenseCard } from './DevtronLicenseCard';
2
+ export { parseDevtronLicenseData } from './utils';
3
+ export { default as InstallationFingerprintInfo, ICDevtronWithBorder } from './License.components';
4
+ export { default as ActivateLicenseDialog } from './ActivateLicenseDialog';
5
+ export * from './types';
@@ -0,0 +1 @@
1
+ export declare const activateLicense: (license: string) => Promise<void>;
@@ -21,6 +21,18 @@ export type DevtronLicenseCardProps = {
21
21
  licenseSuffix: string;
22
22
  });
23
23
  export type DevtronLicenseInfo = Omit<DevtronLicenseCardProps, 'appTheme'> & Pick<DevtronLicenseDTO, 'fingerprint' | 'showLicenseData' | 'licenseStatusError'>;
24
+ export interface ActivateLicenseDialogProps extends Pick<DevtronLicenseBaseDTO, 'fingerprint'> {
25
+ enterpriseName: string;
26
+ handleClose?: () => void;
27
+ handleLicenseActivateSuccess: () => void;
28
+ }
24
29
  export interface InstallFingerprintInfoProps extends Pick<DevtronLicenseBaseDTO, 'fingerprint'> {
25
30
  showHelpTooltip?: boolean;
26
31
  }
32
+ export interface GatekeeperQRDialogProps {
33
+ fingerprint: string;
34
+ handleClose: () => void;
35
+ }
36
+ export interface CopyButtonProps {
37
+ copyContent: string;
38
+ }
@@ -0,0 +1,7 @@
1
+ import { DevtronLicenseDTO, DevtronLicenseInfo, LicenseStatus } from '../../index';
2
+ export declare const getLicenseColorsAccordingToStatus: (licenseStatus: LicenseStatus) => {
3
+ bgColor: string;
4
+ textColor: string;
5
+ };
6
+ export declare const parseDevtronLicenseData: (result: DevtronLicenseDTO) => DevtronLicenseInfo;
7
+ export declare const getGateKeeperUrl: (fingerprint: string) => string;
@@ -0,0 +1,10 @@
1
+ import { IconsProps } from './Icon';
2
+ interface QRCodeProps {
3
+ title?: string;
4
+ value: string;
5
+ size: number;
6
+ bgColor: IconsProps['color'];
7
+ fgColor: IconsProps['color'];
8
+ }
9
+ declare const QRCode: ({ title, value, size, bgColor, fgColor }: QRCodeProps) => JSX.Element;
10
+ export default QRCode;
@@ -74,8 +74,9 @@ export * from './Backdrop';
74
74
  export * from './CountrySelect';
75
75
  export * from './PhoneInput';
76
76
  export * from './FlagImage';
77
- export * from './DevtronLicenseCard';
77
+ export * from './License';
78
78
  export * from './LoginBanner';
79
79
  export * from './Confetti';
80
80
  export * from './FramerComponents';
81
81
  export * from './ActionMenu';
82
+ export { default as QRCode } from './QRCode';