@gooddata/sdk-ui-gen-ai 11.68.0-alpha.2 → 11.68.0-alpha.3
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/LICENSE +26 -4
- package/NOTICE +3 -3
- package/README.md +1 -1
- package/esm/components/ConfigContext.d.ts +50 -1
- package/esm/components/ConfigContext.d.ts.map +1 -1
- package/esm/components/ConversationDeleteDialog.d.ts +3 -8
- package/esm/components/ConversationDeleteDialog.d.ts.map +1 -1
- package/esm/components/ConversationDeleteDialog.js +3 -3
- package/esm/components/ConversationRenameDialog.d.ts +3 -8
- package/esm/components/ConversationRenameDialog.d.ts.map +1 -1
- package/esm/components/ConversationRenameDialog.js +2 -2
- package/esm/components/CustomizationContext.d.ts +3 -1
- package/esm/components/CustomizationContext.d.ts.map +1 -1
- package/esm/components/CustomizationProvider.d.ts.map +1 -1
- package/esm/components/CustomizationProvider.js +20 -0
- package/esm/components/GenAIChatConversations.d.ts.map +1 -1
- package/esm/components/GenAIChatConversations.js +2 -3
- package/esm/components/customized/ConversationDeleteDialog.d.ts +8 -0
- package/esm/components/customized/ConversationDeleteDialog.d.ts.map +1 -0
- package/esm/components/customized/ConversationDeleteDialog.js +11 -0
- package/esm/components/customized/ConversationRenameDialog.d.ts +8 -0
- package/esm/components/customized/ConversationRenameDialog.d.ts.map +1 -0
- package/esm/components/customized/ConversationRenameDialog.js +11 -0
- package/esm/components/customized/types.d.ts +81 -0
- package/esm/components/customized/types.d.ts.map +1 -1
- package/esm/components/messages/conversationContents/ConversationClarifyingAnswersContent.d.ts.map +1 -1
- package/esm/components/messages/conversationContents/ConversationClarifyingAnswersContent.js +2 -2
- package/esm/components/messages/conversationContents/ConversationClarifyingQuestionsContent.d.ts.map +1 -1
- package/esm/components/messages/conversationContents/ConversationClarifyingQuestionsContent.js +1 -1
- package/esm/index.d.ts +3 -1
- package/esm/index.d.ts.map +1 -1
- package/esm/index.js +2 -0
- package/esm/sdk-ui-gen-ai.d.ts +147 -1
- package/package.json +23 -23
- package/styles/css/main.css +3 -0
- package/styles/css/main.css.map +1 -1
- package/styles/css/messages.css +3 -0
- package/styles/css/messages.css.map +1 -1
- package/styles/scss/messages.scss +4 -0
package/LICENSE
CHANGED
|
@@ -1,7 +1,29 @@
|
|
|
1
|
-
|
|
1
|
+
GOODDATA GOODDATA.UI LIBRARY END USER LICENSE AGREEMENT
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
GoodData Corporation ("GoodData") provides this "GoodData.UI Library", hereafter referred to as the "Library", to you subject to the following terms and conditions. By using the Library you agree to the terms and conditions of this Agreement. If you do not agree with any of the following terms, then do not use the Library.
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
1. Use Rights. Subject to the restrictions below, you may download and modify the Library contents for your use solely for the purpose of creating applications related to Your use of the GoodData subscription services platform (“Application(s)”). Open source software components provided with or used by the Library are licensed to you under the terms of the applicable license agreements included with such open source software components, which accompany this GoodData.UI Library.
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
2. No Duty to Support; Reservation of Rights. You expressly acknowledge that GoodData has no duty or obligation to support the Library, or to provide updates or bug fixes to the Library and that GoodData otherwise reserves all rights not expressly granted to you hereunder in connection with Library.
|
|
8
|
+
|
|
9
|
+
3. Restrictions You agree that you will not (i) use the Library to create, design or develop any functionality other than as set forth above in Section 1; (ii) allow third parties other than those performing work solely on your behalf within the scope of the license herein to modify, create derivative works of, reverse engineer, reverse compile, or disassemble the Library; (iii) distribute, sell, lease, rent, lend, or sublicense any part of the Library to any third party except as incorporated into your Application; or (iv) upload or otherwise transmit any material containing software viruses or other computer code, files or programs designed to interrupt, destroy, or limit the functionality of any software or hardware.
|
|
10
|
+
|
|
11
|
+
The restrictions in this Section 3 shall not apply if and to the extent they contradict mandatory local law (including, but not limited to, law implementing the EC Software Directive) provided that, before you exercise any rights that you believe to be entitled to based on mandatory law, you provide GoodData with 30 days prior written notice and provide all reasonably requested information to allow GoodData to assess your claim and, at GoodData's sole discretion, to provide alternatives that reduce any adverse impact on GoodData's intellectual property or other rights.
|
|
12
|
+
|
|
13
|
+
4. GoodData Ownership. Except for those portions licensed to GoodData by third parties, GoodData retains ownership of the Library, including without limitation all copyrights and other intellectual property rights therein. You may not remove, delete or modify any of the GoodData copyright statements in the Library.
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
5. Trademarks. Your use of GoodData product names and trademarks shall comply with the branding guidelines that may be distributed by GoodData from time to time. You may not use GoodData product names and trademarks, however, except where GoodData provides you express, prior written permission to use such product names and trademarks. All other marks are the property of third parties subject to applicable use terms such entities may provide.
|
|
17
|
+
6. Term, Termination, and Changes. This Agreement shall continue as long as you are in compliance with the terms specified herein or until otherwise terminated. You and or GoodData each may terminate this Agreement for any reason at any time. This Agreement shall automatically terminate upon the expiration or termination of the agreement that governs your use of the GoodData subscription services. You agree, upon termination, to destroy all copies of the Library within your possession or control. The Limitations of Warranties, Liability and Indemnification sections set out in this Agreement shall survive any termination or expiration of this Agreement.
|
|
18
|
+
7. Limitations of Warranties and Liability
|
|
19
|
+
THE LIBRARY AND ITS SOURCE CODE IS PROVIDED "AS IS" WITHOUT ANY WARRANTIES OF ANY KIND. TO THE MAXIMUM EXTENT PERMITTED BY APPLICABLE LAW, GOODDATA DISCLAIMS ANY IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, ANY IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT OF INTELLECTUAL PROPERTY RIGHTS. YOU MAY BE ABLE TO EXERCISE ADDITIONAL WARRANTY RIGHTS OFFERED BY THIRD PARTY COMMERCIAL SOFTWARE VENDORS WHOSE COMPONENTS ARE USED BY THE LIBRARY. IN THOSE INSTANCES, YOUR SOLE REMEDY AND RECOURSE SHALL BE AGAINST THE LICENSORS OF SUCH COMMERCIAL SOFTWARE, AND NOT AGAINST GOODDATA.
|
|
20
|
+
|
|
21
|
+
TO THE MAXIMUM EXTENT PERMITTED BY APPLICABLE LAW, IN NO EVENT WILL GOODDATA BE LIABLE FOR ANY LOST PROFITS OR BUSINESS OPPORTUNITIES, LOSS OF USE, BUSINESS INTERRUPTION, LOSS OF DATA, OR ANY OTHER INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES ARISING OUT OF OR FROM LIBRARY OR YOUR USE OF THE LIBRARY, UNDER ANY THEORY OF LIABILITY, WHETHER BASED IN CONTRACT, TORT, NEGLIGENCE, PRODUCT LIABILITY, OR OTHERWISE. BECAUSE SOME JURISDICTIONS DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES, THE PRECEDING LIMITATION MAY NOT APPLY TO YOU. GOODDATA'S LIABILITY ARISING OUT OF LIBRARY PROVIDED HEREUNDER WILL NOT, IN ANY EVENT, EXCEED US$100.00.
|
|
22
|
+
|
|
23
|
+
THE FOREGOING LIMITATIONS SHALL APPLY TO THE MAXIMUM EXTENT PERMITTED BY APPLICABLE LAW, REGARDLESS OF WHETHER GOODDATA HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES AND REGARDLESS OF WHETHER ANY REMEDY FAILS OF ITS ESSENTIAL PURPOSE.
|
|
24
|
+
|
|
25
|
+
8. Export Control. The Library is provided subject to the U.S. Export Administration Regulations and the regulations of other jurisdictions (e.g., the European Union). Diversion contrary to applicable law is prohibited. Without limiting the foregoing, you agree that (i) you are not acting on behalf of any person who is a citizen, national, or resident of, or who is controlled by the government of any country to which the United States or other applicable government body has prohibited export transactions (e.g., Iran, North Korea, etc.); (ii) you are not acting on behalf of, any person or entity listed on a relevant list of persons to whom export is prohibited (e.g., the U.S. Treasury Department list of Specially Designated Nationals and Blocked Persons, the U.S. Commerce Department Denied Persons List or Entity List, etc.); and (iii) you will not use the Library for any purpose prohibited by applicable law.
|
|
26
|
+
|
|
27
|
+
9. Indemnification You agree to defend, indemnify and hold harmless GoodData, and any of its directors, officers, employees, affiliates, subsidiaries or agents, from and against any and all claims, losses, damages, liabilities and other expenses (including reasonable attorneys' fees), arising from or related to: i) your use of the Library; ii) any derivative works you create using Library source code, and iii) your breach of this Agreement.
|
|
28
|
+
|
|
29
|
+
10. Governing Law These terms are governed by the laws of the State of California and the United States of America without regard to conflict of laws principles. You may not assign any part of this Agreement without the prior written consent of GoodData. Any attempted assignment without consent shall be void. These terms constitute the entire agreement between you and GoodData with respect to the Library and supersede all prior written or oral communications, understandings and agreements. Any waiver of these terms must be in writing to be effective. If any provision of these terms is found to be invalid or unenforceable, the remaining terms will continue to be valid and enforceable to the fullest extent permitted by law.
|
package/NOTICE
CHANGED
|
@@ -11,9 +11,9 @@ This product includes a number of subcomponents with separate copyright notices
|
|
|
11
11
|
|
|
12
12
|
The following 3rd-party software packages may be used by or distributed with gooddata-ui-sdk. Any information relevant to third-party vendors listed below are collected using common, reasonable means.
|
|
13
13
|
|
|
14
|
-
Date generated: 2026-11-
|
|
14
|
+
Date generated: 2026-11-6
|
|
15
15
|
|
|
16
|
-
Revision ID:
|
|
16
|
+
Revision ID: d5b83a8355edc9eec2ad7787276b02a1a676cb3f
|
|
17
17
|
|
|
18
18
|
================================================================================
|
|
19
19
|
================================================================================
|
|
@@ -69383,4 +69383,4 @@ MIT
|
|
|
69383
69383
|
--------------------------------------------------------------------------------
|
|
69384
69384
|
--------------------------------------------------------------------------------
|
|
69385
69385
|
|
|
69386
|
-
Report Generated by FOSSA on 2026-11-
|
|
69386
|
+
Report Generated by FOSSA on 2026-11-6
|
package/README.md
CHANGED
|
@@ -134,4 +134,4 @@ ship in `styles/css/main.css`.
|
|
|
134
134
|
|
|
135
135
|
(C) 2017-2026 GoodData Corporation
|
|
136
136
|
|
|
137
|
-
This project is under commercial license. See [LICENSE](https://github.com/gooddata/gooddata-ui-sdk/blob/master/libs/sdk-ui-
|
|
137
|
+
This project is under commercial license. See [LICENSE](https://github.com/gooddata/gooddata-ui-sdk/blob/master/libs/sdk-ui-gen-ai/LICENSE).
|
|
@@ -11,23 +11,72 @@ export type ConfigContext = {
|
|
|
11
11
|
inputPlaceholder?: string;
|
|
12
12
|
};
|
|
13
13
|
/**
|
|
14
|
+
* Event passed to a link handler when the Gen AI assistant requests to open or copy a link.
|
|
15
|
+
*
|
|
14
16
|
* @public
|
|
15
17
|
*/
|
|
16
18
|
export type LinkHandlerEvent = {
|
|
19
|
+
/**
|
|
20
|
+
* Type of the linked object, or `setting` for a settings action.
|
|
21
|
+
*/
|
|
17
22
|
type: "setting" | "report" | GenAIObjectType;
|
|
23
|
+
/**
|
|
24
|
+
* Identifier of the linked object or draft, or the action identifier for a settings link.
|
|
25
|
+
*/
|
|
18
26
|
id: string;
|
|
27
|
+
/**
|
|
28
|
+
* Identifier of the workspace associated with the link.
|
|
29
|
+
*/
|
|
19
30
|
workspaceId: string;
|
|
31
|
+
/**
|
|
32
|
+
* Whether the interaction requests opening the link in a new tab.
|
|
33
|
+
*/
|
|
20
34
|
newTab: boolean;
|
|
35
|
+
/**
|
|
36
|
+
* Default URL of the linked item. May be relative to the application or absolute.
|
|
37
|
+
*/
|
|
21
38
|
itemUrl: string;
|
|
39
|
+
/**
|
|
40
|
+
* Prevents the default browser action of the originating interaction, such as native link navigation.
|
|
41
|
+
*/
|
|
22
42
|
preventDefault: () => void;
|
|
43
|
+
/**
|
|
44
|
+
* Identifier of the conversation associated with the link, when available.
|
|
45
|
+
*/
|
|
23
46
|
conversationId?: string;
|
|
47
|
+
/**
|
|
48
|
+
* Settings section to open. Provided for links to AI settings.
|
|
49
|
+
* - ai - Requested open ai section in settings
|
|
50
|
+
*/
|
|
24
51
|
section?: "ai";
|
|
52
|
+
/**
|
|
53
|
+
* Requested link action.
|
|
54
|
+
* - copy - Requested copy to clipboard action
|
|
55
|
+
* - open - Requested open link action
|
|
56
|
+
*/
|
|
57
|
+
action: "copy" | "open";
|
|
58
|
+
/**
|
|
59
|
+
* Dashboard definition matching `id` and `dashboardStatus`, when included in a dashboard link event.
|
|
60
|
+
*/
|
|
25
61
|
dashboard?: IDashboard;
|
|
62
|
+
/**
|
|
63
|
+
* Insights referenced by `dashboard`, using draft or persisted identifiers to match its status.
|
|
64
|
+
*/
|
|
26
65
|
insights?: IInsight[];
|
|
66
|
+
/**
|
|
67
|
+
* Dashboard link's open mode (`saved` or `draft`). Conversation links always use `draft`,
|
|
68
|
+
* including for already-saved dashboards.
|
|
69
|
+
*/
|
|
27
70
|
dashboardStatus?: "saved" | "draft";
|
|
71
|
+
/**
|
|
72
|
+
* Insight definition matching `id` and `visualizationStatus`, when included in a visualization link event.
|
|
73
|
+
*/
|
|
28
74
|
visualization?: IInsight;
|
|
75
|
+
/**
|
|
76
|
+
* Whether the visualization exists in metadata (`saved`) or is a generated draft that must be saved (`draft`).
|
|
77
|
+
* @remarks When copilot editing already saved visualization, its still get status draft.
|
|
78
|
+
*/
|
|
29
79
|
visualizationStatus?: "saved" | "draft";
|
|
30
|
-
action: "copy" | "open";
|
|
31
80
|
};
|
|
32
81
|
/**
|
|
33
82
|
* Mode of the Gen AI assistant.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ConfigContext.d.ts","sourceRoot":"","sources":["../../src/components/ConfigContext.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,iBAAiB,EAAsC,MAAM,OAAO,CAAC;AAEnF,OAAO,EAAE,KAAK,WAAW,EAAE,KAAK,eAAe,EAAE,KAAK,UAAU,EAAE,KAAK,QAAQ,EAAE,MAAM,qBAAqB,CAAC;AAE7G,MAAM,MAAM,aAAa,GAAG;IACxB,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B,WAAW,CAAC,EAAE,CAAC,cAAc,EAAE,gBAAgB,KAAK,MAAM,GAAG,SAAS,CAAC;IACvE,YAAY,CAA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B;;OAEG;IACH,SAAS,CAAC,EAAE,UAAU,CAAC;IACvB;;OAEG;IACH,QAAQ,CAAC,EAAE,QAAQ,EAAE,CAAC;IACtB;;;OAGG;IACH,eAAe,CAAC,EAAE,OAAO,GAAG,OAAO,CAAC;IAIpC;;OAEG;IACH,aAAa,CAAC,EAAE,QAAQ,CAAC;IACzB;;;OAGG;IACH,mBAAmB,CAAC,EAAE,OAAO,GAAG,OAAO,CAAC;CAC3C,CAAC;AAEF;;;GAGG;AACH,MAAM,MAAM,kBAAkB,GAAG,QAAQ,GAAG,YAAY,CAAC;AAEzD;;;GAGG;AACH,MAAM,MAAM,yBAAyB,GAAG,QAAQ,GAAG,OAAO,CAAC;AAI3D,wBAAgB,cAAc,CAAC,EAC3B,QAAQ,EACR,gBAAgB,EAChB,WAAW,EACX,YAAY,EACZ,SAAS,EACT,UAAU,EACV,cAAc,EACd,iBAAiB,EACjB,gBAAgB,GACnB,EAAE,iBAAiB,CAAC,aAAa,CAAC,2CAkClC;AAED,eAAO,MAAM,SAAS,QAAO,aAE5B,CAAC"}
|
|
@@ -1,9 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
type ConversationDeleteDialogProps =
|
|
3
|
-
|
|
4
|
-
onDelete: () => void;
|
|
5
|
-
onClose: () => void;
|
|
6
|
-
};
|
|
7
|
-
export declare function ConversationDeleteDialog({ conversation, onDelete, onClose }: ConversationDeleteDialogProps): import("react/jsx-runtime").JSX.Element;
|
|
8
|
-
export {};
|
|
1
|
+
import type { IGenAIAssistantConversationDeleteDialogProps } from "./customized/types.js";
|
|
2
|
+
export type ConversationDeleteDialogProps = IGenAIAssistantConversationDeleteDialogProps;
|
|
3
|
+
export declare function ConversationDeleteDialog({ conversation, onDelete, onClose, title: customTitle, body, submitButtonText, cancelButtonText, }: ConversationDeleteDialogProps): import("react/jsx-runtime").JSX.Element;
|
|
9
4
|
//# sourceMappingURL=ConversationDeleteDialog.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ConversationDeleteDialog.d.ts","sourceRoot":"","sources":["../../src/components/ConversationDeleteDialog.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ConversationDeleteDialog.d.ts","sourceRoot":"","sources":["../../src/components/ConversationDeleteDialog.tsx"],"names":[],"mappings":"AAaA,OAAO,KAAK,EAAE,4CAA4C,EAAE,MAAM,uBAAuB,CAAC;AAS1F,MAAM,MAAM,6BAA6B,GAAG,4CAA4C,CAAC;AAEzF,wBAAgB,wBAAwB,CAAC,EACrC,YAAY,EACZ,QAAQ,EACR,OAAO,EACP,KAAK,EAAE,WAAW,EAClB,IAAI,EACJ,gBAAgB,EAChB,gBAAgB,GACnB,EAAE,6BAA6B,2CAkC/B"}
|
|
@@ -13,14 +13,14 @@ const messages = defineMessages({
|
|
|
13
13
|
submit: { id: "gd.gen-ai.conversations.delete-dialog.submit" },
|
|
14
14
|
cancel: { id: "gd.gen-ai.conversations.delete-dialog.cancel" },
|
|
15
15
|
});
|
|
16
|
-
export function ConversationDeleteDialog({ conversation, onDelete, onClose }) {
|
|
16
|
+
export function ConversationDeleteDialog({ conversation, onDelete, onClose, title: customTitle, body, submitButtonText, cancelButtonText, }) {
|
|
17
17
|
const intl = useIntl();
|
|
18
18
|
const catalogItems = useSelector(catalogItemsSelector);
|
|
19
19
|
const title = useMemo(() => {
|
|
20
20
|
return (replaceReferences(conversation.title ?? "", collectReferences(conversation.title ?? "", catalogItems)) || generateTemporaryTitle(intl, conversation));
|
|
21
21
|
}, [catalogItems, conversation, intl]);
|
|
22
|
-
return (_jsx(ConfirmDialog, { headline: intl.formatMessage(messages.title), cancelButtonText: intl.formatMessage(messages.cancel), submitButtonText: intl.formatMessage(messages.submit), isPositive: false, onCancel: onClose, onClose: onClose, onSubmit: onDelete, children: _jsx(FormattedMessage, { ...messages.body, values: {
|
|
22
|
+
return (_jsx(ConfirmDialog, { headline: customTitle ?? intl.formatMessage(messages.title), cancelButtonText: cancelButtonText ?? intl.formatMessage(messages.cancel), submitButtonText: submitButtonText ?? intl.formatMessage(messages.submit), isPositive: false, onCancel: onClose, onClose: onClose, onSubmit: onDelete, children: body?.({ name: title }) ?? (_jsx(FormattedMessage, { ...messages.body, values: {
|
|
23
23
|
name: title,
|
|
24
24
|
b: (chunks) => _jsx("b", { children: chunks }),
|
|
25
|
-
} }) }));
|
|
25
|
+
} })) }));
|
|
26
26
|
}
|
|
@@ -1,9 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
type ConversationRenameDialogProps =
|
|
3
|
-
|
|
4
|
-
onRename: (name: string) => void;
|
|
5
|
-
onClose: () => void;
|
|
6
|
-
};
|
|
7
|
-
export declare function ConversationRenameDialog({ conversation, onRename, onClose }: ConversationRenameDialogProps): import("react/jsx-runtime").JSX.Element;
|
|
8
|
-
export {};
|
|
1
|
+
import type { IGenAIAssistantConversationRenameDialogProps } from "./customized/types.js";
|
|
2
|
+
export type ConversationRenameDialogProps = IGenAIAssistantConversationRenameDialogProps;
|
|
3
|
+
export declare function ConversationRenameDialog({ conversation, onRename, onClose, title, label, submitButtonText, cancelButtonText, }: ConversationRenameDialogProps): import("react/jsx-runtime").JSX.Element;
|
|
9
4
|
//# sourceMappingURL=ConversationRenameDialog.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ConversationRenameDialog.d.ts","sourceRoot":"","sources":["../../src/components/ConversationRenameDialog.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ConversationRenameDialog.d.ts","sourceRoot":"","sources":["../../src/components/ConversationRenameDialog.tsx"],"names":[],"mappings":"AAaA,OAAO,KAAK,EAAE,4CAA4C,EAAE,MAAM,uBAAuB,CAAC;AAS1F,MAAM,MAAM,6BAA6B,GAAG,4CAA4C,CAAC;AAEzF,wBAAgB,wBAAwB,CAAC,EACrC,YAAY,EACZ,QAAQ,EACR,OAAO,EACP,KAAK,EACL,KAAK,EACL,gBAAgB,EAChB,gBAAgB,GACnB,EAAE,6BAA6B,2CAuC/B"}
|
|
@@ -13,12 +13,12 @@ const messages = defineMessages({
|
|
|
13
13
|
submit: { id: "gd.gen-ai.conversations.rename-dialog.submit" },
|
|
14
14
|
cancel: { id: "gd.gen-ai.conversations.rename-dialog.cancel" },
|
|
15
15
|
});
|
|
16
|
-
export function ConversationRenameDialog({ conversation, onRename, onClose }) {
|
|
16
|
+
export function ConversationRenameDialog({ conversation, onRename, onClose, title, label, submitButtonText, cancelButtonText, }) {
|
|
17
17
|
const intl = useIntl();
|
|
18
18
|
const catalogItems = useSelector(catalogItemsSelector);
|
|
19
19
|
const currentTitle = useMemo(() => {
|
|
20
20
|
return (replaceReferences(conversation.title ?? "", collectReferences(conversation.title ?? "", catalogItems)) || generateTemporaryTitle(intl, conversation));
|
|
21
21
|
}, [catalogItems, conversation, intl]);
|
|
22
22
|
const [value, setValue] = useState(currentTitle);
|
|
23
|
-
return (_jsx(ConfirmDialog, { headline: intl.formatMessage(messages.title), cancelButtonText: intl.formatMessage(messages.cancel), submitButtonText: intl.formatMessage(messages.submit), isPositive: true, autofocusOnOpen: false, submitOnEnterKey: true, isSubmitDisabled: !value.trim(), onCancel: onClose, onClose: onClose, onSubmit: () => onRename(value.trim()), className: "gd-gen-ai-chat__rename-dialog", children: _jsx(Input, { autofocus: true, label: intl.formatMessage(messages.label), className: "gd-gen-ai-chat__rename-dialog__input", labelPositionTop: true, value: value, onChange: (newValue) => setValue(String(newValue)) }) }));
|
|
23
|
+
return (_jsx(ConfirmDialog, { headline: title ?? intl.formatMessage(messages.title), cancelButtonText: cancelButtonText ?? intl.formatMessage(messages.cancel), submitButtonText: submitButtonText ?? intl.formatMessage(messages.submit), isPositive: true, autofocusOnOpen: false, submitOnEnterKey: true, isSubmitDisabled: !value.trim(), onCancel: onClose, onClose: onClose, onSubmit: () => onRename(value.trim()), className: "gd-gen-ai-chat__rename-dialog", children: _jsx(Input, { autofocus: true, label: label ?? intl.formatMessage(messages.label), className: "gd-gen-ai-chat__rename-dialog__input", labelPositionTop: true, value: value, onChange: (newValue) => setValue(String(newValue)) }) }));
|
|
24
24
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type ComponentType } from "react";
|
|
2
|
-
import { type IGenAIAssistantAgentChooserProps, type IGenAIAssistantAgentItemProps, type IGenAIAssistantAssistantMessageProps, type IGenAIAssistantConversationDateGroupingProps, type IGenAIAssistantConversationDrawerHeaderProps, type IGenAIAssistantConversationFooterProps, type IGenAIAssistantConversationHeaderProps, type IGenAIAssistantConversationItemProps, type IGenAIAssistantConversationKdaContentProps, type IGenAIAssistantConversationVisualizationContentProps, type IGenAIAssistantFeedbackProps, type IGenAIAssistantFollowUpButtonsProps, type IGenAIAssistantFollowUpQuestionProps, type IGenAIAssistantMessageErrorContentProps, type IGenAIAssistantMessageMultipartContentProps, type IGenAIAssistantMessageReasoningContentProps, type IGenAIAssistantMessageTextContentProps, type IGenAIAssistantSlots, type IGenAIAssistantUserMessageProps, type IGenAIAssistantVisualizationMenuProps } from "./customized/types.js";
|
|
2
|
+
import { type IGenAIAssistantAgentChooserProps, type IGenAIAssistantAgentItemProps, type IGenAIAssistantAssistantMessageProps, type IGenAIAssistantConversationDateGroupingProps, type IGenAIAssistantConversationDeleteDialogProps, type IGenAIAssistantConversationDrawerHeaderProps, type IGenAIAssistantConversationFooterProps, type IGenAIAssistantConversationHeaderProps, type IGenAIAssistantConversationItemProps, type IGenAIAssistantConversationKdaContentProps, type IGenAIAssistantConversationRenameDialogProps, type IGenAIAssistantConversationVisualizationContentProps, type IGenAIAssistantFeedbackProps, type IGenAIAssistantFollowUpButtonsProps, type IGenAIAssistantFollowUpQuestionProps, type IGenAIAssistantMessageErrorContentProps, type IGenAIAssistantMessageMultipartContentProps, type IGenAIAssistantMessageReasoningContentProps, type IGenAIAssistantMessageTextContentProps, type IGenAIAssistantSlots, type IGenAIAssistantUserMessageProps, type IGenAIAssistantVisualizationMenuProps } from "./customized/types.js";
|
|
3
3
|
/**
|
|
4
4
|
* @internal
|
|
5
5
|
*/
|
|
@@ -12,6 +12,8 @@ export interface IGenAIAssistantComponents {
|
|
|
12
12
|
ConversationHeaderComponent: ComponentType<IGenAIAssistantConversationHeaderProps>;
|
|
13
13
|
ConversationFooterComponent: ComponentType<IGenAIAssistantConversationFooterProps>;
|
|
14
14
|
ConversationDateGroupingComponent: ComponentType<IGenAIAssistantConversationDateGroupingProps>;
|
|
15
|
+
ConversationRenameDialogComponent: ComponentType<IGenAIAssistantConversationRenameDialogProps>;
|
|
16
|
+
ConversationDeleteDialogComponent: ComponentType<IGenAIAssistantConversationDeleteDialogProps>;
|
|
15
17
|
UserMessageComponent: ComponentType<IGenAIAssistantUserMessageProps>;
|
|
16
18
|
AssistantMessageComponent: ComponentType<IGenAIAssistantAssistantMessageProps>;
|
|
17
19
|
MessageTextContentComponent: ComponentType<IGenAIAssistantMessageTextContentProps>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CustomizationContext.d.ts","sourceRoot":"","sources":["../../src/components/CustomizationContext.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,aAAa,EAA6B,MAAM,OAAO,CAAC;AAEtE,OAAO,EACH,KAAK,gCAAgC,EACrC,KAAK,6BAA6B,EAClC,KAAK,oCAAoC,EACzC,KAAK,4CAA4C,EACjD,KAAK,4CAA4C,EACjD,KAAK,sCAAsC,EAC3C,KAAK,sCAAsC,EAC3C,KAAK,oCAAoC,EACzC,KAAK,0CAA0C,EAC/C,KAAK,oDAAoD,EACzD,KAAK,4BAA4B,EACjC,KAAK,mCAAmC,EACxC,KAAK,oCAAoC,EACzC,KAAK,uCAAuC,EAC5C,KAAK,2CAA2C,EAChD,KAAK,2CAA2C,EAChD,KAAK,sCAAsC,EAC3C,KAAK,oBAAoB,EACzB,KAAK,+BAA+B,EACpC,KAAK,qCAAqC,EAC7C,MAAM,uBAAuB,CAAC;AAE/B;;GAEG;AACH,MAAM,WAAW,yBAAyB;IACtC,sBAAsB,EAAE,aAAa,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BAAoB,+CAE/B,CAAC;AAEH;;GAEG;AACH,eAAO,MAAM,gBAAgB,iCAM5B,CAAC"}
|
|
1
|
+
{"version":3,"file":"CustomizationContext.d.ts","sourceRoot":"","sources":["../../src/components/CustomizationContext.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,aAAa,EAA6B,MAAM,OAAO,CAAC;AAEtE,OAAO,EACH,KAAK,gCAAgC,EACrC,KAAK,6BAA6B,EAClC,KAAK,oCAAoC,EACzC,KAAK,4CAA4C,EACjD,KAAK,4CAA4C,EACjD,KAAK,4CAA4C,EACjD,KAAK,sCAAsC,EAC3C,KAAK,sCAAsC,EAC3C,KAAK,oCAAoC,EACzC,KAAK,0CAA0C,EAC/C,KAAK,4CAA4C,EACjD,KAAK,oDAAoD,EACzD,KAAK,4BAA4B,EACjC,KAAK,mCAAmC,EACxC,KAAK,oCAAoC,EACzC,KAAK,uCAAuC,EAC5C,KAAK,2CAA2C,EAChD,KAAK,2CAA2C,EAChD,KAAK,sCAAsC,EAC3C,KAAK,oBAAoB,EACzB,KAAK,+BAA+B,EACpC,KAAK,qCAAqC,EAC7C,MAAM,uBAAuB,CAAC;AAE/B;;GAEG;AACH,MAAM,WAAW,yBAAyB;IACtC,sBAAsB,EAAE,aAAa,CAAC;IACtC,mBAAmB,EAAE,aAAa,CAAC;IACnC,kBAAkB,EAAE,aAAa,CAAC,6BAA6B,CAAC,CAAC;IACjE,yBAAyB,EAAE,aAAa,CAAC,oCAAoC,CAAC,CAAC;IAC/E,iCAAiC,EAAE,aAAa,CAAC,4CAA4C,CAAC,CAAC;IAC/F,2BAA2B,EAAE,aAAa,CAAC,sCAAsC,CAAC,CAAC;IACnF,2BAA2B,EAAE,aAAa,CAAC,sCAAsC,CAAC,CAAC;IACnF,iCAAiC,EAAE,aAAa,CAAC,4CAA4C,CAAC,CAAC;IAC/F,iCAAiC,EAAE,aAAa,CAAC,4CAA4C,CAAC,CAAC;IAC/F,iCAAiC,EAAE,aAAa,CAAC,4CAA4C,CAAC,CAAC;IAC/F,oBAAoB,EAAE,aAAa,CAAC,+BAA+B,CAAC,CAAC;IACrE,yBAAyB,EAAE,aAAa,CAAC,oCAAoC,CAAC,CAAC;IAC/E,2BAA2B,EAAE,aAAa,CAAC,sCAAsC,CAAC,CAAC;IACnF,4BAA4B,EAAE,aAAa,CAAC,uCAAuC,CAAC,CAAC;IACrF,gCAAgC,EAAE,aAAa,CAAC,2CAA2C,CAAC,CAAC;IAC7F,gCAAgC,EAAE,aAAa,CAAC,2CAA2C,CAAC,CAAC;IAC7F,yCAAyC,EAAE,aAAa,CAAC,oDAAoD,CAAC,CAAC;IAC/G,0BAA0B,EAAE,aAAa,CAAC,qCAAqC,CAAC,CAAC;IACjF,+BAA+B,EAAE,aAAa,CAAC,0CAA0C,CAAC,CAAC;IAC3F,wBAAwB,EAAE,aAAa,CAAC,mCAAmC,CAAC,CAAC;IAC7E,yBAAyB,EAAE,aAAa,CAAC,oCAAoC,CAAC,CAAC;IAC/E,iBAAiB,EAAE,aAAa,CAAC,4BAA4B,CAAC,CAAC;IAC/D,qBAAqB,EAAE,aAAa,CAAC,gCAAgC,CAAC,CAAC;CAC1E;AAED;;GAEG;AACH,MAAM,MAAM,oBAAoB,GAAG;IAC/B,KAAK,CAAC,EAAE,oBAAoB,CAAC;IAC7B,UAAU,CAAC,EAAE,yBAAyB,CAAC;CAC1C,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,oBAAoB,+CAE/B,CAAC;AAEH;;GAEG;AACH,eAAO,MAAM,gBAAgB,iCAM5B,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CustomizationProvider.d.ts","sourceRoot":"","sources":["../../src/components/CustomizationProvider.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,iBAAiB,EAAuB,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"CustomizationProvider.d.ts","sourceRoot":"","sources":["../../src/components/CustomizationProvider.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,iBAAiB,EAAuB,MAAM,OAAO,CAAC;AAwBpE,OAAO,EAoBH,KAAK,oBAAoB,EAG5B,MAAM,uBAAuB,CAAC;AAK/B,MAAM,MAAM,0BAA0B,GAAG;IACrC,KAAK,CAAC,EAAE,oBAAoB,CAAC;CAChC,CAAC;AA6PF,wBAAgB,qBAAqB,CAAC,EAAE,QAAQ,EAAE,KAAK,EAAE,EAAE,iBAAiB,CAAC,0BAA0B,CAAC,2CAuCvG"}
|
|
@@ -6,11 +6,13 @@ import { DefaultAgentChooser } from "./customized/AgentChooser.js";
|
|
|
6
6
|
import { DefaultAgentItem } from "./customized/AgentItem.js";
|
|
7
7
|
import { DefaultAssistantMessage } from "./customized/AssistantMessage.js";
|
|
8
8
|
import { DefaultConversationDateGrouping } from "./customized/ConversationDateGrouping.js";
|
|
9
|
+
import { DefaultConversationDeleteDialog } from "./customized/ConversationDeleteDialog.js";
|
|
9
10
|
import { DefaultConversationDrawerHeader } from "./customized/ConversationDrawerHeader.js";
|
|
10
11
|
import { DefaultConversationFooter } from "./customized/ConversationFooter.js";
|
|
11
12
|
import { DefaultConversationHeader } from "./customized/ConversationHeader.js";
|
|
12
13
|
import { DefaultConversationItem } from "./customized/ConversationItem.js";
|
|
13
14
|
import { DefaultConversationKdaContent } from "./customized/ConversationKdaContent.js";
|
|
15
|
+
import { DefaultConversationRenameDialog } from "./customized/ConversationRenameDialog.js";
|
|
14
16
|
import { DefaultConversationVisualizationContent } from "./customized/ConversationVisualizationContent.js";
|
|
15
17
|
import { DefaultDisclaimer } from "./customized/Disclaimer.js";
|
|
16
18
|
import { DefaultFeedback } from "./customized/Feedback.js";
|
|
@@ -93,6 +95,22 @@ function ConversationDateGroupingSlotRenderer(props) {
|
|
|
93
95
|
}
|
|
94
96
|
return _jsx(DefaultConversationDateGrouping, { ...props });
|
|
95
97
|
}
|
|
98
|
+
function ConversationRenameDialogSlotRenderer(props) {
|
|
99
|
+
const { slots } = useContext(customizationContext);
|
|
100
|
+
const ConversationRenameDialogSlot = slots?.ConversationRenameDialog;
|
|
101
|
+
if (ConversationRenameDialogSlot) {
|
|
102
|
+
return (_jsx(ConversationRenameDialogSlot, { Default: DefaultConversationRenameDialog, defaultProps: props }));
|
|
103
|
+
}
|
|
104
|
+
return _jsx(DefaultConversationRenameDialog, { ...props });
|
|
105
|
+
}
|
|
106
|
+
function ConversationDeleteDialogSlotRenderer(props) {
|
|
107
|
+
const { slots } = useContext(customizationContext);
|
|
108
|
+
const ConversationDeleteDialogSlot = slots?.ConversationDeleteDialog;
|
|
109
|
+
if (ConversationDeleteDialogSlot) {
|
|
110
|
+
return (_jsx(ConversationDeleteDialogSlot, { Default: DefaultConversationDeleteDialog, defaultProps: props }));
|
|
111
|
+
}
|
|
112
|
+
return _jsx(DefaultConversationDeleteDialog, { ...props });
|
|
113
|
+
}
|
|
96
114
|
function UserMessageSlotRenderer(props) {
|
|
97
115
|
const { slots } = useContext(customizationContext);
|
|
98
116
|
const UserMessageSlot = slots?.UserMessage;
|
|
@@ -207,6 +225,8 @@ export function CustomizationProvider({ children, slots }) {
|
|
|
207
225
|
ConversationHeaderComponent: ConversationHeaderSlotRenderer,
|
|
208
226
|
ConversationFooterComponent: ConversationFooterSlotRenderer,
|
|
209
227
|
ConversationDateGroupingComponent: ConversationDateGroupingSlotRenderer,
|
|
228
|
+
ConversationRenameDialogComponent: ConversationRenameDialogSlotRenderer,
|
|
229
|
+
ConversationDeleteDialogComponent: ConversationDeleteDialogSlotRenderer,
|
|
210
230
|
UserMessageComponent: UserMessageSlotRenderer,
|
|
211
231
|
AssistantMessageComponent: AssistantMessageSlotRenderer,
|
|
212
232
|
MessageTextContentComponent: MessageTextContentSlotRenderer,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GenAIChatConversations.d.ts","sourceRoot":"","sources":["../../src/components/GenAIChatConversations.tsx"],"names":[],"mappings":"AAEA,OAAO,EAIH,KAAK,YAAY,EASpB,MAAM,OAAO,CAAC;AAkBf,OAAO,EAAE,KAAK,sBAAsB,EAAE,MAAM,aAAa,CAAC;
|
|
1
|
+
{"version":3,"file":"GenAIChatConversations.d.ts","sourceRoot":"","sources":["../../src/components/GenAIChatConversations.tsx"],"names":[],"mappings":"AAEA,OAAO,EAIH,KAAK,YAAY,EASpB,MAAM,OAAO,CAAC;AAkBf,OAAO,EAAE,KAAK,sBAAsB,EAAE,MAAM,aAAa,CAAC;AAsB1D,KAAK,2BAA2B,GAAG;IAC/B,OAAO,CAAC,EAAE,YAAY,CAAC;IACvB,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,QAAQ,EAAE,CAAC,YAAY,EAAE,sBAAsB,KAAK,IAAI,CAAC;CAC5D,CAAC;AAOF,wBAAgB,sBAAsB,CAAC,EAAE,OAAO,EAAE,QAAQ,EAAE,OAAO,EAAE,EAAE,2BAA2B,2CA8VjG"}
|
|
@@ -11,8 +11,6 @@ import { deleteConversationAction, pinConversationAction, renameConversationActi
|
|
|
11
11
|
import { isConversationWithLocalId } from "../store/utils.js";
|
|
12
12
|
import { generateTemporaryTitle } from "../utils.js";
|
|
13
13
|
import { collectReferences, replaceReferences } from "./completion/references.js";
|
|
14
|
-
import { ConversationDeleteDialog } from "./ConversationDeleteDialog.js";
|
|
15
|
-
import { ConversationRenameDialog } from "./ConversationRenameDialog.js";
|
|
16
14
|
import { useCustomization } from "./CustomizationContext.js";
|
|
17
15
|
import { useFullscreenCheck } from "./hooks/useFullscreenCheck.js";
|
|
18
16
|
import { useHistoryCheck } from "./hooks/useHistoryCheck.js";
|
|
@@ -23,6 +21,7 @@ export function GenAIChatConversations({ onClose, onSelect, wrapper }) {
|
|
|
23
21
|
const menuRef = useRef(undefined);
|
|
24
22
|
const intl = useIntl();
|
|
25
23
|
const dispatch = useDispatch();
|
|
24
|
+
const { ConversationDeleteDialogComponent, ConversationRenameDialogComponent } = useCustomization();
|
|
26
25
|
const { isFullscreen, isSmallScreen } = useFullscreenCheck();
|
|
27
26
|
const { isHistory } = useHistoryCheck();
|
|
28
27
|
const [conversationToDelete, setConversationToDelete] = useState();
|
|
@@ -225,7 +224,7 @@ export function GenAIChatConversations({ onClose, onSelect, wrapper }) {
|
|
|
225
224
|
return (_jsxs(_Fragment, { children: [cloneElement(Component, {}, _jsx("div", { className: cx("gd-gen-ai-chat__window__conversations", {
|
|
226
225
|
"gd-gen-ai-chat__window__conversations--isFullscreen": isFullscreen,
|
|
227
226
|
"gd-gen-ai-chat__window__conversations--isSmallScreen": isSmallScreen,
|
|
228
|
-
}), children: _jsx(DrawerContent, { isOpen: isHistory, openedId: openedId, conversationLoaded: conversationLoaded, selectedId: currentConversation?.localId, menuRef: menuRef, menuItems: menuItems, conversations: conversations ?? [], handleSelect: handleSelect, draggedConversation: draggedConversation, activeDropZone: activeDropZone, onDragStart: handleDragStart, onDragEnd: handleDragEnd, onDropZoneDragOver: handleDropZoneDragOver, onDropZoneDragLeave: handleDropZoneDragLeave, onDropZoneDrop: handleDropZoneDrop, onMenuUnhandledKeyDown: handleMenuUnhandledKeyDown }) })), conversationToDelete ? (_jsx(
|
|
227
|
+
}), children: _jsx(DrawerContent, { isOpen: isHistory, openedId: openedId, conversationLoaded: conversationLoaded, selectedId: currentConversation?.localId, menuRef: menuRef, menuItems: menuItems, conversations: conversations ?? [], handleSelect: handleSelect, draggedConversation: draggedConversation, activeDropZone: activeDropZone, onDragStart: handleDragStart, onDragEnd: handleDragEnd, onDropZoneDragOver: handleDropZoneDragOver, onDropZoneDragLeave: handleDropZoneDragLeave, onDropZoneDrop: handleDropZoneDrop, onMenuUnhandledKeyDown: handleMenuUnhandledKeyDown }) })), conversationToDelete ? (_jsx(ConversationDeleteDialogComponent, { conversation: conversationToDelete, onClose: handleDeleteCancel, onDelete: handleDeleteSubmit })) : null, conversationToRename ? (_jsx(ConversationRenameDialogComponent, { conversation: conversationToRename, onClose: handleRenameCancel, onRename: handleRenameSubmit })) : null] }));
|
|
229
228
|
}
|
|
230
229
|
function DrawerComponent({ onClose, children }) {
|
|
231
230
|
const ref = useRef(undefined);
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { IGenAIAssistantConversationDeleteDialogProps } from "./types.js";
|
|
2
|
+
/**
|
|
3
|
+
* Default implementation of the ConversationDeleteDialog slot.
|
|
4
|
+
*
|
|
5
|
+
* @alpha
|
|
6
|
+
*/
|
|
7
|
+
export declare function DefaultConversationDeleteDialog(props: IGenAIAssistantConversationDeleteDialogProps): import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
//# sourceMappingURL=ConversationDeleteDialog.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ConversationDeleteDialog.d.ts","sourceRoot":"","sources":["../../../src/components/customized/ConversationDeleteDialog.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,4CAA4C,EAAE,MAAM,YAAY,CAAC;AAE/E;;;;GAIG;AACH,wBAAgB,+BAA+B,CAAC,KAAK,EAAE,4CAA4C,2CAElG"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
// (C) 2026 GoodData Corporation
|
|
3
|
+
import { ConversationDeleteDialog } from "../ConversationDeleteDialog.js";
|
|
4
|
+
/**
|
|
5
|
+
* Default implementation of the ConversationDeleteDialog slot.
|
|
6
|
+
*
|
|
7
|
+
* @alpha
|
|
8
|
+
*/
|
|
9
|
+
export function DefaultConversationDeleteDialog(props) {
|
|
10
|
+
return _jsx(ConversationDeleteDialog, { ...props });
|
|
11
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { IGenAIAssistantConversationRenameDialogProps } from "./types.js";
|
|
2
|
+
/**
|
|
3
|
+
* Default implementation of the ConversationRenameDialog slot.
|
|
4
|
+
*
|
|
5
|
+
* @alpha
|
|
6
|
+
*/
|
|
7
|
+
export declare function DefaultConversationRenameDialog(props: IGenAIAssistantConversationRenameDialogProps): import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
//# sourceMappingURL=ConversationRenameDialog.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ConversationRenameDialog.d.ts","sourceRoot":"","sources":["../../../src/components/customized/ConversationRenameDialog.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,4CAA4C,EAAE,MAAM,YAAY,CAAC;AAE/E;;;;GAIG;AACH,wBAAgB,+BAA+B,CAAC,KAAK,EAAE,4CAA4C,2CAElG"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
// (C) 2026 GoodData Corporation
|
|
3
|
+
import { ConversationRenameDialog } from "../ConversationRenameDialog.js";
|
|
4
|
+
/**
|
|
5
|
+
* Default implementation of the ConversationRenameDialog slot.
|
|
6
|
+
*
|
|
7
|
+
* @alpha
|
|
8
|
+
*/
|
|
9
|
+
export function DefaultConversationRenameDialog(props) {
|
|
10
|
+
return _jsx(ConversationRenameDialog, { ...props });
|
|
11
|
+
}
|
|
@@ -112,6 +112,77 @@ export type IGenAIAssistantConversationDateGroupingProps = {
|
|
|
112
112
|
*/
|
|
113
113
|
menuGroupItemProps: IUiMenuGroupItemProps;
|
|
114
114
|
};
|
|
115
|
+
/**
|
|
116
|
+
* Properties for the ConversationRenameDialog slot.
|
|
117
|
+
* @alpha
|
|
118
|
+
*/
|
|
119
|
+
export type IGenAIAssistantConversationRenameDialogProps = {
|
|
120
|
+
/**
|
|
121
|
+
* The conversation to be renamed.
|
|
122
|
+
*/
|
|
123
|
+
conversation: IChatConversationLocal;
|
|
124
|
+
/**
|
|
125
|
+
* Callback invoked when the conversation rename is confirmed.
|
|
126
|
+
*/
|
|
127
|
+
onRename: (name: string) => void;
|
|
128
|
+
/**
|
|
129
|
+
* Callback invoked when the dialog is closed or cancelled.
|
|
130
|
+
*/
|
|
131
|
+
onClose: () => void;
|
|
132
|
+
/**
|
|
133
|
+
* Optional custom title for the dialog.
|
|
134
|
+
*/
|
|
135
|
+
title?: string;
|
|
136
|
+
/**
|
|
137
|
+
* Optional custom label for the input field.
|
|
138
|
+
*/
|
|
139
|
+
label?: string;
|
|
140
|
+
/**
|
|
141
|
+
* Optional custom text for the submit button.
|
|
142
|
+
*/
|
|
143
|
+
submitButtonText?: string;
|
|
144
|
+
/**
|
|
145
|
+
* Optional custom text for the cancel button.
|
|
146
|
+
*/
|
|
147
|
+
cancelButtonText?: string;
|
|
148
|
+
};
|
|
149
|
+
/**
|
|
150
|
+
* Properties for the ConversationDeleteDialog slot.
|
|
151
|
+
* @alpha
|
|
152
|
+
*/
|
|
153
|
+
export type IGenAIAssistantConversationDeleteDialogProps = {
|
|
154
|
+
/**
|
|
155
|
+
* The conversation to be deleted.
|
|
156
|
+
*/
|
|
157
|
+
conversation: IChatConversationLocal;
|
|
158
|
+
/**
|
|
159
|
+
* Callback invoked when the conversation deletion is confirmed.
|
|
160
|
+
*/
|
|
161
|
+
onDelete: () => void;
|
|
162
|
+
/**
|
|
163
|
+
* Callback invoked when the dialog is closed or cancelled.
|
|
164
|
+
*/
|
|
165
|
+
onClose: () => void;
|
|
166
|
+
/**
|
|
167
|
+
* Optional custom title for the dialog.
|
|
168
|
+
*/
|
|
169
|
+
title?: string;
|
|
170
|
+
/**
|
|
171
|
+
* Optional custom body/message for the dialog.
|
|
172
|
+
* Name is cleared conversation name
|
|
173
|
+
*/
|
|
174
|
+
body?: (props: {
|
|
175
|
+
name: string;
|
|
176
|
+
}) => ReactNode;
|
|
177
|
+
/**
|
|
178
|
+
* Optional custom text for the submit button.
|
|
179
|
+
*/
|
|
180
|
+
submitButtonText?: string;
|
|
181
|
+
/**
|
|
182
|
+
* Optional custom text for the cancel button.
|
|
183
|
+
*/
|
|
184
|
+
cancelButtonText?: string;
|
|
185
|
+
};
|
|
115
186
|
/**
|
|
116
187
|
* Properties for the UserMessage slot.
|
|
117
188
|
* @alpha
|
|
@@ -523,6 +594,16 @@ export interface IGenAIAssistantSlots {
|
|
|
523
594
|
* Custom React component rendered for date grouped conversation sections.
|
|
524
595
|
*/
|
|
525
596
|
ConversationDateGrouping?: ComponentType<ISlotProps<IGenAIAssistantConversationDateGroupingProps>>;
|
|
597
|
+
/**
|
|
598
|
+
* @alpha
|
|
599
|
+
* Custom React component rendered as the dialog for renaming a conversation.
|
|
600
|
+
*/
|
|
601
|
+
ConversationRenameDialog?: ComponentType<ISlotProps<IGenAIAssistantConversationRenameDialogProps>>;
|
|
602
|
+
/**
|
|
603
|
+
* @alpha
|
|
604
|
+
* Custom React component rendered as the dialog for deleting a conversation.
|
|
605
|
+
*/
|
|
606
|
+
ConversationDeleteDialog?: ComponentType<ISlotProps<IGenAIAssistantConversationDeleteDialogProps>>;
|
|
526
607
|
/**
|
|
527
608
|
* @alpha
|
|
528
609
|
* Custom React component rendered for each user message.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/components/customized/types.ts"],"names":[],"mappings":"AAEA,OAAO,EACH,KAAK,cAAc,EACnB,KAAK,aAAa,EAClB,KAAK,aAAa,EAClB,KAAK,UAAU,EACf,KAAK,SAAS,EACjB,MAAM,OAAO,CAAC;AAEf,OAAO,EACH,KAAK,qCAAqC,EAC1C,KAAK,kBAAkB,EACvB,KAAK,eAAe,EACvB,MAAM,2BAA2B,CAAC;AACnC,OAAO,EAAE,KAAK,eAAe,EAAE,MAAM,qBAAqB,CAAC;AAC3D,OAAO,EACH,KAAK,UAAU,EACf,KAAK,qBAAqB,EAC1B,KAAK,2BAA2B,EAChC,KAAK,kCAAkC,EACvC,KAAK,WAAW,EACnB,MAAM,sBAAsB,CAAC;AAE9B,OAAO,EACH,KAAK,UAAU,EACf,KAAK,6BAA6B,EAClC,KAAK,sBAAsB,EAC3B,KAAK,0BAA0B,EAC/B,KAAK,mCAAmC,EACxC,KAAK,iBAAiB,EACzB,MAAM,gBAAgB,CAAC;AACxB,OAAO,EAAE,KAAK,y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;IACH,gBAAgB,CAAC,EAAE,aAAa,CAAC,UAAU,CAAC,oCAAoC,CAAC,CAAC,CAAC;IAEnF;;;OAGG;IACH,YAAY,CAAC,EAAE,aAAa,CAAC,UAAU,CAAC,gCAAgC,CAAC,CAAC,CAAC;CAC9E"}
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/components/customized/types.ts"],"names":[],"mappings":"AAEA,OAAO,EACH,KAAK,cAAc,EACnB,KAAK,aAAa,EAClB,KAAK,aAAa,EAClB,KAAK,UAAU,EACf,KAAK,SAAS,EACjB,MAAM,OAAO,CAAC;AAEf,OAAO,EACH,KAAK,qCAAqC,EAC1C,KAAK,kBAAkB,EACvB,KAAK,eAAe,EACvB,MAAM,2BAA2B,CAAC;AACnC,OAAO,EAAE,KAAK,eAAe,EAAE,MAAM,qBAAqB,CAAC;AAC3D,OAAO,EACH,KAAK,UAAU,EACf,KAAK,qBAAqB,EAC1B,KAAK,2BAA2B,EAChC,KAAK,kCAAkC,EACvC,KAAK,WAAW,EACnB,MAAM,sBAAsB,CAAC;AAE9B,OAAO,EACH,KAAK,UAAU,EACf,KAAK,6BAA6B,EAClC,KAAK,sBAAsB,EAC3B,KAAK,0BAA0B,EAC/B,KAAK,mCAAmC,EACxC,KAAK,iBAAiB,EACzB,MAAM,gBAAgB,CAAC;AACxB,OAAO,EAAE,KAAK,yBAAyB,EAAE,MAAM,+BAA+B,CAAC;AAC/E,OAAO,EAAE,KAAK,kBAAkB,EAAE,MAAM,0BAA0B,CAAC;AAEnE;;;GAGG;AACH,MAAM,MAAM,iCAAiC,GAAG;IAC5C;;OAEG;IACH,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB;;OAEG;IACH,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB;;OAEG;IACH,aAAa,CAAC,EAAE,OAAO,CAAC;CAC3B,CAAC;AAEF;;;GAGG;AACH,MAAM,MAAM,8BAA8B,GAAG,MAAM,CAAC,MAAM,EAAE,KAAK,C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AAU,CAAC,uCAAuC,CAAC,CAAC,CAAC;IAEzF;;;OAGG;IACH,uBAAuB,CAAC,EAAE,aAAa,CAAC,UAAU,CAAC,2CAA2C,CAAC,CAAC,CAAC;IAEjG;;;OAGG;IACH,uBAAuB,CAAC,EAAE,aAAa,CAAC,UAAU,CAAC,2CAA2C,CAAC,CAAC,CAAC;IAEjG;;;OAGG;IACH,gCAAgC,CAAC,EAAE,aAAa,CAC5C,UAAU,CAAC,oDAAoD,CAAC,CACnE,CAAC;IAEF;;;;OAIG;IACH,iBAAiB,CAAC,EAAE,aAAa,CAAC,UAAU,CAAC,qCAAqC,CAAC,CAAC,CAAC;IAErF;;;OAGG;IACH,sBAAsB,CAAC,EAAE,aAAa,CAAC,UAAU,CAAC,0CAA0C,CAAC,CAAC,CAAC;IAE/F;;;OAGG;IACH,eAAe,CAAC,EAAE,aAAa,CAAC,UAAU,CAAC,mCAAmC,CAAC,CAAC,CAAC;IAEjF;;;OAGG;IACH,QAAQ,CAAC,EAAE,aAAa,CAAC,UAAU,CAAC,4BAA4B,CAAC,CAAC,CAAC;IAEnE;;;OAGG;IACH,gBAAgB,CAAC,EAAE,aAAa,CAAC,UAAU,CAAC,oCAAoC,CAAC,CAAC,CAAC;IAEnF;;;OAGG;IACH,YAAY,CAAC,EAAE,aAAa,CAAC,UAAU,CAAC,gCAAgC,CAAC,CAAC,CAAC;CAC9E"}
|
package/esm/components/messages/conversationContents/ConversationClarifyingAnswersContent.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ConversationClarifyingAnswersContent.d.ts","sourceRoot":"","sources":["../../../../src/components/messages/conversationContents/ConversationClarifyingAnswersContent.tsx"],"names":[],"mappings":"AAKA,OAAO,EAAE,KAAK,sBAAsB,EAAE,MAAM,qBAAqB,CAAC;AAGlE,OAAO,EAAE,KAAK,0BAA0B,EAAE,KAAK,iBAAiB,EAAE,MAAM,mBAAmB,CAAC;AAC5F,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,6BAA6B,CAAC;AAOtE,MAAM,MAAM,yCAAyC,GAAG;IACpD,OAAO,EAAE,0BAA0B,CAAC;IACpC,MAAM,EAAE,kBAAkB,EAAE,CAAC;IAC7B,OAAO,CAAC,EAAE,iBAAiB,EAAE,CAAC;IAC9B,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,OAAO,EAAE,sBAAsB,EAAE,CAAC;IAClC,MAAM,CAAC,EAAE,OAAO,CAAC;CACpB,CAAC;AAEF,wBAAgB,oCAAoC,CAAC,KAAK,EAAE,yCAAyC,
|
|
1
|
+
{"version":3,"file":"ConversationClarifyingAnswersContent.d.ts","sourceRoot":"","sources":["../../../../src/components/messages/conversationContents/ConversationClarifyingAnswersContent.tsx"],"names":[],"mappings":"AAKA,OAAO,EAAE,KAAK,sBAAsB,EAAE,MAAM,qBAAqB,CAAC;AAGlE,OAAO,EAAE,KAAK,0BAA0B,EAAE,KAAK,iBAAiB,EAAE,MAAM,mBAAmB,CAAC;AAC5F,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,6BAA6B,CAAC;AAOtE,MAAM,MAAM,yCAAyC,GAAG;IACpD,OAAO,EAAE,0BAA0B,CAAC;IACpC,MAAM,EAAE,kBAAkB,EAAE,CAAC;IAC7B,OAAO,CAAC,EAAE,iBAAiB,EAAE,CAAC;IAC9B,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,OAAO,EAAE,sBAAsB,EAAE,CAAC;IAClC,MAAM,CAAC,EAAE,OAAO,CAAC;CACpB,CAAC;AAEF,wBAAgB,oCAAoC,CAAC,KAAK,EAAE,yCAAyC,2CAmDpG"}
|
package/esm/components/messages/conversationContents/ConversationClarifyingAnswersContent.js
CHANGED
|
@@ -14,9 +14,9 @@ export function ConversationClarifyingAnswersContent(props) {
|
|
|
14
14
|
b: (chunk) => _jsx("strong", { children: chunk }),
|
|
15
15
|
} }) }));
|
|
16
16
|
}
|
|
17
|
-
return (_jsx("div", { className: cx("gd-gen-ai-chat__conversation__item__content", bem.b()), children: questions.map((question, index) => {
|
|
17
|
+
return (_jsx("div", { className: cx("gd-gen-ai-chat__conversation__item__content", bem.b()), "data-testid": "gen-ai-clarifying-answers", children: questions.map((question, index) => {
|
|
18
18
|
const labelId = `${message.id}-clarifying-answer-${index}`;
|
|
19
19
|
const answer = answers.find((ans) => ans.questionIndex === index);
|
|
20
|
-
return (_jsxs("div", { children: [_jsx("div", { className: bem.e("header"), id: labelId, children: question.text }), answer ? (_jsx("div", { "aria-labelledby": labelId, children: _jsx(MarkdownComponent, { allowMarkdown: useMarkdown, references: objects, children: answer.answer.optionText }) })) : (_jsx("div", { "aria-labelledby": labelId, children: _jsx(FormattedMessage, { id: "gd.gen-ai.conversationContents.clarifyingAnswers.skipped" }) }))] }, index));
|
|
20
|
+
return (_jsxs("div", { children: [_jsx("div", { className: bem.e("header"), id: labelId, "data-testid": "gen-ai-clarifying-answer-question", children: question.text }), answer ? (_jsx("div", { "aria-labelledby": labelId, "data-testid": "gen-ai-clarifying-answer", children: _jsx(MarkdownComponent, { allowMarkdown: useMarkdown, references: objects, children: answer.answer.optionText }) })) : (_jsx("div", { "aria-labelledby": labelId, "data-testid": "gen-ai-clarifying-answer", children: _jsx(FormattedMessage, { id: "gd.gen-ai.conversationContents.clarifyingAnswers.skipped" }) }))] }, index));
|
|
21
21
|
}) }));
|
|
22
22
|
}
|
package/esm/components/messages/conversationContents/ConversationClarifyingQuestionsContent.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ConversationClarifyingQuestionsContent.d.ts","sourceRoot":"","sources":["../../../../src/components/messages/conversationContents/ConversationClarifyingQuestionsContent.tsx"],"names":[],"mappings":"AAKA,OAAO,EAAE,KAAK,wBAAwB,EAAE,MAAM,qBAAqB,CAAC;AAGpE,OAAO,EAAE,KAAK,0BAA0B,EAAE,KAAK,iBAAiB,EAAE,MAAM,mBAAmB,CAAC;AAO5F,MAAM,MAAM,2CAA2C,GAAG;IACtD,OAAO,EAAE,0BAA0B,CAAC;IACpC,OAAO,CAAC,EAAE,iBAAiB,EAAE,CAAC;IAC9B,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,SAAS,EAAE,wBAAwB,EAAE,CAAC;IACtC,MAAM,CAAC,EAAE,OAAO,CAAC;CACpB,CAAC;AAEF,wBAAgB,sCAAsC,CAAC,KAAK,EAAE,2CAA2C,
|
|
1
|
+
{"version":3,"file":"ConversationClarifyingQuestionsContent.d.ts","sourceRoot":"","sources":["../../../../src/components/messages/conversationContents/ConversationClarifyingQuestionsContent.tsx"],"names":[],"mappings":"AAKA,OAAO,EAAE,KAAK,wBAAwB,EAAE,MAAM,qBAAqB,CAAC;AAGpE,OAAO,EAAE,KAAK,0BAA0B,EAAE,KAAK,iBAAiB,EAAE,MAAM,mBAAmB,CAAC;AAO5F,MAAM,MAAM,2CAA2C,GAAG;IACtD,OAAO,EAAE,0BAA0B,CAAC;IACpC,OAAO,CAAC,EAAE,iBAAiB,EAAE,CAAC;IAC9B,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,SAAS,EAAE,wBAAwB,EAAE,CAAC;IACtC,MAAM,CAAC,EAAE,OAAO,CAAC;CACpB,CAAC;AAEF,wBAAgB,sCAAsC,CAAC,KAAK,EAAE,2CAA2C,kDAwExG"}
|
package/esm/components/messages/conversationContents/ConversationClarifyingQuestionsContent.js
CHANGED
|
@@ -20,7 +20,7 @@ export function ConversationClarifyingQuestionsContent(props) {
|
|
|
20
20
|
if (message.filled) {
|
|
21
21
|
return null;
|
|
22
22
|
}
|
|
23
|
-
return (_jsxs("div", { className: cx("gd-gen-ai-chat__conversation__item__content", bem.b()), tabIndex: 0, onKeyDown: keyboardHandler, ref: ref.ref, "aria-activedescendant": `${labelId}-option-${index}`, children: [_jsx("div", { className: bem.e("header"), id: labelId, children: question.text }), question.control.options.map((option, i) => (_jsxs("div", { id: `${labelId}-option-${i}`, className: bem.e("option", { focused: index === i }), "aria-selected": index === i, "aria-label": option.text, "aria-describedby": labelId, onClick: () => onSelectOption(question, i), children: [_jsx("div", { className: bem.e("option-index"), children: i + 1 }), _jsx("div", { className: bem.e("option-content"), children: _jsx(MarkdownComponent, { allowMarkdown: useMarkdown, references: objects, children: option.text }) }), _jsx("div", { className: bem.e("option-select"), children: _jsx(UiIcon, { type: "arrowRight", color: "complementary-7", size: 14 }) })] }, i))), _jsxs("div", { className: bem.e("footer"), children: [_jsx("div", { children: _jsx(FormattedMessage, { id: "gd.gen-ai.clarification-question.of", values: {
|
|
23
|
+
return (_jsxs("div", { className: cx("gd-gen-ai-chat__conversation__item__content", bem.b()), "data-testid": "gen-ai-clarifying-questions", tabIndex: 0, onKeyDown: keyboardHandler, ref: ref.ref, "aria-activedescendant": `${labelId}-option-${index}`, children: [_jsx("div", { className: bem.e("header"), id: labelId, "data-testid": "gen-ai-clarifying-question", children: question.text }), question.control.options.map((option, i) => (_jsxs("div", { id: `${labelId}-option-${i}`, className: bem.e("option", { focused: index === i }), "data-testid": "gen-ai-clarifying-option", "aria-selected": index === i, "aria-label": option.text, "aria-describedby": labelId, onClick: () => onSelectOption(question, i), children: [_jsx("div", { className: bem.e("option-index"), children: i + 1 }), _jsx("div", { className: bem.e("option-content"), "data-testid": "gen-ai-clarifying-option-content", children: _jsx(MarkdownComponent, { allowMarkdown: useMarkdown, references: objects, children: option.text }) }), _jsx("div", { className: bem.e("option-select"), children: _jsx(UiIcon, { type: "arrowRight", color: "complementary-7", size: 14 }) })] }, i))), _jsxs("div", { className: bem.e("footer"), children: [_jsx("div", { "data-testid": "gen-ai-clarifying-progress", children: _jsx(FormattedMessage, { id: "gd.gen-ai.clarification-question.of", values: {
|
|
24
24
|
index: currentStep,
|
|
25
25
|
total: totalSteps,
|
|
26
26
|
} }) }), _jsx(UiButton, { dataId: SKIP_BUTTON_ID, label: intl.formatMessage({ id: "gd.gen-ai.clarification-question.skip-button" }), onClick: () => {
|