@truedat/audit 8.12.6 → 8.12.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +4 -4
- package/src/components/NotificationsMenu.js +1 -1
- package/src/components/SubscriptionActions.js +2 -1
- package/src/components/SubscriptionForm.js +2 -1
- package/src/components/__tests__/NotificationEvent.spec.js +10 -1
- package/src/components/__tests__/NotificationsMenu.spec.js +10 -1
- package/src/components/__tests__/ShareLinkForm.spec.js +2 -1
- package/src/components/__tests__/ShareLinkPopup.spec.js +1 -1
- package/src/components/__tests__/SubscriptionWatchForm.spec.js +2 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@truedat/audit",
|
|
3
|
-
"version": "8.12.
|
|
3
|
+
"version": "8.12.8",
|
|
4
4
|
"description": "Truedat Web Audit Module",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"module": "src/index.js",
|
|
@@ -54,14 +54,14 @@
|
|
|
54
54
|
"@testing-library/jest-dom": "^6.6.3",
|
|
55
55
|
"@testing-library/react": "^16.3.0",
|
|
56
56
|
"@testing-library/user-event": "^14.6.1",
|
|
57
|
-
"@truedat/test": "8.12.
|
|
57
|
+
"@truedat/test": "8.12.8",
|
|
58
58
|
"identity-obj-proxy": "^3.0.0",
|
|
59
59
|
"jest": "^29.7.0",
|
|
60
60
|
"redux-saga-test-plan": "^4.0.6"
|
|
61
61
|
},
|
|
62
62
|
"dependencies": {
|
|
63
63
|
"@apollo/client": "^3.13.8",
|
|
64
|
-
"axios": "^1.
|
|
64
|
+
"axios": "^1.20.0",
|
|
65
65
|
"graphql": "^16.11.0",
|
|
66
66
|
"is-hotkey": "^0.2.0",
|
|
67
67
|
"is-url": "^1.2.4",
|
|
@@ -86,5 +86,5 @@
|
|
|
86
86
|
"semantic-ui-react": "^3.0.0-beta.2",
|
|
87
87
|
"swr": "^2.3.3"
|
|
88
88
|
},
|
|
89
|
-
"gitHead": "
|
|
89
|
+
"gitHead": "682b801555be3f898e0502fd70a48ea32110c327"
|
|
90
90
|
}
|
|
@@ -3,7 +3,7 @@ import PropTypes from "prop-types";
|
|
|
3
3
|
import { connect } from "react-redux";
|
|
4
4
|
import { FormattedMessage } from "react-intl";
|
|
5
5
|
import { Dropdown, Label } from "semantic-ui-react";
|
|
6
|
-
import
|
|
6
|
+
import Loading from "@truedat/core/components/Loading";
|
|
7
7
|
import { useEffect } from "react";
|
|
8
8
|
import { fetchNotifications, readNotification } from "../routines";
|
|
9
9
|
import NotificationEvent from "./NotificationEvent";
|
|
@@ -3,7 +3,8 @@ import { Link, useNavigate } from "react-router";
|
|
|
3
3
|
import { connect } from "react-redux";
|
|
4
4
|
import { Button, Icon } from "semantic-ui-react";
|
|
5
5
|
import { useIntl } from "react-intl";
|
|
6
|
-
import
|
|
6
|
+
import ConfirmModal from "@truedat/core/components/ConfirmModal";
|
|
7
|
+
import GroupActions from "@truedat/core/components/GroupActions";
|
|
7
8
|
import { SUBSCRIPTIONS, linkTo } from "@truedat/core/routes";
|
|
8
9
|
import { deleteSubscription } from "@truedat/core/routines";
|
|
9
10
|
|
|
@@ -4,7 +4,8 @@ import PropTypes from "prop-types";
|
|
|
4
4
|
import { useIntl, FormattedMessage } from "react-intl";
|
|
5
5
|
import { useForm, useWatch, Controller } from "react-hook-form";
|
|
6
6
|
import { Button, Form, Radio, Icon } from "semantic-ui-react";
|
|
7
|
-
import
|
|
7
|
+
import DomainSelector from "@truedat/core/components/DomainSelector";
|
|
8
|
+
import HistoryBackButton from "@truedat/core/components/HistoryBackButton";
|
|
8
9
|
import {
|
|
9
10
|
CONCEPT_EVENTS,
|
|
10
11
|
DEFAULT_ICON,
|
|
@@ -1,8 +1,17 @@
|
|
|
1
|
-
import { render } from "@truedat/test/
|
|
1
|
+
import { renderWithIntl as render } from "@truedat/test/renderWithIntl";
|
|
2
2
|
import NotificationEvent from "../NotificationEvent";
|
|
3
3
|
|
|
4
4
|
jest.mock("@truedat/core/hooks", () => ({ useOnScreen: jest.fn() }));
|
|
5
5
|
|
|
6
|
+
beforeAll(() => {
|
|
7
|
+
jest.useFakeTimers();
|
|
8
|
+
jest.setSystemTime(new Date("2025-01-01"));
|
|
9
|
+
});
|
|
10
|
+
|
|
11
|
+
afterAll(() => {
|
|
12
|
+
jest.useRealTimers();
|
|
13
|
+
});
|
|
14
|
+
|
|
6
15
|
describe("<NotificationEvent />", () => {
|
|
7
16
|
it("matches the latest snapshot", () => {
|
|
8
17
|
const event = {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { render } from "@truedat/test/
|
|
1
|
+
import { renderWithIntl as render } from "@truedat/test/renderWithIntl";
|
|
2
2
|
import { NotificationsMenu } from "../NotificationsMenu";
|
|
3
3
|
|
|
4
4
|
jest.mock("@truedat/core/hooks", () => ({ useOnScreen: jest.fn() }));
|
|
@@ -6,6 +6,15 @@ jest
|
|
|
6
6
|
.spyOn(global.Date, "now")
|
|
7
7
|
.mockImplementation(() => new Date("2022-01-01T11:01:58.135Z").valueOf());
|
|
8
8
|
|
|
9
|
+
beforeAll(() => {
|
|
10
|
+
jest.useFakeTimers();
|
|
11
|
+
jest.setSystemTime(new Date("2025-01-01"));
|
|
12
|
+
});
|
|
13
|
+
|
|
14
|
+
afterAll(() => {
|
|
15
|
+
jest.useRealTimers();
|
|
16
|
+
});
|
|
17
|
+
|
|
9
18
|
describe("<NotificationsMenu />", () => {
|
|
10
19
|
it("matches the latest snapshot", () => {
|
|
11
20
|
const fetchNotifications = jest.fn();
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import userEvent from "@testing-library/user-event";
|
|
2
2
|
import { waitFor } from "@testing-library/react";
|
|
3
|
-
import { render
|
|
3
|
+
import { renderWithIntl as render } from "@truedat/test/renderWithIntl";
|
|
4
|
+
import { waitForLoad } from "@truedat/test/waitForLoad";
|
|
4
5
|
import { ShareLinkForm } from "../ShareLinkForm";
|
|
5
6
|
|
|
6
7
|
describe("<ShareLinkForm />", () => {
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import userEvent from "@testing-library/user-event";
|
|
2
|
-
import { render
|
|
2
|
+
import { renderWithIntl as render } from "@truedat/test/renderWithIntl";
|
|
3
|
+
import { waitForLoad } from "@truedat/test/waitForLoad";
|
|
3
4
|
import { SubscriptionWatchForm } from "../SubscriptionWatchForm";
|
|
4
5
|
|
|
5
6
|
describe("<SubscriptionWatchForm />", () => {
|