From d5f3e1ab365b3d48369271e4d48f79915d8b984f Mon Sep 17 00:00:00 2001 From: Nicola Molinari Date: Wed, 25 Nov 2020 20:06:06 +0100 Subject: [PATCH] chore: setup preconstruct (except for app-shell) --- .gitignore | 2 - jest.d.ts => @types-extensions/jest.d.ts | 0 babel.config.js | 7 + package.json | 40 ++- packages-backend/express/package.json | 13 +- packages-backend/express/tsconfig.build.json | 12 - packages-backend/express/tsconfig.json | 3 - packages-backend/loggers/package.json | 13 +- packages-backend/loggers/tsconfig.build.json | 11 - packages-backend/loggers/tsconfig.json | 3 - packages/actions-global/package.json | 15 +- .../actions-global/tsconfig.declarations.json | 6 - packages/actions-global/tsconfig.json | 4 - packages/application-components/package.json | 17 +- packages/application-config/package.json | 41 +-- .../tsconfig.declarations.json | 6 - packages/application-config/tsconfig.json | 4 - .../application-shell-connectors/package.json | 20 +- .../test-utils/package.json | 4 + .../tsconfig.declarations.json | 6 - .../tsconfig.json | 4 - packages/application-shell/package.json | 5 +- packages/babel-preset-mc-app/index.js | 2 + packages/babel-preset-mc-app/package.json | 1 + packages/browser-history/package.json | 13 +- .../tsconfig.declarations.json | 6 - packages/browser-history/tsconfig.json | 4 - packages/constants/package.json | 13 +- packages/constants/tsconfig.declarations.json | 6 - packages/constants/tsconfig.json | 4 - packages/create-mc-app/bin/create-mc-app.js | 10 +- packages/create-mc-app/package.json | 3 + packages/create-mc-app/src/index.js | 11 + packages/i18n/package.json | 34 +- packages/i18n/tsconfig.declarations.json | 6 - packages/i18n/tsconfig.json | 4 - .../transform-babel-jest.js | 2 + packages/l10n/package.json | 13 +- packages/l10n/tsconfig.declarations.json | 6 - packages/l10n/tsconfig.json | 4 - packages/mc-html-template/package.json | 38 +-- .../create-webpack-config-for-development.js | 5 +- .../create-webpack-config-for-production.js | 5 +- .../mc-scripts/config/vendors-to-transpile.js | 5 +- packages/mc-scripts/package.json | 38 +-- packages/notifications/package.json | 13 +- .../notifications/tsconfig.declarations.json | 6 - packages/notifications/tsconfig.json | 4 - packages/permissions/package.json | 17 +- .../use-is-authorized/use-is-authorized.ts | 10 +- .../permissions/tsconfig.declarations.json | 6 - packages/permissions/tsconfig.json | 4 - packages/react-notifications/package.json | 15 +- .../tsconfig.declarations.json | 6 - packages/react-notifications/tsconfig.json | 4 - packages/sdk/package.json | 24 +- packages/sdk/test-utils/package.json | 4 + packages/sdk/tsconfig.declarations.json | 6 - packages/sdk/tsconfig.json | 4 - packages/sentry/package.json | 13 +- packages/sentry/tsconfig.declarations.json | 6 - packages/sentry/tsconfig.json | 4 - packages/url-utils/package.json | 13 +- packages/url-utils/tsconfig.declarations.json | 6 - packages/url-utils/tsconfig.json | 4 - playground/package.json | 1 - .../state-machines-gcp-eu/api/echo.ts | 3 +- .../state-machines-gcp-us/api/echo.ts | 3 +- rollup.config.js | 8 +- tsconfig.json | 16 +- yarn.lock | 305 ++++++++++++++++-- 71 files changed, 475 insertions(+), 499 deletions(-) rename jest.d.ts => @types-extensions/jest.d.ts (100%) create mode 100644 babel.config.js delete mode 100644 packages-backend/express/tsconfig.build.json delete mode 100644 packages-backend/express/tsconfig.json delete mode 100644 packages-backend/loggers/tsconfig.build.json delete mode 100644 packages-backend/loggers/tsconfig.json delete mode 100644 packages/actions-global/tsconfig.declarations.json delete mode 100644 packages/actions-global/tsconfig.json delete mode 100644 packages/application-config/tsconfig.declarations.json delete mode 100644 packages/application-config/tsconfig.json create mode 100644 packages/application-shell-connectors/test-utils/package.json delete mode 100644 packages/application-shell-connectors/tsconfig.declarations.json delete mode 100644 packages/application-shell-connectors/tsconfig.json delete mode 100644 packages/browser-history/tsconfig.declarations.json delete mode 100644 packages/browser-history/tsconfig.json delete mode 100644 packages/constants/tsconfig.declarations.json delete mode 100644 packages/constants/tsconfig.json create mode 100644 packages/create-mc-app/src/index.js delete mode 100644 packages/i18n/tsconfig.declarations.json delete mode 100644 packages/i18n/tsconfig.json delete mode 100644 packages/l10n/tsconfig.declarations.json delete mode 100644 packages/l10n/tsconfig.json delete mode 100644 packages/notifications/tsconfig.declarations.json delete mode 100644 packages/notifications/tsconfig.json delete mode 100644 packages/permissions/tsconfig.declarations.json delete mode 100644 packages/permissions/tsconfig.json delete mode 100644 packages/react-notifications/tsconfig.declarations.json delete mode 100644 packages/react-notifications/tsconfig.json create mode 100644 packages/sdk/test-utils/package.json delete mode 100644 packages/sdk/tsconfig.declarations.json delete mode 100644 packages/sdk/tsconfig.json delete mode 100644 packages/sentry/tsconfig.declarations.json delete mode 100644 packages/sentry/tsconfig.json delete mode 100644 packages/url-utils/tsconfig.declarations.json delete mode 100644 packages/url-utils/tsconfig.json diff --git a/.gitignore b/.gitignore index 2a88e9272f..3a4808a711 100644 --- a/.gitignore +++ b/.gitignore @@ -74,8 +74,6 @@ dist dist-tarballs public packages/application-shell/test-utils -packages/application-shell-connectors/test-utils -packages/sdk/test-utils # Editor/IDE .idea diff --git a/jest.d.ts b/@types-extensions/jest.d.ts similarity index 100% rename from jest.d.ts rename to @types-extensions/jest.d.ts diff --git a/babel.config.js b/babel.config.js new file mode 100644 index 0000000000..b2ae936b2a --- /dev/null +++ b/babel.config.js @@ -0,0 +1,7 @@ +module.exports = { + presets: ['@commercetools-frontend/babel-preset-mc-app'], + plugins: [ + 'babel-plugin-import-graphql', + 'babel-plugin-typescript-to-proptypes', + ], +}; diff --git a/package.json b/package.json index 686436fc0e..0d577fb37b 100644 --- a/package.json +++ b/package.json @@ -5,8 +5,9 @@ "license": "MIT", "private": true, "scripts": { + "postinstall": "preconstruct dev", "auth": "npm_config_registry=https://registry.npmjs.org npm whoami", - "clean": "lerna exec 'rm -rf build dist'", + "clean": "lerna exec 'rm -rf build dist test-utils/dist'", "extract-intl": "formatjs extract --format=$(pwd)/packages/i18n/transifex-transformer.js --out-file=$(pwd)/packages/i18n/data/core.json 'packages/**/*messages.ts'", "compile-intl": "yarn --cwd packages/i18n compile-data", "l10n:build": "pushd packages/l10n; yarn generate-data", @@ -43,11 +44,10 @@ "template-starter:build": "yarn --cwd application-templates/starter build", "template-starter:start": "yarn --cwd application-templates/starter start", "template-starter:start:prod:local": "yarn --cwd application-templates/starter start:prod:local", - "build": "NODE_ENV=production lerna run build --no-private", - "build:typings": "NODE_ENV=production lerna run build:typings --no-private", - "build:bundles": "NODE_ENV=production lerna run build:bundles --no-private", - "build:bundles:watch": "NODE_ENV=development lerna run --no-private --parallel build:bundles:watch", - "build:website": "yarn build --scope '@commercetools-frontend/application-components' --include-dependencies && yarn --cwd website build && yarn --cwd website-components-playground build", + "prebuild": "lerna run prebuild --no-private", + "build": "preconstruct build && yarn workspace @commercetools-frontend/application-shell run build", + "build:watch": "preconstruct watch & yarn workspace @commercetools-frontend/application-shell run build:bundles:watch", + "build:website": "yarn build && yarn --cwd website build && yarn --cwd website-components-playground build", "now-build": "yarn build:website && rm -rf public && mv website/public public", "labels:sync": "github-labels sync", "generate-types:mc": "./scripts/graphql-cli.sh codegen --project mc", @@ -68,7 +68,30 @@ "website-components-playground" ] }, - "devDependencies": { + "preconstruct": { + "packages": [ + "packages/actions-global", + "packages/application-components", + "packages/application-config", + "packages/application-shell-connectors", + "packages/browser-history", + "packages/constants", + "packages/create-mc-app", + "packages/i18n", + "packages/l10n", + "packages/mc-html-template", + "packages/mc-scripts", + "packages/notifications", + "packages/permissions", + "packages/react-notifications", + "packages/sdk", + "packages/sentry", + "packages/url-utils", + "packages-backend/express", + "packages-backend/loggers" + ] + }, + "dependencies": { "@babel/cli": "7.12.7", "@babel/core": "7.12.7", "@changesets/changelog-github": "0.2.7", @@ -91,14 +114,17 @@ "@graphql-codegen/typescript-operations": "1.17.10", "@percy/cypress": "2.3.2", "@percy/puppeteer": "1.1.0", + "@preconstruct/cli": "2.0.0", "@rollup/plugin-babel": "5.2.1", "@rollup/plugin-commonjs": "16.0.0", "@rollup/plugin-json": "4.1.0", "@rollup/plugin-node-resolve": "10.0.0", "@testing-library/cypress": "7.0.1", "@testing-library/react": "11.2.2", + "@types/jest-environment-puppeteer": "4.4.0", "@types/jquery": "3.5.4", "@types/node": "14.14.9", + "@types/puppeteer": "5.4.0", "@types/react": "16.14.2", "@types/react-dom": "16.9.10", "@types/react-redux": "7.1.11", diff --git a/packages-backend/express/package.json b/packages-backend/express/package.json index a9f4387fe3..0454c75f9b 100644 --- a/packages-backend/express/package.json +++ b/packages-backend/express/package.json @@ -15,15 +15,12 @@ "publishConfig": { "access": "public" }, - "main": "./build/index.js", - "typings": "./build/index.d.ts", - "types": "./build/index.d.ts", - "files": ["build", "package.json", "LICENSE", "README.md"], - "scripts": { - "prebuild": "rimraf build/**", - "build": "tsc -p tsconfig.build.json" - }, + "main": "dist/commercetools-backend-express.cjs.js", + "module": "dist/commercetools-backend-express.esm.js", + "files": ["dist", "package.json", "LICENSE", "README.md"], "dependencies": { + "@babel/runtime": "7.12.5", + "@babel/runtime-corejs3": "7.12.5", "@types/node": "14.14.9", "express": "4.17.1", "express-jwt": "6.0.0", diff --git a/packages-backend/express/tsconfig.build.json b/packages-backend/express/tsconfig.build.json deleted file mode 100644 index d7533e1f1a..0000000000 --- a/packages-backend/express/tsconfig.build.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "extends": "./tsconfig.json", - "compilerOptions": { - "declaration": true, - "declarationDir": "build", - "outDir": "build" - }, - "exclude": [ - "**/fixtures/**", - "**/*.spec.ts" - ], -} \ No newline at end of file diff --git a/packages-backend/express/tsconfig.json b/packages-backend/express/tsconfig.json deleted file mode 100644 index aabf0e3a5f..0000000000 --- a/packages-backend/express/tsconfig.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "../tsconfig.json", -} \ No newline at end of file diff --git a/packages-backend/loggers/package.json b/packages-backend/loggers/package.json index 6090fb66e4..52f7906458 100644 --- a/packages-backend/loggers/package.json +++ b/packages-backend/loggers/package.json @@ -22,15 +22,12 @@ "publishConfig": { "access": "public" }, - "main": "./build/index.js", - "typings": "./build/index.d.ts", - "types": "./build/index.d.ts", - "files": ["build", "package.json", "LICENSE", "README.md"], - "scripts": { - "prebuild": "rimraf build/**", - "build": "tsc -p tsconfig.build.json" - }, + "main": "dist/commercetools-backend-loggers.cjs.js", + "module": "dist/commercetools-backend-loggers.esm.js", + "files": ["dist", "package.json", "LICENSE", "README.md"], "dependencies": { + "@babel/runtime": "7.12.5", + "@babel/runtime-corejs3": "7.12.5", "@sentry/node": "5.27.6", "@types/triple-beam": "1.3.2", "express-winston": "4.0.5", diff --git a/packages-backend/loggers/tsconfig.build.json b/packages-backend/loggers/tsconfig.build.json deleted file mode 100644 index d45f30e39a..0000000000 --- a/packages-backend/loggers/tsconfig.build.json +++ /dev/null @@ -1,11 +0,0 @@ -{ - "extends": "./tsconfig.json", - "compilerOptions": { - "declaration": true, - "declarationDir": "build", - "outDir": "build" - }, - "exclude": [ - "**/*.spec.ts" - ], -} \ No newline at end of file diff --git a/packages-backend/loggers/tsconfig.json b/packages-backend/loggers/tsconfig.json deleted file mode 100644 index aabf0e3a5f..0000000000 --- a/packages-backend/loggers/tsconfig.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "../tsconfig.json", -} \ No newline at end of file diff --git a/packages/actions-global/package.json b/packages/actions-global/package.json index 789fe17c6c..54d08c080c 100644 --- a/packages/actions-global/package.json +++ b/packages/actions-global/package.json @@ -15,18 +15,11 @@ "publishConfig": { "access": "public" }, - "main": "./dist/actions-global.cjs.js", - "module": "./dist/actions-global.es.js", - "typings": "./dist/typings/index.d.ts", - "types": "./dist/typings/index.d.ts", + "main": "dist/commercetools-frontend-actions-global.cjs.js", + "module": "dist/commercetools-frontend-actions-global.esm.js", "files": ["dist", "package.json", "LICENSE", "README.md"], "scripts": { - "prepare": "./../../scripts/version.js replace", - "prebuild": "rimraf dist/**", - "build": "yarn build:bundles && yarn build:typings", - "build:bundles": "cross-env NODE_ENV=production rollup -c ../../rollup.config.js -i ./src/index.ts", - "build:bundles:watch": "yarn build:bundles -w", - "build:typings": "cross-env tsc -p tsconfig.declarations.json --emitDeclarationOnly --declarationDir dist/typings" + "prepare": "./../../scripts/version.js replace" }, "dependencies": { "@babel/runtime": "7.12.5", @@ -34,9 +27,9 @@ "@commercetools-frontend/browser-history": "17.3.0", "@commercetools-frontend/constants": "17.3.0", "@commercetools-frontend/notifications": "17.3.0", + "@commercetools-frontend/sentry": "17.4.1", "@types/lodash": "^4.14.155", "lodash": "4.17.20", - "lodash-es": "4.17.15", "redux-thunk": "2.3.0" }, "devDependencies": { diff --git a/packages/actions-global/tsconfig.declarations.json b/packages/actions-global/tsconfig.declarations.json deleted file mode 100644 index 48b9b51659..0000000000 --- a/packages/actions-global/tsconfig.declarations.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "./tsconfig.json", - "compilerOptions": { "declaration": true, "isolatedModules": false }, - "exclude": ["**/*.spec.ts", "**/*.spec.tsx"], - "include": [] -} diff --git a/packages/actions-global/tsconfig.json b/packages/actions-global/tsconfig.json deleted file mode 100644 index 9034f55111..0000000000 --- a/packages/actions-global/tsconfig.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "extends": "../../tsconfig.json", - "files": ["./src/index.ts"] -} diff --git a/packages/application-components/package.json b/packages/application-components/package.json index e38a5d362f..42e8077cb2 100644 --- a/packages/application-components/package.json +++ b/packages/application-components/package.json @@ -15,10 +15,8 @@ "publishConfig": { "access": "public" }, - "main": "./dist/application-components.cjs.js", - "module": "./dist/application-components.es.js", - "typings": "./dist/typings/index.d.ts", - "types": "./dist/typings/index.d.ts", + "main": "dist/commercetools-frontend-application-components.cjs.js", + "module": "dist/commercetools-frontend-application-components.esm.js", "files": [ "dist", "materials/media-queries.css", @@ -27,12 +25,7 @@ "README.md" ], "scripts": { - "prepare": "./../../scripts/version.js replace", - "prebuild": "rimraf dist/**", - "build": "yarn build:bundles && yarn build:typings", - "build:bundles": "cross-env NODE_ENV=production rollup -c ../../rollup.config.js -i ./src/index.ts", - "build:bundles:watch": "yarn build:bundles -w", - "build:typings": "cross-env tsc -p tsconfig.declarations.json --emitDeclarationOnly --declarationDir dist/typings" + "prepare": "./../../scripts/version.js replace" }, "dependencies": { "@babel/runtime": "7.12.5", @@ -42,7 +35,10 @@ "@commercetools-frontend/i18n": "17.4.1", "@commercetools-uikit/card": "^10.42.2", "@commercetools-uikit/constraints": "^10.42.2", + "@commercetools-uikit/flat-button": "^10.42.2", "@commercetools-uikit/design-system": "^10.42.2", + "@commercetools-uikit/icon-button": "^10.42.2", + "@commercetools-uikit/icons": "^10.42.2", "@commercetools-uikit/primary-button": "^10.42.2", "@commercetools-uikit/secondary-button": "^10.42.2", "@commercetools-uikit/secondary-icon-button": "^10.42.2", @@ -54,7 +50,6 @@ "@types/prop-types": "^15.7.3", "@types/react-modal": "^3.10.4", "lodash": "4.17.20", - "lodash-es": "4.17.15", "prop-types": "15.7.2", "react-modal": "3.12.1", "react-required-if": "1.0.3" diff --git a/packages/application-config/package.json b/packages/application-config/package.json index 46b9dc8a0e..b04c278931 100644 --- a/packages/application-config/package.json +++ b/packages/application-config/package.json @@ -15,19 +15,15 @@ "publishConfig": { "access": "public" }, - "main": "./build/index.js", - "module": "./build/index.js", + "main": "dist/commercetools-frontend-application-config.cjs.js", + "module": "dist/commercetools-frontend-application-config.esm.js", "typings": "./build/typings/src/index.d.ts", "types": "./build/typings/src/index.d.ts", - "files": ["build", "schema.json", "package.json", "LICENSE", "README.md"], + "files": ["dist", "schema.json", "package.json", "LICENSE", "README.md"], "scripts": { "prepare": "./../../scripts/version.js replace", - "prebuild": "rimraf build/**", - "build": "yarn build:schema && yarn build:bundles && yarn build:typings", - "build:schema": "json2ts schema.json src/schema.ts --style.singleQuote --bannerComment '/* eslint-disable prettier/prettier */\n// This file was automatically generated by json-schema-to-typescript.\n// DO NOT MODIFY IT BY HAND. Instead, modify the source schema.json file.'", - "build:bundles": "babel src --out-dir build --extensions .ts --ignore src/types.ts,src/schema.ts", - "build:bundles:watch": "yarn build:bundles -w", - "build:typings": "cross-env tsc -p tsconfig.declarations.json --emitDeclarationOnly --declarationDir build/typings" + "prebuild": "yarn build:schema", + "build:schema": "json2ts schema.json src/schema.ts --style.singleQuote --bannerComment '/* eslint-disable prettier/prettier */\n// This file was automatically generated by json-schema-to-typescript.\n// DO NOT MODIFY IT BY HAND. Instead, modify the source schema.json file.'" }, "dependencies": { "@babel/runtime": "7.12.5", @@ -39,38 +35,11 @@ "omit-empty-es": "1.0.3" }, "devDependencies": { - "@babel/plugin-transform-runtime": "7.12.1", - "@babel/preset-env": "7.12.7", - "@babel/preset-typescript": "7.12.7", "json-schema-to-typescript": "9.1.1", "shelljs": "0.8.4" }, "engines": { "node": ">=10", "npm": ">=5" - }, - "babel": { - "presets": [ - [ - "@babel/preset-env", - { - "targets": { - "node": "10" - }, - "modules": "commonjs", - "useBuiltIns": "usage", - "corejs": 3 - } - ], - "@babel/preset-typescript" - ], - "plugins": [ - [ - "@babel/plugin-transform-runtime", - { - "corejs": 3 - } - ] - ] } } diff --git a/packages/application-config/tsconfig.declarations.json b/packages/application-config/tsconfig.declarations.json deleted file mode 100644 index 48b9b51659..0000000000 --- a/packages/application-config/tsconfig.declarations.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "./tsconfig.json", - "compilerOptions": { "declaration": true, "isolatedModules": false }, - "exclude": ["**/*.spec.ts", "**/*.spec.tsx"], - "include": [] -} diff --git a/packages/application-config/tsconfig.json b/packages/application-config/tsconfig.json deleted file mode 100644 index 98f6485e7e..0000000000 --- a/packages/application-config/tsconfig.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "extends": "../../tsconfig.json", - "files": ["./src/index.ts"] -} \ No newline at end of file diff --git a/packages/application-shell-connectors/package.json b/packages/application-shell-connectors/package.json index 94dd1960b4..33ce4244e5 100644 --- a/packages/application-shell-connectors/package.json +++ b/packages/application-shell-connectors/package.json @@ -15,31 +15,25 @@ "publishConfig": { "access": "public" }, - "main": "./dist/application-shell-connectors.cjs.js", - "module": "./dist/application-shell-connectors.es.js", - "typings": "./dist/typings/index.d.ts", - "types": "./dist/typings/index.d.ts", + "main": "dist/commercetools-frontend-application-shell-connectors.cjs.js", + "module": "dist/commercetools-frontend-application-shell-connectors.esm.js", "files": ["dist", "test-utils", "package.json", "LICENSE", "README.md"], + "preconstruct": { + "entrypoints": ["./index.ts", "./test-utils/index.ts"] + }, "scripts": { - "prepare": "./../../scripts/version.js replace", - "prebuild": "rimraf dist/** test-utils/**", - "build": "yarn build:bundles && yarn build:test-utils && yarn build:typings", - "build:bundles": "cross-env NODE_ENV=production rollup -c ../../rollup.config.js -i ./src/index.ts", - "build:bundles:watch": "yarn build:bundles -w", - "build:test-utils": "cross-env NODE_ENV=development rollup -c ../../rollup.config.js -i ./src/test-utils/index.ts", - "build:typings": "cross-env tsc -p tsconfig.declarations.json --emitDeclarationOnly --declarationDir dist/typings", - "postbuild:typings": "echo \"export * from '../dist/typings/test-utils';\" > test-utils/index.d.ts" + "prepare": "./../../scripts/version.js replace" }, "dependencies": { "@babel/runtime": "7.12.5", "@babel/runtime-corejs3": "7.12.5", "@commercetools-frontend/constants": "17.3.0", "@commercetools-frontend/sentry": "17.4.1", + "@emotion/react": "11.1.1", "@types/lodash": "^4.14.155", "@types/prop-types": "^15.7.3", "graphql": "14.7.0", "lodash": "4.17.20", - "lodash-es": "4.17.15", "moment-timezone": "^0.5.26", "prop-types": "15.7.2" }, diff --git a/packages/application-shell-connectors/test-utils/package.json b/packages/application-shell-connectors/test-utils/package.json new file mode 100644 index 0000000000..c1faf2e648 --- /dev/null +++ b/packages/application-shell-connectors/test-utils/package.json @@ -0,0 +1,4 @@ +{ + "main": "dist/commercetools-frontend-application-shell-connectors-test-utils.cjs.js", + "module": "dist/commercetools-frontend-application-shell-connectors-test-utils.esm.js" +} diff --git a/packages/application-shell-connectors/tsconfig.declarations.json b/packages/application-shell-connectors/tsconfig.declarations.json deleted file mode 100644 index b4b3bcc9a6..0000000000 --- a/packages/application-shell-connectors/tsconfig.declarations.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "./tsconfig.json", - "compilerOptions": { "declaration": true, "isolatedModules": false }, - "exclude": ["**/*.spec.ts", "**/*.spec.tsx"], - "include": ["../../@types-extensions/*"] -} diff --git a/packages/application-shell-connectors/tsconfig.json b/packages/application-shell-connectors/tsconfig.json deleted file mode 100644 index a762f0bc28..0000000000 --- a/packages/application-shell-connectors/tsconfig.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "extends": "../../tsconfig.json", - "files": ["./src/index.ts", "./src/test-utils/index.ts"] -} diff --git a/packages/application-shell/package.json b/packages/application-shell/package.json index f01ef4994c..816f4a73ba 100644 --- a/packages/application-shell/package.json +++ b/packages/application-shell/package.json @@ -48,6 +48,7 @@ "@commercetools-frontend/sentry": "17.4.1", "@commercetools-frontend/url-utils": "17.3.0", "@commercetools-uikit/avatar": "^10.42.2", + "@commercetools-uikit/card": "^10.42.2", "@commercetools-uikit/design-system": "^10.42.2", "@commercetools-uikit/flat-button": "^10.42.2", "@commercetools-uikit/icons": "^10.42.2", @@ -56,12 +57,13 @@ "@commercetools-uikit/select-input": "^10.42.2", "@commercetools-uikit/spacings": "^10.42.2", "@commercetools-uikit/text": "^10.42.2", + "@commercetools/http-user-agent": "2.1.2", "@emotion/react": "11.1.1", "@emotion/styled": "11.0.0", "@flopflip/launchdarkly-adapter": "2.15.7", - "@flopflip/types": "2.5.10", "@flopflip/memory-adapter": "1.9.7", "@flopflip/react-broadcast": "10.2.8", + "@flopflip/types": "2.5.10", "@types/classnames": "^2.2.9", "@types/common-tags": "^1.8.0", "@types/history": "^4.7.6", @@ -79,7 +81,6 @@ "history": "4.10.1", "is-retina": "1.0.3", "lodash": "4.17.20", - "lodash-es": "4.17.15", "memoize-one": "5.1.1", "moment": "^2.24.0", "moment-timezone": "^0.5.26", diff --git a/packages/babel-preset-mc-app/index.js b/packages/babel-preset-mc-app/index.js index d442235534..93b3b096bc 100644 --- a/packages/babel-preset-mc-app/index.js +++ b/packages/babel-preset-mc-app/index.js @@ -141,6 +141,8 @@ module.exports = function getBabePresetConfigForMcApp(api, opts = {}) { // use the `@emotion/babel-preset-css-prop` preset. // https://emotion.sh/docs/@emotion/babel-preset-css-prop opts.runtime === 'automatic' && require('@emotion/babel-plugin').default, + // Cherry-pick Lodash modules + require('babel-plugin-lodash').default, ].filter(Boolean), }; }; diff --git a/packages/babel-preset-mc-app/package.json b/packages/babel-preset-mc-app/package.json index 166eb501e9..ac979f20c0 100644 --- a/packages/babel-preset-mc-app/package.json +++ b/packages/babel-preset-mc-app/package.json @@ -38,6 +38,7 @@ "@emotion/babel-preset-css-prop": "11.0.0", "@emotion/babel-plugin": "11.0.0", "babel-plugin-dev-expression": "0.2.2", + "babel-plugin-lodash": "3.3.4", "babel-plugin-macros": "2.8.0", "babel-plugin-transform-react-remove-prop-types": "0.4.24", "core-js": "3.7.0" diff --git a/packages/browser-history/package.json b/packages/browser-history/package.json index f6075cf918..b6843c3c87 100644 --- a/packages/browser-history/package.json +++ b/packages/browser-history/package.json @@ -15,18 +15,11 @@ "publishConfig": { "access": "public" }, - "main": "./dist/browser-history.cjs.js", - "module": "./dist/browser-history.es.js", - "typings": "./dist/typings/index.d.ts", - "types": "./dist/typings/index.d.ts", + "main": "dist/commercetools-frontend-browser-history.cjs.js", + "module": "dist/commercetools-frontend-browser-history.esm.js", "files": ["dist", "package.json", "LICENSE", "README.md"], "scripts": { - "prepare": "./../../scripts/version.js replace", - "prebuild": "rimraf dist/**", - "build": "yarn build:bundles && yarn build:typings", - "build:bundles": "cross-env NODE_ENV=production rollup -c ../../rollup.config.js -i ./src/index.ts", - "build:bundles:watch": "yarn build:bundles -w", - "build:typings": "cross-env tsc -p tsconfig.declarations.json --emitDeclarationOnly --declarationDir dist/typings" + "prepare": "./../../scripts/version.js replace" }, "dependencies": { "@babel/runtime": "7.12.5", diff --git a/packages/browser-history/tsconfig.declarations.json b/packages/browser-history/tsconfig.declarations.json deleted file mode 100644 index 48b9b51659..0000000000 --- a/packages/browser-history/tsconfig.declarations.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "./tsconfig.json", - "compilerOptions": { "declaration": true, "isolatedModules": false }, - "exclude": ["**/*.spec.ts", "**/*.spec.tsx"], - "include": [] -} diff --git a/packages/browser-history/tsconfig.json b/packages/browser-history/tsconfig.json deleted file mode 100644 index 9034f55111..0000000000 --- a/packages/browser-history/tsconfig.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "extends": "../../tsconfig.json", - "files": ["./src/index.ts"] -} diff --git a/packages/constants/package.json b/packages/constants/package.json index faf0729d98..87c2f11b3e 100644 --- a/packages/constants/package.json +++ b/packages/constants/package.json @@ -15,18 +15,11 @@ "publishConfig": { "access": "public" }, - "main": "./dist/constants.cjs.js", - "module": "./dist/constants.es.js", - "typings": "./dist/typings/index.d.ts", - "types": "./dist/typings/index.d.ts", + "main": "dist/commercetools-frontend-constants.cjs.js", + "module": "dist/commercetools-frontend-constants.esm.js", "files": ["dist", "package.json", "LICENSE", "README.md"], "scripts": { - "prepare": "./../../scripts/version.js replace", - "prebuild": "rimraf dist/**", - "build": "yarn build:bundles && yarn build:typings", - "build:bundles": "cross-env NODE_ENV=production rollup -c ../../rollup.config.js -i ./src/index.ts", - "build:bundles:watch": "yarn build:bundles -w", - "build:typings": "cross-env tsc -p tsconfig.declarations.json --emitDeclarationOnly --declarationDir dist/typings" + "prepare": "./../../scripts/version.js replace" }, "dependencies": { "@babel/runtime": "7.12.5", diff --git a/packages/constants/tsconfig.declarations.json b/packages/constants/tsconfig.declarations.json deleted file mode 100644 index 48b9b51659..0000000000 --- a/packages/constants/tsconfig.declarations.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "./tsconfig.json", - "compilerOptions": { "declaration": true, "isolatedModules": false }, - "exclude": ["**/*.spec.ts", "**/*.spec.tsx"], - "include": [] -} diff --git a/packages/constants/tsconfig.json b/packages/constants/tsconfig.json deleted file mode 100644 index 9034f55111..0000000000 --- a/packages/constants/tsconfig.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "extends": "../../tsconfig.json", - "files": ["./src/index.ts"] -} diff --git a/packages/create-mc-app/bin/create-mc-app.js b/packages/create-mc-app/bin/create-mc-app.js index 730bb0677f..afb92f62ca 100755 --- a/packages/create-mc-app/bin/create-mc-app.js +++ b/packages/create-mc-app/bin/create-mc-app.js @@ -2,10 +2,12 @@ const mri = require('mri'); const Listr = require('listr'); -const { shouldUseYarn } = require('../src/utils'); -const tasks = require('../src/tasks'); -const hintOutdatedVersion = require('../src/hint-outdated-version'); -const parseArguments = require('../src/parse-arguments'); +const { + shouldUseYarn, + tasks, + hintOutdatedVersion, + parseArguments, +} = require('../src'); const pkg = require('../package.json'); const currentVersion = pkg.version; diff --git a/packages/create-mc-app/package.json b/packages/create-mc-app/package.json index 64bfa40d8e..bd364bff4f 100644 --- a/packages/create-mc-app/package.json +++ b/packages/create-mc-app/package.json @@ -15,6 +15,9 @@ "publishConfig": { "access": "public" }, + "main": "dist/commercetools-frontend-create-mc-app.cjs.js", + "module": "dist/commercetools-frontend-create-mc-app.esm.js", + "files": ["bin", "dist", "package.json", "LICENSE", "README.md"], "bin": { "create-mc-app": "./bin/create-mc-app.js" }, diff --git a/packages/create-mc-app/src/index.js b/packages/create-mc-app/src/index.js new file mode 100644 index 0000000000..112a48eb8c --- /dev/null +++ b/packages/create-mc-app/src/index.js @@ -0,0 +1,11 @@ +const { shouldUseYarn } = require('./utils'); +const tasks = require('./tasks'); +const hintOutdatedVersion = require('./hint-outdated-version'); +const parseArguments = require('./parse-arguments'); + +module.exports = { + shouldUseYarn, + tasks, + hintOutdatedVersion, + parseArguments, +}; diff --git a/packages/i18n/package.json b/packages/i18n/package.json index 7b17956dde..603926f6b7 100644 --- a/packages/i18n/package.json +++ b/packages/i18n/package.json @@ -9,24 +9,29 @@ "directory": "packages/i18n" }, "homepage": "https://docs.commercetools.com/custom-applications", - "keywords": ["javascript", "frontend", "react", "toolkit"], + "keywords": [ + "javascript", + "frontend", + "react", + "toolkit" + ], "license": "MIT", "private": false, "publishConfig": { "access": "public" }, - "main": "./dist/i18n-index.cjs.js", - "module": "./dist/i18n-index.es.js", - "typings": "./dist/typings/src/index.d.ts", - "types": "./dist/typings/src/index.d.ts", - "files": ["compiled-data", "dist", "package.json", "LICENSE", "README.md"], + "main": "dist/commercetools-frontend-i18n.cjs.js", + "module": "dist/commercetools-frontend-i18n.esm.js", + "files": [ + "compiled-data", + "dist", + "package.json", + "LICENSE", + "README.md" + ], "scripts": { "prepare": "./../../scripts/version.js replace", - "prebuild": "rimraf dist/** && yarn compile-data", - "build": "yarn build:bundles && yarn build:typings", - "build:bundles": "cross-env NODE_ENV=production rollup -c ../../rollup.config.js -i ./src/index.ts --dir dist", - "build:bundles:watch": "yarn build:bundles -w", - "build:typings": "cross-env tsc -p tsconfig.declarations.json --emitDeclarationOnly --declarationDir dist/typings", + "prebuild": "yarn compile-data", "compile-data": "formatjs compile-folder --format=$(pwd)/transifex-transformer.js --ast data compiled-data" }, "dependencies": { @@ -34,16 +39,19 @@ "@babel/runtime-corejs3": "7.12.5", "@commercetools-frontend/sentry": "17.4.1", "@commercetools-uikit/i18n": "10.42.2", + "@emotion/react": "11.1.1", "@types/prop-types": "^15.7.3", "moment": "^2.24.0", "prop-types": "15.7.2" }, "devDependencies": { "intl-messageformat-parser": "6.0.17", - "react": "16.14.0" + "react": "16.14.0", + "react-intl": "5.10.1" }, "peerDependencies": { "@types/react": "16.x", - "react": ">=16.8.0" + "react": ">=16.8.0", + "react-intl": "3.x || 4.x || 5.x" } } diff --git a/packages/i18n/tsconfig.declarations.json b/packages/i18n/tsconfig.declarations.json deleted file mode 100644 index d276f5225c..0000000000 --- a/packages/i18n/tsconfig.declarations.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "./tsconfig.json", - "compilerOptions": { "declaration": true, "isolatedModules": false }, - "exclude": ["**/*.spec.ts", "**/*.spec.tsx"], - "include": ["../../@types-extensions/locales.d.ts"] -} diff --git a/packages/i18n/tsconfig.json b/packages/i18n/tsconfig.json deleted file mode 100644 index 9034f55111..0000000000 --- a/packages/i18n/tsconfig.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "extends": "../../tsconfig.json", - "files": ["./src/index.ts"] -} diff --git a/packages/jest-preset-mc-app/transform-babel-jest.js b/packages/jest-preset-mc-app/transform-babel-jest.js index abcc5125a6..02ef0cf2d0 100644 --- a/packages/jest-preset-mc-app/transform-babel-jest.js +++ b/packages/jest-preset-mc-app/transform-babel-jest.js @@ -8,6 +8,8 @@ const mcAppBabelConfig = getBabePresetConfigForMcApp(null, { }); const jestBabelConfig = { + // Avoid to look for the `babel.config.js`. + configFile: false, ...mcAppBabelConfig, plugins: [...mcAppBabelConfig.plugins, ...getJestBabelPreset().plugins], }; diff --git a/packages/l10n/package.json b/packages/l10n/package.json index f6d41f77ca..942d9b9c7d 100644 --- a/packages/l10n/package.json +++ b/packages/l10n/package.json @@ -15,27 +15,20 @@ "publishConfig": { "access": "public" }, - "main": "./dist/l10n-index.cjs.js", - "module": "./dist/l10n-index.es.js", - "typings": "./dist/typings/src/index.d.ts", - "types": "./dist/typings/src/index.d.ts", + "main": "dist/commercetools-frontend-l10n.cjs.js", + "module": "dist/commercetools-frontend-l10n.esm.js", "files": ["data", "dist", "package.json", "LICENSE", "README.md"], "scripts": { "prepare": "./../../scripts/version.js replace", - "prebuild": "rimraf dist/**", - "build": "yarn build:bundles && yarn build:typings", - "build:bundles": "cross-env NODE_ENV=production rollup -c ../../rollup.config.js -i ./src/index.ts -d dist", - "build:bundles:watch": "yarn build:bundles -w", - "build:typings": "cross-env tsc -p tsconfig.declarations.json --emitDeclarationOnly --declarationDir dist/typings", "generate-data": "node ./scripts/generate-l10n-data.js" }, "dependencies": { "@babel/runtime": "7.12.5", "@babel/runtime-corejs3": "7.12.5", "@commercetools-frontend/sentry": "17.4.1", + "@emotion/react": "11.1.1", "@types/prop-types": "^15.7.3", "lodash": "4.17.20", - "lodash-es": "4.17.15", "moment": "^2.24.0", "prop-types": "15.7.2" }, diff --git a/packages/l10n/tsconfig.declarations.json b/packages/l10n/tsconfig.declarations.json deleted file mode 100644 index 48b9b51659..0000000000 --- a/packages/l10n/tsconfig.declarations.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "./tsconfig.json", - "compilerOptions": { "declaration": true, "isolatedModules": false }, - "exclude": ["**/*.spec.ts", "**/*.spec.tsx"], - "include": [] -} diff --git a/packages/l10n/tsconfig.json b/packages/l10n/tsconfig.json deleted file mode 100644 index 9034f55111..0000000000 --- a/packages/l10n/tsconfig.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "extends": "../../tsconfig.json", - "files": ["./src/index.ts"] -} diff --git a/packages/mc-html-template/package.json b/packages/mc-html-template/package.json index c3a70823f2..931e76a596 100644 --- a/packages/mc-html-template/package.json +++ b/packages/mc-html-template/package.json @@ -15,10 +15,10 @@ "publishConfig": { "access": "public" }, - "main": "./build/index.js", - "module": "./build/index.js", + "main": "dist/commercetools-frontend-mc-html-template.cjs.js", + "module": "dist/commercetools-frontend-mc-html-template.esm.js", "files": [ - "build", + "dist", "html-scripts", "html-styles", "webpack.js", @@ -26,11 +26,6 @@ "LICENSE", "README.md" ], - "scripts": { - "prebuild": "rimraf build/**", - "build": "babel src --out-dir build", - "build:bundles:watch": "yarn build -w" - }, "dependencies": { "@babel/runtime": "7.12.5", "@babel/runtime-corejs3": "7.12.5", @@ -40,35 +35,8 @@ "uglify-es": "3.3.9", "uglifycss": "0.0.29" }, - "devDependencies": { - "@babel/plugin-transform-runtime": "7.12.1", - "@babel/preset-env": "7.12.7" - }, "engines": { "node": ">=10", "npm": ">=5" - }, - "babel": { - "presets": [ - [ - "@babel/preset-env", - { - "targets": { - "node": "10" - }, - "modules": "commonjs", - "useBuiltIns": "usage", - "corejs": 3 - } - ] - ], - "plugins": [ - [ - "@babel/plugin-transform-runtime", - { - "corejs": 3 - } - ] - ] } } diff --git a/packages/mc-scripts/config/create-webpack-config-for-development.js b/packages/mc-scripts/config/create-webpack-config-for-development.js index e7fed82a27..c67b68b052 100644 --- a/packages/mc-scripts/config/create-webpack-config-for-development.js +++ b/packages/mc-scripts/config/create-webpack-config-for-development.js @@ -1,2 +1,5 @@ // For backwards compatibilty -module.exports = require('../build/config/create-webpack-config-for-development'); +const { + createWebpackConfigForDevelopment, +} = require('../dist/commercetools-frontend-mc-scripts.cjs'); +module.exports = createWebpackConfigForDevelopment; diff --git a/packages/mc-scripts/config/create-webpack-config-for-production.js b/packages/mc-scripts/config/create-webpack-config-for-production.js index a3b15bc346..7e90df212e 100644 --- a/packages/mc-scripts/config/create-webpack-config-for-production.js +++ b/packages/mc-scripts/config/create-webpack-config-for-production.js @@ -1,2 +1,5 @@ // For backwards compatibilty -module.exports = require('../build/config/create-webpack-config-for-production'); +const { + createWebpackConfigForProduction, +} = require('../dist/commercetools-frontend-mc-scripts.cjs'); +module.exports = createWebpackConfigForProduction; diff --git a/packages/mc-scripts/config/vendors-to-transpile.js b/packages/mc-scripts/config/vendors-to-transpile.js index 2d95f82eee..b2e6e3e5f9 100644 --- a/packages/mc-scripts/config/vendors-to-transpile.js +++ b/packages/mc-scripts/config/vendors-to-transpile.js @@ -1,2 +1,5 @@ // For backwards compatibilty -module.exports = require('../build/config/vendors-to-transpile'); +const { + vendorsToCompile, +} = require('../dist/commercetools-frontend-mc-scripts.cjs'); +module.exports = vendorsToCompile; diff --git a/packages/mc-scripts/package.json b/packages/mc-scripts/package.json index ab34d4374d..44915414f7 100644 --- a/packages/mc-scripts/package.json +++ b/packages/mc-scripts/package.json @@ -15,17 +15,12 @@ "publishConfig": { "access": "public" }, - "main": "./build/index.js", - "module": "./build/index.js", - "files": ["bin", "build", "config", "package.json", "LICENSE", "README.md"], + "main": "dist/commercetools-frontend-mc-scripts.cjs.js", + "module": "dist/commercetools-frontend-mc-scripts.esm.js", + "files": ["bin", "dist", "config", "package.json", "LICENSE", "README.md"], "bin": { "mc-scripts": "./bin/mc-scripts.js" }, - "scripts": { - "prebuild": "rimraf build/**", - "build": "babel src --out-dir build", - "build:bundles:watch": "yarn build -w" - }, "browserslist": { "production": [">1%", "not op_mini all", "not dead"], "development": ["last 2 firefox versions", "last 2 chrome versions"] @@ -79,35 +74,8 @@ "webpack-dev-server": "3.11.0", "webpackbar": "4.0.0" }, - "devDependencies": { - "@babel/plugin-transform-runtime": "7.12.1", - "@babel/preset-env": "7.12.7" - }, "engines": { "node": ">=10", "npm": ">=5" - }, - "babel": { - "presets": [ - [ - "@babel/preset-env", - { - "targets": { - "node": "10" - }, - "modules": "commonjs", - "useBuiltIns": "usage", - "corejs": 3 - } - ] - ], - "plugins": [ - [ - "@babel/plugin-transform-runtime", - { - "corejs": 3 - } - ] - ] } } diff --git a/packages/notifications/package.json b/packages/notifications/package.json index 94e9b86a7d..ee3cc02b4d 100644 --- a/packages/notifications/package.json +++ b/packages/notifications/package.json @@ -15,18 +15,11 @@ "publishConfig": { "access": "public" }, - "main": "./dist/notifications.cjs.js", - "module": "./dist/notifications.es.js", - "typings": "./dist/typings/index.d.ts", - "types": "./dist/typings/index.d.ts", + "main": "dist/commercetools-frontend-notifications.cjs.js", + "module": "dist/commercetools-frontend-notifications.esm.js", "files": ["dist", "package.json", "LICENSE", "README.md"], "scripts": { - "prepare": "./../../scripts/version.js replace", - "prebuild": "rimraf dist/**", - "build": "yarn build:bundles && yarn build:typings", - "build:bundles": "cross-env NODE_ENV=production rollup -c ../../rollup.config.js -i ./src/index.ts", - "build:bundles:watch": "yarn build:bundles -w", - "build:typings": "cross-env tsc -p tsconfig.declarations.json --emitDeclarationOnly --declarationDir dist/typings" + "prepare": "./../../scripts/version.js replace" }, "dependencies": { "@babel/runtime": "7.12.5", diff --git a/packages/notifications/tsconfig.declarations.json b/packages/notifications/tsconfig.declarations.json deleted file mode 100644 index 48b9b51659..0000000000 --- a/packages/notifications/tsconfig.declarations.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "./tsconfig.json", - "compilerOptions": { "declaration": true, "isolatedModules": false }, - "exclude": ["**/*.spec.ts", "**/*.spec.tsx"], - "include": [] -} diff --git a/packages/notifications/tsconfig.json b/packages/notifications/tsconfig.json deleted file mode 100644 index 9034f55111..0000000000 --- a/packages/notifications/tsconfig.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "extends": "../../tsconfig.json", - "files": ["./src/index.ts"] -} diff --git a/packages/permissions/package.json b/packages/permissions/package.json index fd653e8958..352ba46df8 100644 --- a/packages/permissions/package.json +++ b/packages/permissions/package.json @@ -15,28 +15,23 @@ "publishConfig": { "access": "public" }, - "main": "./dist/permissions.cjs.js", - "module": "./dist/permissions.es.js", - "typings": "./dist/typings/index.d.ts", - "types": "./dist/typings/index.d.ts", + "main": "dist/commercetools-frontend-permissions.cjs.js", + "module": "dist/commercetools-frontend-permissions.esm.js", "files": ["dist", "package.json", "LICENSE", "README.md"], "scripts": { - "prepare": "./../../scripts/version.js replace", - "prebuild": "rimraf dist/**", - "build": "yarn build:bundles && yarn build:typings", - "build:bundles": "cross-env NODE_ENV=production rollup -c ../../rollup.config.js -i ./src/index.ts", - "build:bundles:watch": "yarn build:bundles -w", - "build:typings": "cross-env tsc -p tsconfig.declarations.json --emitDeclarationOnly --declarationDir dist/typings" + "prepare": "./../../scripts/version.js replace" }, "dependencies": { "@babel/runtime": "7.12.5", "@babel/runtime-corejs3": "7.12.5", "@commercetools-frontend/application-shell-connectors": "17.4.1", + "@commercetools-frontend/sentry": "17.4.1", + "@emotion/react": "11.1.1", "@types/lodash": "^4.14.155", "@types/prop-types": "^15.7.3", "lodash": "4.17.20", - "lodash-es": "4.17.15", "prop-types": "15.7.2", + "tiny-invariant": "1.1.0", "tiny-warning": "1.0.3" }, "devDependencies": { diff --git a/packages/permissions/src/hooks/use-is-authorized/use-is-authorized.ts b/packages/permissions/src/hooks/use-is-authorized/use-is-authorized.ts index 9ee9535752..4cbf5c5a67 100644 --- a/packages/permissions/src/hooks/use-is-authorized/use-is-authorized.ts +++ b/packages/permissions/src/hooks/use-is-authorized/use-is-authorized.ts @@ -1,4 +1,4 @@ -import React from 'react'; +import { useEffect } from 'react'; import warning from 'tiny-warning'; import { useApplicationContext } from '@commercetools-frontend/application-shell-connectors'; import { reportErrorToSentry } from '@commercetools-frontend/sentry'; @@ -52,10 +52,12 @@ type TSelectDataFenceData = ( } ) => string[] | null; +// Log a warning only once, and not on each render. const useWarning = (condition: boolean, message: string) => { - React.useEffect(() => { + useEffect(() => { warning(condition, message); - }, [condition, message]); + // eslint-disable-next-line react-hooks/exhaustive-deps + }, []); }; const useIsAuthorized = ({ @@ -70,7 +72,7 @@ const useIsAuthorized = ({ demandedDataFences?: TDemandedDataFence[]; selectDataFenceData?: TSelectDataFenceData; shouldMatchSomePermissions?: boolean; -}) => { +}): boolean => { const impliedPermissions = getImpliedPermissions(demandedPermissions); useWarning( diff --git a/packages/permissions/tsconfig.declarations.json b/packages/permissions/tsconfig.declarations.json deleted file mode 100644 index 48b9b51659..0000000000 --- a/packages/permissions/tsconfig.declarations.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "./tsconfig.json", - "compilerOptions": { "declaration": true, "isolatedModules": false }, - "exclude": ["**/*.spec.ts", "**/*.spec.tsx"], - "include": [] -} diff --git a/packages/permissions/tsconfig.json b/packages/permissions/tsconfig.json deleted file mode 100644 index 9034f55111..0000000000 --- a/packages/permissions/tsconfig.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "extends": "../../tsconfig.json", - "files": ["./src/index.ts"] -} diff --git a/packages/react-notifications/package.json b/packages/react-notifications/package.json index e38cecd700..572cc59fa6 100644 --- a/packages/react-notifications/package.json +++ b/packages/react-notifications/package.json @@ -15,18 +15,11 @@ "publishConfig": { "access": "public" }, - "main": "./dist/react-notifications.cjs.js", - "module": "./dist/react-notifications.es.js", - "typings": "./dist/typings/index.d.ts", - "types": "./dist/typings/index.d.ts", + "main": "dist/commercetools-frontend-react-notifications.cjs.js", + "module": "dist/commercetools-frontend-react-notifications.esm.js", "files": ["dist", "package.json", "LICENSE", "README.md"], "scripts": { - "prepare": "./../../scripts/version.js replace", - "prebuild": "rimraf dist/**", - "build": "yarn build:bundles && yarn build:typings", - "build:bundles": "cross-env NODE_ENV=production rollup -c ../../rollup.config.js -i ./src/index.ts", - "build:bundles:watch": "yarn build:bundles -w", - "build:typings": "cross-env tsc -p tsconfig.declarations.json --emitDeclarationOnly --declarationDir dist/typings" + "prepare": "./../../scripts/version.js replace" }, "dependencies": { "@babel/runtime": "7.12.5", @@ -35,6 +28,7 @@ "@commercetools-frontend/constants": "17.3.0", "@commercetools-frontend/notifications": "17.3.0", "@commercetools-frontend/sentry": "17.4.1", + "@commercetools-uikit/design-system": "^10.42.2", "@commercetools-uikit/icon-button": "^10.42.2", "@commercetools-uikit/icons": "^10.42.2", "@commercetools-uikit/spacings": "^10.42.2", @@ -44,7 +38,6 @@ "@types/lodash": "^4.14.155", "@types/prop-types": "^15.7.3", "lodash": "4.17.20", - "lodash-es": "4.17.15", "moment": "^2.24.0", "moment-timezone": "^0.5.26", "prop-types": "15.7.2", diff --git a/packages/react-notifications/tsconfig.declarations.json b/packages/react-notifications/tsconfig.declarations.json deleted file mode 100644 index 48b9b51659..0000000000 --- a/packages/react-notifications/tsconfig.declarations.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "./tsconfig.json", - "compilerOptions": { "declaration": true, "isolatedModules": false }, - "exclude": ["**/*.spec.ts", "**/*.spec.tsx"], - "include": [] -} diff --git a/packages/react-notifications/tsconfig.json b/packages/react-notifications/tsconfig.json deleted file mode 100644 index 9034f55111..0000000000 --- a/packages/react-notifications/tsconfig.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "extends": "../../tsconfig.json", - "files": ["./src/index.ts"] -} diff --git a/packages/sdk/package.json b/packages/sdk/package.json index 6e36172b3f..cb6536100a 100644 --- a/packages/sdk/package.json +++ b/packages/sdk/package.json @@ -15,20 +15,14 @@ "publishConfig": { "access": "public" }, - "main": "./dist/sdk.cjs.js", - "module": "./dist/sdk.es.js", - "typings": "./dist/typings/index.d.ts", - "types": "./dist/typings/index.d.ts", + "preconstruct": { + "entrypoints": ["./index.ts", "./test-utils/index.ts"] + }, + "main": "dist/commercetools-frontend-sdk.cjs.js", + "module": "dist/commercetools-frontend-sdk.esm.js", "files": ["dist", "test-utils", "package.json", "LICENSE", "README.md"], "scripts": { - "prepare": "./../../scripts/version.js replace", - "prebuild": "rimraf dist/** test-utils/**", - "build": "yarn build:bundles && yarn build:test-utils && yarn build:typings", - "build:bundles": "cross-env NODE_ENV=production rollup -c ../../rollup.config.js -i ./src/index.ts", - "build:bundles:watch": "yarn build:bundles -w", - "build:test-utils": "cross-env NODE_ENV=development rollup -c ../../rollup.config.js -i ./src/test-utils/index.ts", - "build:typings": "cross-env tsc -p tsconfig.declarations.json --emitDeclarationOnly --declarationDir dist/typings", - "postbuild:typings": "echo \"export * from '../dist/typings/test-utils';\" > test-utils/index.d.ts" + "prepare": "./../../scripts/version.js replace" }, "dependencies": { "@babel/runtime": "7.12.5", @@ -44,7 +38,8 @@ "fast-equals": "2.0.0", "prop-types": "15.7.2", "qss": "2.0.3", - "unfetch": "4.2.0" + "unfetch": "4.2.0", + "uuid": "8.3.1" }, "devDependencies": { "@types/enzyme": "3.10.8", @@ -52,8 +47,7 @@ "react": "16.14.0", "react-redux": "7.2.2", "redux": "4.0.5", - "redux-thunk": "2.3.0", - "uuid": "8.3.1" + "redux-thunk": "2.3.0" }, "peerDependencies": { "@types/react": "16.x", diff --git a/packages/sdk/test-utils/package.json b/packages/sdk/test-utils/package.json new file mode 100644 index 0000000000..1db1145055 --- /dev/null +++ b/packages/sdk/test-utils/package.json @@ -0,0 +1,4 @@ +{ + "main": "dist/commercetools-frontend-sdk-test-utils.cjs.js", + "module": "dist/commercetools-frontend-sdk-test-utils.esm.js" +} diff --git a/packages/sdk/tsconfig.declarations.json b/packages/sdk/tsconfig.declarations.json deleted file mode 100644 index 876321dced..0000000000 --- a/packages/sdk/tsconfig.declarations.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "./tsconfig.json", - "compilerOptions": { "declaration": true, "isolatedModules": false }, - "exclude": ["**/*.spec.ts", "**/*.spec.tsx"], - "include": [] -} \ No newline at end of file diff --git a/packages/sdk/tsconfig.json b/packages/sdk/tsconfig.json deleted file mode 100644 index f6112b5539..0000000000 --- a/packages/sdk/tsconfig.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "extends": "../../tsconfig.json", - "files": ["./src/index.ts", "./src/test-utils/index.ts"] -} \ No newline at end of file diff --git a/packages/sentry/package.json b/packages/sentry/package.json index 7533db6da3..bb85f63f69 100644 --- a/packages/sentry/package.json +++ b/packages/sentry/package.json @@ -15,18 +15,11 @@ "publishConfig": { "access": "public" }, - "main": "./dist/sentry.cjs.js", - "module": "./dist/sentry.es.js", - "typings": "./dist/typings/index.d.ts", - "types": "./dist/typings/index.d.ts", + "main": "dist/commercetools-frontend-sentry.cjs.js", + "module": "dist/commercetools-frontend-sentry.esm.js", "files": ["dist", "package.json", "LICENSE", "README.md"], "scripts": { - "prepare": "./../../scripts/version.js replace", - "prebuild": "rimraf dist/**", - "build": "yarn build:bundles && yarn build:typings", - "build:typings": "cross-env tsc -p tsconfig.declarations.json --emitDeclarationOnly --declarationDir dist/typings", - "build:bundles": "cross-env NODE_ENV=production rollup -c ../../rollup.config.js -i ./src/index.ts", - "build:bundles:watch": "yarn build:bundles -w" + "prepare": "./../../scripts/version.js replace" }, "dependencies": { "@babel/runtime": "7.12.5", diff --git a/packages/sentry/tsconfig.declarations.json b/packages/sentry/tsconfig.declarations.json deleted file mode 100644 index 876321dced..0000000000 --- a/packages/sentry/tsconfig.declarations.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "./tsconfig.json", - "compilerOptions": { "declaration": true, "isolatedModules": false }, - "exclude": ["**/*.spec.ts", "**/*.spec.tsx"], - "include": [] -} \ No newline at end of file diff --git a/packages/sentry/tsconfig.json b/packages/sentry/tsconfig.json deleted file mode 100644 index 98f6485e7e..0000000000 --- a/packages/sentry/tsconfig.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "extends": "../../tsconfig.json", - "files": ["./src/index.ts"] -} \ No newline at end of file diff --git a/packages/url-utils/package.json b/packages/url-utils/package.json index 92d1e7882c..9e891c5e7a 100644 --- a/packages/url-utils/package.json +++ b/packages/url-utils/package.json @@ -15,18 +15,11 @@ "publishConfig": { "access": "public" }, - "main": "./dist/url-utils.cjs.js", - "module": "./dist/url-utils.es.js", - "typings": "./dist/typings/index.d.ts", - "types": "./dist/typings/index.d.ts", + "main": "dist/commercetools-frontend-url-utils.cjs.js", + "module": "dist/commercetools-frontend-url-utils.esm.js", "files": ["dist", "package.json", "LICENSE", "README.md"], "scripts": { - "prepare": "./../../scripts/version.js replace", - "prebuild": "rimraf dist/**", - "build": "yarn build:bundles && yarn build:typings", - "build:bundles": "cross-env NODE_ENV=production rollup -c ../../rollup.config.js -i ./src/index.ts", - "build:bundles:watch": "yarn build:bundles -w", - "build:typings": "cross-env tsc -p tsconfig.declarations.json --emitDeclarationOnly --declarationDir dist/typings" + "prepare": "./../../scripts/version.js replace" }, "dependencies": { "@babel/runtime": "7.12.5", diff --git a/packages/url-utils/tsconfig.declarations.json b/packages/url-utils/tsconfig.declarations.json deleted file mode 100644 index 48b9b51659..0000000000 --- a/packages/url-utils/tsconfig.declarations.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "./tsconfig.json", - "compilerOptions": { "declaration": true, "isolatedModules": false }, - "exclude": ["**/*.spec.ts", "**/*.spec.tsx"], - "include": [] -} diff --git a/packages/url-utils/tsconfig.json b/packages/url-utils/tsconfig.json deleted file mode 100644 index 9034f55111..0000000000 --- a/packages/url-utils/tsconfig.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "extends": "../../tsconfig.json", - "files": ["./src/index.ts"] -} diff --git a/playground/package.json b/playground/package.json index a68338f019..41a17e273a 100644 --- a/playground/package.json +++ b/playground/package.json @@ -35,7 +35,6 @@ "@commercetools-uikit/spacings": "10.42.2", "@commercetools-uikit/text": "10.42.2", "lodash": "4.17.20", - "lodash-es": "4.17.15", "moment": "^2.24.0", "moment-timezone": "^0.5.26", "normalizr": "3.6.1", diff --git a/playground/vercel-deployments/state-machines-gcp-eu/api/echo.ts b/playground/vercel-deployments/state-machines-gcp-eu/api/echo.ts index 632f0d3108..ce1981c652 100644 --- a/playground/vercel-deployments/state-machines-gcp-eu/api/echo.ts +++ b/playground/vercel-deployments/state-machines-gcp-eu/api/echo.ts @@ -8,7 +8,8 @@ import { } from '@commercetools-backend/express'; const sessionAuthVerifier = createSessionAuthVerifier({ - audience: process.env.PLAYGROUND_API_AUDIENCE, + // eslint-disable-next-line @typescript-eslint/no-non-null-assertion + audience: process.env.PLAYGROUND_API_AUDIENCE!, issuer: CLOUD_IDENTIFIERS.GCP_EU, inferIssuer: true, }); diff --git a/playground/vercel-deployments/state-machines-gcp-us/api/echo.ts b/playground/vercel-deployments/state-machines-gcp-us/api/echo.ts index 632f0d3108..ce1981c652 100644 --- a/playground/vercel-deployments/state-machines-gcp-us/api/echo.ts +++ b/playground/vercel-deployments/state-machines-gcp-us/api/echo.ts @@ -8,7 +8,8 @@ import { } from '@commercetools-backend/express'; const sessionAuthVerifier = createSessionAuthVerifier({ - audience: process.env.PLAYGROUND_API_AUDIENCE, + // eslint-disable-next-line @typescript-eslint/no-non-null-assertion + audience: process.env.PLAYGROUND_API_AUDIENCE!, issuer: CLOUD_IDENTIFIERS.GCP_EU, inferIssuer: true, }); diff --git a/rollup.config.js b/rollup.config.js index f70aa9d0d8..0729f6ef4c 100644 --- a/rollup.config.js +++ b/rollup.config.js @@ -46,13 +46,7 @@ const createPlugins = (format) => { babelPluginImportGraphQL.default, ...babelOptions.plugins, 'babel-plugin-typescript-to-proptypes', - isFormatEs && [ - 'transform-rename-import', - { - replacements: [{ original: 'lodash', replacement: 'lodash-es' }], - }, - ], - ].filter(Boolean), + ], }), // To convert CJS modules to ES6 commonjs({ diff --git a/tsconfig.json b/tsconfig.json index 680b6b64e3..a3a74fdcde 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -27,18 +27,6 @@ "stripInternal": true, "target": "ES2019", "allowJs": false, - "baseUrl": ".", - // https://stackoverflow.com/a/40326719 - "paths": { - "*": ["@types/*", "*"] - }, - "typeRoots": ["@types", "node_modules/@types"] - }, - "include": [ - "jest.d.ts", - "@types-extensions/*", - "**/*.spec.ts", - "**/*.spec.tsx" - ], - "exclude": ["**/node_modules", "**/dist/**/*"] + "typeRoots": ["@types", "@types-extensions/*", "node_modules/@types"] + } } diff --git a/yarn.lock b/yarn.lock index ced78dc2d7..f12a3dcaa0 100644 --- a/yarn.lock +++ b/yarn.lock @@ -137,7 +137,7 @@ semver "^5.4.1" source-map "^0.5.0" -"@babel/core@>=7.9.0", "@babel/core@^7.0.0", "@babel/core@^7.1.0", "@babel/core@^7.12.3", "@babel/core@^7.7.5": +"@babel/core@>=7.9.0", "@babel/core@^7.0.0", "@babel/core@^7.1.0", "@babel/core@^7.12.3", "@babel/core@^7.7.5", "@babel/core@^7.7.7": version "7.12.9" resolved "https://registry.yarnpkg.com/@babel/core/-/core-7.12.9.tgz#fd450c4ec10cdbb980e2928b7aa7a28484593fc8" integrity sha512-gTXYh3M5wb7FRXQy+FErKFAv90BnlOuNn1QkCK2lREoPAjrQCO49+HVSrFoe5uakFAF5eenS75KbO2vQiLrTMQ== @@ -805,7 +805,7 @@ "@babel/helper-plugin-utils" "^7.10.4" babel-plugin-dynamic-import-node "^2.3.3" -"@babel/plugin-transform-modules-commonjs@^7.0.0", "@babel/plugin-transform-modules-commonjs@^7.12.1": +"@babel/plugin-transform-modules-commonjs@^7.0.0", "@babel/plugin-transform-modules-commonjs@^7.12.1", "@babel/plugin-transform-modules-commonjs@^7.7.5": version "7.12.1" resolved "https://registry.yarnpkg.com/@babel/plugin-transform-modules-commonjs/-/plugin-transform-modules-commonjs-7.12.1.tgz#fa403124542636c786cf9b460a0ffbb48a86e648" integrity sha512-dY789wq6l0uLY8py9c1B48V8mVL5gZh/+PQ5ZPrylPYsnAvnEMjqsUXkuoDVPeVK+0VyGar+D08107LzDQ6pag== @@ -1144,7 +1144,7 @@ dependencies: regenerator-runtime "^0.13.4" -"@babel/runtime@7.12.5", "@babel/runtime@^7.0.0", "@babel/runtime@^7.1.2", "@babel/runtime@^7.10.0", "@babel/runtime@^7.10.2", "@babel/runtime@^7.10.4", "@babel/runtime@^7.11.2", "@babel/runtime@^7.12.1", "@babel/runtime@^7.12.5", "@babel/runtime@^7.3.1", "@babel/runtime@^7.4.4", "@babel/runtime@^7.5.4", "@babel/runtime@^7.5.5", "@babel/runtime@^7.6.3", "@babel/runtime@^7.7.2", "@babel/runtime@^7.8.4", "@babel/runtime@^7.8.7", "@babel/runtime@^7.9.2", "@babel/runtime@^7.9.6": +"@babel/runtime@7.12.5", "@babel/runtime@^7.0.0", "@babel/runtime@^7.1.2", "@babel/runtime@^7.10.0", "@babel/runtime@^7.10.2", "@babel/runtime@^7.10.4", "@babel/runtime@^7.11.2", "@babel/runtime@^7.12.1", "@babel/runtime@^7.12.5", "@babel/runtime@^7.3.1", "@babel/runtime@^7.4.4", "@babel/runtime@^7.5.4", "@babel/runtime@^7.5.5", "@babel/runtime@^7.6.3", "@babel/runtime@^7.7.2", "@babel/runtime@^7.7.7", "@babel/runtime@^7.8.4", "@babel/runtime@^7.8.7", "@babel/runtime@^7.9.2", "@babel/runtime@^7.9.6": version "7.12.5" resolved "https://registry.yarnpkg.com/@babel/runtime/-/runtime-7.12.5.tgz#410e7e487441e1b360c29be715d870d9b985882e" integrity sha512-plcc+hbExy3McchJCEQG3knOsuh3HH+Prx1P6cLIkET/0dLuQDEnrT+s27Axgc9bqfsmNUNHfscgMUdBpC9xfg== @@ -2840,6 +2840,13 @@ tslib "^2.0.1" typescript "^4.0" +"@formatjs/ecma402-abstract@1.4.0": + version "1.4.0" + resolved "https://registry.yarnpkg.com/@formatjs/ecma402-abstract/-/ecma402-abstract-1.4.0.tgz#ac6c17a8fffac43c6d68c849a7b732626d32654c" + integrity sha512-Mv027hcLFjE45K8UJ8PjRpdDGfR0aManEFj1KzoN8zXNveHGEygpZGfFf/FTTMl+QEVSrPAUlyxaCApvmv47AQ== + dependencies: + tslib "^2.0.1" + "@formatjs/ecma402-abstract@1.5.0": version "1.5.0" resolved "https://registry.yarnpkg.com/@formatjs/ecma402-abstract/-/ecma402-abstract-1.5.0.tgz#759c8f11ff45e96f8fb58741e7fbdb41096d5ddd" @@ -2847,6 +2854,14 @@ dependencies: tslib "^2.0.1" +"@formatjs/intl-datetimeformat@2.8.4": + version "2.8.4" + resolved "https://registry.yarnpkg.com/@formatjs/intl-datetimeformat/-/intl-datetimeformat-2.8.4.tgz#eea94037e6707b92c194297e84a376f615e171db" + integrity sha512-aCD6VoUvdLiJrAfKfHojbzX/e5inqvO+N9rj9kdOzCMTEdDGJ+Jd9SmXPn2YKb1glp785mYxAPp5vxjgErjq/g== + dependencies: + "@formatjs/ecma402-abstract" "1.4.0" + tslib "^2.0.1" + "@formatjs/intl-datetimeformat@3.0.0": version "3.0.0" resolved "https://registry.yarnpkg.com/@formatjs/intl-datetimeformat/-/intl-datetimeformat-3.0.0.tgz#f052ab2d96710df73fcc48ba763369184143fa5f" @@ -2855,6 +2870,14 @@ "@formatjs/ecma402-abstract" "1.5.0" tslib "^2.0.1" +"@formatjs/intl-displaynames@3.4.6": + version "3.4.6" + resolved "https://registry.yarnpkg.com/@formatjs/intl-displaynames/-/intl-displaynames-3.4.6.tgz#1c7acfc4e95767c21c2d684f78c6533b13d74161" + integrity sha512-XWVhTQjcyWweHm2Hi0n92hYILpktbnh8x5Sj5nSBIUNz4Os4uHDj2itJI3xCxl+aDNW8M7VRJ9m0OsnhI8qQrg== + dependencies: + "@formatjs/ecma402-abstract" "1.4.0" + tslib "^2.0.1" + "@formatjs/intl-displaynames@4.0.0": version "4.0.0" resolved "https://registry.yarnpkg.com/@formatjs/intl-displaynames/-/intl-displaynames-4.0.0.tgz#5e289b5fc1f477ed7f971536b4d03509814af41d" @@ -2863,6 +2886,14 @@ "@formatjs/ecma402-abstract" "1.5.0" tslib "^2.0.1" +"@formatjs/intl-listformat@4.3.6": + version "4.3.6" + resolved "https://registry.yarnpkg.com/@formatjs/intl-listformat/-/intl-listformat-4.3.6.tgz#03de03f05f90d6ae618b0d0dcacd3659662d397d" + integrity sha512-+ePU3/rmgUd8QHcf7EGJAIU12+Y6eMGaDhI3tPw3kKN/vByE9hJAyR8etXTk9fSIV6D7us2tEDM4h0wn8eenig== + dependencies: + "@formatjs/ecma402-abstract" "1.4.0" + tslib "^2.0.1" + "@formatjs/intl-listformat@5.0.0": version "5.0.0" resolved "https://registry.yarnpkg.com/@formatjs/intl-listformat/-/intl-listformat-5.0.0.tgz#8fffea78a57ebfb9f3471c41d32072122aa92b2f" @@ -2871,6 +2902,14 @@ "@formatjs/ecma402-abstract" "1.5.0" tslib "^2.0.1" +"@formatjs/intl-relativetimeformat@7.3.6": + version "7.3.6" + resolved "https://registry.yarnpkg.com/@formatjs/intl-relativetimeformat/-/intl-relativetimeformat-7.3.6.tgz#58357e0c820d51596ae281d66bcafe5b4f09fc6b" + integrity sha512-RtmdGG6Lwf99xlGjFiIk6pYe9LQJpTYa7VofV322Q3gmb3tAU6Pgyn7LML4xbG7Pd1F7JBmnVNVwFyofUfyJQA== + dependencies: + "@formatjs/ecma402-abstract" "1.4.0" + tslib "^2.0.1" + "@formatjs/intl-relativetimeformat@8.0.0": version "8.0.0" resolved "https://registry.yarnpkg.com/@formatjs/intl-relativetimeformat/-/intl-relativetimeformat-8.0.0.tgz#e7234f165932a22ca6faf015b53bf7a53dbe5350" @@ -2879,6 +2918,21 @@ "@formatjs/ecma402-abstract" "1.5.0" tslib "^2.0.1" +"@formatjs/intl@1.4.5": + version "1.4.5" + resolved "https://registry.yarnpkg.com/@formatjs/intl/-/intl-1.4.5.tgz#566aa941f65f4a5de0cfe41f0cd8fe3e69f2ae5d" + integrity sha512-ur7OtcLnfvLH3j7R9fkJoucwXuCTY54dVAN55O6nEn8s+XL36Fs5td689AzaCe5/Y2wwO4aS4/fXw45Ndy2Twg== + dependencies: + "@formatjs/ecma402-abstract" "1.4.0" + "@formatjs/intl-datetimeformat" "2.8.4" + "@formatjs/intl-displaynames" "3.4.6" + "@formatjs/intl-listformat" "4.3.6" + "@formatjs/intl-relativetimeformat" "7.3.6" + fast-memoize "^2.5.2" + intl-messageformat "9.3.18" + intl-messageformat-parser "6.0.16" + tslib "^2.0.1" + "@formatjs/intl@1.4.8": version "1.4.8" resolved "https://registry.yarnpkg.com/@formatjs/intl/-/intl-1.4.8.tgz#f7c8b49dddd965075decd06f109db3346daee376" @@ -3721,6 +3775,17 @@ source-map "^0.6.1" write-file-atomic "^3.0.0" +"@jest/types@>=24 && <=26", "@jest/types@^26.6.2": + version "26.6.2" + resolved "https://registry.yarnpkg.com/@jest/types/-/types-26.6.2.tgz#bef5a532030e1d88a2f5a6d933f84e97226ed48e" + integrity sha512-fC6QCp7Sc5sX6g8Tvbmj4XUTbyrik0akgRy03yjXbQaBWWNWGE7SGtJk98m0N8nzegD/7SggrUlivxo5ax4KWQ== + dependencies: + "@types/istanbul-lib-coverage" "^2.0.0" + "@types/istanbul-reports" "^3.0.0" + "@types/node" "*" + "@types/yargs" "^15.0.0" + chalk "^4.0.0" + "@jest/types@^24.9.0": version "24.9.0" resolved "https://registry.yarnpkg.com/@jest/types/-/types-24.9.0.tgz#63cb26cb7500d069e5a389441a7c6ab5e909fc59" @@ -3740,17 +3805,6 @@ "@types/yargs" "^15.0.0" chalk "^3.0.0" -"@jest/types@^26.6.2": - version "26.6.2" - resolved "https://registry.yarnpkg.com/@jest/types/-/types-26.6.2.tgz#bef5a532030e1d88a2f5a6d933f84e97226ed48e" - integrity sha512-fC6QCp7Sc5sX6g8Tvbmj4XUTbyrik0akgRy03yjXbQaBWWNWGE7SGtJk98m0N8nzegD/7SggrUlivxo5ax4KWQ== - dependencies: - "@types/istanbul-lib-coverage" "^2.0.0" - "@types/istanbul-reports" "^3.0.0" - "@types/node" "*" - "@types/yargs" "^15.0.0" - chalk "^4.0.0" - "@jimp/bmp@^0.14.0": version "0.14.0" resolved "https://registry.yarnpkg.com/@jimp/bmp/-/bmp-0.14.0.tgz#6df246026554f276f7b354047c6fff9f5b2b5182" @@ -5176,6 +5230,58 @@ schema-utils "^2.6.5" source-map "^0.7.3" +"@preconstruct/cli@2.0.0": + version "2.0.0" + resolved "https://registry.yarnpkg.com/@preconstruct/cli/-/cli-2.0.0.tgz#bface3fb95da6dabc8da6eae60802b6867f3fb72" + integrity sha512-PZQtozf3gv6tN7KJg0Tq3xhHx/NZMka24HPMj/E6NJFhfYropyTB7G6M69hEMnW9E3Adz6qTq85PDA1I1M5CMg== + dependencies: + "@babel/code-frame" "^7.5.5" + "@babel/core" "^7.7.7" + "@babel/helper-module-imports" "^7.10.4" + "@babel/runtime" "^7.7.7" + "@preconstruct/hook" "^0.4.0" + "@rollup/plugin-alias" "^3.1.1" + "@rollup/plugin-commonjs" "^15.0.0" + "@rollup/plugin-json" "^4.1.0" + "@rollup/plugin-node-resolve" "^9.0.0" + "@rollup/plugin-replace" "^2.3.3" + builtin-modules "^3.1.0" + chalk "^4.1.0" + dataloader "^2.0.0" + detect-indent "^6.0.0" + enquirer "^2.3.6" + estree-walker "^2.0.1" + fast-deep-equal "^2.0.1" + fast-glob "^3.2.4" + fs-extra "^9.0.1" + is-ci "^2.0.0" + is-reference "^1.2.1" + jest-worker "^26.3.0" + magic-string "^0.25.7" + meow "^7.1.0" + ms "^2.1.2" + normalize-path "^3.0.0" + npm-packlist "^2.1.2" + p-limit "^3.0.2" + parse-glob "^3.0.4" + parse-json "^5.1.0" + quick-lru "^5.1.1" + resolve "^1.17.0" + resolve-from "^5.0.0" + rollup "^2.32.0" + terser "^5.2.1" + v8-compile-cache "^2.1.1" + +"@preconstruct/hook@^0.4.0": + version "0.4.0" + resolved "https://registry.yarnpkg.com/@preconstruct/hook/-/hook-0.4.0.tgz#c15dfacfc6e60652a6837209c2fd87f0240b099e" + integrity sha512-a7mrlPTM3tAFJyz43qb4pPVpUx8j8TzZBFsNFqcKcE/sEakNXRlQAuCT4RGZRf9dQiiUnBahzSIWawU4rENl+Q== + dependencies: + "@babel/core" "^7.7.7" + "@babel/plugin-transform-modules-commonjs" "^7.7.5" + pirates "^4.0.1" + source-map-support "^0.5.16" + "@reach/router@^1.3.4": version "1.3.4" resolved "https://registry.yarnpkg.com/@reach/router/-/router-1.3.4.tgz#d2574b19370a70c80480ed91f3da840136d10f8c" @@ -5186,6 +5292,13 @@ prop-types "^15.6.1" react-lifecycles-compat "^3.0.4" +"@rollup/plugin-alias@^3.1.1": + version "3.1.1" + resolved "https://registry.yarnpkg.com/@rollup/plugin-alias/-/plugin-alias-3.1.1.tgz#bb96cf37fefeb0a953a6566c284855c7d1cd290c" + integrity sha512-hNcQY4bpBUIvxekd26DBPgF7BT4mKVNDF5tBG4Zi+3IgwLxGYRY0itHs9D0oLVwXM5pvJDWJlBQro+au8WaUWw== + dependencies: + slash "^3.0.0" + "@rollup/plugin-babel@5.2.1": version "5.2.1" resolved "https://registry.yarnpkg.com/@rollup/plugin-babel/-/plugin-babel-5.2.1.tgz#20fc8f8864dc0eaa1c5578408459606808f72924" @@ -5207,7 +5320,20 @@ magic-string "^0.25.7" resolve "^1.17.0" -"@rollup/plugin-json@4.1.0": +"@rollup/plugin-commonjs@^15.0.0": + version "15.1.0" + resolved "https://registry.yarnpkg.com/@rollup/plugin-commonjs/-/plugin-commonjs-15.1.0.tgz#1e7d076c4f1b2abf7e65248570e555defc37c238" + integrity sha512-xCQqz4z/o0h2syQ7d9LskIMvBSH4PX5PjYdpSSvgS+pQik3WahkQVNWg3D8XJeYjZoVWnIUQYDghuEMRGrmQYQ== + dependencies: + "@rollup/pluginutils" "^3.1.0" + commondir "^1.0.1" + estree-walker "^2.0.1" + glob "^7.1.6" + is-reference "^1.2.1" + magic-string "^0.25.7" + resolve "^1.17.0" + +"@rollup/plugin-json@4.1.0", "@rollup/plugin-json@^4.1.0": version "4.1.0" resolved "https://registry.yarnpkg.com/@rollup/plugin-json/-/plugin-json-4.1.0.tgz#54e09867ae6963c593844d8bd7a9c718294496f3" integrity sha512-yfLbTdNS6amI/2OpmbiBoW12vngr5NW2jCJVZSBEz+H5KfUJZ2M7sDjk0U6GOOdCWFVScShte29o9NezJ53TPw== @@ -5226,6 +5352,26 @@ is-module "^1.0.0" resolve "^1.17.0" +"@rollup/plugin-node-resolve@^9.0.0": + version "9.0.0" + resolved "https://registry.yarnpkg.com/@rollup/plugin-node-resolve/-/plugin-node-resolve-9.0.0.tgz#39bd0034ce9126b39c1699695f440b4b7d2b62e6" + integrity sha512-gPz+utFHLRrd41WMP13Jq5mqqzHL3OXrfj3/MkSyB6UBIcuNt9j60GCbarzMzdf1VHFpOxfQh/ez7wyadLMqkg== + dependencies: + "@rollup/pluginutils" "^3.1.0" + "@types/resolve" "1.17.1" + builtin-modules "^3.1.0" + deepmerge "^4.2.2" + is-module "^1.0.0" + resolve "^1.17.0" + +"@rollup/plugin-replace@^2.3.3": + version "2.3.4" + resolved "https://registry.yarnpkg.com/@rollup/plugin-replace/-/plugin-replace-2.3.4.tgz#7dd84c17755d62b509577f2db37eb524d7ca88ca" + integrity sha512-waBhMzyAtjCL1GwZes2jaE9MjuQ/DQF2BatH3fRivUF3z0JBFrU0U6iBNC/4WR+2rLKhaAhPWDNPYp4mI6RqdQ== + dependencies: + "@rollup/pluginutils" "^3.1.0" + magic-string "^0.25.7" + "@rollup/pluginutils@^3.0.8", "@rollup/pluginutils@^3.1.0": version "3.1.0" resolved "https://registry.yarnpkg.com/@rollup/pluginutils/-/pluginutils-3.1.0.tgz#706b4524ee6dc8b103b3c995533e5ad680c02b9b" @@ -5865,6 +6011,15 @@ dependencies: "@types/istanbul-lib-report" "*" +"@types/jest-environment-puppeteer@4.4.0": + version "4.4.0" + resolved "https://registry.yarnpkg.com/@types/jest-environment-puppeteer/-/jest-environment-puppeteer-4.4.0.tgz#8d343035934610accdbfd4582e765823b948aa94" + integrity sha512-BjJWUmaui6CZE449y/xGVPPvOcNwlHZXxWekv38kZqu1Pda+Jn90pKaxWtxM5NAC2HaUEabsCWlTeHiJvno/hg== + dependencies: + "@jest/types" ">=24 && <=26" + "@types/puppeteer" "*" + jest-environment-node ">=24 && <=26" + "@types/jest@*", "@types/jest@26.x": version "26.0.15" resolved "https://registry.yarnpkg.com/@types/jest/-/jest-26.0.15.tgz#12e02c0372ad0548e07b9f4e19132b834cb1effe" @@ -6008,6 +6163,13 @@ resolved "https://registry.yarnpkg.com/@types/prop-types/-/prop-types-15.7.3.tgz#2ab0d5da2e5815f94b0b9d4b95d1e5f243ab2ca7" integrity sha512-KfRL3PuHmqQLOG+2tGpRO26Ctg+Cq1E01D2DMriKEATHgWLfeNDmq9e29Q9WIky0dQ3NPkd1mzYH8Lm936Z9qw== +"@types/puppeteer@*", "@types/puppeteer@5.4.0": + version "5.4.0" + resolved "https://registry.yarnpkg.com/@types/puppeteer/-/puppeteer-5.4.0.tgz#1ef860bd7a9dcf0c4633aac8c0ec21f75b431868" + integrity sha512-zTYDLjnHjgzokrwKt7N0rgn7oZPYo1J0m8Ghu+gXqzLCEn8RWbELa2uprE2UFJ0jU/Sk0x9jXXdOH/5QQLFHhQ== + dependencies: + "@types/node" "*" + "@types/q@^1.5.1": version "1.5.4" resolved "https://registry.yarnpkg.com/@types/q/-/q-1.5.4.tgz#15925414e0ad2cd765bfef58842f7e26a7accb24" @@ -10275,7 +10437,7 @@ data-urls@^2.0.0: whatwg-mimetype "^2.3.0" whatwg-url "^8.0.0" -dataloader@2.0.0: +dataloader@2.0.0, dataloader@^2.0.0: version "2.0.0" resolved "https://registry.yarnpkg.com/dataloader/-/dataloader-2.0.0.tgz#41eaf123db115987e21ca93c005cd7753c55fe6f" integrity sha512-YzhyDAwA4TaQIhM5go+vCLmU0UikghC/t9DTQYZR2M/UvZ1MdOhPezSDZcjj9uqQJOMqjLcpWtyW2iNINdlatQ== @@ -14080,6 +14242,21 @@ github-slugger@1.3.0, github-slugger@^1.1.1, github-slugger@^1.2.1: dependencies: emoji-regex ">=6.0.0 <=6.1.1" +glob-base@^0.3.0: + version "0.3.0" + resolved "https://registry.yarnpkg.com/glob-base/-/glob-base-0.3.0.tgz#dbb164f6221b1c0b1ccf82aea328b497df0ea3c4" + integrity sha1-27Fk9iIbHAscz4Kuoyi0l98Oo8Q= + dependencies: + glob-parent "^2.0.0" + is-glob "^2.0.0" + +glob-parent@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/glob-parent/-/glob-parent-2.0.0.tgz#81383d72db054fcccf5336daa902f182f6edbb28" + integrity sha1-gTg9ctsFT8zPUzbaqQLxgvbtuyg= + dependencies: + is-glob "^2.0.0" + glob-parent@^3.1.0: version "3.1.0" resolved "https://registry.yarnpkg.com/glob-parent/-/glob-parent-3.1.0.tgz#9e6af6299d8d3bd2bd40430832bd113df906c5ae" @@ -15246,7 +15423,7 @@ iferr@^0.1.5: resolved "https://registry.yarnpkg.com/iferr/-/iferr-0.1.5.tgz#c60eed69e6d8fdb6b3104a1fcbca1c192dc5b501" integrity sha1-xg7taebY/bazEEofy8ocGS3FtQE= -ignore-walk@^3.0.1: +ignore-walk@^3.0.1, ignore-walk@^3.0.3: version "3.0.3" resolved "https://registry.yarnpkg.com/ignore-walk/-/ignore-walk-3.0.3.tgz#017e2447184bfeade7c238e4aefdd1e8f95b1e37" integrity sha512-m7o6xuOaT1aqheYHKf8W6J5pYH85ZI9w077erOzLje3JsB1gkafkAhHHY19dqjulgIZHFm32Cp5uNZgcQqdJKw== @@ -15567,7 +15744,7 @@ intersection-observer@0.11.0: resolved "https://registry.yarnpkg.com/intersection-observer/-/intersection-observer-0.11.0.tgz#f4ea067070326f68393ee161cc0a2ca4c0040c6f" integrity sha512-KZArj2QVnmdud9zTpKf279m2bbGfG+4/kn16UU0NL3pTVl52ZHiJ9IRNSsnn6jaHrL9EGLFM5eWjTx2fz/+zoQ== -intl-messageformat-parser@6.0.17: +intl-messageformat-parser@6.0.16, intl-messageformat-parser@6.0.17: version "6.0.17" resolved "https://registry.yarnpkg.com/intl-messageformat-parser/-/intl-messageformat-parser-6.0.17.tgz#8861294d54184cae2dc950f512c97784fac22c40" integrity sha512-YLzTGKk+tXm0tuEuaATJjVl4C9HNjwC4VslrWQI9vQez1z7czbdmbNQD4ftXiAMLy/Pla+UxyH4jZt9UzI8Y4w== @@ -15575,6 +15752,15 @@ intl-messageformat-parser@6.0.17: "@formatjs/ecma402-abstract" "1.5.0" tslib "^2.0.1" +intl-messageformat@9.3.18: + version "9.3.18" + resolved "https://registry.yarnpkg.com/intl-messageformat/-/intl-messageformat-9.3.18.tgz#26074d0793b72b117acdef927f30518ebcdcedcc" + integrity sha512-OKrLWppdxXtRdRCPjmRZ9Ru7UZkZJDlMl+1Vpb3sCLWK0mFpr129K+gIlIb5zrWoAH3NiYDzekBXPTRWCyHSIA== + dependencies: + fast-memoize "^2.5.2" + intl-messageformat-parser "6.0.16" + tslib "^2.0.1" + intl-messageformat@9.3.19: version "9.3.19" resolved "https://registry.yarnpkg.com/intl-messageformat/-/intl-messageformat-9.3.19.tgz#c4fc4d40e9736e5f5ccd4c2656acf63cf533c8f6" @@ -15818,6 +16004,11 @@ is-docker@^2.0.0, is-docker@^2.1.1: resolved "https://registry.yarnpkg.com/is-docker/-/is-docker-2.1.1.tgz#4125a88e44e450d384e09047ede71adc2d144156" integrity sha512-ZOoqiXfEwtGknTiuDEy8pN2CfE3TxMHprvNer1mXiqwkOT77Rw3YVrUQ52EqAOU3QAWDQ+bQdx7HJzrv7LS2Hw== +is-dotfile@^1.0.0: + version "1.0.3" + resolved "https://registry.yarnpkg.com/is-dotfile/-/is-dotfile-1.0.3.tgz#a6a2f32ffd2dfb04f5ca25ecd0f6b83cf798a1e1" + integrity sha1-pqLzL/0t+wT1yiXs0Pa4PPeYoeE= + is-expression@^4.0.0: version "4.0.0" resolved "https://registry.yarnpkg.com/is-expression/-/is-expression-4.0.0.tgz#c33155962abf21d0afd2552514d67d2ec16fd2ab" @@ -16618,7 +16809,7 @@ jest-environment-jsdom@^26.6.2: jest-util "^26.6.2" jsdom "^16.4.0" -jest-environment-node@^26.6.2: +"jest-environment-node@>=24 && <=26", jest-environment-node@^26.6.2: version "26.6.2" resolved "https://registry.yarnpkg.com/jest-environment-node/-/jest-environment-node-26.6.2.tgz#824e4c7fb4944646356f11ac75b229b0035f2b0c" integrity sha512-zhtMio3Exty18dy8ee8eJ9kjnRyZC1N4C1Nt/VShN1apyXc8rWGtJ9lI7vqiWcyyXS4BVSEn9lxAM2D+07/Tag== @@ -17098,7 +17289,7 @@ jest-worker@^25.1.0, jest-worker@^25.4.0: merge-stream "^2.0.0" supports-color "^7.0.0" -jest-worker@^26.5.0, jest-worker@^26.6.2: +jest-worker@^26.3.0, jest-worker@^26.5.0, jest-worker@^26.6.2: version "26.6.2" resolved "https://registry.yarnpkg.com/jest-worker/-/jest-worker-26.6.2.tgz#7f72cbc4d643c365e27b9fd775f9d0eaa9c7a8ed" integrity sha512-KWYVV1c4i+jbMpaBC+U++4Va0cp8OisU185o73T1vo99hqi7w8tSJfUXYswwqqrjzwxa6KpRK54WhPvwf5w6PQ== @@ -18007,7 +18198,7 @@ lock@^1.0.0: resolved "https://registry.yarnpkg.com/lock/-/lock-1.1.0.tgz#53157499d1653b136ca66451071fca615703fa55" integrity sha1-UxV0mdFlOxNspmRRBx/KYVcD+lU= -lodash-es@4.17.15, lodash-es@^4.17.14: +lodash-es@^4.17.14: version "4.17.15" resolved "https://registry.yarnpkg.com/lodash-es/-/lodash-es-4.17.15.tgz#21bd96839354412f23d7a10340e5eac6ee455d78" integrity sha512-rlrc3yU3+JNOpZ9zj5pQtxnx2THmvRykwL4Xlxoa8I9lHBlVbbyPhgyPMioxVZ4NqyxaVVtaJnzsyOidQIhyyQ== @@ -18906,6 +19097,23 @@ meow@^6.0.0: type-fest "^0.13.1" yargs-parser "^18.1.3" +meow@^7.1.0: + version "7.1.1" + resolved "https://registry.yarnpkg.com/meow/-/meow-7.1.1.tgz#7c01595e3d337fcb0ec4e8eed1666ea95903d306" + integrity sha512-GWHvA5QOcS412WCo8vwKDlTelGLsCGBVevQB5Kva961rmNfun0PCbv5+xta2kUMFJyR8/oWnn7ddeKdosbAPbA== + dependencies: + "@types/minimist" "^1.2.0" + camelcase-keys "^6.2.2" + decamelize-keys "^1.1.0" + hard-rejection "^2.1.0" + minimist-options "4.1.0" + normalize-package-data "^2.5.0" + read-pkg-up "^7.0.1" + redent "^3.0.0" + trim-newlines "^3.0.0" + type-fest "^0.13.1" + yargs-parser "^18.1.3" + meow@^8.0.0: version "8.0.0" resolved "https://registry.yarnpkg.com/meow/-/meow-8.0.0.tgz#1aa10ee61046719e334ffdc038bb5069250ec99a" @@ -19819,7 +20027,7 @@ normalizr@3.6.1: resolved "https://registry.yarnpkg.com/normalizr/-/normalizr-3.6.1.tgz#d367ab840e031ff382141b8d81ce279292ff69fe" integrity sha512-8iEmqXmPtll8PwbEFrbPoDxVw7MKnNvt3PZzR2Xvq9nggEEOgBlNICPXYzyZ4w4AkHUzCU998mdatER3n2VaMA== -npm-bundled@^1.0.1: +npm-bundled@^1.0.1, npm-bundled@^1.1.1: version "1.1.1" resolved "https://registry.yarnpkg.com/npm-bundled/-/npm-bundled-1.1.1.tgz#1edd570865a94cdb1bc8220775e29466c9fb234b" integrity sha512-gqkfgGePhTpAEgUsGEgcq1rqPXA+tv/aVBlgEzfXwA1yiUJF7xtEt3CtVwOjNYQOVknDk0F20w58Fnm3EtG0fA== @@ -19872,6 +20080,16 @@ npm-packlist@^1.4.4: npm-bundled "^1.0.1" npm-normalize-package-bin "^1.0.1" +npm-packlist@^2.1.2: + version "2.1.4" + resolved "https://registry.yarnpkg.com/npm-packlist/-/npm-packlist-2.1.4.tgz#40e96b2b43787d0546a574542d01e066640d09da" + integrity sha512-Qzg2pvXC9U4I4fLnUrBmcIT4x0woLtUgxUi9eC+Zrcv1Xx5eamytGAfbDWQ67j7xOcQ2VW1I3su9smVTIdu7Hw== + dependencies: + glob "^7.1.6" + ignore-walk "^3.0.3" + npm-bundled "^1.1.1" + npm-normalize-package-bin "^1.0.1" + npm-pick-manifest@^3.0.0: version "3.0.2" resolved "https://registry.yarnpkg.com/npm-pick-manifest/-/npm-pick-manifest-3.0.2.tgz#f4d9e5fd4be2153e5f4e5f9b7be8dc419a99abb7" @@ -20754,6 +20972,16 @@ parse-github-url@1.0.2: resolved "https://registry.yarnpkg.com/parse-github-url/-/parse-github-url-1.0.2.tgz#242d3b65cbcdda14bb50439e3242acf6971db395" integrity sha512-kgBf6avCbO3Cn6+RnzRGLkUsv4ZVqv/VfAYkRsyBcgkshNvVBkRn1FEZcW0Jb+npXQWm2vHPnnOqFteZxRRGNw== +parse-glob@^3.0.4: + version "3.0.4" + resolved "https://registry.yarnpkg.com/parse-glob/-/parse-glob-3.0.4.tgz#b2c376cfb11f35513badd173ef0bb6e3a388391c" + integrity sha1-ssN2z7EfNVE7rdFz7wu246OIORw= + dependencies: + glob-base "^0.3.0" + is-dotfile "^1.0.0" + is-extglob "^1.0.0" + is-glob "^2.0.0" + parse-headers@^2.0.0: version "2.0.3" resolved "https://registry.yarnpkg.com/parse-headers/-/parse-headers-2.0.3.tgz#5e8e7512383d140ba02f0c7aa9f49b4399c92515" @@ -20774,7 +21002,7 @@ parse-json@^4.0.0: error-ex "^1.3.1" json-parse-better-errors "^1.0.1" -parse-json@^5.0.0: +parse-json@^5.0.0, parse-json@^5.1.0: version "5.1.0" resolved "https://registry.yarnpkg.com/parse-json/-/parse-json-5.1.0.tgz#f96088cdf24a8faa9aea9a009f2d9d942c999646" integrity sha512-+mi/lmVVNKFNVyLXV31ERiy2CY5E1/F6QtJFEzoChPRwwngMNXRDQ9GJ5WdE2Z2P4AujsOi0/+2qHID68KwfIQ== @@ -22644,6 +22872,11 @@ quick-lru@^4.0.1: resolved "https://registry.yarnpkg.com/quick-lru/-/quick-lru-4.0.1.tgz#5b8878f113a58217848c6482026c73e1ba57727f" integrity sha512-ARhCpm70fzdcvNQfPoy49IaanKkTlRWF2JMzqhcJbhSFRZv7nPTvZJdcY7301IPmvW+/p0RgIWnQDLJxifsQ7g== +quick-lru@^5.1.1: + version "5.1.1" + resolved "https://registry.yarnpkg.com/quick-lru/-/quick-lru-5.1.1.tgz#366493e6b3e42a3a6885e2e99d18f80fb7a8c932" + integrity sha512-WuyALRjWPDGtt/wzJiadO5AXY+8hZ80hVpe6MyivgraREW751X3SbhRvG3eLKOYN+8VEvqLcf3wdnt44Z4S4SA== + raf@3.4.1, raf@^3.4.1: version "3.4.1" resolved "https://registry.yarnpkg.com/raf/-/raf-3.4.1.tgz#0742e99a4a6552f445d73e3ee0328af0ff1ede39" @@ -22872,6 +23105,24 @@ react-intersection-observer@8.31.0: resolved "https://registry.yarnpkg.com/react-intersection-observer/-/react-intersection-observer-8.31.0.tgz#0ed21aaf93c4c0475b22b0ccaba6169076d01605" integrity sha512-XraIC/tkrD9JtrmVA7ypEN1QIpKc52mXBH1u/bz/aicRLo8QQEJQAMUTb8mz4B6dqpPwyzgjrr7Ljv/2ACDtqw== +react-intl@5.10.1: + version "5.10.1" + resolved "https://registry.yarnpkg.com/react-intl/-/react-intl-5.10.1.tgz#deac1dec94afa93b875f653e3445b4946b10e178" + integrity sha512-D5zP6P7D70qFQc4KSYlwZ5iw1r2kXkmCGD1V6opM7ckIWj6FKs4p1za3eFOn0GpcEJNUQzTwNP4qu1NCHnHS2w== + dependencies: + "@formatjs/ecma402-abstract" "1.4.0" + "@formatjs/intl" "1.4.5" + "@formatjs/intl-displaynames" "3.4.6" + "@formatjs/intl-listformat" "4.3.6" + "@formatjs/intl-relativetimeformat" "7.3.6" + "@types/hoist-non-react-statics" "^3.3.1" + fast-memoize "^2.5.2" + hoist-non-react-statics "^3.3.2" + intl-messageformat "9.3.18" + intl-messageformat-parser "6.0.16" + shallow-equal "^1.2.1" + tslib "^2.0.1" + react-intl@5.10.4, react-intl@^5.7.0: version "5.10.4" resolved "https://registry.yarnpkg.com/react-intl/-/react-intl-5.10.4.tgz#5eebd7d74682816487267c35e0436880b6c00fed" @@ -24064,7 +24315,7 @@ rollup-pluginutils@^2.8.2: dependencies: estree-walker "^0.6.1" -rollup@2.33.3: +rollup@2.33.3, rollup@^2.32.0: version "2.33.3" resolved "https://registry.yarnpkg.com/rollup/-/rollup-2.33.3.tgz#ae72ce31f992b09a580072951bfea76e9df17342" integrity sha512-RpayhPTe4Gu/uFGCmk7Gp5Z9Qic2VsqZ040G+KZZvsZYdcuWaJg678JeDJJvJeEQXminu24a2au+y92CUWVd+w== @@ -24944,7 +25195,7 @@ source-map-resolve@^0.6.0: atob "^2.1.2" decode-uri-component "^0.2.0" -source-map-support@^0.5.17, source-map-support@^0.5.19, source-map-support@^0.5.6, source-map-support@~0.5.12, source-map-support@~0.5.19: +source-map-support@^0.5.16, source-map-support@^0.5.17, source-map-support@^0.5.19, source-map-support@^0.5.6, source-map-support@~0.5.12, source-map-support@~0.5.19: version "0.5.19" resolved "https://registry.yarnpkg.com/source-map-support/-/source-map-support-0.5.19.tgz#a98b62f86dcaf4f67399648c085291ab9e8fed61" integrity sha512-Wonm7zOCIJzBGQdB+thsPar0kYuCIzYvxZwlBa87yi/Mdjv7Tip2cyVbLj5o0cFPN4EVkuTwb3GDDyUx2DGnGw== @@ -26073,7 +26324,7 @@ terser@^4.1.2, terser@^4.6.12, terser@^4.6.3: source-map "~0.6.1" source-map-support "~0.5.12" -terser@^5.3.4: +terser@^5.2.1, terser@^5.3.4: version "5.5.0" resolved "https://registry.yarnpkg.com/terser/-/terser-5.5.0.tgz#1406fcb4d4bc517add3b22a9694284c040e33448" integrity sha512-eopt1Gf7/AQyPhpygdKePTzaet31TvQxXvrf7xYUvD/d8qkCJm4SKPDzu+GHK5ZaYTn8rvttfqaZc3swK21e5g== @@ -27321,7 +27572,7 @@ v8-compile-cache@^1.1.2: resolved "https://registry.yarnpkg.com/v8-compile-cache/-/v8-compile-cache-1.1.2.tgz#8d32e4f16974654657e676e0e467a348e89b0dc4" integrity sha512-ejdrifsIydN1XDH7EuR2hn8ZrkRKUYF7tUcBjBy/lhrCvs2K+zRlbW9UHc0IQ9RsYFZJFqJrieoIHfkCa0DBRA== -v8-compile-cache@^2.0.3, v8-compile-cache@^2.2.0: +v8-compile-cache@^2.0.3, v8-compile-cache@^2.1.1, v8-compile-cache@^2.2.0: version "2.2.0" resolved "https://registry.yarnpkg.com/v8-compile-cache/-/v8-compile-cache-2.2.0.tgz#9471efa3ef9128d2f7c6a7ca39c4dd6b5055b132" integrity sha512-gTpR5XQNKFwOd4clxfnhaqvfqMpqEwr4tOtCyz4MtYZX2JYhfr1JvBFKdS+7K/9rfpZR3VLX+YWBbKoxCgS43Q==