Skip to content

Commit

Permalink
feat: Upgrade cozy-viewer
Browse files Browse the repository at this point in the history
  • Loading branch information
JF-Cozy committed Dec 18, 2024
1 parent 9661691 commit 037c883
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 6 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@
"cozy-sharing": "^16.17.0",
"cozy-stack-client": "^51.6.0",
"cozy-ui": "^114.0.1",
"cozy-viewer": "^9.0.2",
"cozy-viewer": "^9.1.0",
"date-fns": "1.30.1",
"diacritics": "1.3.0",
"filesize": "10.1.6",
Expand Down
6 changes: 5 additions & 1 deletion src/modules/public/LightFileViewer.spec.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ jest.mock('cozy-keys-lib', () => ({
...jest.requireActual('cozy-keys-lib'),
useVaultClient: jest.fn()
}))

jest.mock('cozy-intent', () => ({
WebviewIntentProvider: ({ children }) => children,
useWebviewIntent: () => ({ call: () => {} })
Expand All @@ -21,6 +20,11 @@ jest.mock('cozy-ui/transpiled/react/providers/Breakpoints', () => ({
default: jest.fn(),
BreakpointsProvider: ({ children }) => children
}))
// used inside cozy-viewer
jest.mock('cozy-client/dist/models/permission', () => ({
...jest.requireActual('cozy-client/dist/models/permission'),
isDocumentReadOnly: jest.fn().mockResolvedValue(false)
}))

const client = new createMockClient({})

Expand Down
8 changes: 4 additions & 4 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -6647,10 +6647,10 @@ cozy-ui@^114.0.1:
react-swipeable-views "^0.13.3"
rooks "^5.11.2"

cozy-viewer@^9.0.2:
version "9.0.2"
resolved "https://registry.yarnpkg.com/cozy-viewer/-/cozy-viewer-9.0.2.tgz#f618f5296b7637a96f9017327fb2bbff85b06f38"
integrity sha512-VhB7m1EIOW8oL67+PT38Miw+n1YFEBKgQAcVJMN8Yo6otNi0rTiqKuPSnbmLbhI+J88TWKK68Z0E2JBX1UOZyQ==
cozy-viewer@^9.1.0:
version "9.1.0"
resolved "https://registry.yarnpkg.com/cozy-viewer/-/cozy-viewer-9.1.0.tgz#13b1bc573076f676ac5f73b98620ef55ebfb7e88"
integrity sha512-X1HjMuCYJNLV9fW5aRVlkwloQbOaxcnsSETaacPJXzxXMyPqDkyuNT1HLqXDWCU5y8WGankMMGJtp9iGre94bg==
dependencies:
classnames "^2.2.5"
hammerjs "^2.0.8"
Expand Down

0 comments on commit 037c883

Please sign in to comment.