@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.
@@ -1,4 +1,3 @@
1
1
  export interface AdvanceViewStyles {
2
2
  isShowShare?: boolean;
3
- isShowAgency?: boolean;
4
3
  }
@@ -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[];
@@ -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[];
@@ -70,4 +70,5 @@ export interface FiltersProps {
70
70
  updateConversation: UpdateConversation;
71
71
  updateDataQueries?: (dataQueries?: DataQuery[]) => void;
72
72
  limitMessages?: LimitMessages;
73
+ filterIconClassName?: string;
73
74
  }
@@ -9,6 +9,7 @@ export interface MessageStyles {
9
9
  export interface InputMessageStyles {
10
10
  inputContainerClass?: string;
11
11
  sendMessageIcon?: ReactNode;
12
+ retryIcon?: ReactNode;
12
13
  }
13
14
  export interface MessageActionIcons {
14
15
  copy?: ReactNode;
@@ -21,6 +21,7 @@ export interface ConversationViewTitles extends WelcomeViewTitles {
21
21
  close?: string;
22
22
  duplicate?: string;
23
23
  chart?: string;
24
+ codeSamples?: string;
24
25
  metadata?: string;
25
26
  noMetadata?: string;
26
27
  settings?: string;
package/package.json CHANGED
@@ -1,15 +1,14 @@
1
1
  {
2
2
  "name": "@epam/statgpt-conversation-view",
3
- "version": "0.2.0-rc.9",
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.34.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-rc.9",
11
- "@epam/statgpt-ui-components": "0.2.0-rc.9",
12
- "@epam/statgpt-sdmx-toolkit": "0.2.0-rc.9",
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-rc.9",
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-rc.9",
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.21"
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
  ".": {
@@ -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>;
@@ -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,4 @@
1
+ export declare function unwrapMarkdownCode(input: string): {
2
+ code: string;
3
+ language?: string;
4
+ };
@@ -0,0 +1,3 @@
1
+ import { Conversation } from '@epam/ai-dial-shared';
2
+ import { ErrorContextBase } from '../../../dial-toolkit/src/index';
3
+ export declare const updateConversationErrorContext: (conversation: Conversation, errorContext?: ErrorContextBase) => Conversation;
@@ -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
+ };
@@ -0,0 +1,2 @@
1
+ import { default as classNames } from 'classnames';
2
+ export declare function mergeClasses(...inputs: Parameters<typeof classNames>): string;
package/index.css DELETED
@@ -1 +0,0 @@
1
- @tailwind base;@tailwind components;@tailwind utilities;