mirror of
https://github.com/vector-im/element-call.git
synced 2026-09-10 21:55:19 +00:00
Adds component/index.tsx as a fourth build target: <ElementCall client roomId /> and an initializeElementCall to await once beforehand. It gives Element Call everything it would otherwise take from the page it is on — the parameters, the host bridge, media devices, translations, a container to confine itself to — and hands it the host's client rather than finding one of its own. React, the Matrix SDK and LiveKit stay external, since the host has them and a second copy of any would not merely be wasteful: React would hold two sets of hooks and the client would run two sync loops. Every subpath has to be listed by name, because the pattern and callback forms of rollupOptions.external are silently ignored here — a lesson worth the comment that records it. Element Call's own navigation runs in a MemoryRouter, so being embedded cannot disturb the host's URL. ClientContext and GroupCallView both navigate, so some router has to be present. The bundle is not yet a reasonable size: library mode base64-inlines assets referenced through import.meta.url, so MediaPipe's vision runtime lands in it whole. Left for its own change, since the fix — loading the background blur transformer lazily — is worth doing for the standalone app too.
63 lines
2.8 KiB
YAML
63 lines
2.8 KiB
YAML
supportedArchitectures:
|
|
os: [current, linux]
|
|
cpu: [current, arm64]
|
|
libc: [current, glibc]
|
|
minimumReleaseAgeExclude:
|
|
- "@vector-im/compound-design-tokens"
|
|
- "@vector-im/compound-web"
|
|
- matrix-js-sdk
|
|
- matrix-widget-api
|
|
allowBuilds:
|
|
"@parcel/watcher": true
|
|
"@sentry/cli": true
|
|
"@swc/core": true
|
|
"core-js": true
|
|
"esbuild": true
|
|
"matrix-js-sdk@git+https://github.com/matrix-org/matrix-js-sdk.git": true
|
|
"protobufjs": true
|
|
overrides:
|
|
# We need compatible versions of RxJS in our dependencies and LiveKit's dependencies, but
|
|
# LiveKit has pinned it to a very specific version which is now holding us back from updating.
|
|
# See livekit/components-js#1101 for a request for a proper solution.
|
|
"@livekit/components-core>rxjs": "^7.8.1"
|
|
# Dedupe Mediapipe dependencies.
|
|
"@livekit/track-processors>@mediapipe/tasks-vision": "^0.10.18"
|
|
# Security fix: https://security-tracker.debian.org/tracker/CVE-2026-31802
|
|
"tar": "^7.5.11"
|
|
# Security fixes:
|
|
# - https://github.com/advisories/GHSA-7r86-cg39-jmmj
|
|
# - https://github.com/advisories/GHSA-23c5-xmqv-rm74
|
|
"minimatch": "^10.2.3"
|
|
# Security fix: https://github.com/element-hq/element-call/security/dependabot/109
|
|
"glob": "^10.5.0"
|
|
# Security fixes:
|
|
# - https://github.com/element-hq/element-call/security/dependabot/110
|
|
# - https://github.com/element-hq/element-call/security/dependabot/122
|
|
# - https://github.com/element-hq/element-call/security/dependabot/179
|
|
"qs": "^6.15.2"
|
|
# Security fixes:
|
|
# - https://github.com/element-hq/element-call/security/dependabot/106
|
|
# - https://github.com/element-hq/element-call/security/dependabot/203
|
|
"js-yaml": "^4.2.0"
|
|
# Storybook declares support for 0.27.0 only but empirically works fine with 0.28.0.
|
|
"esbuild": "^0.28.0"
|
|
# Security fixes:
|
|
# - https://github.com/nodejs/undici/releases/tag/v6.24.0
|
|
# - https://github.com/element-hq/element-call/security/dependabot/201
|
|
# - https://github.com/element-hq/element-call/security/dependabot/199
|
|
"undici": "^6.27.0"
|
|
# Security fix: https://github.com/advisories/GHSA-rf6f-7fwh-wjgh
|
|
"flatted": "^3.4.2"
|
|
# Security fix: https://github.com/element-hq/element-call/security/dependabot/184
|
|
"ws": "^8.21.0"
|
|
# Security fixes:
|
|
# - https://github.com/element-hq/element-call/security/dependabot/191
|
|
# - https://github.com/element-hq/element-call/security/dependabot/190
|
|
# - https://github.com/element-hq/element-call/security/dependabot/192
|
|
# - https://github.com/element-hq/element-call/security/dependabot/194
|
|
# - https://github.com/element-hq/element-call/security/dependabot/198
|
|
# - https://github.com/element-hq/element-call/security/dependabot/196
|
|
# - https://github.com/element-hq/element-call/security/dependabot/195
|
|
# - https://github.com/element-hq/element-call/security/dependabot/193
|
|
"dompurify": "^3.4.11"
|