@devtron-labs/devtron-fe-common-lib 1.7.2-beta-3 → 1.7.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 (34) hide show
  1. package/dist/{@code-editor-DF4xpSML.js → @code-editor-DNNW9VT4.js} +5691 -5777
  2. package/dist/{@common-rjsf-DkYtZEPs.js → @common-rjsf-BwlfG32o.js} +2 -2
  3. package/dist/{@framer-motion-C9i0O6dh.js → @framer-motion-C88ROIS4.js} +1 -1
  4. package/dist/{@react-dates-DEMedmhG.js → @react-dates-Ct1VA7V6.js} +1 -1
  5. package/dist/{@react-select-DD4GMsWv.js → @react-select-qU4oRypC.js} +1 -1
  6. package/dist/{@react-virtualized-sticky-tree-BlYAzsAg.js → @react-virtualized-sticky-tree-DmvoaDNw.js} +1 -1
  7. package/dist/{@vendor-CIA81cZg.js → @vendor-C6rSXA7p.js} +2346 -2343
  8. package/dist/Common/CustomInput/CustomInput.d.ts +2 -0
  9. package/dist/Common/CustomInput/Types.d.ts +30 -0
  10. package/dist/Common/CustomInput/index.d.ts +2 -0
  11. package/dist/Common/RJSF/Form.d.ts +1 -1
  12. package/dist/Common/Tooltip/index.d.ts +0 -1
  13. package/dist/Common/index.d.ts +1 -0
  14. package/dist/Shared/Components/Button/Button.component.d.ts +2 -2
  15. package/dist/Shared/Components/Button/types.d.ts +10 -10
  16. package/dist/Shared/Components/FormFieldWrapper/FormFieldLabel.d.ts +1 -1
  17. package/dist/Shared/Components/FormFieldWrapper/FormFieldWrapper.d.ts +1 -1
  18. package/dist/Shared/Components/FormFieldWrapper/types.d.ts +4 -19
  19. package/dist/Shared/Components/ReactSelect/utils.d.ts +1 -0
  20. package/dist/Shared/Components/SelectPicker/SelectPicker.component.d.ts +1 -1
  21. package/dist/Shared/Components/Textarea/Textarea.component.d.ts +1 -1
  22. package/dist/Shared/Components/index.d.ts +0 -1
  23. package/dist/Shared/Helpers.d.ts +2 -4
  24. package/dist/Shared/Services/ToastManager/types.d.ts +3 -3
  25. package/dist/assets/@code-editor.css +1 -1
  26. package/dist/index.js +346 -345
  27. package/package.json +3 -3
  28. package/dist/Shared/Components/CustomInput/CustomInput.d.ts +0 -3
  29. package/dist/Shared/Components/CustomInput/PasswordField.d.ts +0 -3
  30. package/dist/Shared/Components/CustomInput/constants.d.ts +0 -3
  31. package/dist/Shared/Components/CustomInput/index.d.ts +0 -3
  32. package/dist/Shared/Components/CustomInput/types.d.ts +0 -36
  33. package/dist/assets/ic-visibility-off.d91d3844.svg +0 -19
  34. package/dist/assets/ic-visibility-on.7505dd12.svg +0 -20
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@devtron-labs/devtron-fe-common-lib",
3
- "version": "1.7.2-beta-3",
3
+ "version": "1.7.2",
4
4
  "description": "Supporting common component library",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -84,7 +84,7 @@
84
84
  "@rjsf/utils": "^5.13.3",
85
85
  "@rjsf/validator-ajv8": "^5.13.3",
86
86
  "@typeform/embed-react": "2.20.0",
87
- "dompurify": "^3.2.4",
87
+ "dompurify": "^3.0.2",
88
88
  "patch-package": "^8.0.0",
89
89
  "react": "^17.0.2",
90
90
  "react-dom": "^17.0.2",
@@ -111,7 +111,7 @@
111
111
  "dayjs": "^1.11.13",
112
112
  "fast-json-patch": "^3.1.1",
113
113
  "framer-motion": "^6.5.1",
114
- "jsonpath-plus": "^10.3.0",
114
+ "jsonpath-plus": "^10.0.0",
115
115
  "marked": "^13.0.3",
116
116
  "nanoid": "^3.3.8",
117
117
  "react-codemirror-merge": "4.23.6",
