Commit Graph

434 Commits

Author SHA1 Message Date
Robin
b5f6343a5e Remove ResizeObserver polyfill
All major browsers support it out of the box, nowadays.
2024-08-23 15:07:40 -04:00
Hugh Nimmo-Smith
eddc590235 Use rust crypto
Taken from d25cf28d00
2024-08-19 10:27:46 +01:00
Hugh Nimmo-Smith
69b762b9ed
Bump js-sdk for sender key reliability improvements (#2567)
Diff from current version: 9176d3a671...467908703b
2024-08-15 11:49:19 +02:00
Andrew Ferrazzutti
f0f9b929a1
Update js-sdk to use non-legacy calls if found (#2540) 2024-08-07 13:00:19 -04:00
renovate[bot]
b4973bbc6b
Update dependency postcss-preset-env to v10 2024-08-04 00:40:54 +00:00
renovate[bot]
86e3c346a4
Update dependency @vector-im/compound-web to v6 2024-08-02 19:23:22 +00:00
Andrew Ferrazzutti
1f10245adc
Bump matrix-widget-api (#2529) 2024-08-02 08:37:55 -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]
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
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
17adfc5777 Upgrade matrix-js-sdk 2024-07-24 10:17:47 -04:00
renovate[bot]
b34e7d00e9
Update LiveKit components 2024-07-24 12:57:28 +00:00
Robin
507b1fc52d Merge branch 'livekit' into new-call-layouts 2024-07-18 11:38:35 -04:00
renovate[bot]
be4b70c1e1
Update dependency react-i18next to v15 2024-07-17 16:51:55 +00: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
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
Robin
41083c0f9e Refactor settings to use observables
Also removing some unused settings along the way.
2024-07-03 15:29:32 -04:00
renovate[bot]
18740fc686
Update all non-major dependencies 2024-06-24 13:04:28 +00: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
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
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]
5c6acaf915
Update dependency @sentry/react to v8 2024-06-20 21:46:07 +00: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
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]
e70818b2da
Update dependency @opentelemetry/instrumentation-user-interaction to ^0.38.0 2024-06-04 15:59:12 +00: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
Daniel Kilimnik
0b93374e86
package.json add name field (#2386) 2024-05-27 14:29:15 +02:00
renovate[bot]
43f7f9b76c
Update dependency @opentelemetry/instrumentation-document-load to ^0.38.0 2024-04-25 20:18:38 +00: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
renovate[bot]
e8810882ef
Update dependency @livekit/components-core to ^0.10.0 2024-04-18 15:42:22 +00: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]
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
Timo
c932dd8c9b
Theme loading without flickering (#2233) 2024-03-13 14:58:21 +01: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
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
cd0d73d19e Regenerate lock file 2024-02-15 22:34:34 -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
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
renovate[bot]
668b2d577b
Update typescript-eslint monorepo to v7 2024-02-12 21:17:54 +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
307e91e49c chore: test script should not run on watch mode
- update test script
2024-02-09 11:03:56 -06:00
renovate[bot]
7345665589
Update dependency livekit-client to v2 2024-02-09 16:02:50 +00:00
renovate[bot]
741f0cc5f7
Update dependency livekit-client to v1.15.12 2024-02-09 15:54:03 +00:00
Angel Mendez
309d28432f Merge branch 'livekit' into refactor/replace-jest-with-vitest 2024-02-07 09:21:14 -06: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
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
cc148fc4e2 refactor: add vitest to project
- add vitest and related dependencies to project
2024-02-02 18:52:09 -06:00
renovate[bot]
0e7522522e
Update dependency vaul to ^0.9.0 2024-02-02 00:32:24 +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]
a2c0a5ce5d
Update dependency @vector-im/compound-web to v3 2024-02-01 19:22:02 +00:00
renovate[bot]
c0c15a9a85
Update dependency @vector-im/compound-design-tokens to v1 2024-02-01 15:14:30 +00:00
renovate[bot]
ad5f7638dc
Update dependency livekit-client to v1.15.11 2024-02-01 09:23:37 +00: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
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
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
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]
17218236c2
Update dependency @opentelemetry/instrumentation-document-load to ^0.35.0 2024-01-29 11:28:58 +00: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]
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
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
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
renovate[bot]
a2243e9984
Update dependency @vector-im/compound-web to v2 2024-01-10 14:35:05 +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]
d9fc616da6
Update dependency vaul to ^0.8.0 2024-01-08 18:00:31 +00:00
Robin
1865ccbaf6 Update Compound Web for realsies 2024-01-05 13:56:56 -05:00
Robin
b2bc8edcc1 Refactor/redesign video tiles 2023-12-18 16:59:48 -05: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
fkwp
62dea32d0d
bump matrix-js-sdk Update package.json 2023-12-08 10:33:22 +01:00
Robin
c25d54ef75 Upgrade @livekit/components-core 2023-12-04 11:12:25 -05: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
renovate[bot]
d77ad87c45
Update dependency vite to v5 2023-12-01 09:52:51 +00:00
renovate[bot]
1790818f3a
Update dependency @opentelemetry/instrumentation-user-interaction to ^0.34.0 2023-11-29 21:42:20 +00:00
renovate[bot]
2d8aaf0a3b
Update dependency @opentelemetry/instrumentation-document-load to ^0.34.0 2023-11-29 12:06:25 +00:00
David Baker
3e7a800424 Update js-sdk
For https://github.com/matrix-org/matrix-js-sdk/pull/3877
2023-11-16 17:55:11 +00:00
renovate[bot]
09aa2d3bc3
Update dependency @vector-im/compound-design-tokens to ^0.1.0 2023-11-15 01:19:22 +00:00
David Baker
0154370ae4 Update js-sdk for per-participant key rotation
To pull in https://github.com/matrix-org/matrix-js-sdk/pull/3833
2023-11-08 11:16:04 +00:00
renovate[bot]
166c8009d9
Update opentelemetry-js monorepo (#1505)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-11-07 12:37:13 +01:00
David Baker
ec8016acd4
Merge pull request #1841 from vector-im/renovate/eslint-plugin-unicorn-49.x
Update dependency eslint-plugin-unicorn to v49
2023-11-01 16:56:04 +00:00
David Baker
731f1e4008
Merge pull request #1772 from vector-im/dbkr/ppe2ee
Support key-per-participant e2ee
2023-10-31 20:08:05 +00:00
David Baker
ba376d7005 Back to js-sdk develop branch now it's merged 2023-10-31 20:00:48 +00:00
David Baker
c65ce86001 Update for renamed function
and new js-sdk containing it
2023-10-30 16:55:16 +00:00
renovate[bot]
a1eda05bcd
Update dependency eslint-plugin-unicorn to v49 2023-10-30 14:26:25 +00:00
David Baker
2d5b4dbc57 Merge remote-tracking branch 'origin/livekit' into dbkr/ppe2ee 2023-10-26 10:29:12 +01:00
renovate[bot]
84ab853ae9
Update dependency @vector-im/compound-design-tokens to ^0.0.7 2023-10-25 13:26:20 +00:00
renovate[bot]
3fa46fab32
Update dependency @vector-im/compound-web to ^0.6.0 2023-10-25 12:28:03 +00:00
renovate[bot]
3d27b9b6b4
Update dependency @types/node to v20 2023-10-24 01:26:02 +00:00
David Baker
9126fb3f3e Fix key format on the wire to be base64 2023-10-20 17:31:15 +01:00
David Baker
550315e8d7 Update js-sdk branch 2023-10-19 14:40:59 +01:00