@@ -196,37 +196,38 @@ All components have optional props to further configure the log.
196196
197197# ## GitLog
198198
199- | Property | Type | Description |
200- | ----------------------- | -----------------------------| ----------------------------------------------------------------------------------------------------------|
201- | ` theme` | ` ThemeMode` | The variant of the default color theme to apply to the log. |
202- | ` colours` | ` ThemeColours \| string[]` | Array of colors used for graph elements. One per column, looping if insufficient colors are provided. |
203- | ` showHeaders` | ` boolean` | Whether to show element names like " Graph" or " Commit message" at the top of the component. |
204- | ` rowSpacing` | ` number` | The spacing between log rows, affecting branches, graph, and table. Default: ` 0` . |
205- | ` githubRepositoryUrl ` | ` string ` | URL of the GitHub repository where ` entries ` came from . Enables links for commits, tags, and PRs. |
206- | ` defaultGraphWidth` | ` number` | Default width of the graph in pixels. Can be changed dynamically if resizing is enabled. Default: ` 300` . |
207- | ` onSelectCommit` | ` (commit? : Commit) => void` | Callback function when a commit is selected. ` commit` is ` undefined` if unselected. |
208- | ` classes` | ` GitLogStylingProps` | CSS classes for various elements to enable custom styling. |
209- | ` paging` | ` GitLogPaging` | Optional paging settings for displaying a subset of log entries. |
210- | ` indexStatus` | ` GitLogIndexStatus` | Renders information about added, deleted and modified files to the index pseudo-commit entry. |
211-
199+ | Property | Type | Description |
200+ | ---------------------| -----------------------------| ----------------------------------------------------------------------------------------------------------|
201+ | ` theme` | ` ThemeMode` | The variant of the default color theme to apply to the log. |
202+ | ` colours` | ` ThemeColours \| string[]` | Array of colors used for graph elements. One per column, looping if insufficient colors are provided. |
203+ | ` showHeaders` | ` boolean` | Whether to show element names like " Graph" or " Commit message" at the top of the component. |
204+ | ` rowSpacing` | ` number` | The spacing between log rows, affecting branches, graph, and table. Default: ` 0` . |
205+ | ` urls ` | ` GitLogUrlBuilder ` | A function that returns built URLs to the remote Git provider . Enables links for commits, tags, and PRs. |
206+ | ` defaultGraphWidth` | ` number` | Default width of the graph in pixels. Can be changed dynamically if resizing is enabled. Default: ` 300` . |
207+ | ` onSelectCommit` | ` (commit? : Commit) => void` | Callback function when a commit is selected. ` commit` is ` undefined` if unselected. |
208+ | ` classes` | ` GitLogStylingProps` | CSS classes for various elements to enable custom styling. |
209+ | ` paging` | ` GitLogPaging` | Optional paging settings for displaying a subset of log entries. |
210+ | ` indexStatus` | ` GitLogIndexStatus` | Renders information about added, deleted and modified files to the index pseudo-commit entry. |
211+ | ` showGitIndex ` | ` boolean ` | Enables the Git index " pseudo-commit' entry above the HEAD commit. |
212212
213213### GitLogPaged
214214
215- | Property | Type | Description |
216- | ----------------------- | -----------------------------| ----------------------------------------------------------------------------------------------------------|
217- | ` theme` | ` ThemeMode` | The variant of the default color theme to apply to the log. |
218- | ` colours` | ` ThemeColours \| string[]` | Array of colors used for graph elements. One per column, looping if insufficient colors are provided. |
219- | ` showHeaders` | ` boolean` | Whether to show element names like " Graph" or " Commit message" at the top of the component. |
220- | ` rowSpacing` | ` number` | The spacing between log rows, affecting branches, graph, and table. Default: ` 0` . |
221- | ` githubRepositoryUrl ` | ` string ` | URL of the GitHub repository where ` entries ` came from . Enables links for commits, tags, and PRs. |
222- | ` defaultGraphWidth` | ` number` | Default width of the graph in pixels. Can be changed dynamically if resizing is enabled. Default: ` 300` . |
223- | ` onSelectCommit` | ` (commit? : Commit) => void` | Callback function when a commit is selected. ` commit` is ` undefined` if unselected. |
224- | ` classes` | ` GitLogStylingProps` | CSS classes for various elements to enable custom styling. |
225- | ` indexStatus` | ` GitLogIndexStatus` | Renders information about added, deleted and modified files to the index pseudo-commit entry. |
226- | ` showGitIndex` | ` boolean` | Enables the Git index " pseudo-commit' entry above the HEAD commit. |
215+ | Property | Type | Description |
216+ |---------------------|-----------------------------|----------------------------------------------------------------------------------------------------------|
217+ | ` theme` | ` ThemeMode` | The variant of the default color theme to apply to the log. |
218+ | ` colours` | ` ThemeColours \| string[]` | Array of colors used for graph elements. One per column, looping if insufficient colors are provided. |
219+ | ` showHeaders` | ` boolean` | Whether to show element names like " Graph" or " Commit message" at the top of the component. |
220+ | ` rowSpacing` | ` number` | The spacing between log rows, affecting branches, graph, and table. Default: ` 0` . |
221+ | ` urls ` | ` GitLogUrlBuilder ` | A function that returns built URLs to the remote Git provider . Enables links for commits, tags, and PRs. |
222+ | ` defaultGraphWidth` | ` number` | Default width of the graph in pixels. Can be changed dynamically if resizing is enabled. Default: ` 300` . |
223+ | ` onSelectCommit` | ` (commit? : Commit) => void` | Callback function when a commit is selected. ` commit` is ` undefined` if unselected. |
224+ | ` classes` | ` GitLogStylingProps` | CSS classes for various elements to enable custom styling. |
225+ | ` indexStatus` | ` GitLogIndexStatus` | Renders information about added, deleted and modified files to the index pseudo-commit entry. |
226+ | ` showGitIndex` | ` boolean` | Enables the Git index " pseudo-commit' entry above the HEAD commit. |
227227
228228
229229#### GitLogStylingProps
230+
230231| Property | Type | Description |
231232|-------------------|-----------------|--------------------------------------------------------------------------------|
232233| `containerClass` | `string` | Class name for the wrapping `<div>` containing branches, graph, and log table. |
@@ -247,6 +248,19 @@ All components have optional props to further configure the log.
247248| `deleted` | `number` | The number of deleted files in the git index for the checked-out branch. |
248249| `modified` | `number` | The number of modified files in the git index for the checked-out branch. |
249250
251+ #### GitLogUrlBuilder
252+
253+ A function with the following signature
254+ ```typescript
255+ type GitLogUrlBuilder = (args: GitLogUrlBuilderArgs) => GitLogUrls
256+ ```
257+ Returns an object of type `GitLogUrls` with the following fields.
258+
259+ | Prop | Type | Description |
260+ |------------|----------|------------------------------------------------------------------------------------------|
261+ | `commit` | `string` | A resolved URL to a particular commit hash on the external Git providers remote website. |
262+ | `branch` | `string` | A resolved URL to a branch on the external Git providers remote website. |
263+
250264### Graph
251265
252266| Property | Type | Description |
0 commit comments