@progress/kendo-react-conversational-ui 7.2.4-develop.3 → 7.2.4-develop.4

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.
Files changed (93) hide show
  1. package/ViewItem.js +8 -0
  2. package/ViewItem.mjs +59 -0
  3. package/ai-prompt/AIPrompt.js +8 -0
  4. package/ai-prompt/AIPrompt.mjs +35 -0
  5. package/ai-prompt/AIPromptContent.js +8 -0
  6. package/ai-prompt/AIPromptContent.mjs +17 -0
  7. package/ai-prompt/AIPromptContext.js +8 -0
  8. package/ai-prompt/AIPromptContext.mjs +15 -0
  9. package/ai-prompt/AIPromptExpander.js +8 -0
  10. package/ai-prompt/AIPromptExpander.mjs +27 -0
  11. package/ai-prompt/AIPromptFooter.js +8 -0
  12. package/ai-prompt/AIPromptFooter.mjs +16 -0
  13. package/ai-prompt/AIPromptHeader.js +8 -0
  14. package/ai-prompt/AIPromptHeader.mjs +36 -0
  15. package/ai-prompt/views/AIPromptCommandsView.js +8 -0
  16. package/ai-prompt/views/AIPromptCommandsView.mjs +38 -0
  17. package/ai-prompt/views/AIPromptOutputView.js +8 -0
  18. package/ai-prompt/views/AIPromptOutputView.mjs +93 -0
  19. package/ai-prompt/views/AIPromptView.js +8 -0
  20. package/ai-prompt/views/AIPromptView.mjs +61 -0
  21. package/ai-prompt/views/AIPromptViewRender.js +8 -0
  22. package/ai-prompt/views/AIPromptViewRender.mjs +16 -0
  23. package/components/Action.js +8 -0
  24. package/components/Action.mjs +44 -0
  25. package/components/ActionGroup.js +8 -0
  26. package/components/ActionGroup.mjs +49 -0
  27. package/components/Attachment.js +8 -0
  28. package/components/Attachment.mjs +49 -0
  29. package/components/AttachmentGroup.js +8 -0
  30. package/components/AttachmentGroup.mjs +74 -0
  31. package/components/Chat.js +8 -0
  32. package/components/Chat.mjs +208 -0
  33. package/components/ChatMessage.js +8 -0
  34. package/components/ChatMessage.mjs +62 -0
  35. package/components/DateMarker.js +8 -0
  36. package/components/DateMarker.mjs +20 -0
  37. package/components/MessageGroup.js +8 -0
  38. package/components/MessageGroup.mjs +69 -0
  39. package/components/NewMessage.js +8 -0
  40. package/components/NewMessage.mjs +94 -0
  41. package/components/Toolbar.js +8 -0
  42. package/components/Toolbar.mjs +17 -0
  43. package/components/base/FocusableUponSelection.js +8 -0
  44. package/components/base/FocusableUponSelection.mjs +20 -0
  45. package/components/base/SelectableItemsContainer.js +8 -0
  46. package/components/base/SelectableItemsContainer.mjs +42 -0
  47. package/components/templates/HeroCard.js +8 -0
  48. package/components/templates/HeroCard.mjs +45 -0
  49. package/dist/cdn/js/kendo-react-conversational-ui.js +8 -5
  50. package/index.d.mts +811 -5
  51. package/index.d.ts +811 -23
  52. package/index.js +8 -5
  53. package/index.mjs +32 -876
  54. package/messages/index.js +8 -0
  55. package/messages/index.mjs +25 -0
  56. package/package-metadata.js +8 -0
  57. package/package-metadata.mjs +19 -0
  58. package/package.json +6 -6
  59. package/utils.js +8 -0
  60. package/utils.mjs +12 -0
  61. package/ChatPropsAndState.d.ts +0 -95
  62. package/Events.d.ts +0 -42
  63. package/ViewItem.d.ts +0 -61
  64. package/ai-prompt/AIPrompt.d.ts +0 -95
  65. package/ai-prompt/AIPromptContent.d.ts +0 -19
  66. package/ai-prompt/AIPromptContext.d.ts +0 -24
  67. package/ai-prompt/AIPromptExpander.d.ts +0 -10
  68. package/ai-prompt/AIPromptFooter.d.ts +0 -19
  69. package/ai-prompt/AIPromptHeader.d.ts +0 -36
  70. package/ai-prompt/views/AIPromptCommandsView.d.ts +0 -54
  71. package/ai-prompt/views/AIPromptOutputView.d.ts +0 -66
  72. package/ai-prompt/views/AIPromptView.d.ts +0 -26
  73. package/ai-prompt/views/AIPromptViewRender.d.ts +0 -23
  74. package/api/action.interface.d.ts +0 -35
  75. package/api/attachment.interface.d.ts +0 -36
  76. package/api/message.interface.d.ts +0 -60
  77. package/api/user.interface.d.ts +0 -27
  78. package/components/Action.d.ts +0 -23
  79. package/components/ActionGroup.d.ts +0 -27
  80. package/components/Attachment.d.ts +0 -28
  81. package/components/AttachmentGroup.d.ts +0 -27
  82. package/components/Chat.d.ts +0 -76
  83. package/components/ChatMessage.d.ts +0 -72
  84. package/components/DateMarker.d.ts +0 -18
  85. package/components/MessageGroup.d.ts +0 -29
  86. package/components/NewMessage.d.ts +0 -38
  87. package/components/Toolbar.d.ts +0 -13
  88. package/components/base/FocusableUponSelection.d.ts +0 -24
  89. package/components/base/SelectableItemsContainer.d.ts +0 -37
  90. package/components/templates/HeroCard.d.ts +0 -45
  91. package/messages/index.d.ts +0 -39
  92. package/package-metadata.d.ts +0 -9
  93. package/utils.d.ts +0 -9
