Fix packaging.

This commit is contained in:
Paulo Gustavo Veiga 2022-10-31 15:28:39 -07:00
parent e9eee90870
commit ed67106373
7 changed files with 89 additions and 84 deletions

View File

@ -48,7 +48,7 @@
"husky": { "husky": {
"hooks": { "hooks": {
"pre-commit": "lint-staged", "pre-commit": "lint-staged",
"pre-push": "yarn lint && yarn test:unit && test:integration" "pre-push": "yarn lint && yarn test"
} }
}, },
"lint-staged": { "lint-staged": {

View File

@ -51,7 +51,8 @@
"@mui/icons-material": "^5.9.3", "@mui/icons-material": "^5.9.3",
"@mui/material": "^5.10.11", "@mui/material": "^5.10.11",
"react": "^18.2.0", "react": "^18.2.0",
"react-intl": "^5.25.1", "react-intl": "^6.2.1",
"react-dom": "^18.2.0",
"styled-components": "^5.3.6" "styled-components": "^5.3.6"
} }
} }

View File

@ -17,7 +17,7 @@
*/ */
import React, { useEffect, useState } from 'react'; import React, { useEffect, useState } from 'react';
import Tooltip from '@mui/material/Tooltip'; import Tooltip from '@mui/material/Tooltip';
import { Typography } from '@mui/material'; import Typography from '@mui/material/Typography';
import MapInfo from '../../../../classes/model/map-info'; import MapInfo from '../../../../classes/model/map-info';
import { TitleInput } from './styled'; import { TitleInput } from './styled';
import DesignerKeyboard from '@wisemapping/mindplot/src/components/DesignerKeyboard'; import DesignerKeyboard from '@wisemapping/mindplot/src/components/DesignerKeyboard';

View File

