@devtron-labs/devtron-fe-common-lib 0.1.8-beta-2 → 0.1.8-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 (32) hide show
  1. package/dist/Common/Constants.d.ts +1 -0
  2. package/dist/Common/Helper.d.ts +0 -3
  3. package/dist/Common/RJSF/templates/ArrayFieldItemTemplate.d.ts +1 -1
  4. package/dist/Common/RJSF/templates/ObjectFieldTemplate.d.ts +1 -2
  5. package/dist/Common/RJSF/types.d.ts +0 -12
  6. package/dist/Common/RJSF/utils.d.ts +2 -2
  7. package/dist/Common/index.d.ts +0 -1
  8. package/dist/Shared/Hooks/UseDownload/UseDownload.d.ts +7 -0
  9. package/dist/Shared/Hooks/UseDownload/index.d.ts +2 -0
  10. package/dist/Shared/Hooks/UseDownload/service.d.ts +1 -0
  11. package/dist/Shared/Hooks/UseDownload/types.d.ts +5 -0
  12. package/dist/Shared/Hooks/index.d.ts +1 -0
  13. package/dist/assets/index.css +1 -1
  14. package/dist/{cssMode-a4ee32ac.js → cssMode-46565917.js} +1 -1
  15. package/dist/{freemarker2-a8a05eec.js → freemarker2-30f0b882.js} +1 -1
  16. package/dist/{handlebars-60e2a630.js → handlebars-7146aa19.js} +1 -1
  17. package/dist/{html-e4ae368f.js → html-658499e7.js} +1 -1
  18. package/dist/{htmlMode-45af9cc5.js → htmlMode-7460496c.js} +1 -1
  19. package/dist/{index-1b29af8c.js → index-5dd358b6.js} +27825 -29455
  20. package/dist/index.js +228 -230
  21. package/dist/{javascript-41790160.js → javascript-17c071ad.js} +1 -1
  22. package/dist/{jsonMode-b3c90434.js → jsonMode-9e5d2735.js} +1 -1
  23. package/dist/{liquid-752454c3.js → liquid-875b774f.js} +1 -1
  24. package/dist/{mdx-3737a76d.js → mdx-2360dbb7.js} +1 -1
  25. package/dist/{python-63abe626.js → python-d8f638c7.js} +1 -1
  26. package/dist/{razor-da5d9543.js → razor-eba3bc11.js} +1 -1
  27. package/dist/{tsMode-39be316b.js → tsMode-96aad75e.js} +1 -1
  28. package/dist/{typescript-8f59fda6.js → typescript-19458c0b.js} +1 -1
  29. package/dist/{xml-aee32c03.js → xml-e2b971ba.js} +1 -1
  30. package/dist/{yaml-082aac40.js → yaml-57fb9693.js} +1 -1
  31. package/package.json +2 -3
  32. package/dist/Common/Tippy.d.ts +0 -4
@@ -228,6 +228,7 @@ 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;
231
232
  BAD_REQUEST: number;
232
233
  UNAUTHORIZED: number;
233
234
  PERMISSION_DENIED: number;
@@ -1,5 +1,4 @@
1
1
  import { default as React, SyntheticEvent } from 'react';
2
- import { JSONPathOptions } from 'jsonpath-plus';
3
2
  import { AsyncOptions, UseSearchString } from './Types';
4
3
  import { scrollableInterface } from '../Shared';
5
4
 
@@ -95,8 +94,6 @@ export declare const getRegexMatchPositions: (string: string, regex: RegExp) =>
95
94
  * @returns set of substrings
96
95
  */
97
96
  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[];
100
97
  /**
101
98
  * Returns a debounced variant of the function
102
99
  */
@@ -1,3 +1,3 @@
1
1
  import { ArrayFieldTemplateItemType } from '@rjsf/utils';
2
2
 
3
- export declare const ArrayFieldItemTemplate: ({ children, disabled, hasToolbar, hasRemove, index, onDropIndexClick, readonly, registry, uiSchema, }: ArrayFieldTemplateItemType) => JSX.Element;
3
+ export declare const ArrayFieldItemTemplate: ({ children, className, disabled, hasToolbar, hasRemove, index, onDropIndexClick, readonly, registry, uiSchema, }: ArrayFieldTemplateItemType) => JSX.Element;
@@ -1,4 +1,3 @@
1
1
  import { ObjectFieldTemplateProps } from '@rjsf/utils';
2
- import { RJSFFormSchema } from '../types';
3
2
 
4
- export declare const ObjectFieldTemplate: (props: ObjectFieldTemplateProps<any, RJSFFormSchema, any>) => JSX.Element;
3
+ export declare const ObjectFieldTemplate: (props: ObjectFieldTemplateProps) => JSX.Element;
@@ -1,16 +1,4 @@
1
1
  import { ComponentProps } from 'react';
2
2
  import { default as RJSFForm } from '@rjsf/core';
3
- import { StrictRJSFSchema } from '@rjsf/utils';
4
3
 
5
4
  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 '../Tippy';
2
+ import { default as Tippy } from '@tippyjs/react';
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'], truncateWidth?: number) => (children: any) => JSX.Element;
28
+ export declare const getTippyWrapperWithContent: (content: any, placement?: React.ComponentProps<typeof Tippy>['placement']) => (children: any) => JSX.Element;
@@ -54,4 +54,3 @@ 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';
@@ -0,0 +1,7 @@
1
+ import { HandleDownloadProps } from './types';
2
+
3
+ declare const useDownload: () => {
4
+ handleDownload: ({ downloadUrl, showFilePreparingToast, fileName, }: HandleDownloadProps) => Promise<void>;
5
+ isDownloading: boolean;
6
+ };
7
+ export default useDownload;
@@ -0,0 +1,2 @@
1
+ export { default as useDownload } from './UseDownload';
2
+ export * from './types';
@@ -0,0 +1 @@
1
+ export declare const getDownloadResponse: (downloadUrl: string) => Promise<Response>;
@@ -0,0 +1,5 @@
1
+ export interface HandleDownloadProps {
2
+ downloadUrl: string;
3
+ showFilePreparingToast?: boolean;
4
+ fileName?: string;
5
+ }
@@ -1 +1,2 @@
1
1
  export * from './UsePrompt';
2
+ export * from './UseDownload';