@truedat/ai 8.12.5 → 8.12.7
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 +3 -3
- package/src/components/__tests__/ConceptSuggestions.spec.js +1 -1
- package/src/components/__tests__/StructureSuggestions.spec.js +1 -1
- package/src/components/__tests__/SuggestLinkButton.spec.js +1 -1
- package/src/components/__tests__/TranslationModal.spec.js +1 -1
- package/src/components/actions/Action.js +1 -1
- package/src/components/actions/ActionActions.js +2 -1
- package/src/components/actions/ActionForm.js +1 -1
- package/src/components/actions/ActionsTable.js +1 -1
- package/src/components/assistant/AssistantChat.js +1 -1
- package/src/components/assistant/AssistantPageChat.js +1 -1
- package/src/components/assistant/__tests__/Assistant.spec.js +2 -1
- package/src/components/assistant/__tests__/AssistantChat.spec.js +2 -1
- package/src/components/assistant/__tests__/AssistantConversations.spec.js +2 -1
- package/src/components/prompts/PromptEditor.js +1 -1
- package/src/components/prompts/__tests__/PromptEditor.spec.js +2 -1
- package/src/components/prompts/__tests__/Prompts.spec.js +1 -1
- package/src/components/providers/ProviderEditor.js +1 -1
- package/src/components/providers/__tests__/Providers.spec.js +1 -1
- package/src/components/suggestions/SuggestionsWidget.js +1 -1
- package/src/components/suggestions/__tests__/SuggestionsWidget.spec.js +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@truedat/ai",
|
|
3
|
-
"version": "8.12.
|
|
3
|
+
"version": "8.12.7",
|
|
4
4
|
"description": "Truedat Web Artificial Intelligence package",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"module": "src/index.js",
|
|
@@ -53,7 +53,7 @@
|
|
|
53
53
|
"@testing-library/jest-dom": "^6.6.3",
|
|
54
54
|
"@testing-library/react": "^16.3.0",
|
|
55
55
|
"@testing-library/user-event": "^14.6.1",
|
|
56
|
-
"@truedat/test": "8.12.
|
|
56
|
+
"@truedat/test": "8.12.7",
|
|
57
57
|
"identity-obj-proxy": "^3.0.0",
|
|
58
58
|
"jest": "^29.7.0",
|
|
59
59
|
"redux-saga-test-plan": "^4.0.6"
|
|
@@ -83,5 +83,5 @@
|
|
|
83
83
|
"semantic-ui-react": "^3.0.0-beta.2",
|
|
84
84
|
"swr": "^2.3.3"
|
|
85
85
|
},
|
|
86
|
-
"gitHead": "
|
|
86
|
+
"gitHead": "dae06fd2f915163d5f1e7e3f26c414c8ee9bf055"
|
|
87
87
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { act, waitFor } from "@testing-library/react";
|
|
2
2
|
import { useParams, useLocation } from "react-router";
|
|
3
|
-
import { render } from "@truedat/test/
|
|
3
|
+
import { renderWithIntl as render } from "@truedat/test/renderWithIntl";
|
|
4
4
|
import { ConceptSelectorTable } from "@truedat/bg/concepts/relations/components/ConceptSelector";
|
|
5
5
|
import useAssistantSocket from "../assistant/hooks/useAssistantSocket";
|
|
6
6
|
import ThinkingOutLoud from "../ThinkingOutLoud";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { act, waitFor } from "@testing-library/react";
|
|
2
2
|
import { useParams, useLocation } from "react-router";
|
|
3
3
|
import { useSelector } from "react-redux";
|
|
4
|
-
import { render } from "@truedat/test/
|
|
4
|
+
import { renderWithIntl as render } from "@truedat/test/renderWithIntl";
|
|
5
5
|
import StructuresSearchResults from "@truedat/dd/components/StructuresSearchResults";
|
|
6
6
|
import useAssistantSocket from "../assistant/hooks/useAssistantSocket";
|
|
7
7
|
import ThinkingOutLoud from "../ThinkingOutLoud";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { fireEvent, screen, waitFor } from "@testing-library/react";
|
|
2
|
-
import { render } from "@truedat/test/
|
|
2
|
+
import { renderWithIntl as render } from "@truedat/test/renderWithIntl";
|
|
3
3
|
import { SuggestLinkButton } from "../SuggestLinkButton";
|
|
4
4
|
|
|
5
5
|
jest.mock("react-intl", () => ({
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { act, fireEvent, waitFor } from "@testing-library/react";
|
|
2
|
-
import { render } from "@truedat/test/
|
|
2
|
+
import { renderWithIntl as render } from "@truedat/test/renderWithIntl";
|
|
3
3
|
import TranslationModal from "../TranslationModal";
|
|
4
4
|
|
|
5
5
|
jest.mock("@truedat/ai/hooks/useTranslations", () => ({
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import _ from "lodash/fp";
|
|
2
2
|
import PropTypes from "prop-types";
|
|
3
3
|
import { useParams } from "react-router";
|
|
4
|
-
import
|
|
4
|
+
import Loading from "@truedat/core/components/Loading";
|
|
5
5
|
import { Header, Icon, Grid, Segment } from "semantic-ui-react";
|
|
6
6
|
import { useIntl } from "react-intl";
|
|
7
7
|
import { useAction } from "../../hooks/useActions";
|
|
@@ -4,7 +4,8 @@ import { Link } from "react-router";
|
|
|
4
4
|
import { linkTo, ACTIONS } from "@truedat/core/routes";
|
|
5
5
|
import { useNavigate } from "react-router";
|
|
6
6
|
import { Button, Icon } from "semantic-ui-react";
|
|
7
|
-
import
|
|
7
|
+
import ConfirmModal from "@truedat/core/components/ConfirmModal";
|
|
8
|
+
import GroupActions from "@truedat/core/components/GroupActions";
|
|
8
9
|
import { useActionDelete, useActionSetActive } from "../../hooks/useActions";
|
|
9
10
|
|
|
10
11
|
export const ConfirmToggleModal = ({ onConfirm, action: actionData }) => {
|
|
@@ -2,7 +2,7 @@ import _ from "lodash/fp";
|
|
|
2
2
|
import { lazy, useEffect, useState } from "react";
|
|
3
3
|
import PropTypes from "prop-types";
|
|
4
4
|
import { useNavigate } from "react-router";
|
|
5
|
-
import
|
|
5
|
+
import HistoryBackButton from "@truedat/core/components/HistoryBackButton";
|
|
6
6
|
import { Form, Label, Button } from "semantic-ui-react";
|
|
7
7
|
import { FormattedMessage, useIntl } from "react-intl";
|
|
8
8
|
import { linkTo } from "@truedat/core/routes";
|
|
@@ -3,7 +3,7 @@ import { FormattedMessage } from "react-intl";
|
|
|
3
3
|
import { Link } from "react-router";
|
|
4
4
|
import { Table, Header, Icon } from "semantic-ui-react";
|
|
5
5
|
import { linkTo } from "@truedat/core/routes";
|
|
6
|
-
import
|
|
6
|
+
import Loading from "@truedat/core/components/Loading";
|
|
7
7
|
import { columnDecorator } from "@truedat/core/services";
|
|
8
8
|
import { sortColumn as sortHandler } from "@truedat/core/services/sort";
|
|
9
9
|
import { DateDecorator } from "@truedat/core/services/columnDecorators";
|
|
@@ -9,7 +9,7 @@ import {
|
|
|
9
9
|
import PropTypes from "prop-types";
|
|
10
10
|
import { FormattedMessage, useIntl } from "react-intl";
|
|
11
11
|
import { Icon } from "semantic-ui-react";
|
|
12
|
-
import { MarkdownReader } from "@truedat/core/components";
|
|
12
|
+
import { MarkdownReader } from "@truedat/core/components/MarkdownReader";
|
|
13
13
|
import ThinkingOutLoud, { getSourceLabel } from "../ThinkingOutLoud";
|
|
14
14
|
|
|
15
15
|
const SCROLL_AT_BOTTOM_THRESHOLD = 50;
|
|
@@ -9,7 +9,7 @@ import {
|
|
|
9
9
|
import PropTypes from "prop-types";
|
|
10
10
|
import { FormattedMessage, useIntl } from "react-intl";
|
|
11
11
|
import { Icon } from "semantic-ui-react";
|
|
12
|
-
import { MarkdownReader } from "@truedat/core/components";
|
|
12
|
+
import { MarkdownReader } from "@truedat/core/components/MarkdownReader";
|
|
13
13
|
import ThinkingOutLoud, { getSourceLabel } from "../ThinkingOutLoud";
|
|
14
14
|
|
|
15
15
|
const SCROLL_AT_BOTTOM_THRESHOLD = 50;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
import { render
|
|
2
|
+
import { renderWithIntl as render } from "@truedat/test/renderWithIntl";
|
|
3
|
+
import { waitForLoad } from "@truedat/test/waitForLoad";
|
|
3
4
|
|
|
4
5
|
import Assistant from "../Assistant";
|
|
5
6
|
import useAssistantSocket from "../hooks/useAssistantSocket";
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
import { render
|
|
2
|
+
import { renderWithIntl as render } from "@truedat/test/renderWithIntl";
|
|
3
|
+
import { waitForLoad } from "@truedat/test/waitForLoad";
|
|
3
4
|
|
|
4
5
|
import AssistantChat from "../AssistantChat";
|
|
5
6
|
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import { fireEvent } 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
|
|
|
5
6
|
import AssistantConversations from "../AssistantConversations";
|
|
6
7
|
|
|
@@ -10,7 +10,7 @@ import {
|
|
|
10
10
|
Dropdown,
|
|
11
11
|
} from "semantic-ui-react";
|
|
12
12
|
import { FormProvider, useForm, Controller } from "react-hook-form";
|
|
13
|
-
import
|
|
13
|
+
import ConfirmModal from "@truedat/core/components/ConfirmModal";
|
|
14
14
|
import { useLanguage } from "@truedat/core/i18n";
|
|
15
15
|
import { usePromptResourceTypeOptions } from "../constants";
|
|
16
16
|
|
|
@@ -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 PromptEditor from "../PromptEditor";
|
|
5
6
|
|
|
6
7
|
jest.mock("@truedat/core/hooks", () => ({
|
|
@@ -11,7 +11,7 @@ import {
|
|
|
11
11
|
Dropdown,
|
|
12
12
|
} from "semantic-ui-react";
|
|
13
13
|
import { FormProvider, useForm, Controller } from "react-hook-form";
|
|
14
|
-
import
|
|
14
|
+
import ConfirmModal from "@truedat/core/components/ConfirmModal";
|
|
15
15
|
import { useAgentTypeOptions, useProviderTypeOptions } from "../constants";
|
|
16
16
|
import {
|
|
17
17
|
Openai,
|
|
@@ -14,7 +14,7 @@ import {
|
|
|
14
14
|
Popup,
|
|
15
15
|
} from "semantic-ui-react";
|
|
16
16
|
import { FormattedMessage, useIntl } from "react-intl";
|
|
17
|
-
import { MarkdownReader } from "@truedat/core/components";
|
|
17
|
+
import { MarkdownReader } from "@truedat/core/components/MarkdownReader";
|
|
18
18
|
import { useWebContext } from "@truedat/core/webContext";
|
|
19
19
|
import { useAgentLayerRun } from "../../hooks/useAgentLayerRun";
|
|
20
20
|
import { useAvailabilityCheck } from "../../hooks/useSuggestions";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { act, waitFor } from "@testing-library/react";
|
|
2
2
|
import userEvent from "@testing-library/user-event";
|
|
3
|
-
import { render } from "@truedat/test/
|
|
3
|
+
import { renderWithIntl as render } from "@truedat/test/renderWithIntl";
|
|
4
4
|
import useAssistantSocket from "../../assistant/hooks/useAssistantSocket";
|
|
5
5
|
import { useAgentLayerRun } from "../../../hooks/useAgentLayerRun";
|
|
6
6
|
import { useAvailabilityCheck } from "../../../hooks/useSuggestions";
|