Commit graph

48405 commits

Author SHA1 Message Date
renovate[bot]
8381e13338
Update stylelint (#12922)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-08-23 15:24:02 +00:00
Richard van der Hoff
5a9d7ba2d7
Remove unused CryptoCallbacks implementations (#12919)
* Remove unused `onSecretRequested` callback

This thing is unused with the rust crypto stack (which is lucky, because it
uses methods that only work with the legacy stack).

* Remove unused `getDehydrationKey` method

This callback is no longer used, so there is no need for an implementation.

* Remove unused `dehydrationCache`

This is no longer written to, so is redundant.

* Remove another write to `CryptoCallbacks.getDehydrationKey`

As before: this hook is no longer used by the js-sdk, so writing to it is
pointless.
2024-08-23 14:00:18 +00:00
renovate[bot]
69da1754cb
Update babel monorepo (#12920)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-08-23 13:06:56 +00:00
renovate[bot]
0848237706
Update dependency @types/sanitize-html to v2.13.0 (#12921)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-08-23 12:49:07 +00:00
renovate[bot]
135d94c73d
Update playwright monorepo to v1.46.1 (#12918)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-08-23 10:13:50 +00:00
renovate[bot]
670ed8155a
Update dependency @sentry/browser to v8.26.0 (#12915)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-08-22 18:59:04 +00:00
renovate[bot]
35fb0689f1
Update dependency axe-core to v4.10.0 (#12916)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-08-22 14:23:14 +00:00
renovate[bot]
9671545f1b
Update dependency eslint-plugin-unicorn to v55 (#12913)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-08-22 13:25:14 +00:00
renovate[bot]
5e56ce7f19
Update dependency husky to v9 (#12914)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-08-22 13:07:41 +00:00
David Langley
70665d3ce3
RTE drafts (#12674)
* Add drafts to the RTE and tests

* test drafts in threads

* lint

* Add unit test.

* Fix test failure

* Remove unused import

* Clean up wysiwyg drafts and add test.

* Fix typo

* Add timeout to allow for wasm loading.

---------

Co-authored-by: Florian Duros <florian.duros@ormaz.fr>
2024-08-22 12:54:01 +00:00
renovate[bot]
fdc5acd5a4
Update dependency @types/react-transition-group to v4.4.11 (#12912)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-08-21 15:29:01 +00:00
renovate[bot]
72d5659e29
Update dependency @types/node to v18.19.44 (#12911)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-08-21 15:21:11 +00:00
RiotRobot
750ee1ac1a v3.108.0-rc.0 2024-08-21 13:08:05 +00:00
David Baker
193ae628f0
Merge pull request #12904 from matrix-org/dbkr/prettierrc_cjs_staging
Rename prettier config file to .cjs (staging version)
2024-08-21 14:00:47 +01:00
RiotRobot
aee2ca224d Upgrade dependency to matrix-js-sdk@34.4.0-rc.1 2024-08-21 12:58:25 +00:00
David Baker
cd4f30152f Call the commjs version of the switch script 2024-08-21 13:44:16 +01:00
Richard van der Hoff
2768b9cbb2
Set entrypoints to use ./lib rather than ./src (#12906)
Currently, we replace the entrypoints in package.json during the release
cycle. I think, historically, this was done to make element-web development
easier, but that doesn't actually use these entrypoints (instead it imports
from `src`).

Accordingly, I think the switcheroo is unnecessary; furthermore it causes a
whole bunch of confusion by making the development environment different from
the release environment, and it complicates our CI and release process.

In short, the switcheroo has to die.
2024-08-21 09:09:49 +00:00
Florian Duros
a7e907e0e6
Add thread information in pinned message list (#12902) 2024-08-21 09:02:35 +00:00
Florian Duros
3d80eff65b
Add Pin/Unpin action in quick access of the message action bar (#12897)
* Add Pin/Unpin action in quick access of the message action bar

* Add tests for `MessageActionBar`

* Add tests for `PinningUtils`

* Fix `MessageContextMenu-test`

* Add e2e test to pin/unpin from message action bar
2024-08-21 08:50:00 +00:00
ElementRobot
4064db1d02
[create-pull-request] automated change (#12907)
Co-authored-by: github-merge-queue <118344674+github-merge-queue@users.noreply.github.com>
2024-08-21 06:21:54 +00:00
David Baker
c01ad91a94 Rename prettier config file to .cjs
For the same reason as https://github.com/matrix-org/matrix-js-sdk/pull/4353
2024-08-20 15:47:47 +01:00
David Baker
933a9c1ae3
Rename prettier config file to .cjs (#12903)
For the same reason as https://github.com/matrix-org/matrix-js-sdk/pull/4353
2024-08-20 14:22:11 +00:00
RiotRobot
2a11fd5beb Upgrade dependency to matrix-js-sdk@34.4.0-rc.0 2024-08-20 13:47:34 +00:00
RiotRobot
4961e23253 Reset matrix-js-sdk back to develop branch 2024-08-20 11:37:35 +00:00
RiotRobot
f0e90ad15a Merge branch 'master' into develop 2024-08-20 11:37:28 +00:00
RiotRobot
20df553def v3.107.0 2024-08-20 11:36:27 +00:00
RiotRobot
64d6174412 Upgrade dependency to matrix-js-sdk@34.3.1 2024-08-20 11:31:14 +00:00
ElementRobot
fe8c0739f8
[create-pull-request] automated change (#12901)
Co-authored-by: github-merge-queue <118344674+github-merge-queue@users.noreply.github.com>
2024-08-20 06:21:56 +00:00
ElementRobot
c37cb9f0b1
[create-pull-request] automated change (#12899)
Co-authored-by: github-merge-queue <github-merge-queue@users.noreply.github.com>
2024-08-19 06:16:04 +00:00
Michael Telatynski
9f5b39b9d9
Ensure elements on Login page are disabled when in-flight (#12895)
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2024-08-17 09:37:35 +00:00
ElementRobot
3f386a6cac
[create-pull-request] automated change (#12898)
Co-authored-by: github-merge-queue <118344674+github-merge-queue@users.noreply.github.com>
2024-08-17 06:20:09 +00:00
Florian Duros
6f3dc30693
Message Pinning: rework the message pinning list in the right panel (#12825)
* Fix pinning event loading after restart

* Update deps

* Replace pinned event list

* Add a dialog to confirm to unpin all messages

* Use `EmptyState` when there is no pinned messages

* Rework `PinnedEventTile` tests

* Add comments and refactor `PinnedMessageCard`

* Rework `PinnedMessageCard` tests

* Add tests for `UnpinAllDialog`

* Add e2e tests for pinned messages

* Replace 3px custom gap by 4px gap

* Use string interpolation for `Pin` action.

* Update playright sceenshot for empty state
2024-08-16 12:16:06 +00:00
Michael Telatynski
88cf643cbd
Tweak UIA postMessage check to work cross-origin (#12878)
* Soften UIA fallback postMessage check to work cross-origin

Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>

* Do the same for the SSO UIA flow

Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>

* Check against MessageEvent::source instead

Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>

---------

Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2024-08-16 08:12:18 +00:00
ElementRobot
7a91e3efcf
[create-pull-request] automated change (#12894)
Co-authored-by: github-merge-queue <github-merge-queue@users.noreply.github.com>
2024-08-16 06:16:05 +00:00
ElementRobot
63615671a4
[create-pull-request] automated change (#12891)
Co-authored-by: github-merge-queue <118344674+github-merge-queue@users.noreply.github.com>
2024-08-15 06:22:46 +00:00
Florian Duros
d9846dc62d
Hide pinned messages when grouped in timeline when feature pinning is disabled (#12888) 2024-08-14 15:30:42 +00:00
David Baker
4751c52d82
Refactor the various email/phone management UI into a single component (#12884)
* Refactor the various email/phone management UI into a single component

These were basically the same component copied & pasted 3 times and
tweaked to match the behaviour of each case. This de-dupes them into
one component.

This all could really benefit from playwright tests, but would require
setting up a dummy ID server in the playwright tests. This is all legacy
pre-MAS stuff so its questionable whether its worth the effort.

* Basic test, remove old tests

* Use different text to confirm remove & put headers back

although the two texts are both 'Remove' in practice

* Remove string

This was never triggered anyway with sydent & synapse because they
don't seem to agree on what error to return. In any case, I think it
makes more sense for it to be consistent with the email path, ie. using
a dialog.

* Avoid nested forms

* Snapshots

* More snapshots

* Test the hs side

* Snapshots

* Test IS bind/revoke

* Test remove can be cancelled

* Test unvalidated cases & fix phone error

* Reset state between tests

* Import useState directly

* One more direct React import
2024-08-14 13:13:57 +00:00
ElementRobot
de898d1b62
[create-pull-request] automated change (#12887)
Co-authored-by: github-merge-queue <118344674+github-merge-queue@users.noreply.github.com>
2024-08-14 06:22:24 +00:00
ElementRobot
62e164173c
[create-pull-request] automated change (#12886)
Co-authored-by: github-merge-queue <github-merge-queue@users.noreply.github.com>
2024-08-14 06:15:55 +00:00
RiotRobot
ad8da83079 Reset matrix-js-sdk back to develop branch 2024-08-13 12:13:12 +00:00
RiotRobot
349c4a11e6 Resetting package fields for development 2024-08-13 12:13:05 +00:00
RiotRobot
95b2f3ed60 Merge branch 'master' into develop 2024-08-13 12:13:04 +00:00
RiotRobot
6df8423826 v3.106.0 2024-08-13 12:11:59 +00:00
RiotRobot
269a9dfd22 Upgrade dependency to matrix-js-sdk@34.3.0 2024-08-13 12:07:21 +00:00
ElementRobot
bdc4ca0cf2
[create-pull-request] automated change (#12885)
Co-authored-by: github-merge-queue <118344674+github-merge-queue@users.noreply.github.com>
2024-08-13 06:21:59 +00:00
Michael Telatynski
eacb22eac7
Add chat button on new room header for maximised widgets (#12882)
* Add chat button to new room header for video room & maximised widgets

Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>

* Iterate

Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>

* Delint

Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>

* Iterate

Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>

* Update snapshot

Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>

* Update screenshot

Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>

---------

Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2024-08-12 13:44:15 +00:00
Michael Telatynski
0e37c09042
Show spinner whilst initial search request is in progress (#12883)
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2024-08-12 13:44:07 +00:00
ElementRobot
239330b5e2
[create-pull-request] automated change (#12881)
Co-authored-by: github-merge-queue <118344674+github-merge-queue@users.noreply.github.com>
2024-08-10 06:20:25 +00:00
Florian Duros
5e98cbf409
Fix user menu font (#12879) 2024-08-09 14:15:17 +00:00
Florian Duros
284cd4082b
Update @vector-im/compound-design-tokens (#12876)
* Update `@vector-im/compound-design-tokens`

* Update jest snapshots

* Update playwright snapshots

* Use `--cpd-font-body-lg-semibold` for toast

* Use `--cpd-font-body-lg-semibold` for other elements

* Remaining heading fix
2024-08-09 12:32:37 +00:00