From abb55d81d3aa7e923955a47f06ef7470a00e62b1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Th=C3=A9o=20Poizat?= Date: Tue, 7 Apr 2026 13:36:51 +0200 Subject: [PATCH 1/2] fix(cozy-ui-plus): Wrong import for FilePicker --- packages/cozy-ui-plus/src/FilePicker/FilePickerBody.jsx | 4 ++-- packages/cozy-ui-plus/src/FilePicker/index.jsx | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/cozy-ui-plus/src/FilePicker/FilePickerBody.jsx b/packages/cozy-ui-plus/src/FilePicker/FilePickerBody.jsx index 14dad5569c..3e571653fa 100644 --- a/packages/cozy-ui-plus/src/FilePicker/FilePickerBody.jsx +++ b/packages/cozy-ui-plus/src/FilePicker/FilePickerBody.jsx @@ -3,11 +3,11 @@ import React, { useCallback } from 'react' import { models, useQuery } from 'cozy-client' import List from 'cozy-ui/transpiled/react/List' +import LoadMore from 'cozy-ui/transpiled/react/LoadMore' import FilePickerBodyItem from './FilePickerBodyItem' -import { buildContentFolderQuery } from './queries' -import LoadMore from '../LoadMore' import { isValidFile } from './helpers' +import { buildContentFolderQuery } from './queries' const { file: { isDirectory } diff --git a/packages/cozy-ui-plus/src/FilePicker/index.jsx b/packages/cozy-ui-plus/src/FilePicker/index.jsx index ce6ca87fae..a657a4b650 100644 --- a/packages/cozy-ui-plus/src/FilePicker/index.jsx +++ b/packages/cozy-ui-plus/src/FilePicker/index.jsx @@ -8,7 +8,7 @@ import { makeStyles } from 'cozy-ui/transpiled/react/styles' import FilePickerBody from './FilePickerBody' import FilePickerFooter from './FilePickerFooter' import FilePickerHeader from './FilePickerHeader' -import { getCompliantTypes } from '../helpers' +import { getCompliantTypes } from './helpers' const useStyles = makeStyles(() => ({ paper: { From a6536d5cd059badc46d160ea8fa1f86d68c28e97 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Th=C3=A9o=20Poizat?= Date: Tue, 7 Apr 2026 13:40:22 +0200 Subject: [PATCH 2/2] feat(cozy-ui-plus): Set cozy-interapp in peerDep An old version of cozy-interapp was hardcoded in cozy-ui-plus making IntentDialogOpener unable to return a result. Let's set it as peerDep as our other internal deps. BREAKING CHANGE: You need cozy-interapp >= 0.17.1 --- packages/cozy-ui-plus/package.json | 3 ++- yarn.lock | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/packages/cozy-ui-plus/package.json b/packages/cozy-ui-plus/package.json index b1327b0e04..bee93653b1 100644 --- a/packages/cozy-ui-plus/package.json +++ b/packages/cozy-ui-plus/package.json @@ -35,6 +35,7 @@ "cozy-client": "^60.21.3", "cozy-device-helper": "2.0.0", "cozy-intent": "^2.31.1", + "cozy-interapp": "^0.17.1", "cozy-logger": "^1.18.1", "cozy-stack-client": "^60.21.1", "cozy-ui": "^138.1.0", @@ -52,7 +53,6 @@ }, "dependencies": { "classnames": "^2.5.1", - "cozy-interapp": "^0.5.4", "filesize": "8.0.7", "final-form": "4.20.9", "final-form-arrays": "3.1.0", @@ -67,6 +67,7 @@ "cozy-client": ">=60.21.3", "cozy-device-helper": ">=2.0.0", "cozy-intent": ">=2.30.0", + "cozy-interapp": ">=0.17.1", "cozy-logger": ">=1.17.0", "cozy-ui": ">=138.1.0", "react": "^16 || ^17 || ^18", diff --git a/yarn.lock b/yarn.lock index a2e5fbef67..c5ba6360e3 100644 --- a/yarn.lock +++ b/yarn.lock @@ -18241,7 +18241,7 @@ __metadata: cozy-client: "npm:^60.21.3" cozy-device-helper: "npm:2.0.0" cozy-intent: "npm:^2.31.1" - cozy-interapp: "npm:^0.5.4" + cozy-interapp: "npm:^0.17.1" cozy-logger: "npm:^1.18.1" cozy-stack-client: "npm:^60.21.1" cozy-ui: "npm:^138.1.0" @@ -18269,6 +18269,7 @@ __metadata: cozy-client: ">=60.21.3" cozy-device-helper: ">=2.0.0" cozy-intent: ">=2.30.0" + cozy-interapp: ">=0.17.1" cozy-logger: ">=1.17.0" cozy-ui: ">=138.1.0" react: ^16 || ^17 || ^18