@devtron-labs/devtron-fe-common-lib 0.1.9-beta-3 → 0.1.9-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 (28) hide show
  1. package/dist/Common/Helper.d.ts +4 -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/CICDHistory/DeploymentHistoryDiff/DeploymentHistoryDiffView.d.ts +1 -1
  9. package/dist/Shared/Components/CICDHistory/types.d.ts +0 -1
  10. package/dist/assets/index.css +1 -1
  11. package/dist/{cssMode-5a4450e8.js → cssMode-9212baf7.js} +1 -1
  12. package/dist/{freemarker2-f1548af9.js → freemarker2-2585719b.js} +1 -1
  13. package/dist/{handlebars-db84690c.js → handlebars-c3bc85d2.js} +1 -1
  14. package/dist/{html-aa9f668d.js → html-3befa7f0.js} +1 -1
  15. package/dist/{htmlMode-7e7c4f2c.js → htmlMode-bf169d0e.js} +1 -1
  16. package/dist/{index-15e701a6.js → index-d5f5b61c.js} +31120 -29034
  17. package/dist/index.js +245 -241
  18. package/dist/{javascript-c4457b8a.js → javascript-00fa166f.js} +1 -1
  19. package/dist/{jsonMode-440c3f51.js → jsonMode-2b78bcb1.js} +1 -1
  20. package/dist/{liquid-d5379e07.js → liquid-f5e83946.js} +1 -1
  21. package/dist/{mdx-a40a16ca.js → mdx-e96491ea.js} +1 -1
  22. package/dist/{python-6491dcfa.js → python-44c2708a.js} +1 -1
  23. package/dist/{razor-c0430e54.js → razor-0bb44c58.js} +1 -1
  24. package/dist/{tsMode-febeee7a.js → tsMode-5219a826.js} +1 -1
  25. package/dist/{typescript-9b6066b7.js → typescript-8f1bf551.js} +1 -1
  26. package/dist/{xml-dd2610dc.js → xml-ff475bc5.js} +1 -1
  27. package/dist/{yaml-8fd4f6ed.js → yaml-6308476e.js} +1 -1
  28. 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,9 @@ 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[];
100
+ export declare const applyCompareDiffOnUneditedDocument: (uneditedDocument: object, editedDocument: object) => object;
97
101
  /**
98
102
  * Returns a debounced variant of the function
99
103
  */
@@ -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,4 +1,4 @@
1
1
  import { DeploymentTemplateHistoryType } from '../types';
2
2
 
3
- declare const DeploymentHistoryDiffView: ({ currentConfiguration, baseTemplateConfiguration, previousConfigAvailable, isUnpublished, isDeleteDraft, rootClassName, comparisonBodyClassName, }: DeploymentTemplateHistoryType) => JSX.Element;
3
+ declare const DeploymentHistoryDiffView: ({ currentConfiguration, baseTemplateConfiguration, previousConfigAvailable, isUnpublished, isDeleteDraft, rootClassName, }: DeploymentTemplateHistoryType) => JSX.Element;
4
4
  export default DeploymentHistoryDiffView;
@@ -368,7 +368,6 @@ export interface DeploymentTemplateHistoryType {
368
368
  isUnpublished?: boolean;
369
369
  isDeleteDraft?: boolean;
370
370
  rootClassName?: string;
371
- comparisonBodyClassName?: string;
372
371
  }
373
372
  export interface DeploymentHistoryDetailRes extends ResponseType {
374
373
  result?: DeploymentHistoryDetail;