@devtron-labs/devtron-fe-common-lib 1.15.1-beta-5 → 1.15.1-pre-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.
Files changed (70) hide show
  1. package/dist/{@code-editor-D3u1HU6g.js → @code-editor-xNsLtfRd.js} +7908 -7788
  2. package/dist/{@common-rjsf-BWZsX9t4.js → @common-rjsf-iH1FvWN3.js} +222 -230
  3. package/dist/Common/Dialogs/Types.d.ts +0 -17
  4. package/dist/Common/Dialogs/index.d.ts +0 -1
  5. package/dist/Common/RJSF/widgets/Checkbox.d.ts +1 -1
  6. package/dist/Common/Types.d.ts +1 -43
  7. package/dist/Common/index.d.ts +0 -2
  8. package/dist/Pages/ResourceBrowser/ResourceBrowser.Types.d.ts +2 -46
  9. package/dist/Pages/ResourceBrowser/constants.d.ts +0 -2
  10. package/dist/Pages/ResourceBrowser/service.d.ts +1 -1
  11. package/dist/Shared/Analytics/analytics.d.ts +2 -0
  12. package/dist/Shared/Components/Button/Button.component.d.ts +1 -1
  13. package/dist/Shared/Components/CICDHistory/DeploymentHistoryConfigDiff/utils.d.ts +2 -1
  14. package/dist/Shared/Components/CICDHistory/service.d.ts +1 -7
  15. package/dist/Shared/Components/CICDHistory/types.d.ts +2 -18
  16. package/dist/Shared/Components/DeploymentConfigDiff/DeploymentConfigDiff.types.d.ts +18 -1
  17. package/dist/Shared/Components/DeploymentConfigDiff/DeploymentConfigDiffRadioSelect.d.ts +7 -0
  18. package/dist/Shared/Components/DeploymentConfigDiff/index.d.ts +1 -0
  19. package/dist/Shared/Components/DocLink/types.d.ts +1 -0
  20. package/dist/Shared/Components/DocLink/utils.d.ts +1 -1
  21. package/dist/Shared/Components/Icon/Icon.d.ts +9 -4
  22. package/dist/Shared/Components/Popover/types.d.ts +5 -0
  23. package/dist/Shared/Components/Popover/usePopover.hook.d.ts +1 -1
  24. package/dist/Shared/Components/Switch/Switch.component.d.ts +1 -1
  25. package/dist/Shared/Components/Switch/types.d.ts +11 -2
  26. package/dist/Shared/Components/Switch/utils.d.ts +2 -2
  27. package/dist/Shared/Components/SwitchThemeDialog/SwitchThemeDialog.component.d.ts +3 -0
  28. package/dist/Shared/Components/SwitchThemeDialog/index.d.ts +2 -0
  29. package/dist/Shared/Components/SwitchThemeDialog/types.d.ts +35 -0
  30. package/dist/Shared/Components/Textarea/Textarea.component.d.ts +1 -1
  31. package/dist/Shared/Components/Textarea/types.d.ts +17 -1
  32. package/dist/Shared/Components/Textarea/utils.d.ts +5 -0
  33. package/dist/Shared/Components/ToggleResolveScopedVariables/ToggleResolveScopedVariables.component.d.ts +1 -1
  34. package/dist/Shared/Components/ToggleResolveScopedVariables/types.d.ts +1 -1
  35. package/dist/Shared/Components/Typewriter/BlinkingCursor.d.ts +1 -0
  36. package/dist/Shared/Components/Typewriter/index.d.ts +2 -0
  37. package/dist/Shared/Components/Typewriter/useTypewriter.d.ts +1 -0
  38. package/dist/Shared/Components/index.d.ts +2 -0
  39. package/dist/Shared/Helpers.d.ts +1 -2
  40. package/dist/Shared/Providers/index.d.ts +1 -0
  41. package/dist/Shared/Providers/types.d.ts +39 -12
  42. package/dist/Shared/Services/app.types.d.ts +7 -2
  43. package/dist/Shared/constants.d.ts +2 -1
  44. package/dist/Shared/types.d.ts +8 -4
  45. package/dist/assets/@code-editor.css +1 -1
  46. package/dist/assets/@common-rjsf.css +1 -1
  47. package/dist/assets/ic-add.2d785695.svg +3 -0
  48. package/dist/assets/ic-asterisk.ab224e72.svg +3 -0
  49. package/dist/assets/ic-brain.838491eb.svg +3 -0
  50. package/dist/assets/ic-devtron-ai.535b45ec.svg +287 -0
  51. package/dist/assets/ic-folder-color.7cf84356.svg +6 -0
  52. package/dist/assets/{ic-minus.aac464f7.svg → ic-minus.416da21b.svg} +1 -1
  53. package/dist/assets/ic-paper-plane.ad7e6d2f.svg +3 -0
  54. package/dist/assets/ic-sparkle-ai-color.d123b325.svg +16 -0
  55. package/dist/assets/ic-sparkle-color.a9722593.svg +18 -0
  56. package/dist/assets/ic-stop-fill.32ea653f.svg +8 -0
  57. package/dist/assets/ic-world-globe.877fa6a0.svg +3 -0
  58. package/dist/index.d.ts +7 -0
  59. package/dist/index.js +767 -773
  60. package/package.json +3 -3
  61. package/dist/Common/Dialogs/ConfirmationDialog.d.ts +0 -11
  62. package/dist/Common/InfoColorBar/InfoColourbar.d.ts +0 -6
  63. package/dist/Common/Toggle/Toggle.d.ts +0 -18
  64. package/dist/assets/ic-add.18a93616.svg +0 -19
  65. package/dist/assets/ic-container.92a4c33a.svg +0 -3
  66. package/dist/assets/ic-gavel.a3b064b5.svg +0 -3
  67. package/dist/assets/ic-sparkle-color.01c0be88.svg +0 -1
  68. package/dist/assets/ic-speedometer.3ecaae3b.svg +0 -3
  69. package/dist/assets/ic-two-cubes.056d1333.svg +0 -3
  70. /package/dist/assets/{ic-container-registry.4e1e6455.svg → ic-container.4e1e6455.svg} +0 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@devtron-labs/devtron-fe-common-lib",
