upgrade Codemirror to 5.48.2

main
Mike Fix 5 years ago
parent 18dab5f6e3
commit d9f1041740

@ -26,7 +26,7 @@ export const StylesheetLink = ({ theme }) => {
href = `/static/themes/${theme}.min.css`
} else {
const themeDef = THEMES_HASH[theme]
href = `//cdnjs.cloudflare.com/ajax/libs/codemirror/5.47.0/theme/${themeDef &&
href = `//cdnjs.cloudflare.com/ajax/libs/codemirror/5.48.2/theme/${themeDef &&
(themeDef.link || themeDef.id)}.min.css`
}
@ -34,7 +34,7 @@ export const StylesheetLink = ({ theme }) => {
}
export const CodeMirrorLink = () => (
<Link href="//cdnjs.cloudflare.com/ajax/libs/codemirror/5.47.0/codemirror.min.css" />
<Link href="//cdnjs.cloudflare.com/ajax/libs/codemirror/5.48.2/codemirror.min.css" />
)
const title = 'Carbon'
@ -65,13 +65,13 @@ export const MetaTags = React.memo(() => (
export const MetaLinks = React.memo(() => {
return (
<React.Fragment>
<Link href="//cdnjs.cloudflare.com/ajax/libs/codemirror/5.47.0/theme/seti.min.css" />
<Link href="//cdnjs.cloudflare.com/ajax/libs/codemirror/5.48.2/theme/seti.min.css" />
<CodeMirrorLink />
{LOCAL_STYLESHEETS.map(id => (
<Link key={id} href={`/static/themes/${id}.min.css`} />
))}
{CDN_STYLESHEETS.map(themeDef => {
const href = `//cdnjs.cloudflare.com/ajax/libs/codemirror/5.47.0/theme/${themeDef &&
const href = `//cdnjs.cloudflare.com/ajax/libs/codemirror/5.48.2/theme/${themeDef &&
(themeDef.link || themeDef.id)}.min.css`
return <Link key={themeDef.id} href={href} />
})}

@ -22,7 +22,7 @@
"@dawnlabs/tacklebox": "^0.0.11",
"@reach/visually-hidden": "^0.1.4",
"axios": "^0.19.0",
"codemirror": "^5.47.0",
"codemirror": "^5.48.2",
"codemirror-graphql": "^0.8.3",
"codemirror-mode-elixir": "^1.1.2",
"colornames": "^1.1.1",

@ -2527,10 +2527,10 @@ codemirror-mode-elixir@^1.1.2:
resolved "https://registry.yarnpkg.com/codemirror-mode-elixir/-/codemirror-mode-elixir-1.1.2.tgz#61227208d2684d928500af6934e4b9c995fb0960"
integrity sha512-1oIuRVHyUhLv0Za9sEIsI7urAj06EohwO/yVj10bg7aHnimHQ964Wk3uuoPH0Yn8L38EkOd+SwULYpDiCQtoTA==
codemirror@^5.47.0:
version "5.48.0"
resolved "https://registry.yarnpkg.com/codemirror/-/codemirror-5.48.0.tgz#66e6dae6ca79b955e34b322881ebb7b5512f3cc5"
integrity sha512-3Ter+tYtRlTNtxtYdYNPxGxBL/b3cMcvPdPm70gvmcOO2Rauv/fUEewWa0tT596Hosv6ea2mtpx28OXBy1mQCg==
codemirror@^5.48.2:
version "5.48.2"
resolved "https://registry.yarnpkg.com/codemirror/-/codemirror-5.48.2.tgz#a9dd3d426dea4cd59efd59cd98e20a9152a30922"
integrity sha512-i9VsmC8AfA5ji6EDIZ+aoSe4vt9FcwPLdHB1k1ItFbVyuOFRrcfvnoKqwZlC7EVA2UmTRiNEypE4Uo7YvzVY8Q==
collection-visit@^1.0.0:
version "1.0.0"

Loading…
Cancel
Save