@devtron-labs/devtron-fe-common-lib 0.0.42-beta-3 → 0.0.42-beta-4
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.
- package/dist/Common/DebouncedSearch/DebouncedSearch.d.ts +1 -1
- package/dist/Common/DebouncedSearch/Types.d.ts +1 -0
- package/dist/Common/Dialogs/Types.d.ts +1 -0
- package/dist/Common/Helper.d.ts +0 -12
- package/dist/Common/Types.d.ts +137 -0
- package/dist/Common/index.d.ts +0 -1
- package/dist/index.js +19579 -22300
- package/package.json +1 -4
- package/src/Common/DebouncedSearch/DebouncedSearch.tsx +3 -2
- package/src/Common/DebouncedSearch/Types.ts +1 -0
- package/src/Common/Dialogs/DeleteDialog.tsx +18 -2
- package/src/Common/Dialogs/Types.ts +1 -0
- package/src/Common/Helper.tsx +4 -26
- package/src/Common/Types.ts +150 -0
- package/src/Common/index.ts +0 -1
- package/dist/Common/RJSF/Form.d.ts +0 -4
- package/dist/Common/RJSF/common/FieldRow.d.ts +0 -6
- package/dist/Common/RJSF/common/types.d.ts +0 -8
- package/dist/Common/RJSF/config.d.ts +0 -4
- package/dist/Common/RJSF/constants.d.ts +0 -7
- package/dist/Common/RJSF/index.d.ts +0 -3
- package/dist/Common/RJSF/templates/ArrayFieldItemTemplate.d.ts +0 -3
- package/dist/Common/RJSF/templates/ArrayFieldTemplate.d.ts +0 -3
- package/dist/Common/RJSF/templates/BaseInput.d.ts +0 -3
- package/dist/Common/RJSF/templates/ButtonTemplates/AddButton.d.ts +0 -3
- package/dist/Common/RJSF/templates/ButtonTemplates/RemoveButton.d.ts +0 -3
- package/dist/Common/RJSF/templates/ButtonTemplates/SubmitButton.d.ts +0 -3
- package/dist/Common/RJSF/templates/ButtonTemplates/index.d.ts +0 -3
- package/dist/Common/RJSF/templates/Description.d.ts +0 -3
- package/dist/Common/RJSF/templates/Field.d.ts +0 -3
- package/dist/Common/RJSF/templates/FieldErrorTemplate.d.ts +0 -3
- package/dist/Common/RJSF/templates/ObjectFieldTemplate.d.ts +0 -3
- package/dist/Common/RJSF/templates/TitleField.d.ts +0 -3
- package/dist/Common/RJSF/templates/WrapIfAdditionalTemplate.d.ts +0 -3
- package/dist/Common/RJSF/templates/index.d.ts +0 -10
- package/dist/Common/RJSF/types.d.ts +0 -3
- package/dist/Common/RJSF/utils.d.ts +0 -25
- package/dist/Common/RJSF/widgets/Checkbox.d.ts +0 -3
- package/dist/Common/RJSF/widgets/Select.d.ts +0 -3
- package/dist/Common/RJSF/widgets/index.d.ts +0 -2
- package/src/Assets/Icon/ic-chevron-down.svg +0 -5
- package/src/Common/RJSF/Form.tsx +0 -29
- package/src/Common/RJSF/common/FieldRow.tsx +0 -35
- package/src/Common/RJSF/common/types.ts +0 -9
- package/src/Common/RJSF/config.ts +0 -37
- package/src/Common/RJSF/constants.ts +0 -10
- package/src/Common/RJSF/index.ts +0 -3
- package/src/Common/RJSF/rjsfForm.scss +0 -18
- package/src/Common/RJSF/templates/ArrayFieldItemTemplate.tsx +0 -31
- package/src/Common/RJSF/templates/ArrayFieldTemplate.tsx +0 -78
- package/src/Common/RJSF/templates/BaseInput.tsx +0 -16
- package/src/Common/RJSF/templates/ButtonTemplates/AddButton.tsx +0 -18
- package/src/Common/RJSF/templates/ButtonTemplates/RemoveButton.tsx +0 -10
- package/src/Common/RJSF/templates/ButtonTemplates/SubmitButton.tsx +0 -18
- package/src/Common/RJSF/templates/ButtonTemplates/index.ts +0 -3
- package/src/Common/RJSF/templates/Description.tsx +0 -12
- package/src/Common/RJSF/templates/Field.tsx +0 -30
- package/src/Common/RJSF/templates/FieldErrorTemplate.tsx +0 -25
- package/src/Common/RJSF/templates/ObjectFieldTemplate.tsx +0 -105
- package/src/Common/RJSF/templates/TitleField.tsx +0 -9
- package/src/Common/RJSF/templates/WrapIfAdditionalTemplate.tsx +0 -51
- package/src/Common/RJSF/templates/index.ts +0 -10
- package/src/Common/RJSF/types.ts +0 -4
- package/src/Common/RJSF/utils.ts +0 -110
- package/src/Common/RJSF/widgets/Checkbox.tsx +0 -44
- package/src/Common/RJSF/widgets/Select.tsx +0 -77
- package/src/Common/RJSF/widgets/index.ts +0 -2
|
@@ -12,4 +12,4 @@ import { DebouncedSearchProps } from './Types';
|
|
|
12
12
|
* @param clearSearch - (Optional) To clear the search text
|
|
13
13
|
* @param showClearIcon - (Optional) To show the clear icon default value is true
|
|
14
14
|
*/
|
|
15
|
-
export default function DebouncedSearch({ onSearch, Icon, children, placeholder, containerClass, iconClass, inputClass, debounceTimeout, clearSearch, showClearIcon, }: DebouncedSearchProps): JSX.Element;
|
|
15
|
+
export default function DebouncedSearch({ onSearch, Icon, children, placeholder, containerClass, iconClass, inputClass, debounceTimeout, clearSearch, showClearIcon, autoFocus, }: DebouncedSearchProps): JSX.Element;
|
package/dist/Common/Helper.d.ts
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import * as Sentry from '@sentry/browser';
|
|
2
1
|
import React from 'react';
|
|
3
2
|
import { AsyncOptions, UseSearchString } from './Types';
|
|
4
3
|
export declare function showError(serverError: any, showToastOnUnknownError?: boolean, hideAccessError?: boolean): void;
|
|
@@ -53,15 +52,4 @@ export declare const closeOnEscKeyPressed: (e: any, actionClose: () => void) =>
|
|
|
53
52
|
export declare function copyToClipboard(str: any, callback?: typeof noop): void;
|
|
54
53
|
export declare function useAsync<T>(func: (...rest: any[]) => Promise<T>, dependencyArray?: any[], shouldRun?: boolean, options?: AsyncOptions): [boolean, T, any | null, () => void, React.Dispatch<any>, any[]];
|
|
55
54
|
export declare const processDeployedTime: (lastDeployed: any, isArgoInstalled: any) => string;
|
|
56
|
-
/**
|
|
57
|
-
* Appends search parameters to the url as a query string
|
|
58
|
-
*
|
|
59
|
-
* @param url URL to which the search params needs to be added
|
|
60
|
-
* @param params Object for the search parameters
|
|
61
|
-
*/
|
|
62
|
-
export declare const getUrlWithSearchParams: (url: string, params: Record<string | number, any>) => string;
|
|
63
|
-
/**
|
|
64
|
-
* Custom exception logger function for logging errors to sentry
|
|
65
|
-
*/
|
|
66
|
-
export declare const logExceptionToSentry: typeof Sentry.captureException;
|
|
67
55
|
export {};
|
package/dist/Common/Types.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import React, { ReactNode, CSSProperties } from 'react';
|
|
2
2
|
import { Placement } from 'tippy.js';
|
|
3
3
|
import { ImageComment, ReleaseTag } from './ImageTags.Types';
|
|
4
|
+
import { DockerConfigOverrideType, TaskErrorObj } from '.';
|
|
4
5
|
export interface ResponseType {
|
|
5
6
|
code: number;
|
|
6
7
|
status: string;
|
|
@@ -71,6 +72,7 @@ export interface TippyCustomizedProps {
|
|
|
71
72
|
documentationLink?: string;
|
|
72
73
|
documentationLinkText?: string;
|
|
73
74
|
children: React.ReactElement<any>;
|
|
75
|
+
followCursor?: boolean;
|
|
74
76
|
}
|
|
75
77
|
export interface GenericEmptyStateType {
|
|
76
78
|
title: ReactNode;
|
|
@@ -284,6 +286,7 @@ export interface CommonNodeAttr {
|
|
|
284
286
|
colorCode?: string;
|
|
285
287
|
isExternalCI?: boolean;
|
|
286
288
|
isLinkedCI?: boolean;
|
|
289
|
+
isLinkedCD?: boolean;
|
|
287
290
|
isJobCI?: boolean;
|
|
288
291
|
environmentName?: string;
|
|
289
292
|
environmentId?: number;
|
|
@@ -427,4 +430,138 @@ export interface AsyncState<T> {
|
|
|
427
430
|
export interface AsyncOptions {
|
|
428
431
|
resetOnChange: boolean;
|
|
429
432
|
}
|
|
433
|
+
export interface AppEnvironment {
|
|
434
|
+
environmentId: number;
|
|
435
|
+
environmentName: string;
|
|
436
|
+
appMetrics: boolean;
|
|
437
|
+
infraMetrics: boolean;
|
|
438
|
+
prod: boolean;
|
|
439
|
+
chartRefId?: number;
|
|
440
|
+
lastDeployed?: string;
|
|
441
|
+
lastDeployedBy?: string;
|
|
442
|
+
lastDeployedImage?: string;
|
|
443
|
+
appStatus?: string;
|
|
444
|
+
deploymentAppDeleteRequest?: boolean;
|
|
445
|
+
isVirtualEnvironment?: boolean;
|
|
446
|
+
isProtected?: boolean;
|
|
447
|
+
pipelineId?: number;
|
|
448
|
+
latestCdWorkflowRunnerId?: number;
|
|
449
|
+
}
|
|
450
|
+
export interface Strategy {
|
|
451
|
+
deploymentTemplate: string;
|
|
452
|
+
config: any;
|
|
453
|
+
default?: boolean;
|
|
454
|
+
}
|
|
455
|
+
export interface CDStage {
|
|
456
|
+
status: string;
|
|
457
|
+
name: string;
|
|
458
|
+
triggerType: 'AUTOMATIC' | 'MANUAL';
|
|
459
|
+
config: string;
|
|
460
|
+
}
|
|
461
|
+
export interface CDStageConfigMapSecretNames {
|
|
462
|
+
configMaps: any[];
|
|
463
|
+
secrets: any[];
|
|
464
|
+
}
|
|
465
|
+
export interface PrePostDeployStageType {
|
|
466
|
+
isValid: boolean;
|
|
467
|
+
steps: TaskErrorObj[];
|
|
468
|
+
triggerType: string;
|
|
469
|
+
name: string;
|
|
470
|
+
status: string;
|
|
471
|
+
}
|
|
472
|
+
export interface CdPipeline {
|
|
473
|
+
id: number;
|
|
474
|
+
environmentId: number;
|
|
475
|
+
environmentName?: string;
|
|
476
|
+
description?: string;
|
|
477
|
+
ciPipelineId: number;
|
|
478
|
+
triggerType: 'AUTOMATIC' | 'MANUAL';
|
|
479
|
+
name: string;
|
|
480
|
+
strategies?: Strategy[];
|
|
481
|
+
namespace?: string;
|
|
482
|
+
appWorkflowId?: number;
|
|
483
|
+
deploymentTemplate?: string;
|
|
484
|
+
preStage?: CDStage;
|
|
485
|
+
postStage?: CDStage;
|
|
486
|
+
preStageConfigMapSecretNames?: CDStageConfigMapSecretNames;
|
|
487
|
+
postStageConfigMapSecretNames?: CDStageConfigMapSecretNames;
|
|
488
|
+
runPreStageInEnv?: boolean;
|
|
489
|
+
runPostStageInEnv?: boolean;
|
|
490
|
+
isClusterCdActive?: boolean;
|
|
491
|
+
parentPipelineId?: number;
|
|
492
|
+
parentPipelineType?: string;
|
|
493
|
+
deploymentAppDeleteRequest?: boolean;
|
|
494
|
+
deploymentAppCreated?: boolean;
|
|
495
|
+
userApprovalConfig?: UserApprovalConfigType;
|
|
496
|
+
isVirtualEnvironment?: boolean;
|
|
497
|
+
deploymentAppType: DeploymentAppTypes;
|
|
498
|
+
helmPackageName?: string;
|
|
499
|
+
preDeployStage?: PrePostDeployStageType;
|
|
500
|
+
postDeployStage?: PrePostDeployStageType;
|
|
501
|
+
isProdEnv?: boolean;
|
|
502
|
+
}
|
|
503
|
+
export interface ExternalCiConfig {
|
|
504
|
+
id: number;
|
|
505
|
+
webhookUrl: string;
|
|
506
|
+
payload: string;
|
|
507
|
+
accessKey: string;
|
|
508
|
+
}
|
|
509
|
+
export interface Source {
|
|
510
|
+
type: string;
|
|
511
|
+
value?: string;
|
|
512
|
+
regex?: string;
|
|
513
|
+
}
|
|
514
|
+
export interface CiMaterial {
|
|
515
|
+
source: Source;
|
|
516
|
+
gitMaterialId: number;
|
|
517
|
+
id: number;
|
|
518
|
+
gitMaterialName: string;
|
|
519
|
+
isRegex?: boolean;
|
|
520
|
+
}
|
|
521
|
+
export interface Task {
|
|
522
|
+
name?: string;
|
|
523
|
+
type?: string;
|
|
524
|
+
cmd?: string;
|
|
525
|
+
args?: Array<string>;
|
|
526
|
+
}
|
|
527
|
+
export interface CiScript {
|
|
528
|
+
id: number;
|
|
529
|
+
index: number;
|
|
530
|
+
name: string;
|
|
531
|
+
script: string;
|
|
532
|
+
outputLocation?: string;
|
|
533
|
+
}
|
|
534
|
+
export interface CiPipeline {
|
|
535
|
+
isManual: boolean;
|
|
536
|
+
dockerArgs?: Map<string, string>;
|
|
537
|
+
isExternal: boolean;
|
|
538
|
+
parentCiPipeline: number;
|
|
539
|
+
parentAppId: number;
|
|
540
|
+
externalCiConfig: ExternalCiConfig;
|
|
541
|
+
ciMaterial?: CiMaterial[];
|
|
542
|
+
name?: string;
|
|
543
|
+
id?: number;
|
|
544
|
+
active?: boolean;
|
|
545
|
+
linkedCount: number;
|
|
546
|
+
scanEnabled: boolean;
|
|
547
|
+
deleted?: boolean;
|
|
548
|
+
version?: string;
|
|
549
|
+
beforeDockerBuild?: Array<Task>;
|
|
550
|
+
afterDockerBuild?: Array<Task>;
|
|
551
|
+
appWorkflowId?: number;
|
|
552
|
+
beforeDockerBuildScripts?: Array<CiScript>;
|
|
553
|
+
afterDockerBuildScripts?: Array<CiScript>;
|
|
554
|
+
isDockerConfigOverridden?: boolean;
|
|
555
|
+
dockerConfigOverride?: DockerConfigOverrideType;
|
|
556
|
+
appName?: string;
|
|
557
|
+
appId?: string;
|
|
558
|
+
componentId?: number;
|
|
559
|
+
isCITriggerBlocked?: boolean;
|
|
560
|
+
ciBlockState?: {
|
|
561
|
+
action: any;
|
|
562
|
+
metadataField: string;
|
|
563
|
+
};
|
|
564
|
+
isOffendingMandatoryPlugin?: boolean;
|
|
565
|
+
pipelineType?: string;
|
|
566
|
+
}
|
|
430
567
|
export {};
|
package/dist/Common/index.d.ts
CHANGED