From 55c2de97798b8eae2a6c96ea64314236a46abb8a Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Thu, 19 Dec 2024 11:36:15 +0000 Subject: [PATCH 1/2] Update dependency immutable to v5 --- package.json | 2 +- yarn.lock | 165 +-------------------------------------------------- 2 files changed, 3 insertions(+), 164 deletions(-) diff --git a/package.json b/package.json index 80a6cf45db..553e39e416 100644 --- a/package.json +++ b/package.json @@ -25,7 +25,7 @@ "file-saver": "^2.0.5", "flux": "^4.0.1", "immutability-helper": "^3.1.1", - "immutable": "^4.0.0-rc.12", + "immutable": "^5.0.0", "jquery": "^3.7.1", "js-base64": "^3.6.1", "js-cookie": "^3.0.0", diff --git a/yarn.lock b/yarn.lock index f9e06026fd..82c7b7dee1 100644 --- a/yarn.lock +++ b/yarn.lock @@ -2265,53 +2265,11 @@ resolved "https://registry.yarnpkg.com/@rtsao/scc/-/scc-1.1.0.tgz#927dd2fae9bc3361403ac2c7a00c32ddce9ad7e8" integrity sha512-zt6OdqaDoOnJ1ZYsCYGt9YmWzDXl4vQdKTyJev62gFhRGKdx7mcT54V9KIjg+d2wi9EXsPvAPKe7i7WjfVWB8g== -"@sentry-internal/feedback@7.120.2": - version "7.120.2" - resolved "https://registry.yarnpkg.com/@sentry-internal/feedback/-/feedback-7.120.2.tgz#90f4e84462fdf688ba15604bdbabeaf6def09b1a" - integrity sha512-AAKW/Qii2qFA/jIZc9HK/CgQLfJ/9zBCqC9FF3bUTnAxzZAbJHO1TLnHqDl5k5wYtt449NrpObHORpopSk7TBg== - dependencies: - "@sentry/core" "7.120.2" - "@sentry/types" "7.120.2" - "@sentry/utils" "7.120.2" - -"@sentry-internal/replay-canvas@7.120.2": - version "7.120.2" - resolved "https://registry.yarnpkg.com/@sentry-internal/replay-canvas/-/replay-canvas-7.120.2.tgz#49d97cb1093e355354a385b7926a326c37141a90" - integrity sha512-2Xm9rJxUA5/CCUYRHNH4VxG13eQpXvM05/cHQKn+pmjaPq/+3fbOHrZZM84gF1FSHjeN8Kg1igoMSekU2kavOQ== - dependencies: - "@sentry/core" "7.120.2" - "@sentry/replay" "7.120.2" - "@sentry/types" "7.120.2" - "@sentry/utils" "7.120.2" - -"@sentry-internal/tracing@7.120.2": - version "7.120.2" - resolved "https://registry.yarnpkg.com/@sentry-internal/tracing/-/tracing-7.120.2.tgz#6f46ff48116633639dbab37633242be4d8cda1f7" - integrity sha512-eo2F8cP6X+vr54Mp6vu+NoQEDz0M5O24Tz8jPY0T1CpiWdwCmHb7Sln+oLXeQ3/LlWdVQihBfKDBZfBdUfsBTg== - dependencies: - "@sentry/core" "7.120.2" - "@sentry/types" "7.120.2" - "@sentry/utils" "7.120.2" - "@sentry/babel-plugin-component-annotate@2.22.6": version "2.22.6" resolved "https://registry.yarnpkg.com/@sentry/babel-plugin-component-annotate/-/babel-plugin-component-annotate-2.22.6.tgz#829d6caf2c95c1c46108336de4e1049e6521435e" integrity sha512-V2g1Y1I5eSe7dtUVMBvAJr8BaLRr4CLrgNgtPaZyMT4Rnps82SrZ5zqmEkLXPumlXhLUWR6qzoMNN2u+RXVXfQ== -"@sentry/browser@^7.40.0": - version "7.120.2" - resolved "https://registry.yarnpkg.com/@sentry/browser/-/browser-7.120.2.tgz#381b55309e17212cf9724da46279362804606847" - integrity sha512-o5ll2Yv5MfnblbWxTvMlKK3RVXIbeJ+SPC+uw12b4j/pkrQg+/y7dyTLBXh6t0EgokSOsRUyYosQwSvxG/xs/Q== - dependencies: - "@sentry-internal/feedback" "7.120.2" - "@sentry-internal/replay-canvas" "7.120.2" - "@sentry-internal/tracing" "7.120.2" - "@sentry/core" "7.120.2" - "@sentry/integrations" "7.120.2" - "@sentry/replay" "7.120.2" - "@sentry/types" "7.120.2" - "@sentry/utils" "7.120.2" - "@sentry/bundler-plugin-core@2.22.6": version "2.22.6" resolved "https://registry.yarnpkg.com/@sentry/bundler-plugin-core/-/bundler-plugin-core-2.22.6.tgz#a1ea1fd43700a3ece9e7db016997e79a2782b87d" @@ -2380,46 +2338,6 @@ "@sentry/cli-win32-i686" "2.38.2" "@sentry/cli-win32-x64" "2.38.2" -"@sentry/core@7.120.2": - version "7.120.2" - resolved "https://registry.yarnpkg.com/@sentry/core/-/core-7.120.2.tgz#f3b14d18782120685404ec18ab44a14fc4c63234" - integrity sha512-eurLBFQJC7WWWYoEna25Z9I/GJjqAmH339tv52XP8sqXV7B5hRcHDcfrsT/UGHpU316M24p3lWhj0eimtCZ0SQ== - dependencies: - "@sentry/types" "7.120.2" - "@sentry/utils" "7.120.2" - -"@sentry/integrations@7.120.2": - version "7.120.2" - resolved "https://registry.yarnpkg.com/@sentry/integrations/-/integrations-7.120.2.tgz#72daaf593bca5cd1c7cbea260c24e7f43942c6c2" - integrity sha512-bMvL2fD3TGLM5YAUoQ2Qz6bYeVU8f7YRFNSjKNxK4EbvFgAU9j1FD6EKg0V0RNOJYnJjGIZYMmcWTXBbVTJL6w== - dependencies: - "@sentry/core" "7.120.2" - "@sentry/types" "7.120.2" - "@sentry/utils" "7.120.2" - localforage "^1.8.1" - -"@sentry/replay@7.120.2": - version "7.120.2" - resolved "https://registry.yarnpkg.com/@sentry/replay/-/replay-7.120.2.tgz#5379e1750aa9c5006d8b801d5a97379acde6f50d" - integrity sha512-UAw0anHwXeej0Rfx+7qZVbRb3rj3mQ0DuHqdpPTSd9WpfRGOvCfthMIKD7rfHX7GjMnPMgdmsaU8K3lpe60h+w== - dependencies: - "@sentry-internal/tracing" "7.120.2" - "@sentry/core" "7.120.2" - "@sentry/types" "7.120.2" - "@sentry/utils" "7.120.2" - -"@sentry/types@7.120.2": - version "7.120.2" - resolved "https://registry.yarnpkg.com/@sentry/types/-/types-7.120.2.tgz#de9e96fb64accfe5a6e4ada79b1bf366629d0f14" - integrity sha512-FWVoiblHQJ892GaOqdXx/5/n5XDLF28z81vJ0lCY49PMh8waz8LJ0b9RSmt9tasSDl0OQ7eUlPl1xu1jTrv1NA== - -"@sentry/utils@7.120.2": - version "7.120.2" - resolved "https://registry.yarnpkg.com/@sentry/utils/-/utils-7.120.2.tgz#931da4f7989a4e78c4f7c0607f47f9d85461a1b8" - integrity sha512-jgnQlw11mRfQrQRAXbq4zEd+tbYwHel5eqeS/oU6EImXRjmHNtS79nB8MHvJeQu1FMCpFs1Ymrrs5FICwS6VeQ== - dependencies: - "@sentry/types" "7.120.2" - "@sentry/webpack-plugin@2.22.6": version "2.22.6" resolved "https://registry.yarnpkg.com/@sentry/webpack-plugin/-/webpack-plugin-2.22.6.tgz#8c9d27d5cd89153a5b6e08cc9dcb3048b122ffbc" @@ -3571,7 +3489,7 @@ commander@^10.0.1: resolved "https://registry.yarnpkg.com/commander/-/commander-10.0.1.tgz#881ee46b4f77d1c1dccc5823433aa39b022cbe06" integrity sha512-y4Mg2tXshplEbSGzx7amzPwKKOCGuoSRP/CjEdwwk0FOGlUbq6lKuoyDZTNZkmxHdJtp54hdfY/JUrdL7Xfdug== -commander@^2.20.0, commander@^2.20.3: +commander@^2.20.0: version "2.20.3" resolved "https://registry.yarnpkg.com/commander/-/commander-2.20.3.tgz#fd485e84c03eb4881c20722ba48035e8531aeb33" integrity sha512-GpVkmM8vF2vQUkj2LvZmD35JxeJOLCwJ9cUkugyk2nuhbv3+mJvpLYYt+0+USMxE+oj+ey/lJEnhZw75x/OMcQ== @@ -3581,11 +3499,6 @@ commander@^8.3.0: resolved "https://registry.yarnpkg.com/commander/-/commander-8.3.0.tgz#4837ea1b2da67b9c616a67afbb0fafee567bca66" integrity sha512-OkTL9umf+He2DZkUq8f8J9of7yL6RJKI24dVITBmNfZBmri9zYZQrKkuXiKhyfPSu8tUhnVBB1iKXevvnlR4Ww== -commander@^9.0.0: - version "9.5.0" - resolved "https://registry.yarnpkg.com/commander/-/commander-9.5.0.tgz#bc08d1eb5cedf7ccb797a96199d41c7bc3e60d30" - integrity sha512-KRs7WVDKg86PWiuAqhDrAQnTXZKraVcCc6vFdL14qrZ/DcWwuRo7VoiYXalXO7S5GKpqYiVEwCbgFDfxNHKJBQ== - commander@~12.1.0: version "12.1.0" resolved "https://registry.yarnpkg.com/commander/-/commander-12.1.0.tgz#01423b36f501259fdaac4d0e4d60c96c991585d3" @@ -3623,11 +3536,6 @@ core-js-compat@^3.38.0, core-js-compat@^3.38.1: dependencies: browserslist "^4.24.2" -core-js@^3.38.1: - version "3.39.0" - resolved "https://registry.yarnpkg.com/core-js/-/core-js-3.39.0.tgz#57f7647f4d2d030c32a72ea23a0555b2eaa30f83" - integrity sha512-raM0ew0/jJUqkJ0E6e8UDtl+y/7ktFivgWvqw8dNSQeNWoSDLvQ1H/RN3aPXB9tBd4/FhyR4RDPGhsNIMsAn7g== - core-js@^3.6.4: version "3.35.1" resolved "https://registry.yarnpkg.com/core-js/-/core-js-3.35.1.tgz#9c28f8b7ccee482796f8590cc8d15739eaaf980c" @@ -3702,11 +3610,6 @@ cssesc@^3.0.0: resolved "https://registry.yarnpkg.com/cssesc/-/cssesc-3.0.0.tgz#37741919903b868565e1c09ea747445cd18983ee" integrity sha512-/Tb/JcjK111nNScGob5MNtsntNM1aCNUDipB/TkwZFhyDrrE47SOx/18wF2bbjgc3ZzCSKW1T5nt5EbFoAz/Vg== -cssfilter@0.0.10: - version "0.0.10" - resolved "https://registry.yarnpkg.com/cssfilter/-/cssfilter-0.0.10.tgz#c6d2672632a2e5c83e013e6864a42ce8defd20ae" - integrity sha512-FAaLDaplstoRsDR8XGYH51znUN0UY7nMc6Z9/fvE8EXGwvJE9hu7W2vHwx1+bd6gCYnln9nLbzxFTrcO9YQDZw== - cssom@^0.5.0: version "0.5.0" resolved "https://registry.yarnpkg.com/cssom/-/cssom-0.5.0.tgz#d254fa92cd8b6fbd83811b9fbaed34663cc17c36" @@ -4605,11 +4508,6 @@ fbjs@^3.0.0, fbjs@^3.0.1: setimmediate "^1.0.5" ua-parser-js "^1.0.35" -fflate@^0.4.8: - version "0.4.8" - resolved "https://registry.yarnpkg.com/fflate/-/fflate-0.4.8.tgz#f90b82aefbd8ac174213abb338bd7ef848f0f5ae" - integrity sha512-FJqqoDBR00Mdj9ppamLa/Y7vxm+PRmNWA67N846RvsoYVMKB4q3y/de5PA7gUmRMYK/8CMz2GDZQmCRN1wBcWA== - file-entry-cache@^6.0.1: version "6.0.1" resolved "https://registry.yarnpkg.com/file-entry-cache/-/file-entry-cache-6.0.1.tgz#211b2dd9659cb0394b073e7323ac3c933d522027" @@ -5083,22 +4981,12 @@ ignore@^5.2.0: resolved "https://registry.yarnpkg.com/ignore/-/ignore-5.3.2.tgz#3cd40e729f3643fd87cb04e50bf0eb722bc596f5" integrity sha512-hsBTNUqQTDwkWtcdYI2i06Y/nUBEsNEDJKjWdigLvegy8kDuJAS8uRlpkkcQpyEXL0Z/pjDy5HBmMjRCJ2gq+g== -immediate@~3.0.5: - version "3.0.6" - resolved "https://registry.yarnpkg.com/immediate/-/immediate-3.0.6.tgz#9db1dbd0faf8de6fbe0f5dd5e56bb606280de69b" - integrity sha512-XXOFtyqDjNDAQxVfYxuF7g9Il/IbWmmlQg2MYKOH8ExIT1qg6xc4zyS3HaEEATgs1btfzxq15ciUiY7gjSXRGQ== - immutability-helper@^3.1.1: version "3.1.1" resolved "https://registry.yarnpkg.com/immutability-helper/-/immutability-helper-3.1.1.tgz#2b86b2286ed3b1241c9e23b7b21e0444f52f77b7" integrity sha512-Q0QaXjPjwIju/28TsugCHNEASwoCcJSyJV3uO1sOIQGI0jKgm9f41Lvz0DZj3n46cNCyAZTsEYoY4C2bVRUzyQ== -immutable@^4.0.0-rc.12: - version "4.3.7" - resolved "https://registry.yarnpkg.com/immutable/-/immutable-4.3.7.tgz#c70145fc90d89fb02021e65c84eb0226e4e5a381" - integrity sha512-1hqclzwYwjRDFLjcFxOM5AYkkG0rpFPpr1RLPMEuGczoS7YA8gLhy8SWXYRAA/XwfEHpfo3cw5JGioS32fnMRw== - -immutable@^5.0.2: +immutable@^5.0.0, immutable@^5.0.2: version "5.0.3" resolved "https://registry.yarnpkg.com/immutable/-/immutable-5.0.3.tgz#aa037e2313ea7b5d400cd9298fa14e404c933db1" integrity sha512-P8IdPQHq3lA1xVeBRi5VPqUm5HDgKnx0Ru51wZz5mjxHr5n3RWhjIpOFU7ybkUxfB+5IToy+OLaHYDBIWsv+uw== @@ -6062,13 +5950,6 @@ levn@^0.4.1: prelude-ls "^1.2.1" type-check "~0.4.0" -lie@3.1.1: - version "3.1.1" - resolved "https://registry.yarnpkg.com/lie/-/lie-3.1.1.tgz#9a436b2cc7746ca59de7a41fa469b3efb76bd87e" - integrity sha512-RiNhHysUjhrDQntfYSfY4MU24coXXdEOgw9WGcKHNeEwffDYbF//u87M1EWaMGzuFoSbqW0C9C6lEEhDOAswfw== - dependencies: - immediate "~3.0.5" - lilconfig@^2.0.5: version "2.1.0" resolved "https://registry.yarnpkg.com/lilconfig/-/lilconfig-2.1.0.tgz#78e23ac89ebb7e1bfbf25b18043de756548e7f52" @@ -6122,13 +6003,6 @@ loader-utils@^3.2.0: resolved "https://registry.yarnpkg.com/loader-utils/-/loader-utils-3.3.1.tgz#735b9a19fd63648ca7adbd31c2327dfe281304e5" integrity sha512-FMJTLMXfCLMLfJxcX9PFqX5qD88Z5MRGaZCVzfuqeZSPsyiBzs+pahDQjbIWz2QIzPZz0NX9Zy4FX3lmK6YHIg== -localforage@^1.8.1: - version "1.10.0" - resolved "https://registry.yarnpkg.com/localforage/-/localforage-1.10.0.tgz#5c465dc5f62b2807c3a84c0c6a1b1b3212781dd4" - integrity sha512-14/H1aX7hzBBmmh7sGPd+AOMkkIrHM3Z1PAyGgZigA1H1p5O5ANnMyWzvpAETtG68/dC4pC0ncy3+PPGzXZHPg== - dependencies: - lie "3.1.1" - locate-path@^5.0.0: version "5.0.0" resolved "https://registry.yarnpkg.com/locate-path/-/locate-path-5.0.0.tgz#1afba396afd676a6d42504d0a67a3a7eb9f62aa0" @@ -6841,21 +6715,6 @@ postcss@^8.4.33: picocolors "^1.0.0" source-map-js "^1.0.2" -posthog-js@^1.57.2: - version "1.202.2" - resolved "https://registry.yarnpkg.com/posthog-js/-/posthog-js-1.202.2.tgz#dc1167b2563bb91371887d7305d40e727b1f04a1" - integrity sha512-9p7dAWuCfoM0WrasubGwtC8i38HU3iMqK3gd0mhyAoTrEVMVozTQq64Toc2VEv8H69NGNn6ikk5t2LclHT9XFA== - dependencies: - core-js "^3.38.1" - fflate "^0.4.8" - preact "^10.19.3" - web-vitals "^4.2.0" - -preact@^10.19.3: - version "10.25.3" - resolved "https://registry.yarnpkg.com/preact/-/preact-10.25.3.tgz#22dfb072b088dda9a2bc6d4ca41bf46b588d325e" - integrity sha512-dzQmIFtM970z+fP9ziQ3yG4e3ULIbwZzJ734vaMVUTaKQ2+Ru1Ou/gjshOYVHCcd1rpAelC6ngjvjDXph98unQ== - prelude-ls@^1.2.1: version "1.2.1" resolved "https://registry.yarnpkg.com/prelude-ls/-/prelude-ls-1.2.1.tgz#debc6489d7a6e6b0e7611888cec880337d316396" @@ -7472,13 +7331,6 @@ shebang-regex@^3.0.0: resolved "https://registry.yarnpkg.com/shebang-regex/-/shebang-regex-3.0.0.tgz#ae16f1644d873ecad843b0307b143362d4c42172" integrity sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A== -showdown@^2.0.0: - version "2.1.0" - resolved "https://registry.yarnpkg.com/showdown/-/showdown-2.1.0.tgz#1251f5ed8f773f0c0c7bfc8e6fd23581f9e545c5" - integrity sha512-/6NVYu4U819R2pUIk79n67SYgJHWCce0a5xTP979WbNp0FL9MN1I1QK662IDU1b6JzKTvmhgI7T7JYIxBi3kMQ== - dependencies: - commander "^9.0.0" - side-channel@^1.0.4, side-channel@^1.0.6: version "1.0.6" resolved "https://registry.yarnpkg.com/side-channel/-/side-channel-1.0.6.tgz#abd25fb7cd24baf45466406b1096b7831c9215f2" @@ -8168,11 +8020,6 @@ watchpack@^2.4.1: glob-to-regexp "^0.4.1" graceful-fs "^4.1.2" -web-vitals@^4.2.0: - version "4.2.4" - resolved "https://registry.yarnpkg.com/web-vitals/-/web-vitals-4.2.4.tgz#1d20bc8590a37769bd0902b289550936069184b7" - integrity sha512-r4DIlprAGwJ7YM11VZp4R884m0Vmgr6EAKe3P+kO0PPj3Unqyvv59rczf6UiGcb9Z8QxZVcqKNwv/g0WNdWwsw== - webidl-conversions@^3.0.0: version "3.0.1" resolved "https://registry.yarnpkg.com/webidl-conversions/-/webidl-conversions-3.0.1.tgz#24534275e2a7bc6be7bc86611cc16ae0a5654871" @@ -8413,14 +8260,6 @@ xmlchars@^2.2.0: resolved "https://registry.yarnpkg.com/xmlchars/-/xmlchars-2.2.0.tgz#060fe1bcb7f9c76fe2a17db86a9bc3ab894210cb" integrity sha512-JZnDKK8B0RCDw84FNdDAIpZK+JuJw+s7Lz8nksI7SIuU3UXJJslUthsi+uWBUYOwPFwW7W7PRLRfUKpxjtjFCw== -xss@^1.0.8: - version "1.0.15" - resolved "https://registry.yarnpkg.com/xss/-/xss-1.0.15.tgz#96a0e13886f0661063028b410ed1b18670f4e59a" - integrity sha512-FVdlVVC67WOIPvfOwhoMETV72f6GbW7aOabBC3WxN/oUdoEMDyLz4OgRv5/gck2ZeNqEQu+Tb0kloovXOfpYVg== - dependencies: - commander "^2.20.3" - cssfilter "0.0.10" - y18n@^5.0.5: version "5.0.8" resolved "https://registry.yarnpkg.com/y18n/-/y18n-5.0.8.tgz#7f4934d0f7ca8c56f95314939ddcd2dd91ce1d55" From b4d30f444c4750991e56c6997dfc74755e49abd9 Mon Sep 17 00:00:00 2001 From: riccio82 Date: Thu, 19 Dec 2024 15:05:35 +0100 Subject: [PATCH 2/2] Update Immutable import --- .../es6/components/header/Header.js | 4 +- .../header/manage/FilterProjects.test.js | 4 +- .../components/outsource/OutsourceVendor.js | 4 +- .../components/projects/JobContainer.test.js | 4 +- .../es6/components/projects/JobMenu.test.js | 4 +- .../components/projects/ProjectContainer.js | 2 - .../projects/ProjectContainer.test.js | 10 +- .../components/projects/ProjectsContainer.js | 4 +- .../projects/ProjectsContainer.test.js | 11 +- .../es6/components/segments/Editarea.js | 10 +- .../es6/components/segments/Segment.js | 6 +- .../segments/SegmentFooterMultiMatches.js | 6 +- .../segments/SegmentFooterTabConflicts.js | 6 +- .../segments/SegmentFooterTabMatches.js | 6 +- .../segments/SegmentFooterTabMessages.js | 6 +- .../es6/components/segments/SegmentSource.js | 16 +- .../components/segments/SegmentWarnings.js | 6 +- .../components/segments/SegmentsContainer.js | 4 +- .../DraftSource/randomizeBlockMapKeys.js | 4 +- .../src/model/immutable/ContentBlockNode.js | 3 +- .../buildFragmentFromJson.js | 4 +- public/js/cat_source/es6/pages/AnalyzePage.js | 7 +- public/js/cat_source/es6/pages/Dashboard.js | 6 +- .../js/cat_source/es6/stores/ProjectsStore.js | 29 ++-- .../es6/stores/QualityReportStore.js | 23 ++- .../js/cat_source/es6/stores/SegmentStore.js | 61 +++---- public/js/cat_source/es6/stores/UserStore.js | 16 +- yarn.lock | 158 +++++++++++++++++- 28 files changed, 270 insertions(+), 154 deletions(-) diff --git a/public/js/cat_source/es6/components/header/Header.js b/public/js/cat_source/es6/components/header/Header.js index b7a0335dd6..9df7facb74 100644 --- a/public/js/cat_source/es6/components/header/Header.js +++ b/public/js/cat_source/es6/components/header/Header.js @@ -7,7 +7,7 @@ import FilterProjects from './manage/FilterProjects' import {ActionMenu} from './ActionMenu' import {UserMenu} from './UserMenu' import {ComponentExtendInterface} from '../../utils/ComponentExtendInterface' -import Immutable from 'immutable' +import {fromJS} from 'immutable' import {TeamDropdown} from './TeamDropdown' export class HeaderInterface extends ComponentExtendInterface { @@ -57,7 +57,7 @@ const Header = ({ {showFilterProjects && (
- +
)} diff --git a/public/js/cat_source/es6/components/header/manage/FilterProjects.test.js b/public/js/cat_source/es6/components/header/manage/FilterProjects.test.js index 7341749747..28a2891825 100644 --- a/public/js/cat_source/es6/components/header/manage/FilterProjects.test.js +++ b/public/js/cat_source/es6/components/header/manage/FilterProjects.test.js @@ -1,7 +1,7 @@ import {render, screen, act} from '@testing-library/react' import userEvent from '@testing-library/user-event' import React from 'react' -import Immutable from 'immutable' +import {fromJS} from 'immutable' import {http, HttpResponse} from 'msw' import FilterProjects from './FilterProjects' @@ -50,7 +50,7 @@ const fakeFilterData = { const getFakeProperties = (fakeProperties) => { const {data} = fakeProperties - const team = Immutable.fromJS(data) + const team = fromJS(data) return { team, diff --git a/public/js/cat_source/es6/components/outsource/OutsourceVendor.js b/public/js/cat_source/es6/components/outsource/OutsourceVendor.js index 2e26daafbc..d7fad4b5af 100644 --- a/public/js/cat_source/es6/components/outsource/OutsourceVendor.js +++ b/public/js/cat_source/es6/components/outsource/OutsourceVendor.js @@ -1,5 +1,5 @@ import React from 'react' -import Immutable from 'immutable' +import {fromJS} from 'immutable' import Cookies from 'js-cookie' import {isUndefined} from 'lodash' import {isNull} from 'lodash/lang' @@ -109,7 +109,7 @@ class OutsourceVendor extends React.Component { } self.quoteResponse = quoteData.data[0] - let chunk = Immutable.fromJS(quoteData.data[0][0]) + let chunk = fromJS(quoteData.data[0][0]) self.url_ok = quoteData.return_url.url_ok self.url_ko = quoteData.return_url.url_ko diff --git a/public/js/cat_source/es6/components/projects/JobContainer.test.js b/public/js/cat_source/es6/components/projects/JobContainer.test.js index a6ca8c26aa..480339a9a8 100644 --- a/public/js/cat_source/es6/components/projects/JobContainer.test.js +++ b/public/js/cat_source/es6/components/projects/JobContainer.test.js @@ -2,7 +2,7 @@ import {render, screen, act, waitFor} from '@testing-library/react' import userEvent from '@testing-library/user-event' import '@testing-library/jest-dom' import React from 'react' -import Immutable from 'immutable' +import {fromJS} from 'immutable' import JobContainer from './JobContainer' import ProjectsStore from '../../stores/ProjectsStore' import ManageConstants from '../../constants/ManageConstants' @@ -849,7 +849,7 @@ const fakeProjectsData = { const getFakeProperties = (fakeProperties) => { const {data, props} = fakeProperties - const project = Immutable.fromJS(data) + const project = fromJS(data) const jobs = project.get('jobs') const job = jobs.first() diff --git a/public/js/cat_source/es6/components/projects/JobMenu.test.js b/public/js/cat_source/es6/components/projects/JobMenu.test.js index bb614b1322..7a706cae61 100644 --- a/public/js/cat_source/es6/components/projects/JobMenu.test.js +++ b/public/js/cat_source/es6/components/projects/JobMenu.test.js @@ -2,7 +2,7 @@ import {render, screen, waitFor} from '@testing-library/react' import userEvent from '@testing-library/user-event' import React from 'react' import JobMenu from './JobMenu' -import Immutable from 'immutable' +import {fromJS} from 'immutable' import {http, HttpResponse} from 'msw' import {mswServer} from '../../../../../mocks/mswServer' import ProjectsStore from '../../stores/ProjectsStore' @@ -100,7 +100,7 @@ const fakeProjectsData = { const getFakeProperties = (fakeProperties) => { const {data, props} = fakeProperties - const project = Immutable.fromJS(data) + const project = fromJS(data) const jobs = project.get('jobs') const job = jobs.first() diff --git a/public/js/cat_source/es6/components/projects/ProjectContainer.js b/public/js/cat_source/es6/components/projects/ProjectContainer.js index d05536e519..ca237a986c 100644 --- a/public/js/cat_source/es6/components/projects/ProjectContainer.js +++ b/public/js/cat_source/es6/components/projects/ProjectContainer.js @@ -8,11 +8,9 @@ import UserActions from '../../actions/UserActions' import ManageActions from '../../actions/ManageActions' import ProjectsStore from '../../stores/ProjectsStore' import {getLastProjectActivityLogAction} from '../../api/getLastProjectActivityLogAction' -import CommonUtils from '../../utils/commonUtils' import CatToolActions from '../../actions/CatToolActions' import ModalsActions from '../../actions/ModalsActions' import ConfirmMessageModal from '../modals/ConfirmMessageModal' -import Immutable from 'immutable' import UserStore from '../../stores/UserStore' import { DROPDOWN_MENU_ALIGN, diff --git a/public/js/cat_source/es6/components/projects/ProjectContainer.test.js b/public/js/cat_source/es6/components/projects/ProjectContainer.test.js index 9f050d3068..ddc30e6129 100644 --- a/public/js/cat_source/es6/components/projects/ProjectContainer.test.js +++ b/public/js/cat_source/es6/components/projects/ProjectContainer.test.js @@ -1,8 +1,8 @@ -import {render, screen, waitFor} from '@testing-library/react' +import {render, screen} from '@testing-library/react' import React from 'react' import {createRoot} from 'react-dom/client' import ProjectContainer from './ProjectContainer' -import Immutable from 'immutable' +import {fromJS} from 'immutable' import {http, HttpResponse} from 'msw' import {mswServer} from '../../../../../mocks/mswServer' @@ -349,9 +349,9 @@ const fakeProjectsData = { const getFakeProperties = (fakeProperties) => { const {data, dataTeam, dataTeams, props} = fakeProperties - const project = Immutable.fromJS(data) - const team = Immutable.fromJS(dataTeam) - const teams = Immutable.fromJS(dataTeams) + const project = fromJS(data) + const team = fromJS(dataTeam) + const teams = fromJS(dataTeams) return { project, diff --git a/public/js/cat_source/es6/components/projects/ProjectsContainer.js b/public/js/cat_source/es6/components/projects/ProjectsContainer.js index 65b3ffddf3..0fdd7972b9 100644 --- a/public/js/cat_source/es6/components/projects/ProjectsContainer.js +++ b/public/js/cat_source/es6/components/projects/ProjectsContainer.js @@ -6,12 +6,12 @@ import ManageConstants from '../../constants/ManageConstants' import ProjectsStore from '../../stores/ProjectsStore' import UserStore from '../../stores/UserStore' import ManageActions from '../../actions/ManageActions' -import Immutable from 'immutable' +import {fromJS} from 'immutable' class ProjectsContainer extends React.Component { constructor(props) { super(props) this.state = { - projects: Immutable.fromJS([]), + projects: fromJS([]), more_projects: false, reloading_projects: false, team: this.props.team, diff --git a/public/js/cat_source/es6/components/projects/ProjectsContainer.test.js b/public/js/cat_source/es6/components/projects/ProjectsContainer.test.js index 73333b92ad..6ed7dc6c62 100644 --- a/public/js/cat_source/es6/components/projects/ProjectsContainer.test.js +++ b/public/js/cat_source/es6/components/projects/ProjectsContainer.test.js @@ -1,6 +1,6 @@ import {render, screen, waitFor, act} from '@testing-library/react' import React from 'react' -import Immutable from 'immutable' +import {fromJS} from 'immutable' import {http, HttpResponse} from 'msw' import ProjectsContainer from './ProjectsContainer' @@ -8,7 +8,6 @@ import ManageActions from '../../actions/ManageActions' import {mswServer} from '../../../../../mocks/mswServer' import userMock from '../../../../../mocks/userMock' import {ApplicationWrapperContext} from '../common/ApplicationWrapper' -import ProjectContainer from './ProjectContainer' // create modal div const modalElement = document.createElement('div') @@ -615,9 +614,9 @@ const fakeProjectsData = { const getFakeProperties = (fakeProperties) => { const {data, dataTeam, dataTeams, props} = fakeProperties - const projects = Immutable.fromJS(data) - const team = Immutable.fromJS(dataTeam) - const teams = Immutable.fromJS(dataTeams) + const projects = fromJS(data) + const team = fromJS(dataTeam) + const teams = fromJS(dataTeams) return { projects, @@ -773,7 +772,7 @@ test('No projects found with team type general', () => { const {dataTeam} = fakeProjectsData.projects const dataTeamCopy = {...dataTeam, type: 'general'} - const team = Immutable.fromJS(dataTeamCopy) + const team = fromJS(dataTeamCopy) render() diff --git a/public/js/cat_source/es6/components/segments/Editarea.js b/public/js/cat_source/es6/components/segments/Editarea.js index ea66a61dd8..2ee468884d 100644 --- a/public/js/cat_source/es6/components/segments/Editarea.js +++ b/public/js/cat_source/es6/components/segments/Editarea.js @@ -1,5 +1,5 @@ import React, {createRef} from 'react' -import Immutable from 'immutable' +import {fromJS} from 'immutable' import { Modifier, Editor, @@ -380,9 +380,7 @@ class Editarea extends React.Component { const lexiqaChanged = prevLexiqaTarget && currentLexiqaTarget && - !Immutable.fromJS(prevLexiqa.target).equals( - Immutable.fromJS(lexiqa.target), - ) + !fromJS(prevLexiqa.target).equals(fromJS(lexiqa.target)) if ( //Condition to understand if the job has tm keys or if the check glossary request has been made (blacklist must take precedence over lexiqa) @@ -414,8 +412,8 @@ class Editarea extends React.Component { (!prevProps || !prevProps.segment.inSearch || //Before was not active (prevProps.segment.inSearch && - !Immutable.fromJS(prevProps.segment.searchParams).equals( - Immutable.fromJS(this.props.segment.searchParams), + !fromJS(prevProps.segment.searchParams).equals( + fromJS(this.props.segment.searchParams), )) || //Before was active but some params change (prevProps.segment.inSearch && prevProps.segment.currentInSearch !== diff --git a/public/js/cat_source/es6/components/segments/Segment.js b/public/js/cat_source/es6/components/segments/Segment.js index 8f9c0d70f2..5e2f810c18 100644 --- a/public/js/cat_source/es6/components/segments/Segment.js +++ b/public/js/cat_source/es6/components/segments/Segment.js @@ -1,5 +1,5 @@ import {forEach, isUndefined} from 'lodash' -import Immutable from 'immutable' +import {fromJS} from 'immutable' import React from 'react' import {union} from 'lodash/array' @@ -636,8 +636,8 @@ class Segment extends React.Component { shouldComponentUpdate(nextProps, nextState) { return ( !nextProps.segImmutable.equals(this.props.segImmutable) || - !Immutable.fromJS(nextState.segment_classes).equals( - Immutable.fromJS(this.state.segment_classes), + !fromJS(nextState.segment_classes).equals( + fromJS(this.state.segment_classes), ) || nextState.autopropagated !== this.state.autopropagated || nextState.readonly !== this.state.readonly || diff --git a/public/js/cat_source/es6/components/segments/SegmentFooterMultiMatches.js b/public/js/cat_source/es6/components/segments/SegmentFooterMultiMatches.js index 997fb20cac..f24d920f7b 100644 --- a/public/js/cat_source/es6/components/segments/SegmentFooterMultiMatches.js +++ b/public/js/cat_source/es6/components/segments/SegmentFooterMultiMatches.js @@ -1,5 +1,5 @@ import React from 'react' -import Immutable from 'immutable' +import {fromJS} from 'immutable' import {isUndefined} from 'lodash' import TextUtils from '../../utils/textUtils' @@ -157,8 +157,8 @@ class SegmentFooterMultiMatches extends React.Component { !isUndefined(this.props.segment.cl_contributions)) && ((!isUndefined(nextProps.segment.cl_contributions) && isUndefined(this.props.segment.cl_contributions)) || - !Immutable.fromJS(this.props.segment.cl_contributions).equals( - Immutable.fromJS(nextProps.segment.cl_contributions), + !fromJS(this.props.segment.cl_contributions).equals( + fromJS(nextProps.segment.cl_contributions), ))) || this.props.active_class !== nextProps.active_class || this.props.tab_class !== nextProps.tab_class diff --git a/public/js/cat_source/es6/components/segments/SegmentFooterTabConflicts.js b/public/js/cat_source/es6/components/segments/SegmentFooterTabConflicts.js index bee335fac9..e8061736f2 100644 --- a/public/js/cat_source/es6/components/segments/SegmentFooterTabConflicts.js +++ b/public/js/cat_source/es6/components/segments/SegmentFooterTabConflicts.js @@ -1,6 +1,6 @@ import React from 'react' import {isUndefined, size} from 'lodash' -import Immutable from 'immutable' +import {fromJS} from 'immutable' import TextUtils from '../../utils/textUtils' import SegmentActions from '../../actions/SegmentActions' @@ -143,8 +143,8 @@ class SegmentFooterTabConflicts extends React.Component { !isUndefined(this.props.segment.alternatives)) && ((!isUndefined(nextProps.segment.alternatives) && isUndefined(this.props.segment.alternatives)) || - !Immutable.fromJS(this.props.segment.alternatives).equals( - Immutable.fromJS(nextProps.segment.alternatives), + !fromJS(this.props.segment.alternatives).equals( + fromJS(nextProps.segment.alternatives), ))) ) } diff --git a/public/js/cat_source/es6/components/segments/SegmentFooterTabMatches.js b/public/js/cat_source/es6/components/segments/SegmentFooterTabMatches.js index 3b3c7af2e6..7fd07f6e40 100644 --- a/public/js/cat_source/es6/components/segments/SegmentFooterTabMatches.js +++ b/public/js/cat_source/es6/components/segments/SegmentFooterTabMatches.js @@ -1,6 +1,6 @@ import React from 'react' import {isUndefined} from 'lodash' -import Immutable from 'immutable' +import {fromJS} from 'immutable' import SegmentConstants from '../../constants/SegmentConstants' import SegmentStore from '../../stores/SegmentStore' @@ -229,8 +229,8 @@ class SegmentFooterTabMatches extends React.Component { !isUndefined(this.props.segment.contributions)) && ((!isUndefined(nextProps.segment.contributions) && isUndefined(this.props.segment.contributions)) || - !Immutable.fromJS(this.props.segment.contributions).equals( - Immutable.fromJS(nextProps.segment.contributions), + !fromJS(this.props.segment.contributions).equals( + fromJS(nextProps.segment.contributions), ))) || this.props.active_class !== nextProps.active_class || this.props.tab_class !== nextProps.tab_class || diff --git a/public/js/cat_source/es6/components/segments/SegmentFooterTabMessages.js b/public/js/cat_source/es6/components/segments/SegmentFooterTabMessages.js index c78c83b29d..d8d9c266ab 100644 --- a/public/js/cat_source/es6/components/segments/SegmentFooterTabMessages.js +++ b/public/js/cat_source/es6/components/segments/SegmentFooterTabMessages.js @@ -1,5 +1,5 @@ import React from 'react' -import Immutable from 'immutable' +import {fromJS} from 'immutable' import {isUndefined} from 'lodash' import TEXT_UTILS from '../../utils/textUtils' @@ -151,9 +151,7 @@ class SegmentFooterTabMessages extends React.Component { return ( isUndefined(nextProps.notes) || isUndefined(this.props.note) || - !Immutable.fromJS(this.props.notes).equals( - Immutable.fromJS(nextProps.notes), - ) || + !fromJS(this.props.notes).equals(fromJS(nextProps.notes)) || this.props.loading !== nextProps.loading || this.props.active_class !== nextProps.active_class || this.props.tab_class !== nextProps.tab_class diff --git a/public/js/cat_source/es6/components/segments/SegmentSource.js b/public/js/cat_source/es6/components/segments/SegmentSource.js index 3c5e9b54d4..9c6c38c94b 100644 --- a/public/js/cat_source/es6/components/segments/SegmentSource.js +++ b/public/js/cat_source/es6/components/segments/SegmentSource.js @@ -1,5 +1,5 @@ import React, {createRef} from 'react' -import Immutable from 'immutable' +import {fromJS} from 'immutable' import {remove, cloneDeep, size, isUndefined} from 'lodash' import {CompositeDecorator, Editor, EditorState, Modifier} from 'draft-js' @@ -271,8 +271,8 @@ class SegmentSource extends React.Component { missingGlossaryItems && missingGlossaryItems.length > 0 && (isUndefined(prevMissingGlossaryItems) || - !Immutable.fromJS(prevMissingGlossaryItems).equals( - Immutable.fromJS(missingGlossaryItems), + !fromJS(prevMissingGlossaryItems).equals( + fromJS(missingGlossaryItems), )) ) { this.addQaCheckGlossaryDecorator() @@ -292,7 +292,7 @@ class SegmentSource extends React.Component { glossary && size(glossary) > 0 && (isUndefined(prevGlossary) || - !Immutable.fromJS(prevGlossary).equals(Immutable.fromJS(glossary)) || + !fromJS(prevGlossary).equals(fromJS(glossary)) || !prevActiveDecorators[DraftMatecatConstants.GLOSSARY_DECORATOR]) ) { activeDecorators[DraftMatecatConstants.GLOSSARY_DECORATOR] = true @@ -315,9 +315,7 @@ class SegmentSource extends React.Component { const lexiqaChanged = prevLexiqaSource && currentLexiqaSource && - !Immutable.fromJS(prevLexiqa.source).equals( - Immutable.fromJS(lexiqa.source), - ) + !fromJS(prevLexiqa.source).equals(fromJS(lexiqa.source)) if ( currentLexiqaSource && @@ -347,8 +345,8 @@ class SegmentSource extends React.Component { (!prevProps || // was not mounted !prevProps.segment.inSearch || //Before was not active (prevProps.segment.inSearch && - !Immutable.fromJS(prevProps.segment.searchParams).equals( - Immutable.fromJS(searchParams), + !fromJS(prevProps.segment.searchParams).equals( + fromJS(searchParams), )) || //Before was active but some params change (prevProps.segment.inSearch && prevProps.segment.currentInSearch !== currentInSearch) || //Before was the current diff --git a/public/js/cat_source/es6/components/segments/SegmentWarnings.js b/public/js/cat_source/es6/components/segments/SegmentWarnings.js index 022426f351..7e95075265 100644 --- a/public/js/cat_source/es6/components/segments/SegmentWarnings.js +++ b/public/js/cat_source/es6/components/segments/SegmentWarnings.js @@ -3,7 +3,7 @@ */ import React from 'react' -import Immutable from 'immutable' +import {fromJS} from 'immutable' import {forOwn} from 'lodash' class SegmentWarnings extends React.Component { @@ -17,9 +17,7 @@ class SegmentWarnings extends React.Component { componentWillUnmount() {} shouldComponentUpdate(nextProps) { - return !Immutable.fromJS(this.props.warnings).equals( - Immutable.fromJS(nextProps.warnings), - ) + return !fromJS(this.props.warnings).equals(fromJS(nextProps.warnings)) } render() { diff --git a/public/js/cat_source/es6/components/segments/SegmentsContainer.js b/public/js/cat_source/es6/components/segments/SegmentsContainer.js index c87df10e54..092398e88f 100644 --- a/public/js/cat_source/es6/components/segments/SegmentsContainer.js +++ b/public/js/cat_source/es6/components/segments/SegmentsContainer.js @@ -9,7 +9,7 @@ import React, { useState, } from 'react' import PropTypes from 'prop-types' -import Immutable from 'immutable' +import {fromJS} from 'immutable' import ReactDOMServer from 'react-dom/server' import {useHotkeys} from 'react-hotkeys-hook' import {Shortcuts} from '../../utils/shortcuts' @@ -146,7 +146,7 @@ function SegmentsContainer({isReview, startSegmentId, firstJobSegment}) { const {userInfo} = useContext(ApplicationWrapperContext) - const [segments, setSegments] = useState(Immutable.fromJS([])) + const [segments, setSegments] = useState(fromJS([])) const [rows, setRows] = useState([]) const [essentialRows, setEssentialRows] = useState([]) const [hasCachedRows, setHasCachedRows] = useState(false) diff --git a/public/js/cat_source/es6/components/segments/utils/DraftMatecatUtils/DraftSource/randomizeBlockMapKeys.js b/public/js/cat_source/es6/components/segments/utils/DraftMatecatUtils/DraftSource/randomizeBlockMapKeys.js index 4dad5fa1ac..ce2707ebc7 100644 --- a/public/js/cat_source/es6/components/segments/utils/DraftMatecatUtils/DraftSource/randomizeBlockMapKeys.js +++ b/public/js/cat_source/es6/components/segments/utils/DraftMatecatUtils/DraftSource/randomizeBlockMapKeys.js @@ -2,12 +2,10 @@ * Duplicated from draft-js - not part of the public API */ -import Immutable from 'immutable' +import {OrderedMap} from 'immutable' import {genKey} from 'draft-js' import ContentBlockNode from './src/model/immutable/ContentBlockNode' -const {OrderedMap} = Immutable - const randomizeContentBlockNodeKeys = (blockMap) => { const newKeysRef = {} diff --git a/public/js/cat_source/es6/components/segments/utils/DraftMatecatUtils/DraftSource/src/model/immutable/ContentBlockNode.js b/public/js/cat_source/es6/components/segments/utils/DraftMatecatUtils/DraftSource/src/model/immutable/ContentBlockNode.js index 3ba602ee91..817f73f393 100644 --- a/public/js/cat_source/es6/components/segments/utils/DraftMatecatUtils/DraftSource/src/model/immutable/ContentBlockNode.js +++ b/public/js/cat_source/es6/components/segments/utils/DraftMatecatUtils/DraftSource/src/model/immutable/ContentBlockNode.js @@ -9,9 +9,8 @@ */ import findRangesImmutable from './findRangesimmutable' -import Immutable from 'immutable' +import {List, Map, OrderedSet, Record, Repeat} from 'immutable' import {CharacterMetadata} from 'draft-js' -const {List, Map, OrderedSet, Record, Repeat} = Immutable const EMPTY_SET = OrderedSet() const defaultRecord = { diff --git a/public/js/cat_source/es6/components/segments/utils/DraftMatecatUtils/buildFragmentFromJson.js b/public/js/cat_source/es6/components/segments/utils/DraftMatecatUtils/buildFragmentFromJson.js index 42650ad55e..0334b3528c 100644 --- a/public/js/cat_source/es6/components/segments/utils/DraftMatecatUtils/buildFragmentFromJson.js +++ b/public/js/cat_source/es6/components/segments/utils/DraftMatecatUtils/buildFragmentFromJson.js @@ -1,9 +1,7 @@ import {ContentBlock, BlockMapBuilder, CharacterMetadata} from 'draft-js' -import Immutable from 'immutable' +import {OrderedMap, List, OrderedSet} from 'immutable' const buildFragmentFromJson = (fragmentObject) => { - const {OrderedMap, List, OrderedSet} = Immutable - //const fragmentContent = JSON.parse(text); const fragmentMap = OrderedMap(fragmentObject) diff --git a/public/js/cat_source/es6/pages/AnalyzePage.js b/public/js/cat_source/es6/pages/AnalyzePage.js index 0fba91b9f7..64be2bce65 100644 --- a/public/js/cat_source/es6/pages/AnalyzePage.js +++ b/public/js/cat_source/es6/pages/AnalyzePage.js @@ -2,12 +2,11 @@ import React, {useContext, useEffect, useRef, useState} from 'react' import UserStore from '../stores/UserStore' import Header from '../components/header/Header' import AnalyzeMain from '../components/analyze/AnalyzeMain' -import NotificationBox from '../components/notificationsComponent/NotificationBox' import {CookieConsent} from '../components/common/CookieConsent' import {getJobVolumeAnalysis} from '../api/getJobVolumeAnalysis' import {getProject} from '../api/getProject' import {getVolumeAnalysis} from '../api/getVolumeAnalysis' -import Immutable from 'immutable' +import {fromJS} from 'immutable' import {ANALYSIS_STATUS} from '../constants/Constants' import {mountPage} from './mountPage' import {ApplicationWrapperContext} from '../components/common/ApplicationWrapper' @@ -96,8 +95,8 @@ const AnalyzePage = () => {
diff --git a/public/js/cat_source/es6/pages/Dashboard.js b/public/js/cat_source/es6/pages/Dashboard.js index 9b60ef0fd8..ebf73744f2 100644 --- a/public/js/cat_source/es6/pages/Dashboard.js +++ b/public/js/cat_source/es6/pages/Dashboard.js @@ -1,5 +1,5 @@ import React from 'react' -import Immutable from 'immutable' +import {fromJS} from 'immutable' import {isEmpty} from 'lodash' import {debounce} from 'lodash/function' import ReactDOM, {flushSync} from 'react-dom' @@ -467,8 +467,8 @@ class Dashboard extends React.Component { {this.state.selectedTeam && this.state.teams ? ( diff --git a/public/js/cat_source/es6/stores/ProjectsStore.js b/public/js/cat_source/es6/stores/ProjectsStore.js index acd33c2dd0..9e6ea5cd95 100644 --- a/public/js/cat_source/es6/stores/ProjectsStore.js +++ b/public/js/cat_source/es6/stores/ProjectsStore.js @@ -6,7 +6,7 @@ import AppDispatcher from './AppDispatcher' import {EventEmitter} from 'events' import ManageConstants from '../constants/ManageConstants' import assign from 'object-assign' -import Immutable from 'immutable' +import {fromJS} from 'immutable' EventEmitter.prototype.setMaxListeners(0) @@ -14,7 +14,7 @@ const ProjectsStore = assign({}, EventEmitter.prototype, { projects: null, setProjects: function (projects) { - this.projects = Immutable.fromJS(projects) + this.projects = fromJS(projects) }, /** * Update all @@ -22,16 +22,16 @@ const ProjectsStore = assign({}, EventEmitter.prototype, { updateAll: function (projects) { /*this.projects = this.projects.mergeWith((oldProject, newProject, index) => { return (newProject.get('id') === newProject.get('id')) ? oldProject : newProject - },Immutable.fromJS(projects));*/ - // this.projects = this.projects.toSet().union(Immutable.fromJS(projects).toSet()).toList(); + },fromJS(projects));*/ + // this.projects = this.projects.toSet().union(fromJS(projects).toSet()).toList(); // - this.projects = Immutable.fromJS(projects) + this.projects = fromJS(projects) }, /** * Add Projects (pagination) */ addProjects: function (projects) { - this.projects = this.projects.concat(Immutable.fromJS(projects)) + this.projects = this.projects.concat(fromJS(projects)) }, removeProject: function (project) { @@ -149,7 +149,7 @@ const ProjectsStore = assign({}, EventEmitter.prototype, { let indexJob = project.get('jobs').indexOf(job) this.projects = this.projects.setIn( [indexProject, 'jobs', indexJob, 'outsource'], - Immutable.fromJS(outsource), + fromJS(outsource), ) } }, @@ -165,7 +165,7 @@ const ProjectsStore = assign({}, EventEmitter.prototype, { let indexJob = project.get('jobs').indexOf(job) this.projects = this.projects.setIn( [indexProject, 'jobs', indexJob, 'translator'], - Immutable.fromJS(translator), + fromJS(translator), ) }, @@ -181,7 +181,7 @@ const ProjectsStore = assign({}, EventEmitter.prototype, { // let url = config.hostpath + '/revise2/' + project.get('name') + '/'+ job.get('source') +'-'+ job.get('target') +'/'+ jobId +'-'+ secondPassPassword; this.projects = this.projects.setIn( [indexProject, 'jobs', indexJob, 'revise_passwords', 1], - Immutable.fromJS({revision_number: 2, password: secondPassPassword}), + fromJS({revision_number: 2, password: secondPassPassword}), ) }, @@ -206,8 +206,8 @@ AppDispatcher.register(function (action) { ProjectsStore.emitChange( action.actionType, ProjectsStore.projects, - Immutable.fromJS(action.team), - Immutable.fromJS(action.teams), + fromJS(action.team), + fromJS(action.teams), action.hideSpinner, action.filtering, ) @@ -217,7 +217,7 @@ AppDispatcher.register(function (action) { ProjectsStore.emitChange( action.actionType, ProjectsStore.projects, - Immutable.fromJS(action.teams), + fromJS(action.teams), action.hideSpinner, ) break @@ -315,10 +315,7 @@ AppDispatcher.register(function (action) { ) break case ManageConstants.HIDE_PROJECT: - ProjectsStore.emitChange( - action.actionType, - Immutable.fromJS(action.project), - ) + ProjectsStore.emitChange(action.actionType, fromJS(action.project)) break case ManageConstants.ENABLE_DOWNLOAD_BUTTON: case ManageConstants.DISABLE_DOWNLOAD_BUTTON: diff --git a/public/js/cat_source/es6/stores/QualityReportStore.js b/public/js/cat_source/es6/stores/QualityReportStore.js index 6f0ab01859..335188bbdc 100644 --- a/public/js/cat_source/es6/stores/QualityReportStore.js +++ b/public/js/cat_source/es6/stores/QualityReportStore.js @@ -1,6 +1,6 @@ import {EventEmitter} from 'events' import assign from 'object-assign' -import Immutable from 'immutable' +import {fromJS} from 'immutable' import {forEach} from 'lodash' import AppDispatcher from './AppDispatcher' @@ -9,9 +9,9 @@ import QRConstants from '../constants/QualityReportConstants' EventEmitter.prototype.setMaxListeners(0) let QualityReportStore = assign({}, EventEmitter.prototype, { - _segmentsFiles: Immutable.fromJS({}), - _files: Immutable.fromJS({}), - _jobInfo: Immutable.fromJS({}), + _segmentsFiles: fromJS({}), + _files: fromJS({}), + _jobInfo: fromJS({}), _lastSegment: null, storeSegments: function (segmentsData) { const files = {} @@ -22,8 +22,8 @@ let QualityReportStore = assign({}, EventEmitter.prototype, { : (segmentsFiles[segment.file.id] = [segment]) files[segment.file.id] = segment.file }) - this._segmentsFiles = Immutable.fromJS(segmentsFiles) - this._files = Immutable.fromJS(files) + this._segmentsFiles = fromJS(segmentsFiles) + this._files = fromJS(files) this._lastSegment = segmentsData.segments.length > 0 ? segmentsData._links.last_segment_id @@ -31,24 +31,21 @@ let QualityReportStore = assign({}, EventEmitter.prototype, { }, storeJobInfo: function (job) { - this._jobInfo = Immutable.fromJS(job) + this._jobInfo = fromJS(job) }, addSegments: function (segmentsData) { forEach(segmentsData.segments, (segment) => { const fileId = segment.file.id.toString() if (this._segmentsFiles.get(fileId)) { - let immFiles = Immutable.fromJS(segment) + let immFiles = fromJS(segment) this._segmentsFiles = this._segmentsFiles.set( fileId, this._segmentsFiles.get(fileId).push(immFiles), ) } else { - this._segmentsFiles = this._segmentsFiles.set( - fileId, - Immutable.fromJS([segment]), - ) - this._files = this._files.set(fileId, Immutable.fromJS(segment.file)) + this._segmentsFiles = this._segmentsFiles.set(fileId, fromJS([segment])) + this._files = this._files.set(fileId, fromJS(segment.file)) } }) this._lastSegment = segmentsData._links.last_segment_id diff --git a/public/js/cat_source/es6/stores/SegmentStore.js b/public/js/cat_source/es6/stores/SegmentStore.js index 2516f9d6a8..90dc09bd52 100644 --- a/public/js/cat_source/es6/stores/SegmentStore.js +++ b/public/js/cat_source/es6/stores/SegmentStore.js @@ -31,7 +31,7 @@ */ import {isUndefined, uniq, each} from 'lodash' import {EventEmitter} from 'events' -import Immutable from 'immutable' +import {fromJS} from 'immutable' import assign from 'object-assign' import AppDispatcher from './AppDispatcher' @@ -73,7 +73,7 @@ const normalizeSetUpdateGlossary = (terms) => { } const SegmentStore = assign({}, EventEmitter.prototype, { - _segments: Immutable.fromJS([]), + _segments: fromJS([]), _globalWarnings: { lexiqa: [], matecat: { @@ -92,7 +92,7 @@ const SegmentStore = assign({}, EventEmitter.prototype, { }, }, segmentsInBulk: [], - _footerTabsConfig: Immutable.fromJS({}), + _footerTabsConfig: fromJS({}), searchOccurrences: [], searchResultsDictionary: {}, currentInSearch: 0, @@ -112,16 +112,14 @@ const SegmentStore = assign({}, EventEmitter.prototype, { updateAll: function (segments, where) { if (this._segments.size > 0 && where === 'before') { this._segments = this._segments.unshift( - ...Immutable.fromJS(this.normalizeSplittedSegments(segments)), + ...fromJS(this.normalizeSplittedSegments(segments)), ) } else if (this._segments.size > 0 && where === 'after') { this._segments = this._segments.push( - ...Immutable.fromJS(this.normalizeSplittedSegments(segments)), + ...fromJS(this.normalizeSplittedSegments(segments)), ) } else { - this._segments = Immutable.fromJS( - this.normalizeSplittedSegments(segments), - ) + this._segments = fromJS(this.normalizeSplittedSegments(segments)) } if (this.segmentsInBulk.length > 0) { @@ -129,7 +127,7 @@ const SegmentStore = assign({}, EventEmitter.prototype, { } }, removeAllSegments: function () { - this._segments = Immutable.fromJS([]) + this._segments = fromJS([]) }, normalizeSplittedSegments: function (segments) { let newSegments = [] @@ -443,16 +441,10 @@ const SegmentStore = assign({}, EventEmitter.prototype, { versions[0].translation == '' ) { // TODO Remove this if - this._segments = this._segments.setIn( - [index, 'versions'], - Immutable.fromJS([]), - ) + this._segments = this._segments.setIn([index, 'versions'], fromJS([])) return this._segments.get(index) } - this._segments = this._segments.setIn( - [index, 'versions'], - Immutable.fromJS(versions), - ) + this._segments = this._segments.setIn([index, 'versions'], fromJS(versions)) return this._segments.get(index) }, addSegmentPreloadedIssues(sid, issues) { @@ -463,10 +455,7 @@ const SegmentStore = assign({}, EventEmitter.prototype, { versions.push({ issues: issues, }) - this._segments = this._segments.setIn( - [index, 'versions'], - Immutable.fromJS(versions), - ) + this._segments = this._segments.setIn([index, 'versions'], fromJS(versions)) return this._segments.get(index) }, lockUnlockEditArea(sid) { @@ -568,7 +557,7 @@ const SegmentStore = assign({}, EventEmitter.prototype, { if (index === -1) return this._segments = this._segments.setIn( [index, 'concordance'], - Immutable.fromJS(matches), + fromJS(matches), ) }, setContributionsToCache: function (sid, contributions, errors) { @@ -576,7 +565,7 @@ const SegmentStore = assign({}, EventEmitter.prototype, { if (index === -1) return this._segments = this._segments.setIn( [index, 'contributions'], - Immutable.fromJS({ + fromJS({ matches: contributions, errors: errors, }), @@ -590,7 +579,7 @@ const SegmentStore = assign({}, EventEmitter.prototype, { } else { this._segments = this._segments.setIn( [index, 'alternatives'], - Immutable.fromJS(alternatives), + fromJS(alternatives), ) } }, @@ -629,7 +618,7 @@ const SegmentStore = assign({}, EventEmitter.prototype, { this._segments = this._segments.setIn( [index, 'glossary'], - Immutable.fromJS( + fromJS( adaptedTerms.map((term) => ({ ...term, missingTerm: glossary.find(({term_id}) => term_id === term.term_id) @@ -651,7 +640,7 @@ const SegmentStore = assign({}, EventEmitter.prototype, { this._segments = this._segments.setIn( [index, 'glossary_search_results'], - Immutable.fromJS(terms ? terms : segment.get('glossary')), + fromJS(terms ? terms : segment.get('glossary')), ) }, deleteFromGlossary: function (sid, term) { @@ -665,7 +654,7 @@ const SegmentStore = assign({}, EventEmitter.prototype, { ) this._segments = this._segments.setIn( [index, 'glossary'], - Immutable.fromJS(updatedGlossary), + fromJS(updatedGlossary), ) this.setGlossarySearchToCache(sid) }, @@ -708,7 +697,7 @@ const SegmentStore = assign({}, EventEmitter.prototype, { this._segments = this._segments.setIn( [index, isGlossaryAlreadyExist ? 'glossary' : 'pendingGlossaryUpdates'], - Immutable.fromJS(updatedGlossary), + fromJS(updatedGlossary), ) this.setGlossarySearchToCache(sid, updatedGlossary) }, @@ -820,13 +809,10 @@ const SegmentStore = assign({}, EventEmitter.prototype, { setSegmentWarnings(sid, warning, tagMismatch) { let index = this.getSegmentIndex(sid) if (index === -1) return - this._segments = this._segments.setIn( - [index, 'warnings'], - Immutable.fromJS(warning), - ) + this._segments = this._segments.setIn([index, 'warnings'], fromJS(warning)) this._segments = this._segments.setIn( [index, 'tagMismatch'], - Immutable.fromJS(tagMismatch), + fromJS(tagMismatch), ) }, setQACheck(sid, data) { @@ -865,18 +851,15 @@ const SegmentStore = assign({}, EventEmitter.prototype, { if (type === 1) { this._segments = this._segments.setIn( [index, 'lexiqa', 'source'], - Immutable.fromJS(matches), + fromJS(matches), ) } else if (type === 2) { this._segments = this._segments.setIn( [index, 'lexiqa', 'target'], - Immutable.fromJS(matches), + fromJS(matches), ) } else { - this._segments = this._segments.setIn( - [index, 'lexiqa'], - Immutable.fromJS(matches), - ) + this._segments = this._segments.setIn([index, 'lexiqa'], fromJS(matches)) } }, updateGlobalWarnings: function (warnings) { diff --git a/public/js/cat_source/es6/stores/UserStore.js b/public/js/cat_source/es6/stores/UserStore.js index cb69834edd..879b1ab013 100644 --- a/public/js/cat_source/es6/stores/UserStore.js +++ b/public/js/cat_source/es6/stores/UserStore.js @@ -7,21 +7,21 @@ import {EventEmitter} from 'events' import ManageConstants from '../constants/ManageConstants' import UserConstants from '../constants/UserConstants' import assign from 'object-assign' -import Immutable from 'immutable' +import {fromJS} from 'immutable' EventEmitter.prototype.setMaxListeners(0) const UserStore = assign({}, EventEmitter.prototype, { - teams: Immutable.fromJS([]), + teams: fromJS([]), selectedTeam: {}, userInfo: null, updateTeams: function (teams) { - this.teams = Immutable.fromJS(teams) + this.teams = fromJS(teams) }, addTeam: function (team) { - this.teams = this.teams.concat(Immutable.fromJS([team])) + this.teams = this.teams.concat(fromJS([team])) }, updateUser: function (user) { this.userInfo = user @@ -36,7 +36,7 @@ const UserStore = assign({}, EventEmitter.prototype, { return org.get('id') == team.id }) let index = this.teams.indexOf(teamOld) - this.teams = this.teams.setIn([index], Immutable.fromJS(team)) + this.teams = this.teams.setIn([index], fromJS(team)) return this.teams.get(index) }, @@ -54,10 +54,10 @@ const UserStore = assign({}, EventEmitter.prototype, { return org.get('id') == team.get('id') }) let index = this.teams.indexOf(teamOld) - this.teams = this.teams.setIn([index, 'members'], Immutable.fromJS(members)) + this.teams = this.teams.setIn([index, 'members'], fromJS(members)) this.teams = this.teams.setIn( [index, 'pending_invitations'], - Immutable.fromJS(pendingInvitations), + fromJS(pendingInvitations), ) return this.teams.get(index) }, @@ -174,7 +174,7 @@ AppDispatcher.register(function (action) { case ManageConstants.OPEN_MODIFY_TEAM_MODAL: UserStore.emitChange( action.actionType, - Immutable.fromJS(action.team), + fromJS(action.team), action.hideChangeName, ) break diff --git a/yarn.lock b/yarn.lock index 82c7b7dee1..5a248503d3 100644 --- a/yarn.lock +++ b/yarn.lock @@ -2265,11 +2265,53 @@ resolved "https://registry.yarnpkg.com/@rtsao/scc/-/scc-1.1.0.tgz#927dd2fae9bc3361403ac2c7a00c32ddce9ad7e8" integrity sha512-zt6OdqaDoOnJ1ZYsCYGt9YmWzDXl4vQdKTyJev62gFhRGKdx7mcT54V9KIjg+d2wi9EXsPvAPKe7i7WjfVWB8g== +"@sentry-internal/feedback@7.120.2": + version "7.120.2" + resolved "https://registry.yarnpkg.com/@sentry-internal/feedback/-/feedback-7.120.2.tgz#90f4e84462fdf688ba15604bdbabeaf6def09b1a" + integrity sha512-AAKW/Qii2qFA/jIZc9HK/CgQLfJ/9zBCqC9FF3bUTnAxzZAbJHO1TLnHqDl5k5wYtt449NrpObHORpopSk7TBg== + dependencies: + "@sentry/core" "7.120.2" + "@sentry/types" "7.120.2" + "@sentry/utils" "7.120.2" + +"@sentry-internal/replay-canvas@7.120.2": + version "7.120.2" + resolved "https://registry.yarnpkg.com/@sentry-internal/replay-canvas/-/replay-canvas-7.120.2.tgz#49d97cb1093e355354a385b7926a326c37141a90" + integrity sha512-2Xm9rJxUA5/CCUYRHNH4VxG13eQpXvM05/cHQKn+pmjaPq/+3fbOHrZZM84gF1FSHjeN8Kg1igoMSekU2kavOQ== + dependencies: + "@sentry/core" "7.120.2" + "@sentry/replay" "7.120.2" + "@sentry/types" "7.120.2" + "@sentry/utils" "7.120.2" + +"@sentry-internal/tracing@7.120.2": + version "7.120.2" + resolved "https://registry.yarnpkg.com/@sentry-internal/tracing/-/tracing-7.120.2.tgz#6f46ff48116633639dbab37633242be4d8cda1f7" + integrity sha512-eo2F8cP6X+vr54Mp6vu+NoQEDz0M5O24Tz8jPY0T1CpiWdwCmHb7Sln+oLXeQ3/LlWdVQihBfKDBZfBdUfsBTg== + dependencies: + "@sentry/core" "7.120.2" + "@sentry/types" "7.120.2" + "@sentry/utils" "7.120.2" + "@sentry/babel-plugin-component-annotate@2.22.6": version "2.22.6" resolved "https://registry.yarnpkg.com/@sentry/babel-plugin-component-annotate/-/babel-plugin-component-annotate-2.22.6.tgz#829d6caf2c95c1c46108336de4e1049e6521435e" integrity sha512-V2g1Y1I5eSe7dtUVMBvAJr8BaLRr4CLrgNgtPaZyMT4Rnps82SrZ5zqmEkLXPumlXhLUWR6qzoMNN2u+RXVXfQ== +"@sentry/browser@^7.40.0": + version "7.120.2" + resolved "https://registry.yarnpkg.com/@sentry/browser/-/browser-7.120.2.tgz#381b55309e17212cf9724da46279362804606847" + integrity sha512-o5ll2Yv5MfnblbWxTvMlKK3RVXIbeJ+SPC+uw12b4j/pkrQg+/y7dyTLBXh6t0EgokSOsRUyYosQwSvxG/xs/Q== + dependencies: + "@sentry-internal/feedback" "7.120.2" + "@sentry-internal/replay-canvas" "7.120.2" + "@sentry-internal/tracing" "7.120.2" + "@sentry/core" "7.120.2" + "@sentry/integrations" "7.120.2" + "@sentry/replay" "7.120.2" + "@sentry/types" "7.120.2" + "@sentry/utils" "7.120.2" + "@sentry/bundler-plugin-core@2.22.6": version "2.22.6" resolved "https://registry.yarnpkg.com/@sentry/bundler-plugin-core/-/bundler-plugin-core-2.22.6.tgz#a1ea1fd43700a3ece9e7db016997e79a2782b87d" @@ -2338,6 +2380,46 @@ "@sentry/cli-win32-i686" "2.38.2" "@sentry/cli-win32-x64" "2.38.2" +"@sentry/core@7.120.2": + version "7.120.2" + resolved "https://registry.yarnpkg.com/@sentry/core/-/core-7.120.2.tgz#f3b14d18782120685404ec18ab44a14fc4c63234" + integrity sha512-eurLBFQJC7WWWYoEna25Z9I/GJjqAmH339tv52XP8sqXV7B5hRcHDcfrsT/UGHpU316M24p3lWhj0eimtCZ0SQ== + dependencies: + "@sentry/types" "7.120.2" + "@sentry/utils" "7.120.2" + +"@sentry/integrations@7.120.2": + version "7.120.2" + resolved "https://registry.yarnpkg.com/@sentry/integrations/-/integrations-7.120.2.tgz#72daaf593bca5cd1c7cbea260c24e7f43942c6c2" + integrity sha512-bMvL2fD3TGLM5YAUoQ2Qz6bYeVU8f7YRFNSjKNxK4EbvFgAU9j1FD6EKg0V0RNOJYnJjGIZYMmcWTXBbVTJL6w== + dependencies: + "@sentry/core" "7.120.2" + "@sentry/types" "7.120.2" + "@sentry/utils" "7.120.2" + localforage "^1.8.1" + +"@sentry/replay@7.120.2": + version "7.120.2" + resolved "https://registry.yarnpkg.com/@sentry/replay/-/replay-7.120.2.tgz#5379e1750aa9c5006d8b801d5a97379acde6f50d" + integrity sha512-UAw0anHwXeej0Rfx+7qZVbRb3rj3mQ0DuHqdpPTSd9WpfRGOvCfthMIKD7rfHX7GjMnPMgdmsaU8K3lpe60h+w== + dependencies: + "@sentry-internal/tracing" "7.120.2" + "@sentry/core" "7.120.2" + "@sentry/types" "7.120.2" + "@sentry/utils" "7.120.2" + +"@sentry/types@7.120.2": + version "7.120.2" + resolved "https://registry.yarnpkg.com/@sentry/types/-/types-7.120.2.tgz#de9e96fb64accfe5a6e4ada79b1bf366629d0f14" + integrity sha512-FWVoiblHQJ892GaOqdXx/5/n5XDLF28z81vJ0lCY49PMh8waz8LJ0b9RSmt9tasSDl0OQ7eUlPl1xu1jTrv1NA== + +"@sentry/utils@7.120.2": + version "7.120.2" + resolved "https://registry.yarnpkg.com/@sentry/utils/-/utils-7.120.2.tgz#931da4f7989a4e78c4f7c0607f47f9d85461a1b8" + integrity sha512-jgnQlw11mRfQrQRAXbq4zEd+tbYwHel5eqeS/oU6EImXRjmHNtS79nB8MHvJeQu1FMCpFs1Ymrrs5FICwS6VeQ== + dependencies: + "@sentry/types" "7.120.2" + "@sentry/webpack-plugin@2.22.6": version "2.22.6" resolved "https://registry.yarnpkg.com/@sentry/webpack-plugin/-/webpack-plugin-2.22.6.tgz#8c9d27d5cd89153a5b6e08cc9dcb3048b122ffbc" @@ -3489,7 +3571,7 @@ commander@^10.0.1: resolved "https://registry.yarnpkg.com/commander/-/commander-10.0.1.tgz#881ee46b4f77d1c1dccc5823433aa39b022cbe06" integrity sha512-y4Mg2tXshplEbSGzx7amzPwKKOCGuoSRP/CjEdwwk0FOGlUbq6lKuoyDZTNZkmxHdJtp54hdfY/JUrdL7Xfdug== -commander@^2.20.0: +commander@^2.20.0, commander@^2.20.3: version "2.20.3" resolved "https://registry.yarnpkg.com/commander/-/commander-2.20.3.tgz#fd485e84c03eb4881c20722ba48035e8531aeb33" integrity sha512-GpVkmM8vF2vQUkj2LvZmD35JxeJOLCwJ9cUkugyk2nuhbv3+mJvpLYYt+0+USMxE+oj+ey/lJEnhZw75x/OMcQ== @@ -3499,6 +3581,11 @@ commander@^8.3.0: resolved "https://registry.yarnpkg.com/commander/-/commander-8.3.0.tgz#4837ea1b2da67b9c616a67afbb0fafee567bca66" integrity sha512-OkTL9umf+He2DZkUq8f8J9of7yL6RJKI24dVITBmNfZBmri9zYZQrKkuXiKhyfPSu8tUhnVBB1iKXevvnlR4Ww== +commander@^9.0.0: + version "9.5.0" + resolved "https://registry.yarnpkg.com/commander/-/commander-9.5.0.tgz#bc08d1eb5cedf7ccb797a96199d41c7bc3e60d30" + integrity sha512-KRs7WVDKg86PWiuAqhDrAQnTXZKraVcCc6vFdL14qrZ/DcWwuRo7VoiYXalXO7S5GKpqYiVEwCbgFDfxNHKJBQ== + commander@~12.1.0: version "12.1.0" resolved "https://registry.yarnpkg.com/commander/-/commander-12.1.0.tgz#01423b36f501259fdaac4d0e4d60c96c991585d3" @@ -3536,6 +3623,11 @@ core-js-compat@^3.38.0, core-js-compat@^3.38.1: dependencies: browserslist "^4.24.2" +core-js@^3.38.1: + version "3.39.0" + resolved "https://registry.yarnpkg.com/core-js/-/core-js-3.39.0.tgz#57f7647f4d2d030c32a72ea23a0555b2eaa30f83" + integrity sha512-raM0ew0/jJUqkJ0E6e8UDtl+y/7ktFivgWvqw8dNSQeNWoSDLvQ1H/RN3aPXB9tBd4/FhyR4RDPGhsNIMsAn7g== + core-js@^3.6.4: version "3.35.1" resolved "https://registry.yarnpkg.com/core-js/-/core-js-3.35.1.tgz#9c28f8b7ccee482796f8590cc8d15739eaaf980c" @@ -3610,6 +3702,11 @@ cssesc@^3.0.0: resolved "https://registry.yarnpkg.com/cssesc/-/cssesc-3.0.0.tgz#37741919903b868565e1c09ea747445cd18983ee" integrity sha512-/Tb/JcjK111nNScGob5MNtsntNM1aCNUDipB/TkwZFhyDrrE47SOx/18wF2bbjgc3ZzCSKW1T5nt5EbFoAz/Vg== +cssfilter@0.0.10: + version "0.0.10" + resolved "https://registry.yarnpkg.com/cssfilter/-/cssfilter-0.0.10.tgz#c6d2672632a2e5c83e013e6864a42ce8defd20ae" + integrity sha512-FAaLDaplstoRsDR8XGYH51znUN0UY7nMc6Z9/fvE8EXGwvJE9hu7W2vHwx1+bd6gCYnln9nLbzxFTrcO9YQDZw== + cssom@^0.5.0: version "0.5.0" resolved "https://registry.yarnpkg.com/cssom/-/cssom-0.5.0.tgz#d254fa92cd8b6fbd83811b9fbaed34663cc17c36" @@ -4508,6 +4605,11 @@ fbjs@^3.0.0, fbjs@^3.0.1: setimmediate "^1.0.5" ua-parser-js "^1.0.35" +fflate@^0.4.8: + version "0.4.8" + resolved "https://registry.yarnpkg.com/fflate/-/fflate-0.4.8.tgz#f90b82aefbd8ac174213abb338bd7ef848f0f5ae" + integrity sha512-FJqqoDBR00Mdj9ppamLa/Y7vxm+PRmNWA67N846RvsoYVMKB4q3y/de5PA7gUmRMYK/8CMz2GDZQmCRN1wBcWA== + file-entry-cache@^6.0.1: version "6.0.1" resolved "https://registry.yarnpkg.com/file-entry-cache/-/file-entry-cache-6.0.1.tgz#211b2dd9659cb0394b073e7323ac3c933d522027" @@ -4981,6 +5083,11 @@ ignore@^5.2.0: resolved "https://registry.yarnpkg.com/ignore/-/ignore-5.3.2.tgz#3cd40e729f3643fd87cb04e50bf0eb722bc596f5" integrity sha512-hsBTNUqQTDwkWtcdYI2i06Y/nUBEsNEDJKjWdigLvegy8kDuJAS8uRlpkkcQpyEXL0Z/pjDy5HBmMjRCJ2gq+g== +immediate@~3.0.5: + version "3.0.6" + resolved "https://registry.yarnpkg.com/immediate/-/immediate-3.0.6.tgz#9db1dbd0faf8de6fbe0f5dd5e56bb606280de69b" + integrity sha512-XXOFtyqDjNDAQxVfYxuF7g9Il/IbWmmlQg2MYKOH8ExIT1qg6xc4zyS3HaEEATgs1btfzxq15ciUiY7gjSXRGQ== + immutability-helper@^3.1.1: version "3.1.1" resolved "https://registry.yarnpkg.com/immutability-helper/-/immutability-helper-3.1.1.tgz#2b86b2286ed3b1241c9e23b7b21e0444f52f77b7" @@ -5950,6 +6057,13 @@ levn@^0.4.1: prelude-ls "^1.2.1" type-check "~0.4.0" +lie@3.1.1: + version "3.1.1" + resolved "https://registry.yarnpkg.com/lie/-/lie-3.1.1.tgz#9a436b2cc7746ca59de7a41fa469b3efb76bd87e" + integrity sha512-RiNhHysUjhrDQntfYSfY4MU24coXXdEOgw9WGcKHNeEwffDYbF//u87M1EWaMGzuFoSbqW0C9C6lEEhDOAswfw== + dependencies: + immediate "~3.0.5" + lilconfig@^2.0.5: version "2.1.0" resolved "https://registry.yarnpkg.com/lilconfig/-/lilconfig-2.1.0.tgz#78e23ac89ebb7e1bfbf25b18043de756548e7f52" @@ -6003,6 +6117,13 @@ loader-utils@^3.2.0: resolved "https://registry.yarnpkg.com/loader-utils/-/loader-utils-3.3.1.tgz#735b9a19fd63648ca7adbd31c2327dfe281304e5" integrity sha512-FMJTLMXfCLMLfJxcX9PFqX5qD88Z5MRGaZCVzfuqeZSPsyiBzs+pahDQjbIWz2QIzPZz0NX9Zy4FX3lmK6YHIg== +localforage@^1.8.1: + version "1.10.0" + resolved "https://registry.yarnpkg.com/localforage/-/localforage-1.10.0.tgz#5c465dc5f62b2807c3a84c0c6a1b1b3212781dd4" + integrity sha512-14/H1aX7hzBBmmh7sGPd+AOMkkIrHM3Z1PAyGgZigA1H1p5O5ANnMyWzvpAETtG68/dC4pC0ncy3+PPGzXZHPg== + dependencies: + lie "3.1.1" + locate-path@^5.0.0: version "5.0.0" resolved "https://registry.yarnpkg.com/locate-path/-/locate-path-5.0.0.tgz#1afba396afd676a6d42504d0a67a3a7eb9f62aa0" @@ -6715,6 +6836,21 @@ postcss@^8.4.33: picocolors "^1.0.0" source-map-js "^1.0.2" +posthog-js@^1.57.2: + version "1.202.2" + resolved "https://registry.yarnpkg.com/posthog-js/-/posthog-js-1.202.2.tgz#dc1167b2563bb91371887d7305d40e727b1f04a1" + integrity sha512-9p7dAWuCfoM0WrasubGwtC8i38HU3iMqK3gd0mhyAoTrEVMVozTQq64Toc2VEv8H69NGNn6ikk5t2LclHT9XFA== + dependencies: + core-js "^3.38.1" + fflate "^0.4.8" + preact "^10.19.3" + web-vitals "^4.2.0" + +preact@^10.19.3: + version "10.25.3" + resolved "https://registry.yarnpkg.com/preact/-/preact-10.25.3.tgz#22dfb072b088dda9a2bc6d4ca41bf46b588d325e" + integrity sha512-dzQmIFtM970z+fP9ziQ3yG4e3ULIbwZzJ734vaMVUTaKQ2+Ru1Ou/gjshOYVHCcd1rpAelC6ngjvjDXph98unQ== + prelude-ls@^1.2.1: version "1.2.1" resolved "https://registry.yarnpkg.com/prelude-ls/-/prelude-ls-1.2.1.tgz#debc6489d7a6e6b0e7611888cec880337d316396" @@ -7331,6 +7467,13 @@ shebang-regex@^3.0.0: resolved "https://registry.yarnpkg.com/shebang-regex/-/shebang-regex-3.0.0.tgz#ae16f1644d873ecad843b0307b143362d4c42172" integrity sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A== +showdown@^2.0.0: + version "2.1.0" + resolved "https://registry.yarnpkg.com/showdown/-/showdown-2.1.0.tgz#1251f5ed8f773f0c0c7bfc8e6fd23581f9e545c5" + integrity sha512-/6NVYu4U819R2pUIk79n67SYgJHWCce0a5xTP979WbNp0FL9MN1I1QK662IDU1b6JzKTvmhgI7T7JYIxBi3kMQ== + dependencies: + commander "^9.0.0" + side-channel@^1.0.4, side-channel@^1.0.6: version "1.0.6" resolved "https://registry.yarnpkg.com/side-channel/-/side-channel-1.0.6.tgz#abd25fb7cd24baf45466406b1096b7831c9215f2" @@ -8020,6 +8163,11 @@ watchpack@^2.4.1: glob-to-regexp "^0.4.1" graceful-fs "^4.1.2" +web-vitals@^4.2.0: + version "4.2.4" + resolved "https://registry.yarnpkg.com/web-vitals/-/web-vitals-4.2.4.tgz#1d20bc8590a37769bd0902b289550936069184b7" + integrity sha512-r4DIlprAGwJ7YM11VZp4R884m0Vmgr6EAKe3P+kO0PPj3Unqyvv59rczf6UiGcb9Z8QxZVcqKNwv/g0WNdWwsw== + webidl-conversions@^3.0.0: version "3.0.1" resolved "https://registry.yarnpkg.com/webidl-conversions/-/webidl-conversions-3.0.1.tgz#24534275e2a7bc6be7bc86611cc16ae0a5654871" @@ -8260,6 +8408,14 @@ xmlchars@^2.2.0: resolved "https://registry.yarnpkg.com/xmlchars/-/xmlchars-2.2.0.tgz#060fe1bcb7f9c76fe2a17db86a9bc3ab894210cb" integrity sha512-JZnDKK8B0RCDw84FNdDAIpZK+JuJw+s7Lz8nksI7SIuU3UXJJslUthsi+uWBUYOwPFwW7W7PRLRfUKpxjtjFCw== +xss@^1.0.8: + version "1.0.15" + resolved "https://registry.yarnpkg.com/xss/-/xss-1.0.15.tgz#96a0e13886f0661063028b410ed1b18670f4e59a" + integrity sha512-FVdlVVC67WOIPvfOwhoMETV72f6GbW7aOabBC3WxN/oUdoEMDyLz4OgRv5/gck2ZeNqEQu+Tb0kloovXOfpYVg== + dependencies: + commander "^2.20.3" + cssfilter "0.0.10" + y18n@^5.0.5: version "5.0.8" resolved "https://registry.yarnpkg.com/y18n/-/y18n-5.0.8.tgz#7f4934d0f7ca8c56f95314939ddcd2dd91ce1d55"