@devtron-labs/devtron-fe-common-lib 0.0.7-beta-45 → 0.0.7-beta-47

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.
@@ -234,6 +234,7 @@ export interface CommonNodeAttr {
234
234
  approvalUsers?: string[];
235
235
  userApprovalConfig?: UserApprovalConfigType;
236
236
  requestedUserId?: number;
237
+ isVirtualEnvironment?: boolean;
237
238
  }
238
239
  export interface VulnerabilityType {
239
240
  name: string;
package/dist/index.js CHANGED
@@ -4,7 +4,6 @@ var jsxRuntime = require('react/jsx-runtime');
4
4
  var React = require('react');
5
5
  var ReactDOM = require('react-dom');
6
6
  var reactRouterDom = require('react-router-dom');
7
- var reactRouter = require('react-router');
8
7
 
9
8
  function _interopNamespaceDefault(e) {
10
9
  var n = Object.create(null);
@@ -16710,7 +16709,7 @@ var info = "data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F200
16710
16709
  function DeleteComponent(_a) {
16711
16710
  var setDeleting = _a.setDeleting, toggleConfirmation = _a.toggleConfirmation, deleteComponent = _a.deleteComponent, title = _a.title, component = _a.component, payload = _a.payload, _b = _a.confirmationDialogDescription, confirmationDialogDescription = _b === void 0 ? '' : _b, _c = _a.redirectTo, redirectTo = _c === void 0 ? false : _c, _d = _a.url, url = _d === void 0 ? '' : _d, reload = _a.reload, _e = _a.configuration, configuration = _e === void 0 ? '' : _e, closeCustomComponent = _a.closeCustomComponent;
16712
16711
  var _f = __read(React.useState(false), 2), showCannotDeleteDialogModal = _f[0], setCannotDeleteDialogModal = _f[1];
16713
- var push = reactRouter.useHistory().push;
16712
+ var push = reactRouterDom.useHistory().push;
16714
16713
  function handleDelete() {
16715
16714
  return __awaiter(this, void 0, void 0, function () {
16716
16715
  var serverError_1;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@devtron-labs/devtron-fe-common-lib",
3
- "version": "0.0.7-beta-45",
3
+ "version": "0.0.7-beta-47",
4
4
  "description": "Supporting common component library",
5
5
  "main": "dist/index.js",
6
6
  "scripts": {
@@ -1,5 +1,5 @@
1
1
  import React, { useState } from 'react'
2
- import { useHistory } from 'react-router'
2
+ import { useHistory } from 'react-router-dom'
3
3
  import { toast } from 'react-toastify'
4
4
  import info from '../../Assets/Icon/ic-info-filled.svg'
5
5
  import { ConfirmationDialog, DeleteDialog } from '../Dialogs'
@@ -257,6 +257,7 @@ export interface CommonNodeAttr {
257
257
  approvalUsers?: string[]
258
258
  userApprovalConfig?: UserApprovalConfigType
259
259
  requestedUserId?: number
260
+ isVirtualEnvironment?: boolean
260
261
  }
261
262
 
262
263