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

Commit 8036985

Browse files
authored
Update matrix-analytics-events to @matrix-org/analytics-events (#8778)
* Update matrix-analytics-events to @matrix-org/analytics-events * Update install-deps.sh * Update layered.sh * Update BeaconMarker-test.tsx.snap * Update BeaconStatus-test.tsx.snap
1 parent 3a20cb1 commit 8036985

File tree

19 files changed

+29
-26
lines changed

19 files changed

+29
-26
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@
5656
},
5757
"dependencies": {
5858
"@babel/runtime": "^7.12.5",
59+
"@matrix-org/analytics-events": "^0.1.1",
5960
"@sentry/browser": "^6.11.0",
6061
"@sentry/tracing": "^6.11.0",
6162
"@testing-library/react": "^12.1.5",
@@ -89,7 +90,6 @@
8990
"linkifyjs": "4.0.0-beta.4",
9091
"lodash": "^4.17.20",
9192
"maplibre-gl": "^1.15.2",
92-
"matrix-analytics-events": "github:matrix-org/matrix-analytics-events.git#a0687ca6fbdb7258543d49b99fb88b9201e900b0",
9393
"matrix-encrypt-attachment": "^1.0.3",
9494
"matrix-events-sdk": "^0.0.1-beta.7",
9595
"matrix-js-sdk": "github:matrix-org/matrix-js-sdk#develop",

scripts/ci/install-deps.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,9 @@ scripts/fetchdep.sh matrix-org matrix-analytics-events main
1919
pushd matrix-analytics-events
2020
yarn link
2121
yarn install --pure-lockfile $@
22+
yarn build:ts
2223
popd
2324

2425
yarn link matrix-js-sdk
25-
yarn link matrix-analytics-events
26+
yarn link @matrix-org/analytics-events
2627
yarn install --pure-lockfile $@

scripts/ci/layered.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,11 +24,12 @@ scripts/fetchdep.sh matrix-org matrix-analytics-events main
2424
pushd matrix-analytics-events
2525
yarn link
2626
yarn install --pure-lockfile
27+
yarn build:ts
2728
popd
2829

2930
# Now set up the react-sdk
3031
yarn link matrix-js-sdk
31-
yarn link matrix-analytics-events
32+
yarn link @matrix-org/analytics-events
3233
yarn link
3334
yarn install --pure-lockfile
3435

src/DecryptionFailureTracker.ts

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

1717
import { MatrixError } from "matrix-js-sdk/src/http-api";
1818
import { MatrixEvent } from "matrix-js-sdk/src/models/event";
19-
import { Error as ErrorEvent } from "matrix-analytics-events/types/typescript/Error";
19+
import { Error as ErrorEvent } from "@matrix-org/analytics-events/types/typescript/Error";
2020

2121
import Analytics from "./Analytics";
2222
import { PosthogAnalytics } from './PosthogAnalytics';

src/PosthogAnalytics.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@ limitations under the License.
1717
import posthog, { PostHog } from 'posthog-js';
1818
import { MatrixClient } from "matrix-js-sdk/src/client";
1919
import { logger } from "matrix-js-sdk/src/logger";
20-
import { UserProperties } from "matrix-analytics-events/types/typescript/UserProperties";
21-
import { Signup } from 'matrix-analytics-events/types/typescript/Signup';
20+
import { UserProperties } from "@matrix-org/analytics-events/types/typescript/UserProperties";
21+
import { Signup } from '@matrix-org/analytics-events/types/typescript/Signup';
2222

2323
import PlatformPeg from './PlatformPeg';
2424
import SdkConfig from './SdkConfig';

src/PosthogTrackers.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ limitations under the License.
1515
*/
1616

1717
import { PureComponent, SyntheticEvent } from "react";
18-
import { WebScreen as ScreenEvent } from "matrix-analytics-events/types/typescript/WebScreen";
19-
import { Interaction as InteractionEvent } from "matrix-analytics-events/types/typescript/Interaction";
18+
import { WebScreen as ScreenEvent } from "@matrix-org/analytics-events/types/typescript/WebScreen";
19+
import { Interaction as InteractionEvent } from "@matrix-org/analytics-events/types/typescript/Interaction";
2020

2121
import PageType from "./PageTypes";
2222
import Views from "./Views";

src/SlashCommands.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ import * as ContentHelpers from 'matrix-js-sdk/src/content-helpers';
2525
import { Element as ChildElement, parseFragment as parseHtml } from "parse5";
2626
import { logger } from "matrix-js-sdk/src/logger";
2727
import { IContent } from 'matrix-js-sdk/src/models/event';
28-
import { SlashCommand as SlashCommandEvent } from "matrix-analytics-events/types/typescript/SlashCommand";
28+
import { SlashCommand as SlashCommandEvent } from "@matrix-org/analytics-events/types/typescript/SlashCommand";
2929

3030
import { MatrixClientPeg } from './MatrixClientPeg';
3131
import dis from './dispatcher/dispatcher';

src/components/views/dialogs/SpotlightDialog.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ import { normalize } from "matrix-js-sdk/src/utils";
3030
import { IHierarchyRoom } from "matrix-js-sdk/src/@types/spaces";
3131
import { RoomHierarchy } from "matrix-js-sdk/src/room-hierarchy";
3232
import { RoomType } from "matrix-js-sdk/src/@types/event";
33-
import { WebSearch as WebSearchEvent } from "matrix-analytics-events/types/typescript/WebSearch";
33+
import { WebSearch as WebSearchEvent } from "@matrix-org/analytics-events/types/typescript/WebSearch";
3434

3535
import { IDialogProps } from "./IDialogProps";
3636
import { _t } from "../../../languageHandler";

src/components/views/elements/SSOButtons.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ import React from "react";
1818
import { chunk } from "lodash";
1919
import classNames from "classnames";
2020
import { MatrixClient } from "matrix-js-sdk/src/client";
21-
import { Signup } from "matrix-analytics-events/types/typescript/Signup";
21+
import { Signup } from "@matrix-org/analytics-events/types/typescript/Signup";
2222

2323
import PlatformPeg from "../../../PlatformPeg";
2424
import AccessibleButton from "./AccessibleButton";

src/components/views/rooms/EditMessageComposer.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ import { EventStatus, IContent, MatrixEvent } from 'matrix-js-sdk/src/models/eve
2020
import { MsgType } from 'matrix-js-sdk/src/@types/event';
2121
import { Room } from 'matrix-js-sdk/src/models/room';
2222
import { logger } from "matrix-js-sdk/src/logger";
23-
import { Composer as ComposerEvent } from "matrix-analytics-events/types/typescript/Composer";
23+
import { Composer as ComposerEvent } from "@matrix-org/analytics-events/types/typescript/Composer";
2424

2525
import { _t } from '../../../languageHandler';
2626
import dis from '../../../dispatcher/dispatcher';

0 commit comments

Comments
 (0)