diff --git a/package.json b/package.json index a3aac6090bd..2192d65b7d4 100644 --- a/package.json +++ b/package.json @@ -212,7 +212,6 @@ "@emotion/react": "11.1.5", "@grafana/aws-sdk": "0.0.3", "@grafana/slate-react": "0.22.9-grafana", - "@leeoniya/react-inlinesvg": "2.2.4", "@popperjs/core": "2.5.4", "@reduxjs/toolkit": "1.5.0", "@sentry/browser": "5.25.0", @@ -279,6 +278,7 @@ "react-dom": "17.0.1", "react-grid-layout": "1.2.0", "react-highlight-words": "0.16.0", + "react-inlinesvg": "2.3.0", "react-loadable": "5.5.0", "react-popper": "2.2.4", "react-redux": "7.2.0", diff --git a/packages/grafana-ui/src/components/Icon/Icon.tsx b/packages/grafana-ui/src/components/Icon/Icon.tsx index 38f740801a4..3a83cb4e9fd 100644 --- a/packages/grafana-ui/src/components/Icon/Icon.tsx +++ b/packages/grafana-ui/src/components/Icon/Icon.tsx @@ -4,7 +4,7 @@ import { GrafanaTheme } from '@grafana/data'; import { stylesFactory } from '../../themes/stylesFactory'; import { useTheme } from '../../themes/ThemeContext'; import { IconName, IconType, IconSize } from '../../types/icon'; -import SVG from '@leeoniya/react-inlinesvg'; +import SVG from 'react-inlinesvg'; import { cacheInitialized, initIconCache, iconRoot } from './iconBundle'; const alwaysMonoIcons: IconName[] = ['grafana', 'favorite', 'heart-break', 'heart', 'panel-add', 'reusable-panel']; diff --git a/packages/grafana-ui/src/components/Icon/iconBundle.ts b/packages/grafana-ui/src/components/Icon/iconBundle.ts index be044a2629c..becfdda7485 100644 --- a/packages/grafana-ui/src/components/Icon/iconBundle.ts +++ b/packages/grafana-ui/src/components/Icon/iconBundle.ts @@ -1,7 +1,7 @@ // This file was autogenerated from // https://github.com/grafana/icons -import { cacheStore } from '@leeoniya/react-inlinesvg'; +import { cacheStore } from 'react-inlinesvg'; export let cacheInitialized = false; export let iconRoot = 'public/img/icons'; diff --git a/yarn.lock b/yarn.lock index 9372e475c0f..001eb5ba949 100644 --- a/yarn.lock +++ b/yarn.lock @@ -2893,14 +2893,6 @@ "@types/yargs" "^15.0.0" chalk "^4.0.0" -"@leeoniya/react-inlinesvg@2.2.4": - version "2.2.4" - resolved "https://registry.yarnpkg.com/@leeoniya/react-inlinesvg/-/react-inlinesvg-2.2.4.tgz#b1f226136945fc692ea37f5a889e6545c9334336" - integrity sha512-6zaOOjYjrTC/D6tQKIPmoh+T+8d7h2kCZYbbSjEYt2Sz0OtPZw44v+MKVXiRHVYrlODgT1viJbrUmrSH0k7wOA== - dependencies: - exenv "^1.2.2" - react-from-dom "^0.6.0" - "@lerna/add@3.21.0": version "3.21.0" resolved "https://registry.yarnpkg.com/@lerna/add/-/add-3.21.0.tgz#27007bde71cc7b0a2969ab3c2f0ae41578b4577b" @@ -20792,6 +20784,14 @@ react-immutable-proptypes@^2.1.0: resolved "https://registry.yarnpkg.com/react-immutable-proptypes/-/react-immutable-proptypes-2.1.0.tgz#023d6f39bb15c97c071e9e60d00d136eac5fa0b4" integrity sha1-Aj1vObsVyXwHHp5g0A0TbqxfoLQ= +react-inlinesvg@2.3.0: + version "2.3.0" + resolved "https://registry.yarnpkg.com/react-inlinesvg/-/react-inlinesvg-2.3.0.tgz#62283c0ce7e9d11d8190ec3e89589102288830fd" + integrity sha512-fEGOdDf4k4bcveArbEpj01pJcH8pOCKLxmSj2POFdGvEk5YK0NZVnH6BXpW/PzACHPRsuh1YKAhNZyFnD28oxg== + dependencies: + exenv "^1.2.2" + react-from-dom "^0.6.0" + react-input-autosize@^3.0.0: version "3.0.0" resolved "https://registry.yarnpkg.com/react-input-autosize/-/react-input-autosize-3.0.0.tgz#6b5898c790d4478d69420b55441fcc31d5c50a85"