@@ -0,0 +1,8 @@
1
+ /**
2
+ * @license
3
+ *-------------------------------------------------------------------------------------------
4
+ * Copyright © 2024 Progress Software Corporation. All rights reserved.
5
+ * Licensed under commercial license. See LICENSE.md in the package root for more information
6
+ *-------------------------------------------------------------------------------------------
7
+ */
8
+ "use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e="newMessage.sendButton",s="newMessage.optionsButton",t="newMessage.messageInput",a="avatar.alt",n="messageList.ariaLabel",o="aIPrompt.noOutputs",g={[e]:"Send",[s]:"Options",[t]:"Message",[a]:"Avatar",[n]:"Message list",[o]:"No output from AI available"};exports.aIPromptNoOutputs=o;exports.ariaLabelMessageList=n;exports.avatarAlt=a;exports.messages=g;exports.newMessageMessageInput=t;exports.newMessageOptionsButton=s;exports.newMessageSendButton=e;
@@ -0,0 +1,25 @@
1
+ /**
2
+ * @license
3
+ *-------------------------------------------------------------------------------------------
4
+ * Copyright © 2024 Progress Software Corporation. All rights reserved.
5
+ * Licensed under commercial license. See LICENSE.md in the package root for more information
6
+ *-------------------------------------------------------------------------------------------
7
+ */
8
+ "use client";
9
+ const s = "newMessage.sendButton", e = "newMessage.optionsButton", t = "newMessage.messageInput", a = "avatar.alt", n = "messageList.ariaLabel", o = "aIPrompt.noOutputs", g = {
10
+ [s]: "Send",
11
+ [e]: "Options",
12
+ [t]: "Message",
13
+ [a]: "Avatar",
14
+ [n]: "Message list",
15
+ [o]: "No output from AI available"
16
+ };
17
+ export {
18
+ o as aIPromptNoOutputs,
19
+ n as ariaLabelMessageList,
20
+ a as avatarAlt,
21
+ g as messages,
22
+ t as newMessageMessageInput,
23
+ e as newMessageOptionsButton,
24
+ s as newMessageSendButton
25
+ };
@@ -0,0 +1,8 @@
1
+ /**
2
+ * @license
3
+ *-------------------------------------------------------------------------------------------
4
+ * Copyright © 2024 Progress Software Corporation. All rights reserved.
5
+ * Licensed under commercial license. See LICENSE.md in the package root for more information
6
+ *-------------------------------------------------------------------------------------------
7
+ */
8
+ "use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e={name:"@progress/kendo-react-conversational-ui",productName:"KendoReact",productCodes:["KENDOUIREACT","KENDOUICOMPLETE"],publishDate:0,version:"",licensingDocsUrl:"https://www.telerik.com/kendo-react-ui/components/my-license/"};exports.packageMetadata=e;
@@ -0,0 +1,19 @@
1
+ /**
2
+ * @license
3
+ *-------------------------------------------------------------------------------------------
4
+ * Copyright © 2024 Progress Software Corporation. All rights reserved.
5
+ * Licensed under commercial license. See LICENSE.md in the package root for more information
6
+ *-------------------------------------------------------------------------------------------
7
+ */
8
+ "use client";
9
+ const e = {
10
+ name: "@progress/kendo-react-conversational-ui",
11
+ productName: "KendoReact",
12
+ productCodes: ["KENDOUIREACT", "KENDOUICOMPLETE"],
13
+ publishDate: 1709714513,
14
+ version: "",
15
+ licensingDocsUrl: "https://www.telerik.com/kendo-react-ui/components/my-license/"
16
+ };
17
+ export {
18
+ e as packageMetadata
19
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@progress/kendo-react-conversational-ui",
3
- "version": "7.2.4-develop.3",
3
+ "version": "7.2.4-develop.4",
4
4
  "description": "React Chat component allows the user to participate in chat sessions with users or chat bots. KendoReact Conversational UI components",
5
5
  "author": "Progress",
6
6
  "license": "SEE LICENSE IN LICENSE.md",
@@ -23,11 +23,11 @@
23
23
  "sideEffects": false,
24
24
  "peerDependencies": {
25
25
  "@progress/kendo-licensing": "^1.3.4",
26
- "@progress/kendo-react-buttons": "7.2.4-develop.3",
27
- "@progress/kendo-react-common": "7.2.4-develop.3",
28
- "@progress/kendo-react-intl": "7.2.4-develop.3",
29
- "@progress/kendo-react-inputs": "7.2.4-develop.3",
30
- "@progress/kendo-react-layout": "7.2.4-develop.3",
26
+ "@progress/kendo-react-buttons": "7.2.4-develop.4",
27
+ "@progress/kendo-react-common": "7.2.4-develop.4",
28
+ "@progress/kendo-react-intl": "7.2.4-develop.4",
29
+ "@progress/kendo-react-inputs": "7.2.4-develop.4",
30
+ "@progress/kendo-react-layout": "7.2.4-develop.4",
31
31
  "@progress/kendo-svg-icons": "^2.1.0",
32
32
  "react": "^16.8.2 || ^17.0.0 || ^18.0.0",
33
33
  "react-dom": "^16.8.2 || ^17.0.0 || ^18.0.0"
package/utils.js ADDED
@@ -0,0 +1,8 @@
1
+ /**
2
+ * @license
3
+ *-------------------------------------------------------------------------------------------
4
+ * Copyright © 2024 Progress Software Corporation. All rights reserved.
5
+ * Licensed under commercial license. See LICENSE.md in the package root for more information
6
+ *-------------------------------------------------------------------------------------------
7
+ */
8
+ "use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=(t,o)=>t&&o.author&&t.id===o.author.id;exports.isAuthor=e;
package/utils.mjs ADDED
@@ -0,0 +1,12 @@
1
+ /**
2
+ * @license
3
+ *-------------------------------------------------------------------------------------------
4
+ * Copyright © 2024 Progress Software Corporation. All rights reserved.
5
+ * Licensed under commercial license. See LICENSE.md in the package root for more information
6
+ *-------------------------------------------------------------------------------------------
7
+ */
8
+ "use client";
9
+ const i = (t, o) => t && o.author && t.id === o.author.id;
10
+ export {
11
+ i as isAuthor
12
+ };
@@ -1,95 +0,0 @@
1
- /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2024 Progress Software Corporation. All rights reserved.
3
- * Licensed under commercial license. See LICENSE.md in the package root for more information
4
- *-------------------------------------------------------------------------------------------*/
5
- import { Message, User, ChatActionExecuteEvent, ChatMessageSendEvent, ChatToolbarActionExecuteEvent } from '.';
6
- import { ChatMessageProps, ChatMessageTemplateProps } from './components/ChatMessage';
7
- /**
8
- * Represents a Chat message box.
9
- */
10
- export interface ChatMessageBoxProps {
11
- /**
12
- * Sets the input message of the Chat component.
13
- */
14
- messageInput: JSX.Element;
15
- /**
16
- * Sets the toolbar button of the Chat component.
17
- */
18
- toolbarButton: JSX.Element;
19
- /**
20
- * Sets the send button of the Chat component.
21
- */
22
- sendButton: JSX.Element;
23
- }
24
- export interface ChatProps {
25
- /**
26
- * Sets a class of the Chat DOM element.
27
- */
28
- className?: string;
29
- /**
30
- * Sets the messages of the Chat.
31
- */
32
- messages: Message[];
33
- /**
34
- * Sets the [`User`]({% slug api_conversational-ui %}) instance for the local user. The User ID identifies messages that are authored by the local user.
35
- */
36
- user: User;
37
- /**
38
- * A React functional or class component which is used as a message template. The corresponding [`message`]({% slug api_conversational-ui_message %}) is passed to the component as a property by the name `item`.
39
- */
40
- messageTemplate?: React.ComponentType<ChatMessageTemplateProps>;
41
- /**
42
- * A React functional or class component which is used as an attachment template ([see example]({% slug attachments_chat %}#toc-attachment-templates)). The corresponding [`attachment`]({% slug api_conversational-ui_attachment %}) is passed to the component as a property by the name `item`.
43
- */
44
- attachmentTemplate?: any;
45
- /**
46
- * Sets the width of the Chat.
47
- */
48
- width?: string | number;
49
- /**
50
- * Determines if the toolbar will be rendered.
51
- */
52
- showToolbar?: any;
53
- /**
54
- * Renders a toolbar inside the Chat.
55
- */
56
- toolbar?: any;
57
- /**
58
- * Fires when the user types a message and clicks the **Send** button or presses **Enter**. Emits the [`MessageSendEvent`]({% slug api_conversational-ui_chatmessagesendevent %}).
59
- *
60
- * > The Chat is not automatically updated with the new message.
61
- */
62
- onMessageSend?: (event: ChatMessageSendEvent) => void;
63
- /**
64
- * Fires when the user clicks a quick action button. The Chat internally handles the `reply`, `openUrl`, and `call` [known actions]({% slug api_conversational-ui_actiontype %}). Emits the [`ExecuteActionEvent`]({% slug api_conversational-ui_chatactionexecuteevent %}). The event is preventable. If `preventDefault` is called, the built-in action will be suppressed.
65
- */
66
- onActionExecute?: (event: ChatActionExecuteEvent) => void;
67
- /**
68
- * Fires when the user clicks the button to show or hide the toolbar.
69
- */
70
- onToolbarActionExecute?: (event: ChatToolbarActionExecuteEvent) => void;
71
- /**
72
- * Sets the direction of the Chat component.
73
- */
74
- dir?: string;
75
- /**
76
- * The text which is visible inside the new message input when the message input is empty.
77
- */
78
- placeholder?: string;
79
- /**
80
- * Enables the customization or the override of the default message box item in the Conversational UI
81
- * ([see example]({% slug custom-rendering_chat %})).
82
- */
83
- messageBox?: React.ComponentType<ChatMessageBoxProps>;
84
- /**
85
- * Represents the ChatMessage component.
86
- */
87
- message?: React.ComponentType<ChatMessageProps>;
88
- }
89
- /**
90
- * @hidden
91
- */
92
- export interface ChatState {
93
- selectedItemIndex: number | null;
94
- isFirstRender: boolean;
95
- }
package/Events.d.ts DELETED
@@ -1,42 +0,0 @@
1
- /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2024 Progress Software Corporation. All rights reserved.
3
- * Licensed under commercial license. See LICENSE.md in the package root for more information
4
- *-------------------------------------------------------------------------------------------*/
5
- import { Chat, Action, Message, HeroCard } from '.';
6
- import { BaseEvent } from '@progress/kendo-react-common';
7
- /**
8
- * The arguments for the `actionexecute` event of the hero card.
9
- */
10
- export interface HeroCardActionExecuteEvent extends BaseEvent<HeroCard> {
11
- /**
12
- * The executed action.
13
- */
14
- action: Action;
15
- }
16
- /**
17
- * The arguments for the `actionexecute` event of the Chat.
18
- */
19
- export interface ChatActionExecuteEvent extends BaseEvent<Chat> {
20
- /**
21
- * The executed action.
22
- */
23
- action: Action;
24
- }
25
- /**
26
- * The arguments for the `messagesend` event of the Chat.
27
- */
28
- export interface ChatMessageSendEvent extends BaseEvent<Chat> {
29
- /**
30
- * The new message.
31
- */
32
- message: Message;
33
- }
34
- /**
35
- * The arguments for the `toolbaractionexecute` event of the Chat.
36
- */
37
- export interface ChatToolbarActionExecuteEvent extends BaseEvent<Chat> {
38
- /**
39
- * The new toolbarShow value.
40
- */
41
- show: boolean;
42
- }
package/ViewItem.d.ts DELETED
@@ -1,61 +0,0 @@
1
- /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2024 Progress Software Corporation. All rights reserved.
3
- * Licensed under commercial license. See LICENSE.md in the package root for more information
4
- *-------------------------------------------------------------------------------------------*/
5
- import { Message, User, Action, Attachment, AttachmentLayout } from '.';
6
- /**
7
- * @hidden
8
- */
9
- export interface Selectable {
10
- selectionIndex: number;
11
- }
12
- /**
13
- * Represents the data item of a single `Message`.
14
- */
15
- export interface MessageModel extends Message, Selectable {
16
- }
17
- /**
18
- * @hidden
19
- */
20
- export interface MessageGroup {
21
- type: 'message-group';
22
- messages: MessageModel[];
23
- author: User;
24
- timestamp: Date;
25
- trackBy: any;
26
- }
27
- /**
28
- * @hidden
29
- */
30
- export interface AttachmentGroup extends Selectable {
31
- type: 'attachment-group';
32
- attachments: Attachment[];
33
- attachmentLayout: AttachmentLayout;
34
- timestamp: Date;
35
- trackBy: any;
36
- }
37
- /**
38
- * @hidden
39
- */
40
- export interface ActionGroup extends Selectable {
41
- type: 'action-group';
42
- actions?: Action[];
43
- timestamp: Date;
44
- trackBy: any;
45
- }
46
- /**
47
- * @hidden
48
- */
49
- export interface DateMarker {
50
- type: 'date-marker';
51
- timestamp: Date;
52
- trackBy: any;
53
- }
54
- /**
55
- * @hidden
56
- */
57
- export type ViewItem = MessageGroup | AttachmentGroup | ActionGroup | DateMarker;
58
- /**
59
- * @hidden
60
- */
61
- export declare const convertMsgsToViewItems: (messages: MessageModel[]) => ViewItem[];
@@ -1,95 +0,0 @@
1
- /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2024 Progress Software Corporation. All rights reserved.
3
- * Licensed under commercial license. See LICENSE.md in the package root for more information
4
- *-------------------------------------------------------------------------------------------*/
5
- import React from 'react';
6
- import { AIPromptToolbarItemInterface } from './AIPromptHeader';
7
- import { promptViewDefaults } from './views/AIPromptView';
8
- import { outputViewDefaults } from './views/AIPromptOutputView';
9
- import { CommandInterface, commandsViewDefaults } from './views/AIPromptCommandsView';
10
- /**
11
- * The props of the AIPrompt component.
12
- */
13
- export interface AIPromptProps {
14
- /**
15
- * The styles that are applied to the component.
16
- */
17
- style?: React.CSSProperties;
18
- /**
19
- * Name of the active view.
20
- */
21
- activeView: typeof promptViewDefaults.name | typeof outputViewDefaults.name | typeof commandsViewDefaults.name | string;
22
- /**
23
- * Collection with items that will override the default Toolbar items.
24
- */
25
- toolbarItems?: (AIPromptToolbarItemInterface | React.ReactNode)[];
26
- /**
27
- * The collection of generated prompt outputs that will be rendered in the Output view.
28
- */
29
- outputs?: AIPromptOutputInterface[];
30
- /**
31
- * Specifies the AIPrompt children elements.
32
- */
33
- children?: React.ReactNode;
34
- /**
35
- * The placeholder text for the Prompt view textarea.
36
- */
37
- promptPlaceholder?: string;
38
- /**
39
- * Represents the `dir` HTML attribute.
40
- */
41
- dir?: string;
42
- /**
43
- * The onActiveViewChange event handler of the KendoReact AIPrompt component.
44
- * Fires when active view is changed. Exposes the name of the new active view as event data.
45
- */
46
- onActiveViewChange?: (name: string) => void;
47
- /**
48
- * The onCommandExecute event handler of the KendoReact AIPrompt component.
49
- * Fires each time the user clicks a command in the Command view. Exposes the selected command as event data.
50
- */
51
- onCommandExecute?: (command: CommandInterface) => void;
52
- /**
53
- * The onPromptRequest event handler of the KendoReact AIPrompt component.
54
- * Fires when user clicks the `Generate` button in the Prompt view.
55
- */
56
- onPromptRequest?: (prompt?: string, outputItem?: AIPromptOutputInterface) => void;
57
- }
58
- export interface AIPromptOutputInterface {
59
- /**
60
- * The unique identifier of the command.
61
- */
62
- id: string | number;
63
- /**
64
- * An optional custom title for the prompt output.
65
- */
66
- title?: string;
67
- /**
68
- * An optional custom sub title for the prompt output.
69
- */
70
- subTitle?: string;
71
- /**
72
- * The prompt that initiated the output generation.
73
- */
74
- prompt?: string;
75
- /**
76
- * The text content of the prompt output.
77
- */
78
- responseContent: string;
79
- /**
80
- * Specifies if the prompt generation was initiated via the retry button.
81
- */
82
- isRetry?: boolean;
83
- /**
84
- * The prompt output rating.
85
- */
86
- ratingType?: string;
87
- /**
88
- * Optionally specifies a command, if the prompt generation was triggered via a command.
89
- */
90
- command?: CommandInterface;
91
- }
92
- /**
93
- * Represents the KendoReact AIPrompt component.
94
- */
95
- export declare const AIPrompt: (props: AIPromptProps) => import("react/jsx-runtime").JSX.Element;
@@ -1,19 +0,0 @@
1
- /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2024 Progress Software Corporation. All rights reserved.
3
- * Licensed under commercial license. See LICENSE.md in the package root for more information
4
- *-------------------------------------------------------------------------------------------*/
5
- import React from 'react';
6
- /**
7
- * The props of the AIPromptContent component.
8
- */
9
- interface AIPromptContentProps {
10
- /**
11
- * Specifies the AIPromptContent children elements.
12
- */
13
- children?: React.ReactNode;
14
- }
15
- /**
16
- * Represents the KendoReact AIPromptContent component.
17
- */
18
- export declare const AIPromptContent: React.ForwardRefExoticComponent<AIPromptContentProps & React.RefAttributes<HTMLDivElement>>;
19
- export {};
@@ -1,24 +0,0 @@
1
- /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2024 Progress Software Corporation. All rights reserved.
3
- * Licensed under commercial license. See LICENSE.md in the package root for more information
4
- *-------------------------------------------------------------------------------------------*/
5
- import React from 'react';
6
- import { AIPromptOutputInterface } from './AIPrompt';
7
- import { CommandInterface } from './views/AIPromptCommandsView';
8
- /**
9
- * @hidden
10
- */
11
- interface AIPromptContextInterface {
12
- activeView?: string;
13
- onPromptRequest?: (prompt?: string, outputItem?: AIPromptOutputInterface) => void;
14
- onCommandExecute?: (command: CommandInterface) => void;
15
- }
16
- /**
17
- * @hidden
18
- */
19
- export declare const AIPromptContext: React.Context<[AIPromptContextInterface, any]>;
20
- /**
21
- * @hidden
22
- */
23
- export declare const useAIPromptContext: () => [AIPromptContextInterface, any];
24
- export {};
@@ -1,10 +0,0 @@
1
- /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2024 Progress Software Corporation. All rights reserved.
3
- * Licensed under commercial license. See LICENSE.md in the package root for more information
4
- *-------------------------------------------------------------------------------------------*/
5
- import React from 'react';
6
- export interface AIPromptExpanderProps {
7
- children?: React.ReactNode;
8
- title: string;
9
- }
10
- export declare const AIPromptExpander: (props: AIPromptExpanderProps) => import("react/jsx-runtime").JSX.Element;
@@ -1,19 +0,0 @@
1
- /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2024 Progress Software Corporation. All rights reserved.
3
- * Licensed under commercial license. See LICENSE.md in the package root for more information
4
- *-------------------------------------------------------------------------------------------*/
5
- import React from 'react';
6
- /**
7
- * The props of the AIPromptFooter component.
8
- */
9
- interface AIPromptFooterProps {
10
- /**
11
- * Specifies the AIPromptFooter children elements.
12
- */
13
- children?: React.ReactNode;
14
- }
15
- /**
16
- * Represents the KendoReact AIPromptFooter component.
17
- */
18
- export declare const AIPromptFooter: (props: AIPromptFooterProps) => import("react/jsx-runtime").JSX.Element;
19
- export {};
@@ -1,36 +0,0 @@
1
- /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2024 Progress Software Corporation. All rights reserved.
3
- * Licensed under commercial license. See LICENSE.md in the package root for more information
4
- *-------------------------------------------------------------------------------------------*/
5
- import React from 'react';
6
- import { SVGIcon } from '@progress/kendo-svg-icons';
7
- /**
8
- * An interface for the AIPromptToolbarItem.
9
- */
10
- export interface AIPromptToolbarItemInterface {
11
- /**
12
- * Defines the name of the view witch is related to.
13
- */
14
- name: string;
15
- /**
16
- * Defines the svgIcon used in the Toolbar button.
17
- */
18
- buttonIcon?: SVGIcon;
19
- /**
20
- * Defines the text used in the Toolbar button.
21
- */
22
- buttonText?: string;
23
- }
24
- /**
25
- * @hidden
26
- */
27
- interface AIPromptHeaderProps {
28
- activeView: string;
29
- toolbarItems: (AIPromptToolbarItemInterface | React.ReactNode)[];
30
- activeViewChange?: (viewName: string) => void;
31
- }
32
- /**
33
- * @hidden
34
- */
35
- export declare const PromptHeader: (props: AIPromptHeaderProps) => import("react/jsx-runtime").JSX.Element;
36
- export {};
@@ -1,54 +0,0 @@
1
- /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2024 Progress Software Corporation. All rights reserved.
3
- * Licensed under commercial license. See LICENSE.md in the package root for more information
4
- *-------------------------------------------------------------------------------------------*/
5
- import { AIPromptToolbarItemInterface } from '../AIPromptHeader';
6
- import { SVGIcon } from '@progress/kendo-react-common';
7
- /**
8
- * The props of the AIPromptCommandsView component.
9
- */
10
- interface AIPromptCommandsViewProps {
11
- /**
12
- * The collection of commands that will be rendered in the Command view.
13
- */
14
- commands?: CommandInterface[];
15
- /**
16
- * Fires each time the user clicks over a Command view command. Exposes the selected command as event data.
17
- */
18
- onCommandExecute?: (command: CommandItemInterface) => void;
19
- }
20
- /**
21
- * An interface for the command in the Command view.
22
- */
23
- export interface CommandInterface extends CommandItemInterface {
24
- /**
25
- * Collection with nested commands.
26
- */
27
- children?: CommandItemInterface[];
28
- }
29
- /**
30
- * An interface for the command item.
31
- */
32
- export interface CommandItemInterface {
33
- /**
34
- * The unique identifier of the command.
35
- */
36
- id: string;
37
- /**
38
- * Specifies the command text.
39
- */
40
- text: string;
41
- /**
42
- * Specifies the name of the SVG icon that will be rendered for the command.
43
- */
44
- svgIcon?: SVGIcon;
45
- }
46
- /**
47
- * Specifies the default values for Commands view Toolbar.
48
- */
49
- export declare const commandsViewDefaults: AIPromptToolbarItemInterface;
50
- /**
51
- * The props of the AIPromptCommandsView component.
52
- */
53
- export declare const AIPromptCommandsView: (props: AIPromptCommandsViewProps) => import("react/jsx-runtime").JSX.Element;
54
- export {};
@@ -1,66 +0,0 @@
1
- /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2024 Progress Software Corporation. All rights reserved.
3
- * Licensed under commercial license. See LICENSE.md in the package root for more information
4
- *-------------------------------------------------------------------------------------------*/
5
- import React from 'react';
6
- import { AIPromptOutputInterface } from '../AIPrompt';
7
- import { AIPromptToolbarItemInterface } from '../AIPromptHeader';
8
- /**
9
- * The fields of the AIPromptOutputView card prop.
10
- */
11
- interface AIPromptCardInterface {
12
- /**
13
- * Custom template for AIPromptCard header.
14
- */
15
- header?: (props: AIPromptOutputInterface) => React.ReactNode;
16
- /**
17
- * Custom template for AIPromptCard body.
18
- */
19
- body?: (props: AIPromptOutputInterface) => React.ReactNode;
20
- /**
21
- * Custom template for AIPromptCard actions.
22
- */
23
- actions?: (props: AIPromptOutputInterface) => React.ReactNode;
24
- }
25
- /**
26
- * The props of the AIPromptOutputView component.
27
- */
28
- interface AIPromptOutputViewProps {
29
- /**
30
- * The collection of generated prompt outputs that will be rendered in the Output view.
31
- */
32
- outputs?: AIPromptOutputInterface[];
33
- /**
34
- * Represents a template that allows you to define custom Card fields for:
35
- * header
36
- * body
37
- * actions
38
- * The custom fields will override the default one.
39
- */
40
- outputCard?: AIPromptCardInterface;
41
- /**
42
- * Specifies if the rating buttons in each card will be rendered.
43
- * By default, rating buttons are not rendered.
44
- *
45
- * @default false
46
- */
47
- showOutputRating?: boolean;
48
- onRetry?: (value: any) => void;
49
- /**
50
- * Fires each time the user clicks Copy button in the card.
51
- */
52
- onCopy?: () => void;
53
- /**
54
- * Fires each time the user clicks a rating button in the card.
55
- */
56
- onOutputRating?: () => void;
57
- }
58
- /**
59
- * Specifies the default values for Output view Toolbar.
60
- */
61
- export declare const outputViewDefaults: AIPromptToolbarItemInterface;
62
- /**
63
- * Represents the KendoReact AIPromptOutputView component.
64
- */
65
- export declare const AIPromptOutputView: (props: AIPromptOutputViewProps) => import("react/jsx-runtime").JSX.Element;
66
- export {};
@@ -1,26 +0,0 @@
1
- /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2024 Progress Software Corporation. All rights reserved.
3
- * Licensed under commercial license. See LICENSE.md in the package root for more information
4
- *-------------------------------------------------------------------------------------------*/
5
- import { AIPromptToolbarItemInterface } from '../AIPromptHeader';
6
- import { ButtonProps } from '@progress/kendo-react-buttons';
7
- import { TextAreaProps } from '@progress/kendo-react-inputs';
8
- import { CustomComponent } from '@progress/kendo-react-common';
9
- /**
10
- * @hidden
11
- */
12
- interface AIPromptViewProps {
13
- promptInput?: CustomComponent<TextAreaProps>;
14
- generateButton?: CustomComponent<ButtonProps>;
15
- promptValue?: string;
16
- promptSuggestions?: string[];
17
- }
18
- /**
19
- * Specifies the default values for Prompt view Toolbar.
20
- */
21
- export declare const promptViewDefaults: AIPromptToolbarItemInterface;
22
- /**
23
- * The props of the AIPromptCommandsView component.
24
- */
25
- export declare const AIPromptView: (props: AIPromptViewProps) => import("react/jsx-runtime").JSX.Element;
26
- export {};