Compare commits

...

1036 Commits

Author SHA1 Message Date
Robin
64e7047b12 Merge pull request #2552 from robintown/spotlight-left
Don't keep someone in the spotlight if they've left the call
2024-08-09 13:40:13 -04:00
Robin
ed99af0be6 Improve readability 2024-08-09 13:38:59 -04:00
Robin
52058716f6 Don't keep someone in the spotlight if they've left the call 2024-08-09 13:08:37 -04:00
Robin
29df87d22c Merge pull request #2548 from robintown/hide-controls
Show controls on tap/hover on small screens
2024-08-09 11:52:01 -04:00
Robin
6443e911dc Make the breakpoint a bit smaller 2024-08-09 11:09:45 -04:00
Robin
aa6b7056ae Show controls on tap/hover on small screens
This changes the mobile landscape view to automatically hide the controls, giving more visibility to the video underneath, and show them on tap/hover.
2024-08-09 11:09:45 -04:00
Robin
c20737ba4c Merge pull request #2546 from robintown/spotlight-duplication
Avoid duplicating the video of someone in the spotlight
2024-08-09 09:11:13 -04:00
Robin
6f03653532 Merge pull request #2545 from robintown/breakpoint
Consider any sufficiently short window 'flat'
2024-08-08 13:22:41 -04:00
Robin
2ec0aaa0de Merge pull request #2547 from robintown/t-grid
Avoid T-shaped layouts in 4 person calls
2024-08-08 13:22:20 -04:00
Robin
9b4ad24f10 Avoid T-shaped layouts in 4 person calls
The code path for when all tiles can fit on screen was failing to realize that it could sometimes get by with fewer columns. This resulted in wasted space for 4 person calls at some window sizes.
2024-08-08 12:46:38 -04:00
Robin
5069b008e2 Avoid duplicating the video of someone in the spotlight
We've gotten feedback that it's distracting whenever the same video is shown in two places on screen. This fixes the spotlight case by showing only the avatar of anyone who is already visible in the spotlight. It also makes sense to hide the speaking indicators in spotlight layouts, I think, because this information is redundant to the spotlight tile.
2024-08-08 12:16:32 -04:00
Robin
6d8e45aea8 Consider any sufficiently short window 'flat'
This is because our layouts for flat windows are good at adapting to both small width and small height, while our layouts for narrow windows aren't so good at adapting to a small height.
2024-08-08 11:30:57 -04:00
Andrew Ferrazzutti
f0f9b929a1 Update js-sdk to use non-legacy calls if found (#2540) 2024-08-07 13:00:19 -04:00
Robin
9b5072cc57 Merge pull request #2541 from robintown/local-on-local
Don't show local media on top of itself
2024-08-07 09:18:29 -04:00
Hugh Nimmo-Smith
b13fa85465 Add note on how to add a new translation key (#2536)
* Add note on how to add a new translation key

* Lint

* Nit
2024-08-07 10:40:44 +01:00
Robin
bf5128cfee Don't show local media on top of itself
If you were the only one in the call, you could get a broken-looking view in which the local tile is shown in the spotlight, and it's also shown in the PiP. This is redundant.
2024-08-06 17:12:13 -04:00
Robin
f928e63c7b Merge pull request #2539 from robintown/duplicate-tiles-crash
Fix a crash when the duplicate tiles option is empty
2024-08-06 16:24:58 -04:00
Robin
eef92249f7 Fix a crash when the duplicate tiles option is empty
We need to handle the case where the value is NaN because the field is empty.
2024-08-06 10:56:15 -04:00
Robin
04ad44f900 Merge pull request #2534 from element-hq/renovate/postcss-preset-env-10.x
Update dependency postcss-preset-env to v10
2024-08-06 10:11:20 -04:00
Robin
90072aa2bb Merge pull request #2538 from element-hq/renovate/compound
Update dependency @vector-im/compound-design-tokens to v1.8.0
2024-08-06 10:10:35 -04:00
Robin
ab42fe97cb Merge pull request #2514 from robintown/mobile-layouts
Improve the layouts on small mobile calls
2024-08-06 10:10:29 -04:00
Robin
f4cf3d8c62 Adjust the breakpoint 2024-08-06 10:08:56 -04:00
renovate[bot]
1782a0eaf3 Update dependency @vector-im/compound-design-tokens to v1.8.0 2024-08-06 01:14:19 +00:00
renovate[bot]
5bf46eb8f8 Update all non-major dependencies (#2535)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-08-05 12:30:45 +02:00
renovate[bot]
b4973bbc6b Update dependency postcss-preset-env to v10 2024-08-04 00:40:54 +00:00
Robin
eaf3fb13c1 Merge pull request #2448 from element-hq/renovate/major-compound
Update dependency @vector-im/compound-web to v6
2024-08-02 15:38:17 -04:00
Robin
b503056673 Adapt to breaking changes in Compound 2024-08-02 15:27:49 -04:00
renovate[bot]
86e3c346a4 Update dependency @vector-im/compound-web to v6 2024-08-02 19:23:22 +00:00
Andrew Ferrazzutti
7449e1f6e4 Don't refer to MSC3779 explicitly in comment (#2533)
because other MSCs (like 3757) may allow @-prefixed state keys
2024-08-02 15:15:54 +00:00
Robin
aadf6c05ac Merge pull request #2530 from robintown/no-you
Show your own name on your tile
2024-08-02 10:45:32 -04:00
Robin
39ee8d838e Merge pull request #2531 from robintown/iterate-margins
Add back some margins to the interface
2024-08-02 08:42:03 -04:00
Andrew Ferrazzutti
1f10245adc Bump matrix-widget-api (#2529) 2024-08-02 08:37:55 -04:00
Robin
c1de41106f Merge pull request #2532 from robintown/renovate-warning
Fix Renovate warning
2024-08-01 17:19:37 -04:00
Robin
e12bad952a Fix Renovate warning
Apparently Renovate doesn't really like it when you use a group: preset inside packageRules, instead of at the top level of the config. We do want to apply schedule:weekly only to the "all non-major dependencies" group though, so we need to write the group definition out by hand.
2024-08-01 16:41:19 -04:00
Robin
7abb56e406 Add back some margins to the interface
There were a couple of cases where the lack of margins after the new layout changes just looked odd. Specifically, when the header is hidden (as in embedded mode), there would be no margin at the top of the window. Also the floating tile would run directly up against the sides of the window.
2024-08-01 16:33:10 -04:00
Robin
00d8100dfe Show your own name on your tile
Instead of the word "You".
2024-08-01 15:48:22 -04:00
Robin
eb051ab318 Replace the mobile one-on-one layout with an edge-to-edge spotlight 2024-08-01 13:49:49 -04:00
Robin
942e28f3c2 Improve the layouts on small mobile calls
Due to an oversight of mine, 2440037639 actually removed the ability to see the one-on-one layout on mobile. This restores mobile one-on-one calls to working order and also avoids showing the spotlight tile unless there are more than a few participants.
2024-08-01 13:49:49 -04:00
Robin
0bfec65405 Refactor layout selection into smaller chunks 2024-08-01 13:49:49 -04:00
Robin
f89342713a Merge pull request #2528 from robintown/remote-spotlight
More strongly prefer putting a remote speaker in the spotlight
2024-08-01 13:24:57 -04:00
Robin
5a0b81b57f More strongly prefer putting a remote speaker in the spotlight
If no one had spoken yet, we were still showing the local user in the spotlight. We should instead eagerly switch to showing an arbitrary remote participant in this case.
2024-08-01 12:48:47 -04:00
Timo
f9323d8b2c Add future related widget capabilities (#2505)
* add future related widget capabilities

* Update js sdk
2024-08-01 11:41:47 -04:00
renovate[bot]
c68d536d80 Update LiveKit components (#2525)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-08-01 16:30:24 +02:00
renovate[bot]
fde7dbedaa Update dependency matrix-widget-api to v1.8.1 (#2527)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-08-01 16:29:50 +02:00
fkwp
7e240e96b7 Merge pull request #2526 from element-hq/renovate/livekit-client
Update dependency livekit-client to v2.4.2
2024-08-01 16:04:53 +02:00
renovate[bot]
f84800363f Update dependency livekit-client to v2.4.2 2024-08-01 13:26:05 +00:00
fkwp
f9e12c8ff3 Merge pull request #2524 from element-hq/renovate/github-actions
Update GitHub Actions
2024-08-01 09:28:05 +02:00
renovate[bot]
6abd1fbca1 Update GitHub Actions 2024-08-01 01:04:00 +00:00
Timo
599a4708cb Backport deviceSetup await (#2522) 2024-07-31 13:21:37 +02:00
Timo
f53ea75c94 Add DeviceMute widget action io.element.device_mute. (#2482)
* Add DeviceMute widget action `io.element.device_mute`.
This allows to send mute requests ("toWidget") and get the current mute state as a response.
And it will update the client about each change of mute states.

* review + better explanation

* review

* add comments

* use `useCallback`
2024-07-30 13:30:33 +02:00
Robin
2b67a9cfbe Merge pull request #2486 from robintown/delete-fullscreen
Delete the unused full screen code
2024-07-29 09:28:07 -04:00
fkwp
d582a7cc29 Merge pull request #2519 from element-hq/renovate/livekit-client
Update dependency livekit-client to v2.4.1
2024-07-29 11:35:26 +02:00
renovate[bot]
8757f07982 Update dependency livekit-client to v2.4.1 2024-07-29 09:32:35 +00:00
fkwp
5b8910d265 Merge pull request #2518 from element-hq/renovate/livekit-components
Update LiveKit components
2024-07-29 11:31:06 +02:00
renovate[bot]
a03ab6c9fa Update LiveKit components 2024-07-29 01:38:23 +00:00
Robin
a3ce333352 Only show the expand button in spotlight layout (#2510)
It has no effect in any layout other than spotlight, and we've decided to hide it rather than spending effort to make it do something.
2024-07-26 12:57:49 +02:00
Robin
d5faa5ea90 Don't show the speaker in the spotlight in large grids (#2511)
We've concluded that this behavior is actually more distracting than it is helpful, and we want to try out what it's like to just have the importance ordering and visual cues help you find who's speaking.
2024-07-26 12:51:34 +02:00
Robin
5becd2e175 Fix a crash when using the duplicate tiles option (#2512) 2024-07-26 12:51:09 +02:00
Robin
3b38a5322c Give tiles a minimum area rather than a minimum width and height (#2513)
This seems to result in more sensible cropping and allocation of space across the board, in my testing.
2024-07-26 12:50:44 +02:00
Robin
d062871f41 Don't consider microphone mute state in importance ordering (#2515)
We're finding that if we reorder participants based on whether their mic is muted, this just creates a lot of distracting layout shifts. People who speak are automatically promoted into the speaker category, so there's little value in additionally caring about mute state.
2024-07-26 11:27:22 +02:00
renovate[bot]
6b64bdfdb5 Update dependency @vector-im/compound-design-tokens to v1.7.0 (#2516)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-07-26 06:37:46 +02:00
Robin
2de4705fa7 Merge pull request #2509 from robintown/icon-imports
Import Compound icons in the new recommended way
2024-07-25 14:26:41 -04:00
Robin
12e233970c Import Compound icons in the new recommended way
The Compound design tokens package is now set up to generate React components for every icon, so we no longer need to use our more error-prone method of importing the SVGs.
2024-07-25 13:15:45 -04:00
Robin
10b915c707 Merge pull request #2501 from robintown/layout-reactivity
Make layout reactivity less brittle
2024-07-25 12:51:39 -04:00
Robin
5544695f21 Use clearer names 2024-07-25 12:50:28 -04:00
Timo
72de8e066c fix grammar (#2506) 2024-07-25 14:33:37 +02:00
Robin
63afda05bc Merge pull request #2502 from robintown/shortcut-a11y
Improve accessibility of keyboard shortcuts
2024-07-25 08:24:13 -04:00
Timo
b05c4234b7 Remove hide header condition (#2493) 2024-07-25 11:32:05 +02:00
renovate[bot]
80ddb7495d Update dependency eslint-plugin-unicorn to v55 (#2503)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-07-25 10:35:26 +02:00
Robin
380f49fccc Improve accessibility of keyboard shortcuts
Ensure that they don't interfere with say, using spacebar to press a button, and also ensure that they won't do surprising things like scroll the page at the same time.
2024-07-24 18:42:21 -04:00
Robin
447bac3280 Make layout reactivity less brittle
Follow-up to ea2d98179c

This took a couple of iterations to find something that works without creating update loops, but I think that by automatically informing Grid whenever a layout component is re-rendered, we'll have a much easier time ensuring that our layouts are fully reactive.
2024-07-24 17:03:27 -04:00
Robin
c74cebcc4b Merge pull request #2492 from element-hq/renovate/all-minor-patch
Update all non-major dependencies
2024-07-24 14:17:48 -04:00
renovate[bot]
cd0aa0ced6 Update all non-major dependencies 2024-07-24 18:13:38 +00:00
Robin
9cbd146e24 Merge pull request #2491 from element-hq/renovate/matrix-widget-api
Update dependency matrix-widget-api to v1.7.0
2024-07-24 11:14:46 -04:00
Robin
509bb4f1b0 Use LTS Node in CI 2024-07-24 11:12:36 -04:00
Robin
3be3a32f3d Update TypeScript target to match matrix-js-sdk
And work around https://github.com/microsoft/TypeScript/issues/55132
2024-07-24 11:07:46 -04:00
Robin
17adfc5777 Upgrade matrix-js-sdk 2024-07-24 10:17:47 -04:00
fkwp
4eb1be678d Merge pull request #2499 from element-hq/renovate/livekit-components
Update LiveKit components
2024-07-24 15:27:53 +02:00
renovate[bot]
b34e7d00e9 Update LiveKit components 2024-07-24 12:57:28 +00:00
fkwp
78f4c2a650 Merge pull request #2498 from element-hq/fkwp/cleanup_config
Fkwp/cleanup config
2024-07-24 13:04:11 +02:00
Timo
a3773c0a9a prettier 2024-07-24 13:00:13 +02:00
fkwp
2b92ce8af2 enable new m.call.member format 2024-07-24 12:19:36 +02:00
fkwp
5564e2fde6 cleanup config files 2024-07-24 10:18:16 +02:00
Robin
35e2d2c432 Merge pull request #2494 from robintown/spotlight-fix
Quick and dirty fix to spotlight reactivity
2024-07-22 10:55:20 -04:00
Robin
ea2d98179c Quick and dirty fix to spotlight reactivity 2024-07-22 10:52:20 -04:00
renovate[bot]
d83a104dda Update dependency matrix-widget-api to v1.7.0 2024-07-19 14:32:06 +00:00
fkwp
58f274eabf Merge pull request #2490 from element-hq/renovate/livekit-client
Update dependency livekit-client to v2.4.0
2024-07-19 16:30:31 +02:00
renovate[bot]
632ad07304 Update dependency livekit-client to v2.4.0 2024-07-19 14:28:43 +00:00
Robin
4173fd113b Merge pull request #2485 from element-hq/new-call-layouts
New call layouts
2024-07-19 09:08:51 -04:00
renovate[bot]
56b5f2845d Update dependency @vector-im/compound-design-tokens to v1.6.1 (#2487)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-07-19 13:33:24 +02:00
Timo
afee9eaa26 Don't update mute when reaching the user count threshold. (#2474)
* Dont update mute during call.
2024-07-18 18:14:29 +02:00
Robin
364b78abda Delete the unused full screen code
We no longer allow individual tiles to be put in full screen, because we're seeing what it's like to just stretch the spotlight tile edge-to-edge and keep the margins minimal.
2024-07-18 11:48:06 -04:00
Robin
507b1fc52d Merge branch 'livekit' into new-call-layouts 2024-07-18 11:38:35 -04:00
Robin
6812c35a40 Merge pull request #2463 from robintown/rest-of-the-layouts
Implement most of the remaining layout changes
2024-07-18 11:34:47 -04:00
Robin
377b7ff5de Explain each layout 2024-07-18 11:33:20 -04:00
Robin
4955535374 Use more consistent names for layout types 2024-07-18 11:24:18 -04:00
Robin
0664f978e3 Merge branch 'new-call-layouts' into rest-of-the-layouts 2024-07-18 11:21:56 -04:00
Robin
bcc06d86ff Merge pull request #2417 from robintown/one-on-one-layout
New one-on-one layout
2024-07-18 11:09:11 -04:00
Robin
7526826b0c Improve aspect ratios on mobile 2024-07-18 11:01:21 -04:00
Robin
b4e0df75c0 Merge branch 'new-call-layouts' into one-on-one-layout 2024-07-18 10:28:17 -04:00
Robin
d561a41666 Merge pull request #2416 from robintown/grid-spotlight-speaker
Show speaker in the spotlight in large grids
2024-07-18 10:17:31 -04:00
Timo
d53ad9a8f3 Update sample config with livekit (rebase on livekit) (#2483)
* Update sample cfg with livekit config

* matching ports in readme and example

---------

Co-authored-by: xmj <xmj@chaot.net>
2024-07-18 16:01:10 +02:00
Robin
e04affe93e Justify the use of a participant count threshold 2024-07-18 10:00:26 -04:00
Robin
24870deead Merge pull request #2382 from robintown/spotlight-layout
New spotlight layout
2024-07-18 08:50:31 -04:00
Robin
7fcd7125c1 Merge branch 'new-call-layouts' into spotlight-layout 2024-07-18 08:48:50 -04:00
Robin
1efa594430 Use Array.some where it's appropriate 2024-07-17 16:06:48 -04:00
Robin
caea4b250e Merge pull request #2381 from robintown/observable-hooks
Replace react-rxjs with observable-hooks
2024-07-17 15:56:31 -04:00
Robin
0a8c6c1454 Merge branch 'new-call-layouts' into observable-hooks 2024-07-17 15:55:50 -04:00
Robin
d4a2617f7b Merge pull request #2380 from robintown/pin-always-show
Add toggle to always show yourself
2024-07-17 15:45:29 -04:00
Robin
e05c6f1bdf Merge pull request #2369 from robintown/duplicate-tiles
Add a developer option to duplicate tiles
2024-07-17 15:41:53 -04:00
Robin
2bc56dbff2 Use fewer ML-style variable names 2024-07-17 15:40:02 -04:00
Robin
a59875dab5 Explain what each sorting bin means 2024-07-17 15:37:41 -04:00
Robin
8c21e8f277 Use a more descriptive string 2024-07-17 14:55:45 -04:00
Robin
d8634eed3d Merge pull request #2484 from element-hq/renovate/react-i18next-15.x
Update dependency react-i18next to v15
2024-07-17 13:14:11 -04:00
renovate[bot]
be4b70c1e1 Update dependency react-i18next to v15 2024-07-17 16:51:55 +00:00
renovate[bot]
e79cded57f Update all non-major dependencies (#2479)
* Update all non-major dependencies

* prettier fixes

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Timo <toger5@hotmail.de>
2024-07-17 10:07:26 +02:00
Robin
2440037639 Implement most of the remaining layout changes
Includes the mobile UX optimizations and the tweaks we've made to cut down on wasted space, but does not yet include the change to embed the spotlight tile within the grid.
2024-07-12 15:50:17 -04:00
Robin
a16f235277 Fix crash in spotlight mode while connecting
Because we were hiding even the local participant during initial connection, there would be no participants, and therefore nothing to put in the spotlight. The designs don't really tell us what the connecting state should look like, so I've taken the liberty of restoring it to its former glory of showing the local participant immediately.
2024-07-12 15:49:45 -04:00
Robin
45c89a2298 Delete the legacy grid system 2024-07-12 15:49:43 -04:00
Robin
7979493371 Implement the new one-on-one layout 2024-07-12 15:47:56 -04:00
Robin
e0b10d89b5 Add model for one-on-one layout 2024-07-12 15:47:56 -04:00
Robin
183d2d9050 Show speaker in the spotlight in large grids 2024-07-12 15:47:35 -04:00
Robin
12b719da95 Make layout reactivity a little more fine-grained 2024-07-12 15:47:00 -04:00
Robin
dfda7539d6 Only switch to spotlight for remote screen shares 2024-07-12 15:47:00 -04:00
Robin
7f40ce8dde Fix advance buttons showing up for the spotlight speaker 2024-07-12 15:47:00 -04:00
Robin
ec1b020d4e Add indicators to spotlight tile and make spotlight layout responsive 2024-07-12 15:47:00 -04:00
Robin
54c22f4ab2 Clean up spotlight tile code 2024-07-12 15:47:00 -04:00
Robin
ffbbc74a96 Implement the new spotlight layout 2024-07-12 15:47:00 -04:00
Robin
34c45cb5e2 Get the right grid offset even when offsetParent is a layout element 2024-07-12 15:47:00 -04:00
Robin
af0bd795b5 Replace react-rxjs with observable-hooks
react-rxjs is the library we've been using to connect our React components to view models and consume observables. However, after spending some time with react-rxjs, I feel that it's a very heavy-handed solution. It requires us to sprinkle <Subscribe /> and <RemoveSubscribe /> components all throughout the code, and makes React go through an extra render cycle whenever we mount a component that binds to a view model. What I really want is a lightweight React hook that just gets the current value out of a plain observable, without any extra setup. Luckily the observable-hooks library with its useObservableEagerState hook seems to do just that—and it's more actively maintained, too!
2024-07-12 15:46:33 -04:00
Robin
0d485ef97f Use always show flag in importance ordering 2024-07-12 15:43:24 -04:00
Robin
5647619b36 Add always show toggle to the UI 2024-07-12 15:43:24 -04:00
Robin
8a414012a0 Add always show flag to view model 2024-07-12 15:43:24 -04:00
Robin
e33fbd77d1 Split local and remote user media into different classes 2024-07-12 15:43:24 -04:00
Robin
fdc6d4a1b6 Add a developer option to duplicate tiles
This is useful for testing how the UI behaves with different numbers of participants.
2024-07-12 14:55:29 -04:00
Robin
a534356dd9 Merge pull request #2368 from robintown/settings-refactor
Refactor settings to use observables
2024-07-12 14:50:46 -04:00
Robin
f847692953 Merge pull request #2325 from robintown/unified-grid
Unified grid layout
2024-07-12 14:50:35 -04:00
Robin
486430d1f0 Merge pull request #2478 from element-hq/renovate/compound
Update dependency @vector-im/compound-design-tokens to v1.6.0
2024-07-12 14:19:29 -04:00
Robin
599d6fd007 Address review feedback 2024-07-12 14:15:27 -04:00
Robin
14fc1481f3 Address some review feedback 2024-07-12 14:01:32 -04:00
renovate[bot]
e6ddf40b1b Update dependency @vector-im/compound-design-tokens to v1.6.0 2024-07-12 16:55:33 +00:00
fkwp
9f521a79f7 Merge pull request #2477 from element-hq/renovate/livekit-client
Update dependency livekit-client to v2.3.2
2024-07-11 10:22:54 +02:00
fkwp
83784a717a Merge pull request #2476 from element-hq/renovate/livekit-components
Update dependency @livekit/components-react to v2.3.6
2024-07-11 10:22:18 +02:00
renovate[bot]
0729deee79 Update dependency livekit-client to v2.3.2 2024-07-11 08:18:46 +00:00
renovate[bot]
77c3114cf8 Update dependency @livekit/components-react to v2.3.6 2024-07-11 08:18:27 +00:00
Robin
82a56c8204 Merge pull request #2471 from element-hq/renovate/major-vitest-monorepo
Update dependency vitest to v2
2024-07-09 10:42:23 -04:00
renovate[bot]
b39896d8c6 Update dependency @vector-im/compound-design-tokens to v1.4.0 (#2472)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-07-09 11:34:44 +02:00
renovate[bot]
79b3fdb645 Update dependency vitest to v2 2024-07-08 13:01:11 +00:00
renovate[bot]
0f877cd021 Update dependency tinyqueue to v3 (#2468)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-07-08 09:12:26 +02:00
renovate[bot]
db2acc75b2 Update LiveKit components (#2469)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-07-08 09:11:56 +02:00
renovate[bot]
a5dbfbf2c1 Update all non-major dependencies (#2470)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-07-08 09:11:25 +02:00
Andrew Ferrazzutti
34c7d02de2 Add config to send session membership state events (#2460)
If not set, legacy call membership state events are sent instead.
Even if set, legacy events are sent in rooms with active legacy calls.

---------

Co-authored-by: Timo <16718859+toger5@users.noreply.github.com>
2024-07-05 21:10:16 +09:00
Andrew Ferrazzutti
ca45067158 Let Element Call widget set session memberships (#2459)
Make Element Call widgets request permission to set device-specific
session membership state events.
2024-07-05 04:59:48 +09:00
Andrew Ferrazzutti
5a6eb7c573 Make widgets request the room creation event (#2457)
This allows the widget to check the room version, so it can know about
version-specific auth rules (namely MSC3779).
2024-07-05 04:57:45 +09:00
Robin
41083c0f9e Refactor settings to use observables
Also removing some unused settings along the way.
2024-07-03 15:29:32 -04:00
Robin
20602c122b Implement the new unified grid layout
Here I've implemented an MVP for the new unified grid layout, which scales smoothly up to arbitrarily many participants. It doesn't yet have a special 1:1 layout, so in spotlight mode and 1:1s, we will still fall back to the legacy grid systems.

Things that happened along the way:
- The part of VideoTile that is common to both spotlight and grid tiles, I refactored into MediaView
- VideoTile renamed to GridTile
- Added SpotlightTile for the new, glassy spotlight designs
- NewVideoGrid renamed to Grid, and refactored to be even more generic
- I extracted the media name logic into a custom React hook
- Deleted the BigGrid experiment
2024-07-03 15:29:08 -04:00
Robin
5ad2a27a92 Merge pull request #2462 from element-hq/renovate/github-actions
Update docker/build-push-action action to v6.3.0
2024-07-03 15:25:13 -04:00
renovate[bot]
68daaa45f9 Update docker/build-push-action action to v6.3.0 2024-07-03 11:29:17 +00:00
renovate[bot]
c40ea35937 Update all non-major dependencies (#2461)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-07-02 10:41:19 +02:00
Timo
d27f433175 Skip error screen for the issue, that the homeserver does not support the room summary endpoint. (#2453)
* Add try inner try block to the room summary fetching and only throw after fetching and a "blind join" fails.
(blind join: call room.join without knowing if the room is public)

Co-authored-by: Robin <robin@robin.town>

---------

Co-authored-by: Robin <robin@robin.town>
2024-06-25 08:44:02 +00:00
Robin
8a6101cd14 Merge pull request #2456 from element-hq/renovate/all-minor-patch
Update all non-major dependencies
2024-06-24 10:37:18 -04:00
Robin
4db7c2bc68 Fix type errors 2024-06-24 10:31:50 -04:00
renovate[bot]
18740fc686 Update all non-major dependencies 2024-06-24 13:04:28 +00:00
Robin
0c39398493 Merge pull request #2447 from element-hq/renovate/compound
Update dependency @vector-im/compound-design-tokens to v1.3.0
2024-06-21 10:39:03 -04:00
Robin
949145f04b Merge pull request #2446 from element-hq/renovate/major-testing-library-monorepo
Update dependency @testing-library/react to v16
2024-06-21 10:32:30 -04:00
Robin
8578dcadf2 Add missing peer dependencies 2024-06-21 10:30:39 -04:00
renovate[bot]
959db44eca Update dependency @testing-library/react to v16 2024-06-21 10:30:28 -04:00
Robin
a031c0e128 Merge pull request #2445 from element-hq/renovate/major-sentry-javascript-monorepo
Update dependency @sentry/react to v8
2024-06-21 10:25:04 -04:00
Robin
591833505f Adapt to breaking changes 2024-06-21 10:23:30 -04:00
Robin
f7ad5074d8 Merge pull request #2452 from element-hq/renovate/i18next-parser-9.x
Update dependency i18next-parser to v9
2024-06-21 10:14:39 -04:00
Robin
e0aef74bf5 Merge pull request #2454 from element-hq/renovate/uuid-10.x
Update dependency uuid to v10
2024-06-21 10:13:01 -04:00
renovate[bot]
b2378bf899 Update dependency i18next-parser to v9 2024-06-21 14:12:34 +00:00
Robin
255f6b1814 Merge pull request #2451 from element-hq/renovate/i18next-browser-languagedetector-8.x
Update dependency i18next-browser-languagedetector to v8
2024-06-21 10:11:59 -04:00
Robin
4c491b5363 Merge pull request #2450 from element-hq/renovate/eslint-plugin-unicorn-54.x
Update dependency eslint-plugin-unicorn to v54
2024-06-21 10:11:23 -04:00
Robin
61c808d4cf Merge pull request #2455 from element-hq/renovate/github-actions
Pin dependencies
2024-06-21 10:00:40 -04:00
Robin
13ef3183e2 Tell Renovate that we're trying to pin actions to specific tags
It thought that we were just trying to follow the latest commit on these actions, when in reality we want to follow the latest tag and pin its commit hash.
2024-06-21 09:57:48 -04:00
renovate[bot]
afd4fdcea2 Pin dependencies 2024-06-21 13:21:08 +00:00
Robin
982181ccd4 Merge pull request #2444 from robintown/more-renovate
Refine Renovate config further
2024-06-21 09:10:16 -04:00
renovate[bot]
30629ebba2 Update dependency uuid to v10 2024-06-21 10:07:33 +00:00
renovate[bot]
7f6a32d21a Update dependency i18next-browser-languagedetector to v8 2024-06-21 08:46:24 +00:00
renovate[bot]
320ade0a50 Update dependency eslint-plugin-unicorn to v54 2024-06-21 04:03:53 +00:00
renovate[bot]
8c6fee3150 Update dependency @vector-im/compound-design-tokens to v1.3.0 2024-06-21 00:35:09 +00:00
renovate[bot]
5c6acaf915 Update dependency @sentry/react to v8 2024-06-20 21:46:07 +00:00
Robin
c46549b2b6 Refine Renovate config further
By getting it to pin GitHub Actions to specific commits, which hardens our workflows, and fixing a warning about matchPackageNames
2024-06-20 16:00:52 -04:00
fkwp
97a58f6db7 Merge pull request #2442 from element-hq/renovate/docker-build-push-action-digest
Update docker/build-push-action digest to 31159d4
2024-06-20 21:48:42 +02:00
fkwp
b6288579c9 Merge pull request #2443 from element-hq/renovate/docker-setup-buildx-action-digest
Update docker/setup-buildx-action digest to abe89fb
2024-06-20 21:48:25 +02:00
renovate[bot]
44bf987cdc Update docker/setup-buildx-action digest to abe89fb 2024-06-20 19:45:16 +00:00
renovate[bot]
a7d55824bb Update docker/build-push-action digest to 31159d4 2024-06-20 19:45:13 +00:00
Robin
8fa038c61f Merge pull request #2441 from robintown/renovate-noise
Reduce noise coming from Renovate updates
2024-06-20 15:44:38 -04:00
Robin
869d9b43cb Reduce noise coming from Renovate updates
What I've tried to do here is to group most dependency updates together and put them on a weekly schedule. Some of our more sensitive dependencies such as LiveKit and Compound have been put into separate groups, so we still receive frequent updates for them.
2024-06-20 15:43:21 -04:00
Robin
974a2fe49b Merge pull request #2438 from element-hq/dependabot/npm_and_yarn/ws-8.17.1
Bump ws from 8.16.0 to 8.17.1
2024-06-20 11:00:16 -04:00
dependabot[bot]
022497c8e5 Bump ws from 8.16.0 to 8.17.1
Bumps [ws](https://github.com/websockets/ws) from 8.16.0 to 8.17.1.
- [Release notes](https://github.com/websockets/ws/releases)
- [Commits](https://github.com/websockets/ws/compare/8.16.0...8.17.1)

---
updated-dependencies:
- dependency-name: ws
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-06-20 14:58:51 +00:00
Robin
207a5f047c Merge pull request #2430 from robintown/update-js-sdk
Update matrix-js-sdk
2024-06-20 10:54:27 -04:00
Robin
d3c63f9314 Update matrix-js-sdk
To pull in https://github.com/matrix-org/matrix-js-sdk/pull/4252
2024-06-20 10:52:06 -04:00
Robin
f9ef037cea Merge pull request #2435 from element-hq/hughns/visibilitychange
Use correct DOM event name for visibility changes in useWakeLock
2024-06-20 10:19:05 -04:00
fkwp
8666ffec81 Merge pull request #2437 from element-hq/renovate/docker-build-push-action-digest
Update docker/build-push-action digest to f6010ea
2024-06-20 16:17:42 +02:00
fkwp
4b85879891 Merge pull request #2436 from element-hq/renovate/livekit-client-2.x-lockfile
Update dependency livekit-client to v2.3.1
2024-06-20 16:07:06 +02:00
renovate[bot]
f376291f50 Update docker/build-push-action digest to f6010ea 2024-06-20 14:05:57 +00:00
renovate[bot]
f0f56bf101 Update dependency livekit-client to v2.3.1 2024-06-20 14:05:24 +00:00
Hugh Nimmo-Smith
ba647780e8 Use correct DOM event name for visibility changes in useWakeLock 2024-06-19 17:54:15 +01:00
Timo
812ae2ce89 Load focus information from well known and use client config only as a fallback. (#2358)
* Load focus information from well known and use client config only as a fallback.

Signed-off-by: Timo K <toger5@hotmail.de>
Co-authored-by: Andrew Ferrazzutti <andrewf@element.io>
2024-06-19 16:41:52 +02:00
renovate[bot]
09ca3b4dc0 Update typescript-eslint monorepo to v7.13.1 (#2424)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-06-19 13:33:22 +02:00
renovate[bot]
86afde8612 Update dependency @vector-im/compound-web to v3.3.1 (#2408)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-06-19 13:30:36 +02:00
renovate[bot]
469f0b5983 Update dependency eslint-plugin-react to v7.34.3 (#2410)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-06-19 13:26:40 +02:00
fkwp
69d1beaf28 Merge pull request #2431 from element-hq/renovate/docker-build-push-action-digest
Update docker/build-push-action digest to 94f8f8c
2024-06-18 20:18:56 +02:00
renovate[bot]
7f22f442b1 Update docker/build-push-action digest to 94f8f8c 2024-06-18 18:08:03 +00:00
fkwp
ab0f8fa2e3 Merge pull request #2427 from element-hq/renovate/livekit-components-react-2.x-lockfile
Update dependency @livekit/components-react to v2.3.3
2024-06-18 10:10:43 +02:00
renovate[bot]
f5abbb1e5e Update dependency @livekit/components-react to v2.3.3 2024-06-18 08:08:31 +00:00
fkwp
a80c96d187 Merge pull request #2426 from element-hq/renovate/livekit-components-core-0.x-lockfile
Update dependency @livekit/components-core to v0.10.3
2024-06-18 10:06:44 +02:00
renovate[bot]
fb0c8fb92b Update dependency @livekit/components-core to v0.10.3 2024-06-18 08:05:01 +00:00
fkwp
438a6c2a42 Merge pull request #2425 from element-hq/renovate/docker-build-push-action-digest
Update docker/build-push-action digest to 4367da9
2024-06-18 10:03:30 +02:00
fkwp
0c8cd0842a Merge pull request #2428 from element-hq/renovate/livekit-client-2.x-lockfile
Update dependency livekit-client to v2.3.0
2024-06-18 10:02:52 +02:00
renovate[bot]
b39d35d5d1 Update dependency livekit-client to v2.3.0 2024-06-18 08:00:45 +00:00
renovate[bot]
6f00a961c9 Update docker/build-push-action digest to 4367da9 2024-06-18 07:59:46 +00:00
Timo
0ed7853958 Remove EventType.GroupCallPrefix from widget capabilities (#2399)
Its not used anymore.
2024-06-17 20:04:49 +02:00
renovate[bot]
4acf279f32 Update dependency posthog-js to v1.139.2 (#2414)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-06-17 14:19:18 +02:00
fkwp
a7c065f300 Merge pull request #2422 from element-hq/renovate/docker-build-push-action-digest
Update docker/build-push-action digest to cfed4e9
2024-06-13 20:47:39 +02:00
renovate[bot]
a0d248065d Update docker/build-push-action digest to cfed4e9 2024-06-13 07:42:06 +00:00
fkwp
c18008e039 Merge pull request #2419 from element-hq/renovate/livekit-components-react-2.x-lockfile
Update dependency @livekit/components-react to v2.3.2
2024-06-10 15:24:45 +02:00
renovate[bot]
0bab898c25 Update dependency @livekit/components-react to v2.3.2 2024-06-06 09:54:12 +00:00
Robin
53d1f717c9 Merge pull request #2406 from element-hq/renovate/testing-library-monorepo
Update dependency @testing-library/react to v14.3.1
2024-06-04 12:11:35 -04:00
Robin
0a69664186 Merge pull request #2405 from element-hq/renovate/sentry-vite-plugin-2.x-lockfile
Update dependency @sentry/vite-plugin to v2.18.0
2024-06-04 12:10:26 -04:00
renovate[bot]
d1307e61b9 Update dependency @testing-library/react to v14.3.1 2024-06-04 16:00:57 +00:00
renovate[bot]
a267eca78d Update dependency @sentry/vite-plugin to v2.18.0 2024-06-04 16:00:43 +00:00
Robin
51a8d2b718 Merge pull request #2404 from element-hq/renovate/opentelemetry-instrumentation-user-interaction-0.x
Update dependency @opentelemetry/instrumentation-user-interaction to ^0.38.0
2024-06-04 12:00:35 -04:00
Robin
2d76a3780d Merge pull request #2402 from element-hq/renovate/vite-5.x-lockfile
Update dependency vite to v5.2.12
2024-06-04 11:59:30 -04:00
renovate[bot]
e70818b2da Update dependency @opentelemetry/instrumentation-user-interaction to ^0.38.0 2024-06-04 15:59:12 +00:00
Robin
03144783ac Merge pull request #2401 from element-hq/renovate/prettier-3.x-lockfile
Update dependency prettier to v3.3.0
2024-06-04 11:59:03 -04:00
Robin
b9ab2fdf1b Merge pull request #2293 from element-hq/renovate/opentelemetry-instrumentation-document-load-0.x
Update dependency @opentelemetry/instrumentation-document-load to ^0.38.0
2024-06-04 11:58:28 -04:00
Robin
183a1845bb Merge pull request #2292 from element-hq/renovate/i18next-browser-languagedetector-7.x-lockfile
Update dependency i18next-browser-languagedetector to v7.2.1
2024-06-04 11:58:08 -04:00
Robin
e423fc0ace Merge pull request #2231 from element-hq/renovate/grecaptcha-3.x-lockfile
Update dependency @types/grecaptcha to v3.0.9
2024-06-04 11:57:39 -04:00
Robin
40cbe5408e Merge pull request #2403 from element-hq/renovate/react-monorepo
Update react monorepo
2024-06-04 11:56:52 -04:00
renovate[bot]
2c3e95f401 Update react monorepo 2024-06-04 15:23:02 +00:00
renovate[bot]
1fdff9bbd4 Update dependency @types/grecaptcha to v3.0.9 2024-06-04 15:22:52 +00:00
Robin
bd7209cd40 Merge pull request #2250 from element-hq/renovate/typescript-eslint-monorepo
Update typescript-eslint monorepo to v7.12.0
2024-06-04 11:21:59 -04:00
Robin
70fdc68b13 Fix lints 2024-06-04 11:20:25 -04:00
renovate[bot]
f9bed2c2a9 Update dependency vite to v5.2.12 2024-06-04 14:35:42 +00:00
renovate[bot]
33437d9743 Update dependency i18next-browser-languagedetector to v7.2.1 2024-06-04 14:35:27 +00:00
Robin
1f4139ae0a Merge pull request #2271 from element-hq/renovate/lodash-4.x-lockfile
Update dependency @types/lodash to v4.17.4
2024-06-04 10:35:10 -04:00
Robin
b8ad8baf9d Merge pull request #2335 from element-hq/renovate/i18next-http-backend-2.x-lockfile
Update dependency i18next-http-backend to v2.5.2
2024-06-04 10:34:44 -04:00
Robin
694048dd7f Merge pull request #2391 from element-hq/renovate/react-i18next-14.x-lockfile
Update dependency react-i18next to v14.1.2
2024-06-04 10:34:14 -04:00
Robin
a5088d4ae9 Merge pull request #2392 from element-hq/renovate/vaul-0.x-lockfile
Update dependency vaul to v0.9.1
2024-06-04 10:33:45 -04:00
Robin
d2bdaf7049 Merge pull request #2397 from dreamflasher/patch-1
Remove excessive footer space
2024-06-04 10:11:13 -04:00
Robin
0aeb68b445 Reduce footer space while preserving visual balance 2024-06-04 10:05:21 -04:00
fkwp
f40740edd3 Merge pull request #2400 from element-hq/renovate/livekit-client-2.x-lockfile
Update dependency livekit-client to v2.2.0
2024-06-04 15:46:30 +02:00
renovate[bot]
cd47b63d29 Update dependency livekit-client to v2.2.0 2024-06-04 13:35:35 +00:00
renovate[bot]
07ce272e9f Update typescript-eslint monorepo to v7.12.0 2024-06-03 19:47:09 +00:00
renovate[bot]
a3c4e3e2a5 Update dependency prettier to v3.3.0 2024-06-02 17:36:19 +00:00
Marcel Ackermann
6b6ad16306 remove excessive footer space 2024-06-01 13:10:15 +02:00
Robin
0f38445fdd Merge pull request #2395 from robintown/participants-color
Update participant count color
2024-05-31 08:41:14 -04:00
Robin
b9b53ec251 Update participant count color
It has changed in recent designs.
2024-05-30 21:36:50 -04:00
fkwp
b1a5c8c120 Merge pull request #2393 from element-hq/renovate/docker-build-push-action-digest
Update docker/build-push-action digest to ca052bb
2024-05-29 17:07:35 +02:00
fkwp
b44680149d Merge pull request #2394 from element-hq/renovate/docker-login-action-digest
Update docker/login-action digest to 0d4c9c5
2024-05-29 17:07:17 +02:00
renovate[bot]
cd0cec32b5 Update docker/login-action digest to 0d4c9c5 2024-05-29 14:58:52 +00:00
renovate[bot]
2faa9c9d50 Update docker/build-push-action digest to ca052bb 2024-05-29 14:58:48 +00:00
renovate[bot]
caab45ee7f Update dependency vaul to v0.9.1 2024-05-27 13:03:40 +00:00
renovate[bot]
d3687298e0 Update dependency react-i18next to v14.1.2 2024-05-27 13:02:31 +00:00
fkwp
42612476b8 Merge pull request #2389 from element-hq/renovate/docker-build-push-action-digest
Update docker/build-push-action digest to ef6cba3
2024-05-27 15:01:54 +02:00
fkwp
7021ea6a5c Merge pull request #2390 from element-hq/renovate/docker-login-action-digest
Update docker/login-action digest to db77945
2024-05-27 15:01:38 +02:00
renovate[bot]
ff09631546 Update docker/login-action digest to db77945 2024-05-27 12:31:53 +00:00
renovate[bot]
28a3dfef23 Update dependency @sentry/vite-plugin to v2.17.0 (#2255)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-05-27 14:31:15 +02:00
renovate[bot]
2b5561a88c Update docker/build-push-action digest to ef6cba3 2024-05-27 12:30:42 +00:00
renovate[bot]
9dc740c2de Update dependency @types/node to v20.12.12 (#2388)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-05-27 14:30:20 +02:00
Daniel Kilimnik
0b93374e86 package.json add name field (#2386) 2024-05-27 14:29:15 +02:00
renovate[bot]
d36af0cae6 Update dependency eslint-plugin-deprecate to v0.8.5 (#2387)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-05-27 12:31:52 +02:00
fkwp
7fae106da2 Merge pull request #2383 from element-hq/renovate/livekit-components-core-0.x-lockfile
Update dependency @livekit/components-core to v0.10.2
2024-05-27 11:02:19 +02:00
renovate[bot]
a84b692f20 Update dependency @livekit/components-core to v0.10.2 2024-05-27 08:57:34 +00:00
fkwp
86a5c24750 Merge pull request #2384 from element-hq/renovate/livekit-components-react-2.x-lockfile
Update dependency @livekit/components-react to v2.3.1
2024-05-27 10:56:35 +02:00
fkwp
ed6f02ac56 add manually import resolution for livekit-client/dist/src/room/track/TrackPublication 2024-05-27 08:54:50 +00:00
renovate[bot]
f701886aa9 Update babel monorepo to v7.24.6 (#2229)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-05-24 17:13:50 +02:00
renovate[bot]
d298e3438c Update dependency @livekit/components-react to v2.3.1 2024-05-22 16:01:37 +00:00
Andrew Ferrazzutti
c405b61c66 Wait for a full sync on startup (#2372)
This avoids missing any state not included in the latest cached sync.
2024-05-23 01:00:17 +09:00
renovate[bot]
6be67aa145 Update dependency i18next-http-backend to v2.5.2 2024-05-17 15:12:40 +00:00
renovate[bot]
603c658949 Update dependency @types/lodash to v4.17.4 2024-05-17 04:37:35 +00:00
fkwp
ebc33e003d Merge pull request #2379 from element-hq/renovate/livekit-client-2.x-lockfile
Update dependency livekit-client to v2.1.5
2024-05-16 14:42:42 +02:00
renovate[bot]
023ab9fc47 Update dependency livekit-client to v2.1.5 2024-05-16 12:40:49 +00:00
fkwp
417faf795d Merge pull request #2375 from element-hq/renovate/docker-build-push-action-digest
Update docker/build-push-action digest to 2a53c6c
2024-05-15 15:39:34 +02:00
fkwp
c8fe393fcf Merge pull request #2376 from element-hq/renovate/docker-login-action-digest
Update docker/login-action digest to 70fccc7
2024-05-15 15:39:15 +02:00
fkwp
e6a9555a91 Merge pull request #2377 from element-hq/renovate/docker-metadata-action-digest
Update docker/metadata-action digest to f7b4ed1
2024-05-15 15:38:54 +02:00
fkwp
fd65baed58 Merge pull request #2378 from element-hq/renovate/docker-setup-buildx-action-digest
Update docker/setup-buildx-action digest to 5138f76
2024-05-15 15:38:33 +02:00
renovate[bot]
d079bee5e0 Update docker/setup-buildx-action digest to 5138f76 2024-05-15 13:25:12 +00:00
renovate[bot]
1918478069 Update docker/metadata-action digest to f7b4ed1 2024-05-15 13:25:08 +00:00
renovate[bot]
c6d8d5e137 Update docker/login-action digest to 70fccc7 2024-05-15 13:25:04 +00:00
renovate[bot]
7a4583dcb0 Update docker/build-push-action digest to 2a53c6c 2024-05-15 13:06:40 +00:00
fkwp
929175d826 Merge pull request #2374 from element-hq/renovate/docker-build-push-action-digest
Update docker/build-push-action digest to df19a79
2024-05-15 15:05:58 +02:00
renovate[bot]
49ce642c2d Update docker/build-push-action digest to df19a79 2024-05-14 18:32:46 +00:00
fkwp
ce14c0f6fe Merge pull request #2371 from element-hq/renovate/docker-build-push-action-digest
Update docker/build-push-action digest to 6003d32
2024-05-10 21:00:57 +02:00
renovate[bot]
1a10b67248 Update docker/build-push-action digest to 6003d32 2024-05-10 10:42:22 +00:00
fkwp
eda5f14a19 Merge pull request #2370 from element-hq/renovate/docker-login-action-digest
Update docker/login-action digest to 7840e6d
2024-05-10 12:10:21 +02:00
renovate[bot]
e6683569f8 Update docker/login-action digest to 7840e6d 2024-05-10 07:17:48 +00:00
fkwp
90273c1924 Merge pull request #2365 from element-hq/renovate/docker-login-action-digest
Update docker/login-action digest to d910b14
2024-05-08 09:41:07 +02:00
fkwp
10f49d0d84 Merge pull request #2366 from element-hq/renovate/docker-metadata-action-digest
Update docker/metadata-action digest to 2ee3d30
2024-05-08 09:40:47 +02:00
fkwp
418ee89e0f Merge pull request #2367 from element-hq/renovate/docker-setup-buildx-action-digest
Update docker/setup-buildx-action digest to be3701b
2024-05-07 23:01:56 +02:00
renovate[bot]
a4a57e5307 Update docker/setup-buildx-action digest to be3701b 2024-05-07 15:43:39 +00:00
renovate[bot]
477eb0034a Update docker/metadata-action digest to 2ee3d30 2024-05-07 15:43:34 +00:00
renovate[bot]
5ec57f04c6 Update docker/login-action digest to d910b14 2024-05-07 15:43:30 +00:00
Andrew Ferrazzutti
69cb17adc8 Reword message for failure to join/find room (#2360)
The message originally focused on the old feature of being able to
create a room with a custom URL. Instead, be more direct & say that the
current URL is for an inaccessible room.

This new message is based on what Element Web says for this scenario.
2024-05-07 17:03:45 +09:00
Andrew Ferrazzutti
8718a7139b Don't auto-join knock room on invite after leave (#2362)
If you send a knock that is rejected, or your knock is accepted and you
are later removed from the room, do not automatically accept subsequent
invites to that room.

Note that the auto-join behaviour happened only if the page was not
refreshed after sending a knock.
2024-05-07 16:58:30 +09:00
Andrew Ferrazzutti
94f267b93e Add more valid rooms to the recents list (#2361)
Include:
- all rooms you are a member of
- knock rooms you've knocked on and are waiting for an invite to
- knock rooms you've been invited to in response to a knock
2024-05-07 16:57:53 +09:00
MomentQYC
2151696374 doc: Add a tip about Synapse (#2343)
Co-authored-by: Timo <16718859+toger5@users.noreply.github.com>
2024-05-06 16:33:20 +02:00
fkwp
2679948dbe Merge pull request #2364 from element-hq/renovate/livekit-client-2.x-lockfile
Update dependency livekit-client to v2.1.3
2024-05-06 15:49:26 +02:00
fkwp
86e84028e1 Merge pull request #2363 from element-hq/renovate/docker-build-push-action-digest
Update docker/build-push-action digest to 729f7f4
2024-05-06 15:49:06 +02:00
renovate[bot]
dea6f05b51 Update dependency livekit-client to v2.1.3 2024-05-06 13:44:27 +00:00
renovate[bot]
ac450443a0 Update docker/build-push-action digest to 729f7f4 2024-05-06 13:44:02 +00:00
fkwp
2a0375d93f Merge pull request #2333 from element-hq/fkwp/refactor_gh_action_run-id
refactor run-id handling of GitHub Actions
2024-05-06 15:32:50 +02:00
Andrew Ferrazzutti
56312b2753 Join knock rooms on page load if already invited (#2355)
When visiting the page for a knock room you are already invited to, join
it right away instead of offering to knock (which will fail as long as
you remain invited to the room).
2024-05-04 01:37:58 +09:00
fkwp
137867b096 Merge pull request #2357 from element-hq/renovate/livekit-client-2.x-lockfile
Update dependency livekit-client to v2.1.2
2024-05-03 10:25:02 +02:00
fkwp
0ae62b121e Merge pull request #2356 from element-hq/renovate/livekit-components-react-2.x-lockfile
Update dependency @livekit/components-react to v2.2.1
2024-05-03 10:24:44 +02:00
renovate[bot]
70682a7490 Update dependency livekit-client to v2.1.2 2024-05-03 08:06:42 +00:00
renovate[bot]
7fc0f96ca6 Update dependency @livekit/components-react to v2.2.1 2024-05-03 08:06:32 +00:00
Robin
f50b00e00f Merge pull request #2086 from robintown/layout-state
Add data models for the new call layouts
2024-05-02 16:35:37 -04:00
Robin
e9c98a02f0 Respond to suggestions from code review 2024-05-02 16:32:48 -04:00
Robin
dcb4d10afb Remove unnecessary Tile indirection 2024-05-02 16:00:05 -04:00
Robin
705f9daf5f Fix speaking data taking 10 seconds to be available 2024-05-02 15:59:40 -04:00
Robin
c5e60744a2 Merge branch 'livekit' into layout-state 2024-05-02 15:35:45 -04:00
Timo
3670c36fac Fix audio/video device flickering (#2353)
* Make onError a `useCallback`

Signed-off-by: Timo K <toger5@hotmail.de>
Co-authored-by: Robin <robin@robin.town>
2024-05-02 17:28:36 +02:00
Andrew Ferrazzutti
b5d25f1f2d Drop unsupported field from backend/livekit.yaml (#2349)
environment was removed in v1.6.0: livekit/livekit@10c8582
2024-05-01 19:31:16 +09:00
Timo
51926cad3d Revert "Fix mute flickering. (#2350)" (#2351)
This reverts commit 2ab909fab1.
2024-04-30 20:08:39 +02:00
Timo
2ab909fab1 Fix mute flickering. (#2350)
Use `useMeme` to not change the parameters that are used to call usePreviewDevice.

Signed-off-by: Timo K <toger5@hotmail.de>
2024-04-30 19:57:36 +02:00
fkwp
cfe0b4d8e4 Merge pull request #2346 from element-hq/renovate/livekit-client-2.x-lockfile
Update dependency livekit-client to v2.1.1
2024-04-29 20:30:58 +02:00
renovate[bot]
83795ae4bf Update dependency livekit-client to v2.1.1 2024-04-29 18:28:37 +00:00
fkwp
8a4d4d3144 Merge pull request #2344 from element-hq/renovate/docker-build-push-action-digest
Update docker/build-push-action digest to eb539f4
2024-04-29 12:54:25 +02:00
fkwp
0e7fd791b5 Merge pull request #2345 from element-hq/renovate/peter-evans-create-pull-request-6.x
Update peter-evans/create-pull-request action to v6.0.5
2024-04-29 12:54:08 +02:00
renovate[bot]
96e6ca0c0e Update peter-evans/create-pull-request action to v6.0.5 2024-04-29 10:19:44 +00:00
renovate[bot]
2e0ad5ca69 Update docker/build-push-action digest to eb539f4 2024-04-29 10:19:39 +00:00
renovate[bot]
43f7f9b76c Update dependency @opentelemetry/instrumentation-document-load to ^0.38.0 2024-04-25 20:18:38 +00:00
fkwp
224cd53481 Merge pull request #2339 from element-hq/renovate/livekit-components-react-2.x-lockfile
Update dependency @livekit/components-react to v2.2.0
2024-04-25 17:22:51 +02:00
renovate[bot]
a5f7921a32 Update dependency @livekit/components-react to v2.2.0 2024-04-25 15:20:06 +00:00
fkwp
b8c8e36449 Merge pull request #2338 from element-hq/renovate/actions-upload-artifact-digest
Update actions/upload-artifact digest to 552bf37
2024-04-24 14:32:45 +02:00
renovate[bot]
f07a491bd9 Update actions/upload-artifact digest to 552bf37 2024-04-24 11:22:57 +00:00
fkwp
7fb0eb150d Merge pull request #2319 from element-hq/renovate/node-20.x-lockfile
Update dependency @types/node to v20.12.7
2024-04-23 17:04:29 +02:00
fkwp
6e0a20a213 Merge pull request #2334 from element-hq/renovate/peter-evans-create-pull-request-6.x
Update peter-evans/create-pull-request action to v6.0.4
2024-04-23 16:57:36 +02:00
fkwp
af99d2a60b refactor run-id handling 2024-04-23 16:46:26 +02:00
fkwp
b32d066a76 Merge pull request #2332 from element-hq/renovate/actions-upload-artifact-digest
Update actions/upload-artifact digest to 79616d2
2024-04-23 15:57:10 +02:00
renovate[bot]
a0f9c55194 Update actions/upload-artifact digest to 79616d2 2024-04-23 13:55:23 +00:00
fkwp
bb9cbe26b3 fig gh actions for publish 2024-04-23 15:53:22 +02:00
Timo
5284479ece Knocking support (#2281)
* Add joining with knock room creation flow.

Also add `WaitForInviteView` after knocking.
And appropriate error views when knock failed or gets rejected.

Signed-off-by: Timo K <toger5@hotmail.de>

* Refactor encryption information.

We had lots of enums and booleans to describe the encryption situation.
Now we only use the `EncryptionSystem` "enum" which contains the
additional information like sharedKey. (and we don't use the isRoomE2EE
function that is somewhat confusing since it checks `return widget ===
null && !room.getCanonicalAlias();` which is only indirectly related to
e2ee)

Signed-off-by: Timo K <toger5@hotmail.de>

* Update recent list.

- Don't use deprecated `groupCallEventHander` anymore (it used the old
  `m.call` state event.)
- make the recent list reactive (getting removed from a call removes the
  item from the list)
- support having rooms without shared secret but actual matrix
  encryption in the recent list
- change the share link creation button so that we create a link with
  pwd for sharedKey rooms and with `perParticipantE2EE=true` for matrix
  encrypted rooms.

Signed-off-by: Timo K <toger5@hotmail.de>

* fix types

Signed-off-by: Timo K <toger5@hotmail.de>

* patch js-sdk for linter

Signed-off-by: Timo K <toger5@hotmail.de>

* ignore ts expect error

Signed-off-by: Timo K <toger5@hotmail.de>

* Fix error in widget mode.

We cannot call client.getRoomSummary in widget mode. The code path needs
to throw before reaching this call. (In general we should never call
getRoomSummary if getRoom returns a room)

Signed-off-by: Timo K <toger5@hotmail.de>

* tempDemo

Signed-off-by: Timo K <toger5@hotmail.de>

* remove wait for invite view

Signed-off-by: Timo K <toger5@hotmail.de>

* yarn i18n

Signed-off-by: Timo K <toger5@hotmail.de>

* reset back mute participant count

* add logic to show error view when getting removed

* include reason whenever someone gets removed from a call.

* fix activeRoom not beeing early enough

* fix lints

* add comment about encryption situation

Signed-off-by: Timo K <toger5@hotmail.de>

* Fix lockfile

* Use (unmerged!) RoomSummary type from the js-sdk

Temporarily change the js-sdk dependency to the PR branch that provides
that type

* review

Signed-off-by: Timo K <toger5@hotmail.de>

* review (remove participant count unknown)

Signed-off-by: Timo K <toger5@hotmail.de>

* remove error for unencrypted calls (allow intentional unencrypted calls)

Signed-off-by: Timo K <toger5@hotmail.de>

* update js-sdk

Signed-off-by: Timo K <toger5@hotmail.de>

---------

Signed-off-by: Timo K <toger5@hotmail.de>
Co-authored-by: Andrew Ferrazzutti <andrewf@element.io>
2024-04-23 22:15:13 +09:00
fkwp
be25d77e8b Merge pull request #2323 from element-hq/renovate/livekit-components-react-2.x-lockfile
Update dependency @livekit/components-react to v2.1.3
2024-04-23 15:08:12 +02:00
renovate[bot]
46732cf86b Update dependency @livekit/components-react to v2.1.3 2024-04-23 08:20:34 +00:00
fkwp
42d697068d fix run-id 2024-04-22 18:44:42 +02:00
fkwp
96a1c4bf7a fix gh action run-id for a release (fixed order) 2024-04-22 18:39:19 +02:00
fkwp
85c140bc32 fix gh action run-id for a release 2024-04-22 18:36:42 +02:00
fkwp
affac2da40 fix gh action for a release 2024-04-22 18:04:47 +02:00
Robin
bfb26ca500 Merge branch 'livekit' into layout-state 2024-04-19 13:28:30 -04:00
Robin
257211e8f9 Try disabling LiveKit web audio support
We think there's a chance this is causing some Edge users to not hear any audio.
2024-04-19 13:02:51 -04:00
fkwp
d352fefcaa Merge pull request #2322 from element-hq/renovate/livekit-components-core-0.x
Update dependency @livekit/components-core to ^0.10.0
2024-04-18 17:45:00 +02:00
fkwp
8234211f03 Merge pull request #2324 from element-hq/renovate/livekit-client-2.x-lockfile
Update dependency livekit-client to v2.1.0
2024-04-18 17:44:12 +02:00
fkwp
6d0de07f07 Merge pull request #2321 from element-hq/renovate/actions-upload-artifact-digest
Update actions/upload-artifact digest to b06cde3
2024-04-18 17:43:03 +02:00
renovate[bot]
1ed1b7c60c Update dependency livekit-client to v2.1.0 2024-04-18 15:42:55 +00:00
renovate[bot]
e8810882ef Update dependency @livekit/components-core to ^0.10.0 2024-04-18 15:42:22 +00:00
renovate[bot]
244387dc04 Update actions/upload-artifact digest to b06cde3 2024-04-18 15:42:00 +00:00
fkwp
bfd3a61aef adapt to stricter repo permissions part 3 2024-04-17 15:29:57 +02:00
fkwp
c5793b9e7c adapt to stricter repo permissions part 2 2024-04-17 15:27:05 +02:00
fkwp
4283716dcc adapto to stricter repo permissions 2024-04-17 15:18:49 +02:00
renovate[bot]
4288037f51 Update peter-evans/create-pull-request action to v6.0.4 2024-04-17 12:54:18 +00:00
renovate[bot]
c52d5dc573 Update dependency @types/node to v20.12.7 2024-04-16 15:22:31 +00:00
Timo
379050ff80 Add back posthog connection time tracking (#2316)
Signed-off-by: Timo K <toger5@hotmail.de>
Co-authored-by: Robin <robin@robin.town>
2024-04-16 17:21:37 +02:00
fkwp
df4da4e4ec Merge pull request #2318 from element-hq/renovate/docker-setup-buildx-action-digest
Update docker/setup-buildx-action digest to a530e94
2024-04-16 16:27:06 +02:00
renovate[bot]
99d6ced566 Update docker/setup-buildx-action digest to a530e94 2024-04-16 14:25:51 +00:00
fkwp
46cfa65bc2 Merge pull request #2317 from element-hq/renovate/docker-build-push-action-digest
Update docker/build-push-action digest to 7e6f776
2024-04-16 16:25:26 +02:00
renovate[bot]
067c13ebf7 Update docker/build-push-action digest to 7e6f776 2024-04-16 14:21:31 +00:00
Timo
9f4a107865 Revert "Track connection time on posthog (#2313)" (#2315)
This reverts commit 5e2b652690.
2024-04-16 16:21:07 +02:00
Timo
5e2b652690 Track connection time on posthog (#2313) 2024-04-16 11:48:11 +02:00
Robin
fc4ced7bb3 Merge pull request #2294 from robintown/timeout-experiment
Experiment with different timeouts
2024-04-15 10:50:38 -04:00
fkwp
1381640cdb inputs -> with 2024-04-15 14:47:07 +00:00
fkwp
d56dcaf0eb misssing inputs section 2024-04-15 14:45:23 +00:00
fkwp
1d43bd26ed misssing inputs section 2024-04-15 14:44:49 +00:00
Robin
51cc406af7 Experiment with different timeouts
This lets you set the global variables peerConnectionTimeout and websocketTimeout to see what LiveKit does with different values.
2024-04-15 10:38:18 -04:00
fkwp
03d2818c1f added description 2024-04-15 08:57:30 +00:00
fkwp
e1c71327c5 refactored to reuse the build workflow 2024-04-15 08:53:42 +00:00
fkwp
1baed1184a move vite_app_version to inputs 2024-04-15 08:26:06 +00:00
fkwp
c6fc0bb798 Merge pull request #2311 from element-hq/renovate/docker-metadata-action-digest
Update docker/metadata-action digest to 1294d94
2024-04-15 09:24:42 +02:00
renovate[bot]
d5ccfa2ac5 Update docker/metadata-action digest to 1294d94 2024-04-15 07:23:12 +00:00
fkwp
7793805f1b Merge pull request #2312 from element-hq/renovate/peter-evans-create-pull-request-6.x
Update peter-evans/create-pull-request action to v6.0.3
2024-04-15 09:22:37 +02:00
fkwp
c67040afe7 lint2 2024-04-15 07:21:07 +00:00
fkwp
444297f3d9 lint 2024-04-15 07:19:46 +00:00
renovate[bot]
afb43d049d Update peter-evans/create-pull-request action to v6.0.3 2024-04-13 20:31:15 +00:00
fkwp
93c2ae768e refactored netlify-pr and docker-pr by calling netlify and docker from pr-deploy 2024-04-12 22:19:20 +00:00
fkwp
2bbd882425 remove debug statements 2024-04-12 22:17:52 +00:00
fkwp
e781dfa164 added artifact details 2024-04-12 22:05:21 +00:00
fkwp
fc65c799d8 var typo 2024-04-12 22:02:11 +00:00
fkwp
d9d218cb1f remove pr_number input 2024-04-12 21:59:57 +00:00
fkwp
9946888d63 add docker deploy 2024-04-12 21:57:18 +00:00
fkwp
202388bd79 set pr_number type to string 2024-04-12 21:45:52 +00:00
fkwp
1df5ee05c9 added types 2024-04-12 21:43:09 +00:00
fkwp
ee2214c14d inputs -> with 2024-04-12 21:27:34 +00:00
fkwp
a2066f300b add netlify deploy 2024-04-12 21:22:49 +00:00
fkwp
a0938bad13 add netlify workflow_call 2024-04-12 21:22:35 +00:00
fkwp
9675df8434 add paths-ignore 2024-04-12 21:19:33 +00:00
fkwp
b9a6ee70a8 safe guard 2024-04-12 21:01:45 +00:00
fkwp
5c399fbfb2 safe guard 2024-04-12 20:59:53 +00:00
fkwp
a5231983e8 fix lint 2024-04-12 20:52:58 +00:00
fkwp
76d3117a1c indent 2024-04-12 20:45:28 +00:00
fkwp
6bcfe61a79 lint 2024-04-12 20:43:24 +00:00
fkwp
9fe7f62a63 lint 2024-04-12 20:39:22 +00:00
fkwp
7455104aaf use element-call.yaml 2024-04-12 20:39:05 +00:00
fkwp
96bf809e8a renamed build_resuable.yaml -> element-call.yaml 2024-04-12 20:36:34 +00:00
fkwp
b5a7c55d70 initial 2024-04-12 20:34:08 +00:00
fkwp
c578bcaf91 cleanup 2024-04-12 20:10:45 +00:00
fkwp
908ca2325a clenaup naming 2024-04-12 19:54:18 +00:00
fkwp
a1659c1fe2 cleanup 2024-04-12 19:41:56 +00:00
fkwp
3d7ef061cd debug 2024-04-12 19:32:51 +00:00
fkwp
a04500f102 lint 2024-04-12 19:24:13 +00:00
fkwp
b8aaa6b079 matrix-org/pr-details-action 2024-04-12 19:21:59 +00:00
fkwp
89911c1747 get PR info 2024-04-12 18:58:12 +00:00
fkwp
f7e63bd2f5 dont limit PR branches 2024-04-12 17:52:46 +00:00
fkwp
76bb72d3ea add debug info 2024-04-12 17:42:46 +00:00
fkwp
fd8ee1542b revert pull_request_target to pull_request 2024-04-12 14:06:01 +00:00
fkwp
ef395efaf8 test if pull_request_target will trigger on_workflow 2024-04-12 13:39:04 +00:00
fkwp
8da2f5c1c7 use run-id from current run 2024-04-11 21:26:03 +00:00
fkwp
0bfe12bcbc use run-id from calling workflow 2024-04-11 21:16:45 +00:00
fkwp
63023f542b download artifact from the triggering workflow 2024-04-11 20:35:24 +00:00
fkwp
74ddcee2af add github-token and run-id parameters to download artifact 2024-04-11 19:45:31 +00:00
fkwp
9cce4bc0ad also trigger in case of labeled 2024-04-11 19:38:29 +00:00
fkwp
be44aa0157 apply Keeping your GitHub Actions and workflows secure practises 2024-04-11 19:32:59 +00:00
fkwp
e74095be54 we dont need prdetails going forward (#2309)
* use pull_request event rather than workflow_run

* use default for enable-pull-request-comment and enable-commit-comment

* we dont need prdetails going forward
2024-04-11 13:47:59 +02:00
fkwp
3458ff9716 use pull_request event rather than workflow_run (#2308)
* use pull_request event rather than workflow_run

* use default for enable-pull-request-comment and enable-commit-comment
2024-04-11 11:39:17 +02:00
Timo
dcc04bb10f limit homserver to not cover the whole loginview input with the string. (#2307) 2024-04-11 11:16:45 +02:00
fkwp
36d754f27f Merge pull request #2306 from element-hq/fkwp-patch-1
netlify PR builds switch to build_reusable
2024-04-11 10:16:58 +02:00
fkwp
1daca7a0d9 cleanup 2024-04-11 07:46:26 +00:00
fkwp
884491d60e depend deploy on build 2024-04-11 07:45:59 +00:00
fkwp
9c00d74924 switch to build_reusable 2024-04-11 07:42:56 +00:00
fkwp
f32934d7e4 Merge pull request #2305 from element-hq/fkwp-patch-1
limit docker image creation to element-hq/element-call PRs only
2024-04-11 09:12:56 +02:00
fkwp
4b1505abb7 limit docker image creation to element-hq/element-call PRs only 2024-04-10 19:34:16 +00:00
fkwp
21b4d46f83 Merge pull request #2304 from element-hq/fkwp-patch-1
fix permissions
2024-04-10 17:20:05 +02:00
fkwp
cb113cbfe4 fix permissions 2024-04-10 15:17:10 +00:00
fkwp
fd6032b44f Merge pull request #2303 from element-hq/fkwp-patch-1
specify secrets explicetly
2024-04-10 17:08:06 +02:00
fkwp
229e5f3ce7 cleanup whitespaces part 2 2024-04-10 15:07:01 +00:00
fkwp
4271685c66 cleanup whitespaces 2024-04-10 15:05:10 +00:00
fkwp
c59610a5c1 specify secrets explicetly 2024-04-10 15:01:51 +00:00
fkwp
94ef74b8bf Merge pull request #2302 from element-hq/fkwp-patch-1
workaround env not available in job.if
2024-04-10 16:51:57 +02:00
fkwp
ea014e1b0c workaround env not available in job.if 2024-04-10 14:48:15 +00:00
fkwp
922bb00722 Merge pull request #2301 from element-hq/fkwp-patch-1
gh actions refactor
2024-04-10 16:36:28 +02:00
fkwp
c412e2550d Merge branch 'livekit' into fkwp-patch-1 2024-04-10 16:35:23 +02:00
fkwp
5bad53c63e refactor 2024-04-10 14:29:59 +00:00
fkwp
4cc077a72a typo 2024-04-10 14:08:54 +00:00
Robin
708cb18332 Merge pull request #2286 from robintown/fix-holds
Fix participants disappearing during focus switch (probably)
2024-04-10 09:58:08 -04:00
fkwp
3c3150a6b6 checkout source -> Dockerfile (#2300)
* make build_docker job dependent on build_element_call

* checkout source -> Dockerfile
2024-04-10 15:11:43 +02:00
fkwp
fc525a6e45 checkout source -> Dockerfile 2024-04-10 12:59:32 +00:00
fkwp
545034d26f make build_docker job dependent on build_element_call (#2299) 2024-04-10 14:53:19 +02:00
fkwp
5f7410c809 make build_docker job dependent on build_element_call 2024-04-10 12:46:45 +00:00
fkwp
db24e544bd Merge pull request #2298 from element-hq/fkwp-patch-1
change to overall strategy to use reusable builds
2024-04-10 14:41:32 +02:00
fkwp
71e3fefc00 added trailing newline 2024-04-10 12:37:37 +00:00
fkwp
1aaa161522 change to overall strategy to use reusable builds 2024-04-10 12:31:39 +00:00
fkwp
0b2c78d563 Merge pull request #2297 from element-hq/fkwp-patch-1
different way of checking docker build label
2024-04-10 13:28:03 +02:00
fkwp
876c904eb0 different way of checking docker build label 2024-04-10 11:25:50 +00:00
fkwp
ffd0832b31 Merge pull request #2296 from element-hq/fkwp-patch-1
attempt to create docker pr images
2024-04-09 21:14:00 +02:00
fkwp
907e7bdf52 remove spaces 2024-04-09 19:11:31 +00:00
fkwp
0d997254d0 newline 2024-04-09 19:04:32 +00:00
fkwp
e40efd57c8 remove get unix time 2024-04-09 19:03:56 +00:00
fkwp
096ddce173 attempt to create docker pr images 2024-04-09 20:52:38 +02:00
renovate[bot]
cc279d849f Update dependency @types/node to v20.12.6 (#2267)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-04-09 11:40:01 +02:00
renovate[bot]
dd81ff68dd Update dependency @use-gesture/react to v10.3.1 (#2291)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-04-09 11:39:36 +02:00
fkwp
750e35015e Merge pull request #2290 from element-hq/renovate/docker-setup-buildx-action-digest
Update docker/setup-buildx-action digest to d70bba7
2024-04-08 21:44:47 +02:00
renovate[bot]
97693639dd Update docker/setup-buildx-action digest to d70bba7 2024-04-08 19:40:37 +00:00
fkwp
a88458aebf Merge pull request #2289 from element-hq/renovate/docker-metadata-action-digest
Update docker/metadata-action digest to c314eea
2024-04-08 21:40:08 +02:00
renovate[bot]
beb408aa04 Update docker/metadata-action digest to c314eea 2024-04-08 18:52:08 +00:00
fkwp
a15ded502f Merge pull request #2288 from element-hq/renovate/docker-login-action-digest
Update docker/login-action digest to 5f4866a
2024-04-08 20:51:37 +02:00
renovate[bot]
5963bdae6e Update docker/login-action digest to 5f4866a 2024-04-08 16:59:08 +00:00
fkwp
6c5e73513c Merge pull request #2287 from element-hq/renovate/docker-build-push-action-digest
Update docker/build-push-action digest to f8bc7f4
2024-04-08 18:58:35 +02:00
renovate[bot]
d35a070844 Update docker/build-push-action digest to f8bc7f4 2024-04-08 16:25:14 +00:00
renovate[bot]
c2ff3dc8b7 Update dependency vite to v5.1.7 [SECURITY] (#2282)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-04-08 18:24:44 +02:00
renovate[bot]
63e3a98c02 Update dependency posthog-js to v1.120.2 (#2275)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-04-08 18:21:40 +02:00
fkwp
a7053ac595 Merge pull request #2284 from element-hq/renovate/livekit-components-core-0.x-lockfile
Update dependency @livekit/components-core to v0.9.3
2024-04-08 17:22:17 +02:00
renovate[bot]
75d529e66c Update dependency @livekit/components-core to v0.9.3 2024-04-08 15:18:12 +00:00
fkwp
fe7bb76f01 Merge pull request #2285 from element-hq/renovate/livekit-components-react-2.x-lockfile
Update dependency @livekit/components-react to v2.0.6
2024-04-08 17:17:34 +02:00
renovate[bot]
d78b894a6b Update dependency @livekit/components-react to v2.0.6 2024-04-05 20:31:11 +00:00
Robin
5121b956ca Fix participants disappearing during focus switch (probably)
I discovered that this hook was calling complete on the returned observable almost immediately when it gets mounted. This caused the call view model to never know when the application was switching focuses. At first I thought this was just because I forgot to move the call to complete to the effect's clean-up function, but even with that changed, React still calls the effect twice in strict mode. So, let's just remove the call entirely.
2024-04-05 14:27:53 -04:00
ElementRobot
255b3218a5 Merge pull request #2280 from element-hq/actions/localazy-download
Localazy Download
2024-04-04 11:51:25 +01:00
robintown
1614b2e8bd Translations updates 2024-04-02 18:57:05 +00:00
Timo
3f5c7257b3 make click highlight transparent (#2266)
Signed-off-by: Timo K <toger5@hotmail.de>
2024-03-25 16:02:40 +01:00
fkwp
ccea9fc961 Merge pull request #2278 from element-hq/renovate/livekit-client-2.x-lockfile
Update dependency livekit-client to v2.0.10
2024-03-25 08:44:02 +01:00
renovate[bot]
5ebaad014c Update dependency livekit-client to v2.0.10 2024-03-24 10:46:09 +00:00
fkwp
aa14051755 Merge pull request #2264 from element-hq/renovate/livekit-client-2.x-lockfile
Update dependency livekit-client to v2.0.7
2024-03-21 09:58:34 +01:00
fkwp
e9e79f8ec3 use correct path 2024-03-21 08:57:17 +00:00
fkwp
88471f1462 typo 2024-03-20 13:10:44 +00:00
fkwp
9b8088fb43 protocol is now own npm package 2024-03-20 13:04:01 +00:00
fkwp
8e950e7c0a protocol is now own npm package 2024-03-20 12:58:54 +00:00
renovate[bot]
8de238dfc6 Update dependency livekit-client to v2.0.8 2024-03-20 12:34:46 +00:00
fkwp
2f37787ea3 Merge pull request #2274 from element-hq/renovate/docker-metadata-action-digest
Update docker/metadata-action digest to 38b3677
2024-03-19 14:00:16 +01:00
renovate[bot]
7cf50101b3 Update docker/metadata-action digest to 38b3677 2024-03-19 12:58:22 +00:00
fkwp
518f8c8783 Merge pull request #2273 from element-hq/renovate/docker-build-push-action-digest
Update docker/build-push-action digest to 090ca15
2024-03-19 13:57:50 +01:00
renovate[bot]
f6094378fe Update docker/build-push-action digest to 090ca15 2024-03-18 09:36:58 +00:00
fkwp
44a8dffd08 Merge pull request #2268 from element-hq/renovate/peter-evans-create-pull-request-6.x
Update peter-evans/create-pull-request action to v6.0.2
2024-03-18 10:36:30 +01:00
renovate[bot]
9d2711a736 Update dependency @opentelemetry/instrumentation-user-interaction to ^0.36.0 (#2270)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-03-15 19:50:35 +01:00
renovate[bot]
1a7048f2b8 Update dependency posthog-js to v1.116.0 (#2258)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-03-15 19:47:25 +01:00
renovate[bot]
16bc438ee3 Update peter-evans/create-pull-request action to v6.0.2 2024-03-15 08:35:57 +00:00
renovate[bot]
5d670d4bfb Update dependency @opentelemetry/instrumentation-document-load to ^0.36.0 (#2259)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-03-15 09:34:34 +01:00
renovate[bot]
ca761b9176 Update dependency vite to v5.1.6 (#2257)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-03-15 09:34:14 +01:00
renovate[bot]
d5de8cac2d Update dependency i18next to v23.10.1 (#2256)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-03-15 09:33:24 +01:00
fkwp
1c47a83c04 Merge pull request #2261 from element-hq/renovate/docker-login-action-digest
Update docker/login-action digest to e92390c
2024-03-14 10:16:29 +01:00
fkwp
318702ad13 Merge pull request #2262 from element-hq/renovate/docker-metadata-action-digest
Update docker/metadata-action digest to 7535934
2024-03-14 10:16:10 +01:00
fkwp
bf8a2bba45 Merge pull request #2263 from element-hq/renovate/docker-setup-buildx-action-digest
Update docker/setup-buildx-action digest to 2b51285
2024-03-14 10:15:50 +01:00
fkwp
592386daae Merge pull request #2265 from element-hq/renovate/nwtgck-actions-netlify-3.x
Update nwtgck/actions-netlify action to v3
2024-03-14 10:15:32 +01:00
fkwp
e2bd381f65 Merge pull request #2260 from element-hq/renovate/docker-build-push-action-digest
Update docker/build-push-action digest to 2cdde99
2024-03-14 10:14:18 +01:00
renovate[bot]
28fcdaf6cb Update nwtgck/actions-netlify action to v3 2024-03-14 09:13:20 +00:00
renovate[bot]
88a67b8fc8 Update docker/setup-buildx-action digest to 2b51285 2024-03-14 09:12:01 +00:00
renovate[bot]
09eb666daf Update docker/metadata-action digest to 7535934 2024-03-14 09:11:56 +00:00
renovate[bot]
c8ebd129ed Update docker/login-action digest to e92390c 2024-03-14 09:11:52 +00:00
renovate[bot]
1aede1e24e Update docker/build-push-action digest to 2cdde99 2024-03-14 09:11:49 +00:00
Timo
c932dd8c9b Theme loading without flickering (#2233) 2024-03-13 14:58:21 +01:00
Robin
4a9a58475f Merge pull request #2253 from element-hq/renovate/docker-build-push-action-digest
Update docker/build-push-action digest to af5a7ed
2024-03-11 09:03:08 -05:00
Robin
b503260caa Merge pull request #2254 from element-hq/renovate/livekit-components-react-2.x-lockfile
Update dependency @livekit/components-react to v2.0.3
2024-03-11 09:02:49 -05:00
Robin
7883db3434 Merge pull request #2249 from element-hq/renovate/react-i18next-14.x-lockfile
Update dependency react-i18next to v14.1.0
2024-03-11 09:02:27 -05:00
renovate[bot]
3310484859 Update dependency @livekit/components-react to v2.0.3 2024-03-11 14:00:43 +00:00
Robin
e6aa60edd0 Merge pull request #2232 from element-hq/renovate/node-20.x-lockfile
Update dependency @types/node to v20.11.25
2024-03-11 09:00:41 -05:00
Robin
5a3d625333 Merge pull request #2247 from element-hq/renovate/vite-5.x-lockfile
Update dependency vite to v5.1.5
2024-03-11 09:00:17 -05:00
Robin
163586a80e Merge pull request #2221 from element-hq/renovate/eslint-8.x-lockfile
Update dependency eslint to v8.57.0
2024-03-11 08:59:50 -05:00
renovate[bot]
6d5887b33e Update docker/build-push-action digest to af5a7ed 2024-03-11 13:59:33 +00:00
Robin
8f2371757e Merge pull request #2248 from element-hq/renovate/posthog-js-1.x-lockfile
Update dependency posthog-js to v1.113.0
2024-03-11 08:59:01 -05:00
renovate[bot]
478745a38d Update dependency posthog-js to v1.113.0 2024-03-11 13:28:50 +00:00
Andrew Ferrazzutti
d79359ae66 Drop unsupported field from backend/livekit.yaml
signal_relay.enabled was removed in v1.5.3: livekit/livekit@3f2f850
2024-03-07 16:21:59 -05:00
Andrew Ferrazzutti
f2b5ba24de Provide example config for Apache HTTP Server 2024-03-07 11:47:42 -05:00
renovate[bot]
33ec5b1451 Update dependency react-i18next to v14.1.0 2024-03-07 09:51:04 +00:00
renovate[bot]
0c87fd3b75 Update dependency @types/node to v20.11.25 2024-03-06 20:33:23 +00:00
fkwp
b1586e07a3 Merge pull request #2246 from element-hq/renovate/docker-build-push-action-digest
Update docker/build-push-action digest to 00ae31a
2024-03-06 17:10:22 +01:00
renovate[bot]
b254b38427 Update dependency vite to v5.1.5 2024-03-06 13:44:58 +00:00
renovate[bot]
c3ed8bf139 Update docker/build-push-action digest to 00ae31a 2024-03-06 13:44:34 +00:00
renovate[bot]
661e11a2a4 Update sentry-javascript monorepo to v7.105.0 (#2225)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-03-06 11:36:08 +01:00
renovate[bot]
134a356ba2 Update dependency @livekit/components-react to v2.0.2 (#2244)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-03-06 11:35:32 +01:00
fkwp
be3b1c40d0 Merge pull request #2245 from element-hq/renovate/livekit-client-2.x-lockfile
Update dependency livekit-client to v2.0.5
2024-03-06 11:32:04 +01:00
renovate[bot]
c09d1ecbff Update dependency livekit-client to v2.0.5 2024-03-06 10:30:02 +00:00
renovate[bot]
186be88c24 Update dependency @vector-im/compound-design-tokens to v1.2.0 (#2237)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-03-06 11:29:32 +01:00
renovate[bot]
f8fa8e3722 Update dependency posthog-js to v1.111.0 (#2217)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-03-06 11:28:54 +01:00
renovate[bot]
58b97d8c04 Update dependency @livekit/components-core to v0.9.1 (#2242)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-03-06 11:27:44 +01:00
fkwp
419bf22f2a Merge pull request #2239 from element-hq/renovate/docker-setup-buildx-action-digest
Update docker/setup-buildx-action digest to 56a16b8
2024-03-05 10:29:46 +01:00
renovate[bot]
322bbe38f8 Update docker/setup-buildx-action digest to 56a16b8 2024-03-02 16:28:06 +00:00
fkwp
5bd1832770 Merge pull request #2238 from element-hq/renovate/livekit-client-2.x-lockfile
Update dependency livekit-client to v2.0.4
2024-03-02 17:27:34 +01:00
fkwp
13fa572f26 Merge pull request #2236 from element-hq/renovate/docker-build-push-action-digest
Update docker/build-push-action digest to 831ca17
2024-03-02 17:25:09 +01:00
renovate[bot]
bddf6fb856 Update dependency livekit-client to v2.0.4 2024-03-02 16:25:03 +00:00
Timo
ecc7f01933 Skip effect based register in widget mode. (#2230)
Prohibits error message.

Signed-off-by: Timo K <toger5@hotmail.de>
2024-03-01 12:37:42 +01:00
renovate[bot]
48aef98440 Update docker/build-push-action digest to 831ca17 2024-02-29 13:48:07 +00:00
renovate[bot]
46a12c7476 Update dependency @types/node to v20.11.21 (#2210)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-02-28 11:06:28 +01:00
renovate[bot]
f7681a60ab Update peter-evans/create-pull-request action to v6.0.1 (#2226)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-02-28 11:06:01 +01:00
renovate[bot]
19f56f27a7 Update typescript-eslint monorepo to v7.1.0 (#2222)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-02-28 11:04:46 +01:00
renovate[bot]
1d128bcfe0 Update dependency @vector-im/compound-web to v3.1.3 (#2224)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-02-28 11:03:31 +01:00
renovate[bot]
57548b5d43 Update dependency i18next-parser to v8.13.0 (#2223)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-02-28 11:01:45 +01:00
renovate[bot]
9b83cebcad Update dependency eslint to v8.57.0 2024-02-23 23:21:09 +00:00
fkwp
7784510804 Merge pull request #2218 from element-hq/renovate/docker-setup-buildx-action-digest
Update docker/setup-buildx-action digest to 0d103c3
2024-02-23 17:04:55 +01:00
renovate[bot]
20f305d50b Update docker/setup-buildx-action digest to 0d103c3 2024-02-23 15:52:38 +00:00
fkwp
eb57d6acb3 Merge pull request #2216 from element-hq/renovate/docker-setup-buildx-action-digest
Update docker/setup-buildx-action digest to 5243153
2024-02-23 11:54:21 +01:00
fkwp
041b23a49a Merge pull request #2212 from element-hq/renovate/docker-login-action-digest
Update docker/login-action digest to 5139682
2024-02-23 11:50:00 +01:00
fkwp
2c2f7e78dd Merge pull request #2213 from element-hq/renovate/docker-metadata-action-digest
Update docker/metadata-action digest to 232fc64
2024-02-23 11:49:19 +01:00
renovate[bot]
e72edc6854 Update docker/setup-buildx-action digest to 5243153 2024-02-23 10:49:09 +00:00
fkwp
10db12bb4a Merge pull request #2214 from element-hq/renovate/docker-build-push-action-digest
Update docker/build-push-action digest to b3eddbb
2024-02-23 11:49:03 +01:00
fkwp
42eb4ea808 Merge pull request #2215 from element-hq/renovate/docker-setup-buildx-action-digest
Update docker/setup-buildx-action digest to 65afe61
2024-02-23 11:48:46 +01:00
renovate[bot]
b3f9d316f0 Update docker/setup-buildx-action digest to 65afe61 2024-02-23 09:12:15 +00:00
renovate[bot]
06f238b719 Update docker/metadata-action digest to 232fc64 2024-02-23 09:12:11 +00:00
renovate[bot]
a2f59bd3e1 Update docker/login-action digest to 5139682 2024-02-23 09:12:07 +00:00
renovate[bot]
23d98459e0 Update docker/build-push-action digest to b3eddbb 2024-02-23 09:12:03 +00:00
fkwp
f95b3228cc Merge pull request #2211 from element-hq/renovate/docker-build-push-action-digest
Update docker/build-push-action digest to 62d8db0
2024-02-23 09:19:53 +01:00
renovate[bot]
02eb55be13 Update docker/build-push-action digest to 62d8db0 2024-02-23 01:32:59 +00:00
Robin
d543c1a9c0 Merge branch 'livekit' into layout-state 2024-02-22 15:33:03 -05:00
renovate[bot]
247cbe26d8 Update sentry-javascript monorepo to v7.102.1 (#2209)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-02-22 18:07:59 +01:00
Timo
893132470e Allow Element Call theme configuration via url. (#2203)
Signed-off-by: Timo K <toger5@hotmail.de>
Co-authored-by: Robin <robin@robin.town>
2024-02-22 16:15:46 +01:00
Robin
78fc9bc488 Merge pull request #2207 from element-hq/renovate/posthog-js-1.x-lockfile
Update dependency posthog-js to v1.108.2
2024-02-22 08:57:35 -05:00
Timo
b85a3c5f89 Update js-sdk to support SPA individual sender keys (#2206)
The js-sdk contains a fix so that encrypted messages can be received.

Signed-off-by: Timo K <toger5@hotmail.de>
2024-02-22 14:52:52 +01:00
renovate[bot]
3652c82f73 Update dependency posthog-js to v1.108.2 2024-02-22 13:48:34 +00:00
Robin
5f5eb4ad50 Merge pull request #2204 from element-hq/renovate/posthog-js-1.x-lockfile
Update dependency posthog-js to v1.108.1
2024-02-22 08:47:46 -05:00
renovate[bot]
a05abe3230 Update dependency i18next to v23.10.0 (#2205)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-02-22 14:29:56 +01:00
renovate[bot]
fddbe32b07 Update dependency posthog-js to v1.108.1 2024-02-22 12:25:47 +00:00
Timo
cfb0aa5793 Add customHomeserver url Param (#2190)
* Add customHomeserver url to urlParams.

Signed-off-by: Timo K <toger5@hotmail.de>

* rename to homeserver

Signed-off-by: Timo K <toger5@hotmail.de>

---------

Signed-off-by: Timo K <toger5@hotmail.de>
2024-02-21 21:52:31 +01:00
Timo K
30b3ba302e Revert "Add theme URL param and adjust cpd theme based on it."
This reverts commit f613b17824.
2024-02-21 21:45:11 +01:00
Timo K
f613b17824 Add theme URL param and adjust cpd theme based on it.
Signed-off-by: Timo K <toger5@hotmail.de>
2024-02-21 21:41:40 +01:00
fkwp
11457da794 Merge pull request #2202 from element-hq/renovate/livekit-client-2.x-lockfile
Update dependency livekit-client to v2.0.3
2024-02-21 21:16:50 +01:00
renovate[bot]
b811c34805 Update dependency livekit-client to v2.0.3 2024-02-21 20:12:42 +00:00
Robin
e4b012440b Merge pull request #2201 from robintown/ignore-dialog-types
Tell Renovate to ignore @react-types/dialog
2024-02-21 15:12:21 -05:00
Timo
6539c15177 Dont send register request in widget mode (#2100)
* dont register in widget mode

Signed-off-by: Timo K <toger5@hotmail.de>

* not call registerPasswordlessUser where its called in a widget.

Signed-off-by: Timo K <toger5@hotmail.de>

---------

Signed-off-by: Timo K <toger5@hotmail.de>
2024-02-21 21:07:44 +01:00
Robin
e7b93680af Tell Renovate to ignore @react-types/dialog
It's part of React Spectrum, which we're trying to avoid updating at this time because we're phasing out usage of the libraries and upgrading them is painful.
2024-02-21 15:03:38 -05:00
Robin
87df439020 Merge pull request #2197 from element-hq/renovate/sentry-javascript-monorepo
Update sentry-javascript monorepo to v7.102.0
2024-02-21 15:03:20 -05:00
Robin
d8385c2f6e Merge pull request #2194 from element-hq/renovate/postcss-preset-env-9.x-lockfile
Update dependency postcss-preset-env to v9.4.0
2024-02-21 15:03:01 -05:00
Robin
a0c40d250b Merge pull request #2193 from element-hq/renovate/typescript-eslint-monorepo
Update typescript-eslint monorepo to v7.0.2
2024-02-21 15:02:19 -05:00
Robin
ebdda59b86 Merge pull request #2184 from element-hq/renovate/sass-1.x-lockfile
Update dependency sass to v1.71.1
2024-02-21 15:01:59 -05:00
Robin
68b4714516 Merge pull request #2186 from element-hq/renovate/vitest-monorepo
Update dependency vitest to v1.3.1
2024-02-21 14:58:05 -05:00
renovate[bot]
8cec85bafb Update sentry-javascript monorepo to v7.102.0 2024-02-21 19:57:44 +00:00
renovate[bot]
a88357a0ae Update dependency postcss-preset-env to v9.4.0 2024-02-21 19:57:26 +00:00
Robin
cace73bad7 Merge pull request #2199 from element-hq/renovate/i18next-http-backend-2.x-lockfile
Update dependency i18next-http-backend to v2.5.0
2024-02-21 14:56:24 -05:00
Robin
f8ff5d83cd Merge pull request #2200 from element-hq/renovate/sentry-vite-plugin-2.x-lockfile
Update dependency @sentry/vite-plugin to v2.14.2
2024-02-21 14:56:08 -05:00
Robin
cdfa1c2bcb Merge pull request #2198 from element-hq/renovate/vector-im-compound-design-tokens-1.x-lockfile
Update dependency @vector-im/compound-design-tokens to v1.1.1
2024-02-21 14:55:40 -05:00
renovate[bot]
b8325611a0 Update dependency @sentry/vite-plugin to v2.14.2 2024-02-21 18:57:59 +00:00
renovate[bot]
f0af7e4c52 Update dependency i18next-http-backend to v2.5.0 2024-02-21 16:14:21 +00:00
renovate[bot]
30151435ea Update dependency @vector-im/compound-design-tokens to v1.1.1 2024-02-21 16:14:02 +00:00
renovate[bot]
439fdaad74 fix(deps): update dependency i18next to v23.9.0 (#2187)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-02-21 15:44:25 +01:00
renovate[bot]
9d27f07414 chore(deps): update dependency vite to v5.1.4 (#2195)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-02-21 15:43:29 +01:00
Timo
21e3c606bf Improve focus switch logging (#2153)
Signed-off-by: Timo K <toger5@hotmail.de>
Co-authored-by: Robin <robin@robin.town>
2024-02-21 15:42:52 +01:00
Timo
c4075f736f Federated room joins (#2188) 2024-02-21 15:41:59 +01:00
renovate[bot]
1dfe378700 fix(deps): update dependency @vector-im/compound-web to v3.1.2 (#2185)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-02-21 15:35:46 +01:00
Robin
457941edac Merge pull request #2196 from robintown/no-semantic-commits
Tell Renovate that we don't use semantic commits
2024-02-21 09:17:36 -05:00
Timo
541830f11f rename to fit to frame (#2189)
Signed-off-by: Timo K <toger5@hotmail.de>
2024-02-21 15:17:08 +01:00
Robin
7c9be03a7d Merge pull request #2145 from element-hq/renovate/livekit-client-2.x
Update dependency livekit-client to v2
2024-02-21 09:06:33 -05:00
Robin
160063e29a Upgrade LiveKit client 2024-02-21 09:05:05 -05:00
Robin
ddc4def65f Upgrade LiveKit Components SDK 2024-02-21 08:56:04 -05:00
Robin
f56d2cfbf4 Merge branch 'livekit' into renovate/livekit-client-2.x 2024-02-21 08:50:01 -05:00
Robin
d801360f28 Tell Renovate that we don't use semantic commits
Because the author of the vitest PR used the semantic commit naming convention, Renovate now thinks our entire repo uses semantic commits and has renamed all of its PRs.
2024-02-21 08:46:42 -05:00
renovate[bot]
0f244c12de fix(deps): update dependency posthog-js to v1.108.0 (#2192)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-02-21 14:21:22 +01:00
renovate[bot]
38ceb381d4 chore(deps): update dependency sass to v1.71.1 2024-02-21 03:46:05 +00:00
Robin
6cfc2066c9 Add data models for the new call layouts
This is a start at implementing the call layouts from the new designs. I've added data types to model the contents of each possible layout, and begun implementing the business logic to produce these layouts in the call view model.
2024-02-20 17:19:38 -05:00
renovate[bot]
997284b89a chore(deps): update dependency vitest to v1.3.1 2024-02-20 15:16:27 +00:00
Robin
353b243686 Merge pull request #2083 from robintown/gappy-sync
Remove the gappy sync hack
2024-02-20 10:15:32 -05:00
renovate[bot]
11948449d1 chore(deps): update typescript-eslint monorepo to v7.0.2 2024-02-19 18:22:32 +00:00
David Baker
5aa719565f Merge pull request #2144 from hereje/refactor/replace-jest-with-vitest
refactor: replace jest with vitest
2024-02-16 10:34:00 +00:00
Robin
c97b967b48 Fix types 2024-02-15 23:22:15 -05:00
Robin
458f7cdfb1 Format code 2024-02-15 22:34:59 -05:00
Robin
cd0d73d19e Regenerate lock file 2024-02-15 22:34:34 -05:00
Robin
f967bd1f4e Remove unused mocks 2024-02-15 22:33:17 -05:00
Angel Mendez Cano
d266432427 Merge remote-tracking branch 'upstream/livekit' into refactor/replace-jest-with-vitest 2024-02-15 18:14:23 -06:00
Angel Mendez Cano
429dad6695 chore: remove alias on vitest config file
- alias is no needed
2024-02-15 17:41:49 -06:00
Angel Mendez
964577ad3b chore: update test script
keep test script and remove
test:watch is no longer needed

Co-authored-by: Robin <robin@robin.town>
2024-02-15 17:39:37 -06:00
Angel Mendez
3bd69e26ad chore: specify test type on git workflow
specify job run unit tests

Co-authored-by: Robin <robin@robin.town>
2024-02-15 17:37:50 -06:00
Robin
3460a9cdc6 Merge pull request #2182 from element-hq/renovate/actions-upload-artifact-digest
Update actions/upload-artifact digest to ef09cda
2024-02-15 14:20:12 -05:00
Robin
24b4e3c921 Merge pull request #2181 from element-hq/renovate/sentry-javascript-monorepo
Update sentry-javascript monorepo to v7.101.1
2024-02-15 14:19:59 -05:00
Robin
702d7ef905 Merge pull request #2180 from element-hq/renovate/sentry-vite-plugin-2.x-lockfile
Update dependency @sentry/vite-plugin to v2.14.1
2024-02-15 14:19:44 -05:00
Robin
556370b73a Merge pull request #2179 from element-hq/renovate/node-20.x-lockfile
Update dependency @types/node to v20.11.19
2024-02-15 14:18:43 -05:00
Robin
5864090101 Merge pull request #2178 from element-hq/renovate/docker-login-action-digest
Update docker/login-action digest to 83a00bc
2024-02-15 14:18:29 -05:00
Robin
a8e5a9ed99 Merge pull request #2177 from element-hq/renovate/vite-5.x-lockfile
Update dependency vite to v5.1.3
2024-02-15 14:18:15 -05:00
Robin
4e146c169e Merge pull request #2176 from element-hq/renovate/posthog-js-1.x-lockfile
Update dependency posthog-js to v1.106.0
2024-02-15 14:17:57 -05:00
renovate[bot]
e218430eb0 Update dependency posthog-js to v1.106.0 2024-02-15 19:08:35 +00:00
renovate[bot]
0bf2f1afa8 Update dependency @types/node to v20.11.19 2024-02-15 19:08:17 +00:00
renovate[bot]
958c743052 Update actions/upload-artifact digest to ef09cda 2024-02-15 19:07:48 +00:00
renovate[bot]
c5507776a7 Update sentry-javascript monorepo to v7.101.1 2024-02-15 15:52:22 +00:00
renovate[bot]
024dcff426 Update dependency vite to v5.1.3 2024-02-15 15:52:10 +00:00
renovate[bot]
e241d92179 Update dependency @sentry/vite-plugin to v2.14.1 2024-02-15 15:51:50 +00:00
renovate[bot]
68829b1c2c Update docker/login-action digest to 83a00bc 2024-02-15 12:41:03 +00:00
Robin
6de6fd52b9 Merge pull request #2174 from element-hq/renovate/posthog-js-1.x-lockfile
Update dependency posthog-js to v1.105.8
2024-02-13 12:22:16 -05:00
Robin
f07b10ae12 Merge pull request #2175 from element-hq/renovate/sentry-javascript-monorepo
Update sentry-javascript monorepo to v7.101.0
2024-02-13 12:21:37 -05:00
Robin
388d7aa63d Merge pull request #2172 from element-hq/renovate/major-typescript-eslint-monorepo
Update typescript-eslint monorepo to v7 (major)
2024-02-13 12:21:12 -05:00
renovate[bot]
4c164c131a Update sentry-javascript monorepo to v7.101.0 2024-02-13 15:37:06 +00:00
Timo
bb570b953b Fix: When clicking the "join call now" button twice two guests are registered. (#2173)
Signed-off-by: Timo K <toger5@hotmail.de>
2024-02-13 16:36:09 +01:00
renovate[bot]
3ecddef1ca Update dependency posthog-js to v1.105.8 2024-02-13 12:34:02 +00:00
renovate[bot]
668b2d577b Update typescript-eslint monorepo to v7 2024-02-12 21:17:54 +00:00
Timo
bcd8890f0a Add crop to fit toggle to context menu. (#2107)
Signed-off-by: Timo K <toger5@hotmail.de>
2024-02-12 16:49:32 +01:00
Robin
242d2dc2bc Merge pull request #2170 from element-hq/renovate/posthog-js-1.x-lockfile
Update dependency posthog-js to v1.105.7
2024-02-11 11:28:05 -05:00
renovate[bot]
ba4c5d08ce Update dependency posthog-js to v1.105.7 2024-02-11 13:58:34 +00:00
Angel Mendez Cano
bd9fbc9422 Merge remote-tracking branch 'upstream/livekit' into refactor/replace-jest-with-vitest 2024-02-09 16:22:34 -06:00
Angel Mendez Cano
b8b64c2bf8 chore: update yarn.lock file 2024-02-09 16:11:24 -06:00
Angel Mendez Cano
0aacac3def chore: replace jest job with vitest
- update job id and name
2024-02-09 11:07:43 -06:00
Angel Mendez Cano
307e91e49c chore: test script should not run on watch mode
- update test script
2024-02-09 11:03:56 -06:00
Robin
5502f588eb Fix errors 2024-02-09 11:22:36 -05:00
Robin
f9f99bf016 Merge pull request #2147 from element-hq/renovate/prettier-3.x-lockfile
Update dependency prettier to v3.2.5
2024-02-09 11:05:36 -05:00
Robin
028861cb7b Format code 2024-02-09 11:04:01 -05:00
renovate[bot]
7345665589 Update dependency livekit-client to v2 2024-02-09 16:02:50 +00:00
Robin
adcfbe111a Merge pull request #2167 from element-hq/renovate/vite-5.x-lockfile
Update dependency vite to v5.1.1
2024-02-09 11:02:22 -05:00
Robin
5c4c3b987f Merge pull request #2168 from element-hq/renovate/livekit-client-1.x
Update dependency livekit-client to v1.15.12
2024-02-09 11:02:01 -05:00
renovate[bot]
741f0cc5f7 Update dependency livekit-client to v1.15.12 2024-02-09 15:54:03 +00:00
renovate[bot]
92e0258363 Update dependency vite to v5.1.1 2024-02-09 12:26:37 +00:00
Robin
382e050933 Merge pull request #2163 from element-hq/renovate/posthog-js-1.x-lockfile
Update dependency posthog-js to v1.105.6
2024-02-09 01:40:39 -05:00
Robin
b163a949f4 Merge pull request #2166 from element-hq/renovate/node-20.x-lockfile
Update dependency @types/node to v20.11.17
2024-02-09 01:40:22 -05:00
Robin
b726247720 Merge pull request #2164 from element-hq/renovate/vite-5.x-lockfile
Update dependency vite to v5.1.0
2024-02-09 01:40:05 -05:00
Robin
1a21e27c4f Merge pull request #2165 from element-hq/renovate/vector-im-compound-design-tokens-1.x-lockfile
Update dependency @vector-im/compound-design-tokens to v1.1.0
2024-02-09 01:39:35 -05:00
renovate[bot]
cb2a0b5886 Update dependency @types/node to v20.11.17 2024-02-08 21:09:52 +00:00
renovate[bot]
e203ac7d66 Update dependency posthog-js to v1.105.6 2024-02-08 18:56:26 +00:00
Angel Mendez
9b308f0107 Merge branch 'livekit' into refactor/replace-jest-with-vitest 2024-02-08 09:35:05 -06:00
renovate[bot]
dd4c5f3b48 Update dependency @vector-im/compound-design-tokens to v1.1.0 2024-02-08 15:13:14 +00:00
renovate[bot]
e9017c0a4d Update dependency vite to v5.1.0 2024-02-08 13:58:30 +00:00
Robin
33d6b6f387 Merge pull request #2155 from element-hq/renovate/sentry-javascript-monorepo
Update sentry-javascript monorepo to v7.100.1
2024-02-07 13:48:37 -05:00
Robin
a84bf7985a Merge pull request #2161 from element-hq/renovate/posthog-js-1.x-lockfile
Update dependency posthog-js to v1.105.4
2024-02-07 13:48:10 -05:00
Robin
58868528ab Merge pull request #2158 from element-hq/renovate/react-i18next-14.x-lockfile
Update dependency react-i18next to v14.0.5
2024-02-07 11:40:10 -05:00
Robin
82a64de0cb Merge pull request #2159 from element-hq/renovate/vector-im-compound-web-3.x-lockfile
Update dependency @vector-im/compound-web to v3.1.1
2024-02-07 11:39:49 -05:00
renovate[bot]
70921d77a1 Update dependency @vector-im/compound-web to v3.1.1 2024-02-07 16:08:37 +00:00
renovate[bot]
bb5d8ad5be Update dependency posthog-js to v1.105.4 2024-02-07 16:08:23 +00:00
Angel Mendez
b44bf3b8c2 Merge branch 'livekit' into refactor/replace-jest-with-vitest 2024-02-07 09:34:42 -06:00
Angel Mendez Cano
f6ded35a8c refactor: update yarn.lock file 2024-02-07 09:24:27 -06:00
Angel Mendez
309d28432f Merge branch 'livekit' into refactor/replace-jest-with-vitest 2024-02-07 09:21:14 -06:00
fkwp
2f65f8311c Merge pull request #2151 from element-hq/renovate/actions-upload-artifact-digest
Update actions/upload-artifact digest to 4c0ff1c
2024-02-07 14:49:17 +01:00
renovate[bot]
99f5a22a63 Update sentry-javascript monorepo to v7.100.1 2024-02-07 10:48:06 +00:00
Robin
30fae3d6ba Merge pull request #2157 from element-hq/renovate/eslint-plugin-unicorn-51.x-lockfile
Update dependency eslint-plugin-unicorn to v51.0.1
2024-02-06 17:27:22 -05:00
renovate[bot]
1084fb0751 Update dependency react-i18next to v14.0.5 2024-02-06 22:24:40 +00:00
renovate[bot]
33786f637c Update dependency eslint-plugin-unicorn to v51.0.1 2024-02-06 22:24:26 +00:00
Robin
bfc215a8ed Merge pull request #2143 from element-hq/renovate/sentry-vite-plugin-2.x-lockfile
Update dependency @sentry/vite-plugin to v2.14.0
2024-02-06 13:09:25 -05:00
Robin
661356eac0 Merge pull request #2154 from element-hq/renovate/react-i18next-14.x-lockfile
Update dependency react-i18next to v14.0.4
2024-02-06 13:08:59 -05:00
renovate[bot]
7ef97ca059 Update dependency react-i18next to v14.0.4 2024-02-06 16:43:37 +00:00
renovate[bot]
26806bcc80 Update dependency eslint-plugin-unicorn to v51 (#2152)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-02-06 12:02:50 +01:00
renovate[bot]
e6cf761b5b Update dependency posthog-js to v1.105.0 (#2116)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-02-06 12:02:34 +01:00
renovate[bot]
17e565fe02 Update typescript-eslint monorepo to v6.21.0 (#2150)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-02-06 12:01:41 +01:00
renovate[bot]
6ded931e27 Update dependency @testing-library/jest-dom to v6.4.2 (#2149)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-02-06 12:01:14 +01:00
renovate[bot]
be59c5de25 Update dependency react-i18next to v14.0.3 (#2148)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-02-06 12:00:32 +01:00
renovate[bot]
6164eb9be4 Update actions/upload-artifact digest to 4c0ff1c 2024-02-05 22:52:07 +00:00
renovate[bot]
6f2a247011 Update dependency @sentry/vite-plugin to v2.14.0 2024-02-05 19:15:33 +00:00
fkwp
b24c7a68d3 Merge pull request #2146 from element-hq/renovate/docker-build-push-action-digest
Update docker/build-push-action digest to 4976231
2024-02-05 08:41:37 +01:00
renovate[bot]
5cb3125a2e Update dependency prettier to v3.2.5 2024-02-04 08:00:56 +00:00
renovate[bot]
cd64b8fff3 Update docker/build-push-action digest to 4976231 2024-02-03 15:16:56 +00:00
Angel Mendez Cano
d79a9d9fd7 Merge remote-tracking branch 'upstream/livekit' into refactor/replace-jest-with-vitest 2024-02-02 19:27:31 -06:00
Angel Mendez Cano
9a5afb11f6 feat: update tests using vitest
- replace jest references with vitest
2024-02-02 19:00:38 -06:00
Angel Mendez Cano
2a9f6663c1 feat: add vitest configuration file
- add vitest configuration
- update tsconfig.json so that test files does not throw error
with global definitions such as expect, test
2024-02-02 18:54:50 -06:00
Angel Mendez Cano
cc148fc4e2 refactor: add vitest to project
- add vitest and related dependencies to project
2024-02-02 18:52:09 -06:00
Robin
7f3f13390b Merge pull request #2142 from element-hq/renovate/vaul-0.x
Update dependency vaul to ^0.9.0
2024-02-02 11:11:14 -05:00
Robin
b0768ca33b Merge pull request #2141 from element-hq/renovate/sentry-vite-plugin-2.x-lockfile
Update dependency @sentry/vite-plugin to v2.11.0
2024-02-02 11:09:54 -05:00
Robin
39265a3521 Merge pull request #2140 from element-hq/renovate/testing-library-react-14.x-lockfile
Update dependency @testing-library/react to v14.2.1
2024-02-02 11:09:15 -05:00
Robin
2891ce0857 Merge pull request #2138 from robintown/disable-pip
Remove the disablePictureInPicture Firefox hack
2024-02-02 09:40:03 -05:00
renovate[bot]
0e7522522e Update dependency vaul to ^0.9.0 2024-02-02 00:32:24 +00:00
renovate[bot]
287c7e4ef8 Update dependency @sentry/vite-plugin to v2.11.0 2024-02-02 00:32:16 +00:00
Angel Mendez Cano
56001b8cd2 refactor: remove jest dependencies from project
- remove jest and related dependencies from project
2024-02-01 17:07:36 -06:00
renovate[bot]
c9e04241dc Update dependency @testing-library/react to v14.2.1 2024-02-01 21:56:55 +00:00
Robin
f0faa8a2af Merge pull request #2098 from element-hq/renovate/vector-im-compound-web-3.x
Update dependency @vector-im/compound-web to v3
2024-02-01 14:25:47 -05:00
Robin
d8013582ae Merge pull request #2139 from element-hq/renovate/jest-monorepo
Update dependency @types/jest to v29.5.12
2024-02-01 14:25:19 -05:00
renovate[bot]
9cd719bafc Update dependency @types/jest to v29.5.12 2024-02-01 19:23:54 +00:00
Robin
506abcec72 Merge pull request #2133 from element-hq/renovate/node-20.x-lockfile
Update dependency @types/node to v20.11.16
2024-02-01 14:22:53 -05:00
Robin
71106b5067 Merge pull request #2132 from element-hq/renovate/i18next-http-backend-2.x-lockfile
Update dependency i18next-http-backend to v2.4.3
2024-02-01 14:22:36 -05:00
Robin
92351d5019 Merge pull request #2131 from element-hq/renovate/i18next-23.x-lockfile
Update dependency i18next to v23.8.2
2024-02-01 14:22:21 -05:00
renovate[bot]
a2c0a5ce5d Update dependency @vector-im/compound-web to v3 2024-02-01 19:22:02 +00:00
Robin
50fac66a0c Merge pull request #2135 from element-hq/renovate/codecov-codecov-action-4.x
Update codecov/codecov-action action to v4
2024-02-01 14:21:35 -05:00
renovate[bot]
9b38a71f96 Update dependency @types/node to v20.11.16 2024-02-01 19:21:25 +00:00
Robin
8cced483e7 Merge pull request #2137 from element-hq/renovate/vector-im-compound-design-tokens-1.x
Update dependency @vector-im/compound-design-tokens to v1
2024-02-01 14:20:57 -05:00
Robin
2df15a3464 Merge pull request #2136 from element-hq/renovate/peter-evans-create-pull-request-6.x
Update peter-evans/create-pull-request action to v6
2024-02-01 14:20:45 -05:00
Robin
9669b71440 Update icon imports 2024-02-01 14:19:35 -05:00
Robin
0824963811 Remove the disablePictureInPicture Firefox hack
https://bugzilla.mozilla.org/show_bug.cgi?id=1865748 is fixed in Firefox 122.0, so we can now use the attribute the normal way.
2024-02-01 14:06:53 -05:00
renovate[bot]
c0c15a9a85 Update dependency @vector-im/compound-design-tokens to v1 2024-02-01 15:14:30 +00:00
fkwp
536797820d Merge pull request #2130 from element-hq/renovate/docker-metadata-action-digest
Update docker/metadata-action digest to 8e5442c
2024-02-01 11:59:45 +01:00
renovate[bot]
ad49de5a8c Update peter-evans/create-pull-request action to v6 2024-02-01 10:59:32 +00:00
renovate[bot]
1233c6fc7b Update codecov/codecov-action action to v4 2024-02-01 10:59:26 +00:00
fkwp
f87d1277a0 Merge pull request #2129 from element-hq/renovate/actions-upload-artifact-digest
Update actions/upload-artifact digest to 3a80482
2024-02-01 11:59:24 +01:00
fkwp
b27881ea86 Merge pull request #2134 from element-hq/renovate/livekit-client-1.x
Update dependency livekit-client to v1.15.11
2024-02-01 11:58:56 +01:00
renovate[bot]
ad5f7638dc Update dependency livekit-client to v1.15.11 2024-02-01 09:23:37 +00:00
renovate[bot]
130a3ba4a2 Update dependency i18next-http-backend to v2.4.3 2024-02-01 07:08:02 +00:00
renovate[bot]
68f069c814 Update dependency i18next to v23.8.2 2024-02-01 07:07:45 +00:00
Robin
0dde48f3d0 Merge pull request #2118 from element-hq/renovate/opentelemetry-instrumentation-user-interaction-0.x
Update dependency @opentelemetry/instrumentation-user-interaction to ^0.35.0
2024-01-31 23:29:29 -05:00
Robin
93902b601b Merge pull request #2125 from element-hq/renovate/testing-library-jest-dom-6.x-lockfile
Update dependency @testing-library/jest-dom to v6.4.1
2024-01-31 23:27:33 -05:00
renovate[bot]
9562a4ab8a Update dependency @opentelemetry/instrumentation-user-interaction to ^0.35.0 2024-02-01 04:27:24 +00:00
Robin
8688b21aa9 Merge pull request #2117 from element-hq/renovate/opentelemetry-instrumentation-document-load-0.x
Update dependency @opentelemetry/instrumentation-document-load to ^0.35.0
2024-01-31 23:26:57 -05:00
Robin
dbfb0a9f79 Merge pull request #2124 from element-hq/renovate/typescript-eslint-monorepo
Update typescript-eslint monorepo to v6.20.0
2024-01-31 23:26:35 -05:00
renovate[bot]
9d4875d44f Update docker/metadata-action digest to 8e5442c 2024-02-01 04:26:22 +00:00
Robin
1662a7806a Merge pull request #2115 from element-hq/renovate/node-20.x-lockfile
Update dependency @types/node to v20.11.14
2024-01-31 23:26:11 -05:00
Robin
17a0e92342 Merge pull request #2127 from element-hq/renovate/sentry-javascript-monorepo
Update sentry-javascript monorepo to v7.99.0
2024-01-31 23:25:51 -05:00
renovate[bot]
f27a21f708 Update dependency @testing-library/jest-dom to v6.4.1 2024-02-01 04:25:42 +00:00
renovate[bot]
b7b76262c3 Update actions/upload-artifact digest to 3a80482 2024-02-01 04:25:23 +00:00
Robin
0f0f77a1db Merge pull request #2128 from element-hq/renovate/testing-library-react-14.x-lockfile
Update dependency @testing-library/react to v14.2.0
2024-01-31 23:25:02 -05:00
renovate[bot]
e2957a376c Update dependency @types/node to v20.11.14 2024-01-31 19:55:58 +00:00
renovate[bot]
53039a1121 Update dependency @testing-library/react to v14.2.0 2024-01-30 22:45:30 +00:00
renovate[bot]
d14524052e Update sentry-javascript monorepo to v7.99.0 2024-01-30 19:34:40 +00:00
renovate[bot]
1cc5331cef Update dependency livekit-client to v1.15.10 (#2120)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-01-30 13:35:50 +01:00
renovate[bot]
bafe3f621a Update typescript-eslint monorepo to v6.20.0 2024-01-29 18:15:18 +00:00
fkwp
6c41bc6b34 Merge pull request #2121 from element-hq/renovate/actions-upload-artifact-digest
Update actions/upload-artifact digest to d00351b
2024-01-29 19:14:14 +01:00
Robin
ce03a10e17 Merge pull request #2114 from element-hq/renovate/i18next-23.x-lockfile
Update dependency i18next to v23.8.1
2024-01-29 11:17:18 -05:00
Robin
74acf521f7 Merge pull request #2122 from element-hq/renovate/sdp-transform-2.x-lockfile
Update dependency sdp-transform to v2.14.2
2024-01-29 11:16:30 -05:00
Timo
01d6873658 Bump js-sdk to make EC compatible with created-ts (#2123)
Signed-off-by: Timo K <toger5@hotmail.de>
2024-01-29 17:00:33 +01:00
renovate[bot]
3e5115062f Update dependency sdp-transform to v2.14.2 2024-01-29 15:50:42 +00:00
renovate[bot]
4e5e17c99e Update actions/upload-artifact digest to d00351b 2024-01-29 15:50:25 +00:00
Timo
79c4219dd8 lock lk client version to 1.15.2 (#2119)
Signed-off-by: Timo K <toger5@hotmail.de>
2024-01-29 14:53:34 +01:00
renovate[bot]
acd7d89697 Update dependency i18next to v23.8.1 2024-01-29 11:29:30 +00:00
renovate[bot]
17218236c2 Update dependency @opentelemetry/instrumentation-document-load to ^0.35.0 2024-01-29 11:28:58 +00:00
Robin
e882b4e922 Merge pull request #2113 from element-hq/renovate/node-20.x-lockfile
Update dependency @types/node to v20.11.9
2024-01-28 09:56:39 -05:00
renovate[bot]
315d8b6a94 Update dependency @types/node to v20.11.9 2024-01-28 10:21:53 +00:00
Robin
f529ae141e Merge pull request #2112 from element-hq/renovate/posthog-js-1.x-lockfile
Update dependency posthog-js to v1.103.0
2024-01-26 11:19:20 -05:00
Robin
10c4ae3cf9 Merge pull request #2105 from element-hq/renovate/babel-monorepo
Update babel monorepo to v7.23.9
2024-01-26 11:19:09 -05:00
renovate[bot]
8fdb706766 Update dependency posthog-js to v1.103.0 2024-01-26 16:17:54 +00:00
renovate[bot]
e90aa18d55 Update babel monorepo to v7.23.9 2024-01-26 16:17:42 +00:00
Robin
27e48d3bbb Merge pull request #2106 from element-hq/renovate/uuid-9.x-lockfile
Update dependency @types/uuid to v9.0.8
2024-01-26 11:17:38 -05:00
Robin
1cf86faa12 Merge pull request #2110 from element-hq/renovate/docker-build-push-action-digest
Update docker/build-push-action digest to 94d76d3
2024-01-26 11:17:24 -05:00
Robin
ef1fdf4bf1 Merge pull request #2111 from element-hq/renovate/i18next-23.x-lockfile
Update dependency i18next to v23.7.20
2024-01-26 11:17:11 -05:00
renovate[bot]
dacc83e76e Update dependency i18next to v23.7.20 2024-01-26 14:40:02 +00:00
renovate[bot]
642e3cdd77 Update docker/build-push-action digest to 94d76d3 2024-01-26 14:39:46 +00:00
Timo
35a79364a9 Widget return to lobby (#2099)
* Return to lobby after call ended in widget mode

* Wait for making the widget sticky until connected

Signed-off-by: Timo K <toger5@hotmail.de>
2024-01-26 10:03:08 +01:00
renovate[bot]
3bcb9fb327 Update opentelemetry-js monorepo (#2109)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-01-26 09:20:11 +01:00
renovate[bot]
97f9e8ccd6 Update dependency @types/node to v20.11.7 (#2108)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-01-26 09:19:50 +01:00
renovate[bot]
3522ad8610 Update dependency @types/uuid to v9.0.8 2024-01-25 23:46:28 +00:00
Robin
92c64a1a63 Merge pull request #2104 from element-hq/renovate/sentry-javascript-monorepo
Update sentry-javascript monorepo to v7.98.0
2024-01-25 10:50:47 -05:00
Robin
bfdfb316c5 Merge pull request #2103 from element-hq/renovate/posthog-js-1.x-lockfile
Update dependency posthog-js to v1.102.1
2024-01-25 10:50:18 -05:00
renovate[bot]
27c6a62d66 Update sentry-javascript monorepo to v7.98.0 2024-01-25 13:15:30 +00:00
renovate[bot]
1c67ba28b3 Update dependency posthog-js to v1.102.1 2024-01-25 13:15:09 +00:00
Robin
cf91b49b0b Merge pull request #2095 from element-hq/renovate/sentry-javascript-monorepo
Update sentry-javascript monorepo to v7.95.0
2024-01-25 00:09:53 -05:00
Robin
4a829c8f76 Merge pull request #2097 from element-hq/renovate/posthog-js-1.x-lockfile
Update dependency posthog-js to v1.102.0
2024-01-25 00:09:27 -05:00
Robin
57797645bc Merge pull request #2096 from element-hq/renovate/node-20.x-lockfile
Update dependency @types/node to v20.11.6
2024-01-25 00:09:12 -05:00
Robin
11b567fa86 Merge pull request #2092 from element-hq/renovate/typescript-eslint-monorepo
Update typescript-eslint monorepo to v6.19.1
2024-01-25 00:08:52 -05:00
Robin
0a14d190fe Merge pull request #2091 from element-hq/renovate/testing-library-jest-dom-6.x-lockfile
Update dependency @testing-library/jest-dom to v6.3.0
2024-01-25 00:08:28 -05:00
Robin
1a6e455aee Merge pull request #2102 from element-hq/renovate/i18next-23.x-lockfile
Update dependency i18next to v23.7.19
2024-01-25 00:07:57 -05:00
renovate[bot]
fccae980e5 Update dependency i18next to v23.7.19 2024-01-24 23:03:10 +00:00
renovate[bot]
782eef8957 Update dependency posthog-js to v1.102.0 2024-01-24 16:36:00 +00:00
renovate[bot]
03634cc9b4 Update dependency @testing-library/jest-dom to v6.3.0 2024-01-24 12:47:01 +00:00
renovate[bot]
f358364a51 Update dependency @types/node to v20.11.6 2024-01-24 08:10:50 +00:00
fkwp
10bbadd1e5 Merge pull request #2094 from element-hq/renovate/actions-upload-artifact-digest
Update actions/upload-artifact digest to 26f96df
2024-01-23 22:22:18 +01:00
renovate[bot]
8b26c4d45a Update sentry-javascript monorepo to v7.95.0 2024-01-23 20:17:18 +00:00
renovate[bot]
49225cb5ec Update actions/upload-artifact digest to 26f96df 2024-01-23 20:17:01 +00:00
fkwp
bffeef86f3 Merge pull request #2093 from element-hq/renovate/actions-upload-artifact-digest
Update actions/upload-artifact digest to 52899c8
2024-01-23 09:18:55 +01:00
renovate[bot]
230a9e7784 Update actions/upload-artifact digest to 52899c8 2024-01-22 22:23:28 +00:00
renovate[bot]
7c8b33f632 Update typescript-eslint monorepo to v6.19.1 2024-01-22 20:15:26 +00:00
Robin
531ed984dc Merge pull request #2090 from element-hq/renovate/posthog-js-1.x-lockfile
Update dependency posthog-js to v1.101.0
2024-01-22 11:14:11 -05:00
Robin
6afaf983e1 Merge pull request #2088 from element-hq/renovate/sentry-vite-plugin-2.x-lockfile
Update dependency @sentry/vite-plugin to v2.10.3
2024-01-22 11:10:35 -05:00
Robin
8c5d754067 Merge pull request #2089 from element-hq/renovate/vaul-0.x-lockfile
Update dependency vaul to v0.8.9
2024-01-22 11:10:10 -05:00
renovate[bot]
94c97723d9 Update dependency posthog-js to v1.101.0 2024-01-22 13:38:50 +00:00
renovate[bot]
62bf2e3d99 Update dependency vaul to v0.8.9 2024-01-22 10:54:35 +00:00
renovate[bot]
e495c2be41 Update dependency @sentry/vite-plugin to v2.10.3 2024-01-22 10:54:18 +00:00
Robin
6e7124d265 Merge pull request #2087 from element-hq/renovate/vaul-0.x-lockfile
Update dependency vaul to v0.8.8
2024-01-21 22:21:05 -05:00
renovate[bot]
721cfd75b5 Update dependency vaul to v0.8.8 2024-01-21 21:56:24 +00:00
Robin
b8beb540a8 Merge pull request #2085 from element-hq/renovate/i18next-23.x-lockfile
Update dependency i18next to v23.7.18
2024-01-20 20:15:57 -05:00
renovate[bot]
fe8708a16f Update dependency i18next to v23.7.18 2024-01-21 01:14:00 +00:00
Robin
1bd76e0f1e Merge pull request #2084 from robintown/fork-builds
Fix builds on PRs from forks
2024-01-20 20:13:10 -05:00
Robin
ae1e43b779 Fix builds on PRs from forks 2024-01-20 16:44:17 -05:00
Robin
398a164a6e Merge pull request #2078 from element-hq/renovate/npm-vite-vulnerability
Update dependency vite to v5.0.12 [SECURITY]
2024-01-20 16:05:49 -05:00
Robin
ce596ca645 Merge pull request #2079 from element-hq/renovate/i18next-23.x-lockfile
Update dependency i18next to v23.7.17
2024-01-20 16:04:58 -05:00
Robin
62197121e2 Merge pull request #2080 from element-hq/renovate/react-i18next-14.x-lockfile
Update dependency react-i18next to v14.0.1
2024-01-20 16:04:37 -05:00
Robin
9a0144e918 Merge pull request #2081 from element-hq/renovate/vaul-0.x-lockfile
Update dependency vaul to v0.8.7
2024-01-20 16:04:19 -05:00
Robin
87edaca088 Merge pull request #2082 from element-hq/renovate/livekit-client-1.x-lockfile
Update dependency livekit-client to v1.15.10
2024-01-20 16:02:27 -05:00
Robin
7f571b695e Remove the gappy sync hack
This hack was added in the early days of Element Call, back when we were doing call signaling using non-state room events, and missing part of a room's history could cause calls to fall apart. Nowadays we use state events for signaling, and all this hack is doing is making sync times unnecessarily long, so we can remove it.
2024-01-20 15:55:45 -05:00
renovate[bot]
db825329d6 Update dependency livekit-client to v1.15.10 2024-01-20 19:54:06 +00:00
renovate[bot]
e3b671e902 Update dependency vaul to v0.8.7 2024-01-20 15:39:54 +00:00
renovate[bot]
b3d20964fe Update dependency react-i18next to v14.0.1 2024-01-20 13:03:44 +00:00
renovate[bot]
280e53f4a3 Update dependency i18next to v23.7.17 2024-01-20 13:03:35 +00:00
renovate[bot]
5a737a4cc6 Update dependency vite to v5.0.12 [SECURITY] 2024-01-20 02:02:26 +00:00
renovate[bot]
c204c1a53f Update sentry-javascript monorepo to v7.94.1 (#2076)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-01-19 14:33:36 +01:00
Robin
e78d5a6742 Merge pull request #2075 from element-hq/renovate/actions-upload-artifact-digest
Update actions/upload-artifact digest to 694cdab
2024-01-18 17:55:10 -05:00
renovate[bot]
c1147348f4 Update actions/upload-artifact digest to 694cdab 2024-01-18 22:52:02 +00:00
Robin
e4c8470c2b Merge pull request #2071 from element-hq/renovate/prettier-3.x-lockfile
Update dependency prettier to v3.2.4
2024-01-18 15:00:20 -05:00
Robin
fe4bd32fcd Format code 2024-01-18 14:58:45 -05:00
Robin
bcace65706 Merge pull request #2070 from element-hq/renovate/node-20.x-lockfile
Update dependency @types/node to v20.11.5
2024-01-18 14:57:28 -05:00
Robin
886c77273b Merge pull request #2073 from element-hq/renovate/sass-1.x-lockfile
Update dependency sass to v1.70.0
2024-01-18 14:57:10 -05:00
Robin
63012b3e01 Merge pull request #2072 from element-hq/renovate/livekit-components-react-1.x-lockfile
Update dependency @livekit/components-react to v1.5.3
2024-01-18 14:56:50 -05:00
renovate[bot]
aa08b200e9 Update dependency livekit-client to v1.15.9 (#2074)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-01-18 17:54:07 +01:00
renovate[bot]
e1714f7599 Update dependency sass to v1.70.0 2024-01-18 04:58:46 +00:00
renovate[bot]
930af289b3 Update dependency @livekit/components-react to v1.5.3 2024-01-17 20:41:42 +00:00
renovate[bot]
9b936cf9ce Update dependency prettier to v3.2.4 2024-01-17 12:15:52 +00:00
renovate[bot]
5fb30a8bff Update dependency @types/node to v20.11.5 2024-01-17 08:26:07 +00:00
Robin
e196f049de Merge pull request #2069 from element-hq/renovate/typescript-eslint-monorepo
Update typescript-eslint monorepo to v6.19.0
2024-01-16 10:24:15 -05:00
Robin
3c7130f2bb Merge pull request #2066 from element-hq/renovate/vitejs-plugin-basic-ssl-1.x-lockfile
Update dependency @vitejs/plugin-basic-ssl to v1.1.0
2024-01-16 10:23:54 -05:00
renovate[bot]
4040ac2251 Update dependency @livekit/components-react to v1.5.2 (#2063)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-01-16 13:41:23 +01:00
renovate[bot]
e0e99331be Update opentelemetry-js monorepo (#2067)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-01-16 13:39:33 +01:00
renovate[bot]
108e64328c Update dependency @livekit/components-core to v0.8.3 (#2062)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-01-16 13:38:31 +01:00
renovate[bot]
54c364919b Update dependency prettier to v3.2.2 (#2064)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-01-16 13:37:56 +01:00
renovate[bot]
047fce8661 Update dependency posthog-js to v1.100.0 (#2068)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-01-16 13:37:24 +01:00
renovate[bot]
f9257379f1 Update dependency @types/node to v20.11.4 (#2065)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-01-16 13:37:05 +01:00
renovate[bot]
c9c3ed6c8b Update typescript-eslint monorepo to v6.19.0 2024-01-15 17:47:50 +00:00
renovate[bot]
2989d1467c Update dependency @vitejs/plugin-basic-ssl to v1.1.0 2024-01-15 14:47:00 +00:00
Robin
db522c75f5 Merge pull request #2061 from element-hq/renovate/prettier-3.x-lockfile
Update dependency prettier to v3.2.0
2024-01-12 14:37:18 -05:00
Robin
56cb8a5ee0 Upgrade Prettier to 3.2.1 2024-01-12 14:35:25 -05:00
renovate[bot]
e531ff4f79 Update dependency prettier to v3.2.0 2024-01-12 17:21:51 +00:00
Robin
6e67a0cfc5 Merge pull request #2060 from element-hq/renovate/posthog-js-1.x-lockfile
Update dependency posthog-js to v1.98.2
2024-01-12 09:40:55 -05:00
renovate[bot]
0688b0e9b5 Update dependency posthog-js to v1.98.2 2024-01-11 18:05:33 +00:00
Robin
0a57ea6bec Merge pull request #2057 from element-hq/renovate/posthog-js-1.x-lockfile
Update dependency posthog-js to v1.98.1
2024-01-11 10:05:37 -05:00
renovate[bot]
00cafa9006 Update dependency posthog-js to v1.98.1 2024-01-11 15:04:12 +00:00
Robin
b950fd44d4 Merge pull request #2058 from element-hq/renovate/node-20.x-lockfile
Update dependency @types/node to v20.11.0
2024-01-11 10:03:59 -05:00
Robin
2382ce7ffb Merge pull request #2053 from robintown/revert-contain-strict
Revert an addition of contain: strict
2024-01-11 10:03:39 -05:00
fkwp
61e0dda100 Merge pull request #2056 from element-hq/renovate/actions-upload-artifact-digest
Update actions/upload-artifact digest to 1eb3cb2
2024-01-11 09:47:50 +01:00
renovate[bot]
793736c9d7 Update dependency @types/node to v20.11.0 2024-01-11 07:30:06 +00:00
renovate[bot]
bf7b9c2b19 Update actions/upload-artifact digest to 1eb3cb2 2024-01-10 23:20:57 +00:00
Robin
fb21920126 Merge pull request #2054 from element-hq/renovate/actions-upload-artifact-digest
Update actions/upload-artifact digest to 73d8b66
2024-01-10 14:23:20 -05:00
Robin
a2a5a3f71c Merge pull request #2055 from element-hq/renovate/livekit-client-1.x-lockfile
Update dependency livekit-client to v1.15.8
2024-01-10 14:22:12 -05:00
renovate[bot]
7e13eeb288 Update dependency livekit-client to v1.15.8 2024-01-10 19:05:26 +00:00
renovate[bot]
f80c36eb7f Update actions/upload-artifact digest to 73d8b66 2024-01-10 19:05:09 +00:00
Robin
2865a6c77e Revert an addition of contain: strict
I thought that adding isolation: isolate to the React root had fixed the Firefox layering glitches, but today I've started noticing those glitches again.
2024-01-10 11:04:36 -05:00
Robin
bb081f4241 Merge pull request #2052 from element-hq/renovate/actions-upload-artifact-digest
Update actions/upload-artifact digest to c320f57
2024-01-10 10:52:52 -05:00
renovate[bot]
477d0e4c81 Update actions/upload-artifact digest to c320f57 2024-01-10 15:49:05 +00:00
Robin
98f78d3196 Merge pull request #2051 from element-hq/renovate/vector-im-compound-web-2.x
Update dependency @vector-im/compound-web to v2
2024-01-10 10:48:47 -05:00
Robin
d4780b2d63 Use the new isTriggerInteractive tooltip prop 2024-01-10 10:46:13 -05:00
Robin
d3825648f2 Add mandatory TooltipProvider 2024-01-10 09:41:43 -05:00
Robin
1240a6d012 Merge pull request #2049 from element-hq/renovate/livekit-client-1.x-lockfile
Update dependency livekit-client to v1.15.7
2024-01-10 09:38:25 -05:00
Robin
c954582a03 Merge pull request #2048 from element-hq/renovate/node-20.x-lockfile
Update dependency @types/node to v20.10.8
2024-01-10 09:38:00 -05:00
Robin
34d5cc3959 Merge pull request #2047 from element-hq/renovate/posthog-js-1.x-lockfile
Update dependency posthog-js to v1.97.1
2024-01-10 09:37:44 -05:00
Robin
8e867f8fd3 Merge pull request #2046 from element-hq/renovate/vector-im-compound-design-tokens-0.x-lockfile
Update dependency @vector-im/compound-design-tokens to v0.1.1
2024-01-10 09:37:29 -05:00
Robin
02016bb950 Merge pull request #2044 from element-hq/renovate/eslint-plugin-unicorn-50.x
Update dependency eslint-plugin-unicorn to v50
2024-01-10 09:36:54 -05:00
Robin
e7a79932b9 Merge pull request #2043 from element-hq/renovate/typescript-eslint-monorepo
Update typescript-eslint monorepo to v6.18.1
2024-01-10 09:36:29 -05:00
Robin
e8c13043eb Merge pull request #2045 from element-hq/renovate/react-i18next-14.x
Update dependency react-i18next to v14
2024-01-10 09:35:34 -05:00
Robin
b29a576890 Merge pull request #2042 from element-hq/renovate/sentry-javascript-monorepo
Update sentry-javascript monorepo to v7.93.0
2024-01-10 09:35:07 -05:00
renovate[bot]
a2243e9984 Update dependency @vector-im/compound-web to v2 2024-01-10 14:35:05 +00:00
Robin
1bf9070e6e Merge pull request #2041 from element-hq/renovate/babel-monorepo
Update dependency @babel/preset-env to v7.23.8
2024-01-10 09:34:36 -05:00
renovate[bot]
170e2d1c02 Update sentry-javascript monorepo to v7.93.0 2024-01-10 14:09:55 +00:00
renovate[bot]
b9544def44 Update dependency livekit-client to v1.15.7 2024-01-10 10:36:04 +00:00
renovate[bot]
ca325a2f06 Update dependency posthog-js to v1.97.1 2024-01-09 19:31:50 +00:00
renovate[bot]
33006d2321 Update dependency @types/node to v20.10.8 2024-01-09 17:12:06 +00:00
renovate[bot]
e202785458 Update dependency @vector-im/compound-design-tokens to v0.1.1 2024-01-09 11:36:32 +00:00
renovate[bot]
bf843adeac Update dependency react-i18next to v14 2024-01-09 04:36:32 +00:00
renovate[bot]
16ad91e48c Update dependency eslint-plugin-unicorn to v50 2024-01-09 00:45:58 +00:00
renovate[bot]
2f474f4ae4 Update typescript-eslint monorepo to v6.18.1 2024-01-09 00:45:50 +00:00
renovate[bot]
069dd4a47e Update dependency @babel/preset-env to v7.23.8 2024-01-08 23:24:26 +00:00
Robin
e1b6b9291f Merge pull request #2040 from element-hq/renovate/vaul-0.x
Update dependency vaul to ^0.8.0
2024-01-08 13:46:26 -05:00
Robin
722c4c72ba Merge pull request #2039 from element-hq/renovate/opentelemetry-instrumentation-user-interaction-0.x-lockfile
Update dependency @opentelemetry/instrumentation-user-interaction to v0.34.1
2024-01-08 13:27:41 -05:00
renovate[bot]
dea17db6f9 Update dependency @opentelemetry/instrumentation-user-interaction to v0.34.1 2024-01-08 18:04:39 +00:00
Robin
efea2198af Merge pull request #2038 from element-hq/renovate/opentelemetry-instrumentation-document-load-0.x-lockfile
Update dependency @opentelemetry/instrumentation-document-load to v0.34.1
2024-01-08 13:04:13 -05:00
Robin
fef02ab6de Merge pull request #2037 from element-hq/renovate/docker-metadata-action-digest
Update docker/metadata-action digest to dbef880
2024-01-08 13:03:48 -05:00
Robin
175f3ee638 Merge pull request #2028 from element-hq/renovate/testing-library-jest-dom-6.x-lockfile
Update dependency @testing-library/jest-dom to v6.2.0
2024-01-08 13:03:28 -05:00
renovate[bot]
d9fc616da6 Update dependency vaul to ^0.8.0 2024-01-08 18:00:31 +00:00
Robin
a03126c989 Merge pull request #2024 from element-hq/renovate/node-20.x-lockfile
Update dependency @types/node to v20.10.7
2024-01-08 13:00:03 -05:00
Robin
7089d12681 Merge pull request #2023 from element-hq/renovate/testing-library-user-event-14.x-lockfile
Update dependency @testing-library/user-event to v14.5.2
2024-01-08 12:59:47 -05:00
Robin
f5b63ef0c6 Merge pull request #2030 from element-hq/renovate/i18next-parser-8.x-lockfile
Update dependency i18next-parser to v8.12.0
2024-01-08 12:55:48 -05:00
renovate[bot]
76d94f4563 Update dependency i18next-parser to v8.12.0 2024-01-08 17:48:51 +00:00
Robin
d13f2484b7 Merge pull request #2034 from element-hq/renovate/i18next-23.x-lockfile
Update dependency i18next to v23.7.16
2024-01-08 12:48:28 -05:00
Robin
1dee3f4a5a Merge pull request #2026 from element-hq/renovate/sass-1.x-lockfile
Update dependency sass to v1.69.7
2024-01-08 12:48:05 -05:00
Robin
ff8cf1b5a9 Merge pull request #2027 from element-hq/renovate/vite-5.x-lockfile
Update dependency vite to v5.0.11
2024-01-08 12:47:43 -05:00
renovate[bot]
1cf72c3008 Update dependency @opentelemetry/instrumentation-document-load to v0.34.1 2024-01-08 17:24:11 +00:00
Robin
c2e70f6b7e Merge pull request #2029 from element-hq/renovate/eslint-8.x-lockfile
Update dependency eslint to v8.56.0
2024-01-08 12:23:38 -05:00
renovate[bot]
a7c5558718 Update dependency @testing-library/jest-dom to v6.2.0 2024-01-08 17:15:50 +00:00
renovate[bot]
65895bb37b Update docker/metadata-action digest to dbef880 2024-01-08 17:15:32 +00:00
Robin
76c3125900 Merge pull request #1989 from robintown/tile-updates
Video tile redesign/refactor
2024-01-08 12:15:14 -05:00
renovate[bot]
d4dcf18bfb Update dependency @types/node to v20.10.7 2024-01-07 17:34:37 +00:00
Robin
1865ccbaf6 Update Compound Web for realsies 2024-01-05 13:56:56 -05:00
Robin
35acd83df8 Update Compound Web 2024-01-05 13:51:39 -05:00
renovate[bot]
11db5d2217 Update dependency vite to v5.0.11 2024-01-05 11:16:27 +00:00
renovate[bot]
ced0d14a54 Update dependency i18next to v23.7.16 2024-01-04 12:29:33 +00:00
fkwp
3d9b6283ef Merge pull request #2033 from element-hq/renovate/livekit-client-1.x-lockfile
Update dependency livekit-client to v1.15.6
2024-01-04 13:29:05 +01:00
renovate[bot]
6e73807ca9 Update dependency livekit-client to v1.15.6 2024-01-04 12:27:04 +00:00
fkwp
64486934ea Merge pull request #2025 from element-hq/renovate/livekit-client-1.x-lockfile
Update dependency livekit-client to v1.15.5
2024-01-04 13:26:32 +01:00
renovate[bot]
90c2daf7dd Update dependency eslint to v8.56.0 2024-01-04 07:28:42 +00:00
renovate[bot]
3dfc6ba29e Update dependency sass to v1.69.7 2024-01-04 01:40:58 +00:00
renovate[bot]
353e69449f Update dependency livekit-client to v1.15.5 2024-01-04 01:40:48 +00:00
renovate[bot]
996c13ff10 Update dependency @testing-library/user-event to v14.5.2 2024-01-03 22:59:08 +00:00
Robin
cd5cd380d3 Update for latest context menu changes 2024-01-03 17:00:09 -05:00
Robin
21b91c503e Merge branch 'livekit' into tile-updates 2024-01-03 16:59:12 -05:00
Robin
ec06c84fea Merge pull request #2012 from element-hq/renovate/dawidd6-action-download-artifact-3.x
Update dawidd6/action-download-artifact action to v3
2024-01-03 14:49:22 -05:00
Robin
765d434b16 Merge pull request #2013 from element-hq/renovate/docker-metadata-action-digest
Update docker/metadata-action digest to 9dc751f
2024-01-03 14:49:05 -05:00
Robin
14e7bafd93 Merge pull request #2009 from element-hq/renovate/actions-upload-artifact-4.x
Update actions/upload-artifact action to v4
2024-01-03 14:48:49 -05:00
Robin
c6604f2d37 Merge pull request #2006 from element-hq/renovate/actions-upload-artifact-digest
Update actions/upload-artifact digest to cf8714c
2024-01-03 14:47:52 -05:00
Robin
a8a5035457 Merge pull request #2021 from element-hq/renovate/babel-monorepo
Update babel monorepo to v7.23.7
2024-01-03 14:47:12 -05:00
Robin
2f5d024e14 Merge pull request #1991 from element-hq/renovate/sentry-javascript-monorepo
Update sentry-javascript monorepo to v7.91.0
2024-01-03 14:46:44 -05:00
Robin
918bd2fb82 Merge pull request #2010 from element-hq/renovate/eslint-plugin-import-2.x-lockfile
Update dependency eslint-plugin-import to v2.29.1
2024-01-03 14:46:19 -05:00
renovate[bot]
feae7ba558 Update babel monorepo to v7.23.7 2024-01-03 19:42:35 +00:00
Robin
50c2545c7e Merge pull request #2001 from element-hq/renovate/i18next-23.x-lockfile
Update dependency i18next to v23.7.15
2024-01-03 14:42:03 -05:00
Robin
c3a09e0b49 Merge pull request #2020 from element-hq/renovate/classnames-2.x-lockfile
Update dependency classnames to v2.5.1
2024-01-03 14:41:20 -05:00
renovate[bot]
b0e22573b1 Update dependency i18next to v23.7.15 2024-01-03 19:35:24 +00:00
Robin
83142a85bc Merge pull request #1857 from element-hq/renovate/eslint-plugin-jsx-a11y-6.x-lockfile
Update dependency eslint-plugin-jsx-a11y to v6.8.0
2024-01-03 14:34:53 -05:00
Robin
54dad9430a Fix lint error 2024-01-03 14:27:39 -05:00
Robin
76d3658061 Merge pull request #2014 from robintown/display-name-lints
Ensure that all our components have display names
2024-01-03 12:09:47 -05:00
Murat Ersin
f25f5776a0 The resolved bug comment for Livekit has been deleted. (#2015)
This comment has been deleted to avoid confusion because the mentioned issue has been resolved with livekit-client version 1.15.5.
2024-01-02 14:53:53 +01:00
renovate[bot]
bc4166e742 Update dependency classnames to v2.5.1 2023-12-29 16:07:42 +00:00
renovate[bot]
3455dd7418 Update sentry-javascript monorepo to v7.91.0 2023-12-22 13:42:31 +00:00
Robin
d95336a7a0 Ensure that all our components have display names
This turns on a lint rule to require display names for all of our components, which makes it a lot easier to find your way around the component tree in React's dev tools.
2023-12-19 11:00:33 -05:00
renovate[bot]
9853de3852 Update actions/upload-artifact digest to cf8714c 2023-12-19 00:39:05 +00:00
Robin
b2bc8edcc1 Refactor/redesign video tiles 2023-12-18 16:59:48 -05:00
renovate[bot]
1f71f2c910 Update docker/metadata-action digest to 9dc751f 2023-12-18 12:41:59 +00:00
renovate[bot]
c450bcebf5 Update dawidd6/action-download-artifact action to v3 2023-12-15 12:23:15 +00:00
renovate[bot]
0ab3e0e090 Update dependency posthog-js to v1.96.1 (#2011)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-12-15 13:22:57 +01:00
renovate[bot]
980b0fe1c5 Update dependency vite to v5.0.9 (#2002)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-12-15 13:01:03 +01:00
renovate[bot]
8013c95e3b Update dependency eslint-plugin-import to v2.29.1 2023-12-15 10:21:34 +00:00
renovate[bot]
9be2eef9fb Update opentelemetry-js monorepo (#2008)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-12-15 11:21:03 +01:00
renovate[bot]
4e30758e6c Update actions/upload-artifact action to v4 2023-12-14 17:44:38 +00:00
renovate[bot]
1c874ef4bb Update dependency @livekit/components-react to v1.5.1 (#2007)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-12-14 18:43:56 +01:00
renovate[bot]
d8d37923a2 Update dependency posthog-js to v1.95.1 (#2004)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-12-14 16:38:54 +01:00
Robin
726845d690 Merge pull request #2003 from element-hq/renovate/livekit-components-react-1.x-lockfile
Update dependency @livekit/components-react to v1.5.0
2023-12-13 16:44:23 -05:00
renovate[bot]
74cc970a0e Update dependency @livekit/components-react to v1.5.0 2023-12-13 21:39:46 +00:00
Robin
5e75eddfe2 Merge pull request #2000 from element-hq/fheese/github_rename_vectorim_elementhq
rename vector-im to element-hq in all tooling related files
2023-12-13 14:48:20 -05:00
fkwp
75b71c38db rename vector-im to element-hq in all tooling related files 2023-12-12 21:02:27 +01:00
renovate[bot]
863937d0db Update typescript-eslint monorepo to v6.14.0 (#1999)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-12-12 10:18:27 +01:00
renovate[bot]
07289380c5 Update dependency eslint-plugin-jsx-a11y to v6.8.0 2023-12-11 18:19:12 +00:00
renovate[bot]
634ee2baa9 Update babel monorepo to v7.23.6 (#1997)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-12-11 19:18:46 +01:00
renovate[bot]
bf5e9457c5 Update dependency posthog-js to v1.94.2 (#1996)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-12-11 10:38:20 +01:00
renovate[bot]
2ea62d6590 Update dependency posthog-js to v1.94.1 (#1994)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-12-11 10:26:45 +01:00
renovate[bot]
eae1b2926d Update dependency prettier to v3.1.1 (#1995)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-12-11 10:25:56 +01:00
renovate[bot]
e7cb51a20b Update dependency livekit-client to v1.15.4 (#1993)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-12-11 10:23:22 +01:00
Robin
b0dc53c2ad Merge pull request #1985 from vector-im/renovate/vite-5.x-lockfile
Update dependency vite to v5.0.7
2023-12-08 10:28:31 -05:00
Robin
d532b3193a Merge pull request #1984 from vector-im/renovate/jest-monorepo
Update dependency @types/jest to v29.5.11
2023-12-08 10:26:01 -05:00
Robin
5961e44a11 Merge pull request #1988 from vector-im/renovate/typescript-5.x-lockfile
Update dependency typescript to v5.3.3
2023-12-08 10:25:45 -05:00
Robin
3b2b1ed094 Merge pull request #1990 from vector-im/renovate/node-20.x-lockfile
Update dependency @types/node to v20.10.4
2023-12-08 10:25:29 -05:00
Robin
73d699393a Merge pull request #1987 from vector-im/renovate/i18next-23.x-lockfile
Update dependency i18next to v23.7.8
2023-12-08 10:25:13 -05:00
renovate[bot]
76c8181d22 Update dependency vite to v5.0.7 2023-12-08 13:53:00 +00:00
fkwp
e27959911d Merge pull request #1992 from vector-im/fheese/bump_js-sdk
bump matrix-js-sdk Update package.json
2023-12-08 11:07:52 +01:00
fkwp
62dea32d0d bump matrix-js-sdk Update package.json 2023-12-08 10:33:22 +01:00
renovate[bot]
6c1663a6c6 Update dependency @types/node to v20.10.4 2023-12-07 08:17:45 +00:00
renovate[bot]
8406193da4 Update dependency typescript to v5.3.3 2023-12-06 22:27:38 +00:00
renovate[bot]
699cdceafe Update dependency i18next to v23.7.8 2023-12-06 22:27:25 +00:00
renovate[bot]
22ecb65d5f Update dependency @types/jest to v29.5.11 2023-12-06 01:34:45 +00:00
renovate[bot]
3e11f63ce5 Update dependency posthog-js to v1.93.6 (#1983)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-12-05 14:22:14 +01:00
Robin
b2f7f5ac41 Merge pull request #1982 from robintown/screen-share-regression
Don't confuse screen share tiles with user media
2023-12-05 03:08:40 -05:00
Robin
4ab7e572da Merge pull request #1981 from vector-im/renovate/sentry-javascript-monorepo
Update sentry-javascript monorepo to v7.85.0
2023-12-04 23:56:49 -05:00
Robin
e8c9444c9c Don't confuse screen share tiles with user media 2023-12-04 23:51:15 -05:00
renovate[bot]
89aed0bdd7 Update sentry-javascript monorepo to v7.85.0 2023-12-04 23:20:45 +00:00
Robin
e964dce740 Merge pull request #1979 from vector-im/renovate/vitejs-plugin-react-4.x-lockfile
Update dependency @vitejs/plugin-react to v4.2.1
2023-12-04 14:49:49 -05:00
Robin
8f0e7a4585 Merge pull request #1980 from vector-im/renovate/typescript-eslint-monorepo
Update typescript-eslint monorepo to v6.13.2
2023-12-04 13:49:58 -05:00
renovate[bot]
145f79690a Update typescript-eslint monorepo to v6.13.2 2023-12-04 18:46:21 +00:00
renovate[bot]
f387916a52 Update dependency @vitejs/plugin-react to v4.2.1 2023-12-04 18:46:03 +00:00
Robin
4db5e42bf2 Merge pull request #1977 from vector-im/renovate/docker-metadata-action-digest
Update docker/metadata-action digest to 31cebac
2023-12-04 13:45:38 -05:00
Robin
a46c043b3f Merge pull request #1961 from robintown/view-models
Start refactoring some business logic into view models
2023-12-04 11:16:25 -05:00
Robin
c25d54ef75 Upgrade @livekit/components-core 2023-12-04 11:12:25 -05:00
renovate[bot]
46999cf22b Update dependency vite to v5.0.5 (#1978)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-12-04 12:52:23 +01:00
renovate[bot]
132e0be753 Update docker/metadata-action digest to 31cebac 2023-12-04 10:58:43 +00:00
Robin
6dafa274b8 Merge pull request #1975 from vector-im/renovate/eslint-config-prettier-9.x-lockfile
Update dependency eslint-config-prettier to v9.1.0
2023-12-03 18:19:09 -05:00
Robin
94f3e64182 Merge pull request #1976 from vector-im/renovate/node-20.x-lockfile
Update dependency @types/node to v20.10.3
2023-12-03 18:18:53 -05:00
Robin
d7b353032c Merge pull request #1941 from robintown/ignore-react-spectrum
Ignore React Spectrum updates
2023-12-03 18:18:23 -05:00
renovate[bot]
a1df36368f Update dependency @types/node to v20.10.3 2023-12-03 19:20:08 +00:00
renovate[bot]
0683387ed6 Update dependency eslint-config-prettier to v9.1.0 2023-12-02 09:56:13 +00:00
Robin
169ccd9de5 Start refactoring some business logic into view models
As Element Call grows in complexity, it has become a pain point that our business logic remains so tightly coupled to the UI code. In particular, this has made testing difficult, and the complex semantics of React hooks are not a great match for arbitrary business logic. Here, I show the beginnings of what it would look like for us to adopt the MVVM pattern. I've created a CallViewModel and TileViewModel that expose their state to the UI as rxjs Observables, as well as a couple of helper functions for consuming view models in React code.

This should contain no user-visible changes, but we need to watch out for regressions particularly around focus switching and promotion of speakers, because this was the logic I chose to refactor first.
2023-12-01 17:09:21 -05:00
Robin
445c7c4e0c Merge pull request #1964 from vector-im/renovate/sentry-javascript-monorepo
Update sentry-javascript monorepo to v7.84.0
2023-12-01 17:06:00 -05:00
Robin
b9f946a71a Merge pull request #1974 from vector-im/renovate/eslint-8.x-lockfile
Update dependency eslint to v8.55.0
2023-12-01 17:00:02 -05:00
Robin
74a8495750 Merge pull request #1965 from vector-im/renovate/typescript-eslint-monorepo
Update typescript-eslint monorepo to v6.13.1
2023-12-01 16:58:05 -05:00
Robin
be56ade561 Merge pull request #1966 from vector-im/renovate/actions-setup-node-4.x
Update actions/setup-node action to v4
2023-12-01 16:57:30 -05:00
renovate[bot]
607c44ba5e Update sentry-javascript monorepo to v7.84.0 2023-12-01 21:56:31 +00:00
renovate[bot]
dec92a479d Update dependency eslint to v8.55.0 2023-12-01 21:56:16 +00:00
Robin
195ef859ee Merge pull request #1973 from vector-im/renovate/node-20.x-lockfile
Update dependency @types/node to v20.10.2
2023-12-01 16:56:16 -05:00
Robin
63d905ed63 Merge pull request #1967 from vector-im/renovate/vite-5.x
Update dependency vite to v5
2023-12-01 16:55:47 -05:00
Robin
9226b87c88 Merge pull request #1970 from robintown/firefox-visual-glitches
Fix a couple of visual glitches on Firefox
2023-12-01 16:52:00 -05:00
fkwp
f3daeeffc2 Merge pull request #1971 from vector-im/renovate/docker-build-push-action-digest
Update docker/build-push-action digest to 9f6f8c9
2023-12-01 22:22:06 +01:00
renovate[bot]
c7d582983f Update dependency @types/node to v20.10.2 2023-12-01 21:21:48 +00:00
fkwp
c661c916ed Merge pull request #1972 from vector-im/renovate/livekit-client-1.x-lockfile
Update dependency livekit-client to v1.15.3
2023-12-01 22:21:22 +01:00
renovate[bot]
14d9802db8 Update dependency livekit-client to v1.15.3 2023-12-01 18:44:54 +00:00
renovate[bot]
80a7f81760 Update docker/build-push-action digest to 9f6f8c9 2023-12-01 18:44:40 +00:00
Robin
a2e932b73f Fix a couple of visual glitches on Firefox 2023-12-01 12:37:46 -05:00
renovate[bot]
48c4df9cd6 Update docker/setup-buildx-action digest to edfb0fe (#1968)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-12-01 15:03:29 +01:00
Robin
1d6eaa0e53 Merge pull request #1932 from robintown/backend-corrections
Make some corrections to the development guide
2023-12-01 08:16:22 -05:00
renovate[bot]
d77ad87c45 Update dependency vite to v5 2023-12-01 09:52:51 +00:00
renovate[bot]
ddcec5497d Update actions/setup-node action to v4 2023-12-01 09:52:38 +00:00
renovate[bot]
74ea1c88bb Update typescript-eslint monorepo to v6.13.1 2023-12-01 06:19:44 +00:00
Robin
5c3deeb063 Merge pull request #1953 from vector-im/renovate/i18next-23.x-lockfile
Update dependency i18next to v23.7.7
2023-11-30 23:51:06 -05:00
Robin
9c89f85634 Merge pull request #1956 from vector-im/renovate/docker-metadata-action-digest
Update docker/metadata-action digest to e6428a5
2023-11-30 23:49:34 -05:00
Robin
27cb39d3c5 Merge pull request #1958 from vector-im/renovate/testing-library-jest-dom-6.x-lockfile
Update dependency @testing-library/jest-dom to v6.1.5
2023-11-30 23:48:59 -05:00
Robin
7b4e3ddbc0 Merge pull request #1962 from vector-im/renovate/typescript-5.x-lockfile
Update dependency typescript to v5.3.2
2023-11-30 23:48:39 -05:00
Robin
8c8430c67d Merge pull request #1963 from vector-im/renovate/vite-plugin-svgr-4.x-lockfile
Update dependency vite-plugin-svgr to v4.2.0
2023-11-30 23:48:20 -05:00
Robin
97488a4787 Fix types 2023-11-30 23:47:26 -05:00
Robin
b05b57e744 Merge pull request #1959 from vector-im/renovate/prettier-3.x-lockfile
Update dependency prettier to v3.1.0
2023-11-30 23:44:18 -05:00
renovate[bot]
e813df8dcd Update dependency vite-plugin-svgr to v4.2.0 2023-12-01 04:41:56 +00:00
Robin
2795bc3a94 Merge pull request #1957 from vector-im/renovate/posthog-js-1.x-lockfile
Update dependency posthog-js to v1.93.3
2023-11-30 23:41:27 -05:00
Robin
c433069f90 Format code 2023-11-30 23:40:33 -05:00
renovate[bot]
ab07d657c6 Update dependency typescript to v5.3.2 2023-12-01 04:40:00 +00:00
renovate[bot]
87a215102a Update dependency i18next to v23.7.7 2023-12-01 04:39:47 +00:00
renovate[bot]
1324ff5a69 Update dependency @testing-library/jest-dom to v6.1.5 2023-12-01 04:39:23 +00:00
Robin
64f2bd3315 Merge pull request #1960 from vector-im/renovate/react-i18next-13.x-lockfile
Update dependency react-i18next to v13.5.0
2023-11-30 23:38:55 -05:00
renovate[bot]
cfdb9b4638 Update dependency react-i18next to v13.5.0 2023-12-01 01:03:58 +00:00
renovate[bot]
7730b9aebc Update dependency prettier to v3.1.0 2023-11-30 22:00:31 +00:00
renovate[bot]
eb45149f16 Update dependency posthog-js to v1.93.3 2023-11-30 19:43:24 +00:00
renovate[bot]
a6373c23f3 Update docker/metadata-action digest to e6428a5 2023-11-30 19:43:10 +00:00
Timo
3083fff480 Fix submit label (#1951)
Signed-off-by: Timo K <toger5@hotmail.de>
2023-11-30 17:31:12 +01:00
Robin
53732b99bf Merge pull request #1955 from vector-im/renovate/i18next-http-backend-2.x-lockfile
Update dependency i18next-http-backend to v2.4.2
2023-11-30 11:14:32 -05:00
Robin
3a2dba7a13 Merge pull request #1954 from vector-im/renovate/i18next-browser-languagedetector-7.x-lockfile
Update dependency i18next-browser-languagedetector to v7.2.0
2023-11-30 11:14:13 -05:00
Robin
d7dbc3d096 Merge pull request #1952 from vector-im/renovate/docker-metadata-action-digest
Update docker/metadata-action digest to 26b4721
2023-11-30 11:12:19 -05:00
renovate[bot]
0ce408899c Update dependency i18next-http-backend to v2.4.2 2023-11-30 16:10:42 +00:00
Robin
36056b17e1 Merge pull request #1950 from vector-im/renovate/eslint-8.x-lockfile
Update dependency eslint to v8.54.0
2023-11-30 11:10:39 -05:00
renovate[bot]
7697a14a65 Update dependency i18next-browser-languagedetector to v7.2.0 2023-11-30 16:10:29 +00:00
Robin
1f4c599a36 Merge pull request #1949 from vector-im/renovate/sentry-vite-plugin-2.x-lockfile
Update dependency @sentry/vite-plugin to v2.10.2
2023-11-30 11:10:00 -05:00
renovate[bot]
d232eece5a Update docker/metadata-action digest to 26b4721 2023-11-30 15:31:07 +00:00
renovate[bot]
72a23c5d1a Update dependency eslint to v8.54.0 2023-11-30 08:16:34 +00:00
renovate[bot]
2db2aa9947 Update dependency @sentry/vite-plugin to v2.10.2 2023-11-30 03:59:13 +00:00
Robin
54302ca6c6 Merge pull request #1930 from vector-im/renovate/opentelemetry-instrumentation-user-interaction-0.x
Update dependency @opentelemetry/instrumentation-user-interaction to ^0.34.0
2023-11-29 18:12:20 -05:00
Robin
b16aeb31be Ignore React Spectrum updates
A couple different people (me and Dave) have tried and failed to find an easy way to upgrade these, and in the future we won't need these dependencies at all once the switch to Compound Web is finished, so let's not generate Renovate PRs for them.
2023-11-29 16:45:59 -05:00
Robin
37ee555e0a Merge pull request #1939 from vector-im/renovate/node-20.x-lockfile
Update dependency @types/node to v20.10.1
2023-11-29 16:43:00 -05:00
renovate[bot]
1790818f3a Update dependency @opentelemetry/instrumentation-user-interaction to ^0.34.0 2023-11-29 21:42:20 +00:00
Robin
c821cadac2 Merge pull request #1929 from vector-im/renovate/opentelemetry-instrumentation-document-load-0.x
Update dependency @opentelemetry/instrumentation-document-load to ^0.34.0
2023-11-29 16:41:55 -05:00
renovate[bot]
d0ec052641 Update dependency @types/node to v20.10.1 2023-11-29 21:39:25 +00:00
Robin
bbe1043289 Fix the settings label (#1936)
We were displaying the raw translation key rather than the translated text.
2023-11-29 19:01:45 +01:00
Robin
22ac156085 Merge pull request #1887 from vector-im/renovate/babel-monorepo
Update babel monorepo
2023-11-29 12:55:54 -05:00
Robin
544c50743e Merge pull request #1934 from vector-im/renovate/livekit-components-react-1.x-lockfile
Update dependency @livekit/components-react to v1.4.2
2023-11-29 12:54:15 -05:00
renovate[bot]
8ab623b9e2 Update babel monorepo 2023-11-29 17:51:59 +00:00
renovate[bot]
468dffcf98 Update dependency @livekit/components-react to v1.4.2 2023-11-29 17:50:39 +00:00
Robin
bd5b547483 Merge pull request #1926 from vector-im/renovate/jest-monorepo
Update dependency @types/jest to v29.5.10
2023-11-29 12:50:09 -05:00
Robin
3b2e0acb99 Merge pull request #1883 from vector-im/renovate/testing-library-react-14.x-lockfile
Update dependency @testing-library/react to v14.1.2
2023-11-29 12:50:02 -05:00
Robin
a631f83a7f Merge pull request #1875 from vector-im/renovate/sdp-transform-2.x-lockfile
Update dependency @types/sdp-transform to v2.4.9
2023-11-29 12:49:55 -05:00
Robin
57ed732ba8 Fix type errors 2023-11-29 10:49:17 -05:00
Robin
50d792c6c9 Make some corrections to the development guide 2023-11-29 10:42:54 -05:00
renovate[bot]
a0cdafcd7c Update dependency @types/jest to v29.5.10 2023-11-29 13:06:10 +00:00
renovate[bot]
2d8aaf0a3b Update dependency @opentelemetry/instrumentation-document-load to ^0.34.0 2023-11-29 12:06:25 +00:00
renovate[bot]
9746764f81 Update dependency @testing-library/react to v14.1.2 2023-11-17 19:15:15 +00:00
renovate[bot]
0a2ea8315b Update dependency @types/sdp-transform to v2.4.9 2023-11-08 08:52:46 +00:00
198 changed files with 11113 additions and 10835 deletions

View File

@@ -38,6 +38,7 @@ module.exports = {
"jsx-a11y/media-has-caption": "off",
// We should use the js-sdk logger, never console directly.
"no-console": ["error"],
"react/display-name": "error",
},
settings: {
react: {

2
.github/CODEOWNERS vendored
View File

@@ -1 +1 @@
* @vector-im/element-call-reviewers
* @element-hq/element-call-reviewers

View File

@@ -1,34 +1,25 @@
name: Build
on:
pull_request: {}
pull_request:
types:
- synchronize
- opened
- labeled
paths-ignore:
- ".github/**"
- "docs/**"
push:
branches: [livekit, full-mesh]
paths-ignore:
- ".github/**"
- "docs/**"
jobs:
build:
name: Build
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Yarn cache
uses: actions/setup-node@v4
build_element_call:
uses: ./.github/workflows/element-call.yaml
with:
cache: "yarn"
- name: Install dependencies
run: "yarn install"
- name: Build
run: "yarn run build"
env:
vite_app_version: ${{ github.event.release.tag_name || github.sha }}
secrets:
SENTRY_ORG: ${{ secrets.SENTRY_ORG }}
SENTRY_PROJECT: ${{ secrets.SENTRY_PROJECT }}
SENTRY_URL: ${{ secrets.SENTRY_URL }}
SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }}
VITE_APP_VERSION: ${{ github.sha }}
NODE_OPTIONS: "--max-old-space-size=4096"
- name: Upload Artifact
uses: actions/upload-artifact@v3
with:
name: build
path: dist
# We'll only use this in a triggered job, then we're done with it
retention-days: 1

60
.github/workflows/docker.yaml vendored Normal file
View File

@@ -0,0 +1,60 @@
name: Docker - Deploy
on:
workflow_call:
inputs:
docker_tags:
required: true
type: string
artifact_run_id:
required: false
type: string
default: ${{ github.run_id }}
env:
REGISTRY: ghcr.io
IMAGE_NAME: ${{ github.repository }}
jobs:
build_and_deploy:
name: Build & publish docker
runs-on: ubuntu-latest
permissions:
contents: write # required to upload release asset
packages: write
steps:
- name: Check it out
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4
- name: 📥 Download artifact
uses: actions/download-artifact@fa0a91b85d4f404e444e00e005971372dc801d16 # v4
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
run-id: ${{ inputs.artifact_run_id }}
name: build-output
path: dist
- name: Log in to container registry
uses: docker/login-action@9780b0c442fbb1117ed29e0efdff1e18412f7567 # v3.3.0
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Extract metadata (tags, labels) for Docker
id: meta
uses: docker/metadata-action@8e5442c4ef9f78752691e2d8f8d19755c6f78e81 # v5.5.1
with:
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
tags: ${{ inputs.docker_tags}}
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@988b5a0280414f521da01fcc63a27aeeb4b104db # v3.6.1
- name: Build and push Docker image
uses: docker/build-push-action@5176d81f87c23d6fc96624dfdbcd9f3830bbe445 # v6.5.0
with:
context: .
platforms: linux/amd64,linux/arm64
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}

View File

@@ -12,9 +12,9 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Check out test private repo
uses: actions/checkout@v4
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4
with:
repository: vector-im/static-call-participant
repository: element-hq/static-call-participant
ref: refs/heads/main
path: static-call-participant
token: ${{ secrets.GH_E2E_TEST_TOKEN }}

47
.github/workflows/element-call.yaml vendored Normal file
View File

@@ -0,0 +1,47 @@
name: Element Call - Build
on:
workflow_call:
inputs:
vite_app_version:
required: true
type: string
secrets:
SENTRY_ORG:
required: true
SENTRY_PROJECT:
required: true
SENTRY_URL:
required: true
SENTRY_AUTH_TOKEN:
required: true
jobs:
build:
name: Build Element Call
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4
- name: Yarn cache
uses: actions/setup-node@1e60f620b9541d16bece96c5465dc8ee9832be0b # v4
with:
cache: "yarn"
node-version: "lts/*"
- name: Install dependencies
run: "yarn install"
- name: Build
run: "yarn run build"
env:
SENTRY_ORG: ${{ secrets.SENTRY_ORG }}
SENTRY_PROJECT: ${{ secrets.SENTRY_PROJECT }}
SENTRY_URL: ${{ secrets.SENTRY_URL }}
SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }}
VITE_APP_VERSION: ${{ inputs.vite_app_version }}
NODE_OPTIONS: "--max-old-space-size=4096"
- name: Upload Artifact
uses: actions/upload-artifact@0b2256b8c012f0828dc542b3febcab082c67f72b # v4
with:
name: build-output
path: dist
# We'll only use this in a triggered job, then we're done with it
retention-days: 1

View File

@@ -7,11 +7,12 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4
- name: Yarn cache
uses: actions/setup-node@v4
uses: actions/setup-node@1e60f620b9541d16bece96c5465dc8ee9832be0b # v4
with:
cache: "yarn"
node-version: "lts/*"
- name: Install dependencies
run: "yarn install"
- name: Prettier

View File

@@ -1,73 +1,79 @@
name: Netlify PR Preview
name: Netlify - Deploy
on:
workflow_run:
workflows: ["Build"]
types:
- completed
branches-ignore:
- "main"
- "livekit"
workflow_call:
inputs:
pr_number:
required: true
type: string
pr_head_full_name:
required: true
type: string
pr_head_ref:
required: true
type: string
deployment_ref:
required: true
type: string
artifact_run_id:
required: false
type: string
default: ${{ github.run_id }}
secrets:
ELEMENT_BOT_TOKEN:
required: true
NETLIFY_AUTH_TOKEN:
required: true
NETLIFY_SITE_ID:
required: true
jobs:
deploy:
if: github.event.workflow_run.conclusion == 'success' && github.event.workflow_run.event == 'pull_request'
runs-on: ubuntu-latest
permissions:
deployments: write
environment: Netlify
steps:
- name: 📝 Create Deployment
uses: bobheadxi/deployments@v1
uses: bobheadxi/deployments@648679e8e4915b27893bd7dbc35cb504dc915bc8 # v1
id: deployment
with:
step: start
token: ${{ secrets.GITHUB_TOKEN }}
env: Netlify
ref: ${{ github.event.workflow_run.head_sha }}
ref: ${{ inputs.deployment_ref }}
desc: |
Do you trust the author of this PR? Maybe this build will steal your keys or give you malware.
Exercise caution. Use test accounts.
- id: prdetails
uses: matrix-org/pr-details-action@v1.3
with:
owner: ${{ github.event.workflow_run.head_repository.owner.login }}
branch: ${{ github.event.workflow_run.head_branch }}
# There's a 'download artifact' action, but it hasn't been updated for the workflow_run action
# (https://github.com/actions/download-artifact/issues/60) so instead we get this mess:
- name: 📥 Download artifact
uses: dawidd6/action-download-artifact@v2
uses: actions/download-artifact@fa0a91b85d4f404e444e00e005971372dc801d16 # v4
with:
run_id: ${{ github.event.workflow_run.id }}
name: build
github-token: ${{ secrets.ELEMENT_BOT_TOKEN }}
run-id: ${{ inputs.artifact_run_id }}
name: build-output
path: webapp
- name: Add redirects file
# We fetch from github directly as we don't bother checking out the repo
run: curl -s https://raw.githubusercontent.com/vector-im/element-call/main/config/netlify_redirects > webapp/_redirects
run: curl -s https://raw.githubusercontent.com/element-hq/element-call/main/config/netlify_redirects > webapp/_redirects
- name: Add config file
env:
HEADBRACH: ${{ github.event.workflow_run.head_branch }}
run: curl -s "https://raw.githubusercontent.com/vector-im/element-call/${HEADBRACH}/config/element_io_preview.json" > webapp/config.json
run: curl -s "https://raw.githubusercontent.com/${{ inputs.pr_head_full_name }}/${{ inputs.pr_head_ref }}/config/config_netlify_preview.json" > webapp/config.json
- name: ☁️ Deploy to Netlify
id: netlify
uses: nwtgck/actions-netlify@v2.1
uses: nwtgck/actions-netlify@4cbaf4c08f1a7bfa537d6113472ef4424e4eb654 # v3.0
with:
publish-dir: webapp
deploy-message: "Deploy from GitHub Actions"
# These don't work because we're in workflow_run
enable-pull-request-comment: false
enable-commit-comment: false
alias: pr${{ steps.prdetails.outputs.pr_id }}
alias: pr${{ inputs.pr_number }}
env:
NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }}
NETLIFY_SITE_ID: ${{ secrets.NETLIFY_SITE_ID }}
timeout-minutes: 1
- name: 🚦 Update deployment status
uses: bobheadxi/deployments@v1
uses: bobheadxi/deployments@648679e8e4915b27893bd7dbc35cb504dc915bc8 # v1
if: always()
with:
step: finish

50
.github/workflows/pr-deploy.yaml vendored Normal file
View File

@@ -0,0 +1,50 @@
name: PR Preview Deployments
on:
workflow_run:
workflows: ["Build"]
types:
- completed
jobs:
prdetails:
if: ${{ github.event.workflow_run.conclusion == 'success' && github.event.workflow_run.event == 'pull_request' }}
runs-on: ubuntu-latest
outputs:
pr_number: ${{ steps.prdetails.outputs.pr_id }}
pr_data_json: ${{ steps.prdetails.outputs.data }}
steps:
- id: prdetails
uses: matrix-org/pr-details-action@15bde5285d7850ba276cc3bd8a03733e3f24622a # v1.3
continue-on-error: true
with:
owner: ${{ github.event.workflow_run.head_repository.owner.login }}
branch: ${{ github.event.workflow_run.head_branch }}
netlify:
needs: prdetails
permissions:
deployments: write
uses: ./.github/workflows/netlify.yaml
with:
artifact_run_id: ${{ github.event.workflow_run.id || github.run_id }}
pr_number: ${{ needs.prdetails.outputs.pr_number }}
pr_head_full_name: ${{ github.event.workflow_run.head_repository.full_name }}
pr_head_ref: ${{ needs.prdetails.outputs.pr_data_json && fromJSON(needs.prdetails.outputs.pr_data_json).head.ref }}
deployment_ref: ${{ needs.prdetails.outputs.pr_data_json && fromJSON(needs.prdetails.outputs.pr_data_json).head.sha || github.ref || github.head_ref }}
secrets:
ELEMENT_BOT_TOKEN: ${{ secrets.ELEMENT_BOT_TOKEN }}
NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }}
NETLIFY_SITE_ID: ${{ secrets.NETLIFY_SITE_ID }}
docker:
if: ${{ needs.prdetails.outputs.pr_data_json && contains(fromJSON(needs.prdetails.outputs.pr_data_json).labels.*.name, 'docker build') }}
needs: prdetails
permissions:
contents: write
packages: write
uses: ./.github/workflows/docker.yaml
with:
artifact_run_id: ${{ github.event.workflow_run.id || github.run_id }}
docker_tags: |
type=sha,format=short,event=branch
type=raw,value=pr_${{ needs.prdetails.outputs.pr_number }}

View File

@@ -3,17 +3,34 @@ name: Build & publish images to the package registry for tags
on:
release:
types: [published]
push:
workflow_run:
workflows: ["Build"]
branches: [livekit]
types:
- completed
env:
REGISTRY: ghcr.io
IMAGE_NAME: ${{ github.repository }}
jobs:
build:
name: Build & publish
build_element_call:
if: ${{ github.event_name == 'release' }}
uses: ./.github/workflows/element-call.yaml
with:
vite_app_version: ${{ github.event.release.tag_name || github.sha }}
secrets:
SENTRY_ORG: ${{ secrets.SENTRY_ORG }}
SENTRY_PROJECT: ${{ secrets.SENTRY_PROJECT }}
SENTRY_URL: ${{ secrets.SENTRY_URL }}
SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }}
publish_tarball:
needs: build_element_call
if: always()
name: Publish tarball
runs-on: ubuntu-latest
outputs:
unix_time: ${{steps.current-time.outputs.unix_time}}
permissions:
contents: write # required to upload release asset
packages: write
@@ -21,64 +38,35 @@ jobs:
- name: Get current time
id: current-time
run: echo "unix_time=$(date +'%s')" >> $GITHUB_OUTPUT
- name: Check it out
uses: actions/checkout@v4
- name: Log in to container registry
uses: docker/login-action@3d58c274f17dffee475a5520cbe67f0a882c4dbb
- name: 📥 Download artifact
uses: actions/download-artifact@fa0a91b85d4f404e444e00e005971372dc801d16 # v4
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Yarn cache
uses: actions/setup-node@v4
with:
cache: "yarn"
- name: Install dependencies
run: "yarn install"
- name: Build
run: "yarn run build"
env:
SENTRY_ORG: ${{ secrets.SENTRY_ORG }}
SENTRY_PROJECT: ${{ secrets.SENTRY_PROJECT }}
SENTRY_URL: ${{ secrets.SENTRY_URL }}
SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }}
VITE_APP_VERSION: ${{ github.event.release.tag_name || github.sha }}
github-token: ${{ secrets.GITHUB_TOKEN }}
run-id: ${{ github.event.workflow_run.id || github.run_id }}
name: build-output
path: dist
- name: Create Tarball
env:
TARBALL_VERSION: ${{ github.event.release.tag_name || github.sha }}
run: |
tar --numeric-owner --transform "s/dist/element-call-${TARBALL_VERSION}/" -cvzf element-call-${TARBALL_VERSION}.tar.gz dist
- name: Upload
uses: actions/upload-artifact@a8a3f3ad30e3422c9c7b888a15615d19a852ae32
uses: actions/upload-artifact@0b2256b8c012f0828dc542b3febcab082c67f72b # v4.3.4
env:
GITHUB_TOKEN: ${{ github.token }}
with:
path: "./element-call-*.tar.gz"
- name: Extract metadata (tags, labels) for Docker
id: meta
uses: docker/metadata-action@2a4836ac76fe8f5d0ee3a0d89aa12a80cc552ad3
publish_docker:
needs: publish_tarball
if: always()
permissions:
contents: write
packages: write
uses: ./.github/workflows/docker.yaml
with:
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
tags: |
artifact_run_id: ${{ github.event.workflow_run.id || github.run_id }}
docker_tags: |
type=sha,format=short,event=branch
type=semver,pattern=v{{version}}
type=raw,value=latest-ci,enable={{is_default_branch}}
type=raw,value=latest-ci_${{steps.current-time.outputs.unix_time}},enable={{is_default_branch}}
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@6d5347c4025fdf2bb05167a2519cac535a14a408
- name: Build and push Docker image
uses: docker/build-push-action@4a13e500e55cf31b7a5d59a38ab2040ab0f42f56
with:
context: .
platforms: linux/amd64,linux/arm64
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
type=raw,value=latest-ci_${{needs.publish_tarball.outputs.unix_time}},enable={{is_default_branch}}

View File

@@ -1,24 +1,25 @@
name: Run jest tests
name: Run unit tests
on:
pull_request: {}
push:
branches: [livekit, full-mesh]
jobs:
jest:
name: Run jest tests
vitest:
name: Run vitest tests
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4
- name: Yarn cache
uses: actions/setup-node@v4
uses: actions/setup-node@1e60f620b9541d16bece96c5465dc8ee9832be0b # v4
with:
cache: "yarn"
node-version: "lts/*"
- name: Install dependencies
run: "yarn install"
- name: Jest
- name: Vitest
run: "yarn run test"
- name: Upload to codecov
uses: codecov/codecov-action@v3
uses: codecov/codecov-action@e28ff129e5465c2c0dcc6f003fc735cb6ae0c673 # v4
with:
flags: unittests

View File

@@ -13,11 +13,12 @@ jobs:
steps:
- name: Checkout the code
uses: actions/checkout@v4
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4
- uses: actions/setup-node@v3
- uses: actions/setup-node@1e60f620b9541d16bece96c5465dc8ee9832be0b # v4
with:
cache: "yarn"
node-version: "lts/*"
- name: Install Deps
run: "yarn install --frozen-lockfile"
@@ -26,7 +27,7 @@ jobs:
run: "rm -R public/locales"
- name: Download translation files
uses: localazy/download@v1.1.0
uses: localazy/download@0a79880fb66150601e3b43606fab69c88123c087 # v1.1.0
with:
groups: "-p includeSourceLang:true"
@@ -38,7 +39,7 @@ jobs:
- name: Create Pull Request
id: cpr
uses: peter-evans/create-pull-request@v5.0.2
uses: peter-evans/create-pull-request@c5a7806660adbe173f04e3e038b0ccdcd758773c # v6.1.0
with:
token: ${{ secrets.ELEMENT_BOT_TOKEN }}
branch: actions/localazy-download

View File

@@ -3,6 +3,8 @@ on:
push:
branches:
- livekit
paths-ignore:
- ".github/**"
jobs:
upload:
@@ -12,9 +14,9 @@ jobs:
steps:
- name: Checkout the code
uses: actions/checkout@v4
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4
- name: Upload
uses: localazy/upload@v1
uses: localazy/upload@27e6b5c0fddf4551596b42226b1c24124335d24a # v1
with:
write_key: ${{ secrets.LOCALAZY_WRITE_KEY }}

View File

@@ -5,7 +5,7 @@
Group calls with WebRTC that leverage [Matrix](https://matrix.org) and an open-source WebRTC toolkit from [LiveKit](https://livekit.io/).
For prior version of the Element Call that relied solely on full-mesh logic, check [`full-mesh`](https://github.com/vector-im/element-call/tree/full-mesh) branch.
For prior version of the Element Call that relied solely on full-mesh logic, check [`full-mesh`](https://github.com/element-hq/element-call/tree/full-mesh) branch.
![A demo of Element Call with six people](demo.jpg)
@@ -16,7 +16,7 @@ To try it out, visit our hosted version at [call.element.io](https://call.elemen
Until prebuilt tarballs are available, you'll need to build Element Call from source. First, clone and install the package:
```
git clone https://github.com/vector-im/element-call.git
git clone https://github.com/element-hq/element-call.git
cd element-call
yarn
yarn build
@@ -54,6 +54,38 @@ Therefore, to use a self-hosted homeserver, this is recommended to be a new serv
There are currently two different config files. `.env` holds variables that are used at build time, while `public/config.json` holds variables that are used at runtime. Documentation and default values for `public/config.json` can be found in [ConfigOptions.ts](src/config/ConfigOptions.ts).
If you're using [Synapse](https://github.com/element-hq/synapse/), you'll need to additionally add the following to `homeserver.yaml` or Element Call won't work:
```
experimental_features:
msc3266_enabled: true
```
MSC3266 allows to request a room summary of rooms you are not joined.
The summary contains the room join rules. We need that to decide if the user gets prompted with the option to knock ("ask to join"), a cannot join error or the join view.
Element Call requires a Livekit SFU behind a Livekit jwt service to work. The url to the Livekit jwt service can either be configured in the config of Element Call (fallback/legacy configuration) or be configured by your homeserver via the `.well-known`.
This is the recommended method.
The configuration is a list of Foci configs:
```json
"org.matrix.msc4143.rtc_foci": [
{
"type": "livekit",
"livekit_service_url": "https://someurl.com"
},
{
"type": "livekit",
"livekit_service_url": "https://livekit2.com"
},
{
"type": "another_foci",
"props_for_another_foci": "val"
},
]
```
## Translation
If you'd like to help translate Element Call, head over to [Localazy](https://localazy.com/p/element-call). You're also encouraged to join the [Element Translators](https://matrix.to/#/#translators:element.io) space to discuss and coordinate translation efforts.
@@ -74,7 +106,7 @@ yarn link
Next, we can set up this project:
```
git clone https://github.com/vector-im/element-call.git
git clone https://github.com/element-hq/element-call.git
cd element-call
yarn
yarn link matrix-js-sdk
@@ -93,12 +125,14 @@ service for development. These use a test 'secret' published in this
repository, so this must be used only for local development and
**_never be exposed to the public Internet._**
To use it, add SFU parameter in your local config `./public/config.yml`:
To use it, add a SFU parameter in your local config `./public/config.json`:
(Be aware, that this is only the fallback Livekit SFU. If the homeserver
advertises one in the client well-known, this will not be used.)
```yaml
```json
"livekit": {
"jwt_service_url": "http://localhost:8881"
},
"livekit_service_url": "http://localhost:7881"
},
```
Run backend components:
@@ -107,6 +141,28 @@ Run backend components:
yarn backend
```
### Add a new translation key
To add a new translation key you can do these steps:
1. Add the new key entry to the code where the new key is used: `t("some_new_key")`
1. Run `yarn i18n` to extract the new key and update the translation files. This will add a skeleton entry to the `public/locales/en-GB/app.json` file:
```jsonc
{
...
"some_new_key": "",
...
}
```
1. Update the skeleton entry in the `public/locales/en-GB/app.json` file with the English translation:
```jsonc
{
...
"some_new_key": "Some new key",
...
}
```
## Documentation
Usage and other technical details about the project can be found here:

View File

@@ -5,7 +5,7 @@ networks:
services:
auth-service:
image: ghcr.io/vector-im/lk-jwt-service:latest-ci
image: ghcr.io/element-hq/lk-jwt-service:latest-ci
hostname: auth-server
ports:
- 8881:8080

View File

@@ -1,5 +1,4 @@
port: 7880
environment: dev
bind_addresses:
- "0.0.0.0"
rtc:
@@ -22,5 +21,3 @@ turn:
external_tls: true
keys:
devkey: secret
signal_relay:
enabled: true

View File

@@ -5,5 +5,11 @@
"server_name": "call.ems.host"
}
},
"livekit": {
"livekit_service_url": "http://localhost:7881"
},
"features": {
"feature_use_device_session_member_events": true
},
"eula": "https://static.element.io/legal/online-EULA.pdf"
}

View File

@@ -8,6 +8,9 @@
"livekit": {
"livekit_service_url": "https://livekit-jwt.call.element.dev"
},
"features": {
"feature_use_device_session_member_events": true
},
"posthog": {
"api_key": "phc_rXGHx9vDmyEvyRxPziYtdVIv0ahEv8A9uLWFcCi1WcU",
"api_host": "https://posthog-element-call.element.io"

View File

@@ -1,19 +0,0 @@
{
"default_server_config": {
"m.homeserver": {
"base_url": "https://call.ems.host",
"server_name": "call.ems.host"
}
},
"posthog": {
"api_key": "phc_rXGHx9vDmyEvyRxPziYtdVIv0ahEv8A9uLWFcCi1WcU",
"api_host": "https://posthog-element-call.element.io"
},
"sentry": {
"environment": "main-branch-cd",
"DSN": "https://b1e328d49be3402ba96101338989fb35@sentry.matrix.org/41"
},
"rageshake": {
"submit_url": "https://element.io/bugreports/submit"
}
}

30
config/httpd.conf Normal file
View File

@@ -0,0 +1,30 @@
<VirtualHost *:8080>
ServerName localhost
DocumentRoot "/app"
<Location "/">
# disable cache entriely by default (apart from Etag which is accurate enough)
Header add Cache-Control "private no-store, no-cache, must-revalidate, proxy-revalidate, max-age=0"
CacheDisable on
ExpiresActive off
# also turn off last-modified since they are just the timestamps of the file in the docker image
# and may or may not bear any resemblance to when the resource changed
Header add Last-Modified ""
DirectoryIndex index.html
</Location>
# assets can be cached because they have hashed filenames
<Location "/assets">
ExpiresActive on
ExpiresDefault "access plus 1 week"
Header add Cache-Control "public, no-transform"
</Location>
<Location "/apple-app-site-association">
ForceType application/json
</Location>
</VirtualHost>

View File

@@ -1,57 +1,76 @@
## Url Format and parameters
# Url Format and parameters
There are two formats for Element Call urls.
- **Current Format**
```
```text
https://element_call.domain/room/#
/<room_name_alias>?roomId=!id:domain&password=1234&<other params see below>
```
The url is split into two sections. The `https://element_call.domain/room/#` contains the app and the intend that the link brings you into a specific room (`https://call.element.io/#` would be the homepage). The fragment is used for query parameters to make sure they never get sent to the element_call.domain server. Here we have the actual matrix roomId and the password which are used to connect all participants with e2ee. This allows that `<room_name_alias>` does not need to be unique. Multiple meetings with the label weekly-sync can be created without collisions.
The url is split into two sections. The `https://element_call.domain/room/#`
contains the app and the intend that the link brings you into a specific room
(`https://call.element.io/#` would be the homepage). The fragment is used for
query parameters to make sure they never get sent to the element_call.domain
server. Here we have the actual matrix roomId and the password which are used
to connect all participants with e2ee. This allows that `<room_name_alias>` does
not need to be unique. Multiple meetings with the label weekly-sync can be created
without collisions.
- **deprecated**
```
```text
https://element_call.domain/<room_name>
```
With this format the livekit alias that will be used is the `<room_name>`. All ppl connecting to this url will end up in the same unencrypted room. This does not scale, is super unsecure (ppl could end up in the same room by accident) and it also is not really possible to support encryption.
With this format the livekit alias that will be used is the `<room_name>`.
All ppl connecting to this url will end up in the same unencrypted room.
This does not scale, is super unsecure
(ppl could end up in the same room by accident) and it also is not really
possible to support encryption.
The url parameters are spit into two categories: **general** and **widget related**.
### Widget related params
## Widget related params
**widgetId**
The id used by the widget. The presence of this parameter inplis that elemetn call will not connect to a homeserver directly and instead tries to establish postMessage communication via the `parentUrl`
The id used by the widget. The presence of this parameter implies that element
call will not connect to a homeserver directly and instead tries to establish
postMessage communication via the `parentUrl`.
```
```ts
widgetId: string | null;
```
**parentUrl**
The url used to send widget action postMessages. This should be the domain of the client
or the webview the widget is hosted in. (in case the widget is not in an Iframe but in a
dedicated webview we send the postMessages same webview the widget lives in. Filtering is
done in the widget so it ignores the messages it receives from itself)
The url used to send widget action postMessages. This should be the domain of
the client or the webview the widget is hosted in. (in case the widget is not
in an Iframe but in a dedicated webview we send the postMessages same webview
the widget lives in. Filtering is done in the widget so it ignores the messages
it receives from itself)
```
```ts
parentUrl: string | null;
```
**userId**
The user's ID (only used in matryoshka mode).
```
```ts
userId: string | null;
```
**deviceId**
The device's ID (only used in matryoshka mode).
```
```ts
deviceId: string | null;
```
**baseUrl**
The base URL of the homeserver to use for media lookups in matryoshka mode.
```
```ts
baseUrl: string | null;
```
@@ -64,14 +83,14 @@ roomId is an exception as we need the room ID in embedded (matroyska) mode, and
the room alias (or even the via params because we are not trying to join it). This
is also not validated, where it is in useRoomIdentifier().
```
```ts
roomId: string | null;
```
**confineToRoom**
Whether the app should keep the user confined to the current call/room.
```
```ts
confineToRoom: boolean; (default: false)
```
@@ -79,7 +98,7 @@ confineToRoom: boolean; (default: false)
Whether upon entering a room, the user should be prompted to launch the
native mobile app. (Affects only Android and iOS.)
```
```ts
appPrompt: boolean; (default: true)
```
@@ -87,28 +106,29 @@ appPrompt: boolean; (default: true)
Whether the app should pause before joining the call until it sees an
io.element.join widget action, allowing it to be preloaded.
```
```ts
preload: boolean; (default: false)
```
**hideHeader**
Whether to hide the room header when in a call.
```
```ts
hideHeader: boolean; (default: false)
```
**showControls**
Whether to show the buttons to mute, screen-share, invite, hangup are shown when in a call.
Whether to show the buttons to mute, screen-share, invite, hangup are shown
when in a call.
```
```ts
showControls: boolean; (default: true)
```
**hideScreensharing**
Whether to hide the screen-sharing button.
```
```ts
hideScreensharing: boolean; (default: false)
```
@@ -116,7 +136,7 @@ hideScreensharing: boolean; (default: false)
Whether to use end-to-end encryption. This is a legacy flag for the full mesh branch.
It is not used on the livekit branch and has no impact there!
```
```ts
enableE2EE: boolean; (default: true)
```
@@ -124,28 +144,29 @@ enableE2EE: boolean; (default: true)
Whether to use per participant encryption.
Keys will be exchanged over encrypted matrix room messages.
```
```ts
perParticipantE2EE: boolean; (default: false)
```
**password**
E2EE password when using a shared secret. (For individual sender keys in embedded mode this is not required.)
E2EE password when using a shared secret.
(For individual sender keys in embedded mode this is not required.)
```
```ts
password: string | null;
```
**displayName**
The display name to use for auto-registration.
```
```ts
displayName: string | null;
```
**lang**
The BCP 47 code of the language the app should use.
```
```ts
lang: string | null;
```
@@ -153,7 +174,7 @@ lang: string | null;
The font/fonts which the interface should use.
There can be multiple font url parameters: `?font=font-one&font=font-two...`
```
```ts
font: string;
font: string;
...
@@ -162,14 +183,15 @@ font: string;
**fontScale**
The factor by which to scale the interface's font size.
```
```ts
fontScale: number | null;
```
**analyticsID**
The Posthog analytics ID. It is only available if the user has given consent for sharing telemetry in element web.
The Posthog analytics ID. It is only available if the user has given consent for
sharing telemetry in element web.
```
```ts
analyticsID: string | null;
```
@@ -177,7 +199,7 @@ analyticsID: string | null;
Whether the app is allowed to use fallback STUN servers for ICE in case the
user's homeserver doesn't provide any.
```
```ts
allowIceFallback: boolean; (default: false)
```
@@ -186,6 +208,45 @@ Setting this flag skips the lobby and brings you in the call directly.
In the widget this can be combined with preload to pass the device settings
with the join widget action.
```
```ts
skipLobby: boolean; (default: false)
```
**returnToLobby**
Setting this flag makes element call show the lobby in widget mode after leaving
a call.
This is useful for video rooms.
If set to false, the widget will show a blank page after leaving the call.
```ts
returnToLobby: boolean; (default: false)
```
**theme**
The theme to use for element call.
can be "light", "dark", "light-high-contrast" or "dark-high-contrast".
If not set element call will use the dark theme.
```ts
theme: string | null;
```
**viaServers**
This defines the homeserver that is going to be used when joining a room.
It has to be set to a non default value for links to rooms
that are not on the default homeserver,
that is in use for the current user.
```ts
viaServers: string; (default: undefined)
```
**homeserver**
This defines the homeserver that is going to be used when registering
a new (guest) user.
This can be user to configure a non default guest user server when
creating a spa link.
```ts
homeserver: string; (default: undefined)
```

View File

@@ -1,4 +1,5 @@
{
"name": "element-call",
"version": "0.0.0",
"type": "module",
"scripts": {
@@ -13,21 +14,24 @@
"lint:types": "tsc",
"i18n": "node_modules/i18next-parser/bin/cli.js",
"i18n:check": "node_modules/i18next-parser/bin/cli.js --fail-on-warnings --fail-on-update",
"test": "jest",
"test": "vitest",
"test:coverage": "vitest run --coverage",
"backend": "docker-compose -f backend-docker-compose.yml up"
},
"dependencies": {
"@juggle/resize-observer": "^3.3.1",
"@livekit/components-react": "^1.1.0",
"@livekit/components-core": "^0.11.0",
"@livekit/components-react": "^2.0.0",
"@matrix-org/olm": "https://gitlab.matrix.org/api/v4/projects/27/packages/npm/@matrix-org/olm/-/@matrix-org/olm-3.2.14.tgz",
"@opentelemetry/api": "^1.4.0",
"@opentelemetry/context-zone": "^1.9.1",
"@opentelemetry/exporter-jaeger": "^1.9.1",
"@opentelemetry/exporter-trace-otlp-http": "^0.45.0",
"@opentelemetry/instrumentation-document-load": "^0.33.0",
"@opentelemetry/instrumentation-user-interaction": "^0.33.0",
"@opentelemetry/exporter-trace-otlp-http": "^0.52.0",
"@opentelemetry/instrumentation-document-load": "^0.39.0",
"@opentelemetry/instrumentation-user-interaction": "^0.39.0",
"@opentelemetry/sdk-trace-web": "^1.9.1",
"@radix-ui/react-dialog": "^1.0.4",
"@radix-ui/react-slider": "^1.1.2",
"@radix-ui/react-visually-hidden": "^1.0.3",
"@react-aria/button": "^3.3.4",
"@react-aria/focus": "^3.5.0",
@@ -42,39 +46,41 @@
"@react-stately/select": "^3.1.3",
"@react-stately/tooltip": "^3.0.5",
"@react-stately/tree": "^3.2.0",
"@sentry/react": "^7.0.0",
"@sentry/react": "^8.0.0",
"@sentry/tracing": "^7.0.0",
"@types/lodash": "^4.14.199",
"@use-gesture/react": "^10.2.11",
"@vector-im/compound-design-tokens": "^0.1.0",
"@vector-im/compound-web": "^0.6.0",
"@vector-im/compound-design-tokens": "^1.0.0",
"@vector-im/compound-web": "^6.0.0",
"@vitejs/plugin-basic-ssl": "^1.0.1",
"@vitejs/plugin-react": "^4.0.1",
"buffer": "^6.0.3",
"classnames": "^2.3.1",
"events": "^3.3.0",
"i18next": "^23.0.0",
"i18next-browser-languagedetector": "^7.0.0",
"i18next-browser-languagedetector": "^8.0.0",
"i18next-http-backend": "^2.0.0",
"livekit-client": "^1.12.3",
"livekit-client": "^2.0.2",
"lodash": "^4.17.21",
"matrix-js-sdk": "github:matrix-org/matrix-js-sdk#eca651c0c2ff0600bdae0bb6aba43485e48b69d5",
"matrix-widget-api": "^1.3.1",
"matrix-js-sdk": "github:matrix-org/matrix-js-sdk#9176d3a671114be97ee7a42155a6d40a233384f1",
"matrix-widget-api": "^1.8.2",
"normalize.css": "^8.0.1",
"observable-hooks": "^4.2.3",
"pako": "^2.0.4",
"postcss-preset-env": "^9.0.0",
"postcss-preset-env": "^10.0.0",
"posthog-js": "^1.29.0",
"react": "18",
"react-dom": "18",
"react-i18next": "^13.0.0",
"react-i18next": "^15.0.0",
"react-router-dom": "^5.2.0",
"react-use-clipboard": "^1.0.7",
"react-use-measure": "^2.1.1",
"rxjs": "^7.8.1",
"sdp-transform": "^2.14.1",
"tinyqueue": "^2.0.3",
"tinyqueue": "^3.0.0",
"unique-names-generator": "^4.6.0",
"uuid": "9",
"vaul": "^0.7.0"
"uuid": "10",
"vaul": "^0.9.0"
},
"devDependencies": {
"@babel/core": "^7.16.5",
@@ -84,21 +90,21 @@
"@react-spring/rafz": "^9.7.3",
"@react-types/dialog": "^3.5.5",
"@sentry/vite-plugin": "^2.0.0",
"@testing-library/jest-dom": "^6.0.0",
"@testing-library/react": "^14.0.0",
"@testing-library/dom": "^10.1.0",
"@testing-library/react": "^16.0.0",
"@testing-library/user-event": "^14.5.1",
"@types/content-type": "^1.1.5",
"@types/dom-screen-wake-lock": "^1.0.1",
"@types/dompurify": "^3.0.2",
"@types/grecaptcha": "^3.0.4",
"@types/jest": "^29.5.5",
"@types/node": "^20.0.0",
"@types/react-dom": "^18.3.0",
"@types/react-router-dom": "^5.3.3",
"@types/request": "^2.48.8",
"@types/sdp-transform": "^2.4.5",
"@types/uuid": "9",
"@typescript-eslint/eslint-plugin": "^6.1.0",
"@typescript-eslint/parser": "^6.1.0",
"@types/uuid": "10",
"@typescript-eslint/eslint-plugin": "^7.0.0",
"@typescript-eslint/parser": "^7.0.0",
"babel-loader": "^9.0.0",
"babel-plugin-transform-vite-meta-env": "^1.0.3",
"eslint": "^8.14.0",
@@ -110,39 +116,16 @@
"eslint-plugin-matrix-org": "^1.2.1",
"eslint-plugin-react": "^7.29.4",
"eslint-plugin-react-hooks": "^4.5.0",
"eslint-plugin-unicorn": "^49.0.0",
"i18next-parser": "^8.0.0",
"identity-obj-proxy": "^3.0.0",
"jest": "^29.2.2",
"jest-environment-jsdom": "^29.3.1",
"jest-mock": "^29.5.0",
"eslint-plugin-unicorn": "^55.0.0",
"i18next-parser": "^9.0.0",
"jsdom": "^24.0.0",
"prettier": "^3.0.0",
"sass": "^1.42.1",
"typescript": "^5.1.6",
"typescript-eslint-language-service": "^5.0.5",
"vite": "^4.2.0",
"vite": "^5.0.0",
"vite-plugin-html-template": "^1.1.0",
"vite-plugin-svgr": "^4.0.0"
},
"jest": {
"testEnvironment": "./test/environment.ts",
"testMatch": [
"<rootDir>/test/**/*-test.[jt]s?(x)"
],
"transformIgnorePatterns": [
"/node_modules/(?!d3)+$",
"/node_modules/(?!internmap)+$"
],
"moduleNameMapper": {
"\\.css$": "identity-obj-proxy",
"\\.svg\\?react$": "<rootDir>/test/mocks/svgr.ts",
"^\\./IndexedDBWorker\\?worker$": "<rootDir>/test/mocks/workerMock.ts",
"^\\./olm$": "<rootDir>/test/mocks/olmMock.ts"
},
"collectCoverage": true,
"coverageReporters": [
"text",
"cobertura"
]
"vite-plugin-svgr": "^4.0.0",
"vitest": "^2.0.0"
}
}

View File

@@ -13,7 +13,8 @@
</script>
</head>
<body class="cpd-theme-dark">
<!-- The default class is: .no-theme {display: none}. It will be overwritten once the app is loaded. -->
<body class="no-theme">
<div id="root"></div>
</body>
</html>

View File

@@ -31,8 +31,6 @@
"username": "Потребителско име",
"video": "Видео"
},
"exit_fullscreen_button_label": "Излез от цял екран",
"fullscreen_button_label": "Цял екран",
"join_existing_call_modal": {
"join_button": "Да, присъедини се",
"text": "Този разговор вече съществува, искате ли да се присъедините?",
@@ -42,7 +40,6 @@
"lobby": {
"join_button": "Влез в разговора"
},
"local_volume_label": "Локална сила на звука",
"logging_in": "Влизане…",
"login_auth_links": "<0>Създайте акаунт</0> или <2>Влезте като гост</2>",
"login_title": "Влез",

View File

@@ -29,10 +29,8 @@
"settings": "Nastavení",
"username": "Uživatelské jméno"
},
"exit_fullscreen_button_label": "Ukončit režim celé obrazovky",
"full_screen_view_description": "<0>Odeslání ladících záznamů nám pomůže diagnostikovat problém.</0>",
"full_screen_view_h1": "<0>Oops, něco se pokazilo.</0>",
"fullscreen_button_label": "Zvětšit na celou obrazovku",
"header_label": "Domov Element Call",
"join_existing_call_modal": {
"join_button": "Ano, připojit se",
@@ -43,7 +41,6 @@
"lobby": {
"join_button": "Připojit se k hovoru"
},
"local_volume_label": "Lokální hlasitost",
"logging_in": "Přihlašování se…",
"login_auth_links": "<0>Vytvořit účet</0> Or <2>Jako host</2>",
"login_title": "Přihlášení",

View File

@@ -56,10 +56,8 @@
"video": "Video"
},
"disconnected_banner": "Die Verbindung zum Server wurde getrennt.",
"exit_fullscreen_button_label": "Vollbildmodus verlassen",
"full_screen_view_description": "<0>Übermittelte Problemberichte helfen uns, Fehler zu beheben.</0>",
"full_screen_view_h1": "<0>Hoppla, etwas ist schiefgelaufen.</0>",
"fullscreen_button_label": "Vollbild",
"group_call_loader_failed_heading": "Anruf nicht gefunden",
"group_call_loader_failed_text": "Anrufe sind nun Ende-zu-Ende-verschlüsselt und müssen auf der Startseite erstellt werden. Damit stellen wir sicher, dass alle denselben Schlüssel verwenden.",
"hangup_button_label": "Anruf beenden",
@@ -80,7 +78,6 @@
"join_button": "Anruf beitreten",
"leave_button": "Zurück zu kürzlichen Anrufen"
},
"local_volume_label": "Lokale Lautstärke",
"log_in": "Anmelden",
"logging_in": "Anmelden …",
"login_auth_links": "<0>Konto erstellen</0> Oder <2>Als Gast betreten</2>",
@@ -141,7 +138,6 @@
"unmute_microphone_button_label": "Mikrofon aktivieren",
"version": "Version: {{version}}",
"video_tile": {
"presenter_label": "{{displayName}} präsentiert",
"sfu_participant_local": "Du"
},
"waiting_for_participants": "Warte auf weitere Teilnehmer …"

View File

@@ -37,10 +37,8 @@
"username": "Όνομα χρήστη",
"video": "Βίντεο"
},
"exit_fullscreen_button_label": "Έξοδος από πλήρη οθόνη",
"full_screen_view_description": "<0>Η υποβολή αρχείων καταγραφής σφαλμάτων θα μας βοηθήσει να εντοπίσουμε το πρόβλημα.</0>",
"full_screen_view_h1": "<0>Ωχ, κάτι πήγε στραβά.</0>",
"fullscreen_button_label": "Πλήρη οθόνη",
"header_label": "Element Κεντρική Οθόνη Κλήσεων",
"join_existing_call_modal": {
"join_button": "Ναι, συμμετοχή στην κλήση",
@@ -50,7 +48,6 @@
"lobby": {
"join_button": "Συμμετοχή στην κλήση"
},
"local_volume_label": "Τοπική ένταση",
"logging_in": "Σύνδεση…",
"login_auth_links": "<0>Δημιουργήστε λογαριασμό</0> Ή <2>Συμμετέχετε ως επισκέπτης</2>",
"login_title": "Σύνδεση",
@@ -94,8 +91,5 @@
"unauthenticated_view_body": "Δεν έχετε εγγραφεί ακόμα; <2>Δημιουργήστε λογαριασμό</2>",
"unauthenticated_view_login_button": "Συνδεθείτε στον λογαριασμό σας",
"version": "Έκδοση: {{version}}",
"video_tile": {
"presenter_label": "{{displayName}} παρουσιάζει"
},
"waiting_for_participants": "Αναμονή για άλλους συμμετέχοντες…"
}

View File

@@ -41,6 +41,7 @@
"analytics": "Analytics",
"audio": "Audio",
"avatar": "Avatar",
"back": "Back",
"camera": "Camera",
"copied": "Copied!",
"display_name": "Display name",
@@ -49,6 +50,8 @@
"home": "Home",
"loading": "Loading…",
"microphone": "Microphone",
"next": "Next",
"options": "Options",
"password": "Password",
"profile": "Profile",
"settings": "Settings",
@@ -57,12 +60,19 @@
"video": "Video"
},
"disconnected_banner": "Connectivity to the server has been lost.",
"exit_fullscreen_button_label": "Exit full screen",
"full_screen_view_description": "<0>Submitting debug logs will help us track down the problem.</0>",
"full_screen_view_h1": "<0>Oops, something's gone wrong.</0>",
"fullscreen_button_label": "Full screen",
"group_call_loader_failed_heading": "Call not found",
"group_call_loader_failed_text": "Calls are now end-to-end encrypted and need to be created from the home page. This helps make sure everyone's using the same encryption key.",
"group_call_loader": {
"banned_body": "You have been banned from the room.",
"banned_heading": "Banned",
"call_ended_body": "You have been removed from the call.",
"call_ended_heading": "Call ended",
"failed_heading": "Failed to join",
"failed_text": "Call not found or is not accessible.",
"knock_reject_body": "The room members declined your request to join.",
"knock_reject_heading": "Not allowed to join",
"reason": "Reason"
},
"hangup_button_label": "End call",
"header_label": "Element Call Home",
"header_participants_label": "Participants",
@@ -78,10 +88,11 @@
"layout_grid_label": "Grid",
"layout_spotlight_label": "Spotlight",
"lobby": {
"ask_to_join": "Ask to join call",
"join_button": "Join call",
"leave_button": "Back to recents"
"leave_button": "Back to recents",
"waiting_for_invite": "Request sent"
},
"local_volume_label": "Local volume",
"log_in": "Log In",
"logging_in": "Logging in…",
"login_auth_links": "<0>Create an account</0> Or <2>Access as a guest</2>",
@@ -121,6 +132,7 @@
"developer_settings_label": "Developer Settings",
"developer_settings_label_description": "Expose developer settings in the settings window.",
"developer_tab_title": "Developer",
"duplicate_tiles_label": "Number of additional tile copies per participant",
"feedback_tab_body": "If you are experiencing issues or simply would like to provide some feedback, please send us a short description below.",
"feedback_tab_description_label": "Your feedback",
"feedback_tab_h4": "Submit feedback",
@@ -129,7 +141,6 @@
"feedback_tab_title": "Feedback",
"more_tab_title": "More",
"opt_in_description": "<0></0><1></1>You may withdraw consent by unchecking this box. If you are currently in a call, this setting will take effect at the end of the call.",
"show_connection_stats_label": "Show connection stats",
"speaker_device_selection_label": "Speaker"
},
"star_rating_input_label_one": "{{count}} stars",
@@ -145,8 +156,11 @@
"unmute_microphone_button_label": "Unmute microphone",
"version": "Version: {{version}}",
"video_tile": {
"presenter_label": "{{displayName}} is presenting",
"sfu_participant_local": "You"
},
"waiting_for_participants": "Waiting for other participants…"
"always_show": "Always show",
"change_fit_contain": "Fit to frame",
"exit_full_screen": "Exit full screen",
"full_screen": "Full screen",
"mute_for_me": "Mute for me",
"volume": "Volume"
}
}

View File

@@ -34,10 +34,8 @@
"settings": "Ajustes",
"username": "Nombre de usuario"
},
"exit_fullscreen_button_label": "Salir de pantalla completa",
"full_screen_view_description": "<0>Subir los registros de depuración nos ayudará a encontrar el problema.</0>",
"full_screen_view_h1": "<0>Ups, algo ha salido mal.</0>",
"fullscreen_button_label": "Pantalla completa",
"header_label": "Inicio de Element Call",
"join_existing_call_modal": {
"join_button": "Si, unirse a la llamada",
@@ -48,7 +46,6 @@
"lobby": {
"join_button": "Unirse a la llamada"
},
"local_volume_label": "Volumen local",
"logging_in": "Iniciando sesión…",
"login_auth_links": "<0>Crear una cuenta</0> o <2>Acceder como invitado</2>",
"login_title": "Iniciar sesión",
@@ -95,8 +92,5 @@
"unauthenticated_view_eula_caption": "Al hacer clic en \"Comenzar\", aceptas nuestro <2>Contrato de Licencia de Usuario Final (CLUF)</2>",
"unauthenticated_view_login_button": "Iniciar sesión en tu cuenta",
"version": "Versión: {{version}}",
"video_tile": {
"presenter_label": "{{displayName}} está presentando"
},
"waiting_for_participants": "Esperando a los otros participantes…"
}

View File

@@ -52,10 +52,8 @@
"username": "Kasutajanimi"
},
"disconnected_banner": "Võrguühendus serveriga on katkenud.",
"exit_fullscreen_button_label": "Välju täisekraanivaatest",
"full_screen_view_description": "<0>Kui saadad meile vealogid, siis on lihtsam vea põhjust otsida.</0>",
"full_screen_view_h1": "<0>Ohoo, midagi on nüüd katki.</0>",
"fullscreen_button_label": "Täisekraan",
"group_call_loader_failed_heading": "Kõnet ei leidu",
"group_call_loader_failed_text": "Kõned on nüüd läbivalt krüptitud ning need pead looma kodulehelt. Sellega tagad, et kõik kasutavad samu krüptovõtmeid.",
"hangup_button_label": "Lõpeta kõne",
@@ -75,7 +73,6 @@
"join_button": "Kõnega liitumine",
"leave_button": "Tagasi hiljutiste kõnede juurde"
},
"local_volume_label": "Kohalik helitugevus",
"logging_in": "Sisselogimine …",
"login_auth_links": "<0>Loo konto</0> Või <2>Sisene külalisena</2>",
"login_title": "Sisselogimine",
@@ -133,7 +130,6 @@
"unmute_microphone_button_label": "Lülita mikrofon sisse",
"version": "Versioon: {{version}}",
"video_tile": {
"presenter_label": "{{displayName}} on esitlemas",
"sfu_participant_local": "Sina"
},
"waiting_for_participants": "Ootame teiste osalejate lisandumist…"

View File

@@ -32,8 +32,6 @@
"username": "نام کاربری",
"video": "ویدیو"
},
"exit_fullscreen_button_label": "خروج از حالت تمام صفحه",
"fullscreen_button_label": "تمام صحفه",
"header_label": "خانهٔ تماس المنت",
"join_existing_call_modal": {
"join_button": "بله، به تماس بپیوندید",
@@ -44,7 +42,6 @@
"lobby": {
"join_button": "پیوستن به تماس"
},
"local_volume_label": "حجم داخلی",
"logging_in": "ورود…",
"login_auth_links": "<0>ساخت حساب کاربری</0> Or <2>دسترسی به عنوان میهمان</2>",
"login_title": "ورود",

View File

@@ -50,10 +50,8 @@
"video": "Vidéo"
},
"disconnected_banner": "La connexion avec le serveur a été perdue.",
"exit_fullscreen_button_label": "Quitter le plein écran",
"full_screen_view_description": "<0>Soumettre les journaux de débogage nous aidera à déterminer le problème.</0>",
"full_screen_view_h1": "<0>Oups, quelque chose sest mal passé.</0>",
"fullscreen_button_label": "Plein écran",
"group_call_loader_failed_heading": "Appel non trouvé",
"group_call_loader_failed_text": "Les appels sont maintenant chiffrés de bout-en-bout et doivent être créés depuis la page daccueil. Cela permet dêtre sûr que tout le monde utilise la même clé de chiffrement.",
"hangup_button_label": "Terminer lappel",
@@ -73,7 +71,6 @@
"join_button": "Rejoindre lappel",
"leave_button": "Revenir à lhistorique des appels"
},
"local_volume_label": "Volume local",
"logging_in": "Connexion…",
"login_auth_links": "<0>Créer un compte</0> Or <2>Accès invité</2>",
"login_title": "Connexion",
@@ -131,7 +128,6 @@
"unmute_microphone_button_label": "Allumer le microphone",
"version": "Version : {{version}}",
"video_tile": {
"presenter_label": "{{displayName}} est à lécran",
"sfu_participant_local": "Vous"
},
"waiting_for_participants": "En attente dautres participants…"

View File

@@ -50,10 +50,8 @@
"username": "Nama pengguna"
},
"disconnected_banner": "Koneksi ke server telah hilang.",
"exit_fullscreen_button_label": "Keluar dari layar penuh",
"full_screen_view_description": "<0>Mengirim catatan pengawakutuan akan membantu kami melacak masalahnya.</0>",
"full_screen_view_h1": "<0>Aduh, ada yang salah.</0>",
"fullscreen_button_label": "Layar penuh",
"group_call_loader_failed_heading": "Panggilan tidak ditemukan",
"group_call_loader_failed_text": "Panggilan sekarang terenkripsi secara ujung ke ujung dan harus dibuat dari laman beranda. Ini memastikan bahwa semuanya menggunakan kunci enkripsi yang sama.",
"hangup_button_label": "Akhiri panggilan",
@@ -74,7 +72,6 @@
"join_button": "Bergabung ke panggilan",
"leave_button": "Kembali ke terkini"
},
"local_volume_label": "Volume lokal",
"logging_in": "Memasuki…",
"login_auth_links": "<0>Buat akun</0> Atau <2>Akses sebagai tamu</2>",
"login_title": "Masuk",
@@ -132,7 +129,6 @@
"unmute_microphone_button_label": "Nyalakan mikrofon",
"version": "Versi: {{version}}",
"video_tile": {
"presenter_label": "{{displayName}} sedang menampilkan",
"sfu_participant_local": "Anda"
},
"waiting_for_participants": "Menunggu peserta lain…"

View File

@@ -48,10 +48,8 @@
"username": "Nome utente"
},
"disconnected_banner": "La connessione al server è stata persa.",
"exit_fullscreen_button_label": "Esci da schermo intero",
"full_screen_view_description": "<0>L'invio di registri di debug ci aiuterà ad individuare il problema.</0>",
"full_screen_view_h1": "<0>Ops, qualcosa è andato storto.</0>",
"fullscreen_button_label": "Schermo intero",
"group_call_loader_failed_heading": "Chiamata non trovata",
"group_call_loader_failed_text": "Le chiamate ora sono cifrate end-to-end e devono essere create dalla pagina principale. Ciò assicura che chiunque usi la stessa chiave di crittografia.",
"hangup_button_label": "Termina chiamata",
@@ -72,7 +70,6 @@
"join_button": "Entra in chiamata",
"leave_button": "Torna ai recenti"
},
"local_volume_label": "Volume locale",
"logging_in": "Accesso…",
"login_auth_links": "<0>Crea un profilo</0> o <2>Accedi come ospite</2>",
"login_title": "Accedi",
@@ -129,7 +126,6 @@
"unmute_microphone_button_label": "Riaccendi il microfono",
"version": "Versione: {{version}}",
"video_tile": {
"presenter_label": "{{displayName}} sta presentando",
"sfu_participant_local": "Tu"
},
"waiting_for_participants": "In attesa di altri partecipanti…"

View File

@@ -30,9 +30,7 @@
"username": "ユーザー名",
"video": "ビデオ"
},
"exit_fullscreen_button_label": "全画面表示を終了",
"full_screen_view_h1": "<0>何かがうまく行きませんでした。</0>",
"fullscreen_button_label": "全画面表示",
"header_label": "Element Call ホーム",
"join_existing_call_modal": {
"join_button": "はい、通話に参加",

View File

@@ -40,10 +40,8 @@
"username": "Lietotājvārds"
},
"disconnected_banner": "Ir zaudēts savienojums ar serveri.",
"exit_fullscreen_button_label": "Iziet no pilnekrāna",
"full_screen_view_description": "<0>Atkļūdošanas žurnāla ierakstu iesūtīšana palīdzēs mums atklāt nepilnību.</0>",
"full_screen_view_h1": "<0>Ak vai, kaut kas nogāja greizi!</0>",
"fullscreen_button_label": "Pilnekrāns",
"header_label": "Element Call sākums",
"join_existing_call_modal": {
"join_button": "Jā, pievienoties zvanam",
@@ -54,7 +52,6 @@
"lobby": {
"join_button": "Pievienoties zvanam"
},
"local_volume_label": "Vietējais skaļums",
"logging_in": "Piesakās…",
"login_auth_links": "<0>Izveidot kontu</0> vai <2>Piekļūt kā viesim</2>",
"login_title": "Pieteikties",
@@ -103,8 +100,5 @@
"unauthenticated_view_eula_caption": "Klikšķināšana uz \"Aiziet\" apliecina piekrišanu mūsu <2>galalietotāja licencēšanas nolīgumam (GLLN)</2>",
"unauthenticated_view_login_button": "Pieteikties kontā",
"version": "Versija: {{version}}",
"video_tile": {
"presenter_label": "{{displayName}} uzstājas"
},
"waiting_for_participants": "Gaida citus dalībniekus…"
}

View File

@@ -53,10 +53,8 @@
"video": "Wideo"
},
"disconnected_banner": "Utracono połączenie z serwerem.",
"exit_fullscreen_button_label": "Opuść pełny ekran",
"full_screen_view_description": "<0>Wysłanie dzienników debuggowania pomoże nam ustalić przyczynę problemu.</0>",
"full_screen_view_h1": "<0>Ojej, coś poszło nie tak.</0>",
"fullscreen_button_label": "Pełny ekran",
"group_call_loader_failed_heading": "Nie znaleziono połączenia",
"group_call_loader_failed_text": "Połączenia są teraz szyfrowane end-to-end i muszą zostać utworzone ze strony głównej. Pomaga to upewnić się, że każdy korzysta z tego samego klucza szyfrującego.",
"hangup_button_label": "Zakończ połączenie",
@@ -77,7 +75,6 @@
"join_button": "Dołącz do połączenia",
"leave_button": "Wróć do ostatnie"
},
"local_volume_label": "Głośność lokalna",
"logging_in": "Logowanie…",
"login_auth_links": "<0>Utwórz konto</0> lub <2>Dołącz jako gość</2>",
"login_title": "Zaloguj się",
@@ -135,7 +132,6 @@
"unmute_microphone_button_label": "Odcisz mikrofon",
"version": "Wersja: {{version}}",
"video_tile": {
"presenter_label": "{{displayName}} prezentuje",
"sfu_participant_local": "Ty"
},
"waiting_for_participants": "Oczekiwanie na pozostałych uczestników…"

View File

@@ -38,10 +38,8 @@
"username": "Имя пользователя",
"video": "Видео"
},
"exit_fullscreen_button_label": "Выйти из полноэкранного режима",
"full_screen_view_description": "<0>Отправка журналов поможет нам найти и устранить проблему.</0>",
"full_screen_view_h1": "<0>Упс, что-то пошло не так.</0>",
"fullscreen_button_label": "Полноэкранный режим",
"header_label": "Главная Element Call",
"join_existing_call_modal": {
"join_button": "Да, присоединиться",
@@ -52,7 +50,6 @@
"lobby": {
"join_button": "Присоединиться"
},
"local_volume_label": "Местная громкость",
"logging_in": "Вход…",
"login_auth_links": "<0>Создать аккаунт</0> или <2>Зайти как гость</2>",
"login_title": "Вход",
@@ -96,8 +93,5 @@
"unauthenticated_view_body": "Ещё не зарегистрированы? <2>Создайте аккаунт</2>",
"unauthenticated_view_login_button": "Войдите в свой аккаунт",
"version": "Версия: {{version}}",
"video_tile": {
"presenter_label": "{{displayName}} представляет"
},
"waiting_for_participants": "Ожидание других участников…"
}

View File

@@ -51,10 +51,8 @@
"username": "Meno používateľa"
},
"disconnected_banner": "Spojenie so serverom sa stratilo.",
"exit_fullscreen_button_label": "Ukončiť zobrazenie na celú obrazovku",
"full_screen_view_description": "<0>Odoslanie záznamov ladenia nám pomôže nájsť problém.</0>",
"full_screen_view_h1": "<0>Hups, niečo sa pokazilo.</0>",
"fullscreen_button_label": "Zobrazenie na celú obrazovku",
"group_call_loader_failed_heading": "Hovor nebol nájdený",
"group_call_loader_failed_text": "Hovory sú teraz end-to-end šifrované a je potrebné ich vytvoriť z domovskej stránky. To pomáha zabezpečiť, aby všetci používali rovnaký šifrovací kľúč.",
"hangup_button_label": "Ukončiť hovor",
@@ -75,7 +73,6 @@
"join_button": "Pripojiť sa k hovoru",
"leave_button": "Späť k nedávnym"
},
"local_volume_label": "Lokálna hlasitosť",
"logging_in": "Prihlasovanie…",
"login_auth_links": "<0>Vytvoriť konto</0> Alebo <2>Prihlásiť sa ako hosť</2>",
"login_title": "Prihlásiť sa",
@@ -133,7 +130,6 @@
"unmute_microphone_button_label": "Zrušiť stlmenie mikrofónu",
"version": "Verzia: {{version}}",
"video_tile": {
"presenter_label": "{{displayName}} prezentuje",
"sfu_participant_local": "Vy"
},
"waiting_for_participants": "Čaká sa na ďalších účastníkov…"

View File

@@ -3,8 +3,5 @@
"headline": "{{displayName}}, ditt samtal har avslutats."
},
"star_rating_input_label_one": "{{count}} stjärna",
"star_rating_input_label_other": "{{count}} stjärnor",
"video_tile": {
"presenter_label": "{{displayName}} presenterar"
}
"star_rating_input_label_other": "{{count}} stjärnor"
}

View File

@@ -24,8 +24,6 @@
"password": "Parola",
"settings": "Ayarlar"
},
"exit_fullscreen_button_label": "Tam ekranı terk et",
"fullscreen_button_label": "Tam ekran",
"join_existing_call_modal": {
"text": "Bu arama zaten var, katılmak ister misiniz?",
"title": "Mevcut aramaya katıl?"
@@ -33,7 +31,6 @@
"lobby": {
"join_button": "Aramaya katıl"
},
"local_volume_label": "Yerel ses seviyesi",
"logging_in": "Giriliyor…",
"login_auth_links": "<0>Hesap oluştur</0> yahut <2>Konuk olarak gir</2>",
"login_title": "Gir",

View File

@@ -53,10 +53,8 @@
"video": "Відео"
},
"disconnected_banner": "Втрачено зв'язок з сервером.",
"exit_fullscreen_button_label": "Вийти з повноекранного режиму",
"full_screen_view_description": "<0>Надсилання журналів налагодження допоможе нам виявити проблему.</0>",
"full_screen_view_h1": "<0>Йой, щось пішло не за планом.</0>",
"fullscreen_button_label": "Повноекранний режим",
"group_call_loader_failed_heading": "Виклик не знайдено",
"group_call_loader_failed_text": "Відтепер виклики захищено наскрізним шифруванням, і їх потрібно створювати з домашньої сторінки. Це допомагає переконатися, що всі користувачі використовують один і той самий ключ шифрування.",
"hangup_button_label": "Завершити виклик",
@@ -77,7 +75,6 @@
"join_button": "Приєднатися до виклику",
"leave_button": "Повернутися до недавніх"
},
"local_volume_label": "Локальна гучність",
"logging_in": "Вхід…",
"login_auth_links": "<0>Створити обліковий запис</0> або <2>Отримати доступ як гість</2>",
"login_title": "Увійти",
@@ -135,7 +132,6 @@
"unmute_microphone_button_label": "Увімкнути мікрофон",
"version": "Версія: {{version}}",
"video_tile": {
"presenter_label": "{{displayName}} представляє",
"sfu_participant_local": "Ви"
},
"waiting_for_participants": "Очікування на інших учасників…"

View File

@@ -29,10 +29,8 @@
"username": "Tên người dùng",
"video": "Truyền hình"
},
"exit_fullscreen_button_label": "Rời chế độ toàn màn hình",
"full_screen_view_description": "<0>Gửi nhật ký gỡ lỗi sẽ giúp chúng tôi theo dõi vấn đề.</0>",
"full_screen_view_h1": "<0>Ối, có cái gì đó sai.</0>",
"fullscreen_button_label": "Toàn màn hình",
"join_existing_call_modal": {
"join_button": "Vâng, tham gia cuộc gọi",
"text": "Cuộc gọi đã tồn tại, bạn có muốn tham gia không?",
@@ -73,8 +71,5 @@
"unauthenticated_view_body": "Chưa đăng ký? <2>Tạo tài khoản</2>",
"unauthenticated_view_login_button": "Đăng nhập vào tài khoản của bạn",
"version": "Phiên bản: {{version}}",
"video_tile": {
"presenter_label": "{{displayName}} đang trình bày"
},
"waiting_for_participants": "Đang đợi những người khác…"
}

View File

@@ -51,10 +51,8 @@
"video": "视频"
},
"disconnected_banner": "与服务器的连接中断。",
"exit_fullscreen_button_label": "退出全屏",
"full_screen_view_description": "<0>提交日志以帮助我们修复问题。</0>",
"full_screen_view_h1": "<0>哎哟,出问题了。</0>",
"fullscreen_button_label": "全屏",
"group_call_loader_failed_heading": "未找到通话",
"group_call_loader_failed_text": "现在,通话是端对端加密的,需要从主页创建。这有助于确保每个人都使用相同的加密密钥。",
"hangup_button_label": "通话结束",
@@ -70,7 +68,6 @@
"join_button": "加入通话",
"leave_button": "返回最近通话"
},
"local_volume_label": "本地音量",
"logging_in": "登录中……",
"login_auth_links": "<0>创建账户</0> Or <2>以访客身份继续</2>",
"login_title": "登录",
@@ -128,7 +125,6 @@
"unmute_microphone_button_label": "取消麦克风静音",
"version": "版本:{{version}}",
"video_tile": {
"presenter_label": "{{displayName}}正在展示",
"sfu_participant_local": "你"
},
"waiting_for_participants": "等待其他参与者……"

View File

@@ -53,10 +53,8 @@
"video": "視訊"
},
"disconnected_banner": "到伺服器的連線已遺失。",
"exit_fullscreen_button_label": "退出全螢幕",
"full_screen_view_description": "<0>送出除錯紀錄,可幫助我們修正問題。</0>",
"full_screen_view_h1": "<0>喔喔,有些地方怪怪的。</0>",
"fullscreen_button_label": "全螢幕",
"group_call_loader_failed_heading": "找不到通話",
"group_call_loader_failed_text": "通話現在是端對端加密的,必須從首頁建立。這有助於確保每個人都使用相同的加密金鑰。",
"hangup_button_label": "結束通話",
@@ -77,7 +75,6 @@
"join_button": "加入通話",
"leave_button": "回到最近的通話"
},
"local_volume_label": "您的音量",
"logging_in": "登入中…",
"login_auth_links": "<0>建立帳號</0> 或<2>以訪客身份登入</2>",
"login_title": "登入",
@@ -135,7 +132,6 @@
"unmute_microphone_button_label": "將麥克風取消靜音",
"version": "版本: {{version}}",
"video_tile": {
"presenter_label": "{{displayName}} 正在展示",
"sfu_participant_local": "您"
},
"waiting_for_participants": "等待其他參加者…"

View File

@@ -3,9 +3,61 @@
"extends": ["config:base"],
"packageRules": [
{
"description": "Disable renoavte for packages we want to monitor ourselves",
"matchPackagePatterns": ["matrix-js-sdk"],
"groupName": "all non-major dependencies",
"groupSlug": "all-minor-patch",
"matchUpdateTypes": ["minor", "patch"],
"extends": ["schedule:weekly"]
},
{
"groupName": "GitHub Actions",
"matchDepTypes": ["action"],
"pinDigests": true,
"extends": ["schedule:monthly"]
},
{
"description": "Disable Renovate for packages we want to monitor ourselves",
"groupName": "manually updated packages",
"matchDepNames": ["matrix-js-sdk"],
"enabled": false
},
{
"groupName": "matrix-widget-api",
"matchDepNames": ["matrix-widget-api"]
},
{
"groupName": "Compound",
"matchPackagePrefixes": ["@vector-im/compound-"],
"schedule": "before 5am on Tuesday and Friday"
},
{
"groupName": "LiveKit client",
"matchDepNames": ["livekit-client"]
},
{
"groupName": "LiveKit components",
"matchPackagePrefixes": ["@livekit/components-"]
},
{
"groupName": "Vaul",
"matchDepNames": ["vaul"],
"extends": ["schedule:monthly"],
"prHeader": "Please review modals on mobile for visual regressions."
}
],
"semanticCommits": "disabled",
"ignoreDeps": [
"@react-aria/button",
"@react-aria/focus",
"@react-aria/menu",
"@react-aria/overlays",
"@react-aria/select",
"@react-aria/tabs",
"@react-aria/tooltip",
"@react-aria/utils",
"@react-stately/collections",
"@react-stately/select",
"@react-stately/tooltip",
"@react-stately/tree",
"@react-types/dialog"
]
}

View File

@@ -28,12 +28,6 @@ declare global {
OLM_OPTIONS: Record<string, string>;
}
// TypeScript doesn't know about the experimental setSinkId method, so we
// declare it ourselves
interface MediaElement extends HTMLVideoElement {
setSinkId: (id: string) => void;
}
interface HTMLElement {
// Safari only supports this prefixed, so tell the type system about it
webkitRequestFullscreen: () => void;

View File

@@ -24,6 +24,7 @@ import {
import * as Sentry from "@sentry/react";
import { OverlayProvider } from "@react-aria/overlays";
import { History } from "history";
import { TooltipProvider } from "@vector-im/compound-web";
import { HomePage } from "./home/HomePage";
import { LoginPage } from "./auth/LoginPage";
@@ -34,19 +35,21 @@ import { CrashView, LoadingView } from "./FullScreenView";
import { DisconnectedBanner } from "./DisconnectedBanner";
import { Initializer } from "./initializer";
import { MediaDevicesProvider } from "./livekit/MediaDevicesContext";
import { widget } from "./widget";
import { useTheme } from "./useTheme";
const SentryRoute = Sentry.withSentryRouting(Route);
interface BackgroundProviderProps {
interface SimpleProviderProps {
children: JSX.Element;
}
const BackgroundProvider: FC<BackgroundProviderProps> = ({ children }) => {
const BackgroundProvider: FC<SimpleProviderProps> = ({ children }) => {
const { pathname } = useLocation();
useEffect(() => {
let backgroundImage = "";
if (!["/login", "/register"].includes(pathname)) {
if (!["/login", "/register"].includes(pathname) && !widget) {
backgroundImage = "var(--background-gradient)";
}
@@ -56,6 +59,10 @@ const BackgroundProvider: FC<BackgroundProviderProps> = ({ children }) => {
return <>{children}</>;
};
const ThemeProvider: FC<SimpleProviderProps> = ({ children }) => {
useTheme();
return children;
};
interface AppProps {
history: History;
@@ -63,10 +70,11 @@ interface AppProps {
export const App: FC<AppProps> = ({ history }) => {
const [loaded, setLoaded] = useState(false);
useEffect(() => {
Initializer.init()?.then(() => {
if (loaded) return;
setLoaded(true);
widget?.api.sendContentLoaded();
});
});
@@ -77,6 +85,8 @@ export const App: FC<AppProps> = ({ history }) => {
// @ts-ignore
<Router history={history}>
<BackgroundProvider>
<ThemeProvider>
<TooltipProvider>
{loaded ? (
<Suspense fallback={null}>
<ClientProvider>
@@ -106,6 +116,8 @@ export const App: FC<AppProps> = ({ history }) => {
) : (
<LoadingView />
)}
</TooltipProvider>
</ThemeProvider>
</BackgroundProvider>
</Router>
);

View File

@@ -25,7 +25,11 @@ import {
useMemo,
} from "react";
import { useHistory } from "react-router-dom";
import { ClientEvent, MatrixClient } from "matrix-js-sdk/src/client";
import {
ClientEvent,
ICreateClientOpts,
MatrixClient,
} from "matrix-js-sdk/src/client";
import { logger } from "matrix-js-sdk/src/logger";
import { useTranslation } from "react-i18next";
import { ISyncStateData, SyncState } from "matrix-js-sdk/src/sync";
@@ -317,7 +321,7 @@ export const ClientProvider: FC<Props> = ({ children }) => {
initClientState.client.on(ClientEvent.Sync, onSync);
}
return () => {
return (): void => {
if (initClientState.client) {
initClientState.client.removeListener(ClientEvent.Sync, onSync);
}
@@ -360,13 +364,13 @@ async function loadClient(): Promise<InitResult | null> {
/* eslint-disable camelcase */
const { user_id, device_id, access_token, passwordlessUser } = session;
const initClientParams = {
const initClientParams: ICreateClientOpts = {
baseUrl: Config.defaultHomeserverUrl()!,
accessToken: access_token,
userId: user_id,
deviceId: device_id,
fallbackICEServerAllowed: fallbackICEServerAllowed,
livekitServiceURL: Config.get().livekit!.livekit_service_url,
livekitServiceURL: Config.get().livekit?.livekit_service_url,
};
try {

View File

@@ -27,6 +27,7 @@ import styles from "./FullScreenView.module.css";
import { TranslatedError } from "./TranslatedError";
import { Config } from "./config/Config";
import { RageshakeButton } from "./settings/RageshakeButton";
import { useUrlParams } from "./UrlParams";
interface FullScreenViewProps {
className?: string;
@@ -37,12 +38,11 @@ export const FullScreenView: FC<FullScreenViewProps> = ({
className,
children,
}) => {
const { hideHeader } = useUrlParams();
return (
<div className={classNames(styles.page, className)}>
<Header>
<LeftNav>
<HeaderLogo />
</LeftNav>
<LeftNav>{!hideHeader && <HeaderLogo />}</LeftNav>
<RightNav />
</Header>
<div className={styles.container}>
@@ -58,6 +58,7 @@ interface ErrorViewProps {
export const ErrorView: FC<ErrorViewProps> = ({ error }) => {
const location = useLocation();
const { confineToRoom } = useUrlParams();
const { t } = useTranslation();
useEffect(() => {
@@ -78,7 +79,8 @@ export const ErrorView: FC<ErrorViewProps> = ({ error }) => {
: error.message}
</p>
<RageshakeButton description={`***Error View***: ${error.message}`} />
{location.pathname === "/" ? (
{!confineToRoom &&
(location.pathname === "/" ? (
<Button
size="lg"
variant="default"
@@ -96,7 +98,7 @@ export const ErrorView: FC<ErrorViewProps> = ({ error }) => {
>
{t("return_home_button")}
</LinkButton>
)}
))}
</FullScreenView>
);
};

View File

@@ -1,5 +1,5 @@
/*
Copyright 2022 New Vector Ltd
Copyright 2022-2024 New Vector Ltd
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
@@ -33,6 +33,7 @@ limitations under the License.
}
.headerLogo {
color: var(--cpd-color-text-primary);
display: none;
align-items: center;
text-decoration: none;
@@ -108,6 +109,7 @@ limitations under the License.
.participantsLine {
grid-area: participants;
color: var(--cpd-color-text-secondary);
display: flex;
align-items: center;
gap: var(--cpd-space-1-5x);

View File

@@ -1,5 +1,5 @@
/*
Copyright 2022 New Vector Ltd
Copyright 2022-2024 New Vector Ltd
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
@@ -15,11 +15,11 @@ limitations under the License.
*/
import classNames from "classnames";
import { FC, HTMLAttributes, ReactNode } from "react";
import { FC, HTMLAttributes, ReactNode, forwardRef } from "react";
import { Link } from "react-router-dom";
import { useTranslation } from "react-i18next";
import { Heading, Text } from "@vector-im/compound-web";
import UserProfileIcon from "@vector-im/compound-design-tokens/icons/user-profile.svg?react";
import { UserProfileIcon } from "@vector-im/compound-design-tokens/assets/web/icons";
import styles from "./Header.module.css";
import Logo from "./icons/Logo.svg?react";
@@ -32,13 +32,21 @@ interface HeaderProps extends HTMLAttributes<HTMLElement> {
className?: string;
}
export const Header: FC<HeaderProps> = ({ children, className, ...rest }) => {
export const Header = forwardRef<HTMLElement, HeaderProps>(
({ children, className, ...rest }, ref) => {
return (
<header className={classNames(styles.header, className)} {...rest}>
<header
ref={ref}
className={classNames(styles.header, className)}
{...rest}
>
{children}
</header>
);
};
},
);
Header.displayName = "Header";
interface LeftNavProps extends HTMLAttributes<HTMLElement> {
children: ReactNode;
@@ -117,7 +125,7 @@ interface RoomHeaderInfoProps {
name: string;
avatarUrl: string | null;
encrypted: boolean;
participantCount: number;
participantCount: number | null;
}
export const RoomHeaderInfo: FC<RoomHeaderInfoProps> = ({
@@ -150,7 +158,7 @@ export const RoomHeaderInfo: FC<RoomHeaderInfoProps> = ({
</Heading>
<EncryptionLock encrypted={encrypted} />
</div>
{participantCount > 0 && (
{(participantCount ?? 0) > 0 && (
<div className={styles.participantsLine}>
<UserProfileIcon
width={20}
@@ -158,7 +166,7 @@ export const RoomHeaderInfo: FC<RoomHeaderInfoProps> = ({
aria-label={t("header_participants_label")}
/>
<Text as="span" size="sm" weight="medium">
{t("participant_count", { count: participantCount })}
{t("participant_count", { count: participantCount ?? 0 })}
</Text>
</div>
)}

View File

@@ -27,7 +27,7 @@ import {
} from "@radix-ui/react-dialog";
import { Drawer } from "vaul";
import { VisuallyHidden } from "@radix-ui/react-visually-hidden";
import CloseIcon from "@vector-im/compound-design-tokens/icons/close.svg?react";
import { CloseIcon } from "@vector-im/compound-design-tokens/assets/web/icons";
import classNames from "classnames";
import { Heading, Glass } from "@vector-im/compound-web";

View File

@@ -16,7 +16,6 @@ limitations under the License.
.bg {
position: fixed;
z-index: 100;
inset: 0;
background: rgba(3, 12, 27, 0.528);
}
@@ -49,7 +48,6 @@ limitations under the License.
.overlay {
position: fixed;
z-index: 101;
}
.overlay.animate {

View File

@@ -36,3 +36,8 @@ if (/android/i.test(navigator.userAgent)) {
} else {
platform = "desktop";
}
export const isFirefox = (): boolean => {
const { userAgent } = navigator;
return userAgent.includes("Firefox");
};

66
src/Slider.module.css Normal file
View File

@@ -0,0 +1,66 @@
/*
Copyright 2023 New Vector Ltd
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
.slider {
display: flex;
align-items: center;
position: relative;
}
.track {
flex-grow: 1;
border-radius: var(--cpd-radius-pill-effect);
background: var(--cpd-color-bg-subtle-primary);
height: var(--cpd-space-2x);
outline: var(--cpd-border-width-1) solid
var(--cpd-color-border-interactive-primary);
outline-offset: calc(-1 * var(--cpd-border-width-1));
cursor: pointer;
transition: outline-color ease 0.15s;
}
.track[data-disabled] {
cursor: initial;
outline-color: var(--cpd-color-border-disabled);
}
.highlight {
background: var(--cpd-color-bg-action-primary-rest);
position: absolute;
block-size: 100%;
border-radius: var(--cpd-radius-pill-effect);
transition: background-color ease 0.15s;
}
.highlight[data-disabled] {
background: var(--cpd-color-bg-action-primary-disabled);
}
.handle {
display: block;
block-size: var(--cpd-space-4x);
inline-size: var(--cpd-space-4x);
border-radius: var(--cpd-radius-pill-effect);
background: var(--cpd-color-bg-action-primary-rest);
box-shadow: 0 0 0 2px var(--cpd-color-bg-canvas-default);
cursor: pointer;
transition: background-color ease 0.15s;
}
.handle[data-disabled] {
cursor: initial;
background: var(--cpd-color-bg-action-primary-disabled);
}

68
src/Slider.tsx Normal file
View File

@@ -0,0 +1,68 @@
/*
Copyright 2023 New Vector Ltd
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
import { FC, useCallback } from "react";
import { Root, Track, Range, Thumb } from "@radix-ui/react-slider";
import classNames from "classnames";
import styles from "./Slider.module.css";
interface Props {
className?: string;
label: string;
value: number;
onValueChange: (value: number) => void;
min: number;
max: number;
step: number;
disabled?: boolean;
}
/**
* A slider control allowing a value to be selected from a range.
*/
export const Slider: FC<Props> = ({
className,
label,
value,
onValueChange: onValueChangeProp,
min,
max,
step,
disabled,
}) => {
const onValueChange = useCallback(
([v]: number[]) => onValueChangeProp(v),
[onValueChangeProp],
);
return (
<Root
className={classNames(className, styles.slider)}
value={[value]}
onValueChange={onValueChange}
min={min}
max={max}
step={step}
disabled={disabled}
>
<Track className={styles.track}>
<Range className={styles.highlight} />
</Track>
<Thumb className={styles.handle} aria-label={label} />
</Root>
);
};

View File

@@ -76,7 +76,7 @@ export const Toast: FC<Props> = ({
useEffect(() => {
if (open && autoDismiss !== undefined) {
const timeout = setTimeout(onDismiss, autoDismiss);
return () => clearTimeout(timeout);
return (): void => clearTimeout(timeout);
}
}, [open, autoDismiss, onDismiss]);

View File

@@ -59,6 +59,8 @@ const Tooltip = forwardRef<HTMLDivElement, TooltipProps>(
},
);
Tooltip.displayName = "Tooltip";
interface TooltipTriggerProps {
children: ReactElement;
placement?: Placement;
@@ -112,3 +114,5 @@ export const TooltipTrigger = forwardRef<HTMLElement, TooltipTriggerProps>(
);
},
);
TooltipTrigger.displayName = "TooltipTrigger";

View File

@@ -14,10 +14,7 @@ See the License for the specific language governing permissions and
limitations under the License.
*/
import i18n from "i18next";
import type { ParseKeys, TFunction } from "i18next/typescript/t";
import type { DefaultNamespace, TOptions } from "i18next/typescript/options";
import type { DefaultNamespace, ParseKeys, TFunction, TOptions } from "i18next";
/**
* An error with messages in both English and the user's preferred language.
@@ -45,5 +42,5 @@ class TranslatedErrorImpl extends TranslatedError {}
// function instead
export const translatedError = (
messageKey: ParseKeys<DefaultNamespace, TOptions>,
t: typeof i18n.t,
t: TFunction<"app", undefined>,
): TranslatedError => new TranslatedErrorImpl(messageKey, t);

View File

@@ -16,10 +16,11 @@ limitations under the License.
import { useMemo } from "react";
import { useLocation } from "react-router-dom";
import { logger } from "matrix-js-sdk/src/logger";
import { Config } from "./config/Config";
export const PASSWORD_STRING = "password=";
import { EncryptionSystem } from "./e2ee/sharedKeyManagement";
import { E2eeType } from "./e2ee/e2eeType";
interface RoomIdentifier {
roomAlias: string | null;
@@ -125,6 +126,29 @@ export interface UrlParams {
* with the join widget action.
*/
skipLobby: boolean;
/**
* Setting this flag makes element call show the lobby after leaving a call.
* This is useful for video rooms.
*/
returnToLobby: boolean;
/**
* The theme to use for element call.
* can be "light", "dark", "light-high-contrast" or "dark-high-contrast".
*/
theme: string | null;
/** This defines the homeserver that is going to be used when joining a room.
* It has to be set to a non default value for links to rooms
* that are not on the default homeserver,
* that is in use for the current user.
*/
viaServers: string | null;
/**
* This defines the homeserver that is going to be used when registering
* a new (guest) user.
* This can be user to configure a non default guest user server when
* creating a spa link.
*/
homeserver: string | null;
}
// This is here as a stopgap, but what would be far nicer is a function that
@@ -223,6 +247,10 @@ export const getUrlParams = (
allowIceFallback: parser.getFlagParam("allowIceFallback"),
perParticipantE2EE: parser.getFlagParam("perParticipantE2EE"),
skipLobby: parser.getFlagParam("skipLobby"),
returnToLobby: parser.getFlagParam("returnToLobby"),
theme: parser.getParam("theme"),
viaServers: parser.getParam("viaServers"),
homeserver: parser.getParam("homeserver"),
};
};
@@ -301,3 +329,32 @@ export const useRoomIdentifier = (): RoomIdentifier => {
[pathname, search, hash],
);
};
export function generateUrlSearchParams(
roomId: string,
encryptionSystem: EncryptionSystem,
viaServers?: string[],
): URLSearchParams {
const params = new URLSearchParams();
// The password shouldn't need URL encoding here (we generate URL-safe ones) but encode
// it in case it came from another client that generated a non url-safe one
switch (encryptionSystem?.kind) {
case E2eeType.SHARED_KEY: {
const encodedPassword = encodeURIComponent(encryptionSystem.secret);
if (encodedPassword !== encryptionSystem.secret) {
logger.info(
"Encoded call password used non URL-safe chars: buggy client?",
);
}
params.set("password", encodedPassword);
break;
}
case E2eeType.PER_PARTICIPANT:
params.set("perParticipantE2EE", "true");
break;
}
params.set("roomId", roomId);
viaServers?.forEach((s) => params.set("viaServers", s));
return params;
}

View File

@@ -66,7 +66,7 @@ export const UserMenu: FC<Props> = ({
arr.push({
key: "settings",
icon: SettingsIcon,
label: "common.settings",
label: t("common.settings"),
});
if (isPasswordlessUser && !preventNavigation) {

View File

@@ -19,7 +19,7 @@ import { useHistory, useLocation } from "react-router-dom";
import { useClientLegacy } from "./ClientContext";
import { useProfile } from "./profile/useProfile";
import { SettingsModal } from "./settings/SettingsModal";
import { defaultSettingsTab, SettingsModal } from "./settings/SettingsModal";
import { UserMenu } from "./UserMenu";
interface Props {
@@ -37,17 +37,17 @@ export const UserMenuContainer: FC<Props> = ({ preventNavigation = false }) => {
[setSettingsModalOpen],
);
const [defaultSettingsTab, setDefaultSettingsTab] = useState<string>();
const [settingsTab, setSettingsTab] = useState(defaultSettingsTab);
const onAction = useCallback(
async (value: string) => {
switch (value) {
case "user":
setDefaultSettingsTab("profile");
setSettingsTab("profile");
setSettingsModalOpen(true);
break;
case "settings":
setDefaultSettingsTab("audio");
setSettingsTab("audio");
setSettingsModalOpen(true);
break;
case "logout":
@@ -76,9 +76,10 @@ export const UserMenuContainer: FC<Props> = ({ preventNavigation = false }) => {
{client && (
<SettingsModal
client={client}
defaultTab={defaultSettingsTab}
open={settingsModalOpen}
onDismiss={onDismissSettingsModal}
tab={settingsTab}
onTabChange={setSettingsTab}
/>
)}
</>

View File

@@ -20,7 +20,6 @@ import { MatrixClient } from "matrix-js-sdk";
import { Buffer } from "buffer";
import { widget } from "../widget";
import { getSetting, setSetting, getSettingKey } from "../settings/useSetting";
import {
CallEndedTracker,
CallStartedTracker,
@@ -31,10 +30,11 @@ import {
UndecryptableToDeviceEventTracker,
QualitySurveyEventTracker,
CallDisconnectedEventTracker,
CallConnectDurationTracker,
} from "./PosthogEvents";
import { Config } from "../config/Config";
import { getUrlParams } from "../UrlParams";
import { localStorageBus } from "../useLocalStorage";
import { optInAnalytics } from "../settings/settings";
/* Posthog analytics tracking.
*
@@ -130,7 +130,7 @@ export class PosthogAnalytics {
const { analyticsID } = getUrlParams();
// if the embedding platform (element web) already got approval to communicating with posthog
// element call can also send events to posthog
setSetting("opt-in-analytics", Boolean(analyticsID));
optInAnalytics.setValue(Boolean(analyticsID));
}
this.posthog.init(posthogConfig.project_api_key, {
@@ -150,9 +150,7 @@ export class PosthogAnalytics {
);
this.enabled = false;
}
this.startListeningToSettingsChanges();
const optInAnalytics = getSetting("opt-in-analytics", false);
this.updateAnonymityAndIdentifyUser(optInAnalytics);
this.startListeningToSettingsChanges(); // Triggers maybeIdentifyUser
}
private sanitizeProperties = (
@@ -335,8 +333,7 @@ export class PosthogAnalytics {
}
public onLoginStatusChanged(): void {
const optInAnalytics = getSetting("opt-in-analytics", false);
this.updateAnonymityAndIdentifyUser(optInAnalytics);
this.maybeIdentifyUser();
}
private updateSuperProperties(): void {
@@ -359,20 +356,12 @@ export class PosthogAnalytics {
return this.eventSignup.getSignupEndTime() > new Date(0);
}
private async updateAnonymityAndIdentifyUser(
pseudonymousOptIn: boolean,
): Promise<void> {
// Update this.anonymity based on the user's analytics opt-in settings
const anonymity = pseudonymousOptIn
? Anonymity.Pseudonymous
: Anonymity.Disabled;
this.setAnonymity(anonymity);
private async maybeIdentifyUser(): Promise<void> {
// We may not yet have a Matrix client at this point, if not, bail. This should get
// triggered again by onLoginStatusChanged once we do have a client.
if (!window.matrixclient) return;
if (anonymity === Anonymity.Pseudonymous) {
if (this.anonymity === Anonymity.Pseudonymous) {
this.setRegistrationType(
window.matrixclient.isGuest() || window.passwordlessUser
? RegistrationType.Guest
@@ -388,7 +377,7 @@ export class PosthogAnalytics {
}
}
if (anonymity !== Anonymity.Disabled) {
if (this.anonymity !== Anonymity.Disabled) {
this.updateSuperProperties();
}
}
@@ -418,8 +407,9 @@ export class PosthogAnalytics {
// * When the user changes their preferences on this device
// Note that for new accounts, pseudonymousAnalyticsOptIn won't be set, so updateAnonymityFromSettings
// won't be called (i.e. this.anonymity will be left as the default, until the setting changes)
localStorageBus.on(getSettingKey("opt-in-analytics"), (optInAnalytics) => {
this.updateAnonymityAndIdentifyUser(optInAnalytics);
optInAnalytics.value.subscribe((optIn) => {
this.setAnonymity(optIn ? Anonymity.Pseudonymous : Anonymity.Disabled);
this.maybeIdentifyUser();
});
}
@@ -444,4 +434,5 @@ export class PosthogAnalytics {
public eventUndecryptableToDevice = new UndecryptableToDeviceEventTracker();
public eventQualitySurvey = new QualitySurveyEventTracker();
public eventCallDisconnected = new CallDisconnectedEventTracker();
public eventCallConnectDuration = new CallConnectDurationTracker();
}

View File

@@ -15,6 +15,7 @@ limitations under the License.
*/
import { DisconnectReason } from "livekit-client";
import { logger } from "matrix-js-sdk/src/logger";
import {
IPosthogEvent,
@@ -201,3 +202,38 @@ export class CallDisconnectedEventTracker {
});
}
}
interface CallConnectDuration extends IPosthogEvent {
eventName: "CallConnectDuration";
totalDuration: number;
websocketDuration: number;
peerConnectionDuration: number;
}
export class CallConnectDurationTracker {
private connectStart = 0;
private websocketConnected = 0;
public cacheConnectStart(): void {
this.connectStart = Date.now();
}
public cacheWsConnect(): void {
this.websocketConnected = Date.now();
}
public track(options = { log: false }): void {
const now = Date.now();
const totalDuration = now - this.connectStart;
const websocketDuration = this.websocketConnected - this.connectStart;
const peerConnectionDuration = now - this.websocketConnected;
PosthogAnalytics.instance.trackEvent<CallConnectDuration>({
eventName: "CallConnectDuration",
totalDuration,
websocketDuration,
peerConnectionDuration,
});
if (options.log)
logger.log(
`Time to connect:\ntotal: ${totalDuration}ms\npeerConnection: ${websocketDuration}ms\nwebsocket: ${peerConnectionDuration}ms`,
);
}
}

View File

@@ -82,7 +82,12 @@ export const LoginPage: FC = () => {
},
[login, location, history, homeserver, setClient],
);
// we need to limit the length of the homserver name to not cover the whole loginview input with the string.
let shortendHomeserverName = Config.defaultServerName()?.slice(0, 25);
shortendHomeserverName =
shortendHomeserverName?.length !== Config.defaultServerName()?.length
? shortendHomeserverName + "..."
: shortendHomeserverName;
return (
<>
<div className={styles.container}>
@@ -102,7 +107,7 @@ export const LoginPage: FC = () => {
autoCorrect="off"
autoCapitalize="none"
prefix="@"
suffix={`:${Config.defaultServerName()}`}
suffix={`:${shortendHomeserverName}`}
data-testid="login_username"
/>
</FieldRow>

View File

@@ -16,7 +16,11 @@ limitations under the License.
import { useCallback } from "react";
import { InteractiveAuth } from "matrix-js-sdk/src/interactive-auth";
import { createClient, MatrixClient } from "matrix-js-sdk/src/matrix";
import {
createClient,
LoginResponse,
MatrixClient,
} from "matrix-js-sdk/src/matrix";
import { initClient } from "../matrix-utils";
import { Session } from "../ClientContext";
@@ -37,7 +41,7 @@ export function useInteractiveLogin(): (
const interactiveAuth = new InteractiveAuth({
matrixClient: authClient,
doRequest: () =>
doRequest: (): Promise<LoginResponse> =>
authClient.login("m.login.password", {
identifier: {
type: "m.id.user",

View File

@@ -16,11 +16,16 @@ limitations under the License.
import { useState, useEffect, useCallback, useRef } from "react";
import { InteractiveAuth } from "matrix-js-sdk/src/interactive-auth";
import { createClient, MatrixClient } from "matrix-js-sdk/src/matrix";
import {
createClient,
MatrixClient,
RegisterResponse,
} from "matrix-js-sdk/src/matrix";
import { initClient } from "../matrix-utils";
import { Session } from "../ClientContext";
import { Config } from "../config/Config";
import { widget } from "../widget";
export const useInteractiveRegistration = (): {
privacyPolicyUrl?: string;
@@ -48,6 +53,8 @@ export const useInteractiveRegistration = (): {
}
useEffect(() => {
if (widget) return;
// An empty registerRequest is used to get the privacy policy and recaptcha key.
authClient.current!.registerRequest({}).catch((error) => {
setPrivacyPolicyUrl(
error.data?.params["m.login.terms"]?.policies?.privacy_policy?.en?.url,
@@ -66,7 +73,7 @@ export const useInteractiveRegistration = (): {
): Promise<[MatrixClient, Session]> => {
const interactiveAuth = new InteractiveAuth({
matrixClient: authClient.current!,
doRequest: (auth) =>
doRequest: (auth): Promise<RegisterResponse> =>
authClient.current!.registerRequest({
username,
password,

View File

@@ -21,6 +21,7 @@ import { useClient } from "../ClientContext";
import { useInteractiveRegistration } from "../auth/useInteractiveRegistration";
import { generateRandomName } from "../auth/generateRandomName";
import { useRecaptcha } from "../auth/useRecaptcha";
import { widget } from "../widget";
interface UseRegisterPasswordlessUserType {
privacyPolicyUrl?: string;
@@ -39,6 +40,11 @@ export function useRegisterPasswordlessUser(): UseRegisterPasswordlessUserType {
if (!setClient) {
throw new Error("No client context");
}
if (widget) {
throw new Error(
"Registration was skipped: We should never try to register password-less user in embedded mode.",
);
}
try {
const recaptchaResponse = await execute();

View File

@@ -20,19 +20,18 @@ import { useButton } from "@react-aria/button";
import { mergeProps, useObjectRef } from "@react-aria/utils";
import { useTranslation } from "react-i18next";
import { Tooltip } from "@vector-im/compound-web";
import MicOnSolidIcon from "@vector-im/compound-design-tokens/icons/mic-on-solid.svg?react";
import MicOffSolidIcon from "@vector-im/compound-design-tokens/icons/mic-off-solid.svg?react";
import VideoCallSolidIcon from "@vector-im/compound-design-tokens/icons/video-call-solid.svg?react";
import VideoCallOffSolidIcon from "@vector-im/compound-design-tokens/icons/video-call-off-solid.svg?react";
import EndCallIcon from "@vector-im/compound-design-tokens/icons/end-call.svg?react";
import ShareScreenSolidIcon from "@vector-im/compound-design-tokens/icons/share-screen-solid.svg?react";
import SettingsSolidIcon from "@vector-im/compound-design-tokens/icons/settings-solid.svg?react";
import ChevronDownIcon from "@vector-im/compound-design-tokens/icons/chevron-down.svg?react";
import {
MicOnSolidIcon,
MicOffSolidIcon,
VideoCallSolidIcon,
VideoCallOffSolidIcon,
EndCallIcon,
ShareScreenSolidIcon,
SettingsSolidIcon,
ChevronDownIcon,
} from "@vector-im/compound-design-tokens/assets/web/icons";
import styles from "./Button.module.css";
import Fullscreen from "../icons/Fullscreen.svg?react";
import FullscreenExit from "../icons/FullscreenExit.svg?react";
import { VolumeIcon } from "./VolumeIcon";
export type ButtonVariant =
| "default"
@@ -80,6 +79,7 @@ interface Props {
// TODO: add all props for <Button>
[index: string]: unknown;
}
export const Button = forwardRef<HTMLButtonElement, Props>(
(
{
@@ -135,6 +135,8 @@ export const Button = forwardRef<HTMLButtonElement, Props>(
},
);
Button.displayName = "Button";
export const MicButton: FC<{
muted: boolean;
// TODO: add all props for <Button>
@@ -149,7 +151,7 @@ export const MicButton: FC<{
return (
<Tooltip label={label}>
<Button variant="toolbar" {...rest} on={muted}>
<Icon aria-label={label} />
<Icon aria-hidden width={24} height={24} />
</Button>
</Tooltip>
);
@@ -169,7 +171,7 @@ export const VideoButton: FC<{
return (
<Tooltip label={label}>
<Button variant="toolbar" {...rest} on={muted}>
<Icon aria-label={label} />
<Icon aria-hidden width={24} height={24} />
</Button>
</Tooltip>
);
@@ -189,7 +191,7 @@ export const ScreenshareButton: FC<{
return (
<Tooltip label={label}>
<Button variant="toolbar" {...rest} on={enabled}>
<ShareScreenSolidIcon aria-label={label} />
<ShareScreenSolidIcon aria-hidden width={24} height={24} />
</Button>
</Tooltip>
);
@@ -209,7 +211,7 @@ export const HangupButton: FC<{
className={classNames(styles.hangupButton, className)}
{...rest}
>
<EndCallIcon aria-label={t("hangup_button_label")} />
<EndCallIcon aria-hidden width={24} height={24} />
</Button>
</Tooltip>
);
@@ -225,49 +227,7 @@ export const SettingsButton: FC<{
return (
<Tooltip label={t("common.settings")}>
<Button variant="toolbar" {...rest}>
<SettingsSolidIcon aria-label={t("common.settings")} />
</Button>
</Tooltip>
);
};
interface AudioButtonProps extends Omit<Props, "variant"> {
/**
* A number between 0 and 1
*/
volume: number;
}
export const AudioButton: FC<AudioButtonProps> = ({ volume, ...rest }) => {
const { t } = useTranslation();
return (
<Tooltip label={t("local_volume_label")}>
<Button variant="icon" {...rest}>
<VolumeIcon volume={volume} aria-label={t("local_volume_label")} />
</Button>
</Tooltip>
);
};
interface FullscreenButtonProps extends Omit<Props, "variant"> {
fullscreen?: boolean;
}
export const FullscreenButton: FC<FullscreenButtonProps> = ({
fullscreen,
...rest
}) => {
const { t } = useTranslation();
const Icon = fullscreen ? FullscreenExit : Fullscreen;
const label = fullscreen
? t("exit_fullscreen_button_label")
: t("fullscreen_button_label");
return (
<Tooltip label={label}>
<Button variant="icon" {...rest}>
<Icon aria-label={label} />
<SettingsSolidIcon aria-hidden width={24} height={24} />
</Button>
</Tooltip>
);

View File

@@ -17,7 +17,7 @@ limitations under the License.
import { ComponentPropsWithoutRef, FC } from "react";
import { Button } from "@vector-im/compound-web";
import { useTranslation } from "react-i18next";
import UserAddIcon from "@vector-im/compound-design-tokens/icons/user-add.svg?react";
import { UserAddIcon } from "@vector-im/compound-design-tokens/assets/web/icons";
export const InviteButton: FC<
Omit<ComponentPropsWithoutRef<"button">, "children">

View File

@@ -14,6 +14,7 @@ See the License for the specific language governing permissions and
limitations under the License.
*/
import { getUrlParams } from "../UrlParams";
import {
DEFAULT_CONFIG,
ConfigOptions,
@@ -45,10 +46,18 @@ export class Config {
// Convenience accessors
public static defaultHomeserverUrl(): string | undefined {
return Config.get().default_server_config?.["m.homeserver"].base_url;
return (
getUrlParams().homeserver ??
Config.get().default_server_config?.["m.homeserver"].base_url
);
}
public static defaultServerName(): string | undefined {
const homeserver = getUrlParams().homeserver;
if (homeserver) {
const url = new URL(homeserver);
return url.hostname;
}
return Config.get().default_server_config?.["m.homeserver"].server_name;
}

View File

@@ -55,16 +55,31 @@ export interface ConfigOptions {
// Describes the LiveKit configuration to be used.
livekit?: {
// The link to the service that returns a livekit url and token to use it
// The link to the service that returns a livekit url and token to use it.
// This is a fallback link in case the homeserver in use does not advertise
// a livekit service url in the client well-known.
// The well known needs to be formatted like so:
// {"type":"livekit", "livekit_service_url":"https://livekit.example.com"}
// and stored under the key: "livekit_focus"
livekit_service_url: string;
};
/**
* Allow to join a group calls without audio and video.
* TEMPORARY: Is a feature that's not proved and experimental
* TEMPORARY experimental features.
*/
features?: {
feature_group_calls_without_video_and_audio: boolean;
/**
* Allow to join group calls without audio and video.
*/
feature_group_calls_without_video_and_audio?: boolean;
/**
* Send device-specific call session membership state events instead of
* legacy user-specific call membership state events.
* This setting has no effect when the user joins an active call with
* legacy state events. For compatibility, Element Call will always join
* active legacy calls with legacy state events.
*/
feature_use_device_session_member_events?: boolean;
};
/**

View File

@@ -15,12 +15,11 @@ limitations under the License.
*/
import { useEffect, useMemo } from "react";
import { Room } from "matrix-js-sdk";
import { setLocalStorageItem, useLocalStorage } from "../useLocalStorage";
import { useClient } from "../ClientContext";
import { UrlParams, getUrlParams, useUrlParams } from "../UrlParams";
import { widget } from "../widget";
import { E2eeType } from "./e2eeType";
import { useClient } from "../ClientContext";
export function saveKeyForRoom(roomId: string, password: string): void {
setLocalStorageItem(getRoomSharedKeyLocalStorageKey(roomId), password);
@@ -68,30 +67,37 @@ const useKeyFromUrl = (): [string, string] | [undefined, undefined] => {
: [undefined, undefined];
};
export const useRoomSharedKey = (roomId: string): string | undefined => {
export type Unencrypted = { kind: E2eeType.NONE };
export type SharedSecret = { kind: E2eeType.SHARED_KEY; secret: string };
export type PerParticipantE2EE = { kind: E2eeType.PER_PARTICIPANT };
export type EncryptionSystem = Unencrypted | SharedSecret | PerParticipantE2EE;
export function useRoomEncryptionSystem(roomId: string): EncryptionSystem {
const { client } = useClient();
// make sure we've extracted the key from the URL first
// (and we still need to take the value it returns because
// the effect won't run in time for it to save to localstorage in
// time for us to read it out again).
const [urlRoomId, passwordFormUrl] = useKeyFromUrl();
const [urlRoomId, passwordFromUrl] = useKeyFromUrl();
const storedPassword = useInternalRoomSharedKey(roomId);
if (storedPassword) return storedPassword;
if (urlRoomId === roomId) return passwordFormUrl;
return undefined;
};
export const useIsRoomE2EE = (roomId: string): boolean | null => {
const { client } = useClient();
const room = useMemo(() => client?.getRoom(roomId), [roomId, client]);
return useMemo(() => !room || isRoomE2EE(room), [room]);
};
export function isRoomE2EE(room: Room): boolean {
// For now, rooms in widget mode are never considered encrypted.
// In the future, when widget mode gains encryption support, then perhaps we
// should inspect the e2eEnabled URL parameter here?
return widget === null && !room.getCanonicalAlias();
const room = client?.getRoom(roomId);
const e2eeSystem = <EncryptionSystem>useMemo(() => {
if (!room) return { kind: E2eeType.NONE };
if (storedPassword)
return {
kind: E2eeType.SHARED_KEY,
secret: storedPassword,
};
if (urlRoomId === roomId)
return {
kind: E2eeType.SHARED_KEY,
secret: passwordFromUrl,
};
if (room.hasEncryptionStateEvent()) {
return { kind: E2eeType.PER_PARTICIPANT };
}
return { kind: E2eeType.NONE };
}, [passwordFromUrl, room, roomId, storedPassword, urlRoomId]);
return e2eeSystem;
}

View File

@@ -38,3 +38,5 @@ export const Form = forwardRef<HTMLFormElement, FormProps>(
);
},
);
Form.displayName = "Form";

150
src/grid/CallLayout.ts Normal file
View File

@@ -0,0 +1,150 @@
/*
Copyright 2024 New Vector Ltd
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
import { BehaviorSubject, Observable } from "rxjs";
import { ComponentType } from "react";
import { MediaViewModel, UserMediaViewModel } from "../state/MediaViewModel";
import { LayoutProps } from "./Grid";
export interface Bounds {
width: number;
height: number;
}
export interface Alignment {
inline: "start" | "end";
block: "start" | "end";
}
export const defaultSpotlightAlignment: Alignment = {
inline: "end",
block: "end",
};
export const defaultPipAlignment: Alignment = { inline: "end", block: "start" };
export interface CallLayoutInputs {
/**
* The minimum bounds of the layout area.
*/
minBounds: Observable<Bounds>;
/**
* The alignment of the floating spotlight tile, if present.
*/
spotlightAlignment: BehaviorSubject<Alignment>;
/**
* The alignment of the small picture-in-picture tile, if present.
*/
pipAlignment: BehaviorSubject<Alignment>;
}
export interface GridTileModel {
type: "grid";
vm: UserMediaViewModel;
}
export interface SpotlightTileModel {
type: "spotlight";
vms: MediaViewModel[];
maximised: boolean;
}
export type TileModel = GridTileModel | SpotlightTileModel;
export interface CallLayoutOutputs<Model> {
/**
* Whether the scrolling layer of the layout should appear on top.
*/
scrollingOnTop: boolean;
/**
* The visually fixed (non-scrolling) layer of the layout.
*/
fixed: ComponentType<LayoutProps<Model, TileModel, HTMLDivElement>>;
/**
* The layer of the layout that can overflow and be scrolled.
*/
scrolling: ComponentType<LayoutProps<Model, TileModel, HTMLDivElement>>;
}
/**
* A layout system for media tiles.
*/
export type CallLayout<Model> = (
inputs: CallLayoutInputs,
) => CallLayoutOutputs<Model>;
export interface GridArrangement {
tileWidth: number;
tileHeight: number;
gap: number;
columns: number;
}
const tileMaxAspectRatio = 17 / 9;
const tileMinAspectRatio = 4 / 3;
/**
* Determine the ideal arrangement of tiles into a grid of a particular size.
*/
export function arrangeTiles(
width: number,
minHeight: number,
tileCount: number,
): GridArrangement {
// The goal here is to determine the grid size and padding that maximizes
// use of screen space for n tiles without making those tiles too small or
// too cropped (having an extreme aspect ratio)
const gap = width < 800 ? 16 : 20;
const area = width * minHeight;
// Magic numbers that make tiles scale up nicely as the window gets larger
const tileArea = Math.pow(Math.sqrt(area) / 8 + 125, 2);
const tilesPerPage = Math.min(tileCount, area / tileArea);
let columns = Math.min(
// Don't create more columns than we have items for
tilesPerPage,
// The ideal number of columns is given by a packing of equally-sized
// squares into a grid.
// width / column = height / row.
// columns * rows = number of squares.
// ∴ columns = sqrt(width / height * number of squares).
// Except we actually want 16:9-ish tiles rather than squares, so we
// divide the width-to-height ratio by the target aspect ratio.
Math.round(
Math.sqrt((width / minHeight / tileMinAspectRatio) * tilesPerPage),
),
);
let rows = tilesPerPage / columns;
// If all the tiles could fit on one page, we want to ensure that they do by
// not leaving fractional rows hanging off the bottom
if (tilesPerPage === tileCount) {
rows = Math.ceil(rows);
// We may now be able to fit the tiles into fewer columns
columns = Math.ceil(tileCount / rows);
}
let tileWidth = (width - (columns + 1) * gap) / columns;
let tileHeight = (minHeight - (rows - 1) * gap) / rows;
// Impose a minimum and maximum aspect ratio on the tiles
const tileAspectRatio = tileWidth / tileHeight;
if (tileAspectRatio > tileMaxAspectRatio)
tileWidth = tileHeight * tileMaxAspectRatio;
else if (tileAspectRatio < tileMinAspectRatio)
tileHeight = tileWidth / tileMinAspectRatio;
return { tileWidth, tileHeight, gap, columns };
}

View File

@@ -1,11 +1,11 @@
/*
Copyright 2022 New Vector Ltd
Copyright 2023-2024 New Vector Ltd
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
@@ -14,9 +14,10 @@ See the License for the specific language governing permissions and
limitations under the License.
*/
.videoGrid {
position: relative;
overflow: hidden;
flex: 1;
touch-action: none;
.grid {
contain: layout style;
}
.slot {
contain: strict;
}

514
src/grid/Grid.tsx Normal file
View File

@@ -0,0 +1,514 @@
/*
Copyright 2023-2024 New Vector Ltd
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
import {
SpringRef,
TransitionFn,
animated,
useTransition,
} from "@react-spring/web";
import { EventTypes, Handler, useScroll } from "@use-gesture/react";
import {
CSSProperties,
ComponentProps,
ComponentType,
Dispatch,
FC,
LegacyRef,
ReactNode,
SetStateAction,
createContext,
forwardRef,
memo,
useContext,
useEffect,
useMemo,
useRef,
useState,
} from "react";
import useMeasure from "react-use-measure";
import classNames from "classnames";
import styles from "./Grid.module.css";
import { useMergedRefs } from "../useMergedRefs";
import { TileWrapper } from "./TileWrapper";
import { usePrefersReducedMotion } from "../usePrefersReducedMotion";
import { useInitial } from "../useInitial";
interface Rect {
x: number;
y: number;
width: number;
height: number;
}
interface Tile<Model> {
id: string;
model: Model;
onDrag: DragCallback | undefined;
}
type PlacedTile<Model> = Tile<Model> & Rect;
interface TileSpring {
opacity: number;
scale: number;
zIndex: number;
x: number;
y: number;
width: number;
height: number;
}
interface TileSpringUpdate extends Partial<TileSpring> {
from?: Partial<TileSpring>;
reset?: boolean;
immediate?: boolean | ((key: string) => boolean);
delay?: (key: string) => number;
}
interface DragState {
tileId: string;
tileX: number;
tileY: number;
cursorX: number;
cursorY: number;
}
interface SlotProps<Model> extends Omit<ComponentProps<"div">, "onDrag"> {
id: string;
model: Model;
onDrag?: DragCallback;
style?: CSSProperties;
className?: string;
}
interface Offset {
x: number;
y: number;
}
/**
* Gets the offset of one element relative to an ancestor.
*/
function offset(element: HTMLElement, relativeTo: Element): Offset {
if (
!(element.offsetParent instanceof HTMLElement) ||
element.offsetParent === relativeTo
) {
return { x: element.offsetLeft, y: element.offsetTop };
} else {
const o = offset(element.offsetParent, relativeTo);
o.x += element.offsetLeft;
o.y += element.offsetTop;
return o;
}
}
interface LayoutContext {
setGeneration: Dispatch<SetStateAction<number | null>>;
}
const LayoutContext = createContext<LayoutContext | null>(null);
/**
* Enables Grid to react to layout changes. You must call this in your Layout
* component or else Grid will not be reactive.
*/
export function useUpdateLayout(): void {
const context = useContext(LayoutContext);
if (context === null)
throw new Error("useUpdateLayout called outside a Grid layout context");
// On every render, tell Grid that the layout may have changed
useEffect(() =>
context.setGeneration((prev) => (prev === null ? 0 : prev + 1)),
);
}
export interface LayoutProps<LayoutModel, TileModel, R extends HTMLElement> {
ref: LegacyRef<R>;
model: LayoutModel;
/**
* Component creating an invisible "slot" for a tile to go in.
*/
Slot: ComponentType<SlotProps<TileModel>>;
}
export interface TileProps<Model, R extends HTMLElement> {
ref: LegacyRef<R>;
className?: string;
style?: ComponentProps<typeof animated.div>["style"];
/**
* The width this tile will have once its animations have settled.
*/
targetWidth: number;
/**
* The height this tile will have once its animations have settled.
*/
targetHeight: number;
model: Model;
}
interface Drag {
/**
* The X coordinate of the dragged tile in grid space.
*/
x: number;
/**
* The Y coordinate of the dragged tile in grid space.
*/
y: number;
/**
* The X coordinate of the dragged tile, as a scalar of the grid width.
*/
xRatio: number;
/**
* The Y coordinate of the dragged tile, as a scalar of the grid height.
*/
yRatio: number;
}
export type DragCallback = (drag: Drag) => void;
interface LayoutMemoProps<LayoutModel, TileModel, R extends HTMLElement>
extends LayoutProps<LayoutModel, TileModel, R> {
Layout: ComponentType<LayoutProps<LayoutModel, TileModel, R>>;
}
interface Props<
LayoutModel,
TileModel,
LayoutRef extends HTMLElement,
TileRef extends HTMLElement,
> {
/**
* Data with which to populate the layout.
*/
model: LayoutModel;
/**
* A component which creates an invisible layout grid of "slots" for tiles to
* go in. The root element must have a data-generation attribute which
* increments whenever the layout may have changed.
*/
Layout: ComponentType<LayoutProps<LayoutModel, TileModel, LayoutRef>>;
/**
* The component used to render each tile in the layout.
*/
Tile: ComponentType<TileProps<TileModel, TileRef>>;
className?: string;
style?: CSSProperties;
}
/**
* A grid of animated tiles.
*/
export function Grid<
LayoutModel,
TileModel,
LayoutRef extends HTMLElement,
TileRef extends HTMLElement,
>({
model,
Layout,
Tile,
className,
style,
}: Props<LayoutModel, TileModel, LayoutRef, TileRef>): ReactNode {
// Overview: This component places tiles by rendering an invisible layout grid
// of "slots" for tiles to go in. Once rendered, it uses the DOM API to get
// the dimensions of each slot, feeding these numbers back into react-spring
// to let the actual tiles move freely atop the layout.
// To tell us when the layout has changed, the layout system increments its
// data-generation attribute, which we watch with a MutationObserver.
const [gridRef1, gridBounds] = useMeasure();
const [gridRoot, gridRef2] = useState<HTMLElement | null>(null);
const gridRef = useMergedRefs<HTMLElement>(gridRef1, gridRef2);
const [layoutRoot, setLayoutRoot] = useState<HTMLElement | null>(null);
const [generation, setGeneration] = useState<number | null>(null);
const tiles = useInitial(() => new Map<string, Tile<TileModel>>());
const prefersReducedMotion = usePrefersReducedMotion();
const Slot: FC<SlotProps<TileModel>> = useMemo(
() =>
function Slot({ id, model, onDrag, style, className, ...props }) {
const ref = useRef<HTMLDivElement | null>(null);
useEffect(() => {
tiles.set(id, { id, model, onDrag });
return (): void => void tiles.delete(id);
}, [id, model, onDrag]);
return (
<div
ref={ref}
className={classNames(className, styles.slot)}
data-id={id}
style={style}
{...props}
/>
);
},
[tiles],
);
// We must memoize the Layout component to break the update loop where a
// render of Grid causes a re-render of Layout, which in turn re-renders Grid
const LayoutMemo = useMemo(
() =>
memo(
forwardRef<
LayoutRef,
LayoutMemoProps<LayoutModel, TileModel, LayoutRef>
>(function LayoutMemo({ Layout, ...props }, ref): ReactNode {
return <Layout {...props} ref={ref} />;
}),
),
[],
);
const context: LayoutContext = useMemo(() => ({ setGeneration }), []);
// Combine the tile definitions and slots together to create placed tiles
const placedTiles = useMemo(() => {
const result: PlacedTile<TileModel>[] = [];
if (gridRoot !== null && layoutRoot !== null) {
const slots = layoutRoot.getElementsByClassName(
styles.slot,
) as HTMLCollectionOf<HTMLElement>;
for (const slot of slots) {
const id = slot.getAttribute("data-id")!;
if (slot.offsetWidth > 0 && slot.offsetHeight > 0)
result.push({
...tiles.get(id)!,
...offset(slot, gridRoot),
width: slot.offsetWidth,
height: slot.offsetHeight,
});
}
}
return result;
// The rects may change due to the grid resizing or updating to a new
// generation, but eslint can't statically verify this
// eslint-disable-next-line react-hooks/exhaustive-deps
}, [gridRoot, layoutRoot, tiles, gridBounds, generation]);
// Drag state is stored in a ref rather than component state, because we use
// react-spring's imperative API during gestures to improve responsiveness
const dragState = useRef<DragState | null>(null);
const [tileTransitions, springRef] = useTransition(
placedTiles,
() => ({
key: ({ id }: Tile<TileModel>): string => id,
from: ({
x,
y,
width,
height,
}: PlacedTile<TileModel>): TileSpringUpdate => ({
opacity: 0,
scale: 0,
zIndex: 1,
x,
y,
width,
height,
immediate: prefersReducedMotion,
}),
enter: { opacity: 1, scale: 1, immediate: prefersReducedMotion },
update: ({
id,
x,
y,
width,
height,
}: PlacedTile<TileModel>): TileSpringUpdate | null =>
id === dragState.current?.tileId
? null
: {
x,
y,
width,
height,
immediate: prefersReducedMotion,
},
leave: { opacity: 0, scale: 0, immediate: prefersReducedMotion },
config: { mass: 0.7, tension: 252, friction: 25 },
}),
// react-spring's types are bugged and can't infer the spring type
) as unknown as [
TransitionFn<PlacedTile<TileModel>, TileSpring>,
SpringRef<TileSpring>,
];
// Because we're using react-spring in imperative mode, we're responsible for
// firing animations manually whenever the tiles array updates
useEffect(() => {
springRef.start();
}, [placedTiles, springRef]);
const animateDraggedTile = (
endOfGesture: boolean,
callback: DragCallback,
): void => {
const { tileId, tileX, tileY } = dragState.current!;
const tile = placedTiles.find((t) => t.id === tileId)!;
springRef.current
.find((c) => (c.item as Tile<TileModel>).id === tileId)
?.start(
endOfGesture
? {
scale: 1,
zIndex: 1,
x: tile.x,
y: tile.y,
width: tile.width,
height: tile.height,
immediate:
prefersReducedMotion || ((key): boolean => key === "zIndex"),
// Allow the tile's position to settle before pushing its
// z-index back down
delay: (key): number => (key === "zIndex" ? 500 : 0),
}
: {
scale: 1.1,
zIndex: 2,
x: tileX,
y: tileY,
immediate:
prefersReducedMotion ||
((key): boolean =>
key === "zIndex" || key === "x" || key === "y"),
},
);
if (endOfGesture)
callback({
x: tileX,
y: tileY,
xRatio: tileX / (gridBounds.width - tile.width),
yRatio: tileY / (gridBounds.height - tile.height),
});
};
// Callback for useDrag. We could call useDrag here, but the default
// pattern of spreading {...bind()} across the children to bind the gesture
// ends up breaking memoization and ruining this component's performance.
// Instead, we pass this callback to each tile via a ref, to let them bind the
// gesture using the much more sensible ref-based method.
const onTileDrag = (
tileId: string,
{
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
// @ts-ignore
tap,
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
// @ts-ignore
initial: [initialX, initialY],
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
// @ts-ignore
delta: [dx, dy],
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
// @ts-ignore
last,
}: Parameters<Handler<"drag", EventTypes["drag"]>>[0],
): void => {
if (!tap) {
const tileController = springRef.current.find(
(c) => (c.item as Tile<TileModel>).id === tileId,
)!;
const callback = tiles.get(tileController.item.id)!.onDrag;
if (callback != null) {
if (dragState.current === null) {
const tileSpring = tileController.get();
dragState.current = {
tileId,
tileX: tileSpring.x,
tileY: tileSpring.y,
cursorX: initialX - gridBounds.x,
cursorY: initialY - gridBounds.y + scrollOffset.current,
};
}
dragState.current.tileX += dx;
dragState.current.tileY += dy;
dragState.current.cursorX += dx;
dragState.current.cursorY += dy;
animateDraggedTile(last, callback);
if (last) dragState.current = null;
}
}
};
const onTileDragRef = useRef(onTileDrag);
onTileDragRef.current = onTileDrag;
const scrollOffset = useRef(0);
useScroll(
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
// @ts-ignore
({ xy: [, y], delta: [, dy] }) => {
scrollOffset.current = y;
if (dragState.current !== null) {
dragState.current.tileY += dy;
dragState.current.cursorY += dy;
animateDraggedTile(false, tiles.get(dragState.current.tileId)!.onDrag!);
}
},
{ target: gridRoot ?? undefined },
);
return (
<div
ref={gridRef}
className={classNames(className, styles.grid)}
style={style}
>
<LayoutContext.Provider value={context}>
<LayoutMemo
ref={setLayoutRoot}
Layout={Layout}
model={model}
Slot={Slot}
/>
</LayoutContext.Provider>
{tileTransitions((spring, { id, model, onDrag, width, height }) => (
<TileWrapper
key={id}
id={id}
onDrag={onDrag ? onTileDragRef : null}
targetWidth={width}
targetHeight={height}
model={model}
Tile={Tile}
{...spring}
/>
))}
</div>
);
}

View File

@@ -0,0 +1,61 @@
/*
Copyright 2024 New Vector Ltd
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
.fixed,
.scrolling {
block-size: 100%;
}
.scrolling {
display: flex;
flex-wrap: wrap;
justify-content: center;
align-content: center;
gap: var(--gap);
}
.scrolling > .slot {
width: var(--width);
height: var(--height);
}
.fixed {
position: relative;
}
.fixed > .slot {
position: absolute;
inline-size: 404px;
block-size: 233px;
inset-block: 0;
inset-inline: var(--cpd-space-3x);
}
.fixed > .slot[data-block-alignment="start"] {
inset-block-end: unset;
}
.fixed > .slot[data-block-alignment="end"] {
inset-block-start: unset;
}
.fixed > .slot[data-inline-alignment="start"] {
inset-inline-end: unset;
}
.fixed > .slot[data-inline-alignment="end"] {
inset-inline-start: unset;
}

129
src/grid/GridLayout.tsx Normal file
View File

@@ -0,0 +1,129 @@
/*
Copyright 2024 New Vector Ltd
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
import { CSSProperties, forwardRef, useCallback, useMemo } from "react";
import { distinctUntilChanged } from "rxjs";
import { useObservableEagerState } from "observable-hooks";
import { GridLayout as GridLayoutModel } from "../state/CallViewModel";
import styles from "./GridLayout.module.css";
import { useInitial } from "../useInitial";
import {
CallLayout,
GridTileModel,
TileModel,
arrangeTiles,
} from "./CallLayout";
import { DragCallback, useUpdateLayout } from "./Grid";
interface GridCSSProperties extends CSSProperties {
"--gap": string;
"--width": string;
"--height": string;
}
/**
* An implementation of the "grid" layout, in which all participants are shown
* together in a scrolling grid.
*/
export const makeGridLayout: CallLayout<GridLayoutModel> = ({
minBounds,
spotlightAlignment,
}) => ({
scrollingOnTop: false,
// The "fixed" (non-scrolling) part of the layout is where the spotlight tile
// lives
fixed: forwardRef(function GridLayoutFixed({ model, Slot }, ref) {
useUpdateLayout();
const alignment = useObservableEagerState(
useInitial(() =>
spotlightAlignment.pipe(
distinctUntilChanged(
(a1, a2) => a1.block === a2.block && a1.inline === a2.inline,
),
),
),
);
const tileModel: TileModel | undefined = useMemo(
() =>
model.spotlight && {
type: "spotlight",
vms: model.spotlight,
maximised: false,
},
[model.spotlight],
);
const onDragSpotlight: DragCallback = useCallback(
({ xRatio, yRatio }) =>
spotlightAlignment.next({
block: yRatio < 0.5 ? "start" : "end",
inline: xRatio < 0.5 ? "start" : "end",
}),
[],
);
return (
<div ref={ref} className={styles.fixed}>
{tileModel && (
<Slot
className={styles.slot}
id="spotlight"
model={tileModel}
onDrag={onDragSpotlight}
data-block-alignment={alignment.block}
data-inline-alignment={alignment.inline}
/>
)}
</div>
);
}),
// The scrolling part of the layout is where all the grid tiles live
scrolling: forwardRef(function GridLayout({ model, Slot }, ref) {
useUpdateLayout();
const { width, height: minHeight } = useObservableEagerState(minBounds);
const { gap, tileWidth, tileHeight } = useMemo(
() => arrangeTiles(width, minHeight, model.grid.length),
[width, minHeight, model.grid.length],
);
const tileModels: GridTileModel[] = useMemo(
() => model.grid.map((vm) => ({ type: "grid", vm })),
[model.grid],
);
return (
<div
ref={ref}
className={styles.scrolling}
style={
{
width,
"--gap": `${gap}px`,
"--width": `${Math.floor(tileWidth)}px`,
"--height": `${Math.floor(tileHeight)}px`,
} as GridCSSProperties
}
>
{tileModels.map((m) => (
<Slot key={m.vm.id} className={styles.slot} id={m.vm.id} model={m} />
))}
</div>
);
}),
});

View File

@@ -0,0 +1,54 @@
/*
Copyright 2024 New Vector Ltd
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
.layer {
block-size: 100%;
display: grid;
place-items: center;
}
.container {
position: relative;
}
.local {
position: absolute;
inline-size: 180px;
block-size: 135px;
inset: var(--cpd-space-4x);
}
.spotlight {
position: absolute;
inline-size: 404px;
block-size: 233px;
}
.slot[data-block-alignment="start"] {
inset-block-end: unset;
}
.slot[data-block-alignment="end"] {
inset-block-start: unset;
}
.slot[data-inline-alignment="start"] {
inset-inline-end: unset;
}
.slot[data-inline-alignment="end"] {
inset-inline-start: unset;
}

View File

@@ -0,0 +1,88 @@
/*
Copyright 2024 New Vector Ltd
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
import { forwardRef, useCallback, useMemo } from "react";
import { useObservableEagerState } from "observable-hooks";
import classNames from "classnames";
import { OneOnOneLayout as OneOnOneLayoutModel } from "../state/CallViewModel";
import { CallLayout, GridTileModel, arrangeTiles } from "./CallLayout";
import styles from "./OneOnOneLayout.module.css";
import { DragCallback, useUpdateLayout } from "./Grid";
/**
* An implementation of the "one-on-one" layout, in which the remote participant
* is shown at maximum size, overlaid by a small view of the local participant.
*/
export const makeOneOnOneLayout: CallLayout<OneOnOneLayoutModel> = ({
minBounds,
pipAlignment,
}) => ({
scrollingOnTop: false,
fixed: forwardRef(function OneOnOneLayoutFixed(_props, ref) {
useUpdateLayout();
return <div ref={ref} />;
}),
scrolling: forwardRef(function OneOnOneLayoutScrolling({ model, Slot }, ref) {
useUpdateLayout();
const { width, height } = useObservableEagerState(minBounds);
const pipAlignmentValue = useObservableEagerState(pipAlignment);
const { tileWidth, tileHeight } = useMemo(
() => arrangeTiles(width, height, 1),
[width, height],
);
const remoteTileModel: GridTileModel = useMemo(
() => ({ type: "grid", vm: model.remote }),
[model.remote],
);
const localTileModel: GridTileModel = useMemo(
() => ({ type: "grid", vm: model.local }),
[model.local],
);
const onDragLocalTile: DragCallback = useCallback(
({ xRatio, yRatio }) =>
pipAlignment.next({
block: yRatio < 0.5 ? "start" : "end",
inline: xRatio < 0.5 ? "start" : "end",
}),
[],
);
return (
<div ref={ref} className={styles.layer}>
<Slot
id={remoteTileModel.vm.id}
model={remoteTileModel}
className={styles.container}
style={{ width: tileWidth, height: tileHeight }}
>
<Slot
className={classNames(styles.slot, styles.local)}
id={localTileModel.vm.id}
model={localTileModel}
onDrag={onDragLocalTile}
data-block-alignment={pipAlignmentValue.block}
data-inline-alignment={pipAlignmentValue.inline}
/>
</Slot>
</div>
);
}),
});

View File

@@ -0,0 +1,54 @@
/*
Copyright 2024 New Vector Ltd
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
.layer {
block-size: 100%;
}
.spotlight {
block-size: 100%;
inline-size: 100%;
}
.pip {
position: absolute;
inline-size: 135px;
block-size: 160px;
inset: var(--cpd-space-4x);
}
@media (min-width: 600px) {
.pip {
inline-size: 180px;
block-size: 135px;
}
}
.pip[data-block-alignment="start"] {
inset-block-end: unset;
}
.pip[data-block-alignment="end"] {
inset-block-start: unset;
}
.pip[data-inline-alignment="start"] {
inset-inline-end: unset;
}
.pip[data-inline-alignment="end"] {
inset-inline-start: unset;
}

View File

@@ -0,0 +1,91 @@
/*
Copyright 2024 New Vector Ltd
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
import { forwardRef, useCallback, useMemo } from "react";
import { useObservableEagerState } from "observable-hooks";
import { SpotlightExpandedLayout as SpotlightExpandedLayoutModel } from "../state/CallViewModel";
import { CallLayout, GridTileModel, SpotlightTileModel } from "./CallLayout";
import { DragCallback, useUpdateLayout } from "./Grid";
import styles from "./SpotlightExpandedLayout.module.css";
/**
* An implementation of the "expanded spotlight" layout, in which the spotlight
* tile stretches edge-to-edge and is overlaid by a picture-in-picture tile.
*/
export const makeSpotlightExpandedLayout: CallLayout<
SpotlightExpandedLayoutModel
> = ({ pipAlignment }) => ({
scrollingOnTop: true,
fixed: forwardRef(function SpotlightExpandedLayoutFixed(
{ model, Slot },
ref,
) {
useUpdateLayout();
const spotlightTileModel: SpotlightTileModel = useMemo(
() => ({ type: "spotlight", vms: model.spotlight, maximised: true }),
[model.spotlight],
);
return (
<div ref={ref} className={styles.layer}>
<Slot
className={styles.spotlight}
id="spotlight"
model={spotlightTileModel}
/>
</div>
);
}),
scrolling: forwardRef(function SpotlightExpandedLayoutScrolling(
{ model, Slot },
ref,
) {
useUpdateLayout();
const pipAlignmentValue = useObservableEagerState(pipAlignment);
const pipTileModel: GridTileModel | undefined = useMemo(
() => model.pip && { type: "grid", vm: model.pip },
[model.pip],
);
const onDragPip: DragCallback = useCallback(
({ xRatio, yRatio }) =>
pipAlignment.next({
block: yRatio < 0.5 ? "start" : "end",
inline: xRatio < 0.5 ? "start" : "end",
}),
[],
);
return (
<div ref={ref} className={styles.layer}>
{pipTileModel && (
<Slot
className={styles.pip}
id="pip"
model={pipTileModel}
onDrag={onDragPip}
data-block-alignment={pipAlignmentValue.block}
data-inline-alignment={pipAlignmentValue.inline}
/>
)}
</div>
);
}),
});

View File

@@ -0,0 +1,54 @@
/*
Copyright 2024 New Vector Ltd
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
.layer {
block-size: 100%;
display: grid;
--gap: 20px;
gap: var(--gap);
--grid-slot-width: 180px;
grid-template-columns: 1fr var(--grid-slot-width);
grid-template-rows: minmax(1fr, auto);
padding-inline: var(--gap);
}
.spotlight {
container: spotlight / size;
display: grid;
place-items: center;
}
/* CSS makes us put a condition here, even though all we want to do is
unconditionally select the container so we can use cq units */
@container spotlight (width > 0) {
.spotlight > .slot {
inline-size: min(100cqi, 100cqb * (17 / 9));
block-size: min(100cqb, 100cqi / (4 / 3));
}
}
.grid {
display: flex;
flex-wrap: wrap;
gap: var(--gap);
justify-content: center;
align-content: center;
}
.grid > .slot {
inline-size: 180px;
block-size: 135px;
}

View File

@@ -0,0 +1,92 @@
/*
Copyright 2024 New Vector Ltd
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
import { forwardRef, useMemo } from "react";
import { useObservableEagerState } from "observable-hooks";
import classNames from "classnames";
import { CallLayout, GridTileModel, TileModel } from "./CallLayout";
import { SpotlightLandscapeLayout as SpotlightLandscapeLayoutModel } from "../state/CallViewModel";
import styles from "./SpotlightLandscapeLayout.module.css";
import { useUpdateLayout } from "./Grid";
/**
* An implementation of the "spotlight landscape" layout, in which the spotlight
* tile takes up most of the space on the left, and the grid of participants is
* shown as a scrolling rail on the right.
*/
export const makeSpotlightLandscapeLayout: CallLayout<
SpotlightLandscapeLayoutModel
> = ({ minBounds }) => ({
scrollingOnTop: false,
fixed: forwardRef(function SpotlightLandscapeLayoutFixed(
{ model, Slot },
ref,
) {
useUpdateLayout();
useObservableEagerState(minBounds);
const tileModel: TileModel = useMemo(
() => ({
type: "spotlight",
vms: model.spotlight,
maximised: false,
}),
[model.spotlight],
);
return (
<div ref={ref} className={styles.layer}>
<div className={styles.spotlight}>
<Slot className={styles.slot} id="spotlight" model={tileModel} />
</div>
<div className={styles.grid} />
</div>
);
}),
scrolling: forwardRef(function SpotlightLandscapeLayoutScrolling(
{ model, Slot },
ref,
) {
useUpdateLayout();
useObservableEagerState(minBounds);
const tileModels: GridTileModel[] = useMemo(
() => model.grid.map((vm) => ({ type: "grid", vm })),
[model.grid],
);
return (
<div ref={ref} className={styles.layer}>
<div
className={classNames(styles.spotlight, {
[styles.withIndicators]: model.spotlight.length > 1,
})}
/>
<div className={styles.grid}>
{tileModels.map((m) => (
<Slot
key={m.vm.id}
className={styles.slot}
id={m.vm.id}
model={m}
/>
))}
</div>
</div>
);
}),
});

View File

@@ -0,0 +1,56 @@
/*
Copyright 2024 New Vector Ltd
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
.layer {
block-size: 100%;
display: grid;
--gap: 20px;
gap: var(--gap);
margin-inline: 0;
display: block;
}
.spotlight {
container: spotlight / size;
display: grid;
place-items: center;
inline-size: 100%;
aspect-ratio: 16 / 9;
margin-block-end: var(--cpd-space-4x);
}
.spotlight.withIndicators {
margin-block-end: calc(2 * var(--cpd-space-4x) + 2px);
}
.spotlight > .slot {
inline-size: 100%;
block-size: 100%;
}
.grid {
display: flex;
flex-wrap: wrap;
gap: var(--grid-gap);
justify-content: center;
align-content: start;
padding-inline: var(--grid-gap);
}
.grid > .slot {
inline-size: var(--grid-tile-width);
block-size: var(--grid-tile-height);
}

View File

@@ -0,0 +1,118 @@
/*
Copyright 2024 New Vector Ltd
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
import { CSSProperties, forwardRef, useMemo } from "react";
import { useObservableEagerState } from "observable-hooks";
import classNames from "classnames";
import {
CallLayout,
GridTileModel,
TileModel,
arrangeTiles,
} from "./CallLayout";
import { SpotlightPortraitLayout as SpotlightPortraitLayoutModel } from "../state/CallViewModel";
import styles from "./SpotlightPortraitLayout.module.css";
import { useUpdateLayout } from "./Grid";
interface GridCSSProperties extends CSSProperties {
"--grid-gap": string;
"--grid-tile-width": string;
"--grid-tile-height": string;
}
/**
* An implementation of the "spotlight portrait" layout, in which the spotlight
* tile is shown across the top of the screen, and the grid of participants
* scrolls behind it.
*/
export const makeSpotlightPortraitLayout: CallLayout<
SpotlightPortraitLayoutModel
> = ({ minBounds }) => ({
scrollingOnTop: false,
fixed: forwardRef(function SpotlightPortraitLayoutFixed(
{ model, Slot },
ref,
) {
useUpdateLayout();
const tileModel: TileModel = useMemo(
() => ({
type: "spotlight",
vms: model.spotlight,
maximised: true,
}),
[model.spotlight],
);
return (
<div ref={ref} className={styles.layer}>
<div className={styles.spotlight}>
<Slot className={styles.slot} id="spotlight" model={tileModel} />
</div>
</div>
);
}),
scrolling: forwardRef(function SpotlightPortraitLayoutScrolling(
{ model, Slot },
ref,
) {
useUpdateLayout();
const { width } = useObservableEagerState(minBounds);
const { gap, tileWidth, tileHeight } = arrangeTiles(
width,
// TODO: We pretend that the minimum height is the width, because the
// actual minimum height is difficult to calculate
width,
model.grid.length,
);
const tileModels: GridTileModel[] = useMemo(
() => model.grid.map((vm) => ({ type: "grid", vm })),
[model.grid],
);
return (
<div
ref={ref}
className={styles.layer}
style={
{
"--grid-gap": `${gap}px`,
"--grid-tile-width": `${Math.floor(tileWidth)}px`,
"--grid-tile-height": `${Math.floor(tileHeight)}px`,
} as GridCSSProperties
}
>
<div
className={classNames(styles.spotlight, {
[styles.withIndicators]: model.spotlight.length > 1,
})}
/>
<div className={styles.grid}>
{tileModels.map((m) => (
<Slot
key={m.vm.id}
className={styles.slot}
id={m.vm.id}
model={m}
/>
))}
</div>
</div>
);
}),
});

View File

@@ -1,5 +1,5 @@
/*
Copyright 2023 New Vector Ltd
Copyright 2024 New Vector Ltd
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
@@ -14,15 +14,10 @@ See the License for the specific language governing permissions and
limitations under the License.
*/
.bigGrid {
display: grid;
grid-auto-rows: 130px;
gap: var(--cpd-space-2x);
.tile.draggable {
cursor: grab;
}
@media (min-width: 800px) {
.bigGrid {
grid-auto-rows: 135px;
gap: var(--cpd-space-5x);
}
.tile.draggable:active {
cursor: grabbing;
}

View File

@@ -1,5 +1,5 @@
/*
Copyright 2023 New Vector Ltd
Copyright 2023-2024 New Vector Ltd
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
@@ -14,70 +14,64 @@ See the License for the specific language governing permissions and
limitations under the License.
*/
import { memo, ReactNode, RefObject, useRef } from "react";
import { ComponentType, memo, RefObject, useRef } from "react";
import { EventTypes, Handler, useDrag } from "@use-gesture/react";
import { SpringValue, to } from "@react-spring/web";
import { SpringValue } from "@react-spring/web";
import classNames from "classnames";
import { ChildrenProperties } from "./VideoGrid";
import { TileProps } from "./Grid";
import styles from "./TileWrapper.module.css";
interface Props<T> {
interface Props<M, R extends HTMLElement> {
id: string;
onDragRef: RefObject<
onDrag: RefObject<
(
tileId: string,
state: Parameters<Handler<"drag", EventTypes["drag"]>>[0],
) => void
>;
> | null;
targetWidth: number;
targetHeight: number;
data: T;
model: M;
Tile: ComponentType<TileProps<M, R>>;
opacity: SpringValue<number>;
scale: SpringValue<number>;
shadow: SpringValue<number>;
shadowSpread: SpringValue<number>;
zIndex: SpringValue<number>;
x: SpringValue<number>;
y: SpringValue<number>;
width: SpringValue<number>;
height: SpringValue<number>;
children: (props: ChildrenProperties<T>) => ReactNode;
}
/**
* A wrapper around a tile in a video grid. This component exists to decouple
* child components from the grid.
*/
export const TileWrapper = memo(
({
const TileWrapper_ = memo(
<M, R extends HTMLElement>({
id,
onDragRef,
onDrag,
targetWidth,
targetHeight,
data,
model,
Tile,
opacity,
scale,
shadow,
shadowSpread,
zIndex,
x,
y,
width,
height,
children,
}) => {
const ref = useRef<HTMLElement | null>(null);
}: Props<M, R>) => {
const ref = useRef<R | null>(null);
useDrag((state) => onDragRef?.current!(id, state), {
useDrag((state) => onDrag?.current!(id, state), {
target: ref,
filterTaps: true,
preventScroll: true,
});
return (
<>
{children({
ref,
style: {
<Tile
ref={ref}
className={classNames(styles.tile, { [styles.draggable]: onDrag })}
style={{
opacity,
scale,
zIndex,
@@ -85,19 +79,24 @@ export const TileWrapper = memo(
y,
width,
height,
boxShadow: to(
[shadow, shadowSpread],
(s, ss) => `rgba(0, 0, 0, 0.5) 0px ${s}px ${2 * s}px ${ss}px`,
),
},
targetWidth,
targetHeight,
data,
})}
</>
}}
targetWidth={targetWidth}
targetHeight={targetHeight}
model={model}
/>
);
},
// We pretend this component is a simple function rather than a
// NamedExoticComponent, because that's the only way we can fit in a type
// parameter
) as <T>(props: Props<T>) => JSX.Element;
);
TileWrapper_.displayName = "TileWrapper";
/**
* A wrapper around a tile in a video grid. This component exists to decouple
* child components from the grid.
*/
// We pretend this component is a simple function rather than a
// NamedExoticComponent, because that's the only way we can fit in a type
// parameter
export const TileWrapper = TileWrapper_ as <M, R extends HTMLElement>(
props: Props<M, R>,
) => JSX.Element;

View File

@@ -26,7 +26,7 @@ import styles from "./CallList.module.css";
import { getAbsoluteRoomUrl, getRelativeRoomUrl } from "../matrix-utils";
import { Body } from "../typography/Typography";
import { GroupCallRoom } from "./useGroupCallRooms";
import { useRoomSharedKey } from "../e2ee/sharedKeyManagement";
import { useRoomEncryptionSystem } from "../e2ee/sharedKeyManagement";
interface CallListProps {
rooms: GroupCallRoom[];
@@ -66,16 +66,11 @@ interface CallTileProps {
}
const CallTile: FC<CallTileProps> = ({ name, avatarUrl, room }) => {
const roomSharedKey = useRoomSharedKey(room.roomId);
const roomEncryptionSystem = useRoomEncryptionSystem(room.roomId);
return (
<div className={styles.callTile}>
<Link
to={getRelativeRoomUrl(
room.roomId,
room.name,
roomSharedKey ?? undefined,
)}
to={getRelativeRoomUrl(room.roomId, roomEncryptionSystem, room.name)}
className={styles.callTileLink}
>
<Avatar id={room.roomId} name={name} size={Size.LG} src={avatarUrl} />
@@ -89,11 +84,8 @@ const CallTile: FC<CallTileProps> = ({ name, avatarUrl, room }) => {
<CopyButton
className={styles.copyButton}
variant="icon"
value={getAbsoluteRoomUrl(
room.roomId,
room.name,
roomSharedKey ?? undefined,
)}
// Todo add the viaServers to the created link
value={getAbsoluteRoomUrl(room.roomId, roomEncryptionSystem, room.name)}
/>
</div>
);

View File

@@ -38,9 +38,12 @@ import { UserMenuContainer } from "../UserMenuContainer";
import { JoinExistingCallModal } from "./JoinExistingCallModal";
import { Caption } from "../typography/Typography";
import { Form } from "../form/Form";
import { useOptInAnalytics } from "../settings/useSetting";
import { AnalyticsNotice } from "../analytics/AnalyticsNotice";
import { E2eeType } from "../e2ee/e2eeType";
import {
useSetting,
optInAnalytics as optInAnalyticsSetting,
} from "../settings/settings";
interface Props {
client: MatrixClient;
@@ -49,7 +52,7 @@ interface Props {
export const RegisteredView: FC<Props> = ({ client }) => {
const [loading, setLoading] = useState(false);
const [error, setError] = useState<Error>();
const [optInAnalytics] = useOptInAnalytics();
const [optInAnalytics] = useSetting(optInAnalyticsSetting);
const history = useHistory();
const { t } = useTranslation();
const [joinExistingCallModalOpen, setJoinExistingCallModalOpen] =
@@ -78,12 +81,14 @@ export const RegisteredView: FC<Props> = ({ client }) => {
roomName,
E2eeType.SHARED_KEY,
);
if (!createRoomResult.password)
throw new Error("Failed to create room with shared secret");
history.push(
getRelativeRoomUrl(
createRoomResult.roomId,
{ kind: E2eeType.SHARED_KEY, secret: createRoomResult.password },
roomName,
createRoomResult.password,
),
);
}

View File

@@ -41,15 +41,18 @@ import styles from "./UnauthenticatedView.module.css";
import commonStyles from "./common.module.css";
import { generateRandomName } from "../auth/generateRandomName";
import { AnalyticsNotice } from "../analytics/AnalyticsNotice";
import { useOptInAnalytics } from "../settings/useSetting";
import { Config } from "../config/Config";
import { E2eeType } from "../e2ee/e2eeType";
import {
useSetting,
optInAnalytics as optInAnalyticsSetting,
} from "../settings/settings";
export const UnauthenticatedView: FC = () => {
const { setClient } = useClient();
const [loading, setLoading] = useState(false);
const [error, setError] = useState<Error>();
const [optInAnalytics] = useOptInAnalytics();
const [optInAnalytics] = useSetting(optInAnalyticsSetting);
const { recaptchaKey, register } = useInteractiveRegistration();
const { execute, reset, recaptchaId } = useRecaptcha(recaptchaKey);
@@ -116,13 +119,15 @@ export const UnauthenticatedView: FC = () => {
if (!setClient) {
throw new Error("setClient is undefined");
}
if (!createRoomResult.password)
throw new Error("Failed to create room with shared secret");
setClient({ client, session });
history.push(
getRelativeRoomUrl(
createRoomResult.roomId,
{ kind: E2eeType.SHARED_KEY, secret: createRoomResult.password },
roomName,
createRoomResult.password,
),
);
}

View File

@@ -15,20 +15,22 @@ limitations under the License.
*/
import { MatrixClient } from "matrix-js-sdk/src/client";
import { GroupCall } from "matrix-js-sdk/src/webrtc/groupCall";
import { Room } from "matrix-js-sdk/src/models/room";
import { Room, RoomEvent } from "matrix-js-sdk/src/models/room";
import { RoomMember } from "matrix-js-sdk/src/models/room-member";
import { GroupCallEventHandlerEvent } from "matrix-js-sdk/src/webrtc/groupCallEventHandler";
import { useState, useEffect } from "react";
import { EventTimeline, EventType, JoinRule } from "matrix-js-sdk";
import { MatrixRTCSession } from "matrix-js-sdk/src/matrixrtc/MatrixRTCSession";
import { MatrixRTCSessionManagerEvents } from "matrix-js-sdk/src/matrixrtc/MatrixRTCSessionManager";
import { KnownMembership } from "matrix-js-sdk/src/types";
import { getKeyForRoom, isRoomE2EE } from "../e2ee/sharedKeyManagement";
import { getKeyForRoom } from "../e2ee/sharedKeyManagement";
export interface GroupCallRoom {
roomAlias?: string;
roomName: string;
avatarUrl: string;
room: Room;
groupCall: GroupCall;
session: MatrixRTCSession;
participants: RoomMember[];
}
const tsCache: { [index: string]: number } = {};
@@ -46,7 +48,7 @@ function getLastTs(client: MatrixClient, r: Room): number {
const myUserId = client.getUserId()!;
if (r.getMyMembership() !== "join") {
if (r.getMyMembership() !== KnownMembership.Join) {
const membershipEvent = r.currentState.getStateEvents(
"m.room.member",
myUserId,
@@ -80,38 +82,77 @@ function sortRooms(client: MatrixClient, rooms: Room[]): Room[] {
});
}
function roomIsJoinable(room: Room): boolean {
if (isRoomE2EE(room)) {
return Boolean(getKeyForRoom(room.roomId));
} else {
return true;
const roomIsJoinable = (room: Room): boolean => {
if (!room.hasEncryptionStateEvent() && !getKeyForRoom(room.roomId)) {
// if we have an non encrypted room (no encryption state event) we need a locally stored shared key.
// in case this key also does not exists we cannot join the room.
return false;
}
}
// otherwise we can always join rooms because we will automatically decide if we want to use perParticipant or password
switch (room.getJoinRule()) {
case JoinRule.Public:
return true;
case JoinRule.Knock:
switch (room.getMyMembership()) {
case KnownMembership.Join:
case KnownMembership.Knock:
return true;
case KnownMembership.Invite:
return (
room
.getLiveTimeline()
.getState(EventTimeline.FORWARDS)
?.getStateEvents(EventType.RoomMember, room.myUserId)
?.getPrevContent().membership === JoinRule.Knock
);
default:
return false;
}
// TODO: check JoinRule.Restricted and return true if join condition is satisfied
default:
return room.getMyMembership() === KnownMembership.Join;
}
};
const roomHasCallMembershipEvents = (room: Room): boolean => {
switch (room.getMyMembership()) {
case KnownMembership.Join:
return !!room
.getLiveTimeline()
.getState(EventTimeline.FORWARDS)
?.events?.get(EventType.GroupCallMemberPrefix);
case KnownMembership.Knock:
// Assume that a room you've knocked on is able to hold calls
return true;
default:
return false;
}
};
export function useGroupCallRooms(client: MatrixClient): GroupCallRoom[] {
const [rooms, setRooms] = useState<GroupCallRoom[]>([]);
useEffect(() => {
function updateRooms(): void {
if (!client.groupCallEventHandler) {
return;
}
const groupCalls = client.groupCallEventHandler.groupCalls.values();
const rooms = Array.from(groupCalls)
.map((groupCall) => groupCall.room)
// We want to show all rooms that historically had a call and which we are (can become) part of.
const rooms = client
.getRooms()
.filter(roomHasCallMembershipEvents)
.filter(roomIsJoinable);
const sortedRooms = sortRooms(client, rooms);
const items = sortedRooms.map((room) => {
const groupCall = client.getGroupCallForRoom(room.roomId)!;
const session = client.matrixRTC.getRoomSession(room);
session.memberships;
return {
roomAlias: room.getCanonicalAlias() ?? undefined,
roomName: room.name,
avatarUrl: room.getMxcAvatarUrl()!,
room,
groupCall,
participants: [...groupCall!.participants.keys()],
session,
participants: session.memberships
.filter((m) => m.sender)
.map((m) => room.getMember(m.sender!))
.filter((m) => m) as RoomMember[],
};
});
@@ -120,15 +161,17 @@ export function useGroupCallRooms(client: MatrixClient): GroupCallRoom[] {
updateRooms();
client.on(GroupCallEventHandlerEvent.Incoming, updateRooms);
client.on(GroupCallEventHandlerEvent.Participants, updateRooms);
return () => {
client.removeListener(GroupCallEventHandlerEvent.Incoming, updateRooms);
client.removeListener(
GroupCallEventHandlerEvent.Participants,
client.matrixRTC.on(
MatrixRTCSessionManagerEvents.SessionStarted,
updateRooms,
);
client.on(RoomEvent.MyMembership, updateRooms);
return (): void => {
client.matrixRTC.off(
MatrixRTCSessionManagerEvents.SessionStarted,
updateRooms,
);
client.off(RoomEvent.MyMembership, updateRooms);
};
}, [client]);

View File

@@ -1,4 +0,0 @@
<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M11.9699 2.22605L6 7.20093L1.5 7.20093C0.671573 7.20093 0 7.8725 0 8.70093V15.3009C0 16.1294 0.671571 16.8009 1.5 16.8009L6 16.8009L11.9699 21.7758C12.4584 22.1829 13.2 21.8355 13.2 21.1996V2.80221C13.2 2.16634 12.4584 1.81897 11.9699 2.22605Z" fill="white"/>
<path d="M17.5896 7.78682C17.2506 7.35087 16.6223 7.27234 16.1864 7.61141C15.7515 7.94959 15.6723 8.57548 16.0083 9.01128L16.0117 9.01586C16.0162 9.02185 16.0246 9.03334 16.0365 9.05007C16.0603 9.08359 16.0977 9.13784 16.1441 9.21085C16.2374 9.3574 16.3654 9.57639 16.4941 9.85222C16.7544 10.4099 17.0003 11.1627 17.0003 12.0008C17.0003 12.8388 16.7544 13.5916 16.4941 14.1493C16.3654 14.4251 16.2374 14.6441 16.1441 14.7907C16.0977 14.8637 16.0603 14.9179 16.0365 14.9514C16.0246 14.9682 16.0162 14.9797 16.0117 14.9857L16.0083 14.9903C15.6723 15.4261 15.7515 16.0519 16.1864 16.3901C16.6223 16.7292 17.2506 16.6506 17.5896 16.2147L16.8003 15.6008C17.5896 16.2147 17.5896 16.2147 17.5896 16.2147L17.5914 16.2124L17.5936 16.2095L17.5994 16.2021L17.6158 16.1802C17.6289 16.1626 17.6463 16.1389 17.6672 16.1094C17.709 16.0505 17.7654 15.9682 17.8315 15.8644C17.9632 15.6574 18.1352 15.3621 18.3065 14.9951C18.6462 14.267 19.0003 13.2199 19.0003 12.0008C19.0003 10.7816 18.6462 9.73448 18.3065 9.00645C18.1352 8.63942 17.9632 8.34412 17.8315 8.1371C17.7654 8.03333 17.709 7.95097 17.6672 7.89207C17.6463 7.8626 17.6289 7.83893 17.6158 7.82132L17.5994 7.79946L17.5936 7.79198L17.5914 7.78911L17.5905 7.78789C17.5905 7.78789 17.5896 7.78682 16.8003 8.40076L17.5896 7.78682Z" fill="white"/>
</svg>

Before

Width:  |  Height:  |  Size: 1.6 KiB

View File

@@ -1,3 +0,0 @@
<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
<path fill-rule="evenodd" clip-rule="evenodd" d="M2.63174 0.583224C2.15798 0.109466 1.38987 0.109466 0.91611 0.583224C0.442351 1.05698 0.442351 1.8251 0.91611 2.29885L5.3958 6.77855H5.37083L15.3629 16.7706V16.7456L20.7144 22.0972C21.1882 22.5709 21.9563 22.5709 22.4301 22.0972C22.9038 21.6234 22.9038 20.8553 22.4301 20.3816L2.63174 0.583224ZM15.3629 3.23319V9.88521L10.2275 4.74987L13.2404 2.2391C14.0833 1.53675 15.3629 2.13608 15.3629 3.23319ZM4.07191 16.8718H7.7929V16.872L13.2404 21.4116C14.0833 22.114 15.3629 21.5146 15.3629 20.4175V20.2018L2.4839 7.32287C1.87536 7.79641 1.48389 8.53577 1.48389 9.36657V14.2838C1.48389 15.7131 2.64258 16.8718 4.07191 16.8718Z" fill="white"/>
</svg>

Before

Width:  |  Height:  |  Size: 788 B

View File

@@ -1,3 +0,0 @@
<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M21 8.59V4C21 3.45 20.55 3 20 3H15.41C14.52 3 14.07 4.08 14.7 4.71L16.29 6.3L6.29 16.3L4.7 14.71C4.08 14.08 3 14.52 3 15.41V20C3 20.55 3.45 21 4 21H8.59C9.48 21 9.93 19.92 9.3 19.29L7.71 17.7L17.71 7.7L19.3 9.29C19.92 9.92 21 9.48 21 8.59Z" fill="white"/>
</svg>

Before

Width:  |  Height:  |  Size: 368 B

View File

@@ -1,3 +0,0 @@
<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M21.29 4.12L16.7 8.71L18.29 10.3C18.92 10.93 18.47 12.01 17.58 12.01H13C12.45 12.01 12 11.56 12 11.01V6.41C12 5.52 13.08 5.07 13.71 5.7L15.3 7.29L19.89 2.7C20.28 2.31 20.91 2.31 21.3 2.7C21.68 3.1 21.68 3.73 21.29 4.12ZM4.11997 21.29L8.70997 16.7L10.3 18.29C10.93 18.92 12.01 18.47 12.01 17.58V13C12.01 12.45 11.56 12 11.01 12H6.40997C5.51997 12 5.06997 13.08 5.69997 13.71L7.28997 15.3L2.69997 19.89C2.30997 20.28 2.30997 20.91 2.69997 21.3C3.09997 21.68 3.72997 21.68 4.11997 21.29Z" fill="white"/>
</svg>

Before

Width:  |  Height:  |  Size: 613 B

View File

@@ -2,17 +2,17 @@
<desc>Element Call (Beta)</desc>
<circle cx="15" cy="15" r="13" fill="white"/>
<path fill-rule="evenodd" clip-rule="evenodd" d="M15 30C23.2843 30 30 23.2843 30 15C30 6.71573 23.2843 0 15 0C6.71573 0 0 6.71573 0 15C0 23.2843 6.71573 30 15 30ZM12.2579 6.98923C12.2579 6.38376 12.7497 5.89292 13.3565 5.89292C17.4687 5.89292 20.8024 9.21967 20.8024 13.3234C20.8024 13.9289 20.3106 14.4197 19.7038 14.4197C19.0971 14.4197 18.6052 13.9289 18.6052 13.3234C18.6052 10.4306 16.2553 8.08554 13.3565 8.08554C12.7497 8.08554 12.2579 7.59471 12.2579 6.98923ZM24.1066 13.3235C24.1066 12.7181 23.6148 12.2272 23.008 12.2272C22.4013 12.2272 21.9094 12.7181 21.9094 13.3235C21.9094 16.2163 19.5595 18.5614 16.6607 18.5614C16.0539 18.5614 15.5621 19.0523 15.5621 19.6577C15.5621 20.2632 16.0539 20.754 16.6607 20.754C20.7729 20.754 24.1066 17.4273 24.1066 13.3235ZM17.7601 23.011C17.7601 23.6164 17.2682 24.1073 16.6615 24.1073C12.5492 24.1073 9.21553 20.7805 9.21553 16.6768C9.21553 16.0713 9.70739 15.5805 10.3141 15.5805C10.9209 15.5805 11.4127 16.0713 11.4127 16.6768C11.4127 19.5696 13.7627 21.9146 16.6615 21.9146C17.2682 21.9146 17.7601 22.4055 17.7601 23.011ZM5.89281 16.6769C5.89281 17.2824 6.38466 17.7732 6.9914 17.7732C7.59813 17.7732 8.08999 17.2824 8.08999 16.6769C8.08999 13.7841 10.4399 11.439 13.3388 11.439C13.9455 11.439 14.4373 10.9482 14.4373 10.3427C14.4373 9.73722 13.9455 9.24639 13.3388 9.24639C9.22647 9.24639 5.89281 12.5731 5.89281 16.6769Z" fill="#0DBD8B"/>
<path d="M53.5406 17.258H42.8052C42.932 18.3814 43.3397 19.2782 44.0282 19.9486C44.7167 20.6009 45.6227 20.927 46.746 20.927C47.4889 20.927 48.1593 20.7459 48.7572 20.3835C49.3551 20.0211 49.7809 19.5319 50.0346 18.9159H53.296C52.8611 20.3472 52.0458 21.5068 50.8499 22.3947C49.6722 23.2644 48.2771 23.6992 46.6645 23.6992C44.5627 23.6992 42.8596 23.0016 41.555 21.6065C40.2686 20.2114 39.6254 18.4448 39.6254 16.3068C39.6254 14.2231 40.2776 12.4747 41.5822 11.0614C42.8867 9.64814 44.5718 8.94151 46.6373 8.94151C48.7029 8.94151 50.3698 9.63908 51.6381 11.0342C52.9245 12.4112 53.5677 14.1506 53.5677 16.2524L53.5406 17.258ZM46.6373 11.5778C45.6227 11.5778 44.7801 11.8767 44.1098 12.4747C43.4394 13.0726 43.0226 13.8698 42.8596 14.8663H50.3607C50.2158 13.8698 49.8172 13.0726 49.1649 12.4747C48.5126 11.8767 47.6701 11.5778 46.6373 11.5778Z" fill="white"/>
<path d="M55.7934 19.1605V2.9895H59.0276V19.2148C59.0276 19.9396 59.4262 20.302 60.2234 20.302L60.7941 20.2748V23.3459C60.4861 23.4003 60.16 23.4274 59.8157 23.4274C58.4206 23.4274 57.3969 23.0741 56.7446 22.3675C56.1104 21.6609 55.7934 20.5919 55.7934 19.1605Z" fill="white"/>
<path d="M75.8563 17.258H65.121C65.2478 18.3814 65.6555 19.2782 66.344 19.9486C67.0325 20.6009 67.9384 20.927 69.0618 20.927C69.8047 20.927 70.4751 20.7459 71.073 20.3835C71.6709 20.0211 72.0967 19.5319 72.3503 18.9159H75.6117C75.1769 20.3472 74.3615 21.5068 73.1657 22.3947C71.988 23.2644 70.5928 23.6992 68.9803 23.6992C66.8785 23.6992 65.1753 23.0016 63.8708 21.6065C62.5843 20.2114 61.9411 18.4448 61.9411 16.3068C61.9411 14.2231 62.5934 12.4747 63.898 11.0614C65.2025 9.64814 66.8875 8.94151 68.9531 8.94151C71.0186 8.94151 72.6855 9.63908 73.9539 11.0342C75.2403 12.4112 75.8835 14.1506 75.8835 16.2524L75.8563 17.258ZM68.9531 11.5778C67.9384 11.5778 67.0959 11.8767 66.4255 12.4747C65.7551 13.0726 65.3384 13.8698 65.1753 14.8663H72.6765C72.5315 13.8698 72.1329 13.0726 71.4806 12.4747C70.8284 11.8767 69.9859 11.5778 68.9531 11.5778Z" fill="white"/>
<path d="M90.448 15.274V23.3731H87.2138V14.9207C87.2138 12.7827 86.326 11.7137 84.5503 11.7137C83.59 11.7137 82.82 12.0217 82.2402 12.6377C81.6785 13.2538 81.3977 14.0963 81.3977 15.1653V23.3731H78.1635V9.26764H81.1531V11.1429C81.4973 10.5088 82.0228 9.98333 82.7294 9.5666C83.436 9.14987 84.3148 8.94151 85.3657 8.94151C87.3225 8.94151 88.7358 9.68438 89.6055 11.1701C90.8013 9.68438 92.3958 8.94151 94.3888 8.94151C96.0376 8.94151 97.3059 9.45789 98.1937 10.4907C99.0816 11.5053 99.5255 12.8461 99.5255 14.513V23.3731H96.2913V14.9207C96.2913 12.7827 95.4035 11.7137 93.6278 11.7137C92.6494 11.7137 91.8703 12.0308 91.2905 12.6649C90.7288 13.2809 90.448 14.1506 90.448 15.274Z" fill="white"/>
<path d="M115.61 17.258H104.874C105.001 18.3814 105.409 19.2782 106.097 19.9486C106.786 20.6009 107.692 20.927 108.815 20.927C109.558 20.927 110.228 20.7459 110.826 20.3835C111.424 20.0211 111.85 19.5319 112.104 18.9159H115.365C114.93 20.3472 114.115 21.5068 112.919 22.3947C111.741 23.2644 110.346 23.6992 108.734 23.6992C106.632 23.6992 104.929 23.0016 103.624 21.6065C102.338 20.2114 101.694 18.4448 101.694 16.3068C101.694 14.2231 102.347 12.4747 103.651 11.0614C104.956 9.64814 106.641 8.94151 108.706 8.94151C110.772 8.94151 112.439 9.63908 113.707 11.0342C114.994 12.4112 115.637 14.1506 115.637 16.2524L115.61 17.258ZM108.706 11.5778C107.692 11.5778 106.849 11.8767 106.179 12.4747C105.508 13.0726 105.092 13.8698 104.929 14.8663H112.43C112.285 13.8698 111.886 13.0726 111.234 12.4747C110.582 11.8767 109.739 11.5778 108.706 11.5778Z" fill="white"/>
<path d="M120.906 9.26764V11.1429C121.232 10.5269 121.767 10.0105 122.51 9.59378C123.271 9.15893 124.186 8.94151 125.255 8.94151C126.922 8.94151 128.208 9.44883 129.114 10.4635C130.038 11.4781 130.5 12.828 130.5 14.513V23.3731H127.266V14.9207C127.266 13.9242 127.03 13.1451 126.559 12.5834C126.106 12.0036 125.409 11.7137 124.467 11.7137C123.434 11.7137 122.619 12.0217 122.021 12.6377C121.441 13.2538 121.151 14.1053 121.151 15.1925V23.3731H117.917V9.26764H120.906Z" fill="white"/>
<path d="M139.946 20.4922V23.2915C139.547 23.4003 138.985 23.4546 138.261 23.4546C135.507 23.4546 134.13 22.0685 134.13 19.2964V11.8496H131.982V9.26764H134.13V5.5986H137.364V9.26764H140V11.8496H137.364V18.9702C137.364 20.0755 137.889 20.6281 138.94 20.6281L139.946 20.4922Z" fill="white"/>
<path d="M148.304 20.864C146.768 19.184 146 17.056 146 14.48C146 11.904 146.768 9.784 148.304 8.12C149.856 6.44 151.896 5.6 154.424 5.6C156.504 5.6 158.264 6.176 159.704 7.328C161.144 8.48 162.064 10.024 162.464 11.96H160.616C160.28 10.52 159.552 9.376 158.432 8.528C157.312 7.68 155.976 7.256 154.424 7.256C152.44 7.256 150.84 7.92 149.624 9.248C148.424 10.576 147.824 12.32 147.824 14.48C147.824 16.64 148.424 18.384 149.624 19.712C150.84 21.04 152.44 21.704 154.424 21.704C155.976 21.704 157.312 21.28 158.432 20.432C159.552 19.584 160.28 18.44 160.616 17H162.464C162.064 18.936 161.144 20.48 159.704 21.632C158.264 22.784 156.504 23.36 154.424 23.36C151.896 23.36 149.856 22.528 148.304 20.864Z" fill="white"/>
<path d="M173.63 17.192C171.438 17.192 169.942 17.24 169.142 17.336C168.358 17.416 167.782 17.552 167.414 17.744C166.758 18.112 166.43 18.704 166.43 19.52C166.43 21.088 167.358 21.872 169.214 21.872C170.638 21.872 171.726 21.552 172.478 20.912C173.246 20.272 173.63 19.416 173.63 18.344V17.192ZM169.022 23.288C167.63 23.288 166.566 22.952 165.83 22.28C165.11 21.592 164.75 20.688 164.75 19.568C164.75 18.832 164.942 18.176 165.326 17.6C165.726 17.024 166.27 16.6 166.958 16.328C167.534 16.104 168.278 15.96 169.19 15.896C170.102 15.816 171.582 15.776 173.63 15.776V14.984C173.63 12.968 172.478 11.96 170.174 11.96C168.19 11.96 167.038 12.768 166.718 14.384H165.062C165.238 13.2 165.742 12.256 166.574 11.552C167.422 10.848 168.646 10.496 170.246 10.496C171.958 10.496 173.23 10.896 174.062 11.696C174.91 12.496 175.334 13.6 175.334 15.008V23H173.702V21.224C172.854 22.6 171.294 23.288 169.022 23.288Z" fill="white"/>
<path d="M179.418 20.312V5H181.122V20.12C181.122 20.616 181.202 20.96 181.362 21.152C181.538 21.344 181.85 21.44 182.298 21.44L182.778 21.392V22.952C182.506 23 182.21 23.024 181.89 23.024C180.242 23.024 179.418 22.12 179.418 20.312Z" fill="white"/>
<path d="M185.582 20.312V5H187.286V20.12C187.286 20.616 187.366 20.96 187.526 21.152C187.702 21.344 188.014 21.44 188.462 21.44L188.942 21.392V22.952C188.67 23 188.374 23.024 188.054 23.024C186.406 23.024 185.582 22.12 185.582 20.312Z" fill="white"/>
<path d="M53.5406 17.258H42.8052C42.932 18.3814 43.3397 19.2782 44.0282 19.9486C44.7167 20.6009 45.6227 20.927 46.746 20.927C47.4889 20.927 48.1593 20.7459 48.7572 20.3835C49.3551 20.0211 49.7809 19.5319 50.0346 18.9159H53.296C52.8611 20.3472 52.0458 21.5068 50.8499 22.3947C49.6722 23.2644 48.2771 23.6992 46.6645 23.6992C44.5627 23.6992 42.8596 23.0016 41.555 21.6065C40.2686 20.2114 39.6254 18.4448 39.6254 16.3068C39.6254 14.2231 40.2776 12.4747 41.5822 11.0614C42.8867 9.64814 44.5718 8.94151 46.6373 8.94151C48.7029 8.94151 50.3698 9.63908 51.6381 11.0342C52.9245 12.4112 53.5677 14.1506 53.5677 16.2524L53.5406 17.258ZM46.6373 11.5778C45.6227 11.5778 44.7801 11.8767 44.1098 12.4747C43.4394 13.0726 43.0226 13.8698 42.8596 14.8663H50.3607C50.2158 13.8698 49.8172 13.0726 49.1649 12.4747C48.5126 11.8767 47.6701 11.5778 46.6373 11.5778Z" fill="currentColor"/>
<path d="M55.7934 19.1605V2.9895H59.0276V19.2148C59.0276 19.9396 59.4262 20.302 60.2234 20.302L60.7941 20.2748V23.3459C60.4861 23.4003 60.16 23.4274 59.8157 23.4274C58.4206 23.4274 57.3969 23.0741 56.7446 22.3675C56.1104 21.6609 55.7934 20.5919 55.7934 19.1605Z" fill="currentColor"/>
<path d="M75.8563 17.258H65.121C65.2478 18.3814 65.6555 19.2782 66.344 19.9486C67.0325 20.6009 67.9384 20.927 69.0618 20.927C69.8047 20.927 70.4751 20.7459 71.073 20.3835C71.6709 20.0211 72.0967 19.5319 72.3503 18.9159H75.6117C75.1769 20.3472 74.3615 21.5068 73.1657 22.3947C71.988 23.2644 70.5928 23.6992 68.9803 23.6992C66.8785 23.6992 65.1753 23.0016 63.8708 21.6065C62.5843 20.2114 61.9411 18.4448 61.9411 16.3068C61.9411 14.2231 62.5934 12.4747 63.898 11.0614C65.2025 9.64814 66.8875 8.94151 68.9531 8.94151C71.0186 8.94151 72.6855 9.63908 73.9539 11.0342C75.2403 12.4112 75.8835 14.1506 75.8835 16.2524L75.8563 17.258ZM68.9531 11.5778C67.9384 11.5778 67.0959 11.8767 66.4255 12.4747C65.7551 13.0726 65.3384 13.8698 65.1753 14.8663H72.6765C72.5315 13.8698 72.1329 13.0726 71.4806 12.4747C70.8284 11.8767 69.9859 11.5778 68.9531 11.5778Z" fill="currentColor"/>
<path d="M90.448 15.274V23.3731H87.2138V14.9207C87.2138 12.7827 86.326 11.7137 84.5503 11.7137C83.59 11.7137 82.82 12.0217 82.2402 12.6377C81.6785 13.2538 81.3977 14.0963 81.3977 15.1653V23.3731H78.1635V9.26764H81.1531V11.1429C81.4973 10.5088 82.0228 9.98333 82.7294 9.5666C83.436 9.14987 84.3148 8.94151 85.3657 8.94151C87.3225 8.94151 88.7358 9.68438 89.6055 11.1701C90.8013 9.68438 92.3958 8.94151 94.3888 8.94151C96.0376 8.94151 97.3059 9.45789 98.1937 10.4907C99.0816 11.5053 99.5255 12.8461 99.5255 14.513V23.3731H96.2913V14.9207C96.2913 12.7827 95.4035 11.7137 93.6278 11.7137C92.6494 11.7137 91.8703 12.0308 91.2905 12.6649C90.7288 13.2809 90.448 14.1506 90.448 15.274Z" fill="currentColor"/>
<path d="M115.61 17.258H104.874C105.001 18.3814 105.409 19.2782 106.097 19.9486C106.786 20.6009 107.692 20.927 108.815 20.927C109.558 20.927 110.228 20.7459 110.826 20.3835C111.424 20.0211 111.85 19.5319 112.104 18.9159H115.365C114.93 20.3472 114.115 21.5068 112.919 22.3947C111.741 23.2644 110.346 23.6992 108.734 23.6992C106.632 23.6992 104.929 23.0016 103.624 21.6065C102.338 20.2114 101.694 18.4448 101.694 16.3068C101.694 14.2231 102.347 12.4747 103.651 11.0614C104.956 9.64814 106.641 8.94151 108.706 8.94151C110.772 8.94151 112.439 9.63908 113.707 11.0342C114.994 12.4112 115.637 14.1506 115.637 16.2524L115.61 17.258ZM108.706 11.5778C107.692 11.5778 106.849 11.8767 106.179 12.4747C105.508 13.0726 105.092 13.8698 104.929 14.8663H112.43C112.285 13.8698 111.886 13.0726 111.234 12.4747C110.582 11.8767 109.739 11.5778 108.706 11.5778Z" fill="currentColor"/>
<path d="M120.906 9.26764V11.1429C121.232 10.5269 121.767 10.0105 122.51 9.59378C123.271 9.15893 124.186 8.94151 125.255 8.94151C126.922 8.94151 128.208 9.44883 129.114 10.4635C130.038 11.4781 130.5 12.828 130.5 14.513V23.3731H127.266V14.9207C127.266 13.9242 127.03 13.1451 126.559 12.5834C126.106 12.0036 125.409 11.7137 124.467 11.7137C123.434 11.7137 122.619 12.0217 122.021 12.6377C121.441 13.2538 121.151 14.1053 121.151 15.1925V23.3731H117.917V9.26764H120.906Z" fill="currentColor"/>
<path d="M139.946 20.4922V23.2915C139.547 23.4003 138.985 23.4546 138.261 23.4546C135.507 23.4546 134.13 22.0685 134.13 19.2964V11.8496H131.982V9.26764H134.13V5.5986H137.364V9.26764H140V11.8496H137.364V18.9702C137.364 20.0755 137.889 20.6281 138.94 20.6281L139.946 20.4922Z" fill="currentColor"/>
<path d="M148.304 20.864C146.768 19.184 146 17.056 146 14.48C146 11.904 146.768 9.784 148.304 8.12C149.856 6.44 151.896 5.6 154.424 5.6C156.504 5.6 158.264 6.176 159.704 7.328C161.144 8.48 162.064 10.024 162.464 11.96H160.616C160.28 10.52 159.552 9.376 158.432 8.528C157.312 7.68 155.976 7.256 154.424 7.256C152.44 7.256 150.84 7.92 149.624 9.248C148.424 10.576 147.824 12.32 147.824 14.48C147.824 16.64 148.424 18.384 149.624 19.712C150.84 21.04 152.44 21.704 154.424 21.704C155.976 21.704 157.312 21.28 158.432 20.432C159.552 19.584 160.28 18.44 160.616 17H162.464C162.064 18.936 161.144 20.48 159.704 21.632C158.264 22.784 156.504 23.36 154.424 23.36C151.896 23.36 149.856 22.528 148.304 20.864Z" fill="currentColor"/>
<path d="M173.63 17.192C171.438 17.192 169.942 17.24 169.142 17.336C168.358 17.416 167.782 17.552 167.414 17.744C166.758 18.112 166.43 18.704 166.43 19.52C166.43 21.088 167.358 21.872 169.214 21.872C170.638 21.872 171.726 21.552 172.478 20.912C173.246 20.272 173.63 19.416 173.63 18.344V17.192ZM169.022 23.288C167.63 23.288 166.566 22.952 165.83 22.28C165.11 21.592 164.75 20.688 164.75 19.568C164.75 18.832 164.942 18.176 165.326 17.6C165.726 17.024 166.27 16.6 166.958 16.328C167.534 16.104 168.278 15.96 169.19 15.896C170.102 15.816 171.582 15.776 173.63 15.776V14.984C173.63 12.968 172.478 11.96 170.174 11.96C168.19 11.96 167.038 12.768 166.718 14.384H165.062C165.238 13.2 165.742 12.256 166.574 11.552C167.422 10.848 168.646 10.496 170.246 10.496C171.958 10.496 173.23 10.896 174.062 11.696C174.91 12.496 175.334 13.6 175.334 15.008V23H173.702V21.224C172.854 22.6 171.294 23.288 169.022 23.288Z" fill="currentColor"/>
<path d="M179.418 20.312V5H181.122V20.12C181.122 20.616 181.202 20.96 181.362 21.152C181.538 21.344 181.85 21.44 182.298 21.44L182.778 21.392V22.952C182.506 23 182.21 23.024 181.89 23.024C180.242 23.024 179.418 22.12 179.418 20.312Z" fill="currentColor"/>
<path d="M185.582 20.312V5H187.286V20.12C187.286 20.616 187.366 20.96 187.526 21.152C187.702 21.344 188.014 21.44 188.462 21.44L188.942 21.392V22.952C188.67 23 188.374 23.024 188.054 23.024C186.406 23.024 185.582 22.12 185.582 20.312Z" fill="currentColor"/>
<path d="M201 10C201 5.58172 204.582 2 209 2H252C256.418 2 260 5.58172 260 10V20C260 24.4183 256.418 28 252 28H209C204.582 28 201 24.4183 201 20V10Z" fill="#368BD6"/>
<path d="M212.076 20H216.492C218.99 20 220.215 18.7269 220.215 17.0277C220.215 15.3764 219.043 14.407 217.882 14.3484V14.2418C218.947 13.9915 219.789 13.2457 219.789 11.9194C219.789 10.2947 218.617 9.09091 216.252 9.09091H212.076V20ZM214.052 18.3487V15.1527H216.231C217.451 15.1527 218.207 15.8984 218.207 16.8732C218.207 17.7415 217.61 18.3487 216.178 18.3487H214.052ZM214.052 13.7305V10.7209H216.05C217.211 10.7209 217.813 11.3335 217.813 12.1751C217.813 13.1339 217.035 13.7305 216.007 13.7305H214.052ZM221.934 20H229.072V18.3434H223.911V15.3658H228.662V13.7092H223.911V10.7475H229.03V9.09091H221.934V20ZM230.566 10.7475H233.938V20H235.898V10.7475H239.27V9.09091H230.566V10.7475ZM241.031 20L241.931 17.31H246.032L246.938 20H249.047L245.201 9.09091H242.762L238.921 20H241.031ZM242.464 15.7227L243.939 11.3281H244.024L245.5 15.7227H242.464Z" fill="white"/>
</svg>

Before

Width:  |  Height:  |  Size: 8.8 KiB

After

Width:  |  Height:  |  Size: 8.9 KiB

Some files were not shown because too many files have changed in this diff Show More