Skip to content
This repository was archived by the owner on Sep 11, 2024. It is now read-only.

Commit 98b2e12

Browse files
committed
Merge branch 'develop' into travis/msc2876
2 parents 903cc77 + 01491f4 commit 98b2e12

File tree

173 files changed

+5436
-1795
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

173 files changed

+5436
-1795
lines changed

CHANGELOG.md

Lines changed: 112 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,115 @@
1+
Changes in [3.20.0](https://github.com/matrix-org/matrix-react-sdk/releases/tag/v3.20.0) (2021-05-10)
2+
=====================================================================================================
3+
[Full Changelog](https://github.com/matrix-org/matrix-react-sdk/compare/v3.20.0-rc.1...v3.20.0)
4+
5+
* Upgrade to JS SDK 10.1.0
6+
* [Release] Don't use the event's metadata to calc the scale of an image
7+
[\#6004](https://github.com/matrix-org/matrix-react-sdk/pull/6004)
8+
9+
Changes in [3.20.0-rc.1](https://github.com/matrix-org/matrix-react-sdk/releases/tag/v3.20.0-rc.1) (2021-05-04)
10+
===============================================================================================================
11+
[Full Changelog](https://github.com/matrix-org/matrix-react-sdk/compare/v3.19.0...v3.20.0-rc.1)
12+
13+
* Upgrade to JS SDK 10.1.0-rc.1
14+
* Translations update from Weblate
15+
[\#5966](https://github.com/matrix-org/matrix-react-sdk/pull/5966)
16+
* Fix more space panel layout and hover behaviour issues
17+
[\#5965](https://github.com/matrix-org/matrix-react-sdk/pull/5965)
18+
* Fix edge case with space panel alignment with subspaces on ff
19+
[\#5964](https://github.com/matrix-org/matrix-react-sdk/pull/5964)
20+
* Fix saving room pill part to history
21+
[\#5951](https://github.com/matrix-org/matrix-react-sdk/pull/5951)
22+
* Generate room preview even when minimized
23+
[\#5948](https://github.com/matrix-org/matrix-react-sdk/pull/5948)
24+
* Another change from recovery passphrase to Security Phrase
25+
[\#5934](https://github.com/matrix-org/matrix-react-sdk/pull/5934)
26+
* Sort rooms in the add existing to space dialog based on recency
27+
[\#5943](https://github.com/matrix-org/matrix-react-sdk/pull/5943)
28+
* Inhibit sending RR when context switching to a room
29+
[\#5944](https://github.com/matrix-org/matrix-react-sdk/pull/5944)
30+
* Prevent room list keyboard handling from landing focus on hidden nodes
31+
[\#5950](https://github.com/matrix-org/matrix-react-sdk/pull/5950)
32+
* Make the text filter search all spaces instead of just the selected one
33+
[\#5942](https://github.com/matrix-org/matrix-react-sdk/pull/5942)
34+
* Enable indent rule and fix indent
35+
[\#5931](https://github.com/matrix-org/matrix-react-sdk/pull/5931)
36+
* Prevent peeking members from reacting
37+
[\#5946](https://github.com/matrix-org/matrix-react-sdk/pull/5946)
38+
* Disallow inline display maths
39+
[\#5939](https://github.com/matrix-org/matrix-react-sdk/pull/5939)
40+
* Space creation prompt user to add existing rooms for "Just Me" spaces
41+
[\#5923](https://github.com/matrix-org/matrix-react-sdk/pull/5923)
42+
* Add test coverage collection script
43+
[\#5937](https://github.com/matrix-org/matrix-react-sdk/pull/5937)
44+
* Fix joining room using via servers regression
45+
[\#5936](https://github.com/matrix-org/matrix-react-sdk/pull/5936)
46+
* Revert "Fixes the two Todays problem in Redaction"
47+
[\#5938](https://github.com/matrix-org/matrix-react-sdk/pull/5938)
48+
* Handle encoded matrix URLs
49+
[\#5903](https://github.com/matrix-org/matrix-react-sdk/pull/5903)
50+
* Render ignored users setting regardless of if there are any
51+
[\#5860](https://github.com/matrix-org/matrix-react-sdk/pull/5860)
52+
* Fix inserting trailing colon after mention/pill
53+
[\#5830](https://github.com/matrix-org/matrix-react-sdk/pull/5830)
54+
* Fixes the two Todays problem in Redaction
55+
[\#5917](https://github.com/matrix-org/matrix-react-sdk/pull/5917)
56+
* Fix page up/down scrolling only half a page
57+
[\#5920](https://github.com/matrix-org/matrix-react-sdk/pull/5920)
58+
* Voice messages: Composer controls
59+
[\#5935](https://github.com/matrix-org/matrix-react-sdk/pull/5935)
60+
* Support MSC3086 asserted identity
61+
[\#5886](https://github.com/matrix-org/matrix-react-sdk/pull/5886)
62+
* Handle possible edge case with getting stuck in "unsent messages" bar
63+
[\#5930](https://github.com/matrix-org/matrix-react-sdk/pull/5930)
64+
* Fix suggested rooms not showing up regression from room list optimisation
65+
[\#5932](https://github.com/matrix-org/matrix-react-sdk/pull/5932)
66+
* Broadcast language change to ElectronPlatform
67+
[\#5913](https://github.com/matrix-org/matrix-react-sdk/pull/5913)
68+
* Fix VoIP PIP frame color
69+
[\#5701](https://github.com/matrix-org/matrix-react-sdk/pull/5701)
70+
* Convert some Flow-typed files to TypeScript
71+
[\#5912](https://github.com/matrix-org/matrix-react-sdk/pull/5912)
72+
* Initial SpaceStore tests work
73+
[\#5906](https://github.com/matrix-org/matrix-react-sdk/pull/5906)
74+
* Fix issues with space hierarchy in layout and with incompatible servers
75+
[\#5926](https://github.com/matrix-org/matrix-react-sdk/pull/5926)
76+
* Scale all mxc thumbs using device pixel ratio for hidpi
77+
[\#5928](https://github.com/matrix-org/matrix-react-sdk/pull/5928)
78+
* Fix add existing to space dialog no longer showing rooms for public spaces
79+
[\#5918](https://github.com/matrix-org/matrix-react-sdk/pull/5918)
80+
* Disable spaces context switching for when exploring a space
81+
[\#5924](https://github.com/matrix-org/matrix-react-sdk/pull/5924)
82+
* Autofocus search box in the add existing to space dialog
83+
[\#5921](https://github.com/matrix-org/matrix-react-sdk/pull/5921)
84+
* Use label element in add existing to space dialog for easier hit target
85+
[\#5922](https://github.com/matrix-org/matrix-react-sdk/pull/5922)
86+
* Dynamic max and min zoom in the new ImageView
87+
[\#5916](https://github.com/matrix-org/matrix-react-sdk/pull/5916)
88+
* Improve message error states
89+
[\#5897](https://github.com/matrix-org/matrix-react-sdk/pull/5897)
90+
* Check for null room in `VisibilityProvider`
91+
[\#5914](https://github.com/matrix-org/matrix-react-sdk/pull/5914)
92+
* Add unit tests for various collection-based utility functions
93+
[\#5910](https://github.com/matrix-org/matrix-react-sdk/pull/5910)
94+
* Spaces visual fixes
95+
[\#5909](https://github.com/matrix-org/matrix-react-sdk/pull/5909)
96+
* Remove reliance on DOM API to generated message preview
97+
[\#5908](https://github.com/matrix-org/matrix-react-sdk/pull/5908)
98+
* Expand upon voice message event & include overall waveform
99+
[\#5888](https://github.com/matrix-org/matrix-react-sdk/pull/5888)
100+
* Use floats for image background opacity
101+
[\#5905](https://github.com/matrix-org/matrix-react-sdk/pull/5905)
102+
* Show invites to spaces at the top of the space panel
103+
[\#5902](https://github.com/matrix-org/matrix-react-sdk/pull/5902)
104+
* Improve edge cases with spaces context switching
105+
[\#5899](https://github.com/matrix-org/matrix-react-sdk/pull/5899)
106+
* Fix spaces notification dots wrongly including upgraded (hidden) rooms
107+
[\#5900](https://github.com/matrix-org/matrix-react-sdk/pull/5900)
108+
* Iterate the spaces face pile design
109+
[\#5898](https://github.com/matrix-org/matrix-react-sdk/pull/5898)
110+
* Fix alignment issue with nested spaces being cut off wrong
111+
[\#5890](https://github.com/matrix-org/matrix-react-sdk/pull/5890)
112+
1113
Changes in [3.19.0](https://github.com/matrix-org/matrix-react-sdk/releases/tag/v3.19.0) (2021-04-26)
2114
=====================================================================================================
3115
[Full Changelog](https://github.com/matrix-org/matrix-react-sdk/compare/v3.19.0-rc.1...v3.19.0)

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ Platform Targets:
2828
* WebRTC features (VoIP and Video calling) are only available in Chrome & Firefox.
2929
* Mobile Web is not currently a target platform - instead please use the native
3030
iOS (https://github.com/matrix-org/matrix-ios-kit) and Android
31-
(https://github.com/matrix-org/matrix-android-sdk) SDKs.
31+
(https://github.com/matrix-org/matrix-android-sdk2) SDKs.
3232

3333
All code lands on the `develop` branch - `master` is only used for stable releases.
3434
**Please file PRs against `develop`!!**

__mocks__/empty.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
// Yes, this is empty.
2+
module.exports = {};

package.json

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "matrix-react-sdk",
3-
"version": "3.19.0",
3+
"version": "3.20.0",
44
"description": "SDK for matrix.org using React",
55
"author": "matrix.org",
66
"repository": {
@@ -58,7 +58,7 @@
5858
"blueimp-canvas-to-blob": "^3.28.0",
5959
"browser-encrypt-attachment": "^0.3.0",
6060
"browser-request": "^0.3.3",
61-
"cheerio": "^1.0.0-rc.5",
61+
"cheerio": "^1.0.0-rc.9",
6262
"classnames": "^2.2.6",
6363
"commonmark": "^0.29.3",
6464
"counterpart": "^0.18.6",
@@ -97,7 +97,7 @@
9797
"react-transition-group": "^4.4.1",
9898
"resize-observer-polyfill": "^1.5.1",
9999
"rfc4648": "^1.4.0",
100-
"sanitize-html": "github:apostrophecms/sanitize-html#3c7f93f2058f696f5359e3e58d464161647226db",
100+
"sanitize-html": "^2.3.2",
101101
"tar-js": "^0.3.0",
102102
"text-encoding-utf-8": "^1.0.2",
103103
"url": "^0.11.0",
@@ -132,11 +132,12 @@
132132
"@types/modernizr": "^3.5.3",
133133
"@types/node": "^14.14.22",
134134
"@types/pako": "^1.0.1",
135+
"@types/parse5": "^6.0.0",
135136
"@types/qrcode": "^1.3.5",
136137
"@types/react": "^16.9",
137138
"@types/react-dom": "^16.9.10",
138139
"@types/react-transition-group": "^4.4.0",
139-
"@types/sanitize-html": "^1.27.0",
140+
"@types/sanitize-html": "^2.3.1",
140141
"@types/zxcvbn": "^4.4.0",
141142
"@typescript-eslint/eslint-plugin": "^4.14.0",
142143
"@typescript-eslint/parser": "^4.14.0",
@@ -185,7 +186,10 @@
185186
],
186187
"moduleNameMapper": {
187188
"\\.(gif|png|svg|ttf|woff2)$": "<rootDir>/__mocks__/imageMock.js",
188-
"\\$webapp/i18n/languages.json": "<rootDir>/__mocks__/languages.json"
189+
"\\$webapp/i18n/languages.json": "<rootDir>/__mocks__/languages.json",
190+
"decoderWorker\\.min\\.js": "<rootDir>/__mocks__/empty.js",
191+
"decoderWorker\\.min\\.wasm": "<rootDir>/__mocks__/empty.js",
192+
"waveWorker\\.min\\.js": "<rootDir>/__mocks__/empty.js"
189193
},
190194
"transformIgnorePatterns": [
191195
"/node_modules/(?!matrix-js-sdk).+$"

res/css/_components.scss

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@
5454
@import "./views/avatars/_MemberStatusMessageAvatar.scss";
5555
@import "./views/avatars/_PulsedAvatar.scss";
5656
@import "./views/avatars/_WidgetAvatar.scss";
57+
@import "./views/beta/_BetaCard.scss";
5758
@import "./views/context_menus/_CallContextMenu.scss";
5859
@import "./views/context_menus/_IconizedContextMenu.scss";
5960
@import "./views/context_menus/_MessageContextMenu.scss";
@@ -62,6 +63,7 @@
6263
@import "./views/dialogs/_AddExistingToSpaceDialog.scss";
6364
@import "./views/dialogs/_AddressPickerDialog.scss";
6465
@import "./views/dialogs/_Analytics.scss";
66+
@import "./views/dialogs/_BetaFeedbackDialog.scss";
6567
@import "./views/dialogs/_BugReportDialog.scss";
6668
@import "./views/dialogs/_ChangelogDialog.scss";
6769
@import "./views/dialogs/_ChatCreateOrReuseChatDialog.scss";
@@ -96,6 +98,7 @@
9698
@import "./views/dialogs/_SpaceSettingsDialog.scss";
9799
@import "./views/dialogs/_TabbedIntegrationManagerDialog.scss";
98100
@import "./views/dialogs/_TermsDialog.scss";
101+
@import "./views/dialogs/_UntrustedDeviceDialog.scss";
99102
@import "./views/dialogs/_UploadConfirmDialog.scss";
100103
@import "./views/dialogs/_UserSettingsDialog.scss";
101104
@import "./views/dialogs/_WidgetCapabilitiesPromptDialog.scss";
@@ -161,6 +164,7 @@
161164
@import "./views/messages/_MStickerBody.scss";
162165
@import "./views/messages/_MTextBody.scss";
163166
@import "./views/messages/_MVideoBody.scss";
167+
@import "./views/messages/_MVoiceMessageBody.scss";
164168
@import "./views/messages/_MessageActionBar.scss";
165169
@import "./views/messages/_MessageTimestamp.scss";
166170
@import "./views/messages/_MjolnirBody.scss";
@@ -236,6 +240,7 @@
236240
@import "./views/settings/tabs/user/_AppearanceUserSettingsTab.scss";
237241
@import "./views/settings/tabs/user/_GeneralUserSettingsTab.scss";
238242
@import "./views/settings/tabs/user/_HelpUserSettingsTab.scss";
243+
@import "./views/settings/tabs/user/_LabsUserSettingsTab.scss";
239244
@import "./views/settings/tabs/user/_MjolnirUserSettingsTab.scss";
240245
@import "./views/settings/tabs/user/_NotificationUserSettingsTab.scss";
241246
@import "./views/settings/tabs/user/_PreferencesUserSettingsTab.scss";

res/css/structures/_GroupFilterPanel.scss

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,12 @@ limitations under the License.
5656
.mx_GroupFilterPanel .mx_TagTile {
5757
// opacity: 0.5;
5858
position: relative;
59+
60+
.mx_BetaDot {
61+
position: absolute;
62+
right: -13px;
63+
top: -11px;
64+
}
5965
}
6066

6167
.mx_GroupFilterPanel .mx_TagTile.mx_TagTile_prototype {

res/css/structures/_MyGroups.scss

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,11 @@ limitations under the License.
1717
.mx_MyGroups {
1818
display: flex;
1919
flex-direction: column;
20+
21+
.mx_BetaCard {
22+
margin: 0 72px;
23+
max-width: 760px;
24+
}
2025
}
2126

2227
.mx_MyGroups .mx_RoomHeader_simpleHeader {
@@ -30,7 +35,7 @@ limitations under the License.
3035
flex-wrap: wrap;
3136
}
3237

33-
.mx_MyGroups > :not(.mx_RoomHeader) {
38+
.mx_MyGroups > :not(.mx_RoomHeader):not(.mx_BetaCard) {
3439
max-width: 960px;
3540
margin: 40px;
3641
}

res/css/structures/_SpacePanel.scss

Lines changed: 25 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,10 @@ $activeBorderColor: $secondary-fg-color;
7979
.mx_SpaceItem {
8080
display: inline-flex;
8181
flex-flow: wrap;
82+
83+
&.mx_SpaceItem_narrow {
84+
align-self: baseline;
85+
}
8286
}
8387

8488
.mx_SpaceItem.collapsed {
@@ -233,7 +237,6 @@ $activeBorderColor: $secondary-fg-color;
233237

234238
.mx_SpacePanel_badgeContainer {
235239
position: absolute;
236-
height: 16px;
237240

238241
// Create a flexbox to make aligning dot badges easier
239242
display: flex;
@@ -245,23 +248,37 @@ $activeBorderColor: $secondary-fg-color;
245248

246249
.mx_NotificationBadge_dot {
247250
// make the smaller dot occupy the same width for centering
248-
margin-left: 7px;
249-
margin-right: 7px;
251+
margin: 0 7px;
250252
}
251253
}
252254

253255
&.collapsed {
254256
.mx_SpaceButton {
255257
.mx_SpacePanel_badgeContainer {
256-
right: -3px;
257-
top: -3px;
258+
right: 0;
259+
top: 0;
260+
261+
.mx_NotificationBadge {
262+
background-clip: padding-box;
263+
}
264+
265+
.mx_NotificationBadge_dot {
266+
margin: 0 -1px 0 0;
267+
border: 3px solid $groupFilterPanel-bg-color;
268+
}
269+
270+
.mx_NotificationBadge_2char,
271+
.mx_NotificationBadge_3char {
272+
margin: -5px -5px 0 0;
273+
border: 2px solid $groupFilterPanel-bg-color;
274+
}
258275
}
259276

260277
&.mx_SpaceButton_active .mx_SpacePanel_badgeContainer {
261278
// when we draw the selection border we move the relative bounds of our parent
262279
// so update our position within the bounds of the parent to maintain position overall
263-
right: -6px;
264-
top: -6px;
280+
right: -3px;
281+
top: -3px;
265282
}
266283
}
267284
}
@@ -275,7 +292,7 @@ $activeBorderColor: $secondary-fg-color;
275292
.mx_SpaceButton:hover,
276293
.mx_SpaceButton:focus-within,
277294
.mx_SpaceButton_hasMenuOpen {
278-
&:not(.mx_SpaceButton_home) {
295+
&:not(.mx_SpaceButton_home):not(.mx_SpaceButton_invite) {
279296
// Hide the badge container on hover because it'll be a menu button
280297
.mx_SpacePanel_badgeContainer {
281298
width: 0;

res/css/structures/_SpaceRoomDirectory.scss

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,14 +86,19 @@ limitations under the License.
8686
color: $primary-fg-color;
8787

8888
.mx_AccessibleButton {
89-
padding: 2px 8px;
89+
padding: 4px 12px;
9090
font-weight: normal;
9191

9292
& + .mx_AccessibleButton {
9393
margin-left: 16px;
9494
}
9595
}
9696

97+
.mx_AccessibleButton_kind_danger_outline,
98+
.mx_AccessibleButton_kind_primary_outline {
99+
padding: 3px 12px; // to account for the 1px border
100+
}
101+
97102
> span {
98103
margin-left: auto;
99104
}
@@ -246,11 +251,17 @@ limitations under the License.
246251
grid-row: 1/3;
247252

248253
.mx_AccessibleButton {
249-
padding: 8px 18px;
254+
line-height: $font-24px;
255+
padding: 4px 16px;
250256
display: inline-block;
251257
visibility: hidden;
252258
}
253259

260+
.mx_AccessibleButton_kind_danger_outline,
261+
.mx_AccessibleButton_kind_primary_outline {
262+
padding: 3px 16px; // to account for the 1px border
263+
}
264+
254265
.mx_Checkbox {
255266
display: inline-flex;
256267
vertical-align: middle;

0 commit comments

Comments
 (0)