@devtron-labs/devtron-fe-common-lib 1.14.2 → 1.15.0

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 (83) hide show
  1. package/dist/{@code-editor-CVEmKqGD.js → @code-editor-UCp9Sbuo.js} +10699 -10437
  2. package/dist/{@common-rjsf-C9V3H0_L.js → @common-rjsf-fukHKGdY.js} +2 -2
  3. package/dist/{@framer-motion-eB9Rj-_8.js → @framer-motion-Dchiw-Rb.js} +3 -3
  4. package/dist/{@react-dates-CJpoumtu.js → @react-dates-D5kydtW-.js} +1 -1
  5. package/dist/{@react-select-CUbAbK6L.js → @react-select-Cmser7OI.js} +6 -6
  6. package/dist/{@react-virtualized-sticky-tree-Ckb5S1RC.js → @react-virtualized-sticky-tree-DMnFy9PE.js} +1 -1
  7. package/dist/{@vendor-4cEd9dja.js → @vendor-STJ9h0oI.js} +14016 -15910
  8. package/dist/Common/Constants.d.ts +4 -11
  9. package/dist/Common/SegmentedControl/Segment.d.ts +1 -1
  10. package/dist/Common/SegmentedControl/types.d.ts +3 -2
  11. package/dist/Common/TippyCustomized.d.ts +1 -1
  12. package/dist/Common/Types.d.ts +8 -6
  13. package/dist/Shared/Components/ActionMenu/types.d.ts +31 -4
  14. package/dist/Shared/Components/ActionMenu/useActionMenu.hook.d.ts +4 -2
  15. package/dist/Shared/Components/Button/Button.component.d.ts +1 -1
  16. package/dist/Shared/Components/Button/constants.d.ts +1 -0
  17. package/dist/Shared/Components/Button/types.d.ts +14 -1
  18. package/dist/Shared/Components/Button/utils.d.ts +1 -1
  19. package/dist/Shared/Components/CICDHistory/DeploymentHistoryConfigDiff/DeploymentHistoryDiffView.d.ts +1 -1
  20. package/dist/Shared/Components/CICDHistory/types.d.ts +0 -1
  21. package/dist/Shared/Components/CodeEditor/CodeEditor.d.ts +1 -1
  22. package/dist/Shared/Components/CodeEditor/CodeEditorRenderer.d.ts +1 -1
  23. package/dist/Shared/Components/CodeEditor/Extensions/findAndReplace.d.ts +2 -1
  24. package/dist/Shared/Components/CodeEditor/types.d.ts +14 -1
  25. package/dist/Shared/Components/DeploymentConfigDiff/DeploymentConfigDiff.utils.d.ts +0 -2
  26. package/dist/Shared/Components/DocLink/DocLink.d.ts +2 -0
  27. package/dist/Shared/Components/DocLink/constants.d.ts +94 -0
  28. package/dist/Shared/Components/DocLink/index.d.ts +4 -0
  29. package/dist/Shared/Components/DocLink/types.d.ts +18 -0
  30. package/dist/Shared/Components/DocLink/utils.d.ts +2 -0
  31. package/dist/Shared/Components/DynamicDataTable/DynamicDataTable.d.ts +1 -1
  32. package/dist/Shared/Components/DynamicDataTable/DynamicDataTableRow.d.ts +1 -1
  33. package/dist/Shared/Components/DynamicDataTable/types.d.ts +8 -4
  34. package/dist/Shared/Components/FeatureDescription/types.d.ts +2 -1
  35. package/dist/Shared/Components/FramerComponents/index.d.ts +2 -3
  36. package/dist/Shared/Components/GenericInfoCard/GenericInfoCardListing.d.ts +2 -0
  37. package/dist/Shared/Components/GenericInfoCard/GenericInfoListSkeleton.d.ts +2 -0
  38. package/dist/Shared/Components/GenericInfoCard/index.d.ts +3 -1
  39. package/dist/Shared/Components/GenericInfoCard/types.d.ts +13 -0
  40. package/dist/Shared/Components/Header/ProfileMenu.d.ts +2 -0
  41. package/dist/Shared/Components/Header/types.d.ts +8 -8
  42. package/dist/Shared/Components/Header/utils.d.ts +0 -2
  43. package/dist/Shared/Components/Icon/Icon.d.ts +6 -0
  44. package/dist/Shared/Components/InfoIconTippy/InfoIconTippy.d.ts +1 -1
  45. package/dist/Shared/Components/KeyValueTable/KeyValueTable.component.d.ts +1 -1
  46. package/dist/Shared/Components/KeyValueTable/KeyValueTable.types.d.ts +1 -1
  47. package/dist/Shared/Components/ModalSidebarPanel/types.d.ts +2 -1
  48. package/dist/Shared/Components/NumbersCount/index.d.ts +1 -0
  49. package/dist/Shared/Components/Popover/Popover.component.d.ts +1 -1
  50. package/dist/Shared/Components/Popover/types.d.ts +5 -3
  51. package/dist/Shared/Components/Security/SecurityModal/utils.d.ts +1 -1
  52. package/dist/Shared/Components/Switch/Switch.component.d.ts +3 -0
  53. package/dist/Shared/Components/Switch/constants.d.ts +14 -0
  54. package/dist/Shared/Components/Switch/index.d.ts +2 -0
  55. package/dist/Shared/Components/Switch/types.d.ts +102 -0
  56. package/dist/Shared/Components/Switch/utils.d.ts +12 -0
  57. package/dist/Shared/Components/ThemeSwitcher/ThemeSwitcher.component.d.ts +1 -1
  58. package/dist/Shared/Components/ThemeSwitcher/index.d.ts +0 -1
  59. package/dist/Shared/Components/ThemeSwitcher/types.d.ts +1 -1
  60. package/dist/Shared/Components/index.d.ts +2 -1
  61. package/dist/Shared/Helpers.d.ts +1 -0
  62. package/dist/Shared/Providers/index.d.ts +1 -1
  63. package/dist/Shared/Providers/types.d.ts +20 -0
  64. package/dist/Shared/constants.d.ts +1 -0
  65. package/dist/Shared/types.d.ts +25 -0
  66. package/dist/Shared/validations.d.ts +1 -0
  67. package/dist/assets/@code-editor.css +1 -1
  68. package/dist/assets/empty-create.661d9355.png +0 -0
  69. package/dist/assets/ic-app-template.82736707.svg +23 -0
  70. package/dist/assets/ic-devtron-app.a8b688d3.svg +23 -0
  71. package/dist/assets/ic-devtron-job.1b216232.svg +10 -0
  72. package/dist/assets/ic-email.78fed574.svg +3 -0
  73. package/dist/assets/ic-key-enter.59d23056.svg +3 -0
  74. package/dist/assets/ic-spray-can.624b202a.svg +3 -0
  75. package/dist/index.js +796 -787
  76. package/package.json +1 -2
  77. package/dist/Shared/Components/DiffViewer/DiffViewer.component.d.ts +0 -41
  78. package/dist/Shared/Components/DiffViewer/constants.d.ts +0 -2
  79. package/dist/Shared/Components/DiffViewer/index.d.ts +0 -1
  80. package/dist/Shared/Components/DiffViewer/types.d.ts +0 -9
  81. package/dist/Shared/Components/FramerComponents/MotionDiv.d.ts +0 -2
  82. package/dist/Shared/Components/LogoutCard.d.ts +0 -10
  83. package/dist/assets/ic-arrow-square-out.3d1a0d41.svg +0 -19
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@devtron-labs/devtron-fe-common-lib",
3
- "version": "1.14.2",
3
+ "version": "1.15.0",
4
4
  "description": "Supporting common component library",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -122,7 +122,6 @@