3
- "version": "1.15.1-beta-5",
3
+ "version": "1.15.1-pre-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.17",
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",
@@ -135,7 +135,7 @@
135
135
  "react-dom": "^17.0.2"
136
136
  },
137
137
  "vite-plugin-svgr": {
138
- "vite": "5.4.17"
138
+ "vite": "5.4.19"
139
139
  },
140
140
  "react-virtualized-sticky-tree": {
141
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,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 xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24">
18
- <path stroke="#3B444C" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" d="M6 12h12m-6-6v12" vector-effect="non-scaling-stroke"/>
19
- </svg>
@@ -1,3 +0,0 @@
1
- <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24">
2
- <path stroke="#3B444C" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" d="M12 4.5v15m0-15 9.956 2.842a.75.75 0 0 1 .544.72v7.876a.75.75 0 0 1-.544.718L12 19.5m0-15L2.144 5.906a.75.75 0 0 0-.644.745v10.698a.75.75 0 0 0 .644.745L12 19.5M9 12H4.5m2.25-6.75v13.5" vector-effect="non-scaling-stroke"/>
3
- </svg>
@@ -1,3 +0,0 @@
1
- <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24">
2
- <path stroke="#3B444C" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" d="m13.656 4.655 5.688 5.689M8.406 9.905l5.688 5.689m-1.719-1.72-6.656 6.657a1.594 1.594 0 0 1-2.25 0 1.594 1.594 0 0 1 0-2.25l6.656-6.656M5.471 7.718l6-6a.75.75 0 0 1 1.06 0l1.5 1.5a.75.75 0 0 1 0 1.06l-6 6a.75.75 0 0 1-1.06 0l-1.5-1.5a.75.75 0 0 1 0-1.06Zm8.25 8.25 6-6a.75.75 0 0 1 1.06 0l1.5 1.5a.75.75 0 0 1 0 1.06l-6 6a.75.75 0 0 1-1.06 0l-1.5-1.5a.75.75 0 0 1 0-1.06Z" vector-effect="non-scaling-stroke"/>
3
- </svg>
@@ -1 +0,0 @@
1
- <svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="m22.898 11.262-5.933-2.196-2.215-7.26a.666.666 0 0 0-1.275 0l-2.214 7.26-5.934 2.196a.667.667 0 0 0 0 1.25l5.93 2.196 2.216 7.482a.666.666 0 0 0 1.279 0l2.216-7.483 5.93-2.195a.665.665 0 0 0 0-1.25" fill="#FFAC33"/><path d="m9.565 18.597-1.543-.571-.6-2.2a.665.665 0 0 0-1.286 0l-.6 2.2-1.542.57a.667.667 0 0 0 0 1.25l1.534.57.605 2.414a.667.667 0 0 0 1.293 0l.605-2.415 1.534-.57a.665.665 0 0 0 0-1.248M6.673 4.153 5.097 3.57l-.584-1.577a.666.666 0 0 0-1.251 0L2.679 3.57l-1.577.583a.667.667 0 0 0 0 1.251l1.577.583.583 1.577a.667.667 0 0 0 1.25 0l.584-1.577 1.577-.583a.667.667 0 0 0 0-1.25" fill="#FFCC4D"/></svg>
@@ -1,3 +0,0 @@
1
- <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24">
2
- <path stroke="#3B444C" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" d="m12 7.01.01-.011M16 9.01l.01-.011M8 9.01l.01-.011M18 13.01l.01-.011M6 13.01l.01-.011M17 17.01l.01-.011M7 17.01l.01-.011M13 11l-.669 6.018M8.5 20.001H4A9.956 9.956 0 0 1 2 14C2 8.477 6.477 4 12 4s10 4.477 10 10c0 2.252-.744 4.33-2 6.001L15.5 20m-3.169-2.982a3 3 0 1 1-.663 5.964 3 3 0 0 1 .663-5.964Z" vector-effect="non-scaling-stroke"/>
3
- </svg>
@@ -1,3 +0,0 @@
1
- <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24">
2
- <path stroke="#3B444C" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" d="m9.06 10.276 5.872-3.335a.5.5 0 0 0-.187-.183l-5.5-3.094a.5.5 0 0 0-.49 0l-5.5 3.094A.5.5 0 0 0 3 7.193v6.165a.5.5 0 0 0 .255.436l5.5 3.094a.5.5 0 0 0 .245.064l.06-6.676Zm0 0L3.07 6.939m17.862 3.402a.5.5 0 0 1 .068.252v6.166a.5.5 0 0 1-.255.435l-5.5 3.094a.5.5 0 0 1-.245.064m5.932-10.011a.5.5 0 0 0-.187-.183l-5.5-3.094a.5.5 0 0 0-.49 0l-5.5 3.094a.5.5 0 0 0-.255.435v6.166a.5.5 0 0 0 .255.435l5.5 3.094a.5.5 0 0 0 .245.064m5.932-10.011-5.873 3.335M15 20.352l.06-6.676m0 0-5.99-3.337" vector-effect="non-scaling-stroke"/>
3
- </svg>