@devtron-labs/devtron-fe-common-lib 0.0.40-beta-4 → 0.0.40-beta-9

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.
@@ -12,4 +12,4 @@ import { DebouncedSearchProps } from './Types';
12
12
  * @param clearSearch - (Optional) To clear the search text
13
13
  * @param showClearIcon - (Optional) To show the clear icon default value is true
14
14
  */
15
- export default function DebouncedSearch({ onSearch, Icon, children, placeholder, containerClass, iconClass, inputClass, debounceTimeout, clearSearch, showClearIcon, autoFocus, }: DebouncedSearchProps): JSX.Element;
15
+ export default function DebouncedSearch({ onSearch, Icon, children, placeholder, containerClass, iconClass, inputClass, debounceTimeout, clearSearch, showClearIcon, }: DebouncedSearchProps): JSX.Element;
@@ -10,5 +10,4 @@ export interface DebouncedSearchProps {
10
10
  debounceTimeout?: number;
11
11
  clearSearch?: boolean;
12
12
  showClearIcon?: boolean;
13
- autoFocus?: boolean;
14
13
  }
@@ -231,6 +231,9 @@ export interface CDMaterialType {
231
231
  imageReleaseTags?: ReleaseTag[];
232
232
  artifactStatus?: string;
233
233
  filterState: FilterStates;
234
+ registryType?: string;
235
+ imagePath?: string;
236
+ registryName?: string;
234
237
  scanToolId?: number;
235
238
  appliedFiltersTimestamp?: string;
236
239
  appliedFilters?: FilterConditionsListType[];
@@ -272,7 +275,7 @@ export interface CommonNodeAttr {
272
275
  isGitSource: boolean;
273
276
  isRoot: boolean;
274
277
  downstreams: string[];
275
- type: 'CI' | 'GIT' | 'PRECD' | 'CD' | 'POSTCD' | 'WEBHOOK' | 'LINKED_CD';
278
+ type: 'CI' | 'GIT' | 'PRECD' | 'CD' | 'POSTCD' | 'WEBHOOK';
276
279
  parentCiPipeline?: number;
277
280
  parentAppId?: number;
278
281
  url?: string;
package/dist/index.js CHANGED
@@ -23635,8 +23635,8 @@ var SvgIcErrorCross = function SvgIcErrorCross(props) {
23635
23635
  * @param showClearIcon - (Optional) To show the clear icon default value is true
23636
23636
  */
23637
23637
  function DebouncedSearch(_a) {
23638
- var onSearch = _a.onSearch, Icon = _a.Icon, children = _a.children, placeholder = _a.placeholder, _b = _a.containerClass, containerClass = _b === void 0 ? '' : _b, _c = _a.iconClass, iconClass = _c === void 0 ? '' : _c, _d = _a.inputClass, inputClass = _d === void 0 ? '' : _d, _e = _a.debounceTimeout, debounceTimeout = _e === void 0 ? 500 : _e, clearSearch = _a.clearSearch, _f = _a.showClearIcon, showClearIcon = _f === void 0 ? true : _f, _g = _a.autoFocus, autoFocus = _g === void 0 ? true : _g;
23639
- var _h = __read(React.useState(''), 2), searchText = _h[0], setSearchText = _h[1];
23638
+ var onSearch = _a.onSearch, Icon = _a.Icon, children = _a.children, placeholder = _a.placeholder, _b = _a.containerClass, containerClass = _b === void 0 ? '' : _b, _c = _a.iconClass, iconClass = _c === void 0 ? '' : _c, _d = _a.inputClass, inputClass = _d === void 0 ? '' : _d, _e = _a.debounceTimeout, debounceTimeout = _e === void 0 ? 500 : _e, clearSearch = _a.clearSearch, _f = _a.showClearIcon, showClearIcon = _f === void 0 ? true : _f;
23639
+ var _g = __read(React.useState(''), 2), searchText = _g[0], setSearchText = _g[1];
23640
23640
  React.useEffect(function () {
23641
23641
  setSearchText('');
23642
23642
  }, [clearSearch]);
@@ -23647,7 +23647,7 @@ function DebouncedSearch(_a) {
23647
23647
  setSearchText('');
23648
23648
  };
23649
23649
  useDebouncedEffect(function () { return onSearch(searchText); }, debounceTimeout, [searchText, onSearch]);
23650
- return (jsxRuntime.jsxs("div", __assign({ className: containerClass }, { children: [Icon && jsxRuntime.jsx(Icon, { className: iconClass }), jsxRuntime.jsx("input", { type: "text", className: inputClass, placeholder: placeholder !== null && placeholder !== void 0 ? placeholder : 'Search', value: searchText, onChange: handleSearchTextChange, autoFocus: autoFocus, "data-testid": "debounced-search" }), showClearIcon && !!searchText && (jsxRuntime.jsx("button", __assign({ type: "button", className: "dc__outline-none-imp dc__no-border p-0 bc-n50 flex", onClick: handleClearSearch, "data-testid": "clear-search" }, { children: jsxRuntime.jsx(SvgIcErrorCross, { className: "icon-dim-20 icon-n6" }) }))), children] })));
23650
+ return (jsxRuntime.jsxs("div", __assign({ className: containerClass }, { children: [Icon && jsxRuntime.jsx(Icon, { className: iconClass }), jsxRuntime.jsx("input", { type: "text", className: inputClass, placeholder: placeholder !== null && placeholder !== void 0 ? placeholder : 'Search', value: searchText, onChange: handleSearchTextChange, autoFocus: true, "data-testid": "debounced-search" }), showClearIcon && !!searchText && (jsxRuntime.jsx("button", __assign({ type: "button", className: "dc__outline-none-imp dc__no-border p-0 bc-n50 flex", onClick: handleClearSearch, "data-testid": "clear-search" }, { children: jsxRuntime.jsx(SvgIcErrorCross, { className: "icon-dim-20 icon-n6" }) }))), children] })));
23651
23651
  }
23652
23652
 
23653
23653
  // This is meant to be a reusable component that will provide a grid like dynamic layout where xs is the number of columns out of 12 that the item will take up
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@devtron-labs/devtron-fe-common-lib",
3
- "version": "0.0.40-beta-4",
3
+ "version": "0.0.40-beta-9",
4
4
  "description": "Supporting common component library",
5
5
  "main": "dist/index.js",
6
6
  "scripts": {
@@ -26,7 +26,6 @@ export default function DebouncedSearch({
26
26
  debounceTimeout = 500,
27
27
  clearSearch,
28
28
  showClearIcon = true,
29
- autoFocus = true,
30
29
  }: DebouncedSearchProps) {
31
30
  const [searchText, setSearchText] = useState<string>('')
32
31
 
@@ -54,7 +53,7 @@ export default function DebouncedSearch({
54
53
  placeholder={placeholder ?? 'Search'}
55
54
  value={searchText}
56
55
  onChange={handleSearchTextChange}
57
- autoFocus={autoFocus}
56
+ autoFocus
58
57
  data-testid="debounced-search"
59
58
  />
60
59
 
@@ -9,5 +9,4 @@ export interface DebouncedSearchProps {
9
9
  debounceTimeout?: number
10
10
  clearSearch?: boolean
11
11
  showClearIcon?: boolean
12
- autoFocus?: boolean
13
12
  }
@@ -256,6 +256,9 @@ export interface CDMaterialType {
256
256
  imageReleaseTags?: ReleaseTag[]
257
257
  artifactStatus?: string
258
258
  filterState: FilterStates
259
+ registryType?: string;
260
+ imagePath?: string
261
+ registryName?: string
259
262
  // Not even coming from API but required in CDMaterials for Security which makes its own api call but stores data in CDMaterials
260
263
  scanToolId?: number
261
264
  appliedFiltersTimestamp?: string
@@ -303,7 +306,7 @@ export interface CommonNodeAttr {
303
306
  isGitSource: boolean
304
307
  isRoot: boolean
305
308
  downstreams: string[]
306
- type: 'CI' | 'GIT' | 'PRECD' | 'CD' | 'POSTCD' | 'WEBHOOK' | 'LINKED_CD'
309
+ type: 'CI' | 'GIT' | 'PRECD' | 'CD' | 'POSTCD' | 'WEBHOOK'
307
310
  parentCiPipeline?: number
308
311
  parentAppId?: number
309
312
  url?: string