@devtron-labs/devtron-fe-common-lib 0.0.20-beta-1 → 0.0.21-beta-1
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.
|
@@ -57,8 +57,3 @@ export declare const BuildStageVariable: {
|
|
|
57
57
|
PostBuild: string;
|
|
58
58
|
};
|
|
59
59
|
export declare const REGISTRY_TYPE_MAP: Record<string, RegistryTypeDetailType>;
|
|
60
|
-
export declare const RepositoryAction: {
|
|
61
|
-
CONTAINER: string;
|
|
62
|
-
CHART_PULL: string;
|
|
63
|
-
CHART_PUSH: string;
|
|
64
|
-
};
|
package/dist/Common/Helper.d.ts
CHANGED
|
@@ -42,4 +42,5 @@ export declare function CustomInput({ name, value, error, onChange, onBlur, onFo
|
|
|
42
42
|
}): JSX.Element;
|
|
43
43
|
export declare function handleUTCTime(ts: string, isRelativeTime?: boolean): string;
|
|
44
44
|
export declare function useSearchString(): UseSearchString;
|
|
45
|
+
export declare const closeOnKeyPressed: (e: any, actionClose: () => void, keyCode: number, key: string) => void;
|
|
45
46
|
export {};
|
package/dist/index.js
CHANGED
|
@@ -116,7 +116,7 @@ var REGISTRY_TYPE_MAP = {
|
|
|
116
116
|
defaultRegistryURL: 'docker.io',
|
|
117
117
|
registryURL: {
|
|
118
118
|
label: 'Registry URL',
|
|
119
|
-
defaultValue: '',
|
|
119
|
+
defaultValue: 'docker.io',
|
|
120
120
|
placeholder: '',
|
|
121
121
|
},
|
|
122
122
|
id: {
|
|
@@ -208,7 +208,7 @@ var REGISTRY_TYPE_MAP = {
|
|
|
208
208
|
defaultRegistryURL: 'quay.io',
|
|
209
209
|
registryURL: {
|
|
210
210
|
label: 'Registry URL',
|
|
211
|
-
defaultValue: '',
|
|
211
|
+
defaultValue: 'quay.io',
|
|
212
212
|
placeholder: '',
|
|
213
213
|
},
|
|
214
214
|
id: {
|
|
@@ -245,11 +245,6 @@ var REGISTRY_TYPE_MAP = {
|
|
|
245
245
|
placeholder: '',
|
|
246
246
|
},
|
|
247
247
|
},
|
|
248
|
-
};
|
|
249
|
-
var RepositoryAction = {
|
|
250
|
-
CONTAINER: "CONTAINER",
|
|
251
|
-
CHART_PULL: "CHART_PULL",
|
|
252
|
-
CHART_PUSH: "CHART_PUSH"
|
|
253
248
|
};
|
|
254
249
|
|
|
255
250
|
/******************************************************************************
|
|
@@ -10099,7 +10094,12 @@ function useSearchString() {
|
|
|
10099
10094
|
return agg;
|
|
10100
10095
|
}, {});
|
|
10101
10096
|
return { queryParams: queryParams, searchParams: searchParams };
|
|
10102
|
-
}
|
|
10097
|
+
}
|
|
10098
|
+
var closeOnKeyPressed = function (e, actionClose, keyCode, key) {
|
|
10099
|
+
if (e.keyCode === keyCode || e.key === key) {
|
|
10100
|
+
actionClose();
|
|
10101
|
+
}
|
|
10102
|
+
};
|
|
10103
10103
|
|
|
10104
10104
|
function Progressing(_a) {
|
|
10105
10105
|
var pageLoader = _a.pageLoader, size = _a.size, theme = _a.theme, styles = _a.styles, fillColor = _a.fillColor;
|
|
@@ -23391,7 +23391,6 @@ exports.ROUTES = ROUTES;
|
|
|
23391
23391
|
exports.RadioGroup = RadioGroup$1;
|
|
23392
23392
|
exports.RadioGroupItem = RadioGroupItem;
|
|
23393
23393
|
exports.Reload = Reload;
|
|
23394
|
-
exports.RepositoryAction = RepositoryAction;
|
|
23395
23394
|
exports.RequestTimeout = RequestTimeout;
|
|
23396
23395
|
exports.ResizableTagTextArea = ResizableTagTextArea;
|
|
23397
23396
|
exports.ResizableTextarea = ResizableTextarea;
|
|
@@ -23415,6 +23414,7 @@ exports.TriggerTypeMap = TriggerTypeMap;
|
|
|
23415
23414
|
exports.URLS = URLS;
|
|
23416
23415
|
exports.VisibleModal = VisibleModal;
|
|
23417
23416
|
exports.VisibleModal2 = VisibleModal2;
|
|
23417
|
+
exports.closeOnKeyPressed = closeOnKeyPressed;
|
|
23418
23418
|
exports.createGitCommitUrl = createGitCommitUrl;
|
|
23419
23419
|
exports.extractImage = extractImage;
|
|
23420
23420
|
exports.get = get;
|
package/package.json
CHANGED
package/src/Common/Constants.ts
CHANGED
|
@@ -102,7 +102,7 @@ export const REGISTRY_TYPE_MAP: Record<string, RegistryTypeDetailType> = {
|
|
|
102
102
|
defaultRegistryURL: 'docker.io',
|
|
103
103
|
registryURL: {
|
|
104
104
|
label: 'Registry URL',
|
|
105
|
-
defaultValue: '',
|
|
105
|
+
defaultValue: 'docker.io',
|
|
106
106
|
placeholder: '',
|
|
107
107
|
},
|
|
108
108
|
id: {
|
|
@@ -195,7 +195,7 @@ export const REGISTRY_TYPE_MAP: Record<string, RegistryTypeDetailType> = {
|
|
|
195
195
|
defaultRegistryURL: 'quay.io',
|
|
196
196
|
registryURL: {
|
|
197
197
|
label: 'Registry URL',
|
|
198
|
-
defaultValue: '',
|
|
198
|
+
defaultValue: 'quay.io',
|
|
199
199
|
placeholder: '',
|
|
200
200
|
},
|
|
201
201
|
id: {
|
|
@@ -232,10 +232,4 @@ export const REGISTRY_TYPE_MAP: Record<string, RegistryTypeDetailType> = {
|
|
|
232
232
|
placeholder: '',
|
|
233
233
|
},
|
|
234
234
|
},
|
|
235
|
-
}
|
|
236
|
-
|
|
237
|
-
export const RepositoryAction = {
|
|
238
|
-
CONTAINER: "CONTAINER",
|
|
239
|
-
CHART_PULL: "CHART_PULL",
|
|
240
|
-
CHART_PUSH: "CHART_PUSH"
|
|
241
235
|
}
|
package/src/Common/Helper.tsx
CHANGED