@devtron-labs/devtron-fe-common-lib 0.2.1 → 0.2.2-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.
Files changed (32) hide show
  1. package/dist/Common/RJSF/constants.d.ts +0 -4
  2. package/dist/Common/RJSF/utils.d.ts +0 -2
  3. package/dist/Common/SearchBar/types.d.ts +1 -1
  4. package/dist/Common/SortableTableHeaderCell/SortableTableHeaderCell.d.ts +1 -1
  5. package/dist/Common/SortableTableHeaderCell/types.d.ts +5 -0
  6. package/dist/Common/Tooltip/Tooltip.d.ts +4 -0
  7. package/dist/Common/Tooltip/index.d.ts +1 -0
  8. package/dist/Common/Tooltip/types.d.ts +33 -0
  9. package/dist/Common/index.d.ts +1 -1
  10. package/dist/Pages/CDPipeline/index.d.ts +1 -0
  11. package/dist/Pages/CDPipeline/types.d.ts +84 -0
  12. package/dist/Pages/index.d.ts +1 -0
  13. package/dist/Shared/Components/CICDHistory/types.d.ts +1 -1
  14. package/dist/{cssMode-ff7b28ed.js → cssMode-784b426d.js} +1 -1
  15. package/dist/{freemarker2-d7cb7ecb.js → freemarker2-30b71b0b.js} +1 -1
  16. package/dist/{handlebars-a864e9e7.js → handlebars-679ff64f.js} +1 -1
  17. package/dist/{html-46ef1a3c.js → html-fb589f7b.js} +1 -1
  18. package/dist/{htmlMode-305d8331.js → htmlMode-0a3d36ae.js} +1 -1
  19. package/dist/{index-3b5b3392.js → index-3953e517.js} +11735 -11738
  20. package/dist/index.js +249 -248
  21. package/dist/{javascript-f981d833.js → javascript-f12f4be1.js} +1 -1
  22. package/dist/{jsonMode-88428091.js → jsonMode-6bff94b2.js} +1 -1
  23. package/dist/{liquid-330a3d26.js → liquid-269872ca.js} +1 -1
  24. package/dist/{mdx-916cf8dd.js → mdx-e6f539cd.js} +1 -1
  25. package/dist/{python-72b31467.js → python-f1f3764d.js} +1 -1
  26. package/dist/{razor-a9b6ed22.js → razor-08dbba6a.js} +1 -1
  27. package/dist/{tsMode-3b90c215.js → tsMode-2d68acb6.js} +1 -1
  28. package/dist/{typescript-1c340db6.js → typescript-2f6e0956.js} +1 -1
  29. package/dist/{xml-1dbe56e6.js → xml-376b21d1.js} +1 -1
  30. package/dist/{yaml-505221d9.js → yaml-5fb2e0b2.js} +1 -1
  31. package/package.json +1 -1
  32. package/dist/Common/Tippy.d.ts +0 -4
@@ -4,7 +4,3 @@ export declare const PLACEHOLDERS: {
4
4
  OBJECT_KEY: string;
5
5
  };
6
6
  export declare const DEFAULT_FIELD_TITLE = "Key not available";
7
- export declare const ADD_BUTTON_WIDTH: {
8
- MAX_WIDTH_VALUE: number;
9
- MAX_WIDTH_CLASSNAME: string;
10
- };
@@ -1,5 +1,4 @@
1
1
  import { TranslatableString } from '@rjsf/utils';
2
- import { default as Tippy } from '../Tippy';
3
2
 
4
3
  /**
5
4
  * Override for the TranslatableString from RJSF
@@ -25,4 +24,3 @@ export declare const getRedirectionProps: (url: string) => import('react').Ancho
25
24
  * Infers the type for json schema from value type
26
25
  */
27
26
  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'], truncateWidth?: number) => (children: any) => JSX.Element;
