@epam/statgpt-conversation-view 0.2.0-rc.9 → 0.2.0
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/index.d.ts +5 -1
- package/index.js +8 -39
- package/index.mjs +5542 -5439
- package/models/advance-view-styles.d.ts +0 -1
- package/models/attachments-styles.d.ts +6 -0
- package/models/attachments.d.ts +3 -0
- package/models/filters.d.ts +1 -0
- package/models/message.d.ts +1 -0
- package/models/titles.d.ts +1 -0
- package/package.json +13 -9
- package/types/actions.d.ts +1 -1
- package/types/texts.d.ts +13 -0
- package/utils/attachments/attachment-parser.d.ts +1 -0
- package/utils/attachments/unwrap-markdown-code.d.ts +4 -0
- package/utils/conversation.d.ts +3 -0
- package/utils/errors.d.ts +14 -0
- package/utils/mergeClasses.d.ts +2 -0
- package/index.css +0 -1
|
@@ -19,6 +19,12 @@ export interface AttachmentsStyles {
|
|
|
19
19
|
isDisplayDatasetIcon?: boolean;
|
|
20
20
|
isDownloadDescriptionVisible?: boolean;
|
|
21
21
|
downloadTitles?: DownloadTitles;
|
|
22
|
+
codeAttachmentContainerClassName?: string;
|
|
23
|
+
copyTitle?: string;
|
|
24
|
+
copiedTitle?: string;
|
|
25
|
+
copyIcon?: ReactNode;
|
|
26
|
+
copiedIcon?: ReactNode;
|
|
27
|
+
copiedTooltip?: string;
|
|
22
28
|
}
|
|
23
29
|
export interface ChartingStyles {
|
|
24
30
|
colors?: string[];
|
package/models/attachments.d.ts
CHANGED
|
@@ -14,6 +14,9 @@ export interface CustomGridAttachment extends Attachment {
|
|
|
14
14
|
export interface CustomChartAttachmentType extends Attachment {
|
|
15
15
|
charting_data?: ChartingData;
|
|
16
16
|
}
|
|
17
|
+
export interface CustomCodeAttachment extends Attachment {
|
|
18
|
+
language?: string;
|
|
19
|
+
}
|
|
17
20
|
export interface AttachmentsProps {
|
|
18
21
|
currentDataQuery?: DataQuery;
|
|
19
22
|
dataQueries?: DataQuery[];
|
package/models/filters.d.ts
CHANGED
package/models/message.d.ts
CHANGED
package/models/titles.d.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,15 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@epam/statgpt-conversation-view",
|
|
3
|
-
"version": "0.2.0
|
|
3
|
+
"version": "0.2.0",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"dependencies": {
|
|
6
|
-
"react": "^19.1.0",
|
|
7
6
|
"classnames": "^2.5.1",
|
|
8
|
-
"@epam/ai-dial-shared": "^0.
|
|
7
|
+
"@epam/ai-dial-shared": "^0.43.3",
|
|
9
8
|
"@tabler/icons-react": "^3.34.1",
|
|
10
|
-
"@epam/statgpt-shared-toolkit": "0.2.0
|
|
11
|
-
"@epam/statgpt-ui-components": "0.2.0
|
|
12
|
-
"@epam/statgpt-sdmx-toolkit": "0.2.0
|
|
9
|
+
"@epam/statgpt-shared-toolkit": "0.2.0",
|
|
10
|
+
"@epam/statgpt-ui-components": "0.2.0",
|
|
11
|
+
"@epam/statgpt-sdmx-toolkit": "0.2.0",
|
|
13
12
|
"react-window": "^1.8.11",
|
|
14
13
|
"react-virtualized-auto-sizer": "^1.0.26",
|
|
15
14
|
"ag-grid-community": "33.3.2",
|
|
@@ -17,14 +16,19 @@
|
|
|
17
16
|
"@floating-ui/react": "^0.27.14",
|
|
18
17
|
"echarts": "^5.6.0",
|
|
19
18
|
"echarts-for-react": "^3.0.2",
|
|
20
|
-
"@epam/statgpt-dial-toolkit": "0.2.0
|
|
19
|
+
"@epam/statgpt-dial-toolkit": "0.2.0",
|
|
21
20
|
"react-markdown": "^10.1.0",
|
|
22
21
|
"remark-gfm": "^4.0.1",
|
|
23
|
-
"@epam/statgpt-conversation-list": "0.2.0
|
|
22
|
+
"@epam/statgpt-conversation-list": "0.2.0",
|
|
24
23
|
"flatpickr": "4.6.13",
|
|
25
24
|
"react-flatpickr": "^4.0.11",
|
|
26
25
|
"date-fns": "^4.1.0",
|
|
27
|
-
"lodash": "^4.17.
|
|
26
|
+
"lodash": "^4.17.23",
|
|
27
|
+
"tailwind-merge": "^3.4.0",
|
|
28
|
+
"@monaco-editor/react": "^4.7.0"
|
|
29
|
+
},
|
|
30
|
+
"peerDependencies": {
|
|
31
|
+
"react": "^19.2.1"
|
|
28
32
|
},
|
|
29
33
|
"exports": {
|
|
30
34
|
".": {
|
package/types/actions.d.ts
CHANGED
|
@@ -11,5 +11,5 @@ export type GetBucket = () => Promise<{
|
|
|
11
11
|
}>;
|
|
12
12
|
export type UpdateConversation = (conversationId: string, request: UpdateConversationRequest) => Promise<ConversationInfo>;
|
|
13
13
|
export type getConstraints = (urn: string, filters?: SeriesFilterDto[], timeRange?: TimeRange) => Promise<StructuralMetaData>;
|
|
14
|
-
export type RateResponse = (id: string, rate: boolean) => Promise<void>;
|
|
14
|
+
export type RateResponse = (id: string, rate: boolean, deploymentId: string) => Promise<void>;
|
|
15
15
|
export type PutOnboardingFile = (fileName: string, filePath: string, fileData: OnboardingFileSchema) => Promise<Entity | null>;
|
package/types/texts.d.ts
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { ExceededLimit } from '../../../dial-toolkit/src/index';
|
|
2
|
+
import { ReactNode } from 'react';
|
|
3
|
+
export interface StatusMessages {
|
|
4
|
+
assistantUnavailable: ReactNode;
|
|
5
|
+
serverError: string;
|
|
6
|
+
serverOverloaded: string;
|
|
7
|
+
contentFilterError: string;
|
|
8
|
+
getAssistantRestoreMessage: (date: string, time: string) => string;
|
|
9
|
+
getExceededLimitsMessage: (limits: ExceededLimit[]) => string;
|
|
10
|
+
}
|
|
11
|
+
export interface ConversationViewMessages {
|
|
12
|
+
statusMessages: StatusMessages;
|
|
13
|
+
}
|
|
@@ -9,3 +9,4 @@ export declare function isGridAttachment(attachment: Attachment): boolean;
|
|
|
9
9
|
export declare function isCustomGridAttachment(attachment: Attachment): boolean;
|
|
10
10
|
export declare function isCustomChartAttachment(attachment: Attachment): boolean;
|
|
11
11
|
export declare function isChartAttachment(attachment: Attachment): boolean;
|
|
12
|
+
export declare function isCustomCodeSampleAttachment(attachment: Attachment): boolean;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { ErrorContextBase, MessageStreamError } from '../../../dial-toolkit/src/index';
|
|
2
|
+
import { HttpError } from '../../../shared-toolkit/src/index';
|
|
3
|
+
import { StatusMessages } from '../types/texts';
|
|
4
|
+
export declare const throwIfMessageError: ({ error, statusMessages, }: {
|
|
5
|
+
error?: MessageStreamError;
|
|
6
|
+
statusMessages: StatusMessages;
|
|
7
|
+
}) => void;
|
|
8
|
+
export declare const resolveHttpStreamingError: ({ error, statusMessages, }: {
|
|
9
|
+
error: HttpError;
|
|
10
|
+
statusMessages: StatusMessages;
|
|
11
|
+
}) => {
|
|
12
|
+
errorMessage: string;
|
|
13
|
+
errorContext?: ErrorContextBase;
|
|
14
|
+
};
|
package/index.css
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
@tailwind base;@tailwind components;@tailwind utilities;
|