@gitkraken/gitkraken-components 2.0.0 → 2.1.0
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.
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
// eslint-disable-next-line no-unused-vars
|
|
2
2
|
import * as React from 'react';
|
|
3
3
|
import {
|
|
4
|
+
CommitDateTimeSources,
|
|
4
5
|
commitNodeType,
|
|
5
6
|
mergeConflictNodeType,
|
|
6
7
|
mergeNodeType,
|
|
@@ -211,10 +212,12 @@ export type RefMetadataItemWithIdAndType = RefMetadataItem & {
|
|
|
211
212
|
metadataType: RefMetadataType;
|
|
212
213
|
};
|
|
213
214
|
|
|
215
|
+
export type CommitDateTimeSource = CommitDateTimeSources;
|
|
216
|
+
|
|
214
217
|
// Callbacks
|
|
215
218
|
export type GetExternalIcon = (key: string) => React.ReactElement<any>;
|
|
216
219
|
export type TranslationFn = (key: string, ...formatArgs: any) => string;
|
|
217
|
-
export type OnFormatCommitDateTime = (commitDateTime: number) => string;
|
|
220
|
+
export type OnFormatCommitDateTime = (commitDateTime: number, source?: CommitDateTimeSource) => string;
|
|
218
221
|
|
|
219
222
|
// Events
|
|
220
223
|
export type OnRowContextMenu = (event: any, graphZoneType: GraphZoneType, graphRow: GraphRow) => void;
|