@@ -18,7 +18,7 @@ export interface SearchBarProps {
18
18
  /**
19
19
  * Input props for the search input
20
20
  */
21
- inputProps?: React.InputHTMLAttributes<HTMLInputElement>;
21
+ inputProps?: React.InputHTMLAttributes<HTMLInputElement> & Partial<Record<'ref', React.MutableRefObject<HTMLInputElement>>>;
22
22
  /**
23
23
  * Class name for the container; can be used for handling width
24
24
  */
@@ -14,5 +14,5 @@ import { SortableTableHeaderCellProps } from './types';
14
14
  * />
15
15
  * ```
16
16
  */
17
- declare const SortableTableHeaderCell: ({ isSorted, triggerSorting, sortOrder, title, disabled, isSortable, }: SortableTableHeaderCellProps) => JSX.Element;
17
+ declare const SortableTableHeaderCell: ({ isSorted, triggerSorting, sortOrder, title, disabled, isSortable, showTippyOnTruncate, }: SortableTableHeaderCellProps) => JSX.Element;
18
18
  export default SortableTableHeaderCell;
@@ -28,4 +28,9 @@ export interface SortableTableHeaderCellProps {
28
28
  * @default true
29
29
  */
30
30
  isSortable?: boolean;
31
+ /**
32
+ * If true, the tippy is shown on Sortable header if text is truncated
33
+ * @default false
34
+ */
35
+ showTippyOnTruncate?: boolean;
31
36
  }
@@ -0,0 +1,4 @@
1
+ import { TooltipProps } from './types';
2
+
3
+ declare const Tooltip: ({ alwaysShowTippyOnHover, showOnTruncate, wordBreak, children: child, ...rest }: TooltipProps) => JSX.Element;
4
+ export default Tooltip;
@@ -0,0 +1 @@
1
+ export { default as Tooltip } from './Tooltip';
@@ -0,0 +1,33 @@
1
+ import { TippyProps } from '@tippyjs/react';
2
+
3
+ type BaseTooltipProps = {
4
+ /**
5
+ * If true, show tippy on truncate
6
+ * @default true
7
+ */
8
+ showOnTruncate?: boolean;
9
+ /**
10
+ * If showOnTruncate is defined this prop doesn't work
11
+ * @default false
12
+ */
13
+ alwaysShowTippyOnHover?: never;
14
+ } | {
15
+ /**
16
+ * If alwaysShowTippyOnHover is defined this prop doesn't work
17
+ * @default false
18
+ */
19
+ showOnTruncate?: never;
20
+ /**
21
+ * If true, wrap with tippy irrespective of other options
22
+ * @default false
23
+ */
24
+ alwaysShowTippyOnHover?: boolean;
25
+ };
26
+ export type TooltipProps = BaseTooltipProps & TippyProps & {
27
+ /**
28
+ * If true, apply dc__word-break-all
29
+ * @default true
30
+ */
31
+ wordBreak?: boolean;
32
+ };
33
+ export {};
@@ -54,4 +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';
57
+ export * from './Tooltip';
@@ -0,0 +1 @@
1
+ export * from './types';
@@ -0,0 +1,84 @@
1
+ import { BuildStageType, FormType } from '../../Common/CIPipeline.Types';
2
+ import { DeploymentAppTypes } from '../../Common/Types';
3
+ import { DeploymentStrategy } from '../../Shared/Components';
4
+ import { EnvListMinDTO } from '../../Shared/types';
5
+
6
+ interface ConfigSecretType {
7
+ label: string;
8
+ value: string;
9
+ type: string;
10
+ }
11
+ export interface Environment extends Pick<EnvListMinDTO, 'id' | 'active' | 'namespace' | 'isClusterCdActive'>, Partial<Pick<EnvListMinDTO, 'isVirtualEnvironment' | 'allowedDeploymentTypes' | 'description' | 'isDigestEnforcedForEnv'>> {
12
+ name: string;
13
+ clusterName: string;
14
+ clusterId: string;
15
+ }
16
+ export interface PipelineBuildStageType extends BuildStageType {
17
+ triggerType?: string;
18
+ }
19
+ export interface SavedDeploymentStrategy extends DeploymentStrategy {
20
+ isCollapsed?: boolean;
21
+ defaultConfig?: any;
22
+ yamlStr?: any;
23
+ jsonStr?: any;
24
+ }
25
+ export interface CustomTagType {
26
+ tagPattern: string;
27
+ counterX: string;
28
+ }
29
+ export declare enum ReleaseMode {
30
+ NEW_DEPLOYMENT = "create",
31
+ MIGRATE_HELM = "link"
32
+ }
33
+ export interface CDFormType {
34
+ name: string;
35
+ ciPipelineId: number;
36
+ environmentId: number;
37
+ environmentName: string;
38
+ namespace: string;
39
+ environments: Environment[];
40
+ deploymentAppType: string;
41
+ deploymentAppName?: string;
42
+ releaseMode: ReleaseMode;
43
+ triggerType: string;
44
+ preBuildStage?: PipelineBuildStageType;
45
+ postBuildStage?: PipelineBuildStageType;
46
+ strategies: DeploymentStrategy[];
47
+ savedStrategies: SavedDeploymentStrategy[];
48
+ preStageConfigMapSecretNames: {
49
+ configMaps: ConfigSecretType[];
50
+ secrets: ConfigSecretType[];
51
+ };
52
+ postStageConfigMapSecretNames: {
53
+ configMaps: ConfigSecretType[];
54
+ secrets: ConfigSecretType[];
55
+ };
56
+ requiredApprovals: string;
57
+ userApprovalConfig?: {
58
+ requiredCount: number;
59
+ };
60
+ isClusterCdActive: boolean;
61
+ deploymentAppCreated: boolean;
62
+ clusterId: string;
63
+ clusterName: string;
64
+ runPreStageInEnv: boolean;
65
+ runPostStageInEnv: boolean;
66
+ allowedDeploymentTypes: DeploymentAppTypes[];
67
+ containerRegistryName: string;
68
+ repoName: string;
69
+ selectedRegistry: any;
70
+ generatedHelmPushAction: string;
71
+ }
72
+ export interface PipelineFormType extends Partial<FormType>, Partial<CDFormType> {
73
+ name: string;
74
+ triggerType: string;
75
+ preBuildStage?: PipelineBuildStageType;
76
+ postBuildStage?: PipelineBuildStageType;
77
+ defaultTag?: string[];
78
+ customTag?: CustomTagType;
79
+ enableCustomTag?: boolean;
80
+ customTagStage?: string;
81
+ isDigestEnforcedForPipeline?: boolean;
82
+ isDigestEnforcedForEnv?: boolean;
83
+ }
84
+ export {};
@@ -1,2 +1,3 @@
1
1
  export * from './GlobalConfigurations';
2
2
  export * from './ResourceBrowser';
3
+ export * from './CDPipeline';
@@ -522,7 +522,7 @@ export interface DeploymentHistory {
522
522
  runSource?: RunSourceType;
523
523
  }
524
524
  type DeploymentStrategyType = 'CANARY' | 'ROLLING' | 'RECREATE' | 'BLUE_GREEN';
525
- interface DeploymentStrategy {
525
+ export interface DeploymentStrategy {
526
526
  deploymentTemplate: DeploymentStrategyType;
527
527
  config: any;
528
528
  default: boolean;
@@ -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-3b5b3392.js";
4
+ import { m as Ne } from "./index-3953e517.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-3b5b3392.js";
1
+ import { m as F } from "./index-3953e517.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-3b5b3392.js";
1
+ import { m as i } from "./index-3953e517.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-3b5b3392.js";
1
+ import { m as d } from "./index-3953e517.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-3b5b3392.js";
4
+ import { m as Qe } from "./index-3953e517.js";
5
5
  /*!-----------------------------------------------------------------------------
6
6
  * Copyright (c) Microsoft Corporation. All rights reserved.
7
7
  * Version: 0.44.0(3e047efd345ff102c8c61b5398fb30845aaac166)