From 4051df1f6c6fe3c0b2dcf325966f5c5d7a35b5ca Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Thu, 14 Nov 2024 14:30:52 +0200 Subject: [PATCH] Update dependency react-calendar to v5.1.0 (#96449) * Update dependency react-calendar to v5.1.0 * use properly exported CalendarType --------- Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Ashley Harrison --- packages/grafana-ui/package.json | 2 +- .../DateTimePickers/TimeRangePicker/CalendarBody.tsx | 3 +-- yarn.lock | 10 +++++----- 3 files changed, 7 insertions(+), 8 deletions(-) diff --git a/packages/grafana-ui/package.json b/packages/grafana-ui/package.json index ec31ff7d361..31635d69bc2 100644 --- a/packages/grafana-ui/package.json +++ b/packages/grafana-ui/package.json @@ -89,7 +89,7 @@ "rc-slider": "11.1.7", "rc-time-picker": "^3.7.3", "rc-tooltip": "6.2.1", - "react-calendar": "5.0.0", + "react-calendar": "5.1.0", "react-colorful": "5.6.1", "react-custom-scrollbars-2": "4.5.0", "react-dropzone": "14.2.10", diff --git a/packages/grafana-ui/src/components/DateTimePickers/TimeRangePicker/CalendarBody.tsx b/packages/grafana-ui/src/components/DateTimePickers/TimeRangePicker/CalendarBody.tsx index a70611dd109..e5e835dd188 100644 --- a/packages/grafana-ui/src/components/DateTimePickers/TimeRangePicker/CalendarBody.tsx +++ b/packages/grafana-ui/src/components/DateTimePickers/TimeRangePicker/CalendarBody.tsx @@ -1,7 +1,6 @@ import { css } from '@emotion/css'; import { useCallback } from 'react'; -import Calendar from 'react-calendar'; -import { CalendarType } from 'react-calendar/dist/cjs/shared/types'; +import Calendar, { CalendarType } from 'react-calendar'; import { GrafanaTheme2, dateTimeParse, DateTime, TimeZone } from '@grafana/data'; diff --git a/yarn.lock b/yarn.lock index b82b815ef72..17b00e6b92a 100644 --- a/yarn.lock +++ b/yarn.lock @@ -4268,7 +4268,7 @@ __metadata: rc-time-picker: "npm:^3.7.3" rc-tooltip: "npm:6.2.1" react: "npm:18.2.0" - react-calendar: "npm:5.0.0" + react-calendar: "npm:5.1.0" react-colorful: "npm:5.6.1" react-custom-scrollbars-2: "npm:4.5.0" react-dom: "npm:18.2.0" @@ -26935,9 +26935,9 @@ __metadata: languageName: node linkType: hard -"react-calendar@npm:5.0.0": - version: 5.0.0 - resolution: "react-calendar@npm:5.0.0" +"react-calendar@npm:5.1.0": + version: 5.1.0 + resolution: "react-calendar@npm:5.1.0" dependencies: "@wojtekmaj/date-utils": "npm:^1.1.3" clsx: "npm:^2.0.0" @@ -26950,7 +26950,7 @@ __metadata: peerDependenciesMeta: "@types/react": optional: true - checksum: 10/1172828652e796a946beec4f7f4125bfbe775a39c4cdab2179cef04b0688e892062f628ec9263bdfea6d9be41c3de1414586036d03d6694e6008cd4763649581 + checksum: 10/69c5f809646edae64dc75d8709ccac979723fde2d5752f0992e429d09a1caf45e6c2d340563dfec2cf27e22a19b5f51f65c05decfcae9860c34470c08261de43 languageName: node linkType: hard