@ -1,7 +1,7 @@
{ {
"include": [ "include": [
"src/**/*" "src/**/*"
, "../mindplot/src/components/widget/FloatingTip.ts" ], ],
"compilerOptions": { "compilerOptions": {
"jsx": "react", "jsx": "react",
"outDir": "./dist/", "outDir": "./dist/",

View File

@ -8,8 +8,12 @@ const prodConfig = {
minimize: true, minimize: true,
}, },
externals: { externals: {
react: 'react', 'react': 'react',
'react-dom': 'react-dom',
'react-intl': 'react-intl', 'react-intl': 'react-intl',
'@emotion/styled': '@emotion/styled',
'@mui/icons-material': '@mui/icons-material',
'@mui/material': '@mui/material',
}, },
plugins: [new CleanWebpackPlugin()], plugins: [new CleanWebpackPlugin()],
}; };

View File

@ -56,7 +56,7 @@
"react": "^18.2.0", "react": "^18.2.0",
"react-ga4": "^1.4.1", "react-ga4": "^1.4.1",
"react-google-recaptcha": "^2.1.0", "react-google-recaptcha": "^2.1.0",
"react-intl": "^5.25.1", "react-intl": "^6.2.1",
"react-query": "^3.39.1", "react-query": "^3.39.1",
"react-redux": "^7.2.2", "react-redux": "^7.2.2",
"react-router-dom": "^5.2.0" "react-router-dom": "^5.2.0"

156
yarn.lock
View File

@ -1473,13 +1473,13 @@
resolved "https://registry.yarnpkg.com/@formatjs/cli/-/cli-5.1.3.tgz#7b507bfaf807b036a2a071bf45f0c672cabd83ea" resolved "https://registry.yarnpkg.com/@formatjs/cli/-/cli-5.1.3.tgz#7b507bfaf807b036a2a071bf45f0c672cabd83ea"
integrity sha512-g8QW6nUNTxO3Nk/l1BCUC5iy3kAL5+YQbePEovs9W/24+Kzihr5l9qQBz4n/OesQIQXt9Uzb9r9PSSn7b25+Pw== integrity sha512-g8QW6nUNTxO3Nk/l1BCUC5iy3kAL5+YQbePEovs9W/24+Kzihr5l9qQBz4n/OesQIQXt9Uzb9r9PSSn7b25+Pw==
"@formatjs/ecma402-abstract@1.11.4": "@formatjs/ecma402-abstract@1.13.0":
version "1.11.4" version "1.13.0"
resolved "https://registry.yarnpkg.com/@formatjs/ecma402-abstract/-/ecma402-abstract-1.11.4.tgz#b962dfc4ae84361f9f08fbce411b4e4340930eda" resolved "https://registry.yarnpkg.com/@formatjs/ecma402-abstract/-/ecma402-abstract-1.13.0.tgz#df6db3cbee0182bbd2fd6217103781c802aee819"
integrity sha512-EBikYFp2JCdIfGEb5G9dyCkTGDmC57KSHhRQOC3aYxoPWVZvfWCDjZwkGYHN7Lis/fmuWl906bnNTJifDQ3sXw== integrity sha512-CQ8Ykd51jYD1n05dtoX6ns6B9n/+6ZAxnWUAonvHC4kkuAemROYBhHkEB4tm1uVrRlE7gLDqXkAnY51Y0pRCWQ==
dependencies: dependencies:
"@formatjs/intl-localematcher" "0.2.25" "@formatjs/intl-localematcher" "0.2.31"
tslib "^2.1.0" tslib "2.4.0"
"@formatjs/ecma402-abstract@1.5.0": "@formatjs/ecma402-abstract@1.5.0":
version "1.5.0" version "1.5.0"
@ -1488,67 +1488,67 @@
dependencies: dependencies:
tslib "^2.0.1" tslib "^2.0.1"
"@formatjs/fast-memoize@1.2.1": "@formatjs/fast-memoize@1.2.6":
version "1.2.1" version "1.2.6"
resolved "https://registry.yarnpkg.com/@formatjs/fast-memoize/-/fast-memoize-1.2.1.tgz#e6f5aee2e4fd0ca5edba6eba7668e2d855e0fc21" resolved "https://registry.yarnpkg.com/@formatjs/fast-memoize/-/fast-memoize-1.2.6.tgz#a442970db7e9634af556919343261a7bbe5e88c3"
integrity sha512-Rg0e76nomkz3vF9IPlKeV+Qynok0r7YZjL6syLz4/urSg0IbjPZCB/iYUMNsYA643gh4mgrX3T7KEIFIxJBQeg== integrity sha512-9CWZ3+wCkClKHX+i5j+NyoBVqGf0pIskTo6Xl6ihGokYM2yqSSS68JIgeo+99UIHc+7vi9L3/SDSz/dWI9SNlA==
dependencies: dependencies:
tslib "^2.1.0" tslib "2.4.0"
"@formatjs/icu-messageformat-parser@2.1.0": "@formatjs/icu-messageformat-parser@2.1.10":
version "2.1.0" version "2.1.10"
resolved "https://registry.yarnpkg.com/@formatjs/icu-messageformat-parser/-/icu-messageformat-parser-2.1.0.tgz#a54293dd7f098d6a6f6a084ab08b6d54a3e8c12d" resolved "https://registry.yarnpkg.com/@formatjs/icu-messageformat-parser/-/icu-messageformat-parser-2.1.10.tgz#d11114343fcb4c6d5ccabdeac50badf49c83fd9e"
integrity sha512-Qxv/lmCN6hKpBSss2uQ8IROVnta2r9jd3ymUEIjm2UyIkUCHVcbUVRGL/KS/wv7876edvsPe+hjHVJ4z8YuVaw== integrity sha512-KkRMxhifWkRC45dhM9tqm0GXbb6NPYTGVYY3xx891IKc6p++DQrZTnmkVSNNO47OEERLfuP2KkPFPJBuu8z/wg==
dependencies: dependencies:
"@formatjs/ecma402-abstract" "1.11.4" "@formatjs/ecma402-abstract" "1.13.0"
"@formatjs/icu-skeleton-parser" "1.3.6" "@formatjs/icu-skeleton-parser" "1.3.14"
tslib "^2.1.0" tslib "2.4.0"
"@formatjs/icu-skeleton-parser@1.3.6": "@formatjs/icu-skeleton-parser@1.3.14":
version "1.3.6" version "1.3.14"
resolved "https://registry.yarnpkg.com/@formatjs/icu-skeleton-parser/-/icu-skeleton-parser-1.3.6.tgz#4ce8c0737d6f07b735288177049e97acbf2e8964" resolved "https://registry.yarnpkg.com/@formatjs/icu-skeleton-parser/-/icu-skeleton-parser-1.3.14.tgz#b99ef7f855f8a58cab2519ec4f921f11c2bf74a7"
integrity sha512-I96mOxvml/YLrwU2Txnd4klA7V8fRhb6JG/4hm3VMNmeJo1F03IpV2L3wWt7EweqNLES59SZ4d6hVOPCSf80Bg== integrity sha512-7bv60HQQcBb3+TSj+45tOb/CHV5z1hOpwdtS50jsSBXfB+YpGhnoRsZxSRksXeCxMy6xn6tA6VY2601BrrK+OA==
dependencies: dependencies:
"@formatjs/ecma402-abstract" "1.11.4" "@formatjs/ecma402-abstract" "1.13.0"
tslib "^2.1.0" tslib "2.4.0"
"@formatjs/intl-displaynames@5.4.3": "@formatjs/intl-displaynames@6.1.4":
version "5.4.3" version "6.1.4"
resolved "https://registry.yarnpkg.com/@formatjs/intl-displaynames/-/intl-displaynames-5.4.3.tgz#e468586694350c722c7efab1a31fcde68aeaed8b" resolved "https://registry.yarnpkg.com/@formatjs/intl-displaynames/-/intl-displaynames-6.1.4.tgz#26b2c7b814f5132b2e6d781bf4af7bce86f46852"
integrity sha512-4r12A3mS5dp5hnSaQCWBuBNfi9Amgx2dzhU4lTFfhSxgb5DOAiAbMpg6+7gpWZgl4ahsj3l2r/iHIjdmdXOE2Q== integrity sha512-sEbziGLsWQo6nA8ZUBcsDRlZzPg+uMVjDmbTalgGqRWLbdXuxMldTYdaCK+UptyJhkmNVM/erz3csTiyqamXHQ==
dependencies: dependencies:
"@formatjs/ecma402-abstract" "1.11.4" "@formatjs/ecma402-abstract" "1.13.0"
"@formatjs/intl-localematcher" "0.2.25" "@formatjs/intl-localematcher" "0.2.31"
tslib "^2.1.0" tslib "2.4.0"
"@formatjs/intl-listformat@6.5.3": "@formatjs/intl-listformat@7.1.3":
version "6.5.3" version "7.1.3"
resolved "https://registry.yarnpkg.com/@formatjs/intl-listformat/-/intl-listformat-6.5.3.tgz#f29da613a8062dc3e4e3d847ba890c3ea745f051" resolved "https://registry.yarnpkg.com/@formatjs/intl-listformat/-/intl-listformat-7.1.3.tgz#e2bda750a46d2a90d7fa023b02a984588978829c"
integrity sha512-ozpz515F/+3CU+HnLi5DYPsLa6JoCfBggBSSg/8nOB5LYSFW9+ZgNQJxJ8tdhKYeODT+4qVHX27EeJLoxLGLNg== integrity sha512-rs0Kxl78PeRCedx2cmFoBqcun2Kf0bCQrF8ycna54sfePpDhMskvODWeI4G/xBioW01FjK7CJSvtJJ87hrr79A==
dependencies: dependencies:
"@formatjs/ecma402-abstract" "1.11.4" "@formatjs/ecma402-abstract" "1.13.0"
"@formatjs/intl-localematcher" "0.2.25" "@formatjs/intl-localematcher" "0.2.31"
tslib "^2.1.0" tslib "2.4.0"
"@formatjs/intl-localematcher@0.2.25": "@formatjs/intl-localematcher@0.2.31":
version "0.2.25" version "0.2.31"
resolved "https://registry.yarnpkg.com/@formatjs/intl-localematcher/-/intl-localematcher-0.2.25.tgz#60892fe1b271ec35ba07a2eb018a2dd7bca6ea3a" resolved "https://registry.yarnpkg.com/@formatjs/intl-localematcher/-/intl-localematcher-0.2.31.tgz#aada2b1e58211460cedba56889e3c489117eb6eb"
integrity sha512-YmLcX70BxoSopLFdLr1Ds99NdlTI2oWoLbaUW2M406lxOIPzE1KQhRz2fPUkq34xVZQaihCoU29h0KK7An3bhA== integrity sha512-9QTjdSBpQ7wHShZgsNzNig5qT3rCPvmZogS/wXZzKotns5skbXgs0I7J8cuN0PPqXyynvNVuN+iOKhNS2eb+ZA==
dependencies: dependencies:
tslib "^2.1.0" tslib "2.4.0"
"@formatjs/intl@2.2.1": "@formatjs/intl@2.5.1":
version "2.2.1" version "2.5.1"
resolved "https://registry.yarnpkg.com/@formatjs/intl/-/intl-2.2.1.tgz#6daf4dabed055b17f467f0aa1bc073a626bc9189" resolved "https://registry.yarnpkg.com/@formatjs/intl/-/intl-2.5.1.tgz#7a743c3f5ca70b7c7881d6e67e5ce14e2fffac2a"
integrity sha512-vgvyUOOrzqVaOFYzTf2d3+ToSkH2JpR7x/4U1RyoHQLmvEaTQvXJ7A2qm1Iy3brGNXC/+/7bUlc3lpH+h/LOJA== integrity sha512-P01ZGuDDlcN8bHHBCEHspJPvs8WJeO8SXlUIcVGWhS3IN5vUgz0QKUXcKBFnJbEHhONJ+azlObVwvlDKsE+kUg==
dependencies: dependencies:
"@formatjs/ecma402-abstract" "1.11.4" "@formatjs/ecma402-abstract" "1.13.0"
"@formatjs/fast-memoize" "1.2.1" "@formatjs/fast-memoize" "1.2.6"
"@formatjs/icu-messageformat-parser" "2.1.0" "@formatjs/icu-messageformat-parser" "2.1.10"
"@formatjs/intl-displaynames" "5.4.3" "@formatjs/intl-displaynames" "6.1.4"
"@formatjs/intl-listformat" "6.5.3" "@formatjs/intl-listformat" "7.1.3"
intl-messageformat "9.13.0" intl-messageformat "10.2.1"
tslib "^2.1.0" tslib "2.4.0"
"@formatjs/ts-transformer@2.13.0": "@formatjs/ts-transformer@2.13.0":
version "2.13.0" version "2.13.0"
@ -8407,15 +8407,15 @@ intl-messageformat-parser@6.1.2:
"@formatjs/ecma402-abstract" "1.5.0" "@formatjs/ecma402-abstract" "1.5.0"
tslib "^2.0.1" tslib "^2.0.1"
intl-messageformat@9.13.0: intl-messageformat@10.2.1:
version "9.13.0" version "10.2.1"
resolved "https://registry.yarnpkg.com/intl-messageformat/-/intl-messageformat-9.13.0.tgz#97360b73bd82212e4f6005c712a4a16053165468" resolved "https://registry.yarnpkg.com/intl-messageformat/-/intl-messageformat-10.2.1.tgz#2f5626db773c82f3038d355f56ac4736ceef362b"
integrity sha512-7sGC7QnSQGa5LZP7bXLDhVDtQOeKGeBFGHF2Y8LVBwYZoQZCgWeKoPGTa5GMG8g/TzDgeXuYJQis7Ggiw2xTOw== integrity sha512-1lrJG2qKzcC1TVzYu1VuB1yiY68LU5rwpbHa2THCzA67Vutkz7+1lv5U20K3Lz5RAiH78zxNztMEtchokMWv8A==
dependencies: dependencies:
"@formatjs/ecma402-abstract" "1.11.4" "@formatjs/ecma402-abstract" "1.13.0"
"@formatjs/fast-memoize" "1.2.1" "@formatjs/fast-memoize" "1.2.6"
"@formatjs/icu-messageformat-parser" "2.1.0" "@formatjs/icu-messageformat-parser" "2.1.10"
tslib "^2.1.0" tslib "2.4.0"
invert-kv@^1.0.0: invert-kv@^1.0.0:
version "1.0.0" version "1.0.0"
@ -11860,21 +11860,21 @@ react-google-recaptcha@^2.1.0:
prop-types "^15.5.0" prop-types "^15.5.0"
react-async-script "^1.1.1" react-async-script "^1.1.1"
react-intl@^5.25.1: react-intl@^6.2.1:
version "5.25.1" version "6.2.1"
resolved "https://registry.yarnpkg.com/react-intl/-/react-intl-5.25.1.tgz#68a73aefc485c9bf70062381ae7f6f4791680879" resolved "https://registry.yarnpkg.com/react-intl/-/react-intl-6.2.1.tgz#976a44f86a58270d1e498d09636b0ece63ad0344"
integrity sha512-pkjdQDvpJROoXLMltkP/5mZb0/XqrqLoPGKUCfbdkP8m6U9xbK40K51Wu+a4aQqTEvEK5lHBk0fWzUV72SJ3Hg== integrity sha512-hYxcSamgoA3Mvc55nwhTF1v15T0NUSkaV/EScMNVZXg0kRyaMAoNHkCi9/9H+TnXWNiWrcWH9bjlMlJwrG2V7g==
dependencies: dependencies:
"@formatjs/ecma402-abstract" "1.11.4" "@formatjs/ecma402-abstract" "1.13.0"
"@formatjs/icu-messageformat-parser" "2.1.0" "@formatjs/icu-messageformat-parser" "2.1.10"
"@formatjs/intl" "2.2.1" "@formatjs/intl" "2.5.1"
"@formatjs/intl-displaynames" "5.4.3" "@formatjs/intl-displaynames" "6.1.4"
"@formatjs/intl-listformat" "6.5.3" "@formatjs/intl-listformat" "7.1.3"
"@types/hoist-non-react-statics" "^3.3.1" "@types/hoist-non-react-statics" "^3.3.1"
"@types/react" "16 || 17 || 18" "@types/react" "16 || 17 || 18"
hoist-non-react-statics "^3.3.2" hoist-non-react-statics "^3.3.2"
intl-messageformat "9.13.0" intl-messageformat "10.2.1"
tslib "^2.1.0" tslib "2.4.0"
react-is@^16.13.1, react-is@^16.6.0, react-is@^16.7.0: react-is@^16.13.1, react-is@^16.6.0, react-is@^16.7.0:
version "16.13.1" version "16.13.1"
@ -13780,16 +13780,16 @@ tsconfig-paths@^3.14.1:
minimist "^1.2.6" minimist "^1.2.6"
strip-bom "^3.0.0" strip-bom "^3.0.0"
tslib@2.4.0, tslib@^2.0.1, tslib@^2.0.3, tslib@^2.1.0:
version "2.4.0"
resolved "https://registry.yarnpkg.com/tslib/-/tslib-2.4.0.tgz#7cecaa7f073ce680a05847aa77be941098f36dc3"
integrity sha512-d6xOpEDfsi2CZVlPQzGeux8XMwLT9hssAsaPYExaQMuYskwb+x1x7J371tWlbBdWHroy99KnVB6qIkUbs5X3UQ==
tslib@^1.8.1, tslib@^1.9.0: tslib@^1.8.1, tslib@^1.9.0:
version "1.14.1" version "1.14.1"
resolved "https://registry.yarnpkg.com/tslib/-/tslib-1.14.1.tgz#cf2d38bdc34a134bcaf1091c41f6619e2f672d00" resolved "https://registry.yarnpkg.com/tslib/-/tslib-1.14.1.tgz#cf2d38bdc34a134bcaf1091c41f6619e2f672d00"
integrity sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg== integrity sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==
tslib@^2.0.1, tslib@^2.0.3, tslib@^2.1.0:
version "2.4.0"
resolved "https://registry.yarnpkg.com/tslib/-/tslib-2.4.0.tgz#7cecaa7f073ce680a05847aa77be941098f36dc3"
integrity sha512-d6xOpEDfsi2CZVlPQzGeux8XMwLT9hssAsaPYExaQMuYskwb+x1x7J371tWlbBdWHroy99KnVB6qIkUbs5X3UQ==
tsutils@^3.21.0: tsutils@^3.21.0:
version "3.21.0" version "3.21.0"
resolved "https://registry.yarnpkg.com/tsutils/-/tsutils-3.21.0.tgz#b48717d394cea6c1e096983eed58e9d61715b623" resolved "https://registry.yarnpkg.com/tsutils/-/tsutils-3.21.0.tgz#b48717d394cea6c1e096983eed58e9d61715b623"