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

Commit 0d2e8bb

Browse files
authored
Merge branch 'develop' into prbranch
2 parents ff2ed60 + e6c1279 commit 0d2e8bb

File tree

214 files changed

+907
-875
lines changed

Some content is hidden

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

214 files changed

+907
-875
lines changed

.eslintrc.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,10 @@ module.exports = {
110110
name: "matrix-js-sdk/src/@types/event",
111111
message: "Please use matrix-js-sdk/src/matrix instead",
112112
},
113+
{
114+
name: "matrix-js-sdk/src/client",
115+
message: "Please use matrix-js-sdk/src/matrix instead",
116+
},
113117
{
114118
name: "matrix-react-sdk",
115119
message: "Please use matrix-react-sdk/src/index instead",

.github/workflows/cypress.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ jobs:
163163
echo "CYPRESS_RUST_CRYPTO=1" >> "$GITHUB_ENV"
164164
165165
- name: Run Cypress tests
166-
uses: cypress-io/github-action@bcd73b7e98602824dfd8cddd890f5d7dd5c4d97a
166+
uses: cypress-io/github-action@90dff940a41c08c7c344310eac7e57eda636326a
167167
with:
168168
working-directory: matrix-react-sdk
169169
# The built-in Electron runner seems to grind to a halt trying to run the tests, so use chrome.

cypress/e2e/composer/composer.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ describe("Composer", () => {
173173
cy.findByRole("textbox").type("this is the spoiler text ");
174174
cy.findByRole("button", { name: "Send message" }).click();
175175
// Check that a spoiler item has appeared in the timeline and contains the spoiler command text
176-
cy.get("span.mx_EventTile_spoiler").should("exist");
176+
cy.get("button.mx_EventTile_spoiler").should("exist");
177177
cy.findByText("this is the spoiler text").should("exist");
178178
});
179179
});

jest.config.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,9 @@ import type { Config } from "jest";
2121
const config: Config = {
2222
testEnvironment: "jsdom",
2323
testMatch: ["<rootDir>/test/**/*-test.[jt]s?(x)"],
24-
globalSetup: "<rootDir>/test/globalSetup.js",
24+
globalSetup: "<rootDir>/test/globalSetup.ts",
2525
setupFiles: ["jest-canvas-mock"],
26-
setupFilesAfterEnv: ["<rootDir>/test/setupTests.js"],
26+
setupFilesAfterEnv: ["<rootDir>/test/setupTests.ts"],
2727
moduleNameMapper: {
2828
"\\.(gif|png|ttf|woff2)$": "<rootDir>/__mocks__/imageMock.js",
2929
"\\.svg$": "<rootDir>/__mocks__/svg.js",

res/css/views/rooms/_EventTile.pcss

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -809,6 +809,16 @@ $left-gutter: 64px;
809809
.mx_EventTile_spoiler {
810810
cursor: pointer;
811811

812+
// clear button styles
813+
appearance: none;
814+
background: none;
815+
border: none;
816+
padding: 0;
817+
margin: 0;
818+
font-size: inherit;
819+
font-family: inherit;
820+
line-height: inherit;
821+
812822
.mx_EventTile_spoiler_reason {
813823
color: $event-timestamp-color;
814824
font-size: $font-11px;
@@ -821,6 +831,7 @@ $left-gutter: 64px;
821831

822832
&.visible > .mx_EventTile_spoiler_content {
823833
filter: none;
834+
user-select: auto;
824835
}
825836
}
826837

src/ContentMessages.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@ See the License for the specific language governing permissions and
1616
limitations under the License.
1717
*/
1818

19-
import { MatrixClient } from "matrix-js-sdk/src/client";
2019
import {
20+
MatrixClient,
2121
MsgType,
2222
IImageInfo,
2323
HTTPError,

src/Lifecycle.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,8 @@ limitations under the License.
1818
*/
1919

2020
import { ReactNode } from "react";
21-
import { createClient } from "matrix-js-sdk/src/matrix";
21+
import { createClient, MatrixClient } from "matrix-js-sdk/src/matrix";
2222
import { InvalidStoreError } from "matrix-js-sdk/src/errors";
23-
import { MatrixClient } from "matrix-js-sdk/src/client";
2423
import { decryptAES, encryptAES, IEncryptedPayload } from "matrix-js-sdk/src/crypto/aes";
2524
import { QueryDict } from "matrix-js-sdk/src/utils";
2625
import { logger } from "matrix-js-sdk/src/logger";

src/Login.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,7 @@ See the License for the specific language governing permissions and
1515
limitations under the License.
1616
*/
1717

18-
// @ts-ignore - XXX: tsc doesn't like this: our js-sdk imports are complex so this isn't surprising
19-
import { createClient } from "matrix-js-sdk/src/matrix";
20-
import { MatrixClient } from "matrix-js-sdk/src/client";
18+
import { createClient, MatrixClient } from "matrix-js-sdk/src/matrix";
2119
import { logger } from "matrix-js-sdk/src/logger";
2220
import { DELEGATED_OIDC_COMPATIBILITY, ILoginFlow, LoginFlow, LoginRequest } from "matrix-js-sdk/src/@types/auth";
2321

src/MatrixClientPeg.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,9 @@ import {
2424
RoomNameType,
2525
EventTimeline,
2626
EventTimelineSet,
27+
IStartClientOpts,
28+
MatrixClient,
2729
} from "matrix-js-sdk/src/matrix";
28-
import { IStartClientOpts, MatrixClient } from "matrix-js-sdk/src/client";
2930
import { MemoryStore } from "matrix-js-sdk/src/store/memory";
3031
import * as utils from "matrix-js-sdk/src/utils";
3132
import { verificationMethods } from "matrix-js-sdk/src/crypto";

src/PosthogAnalytics.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ limitations under the License.
1515
*/
1616

1717
import posthog, { CaptureOptions, PostHog, Properties } from "posthog-js";
18-
import { MatrixClient } from "matrix-js-sdk/src/client";
18+
import { MatrixClient } from "matrix-js-sdk/src/matrix";
1919
import { logger } from "matrix-js-sdk/src/logger";
2020
import { UserProperties } from "@matrix-org/analytics-events/types/typescript/UserProperties";
2121
import { Signup } from "@matrix-org/analytics-events/types/typescript/Signup";

0 commit comments

Comments
 (0)