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

Commit 7487a5f

Browse files
committed
Merge branch 'develop' into watch-show-timestamps
2 parents 2021650 + 4ef4f49 commit 7487a5f

File tree

391 files changed

+8660
-5747
lines changed

Some content is hidden

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

391 files changed

+8660
-5747
lines changed

.eslintignore.errorfiles

Lines changed: 0 additions & 16 deletions
This file was deleted.

.eslintrc.js

Lines changed: 16 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,18 @@ module.exports = {
2424
// It's disabled here, but we should using it sparingly.
2525
"react/jsx-no-bind": "off",
2626
"react/jsx-key": ["error"],
27+
28+
"no-restricted-properties": [
29+
"error",
30+
...buildRestrictedPropertiesOptions(
31+
["window.innerHeight", "window.innerWidth", "window.visualViewport"],
32+
"Use UIStore to access window dimensions instead.",
33+
),
34+
...buildRestrictedPropertiesOptions(
35+
["*.mxcUrlToHttp", "*.getHttpUriForMxc"],
36+
"Use Media helper instead to centralise access for customisation.",
37+
),
38+
],
2739
},
2840
overrides: [{
2941
files: [
@@ -49,21 +61,16 @@ module.exports = {
4961
"@typescript-eslint/no-explicit-any": "off",
5062
// We'd rather not do this but we do
5163
"@typescript-eslint/ban-ts-comment": "off",
52-
53-
"no-restricted-properties": [
54-
"error",
55-
...buildRestrictedPropertiesOptions(
56-
["window.innerHeight", "window.innerWidth", "window.visualViewport"],
57-
"Use UIStore to access window dimensions instead",
58-
),
59-
],
6064
},
6165
}],
6266
};
6367

