@gitkraken/gitkraken-components 6.0.3 → 7.0.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.
Files changed (75) hide show
  1. package/LICENSE +1 -1
  2. package/ThirdPartyNotices.txt +227 -0
  3. package/dist/components/graph/GraphColumn.d.ts +38 -0
  4. package/dist/components/graph/GraphContainer.d.ts +294 -329
  5. package/dist/components/graph/GraphHeaderRow.d.ts +36 -0
  6. package/dist/components/graph/GraphScrollMarker.d.ts +21 -0
  7. package/dist/components/graph/changeszone/ChangesBar.d.ts +11 -0
  8. package/dist/components/graph/commitzone/BackgroundStreak.d.ts +12 -0
  9. package/dist/components/graph/commitzone/CommitNode.d.ts +24 -0
  10. package/dist/components/graph/commitzone/CommitZone.d.ts +48 -0
  11. package/dist/components/graph/commitzone/GraphAvatar.d.ts +39 -0
  12. package/dist/components/graph/commitzone/Gutter.d.ts +22 -0
  13. package/dist/components/graph/commitzone/edges/Arc.d.ts +4 -0
  14. package/dist/components/graph/commitzone/edges/EdgeNodes.d.ts +3 -0
  15. package/dist/components/graph/commitzone/edges/Edges.d.ts +13 -0
  16. package/dist/components/graph/commitzone/edges/EndingEdge.d.ts +4 -0
  17. package/dist/components/graph/commitzone/edges/PassThroughEdge.d.ts +4 -0
  18. package/dist/components/graph/commitzone/edges/StartingEdge.d.ts +4 -0
  19. package/dist/components/graph/common/DraggableGraphHeader.d.ts +42 -0
  20. package/dist/components/graph/common/EntireRowSpan.d.ts +15 -0
  21. package/dist/components/graph/common/GenericGraphZone.d.ts +46 -0
  22. package/dist/components/graph/common/LoadingSpinner.d.ts +11 -0
  23. package/dist/components/graph/common/RefLine.d.ts +17 -0
  24. package/dist/components/graph/common/Timeline.d.ts +6 -0
  25. package/dist/components/graph/dnd/DndContainer.d.ts +44 -0
  26. package/dist/components/graph/refzone/Icon.d.ts +39 -0
  27. package/dist/components/graph/refzone/OverflowCount.d.ts +7 -0
  28. package/dist/components/graph/refzone/RefName.d.ts +6 -0
  29. package/dist/components/graph/refzone/RefNode.d.ts +36 -0
  30. package/dist/components/graph/refzone/RefNodes.d.ts +31 -0
  31. package/dist/components/graph/refzone/RefPopover.d.ts +15 -0
  32. package/dist/components/graph/refzone/RefZone.d.ts +54 -0
  33. package/dist/components/graph/rowRenderers/ChangesZoneRow.d.ts +8 -0
  34. package/dist/components/graph/rowRenderers/CommitAuthorZoneRow.d.ts +7 -0
  35. package/dist/components/graph/rowRenderers/CommitDateTimeZoneRow.d.ts +10 -0
  36. package/dist/components/graph/rowRenderers/CommitMessageZoneRow.d.ts +20 -0
  37. package/dist/components/graph/rowRenderers/CommitShaZoneRow.d.ts +10 -0
  38. package/dist/components/graph/rowRenderers/CommitZoneRow.d.ts +19 -0
  39. package/dist/components/graph/rowRenderers/CommitsInfoRow.d.ts +25 -0
  40. package/dist/components/graph/rowRenderers/RefZoneRow.d.ts +29 -0
  41. package/dist/components/graph/rowRenderers/TimelineMsgRow.d.ts +7 -0
  42. package/dist/components/graph/shared/Avatar.d.ts +13 -0
  43. package/dist/components/graph/shared/FileDiffTypeIcon.d.ts +13 -0
  44. package/dist/components/graph/shared/InlineWorkDirSummary.d.ts +12 -0
  45. package/dist/components/graph/shared/TinyFilesReadout.d.ts +13 -0
  46. package/dist/components/resizable/Resizable.d.ts +78 -0
  47. package/dist/domain/color/ColorHelpers.d.ts +22 -0
  48. package/dist/domain/commit/CommitConstants.d.ts +10 -0
  49. package/dist/domain/commit/CommitHelpers.d.ts +5 -0
  50. package/dist/domain/commit/CommitTypes.d.ts +9 -0
  51. package/dist/domain/cssvariable/CssVariableConstants.d.ts +259 -0
  52. package/dist/domain/cssvariable/CssVariableHelpers.d.ts +4 -0
  53. package/dist/domain/date/DateHelper.d.ts +7 -0
  54. package/dist/domain/diff/DiffConstants.d.ts +5 -0
  55. package/dist/domain/diff/DiffTypes.d.ts +9 -0
  56. package/dist/domain/edge/EdgeHelpers.d.ts +9 -0
  57. package/dist/domain/generic/GenericTypes.d.ts +34 -0
  58. package/dist/domain/graph/GraphConstants.d.ts +146 -0
  59. package/dist/domain/graph/GraphHelpers.d.ts +71 -0
  60. package/dist/domain/graph/GraphTypes.d.ts +367 -0
  61. package/dist/domain/hostingservice/HostingServiceTypes.d.ts +9 -0
  62. package/dist/domain/language/LanguageConstants.d.ts +3 -0
  63. package/dist/domain/language/LanguageHelpers.d.ts +1 -0
  64. package/dist/domain/language/LanguageTypes.d.ts +1 -0
  65. package/dist/domain/reactvirtualized/ReactVirtualizedHelpers.d.ts +11 -0
  66. package/dist/domain/ref/RefConstants.d.ts +5 -0
  67. package/dist/domain/ref/RefTypes.d.ts +2 -0
  68. package/dist/domain/ui/UiTypes.d.ts +28 -0
  69. package/dist/domain/workdir/WorkDirTypes.d.ts +7 -0
  70. package/dist/index.d.ts +8 -2
  71. package/dist/index.js +1 -1
  72. package/dist/styles.css +2 -1
  73. package/dist/utils/MathUtils.d.ts +1 -0
  74. package/dist/utils/TextFormatting.d.ts +2 -0
  75. package/package.json +86 -82
