@devtron-labs/devtron-fe-common-lib 0.1.3-beta-1 → 0.1.3-beta-3

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 (29) hide show
  1. package/dist/Common/Helper.d.ts +3 -0
  2. package/dist/Common/RJSF/templates/ArrayFieldItemTemplate.d.ts +1 -1
  3. package/dist/Common/RJSF/templates/ObjectFieldTemplate.d.ts +2 -1
  4. package/dist/Common/RJSF/types.d.ts +12 -0
  5. package/dist/Common/RJSF/utils.d.ts +2 -2
  6. package/dist/Common/Tippy.d.ts +4 -0
  7. package/dist/Common/index.d.ts +1 -0
  8. package/dist/Shared/Components/ButtonWithSelector/ButtonWithSelector.d.ts +1 -1
  9. package/dist/Shared/Components/ButtonWithSelector/types.d.ts +0 -1
  10. package/dist/Shared/Components/CICDHistory/index.d.ts +0 -1
  11. package/dist/assets/index.css +1 -1
  12. package/dist/{cssMode-4e916da9.js → cssMode-b1abfa5c.js} +1 -1
  13. package/dist/{freemarker2-259f8732.js → freemarker2-96cb45cd.js} +1 -1
  14. package/dist/{handlebars-6b20b43b.js → handlebars-c6f8d5b8.js} +1 -1
  15. package/dist/{html-703e0684.js → html-17dc3d03.js} +1 -1
  16. package/dist/{htmlMode-abea2b10.js → htmlMode-71f131a7.js} +1 -1
  17. package/dist/{index-213844a7.js → index-ec911362.js} +27451 -25791
  18. package/dist/index.js +318 -316
  19. package/dist/{javascript-d17d395e.js → javascript-a528e0c9.js} +1 -1
  20. package/dist/{jsonMode-90e7e346.js → jsonMode-9778db77.js} +1 -1
  21. package/dist/{liquid-c833ec71.js → liquid-a3579d1f.js} +1 -1
  22. package/dist/{mdx-ff1c7e55.js → mdx-0472a04b.js} +1 -1
  23. package/dist/{python-41d119a8.js → python-2ae9dc06.js} +1 -1
  24. package/dist/{razor-bacb1fa2.js → razor-6655bd7a.js} +1 -1
  25. package/dist/{tsMode-ce946adc.js → tsMode-348eb264.js} +1 -1
  26. package/dist/{typescript-da419c63.js → typescript-95a5b593.js} +1 -1
  27. package/dist/{xml-3d782929.js → xml-18f059b6.js} +1 -1
  28. package/dist/{yaml-dffbb024.js → yaml-6da9adc7.js} +1 -1
  29. package/package.json +3 -2
@@ -1,4 +1,5 @@
1
1
  import { default as React, SyntheticEvent } from 'react';
2
+ import { JSONPathOptions } from 'jsonpath-plus';
2
3
  import { AsyncOptions, UseSearchString } from './Types';
3
4
  import { scrollableInterface } from '../Shared';
4
5
 
@@ -94,6 +95,8 @@ export declare const getRegexMatchPositions: (string: string, regex: RegExp) =>
94
95
  * @returns set of substrings
95
96
  */
96
97
  export declare const powerSetOfSubstringsFromStart: (strings: string[], regex: RegExp) => string[];
98
+ export declare const convertJSONPointerToJSONPath: (pointer: string) => string;
99
+ export declare const flatMapOfJSONPaths: (paths: string[], json: object, resultType?: JSONPathOptions['resultType']) => string[];
97
100
  /**
98
101
  * Returns a debounced variant of the function
99
102
  */
@@ -1,3 +1,3 @@
1
1
  import { ArrayFieldTemplateItemType } from '@rjsf/utils';
2
2
 
