Skip to content

Commit 14c5a18

Browse files
committed
feat: Update packages
1 parent 78d0ed0 commit 14c5a18

File tree

3 files changed

+632
-532
lines changed

3 files changed

+632
-532
lines changed

package.json

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
"@babel/eslint-parser": "^7.22.11",
2727
"@babel/polyfill": "^7.12.1",
2828
"@babel/runtime": "^7.22.15",
29-
"@rsbuild/core": "^1.1.6",
29+
"@rsbuild/core": "^1.5.15",
3030
"@testing-library/jest-dom": "5.16.5",
3131
"@testing-library/react": "13.4.0",
3232
"@testing-library/react-hooks": "8.0.1",
@@ -48,25 +48,25 @@
4848
"prop-types": "15.8.1",
4949
"react-hot-loader": "4.13.0",
5050
"react-test-renderer": "18.2.0",
51-
"rsbuild-config-cozy-app": "^0.4.0",
51+
"rsbuild-config-cozy-app": "^0.6.0",
5252
"stylint": "1.5.9",
5353
"stylus-config-cozy-app": "^0.1.0",
5454
"typescript": "4.9.5"
5555
},
5656
"dependencies": {
5757
"comlink": "^4.4.2",
58-
"cozy-bar": "^22.1.3",
59-
"cozy-client": "^58.4.0",
60-
"cozy-dataproxy-lib": "^4.5.0",
58+
"cozy-bar": "^25.2.0",
59+
"cozy-client": "^60.14.0",
60+
"cozy-dataproxy-lib": "^4.11.0",
6161
"cozy-device-helper": "^3.8.0",
62-
"cozy-external-bridge": "^0.15.1",
63-
"cozy-flags": "^4.7.0",
62+
"cozy-external-bridge": "^0.16.2",
63+
"cozy-flags": "^4.8.0",
6464
"cozy-intent": "^2.30.0",
6565
"cozy-logger": "^1.17.0",
66-
"cozy-pouch-link": "^58.3.0",
67-
"cozy-realtime": "^5.6.4",
68-
"cozy-search": "^0.7.0",
69-
"cozy-ui": "^123.2.0",
66+
"cozy-pouch-link": "^60.14.0",
67+
"cozy-realtime": "^5.8.0",
68+
"cozy-search": "^0.11.1",
69+
"cozy-ui": "^130.8.1",
7070
"react": "18.2.0",
7171
"react-dom": "18.2.0",
7272
"react-router-dom": "6.14.2"

src/components/App.jsx

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,19 @@ import { useExternalBridge } from 'cozy-external-bridge/container'
44
import flag from 'cozy-flags'
55

66
const App = () => {
7-
const embeddedDocsUrl = flag('docs.embedded-app-url')
7+
const embeddedAppRootUrl = flag('docs.embedded-app-url')
88

9-
const { isReady, urlToLoad } = useExternalBridge(embeddedDocsUrl)
9+
const { isReady, urlToLoad } = useExternalBridge(embeddedAppRootUrl)
1010

11-
return <iframe id="embeddedApp" src={isReady ? urlToLoad : null}></iframe>
11+
// We can not return null if bridge is not ready because to setup
12+
// the bridge we need iframe HTML element
13+
return (
14+
<iframe
15+
id="embeddedApp"
16+
src={isReady ? urlToLoad : null}
17+
allow="clipboard-read; clipboard-write"
18+
></iframe>
19+
)
1220
}
1321

1422
export default App

0 commit comments

Comments
 (0)