@truedat/se 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 +5 -5
- package/src/components/DeleteIndexButton.js +1 -1
- package/src/components/SearchLoader.js +1 -1
- package/src/components/__tests__/DeleteIndexButton.spec.js +2 -1
- package/src/components/__tests__/ElasticIndexes.spec.js +2 -1
- package/src/components/__tests__/SearchInput.spec.js +2 -1
- package/src/components/__tests__/SearchRoutes.spec.js +0 -4
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@truedat/se",
|
|
3
|
-
"version": "8.12.
|
|
3
|
+
"version": "8.12.8",
|
|
4
4
|
"description": "Truedat Web Search Engine",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"module": "src/index.js",
|
|
@@ -54,15 +54,15 @@
|
|
|
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
|
-
"@truedat/core": "8.12.
|
|
65
|
-
"axios": "^1.
|
|
64
|
+
"@truedat/core": "8.12.8",
|
|
65
|
+
"axios": "^1.20.0",
|
|
66
66
|
"graphql": "^16.11.0",
|
|
67
67
|
"is-hotkey": "^0.2.0",
|
|
68
68
|
"is-url": "^1.2.4",
|
|
@@ -87,5 +87,5 @@
|
|
|
87
87
|
"semantic-ui-react": "^3.0.0-beta.2",
|
|
88
88
|
"swr": "^2.3.3"
|
|
89
89
|
},
|
|
90
|
-
"gitHead": "
|
|
90
|
+
"gitHead": "682b801555be3f898e0502fd70a48ea32110c327"
|
|
91
91
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import PropTypes from "prop-types";
|
|
2
2
|
import { useIntl } from "react-intl";
|
|
3
3
|
import { Button } from "semantic-ui-react";
|
|
4
|
-
import
|
|
4
|
+
import ConfirmModal from "@truedat/core/components/ConfirmModal";
|
|
5
5
|
import { useElasticIndexDelete } from "@truedat/se/hooks/useElasticIndexes";
|
|
6
6
|
|
|
7
7
|
export default function DeleteIndexButton({ indexName }) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { useEffect } from "react";
|
|
2
2
|
import { useLocation, useMatch } from "react-router";
|
|
3
3
|
import { useDispatch, useSelector } from "react-redux";
|
|
4
|
-
import
|
|
4
|
+
import Loading from "@truedat/core/components/Loading";
|
|
5
5
|
import { clearSearch, fetchSearch, updateSearchPath } from "../routines";
|
|
6
6
|
|
|
7
7
|
export default function SearchLoader() {
|
|
@@ -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 { useElasticIndexDelete } from "@truedat/se/hooks/useElasticIndexes";
|
|
4
5
|
import DeleteIndexButton from "../DeleteIndexButton";
|
|
5
6
|
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { render
|
|
1
|
+
import { renderWithIntl as render } from "@truedat/test/renderWithIntl";
|
|
2
|
+
import { waitForLoad } from "@truedat/test/waitForLoad";
|
|
2
3
|
import ElasticIndexes from "../ElasticIndexes";
|
|
3
4
|
|
|
4
5
|
jest.mock("@truedat/se/hooks/useElasticIndexes", () => {
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { render
|
|
1
|
+
import { renderWithIntl as render } from "@truedat/test/renderWithIntl";
|
|
2
|
+
import { waitForLoad } from "@truedat/test/waitForLoad";
|
|
2
3
|
import { SearchInput } from "../SearchInput";
|
|
3
4
|
|
|
4
5
|
describe("<SearchInput />", () => {
|
|
@@ -41,10 +41,6 @@ jest.mock(
|
|
|
41
41
|
return <div>ElasticIndexes</div>;
|
|
42
42
|
},
|
|
43
43
|
);
|
|
44
|
-
jest.mock("@truedat/core/components", () => ({
|
|
45
|
-
Unauthorized: () => <div>Unauthorized</div>,
|
|
46
|
-
...jest.requireActual("@truedat/core/components"),
|
|
47
|
-
}));
|
|
48
44
|
|
|
49
45
|
describe("<SearchRoutes />", () => {
|
|
50
46
|
it("renders correctly with default route", async () => {
|