@@ -1,3 +0,0 @@
1
- import { CustomInputProps } from './types';
2
- declare const CustomInput: ({ name, label, fullWidth, error, helperText, warningText, layout, required, onBlur, shouldTrim, size, ariaLabel, borderConfig, borderRadiusConfig, type, autoFocus, endIconButtonConfig, labelTippyCustomizedConfig, labelTooltipConfig, ...props }: CustomInputProps) => JSX.Element;
3
- export default CustomInput;
@@ -1,3 +0,0 @@
1
- import { PasswordFieldProps } from './types';
2
- declare const PasswordField: ({ onFocus, onBlur, shouldShowDefaultPlaceholderOnBlur, ...props }: PasswordFieldProps) => JSX.Element;
3
- export default PasswordField;
@@ -1,3 +0,0 @@
1
- import { ButtonProps } from '../Button';
2
- import { CustomInputProps } from './types';
3
- export declare const CUSTOM_INPUT_TO_ICON_BUTTON_SIZE_MAP: Record<CustomInputProps['size'], ButtonProps['size']>;
@@ -1,3 +0,0 @@
1
- export { default as CustomInput } from './CustomInput';
2
- export { default as PasswordField } from './PasswordField';
3
- export type { CustomInputProps, PasswordFieldProps } from './types';
@@ -1,36 +0,0 @@
1
- import { InputHTMLAttributes } from 'react';
2
- import { ComponentSizeType } from '../../constants';
3
- import { FormFieldWrapperProps } from '../FormFieldWrapper';
4
- import { ButtonComponentType, ButtonProps } from '../Button';
5
- export interface CustomInputProps extends Omit<FormFieldWrapperProps, 'children' | 'inputId'>, Pick<InputHTMLAttributes<HTMLInputElement>, 'onBlur' | 'disabled' | 'autoFocus' | 'onFocus' | 'onKeyDown'>, Required<Pick<InputHTMLAttributes<HTMLInputElement>, 'placeholder' | 'onChange' | 'value' | 'name'>> {
6
- /**
7
- * If false, the input is not trimmed on blur
8
- *
9
- * @default true
10
- */
11
- shouldTrim?: boolean;
12
- /**
13
- * Size of the input
14
- *
15
- * @default ComponentSizeType.large
16
- */
17
- size?: Extract<ComponentSizeType, ComponentSizeType.medium | ComponentSizeType.large>;
18
- /**
19
- * Type for the input
20
- *
21
- * Note: For password field, use PasswordField component
22
- *
23
- * @default 'text'
24
- */
25
- type?: Exclude<InputHTMLAttributes<HTMLInputElement>['type'], 'password'>;
26
- /**
27
- * End icon button configuration
28
- */
29
- endIconButtonConfig?: Required<Pick<ButtonProps<ButtonComponentType.button>, 'icon' | 'onClick' | 'ariaLabel'>> & Pick<ButtonProps<ButtonComponentType.button>, 'disabled' | 'showAriaLabelInTippy' | 'style'>;
30
- }
31
- export interface PasswordFieldProps extends Omit<CustomInputProps, 'endIconButtonConfig' | 'type'> {
32
- /**
33
- * If true, the value is cleared & default placeholder is shown on blur
34
- */
35
- shouldShowDefaultPlaceholderOnBlur: boolean;
36
- }
@@ -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="m4.5 3.75 15 16.5m-4.977-5.475a3.75 3.75 0 0 1-5.046-5.55m-2.54-2.794C3.115 8.366 1.5 12 1.5 12s3 6.75 10.5 6.75a11.088 11.088 0 0 0 5.062-1.181m2.495-1.716C21.601 14.023 22.5 12 22.5 12s-3-6.75-10.5-6.75a11.75 11.75 0 0 0-1.939.157m2.645 2.91a3.752 3.752 0 0 1 3.028 3.33" vector-effect="non-scaling-stroke"/>
19
- </svg>
@@ -1,20 +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="M12 5.25C4.5 5.25 1.5 12 1.5 12s3 6.75 10.5 6.75S22.5 12 22.5 12s-3-6.75-10.5-6.75Z" vector-effect="non-scaling-stroke"/>
19
- <path stroke="#3B444C" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" d="M12 15.75a3.75 3.75 0 1 0 0-7.5 3.75 3.75 0 0 0 0 7.5Z" vector-effect="non-scaling-stroke"/>
20
- </svg>