122
122
  "qrcode.react": "^4.2.0",
123
123
  "react-canvas-confetti": "^2.0.7",
124
124
  "react-dates": "^21.8.0",
125
- "react-diff-viewer-continued": "^3.4.0",
126
125
  "react-draggable": "^4.4.5",
127
126
  "react-international-phone": "^4.5.0",
128
127
  "react-virtualized-sticky-tree": "^3.0.0-beta18",
@@ -1,41 +0,0 @@
1
- import { DiffViewerProps } from './types';
2
- /**
3
- * Component for showing diff between two string or object.
4
- *
5
- * Note: Pass down the object as stringified for optimized performance.
6
- *
7
- * @example Usage
8
- *
9
- * ```tsx
10
- * <DiffViewer
11
- * oldValue={oldValue}
12
- * newValue={newValue}
13
- * />
14
- * ```
15
- *
16
- * @example With left/right title for lhs/rhs
17
- *
18
- * ```tsx
19
- * <DiffViewer
20
- * oldValue={oldValue}
21
- * newValue={newValue}
22
- * leftTitle="Title for LHS"
23
- * rightTitle={
24
- * <span>Title for RHS</span>
25
- * }
26
- * />
27
- * ```
28
- *
29
- * @example With custom message for folded code
30
- * Note: the entire section would be clickable
31
- *
32
- * ```tsx
33
- * <DiffViewer
34
- * oldValue={oldValue}
35
- * newValue={newValue}
36
- * codeFoldMessageRenderer={(totalFoldedLines, leftStartLineNumber, rightStartLineNumber) => <span>Custom text</span>}
37
- * />
38
- * ```
39
- */
40
- declare const DiffViewer: ({ oldValue, newValue, leftTitle, rightTitle, ...props }: DiffViewerProps) => JSX.Element;
41
- export default DiffViewer;
@@ -1,2 +0,0 @@
1
- import { ReactDiffViewerProps } from 'react-diff-viewer-continued';
2
- export declare const diffViewerStyles: ReactDiffViewerProps['styles'];
@@ -1 +0,0 @@
1
- export { default as DiffViewer } from './DiffViewer.component';
@@ -1,9 +0,0 @@
1
- import { ReactNode } from 'react';
2
- import { ReactDiffViewerProps } from 'react-diff-viewer-continued';
3
- export interface DiffViewerProps extends Pick<ReactDiffViewerProps, 'oldValue' | 'newValue' | 'codeFoldMessageRenderer'> {
4
- leftTitle?: ReactDiffViewerProps['leftTitle'] | ReactNode;
5
- rightTitle?: ReactDiffViewerProps['rightTitle'] | ReactNode;
6
- }
7
- export interface DiffViewTitleWrapperProps {
8
- title: DiffViewerProps['leftTitle'];
9
- }
@@ -1,2 +0,0 @@
1
- import { HTMLMotionProps } from 'framer-motion';
2
- export declare const MotionDiv: (props: HTMLMotionProps<"div">) => JSX.Element;
@@ -1,10 +0,0 @@
1
- import { default as React } from 'react';
2
- interface LogoutCardType {
3
- className: string;
4
- userFirstLetter: string;
5
- setShowLogOutCard: React.Dispatch<React.SetStateAction<boolean>>;
6
- showLogOutCard: boolean;
7
- }
8
- export declare const LOGOUT_CARD_BASE_BUTTON_CLASS = "dc__unset-button-styles dc__content-space px-12 py-8 fs-13 fw-4 lh-20 cursor w-100 flex left br-4";
9
- declare const LogoutCard: ({ className, userFirstLetter, setShowLogOutCard, showLogOutCard }: LogoutCardType) => JSX.Element;
10
- export default LogoutCard;
@@ -1,19 +0,0 @@
1
- <!--
2
- - Copyright (c) 2024. Devtron Inc.
3
- -
4
- - Licensed under the Apache License, Version 2.0 (the "License");
5
- - you may not use this file except in compliance with the License.
6
- - You may obtain a copy of the License at
7
- -
8
- - http://www.apache.org/licenses/LICENSE-2.0
9
- -
10
- - Unless required by applicable law or agreed to in writing, software
11
- - distributed under the License is distributed on an "AS IS" BASIS,
12
- - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
- - See the License for the specific language governing permissions and
14
- - limitations under the License.
15
- -->
16
-
17
- <svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
18
- <path d="M13.5 6.25L13.4995 2.5005L9.75 2.5M8.99821 7.00179L13.4982 2.50179M11.5 9V13C11.5 13.1326 11.4473 13.2598 11.3536 13.3536C11.2598 13.4473 11.1326 13.5 11 13.5H3C2.86739 13.5 2.74021 13.4473 2.64645 13.3536C2.55268 13.2598 2.5 13.1326 2.5 13V5C2.5 4.86739 2.55268 4.74021 2.64645 4.64645C2.74021 4.55268 2.86739 4.5 3 4.5H7" stroke="#fff" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
19
- </svg>