From 9c2c8390d047040993687d1b24c7d16a908651b7 Mon Sep 17 00:00:00 2001 From: AlexisG Date: Thu, 6 Jun 2024 10:51:39 +0200 Subject: [PATCH] feat: Upgrade cozy-sharing peerDeps BREAKING CHANGE: you must have `cozy-sharing >= 14.1.0` --- package.json | 4 +- react/Viewer/Footer/Sharing.jsx | 2 +- yarn.lock | 72 ++++++++++++++++++--------------- 3 files changed, 42 insertions(+), 36 deletions(-) diff --git a/package.json b/package.json index 5b7e02fb23..c39f315b83 100644 --- a/package.json +++ b/package.json @@ -97,7 +97,7 @@ "cozy-harvest-lib": "^6.7.3", "cozy-intent": "1.16.1", "cozy-logger": "^1.9.0", - "cozy-sharing": "^3.10.0", + "cozy-sharing": "^14.1.0", "cozy-stack-client": "^47.4.0", "css-loader": "0.28.11", "cssnano": "4.1.11", @@ -185,7 +185,7 @@ "cozy-device-helper": "^2.0.0", "cozy-harvest-lib": "^6.7.3", "cozy-intent": ">=1.3.0", - "cozy-sharing": "^3.10.0", + "cozy-sharing": ">=14.1.0", "puppeteer": "^1.20.0", "react": "^16.8.6", "react-dom": "^16.8.6" diff --git a/react/Viewer/Footer/Sharing.jsx b/react/Viewer/Footer/Sharing.jsx index 3097d34b49..2488b3841d 100644 --- a/react/Viewer/Footer/Sharing.jsx +++ b/react/Viewer/Footer/Sharing.jsx @@ -20,7 +20,7 @@ const Sharing = ({ file, variant }) => { ) : ( setShowShareModal(true)} diff --git a/yarn.lock b/yarn.lock index 1e00ba2be7..bc7c38b372 100644 --- a/yarn.lock +++ b/yarn.lock @@ -5962,11 +5962,6 @@ copy-descriptor@^0.1.0: resolved "https://registry.yarnpkg.com/copy-descriptor/-/copy-descriptor-0.1.1.tgz#676f6eb3c39997c2ee1ac3a924fd6124748f578d" integrity sha1-Z29us8OZl8LuGsOpJP1hJHSPV40= -copy-text-to-clipboard@^2.1.1: - version "2.2.0" - resolved "https://registry.yarnpkg.com/copy-text-to-clipboard/-/copy-text-to-clipboard-2.2.0.tgz#329dd6daf8c42034c763ace567418401764579ae" - integrity sha512-WRvoIdnTs1rgPMkgA2pUOa/M4Enh2uzCwdKsOMYNAJiz/4ZvEJgmbF4OmninPmlFdAWisfeh0tH+Cpf7ni3RqQ== - copy-webpack-plugin@^5.1.0: version "5.1.2" resolved "https://registry.yarnpkg.com/copy-webpack-plugin/-/copy-webpack-plugin-5.1.2.tgz#8a889e1dcafa6c91c6cd4be1ad158f1d3823bae2" @@ -6119,10 +6114,10 @@ cozy-device-helper@2.0.0: dependencies: lodash "^4.17.19" -cozy-device-helper@^1.12.0: - version "1.18.0" - resolved "https://registry.yarnpkg.com/cozy-device-helper/-/cozy-device-helper-1.18.0.tgz#45b37e68c30ec1104c8c40180b472d3662bc2534" - integrity sha512-/s9X5oUH/Fpu3NKx1RS5T/iYzpfOlBD3tRGGsjth4VDYhqATlApUZLghmzvFvskEeC4eCAvNYfEkyo9UPrZbFQ== +cozy-device-helper@^3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/cozy-device-helper/-/cozy-device-helper-3.0.0.tgz#c6316b7877c48ba9b343f80b13275b42027717bc" + integrity sha512-dkwQ8I0B2TiGs6MDdvSWOJKHMUwTHJegr67E3hpsupy5G9Z52dyjYtbK6bfoj0ykhit15fVI7bi8ivDyoM1oRg== dependencies: lodash "^4.17.19" @@ -6137,6 +6132,17 @@ cozy-doctypes@^1.82.3: lodash "^4.17.19" prop-types "^15.7.2" +cozy-doctypes@^1.90.0: + version "1.90.0" + resolved "https://registry.yarnpkg.com/cozy-doctypes/-/cozy-doctypes-1.90.0.tgz#6ac69043d45be910c27cb0793a3e45e1a96b91de" + integrity sha512-H/T+FD6ufD3YC/L22GBcDBd3C5j5POBuwHO860AjcVSWNDaKwFIat/LyDKjqDhPXEzo7ZgXgLEFw3KQzpC7yVw== + dependencies: + cozy-logger "^1.10.4" + date-fns "^1.30.1" + es6-promise-pool "^2.5.0" + lodash "^4.17.19" + prop-types "^15.7.2" + cozy-flags@^2.10.1: version "2.10.1" resolved "https://registry.yarnpkg.com/cozy-flags/-/cozy-flags-2.10.1.tgz#aee640dc21d75b067ea1cd020e3e4e5c24922b18" @@ -6175,6 +6181,14 @@ cozy-interapp@^0.5.4: resolved "https://registry.yarnpkg.com/cozy-interapp/-/cozy-interapp-0.5.7.tgz#75cafe1732ad660e2caf1ccf412f302594705f39" integrity sha512-laIL/ATYV9oZnmqS+LMoO9qzk8XjJ1v2/YrA1Po2rI8ia/MDgjYO07424x2RuvHhNOBPGjD+JmqwQ0rNDlLW+Q== +cozy-logger@^1.10.4: + version "1.10.4" + resolved "https://registry.yarnpkg.com/cozy-logger/-/cozy-logger-1.10.4.tgz#8a55a0b1fc23db9cf90524043d959c274d376c24" + integrity sha512-zDpG+edSqghx6HAIh6wIWmqQ49IX85anv+Y4P5pjHs4w697n5yI13UzhW7NczhFlflVF9ibxeKXqBNYvb4DW+Q== + dependencies: + chalk "^2.4.2" + json-stringify-safe "5.0.1" + cozy-logger@^1.3.0, cozy-logger@^1.7.0: version "1.7.0" resolved "https://registry.yarnpkg.com/cozy-logger/-/cozy-logger-1.7.0.tgz#945ff84df66f7e7e9640db00f8c632d4ff776fc8" @@ -6191,18 +6205,17 @@ cozy-logger@^1.9.0: chalk "^2.4.2" json-stringify-safe "5.0.1" -cozy-sharing@^3.10.0: - version "3.10.0" - resolved "https://registry.yarnpkg.com/cozy-sharing/-/cozy-sharing-3.10.0.tgz#b82522118da08c754fc7454d4ff73a67ef2b3b2b" - integrity sha512-eiQBQKngn3tMQxtqgxRKLCni0wVKAU2jqvkVrfhgsuPrUbzoff1u/Fxt3QHDwvySY696laHYEPpAy8fzPGz3lQ== +cozy-sharing@^14.1.0: + version "14.1.0" + resolved "https://registry.yarnpkg.com/cozy-sharing/-/cozy-sharing-14.1.0.tgz#60aa6751a15afba846130d9668de2fb550091b59" + integrity sha512-jOcSkKup5yHRx5jZAnj1fw/CXc0Px7mlIvt4ShDnU2xs7BmAlRHRTbUQVlmiDZ+qcMN4lfBsg/eE1NKWiPzo3g== dependencies: "@cozy/minilog" "^1.0.0" classnames "^2.2.6" - copy-text-to-clipboard "^2.1.1" - cozy-device-helper "^1.12.0" - cozy-doctypes "^1.82.3" + cozy-device-helper "^3.0.0" + cozy-doctypes "^1.90.0" lodash "^4.17.19" - react-autosuggest "^9.4.3" + react-autosuggest "^10.1.0" react-tooltip "^3.11.1" snarkdown "^2.0.0" @@ -16214,7 +16227,7 @@ prop-types-exact@^1.2.0: object.assign "^4.1.0" reflect.ownkeys "^0.2.0" -prop-types@15.7.2, prop-types@^15.5.10, prop-types@^15.5.4, prop-types@^15.5.8, prop-types@^15.6.0, prop-types@^15.6.1, prop-types@^15.6.2, prop-types@^15.7.2: +prop-types@15.7.2, prop-types@^15.5.4, prop-types@^15.5.8, prop-types@^15.6.0, prop-types@^15.6.1, prop-types@^15.6.2, prop-types@^15.7.2: version "15.7.2" resolved "https://registry.yarnpkg.com/prop-types/-/prop-types-15.7.2.tgz#52c41e75b8c87e72b9d9360e0206b99dcbffa6c5" integrity sha512-8QQikdH7//R2vurIJSutZ1smHYTcLpRWEOlHnzcWHmBYrOGUysKwSsrC89BCiFj3CbrfJ/nXFdJepOVrY1GCHQ== @@ -16536,23 +16549,16 @@ rc@1.2.8, rc@^1.0.1, rc@^1.1.6, rc@^1.2.7, rc@^1.2.8: minimist "^1.2.0" strip-json-comments "~2.0.1" -react-autosuggest@^9.4.3: - version "9.4.3" - resolved "https://registry.yarnpkg.com/react-autosuggest/-/react-autosuggest-9.4.3.tgz#eb46852422a48144ab9f39fb5470319222f26c7c" - integrity sha512-wFbp5QpgFQRfw9cwKvcgLR8theikOUkv8PFsuLYqI2PUgVlx186Cz8MYt5bLxculi+jxGGUUVt+h0esaBZZouw== - dependencies: - prop-types "^15.5.10" - react-autowhatever "^10.1.2" - shallow-equal "^1.0.0" - -react-autowhatever@^10.1.2: - version "10.2.1" - resolved "https://registry.yarnpkg.com/react-autowhatever/-/react-autowhatever-10.2.1.tgz#a6d421dc6135173efedc249ab7216e4f5b691bcc" - integrity sha512-5gQyoETyBH6GmuW1N1J81CuoAV+Djeg66DEo03xiZOl3WOwJHBP5LisKUvCGOakjrXU4M3hcIvCIqMBYGUmqOA== +react-autosuggest@^10.1.0: + version "10.1.0" + resolved "https://registry.yarnpkg.com/react-autosuggest/-/react-autosuggest-10.1.0.tgz#4d25b8acc78bb518eb70189bb96bcd777dc71ffb" + integrity sha512-/azBHmc6z/31s/lBf6irxPf/7eejQdR0IqnZUzjdSibtlS8+Rw/R79pgDAo6Ft5QqCUTyEQ+f0FhL+1olDQ8OA== dependencies: - prop-types "^15.5.8" + es6-promise "^4.2.8" + prop-types "^15.7.2" react-themeable "^1.1.0" section-iterator "^2.0.0" + shallow-equal "^1.2.1" react-chartjs-2@4.1.0: version "4.1.0" @@ -18474,7 +18480,7 @@ shallow-clone@^0.1.2: lazy-cache "^0.2.3" mixin-object "^2.0.1" -shallow-equal@^1.0.0, shallow-equal@^1.2.1: +shallow-equal@^1.2.1: version "1.2.1" resolved "https://registry.yarnpkg.com/shallow-equal/-/shallow-equal-1.2.1.tgz#4c16abfa56043aa20d050324efa68940b0da79da" integrity sha512-S4vJDjHHMBaiZuT9NPb616CSmLf618jawtv3sufLl6ivK8WocjAo58cXwbRV1cgqxH0Qbv+iUt6m05eqEa2IRA==