@gooddata/sdk-ui-gen-ai 11.52.0-alpha.6 → 11.52.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/esm/components/messages/contents/VisualizationContents.d.ts.map +1 -1
- package/esm/components/messages/contents/VisualizationContents.js +5 -3
- package/esm/components/messages/contents/useKdaDefinition.js +8 -0
- package/esm/components/messages/conversationContents/ConversationVisualisation.d.ts +2 -1
- package/esm/components/messages/conversationContents/ConversationVisualisation.d.ts.map +1 -1
- package/esm/components/messages/conversationContents/ConversationVisualisation.js +3 -3
- package/esm/components/messages/conversationContents/ConversationVisualizationContent.d.ts.map +1 -1
- package/esm/components/messages/conversationContents/ConversationVisualizationContent.js +2 -1
- package/esm/components/messages/conversationContents/useKdaDefinition.js +8 -0
- package/esm/index.d.ts +2 -2
- package/esm/index.d.ts.map +1 -1
- package/esm/index.js +2 -2
- package/esm/internal.d.ts +1 -2
- package/esm/internal.d.ts.map +1 -1
- package/esm/internal.js +1 -2
- package/esm/localization/bundles/de-DE.localization-bundle.d.ts +5 -0
- package/esm/localization/bundles/de-DE.localization-bundle.d.ts.map +1 -1
- package/esm/localization/bundles/de-DE.localization-bundle.js +6 -1
- package/esm/localization/bundles/en-AU.localization-bundle.d.ts +5 -0
- package/esm/localization/bundles/en-AU.localization-bundle.d.ts.map +1 -1
- package/esm/localization/bundles/en-AU.localization-bundle.js +6 -1
- package/esm/localization/bundles/en-GB.localization-bundle.d.ts +5 -0
- package/esm/localization/bundles/en-GB.localization-bundle.d.ts.map +1 -1
- package/esm/localization/bundles/en-GB.localization-bundle.js +6 -1
- package/esm/localization/bundles/es-419.localization-bundle.d.ts +5 -0
- package/esm/localization/bundles/es-419.localization-bundle.d.ts.map +1 -1
- package/esm/localization/bundles/es-419.localization-bundle.js +6 -1
- package/esm/localization/bundles/es-ES.localization-bundle.d.ts +5 -0
- package/esm/localization/bundles/es-ES.localization-bundle.d.ts.map +1 -1
- package/esm/localization/bundles/es-ES.localization-bundle.js +6 -1
- package/esm/localization/bundles/fi-FI.localization-bundle.d.ts +5 -0
- package/esm/localization/bundles/fi-FI.localization-bundle.d.ts.map +1 -1
- package/esm/localization/bundles/fi-FI.localization-bundle.js +6 -1
- package/esm/localization/bundles/fr-CA.localization-bundle.d.ts +5 -0
- package/esm/localization/bundles/fr-CA.localization-bundle.d.ts.map +1 -1
- package/esm/localization/bundles/fr-CA.localization-bundle.js +6 -1
- package/esm/localization/bundles/fr-FR.localization-bundle.d.ts +5 -0
- package/esm/localization/bundles/fr-FR.localization-bundle.d.ts.map +1 -1
- package/esm/localization/bundles/fr-FR.localization-bundle.js +6 -1
- package/esm/localization/bundles/id-ID.localization-bundle.d.ts +5 -0
- package/esm/localization/bundles/id-ID.localization-bundle.d.ts.map +1 -1
- package/esm/localization/bundles/id-ID.localization-bundle.js +6 -1
- package/esm/localization/bundles/it-IT.localization-bundle.d.ts +5 -0
- package/esm/localization/bundles/it-IT.localization-bundle.d.ts.map +1 -1
- package/esm/localization/bundles/it-IT.localization-bundle.js +6 -1
- package/esm/localization/bundles/ja-JP.localization-bundle.d.ts +5 -0
- package/esm/localization/bundles/ja-JP.localization-bundle.d.ts.map +1 -1
- package/esm/localization/bundles/ja-JP.localization-bundle.js +6 -1
- package/esm/localization/bundles/ko-KR.localization-bundle.d.ts +5 -0
- package/esm/localization/bundles/ko-KR.localization-bundle.d.ts.map +1 -1
- package/esm/localization/bundles/ko-KR.localization-bundle.js +6 -1
- package/esm/localization/bundles/nl-NL.localization-bundle.d.ts +5 -0
- package/esm/localization/bundles/nl-NL.localization-bundle.d.ts.map +1 -1
- package/esm/localization/bundles/nl-NL.localization-bundle.js +6 -1
- package/esm/localization/bundles/pl-PL.localization-bundle.d.ts +5 -0
- package/esm/localization/bundles/pl-PL.localization-bundle.d.ts.map +1 -1
- package/esm/localization/bundles/pl-PL.localization-bundle.js +6 -1
- package/esm/localization/bundles/pt-BR.localization-bundle.d.ts +5 -0
- package/esm/localization/bundles/pt-BR.localization-bundle.d.ts.map +1 -1
- package/esm/localization/bundles/pt-BR.localization-bundle.js +6 -1
- package/esm/localization/bundles/pt-PT.localization-bundle.d.ts +5 -0
- package/esm/localization/bundles/pt-PT.localization-bundle.d.ts.map +1 -1
- package/esm/localization/bundles/pt-PT.localization-bundle.js +6 -1
- package/esm/localization/bundles/ru-RU.localization-bundle.d.ts +5 -0
- package/esm/localization/bundles/ru-RU.localization-bundle.d.ts.map +1 -1
- package/esm/localization/bundles/ru-RU.localization-bundle.js +6 -1
- package/esm/localization/bundles/sl-SI.localization-bundle.d.ts +5 -0
- package/esm/localization/bundles/sl-SI.localization-bundle.d.ts.map +1 -1
- package/esm/localization/bundles/sl-SI.localization-bundle.js +6 -1
- package/esm/localization/bundles/th-TH.localization-bundle.d.ts +5 -0
- package/esm/localization/bundles/th-TH.localization-bundle.d.ts.map +1 -1
- package/esm/localization/bundles/th-TH.localization-bundle.js +6 -1
- package/esm/localization/bundles/tr-TR.localization-bundle.d.ts +5 -0
- package/esm/localization/bundles/tr-TR.localization-bundle.d.ts.map +1 -1
- package/esm/localization/bundles/tr-TR.localization-bundle.js +6 -1
- package/esm/localization/bundles/uk-UA.localization-bundle.d.ts +5 -0
- package/esm/localization/bundles/uk-UA.localization-bundle.d.ts.map +1 -1
- package/esm/localization/bundles/uk-UA.localization-bundle.js +6 -1
- package/esm/localization/bundles/vi-VN.localization-bundle.d.ts +5 -0
- package/esm/localization/bundles/vi-VN.localization-bundle.d.ts.map +1 -1
- package/esm/localization/bundles/vi-VN.localization-bundle.js +6 -1
- package/esm/localization/bundles/zh-HK.localization-bundle.d.ts +5 -0
- package/esm/localization/bundles/zh-HK.localization-bundle.d.ts.map +1 -1
- package/esm/localization/bundles/zh-HK.localization-bundle.js +6 -1
- package/esm/localization/bundles/zh-Hans.localization-bundle.d.ts +5 -0
- package/esm/localization/bundles/zh-Hans.localization-bundle.d.ts.map +1 -1
- package/esm/localization/bundles/zh-Hans.localization-bundle.js +6 -1
- package/esm/localization/bundles/zh-Hant.localization-bundle.d.ts +5 -0
- package/esm/localization/bundles/zh-Hant.localization-bundle.d.ts.map +1 -1
- package/esm/localization/bundles/zh-Hant.localization-bundle.js +6 -1
- package/esm/sdk-ui-gen-ai.d.ts +41 -1
- package/esm/store/chatWindow/chatWindowSlice.d.ts +1 -0
- package/esm/store/chatWindow/chatWindowSlice.d.ts.map +1 -1
- package/esm/store/events.d.ts +18 -2
- package/esm/store/events.d.ts.map +1 -1
- package/esm/store/events.js +7 -0
- package/esm/store/sideEffects/onDefinitionReceivedTrigger.d.ts.map +1 -1
- package/esm/store/sideEffects/onDefinitionReceivedTrigger.js +1 -0
- package/esm/store/sideEffects/onEvent.d.ts.map +1 -1
- package/esm/store/sideEffects/onEvent.js +23 -1
- package/package.json +20 -20
|
@@ -33,11 +33,16 @@ export declare const zh_HK: {
|
|
|
33
33
|
"gd.gen-ai.context.untitled": string;
|
|
34
34
|
"gd.gen-ai.agents": string;
|
|
35
35
|
"gd.gen-ai.agents.loading": string;
|
|
36
|
+
"gd.gen-ai.agent.trigger.ariaLabel": string;
|
|
37
|
+
"gd.gen-ai.agent.trigger.withReasoning.ariaLabel": string;
|
|
36
38
|
"gd.gen-ai.agent.unavailable": string;
|
|
37
39
|
"gd.gen-ai.agent.unavailable.disabled-tooltip": string;
|
|
38
40
|
"gd.gen-ai.agent.switched": string;
|
|
39
41
|
"gd.gen-ai.close": string;
|
|
42
|
+
"gd.gen-ai.close.reasoning": string;
|
|
43
|
+
"gd.gen-ai.effort.trigger.ariaLabel": string;
|
|
40
44
|
"gd.gen-ai.reasoning": string;
|
|
45
|
+
"gd.gen-ai.reasoning.row.ariaLabel": string;
|
|
41
46
|
"gd.gen-ai.reasoning.quick": string;
|
|
42
47
|
"gd.gen-ai.reasoning.quick.full": string;
|
|
43
48
|
"gd.gen-ai.reasoning.quick.description": string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"zh-HK.localization-bundle.d.ts","sourceRoot":"","sources":["../../../src/localization/bundles/zh-HK.localization-bundle.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,KAAK
|
|
1
|
+
{"version":3,"file":"zh-HK.localization-bundle.d.ts","sourceRoot":"","sources":["../../../src/localization/bundles/zh-HK.localization-bundle.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,KAAK;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA0MjB,CAAC"}
|
|
@@ -35,11 +35,16 @@ export const zh_HK = {
|
|
|
35
35
|
"gd.gen-ai.context.untitled": "《無題》",
|
|
36
36
|
"gd.gen-ai.agents": "代理",
|
|
37
37
|
"gd.gen-ai.agents.loading": "載入中",
|
|
38
|
+
"gd.gen-ai.agent.trigger.ariaLabel": "代理:{agent}。",
|
|
39
|
+
"gd.gen-ai.agent.trigger.withReasoning.ariaLabel": "代理:{agent}。推理深度:{effort}。",
|
|
38
40
|
"gd.gen-ai.agent.unavailable": "沒有可用的代理",
|
|
39
41
|
"gd.gen-ai.agent.unavailable.disabled-tooltip": "已停用 — 沒有可用的代理。",
|
|
40
42
|
"gd.gen-ai.agent.switched": "已切換至 {title} 代理",
|
|
41
|
-
"gd.gen-ai.close": "
|
|
43
|
+
"gd.gen-ai.close": "關閉代理",
|
|
44
|
+
"gd.gen-ai.close.reasoning": "關閉推理深度",
|
|
45
|
+
"gd.gen-ai.effort.trigger.ariaLabel": "推理深度:{effort}。",
|
|
42
46
|
"gd.gen-ai.reasoning": "推理深度",
|
|
47
|
+
"gd.gen-ai.reasoning.row.ariaLabel": "推理深度:{effort}。",
|
|
43
48
|
"gd.gen-ai.reasoning.quick": "快速",
|
|
44
49
|
"gd.gen-ai.reasoning.quick.full": "快速回答",
|
|
45
50
|
"gd.gen-ai.reasoning.quick.description": "為日常問題提供快速解答,例如尋找和建立可視化。",
|
|
@@ -33,11 +33,16 @@ export declare const zh_Hans: {
|
|
|
33
33
|
"gd.gen-ai.context.untitled": string;
|
|
34
34
|
"gd.gen-ai.agents": string;
|
|
35
35
|
"gd.gen-ai.agents.loading": string;
|
|
36
|
+
"gd.gen-ai.agent.trigger.ariaLabel": string;
|
|
37
|
+
"gd.gen-ai.agent.trigger.withReasoning.ariaLabel": string;
|
|
36
38
|
"gd.gen-ai.agent.unavailable": string;
|
|
37
39
|
"gd.gen-ai.agent.unavailable.disabled-tooltip": string;
|
|
38
40
|
"gd.gen-ai.agent.switched": string;
|
|
39
41
|
"gd.gen-ai.close": string;
|
|
42
|
+
"gd.gen-ai.close.reasoning": string;
|
|
43
|
+
"gd.gen-ai.effort.trigger.ariaLabel": string;
|
|
40
44
|
"gd.gen-ai.reasoning": string;
|
|
45
|
+
"gd.gen-ai.reasoning.row.ariaLabel": string;
|
|
41
46
|
"gd.gen-ai.reasoning.quick": string;
|
|
42
47
|
"gd.gen-ai.reasoning.quick.full": string;
|
|
43
48
|
"gd.gen-ai.reasoning.quick.description": string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"zh-Hans.localization-bundle.d.ts","sourceRoot":"","sources":["../../../src/localization/bundles/zh-Hans.localization-bundle.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,OAAO
|
|
1
|
+
{"version":3,"file":"zh-Hans.localization-bundle.d.ts","sourceRoot":"","sources":["../../../src/localization/bundles/zh-Hans.localization-bundle.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA0MnB,CAAC"}
|
|
@@ -35,11 +35,16 @@ export const zh_Hans = {
|
|
|
35
35
|
"gd.gen-ai.context.untitled": "无标题",
|
|
36
36
|
"gd.gen-ai.agents": "智能体",
|
|
37
37
|
"gd.gen-ai.agents.loading": "正在加载",
|
|
38
|
+
"gd.gen-ai.agent.trigger.ariaLabel": "智能体:{agent}。",
|
|
39
|
+
"gd.gen-ai.agent.trigger.withReasoning.ariaLabel": "智能体:{agent}。推理强度:{effort}。",
|
|
38
40
|
"gd.gen-ai.agent.unavailable": "无可用智能体",
|
|
39
41
|
"gd.gen-ai.agent.unavailable.disabled-tooltip": "已禁用——无可用智能体。",
|
|
40
42
|
"gd.gen-ai.agent.switched": "已切换到 {title} 智能体",
|
|
41
|
-
"gd.gen-ai.close": "
|
|
43
|
+
"gd.gen-ai.close": "关闭智能体",
|
|
44
|
+
"gd.gen-ai.close.reasoning": "关闭推理强度",
|
|
45
|
+
"gd.gen-ai.effort.trigger.ariaLabel": "推理强度:{effort}。",
|
|
42
46
|
"gd.gen-ai.reasoning": "推理强度",
|
|
47
|
+
"gd.gen-ai.reasoning.row.ariaLabel": "推理强度:{effort}。",
|
|
43
48
|
"gd.gen-ai.reasoning.quick": "快速",
|
|
44
49
|
"gd.gen-ai.reasoning.quick.full": "快速回答",
|
|
45
50
|
"gd.gen-ai.reasoning.quick.description": "为查找和构建可视化等日常问题提供快速回答。",
|
|
@@ -33,11 +33,16 @@ export declare const zh_Hant: {
|
|
|
33
33
|
"gd.gen-ai.context.untitled": string;
|
|
34
34
|
"gd.gen-ai.agents": string;
|
|
35
35
|
"gd.gen-ai.agents.loading": string;
|
|
36
|
+
"gd.gen-ai.agent.trigger.ariaLabel": string;
|
|
37
|
+
"gd.gen-ai.agent.trigger.withReasoning.ariaLabel": string;
|
|
36
38
|
"gd.gen-ai.agent.unavailable": string;
|
|
37
39
|
"gd.gen-ai.agent.unavailable.disabled-tooltip": string;
|
|
38
40
|
"gd.gen-ai.agent.switched": string;
|
|
39
41
|
"gd.gen-ai.close": string;
|
|
42
|
+
"gd.gen-ai.close.reasoning": string;
|
|
43
|
+
"gd.gen-ai.effort.trigger.ariaLabel": string;
|
|
40
44
|
"gd.gen-ai.reasoning": string;
|
|
45
|
+
"gd.gen-ai.reasoning.row.ariaLabel": string;
|
|
41
46
|
"gd.gen-ai.reasoning.quick": string;
|
|
42
47
|
"gd.gen-ai.reasoning.quick.full": string;
|
|
43
48
|
"gd.gen-ai.reasoning.quick.description": string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"zh-Hant.localization-bundle.d.ts","sourceRoot":"","sources":["../../../src/localization/bundles/zh-Hant.localization-bundle.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,OAAO
|
|
1
|
+
{"version":3,"file":"zh-Hant.localization-bundle.d.ts","sourceRoot":"","sources":["../../../src/localization/bundles/zh-Hant.localization-bundle.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA0MnB,CAAC"}
|
|
@@ -35,11 +35,16 @@ export const zh_Hant = {
|
|
|
35
35
|
"gd.gen-ai.context.untitled": "無標題",
|
|
36
36
|
"gd.gen-ai.agents": "代理程式",
|
|
37
37
|
"gd.gen-ai.agents.loading": "載入中",
|
|
38
|
+
"gd.gen-ai.agent.trigger.ariaLabel": "代理程式:{agent}。",
|
|
39
|
+
"gd.gen-ai.agent.trigger.withReasoning.ariaLabel": "代理程式:{agent}。推理強度:{effort}。",
|
|
38
40
|
"gd.gen-ai.agent.unavailable": "沒有可用的智能體",
|
|
39
41
|
"gd.gen-ai.agent.unavailable.disabled-tooltip": "已停用 — 沒有可用的智能體。",
|
|
40
42
|
"gd.gen-ai.agent.switched": "已切換至 {title} 智能體",
|
|
41
|
-
"gd.gen-ai.close": "
|
|
43
|
+
"gd.gen-ai.close": "關閉代理程式",
|
|
44
|
+
"gd.gen-ai.close.reasoning": "關閉推理強度",
|
|
45
|
+
"gd.gen-ai.effort.trigger.ariaLabel": "推理強度:{effort}。",
|
|
42
46
|
"gd.gen-ai.reasoning": "推理強度",
|
|
47
|
+
"gd.gen-ai.reasoning.row.ariaLabel": "推理強度:{effort}。",
|
|
43
48
|
"gd.gen-ai.reasoning.quick": "快速",
|
|
44
49
|
"gd.gen-ai.reasoning.quick.full": "快速回答",
|
|
45
50
|
"gd.gen-ai.reasoning.quick.description": "針對日常問題提供快速回答,例如尋找和建立視覺化。",
|
package/esm/sdk-ui-gen-ai.d.ts
CHANGED
|
@@ -23,6 +23,7 @@ import { IChatSuggestions } from '@gooddata/sdk-backend-spi';
|
|
|
23
23
|
import { IColorPalette } from '@gooddata/sdk-model';
|
|
24
24
|
import { IDashboard } from '@gooddata/sdk-model';
|
|
25
25
|
import type { IGenAIChangeAnalysisParams } from '@gooddata/sdk-model';
|
|
26
|
+
import { IGenAIUserContext } from '@gooddata/sdk-model';
|
|
26
27
|
import type { IGenAIVisualization } from '@gooddata/sdk-model';
|
|
27
28
|
import { IInsight } from '@gooddata/sdk-model';
|
|
28
29
|
import type { ISemanticSearchRelationship } from '@gooddata/sdk-model';
|
|
@@ -117,6 +118,17 @@ export declare type ChatClosedEvent = BaseEvent & {
|
|
|
117
118
|
type: "chatClosed";
|
|
118
119
|
};
|
|
119
120
|
|
|
121
|
+
/**
|
|
122
|
+
* A chat context change event.
|
|
123
|
+
* @public
|
|
124
|
+
*/
|
|
125
|
+
export declare type ChatContextChangeEvent = BaseEvent & {
|
|
126
|
+
type: "onContextChange";
|
|
127
|
+
contextType: "ambient" | "user";
|
|
128
|
+
userContext?: IGenAIUserContext;
|
|
129
|
+
replaceUserContext?: boolean;
|
|
130
|
+
};
|
|
131
|
+
|
|
120
132
|
/**
|
|
121
133
|
* A chat copy to clipboard event.
|
|
122
134
|
* @public
|
|
@@ -225,6 +237,7 @@ export declare type ChatDefinitionReceivedEvent = BaseEvent & {
|
|
|
225
237
|
conversationId: string;
|
|
226
238
|
interactionId?: string;
|
|
227
239
|
dashboard?: IDashboard;
|
|
240
|
+
insights?: IInsight[];
|
|
228
241
|
visualization?: NonNullable<IChatConversationVisualisationContent["visualization"]>;
|
|
229
242
|
};
|
|
230
243
|
|
|
@@ -232,7 +245,7 @@ export declare type ChatDefinitionReceivedEvent = BaseEvent & {
|
|
|
232
245
|
* A union type for all chat events.
|
|
233
246
|
* @public
|
|
234
247
|
*/
|
|
235
|
-
export declare type ChatEvent = ChatOpenedEvent | ChatClosedEvent | ChatResetEvent | ChatModeChangeEvent | ChatConversationPinnedEvent | ChatConversationPinErrorEvent | ChatConversationDeleteEvent | ChatConversationDeletedSuccessEvent | ChatConversationDeletedErrorEvent | ChatConversationRenameEvent | ChatConversationRenamedSuccessEvent | ChatConversationRenamedErrorEvent | ChatUserMessageEvent | ChatAgentChangeEvent | ChatAssistantMessageEvent | ChatFeedbackEvent | ChatFeedbackErrorEvent | ChatCopyToClipboardEvent | ChatVisualizationErrorEvent | ChatSaveVisualizationErrorEvent | ChatSaveVisualizationSuccessEvent | ChatConversationChangedEvent | ChatDefinitionReceivedEvent;
|
|
248
|
+
export declare type ChatEvent = ChatOpenedEvent | ChatClosedEvent | ChatResetEvent | ChatModeChangeEvent | ChatConversationPinnedEvent | ChatConversationPinErrorEvent | ChatConversationDeleteEvent | ChatConversationDeletedSuccessEvent | ChatConversationDeletedErrorEvent | ChatConversationRenameEvent | ChatConversationRenamedSuccessEvent | ChatConversationRenamedErrorEvent | ChatUserMessageEvent | ChatAgentChangeEvent | ChatAssistantMessageEvent | ChatFeedbackEvent | ChatFeedbackErrorEvent | ChatContextChangeEvent | ChatCopyToClipboardEvent | ChatVisualizationErrorEvent | ChatSaveVisualizationErrorEvent | ChatSaveVisualizationSuccessEvent | ChatConversationChangedEvent | ChatDefinitionReceivedEvent;
|
|
236
249
|
|
|
237
250
|
/**
|
|
238
251
|
* An event handler for the Chat component.
|
|
@@ -700,6 +713,12 @@ export declare const isChatAssistantMessageEvent: (event: ChatEvent) => event is
|
|
|
700
713
|
*/
|
|
701
714
|
export declare const isChatClosedEvent: (event: ChatEvent) => event is ChatClosedEvent;
|
|
702
715
|
|
|
716
|
+
/**
|
|
717
|
+
* Type guard for the ChatContextChangeEvent.
|
|
718
|
+
* @public
|
|
719
|
+
*/
|
|
720
|
+
export declare const isChatContextChangeEvent: (event: ChatEvent) => event is ChatContextChangeEvent;
|
|
721
|
+
|
|
703
722
|
/**
|
|
704
723
|
* Type guard for the ChatCopyToClipboardEvent.
|
|
705
724
|
* @public
|
|
@@ -934,6 +953,16 @@ export declare type SemanticSearchContents = {
|
|
|
934
953
|
relationships: ISemanticSearchRelationship[];
|
|
935
954
|
};
|
|
936
955
|
|
|
956
|
+
/**
|
|
957
|
+
* @public
|
|
958
|
+
*/
|
|
959
|
+
export declare const /**
|
|
960
|
+
* @public
|
|
961
|
+
*/
|
|
962
|
+
setAmbientUserContextAction: ActionCreatorWithPayload< {
|
|
963
|
+
userContext?: IGenAIUserContext | undefined;
|
|
964
|
+
}, "chatWindow/setAmbientUserContextAction">;
|
|
965
|
+
|
|
937
966
|
/**
|
|
938
967
|
* @public
|
|
939
968
|
*/
|
|
@@ -968,6 +997,17 @@ previousAgentId?: string | undefined;
|
|
|
968
997
|
showChangeEvent?: boolean | undefined;
|
|
969
998
|
}, "messages/setSelectedAgentAction">;
|
|
970
999
|
|
|
1000
|
+
/**
|
|
1001
|
+
* @public
|
|
1002
|
+
*/
|
|
1003
|
+
export declare const /**
|
|
1004
|
+
* @public
|
|
1005
|
+
*/
|
|
1006
|
+
setUserContextAction: ActionCreatorWithPayload< {
|
|
1007
|
+
userContext?: IGenAIUserContext | undefined;
|
|
1008
|
+
replaceUserContext?: boolean | undefined;
|
|
1009
|
+
}, "chatWindow/setUserContextAction">;
|
|
1010
|
+
|
|
971
1011
|
/**
|
|
972
1012
|
* @public
|
|
973
1013
|
*/
|
|
@@ -94,6 +94,7 @@ export declare const setOpenAction: import("@reduxjs/toolkit").ActionCreatorWith
|
|
|
94
94
|
itemId: string;
|
|
95
95
|
interactionId?: string | undefined;
|
|
96
96
|
dashboard?: IDashboard<import("@gooddata/sdk-model").IDashboardWidget> | undefined;
|
|
97
|
+
insights?: IInsight[] | undefined;
|
|
97
98
|
visualization?: IInsight | undefined;
|
|
98
99
|
}, "chatWindow/onDefinitionReceivedAction">, addContextReferenceAction: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
|
|
99
100
|
object: IGenAIContextObject;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"chatWindowSlice.d.ts","sourceRoot":"","sources":["../../../src/store/chatWindow/chatWindowSlice.ts"],"names":[],"mappings":"AAEA,OAAO,EAAsB,KAAK,OAAO,EAAe,MAAM,kBAAkB,CAAC;AAEjF,OAAO,EAAE,KAAK,sBAAsB,EAAE,MAAM,2BAA2B,CAAC;AACxE,OAAO,EACH,KAAK,WAAW,EAChB,KAAK,eAAe,EACpB,KAAK,wBAAwB,EAC7B,KAAK,aAAa,EAClB,KAAK,UAAU,EACf,KAAK,iBAAiB,EACtB,KAAK,QAAQ,EAChB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,4BAA4B,CAAC;AAKjE,OAAO,EAAE,KAAK,mBAAmB,EAAE,KAAK,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAG7E,KAAK,oBAAoB,GAAG;IACxB;;OAEG;IACH,MAAM,EAAE,OAAO,CAAC;IAChB;;OAEG;IACH,YAAY,EAAE,OAAO,CAAC;IACtB;;OAEG;IACH,SAAS,EAAE,OAAO,CAAC;I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ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type IChatConversation, type IChatConversationVisualisationContent } from "@gooddata/sdk-backend-spi";
|
|
2
|
-
import { type IDashboard } from "@gooddata/sdk-model";
|
|
2
|
+
import { type IDashboard, type IGenAIUserContext, type IInsight } from "@gooddata/sdk-model";
|
|
3
3
|
import { type SdkErrorType } from "@gooddata/sdk-ui";
|
|
4
4
|
import { type GenAIAssistantMode } from "../components/ConfigContext.js";
|
|
5
5
|
import { type IChatConversationLocal, type TextContentObject } from "../model.js";
|
|
@@ -292,6 +292,7 @@ export type ChatDefinitionReceivedEvent = BaseEvent & {
|
|
|
292
292
|
conversationId: string;
|
|
293
293
|
interactionId?: string;
|
|
294
294
|
dashboard?: IDashboard;
|
|
295
|
+
insights?: IInsight[];
|
|
295
296
|
visualization?: NonNullable<IChatConversationVisualisationContent["visualization"]>;
|
|
296
297
|
};
|
|
297
298
|
/**
|
|
@@ -326,11 +327,26 @@ export type ChatAgentChangeEvent = BaseEvent & {
|
|
|
326
327
|
* @public
|
|
327
328
|
*/
|
|
328
329
|
export declare const isChatAgentChangeEvent: (event: ChatEvent) => event is ChatAgentChangeEvent;
|
|
330
|
+
/**
|
|
331
|
+
* A chat context change event.
|
|
332
|
+
* @public
|
|
333
|
+
*/
|
|
334
|
+
export type ChatContextChangeEvent = BaseEvent & {
|
|
335
|
+
type: "onContextChange";
|
|
336
|
+
contextType: "ambient" | "user";
|
|
337
|
+
userContext?: IGenAIUserContext;
|
|
338
|
+
replaceUserContext?: boolean;
|
|
339
|
+
};
|
|
340
|
+
/**
|
|
341
|
+
* Type guard for the ChatContextChangeEvent.
|
|
342
|
+
* @public
|
|
343
|
+
*/
|
|
344
|
+
export declare const isChatContextChangeEvent: (event: ChatEvent) => event is ChatContextChangeEvent;
|
|
329
345
|
/**
|
|
330
346
|
* A union type for all chat events.
|
|
331
347
|
* @public
|
|
332
348
|
*/
|
|
333
|
-
export type ChatEvent = ChatOpenedEvent | ChatClosedEvent | ChatResetEvent | ChatModeChangeEvent | ChatConversationPinnedEvent | ChatConversationPinErrorEvent | ChatConversationDeleteEvent | ChatConversationDeletedSuccessEvent | ChatConversationDeletedErrorEvent | ChatConversationRenameEvent | ChatConversationRenamedSuccessEvent | ChatConversationRenamedErrorEvent | ChatUserMessageEvent | ChatAgentChangeEvent | ChatAssistantMessageEvent | ChatFeedbackEvent | ChatFeedbackErrorEvent | ChatCopyToClipboardEvent | ChatVisualizationErrorEvent | ChatSaveVisualizationErrorEvent | ChatSaveVisualizationSuccessEvent | ChatConversationChangedEvent | ChatDefinitionReceivedEvent;
|
|
349
|
+
export type ChatEvent = ChatOpenedEvent | ChatClosedEvent | ChatResetEvent | ChatModeChangeEvent | ChatConversationPinnedEvent | ChatConversationPinErrorEvent | ChatConversationDeleteEvent | ChatConversationDeletedSuccessEvent | ChatConversationDeletedErrorEvent | ChatConversationRenameEvent | ChatConversationRenamedSuccessEvent | ChatConversationRenamedErrorEvent | ChatUserMessageEvent | ChatAgentChangeEvent | ChatAssistantMessageEvent | ChatFeedbackEvent | ChatFeedbackErrorEvent | ChatContextChangeEvent | ChatCopyToClipboardEvent | ChatVisualizationErrorEvent | ChatSaveVisualizationErrorEvent | ChatSaveVisualizationSuccessEvent | ChatConversationChangedEvent | ChatDefinitionReceivedEvent;
|
|
334
350
|
/**
|
|
335
351
|
* An event handler for the Chat component.
|
|
336
352
|
* @public
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"events.d.ts","sourceRoot":"","sources":["../../src/store/events.ts"],"names":[],"mappings":"AAEA,OAAO,EACH,KAAK,iBAAiB,EACtB,KAAK,qCAAqC,EAC7C,MAAM,2BAA2B,CAAC;AACnC,OAAO,EAAE,KAAK,UAAU,EAAE,MAAM,qBAAqB,CAAC;
|
|
1
|
+
{"version":3,"file":"events.d.ts","sourceRoot":"","sources":["../../src/store/events.ts"],"names":[],"mappings":"AAEA,OAAO,EACH,KAAK,iBAAiB,EACtB,KAAK,qCA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,SAAS,GAAG,GAAG,IAAI;IAC3D;;OAEG;IACH,IAAI,EAAE,CAAC,KAAK,EAAE,SAAS,KAAK,KAAK,IAAI,MAAM,CAAC;IAC5C;;OAEG;IACH,OAAO,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;CACpC,CAAC;AAEF;;;GAGG;AACH,qBAAa,eAAe;IACxB,OAAO,CAAC,QAAQ,CAA0B;IAEnC,WAAW,CAAC,QAAQ,EAAE,gBAAgB,EAAE,GAAG,IAAI,CAErD;IAEM,QAAQ,CAAC,KAAK,EAAE,SAAS,GAAG,IAAI,CAMtC;CACJ"}
|
package/esm/store/events.js
CHANGED
|
@@ -160,6 +160,13 @@ export const isChatModeChangeEvent = (event) => {
|
|
|
160
160
|
export const isChatAgentChangeEvent = (event) => {
|
|
161
161
|
return event.type === "onSelectedAgentAction";
|
|
162
162
|
};
|
|
163
|
+
/**
|
|
164
|
+
* Type guard for the ChatContextChangeEvent.
|
|
165
|
+
* @public
|
|
166
|
+
*/
|
|
167
|
+
export const isChatContextChangeEvent = (event) => {
|
|
168
|
+
return event.type === "onContextChange";
|
|
169
|
+
};
|
|
163
170
|
/**
|
|
164
171
|
* A dispatcher for chat events.
|
|
165
172
|
* @internal
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"onDefinitionReceivedTrigger.d.ts","sourceRoot":"","sources":["../../../src/store/sideEffects/onDefinitionReceivedTrigger.ts"],"names":[],"mappings":"AAYA,OAAO,EACH,KAAK,0BAA0B,EAC/B,KAAK,OAAO,EAGf,MAAM,gBAAgB,CAAC;AAGxB;;;GAGG;AACH,wBAAiB,wBAAwB,CACrC,KAAK,EAAE,0BAA0B,GAAG,OAAO,GAAG,CAAC,0BAA0B,GAAG,OAAO,CAAC,EAAE,EACtF,cAAc,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"onDefinitionReceivedTrigger.d.ts","sourceRoot":"","sources":["../../../src/store/sideEffects/onDefinitionReceivedTrigger.ts"],"names":[],"mappings":"AAYA,OAAO,EACH,KAAK,0BAA0B,EAC/B,KAAK,OAAO,EAGf,MAAM,gBAAgB,CAAC;AAGxB;;;GAGG;AACH,wBAAiB,wBAAwB,CACrC,KAAK,EAAE,0BAA0B,GAAG,OAAO,GAAG,CAAC,0BAA0B,GAAG,OAAO,CAAC,EAAE,EACtF,cAAc,EAAE,MAAM,iCAuDzB"}
|
|
@@ -24,6 +24,7 @@ export function* notifyDefinitionReceived(items, conversationId) {
|
|
|
24
24
|
itemId: item.id,
|
|
25
25
|
definitionType: "dashboard",
|
|
26
26
|
dashboard: multipartContent.dashboard,
|
|
27
|
+
insights: multipartContent.insights ?? [],
|
|
27
28
|
}));
|
|
28
29
|
}
|
|
29
30
|
else if (isChatConversationVisualisationContent(multipartContent) &&
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"onEvent.d.ts","sourceRoot":"","sources":["../../../src/store/sideEffects/onEvent.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"onEvent.d.ts","sourceRoot":"","sources":["../../../src/store/sideEffects/onEvent.ts"],"names":[],"mappings":"AAyDA,wBAAiB,OAAO,6EA4BvB"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// (C) 2024-2026 GoodData Corporation
|
|
2
2
|
import { call, getContext, select, takeEvery } from "redux-saga/effects";
|
|
3
3
|
import { isChatConversationLocalItem, isRoutingContents, isTextContents, isUserMessage, } from "../../model.js";
|
|
4
|
-
import { copyToClipboardAction, onDefinitionReceivedAction, setFullscreenAction, setOpenAction, } from "../chatWindow/chatWindowSlice.js";
|
|
4
|
+
import { copyToClipboardAction, onDefinitionReceivedAction, setAmbientUserContextAction, setFullscreenAction, setOpenAction, setUserContextAction, } from "../chatWindow/chatWindowSlice.js";
|
|
5
5
|
import { clearCachedMessages, saveMessages, setIsOpened } from "../localStorage.js";
|
|
6
6
|
import { conversationMessagesSelector, conversationSelector, messagesSelector, threadIdSelector, } from "../messages/messagesSelectors.js";
|
|
7
7
|
import { clearThreadAction, deleteConversationAction, deleteConversationFailureAction, deleteConversationSuccessAction, evaluateMessageCompleteAction, loadConversationSuccessAction, loadThreadSuccessAction, newMessageAction, pinConversationFailureAction, pinConversationSuccessAction, renameConversationAction, renameConversationFailureAction, renameConversationSuccessAction, saveVisualizationErrorAction, saveVisualizationSuccessAction, setCurrentConversationAction, setSelectedAgentAction, setUserFeedback, setUserFeedbackError, visualizationErrorAction, } from "../messages/messagesSlice.js";
|
|
@@ -31,6 +31,8 @@ export function* onEvent() {
|
|
|
31
31
|
yield takeEvery(renameConversationFailureAction.type, onConversationRenamedError);
|
|
32
32
|
yield takeEvery(setCurrentConversationAction.type, onConversationChanged);
|
|
33
33
|
yield takeEvery(loadConversationSuccessAction.type, onConversationLoaded);
|
|
34
|
+
yield takeEvery(setAmbientUserContextAction.type, onAmbientUserContextChanged);
|
|
35
|
+
yield takeEvery(setUserContextAction.type, onUserContextChanged);
|
|
34
36
|
}
|
|
35
37
|
function* onConversationPinUpdated({ payload: { conversation, pinned }, }) {
|
|
36
38
|
const eventDispatcher = yield getContext("eventDispatcher");
|
|
@@ -360,3 +362,23 @@ function convertMessageTypeTo(content) {
|
|
|
360
362
|
return "GENERAL";
|
|
361
363
|
}
|
|
362
364
|
}
|
|
365
|
+
function* onAmbientUserContextChanged({ payload }) {
|
|
366
|
+
const eventDispatcher = yield getContext("eventDispatcher");
|
|
367
|
+
const threadId = yield select(threadIdSelector);
|
|
368
|
+
eventDispatcher.dispatch({
|
|
369
|
+
type: "onContextChange",
|
|
370
|
+
threadId,
|
|
371
|
+
contextType: "ambient",
|
|
372
|
+
...payload,
|
|
373
|
+
});
|
|
374
|
+
}
|
|
375
|
+
function* onUserContextChanged({ payload }) {
|
|
376
|
+
const eventDispatcher = yield getContext("eventDispatcher");
|
|
377
|
+
const threadId = yield select(threadIdSelector);
|
|
378
|
+
eventDispatcher.dispatch({
|
|
379
|
+
type: "onContextChange",
|
|
380
|
+
threadId,
|
|
381
|
+
contextType: "user",
|
|
382
|
+
...payload,
|
|
383
|
+
});
|
|
384
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gooddata/sdk-ui-gen-ai",
|
|
3
|
-
"version": "11.52.0
|
|
3
|
+
"version": "11.52.0",
|
|
4
4
|
"description": "GoodData GenAI SDK",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "GoodData Corporation",
|
|
@@ -57,18 +57,18 @@
|
|
|
57
57
|
"reselect": "5.1.1",
|
|
58
58
|
"tslib": "2.8.1",
|
|
59
59
|
"uuid": "11.1.1",
|
|
60
|
-
"@gooddata/api-client-tiger": "11.52.0
|
|
61
|
-
"@gooddata/sdk-backend-spi": "11.52.0
|
|
62
|
-
"@gooddata/sdk-model": "11.52.0
|
|
63
|
-
"@gooddata/sdk-ui": "11.52.0
|
|
64
|
-
"@gooddata/sdk-ui-charts": "11.52.0
|
|
65
|
-
"@gooddata/sdk-ui-dashboard": "11.52.0
|
|
66
|
-
"@gooddata/sdk-ui-filters": "11.52.0
|
|
67
|
-
"@gooddata/sdk-ui-kit": "11.52.0
|
|
68
|
-
"@gooddata/sdk-ui-pivot": "11.52.0
|
|
69
|
-
"@gooddata/sdk-ui-semantic-search": "11.52.0
|
|
70
|
-
"@gooddata/sdk-ui-theme-provider": "11.52.0
|
|
71
|
-
"@gooddata/util": "11.52.0
|
|
60
|
+
"@gooddata/api-client-tiger": "11.52.0",
|
|
61
|
+
"@gooddata/sdk-backend-spi": "11.52.0",
|
|
62
|
+
"@gooddata/sdk-model": "11.52.0",
|
|
63
|
+
"@gooddata/sdk-ui": "11.52.0",
|
|
64
|
+
"@gooddata/sdk-ui-charts": "11.52.0",
|
|
65
|
+
"@gooddata/sdk-ui-dashboard": "11.52.0",
|
|
66
|
+
"@gooddata/sdk-ui-filters": "11.52.0",
|
|
67
|
+
"@gooddata/sdk-ui-kit": "11.52.0",
|
|
68
|
+
"@gooddata/sdk-ui-pivot": "11.52.0",
|
|
69
|
+
"@gooddata/sdk-ui-semantic-search": "11.52.0",
|
|
70
|
+
"@gooddata/sdk-ui-theme-provider": "11.52.0",
|
|
71
|
+
"@gooddata/util": "11.52.0"
|
|
72
72
|
},
|
|
73
73
|
"devDependencies": {
|
|
74
74
|
"@microsoft/api-documenter": "^7.17.0",
|
|
@@ -111,13 +111,13 @@
|
|
|
111
111
|
"typescript": "5.9.3",
|
|
112
112
|
"vitest": "4.1.8",
|
|
113
113
|
"vitest-dom": "0.1.1",
|
|
114
|
-
"@gooddata/eslint-config": "11.52.0
|
|
115
|
-
"@gooddata/
|
|
116
|
-
"@gooddata/
|
|
117
|
-
"@gooddata/
|
|
118
|
-
"@gooddata/sdk-
|
|
119
|
-
"@gooddata/
|
|
120
|
-
"@gooddata/stylelint-config": "11.52.0
|
|
114
|
+
"@gooddata/eslint-config": "11.52.0",
|
|
115
|
+
"@gooddata/oxlint-config": "11.52.0",
|
|
116
|
+
"@gooddata/i18n-toolkit": "11.52.0",
|
|
117
|
+
"@gooddata/reference-workspace": "11.52.0",
|
|
118
|
+
"@gooddata/sdk-backend-mockingbird": "11.52.0",
|
|
119
|
+
"@gooddata/sdk-ui-theme-provider": "11.52.0",
|
|
120
|
+
"@gooddata/stylelint-config": "11.52.0"
|
|
121
121
|
},
|
|
122
122
|
"peerDependencies": {
|
|
123
123
|
"react": "^18.0.0 || ^19.0.0",
|