@devtron-labs/devtron-fe-common-lib 0.1.9-beta-2 → 0.1.9-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.
Files changed (36) hide show
  1. package/dist/Common/Constants.d.ts +0 -2
  2. package/dist/Common/Helper.d.ts +4 -0
  3. package/dist/Common/RJSF/templates/ArrayFieldItemTemplate.d.ts +1 -1
  4. package/dist/Common/RJSF/templates/ObjectFieldTemplate.d.ts +2 -1
  5. package/dist/Common/RJSF/types.d.ts +12 -0
  6. package/dist/Common/RJSF/utils.d.ts +2 -2
  7. package/dist/Common/Tippy.d.ts +4 -0
  8. package/dist/Common/index.d.ts +1 -0
  9. package/dist/Shared/Components/CICDHistory/Artifacts.d.ts +1 -1
  10. package/dist/Shared/Components/CICDHistory/service.d.ts +1 -0
  11. package/dist/Shared/Components/CICDHistory/types.d.ts +1 -1
  12. package/dist/Shared/Helpers.d.ts +0 -1
  13. package/dist/Shared/Hooks/index.d.ts +0 -1
  14. package/dist/assets/index.css +1 -1
  15. package/dist/{cssMode-3d665e88.js → cssMode-9212baf7.js} +1 -1
  16. package/dist/{freemarker2-7a9e3b85.js → freemarker2-2585719b.js} +1 -1
  17. package/dist/{handlebars-4b13c070.js → handlebars-c3bc85d2.js} +1 -1
  18. package/dist/{html-57d3acb4.js → html-3befa7f0.js} +1 -1
  19. package/dist/{htmlMode-cb01f0dc.js → htmlMode-bf169d0e.js} +1 -1
  20. package/dist/{index-9f2ad4b1.js → index-d5f5b61c.js} +31869 -29817
  21. package/dist/index.js +241 -238
  22. package/dist/{javascript-0fc51e82.js → javascript-00fa166f.js} +1 -1
  23. package/dist/{jsonMode-87618d80.js → jsonMode-2b78bcb1.js} +1 -1
  24. package/dist/{liquid-e06355fc.js → liquid-f5e83946.js} +1 -1
  25. package/dist/{mdx-1446a40a.js → mdx-e96491ea.js} +1 -1
  26. package/dist/{python-aa79ea6c.js → python-44c2708a.js} +1 -1
  27. package/dist/{razor-a70b2222.js → razor-0bb44c58.js} +1 -1
  28. package/dist/{tsMode-7296dd37.js → tsMode-5219a826.js} +1 -1
  29. package/dist/{typescript-c8ad9f00.js → typescript-8f1bf551.js} +1 -1
  30. package/dist/{xml-4c0349ec.js → xml-ff475bc5.js} +1 -1
  31. package/dist/{yaml-27b6c9e5.js → yaml-6308476e.js} +1 -1
  32. package/package.json +3 -2
  33. package/dist/Shared/Hooks/UseDownload/UseDownload.d.ts +0 -8
  34. package/dist/Shared/Hooks/UseDownload/index.d.ts +0 -2
  35. package/dist/Shared/Hooks/UseDownload/service.d.ts +0 -1
  36. package/dist/Shared/Hooks/UseDownload/types.d.ts +0 -7
