diff --git a/package.json b/package.json index c60efe4ba..7c16fb6b2 100644 --- a/package.json +++ b/package.json @@ -32,7 +32,7 @@ "autobind-decorator": "2.4.0", "blueimp-canvastoblob": "2.1.0", "classnames": "2.2.5", - "dom-helpers": "5.1.3", + "dom-helpers": "3.3.1", "downshift": "3.1.4", "echarts": "^4.1.0", "flv.js": "1.5.0", @@ -78,6 +78,7 @@ "devDependencies": { "@types/async": "^2.0.45", "@types/classnames": "^2.2.3", + "@types/dom-helpers": "^3.4.1", "@types/history": "^4.6.0", "@types/hoist-non-react-statics": "^3.0.1", "@types/jest": "^24.0.11", diff --git a/src/components/Collapse.tsx b/src/components/Collapse.tsx index a1694735b..70fdaf539 100644 --- a/src/components/Collapse.tsx +++ b/src/components/Collapse.tsx @@ -5,7 +5,7 @@ */ import React from 'react'; -import css from 'dom-helpers/css'; +import css = require('dom-helpers/style/index'); import {ClassNamesFn, themeable} from '../theme'; import Transition, { EXITED, diff --git a/src/renderers/QuickEdit.tsx b/src/renderers/QuickEdit.tsx index da887f263..a2e98f5e6 100644 --- a/src/renderers/QuickEdit.tsx +++ b/src/renderers/QuickEdit.tsx @@ -14,7 +14,7 @@ import hoistNonReactStatic = require('hoist-non-react-statics'); import onClickOutside from 'react-onclickoutside'; import {Action} from '../types'; import keycode from 'keycode'; -import matches from 'dom-helpers/matches'; +import matches = require('dom-helpers/query/matches'); import Overlay from '../components/Overlay'; import PopOver from '../components/PopOver'; diff --git a/src/utils/dom.tsx b/src/utils/dom.tsx index b8d58bece..7d8b9cc8b 100644 --- a/src/utils/dom.tsx +++ b/src/utils/dom.tsx @@ -1,11 +1,11 @@ import React from 'react'; import ReactDOM from 'react-dom'; import hoistNonReactStatic = require('hoist-non-react-statics'); -import domOwnerDocument from 'dom-helpers/ownerDocument'; -import css from 'dom-helpers/css'; -import getOffset from 'dom-helpers/offset'; -import getPosition from 'dom-helpers/position'; -import getScrollTop from 'dom-helpers/scrollTop'; +import domOwnerDocument = require('dom-helpers/ownerDocument'); +import css = require('dom-helpers/style/index'); +import getOffset = require('dom-helpers/query/offset'); +import getPosition = require('dom-helpers/query/position'); +import getScrollTop = require('dom-helpers/query/scrollTop'); const bsMapping: { [propName: string]: string;