@devtron-labs/devtron-fe-common-lib 0.1.12-beta-1 → 0.1.12-beta-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.
- package/dist/Common/Constants.d.ts +2 -0
- package/dist/Shared/Components/CICDHistory/Artifacts.d.ts +1 -1
- package/dist/Shared/Components/CICDHistory/DeploymentHistoryDiff/DeploymentHistoryDiffView.d.ts +1 -1
- package/dist/Shared/Components/CICDHistory/service.d.ts +0 -1
- package/dist/Shared/Components/CICDHistory/types.d.ts +1 -2
- package/dist/Shared/Components/KeyValueTable/KeyValueTable.component.d.ts +1 -1
- package/dist/Shared/Components/KeyValueTable/KeyValueTable.types.d.ts +1 -3
- package/dist/Shared/Helpers.d.ts +1 -0
- package/dist/Shared/Hooks/UseDownload/UseDownload.d.ts +8 -0
- package/dist/Shared/Hooks/UseDownload/index.d.ts +2 -0
- package/dist/Shared/Hooks/UseDownload/service.d.ts +1 -0
- package/dist/Shared/Hooks/UseDownload/types.d.ts +7 -0
- package/dist/Shared/Hooks/index.d.ts +1 -0
- package/dist/{cssMode-63ee5358.js → cssMode-cbedd8a5.js} +1 -1
- package/dist/{freemarker2-270b95d1.js → freemarker2-42e8940d.js} +1 -1
- package/dist/{handlebars-d48fa28f.js → handlebars-21c8b0f1.js} +1 -1
- package/dist/{html-a5839603.js → html-e6718bb8.js} +1 -1
- package/dist/{htmlMode-2c8872e7.js → htmlMode-b99bd6a6.js} +1 -1
- package/dist/{index-aab09e8b.js → index-004e0b53.js} +17428 -17402
- package/dist/index.js +75 -74
- package/dist/{javascript-ec66b63b.js → javascript-40bcb93e.js} +1 -1
- package/dist/{jsonMode-0465a589.js → jsonMode-22ab6975.js} +1 -1
- package/dist/{liquid-1b48c005.js → liquid-d1a76932.js} +1 -1
- package/dist/{mdx-fd2622c8.js → mdx-1b4f7156.js} +1 -1
- package/dist/{python-2625b208.js → python-74bc3a8b.js} +1 -1
- package/dist/{razor-b5f0adc9.js → razor-8ce699c5.js} +1 -1
- package/dist/{tsMode-7ba7207b.js → tsMode-0a290944.js} +1 -1
- package/dist/{typescript-8d8017c6.js → typescript-cd8838e3.js} +1 -1
- package/dist/{xml-1cc09e91.js → xml-15b56de5.js} +1 -1
- package/dist/{yaml-1185d077.js → yaml-8821186a.js} +1 -1
- package/package.json +1 -1
|
@@ -229,6 +229,8 @@ export declare enum ReactSelectInputAction {
|
|
|
229
229
|
export declare const ZERO_TIME_STRING = "0001-01-01T00:00:00Z";
|
|
230
230
|
export declare const EXCLUDED_FALSY_VALUES: readonly [any, any, "", number];
|
|
231
231
|
export declare const API_STATUS_CODES: {
|
|
232
|
+
OK: number;
|
|
233
|
+
NO_CONTENT: number;
|
|
232
234
|
BAD_REQUEST: number;
|
|
233
235
|
UNAUTHORIZED: number;
|
|
234
236
|
PERMISSION_DENIED: number;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ArtifactType, CIListItemType } from './types';
|
|
2
2
|
|
|
3
3
|
export declare const CIListItem: ({ type, userApprovalMetadata, triggeredBy, children, ciPipelineId, artifactId, imageComment, imageReleaseTags, appReleaseTagNames, tagsEditable, hideImageTaggingHardDelete, appliedFilters, isSuperAdmin, promotionApprovalMetadata, appliedFiltersTimestamp, selectedEnvironmentName, renderCIListHeader, }: CIListItemType) => JSX.Element;
|
|
4
|
-
declare const Artifacts: ({ status, artifact, blobStorageEnabled, isArtifactUploaded,
|
|
4
|
+
declare const Artifacts: ({ status, artifact, blobStorageEnabled, isArtifactUploaded, downloadArtifactUrl, ciPipelineId, artifactId, isJobView, isJobCI, imageComment, imageReleaseTags, type, appReleaseTagNames, tagsEditable, hideImageTaggingHardDelete, jobCIClass, renderCIListHeader, }: ArtifactType) => JSX.Element;
|
|
5
5
|
export default Artifacts;
|
package/dist/Shared/Components/CICDHistory/DeploymentHistoryDiff/DeploymentHistoryDiffView.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { DeploymentTemplateHistoryType } from '../types';
|
|
2
2
|
|
|
3
|
-
declare const DeploymentHistoryDiffView: ({ currentConfiguration, baseTemplateConfiguration, previousConfigAvailable, isUnpublished, isDeleteDraft, rootClassName,
|
|
3
|
+
declare const DeploymentHistoryDiffView: ({ currentConfiguration, baseTemplateConfiguration, previousConfigAvailable, isUnpublished, isDeleteDraft, rootClassName, }: DeploymentTemplateHistoryType) => JSX.Element;
|
|
4
4
|
export default DeploymentHistoryDiffView;
|
|
@@ -23,6 +23,5 @@ export declare const preparePipelineConfigData: (rawData: any) => Record<string,
|
|
|
23
23
|
export declare const prepareConfigMapAndSecretData: (rawData: any, type: string, historyData: DeploymentHistoryDetail, skipDecode?: boolean) => Record<string, DeploymentHistorySingleValue>;
|
|
24
24
|
export declare const prepareHistoryData: (rawData: any, historyComponent: string, skipDecode?: boolean) => DeploymentHistoryDetail;
|
|
25
25
|
export declare const getDeploymentDiffSelector: (pipelineId: string, historyComponent: any, baseConfigurationId: any, historyComponentName: any) => Promise<HistoryDiffSelectorRes>;
|
|
26
|
-
export declare function getCDBuildReport(appId: any, envId: any, pipelineId: any, workflowId: any): Promise<ResponseType<any>>;
|
|
27
26
|
export declare const getTriggerHistory: ({ appId, envId, pagination, releaseId, showCurrentReleaseDeployments, }: TriggerHistoryParamsType) => Promise<Pick<DeploymentHistoryResult, 'result'>>;
|
|
28
27
|
export declare const getModuleConfigured: (moduleName: string) => Promise<ModuleConfigResponse>;
|
|
@@ -368,7 +368,6 @@ export interface DeploymentTemplateHistoryType {
|
|
|
368
368
|
isUnpublished?: boolean;
|
|
369
369
|
isDeleteDraft?: boolean;
|
|
370
370
|
rootClassName?: string;
|
|
371
|
-
comparisonBodyClassName?: string;
|
|
372
371
|
}
|
|
373
372
|
export interface DeploymentHistoryDetailRes extends ResponseType {
|
|
374
373
|
result?: DeploymentHistoryDetail;
|
|
@@ -470,7 +469,7 @@ export interface ArtifactType {
|
|
|
470
469
|
artifact: string;
|
|
471
470
|
blobStorageEnabled: boolean;
|
|
472
471
|
isArtifactUploaded?: boolean;
|
|
473
|
-
|
|
472
|
+
downloadArtifactUrl?: string;
|
|
474
473
|
isJobView?: boolean;
|
|
475
474
|
isJobCI?: boolean;
|
|
476
475
|
type: HistoryComponentType;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { KeyValueTableProps } from './KeyValueTable.types';
|
|
2
2
|
|
|
3
|
-
export declare const KeyValueTable: <K extends string>({ config, maskValue, isSortable, headerComponent, onChange, onDelete, placeholder, isAdditionNotAllowed,
|
|
3
|
+
export declare const KeyValueTable: <K extends string>({ config, maskValue, isSortable, headerComponent, onChange, onDelete, placeholder, isAdditionNotAllowed, }: KeyValueTableProps<K>) => JSX.Element;
|
|
@@ -60,10 +60,8 @@ export interface KeyValueTableProps<K extends string> {
|
|
|
60
60
|
isSortable?: boolean;
|
|
61
61
|
/** An optional React node for a custom header component. */
|
|
62
62
|
headerComponent?: ReactNode;
|
|
63
|
-
/** When true, data addition field will not be shown
|
|
63
|
+
/** When true, data addition field will not be shown */
|
|
64
64
|
isAdditionNotAllowed?: boolean;
|
|
65
|
-
/** When true, data add or update is disabled. */
|
|
66
|
-
readOnly?: boolean;
|
|
67
65
|
/**
|
|
68
66
|
* An optional function to handle changes in the table rows.
|
|
69
67
|
* @param rowId - The id of the row that changed.
|
package/dist/Shared/Helpers.d.ts
CHANGED
|
@@ -32,4 +32,5 @@ export declare const renderValidInputButtonTippy: (children: ReactElement) => JS
|
|
|
32
32
|
export declare const processDeploymentStatusDetailsData: (data?: DeploymentStatusDetailsType) => DeploymentStatusDetailsBreakdownDataType;
|
|
33
33
|
export declare function aggregateNodes(nodes: any[], podMetadata: PodMetadatum[]): AggregatedNodes;
|
|
34
34
|
export declare const decode: (data: any, isEncoded?: boolean) => {};
|
|
35
|
+
export declare const getFileNameFromHeaders: (headers: Headers) => string;
|
|
35
36
|
export {};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { ServerErrors } from '../../../Common/ServerError';
|
|
2
|
+
import { HandleDownloadProps } from './types';
|
|
3
|
+
|
|
4
|
+
declare const useDownload: () => {
|
|
5
|
+
handleDownload: ({ downloadUrl, showFilePreparingToast, fileName, showSuccessfulToast, downloadSuccessToastContent, }: HandleDownloadProps) => Promise<Error | ServerErrors>;
|
|
6
|
+
isDownloading: boolean;
|
|
7
|
+
};
|
|
8
|
+
export default useDownload;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const getDownloadResponse: (downloadUrl: string) => Promise<Response>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
var Le = Object.defineProperty;
|
|
2
2
|
var je = (e, n, i) => n in e ? Le(e, n, { enumerable: !0, configurable: !0, writable: !0, value: i }) : e[n] = i;
|
|
3
3
|
var k = (e, n, i) => (je(e, typeof n != "symbol" ? n + "" : n, i), i);
|
|
4
|
-
import { m as Ne } from "./index-
|
|
4
|
+
import { m as Ne } from "./index-004e0b53.js";
|
|
5
5
|
/*!-----------------------------------------------------------------------------
|
|
6
6
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
7
7
|
* Version: 0.44.0(3e047efd345ff102c8c61b5398fb30845aaac166)
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { m as F } from "./index-
|
|
1
|
+
import { m as F } from "./index-004e0b53.js";
|
|
2
2
|
/*!-----------------------------------------------------------------------------
|
|
3
3
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
4
4
|
* Version: 0.44.0(3e047efd345ff102c8c61b5398fb30845aaac166)
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { m as i } from "./index-
|
|
1
|
+
import { m as i } from "./index-004e0b53.js";
|
|
2
2
|
/*!-----------------------------------------------------------------------------
|
|
3
3
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
4
4
|
* Version: 0.44.0(3e047efd345ff102c8c61b5398fb30845aaac166)
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { m as d } from "./index-
|
|
1
|
+
import { m as d } from "./index-004e0b53.js";
|
|
2
2
|
/*!-----------------------------------------------------------------------------
|
|
3
3
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
4
4
|
* Version: 0.44.0(3e047efd345ff102c8c61b5398fb30845aaac166)
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
var $e = Object.defineProperty;
|
|
2
2
|
var qe = (e, n, i) => n in e ? $e(e, n, { enumerable: !0, configurable: !0, writable: !0, value: i }) : e[n] = i;
|
|
3
3
|
var k = (e, n, i) => (qe(e, typeof n != "symbol" ? n + "" : n, i), i);
|
|
4
|
-
import { m as Qe } from "./index-
|
|
4
|
+
import { m as Qe } from "./index-004e0b53.js";
|
|
5
5
|
/*!-----------------------------------------------------------------------------
|
|
6
6
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
7
7
|
* Version: 0.44.0(3e047efd345ff102c8c61b5398fb30845aaac166)
|