@gooddata/sdk-ui-gen-ai 11.58.0-alpha.2 → 11.58.0-alpha.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.
- package/NOTICE +8 -8
- package/esm/components/ConfigContext.d.ts +1 -1
- package/esm/components/ConfigContext.d.ts.map +1 -1
- package/esm/components/CustomizationContext.d.ts +2 -1
- package/esm/components/CustomizationContext.d.ts.map +1 -1
- package/esm/components/CustomizationProvider.d.ts.map +1 -1
- package/esm/components/CustomizationProvider.js +10 -0
- package/esm/components/GenAIChatDialogConnected.d.ts +4 -1
- package/esm/components/GenAIChatDialogConnected.d.ts.map +1 -1
- package/esm/components/GenAIChatDialogConnected.js +4 -1
- package/esm/components/GenAIChatOverlay.js +1 -1
- package/esm/components/customized/ConversationVisualizationContent.d.ts +8 -0
- package/esm/components/customized/ConversationVisualizationContent.d.ts.map +1 -0
- package/esm/components/customized/ConversationVisualizationContent.js +11 -0
- package/esm/components/customized/types.d.ts +50 -1
- package/esm/components/customized/types.d.ts.map +1 -1
- package/esm/components/messages/contents/CustomHyperlink.d.ts.map +1 -1
- package/esm/components/messages/contents/CustomHyperlink.js +3 -0
- package/esm/components/messages/conversationContents/ConversationMultipartContent.d.ts.map +1 -1
- package/esm/components/messages/conversationContents/ConversationMultipartContent.js +3 -2
- package/esm/components/messages/conversationContents/ConversationVisualizationContent.d.ts +10 -1
- package/esm/components/messages/conversationContents/ConversationVisualizationContent.d.ts.map +1 -1
- package/esm/components/messages/conversationContents/ConversationVisualizationContent.js +77 -67
- package/esm/components/messages/conversationContents/ConversationWhatIfContent.d.ts.map +1 -1
- package/esm/components/messages/conversationContents/ConversationWhatIfContent.js +3 -2
- package/esm/context/dashboard.d.ts.map +1 -1
- package/esm/context/dashboard.js +17 -13
- package/esm/context/hooks/useDashboardAmbientContext.d.ts.map +1 -1
- package/esm/context/hooks/useDashboardAmbientContext.js +5 -2
- package/esm/index.d.ts +3 -1
- package/esm/index.d.ts.map +1 -1
- package/esm/index.js +1 -0
- package/esm/localization/bundles/de-DE.localization-bundle.d.ts +1 -3
- package/esm/localization/bundles/de-DE.localization-bundle.d.ts.map +1 -1
- package/esm/localization/bundles/de-DE.localization-bundle.js +1 -3
- package/esm/localization/bundles/en-AU.localization-bundle.d.ts +1 -3
- package/esm/localization/bundles/en-AU.localization-bundle.d.ts.map +1 -1
- package/esm/localization/bundles/en-AU.localization-bundle.js +1 -3
- package/esm/localization/bundles/en-GB.localization-bundle.d.ts +1 -3
- package/esm/localization/bundles/en-GB.localization-bundle.d.ts.map +1 -1
- package/esm/localization/bundles/en-GB.localization-bundle.js +1 -3
- package/esm/localization/bundles/es-419.localization-bundle.d.ts +1 -3
- package/esm/localization/bundles/es-419.localization-bundle.d.ts.map +1 -1
- package/esm/localization/bundles/es-419.localization-bundle.js +1 -3
- package/esm/localization/bundles/es-ES.localization-bundle.d.ts +1 -3
- package/esm/localization/bundles/es-ES.localization-bundle.d.ts.map +1 -1
- package/esm/localization/bundles/es-ES.localization-bundle.js +1 -3
- package/esm/localization/bundles/fi-FI.localization-bundle.d.ts +1 -3
- package/esm/localization/bundles/fi-FI.localization-bundle.d.ts.map +1 -1
- package/esm/localization/bundles/fi-FI.localization-bundle.js +1 -3
- package/esm/localization/bundles/fr-CA.localization-bundle.d.ts +1 -3
- package/esm/localization/bundles/fr-CA.localization-bundle.d.ts.map +1 -1
- package/esm/localization/bundles/fr-CA.localization-bundle.js +1 -3
- package/esm/localization/bundles/fr-FR.localization-bundle.d.ts +1 -3
- package/esm/localization/bundles/fr-FR.localization-bundle.d.ts.map +1 -1
- package/esm/localization/bundles/fr-FR.localization-bundle.js +1 -3
- package/esm/localization/bundles/id-ID.localization-bundle.d.ts +1 -3
- package/esm/localization/bundles/id-ID.localization-bundle.d.ts.map +1 -1
- package/esm/localization/bundles/id-ID.localization-bundle.js +1 -3
- package/esm/localization/bundles/it-IT.localization-bundle.d.ts +1 -3
- package/esm/localization/bundles/it-IT.localization-bundle.d.ts.map +1 -1
- package/esm/localization/bundles/it-IT.localization-bundle.js +1 -3
- package/esm/localization/bundles/ja-JP.localization-bundle.d.ts +1 -3
- package/esm/localization/bundles/ja-JP.localization-bundle.d.ts.map +1 -1
- package/esm/localization/bundles/ja-JP.localization-bundle.js +1 -3
- package/esm/localization/bundles/ko-KR.localization-bundle.d.ts +1 -3
- package/esm/localization/bundles/ko-KR.localization-bundle.d.ts.map +1 -1
- package/esm/localization/bundles/ko-KR.localization-bundle.js +1 -3
- package/esm/localization/bundles/nl-NL.localization-bundle.d.ts +1 -3
- package/esm/localization/bundles/nl-NL.localization-bundle.d.ts.map +1 -1
- package/esm/localization/bundles/nl-NL.localization-bundle.js +1 -3
- package/esm/localization/bundles/pl-PL.localization-bundle.d.ts +1 -3
- package/esm/localization/bundles/pl-PL.localization-bundle.d.ts.map +1 -1
- package/esm/localization/bundles/pl-PL.localization-bundle.js +1 -3
- package/esm/localization/bundles/pt-BR.localization-bundle.d.ts +1 -3
- package/esm/localization/bundles/pt-BR.localization-bundle.d.ts.map +1 -1
- package/esm/localization/bundles/pt-BR.localization-bundle.js +1 -3
- package/esm/localization/bundles/pt-PT.localization-bundle.d.ts +1 -3
- package/esm/localization/bundles/pt-PT.localization-bundle.d.ts.map +1 -1
- package/esm/localization/bundles/pt-PT.localization-bundle.js +1 -3
- package/esm/localization/bundles/ru-RU.localization-bundle.d.ts +1 -3
- package/esm/localization/bundles/ru-RU.localization-bundle.d.ts.map +1 -1
- package/esm/localization/bundles/ru-RU.localization-bundle.js +1 -3
- package/esm/localization/bundles/sl-SI.localization-bundle.d.ts +1 -3
- package/esm/localization/bundles/sl-SI.localization-bundle.d.ts.map +1 -1
- package/esm/localization/bundles/sl-SI.localization-bundle.js +1 -3
- package/esm/localization/bundles/th-TH.localization-bundle.d.ts +1 -3
- package/esm/localization/bundles/th-TH.localization-bundle.d.ts.map +1 -1
- package/esm/localization/bundles/th-TH.localization-bundle.js +1 -3
- package/esm/localization/bundles/tr-TR.localization-bundle.d.ts +1 -3
- package/esm/localization/bundles/tr-TR.localization-bundle.d.ts.map +1 -1
- package/esm/localization/bundles/tr-TR.localization-bundle.js +1 -3
- package/esm/localization/bundles/uk-UA.localization-bundle.d.ts +1 -3
- package/esm/localization/bundles/uk-UA.localization-bundle.d.ts.map +1 -1
- package/esm/localization/bundles/uk-UA.localization-bundle.js +1 -3
- package/esm/localization/bundles/vi-VN.localization-bundle.d.ts +1 -3
- package/esm/localization/bundles/vi-VN.localization-bundle.d.ts.map +1 -1
- package/esm/localization/bundles/vi-VN.localization-bundle.js +1 -3
- package/esm/localization/bundles/zh-HK.localization-bundle.d.ts +1 -3
- package/esm/localization/bundles/zh-HK.localization-bundle.d.ts.map +1 -1
- package/esm/localization/bundles/zh-HK.localization-bundle.js +1 -3
- package/esm/localization/bundles/zh-Hans.localization-bundle.d.ts +1 -3
- package/esm/localization/bundles/zh-Hans.localization-bundle.d.ts.map +1 -1
- package/esm/localization/bundles/zh-Hans.localization-bundle.js +1 -3
- package/esm/localization/bundles/zh-Hant.localization-bundle.d.ts +1 -3
- package/esm/localization/bundles/zh-Hant.localization-bundle.d.ts.map +1 -1
- package/esm/localization/bundles/zh-Hant.localization-bundle.js +1 -3
- package/esm/sdk-ui-gen-ai.d.ts +77 -1
- package/esm/whatIf/whatIfMapping.d.ts +1 -1
- package/package.json +20 -20
package/NOTICE
CHANGED
|
@@ -7,9 +7,9 @@
|
|
|
7
7
|
|
|
8
8
|
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.
|
|
9
9
|
|
|
10
|
-
Date generated: 2026-9-
|
|
10
|
+
Date generated: 2026-9-21
|
|
11
11
|
|
|
12
|
-
Revision ID:
|
|
12
|
+
Revision ID: d287888cbc82806bcb9866c66ecff9b2ff92c32b
|
|
13
13
|
|
|
14
14
|
================================================================================
|
|
15
15
|
================================================================================
|
|
@@ -13663,7 +13663,7 @@ MIT
|
|
|
13663
13663
|
|
|
13664
13664
|
Authors: 1075746765@qq.com, afc163@gmail.com, scdzwyxst@gmail.com, smith3816@gmail.com, wasd2144@hotmail.com
|
|
13665
13665
|
Package Manager: NPM
|
|
13666
|
-
Project URL: https://
|
|
13666
|
+
Project URL: https://react-component.github.io/resize-observer
|
|
13667
13667
|
Package Download URL: https://registry.npmjs.org/@rc-component/resize-observer/-/resize-observer-1.1.2.tgz
|
|
13668
13668
|
Dependency Path: @rc-component/picker > @rc-component/overflow > @rc-component/resize-observer > @rc-component/picker > @rc-component/resize-observer > @rc-component/picker > @rc-component/trigger > @rc-component/resize-observer
|
|
13669
13669
|
File Path(s): common/config/subspaces/sdk/pnpm-lock.yaml
|
|
@@ -21127,7 +21127,7 @@ MIT
|
|
|
21127
21127
|
|
|
21128
21128
|
Authors: ljharb@gmail.com
|
|
21129
21129
|
Package Manager: NPM
|
|
21130
|
-
Project URL: https://
|
|
21130
|
+
Project URL: https://github.com/ljharb/call-bind-apply-helpers#readme
|
|
21131
21131
|
Package Download URL: https://registry.npmjs.org/call-bind-apply-helpers/-/call-bind-apply-helpers-1.0.2.tgz
|
|
21132
21132
|
Dependency Path: @formatjs/cli-lib > @formatjs/ts-transformer > json-stable-stringify > call-bind > set-function-length > get-intrinsic > call-bind-apply-helpers > @formatjs/cli-lib > @types/json-stable-stringify > json-stable-stringify > call-bind > set-function-length > get-intrinsic > call-bind-apply-helpers > @formatjs/cli-lib > json-stable-stringify > call-bind > set-function-length > get-intrinsic > call-bind-apply-helpers > axios > form-data > es-set-tostringtag > get-intrinsic > call-bind-apply-helpers > json-stable-stringify > call-bind > call-bind-apply-helpers > json-stable-stringify > call-bind > get-intrinsic > call-bind-apply-helpers > json-stable-stringify > call-bind > get-intrinsic > get-proto > dunder-proto > call-bind-apply-helpers > json-stable-stringify > call-bind > set-function-length > get-intrinsic > call-bind-apply-helpers > json-stable-stringify > call-bound > call-bind-apply-helpers > json-stable-stringify > call-bound > get-intrinsic > call-bind-apply-helpers
|
|
21133
21133
|
File Path(s): common/config/subspaces/sdk/pnpm-lock.yaml
|
|
@@ -30212,7 +30212,7 @@ MIT
|
|
|
30212
30212
|
|
|
30213
30213
|
Authors: ljharb@gmail.com
|
|
30214
30214
|
Package Manager: NPM
|
|
30215
|
-
Project URL: https://
|
|
30215
|
+
Project URL: https://github.com/ljharb/gopd#readme
|
|
30216
30216
|
Package Download URL: https://registry.npmjs.org/gopd/-/gopd-1.2.0.tgz
|
|
30217
30217
|
Dependency Path: @formatjs/cli-lib > @formatjs/ts-transformer > @types/json-stable-stringify > json-stable-stringify > call-bind > set-function-length > gopd > @formatjs/cli-lib > @formatjs/ts-transformer > json-stable-stringify > call-bind > set-function-length > gopd > @formatjs/cli-lib > @types/json-stable-stringify > json-stable-stringify > call-bind > set-function-length > gopd > @formatjs/cli-lib > json-stable-stringify > call-bind > set-function-length > gopd > axios > form-data > es-set-tostringtag > get-intrinsic > gopd > json-stable-stringify > call-bind > get-intrinsic > get-proto > dunder-proto > gopd > json-stable-stringify > call-bind > get-intrinsic > gopd > json-stable-stringify > call-bind > set-function-length > define-data-property > gopd > json-stable-stringify > call-bind > set-function-length > gopd > json-stable-stringify > call-bound > get-intrinsic > gopd
|
|
30218
30218
|
File Path(s): common/config/subspaces/sdk/pnpm-lock.yaml
|
|
@@ -38217,7 +38217,7 @@ MIT
|
|
|
38217
38217
|
|
|
38218
38218
|
Authors: tituswormer@gmail.com
|
|
38219
38219
|
Package Manager: NPM
|
|
38220
|
-
Project URL: https://
|
|
38220
|
+
Project URL: https://github.com/wooorm/mathml-tag-names#readme
|
|
38221
38221
|
Package Download URL: https://registry.npmjs.org/mathml-tag-names/-/mathml-tag-names-2.1.3.tgz
|
|
38222
38222
|
Dependency Path: stylelint > mathml-tag-names > stylelint-config-standard > stylelint > mathml-tag-names > stylelint-config-standard > stylelint-config-recommended > stylelint > mathml-tag-names > stylelint-order > stylelint > mathml-tag-names > stylelint-plugin-defensive-css > stylelint > mathml-tag-names > stylelint-scss > stylelint > mathml-tag-names
|
|
38223
38223
|
File Path(s): common/config/subspaces/sdk/pnpm-lock.yaml
|
|
@@ -43603,7 +43603,7 @@ MIT
|
|
|
43603
43603
|
|
|
43604
43604
|
Authors: daniel@touchlay.com, npm@joshuakgoldberg.com
|
|
43605
43605
|
Package Manager: NPM
|
|
43606
|
-
Project URL: https://
|
|
43606
|
+
Project URL: https://github.com/omnidan/node-emoji#readme
|
|
43607
43607
|
Package Download URL: https://registry.npmjs.org/node-emoji/-/node-emoji-2.2.0.tgz
|
|
43608
43608
|
Dependency Path: remark-emoji > node-emoji
|
|
43609
43609
|
File Path(s): common/config/subspaces/sdk/pnpm-lock.yaml
|
|
@@ -64914,4 +64914,4 @@ File Path(s): common/config/subspaces/sdk/pnpm-lock.yaml
|
|
|
64914
64914
|
--------------------------------------------------------------------------------
|
|
64915
64915
|
--------------------------------------------------------------------------------
|
|
64916
64916
|
|
|
64917
|
-
Report Generated by FOSSA on 2026-9-
|
|
64917
|
+
Report Generated by FOSSA on 2026-9-21
|
|
@@ -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,WAAW,CAAC,EAAE,CAAC,cAAc,EAAE,gBAAgB,KAAK,MAAM,GAAG,SAAS,CAAC;IACvE,YAAY,CAAC,EAAE,WAAW,EAAE,CAAC;CAChC,CAAC;AAEF;;GAEG;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H,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,GACjB,EAAE,iBAAiB,CAAC,aAAa,CAAC,2CAsBlC;AAED,eAAO,MAAM,SAAS,QAAO,aAE5B,CAAC"}
|
|
@@ -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 IGenAIAssistantFeedbackProps, type IGenAIAssistantFollowUpButtonsProps, type IGenAIAssistantFollowUpQuestionProps, type IGenAIAssistantMessageErrorContentProps, type IGenAIAssistantMessageMultipartContentProps, type IGenAIAssistantMessageReasoningContentProps, type IGenAIAssistantMessageTextContentProps, type IGenAIAssistantSlots, type IGenAIAssistantUserMessageProps } from "./customized/types.js";
|
|
2
|
+
import { type IGenAIAssistantAgentChooserProps, type IGenAIAssistantAgentItemProps, type IGenAIAssistantAssistantMessageProps, type IGenAIAssistantConversationDateGroupingProps, type IGenAIAssistantConversationDrawerHeaderProps, type IGenAIAssistantConversationFooterProps, type IGenAIAssistantConversationHeaderProps, type IGenAIAssistantConversationItemProps, type IGenAIAssistantConversationVisualizationContentProps, type IGenAIAssistantFeedbackProps, type IGenAIAssistantFollowUpButtonsProps, type IGenAIAssistantFollowUpQuestionProps, type IGenAIAssistantMessageErrorContentProps, type IGenAIAssistantMessageMultipartContentProps, type IGenAIAssistantMessageReasoningContentProps, type IGenAIAssistantMessageTextContentProps, type IGenAIAssistantSlots, type IGenAIAssistantUserMessageProps } from "./customized/types.js";
|
|
3
3
|
/**
|
|
4
4
|
* @internal
|
|
5
5
|
*/
|
|
@@ -18,6 +18,7 @@ export interface IGenAIAssistantComponents {
|
|
|
18
18
|
MessageErrorContentComponent: ComponentType<IGenAIAssistantMessageErrorContentProps>;
|
|
19
19
|
MessageReasoningContentComponent: ComponentType<IGenAIAssistantMessageReasoningContentProps>;
|
|
20
20
|
MessageMultipartContentComponent: ComponentType<IGenAIAssistantMessageMultipartContentProps>;
|
|
21
|
+
ConversationVisualizationContentComponent: ComponentType<IGenAIAssistantConversationVisualizationContentProps>;
|
|
21
22
|
FollowUpButtonsComponent: ComponentType<IGenAIAssistantFollowUpButtonsProps>;
|
|
22
23
|
FollowUpQuestionComponent: ComponentType<IGenAIAssistantFollowUpQuestionProps>;
|
|
23
24
|
FeedbackComponent: ComponentType<IGenAIAssistantFeedbackProps>;
|
|
@@ -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,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,EACvC,MAAM,uBAAuB,CAAC;AAE/B;;GAEG;AACH,MAAM,WAAW,yBAAyB;IACtC,sBAAsB,EAAE,aAAa,CAAC;IACtC,mBAAmB,EAAE,a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D,CAAC,CAAC;IAC/G,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;AAqBpE,OAAO,EAiBH,KAAK,oBAAoB,EAE5B,MAAM,uBAAuB,CAAC;AAI/B,MAAM,MAAM,0BAA0B,GAAG;IACrC,KAAK,CAAC,EAAE,oBAAoB,CAAC;CAChC,CAAC;AAiNF,wBAAgB,qBAAqB,CAAC,EAAE,QAAQ,EAAE,KAAK,EAAE,EAAE,iBAAiB,CAAC,0BAA0B,CAAC,2CAmCvG"}
|
|
@@ -10,6 +10,7 @@ import { DefaultConversationDrawerHeader } from "./customized/ConversationDrawer
|
|
|
10
10
|
import { DefaultConversationFooter } from "./customized/ConversationFooter.js";
|
|
11
11
|
import { DefaultConversationHeader } from "./customized/ConversationHeader.js";
|
|
12
12
|
import { DefaultConversationItem } from "./customized/ConversationItem.js";
|
|
13
|
+
import { DefaultConversationVisualizationContent } from "./customized/ConversationVisualizationContent.js";
|
|
13
14
|
import { DefaultDisclaimer } from "./customized/Disclaimer.js";
|
|
14
15
|
import { DefaultFeedback } from "./customized/Feedback.js";
|
|
15
16
|
import { DefaultFollowUpButtons } from "./customized/FollowUpButtons.js";
|
|
@@ -138,6 +139,14 @@ function MessageMultipartContentSlotRenderer(props) {
|
|
|
138
139
|
}
|
|
139
140
|
return _jsx(DefaultMessageMultipartContent, { ...props });
|
|
140
141
|
}
|
|
142
|
+
function ConversationVisualizationContentSlotRenderer(props) {
|
|
143
|
+
const { slots } = useContext(customizationContext);
|
|
144
|
+
const ConversationVisualizationContentSlot = slots?.ConversationVisualizationContent;
|
|
145
|
+
if (ConversationVisualizationContentSlot) {
|
|
146
|
+
return (_jsx(ConversationVisualizationContentSlot, { Default: DefaultConversationVisualizationContent, defaultProps: props }));
|
|
147
|
+
}
|
|
148
|
+
return _jsx(DefaultConversationVisualizationContent, { ...props });
|
|
149
|
+
}
|
|
141
150
|
function FollowUpButtonsSlotRenderer(props) {
|
|
142
151
|
const { slots } = useContext(customizationContext);
|
|
143
152
|
const FollowUpButtonsSlot = slots?.FollowUpButtons;
|
|
@@ -186,6 +195,7 @@ export function CustomizationProvider({ children, slots }) {
|
|
|
186
195
|
MessageErrorContentComponent: MessageErrorContentSlotRenderer,
|
|
187
196
|
MessageReasoningContentComponent: MessageReasoningContentSlotRenderer,
|
|
188
197
|
MessageMultipartContentComponent: MessageMultipartContentSlotRenderer,
|
|
198
|
+
ConversationVisualizationContentComponent: ConversationVisualizationContentSlotRenderer,
|
|
189
199
|
FollowUpButtonsComponent: FollowUpButtonsSlotRenderer,
|
|
190
200
|
FollowUpQuestionComponent: FollowUpQuestionSlotRenderer,
|
|
191
201
|
FeedbackComponent: FeedbackSlotRenderer,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { type RefObject } from "react";
|
|
2
2
|
import { type IAnalyticalBackend, type IUserWorkspaceSettings } from "@gooddata/sdk-backend-spi";
|
|
3
3
|
import type { GenAIObjectType, IColorPalette, IGenAIUserContext } from "@gooddata/sdk-model";
|
|
4
|
-
import { type ChatAssistantMessageEvent, type ChatClosedEvent, type ChatCopyToClipboardEvent, type ChatDefinitionReceivedEvent, type ChatEvent, type ChatFeedbackErrorEvent, type ChatFeedbackEvent, type ChatOpenedEvent, type ChatResetEvent, type ChatSaveVisualizationErrorEvent, type ChatSaveVisualizationSuccessEvent, type ChatUserMessageEvent } from "../store/events.js";
|
|
4
|
+
import { type ChatAssistantMessageEvent, type ChatClosedEvent, type ChatCopyToClipboardEvent, type ChatDefinitionReceivedEvent, type ChatEvent, type ChatFeedbackErrorEvent, type ChatFeedbackEvent, type ChatModeChangeEvent, type ChatOpenedEvent, type ChatResetEvent, type ChatSaveVisualizationErrorEvent, type ChatSaveVisualizationSuccessEvent, type ChatUserMessageEvent } from "../store/events.js";
|
|
5
5
|
import { type GenAIAssistantDisplayMode, type LinkHandlerEvent } from "./ConfigContext.js";
|
|
6
6
|
/**
|
|
7
7
|
* Discriminated union of GenAI chat events surfaced to a caller via {@link IGenAIChatDialogConnectedProps.onEvent}.
|
|
@@ -34,6 +34,9 @@ export type GenAIChatConnectedEvent = {
|
|
|
34
34
|
} | {
|
|
35
35
|
name: "feedback-error";
|
|
36
36
|
payload: ChatFeedbackErrorEvent;
|
|
37
|
+
} | {
|
|
38
|
+
name: "mode-changed";
|
|
39
|
+
payload: ChatModeChangeEvent;
|
|
37
40
|
} | {
|
|
38
41
|
name: "save-visualization-success";
|
|
39
42
|
payload: ChatSaveVisualizationSuccessEvent;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GenAIChatDialogConnected.d.ts","sourceRoot":"","sources":["../../src/components/GenAIChatDialogConnected.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,SAAS,EAAqD,MAAM,OAAO,CAAC;AAE1F,OAA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AC,WAAW,GAAG,IAAI,CAAC,GAAG,MAAM,CAAC;CAC1D;AAED;;;;;;;;;GASG;AACH,wBAAgB,wBAAwB,CAAC,EACrC,OAAO,EACP,SAAS,EACT,MAAM,EACN,SAAS,EACT,UAAU,EACV,cAAc,EACd,QAAQ,EACR,OAAO,EACP,MAAM,EACN,UAAiB,EACjB,WAAW,EACX,MAAM,EACN,OAAO,EACP,aAAa,EACb,MAAM,EACN,WAAW,EACX,kBAAkB,EAClB,yBAAyB,EACzB,YAAY,EACZ,kBAAkB,EAClB,WAAW,EACX,WAAW,EACX,WAAW,EAAE,mBAAmB,EAChC,OAAO,EACP,UAAU,EACV,cAAc,EACd,SAAS,EACT,YAAY,EACZ,gBAAuB,EACvB,WAAW,EACX,aAAa,GAChB,EAAE,8BAA8B,2CA2KhC"}
|
|
@@ -3,7 +3,7 @@ import { jsx as _jsx } from "react/jsx-runtime";
|
|
|
3
3
|
import { useCallback, useEffect, useMemo, useRef, useState } from "react";
|
|
4
4
|
import { makeUserItem } from "../model.js";
|
|
5
5
|
import { setAmbientUserContextAction, setUserContextAction } from "../store/chatWindow/chatWindowSlice.js";
|
|
6
|
-
import { isChatAssistantMessageEvent, isChatClosedEvent, isChatCopyToClipboardEvent, isChatDefinitionReceivedEvent, isChatFeedbackErrorEvent, isChatFeedbackEvent, isChatOpenedEvent, isChatResetEvent, isChatSaveVisualizationErrorEvent, isChatSaveVisualizationSuccessEvent, isChatUserMessageEvent, } from "../store/events.js";
|
|
6
|
+
import { isChatAssistantMessageEvent, isChatClosedEvent, isChatCopyToClipboardEvent, isChatDefinitionReceivedEvent, isChatFeedbackErrorEvent, isChatFeedbackEvent, isChatModeChangeEvent, isChatOpenedEvent, isChatResetEvent, isChatSaveVisualizationErrorEvent, isChatSaveVisualizationSuccessEvent, isChatUserMessageEvent, } from "../store/events.js";
|
|
7
7
|
import { clearThreadAction, newMessageAction, setSelectedAgentAction, } from "../store/messages/messagesSlice.js";
|
|
8
8
|
import { GenAIChatDialog } from "./GenAIChatDialog.js";
|
|
9
9
|
/**
|
|
@@ -75,6 +75,9 @@ export function GenAIChatDialogConnected({ backend, workspace, locale, canManage
|
|
|
75
75
|
else if (isChatDefinitionReceivedEvent(event)) {
|
|
76
76
|
onEvent({ name: "definition-received", payload: event });
|
|
77
77
|
}
|
|
78
|
+
else if (isChatModeChangeEvent(event)) {
|
|
79
|
+
onEvent({ name: "mode-changed", payload: event });
|
|
80
|
+
}
|
|
78
81
|
},
|
|
79
82
|
},
|
|
80
83
|
], [onEvent, onAnyEvent]);
|
|
@@ -59,7 +59,7 @@ export function GenAIChatOverlay({ onClose, returnFocusTo, dialogPosition, class
|
|
|
59
59
|
return () => window.removeEventListener("keydown", onKeyDown);
|
|
60
60
|
}, [closeOnEscape, onClose]);
|
|
61
61
|
const Wrapper = useCallback(({ children }) => {
|
|
62
|
-
if (displayMode === "modal") {
|
|
62
|
+
if (displayMode === "modal" || isFullscreen) {
|
|
63
63
|
return (_jsx(Dialog, { isModal: isFullscreen, returnFocusTo: returnFocusTo, returnFocusAfterClose: !!returnFocusTo, alignPoints: [{ align: position }], closeOnEscape: false, submitOnEnterKey: false, closeOnParentScroll: false, closeOnMouseDrag: false, onClose: onClose, className: classNames, accessibilityConfig: {
|
|
64
64
|
title: intl.formatMessage({ id: "gd.gen-ai.dialog.label" }),
|
|
65
65
|
isModal: isFullscreen,
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { type IGenAIAssistantConversationVisualizationContentProps } from "./types.js";
|
|
2
|
+
/**
|
|
3
|
+
* Default implementation of the ConversationVisualizationContent slot.
|
|
4
|
+
*
|
|
5
|
+
* @alpha
|
|
6
|
+
*/
|
|
7
|
+
export declare function DefaultConversationVisualizationContent(props: IGenAIAssistantConversationVisualizationContentProps): import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
//# sourceMappingURL=ConversationVisualizationContent.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ConversationVisualizationContent.d.ts","sourceRoot":"","sources":["../../../src/components/customized/ConversationVisualizationContent.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,oDAAoD,EAAE,MAAM,YAAY,CAAC;AAEvF;;;;GAIG;AACH,wBAAgB,uCAAuC,CACnD,KAAK,EAAE,oDAAoD,2CAG9D"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
// (C) 2024-2026 GoodData Corporation
|
|
3
|
+
import { ConversationVisualizationContent } from "../messages/conversationContents/ConversationVisualizationContent.js";
|
|
4
|
+
/**
|
|
5
|
+
* Default implementation of the ConversationVisualizationContent slot.
|
|
6
|
+
*
|
|
7
|
+
* @alpha
|
|
8
|
+
*/
|
|
9
|
+
export function DefaultConversationVisualizationContent(props) {
|
|
10
|
+
return _jsx(ConversationVisualizationContent, { ...props });
|
|
11
|
+
}
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { type ComponentType } from "react";
|
|
2
|
-
import { type IChatSuggestion } from "@gooddata/sdk-backend-spi";
|
|
2
|
+
import { type IChatConversationVisualisationContent, type IChatSuggestion } from "@gooddata/sdk-backend-spi";
|
|
3
3
|
import { type GenAIChatEffort } from "@gooddata/sdk-model";
|
|
4
4
|
import { type ISlotProps, type IUiMenuGroupItemProps, type IUiMenuInteractiveItemProps, type IUiMenuInteractiveItemWrapperProps, type IUiMenuItem } from "@gooddata/sdk-ui-kit";
|
|
5
5
|
import { type GenAIAgent, type IChatConversationErrorContent, type IChatConversationLocal, type IChatConversationLocalItem, type IChatConversationMultipartLocalPart, type TextContentObject } from "../../model.js";
|
|
6
|
+
import { type IWhatIfRenderableScenario } from "../../whatIf/whatIfMapping.js";
|
|
6
7
|
import { type IChatMessagesGroup } from "../utils/groupUtility.js";
|
|
7
8
|
/**
|
|
8
9
|
* Properties for the LandingScreen slot.
|
|
@@ -215,6 +216,49 @@ export type IGenAIAssistantMessageMultipartContentProps = {
|
|
|
215
216
|
*/
|
|
216
217
|
isLast?: boolean;
|
|
217
218
|
};
|
|
219
|
+
/**
|
|
220
|
+
* Properties for the ConversationVisualizationContent slot.
|
|
221
|
+
* @alpha
|
|
222
|
+
*/
|
|
223
|
+
export type IGenAIAssistantConversationVisualizationContentProps = {
|
|
224
|
+
/**
|
|
225
|
+
* The message containing the visualization content.
|
|
226
|
+
*/
|
|
227
|
+
message: IChatConversationLocalItem;
|
|
228
|
+
/**
|
|
229
|
+
* The multipart part containing the visualization.
|
|
230
|
+
*/
|
|
231
|
+
part: IChatConversationMultipartLocalPart;
|
|
232
|
+
/**
|
|
233
|
+
* The what-if scenario context for this visualization.
|
|
234
|
+
*/
|
|
235
|
+
scenario?: IWhatIfRenderableScenario;
|
|
236
|
+
/**
|
|
237
|
+
* The visualization payload to render.
|
|
238
|
+
*/
|
|
239
|
+
visualization: NonNullable<IChatConversationVisualisationContent["visualization"]>;
|
|
240
|
+
/**
|
|
241
|
+
* Additional CSS class name.
|
|
242
|
+
*/
|
|
243
|
+
className?: string;
|
|
244
|
+
/**
|
|
245
|
+
* Control visibility of the visualization menu items.
|
|
246
|
+
*/
|
|
247
|
+
menuItems?: {
|
|
248
|
+
/**
|
|
249
|
+
* Whether the save action is shown in the visualization menu.
|
|
250
|
+
*/
|
|
251
|
+
save?: boolean;
|
|
252
|
+
/**
|
|
253
|
+
* Whether the open-in-analyze action is shown in the visualization menu.
|
|
254
|
+
*/
|
|
255
|
+
openInAnalyze?: boolean;
|
|
256
|
+
/**
|
|
257
|
+
* Whether the copy-link action is shown in the visualization menu.
|
|
258
|
+
*/
|
|
259
|
+
copyLink?: boolean;
|
|
260
|
+
};
|
|
261
|
+
};
|
|
218
262
|
/**
|
|
219
263
|
* Properties for the FollowUpButtons slot.
|
|
220
264
|
* @alpha
|
|
@@ -394,6 +438,11 @@ export interface IGenAIAssistantSlots {
|
|
|
394
438
|
* Custom React component rendered for multipart content of a message.
|
|
395
439
|
*/
|
|
396
440
|
MessageMultipartContent?: ComponentType<ISlotProps<IGenAIAssistantMessageMultipartContentProps>>;
|
|
441
|
+
/**
|
|
442
|
+
* @alpha
|
|
443
|
+
* Custom React component rendered for a visualization part in multipart content.
|
|
444
|
+
*/
|
|
445
|
+
ConversationVisualizationContent?: ComponentType<ISlotProps<IGenAIAssistantConversationVisualizationContentProps>>;
|
|
397
446
|
/**
|
|
398
447
|
* @alpha
|
|
399
448
|
* Custom React component rendered for follow up buttons of a message.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/components/customized/types.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,aAAa,EAAE,MAAM,OAAO,CAAC;AAE3C,OAAO,EAAE,KAAK,eAAe,EAAE,MAAM,2BAA2B,CAAC;
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/components/customized/types.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,aAAa,EAAE,MAAM,OAAO,CAAC;AAE3C,OAAO,EAAE,KAAK,qCAAqC,EAAE,KAAK,eAAe,EAAE,MAAM,2BAA2B,CAAC;AAC7G,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;;O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;IAClC,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;CAChB,CAAC;AAEF,KAAK,oBAAoB,GAAG,uBAAuB,GAAG;IAClD,QAAQ,CAAC,EAAE,sBAAsB,CAAC;CACrC,CAAC;AAEF;;;GAGG;AACH,wBAAgB,wBAAwB,CAAC,EAAE,IAAI,EAAE,IAAI,EAAE,QAAQ,EAAE,EAAE,oBAAoB,oDAmGtF;
|
|
1
|
+
{"version":3,"file":"CustomHyperlink.d.ts","sourceRoot":"","sources":["../../../../src/components/messages/contents/CustomHyperlink.tsx"],"names":[],"mappings":"AAMA,OAAO,EAAE,KAAK,sBAAsB,EAAE,MAAM,2BAA2B,CAAC;AAMxE,MAAM,MAAM,uBAAuB,GAAG;IAClC,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;CAChB,CAAC;AAEF,KAAK,oBAAoB,GAAG,uBAAuB,GAAG;IAClD,QAAQ,CAAC,EAAE,sBAAsB,CAAC;CACrC,CAAC;AAEF;;;GAGG;AACH,wBAAgB,wBAAwB,CAAC,EAAE,IAAI,EAAE,IAAI,EAAE,QAAQ,EAAE,EAAE,oBAAoB,oDAmGtF;AA4BD,wBAAgB,eAAe,CAAC,EAAE,IAAI,EAAE,IAAI,EAAE,EAAE,uBAAuB,2CAItE"}
|
|
@@ -92,6 +92,9 @@ const getItemUrl = (workspaceId, id, objectType, enableShellApplication_analytic
|
|
|
92
92
|
: `/dashboards/#/workspace/${workspaceId}/dashboard/${id}`;
|
|
93
93
|
case "metric":
|
|
94
94
|
return `/workspace/${workspaceId}/metrics/metric/${id}`;
|
|
95
|
+
case "report":
|
|
96
|
+
// Encoded like the Reports app's own route builder, so an id with a slash stays one segment.
|
|
97
|
+
return `/workspace/${workspaceId}/reports/report/${encodeURIComponent(id)}`;
|
|
95
98
|
default:
|
|
96
99
|
return null;
|
|
97
100
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ConversationMultipartContent.d.ts","sourceRoot":"","sources":["../../../../src/components/messages/conversationContents/ConversationMultipartContent.tsx"],"names":[],"mappings":"AAIA,OAAO,EACH,KAAK,0BAA0B,EAC/B,KAAK,mCAAmC,EACxC,KAAK,iBAAiB,EACzB,MAAM,mBAAmB,CAAC;AAY3B,MAAM,MAAM,iCAAiC,GAAG;IAC5C,OAAO,EAAE,0BAA0B,CAAC;IACpC,KAAK,EAAE,mCAAmC,EAAE,CAAC;IAC7C,UAAU,EAAE,iBAAiB,EAAE,CAAC;IAChC,MAAM,CAAC,EAAE,OAAO,CAAC;CACpB,CAAC;AAEF,wBAAgB,4BAA4B,CAAC,EACzC,OAAO,EACP,KAAK,EACL,UAAU,EACV,MAAM,GACT,EAAE,iCAAiC,
|
|
1
|
+
{"version":3,"file":"ConversationMultipartContent.d.ts","sourceRoot":"","sources":["../../../../src/components/messages/conversationContents/ConversationMultipartContent.tsx"],"names":[],"mappings":"AAIA,OAAO,EACH,KAAK,0BAA0B,EAC/B,KAAK,mCAAmC,EACxC,KAAK,iBAAiB,EACzB,MAAM,mBAAmB,CAAC;AAY3B,MAAM,MAAM,iCAAiC,GAAG;IAC5C,OAAO,EAAE,0BAA0B,CAAC;IACpC,KAAK,EAAE,mCAAmC,EAAE,CAAC;IAC7C,UAAU,EAAE,iBAAiB,EAAE,CAAC;IAChC,MAAM,CAAC,EAAE,OAAO,CAAC;CACpB,CAAC;AAEF,wBAAgB,4BAA4B,CAAC,EACzC,OAAO,EACP,KAAK,EACL,UAAU,EACV,MAAM,GACT,EAAE,iCAAiC,2CA+FnC"}
|
|
@@ -2,16 +2,17 @@ import { Fragment as _Fragment, jsx as _jsx } from "react/jsx-runtime";
|
|
|
2
2
|
// (C) 2024-2026 GoodData Corporation
|
|
3
3
|
import { useIntl } from "react-intl";
|
|
4
4
|
import { loadWhatIfScenarios } from "../../../whatIf/whatIfMapping.js";
|
|
5
|
+
import { useCustomization } from "../../CustomizationContext.js";
|
|
5
6
|
import { ConversationAlertProposalContent } from "./ConversationAlertProposalContent.js";
|
|
6
7
|
import { ConversationClarifyingQuestionsContent } from "./ConversationClarifyingQuestionsContent.js";
|
|
7
8
|
import { ConversationDashboardContent } from "./ConversationDashboardContent.js";
|
|
8
9
|
import { ConversationKdaContent } from "./ConversationKdaContent.js";
|
|
9
10
|
import { ConversationSearchContent } from "./ConversationSearchContent.js";
|
|
10
11
|
import { ConversationTextContent } from "./ConversationTextContent.js";
|
|
11
|
-
import { ConversationVisualizationContent } from "./ConversationVisualizationContent.js";
|
|
12
12
|
import { ConversationWhatIfContent } from "./ConversationWhatIfContent.js";
|
|
13
13
|
export function ConversationMultipartContent({ message, parts, references, isLast, }) {
|
|
14
14
|
const intl = useIntl();
|
|
15
|
+
const { ConversationVisualizationContentComponent } = useCustomization();
|
|
15
16
|
const whatIf = loadWhatIfScenarios(parts);
|
|
16
17
|
return (_jsx(_Fragment, { children: parts?.map((part, index) => {
|
|
17
18
|
if (part.type === "text") {
|
|
@@ -24,7 +25,7 @@ export function ConversationMultipartContent({ message, parts, references, isLas
|
|
|
24
25
|
return (_jsx(ConversationClarifyingQuestionsContent, { useMarkdown: true, message: message, questions: part.questions, objects: [...(part.objects ?? []), ...references], isLast: isLast }, index));
|
|
25
26
|
}
|
|
26
27
|
if (part.type === "visualization" && !whatIf) {
|
|
27
|
-
return part.visualization ? (_jsx(
|
|
28
|
+
return part.visualization ? (_jsx(ConversationVisualizationContentComponent, { message: message, part: part, visualization: part.visualization }, index)) : (_jsx("div", { className: "gd-gen-ai-chat__conversation__item__content--error", children: intl.formatMessage({ id: "gd.gen-ai.visualization.unavailable" }) }, index));
|
|
28
29
|
}
|
|
29
30
|
if (part.type === "searchResults") {
|
|
30
31
|
return (_jsx(ConversationSearchContent, { results: part.searchResults, relationships: part.relationships, keywords: part.keywords }, index));
|
|
@@ -1,12 +1,21 @@
|
|
|
1
1
|
import { type IChatConversationVisualisationContent } from "@gooddata/sdk-backend-spi";
|
|
2
2
|
import { type IChatConversationLocalItem, type IChatConversationMultipartLocalPart } from "../../../model.js";
|
|
3
3
|
import { type IWhatIfRenderableScenario } from "../../../whatIf/whatIfMapping.js";
|
|
4
|
+
import { type IGenAIAssistantConversationVisualizationContentProps } from "../../customized/types.js";
|
|
5
|
+
type IVisualisationMenuItemId = "button-save" | "button-open" | "button-copy";
|
|
6
|
+
export declare function getVisibleVisualisationMenuItemIds({ scenario, isVisualisationSaved, menuItems, }: {
|
|
7
|
+
scenario?: IWhatIfRenderableScenario;
|
|
8
|
+
menuItems?: IGenAIAssistantConversationVisualizationContentProps["menuItems"];
|
|
9
|
+
isVisualisationSaved: boolean;
|
|
10
|
+
}): IVisualisationMenuItemId[];
|
|
4
11
|
export type ConversationVisualizationContentProps = {
|
|
5
12
|
message: IChatConversationLocalItem;
|
|
6
13
|
part: IChatConversationMultipartLocalPart;
|
|
7
14
|
scenario?: IWhatIfRenderableScenario;
|
|
8
15
|
visualization: NonNullable<IChatConversationVisualisationContent["visualization"]>;
|
|
9
16
|
className?: string;
|
|
17
|
+
menuItems?: IGenAIAssistantConversationVisualizationContentProps["menuItems"];
|
|
10
18
|
};
|
|
11
|
-
export declare function ConversationVisualizationContent({ message, part, scenario, visualization, className, }: ConversationVisualizationContentProps): import("react/jsx-runtime").JSX.Element;
|
|
19
|
+
export declare function ConversationVisualizationContent({ message, part, scenario, visualization, className, menuItems, }: ConversationVisualizationContentProps): import("react/jsx-runtime").JSX.Element;
|
|
20
|
+
export {};
|
|
12
21
|
//# sourceMappingURL=ConversationVisualizationContent.d.ts.map
|
package/esm/components/messages/conversationContents/ConversationVisualizationContent.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ConversationVisualizationContent.d.ts","sourceRoot":"","sources":["../../../../src/components/messages/conversationContents/ConversationVisualizationContent.tsx"],"names":[],"mappings":"AAoBA,OAAO,EAAE,KAAK,qCAAqC,EAAE,MAAM,2BAA2B,CAAC;AAyBvF,OAAO,EAAE,KAAK,0BAA0B,EAAE,KAAK,mCAAmC,EAAE,MAAM,mBAAmB,CAAC;AAY9G,OAAO,EAAE,KAAK,yBAAyB,EAAE,MAAM,kCAAkC,CAAC;
|
|
1
|
+
{"version":3,"file":"ConversationVisualizationContent.d.ts","sourceRoot":"","sources":["../../../../src/components/messages/conversationContents/ConversationVisualizationContent.tsx"],"names":[],"mappings":"AAoBA,OAAO,EAAE,KAAK,qCAAqC,EAAE,MAAM,2BAA2B,CAAC;AAyBvF,OAAO,EAAE,KAAK,0BAA0B,EAAE,KAAK,mCAAmC,EAAE,MAAM,mBAAmB,CAAC;AAY9G,OAAO,EAAE,KAAK,yBAAyB,EAAE,MAAM,kCAAkC,CAAC;AAElF,OAAO,EAAE,KAAK,oDAAoD,EAAE,MAAM,2BAA2B,CAAC;AAuBtG,KAAK,wBAAwB,GAAG,aAAa,GAAG,aAAa,GAAG,aAAa,CAAC;AAE9E,wBAAgB,kCAAkC,CAAC,EAC/C,QAAQ,EACR,oBAAoB,EACpB,SAAS,GACZ,EAAE;IACC,QAAQ,CAAC,EAAE,yBAAyB,CAAC;IACrC,SAAS,CAAC,EAAE,oDAAoD,CAAC,WAAW,CAAC,CAAC;IAC9E,oBAAoB,EAAE,OAAO,CAAC;CACjC,GAAG,wBAAwB,EAAE,CAsB7B;AAED,MAAM,MAAM,qCAAqC,GAAG;IAChD,OAAO,EAAE,0BAA0B,CAAC;IACpC,IAAI,EAAE,mCAAmC,CAAC;IAC1C,QAAQ,CAAC,EAAE,yBAAyB,CAAC;IACrC,aAAa,EAAE,WAAW,CAAC,qCAAqC,CAAC,eAAe,CAAC,CAAC,CAAC;IACnF,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,SAAS,CAAC,EAAE,oDAAoD,CAAC,WAAW,CAAC,CAAC;CACjF,CAAC;AAEF,wBAAgB,gCAAgC,CAAC,EAC7C,OAAO,EACP,IAAI,EACJ,QAAQ,EACR,aAAa,EACb,SAAS,EACT,SAAS,GACZ,EAAE,qCAAqC,2CAqHvC"}
|