diff --git a/.eslintrc.js b/.eslintrc.js index 1bc9988cb98..298db0a7b8d 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -31,16 +31,12 @@ module.exports = { }, extends: [ 'plugin:@typescript-eslint/recommended', - // Prettier options need to come last, in order to override other style - // rules. - 'prettier/react', - 'prettier/standard', + // Prettier options need to come last, in order to override other style rules 'plugin:prettier/recommended', ], plugins: [ 'mocha', 'jsx-a11y', - 'prettier', 'local', 'import', 'react', diff --git a/package.json b/package.json index 3140400af5d..955bca2d3c8 100644 --- a/package.json +++ b/package.json @@ -142,13 +142,12 @@ "@types/testing-library__jest-dom": "^5.14.3", "@types/url-parse": "^1.4.8", "@types/uuid": "^8.3.0", - "@typescript-eslint/eslint-plugin": "^5.10.2", - "@typescript-eslint/parser": "^5.10.2", + "@typescript-eslint/eslint-plugin": "^5.59.7", + "@typescript-eslint/parser": "^5.59.7", "@wojtekmaj/enzyme-adapter-react-17": "^0.6.6", "argparse": "^2.0.1", "autoprefixer": "^9.8.6", "axe-core": "^4.4.1", - "babel-eslint": "^10.1.0", "babel-jest": "^24.1.0", "babel-loader": "^8.1.0", "babel-plugin-add-module-exports": "^1.0.2", @@ -174,16 +173,15 @@ "dts-generator": "^3.0.0", "enzyme": "^3.11.0", "enzyme-to-json": "^3.5.0", - "eslint": "^7.10.0", - "eslint-config-prettier": "^6.12.0", - "eslint-import-resolver-webpack": "^0.13.0", - "eslint-plugin-import": "^2.22.1", + "eslint": "^8.41.0", + "eslint-config-prettier": "^8.8.0", + "eslint-import-resolver-webpack": "^0.13.2", + "eslint-plugin-import": "^2.27.5", "eslint-plugin-jest": "^24.1.0", - "eslint-plugin-jsx-a11y": "^6.5.1", + "eslint-plugin-jsx-a11y": "^6.7.1", "eslint-plugin-local": "^1.0.0", "eslint-plugin-mocha": "^10.1.0", - "eslint-plugin-prefer-object-spread": "^1.2.1", - "eslint-plugin-prettier": "^3.1.4", + "eslint-plugin-prettier": "^4.2.1", "eslint-plugin-react": "^7.32.2", "eslint-plugin-react-hooks": "^4.6.0", "expose-gc": "^1.0.0", @@ -206,7 +204,7 @@ "postcss-inline-svg": "^4.1.0", "postcss-loader": "^7.0.1", "pre-commit": "^1.2.2", - "prettier": "^2.1.2", + "prettier": "^2.8.8", "process": "^0.11.10", "prop-types": "^15.6.0", "puppeteer": "^5.5.0", diff --git a/scripts/eslint-plugin/css_before_spread_props.test.js b/scripts/eslint-plugin/css_before_spread_props.test.js index 1df9860ebce..ff9d02cfa34 100644 --- a/scripts/eslint-plugin/css_before_spread_props.test.js +++ b/scripts/eslint-plugin/css_before_spread_props.test.js @@ -2,7 +2,8 @@ import rule from './css_before_spread_props.js'; const RuleTester = require('eslint').RuleTester; const ruleTester = new RuleTester({ - parser: require.resolve('babel-eslint'), + parser: require.resolve('@typescript-eslint/parser'), + parserOptions: { ecmaFeatures: { jsx: true } }, }); const valid = [ @@ -190,7 +191,8 @@ const invalid = [ `, errors: [ { - message: 'restTextColor: CSS props must be declared before spread props.', + message: + 'restTextColor: CSS props must be declared before spread props.', }, { message: 'restLink: CSS props must be declared before spread props.', @@ -233,11 +235,12 @@ const invalid = [ `, errors: [ { - message: 'restSpanProps: CSS props must be declared before spread props.', + message: + 'restSpanProps: CSS props must be declared before spread props.', }, ], }, -] +]; ruleTester.run('css_before_spread_props', rule, { valid, diff --git a/scripts/eslint-plugin/css_logical_properties.test.js b/scripts/eslint-plugin/css_logical_properties.test.js index 181f56a9046..68b4b34dc79 100644 --- a/scripts/eslint-plugin/css_logical_properties.test.js +++ b/scripts/eslint-plugin/css_logical_properties.test.js @@ -2,7 +2,7 @@ import rule from './css_logical_properties.js'; const RuleTester = require('eslint').RuleTester; const ruleTester = new RuleTester({ - parser: require.resolve('babel-eslint'), + parser: require.resolve('@typescript-eslint/parser'), }); const valid = [ @@ -106,8 +106,7 @@ const invalid = [ errors: [{ messageId: 'preferLogicalShorthand' }], }, { - code: - 'css`padding: ${euiTheme.size.s} ${euiTheme.size.m} ${euiTheme.size.l};`', + code: 'css`padding: ${euiTheme.size.s} ${euiTheme.size.m} ${euiTheme.size.l};`', errors: [{ messageId: 'preferLogicalShorthand' }], }, { diff --git a/scripts/eslint-plugin/forward_ref_display_name.test.js b/scripts/eslint-plugin/forward_ref_display_name.test.js index 15f840150fa..ca8403b263e 100644 --- a/scripts/eslint-plugin/forward_ref_display_name.test.js +++ b/scripts/eslint-plugin/forward_ref_display_name.test.js @@ -2,7 +2,7 @@ import rule from './forward_ref_display_name.js'; const RuleTester = require('eslint').RuleTester; const ruleTester = new RuleTester({ - parser: 'babel-eslint', + parser: require.resolve('@typescript-eslint/parser'), }); const valid = [ diff --git a/scripts/eslint-plugin/i18n.js b/scripts/eslint-plugin/i18n.js index 7d16ffc0867..f9774bd6937 100644 --- a/scripts/eslint-plugin/i18n.js +++ b/scripts/eslint-plugin/i18n.js @@ -5,24 +5,18 @@ const path = require('path'); function attributesArrayToLookup(attributesArray) { - return attributesArray.reduce( - (lookup, attribute) => { - lookup[attribute.name.name] = attribute.value; - return lookup; - }, - {} - ); + return attributesArray.reduce((lookup, attribute) => { + lookup[attribute.name.name] = attribute.value; + return lookup; + }, {}); } function getDefinedValues(valuesNode) { if (valuesNode == null || valuesNode.properties == null) return new Set(); - return valuesNode.properties.reduce( - (valueNames, property) => { - valueNames.add(property.key.name); - return valueNames; - }, - new Set() - ); + return valuesNode.properties.reduce((valueNames, property) => { + valueNames.add(property.key.name); + return valueNames; + }, new Set()); } function formatSet(set) { @@ -34,7 +28,7 @@ function getExpectedValueNames(defaultString) { const expectedNames = new Set(); if (matches) { - matches.forEach(match => { + matches.forEach((match) => { expectedNames.add(match.substring(1, match.length - 1)); }); } @@ -55,12 +49,18 @@ function getRenderPropFromChildren(children) { if (Array.isArray(children)) { for (let i = 0; i < children.length; i++) { const child = children[i]; - if (child.type === 'JSXExpressionContainer' && child.expression.type === 'ArrowFunctionExpression') { + if ( + child.type === 'JSXExpressionContainer' && + child.expression.type === 'ArrowFunctionExpression' + ) { return child.expression; } } } else { - if (children.type === 'JSXExpressionContainer' && children.expression.type === 'ArrowFunctionExpression') { + if ( + children.type === 'JSXExpressionContainer' && + children.expression.type === 'ArrowFunctionExpression' + ) { return children.expression; } } @@ -76,29 +76,42 @@ module.exports = { type: 'problem', docs: { - description: 'Enforce EuiI18n token names & variable names in render prop', + description: + 'Enforce EuiI18n token names & variable names in render prop', }, messages: { - invalidToken: 'token value "{{ tokenValue }}" must be of format {{ tokenNamespace }}.tokenName', - mismatchedValues: 'expected values "{{ expected }}" but provided {{ provided }}', - mismatchedTokensAndDefaults: 'given {{ tokenLength }} tokens but {{ defaultsLength }} defaults', - tokenNamesNotUsedInRenderProp: 'tokens {{ tokenNames }} is not used by render prop params {{ paramNames }}', - invalidTokenType: 'token expects a string value, {{ type }} passed instead', - invalidTokensType: 'tokens expects an array of strings, {{ type }} passed instead', - invalidDefaultType: 'default expects a string or arrow function, {{ type }} passed instead', - invalidDefaultsType: 'defaults expects an array of strings or arrow functions, {{ type }} passed instead', + invalidToken: + 'token value "{{ tokenValue }}" must be of format {{ tokenNamespace }}.tokenName', + mismatchedValues: + 'expected values "{{ expected }}" but provided {{ provided }}', + mismatchedTokensAndDefaults: + 'given {{ tokenLength }} tokens but {{ defaultsLength }} defaults', + tokenNamesNotUsedInRenderProp: + 'tokens {{ tokenNames }} is not used by render prop params {{ paramNames }}', + invalidTokenType: + 'token expects a string value, {{ type }} passed instead', + invalidTokensType: + 'tokens expects an array of strings, {{ type }} passed instead', + invalidDefaultType: + 'default expects a string or arrow function, {{ type }} passed instead', + invalidDefaultsType: + 'defaults expects an array of strings or arrow functions, {{ type }} passed instead', }, }, create: function (context) { const filename = context.getFilename(); const basename = path.basename(filename, path.extname(filename)); - const expectedTokenNamespace = `eui${basename.replace(/(^|_)([a-z])/g, (match, leading, char) => char.toUpperCase())}`; + const expectedTokenNamespace = `eui${basename.replace( + /(^|_)([a-z])/g, + (match, leading, char) => char.toUpperCase() + )}`; return { JSXOpeningElement(node) { // only process elements - if (node.name.type !== 'JSXIdentifier' || node.name.name !== 'EuiI18n') return; + if (node.name.type !== 'JSXIdentifier' || node.name.name !== 'EuiI18n') + return; const jsxElement = node.parent; const hasRenderProp = jsxElement.children.length > 0; @@ -113,7 +126,7 @@ module.exports = { node, loc: attributes.token.loc, messageId: 'invalidTokenType', - data: { type: attributes.token.type } + data: { type: attributes.token.type }, }); return; } @@ -130,7 +143,7 @@ module.exports = { node, loc: attributes.default.loc, messageId: 'invalidDefaultType', - data: { type: attributes.default.expression.type } + data: { type: attributes.default.expression.type }, }); return; } @@ -143,7 +156,7 @@ module.exports = { node, loc: attributes.tokens.loc, messageId: 'invalidTokensType', - data: { type: attributes.tokens.type } + data: { type: attributes.tokens.type }, }); return; } @@ -153,19 +166,26 @@ module.exports = { node, loc: attributes.tokens.loc, messageId: 'invalidTokensType', - data: { type: attributes.tokens.expression.type } + data: { type: attributes.tokens.expression.type }, }); return; } - for (let i = 0; i < attributes.tokens.expression.elements.length; i++) { + for ( + let i = 0; + i < attributes.tokens.expression.elements.length; + i++ + ) { const tokenNode = attributes.tokens.expression.elements[i]; - if (tokenNode.type !== 'Literal' || typeof tokenNode.value !== 'string') { + if ( + tokenNode.type !== 'Literal' || + typeof tokenNode.value !== 'string' + ) { context.report({ node, loc: tokenNode.loc, messageId: 'invalidTokensType', - data: { type: tokenNode.type } + data: { type: tokenNode.type }, }); return; } @@ -179,7 +199,7 @@ module.exports = { node, loc: attributes.defaults.loc, messageId: 'invalidDefaultsType', - data: { type: attributes.defaults.type } + data: { type: attributes.defaults.type }, }); return; } @@ -189,19 +209,26 @@ module.exports = { node, loc: attributes.defaults.loc, messageId: 'invalidDefaultsType', - data: { type: attributes.defaults.expression.type } + data: { type: attributes.defaults.expression.type }, }); return; } - for (let i = 0; i < attributes.defaults.expression.elements.length; i++) { + for ( + let i = 0; + i < attributes.defaults.expression.elements.length; + i++ + ) { const defaultNode = attributes.defaults.expression.elements[i]; - if (defaultNode.type !== 'Literal' || typeof defaultNode.value !== 'string') { + if ( + defaultNode.type !== 'Literal' || + typeof defaultNode.value !== 'string' + ) { context.report({ node, loc: defaultNode.loc, messageId: 'invalidDefaultsType', - data: { type: defaultNode.type } + data: { type: defaultNode.type }, }); return; } @@ -213,12 +240,18 @@ module.exports = { if (!hasMultipleTokens) { // validate token format const tokenParts = attributes.token.value.split('.'); - if (tokenParts.length <= 1 || tokenParts[0] !== expectedTokenNamespace) { + if ( + tokenParts.length <= 1 || + tokenParts[0] !== expectedTokenNamespace + ) { context.report({ node, loc: attributes.token.loc, messageId: 'invalidToken', - data: { tokenValue: attributes.token.value, tokenNamespace: expectedTokenNamespace } + data: { + tokenValue: attributes.token.value, + tokenNamespace: expectedTokenNamespace, + }, }); } @@ -229,27 +262,40 @@ module.exports = { if (attributes.default.type === 'Literal') { // default is a string literal - const expectedNames = getExpectedValueNames(attributes.default.value); + const expectedNames = getExpectedValueNames( + attributes.default.value + ); if (areSetsEqual(expectedNames, valueNames) === false) { context.report({ node, loc: attributes.values.loc, messageId: 'mismatchedValues', - data: { expected: formatSet(expectedNames), provided: formatSet(valueNames) } + data: { + expected: formatSet(expectedNames), + provided: formatSet(valueNames), + }, }); } } else { // default is a function // validate the destructured param defined by default function match the values const defaultFn = attributes.default.expression; - const objProperties = defaultFn.params && defaultFn.params[0] ? defaultFn.params[0].properties : []; - const expectedNames = new Set(objProperties.map(property => property.key.name)); + const objProperties = + defaultFn.params && defaultFn.params[0] + ? defaultFn.params[0].properties + : []; + const expectedNames = new Set( + objProperties.map((property) => property.key.name) + ); if (areSetsEqual(valueNames, expectedNames) === false) { context.report({ node, loc: attributes.values.loc, messageId: 'mismatchedValues', - data: { expected: formatSet(expectedNames), provided: formatSet(valueNames) } + data: { + expected: formatSet(expectedNames), + provided: formatSet(valueNames), + }, }); } } @@ -260,12 +306,18 @@ module.exports = { for (let i = 0; i < tokens.length; i++) { const token = tokens[i]; const tokenParts = token.value.split('.'); - if (tokenParts.length <= 1 || tokenParts[0] !== expectedTokenNamespace) { + if ( + tokenParts.length <= 1 || + tokenParts[0] !== expectedTokenNamespace + ) { context.report({ node, loc: token.loc, messageId: 'invalidToken', - data: { tokenValue: token.value, tokenNamespace: expectedTokenNamespace } + data: { + tokenValue: token.value, + tokenNamespace: expectedTokenNamespace, + }, }); } } @@ -277,7 +329,10 @@ module.exports = { node, loc: node.loc, messageId: 'mismatchedTokensAndDefaults', - data: { tokenLength: tokens.length, defaultsLength: defaults.length } + data: { + tokenLength: tokens.length, + defaultsLength: defaults.length, + }, }); } } @@ -291,22 +346,30 @@ module.exports = { const params = renderProp.params[0].elements; const tokens = attributes.tokens.expression.elements; - const paramsSet = new Set(params.map(element => element.name)); - const tokensSet = new Set(tokens.map(element => getExpectedParamNameFromToken(element.value))); + const paramsSet = new Set(params.map((element) => element.name)); + const tokensSet = new Set( + tokens.map((element) => + getExpectedParamNameFromToken(element.value) + ) + ); if (areSetsEqual(paramsSet, tokensSet) === false) { context.report({ node, loc: node.loc, messageId: 'tokenNamesNotUsedInRenderProp', - data: { tokenNames: formatSet(tokensSet), paramNames: formatSet(paramsSet) } + data: { + tokenNames: formatSet(tokensSet), + paramNames: formatSet(paramsSet), + }, }); } - } else { // single token, single param should be a matching identifier const param = renderProp.params[0]; - const tokenName = getExpectedParamNameFromToken(attributes.token.value); + const tokenName = getExpectedParamNameFromToken( + attributes.token.value + ); const paramName = param.name; if (tokenName !== paramName) { @@ -314,7 +377,7 @@ module.exports = { node, loc: node.loc, messageId: 'tokenNamesNotUsedInRenderProp', - data: { tokenNames: tokenName, paramNames: paramName } + data: { tokenNames: tokenName, paramNames: paramName }, }); } } @@ -331,14 +394,14 @@ module.exports = { ) return; - const arguments = node.arguments; + const nodeArgs = node.arguments; - const isSingleToken = arguments[0].type === 'Literal'; + const isSingleToken = nodeArgs[0].type === 'Literal'; // validate argument types if (isSingleToken) { // default must be either a Literal of an ArrowFunctionExpression - const defaultArg = arguments[1]; + const defaultArg = nodeArgs[1]; const isLiteral = defaultArg.type === 'Literal'; const isArrowExpression = defaultArg.type === 'ArrowFunctionExpression'; @@ -352,8 +415,8 @@ module.exports = { return; } } else { - const tokensArg = arguments[0]; - const defaultsArg = arguments[1]; + const tokensArg = nodeArgs[0]; + const defaultsArg = nodeArgs[1]; // tokens must be an array of Literals if (tokensArg.type !== 'ArrayExpression') { @@ -376,7 +439,7 @@ module.exports = { node, loc: tokenNode.loc, messageId: 'invalidTokensType', - data: { type: tokenNode.type } + data: { type: tokenNode.type }, }); return; } @@ -388,7 +451,7 @@ module.exports = { node, loc: defaultsArg.loc, messageId: 'invalidDefaultsType', - data: { type: defaultsArg.type } + data: { type: defaultsArg.type }, }); return; } @@ -403,7 +466,7 @@ module.exports = { node, loc: defaultNode.loc, messageId: 'invalidDefaultsType', - data: { type: defaultNode.type } + data: { type: defaultNode.type }, }); return; } @@ -411,9 +474,9 @@ module.exports = { } if (isSingleToken) { - const tokenArgument = arguments[0]; - const defaultArgument = arguments[1]; - const valuesArgument = arguments[2]; + const tokenArgument = nodeArgs[0]; + const defaultArgument = nodeArgs[1]; + const valuesArgument = nodeArgs[2]; // validate token format const tokenParts = tokenArgument.value.split('.'); @@ -458,7 +521,7 @@ module.exports = { ? defaultFn.params[0].properties : []; const expectedNames = new Set( - objProperties.map(property => property.key.name) + objProperties.map((property) => property.key.name) ); if (areSetsEqual(valueNames, expectedNames) === false) { context.report({ @@ -474,8 +537,8 @@ module.exports = { } } else { // has multiple tokens - const tokensArgument = arguments[0]; - const defaultsArgument = arguments[1]; + const tokensArgument = nodeArgs[0]; + const defaultsArgument = nodeArgs[1]; // validate their names const tokens = tokensArgument.elements; @@ -490,7 +553,10 @@ module.exports = { node, loc: token.loc, messageId: 'invalidToken', - data: { tokenValue: token.value, tokenNamespace: expectedTokenNamespace } + data: { + tokenValue: token.value, + tokenNamespace: expectedTokenNamespace, + }, }); } } @@ -512,5 +578,5 @@ module.exports = { }, // callback functions }; - } + }, }; diff --git a/scripts/eslint-plugin/i18n.test.js b/scripts/eslint-plugin/i18n.test.js index ed3585b7c74..22c5619b96a 100644 --- a/scripts/eslint-plugin/i18n.test.js +++ b/scripts/eslint-plugin/i18n.test.js @@ -2,7 +2,7 @@ const rule = require('./i18n'); const RuleTester = require('eslint').RuleTester; const ruleTester = new RuleTester({ - parser: require.resolve('babel-eslint') + parser: require.resolve('@typescript-eslint/parser'), }); const valid = [ @@ -50,53 +50,90 @@ const invalid = [ // token doesn't match file name { code: '', - errors: [{ messageId: 'invalidToken', data: { tokenValue: 'euiFooeyBar.tokenName', tokenNamespace: 'euiFooBar' } }] + errors: [ + { + messageId: 'invalidToken', + data: { + tokenValue: 'euiFooeyBar.tokenName', + tokenNamespace: 'euiFooBar', + }, + }, + ], }, // token doesn't have at least two parts { code: '', - errors: [{ messageId: 'invalidToken', data: { tokenValue: 'euiFooBar', tokenNamespace: 'euiFooBar' } }] + errors: [ + { + messageId: 'invalidToken', + data: { tokenValue: 'euiFooBar', tokenNamespace: 'euiFooBar' }, + }, + ], }, { code: '', - errors: [{ messageId: 'invalidToken', data: { tokenValue: 'tokenName', tokenNamespace: 'euiFooBar' } }] + errors: [ + { + messageId: 'invalidToken', + data: { tokenValue: 'tokenName', tokenNamespace: 'euiFooBar' }, + }, + ], }, // invalid tokens { code: ``, - errors: [{ messageId: 'invalidToken', data: { tokenValue: 'token2', tokenNamespace: 'euiFooBar' } }] + errors: [ + { + messageId: 'invalidToken', + data: { tokenValue: 'token2', tokenNamespace: 'euiFooBar' }, + }, + ], }, { code: ``, - errors: [{ messageId: 'invalidToken', data: { tokenValue: 'euiFooeyBar.token1', tokenNamespace: 'euiFooBar' } }] + errors: [ + { + messageId: 'invalidToken', + data: { tokenValue: 'euiFooeyBar.token1', tokenNamespace: 'euiFooBar' }, + }, + ], }, { code: ``, - errors: [{ messageId: 'mismatchedTokensAndDefaults', data: { tokenLength: 1, defaultsLength: 2 } }] + errors: [ + { + messageId: 'mismatchedTokensAndDefaults', + data: { tokenLength: 1, defaultsLength: 2 }, + }, + ], }, // values not in agreement with default string { code: ``, - errors: [{ - messageId: 'mismatchedValues', - data: { - expected: 'value, value2', - provided: 'value2, valuee' - } - }] + errors: [ + { + messageId: 'mismatchedValues', + data: { + expected: 'value, value2', + provided: 'value2, valuee', + }, + }, + ], }, { code: ``, - errors: [{ - messageId: 'mismatchedValues', - data: { - expected: 'value2, valuee', - provided: 'value, value2' - } - }] + errors: [ + { + messageId: 'mismatchedValues', + data: { + expected: 'value2, valuee', + provided: 'value, value2', + }, + }, + ], }, // token name isn't used by render prop @@ -104,13 +141,15 @@ const invalid = [ code: ` {tokenGame => 'asdf'} `, - errors: [{ - messageId: 'tokenNamesNotUsedInRenderProp', - data: { - tokenNames: 'tokenName', - paramNames: 'tokenGame', - } - }], + errors: [ + { + messageId: 'tokenNamesNotUsedInRenderProp', + data: { + tokenNames: 'tokenName', + paramNames: 'tokenGame', + }, + }, + ], }, // token names aren't used by render prop @@ -118,155 +157,207 @@ const invalid = [ code: ` {([tokener1, token2]) => 'asdf'} `, - errors: [{ - messageId: 'tokenNamesNotUsedInRenderProp', - data: { - tokenNames: 'token1, token2', - paramNames: 'token2, tokener1' - } - }], + errors: [ + { + messageId: 'tokenNamesNotUsedInRenderProp', + data: { + tokenNames: 'token1, token2', + paramNames: 'token2, tokener1', + }, + }, + ], }, // default callback params don't match values { code: ` name}/>`, - errors: [{ - messageId: 'mismatchedValues', - data: { - expected: 'name', - provided: 'nare' - } - }] + errors: [ + { + messageId: 'mismatchedValues', + data: { + expected: 'name', + provided: 'nare', + }, + }, + ], }, // invalid attribute types { code: '', - errors: [{ messageId: 'invalidTokenType', data: { type: 'JSXExpressionContainer' } }] + errors: [ + { + messageId: 'invalidTokenType', + data: { type: 'JSXExpressionContainer' }, + }, + ], }, { code: ``, - errors: [{ messageId: 'invalidTokensType', data: { type: 'Literal' } }] + errors: [{ messageId: 'invalidTokensType', data: { type: 'Literal' } }], }, { code: ``, - errors: [{ messageId: 'invalidTokensType', data: { type: 'Literal' } }] + errors: [{ messageId: 'invalidTokensType', data: { type: 'Literal' } }], }, { code: ``, - errors: [{ messageId: 'invalidTokensType', data: { type: 'Literal' } }] + errors: [{ messageId: 'invalidTokensType', data: { type: 'Literal' } }], }, { code: '', - errors: [{ messageId: 'invalidDefaultType', data: { type: 'Literal' } }] + errors: [{ messageId: 'invalidDefaultType', data: { type: 'Literal' } }], }, { code: ``, - errors: [{ messageId: 'invalidDefaultsType', data: { type: 'Literal' } }] + errors: [{ messageId: 'invalidDefaultsType', data: { type: 'Literal' } }], }, { code: ``, - errors: [{ messageId: 'invalidDefaultsType', data: { type: 'Literal' } }] + errors: [{ messageId: 'invalidDefaultsType', data: { type: 'Literal' } }], }, { code: ``, - errors: [{ messageId: 'invalidDefaultsType', data: { type: 'Literal' } }] + errors: [{ messageId: 'invalidDefaultsType', data: { type: 'Literal' } }], }, // /** useEuiI18n **/ // token doesn't match file name { code: `useEuiI18n('euiFooeyBar.tokenName', 'Some default value')`, - errors: [{ messageId: 'invalidToken', data: { tokenValue: 'euiFooeyBar.tokenName', tokenNamespace: 'euiFooBar' } }] + errors: [ + { + messageId: 'invalidToken', + data: { + tokenValue: 'euiFooeyBar.tokenName', + tokenNamespace: 'euiFooBar', + }, + }, + ], }, // token doesn't have at least two parts { code: `useEuiI18n('euiFooBar', 'Some default value')`, - errors: [{ messageId: 'invalidToken', data: { tokenValue: 'euiFooBar', tokenNamespace: 'euiFooBar' } }] + errors: [ + { + messageId: 'invalidToken', + data: { tokenValue: 'euiFooBar', tokenNamespace: 'euiFooBar' }, + }, + ], }, { code: `useEuiI18n('tokenName', 'Some default value')`, - errors: [{ messageId: 'invalidToken', data: { tokenValue: 'tokenName', tokenNamespace: 'euiFooBar' } }] + errors: [ + { + messageId: 'invalidToken', + data: { tokenValue: 'tokenName', tokenNamespace: 'euiFooBar' }, + }, + ], }, // invalid tokens { code: `useEuiI18n(['euiFooBar.token1', 'token2'], ['value1', 'value 2'])`, - errors: [{ messageId: 'invalidToken', data: { tokenValue: 'token2', tokenNamespace: 'euiFooBar' } }] + errors: [ + { + messageId: 'invalidToken', + data: { tokenValue: 'token2', tokenNamespace: 'euiFooBar' }, + }, + ], }, { code: `useEuiI18n(['euiFooeyBar.token1', 'euiFooBar.token2'], ['value1', 'value 2'])`, - errors: [{ messageId: 'invalidToken', data: { tokenValue: 'euiFooeyBar.token1', tokenNamespace: 'euiFooBar' } }] + errors: [ + { + messageId: 'invalidToken', + data: { tokenValue: 'euiFooeyBar.token1', tokenNamespace: 'euiFooBar' }, + }, + ], }, { code: `useEuiI18n(['euiFooBar.token1'], ['value1', 'value 2'])`, - errors: [{ messageId: 'mismatchedTokensAndDefaults', data: { tokenLength: 1, defaultsLength: 2 } }] + errors: [ + { + messageId: 'mismatchedTokensAndDefaults', + data: { tokenLength: 1, defaultsLength: 2 }, + }, + ], }, // values not in agreement with default string { code: `useEuiI18n('euiFooBar.tokenName', '{value}, {value2}', { valuee: 'Hello', value2: 'World' })`, - errors: [{ - messageId: 'mismatchedValues', - data: { - expected: 'value, value2', - provided: 'value2, valuee' - } - }] + errors: [ + { + messageId: 'mismatchedValues', + data: { + expected: 'value, value2', + provided: 'value2, valuee', + }, + }, + ], }, { code: `useEuiI18n('euiFooBar.tokenName', '{valuee}, {value2}', { value: 'Hello', value2: 'World' })`, - errors: [{ - messageId: 'mismatchedValues', - data: { - expected: 'value2, valuee', - provided: 'value, value2' - } - }] + errors: [ + { + messageId: 'mismatchedValues', + data: { + expected: 'value2, valuee', + provided: 'value, value2', + }, + }, + ], }, // default callback params don't match values { code: `useEuiI18n('euiFooBar.token', ({ name }) => name, { nare: 'John' })`, - errors: [{ - messageId: 'mismatchedValues', - data: { - expected: 'name', - provided: 'nare' - } - }] + errors: [ + { + messageId: 'mismatchedValues', + data: { + expected: 'name', + provided: 'nare', + }, + }, + ], }, // invalid attribute types { code: `useEuiI18n('euiFooBar.token', ['value'])`, - errors: [{ messageId: 'invalidDefaultType', data: { type: 'ArrayExpression' } }] + errors: [ + { messageId: 'invalidDefaultType', data: { type: 'ArrayExpression' } }, + ], }, { code: `useEuiI18n(5, ['value'])`, - errors: [{ messageId: 'invalidDefaultType', data: { type: 'ArrayExpression' } }] + errors: [ + { messageId: 'invalidDefaultType', data: { type: 'ArrayExpression' } }, + ], }, { code: `useEuiI18n([5], ['value'])`, - errors: [{ messageId: 'invalidTokensType', data: { type: 'Literal' } }] + errors: [{ messageId: 'invalidTokensType', data: { type: 'Literal' } }], }, { code: `useEuiI18n(['euiFooBar.token'], 'value')`, - errors: [{ messageId: 'invalidDefaultsType', data: { type: 'Literal' } }] + errors: [{ messageId: 'invalidDefaultsType', data: { type: 'Literal' } }], }, { code: `useEuiI18n(['euiFooBar.token'], 5)`, - errors: [{ messageId: 'invalidDefaultsType', data: { type: 'Literal' } }] + errors: [{ messageId: 'invalidDefaultsType', data: { type: 'Literal' } }], }, { code: `useEuiI18n(['euiFooBar.token'], [5])`, - errors: [{ messageId: 'invalidDefaultsType', data: { type: 'Literal' } }] + errors: [{ messageId: 'invalidDefaultsType', data: { type: 'Literal' } }], }, ]; function withFilename(ruleset) { - return ruleset.map(code => { + return ruleset.map((code) => { const definition = typeof code === 'string' ? { code } : code; definition.filename = 'foo_bar.js'; return definition; diff --git a/scripts/eslint-plugin/rel.test.js b/scripts/eslint-plugin/rel.test.js index b29599983dd..520ca09ba38 100644 --- a/scripts/eslint-plugin/rel.test.js +++ b/scripts/eslint-plugin/rel.test.js @@ -2,7 +2,7 @@ const rule = require('./rel'); const RuleTester = require('eslint').RuleTester; const ruleTester = new RuleTester({ - parser: 'babel-eslint', + parser: require.resolve('@typescript-eslint/parser'), }); const valid = [ diff --git a/scripts/eslint-plugin/require_cypress_references.js b/scripts/eslint-plugin/require_cypress_references.js index d3812966607..a94be31f29e 100644 --- a/scripts/eslint-plugin/require_cypress_references.js +++ b/scripts/eslint-plugin/require_cypress_references.js @@ -1,7 +1,8 @@ const CYPRESS_TYPES = '/// '; const CYPRESS_REAL_EVENT_TYPES = '/// '; -const CYPRESS_CUSTOM_TYPES_REGEX = /^\/ $/; +const CYPRESS_CUSTOM_TYPES_REGEX = + /^\/ $/; module.exports = { meta: { @@ -17,7 +18,8 @@ module.exports = { const fileName = context.getFilename(); const isCypressTestFile = fileName.endsWith('.spec.tsx') || fileName.endsWith('.a11y.tsx'); - if (!isCypressTestFile) return; // Note: this must be commented out for Jest tests to run correctly + const isJestTest = typeof jest !== 'undefined'; + if (!isCypressTestFile && !isJestTest) return; const sourceCode = context.getSourceCode(); const comments = sourceCode.getAllComments(); diff --git a/scripts/eslint-plugin/require_cypress_references.test.js b/scripts/eslint-plugin/require_cypress_references.test.js index 1c1ace4a07e..6bcbc4d1f01 100644 --- a/scripts/eslint-plugin/require_cypress_references.test.js +++ b/scripts/eslint-plugin/require_cypress_references.test.js @@ -2,7 +2,7 @@ import rule from './require_cypress_references.js'; const RuleTester = require('eslint').RuleTester; const ruleTester = new RuleTester({ - parser: require.resolve('babel-eslint'), + parser: require.resolve('@typescript-eslint/parser'), }); const LICENSE = `/* diff --git a/scripts/eslint-plugin/require_license_header.js b/scripts/eslint-plugin/require_license_header.js index cd093393f65..23b83648dd1 100644 --- a/scripts/eslint-plugin/require_license_header.js +++ b/scripts/eslint-plugin/require_license_header.js @@ -1,4 +1,4 @@ -const babelEslint = require('babel-eslint'); +const eslintParser = require('@typescript-eslint/parser'); function assert(truth, message) { if (truth) { @@ -48,17 +48,20 @@ module.exports = { }, ], }, - create: context => { + create: (context) => { return { Program(program) { - const license = init(context, program, function() { + const license = init(context, program, function () { const options = context.options[0] || {}; const license = options.license; assert(!!license, '"license" option is required'); - const parsed = babelEslint.parse(license); - assert(!parsed.body.length, '"license" option must only include a single comment'); + const parsed = eslintParser.parse(license, { comment: true }); + assert( + !parsed.body.length, + '"license" option must only include a single comment' + ); assert( parsed.comments.length === 1, '"license" option must only include a single comment' @@ -77,7 +80,9 @@ module.exports = { const sourceCode = context.getSourceCode(); const comment = sourceCode .getAllComments() - .find(node => normalizeWhitespace(node.value) === license.nodeValue); + .find( + (node) => normalizeWhitespace(node.value) === license.nodeValue + ); // no licence comment if (!comment) { diff --git a/scripts/eslint-plugin/require_license_header.test.js b/scripts/eslint-plugin/require_license_header.test.js index 13dcd99fb38..904dff17bc0 100644 --- a/scripts/eslint-plugin/require_license_header.test.js +++ b/scripts/eslint-plugin/require_license_header.test.js @@ -3,10 +3,7 @@ const rule = require('./require_license_header'); const dedent = require('dedent'); const ruleTester = new RuleTester({ - parser: require.resolve('babel-eslint'), - parserOptions: { - ecmaVersion: 2018, - }, + parser: require.resolve('@typescript-eslint/parser'), }); ruleTester.run('@kbn/eslint/require-license-header', rule, { diff --git a/scripts/jest/config.json b/scripts/jest/config.json index 17e840ef8ab..5a80dadb12a 100644 --- a/scripts/jest/config.json +++ b/scripts/jest/config.json @@ -5,7 +5,7 @@ "/src-docs/src/components", "/scripts/babel", "/scripts/tests", - "/packages/eslint-plugin" + "/scripts/eslint-plugin" ], "collectCoverageFrom": [ "src/{components,services,global_styling}/**/*.{ts,tsx,js,jsx}", diff --git a/src-docs/src/components/codesandbox/link.js b/src-docs/src/components/codesandbox/link.js index 2d408af6f84..b3a2c9bb7bf 100644 --- a/src-docs/src/components/codesandbox/link.js +++ b/src-docs/src/components/codesandbox/link.js @@ -30,8 +30,8 @@ const getVersion = (packageName) => { * 7. We pass the files, dependencies, and queries as params to CS through a POST call. * */ -const displayTogglesRawCode = require('!!raw-loader!../../views/form_controls/display_toggles') - .default; +const displayTogglesRawCode = + require('!!raw-loader!../../views/form_controls/display_toggles').default; export const CodeSandboxLink = ({ ...rest }) => { return ( diff --git a/src-docs/src/components/guide_page/guide_page_chrome.js b/src-docs/src/components/guide_page/guide_page_chrome.js index 18a54a11aa7..881cec9d179 100644 --- a/src-docs/src/components/guide_page/guide_page_chrome.js +++ b/src-docs/src/components/guide_page/guide_page_chrome.js @@ -91,9 +91,8 @@ export class GuidePageChrome extends Component { ? this.renderSubSections(sectionHref, sections, searchTerm) : undefined; - const isCurrentlyOpenSubSection = window.location.hash.includes( - subSectionHref - ); + const isCurrentlyOpenSubSection = + window.location.hash.includes(subSectionHref); let name = title; if (searchTerm) { diff --git a/src-docs/src/components/guide_section/guide_section_parts/guide_section_code.tsx b/src-docs/src/components/guide_section/guide_section_parts/guide_section_code.tsx index c230ff07bdb..7975bff217f 100644 --- a/src-docs/src/components/guide_section/guide_section_parts/guide_section_code.tsx +++ b/src-docs/src/components/guide_section/guide_section_parts/guide_section_code.tsx @@ -12,10 +12,9 @@ export type GuideSectionExampleCode = { type?: string; }; -export const GuideSectionExampleCode: FunctionComponent = ({ - code, - type = GuideSectionTypes.JS, -}) => { +export const GuideSectionExampleCode: FunctionComponent< + GuideSectionExampleCode +> = ({ code, type = GuideSectionTypes.JS }) => { const isJavascript = useMemo( () => [GuideSectionTypes.JS, GuideSectionTypes.TSX].includes(type), [type] diff --git a/src-docs/src/components/guide_section/guide_section_parts/guide_section_props_description.tsx b/src-docs/src/components/guide_section/guide_section_parts/guide_section_props_description.tsx index 08cbbaccf3a..c1d215babef 100644 --- a/src-docs/src/components/guide_section/guide_section_parts/guide_section_props_description.tsx +++ b/src-docs/src/components/guide_section/guide_section_parts/guide_section_props_description.tsx @@ -17,11 +17,9 @@ export type GuideSectionPropsDescription = { component: any; }; -export const GuideSectionPropsDescription: FunctionComponent = ({ - className, - componentName, - component, -}) => { +export const GuideSectionPropsDescription: FunctionComponent< + GuideSectionPropsDescription +> = ({ className, componentName, component }) => { const docgenInfo = Array.isArray(component.__docgenInfo) ? component.__docgenInfo[0] : component.__docgenInfo; diff --git a/src-docs/src/components/guide_section/guide_section_parts/guide_section_props_table.tsx b/src-docs/src/components/guide_section/guide_section_parts/guide_section_props_table.tsx index 76f3bdb9fee..1fed2a84684 100644 --- a/src-docs/src/components/guide_section/guide_section_parts/guide_section_props_table.tsx +++ b/src-docs/src/components/guide_section/guide_section_parts/guide_section_props_table.tsx @@ -13,10 +13,9 @@ export type GuideSectionPropsTable = { component: any; }; -export const GuideSectionPropsTable: FunctionComponent = ({ - componentName, - component, -}) => { +export const GuideSectionPropsTable: FunctionComponent< + GuideSectionPropsTable +> = ({ componentName, component }) => { const docgenInfo = Array.isArray(component.__docgenInfo) ? component.__docgenInfo[0] : component.__docgenInfo; diff --git a/src-docs/src/components/guide_section/guide_section_parts/guide_section_tabs.tsx b/src-docs/src/components/guide_section/guide_section_parts/guide_section_tabs.tsx index bd18d5f0c06..bfd4c10de2a 100644 --- a/src-docs/src/components/guide_section/guide_section_parts/guide_section_tabs.tsx +++ b/src-docs/src/components/guide_section/guide_section_parts/guide_section_tabs.tsx @@ -37,10 +37,9 @@ export type GuideSectionExampleTabsProps = { rightSideControl?: ReactNode; }; -export const GuideSectionExampleTabs: FunctionComponent = ({ - tabs, - rightSideControl, -}) => { +export const GuideSectionExampleTabs: FunctionComponent< + GuideSectionExampleTabsProps +> = ({ tabs, rightSideControl }) => { const [selectedTabId, setSelectedTabId] = useState(''); const onSelectedTabChanged = (id: string) => { @@ -59,15 +58,8 @@ export const GuideSectionExampleTabs: FunctionComponent {tabs.map((tab, index) => { - const { - displayName, - code, - type, - name, - props, - snippets, - ...rest - } = tab; + const { displayName, code, type, name, props, snippets, ...rest } = + tab; return ( = ({ - title, - id, - children, - wrapText = true, -}) => { +export const GuideSectionExampleText: FunctionComponent< + GuideSectionExampleText +> = ({ title, id, children, wrapText = true }) => { let titleNode; if (title) { diff --git a/src-docs/src/components/guide_theme_selector/guide_figma_link.tsx b/src-docs/src/components/guide_theme_selector/guide_figma_link.tsx index 0b0d3697607..05f6d9db11b 100644 --- a/src-docs/src/components/guide_theme_selector/guide_figma_link.tsx +++ b/src-docs/src/components/guide_theme_selector/guide_figma_link.tsx @@ -14,7 +14,9 @@ type GuideFigmaLinkProps = { context?: any; }; -export const GuideFigmaLink: React.FunctionComponent = () => { +export const GuideFigmaLink: React.FunctionComponent< + GuideFigmaLinkProps +> = () => { return ( {(context) => } @@ -23,7 +25,9 @@ export const GuideFigmaLink: React.FunctionComponent = () = }; // @ts-ignore Context has no type -const GuideFigmaLinkComponent: React.FunctionComponent = () => { +const GuideFigmaLinkComponent: React.FunctionComponent< + GuideFigmaLinkProps +> = () => { const isMobileSize = useIsWithinBreakpoints(['xs', 's']); const href = 'https://www.figma.com/community/file/964536385682658129'; diff --git a/src-docs/src/components/guide_theme_selector/guide_theme_selector.tsx b/src-docs/src/components/guide_theme_selector/guide_theme_selector.tsx index d22eafe11b3..1a9b86a1de2 100644 --- a/src-docs/src/components/guide_theme_selector/guide_theme_selector.tsx +++ b/src-docs/src/components/guide_theme_selector/guide_theme_selector.tsx @@ -25,9 +25,9 @@ type GuideThemeSelectorProps = { context?: any; }; -export const GuideThemeSelector: React.FunctionComponent = ({ - ...rest -}) => { +export const GuideThemeSelector: React.FunctionComponent< + GuideThemeSelectorProps +> = ({ ...rest }) => { return ( {(context) => } @@ -37,11 +37,9 @@ export const GuideThemeSelector: React.FunctionComponent = ({ - context, - onToggleLocale, - selectedLocale, -}) => { +const GuideThemeSelectorComponent: React.FunctionComponent< + GuideThemeSelectorProps +> = ({ context, onToggleLocale, selectedLocale }) => { const isMobileSize = useIsWithinBreakpoints(['xs', 's']); const [isPopoverOpen, setPopover] = useState(false); const [isOpen, setIsOpen] = useState( diff --git a/src-docs/src/components/with_theme/theme_context.tsx b/src-docs/src/components/with_theme/theme_context.tsx index 21f797e0d96..66ce79b8fec 100644 --- a/src-docs/src/components/with_theme/theme_context.tsx +++ b/src-docs/src/components/with_theme/theme_context.tsx @@ -77,9 +77,9 @@ export class ThemeProvider extends React.Component { // Otherwise, obtain it from localStorage const fromLocalStorage = localStorage.getItem(STYLE_STORAGE_KEY); - let themeLanguage = (fromUrlParam - ? `language--${fromUrlParam}` - : fromLocalStorage) as THEME_LANGUAGES['id']; + let themeLanguage = ( + fromUrlParam ? `language--${fromUrlParam}` : fromLocalStorage + ) as THEME_LANGUAGES['id']; // If not set by either param or storage, or an invalid value, use the default if (!themeLanguage || !THEME_LANGS.includes(themeLanguage)) diff --git a/src-docs/src/routes.js b/src-docs/src/routes.js index 4069ef311e5..098d6ac73aa 100644 --- a/src-docs/src/routes.js +++ b/src-docs/src/routes.js @@ -298,15 +298,8 @@ const createExample = (example, customTitle) => { ); } - const { - title, - sections, - beta, - isNew, - playground, - guidelines, - ...rest - } = example; + const { title, sections, beta, isNew, playground, guidelines, ...rest } = + example; const filteredSections = sections.filter((section) => section !== undefined); filteredSections.forEach((section) => { diff --git a/src-docs/src/services/props/markdown_format/plugin_list.js b/src-docs/src/services/props/markdown_format/plugin_list.js index ef06a277779..da86d2d9643 100644 --- a/src-docs/src/services/props/markdown_format/plugin_list.js +++ b/src-docs/src/services/props/markdown_format/plugin_list.js @@ -16,8 +16,12 @@ export const parsingPluginList = [ [PropsLinkMarkdownParser, {}], ]; -export const processingPluginListWithLinkedProps = getDefaultEuiMarkdownProcessingPlugins(); -processingPluginListWithLinkedProps[1][1].components.propsLinkPlugin = PropsLinkRenderer; +export const processingPluginListWithLinkedProps = + getDefaultEuiMarkdownProcessingPlugins(); +processingPluginListWithLinkedProps[1][1].components.propsLinkPlugin = + PropsLinkRenderer; -export const processingPluginListWithBoldProps = getDefaultEuiMarkdownProcessingPlugins(); -processingPluginListWithBoldProps[1][1].components.propsLinkPlugin = PropsBoldRenderer; +export const processingPluginListWithBoldProps = + getDefaultEuiMarkdownProcessingPlugins(); +processingPluginListWithBoldProps[1][1].components.propsLinkPlugin = + PropsBoldRenderer; diff --git a/src-docs/src/views/breadcrumbs/props.tsx b/src-docs/src/views/breadcrumbs/props.tsx index b7aab56d7ee..ecdd8396b98 100644 --- a/src-docs/src/views/breadcrumbs/props.tsx +++ b/src-docs/src/views/breadcrumbs/props.tsx @@ -7,6 +7,6 @@ import { export const BreadcrumbProps: FunctionComponent = () =>
; -export const BreadcrumbResponsiveMaxCount: FunctionComponent = () => ( -
-); +export const BreadcrumbResponsiveMaxCount: FunctionComponent< + EuiBreadcrumbResponsiveMaxCount +> = () =>
; diff --git a/src-docs/src/views/breadcrumbs/truncate.tsx b/src-docs/src/views/breadcrumbs/truncate.tsx index 5bc8b31e1ef..6416969b8d2 100644 --- a/src-docs/src/views/breadcrumbs/truncate.tsx +++ b/src-docs/src/views/breadcrumbs/truncate.tsx @@ -9,8 +9,7 @@ export default () => { href: '#', }, { - text: - 'Metazoans is a real mouthful, especially for creatures without mouths', + text: 'Metazoans is a real mouthful, especially for creatures without mouths', href: '#', truncate: true, }, @@ -35,8 +34,7 @@ export default () => { href: '#', }, { - text: - 'Nebulosa subspecies is also a real mouthful, especially for creatures without mouths', + text: 'Nebulosa subspecies is also a real mouthful, especially for creatures without mouths', }, ]; diff --git a/src-docs/src/views/breadcrumbs/truncate_single.tsx b/src-docs/src/views/breadcrumbs/truncate_single.tsx index 5aa30b1804b..ec80ae4dbe1 100644 --- a/src-docs/src/views/breadcrumbs/truncate_single.tsx +++ b/src-docs/src/views/breadcrumbs/truncate_single.tsx @@ -9,8 +9,7 @@ export default () => { href: '#', }, { - text: - 'Metazoans is a real mouthful, especially for creatures without mouths', + text: 'Metazoans is a real mouthful, especially for creatures without mouths', href: '#', truncate: true, }, @@ -35,8 +34,7 @@ export default () => { href: '#', }, { - text: - 'Nebulosa subspecies is also a real mouthful, especially for creatures without mouths', + text: 'Nebulosa subspecies is also a real mouthful, especially for creatures without mouths', }, ]; diff --git a/src-docs/src/views/button/button_group_compressed.js b/src-docs/src/views/button/button_group_compressed.js index 6cd55c890ee..c9f743f2211 100644 --- a/src-docs/src/views/button/button_group_compressed.js +++ b/src-docs/src/views/button/button_group_compressed.js @@ -59,10 +59,8 @@ export default () => { }, ]; - const [ - toggleIconIdToSelectedMapIcon, - setToggleIconIdToSelectedMapIcon, - ] = useState({}); + const [toggleIconIdToSelectedMapIcon, setToggleIconIdToSelectedMapIcon] = + useState({}); const [toggleCompressedIdSelected, setToggleCompressedIdSelected] = useState( `${compressedToggleButtonGroupPrefix}__1` ); diff --git a/src-docs/src/views/color_palette/color_palette.js b/src-docs/src/views/color_palette/color_palette.js index c92ed52416d..ce358250b1e 100644 --- a/src-docs/src/views/color_palette/color_palette.js +++ b/src-docs/src/views/color_palette/color_palette.js @@ -34,8 +34,7 @@ const customPalettes = [ order: 'group', direction: 'both', }), - code: - "euiPaletteColorBlind({rotations: 3, order: 'group', direction: 'both'})", + code: "euiPaletteColorBlind({rotations: 3, order: 'group', direction: 'both'})", }, { title: diff --git a/src-docs/src/views/color_picker/color_stops.tsx b/src-docs/src/views/color_picker/color_stops.tsx index a035b8e6847..9225e4aa8b8 100644 --- a/src-docs/src/views/color_picker/color_stops.tsx +++ b/src-docs/src/views/color_picker/color_stops.tsx @@ -15,11 +15,8 @@ import { useColorStopsState } from '../../../../src/services'; export default () => { const [standardColorStops, setStandardColorStops] = useColorStopsState(true); - const [ - randomColorStops, - setRandomColorStops, - addRandomColor, - ] = useColorStopsState(true); + const [randomColorStops, setRandomColorStops, addRandomColor] = + useColorStopsState(true); const [fixedColorStops, setFixedColorStops] = useColorStopsState(true); const [steppedColorStops, setSteppedColorStops] = useColorStopsState(true); const [value, setValue] = useState(10); diff --git a/src-docs/src/views/control_bar/props.tsx b/src-docs/src/views/control_bar/props.tsx index cd39c754250..aa4a1b879d1 100644 --- a/src-docs/src/views/control_bar/props.tsx +++ b/src-docs/src/views/control_bar/props.tsx @@ -11,9 +11,9 @@ import { TextControl, } from '../../../../src/components/control_bar/control_bar'; -export const BreadcrumbControlProps: FunctionComponent = () => ( -
-); +export const BreadcrumbControlProps: FunctionComponent< + BreadcrumbControl +> = () =>
; export const ButtonControlProps: FunctionComponent = () => (
@@ -26,9 +26,9 @@ export const DividerControlProps: FunctionComponent = () => ( export const IconControlTypeProps: FunctionComponent = () => (
); -export const IconButtonControlTypeProps: FunctionComponent = () => ( -
-); +export const IconButtonControlTypeProps: FunctionComponent< + IconButtonControlType +> = () =>
; export const SpacerControlProps: FunctionComponent = () => (
diff --git a/src-docs/src/views/elastic_charts/pie_slices.js b/src-docs/src/views/elastic_charts/pie_slices.js index c09bdc95282..639cdc00994 100644 --- a/src-docs/src/views/elastic_charts/pie_slices.js +++ b/src-docs/src/views/elastic_charts/pie_slices.js @@ -88,8 +88,9 @@ export default () => { }; const onSliceOrderChange = (optionId) => { - const sliceOrderLabel = sliceOrderRadios.find(({ id }) => id === optionId) - .label; + const sliceOrderLabel = sliceOrderRadios.find( + ({ id }) => id === optionId + ).label; if (sliceOrderLabel.includes('Counter')) { setSliceOrderConfig({ clockwiseSectors: false }); setSliceOrderConfigText('clockwiseSectors={false}'); diff --git a/src-docs/src/views/elastic_charts/shared.js b/src-docs/src/views/elastic_charts/shared.js index 905ba9537f4..8fd26f31c61 100644 --- a/src-docs/src/views/elastic_charts/shared.js +++ b/src-docs/src/views/elastic_charts/shared.js @@ -14,9 +14,8 @@ import euiPackage from '../../../../package'; const { devDependencies } = euiPackage; -export const chartsVersion = devDependencies['@elastic/charts'].match( - /\d+\.\d+\.\d+/ -)[0]; +export const chartsVersion = + devDependencies['@elastic/charts'].match(/\d+\.\d+\.\d+/)[0]; export const CHART_COMPONENTS = { BarSeries: BarSeries, @@ -80,8 +79,9 @@ export const ChartTypeCard = (props) => { const onChartTypeChange = (optionId) => { setToggleIdSelectd(optionId); - const chartType = toggleButtonsIcons.find(({ id }) => id === optionId) - .label; + const chartType = toggleButtonsIcons.find( + ({ id }) => id === optionId + ).label; props.onChange(chartType); }; diff --git a/src-docs/src/views/empty_prompt/_types_of_empty_states.tsx b/src-docs/src/views/empty_prompt/_types_of_empty_states.tsx index 163ea1dbc00..d08e56ecd71 100644 --- a/src-docs/src/views/empty_prompt/_types_of_empty_states.tsx +++ b/src-docs/src/views/empty_prompt/_types_of_empty_states.tsx @@ -324,7 +324,8 @@ export default () => { className={classNames( 'guideDemo__emptyPromptPanelPickerThumb', { - 'guideDemo__emptyPromptPanelPickerThumb-isSelected': isSidebar, + 'guideDemo__emptyPromptPanelPickerThumb-isSelected': + isSidebar, } )} alt="Page with sidebar thumbnail" @@ -344,7 +345,8 @@ export default () => { className={classNames( 'guideDemo__emptyPromptPanelPickerThumb', { - 'guideDemo__emptyPromptPanelPickerThumb-isSelected': isEmpty, + 'guideDemo__emptyPromptPanelPickerThumb-isSelected': + isEmpty, } )} alt="Empty page thumbnail" @@ -365,7 +367,8 @@ export default () => { className={classNames( 'guideDemo__emptyPromptPanelPickerThumb', { - 'guideDemo__emptyPromptPanelPickerThumb-isSelected': isMultiple, + 'guideDemo__emptyPromptPanelPickerThumb-isSelected': + isMultiple, } )} alt="Page with multiple panels thumbnail" diff --git a/src-docs/src/views/empty_prompt/_types_of_use_cases.tsx b/src-docs/src/views/empty_prompt/_types_of_use_cases.tsx index a2d553ab994..ee64c07a556 100644 --- a/src-docs/src/views/empty_prompt/_types_of_use_cases.tsx +++ b/src-docs/src/views/empty_prompt/_types_of_use_cases.tsx @@ -227,8 +227,7 @@ export const typesOfUseCases: { iconLight2x: pageNotFoundLight2x, iconDark2x: pageNotFoundDark2x, title:

Page not found

, - alt: - "An outer space illustration. In the background is a large moon and two planets. In the foreground is an astronaut floating in space and the numbers '404'.", + alt: "An outer space illustration. In the background is a large moon and two planets. In the foreground is an astronaut floating in space and the numbers '404'.", body: (

Sorry, we can't find the page you're looking for. It might diff --git a/src-docs/src/views/flyout/flyout_max_width.tsx b/src-docs/src/views/flyout/flyout_max_width.tsx index 666e9626138..d60e0e6a611 100644 --- a/src-docs/src/views/flyout/flyout_max_width.tsx +++ b/src-docs/src/views/flyout/flyout_max_width.tsx @@ -21,9 +21,8 @@ import { useGeneratedHtmlId } from '../../../../src/services'; export default () => { const [isFlyoutVisible, setIsFlyoutVisible] = useState(false); const [flyoutSize, setFlyoutSize] = useState('m'); - const [flyoutMaxWidth, setFlyoutMaxWidth] = useState< - EuiFlyoutProps['maxWidth'] - >(false); + const [flyoutMaxWidth, setFlyoutMaxWidth] = + useState(false); const maxWidthFlyoutTitleId = useGeneratedHtmlId({ prefix: 'maxWidthFlyoutTitle', }); diff --git a/src-docs/src/views/form_compressed/form_compressed_popover.js b/src-docs/src/views/form_compressed/form_compressed_popover.js index ff4cad88bfa..3dcf2c59f14 100644 --- a/src-docs/src/views/form_compressed/form_compressed_popover.js +++ b/src-docs/src/views/form_compressed/form_compressed_popover.js @@ -11,9 +11,8 @@ import { export default () => { const [isPopoverOpen, setIsPopoverOpen] = useState(false); - const [granularityIdSelected, setGranularityIdSelected] = useState( - 'granularityButton1' - ); + const [granularityIdSelected, setGranularityIdSelected] = + useState('granularityButton1'); const onButtonClick = () => setIsPopoverOpen((isPopoverOpen) => !isPopoverOpen); diff --git a/src-docs/src/views/form_layouts/full_width_via_context.tsx b/src-docs/src/views/form_layouts/full_width_via_context.tsx index ba85b140bd3..772b2fea67c 100644 --- a/src-docs/src/views/form_layouts/full_width_via_context.tsx +++ b/src-docs/src/views/form_layouts/full_width_via_context.tsx @@ -84,8 +84,7 @@ export default () => { options={[ { value: 'option_one', - text: - 'Option one is very long in order to try justifying the use of fullWidth on a select box', + text: 'Option one is very long in order to try justifying the use of fullWidth on a select box', }, { value: 'option_two', text: 'Option two' }, { value: 'option_three', text: 'Option three' }, diff --git a/src-docs/src/views/header/header_alert.tsx b/src-docs/src/views/header/header_alert.tsx index c6e8221460d..f96b78d54ec 100644 --- a/src-docs/src/views/header/header_alert.tsx +++ b/src-docs/src/views/header/header_alert.tsx @@ -49,8 +49,7 @@ const HeaderUpdates = () => { }, { title: 'Kibana 7.0 is turning heads', - text: - 'Simplified navigation, responsive dashboards, dark mode… pick your favorite.', + text: 'Simplified navigation, responsive dashboards, dark mode… pick your favorite.', action: ( { }, { title: 'Enter dark mode', - text: - 'Kibana now supports the easy-on-the-eyes theme across the entire UI.', + text: 'Kibana now supports the easy-on-the-eyes theme across the entire UI.', action: Go to Advanced Settings, date: '10 April 2019', badge: 7.0, @@ -103,8 +101,7 @@ const HeaderUpdates = () => { }, { title: 'Rollups made simple in Kibana', - text: - 'Save space and preserve the integrity of your data directly in the UI.', + text: 'Save space and preserve the integrity of your data directly in the UI.', action: ( { }; export default () => { - const [position, setPosition] = useState( - 'static' - ); + const [position, setPosition] = + useState('static'); const [theme, setTheme] = useState('default'); return ( diff --git a/src-docs/src/views/header/header_position.tsx b/src-docs/src/views/header/header_position.tsx index e539f21b346..dac561016cd 100644 --- a/src-docs/src/views/header/header_position.tsx +++ b/src-docs/src/views/header/header_position.tsx @@ -10,9 +10,8 @@ import { } from '../../../../src/components'; export default () => { - const [position, setPosition] = useState( - 'static' - ); + const [position, setPosition] = + useState('static'); const sections: EuiHeaderSections[] = [ { diff --git a/src-docs/src/views/header/props.tsx b/src-docs/src/views/header/props.tsx index a0e1a733ad2..4259e7d9842 100644 --- a/src-docs/src/views/header/props.tsx +++ b/src-docs/src/views/header/props.tsx @@ -2,6 +2,6 @@ import React, { FunctionComponent } from 'react'; import { EuiHeaderSections } from '../../../../src/components/header'; -export const EuiHeaderSectionsProp: FunctionComponent = () => ( -

-); +export const EuiHeaderSectionsProp: FunctionComponent< + EuiHeaderSections +> = () =>
; diff --git a/src-docs/src/views/html_id_generator/use_generated_html_id_props.tsx b/src-docs/src/views/html_id_generator/use_generated_html_id_props.tsx index af7d17c1897..876dea6552b 100644 --- a/src-docs/src/views/html_id_generator/use_generated_html_id_props.tsx +++ b/src-docs/src/views/html_id_generator/use_generated_html_id_props.tsx @@ -3,7 +3,9 @@ import React, { FunctionComponent } from 'react'; import { UseGeneratedHtmlIdOptions } from '../../../../src/services/accessibility/html_id_generator'; -export const UseGeneratedHtmlIdProps: FunctionComponent = ({ +export const UseGeneratedHtmlIdProps: FunctionComponent< + UseGeneratedHtmlIdOptions +> = ({ // They're unused in this mock component, but these props must be destructured for our // props generator to correctly read the comment docblocks associated with them prefix, diff --git a/src-docs/src/views/i18n/context.js b/src-docs/src/views/i18n/context.js index 948034cb0b7..db31bb71e07 100644 --- a/src-docs/src/views/i18n/context.js +++ b/src-docs/src/views/i18n/context.js @@ -84,11 +84,12 @@ export default () => { mapping: mappings[language], formatNumber: (value) => new Intl.NumberFormat(language).format(value), render: useDiv - ? (children) => () => ( - -
{children}
-
- ) + ? (children) => () => + ( + +
{children}
+
+ ) : undefined, }; diff --git a/src-docs/src/views/inline_edit/inline_edit_text.tsx b/src-docs/src/views/inline_edit/inline_edit_text.tsx index 04d837e4e42..a35f7b82538 100644 --- a/src-docs/src/views/inline_edit/inline_edit_text.tsx +++ b/src-docs/src/views/inline_edit/inline_edit_text.tsx @@ -23,9 +23,8 @@ export default () => { }, ]; - const [toggleTextButtonSize, setToggleTextButtonSize] = useState< - EuiInlineEditTextProps['size'] - >('m'); + const [toggleTextButtonSize, setToggleTextButtonSize] = + useState('m'); const textSizeOnChange = (optionId: EuiInlineEditTextProps['size']) => { setToggleTextButtonSize(optionId); diff --git a/src-docs/src/views/inline_edit/inline_edit_title.tsx b/src-docs/src/views/inline_edit/inline_edit_title.tsx index edd3794ceed..addf74b1fd6 100644 --- a/src-docs/src/views/inline_edit/inline_edit_title.tsx +++ b/src-docs/src/views/inline_edit/inline_edit_title.tsx @@ -35,9 +35,8 @@ export default () => { }, ]; - const [toggleTitleButtonSize, setToggleTitleButtonSize] = useState< - EuiTitleSize - >('m'); + const [toggleTitleButtonSize, setToggleTitleButtonSize] = + useState('m'); const titleSizeOnChange = (optionId: EuiTitleSize) => { setToggleTitleButtonSize(optionId); diff --git a/src-docs/src/views/key_pad_menu/props.tsx b/src-docs/src/views/key_pad_menu/props.tsx index 28e2778bc9a..558e45115dd 100644 --- a/src-docs/src/views/key_pad_menu/props.tsx +++ b/src-docs/src/views/key_pad_menu/props.tsx @@ -2,6 +2,6 @@ import React, { FunctionComponent } from 'react'; import { _EuiKeyPadMenuCheckableProps } from '../../../../src/components/key_pad_menu/key_pad_menu'; -export const EuiKeyPadMenuCheckableProps: FunctionComponent<_EuiKeyPadMenuCheckableProps> = () => ( -
-); +export const EuiKeyPadMenuCheckableProps: FunctionComponent< + _EuiKeyPadMenuCheckableProps +> = () =>
; diff --git a/src-docs/src/views/list_group/pinnable_list_group.tsx b/src-docs/src/views/list_group/pinnable_list_group.tsx index 78eecbf09f5..468cb9826cd 100644 --- a/src-docs/src/views/list_group/pinnable_list_group.tsx +++ b/src-docs/src/views/list_group/pinnable_list_group.tsx @@ -48,9 +48,8 @@ const someListItems: EuiPinnableListGroupItemProps[] = [ ]; export default () => { - const [itemList, setItemList] = useState( - someListItems - ); + const [itemList, setItemList] = + useState(someListItems); return ( <> diff --git a/src-docs/src/views/list_group/props.tsx b/src-docs/src/views/list_group/props.tsx index 9e860cb0014..0f3183c99ae 100644 --- a/src-docs/src/views/list_group/props.tsx +++ b/src-docs/src/views/list_group/props.tsx @@ -5,10 +5,10 @@ import { EuiListGroupItemExtraActionProps, } from '../../../../src/components/list_group'; -export const EuiPinnableListGroupItem: FunctionComponent = () => ( -
-); +export const EuiPinnableListGroupItem: FunctionComponent< + EuiPinnableListGroupItemProps +> = () =>
; -export const EuiListGroupItemExtraAction: FunctionComponent = () => ( -
-); +export const EuiListGroupItemExtraAction: FunctionComponent< + EuiListGroupItemExtraActionProps +> = () =>
; diff --git a/src-docs/src/views/loading/loading_example.tsx b/src-docs/src/views/loading/loading_example.tsx index 75d9c14ee53..502de9e5f91 100644 --- a/src-docs/src/views/loading/loading_example.tsx +++ b/src-docs/src/views/loading/loading_example.tsx @@ -21,9 +21,9 @@ import { import { EuiLoadingSpinnerColor as EuiLoadingSpinnerColorProps } from '../../../../src/components/loading/loading_spinner'; -export const EuiLoadingSpinnerColor: FunctionComponent = () => ( -
-); +export const EuiLoadingSpinnerColor: FunctionComponent< + EuiLoadingSpinnerColorProps +> = () =>
; import LoadingLogo from './loading_kibana'; const loadingLogoSource = require('!!raw-loader!./loading_kibana'); diff --git a/src-docs/src/views/markdown_editor/markdown_editor_no_plugins.js b/src-docs/src/views/markdown_editor/markdown_editor_no_plugins.js index 09c85890662..5b4dc9b2e64 100644 --- a/src-docs/src/views/markdown_editor/markdown_editor_no_plugins.js +++ b/src-docs/src/views/markdown_editor/markdown_editor_no_plugins.js @@ -14,11 +14,8 @@ And the following syntax no longer works. !{tooltip[anchor text](Tooltip content)} `; -const { - parsingPlugins, - processingPlugins, - uiPlugins, -} = getDefaultEuiMarkdownPlugins({ exclude: ['tooltip'] }); +const { parsingPlugins, processingPlugins, uiPlugins } = + getDefaultEuiMarkdownPlugins({ exclude: ['tooltip'] }); export default () => { const [value, setValue] = useState(initialContent); diff --git a/src-docs/src/views/package/changelog.js b/src-docs/src/views/package/changelog.js index 78d80ac056d..a3652b6e885 100644 --- a/src-docs/src/views/package/changelog.js +++ b/src-docs/src/views/package/changelog.js @@ -4,10 +4,11 @@ import { EuiMarkdownFormat } from '../../../../src'; import { GuideSection } from '../../components'; import { GuideTabbedPage } from '../../components/guide_tabbed_page'; -const changelogSource = require('!!raw-loader!../../../../CHANGELOG.md').default.replace( - /## \[`main`\].+?##(?= \[`\d)/s, // remove the `main` heading & contents - '##' -); +const changelogSource = + require('!!raw-loader!../../../../CHANGELOG.md').default.replace( + /## \[`main`\].+?##(?= \[`\d)/s, // remove the `main` heading & contents + '##' + ); export const Changelog = { name: 'Changelog', diff --git a/src-docs/src/views/page_components/page_demo.tsx b/src-docs/src/views/page_components/page_demo.tsx index 25d1ee4032a..e6acf7e0f2c 100644 --- a/src-docs/src/views/page_components/page_demo.tsx +++ b/src-docs/src/views/page_components/page_demo.tsx @@ -26,9 +26,8 @@ import { pageConfig } from './playground'; export const PageComponentDemo: FunctionComponent = () => { const [showSideBar, setShowSideBar] = useState(true); const [horizontal, setHorizontal] = useState(true); - const [restrictWidth, setRestrictWidth] = useState< - EuiPageProps['restrictWidth'] - >(false); + const [restrictWidth, setRestrictWidth] = + useState(false); const [grow, setGrow] = useState(true); const content = ( diff --git a/src-docs/src/views/page_template/_page_demo.tsx b/src-docs/src/views/page_template/_page_demo.tsx index cf4e9c43a78..b70a0df8d71 100644 --- a/src-docs/src/views/page_template/_page_demo.tsx +++ b/src-docs/src/views/page_template/_page_demo.tsx @@ -97,12 +97,10 @@ export const PageDemo: FunctionComponent< ); // Restrict width combos - const [restrictWidth, setRestrictWidth] = useState< - EuiPageTemplateProps['restrictWidth'] - >(true); - const [bottomBorder, setBottomBorder] = useState< - EuiPageTemplateProps['bottomBorder'] - >(undefined); + const [restrictWidth, setRestrictWidth] = + useState(true); + const [bottomBorder, setBottomBorder] = + useState(undefined); const button = fullscreen ? ( diff --git a/src-docs/src/views/popover/props.tsx b/src-docs/src/views/popover/props.tsx index 0beada7ecfc..05fe8c63a36 100644 --- a/src-docs/src/views/popover/props.tsx +++ b/src-docs/src/views/popover/props.tsx @@ -2,6 +2,6 @@ import React, { FunctionComponent } from 'react'; import { EuiPopoverPanelProps as _EuiPopoverPanelProps } from '../../../../src/components/popover/popover_panel/_popover_panel'; -export const EuiPopoverPanelProps: FunctionComponent<_EuiPopoverPanelProps> = () => ( -
-); +export const EuiPopoverPanelProps: FunctionComponent< + _EuiPopoverPanelProps +> = () =>
; diff --git a/src-docs/src/views/range/input.tsx b/src-docs/src/views/range/input.tsx index 9800d0238b4..ea18f8e86b6 100644 --- a/src-docs/src/views/range/input.tsx +++ b/src-docs/src/views/range/input.tsx @@ -11,8 +11,7 @@ import { export default () => { const [value, setValue] = useState('20'); const [dualValue, setDualValue] = useState([ - 20, - 100, + 20, 100, ]); const inputRangeSliderId = useGeneratedHtmlId({ prefix: 'inputRangeSlider' }); diff --git a/src-docs/src/views/range/input_only.tsx b/src-docs/src/views/range/input_only.tsx index 574127a6965..43df623c4b7 100644 --- a/src-docs/src/views/range/input_only.tsx +++ b/src-docs/src/views/range/input_only.tsx @@ -14,8 +14,7 @@ import { DisplayToggles } from '../form_controls/display_toggles'; export default () => { const [value, setValue] = useState('20'); const [dualValue, setDualValue] = useState([ - 20, - 100, + 20, 100, ]); const inputRangeSliderId = useGeneratedHtmlId({ prefix: 'inputRangeSlider' }); diff --git a/src-docs/src/views/range/levels.tsx b/src-docs/src/views/range/levels.tsx index 943e24e9ba0..949e4583088 100644 --- a/src-docs/src/views/range/levels.tsx +++ b/src-docs/src/views/range/levels.tsx @@ -13,8 +13,7 @@ export default () => { const [value, setValue] = useState('20'); const [customColorsValue, setCustomColorsValue] = useState('15'); const [dualValue, setDualValue] = useState([ - 20, - 100, + 20, 100, ]); const levels = [ diff --git a/src-docs/src/views/range/states.tsx b/src-docs/src/views/range/states.tsx index 19167196366..e49148d5a70 100644 --- a/src-docs/src/views/range/states.tsx +++ b/src-docs/src/views/range/states.tsx @@ -13,8 +13,7 @@ import { useGeneratedHtmlId } from '../../../../src/services'; export default () => { const [value, setValue] = useState('20'); const [dualValue, setDualValue] = useState([ - 20, - 100, + 20, 100, ]); const levels = [ diff --git a/src-docs/src/views/range/ticks.tsx b/src-docs/src/views/range/ticks.tsx index 2de5fed0f6b..f9ed4b3aaae 100644 --- a/src-docs/src/views/range/ticks.tsx +++ b/src-docs/src/views/range/ticks.tsx @@ -13,8 +13,7 @@ import { export default () => { const [value, setValue] = useState('20'); const [dualValue, setDualValue] = useState([ - 20, - 100, + 20, 100, ]); const [noLinearValue, setNoLinearValue] = useState('28'); diff --git a/src-docs/src/views/search_bar/props_info.js b/src-docs/src/views/search_bar/props_info.js index 06b8a927e2d..900b7d37224 100644 --- a/src-docs/src/views/search_bar/props_info.js +++ b/src-docs/src/views/search_bar/props_info.js @@ -9,8 +9,7 @@ export const propsInfo = { 'the callback ill receive the query text and an error object (holding the error message)', required: true, type: { - name: - '({ query?: #Query, queryText: string, error?: { message: string } }) => void', + name: '({ query?: #Query, queryText: string, error?: { message: string } }) => void', }, }, query: { @@ -57,16 +56,14 @@ export const propsInfo = { description: 'Executes the given query over an array if objects and returns the an array of objects that match it', type: { - name: - 'static (query: #Query | string, items: Object[], options?: #ExecuteQueryOptions) => Object[]', + name: 'static (query: #Query | string, items: Object[], options?: #ExecuteQueryOptions) => Object[]', }, }, toESQuery: { description: 'Builds and returns an Elasticsearch query object out of the given query', type: { - name: - 'static (query: #Query | string, options?: #ToESQueryOptions) => ESQuery', + name: 'static (query: #Query | string, options?: #ToESQueryOptions) => ESQuery', }, }, }, diff --git a/src-docs/src/views/selectable/props.tsx b/src-docs/src/views/selectable/props.tsx index eb0a39e7af0..16d778b98a6 100644 --- a/src-docs/src/views/selectable/props.tsx +++ b/src-docs/src/views/selectable/props.tsx @@ -7,22 +7,22 @@ import { EuiSelectableTemplateSitewideMetaData, } from '../../../../src'; -export const EuiSelectableOptionProps: FunctionComponent = () => ( -
-); +export const EuiSelectableOptionProps: FunctionComponent< + EuiSelectableOption +> = () =>
; -export const EuiSelectableOptionsList: FunctionComponent = () => ( -
-); +export const EuiSelectableOptionsList: FunctionComponent< + EuiSelectableOptionsListProps +> = () =>
; -export const EuiSelectableSearchProps: FunctionComponent> = () =>
; +export const EuiSelectableSearchProps: FunctionComponent< + EuiSelectableSearchableSearchProps +> = () =>
; -export const Options: FunctionComponent = () => ( -
-); +export const Options: FunctionComponent< + EuiSelectableTemplateSitewideOption +> = () =>
; -export const MetaData: FunctionComponent = () => ( -
-); +export const MetaData: FunctionComponent< + EuiSelectableTemplateSitewideMetaData +> = () =>
; diff --git a/src-docs/src/views/selectable/selectable_templates/sitewide_search.tsx b/src-docs/src/views/selectable/selectable_templates/sitewide_search.tsx index 2b791a9c709..cb80843b43c 100644 --- a/src-docs/src/views/selectable/selectable_templates/sitewide_search.tsx +++ b/src-docs/src/views/selectable/selectable_templates/sitewide_search.tsx @@ -218,8 +218,7 @@ const searchData: EuiSelectableTemplateSitewideOption[] = [ type: 'article', }, { - text: - 'https://discuss.elastic.co/t/generate-har-archive-of-network-timings', + text: 'https://discuss.elastic.co/t/generate-har-archive-of-network-timings', highlightSearchString: true, }, ], diff --git a/src-docs/src/views/side_nav/props.tsx b/src-docs/src/views/side_nav/props.tsx index ba73c04621f..d459d01a20c 100644 --- a/src-docs/src/views/side_nav/props.tsx +++ b/src-docs/src/views/side_nav/props.tsx @@ -1,11 +1,11 @@ import React, { FunctionComponent } from 'react'; import { EuiSideNavItemType } from '../../../../src/components/side_nav/side_nav_types'; -export const EuiSideNavItem: FunctionComponent> = () =>
; +export const EuiSideNavItem: FunctionComponent< + EuiSideNavItemType +> = () =>
; import { EuiSideNavHeadingProps } from '../../../../src/components/side_nav/side_nav'; -export const EuiSideNavHeading: FunctionComponent = () => ( -
-); +export const EuiSideNavHeading: FunctionComponent< + EuiSideNavHeadingProps +> = () =>
; diff --git a/src-docs/src/views/super_date_picker/props.tsx b/src-docs/src/views/super_date_picker/props.tsx index 7812167c010..fbf9b785aad 100644 --- a/src-docs/src/views/super_date_picker/props.tsx +++ b/src-docs/src/views/super_date_picker/props.tsx @@ -2,6 +2,6 @@ import React, { FunctionComponent } from 'react'; import { EuiSuperUpdateButtonProps as _EuiSuperUpdateButtonProps } from '../../../../src/components'; -export const EuiSuperUpdateButtonProps: FunctionComponent<_EuiSuperUpdateButtonProps> = () => ( -
-); +export const EuiSuperUpdateButtonProps: FunctionComponent< + _EuiSuperUpdateButtonProps +> = () =>
; diff --git a/src-docs/src/views/super_date_picker/super_date_picker_custom_quick_select.tsx b/src-docs/src/views/super_date_picker/super_date_picker_custom_quick_select.tsx index 39569ff9254..44d72ac3ad1 100644 --- a/src-docs/src/views/super_date_picker/super_date_picker_custom_quick_select.tsx +++ b/src-docs/src/views/super_date_picker/super_date_picker_custom_quick_select.tsx @@ -24,9 +24,8 @@ function MyCustomQuickSelectPanel({ applyTime }: { applyTime?: ApplyTime }) { export default () => { const { euiTheme } = useEuiTheme(); - const [showCustomQuickSelectPanel, setShowCustomQuickSelectPanel] = useState( - true - ); + const [showCustomQuickSelectPanel, setShowCustomQuickSelectPanel] = + useState(true); const [showRecentlyUsed, setShowRecentlyUsed] = useState(true); const [showQuickSelectOnly, setShowQuickSelectOnly] = useState(false); diff --git a/src-docs/src/views/tables/in_memory/in_memory_search_callback.tsx b/src-docs/src/views/tables/in_memory/in_memory_search_callback.tsx index 5ce220cc63c..391f010a980 100644 --- a/src-docs/src/views/tables/in_memory/in_memory_search_callback.tsx +++ b/src-docs/src/views/tables/in_memory/in_memory_search_callback.tsx @@ -124,7 +124,8 @@ export default () => { requestTimeoutId = setTimeout(() => { const items = users.filter((user) => { - const normalizedName = `${user.firstName} ${user.lastName}`.toLowerCase(); + const normalizedName = + `${user.firstName} ${user.lastName}`.toLowerCase(); const normalizedQuery = query?.text.toLowerCase() || ''; return normalizedName.indexOf(normalizedQuery) !== -1; }); diff --git a/src-docs/src/views/tables/in_memory/in_memory_search_external.tsx b/src-docs/src/views/tables/in_memory/in_memory_search_external.tsx index 71b757ff1b2..e0fff0d4cc5 100644 --- a/src-docs/src/views/tables/in_memory/in_memory_search_external.tsx +++ b/src-docs/src/views/tables/in_memory/in_memory_search_external.tsx @@ -49,7 +49,7 @@ type User = { dateOfBirth: Date; online: boolean; location: string; - locationData: typeof countries[number]; + locationData: (typeof countries)[number]; }; const users: User[] = []; diff --git a/src-docs/src/views/tables/props/props.tsx b/src-docs/src/views/tables/props/props.tsx index 3ad66d8b6a3..05a4af848db 100644 --- a/src-docs/src/views/tables/props/props.tsx +++ b/src-docs/src/views/tables/props/props.tsx @@ -7,16 +7,16 @@ import { EuiTableRowCellMobileOptionsShape as _EuiTableRowCellMobileOptionsShape // Simulating the `item` generic type T = {}; -export const DefaultItemActionProps: FunctionComponent> = () =>
; +export const DefaultItemActionProps: FunctionComponent< + DefaultItemAction +> = () =>
; export const SearchProps: FunctionComponent = () =>
; -export const SearchFilterConfigProps: FunctionComponent = () => ( -
-); +export const SearchFilterConfigProps: FunctionComponent< + SearchFilterConfig +> = () =>
; -export const EuiTableRowCellMobileOptionsShape: FunctionComponent<_EuiTableRowCellMobileOptionsShape> = () => ( -
-); +export const EuiTableRowCellMobileOptionsShape: FunctionComponent< + _EuiTableRowCellMobileOptionsShape +> = () =>
; diff --git a/src-docs/src/views/theme/_props.tsx b/src-docs/src/views/theme/_props.tsx index c430e4b2e96..802782b2aa3 100644 --- a/src-docs/src/views/theme/_props.tsx +++ b/src-docs/src/views/theme/_props.tsx @@ -20,9 +20,9 @@ export const EuiThemeColors: FunctionComponent<_EuiThemeColorsMode> = () => (
); -export const EuiThemeConstantColors: FunctionComponent<_EuiThemeConstantColors> = () => ( -
-); +export const EuiThemeConstantColors: FunctionComponent< + _EuiThemeConstantColors +> = () =>
; import { _EuiThemeSizes } from '../../../../src/global_styling/variables/size'; @@ -38,9 +38,9 @@ import { export const EuiThemeFontBase: FunctionComponent<_EuiThemeFontBase> = () => (
); -export const EuiThemeFontWeight: FunctionComponent<_EuiThemeFontWeights> = () => ( -
-); +export const EuiThemeFontWeight: FunctionComponent< + _EuiThemeFontWeights +> = () =>
; export const EuiThemeFontScale: FunctionComponent<_EuiThemeFontScales> = () => (
); @@ -53,18 +53,18 @@ import { _EuiThemeBorderWidthValues, } from '../../../../src/global_styling/variables/borders'; -export const EuiThemeBorderRadiusValues: FunctionComponent<_EuiThemeBorderRadiusValues> = () => ( -
-); -export const EuiThemeBorderWidthValues: FunctionComponent<_EuiThemeBorderWidthValues> = () => ( -
-); -export const EuiThemeBorderColorValues: FunctionComponent<_EuiThemeBorderColorValues> = () => ( -
-); -export const EuiThemeBorderTypes: FunctionComponent<_EuiThemeBorderTypes> = () => ( -
-); +export const EuiThemeBorderRadiusValues: FunctionComponent< + _EuiThemeBorderRadiusValues +> = () =>
; +export const EuiThemeBorderWidthValues: FunctionComponent< + _EuiThemeBorderWidthValues +> = () =>
; +export const EuiThemeBorderColorValues: FunctionComponent< + _EuiThemeBorderColorValues +> = () =>
; +export const EuiThemeBorderTypes: FunctionComponent< + _EuiThemeBorderTypes +> = () =>
; import { _EuiThemeFocus } from '../../../../src/global_styling/variables/states'; @@ -75,12 +75,12 @@ import { _EuiThemeAnimationEasings, } from '../../../../src/global_styling/variables/animations'; -export const EuiThemeAnimationSpeed: FunctionComponent<_EuiThemeAnimationSpeeds> = () => ( -
-); -export const EuiThemeAnimationEasing: FunctionComponent<_EuiThemeAnimationEasings> = () => ( -
-); +export const EuiThemeAnimationSpeed: FunctionComponent< + _EuiThemeAnimationSpeeds +> = () =>
; +export const EuiThemeAnimationEasing: FunctionComponent< + _EuiThemeAnimationEasings +> = () =>
; export const euiThemeBreakpointType = { custom: { origin: { type: { name: 'number' } } }, diff --git a/src-docs/src/views/theme/color/_color_js.tsx b/src-docs/src/views/theme/color/_color_js.tsx index 8174aa930a0..b4749bb0575 100644 --- a/src-docs/src/views/theme/color/_color_js.tsx +++ b/src-docs/src/views/theme/color/_color_js.tsx @@ -388,7 +388,8 @@ export const UtilsValuesJS = () => { ? `useEuiBackgroundColor('${color}', 'transparent')` : `useEuiBackgroundColor('${color}')`, value: euiBackgroundColor(euiTheme, color, { - method: backgroundSelected as _EuiBackgroundColorOptions['method'], + method: + backgroundSelected as _EuiBackgroundColorOptions['method'], }), }; })} diff --git a/src-docs/src/views/theme/color/contrast.tsx b/src-docs/src/views/theme/color/contrast.tsx index 5d533f949bb..b4b3efa0da3 100644 --- a/src-docs/src/views/theme/color/contrast.tsx +++ b/src-docs/src/views/theme/color/contrast.tsx @@ -65,9 +65,8 @@ export default () => { }; }); - const [backgroundColors, setBackgroundColors] = useState( - background_colors - ); + const [backgroundColors, setBackgroundColors] = + useState(background_colors); const [backgroundFunction, setBackgroundFunction] = useState( 'useEuiBackgroundColor' ); diff --git a/src-docs/src/views/theme/color_mode/inverse_complex.tsx b/src-docs/src/views/theme/color_mode/inverse_complex.tsx index 30888bf994a..ff3dd9247d9 100644 --- a/src-docs/src/views/theme/color_mode/inverse_complex.tsx +++ b/src-docs/src/views/theme/color_mode/inverse_complex.tsx @@ -40,9 +40,8 @@ export default () => { }, ]; - const [boxColorModeSelected, setBoxColorMode] = useState( - 'light' - ); + const [boxColorModeSelected, setBoxColorMode] = + useState('light'); const onChange = (colorMode: EuiThemeColorMode) => { setBoxColorMode(colorMode); diff --git a/src-docs/src/views/theme/other/_animation_js.tsx b/src-docs/src/views/theme/other/_animation_js.tsx index 3989d3b7447..6f17793f798 100644 --- a/src-docs/src/views/theme/other/_animation_js.tsx +++ b/src-docs/src/views/theme/other/_animation_js.tsx @@ -56,9 +56,9 @@ export const SpeedValuesJS = () => { const { euiTheme } = useEuiTheme(); const animation = euiTheme.animation; - const speedTypes = (getPropsFromComponent( + const speedTypes = getPropsFromComponent( EuiThemeAnimationSpeed - ) as unknown) as _EuiThemeAnimationSpeeds; + ) as unknown as _EuiThemeAnimationSpeeds; const speeds = keysOf(speedTypes); return ( @@ -125,9 +125,9 @@ export const EasingJS: FunctionComponent = ({ description }) => { export const EasingValuesJS = () => { const { euiTheme } = useEuiTheme(); const animation = euiTheme.animation; - const easingTypes = (getPropsFromComponent( + const easingTypes = getPropsFromComponent( EuiThemeAnimationEasing - ) as unknown) as _EuiThemeAnimationEasings; + ) as unknown as _EuiThemeAnimationEasings; const eases = keysOf(easingTypes); return ( diff --git a/src-docs/src/views/theme/other/_levels_js.tsx b/src-docs/src/views/theme/other/_levels_js.tsx index 5be01d71c04..6b20a4ee4ae 100644 --- a/src-docs/src/views/theme/other/_levels_js.tsx +++ b/src-docs/src/views/theme/other/_levels_js.tsx @@ -12,9 +12,9 @@ import { EuiThemeLevelsProps } from '../_props'; export default () => { const { euiTheme } = useEuiTheme(); - const levelsTypes = (getPropsFromComponent( + const levelsTypes = getPropsFromComponent( EuiThemeLevelsProps - ) as unknown) as _EuiThemeLevels; + ) as unknown as _EuiThemeLevels; return ( <> diff --git a/src-docs/src/views/utility_classes/utility_classes_section.tsx b/src-docs/src/views/utility_classes/utility_classes_section.tsx index af0d9f6e01e..7614493739c 100644 --- a/src-docs/src/views/utility_classes/utility_classes_section.tsx +++ b/src-docs/src/views/utility_classes/utility_classes_section.tsx @@ -8,10 +8,9 @@ type UtilityClassesSection = ThemeExample & { code: string; }; -export const UtilityClassesSection: FunctionComponent = ({ - code, - ...rest -}) => { +export const UtilityClassesSection: FunctionComponent< + UtilityClassesSection +> = ({ code, ...rest }) => { return ( { fallback: { fs: false, os: false, + assert: false, process: require.resolve('process/browser'), - // provide requirements for playground path: require.resolve('path'), buffer: require.resolve('buffer/'), diff --git a/src/components/accessibility/screen_reader_live/screen_reader_live.tsx b/src/components/accessibility/screen_reader_live/screen_reader_live.tsx index 5f19e17b4de..6c4c8eee169 100644 --- a/src/components/accessibility/screen_reader_live/screen_reader_live.tsx +++ b/src/components/accessibility/screen_reader_live/screen_reader_live.tsx @@ -46,7 +46,9 @@ export interface EuiScreenReaderLiveProps { focusRegionOnTextChange?: boolean; } -export const EuiScreenReaderLive: FunctionComponent = ({ +export const EuiScreenReaderLive: FunctionComponent< + EuiScreenReaderLiveProps +> = ({ children, isActive = true, role = 'status', diff --git a/src/components/accessibility/screen_reader_only/screen_reader_only.tsx b/src/components/accessibility/screen_reader_only/screen_reader_only.tsx index b86114c9847..faf1b9d38f3 100644 --- a/src/components/accessibility/screen_reader_only/screen_reader_only.tsx +++ b/src/components/accessibility/screen_reader_only/screen_reader_only.tsx @@ -25,11 +25,9 @@ export interface EuiScreenReaderOnlyProps { className?: string; } -export const EuiScreenReaderOnly: FunctionComponent = ({ - children, - className, - showOnFocus, -}) => { +export const EuiScreenReaderOnly: FunctionComponent< + EuiScreenReaderOnlyProps +> = ({ children, className, showOnFocus }) => { const classes = classNames(className, children.props.className); const styles = euiScreenReaderOnlyStyles(showOnFocus); diff --git a/src/components/accessibility/skip_link/skip_link.tsx b/src/components/accessibility/skip_link/skip_link.tsx index 8dc8ab60027..0b8a89c0670 100644 --- a/src/components/accessibility/skip_link/skip_link.tsx +++ b/src/components/accessibility/skip_link/skip_link.tsx @@ -16,7 +16,7 @@ import { EuiScreenReaderOnly } from '../screen_reader_only'; import { euiSkipLinkStyles } from './skip_link.styles'; export const POSITIONS = ['static', 'fixed', 'absolute'] as const; -type Positions = typeof POSITIONS[number]; +type Positions = (typeof POSITIONS)[number]; interface EuiSkipLinkInterface extends EuiButtonProps { /** diff --git a/src/components/avatar/avatar.tsx b/src/components/avatar/avatar.tsx index 567c44868af..c316b58fb8e 100644 --- a/src/components/avatar/avatar.tsx +++ b/src/components/avatar/avatar.tsx @@ -21,13 +21,13 @@ import { IconType, EuiIcon, IconSize, IconColor } from '../icon'; import { euiAvatarStyles } from './avatar.styles'; export const SIZES = ['s', 'm', 'l', 'xl'] as const; -export type EuiAvatarSize = typeof SIZES[number]; +export type EuiAvatarSize = (typeof SIZES)[number]; export const TYPES = ['space', 'user'] as const; -export type EuiAvatarType = typeof TYPES[number]; +export type EuiAvatarType = (typeof TYPES)[number]; export const CASING = ['capitalize', 'uppercase', 'lowercase', 'none'] as const; -export type EuiAvatarCasing = typeof CASING[number]; +export type EuiAvatarCasing = (typeof CASING)[number]; /** * The avatar can only display one type of content, diff --git a/src/components/badge/badge.tsx b/src/components/badge/badge.tsx index 4c56fa20cda..1b9fd2afda4 100644 --- a/src/components/badge/badge.tsx +++ b/src/components/badge/badge.tsx @@ -34,7 +34,7 @@ import { euiBadgeStyles } from './badge.styles'; import { euiButtonFillColor } from '../../themes/amsterdam/global_styling/mixins'; export const ICON_SIDES = ['left', 'right'] as const; -type IconSide = typeof ICON_SIDES[number]; +type IconSide = (typeof ICON_SIDES)[number]; export const COLORS = [ 'default', @@ -45,7 +45,7 @@ export const COLORS = [ 'warning', 'danger', ] as const; -type BadgeColor = typeof COLORS[number]; +type BadgeColor = (typeof COLORS)[number]; type WithButtonProps = { /** @@ -155,8 +155,10 @@ export const EuiBadge: FunctionComponent = ({ | 'accent' | 'warning' | 'danger'; - colorHex = euiButtonFillColor(euiTheme, color as RemainingColors) - .backgroundColor; + colorHex = euiButtonFillColor( + euiTheme, + color as RemainingColors + ).backgroundColor; break; } diff --git a/src/components/badge/badge_group/badge_group.tsx b/src/components/badge/badge_group/badge_group.tsx index 29ae779d684..83099b899ce 100644 --- a/src/components/badge/badge_group/badge_group.tsx +++ b/src/components/badge/badge_group/badge_group.tsx @@ -14,7 +14,7 @@ import { useEuiTheme } from '../../../services'; import { euiBadgeGroupStyles } from './badge_group.styles'; export const GUTTER_SIZES = ['none', 'xs', 's'] as const; -type BadgeGroupGutterSize = typeof GUTTER_SIZES[number]; +type BadgeGroupGutterSize = (typeof GUTTER_SIZES)[number]; export interface EuiBadgeGroupProps { /** diff --git a/src/components/badge/beta_badge/beta_badge.tsx b/src/components/badge/beta_badge/beta_badge.tsx index 7b9d82cc744..89f60ccce68 100644 --- a/src/components/badge/beta_badge/beta_badge.tsx +++ b/src/components/badge/beta_badge/beta_badge.tsx @@ -25,13 +25,13 @@ import { EuiIcon, IconType } from '../../icon'; import { euiBetaBadgeStyles } from './beta_badge.styles'; export const COLORS = ['accent', 'subdued', 'hollow'] as const; -export type BetaBadgeColor = typeof COLORS[number]; +export type BetaBadgeColor = (typeof COLORS)[number]; export const SIZES = ['s', 'm'] as const; -export type BetaBadgeSize = typeof SIZES[number]; +export type BetaBadgeSize = (typeof SIZES)[number]; export const ALIGNMENTS = ['baseline', 'middle'] as const; -export type BetaBadgeAlignment = typeof ALIGNMENTS[number]; +export type BetaBadgeAlignment = (typeof ALIGNMENTS)[number]; type WithButtonProps = { /** diff --git a/src/components/badge/notification_badge/badge_notification.tsx b/src/components/badge/notification_badge/badge_notification.tsx index 054f32d6586..a4e9ad8d746 100644 --- a/src/components/badge/notification_badge/badge_notification.tsx +++ b/src/components/badge/notification_badge/badge_notification.tsx @@ -14,10 +14,10 @@ import { useEuiTheme } from '../../../services'; import { euiNotificationBadgeStyles } from './badge_notification.styles'; export const COLORS = ['accent', 'subdued'] as const; -export type BadgeNotificationColor = typeof COLORS[number]; +export type BadgeNotificationColor = (typeof COLORS)[number]; export const SIZES = ['s', 'm'] as const; -export type BadgeNotificationSize = typeof SIZES[number]; +export type BadgeNotificationSize = (typeof SIZES)[number]; export interface EuiNotificationBadgeProps extends CommonProps, @@ -30,13 +30,9 @@ export interface EuiNotificationBadgeProps color?: BadgeNotificationColor; } -export const EuiNotificationBadge: FunctionComponent = ({ - children, - className, - size = 's', - color = 'accent', - ...rest -}) => { +export const EuiNotificationBadge: FunctionComponent< + EuiNotificationBadgeProps +> = ({ children, className, size = 's', color = 'accent', ...rest }) => { const euiTheme = useEuiTheme(); const styles = euiNotificationBadgeStyles(euiTheme); diff --git a/src/components/basic_table/basic_table.tsx b/src/components/basic_table/basic_table.tsx index deb089be3b8..23498c19b05 100644 --- a/src/components/basic_table/basic_table.tsx +++ b/src/components/basic_table/basic_table.tsx @@ -848,11 +848,8 @@ export class EuiBasicTable extends Component< columns.forEach((column: EuiBasicTableColumn) => { const footer = getColumnFooter(column, { items, pagination }); - const { - mobileOptions, - field, - align, - } = column as EuiTableFieldDataColumnType; + const { mobileOptions, field, align } = + column as EuiTableFieldDataColumnType; if (mobileOptions?.only) { return; // exclude columns that only exist for mobile headers diff --git a/src/components/basic_table/collapsed_item_actions.tsx b/src/components/basic_table/collapsed_item_actions.tsx index cf1b0363de2..4e63e31dc1c 100644 --- a/src/components/basic_table/collapsed_item_actions.tsx +++ b/src/components/basic_table/collapsed_item_actions.tsx @@ -89,14 +89,8 @@ export class CollapsedItemActions extends Component< }; render() { - const { - actions, - itemId, - item, - actionEnabled, - onFocus, - className, - } = this.props; + const { actions, itemId, item, actionEnabled, onFocus, className } = + this.props; const isOpen = this.state.popoverOpen; diff --git a/src/components/basic_table/in_memory_table.tsx b/src/components/basic_table/in_memory_table.tsx index e1480094822..9c959c265f7 100644 --- a/src/components/basic_table/in_memory_table.tsx +++ b/src/components/basic_table/in_memory_table.tsx @@ -237,10 +237,9 @@ function getInitialSorting( }; } - const { - field: sortable, - direction: sortDirection, - } = (sorting as SortingOptions).sort; + const { field: sortable, direction: sortDirection } = ( + sorting as SortingOptions + ).sort; const sortColumn = findColumnByFieldOrName(columns, sortable); @@ -367,12 +366,8 @@ export class EuiInMemoryTable extends Component< super(props); const { columns, search, pagination, sorting, allowNeutralSort } = props; - const { - pageIndex, - pageSize, - pageSizeOptions, - showPerPageOptions, - } = getInitialPagination(pagination); + const { pageIndex, pageSize, pageSizeOptions, showPerPageOptions } = + getInitialPagination(pagination); const { sortName, sortDirection } = getInitialSorting(columns, sorting); this.state = { diff --git a/src/components/beacon/beacon.tsx b/src/components/beacon/beacon.tsx index 2e58cce188b..b0070e00217 100644 --- a/src/components/beacon/beacon.tsx +++ b/src/components/beacon/beacon.tsx @@ -22,7 +22,7 @@ export const COLORS = [ 'warning', ] as const; -export type EuiBeaconColor = typeof COLORS[number]; +export type EuiBeaconColor = (typeof COLORS)[number]; export type EuiBeaconProps = Omit< HTMLAttributes, diff --git a/src/components/bottom_bar/bottom_bar.tsx b/src/components/bottom_bar/bottom_bar.tsx index bd29f85c67a..5a3be3656a5 100644 --- a/src/components/bottom_bar/bottom_bar.tsx +++ b/src/components/bottom_bar/bottom_bar.tsx @@ -36,7 +36,7 @@ export const paddingSizeToClassNameMap: { }; export const POSITIONS = ['static', 'fixed', 'sticky'] as const; -export type _BottomBarPosition = typeof POSITIONS[number]; +export type _BottomBarPosition = (typeof POSITIONS)[number]; type _BottomBarExclusivePositions = ExclusiveUnion< { diff --git a/src/components/breadcrumbs/breadcrumbs.test.tsx b/src/components/breadcrumbs/breadcrumbs.test.tsx index d7007954ba9..6d348186998 100644 --- a/src/components/breadcrumbs/breadcrumbs.test.tsx +++ b/src/components/breadcrumbs/breadcrumbs.test.tsx @@ -32,8 +32,7 @@ const breadcrumbs: EuiBreadcrumb[] = [ text: 'Chordates', }, { - text: - 'Nebulosa subspecies is also a real mouthful, especially for creatures without mouths', + text: 'Nebulosa subspecies is also a real mouthful, especially for creatures without mouths', truncate: true, }, { diff --git a/src/components/button/button.tsx b/src/components/button/button.tsx index a7b85eecf7b..874c02f4b7e 100644 --- a/src/components/button/button.tsx +++ b/src/components/button/button.tsx @@ -41,7 +41,7 @@ export const COLORS = [...BUTTON_COLORS, 'ghost'] as const; export type EuiButtonColor = _EuiButtonColor | 'ghost'; export const SIZES = ['s', 'm'] as const; -export type EuiButtonSize = typeof SIZES[number]; +export type EuiButtonSize = (typeof SIZES)[number]; interface BaseProps { children?: ReactNode; diff --git a/src/components/button/button_display/_button_display.tsx b/src/components/button/button_display/_button_display.tsx index af4e79e6705..d52f2bd8dd6 100644 --- a/src/components/button/button_display/_button_display.tsx +++ b/src/components/button/button_display/_button_display.tsx @@ -35,7 +35,7 @@ import { validateHref } from '../../../services/security/href_validator'; import { useEuiButtonRadiusCSS } from '../../../themes/amsterdam/global_styling/mixins'; const SIZES = ['xs', 's', 'm'] as const; -export type EuiButtonDisplaySizes = typeof SIZES[number]; +export type EuiButtonDisplaySizes = (typeof SIZES)[number]; /** * Extends EuiButtonDisplayContentProps which provides diff --git a/src/components/button/button_display/_button_display_content.tsx b/src/components/button/button_display/_button_display_content.tsx index 77963013aa6..88ca51b1df4 100644 --- a/src/components/button/button_display/_button_display_content.tsx +++ b/src/components/button/button_display/_button_display_content.tsx @@ -15,10 +15,10 @@ import { euiButtonDisplayContentStyles } from './_button_display_content.styles' import classNames from 'classnames'; export const ICON_SIZES = ['s', 'm'] as const; -export type ButtonContentIconSize = typeof ICON_SIZES[number]; +export type ButtonContentIconSize = (typeof ICON_SIZES)[number]; export const ICON_SIDES = ['left', 'right'] as const; -export type ButtonContentIconSide = typeof ICON_SIDES[number] | undefined; +export type ButtonContentIconSide = (typeof ICON_SIDES)[number] | undefined; export type EuiButtonDisplayContentType = HTMLAttributes; diff --git a/src/components/button/button_empty/button_empty.tsx b/src/components/button/button_empty/button_empty.tsx index de9cad61f73..66d72c2b7aa 100644 --- a/src/components/button/button_empty/button_empty.tsx +++ b/src/components/button/button_empty/button_empty.tsx @@ -91,9 +91,8 @@ export interface CommonEuiButtonEmptyProps type EuiButtonEmptyPropsForAnchor = PropsForAnchor; -export type EuiButtonEmptyPropsForButton = PropsForButton< - CommonEuiButtonEmptyProps ->; +export type EuiButtonEmptyPropsForButton = + PropsForButton; export type EuiButtonEmptyProps = ExclusiveUnion< EuiButtonEmptyPropsForAnchor, diff --git a/src/components/call_out/call_out.tsx b/src/components/call_out/call_out.tsx index 0e6c09613db..ea25ab23e43 100644 --- a/src/components/call_out/call_out.tsx +++ b/src/components/call_out/call_out.tsx @@ -21,10 +21,10 @@ import { EuiTitle } from '../title'; import { euiCallOutStyles, euiCallOutHeadingStyles } from './call_out.styles'; export const COLORS = ['primary', 'success', 'warning', 'danger'] as const; -export type Color = typeof COLORS[number]; +export type Color = (typeof COLORS)[number]; export const HEADINGS = ['h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'p'] as const; -type Heading = typeof HEADINGS[number]; +type Heading = (typeof HEADINGS)[number]; type Size = 's' | 'm'; diff --git a/src/components/card/card.styles.ts b/src/components/card/card.styles.ts index ba57c5c47c7..e424ce12cb1 100644 --- a/src/components/card/card.styles.ts +++ b/src/components/card/card.styles.ts @@ -45,7 +45,9 @@ export const euiCardStyles = ( flex-direction: column; // Apply the outline to the whole card when the internal text button has focus - &:has([class*='euiCard__text'][class*='-interactive']:focus:focus-visible) { + &:has( + [class*='euiCard__text'][class*='-interactive']:focus:focus-visible + ) { outline: ${euiTheme.focus.width} solid currentColor; } `, diff --git a/src/components/card/card.tsx b/src/components/card/card.tsx index 0be5be7fe7a..4174e148a3e 100644 --- a/src/components/card/card.tsx +++ b/src/components/card/card.tsx @@ -34,7 +34,7 @@ import { } from './card.styles'; export const ALIGNMENTS = ['left', 'center', 'right'] as const; -type CardAlignment = typeof ALIGNMENTS[number]; +type CardAlignment = (typeof ALIGNMENTS)[number]; /** * Certain props are only allowed when the layout is vertical diff --git a/src/components/code/code.tsx b/src/components/code/code.tsx index 6ab01b02df8..2f7a4013a18 100644 --- a/src/components/code/code.tsx +++ b/src/components/code/code.tsx @@ -27,9 +27,10 @@ export const EuiCode: FunctionComponent = ({ className, ...rest }) => { - const language = useMemo(() => checkSupportedLanguage(_language), [ - _language, - ]); + const language = useMemo( + () => checkSupportedLanguage(_language), + [_language] + ); const data: RefractorNode[] = useMemo(() => { if (typeof children !== 'string') { @@ -38,10 +39,10 @@ export const EuiCode: FunctionComponent = ({ return highlight(children, language); }, [children, language]); - const content = useMemo(() => getHtmlContent(data, children), [ - data, - children, - ]); + const content = useMemo( + () => getHtmlContent(data, children), + [data, children] + ); const classes = classNames('euiCode', className); diff --git a/src/components/code/code_block.tsx b/src/components/code/code_block.tsx index ef0b6a84577..199f84562e4 100644 --- a/src/components/code/code_block.tsx +++ b/src/components/code/code_block.tsx @@ -41,10 +41,10 @@ const fontSizeToRowHeightMap = { }; export const FONT_SIZES = ['s', 'm', 'l'] as const; -export type EuiCodeBlockFontSize = typeof FONT_SIZES[number]; +export type EuiCodeBlockFontSize = (typeof FONT_SIZES)[number]; export const PADDING_SIZES = ['none', 's', 'm', 'l'] as const; -export type EuiCodeBlockPaddingSize = typeof PADDING_SIZES[number]; +export type EuiCodeBlockPaddingSize = (typeof PADDING_SIZES)[number]; // This exclusive union enforces specific props based on isVirtualized type VirtualizedOptionProps = ExclusiveUnion< @@ -122,9 +122,10 @@ export const EuiCodeBlock: FunctionComponent = ({ ...rest }) => { const euiTheme = useEuiTheme(); - const language = useMemo(() => checkSupportedLanguage(_language), [ - _language, - ]); + const language = useMemo( + () => checkSupportedLanguage(_language), + [_language] + ); const lineNumbersConfig = useMemo(() => { const config = typeof lineNumbers === 'object' ? lineNumbers : {}; @@ -142,10 +143,10 @@ export const EuiCodeBlock: FunctionComponent = ({ }, [children, language, lineNumbersConfig, euiTheme]); // Used by `pre` when `isVirtualized=false` or `children` is not parsable - const content = useMemo(() => getHtmlContent(data, children), [ - data, - children, - ]); + const content = useMemo( + () => getHtmlContent(data, children), + [data, children] + ); const isVirtualized = useMemo( () => !!(_isVirtualized && Array.isArray(data)), diff --git a/src/components/code/utils.tsx b/src/components/code/utils.tsx index 905774eec35..3f343fc5006 100644 --- a/src/components/code/utils.tsx +++ b/src/components/code/utils.tsx @@ -259,11 +259,11 @@ function wrapLines( // Annotation element const hasAnnotation = options.annotations?.hasOwnProperty(lineNumber); if (hasAnnotation) { - const annotationElement = ({ + const annotationElement = { type: 'annotation', annotation: options.annotations[lineNumber], lineNumber, - } as unknown) as RefractorNode; + } as unknown as RefractorNode; lineNumberWrapperElement.children.push(annotationElement); } diff --git a/src/components/collapsible_nav/collapsible_nav_group/collapsible_nav_group.tsx b/src/components/collapsible_nav/collapsible_nav_group/collapsible_nav_group.tsx index 20982bed6b2..8849645c2cf 100644 --- a/src/components/collapsible_nav/collapsible_nav_group/collapsible_nav_group.tsx +++ b/src/components/collapsible_nav/collapsible_nav_group/collapsible_nav_group.tsx @@ -97,7 +97,9 @@ export type EuiCollapsibleNavGroupProps = ExclusiveUnion< GroupAsDiv >; -export const EuiCollapsibleNavGroup: FunctionComponent = ({ +export const EuiCollapsibleNavGroup: FunctionComponent< + EuiCollapsibleNavGroupProps +> = ({ className, children, id, diff --git a/src/components/color_picker/color_palette_display/color_palette_display.tsx b/src/components/color_picker/color_palette_display/color_palette_display.tsx index 53acce39731..f43a8fa440a 100644 --- a/src/components/color_picker/color_palette_display/color_palette_display.tsx +++ b/src/components/color_picker/color_palette_display/color_palette_display.tsx @@ -58,13 +58,9 @@ export type EuiColorPaletteDisplayProps = { size?: EuiColorPaletteDisplaySize; } & ExclusiveUnion; -export const EuiColorPaletteDisplay: FunctionComponent = ({ - type = 'fixed', - palette, - className, - size = 's', - ...rest -}) => { +export const EuiColorPaletteDisplay: FunctionComponent< + EuiColorPaletteDisplayProps +> = ({ type = 'fixed', palette, className, size = 's', ...rest }) => { const classes = classnames( 'euiColorPaletteDisplay', className, diff --git a/src/components/color_picker/color_palette_display/color_palette_display_fixed.tsx b/src/components/color_picker/color_palette_display/color_palette_display_fixed.tsx index ecfceee1006..f36e133c6a9 100644 --- a/src/components/color_picker/color_palette_display/color_palette_display_fixed.tsx +++ b/src/components/color_picker/color_palette_display/color_palette_display_fixed.tsx @@ -22,11 +22,9 @@ interface paletteItem { width: string; } -export const EuiColorPaletteDisplayFixed: FunctionComponent = ({ - palette, - title, - ...rest -}) => { +export const EuiColorPaletteDisplayFixed: FunctionComponent< + EuiColorPaletteDisplayFixedProps +> = ({ palette, title, ...rest }) => { const fixedGradient = getFixedLinearGradient(palette); const paletteStops = fixedGradient.map((item: paletteItem, index: number) => ( diff --git a/src/components/color_picker/color_palette_display/color_palette_display_gradient.tsx b/src/components/color_picker/color_palette_display/color_palette_display_gradient.tsx index a46231c8777..2a08df65a8a 100644 --- a/src/components/color_picker/color_palette_display/color_palette_display_gradient.tsx +++ b/src/components/color_picker/color_palette_display/color_palette_display_gradient.tsx @@ -17,12 +17,9 @@ export interface EuiColorPaletteDisplayGradientProps CommonProps, EuiColorPaletteDisplayShared {} -export const EuiColorPaletteDisplayGradient: FunctionComponent = ({ - palette, - title, - style = {}, - ...rest -}) => { +export const EuiColorPaletteDisplayGradient: FunctionComponent< + EuiColorPaletteDisplayGradientProps +> = ({ palette, title, style = {}, ...rest }) => { const gradient = getLinearGradient(palette); return ( diff --git a/src/components/color_picker/color_palette_picker/color_palette_picker.tsx b/src/components/color_picker/color_palette_picker/color_palette_picker.tsx index f6011ea0d9e..7ef19c10d97 100644 --- a/src/components/color_picker/color_palette_picker/color_palette_picker.tsx +++ b/src/components/color_picker/color_palette_picker/color_palette_picker.tsx @@ -95,9 +95,9 @@ export type EuiColorPalettePickerProps = CommonProps & palettes: EuiColorPalettePickerPaletteProps[]; }; -export const EuiColorPalettePicker: FunctionComponent> = ({ +export const EuiColorPalettePicker: FunctionComponent< + EuiColorPalettePickerProps +> = ({ className, compressed = false, disabled, diff --git a/src/components/color_picker/color_picker.tsx b/src/components/color_picker/color_picker.tsx index f1493a8560c..4411f311866 100644 --- a/src/components/color_picker/color_picker.tsx +++ b/src/components/color_picker/color_picker.tsx @@ -239,10 +239,10 @@ export const EuiColorPicker: FunctionComponent = ({ const parsed = parseColor(color); return parsed != null && typeof parsed === 'object' ? 'rgba' : 'hex'; }, [color, format]); - const chromaColor = useMemo(() => getChromaColor(color, showAlpha), [ - color, - showAlpha, - ]); + const chromaColor = useMemo( + () => getChromaColor(color, showAlpha), + [color, showAlpha] + ); const [alphaRangeValue, setAlphaRangeValue] = useState('100'); const alphaChannel = useMemo(() => { return chromaColor ? chromaColor.alpha() : 1; diff --git a/src/components/color_picker/color_stops/color_stop_thumb.tsx b/src/components/color_picker/color_stops/color_stop_thumb.tsx index dcc95795e92..271b0ab2aaa 100644 --- a/src/components/color_picker/color_stops/color_stop_thumb.tsx +++ b/src/components/color_picker/color_stops/color_stop_thumb.tsx @@ -224,9 +224,8 @@ export const EuiColorStopThumb: FunctionComponent = ({ } }; - const [handleMouseDown, handleInteraction] = useMouseMove( - handlePointerChange - ); + const [handleMouseDown, handleInteraction] = + useMouseMove(handlePointerChange); const handleOnMouseDown = (e: React.MouseEvent) => { if (!readOnly) { diff --git a/src/components/combo_box/combo_box.tsx b/src/components/combo_box/combo_box.tsx index 14a012fc55c..8343a58bdd1 100644 --- a/src/components/combo_box/combo_box.tsx +++ b/src/components/combo_box/combo_box.tsx @@ -167,7 +167,7 @@ export interface _EuiComboBoxProps * - export (Props - Defaults) & Partial */ type DefaultProps = Omit< - typeof EuiComboBox['defaultProps'], + (typeof EuiComboBox)['defaultProps'], 'options' | 'selectedOptions' > & { options: Array>; @@ -271,9 +271,8 @@ export class EuiComboBox extends Component< this.listRefInstance = ref; }; - toggleButtonRefInstance: RefInstance< - HTMLButtonElement | HTMLSpanElement - > = null; + toggleButtonRefInstance: RefInstance = + null; toggleButtonRefCallback: RefCallback = ( ref ) => { @@ -867,12 +866,8 @@ export class EuiComboBox extends Component< }; componentDidUpdate() { - const { - options, - selectedOptions, - singleSelection, - sortMatchesBy, - } = this.props; + const { options, selectedOptions, singleSelection, sortMatchesBy } = + this.props; const { searchValue } = this.state; // React 16.3 has a bug (fixed in 16.4) where getDerivedStateFromProps diff --git a/src/components/combo_box/matching_options.test.ts b/src/components/combo_box/matching_options.test.ts index 29d2dad2367..419b5892dc7 100644 --- a/src/components/combo_box/matching_options.test.ts +++ b/src/components/combo_box/matching_options.test.ts @@ -262,7 +262,7 @@ const testCases: GetMatchingOptionsTestCase[] = [ describe('getMatchingOptions', () => { test.each(testCases)( '.getMatchingOptions(%o)', - (testCase: typeof testCases[number]) => { + (testCase: (typeof testCases)[number]) => { const { expected, ...rest } = testCase; expect(getMatchingOptions(rest)).toMatchObject(expected); } diff --git a/src/components/common.ts b/src/components/common.ts index 8e857e7e4c6..8817c1c6852 100644 --- a/src/components/common.ts +++ b/src/components/common.ts @@ -91,9 +91,7 @@ export type ApplyClassComponentDefaults< P = ExtractProps > = // definition of Props that are not defaulted - Omit & - // definition of Props, made optional, that are have keys in defaultProps - { [K in keyof D]?: K extends keyof P ? P[K] : never }; + Omit & { [K in keyof D]?: K extends keyof P ? P[K] : never }; // definition of Props, made optional, that are have keys in defaultProps /* https://github.com/Microsoft/TypeScript/issues/28339 diff --git a/src/components/context_menu/context_menu.tsx b/src/components/context_menu/context_menu.tsx index e3dbd9c56dd..141dec0cb7f 100644 --- a/src/components/context_menu/context_menu.tsx +++ b/src/components/context_menu/context_menu.tsx @@ -237,9 +237,10 @@ export class EuiContextMenu extends Component { return; } - const nextPanelId = this.state.idAndItemIndexToPanelIdMap[ - this.state.incomingPanelId! - ][itemIndex]; + const nextPanelId = + this.state.idAndItemIndexToPanelIdMap[this.state.incomingPanelId!][ + itemIndex + ]; if (nextPanelId) { if (this.state.isUsingKeyboardToNavigate) { @@ -255,9 +256,8 @@ export class EuiContextMenu extends Component { showPreviousPanel = () => { // If there's a previous panel, then we can close the current panel to go back to it. if (this.hasPreviousPanel(this.state.incomingPanelId!)) { - const previousPanelId = this.state.idToPreviousPanelIdMap[ - this.state.incomingPanelId! - ]; + const previousPanelId = + this.state.idToPreviousPanelIdMap[this.state.incomingPanelId!]; // Set focus on the item which shows the panel we're leaving. const previousPanel = this.state.idToPanelMap[previousPanelId]; @@ -416,14 +416,8 @@ export class EuiContextMenu extends Component { } render() { - const { - panels, - onPanelChange, - className, - initialPanelId, - size, - ...rest - } = this.props; + const { panels, onPanelChange, className, initialPanelId, size, ...rest } = + this.props; const incomingPanel = this.renderPanel(this.state.incomingPanelId!, 'in'); let outgoingPanel; diff --git a/src/components/context_menu/context_menu_panel.tsx b/src/components/context_menu/context_menu_panel.tsx index 97f77e5b612..8cacaff10b1 100644 --- a/src/components/context_menu/context_menu_panel.tsx +++ b/src/components/context_menu/context_menu_panel.tsx @@ -54,7 +54,7 @@ export interface EuiContextMenuPanelProps { /** * Alters the size of the items and the title */ - size?: typeof SIZES[number]; + size?: (typeof SIZES)[number]; } type Props = CommonProps & diff --git a/src/components/control_bar/control_bar.tsx b/src/components/control_bar/control_bar.tsx index 48df529f36a..9a0c0608890 100644 --- a/src/components/control_bar/control_bar.tsx +++ b/src/components/control_bar/control_bar.tsx @@ -380,14 +380,8 @@ export class EuiControlBar extends Component< ); } case 'tab': { - const { - controlType, - id, - label, - onClick, - className, - ...rest - } = control; + const { controlType, id, label, onClick, className, ...rest } = + control; const tabClasses = classNames( 'euiControlBar__tab', diff --git a/src/components/copy/copy.tsx b/src/components/copy/copy.tsx index cdcb025d9d9..a435cf87a5c 100644 --- a/src/components/copy/copy.tsx +++ b/src/components/copy/copy.tsx @@ -67,13 +67,8 @@ export class EuiCopy extends Component { }; render() { - const { - children, - textToCopy, - beforeMessage, - afterMessage, - ...rest - } = this.props; + const { children, textToCopy, beforeMessage, afterMessage, ...rest } = + this.props; return ( // See `src/components/tool_tip/tool_tip.js` for explanation of below eslint-disable diff --git a/src/components/datagrid/body/data_grid_body_custom.tsx b/src/components/datagrid/body/data_grid_body_custom.tsx index 38139f40a39..d87b5009fe0 100644 --- a/src/components/datagrid/body/data_grid_body_custom.tsx +++ b/src/components/datagrid/body/data_grid_body_custom.tsx @@ -25,7 +25,9 @@ import { useDataGridHeader } from './header'; import { useDataGridFooter } from './footer'; import { Cell } from './data_grid_cell_wrapper'; -export const EuiDataGridBodyCustomRender: FunctionComponent = ({ +export const EuiDataGridBodyCustomRender: FunctionComponent< + EuiDataGridBodyProps +> = ({ renderCustomGridBody, leadingControlColumns, trailingControlColumns, @@ -157,9 +159,8 @@ export const EuiDataGridBodyCustomRender: FunctionComponent({}); + const [customGridBodyProps, setCustomGridBodyProps] = + useState({}); return (
= ({ // Context is required to pass props to react-window's innerElementType // @see https://github.com/bvaughn/react-window/issues/404 -export const DataGridWrapperRowsContext = createContext< - DataGridWrapperRowsContentsShape ->({ headerRow:
, headerRowHeight: 0, footerRow: null }); +export const DataGridWrapperRowsContext = + createContext({ + headerRow:
, + headerRowHeight: 0, + footerRow: null, + }); const InnerElement: VariableSizeGridProps['innerElementType'] = forwardRef< HTMLDivElement, @@ -91,7 +94,9 @@ const InnerElement: VariableSizeGridProps['innerElementType'] = forwardRef< }); InnerElement.displayName = 'EuiDataGridInnerElement'; -export const EuiDataGridBodyVirtualized: FunctionComponent = ({ +export const EuiDataGridBodyVirtualized: FunctionComponent< + EuiDataGridBodyProps +> = ({ leadingControlColumns, trailingControlColumns, columns, diff --git a/src/components/datagrid/body/data_grid_cell.tsx b/src/components/datagrid/body/data_grid_cell.tsx index e603d2bf8c4..011e089a7e0 100644 --- a/src/components/datagrid/body/data_grid_cell.tsx +++ b/src/components/datagrid/body/data_grid_cell.tsx @@ -63,9 +63,8 @@ const EuiDataGridCellContent: FunctionComponent< ...rest }) => { // React is more permissible than the TS types indicate - const CellElement = renderCellValue as JSXElementConstructor< - EuiDataGridCellValueElementProps - >; + const CellElement = + renderCellValue as JSXElementConstructor; return ( <> @@ -416,8 +415,8 @@ export class EuiDataGridCell extends Component< if (EuiDataGridCell.activeFocusTimeoutId) { window.clearTimeout(EuiDataGridCell.activeFocusTimeoutId); } - EuiDataGridCell.activeFocusTimeoutId = this.focusTimeout = window.setTimeout( - () => { + EuiDataGridCell.activeFocusTimeoutId = this.focusTimeout = + window.setTimeout(() => { this.context.setFocusedCell([colIndex, visibleRowIndex]); const interactables = this.getInteractables(); @@ -425,9 +424,7 @@ export class EuiDataGridCell extends Component< interactables[0].focus(); this.setState({ disableCellTabIndex: true }); } - }, - 0 - ); + }, 0); // Close the cell popover if the popover was open and the user clicked the cell if (this.props.popoverContext.popoverIsOpen) { this.props.popoverContext.closeCellPopover(); @@ -483,11 +480,8 @@ export class EuiDataGridCell extends Component< handleCellPopover = () => { if (this.isPopoverOpen()) { - const { - setPopoverAnchor, - setPopoverContent, - setCellPopoverProps, - } = this.props.popoverContext; + const { setPopoverAnchor, setPopoverContent, setCellPopoverProps } = + this.props.popoverContext; // Set popover anchor const cellAnchorEl = this.popoverAnchorRef.current!; @@ -504,12 +498,9 @@ export class EuiDataGridCell extends Component< columnType, } = this.props; const PopoverElement = (renderCellPopover || - DefaultCellPopover) as JSXElementConstructor< - EuiDataGridCellPopoverElementProps - >; - const CellElement = renderCellValue as JSXElementConstructor< - EuiDataGridCellValueElementProps - >; + DefaultCellPopover) as JSXElementConstructor; + const CellElement = + renderCellValue as JSXElementConstructor; const sharedProps = { rowIndex, colIndex, diff --git a/src/components/datagrid/body/data_grid_cell_actions.tsx b/src/components/datagrid/body/data_grid_cell_actions.tsx index ea2c0ae902d..21bac608c36 100644 --- a/src/components/datagrid/body/data_grid_cell_actions.tsx +++ b/src/components/datagrid/body/data_grid_cell_actions.tsx @@ -75,9 +75,8 @@ export const EuiDataGridCellActions = ({ return visibleCellActions.map( (Action: EuiDataGridColumnCellAction, idx: number) => { // React is more permissible than the TS types indicate - const ActionButtonElement = Action as JSXElementConstructor< - EuiDataGridColumnCellActionProps - >; + const ActionButtonElement = + Action as JSXElementConstructor; return ( { - const ActionButtonElement = Action as JSXElementConstructor< - EuiDataGridColumnCellActionProps - >; + const ActionButtonElement = + Action as JSXElementConstructor; return (
diff --git a/src/components/datagrid/body/data_grid_cell_popover.tsx b/src/components/datagrid/body/data_grid_cell_popover.tsx index 67c60944754..060ec7d630d 100644 --- a/src/components/datagrid/body/data_grid_cell_popover.tsx +++ b/src/components/datagrid/body/data_grid_cell_popover.tsx @@ -16,17 +16,16 @@ import { EuiDataGridCellPopoverElementProps, } from '../data_grid_types'; -export const DataGridCellPopoverContext = createContext< - DataGridCellPopoverContextShape ->({ - popoverIsOpen: false, - cellLocation: { rowIndex: 0, colIndex: 0 }, - openCellPopover: () => {}, - closeCellPopover: () => {}, - setPopoverAnchor: () => {}, - setPopoverContent: () => {}, - setCellPopoverProps: () => {}, -}); +export const DataGridCellPopoverContext = + createContext({ + popoverIsOpen: false, + cellLocation: { rowIndex: 0, colIndex: 0 }, + openCellPopover: () => {}, + closeCellPopover: () => {}, + setPopoverAnchor: () => {}, + setPopoverContent: () => {}, + setCellPopoverProps: () => {}, + }); export const useCellPopover = (): { cellPopoverContext: DataGridCellPopoverContextShape; diff --git a/src/components/datagrid/body/data_grid_row_manager.test.ts b/src/components/datagrid/body/data_grid_row_manager.test.ts index f5021c1aa70..83ee562adba 100644 --- a/src/components/datagrid/body/data_grid_row_manager.test.ts +++ b/src/components/datagrid/body/data_grid_row_manager.test.ts @@ -116,9 +116,11 @@ describe('row manager', () => { let row1: HTMLDivElement; const mockRowArgs = { visibleRowIndex: 99, top: '15px', height: 30 }; - const { return: rowManager, updateHookArgs } = testCustomHook< - EuiDataGridRowManager - >(useRowManager, { innerGridRef: mockGridRef, rowClasses }); + const { return: rowManager, updateHookArgs } = + testCustomHook(useRowManager, { + innerGridRef: mockGridRef, + rowClasses, + }); beforeAll(() => { row0 = rowManager.getRow({ ...mockRowArgs, rowIndex: 0 }); diff --git a/src/components/datagrid/body/header/data_grid_control_header_cell.tsx b/src/components/datagrid/body/header/data_grid_control_header_cell.tsx index b42bb779d60..90925b2b3b0 100644 --- a/src/components/datagrid/body/header/data_grid_control_header_cell.tsx +++ b/src/components/datagrid/body/header/data_grid_control_header_cell.tsx @@ -12,11 +12,9 @@ import classNames from 'classnames'; import { EuiDataGridControlHeaderCellProps } from '../../data_grid_types'; import { EuiDataGridHeaderCellWrapper } from './data_grid_header_cell_wrapper'; -export const EuiDataGridControlHeaderCell: FunctionComponent = ({ - controlColumn, - index, - headerIsInteractive, -}) => { +export const EuiDataGridControlHeaderCell: FunctionComponent< + EuiDataGridControlHeaderCellProps +> = ({ controlColumn, index, headerIsInteractive }) => { const { headerCellRender: HeaderCellRender, headerCellProps, diff --git a/src/components/datagrid/body/header/data_grid_header_cell.tsx b/src/components/datagrid/body/header/data_grid_header_cell.tsx index 1519d795cf8..01802e4bd2a 100644 --- a/src/components/datagrid/body/header/data_grid_header_cell.tsx +++ b/src/components/datagrid/body/header/data_grid_header_cell.tsx @@ -35,7 +35,9 @@ import { getColumnActions } from './column_actions'; import { EuiDataGridColumnResizer } from './data_grid_column_resizer'; import { EuiDataGridHeaderCellWrapper } from './data_grid_header_cell_wrapper'; -export const EuiDataGridHeaderCell: FunctionComponent = ({ +export const EuiDataGridHeaderCell: FunctionComponent< + EuiDataGridHeaderCellProps +> = ({ column, index, columns, @@ -57,9 +59,8 @@ export const EuiDataGridHeaderCell: FunctionComponent = ({ +export const EuiDataGridHeaderCellWrapper: FunctionComponent< + EuiDataGridHeaderCellWrapperProps +> = ({ id, index, headerIsInteractive, diff --git a/src/components/datagrid/controls/column_selector.tsx b/src/components/datagrid/controls/column_selector.tsx index a4a46dc0fd1..0cbbbeaf823 100644 --- a/src/components/datagrid/controls/column_selector.tsx +++ b/src/components/datagrid/controls/column_selector.tsx @@ -63,9 +63,10 @@ export const useDataGridColumnSelector = ( ); const { visibleColumns, setVisibleColumns } = columnVisibility; - const visibleColumnIds = useMemo(() => new Set(visibleColumns), [ - visibleColumns, - ]); + const visibleColumnIds = useMemo( + () => new Set(visibleColumns), + [visibleColumns] + ); const [isOpen, setIsOpen] = useState(false); @@ -232,14 +233,14 @@ export const useDataGridColumnSelector = ( const { target: { checked }, } = event; - const nextVisibleColumns = sortedColumns.filter( - (columnId) => + const nextVisibleColumns = + sortedColumns.filter((columnId) => checked ? visibleColumnIds.has(columnId) || id === columnId : visibleColumnIds.has(columnId) && id !== columnId - ); + ); setVisibleColumns(nextVisibleColumns); }} data-test-subj={`dataGridColumnSelectorToggleColumnVisibility-${id}`} diff --git a/src/components/datagrid/controls/column_sorting_draggable.tsx b/src/components/datagrid/controls/column_sorting_draggable.tsx index 7af6732e0ca..a26b08b00c0 100644 --- a/src/components/datagrid/controls/column_sorting_draggable.tsx +++ b/src/components/datagrid/controls/column_sorting_draggable.tsx @@ -25,7 +25,9 @@ export const defaultSortDescLabel = ( ); -export const EuiDataGridColumnSortingDraggable: FunctionComponent = ({ +export const EuiDataGridColumnSortingDraggable: FunctionComponent< + EuiDataGridColumnSortingDraggableProps +> = ({ id, display, direction, diff --git a/src/components/datagrid/controls/display_selector.test.tsx b/src/components/datagrid/controls/display_selector.test.tsx index 63ab77eb86d..5cf516684e2 100644 --- a/src/components/datagrid/controls/display_selector.test.tsx +++ b/src/components/datagrid/controls/display_selector.test.tsx @@ -41,10 +41,12 @@ describe('useDataGridDisplaySelector', () => { }; const closePopover = (component: ReactWrapper) => { act(() => { - (component - .find('[data-test-subj="dataGridDisplaySelectorPopover"]') - .first() - .prop('closePopover') as Function)(); + ( + component + .find('[data-test-subj="dataGridDisplaySelectorPopover"]') + .first() + .prop('closePopover') as Function + )(); }); }; @@ -461,10 +463,9 @@ describe('useDataGridDisplaySelector', () => { ); }; const diveIntoEuiI18n = (component: ShallowWrapper) => { - return (component - .find('EuiI18n') - .last() - .renderProp('children') as Function)(['', '', '', '']); + return ( + component.find('EuiI18n').last().renderProp('children') as Function + )(['', '', '', '']); }; const setRowHeight = (component: ShallowWrapper, selection = '') => { diveIntoEuiI18n(component) diff --git a/src/components/datagrid/data_grid.test.tsx b/src/components/datagrid/data_grid.test.tsx index 64e516f387f..8722e9ee77b 100644 --- a/src/components/datagrid/data_grid.test.tsx +++ b/src/components/datagrid/data_grid.test.tsx @@ -56,9 +56,9 @@ function extractGridData(datagrid: ReactWrapper) { } function extractRowHeights(datagrid: ReactWrapper) { - return (findTestSubject(datagrid, 'dataGridRowCell') as ReactWrapper< - any - >).reduce((heights: { [key: string]: number }, cell) => { + return ( + findTestSubject(datagrid, 'dataGridRowCell') as ReactWrapper + ).reduce((heights: { [key: string]: number }, cell) => { const cellProps = cell.props(); const cellContentProps = cell .find('[data-test-subj="cell-content"]') @@ -69,9 +69,9 @@ function extractRowHeights(datagrid: ReactWrapper) { } function extractColumnWidths(datagrid: ReactWrapper) { - return (findTestSubject(datagrid, 'dataGridHeaderCell', '|=') as ReactWrapper< - any - >).reduce((widths: { [key: string]: number }, cell) => { + return ( + findTestSubject(datagrid, 'dataGridHeaderCell', '|=') as ReactWrapper + ).reduce((widths: { [key: string]: number }, cell) => { const [, columnId] = cell .props() ['data-test-subj'].match(/dataGridHeaderCell-(.*)/); @@ -187,9 +187,11 @@ function getColumnSortDirection( 'label[className*="euiButtonGroupButton-isSelected"]' ); - const sortDirection = (activeSort.props() as { - 'data-test-subj': string; - })['data-test-subj'].match(/(?[^-]+)$/)!.groups!.direction; + const sortDirection = ( + activeSort.props() as { + 'data-test-subj': string; + } + )['data-test-subj'].match(/(?[^-]+)$/)!.groups!.direction; return [columnSorter, sortDirection]; } @@ -1049,8 +1051,8 @@ describe('EuiDataGrid', () => { expect(component.props().pagination.onChangePage).toHaveBeenCalledTimes( 1 ); - const firstCallPageIndex = component.props().pagination.onChangePage - .mock.calls[0][0]; + const firstCallPageIndex = + component.props().pagination.onChangePage.mock.calls[0][0]; expect(firstCallPageIndex).toBe(1); expect(extractGridData(component)).toEqual([ @@ -1065,8 +1067,8 @@ describe('EuiDataGrid', () => { expect(component.props().pagination.onChangePage).toHaveBeenCalledTimes( 2 ); - const secondCallPageIndex = component.props().pagination.onChangePage - .mock.calls[1][0]; + const secondCallPageIndex = + component.props().pagination.onChangePage.mock.calls[1][0]; expect(secondCallPageIndex).toBe(2); expect(extractGridData(component)).toEqual([['Column'], ['6'], ['7']]); @@ -1111,8 +1113,8 @@ describe('EuiDataGrid', () => { expect(component.props().pagination.onChangePage).toHaveBeenCalledTimes( 1 ); - const firstCallPageIndex = component.props().pagination.onChangePage - .mock.calls[0][0]; + const firstCallPageIndex = + component.props().pagination.onChangePage.mock.calls[0][0]; expect(firstCallPageIndex).toBe(2); expect(extractGridData(component)).toEqual([['Column'], ['6'], ['7']]); @@ -1123,8 +1125,8 @@ describe('EuiDataGrid', () => { expect(component.props().pagination.onChangePage).toHaveBeenCalledTimes( 2 ); - const secondCallPageIndex = component.props().pagination.onChangePage - .mock.calls[1][0]; + const secondCallPageIndex = + component.props().pagination.onChangePage.mock.calls[1][0]; expect(secondCallPageIndex).toBe(1); expect(extractGridData(component)).toEqual([ @@ -1172,9 +1174,8 @@ describe('EuiDataGrid', () => { findTestSubject(component, 'tablePaginationPopoverButton').simulate( 'click' ); - const rowButtons: NodeListOf = document.body.querySelectorAll( - '.euiContextMenuItem' - ); + const rowButtons: NodeListOf = + document.body.querySelectorAll('.euiContextMenuItem'); expect( Array.prototype.map.call( rowButtons, @@ -1186,8 +1187,8 @@ describe('EuiDataGrid', () => { expect( component.props().pagination.onChangeItemsPerPage ).toHaveBeenCalledTimes(1); - const firstCallPageIndex = component.props().pagination - .onChangeItemsPerPage.mock.calls[0][0]; + const firstCallPageIndex = + component.props().pagination.onChangeItemsPerPage.mock.calls[0][0]; expect(firstCallPageIndex).toBe(6); expect(extractGridData(component)).toEqual([ diff --git a/src/components/datagrid/data_grid.tsx b/src/components/datagrid/data_grid.tsx index 912eee7223f..9a62eae3ffd 100644 --- a/src/components/datagrid/data_grid.tsx +++ b/src/components/datagrid/data_grid.tsx @@ -191,18 +191,15 @@ export const EuiDataGrid = forwardRef( ); }, [columns]); - const [ - displaySelector, - gridStyles, - rowHeightsOptions, - ] = useDataGridDisplaySelector( - checkOrDefaultToolBarDisplayOptions( - toolbarVisibility, - 'showDisplaySelector' - ), - gridStyleWithDefaults, - _rowHeightsOptions - ); + const [displaySelector, gridStyles, rowHeightsOptions] = + useDataGridDisplaySelector( + checkOrDefaultToolBarDisplayOptions( + toolbarVisibility, + 'showDisplaySelector' + ), + gridStyleWithDefaults, + _rowHeightsOptions + ); /** * Column order & visibility @@ -259,10 +256,8 @@ export const EuiDataGrid = forwardRef( /** * Focus */ - const { - headerIsInteractive, - handleHeaderMutation, - } = useHeaderIsInteractive(contentRef.current); + const { headerIsInteractive, handleHeaderMutation } = + useHeaderIsInteractive(contentRef.current); const { focusProps: wrappingDivFocusProps, ...focusContext } = useFocus({ headerIsInteractive, gridItemsRendered, diff --git a/src/components/datagrid/data_grid_types.ts b/src/components/datagrid/data_grid_types.ts index 0d36769c2b1..3d17c777638 100644 --- a/src/components/datagrid/data_grid_types.ts +++ b/src/components/datagrid/data_grid_types.ts @@ -453,9 +453,10 @@ export interface EuiDataGridCustomBodyProps { * that `EuiDataGridCell` accepts, such as `isExpandable` or `renderCellValue`. */ Cell: JSXElementConstructor< - { colIndex: number; visibleRowIndex: number } & Partial< - EuiDataGridCellProps - > + { + colIndex: number; + visibleRowIndex: number; + } & Partial >; /** * The currently visible columns are passed to your data grid renderer so that your diff --git a/src/components/datagrid/utils/__mocks__/row_heights.ts b/src/components/datagrid/utils/__mocks__/row_heights.ts index 7b19672dcf5..0528c89d2cb 100644 --- a/src/components/datagrid/utils/__mocks__/row_heights.ts +++ b/src/components/datagrid/utils/__mocks__/row_heights.ts @@ -43,5 +43,5 @@ export const RowHeightUtils = jest.fn().mockImplementation(() => { compensateForLayoutShift: jest.fn(), }; - return (rowHeightUtilsMock as unknown) as RowHeightUtilsType; + return rowHeightUtilsMock as unknown as RowHeightUtilsType; }); diff --git a/src/components/datagrid/utils/col_widths.test.ts b/src/components/datagrid/utils/col_widths.test.ts index c3ebc8d98c6..2ddbf97e843 100644 --- a/src/components/datagrid/utils/col_widths.test.ts +++ b/src/components/datagrid/utils/col_widths.test.ts @@ -99,9 +99,8 @@ describe('useColumnWidths', () => { }); it('recomputes column widths on columns change', () => { - const { updateHookArgs, getUpdatedState } = testCustomHook< - ReturnedValues - >(useColumnWidths, args); + const { updateHookArgs, getUpdatedState } = + testCustomHook(useColumnWidths, args); updateHookArgs({ columns: [{ id: 'c', initialWidth: 125 }], diff --git a/src/components/datagrid/utils/col_widths.ts b/src/components/datagrid/utils/col_widths.ts index 30fc4b64255..a71f9f574db 100644 --- a/src/components/datagrid/utils/col_widths.ts +++ b/src/components/datagrid/utils/col_widths.ts @@ -88,9 +88,8 @@ export const useColumnWidths = ({ }, {}); }, [columns]); - const [columnWidths, setColumnWidths] = useState( - computeColumnWidths - ); + const [columnWidths, setColumnWidths] = + useState(computeColumnWidths); useUpdateEffect(() => { setColumnWidths(computeColumnWidths()); diff --git a/src/components/datagrid/utils/focus.ts b/src/components/datagrid/utils/focus.ts index 80d9e177493..d896efff152 100644 --- a/src/components/datagrid/utils/focus.ts +++ b/src/components/datagrid/utils/focus.ts @@ -105,10 +105,8 @@ export const useFocus = ({ // The header (rowIndex -1) is sticky and will always be in view setFocusedCell([0, -1]); } else if (gridItemsRendered.current) { - const { - visibleColumnStartIndex, - visibleRowStartIndex, - } = gridItemsRendered.current; + const { visibleColumnStartIndex, visibleRowStartIndex } = + gridItemsRendered.current; setFocusedCell([visibleColumnStartIndex, visibleRowStartIndex]); } else { diff --git a/src/components/datagrid/utils/in_memory.tsx b/src/components/datagrid/utils/in_memory.tsx index fdf50cdc40a..8903913eaff 100644 --- a/src/components/datagrid/utils/in_memory.tsx +++ b/src/components/datagrid/utils/in_memory.tsx @@ -47,10 +47,10 @@ export const useInMemoryValues = ( const _inMemoryValues = useRef({}); const [inMemoryValuesVersion, setInMemoryValuesVersion] = useState(0); - // eslint-disable-next-line react-hooks/exhaustive-deps - const inMemoryValues = useMemo(() => ({ ..._inMemoryValues.current }), [ - inMemoryValuesVersion, - ]); + const inMemoryValues = useMemo( + () => ({ ..._inMemoryValues.current }), + [inMemoryValuesVersion] // eslint-disable-line react-hooks/exhaustive-deps + ); const onCellRender = useCallback((rowIndex, columnId, value) => { const nextInMemoryValues = _inMemoryValues.current; @@ -83,19 +83,14 @@ export const useInMemoryValues = ( /** * InMemory renderer */ -export const EuiDataGridInMemoryRenderer: FunctionComponent = ({ - inMemory, - columns, - rowCount, - renderCellValue, - onCellRender, -}) => { +export const EuiDataGridInMemoryRenderer: FunctionComponent< + EuiDataGridInMemoryRendererProps +> = ({ inMemory, columns, rowCount, renderCellValue, onCellRender }) => { const [documentFragment] = useState(() => document.createDocumentFragment()); const cells = useMemo(() => { - const CellElement = renderCellValue as JSXElementConstructor< - EuiDataGridCellValueElementProps - >; + const CellElement = + renderCellValue as JSXElementConstructor; const cells = []; @@ -193,7 +188,7 @@ export const EuiDataGridInMemoryRenderer: FunctionComponent {(ref) =>
{cells}
} , - (documentFragment as unknown) as Element + documentFragment as unknown as Element ); }; diff --git a/src/components/datagrid/utils/ref.ts b/src/components/datagrid/utils/ref.ts index f3e2409651c..bbf5099120b 100644 --- a/src/components/datagrid/utils/ref.ts +++ b/src/components/datagrid/utils/ref.ts @@ -60,10 +60,8 @@ export const useImperativeGridRef = ({ ); // Popover APIs - const { - openCellPopover: _openCellPopover, - closeCellPopover, - } = cellPopoverContext; + const { openCellPopover: _openCellPopover, closeCellPopover } = + cellPopoverContext; // When we pass this API to the consumer, we can't know for sure that // the targeted cell is valid or in view (unlike our internal state, where diff --git a/src/components/datagrid/utils/row_heights.ts b/src/components/datagrid/utils/row_heights.ts index 8a4271cf077..3aed6933c4b 100644 --- a/src/components/datagrid/utils/row_heights.ts +++ b/src/components/datagrid/utils/row_heights.ts @@ -360,11 +360,8 @@ export const useRowHeightUtils = ({ const forceRenderRef = useLatest(useForceRender()); const [rowHeightUtils] = useState(() => { if (virtualization) { - const { - gridRef, - outerGridElementRef, - gridItemsRenderedRef, - } = virtualization; + const { gridRef, outerGridElementRef, gridItemsRenderedRef } = + virtualization; return new RowHeightVirtualizationUtils( gridRef, outerGridElementRef, diff --git a/src/components/datagrid/utils/sorting.ts b/src/components/datagrid/utils/sorting.ts index 59a9d11fce7..c697b30045c 100644 --- a/src/components/datagrid/utils/sorting.ts +++ b/src/components/datagrid/utils/sorting.ts @@ -17,13 +17,12 @@ import { } from '../data_grid_types'; import { defaultComparator } from './data_grid_schema'; -export const DataGridSortingContext = createContext< - DataGridSortingContextShape ->({ - sorting: undefined, - sortedRowMap: [], - getCorrectRowIndex: (number) => number, -}); +export const DataGridSortingContext = + createContext({ + sorting: undefined, + sortedRowMap: [], + getCorrectRowIndex: (number) => number, + }); export const useSorting = ({ sorting, diff --git a/src/components/date_picker/auto_refresh/auto_refresh.tsx b/src/components/date_picker/auto_refresh/auto_refresh.tsx index 807b50a32fc..47f5cd96f60 100644 --- a/src/components/date_picker/auto_refresh/auto_refresh.tsx +++ b/src/components/date_picker/auto_refresh/auto_refresh.tsx @@ -102,7 +102,9 @@ export type EuiAutoRefreshButtonProps = EuiAutoRefreshSharedProps & { 'isSelected' | 'iconType' | 'iconSide' | 'iconSize' | 'onClick' | 'type' >; -export const EuiAutoRefreshButton: FunctionComponent = ({ +export const EuiAutoRefreshButton: FunctionComponent< + EuiAutoRefreshButtonProps +> = ({ className, onRefreshChange, isDisabled, diff --git a/src/components/date_picker/date_picker.tsx b/src/components/date_picker/date_picker.tsx index d141e1e925c..38c7ab79633 100644 --- a/src/components/date_picker/date_picker.tsx +++ b/src/components/date_picker/date_picker.tsx @@ -61,7 +61,7 @@ const unsupportedProps = [ 'popperPlacement', ] as const; -type UnsupportedProps = typeof unsupportedProps[number]; +type UnsupportedProps = (typeof unsupportedProps)[number]; interface EuiExtendedDatePickerProps extends Omit { diff --git a/src/components/date_picker/super_date_picker/date_popover/absolute_tab.tsx b/src/components/date_picker/super_date_picker/date_popover/absolute_tab.tsx index 9bb4b1e1b5d..be56c08e08c 100644 --- a/src/components/date_picker/super_date_picker/date_popover/absolute_tab.tsx +++ b/src/components/date_picker/super_date_picker/date_popover/absolute_tab.tsx @@ -93,13 +93,8 @@ export class EuiAbsoluteTab extends Component< }; render() { - const { - dateFormat, - timeFormat, - locale, - utcOffset, - labelPrefix, - } = this.props; + const { dateFormat, timeFormat, locale, utcOffset, labelPrefix } = + this.props; const { valueAsMoment, isTextInvalid, textInputValue } = this.state; return ( diff --git a/src/components/date_picker/super_date_picker/date_popover/date_popover_button.tsx b/src/components/date_picker/super_date_picker/date_popover/date_popover_button.tsx index 27fc5dcdee5..5122482e826 100644 --- a/src/components/date_picker/super_date_picker/date_popover/date_popover_button.tsx +++ b/src/components/date_picker/super_date_picker/date_popover/date_popover_button.tsx @@ -46,9 +46,9 @@ export interface EuiDatePopoverButtonProps { timeOptions: TimeOptions; } -export const EuiDatePopoverButton: FunctionComponent = ( - props -) => { +export const EuiDatePopoverButton: FunctionComponent< + EuiDatePopoverButtonProps +> = (props) => { const { position, isDisabled, diff --git a/src/components/date_picker/super_date_picker/date_popover/date_popover_content.tsx b/src/components/date_picker/super_date_picker/date_popover/date_popover_content.tsx index 422b4d06b49..98dfb45f5de 100644 --- a/src/components/date_picker/super_date_picker/date_popover/date_popover_content.tsx +++ b/src/components/date_picker/super_date_picker/date_popover/date_popover_content.tsx @@ -37,7 +37,9 @@ export interface EuiDatePopoverContentProps { timeOptions: TimeOptions; } -export const EuiDatePopoverContent: FunctionComponent = ({ +export const EuiDatePopoverContent: FunctionComponent< + EuiDatePopoverContentProps +> = ({ value, roundUp = false, onChange, diff --git a/src/components/date_picker/super_date_picker/quick_select_popover/commonly_used_time_ranges.tsx b/src/components/date_picker/super_date_picker/quick_select_popover/commonly_used_time_ranges.tsx index dd152aca945..7d12ceaaef5 100644 --- a/src/components/date_picker/super_date_picker/quick_select_popover/commonly_used_time_ranges.tsx +++ b/src/components/date_picker/super_date_picker/quick_select_popover/commonly_used_time_ranges.tsx @@ -19,10 +19,9 @@ export interface EuiCommonlyUsedTimeRangesProps { commonlyUsedRanges: DurationRange[]; } -export const EuiCommonlyUsedTimeRanges: FunctionComponent = ({ - applyTime, - commonlyUsedRanges, -}) => { +export const EuiCommonlyUsedTimeRanges: FunctionComponent< + EuiCommonlyUsedTimeRangesProps +> = ({ applyTime, commonlyUsedRanges }) => { const legendId = useGeneratedHtmlId(); const links = commonlyUsedRanges.map(({ start, end, label }) => { const applyCommonlyUsed = () => { diff --git a/src/components/date_picker/super_date_picker/quick_select_popover/quick_select_popover.tsx b/src/components/date_picker/super_date_picker/quick_select_popover/quick_select_popover.tsx index df9c52132f7..565dbc71e95 100644 --- a/src/components/date_picker/super_date_picker/quick_select_popover/quick_select_popover.tsx +++ b/src/components/date_picker/super_date_picker/quick_select_popover/quick_select_popover.tsx @@ -61,10 +61,9 @@ export interface EuiQuickSelectPopoverProps { timeOptions: TimeOptions; } -export const EuiQuickSelectPopover: FunctionComponent = ({ - applyTime: _applyTime, - ...props -}) => { +export const EuiQuickSelectPopover: FunctionComponent< + EuiQuickSelectPopoverProps +> = ({ applyTime: _applyTime, ...props }) => { const [prevQuickSelect, setQuickSelect] = useState(); const [isOpen, setIsOpen] = useState(false); const closePopover = useCallback(() => setIsOpen(false), []); diff --git a/src/components/date_picker/super_date_picker/super_date_picker.test.tsx b/src/components/date_picker/super_date_picker/super_date_picker.test.tsx index d1cb489f6d3..76046c6f8f6 100644 --- a/src/components/date_picker/super_date_picker/super_date_picker.test.tsx +++ b/src/components/date_picker/super_date_picker/super_date_picker.test.tsx @@ -76,20 +76,16 @@ describe('EuiSuperDatePicker', () => { // If we update the prop `isPaused` we expect the interval to be stopped too. component.setProps({ isPaused: true }); - const [ - instanceUpdatedPaused, - componentUpdatedPaused, - ] = findInternalInstance(component); + const [instanceUpdatedPaused, componentUpdatedPaused] = + findInternalInstance(component); expect(typeof instanceUpdatedPaused.asyncInterval).toBe('object'); expect(instanceUpdatedPaused.asyncInterval!.isStopped).toBe(true); expect(componentUpdatedPaused.prop('isPaused')).toBe(true); // Let's start refresh again for a final sanity check. component.setProps({ isPaused: false }); - const [ - instanceUpdatedRefresh, - componentUpdatedRefresh, - ] = findInternalInstance(component); + const [instanceUpdatedRefresh, componentUpdatedRefresh] = + findInternalInstance(component); expect(typeof instanceUpdatedRefresh.asyncInterval).toBe('object'); expect(instanceUpdatedRefresh.asyncInterval!.isStopped).toBe(false); expect(componentUpdatedRefresh.prop('isPaused')).toBe(false); diff --git a/src/components/date_picker/super_date_picker/super_update_button.tsx b/src/components/date_picker/super_date_picker/super_update_button.tsx index c100e6e617b..dab442fe5ee 100644 --- a/src/components/date_picker/super_date_picker/super_update_button.tsx +++ b/src/components/date_picker/super_date_picker/super_update_button.tsx @@ -78,9 +78,9 @@ export class EuiSuperUpdateButton extends Component< !this.props.isLoading ) { this.showTooltip(); - this.tooltipTimeout = (setTimeout(() => { + this.tooltipTimeout = setTimeout(() => { this.hideTooltip(); - }, 2000) as unknown) as number | undefined; + }, 2000) as unknown as number | undefined; } } diff --git a/src/components/description_list/description_list_context.tsx b/src/components/description_list/description_list_context.tsx index 434330898d2..5b8d3636373 100644 --- a/src/components/description_list/description_list_context.tsx +++ b/src/components/description_list/description_list_context.tsx @@ -20,6 +20,5 @@ export const contextDefaults: EuiDescriptionListContextValues = { gutterSize: 'm', }; -export const EuiDescriptionListContext = createContext< - EuiDescriptionListContextValues ->(contextDefaults); +export const EuiDescriptionListContext = + createContext(contextDefaults); diff --git a/src/components/description_list/description_list_description.tsx b/src/components/description_list/description_list_description.tsx index 2d34d394a8b..af815ac83f1 100644 --- a/src/components/description_list/description_list_description.tsx +++ b/src/components/description_list/description_list_description.tsx @@ -18,11 +18,9 @@ export interface EuiDescriptionListDescriptionProps extends CommonProps, HTMLAttributes {} -export const EuiDescriptionListDescription: FunctionComponent = ({ - children, - className, - ...rest -}) => { +export const EuiDescriptionListDescription: FunctionComponent< + EuiDescriptionListDescriptionProps +> = ({ children, className, ...rest }) => { const { type, textStyle, compressed, align, gutterSize } = useContext( EuiDescriptionListContext ); diff --git a/src/components/description_list/description_list_title.tsx b/src/components/description_list/description_list_title.tsx index 3924eecf573..9c557ea99ab 100644 --- a/src/components/description_list/description_list_title.tsx +++ b/src/components/description_list/description_list_title.tsx @@ -18,11 +18,9 @@ export interface EuiDescriptionListTitleProps extends CommonProps, HTMLAttributes {} -export const EuiDescriptionListTitle: FunctionComponent = ({ - children, - className, - ...rest -}) => { +export const EuiDescriptionListTitle: FunctionComponent< + EuiDescriptionListTitleProps +> = ({ children, className, ...rest }) => { const { type, textStyle, compressed, align, gutterSize } = useContext( EuiDescriptionListContext ); diff --git a/src/components/description_list/description_list_types.ts b/src/components/description_list/description_list_types.ts index 535971b24b8..3a196919c23 100644 --- a/src/components/description_list/description_list_types.ts +++ b/src/components/description_list/description_list_types.ts @@ -46,13 +46,13 @@ export interface EuiDescriptionListProps { } export const TYPES = ['row', 'inline', 'column', 'responsiveColumn'] as const; -export type EuiDescriptionListType = typeof TYPES[number]; +export type EuiDescriptionListType = (typeof TYPES)[number]; export const ALIGNMENTS = ['center', 'left'] as const; -export type EuiDescriptionListAlignment = typeof ALIGNMENTS[number]; +export type EuiDescriptionListAlignment = (typeof ALIGNMENTS)[number]; export const TEXT_STYLES = ['normal', 'reverse'] as const; -export type EuiDescriptionListTextStyle = typeof TEXT_STYLES[number]; +export type EuiDescriptionListTextStyle = (typeof TEXT_STYLES)[number]; export const GUTTER_SIZES = ['s', 'm'] as const; -export type EuiDescriptionListGutterSizes = typeof GUTTER_SIZES[number]; +export type EuiDescriptionListGutterSizes = (typeof GUTTER_SIZES)[number]; diff --git a/src/components/empty_prompt/empty_prompt.tsx b/src/components/empty_prompt/empty_prompt.tsx index 965fa43c2a8..455da694045 100644 --- a/src/components/empty_prompt/empty_prompt.tsx +++ b/src/components/empty_prompt/empty_prompt.tsx @@ -27,7 +27,7 @@ const paddingSizeToClassNameMap = { export const PADDING_SIZES = keysOf(paddingSizeToClassNameMap); -export type PaddingSize = typeof PADDING_SIZES[number]; +export type PaddingSize = (typeof PADDING_SIZES)[number]; export type EuiEmptyPromptProps = CommonProps & Omit< diff --git a/src/components/expression/expression.tsx b/src/components/expression/expression.tsx index 61db07c733b..796c2fab912 100644 --- a/src/components/expression/expression.tsx +++ b/src/components/expression/expression.tsx @@ -34,7 +34,7 @@ export const COLORS = [ 'danger', ] as const; -export type ExpressionColor = typeof COLORS[number]; +export type ExpressionColor = (typeof COLORS)[number]; export type EuiExpressionProps = CommonProps & { /** @@ -92,10 +92,9 @@ type Buttonlike = EuiExpressionProps & type Spanlike = EuiExpressionProps & Omit, 'value'>; -export const EuiExpression: FunctionComponent> = ({ +export const EuiExpression: FunctionComponent< + ExclusiveUnion +> = ({ className, description, descriptionProps, diff --git a/src/components/facet/facet_group.tsx b/src/components/facet/facet_group.tsx index ba1b1052e5e..5fc33057574 100644 --- a/src/components/facet/facet_group.tsx +++ b/src/components/facet/facet_group.tsx @@ -15,10 +15,10 @@ import { useEuiTheme } from '../../services'; import { euiFacetGroupStyles } from './facet_group.styles'; export const LAYOUTS = ['vertical', 'horizontal'] as const; -export type EuiFacetGroupLayout = typeof LAYOUTS[number]; +export type EuiFacetGroupLayout = (typeof LAYOUTS)[number]; export const GUTTER_SIZES = ['none', 's', 'm', 'l'] as const; -export type EuiFacetGroupGutterSizes = typeof GUTTER_SIZES[number]; +export type EuiFacetGroupGutterSizes = (typeof GUTTER_SIZES)[number]; export type EuiFacetGroupProps = CommonProps & HTMLAttributes & { diff --git a/src/components/flex/flex_grid.tsx b/src/components/flex/flex_grid.tsx index 00576c47437..dff529e33e2 100644 --- a/src/components/flex/flex_grid.tsx +++ b/src/components/flex/flex_grid.tsx @@ -19,7 +19,7 @@ import { useEuiTheme } from '../../services'; import { euiFlexGridStyles } from './flex_grid.styles'; export const DIRECTIONS = ['row', 'column'] as const; -export type FlexGridDirection = typeof DIRECTIONS[number]; +export type FlexGridDirection = (typeof DIRECTIONS)[number]; export const ALIGN_ITEMS = [ 'stretch', @@ -28,10 +28,10 @@ export const ALIGN_ITEMS = [ 'center', 'baseline', ] as const; -export type FlexGridAlignItems = typeof ALIGN_ITEMS[number]; +export type FlexGridAlignItems = (typeof ALIGN_ITEMS)[number]; export const GUTTER_SIZES = ['none', 's', 'm', 'l', 'xl'] as const; -export type FlexGridGutterSize = typeof GUTTER_SIZES[number]; +export type FlexGridGutterSize = (typeof GUTTER_SIZES)[number]; export interface EuiFlexGridProps { /** diff --git a/src/components/flex/flex_group.tsx b/src/components/flex/flex_group.tsx index 7c450f4fae2..52297610f5b 100644 --- a/src/components/flex/flex_group.tsx +++ b/src/components/flex/flex_group.tsx @@ -14,7 +14,7 @@ import { useEuiTheme } from '../../services'; import { euiFlexGroupStyles } from './flex_group.styles'; export const GUTTER_SIZES = ['none', 'xs', 's', 'm', 'l', 'xl'] as const; -export type EuiFlexGroupGutterSize = typeof GUTTER_SIZES[number]; +export type EuiFlexGroupGutterSize = (typeof GUTTER_SIZES)[number]; export const ALIGN_ITEMS = [ 'stretch', @@ -23,7 +23,7 @@ export const ALIGN_ITEMS = [ 'center', 'baseline', ] as const; -export type FlexGroupAlignItems = typeof ALIGN_ITEMS[number]; +export type FlexGroupAlignItems = (typeof ALIGN_ITEMS)[number]; export const JUSTIFY_CONTENTS = [ 'flexStart', @@ -33,7 +33,7 @@ export const JUSTIFY_CONTENTS = [ 'spaceAround', 'spaceEvenly', ] as const; -type FlexGroupJustifyContent = typeof JUSTIFY_CONTENTS[number]; +type FlexGroupJustifyContent = (typeof JUSTIFY_CONTENTS)[number]; export const DIRECTIONS = [ 'row', @@ -41,7 +41,7 @@ export const DIRECTIONS = [ 'column', 'columnReverse', ] as const; -type FlexGroupDirection = typeof DIRECTIONS[number]; +type FlexGroupDirection = (typeof DIRECTIONS)[number]; type FlexGroupComponentType = 'div' | 'span'; const isValidElement = ( diff --git a/src/components/flyout/flyout.tsx b/src/components/flyout/flyout.tsx index af06a2cea3d..3955079b7a9 100644 --- a/src/components/flyout/flyout.tsx +++ b/src/components/flyout/flyout.tsx @@ -43,13 +43,13 @@ import { EuiScreenReaderOnly } from '../accessibility'; import { euiFlyoutStyles, euiFlyoutCloseButtonStyles } from './flyout.styles'; export const TYPES = ['push', 'overlay'] as const; -type _EuiFlyoutType = typeof TYPES[number]; +type _EuiFlyoutType = (typeof TYPES)[number]; export const SIDES = ['left', 'right'] as const; -type _EuiFlyoutSide = typeof SIDES[number]; +type _EuiFlyoutSide = (typeof SIDES)[number]; export const SIZES = ['s', 'm', 'l'] as const; -export type EuiFlyoutSize = typeof SIZES[number]; +export type EuiFlyoutSize = (typeof SIZES)[number]; /** * Custom type checker for named flyout sizes since the prop @@ -60,7 +60,7 @@ function isEuiFlyoutSizeNamed(value: any): value is EuiFlyoutSize { } export const PADDING_SIZES = ['none', 's', 'm', 'l'] as const; -export type _EuiFlyoutPaddingSize = typeof PADDING_SIZES[number]; +export type _EuiFlyoutPaddingSize = (typeof PADDING_SIZES)[number]; interface _EuiFlyoutProps { onClose: (event: MouseEvent | TouchEvent | KeyboardEvent) => void; @@ -158,9 +158,8 @@ type Props = CommonProps & { } & _EuiFlyoutProps & Omit, keyof _EuiFlyoutProps>; -export type EuiFlyoutProps< - T extends ElementType = typeof defaultElement -> = Props & Omit, keyof Props>; +export type EuiFlyoutProps = + Props & Omit, keyof Props>; export const EuiFlyout = forwardRef( ( @@ -194,9 +193,8 @@ export const EuiFlyout = forwardRef( const Element = as || defaultElement; const maskRef = useRef(null); - const windowIsLargeEnoughToPush = useIsWithinMinBreakpoint( - pushMinBreakpoint - ); + const windowIsLargeEnoughToPush = + useIsWithinMinBreakpoint(pushMinBreakpoint); const isPushed = type === 'push' && windowIsLargeEnoughToPush; /** diff --git a/src/components/focus_trap/focus_trap.test.tsx b/src/components/focus_trap/focus_trap.test.tsx index 988d9e96125..8de7f717d3e 100644 --- a/src/components/focus_trap/focus_trap.test.tsx +++ b/src/components/focus_trap/focus_trap.test.tsx @@ -117,7 +117,9 @@ describe('EuiFocusTrap', () => { e: React.MouseEvent ) => { const event = new Event('mousedown') as EuiEvent; - event.euiGeneratedBy = ((e.nativeEvent as unknown) as EuiEvent).euiGeneratedBy; + event.euiGeneratedBy = ( + e.nativeEvent as unknown as EuiEvent + ).euiGeneratedBy; document.dispatchEvent(event); }; @@ -125,7 +127,9 @@ describe('EuiFocusTrap', () => { e: React.MouseEvent ) => { const event = new Event('mousedown') as EuiEvent; - event.euiGeneratedBy = ((e.nativeEvent as unknown) as EuiEvent).euiGeneratedBy; + event.euiGeneratedBy = ( + e.nativeEvent as unknown as EuiEvent + ).euiGeneratedBy; document.dispatchEvent(event); }; diff --git a/src/components/form/described_form_group/described_form_group.tsx b/src/components/form/described_form_group/described_form_group.tsx index 5546587adc4..a1339e4663c 100644 --- a/src/components/form/described_form_group/described_form_group.tsx +++ b/src/components/form/described_form_group/described_form_group.tsx @@ -70,9 +70,9 @@ export type EuiDescribedFormGroupProps = CommonProps & fieldFlexItemProps?: PropsOf; }; -export const EuiDescribedFormGroup: FunctionComponent = ( - props -) => { +export const EuiDescribedFormGroup: FunctionComponent< + EuiDescribedFormGroupProps +> = (props) => { const { defaultFullWidth } = useFormContext(); const { diff --git a/src/components/form/form_control_layout/form_control_layout_clear_button.tsx b/src/components/form/form_control_layout/form_control_layout_clear_button.tsx index 0380ff17102..9d128ffde21 100644 --- a/src/components/form/form_control_layout/form_control_layout_clear_button.tsx +++ b/src/components/form/form_control_layout/form_control_layout_clear_button.tsx @@ -22,15 +22,12 @@ export const SIZES = keysOf(sizeToClassNameMap); export type EuiFormControlLayoutClearButtonProps = CommonProps & ButtonHTMLAttributes & { - size?: typeof SIZES[number]; + size?: (typeof SIZES)[number]; }; -export const EuiFormControlLayoutClearButton: FunctionComponent = ({ - className, - onClick, - size = 'm', - ...rest -}) => { +export const EuiFormControlLayoutClearButton: FunctionComponent< + EuiFormControlLayoutClearButtonProps +> = ({ className, onClick, size = 'm', ...rest }) => { const classes = classNames( 'euiFormControlLayoutClearButton', sizeToClassNameMap[size], diff --git a/src/components/form/form_control_layout/form_control_layout_custom_icon.tsx b/src/components/form/form_control_layout/form_control_layout_custom_icon.tsx index 227c2334822..7440ccd14d5 100644 --- a/src/components/form/form_control_layout/form_control_layout_custom_icon.tsx +++ b/src/components/form/form_control_layout/form_control_layout_custom_icon.tsx @@ -28,15 +28,9 @@ export type EuiFormControlLayoutCustomIconProps = CommonProps & | ((el: HTMLButtonElement | HTMLSpanElement | null) => void); }; -export const EuiFormControlLayoutCustomIcon: FunctionComponent = ({ - className, - onClick, - type, - iconRef, - size, - color, - ...rest -}) => { +export const EuiFormControlLayoutCustomIcon: FunctionComponent< + EuiFormControlLayoutCustomIconProps +> = ({ className, onClick, type, iconRef, size, color, ...rest }) => { const classes = classNames('euiFormControlLayoutCustomIcon', className, { 'euiFormControlLayoutCustomIcon--clickable': onClick, }); diff --git a/src/components/form/form_control_layout/form_control_layout_delimited.tsx b/src/components/form/form_control_layout/form_control_layout_delimited.tsx index 8f0199eeddc..f6c5919976c 100644 --- a/src/components/form/form_control_layout/form_control_layout_delimited.tsx +++ b/src/components/form/form_control_layout/form_control_layout_delimited.tsx @@ -23,32 +23,27 @@ import { EuiFormControlLayoutProps, } from './form_control_layout'; -export type EuiFormControlLayoutDelimitedProps = Partial< - EuiFormControlLayoutProps -> & { - /** - * Left side control - */ - startControl: ReactElement; - /** - * Right side control - */ - endControl: ReactElement; - /** - * The center content. Accepts a string to be wrapped in a subdued EuiText - * or a single ReactElement - */ - delimiter?: ReactNode; - className?: string; -}; +export type EuiFormControlLayoutDelimitedProps = + Partial & { + /** + * Left side control + */ + startControl: ReactElement; + /** + * Right side control + */ + endControl: ReactElement; + /** + * The center content. Accepts a string to be wrapped in a subdued EuiText + * or a single ReactElement + */ + delimiter?: ReactNode; + className?: string; + }; -export const EuiFormControlLayoutDelimited: FunctionComponent = ({ - startControl, - endControl, - delimiter, - className, - ...rest -}) => { +export const EuiFormControlLayoutDelimited: FunctionComponent< + EuiFormControlLayoutDelimitedProps +> = ({ startControl, endControl, delimiter, className, ...rest }) => { const { isInvalid, isDisabled, readOnly } = rest; const showInvalidState = isInvalid && !isDisabled && !readOnly; diff --git a/src/components/form/form_control_layout/form_control_layout_icons.tsx b/src/components/form/form_control_layout/form_control_layout_icons.tsx index 80d199802f5..e8d23bd2fc3 100644 --- a/src/components/form/form_control_layout/form_control_layout_icons.tsx +++ b/src/components/form/form_control_layout/form_control_layout_icons.tsx @@ -28,7 +28,7 @@ export type IconShape = DistributiveOmit< 'type' | 'iconRef' > & { type: IconType; - side?: typeof ICON_SIDES[number]; + side?: (typeof ICON_SIDES)[number]; color?: IconColor; ref?: EuiFormControlLayoutCustomIconProps['iconRef']; }; @@ -41,7 +41,7 @@ function isIconShape( export interface EuiFormControlLayoutIconsProps { icon?: IconType | IconShape; - side?: typeof ICON_SIDES[number]; + side?: (typeof ICON_SIDES)[number]; iconsPosition?: 'absolute' | 'static'; clear?: EuiFormControlLayoutClearButtonProps; isLoading?: boolean; @@ -50,9 +50,7 @@ export interface EuiFormControlLayoutIconsProps { compressed?: boolean; } -export class EuiFormControlLayoutIcons extends Component< - EuiFormControlLayoutIconsProps -> { +export class EuiFormControlLayoutIcons extends Component { render() { const { side = 'left', iconsPosition = 'absolute' } = this.props; diff --git a/src/components/form/range/range_input.tsx b/src/components/form/range/range_input.tsx index ad3d41271d2..e0bed7c5495 100644 --- a/src/components/form/range/range_input.tsx +++ b/src/components/form/range/range_input.tsx @@ -70,9 +70,8 @@ export const EuiRangeInput: FunctionComponent = ({ const inputCharWidth = Math.min(String(value).length, maxChars); // Calculate the form padding based on `compressed` state - const { controlPadding, controlCompressedPadding } = euiFormVariables( - euiTheme - ); + const { controlPadding, controlCompressedPadding } = + euiFormVariables(euiTheme); const inputPadding = compressed ? controlCompressedPadding : controlPadding; // Calculate the invalid icon (if being displayed), also based on `compressed` state diff --git a/src/components/form/range/range_levels_colors.ts b/src/components/form/range/range_levels_colors.ts index 3de042969e4..49a5cdd6485 100644 --- a/src/components/form/range/range_levels_colors.ts +++ b/src/components/form/range/range_levels_colors.ts @@ -16,7 +16,7 @@ export const LEVEL_COLORS = [ 'warning', 'danger', ] as const; -export type EuiRangeLevelColor = typeof LEVEL_COLORS[number]; +export type EuiRangeLevelColor = (typeof LEVEL_COLORS)[number]; export const isNamedLevelColor = (color?: EuiRangeLevelColor | string) => LEVEL_COLORS.includes(color as EuiRangeLevelColor); diff --git a/src/components/form/switch/switch.tsx b/src/components/form/switch/switch.tsx index 063993bccf3..27a0a54303f 100644 --- a/src/components/form/switch/switch.tsx +++ b/src/components/form/switch/switch.tsx @@ -75,7 +75,7 @@ export const EuiSwitch: FunctionComponent = ({ return; } - const event = (e as unknown) as EuiSwitchEvent; + const event = e as unknown as EuiSwitchEvent; event.target.checked = !checked; onChange(event); }, diff --git a/src/components/header/header_links/header_links.tsx b/src/components/header/header_links/header_links.tsx index 131692185c5..69fc3ed999c 100644 --- a/src/components/header/header_links/header_links.tsx +++ b/src/components/header/header_links/header_links.tsx @@ -28,11 +28,10 @@ import { EuiBreakpointSize } from '../../../services/breakpoint'; import { EuiHideFor, EuiShowFor } from '../../responsive'; type EuiHeaderLinksGutterSize = 'xs' | 's' | 'm' | 'l'; -type EuiHeaderLinksPopoverButtonProps = Partial< - EuiHeaderSectionItemButtonProps -> & { - iconType?: IconType; -}; +type EuiHeaderLinksPopoverButtonProps = + Partial & { + iconType?: IconType; + }; export type EuiHeaderLinksProps = CommonProps & HTMLAttributes & { @@ -74,8 +73,11 @@ export const EuiHeaderLinks: FunctionComponent = ({ popoverProps, ...rest }) => { - const { onClick, iconType = 'apps', ...popoverButtonRest } = - popoverButtonProps || {}; + const { + onClick, + iconType = 'apps', + ...popoverButtonRest + } = popoverButtonProps || {}; const [mobileMenuIsOpen, setMobileMenuIsOpen] = useState(false); diff --git a/src/components/header/header_section/header_section_item.tsx b/src/components/header/header_section/header_section_item.tsx index 89920574d82..57fcf744712 100644 --- a/src/components/header/header_section/header_section_item.tsx +++ b/src/components/header/header_section/header_section_item.tsx @@ -31,12 +31,9 @@ export type EuiHeaderSectionItemProps = CommonProps & { children?: ReactNode; }; -export const EuiHeaderSectionItem: FunctionComponent = ({ - border = 'left', - children, - className, - ...rest -}) => { +export const EuiHeaderSectionItem: FunctionComponent< + EuiHeaderSectionItemProps +> = ({ border = 'left', children, className, ...rest }) => { const classes = classNames( 'euiHeaderSectionItem', borderToClassNameMap[border], diff --git a/src/components/health/health.tsx b/src/components/health/health.tsx index 566318358b6..c858a4b3f01 100644 --- a/src/components/health/health.tsx +++ b/src/components/health/health.tsx @@ -29,7 +29,7 @@ export type EuiHealthProps = CommonProps & * Matches the text scales of EuiText. * The `inherit` style will get its font size from the parent element */ - textSize?: typeof TEXT_SIZES[number]; + textSize?: (typeof TEXT_SIZES)[number]; }; export const EuiHealth: FunctionComponent = ({ diff --git a/src/components/horizontal_rule/horizontal_rule.tsx b/src/components/horizontal_rule/horizontal_rule.tsx index 66dbf6520c3..297af7d8378 100644 --- a/src/components/horizontal_rule/horizontal_rule.tsx +++ b/src/components/horizontal_rule/horizontal_rule.tsx @@ -16,8 +16,8 @@ import { euiHorizontalRuleStyles } from './horizontal_rule.styles'; export const SIZES = ['full', 'half', 'quarter'] as const; export const MARGINS = ['none', 'xs', 's', 'm', 'l', 'xl', 'xxl'] as const; -export type EuiHorizontalRuleSize = typeof SIZES[number]; -export type EuiHorizontalRuleMargin = typeof MARGINS[number]; +export type EuiHorizontalRuleSize = (typeof SIZES)[number]; +export type EuiHorizontalRuleMargin = (typeof MARGINS)[number]; export interface EuiHorizontalRuleProps extends CommonProps, diff --git a/src/components/i18n/i18n.tsx b/src/components/i18n/i18n.tsx index 7a1ad5ad041..9a2c988badf 100644 --- a/src/components/i18n/i18n.tsx +++ b/src/components/i18n/i18n.tsx @@ -46,14 +46,8 @@ function lookupToken< DEFAULT extends Renderable, RESOLVED extends ResolvedType >(options: lookupTokenOptions): RESOLVED { - const { - token, - i18nMapping, - valueDefault, - i18nMappingFunc, - values, - render, - } = options; + const { token, i18nMapping, valueDefault, i18nMappingFunc, values, render } = + options; let renderable = (i18nMapping && i18nMapping[token]) || valueDefault; if (typeof renderable === 'function') { @@ -62,9 +56,11 @@ function lookupToken< } // @ts-ignore TypeScript complains that `DEFAULT` doesn't have a call signature but we verified `renderable` is a function const rendered = renderable(values); - return (i18nMappingFunc && typeof rendered === 'string' - ? i18nMappingFunc(rendered) - : rendered) as RESOLVED; + return ( + i18nMappingFunc && typeof rendered === 'string' + ? i18nMappingFunc(rendered) + : rendered + ) as RESOLVED; } else if (values === undefined || typeof renderable !== 'string') { if (i18nMappingFunc && typeof valueDefault === 'string') { renderable = i18nMappingFunc(valueDefault); @@ -169,9 +165,8 @@ type DefaultRenderType> = K extends ReactChild : never; // An array with multiple defaults can only be an array of strings or elements -type DefaultsRenderType< - K extends Array -> = K extends Array ? Item : never; +type DefaultsRenderType> = + K extends Array ? Item : never; function useEuiI18n>( token: string, diff --git a/src/components/icon/icon.tsx b/src/components/icon/icon.tsx index 30eadbe0335..b920ad0c40d 100644 --- a/src/components/icon/icon.tsx +++ b/src/components/icon/icon.tsx @@ -47,7 +47,7 @@ export type IconType = EuiIconType | string | ComponentType; export type IconColor = string | NamedColor; export const SIZES = ['original', 's', 'm', 'l', 'xl', 'xxl'] as const; -export type IconSize = typeof SIZES[number]; +export type IconSize = (typeof SIZES)[number]; export type EuiIconProps = CommonProps & Omit, 'type' | 'color' | 'size'> & { diff --git a/src/components/icon/named_colors.tsx b/src/components/icon/named_colors.tsx index fb27be3a040..a538cd919b4 100644 --- a/src/components/icon/named_colors.tsx +++ b/src/components/icon/named_colors.tsx @@ -19,7 +19,7 @@ export const COLORS = [ 'inherit', ] as const; -export type NamedColor = typeof COLORS[number]; +export type NamedColor = (typeof COLORS)[number]; export function isNamedColor(name: string): boolean { return COLORS.includes(name as NamedColor); diff --git a/src/components/image/image_fullscreen_wrapper.tsx b/src/components/image/image_fullscreen_wrapper.tsx index a6a26aa65ae..dfa5a374165 100644 --- a/src/components/image/image_fullscreen_wrapper.tsx +++ b/src/components/image/image_fullscreen_wrapper.tsx @@ -23,7 +23,9 @@ import { euiImageButtonIconStyles } from './image_button.styles'; import { EuiImageCaption } from './image_caption'; -export const EuiImageFullScreenWrapper: FunctionComponent = ({ +export const EuiImageFullScreenWrapper: FunctionComponent< + EuiImageWrapperProps +> = ({ alt, hasShadow, caption, diff --git a/src/components/image/image_types.ts b/src/components/image/image_types.ts index 5a46a3f2204..5df81ec0378 100644 --- a/src/components/image/image_types.ts +++ b/src/components/image/image_types.ts @@ -10,13 +10,13 @@ import { HTMLAttributes, ReactNode, ImgHTMLAttributes } from 'react'; import { CommonProps, ExclusiveUnion } from '../common'; export const SIZES = ['s', 'm', 'l', 'xl', 'fullWidth', 'original'] as const; -export type EuiImageSize = typeof SIZES[number]; +export type EuiImageSize = (typeof SIZES)[number]; const FLOATS = ['left', 'right'] as const; -export type EuiImageWrapperFloat = typeof FLOATS[number]; +export type EuiImageWrapperFloat = (typeof FLOATS)[number]; const MARGINS = ['s', 'm', 'l', 'xl'] as const; -export type EuiImageWrapperMargin = typeof MARGINS[number]; +export type EuiImageWrapperMargin = (typeof MARGINS)[number]; export type EuiImageButtonIconColor = 'light' | 'dark'; diff --git a/src/components/inline_edit/inline_edit_title.tsx b/src/components/inline_edit/inline_edit_title.tsx index ffa1b7ea077..37c1ebae218 100644 --- a/src/components/inline_edit/inline_edit_title.tsx +++ b/src/components/inline_edit/inline_edit_title.tsx @@ -19,7 +19,7 @@ import { useEuiTheme } from '../../services'; import { euiInlineEditTitleStyles } from './inline_edit_title.styles'; export const HEADINGS = ['h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'span'] as const; -type Heading = typeof HEADINGS[number]; +type Heading = (typeof HEADINGS)[number]; export type EuiInlineEditTitleProps = EuiInlineEditCommonProps & { /** diff --git a/src/components/inner_text/render_to_text.tsx b/src/components/inner_text/render_to_text.tsx index dd1df1b7079..b8dda57f3b6 100644 --- a/src/components/inner_text/render_to_text.tsx +++ b/src/components/inner_text/render_to_text.tsx @@ -31,7 +31,7 @@ export function useRenderToText(node: ReactNode, placeholder = ''): string { ); useEffect(() => { - hostNode.current = (document.createDocumentFragment() as unknown) as Element; + hostNode.current = document.createDocumentFragment() as unknown as Element; render(
{node}
, hostNode.current); return () => { onUnmount(); diff --git a/src/components/key_pad_menu/key_pad_menu.styles.tsx b/src/components/key_pad_menu/key_pad_menu.styles.tsx index e044cc54237..07b9d1881b3 100644 --- a/src/components/key_pad_menu/key_pad_menu.styles.tsx +++ b/src/components/key_pad_menu/key_pad_menu.styles.tsx @@ -19,9 +19,8 @@ export const euiKeyPadMenuVariables = ({ euiTheme }: UseEuiTheme) => { export const euiKeyPadMenuStyles = (euiThemeContext: UseEuiTheme) => { const { euiTheme } = euiThemeContext; - const { euiKeyPadMenuSize, euiKeyPadMenuMarginSize } = euiKeyPadMenuVariables( - euiThemeContext - ); + const { euiKeyPadMenuSize, euiKeyPadMenuMarginSize } = + euiKeyPadMenuVariables(euiThemeContext); return { euiKeyPadMenu: css` diff --git a/src/components/link/link.tsx b/src/components/link/link.tsx index 15f334ce091..434352b3641 100644 --- a/src/components/link/link.tsx +++ b/src/components/link/link.tsx @@ -34,7 +34,7 @@ export const COLORS = [ 'ghost', ] as const; -export type EuiLinkColor = typeof COLORS[number]; +export type EuiLinkColor = (typeof COLORS)[number]; export interface LinkButtonProps { type?: EuiLinkType; diff --git a/src/components/list_group/list_group.tsx b/src/components/list_group/list_group.tsx index ce496960fb0..c780131602f 100644 --- a/src/components/list_group/list_group.tsx +++ b/src/components/list_group/list_group.tsx @@ -18,7 +18,7 @@ import { logicalStyle } from '../../global_styling'; import { euiListGroupStyles } from './list_group.styles'; export const GUTTER_SIZES = ['none', 's', 'm'] as const; -export type EuiListGroupGutterSize = typeof GUTTER_SIZES[number]; +export type EuiListGroupGutterSize = (typeof GUTTER_SIZES)[number]; export type EuiListGroupProps = CommonProps & Omit, 'color'> & { diff --git a/src/components/list_group/list_group_item.tsx b/src/components/list_group/list_group_item.tsx index 80e114c9a28..01aceaab6d7 100644 --- a/src/components/list_group/list_group_item.tsx +++ b/src/components/list_group/list_group_item.tsx @@ -40,10 +40,10 @@ import { } from './list_group_item.styles'; export const SIZES = ['xs', 's', 'm', 'l'] as const; -export type EuiListGroupItemSize = typeof SIZES[number]; +export type EuiListGroupItemSize = (typeof SIZES)[number]; export const COLORS = ['primary', 'text', 'subdued'] as const; -export type EuiListGroupItemColor = typeof COLORS[number]; +export type EuiListGroupItemColor = (typeof COLORS)[number]; export type EuiListGroupItemProps = CommonProps & Omit< diff --git a/src/components/list_group/pinnable_list_group/pinnable_list_group.tsx b/src/components/list_group/pinnable_list_group/pinnable_list_group.tsx index 5a6e039ec11..424e837281c 100644 --- a/src/components/list_group/pinnable_list_group/pinnable_list_group.tsx +++ b/src/components/list_group/pinnable_list_group/pinnable_list_group.tsx @@ -56,19 +56,13 @@ export interface EuiPinnableListGroupProps unpinTitle?: (item: EuiPinnableListGroupItemProps) => string; } -export const EuiPinnableListGroup: FunctionComponent = ({ - className, - listItems, - pinTitle, - unpinTitle, - onPinClick, - ...rest -}) => { +export const EuiPinnableListGroup: FunctionComponent< + EuiPinnableListGroupProps +> = ({ className, listItems, pinTitle, unpinTitle, onPinClick, ...rest }) => { const classes = classNames('euiPinnableListGroup', className); const euiTheme = useEuiTheme(); - const itemExtraActionStyles = euiPinnableListGroupItemExtraActionStyles( - euiTheme - ); + const itemExtraActionStyles = + euiPinnableListGroupItemExtraActionStyles(euiTheme); const pinExtraAction: EuiListGroupItemProps['extraAction'] = { iconType: 'pinFilled', diff --git a/src/components/loading/loading_chart.tsx b/src/components/loading/loading_chart.tsx index d8678711b54..749baf314cd 100644 --- a/src/components/loading/loading_chart.tsx +++ b/src/components/loading/loading_chart.tsx @@ -19,7 +19,7 @@ import { import { useEuiI18n } from '../i18n'; export const SIZES = ['m', 'l', 'xl'] as const; -export type EuiLoadingChartSize = typeof SIZES[number]; +export type EuiLoadingChartSize = (typeof SIZES)[number]; export type EuiLoadingChartProps = CommonProps & HTMLAttributes & { diff --git a/src/components/loading/loading_elastic.tsx b/src/components/loading/loading_elastic.tsx index 2ffc3b022c2..691b4b1fc73 100644 --- a/src/components/loading/loading_elastic.tsx +++ b/src/components/loading/loading_elastic.tsx @@ -14,7 +14,7 @@ import { useLoadingAriaLabel } from './_loading_strings'; import { euiLoadingElasticStyles } from './loading_elastic.styles'; export const SIZES = ['m', 'l', 'xl', 'xxl'] as const; -export type EuiLoadingElasticSize = typeof SIZES[number]; +export type EuiLoadingElasticSize = (typeof SIZES)[number]; export interface EuiLoadingElasticProps { size?: EuiLoadingElasticSize; diff --git a/src/components/loading/loading_logo.tsx b/src/components/loading/loading_logo.tsx index acf20aba2fe..d7fd43fbd43 100644 --- a/src/components/loading/loading_logo.tsx +++ b/src/components/loading/loading_logo.tsx @@ -18,7 +18,7 @@ import { } from './loading_logo.styles'; export const SIZES = ['m', 'l', 'xl'] as const; -export type EuiLoadingLogoSize = typeof SIZES[number]; +export type EuiLoadingLogoSize = (typeof SIZES)[number]; export type EuiLoadingLogoProps = CommonProps & HTMLAttributes & { diff --git a/src/components/loading/loading_spinner.tsx b/src/components/loading/loading_spinner.tsx index 968305b9a14..b72e3a28ffe 100644 --- a/src/components/loading/loading_spinner.tsx +++ b/src/components/loading/loading_spinner.tsx @@ -17,7 +17,7 @@ import { } from './loading_spinner.styles'; export const SIZES = ['s', 'm', 'l', 'xl', 'xxl'] as const; -export type EuiLoadingSpinnerSize = typeof SIZES[number]; +export type EuiLoadingSpinnerSize = (typeof SIZES)[number]; export type EuiLoadingSpinnerColor = { border?: CSSProperties['color']; diff --git a/src/components/markdown_editor/markdown_actions.ts b/src/components/markdown_editor/markdown_actions.ts index 35ef55117b6..cb253f5e2fe 100644 --- a/src/components/markdown_editor/markdown_actions.ts +++ b/src/components/markdown_editor/markdown_actions.ts @@ -532,10 +532,8 @@ function multilineStyle(textarea: HTMLTextAreaElement, arg: StyleArgs) { } else { text = lines.map((line) => prefix + line + suffix).join('\n'); if (surroundWithNewlines) { - const { - newlinesToAppend, - newlinesToPrepend, - } = newlinesToSurroundSelectedText(textarea); + const { newlinesToAppend, newlinesToPrepend } = + newlinesToSurroundSelectedText(textarea); selectionStart += newlinesToAppend.length; selectionEnd = selectionStart + text.length; text = newlinesToAppend + text + newlinesToPrepend; @@ -594,10 +592,8 @@ function orderedList(textarea: HTMLTextAreaElement): SelectionRange { return results; })(); text = lines.join('\n'); - const { - newlinesToAppend, - newlinesToPrepend, - } = newlinesToSurroundSelectedText(textarea); + const { newlinesToAppend, newlinesToPrepend } = + newlinesToSurroundSelectedText(textarea); selectionStart = textarea.selectionStart + newlinesToAppend.length; selectionEnd = selectionStart + text.length; if (noInitialSelection) selectionStart = selectionEnd; diff --git a/src/components/markdown_editor/markdown_editor.test.tsx b/src/components/markdown_editor/markdown_editor.test.tsx index 4eabf706cb7..d12aaeafa52 100644 --- a/src/components/markdown_editor/markdown_editor.test.tsx +++ b/src/components/markdown_editor/markdown_editor.test.tsx @@ -159,11 +159,8 @@ describe('EuiMarkdownEditor', () => { }); test('custom plugins are excluded and popover is rendered', () => { - const { - parsingPlugins, - processingPlugins, - uiPlugins, - } = getDefaultEuiMarkdownPlugins({ exclude: ['tooltip'] }); + const { parsingPlugins, processingPlugins, uiPlugins } = + getDefaultEuiMarkdownPlugins({ exclude: ['tooltip'] }); const component = mount( = ( - props -) => { +export const EuiMarkdownEditorDropZone: FunctionComponent< + EuiMarkdownEditorDropZoneProps +> = (props) => { const [isDragging, toggleDragging] = React.useState(false); const [isUploadingFiles, toggleUploadingFiles] = React.useState(false); const [isDraggingError, toggleDraggingError] = React.useState(false); @@ -80,10 +80,8 @@ export const EuiMarkdownEditorDropZone: FunctionComponent(null); + const [editorFooterRef, setEditorFooterRef] = + React.useState(null); const { height: editorFooterHeight } = useResizeObserver( editorFooterRef, diff --git a/src/components/markdown_editor/markdown_editor_text_area.tsx b/src/components/markdown_editor/markdown_editor_text_area.tsx index e3298b2775d..cada4930d35 100644 --- a/src/components/markdown_editor/markdown_editor_text_area.tsx +++ b/src/components/markdown_editor/markdown_editor_text_area.tsx @@ -11,16 +11,15 @@ import classNames from 'classnames'; import { CommonProps } from '../common'; import { EuiMarkdownContext } from './markdown_context'; -export type EuiMarkdownEditorTextAreaProps = TextareaHTMLAttributes< - HTMLTextAreaElement -> & - CommonProps & { - isInvalid?: boolean; - fullWidth?: boolean; - compressed?: boolean; - height: string; - maxHeight: string; - }; +export type EuiMarkdownEditorTextAreaProps = + TextareaHTMLAttributes & + CommonProps & { + isInvalid?: boolean; + fullWidth?: boolean; + compressed?: boolean; + height: string; + maxHeight: string; + }; export const EuiMarkdownEditorTextArea = forwardRef< HTMLTextAreaElement, diff --git a/src/components/markdown_editor/plugins/markdown_default_plugins/processing_plugins.tsx b/src/components/markdown_editor/plugins/markdown_default_plugins/processing_plugins.tsx index f693c6635d5..d770f2c415d 100644 --- a/src/components/markdown_editor/plugins/markdown_default_plugins/processing_plugins.tsx +++ b/src/components/markdown_editor/plugins/markdown_default_plugins/processing_plugins.tsx @@ -109,4 +109,5 @@ export const getDefaultEuiMarkdownProcessingPlugins = ({ return plugins; }; -export const defaultProcessingPlugins = getDefaultEuiMarkdownProcessingPlugins(); +export const defaultProcessingPlugins = + getDefaultEuiMarkdownProcessingPlugins(); diff --git a/src/components/notification/notification_event.tsx b/src/components/notification/notification_event.tsx index 77b6eefff9a..3ca54867ce0 100644 --- a/src/components/notification/notification_event.tsx +++ b/src/components/notification/notification_event.tsx @@ -96,7 +96,9 @@ export type EuiNotificationEventProps = Omit< >; }; -export const EuiNotificationEvent: FunctionComponent = ({ +export const EuiNotificationEvent: FunctionComponent< + EuiNotificationEventProps +> = ({ id, type, severity, diff --git a/src/components/notification/notification_event_messages.tsx b/src/components/notification/notification_event_messages.tsx index e5fc784babb..7f2f791dcaa 100644 --- a/src/components/notification/notification_event_messages.tsx +++ b/src/components/notification/notification_event_messages.tsx @@ -23,10 +23,9 @@ export type EuiNotificationEventMessagesProps = { eventName: string; }; -export const EuiNotificationEventMessages: FunctionComponent = ({ - messages, - eventName, -}) => { +export const EuiNotificationEventMessages: FunctionComponent< + EuiNotificationEventMessagesProps +> = ({ messages, eventName }) => { const [isOpen, setIsOpen] = useState(false); const messagesLength = messages.length; diff --git a/src/components/notification/notification_event_meta.tsx b/src/components/notification/notification_event_meta.tsx index abca23b9d46..03332cf8add 100644 --- a/src/components/notification/notification_event_meta.tsx +++ b/src/components/notification/notification_event_meta.tsx @@ -64,7 +64,9 @@ export type EuiNotificationEventMetaProps = { >; }; -export const EuiNotificationEventMeta: FunctionComponent = ({ +export const EuiNotificationEventMeta: FunctionComponent< + EuiNotificationEventMetaProps +> = ({ id, iconType, type, diff --git a/src/components/notification/notification_event_read_button.tsx b/src/components/notification/notification_event_read_button.tsx index ac1508a18c7..83284fbdc58 100644 --- a/src/components/notification/notification_event_read_button.tsx +++ b/src/components/notification/notification_event_read_button.tsx @@ -30,13 +30,9 @@ export type EuiNotificationEventReadButtonProps = Omit< eventName: string; }; -export const EuiNotificationEventReadButton: FunctionComponent = ({ - id, - isRead, - onClick, - eventName, - ...rest -}) => { +export const EuiNotificationEventReadButton: FunctionComponent< + EuiNotificationEventReadButtonProps +> = ({ id, isRead, onClick, eventName, ...rest }) => { const classesReadState = classNames('euiNotificationEventReadButton', { 'euiNotificationEventReadButton--isRead': isRead, }); diff --git a/src/components/notification/notification_event_read_icon.tsx b/src/components/notification/notification_event_read_icon.tsx index 91b6163c89d..5239f561038 100644 --- a/src/components/notification/notification_event_read_icon.tsx +++ b/src/components/notification/notification_event_read_icon.tsx @@ -26,12 +26,9 @@ export type EuiNotificationEventReadIconProps = Omit< eventName: string; }; -export const EuiNotificationEventReadIcon: FunctionComponent = ({ - id, - isRead, - eventName, - ...rest -}) => { +export const EuiNotificationEventReadIcon: FunctionComponent< + EuiNotificationEventReadIconProps +> = ({ id, isRead, eventName, ...rest }) => { const classesReadState = classNames('euiNotificationEventReadIcon', { 'euiNotificationEventReadIcon--isRead': isRead, }); diff --git a/src/components/observer/resize_observer/resize_observer.test.tsx b/src/components/observer/resize_observer/resize_observer.test.tsx index f95777d45eb..7632e050fef 100644 --- a/src/components/observer/resize_observer/resize_observer.test.tsx +++ b/src/components/observer/resize_observer/resize_observer.test.tsx @@ -25,20 +25,23 @@ export async function waitforResizeObserver(period = 30) { describe.skip('testResizeObservers', () => { // refactor the tests structure to make sure that `EuiResizeObserver` test can get // the proper size of the dom element. - type GetBoundingClientRect = typeof HTMLElement['prototype']['getBoundingClientRect']; + type GetBoundingClientRect = + (typeof HTMLElement)['prototype']['getBoundingClientRect']; let _originalgetBoundingClientRect: undefined | GetBoundingClientRect; beforeAll(() => { _originalgetBoundingClientRect = HTMLElement.prototype.getBoundingClientRect; HTMLElement.prototype.getBoundingClientRect = function () { // use the length of the element's HTML to represent its height - return { width: 100, height: this.innerHTML.length } as ReturnType< - GetBoundingClientRect - >; + return { + width: 100, + height: this.innerHTML.length, + } as ReturnType; }; }); afterAll(() => { - HTMLElement.prototype.getBoundingClientRect = _originalgetBoundingClientRect!; + HTMLElement.prototype.getBoundingClientRect = + _originalgetBoundingClientRect!; }); describe('EuiResizeObserver', () => { diff --git a/src/components/outside_click_detector/outside_click_detector.test.tsx b/src/components/outside_click_detector/outside_click_detector.test.tsx index 025537f83b3..6a210e71e42 100644 --- a/src/components/outside_click_detector/outside_click_detector.test.tsx +++ b/src/components/outside_click_detector/outside_click_detector.test.tsx @@ -39,7 +39,9 @@ describe('EuiOutsideClickDetector', () => { e: ReactMouseEvent ) => { const event = new Event('mousedown') as EuiEvent; - event.euiGeneratedBy = ((e.nativeEvent as unknown) as EuiEvent).euiGeneratedBy; + event.euiGeneratedBy = ( + e.nativeEvent as unknown as EuiEvent + ).euiGeneratedBy; document.dispatchEvent(event); }; @@ -47,7 +49,9 @@ describe('EuiOutsideClickDetector', () => { e: ReactMouseEvent ) => { const event = new Event('mouseup') as EuiEvent; - event.euiGeneratedBy = ((e.nativeEvent as unknown) as EuiEvent).euiGeneratedBy; + event.euiGeneratedBy = ( + e.nativeEvent as unknown as EuiEvent + ).euiGeneratedBy; document.dispatchEvent(event); }; diff --git a/src/components/outside_click_detector/outside_click_detector.ts b/src/components/outside_click_detector/outside_click_detector.ts index 14fa8b133c4..e15a7c0cde6 100644 --- a/src/components/outside_click_detector/outside_click_detector.ts +++ b/src/components/outside_click_detector/outside_click_detector.ts @@ -33,9 +33,7 @@ export interface EuiOutsideClickDetectorProps { onTouchEnd?: (event: ReactMouseEvent) => void; } -export class EuiOutsideClickDetector extends Component< - EuiOutsideClickDetectorProps -> { +export class EuiOutsideClickDetector extends Component { // We are working with the assumption that a click event is // equivalent to a sequential, compound press and release of // the pointing device (mouse, finger, stylus, etc.). @@ -83,7 +81,7 @@ export class EuiOutsideClickDetector extends Component< return; } - const event = (e as unknown) as EuiEvent; + const event = e as unknown as EuiEvent; if ( (event.euiGeneratedBy && event.euiGeneratedBy.includes(this.id)) || @@ -114,16 +112,16 @@ export class EuiOutsideClickDetector extends Component< // to support nested click detectors, build an array // of detector ids that have been encountered; if (event.nativeEvent.hasOwnProperty('euiGeneratedBy')) { - ((event.nativeEvent as unknown) as EuiEvent).euiGeneratedBy.push(this.id); + (event.nativeEvent as unknown as EuiEvent).euiGeneratedBy.push(this.id); } else { - ((event.nativeEvent as unknown) as EuiEvent).euiGeneratedBy = [this.id]; + (event.nativeEvent as unknown as EuiEvent).euiGeneratedBy = [this.id]; } if (cb) cb(event); }; onChildMouseDown = (event: ReactMouseEvent) => { this.onChildClick(event, (e) => { - const nativeEvent = (e.nativeEvent as unknown) as EuiEvent; + const nativeEvent = e.nativeEvent as unknown as EuiEvent; this.capturedDownIds = nativeEvent.euiGeneratedBy; if (this.props.onMouseDown) this.props.onMouseDown(e); if (this.props.onTouchStart) this.props.onTouchStart(e); diff --git a/src/components/page/page_content/page_content.tsx b/src/components/page/page_content/page_content.tsx index 0327af4d6a2..55a13aa0c68 100644 --- a/src/components/page/page_content/page_content.tsx +++ b/src/components/page/page_content/page_content.tsx @@ -43,7 +43,9 @@ export type EuiPageContentProps = CommonProps & /** * @deprecated Use EuiPageSection instead */ -export const EuiPageContent_Deprecated: FunctionComponent = ({ +export const EuiPageContent_Deprecated: FunctionComponent< + EuiPageContentProps +> = ({ verticalPosition, horizontalPosition, paddingSize = 'l', diff --git a/src/components/page/page_content/page_content_body.tsx b/src/components/page/page_content/page_content_body.tsx index 5eb3234cf03..e55e0ae55c7 100644 --- a/src/components/page/page_content/page_content_body.tsx +++ b/src/components/page/page_content/page_content_body.tsx @@ -31,13 +31,15 @@ export interface EuiPageContentBodyProps * Adjust the padding. * When using this setting it's best to be consistent throughout all similar usages */ - paddingSize?: typeof PADDING_SIZES[number]; + paddingSize?: (typeof PADDING_SIZES)[number]; } /** * @deprecated Use EuiPageSection instead */ -export const EuiPageContentBody_Deprecated: FunctionComponent = ({ +export const EuiPageContentBody_Deprecated: FunctionComponent< + EuiPageContentBodyProps +> = ({ children, restrictWidth = false, paddingSize = 'none', diff --git a/src/components/page/page_content/page_content_header.tsx b/src/components/page/page_content/page_content_header.tsx index 65c5637557f..ff3fbe0b59c 100644 --- a/src/components/page/page_content/page_content_header.tsx +++ b/src/components/page/page_content/page_content_header.tsx @@ -23,12 +23,9 @@ export interface EuiPageContentHeaderProps /** * @deprecated Use EuiPageHeader instead */ -export const EuiPageContentHeader_Deprecated: FunctionComponent = ({ - children, - className, - responsive = true, - ...rest -}) => { +export const EuiPageContentHeader_Deprecated: FunctionComponent< + EuiPageContentHeaderProps +> = ({ children, className, responsive = true, ...rest }) => { const classes = classNames( 'euiPageContentHeader', { diff --git a/src/components/page/page_content/page_content_header_section.tsx b/src/components/page/page_content/page_content_header_section.tsx index 7da907356b3..b721352c7db 100644 --- a/src/components/page/page_content/page_content_header_section.tsx +++ b/src/components/page/page_content/page_content_header_section.tsx @@ -17,11 +17,9 @@ export interface EuiPageContentHeaderSectionProps /** * @deprecated Use EuiPageHeader instead */ -export const EuiPageContentHeaderSection_Deprecated: FunctionComponent = ({ - children, - className, - ...rest -}) => { +export const EuiPageContentHeaderSection_Deprecated: FunctionComponent< + EuiPageContentHeaderSectionProps +> = ({ children, className, ...rest }) => { const classes = classNames('euiPageContentHeaderSection', className); return ( diff --git a/src/components/page/page_header/page_header_content.tsx b/src/components/page/page_header/page_header_content.tsx index 372ad249a08..184a717f057 100644 --- a/src/components/page/page_header/page_header_content.tsx +++ b/src/components/page/page_header/page_header_content.tsx @@ -109,7 +109,7 @@ export interface _EuiPageHeaderContentProps * Adjust the padding. * When using this setting it's best to be consistent throughout all similar usages */ - paddingSize?: typeof PADDING_SIZES[number]; + paddingSize?: (typeof PADDING_SIZES)[number]; /** * Set to false if you don't want the children to stack at small screen sizes. * Set to `reverse` to display the right side content first for the sake of hierarchy (like global time) @@ -119,7 +119,7 @@ export interface _EuiPageHeaderContentProps * Vertical alignment of the left and right side content; * Default is `center` for custom content, but `top` for when `pageTitle` or `tabs` are included */ - alignItems?: typeof ALIGN_ITEMS[number]; + alignItems?: (typeof ALIGN_ITEMS)[number]; /** * Pass custom an array of content to this side usually up to 3 buttons. * The first button should be primary, usually with `fill` and will be visually displayed as the last item, @@ -141,7 +141,9 @@ export interface EuiPageHeaderContentProps HTMLAttributes, _EuiPageHeaderContentProps {} -export const EuiPageHeaderContent: FunctionComponent = ({ +export const EuiPageHeaderContent: FunctionComponent< + EuiPageHeaderContentProps +> = ({ className, pageTitle, pageTitleProps, diff --git a/src/components/page/page_header/page_header_section.tsx b/src/components/page/page_header/page_header_section.tsx index cb2905bca75..ac57e9fa44d 100644 --- a/src/components/page/page_header/page_header_section.tsx +++ b/src/components/page/page_header/page_header_section.tsx @@ -14,11 +14,9 @@ export interface EuiPageHeaderSectionProps extends CommonProps, HTMLAttributes {} -export const EuiPageHeaderSection: FunctionComponent = ({ - children, - className, - ...rest -}) => { +export const EuiPageHeaderSection: FunctionComponent< + EuiPageHeaderSectionProps +> = ({ children, className, ...rest }) => { const classes = classNames('euiPageHeaderSection', className); return ( diff --git a/src/components/page/page_section/page_section.tsx b/src/components/page/page_section/page_section.tsx index b12a7a85564..f5ee5eb3250 100644 --- a/src/components/page/page_section/page_section.tsx +++ b/src/components/page/page_section/page_section.tsx @@ -44,7 +44,7 @@ export type EuiPageSectionProps = CommonProps & /** * Horizontal and/or vertical alignment of the section contents */ - alignment?: typeof ALIGNMENTS[number]; + alignment?: (typeof ALIGNMENTS)[number]; /** * When true the panel will grow in height to fill container if parent is a flex group */ diff --git a/src/components/page/page_side_bar/page_side_bar.tsx b/src/components/page/page_side_bar/page_side_bar.tsx index 32b517d093e..ea6d94d32c2 100644 --- a/src/components/page/page_side_bar/page_side_bar.tsx +++ b/src/components/page/page_side_bar/page_side_bar.tsx @@ -32,19 +32,15 @@ export interface EuiPageSideBarProps_Deprecated /** * Adds padding around the children */ - paddingSize?: typeof PADDING_SIZES[number]; + paddingSize?: (typeof PADDING_SIZES)[number]; } /** * @deprecated Use the new EuiPageSidebar in page/page_sidebar instead */ -export const EuiPageSideBar_Deprecated: FunctionComponent = ({ - children, - className, - sticky, - paddingSize = 'none', - ...rest -}) => { +export const EuiPageSideBar_Deprecated: FunctionComponent< + EuiPageSideBarProps_Deprecated +> = ({ children, className, sticky, paddingSize = 'none', ...rest }) => { const classes = classNames( 'euiPageSideBar', paddingSizeToClassNameMap[paddingSize], diff --git a/src/components/page/page_template.tsx b/src/components/page/page_template.tsx index 8a29e119b40..fa66c61ce23 100644 --- a/src/components/page/page_template.tsx +++ b/src/components/page/page_template.tsx @@ -45,7 +45,7 @@ export type EuiPageTemplateProps_Deprecated = Omit< * `centeredContent`: The content inside the panel is centered * `empty`: Removes the panneling of the page content */ - template?: typeof TEMPLATES[number]; + template?: (typeof TEMPLATES)[number]; /** * Padding size will not get applied to the over-arching #EuiPage, * but will propogate through all the components to keep them in sync @@ -105,7 +105,9 @@ export type EuiPageTemplateProps_Deprecated = Omit< * * @deprecated use EuiPageTemplate from page_template/page_template instead */ -export const EuiPageTemplate_Deprecated: FunctionComponent = ({ +export const EuiPageTemplate_Deprecated: FunctionComponent< + EuiPageTemplateProps_Deprecated +> = ({ template = 'default', restrictWidth = true, grow = true, diff --git a/src/components/page_template/empty_prompt/page_empty_prompt.tsx b/src/components/page_template/empty_prompt/page_empty_prompt.tsx index 950acd143d8..830bfba5b8e 100644 --- a/src/components/page_template/empty_prompt/page_empty_prompt.tsx +++ b/src/components/page_template/empty_prompt/page_empty_prompt.tsx @@ -18,7 +18,9 @@ export type _EuiPageEmptyPromptProps = Omit< panelled?: boolean; }; -export const _EuiPageEmptyPrompt: FunctionComponent<_EuiPageEmptyPromptProps> = ({ +export const _EuiPageEmptyPrompt: FunctionComponent< + _EuiPageEmptyPromptProps +> = ({ children, alignment = 'center', restrictWidth = false, diff --git a/src/components/page_template/inner/page_inner.tsx b/src/components/page_template/inner/page_inner.tsx index accfe8c4da9..47f06f351de 100644 --- a/src/components/page_template/inner/page_inner.tsx +++ b/src/components/page_template/inner/page_inner.tsx @@ -18,32 +18,31 @@ import { euiPageInnerStyles } from './page_inner.styles'; export type ComponentTypes = keyof JSX.IntrinsicElements | ComponentType; -export type _EuiPageInnerProps< - T extends ComponentTypes = 'main' -> = CommonProps & - ComponentProps & { - /** - * Sets which HTML element to render. - */ - component?: T; - /** - * Adds a white background and shadow to define the area. - */ - panelled?: boolean; - /** - * Adds a single side border, based on the `responsive` state. - * Typically added when a side bar exists. - */ - border?: boolean; - /** - * Adjust the overall padding. - */ - paddingSize?: EuiPaddingSize; - /** - * Decides at which point the main content wrapper will be 100vw. - */ - responsive?: _EuiThemeBreakpoint[]; - }; +export type _EuiPageInnerProps = + CommonProps & + ComponentProps & { + /** + * Sets which HTML element to render. + */ + component?: T; + /** + * Adds a white background and shadow to define the area. + */ + panelled?: boolean; + /** + * Adds a single side border, based on the `responsive` state. + * Typically added when a side bar exists. + */ + border?: boolean; + /** + * Adjust the overall padding. + */ + paddingSize?: EuiPaddingSize; + /** + * Decides at which point the main content wrapper will be 100vw. + */ + responsive?: _EuiThemeBreakpoint[]; + }; export const _EuiPageInner = ({ children, diff --git a/src/components/pagination/pagination_button.tsx b/src/components/pagination/pagination_button.tsx index bb6ded97fe8..c2fbfb5421d 100644 --- a/src/components/pagination/pagination_button.tsx +++ b/src/components/pagination/pagination_button.tsx @@ -25,13 +25,11 @@ export type EuiPaginationButtonProps = EuiButtonEmptyProps & { totalPages?: number; }; -type EuiPaginationButtonPropsForAnchor = PropsForAnchor< - EuiPaginationButtonProps ->; +type EuiPaginationButtonPropsForAnchor = + PropsForAnchor; -type EuiPaginationButtonPropsForButton = PropsForButton< - EuiPaginationButtonProps ->; +type EuiPaginationButtonPropsForButton = + PropsForButton; type Props = ExclusiveUnion< EuiPaginationButtonPropsForAnchor, diff --git a/src/components/pagination/pagination_button_arrow.tsx b/src/components/pagination/pagination_button_arrow.tsx index e2b48cd5ea1..f5a3a138495 100644 --- a/src/components/pagination/pagination_button_arrow.tsx +++ b/src/components/pagination/pagination_button_arrow.tsx @@ -26,7 +26,7 @@ const typeToIconTypeMap = { }; export const TYPES = keysOf(typeToIconTypeMap); -export type EuiPaginationButtonArrowType = typeof TYPES[number]; +export type EuiPaginationButtonArrowType = (typeof TYPES)[number]; export type Props = Partial> & { type: EuiPaginationButtonArrowType; diff --git a/src/components/panel/panel.tsx b/src/components/panel/panel.tsx index b4f6956a42d..7cdaae3e9f4 100644 --- a/src/components/panel/panel.tsx +++ b/src/components/panel/panel.tsx @@ -38,10 +38,10 @@ const paddingSizeToClassNameMap: { l: 'paddingLarge', }; const _SIZES = keysOf(paddingSizeToClassNameMap); -export type PanelPaddingSize = typeof _SIZES[number]; +export type PanelPaddingSize = (typeof _SIZES)[number]; export const BORDER_RADII = ['none', 'm'] as const; -export type PanelBorderRadius = typeof BORDER_RADII[number]; +export type PanelBorderRadius = (typeof BORDER_RADII)[number]; export const COLORS = BACKGROUND_COLORS; export type PanelColor = _EuiBackgroundColor; @@ -128,9 +128,8 @@ export const EuiPanel: FunctionComponent = ({ 'euiPanel', `euiPanel--${color}`, { - [`euiPanel--${paddingSizeToClassNameMap[paddingSize]}`]: paddingSizeToClassNameMap[ - paddingSize - ], + [`euiPanel--${paddingSizeToClassNameMap[paddingSize]}`]: + paddingSizeToClassNameMap[paddingSize], }, className ); diff --git a/src/components/panel/split_panel/split_panel.tsx b/src/components/panel/split_panel/split_panel.tsx index 3c3eed57708..86eacd59ce3 100644 --- a/src/components/panel/split_panel/split_panel.tsx +++ b/src/components/panel/split_panel/split_panel.tsx @@ -21,11 +21,9 @@ export type _EuiSplitPanelInnerProps = HTMLAttributes & * Consumed via `EuiSplitPanel.Inner`. * Extends most `EuiPanelProps`. */ -export const _EuiSplitPanelInner: FunctionComponent<_EuiSplitPanelInnerProps> = ({ - children, - className, - ...rest -}) => { +export const _EuiSplitPanelInner: FunctionComponent< + _EuiSplitPanelInnerProps +> = ({ children, className, ...rest }) => { const classes = classNames('euiSplitPanel__inner', className); const panelProps: _EuiPanelProps = { @@ -67,7 +65,9 @@ export type _EuiSplitPanelOuterProps = HTMLAttributes & { * Consumed via `EuiSplitPanel.Outer`. * Extends most `EuiPanelProps`. */ -export const _EuiSplitPanelOuter: FunctionComponent<_EuiSplitPanelOuterProps> = ({ +export const _EuiSplitPanelOuter: FunctionComponent< + _EuiSplitPanelOuterProps +> = ({ children, className, direction = 'column', diff --git a/src/components/popover/popover.tsx b/src/components/popover/popover.tsx index dcb10e6369f..563eba246e5 100644 --- a/src/components/popover/popover.tsx +++ b/src/components/popover/popover.tsx @@ -65,7 +65,7 @@ export const popoverAnchorPosition = [ 'rightDown', ] as const; -export type PopoverAnchorPosition = typeof popoverAnchorPosition[number]; +export type PopoverAnchorPosition = (typeof popoverAnchorPosition)[number]; type AnchorPosition = 'up' | 'right' | 'down' | 'left'; export interface EuiPopoverProps extends CommonProps { @@ -383,7 +383,7 @@ export class EuiPopover extends Component { onKeyDown = (event: KeyboardEvent) => { if (event.key === cascadingMenuKeys.ESCAPE) { - this.onEscapeKey((event as unknown) as Event); + this.onEscapeKey(event as unknown as Event); } }; diff --git a/src/components/popover/popover_arrow/_popover_arrow.tsx b/src/components/popover/popover_arrow/_popover_arrow.tsx index 6bcdffa01bd..4238824ae23 100644 --- a/src/components/popover/popover_arrow/_popover_arrow.tsx +++ b/src/components/popover/popover_arrow/_popover_arrow.tsx @@ -12,7 +12,7 @@ import { euiPopoverArrowStyles } from './_popover_arrow.styles'; import { useEuiTheme } from '../../../services'; export const POSITIONS = ['top', 'left', 'right', 'bottom'] as const; -export type EuiPopoverArrowPositions = typeof POSITIONS[number]; +export type EuiPopoverArrowPositions = (typeof POSITIONS)[number]; export type EuiPopoverArrowProps = HTMLAttributes & CommonProps & { diff --git a/src/components/portal/portal.spec.tsx b/src/components/portal/portal.spec.tsx index b4fb8301283..3c08ac5b231 100644 --- a/src/components/portal/portal.spec.tsx +++ b/src/components/portal/portal.spec.tsx @@ -84,9 +84,8 @@ describe('EuiPortal', () => { it.skip('insert value can be changed', () => { const Wrapper = () => { const [siblingRef, setSiblingRef] = useState(null); - const [insert, setInsert] = useState( - undefined - ); + const [insert, setInsert] = + useState(undefined); return ( <> diff --git a/src/components/portal/portal.tsx b/src/components/portal/portal.tsx index 77d24dc82e3..996c6470915 100644 --- a/src/components/portal/portal.tsx +++ b/src/components/portal/portal.tsx @@ -29,9 +29,8 @@ export const insertPositions: InsertPositionsMap = { type EuiPortalInsertPosition = keyof typeof insertPositions; -export const INSERT_POSITIONS: EuiPortalInsertPosition[] = keysOf( - insertPositions -); +export const INSERT_POSITIONS: EuiPortalInsertPosition[] = + keysOf(insertPositions); export interface EuiPortalProps { /** diff --git a/src/components/progress/progress.tsx b/src/components/progress/progress.tsx index f7e1958a533..8fd60b70531 100644 --- a/src/components/progress/progress.tsx +++ b/src/components/progress/progress.tsx @@ -29,7 +29,7 @@ import { } from './progress.styles'; export const SIZES = ['xs', 's', 'm', 'l'] as const; -export type EuiProgressSize = typeof SIZES[number]; +export type EuiProgressSize = (typeof SIZES)[number]; export const COLORS = [ 'primary', @@ -49,10 +49,10 @@ export const COLORS = [ 'vis8', 'vis9', ] as const; -export type EuiProgressColor = typeof COLORS[number]; +export type EuiProgressColor = (typeof COLORS)[number]; export const POSITIONS = ['fixed', 'absolute', 'static'] as const; -export type EuiProgressPosition = typeof POSITIONS[number]; +export type EuiProgressPosition = (typeof POSITIONS)[number]; export type EuiProgressProps = CommonProps & { size?: EuiProgressSize; @@ -79,10 +79,9 @@ type Determinate = EuiProgressProps & labelProps?: CommonProps & HTMLAttributes; }; -export const EuiProgress: FunctionComponent> = ({ +export const EuiProgress: FunctionComponent< + ExclusiveUnion +> = ({ className, color = 'success', size = 'm', diff --git a/src/components/resizable_container/resizable_button.tsx b/src/components/resizable_container/resizable_button.tsx index 4d1fa085fe2..3d276fd7b39 100644 --- a/src/components/resizable_container/resizable_button.tsx +++ b/src/components/resizable_container/resizable_button.tsx @@ -62,9 +62,8 @@ export const EuiResizableButton: FunctionComponent = ({ prefix: 'resizable-button', conditionalId: id, }); - const { - registry: { resizers } = { resizers: {} }, - } = useEuiResizableContainerContext(); + const { registry: { resizers } = { resizers: {} } } = + useEuiResizableContainerContext(); const isDisabled = useMemo( () => disabled || (resizers[resizerId] && resizers[resizerId].isDisabled), [resizers, resizerId, disabled] diff --git a/src/components/resizable_container/resizable_collapse_button.tsx b/src/components/resizable_container/resizable_collapse_button.tsx index 5bf508c1d4a..a77e5fb70a5 100644 --- a/src/components/resizable_container/resizable_collapse_button.tsx +++ b/src/components/resizable_container/resizable_collapse_button.tsx @@ -38,7 +38,9 @@ export type EuiResizableCollapseButtonProps = Omit< isCollapsed?: boolean; }; -export const EuiResizableCollapseButton: FunctionComponent = ({ +export const EuiResizableCollapseButton: FunctionComponent< + EuiResizableCollapseButtonProps +> = ({ className, externalPosition, internalPosition = 'middle', diff --git a/src/components/resizable_container/resizable_container.test.tsx b/src/components/resizable_container/resizable_container.test.tsx index 63b6a0a803f..60b3bd274c5 100644 --- a/src/components/resizable_container/resizable_container.test.tsx +++ b/src/components/resizable_container/resizable_container.test.tsx @@ -216,12 +216,8 @@ describe('EuiResizableContainer', () => { }; test('onResizeStart and onResizeEnd are called for pointer events', () => { - const { - container, - button, - onResizeStart, - onResizeEnd, - } = mountWithCallbacks(); + const { container, button, onResizeStart, onResizeEnd } = + mountWithCallbacks(); button.simulate('mousedown', { pageX: 0, pageY: 0, @@ -315,12 +311,8 @@ describe('EuiResizableContainer', () => { }); test('onResizeEnd is called before starting a new resize if a keyboard resize is triggered while a pointer resize is in progress', () => { - const { - container, - button, - onResizeStart, - onResizeEnd, - } = mountWithCallbacks(); + const { container, button, onResizeStart, onResizeEnd } = + mountWithCallbacks(); button.simulate('mousedown', { pageX: 0, pageY: 0, diff --git a/src/components/resizable_container/resizable_container.tsx b/src/components/resizable_container/resizable_container.tsx index 578d6aed5ba..87bfb8c5bf7 100644 --- a/src/components/resizable_container/resizable_container.tsx +++ b/src/components/resizable_container/resizable_container.tsx @@ -88,7 +88,9 @@ const initialState: EuiResizableContainerState = { resizers: {}, }; -export const EuiResizableContainer: FunctionComponent = ({ +export const EuiResizableContainer: FunctionComponent< + EuiResizableContainerProps +> = ({ direction = 'horizontal', children, className, diff --git a/src/components/search_bar/filters/field_value_selection_filter.tsx b/src/components/search_bar/filters/field_value_selection_filter.tsx index b70e04180e4..96e3e8183de 100644 --- a/src/components/search_bar/filters/field_value_selection_filter.tsx +++ b/src/components/search_bar/filters/field_value_selection_filter.tsx @@ -386,7 +386,7 @@ export class FieldValueSelectionFilter extends Component< anchorPosition="downCenter" panelClassName="euiFilterGroup__popoverPanel" > - > + > singleSelection={!multiSelect} aria-label={config.name} options={items} diff --git a/src/components/search_bar/filters/field_value_toggle_filter.tsx b/src/components/search_bar/filters/field_value_toggle_filter.tsx index 4ad442ae8fe..12ee6b54120 100644 --- a/src/components/search_bar/filters/field_value_toggle_filter.tsx +++ b/src/components/search_bar/filters/field_value_toggle_filter.tsx @@ -29,9 +29,7 @@ export interface FieldValueToggleFilterProps { onChange: (value: Query) => void; } -export class FieldValueToggleFilter extends Component< - FieldValueToggleFilterProps -> { +export class FieldValueToggleFilter extends Component { resolveDisplay(clause: Clause | undefined) { const { name, negatedName } = this.props.config; if (isNil(clause)) { diff --git a/src/components/search_bar/filters/field_value_toggle_group_filter.tsx b/src/components/search_bar/filters/field_value_toggle_group_filter.tsx index aa2fe00f9d0..255d6340131 100644 --- a/src/components/search_bar/filters/field_value_toggle_group_filter.tsx +++ b/src/components/search_bar/filters/field_value_toggle_group_filter.tsx @@ -35,9 +35,7 @@ export interface FieldValueToggleGroupFilterProps { onChange: (value: Query) => void; } -export class FieldValueToggleGroupFilter extends Component< - FieldValueToggleGroupFilterProps -> { +export class FieldValueToggleGroupFilter extends Component { resolveDisplay( config: FieldValueToggleGroupFilterConfigType, query: Query, diff --git a/src/components/selectable/selectable.tsx b/src/components/selectable/selectable.tsx index 456d98999ca..938b8788a4a 100644 --- a/src/components/selectable/selectable.tsx +++ b/src/components/selectable/selectable.tsx @@ -39,14 +39,15 @@ export type EuiSelectableOnChangeEvent = KeyboardEvent | MouseEvent; type RequiredEuiSelectableOptionsListProps = Omit< EuiSelectableOptionsListProps, - keyof typeof EuiSelectableList['defaultProps'] + keyof (typeof EuiSelectableList)['defaultProps'] >; type OptionalEuiSelectableOptionsListProps = Omit< EuiSelectableOptionsListProps, keyof RequiredEuiSelectableOptionsListProps >; -type EuiSelectableOptionsListPropsWithDefaults = RequiredEuiSelectableOptionsListProps & - Partial; +type EuiSelectableOptionsListPropsWithDefaults = + RequiredEuiSelectableOptionsListProps & + Partial; // The `searchable` prop has significant implications for a11y. // When present, we effectively change from adhering @@ -732,8 +733,9 @@ export class EuiSelectable extends Component<
) : undefined; - const resultsLength = visibleOptions.filter((option) => !option.disabled) - .length; + const resultsLength = visibleOptions.filter( + (option) => !option.disabled + ).length; const listScreenReaderStatus = searchable && ( & CommonProps & { @@ -86,9 +87,7 @@ export type EuiSelectableListItemProps = LiHTMLAttributes & textWrap?: 'truncate' | 'wrap'; }; -export class EuiSelectableListItem extends Component< - EuiSelectableListItemProps -> { +export class EuiSelectableListItem extends Component { static defaultProps = { showIcons: true, onFocusBadge: true, diff --git a/src/components/selectable/selectable_message/selectable_message.tsx b/src/components/selectable/selectable_message/selectable_message.tsx index 881b6d1b218..c8acdf13560 100644 --- a/src/components/selectable/selectable_message/selectable_message.tsx +++ b/src/components/selectable/selectable_message/selectable_message.tsx @@ -22,12 +22,9 @@ export type EuiSelectableMessageProps = Omit< bordered?: boolean; }; -export const EuiSelectableMessage: FunctionComponent = ({ - children, - className, - bordered = false, - ...rest -}) => { +export const EuiSelectableMessage: FunctionComponent< + EuiSelectableMessageProps +> = ({ children, className, bordered = false, ...rest }) => { const classes = classNames( 'euiSelectableMessage', { diff --git a/src/components/selectable/selectable_search/selectable_search.tsx b/src/components/selectable/selectable_search/selectable_search.tsx index 66056923d14..947f5c54fbf 100644 --- a/src/components/selectable/selectable_search/selectable_search.tsx +++ b/src/components/selectable/selectable_search/selectable_search.tsx @@ -67,17 +67,16 @@ export const EuiSelectableSearch = ({ const classes = classNames('euiSelectableSearch', className); - const ariaPropsIfListIsPresent: - | Partial - | undefined = listId - ? { - role: 'combobox', - 'aria-autocomplete': 'list', - 'aria-expanded': true, - 'aria-controls': listId, - 'aria-owns': listId, // legacy attribute but shims support for nearly everything atm - } - : undefined; + const ariaPropsIfListIsPresent: Partial | undefined = + listId + ? { + role: 'combobox', + 'aria-autocomplete': 'list', + 'aria-expanded': true, + 'aria-controls': listId, + 'aria-owns': listId, // legacy attribute but shims support for nearly everything atm + } + : undefined; return ( = ({ +export const EuiSelectableTemplateSitewide: FunctionComponent< + EuiSelectableTemplateSitewideProps +> = ({ children, className, options, @@ -90,7 +92,12 @@ export const EuiSelectableTemplateSitewide: FunctionComponent(null); const [popoverIsOpen, setPopoverIsOpen] = useState(false); - const { closePopover: _closePopover, panelRef, width, ...popoverRest } = { + const { + closePopover: _closePopover, + panelRef, + width, + ...popoverRest + } = { ...popoverProps, }; diff --git a/src/components/side_nav/side_nav.a11y.tsx b/src/components/side_nav/side_nav.a11y.tsx index cb3ff009429..873b9b70f0c 100644 --- a/src/components/side_nav/side_nav.a11y.tsx +++ b/src/components/side_nav/side_nav.a11y.tsx @@ -252,8 +252,7 @@ describe('EuiSideNav', () => { isSelected: false, }, { - name: - 'Extremely long title will become truncated when the browser is narrow enough', + name: 'Extremely long title will become truncated when the browser is narrow enough', id: 'extremely-long-title-1', isSelected: false, }, diff --git a/src/components/skeleton/skeleton_circle.tsx b/src/components/skeleton/skeleton_circle.tsx index 9cb7db01fae..0bbe9cb2331 100644 --- a/src/components/skeleton/skeleton_circle.tsx +++ b/src/components/skeleton/skeleton_circle.tsx @@ -16,7 +16,7 @@ import { EuiSkeletonLoading, _EuiSkeletonAriaProps } from './skeleton_loading'; import { euiSkeletonCircleStyles } from './skeleton_circle.styles'; export const SIZES = ['s', 'm', 'l', 'xl'] as const; -export type SkeletonCircleSize = typeof SIZES[number]; +export type SkeletonCircleSize = (typeof SIZES)[number]; export type EuiSkeletonCircleProps = HTMLAttributes & CommonProps & diff --git a/src/components/skeleton/skeleton_rectangle.tsx b/src/components/skeleton/skeleton_rectangle.tsx index 154eb1a9a48..aea4b26816b 100644 --- a/src/components/skeleton/skeleton_rectangle.tsx +++ b/src/components/skeleton/skeleton_rectangle.tsx @@ -17,7 +17,7 @@ import { EuiSkeletonLoading, _EuiSkeletonAriaProps } from './skeleton_loading'; import { euiSkeletonRectangleStyles } from './skeleton_rectangle.styles'; export const RADIUS = ['s', 'm', 'none'] as const; -export type SkeletonRectangleBorderRadius = typeof RADIUS[number]; +export type SkeletonRectangleBorderRadius = (typeof RADIUS)[number]; export type EuiSkeletonRectangleProps = HTMLAttributes & CommonProps & @@ -27,7 +27,9 @@ export type EuiSkeletonRectangleProps = HTMLAttributes & borderRadius?: SkeletonRectangleBorderRadius; }; -export const EuiSkeletonRectangle: FunctionComponent = ({ +export const EuiSkeletonRectangle: FunctionComponent< + EuiSkeletonRectangleProps +> = ({ isLoading = true, borderRadius = 's', width = '24px', diff --git a/src/components/skeleton/skeleton_text.tsx b/src/components/skeleton/skeleton_text.tsx index 437cccaab08..c4f046c34c1 100644 --- a/src/components/skeleton/skeleton_text.tsx +++ b/src/components/skeleton/skeleton_text.tsx @@ -17,7 +17,7 @@ import { EuiSkeletonLoading, _EuiSkeletonAriaProps } from './skeleton_loading'; import { euiSkeletonTextStyles } from './skeleton_text.styles'; export const LINES = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10] as const; -export type LineRange = typeof LINES[number]; +export type LineRange = (typeof LINES)[number]; export type EuiSkeletonTextProps = CommonProps & HTMLAttributes & diff --git a/src/components/spacer/spacer.tsx b/src/components/spacer/spacer.tsx index da258c5dab5..8a7936a5bef 100644 --- a/src/components/spacer/spacer.tsx +++ b/src/components/spacer/spacer.tsx @@ -15,7 +15,7 @@ import { useEuiTheme } from '../../services'; import { euiSpacerStyles } from './spacer.styles'; export const SIZES = ['xs', 's', 'm', 'l', 'xl', 'xxl'] as const; -export type SpacerSize = typeof SIZES[number]; +export type SpacerSize = (typeof SIZES)[number]; export type EuiSpacerProps = HTMLAttributes & CommonProps & { diff --git a/src/components/stat/stat.tsx b/src/components/stat/stat.tsx index beb228c5fe7..d7525f3a9d3 100644 --- a/src/components/stat/stat.tsx +++ b/src/components/stat/stat.tsx @@ -32,7 +32,7 @@ export const COLORS = [ 'danger', 'accent', ] as const; -type TitleColor = typeof COLORS[number]; +type TitleColor = (typeof COLORS)[number]; export const ALIGNMENTS = ['left', 'center', 'right'] as const; @@ -49,7 +49,7 @@ export interface EuiStatProps { * Flips the order of the description and title */ reverse?: boolean; - textAlign?: typeof ALIGNMENTS[number]; + textAlign?: (typeof ALIGNMENTS)[number]; /** * The (value) text */ diff --git a/src/components/steps/step_number.tsx b/src/components/steps/step_number.tsx index fe450ca6c6e..b530ad69935 100644 --- a/src/components/steps/step_number.tsx +++ b/src/components/steps/step_number.tsx @@ -40,7 +40,7 @@ export const STATUS = [ 'current', ] as const; -export type EuiStepStatus = typeof STATUS[number]; +export type EuiStepStatus = (typeof STATUS)[number]; export interface EuiStepNumberProps extends CommonProps, diff --git a/src/components/table/mobile/table_sort_mobile_item.tsx b/src/components/table/mobile/table_sort_mobile_item.tsx index e3619928976..4196cb69a8f 100644 --- a/src/components/table/mobile/table_sort_mobile_item.tsx +++ b/src/components/table/mobile/table_sort_mobile_item.tsx @@ -29,7 +29,9 @@ export interface EuiTableSortMobileItemProps extends CommonProps { ariaLabel?: string; } -export const EuiTableSortMobileItem: FunctionComponent = ({ +export const EuiTableSortMobileItem: FunctionComponent< + EuiTableSortMobileItemProps +> = ({ children, onSort, isSorted, diff --git a/src/components/table/table_header_button.tsx b/src/components/table/table_header_button.tsx index 8c35ce310fb..4bcc4208a84 100644 --- a/src/components/table/table_header_button.tsx +++ b/src/components/table/table_header_button.tsx @@ -18,12 +18,9 @@ export type EuiTableHeaderButtonProps = CommonProps & iconType?: IconType; }; -export const EuiTableHeaderButton: FunctionComponent = ({ - children, - className, - iconType, - ...rest -}) => { +export const EuiTableHeaderButton: FunctionComponent< + EuiTableHeaderButtonProps +> = ({ children, className, iconType, ...rest }) => { const classes = classNames('euiTableHeaderButton', className); // Add an icon to the button if one exists. diff --git a/src/components/tabs/tabbed_content/tabbed_content.tsx b/src/components/tabs/tabbed_content/tabbed_content.tsx index 1a5361019c4..0a1146f9b72 100644 --- a/src/components/tabs/tabbed_content/tabbed_content.tsx +++ b/src/components/tabs/tabbed_content/tabbed_content.tsx @@ -97,9 +97,8 @@ export class EuiTabbedContent extends Component< } focusTab = () => { - const targetTab: HTMLDivElement | null = this.tabsRef.current!.querySelector( - `#${this.state.selectedTabId}` - ); + const targetTab: HTMLDivElement | null = + this.tabsRef.current!.querySelector(`#${this.state.selectedTabId}`); targetTab!.focus(); }; diff --git a/src/components/tabs/tabs.tsx b/src/components/tabs/tabs.tsx index 9068531df6c..f5a269f0728 100644 --- a/src/components/tabs/tabs.tsx +++ b/src/components/tabs/tabs.tsx @@ -19,7 +19,7 @@ import { euiTabsStyles } from './tabs.styles'; import { EuiTabsContext } from './tabs_context'; export const SIZES = ['s', 'm', 'l', 'xl'] as const; -export type EuiTabsSizes = typeof SIZES[number]; +export type EuiTabsSizes = (typeof SIZES)[number]; export type EuiTabsProps = CommonProps & HTMLAttributes & { diff --git a/src/components/tabs/tabs_context.tsx b/src/components/tabs/tabs_context.tsx index 9872b2dd0ee..6e5b5a26962 100644 --- a/src/components/tabs/tabs_context.tsx +++ b/src/components/tabs/tabs_context.tsx @@ -18,6 +18,5 @@ export const contextDefaults: EuiTabsContextValues = { size: 'm', }; -export const EuiTabsContext = createContext( - contextDefaults -); +export const EuiTabsContext = + createContext(contextDefaults); diff --git a/src/components/text/text.tsx b/src/components/text/text.tsx index 2e856e851b5..3d7124b60b1 100644 --- a/src/components/text/text.tsx +++ b/src/components/text/text.tsx @@ -18,7 +18,7 @@ import { TextColor, EuiTextColor } from './text_color'; import { EuiTextAlign, TextAlignment } from './text_align'; export const TEXT_SIZES = ['xs', 's', 'm', 'relative'] as const; -export type TextSize = typeof TEXT_SIZES[number]; +export type TextSize = (typeof TEXT_SIZES)[number]; export type EuiTextProps = CommonProps & Omit, 'color'> & { diff --git a/src/components/text/text_align.tsx b/src/components/text/text_align.tsx index f0b588df74c..487932fb041 100644 --- a/src/components/text/text_align.tsx +++ b/src/components/text/text_align.tsx @@ -17,7 +17,7 @@ import { cloneElementWithCss } from '../../services/theme/clone_element'; import { euiTextAlignStyles } from './text_align.styles'; export const ALIGNMENTS = ['left', 'right', 'center'] as const; -export type TextAlignment = typeof ALIGNMENTS[number]; +export type TextAlignment = (typeof ALIGNMENTS)[number]; export type EuiTextAlignProps = CommonProps & HTMLAttributes & { diff --git a/src/components/text/text_color.tsx b/src/components/text/text_color.tsx index 263ab967a73..8a2054a14d4 100644 --- a/src/components/text/text_color.tsx +++ b/src/components/text/text_color.tsx @@ -28,7 +28,7 @@ export const COLORS = [ 'ghost', 'inherit', ] as const; -export type TextColor = typeof COLORS[number]; +export type TextColor = (typeof COLORS)[number]; export type EuiTextColorProps = CommonProps & Omit< diff --git a/src/components/timeline/timeline.tsx b/src/components/timeline/timeline.tsx index 3c56796bd88..7665ab0334b 100644 --- a/src/components/timeline/timeline.tsx +++ b/src/components/timeline/timeline.tsx @@ -15,7 +15,7 @@ import { EuiTimelineItem, EuiTimelineItemProps } from './timeline_item'; import { euiTimelineStyles } from './timeline.styles'; export const GUTTER_SIZES = ['m', 'l', 'xl'] as const; -export type EuiTimelineGutterSize = typeof GUTTER_SIZES[number]; +export type EuiTimelineGutterSize = (typeof GUTTER_SIZES)[number]; export interface EuiTimelineProps extends HTMLAttributes, diff --git a/src/components/timeline/timeline_item.tsx b/src/components/timeline/timeline_item.tsx index a382e2b2c8a..3c223450fed 100644 --- a/src/components/timeline/timeline_item.tsx +++ b/src/components/timeline/timeline_item.tsx @@ -19,7 +19,7 @@ import { } from './timeline_item_icon'; import { euiTimelineItemStyles } from './timeline_item.styles'; export const VERTICAL_ALIGN = ['top', 'center'] as const; -export type EuiTimelineItemVerticalAlign = typeof VERTICAL_ALIGN[number]; +export type EuiTimelineItemVerticalAlign = (typeof VERTICAL_ALIGN)[number]; export interface EuiTimelineItemProps extends Omit, 'children'>, diff --git a/src/components/timeline/timeline_item_event.tsx b/src/components/timeline/timeline_item_event.tsx index 6b40a3040e5..f7e3738e184 100644 --- a/src/components/timeline/timeline_item_event.tsx +++ b/src/components/timeline/timeline_item_event.tsx @@ -18,10 +18,9 @@ export interface EuiTimelineItemEventProps { verticalAlign?: EuiTimelineItemVerticalAlign; } -export const EuiTimelineItemEvent: FunctionComponent = ({ - children, - verticalAlign = 'center', -}) => { +export const EuiTimelineItemEvent: FunctionComponent< + EuiTimelineItemEventProps +> = ({ children, verticalAlign = 'center' }) => { const styles = euiTimelineItemEventStyles(); const cssStyles = [styles.euiTimelineItemEvent, styles[verticalAlign]]; diff --git a/src/components/timeline/timeline_item_icon.tsx b/src/components/timeline/timeline_item_icon.tsx index af9f9b32b72..8b6beac4a44 100644 --- a/src/components/timeline/timeline_item_icon.tsx +++ b/src/components/timeline/timeline_item_icon.tsx @@ -26,11 +26,9 @@ export interface EuiTimelineItemIconProps { iconAriaLabel?: string; } -export const EuiTimelineItemIcon: FunctionComponent = ({ - icon, - verticalAlign = 'center', - iconAriaLabel, -}) => { +export const EuiTimelineItemIcon: FunctionComponent< + EuiTimelineItemIconProps +> = ({ icon, verticalAlign = 'center', iconAriaLabel }) => { const euiTheme = useEuiTheme(); const styles = euiTimelineItemIconStyles(euiTheme); diff --git a/src/components/title/title.tsx b/src/components/title/title.tsx index d3fb833c93b..06372639a2a 100644 --- a/src/components/title/title.tsx +++ b/src/components/title/title.tsx @@ -14,10 +14,10 @@ import { euiTitleStyles } from './title.styles'; import { CommonProps } from '../common'; export const TITLE_SIZES = ['xxxs', 'xxs', 'xs', 's', 'm', 'l'] as const; -export type EuiTitleSize = typeof TITLE_SIZES[number]; +export type EuiTitleSize = (typeof TITLE_SIZES)[number]; export const TEXT_TRANSFORM = ['uppercase'] as const; -export type EuiTitleTextTransform = typeof TEXT_TRANSFORM[number]; +export type EuiTitleTextTransform = (typeof TEXT_TRANSFORM)[number]; export type EuiTitleProps = CommonProps & { /** diff --git a/src/components/toast/global_toast_list.tsx b/src/components/toast/global_toast_list.tsx index b61b25835ce..256da28a864 100644 --- a/src/components/toast/global_toast_list.tsx +++ b/src/components/toast/global_toast_list.tsx @@ -108,15 +108,13 @@ export const EuiGlobalToastList: FunctionComponent = ({ listElement.current.scrollTop = position + distanceToDestination * 0.25; if (isScrollingToBottom) { - isScrollingAnimationFrame.current = window.requestAnimationFrame( - scrollToBottom - ); + isScrollingAnimationFrame.current = + window.requestAnimationFrame(scrollToBottom); } }; - startScrollingAnimationFrame.current = window.requestAnimationFrame( - scrollToBottom - ); + startScrollingAnimationFrame.current = + window.requestAnimationFrame(scrollToBottom); }; const onMouseEnter = () => { diff --git a/src/components/toast/toast.tsx b/src/components/toast/toast.tsx index 1b8551238b7..09935b0f338 100644 --- a/src/components/toast/toast.tsx +++ b/src/components/toast/toast.tsx @@ -30,7 +30,7 @@ import { export const COLORS = ['primary', 'success', 'warning', 'danger'] as const; -type ToastColor = typeof COLORS[number]; +type ToastColor = (typeof COLORS)[number]; export interface EuiToastProps extends CommonProps, diff --git a/src/components/token/token_types.ts b/src/components/token/token_types.ts index 734b7d9335d..f956557f2c1 100644 --- a/src/components/token/token_types.ts +++ b/src/components/token/token_types.ts @@ -10,13 +10,13 @@ import { CommonProps } from '../common'; import { IconType } from '../icon'; export const SIZES = ['xs', 's', 'm', 'l'] as const; -export type TokenSize = typeof SIZES[number]; +export type TokenSize = (typeof SIZES)[number]; export const SHAPES = ['circle', 'square', 'rectangle'] as const; -export type TokenShape = typeof SHAPES[number]; +export type TokenShape = (typeof SHAPES)[number]; export const FILLS = ['light', 'dark', 'none'] as const; -export type TokenFill = typeof FILLS[number]; +export type TokenFill = (typeof FILLS)[number]; export const COLORS = [ 'euiColorVis0', @@ -31,7 +31,7 @@ export const COLORS = [ 'euiColorVis9', 'gray', ] as const; -export type TokenColor = typeof COLORS[number]; +export type TokenColor = (typeof COLORS)[number]; export interface TokenProps { /** diff --git a/src/components/tool_tip/tool_tip.styles.ts b/src/components/tool_tip/tool_tip.styles.ts index a7b3e6afc25..65be1560836 100644 --- a/src/components/tool_tip/tool_tip.styles.ts +++ b/src/components/tool_tip/tool_tip.styles.ts @@ -170,6 +170,6 @@ export const euiToolTipAnchorStyles = () => ({ display: block; `, inlineBlock: css` - display: inline-block; ; + display: inline-block; `, }); diff --git a/src/components/tool_tip/tool_tip.tsx b/src/components/tool_tip/tool_tip.tsx index 26fbcb0e84c..98e39faee29 100644 --- a/src/components/tool_tip/tool_tip.tsx +++ b/src/components/tool_tip/tool_tip.tsx @@ -322,13 +322,8 @@ export class EuiToolTip extends Component { ...rest } = this.props; - const { - arrowStyles, - id, - toolTipStyles, - visible, - calculatedPosition, - } = this.state; + const { arrowStyles, id, toolTipStyles, visible, calculatedPosition } = + this.state; const classes = classNames('euiToolTip', className); const anchorClasses = classNames(anchorClassName, anchorProps?.className); diff --git a/src/components/tour/tour_step_indicator.tsx b/src/components/tour/tour_step_indicator.tsx index 33d05da7667..3ba0f411cb0 100644 --- a/src/components/tour/tour_step_indicator.tsx +++ b/src/components/tour/tour_step_indicator.tsx @@ -24,12 +24,9 @@ export interface EuiTourStepIndicatorProps status: EuiTourStepStatus; } -export const EuiTourStepIndicator: FunctionComponent = ({ - className, - number, - status, - ...rest -}) => { +export const EuiTourStepIndicator: FunctionComponent< + EuiTourStepIndicatorProps +> = ({ className, number, status, ...rest }) => { const classes = classNames('euiTourStepIndicator', className); let indicatorIcon: ReactNode; diff --git a/src/components/tree_view/tree_view.tsx b/src/components/tree_view/tree_view.tsx index 1f40ad253c7..d1a63d53ea2 100644 --- a/src/components/tree_view/tree_view.tsx +++ b/src/components/tree_view/tree_view.tsx @@ -116,12 +116,12 @@ export class EuiTreeView extends Component { openItems: this.props.expandByDefault ? this.props.items .map(({ id, children }) => - children ? id : ((null as unknown) as string) + children ? id : (null as unknown as string) ) .filter((x) => x != null) : this.props.items .map(({ id, children, isExpanded }) => - children && isExpanded ? id : ((null as unknown) as string) + children && isExpanded ? id : (null as unknown as string) ) .filter((x) => x != null), activeItem: '', @@ -322,9 +322,8 @@ export class EuiTreeView extends Component { 'euiTreeView__node', display ? displayToClassNameMap[display] : null, { - 'euiTreeView__node--expanded': this.isNodeOpen( - node - ), + 'euiTreeView__node--expanded': + this.isNodeOpen(node), } ); diff --git a/src/global_styling/functions/logical_shorthands.ts b/src/global_styling/functions/logical_shorthands.ts index 6b004debd80..b2e1a76a364 100644 --- a/src/global_styling/functions/logical_shorthands.ts +++ b/src/global_styling/functions/logical_shorthands.ts @@ -9,7 +9,7 @@ import LOGICALS from './logicals.json'; export const { _shorthands: LOGICAL_SHORTHANDS } = LOGICALS; -export type LogicalShorthands = typeof LOGICAL_SHORTHANDS[number]; +export type LogicalShorthands = (typeof LOGICAL_SHORTHANDS)[number]; /** * Unfortunately, shorthand properties that describe boxes diff --git a/src/global_styling/functions/logicals.ts b/src/global_styling/functions/logicals.ts index 900e810ee10..f9f6800de1c 100644 --- a/src/global_styling/functions/logicals.ts +++ b/src/global_styling/functions/logicals.ts @@ -26,12 +26,12 @@ export const logicalSide = { vertical: 'block', }; export const LOGICAL_SIDES = keysOf(logicalSide); -export type LogicalSides = typeof LOGICAL_SIDES[number]; +export type LogicalSides = (typeof LOGICAL_SIDES)[number]; export const logicals = LOGICALS; const { _shorthands, ..._logicals } = LOGICALS; export const LOGICAL_PROPERTIES = keysOf(_logicals); -export type LogicalProperties = typeof LOGICAL_PROPERTIES[number]; +export type LogicalProperties = (typeof LOGICAL_PROPERTIES)[number]; /** * @@ -138,7 +138,7 @@ export const logicalText = { }; export const LOGICAL_TEXT_ALIGNMENT = keysOf(logicalText['text-align']); -export type LogicalText = typeof LOGICAL_TEXT_ALIGNMENT[number]; +export type LogicalText = (typeof LOGICAL_TEXT_ALIGNMENT)[number]; /** * diff --git a/src/global_styling/functions/size.ts b/src/global_styling/functions/size.ts index 5b3075d976b..66e6ab507d3 100644 --- a/src/global_styling/functions/size.ts +++ b/src/global_styling/functions/size.ts @@ -15,9 +15,10 @@ * @returns string - Rem unit aligned to baseline */ -export const sizeToPixel = (scale: number = 1) => ( - themeOrBase: number | { base: number; [key: string]: any } -) => { - const base = typeof themeOrBase === 'object' ? themeOrBase.base : themeOrBase; - return `${base * scale}px`; -}; +export const sizeToPixel = + (scale: number = 1) => + (themeOrBase: number | { base: number; [key: string]: any }) => { + const base = + typeof themeOrBase === 'object' ? themeOrBase.base : themeOrBase; + return `${base * scale}px`; + }; diff --git a/src/global_styling/mixins/_color.ts b/src/global_styling/mixins/_color.ts index 832cea6626f..4c2090c5e50 100644 --- a/src/global_styling/mixins/_color.ts +++ b/src/global_styling/mixins/_color.ts @@ -26,7 +26,7 @@ export const BACKGROUND_COLORS = [ 'danger', ] as const; -export type _EuiBackgroundColor = typeof BACKGROUND_COLORS[number]; +export type _EuiBackgroundColor = (typeof BACKGROUND_COLORS)[number]; export interface _EuiBackgroundColorOptions { /** * Use `opaque` for containers of unknown content. diff --git a/src/global_styling/mixins/_padding.ts b/src/global_styling/mixins/_padding.ts index ba3ccece9bd..ee2129d74cd 100644 --- a/src/global_styling/mixins/_padding.ts +++ b/src/global_styling/mixins/_padding.ts @@ -11,7 +11,7 @@ import { useEuiTheme, UseEuiTheme } from '../../services/theme'; import { logicalSide, LogicalSides } from '../functions'; export const PADDING_SIZES = ['none', 'xs', 's', 'm', 'l', 'xl'] as const; -export type EuiPaddingSize = typeof PADDING_SIZES[number]; +export type EuiPaddingSize = (typeof PADDING_SIZES)[number]; export const euiPaddingSize = ( { euiTheme }: UseEuiTheme, diff --git a/src/global_styling/variables/animations.ts b/src/global_styling/variables/animations.ts index 33445c2084b..bd98e30e365 100644 --- a/src/global_styling/variables/animations.ts +++ b/src/global_styling/variables/animations.ts @@ -33,7 +33,7 @@ export const EuiThemeAnimationSpeeds = [ 'extraSlow', ] as const; -export type _EuiThemeAnimationSpeed = typeof EuiThemeAnimationSpeeds[number]; +export type _EuiThemeAnimationSpeed = (typeof EuiThemeAnimationSpeeds)[number]; export type _EuiThemeAnimationSpeeds = Record< _EuiThemeAnimationSpeed, @@ -46,7 +46,8 @@ export type _EuiThemeAnimationSpeeds = Record< export const EuiThemeAnimationEasings = ['bounce', 'resistance'] as const; -export type _EuiThemeAnimationEasing = typeof EuiThemeAnimationEasings[number]; +export type _EuiThemeAnimationEasing = + (typeof EuiThemeAnimationEasings)[number]; export type _EuiThemeAnimationEasings = Record< _EuiThemeAnimationEasing, diff --git a/src/global_styling/variables/levels.ts b/src/global_styling/variables/levels.ts index 08bcb451c43..5b657da69a5 100644 --- a/src/global_styling/variables/levels.ts +++ b/src/global_styling/variables/levels.ts @@ -36,7 +36,7 @@ export const EuiThemeLevels = [ 'content', ] as const; -export type _EuiThemeLevel = typeof EuiThemeLevels[number]; +export type _EuiThemeLevel = (typeof EuiThemeLevels)[number]; export type _EuiThemeLevels = Record< _EuiThemeLevel, diff --git a/src/global_styling/variables/shadow.ts b/src/global_styling/variables/shadow.ts index eb2790c8ad9..7761fbdb9a0 100644 --- a/src/global_styling/variables/shadow.ts +++ b/src/global_styling/variables/shadow.ts @@ -8,22 +8,19 @@ export const EuiThemeShadowSizes = ['xs', 's', 'm', 'l', 'xl'] as const; -export type _EuiThemeShadowSize = typeof EuiThemeShadowSizes[number]; +export type _EuiThemeShadowSize = (typeof EuiThemeShadowSizes)[number]; /** * Shadow t-shirt sizes descriptions */ -export const _EuiShadowSizesDescriptions: Record< - _EuiThemeShadowSize, - string -> = { - xs: 'Very subtle shadow used on small components.', - s: 'Adds subtle depth, usually used in conjunction with a border.', - m: 'Used on small sized portalled content like popovers.', - l: 'Primary shadow used in most cases to add visible depth.', - xl: - 'Very large shadows used for large portalled style containers like modals and flyouts.', -}; +export const _EuiShadowSizesDescriptions: Record<_EuiThemeShadowSize, string> = + { + xs: 'Very subtle shadow used on small components.', + s: 'Adds subtle depth, usually used in conjunction with a border.', + m: 'Used on small sized portalled content like popovers.', + l: 'Primary shadow used in most cases to add visible depth.', + xl: 'Very large shadows used for large portalled style containers like modals and flyouts.', + }; export interface _EuiThemeShadowCustomColor { color?: string; diff --git a/src/global_styling/variables/size.ts b/src/global_styling/variables/size.ts index cd3c4fdeff6..1a725412fb2 100644 --- a/src/global_styling/variables/size.ts +++ b/src/global_styling/variables/size.ts @@ -21,6 +21,6 @@ export const EuiThemeSizes = [ 'xxxxl', ] as const; -export type _EuiThemeSize = typeof EuiThemeSizes[number]; +export type _EuiThemeSize = (typeof EuiThemeSizes)[number]; export type _EuiThemeSizes = Record<_EuiThemeSize, string>; diff --git a/src/global_styling/variables/typography.ts b/src/global_styling/variables/typography.ts index d53085b0756..dcfbd68a317 100644 --- a/src/global_styling/variables/typography.ts +++ b/src/global_styling/variables/typography.ts @@ -14,7 +14,8 @@ import { CSSProperties } from 'react'; export const EuiThemeFontSizeMeasurements = ['rem', 'px', 'em'] as const; -export type _EuiThemeFontSizeMeasurement = typeof EuiThemeFontSizeMeasurements[number]; +export type _EuiThemeFontSizeMeasurement = + (typeof EuiThemeFontSizeMeasurements)[number]; /* * Font scale @@ -31,7 +32,7 @@ export const EuiThemeFontScales = [ 'xxl', ] as const; -export type _EuiThemeFontScale = typeof EuiThemeFontScales[number]; +export type _EuiThemeFontScale = (typeof EuiThemeFontScales)[number]; export type _EuiThemeFontScales = Record<_EuiThemeFontScale, number>; @@ -80,7 +81,7 @@ export const EuiThemeFontWeights = [ 'bold', ] as const; -export type _EuiThemeFontWeight = typeof EuiThemeFontWeights[number]; +export type _EuiThemeFontWeight = (typeof EuiThemeFontWeights)[number]; export type _EuiThemeFontWeights = Record< _EuiThemeFontWeight, diff --git a/src/services/breakpoint/current_breakpoint.tsx b/src/services/breakpoint/current_breakpoint.tsx index ab60fbc933f..bae352cf422 100644 --- a/src/services/breakpoint/current_breakpoint.tsx +++ b/src/services/breakpoint/current_breakpoint.tsx @@ -26,9 +26,8 @@ import { sortMapByLargeToSmallValues } from './_sorting'; type CurrentEuiBreakpoint = _EuiThemeBreakpoint | undefined; -export const CurrentEuiBreakpointContext = createContext( - undefined -); +export const CurrentEuiBreakpointContext = + createContext(undefined); /** * Top level provider (nested within EuiProvider) which provides a single @@ -55,11 +54,12 @@ export const CurrentEuiBreakpointProvider: FunctionComponent = ({ [sortedBreakpoints] ); - const [currentBreakpoint, setCurrentBreakpoint] = useState< - CurrentEuiBreakpoint - >( - typeof window !== 'undefined' ? getBreakpoint(window.innerWidth) : undefined - ); + const [currentBreakpoint, setCurrentBreakpoint] = + useState( + typeof window !== 'undefined' + ? getBreakpoint(window.innerWidth) + : undefined + ); useEffect(() => { const onWindowResize = throttle(() => { diff --git a/src/services/color/color_palette.ts b/src/services/color/color_palette.ts index 8bc5fce177c..1f8927d4d92 100644 --- a/src/services/color/color_palette.ts +++ b/src/services/color/color_palette.ts @@ -89,8 +89,7 @@ export function colorPalette( const stepsLeft = createSteps(hexStart, numColorsLeft); const stepsRight = createSteps(hexEnd, numColorsRight); - return (even && diverging - ? stepsLeft.slice(0, stepsLeft.length - 1) - : stepsLeft + return ( + even && diverging ? stepsLeft.slice(0, stepsLeft.length - 1) : stepsLeft ).concat(stepsRight.slice(1)); } diff --git a/src/services/color/contrast.ts b/src/services/color/contrast.ts index 13d70e5b8b9..fdbba983a5e 100644 --- a/src/services/color/contrast.ts +++ b/src/services/color/contrast.ts @@ -19,67 +19,71 @@ export const wcagContrastMin = 4.5; // WCAG AA minimum contrast ratio for normal * * * @param themeOrBackground - Color to use as the contrast basis or just pass EuiTheme */ -export const makeHighContrastColor = (_foreground: string, ratio = 4.85) => ( - themeOrBackground: - | string - | { - colors: { body: string }; - [key: string]: any; - } -) => { - const foreground = (typeof themeOrBackground === 'object' - ? getOn(themeOrBackground, _foreground) ?? _foreground - : _foreground) as string; - const background = - typeof themeOrBackground === 'object' - ? themeOrBackground.colors.body - : themeOrBackground; +export const makeHighContrastColor = + (_foreground: string, ratio = 4.85) => + ( + themeOrBackground: + | string + | { + colors: { body: string }; + [key: string]: any; + } + ) => { + const foreground = ( + typeof themeOrBackground === 'object' + ? getOn(themeOrBackground, _foreground) ?? _foreground + : _foreground + ) as string; + const background = + typeof themeOrBackground === 'object' + ? themeOrBackground.colors.body + : themeOrBackground; - if (chroma(foreground).alpha() < 1 || chroma(background).alpha() < 1) { - console.warn( - `Contrast cannot be accurately calculated when colors have alpha channel opacity. Make sure the provided foreground and background colors have no transparency: + if (chroma(foreground).alpha() < 1 || chroma(background).alpha() < 1) { + console.warn( + `Contrast cannot be accurately calculated when colors have alpha channel opacity. Make sure the provided foreground and background colors have no transparency: Foreground: ${foreground} Background: ${background}` - ); - } + ); + } - let contrast = chroma.contrast(foreground, background); + let contrast = chroma.contrast(foreground, background); - // Determine the lightness factor of the background color first to - // determine whether to shade or tint the foreground. - const brightness = getLightness(background); + // Determine the lightness factor of the background color first to + // determine whether to shade or tint the foreground. + const brightness = getLightness(background); - let highContrastTextColor = foreground; + let highContrastTextColor = foreground; - while (contrast < ratio) { - if (brightness > 50) { - highContrastTextColor = shade(highContrastTextColor, 0.05); - } else { - highContrastTextColor = tint(highContrastTextColor, 0.05); - } + while (contrast < ratio) { + if (brightness > 50) { + highContrastTextColor = shade(highContrastTextColor, 0.05); + } else { + highContrastTextColor = tint(highContrastTextColor, 0.05); + } - contrast = chroma.contrast(highContrastTextColor, background); + contrast = chroma.contrast(highContrastTextColor, background); - const lightness = getLightness(highContrastTextColor); + const lightness = getLightness(highContrastTextColor); - if (lightness < 5) { - console.warn( - 'High enough contrast could not be determined. Most likely your background color does not adjust for light mode.' - ); - return highContrastTextColor; - } + if (lightness < 5) { + console.warn( + 'High enough contrast could not be determined. Most likely your background color does not adjust for light mode.' + ); + return highContrastTextColor; + } - if (lightness > 95) { - console.warn( - 'High enough contrast could not be determined. Most likely your background color does not adjust for dark mode.' - ); - return highContrastTextColor; + if (lightness > 95) { + console.warn( + 'High enough contrast could not be determined. Most likely your background color does not adjust for dark mode.' + ); + return highContrastTextColor; + } } - } - return chroma(highContrastTextColor).hex(); -}; + return chroma(highContrastTextColor).hex(); + }; /** * Creates a new color with increased contrast @@ -89,11 +93,14 @@ Background: ${background}` * * * @param themeOrBackground - Color to use as the contrast basis */ -export const makeDisabledContrastColor = (color: string, ratio = 2) => ( - themeOrBackground: - | string - | { - colors: { body: string }; - [key: string]: any; - } -) => makeHighContrastColor(color, ratio)(themeOrBackground); +export const makeDisabledContrastColor = + (color: string, ratio = 2) => + ( + themeOrBackground: + | string + | { + colors: { body: string }; + [key: string]: any; + } + ) => + makeHighContrastColor(color, ratio)(themeOrBackground); diff --git a/src/services/popover/popover_positioning.test.ts b/src/services/popover/popover_positioning.test.ts index 26c1880ac7e..bae2c9d40ec 100644 --- a/src/services/popover/popover_positioning.test.ts +++ b/src/services/popover/popover_positioning.test.ts @@ -47,11 +47,12 @@ describe('popover_positioning', () => { beforeEach( () => (HTMLElement.prototype.getBoundingClientRect = () => - (clientRect as unknown) as DOMRect) + clientRect as unknown as DOMRect) ); afterEach( () => - (HTMLElement.prototype.getBoundingClientRect = origGetBoundingClientRect) + (HTMLElement.prototype.getBoundingClientRect = + origGetBoundingClientRect) ); it('returns a new JavaScript object with correct values', () => { @@ -468,15 +469,15 @@ describe('popover_positioning', () => { it('finds space in the requested position', () => { const anchor = document.createElement('div'); anchor.getBoundingClientRect = () => - (makeBB(100, 150, 120, 50) as unknown) as DOMRect; + makeBB(100, 150, 120, 50) as unknown as DOMRect; const popover = document.createElement('div'); popover.getBoundingClientRect = () => - (makeBB(0, 30, 50, 0) as unknown) as DOMRect; + makeBB(0, 30, 50, 0) as unknown as DOMRect; const container = document.createElement('div'); container.getBoundingClientRect = () => - (makeBB(0, 1024, 768, 0) as unknown) as DOMRect; + makeBB(0, 1024, 768, 0) as unknown as DOMRect; expect( findPopoverPosition({ @@ -499,16 +500,16 @@ describe('popover_positioning', () => { it('finds space in the requested position', () => { const anchor = document.createElement('div'); anchor.getBoundingClientRect = () => - (makeBB(100, 150, 120, 50) as unknown) as DOMRect; + makeBB(100, 150, 120, 50) as unknown as DOMRect; const popover = document.createElement('div'); popover.getBoundingClientRect = () => - (makeBB(0, 30, 50, 0) as unknown) as DOMRect; + makeBB(0, 30, 50, 0) as unknown as DOMRect; // give the container limited space on both left and top, forcing to bottom-right const container = document.createElement('div'); container.getBoundingClientRect = () => - (makeBB(50, 300, 768, 30) as unknown) as DOMRect; + makeBB(50, 300, 768, 30) as unknown as DOMRect; expect( findPopoverPosition({ @@ -531,16 +532,16 @@ describe('popover_positioning', () => { it('finds space in the requested position', () => { const anchor = document.createElement('div'); anchor.getBoundingClientRect = () => - (makeBB(100, 150, 120, 50) as unknown) as DOMRect; + makeBB(100, 150, 120, 50) as unknown as DOMRect; const popover = document.createElement('div'); popover.getBoundingClientRect = () => - (makeBB(0, 30, 50, 0) as unknown) as DOMRect; + makeBB(0, 30, 50, 0) as unknown as DOMRect; // give the container limited space on both left and right, forcing to top const container = document.createElement('div'); container.getBoundingClientRect = () => - (makeBB(0, 160, 768, 40) as unknown) as DOMRect; + makeBB(0, 160, 768, 40) as unknown as DOMRect; expect( findPopoverPosition({ @@ -561,16 +562,16 @@ describe('popover_positioning', () => { it('ignores any specified alignment', () => { const anchor = document.createElement('div'); anchor.getBoundingClientRect = () => - (makeBB(100, 150, 120, 50) as unknown) as DOMRect; + makeBB(100, 150, 120, 50) as unknown as DOMRect; const popover = document.createElement('div'); popover.getBoundingClientRect = () => - (makeBB(0, 30, 50, 0) as unknown) as DOMRect; + makeBB(0, 30, 50, 0) as unknown as DOMRect; // give the container limited space on both left and right, forcing to top const container = document.createElement('div'); container.getBoundingClientRect = () => - (makeBB(0, 160, 768, 40) as unknown) as DOMRect; + makeBB(0, 160, 768, 40) as unknown as DOMRect; expect( findPopoverPosition({ @@ -592,16 +593,16 @@ describe('popover_positioning', () => { it('respects forcePosition value', () => { const anchor = document.createElement('div'); anchor.getBoundingClientRect = () => - (makeBB(100, 150, 120, 50) as unknown) as DOMRect; + makeBB(100, 150, 120, 50) as unknown as DOMRect; const popover = document.createElement('div'); popover.getBoundingClientRect = () => - (makeBB(0, 30, 50, 0) as unknown) as DOMRect; + makeBB(0, 30, 50, 0) as unknown as DOMRect; // give the container limited space on both left and right, forcing to top const container = document.createElement('div'); container.getBoundingClientRect = () => - (makeBB(0, 160, 768, 40) as unknown) as DOMRect; + makeBB(0, 160, 768, 40) as unknown as DOMRect; expect( findPopoverPosition({ @@ -625,16 +626,16 @@ describe('popover_positioning', () => { it('finds space in the requested position', () => { const anchor = document.createElement('div'); anchor.getBoundingClientRect = () => - (makeBB(100, 150, 120, 50) as unknown) as DOMRect; + makeBB(100, 150, 120, 50) as unknown as DOMRect; const popover = document.createElement('div'); popover.getBoundingClientRect = () => - (makeBB(0, 30, 50, 0) as unknown) as DOMRect; + makeBB(0, 30, 50, 0) as unknown as DOMRect; // give the container limited space on both left, right, and top, forcing to bottom const container = document.createElement('div'); container.getBoundingClientRect = () => - (makeBB(100, 160, 768, 40) as unknown) as DOMRect; + makeBB(100, 160, 768, 40) as unknown as DOMRect; expect( findPopoverPosition({ @@ -662,15 +663,15 @@ describe('popover_positioning', () => { const anchor = document.createElement('div'); anchor.getBoundingClientRect = () => - (makeBB(100, 150, 120, 50) as unknown) as DOMRect; + makeBB(100, 150, 120, 50) as unknown as DOMRect; const popover = document.createElement('div'); popover.getBoundingClientRect = () => - (makeBB(0, 30, 50, 0) as unknown) as DOMRect; + makeBB(0, 30, 50, 0) as unknown as DOMRect; const container = document.createElement('div'); container.getBoundingClientRect = () => - (makeBB(0, 1024, 768, 0) as unknown) as DOMRect; + makeBB(0, 1024, 768, 0) as unknown as DOMRect; expect( findPopoverPosition({ @@ -693,15 +694,15 @@ describe('popover_positioning', () => { it('forces the popover to stay on the primary axis', () => { const anchor = document.createElement('div'); anchor.getBoundingClientRect = () => - (makeBB(450, 150, 550, 50) as unknown) as DOMRect; + makeBB(450, 150, 550, 50) as unknown as DOMRect; const popover = document.createElement('div'); popover.getBoundingClientRect = () => - (makeBB(0, 30, 100, 0) as unknown) as DOMRect; + makeBB(0, 30, 100, 0) as unknown as DOMRect; const container = document.createElement('div'); container.getBoundingClientRect = () => - (makeBB(400, 1024, 600, 0) as unknown) as DOMRect; + makeBB(400, 1024, 600, 0) as unknown as DOMRect; expect( findPopoverPosition({ @@ -723,11 +724,11 @@ describe('popover_positioning', () => { it('returns anchorBoundingBox if param is specified', () => { const anchor = document.createElement('div'); anchor.getBoundingClientRect = () => - (makeBB(100, 150, 120, 50) as unknown) as DOMRect; + makeBB(100, 150, 120, 50) as unknown as DOMRect; const popover = document.createElement('div'); popover.getBoundingClientRect = () => - (makeBB(0, 30, 50, 0) as unknown) as DOMRect; + makeBB(0, 30, 50, 0) as unknown as DOMRect; expect( findPopoverPosition({ diff --git a/src/services/popover/popover_positioning.ts b/src/services/popover/popover_positioning.ts index 6d719d6bbac..8cc1a131600 100644 --- a/src/services/popover/popover_positioning.ts +++ b/src/services/popover/popover_positioning.ts @@ -338,9 +338,8 @@ export function getPopoverScreenCoordinates({ const crossAxisSecondSide = positionComplements[crossAxisFirstSide]; // "left" -> "right" const crossAxisDimension = relatedDimension[crossAxisFirstSide]; // "left" -> "width" - const [topBuffer, rightBuffer, bottomBuffer, leftBuffer] = getBufferValues( - buffer - ); + const [topBuffer, rightBuffer, bottomBuffer, leftBuffer] = + getBufferValues(buffer); const { crossAxisPosition, crossAxisArrowPosition } = getCrossAxisPosition({ crossAxisFirstSide, @@ -361,16 +360,14 @@ export function getPopoverScreenCoordinates({ const primaryAxisPositionName = dimensionPositionAttribute[primaryAxisDimension]; // "height" -> "top" - const { - primaryAxisPosition, - primaryAxisArrowPosition, - } = getPrimaryAxisPosition({ - position, - offset, - popoverBoundingBox, - anchorBoundingBox, - arrowConfig, - }); + const { primaryAxisPosition, primaryAxisArrowPosition } = + getPrimaryAxisPosition({ + position, + offset, + popoverBoundingBox, + anchorBoundingBox, + arrowConfig, + }); const popoverPlacement = { [crossAxisFirstSide]: crossAxisPosition, @@ -645,9 +642,8 @@ export function getAvailableSpace( offset: number, offsetSide: EuiPopoverPosition ): BoundingBox { - const [topBuffer, rightBuffer, bottomBuffer, leftBuffer] = getBufferValues( - buffer - ); + const [topBuffer, rightBuffer, bottomBuffer, leftBuffer] = + getBufferValues(buffer); return { top: anchorBoundingBox.top - diff --git a/src/services/sort/sortable_properties.ts b/src/services/sort/sortable_properties.ts index a96f4ab852a..9c07e4998af 100644 --- a/src/services/sort/sortable_properties.ts +++ b/src/services/sort/sortable_properties.ts @@ -128,7 +128,7 @@ export class SortableProperties { * Flips the current sorted property sort order. */ flipCurrentSortOrder() { - this.currentSortedProperty.isAscending = !this.currentSortedProperty - .isAscending; + this.currentSortedProperty.isAscending = + !this.currentSortedProperty.isAscending; } } diff --git a/src/services/theme/context.ts b/src/services/theme/context.ts index 75baebdc564..fe50cda7ea1 100644 --- a/src/services/theme/context.ts +++ b/src/services/theme/context.ts @@ -17,21 +17,18 @@ import { import { EuiThemeAmsterdam } from '../../themes/amsterdam/theme'; import { DEFAULT_COLOR_MODE, getComputed } from './utils'; -export const EuiSystemContext = createContext( - EuiThemeAmsterdam -); +export const EuiSystemContext = + createContext(EuiThemeAmsterdam); export const EuiModificationsContext = createContext({}); -export const EuiColorModeContext = createContext( - DEFAULT_COLOR_MODE -); +export const EuiColorModeContext = + createContext(DEFAULT_COLOR_MODE); export const defaultComputedTheme = getComputed( EuiThemeAmsterdam, {}, DEFAULT_COLOR_MODE ); -export const EuiThemeContext = createContext( - defaultComputedTheme -); +export const EuiThemeContext = + createContext(defaultComputedTheme); export const EuiNestedThemeContext = createContext({ isGlobalTheme: true, hasDifferentColorFromGlobalTheme: false, diff --git a/src/services/theme/utils.test.ts b/src/services/theme/utils.test.ts index 67eeb7639b6..c654e4d3c22 100644 --- a/src/services/theme/utils.test.ts +++ b/src/services/theme/utils.test.ts @@ -235,9 +235,10 @@ describe('getComputed', () => { { colors: { LIGHT: { - tertiary: computed(([primary]) => `${primary}333`, [ - 'colors.primary', - ]), + tertiary: computed( + ([primary]) => `${primary}333`, + ['colors.primary'] + ), }, }, }, diff --git a/src/test/find_test_subject.ts b/src/test/find_test_subject.ts index bc9254adc1a..3bc709762fa 100644 --- a/src/test/find_test_subject.ts +++ b/src/test/find_test_subject.ts @@ -30,7 +30,7 @@ const MATCHERS = [ type FindTestSubject = ( mountedComponent: T, testSubjectSelector: string, - matcher?: typeof MATCHERS[number] + matcher?: (typeof MATCHERS)[number] ) => ReturnType; export const findTestSubject: FindTestSubject< diff --git a/src/themes/amsterdam/global_styling/mixins/button.ts b/src/themes/amsterdam/global_styling/mixins/button.ts index 6779410a516..2b15048f1be 100644 --- a/src/themes/amsterdam/global_styling/mixins/button.ts +++ b/src/themes/amsterdam/global_styling/mixins/button.ts @@ -28,7 +28,7 @@ export const BUTTON_COLORS = [ 'danger', ] as const; -export type _EuiButtonColor = typeof BUTTON_COLORS[number]; +export type _EuiButtonColor = (typeof BUTTON_COLORS)[number]; export type _EuiButtonDisplay = 'base' | 'fill' | 'empty'; export interface _EuiButtonOptions { diff --git a/src/themes/amsterdam/global_styling/variables/_borders.ts b/src/themes/amsterdam/global_styling/variables/_borders.ts index b4ac283099b..6d04e95cb80 100644 --- a/src/themes/amsterdam/global_styling/variables/_borders.ts +++ b/src/themes/amsterdam/global_styling/variables/_borders.ts @@ -21,16 +21,16 @@ export const border: _EuiThemeBorder = { medium: computed(sizeToPixel(0.375)), small: computed(sizeToPixel(0.25)), }, - thin: computed(([width, color]) => `${width.thin} solid ${color}`, [ - 'border.width', - 'border.color', - ]), - thick: computed(([width, color]) => `${width.thick} solid ${color}`, [ - 'border.width', - 'border.color', - ]), - editable: computed(([width, color]) => `${width.thick} dotted ${color}`, [ - 'border.width', - 'border.color', - ]), + thin: computed( + ([width, color]) => `${width.thin} solid ${color}`, + ['border.width', 'border.color'] + ), + thick: computed( + ([width, color]) => `${width.thick} solid ${color}`, + ['border.width', 'border.color'] + ), + editable: computed( + ([width, color]) => `${width.thick} dotted ${color}`, + ['border.width', 'border.color'] + ), }; diff --git a/src/themes/amsterdam/global_styling/variables/_colors.ts b/src/themes/amsterdam/global_styling/variables/_colors.ts index f4b2e8dd222..aa86e3f1ee6 100644 --- a/src/themes/amsterdam/global_styling/variables/_colors.ts +++ b/src/themes/amsterdam/global_styling/variables/_colors.ts @@ -54,9 +54,10 @@ export const shade_colors: _EuiThemeShadeColors = { }; export const special_colors: _EuiThemeSpecialColors = { - body: computed(([lightestShade]) => tint(lightestShade, 0.4), [ - 'colors.lightestShade', - ]), + body: computed( + ([lightestShade]) => tint(lightestShade, 0.4), + ['colors.lightestShade'] + ), highlight: computed(([warning]) => tint(warning, 0.9), ['colors.warning']), disabled: '#ABB4C4', disabledText: computed(makeDisabledContrastColor('colors.disabled')), @@ -105,9 +106,10 @@ export const dark_colors_ams: _EuiThemeColorsMode = { ...dark_shades, // Special - body: computed(([lightestShade]) => shade(lightestShade, 0.45), [ - 'colors.lightestShade', - ]), + body: computed( + ([lightestShade]) => shade(lightestShade, 0.45), + ['colors.lightestShade'] + ), highlight: '#2E2D25', disabled: '#515761', disabledText: computed(makeDisabledContrastColor('colors.disabled')), diff --git a/yarn.lock b/yarn.lock index b9b6f774642..96c010b55b4 100644 --- a/yarn.lock +++ b/yarn.lock @@ -296,7 +296,7 @@ chalk "^2.0.0" js-tokens "^4.0.0" -"@babel/parser@^7.0.0", "@babel/parser@^7.1.0", "@babel/parser@^7.20.7", "@babel/parser@^7.21.3", "@babel/parser@^7.4.3", "@babel/parser@^7.6.0", "@babel/parser@^7.7.0": +"@babel/parser@^7.0.0", "@babel/parser@^7.1.0", "@babel/parser@^7.20.7", "@babel/parser@^7.21.3", "@babel/parser@^7.4.3", "@babel/parser@^7.6.0": version "7.21.3" resolved "https://registry.yarnpkg.com/@babel/parser/-/parser-7.21.3.tgz#1d285d67a19162ff9daa358d4cb41d50c06220b3" integrity sha512-lobG0d7aOfQRXh8AyklEAgZGvA4FShxo6xQbUrrT/cNBPUdIDojlokwJsQyCC/eKia7ifqM0yP+2DRZ4WKw2RQ== @@ -1005,20 +1005,12 @@ core-js "^2.6.5" regenerator-runtime "^0.13.2" -"@babel/runtime-corejs3@^7.10.2": - version "7.11.2" - resolved "https://registry.yarnpkg.com/@babel/runtime-corejs3/-/runtime-corejs3-7.11.2.tgz#02c3029743150188edeb66541195f54600278419" - integrity sha512-qh5IR+8VgFz83VBa6OkaET6uN/mJOhHONuy3m1sgF0CV6mXdPSEBdA7e1eUbVvyNtANjMbg22JUv71BaDXLY6A== +"@babel/runtime@^7.0.0", "@babel/runtime@^7.1.2", "@babel/runtime@^7.12.13", "@babel/runtime@^7.12.5", "@babel/runtime@^7.15.4", "@babel/runtime@^7.18.3", "@babel/runtime@^7.20.7", "@babel/runtime@^7.5.5", "@babel/runtime@^7.8.4", "@babel/runtime@^7.9.2": + version "7.21.5" + resolved "https://registry.yarnpkg.com/@babel/runtime/-/runtime-7.21.5.tgz#8492dddda9644ae3bda3b45eabe87382caee7200" + integrity sha512-8jI69toZqqcsnqGGqwGS4Qb1VwLOEp4hz+CXPywcvjs60u3B4Pom/U/7rm4W8tMOYEB+E9wgD0mW1l3r8qlI9Q== dependencies: - core-js-pure "^3.0.0" - regenerator-runtime "^0.13.4" - -"@babel/runtime@^7.0.0", "@babel/runtime@^7.1.2", "@babel/runtime@^7.10.2", "@babel/runtime@^7.12.13", "@babel/runtime@^7.12.5", "@babel/runtime@^7.15.4", "@babel/runtime@^7.16.3", "@babel/runtime@^7.18.3", "@babel/runtime@^7.5.5", "@babel/runtime@^7.8.4", "@babel/runtime@^7.9.2": - version "7.19.0" - resolved "https://registry.yarnpkg.com/@babel/runtime/-/runtime-7.19.0.tgz#22b11c037b094d27a8a2504ea4dcff00f50e2259" - integrity sha512-eR8Lo9hnDS7tqkO7NsV+mKvCmv5boaXFSZ70DnfhcgiEne8hv9oCEd36Klw74EtizEqLsy4YnW8UWwpBVolHZA== - dependencies: - regenerator-runtime "^0.13.4" + regenerator-runtime "^0.13.11" "@babel/template@^7.12.13", "@babel/template@^7.18.10", "@babel/template@^7.20.7", "@babel/template@^7.4.0": version "7.20.7" @@ -1029,7 +1021,7 @@ "@babel/parser" "^7.20.7" "@babel/types" "^7.20.7" -"@babel/traverse@^7.1.0", "@babel/traverse@^7.13.0", "@babel/traverse@^7.20.5", "@babel/traverse@^7.20.7", "@babel/traverse@^7.21.0", "@babel/traverse@^7.21.2", "@babel/traverse@^7.21.3", "@babel/traverse@^7.4.3", "@babel/traverse@^7.7.0": +"@babel/traverse@^7.1.0", "@babel/traverse@^7.13.0", "@babel/traverse@^7.20.5", "@babel/traverse@^7.20.7", "@babel/traverse@^7.21.0", "@babel/traverse@^7.21.2", "@babel/traverse@^7.21.3", "@babel/traverse@^7.4.3": version "7.21.3" resolved "https://registry.yarnpkg.com/@babel/traverse/-/traverse-7.21.3.tgz#4747c5e7903d224be71f90788b06798331896f67" integrity sha512-XLyopNeaTancVitYZe2MlUEvgKb6YVVPXzofHgqHijCImG33b/uTurMS488ht/Hbsb2XK3U2BnSTxKVNGV3nGQ== @@ -1045,7 +1037,7 @@ debug "^4.1.0" globals "^11.1.0" -"@babel/types@^7.0.0", "@babel/types@^7.12.6", "@babel/types@^7.13.0", "@babel/types@^7.18.6", "@babel/types@^7.18.9", "@babel/types@^7.19.0", "@babel/types@^7.20.0", "@babel/types@^7.20.2", "@babel/types@^7.20.5", "@babel/types@^7.20.7", "@babel/types@^7.21.0", "@babel/types@^7.21.2", "@babel/types@^7.21.3", "@babel/types@^7.3.0", "@babel/types@^7.4.0", "@babel/types@^7.4.4", "@babel/types@^7.7.0": +"@babel/types@^7.0.0", "@babel/types@^7.12.6", "@babel/types@^7.13.0", "@babel/types@^7.18.6", "@babel/types@^7.18.9", "@babel/types@^7.19.0", "@babel/types@^7.20.0", "@babel/types@^7.20.2", "@babel/types@^7.20.5", "@babel/types@^7.20.7", "@babel/types@^7.21.0", "@babel/types@^7.21.2", "@babel/types@^7.21.3", "@babel/types@^7.3.0", "@babel/types@^7.4.0", "@babel/types@^7.4.4": version "7.21.3" resolved "https://registry.yarnpkg.com/@babel/types/-/types-7.21.3.tgz#4865a5357ce40f64e3400b0f3b737dc6d4f64d05" integrity sha512-sBGdETxC+/M4o/zKC0sl6sjWv62WFR/uzxrJ6uYyMLZOUlPnwzw0tKgVHOXxaAd5l2g8pEDM5RZ495GPQI77kg== @@ -1330,22 +1322,38 @@ resolved "https://registry.yarnpkg.com/@emotion/weak-memoize/-/weak-memoize-0.3.1.tgz#d0fce5d07b0620caa282b5131c297bb60f9d87e6" integrity sha512-EsBwpc7hBUJWAsNPBmJy4hxWx12v6bshQsldrVmjxJoc3isbxhOrF2IcCpaXxfvq03NwkI7sbsOLXbYuqF/8Ww== -"@eslint/eslintrc@^0.1.3": - version "0.1.3" - resolved "https://registry.yarnpkg.com/@eslint/eslintrc/-/eslintrc-0.1.3.tgz#7d1a2b2358552cc04834c0979bd4275362e37085" - integrity sha512-4YVwPkANLeNtRjMekzux1ci8hIaH5eGKktGqR0d3LWsKNn5B2X/1Z6Trxy7jQXl9EBGE6Yj02O+t09FMeRllaA== +"@eslint-community/eslint-utils@^4.2.0": + version "4.4.0" + resolved "https://registry.yarnpkg.com/@eslint-community/eslint-utils/-/eslint-utils-4.4.0.tgz#a23514e8fb9af1269d5f7788aa556798d61c6b59" + integrity sha512-1/sA4dwrzBAyeUoQ6oxahHKmrZvsnLCg4RfxW3ZFGGmQkSNQPFNLV9CUEFQP1x9EYXHTo5p6xdhZM1Ne9p/AfA== + dependencies: + eslint-visitor-keys "^3.3.0" + +"@eslint-community/regexpp@^4.4.0": + version "4.5.1" + resolved "https://registry.yarnpkg.com/@eslint-community/regexpp/-/regexpp-4.5.1.tgz#cdd35dce4fa1a89a4fd42b1599eb35b3af408884" + integrity sha512-Z5ba73P98O1KUYCCJTUeVpja9RcGoMdncZ6T49FCUl2lN38JtCJ+3WgIDBv0AuY4WChU5PmtJmOCTlN6FZTFKQ== + +"@eslint/eslintrc@^2.0.3": + version "2.0.3" + resolved "https://registry.yarnpkg.com/@eslint/eslintrc/-/eslintrc-2.0.3.tgz#4910db5505f4d503f27774bf356e3704818a0331" + integrity sha512-+5gy6OQfk+xx3q0d6jGZZC3f3KzAkXc/IanVxd1is/VIIziRqqt3ongQz0FiTUXqTk0c7aDB3OaFuKnuSoJicQ== dependencies: ajv "^6.12.4" - debug "^4.1.1" - espree "^7.3.0" - globals "^12.1.0" - ignore "^4.0.6" + debug "^4.3.2" + espree "^9.5.2" + globals "^13.19.0" + ignore "^5.2.0" import-fresh "^3.2.1" - js-yaml "^3.13.1" - lodash "^4.17.19" - minimatch "^3.0.4" + js-yaml "^4.1.0" + minimatch "^3.1.2" strip-json-comments "^3.1.1" +"@eslint/js@8.41.0": + version "8.41.0" + resolved "https://registry.yarnpkg.com/@eslint/js/-/js-8.41.0.tgz#080321c3b68253522f7646b55b577dd99d2950b3" + integrity sha512-LxcyMGxwmTh2lY9FwHPGWOHmYFCZvbrFCBZL4FzSSsxsRPuhrYUg/49/0KDfW8tnIEaEHtfmn6+NPN+1DqaNmA== + "@faker-js/faker@^7.6.0": version "7.6.0" resolved "https://registry.yarnpkg.com/@faker-js/faker/-/faker-7.6.0.tgz#9ea331766084288634a9247fcd8b84f16ff4ba07" @@ -1390,6 +1398,25 @@ dependencies: "@hapi/hoek" "^9.0.0" +"@humanwhocodes/config-array@^0.11.8": + version "0.11.8" + resolved "https://registry.yarnpkg.com/@humanwhocodes/config-array/-/config-array-0.11.8.tgz#03595ac2075a4dc0f191cc2131de14fbd7d410b9" + integrity sha512-UybHIJzJnR5Qc/MsD9Kr+RpO2h+/P1GhOwdiLPXK5TWk5sgTdu88bTD9UP+CKbPPh5Rni1u0GjAdYQLemG8g+g== + dependencies: + "@humanwhocodes/object-schema" "^1.2.1" + debug "^4.1.1" + minimatch "^3.0.5" + +"@humanwhocodes/module-importer@^1.0.1": + version "1.0.1" + resolved "https://registry.yarnpkg.com/@humanwhocodes/module-importer/-/module-importer-1.0.1.tgz#af5b2691a22b44be847b0ca81641c5fb6ad0172c" + integrity sha512-bxveV4V8v5Yb4ncFTT3rPSgZBOpCkjfK0y4oVVVJwIuDVBRMDXrPyXRL988i5ap9m9bnyEEjWfm5WkBmtffLfA== + +"@humanwhocodes/object-schema@^1.2.1": + version "1.2.1" + resolved "https://registry.yarnpkg.com/@humanwhocodes/object-schema/-/object-schema-1.2.1.tgz#b520529ec21d8e5945a1851dfd1c32e94e39ff45" + integrity sha512-ZnQMnLV4e7hDlUvw8H+U8ASL02SS2Gn6+9Ac3wGGLIe7+je2AeAOxPY+izIPJDfFDb7eDjev0Us8MO1iFRN8hA== + "@iarna/toml@2.2.3": version "2.2.3" resolved "https://registry.yarnpkg.com/@iarna/toml/-/toml-2.2.3.tgz#f060bf6eaafae4d56a7dac618980838b0696e2ab" @@ -1707,11 +1734,24 @@ "@nodelib/fs.stat" "2.0.3" run-parallel "^1.1.9" -"@nodelib/fs.stat@2.0.3", "@nodelib/fs.stat@^2.0.2": +"@nodelib/fs.scandir@2.1.5": + version "2.1.5" + resolved "https://registry.yarnpkg.com/@nodelib/fs.scandir/-/fs.scandir-2.1.5.tgz#7619c2eb21b25483f6d167548b4cfd5a7488c3d5" + integrity sha512-vq24Bq3ym5HEQm2NKCr3yXDwjc7vTsEThRDnkp2DK9p1uqLR+DHurm/NOTo0KG7HYHU7eppKZj3MyqYuMBf62g== + dependencies: + "@nodelib/fs.stat" "2.0.5" + run-parallel "^1.1.9" + +"@nodelib/fs.stat@2.0.3": version "2.0.3" resolved "https://registry.yarnpkg.com/@nodelib/fs.stat/-/fs.stat-2.0.3.tgz#34dc5f4cabbc720f4e60f75a747e7ecd6c175bd3" integrity sha512-bQBFruR2TAwoevBEd/NWMoAAtNGzTRgdrqnYCc7dhzfoNvqPzLyqlEQnzZ3kVnNrSp25iyxE00/3h2fqGAGArA== +"@nodelib/fs.stat@2.0.5", "@nodelib/fs.stat@^2.0.2": + version "2.0.5" + resolved "https://registry.yarnpkg.com/@nodelib/fs.stat/-/fs.stat-2.0.5.tgz#5bd262af94e9d25bd1e71b05deed44876a222e8b" + integrity sha512-RkhPPp2zrqDAQA/2jNhnztcPAlv64XdhIp7a7454A5ovI7Bukxgt7MX7udwAu3zg1DcpPU0rz3VV1SeaqvY4+A== + "@nodelib/fs.stat@^1.1.2": version "1.1.3" resolved "https://registry.yarnpkg.com/@nodelib/fs.stat/-/fs.stat-1.1.3.tgz#2b5a3ab3f918cca48a8c754c08168e3f03eba61b" @@ -1725,6 +1765,14 @@ "@nodelib/fs.scandir" "2.1.3" fastq "^1.6.0" +"@nodelib/fs.walk@^1.2.8": + version "1.2.8" + resolved "https://registry.yarnpkg.com/@nodelib/fs.walk/-/fs.walk-1.2.8.tgz#e95737e8bb6746ddedf69c556953494f196fe69a" + integrity sha512-oGB+UxlgWcgQkgwo8GcEGwemoTFt3FIO9ababBmaGwXIoBKZ+GTy0pP185beGg7Llih/NSHSV2XAs1lnznocSg== + dependencies: + "@nodelib/fs.scandir" "2.1.5" + fastq "^1.6.0" + "@npmcli/arborist@^4.0.4": version "4.3.1" resolved "https://registry.yarnpkg.com/@npmcli/arborist/-/arborist-4.3.1.tgz#a08cddce3339882f688c1dea1651f6971e781c44" @@ -2532,6 +2580,11 @@ resolved "https://registry.yarnpkg.com/@types/scheduler/-/scheduler-0.16.2.tgz#1a62f89525723dde24ba1b01b092bf5df8ad4d39" integrity sha512-hppQEBDmlwhFAXKJX2KnWLYu5yMfi91yazPb2l+lbJiwW+wdo1gNeRA+3RgNSO39WYX2euey41KEwnqesU2Jew== +"@types/semver@^7.3.12": + version "7.5.0" + resolved "https://registry.yarnpkg.com/@types/semver/-/semver-7.5.0.tgz#591c1ce3a702c45ee15f47a42ade72c2fd78978a" + integrity sha512-G8hZ6XJiHnuhQKR7ZmysCeJWE08o8T0AXtk5darsCaTVsYZhhgUrq53jizaR2FvsoeCwJhlmwTjkXBY5Pn/ZHw== + "@types/serve-index@^1.9.1": version "1.9.1" resolved "https://registry.yarnpkg.com/@types/serve-index/-/serve-index-1.9.1.tgz#1b5e85370a192c01ec6cec4735cf2917337a6278" @@ -2642,19 +2695,20 @@ dependencies: "@types/node" "*" -"@typescript-eslint/eslint-plugin@^5.10.2": - version "5.10.2" - resolved "https://registry.yarnpkg.com/@typescript-eslint/eslint-plugin/-/eslint-plugin-5.10.2.tgz#f8c1d59fc37bd6d9d11c97267fdfe722c4777152" - integrity sha512-4W/9lLuE+v27O/oe7hXJKjNtBLnZE8tQAFpapdxwSVHqtmIoPB1gph3+ahNwVuNL37BX7YQHyGF9Xv6XCnIX2Q== +"@typescript-eslint/eslint-plugin@^5.59.7": + version "5.59.7" + resolved "https://registry.yarnpkg.com/@typescript-eslint/eslint-plugin/-/eslint-plugin-5.59.7.tgz#e470af414f05ecfdc05a23e9ce6ec8f91db56fe2" + integrity sha512-BL+jYxUFIbuYwy+4fF86k5vdT9lT0CNJ6HtwrIvGh0PhH8s0yy5rjaKH2fDCrz5ITHy07WCzVGNvAmjJh4IJFA== dependencies: - "@typescript-eslint/scope-manager" "5.10.2" - "@typescript-eslint/type-utils" "5.10.2" - "@typescript-eslint/utils" "5.10.2" - debug "^4.3.2" - functional-red-black-tree "^1.0.1" - ignore "^5.1.8" - regexpp "^3.2.0" - semver "^7.3.5" + "@eslint-community/regexpp" "^4.4.0" + "@typescript-eslint/scope-manager" "5.59.7" + "@typescript-eslint/type-utils" "5.59.7" + "@typescript-eslint/utils" "5.59.7" + debug "^4.3.4" + grapheme-splitter "^1.0.4" + ignore "^5.2.0" + natural-compare-lite "^1.4.0" + semver "^7.3.7" tsutils "^3.21.0" "@typescript-eslint/experimental-utils@^4.0.1": @@ -2669,15 +2723,15 @@ eslint-scope "^5.0.0" eslint-utils "^2.0.0" -"@typescript-eslint/parser@^5.10.2": - version "5.10.2" - resolved "https://registry.yarnpkg.com/@typescript-eslint/parser/-/parser-5.10.2.tgz#b6076d27cc5499ce3f2c625f5ccde946ecb7db9a" - integrity sha512-JaNYGkaQVhP6HNF+lkdOr2cAs2wdSZBoalE22uYWq8IEv/OVH0RksSGydk+sW8cLoSeYmC+OHvRyv2i4AQ7Czg== +"@typescript-eslint/parser@^5.59.7": + version "5.59.7" + resolved "https://registry.yarnpkg.com/@typescript-eslint/parser/-/parser-5.59.7.tgz#02682554d7c1028b89aa44a48bf598db33048caa" + integrity sha512-VhpsIEuq/8i5SF+mPg9jSdIwgMBBp0z9XqjiEay+81PYLJuroN+ET1hM5IhkiYMJd9MkTz8iJLt7aaGAgzWUbQ== dependencies: - "@typescript-eslint/scope-manager" "5.10.2" - "@typescript-eslint/types" "5.10.2" - "@typescript-eslint/typescript-estree" "5.10.2" - debug "^4.3.2" + "@typescript-eslint/scope-manager" "5.59.7" + "@typescript-eslint/types" "5.59.7" + "@typescript-eslint/typescript-estree" "5.59.7" + debug "^4.3.4" "@typescript-eslint/scope-manager@4.4.0": version "4.4.0" @@ -2687,21 +2741,22 @@ "@typescript-eslint/types" "4.4.0" "@typescript-eslint/visitor-keys" "4.4.0" -"@typescript-eslint/scope-manager@5.10.2": - version "5.10.2" - resolved "https://registry.yarnpkg.com/@typescript-eslint/scope-manager/-/scope-manager-5.10.2.tgz#92c0bc935ec00f3d8638cdffb3d0e70c9b879639" - integrity sha512-39Tm6f4RoZoVUWBYr3ekS75TYgpr5Y+X0xLZxXqcZNDWZdJdYbKd3q2IR4V9y5NxxiPu/jxJ8XP7EgHiEQtFnw== +"@typescript-eslint/scope-manager@5.59.7": + version "5.59.7" + resolved "https://registry.yarnpkg.com/@typescript-eslint/scope-manager/-/scope-manager-5.59.7.tgz#0243f41f9066f3339d2f06d7f72d6c16a16769e2" + integrity sha512-FL6hkYWK9zBGdxT2wWEd2W8ocXMu3K94i3gvMrjXpx+koFYdYV7KprKfirpgY34vTGzEPPuKoERpP8kD5h7vZQ== dependencies: - "@typescript-eslint/types" "5.10.2" - "@typescript-eslint/visitor-keys" "5.10.2" + "@typescript-eslint/types" "5.59.7" + "@typescript-eslint/visitor-keys" "5.59.7" -"@typescript-eslint/type-utils@5.10.2": - version "5.10.2" - resolved "https://registry.yarnpkg.com/@typescript-eslint/type-utils/-/type-utils-5.10.2.tgz#ad5acdf98a7d2ab030bea81f17da457519101ceb" - integrity sha512-uRKSvw/Ccs5FYEoXW04Z5VfzF2iiZcx8Fu7DGIB7RHozuP0VbKNzP1KfZkHBTM75pCpsWxIthEH1B33dmGBKHw== +"@typescript-eslint/type-utils@5.59.7": + version "5.59.7" + resolved "https://registry.yarnpkg.com/@typescript-eslint/type-utils/-/type-utils-5.59.7.tgz#89c97291371b59eb18a68039857c829776f1426d" + integrity sha512-ozuz/GILuYG7osdY5O5yg0QxXUAEoI4Go3Do5xeu+ERH9PorHBPSdvD3Tjp2NN2bNLh1NJQSsQu2TPu/Ly+HaQ== dependencies: - "@typescript-eslint/utils" "5.10.2" - debug "^4.3.2" + "@typescript-eslint/typescript-estree" "5.59.7" + "@typescript-eslint/utils" "5.59.7" + debug "^4.3.4" tsutils "^3.21.0" "@typescript-eslint/types@4.4.0": @@ -2709,10 +2764,10 @@ resolved "https://registry.yarnpkg.com/@typescript-eslint/types/-/types-4.4.0.tgz#63440ef87a54da7399a13bdd4b82060776e9e621" integrity sha512-nU0VUpzanFw3jjX+50OTQy6MehVvf8pkqFcURPAE06xFNFenMj1GPEI6IESvp7UOHAnq+n/brMirZdR+7rCrlA== -"@typescript-eslint/types@5.10.2": - version "5.10.2" - resolved "https://registry.yarnpkg.com/@typescript-eslint/types/-/types-5.10.2.tgz#604d15d795c4601fffba6ecb4587ff9fdec68ce8" - integrity sha512-Qfp0qk/5j2Rz3p3/WhWgu4S1JtMcPgFLnmAKAW061uXxKSa7VWKZsDXVaMXh2N60CX9h6YLaBoy9PJAfCOjk3w== +"@typescript-eslint/types@5.59.7": + version "5.59.7" + resolved "https://registry.yarnpkg.com/@typescript-eslint/types/-/types-5.59.7.tgz#6f4857203fceee91d0034ccc30512d2939000742" + integrity sha512-UnVS2MRRg6p7xOSATscWkKjlf/NDKuqo5TdbWck6rIRZbmKpVNTLALzNvcjIfHBE7736kZOFc/4Z3VcZwuOM/A== "@typescript-eslint/typescript-estree@1.11.0": version "1.11.0" @@ -2736,30 +2791,32 @@ semver "^7.3.2" tsutils "^3.17.1" -"@typescript-eslint/typescript-estree@5.10.2": - version "5.10.2" - resolved "https://registry.yarnpkg.com/@typescript-eslint/typescript-estree/-/typescript-estree-5.10.2.tgz#810906056cd3ddcb35aa333fdbbef3713b0fe4a7" - integrity sha512-WHHw6a9vvZls6JkTgGljwCsMkv8wu8XU8WaYKeYhxhWXH/atZeiMW6uDFPLZOvzNOGmuSMvHtZKd6AuC8PrwKQ== +"@typescript-eslint/typescript-estree@5.59.7": + version "5.59.7" + resolved "https://registry.yarnpkg.com/@typescript-eslint/typescript-estree/-/typescript-estree-5.59.7.tgz#b887acbd4b58e654829c94860dbff4ac55c5cff8" + integrity sha512-4A1NtZ1I3wMN2UGDkU9HMBL+TIQfbrh4uS0WDMMpf3xMRursDbqEf1ahh6vAAe3mObt8k3ZATnezwG4pdtWuUQ== dependencies: - "@typescript-eslint/types" "5.10.2" - "@typescript-eslint/visitor-keys" "5.10.2" - debug "^4.3.2" - globby "^11.0.4" + "@typescript-eslint/types" "5.59.7" + "@typescript-eslint/visitor-keys" "5.59.7" + debug "^4.3.4" + globby "^11.1.0" is-glob "^4.0.3" - semver "^7.3.5" + semver "^7.3.7" tsutils "^3.21.0" -"@typescript-eslint/utils@5.10.2": - version "5.10.2" - resolved "https://registry.yarnpkg.com/@typescript-eslint/utils/-/utils-5.10.2.tgz#1fcd37547c32c648ab11aea7173ec30060ee87a8" - integrity sha512-vuJaBeig1NnBRkf7q9tgMLREiYD7zsMrsN1DA3wcoMDvr3BTFiIpKjGiYZoKPllfEwN7spUjv7ZqD+JhbVjEPg== +"@typescript-eslint/utils@5.59.7": + version "5.59.7" + resolved "https://registry.yarnpkg.com/@typescript-eslint/utils/-/utils-5.59.7.tgz#7adf068b136deae54abd9a66ba5a8780d2d0f898" + integrity sha512-yCX9WpdQKaLufz5luG4aJbOpdXf/fjwGMcLFXZVPUz3QqLirG5QcwwnIHNf8cjLjxK4qtzTO8udUtMQSAToQnQ== dependencies: + "@eslint-community/eslint-utils" "^4.2.0" "@types/json-schema" "^7.0.9" - "@typescript-eslint/scope-manager" "5.10.2" - "@typescript-eslint/types" "5.10.2" - "@typescript-eslint/typescript-estree" "5.10.2" + "@types/semver" "^7.3.12" + "@typescript-eslint/scope-manager" "5.59.7" + "@typescript-eslint/types" "5.59.7" + "@typescript-eslint/typescript-estree" "5.59.7" eslint-scope "^5.1.1" - eslint-utils "^3.0.0" + semver "^7.3.7" "@typescript-eslint/visitor-keys@4.4.0": version "4.4.0" @@ -2769,13 +2826,13 @@ "@typescript-eslint/types" "4.4.0" eslint-visitor-keys "^2.0.0" -"@typescript-eslint/visitor-keys@5.10.2": - version "5.10.2" - resolved "https://registry.yarnpkg.com/@typescript-eslint/visitor-keys/-/visitor-keys-5.10.2.tgz#fdbf272d8e61c045d865bd6c8b41bea73d222f3d" - integrity sha512-zHIhYGGGrFJvvyfwHk5M08C5B5K4bewkm+rrvNTKk1/S15YHR+SA/QUF8ZWscXSfEaB8Nn2puZj+iHcoxVOD/Q== +"@typescript-eslint/visitor-keys@5.59.7": + version "5.59.7" + resolved "https://registry.yarnpkg.com/@typescript-eslint/visitor-keys/-/visitor-keys-5.59.7.tgz#09c36eaf268086b4fbb5eb9dc5199391b6485fc5" + integrity sha512-tyN+X2jvMslUszIiYbF0ZleP+RqQsFVpGrKI6e0Eet1w8WmhsAtmzaqm8oM8WJQ1ysLwhnsK/4hYHJjOgJVfQQ== dependencies: - "@typescript-eslint/types" "5.10.2" - eslint-visitor-keys "^3.0.0" + "@typescript-eslint/types" "5.59.7" + eslint-visitor-keys "^3.3.0" "@webassemblyjs/ast@1.11.1": version "1.11.1" @@ -2986,10 +3043,10 @@ acorn-import-assertions@^1.7.6: resolved "https://registry.yarnpkg.com/acorn-import-assertions/-/acorn-import-assertions-1.8.0.tgz#ba2b5939ce62c238db6d93d81c9b111b29b855e9" integrity sha512-m7VZ3jwz4eK6A4Vtt8Ew1/mNbP24u0FhdyfA7fSvnJR6LMdfOYnmuIrrJAgrYfYJ10F/otaHTtrtrtmHdMNzEw== -acorn-jsx@^5.2.0: - version "5.2.0" - resolved "https://registry.yarnpkg.com/acorn-jsx/-/acorn-jsx-5.2.0.tgz#4c66069173d6fdd68ed85239fc256226182b2ebe" - integrity sha512-HiUX/+K2YpkpJ+SzBffkM/AQ2YE03S0U1kjTLVpoJdhZMOWy8qvXVN9JdLqv2QsaQ6MPYQIuNmwD8zOiYUofLQ== +acorn-jsx@^5.3.2: + version "5.3.2" + resolved "https://registry.yarnpkg.com/acorn-jsx/-/acorn-jsx-5.3.2.tgz#7ed5bb55908b3b2f1bc55c6af1653bada7f07937" + integrity sha512-rq9s+JNhf0IChjtDXxllJ7g41oZk5SlXtp0LHwyA5cejwn7vKmKp4pPri6YEePv2PU65sAsegbXtIinmDFDXgQ== acorn-walk@^6.0.1: version "6.2.0" @@ -3006,16 +3063,16 @@ acorn@^6.0.1: resolved "https://registry.yarnpkg.com/acorn/-/acorn-6.4.1.tgz#531e58ba3f51b9dacb9a6646ca4debf5b14ca474" integrity sha512-ZVA9k326Nwrj3Cj9jlh3wGFutC2ZornPNARZwsNYqQYgN0EsV2d53w5RN/co65Ohn4sUAUtb1rSUAOD6XN9idA== -acorn@^7.4.0: - version "7.4.1" - resolved "https://registry.yarnpkg.com/acorn/-/acorn-7.4.1.tgz#feaed255973d2e77555b83dbc08851a6c63520fa" - integrity sha512-nQyp0o1/mNdbTO1PO6kHkwSrmgZ0MT/jCCpNiwbUjGoRN4dlBhqJtoQuCnEOKzgTVwg0ZWiCoQy6SxMebQVh8A== - acorn@^8.5.0, acorn@^8.7.1: version "8.8.0" resolved "https://registry.yarnpkg.com/acorn/-/acorn-8.8.0.tgz#88c0187620435c7f6015803f5539dae05a9dbea8" integrity sha512-QOxyigPVrpZ2GXT+PFyZTl6TtOFc5egxHIP9IlQ+RbupQuX4RkT/Bee4/kQuC02Xkzg84JcT7oLYtDIQxp+v7w== +acorn@^8.8.0: + version "8.8.2" + resolved "https://registry.yarnpkg.com/acorn/-/acorn-8.8.2.tgz#1b2f25db02af965399b9776b0c2c391276d37c4a" + integrity sha512-xjIYgE8HBrkpd/sJqOGNspf8uHG+NOHGOw6a/Urj8taM2EXfdNAH2oFcPeIFfsv3+kz/mJrS5VuMqbNLjCa2vw== + agent-base@4, agent-base@^4.1.0, agent-base@^4.3.0: version "4.3.0" resolved "https://registry.yarnpkg.com/agent-base/-/agent-base-4.3.0.tgz#8165f01c436009bccad0b1d122f05ed770efc6ee" @@ -3083,7 +3140,7 @@ ajv-keywords@^5.0.0: dependencies: fast-deep-equal "^3.1.3" -ajv@^6.1.0, ajv@^6.10.0, ajv@^6.12.2, ajv@^6.12.3, ajv@^6.12.4, ajv@^6.12.5, ajv@^6.9.1: +ajv@^6.1.0, ajv@^6.10.0, ajv@^6.12.2, ajv@^6.12.3, ajv@^6.12.4, ajv@^6.12.5: version "6.12.6" resolved "https://registry.yarnpkg.com/ajv/-/ajv-6.12.6.tgz#baf5a62e802b07d977034586f8c3baf5adf26df4" integrity sha512-j3fVLgvTo527anyYyJOGTYJbG+vnnQYvE0m5mmkc1TK+nxAppkCLMIL0aZ4dblVCNoGShhm+kzE4ZUykBoMg4g== @@ -3328,18 +3385,12 @@ aria-hidden@^1.2.2: dependencies: tslib "^2.0.0" -aria-query@^4.2.2: - version "4.2.2" - resolved "https://registry.yarnpkg.com/aria-query/-/aria-query-4.2.2.tgz#0d2ca6c9aceb56b8977e9fed6aed7e15bbd2f83b" - integrity sha512-o/HelwhuKpTj/frsOsbNLNgnNGVIFsVP/SW2BSF14gVl7kAfMOJ6/8wUAUvG1R1NHKrfG+2sHZTu0yauT1qBrA== +aria-query@^5.0.0, aria-query@^5.1.3: + version "5.1.3" + resolved "https://registry.yarnpkg.com/aria-query/-/aria-query-5.1.3.tgz#19db27cd101152773631396f7a95a3b58c22c35e" + integrity sha512-R5iJ5lkuHybztUfuOAznmboyjWq8O6sqNqtK7CLOqdydi54VNbORp49mb14KbWgG1QD3JFO9hJdZ+y4KutfdOQ== dependencies: - "@babel/runtime" "^7.10.2" - "@babel/runtime-corejs3" "^7.10.2" - -aria-query@^5.0.0: - version "5.0.0" - resolved "https://registry.yarnpkg.com/aria-query/-/aria-query-5.0.0.tgz#210c21aaf469613ee8c9a62c7f86525e058db52c" - integrity sha512-V+SM7AbUwJ+EBnB8+DXs0hPZHO0W6pqBcc0dW90OwtVG02PswOu/teuARoLQjdDOH+t9pJgGnW5/Qmouf3gPJg== + deep-equal "^2.0.5" arr-diff@^4.0.0: version "4.0.0" @@ -3399,7 +3450,7 @@ array-flatten@^2.1.2: resolved "https://registry.yarnpkg.com/array-flatten/-/array-flatten-2.1.2.tgz#24ef80a28c1a893617e2149b0c6d0d788293b099" integrity sha512-hNfzcOV8W4NdualtqBFPyVO+54DSJuZGY9qT4pRroB6S9e3iiido2ISIC5h9R2sPJ8H3FHCIiEnsv1lPXO3KtQ== -array-includes@^3.1.1, array-includes@^3.1.4, array-includes@^3.1.5, array-includes@^3.1.6: +array-includes@^3.1.5, array-includes@^3.1.6: version "3.1.6" resolved "https://registry.yarnpkg.com/array-includes/-/array-includes-3.1.6.tgz#9e9e720e194f198266ba9e18c29e6a9b0e4b225f" integrity sha512-sgTbLvL6cNnw24FnbaDyjmvddQ2ML8arZsgaJhoABMoplz/4QRhtrYS+alr1BUM1Bwp6dhx8vVCBSLG+StwOFw== @@ -3432,13 +3483,15 @@ array-unique@^0.3.2: resolved "https://registry.yarnpkg.com/array-unique/-/array-unique-0.3.2.tgz#a894b75d4bc4f6cd679ef3244a9fd8f46ae2d428" integrity sha1-qJS3XUvE9s1nnvMkSp/Y9Gri1Cg= -array.prototype.flat@^1.2.3: - version "1.2.3" - resolved "https://registry.yarnpkg.com/array.prototype.flat/-/array.prototype.flat-1.2.3.tgz#0de82b426b0318dbfdb940089e38b043d37f6c7b" - integrity sha512-gBlRZV0VSmfPIeWfuuy56XZMvbVfbEUnOXUvt3F/eUUUSyzlgLxhEX4YAEpxNAogRGehPSnfXyPtYyKAhkzQhQ== +array.prototype.flat@^1.2.3, array.prototype.flat@^1.3.1: + version "1.3.1" + resolved "https://registry.yarnpkg.com/array.prototype.flat/-/array.prototype.flat-1.3.1.tgz#ffc6576a7ca3efc2f46a143b9d1dda9b4b3cf5e2" + integrity sha512-roTU0KWIOmJ4DRLmwKd19Otg0/mT3qPNt0Qb3GWW8iObuZXxrjB/pzn0R3hqpRSWg4HCwqx+0vwOnWnvlOyeIA== dependencies: - define-properties "^1.1.3" - es-abstract "^1.17.0-next.1" + call-bind "^1.0.2" + define-properties "^1.1.4" + es-abstract "^1.20.4" + es-shim-unscopables "^1.0.0" array.prototype.flatmap@^1.3.1: version "1.3.1" @@ -3476,15 +3529,6 @@ asap@^2.0.0: resolved "https://registry.yarnpkg.com/asap/-/asap-2.0.6.tgz#e50347611d7e690943208bbdafebcbc2fb866d46" integrity sha512-BSHWgDSAiKs50o2Re8ppvp3seVHXSRM44cdSsT9FfNEUUZLOGWVCsiWaRPWM1Znn+mqZ1OfVZ3z3DWEzSp7hRA== -asn1.js@^4.0.0: - version "4.9.2" - resolved "https://registry.yarnpkg.com/asn1.js/-/asn1.js-4.9.2.tgz#8117ef4f7ed87cd8f89044b5bff97ac243a16c9a" - integrity sha512-b/OsSjvWEo8Pi8H0zsDd2P6Uqo2TK2pH8gNLSJtNLM2Db0v2QaAZ0pBQJXVjAn4gBuugeVDr7s63ZogpUIwWDg== - dependencies: - bn.js "^4.0.0" - inherits "^2.0.1" - minimalistic-assert "^1.0.0" - asn1@~0.2.3: version "0.2.4" resolved "https://registry.yarnpkg.com/asn1/-/asn1-0.2.4.tgz#8d2475dfab553bb33e77b54e59e880bb8ce23136" @@ -3497,14 +3541,6 @@ assert-plus@1.0.0, assert-plus@^1.0.0: resolved "https://registry.yarnpkg.com/assert-plus/-/assert-plus-1.0.0.tgz#f12e0f3c5d77b0b1cdd9146942e4e96c1e4dd525" integrity sha1-8S4PPF13sLHN2RRpQuTpbB5N1SU= -assert@^1.1.1: - version "1.5.0" - resolved "https://registry.yarnpkg.com/assert/-/assert-1.5.0.tgz#55c109aaf6e0aefdb3dc4b71240c70bf574b18eb" - integrity sha512-EDsgawzwoun2CZkCgtxJbv392v4nbk9XDD06zI+kQYoBM/3RBWLlEyJARDOmhAAosBjWACEkKL6S+lIZtcAubA== - dependencies: - object-assign "^4.1.1" - util "0.10.3" - assign-symbols@^1.0.0: version "1.0.0" resolved "https://registry.yarnpkg.com/assign-symbols/-/assign-symbols-1.0.0.tgz#59667f41fadd4f20ccbc2bb96b8d4f7f78ec0367" @@ -3600,10 +3636,10 @@ aws4@^1.8.0: resolved "https://registry.yarnpkg.com/aws4/-/aws4-1.8.0.tgz#f0e003d9ca9e7f59c7a508945d7b2ef9a04a542f" integrity sha512-ReZxvNHIOv88FlT7rxcXIIC0fPt4KZqZbOlivyWtXLt8ESx84zd3kMC6iK5jVeS2qt+g7ftS7ye4fi06X5rtRQ== -axe-core@^4.3.5, axe-core@^4.4.1: - version "4.4.1" - resolved "https://registry.yarnpkg.com/axe-core/-/axe-core-4.4.1.tgz#7dbdc25989298f9ad006645cd396782443757413" - integrity sha512-gd1kmb21kwNuWr6BQz8fv6GNECPBnUasepcoLbekws23NVBLODdsClRZ+bQ8+9Uomf3Sm3+Vwn0oYG9NvwnJCw== +axe-core@^4.4.1, axe-core@^4.6.2: + version "4.7.1" + resolved "https://registry.yarnpkg.com/axe-core/-/axe-core-4.7.1.tgz#04392c9ccb3d7d7c5d2f8684f148d56d3442f33d" + integrity sha512-sCXXUhA+cljomZ3ZAwb8i1p3oOlkABzPy08ZDAoGcYuvtBPlQ1Ytde129ArXyHWDhfeewq7rlx9F+cUx2SSlkg== axios@^0.18.0, axios@^0.18.1: version "0.18.1" @@ -3620,10 +3656,12 @@ axios@^0.19.2: dependencies: follow-redirects "1.5.10" -axobject-query@^2.2.0: - version "2.2.0" - resolved "https://registry.yarnpkg.com/axobject-query/-/axobject-query-2.2.0.tgz#943d47e10c0b704aa42275e20edf3722648989be" - integrity sha512-Td525n+iPOOyUQIeBfcASuG6uJsDOITl7Mds5gFyerkWiX7qhUTdYUBlSgNMyVqtSJqwpt1kXGLdUt6SykLMRA== +axobject-query@^3.1.1: + version "3.1.1" + resolved "https://registry.yarnpkg.com/axobject-query/-/axobject-query-3.1.1.tgz#3b6e5c6d4e43ca7ba51c5babf99d22a9c68485e1" + integrity sha512-goKlv8DZrK9hUh975fnHzhNIO4jUnFCfv/dszV5VwUGDFjI6vQ2VwoyjYjYNEbBE8AH87TduWP5uyDR1D+Iteg== + dependencies: + deep-equal "^2.0.5" babel-code-frame@^6.26.0: version "6.26.0" @@ -3634,18 +3672,6 @@ babel-code-frame@^6.26.0: esutils "^2.0.2" js-tokens "^3.0.2" -babel-eslint@^10.1.0: - version "10.1.0" - resolved "https://registry.yarnpkg.com/babel-eslint/-/babel-eslint-10.1.0.tgz#6968e568a910b78fb3779cdd8b6ac2f479943232" - integrity sha512-ifWaTHQ0ce+448CYop8AdrQiBsGrnC+bMgfyKFdi6EsPLTAWG+QfyDeM6OH+FmWnKvEq5NnBMLvlBUPKQZoDSg== - dependencies: - "@babel/code-frame" "^7.0.0" - "@babel/parser" "^7.7.0" - "@babel/traverse" "^7.7.0" - "@babel/types" "^7.7.0" - eslint-visitor-keys "^1.0.0" - resolve "^1.12.0" - babel-jest@^24.1.0, babel-jest@^24.9.0: version "24.9.0" resolved "https://registry.yarnpkg.com/babel-jest/-/babel-jest-24.9.0.tgz#3fc327cb8467b89d14d7bc70e315104a783ccd54" @@ -3834,7 +3860,7 @@ balanced-match@^2.0.0: resolved "https://registry.yarnpkg.com/balanced-match/-/balanced-match-2.0.0.tgz#dc70f920d78db8b858535795867bf48f820633d9" integrity sha512-1ugUSr8BHXRnK23KfuYS+gVMC3LB8QGH9W1iGtDPsNWoQbgtXSExkBu2aDR4epiGWZOjZsj6lDl/N/AqqTC3UA== -base64-js@^1.0.2, base64-js@^1.3.1: +base64-js@^1.3.1: version "1.5.1" resolved "https://registry.yarnpkg.com/base64-js/-/base64-js-1.5.1.tgz#1b1b440160a5bf7ad40b650f095963481903930a" integrity sha512-AKpaYlHn8t4SVbOHCy+b5+KKgvR4vrsD8vbvrbiQJps7fKDTkjkDry6ji0rUJjC0kzbNePLwzxq8iypo41qeWA== @@ -3975,11 +4001,6 @@ bluebird@3.7.2, bluebird@^3.5.0, bluebird@^3.5.1, bluebird@^3.5.5, bluebird@^3.7 resolved "https://registry.yarnpkg.com/bluebird/-/bluebird-3.7.2.tgz#9f229c15be272454ffa973ace0dbee79a1b0c36f" integrity sha512-XpNj6GDQzdfW+r2Wnn7xiSAd7TM3jzkxGXBGTtWKuSXv1xUV+azxAm8jdWZN06QTQk+2N2XB9jRDkvbmQmcRtg== -bn.js@^4.0.0, bn.js@^4.1.0, bn.js@^4.1.1, bn.js@^4.4.0: - version "4.11.8" - resolved "https://registry.yarnpkg.com/bn.js/-/bn.js-4.11.8.tgz#2cde09eb5ee341f484746bb0309b3253b1b1442f" - integrity sha512-ItfYfPLkWHUjckQCk8xC+LwxgK8NYcXywGigJgSwOP8Y2iyWT4f2vsZnoOXTTbo+o5yXmIUJ4gn5538SO5S3gA== - body-parser@1.20.0: version "1.20.0" resolved "https://registry.yarnpkg.com/body-parser/-/body-parser-1.20.0.tgz#3de69bd89011c11573d7bfee6a64f11b6bd27cc5" @@ -4083,11 +4104,6 @@ braces@^3.0.1, braces@^3.0.2, braces@~3.0.2: dependencies: fill-range "^7.0.1" -brorand@^1.0.1: - version "1.1.0" - resolved "https://registry.yarnpkg.com/brorand/-/brorand-1.1.0.tgz#12c25efe40a45e3c323eb8675a0a0ce57b22371f" - integrity sha1-EsJe/kCkXjwyPrhnWgoM5XsiNx8= - browser-process-hrtime@^1.0.0: version "1.0.0" resolved "https://registry.yarnpkg.com/browser-process-hrtime/-/browser-process-hrtime-1.0.0.tgz#3c9b4b7d782c8121e56f10106d84c0d0ffc94626" @@ -4100,64 +4116,6 @@ browser-resolve@^1.11.3: dependencies: resolve "1.1.7" -browserify-aes@^1.0.0, browserify-aes@^1.0.4: - version "1.1.1" - resolved "https://registry.yarnpkg.com/browserify-aes/-/browserify-aes-1.1.1.tgz#38b7ab55edb806ff2dcda1a7f1620773a477c49f" - integrity sha512-UGnTYAnB2a3YuYKIRy1/4FB2HdM866E0qC46JXvVTYKlBlZlnvfpSfY6OKfXZAkv70eJ2a1SqzpAo5CRhZGDFg== - dependencies: - buffer-xor "^1.0.3" - cipher-base "^1.0.0" - create-hash "^1.1.0" - evp_bytestokey "^1.0.3" - inherits "^2.0.1" - safe-buffer "^5.0.1" - -browserify-cipher@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/browserify-cipher/-/browserify-cipher-1.0.0.tgz#9988244874bf5ed4e28da95666dcd66ac8fc363a" - integrity sha1-mYgkSHS/XtTijalWZtzWasj8Njo= - dependencies: - browserify-aes "^1.0.4" - browserify-des "^1.0.0" - evp_bytestokey "^1.0.0" - -browserify-des@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/browserify-des/-/browserify-des-1.0.0.tgz#daa277717470922ed2fe18594118a175439721dd" - integrity sha1-2qJ3cXRwki7S/hhZQRihdUOXId0= - dependencies: - cipher-base "^1.0.1" - des.js "^1.0.0" - inherits "^2.0.1" - -browserify-rsa@^4.0.0: - version "4.0.1" - resolved "https://registry.yarnpkg.com/browserify-rsa/-/browserify-rsa-4.0.1.tgz#21e0abfaf6f2029cf2fafb133567a701d4135524" - integrity sha1-IeCr+vbyApzy+vsTNWenAdQTVSQ= - dependencies: - bn.js "^4.1.0" - randombytes "^2.0.1" - -browserify-sign@^4.0.0: - version "4.0.4" - resolved "https://registry.yarnpkg.com/browserify-sign/-/browserify-sign-4.0.4.tgz#aa4eb68e5d7b658baa6bf6a57e630cbd7a93d298" - integrity sha1-qk62jl17ZYuqa/alfmMMvXqT0pg= - dependencies: - bn.js "^4.1.1" - browserify-rsa "^4.0.0" - create-hash "^1.1.0" - create-hmac "^1.1.2" - elliptic "^6.0.0" - inherits "^2.0.1" - parse-asn1 "^5.0.0" - -browserify-zlib@^0.2.0: - version "0.2.0" - resolved "https://registry.yarnpkg.com/browserify-zlib/-/browserify-zlib-0.2.0.tgz#2869459d9aa3be245fe8fe2ca1f46e2e7f54d73f" - integrity sha512-Z942RysHXmJrhqk88FmKBVq/v5tqmSkDz7p54G/MGyjMnCFFnC79XWNbg+Vta8W6Wb2qtSZTSxIGkJrRpCFEiA== - dependencies: - pako "~1.0.5" - browserslist@^4.0.0, browserslist@^4.12.0, browserslist@^4.14.5, browserslist@^4.21.3, browserslist@^4.21.5: version "4.21.5" resolved "https://registry.yarnpkg.com/browserslist/-/browserslist-4.21.5.tgz#75c5dae60063ee641f977e00edd3cfb2fb7af6a7" @@ -4208,20 +4166,6 @@ buffer-json@^2.0.0: resolved "https://registry.yarnpkg.com/buffer-json/-/buffer-json-2.0.0.tgz#f73e13b1e42f196fe2fd67d001c7d7107edd7c23" integrity sha512-+jjPFVqyfF1esi9fvfUs3NqM0pH1ziZ36VP4hmA/y/Ssfo/5w5xHKfTw9BwQjoJ1w/oVtpLomqwUHKdefGyuHw== -buffer-xor@^1.0.3: - version "1.0.3" - resolved "https://registry.yarnpkg.com/buffer-xor/-/buffer-xor-1.0.3.tgz#26e61ed1422fb70dd42e6e36729ed51d855fe8d9" - integrity sha1-JuYe0UIvtw3ULm42cp7VHYVf6Nk= - -buffer@^4.3.0: - version "4.9.1" - resolved "https://registry.yarnpkg.com/buffer/-/buffer-4.9.1.tgz#6d1bb601b07a4efced97094132093027c95bc298" - integrity sha1-bRu2AbB6TvztlwlBMgkwJ8lbwpg= - dependencies: - base64-js "^1.0.2" - ieee754 "^1.1.4" - isarray "^1.0.0" - buffer@^5.2.1, buffer@^5.5.0, buffer@^5.6.0: version "5.7.1" resolved "https://registry.yarnpkg.com/buffer/-/buffer-5.7.1.tgz#ba62e7c13133053582197160851a8f648e99eed0" @@ -4238,11 +4182,6 @@ buffer@^6.0.3: base64-js "^1.3.1" ieee754 "^1.2.1" -builtin-status-codes@^3.0.0: - version "3.0.0" - resolved "https://registry.yarnpkg.com/builtin-status-codes/-/builtin-status-codes-3.0.0.tgz#85982878e21b98e1c66425e03d0174788f569ee8" - integrity sha1-hZgoeOIbmOHGZCXgPQF0eI9Wnug= - builtins@^1.0.3: version "1.0.3" resolved "https://registry.yarnpkg.com/builtins/-/builtins-1.0.3.tgz#cb94faeb61c8696451db36534e1422f94f0aee88" @@ -4717,14 +4656,6 @@ ci-info@^3.1.1: resolved "https://registry.yarnpkg.com/ci-info/-/ci-info-3.2.0.tgz#2876cb948a498797b5236f0095bc057d0dca38b6" integrity sha512-dVqRX7fLUm8J6FgHJ418XuIgDLZDkYcDFTeL6TA2gt5WlIZUQrrH6EZrNClwT/H0FateUsZkGIOPRrLbP+PR9A== -cipher-base@^1.0.0, cipher-base@^1.0.1, cipher-base@^1.0.3: - version "1.0.4" - resolved "https://registry.yarnpkg.com/cipher-base/-/cipher-base-1.0.4.tgz#8760e4ecc272f4c363532f926d874aae2c1397de" - integrity sha512-Kkht5ye6ZGmwv40uUDZztayT2ThLQGfnj/T71N/XzeZeo3nf8foyW7zGTsPYkEya3m5f3cAypH+qe7YOrM1U2Q== - dependencies: - inherits "^2.0.1" - safe-buffer "^5.0.1" - circular-dependency-plugin@^5.2.2: version "5.2.2" resolved "https://registry.yarnpkg.com/circular-dependency-plugin/-/circular-dependency-plugin-5.2.2.tgz#39e836079db1d3cf2f988dc48c5188a44058b600" @@ -5287,28 +5218,11 @@ connect-history-api-fallback@^2.0.0: resolved "https://registry.yarnpkg.com/connect-history-api-fallback/-/connect-history-api-fallback-2.0.0.tgz#647264845251a0daf25b97ce87834cace0f5f1c8" integrity sha512-U73+6lQFmfiNPrYbXqr6kZ1i1wiRqXnp2nhMsINseWXO8lDau0LGEffJ8kQi4EjLZympVgRdvqjAgiZ1tgzDDA== -console-browserify@^1.1.0: - version "1.1.0" - resolved "https://registry.yarnpkg.com/console-browserify/-/console-browserify-1.1.0.tgz#f0241c45730a9fc6323b206dbf38edc741d0bb10" - integrity sha1-8CQcRXMKn8YyOyBtvzjtx0HQuxA= - dependencies: - date-now "^0.1.4" - console-control-strings@^1.0.0, console-control-strings@^1.1.0: version "1.1.0" resolved "https://registry.yarnpkg.com/console-control-strings/-/console-control-strings-1.1.0.tgz#3d7cf4464db6446ea644bf4b39507f9851008e8e" integrity sha512-ty/fTekppD2fIwRvnZAVdeOiGd1c7YXEixbgJTNzqcxJWKQnjJ/V1bNEEE6hygpM3WjwHFUVK6HTjWSzV4a8sQ== -constants-browserify@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/constants-browserify/-/constants-browserify-1.0.0.tgz#c20b96d8c617748aaf1c16021760cd27fcb8cb75" - integrity sha1-wguW2MYXdIqvHBYCF2DNJ/y4y3U= - -contains-path@^0.1.0: - version "0.1.0" - resolved "https://registry.yarnpkg.com/contains-path/-/contains-path-0.1.0.tgz#fe8cf184ff6670b6baef01a9d4861a5cbec4120a" - integrity sha1-/ozxhP9mcLa67wGp1IYaXL7EEgo= - content-disposition@0.5.4: version "0.5.4" resolved "https://registry.yarnpkg.com/content-disposition/-/content-disposition-0.5.4.tgz#8b82b4efac82512a02bb0b1dcec9d2c5e8eb5bfe" @@ -5369,7 +5283,7 @@ core-js-compat@^3.25.1: dependencies: browserslist "^4.21.5" -core-js-pure@^3.0.0, core-js-pure@^3.8.1: +core-js-pure@^3.8.1: version "3.19.3" resolved "https://registry.yarnpkg.com/core-js-pure/-/core-js-pure-3.19.3.tgz#c69b2b36b58927317824994b532ec3f0f7e49607" integrity sha512-N3JruInmCyt7EJj5mAq3csCgGYgiSqu7p7TQp2KOztr180/OAIxyIvL1FCjzgmQk/t3Yniua50Fsak7FShI9lA== @@ -5432,14 +5346,6 @@ cosmiconfig@^7.1.0: path-type "^4.0.0" yaml "^1.10.0" -create-ecdh@^4.0.0: - version "4.0.0" - resolved "https://registry.yarnpkg.com/create-ecdh/-/create-ecdh-4.0.0.tgz#888c723596cdf7612f6498233eebd7a35301737d" - integrity sha1-iIxyNZbN92EvZJgjPuvXo1MBc30= - dependencies: - bn.js "^4.1.0" - elliptic "^6.0.0" - create-error-class@^3.0.0: version "3.0.2" resolved "https://registry.yarnpkg.com/create-error-class/-/create-error-class-3.0.2.tgz#06be7abef947a3f14a30fd610671d401bca8b7b6" @@ -5447,28 +5353,6 @@ create-error-class@^3.0.0: dependencies: capture-stack-trace "^1.0.0" -create-hash@^1.1.0, create-hash@^1.1.2: - version "1.1.3" - resolved "https://registry.yarnpkg.com/create-hash/-/create-hash-1.1.3.tgz#606042ac8b9262750f483caddab0f5819172d8fd" - integrity sha1-YGBCrIuSYnUPSDyt2rD1gZFy2P0= - dependencies: - cipher-base "^1.0.1" - inherits "^2.0.1" - ripemd160 "^2.0.0" - sha.js "^2.4.0" - -create-hmac@^1.1.0, create-hmac@^1.1.2, create-hmac@^1.1.4: - version "1.1.6" - resolved "https://registry.yarnpkg.com/create-hmac/-/create-hmac-1.1.6.tgz#acb9e221a4e17bdb076e90657c42b93e3726cf06" - integrity sha1-rLniIaThe9sHbpBlfEK5PjcmzwY= - dependencies: - cipher-base "^1.0.3" - create-hash "^1.1.0" - inherits "^2.0.1" - ripemd160 "^2.0.0" - safe-buffer "^5.0.1" - sha.js "^2.4.8" - cross-env@^6.0.3: version "6.0.3" resolved "https://registry.yarnpkg.com/cross-env/-/cross-env-6.0.3.tgz#4256b71e49b3a40637a0ce70768a6ef5c72ae941" @@ -5512,23 +5396,6 @@ cross-spawn@^7.0.0, cross-spawn@^7.0.1, cross-spawn@^7.0.2, cross-spawn@^7.0.3: shebang-command "^2.0.0" which "^2.0.1" -crypto-browserify@^3.11.0: - version "3.12.0" - resolved "https://registry.yarnpkg.com/crypto-browserify/-/crypto-browserify-3.12.0.tgz#396cf9f3137f03e4b8e532c58f698254e00f80ec" - integrity sha512-fz4spIh+znjO2VjL+IdhEpRJ3YN6sMzITSBijk6FK2UvTqruSQW+/cCZTSNsMiZNvUeq0CqurF+dAbyiGOY6Wg== - dependencies: - browserify-cipher "^1.0.0" - browserify-sign "^4.0.0" - create-ecdh "^4.0.0" - create-hash "^1.1.0" - create-hmac "^1.1.0" - diffie-hellman "^5.0.0" - inherits "^2.0.1" - pbkdf2 "^3.0.3" - public-encrypt "^4.0.0" - randombytes "^2.0.0" - randomfill "^1.0.3" - crypto-random-string@^1.0.0: version "1.0.0" resolved "https://registry.yarnpkg.com/crypto-random-string/-/crypto-random-string-1.0.0.tgz#a230f64f568310e1498009940790ec99545bca7e" @@ -5943,7 +5810,7 @@ d3-shape@^2.0.0: dependencies: d3-array "2" -damerau-levenshtein@^1.0.7: +damerau-levenshtein@^1.0.8: version "1.0.8" resolved "https://registry.yarnpkg.com/damerau-levenshtein/-/damerau-levenshtein-1.0.8.tgz#b43d286ccbd36bc5b2f7ed41caf2d0aba1f8a6e7" integrity sha512-sdQSFB7+llfUcQHUQO3+B8ERRj0Oa4w9POWMI/puGtuf7gFywGmkaLCElnudfTiKZV+NvHqL0ifzdrI8Ro7ESA== @@ -5983,11 +5850,6 @@ datauri@^1.1.0: mimer "^0.3.2" semver "^5.5.0" -date-now@^0.1.4: - version "0.1.4" - resolved "https://registry.yarnpkg.com/date-now/-/date-now-0.1.4.tgz#eaf439fd4d4848ad74e5cc7dbef200672b9e345b" - integrity sha1-6vQ5/U1ISK105cx9vvIAZyueNFs= - dateformat@^3.0.3: version "3.0.3" resolved "https://registry.yarnpkg.com/dateformat/-/dateformat-3.0.3.tgz#a6e37499a4d9a9cf85ef5872044d62901c9889ae" @@ -6003,7 +5865,7 @@ dayjs@1.10.7, dayjs@^1.10.4: resolved "https://registry.yarnpkg.com/dayjs/-/dayjs-1.10.7.tgz#2cf5f91add28116748440866a0a1d26f3a6ce468" integrity sha512-P6twpd70BcPK34K26uJ1KT3wlhpuOAPoMwJzpsIWUxHZ7wpmbdZL/hQqBDfz7hGurYSa5PhzdhDHtt319hL3ig== -debug@2.6.9, debug@^2.2.0, debug@^2.3.3, debug@^2.6.8, debug@^2.6.9: +debug@2.6.9, debug@^2.2.0, debug@^2.3.3, debug@^2.6.8: version "2.6.9" resolved "https://registry.yarnpkg.com/debug/-/debug-2.6.9.tgz#5d128515df134ff327e90a4c93f4e077a536341f" integrity sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA== @@ -6017,7 +5879,7 @@ debug@3.1.0, debug@=3.1.0: dependencies: ms "2.0.0" -debug@4, debug@4.3.4, debug@^4.0.1, debug@^4.1.0, debug@^4.1.1, debug@^4.3.2, debug@^4.3.3, debug@^4.3.4: +debug@4, debug@4.3.4, debug@^4.1.0, debug@^4.1.1, debug@^4.3.2, debug@^4.3.3, debug@^4.3.4: version "4.3.4" resolved "https://registry.yarnpkg.com/debug/-/debug-4.3.4.tgz#1319f6579357f2338d3337d2cdd4914bb5dcc865" integrity sha512-PRWFHuSU3eDtQJPvnNY7Jcket1j0t5OuOsFzPPzsekD52Zl8qUfFIPEiswXqIvHWGVHOgX+7G/vCNNhehwxfkQ== @@ -6038,7 +5900,7 @@ debug@4.3.2: dependencies: ms "2.1.2" -debug@^3.1.0: +debug@^3.1.0, debug@^3.2.7: version "3.2.7" resolved "https://registry.yarnpkg.com/debug/-/debug-3.2.7.tgz#72580b7e9145fb39b6676f9c5e5fb100b934179a" integrity sha512-CFjzYYAi4ThfiQvizrFQevTTXHtnCqWfe7x1AhgEscTz6ZbLbfoLRLPugTQyBth6f8ZERVUSyWHFD/7Wu4t1XQ== @@ -6102,6 +5964,30 @@ dedent@0.7.0, dedent@^0.7.0: resolved "https://registry.yarnpkg.com/dedent/-/dedent-0.7.0.tgz#2495ddbaf6eb874abb0e1be9df22d2e5a544326c" integrity sha1-JJXduvbrh0q7Dhvp3yLS5aVEMmw= +deep-equal@^2.0.5: + version "2.2.1" + resolved "https://registry.yarnpkg.com/deep-equal/-/deep-equal-2.2.1.tgz#c72ab22f3a7d3503a4ca87dde976fe9978816739" + integrity sha512-lKdkdV6EOGoVn65XaOsPdH4rMxTZOnmFyuIkMjM1i5HHCbfjC97dawgTAy0deYNfuqUqW+Q5VrVaQYtUpSd6yQ== + dependencies: + array-buffer-byte-length "^1.0.0" + call-bind "^1.0.2" + es-get-iterator "^1.1.3" + get-intrinsic "^1.2.0" + is-arguments "^1.1.1" + is-array-buffer "^3.0.2" + is-date-object "^1.0.5" + is-regex "^1.1.4" + is-shared-array-buffer "^1.0.2" + isarray "^2.0.5" + object-is "^1.1.5" + object-keys "^1.1.1" + object.assign "^4.1.4" + regexp.prototype.flags "^1.5.0" + side-channel "^1.0.4" + which-boxed-primitive "^1.0.2" + which-collection "^1.0.1" + which-typed-array "^1.1.9" + deep-extend@^0.6.0: version "0.6.0" resolved "https://registry.yarnpkg.com/deep-extend/-/deep-extend-0.6.0.tgz#c4fa7c95404a17a9c3e8ca7e1537312b736330ac" @@ -6218,14 +6104,6 @@ dependency-graph@^0.9.0: resolved "https://registry.yarnpkg.com/dependency-graph/-/dependency-graph-0.9.0.tgz#11aed7e203bc8b00f48356d92db27b265c445318" integrity sha512-9YLIBURXj4DJMFALxXw9K3Y3rwb5Fk0X5/8ipCzaN84+gKxoHK43tVKRNakCQbiEx07E8Uwhuq21BpUagFhZ8w== -des.js@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/des.js/-/des.js-1.0.0.tgz#c074d2e2aa6a8a9a07dbd61f9a15c2cd83ec8ecc" - integrity sha1-wHTS4qpqipoH29YfmhXCzYPsjsw= - dependencies: - inherits "^2.0.1" - minimalistic-assert "^1.0.0" - destroy@1.2.0: version "1.2.0" resolved "https://registry.yarnpkg.com/destroy/-/destroy-1.2.0.tgz#4803735509ad8be552934c67df614f94e66fa015" @@ -6279,15 +6157,6 @@ diff@^5.0.0: resolved "https://registry.yarnpkg.com/diff/-/diff-5.1.0.tgz#bc52d298c5ea8df9194800224445ed43ffc87e40" integrity sha512-D+mk+qE8VC/PAUrlAU34N+VfXev0ghe5ywmpqrawphmVZc1bEfn56uo9qpyGp1p4xpzOHkSW4ztBd6L7Xx4ACw== -diffie-hellman@^5.0.0: - version "5.0.2" - resolved "https://registry.yarnpkg.com/diffie-hellman/-/diffie-hellman-5.0.2.tgz#b5835739270cfe26acf632099fded2a07f209e5e" - integrity sha1-tYNXOScM/ias9jIJn97SoH8gnl4= - dependencies: - bn.js "^4.1.0" - miller-rabin "^4.0.0" - randombytes "^2.0.0" - dir-glob@2.0.0: version "2.0.0" resolved "https://registry.yarnpkg.com/dir-glob/-/dir-glob-2.0.0.tgz#0b205d2b6aef98238ca286598a8204d29d0a0034" @@ -6327,14 +6196,6 @@ dns-packet@^5.2.2: dependencies: "@leichtgewicht/ip-codec" "^2.0.1" -doctrine@1.5.0: - version "1.5.0" - resolved "https://registry.yarnpkg.com/doctrine/-/doctrine-1.5.0.tgz#379dce730f6166f76cefa4e6707a159b02c5a6fa" - integrity sha1-N53Ocw9hZvds76TmcHoVmwLFpvo= - dependencies: - esutils "^2.0.2" - isarray "^1.0.0" - doctrine@^2.1.0: version "2.1.0" resolved "https://registry.yarnpkg.com/doctrine/-/doctrine-2.1.0.tgz#5cd01fc101621b42c4cd7f5d1a66243716d3f39d" @@ -6378,11 +6239,6 @@ dom-serializer@^1.0.1: domhandler "^4.2.0" entities "^2.0.0" -domain-browser@^1.1.1: - version "1.2.0" - resolved "https://registry.yarnpkg.com/domain-browser/-/domain-browser-1.2.0.tgz#3d31f50191a6749dd1375a7f522e823d42e54eda" - integrity sha512-jnjyiM6eRyZl2H+W8Q/zLMA481hzi0eszAaBUzIVnmYVDBbnLxVNnfu1HgEBvCbL+71FrxMl3E6lpKH7Ge3OXA== - domelementtype@1, domelementtype@^1.3.0, domelementtype@^1.3.1: version "1.3.1" resolved "https://registry.yarnpkg.com/domelementtype/-/domelementtype-1.3.1.tgz#d048c44b37b0d10a7f2a3d5fee3f4333d790481f" @@ -6568,19 +6424,6 @@ electron-to-chromium@^1.4.284: resolved "https://registry.yarnpkg.com/electron-to-chromium/-/electron-to-chromium-1.4.342.tgz#3c7e199c3aa89c993df4b6f5223d6d26988f58e6" integrity sha512-dTei3VResi5bINDENswBxhL+N0Mw5YnfWyTqO75KGsVldurEkhC9+CelJVAse8jycWyP8pv3VSj4BSyP8wTWJA== -elliptic@^6.0.0: - version "6.5.3" - resolved "https://registry.yarnpkg.com/elliptic/-/elliptic-6.5.3.tgz#cb59eb2efdaf73a0bd78ccd7015a62ad6e0f93d6" - integrity sha512-IMqzv5wNQf+E6aHeIqATs0tOLeOTwj1QKbRcS3jBbYkl5oLAserA8yJTT7/VyHUYG91PRmPyeQDObKLPpeS4dw== - dependencies: - bn.js "^4.4.0" - brorand "^1.0.1" - hash.js "^1.0.0" - hmac-drbg "^1.0.0" - inherits "^2.0.1" - minimalistic-assert "^1.0.0" - minimalistic-crypto-utils "^1.0.0" - emoji-regex@^7.0.1: version "7.0.3" resolved "https://registry.yarnpkg.com/emoji-regex/-/emoji-regex-7.0.3.tgz#933a04052860c85e83c122479c4748a8e4c72156" @@ -6649,7 +6492,7 @@ enhanced-resolve@^5.10.0: graceful-fs "^4.2.4" tapable "^2.2.0" -enquirer@^2.3.5, enquirer@^2.3.6: +enquirer@^2.3.6: version "2.3.6" resolved "https://registry.yarnpkg.com/enquirer/-/enquirer-2.3.6.tgz#2a7fe5dd634a1e4125a975ec994ff5456dc3734d" integrity sha512-yjNnPr315/FjS4zIsUxYguYUPP2e1NK4d7E7ZOLiyYCcbFBiTMyID+2wvm2w6+pZ/odMA7cRkjhsPbltwBOrLg== @@ -6742,7 +6585,7 @@ errno@~0.1.7: dependencies: prr "~1.0.1" -error-ex@^1.2.0, error-ex@^1.3.1: +error-ex@^1.3.1: version "1.3.1" resolved "https://registry.yarnpkg.com/error-ex/-/error-ex-1.3.1.tgz#f855a86ce61adc4e8621c3cda21e7a7612c3a8dc" integrity sha1-+FWobOYa3E6GIcPNoh56dhLDqNw= @@ -6769,7 +6612,7 @@ error@^7.0.2: string-template "~0.2.1" xtend "~4.0.0" -es-abstract@^1.17.0-next.1, es-abstract@^1.17.2, es-abstract@^1.17.5, es-abstract@^1.19.0, es-abstract@^1.20.4: +es-abstract@^1.17.0-next.1, es-abstract@^1.17.2, es-abstract@^1.19.0, es-abstract@^1.20.4: version "1.21.2" resolved "https://registry.yarnpkg.com/es-abstract/-/es-abstract-1.21.2.tgz#a56b9695322c8a185dc25975aa3b8ec31d0e7eff" integrity sha512-y/B5POM2iBnIxCiernH1G7rC9qQoM77lLIMQLuob0zhp8C56Po81+2Nj0WFKnd0pNReDTnkYryc+zhOzpEIROg== @@ -6809,6 +6652,21 @@ es-abstract@^1.17.0-next.1, es-abstract@^1.17.2, es-abstract@^1.17.5, es-abstrac unbox-primitive "^1.0.2" which-typed-array "^1.1.9" +es-get-iterator@^1.1.3: + version "1.1.3" + resolved "https://registry.yarnpkg.com/es-get-iterator/-/es-get-iterator-1.1.3.tgz#3ef87523c5d464d41084b2c3c9c214f1199763d6" + integrity sha512-sPZmqHBe6JIiTfN5q2pEi//TwxmAFHwj/XEuYjTuse78i8KxaqMTTzxPoFKuzRpDpTJ+0NAbpfenkmH2rePtuw== + dependencies: + call-bind "^1.0.2" + get-intrinsic "^1.1.3" + has-symbols "^1.0.3" + is-arguments "^1.1.1" + is-map "^2.0.2" + is-set "^2.0.2" + is-string "^1.0.7" + isarray "^2.0.5" + stop-iteration-iterator "^1.0.0" + es-module-lexer@^0.9.0: version "0.9.3" resolved "https://registry.yarnpkg.com/es-module-lexer/-/es-module-lexer-0.9.3.tgz#6f13db00cc38417137daf74366f535c8eb438f19" @@ -6898,63 +6756,64 @@ escodegen@^1.9.1: optionalDependencies: source-map "~0.6.1" -eslint-config-prettier@^6.12.0: - version "6.12.0" - resolved "https://registry.yarnpkg.com/eslint-config-prettier/-/eslint-config-prettier-6.12.0.tgz#9eb2bccff727db1c52104f0b49e87ea46605a0d2" - integrity sha512-9jWPlFlgNwRUYVoujvWTQ1aMO8o6648r+K7qU7K5Jmkbyqav1fuEZC0COYpGBxyiAJb65Ra9hrmFx19xRGwXWw== - dependencies: - get-stdin "^6.0.0" +eslint-config-prettier@^8.8.0: + version "8.8.0" + resolved "https://registry.yarnpkg.com/eslint-config-prettier/-/eslint-config-prettier-8.8.0.tgz#bfda738d412adc917fd7b038857110efe98c9348" + integrity sha512-wLbQiFre3tdGgpDv67NQKnJuTlcUVYHas3k+DZCc2U2BadthoEY4B7hLPvAxaqdyOGCzuLfii2fqGph10va7oA== -eslint-import-resolver-node@^0.3.4: - version "0.3.4" - resolved "https://registry.yarnpkg.com/eslint-import-resolver-node/-/eslint-import-resolver-node-0.3.4.tgz#85ffa81942c25012d8231096ddf679c03042c717" - integrity sha512-ogtf+5AB/O+nM6DIeBUNr2fuT7ot9Qg/1harBfBtaP13ekEWFQEEMP94BCB7zaNW3gyY+8SHYF00rnqYwXKWOA== +eslint-import-resolver-node@^0.3.7: + version "0.3.7" + resolved "https://registry.yarnpkg.com/eslint-import-resolver-node/-/eslint-import-resolver-node-0.3.7.tgz#83b375187d412324a1963d84fa664377a23eb4d7" + integrity sha512-gozW2blMLJCeFpBwugLTGyvVjNoeo1knonXAcatC6bjPBZitotxdWf7Gimr25N4c0AAOo4eOUfaG82IJPDpqCA== dependencies: - debug "^2.6.9" - resolve "^1.13.1" + debug "^3.2.7" + is-core-module "^2.11.0" + resolve "^1.22.1" -eslint-import-resolver-webpack@^0.13.0: - version "0.13.0" - resolved "https://registry.yarnpkg.com/eslint-import-resolver-webpack/-/eslint-import-resolver-webpack-0.13.0.tgz#5cb19cf4b6996c8a2514aeb10f909e2c70488dc3" - integrity sha512-hZWGcmjaJZK/WSCYGI/y4+FMGQZT+cwW/1E/P4rDwFj2PbanlQHISViw4ccDJ+2wxAqjgwBfxwy3seABbVKDEw== +eslint-import-resolver-webpack@^0.13.2: + version "0.13.2" + resolved "https://registry.yarnpkg.com/eslint-import-resolver-webpack/-/eslint-import-resolver-webpack-0.13.2.tgz#fc813df0d08b9265cc7072d22393bda5198bdc1e" + integrity sha512-XodIPyg1OgE2h5BDErz3WJoK7lawxKTJNhgPNafRST6csC/MZC+L5P6kKqsZGRInpbgc02s/WZMrb4uGJzcuRg== dependencies: array-find "^1.0.0" - debug "^2.6.9" + debug "^3.2.7" enhanced-resolve "^0.9.1" find-root "^1.1.0" has "^1.0.3" - interpret "^1.2.0" - lodash "^4.17.15" - node-libs-browser "^1.0.0 || ^2.0.0" - resolve "^1.13.1" + interpret "^1.4.0" + is-core-module "^2.7.0" + is-regex "^1.1.4" + lodash "^4.17.21" + resolve "^1.20.0" semver "^5.7.1" -eslint-module-utils@^2.6.0: - version "2.6.0" - resolved "https://registry.yarnpkg.com/eslint-module-utils/-/eslint-module-utils-2.6.0.tgz#579ebd094f56af7797d19c9866c9c9486629bfa6" - integrity sha512-6j9xxegbqe8/kZY8cYpcp0xhbK0EgJlg3g9mib3/miLaExuuwc3n5UEfSnU6hWMbT0FAYVvDbL9RrRgpUeQIvA== +eslint-module-utils@^2.7.4: + version "2.8.0" + resolved "https://registry.yarnpkg.com/eslint-module-utils/-/eslint-module-utils-2.8.0.tgz#e439fee65fc33f6bba630ff621efc38ec0375c49" + integrity sha512-aWajIYfsqCKRDgUfjEXNN/JlrzauMuSEy5sbd7WXbtW3EH6A6MpwEh42c7qD+MqQo9QMJ6fWLAeIJynx0g6OAw== dependencies: - debug "^2.6.9" - pkg-dir "^2.0.0" + debug "^3.2.7" -eslint-plugin-import@^2.22.1: - version "2.22.1" - resolved "https://registry.yarnpkg.com/eslint-plugin-import/-/eslint-plugin-import-2.22.1.tgz#0896c7e6a0cf44109a2d97b95903c2bb689d7702" - integrity sha512-8K7JjINHOpH64ozkAhpT3sd+FswIZTfMZTjdx052pnWrgRCVfp8op9tbjpAk3DdUeI/Ba4C8OjdC0r90erHEOw== +eslint-plugin-import@^2.27.5: + version "2.27.5" + resolved "https://registry.yarnpkg.com/eslint-plugin-import/-/eslint-plugin-import-2.27.5.tgz#876a6d03f52608a3e5bb439c2550588e51dd6c65" + integrity sha512-LmEt3GVofgiGuiE+ORpnvP+kAm3h6MLZJ4Q5HCyHADofsb4VzXFsRiWj3c0OFiV+3DWFh0qg3v9gcPlfc3zRow== dependencies: - array-includes "^3.1.1" - array.prototype.flat "^1.2.3" - contains-path "^0.1.0" - debug "^2.6.9" - doctrine "1.5.0" - eslint-import-resolver-node "^0.3.4" - eslint-module-utils "^2.6.0" + array-includes "^3.1.6" + array.prototype.flat "^1.3.1" + array.prototype.flatmap "^1.3.1" + debug "^3.2.7" + doctrine "^2.1.0" + eslint-import-resolver-node "^0.3.7" + eslint-module-utils "^2.7.4" has "^1.0.3" - minimatch "^3.0.4" - object.values "^1.1.1" - read-pkg-up "^2.0.0" - resolve "^1.17.0" - tsconfig-paths "^3.9.0" + is-core-module "^2.11.0" + is-glob "^4.0.3" + minimatch "^3.1.2" + object.values "^1.1.6" + resolve "^1.22.1" + semver "^6.3.0" + tsconfig-paths "^3.14.1" eslint-plugin-jest@^24.1.0: version "24.1.0" @@ -6963,23 +6822,27 @@ eslint-plugin-jest@^24.1.0: dependencies: "@typescript-eslint/experimental-utils" "^4.0.1" -eslint-plugin-jsx-a11y@^6.5.1: - version "6.5.1" - resolved "https://registry.yarnpkg.com/eslint-plugin-jsx-a11y/-/eslint-plugin-jsx-a11y-6.5.1.tgz#cdbf2df901040ca140b6ec14715c988889c2a6d8" - integrity sha512-sVCFKX9fllURnXT2JwLN5Qgo24Ug5NF6dxhkmxsMEUZhXRcGg+X3e1JbJ84YePQKBl5E0ZjAH5Q4rkdcGY99+g== +eslint-plugin-jsx-a11y@^6.7.1: + version "6.7.1" + resolved "https://registry.yarnpkg.com/eslint-plugin-jsx-a11y/-/eslint-plugin-jsx-a11y-6.7.1.tgz#fca5e02d115f48c9a597a6894d5bcec2f7a76976" + integrity sha512-63Bog4iIethyo8smBklORknVjB0T2dwB8Mr/hIC+fBS0uyHdYYpzM/Ed+YC8VxTjlXHEWFOdmgwcDn1U2L9VCA== dependencies: - "@babel/runtime" "^7.16.3" - aria-query "^4.2.2" - array-includes "^3.1.4" + "@babel/runtime" "^7.20.7" + aria-query "^5.1.3" + array-includes "^3.1.6" + array.prototype.flatmap "^1.3.1" ast-types-flow "^0.0.7" - axe-core "^4.3.5" - axobject-query "^2.2.0" - damerau-levenshtein "^1.0.7" + axe-core "^4.6.2" + axobject-query "^3.1.1" + damerau-levenshtein "^1.0.8" emoji-regex "^9.2.2" has "^1.0.3" - jsx-ast-utils "^3.2.1" - language-tags "^1.0.5" - minimatch "^3.0.4" + jsx-ast-utils "^3.3.3" + language-tags "=1.0.5" + minimatch "^3.1.2" + object.entries "^1.1.6" + object.fromentries "^2.0.6" + semver "^6.3.0" eslint-plugin-local@^1.0.0: version "1.0.0" @@ -6994,15 +6857,10 @@ eslint-plugin-mocha@^10.1.0: eslint-utils "^3.0.0" rambda "^7.1.0" -eslint-plugin-prefer-object-spread@^1.2.1: - version "1.2.1" - resolved "https://registry.yarnpkg.com/eslint-plugin-prefer-object-spread/-/eslint-plugin-prefer-object-spread-1.2.1.tgz#27fb91853690cceb3ae6101d9c8aecc6a67a402c" - integrity sha1-J/uRhTaQzOs65hAdnIrsxqZ6QCw= - -eslint-plugin-prettier@^3.1.4: - version "3.1.4" - resolved "https://registry.yarnpkg.com/eslint-plugin-prettier/-/eslint-plugin-prettier-3.1.4.tgz#168ab43154e2ea57db992a2cd097c828171f75c2" - integrity sha512-jZDa8z76klRqo+TdGDTFJSavwbnWK2ZpqGKNZ+VvweMW516pDUMmQ2koXvxEE4JhzNvTv+radye/bWGBmA6jmg== +eslint-plugin-prettier@^4.2.1: + version "4.2.1" + resolved "https://registry.yarnpkg.com/eslint-plugin-prettier/-/eslint-plugin-prettier-4.2.1.tgz#651cbb88b1dab98bfd42f017a12fa6b2d993f94b" + integrity sha512-f/0rXLXUt0oFYs8ra4w49wYZBG5GKZpAYsJSm6rnYL5uVDjd+zowwMwVZHnAjf4edNrKpCDYfXDgmRE/Ak7QyQ== dependencies: prettier-linter-helpers "^1.0.0" @@ -7040,7 +6898,15 @@ eslint-scope@5.1.1, eslint-scope@^5.0.0, eslint-scope@^5.1.1: esrecurse "^4.3.0" estraverse "^4.1.1" -eslint-utils@^2.0.0, eslint-utils@^2.1.0: +eslint-scope@^7.2.0: + version "7.2.0" + resolved "https://registry.yarnpkg.com/eslint-scope/-/eslint-scope-7.2.0.tgz#f21ebdafda02352f103634b96dd47d9f81ca117b" + integrity sha512-DYj5deGlHBfMt15J7rdtyKNq/Nqlv5KfU4iodrQ019XESsRnwXH9KAE0y3cwtUHDo2ob7CypAnCqefh6vioWRw== + dependencies: + esrecurse "^4.3.0" + estraverse "^5.2.0" + +eslint-utils@^2.0.0: version "2.1.0" resolved "https://registry.yarnpkg.com/eslint-utils/-/eslint-utils-2.1.0.tgz#d2de5e03424e707dc10c74068ddedae708741b27" integrity sha512-w94dQYoauyvlDc43XnGB8lU3Zt713vNChgt4EWwhXAP2XkBvndfxF0AgIqKOOasjPIPzj9JqgwkwbCYD0/V3Zg== @@ -7054,72 +6920,74 @@ eslint-utils@^3.0.0: dependencies: eslint-visitor-keys "^2.0.0" -eslint-visitor-keys@^1.0.0, eslint-visitor-keys@^1.1.0, eslint-visitor-keys@^1.3.0: +eslint-visitor-keys@^1.1.0: version "1.3.0" resolved "https://registry.yarnpkg.com/eslint-visitor-keys/-/eslint-visitor-keys-1.3.0.tgz#30ebd1ef7c2fdff01c3a4f151044af25fab0523e" integrity sha512-6J72N8UNa462wa/KFODt/PJ3IU60SDpC3QXC1Hjc1BXXpfL2C9R5+AU7jhe0F6GREqVMh4Juu+NY7xn+6dipUQ== eslint-visitor-keys@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/eslint-visitor-keys/-/eslint-visitor-keys-2.0.0.tgz#21fdc8fbcd9c795cc0321f0563702095751511a8" - integrity sha512-QudtT6av5WXels9WjIM7qz1XD1cWGvX4gGXvp/zBn9nXG02D0utdU3Em2m/QjTnrsk6bBjmCygl3rmj118msQQ== - -eslint-visitor-keys@^3.0.0: - version "3.2.0" - resolved "https://registry.yarnpkg.com/eslint-visitor-keys/-/eslint-visitor-keys-3.2.0.tgz#6fbb166a6798ee5991358bc2daa1ba76cc1254a1" - integrity sha512-IOzT0X126zn7ALX0dwFiUQEdsfzrm4+ISsQS8nukaJXwEyYKRSnEIIDULYg1mCtGp7UUXgfGl7BIolXREQK+XQ== + version "2.1.0" + resolved "https://registry.yarnpkg.com/eslint-visitor-keys/-/eslint-visitor-keys-2.1.0.tgz#f65328259305927392c938ed44eb0a5c9b2bd303" + integrity sha512-0rSmRBzXgDzIsD6mGdJgevzgezI534Cer5L/vyMX0kHzT/jiB43jRhd9YUlMGYLQy2zprNmoT8qasCGtY+QaKw== -eslint@^7.10.0: - version "7.10.0" - resolved "https://registry.yarnpkg.com/eslint/-/eslint-7.10.0.tgz#494edb3e4750fb791133ca379e786a8f648c72b9" - integrity sha512-BDVffmqWl7JJXqCjAK6lWtcQThZB/aP1HXSH1JKwGwv0LQEdvpR7qzNrUT487RM39B5goWuboFad5ovMBmD8yA== - dependencies: - "@babel/code-frame" "^7.0.0" - "@eslint/eslintrc" "^0.1.3" +eslint-visitor-keys@^3.3.0, eslint-visitor-keys@^3.4.1: + version "3.4.1" + resolved "https://registry.yarnpkg.com/eslint-visitor-keys/-/eslint-visitor-keys-3.4.1.tgz#c22c48f48942d08ca824cc526211ae400478a994" + integrity sha512-pZnmmLwYzf+kWaM/Qgrvpen51upAktaaiI01nsJD/Yr3lMOdNtq0cxkrrg16w64VtisN6okbs7Q8AfGqj4c9fA== + +eslint@^8.41.0: + version "8.41.0" + resolved "https://registry.yarnpkg.com/eslint/-/eslint-8.41.0.tgz#3062ca73363b4714b16dbc1e60f035e6134b6f1c" + integrity sha512-WQDQpzGBOP5IrXPo4Hc0814r4/v2rrIsB0rhT7jtunIalgg6gYXWhRMOejVO8yH21T/FGaxjmFjBMNqcIlmH1Q== + dependencies: + "@eslint-community/eslint-utils" "^4.2.0" + "@eslint-community/regexpp" "^4.4.0" + "@eslint/eslintrc" "^2.0.3" + "@eslint/js" "8.41.0" + "@humanwhocodes/config-array" "^0.11.8" + "@humanwhocodes/module-importer" "^1.0.1" + "@nodelib/fs.walk" "^1.2.8" ajv "^6.10.0" chalk "^4.0.0" cross-spawn "^7.0.2" - debug "^4.0.1" + debug "^4.3.2" doctrine "^3.0.0" - enquirer "^2.3.5" - eslint-scope "^5.1.1" - eslint-utils "^2.1.0" - eslint-visitor-keys "^1.3.0" - espree "^7.3.0" - esquery "^1.2.0" + escape-string-regexp "^4.0.0" + eslint-scope "^7.2.0" + eslint-visitor-keys "^3.4.1" + espree "^9.5.2" + esquery "^1.4.2" esutils "^2.0.2" - file-entry-cache "^5.0.1" - functional-red-black-tree "^1.0.1" - glob-parent "^5.0.0" - globals "^12.1.0" - ignore "^4.0.6" + fast-deep-equal "^3.1.3" + file-entry-cache "^6.0.1" + find-up "^5.0.0" + glob-parent "^6.0.2" + globals "^13.19.0" + graphemer "^1.4.0" + ignore "^5.2.0" import-fresh "^3.0.0" imurmurhash "^0.1.4" is-glob "^4.0.0" - js-yaml "^3.13.1" + is-path-inside "^3.0.3" + js-yaml "^4.1.0" json-stable-stringify-without-jsonify "^1.0.1" levn "^0.4.1" - lodash "^4.17.19" - minimatch "^3.0.4" + lodash.merge "^4.6.2" + minimatch "^3.1.2" natural-compare "^1.4.0" optionator "^0.9.1" - progress "^2.0.0" - regexpp "^3.1.0" - semver "^7.2.1" - strip-ansi "^6.0.0" + strip-ansi "^6.0.1" strip-json-comments "^3.1.0" - table "^5.2.3" text-table "^0.2.0" - v8-compile-cache "^2.0.3" -espree@^7.3.0: - version "7.3.0" - resolved "https://registry.yarnpkg.com/espree/-/espree-7.3.0.tgz#dc30437cf67947cf576121ebd780f15eeac72348" - integrity sha512-dksIWsvKCixn1yrEXO8UosNSxaDoSYpq9reEjZSbHLpT5hpaCAKTLBwq0RHtLrIr+c0ByiYzWT8KTMRzoRCNlw== +espree@^9.5.2: + version "9.5.2" + resolved "https://registry.yarnpkg.com/espree/-/espree-9.5.2.tgz#e994e7dc33a082a7a82dceaf12883a829353215b" + integrity sha512-7OASN1Wma5fum5SrNhFMAMJxOUAbhyfQ8dQ//PJaJbNw0URTPWqIghHWt1MmAANKhHZIYOHruW4Kw4ruUWOdGw== dependencies: - acorn "^7.4.0" - acorn-jsx "^5.2.0" - eslint-visitor-keys "^1.3.0" + acorn "^8.8.0" + acorn-jsx "^5.3.2" + eslint-visitor-keys "^3.4.1" esprima@^2.6.0: version "2.7.3" @@ -7131,10 +6999,10 @@ esprima@^4.0.0, esprima@^4.0.1: resolved "https://registry.yarnpkg.com/esprima/-/esprima-4.0.1.tgz#13b04cdb3e6c5d19df91ab6987a8695619b0aa71" integrity sha512-eGuFFw7Upda+g4p+QHvnW0RyTX/SVeJBDM/gCtMARO0cLuT2HcEKnTPvhjV6aGeqrCB/sbNop0Kszm0jsaWU4A== -esquery@^1.2.0: - version "1.3.1" - resolved "https://registry.yarnpkg.com/esquery/-/esquery-1.3.1.tgz#b78b5828aa8e214e29fb74c4d5b752e1c033da57" - integrity sha512-olpvt9QG0vniUBZspVRN6lwB7hOZoTRtT+jzR+tS4ffYx2mzbw+z0XCOk44aaLYKApNX5nMm+E+P6o25ip/DHQ== +esquery@^1.4.2: + version "1.5.0" + resolved "https://registry.yarnpkg.com/esquery/-/esquery-1.5.0.tgz#6ce17738de8577694edd7361c57182ac8cb0db0b" + integrity sha512-YQLXUplAwJgCydQ78IMJywZCceoqk1oH01OERdSAJc/7U2AylwjhSCLDEtqwg811idIS/9fIU5GjG73IgjKMVg== dependencies: estraverse "^5.1.0" @@ -7193,24 +7061,11 @@ eventemitter3@^4.0.4: resolved "https://registry.yarnpkg.com/eventemitter3/-/eventemitter3-4.0.7.tgz#2de9b68f6528d5644ef5c59526a1b4a07306169f" integrity sha512-8guHBZCwKnFhYdHr2ysuRWErTwhoN2X8XELRlrRwpmfeY2jjuUN4taQMsULKUVo1K4DvZl+0pgfyoysHxvmvEw== -events@^3.0.0: - version "3.1.0" - resolved "https://registry.yarnpkg.com/events/-/events-3.1.0.tgz#84279af1b34cb75aa88bf5ff291f6d0bd9b31a59" - integrity sha512-Rv+u8MLHNOdMjTAFeT3nCjHn2aGlx435FP/sDHNaRhDEMwyI/aB22Kj2qIN8R0cw3z28psEQLYwxVKLsKrMgWg== - events@^3.2.0: version "3.3.0" resolved "https://registry.yarnpkg.com/events/-/events-3.3.0.tgz#31a95ad0a924e2d2c419a813aeb2c4e878ea7400" integrity sha512-mQw+2fkQbALzQ7V0MY0IqdnXNOeTtP4r0lN9z7AAawCXgqea7bDii20AYrIBrFd/Hx0M2Ocz6S111CaFkUcb0Q== -evp_bytestokey@^1.0.0, evp_bytestokey@^1.0.3: - version "1.0.3" - resolved "https://registry.yarnpkg.com/evp_bytestokey/-/evp_bytestokey-1.0.3.tgz#7fcbdb198dc71959432efe13842684e0525acb02" - integrity sha512-/f2Go4TognH/KvCISP7OUsHn85hT9nUkxxA9BEWxFn+Oj9o8ZNLm/40hdlgSLyuOimsrTKLUMEorQexp/aPQeA== - dependencies: - md5.js "^1.3.4" - safe-buffer "^5.1.1" - exec-sh@^0.3.2: version "0.3.4" resolved "https://registry.yarnpkg.com/exec-sh/-/exec-sh-0.3.4.tgz#3a018ceb526cc6f6df2bb504b2bfe8e3a4934ec5" @@ -7581,13 +7436,6 @@ figures@^5.0.0: escape-string-regexp "^5.0.0" is-unicode-supported "^1.2.0" -file-entry-cache@^5.0.1: - version "5.0.1" - resolved "https://registry.yarnpkg.com/file-entry-cache/-/file-entry-cache-5.0.1.tgz#ca0f6efa6dd3d561333fb14515065c2fafdf439c" - integrity sha512-bCg29ictuBaKUwwArK4ouCaqDgLZcysCFLmM/Yn/FDoqndh/9vNuQfXRDvTuXKLxfD/JtZQGKFT8MGcJBK644g== - dependencies: - flat-cache "^2.0.1" - file-entry-cache@^6.0.1: version "6.0.1" resolved "https://registry.yarnpkg.com/file-entry-cache/-/file-entry-cache-6.0.1.tgz#211b2dd9659cb0394b073e7323ac3c933d522027" @@ -7808,15 +7656,6 @@ first-chunk-stream@^2.0.0: dependencies: readable-stream "^2.0.2" -flat-cache@^2.0.1: - version "2.0.1" - resolved "https://registry.yarnpkg.com/flat-cache/-/flat-cache-2.0.1.tgz#5d296d6f04bda44a4630a301413bdbc2ec085ec0" - integrity sha512-LoQe6yDuUMDzQAEH8sgmh4Md6oZnc/7PjtwjNFSzveXqSHt6ka9fPBuso7IGf9Rz4uqnSnWiFH2B/zj24a5ReA== - dependencies: - flatted "^2.0.0" - rimraf "2.6.3" - write "1.0.3" - flat-cache@^3.0.4: version "3.0.4" resolved "https://registry.yarnpkg.com/flat-cache/-/flat-cache-3.0.4.tgz#61b0338302b2fe9f957dcc32fc2a87f1c3048b11" @@ -7825,11 +7664,6 @@ flat-cache@^3.0.4: flatted "^3.1.0" rimraf "^3.0.2" -flatted@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/flatted/-/flatted-2.0.0.tgz#55122b6536ea496b4b44893ee2608141d10d9916" - integrity sha512-R+H8IZclI8AAkSBRQJLVOsxwAoHd6WC40b4QTNWIjzAa6BXOBfQcM587MXDTVPeYaopFNWHUFLx7eNmHDSxMWg== - flatted@^3.1.0: version "3.2.7" resolved "https://registry.yarnpkg.com/flatted/-/flatted-3.2.7.tgz#609f39207cb614b89d0765b477cb2d437fbf9787" @@ -8080,11 +7914,6 @@ function.prototype.name@^1.1.0, function.prototype.name@^1.1.2, function.prototy es-abstract "^1.19.0" functions-have-names "^1.2.2" -functional-red-black-tree@^1.0.1: - version "1.0.1" - resolved "https://registry.yarnpkg.com/functional-red-black-tree/-/functional-red-black-tree-1.0.1.tgz#1b0ab3bd553b2a0d6399d29c0e3ea0b252078327" - integrity sha1-GwqzvVU7Kg1jmdKcDj6gslIHgyc= - functions-have-names@^1.2.2, functions-have-names@^1.2.3: version "1.2.3" resolved "https://registry.yarnpkg.com/functions-have-names/-/functions-have-names-1.2.3.tgz#0404fe4ee2ba2f607f0e0ec3c80bae994133b834" @@ -8175,11 +8004,6 @@ get-stdin@^4.0.1: resolved "https://registry.yarnpkg.com/get-stdin/-/get-stdin-4.0.1.tgz#b968c6b0a04384324902e8bf1a5df32579a450fe" integrity sha1-uWjGsKBDhDJJAui/Gl3zJXmkUP4= -get-stdin@^6.0.0: - version "6.0.0" - resolved "https://registry.yarnpkg.com/get-stdin/-/get-stdin-6.0.0.tgz#9e09bf712b360ab9225e812048f71fde9c89657b" - integrity sha512-jp4tHawyV7+fkkSKyvjuLZswblUtz+SQKzSWnBbii16BuZksJlU1wuBYXY75r+duh/llF1ur6oNwi+2ZzjKZ7g== - get-stdin@^8.0.0: version "8.0.0" resolved "https://registry.yarnpkg.com/get-stdin/-/get-stdin-8.0.0.tgz#cbad6a73feb75f6eeb22ba9e01f89aa28aa97a53" @@ -8290,13 +8114,20 @@ glob-parent@^3.1.0: is-glob "^3.1.0" path-dirname "^1.0.0" -glob-parent@^5.0.0, glob-parent@^5.1.2, glob-parent@~5.1.2: +glob-parent@^5.1.2, glob-parent@~5.1.2: version "5.1.2" resolved "https://registry.yarnpkg.com/glob-parent/-/glob-parent-5.1.2.tgz#869832c58034fe68a4093c17dc15e8340d8401c4" integrity sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow== dependencies: is-glob "^4.0.1" +glob-parent@^6.0.2: + version "6.0.2" + resolved "https://registry.yarnpkg.com/glob-parent/-/glob-parent-6.0.2.tgz#6d237d99083950c79290f24c7642a3de9a28f9e3" + integrity sha512-XxwI8EOhVQgWp6iDL+3b0r86f4d6AX6zSU55HfB4ydCEuXLXc5FcYeOu+nnGftS4TEju/11rt4KJPTMgbfmv4A== + dependencies: + is-glob "^4.0.3" + glob-to-regexp@^0.3.0: version "0.3.0" resolved "https://registry.yarnpkg.com/glob-to-regexp/-/glob-to-regexp-0.3.0.tgz#8c5a1494d2066c570cc3bfe4496175acc4d502ab" @@ -8418,12 +8249,12 @@ globals@^11.1.0: resolved "https://registry.yarnpkg.com/globals/-/globals-11.1.0.tgz#632644457f5f0e3ae711807183700ebf2e4633e4" integrity sha512-uEuWt9mqTlPDwSqi+sHjD4nWU/1N+q0fiWI9T1mZpD2UENqX20CFD5T/ziLZvztPaBKl7ZylUi1q6Qfm7E2CiQ== -globals@^12.1.0: - version "12.4.0" - resolved "https://registry.yarnpkg.com/globals/-/globals-12.4.0.tgz#a18813576a41b00a24a97e7f815918c2e19925f8" - integrity sha512-BWICuzzDvDoH54NHKCseDanAhE3CeDorgDL5MT6LMXXj2WCnd9UC2szdk4AWLfjdgNBCXLUanXYcpBBKOSWGwg== +globals@^13.19.0: + version "13.20.0" + resolved "https://registry.yarnpkg.com/globals/-/globals-13.20.0.tgz#ea276a1e508ffd4f1612888f9d1bad1e2717bf82" + integrity sha512-Qg5QtVkCy/kv3FUSlu4ukeZDVf9ee0iXLAUYX13gbR17bnejFTzr4iS9bY7kwCf1NztRNm1t91fjOiyx4CSwPQ== dependencies: - type-fest "^0.8.1" + type-fest "^0.20.2" globals@^9.18.0: version "9.18.0" @@ -8460,7 +8291,7 @@ globby@6.1.0: pify "^2.0.0" pinkie-promise "^2.0.0" -globby@^11.0.0, globby@^11.0.1, globby@^11.0.4, globby@^11.1.0: +globby@^11.0.0, globby@^11.0.1, globby@^11.1.0: version "11.1.0" resolved "https://registry.yarnpkg.com/globby/-/globby-11.1.0.tgz#bd4be98bb042f83d796f7e3811991fbe82a0d34b" integrity sha512-jhIXaOzy1sb8IyocaruWSn1TjmnBVs8Ayhcy83rmxNJ8q2uWKCAj3CnJY+KpGSXCueAPc0i05kVvVKtP1t9S3g== @@ -8590,6 +8421,16 @@ graceful-fs@^4.1.11, graceful-fs@^4.1.15, graceful-fs@^4.1.2, graceful-fs@^4.1.5 resolved "https://registry.yarnpkg.com/graceful-fs/-/graceful-fs-4.2.10.tgz#147d3a006da4ca3ce14728c7aefc287c367d7a6c" integrity sha512-9ByhssR2fPVsNZj478qUUbKfmL0+t5BDVyjShtyZZLiK7ZDAArFFfopyOTj0M05wE2tJPisA4iTnnXl2YoPvOA== +grapheme-splitter@^1.0.4: + version "1.0.4" + resolved "https://registry.yarnpkg.com/grapheme-splitter/-/grapheme-splitter-1.0.4.tgz#9cf3a665c6247479896834af35cf1dbb4400767e" + integrity sha512-bzh50DW9kTPM00T8y4o8vQg89Di9oLJVLW/KaOGIXJWP/iqCN6WKYkbNOF04vFLJhwcpYUh9ydh/+5vpOqV4YQ== + +graphemer@^1.4.0: + version "1.4.0" + resolved "https://registry.yarnpkg.com/graphemer/-/graphemer-1.4.0.tgz#fb2f1d55e0e3a1849aeffc90c4fa0dd53a0e66c6" + integrity sha512-EtKwoO6kxCL9WO5xipiHTZlSzBm7WLT627TqC/uVRd0HKmq8NXyebnNYxDoBi7wt8eTWrUrKXCOVaFq9x1kgag== + grouped-queue@^1.1.0: version "1.1.0" resolved "https://registry.yarnpkg.com/grouped-queue/-/grouped-queue-1.1.0.tgz#63e3f9ca90af952269d1d40879e41221eacc74cb" @@ -8746,29 +8587,6 @@ has@^1.0.0, has@^1.0.3: dependencies: function-bind "^1.1.1" -hash-base@^2.0.0: - version "2.0.2" - resolved "https://registry.yarnpkg.com/hash-base/-/hash-base-2.0.2.tgz#66ea1d856db4e8a5470cadf6fce23ae5244ef2e1" - integrity sha1-ZuodhW206KVHDK32/OI65SRO8uE= - dependencies: - inherits "^2.0.1" - -hash-base@^3.0.0: - version "3.0.4" - resolved "https://registry.yarnpkg.com/hash-base/-/hash-base-3.0.4.tgz#5fc8686847ecd73499403319a6b0a3f3f6ae4918" - integrity sha1-X8hoaEfs1zSZQDMZprCj8/auSRg= - dependencies: - inherits "^2.0.1" - safe-buffer "^5.0.1" - -hash.js@^1.0.0, hash.js@^1.0.3: - version "1.1.3" - resolved "https://registry.yarnpkg.com/hash.js/-/hash.js-1.1.3.tgz#340dedbe6290187151c1ea1d777a3448935df846" - integrity sha512-/UETyP0W22QILqS+6HowevwhEFJ3MBJnwTf75Qob9Wz9t0DPuisL8kW8YZMK62dHAKE1c1p+gY1TtOLY+USEHA== - dependencies: - inherits "^2.0.3" - minimalistic-assert "^1.0.0" - hasha@^5.0.0: version "5.2.2" resolved "https://registry.yarnpkg.com/hasha/-/hasha-5.2.2.tgz#a48477989b3b327aea3c04f53096d816d97522a1" @@ -8903,15 +8721,6 @@ history@^4.9.0: tiny-warning "^1.0.0" value-equal "^1.0.1" -hmac-drbg@^1.0.0: - version "1.0.1" - resolved "https://registry.yarnpkg.com/hmac-drbg/-/hmac-drbg-1.0.1.tgz#d2745701025a6c775a6c545793ed502fc0c649a1" - integrity sha1-0nRXAQJabHdabFRXk+1QL8DGSaE= - dependencies: - hash.js "^1.0.3" - minimalistic-assert "^1.0.0" - minimalistic-crypto-utils "^1.0.1" - hoist-non-react-statics@^3.1.0, hoist-non-react-statics@^3.3.0, hoist-non-react-statics@^3.3.1, hoist-non-react-statics@^3.3.2: version "3.3.2" resolved "https://registry.yarnpkg.com/hoist-non-react-statics/-/hoist-non-react-statics-3.3.2.tgz#ece0acaf71d62c2969c2ec59feff42a4b1a85b45" @@ -9176,11 +8985,6 @@ http2-wrapper@^1.0.0-beta.5.2: quick-lru "^5.1.1" resolve-alpn "^1.0.0" -https-browserify@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/https-browserify/-/https-browserify-1.0.0.tgz#ec06c10e0a34c0f2faf199f7fd7fc78fffd03c73" - integrity sha1-7AbBDgo0wPL68Zn3/X/Hj//QPHM= - https-proxy-agent@^2.1.0: version "2.2.4" resolved "https://registry.yarnpkg.com/https-proxy-agent/-/https-proxy-agent-2.2.4.tgz#4ee7a737abd92678a293d9b34a1af4d0d08c787b" @@ -9253,7 +9057,7 @@ icss-utils@^5.0.0, icss-utils@^5.1.0: resolved "https://registry.yarnpkg.com/icss-utils/-/icss-utils-5.1.0.tgz#c6be6858abd013d768e98366ae47e25d5887b1ae" integrity sha512-soFhflCVWLfRNOPU3iv5Z9VUdT44xFRbzjLsEzSr5AQmgqPMTHdU3PMT1Cf1ssx8fLNJDA1juftYl+PUcv3MqA== -ieee754@^1.1.13, ieee754@^1.1.4, ieee754@^1.2.1: +ieee754@^1.1.13, ieee754@^1.2.1: version "1.2.1" resolved "https://registry.yarnpkg.com/ieee754/-/ieee754-1.2.1.tgz#8eb7a10a63fff25d15a57b001586d177d1b0d352" integrity sha512-dcyqhDvX1C46lXZcVqCpK+FtMRQVdIMN6/Df5js2zouUsqG7I6sFxitIC+7KYK29KdXOLHdu9zL4sFnoVQnqaA== @@ -9270,7 +9074,7 @@ ignore-walk@^4.0.1: dependencies: minimatch "^3.0.4" -ignore@4.0.6, ignore@^4.0.3, ignore@^4.0.6: +ignore@4.0.6, ignore@^4.0.3: version "4.0.6" resolved "https://registry.yarnpkg.com/ignore/-/ignore-4.0.6.tgz#750e3db5862087b4737ebac8207ffd1ef27b25fc" integrity sha512-cyFDKrqc/YdcWFniJhzI42+AzS+gNwmUzOSFcRCQYwySuBBBy/KjuxWLZ/FHEH6Moq1NizMOBWyTcv8O4OZIMg== @@ -9280,7 +9084,7 @@ ignore@^3.3.5: resolved "https://registry.yarnpkg.com/ignore/-/ignore-3.3.10.tgz#0a97fb876986e8081c631160f8f9f389157f0043" integrity sha512-Pgs951kaMm5GXP7MOvxERINe3gsaVjUWFm+UZPSq9xYriQAksyhg0csnS0KXSNRD5NmNdapXEpjxG49+AKh/ug== -ignore@^5.1.4, ignore@^5.1.8, ignore@^5.2.0: +ignore@^5.1.4, ignore@^5.2.0: version "5.2.0" resolved "https://registry.yarnpkg.com/ignore/-/ignore-5.2.0.tgz#6d3bac8fa7fe0d45d9f9be7bac2fc279577e345a" integrity sha512-CmxgYGiEPCLhfLnpPp1MoRmifwEIOgjcHXxOBjv7mY96c+eWScsOP9c112ZyLdWHi0FxHjI+4uVhKYp/gcdRmQ== @@ -9384,16 +9188,11 @@ inflight@^1.0.4: once "^1.3.0" wrappy "1" -inherits@2, inherits@2.0.4, inherits@^2.0.0, inherits@^2.0.1, inherits@^2.0.3, inherits@^2.0.4, inherits@~2.0.1, inherits@~2.0.3: +inherits@2, inherits@2.0.4, inherits@^2.0.0, inherits@^2.0.1, inherits@^2.0.3, inherits@^2.0.4, inherits@~2.0.3: version "2.0.4" resolved "https://registry.yarnpkg.com/inherits/-/inherits-2.0.4.tgz#0fa2c64f932917c3433a0ded55363aae37416b7c" integrity sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ== -inherits@2.0.1: - version "2.0.1" - resolved "https://registry.yarnpkg.com/inherits/-/inherits-2.0.1.tgz#b17d08d326b4423e568eff719f91b0b1cbdf69f1" - integrity sha1-sX0I0ya0Qj5Wjv9xn5GwscvfafE= - inherits@2.0.3: version "2.0.3" resolved "https://registry.yarnpkg.com/inherits/-/inherits-2.0.3.tgz#633c2c83e3da42a502f52466022480f4208261de" @@ -9514,7 +9313,7 @@ inquirer@^9.1.4: through "^2.3.6" wrap-ansi "^8.0.1" -internal-slot@^1.0.3, internal-slot@^1.0.5: +internal-slot@^1.0.3, internal-slot@^1.0.4, internal-slot@^1.0.5: version "1.0.5" resolved "https://registry.yarnpkg.com/internal-slot/-/internal-slot-1.0.5.tgz#f2a2ee21f668f8627a4667f309dc0f4fb6674986" integrity sha512-Y+R5hJrzs52QCG2laLn4udYVnxsfny9CpOhNhUvk/SSSVyF6T27FzRbF0sroPidSu3X8oEAkOn2K804mjpt6UQ== @@ -9528,7 +9327,7 @@ internmap@^1.0.0: resolved "https://registry.yarnpkg.com/internmap/-/internmap-1.0.1.tgz#0017cc8a3b99605f0302f2b198d272e015e5df95" integrity sha512-lDB5YccMydFBtasVtxnZ3MRBHuaoE8GKsppq+EchKL2U4nK/DmEpPHNH8MZe5HkMtpSiTSOZwfN0tzYjO/lJEw== -interpret@^1.0.0, interpret@^1.2.0: +interpret@^1.0.0, interpret@^1.4.0: version "1.4.0" resolved "https://registry.yarnpkg.com/interpret/-/interpret-1.4.0.tgz#665ab8bc4da27a774a40584e812e3e0fa45b1a1e" integrity sha512-agE4QfB2Lkp9uICn7BAqoscw4SZP9kTE2hxiFI3jBPmXJfdqiahTbUuKGsMoN2GtqL9AxhYioAcVvgsb1HvRbA== @@ -9605,6 +9404,14 @@ is-alphanumerical@^1.0.0: is-alphabetical "^1.0.0" is-decimal "^1.0.0" +is-arguments@^1.1.1: + version "1.1.1" + resolved "https://registry.yarnpkg.com/is-arguments/-/is-arguments-1.1.1.tgz#15b3f88fda01f2a97fec84ca761a560f123efa9b" + integrity sha512-8Q7EARjzEnKpt/PCD7e1cgUS0a6X8u5tdSiMqXhojOdoV9TsMsiO+9VLC5vAmO8N7/GmXn7yjR8qnA6bVAEzfA== + dependencies: + call-bind "^1.0.2" + has-tostringtag "^1.0.0" + is-array-buffer@^3.0.1, is-array-buffer@^3.0.2: version "3.0.2" resolved "https://registry.yarnpkg.com/is-array-buffer/-/is-array-buffer-3.0.2.tgz#f2653ced8412081638ecb0ebbd0c41c6e0aecbbe" @@ -9694,10 +9501,10 @@ is-color-stop@^1.0.0: rgb-regex "^1.0.1" rgba-regex "^1.0.0" -is-core-module@^2.5.0, is-core-module@^2.9.0: - version "2.10.0" - resolved "https://registry.yarnpkg.com/is-core-module/-/is-core-module-2.10.0.tgz#9012ede0a91c69587e647514e1d5277019e728ed" - integrity sha512-Erxj2n/LDAZ7H8WNJXd9tw38GYM3dv8rk8Zcs+jJuxYTW7sozH+SS8NtrSjVL1/vpLvWi1hxy96IzjJ3EHTJJg== +is-core-module@^2.11.0, is-core-module@^2.5.0, is-core-module@^2.7.0, is-core-module@^2.9.0: + version "2.12.1" + resolved "https://registry.yarnpkg.com/is-core-module/-/is-core-module-2.12.1.tgz#0c0b6885b6f80011c71541ce15c8d66cf5a4f9fd" + integrity sha512-Q4ZuBAe2FUsKtyQJoQHlvP8OvBERxO3jEmy1I7hcRXcJBGGHFh/aJBswbXuS9sgrDH2QUO8ilkwNPHvHMd8clg== dependencies: has "^1.0.3" @@ -9715,10 +9522,12 @@ is-data-descriptor@^1.0.0: dependencies: kind-of "^6.0.0" -is-date-object@^1.0.1: - version "1.0.1" - resolved "https://registry.yarnpkg.com/is-date-object/-/is-date-object-1.0.1.tgz#9aa20eb6aeebbff77fbd33e74ca01b33581d3a16" - integrity sha1-mqIOtq7rv/d/vTPnTKAbM1gdOhY= +is-date-object@^1.0.1, is-date-object@^1.0.5: + version "1.0.5" + resolved "https://registry.yarnpkg.com/is-date-object/-/is-date-object-1.0.5.tgz#0841d5536e724c25597bf6ea62e1bd38298df31f" + integrity sha512-9YQaSxsAiSwcvS33MBk3wTCVnWK+HhF8VZR2jRxehM16QcVOdHqPn4VPHmRK4lSr38n9JriurInLcP90xsYNfQ== + dependencies: + has-tostringtag "^1.0.0" is-decimal@^1.0.0, is-decimal@^1.0.2: version "1.0.4" @@ -9847,6 +9656,11 @@ is-lambda@^1.0.1: resolved "https://registry.yarnpkg.com/is-lambda/-/is-lambda-1.0.1.tgz#3d9877899e6a53efc0160504cde15f82e6f061d5" integrity sha512-z7CMFGNrENq5iFB9Bqo64Xk6Y9sg+epq1myIcdHaGnbMTYOxvzsEtdYqQUylB7LxfkvgrrjP32T6Ywciio9UIQ== +is-map@^2.0.1, is-map@^2.0.2: + version "2.0.2" + resolved "https://registry.yarnpkg.com/is-map/-/is-map-2.0.2.tgz#00922db8c9bf73e81b7a335827bc2a43f2b91127" + integrity sha512-cOZFQQozTha1f4MxLFzlgKYPTyj26picdZTx82hbc/Xf4K/tZOOXSCkMvU4pKioRXGDLJRn0GM7Upe7kR721yg== + is-negative-zero@^2.0.2: version "2.0.2" resolved "https://registry.yarnpkg.com/is-negative-zero/-/is-negative-zero-2.0.2.tgz#7bf6f03a28003b8b3965de3ac26f664d765f3150" @@ -9901,7 +9715,7 @@ is-path-inside@^1.0.0: dependencies: path-is-inside "^1.0.1" -is-path-inside@^3.0.2: +is-path-inside@^3.0.2, is-path-inside@^3.0.3: version "3.0.3" resolved "https://registry.yarnpkg.com/is-path-inside/-/is-path-inside-3.0.3.tgz#d231362e53a07ff2b0e0ea7fed049161ffd16283" integrity sha512-Fd4gABb+ycGAmKou8eMftCupSir5lRxqf4aD/vd0cD2qc4HL07OjCeuHMr8Ro4CoMaeCKDB0/ECBOVWjTwUvPQ== @@ -9985,6 +9799,11 @@ is-scoped@^2.1.0: dependencies: scoped-regex "^2.0.0" +is-set@^2.0.1, is-set@^2.0.2: + version "2.0.2" + resolved "https://registry.yarnpkg.com/is-set/-/is-set-2.0.2.tgz#90755fa4c2562dc1c5d4024760d6119b94ca18ec" + integrity sha512-+2cnTEZeY5z/iXGbLhPrOAaK/Mau5k5eXq9j14CpRTftq0pAJu2MwVRSZhyZWBzx3o6X795Lz6Bpb6R0GKf37g== + is-shared-array-buffer@^1.0.2: version "1.0.2" resolved "https://registry.yarnpkg.com/is-shared-array-buffer/-/is-shared-array-buffer-1.0.2.tgz#8f259c573b60b6a32d4058a1a07430c0a7344c79" @@ -10064,6 +9883,11 @@ is-utf8@^0.2.0, is-utf8@^0.2.1: resolved "https://registry.yarnpkg.com/is-utf8/-/is-utf8-0.2.1.tgz#4b0da1442104d1b336340e80797e865cf39f7d72" integrity sha1-Sw2hRCEE0bM2NA6AeX6GXPOffXI= +is-weakmap@^2.0.1: + version "2.0.1" + resolved "https://registry.yarnpkg.com/is-weakmap/-/is-weakmap-2.0.1.tgz#5008b59bdc43b698201d18f62b37b2ca243e8cf2" + integrity sha512-NSBR4kH5oVj1Uwvv970ruUkCV7O1mzgVFO4/rev2cLRda9Tm9HrL70ZPut4rOHgY0FNrUu9BCbXA2sdQ+x0chA== + is-weakref@^1.0.2: version "1.0.2" resolved "https://registry.yarnpkg.com/is-weakref/-/is-weakref-1.0.2.tgz#9529f383a9338205e89765e0392efc2f100f06f2" @@ -10071,6 +9895,14 @@ is-weakref@^1.0.2: dependencies: call-bind "^1.0.2" +is-weakset@^2.0.1: + version "2.0.2" + resolved "https://registry.yarnpkg.com/is-weakset/-/is-weakset-2.0.2.tgz#4569d67a747a1ce5a994dfd4ef6dcea76e7c0a1d" + integrity sha512-t2yVvttHkQktwnNNmBQ98AhENLdPUTDTE21uPqAQ0ARwQfGeQKRVS0NNurH7bTf7RrvcVn1OOge45CnBeHCSmg== + dependencies: + call-bind "^1.0.2" + get-intrinsic "^1.1.1" + is-whitespace-character@^1.0.0: version "1.0.4" resolved "https://registry.yarnpkg.com/is-whitespace-character/-/is-whitespace-character-1.0.4.tgz#0858edd94a95594c7c9dd0b5c174ec6e45ee4aa7" @@ -10113,11 +9945,16 @@ isarray@0.0.1: resolved "https://registry.yarnpkg.com/isarray/-/isarray-0.0.1.tgz#8a18acfca9a8f4177e09abfc6038939b05d1eedf" integrity sha1-ihis/Kmo9Bd+Cav8YDiTmwXR7t8= -isarray@1.0.0, isarray@^1.0.0, isarray@~1.0.0: +isarray@1.0.0, isarray@~1.0.0: version "1.0.0" resolved "https://registry.yarnpkg.com/isarray/-/isarray-1.0.0.tgz#bb935d48582cba168c06834957a54a3e07124f11" integrity sha1-u5NdSFgsuhaMBoNJV6VKPgcSTxE= +isarray@^2.0.5: + version "2.0.5" + resolved "https://registry.yarnpkg.com/isarray/-/isarray-2.0.5.tgz#8af1e4c1221244cc62459faf38940d4e644a5723" + integrity sha512-xHjhDr3cNBK0BzdUJSPXZntQUx/mwMS5Rw4A7lPJ90XGAO6ISP/ePDNuo0vhqOZU+UD5JoodwCAAoZQd3FeAKw== + isbinaryfile@^4.0.0: version "4.0.6" resolved "https://registry.yarnpkg.com/isbinaryfile/-/isbinaryfile-4.0.6.tgz#edcb62b224e2b4710830b67498c8e4e5a4d2610b" @@ -10692,6 +10529,13 @@ js-yaml@3.14.1, js-yaml@^3.13.0, js-yaml@^3.13.1: argparse "^1.0.7" esprima "^4.0.0" +js-yaml@^4.1.0: + version "4.1.0" + resolved "https://registry.yarnpkg.com/js-yaml/-/js-yaml-4.1.0.tgz#c1fb65f8f5017901cdd2c951864ba18458a10602" + integrity sha512-wpxZs9NoxZaJESJGIZTyDEaYpl0FKSA+FB9aJiyemKhMwkxQg63h4T1KJgUGHpTqPDNRcmmYLugrRjJlBtWvRA== + dependencies: + argparse "^2.0.1" + js-yaml@~3.7.0: version "3.7.0" resolved "https://registry.yarnpkg.com/js-yaml/-/js-yaml-3.7.0.tgz#5c967ddd837a9bfdca5f2de84253abe8a1c03b80" @@ -10809,10 +10653,10 @@ json-stringify-safe@^5.0.1, json-stringify-safe@~5.0.1: resolved "https://registry.yarnpkg.com/json-stringify-safe/-/json-stringify-safe-5.0.1.tgz#1296a2d58fd45f19a0f6ce01d65701e2c735b6eb" integrity sha1-Epai1Y/UXxmg9s4B1lcB4sc1tus= -json5@^1.0.1: - version "1.0.1" - resolved "https://registry.yarnpkg.com/json5/-/json5-1.0.1.tgz#779fb0018604fa854eacbf6252180d83543e3dbe" - integrity sha512-aKS4WQjPenRxiQsC93MNfjx+nbF4PAdYzmd/1JIj8HYzqfbu86beTuNgXDzPknWk0n0uARlyewZo4s++ES36Ow== +json5@^1.0.1, json5@^1.0.2: + version "1.0.2" + resolved "https://registry.yarnpkg.com/json5/-/json5-1.0.2.tgz#63d98d60f21b313b77c4d6da18bfa69d80e1d593" + integrity sha512-g1MWMLBiz8FKi1e4w0UyVL3w+iJceWAFBAaBnnGKOpNa5f8TLktkbre1+s6oICydWAm+HRUGTmI+//xv2hvXYA== dependencies: minimist "^1.2.0" @@ -10874,7 +10718,7 @@ jsprim@^2.0.2: json-schema "0.4.0" verror "1.10.0" -"jsx-ast-utils@^2.4.1 || ^3.0.0", jsx-ast-utils@^3.2.1: +"jsx-ast-utils@^2.4.1 || ^3.0.0", jsx-ast-utils@^3.3.3: version "3.3.3" resolved "https://registry.yarnpkg.com/jsx-ast-utils/-/jsx-ast-utils-3.3.3.tgz#76b3e6e6cece5c69d49a5792c3d01bd1a0cdc7ea" integrity sha512-fYQHZTZ8jSfmWZ0iyzfwiU4WDX4HpHbMCZ3gPlWYiCl3BoeOTsqKBqnTVfH2rYT7eP5c3sVbeSPHnnJOaTrWiw== @@ -10964,10 +10808,10 @@ language-subtag-registry@~0.3.2: resolved "https://registry.yarnpkg.com/language-subtag-registry/-/language-subtag-registry-0.3.20.tgz#a00a37121894f224f763268e431c55556b0c0755" integrity sha512-KPMwROklF4tEx283Xw0pNKtfTj1gZ4UByp4EsIFWLgBavJltF4TiYPc39k06zSTsLzxTVXXDSpbwaQXaFB4Qeg== -language-tags@^1.0.5: +language-tags@=1.0.5: version "1.0.5" resolved "https://registry.yarnpkg.com/language-tags/-/language-tags-1.0.5.tgz#d321dbc4da30ba8bf3024e040fa5c14661f9193a" - integrity sha1-0yHbxNowuovzAk4ED6XBRmH5GTo= + integrity sha512-qJhlO9cGXi6hBGKoxEG/sKZDAHD5Hnu9Hs4WbOY3pCWXDhw0N8x1NenNzm2EnNLkLkk7J2SdxAkDSbb6ftT+UQ== dependencies: language-subtag-registry "~0.3.2" @@ -11061,16 +10905,6 @@ listr2@^3.8.3: through "^2.3.8" wrap-ansi "^7.0.0" -load-json-file@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/load-json-file/-/load-json-file-2.0.0.tgz#7947e42149af80d696cbf797bcaabcfe1fe29ca8" - integrity sha1-eUfkIUmvgNaWy/eXvKq8/h/inKg= - dependencies: - graceful-fs "^4.1.2" - parse-json "^2.2.0" - pify "^2.0.0" - strip-bom "^3.0.0" - load-json-file@^4.0.0: version "4.0.0" resolved "https://registry.yarnpkg.com/load-json-file/-/load-json-file-4.0.0.tgz#2f5f45ab91e33216234fd53adab668eb4ec0993b" @@ -11181,6 +11015,11 @@ lodash.memoize@^4.1.2: resolved "https://registry.yarnpkg.com/lodash.memoize/-/lodash.memoize-4.1.2.tgz#bcc6c49a42a2840ed997f323eada5ecd182e0bfe" integrity sha1-vMbEmkKihA7Zl/Mj6tpezRguC/4= +lodash.merge@^4.6.2: + version "4.6.2" + resolved "https://registry.yarnpkg.com/lodash.merge/-/lodash.merge-4.6.2.tgz#558aa53b43b661e1925a0afdfa36a9a1085fe57a" + integrity sha512-0KpjqXRVvrYyCsX1swR/XTK0va6VQkQM6MNo7PqW77ByjAhoARA8EfrP1N4+KlKj8YS0ZUCtRT/YUuhyYDujIQ== + lodash.once@^4.1.1: version "4.1.1" resolved "https://registry.yarnpkg.com/lodash.once/-/lodash.once-4.1.1.tgz#0dd3971213c7c56df880977d504c88fb471a97ac" @@ -11489,14 +11328,6 @@ mathml-tag-names@^2.1.3: resolved "https://registry.yarnpkg.com/mathml-tag-names/-/mathml-tag-names-2.1.3.tgz#4ddadd67308e780cf16a47685878ee27b736a0a3" integrity sha512-APMBEanjybaPzUrfqU0IMU5I0AswKMH7k8OTLs0vvV4KZpExkTkY87nR/zpbuTPj+gARop7aGUbl11pnDfW6xg== -md5.js@^1.3.4: - version "1.3.4" - resolved "https://registry.yarnpkg.com/md5.js/-/md5.js-1.3.4.tgz#e9bdbde94a20a5ac18b04340fc5764d5b09d901d" - integrity sha1-6b296UogpawYsENA/Fdk1bCdkB0= - dependencies: - hash-base "^3.0.0" - inherits "^2.0.1" - mdast-util-definitions@^4.0.0: version "4.0.0" resolved "https://registry.yarnpkg.com/mdast-util-definitions/-/mdast-util-definitions-4.0.0.tgz#c5c1a84db799173b4dcf7643cda999e440c24db2" @@ -11739,14 +11570,6 @@ micromatch@^4.0.5: braces "^3.0.2" picomatch "^2.3.1" -miller-rabin@^4.0.0: - version "4.0.1" - resolved "https://registry.yarnpkg.com/miller-rabin/-/miller-rabin-4.0.1.tgz#f080351c865b0dc562a8462966daa53543c78a4d" - integrity sha512-115fLhvZVqWwHPbClyntxEVfVDfl9DLLTuJvq3g2O/Oxi8AiNouAHvDSzHS0viUJc+V5vm3eq91Xwqn9dp4jRA== - dependencies: - bn.js "^4.0.0" - brorand "^1.0.1" - mime-db@1.52.0, "mime-db@>= 1.43.0 < 2": version "1.52.0" resolved "https://registry.yarnpkg.com/mime-db/-/mime-db-1.52.0.tgz#bbabcdc02859f4987301c856e3387ce5ec43bf70" @@ -11812,11 +11635,6 @@ minimalistic-assert@^1.0.0: resolved "https://registry.yarnpkg.com/minimalistic-assert/-/minimalistic-assert-1.0.0.tgz#702be2dda6b37f4836bcb3f5db56641b64a1d3d3" integrity sha1-cCvi3aazf0g2vLP121ZkG2Sh09M= -minimalistic-crypto-utils@^1.0.0, minimalistic-crypto-utils@^1.0.1: - version "1.0.1" - resolved "https://registry.yarnpkg.com/minimalistic-crypto-utils/-/minimalistic-crypto-utils-1.0.1.tgz#f6c00c1c0b082246e5c4d99dfb8c7c083b2b582a" - integrity sha1-9sAMHAsIIkblxNmd+4x8CDsrWCo= - minimatch@3.0.4, minimatch@3.0.x, minimatch@^3.0.4: version "3.0.4" resolved "https://registry.yarnpkg.com/minimatch/-/minimatch-3.0.4.tgz#5166e286457f03306064be5497e8dbb0c3d32083" @@ -11824,7 +11642,7 @@ minimatch@3.0.4, minimatch@3.0.x, minimatch@^3.0.4: dependencies: brace-expansion "^1.1.7" -minimatch@^3.1.1, minimatch@^3.1.2: +minimatch@^3.0.5, minimatch@^3.1.1, minimatch@^3.1.2: version "3.1.2" resolved "https://registry.yarnpkg.com/minimatch/-/minimatch-3.1.2.tgz#19cd194bfd3e428f049a70817c038d89ab4be35b" integrity sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw== @@ -12164,6 +11982,11 @@ nanomatch@^1.2.9: snapdragon "^0.8.1" to-regex "^3.0.1" +natural-compare-lite@^1.4.0: + version "1.4.0" + resolved "https://registry.yarnpkg.com/natural-compare-lite/-/natural-compare-lite-1.4.0.tgz#17b09581988979fddafe0201e931ba933c96cbb4" + integrity sha512-Tj+HTDSJJKaZnfiuw+iaF9skdPpTo2GtEly5JHnWV/hfv2Qj/9RKsGISQtLh2ox3l5EAGw487hnBee0sIJ6v2g== + natural-compare@^1.4.0: version "1.4.0" resolved "https://registry.yarnpkg.com/natural-compare/-/natural-compare-1.4.0.tgz#4abebfeed7541f2c27acfb29bdbbd15c8d5ba4f7" @@ -12248,35 +12071,6 @@ node-int64@^0.4.0: resolved "https://registry.yarnpkg.com/node-int64/-/node-int64-0.4.0.tgz#87a9065cdb355d3182d8f94ce11188b825c68a3b" integrity sha1-h6kGXNs1XTGC2PlM4RGIuCXGijs= -"node-libs-browser@^1.0.0 || ^2.0.0": - version "2.2.1" - resolved "https://registry.yarnpkg.com/node-libs-browser/-/node-libs-browser-2.2.1.tgz#b64f513d18338625f90346d27b0d235e631f6425" - integrity sha512-h/zcD8H9kaDZ9ALUWwlBUDo6TKF8a7qBSCSEGfjTVIYeqsioSKaAX+BN7NgiMGp6iSIXZ3PxgCu8KS3b71YK5Q== - dependencies: - assert "^1.1.1" - browserify-zlib "^0.2.0" - buffer "^4.3.0" - console-browserify "^1.1.0" - constants-browserify "^1.0.0" - crypto-browserify "^3.11.0" - domain-browser "^1.1.1" - events "^3.0.0" - https-browserify "^1.0.0" - os-browserify "^0.3.0" - path-browserify "0.0.1" - process "^0.11.10" - punycode "^1.2.4" - querystring-es3 "^0.2.0" - readable-stream "^2.3.3" - stream-browserify "^2.0.1" - stream-http "^2.7.2" - string_decoder "^1.0.0" - timers-browserify "^2.0.4" - tty-browserify "0.0.0" - url "^0.11.0" - util "^0.11.0" - vm-browserify "^1.0.1" - node-modules-regexp@^1.0.0: version "1.0.0" resolved "https://registry.yarnpkg.com/node-modules-regexp/-/node-modules-regexp-1.0.0.tgz#8d9dbe28964a4ac5712e9131642107c71e90ec40" @@ -12626,13 +12420,13 @@ object-inspect@^1.12.3, object-inspect@^1.7.0, object-inspect@^1.9.0: resolved "https://registry.yarnpkg.com/object-inspect/-/object-inspect-1.12.3.tgz#ba62dffd67ee256c8c086dfae69e016cd1f198b9" integrity sha512-geUvdk7c+eizMNUDkRpW1wJwgfOiOeHbxBR/hLXK1aT6zmVSO0jsQcs7fj6MGw89jC/cjGfLcNOrtMYtGqm81g== -object-is@^1.0.2, object-is@^1.1.2: - version "1.1.2" - resolved "https://registry.yarnpkg.com/object-is/-/object-is-1.1.2.tgz#c5d2e87ff9e119f78b7a088441519e2eec1573b6" - integrity sha512-5lHCz+0uufF6wZ7CRFWJN3hp8Jqblpgve06U5CMQ3f//6iDjPr2PEo9MWCjEssDsa+UZEL4PkFpr+BMop6aKzQ== +object-is@^1.0.2, object-is@^1.1.2, object-is@^1.1.5: + version "1.1.5" + resolved "https://registry.yarnpkg.com/object-is/-/object-is-1.1.5.tgz#b9deeaa5fc7f1846a0faecdceec138e5778f53ac" + integrity sha512-3cyDsyHgtmi7I7DfSSI2LDp6SK2lwvtbg0p0R1e0RvTqF5ceGx+K2dfSjm1bKDMVCFEDAQvy+o8c6a7VujOddw== dependencies: + call-bind "^1.0.2" define-properties "^1.1.3" - es-abstract "^1.17.5" object-keys@^1.1.1: version "1.1.1" @@ -12829,11 +12623,6 @@ ora@^6.1.2: strip-ansi "^7.0.1" wcwidth "^1.0.1" -os-browserify@^0.3.0: - version "0.3.0" - resolved "https://registry.yarnpkg.com/os-browserify/-/os-browserify-0.3.0.tgz#854373c7f5c2315914fc9bfc6bd8238fdda1ec27" - integrity sha1-hUNzx/XCMVkU/Jv8a9gjj92h7Cc= - os-homedir@^1.0.0, os-homedir@^1.0.1: version "1.0.2" resolved "https://registry.yarnpkg.com/os-homedir/-/os-homedir-1.0.2.tgz#ffbc4988336e0e833de0c168c7ef152121aa7fb3" @@ -13146,11 +12935,6 @@ paged-request@^2.0.1: dependencies: axios "^0.18.0" -pako@~1.0.5: - version "1.0.6" - resolved "https://registry.yarnpkg.com/pako/-/pako-1.0.6.tgz#0101211baa70c4bca4a0f63f2206e97b7dfaf258" - integrity sha512-lQe48YPsMJAig+yngZ87Lus+NF+3mtu7DVOBu6b/gHO1YpKwIj5AWjZ/TOS7i46HD/UixzWb1zeWDZfGZ3iYcg== - parallel-transform@^1.1.0: version "1.1.0" resolved "https://registry.yarnpkg.com/parallel-transform/-/parallel-transform-1.1.0.tgz#d410f065b05da23081fcd10f28854c29bda33b06" @@ -13175,17 +12959,6 @@ parent-module@^1.0.0: dependencies: callsites "^3.0.0" -parse-asn1@^5.0.0: - version "5.1.0" - resolved "https://registry.yarnpkg.com/parse-asn1/-/parse-asn1-5.1.0.tgz#37c4f9b7ed3ab65c74817b5f2480937fbf97c712" - integrity sha1-N8T5t+06tlx0gXtfJICTf7+XxxI= - dependencies: - asn1.js "^4.0.0" - browserify-aes "^1.0.0" - create-hash "^1.1.0" - evp_bytestokey "^1.0.0" - pbkdf2 "^3.0.3" - parse-conflict-json@^2.0.1: version "2.0.2" resolved "https://registry.yarnpkg.com/parse-conflict-json/-/parse-conflict-json-2.0.2.tgz#3d05bc8ffe07d39600dc6436c6aefe382033d323" @@ -13231,13 +13004,6 @@ parse-help@^1.0.0: dependencies: execall "^1.0.0" -parse-json@^2.2.0: - version "2.2.0" - resolved "https://registry.yarnpkg.com/parse-json/-/parse-json-2.2.0.tgz#f480f40434ef80741f8469099f8dea18f55a4dc9" - integrity sha1-9ID0BDTvgHQfhGkJn43qGPVaTck= - dependencies: - error-ex "^1.2.0" - parse-json@^4.0.0: version "4.0.0" resolved "https://registry.yarnpkg.com/parse-json/-/parse-json-4.0.0.tgz#be35f5425be1f7f6c747184f98a788cb99477ee0" @@ -13303,11 +13069,6 @@ passwd-user@^3.0.0: dependencies: execa "^1.0.0" -path-browserify@0.0.1: - version "0.0.1" - resolved "https://registry.yarnpkg.com/path-browserify/-/path-browserify-0.0.1.tgz#e6c4ddd7ed3aa27c68a20cc4e50e1a4ee83bbc4a" - integrity sha512-BapA40NHICOS+USX9SN4tyhq+A2RrN/Ws5F0Z5aMHDp98Fl86lX8Oti8B7uN93L4Ifv4fHOEA+pQw87gmMO/lQ== - path-dirname@^1.0.0: version "1.0.2" resolved "https://registry.yarnpkg.com/path-dirname/-/path-dirname-1.0.2.tgz#cc33d24d525e099a5388c0336c6e32b9160609e0" @@ -13360,13 +13121,6 @@ path-to-regexp@^1.7.0: dependencies: isarray "0.0.1" -path-type@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/path-type/-/path-type-2.0.0.tgz#f012ccb8415b7096fc2daa1054c3d72389594c73" - integrity sha1-8BLMuEFbcJb8LaoQVMPXI4lZTHM= - dependencies: - pify "^2.0.0" - path-type@^3.0.0: version "3.0.0" resolved "https://registry.yarnpkg.com/path-type/-/path-type-3.0.0.tgz#cef31dc8e0a1a3bb0d105c0cd97cf3bf47f4e36f" @@ -13394,17 +13148,6 @@ pause-stream@0.0.11: dependencies: through "~2.3" -pbkdf2@^3.0.3: - version "3.0.14" - resolved "https://registry.yarnpkg.com/pbkdf2/-/pbkdf2-3.0.14.tgz#a35e13c64799b06ce15320f459c230e68e73bade" - integrity sha512-gjsZW9O34fm0R7PaLHRJmLLVfSoesxztjPjE9o6R+qtVJij90ltg1joIovN9GKrRW3t1PzhDDG3UMEMFfZ+1wA== - dependencies: - create-hash "^1.1.2" - create-hmac "^1.1.4" - ripemd160 "^2.0.1" - safe-buffer "^5.0.1" - sha.js "^2.4.8" - pegjs@^0.10.0: version "0.10.0" resolved "https://registry.yarnpkg.com/pegjs/-/pegjs-0.10.0.tgz#cf8bafae6eddff4b5a7efb185269eaaf4610ddbd" @@ -13981,10 +13724,10 @@ prettier-linter-helpers@^1.0.0: dependencies: fast-diff "^1.1.2" -prettier@^2.1.2: - version "2.1.2" - resolved "https://registry.yarnpkg.com/prettier/-/prettier-2.1.2.tgz#3050700dae2e4c8b67c4c3f666cdb8af405e1ce5" - integrity sha512-16c7K+x4qVlJg9rEbXl7HEGmQyZlG4R9AgP+oHKRMsMsuk8s+ATStlf1NpDqyBI1HpVyfjLOeMhH2LvuNvV5Vg== +prettier@^2.8.8: + version "2.8.8" + resolved "https://registry.yarnpkg.com/prettier/-/prettier-2.8.8.tgz#e8c5d7e98a4305ffe3de2e1fc4aca1a71c28b1da" + integrity sha512-tdN8qQGvNjw4CHbY+XXk0JgCXn9QiF21a55rBe5LJAU+kDyC4WQn4+awm2Xfk2lQMk5fKup9XgzTZtGkjBdP9Q== pretty-bytes@^5.2.0, pretty-bytes@^5.3.0, pretty-bytes@^5.6.0: version "5.6.0" @@ -14060,7 +13803,7 @@ process@^0.11.1, process@^0.11.10: resolved "https://registry.yarnpkg.com/process/-/process-0.11.10.tgz#7332300e840161bda3e69a1d1d91a7d4bc16f182" integrity sha1-czIwDoQBYb2j5podHZGn1LwW8YI= -progress@^2.0.0, progress@^2.0.1: +progress@^2.0.1: version "2.0.3" resolved "https://registry.yarnpkg.com/progress/-/progress-2.0.3.tgz#7e8cf8d8f5b8f239c1bc68beb4eb78567d572ef8" integrity sha512-7PiHtLll5LdnKIMw100I+8xJXR5gW2QwWYkT6iJva0bXitZKa/XMrSbdmg3r2Xnaidz9Qumd0VPaMrZlF9V9sA== @@ -14167,17 +13910,6 @@ psl@^1.1.28: resolved "https://registry.yarnpkg.com/psl/-/psl-1.8.0.tgz#9326f8bcfb013adcc005fdff056acce020e51c24" integrity sha512-RIdOzyoavK+hA18OGGWDqUTsCLhtA7IcZ/6NCs4fFJaHBDab+pDDmDIByWFRQJq2Cd7r1OoQxBGKOaztq+hjIQ== -public-encrypt@^4.0.0: - version "4.0.0" - resolved "https://registry.yarnpkg.com/public-encrypt/-/public-encrypt-4.0.0.tgz#39f699f3a46560dd5ebacbca693caf7c65c18cc6" - integrity sha1-OfaZ86RlYN1eusvKaTyvfGXBjMY= - dependencies: - bn.js "^4.1.0" - browserify-rsa "^4.0.0" - create-hash "^1.1.0" - parse-asn1 "^5.0.0" - randombytes "^2.0.1" - pump@^1.0.0: version "1.0.3" resolved "https://registry.yarnpkg.com/pump/-/pump-1.0.3.tgz#5dfe8311c33bbf6fc18261f9f34702c47c08a954" @@ -14211,16 +13943,6 @@ pumpify@^1.3.3: inherits "^2.0.3" pump "^2.0.0" -punycode@1.3.2: - version "1.3.2" - resolved "https://registry.yarnpkg.com/punycode/-/punycode-1.3.2.tgz#9653a036fb7c1ee42342f2325cceefea3926c48d" - integrity sha1-llOgNvt8HuQjQvIyXM7v6jkmxI0= - -punycode@^1.2.4: - version "1.4.1" - resolved "https://registry.yarnpkg.com/punycode/-/punycode-1.4.1.tgz#c0d5a63b2718800ad8e1eb0fa5269c84dd41845e" - integrity sha1-wNWmOycYgArY4esPpSachN1BhF4= - punycode@^2.1.0, punycode@^2.1.1: version "2.1.1" resolved "https://registry.yarnpkg.com/punycode/-/punycode-2.1.1.tgz#b58b010ac40c22c5657616c8d2c2c02c7bf479ec" @@ -14277,16 +13999,6 @@ query-string@^5.0.1: object-assign "^4.1.0" strict-uri-encode "^1.0.0" -querystring-es3@^0.2.0: - version "0.2.1" - resolved "https://registry.yarnpkg.com/querystring-es3/-/querystring-es3-0.2.1.tgz#9ec61f79049875707d69414596fd907a4d711e73" - integrity sha1-nsYfeQSYdXB9aUFFlv2Qek1xHnM= - -querystring@0.2.0: - version "0.2.0" - resolved "https://registry.yarnpkg.com/querystring/-/querystring-0.2.0.tgz#b209849203bb25df820da756e747005878521620" - integrity sha1-sgmEkgO7Jd+CDadW50cAWHhSFiA= - querystringify@^2.1.1: version "2.2.0" resolved "https://registry.yarnpkg.com/querystringify/-/querystringify-2.2.0.tgz#3345941b4153cb9d082d8eee4cda2016a9aef7f6" @@ -14342,21 +14054,13 @@ randexp@^0.4.2: discontinuous-range "1.0.0" ret "~0.1.10" -randombytes@^2.0.0, randombytes@^2.0.1, randombytes@^2.0.5, randombytes@^2.1.0: +randombytes@^2.1.0: version "2.1.0" resolved "https://registry.yarnpkg.com/randombytes/-/randombytes-2.1.0.tgz#df6f84372f0270dc65cdf6291349ab7a473d4f2a" integrity sha512-vYl3iOX+4CKUWuxGi9Ukhie6fsqXqS9FE2Zaic4tNFD2N2QQaXOMFbuKK4QmDHC0JO6B1Zp41J0LpT0oR68amQ== dependencies: safe-buffer "^5.1.0" -randomfill@^1.0.3: - version "1.0.3" - resolved "https://registry.yarnpkg.com/randomfill/-/randomfill-1.0.3.tgz#b96b7df587f01dd91726c418f30553b1418e3d62" - integrity sha512-YL6GrhrWoic0Eq8rXVbMptH7dAxCs0J+mh5Y0euNekPPYaxEmdVGim6GdoxoRzKW2yJoU8tueifS7mYxvcFDEQ== - dependencies: - randombytes "^2.0.5" - safe-buffer "^5.1.0" - range-parser@^1.2.1, range-parser@~1.2.1: version "1.2.1" resolved "https://registry.yarnpkg.com/range-parser/-/range-parser-1.2.1.tgz#3cf37023d199e1c24d1a55b84800c2f3e6468031" @@ -14686,14 +14390,6 @@ read-package-json-fast@^2.0.1, read-package-json-fast@^2.0.2, read-package-json- json-parse-even-better-errors "^2.3.0" npm-normalize-package-bin "^1.0.1" -read-pkg-up@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/read-pkg-up/-/read-pkg-up-2.0.0.tgz#6b72a8048984e0c41e79510fd5e9fa99b3b549be" - integrity sha1-a3KoBImE4MQeeVEP1en6mbO1Sb4= - dependencies: - find-up "^2.0.0" - read-pkg "^2.0.0" - read-pkg-up@^3.0.0: version "3.0.0" resolved "https://registry.yarnpkg.com/read-pkg-up/-/read-pkg-up-3.0.0.tgz#3ed496685dba0f8fe118d0691dc51f4a1ff96f07" @@ -14727,15 +14423,6 @@ read-pkg-up@^7.0.1: read-pkg "^5.2.0" type-fest "^0.8.1" -read-pkg@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/read-pkg/-/read-pkg-2.0.0.tgz#8ef1c0623c6a6db0dc6713c4bfac46332b2368f8" - integrity sha1-jvHAYjxqbbDcZxPEv6xGMysjaPg= - dependencies: - load-json-file "^2.0.0" - normalize-package-data "^2.3.2" - path-type "^2.0.0" - read-pkg@^3.0.0: version "3.0.0" resolved "https://registry.yarnpkg.com/read-pkg/-/read-pkg-3.0.0.tgz#9cbc686978fee65d16c00e2b19c237fcf6e38389" @@ -14755,7 +14442,7 @@ read-pkg@^5.0.0, read-pkg@^5.2.0: parse-json "^5.0.0" type-fest "^0.6.0" -"readable-stream@1 || 2", readable-stream@^2.0.0, readable-stream@^2.0.1, readable-stream@^2.0.2, readable-stream@^2.0.4, readable-stream@^2.0.6, readable-stream@^2.1.5, readable-stream@^2.2.2, readable-stream@^2.3.0, readable-stream@^2.3.3, readable-stream@^2.3.5: +"readable-stream@1 || 2", readable-stream@^2.0.0, readable-stream@^2.0.1, readable-stream@^2.0.2, readable-stream@^2.0.4, readable-stream@^2.0.6, readable-stream@^2.1.5, readable-stream@^2.2.2, readable-stream@^2.3.0, readable-stream@^2.3.5: version "2.3.6" resolved "https://registry.yarnpkg.com/readable-stream/-/readable-stream-2.3.6.tgz#b11c27d88b8ff1fbe070643cf94b0c79ae1b0aaf" integrity sha512-tQtKA9WIAhBF3+VLAseyMqZeBjW0AHJoxOtYqSUZNJxauErmLbVm2FW1y+J/YA9dUrAC39ITejlZWhVIwawkKw== @@ -14869,10 +14556,10 @@ regenerator-runtime@^0.11.0: resolved "https://registry.yarnpkg.com/regenerator-runtime/-/regenerator-runtime-0.11.1.tgz#be05ad7f9bf7d22e056f9726cee5017fbf19e2e9" integrity sha512-MguG95oij0fC3QV3URf4V2SDYGJhJnJGqvIIgdECeODCT98wSWDAJ94SSuVpYQUoTcGUIL6L4yNB7j1DFFHSBg== -regenerator-runtime@^0.13.2, regenerator-runtime@^0.13.4: - version "0.13.4" - resolved "https://registry.yarnpkg.com/regenerator-runtime/-/regenerator-runtime-0.13.4.tgz#e96bf612a3362d12bb69f7e8f74ffeab25c7ac91" - integrity sha512-plpwicqEzfEyTQohIKktWigcLzmNStMGwbOUbykx51/29Z3JOGYldaaNGK7ngNXV+UcoqvIMmloZ48Sr74sd+g== +regenerator-runtime@^0.13.11, regenerator-runtime@^0.13.2: + version "0.13.11" + resolved "https://registry.yarnpkg.com/regenerator-runtime/-/regenerator-runtime-0.13.11.tgz#f6dca3e7ceec20590d07ada785636a90cdca17f9" + integrity sha512-kY1AZVr2Ra+t+piVaJ4gxaFaReZVH40AKNo7UCX6W+dEwBo/2oZJzqfuN1qLq1oL45o56cPaTXELwrTh8Fpggg== regenerator-transform@^0.15.1: version "0.15.1" @@ -14896,7 +14583,7 @@ regexp-util@1.2.2: dependencies: tslib "^1.9.0" -regexp.prototype.flags@^1.4.3: +regexp.prototype.flags@^1.4.3, regexp.prototype.flags@^1.5.0: version "1.5.0" resolved "https://registry.yarnpkg.com/regexp.prototype.flags/-/regexp.prototype.flags-1.5.0.tgz#fe7ce25e7e4cca8db37b6634c8a2c7009199b9cb" integrity sha512-0SutC3pNudRKgquxGoRGIz946MZVHqbNfPjBdxeOhBrdgDKlRoXmYLQN9xRbrR09ZXWeGAdPuif7egofn6v5LA== @@ -14905,11 +14592,6 @@ regexp.prototype.flags@^1.4.3: define-properties "^1.2.0" functions-have-names "^1.2.3" -regexpp@^3.1.0, regexpp@^3.2.0: - version "3.2.0" - resolved "https://registry.yarnpkg.com/regexpp/-/regexpp-3.2.0.tgz#0425a2768d8f23bad70ca4b90461fa2f1213e1b2" - integrity sha512-pq2bWo9mVD43nbts2wGv17XLiNLya+GklZ8kaDLV2Z08gDCsGpnKn9BFMepvWuHCbyVvY7J5o5+BVvoQbmlJLg== - regexpu-core@^5.3.1: version "5.3.2" resolved "https://registry.yarnpkg.com/regexpu-core/-/regexpu-core-5.3.2.tgz#11a2b06884f3527aec3e93dbbf4a3b958a95546b" @@ -15236,12 +14918,12 @@ resolve@1.5.0: dependencies: path-parse "^1.0.5" -resolve@^1.1.6, resolve@^1.10.0, resolve@^1.12.0, resolve@^1.13.1, resolve@^1.14.2, resolve@^1.17.0, resolve@^1.19.0, resolve@^1.9.0: - version "1.22.1" - resolved "https://registry.yarnpkg.com/resolve/-/resolve-1.22.1.tgz#27cb2ebb53f91abb49470a928bba7558066ac177" - integrity sha512-nBpuuYuY5jFsli/JIs1oldw6fOQCBioohqWZg/2hiaOybXOft4lonv85uDOKXdf8rhyK159cxU5cDcK/NKk8zw== +resolve@^1.1.6, resolve@^1.10.0, resolve@^1.14.2, resolve@^1.17.0, resolve@^1.19.0, resolve@^1.20.0, resolve@^1.22.1, resolve@^1.9.0: + version "1.22.2" + resolved "https://registry.yarnpkg.com/resolve/-/resolve-1.22.2.tgz#0ed0943d4e301867955766c9f3e1ae6d01c6845f" + integrity sha512-Sb+mjNHOULsBv818T40qSPeRiuWLyaGMa5ewydRLFimneixmVy2zdivRl+AF6jaYPC8ERxGDmFSiqui6SfPd+g== dependencies: - is-core-module "^2.9.0" + is-core-module "^2.11.0" path-parse "^1.0.7" supports-preserve-symlinks-flag "^1.0.0" @@ -15335,13 +15017,6 @@ rgba-regex@^1.0.0: resolved "https://registry.yarnpkg.com/rgba-regex/-/rgba-regex-1.0.0.tgz#43374e2e2ca0968b0ef1523460b7d730ff22eeb3" integrity sha1-QzdOLiyglosO8VI0YLfXMP8i7rM= -rimraf@2.6.3: - version "2.6.3" - resolved "https://registry.yarnpkg.com/rimraf/-/rimraf-2.6.3.tgz#b2d104fe0d8fb27cf9e0a1cda8262dd3833c6cab" - integrity sha512-mwqeW5XsA2qAejG46gYdENaxXjx9onRNCfn7L0duuP4hCuTIi/QO7PDK07KJfp1d+izWPrzEJDcSqBa0OZQriA== - dependencies: - glob "^7.1.3" - rimraf@^2.5.4, rimraf@^2.6.1, rimraf@^2.6.2, rimraf@^2.6.3: version "2.7.1" resolved "https://registry.yarnpkg.com/rimraf/-/rimraf-2.7.1.tgz#35797f13a7fdadc566142c29d4f07ccad483e3ec" @@ -15356,14 +15031,6 @@ rimraf@^3.0.0, rimraf@^3.0.2: dependencies: glob "^7.1.3" -ripemd160@^2.0.0, ripemd160@^2.0.1: - version "2.0.1" - resolved "https://registry.yarnpkg.com/ripemd160/-/ripemd160-2.0.1.tgz#0f4584295c53a3628af7e6d79aca21ce57d1c6e7" - integrity sha1-D0WEKVxTo2KK9+bXmsohzlfRxuc= - dependencies: - hash-base "^2.0.0" - inherits "^2.0.1" - roarr@^2.15.3: version "2.15.3" resolved "https://registry.yarnpkg.com/roarr/-/roarr-2.15.3.tgz#65248a291a15af3ebfd767cbf7e44cb402d1d836" @@ -15734,11 +15401,6 @@ set-value@^2.0.0, set-value@^2.0.1: is-plain-object "^2.0.3" split-string "^3.0.1" -setimmediate@^1.0.4: - version "1.0.5" - resolved "https://registry.yarnpkg.com/setimmediate/-/setimmediate-1.0.5.tgz#290cbb232e306942d7d7ea9b83732ab7856f8285" - integrity sha1-KQy7Iy4waULX1+qbg3Mqt4VvgoU= - setprototypeof@1.0.3: version "1.0.3" resolved "https://registry.yarnpkg.com/setprototypeof/-/setprototypeof-1.0.3.tgz#66567e37043eeb4f04d91bd658c0cbefb55b8e04" @@ -15749,14 +15411,6 @@ setprototypeof@1.2.0: resolved "https://registry.yarnpkg.com/setprototypeof/-/setprototypeof-1.2.0.tgz#66c9a24a73f9fc28cbe66b09fed3d33dcaf1b424" integrity sha512-E5LDX7Wrp85Kil5bhZv46j8jOeboKq5JMmYM3gVGdGH8xFpPWXUMsNrlODCrkoxMEeNi/XZIwuRvY4XNwYMJpw== -sha.js@^2.4.0, sha.js@^2.4.8: - version "2.4.11" - resolved "https://registry.yarnpkg.com/sha.js/-/sha.js-2.4.11.tgz#37a5cf0b81ecbc6943de109ba2960d1b26584ae7" - integrity sha512-QMEp5B7cftE7APOjk5Y6xgrbWu+WkLVQwk8JNjZ8nKRciZaByEW6MubieAiToS7+dwvrjGhH8jRXz3MVd0AYqQ== - dependencies: - inherits "^2.0.1" - safe-buffer "^5.0.1" - shallow-clone@^0.1.2: version "0.1.2" resolved "https://registry.yarnpkg.com/shallow-clone/-/shallow-clone-0.1.2.tgz#5909e874ba77106d73ac414cfec1ffca87d97060" @@ -15860,15 +15514,6 @@ slash@^3.0.0: resolved "https://registry.yarnpkg.com/slash/-/slash-3.0.0.tgz#6539be870c165adbd5240220dbe361f1bc4d4634" integrity sha512-g9Q1haeby36OSStwb4ntCGGGaKsaVSjQ68fBxoQcutl5fS1vuY18H3wSt3jFyFtrkx+Kz0V1G85A4MyAdDMi2Q== -slice-ansi@^2.1.0: - version "2.1.0" - resolved "https://registry.yarnpkg.com/slice-ansi/-/slice-ansi-2.1.0.tgz#cacd7693461a637a5788d92a7dd4fba068e81636" - integrity sha512-Qu+VC3EwYLldKa1fCxuuvULvSJOKEgk9pi8dZeCVK7TqBfUNTH4sFkk4joj8afVSfAYgJoSOetjx9QWOJ5mYoQ== - dependencies: - ansi-styles "^3.2.0" - astral-regex "^1.0.0" - is-fullwidth-code-point "^2.0.0" - slice-ansi@^3.0.0: version "3.0.0" resolved "https://registry.yarnpkg.com/slice-ansi/-/slice-ansi-3.0.0.tgz#31ddc10930a1b7e0b67b08c96c2f49b77a789787" @@ -16250,13 +15895,12 @@ stealthy-require@^1.1.1: resolved "https://registry.yarnpkg.com/stealthy-require/-/stealthy-require-1.1.1.tgz#35b09875b4ff49f26a777e509b3090a3226bf24b" integrity sha1-NbCYdbT/SfJqd35QmzCQoyJr8ks= -stream-browserify@^2.0.1: - version "2.0.2" - resolved "https://registry.yarnpkg.com/stream-browserify/-/stream-browserify-2.0.2.tgz#87521d38a44aa7ee91ce1cd2a47df0cb49dd660b" - integrity sha512-nX6hmklHs/gr2FuxYDltq8fJA1GDlxKQCz8O/IM4atRqBH8OORmBNgfvW5gG10GT/qQ9u0CzIvr2X5Pkt6ntqg== +stop-iteration-iterator@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/stop-iteration-iterator/-/stop-iteration-iterator-1.0.0.tgz#6a60be0b4ee757d1ed5254858ec66b10c49285e4" + integrity sha512-iCGQj+0l0HOdZ2AEeBADlsRC+vsnDsZsbdSiH1yNSjcfKM7fdpCMfqAL/dwF5BLiw/XhRft/Wax6zQbhq2BcjQ== dependencies: - inherits "~2.0.1" - readable-stream "^2.0.2" + internal-slot "^1.0.4" stream-combiner@~0.0.4: version "0.0.4" @@ -16273,17 +15917,6 @@ stream-each@^1.1.0: end-of-stream "^1.1.0" stream-shift "^1.0.0" -stream-http@^2.7.2: - version "2.8.0" - resolved "https://registry.yarnpkg.com/stream-http/-/stream-http-2.8.0.tgz#fd86546dac9b1c91aff8fc5d287b98fafb41bc10" - integrity sha512-sZOFxI/5xw058XIRHl4dU3dZ+TTOIGJR78Dvo0oEAejIt4ou27k+3ne1zYmCV+v7UucbxIFQuOgnkTVHh8YPnw== - dependencies: - builtin-status-codes "^3.0.0" - inherits "^2.0.1" - readable-stream "^2.3.3" - to-arraybuffer "^1.0.0" - xtend "^4.0.0" - stream-shift@^1.0.0: version "1.0.0" resolved "https://registry.yarnpkg.com/stream-shift/-/stream-shift-1.0.0.tgz#d5c752825e5367e786f78e18e445ea223a155952" @@ -16418,7 +16051,7 @@ string.prototype.trimstart@^1.0.6: define-properties "^1.1.4" es-abstract "^1.20.4" -string_decoder@^1.0.0, string_decoder@^1.1.1: +string_decoder@^1.1.1: version "1.2.0" resolved "https://registry.yarnpkg.com/string_decoder/-/string_decoder-1.2.0.tgz#fe86e738b19544afe70469243b2a1ee9240eae8d" integrity sha512-6YqyX6ZWEYguAxgZzHGL7SsCeGx3V2TtOTqZz1xSTSWnqsbWwbptafNyvf/ACquZUXV3DANr5BDIwNYe1mN42w== @@ -16797,16 +16430,6 @@ tabbable@^5.2.1: resolved "https://registry.yarnpkg.com/tabbable/-/tabbable-5.2.1.tgz#e3fda7367ddbb172dcda9f871c0fdb36d1c4cd9c" integrity sha512-40pEZ2mhjaZzK0BnI+QGNjJO8UYx9pP5v7BGe17SORTO0OEuuaAwQTkAp8whcZvqon44wKFOikD+Al11K3JICQ== -table@^5.2.3: - version "5.4.0" - resolved "https://registry.yarnpkg.com/table/-/table-5.4.0.tgz#d772a3216e68829920a41a32c18eda286c95d780" - integrity sha512-nHFDrxmbrkU7JAFKqKbDJXfzrX2UBsWmrieXFTGxiI5e4ncg3VqsZeI4EzNmX0ncp4XNGVeoxIWJXfCIXwrsvw== - dependencies: - ajv "^6.9.1" - lodash "^4.17.11" - slice-ansi "^2.1.0" - string-width "^3.0.0" - table@^6.8.1: version "6.8.1" resolved "https://registry.yarnpkg.com/table/-/table-6.8.1.tgz#ea2b71359fe03b017a5fbc296204471158080bdf" @@ -17017,13 +16640,6 @@ timed-out@^4.0.0, timed-out@^4.0.1: resolved "https://registry.yarnpkg.com/timed-out/-/timed-out-4.0.1.tgz#f32eacac5a175bea25d7fab565ab3ed8741ef56f" integrity sha1-8y6srFoXW+ol1/q1Zas+2HQe9W8= -timers-browserify@^2.0.4: - version "2.0.4" - resolved "https://registry.yarnpkg.com/timers-browserify/-/timers-browserify-2.0.4.tgz#96ca53f4b794a5e7c0e1bd7cc88a372298fa01e6" - integrity sha512-uZYhyU3EX8O7HQP+J9fTVYwsq90Vr68xPEFo7yrVImIxYvHgukBEgOB/SgGoorWVTzGM/3Z+wUNnboA4M8jWrg== - dependencies: - setimmediate "^1.0.4" - timsort@^0.3.0: version "0.3.0" resolved "https://registry.yarnpkg.com/timsort/-/timsort-0.3.0.tgz#405411a8e7e6339fe64db9a234de11dc31e02bd4" @@ -17070,11 +16686,6 @@ tmpl@1.0.x: resolved "https://registry.yarnpkg.com/tmpl/-/tmpl-1.0.4.tgz#23640dd7b42d00433911140820e5cf440e521dd1" integrity sha1-I2QN17QtAEM5ERQIIOXPRA5SHdE= -to-arraybuffer@^1.0.0: - version "1.0.1" - resolved "https://registry.yarnpkg.com/to-arraybuffer/-/to-arraybuffer-1.0.1.tgz#7d229b1fcc637e466ca081180836a7aabff83f43" - integrity sha1-fSKbH8xjfkZsoIEYCDanqr/4P0M= - to-buffer@^1.1.1: version "1.1.1" resolved "https://registry.yarnpkg.com/to-buffer/-/to-buffer-1.1.1.tgz#493bd48f62d7c43fcded313a03dcadb2e1213a80" @@ -17182,14 +16793,14 @@ ts-debounce@^4.0.0: resolved "https://registry.yarnpkg.com/ts-debounce/-/ts-debounce-4.0.0.tgz#33440ef64fab53793c3d546a8ca6ae539ec15841" integrity sha512-+1iDGY6NmOGidq7i7xZGA4cm8DAa6fqdYcvO5Z6yBevH++Bdo9Qt/mN0TzHUgcCcKv1gmh9+W5dHqz8pMWbCbg== -tsconfig-paths@^3.9.0: - version "3.9.0" - resolved "https://registry.yarnpkg.com/tsconfig-paths/-/tsconfig-paths-3.9.0.tgz#098547a6c4448807e8fcb8eae081064ee9a3c90b" - integrity sha512-dRcuzokWhajtZWkQsDVKbWyY+jgcLC5sqJhg2PSgf4ZkH2aHPvaOY8YWGhmjb68b5qqTfasSsDO9k7RUiEmZAw== +tsconfig-paths@^3.14.1: + version "3.14.2" + resolved "https://registry.yarnpkg.com/tsconfig-paths/-/tsconfig-paths-3.14.2.tgz#6e32f1f79412decd261f92d633a9dc1cfa99f088" + integrity sha512-o/9iXgCYc5L/JxCHPe3Hvh8Q/2xm5Z+p18PESBU6Ff33695QnCHBEjcytY2q19ua7Mbl/DavtBOLq+oG0RCL+g== dependencies: "@types/json5" "^0.0.29" - json5 "^1.0.1" - minimist "^1.2.0" + json5 "^1.0.2" + minimist "^1.2.6" strip-bom "^3.0.0" tslib@^1.8.1, tslib@^1.9.0, tslib@^1.9.1, tslib@^1.9.3: @@ -17214,11 +16825,6 @@ tsutils@^3.17.1, tsutils@^3.21.0: dependencies: tslib "^1.8.1" -tty-browserify@0.0.0: - version "0.0.0" - resolved "https://registry.yarnpkg.com/tty-browserify/-/tty-browserify-0.0.0.tgz#a157ba402da24e9bf957f9aa69d524eed42901a6" - integrity sha1-oVe6QC2iTpv5V/mqadUk7tQpAaY= - tunnel-agent@^0.6.0: version "0.6.0" resolved "https://registry.yarnpkg.com/tunnel-agent/-/tunnel-agent-0.6.0.tgz#27a5dea06b36b04a0a9966774b290868f0fc40fd" @@ -17715,14 +17321,6 @@ url-to-options@^1.0.1: resolved "https://registry.yarnpkg.com/url-to-options/-/url-to-options-1.0.1.tgz#1505a03a289a48cbd7a434efbaeec5055f5633a9" integrity sha1-FQWgOiiaSMvXpDTvuu7FBV9WM6k= -url@^0.11.0: - version "0.11.0" - resolved "https://registry.yarnpkg.com/url/-/url-0.11.0.tgz#3838e97cfc60521eb73c525a8e55bfdd9e2e28f1" - integrity sha1-ODjpfPxgUh63PFJajlW/3Z4uKPE= - dependencies: - punycode "1.3.2" - querystring "0.2.0" - use-callback-ref@^1.3.0: version "1.3.0" resolved "https://registry.yarnpkg.com/use-callback-ref/-/use-callback-ref-1.3.0.tgz#772199899b9c9a50526fedc4993fc7fa1f7e32d5" @@ -17774,13 +17372,6 @@ util.promisify@^1.0.0, util.promisify@~1.0.0: has-symbols "^1.0.1" object.getownpropertydescriptors "^2.1.0" -util@0.10.3: - version "0.10.3" - resolved "https://registry.yarnpkg.com/util/-/util-0.10.3.tgz#7afb1afe50805246489e3db7fe0ed379336ac0f9" - integrity sha1-evsa/lCAUkZInj23/g7TeTNqwPk= - dependencies: - inherits "2.0.1" - util@^0.10.3: version "0.10.4" resolved "https://registry.yarnpkg.com/util/-/util-0.10.4.tgz#3aa0125bfe668a4672de58857d3ace27ecb76901" @@ -17788,13 +17379,6 @@ util@^0.10.3: dependencies: inherits "2.0.3" -util@^0.11.0: - version "0.11.1" - resolved "https://registry.yarnpkg.com/util/-/util-0.11.1.tgz#3236733720ec64bb27f6e26f421aaa2e1b588d61" - integrity sha512-HShAsny+zS2TZfaXxD9tYj4HQGlBezXZMZuM/S5PKLLoZkShZiGk9o5CzukI1LVHZvjdvZ2Sj1aW/Ndn2NB/HQ== - dependencies: - inherits "2.0.3" - utila@~0.4: version "0.4.0" resolved "https://registry.yarnpkg.com/utila/-/utila-0.4.0.tgz#8a16a05d445657a3aea5eecc5b12a4fa5379772c" @@ -17825,11 +17409,6 @@ uuid@^9: resolved "https://registry.yarnpkg.com/uuid/-/uuid-9.0.0.tgz#592f550650024a38ceb0c562f2f6aa435761efb5" integrity sha512-MXcSTerfPa4uqyzStbRoTgt5XIe3x5+42+q1sDuy3R5MDk66URdLMOZe5aPX/SQd+kuYAh0FdP/pO28IkQyTeg== -v8-compile-cache@^2.0.3: - version "2.1.1" - resolved "https://registry.yarnpkg.com/v8-compile-cache/-/v8-compile-cache-2.1.1.tgz#54bc3cdd43317bca91e35dcaf305b1a7237de745" - integrity sha512-8OQ9CL+VWyt3JStj7HX7/ciTL2V3Rl1Wf5OL+SNTm0yK1KvtReVulksyeRnCANHHuUxHlQig+JJDlUhBt1NQDQ== - v8-compile-cache@^2.3.0: version "2.3.0" resolved "https://registry.yarnpkg.com/v8-compile-cache/-/v8-compile-cache-2.3.0.tgz#2de19618c66dc247dcfb6f99338035d8245a2cee" @@ -17971,11 +17550,6 @@ vinyl@^2.2.0: remove-trailing-separator "^1.0.1" replace-ext "^1.0.0" -vm-browserify@^1.0.1: - version "1.1.2" - resolved "https://registry.yarnpkg.com/vm-browserify/-/vm-browserify-1.1.2.tgz#78641c488b8e6ca91a75f511e7a3b32a86e5dda0" - integrity sha512-2ham8XPWTONajOR0ohOKOHXkm3+gaBmGut3SRuu75xLd/RRaY6vqgh8NBYYk7+RW3u5AtzPQZG8F10LHkl0lAQ== - vnopts@1.0.2: version "1.0.2" resolved "https://registry.yarnpkg.com/vnopts/-/vnopts-1.0.2.tgz#f6a331473de0179d1679112cc090572b695202f7" @@ -18229,6 +17803,16 @@ which-boxed-primitive@^1.0.2: is-string "^1.0.5" is-symbol "^1.0.3" +which-collection@^1.0.1: + version "1.0.1" + resolved "https://registry.yarnpkg.com/which-collection/-/which-collection-1.0.1.tgz#70eab71ebbbd2aefaf32f917082fc62cdcb70906" + integrity sha512-W8xeTUwaln8i3K/cY1nGXzdnVZlidBcagyNFtBdD5kxnb4TvGKR7FfSIS3mYpwWS1QUCutfKz8IY8RjftB0+1A== + dependencies: + is-map "^2.0.1" + is-set "^2.0.1" + is-weakmap "^2.0.1" + is-weakset "^2.0.1" + which-module@^2.0.0: version "2.0.0" resolved "https://registry.yarnpkg.com/which-module/-/which-module-2.0.0.tgz#d9ef07dce77b9902b8a3a8fa4b31c3e3f7e6e87a" @@ -18416,13 +18000,6 @@ write-file-atomic@^4.0.0, write-file-atomic@^4.0.2: imurmurhash "^0.1.4" signal-exit "^3.0.7" -write@1.0.3: - version "1.0.3" - resolved "https://registry.yarnpkg.com/write/-/write-1.0.3.tgz#0800e14523b923a387e415123c865616aae0f5c3" - integrity sha512-/lg70HAjtkUgWPVZhZcm+T4hkL8Zbtp1nFNOn3lRrxnlv50SRBv7cR7RqR+GMsd3hUXy9hWBo4CHTbFTcOYwig== - dependencies: - mkdirp "^0.5.1" - ws@^5.2.0: version "5.2.2" resolved "https://registry.yarnpkg.com/ws/-/ws-5.2.2.tgz#dffef14866b8e8dc9133582514d1befaf96e980f"