@devtron-labs/devtron-fe-common-lib 0.0.92-beta-1 → 0.0.92-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.
Files changed (34) hide show
  1. package/dist/Common/InfoColorBar/InfoColourbar.d.ts +1 -1
  2. package/dist/Common/RJSF/common/FieldRow.d.ts +4 -1
  3. package/dist/Common/RJSF/common/types.d.ts +1 -1
  4. package/dist/Common/RJSF/constants.d.ts +1 -4
  5. package/dist/Common/RJSF/templates/ButtonTemplates/AddButton.d.ts +1 -1
  6. package/dist/Common/RJSF/templates/Description.d.ts +3 -0
  7. package/dist/Common/RJSF/templates/TitleField.d.ts +1 -1
  8. package/dist/Common/RJSF/templates/index.d.ts +1 -0
  9. package/dist/Common/RJSF/utils.d.ts +1 -3
  10. package/dist/Common/Types.d.ts +6 -0
  11. package/dist/Shared/Components/IframeContainer/IframeContainer.component.d.ts +4 -0
  12. package/dist/Shared/Components/IframeContainer/IframeElement.d.ts +4 -0
  13. package/dist/Shared/Components/IframeContainer/index.d.ts +1 -0
  14. package/dist/Shared/Components/IframeContainer/types.d.ts +15 -0
  15. package/dist/Shared/Components/index.d.ts +1 -0
  16. package/dist/assets/index.css +1 -1
  17. package/dist/{cssMode-c12fc82c.js → cssMode-85666277.js} +1 -1
  18. package/dist/{freemarker2-13bcce02.js → freemarker2-d14f3757.js} +1 -1
  19. package/dist/{handlebars-9d5b4ddd.js → handlebars-2b941877.js} +1 -1
  20. package/dist/{html-a33e70ef.js → html-b78575b9.js} +1 -1
  21. package/dist/{htmlMode-dccacf10.js → htmlMode-c293acb4.js} +1 -1
  22. package/dist/{index-ddb64f30.js → index-a88e034a.js} +13842 -13815
  23. package/dist/index.js +282 -281
  24. package/dist/{javascript-aaaf29e8.js → javascript-9732c945.js} +1 -1
  25. package/dist/{jsonMode-da2c663f.js → jsonMode-cbd86d48.js} +1 -1
  26. package/dist/{liquid-c0e3c2ae.js → liquid-5277e511.js} +1 -1
  27. package/dist/{mdx-85529d5b.js → mdx-6273e5a6.js} +1 -1
  28. package/dist/{python-c77c170d.js → python-aac0aa6c.js} +1 -1
  29. package/dist/{razor-ca39ff37.js → razor-803ac678.js} +1 -1
  30. package/dist/{tsMode-139e075c.js → tsMode-b0cb8d42.js} +1 -1
  31. package/dist/{typescript-cab8c9fe.js → typescript-dd808c1c.js} +1 -1
  32. package/dist/{xml-8627e817.js → xml-15f84b29.js} +1 -1
  33. package/dist/{yaml-71329abe.js → yaml-c7bbff0a.js} +1 -1
  34. package/package.json +1 -1
@@ -1,4 +1,4 @@
1
1
  import { InfoColourBarType } from '../Types';
2
2
 
3
- declare const InfoColourBar: ({ message, classname, Icon, iconClass, iconSize, renderActionButton, linkText, redirectLink, linkOnClick, linkClass, internalLink, styles, }: InfoColourBarType) => JSX.Element;
3
+ declare const InfoColourBar: ({ message, classname, Icon, iconClass, iconSize, renderActionButton, linkText, redirectLink, linkOnClick, linkClass, internalLink, styles, hideIcon }: InfoColourBarType) => JSX.Element;
4
4
  export default InfoColourBar;
@@ -1,3 +1,6 @@
1
+ import { DO_NOT_SHOW_LABEL } from '../constants';
1
2
  import { FieldRowProps } from './types';
2
3
 
3
- export declare const FieldRowWithLabel: ({ showLabel, label, required, children, id, rawDescription, shouldAlignCenter, }: FieldRowProps) => JSX.Element;
4
+ export declare const FieldRowWithLabel: ({ showLabel, label, required, children, id, shouldAlignCenter, }: Omit<FieldRowProps, "label"> & {
5
+ label: FieldRowProps['label'] | typeof DO_NOT_SHOW_LABEL;
6
+ }) => JSX.Element;
@@ -1,6 +1,6 @@
1
1
  import { FieldTemplateProps } from '@rjsf/utils';
2
2
 
