@gooddata/sdk-ui-gen-ai 11.53.0-alpha.1 → 11.53.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/NOTICE +6 -6
- package/esm/components/GenAIChat.d.ts.map +1 -1
- package/esm/components/GenAIChat.js +2 -2
- package/esm/components/GenAIChatDialogConnected.d.ts +10 -1
- package/esm/components/GenAIChatDialogConnected.d.ts.map +1 -1
- package/esm/components/GenAIChatDialogConnected.js +2 -2
- package/esm/components/GenAiChatContextChooser.d.ts.map +1 -1
- package/esm/components/GenAiChatContextChooser.js +17 -13
- package/esm/components/GenAiChatContextChooserBody.d.ts +19 -0
- package/esm/components/GenAiChatContextChooserBody.d.ts.map +1 -0
- package/esm/components/GenAiChatContextChooserBody.js +86 -0
- package/esm/components/GenAiStore.d.ts +6 -1
- package/esm/components/GenAiStore.d.ts.map +1 -1
- package/esm/components/GenAiStore.js +2 -1
- package/esm/components/hooks/useContextItems.d.ts +6 -4
- package/esm/components/hooks/useContextItems.d.ts.map +1 -1
- package/esm/components/hooks/useContextItems.js +31 -26
- package/esm/components/intelligence/GenAiInteractionIntelligence.d.ts.map +1 -1
- package/esm/components/intelligence/GenAiInteractionIntelligence.js +3 -0
- package/esm/components/intelligence/data/categoryDetailRows.d.ts.map +1 -1
- package/esm/components/intelligence/data/categoryDetailRows.js +90 -7
- package/esm/components/intelligence/data/deriveInteractionIntelligenceFromSteps.d.ts +3 -0
- package/esm/components/intelligence/data/deriveInteractionIntelligenceFromSteps.d.ts.map +1 -1
- package/esm/components/intelligence/data/deriveInteractionIntelligenceFromSteps.js +49 -3
- package/esm/components/intelligence/data/mergeDetailRows.d.ts +3 -1
- package/esm/components/intelligence/data/mergeDetailRows.d.ts.map +1 -1
- package/esm/components/intelligence/data/mergeDetailRows.js +66 -2
- package/esm/components/intelligence/data/types.d.ts +6 -1
- package/esm/components/intelligence/data/types.d.ts.map +1 -1
- package/esm/components/intelligence/detail/DetailRowValue.js +1 -1
- package/esm/components/intelligence/panel/IntelligenceCategoryRow.d.ts +2 -2
- package/esm/components/intelligence/panel/IntelligenceCategoryRow.d.ts.map +1 -1
- package/esm/components/intelligence/panel/IntelligenceCategoryRow.js +3 -3
- package/esm/components/intelligence/panel/TimelineBar.d.ts +2 -1
- package/esm/components/intelligence/panel/TimelineBar.d.ts.map +1 -1
- package/esm/components/intelligence/panel/TimelineBar.js +7 -3
- package/esm/hooks/useGenAIStore.d.ts +2 -1
- package/esm/hooks/useGenAIStore.d.ts.map +1 -1
- package/esm/hooks/useGenAIStore.js +8 -2
- package/esm/localization/bundles/de-DE.localization-bundle.d.ts +63 -0
- package/esm/localization/bundles/de-DE.localization-bundle.d.ts.map +1 -1
- package/esm/localization/bundles/de-DE.localization-bundle.js +63 -0
- package/esm/localization/bundles/en-AU.localization-bundle.d.ts +63 -0
- package/esm/localization/bundles/en-AU.localization-bundle.d.ts.map +1 -1
- package/esm/localization/bundles/en-AU.localization-bundle.js +63 -0
- package/esm/localization/bundles/en-GB.localization-bundle.d.ts +63 -0
- package/esm/localization/bundles/en-GB.localization-bundle.d.ts.map +1 -1
- package/esm/localization/bundles/en-GB.localization-bundle.js +63 -0
- package/esm/localization/bundles/en-US.localization-bundle.d.ts +68 -0
- package/esm/localization/bundles/en-US.localization-bundle.d.ts.map +1 -1
- package/esm/localization/bundles/en-US.localization-bundle.js +68 -0
- package/esm/localization/bundles/es-419.localization-bundle.d.ts +63 -0
- package/esm/localization/bundles/es-419.localization-bundle.d.ts.map +1 -1
- package/esm/localization/bundles/es-419.localization-bundle.js +63 -0
- package/esm/localization/bundles/es-ES.localization-bundle.d.ts +63 -0
- package/esm/localization/bundles/es-ES.localization-bundle.d.ts.map +1 -1
- package/esm/localization/bundles/es-ES.localization-bundle.js +63 -0
- package/esm/localization/bundles/fi-FI.localization-bundle.d.ts +63 -0
- package/esm/localization/bundles/fi-FI.localization-bundle.d.ts.map +1 -1
- package/esm/localization/bundles/fi-FI.localization-bundle.js +63 -0
- package/esm/localization/bundles/fr-CA.localization-bundle.d.ts +63 -0
- package/esm/localization/bundles/fr-CA.localization-bundle.d.ts.map +1 -1
- package/esm/localization/bundles/fr-CA.localization-bundle.js +63 -0
- package/esm/localization/bundles/fr-FR.localization-bundle.d.ts +63 -0
- package/esm/localization/bundles/fr-FR.localization-bundle.d.ts.map +1 -1
- package/esm/localization/bundles/fr-FR.localization-bundle.js +63 -0
- package/esm/localization/bundles/id-ID.localization-bundle.d.ts +63 -0
- package/esm/localization/bundles/id-ID.localization-bundle.d.ts.map +1 -1
- package/esm/localization/bundles/id-ID.localization-bundle.js +63 -0
- package/esm/localization/bundles/it-IT.localization-bundle.d.ts +63 -0
- package/esm/localization/bundles/it-IT.localization-bundle.d.ts.map +1 -1
- package/esm/localization/bundles/it-IT.localization-bundle.js +63 -0
- package/esm/localization/bundles/ja-JP.localization-bundle.d.ts +63 -0
- package/esm/localization/bundles/ja-JP.localization-bundle.d.ts.map +1 -1
- package/esm/localization/bundles/ja-JP.localization-bundle.js +63 -0
- package/esm/localization/bundles/ko-KR.localization-bundle.d.ts +63 -0
- package/esm/localization/bundles/ko-KR.localization-bundle.d.ts.map +1 -1
- package/esm/localization/bundles/ko-KR.localization-bundle.js +63 -0
- package/esm/localization/bundles/nl-NL.localization-bundle.d.ts +63 -0
- package/esm/localization/bundles/nl-NL.localization-bundle.d.ts.map +1 -1
- package/esm/localization/bundles/nl-NL.localization-bundle.js +63 -0
- package/esm/localization/bundles/pl-PL.localization-bundle.d.ts +63 -0
- package/esm/localization/bundles/pl-PL.localization-bundle.d.ts.map +1 -1
- package/esm/localization/bundles/pl-PL.localization-bundle.js +63 -0
- package/esm/localization/bundles/pt-BR.localization-bundle.d.ts +63 -0
- package/esm/localization/bundles/pt-BR.localization-bundle.d.ts.map +1 -1
- package/esm/localization/bundles/pt-BR.localization-bundle.js +63 -0
- package/esm/localization/bundles/pt-PT.localization-bundle.d.ts +63 -0
- package/esm/localization/bundles/pt-PT.localization-bundle.d.ts.map +1 -1
- package/esm/localization/bundles/pt-PT.localization-bundle.js +63 -0
- package/esm/localization/bundles/ru-RU.localization-bundle.d.ts +63 -0
- package/esm/localization/bundles/ru-RU.localization-bundle.d.ts.map +1 -1
- package/esm/localization/bundles/ru-RU.localization-bundle.js +63 -0
- package/esm/localization/bundles/sl-SI.localization-bundle.d.ts +63 -0
- package/esm/localization/bundles/sl-SI.localization-bundle.d.ts.map +1 -1
- package/esm/localization/bundles/sl-SI.localization-bundle.js +63 -0
- package/esm/localization/bundles/th-TH.localization-bundle.d.ts +63 -0
- package/esm/localization/bundles/th-TH.localization-bundle.d.ts.map +1 -1
- package/esm/localization/bundles/th-TH.localization-bundle.js +63 -0
- package/esm/localization/bundles/tr-TR.localization-bundle.d.ts +63 -0
- package/esm/localization/bundles/tr-TR.localization-bundle.d.ts.map +1 -1
- package/esm/localization/bundles/tr-TR.localization-bundle.js +63 -0
- package/esm/localization/bundles/uk-UA.localization-bundle.d.ts +63 -0
- package/esm/localization/bundles/uk-UA.localization-bundle.d.ts.map +1 -1
- package/esm/localization/bundles/uk-UA.localization-bundle.js +63 -0
- package/esm/localization/bundles/vi-VN.localization-bundle.d.ts +63 -0
- package/esm/localization/bundles/vi-VN.localization-bundle.d.ts.map +1 -1
- package/esm/localization/bundles/vi-VN.localization-bundle.js +63 -0
- package/esm/localization/bundles/zh-HK.localization-bundle.d.ts +63 -0
- package/esm/localization/bundles/zh-HK.localization-bundle.d.ts.map +1 -1
- package/esm/localization/bundles/zh-HK.localization-bundle.js +63 -0
- package/esm/localization/bundles/zh-Hans.localization-bundle.d.ts +63 -0
- package/esm/localization/bundles/zh-Hans.localization-bundle.d.ts.map +1 -1
- package/esm/localization/bundles/zh-Hans.localization-bundle.js +63 -0
- package/esm/localization/bundles/zh-Hant.localization-bundle.d.ts +63 -0
- package/esm/localization/bundles/zh-Hant.localization-bundle.d.ts.map +1 -1
- package/esm/localization/bundles/zh-Hant.localization-bundle.js +63 -0
- package/esm/sdk-ui-gen-ai.d.ts +6 -0
- package/esm/store/chatWindow/chatWindowSelectors.d.ts +2 -0
- package/esm/store/chatWindow/chatWindowSelectors.d.ts.map +1 -1
- package/esm/store/chatWindow/chatWindowSelectors.js +1 -0
- package/esm/store/chatWindow/chatWindowSlice.d.ts +12 -3
- package/esm/store/chatWindow/chatWindowSlice.d.ts.map +1 -1
- package/esm/store/chatWindow/chatWindowSlice.js +48 -1
- package/esm/store/messages/messagesSelectors.d.ts.map +1 -1
- package/esm/store/messages/messagesSelectors.js +5 -1
- package/esm/store/messages/messagesSlice.d.ts +5 -1
- package/esm/store/messages/messagesSlice.d.ts.map +1 -1
- package/esm/store/messages/messagesSlice.js +14 -2
- package/esm/store/options.d.ts +4 -1
- package/esm/store/options.d.ts.map +1 -1
- package/esm/store/options.js +7 -0
- package/esm/store/sideEffects/index.d.ts.map +1 -1
- package/esm/store/sideEffects/index.js +6 -2
- package/esm/store/sideEffects/loadContextDashboards.d.ts +12 -0
- package/esm/store/sideEffects/loadContextDashboards.d.ts.map +1 -0
- package/esm/store/sideEffects/loadContextDashboards.js +57 -0
- package/esm/store/sideEffects/onUserMessage.d.ts.map +1 -1
- package/esm/store/sideEffects/onUserMessage.js +14 -1
- package/esm/types.d.ts +24 -0
- package/esm/types.d.ts.map +1 -1
- package/package.json +20 -20
- package/styles/css/intelligence.css +4 -4
- package/styles/css/intelligence.css.map +1 -1
- package/styles/css/main.css +46 -4
- package/styles/css/main.css.map +1 -1
- package/styles/scss/intelligence.scss +8 -4
- package/styles/scss/main.scss +33 -0
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-8-
|
|
10
|
+
Date generated: 2026-8-17
|
|
11
11
|
|
|
12
|
-
Revision ID:
|
|
12
|
+
Revision ID: a87db0e8382a288c7d652219ae8787851fb066a3
|
|
13
13
|
|
|
14
14
|
================================================================================
|
|
15
15
|
================================================================================
|
|
@@ -375,7 +375,7 @@ Revision ID: 03b276147864f291b2ed2694a19ccbfa1d69ce6b
|
|
|
375
375
|
- balanced-match (2.0.0) [MIT]
|
|
376
376
|
- balanced-match (4.0.4) [MIT]
|
|
377
377
|
- base64-js (1.5.1) [MIT]
|
|
378
|
-
- baseline-browser-mapping (2.11.
|
|
378
|
+
- baseline-browser-mapping (2.11.14) [Apache-2.0]
|
|
379
379
|
- batch (0.6.1) [MIT]
|
|
380
380
|
- binary-extensions (2.3.0) [MIT]
|
|
381
381
|
- bl (4.1.0) [MIT]
|
|
@@ -5303,9 +5303,9 @@ MIT
|
|
|
5303
5303
|
|
|
5304
5304
|
|
|
5305
5305
|
--------------------------------------------------------------------------------
|
|
5306
|
-
Package Title: baseline-browser-mapping (2.11.
|
|
5306
|
+
Package Title: baseline-browser-mapping (2.11.14)
|
|
5307
5307
|
|
|
5308
|
-
Package Locator: npm+baseline-browser-mapping$2.11.
|
|
5308
|
+
Package Locator: npm+baseline-browser-mapping$2.11.14
|
|
5309
5309
|
|
|
5310
5310
|
Package Depth: Transitive
|
|
5311
5311
|
--------------------------------------------------------------------------------
|
|
@@ -29407,4 +29407,4 @@ POSSIBILITY OF SUCH DAMAGE.
|
|
|
29407
29407
|
--------------------------------------------------------------------------------
|
|
29408
29408
|
--------------------------------------------------------------------------------
|
|
29409
29409
|
|
|
29410
|
-
Report Generated by FOSSA on 2026-8-
|
|
29410
|
+
Report Generated by FOSSA on 2026-8-17
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GenAIChat.d.ts","sourceRoot":"","sources":["../../src/components/GenAIChat.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,aAAa,EAAE,MAAM,OAAO,CAAC;AAQ3C,OAAO,EAEH,KAAK,kBAAkB,EACvB,KAAK,gBAAgB,EAExB,MAAM,oBAAoB,CAAC;AAG5B,O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,MAAM,MAAM,mBAAmB,GAAG,IAAI,CAAC,eAAe,EAAE,UAAU,CAAC,GAAG;IAClE;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB;;;OAGG;IACH,WAAW,CAAC,EAAE,CAAC,cAAc,EAAE,gBAAgB,KAAK,MAAM,GAAG,SAAS,CAAC;IAEvE;;;;OAIG;IACH,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAE3B;;OAEG;IACH,aAAa,CAAC,EAAE,OAAO,CAAC;IAExB;;OAEG;IACH,cAAc,CAAC,EAAE,OAAO,CAAC;IAEzB;;OAEG;IACH,kBAAkB,CAAC,EAAE,OAAO,CAAC;IAE7B;;OAEG;IACH,8BAA8B,CAAC,EAAE,MAAM,aAAa,CAAC;IAErD;;OAEG;IACH,2BAA2B,CAAC,EAAE,MAAM,aAAa,GAAG,IAAI,CAAC;IAEzD;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IAEnB;;;;OAIG;IACH,IAAI,CAAC,EAAE,kBAAkB,CAAC;IAE1B;;;OAGG;IACH,YAAY,CAAC,EAAE,CAAC,IAAI,EAAE,kBAAkB,KAAK,IAAI,CAAC;CACrD,CAAC;AAEF;;;;GAIG;AACH,MAAM,MAAM,cAAc,GAAG,mBAAmB,CAAC;AAEjD;;;GAGG;AACH,wBAAgB,cAAc,CAAC,KAAK,EAAE,mBAAmB,2CAuDxD;AAED;;;;GAIG;AACH,eAAO,MAAM,SAAS,uBAAiB,CAAC"}
|
|
@@ -12,10 +12,10 @@ import { GenAiStore } from "./GenAiStore.js";
|
|
|
12
12
|
* @public
|
|
13
13
|
*/
|
|
14
14
|
export function GenAIAssistant(props) {
|
|
15
|
-
const { backend, workspace, locale, colorPalette, eventHandlers, settings, objectTypes, catalogItems, includeTags, excludeTags, isPreview, allowInteractionIntelligence, providedStore, onDispatcher, onLinkClick, mode, allowNativeLinks, } = props;
|
|
15
|
+
const { backend, workspace, locale, colorPalette, eventHandlers, settings, objectTypes, catalogItems, dashboards, includeTags, excludeTags, isPreview, allowInteractionIntelligence, providedStore, onDispatcher, onLinkClick, mode, allowNativeLinks, } = props;
|
|
16
16
|
const effectiveBackend = useBackendStrict(backend);
|
|
17
17
|
const effectiveWorkspace = useWorkspaceStrict(workspace);
|
|
18
|
-
return (_jsx(IntlWrapper, { locale: locale, children: _jsx(GenAiStore, { backend: effectiveBackend, workspace: effectiveWorkspace, onDispatcher: onDispatcher, colorPalette: colorPalette, mode: mode, eventHandlers: eventHandlers, allowNativeLinks: allowNativeLinks, onLinkClick: onLinkClick, settings: settings, objectTypes: objectTypes, includeTags: includeTags, excludeTags: excludeTags, catalogItems: catalogItems, isPreview: isPreview, allowInteractionIntelligence: allowInteractionIntelligence, providedStore: providedStore, children: _jsx(BackendProvider, { backend: effectiveBackend, children: _jsx(WorkspaceProvider, { workspace: effectiveWorkspace, children: _jsx(PermissionsProvider, { children: _jsx(GenAIContent, { ...props }) }) }) }) }) }));
|
|
18
|
+
return (_jsx(IntlWrapper, { locale: locale, children: _jsx(GenAiStore, { backend: effectiveBackend, workspace: effectiveWorkspace, onDispatcher: onDispatcher, colorPalette: colorPalette, mode: mode, eventHandlers: eventHandlers, allowNativeLinks: allowNativeLinks, onLinkClick: onLinkClick, settings: settings, objectTypes: objectTypes, includeTags: includeTags, excludeTags: excludeTags, catalogItems: catalogItems, dashboards: dashboards, isPreview: isPreview, allowInteractionIntelligence: allowInteractionIntelligence, providedStore: providedStore, children: _jsx(BackendProvider, { backend: effectiveBackend, children: _jsx(WorkspaceProvider, { workspace: effectiveWorkspace, children: _jsx(PermissionsProvider, { children: _jsx(GenAIContent, { ...props }) }) }) }) }) }));
|
|
19
19
|
}
|
|
20
20
|
/**
|
|
21
21
|
* UI component that renders the Gen AI chat.
|
|
@@ -64,6 +64,15 @@ export interface IGenAIChatDialogConnectedProps {
|
|
|
64
64
|
settings?: IUserWorkspaceSettings;
|
|
65
65
|
/** Open-state is fully controlled by the caller (props, not redux). */
|
|
66
66
|
isOpen: boolean;
|
|
67
|
+
/**
|
|
68
|
+
* Whether the Gen AI chat dialog is disabled.
|
|
69
|
+
*
|
|
70
|
+
* @remarks
|
|
71
|
+
* Defaults to true. The shell application is expected to explicitly enable the dialog by setting this to false.
|
|
72
|
+
* This default prevents the dialog from briefly appearing (blinking) before the application state is fully
|
|
73
|
+
* initialized.
|
|
74
|
+
*/
|
|
75
|
+
isDisabled?: boolean;
|
|
67
76
|
onOpen: () => void;
|
|
68
77
|
onClose: () => void;
|
|
69
78
|
/** A question to seed into the chat when it opens. */
|
|
@@ -120,5 +129,5 @@ export interface IGenAIChatDialogConnectedProps {
|
|
|
120
129
|
*
|
|
121
130
|
* @internal
|
|
122
131
|
*/
|
|
123
|
-
export declare function GenAIChatDialogConnected({ backend, workspace, locale, canManage, canAnalyze, canFullControl, settings, agentId, isOpen, onOpen, onClose, askedQuestion, askSeq, userContext, ambientUserContext, appendToChat, replaceUserContext, includeTags, excludeTags, objectTypes: objectTypesOverride, onEvent, onAnyEvent, dialogPosition, className, colorPalette, allowNativeLinks, onLinkClick, returnFocusTo }: IGenAIChatDialogConnectedProps): import("react/jsx-runtime").JSX.Element;
|
|
132
|
+
export declare function GenAIChatDialogConnected({ backend, workspace, locale, canManage, canAnalyze, canFullControl, settings, agentId, isOpen, isDisabled, onOpen, onClose, askedQuestion, askSeq, userContext, ambientUserContext, appendToChat, replaceUserContext, includeTags, excludeTags, objectTypes: objectTypesOverride, onEvent, onAnyEvent, dialogPosition, className, colorPalette, allowNativeLinks, onLinkClick, returnFocusTo }: IGenAIChatDialogConnectedProps): import("react/jsx-runtime").JSX.Element;
|
|
124
133
|
//# sourceMappingURL=GenAIChatDialogConnected.d.ts.map
|
|
@@ -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;A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sFAAsF;IACtF,UAAU,CAAC,EAAE,CAAC,KAAK,EAAE,SAAS,KAAK,IAAI,CAAC;IAExC,cAAc,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC;IAClC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,YAAY,CAAC,EAAE,aAAa,CAAC;IAC7B,kFAAkF;IAClF,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B,4EAA4E;IAC5E,WAAW,CAAC,EAAE,CAAC,cAAc,EAAE,gBAAgB,KAAK,MAAM,GAAG,SAAS,CAAC;IACvE,iDAAiD;IACjD,aAAa,CAAC,EAAE,SAAS,CAAC,WAAW,GAAG,IAAI,CAAC,GAAG,MAAM,CAAC;CAC1D;AAED;;;;;;;;;;GAUG;AACH,wBAAgB,wBAAwB,CAAC,EACrC,OAAO,EACP,SAAS,EACT,MAAM,EACN,SAAS,EACT,UAAU,EACV,cAAc,EACd,QAAQ,EACR,OAAO,EACP,MAAM,EACN,MAAM,EACN,OAAO,EACP,aAAa,EACb,MAAM,EACN,WAAW,EACX,kBAAkB,EAClB,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,EAChB,EAAE,8BAA8B,
|
|
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,OAAO,EAAE,KAAK,kBAAkB,EAAE,KAAK,sBAAsB,EAAE,MAAM,2BAA2B,CAAC;AACjG,OAAO,KAAK,EAAE,eAAe,EAAE,aAAa,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AAI7F,OAAO,EACH,KAAK,yBAAyB,EAC9B,KAAK,eAAe,EACpB,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AAY,CAAC,EAAE,aAAa,CAAC;IAC7B,kFAAkF;IAClF,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B,4EAA4E;IAC5E,WAAW,CAAC,EAAE,CAAC,cAAc,EAAE,gBAAgB,KAAK,MAAM,GAAG,SAAS,CAAC;IACvE,iDAAiD;IACjD,aAAa,CAAC,EAAE,SAAS,CAAC,WAAW,GAAG,IAAI,CAAC,GAAG,MAAM,CAAC;CAC1D;AAED;;;;;;;;;;GAUG;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,MAAM,EACN,OAAO,EACP,aAAa,EACb,MAAM,EACN,WAAW,EACX,kBAAkB,EAClB,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,EAChB,EAAE,8BAA8B,2CAsKhC"}
|
|
@@ -17,7 +17,7 @@ import { GenAIChatDialog } from "./GenAIChatDialog.js";
|
|
|
17
17
|
*
|
|
18
18
|
* @internal
|
|
19
19
|
*/
|
|
20
|
-
export function GenAIChatDialogConnected({ backend, workspace, locale, canManage, canAnalyze, canFullControl, settings, agentId, isOpen, onOpen, onClose, askedQuestion, askSeq, userContext, ambientUserContext, appendToChat, replaceUserContext, includeTags, excludeTags, objectTypes: objectTypesOverride, onEvent, onAnyEvent, dialogPosition, className, colorPalette, allowNativeLinks = true, onLinkClick, returnFocusTo, }) {
|
|
20
|
+
export function GenAIChatDialogConnected({ backend, workspace, locale, canManage, canAnalyze, canFullControl, settings, agentId, isOpen, isDisabled = true, onOpen, onClose, askedQuestion, askSeq, userContext, ambientUserContext, appendToChat, replaceUserContext, includeTags, excludeTags, objectTypes: objectTypesOverride, onEvent, onAnyEvent, dialogPosition, className, colorPalette, allowNativeLinks = true, onLinkClick, returnFocusTo, }) {
|
|
21
21
|
const defaultLinkClick = useCallback(({ itemUrl, newTab, preventDefault, type, dashboardStatus, }) => {
|
|
22
22
|
// NOTE: If dashboard is draft, do nothing for now
|
|
23
23
|
if (type === "dashboard" && dashboardStatus === "draft") {
|
|
@@ -147,5 +147,5 @@ export function GenAIChatDialogConnected({ backend, workspace, locale, canManage
|
|
|
147
147
|
settings,
|
|
148
148
|
replaceUserContext,
|
|
149
149
|
]);
|
|
150
|
-
return (_jsx(GenAIChatDialog, { isOpen: isOpen, locale: locale, backend: backend, workspace: workspace, canManage: canManage, canAnalyze: canAnalyze, canFullControl: canFullControl, settings: settings, objectTypes: objectTypes, includeTags: includeTags, excludeTags: excludeTags, className: className, dialogPosition: dialogPosition, colorPalette: colorPalette, allowNativeLinks: allowNativeLinks, onLinkClick: onLinkClick ?? defaultLinkClick, onOpen: onOpen, onClose: onClose, eventHandlers: eventHandlers, onDispatcher: onDispatcher, returnFocusTo: returnFocusTo }));
|
|
150
|
+
return (_jsx(GenAIChatDialog, { isOpen: isOpen, disabled: isDisabled, locale: locale, backend: backend, workspace: workspace, canManage: canManage, canAnalyze: canAnalyze, canFullControl: canFullControl, settings: settings, objectTypes: objectTypes, includeTags: includeTags, excludeTags: excludeTags, className: className, dialogPosition: dialogPosition, colorPalette: colorPalette, allowNativeLinks: allowNativeLinks, onLinkClick: onLinkClick ?? defaultLinkClick, onOpen: onOpen, onClose: onClose, eventHandlers: eventHandlers, onDispatcher: onDispatcher, returnFocusTo: returnFocusTo }));
|
|
151
151
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GenAiChatContextChooser.d.ts","sourceRoot":"","sources":["../../src/components/GenAiChatContextChooser.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"GenAiChatContextChooser.d.ts","sourceRoot":"","sources":["../../src/components/GenAiChatContextChooser.tsx"],"names":[],"mappings":"AAeA,OAAO,EAAE,KAAK,mBAAmB,EAAE,MAAM,aAAa,CAAC;AAWvD,KAAK,+BAA+B,GAAG;IACnC,YAAY,CAAC,EAAE,CAAC,OAAO,EAAE,mBAAmB,KAAK,IAAI,CAAC;CACzD,CAAC;AAEF,wBAAgB,uBAAuB,CAAC,EAAE,YAAY,EAAE,EAAE,+BAA+B,kDAiExF"}
|
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
2
|
// (C) 2026 GoodData Corporation
|
|
3
|
+
import { useCallback } from "react";
|
|
3
4
|
import { defineMessages, useIntl } from "react-intl";
|
|
4
5
|
import { useDispatch, useSelector } from "react-redux";
|
|
5
|
-
import { Dropdown, UiIconButton,
|
|
6
|
+
import { Dropdown, UiIconButton, useIdPrefixed } from "@gooddata/sdk-ui-kit";
|
|
6
7
|
import { ambientContextSelector, userContextSelector } from "../store/chatWindow/chatWindowSelectors.js";
|
|
7
|
-
import { addContextReferenceAction } from "../store/chatWindow/chatWindowSlice.js";
|
|
8
|
+
import { addContextReferenceAction, initContextDashboardsAction, } from "../store/chatWindow/chatWindowSlice.js";
|
|
9
|
+
import { GenAiChatContextChooserBody } from "./GenAiChatContextChooserBody.js";
|
|
8
10
|
import { useContextItems } from "./hooks/useContextItems.js";
|
|
9
11
|
const msgs = defineMessages({
|
|
10
12
|
add: {
|
|
@@ -14,22 +16,24 @@ const msgs = defineMessages({
|
|
|
14
16
|
export function GenAiChatContextChooser({ onAddContext }) {
|
|
15
17
|
const intl = useIntl();
|
|
16
18
|
const dispatch = useDispatch();
|
|
19
|
+
const titleId = useIdPrefixed("context-chooser-title");
|
|
17
20
|
const ambient = useSelector((state) => ambientContextSelector(state));
|
|
18
21
|
const active = useSelector((state) => userContextSelector(state));
|
|
19
|
-
const items = useContextItems(ambient, active);
|
|
22
|
+
const { items: inputItems, isLoading, hasNextPage, loadNextPage } = useContextItems(ambient, active);
|
|
23
|
+
const addContextLabel = intl.formatMessage(msgs.add);
|
|
24
|
+
const onOpenStateChanged = useCallback((isOpen) => {
|
|
25
|
+
if (isOpen) {
|
|
26
|
+
dispatch(initContextDashboardsAction());
|
|
27
|
+
}
|
|
28
|
+
}, [dispatch]);
|
|
20
29
|
if (!ambient) {
|
|
21
30
|
return null;
|
|
22
31
|
}
|
|
23
|
-
return (_jsx("div", { className: "gd-gen-ai-chat__input__context", children: _jsx(Dropdown, { alignPoints: [{ align: "tl bl", offset: { x: 0, y: 0 } }], closeOnEscape: true, fullscreenOnMobile: false, autofocusOnOpen: true, accessibilityConfig: {}, renderButton: ({ isOpen, toggleDropdown, accessibilityConfig }) => (_jsx(UiIconButton, { icon: "plus", variant: "tertiary", size: "small", dataTestId: "choose_context", isActive: isOpen, accessibilityConfig: {
|
|
32
|
+
return (_jsx("div", { className: "gd-gen-ai-chat__input__context", children: _jsx(Dropdown, { alignPoints: [{ align: "tl bl", offset: { x: 0, y: 0 } }], closeOnEscape: true, fullscreenOnMobile: false, autofocusOnOpen: true, accessibilityConfig: {}, onOpenStateChanged: onOpenStateChanged, renderButton: ({ isOpen, toggleDropdown, accessibilityConfig }) => (_jsx(UiIconButton, { icon: "plus", variant: "tertiary", size: "small", dataTestId: "choose_context", isActive: isOpen, accessibilityConfig: {
|
|
24
33
|
...accessibilityConfig,
|
|
25
|
-
ariaLabel:
|
|
26
|
-
}, onClick: toggleDropdown, isDisabled: !
|
|
27
|
-
dispatch(addContextReferenceAction({ object: item
|
|
28
|
-
onAddContext?.(item
|
|
29
|
-
closeDropdown();
|
|
34
|
+
ariaLabel: addContextLabel,
|
|
35
|
+
}, onClick: toggleDropdown, isDisabled: !inputItems.length && !hasNextPage && !isLoading })), renderBody: ({ closeDropdown, ariaAttributes }) => (_jsx(GenAiChatContextChooserBody, { inputItems: inputItems, title: addContextLabel, titleId: titleId, isLoading: isLoading, hasNextPage: hasNextPage, loadNextPage: loadNextPage, ariaAttributes: ariaAttributes, closeDropdown: closeDropdown, onSelect: (item) => {
|
|
36
|
+
dispatch(addContextReferenceAction({ object: item }));
|
|
37
|
+
onAddContext?.(item);
|
|
30
38
|
} })) }) }));
|
|
31
39
|
}
|
|
32
|
-
function ContextMenuHeader() {
|
|
33
|
-
const intl = useIntl();
|
|
34
|
-
return _jsx(UiSubmenuHeader, { title: intl.formatMessage(msgs.add), height: "medium" });
|
|
35
|
-
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { type IGenAIContextObject } from "../types.js";
|
|
2
|
+
type GenAiChatContextChooserBodyProps = {
|
|
3
|
+
inputItems: IGenAIContextObject[];
|
|
4
|
+
title: string;
|
|
5
|
+
titleId: string;
|
|
6
|
+
isLoading?: boolean;
|
|
7
|
+
hasNextPage?: boolean;
|
|
8
|
+
loadNextPage?: () => void;
|
|
9
|
+
ariaAttributes: {
|
|
10
|
+
id: string;
|
|
11
|
+
role?: string;
|
|
12
|
+
"aria-labelledby"?: string;
|
|
13
|
+
};
|
|
14
|
+
onSelect: (item: IGenAIContextObject) => void;
|
|
15
|
+
closeDropdown: () => void;
|
|
16
|
+
};
|
|
17
|
+
export declare function GenAiChatContextChooserBody({ inputItems, title, titleId, isLoading, hasNextPage, loadNextPage, ariaAttributes, onSelect, closeDropdown }: GenAiChatContextChooserBodyProps): import("react/jsx-runtime").JSX.Element;
|
|
18
|
+
export {};
|
|
19
|
+
//# sourceMappingURL=GenAiChatContextChooserBody.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GenAiChatContextChooserBody.d.ts","sourceRoot":"","sources":["../../src/components/GenAiChatContextChooserBody.tsx"],"names":[],"mappings":"AAsBA,OAAO,EAAE,KAAK,mBAAmB,EAAE,MAAM,aAAa,CAAC;AA6BvD,KAAK,gCAAgC,GAAG;IACpC,UAAU,EAAE,mBAAmB,EAAE,CAAC;IAClC,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,MAAM,CAAC;IAChB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,YAAY,CAAC,EAAE,MAAM,IAAI,CAAC;IAC1B,cAAc,EAAE;QACZ,EAAE,EAAE,MAAM,CAAC;QACX,IAAI,CAAC,EAAE,MAAM,CAAC;QACd,iBAAiB,CAAC,EAAE,MAAM,CAAC;KAC9B,CAAC;IACF,QAAQ,EAAE,CAAC,IAAI,EAAE,mBAAmB,KAAK,IAAI,CAAC;IAC9C,aAAa,EAAE,MAAM,IAAI,CAAC;CAC7B,CAAC;AAEF,wBAAgB,2BAA2B,CAAC,EACxC,UAAU,EACV,KAAK,EACL,OAAO,EACP,SAAiB,EACjB,WAAmB,EACnB,YAAY,EACZ,cAAc,EACd,QAAQ,EACR,aAAa,EAChB,EAAE,gCAAgC,2CAsIlC"}
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
import { Fragment as _Fragment, jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
// (C) 2026 GoodData Corporation
|
|
3
|
+
import { useCallback, useId, useMemo, useState } from "react";
|
|
4
|
+
import cx from "classnames";
|
|
5
|
+
import { defineMessages, useIntl } from "react-intl";
|
|
6
|
+
import { DEFAULT_ITEM_HEIGHT, DETAILED_ANNOUNCEMENT_THRESHOLD, Input, NoData, ScopedIdStore, ShortenedText, UiIcon, UiPagedVirtualList, UiSearchResultsAnnouncement, UiSubmenuHeader, isTypingKey, useScopedIdStoreValue, } from "@gooddata/sdk-ui-kit";
|
|
7
|
+
import { getIconByType } from "./utils/icons.js";
|
|
8
|
+
const SEARCH_FIELD_VISIBILITY_THRESHOLD = 7;
|
|
9
|
+
const MAX_VISIBLE_ITEMS = 7;
|
|
10
|
+
const LOADING_SKELETON_ITEMS_COUNT = 3;
|
|
11
|
+
const msgs = defineMessages({
|
|
12
|
+
close: {
|
|
13
|
+
id: "gd.gen-ai.context.close",
|
|
14
|
+
},
|
|
15
|
+
listAriaLabel: {
|
|
16
|
+
id: "gd.gen-ai.context.list.ariaLabel",
|
|
17
|
+
},
|
|
18
|
+
searchPlaceholder: {
|
|
19
|
+
id: "gd.gen-ai.context.search.placeholder",
|
|
20
|
+
},
|
|
21
|
+
searchAriaLabel: {
|
|
22
|
+
id: "gd.gen-ai.context.search.ariaLabel",
|
|
23
|
+
},
|
|
24
|
+
noMatchingData: {
|
|
25
|
+
id: "gd.gen-ai.context.noMatchingData",
|
|
26
|
+
},
|
|
27
|
+
noDataAvailable: {
|
|
28
|
+
id: "gd.gen-ai.context.noDataAvailable",
|
|
29
|
+
},
|
|
30
|
+
});
|
|
31
|
+
export function GenAiChatContextChooserBody({ inputItems, title, titleId, isLoading = false, hasNextPage = false, loadNextPage, ariaAttributes, onSelect, closeDropdown, }) {
|
|
32
|
+
const intl = useIntl();
|
|
33
|
+
const listboxId = useId();
|
|
34
|
+
const [searchString, setSearchString] = useState("");
|
|
35
|
+
const isSearchFieldVisible = inputItems.length > SEARCH_FIELD_VISIBILITY_THRESHOLD;
|
|
36
|
+
const searchStringToUse = isSearchFieldVisible ? searchString : "";
|
|
37
|
+
const normalizedSearch = searchStringToUse.trim().toLowerCase();
|
|
38
|
+
const filteredItems = useMemo(() => {
|
|
39
|
+
if (!normalizedSearch) {
|
|
40
|
+
return inputItems;
|
|
41
|
+
}
|
|
42
|
+
return inputItems.filter((item) => item.title.toLowerCase().includes(normalizedSearch));
|
|
43
|
+
}, [inputItems, normalizedSearch]);
|
|
44
|
+
const scopedIdStoreValue = useScopedIdStoreValue((item) => `${item.type}-${item.id}`);
|
|
45
|
+
const handleSelect = useCallback((item) => {
|
|
46
|
+
onSelect(item);
|
|
47
|
+
closeDropdown();
|
|
48
|
+
}, [closeDropdown, onSelect]);
|
|
49
|
+
const hasNoData = !isLoading && filteredItems.length === 0;
|
|
50
|
+
const hasNoMatchingData = hasNoData && normalizedSearch.length > 0;
|
|
51
|
+
const searchFilled = searchString.length > 0;
|
|
52
|
+
const onEscKeyPress = useCallback((event) => {
|
|
53
|
+
if (searchFilled) {
|
|
54
|
+
event.stopPropagation();
|
|
55
|
+
}
|
|
56
|
+
else {
|
|
57
|
+
closeDropdown();
|
|
58
|
+
}
|
|
59
|
+
}, [closeDropdown, searchFilled]);
|
|
60
|
+
const canLoadNextPage = hasNextPage && normalizedSearch.length === 0;
|
|
61
|
+
const shouldShowPagedList = !hasNoData || canLoadNextPage;
|
|
62
|
+
const skeletonItemsCount = isLoading || (canLoadNextPage && filteredItems.length === 0) ? LOADING_SKELETON_ITEMS_COUNT : 0;
|
|
63
|
+
const visibleRowsCount = filteredItems.length + skeletonItemsCount;
|
|
64
|
+
const listMaxHeight = Math.min(Math.max(visibleRowsCount, 1), MAX_VISIBLE_ITEMS) * DEFAULT_ITEM_HEIGHT;
|
|
65
|
+
return (_jsxs("div", { ...ariaAttributes, "aria-labelledby": titleId, className: "gd-gen-ai-chat__context-chooser", "data-testid": "context_chooser_menu", children: [
|
|
66
|
+
_jsx(UiSubmenuHeader, { title: title, titleId: titleId, height: "medium", onClose: closeDropdown, closeAriaLabel: intl.formatMessage(msgs.close) }), isSearchFieldVisible ? (_jsxs(_Fragment, { children: [
|
|
67
|
+
_jsx("div", { onKeyDown: (event) => {
|
|
68
|
+
if (isTypingKey(event)) {
|
|
69
|
+
event.stopPropagation();
|
|
70
|
+
}
|
|
71
|
+
}, children: _jsx(Input, { className: cx("gd-list-searchfield", "gd-flex-item"), value: searchStringToUse, onChange: (value) => setSearchString(String(value)), onEscKeyPress: onEscKeyPress, placeholder: intl.formatMessage(msgs.searchPlaceholder), autofocus: true, clearOnEsc: true, isSearch: true, isSmall: true, type: "search", accessibilityConfig: {
|
|
72
|
+
ariaLabel: intl.formatMessage(msgs.searchAriaLabel),
|
|
73
|
+
ariaControls: listboxId,
|
|
74
|
+
} }) }), _jsx(UiSearchResultsAnnouncement, { totalResults: normalizedSearch ? filteredItems.length : undefined, resultValues: filteredItems.length <= DETAILED_ANNOUNCEMENT_THRESHOLD
|
|
75
|
+
? filteredItems.map((item) => item.title)
|
|
76
|
+
: undefined })
|
|
77
|
+
] })) : null, shouldShowPagedList ? (_jsx(ScopedIdStore, { value: scopedIdStoreValue, children: _jsx(UiPagedVirtualList, { maxHeight: listMaxHeight, items: filteredItems, itemHeight: DEFAULT_ITEM_HEIGHT, itemsGap: 0, itemPadding: 0, skeletonItemsCount: skeletonItemsCount, isLoading: isLoading, hasNextPage: canLoadNextPage, loadNextPage: loadNextPage, representAs: "listbox", closeDropdown: closeDropdown, onKeyDownConfirm: handleSelect, listboxProps: {
|
|
78
|
+
id: listboxId,
|
|
79
|
+
"aria-label": intl.formatMessage(msgs.listAriaLabel),
|
|
80
|
+
}, children: (item) => _jsx(ContextChooserItem, { item: item, onSelect: () => handleSelect(item) }) }) })) : (_jsx(NoData, { hasNoMatchingData: hasNoMatchingData, notFoundLabel: intl.formatMessage(msgs.noMatchingData), noDataLabel: intl.formatMessage(msgs.noDataAvailable) }))] }));
|
|
81
|
+
}
|
|
82
|
+
function ContextChooserItem({ item, onSelect }) {
|
|
83
|
+
const icon = getIconByType(item.type);
|
|
84
|
+
return (_jsxs("div", { className: "gd-list-item", title: item.title, onClick: onSelect, children: [icon.iconBefore ? _jsx(UiIcon, { size: 16, type: icon.iconBefore, color: icon.iconColor }) : null, _jsx(ShortenedText, { ellipsisPosition: "end", children: item.title })
|
|
85
|
+
] }));
|
|
86
|
+
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { type ReactNode } from "react";
|
|
2
2
|
import { type EnhancedStore, type Store } from "@reduxjs/toolkit";
|
|
3
3
|
import { type IAnalyticalBackend, type IUserWorkspaceSettings } from "@gooddata/sdk-backend-spi";
|
|
4
|
-
import { type CatalogItem, type GenAIObjectType, type IColorPalette } from "@gooddata/sdk-model";
|
|
4
|
+
import { type CatalogItem, type GenAIObjectType, type IColorPalette, type IListedDashboard } from "@gooddata/sdk-model";
|
|
5
5
|
import { type ChatEventHandler } from "../store/events.js";
|
|
6
6
|
import { type GenAIAssistantMode, type LinkHandlerEvent } from "./ConfigContext.js";
|
|
7
7
|
/**
|
|
@@ -25,6 +25,11 @@ export type GenAiStoreProps = {
|
|
|
25
25
|
* Catalog items for autocomplete.
|
|
26
26
|
*/
|
|
27
27
|
catalogItems?: CatalogItem[];
|
|
28
|
+
/**
|
|
29
|
+
* Dashboards offered by the context chooser. When provided, the list is taken as complete and
|
|
30
|
+
* no dashboards are loaded from the backend.
|
|
31
|
+
*/
|
|
32
|
+
dashboards?: IListedDashboard[];
|
|
28
33
|
/**
|
|
29
34
|
* User settings to use for the chat UI.
|
|
30
35
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GenAiStore.d.ts","sourceRoot":"","sources":["../../src/components/GenAiStore.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,SAAS,EAAmC,MAAM,OAAO,CAAC;AAExE,OAAO,EAAE,KAAK,aAAa,EAAE,KAAK,KAAK,EAAE,MAAM,kBAAkB,CAAC;AAGlE,OAAO,EAAE,KAAK,kBAAkB,EAAE,KAAK,sBAAsB,EAAE,MAAM,2BAA2B,CAAC;AACjG,OAAO,
|
|
1
|
+
{"version":3,"file":"GenAiStore.d.ts","sourceRoot":"","sources":["../../src/components/GenAiStore.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,SAAS,EAAmC,MAAM,OAAO,CAAC;AAExE,OAAO,EAAE,KAAK,aAAa,EAAE,KAAK,KAAK,EAAE,MAAM,kBAAkB,CAAC;AAGlE,OAAO,EAAE,KAAK,kBAAkB,EAAE,KAAK,sBAAsB,EAAE,MAAM,2BAA2B,CAAC;AACjG,OAAO,EACH,KAAK,WAAW,EAChB,KAAK,eAAe,EACpB,KAAK,aAAa,EAClB,KAAK,gBAAgB,EACxB,MAAM,qBAAqB,CAAC;AAK7B,OAAO,EAAE,KAAK,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAG3D,OAAO,EAAkB,KAAK,kBAAkB,EAAE,KAAK,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAEpG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hD"}
|
|
@@ -59,7 +59,7 @@ function InjectedStore({ onDispatcher, children, currentStore, }) {
|
|
|
59
59
|
const content = typeof children === "function" ? children(currentStore) : children;
|
|
60
60
|
return _jsx(StoreProvider, { store: currentStore, children: content });
|
|
61
61
|
}
|
|
62
|
-
function InternalStore({ backend, workspace, onDispatcher, children, eventHandlers, settings, catalogItems, includeTags, excludeTags, objectTypes, allowNativeLinks, onLinkClick, mode, isPreview, allowInteractionIntelligence, colorPalette, }) {
|
|
62
|
+
function InternalStore({ backend, workspace, onDispatcher, children, eventHandlers, settings, catalogItems, dashboards, includeTags, excludeTags, objectTypes, allowNativeLinks, onLinkClick, mode, isPreview, allowInteractionIntelligence, colorPalette, }) {
|
|
63
63
|
const effectiveBackend = useBackendStrict(backend);
|
|
64
64
|
const effectiveWorkspace = useWorkspaceStrict(workspace);
|
|
65
65
|
const genAIStore = useGenAIStore(effectiveBackend, effectiveWorkspace, {
|
|
@@ -70,6 +70,7 @@ function InternalStore({ backend, workspace, onDispatcher, children, eventHandle
|
|
|
70
70
|
includeTags,
|
|
71
71
|
excludeTags,
|
|
72
72
|
catalogItems,
|
|
73
|
+
dashboards,
|
|
73
74
|
isPreview,
|
|
74
75
|
allowInteractionIntelligence,
|
|
75
76
|
allowNativeLinks,
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
import { type IGenAIUserContext } from "@gooddata/sdk-model";
|
|
2
|
-
import { type IUiMenuItem } from "@gooddata/sdk-ui-kit";
|
|
3
2
|
import { type IGenAIContextObject } from "../../types.js";
|
|
4
|
-
export declare function useContextItems(ambient: IGenAIUserContext | undefined, active: IGenAIUserContext | undefined):
|
|
5
|
-
|
|
6
|
-
|
|
3
|
+
export declare function useContextItems(ambient: IGenAIUserContext | undefined, active: IGenAIUserContext | undefined): {
|
|
4
|
+
items: IGenAIContextObject[];
|
|
5
|
+
isLoading: boolean;
|
|
6
|
+
hasNextPage: boolean;
|
|
7
|
+
loadNextPage: () => void;
|
|
8
|
+
};
|
|
7
9
|
//# sourceMappingURL=useContextItems.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useContextItems.d.ts","sourceRoot":"","sources":["../../../src/components/hooks/useContextItems.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"useContextItems.d.ts","sourceRoot":"","sources":["../../../src/components/hooks/useContextItems.tsx"],"names":[],"mappings":"AAOA,OAAO,EAAE,KAAK,iBAAiB,EAAmB,MAAM,qBAAqB,CAAC;AAQ9E,OAAO,EAAE,KAAK,mBAAmB,EAAE,MAAM,gBAAgB,CAAC;AAE1D,wBAAgB,eAAe,CAC3B,OAAO,EAAE,iBAAiB,GAAG,SAAS,EACtC,MAAM,EAAE,iBAAiB,GAAG,SAAS;;;;;EA4CxC"}
|
|
@@ -1,34 +1,39 @@
|
|
|
1
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
1
|
// (C) 2026 GoodData Corporation
|
|
3
|
-
import { useMemo } from "react";
|
|
2
|
+
import { useCallback, useMemo } from "react";
|
|
4
3
|
import { useIntl } from "react-intl";
|
|
5
|
-
import {
|
|
4
|
+
import { useDispatch, useSelector } from "react-redux";
|
|
5
|
+
import { serializeObjRef } from "@gooddata/sdk-model";
|
|
6
6
|
import { collectAvailableReferences, collectContextReferences, } from "../../context/collectContextReferences.js";
|
|
7
|
-
import {
|
|
7
|
+
import { contextDashboardsSelector } from "../../store/chatWindow/chatWindowSelectors.js";
|
|
8
|
+
import { loadContextDashboardsNextPageAction } from "../../store/chatWindow/chatWindowSlice.js";
|
|
8
9
|
export function useContextItems(ambient, active) {
|
|
9
10
|
const intl = useIntl();
|
|
11
|
+
const dispatch = useDispatch();
|
|
10
12
|
const emptyReferenceLabel = intl.formatMessage({ id: "gd.gen-ai.context.untitled" });
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
const
|
|
13
|
+
const dashboards = useSelector(contextDashboardsSelector);
|
|
14
|
+
const items = useMemo(() => {
|
|
15
|
+
const ambientReferences = collectAvailableReferences(ambient, emptyReferenceLabel);
|
|
14
16
|
const selectedReferences = collectContextReferences(active, emptyReferenceLabel);
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
17
|
+
const offered = new Set(ambientReferences.map((reference) => serializeObjRef(reference.ref)));
|
|
18
|
+
const dashboardReferences = dashboards.items
|
|
19
|
+
.filter((dashboard) => !offered.has(serializeObjRef(dashboard.ref)))
|
|
20
|
+
.map((dashboard) => ({
|
|
21
|
+
id: dashboard.id,
|
|
22
|
+
ref: dashboard.ref,
|
|
23
|
+
type: "dashboard",
|
|
24
|
+
where: "referencedObjects",
|
|
25
|
+
title: dashboard.title || emptyReferenceLabel || dashboard.id,
|
|
26
|
+
nesting: 1,
|
|
27
|
+
}));
|
|
28
|
+
return [...ambientReferences, ...dashboardReferences].filter((reference) => !selectedReferences.some((selectedReference) => selectedReference.id === reference.id && selectedReference.type === reference.type));
|
|
29
|
+
}, [active, ambient, dashboards.items, emptyReferenceLabel]);
|
|
30
|
+
const loadNextPage = useCallback(() => {
|
|
31
|
+
dispatch(loadContextDashboardsNextPageAction());
|
|
32
|
+
}, [dispatch]);
|
|
33
|
+
return {
|
|
34
|
+
items,
|
|
35
|
+
isLoading: dashboards.isLoading,
|
|
36
|
+
hasNextPage: dashboards.hasNextPage,
|
|
37
|
+
loadNextPage,
|
|
38
|
+
};
|
|
34
39
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GenAiInteractionIntelligence.d.ts","sourceRoot":"","sources":["../../../src/components/intelligence/GenAiInteractionIntelligence.tsx"],"names":[],"mappings":"AAQA,OAAO,KAAK,EAAwB,2BAA2B,EAAE,MAAM,iBAAiB,CAAC;AASzF;;;GAGG;AACH,MAAM,WAAW,kCAAkC;IAC/C,UAAU,EAAE,MAAM,CAAC;IACnB,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,8EAA8E;IAC9E,WAAW,CAAC,EAAE,2BAA2B,CAAC;IAC1C,+FAA+F;IAC/F,eAAe,CAAC,EAAE,MAAM,CAAC;CAC5B;AAED;;;;;GAKG;AACH,wBAAgB,4BAA4B,CAAC,EACzC,UAAU,EACV,OAAO,EACP,WAAoB,EACpB,eAAe,EAClB,EAAE,kCAAkC,
|
|
1
|
+
{"version":3,"file":"GenAiInteractionIntelligence.d.ts","sourceRoot":"","sources":["../../../src/components/intelligence/GenAiInteractionIntelligence.tsx"],"names":[],"mappings":"AAQA,OAAO,KAAK,EAAwB,2BAA2B,EAAE,MAAM,iBAAiB,CAAC;AASzF;;;GAGG;AACH,MAAM,WAAW,kCAAkC;IAC/C,UAAU,EAAE,MAAM,CAAC;IACnB,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,8EAA8E;IAC9E,WAAW,CAAC,EAAE,2BAA2B,CAAC;IAC1C,+FAA+F;IAC/F,eAAe,CAAC,EAAE,MAAM,CAAC;CAC5B;AAED;;;;;GAKG;AACH,wBAAgB,4BAA4B,CAAC,EACzC,UAAU,EACV,OAAO,EACP,WAAoB,EACpB,eAAe,EAClB,EAAE,kCAAkC,kDAsEpC"}
|
|
@@ -33,6 +33,9 @@ export function GenAiInteractionIntelligence({ responseId, onClose, initialMode
|
|
|
33
33
|
: { mode: "list", categoryIndex: 0 });
|
|
34
34
|
const openCategory = useCallback((categoryIndex) => {
|
|
35
35
|
setView({ mode: "detail", categoryIndex });
|
|
36
|
+
// Clicking a row unmounts the list, so its `mouseleave` never fires — the hover would
|
|
37
|
+
// otherwise still be highlighting that row's tiles on the way back.
|
|
38
|
+
setHoveredStepIndexes(undefined);
|
|
36
39
|
}, []);
|
|
37
40
|
const backToList = useCallback(() => setView({ mode: "list", categoryIndex: 0 }), []);
|
|
38
41
|
const hasData = !!data;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"categoryDetailRows.d.ts","sourceRoot":"","sources":["../../../../src/components/intelligence/data/categoryDetailRows.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"categoryDetailRows.d.ts","sourceRoot":"","sources":["../../../../src/components/intelligence/data/categoryDetailRows.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAKR,2BAA2B,EAI9B,MAAM,2BAA2B,CAAC;AAGnC,OAAO,KAAK,EACR,mCAAmC,EAEnC,yBAAyB,EAC5B,MAAM,YAAY,CAAC;AAiDpB;;;;;GAKG;AACH,wBAAgB,gBAAgB,CAAC,MAAM,EAAE,2BAA2B,GAAG,mCAAmC,EAAE,CAmB3G;AAqED,uEAAuE;AACvE,wBAAgB,aAAa,CAAC,MAAM,EAAE,2BAA2B,GAAG,yBAAyB,EAAE,CAmB9F"}
|