@epam/ai-dial-shared 0.27.0-rc.3 → 0.27.0-rc.30
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.esm.js +5 -0
- package/package.json +3 -2
- package/src/types/features.d.ts +31 -30
- package/src/types/message-form-schema.d.ts +5 -2
package/index.esm.js
CHANGED
|
@@ -32,6 +32,7 @@ var Feature;
|
|
|
32
32
|
Feature["DisallowChangeAgent"] = "disallow-change-agent";
|
|
33
33
|
Feature["MarketplaceTableView"] = "marketplace-table-view";
|
|
34
34
|
Feature["HideUserSettings"] = "hide-user-settings";
|
|
35
|
+
Feature["AdvancedView"] = "advanced-view";
|
|
35
36
|
})(Feature || (Feature = {}));
|
|
36
37
|
const availableFeatures = {
|
|
37
38
|
[Feature.ConversationsSection]: true,
|
|
@@ -66,6 +67,7 @@ const availableFeatures = {
|
|
|
66
67
|
[Feature.DisallowChangeAgent]: true,
|
|
67
68
|
[Feature.MarketplaceTableView]: true,
|
|
68
69
|
[Feature.HideUserSettings]: true,
|
|
70
|
+
[Feature.AdvancedView]: true,
|
|
69
71
|
};
|
|
70
72
|
|
|
71
73
|
var Role;
|
|
@@ -114,6 +116,9 @@ var FormSchemaPropertyType;
|
|
|
114
116
|
(function (FormSchemaPropertyType) {
|
|
115
117
|
FormSchemaPropertyType["array"] = "array";
|
|
116
118
|
FormSchemaPropertyType["number"] = "number";
|
|
119
|
+
FormSchemaPropertyType["type"] = "integer";
|
|
120
|
+
FormSchemaPropertyType["string"] = "string";
|
|
121
|
+
FormSchemaPropertyType["boolean"] = "boolean";
|
|
117
122
|
})(FormSchemaPropertyType || (FormSchemaPropertyType = {}));
|
|
118
123
|
|
|
119
124
|
const validateFeature = (feature) => {
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@epam/ai-dial-shared",
|
|
3
3
|
"description": "Shared elements that support developing DIAL",
|
|
4
4
|
"homepage": "https://epam-rail.com",
|
|
5
|
-
"version": "0.27.0-rc.
|
|
5
|
+
"version": "0.27.0-rc.30",
|
|
6
6
|
"dependencies": {},
|
|
7
7
|
"type": "module",
|
|
8
8
|
"bugs": {
|
|
@@ -15,5 +15,6 @@
|
|
|
15
15
|
"directory": "libs/shared"
|
|
16
16
|
},
|
|
17
17
|
"module": "./index.esm.js",
|
|
18
|
-
"main": "./index.esm.js"
|
|
18
|
+
"main": "./index.esm.js",
|
|
19
|
+
"types": "./index.esm.d.ts"
|
|
19
20
|
}
|
package/src/types/features.d.ts
CHANGED
|
@@ -1,35 +1,36 @@
|
|
|
1
1
|
export declare enum Feature {
|
|
2
|
-
ConversationsSection = "conversations-section"
|
|
3
|
-
PromptsSection = "prompts-section"
|
|
4
|
-
TopSettings = "top-settings"
|
|
5
|
-
TopClearConversation = "top-clear-conversation"
|
|
6
|
-
TopChatInfo = "top-chat-info"
|
|
7
|
-
TopChatModelSettings = "top-chat-model-settings"
|
|
8
|
-
HideTopContextMenu = "hide-top-context-menu"
|
|
9
|
-
EmptyChatSettings = "empty-chat-settings"
|
|
10
|
-
HideEmptyChatChangeAgent = "hide-empty-chat-change-agent"
|
|
11
|
-
Header = "header"
|
|
12
|
-
Footer = "footer"
|
|
13
|
-
RequestApiKey = "request-api-key"
|
|
14
|
-
ReportAnIssue = "report-an-issue"
|
|
15
|
-
Likes = "likes"
|
|
16
|
-
ConversationsSharing = "conversations-sharing"
|
|
17
|
-
PromptsSharing = "prompts-sharing"
|
|
18
|
-
ApplicationsSharing = "applications-sharing"
|
|
19
|
-
InputFiles = "input-files"
|
|
20
|
-
InputLinks = "input-links"
|
|
21
|
-
AttachmentsManager = "attachments-manager"
|
|
2
|
+
ConversationsSection = "conversations-section",// Display conversations sidebar
|
|
3
|
+
PromptsSection = "prompts-section",// Display prompts sidebar
|
|
4
|
+
TopSettings = "top-settings",// Display conversation top header
|
|
5
|
+
TopClearConversation = "top-clear-conversation",// Display clear conversations button in chat top settings
|
|
6
|
+
TopChatInfo = "top-chat-info",// Display conversation info in top chat settings
|
|
7
|
+
TopChatModelSettings = "top-chat-model-settings",// Display change model settings button
|
|
8
|
+
HideTopContextMenu = "hide-top-context-menu",// Hide top context menu button
|
|
9
|
+
EmptyChatSettings = "empty-chat-settings",// Display settings for empty chat
|
|
10
|
+
HideEmptyChatChangeAgent = "hide-empty-chat-change-agent",// Hide empty chat "Change agent" button
|
|
11
|
+
Header = "header",// Display app header
|
|
12
|
+
Footer = "footer",// Display app footer
|
|
13
|
+
RequestApiKey = "request-api-key",// Display request API Key modal
|
|
14
|
+
ReportAnIssue = "report-an-issue",// Display report issue modal
|
|
15
|
+
Likes = "likes",// Display likes
|
|
16
|
+
ConversationsSharing = "conversations-sharing",// Display conversation sharing
|
|
17
|
+
PromptsSharing = "prompts-sharing",// Display prompts sharing
|
|
18
|
+
ApplicationsSharing = "applications-sharing",// Display applications sharing
|
|
19
|
+
InputFiles = "input-files",// Allow attach files to conversation
|
|
20
|
+
InputLinks = "input-links",// Allow attach links to conversation
|
|
21
|
+
AttachmentsManager = "attachments-manager",// Display attachments manager in conversation sidebar
|
|
22
22
|
ConversationsPublishing = "conversations-publishing",
|
|
23
23
|
PromptsPublishing = "prompts-publishing",
|
|
24
|
-
CustomLogo = "custom-logo"
|
|
25
|
-
HideNewConversation = "hide-new-conversation"
|
|
26
|
-
CustomApplications = "custom-applications"
|
|
27
|
-
MessageTemplates = "message-templates"
|
|
28
|
-
Marketplace = "marketplace"
|
|
29
|
-
QuickApps = "quick-apps"
|
|
30
|
-
CodeApps = "code-apps"
|
|
31
|
-
DisallowChangeAgent = "disallow-change-agent"
|
|
32
|
-
MarketplaceTableView = "marketplace-table-view"
|
|
33
|
-
HideUserSettings = "hide-user-settings"
|
|
24
|
+
CustomLogo = "custom-logo",// Enable setting for custom logo feature
|
|
25
|
+
HideNewConversation = "hide-new-conversation",// hide "New conversation" button
|
|
26
|
+
CustomApplications = "custom-applications",// custom applications
|
|
27
|
+
MessageTemplates = "message-templates",// message templates
|
|
28
|
+
Marketplace = "marketplace",// Enable Marketplace
|
|
29
|
+
QuickApps = "quick-apps",// Enable Quick apps
|
|
30
|
+
CodeApps = "code-apps",// Enable Code apps
|
|
31
|
+
DisallowChangeAgent = "disallow-change-agent",// Disallow "Change agent" button
|
|
32
|
+
MarketplaceTableView = "marketplace-table-view",// Enable table view in Marketplace
|
|
33
|
+
HideUserSettings = "hide-user-settings",// Hide user settings
|
|
34
|
+
AdvancedView = "advanced-view"
|
|
34
35
|
}
|
|
35
36
|
export declare const availableFeatures: Record<Feature, boolean>;
|
|
@@ -15,11 +15,14 @@ export interface FormSchemaButtonOption {
|
|
|
15
15
|
submit?: boolean;
|
|
16
16
|
};
|
|
17
17
|
}
|
|
18
|
-
export type MessageFormValueType = string[] | number | undefined;
|
|
18
|
+
export type MessageFormValueType = string[] | number | string | boolean | undefined;
|
|
19
19
|
export type MessageFormValue = Record<string, MessageFormValueType>;
|
|
20
20
|
export declare enum FormSchemaPropertyType {
|
|
21
21
|
array = "array",
|
|
22
|
-
number = "number"
|
|
22
|
+
number = "number",
|
|
23
|
+
type = "integer",
|
|
24
|
+
string = "string",
|
|
25
|
+
boolean = "boolean"
|
|
23
26
|
}
|
|
24
27
|
export interface FormSchemaProperty {
|
|
25
28
|
[DialSchemaProperties.DialWidget]?: FormSchemaPropertyWidget;
|