3
- export interface FieldRowProps extends Pick<FieldTemplateProps, 'children' | 'label' | 'required' | 'id' | 'rawDescription'> {
3
+ export interface FieldRowProps extends Pick<FieldTemplateProps, 'children' | 'label' | 'required' | 'id'> {
4
4
  showLabel?: boolean;
5
5
  /**
6
6
  * @default true
@@ -4,7 +4,4 @@ export declare const PLACEHOLDERS: {
4
4
  OBJECT_KEY: string;
5
5
  };
6
6
  export declare const DEFAULT_FIELD_TITLE = "Key not available";
7
- export declare const ADD_BUTTON_WIDTH: {
8
- MAX_WIDTH_VALUE: number;
9
- MAX_WIDTH_CLASSNAME: string;
10
- };
7
+ export declare const DO_NOT_SHOW_LABEL: unique symbol;
@@ -1,3 +1,3 @@
1
1
  import { IconButtonProps } from '@rjsf/utils';
2
2
 
3
- export declare const AddButton: ({ label, icon, iconType, registry, uiSchema, ...props }: IconButtonProps & Partial<Record<'label', string>>) => JSX.Element;
3
+ export declare const AddButton: ({ icon, iconType, registry, uiSchema, ...props }: IconButtonProps) => JSX.Element;
@@ -0,0 +1,3 @@
1
+ import { DescriptionFieldProps } from '@rjsf/utils';
2
+
3
+ export declare const Description: ({ id, description }: DescriptionFieldProps) => JSX.Element;
@@ -1,3 +1,3 @@
1
1
  import { TitleFieldProps } from '@rjsf/utils';
2
2
 
3
- export declare const TitleField: ({ id, title, required, description }: TitleFieldProps & Partial<Record<'description', string>>) => JSX.Element;
3
+ export declare const TitleField: ({ id, title, required }: TitleFieldProps) => JSX.Element;
@@ -2,6 +2,7 @@ export { ArrayFieldTemplate } from './ArrayFieldTemplate';
2
2
  export { ArrayFieldItemTemplate } from './ArrayFieldItemTemplate';
3
3
  export { BaseInput as BaseInputTemplate } from './BaseInput';
4
4
  export * from './ButtonTemplates';
5
+ export { Description as DescriptionFieldTemplate } from './Description';
5
6
  export { Field as FieldTemplate } from './Field';
6
7
  export { FieldErrorTemplate } from './FieldErrorTemplate';
7
8
  export { ObjectFieldTemplate } from './ObjectFieldTemplate';
@@ -1,4 +1,3 @@
1
- import { default as Tippy } from '@tippyjs/react';
2
1
  import { TranslatableString } from '@rjsf/utils';
3
2
 
4
3
  /**
@@ -13,7 +12,7 @@ export declare const getCommonSelectStyle: (styleOverrides?: {}) => {
13
12
  valueContainer: (base: any, state: any) => any;
14
13
  loadingMessage: (base: any) => any;
15
14
  noOptionsMessage: (base: any) => any;
16
- multiValue: (base: any) => any;
15
+ multiValue: (base: any, state: any) => any;
17
16
  };
18
17
  /**
19
18
  * Returns the redirection props for a url
@@ -25,4 +24,3 @@ export declare const getRedirectionProps: (url: string) => import('react').Ancho
25
24
  * Infers the type for json schema from value type
26
25
  */
27
26
  export declare const getInferredTypeFromValueType: (value: any) => "string" | "number" | "boolean" | "object" | "array" | "null";
28
- export declare const getTippyWrapperWithContent: (content: any, placement?: React.ComponentProps<typeof Tippy>['placement']) => (children: any) => JSX.Element;
@@ -156,6 +156,12 @@ export interface InfoColourBarType {
156
156
  linkClass?: string;
157
157
  internalLink?: boolean;
158
158
  styles?: CSSProperties;
159
+ /**
160
+ * If true, the icon is not shown
161
+ *
162
+ * @default false
163
+ */
164
+ hideIcon?: boolean;
159
165
  }
160
166
  export interface ReloadType {
161
167
  reload?: (event?: any) => void;
@@ -0,0 +1,4 @@
1
+ import { IframeContainerProps } from './types';
2
+
3
+ declare const IframeContainer: ({ iframeList, maxHeight, maxWidth }: IframeContainerProps) => JSX.Element;
4
+ export default IframeContainer;
@@ -0,0 +1,4 @@
1
+ import { IframeElementProps } from './types';
2
+
3
+ declare const IframeElement: ({ URL, width, height, title, maxHeight, maxWidth }: IframeElementProps) => JSX.Element;
4
+ export default IframeElement;
@@ -0,0 +1 @@
1
+ export { default as IframeContainer } from './IframeContainer.component';
@@ -0,0 +1,15 @@
1
+ interface IframeData {
2
+ URL: string;
3
+ width: number;
4
+ height: number;
5
+ title: string;
6
+ order?: number;
7
+ }
8
+ export interface IframeContainerProps {
9
+ iframeList: IframeData[];
10
+ maxHeight?: number;
11
+ maxWidth?: number;
12
+ }
13
+ export interface IframeElementProps extends Pick<IframeData, 'URL' | 'width' | 'height' | 'title'>, Pick<IframeContainerProps, 'maxHeight' | 'maxWidth'> {
14
+ }
15
+ export {};
@@ -23,3 +23,4 @@ export * from './FeatureDescription';
23
23
  export * from './CICDHistory';
24
24
  export * from './GitCommitInfoGeneric';
25
25
  export * from './Error';
26
+ export * from './IframeContainer';