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

Commit 44b8bac

Browse files
committed
Merge branch 'develop' into fix/15142/fix-grecaptcha-race-condition
* develop: (141 commits) delint Doc some values Remove useless image reference Revert accidental renaming of dispatcherRef Fix event highlighthing Move some code around for clarity Constrain emoji skins type even further Delint i18n irc and fix lint from merge conflict Remove unwanted coma in EventTile fix three lints lint fix not sure how these happened :/ remove unused prop Update eslint-plugin-matrix-org Fix placeholder centering Make emoji skins type more specific Rename some variables since their purpose has changed Conform to new react and typescript eslint rules Apply code review suggestions ...
2 parents 5acc7fe + 7ea17ae commit 44b8bac

File tree

317 files changed

+4455
-2943
lines changed

Some content is hidden

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

317 files changed

+4455
-2943
lines changed

CHANGELOG.md

Lines changed: 149 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,152 @@
1+
Changes in [3.26.0](https://github.com/matrix-org/matrix-react-sdk/releases/tag/v3.26.0) (2021-07-19)
2+
=====================================================================================================
3+
[Full Changelog](https://github.com/matrix-org/matrix-react-sdk/compare/v3.26.0-rc.1...v3.26.0)
4+
5+
* Fix 'User' type import
6+
[\#6376](https://github.com/matrix-org/matrix-react-sdk/pull/6376)
7+
8+
Changes in [3.26.0-rc.1](https://github.com/matrix-org/matrix-react-sdk/releases/tag/v3.26.0-rc.1) (2021-07-14)
9+
===============================================================================================================
10+
[Full Changelog](https://github.com/matrix-org/matrix-react-sdk/compare/v3.25.0...v3.26.0-rc.1)
11+
12+
* Fix voice messages in right panels
13+
[\#6370](https://github.com/matrix-org/matrix-react-sdk/pull/6370)
14+
* Use TileShape enum more universally
15+
[\#6369](https://github.com/matrix-org/matrix-react-sdk/pull/6369)
16+
* Translations update from Weblate
17+
[\#6373](https://github.com/matrix-org/matrix-react-sdk/pull/6373)
18+
* Hide world readable history option in encrypted rooms
19+
[\#5947](https://github.com/matrix-org/matrix-react-sdk/pull/5947)
20+
* Make the Image View buttons easier to hit
21+
[\#6372](https://github.com/matrix-org/matrix-react-sdk/pull/6372)
22+
* Reorder buttons in the Image View
23+
[\#6368](https://github.com/matrix-org/matrix-react-sdk/pull/6368)
24+
* Add VS Code to gitignore
25+
[\#6367](https://github.com/matrix-org/matrix-react-sdk/pull/6367)
26+
* Fix inviter exploding due to member being null
27+
[\#6362](https://github.com/matrix-org/matrix-react-sdk/pull/6362)
28+
* Increase sample count in voice message thumbnail
29+
[\#6359](https://github.com/matrix-org/matrix-react-sdk/pull/6359)
30+
* Improve arraySeed utility
31+
[\#6360](https://github.com/matrix-org/matrix-react-sdk/pull/6360)
32+
* Convert FontManager to TS and stub it out for tests
33+
[\#6358](https://github.com/matrix-org/matrix-react-sdk/pull/6358)
34+
* Adjust recording waveform behaviour for voice messages
35+
[\#6357](https://github.com/matrix-org/matrix-react-sdk/pull/6357)
36+
* Do not honor string power levels
37+
[\#6245](https://github.com/matrix-org/matrix-react-sdk/pull/6245)
38+
* Add alias and directory customisation points
39+
[\#6343](https://github.com/matrix-org/matrix-react-sdk/pull/6343)
40+
* Fix multiinviter user already in room and clean up code
41+
[\#6354](https://github.com/matrix-org/matrix-react-sdk/pull/6354)
42+
* Fix right panel not closing user info when changing rooms
43+
[\#6341](https://github.com/matrix-org/matrix-react-sdk/pull/6341)
44+
* Quit sticker picker on m.sticker
45+
[\#5679](https://github.com/matrix-org/matrix-react-sdk/pull/5679)
46+
* Don't autodetect language in inline code blocks
47+
[\#6350](https://github.com/matrix-org/matrix-react-sdk/pull/6350)
48+
* Make ghost button background transparent
49+
[\#6331](https://github.com/matrix-org/matrix-react-sdk/pull/6331)
50+
* only consider valid & loaded url previews for show N more prompt
51+
[\#6346](https://github.com/matrix-org/matrix-react-sdk/pull/6346)
52+
* Extract MXCs from _matrix/media/r0/ URLs for inline images in messages
53+
[\#6335](https://github.com/matrix-org/matrix-react-sdk/pull/6335)
54+
* Fix small visual regression with the site name on url previews
55+
[\#6342](https://github.com/matrix-org/matrix-react-sdk/pull/6342)
56+
* Make PIP CallView draggable/movable
57+
[\#5952](https://github.com/matrix-org/matrix-react-sdk/pull/5952)
58+
* Convert VoiceUserSettingsTab to TS
59+
[\#6340](https://github.com/matrix-org/matrix-react-sdk/pull/6340)
60+
* Simplify typescript definition for Modernizr
61+
[\#6339](https://github.com/matrix-org/matrix-react-sdk/pull/6339)
62+
* Remember the last used server for room directory searches
63+
[\#6322](https://github.com/matrix-org/matrix-react-sdk/pull/6322)
64+
* Focus composer after reacting
65+
[\#6332](https://github.com/matrix-org/matrix-react-sdk/pull/6332)
66+
* Fix bug which prevented more than one event getting pinned
67+
[\#6336](https://github.com/matrix-org/matrix-react-sdk/pull/6336)
68+
* Make DeviceListener also update on megolm key in SSSS
69+
[\#6337](https://github.com/matrix-org/matrix-react-sdk/pull/6337)
70+
* Improve URL previews
71+
[\#6326](https://github.com/matrix-org/matrix-react-sdk/pull/6326)
72+
* Don't close settings dialog when opening spaces feedback prompt
73+
[\#6334](https://github.com/matrix-org/matrix-react-sdk/pull/6334)
74+
* Update import location for types
75+
[\#6330](https://github.com/matrix-org/matrix-react-sdk/pull/6330)
76+
* Improve blurhash rendering performance
77+
[\#6329](https://github.com/matrix-org/matrix-react-sdk/pull/6329)
78+
* Use a proper color scheme for codeblocks
79+
[\#6320](https://github.com/matrix-org/matrix-react-sdk/pull/6320)
80+
* Burn `sdk.getComponent()` with 🔥
81+
[\#6308](https://github.com/matrix-org/matrix-react-sdk/pull/6308)
82+
* Fix instances of the Edit Message Composer's save button being wrongly
83+
disabled
84+
[\#6307](https://github.com/matrix-org/matrix-react-sdk/pull/6307)
85+
* Do not generate a lockfile when running in CI
86+
[\#6327](https://github.com/matrix-org/matrix-react-sdk/pull/6327)
87+
* Update lockfile with correct dependencies
88+
[\#6324](https://github.com/matrix-org/matrix-react-sdk/pull/6324)
89+
* Clarify the keys we use when submitting rageshakes
90+
[\#6321](https://github.com/matrix-org/matrix-react-sdk/pull/6321)
91+
* Fix ImageView context menu
92+
[\#6318](https://github.com/matrix-org/matrix-react-sdk/pull/6318)
93+
* TypeScript migration
94+
[\#6315](https://github.com/matrix-org/matrix-react-sdk/pull/6315)
95+
* Move animation to compositor
96+
[\#6310](https://github.com/matrix-org/matrix-react-sdk/pull/6310)
97+
* Reorganize preferences
98+
[\#5742](https://github.com/matrix-org/matrix-react-sdk/pull/5742)
99+
* Fix being able to un-rotate images
100+
[\#6313](https://github.com/matrix-org/matrix-react-sdk/pull/6313)
101+
* Fix icon size in passphrase prompt
102+
[\#6312](https://github.com/matrix-org/matrix-react-sdk/pull/6312)
103+
* Use sleep & defer from js-sdk instead of duplicating it
104+
[\#6305](https://github.com/matrix-org/matrix-react-sdk/pull/6305)
105+
* Convert EventTimeline, EventTimelineSet and TimelineWindow to TS
106+
[\#6295](https://github.com/matrix-org/matrix-react-sdk/pull/6295)
107+
* Comply with new member-delimiter-style rule
108+
[\#6306](https://github.com/matrix-org/matrix-react-sdk/pull/6306)
109+
* Fix Test Linting
110+
[\#6304](https://github.com/matrix-org/matrix-react-sdk/pull/6304)
111+
* Convert Markdown to TypeScript
112+
[\#6303](https://github.com/matrix-org/matrix-react-sdk/pull/6303)
113+
* Convert RoomHeader to TS
114+
[\#6302](https://github.com/matrix-org/matrix-react-sdk/pull/6302)
115+
* Prevent RoomDirectory from exploding when filterString is wrongly nulled
116+
[\#6296](https://github.com/matrix-org/matrix-react-sdk/pull/6296)
117+
* Add support for blurhash (MSC2448)
118+
[\#5099](https://github.com/matrix-org/matrix-react-sdk/pull/5099)
119+
* Remove rateLimitedFunc
120+
[\#6300](https://github.com/matrix-org/matrix-react-sdk/pull/6300)
121+
* Convert some Key Verification classes to TypeScript
122+
[\#6299](https://github.com/matrix-org/matrix-react-sdk/pull/6299)
123+
* Typescript conversion of Composer components and more
124+
[\#6292](https://github.com/matrix-org/matrix-react-sdk/pull/6292)
125+
* Upgrade browserlist target versions
126+
[\#6298](https://github.com/matrix-org/matrix-react-sdk/pull/6298)
127+
* Fix browser crashing when searching for a malformed HTML tag
128+
[\#6297](https://github.com/matrix-org/matrix-react-sdk/pull/6297)
129+
* Add custom audio player
130+
[\#6264](https://github.com/matrix-org/matrix-react-sdk/pull/6264)
131+
* Lint MXC APIs to centralise access
132+
[\#6293](https://github.com/matrix-org/matrix-react-sdk/pull/6293)
133+
* Remove reminescent references to the tinter
134+
[\#6290](https://github.com/matrix-org/matrix-react-sdk/pull/6290)
135+
* More js-sdk type consolidation
136+
[\#6263](https://github.com/matrix-org/matrix-react-sdk/pull/6263)
137+
* Convert MessagePanel, TimelinePanel, ScrollPanel, and more to Typescript
138+
[\#6243](https://github.com/matrix-org/matrix-react-sdk/pull/6243)
139+
* Migrate to `eslint-plugin-matrix-org`
140+
[\#6285](https://github.com/matrix-org/matrix-react-sdk/pull/6285)
141+
* Avoid cyclic dependencies by moving watchers out of constructor
142+
[\#6287](https://github.com/matrix-org/matrix-react-sdk/pull/6287)
143+
* Add spacing between toast buttons with cross browser support in mind
144+
[\#6284](https://github.com/matrix-org/matrix-react-sdk/pull/6284)
145+
* Deprecate Tinter and TintableSVG
146+
[\#6279](https://github.com/matrix-org/matrix-react-sdk/pull/6279)
147+
* Migrate FilePanel to TypeScript
148+
[\#6283](https://github.com/matrix-org/matrix-react-sdk/pull/6283)
149+
1150
Changes in [3.25.0](https://github.com/matrix-org/matrix-react-sdk/releases/tag/v3.25.0) (2021-07-05)
2151
=====================================================================================================
3152
[Full Changelog](https://github.com/matrix-org/matrix-react-sdk/compare/v3.25.0-rc.1...v3.25.0)

package.json

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "matrix-react-sdk",
3-
"version": "3.25.0",
3+
"version": "3.26.0",
44
"description": "SDK for matrix.org using React",
55
"author": "matrix.org",
66
"repository": {
@@ -46,6 +46,7 @@
4646
"start:build": "babel src -w -s -d lib --verbose --extensions \".ts,.js\"",
4747
"lint": "yarn lint:types && yarn lint:js && yarn lint:style",
4848
"lint:js": "eslint --max-warnings 0 src test",
49+
"lint:js-fix": "eslint --fix src test",
4950
"lint:types": "tsc --noEmit --jsx react",
5051
"lint:style": "stylelint 'res/css/**/*.scss'",
5152
"test": "jest",
@@ -64,8 +65,8 @@
6465
"counterpart": "^0.18.6",
6566
"diff-dom": "^4.2.2",
6667
"diff-match-patch": "^1.0.5",
67-
"emojibase-data": "^5.1.1",
68-
"emojibase-regex": "^4.1.1",
68+
"emojibase-data": "^6.2.0",
69+
"emojibase-regex": "^5.1.3",
6970
"escape-html": "^1.0.3",
7071
"file-saver": "^2.0.5",
7172
"filesize": "6.1.0",
@@ -79,7 +80,7 @@
7980
"katex": "^0.12.0",
8081
"linkifyjs": "^2.1.9",
8182
"lodash": "^4.17.20",
82-
"matrix-js-sdk": "12.0.1",
83+
"matrix-js-sdk": "12.1.0",
8384
"matrix-widget-api": "^0.1.0-beta.15",
8485
"minimist": "^1.2.5",
8586
"opus-recorder": "^8.0.3",

res/css/_components.scss

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -162,6 +162,7 @@
162162
@import "./views/messages/_CreateEvent.scss";
163163
@import "./views/messages/_DateSeparator.scss";
164164
@import "./views/messages/_EventTileBubble.scss";
165+
@import "./views/messages/_CallEvent.scss";
165166
@import "./views/messages/_MEmoteBody.scss";
166167
@import "./views/messages/_MFileBody.scss";
167168
@import "./views/messages/_MImageBody.scss";
@@ -201,6 +202,7 @@
201202
@import "./views/rooms/_EditMessageComposer.scss";
202203
@import "./views/rooms/_EntityTile.scss";
203204
@import "./views/rooms/_EventTile.scss";
205+
@import "./views/rooms/_EventBubbleTile.scss";
204206
@import "./views/rooms/_GroupLayout.scss";
205207
@import "./views/rooms/_IRCLayout.scss";
206208
@import "./views/rooms/_JumpToBottomButton.scss";

res/css/structures/_FilePanel.scss

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -118,10 +118,6 @@ limitations under the License.
118118
padding-left: 0px;
119119
}
120120

121-
.mx_FilePanel .mx_EventTile:hover .mx_EventTile_line {
122-
background-color: $primary-bg-color;
123-
}
124-
125121
.mx_FilePanel_empty::before {
126122
mask-image: url('$(res)/img/element-icons/room/files.svg');
127123
}

res/css/views/avatars/_BaseAvatar.scss

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ limitations under the License.
2727
// https://bugzilla.mozilla.org/show_bug.cgi?id=255139
2828
display: inline-block;
2929
user-select: none;
30+
line-height: 1;
3031
}
3132

3233
.mx_BaseAvatar_initial {

res/css/views/elements/_InfoTooltip.scss

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,5 +30,12 @@ limitations under the License.
3030
mask-position: center;
3131
content: '';
3232
vertical-align: middle;
33+
}
34+
35+
.mx_InfoTooltip_icon_info::before {
3336
mask-image: url('$(res)/img/element-icons/info.svg');
3437
}
38+
39+
.mx_InfoTooltip_icon_warning::before {
40+
mask-image: url('$(res)/img/element-icons/warning.svg');
41+
}
Lines changed: 154 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,154 @@
1+
/*
2+
Copyright 2021 Šimon Brandner <[email protected]>
3+
4+
Licensed under the Apache License, Version 2.0 (the "License");
5+
you may not use this file except in compliance with the License.
6+
You may obtain a copy of the License at
7+
8+
http://www.apache.org/licenses/LICENSE-2.0
9+
10+
Unless required by applicable law or agreed to in writing, software
11+
distributed under the License is distributed on an "AS IS" BASIS,
12+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
See the License for the specific language governing permissions and
14+
limitations under the License.
15+
*/
16+
17+
.mx_CallEvent {
18+
display: flex;
19+
flex-direction: row;
20+
align-items: center;
21+
justify-content: space-between;
22+
23+
background-color: $dark-panel-bg-color;
24+
border-radius: 8px;
25+
margin: 10px auto;
26+
max-width: 75%;
27+
box-sizing: border-box;
28+
height: 60px;
29+
30+
&.mx_CallEvent_voice {
31+
.mx_CallEvent_type_icon::before,
32+
.mx_CallEvent_content_button_callBack span::before,
33+
.mx_CallEvent_content_button_answer span::before {
34+
mask-image: url('$(res)/img/element-icons/call/voice-call.svg');
35+
}
36+
}
37+
38+
&.mx_CallEvent_video {
39+
.mx_CallEvent_type_icon::before,
40+
.mx_CallEvent_content_button_callBack span::before,
41+
.mx_CallEvent_content_button_answer span::before {
42+
mask-image: url('$(res)/img/element-icons/call/video-call.svg');
43+
}
44+
}
45+
46+
.mx_CallEvent_info {
47+
display: flex;
48+
flex-direction: row;
49+
align-items: center;
50+
margin-left: 12px;
51+
52+
.mx_CallEvent_info_basic {
53+
display: flex;
54+
flex-direction: column;
55+
margin-left: 10px; // To match mx_CallEvent
56+
57+
.mx_CallEvent_sender {
58+
font-weight: 600;
59+
font-size: 1.5rem;
60+
line-height: 1.8rem;
61+
margin-bottom: 3px;
62+
}
63+
64+
.mx_CallEvent_type {
65+
font-weight: 400;
66+
color: $secondary-fg-color;
67+
font-size: 1.2rem;
68+
line-height: $font-13px;
69+
display: flex;
70+
align-items: center;
71+
72+
.mx_CallEvent_type_icon {
73+
height: 13px;
74+
width: 13px;
75+
margin-right: 5px;
76+
77+
&::before {
78+
content: '';
79+
position: absolute;
80+
height: 13px;
81+
width: 13px;
82+
background-color: $tertiary-fg-color;
83+
mask-repeat: no-repeat;
84+
mask-size: contain;
85+
}
86+
}
87+
}
88+
}
89+
}
90+
91+
.mx_CallEvent_content {
92+
display: flex;
93+
flex-direction: row;
94+
align-items: center;
95+
color: $secondary-fg-color;
96+
margin-right: 16px;
97+
98+
.mx_CallEvent_content_button {
99+
height: 24px;
100+
padding: 0px 12px;
101+
margin-left: 8px;
102+
103+
span {
104+
padding: 8px 0;
105+
display: flex;
106+
align-items: center;
107+
108+
&::before {
109+
content: '';
110+
display: inline-block;
111+
background-color: $button-fg-color;
112+
mask-position: center;
113+
mask-repeat: no-repeat;
114+
mask-size: 16px;
115+
width: 16px;
116+
height: 16px;
117+
margin-right: 8px;
118+
}
119+
}
120+
}
121+
122+
.mx_CallEvent_content_button_reject span::before {
123+
mask-image: url('$(res)/img/element-icons/call/hangup.svg');
124+
}
125+
126+
.mx_CallEvent_content_tooltip {
127+
margin-right: 5px;
128+
}
129+
130+
.mx_CallEvent_iconButton {
131+
display: inline-flex;
132+
margin-right: 8px;
133+
134+
&::before {
135+
content: '';
136+
137+
height: 16px;
138+
width: 16px;
139+
background-color: $tertiary-fg-color;
140+
mask-repeat: no-repeat;
141+
mask-size: contain;
142+
mask-position: center;
143+
}
144+
}
145+
146+
.mx_CallEvent_silence::before {
147+
mask-image: url('$(res)/img/voip/silence.svg');
148+
}
149+
150+
.mx_CallEvent_unSilence::before {
151+
mask-image: url('$(res)/img/voip/un-silence.svg');
152+
}
153+
}
154+
}

0 commit comments

Comments
 (0)