@devtron-labs/devtron-fe-common-lib 0.0.10-beta-2 → 0.0.10-beta-6
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/Common.service.d.ts +10 -1
- package/dist/Common/Constants.d.ts +2 -0
- package/dist/Common/ImageTags.d.ts +4 -0
- package/dist/Common/Types.d.ts +19 -0
- package/dist/Common/index.d.ts +1 -0
- package/dist/index.js +548 -116
- package/package.json +1 -1
- package/src/Assets/Icon/ic-arrow-counter-clockwise.svg +5 -0
- package/src/Assets/Icon/ic-minus.svg +3 -0
- package/src/Assets/Icon/ic-pencil.svg +3 -0
- package/src/Common/Common.service.ts +18 -3
- package/src/Common/Constants.ts +2 -0
- package/src/Common/ImageTags.tsx +452 -0
- package/src/Common/Types.ts +21 -0
- package/src/Common/index.ts +1 -0
|
@@ -1,2 +1,11 @@
|
|
|
1
|
-
import { TeamList } from './Types';
|
|
1
|
+
import { TeamList, ResponseType } from './Types';
|
|
2
2
|
export declare const getTeamListMin: () => Promise<TeamList>;
|
|
3
|
+
interface UserRole extends ResponseType {
|
|
4
|
+
result?: {
|
|
5
|
+
roles: string[];
|
|
6
|
+
superAdmin: boolean;
|
|
7
|
+
};
|
|
8
|
+
}
|
|
9
|
+
export declare function getUserRole(appName?: string): Promise<UserRole>;
|
|
10
|
+
export declare function setImageTags(request: any, pipelineId: number, artifactId: number): Promise<ResponseType>;
|
|
11
|
+
export {};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { ImageButtonType, ImageTaggingContainerType } from './Types';
|
|
3
|
+
export declare const ImageTagsContainer: ({ ciPipelineId, artifactId, imageComment, imageReleaseTags, appReleaseTagNames, tagsEditable, toggleCardMode, }: ImageTaggingContainerType) => JSX.Element;
|
|
4
|
+
export declare const ImageTagButton: ({ text, isSoftDeleted, isEditing, onSoftDeleteClick, onHardDeleteClick, tagId, softDeleteTags, isSuperAdmin, }: ImageButtonType) => JSX.Element;
|
package/dist/Common/Types.d.ts
CHANGED
|
@@ -317,4 +317,23 @@ export interface ImageComment {
|
|
|
317
317
|
comment: string;
|
|
318
318
|
artifactId: number;
|
|
319
319
|
}
|
|
320
|
+
export interface ImageTaggingContainerType {
|
|
321
|
+
ciPipelineId?: number;
|
|
322
|
+
artifactId?: number;
|
|
323
|
+
imageComment?: ImageComment;
|
|
324
|
+
imageReleaseTags?: ReleaseTag[];
|
|
325
|
+
appReleaseTagNames?: string[];
|
|
326
|
+
tagsEditable?: boolean;
|
|
327
|
+
toggleCardMode?: (id: number) => void;
|
|
328
|
+
}
|
|
329
|
+
export interface ImageButtonType {
|
|
330
|
+
text: string;
|
|
331
|
+
isSoftDeleted: boolean;
|
|
332
|
+
isEditing: boolean;
|
|
333
|
+
onSoftDeleteClick?: any;
|
|
334
|
+
onHardDeleteClick?: any;
|
|
335
|
+
tagId: number;
|
|
336
|
+
softDeleteTags: any;
|
|
337
|
+
isSuperAdmin: any;
|
|
338
|
+
}
|
|
320
339
|
export {};
|
package/dist/Common/index.d.ts
CHANGED