@gitkraken/gitkraken-components 2.1.0 → 3.0.1
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/components/graph/GraphContainer.d.ts +16 -10
- package/dist/index.js +1 -1
- package/dist/styles.css +3 -2
- package/package.json +1 -1
|
@@ -156,7 +156,7 @@ export type GraphRefGroup = Array<GraphRef>;
|
|
|
156
156
|
|
|
157
157
|
export type RefMetadataById = { [id: string]: RefMetadata | null | undefined } | null;
|
|
158
158
|
export type RefMetadata = {
|
|
159
|
-
|
|
159
|
+
pullRequest?: PullRequestMetadata[] | null;
|
|
160
160
|
upstream?: UpstreamMetadata | null;
|
|
161
161
|
};
|
|
162
162
|
|
|
@@ -202,15 +202,21 @@ export type HostingServiceType =
|
|
|
202
202
|
export type RefsMissingMetadata = {
|
|
203
203
|
[refId: string]: RefMetadataType[]
|
|
204
204
|
}
|
|
205
|
-
export
|
|
205
|
+
export type RefMetadataType = keyof RefMetadata;
|
|
206
|
+
export const pullRequestMetadataType = 'pullRequest';
|
|
206
207
|
export const upstreamMetadataType = 'upstream';
|
|
207
208
|
// Expand this as we add more types to RefMetadata
|
|
208
|
-
export type
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
}
|
|
209
|
+
export type RefMetadataItem =
|
|
210
|
+
| {
|
|
211
|
+
refId: string;
|
|
212
|
+
type: typeof pullRequestMetadataType;
|
|
213
|
+
data: PullRequestMetadata;
|
|
214
|
+
}
|
|
215
|
+
| {
|
|
216
|
+
refId: string;
|
|
217
|
+
type: typeof upstreamMetadataType;
|
|
218
|
+
data: UpstreamMetadata;
|
|
219
|
+
};
|
|
214
220
|
|
|
215
221
|
export type CommitDateTimeSource = CommitDateTimeSources;
|
|
216
222
|
|
|
@@ -224,9 +230,9 @@ export type OnRowContextMenu = (event: any, graphZoneType: GraphZoneType, graphR
|
|
|
224
230
|
export type OnRefContextMenu = (event: any, refGroup: GraphRefGroup, graphRow: GraphRow) => void;
|
|
225
231
|
export type OnToggleRefsVisibilityClick = (event: React.MouseEvent, refs: GraphRefOptData[], visible: boolean, graphRow?: GraphRow) => void;
|
|
226
232
|
export type OnClickGraphRow = (event: any, graphZoneType: GraphZoneType, graphRow: GraphRow) => void;
|
|
227
|
-
export type OnClickGraphRef = (event: any, refGroup: GraphRefGroup, graphRow: GraphRow, metadataItem?:
|
|
233
|
+
export type OnClickGraphRef = (event: any, refGroup: GraphRefGroup, graphRow: GraphRow, metadataItem?: RefMetadataItem) => void;
|
|
228
234
|
export type OnDoubleClickGraphRow = (event: any, graphZoneType: GraphZoneType, graphRow: GraphRow) => void;
|
|
229
|
-
export type OnDoubleClickGraphRef = (event: any, refGroup: GraphRefGroup, graphRow: GraphRow, metadataItem?:
|
|
235
|
+
export type OnDoubleClickGraphRef = (event: any, refGroup: GraphRefGroup, graphRow: GraphRow, metadataItem?: RefMetadataItem) => void;
|
|
230
236
|
export type OnSelectGraphRows = (selectedRows: GraphRow[]) => void;
|
|
231
237
|
export type OnGraphRowHovered = (event: any, graphZoneType: GraphZoneType, graphRow: GraphRow) => void;
|
|
232
238
|
export type OnGraphRowUnhovered = (event: any, graphZoneType: GraphZoneType, graphRow: GraphRow) => void;
|