Skip to content

Commit eb63495

Browse files
committed
Add strip tags to lib
1 parent fb14708 commit eb63495

File tree

4 files changed

+9
-4
lines changed

4 files changed

+9
-4
lines changed

package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@
2323
"react-dom": "^16.2.0",
2424
"react-select": "^1.0.0-rc.10",
2525
"react-tabs": "^2.2.1",
26-
"striptags": "^3.1.1",
2726
"tinycolor2": "^1.4.1"
2827
},
2928
"devDependencies": {

src/components/containers/Fold.js

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,12 @@ import PropTypes from 'prop-types';
33
import React, {Component} from 'react';
44
import classnames from 'classnames';
55
import {CloseIcon, AngleDownIcon} from 'plotly-icons';
6-
import {unpackPlotProps, localize, containerConnectedContextTypes} from 'lib';
7-
import striptags from 'striptags';
6+
import {
7+
unpackPlotProps,
8+
localize,
9+
containerConnectedContextTypes,
10+
striptags,
11+
} from 'lib';
812

913
class Fold extends Component {
1014
constructor(props, context) {

src/components/fields/derived.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ import {
77
connectLayoutToPlot,
88
connectToContainer,
99
supplyLayoutPlotProps,
10+
striptags,
1011
} from 'lib';
11-
import striptags from 'striptags';
1212

1313
export const CanvasSize = connectToContainer(UnconnectedNumeric, {
1414
modifyPlotProps: (props, context, plotProps) => {

src/lib/index.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ import {
2020
} from './customTraceType';
2121
import * as PlotlyIcons from 'plotly-icons';
2222
import supplyLayoutPlotProps from './supplyLayoutPlotProps';
23+
import striptags from './striptags';
2324

2425
function clamp(value, min, max) {
2526
return Math.max(min, Math.min(max, value));
@@ -71,4 +72,5 @@ export {
7172
unpackPlotProps,
7273
walkObject,
7374
supplyLayoutPlotProps,
75+
striptags,
7476
};

0 commit comments

Comments
 (0)