@devtron-labs/devtron-fe-common-lib 0.1.9 → 0.1.10-beta-2
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.
- package/dist/Common/AppStatus/constants.d.ts +5 -0
- package/dist/Common/Helper.d.ts +4 -0
- package/dist/Common/RJSF/templates/ArrayFieldItemTemplate.d.ts +1 -1
- package/dist/Common/RJSF/templates/ObjectFieldTemplate.d.ts +2 -1
- package/dist/Common/RJSF/types.d.ts +12 -0
- package/dist/Common/RJSF/utils.d.ts +2 -2
- package/dist/Common/Tippy.d.ts +4 -0
- package/dist/Common/Types.d.ts +2 -1
- package/dist/Common/index.d.ts +1 -0
- package/dist/Shared/constants.d.ts +26 -1
- package/dist/Shared/types.d.ts +9 -1
- package/dist/assets/index.css +1 -1
- package/dist/{cssMode-ccda78e8.js → cssMode-8bed57e4.js} +1 -1
- package/dist/{freemarker2-141ab423.js → freemarker2-eeabcd8d.js} +1 -1
- package/dist/{handlebars-7c03ef8d.js → handlebars-8f2aadb9.js} +1 -1
- package/dist/{html-24da9ddd.js → html-31e9eb53.js} +1 -1
- package/dist/{htmlMode-5e28b1fd.js → htmlMode-b551639a.js} +1 -1
- package/dist/{index-c3aacffe.js → index-8526aa1a.js} +30962 -28871
- package/dist/index.d.ts +2 -1
- package/dist/index.js +428 -423
- package/dist/{javascript-2ed06231.js → javascript-b936d763.js} +1 -1
- package/dist/{jsonMode-7a88ed2c.js → jsonMode-51969d4c.js} +1 -1
- package/dist/{liquid-0201d193.js → liquid-2756a9a6.js} +1 -1
- package/dist/{mdx-ea651a63.js → mdx-b1c242c1.js} +1 -1
- package/dist/{python-c2f4c838.js → python-3554a0be.js} +1 -1
- package/dist/{razor-bdcae6fb.js → razor-d3dda5ad.js} +1 -1
- package/dist/{tsMode-6f80c168.js → tsMode-a6842523.js} +1 -1
- package/dist/{typescript-19420b4a.js → typescript-79009d2e.js} +1 -1
- package/dist/{xml-b7e90361.js → xml-e4a464d4.js} +1 -1
- package/dist/{yaml-f143cc58.js → yaml-7b499783.js} +1 -1
- package/package.json +3 -2
- package/dist/Shared/Components/Header/HeaderWithCreateButton/constants.d.ts +0 -22
package/dist/Common/Helper.d.ts
CHANGED
|
@@ -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,
|
|
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 '
|
|
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;
|
package/dist/Common/Types.d.ts
CHANGED
|
@@ -488,7 +488,8 @@ export declare enum DeploymentAppTypes {
|
|
|
488
488
|
HELM = "helm",
|
|
489
489
|
GITOPS = "argo_cd",
|
|
490
490
|
MANIFEST_DOWNLOAD = "manifest_download",
|
|
491
|
-
MANIFEST_PUSH = "manifest_push"
|
|
491
|
+
MANIFEST_PUSH = "manifest_push",
|
|
492
|
+
FLUX = "flux"
|
|
492
493
|
}
|
|
493
494
|
export interface VulnerabilityType {
|
|
494
495
|
name: string;
|
package/dist/Common/index.d.ts
CHANGED
|
@@ -348,10 +348,35 @@ 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
|
+
};
|
|
351
375
|
export declare enum K8sResourcePayloadAppType {
|
|
352
376
|
DEVTRON_APP = 0,
|
|
353
377
|
HELM_APP = 1,
|
|
354
|
-
EXTERNAL_ARGO_APP = 2
|
|
378
|
+
EXTERNAL_ARGO_APP = 2,
|
|
379
|
+
EXTERNAL_FLUX_APP = 3
|
|
355
380
|
}
|
|
356
381
|
/**
|
|
357
382
|
* Size variants for components
|
package/dist/Shared/types.d.ts
CHANGED
|
@@ -124,7 +124,8 @@ 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"
|
|
127
|
+
EXTERNAL_ARGO_APP = "external_argo_app",
|
|
128
|
+
EXTERNAL_FLUX_APP = "external_flux_app"
|
|
128
129
|
}
|
|
129
130
|
export interface HelmReleaseStatus {
|
|
130
131
|
status: string;
|
|
@@ -140,6 +141,11 @@ interface MaterialInfo {
|
|
|
140
141
|
url: string;
|
|
141
142
|
webhookData: string;
|
|
142
143
|
}
|
|
144
|
+
export interface FluxAppStatusDetail {
|
|
145
|
+
status: string;
|
|
146
|
+
message: string;
|
|
147
|
+
reason: string;
|
|
148
|
+
}
|
|
143
149
|
export interface AppDetails {
|
|
144
150
|
appId?: number;
|
|
145
151
|
appName: string;
|
|
@@ -181,6 +187,8 @@ export interface AppDetails {
|
|
|
181
187
|
helmPackageName?: string;
|
|
182
188
|
appStatus?: string;
|
|
183
189
|
chartAvatar?: string;
|
|
190
|
+
fluxTemplateType?: string;
|
|
191
|
+
FluxAppStatusDetail?: FluxAppStatusDetail;
|
|
184
192
|
}
|
|
185
193
|
export declare enum RegistryType {
|
|
186
194
|
GIT = "git",
|