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

Commit e445c9c

Browse files
committed
Merge remote-tracking branch 'upstream/develop' into public-e2ee-warn
Signed-off-by: Šimon Brandner <[email protected]>
2 parents 82e0bce + 771dda0 commit e445c9c

File tree

592 files changed

+16684
-9627
lines changed

Some content is hidden

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

592 files changed

+16684
-9627
lines changed

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,15 @@
1-
<!-- Please read https://github.com/matrix-org/matrix-js-sdk/blob/develop/CONTRIBUTING.rst before submitting your pull request -->
1+
<!-- Please read https://github.com/matrix-org/matrix-js-sdk/blob/develop/CONTRIBUTING.md before submitting your pull request -->
22

3-
<!-- Include a Sign-Off as described in https://github.com/matrix-org/matrix-js-sdk/blob/develop/CONTRIBUTING.rst#sign-off -->
3+
<!-- Include a Sign-Off as described in https://github.com/matrix-org/matrix-js-sdk/blob/develop/CONTRIBUTING.md#sign-off -->
4+
5+
<!-- To specify text for the changelog entry (otherwise the PR title will be used):
6+
Notes:
7+
8+
Changes in this project generate changelog entries in element-web by default.
9+
To suppress this:
10+
11+
element-web notes: none
12+
13+
...or to specify different notes:
14+
element-web notes: <notes>
15+
-->

.github/workflows/develop.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
name: Develop
22
on:
3+
# These tests won't work for non-develop branches at the moment as they
4+
# won't pull in the right versions of other repos, so they're only enabled
5+
# on develop.
36
push:
47
branches: [develop]
58
pull_request:

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,3 +15,6 @@ package-lock.json
1515

1616
.DS_Store
1717
*.tmp
18+
19+
.vscode
20+
.vscode/

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)
File renamed without changes.

__mocks__/FontManager.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
// Stub out FontManager for tests as it doesn't validate anything we don't already know given
2+
// our fixed test environment and it requires the installation of node-canvas.
3+
4+
module.exports = {
5+
fixupColorFonts: () => Promise.resolve(),
6+
};

__mocks__/workerMock.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
module.exports = jest.fn();

package.json

