@devtron-labs/devtron-fe-common-lib 1.9.1-beta-2 → 1.9.1-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/{@code-editor-CN0hf86o.js → @code-editor-BcdvXLUs.js} +6905 -6620
- package/dist/{@common-rjsf-0ODT_4Sz.js → @common-rjsf-Dtdmx6jk.js} +2 -2
- package/dist/{@framer-motion-DHFT2Onf.js → @framer-motion-B1qa0yMz.js} +114 -114
- package/dist/{@react-dates-H99Kf-Gu.js → @react-dates-B1uoPc_Q.js} +1 -1
- package/dist/{@react-select-DaoN_kK0.js → @react-select-CIub7ipj.js} +1 -1
- package/dist/{@react-virtualized-sticky-tree-BSYoHRT0.js → @react-virtualized-sticky-tree-CzHL2GVC.js} +1 -1
- package/dist/{@vendor-CmKnC58P.js → @vendor-ihgcJgmv.js} +30618 -24451
- package/dist/Common/Constants.d.ts +94 -88
- package/dist/Common/GenericDescription/utils.d.ts +1 -0
- package/dist/Common/Tooltip/constants.d.ts +1 -0
- package/dist/Common/Types.d.ts +4 -0
- package/dist/Common/index.d.ts +0 -1
- package/dist/Pages/Applications/DevtronApps/Details/AppConfigurations/types.d.ts +38 -0
- package/dist/Shared/Components/FloatingVariablesSuggestions/FloatingVariablesSuggestions.d.ts +1 -1
- package/dist/Shared/Components/FloatingVariablesSuggestions/service.d.ts +3 -1
- package/dist/Shared/Components/FloatingVariablesSuggestions/types.d.ts +2 -1
- package/dist/Shared/Components/GenericInfoCard/GenericInfoCard.component.d.ts +3 -0
- package/dist/Shared/Components/GenericInfoCard/index.d.ts +2 -0
- package/dist/Shared/Components/GenericInfoCard/types.d.ts +26 -0
- package/dist/Shared/Components/GenericInfoCard/utils.d.ts +2 -0
- package/dist/Shared/Components/GitProviderIcon/GitProviderIcon.d.ts +1 -1
- package/dist/Shared/Components/GitProviderIcon/types.d.ts +8 -3
- package/dist/Shared/Components/GitProviderIcon/utils.d.ts +2 -0
- package/dist/Shared/Components/GraphVisualizer/GraphVisualizer.d.ts +2 -0
- package/dist/Shared/Components/GraphVisualizer/components/BaseNode.d.ts +2 -0
- package/dist/Shared/Components/GraphVisualizer/components/DropdownNode.d.ts +3 -0
- package/dist/Shared/Components/GraphVisualizer/components/IconNode.d.ts +3 -0
- package/dist/Shared/Components/GraphVisualizer/components/TextNode.d.ts +3 -0
- package/dist/Shared/Components/GraphVisualizer/components/index.d.ts +4 -0
- package/dist/Shared/Components/GraphVisualizer/components/types.d.ts +19 -0
- package/dist/Shared/Components/GraphVisualizer/constants.d.ts +15 -0
- package/dist/Shared/Components/GraphVisualizer/index.d.ts +2 -0
- package/dist/Shared/Components/GraphVisualizer/types.d.ts +12 -0
- package/dist/Shared/Components/GraphVisualizer/utils.d.ts +17 -0
- package/dist/Shared/Components/Icon/Icon.d.ts +3 -2
- package/dist/Shared/Components/ModalSidebarPanel/types.d.ts +1 -1
- package/dist/Shared/Components/ReactSelect/constants.d.ts +7 -15
- package/dist/Shared/Components/SelectPicker/type.d.ts +1 -1
- package/dist/Shared/Components/WorkflowOptionsModal/WorkflowOptionsModal.d.ts +1 -1
- package/dist/Shared/Components/WorkflowOptionsModal/types.d.ts +2 -1
- package/dist/Shared/Components/index.d.ts +2 -0
- package/dist/Shared/Services/app.service.d.ts +4 -1
- package/dist/Shared/Services/common.service.d.ts +2 -1
- package/dist/Shared/Services/index.d.ts +1 -0
- package/dist/Shared/Services/template.service.d.ts +2 -0
- package/dist/Shared/constants.d.ts +0 -10
- package/dist/Shared/validations.d.ts +1 -0
- package/dist/assets/@code-editor.css +1 -1
- package/dist/assets/@vendor.css +1 -1
- package/dist/assets/ic-card-stack.efd37c91.svg +3 -0
- package/dist/assets/ic-copy.416d85f3.svg +3 -0
- package/dist/assets/ic-new.2c179139.svg +3 -0
- package/dist/index.d.ts +6 -0
- package/dist/index.js +804 -800
- package/package.json +2 -1
- package/dist/Common/DeleteCINodeButton/DeleteCINodeButton.d.ts +0 -2
- package/dist/Common/DeleteCINodeButton/index.d.ts +0 -3
- package/dist/Common/DeleteCINodeButton/types.d.ts +0 -17
- package/dist/Common/DeleteCINodeButton/utils.d.ts +0 -2
- package/dist/assets/ic-add.18a93616.svg +0 -19
- package/dist/assets/ic-delete.a6e8d3ad.svg +0 -19
@@ -30,96 +30,102 @@ export declare const PATTERNS: {
|
|
30
30
|
ALPHANUMERIC_WITH_SPECIAL_CHAR_AND_SLASH: RegExp;
|
31
31
|
};
|
32
32
|
export declare const URLS: {
|
33
|
-
LOGIN_SSO:
|
34
|
-
PERMISSION_GROUPS:
|
35
|
-
APP:
|
36
|
-
APP_LIST:
|
37
|
-
CHARTS_DISCOVER:
|
38
|
-
JOB:
|
39
|
-
CREATE_JOB:
|
40
|
-
GETTING_STARTED:
|
41
|
-
STACK_MANAGER_ABOUT:
|
42
|
-
APP_LIST_HELM:
|
43
|
-
APP_CI_DETAILS:
|
44
|
-
LOGS:
|
45
|
-
CREATE:
|
46
|
-
RELEASES:
|
47
|
-
DEVTRON_CHARTS:
|
48
|
-
APP_DEPLOYMNENT_HISTORY:
|
49
|
-
APP_DETAILS:
|
50
|
-
APP_DETAILS_K8:
|
51
|
-
DETAILS:
|
52
|
-
CD_DETAILS:
|
53
|
-
APP_TRIGGER:
|
54
|
-
GLOBAL_CONFIG_DOCKER:
|
55
|
-
DEPLOYMENT_HISTORY_CONFIGURATIONS:
|
56
|
-
GLOBAL_CONFIG_SCOPED_VARIABLES:
|
57
|
-
GLOBAL_CONFIG_DEPLOYMENT_CHARTS_LIST:
|
58
|
-
GLOBAL_CONFIG_DEPLOYMENT_CHARTS_UPLOAD_CHART:
|
59
|
-
NETWORK_STATUS_INTERFACE:
|
60
|
-
RESOURCE_BROWSER:
|
61
|
-
COMPARE_CLUSTERS:
|
62
|
-
|
33
|
+
readonly LOGIN_SSO: "/login/sso";
|
34
|
+
readonly PERMISSION_GROUPS: "/global-config/auth/groups";
|
35
|
+
readonly APP: "/app";
|
36
|
+
readonly APP_LIST: "list";
|
37
|
+
readonly CHARTS_DISCOVER: "/chart-store/discover";
|
38
|
+
readonly JOB: "/job";
|
39
|
+
readonly CREATE_JOB: "create-job";
|
40
|
+
readonly GETTING_STARTED: "getting-started";
|
41
|
+
readonly STACK_MANAGER_ABOUT: "/stack-manager/about";
|
42
|
+
readonly APP_LIST_HELM: "h";
|
43
|
+
readonly APP_CI_DETAILS: "ci-details";
|
44
|
+
readonly LOGS: "Logs";
|
45
|
+
readonly CREATE: "/create";
|
46
|
+
readonly RELEASES: "/releases";
|
47
|
+
readonly DEVTRON_CHARTS: "dc";
|
48
|
+
readonly APP_DEPLOYMNENT_HISTORY: "deployments";
|
49
|
+
readonly APP_DETAILS: "details";
|
50
|
+
readonly APP_DETAILS_K8: "k8s-resources";
|
51
|
+
readonly DETAILS: "/details";
|
52
|
+
readonly CD_DETAILS: "cd-details";
|
53
|
+
readonly APP_TRIGGER: "trigger";
|
54
|
+
readonly GLOBAL_CONFIG_DOCKER: "/global-config/docker";
|
55
|
+
readonly DEPLOYMENT_HISTORY_CONFIGURATIONS: "/configuration";
|
56
|
+
readonly GLOBAL_CONFIG_SCOPED_VARIABLES: "/global-config/scoped-variables";
|
57
|
+
readonly GLOBAL_CONFIG_DEPLOYMENT_CHARTS_LIST: "/global-config/deployment-charts";
|
58
|
+
readonly GLOBAL_CONFIG_DEPLOYMENT_CHARTS_UPLOAD_CHART: "/global-config/deployment-charts/upload-chart";
|
59
|
+
readonly NETWORK_STATUS_INTERFACE: "/network-status-interface";
|
60
|
+
readonly RESOURCE_BROWSER: "/resource-browser";
|
61
|
+
readonly COMPARE_CLUSTERS: "/compare-clusters";
|
62
|
+
readonly APP_CONFIG: "edit";
|
63
|
+
readonly GLOBAL_CONFIG: "/global-config";
|
64
|
+
readonly CONFIG_DRIFT: "config-drift";
|
65
|
+
readonly GLOBAL_CONFIG_TEMPLATES_DEVTRON_APP: "/global-config/templates/devtron-apps";
|
66
|
+
readonly GLOBAL_CONFIG_TEMPLATES_DEVTRON_APP_CREATE: "/global-config/templates/devtron-apps/create";
|
67
|
+
readonly GLOBAL_CONFIG_TEMPLATES_DEVTRON_APP_DETAIL: "/global-config/templates/devtron-apps/detail/:appId";
|
63
68
|
};
|
64
69
|
export declare const ROUTES: {
|
65
|
-
APP:
|
66
|
-
APP_ARTIFACT_PROMOTE_MATERIAL:
|
67
|
-
APP_TEMPLATE_DATA:
|
68
|
-
PROJECT_LIST_MIN:
|
69
|
-
USER_CHECK_ROLE:
|
70
|
-
IMAGE_TAGGING:
|
71
|
-
CREATE_RESOURCE:
|
72
|
-
K8S_RESOURCE_CREATE:
|
73
|
-
CI_CONFIG_GET:
|
74
|
-
CD_MATERIAL_GET:
|
75
|
-
DEPLOYMENT_TEMPLATE_LIST:
|
76
|
-
INFRA_CONFIG_PROFILE:
|
77
|
-
SCAN_RESULT:
|
78
|
-
NOTIFIER:
|
79
|
-
APP_LIST:
|
80
|
-
TELEMETRY_EVENT:
|
81
|
-
SERVER_INFO_API:
|
82
|
-
ATTRIBUTES_USER:
|
83
|
-
GET:
|
84
|
-
UPDATE:
|
85
|
-
ENVIRONMENT_LIST_MIN:
|
86
|
-
CLUSTER:
|
87
|
-
API_RESOURCE:
|
88
|
-
GVK:
|
89
|
-
NAMESPACE:
|
90
|
-
CLUSTER_NOTE:
|
91
|
-
APPLICATION_NOTE:
|
92
|
-
GIT_HOST_EVENT:
|
93
|
-
HELM_DEPLOYMENT_STATUS_TIMELINE_INSTALLED_APP:
|
94
|
-
DEPLOYMENT_STATUS:
|
95
|
-
MANUAL_SYNC:
|
96
|
-
CD_CONFIG:
|
97
|
-
CONFIG_CD_PIPELINE:
|
98
|
-
MODULE_CONFIGURED:
|
99
|
-
RESOURCE_HISTORY_DEPLOYMENT:
|
100
|
-
ATTRIBUTES:
|
101
|
-
ATTRIBUTES_CREATE:
|
102
|
-
ATTRIBUTES_UPDATE:
|
103
|
-
APP_LIST_MIN:
|
104
|
-
CLUSTER_LIST_MIN:
|
105
|
-
CLUSTER_LIST_RAW:
|
106
|
-
PLUGIN_GLOBAL_LIST_DETAIL_V2:
|
107
|
-
PLUGIN_GLOBAL_LIST_V2:
|
108
|
-
PLUGIN_GLOBAL_LIST_TAGS:
|
109
|
-
PLUGIN_LIST_MIN:
|
110
|
-
DEPLOYMENT_CHARTS_LIST:
|
111
|
-
USER_LIST_MIN:
|
112
|
-
CONFIG_DATA:
|
113
|
-
K8S_RESOURCE:
|
114
|
-
K8S_RESOURCE_LIST:
|
115
|
-
FILE_UPLOAD:
|
116
|
-
PLUGIN_GLOBAL_VARIABLES:
|
117
|
-
CONFIG_COMPARE_SECRET:
|
118
|
-
SCOPED_GLOBAL_VARIABLES:
|
119
|
-
CD_TRIGGER_POST:
|
120
|
-
DELETE_RESOURCE:
|
121
|
-
NODE_CAPACITY:
|
122
|
-
|
70
|
+
readonly APP: "app";
|
71
|
+
readonly APP_ARTIFACT_PROMOTE_MATERIAL: "app/artifact/promotion-request/material";
|
72
|
+
readonly APP_TEMPLATE_DATA: "app/template/data";
|
73
|
+
readonly PROJECT_LIST_MIN: "team/autocomplete";
|
74
|
+
readonly USER_CHECK_ROLE: "user/check/roles";
|
75
|
+
readonly IMAGE_TAGGING: "app/image-tagging";
|
76
|
+
readonly CREATE_RESOURCE: "k8s/resource/create";
|
77
|
+
readonly K8S_RESOURCE_CREATE: "k8s/resources/apply";
|
78
|
+
readonly CI_CONFIG_GET: "app/ci-pipeline";
|
79
|
+
readonly CD_MATERIAL_GET: "app/cd-pipeline";
|
80
|
+
readonly DEPLOYMENT_TEMPLATE_LIST: "app/template/list";
|
81
|
+
readonly INFRA_CONFIG_PROFILE: "infra-config/profile";
|
82
|
+
readonly SCAN_RESULT: "scan-result";
|
83
|
+
readonly NOTIFIER: "notification";
|
84
|
+
readonly APP_LIST: "app/list";
|
85
|
+
readonly TELEMETRY_EVENT: "telemetry/event";
|
86
|
+
readonly SERVER_INFO_API: "server";
|
87
|
+
readonly ATTRIBUTES_USER: "attributes/user";
|
88
|
+
readonly GET: "get";
|
89
|
+
readonly UPDATE: "update";
|
90
|
+
readonly ENVIRONMENT_LIST_MIN: "env/autocomplete";
|
91
|
+
readonly CLUSTER: "cluster";
|
92
|
+
readonly API_RESOURCE: "k8s/api-resources";
|
93
|
+
readonly GVK: "gvk";
|
94
|
+
readonly NAMESPACE: "env/namespace";
|
95
|
+
readonly CLUSTER_NOTE: "cluster/note";
|
96
|
+
readonly APPLICATION_NOTE: "app/note";
|
97
|
+
readonly GIT_HOST_EVENT: "git/host/event";
|
98
|
+
readonly HELM_DEPLOYMENT_STATUS_TIMELINE_INSTALLED_APP: "app-store/deployment-status/timeline";
|
99
|
+
readonly DEPLOYMENT_STATUS: "app/deployment-status/timeline";
|
100
|
+
readonly MANUAL_SYNC: "app/deployment-status/manual-sync";
|
101
|
+
readonly CD_CONFIG: "app/cd-pipeline";
|
102
|
+
readonly CONFIG_CD_PIPELINE: "config/cd-pipeline";
|
103
|
+
readonly MODULE_CONFIGURED: "module/config";
|
104
|
+
readonly RESOURCE_HISTORY_DEPLOYMENT: "resource/history/deployment";
|
105
|
+
readonly ATTRIBUTES: "attributes";
|
106
|
+
readonly ATTRIBUTES_CREATE: "attributes/create";
|
107
|
+
readonly ATTRIBUTES_UPDATE: "attributes/update";
|
108
|
+
readonly APP_LIST_MIN: "app/min";
|
109
|
+
readonly CLUSTER_LIST_MIN: "cluster/autocomplete";
|
110
|
+
readonly CLUSTER_LIST_RAW: "k8s/capacity/cluster/list/raw";
|
111
|
+
readonly PLUGIN_GLOBAL_LIST_DETAIL_V2: "plugin/global/list/detail/v2";
|
112
|
+
readonly PLUGIN_GLOBAL_LIST_V2: "plugin/global/list/v2";
|
113
|
+
readonly PLUGIN_GLOBAL_LIST_TAGS: "plugin/global/list/tags";
|
114
|
+
readonly PLUGIN_LIST_MIN: "plugin/global/list/v2/min";
|
115
|
+
readonly DEPLOYMENT_CHARTS_LIST: "deployment/template/fetch";
|
116
|
+
readonly USER_LIST_MIN: "user/list/min";
|
117
|
+
readonly CONFIG_DATA: "config/data";
|
118
|
+
readonly K8S_RESOURCE: "k8s/resource";
|
119
|
+
readonly K8S_RESOURCE_LIST: "k8s/resource/list";
|
120
|
+
readonly FILE_UPLOAD: "file/upload";
|
121
|
+
readonly PLUGIN_GLOBAL_VARIABLES: "plugin/global/list/global-variable";
|
122
|
+
readonly CONFIG_COMPARE_SECRET: "config/compare/secret";
|
123
|
+
readonly SCOPED_GLOBAL_VARIABLES: "global/variables";
|
124
|
+
readonly CD_TRIGGER_POST: "app/cd-pipeline/trigger";
|
125
|
+
readonly DELETE_RESOURCE: "k8s/resource/delete";
|
126
|
+
readonly NODE_CAPACITY: "k8s/capacity/node";
|
127
|
+
readonly RESOURCE_TEMPLATE: "resource/template";
|
128
|
+
readonly ENVIRONMENT_DATA: "global/environment-variables";
|
123
129
|
};
|
124
130
|
export declare enum KEY_VALUE {
|
125
131
|
KEY = "key",
|
@@ -0,0 +1 @@
|
|
1
|
+
export declare const getParsedUpdatedOnDate: (updatedOn: string) => string;
|
package/dist/Common/Types.d.ts
CHANGED
package/dist/Common/index.d.ts
CHANGED
@@ -1,3 +1,4 @@
|
|
1
|
+
import { ResourceKindType } from '../../../../../Shared/types';
|
1
2
|
import { ReactNode, SyntheticEvent } from 'react';
|
2
3
|
export declare enum ConfigHeaderTabType {
|
3
4
|
VALUES = "values",
|
@@ -32,3 +33,40 @@ export interface OverrideStrategyTippyContentProps {
|
|
32
33
|
*/
|
33
34
|
children?: ReactNode;
|
34
35
|
}
|
36
|
+
export interface AppConfigProps {
|
37
|
+
appName: string;
|
38
|
+
resourceKind: Extract<ResourceKindType, ResourceKindType.devtronApplication | ResourceKindType.job>;
|
39
|
+
filteredEnvIds?: string;
|
40
|
+
isTemplateView?: boolean;
|
41
|
+
}
|
42
|
+
export declare enum GetTemplateAPIRouteType {
|
43
|
+
GIT_MATERIAL = "git-material",
|
44
|
+
CI_BUILD_CONFIG = "ci-build-config",
|
45
|
+
STAGE_STATUS = "stage-status",
|
46
|
+
CD_DEPLOY_CONFIG = "cd-deploy-config",
|
47
|
+
CD_ENV_LIST = "cd-env-list",
|
48
|
+
CONFIG_DEPLOYMENT_TEMPLATE = "config/deployment-template",
|
49
|
+
CONFIG_DEPLOYMENT_TEMPLATE_ENV = "config/deployment-template/env",
|
50
|
+
CONFIG_DATA = "config-data",
|
51
|
+
CONFIG_CM = "config/config-map",
|
52
|
+
CONFIG_CS = "config/secret",
|
53
|
+
WORKFLOW = "workflow",
|
54
|
+
WORKFLOW_LIST = "workflow/list",
|
55
|
+
OVERVIEW = "overview",
|
56
|
+
README = "readme",
|
57
|
+
CD_PIPELINE_LIST = "cd-pipeline/list",
|
58
|
+
EXTERNAL_CI_LIST = "external-ci/list",
|
59
|
+
EXTERNAL_CI = "external-ci",
|
60
|
+
CI_PIPELINE = "ci-pipeline",
|
61
|
+
CD_PIPELINE = "cd-pipeline",
|
62
|
+
CONFIG_STRATEGY = "config/strategy",
|
63
|
+
CHART_REF = "chartRef",
|
64
|
+
PIPELINE_SUGGEST_CI = "pipeline/suggest/ci",
|
65
|
+
PIPELINE_SUGGEST_CD = "pipeline/suggest/cd"
|
66
|
+
}
|
67
|
+
export interface GetTemplateAPIRouteProps {
|
68
|
+
type: GetTemplateAPIRouteType;
|
69
|
+
queryParams: {
|
70
|
+
id: string | number;
|
71
|
+
} & Record<string, any>;
|
72
|
+
}
|
package/dist/Shared/Components/FloatingVariablesSuggestions/FloatingVariablesSuggestions.d.ts
CHANGED
@@ -1,4 +1,4 @@
|
|
1
1
|
import { default as React } from 'react';
|
2
2
|
import { FloatingVariablesSuggestionsProps } from './types';
|
3
|
-
declare const _default: React.MemoExoticComponent<({ zIndex, appId, envId, clusterId, bounds, hideObjectVariables, showValueOnHover, }: FloatingVariablesSuggestionsProps) => JSX.Element>;
|
3
|
+
declare const _default: React.MemoExoticComponent<({ zIndex, appId, envId, clusterId, bounds, hideObjectVariables, showValueOnHover, isTemplateView, }: FloatingVariablesSuggestionsProps) => JSX.Element>;
|
4
4
|
export default _default;
|
@@ -1,2 +1,4 @@
|
|
1
1
|
import { FloatingVariablesSuggestionsProps, ScopedVariableType } from './types';
|
2
|
-
export declare const getScopedVariables: (appId: FloatingVariablesSuggestionsProps["appId"], envId: FloatingVariablesSuggestionsProps["envId"], clusterId: FloatingVariablesSuggestionsProps["clusterId"], hideObjectVariables
|
2
|
+
export declare const getScopedVariables: (appId: FloatingVariablesSuggestionsProps["appId"], envId: FloatingVariablesSuggestionsProps["envId"], clusterId: FloatingVariablesSuggestionsProps["clusterId"], { hideObjectVariables, isTemplateView, }: Pick<FloatingVariablesSuggestionsProps, "isTemplateView"> & {
|
3
|
+
hideObjectVariables?: boolean;
|
4
|
+
}) => Promise<ScopedVariableType[]>;
|
@@ -1,3 +1,4 @@
|
|
1
|
+
import { AppConfigProps } from '../../../Pages/index';
|
1
2
|
import { DraggableBounds } from 'react-draggable';
|
2
3
|
export interface ScopedVariableType {
|
3
4
|
variableName: string;
|
@@ -7,7 +8,7 @@ export interface ScopedVariableType {
|
|
7
8
|
} | null;
|
8
9
|
isRedacted: boolean;
|
9
10
|
}
|
10
|
-
export interface FloatingVariablesSuggestionsProps {
|
11
|
+
export interface FloatingVariablesSuggestionsProps extends Required<Pick<AppConfigProps, 'isTemplateView'>> {
|
11
12
|
zIndex: number;
|
12
13
|
appId?: string;
|
13
14
|
envId?: string;
|
@@ -0,0 +1,26 @@
|
|
1
|
+
import { MouseEventHandler, ReactElement } from 'react';
|
2
|
+
import { LinkProps } from 'react-router-dom';
|
3
|
+
type BaseGenericInfoCardProps = {
|
4
|
+
title: string;
|
5
|
+
description: string;
|
6
|
+
author: string;
|
7
|
+
Icon: ReactElement;
|
8
|
+
} & ({
|
9
|
+
onClick?: never;
|
10
|
+
linkProps?: Pick<LinkProps, 'to' | 'target' | 'rel'>;
|
11
|
+
} | {
|
12
|
+
onClick?: MouseEventHandler<HTMLDivElement>;
|
13
|
+
linkProps?: never;
|
14
|
+
});
|
15
|
+
export declare enum GenericInfoCardBorderVariant {
|
16
|
+
ROUNDED = "rounded",
|
17
|
+
NONE = "none"
|
18
|
+
}
|
19
|
+
export type GenericInfoCardProps = {
|
20
|
+
borderVariant: GenericInfoCardBorderVariant;
|
21
|
+
} & (({
|
22
|
+
isLoading: true;
|
23
|
+
} & Partial<Record<keyof BaseGenericInfoCardProps, never>>) | ({
|
24
|
+
isLoading?: boolean;
|
25
|
+
} & BaseGenericInfoCardProps));
|
26
|
+
export {};
|
@@ -1,2 +1,2 @@
|
|
1
1
|
import { GitProviderIconProps } from './types';
|
2
|
-
export declare const GitProviderIcon: ({ gitProvider, size }: GitProviderIconProps) => JSX.Element;
|
2
|
+
export declare const GitProviderIcon: ({ gitProvider, size, gitRepoUrl }: GitProviderIconProps) => JSX.Element;
|
@@ -1,10 +1,15 @@
|
|
1
1
|
import { GitProviderType } from '../../../Common/Constants';
|
2
2
|
import { IconsProps } from '../Icon';
|
3
|
-
export
|
4
|
-
gitProvider: GitProviderType;
|
3
|
+
export type GitProviderIconProps = {
|
5
4
|
/**
|
6
5
|
* The size of the icon in pixels.
|
7
6
|
* @default 20
|
8
7
|
*/
|
9
8
|
size?: IconsProps['size'];
|
10
|
-
}
|
9
|
+
} & ({
|
10
|
+
gitProvider: GitProviderType;
|
11
|
+
gitRepoUrl?: never;
|
12
|
+
} | {
|
13
|
+
gitProvider?: never;
|
14
|
+
gitRepoUrl: string;
|
15
|
+
});
|
@@ -0,0 +1,19 @@
|
|
1
|
+
import { ReactElement, ReactNode } from 'react';
|
2
|
+
import { Node } from '@xyflow/react';
|
3
|
+
import { SelectPickerProps } from '../../SelectPicker';
|
4
|
+
export interface BaseNodeProps {
|
5
|
+
id: string;
|
6
|
+
className?: string;
|
7
|
+
isConnectable: boolean;
|
8
|
+
children: ReactNode;
|
9
|
+
}
|
10
|
+
export type IconNodeProps = Node<{
|
11
|
+
icon: ReactElement;
|
12
|
+
}, 'iconNode'>;
|
13
|
+
export type TextNodeProps = Node<{
|
14
|
+
icon?: ReactElement;
|
15
|
+
text: string;
|
16
|
+
}, 'textNode'>;
|
17
|
+
export type DropdownNodeProps = Node<Omit<SelectPickerProps<string | number, false>, 'variant' | 'fullWidth' | 'classNamePrefix' | 'menuPosition' | 'menuSize' | 'menuPortalTarget' | 'error'> & {
|
18
|
+
isError?: boolean;
|
19
|
+
}, 'dropdownNode'>;
|
@@ -0,0 +1,15 @@
|
|
1
|
+
import { NodeTypes, Viewport } from '@xyflow/react';
|
2
|
+
declare const nodeTypes: {
|
3
|
+
iconNode: ({ data, id, isConnectable }: import('@xyflow/react').NodeProps<import('./components').IconNodeProps>) => JSX.Element;
|
4
|
+
textNode: ({ id, data, isConnectable }: import('@xyflow/react').NodeProps<import('./components').TextNodeProps>) => JSX.Element;
|
5
|
+
dropdownNode: ({ id, data, isConnectable }: import('@xyflow/react').NodeProps<import('./components').DropdownNodeProps>) => JSX.Element;
|
6
|
+
};
|
7
|
+
export declare const NODE_TYPES: NodeTypes;
|
8
|
+
export declare const NODE_WIDTH_MAP: Record<keyof typeof nodeTypes, number>;
|
9
|
+
export declare const NODE_HEIGHT_MAP: Record<keyof typeof nodeTypes, number>;
|
10
|
+
export declare const PADDING_X = 16;
|
11
|
+
export declare const PADDING_Y = 20;
|
12
|
+
export declare const NODE_GAP_X = 50;
|
13
|
+
export declare const NODE_GAP_Y = 12;
|
14
|
+
export declare const DEFAULT_VIEWPORT: Viewport;
|
15
|
+
export {};
|
@@ -0,0 +1,12 @@
|
|
1
|
+
import { Dispatch, SetStateAction } from 'react';
|
2
|
+
import { Edge } from '@xyflow/react';
|
3
|
+
import { DropdownNodeProps, IconNodeProps, TextNodeProps } from './components';
|
4
|
+
export type GraphVisualizerExtendedNode = IconNodeProps | TextNodeProps | DropdownNodeProps;
|
5
|
+
export type GraphVisualizerNode = Omit<IconNodeProps, 'position'> | Omit<TextNodeProps, 'position'> | Omit<DropdownNodeProps, 'position'>;
|
6
|
+
export type GraphVisualizerEdge = Omit<Edge, 'type'>;
|
7
|
+
export interface GraphVisualizerProps {
|
8
|
+
nodes: GraphVisualizerNode[];
|
9
|
+
setNodes: Dispatch<SetStateAction<GraphVisualizerNode[]>>;
|
10
|
+
edges: GraphVisualizerEdge[];
|
11
|
+
setEdges: Dispatch<SetStateAction<GraphVisualizerEdge[]>>;
|
12
|
+
}
|
@@ -0,0 +1,17 @@
|
|
1
|
+
import { Edge } from '@xyflow/react';
|
2
|
+
import { GraphVisualizerExtendedNode, GraphVisualizerProps } from './types';
|
3
|
+
/**
|
4
|
+
* Processes edges by assigning a default type and customizing the marker (arrow style).
|
5
|
+
*
|
6
|
+
* @param edges - List of all edges representing connections between nodes.
|
7
|
+
* @returns A new array of edges with updated properties.
|
8
|
+
*/
|
9
|
+
export declare const processEdges: (edges: GraphVisualizerProps["edges"]) => Edge[];
|
10
|
+
/**
|
11
|
+
* Processes nodes by calculating their positions based on parent-child relationships.
|
12
|
+
*
|
13
|
+
* @param nodes - List of all nodes in the graph.
|
14
|
+
* @param edges - List of all edges representing parent-child relationships.
|
15
|
+
* @returns A new array of nodes with computed positions.
|
16
|
+
*/
|
17
|
+
export declare const processNodes: (nodes: GraphVisualizerProps["nodes"], edges: GraphVisualizerProps["edges"]) => GraphVisualizerExtendedNode[];
|
@@ -1,7 +1,6 @@
|
|
1
1
|
import { IconBaseProps } from './types';
|
2
2
|
export declare const iconMap: {
|
3
3
|
'ic-aborted': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
4
|
-
'ic-add': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
5
4
|
'ic-app-group': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
6
5
|
'ic-arrow-right': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
7
6
|
'ic-azure': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
@@ -9,6 +8,7 @@ export declare const iconMap: {
|
|
9
8
|
'ic-browser': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
10
9
|
'ic-build-color': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
11
10
|
'ic-cancelled': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
11
|
+
'ic-card-stack': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
12
12
|
'ic-cd': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
13
13
|
'ic-ci-linked': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
14
14
|
'ic-ci-webhook': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
@@ -17,9 +17,9 @@ export declare const iconMap: {
|
|
17
17
|
'ic-close-small': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
18
18
|
'ic-code': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
19
19
|
'ic-container': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
20
|
+
'ic-copy': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
20
21
|
'ic-crown': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
21
22
|
'ic-cube': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
22
|
-
'ic-delete': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
23
23
|
'ic-dockerhub': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
24
24
|
'ic-ecr': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
25
25
|
'ic-env': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
@@ -51,6 +51,7 @@ export declare const iconMap: {
|
|
51
51
|
'ic-microsoft': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
52
52
|
'ic-missing': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
53
53
|
'ic-monitoring': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
54
|
+
'ic-new': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
54
55
|
'ic-node-script': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
55
56
|
'ic-oidc': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
56
57
|
'ic-open-box': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
@@ -1,15 +1,7 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
group: (base: any) => any;
|
9
|
-
groupHeading: (base: any) => any;
|
10
|
-
menuList: (base: any) => any;
|
11
|
-
multiValue: (base: any) => any;
|
12
|
-
multiValueLabel: (base: any) => any;
|
13
|
-
placeholder: (base: any) => any;
|
14
|
-
menu: (base: any) => any;
|
15
|
-
};
|
1
|
+
import { DropdownIndicatorProps, StylesConfig } from 'react-select';
|
2
|
+
export declare const CommonGroupedDropdownStyles: StylesConfig;
|
3
|
+
export declare const APP_SELECTOR_STYLES: StylesConfig;
|
4
|
+
export declare const AppSelectorDropdownIndicator: (props: DropdownIndicatorProps) => JSX.Element;
|
5
|
+
export declare const AppSelectorNoOptionsMessage: (inputObj: {
|
6
|
+
inputValue: string;
|
7
|
+
}) => string;
|
@@ -80,7 +80,7 @@ export declare enum SelectPickerVariantType {
|
|
80
80
|
DEFAULT = "default",
|
81
81
|
BORDER_LESS = "border-less"
|
82
82
|
}
|
83
|
-
export type SelectPickerProps<OptionValue = number | string, IsMulti extends boolean = false> = Pick<SelectProps<OptionValue, IsMulti>, 'name' | 'classNamePrefix' | 'options' | 'value' | 'onChange' | 'isSearchable' | 'isClearable' | 'hideSelectedOptions' | 'controlShouldRenderValue' | 'closeMenuOnSelect' | 'isDisabled' | 'isLoading' | 'required' | 'isOptionDisabled' | 'placeholder' | 'menuPosition' | 'getOptionLabel' | 'getOptionValue' | 'isOptionSelected' | 'menuIsOpen' | 'onMenuOpen' | 'onMenuClose' | 'autoFocus' | 'onBlur' | 'onKeyDown' | 'formatOptionLabel' | 'onInputChange' | 'inputValue' | 'filterOption'> & Partial<Pick<SelectProps<OptionValue, IsMulti>, 'renderMenuListFooter' | 'shouldRenderCustomOptions' | 'renderCustomOptions' | 'icon' | 'showSelectedOptionIcon' | 'renderOptionsFooter' | 'shouldRenderTextArea'>> & Required<Pick<SelectProps<OptionValue, IsMulti>, 'inputId'>> & Partial<Pick<CreatableProps<SelectPickerOptionType<OptionValue>, IsMulti, GroupBase<SelectPickerOptionType<OptionValue>>>, 'onCreateOption' | 'formatCreateLabel' | 'menuPortalTarget'>> & Omit<FormFieldWrapperProps, 'children'> & {
|
83
|
+
export type SelectPickerProps<OptionValue = number | string, IsMulti extends boolean = false> = Pick<SelectProps<OptionValue, IsMulti>, 'name' | 'classNamePrefix' | 'options' | 'value' | 'onChange' | 'isSearchable' | 'isClearable' | 'hideSelectedOptions' | 'controlShouldRenderValue' | 'closeMenuOnSelect' | 'isDisabled' | 'isLoading' | 'required' | 'isOptionDisabled' | 'placeholder' | 'menuPosition' | 'getOptionLabel' | 'getOptionValue' | 'isOptionSelected' | 'menuIsOpen' | 'onMenuOpen' | 'onMenuClose' | 'autoFocus' | 'onBlur' | 'onKeyDown' | 'formatOptionLabel' | 'onInputChange' | 'inputValue' | 'filterOption' | 'noOptionsMessage'> & Partial<Pick<SelectProps<OptionValue, IsMulti>, 'renderMenuListFooter' | 'shouldRenderCustomOptions' | 'renderCustomOptions' | 'icon' | 'showSelectedOptionIcon' | 'renderOptionsFooter' | 'shouldRenderTextArea'>> & Required<Pick<SelectProps<OptionValue, IsMulti>, 'inputId'>> & Partial<Pick<CreatableProps<SelectPickerOptionType<OptionValue>, IsMulti, GroupBase<SelectPickerOptionType<OptionValue>>>, 'onCreateOption' | 'formatCreateLabel' | 'menuPortalTarget'>> & Omit<FormFieldWrapperProps, 'children'> & {
|
84
84
|
/**
|
85
85
|
* Custom selected options count for use cases like filters
|
86
86
|
*/
|
@@ -1,3 +1,3 @@
|
|
1
1
|
import { WorkflowOptionsModalProps } from './types';
|
2
|
-
declare const WorkflowOptionsModal: ({ handleCloseWorkflowOptionsModal, addCIPipeline, addWebhookCD, addLinkedCD, showLinkedCDSource, changeCIPayload, workflows, getWorkflows, resetChangeCIPayload, linkedCDSourceVariant, isAppGroup, }: Readonly<WorkflowOptionsModalProps>) => JSX.Element;
|
2
|
+
declare const WorkflowOptionsModal: ({ handleCloseWorkflowOptionsModal, addCIPipeline, addWebhookCD, addLinkedCD, showLinkedCDSource, changeCIPayload, workflows, getWorkflows, resetChangeCIPayload, linkedCDSourceVariant, isAppGroup, isTemplateView, }: Readonly<WorkflowOptionsModalProps>) => JSX.Element;
|
3
3
|
export default WorkflowOptionsModal;
|
@@ -1,3 +1,4 @@
|
|
1
|
+
import { AppConfigProps } from '../../../Pages/index';
|
1
2
|
import { ChangeCIPayloadType, CIPipelineNodeType, WorkflowType } from '../../types';
|
2
3
|
interface LinkedCDSourceVariant {
|
3
4
|
title: string;
|
@@ -12,7 +13,7 @@ export interface SourceTypeCardProps extends LinkedCDSourceVariant {
|
|
12
13
|
disableInfo: string;
|
13
14
|
isDisabled?: boolean;
|
14
15
|
}
|
15
|
-
export interface WorkflowOptionsModalProps {
|
16
|
+
export interface WorkflowOptionsModalProps extends Required<Pick<AppConfigProps, 'isTemplateView'>> {
|
16
17
|
handleCloseWorkflowOptionsModal: () => void;
|
17
18
|
addCIPipeline: (type: CIPipelineNodeType, workflowId?: number | string) => void;
|
18
19
|
addWebhookCD: (workflowId?: number | string) => void;
|
@@ -59,6 +59,8 @@ export * from './ThemeSwitcher';
|
|
59
59
|
export * from './TargetPlatforms';
|
60
60
|
export * from './UnsavedChanges';
|
61
61
|
export * from './UnsavedChangesDialog';
|
62
|
+
export * from './GraphVisualizer';
|
63
|
+
export * from './GenericInfoCard';
|
62
64
|
export * from './Icon';
|
63
65
|
export * from './StatusComponent';
|
64
66
|
export * from './RegistryIcon';
|
@@ -1,3 +1,4 @@
|
|
1
|
+
import { AppConfigProps } from '../../Pages/index';
|
1
2
|
import { ResponseType } from '../../Common';
|
2
3
|
import { CIMaterialInfoType, GetCITriggerInfoParamsType, AppEnvDeploymentConfigDTO, AppEnvDeploymentConfigPayloadType } from './app.types';
|
3
4
|
export declare const getCITriggerInfo: (params: GetCITriggerInfoParamsType) => Promise<CIMaterialInfoType>;
|
@@ -5,8 +6,10 @@ export declare const getCITriggerInfo: (params: GetCITriggerInfoParamsType) => P
|
|
5
6
|
* The only difference between this and getCITriggerInfo is it doesn't have env and trigger related meta info
|
6
7
|
*/
|
7
8
|
export declare const getArtifactInfo: (params: Pick<GetCITriggerInfoParamsType, "ciArtifactId">) => Promise<CIMaterialInfoType>;
|
8
|
-
export declare const getAppEnvDeploymentConfig: ({ params, signal, }: {
|
9
|
+
export declare const getAppEnvDeploymentConfig: ({ params, signal, isTemplateView, appId, }: {
|
9
10
|
params: AppEnvDeploymentConfigPayloadType;
|
10
11
|
signal?: AbortSignal;
|
12
|
+
isTemplateView: AppConfigProps["isTemplateView"];
|
13
|
+
appId: string | number | null;
|
11
14
|
}) => Promise<ResponseType<AppEnvDeploymentConfigDTO>>;
|
12
15
|
export declare const getCompareSecretsData: (params: AppEnvDeploymentConfigPayloadType[]) => Promise<AppEnvDeploymentConfigDTO[]>;
|
@@ -1,7 +1,8 @@
|
|
1
|
+
import { AppConfigProps } from '../../Pages/index';
|
1
2
|
import { EnvironmentDataValuesDTO, GetPolicyApiUrlProps, GetResourceApiUrlProps, UserPreferencesType } from './types';
|
2
3
|
export declare const getResourceApiUrl: <T>({ baseUrl, kind, version, suffix, queryParams }: GetResourceApiUrlProps<T>) => string;
|
3
4
|
export declare const getPolicyApiUrl: <T>({ kind, version, queryParams, suffix }: GetPolicyApiUrlProps<T>) => string;
|
4
|
-
export declare const saveCDPipeline: (request: any) => Promise<import('../../Common').ResponseType<any>>;
|
5
|
+
export declare const saveCDPipeline: (request: any, { isTemplateView }: Required<Pick<AppConfigProps, "isTemplateView">>) => Promise<import('../../Common').ResponseType<any>>;
|
5
6
|
export declare const getEnvironmentData: () => Promise<import('../../Common').ResponseType<EnvironmentDataValuesDTO>>;
|
6
7
|
export declare const getUserPreferences: () => Promise<UserPreferencesType>;
|
7
8
|
export declare const updateUserPreferences: (updatedUserPreferences: UserPreferencesType, shouldThrowError?: boolean) => Promise<boolean>;
|