@devtron-labs/devtron-fe-common-lib 0.1.8-beta-1 → 0.1.8-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 (32) hide show
  1. package/dist/Common/Constants.d.ts +0 -1
  2. package/dist/Common/Helper.d.ts +3 -0
  3. package/dist/Common/RJSF/templates/ArrayFieldItemTemplate.d.ts +1 -1
  4. package/dist/Common/RJSF/templates/ObjectFieldTemplate.d.ts +2 -1
  5. package/dist/Common/RJSF/types.d.ts +12 -0
  6. package/dist/Common/RJSF/utils.d.ts +2 -2
  7. package/dist/Common/Tippy.d.ts +4 -0
  8. package/dist/Common/index.d.ts +1 -0
  9. package/dist/Shared/Hooks/index.d.ts +0 -1
  10. package/dist/assets/index.css +1 -1
  11. package/dist/{cssMode-f2041000.js → cssMode-a4ee32ac.js} +1 -1
  12. package/dist/{freemarker2-6d4da3dd.js → freemarker2-a8a05eec.js} +1 -1
  13. package/dist/{handlebars-c6090b95.js → handlebars-60e2a630.js} +1 -1
  14. package/dist/{html-9b18aef3.js → html-e4ae368f.js} +1 -1
  15. package/dist/{htmlMode-b79b819d.js → htmlMode-45af9cc5.js} +1 -1
  16. package/dist/{index-a02e8b40.js → index-1b29af8c.js} +29444 -27814
  17. package/dist/index.js +230 -228
  18. package/dist/{javascript-f0049b34.js → javascript-41790160.js} +1 -1
  19. package/dist/{jsonMode-42a677c8.js → jsonMode-b3c90434.js} +1 -1
  20. package/dist/{liquid-8059c291.js → liquid-752454c3.js} +1 -1
  21. package/dist/{mdx-4a7fcdf5.js → mdx-3737a76d.js} +1 -1
  22. package/dist/{python-33772baf.js → python-63abe626.js} +1 -1
  23. package/dist/{razor-78c05948.js → razor-da5d9543.js} +1 -1
  24. package/dist/{tsMode-f6f13eda.js → tsMode-39be316b.js} +1 -1
  25. package/dist/{typescript-15389368.js → typescript-8f59fda6.js} +1 -1
  26. package/dist/{xml-bed45dad.js → xml-aee32c03.js} +1 -1
  27. package/dist/{yaml-4c66b731.js → yaml-082aac40.js} +1 -1
  28. package/package.json +3 -2
  29. package/dist/Shared/Hooks/UseDownload/UseDownload.d.ts +0 -7
  30. package/dist/Shared/Hooks/UseDownload/index.d.ts +0 -2
  31. package/dist/Shared/Hooks/UseDownload/service.d.ts +0 -1
  32. package/dist/Shared/Hooks/UseDownload/types.d.ts +0 -5
@@ -228,7 +228,6 @@ export declare enum ReactSelectInputAction {
228
228
  export declare const ZERO_TIME_STRING = "0001-01-01T00:00:00Z";
229
229
  export declare const EXCLUDED_FALSY_VALUES: readonly [any, any, "", number];
230
230
  export declare const API_STATUS_CODES: {
231
- OK: number;
232
231
  BAD_REQUEST: number;
233
232
  UNAUTHORIZED: number;
234
233
  PERMISSION_DENIED: number;
@@ -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;
@@ -54,3 +54,4 @@ export * from './GenericDescription';
54
54
  export * from './SegmentedBarChart';
55
55
  export * from './CodeEditor';
56
56
  export * from './AppStatus';
57
+ export { default as Tippy } from './Tippy';
@@ -1,2 +1 @@
1
1
  export * from './UsePrompt';
2
- export * from './UseDownload';