Lines changed: 8 additions & 5 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",
@@ -126,6 +127,7 @@
126127
"@types/classnames": "^2.2.11",
127128
"@types/commonmark": "^0.27.4",
128129
"@types/counterpart": "^0.18.1",
130+
"@types/css-font-loading-module": "^0.0.6",
129131
"@types/diff-match-patch": "^1.0.32",
130132
"@types/flux": "^3.1.9",
131133
"@types/jest": "^26.0.20",
@@ -186,7 +188,8 @@
186188
"\\$webapp/i18n/languages.json": "<rootDir>/__mocks__/languages.json",
187189
"decoderWorker\\.min\\.js": "<rootDir>/__mocks__/empty.js",
188190
"decoderWorker\\.min\\.wasm": "<rootDir>/__mocks__/empty.js",
189-
"waveWorker\\.min\\.js": "<rootDir>/__mocks__/empty.js"
191+
"waveWorker\\.min\\.js": "<rootDir>/__mocks__/empty.js",
192+
"workers/(.+)\\.worker\\.ts": "<rootDir>/__mocks__/workerMock.js"
190193
},
191194
"transformIgnorePatterns": [
192195
"/node_modules/(?!matrix-js-sdk).+$"

res/css/_common.scss

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -104,8 +104,8 @@ a:visited {
104104
input[type=text],
105105
input[type=search],
106106
input[type=password] {
107+
font-family: inherit;
107108
padding: 9px;
108-
font-family: $font-family;
109109
font-size: $font-14px;
110110
font-weight: 600;
111111
min-width: 0;
@@ -146,7 +146,6 @@ input[type=text], input[type=password], textarea {
146146

147147
/* Required by Firefox */
148148
textarea {
149-
font-family: $font-family;
150149
color: $primary-fg-color;
151150
}
152151

res/css/_components.scss

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,7 @@
8686
@import "./views/dialogs/_IncomingSasDialog.scss";
8787
@import "./views/dialogs/_InviteDialog.scss";
8888
@import "./views/dialogs/_KeyboardShortcutsDialog.scss";
89+
@import "./views/dialogs/_ManageRestrictedJoinRuleDialog.scss";
8990
@import "./views/dialogs/_MessageEditHistoryDialog.scss";
9091
@import "./views/dialogs/_ModalWidgetDialog.scss";
9192
@import "./views/dialogs/_NewSessionReviewDialog.scss";
@@ -120,6 +121,7 @@
120121
@import "./views/elements/_AddressTile.scss";
121122
@import "./views/elements/_DesktopBuildsNotice.scss";
122123
@import "./views/elements/_DesktopCapturerSourcePicker.scss";
124+
@import "./views/elements/_DialPadBackspaceButton.scss";
123125
@import "./views/elements/_DirectorySearchBox.scss";
124126
@import "./views/elements/_Dropdown.scss";
125127
@import "./views/elements/_EditableItemList.scss";
@@ -148,6 +150,7 @@
148150
@import "./views/elements/_StyledCheckbox.scss";
149151
@import "./views/elements/_StyledRadioButton.scss";
150152
@import "./views/elements/_SyntaxHighlight.scss";
153+
@import "./views/elements/_TagComposer.scss";
151154
@import "./views/elements/_TextWithTooltip.scss";
152155
@import "./views/elements/_ToggleSwitch.scss";
153156
@import "./views/elements/_Tooltip.scss";
@@ -157,18 +160,19 @@
157160
@import "./views/groups/_GroupPublicityToggle.scss";
158161
@import "./views/groups/_GroupRoomList.scss";
159162
@import "./views/groups/_GroupUserSettings.scss";
163+
@import "./views/messages/_CallEvent.scss";
160164
@import "./views/messages/_CreateEvent.scss";
161165
@import "./views/messages/_DateSeparator.scss";
162166
@import "./views/messages/_EventTileBubble.scss";
163167
@import "./views/messages/_MEmoteBody.scss";
164168
@import "./views/messages/_MFileBody.scss";
165169
@import "./views/messages/_MImageBody.scss";
170+
@import "./views/messages/_MImageReplyBody.scss";
166171
@import "./views/messages/_MJitsiWidgetEvent.scss";
167172
@import "./views/messages/_MNoticeBody.scss";
168173
@import "./views/messages/_MStickerBody.scss";
169174
@import "./views/messages/_MTextBody.scss";
170175
@import "./views/messages/_MVideoBody.scss";
171-
@import "./views/messages/_MVoiceMessageBody.scss";
172176
@import "./views/messages/_MediaBody.scss";
173177
@import "./views/messages/_MessageActionBar.scss";
174178
@import "./views/messages/_MessageTimestamp.scss";
@@ -197,6 +201,7 @@
197201
@import "./views/rooms/_E2EIcon.scss";
198202
@import "./views/rooms/_EditMessageComposer.scss";
199203
@import "./views/rooms/_EntityTile.scss";
204+
@import "./views/rooms/_EventBubbleTile.scss";
200205
@import "./views/rooms/_EventTile.scss";
201206
@import "./views/rooms/_GroupLayout.scss";
202207
@import "./views/rooms/_IRCLayout.scss";
@@ -212,6 +217,7 @@
212217
@import "./views/rooms/_PinnedEventTile.scss";
213218
@import "./views/rooms/_PresenceLabel.scss";
214219
@import "./views/rooms/_ReplyPreview.scss";
220+
@import "./views/rooms/_ReplyTile.scss";
215221
@import "./views/rooms/_RoomBreadcrumbs.scss";
216222
@import "./views/rooms/_RoomHeader.scss";
217223
@import "./views/rooms/_RoomList.scss";
@@ -260,9 +266,10 @@
260266
@import "./views/toasts/_NonUrgentEchoFailureToast.scss";
261267
@import "./views/verification/_VerificationShowSas.scss";
262268
@import "./views/voip/_CallContainer.scss";
269+
@import "./views/voip/_CallPreview.scss";
263270
@import "./views/voip/_CallView.scss";
264271
@import "./views/voip/_CallViewForRoom.scss";
265-
@import "./views/voip/_CallPreview.scss";
272+
@import "./views/voip/_CallViewSidebar.scss";
266273
@import "./views/voip/_DialPad.scss";
267274
@import "./views/voip/_DialPadContextMenu.scss";
268275
@import "./views/voip/_DialPadModal.scss";

0 commit comments

Comments
 (0)