@devtron-labs/devtron-fe-common-lib 0.1.8-beta-18 → 0.1.8-beta-19

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 (31) 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/Shared/constants.d.ts +0 -1
  12. package/dist/Shared/types.d.ts +0 -6
  13. package/dist/assets/index.css +1 -1
  14. package/dist/{cssMode-38f46da5.js → cssMode-a7e39ca3.js} +1 -1
  15. package/dist/{freemarker2-3a1905e7.js → freemarker2-0e008413.js} +1 -1
  16. package/dist/{handlebars-ce298da6.js → handlebars-0e32fbc1.js} +1 -1
  17. package/dist/{html-8ab136f7.js → html-f823b63a.js} +1 -1
  18. package/dist/{htmlMode-78e96118.js → htmlMode-565ae19c.js} +1 -1
  19. package/dist/{index-cfc3b5bc.js → index-817e7d57.js} +29453 -27790
  20. package/dist/index.js +329 -327
  21. package/dist/{javascript-78bc74a3.js → javascript-09b5dba7.js} +1 -1
  22. package/dist/{jsonMode-13f2ddea.js → jsonMode-c3c3de76.js} +1 -1
  23. package/dist/{liquid-39c153be.js → liquid-4a579ef7.js} +1 -1
  24. package/dist/{mdx-d50fd03d.js → mdx-16da0f54.js} +1 -1
  25. package/dist/{python-e74e4686.js → python-bc3c7137.js} +1 -1
  26. package/dist/{razor-511648f3.js → razor-3a1b00d5.js} +1 -1
  27. package/dist/{tsMode-b8dbb316.js → tsMode-664052fb.js} +1 -1
  28. package/dist/{typescript-6a50be81.js → typescript-54c36eec.js} +1 -1
  29. package/dist/{xml-14a35ff2.js → xml-6e92ead5.js} +1 -1
  30. package/dist/{yaml-43eb6852.js → yaml-8b8c2284.js} +1 -1
  31. 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;
@@ -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';
@@ -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';
@@ -31,7 +31,6 @@ export declare const DATE_TIME_FORMAT_STRING = "ddd DD MMM YYYY HH:mm:ss";
31
31
  export declare const API_TOKEN_PREFIX = "API-TOKEN:";
32
32
  export declare const DEFAULT_SECRET_PLACEHOLDER = "\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022";
33
33
  export declare enum PatchOperationType {
34
- add = "add",
35
34
  replace = "replace",
36
35
  remove = "remove"
37
36
  }
@@ -336,12 +336,6 @@ export type PatchQueryType<T extends string, K = unknown> = {
336
336
  */
337
337
  op: PatchOperationType.remove;
338
338
  value?: never;
339
- } | {
340
- /**
341
- * Operation type for add
342
- */
343
- op: PatchOperationType.add;
344
- value?: K;
345
339
  });
346
340
  export interface GroupedOptionsType {
347
341
  label: string;