6468
function buildRestrictedPropertiesOptions(properties, message) {
6569
return properties.map(prop => {
66-
const [object, property] = prop.split(".");
70+
let [object, property] = prop.split(".");
71+
if (object === "*") {
72+
object = undefined;
73+
}
6774
return {
6875
object,
6976
property,

.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: 171 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,174 @@
1+
Changes in [3.25.0](https://github.com/matrix-org/matrix-react-sdk/releases/tag/v3.25.0) (2021-07-05)
2+
=====================================================================================================
3+
[Full Changelog](https://github.com/matrix-org/matrix-react-sdk/compare/v3.25.0-rc.1...v3.25.0)
4+
5+
* Remove reminescent references to the tinter
6+
[\#6316](https://github.com/matrix-org/matrix-react-sdk/pull/6316)
7+
* Update to released version of js-sdk
8+
9+
Changes in [3.25.0-rc.1](https://github.com/matrix-org/matrix-react-sdk/releases/tag/v3.25.0-rc.1) (2021-06-29)
10+
===============================================================================================================
11+
[Full Changelog](https://github.com/matrix-org/matrix-react-sdk/compare/v3.24.0...v3.25.0-rc.1)
12+
13+
* Update to js-sdk v12.0.1-rc.1
14+
* Translations update from Weblate
15+
[\#6286](https://github.com/matrix-org/matrix-react-sdk/pull/6286)
16+
* Fix back button on user info card after clicking a permalink
17+
[\#6277](https://github.com/matrix-org/matrix-react-sdk/pull/6277)
18+
* Group ACLs with MELS
19+
[\#6280](https://github.com/matrix-org/matrix-react-sdk/pull/6280)
20+
* Fix editState not getting passed through
21+
[\#6282](https://github.com/matrix-org/matrix-react-sdk/pull/6282)
22+
* Migrate message context menu to IconizedContextMenu
23+
[\#5671](https://github.com/matrix-org/matrix-react-sdk/pull/5671)
24+
* Improve audio recording performance
25+
[\#6240](https://github.com/matrix-org/matrix-react-sdk/pull/6240)
26+
* Fix multiple timeline panels handling composer and edit events
27+
[\#6278](https://github.com/matrix-org/matrix-react-sdk/pull/6278)
28+
* Let m.notice messages mark a room as unread
29+
[\#6281](https://github.com/matrix-org/matrix-react-sdk/pull/6281)
30+
* Removes the override on the Bubble Container
31+
[\#5953](https://github.com/matrix-org/matrix-react-sdk/pull/5953)
32+
* Fix IRC layout regressions
33+
[\#6193](https://github.com/matrix-org/matrix-react-sdk/pull/6193)
34+
* Fix trashcan.svg by exporting it with its viewbox
35+
[\#6248](https://github.com/matrix-org/matrix-react-sdk/pull/6248)
36+
* Fix tiny scrollbar dot on chrome/electron in Forward Dialog
37+
[\#6276](https://github.com/matrix-org/matrix-react-sdk/pull/6276)
38+
* Upgrade puppeteer to use newer version of Chrome
39+
[\#6268](https://github.com/matrix-org/matrix-react-sdk/pull/6268)
40+
* Make toast dismiss button less prominent
41+
[\#6275](https://github.com/matrix-org/matrix-react-sdk/pull/6275)
42+
* Encrypt the voice message file if needed
43+
[\#6269](https://github.com/matrix-org/matrix-react-sdk/pull/6269)
44+
* Fix hyper-precise presence
45+
[\#6270](https://github.com/matrix-org/matrix-react-sdk/pull/6270)
46+
* Fix issues around private spaces, including previewable
47+
[\#6265](https://github.com/matrix-org/matrix-react-sdk/pull/6265)
48+
* Make _pinned messages_ in `m.room.pinned_events` event clickable
49+
[\#6257](https://github.com/matrix-org/matrix-react-sdk/pull/6257)
50+
* Fix space avatar management layout being broken
51+
[\#6266](https://github.com/matrix-org/matrix-react-sdk/pull/6266)
52+
* Convert EntityTile, MemberTile and PresenceLabel to TS
53+
[\#6251](https://github.com/matrix-org/matrix-react-sdk/pull/6251)
54+
* Fix UserInfo not working when rendered without a room
55+
[\#6260](https://github.com/matrix-org/matrix-react-sdk/pull/6260)
56+
* Update membership reason handling, including leave reason displaying
57+
[\#6253](https://github.com/matrix-org/matrix-react-sdk/pull/6253)
58+
* Consolidate types with js-sdk changes
59+
[\#6220](https://github.com/matrix-org/matrix-react-sdk/pull/6220)
60+
* Fix edit history modal
61+
[\#6258](https://github.com/matrix-org/matrix-react-sdk/pull/6258)
62+
* Convert MemberList to TS
63+
[\#6249](https://github.com/matrix-org/matrix-react-sdk/pull/6249)
64+
* Fix two PRs duplicating the css attribute
65+
[\#6259](https://github.com/matrix-org/matrix-react-sdk/pull/6259)
66+
* Improve invite error messages in InviteDialog for room invites
67+
[\#6201](https://github.com/matrix-org/matrix-react-sdk/pull/6201)
68+
* Fix invite dialog being cut off when it has limited results
69+
[\#6256](https://github.com/matrix-org/matrix-react-sdk/pull/6256)
70+
* Fix pinning event in a room which hasn't had events pinned in before
71+
[\#6255](https://github.com/matrix-org/matrix-react-sdk/pull/6255)
72+
* Allow modal widget buttons to be disabled when the modal opens
73+
[\#6178](https://github.com/matrix-org/matrix-react-sdk/pull/6178)
74+
* Decrease e2e shield fill mask size so that it doesn't overlap
75+
[\#6250](https://github.com/matrix-org/matrix-react-sdk/pull/6250)
76+
* Dial Pad UI bug fixes
77+
[\#5786](https://github.com/matrix-org/matrix-react-sdk/pull/5786)
78+
* Simple handling of mid-call output changes
79+
[\#6247](https://github.com/matrix-org/matrix-react-sdk/pull/6247)
80+
* Improve ForwardDialog performance by using TruncatedList
81+
[\#6228](https://github.com/matrix-org/matrix-react-sdk/pull/6228)
82+
* Fix dependency and lockfile mismatch
83+
[\#6246](https://github.com/matrix-org/matrix-react-sdk/pull/6246)
84+
* Improve room directory click behaviour
85+
[\#6234](https://github.com/matrix-org/matrix-react-sdk/pull/6234)
86+
* Fix keyboard accessibility of the space panel
87+
[\#6239](https://github.com/matrix-org/matrix-react-sdk/pull/6239)
88+
* Add ways to manage addresses for Spaces
89+
[\#6151](https://github.com/matrix-org/matrix-react-sdk/pull/6151)
90+
* Hide communities invites and the community autocompleter when Spaces on
91+
[\#6244](https://github.com/matrix-org/matrix-react-sdk/pull/6244)
92+
* Convert bunch of files to TS
93+
[\#6241](https://github.com/matrix-org/matrix-react-sdk/pull/6241)
94+
* Open local addresses section by default when there are no existing local
95+
addresses
96+
[\#6179](https://github.com/matrix-org/matrix-react-sdk/pull/6179)
97+
* Allow reordering of the space panel via Drag and Drop
98+
[\#6137](https://github.com/matrix-org/matrix-react-sdk/pull/6137)
99+
* Replace drag and drop mechanism in communities with something simpler
100+
[\#6134](https://github.com/matrix-org/matrix-react-sdk/pull/6134)
101+
* EventTilePreview fixes
102+
[\#6000](https://github.com/matrix-org/matrix-react-sdk/pull/6000)
103+
* Upgrade @types/react and @types/react-dom
104+
[\#6233](https://github.com/matrix-org/matrix-react-sdk/pull/6233)
105+
* Fix type error in the SpaceStore
106+
[\#6242](https://github.com/matrix-org/matrix-react-sdk/pull/6242)
107+
* Add experimental options to the Spaces beta
108+
[\#6199](https://github.com/matrix-org/matrix-react-sdk/pull/6199)
109+
* Consolidate types with js-sdk changes
110+
[\#6215](https://github.com/matrix-org/matrix-react-sdk/pull/6215)
111+
* Fix branch matching for Buildkite
112+
[\#6236](https://github.com/matrix-org/matrix-react-sdk/pull/6236)
113+
* Migrate SearchBar to TypeScript
114+
[\#6230](https://github.com/matrix-org/matrix-react-sdk/pull/6230)
115+
* Add support to keyboard shortcuts dialog for [digits]
116+
[\#6088](https://github.com/matrix-org/matrix-react-sdk/pull/6088)
117+
* Fix modal opening race condition
118+
[\#6238](https://github.com/matrix-org/matrix-react-sdk/pull/6238)
119+
* Deprecate FormButton in favour of AccessibleButton
120+
[\#6229](https://github.com/matrix-org/matrix-react-sdk/pull/6229)
121+
* Add PR template
122+
[\#6216](https://github.com/matrix-org/matrix-react-sdk/pull/6216)
123+
* Prefer canonical aliases while autocompleting rooms
124+
[\#6222](https://github.com/matrix-org/matrix-react-sdk/pull/6222)
125+
* Fix quote button
126+
[\#6232](https://github.com/matrix-org/matrix-react-sdk/pull/6232)
127+
* Restore branch matching support for GitHub Actions e2e tests
128+
[\#6224](https://github.com/matrix-org/matrix-react-sdk/pull/6224)
129+
* Fix View Source accessing renamed private field on MatrixEvent
130+
[\#6225](https://github.com/matrix-org/matrix-react-sdk/pull/6225)
131+
* Fix ConfirmUserActionDialog returning an input field rather than text
132+
[\#6219](https://github.com/matrix-org/matrix-react-sdk/pull/6219)
133+
* Revert "Partially restore immutable event objects at the rendering layer"
134+
[\#6221](https://github.com/matrix-org/matrix-react-sdk/pull/6221)
135+
* Add jq to e2e tests Dockerfile
136+
[\#6218](https://github.com/matrix-org/matrix-react-sdk/pull/6218)
137+
* Partially restore immutable event objects at the rendering layer
138+
[\#6196](https://github.com/matrix-org/matrix-react-sdk/pull/6196)
139+
* Update MSC number references for voice messages
140+
[\#6197](https://github.com/matrix-org/matrix-react-sdk/pull/6197)
141+
* Fix phase enum usage in JS modules as well
142+
[\#6214](https://github.com/matrix-org/matrix-react-sdk/pull/6214)
143+
* Migrate some dialogs to TypeScript
144+
[\#6185](https://github.com/matrix-org/matrix-react-sdk/pull/6185)
145+
* Typescript fixes due to MatrixEvent being TSified
146+
[\#6208](https://github.com/matrix-org/matrix-react-sdk/pull/6208)
147+
* Allow click-to-ping, quote & emoji picker for edit composer too
148+
[\#5858](https://github.com/matrix-org/matrix-react-sdk/pull/5858)
149+
* Add call silencing
150+
[\#6082](https://github.com/matrix-org/matrix-react-sdk/pull/6082)
151+
* Fix types in SlashCommands
152+
[\#6207](https://github.com/matrix-org/matrix-react-sdk/pull/6207)
153+
* Benchmark multiple common user scenario
154+
[\#6190](https://github.com/matrix-org/matrix-react-sdk/pull/6190)
155+
* Fix forward dialog message preview display names
156+
[\#6204](https://github.com/matrix-org/matrix-react-sdk/pull/6204)
157+
* Remove stray bullet point in reply preview
158+
[\#6206](https://github.com/matrix-org/matrix-react-sdk/pull/6206)
159+
* Stop requesting null next replies from the server
160+
[\#6203](https://github.com/matrix-org/matrix-react-sdk/pull/6203)
161+
* Fix soft crash caused by a broken shouldComponentUpdate
162+
[\#6202](https://github.com/matrix-org/matrix-react-sdk/pull/6202)
163+
* Keep composer reply when scrolling away from a highlighted event
164+
[\#6200](https://github.com/matrix-org/matrix-react-sdk/pull/6200)
165+
* Cache virtual/native room mappings when they're created
166+
[\#6194](https://github.com/matrix-org/matrix-react-sdk/pull/6194)
167+
* Disable comment-on-alert
168+
[\#6191](https://github.com/matrix-org/matrix-react-sdk/pull/6191)
169+
* Bump postcss from 7.0.35 to 7.0.36
170+
[\#6195](https://github.com/matrix-org/matrix-react-sdk/pull/6195)
171+
1172
Changes in [3.24.0](https://github.com/matrix-org/matrix-react-sdk/releases/tag/v3.24.0) (2021-06-21)
2173
=====================================================================================================
3174
[Full Changelog](https://github.com/matrix-org/matrix-react-sdk/compare/v3.24.0-rc.1...v3.24.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: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "matrix-react-sdk",
3-
"version": "3.24.0",
3+
"version": "3.25.0",
44
"description": "SDK for matrix.org using React",
55
"author": "matrix.org",
66
"repository": {
@@ -45,7 +45,7 @@
4545
"start:all": "concurrently --kill-others-on-fail --prefix \"{time} [{name}]\" -n build,reskindex \"yarn start:build\" \"yarn reskindex:watch\"",
4646
"start:build": "babel src -w -s -d lib --verbose --extensions \".ts,.js\"",
4747
"lint": "yarn lint:types && yarn lint:js && yarn lint:style",
48-
"lint:js": "eslint --max-warnings 0 --ignore-path .eslintignore.errorfiles src test",
48+
"lint:js": "eslint --max-warnings 0 src test",
4949
"lint:types": "tsc --noEmit --jsx react",
5050
"lint:style": "stylelint 'res/css/**/*.scss'",
5151
"test": "jest",
@@ -55,6 +55,7 @@
5555
"dependencies": {
5656
"@babel/runtime": "^7.12.5",
5757
"await-lock": "^2.1.0",
58+
"blurhash": "^1.1.3",
5859
"browser-encrypt-attachment": "^0.3.0",
5960
"browser-request": "^0.3.3",
6061
"cheerio": "^1.0.0-rc.9",
@@ -78,7 +79,7 @@
7879
"katex": "^0.12.0",
7980
"linkifyjs": "^2.1.9",
8081
"lodash": "^4.17.20",
81-
"matrix-js-sdk": "12.0.0",
82+
"matrix-js-sdk": "12.0.1",
8283
"matrix-widget-api": "^0.1.0-beta.15",
8384
"minimist": "^1.2.5",
8485
"opus-recorder": "^8.0.3",
@@ -90,6 +91,7 @@
9091
"re-resizable": "^6.9.0",
9192
"react": "^17.0.2",
9293
"react-beautiful-dnd": "^13.1.0",
94+
"react-blurhash": "^0.1.3",
9395
"react-dom": "^17.0.2",
9496
"react-focus-lock": "^2.5.0",
9597
"react-transition-group": "^4.4.1",
@@ -122,7 +124,9 @@
122124
"@peculiar/webcrypto": "^1.1.4",
123125
"@sinonjs/fake-timers": "^7.0.2",
124126
"@types/classnames": "^2.2.11",
127+
"@types/commonmark": "^0.27.4",
125128
"@types/counterpart": "^0.18.1",
129+
"@types/css-font-loading-module": "^0.0.6",
126130
"@types/diff-match-patch": "^1.0.32",
127131
"@types/flux": "^3.1.9",
128132
"@types/jest": "^26.0.20",
@@ -183,7 +187,8 @@
183187
"\\$webapp/i18n/languages.json": "<rootDir>/__mocks__/languages.json",
184188
"decoderWorker\\.min\\.js": "<rootDir>/__mocks__/empty.js",
185189
"decoderWorker\\.min\\.wasm": "<rootDir>/__mocks__/empty.js",
186-
"waveWorker\\.min\\.js": "<rootDir>/__mocks__/empty.js"
190+
"waveWorker\\.min\\.js": "<rootDir>/__mocks__/empty.js",
191+
"workers/(.+)\\.worker\\.ts": "<rootDir>/__mocks__/workerMock.js"
187192
},
188193
"transformIgnorePatterns": [
189194
"/node_modules/(?!matrix-js-sdk).+$"

0 commit comments

Comments
 (0)