@devtron-labs/devtron-fe-common-lib 1.2.5-beta-9 → 1.2.5-beta-10
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/{@code-editor-Bxuub3Gm.js → @code-editor-MY03NTMb.js} +3760 -3892
- package/dist/{@common-rjsf-MgIsP6qj.js → @common-rjsf-DMi1V3Rm.js} +2 -2
- package/dist/{@framer-motion-DHY98qq3.js → @framer-motion-ttHHVvcU.js} +1 -1
- package/dist/{@react-dates-WNnwjI5S.js → @react-dates-BYL_9BKq.js} +20 -20
- package/dist/{@react-select-BbR996pa.js → @react-select-C2X4wjQ5.js} +1 -1
- package/dist/{@vendor-RU8AW1bK.js → @vendor-qw62fvSw.js} +3909 -3948
- package/dist/Common/Helper.d.ts +1 -2
- package/dist/Common/Types.d.ts +4 -19
- package/dist/Shared/Components/DynamicDataTable/DynamicDataTableRow.d.ts +1 -1
- package/dist/Shared/Components/DynamicDataTable/types.d.ts +20 -15
- package/dist/Shared/Components/index.d.ts +0 -1
- package/dist/Shared/types.d.ts +1 -19
- package/dist/index.js +324 -328
- package/package.json +1 -1
- package/dist/Shared/Components/TagsKeyValueTable/TagsContainer.d.ts +0 -3
- package/dist/Shared/Components/TagsKeyValueTable/constants.d.ts +0 -4
- package/dist/Shared/Components/TagsKeyValueTable/index.d.ts +0 -3
- package/dist/Shared/Components/TagsKeyValueTable/types.d.ts +0 -9
- package/dist/Shared/Components/TagsKeyValueTable/utils.d.ts +0 -3
package/dist/Common/Helper.d.ts
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
import { default as React, SyntheticEvent } from 'react';
|
2
2
|
import { JSONPathOptions } from 'jsonpath-plus';
|
3
|
-
import { AsyncOptions,
|
3
|
+
import { AsyncOptions, UseSearchString } from './Types';
|
4
4
|
import { scrollableInterface } from '../Shared';
|
5
5
|
export declare function showError(serverError: any, showToastOnUnknownError?: boolean, hideAccessError?: boolean): void;
|
6
6
|
interface ConditionalWrapper<T> {
|
@@ -133,5 +133,4 @@ export declare const getSanitizedIframe: (iframeString: string) => string;
|
|
133
133
|
* This method adds default attributes to iframe - title, loading ="lazy", width="100%", height="100%"
|
134
134
|
*/
|
135
135
|
export declare const getIframeWithDefaultAttributes: (iframeString: string, defaultName?: string) => string;
|
136
|
-
export declare const getStageTitle: (stageType: DeploymentNodeType) => string;
|
137
136
|
export {};
|
package/dist/Common/Types.d.ts
CHANGED
@@ -3,7 +3,7 @@ import { TippyProps } from '@tippyjs/react';
|
|
3
3
|
import { Placement } from 'tippy.js';
|
4
4
|
import { UserGroupDTO } from '../Pages/GlobalConfigurations';
|
5
5
|
import { ImageComment, ReleaseTag } from './ImageTags.Types';
|
6
|
-
import { MandatoryPluginBaseStateType,
|
6
|
+
import { MandatoryPluginBaseStateType, RegistryType, RuntimeParamsListItemType, Severity } from '../Shared';
|
7
7
|
import { ACTION_STATE, DEPLOYMENT_WINDOW_TYPE, DockerConfigOverrideType, SortingOrder, TaskErrorObj } from '.';
|
8
8
|
/**
|
9
9
|
* Generic response type object with support for overriding the result type
|
@@ -432,10 +432,6 @@ export interface CDMaterialType {
|
|
432
432
|
* Would currently only be received in case of release
|
433
433
|
*/
|
434
434
|
appWorkflowId: number;
|
435
|
-
/**
|
436
|
-
* Denotes trigger blocking due to mandatory tags, (might be used for plugins and other features in future)
|
437
|
-
*/
|
438
|
-
deploymentBlockedState?: PolicyBlockInfo;
|
439
435
|
}
|
440
436
|
export declare enum CDMaterialServiceEnum {
|
441
437
|
ROLLBACK = "rollback",
|
@@ -472,14 +468,6 @@ export interface DownstreamNodesEnvironmentsType {
|
|
472
468
|
environmentId: number;
|
473
469
|
environmentName: string;
|
474
470
|
}
|
475
|
-
export declare enum TriggerBlockType {
|
476
|
-
MANDATORY_TAG = "mandatory-tags",
|
477
|
-
MANDATORY_PLUGIN = "mandatory-plugins"
|
478
|
-
}
|
479
|
-
export interface TriggerBlockedInfo {
|
480
|
-
blockedBy: TriggerBlockType;
|
481
|
-
blockedReason?: string;
|
482
|
-
}
|
483
471
|
export interface CommonNodeAttr extends Pick<MandatoryPluginBaseStateType, 'isTriggerBlocked' | 'pluginBlockState'> {
|
484
472
|
connectingCiPipelineId?: number;
|
485
473
|
parents: string | number[] | string[];
|
@@ -542,7 +530,6 @@ export interface CommonNodeAttr extends Pick<MandatoryPluginBaseStateType, 'isTr
|
|
542
530
|
downstreamEnvironments?: DownstreamNodesEnvironmentsType[];
|
543
531
|
cipipelineId?: number;
|
544
532
|
isDeploymentBlocked?: boolean;
|
545
|
-
triggerBlockedInfo?: TriggerBlockedInfo;
|
546
533
|
}
|
547
534
|
export declare enum DeploymentAppTypes {
|
548
535
|
HELM = "helm",
|
@@ -606,7 +593,6 @@ export interface CDMaterialsMetaInfo {
|
|
606
593
|
*/
|
607
594
|
requestedUserId: number;
|
608
595
|
runtimeParams: RuntimeParamsListItemType[];
|
609
|
-
deploymentBlockedState?: PolicyBlockInfo;
|
610
596
|
}
|
611
597
|
export interface ImagePromotionMaterialInfo {
|
612
598
|
isApprovalPendingForPromotion: boolean;
|
@@ -684,7 +670,7 @@ export interface Strategy {
|
|
684
670
|
config: any;
|
685
671
|
default?: boolean;
|
686
672
|
}
|
687
|
-
export interface CDStage
|
673
|
+
export interface CDStage {
|
688
674
|
status: string;
|
689
675
|
name: string;
|
690
676
|
triggerType: 'AUTOMATIC' | 'MANUAL';
|
@@ -694,14 +680,14 @@ export interface CDStageConfigMapSecretNames {
|
|
694
680
|
configMaps: any[];
|
695
681
|
secrets: any[];
|
696
682
|
}
|
697
|
-
export interface PrePostDeployStageType extends MandatoryPluginBaseStateType
|
683
|
+
export interface PrePostDeployStageType extends MandatoryPluginBaseStateType {
|
698
684
|
isValid: boolean;
|
699
685
|
steps: TaskErrorObj[];
|
700
686
|
triggerType: string;
|
701
687
|
name: string;
|
702
688
|
status: string;
|
703
689
|
}
|
704
|
-
export interface CdPipeline
|
690
|
+
export interface CdPipeline {
|
705
691
|
id: number;
|
706
692
|
environmentId: number;
|
707
693
|
environmentName?: string;
|
@@ -733,7 +719,6 @@ export interface CdPipeline extends Partial<Pick<CommonNodeAttr, 'triggerBlocked
|
|
733
719
|
isProdEnv?: boolean;
|
734
720
|
isGitOpsRepoNotConfigured?: boolean;
|
735
721
|
isDeploymentBlocked?: boolean;
|
736
|
-
isTriggerBlocked?: boolean;
|
737
722
|
}
|
738
723
|
export interface ExternalCiConfig {
|
739
724
|
id: number;
|
@@ -1,2 +1,2 @@
|
|
1
1
|
import { DynamicDataTableRowProps } from './types';
|
2
|
-
export declare const DynamicDataTableRow: <K extends string>({ rows, headers, readOnly, isAdditionNotAllowed, isDeletionNotAllowed,
|
2
|
+
export declare const DynamicDataTableRow: <K extends string>({ rows, headers, readOnly, isAdditionNotAllowed, isDeletionNotAllowed, cellError, actionButtonConfig, onRowEdit, onRowDelete, leadingCellIcon, trailingCellIcon, buttonCellWrapComponent, }: DynamicDataTableRowProps<K>) => JSX.Element;
|
@@ -1,5 +1,6 @@
|
|
1
1
|
import { DetailedHTMLProps, ReactElement, ReactNode } from 'react';
|
2
2
|
import { ResizableTagTextAreaProps } from '../../../Common/CustomTagSelector';
|
3
|
+
import { InfoIconTippyProps } from '../../../Common/Types';
|
3
4
|
import { UseStateFiltersReturnType } from '../../../Common/Hooks';
|
4
5
|
import { SelectPickerOptionType, SelectPickerProps } from '../SelectPicker';
|
5
6
|
import { SelectTextAreaProps } from '../SelectTextArea';
|
@@ -61,6 +62,21 @@ export type DynamicDataTableRowType<K extends string, CustomStateType = Record<s
|
|
61
62
|
/** An optional boolean indicating if row deletion is disabled. */
|
62
63
|
disableDelete?: boolean;
|
63
64
|
};
|
65
|
+
/**
|
66
|
+
* Represents the validation state of a cell in a dynamic data table.
|
67
|
+
*/
|
68
|
+
export type DynamicDataTableCellValidationState = {
|
69
|
+
isValid: boolean;
|
70
|
+
errorMessages: string[];
|
71
|
+
};
|
72
|
+
/**
|
73
|
+
* Defines the structure of validation errors for a cell.
|
74
|
+
*
|
75
|
+
* `K` represents the column `key` of the cell (i.e., the column identifiers).
|
76
|
+
*/
|
77
|
+
export type DynamicDataTableCellErrorType<K extends string> = {
|
78
|
+
[rowId: string | number]: Partial<Record<K, DynamicDataTableCellValidationState>>;
|
79
|
+
};
|
64
80
|
type DynamicDataTableCellIcon<K extends string> = {
|
65
81
|
[key in K]?: (row: DynamicDataTableRowType<K>) => ReactNode;
|
66
82
|
};
|
@@ -135,23 +151,12 @@ export type DynamicDataTableProps<K extends string> = {
|
|
135
151
|
position?: 'start' | 'end';
|
136
152
|
};
|
137
153
|
/**
|
138
|
-
*
|
139
|
-
*/
|
140
|
-
showError?: boolean;
|
141
|
-
/**
|
142
|
-
* Function to validate the value of a table cell.
|
143
|
-
* @param value - The value to validate.
|
144
|
-
* @param key - The column key of the cell.
|
145
|
-
* @param row - The row containing the cell.
|
146
|
-
* @returns An object with a boolean indicating validity and an array of error messages.
|
154
|
+
* Validation state for a specific cell in a dynamic data table.
|
147
155
|
*/
|
148
|
-
|
149
|
-
isValid: boolean;
|
150
|
-
errorMessages: string[];
|
151
|
-
};
|
156
|
+
cellError?: DynamicDataTableCellErrorType<K>;
|
152
157
|
};
|
153
|
-
export interface DynamicDataTableHeaderProps<K extends string> extends Pick<DynamicDataTableProps<K>, 'headers' | 'rows' | 'headerComponent' | 'sortingConfig' | 'onRowAdd' | 'readOnly' | 'isAdditionNotAllowed' | 'isDeletionNotAllowed' | 'actionButtonConfig'> {
|
158
|
+
export interface DynamicDataTableHeaderProps<K extends string> extends Pick<DynamicDataTableProps<K>, 'headers' | 'rows' | 'headerComponent' | 'sortingConfig' | 'onRowAdd' | 'readOnly' | 'isAdditionNotAllowed' | 'isDeletionNotAllowed' | 'actionButtonConfig'>, Pick<InfoIconTippyProps, 'heading' | 'additionalContent'> {
|
154
159
|
}
|
155
|
-
export interface DynamicDataTableRowProps<K extends string> extends Pick<DynamicDataTableProps<K>, 'rows' | 'headers' | 'isAdditionNotAllowed' | 'isDeletionNotAllowed' | 'readOnly' | 'onRowEdit' | 'onRowDelete' | 'actionButtonConfig' | '
|
160
|
+
export interface DynamicDataTableRowProps<K extends string> extends Pick<DynamicDataTableProps<K>, 'rows' | 'headers' | 'isAdditionNotAllowed' | 'isDeletionNotAllowed' | 'readOnly' | 'onRowEdit' | 'onRowDelete' | 'actionButtonConfig' | 'cellError' | 'leadingCellIcon' | 'trailingCellIcon' | 'buttonCellWrapComponent'> {
|
156
161
|
}
|
157
162
|
export {};
|
package/dist/Shared/types.d.ts
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
import { Dayjs } from 'dayjs';
|
2
|
-
import { OptionType, CommonNodeAttr, ResponseType, UserApprovalConfigType, VulnerabilityType, DeploymentAppTypes, ServerErrors, SortingParams
|
2
|
+
import { OptionType, CommonNodeAttr, ResponseType, UserApprovalConfigType, VulnerabilityType, DeploymentAppTypes, ServerErrors, SortingParams } from '../Common';
|
3
3
|
import { KeyValueListType } from './Components';
|
4
4
|
import { EnvironmentTypeEnum, PatchOperationType } from './constants';
|
5
5
|
export declare enum EnvType {
|
@@ -739,22 +739,4 @@ export interface PreventOutsideFocusProps {
|
|
739
739
|
identifier: string;
|
740
740
|
preventFocus: boolean;
|
741
741
|
}
|
742
|
-
export interface PolicyBlockInfo {
|
743
|
-
isBlocked: boolean;
|
744
|
-
blockedBy: TriggerBlockType;
|
745
|
-
reason: string;
|
746
|
-
}
|
747
|
-
export interface PipelineStageBlockInfo {
|
748
|
-
node: PolicyBlockInfo;
|
749
|
-
pre: PolicyBlockInfo;
|
750
|
-
post: PolicyBlockInfo;
|
751
|
-
}
|
752
|
-
export interface PolicyConsequencesDTO {
|
753
|
-
cd: PipelineStageBlockInfo;
|
754
|
-
ci: PipelineStageBlockInfo;
|
755
|
-
}
|
756
|
-
export interface GetPolicyConsequencesProps {
|
757
|
-
appId: number;
|
758
|
-
envId: number;
|
759
|
-
}
|
760
742
|
export {};
|