From c83ba6828e0020da6497ae612914b366046ff91b Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Fri, 27 Aug 2021 21:56:30 +0000 Subject: [PATCH] fix(deps): update dependency @types/codemirror to v5 (#796) * fix(deps): update dependency @types/codemirror to v5 * Fix type Co-authored-by: Renovate Bot Co-authored-by: Nathan Bierema --- packages/devui/package.json | 2 +- packages/devui/src/Editor/Editor.tsx | 4 ++-- yarn.lock | 10 +++++----- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/packages/devui/package.json b/packages/devui/package.json index 58963ab5..7b4b6d50 100755 --- a/packages/devui/package.json +++ b/packages/devui/package.json @@ -38,7 +38,7 @@ "dependencies": { "@rjsf/core": "^2.5.1", "@types/base16": "^1.0.2", - "@types/codemirror": "^0.0.109", + "@types/codemirror": "^5.60.2", "@types/prop-types": "^15.7.4", "@types/react-select": "^3.1.2", "@types/redux-devtools-themes": "^1.0.0", diff --git a/packages/devui/src/Editor/Editor.tsx b/packages/devui/src/Editor/Editor.tsx index eadc1b2e..5ea7af44 100644 --- a/packages/devui/src/Editor/Editor.tsx +++ b/packages/devui/src/Editor/Editor.tsx @@ -1,7 +1,7 @@ import React, { Component } from 'react'; import PropTypes from 'prop-types'; import styled from 'styled-components'; -import CodeMirror from 'codemirror'; +import CodeMirror, { EditorChange } from 'codemirror'; import { Base16Theme } from 'base16'; import { defaultStyle, themedStyle } from './styles'; import { Theme } from '../themes/default'; @@ -23,7 +23,7 @@ export interface EditorProps { theme?: Base16Theme; foldGutter: boolean; autofocus: boolean; - onChange?: (value: string, change: CodeMirror.EditorChangeLinkedList) => void; + onChange?: (value: string, change: EditorChange) => void; } /** diff --git a/yarn.lock b/yarn.lock index 9c1ddf88..69ef7eeb 100644 --- a/yarn.lock +++ b/yarn.lock @@ -6585,12 +6585,12 @@ __metadata: languageName: node linkType: hard -"@types/codemirror@npm:^0.0.109": - version: 0.0.109 - resolution: "@types/codemirror@npm:0.0.109" +"@types/codemirror@npm:^5.60.2": + version: 5.60.2 + resolution: "@types/codemirror@npm:5.60.2" dependencies: "@types/tern": "*" - checksum: e76251c07a686346b902b3605e79849da03d654d312fe7d2c406822f9157dd77d0c69af6701da424dcdeb669efb27165661ac7d027f42a3c64a4d07838ec9eb0 + checksum: 5e011afdc8385b35c3ffa18d8f06df3006d79071fc995afb56d53490905c290986fef99aad90ed58aede024c81843b33575a3930a15a160dd0c2e881fb387b46 languageName: node linkType: hard @@ -12909,7 +12909,7 @@ __metadata: "@storybook/addon-essentials": ^6.3.7 "@storybook/react": ^6.3.7 "@types/base16": ^1.0.2 - "@types/codemirror": ^0.0.109 + "@types/codemirror": ^5.60.2 "@types/enzyme": ^3.10.9 "@types/enzyme-adapter-react-16": ^1.0.6 "@types/prop-types": ^15.7.4