@@ -2,6 +2,8 @@ import React, { createRef } from 'react'
22import PropTypes from 'prop-types'
33import cx from 'classnames'
44
5+ import { WebviewIntentProvider } from 'cozy-intent'
6+
57import useBreakpoints from '../providers/Breakpoints'
68import { FileDoctype } from '../proptypes'
79import { useExtendI18n } from '../providers/I18n'
@@ -50,37 +52,39 @@ const ViewerContainer = props => {
5052 }
5153
5254 return (
53- < AlertProvider >
54- < ActionMenuProvider editPathByModelProps = { editPathByModelProps } >
55- < div
56- id = "viewer-wrapper"
57- className = { cx ( styles [ 'viewer-wrapper' ] , className ) }
58- >
59- < EncryptedProvider url = { currentURL } >
60- < Viewer
61- { ...rest }
62- componentsProps = { componentsPropsWithDefault }
63- currentFile = { currentFile }
64- hasPrevious = { hasPrevious }
65- hasNext = { hasNext }
55+ < WebviewIntentProvider >
56+ < AlertProvider >
57+ < ActionMenuProvider editPathByModelProps = { editPathByModelProps } >
58+ < div
59+ id = "viewer-wrapper"
60+ className = { cx ( styles [ 'viewer-wrapper' ] , className ) }
61+ >
62+ < EncryptedProvider url = { currentURL } >
63+ < Viewer
64+ { ...rest }
65+ componentsProps = { componentsPropsWithDefault }
66+ currentFile = { currentFile }
67+ hasPrevious = { hasPrevious }
68+ hasNext = { hasNext }
69+ validForPanel = { validForPanel }
70+ toolbarRef = { toolbarRef }
71+ >
72+ { children }
73+ </ Viewer >
74+ </ EncryptedProvider >
75+ < ViewerInformationsWrapper
76+ isPublic = { isPublic }
77+ disableFooter = { disableFooter }
6678 validForPanel = { validForPanel }
79+ currentFile = { currentFile }
6780 toolbarRef = { toolbarRef }
6881 >
6982 { children }
70- </ Viewer >
71- </ EncryptedProvider >
72- < ViewerInformationsWrapper
73- isPublic = { isPublic }
74- disableFooter = { disableFooter }
75- validForPanel = { validForPanel }
76- currentFile = { currentFile }
77- toolbarRef = { toolbarRef }
78- >
79- { children }
80- </ ViewerInformationsWrapper >
81- </ div >
82- </ ActionMenuProvider >
83- </ AlertProvider >
83+ </ ViewerInformationsWrapper >
84+ </ div >
85+ </ ActionMenuProvider >
86+ </ AlertProvider >
87+ </ WebviewIntentProvider >
8488 )
8589}
8690
0 commit comments