Skip to content
Merged
Show file tree
Hide file tree
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .babelrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ module.exports = {
},
"useBuiltIns": process.env.NO_COREJS_POLYFILL ? false : "usage",
"corejs": "2",
"modules": process.env.BABEL_MODULES ? process.env.BABEL_MODULES : "commonjs" // babel's default is commonjs
"modules": process.env.BABEL_MODULES ? process.env.BABEL_MODULES === 'false' ? false : process.env.BABEL_MODULES : "commonjs" // babel's default is commonjs
}],
["@babel/typescript", { isTSX: true, allExtensions: true }],
"@babel/react"
Expand Down
136 changes: 68 additions & 68 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -50,17 +50,17 @@
],
"dependencies": {
"@types/chroma-js": "^2.0.0",
"@types/lodash": "^4.14.116",
"@types/numeral": "^0.0.25",
"@types/react-beautiful-dnd": "^12.1.2",
"@types/react-input-autosize": "^2.0.2",
"@types/lodash": "^4.14.160",
"@types/numeral": "^0.0.28",
"@types/react-beautiful-dnd": "^13.0.0",
"@types/react-input-autosize": "^2.2.0",
"@types/react-virtualized-auto-sizer": "^1.0.0",
"@types/react-window": "^1.8.1",
"@types/react-window": "^1.8.2",
"@types/vfile-message": "^2.0.0",
"chroma-js": "^2.0.4",
"classnames": "^2.2.5",
"chroma-js": "^2.1.0",
"classnames": "^2.2.6",
"highlight.js": "^9.12.0",
"lodash": "^4.17.11",
"lodash": "^4.17.20",
"numeral": "^2.0.6",
"prop-types": "^15.6.0",
"react-ace": "^7.0.5",
Expand All @@ -81,98 +81,98 @@
"tabbable": "^3.0.0",
"text-diff": "^1.0.1",
"unified": "^8.4.2",
"uuid": "^3.1.0",
"vfile": "^4.1.1"
"uuid": "^8.3.0",
"vfile": "^4.2.0"
},
"devDependencies": {
"@babel/cli": "^7.8.3",
"@babel/core": "^7.8.3",
"@babel/plugin-proposal-class-properties": "^7.8.3",
"@babel/plugin-proposal-object-rest-spread": "^7.8.3",
"@babel/cli": "^7.10.5",
"@babel/core": "^7.11.4",
"@babel/plugin-proposal-class-properties": "^7.10.4",
"@babel/plugin-proposal-object-rest-spread": "^7.11.0",
"@babel/plugin-syntax-dynamic-import": "^7.8.3",
"@babel/plugin-transform-async-to-generator": "^7.8.3",
"@babel/plugin-transform-runtime": "^7.8.3",
"@babel/preset-env": "^7.8.3",
"@babel/preset-react": "^7.8.3",
"@babel/preset-typescript": "^7.8.3",
"@babel/plugin-transform-async-to-generator": "^7.10.4",
"@babel/plugin-transform-runtime": "^7.11.0",
"@babel/preset-env": "^7.11.0",
"@babel/preset-react": "^7.10.4",
"@babel/preset-typescript": "^7.10.4",
"@elastic/charts": "^20.0.0",
"@elastic/datemath": "^5.0.2",
"@elastic/datemath": "^5.0.3",
"@elastic/eslint-config-kibana": "^0.15.0",
"@svgr/core": "5.0.1",
"@svgr/core": "5.4.0",
"@svgr/plugin-svgo": "^4.0.3",
"@types/classnames": "^2.2.6",
"@types/enzyme": "^3.1.13",
"@types/highlight.js": "^9.12.3",
"@types/classnames": "^2.2.10",
"@types/enzyme": "^3.10.5",
"@types/highlight.js": "^9.12.4",
"@types/jest": "^24.0.6",
"@types/node": "^10.17.5",
"@types/react": "^16.9.34",
"@types/react-dom": "^16.9.6",
"@types/react-is": "^16.7.1",
"@types/resize-observer-browser": "^0.1.1",
"@types/resize-observer-browser": "^0.1.3",
"@types/tabbable": "^3.1.0",
"@types/uuid": "^3.4.4",
"@typescript-eslint/eslint-plugin": "^3.2.0",
"@typescript-eslint/parser": "^3.2.0",
"@types/uuid": "^8.3.0",
"@typescript-eslint/eslint-plugin": "^3.10.1",
"@typescript-eslint/parser": "^3.10.1",
"argparse": "^1.0.10",
"autoprefixer": "^7.1.5",
"axe-core": "^3.5.4",
"axe-puppeteer": "^1.1.0",
"babel-core": "7.0.0-bridge.0",
"babel-eslint": "^10.0.1",
"babel-eslint": "^10.1.0",
"babel-jest": "^24.1.0",
"babel-loader": "^8.0.4",
"babel-plugin-add-module-exports": "^1.0.0",
"babel-plugin-dynamic-import-node": "^2.2.0",
"babel-plugin-inline-react-svg": "^1.0.1",
"babel-plugin-pegjs-inline-precompile": "^0.1.0",
"babel-loader": "^8.1.0",
"babel-plugin-add-module-exports": "^1.0.2",
"babel-plugin-dynamic-import-node": "^2.3.3",
"babel-plugin-inline-react-svg": "^1.1.1",
"babel-plugin-pegjs-inline-precompile": "^0.1.1",
"babel-template": "^6.26.0",
"cache-loader": "^2.0.1",
"chai": "^4.1.2",
"chai": "^4.2.0",
"chai-webdriverio": "^0.4.3",
"chalk": "^2.4.1",
"chokidar": "^1.7.0",
"chromedriver": "^77.0.0",
"circular-dependency-plugin": "^5.0.2",
"codesandbox": "^2.1.11",
"circular-dependency-plugin": "^5.2.0",
"codesandbox": "^2.1.16",
"core-js": "^2.5.1",
"cross-env": "^5.2.0",
"css-loader": "^0.28.7",
"cssnano": "^4.0.5",
"deasync": "^0.1.19",
"cssnano": "^4.1.10",
"deasync": "^0.1.20",
"dedent": "^0.7.0",
"dts-generator": "^2.1.0",
"enzyme": "^3.10.0",
"enzyme-adapter-react-16": "^1.14.0",
"enzyme-to-json": "^3.3.0",
"enzyme": "^3.11.0",
"enzyme-adapter-react-16": "^1.15.3",
"enzyme-to-json": "^3.5.0",
"eslint": "^6.8.0",
"eslint-config-prettier": "^6.10.1",
"eslint-import-resolver-webpack": "^0.12.1",
"eslint-plugin-babel": "^5.3.0",
"eslint-plugin-import": "^2.20.2",
"eslint-plugin-jest": "^23.8.2",
"eslint-plugin-jsx-a11y": "^6.2.3",
"eslint-config-prettier": "^6.11.0",
"eslint-import-resolver-webpack": "^0.12.2",
"eslint-plugin-babel": "^5.3.1",
"eslint-plugin-import": "^2.22.0",
"eslint-plugin-jest": "^23.20.0",
"eslint-plugin-jsx-a11y": "^6.3.1",
"eslint-plugin-local": "^1.0.0",
"eslint-plugin-mocha": "^6.3.0",
"eslint-plugin-prefer-object-spread": "^1.2.1",
"eslint-plugin-prettier": "^3.1.2",
"eslint-plugin-react": "^7.19.0",
"eslint-plugin-prettier": "^3.1.4",
"eslint-plugin-react": "^7.20.6",
"eslint-plugin-react-hooks": "^3.0.0",
"faker": "^4.1.0",
"file-loader": "^1.1.11",
"findup": "^0.1.5",
"fork-ts-checker-webpack-plugin": "^0.4.4",
"geckodriver": "^1.11.0",
"geckodriver": "^1.20.0",
"get-port": "^5.1.1",
"glob": "^7.1.2",
"glob": "^7.1.6",
"html": "^1.0.0",
"html-format": "^1.0.1",
"html-webpack-plugin": "^3.2.0",
"jest": "^24.1.0",
"jest-cli": "^24.1.0",
"mocha": "^5.0.4",
"moment": "^2.20.1",
"moment-timezone": "^0.5.27",
"node-sass": "^4.9.3",
"moment": "^2.27.0",
"moment-timezone": "^0.5.31",
"node-sass": "^4.14.1",
"nodegit": "^0.23.0",
"pegjs": "^0.10.0",
"postcss-cli": "^4.1.1",
Expand All @@ -186,40 +186,40 @@
"puppeteer": "^2.0.0",
"raw-loader": "^0.5.1",
"react": "^16.12.0",
"react-docgen-typescript": "^1.20.2",
"react-docgen-typescript": "^1.20.3",
"react-dom": "^16.12.0",
"react-redux": "^5.1.2",
"react-router": "^5.2.0",
"react-router-dom": "^5.2.0",
"react-router-redux": "^4.0.8",
"react-test-renderer": "^16.2.0",
"react-test-renderer": "^16.13.1",
"react-view": "^2.3.2",
"redux": "^3.7.2",
"redux-thunk": "^2.2.0",
"resolve": "^1.5.0",
"redux-thunk": "^2.3.0",
"resolve": "^1.17.0",
"rimraf": "^2.6.2",
"sass-extract": "^2.1.0",
"sass-lint": "^1.12.1",
"sass-lint": "^1.13.1",
"sass-lint-auto-fix": "^0.15.0",
"sass-loader": "^6.0.6",
"sass-vars-to-js-loader": "^2.0.2",
"shelljs": "^0.8.1",
"start-server-and-test": "^1.1.4",
"sass-vars-to-js-loader": "^2.1.1",
"shelljs": "^0.8.4",
"start-server-and-test": "^1.11.3",
"style-loader": "^0.19.0",
"terser-webpack-plugin": "^2.3.5",
"typescript": "3.7.2",
"uglifyjs-webpack-plugin": "^2.0.1",
"uglifyjs-webpack-plugin": "^2.2.0",
"url-loader": "^1.0.1",
"wdio-chromedriver-service": "^0.1.2",
"wdio-mocha-framework": "^0.5.13",
"wdio-sauce-service": "^0.4.8",
"wdio-selenium-standalone-service": "^0.0.10",
"wdio-spec-reporter": "^0.1.4",
"wdio-spec-reporter": "^0.1.5",
"wdio-visual-regression-service": "silne30/wdio-visual-regression-service#Add_Filename_To_Result",
"webdriverio": "^4.12.0",
"webpack": "^4.41.5",
"webpack-cli": "^3.1.2",
"webpack-dev-server": "^3.1.14",
"webpack": "^4.44.1",
"webpack-cli": "^3.3.12",
"webpack-dev-server": "^3.11.0",
"yeoman-generator": "^2.0.1",
"yo": "^2.0.0"
},
Expand Down
2 changes: 1 addition & 1 deletion src/components/color_picker/utils.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ describe('chromaValid', () => {
expect(chromaValid('#0')).toBe(false);
expect(chromaValid('#00')).toBe(false);
expect(chromaValid('#000')).toBe(true);
expect(chromaValid('#0000')).toBe(false);
expect(chromaValid('#0000')).toBe(true);
expect(chromaValid('#00000')).toBe(false);
expect(chromaValid('#000000')).toBe(true);
expect(chromaValid('#0000000')).toBe(false);
Expand Down
6 changes: 3 additions & 3 deletions src/services/accessibility/html_id_generator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
* under the License.
*/

import uuid from 'uuid';
import { v1 as uuidv1 } from 'uuid';

/**
* This function returns a function to generate ids.
Expand All @@ -27,10 +27,10 @@ import uuid from 'uuid';
* it should begin with an letter to be HTML4 compliant.
*/
export function htmlIdGenerator(idPrefix: string = '') {
const staticUuid = uuid.v1();
const staticUuid = uuidv1();
return (idSuffix: string = '') => {
const prefix = `${idPrefix}${idPrefix !== '' ? '_' : 'i'}`;
const suffix = idSuffix ? `_${idSuffix}` : '';
return `${prefix}${suffix ? staticUuid : uuid.v1()}${suffix}`;
return `${prefix}${suffix ? staticUuid : uuidv1()}${suffix}`;
};
}
Loading