@@ -228,8 +228,6 @@ export declare enum ReactSelectInputAction {
228
228
  export declare const ZERO_TIME_STRING = "0001-01-01T00:00:00Z";
229
229
  export declare const EXCLUDED_FALSY_VALUES: readonly [any, any, "", number];
230
230
  export declare const API_STATUS_CODES: {
231
- OK: number;
232
- NO_CONTENT: number;
233
231
  BAD_REQUEST: number;
234
232
  UNAUTHORIZED: number;
235
233
  PERMISSION_DENIED: number;
@@ -1,4 +1,5 @@
1
1
  import { default as React, SyntheticEvent } from 'react';
2
+ import { JSONPathOptions } from 'jsonpath-plus';
2
3
  import { AsyncOptions, UseSearchString } from './Types';
3
4
  import { scrollableInterface } from '../Shared';
4
5
 
@@ -94,6 +95,9 @@ export declare const getRegexMatchPositions: (string: string, regex: RegExp) =>
94
95
  * @returns set of substrings
95
96
  */
96
97
  export declare const powerSetOfSubstringsFromStart: (strings: string[], regex: RegExp) => string[];
98
+ export declare const convertJSONPointerToJSONPath: (pointer: string) => string;
99
+ export declare const flatMapOfJSONPaths: (paths: string[], json: object, resultType?: JSONPathOptions['resultType']) => string[];
100
+ export declare const applyCompareDiffOnUneditedDocument: (uneditedDocument: object, editedDocument: object) => object;
97
101
  /**
98
102
  * Returns a debounced variant of the function
99
103
  */
@@ -1,3 +1,3 @@
1
1
  import { ArrayFieldTemplateItemType } from '@rjsf/utils';
2
2
 
3
- export declare const ArrayFieldItemTemplate: ({ children, className, disabled, hasToolbar, hasRemove, index, onDropIndexClick, readonly, registry, uiSchema, }: ArrayFieldTemplateItemType) => JSX.Element;
3
+ export declare const ArrayFieldItemTemplate: ({ children, disabled, hasToolbar, hasRemove, index, onDropIndexClick, readonly, registry, uiSchema, }: ArrayFieldTemplateItemType) => JSX.Element;
@@ -1,3 +1,4 @@
1
1
  import { ObjectFieldTemplateProps } from '@rjsf/utils';
2
+ import { RJSFFormSchema } from '../types';
2
3
 
3
- export declare const ObjectFieldTemplate: (props: ObjectFieldTemplateProps) => JSX.Element;
4
+ export declare const ObjectFieldTemplate: (props: ObjectFieldTemplateProps<any, RJSFFormSchema, any>) => JSX.Element;
@@ -1,4 +1,16 @@
1
1
  import { ComponentProps } from 'react';
2
2
  import { default as RJSFForm } from '@rjsf/core';
3
+ import { StrictRJSFSchema } from '@rjsf/utils';
3
4
 
4
5
  export type FormProps = Omit<ComponentProps<typeof RJSFForm>, 'validator'>;
6
+ interface Hidden {
7
+ condition: boolean;
8
+ match: string;
9
+ }
10
+ export interface RJSFFormSchema extends StrictRJSFSchema {
11
+ properties: {
12
+ [key: string]: RJSFFormSchema;
13
+ };
14
+ hidden: Hidden;
15
+ }
16
+ export {};
@@ -1,5 +1,5 @@
1
1
  import { TranslatableString } from '@rjsf/utils';
2
- import { default as Tippy } from '@tippyjs/react';
2
+ import { default as Tippy } from '../Tippy';
3
3
 
4
4
  /**
5
5
  * Override for the TranslatableString from RJSF
@@ -25,4 +25,4 @@ export declare const getRedirectionProps: (url: string) => import('react').Ancho
25
25
  * Infers the type for json schema from value type
26
26
  */
27
27
  export declare const getInferredTypeFromValueType: (value: any) => "string" | "number" | "boolean" | "object" | "array" | "null";
28
- export declare const getTippyWrapperWithContent: (content: any, placement?: React.ComponentProps<typeof Tippy>['placement']) => (children: any) => JSX.Element;
28
+ export declare const getTippyWrapperWithContent: (content: any, placement?: React.ComponentProps<typeof Tippy>['placement'], truncateWidth?: number) => (children: any) => JSX.Element;
@@ -0,0 +1,4 @@
1
+ import { TippyProps as TippyJSProps } from '@tippyjs/react';
2
+
3
+ declare const Tippy: ({ truncateWidth, children, ...rest }: TippyJSProps & Record<'truncateWidth', number>) => JSX.Element;
4
+ export default Tippy;
@@ -54,3 +54,4 @@ export * from './GenericDescription';
54
54
  export * from './SegmentedBarChart';
55
55
  export * from './CodeEditor';
56
56
  export * from './AppStatus';
57
+ export { default as Tippy } from './Tippy';
@@ -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, downloadArtifactUrl, ciPipelineId, artifactId, isJobView, isJobCI, imageComment, imageReleaseTags, type, appReleaseTagNames, tagsEditable, hideImageTaggingHardDelete, jobCIClass, renderCIListHeader, }: ArtifactType) => JSX.Element;
4
+ declare const Artifacts: ({ status, artifact, blobStorageEnabled, isArtifactUploaded, getArtifactPromise, ciPipelineId, artifactId, isJobView, isJobCI, imageComment, imageReleaseTags, type, appReleaseTagNames, tagsEditable, hideImageTaggingHardDelete, jobCIClass, renderCIListHeader, }: ArtifactType) => JSX.Element;
5
5
  export default Artifacts;
@@ -23,5 +23,6 @@ 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>>;
26
27
  export declare const getTriggerHistory: ({ appId, envId, pagination, releaseId, showCurrentReleaseDeployments, }: TriggerHistoryParamsType) => Promise<Pick<DeploymentHistoryResult, 'result'>>;
27
28
  export declare const getModuleConfigured: (moduleName: string) => Promise<ModuleConfigResponse>;
@@ -469,7 +469,7 @@ export interface ArtifactType {
469
469
  artifact: string;
470
470
  blobStorageEnabled: boolean;
471
471
  isArtifactUploaded?: boolean;
472
- downloadArtifactUrl?: string;
472
+ getArtifactPromise?: () => Promise<any>;
473
473
  isJobView?: boolean;
474
474
  isJobCI?: boolean;
475
475
  type: HistoryComponentType;
@@ -32,5 +32,4 @@ 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;
36
35
  export {};
@@ -1,2 +1 @@
1
1
  export * from './UsePrompt';
2
- export * from './UseDownload';