From 22267c9adb5fd29a80324e1bb5d1bec796d69dbd Mon Sep 17 00:00:00 2001 From: Kendrick Arnett Date: Wed, 24 Mar 2021 14:43:34 -0500 Subject: [PATCH] fix(icons): Minify icons with svgo --- packages/components/react-web/package.json | 3 +- .../src/Icon/buildIconComponents.mjs | 18 ++++- .../src/Icon/icons/IconAccessibility.jsx | 1 - .../react-web/src/Icon/icons/IconAdd.jsx | 3 +- .../src/Icon/icons/IconAddCircle.jsx | 3 +- .../src/Icon/icons/IconArrowClockwise.jsx | 5 +- .../src/Icon/icons/IconArrowDown.jsx | 5 +- .../src/Icon/icons/IconArrowLeft.jsx | 5 +- .../src/Icon/icons/IconArrowRight.jsx | 5 +- .../react-web/src/Icon/icons/IconArrowUp.jsx | 5 +- .../src/Icon/icons/IconArrowsLeftRight.jsx | 12 +-- .../react-web/src/Icon/icons/IconCamera.jsx | 5 +- .../react-web/src/Icon/icons/IconChatText.jsx | 10 +-- .../react-web/src/Icon/icons/IconCheck.jsx | 3 +- .../src/Icon/icons/IconChevronDown.jsx | 3 +- .../src/Icon/icons/IconChevronLeft.jsx | 3 +- .../src/Icon/icons/IconChevronRight.jsx | 3 +- .../src/Icon/icons/IconChevronUp.jsx | 3 +- .../Icon/icons/IconClockCounterClockwise.jsx | 12 +-- .../react-web/src/Icon/icons/IconCompass.jsx | 5 +- .../src/Icon/icons/IconCreditCard.jsx | 15 +--- .../react-web/src/Icon/icons/IconError.jsx | 7 +- .../react-web/src/Icon/icons/IconGear.jsx | 9 +-- .../react-web/src/Icon/icons/IconGift.jsx | 11 ++- .../react-web/src/Icon/icons/IconGlobe.jsx | 19 +---- .../react-web/src/Icon/icons/IconHidden.jsx | 14 +--- .../react-web/src/Icon/icons/IconHome.jsx | 7 +- .../react-web/src/Icon/icons/IconInfo.jsx | 7 +- .../react-web/src/Icon/icons/IconMap.jsx | 7 +- .../react-web/src/Icon/icons/IconMenu.jsx | 13 +--- .../src/Icon/icons/IconPhotoStack.jsx | 3 +- .../react-web/src/Icon/icons/IconPin.jsx | 5 +- .../src/Icon/icons/IconPlayCircle.jsx | 5 +- .../react-web/src/Icon/icons/IconQuestion.jsx | 7 +- .../react-web/src/Icon/icons/IconSkippy.jsx | 3 +- .../react-web/src/Icon/icons/IconSmile.jsx | 8 +- .../react-web/src/Icon/icons/IconSpinner.jsx | 38 +--------- .../src/Icon/icons/IconSpinnerGap.jsx | 33 +------- .../react-web/src/Icon/icons/IconThumbsUp.jsx | 5 +- .../react-web/src/Icon/icons/IconTrash.jsx | 17 +---- .../react-web/src/Icon/icons/IconUpload.jsx | 9 +-- .../react-web/src/Icon/icons/IconUser.jsx | 5 +- .../react-web/src/Icon/icons/IconVisible.jsx | 5 +- .../react-web/src/Icon/icons/IconZoom.jsx | 9 +-- .../react-web/src/Icon/icons/IconZoomIn.jsx | 9 +-- .../react-web/src/Icon/icons/IconZoomOut.jsx | 7 +- packages/elements/src/icons/svg/Skippy.svg | 2 + yarn.lock | 75 ++++++++++++++++++- 48 files changed, 190 insertions(+), 276 deletions(-) diff --git a/packages/components/react-web/package.json b/packages/components/react-web/package.json index 130ecd5d..0cd5b9a6 100644 --- a/packages/components/react-web/package.json +++ b/packages/components/react-web/package.json @@ -24,7 +24,8 @@ "prop-types": "^15.7.2", "react": "^16.0.0", "react-file-drop": "^3.1.2", - "react-number-format": "^4.4.3" + "react-number-format": "^4.4.3", + "svgo": "^2.2.2" }, "repository": { "type": "git", diff --git a/packages/components/react-web/src/Icon/buildIconComponents.mjs b/packages/components/react-web/src/Icon/buildIconComponents.mjs index a050c252..8402a83d 100755 --- a/packages/components/react-web/src/Icon/buildIconComponents.mjs +++ b/packages/components/react-web/src/Icon/buildIconComponents.mjs @@ -3,6 +3,7 @@ import svgr from '@svgr/core'; import elements from '@compassion-gds/elements'; import prettier from 'prettier'; +import svgo from 'svgo'; import fs from 'fs'; import path from 'path'; @@ -45,7 +46,18 @@ let indexJs = ''; Object.entries(iconSources).forEach((iconSource) => { const name = iconSource[0]; - const rawSvg = iconSource[1]; + + const rawSvg = svgo.optimize(iconSource[1], [ + { + name: 'removeDesc', + active: false, + }, + { + name: 'removeTitle', + active: false, + }, + ]).data; + const componentName = `Icon${capitalize(name)}`; indexJs += `export { default as ${componentName} } from './icons/${componentName}';\n`; @@ -65,9 +77,7 @@ Object.entries(iconSources).forEach((iconSource) => { className: 'gds-icon', css: '{iconStyles}', }, - prettierConfig: { - proseWrap: 'always', - }, + svgo: false, }, { componentName } ) diff --git a/packages/components/react-web/src/Icon/icons/IconAccessibility.jsx b/packages/components/react-web/src/Icon/icons/IconAccessibility.jsx index 73d4f0f9..10c31331 100644 --- a/packages/components/react-web/src/Icon/icons/IconAccessibility.jsx +++ b/packages/components/react-web/src/Icon/icons/IconAccessibility.jsx @@ -20,7 +20,6 @@ function IconAccessibility(props) { css={iconStyles} {...props} > - {"Accessibility"} - {"Add"} ); diff --git a/packages/components/react-web/src/Icon/icons/IconAddCircle.jsx b/packages/components/react-web/src/Icon/icons/IconAddCircle.jsx index 02514410..83191547 100644 --- a/packages/components/react-web/src/Icon/icons/IconAddCircle.jsx +++ b/packages/components/react-web/src/Icon/icons/IconAddCircle.jsx @@ -20,7 +20,6 @@ function IconAddCircle(props) { css={iconStyles} {...props} > - {"Add Circle"} ); diff --git a/packages/components/react-web/src/Icon/icons/IconArrowClockwise.jsx b/packages/components/react-web/src/Icon/icons/IconArrowClockwise.jsx index e3f41e1c..1e3a2cf8 100644 --- a/packages/components/react-web/src/Icon/icons/IconArrowClockwise.jsx +++ b/packages/components/react-web/src/Icon/icons/IconArrowClockwise.jsx @@ -13,7 +13,6 @@ function IconArrowClockwise(props) { ); diff --git a/packages/components/react-web/src/Icon/icons/IconArrowDown.jsx b/packages/components/react-web/src/Icon/icons/IconArrowDown.jsx index 7aedc247..2667ec54 100644 --- a/packages/components/react-web/src/Icon/icons/IconArrowDown.jsx +++ b/packages/components/react-web/src/Icon/icons/IconArrowDown.jsx @@ -13,7 +13,6 @@ function IconArrowDown(props) { ); diff --git a/packages/components/react-web/src/Icon/icons/IconArrowLeft.jsx b/packages/components/react-web/src/Icon/icons/IconArrowLeft.jsx index e4f0af45..4dc5eb9a 100644 --- a/packages/components/react-web/src/Icon/icons/IconArrowLeft.jsx +++ b/packages/components/react-web/src/Icon/icons/IconArrowLeft.jsx @@ -13,7 +13,6 @@ function IconArrowLeft(props) { ); diff --git a/packages/components/react-web/src/Icon/icons/IconArrowRight.jsx b/packages/components/react-web/src/Icon/icons/IconArrowRight.jsx index 7e7ef7a4..3aba4a6d 100644 --- a/packages/components/react-web/src/Icon/icons/IconArrowRight.jsx +++ b/packages/components/react-web/src/Icon/icons/IconArrowRight.jsx @@ -13,7 +13,6 @@ function IconArrowRight(props) { ); diff --git a/packages/components/react-web/src/Icon/icons/IconArrowUp.jsx b/packages/components/react-web/src/Icon/icons/IconArrowUp.jsx index 9e707e3c..bf61dcc9 100644 --- a/packages/components/react-web/src/Icon/icons/IconArrowUp.jsx +++ b/packages/components/react-web/src/Icon/icons/IconArrowUp.jsx @@ -13,7 +13,6 @@ function IconArrowUp(props) { ); diff --git a/packages/components/react-web/src/Icon/icons/IconArrowsLeftRight.jsx b/packages/components/react-web/src/Icon/icons/IconArrowsLeftRight.jsx index db3439ec..1334b8aa 100644 --- a/packages/components/react-web/src/Icon/icons/IconArrowsLeftRight.jsx +++ b/packages/components/react-web/src/Icon/icons/IconArrowsLeftRight.jsx @@ -13,7 +13,6 @@ function IconArrowsLeftRight(props) { - ); diff --git a/packages/components/react-web/src/Icon/icons/IconCamera.jsx b/packages/components/react-web/src/Icon/icons/IconCamera.jsx index a901d266..13145b07 100644 --- a/packages/components/react-web/src/Icon/icons/IconCamera.jsx +++ b/packages/components/react-web/src/Icon/icons/IconCamera.jsx @@ -13,7 +13,6 @@ function IconCamera(props) { ); diff --git a/packages/components/react-web/src/Icon/icons/IconChatText.jsx b/packages/components/react-web/src/Icon/icons/IconChatText.jsx index 905df202..fa03e34b 100644 --- a/packages/components/react-web/src/Icon/icons/IconChatText.jsx +++ b/packages/components/react-web/src/Icon/icons/IconChatText.jsx @@ -13,7 +13,6 @@ function IconChatText(props) { - ); diff --git a/packages/components/react-web/src/Icon/icons/IconCheck.jsx b/packages/components/react-web/src/Icon/icons/IconCheck.jsx index 6a61cd40..42a511ed 100644 --- a/packages/components/react-web/src/Icon/icons/IconCheck.jsx +++ b/packages/components/react-web/src/Icon/icons/IconCheck.jsx @@ -13,7 +13,6 @@ function IconCheck(props) { ); diff --git a/packages/components/react-web/src/Icon/icons/IconChevronDown.jsx b/packages/components/react-web/src/Icon/icons/IconChevronDown.jsx index e693f4b2..40eacc45 100644 --- a/packages/components/react-web/src/Icon/icons/IconChevronDown.jsx +++ b/packages/components/react-web/src/Icon/icons/IconChevronDown.jsx @@ -13,7 +13,6 @@ function IconChevronDown(props) { ); diff --git a/packages/components/react-web/src/Icon/icons/IconChevronLeft.jsx b/packages/components/react-web/src/Icon/icons/IconChevronLeft.jsx index 97e399b4..efd787b7 100644 --- a/packages/components/react-web/src/Icon/icons/IconChevronLeft.jsx +++ b/packages/components/react-web/src/Icon/icons/IconChevronLeft.jsx @@ -13,7 +13,6 @@ function IconChevronLeft(props) { ); diff --git a/packages/components/react-web/src/Icon/icons/IconChevronRight.jsx b/packages/components/react-web/src/Icon/icons/IconChevronRight.jsx index 179fc223..f6901fd8 100644 --- a/packages/components/react-web/src/Icon/icons/IconChevronRight.jsx +++ b/packages/components/react-web/src/Icon/icons/IconChevronRight.jsx @@ -13,7 +13,6 @@ function IconChevronRight(props) { ); diff --git a/packages/components/react-web/src/Icon/icons/IconChevronUp.jsx b/packages/components/react-web/src/Icon/icons/IconChevronUp.jsx index a737ea6f..3dd6fd42 100644 --- a/packages/components/react-web/src/Icon/icons/IconChevronUp.jsx +++ b/packages/components/react-web/src/Icon/icons/IconChevronUp.jsx @@ -13,7 +13,6 @@ function IconChevronUp(props) { ); diff --git a/packages/components/react-web/src/Icon/icons/IconClockCounterClockwise.jsx b/packages/components/react-web/src/Icon/icons/IconClockCounterClockwise.jsx index 274a1e81..15898308 100644 --- a/packages/components/react-web/src/Icon/icons/IconClockCounterClockwise.jsx +++ b/packages/components/react-web/src/Icon/icons/IconClockCounterClockwise.jsx @@ -13,7 +13,6 @@ function IconClockCounterClockwise(props) { - ); diff --git a/packages/components/react-web/src/Icon/icons/IconCompass.jsx b/packages/components/react-web/src/Icon/icons/IconCompass.jsx index ed4e08a8..e87ffa92 100644 --- a/packages/components/react-web/src/Icon/icons/IconCompass.jsx +++ b/packages/components/react-web/src/Icon/icons/IconCompass.jsx @@ -13,7 +13,6 @@ function IconCompass(props) { ); diff --git a/packages/components/react-web/src/Icon/icons/IconCreditCard.jsx b/packages/components/react-web/src/Icon/icons/IconCreditCard.jsx index 305dea7d..95f065df 100644 --- a/packages/components/react-web/src/Icon/icons/IconCreditCard.jsx +++ b/packages/components/react-web/src/Icon/icons/IconCreditCard.jsx @@ -13,7 +13,6 @@ function IconCreditCard(props) { - - ); diff --git a/packages/components/react-web/src/Icon/icons/IconError.jsx b/packages/components/react-web/src/Icon/icons/IconError.jsx index 72a7249a..edab2987 100644 --- a/packages/components/react-web/src/Icon/icons/IconError.jsx +++ b/packages/components/react-web/src/Icon/icons/IconError.jsx @@ -13,7 +13,6 @@ function IconError(props) { - + ); } diff --git a/packages/components/react-web/src/Icon/icons/IconGear.jsx b/packages/components/react-web/src/Icon/icons/IconGear.jsx index 3f2819ea..c972ba3b 100644 --- a/packages/components/react-web/src/Icon/icons/IconGear.jsx +++ b/packages/components/react-web/src/Icon/icons/IconGear.jsx @@ -13,7 +13,6 @@ function IconGear(props) { ); diff --git a/packages/components/react-web/src/Icon/icons/IconGlobe.jsx b/packages/components/react-web/src/Icon/icons/IconGlobe.jsx index 0a788d1c..63c85c9e 100644 --- a/packages/components/react-web/src/Icon/icons/IconGlobe.jsx +++ b/packages/components/react-web/src/Icon/icons/IconGlobe.jsx @@ -13,7 +13,6 @@ function IconGlobe(props) { - - ); diff --git a/packages/components/react-web/src/Icon/icons/IconHidden.jsx b/packages/components/react-web/src/Icon/icons/IconHidden.jsx index a557db66..0ae94a4a 100644 --- a/packages/components/react-web/src/Icon/icons/IconHidden.jsx +++ b/packages/components/react-web/src/Icon/icons/IconHidden.jsx @@ -13,7 +13,6 @@ function IconHidden(props) { - ); diff --git a/packages/components/react-web/src/Icon/icons/IconHome.jsx b/packages/components/react-web/src/Icon/icons/IconHome.jsx index 6189e501..4091f499 100644 --- a/packages/components/react-web/src/Icon/icons/IconHome.jsx +++ b/packages/components/react-web/src/Icon/icons/IconHome.jsx @@ -13,7 +13,6 @@ function IconHome(props) { ); diff --git a/packages/components/react-web/src/Icon/icons/IconInfo.jsx b/packages/components/react-web/src/Icon/icons/IconInfo.jsx index 0e07530e..83d97378 100644 --- a/packages/components/react-web/src/Icon/icons/IconInfo.jsx +++ b/packages/components/react-web/src/Icon/icons/IconInfo.jsx @@ -13,7 +13,6 @@ function IconInfo(props) { - + ); } diff --git a/packages/components/react-web/src/Icon/icons/IconMap.jsx b/packages/components/react-web/src/Icon/icons/IconMap.jsx index 35353c97..82340290 100644 --- a/packages/components/react-web/src/Icon/icons/IconMap.jsx +++ b/packages/components/react-web/src/Icon/icons/IconMap.jsx @@ -13,7 +13,6 @@ function IconMap(props) { ); diff --git a/packages/components/react-web/src/Icon/icons/IconMenu.jsx b/packages/components/react-web/src/Icon/icons/IconMenu.jsx index 5b0a3029..0e243747 100644 --- a/packages/components/react-web/src/Icon/icons/IconMenu.jsx +++ b/packages/components/react-web/src/Icon/icons/IconMenu.jsx @@ -13,7 +13,6 @@ function IconMenu(props) { - - ); diff --git a/packages/components/react-web/src/Icon/icons/IconPhotoStack.jsx b/packages/components/react-web/src/Icon/icons/IconPhotoStack.jsx index b12702a7..71ae1a42 100644 --- a/packages/components/react-web/src/Icon/icons/IconPhotoStack.jsx +++ b/packages/components/react-web/src/Icon/icons/IconPhotoStack.jsx @@ -13,7 +13,6 @@ function IconPhotoStack(props) { ); diff --git a/packages/components/react-web/src/Icon/icons/IconPin.jsx b/packages/components/react-web/src/Icon/icons/IconPin.jsx index a24da406..c9c3f8b1 100644 --- a/packages/components/react-web/src/Icon/icons/IconPin.jsx +++ b/packages/components/react-web/src/Icon/icons/IconPin.jsx @@ -13,7 +13,6 @@ function IconPin(props) { ); diff --git a/packages/components/react-web/src/Icon/icons/IconPlayCircle.jsx b/packages/components/react-web/src/Icon/icons/IconPlayCircle.jsx index 2da6cd77..1e8bbe36 100644 --- a/packages/components/react-web/src/Icon/icons/IconPlayCircle.jsx +++ b/packages/components/react-web/src/Icon/icons/IconPlayCircle.jsx @@ -13,7 +13,6 @@ function IconPlayCircle(props) { ); diff --git a/packages/components/react-web/src/Icon/icons/IconQuestion.jsx b/packages/components/react-web/src/Icon/icons/IconQuestion.jsx index 7b3089f6..7bd9dd92 100644 --- a/packages/components/react-web/src/Icon/icons/IconQuestion.jsx +++ b/packages/components/react-web/src/Icon/icons/IconQuestion.jsx @@ -13,7 +13,6 @@ function IconQuestion(props) { - + ); diff --git a/packages/components/react-web/src/Icon/icons/IconSkippy.jsx b/packages/components/react-web/src/Icon/icons/IconSkippy.jsx index beee8ee2..034848b4 100644 --- a/packages/components/react-web/src/Icon/icons/IconSkippy.jsx +++ b/packages/components/react-web/src/Icon/icons/IconSkippy.jsx @@ -13,14 +13,13 @@ function IconSkippy(props) { - + ); } diff --git a/packages/components/react-web/src/Icon/icons/IconSmile.jsx b/packages/components/react-web/src/Icon/icons/IconSmile.jsx index 220785fa..d4775d7c 100644 --- a/packages/components/react-web/src/Icon/icons/IconSmile.jsx +++ b/packages/components/react-web/src/Icon/icons/IconSmile.jsx @@ -13,7 +13,6 @@ function IconSmile(props) { - - + ); } diff --git a/packages/components/react-web/src/Icon/icons/IconSpinner.jsx b/packages/components/react-web/src/Icon/icons/IconSpinner.jsx index 08fc4f9a..9d209910 100644 --- a/packages/components/react-web/src/Icon/icons/IconSpinner.jsx +++ b/packages/components/react-web/src/Icon/icons/IconSpinner.jsx @@ -13,7 +13,6 @@ function IconSpinner(props) { - - - - - - - ); diff --git a/packages/components/react-web/src/Icon/icons/IconSpinnerGap.jsx b/packages/components/react-web/src/Icon/icons/IconSpinnerGap.jsx index e09c6e03..e5adfc41 100644 --- a/packages/components/react-web/src/Icon/icons/IconSpinnerGap.jsx +++ b/packages/components/react-web/src/Icon/icons/IconSpinnerGap.jsx @@ -13,7 +13,6 @@ function IconSpinnerGap(props) { - - - - - - ); diff --git a/packages/components/react-web/src/Icon/icons/IconThumbsUp.jsx b/packages/components/react-web/src/Icon/icons/IconThumbsUp.jsx index 4f6f3369..18043a89 100644 --- a/packages/components/react-web/src/Icon/icons/IconThumbsUp.jsx +++ b/packages/components/react-web/src/Icon/icons/IconThumbsUp.jsx @@ -13,7 +13,6 @@ function IconThumbsUp(props) { ); diff --git a/packages/components/react-web/src/Icon/icons/IconTrash.jsx b/packages/components/react-web/src/Icon/icons/IconTrash.jsx index eea11bff..d43ea084 100644 --- a/packages/components/react-web/src/Icon/icons/IconTrash.jsx +++ b/packages/components/react-web/src/Icon/icons/IconTrash.jsx @@ -13,7 +13,6 @@ function IconTrash(props) { - - ); diff --git a/packages/components/react-web/src/Icon/icons/IconUpload.jsx b/packages/components/react-web/src/Icon/icons/IconUpload.jsx index 385c0805..dcbf940c 100644 --- a/packages/components/react-web/src/Icon/icons/IconUpload.jsx +++ b/packages/components/react-web/src/Icon/icons/IconUpload.jsx @@ -13,7 +13,6 @@ function IconUpload(props) { ); diff --git a/packages/components/react-web/src/Icon/icons/IconUser.jsx b/packages/components/react-web/src/Icon/icons/IconUser.jsx index 7330b33f..281c4d5c 100644 --- a/packages/components/react-web/src/Icon/icons/IconUser.jsx +++ b/packages/components/react-web/src/Icon/icons/IconUser.jsx @@ -13,7 +13,6 @@ function IconUser(props) { ); diff --git a/packages/components/react-web/src/Icon/icons/IconVisible.jsx b/packages/components/react-web/src/Icon/icons/IconVisible.jsx index 9858603f..a9e43caf 100644 --- a/packages/components/react-web/src/Icon/icons/IconVisible.jsx +++ b/packages/components/react-web/src/Icon/icons/IconVisible.jsx @@ -13,7 +13,6 @@ function IconVisible(props) { ); diff --git a/packages/components/react-web/src/Icon/icons/IconZoom.jsx b/packages/components/react-web/src/Icon/icons/IconZoom.jsx index 6946db87..0f29b173 100644 --- a/packages/components/react-web/src/Icon/icons/IconZoom.jsx +++ b/packages/components/react-web/src/Icon/icons/IconZoom.jsx @@ -13,7 +13,6 @@ function IconZoom(props) { ); diff --git a/packages/components/react-web/src/Icon/icons/IconZoomIn.jsx b/packages/components/react-web/src/Icon/icons/IconZoomIn.jsx index 2eb1175e..12493d20 100644 --- a/packages/components/react-web/src/Icon/icons/IconZoomIn.jsx +++ b/packages/components/react-web/src/Icon/icons/IconZoomIn.jsx @@ -13,7 +13,6 @@ function IconZoomIn(props) { ); diff --git a/packages/components/react-web/src/Icon/icons/IconZoomOut.jsx b/packages/components/react-web/src/Icon/icons/IconZoomOut.jsx index 74794847..2e17c74c 100644 --- a/packages/components/react-web/src/Icon/icons/IconZoomOut.jsx +++ b/packages/components/react-web/src/Icon/icons/IconZoomOut.jsx @@ -13,7 +13,6 @@ function IconZoomOut(props) { ); diff --git a/packages/elements/src/icons/svg/Skippy.svg b/packages/elements/src/icons/svg/Skippy.svg index 140af918..0e73a394 100644 --- a/packages/elements/src/icons/svg/Skippy.svg +++ b/packages/elements/src/icons/svg/Skippy.svg @@ -1,3 +1,5 @@ +Skippy +The Compassion logo. diff --git a/yarn.lock b/yarn.lock index 1b53e486..476cd244 100644 --- a/yarn.lock +++ b/yarn.lock @@ -3544,6 +3544,11 @@ "@svgr/plugin-svgo" "^4.3.1" loader-utils "^1.2.3" +"@trysound/sax@0.1.1": + version "0.1.1" + resolved "https://registry.yarnpkg.com/@trysound/sax/-/sax-0.1.1.tgz#3348564048e7a2d7398c935d466c0414ebb6a669" + integrity sha512-Z6DoceYb/1xSg5+e+ZlPZ9v0N16ZvZ+wYMraFue4HYrE4ttONKtsvruIRf6t9TBR0YvSOfi1hUU0fJfBLCDYow== + "@types/anymatch@*": version "1.3.1" resolved "https://registry.yarnpkg.com/@types/anymatch/-/anymatch-1.3.1.tgz#336badc1beecb9dacc38bea2cf32adf627a8421a" @@ -6347,6 +6352,11 @@ commander@^5.0.0, commander@^5.1.0: resolved "https://registry.yarnpkg.com/commander/-/commander-5.1.0.tgz#46abbd1652f8e059bddaef99bbdcb2ad9cf179ae" integrity sha512-P0CysNDQ7rtVw4QIQtm+MRxV66vKFSvlsQvGYXZWR3qFU0jlMKHZZZgw8e+8DSah4UDKMqnknRDQz+xuQXQ/Zg== +commander@^7.1.0: + version "7.2.0" + resolved "https://registry.yarnpkg.com/commander/-/commander-7.2.0.tgz#a36cb57d0b501ce108e4d20559a150a391d97ab7" + integrity sha512-QrWXB+ZQSVPmIWIhtEO9H+gwHaMGYiF5ChvoJ+K9ZGHG/sVsa6yiesAD1GC/x46sET00Xlwo1u49RVVVzvcSkw== + commitizen@^4.0.3, commitizen@^4.2.2: version "4.2.2" resolved "https://registry.yarnpkg.com/commitizen/-/commitizen-4.2.2.tgz#1a93dd07208521ea1ebbf832593542dac714cc79" @@ -6974,6 +6984,17 @@ css-select@^2.0.0: domutils "^1.7.0" nth-check "^1.0.2" +css-select@^3.1.2: + version "3.1.2" + resolved "https://registry.yarnpkg.com/css-select/-/css-select-3.1.2.tgz#d52cbdc6fee379fba97fb0d3925abbd18af2d9d8" + integrity sha512-qmss1EihSuBNWNNhHjxzxSfJoFBM/lERB/Q4EnsJQQC62R2evJDW481091oAdOr9uh46/0n4nrg0It5cAnj1RA== + dependencies: + boolbase "^1.0.0" + css-what "^4.0.0" + domhandler "^4.0.0" + domutils "^2.4.3" + nth-check "^2.0.0" + css-selector-tokenizer@^0.7.0: version "0.7.3" resolved "https://registry.yarnpkg.com/css-selector-tokenizer/-/css-selector-tokenizer-0.7.3.tgz#735f26186e67c749aaf275783405cf0661fae8f1" @@ -7008,6 +7029,11 @@ css-what@^3.2.1: resolved "https://registry.yarnpkg.com/css-what/-/css-what-3.4.2.tgz#ea7026fcb01777edbde52124e21f327e7ae950e4" integrity sha512-ACUm3L0/jiZTqfzRM3Hi9Q8eZqd6IK37mMWPLz9PJxkLWllYeRf+EHUSHYEtFop2Eqytaq1FizFVh7XfBnXCDQ== +css-what@^4.0.0: + version "4.0.0" + resolved "https://registry.yarnpkg.com/css-what/-/css-what-4.0.0.tgz#35e73761cab2eeb3d3661126b23d7aa0e8432233" + integrity sha512-teijzG7kwYfNVsUh2H/YN62xW3KK9YhXEgSlbxMlcyjPNvdKJqFx5lrwlJgoFP1ZHlB89iGDlo/JyshKeRhv5A== + css@^2.0.0: version "2.2.4" resolved "https://registry.yarnpkg.com/css/-/css-2.2.4.tgz#c646755c73971f2bba6a601e2cf2fd71b1298929" @@ -7101,7 +7127,7 @@ cssnano@^4.1.10: is-resolvable "^1.0.0" postcss "^7.0.0" -csso@^4.0.2: +csso@^4.0.2, csso@^4.2.0: version "4.2.0" resolved "https://registry.yarnpkg.com/csso/-/csso-4.2.0.tgz#ea3a561346e8dc9f546d6febedd50187cf389529" integrity sha512-wvlcdIbf6pwKEk7vHj8/Bkc0B4ylXZruLvOgs9doS5eOsOpuodOV2zJChSpkp+pRpYQLQMeF04nr3Z68Sta9jA== @@ -7529,6 +7555,15 @@ dom-serializer@0: domelementtype "^2.0.1" entities "^2.0.0" +dom-serializer@^1.0.1: + version "1.2.0" + resolved "https://registry.yarnpkg.com/dom-serializer/-/dom-serializer-1.2.0.tgz#3433d9136aeb3c627981daa385fc7f32d27c48f1" + integrity sha512-n6kZFH/KlCrqs/1GHMOd5i2fd/beQHuehKdWvNNffbGHTr/almdhuVvTVFb3V7fglz+nC50fFusu3lY33h12pA== + dependencies: + domelementtype "^2.0.1" + domhandler "^4.0.0" + entities "^2.0.0" + dom-walk@^0.1.0: version "0.1.2" resolved "https://registry.yarnpkg.com/dom-walk/-/dom-walk-0.1.2.tgz#0c548bef048f4d1f2a97249002236060daa3fd84" @@ -7544,7 +7579,7 @@ domelementtype@1, domelementtype@^1.3.1: resolved "https://registry.yarnpkg.com/domelementtype/-/domelementtype-1.3.1.tgz#d048c44b37b0d10a7f2a3d5fee3f4333d790481f" integrity sha512-BSKB+TSpMpFI/HOxCNr1O8aMOTZ8hT3pM3GQ0w/mWRmkhEDSFJkkyzz4XQsBV44BChwGkrDfMyjVD0eA2aFV3w== -domelementtype@^2.0.1: +domelementtype@^2.0.1, domelementtype@^2.1.0: version "2.1.0" resolved "https://registry.yarnpkg.com/domelementtype/-/domelementtype-2.1.0.tgz#a851c080a6d1c3d94344aed151d99f669edf585e" integrity sha512-LsTgx/L5VpD+Q8lmsXSHW2WpA+eBlZ9HPf3erD1IoPF00/3JKHZ3BknUVA2QGDNu69ZNmyFmCWBSO45XjYKC5w== @@ -7563,6 +7598,13 @@ domhandler@^2.3.0: dependencies: domelementtype "1" +domhandler@^4.0.0: + version "4.0.0" + resolved "https://registry.yarnpkg.com/domhandler/-/domhandler-4.0.0.tgz#01ea7821de996d85f69029e81fa873c21833098e" + integrity sha512-KPTbnGQ1JeEMQyO1iYXoagsI6so/C96HZiFyByU3T6iAzpXn8EGEvct6unm1ZGoed8ByO2oirxgwxBmqKF9haA== + dependencies: + domelementtype "^2.1.0" + domutils@1.5.1: version "1.5.1" resolved "https://registry.yarnpkg.com/domutils/-/domutils-1.5.1.tgz#dcd8488a26f563d61079e48c9f7b7e32373682cf" @@ -7579,6 +7621,15 @@ domutils@^1.5.1, domutils@^1.7.0: dom-serializer "0" domelementtype "1" +domutils@^2.4.3: + version "2.5.0" + resolved "https://registry.yarnpkg.com/domutils/-/domutils-2.5.0.tgz#42f49cffdabb92ad243278b331fd761c1c2d3039" + integrity sha512-Ho16rzNMOFk2fPwChGh3D2D9OEHAfG19HgmRR2l+WLSsIstNsAYBzePH412bL0y5T44ejABIVfTHQ8nqi/tBCg== + dependencies: + dom-serializer "^1.0.1" + domelementtype "^2.0.1" + domhandler "^4.0.0" + dot-case@^3.0.4: version "3.0.4" resolved "https://registry.yarnpkg.com/dot-case/-/dot-case-3.0.4.tgz#9b2b670d00a431667a8a75ba29cd1b98809ce751" @@ -13154,6 +13205,13 @@ nth-check@^1.0.2, nth-check@~1.0.1: dependencies: boolbase "~1.0.0" +nth-check@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/nth-check/-/nth-check-2.0.0.tgz#1bb4f6dac70072fc313e8c9cd1417b5074c0a125" + integrity sha512-i4sc/Kj8htBrAiH1viZ0TgU8Y5XqCaV/FziYK6TBczxmeKm3AEFWqqF3195yKudrarqy7Zu80Ra5dobFjn9X/Q== + dependencies: + boolbase "^1.0.0" + num2fraction@^1.2.2: version "1.2.2" resolved "https://registry.yarnpkg.com/num2fraction/-/num2fraction-1.2.2.tgz#6f682b6a027a4e9ddfa4564cd2589d1d4e669ede" @@ -17432,6 +17490,19 @@ svgo@^1.0.0, svgo@^1.2.2: unquote "~1.1.1" util.promisify "~1.0.0" +svgo@^2.2.2: + version "2.2.2" + resolved "https://registry.yarnpkg.com/svgo/-/svgo-2.2.2.tgz#51d67c7149661282d22a3c8683f4795cdb40f687" + integrity sha512-kJugY2d0yrsONnG4YavppVkKmKULMw2iFRbB9+usyWqzTaqoBuUaqdMnQ2G1n5P1dmOA2tZvc5zmMM6sPOVBSQ== + dependencies: + "@trysound/sax" "0.1.1" + chalk "^4.1.0" + commander "^7.1.0" + css-select "^3.1.2" + css-tree "^1.1.2" + csso "^4.2.0" + stable "^0.1.8" + symbol-tree@^3.2.2: version "3.2.4" resolved "https://registry.yarnpkg.com/symbol-tree/-/symbol-tree-3.2.4.tgz#430637d248ba77e078883951fb9aa0eed7c63fa2"