react-github-calendar
Advanced tools
Comparing version 4.2.2 to 4.3.0
@@ -10,33 +10,5 @@ import React$1 from 'react'; | ||
export type Year = number | "last"; | ||
export type Color = string; | ||
export type ColorScale = [ | ||
Color, | ||
Color, | ||
Color, | ||
Color, | ||
Color | ||
]; | ||
export type ThemeInput = { | ||
light: ColorScale | [ | ||
from: Color, | ||
to: Color | ||
]; | ||
dark?: ColorScale | [ | ||
from: Color, | ||
to: Color | ||
]; | ||
} | { | ||
light?: ColorScale | [ | ||
from: Color, | ||
to: Color | ||
]; | ||
dark: ColorScale | [ | ||
from: Color, | ||
to: Color | ||
]; | ||
}; | ||
export interface Props extends Omit<ActivityCalendarProps, "data" | "theme"> { | ||
export interface Props extends Omit<ActivityCalendarProps, "data"> { | ||
username: string; | ||
errorMessage?: string; | ||
theme?: ThemeInput; | ||
throwOnError?: boolean; | ||
@@ -43,0 +15,0 @@ transformData?: (data: Array<Activity>) => Array<Activity>; |
{ | ||
"name": "react-github-calendar", | ||
"version": "4.2.2", | ||
"version": "4.3.0", | ||
"description": " React component to display a GitHub contributions calendar", | ||
@@ -23,3 +23,3 @@ "author": "Jonathan Gruber <gruberjonathan@gmail.com>", | ||
"dependencies": { | ||
"react-activity-calendar": "^2.3.5", | ||
"react-activity-calendar": "^2.5.1", | ||
"react-error-boundary": "^4.0.12" | ||
@@ -29,3 +29,3 @@ }, | ||
"@babel/core": "^7.25.2", | ||
"@babel/preset-env": "^7.25.3", | ||
"@babel/preset-env": "^7.25.4", | ||
"@babel/preset-react": "^7.24.7", | ||
@@ -35,7 +35,7 @@ "@babel/preset-typescript": "^7.24.7", | ||
"@rollup/plugin-node-resolve": "^15.1.0", | ||
"@types/react": "^18.3.3", | ||
"@types/react": "^18.3.5", | ||
"@types/react-dom": "^18.3.0", | ||
"@types/tinycolor2": "^1.4.6", | ||
"@typescript-eslint/eslint-plugin": "^7.13.1", | ||
"@typescript-eslint/parser": "^7.13.1", | ||
"@typescript-eslint/eslint-plugin": "^8.3.0", | ||
"@typescript-eslint/parser": "^8.3.0", | ||
"dts-bundle-generator": "^9.5.1", | ||
@@ -50,3 +50,3 @@ "eslint": "^8.56.0", | ||
"react-dom": "^18.3.1", | ||
"rollup": "^4.20.0", | ||
"rollup": "^4.21.2", | ||
"rollup-plugin-filesize": "^10.0.0", | ||
@@ -53,0 +53,0 @@ "rollup-plugin-peer-deps-external": "^2.2.2", |
Sorry, the diff of this file is not supported yet
17972
125