feat(iframe): add iframe bridge for ragflow integration

- Implement Penpal-based iframe communication bridge between host and child apps
- Add route handling for ragflow integration with '/route-ragflow' prefix
- Update navigation hooks to support embedded mode via iframe bridge
- Configure build and dependencies for new iframe-bridge package
- Adjust nginx config for proper SPA routing in subpath deployments
This commit is contained in:
2025-11-10 16:11:21 +08:00
parent 81fa34669a
commit a3ff72e575
17 changed files with 377 additions and 37137 deletions

16
pnpm-lock.yaml generated
View File

@@ -26,6 +26,9 @@ importers:
'@mui/x-date-pickers':
specifier: ^8.14.0
version: 8.14.0(@emotion/react@11.14.0(@types/react@19.2.2)(react@18.3.1))(@emotion/styled@11.14.1(@emotion/react@11.14.0(@types/react@19.2.2)(react@18.3.1))(@types/react@19.2.2)(react@18.3.1))(@mui/material@7.3.4(@emotion/react@11.14.0(@types/react@19.2.2)(react@18.3.1))(@emotion/styled@11.14.1(@emotion/react@11.14.0(@types/react@19.2.2)(react@18.3.1))(@types/react@19.2.2)(react@18.3.1))(@types/react@19.2.2)(react-dom@18.3.1(react@18.3.1))(react@18.3.1))(@mui/system@7.3.3(@emotion/react@11.14.0(@types/react@19.2.2)(react@18.3.1))(@emotion/styled@11.14.1(@emotion/react@11.14.0(@types/react@19.2.2)(react@18.3.1))(@types/react@19.2.2)(react@18.3.1))(@types/react@19.2.2)(react@18.3.1))(@types/react@19.2.2)(date-fns@4.1.0)(dayjs@1.11.18)(moment@2.30.1)(react-dom@18.3.1(react@18.3.1))(react@18.3.1)
'@teres/iframe-bridge':
specifier: workspace:*
version: link:packages/iframe-bridge
'@xyflow/react':
specifier: ^12.8.6
version: 12.8.6(@types/react@19.2.2)(immer@10.2.0)(react-dom@18.3.1(react@18.3.1))(react@18.3.1)
@@ -56,6 +59,9 @@ importers:
loglevel:
specifier: ^1.9.2
version: 1.9.2
penpal:
specifier: ^6.2.1
version: 6.2.2
react:
specifier: ^18.3.1
version: 18.3.1
@@ -160,6 +166,10 @@ importers:
penpal:
specifier: ^6.2.1
version: 6.2.2
devDependencies:
typescript:
specifier: ~5.9.3
version: 5.9.3
packages/shared-auth: {}
@@ -291,6 +301,9 @@ importers:
'@tanstack/react-table':
specifier: ^8.20.5
version: 8.21.3(react-dom@18.3.1(react@18.3.1))(react@18.3.1)
'@teres/iframe-bridge':
specifier: workspace:*
version: link:../packages/iframe-bridge
'@uiw/react-markdown-preview':
specifier: ^5.1.3
version: 5.1.5(@types/react@18.3.26)(react-dom@18.3.1(react@18.3.1))(react@18.3.1)
@@ -375,6 +388,9 @@ importers:
openai-speech-stream-player:
specifier: ^1.0.8
version: 1.0.8
penpal:
specifier: ^6.2.1
version: 6.2.2
pptx-preview:
specifier: ^1.0.5
version: 1.0.7