@devtron-labs/devtron-fe-common-lib 1.14.2 → 1.15.0-beta-2
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-CVEmKqGD.js → @code-editor-BOA86Jx7.js} +11052 -10723
- package/dist/{@common-rjsf-C9V3H0_L.js → @common-rjsf-CGZ8FKPl.js} +222 -230
- package/dist/{@framer-motion-eB9Rj-_8.js → @framer-motion-Dchiw-Rb.js} +3 -3
- package/dist/{@react-dates-CJpoumtu.js → @react-dates-D5kydtW-.js} +1 -1
- package/dist/{@react-select-CUbAbK6L.js → @react-select-Cmser7OI.js} +6 -6
- package/dist/{@react-virtualized-sticky-tree-Ckb5S1RC.js → @react-virtualized-sticky-tree-DMnFy9PE.js} +1 -1
- package/dist/{@vendor-4cEd9dja.js → @vendor-STJ9h0oI.js} +14016 -15910
- package/dist/Common/Constants.d.ts +4 -11
- package/dist/Common/Dialogs/Types.d.ts +0 -17
- package/dist/Common/Dialogs/index.d.ts +0 -1
- package/dist/Common/RJSF/widgets/Checkbox.d.ts +1 -1
- package/dist/Common/SegmentedControl/Segment.d.ts +1 -1
- package/dist/Common/SegmentedControl/types.d.ts +3 -2
- package/dist/Common/TippyCustomized.d.ts +1 -1
- package/dist/Common/Types.d.ts +8 -48
- package/dist/Common/index.d.ts +0 -2
- package/dist/Shared/Components/ActionMenu/types.d.ts +31 -4
- package/dist/Shared/Components/ActionMenu/useActionMenu.hook.d.ts +4 -2
- package/dist/Shared/Components/Button/Button.component.d.ts +1 -1
- package/dist/Shared/Components/Button/constants.d.ts +1 -0
- package/dist/Shared/Components/Button/types.d.ts +14 -1
- package/dist/Shared/Components/Button/utils.d.ts +1 -1
- package/dist/Shared/Components/CICDHistory/DeploymentHistoryConfigDiff/DeploymentHistoryDiffView.d.ts +1 -1
- package/dist/Shared/Components/CICDHistory/DeploymentHistoryConfigDiff/utils.d.ts +2 -1
- package/dist/Shared/Components/CICDHistory/service.d.ts +1 -7
- package/dist/Shared/Components/CICDHistory/types.d.ts +2 -19
- package/dist/Shared/Components/CodeEditor/CodeEditor.d.ts +1 -1
- package/dist/Shared/Components/CodeEditor/CodeEditorRenderer.d.ts +1 -1
- package/dist/Shared/Components/CodeEditor/Extensions/findAndReplace.d.ts +2 -1
- package/dist/Shared/Components/CodeEditor/types.d.ts +14 -1
- package/dist/Shared/Components/DeploymentConfigDiff/DeploymentConfigDiff.types.d.ts +18 -1
- package/dist/Shared/Components/DeploymentConfigDiff/DeploymentConfigDiff.utils.d.ts +0 -2
- package/dist/Shared/Components/DeploymentConfigDiff/DeploymentConfigDiffRadioSelect.d.ts +7 -0
- package/dist/Shared/Components/DeploymentConfigDiff/index.d.ts +1 -0
- package/dist/Shared/Components/DocLink/DocLink.d.ts +2 -0
- package/dist/Shared/Components/DocLink/constants.d.ts +94 -0
- package/dist/Shared/Components/DocLink/index.d.ts +4 -0
- package/dist/Shared/Components/DocLink/types.d.ts +19 -0
- package/dist/Shared/Components/DocLink/utils.d.ts +2 -0
- package/dist/Shared/Components/DynamicDataTable/DynamicDataTable.d.ts +1 -1
- package/dist/Shared/Components/DynamicDataTable/DynamicDataTableRow.d.ts +1 -1
- package/dist/Shared/Components/DynamicDataTable/types.d.ts +8 -4
- package/dist/Shared/Components/FeatureDescription/types.d.ts +2 -1
- package/dist/Shared/Components/FramerComponents/index.d.ts +2 -3
- package/dist/Shared/Components/GenericInfoCard/GenericInfoCardListing.d.ts +2 -0
- package/dist/Shared/Components/GenericInfoCard/GenericInfoListSkeleton.d.ts +2 -0
- package/dist/Shared/Components/GenericInfoCard/index.d.ts +3 -1
- package/dist/Shared/Components/GenericInfoCard/types.d.ts +13 -0
- package/dist/Shared/Components/Header/ProfileMenu.d.ts +2 -0
- package/dist/Shared/Components/Header/types.d.ts +8 -8
- package/dist/Shared/Components/Header/utils.d.ts +0 -2
- package/dist/Shared/Components/Icon/Icon.d.ts +9 -0
- package/dist/Shared/Components/InfoIconTippy/InfoIconTippy.d.ts +1 -1
- package/dist/Shared/Components/KeyValueTable/KeyValueTable.component.d.ts +1 -1
- package/dist/Shared/Components/KeyValueTable/KeyValueTable.types.d.ts +1 -1
- package/dist/Shared/Components/ModalSidebarPanel/types.d.ts +2 -1
- package/dist/Shared/Components/NumbersCount/index.d.ts +1 -0
- package/dist/Shared/Components/Popover/Popover.component.d.ts +1 -1
- package/dist/Shared/Components/Popover/types.d.ts +10 -3
- package/dist/Shared/Components/Popover/usePopover.hook.d.ts +1 -1
- package/dist/Shared/Components/Security/SecurityModal/utils.d.ts +1 -1
- package/dist/Shared/Components/Switch/Switch.component.d.ts +3 -0
- package/dist/Shared/Components/Switch/constants.d.ts +14 -0
- package/dist/Shared/Components/Switch/index.d.ts +2 -0
- package/dist/Shared/Components/Switch/types.d.ts +111 -0
- package/dist/Shared/Components/Switch/utils.d.ts +12 -0
- package/dist/Shared/Components/SwitchThemeDialog/SwitchThemeDialog.component.d.ts +3 -0
- package/dist/Shared/Components/SwitchThemeDialog/index.d.ts +2 -0
- package/dist/Shared/Components/SwitchThemeDialog/types.d.ts +35 -0
- package/dist/Shared/Components/ThemeSwitcher/ThemeSwitcher.component.d.ts +1 -1
- package/dist/Shared/Components/ThemeSwitcher/index.d.ts +0 -1
- package/dist/Shared/Components/ThemeSwitcher/types.d.ts +1 -1
- package/dist/Shared/Components/ToggleResolveScopedVariables/ToggleResolveScopedVariables.component.d.ts +1 -1
- package/dist/Shared/Components/ToggleResolveScopedVariables/types.d.ts +1 -1
- package/dist/Shared/Components/index.d.ts +3 -1
- package/dist/Shared/Helpers.d.ts +1 -0
- package/dist/Shared/Providers/index.d.ts +1 -1
- package/dist/Shared/Providers/types.d.ts +47 -9
- package/dist/Shared/Services/app.types.d.ts +7 -2
- package/dist/Shared/constants.d.ts +3 -1
- package/dist/Shared/types.d.ts +32 -2
- package/dist/Shared/validations.d.ts +1 -0
- package/dist/assets/@code-editor.css +1 -1
- package/dist/assets/empty-create.661d9355.png +0 -0
- package/dist/assets/ic-app-template.82736707.svg +23 -0
- package/dist/assets/ic-asterisk.ab224e72.svg +3 -0
- package/dist/assets/ic-devtron-app.a8b688d3.svg +23 -0
- package/dist/assets/ic-devtron-job.1b216232.svg +10 -0
- package/dist/assets/ic-email.78fed574.svg +3 -0
- package/dist/assets/ic-key-enter.59d23056.svg +3 -0
- package/dist/assets/ic-spray-can.624b202a.svg +3 -0
- package/dist/assets/ic-world-globe.877fa6a0.svg +3 -0
- package/dist/index.js +727 -724
- package/package.json +3 -4
- package/dist/Common/Dialogs/ConfirmationDialog.d.ts +0 -11
- package/dist/Common/InfoColorBar/InfoColourbar.d.ts +0 -6
- package/dist/Common/Toggle/Toggle.d.ts +0 -18
- package/dist/Shared/Components/DiffViewer/DiffViewer.component.d.ts +0 -41
- package/dist/Shared/Components/DiffViewer/constants.d.ts +0 -2
- package/dist/Shared/Components/DiffViewer/index.d.ts +0 -1
- package/dist/Shared/Components/DiffViewer/types.d.ts +0 -9
- package/dist/Shared/Components/FramerComponents/MotionDiv.d.ts +0 -2
- package/dist/Shared/Components/LogoutCard.d.ts +0 -10
- 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.
|
3
|
+
"version": "1.15.0-beta-2",
|
4
4
|
"description": "Supporting common component library",
|
5
5
|
"type": "module",
|
6
6
|
"main": "dist/index.js",
|
@@ -72,7 +72,7 @@
|
|
72
72
|
"sharp": "^0.33.5",
|
73
73
|
"svgo": "^3.3.2",
|
74
74
|
"typescript": "5.5.4",
|
75
|
-
"vite": "5.4.
|
75
|
+
"vite": "5.4.19",
|
76
76
|
"vite-plugin-dts": "4.0.3",
|
77
77
|
"vite-plugin-image-optimizer": "^1.1.8",
|
78
78
|
"vite-plugin-lib-inject-css": "2.1.1",
|
@@ -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",
|
@@ -136,7 +135,7 @@
|
|
136
135
|
"react-dom": "^17.0.2"
|
137
136
|
},
|
138
137
|
"vite-plugin-svgr": {
|
139
|
-
"vite": "5.4.
|
138
|
+
"vite": "5.4.19"
|
140
139
|
},
|
141
140
|
"react-virtualized-sticky-tree": {
|
142
141
|
"react": "^17.0.2",
|
@@ -1,11 +0,0 @@
|
|
1
|
-
import { ConfirmationDialogBodyType, ConfirmationDialogButtonGroupType, ConfirmationDialogIconType, ConfirmationDialogType } from './Types';
|
2
|
-
/**
|
3
|
-
* @deprecated use confirmation modal instead
|
4
|
-
*/
|
5
|
-
declare const ConfirmationDialog: {
|
6
|
-
({ className, children, close }: ConfirmationDialogType): JSX.Element;
|
7
|
-
Icon: ({ src, className }: ConfirmationDialogIconType) => JSX.Element;
|
8
|
-
Body: ({ title, subtitle, children }: ConfirmationDialogBodyType) => JSX.Element;
|
9
|
-
ButtonGroup: ({ children }: ConfirmationDialogButtonGroupType) => JSX.Element;
|
10
|
-
};
|
11
|
-
export default ConfirmationDialog;
|
@@ -1,6 +0,0 @@
|
|
1
|
-
import { InfoColourBarType } from '../Types';
|
2
|
-
/**
|
3
|
-
* @deprecated Use InfoBlock instead
|
4
|
-
*/
|
5
|
-
declare const InfoColourBar: ({ message, classname, Icon, iconClass, iconSize, renderActionButton, linkText, redirectLink, linkOnClick, linkClass, internalLink, styles, hideIcon, textConfig, }: InfoColourBarType) => JSX.Element;
|
6
|
-
export default InfoColourBar;
|
@@ -1,18 +0,0 @@
|
|
1
|
-
import { CHECKBOX_VALUE } from '../Types';
|
2
|
-
declare const Toggle: ({ selected, onSelect, color, rootClassName, disabled, dataTestId, Icon, iconClass, throttleOnChange, shouldToggleValueOnLabelClick, isLoading, value, isControlled, ...props }: {
|
3
|
-
[x: string]: any;
|
4
|
-
selected?: boolean;
|
5
|
-
onSelect?: any;
|
6
|
-
color?: string;
|
7
|
-
rootClassName?: string;
|
8
|
-
disabled?: boolean;
|
9
|
-
dataTestId?: string;
|
10
|
-
Icon?: any;
|
11
|
-
iconClass?: string;
|
12
|
-
throttleOnChange?: boolean;
|
13
|
-
shouldToggleValueOnLabelClick?: boolean;
|
14
|
-
isLoading?: boolean;
|
15
|
-
value?: CHECKBOX_VALUE;
|
16
|
-
isControlled?: boolean;
|
17
|
-
}) => JSX.Element;
|
18
|
-
export default Toggle;
|
@@ -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 +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,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>
|