@devtron-labs/devtron-fe-common-lib 0.1.3-beta-2 → 0.1.3-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 (31) hide show
  1. package/dist/Common/AppStatus/constants.d.ts +0 -5
  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/Components/Header/HeaderWithCreateButton/constants.d.ts +22 -0
  10. package/dist/Shared/constants.d.ts +0 -24
  11. package/dist/Shared/types.d.ts +1 -2
  12. package/dist/assets/index.css +1 -1
  13. package/dist/{cssMode-fcc60ae9.js → cssMode-b1abfa5c.js} +1 -1
  14. package/dist/{freemarker2-7491da88.js → freemarker2-96cb45cd.js} +1 -1
  15. package/dist/{handlebars-dc7630c9.js → handlebars-c6f8d5b8.js} +1 -1
  16. package/dist/{html-4fbb17ab.js → html-17dc3d03.js} +1 -1
  17. package/dist/{htmlMode-e378c3c0.js → htmlMode-71f131a7.js} +1 -1
  18. package/dist/{index-e1ef4377.js → index-ec911362.js} +27463 -25808
  19. package/dist/index.d.ts +0 -1
  20. package/dist/index.js +397 -395
  21. package/dist/{javascript-2ff0a654.js → javascript-a528e0c9.js} +1 -1
  22. package/dist/{jsonMode-af3e1bc3.js → jsonMode-9778db77.js} +1 -1
  23. package/dist/{liquid-7b4f5687.js → liquid-a3579d1f.js} +1 -1
  24. package/dist/{mdx-16562f9f.js → mdx-0472a04b.js} +1 -1
  25. package/dist/{python-9f2b0842.js → python-2ae9dc06.js} +1 -1
  26. package/dist/{razor-e9fd1b25.js → razor-6655bd7a.js} +1 -1
  27. package/dist/{tsMode-c2d1357a.js → tsMode-348eb264.js} +1 -1
  28. package/dist/{typescript-11b1a103.js → typescript-95a5b593.js} +1 -1
  29. package/dist/{xml-20bcc243.js → xml-18f059b6.js} +1 -1
  30. package/dist/{yaml-60b03f72.js → yaml-6da9adc7.js} +1 -1
  31. package/package.json +2 -1
@@ -4,11 +4,6 @@ export declare const StatusConstants: {
4
4
  normalCase: string;
5
5
  lowerCase: string;
6
6
  };
7
- NOT_READY: {
8
- noSpaceLower: string;
9
- normalCase: string;
10
- lowerCase: string;
11
- };
12
7
  APP_STATUS: {
13
8
  noSpaceLower: string;
14
9
  normalText: string;
@@ -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;
@@ -55,3 +55,4 @@ export * from './GenericDescription';
55
55
  export * from './SegmentedBarChart';
56
56
  export * from './CodeEditor';
57
57
  export * from './AppStatus';
58
+ export { default as Tippy } from './Tippy';
@@ -0,0 +1,22 @@
1
+ declare const AppListConstants: {
2
+ SAMPLE_NODE_REPO_URL: string;
3
+ CREATE_DEVTRON_APP_URL: string;
4
+ AppTabs: {
5
+ DEVTRON_APPS: string;
6
+ HELM_APPS: string;
7
+ ARGO_APPS: string;
8
+ };
9
+ AppType: {
10
+ DEVTRON_APPS: string;
11
+ HELM_APPS: string;
12
+ ARGO_APPS: string;
13
+ };
14
+ FilterType: {
15
+ PROJECT: string;
16
+ CLUTSER: string;
17
+ NAMESPACE: string;
18
+ ENVIRONMENT: string;
19
+ APP_STATUS: string;
20
+ };
21
+ };
22
+ export default AppListConstants;
@@ -348,27 +348,3 @@ export declare const statusColor: {
348
348
  };
349
349
  export declare const APP_STATUS_HEADERS: string[];
350
350
  export declare const MATERIAL_EXCLUDE_TIPPY_TEXT = "Not available for build as this commit contains changes in excluded files or folders";
351
- export declare const AppListConstants: {
352
- SAMPLE_NODE_REPO_URL: string;
353
- CREATE_DEVTRON_APP_URL: string;
354
- AppTabs: {
355
- DEVTRON_APPS: string;
356
- HELM_APPS: string;
357
- ARGO_APPS: string;
358
- FLUX_APPS: string;
359
- };
360
- AppType: {
361
- DEVTRON_APPS: string;
362
- HELM_APPS: string;
363
- ARGO_APPS: string;
364
- FLUX_APPS: string;
365
- };
366
- FilterType: {
367
- PROJECT: string;
368
- CLUTSER: string;
369
- NAMESPACE: string;
370
- ENVIRONMENT: string;
371
- APP_STATUS: string;
372
- TEMPLATE_TYPE: string;
373
- };
374
- };
@@ -124,8 +124,7 @@ export declare enum AppType {
124
124
  DEVTRON_APP = "devtron_app",
125
125
  DEVTRON_HELM_CHART = "devtron_helm_chart",
126
126
  EXTERNAL_HELM_CHART = "external_helm_chart",
127
- EXTERNAL_ARGO_APP = "external_argo_app",
128
- EXTERNAL_FLUX_APP = "external_flux_app"
127
+ EXTERNAL_ARGO_APP = "external_argo_app"
129
128
  }
130
129
  export interface HelmReleaseStatus {
131
130
  status: string;