From 19d401200d5d7bc818d9d11b3d15d249690db35b Mon Sep 17 00:00:00 2001 From: reneshen0328 Date: Mon, 3 Nov 2025 12:10:27 -0800 Subject: [PATCH] fix(content-sharing): Shared link modal and collaborators --- package.json | 4 ++-- src/elements/content-sharing/hooks/useSharingService.ts | 4 ++-- yarn.lock | 8 ++++---- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/package.json b/package.json index b4a05d23b6..36f3023f68 100644 --- a/package.json +++ b/package.json @@ -140,7 +140,7 @@ "@box/metadata-view": "^0.59.0", "@box/react-virtualized": "^9.22.3-rc-box.10", "@box/types": "^0.2.1", - "@box/unified-share-modal": "^1.5.1", + "@box/unified-share-modal": "^1.7.1", "@box/user-selector": "^1.23.25", "@cfaester/enzyme-adapter-react-18": "^0.8.0", "@chromatic-com/storybook": "^4.0.1", @@ -310,7 +310,7 @@ "@box/metadata-view": "^0.59.0", "@box/react-virtualized": "^9.22.3-rc-box.10", "@box/types": "^0.2.1", - "@box/unified-share-modal": "^1.5.1", + "@box/unified-share-modal": "^1.7.1", "@box/user-selector": "^1.23.25", "@hapi/address": "^2.1.4", "@tanstack/react-virtual": "^3.13.12", diff --git a/src/elements/content-sharing/hooks/useSharingService.ts b/src/elements/content-sharing/hooks/useSharingService.ts index a518d3cc7c..5c8118b09a 100644 --- a/src/elements/content-sharing/hooks/useSharingService.ts +++ b/src/elements/content-sharing/hooks/useSharingService.ts @@ -31,11 +31,11 @@ export const useSharingService = ({ } if (itemType === TYPE_FILE) { - return api.getFileAPI(); + return api.getFileAPI(false); } if (itemType === TYPE_FOLDER) { - return api.getFolderAPI(); + return api.getFolderAPI(false); } return null; diff --git a/yarn.lock b/yarn.lock index 966da1322a..682e0d7054 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1549,10 +1549,10 @@ resolved "https://registry.yarnpkg.com/@box/types/-/types-0.2.1.tgz#cd0a3915b2306e4cf581f6091b95f5d2db75ea60" integrity sha512-wd6nRR9QxBl7lYKJ/Hix0AKg1PNC3leZWOJ9Nt+d4j45WxCYBiCemZAtY2ekL5BITpVw8vlLmquzSpPhDTeO5A== -"@box/unified-share-modal@^1.5.1": - version "1.5.1" - resolved "https://registry.yarnpkg.com/@box/unified-share-modal/-/unified-share-modal-1.5.1.tgz#48d5b4acc57f9987acc1d897d801248110787719" - integrity sha512-zNSxgJOSZBNH2YF1pi3SJ3+y3br3JxM5A1XGoY6KJXi+b3QcLoWwS8ZuCb6eKNvq1S9f7q7RxSpT4ENs+0BLzw== +"@box/unified-share-modal@^1.7.1": + version "1.7.1" + resolved "https://registry.yarnpkg.com/@box/unified-share-modal/-/unified-share-modal-1.7.1.tgz#f6220facfb008546352fb2dd7ec7533cfcfc6fb4" + integrity sha512-hVR37tiF/REfkQK62Xe0O+1/fHS4Uw2mutdwZhdFO3fFxEBgT8R4a861Co1pjtbWmTldGyciaI2UTStnLb/hzA== "@box/user-selector@^1.23.25": version "1.23.25"