@devtron-labs/devtron-fe-common-lib 0.1.8-beta-2 → 0.1.8-beta-4

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 +0 -3
  2. package/dist/Common/RJSF/templates/ArrayFieldItemTemplate.d.ts +1 -1
  3. package/dist/Common/RJSF/templates/ObjectFieldTemplate.d.ts +1 -2
  4. package/dist/Common/RJSF/types.d.ts +0 -12
  5. package/dist/Common/RJSF/utils.d.ts +2 -2
  6. package/dist/Common/index.d.ts +0 -1
  7. package/dist/Shared/Components/ButtonWithSelector/ButtonWithSelector.d.ts +1 -1
  8. package/dist/Shared/Components/ButtonWithSelector/types.d.ts +1 -0
  9. package/dist/Shared/Components/CICDHistory/index.d.ts +1 -0
  10. package/dist/Shared/constants.d.ts +1 -0
  11. package/dist/Shared/types.d.ts +6 -0
  12. package/dist/assets/index.css +1 -1
  13. package/dist/{cssMode-a4ee32ac.js → cssMode-38f46da5.js} +1 -1
  14. package/dist/{freemarker2-a8a05eec.js → freemarker2-3a1905e7.js} +1 -1
  15. package/dist/{handlebars-60e2a630.js → handlebars-ce298da6.js} +1 -1
  16. package/dist/{html-e4ae368f.js → html-8ab136f7.js} +1 -1
  17. package/dist/{htmlMode-45af9cc5.js → htmlMode-78e96118.js} +1 -1
  18. package/dist/{index-1b29af8c.js → index-cfc3b5bc.js} +27790 -29451
  19. package/dist/index.js +327 -329
  20. package/dist/{javascript-41790160.js → javascript-78bc74a3.js} +1 -1
  21. package/dist/{jsonMode-b3c90434.js → jsonMode-13f2ddea.js} +1 -1
  22. package/dist/{liquid-752454c3.js → liquid-39c153be.js} +1 -1
  23. package/dist/{mdx-3737a76d.js → mdx-d50fd03d.js} +1 -1
  24. package/dist/{python-63abe626.js → python-e74e4686.js} +1 -1
  25. package/dist/{razor-da5d9543.js → razor-511648f3.js} +1 -1
  26. package/dist/{tsMode-39be316b.js → tsMode-b8dbb316.js} +1 -1
  27. package/dist/{typescript-8f59fda6.js → typescript-6a50be81.js} +1 -1
  28. package/dist/{xml-aee32c03.js → xml-14a35ff2.js} +1 -1
  29. package/dist/{yaml-082aac40.js → yaml-43eb6852.js} +1 -1
  30. package/package.json +2 -3
  31. package/dist/Common/Tippy.d.ts +0 -4
@@ -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';
@@ -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, }: ButtonWithSelectorProps) => JSX.Element;
17
+ declare const ButtonWithSelector: ({ content, onClick, children, className, popUpBodyClassName, showPopUp, disabled, isLoading, }: ButtonWithSelectorProps) => JSX.Element;
18
18
  export default ButtonWithSelector;
@@ -8,4 +8,5 @@ export interface ButtonWithSelectorProps {
8
8
  popUpBodyClassName?: string;
9
9
  showPopUp?: boolean;
10
10
  disabled?: boolean;
11
+ isLoading?: boolean;
11
12
  }
@@ -5,6 +5,7 @@ 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';
8
9
  export * from './types';
9
10
  export * from './service';
10
11
  export * from './History.components';
@@ -31,6 +31,7 @@ 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",
34
35
  replace = "replace",
35
36
  remove = "remove"
36
37
  }
@@ -336,6 +336,12 @@ 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;
339
345
  });
340
346
  export interface GroupedOptionsType {
341
347
  label: string;