@@ -0,0 +1,11 @@
1
+ import type { GridCellRangeRenderer } from 'react-virtualized';
2
+ import type { ReactElement } from 'react';
3
+ export type GetRealKeyForCellFunc = (rowIndex: number, columnIndex?: number) => string;
4
+ export type CustomCellCacheValue = {
5
+ realKeyForCell: string;
6
+ cell?: ReactElement<any>;
7
+ };
8
+ export type CustomCellCache = {
9
+ [key: string]: CustomCellCacheValue;
10
+ };
11
+ export declare const makeSmartCellRangeRenderer: (getRealKeyForCell: GetRealKeyForCellFunc) => GridCellRangeRenderer;
@@ -0,0 +1,5 @@
1
+ export declare const refTypes: {
2
+ HEAD: string;
3
+ REMOTE: string;
4
+ TAG: string;
5
+ };
@@ -0,0 +1,2 @@
1
+ import type * as RefConstants from './RefConstants';
2
+ export type GraphRefType = typeof RefConstants.refTypes.HEAD | typeof RefConstants.refTypes.REMOTE | typeof RefConstants.refTypes.TAG;
@@ -0,0 +1,28 @@
1
+ import type { ReactElement } from 'react';
2
+ export type ChildrenElements = string | ReactElement<any> | null;
3
+ export interface OnResizeParams {
4
+ height?: number;
5
+ width?: number;
6
+ }
7
+ export interface OnResizeFromPropChangeParams extends OnResizeParams {
8
+ originalHeight?: number;
9
+ originalWidth?: number;
10
+ }
11
+ export type ComponentTooltip = string | (() => string);
12
+ export type OnContextMenu = (event: React.MouseEvent<any>) => void;
13
+ export type OnMouseEnter = (event: React.MouseEvent<any>) => void;
14
+ export type OnMouseLeave = (event: React.MouseEvent<any>) => void;
15
+ export type OnMouseDown = (event: React.MouseEvent<any>) => void;
16
+ export type OnWheel = (event: React.MouseEvent<any>) => void;
17
+ export type OnClick = (event: React.MouseEvent<any>) => void;
18
+ export type OnDoubleClick = (event: React.MouseEvent<any>) => void;
19
+ export type OnBlur = (event: React.FocusEvent<HTMLInputElement>) => void;
20
+ export type OnFocus = (event: React.FocusEvent<HTMLInputElement>) => void;
21
+ export type OnKeyDown = (event: React.KeyboardEvent<HTMLInputElement>) => void;
22
+ export type OnKeyPress = (event: React.KeyboardEvent<HTMLInputElement>) => void;
23
+ export type OnKeyUp = (event: React.KeyboardEvent<HTMLInputElement>) => void;
24
+ export type OnComponentWillUnmount = () => void;
25
+ export type OnResize = (dimensions: OnResizeParams) => void;
26
+ export type OnResizeEnd = (dimensions: OnResizeParams) => void;
27
+ export type OnResizeFromPropChange = (dimensions: OnResizeFromPropChangeParams) => void;
28
+ export type OnResizeStart = (dimensions: OnResizeParams) => void;
@@ -0,0 +1,7 @@
1
+ import type { GraphItemContext } from '../graph/GraphTypes';
2
+ export type WorkDirStats = {
3
+ added: number;
4
+ deleted: number;
5
+ modified: number;
6
+ context?: GraphItemContext;
7
+ };
package/dist/index.d.ts CHANGED
@@ -1,5 +1,11 @@
1
1
  import GraphContainer from './components/graph/GraphContainer';
2
2
  export * from './components/graph/GraphContainer';
3
3
  export * from './domain/commit/CommitConstants';
4
-
5
- export default GraphContainer;
4
+ export * from './domain/generic/GenericTypes';
5
+ export * from './domain/commit/CommitTypes';
6
+ export * from './domain/graph/GraphConstants';
7
+ export * from './domain/graph/GraphTypes';
8
+ export * from './domain/hostingservice/HostingServiceTypes';
9
+ export * from './domain/ref/RefTypes';
10
+ export * from './domain/workdir/WorkDirTypes';
11
+ export default GraphContainer;