3
- export declare const ArrayFieldItemTemplate: ({ children, className, disabled, hasToolbar, hasRemove, index, onDropIndexClick, readonly, registry, uiSchema, }: ArrayFieldTemplateItemType) => JSX.Element;
3
+ export declare const ArrayFieldItemTemplate: ({ children, disabled, hasToolbar, hasRemove, index, onDropIndexClick, readonly, registry, uiSchema, }: ArrayFieldTemplateItemType) => JSX.Element;
@@ -1,3 +1,4 @@
1
1
  import { ObjectFieldTemplateProps } from '@rjsf/utils';
2
+ import { RJSFFormSchema } from '../types';
2
3
 
3
- export declare const ObjectFieldTemplate: (props: ObjectFieldTemplateProps) => JSX.Element;
4
+ export declare const ObjectFieldTemplate: (props: ObjectFieldTemplateProps<any, RJSFFormSchema, any>) => JSX.Element;
@@ -1,4 +1,16 @@
1
1
  import { ComponentProps } from 'react';
2
2
  import { default as RJSFForm } from '@rjsf/core';
3
+ import { StrictRJSFSchema } from '@rjsf/utils';
3
4
 
4
5
  export type FormProps = Omit<ComponentProps<typeof RJSFForm>, 'validator'>;
6
+ interface Hidden {
7
+ condition: boolean;
8
+ match: string;
9
+ }
10
+ export interface RJSFFormSchema extends StrictRJSFSchema {
11
+ properties: {
12
+ [key: string]: RJSFFormSchema;
13
+ };
14
+ hidden: Hidden;
15
+ }
16
+ export {};
@@ -1,5 +1,5 @@
1
1
  import { TranslatableString } from '@rjsf/utils';
2
- import { default as Tippy } from '@tippyjs/react';
2
+ import { default as Tippy } from '../Tippy';
3
3
 
4
4
  /**
5
5
  * Override for the TranslatableString from RJSF
@@ -25,4 +25,4 @@ export declare const getRedirectionProps: (url: string) => import('react').Ancho
25
25
  * Infers the type for json schema from value type
26
26
  */
27
27
  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;
28
+ export declare const getTippyWrapperWithContent: (content: any, placement?: React.ComponentProps<typeof Tippy>['placement'], truncateWidth?: number) => (children: any) => JSX.Element;
@@ -0,0 +1,4 @@
1
+ import { TippyProps as TippyJSProps } from '@tippyjs/react';
2
+
3
+ declare const Tippy: ({ truncateWidth, children, ...rest }: TippyJSProps & Record<'truncateWidth', number>) => JSX.Element;
4
+ export default Tippy;
@@ -55,3 +55,4 @@ export * from './GenericDescription';
55
55
  export * from './SegmentedBarChart';
56
56
  export * from './CodeEditor';
57
57
  export * from './AppStatus';
58
+ export { default as Tippy } from './Tippy';
@@ -14,5 +14,5 @@ import { ButtonWithSelectorProps } from './types';
14
14
  * </ButtonWithSelector>
15
15
  * ```
16
16
  */
17
- declare const ButtonWithSelector: ({ content, onClick, children, className, popUpBodyClassName, showPopUp, disabled, isLoading, }: ButtonWithSelectorProps) => JSX.Element;
17
+ declare const ButtonWithSelector: ({ content, onClick, children, className, popUpBodyClassName, showPopUp, disabled, }: ButtonWithSelectorProps) => JSX.Element;
18
18
  export default ButtonWithSelector;
@@ -8,5 +8,4 @@ export interface ButtonWithSelectorProps {
8
8
  popUpBodyClassName?: string;
9
9
  showPopUp?: boolean;
10
10
  disabled?: boolean;
11
- isLoading?: boolean;
12
11
  }
@@ -5,7 +5,6 @@ export { default as CDEmptyState } from './CDEmptyState';
5
5
  export { default as DeploymentStatusDetailBreakdown } from './DeploymentStatusBreakdown';
6
6
  export { default as AppStatusDetailsChart } from './AppStatusDetailsChart';
7
7
  export { default as DeploymentDetailSteps } from './DeploymentDetailSteps';
8
- export { default as DetectBottom } from './DetectBottom';
9
8
  export * from './types';
10
9
  export * from './service';
11
10
  export * from './History.components';