@gooddata/sdk-ui-gen-ai 11.55.0 → 11.56.0-alpha.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (150) hide show
  1. package/NOTICE +5 -5
  2. package/esm/components/ConfigContext.d.ts +6 -1
  3. package/esm/components/ConfigContext.d.ts.map +1 -1
  4. package/esm/components/GenAIChatAgentDropdown.js +1 -2
  5. package/esm/components/GenAIChatContextIndicator.js +3 -7
  6. package/esm/components/GenAIChatConversations.js +5 -16
  7. package/esm/components/GenAIChatDialog.d.ts +1 -1
  8. package/esm/components/GenAIChatDialog.d.ts.map +1 -1
  9. package/esm/components/GenAIChatDialog.js +4 -5
  10. package/esm/components/GenAIChatDialogConnected.d.ts +9 -2
  11. package/esm/components/GenAIChatDialogConnected.d.ts.map +1 -1
  12. package/esm/components/GenAIChatDialogConnected.js +2 -2
  13. package/esm/components/GenAIChatHeader.js +1 -3
  14. package/esm/components/GenAIChatOverlay.d.ts +3 -1
  15. package/esm/components/GenAIChatOverlay.d.ts.map +1 -1
  16. package/esm/components/GenAIChatOverlay.js +12 -8
  17. package/esm/components/GenAIChatReasoningMenu.js +1 -3
  18. package/esm/components/GenAIChatWrapper.js +1 -2
  19. package/esm/components/GenAIStandaloneInput.js +1 -3
  20. package/esm/components/GenAiChatAgentSwitching.js +1 -2
  21. package/esm/components/GenAiChatContextChooserBody.js +3 -7
  22. package/esm/components/GenAiStore.d.ts +6 -2
  23. package/esm/components/GenAiStore.d.ts.map +1 -1
  24. package/esm/components/GenAiStore.js +1 -1
  25. package/esm/components/GlobalError.js +2 -10
  26. package/esm/components/Input.js +2 -6
  27. package/esm/components/completion/InfoComponent.js +2 -11
  28. package/esm/components/completion/plugins/rehype-references.d.ts.map +1 -1
  29. package/esm/components/completion/plugins/remark-references.d.ts.map +1 -1
  30. package/esm/components/completion/utils.d.ts.map +1 -1
  31. package/esm/components/customized/LandingScreen.js +1 -5
  32. package/esm/components/hooks/useContextItems.d.ts +5 -5
  33. package/esm/components/hooks/useContextItems.d.ts.map +1 -1
  34. package/esm/components/hooks/useInputAutofocus.d.ts.map +1 -1
  35. package/esm/components/hooks/useInputAutofocus.js +9 -5
  36. package/esm/components/hooks/useSettingsClick.d.ts +1 -1
  37. package/esm/components/hooks/useSettingsClick.d.ts.map +1 -1
  38. package/esm/components/intelligence/GenAiInteractionIntelligence.js +1 -2
  39. package/esm/components/intelligence/data/types.d.ts.map +1 -1
  40. package/esm/components/intelligence/detail/IntelligenceCategoryDetail.js +1 -3
  41. package/esm/components/intelligence/detail/IntelligenceDetailHeader.js +1 -3
  42. package/esm/components/intelligence/detail/IntelligenceDetailRows.js +1 -3
  43. package/esm/components/intelligence/detail/IntelligenceStepCarousel.js +2 -4
  44. package/esm/components/intelligence/intelligenceBem.d.ts +1 -1
  45. package/esm/components/intelligence/intelligenceBem.d.ts.map +1 -1
  46. package/esm/components/intelligence/panel/IntelligenceCategoryRow.js +1 -3
  47. package/esm/components/intelligence/panel/IntelligenceDurationTokens.js +1 -3
  48. package/esm/components/intelligence/panel/IntelligenceFooter.js +1 -3
  49. package/esm/components/intelligence/panel/IntelligenceHeader.js +1 -3
  50. package/esm/components/intelligence/panel/IntelligenceStepTooltip.js +1 -4
  51. package/esm/components/intelligence/panel/IntelligenceTimeline.d.ts.map +1 -1
  52. package/esm/components/intelligence/panel/TimelineBar.d.ts.map +1 -1
  53. package/esm/components/messages/AgentChangeItem.js +1 -3
  54. package/esm/components/messages/AssistantItem.js +1 -3
  55. package/esm/components/messages/AssistantItemFeedback.js +1 -2
  56. package/esm/components/messages/AssistantMessage.js +3 -7
  57. package/esm/components/messages/FeedbackPopup.js +3 -10
  58. package/esm/components/messages/ItemsGroup.js +2 -6
  59. package/esm/components/messages/MessageContents.js +1 -2
  60. package/esm/components/messages/MessageScroller.d.ts.map +1 -1
  61. package/esm/components/messages/ReasoningDropdown.js +1 -4
  62. package/esm/components/messages/UserItem.js +1 -3
  63. package/esm/components/messages/UserMessage.js +1 -3
  64. package/esm/components/messages/contents/ChangeAnalysisContentsComponent.js +2 -4
  65. package/esm/components/messages/contents/ReasoningContents.js +1 -5
  66. package/esm/components/messages/contents/SemanticSearchContents.js +1 -6
  67. package/esm/components/messages/contents/VisualizationContents.js +3 -8
  68. package/esm/components/messages/contents/VisualizationSaveDialog.js +2 -4
  69. package/esm/components/messages/contents/replaceLinks.d.ts.map +1 -1
  70. package/esm/components/messages/contents/useExecution.d.ts +1 -1
  71. package/esm/components/messages/contents/useExecution.d.ts.map +1 -1
  72. package/esm/components/messages/conversationContents/ConversationAlertProposalContent.js +16 -49
  73. package/esm/components/messages/conversationContents/ConversationDashboardContent.js +1 -13
  74. package/esm/components/messages/conversationContents/ConversationErrorContent.js +5 -11
  75. package/esm/components/messages/conversationContents/ConversationKdaContent.js +1 -3
  76. package/esm/components/messages/conversationContents/ConversationSearchContent.js +1 -5
  77. package/esm/components/messages/conversationContents/ConversationVisualizationContent.js +3 -9
  78. package/esm/components/messages/conversationContents/SaveVisualizationDialog.js +2 -4
  79. package/esm/components/messages/conversationContents/useExecution.d.ts +2 -1
  80. package/esm/components/messages/conversationContents/useExecution.d.ts.map +1 -1
  81. package/esm/components/utils/animation.js +3 -6
  82. package/esm/components/utils/conversationGrouper.js +1 -2
  83. package/esm/hooks/useGenAIStandaloneInputData.d.ts.map +1 -1
  84. package/esm/hooks/useGenAIStore.d.ts +16 -15
  85. package/esm/hooks/useGenAIStore.d.ts.map +1 -1
  86. package/esm/index.d.ts +1 -1
  87. package/esm/index.d.ts.map +1 -1
  88. package/esm/localization/bundles/de-DE.localization-bundle.d.ts.map +1 -1
  89. package/esm/localization/bundles/en-AU.localization-bundle.d.ts.map +1 -1
  90. package/esm/localization/bundles/en-GB.localization-bundle.d.ts.map +1 -1
  91. package/esm/localization/bundles/en-US.localization-bundle.d.ts +560 -560
  92. package/esm/localization/bundles/en-US.localization-bundle.d.ts.map +1 -1
  93. package/esm/localization/bundles/es-419.localization-bundle.d.ts.map +1 -1
  94. package/esm/localization/bundles/es-ES.localization-bundle.d.ts.map +1 -1
  95. package/esm/localization/bundles/fi-FI.localization-bundle.d.ts.map +1 -1
  96. package/esm/localization/bundles/fr-CA.localization-bundle.d.ts.map +1 -1
  97. package/esm/localization/bundles/fr-FR.localization-bundle.d.ts.map +1 -1
  98. package/esm/localization/bundles/id-ID.localization-bundle.d.ts.map +1 -1
  99. package/esm/localization/bundles/it-IT.localization-bundle.d.ts.map +1 -1
  100. package/esm/localization/bundles/ja-JP.localization-bundle.d.ts.map +1 -1
  101. package/esm/localization/bundles/ko-KR.localization-bundle.d.ts.map +1 -1
  102. package/esm/localization/bundles/nl-NL.localization-bundle.d.ts.map +1 -1
  103. package/esm/localization/bundles/pl-PL.localization-bundle.d.ts.map +1 -1
  104. package/esm/localization/bundles/pt-BR.localization-bundle.d.ts.map +1 -1
  105. package/esm/localization/bundles/pt-PT.localization-bundle.d.ts.map +1 -1
  106. package/esm/localization/bundles/ru-RU.localization-bundle.d.ts.map +1 -1
  107. package/esm/localization/bundles/sl-SI.localization-bundle.d.ts.map +1 -1
  108. package/esm/localization/bundles/th-TH.localization-bundle.d.ts.map +1 -1
  109. package/esm/localization/bundles/tr-TR.localization-bundle.d.ts.map +1 -1
  110. package/esm/localization/bundles/uk-UA.localization-bundle.d.ts.map +1 -1
  111. package/esm/localization/bundles/vi-VN.localization-bundle.d.ts.map +1 -1
  112. package/esm/localization/bundles/zh-HK.localization-bundle.d.ts.map +1 -1
  113. package/esm/localization/bundles/zh-Hans.localization-bundle.d.ts.map +1 -1
  114. package/esm/localization/bundles/zh-Hant.localization-bundle.d.ts.map +1 -1
  115. package/esm/model.d.ts +7 -7
  116. package/esm/model.d.ts.map +1 -1
  117. package/esm/permissions/PermissionsContext.d.ts.map +1 -1
  118. package/esm/sdk-ui-gen-ai.d.ts +18 -8
  119. package/esm/store/chatWindow/chatWindowSlice.d.ts +19 -19
  120. package/esm/store/chatWindow/chatWindowSlice.d.ts.map +1 -1
  121. package/esm/store/events.d.ts.map +1 -1
  122. package/esm/store/messages/messagesSelectors.d.ts +10 -10
  123. package/esm/store/messages/messagesSelectors.d.ts.map +1 -1
  124. package/esm/store/messages/messagesSlice.d.ts +31 -30
  125. package/esm/store/messages/messagesSlice.d.ts.map +1 -1
  126. package/esm/store/sideEffects/converters/interactionsToMessages.d.ts +1 -1
  127. package/esm/store/sideEffects/converters/interactionsToMessages.d.ts.map +1 -1
  128. package/esm/store/sideEffects/loadColorPalette.d.ts +1 -1
  129. package/esm/store/sideEffects/loadSettings.d.ts +1 -1
  130. package/esm/store/sideEffects/onChatOpenSync.d.ts +2 -2
  131. package/esm/store/sideEffects/onConversationDelete.d.ts +2 -2
  132. package/esm/store/sideEffects/onConversationPin.d.ts +1 -1
  133. package/esm/store/sideEffects/onConversationRename.d.ts +1 -1
  134. package/esm/store/sideEffects/onThreadLoad.d.ts +1 -1
  135. package/esm/store/sideEffects/onUserFeedback.d.ts +3 -3
  136. package/esm/store/sideEffects/onUserMessage.d.ts +9 -9
  137. package/esm/store/sideEffects/onUserMessageUpdate.d.ts +3 -3
  138. package/esm/store/sideEffects/onVisualisationRender.d.ts +3 -3
  139. package/esm/store/sideEffects/onVisualizationSave.d.ts +7 -7
  140. package/esm/store/sideEffects/onVisualizationSave.d.ts.map +1 -1
  141. package/esm/store/sideEffects/onVisualizationSuccessSave.d.ts +2 -2
  142. package/esm/store/store.d.ts.map +1 -1
  143. package/esm/utils.d.ts.map +1 -1
  144. package/package.json +21 -21
  145. package/styles/css/main.css +12 -1
  146. package/styles/css/main.css.map +1 -1
  147. package/styles/css/window.css +11 -0
  148. package/styles/css/window.css.map +1 -1
  149. package/styles/scss/main.scss +1 -1
  150. package/styles/scss/window.scss +12 -0
@@ -1 +1 @@
1
- {"version":3,"file":"remark-references.d.ts","sourceRoot":"","sources":["../../../../src/components/completion/plugins/remark-references.ts"],"names":[],"mappings":"AAEA,OAAO,EAAa,KAAK,MAAM,EAAc,MAAM,OAAO,CAAC;AAK3D,wBAAgB,gBAAgB,mCAiC/B"}
1
+ {"version":3,"file":"remark-references.d.ts","sourceRoot":"","sources":["../../../../src/components/completion/plugins/remark-references.ts"],"names":[],"mappings":"AAEA,OAAO,EAAa,KAAK,MAAM,EAAc,MAAM,OAAO,CAAC;AAK3D,wBAAgB,gBAAgB,iBAED,MAAM,YA+BpC"}
@@ -1 +1 @@
1
- {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../src/components/completion/utils.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,UAAU,EAAE,MAAM,0BAA0B,CAAC;AAE3D,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,YAAY,CAAC;AAE5C,OAAO,EACH,KAAK,WAAW,EAChB,KAAK,mCAAmC,EACxC,KAAK,qBAAqB,EAC1B,KAAK,sBAAsB,EAC3B,KAAK,mBAAmB,EACxB,KAAK,MAAM,EACX,KAAK,UAAU,EASlB,MAAM,qBAAqB,CAAC;AAE7B,OAAO,EAAE,KAAK,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;AAIxD,MAAM,WAAW,eAAgB,SAAQ,UAAU;IAC/C,IAAI,EAAE,WAAW,GAAG,qBAAqB,CAAC;CAC7C;AAGD,wBAAgB,YAAY,CAAC,IAAI,EAAE,WAAW,iBAW7C;AAGD,wBAAgB,UAAU,CACtB,IAAI,EAAE,SAAS,EACf,EACI,KAAK,EACL,MAAM,EACN,SAAS,EACT,UAAU,EACV,oBAA+B,EAC/B,WAAW,EACX,WAAW,EACd,EAAE;IACC,KAAK,EAAE,WAAW,EAAE,CAAC;IACrB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,oBAAoB,CAAC,EAAE,CAAC,UAAU,EAAE,eAAe,KAAK,IAAI,CAAC;IAC7D,WAAW,CAAC,EAAE,MAAM,EAAE,CAAC;IACvB,WAAW,CAAC,EAAE,MAAM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G,CAAC,OAAO,uBAAuB,CAAC,CAAC,MAAM,CAAC,GAAG,IAAI,CAuBjD;AAsBD,wBAAgB,SAAS,CAAC,IAAI,EAAE,WAAW,EAAE,WAAW,CAAC,EAAE,MAAM,EAAE,EAAE,WAAW,CAAC,EAAE,MAAM,EAAE,WA0B1F;AAGD,wBAAgB,sBAAsB,CAAC,IAAI,EAAE,iBAAiB,CAAC,MAAM,CAAC,GAAG,UAAU,CAiBlF;AAED,MAAM,MAAM,yBAAyB,GAAG,mBAAmB,GAAG;IAAE,EAAE,EAAE,MAAM,CAAA;CAAE,CAAC;AAG7E,wBAAgB,0BAA0B,CACtC,UAAU,EAAE,iBAAiB,EAAE,EAC/B,YAAY,EAAE,WAAW,EAAE,EAC3B,EAAE,EAAE,MAAM,EACV,IAAI,EAAE,MAAM,GACb,yBAAyB,GAAG,SAAS,CAuCvC"}
@@ -30,9 +30,5 @@ const quickOptions = [
30
30
  */
31
31
  export function DefaultLandingScreen({ LandingScreen, isBigScreen, isSmallScreen, isFullscreen, }) {
32
32
  const intl = useIntl();
33
- return (_jsx("div", { className: "gd-gen-ai-chat__messages__empty", "data-testid": "gen-ai-chat-landing-screen", children: LandingScreen ? (_jsx(LandingScreen, {})) : (_jsxs(DefaultLandingContainer, { isFullscreen: isFullscreen, isBigScreen: isBigScreen, isSmallScreen: isSmallScreen, children: [
34
- _jsxs(DefaultLandingTitle, { children: [
35
- _jsx(DefaultLandingTitleAscent, { children: _jsx(FormattedMessage, { id: "gd.gen-ai.welcome.line-1" }) }), _jsx("br", {}), _jsx(FormattedMessage, { id: "gd.gen-ai.welcome.line-2" })
36
- ] }), _jsx(DefaultLandingQuestions, { isFullscreen: isFullscreen, isBigScreen: isBigScreen, isSmallScreen: isSmallScreen, children: quickOptions.map((option) => (_jsx(DefaultLandingQuestion, { icon: option.icon, title: intl.formatMessage(option.title), question: intl.formatMessage(option.question), answer: intl.formatMessage(option.answer) }, option.title.id))) })
37
- ] })) }));
33
+ return (_jsx("div", { className: "gd-gen-ai-chat__messages__empty", "data-testid": "gen-ai-chat-landing-screen", children: LandingScreen ? (_jsx(LandingScreen, {})) : (_jsxs(DefaultLandingContainer, { isFullscreen: isFullscreen, isBigScreen: isBigScreen, isSmallScreen: isSmallScreen, children: [_jsxs(DefaultLandingTitle, { children: [_jsx(DefaultLandingTitleAscent, { children: _jsx(FormattedMessage, { id: "gd.gen-ai.welcome.line-1" }) }), _jsx("br", {}), _jsx(FormattedMessage, { id: "gd.gen-ai.welcome.line-2" })] }), _jsx(DefaultLandingQuestions, { isFullscreen: isFullscreen, isBigScreen: isBigScreen, isSmallScreen: isSmallScreen, children: quickOptions.map((option) => (_jsx(DefaultLandingQuestion, { icon: option.icon, title: intl.formatMessage(option.title), question: intl.formatMessage(option.question), answer: intl.formatMessage(option.answer) }, option.title.id))) })] })) }));
38
34
  }
@@ -14,11 +14,11 @@ export declare function useAmbientContextItems(ambientContext: IGenAIUserContext
14
14
  ref: ObjRef;
15
15
  title: string;
16
16
  nesting: number;
17
- type: "widget" | import("@gooddata/sdk-model").GenAIObjectType;
18
- where: "referencedObjects" | "view.dashboard";
19
- context?: import("@gooddata/sdk-model").IGenAIObjectReference | undefined;
20
- insightRef?: ObjRef | undefined;
21
- visualizationUrl?: string | undefined;
17
+ type: import("@gooddata/sdk-model").GenAIObjectType | "widget";
18
+ where: "view.dashboard" | "referencedObjects";
19
+ context?: import("@gooddata/sdk-model").IGenAIObjectReference;
20
+ insightRef?: ObjRef;
21
+ visualizationUrl?: string;
22
22
  alternativeTitle: string;
23
23
  })[];
24
24
  search: string;
@@ -1 +1 @@
1
- {"version":3,"file":"useContextItems.d.ts","sourceRoot":"","sources":["../../../src/components/hooks/useContextItems.tsx"],"names":[],"mappings":"AAOA,OAAO,EAAE,KAAK,iBAAiB,EAAE,KAAK,MAAM,EAAmB,MAAM,qBAAqB,CAAC;AAe3F,OAAO,EAIH,KAAK,mBAAmB,EACxB,KAAK,eAAe,EACvB,MAAM,gBAAgB,CAAC;AAExB,wBAAgB,mBAAmB,CAC/B,cAAc,EAAE,iBAAiB,GAAG,SAAS,EAC7C,eAAe,EAAE,eAAe,GAAG,SAAS,EAC5C,aAAa,EAAE,iBAAiB,GAAG,SAAS;;;;;;;EA8E/C;AAED,wBAAgB,sBAAsB,CAAC,cAAc,EAAE,iBAAiB,GAAG,SAAS;;;;;;;;;;;;;;;;EA0CnF"}
1
+ {"version":3,"file":"useContextItems.d.ts","sourceRoot":"","sources":["../../../src/components/hooks/useContextItems.tsx"],"names":[],"mappings":"AAOA,OAAO,EAAE,KAAK,iBAAiB,EAAE,KAAK,MAAM,EAAmB,MAAM,qBAAqB,CAAC;AAe3F,OAAO,EAIH,KAAK,mBAAmB,EACxB,KAAK,eAAe,EACvB,MAAM,gBAAgB,CAAC;AAExB,wBAAgB,mBAAmB,CAC/B,cAAc,EAAE,iBAAiB,GAAG,SAAS,EAC7C,eAAe,EAAE,eAAe,GAAG,SAAS,EAC5C,aAAa,EAAE,iBAAiB,GAAG,SAAS;;;uBA8ChC,MAAM;;;;EAgCrB;AAED,wBAAgB,sBAAsB,CAAC,cAAc,EAAE,iBAAiB,GAAG,SAAS;;;;;;;;;;;;;;uBAwBpE,MAAM;iBAgBO,MAAM,EAAE;EAEpC"}
@@ -1 +1 @@
1
- {"version":3,"file":"useInputAutofocus.d.ts","sourceRoot":"","sources":["../../../src/components/hooks/useInputAutofocus.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAOnD,wBAAgB,iBAAiB,CAC7B,SAAS,EAAE,UAAU,GAAG,IAAI,EAC5B,SAAS,EAAE,OAAO,EAClB,IAAI,EAAE;IAAE,MAAM,EAAE,OAAO,CAAA;CAAE,2EA2C5B"}
1
+ {"version":3,"file":"useInputAutofocus.d.ts","sourceRoot":"","sources":["../../../src/components/hooks/useInputAutofocus.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAOnD,wBAAgB,iBAAiB,CAC7B,SAAS,EAAE,UAAU,GAAG,IAAI,EAC5B,SAAS,EAAE,OAAO,EAClB,IAAI,EAAE;IAAE,MAAM,EAAE,OAAO,CAAA;CAAE,2EAiD5B"}
@@ -6,6 +6,9 @@ import { conversationSelector } from "../../store/messages/messagesSelectors.js"
6
6
  export function useInputAutofocus(editorApi, autofocus, opts) {
7
7
  // Force focus when autofocus is enables on the first mount, right after the initial state is loaded
8
8
  const forceFocusOnce = useRef(autofocus);
9
+ useEffect(() => {
10
+ forceFocusOnce.current = autofocus;
11
+ }, [autofocus]);
9
12
  const conversationLocalId = useSelector(conversationSelector)?.localId;
10
13
  const focusedConversationLocalId = useRef(conversationLocalId);
11
14
  const initialFocus = useMemo(() => {
@@ -13,13 +16,14 @@ export function useInputAutofocus(editorApi, autofocus, opts) {
13
16
  ref.current = editorApi?.contentDOM;
14
17
  return ref;
15
18
  }, [editorApi]);
19
+ const active = autofocus &&
20
+ !opts.isBusy &&
21
+ (forceFocusOnce.current ||
22
+ document.activeElement === document.body ||
23
+ focusedConversationLocalId.current !== conversationLocalId);
16
24
  const ref = useUiAutofocusConnectors({
17
25
  initialFocus,
18
- active: autofocus &&
19
- !opts.isBusy &&
20
- (forceFocusOnce.current ||
21
- document.activeElement === document.body ||
22
- focusedConversationLocalId.current !== conversationLocalId),
26
+ active: active,
23
27
  refocusKey: `${opts.isBusy}-${conversationLocalId ?? ""}`,
24
28
  });
25
29
  useEffect(() => {
@@ -1,4 +1,4 @@
1
1
  import { type MouseEvent } from "react";
2
2
  import { type ISettings } from "@gooddata/sdk-model";
3
- export declare function useSettingsClick(settings: ISettings | undefined): (type: "change-model" | "create") => (e: MouseEvent<Element, globalThis.MouseEvent>) => void;
3
+ export declare function useSettingsClick(settings: ISettings | undefined): (type: "change-model" | "create") => (e: MouseEvent) => void;
4
4
  //# sourceMappingURL=useSettingsClick.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"useSettingsClick.d.ts","sourceRoot":"","sources":["../../../src/components/hooks/useSettingsClick.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,UAAU,EAAe,MAAM,OAAO,CAAC;AAErD,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,qBAAqB,CAAC;AAmBrD,wBAAgB,gBAAgB,CAAC,QAAQ,EAAE,SAAS,GAAG,SAAS,gGA0E/D"}
1
+ {"version":3,"file":"useSettingsClick.d.ts","sourceRoot":"","sources":["../../../src/components/hooks/useSettingsClick.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,UAAU,EAAe,MAAM,OAAO,CAAC;AAErD,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,qBAAqB,CAAC;AAmBrD,wBAAgB,gBAAgB,CAAC,QAAQ,EAAE,SAAS,GAAG,SAAS,UAUjD,cAAc,GAAG,QAAQ,SAAS,UAAU,UAgE1D"}
@@ -48,8 +48,7 @@ export function GenAiInteractionIntelligence({ responseId, onClose, initialMode
48
48
  if (!data) {
49
49
  return null;
50
50
  }
51
- return (_jsx("div", { className: b(), ref: panelRef, children: resolvedView.mode === "detail" ? (_jsx(IntelligenceCategoryDetail, { data: data, categoryIndex: resolvedView.categoryIndex, onBack: backToList, onClose: onClose, onSelectCategory: openCategory })) : (_jsxs(_Fragment, { children: [
52
- _jsx(IntelligenceHeader, { onClose: onClose }), _jsx(IntelligenceTimeline, { steps: data.steps, totalDurationMs: data.totals.durationMs, categories: data.categories, highlightedStepIndexes: hoveredStepIndexes }), _jsx(IntelligenceCategoryList, { categories: data.categories, onSelectCategory: openCategory, onHoveredStepIndexesChange: setHoveredStepIndexes }), data.traceId ? _jsx(IntelligenceFooter, { traceId: data.traceId }) : null] })) }));
51
+ return (_jsx("div", { className: b(), ref: panelRef, children: resolvedView.mode === "detail" ? (_jsx(IntelligenceCategoryDetail, { data: data, categoryIndex: resolvedView.categoryIndex, onBack: backToList, onClose: onClose, onSelectCategory: openCategory })) : (_jsxs(_Fragment, { children: [_jsx(IntelligenceHeader, { onClose: onClose }), _jsx(IntelligenceTimeline, { steps: data.steps, totalDurationMs: data.totals.durationMs, categories: data.categories, highlightedStepIndexes: hoveredStepIndexes }), _jsx(IntelligenceCategoryList, { categories: data.categories, onSelectCategory: openCategory, onHoveredStepIndexesChange: setHoveredStepIndexes }), data.traceId ? _jsx(IntelligenceFooter, { traceId: data.traceId }) : null] })) }));
53
52
  }
54
53
  /** Opens on `initialCategory`'s detail when asked for one that exists, else on the list. */
55
54
  function resolveInitialView(categories, initialMode, initialCategory) {
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/components/intelligence/data/types.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,2BAA2B,CAAC;AAE9E;;;;GAIG;AACH,MAAM,WAAW,8BAA8B;IAC3C,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE;QAAE,EAAE,EAAE,MAAM,CAAC;QAAC,MAAM,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAAC,CAAA;KAAE,CAAC;CACnE;AAED;;;;;;GAMG;AACH,MAAM,WAAW,0BAA0B;IACvC;;;OAGG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,6EAA6E;IAC7E,aAAa,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAAC,CAAC;IAChD,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,KAAK,EAAE,8BAA8B,EAAE,CAAC;IACxC,oFAAoF;IACpF,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,0FAAwF;IACxF,QAAQ,CAAC,EAAE,OAAO,CAAC;CACtB;AAED;;;;;GAKG;AACH,MAAM,WAAW,yBAAyB;IACtC,iGAA+F;IAC/F,OAAO,EAAE,MAAM,CAAC;IAChB,KAAK,EAAE,8BAA8B,CAAC;CACzC;AAED;;GAEG;AACH,MAAM,MAAM,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AE,MAAM,CAAC;IACnB,MAAM,CAAC,EAAE,MAAM,CAAC;CACnB;AAED;;;GAGG;AACH,MAAM,WAAW,wBAAwB;IACrC,UAAU,EAAE,MAAM,CAAC;IACnB,MAAM,EAAE,8BAA8B,CAAC;IACvC,mCAAmC;IACnC,KAAK,EAAE,oBAAoB,EAAE,CAAC;IAC9B,+DAA+D;IAC/D,UAAU,EAAE,oBAAoB,EAAE,CAAC;IACnC,4FAA4F;IAC5F,OAAO,CAAC,EAAE,MAAM,CAAC;CACpB;AAED;;;;GAIG;AACH,MAAM,WAAW,gBAAgB;IAC7B,MAAM,EAAE,MAAM,CAAC;IACf,+EAA6E;IAC7E,SAAS,EAAE,MAAM,CAAC;IAClB,QAAQ,EAAE,MAAM,CAAC;CACpB;AAED;;;GAGG;AACH,MAAM,MAAM,2BAA2B,GAAG,MAAM,GAAG,QAAQ,CAAC"}
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/components/intelligence/data/types.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,2BAA2B,CAAC;AAE9E;;;;GAIG;AACH,MAAM,WAAW,8BAA8B;IAC3C,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE;QAAE,EAAE,EAAE,MAAM,CAAC;QAAC,MAAM,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAAC,CAAA;KAAE,CAAC;CACnE;AAED;;;;;;GAMG;AACH,MAAM,WAAW,0BAA0B;IACvC;;;OAGG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,6EAA6E;IAC7E,aAAa,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAAC,CAAC;IAChD,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,KAAK,EAAE,8BAA8B,EAAE,CAAC;IACxC,oFAAoF;IACpF,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,wFAA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AC;IACtB,oEAAoE;IACpE,OAAO,CAAC,EAAE,2BAA2B,CAAC;IACtC;;;;OAIG;IACH,UAAU,EAAE,yBAAyB,EAAE,CAAC;CAC3C;AAED;;;GAGG;AACH,MAAM,WAAW,8BAA8B;IAC3C,UAAU,EAAE,MAAM,CAAC;IACnB,UAAU,EAAE,MAAM,CAAC;IACnB,MAAM,CAAC,EAAE,MAAM,CAAC;CACnB;AAED;;;GAGG;AACH,MAAM,WAAW,wBAAwB;IACrC,UAAU,EAAE,MAAM,CAAC;IACnB,MAAM,EAAE,8BAA8B,CAAC;IACvC,mCAAmC;IACnC,KAAK,EAAE,oBAAoB,EAAE,CAAC;IAC9B,+DAA+D;IAC/D,UAAU,EAAE,oBAAoB,EAAE,CAAC;IACnC,4FAA4F;IAC5F,OAAO,CAAC,EAAE,MAAM,CAAC;CACpB;AAED;;;;GAIG;AACH,MAAM,WAAW,gBAAgB;IAC7B,MAAM,EAAE,MAAM,CAAC;IACf,6EAA6E;IAC7E,SAAS,EAAE,MAAM,CAAC;IAClB,QAAQ,EAAE,MAAM,CAAC;CACpB;AAED;;;GAGG;AACH,MAAM,MAAM,2BAA2B,GAAG,MAAM,GAAG,QAAQ,CAAC"}
@@ -15,7 +15,5 @@ export function IntelligenceCategoryDetail({ data, categoryIndex, onBack, onClos
15
15
  if (!category) {
16
16
  return null;
17
17
  }
18
- return (_jsxs("div", { className: e("detail"), children: [
19
- _jsx(IntelligenceDetailHeader, { category: category, onBack: onBack, onClose: onClose }), _jsx(IntelligenceTimeline, { steps: data.steps, totalDurationMs: data.totals.durationMs, categories: data.categories, highlightedStepIndexes: category.stepIndexes }), _jsx(IntelligenceDetailRows, { rows: category.detailRows }), _jsx("div", { className: e("detail__divider") }), _jsx(IntelligenceStepCarousel, { currentIndex: categoryIndex, totalCount: data.categories.length, onSelectCategory: onSelectCategory })
20
- ] }));
18
+ return (_jsxs("div", { className: e("detail"), children: [_jsx(IntelligenceDetailHeader, { category: category, onBack: onBack, onClose: onClose }), _jsx(IntelligenceTimeline, { steps: data.steps, totalDurationMs: data.totals.durationMs, categories: data.categories, highlightedStepIndexes: category.stepIndexes }), _jsx(IntelligenceDetailRows, { rows: category.detailRows }), _jsx("div", { className: e("detail__divider") }), _jsx(IntelligenceStepCarousel, { currentIndex: categoryIndex, totalCount: data.categories.length, onSelectCategory: onSelectCategory })] }));
21
19
  }
@@ -13,7 +13,5 @@ export function IntelligenceDetailHeader({ category, onBack, onClose }) {
13
13
  const intl = useIntl();
14
14
  const backLabel = intl.formatMessage({ id: "gd.gen-ai.interactionIntelligence.back" });
15
15
  const closeLabel = intl.formatMessage({ id: "gd.gen-ai.interactionIntelligence.close" });
16
- return (_jsxs("div", { className: e("detail-header"), children: [
17
- _jsx(UiIconButton, { icon: "navigateLeft", variant: "secondary", size: "small", onClick: onBack, accessibilityConfig: { ariaLabel: backLabel } }), _jsx(IconCircle, { category: category.category }), _jsx("span", { className: e("detail-header__label"), children: resolveMessage(intl, category.labelId, category.category) }), _jsx(UiIconButton, { icon: "cross", variant: "tertiary", size: "medium", onClick: onClose, accessibilityConfig: { ariaLabel: closeLabel } })
18
- ] }));
16
+ return (_jsxs("div", { className: e("detail-header"), children: [_jsx(UiIconButton, { icon: "navigateLeft", variant: "secondary", size: "small", onClick: onBack, accessibilityConfig: { ariaLabel: backLabel } }), _jsx(IconCircle, { category: category.category }), _jsx("span", { className: e("detail-header__label"), children: resolveMessage(intl, category.labelId, category.category) }), _jsx(UiIconButton, { icon: "cross", variant: "tertiary", size: "medium", onClick: onClose, accessibilityConfig: { ariaLabel: closeLabel } })] }));
19
17
  }
@@ -10,7 +10,5 @@ import { DetailRowValue } from "./DetailRowValue.js";
10
10
  */
11
11
  export function IntelligenceDetailRows({ rows }) {
12
12
  const intl = useIntl();
13
- return (_jsx("dl", { className: e("detail-rows", { scrollable: true }), children: rows.map((row, index) => (_jsxs("div", { className: e("detail-rows__row"), children: [
14
- _jsx("dt", { className: e("detail-rows__label"), children: intl.formatMessage({ id: row.labelId }) }), _jsx("dd", { className: e("detail-rows__value"), children: _jsx(DetailRowValue, { value: row.value }) })
15
- ] }, index))) }));
13
+ return (_jsx("dl", { className: e("detail-rows", { scrollable: true }), children: rows.map((row, index) => (_jsxs("div", { className: e("detail-rows__row"), children: [_jsx("dt", { className: e("detail-rows__label"), children: intl.formatMessage({ id: row.labelId }) }), _jsx("dd", { className: e("detail-rows__value"), children: _jsx(DetailRowValue, { value: row.value }) })] }, index))) }));
16
14
  }
@@ -11,11 +11,9 @@ export function IntelligenceStepCarousel({ currentIndex, totalCount, onSelectCat
11
11
  const intl = useIntl();
12
12
  const isFirst = currentIndex <= 0;
13
13
  const isLast = currentIndex >= totalCount - 1;
14
- return (_jsxs("div", { className: e("carousel"), children: [
15
- _jsx(UiPaginationButton, { direction: "previous", label: intl.formatMessage({ id: "gd.gen-ai.interactionIntelligence.pager.previous" }), isDisabled: isFirst, onClick: () => onSelectCategory(currentIndex - 1) }), _jsx("span", { className: e("carousel__label"), children: _jsx(FormattedMessage, { id: "gd.gen-ai.interactionIntelligence.pager", values: {
14
+ return (_jsxs("div", { className: e("carousel"), children: [_jsx(UiPaginationButton, { direction: "previous", label: intl.formatMessage({ id: "gd.gen-ai.interactionIntelligence.pager.previous" }), isDisabled: isFirst, onClick: () => onSelectCategory(currentIndex - 1) }), _jsx("span", { className: e("carousel__label"), children: _jsx(FormattedMessage, { id: "gd.gen-ai.interactionIntelligence.pager", values: {
16
15
  current: currentIndex + 1,
17
16
  total: totalCount,
18
17
  b: (chunks) => _jsx("b", { children: chunks }),
19
- } }) }), _jsx(UiPaginationButton, { direction: "next", label: intl.formatMessage({ id: "gd.gen-ai.interactionIntelligence.pager.next" }), isDisabled: isLast, onClick: () => onSelectCategory(currentIndex + 1) })
20
- ] }));
18
+ } }) }), _jsx(UiPaginationButton, { direction: "next", label: intl.formatMessage({ id: "gd.gen-ai.interactionIntelligence.pager.next" }), isDisabled: isLast, onClick: () => onSelectCategory(currentIndex + 1) })] }));
21
19
  }
@@ -3,5 +3,5 @@
3
3
  * `gd-gen-ai-chat__interaction-intelligence` block.
4
4
  * @internal
5
5
  */
6
- export declare const b: (props?: import("@gooddata/sdk-ui-kit").StyleProps | undefined) => string, e: (element: string, props?: import("@gooddata/sdk-ui-kit").StyleProps | undefined) => string;
6
+ export declare const b: (props?: import("@gooddata/sdk-ui-kit").StyleProps) => string, e: (element: string, props?: import("@gooddata/sdk-ui-kit").StyleProps) => string;
7
7
  //# sourceMappingURL=intelligenceBem.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"intelligenceBem.d.ts","sourceRoot":"","sources":["../../../src/components/intelligence/intelligenceBem.ts"],"names":[],"mappings":"AAIA;;;;GAIG;AACH,eAAO,MAAQ,CAAC,6EAAE,CAAC,4FAA2D,CAAC"}
1
+ {"version":3,"file":"intelligenceBem.d.ts","sourceRoot":"","sources":["../../../src/components/intelligence/intelligenceBem.ts"],"names":[],"mappings":"AAIA;;;;GAIG;AACH,eAAO,MAAQ,CAAC,iEAAE,CAAC,gFAA2D,CAAC"}
@@ -13,7 +13,5 @@ import { IconCircle } from "./IconCircle.js";
13
13
  */
14
14
  export function IntelligenceCategoryRow({ category, onSelect, onHoverChange, }) {
15
15
  const intl = useIntl();
16
- return (_jsxs("button", { type: "button", className: e("category-row"), onClick: onSelect, onMouseEnter: () => onHoverChange(true), onMouseLeave: () => onHoverChange(false), onFocus: () => onHoverChange(true), onBlur: () => onHoverChange(false), children: [
17
- _jsx(IconCircle, { category: category.category }), _jsx("span", { className: e("category-row__label"), children: resolveMessage(intl, category.labelId, category.category) }), _jsx("span", { className: e("category-row__excerpt"), children: category.excerpt?.fragments.map((fragment, index) => (_jsx("span", { children: intl.formatMessage({ id: fragment.id }, fragment.values) }, index))) }), _jsx(UiIcon, { type: "navigateRight", size: 16, color: "complementary-6", accessibilityConfig: { ariaHidden: true } })
18
- ] }));
16
+ return (_jsxs("button", { type: "button", className: e("category-row"), onClick: onSelect, onMouseEnter: () => onHoverChange(true), onMouseLeave: () => onHoverChange(false), onFocus: () => onHoverChange(true), onBlur: () => onHoverChange(false), children: [_jsx(IconCircle, { category: category.category }), _jsx("span", { className: e("category-row__label"), children: resolveMessage(intl, category.labelId, category.category) }), _jsx("span", { className: e("category-row__excerpt"), children: category.excerpt?.fragments.map((fragment, index) => (_jsx("span", { children: intl.formatMessage({ id: fragment.id }, fragment.values) }, index))) }), _jsx(UiIcon, { type: "navigateRight", size: 16, color: "complementary-6", accessibilityConfig: { ariaHidden: true } })] }));
19
17
  }
@@ -13,7 +13,5 @@ export function IntelligenceDurationTokens({ totals, showSlash = true }) {
13
13
  if (totals.tokens === undefined) {
14
14
  return _jsx("span", { children: formatDuration(intl, totals.durationMs) });
15
15
  }
16
- return (_jsxs(_Fragment, { children: [
17
- _jsx("span", { children: formatDuration(intl, totals.durationMs) }), " ", showSlash ? _jsx("span", { className: e("duration-tokens__separator"), children: "/ " }) : null, _jsx("span", { children: formatTokens(intl, totals.tokens) })
18
- ] }));
16
+ return (_jsxs(_Fragment, { children: [_jsx("span", { children: formatDuration(intl, totals.durationMs) }), " ", showSlash ? _jsx("span", { className: e("duration-tokens__separator"), children: "/ " }) : null, _jsx("span", { children: formatTokens(intl, totals.tokens) })] }));
19
17
  }
@@ -14,7 +14,5 @@ export function IntelligenceFooter({ traceId }) {
14
14
  id: "gd.gen-ai.interactionIntelligence.footer.traceId.tooltip",
15
15
  });
16
16
  const label = intl.formatMessage({ id: "gd.gen-ai.interactionIntelligence.footer.traceId.label" });
17
- return (_jsxs("div", { className: e("footer"), children: [
18
- _jsx(UiTooltip, { triggerBy: ["hover", "focus"], arrowPlacement: "top", width: 260, anchor: _jsx("span", { className: e("footer__hint"), tabIndex: 0, children: label }), content: tooltipText }), _jsx("span", { className: e("footer__trace-id"), children: traceId })
19
- ] }));
17
+ return (_jsxs("div", { className: e("footer"), children: [_jsx(UiTooltip, { triggerBy: ["hover", "focus"], arrowPlacement: "top", width: 260, anchor: _jsx("span", { className: e("footer__hint"), tabIndex: 0, children: label }), content: tooltipText }), _jsx("span", { className: e("footer__trace-id"), children: traceId })] }));
20
18
  }
@@ -9,7 +9,5 @@ import { e } from "../intelligenceBem.js";
9
9
  export function IntelligenceHeader({ onClose }) {
10
10
  const intl = useIntl();
11
11
  const closeLabel = intl.formatMessage({ id: "gd.gen-ai.interactionIntelligence.close" });
12
- return (_jsxs("div", { className: e("header"), children: [
13
- _jsx("span", { className: e("header__title"), children: intl.formatMessage({ id: "gd.gen-ai.interactionIntelligence.title" }) }), _jsx(UiIconButton, { icon: "cross", variant: "tertiary", size: "medium", onClick: onClose, accessibilityConfig: { ariaLabel: closeLabel } })
14
- ] }));
12
+ return (_jsxs("div", { className: e("header"), children: [_jsx("span", { className: e("header__title"), children: intl.formatMessage({ id: "gd.gen-ai.interactionIntelligence.title" }) }), _jsx(UiIconButton, { icon: "cross", variant: "tertiary", size: "medium", onClick: onClose, accessibilityConfig: { ariaLabel: closeLabel } })] }));
15
13
  }
@@ -11,8 +11,5 @@ import { IntelligenceDurationTokens } from "./IntelligenceDurationTokens.js";
11
11
  export function IntelligenceStepTooltip({ step, categories }) {
12
12
  const intl = useIntl();
13
13
  const labelIdByCategory = new Map(categories.map((category) => [category.category, category.labelId]));
14
- return (_jsxs("div", { className: e("step-tooltip"), children: [step.categories.length > 0 ? (_jsxs(_Fragment, { children: [
15
- _jsx("div", { className: e("step-tooltip__eyebrow"), children: intl.formatMessage({ id: "gd.gen-ai.interactionIntelligence.tooltip.activity" }) }), _jsx("div", { className: e("step-tooltip__activity-list"), children: step.categories.map((category) => (_jsx("div", { children: resolveMessage(intl, labelIdByCategory.get(category), category) }, category))) }), _jsx("div", { className: e("step-tooltip__divider") })
16
- ] })) : null, _jsx("div", { className: e("step-tooltip__footer"), children: _jsx(IntelligenceDurationTokens, { totals: step, showSlash: false }) })
17
- ] }));
14
+ return (_jsxs("div", { className: e("step-tooltip"), children: [step.categories.length > 0 ? (_jsxs(_Fragment, { children: [_jsx("div", { className: e("step-tooltip__eyebrow"), children: intl.formatMessage({ id: "gd.gen-ai.interactionIntelligence.tooltip.activity" }) }), _jsx("div", { className: e("step-tooltip__activity-list"), children: step.categories.map((category) => (_jsx("div", { children: resolveMessage(intl, labelIdByCategory.get(category), category) }, category))) }), _jsx("div", { className: e("step-tooltip__divider") })] })) : null, _jsx("div", { className: e("step-tooltip__footer"), children: _jsx(IntelligenceDurationTokens, { totals: step, showSlash: false }) })] }));
18
15
  }
@@ -1 +1 @@
1
- {"version":3,"file":"IntelligenceTimeline.d.ts","sourceRoot":"","sources":["../../../../src/components/intelligence/panel/IntelligenceTimeline.tsx"],"names":[],"mappings":"AAQA,OAAO,KAAK,EAAE,oBAAoB,EAAE,oBAAoB,EAAE,MAAM,kBAAkB,CAAC;AAMnF,MAAM,WAAW,0BAA0B;IACvC,KAAK,EAAE,oBAAoB,EAAE,CAAC;IAC9B,eAAe,EAAE,MAAM,CAAC;IACxB,UAAU,EAAE,oBAAoB,EAAE,CAAC;IACnC,8FAA4F;IAC5F,sBAAsB,CAAC,EAAE,MAAM,EAAE,CAAC;CACrC;AAED;;;;;GAKG;AACH,wBAAgB,oBAAoB,CAAC,EACjC,KAAK,EACL,eAAe,EACf,UAAU,EACV,sBAAsB,EACzB,EAAE,0BAA0B,kDAmB5B"}
1
+ {"version":3,"file":"IntelligenceTimeline.d.ts","sourceRoot":"","sources":["../../../../src/components/intelligence/panel/IntelligenceTimeline.tsx"],"names":[],"mappings":"AAQA,OAAO,KAAK,EAAE,oBAAoB,EAAE,oBAAoB,EAAE,MAAM,kBAAkB,CAAC;AAMnF,MAAM,WAAW,0BAA0B;IACvC,KAAK,EAAE,oBAAoB,EAAE,CAAC;IAC9B,eAAe,EAAE,MAAM,CAAC;IACxB,UAAU,EAAE,oBAAoB,EAAE,CAAC;IACnC,4FAA4F;IAC5F,sBAAsB,CAAC,EAAE,MAAM,EAAE,CAAC;CACrC;AAED;;;;;GAKG;AACH,wBAAgB,oBAAoB,CAAC,EACjC,KAAK,EACL,eAAe,EACf,UAAU,EACV,sBAAsB,EACzB,EAAE,0BAA0B,kDAmB5B"}
@@ -1 +1 @@
1
- {"version":3,"file":"TimelineBar.d.ts","sourceRoot":"","sources":["../../../../src/components/intelligence/panel/TimelineBar.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,SAAS,EAAY,MAAM,OAAO,CAAC;AAIjD,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,kBAAkB,CAAC;AAMzD,MAAM,WAAW,iBAAiB;IAC9B,qFAAmF;IACnF,QAAQ,EAAE,gBAAgB,EAAE,CAAC;IAC7B,yFAAyF;IACzF,sBAAsB,CAAC,EAAE,MAAM,EAAE,CAAC;IAClC,+EAA+E;IAC/E,aAAa,CAAC,EAAE,CAAC,OAAO,EAAE,gBAAgB,KAAK,SAAS,CAAC;CAC5D;AAED;;;;;;;GAOG;AACH,wBAAgB,WAAW,CAAC,EAAE,QAAQ,EAAE,sBAAsB,EAAE,aAAa,EAAE,EAAE,iBAAiB,2CA8CjG"}
1
+ {"version":3,"file":"TimelineBar.d.ts","sourceRoot":"","sources":["../../../../src/components/intelligence/panel/TimelineBar.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,SAAS,EAAY,MAAM,OAAO,CAAC;AAIjD,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,kBAAkB,CAAC;AAMzD,MAAM,WAAW,iBAAiB;IAC9B,mFAAmF;IACnF,QAAQ,EAAE,gBAAgB,EAAE,CAAC;IAC7B,yFAAyF;IACzF,sBAAsB,CAAC,EAAE,MAAM,EAAE,CAAC;IAClC,+EAA+E;IAC/E,aAAa,CAAC,EAAE,CAAC,OAAO,EAAE,gBAAgB,KAAK,SAAS,CAAC;CAC5D;AAED;;;;;;;GAOG;AACH,wBAAgB,WAAW,CAAC,EAAE,QAAQ,EAAE,sBAAsB,EAAE,aAAa,EAAE,EAAE,iBAAiB,2CA8CjG"}
@@ -10,7 +10,5 @@ export function AgentChangeItem({ message }) {
10
10
  if (!agent) {
11
11
  return null;
12
12
  }
13
- return (_jsxs("div", { className: "gd-gen-ai-chat__messages__agent-change", children: [
14
- _jsx("div", { className: "gd-gen-ai-chat__messages__agent-change__line" }), _jsx("div", { className: "gd-gen-ai-chat__messages__agent-change__label", "data-testid": "agent_change_label", children: _jsx(FormattedMessage, { id: "gd.gen-ai.agent.switched", values: { title: agent.title } }) }), _jsx("div", { className: "gd-gen-ai-chat__messages__agent-change__line" })
15
- ] }));
13
+ return (_jsxs("div", { className: "gd-gen-ai-chat__messages__agent-change", children: [_jsx("div", { className: "gd-gen-ai-chat__messages__agent-change__line" }), _jsx("div", { className: "gd-gen-ai-chat__messages__agent-change__label", "data-testid": "agent_change_label", children: _jsx(FormattedMessage, { id: "gd.gen-ai.agent.switched", values: { title: agent.title } }) }), _jsx("div", { className: "gd-gen-ai-chat__messages__agent-change__line" })] }));
16
14
  }
@@ -36,7 +36,5 @@ export function AssistantItemComponent({ message, groups, isLast }) {
36
36
  if (message.content.type === "reasoning" && !message.content.summary) {
37
37
  return null;
38
38
  }
39
- return (_jsxs("div", { className: classNames, "data-state": messageState, "data-testid": "gen-ai-conversation-assistant-message", children: [
40
- _jsx("span", { className: "gd-gen-ai-chat__visually__hidden", children: intl.formatMessage({ id: "gd.gen-ai.message.label.assistant" }) }), _jsx(ReasoningIcon, { content: message.content }), _jsx(ConversationItemContents, { role: "assistant", message: message, references: references, isLoading: messageState === "loading", isLast: isLast }), _jsx(AssistantItemSuggestions, { type: "followUp", message: message, showSuggestions: true, references: references }), _jsxs("div", { className: "gd-gen-ai-chat__conversation__item__actions", children: [group.type === "assistant" && message.content.type !== "reasoning" ? (_jsx(FeedbackComponent, { group: group, message: message, isLast: Boolean(isLast), isComplete: Boolean(message.complete), isHidden: Boolean(hasInteractionIntelligenceTrigger && !isLast) })) : null, showInteractionIntelligence ? (_jsx(InteractionIntelligenceTrigger, { totals: interactionIntelligenceTotals, isOpen: isInteractionIntelligenceOpen, onToggle: () => setIsInteractionIntelligenceOpen((current) => !current) })) : null] }), showInteractionIntelligence && isInteractionIntelligenceOpen ? (_jsx(GenAiInteractionIntelligence, { responseId: message.responseId, onClose: () => setIsInteractionIntelligenceOpen(false) })) : null, _jsx(AssistantItemSuggestions, { type: "actions", message: message, showSuggestions: isLast })
41
- ] }));
39
+ return (_jsxs("div", { className: classNames, "data-state": messageState, "data-testid": "gen-ai-conversation-assistant-message", children: [_jsx("span", { className: "gd-gen-ai-chat__visually__hidden", children: intl.formatMessage({ id: "gd.gen-ai.message.label.assistant" }) }), _jsx(ReasoningIcon, { content: message.content }), _jsx(ConversationItemContents, { role: "assistant", message: message, references: references, isLoading: messageState === "loading", isLast: isLast }), _jsx(AssistantItemSuggestions, { type: "followUp", message: message, showSuggestions: true, references: references }), _jsxs("div", { className: "gd-gen-ai-chat__conversation__item__actions", children: [group.type === "assistant" && message.content.type !== "reasoning" ? (_jsx(FeedbackComponent, { group: group, message: message, isLast: Boolean(isLast), isComplete: Boolean(message.complete), isHidden: Boolean(hasInteractionIntelligenceTrigger && !isLast) })) : null, showInteractionIntelligence ? (_jsx(InteractionIntelligenceTrigger, { totals: interactionIntelligenceTotals, isOpen: isInteractionIntelligenceOpen, onToggle: () => setIsInteractionIntelligenceOpen((current) => !current) })) : null] }), showInteractionIntelligence && isInteractionIntelligenceOpen ? (_jsx(GenAiInteractionIntelligence, { responseId: message.responseId, onClose: () => setIsInteractionIntelligenceOpen(false) })) : null, _jsx(AssistantItemSuggestions, { type: "actions", message: message, showSuggestions: isLast })] }));
42
40
  }
@@ -29,8 +29,7 @@ export function AssistantItemFeedback({ message, isLast, isHidden, isComplete, }
29
29
  "gd-gen-ai-chat__conversation__item__feedback": true,
30
30
  "gd-gen-ai-chat__conversation__item__feedback--assigned": isAssigned,
31
31
  "gd-gen-ai-chat__conversation__item__feedback--last": isLast,
32
- }), children: [
33
- _jsx(UiTooltip, { triggerBy: ["focus", "hover"], arrowPlacement: "bottom", anchor: _jsx(UiIconButton, { icon: "thumbsUp", variant: "tertiary", size: "small", isActive: type === "POSITIVE", onClick: handlePositiveFeedbackClick, accessibilityConfig: {
32
+ }), children: [_jsx(UiTooltip, { triggerBy: ["focus", "hover"], arrowPlacement: "bottom", anchor: _jsx(UiIconButton, { icon: "thumbsUp", variant: "tertiary", size: "small", isActive: type === "POSITIVE", onClick: handlePositiveFeedbackClick, accessibilityConfig: {
34
33
  ariaLabel: thumbsUpLabel,
35
34
  ariaPressed: type === "POSITIVE" ? "true" : "false",
36
35
  } }), content: thumbsUpLabel }), _jsx(FeedbackPopup, { anchor: (opened) => {
@@ -20,13 +20,10 @@ export function AssistantMessageComponent({ message, isLast }) {
20
20
  const messageState = getAssistantMessageState(message);
21
21
  const thumbsUpLabel = intl.formatMessage({ id: "gd.gen-ai.feedback.like" });
22
22
  const thumbsDownLabel = intl.formatMessage({ id: "gd.gen-ai.feedback.dislike" });
23
- return (_jsxs("div", { className: cx("gd-gen-ai-chat__messages__message", "gd-gen-ai-chat__messages__message--assistant", messageState === "cancelled" && "gd-gen-ai-chat__messages__message--cancelled"), "data-state": messageState, "data-testid": "gen-ai-thread-assistant-message", children: [
24
- _jsx("span", { className: "gd-gen-ai-chat__visually__hidden", children: intl.formatMessage({ id: "gd.gen-ai.message.label.assistant" }) }), _jsxs("div", { className: "gd-gen-ai-chat__messages__message__contents_wrap", children: [
25
- _jsx(MessageContents, { useMarkdown: true, content: message.content, messageState: messageState, isLastMessage: isLast, messageId: message.localId }), message.complete ? (_jsxs("div", { className: cx({
23
+ return (_jsxs("div", { className: cx("gd-gen-ai-chat__messages__message", "gd-gen-ai-chat__messages__message--assistant", messageState === "cancelled" && "gd-gen-ai-chat__messages__message--cancelled"), "data-state": messageState, "data-testid": "gen-ai-thread-assistant-message", children: [_jsx("span", { className: "gd-gen-ai-chat__visually__hidden", children: intl.formatMessage({ id: "gd.gen-ai.message.label.assistant" }) }), _jsxs("div", { className: "gd-gen-ai-chat__messages__message__contents_wrap", children: [_jsx(MessageContents, { useMarkdown: true, content: message.content, messageState: messageState, isLastMessage: isLast, messageId: message.localId }), message.complete ? (_jsxs("div", { className: cx({
26
24
  "gd-gen-ai-chat__messages__feedback": true,
27
25
  "gd-gen-ai-chat__messages__feedback--assigned": message.feedback !== "NONE",
28
- }), children: [
29
- _jsx(UiTooltip, { triggerBy: ["focus", "hover"], arrowPlacement: "bottom", anchor: _jsx(UiIconButton, { icon: "thumbsUp", variant: "tertiary", size: "small", isActive: message.feedback === "POSITIVE", onClick: handlePositiveFeedbackClick, accessibilityConfig: {
26
+ }), children: [_jsx(UiTooltip, { triggerBy: ["focus", "hover"], arrowPlacement: "bottom", anchor: _jsx(UiIconButton, { icon: "thumbsUp", variant: "tertiary", size: "small", isActive: message.feedback === "POSITIVE", onClick: handlePositiveFeedbackClick, accessibilityConfig: {
30
27
  ariaLabel: thumbsUpLabel,
31
28
  ariaPressed: message.feedback === "POSITIVE" ? "true" : "false",
32
29
  } }), content: thumbsUpLabel }), _jsx(FeedbackPopup, { anchor: (opened) => {
@@ -34,6 +31,5 @@ export function AssistantMessageComponent({ message, isLast }) {
34
31
  ariaLabel: thumbsDownLabel,
35
32
  ariaPressed: message.feedback === "NEGATIVE" ? "true" : "false",
36
33
  } }), content: thumbsDownLabel }));
37
- }, onSubmit: handleFeedbackSubmit })] })) : null] })
38
- ] }));
34
+ }, onSubmit: handleFeedbackSubmit })] })) : null] })] }));
39
35
  }
@@ -64,21 +64,14 @@ export function FeedbackPopup({ anchor, onSubmit }) {
64
64
  handleCancel();
65
65
  }, onOpen: () => {
66
66
  setOpened(true);
67
- }, content: () => (_jsxs("div", { className: "gd-gen-ai-feedback-popup__body", children: [
68
- _jsx("div", { className: "gd-gen-ai-feedback-popup__section", children: _jsxs("fieldset", { children: [
69
- _jsx("legend", { className: "gd-label gd-gen-ai-feedback-popup__legend", children: intl.formatMessage({ id: "gd.gen-ai.feedback.popup.reasons-label" }) }), _jsx("div", { className: "gd-gen-ai-feedback-popup__checkboxes", children: feedbackReasons.map((reason) => (_jsx(UiCheckbox, { label: reason.label, checked: selectedReasons.includes(reason.id), onChange: (e) => handleReasonChange(reason.id, e.target.checked), accessibilityConfig: reason.id === "other"
67
+ }, content: () => (_jsxs("div", { className: "gd-gen-ai-feedback-popup__body", children: [_jsx("div", { className: "gd-gen-ai-feedback-popup__section", children: _jsxs("fieldset", { children: [_jsx("legend", { className: "gd-label gd-gen-ai-feedback-popup__legend", children: intl.formatMessage({ id: "gd.gen-ai.feedback.popup.reasons-label" }) }), _jsx("div", { className: "gd-gen-ai-feedback-popup__checkboxes", children: feedbackReasons.map((reason) => (_jsx(UiCheckbox, { label: reason.label, checked: selectedReasons.includes(reason.id), onChange: (e) => handleReasonChange(reason.id, e.target.checked), accessibilityConfig: reason.id === "other"
70
68
  ? {
71
69
  ariaControls: textareaWrapperId,
72
70
  ariaExpanded: selectedReasons.includes("other")
73
71
  ? "true"
74
72
  : "false",
75
73
  }
76
- : undefined }, reason.id))) })
77
- ] }) }), selectedReasons.includes("other") && (_jsxs("div", { id: textareaWrapperId, className: "gd-gen-ai-feedback-popup__section", children: [
78
- _jsx("label", { className: "gd-label", htmlFor: textareaId, children: intl.formatMessage({
74
+ : undefined }, reason.id))) })] }) }), selectedReasons.includes("other") && (_jsxs("div", { id: textareaWrapperId, className: "gd-gen-ai-feedback-popup__section", children: [_jsx("label", { className: "gd-label", htmlFor: textareaId, children: intl.formatMessage({
79
75
  id: "gd.gen-ai.feedback.popup.description-label",
80
- }) }), _jsx(EditableLabel, { autofocus: true, value: description, onChange: setDescription, onSubmit: setDescription, maxRows: 4, className: "gd-label gd-gen-ai-feedback-popup__textarea", id: textareaId })
81
- ] }))] })), footer: ({ onClose }) => (_jsxs(_Fragment, { children: [
82
- _jsx(UiButton, { label: intl.formatMessage({ id: "gd.gen-ai.feedback.popup.cancel" }), variant: "secondary", onClick: () => handleCancel(onClose), size: "small" }), _jsx(UiButton, { label: intl.formatMessage({ id: "gd.gen-ai.feedback.popup.send" }), variant: "primary", isDisabled: false, onClick: () => handleSubmit(onClose), size: "small" })
83
- ] })) }));
76
+ }) }), _jsx(EditableLabel, { autofocus: true, value: description, onChange: setDescription, onSubmit: setDescription, maxRows: 4, className: "gd-label gd-gen-ai-feedback-popup__textarea", id: textareaId })] }))] })), footer: ({ onClose }) => (_jsxs(_Fragment, { children: [_jsx(UiButton, { label: intl.formatMessage({ id: "gd.gen-ai.feedback.popup.cancel" }), variant: "secondary", onClick: () => handleCancel(onClose), size: "small" }), _jsx(UiButton, { label: intl.formatMessage({ id: "gd.gen-ai.feedback.popup.send" }), variant: "primary", isDisabled: false, onClick: () => handleSubmit(onClose), size: "small" })] })) }));
84
77
  }
@@ -27,13 +27,9 @@ function ReasoningItemsGroup({ classNames, group, previousGroup, children }) {
27
27
  return (_jsxs("div", { className: cx(classNames, {
28
28
  "gd-gen-ai-chat__messages__conversation-group--completed": isCompleted,
29
29
  "gd-gen-ai-chat__messages__conversation-group--expanded": isExpanded,
30
- }), children: [
31
- _jsxs("div", { className: cx("gd-gen-ai-chat__messages__conversation-group--header", {
30
+ }), children: [_jsxs("div", { className: cx("gd-gen-ai-chat__messages__conversation-group--header", {
32
31
  "gd-gen-ai-chat__messages__conversation-group--header--completed": isCompleted,
33
- }), children: [
34
- _jsx("span", { className: "gd-gen-ai-chat__visually__hidden", "aria-live": "polite", "aria-atomic": "true", children: headings[headings.length - 1] }), isCompleted ? (_jsx(UiButton, { label: intl.formatMessage({ id: "gd.gen-ai.routing.thinking-process" }), dataTestId: "reasoning", onClick: () => setIsExpanded(!isExpanded), accessibilityConfig: { ariaExpanded: isExpanded }, iconBefore: isExpanded ? "navigateDown" : "navigateRight", iconBeforeSize: 12, variant: "tertiary" })) : (_jsxs("div", { className: "gd-gen-ai-chat__messages__conversation-group--header--thinking", "data-testid": "reasoning", children: [
35
- _jsx(AIThinkingLoader, { size: 30 }), _jsx(AIThinkingSummary, { headings: headings })
36
- ] })), isCompleted && duration ? (_jsx("div", { className: "gd-gen-ai-chat__messages__conversation-group--header--duration", children: duration })) : null] }), isExpanded ? (_jsx("div", { className: "gd-gen-ai-chat__messages__conversation-group--content", "data-testid": "gen-ai-reasoning-group-content", children: children })) : null] }));
32
+ }), children: [_jsx("span", { className: "gd-gen-ai-chat__visually__hidden", "aria-live": "polite", "aria-atomic": "true", children: headings[headings.length - 1] }), isCompleted ? (_jsx(UiButton, { label: intl.formatMessage({ id: "gd.gen-ai.routing.thinking-process" }), dataTestId: "reasoning", onClick: () => setIsExpanded(!isExpanded), accessibilityConfig: { ariaExpanded: isExpanded }, iconBefore: isExpanded ? "navigateDown" : "navigateRight", iconBeforeSize: 12, variant: "tertiary" })) : (_jsxs("div", { className: "gd-gen-ai-chat__messages__conversation-group--header--thinking", "data-testid": "reasoning", children: [_jsx(AIThinkingLoader, { size: 30 }), _jsx(AIThinkingSummary, { headings: headings })] })), isCompleted && duration ? (_jsx("div", { className: "gd-gen-ai-chat__messages__conversation-group--header--duration", children: duration })) : null] }), isExpanded ? (_jsx("div", { className: "gd-gen-ai-chat__messages__conversation-group--content", "data-testid": "gen-ai-reasoning-group-content", children: children })) : null] }));
37
33
  }
38
34
  function useReasoningGroup(previousGroup, group) {
39
35
  const intl = useIntl();
@@ -17,8 +17,7 @@ export function MessageContents({ content, messageId, messageState = "complete",
17
17
  const isReasoningEnabled = Boolean(settings?.enableGenAIReasoningVisibility);
18
18
  const isComplete = messageState === "complete" || messageState === "cancelled" || messageState === "error";
19
19
  const isCancelled = messageState === "cancelled";
20
- return (_jsxs("div", { className: "gd-gen-ai-chat__messages__contents", children: [
21
- _jsx(ReasoningMessage, { content: content, messageState: messageState }), content.map((item, index) => {
20
+ return (_jsxs("div", { className: "gd-gen-ai-chat__messages__contents", children: [_jsx(ReasoningMessage, { content: content, messageState: messageState }), content.map((item, index) => {
22
21
  const type = item.type;
23
22
  switch (type) {
24
23
  case "text":
@@ -1 +1 @@
1
- {"version":3,"file":"MessageScroller.d.ts","sourceRoot":"","sources":["../../../src/components/messages/MessageScroller.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,0BAA0B,EAAE,KAAK,OAAO,EAAE,MAAM,gBAAgB,CAAC;AAI/E;;;;;;;;;;;GAWG;AACH,wBAAgB,kBAAkB,CAAC,QAAQ,EAAE,CAAC,OAAO,GAAG,0BAA0B,CAAC,EAAE;;;EA+DpF"}
1
+ {"version":3,"file":"MessageScroller.d.ts","sourceRoot":"","sources":["../../../src/components/messages/MessageScroller.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,0BAA0B,EAAE,KAAK,OAAO,EAAE,MAAM,gBAAgB,CAAC;AAI/E;;;;;;;;;;;GAWG;AACH,wBAAgB,kBAAkB,CAAC,QAAQ,EAAE,CAAC,OAAO,GAAG,0BAA0B,CAAC,EAAE;;+BAYnE,eAAe;EAmDhC"}
@@ -20,10 +20,7 @@ export function ReasoningDropdown({ children, isReasoningFinished, lastReasoning
20
20
  const liveRegionText = isReasoningFinished ? undefined : displayText;
21
21
  return (_jsxs("div", { className: cx("gd-gen-ai-chat__thought-process-dropdown", {
22
22
  "gd-gen-ai-chat__thought-process-dropdown--loading": !isReasoningFinished,
23
- }), children: [
24
- _jsx("span", { className: "gd-gen-ai-chat__visually__hidden", "aria-live": "polite", "aria-atomic": "true", children: liveRegionText }), _jsx(UiButton, { onClick: () => setIsExpanded(!isExpanded), accessibilityConfig: { ariaExpanded: isExpanded }, iconBefore: isExpanded ? "navigateDown" : "navigateRight", iconBeforeSize: 12, label: displayText, variant: "tertiary" }), isExpanded ? (_jsxs("div", { className: "gd-gen-ai-chat__thought-process-dropdown__content", children: [
25
- _jsx("div", { className: "gd-gen-ai-chat__thought-process-dropdown__timeline" }), _jsx("div", { className: "gd-gen-ai-chat__thought-process-dropdown__body", children: children })
26
- ] })) : null] }));
23
+ }), children: [_jsx("span", { className: "gd-gen-ai-chat__visually__hidden", "aria-live": "polite", "aria-atomic": "true", children: liveRegionText }), _jsx(UiButton, { onClick: () => setIsExpanded(!isExpanded), accessibilityConfig: { ariaExpanded: isExpanded }, iconBefore: isExpanded ? "navigateDown" : "navigateRight", iconBeforeSize: 12, label: displayText, variant: "tertiary" }), isExpanded ? (_jsxs("div", { className: "gd-gen-ai-chat__thought-process-dropdown__content", children: [_jsx("div", { className: "gd-gen-ai-chat__thought-process-dropdown__timeline" }), _jsx("div", { className: "gd-gen-ai-chat__thought-process-dropdown__body", children: children })] })) : null] }));
27
24
  }
28
25
  /**
29
26
  * Gets the title of the last reasoning step across all reasoning items.
@@ -10,7 +10,5 @@ export function UserItemComponent({ message, isLast, groups }) {
10
10
  const messageState = getItemState(message);
11
11
  const references = useToolsReferences(groups);
12
12
  const classNames = cx("gd-gen-ai-chat__messages__conversation", "gd-gen-ai-chat__messages__conversation--user", messageState === "cancelled" && "gd-gen-ai-chat__messages__conversation--cancelled");
13
- return (_jsxs("div", { className: classNames, "data-state": messageState, children: [
14
- _jsx("span", { className: "gd-gen-ai-chat__visually__hidden", children: intl.formatMessage({ id: "gd.gen-ai.message.label.user" }) }), _jsx(ConversationItemContents, { role: "user", message: message, references: references, isLoading: messageState === "loading", isLast: isLast })
15
- ] }));
13
+ return (_jsxs("div", { className: classNames, "data-state": messageState, children: [_jsx("span", { className: "gd-gen-ai-chat__visually__hidden", children: intl.formatMessage({ id: "gd.gen-ai.message.label.user" }) }), _jsx(ConversationItemContents, { role: "user", message: message, references: references, isLoading: messageState === "loading", isLast: isLast })] }));
16
14
  }
@@ -6,7 +6,5 @@ import { MessageContents } from "./MessageContents.js";
6
6
  export function UserMessageComponent({ message, isLast }) {
7
7
  const intl = useIntl();
8
8
  const classNames = cx("gd-gen-ai-chat__messages__message", "gd-gen-ai-chat__messages__message--user", message.cancelled && "gd-gen-ai-chat__messages__message--cancelled");
9
- return (_jsxs("div", { className: classNames, children: [
10
- _jsx("span", { className: "gd-gen-ai-chat__visually__hidden", children: intl.formatMessage({ id: "gd.gen-ai.message.label.user" }) }), _jsx(MessageContents, { useMarkdown: true, content: message.content, messageState: "complete", isLastMessage: isLast, messageId: message.localId })
11
- ] }));
9
+ return (_jsxs("div", { className: classNames, children: [_jsx("span", { className: "gd-gen-ai-chat__visually__hidden", children: intl.formatMessage({ id: "gd.gen-ai.message.label.user" }) }), _jsx(MessageContents, { useMarkdown: true, content: message.content, messageState: "complete", isLastMessage: isLast, messageId: message.localId })] }));
12
10
  }
@@ -26,13 +26,11 @@ export function ChangeAnalysisContentsComponent({ content, }) {
26
26
  range,
27
27
  title,
28
28
  metric: (chunks) => {
29
- return (_jsxs("div", { className: "gd-gen-ai-chat__messages__content--changeAnalysis__metric", children: [
30
- _jsx(UiIcon, { type: "metric", color: "currentColor" }), chunks] }));
29
+ return (_jsxs("div", { className: "gd-gen-ai-chat__messages__content--changeAnalysis__metric", children: [_jsx(UiIcon, { type: "metric", color: "currentColor" }), chunks] }));
31
30
  },
32
31
  b: (chunks) => _jsx("strong", { children: chunks }),
33
32
  } }), _jsx("div", { className: "gd-gen-ai-chat__messages__content--changeAnalysis__button", children: _jsx(UiButton, { label: intl.formatMessage({ id: "gd.gen-ai.changeAnalysis.explain_the_change" }), variant: "secondary", iconBefore: "explainai", onClick: () => {
34
33
  storeKdaReturnFocusFromActiveElement();
35
34
  setKeyDriverAnalysis({ keyDriverAnalysis: definition });
36
- } }) })
37
- ] }));
35
+ } }) })] }));
38
36
  }
@@ -1,11 +1,7 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  export function ReasoningContentsComponent({ content }) {
3
3
  const groupedSteps = groupSteps(content.steps);
4
- return (_jsx("div", { className: "gd-gen-ai-chat__reasoning", children: groupedSteps.map((step, index) => (
5
- // NOTE: Change key index to ID (needs BE change)
6
- _jsxs("div", { className: "gd-gen-ai-chat__reasoning__step", children: [step.title ? (_jsxs("div", { className: "gd-gen-ai-chat__reasoning__headline", children: [
7
- _jsx("div", { className: "gd-gen-ai-chat__reasoning__bullet" }), _jsx("div", { className: "gd-gen-ai-chat__reasoning__content", children: _jsx("div", { className: "gd-gen-ai-chat__reasoning__title", children: _jsx("p", { children: step.title }) }) })
8
- ] })) : null, step.thoughts.length ? (_jsx("div", { className: "gd-gen-ai-chat__reasoning__thoughts", children: step.thoughts.map((thought, thoughtIndex) => (_jsx("div", { className: "gd-gen-ai-chat__reasoning__thought", children: _jsx("p", { children: thought }) }, thoughtIndex))) })) : null] }, index))) }));
4
+ return (_jsx("div", { className: "gd-gen-ai-chat__reasoning", children: groupedSteps.map((step, index) => (_jsxs("div", { className: "gd-gen-ai-chat__reasoning__step", children: [step.title ? (_jsxs("div", { className: "gd-gen-ai-chat__reasoning__headline", children: [_jsx("div", { className: "gd-gen-ai-chat__reasoning__bullet" }), _jsx("div", { className: "gd-gen-ai-chat__reasoning__content", children: _jsx("div", { className: "gd-gen-ai-chat__reasoning__title", children: _jsx("p", { children: step.title }) }) })] })) : null, step.thoughts.length ? (_jsx("div", { className: "gd-gen-ai-chat__reasoning__thoughts", children: step.thoughts.map((thought, thoughtIndex) => (_jsx("div", { className: "gd-gen-ai-chat__reasoning__thought", children: _jsx("p", { children: thought }) }, thoughtIndex))) })) : null] }, index))) }));
9
5
  }
10
6
  function getThoughts(step) {
11
7
  return (step.thoughts
@@ -17,12 +17,7 @@ export function SemanticSearchContentsComponent({ content, useMarkdown }) {
17
17
  // Keeping for backwards compatibility
18
18
  const text = replaceLinks(content.text, content.searchResults, workspace);
19
19
  const showSearchUI = hasSearchResults(content);
20
- return (_jsxs("div", { className: cx("gd-gen-ai-chat__messages__content", showSearchUI && "gd-gen-ai-chat__messages__content--semantic-search"), children: [
21
- _jsx(MarkdownComponent, { allowMarkdown: useMarkdown, children: text }), showSearchUI ? (_jsxs(_Fragment, { children: [
22
- _jsxs("div", { className: "gd-gen-ai-chat__messages__semantic-search-header", children: [
23
- _jsx(UiIcon, { type: "search", size: 14, color: "complementary-6", backgroundSize: 26, backgroundColor: "complementary-2" }), _jsx(FormattedMessage, { id: "gd.gen-ai.semantic-search.title" })
24
- ] }), _jsx(Suspense, { fallback: _jsx(SemanticSearchTreeViewFallback, {}), children: _jsx(SemanticSearchTreeView, { workspace: workspace, content: content, maxHeight: SEMANTIC_SEARCH_TREE_VIEW_HEIGHT }) })
25
- ] })) : null] }));
20
+ return (_jsxs("div", { className: cx("gd-gen-ai-chat__messages__content", showSearchUI && "gd-gen-ai-chat__messages__content--semantic-search"), children: [_jsx(MarkdownComponent, { allowMarkdown: useMarkdown, children: text }), showSearchUI ? (_jsxs(_Fragment, { children: [_jsxs("div", { className: "gd-gen-ai-chat__messages__semantic-search-header", children: [_jsx(UiIcon, { type: "search", size: 14, color: "complementary-6", backgroundSize: 26, backgroundColor: "complementary-2" }), _jsx(FormattedMessage, { id: "gd.gen-ai.semantic-search.title" })] }), _jsx(Suspense, { fallback: _jsx(SemanticSearchTreeViewFallback, {}), children: _jsx(SemanticSearchTreeView, { workspace: workspace, content: content, maxHeight: SEMANTIC_SEARCH_TREE_VIEW_HEIGHT }) })] })) : null] }));
26
21
  }
27
22
  /**
28
23
  * The fallback component for the semantic search tree view ensures that the correct height is set while loading.
@@ -359,10 +359,7 @@ function VisualizationContentsComponentCore({ content, messageId, useMarkdown, c
359
359
  return null;
360
360
  }
361
361
  };
362
- return (_jsxs("div", { className: className, children: [
363
- _jsx(MarkdownComponent, { allowMarkdown: useMarkdown, children: content.text }), visualization && whatIfScenarios ? (_jsx("div", { className: "gd-gen-ai-chat__visualization__what-if-group", children: whatIfScenarios.map((scenario, index) => (_jsxs("div", { className: cx("gd-gen-ai-chat__visualization", `gd-gen-ai-chat__visualization--${visualization.visualizationType.toLowerCase()}`), children: [
364
- _jsx("div", { className: "gd-gen-ai-chat__visualization__title", children: scenario.label }), _jsx("div", { className: cx("gd-gen-ai-chat__visualization__wrapper", `gd-gen-ai-chat__visualization__wrapper--${visualization.visualizationType.toLowerCase()}`), children: _jsx(VisualizationErrorBoundary, { children: renderCurrentChart(scenario.execConfig) }) })
365
- ] }, index))) })) : visualization ? (_jsx(Dropdown, { enableAutoToggle: false, isOpen: Boolean(drillState), onToggle: (state) => {
362
+ return (_jsxs("div", { className: className, children: [_jsx(MarkdownComponent, { allowMarkdown: useMarkdown, children: content.text }), visualization && whatIfScenarios ? (_jsx("div", { className: "gd-gen-ai-chat__visualization__what-if-group", children: whatIfScenarios.map((scenario, index) => (_jsxs("div", { className: cx("gd-gen-ai-chat__visualization", `gd-gen-ai-chat__visualization--${visualization.visualizationType.toLowerCase()}`), children: [_jsx("div", { className: "gd-gen-ai-chat__visualization__title", children: scenario.label }), _jsx("div", { className: cx("gd-gen-ai-chat__visualization__wrapper", `gd-gen-ai-chat__visualization__wrapper--${visualization.visualizationType.toLowerCase()}`), children: _jsx(VisualizationErrorBoundary, { children: renderCurrentChart(scenario.execConfig) }) })] }, index))) })) : visualization ? (_jsx(Dropdown, { enableAutoToggle: false, isOpen: Boolean(drillState), onToggle: (state) => {
366
363
  if (!state) {
367
364
  setDrillState(null);
368
365
  }
@@ -404,16 +401,14 @@ function VisualizationContentsComponentCore({ content, messageId, useMarkdown, c
404
401
  : toggleButtonTableTooltipText,
405
402
  } }), content: isTable
406
403
  ? toggleButtonOriginalTooltipText
407
- : toggleButtonTableTooltipText }) })), _jsxs("div", { id: MORE_MENU_BUTTON_ID, className: cx("gd-gen-ai-chat__visualization__save", dropdownAnchorClassName), children: [
408
- _jsx(UiTooltip, { disabled: !moreButtonTooltipText, triggerBy: ["focus", "hover"], arrowPlacement: "bottom", anchor: _jsx(UiIconButton, { dataTestId: "gen-ai-visualization-menu-button", onClick: () => setMenuButtonOpen(!isMenuButtonOpen), icon: "ellipsis", isDisabled: visLoading, accessibilityConfig: {
404
+ : toggleButtonTableTooltipText }) })), _jsxs("div", { id: MORE_MENU_BUTTON_ID, className: cx("gd-gen-ai-chat__visualization__save", dropdownAnchorClassName), children: [_jsx(UiTooltip, { disabled: !moreButtonTooltipText, triggerBy: ["focus", "hover"], arrowPlacement: "bottom", anchor: _jsx(UiIconButton, { dataTestId: "gen-ai-visualization-menu-button", onClick: () => setMenuButtonOpen(!isMenuButtonOpen), icon: "ellipsis", isDisabled: visLoading, accessibilityConfig: {
409
405
  role: "button",
410
406
  ariaLabel: moreButtonTooltipText,
411
407
  ariaDescribedBy: moreButtonDescId,
412
408
  isExpanded: isMenuButtonOpen,
413
409
  popupId: menuId,
414
410
  ariaHaspopup: "menu",
415
- }, isActive: isMenuButtonOpen }), content: moreButtonTooltipText }), isMenuButtonOpen ? renderMenuItems() : null] })
416
- ] }));
411
+ }, isActive: isMenuButtonOpen }), content: moreButtonTooltipText }), isMenuButtonOpen ? renderMenuItems() : null] })] }));
417
412
  })()
418
413
  : null, _jsx("div", { className: "gd-gen-ai-chat__visualization__title", id: moreButtonDescId, children: _jsx(MarkdownComponent, { allowMarkdown: useMarkdown, children: visualization.title }) }), _jsx("div", { className: cx("gd-gen-ai-chat__visualization__wrapper", `gd-gen-ai-chat__visualization__wrapper--${isTable ? "table" : visualization.visualizationType.toLowerCase()}`), children: _jsx(VisualizationErrorBoundary, { children: renderCurrentChart() }) }), saveDialogOpen ? (_jsx(VisualizationSaveDialog, { onClose: () => setSaveDialogOpen(null), visualization: visualization, type: saveDialogOpen, messageId: messageId })) : null, drillState ? (_jsx("div", { className: "gd-gen-ai-chat__visualization__drill_overlay" })) : null] }));
419
414
  } })) : null, showSuggestions && !whatIfScenarios && visualization?.suggestions?.length ? (_jsx("div", { className: "gd-gen-ai-chat__visualization__suggestions", children: visualization.suggestions.map((suggestion) => (_jsx(UiButton, { label: suggestion.label, variant: "secondary", size: "small", isDisabled: arePromptActionsDisabled, onClick: () => {
@@ -20,11 +20,9 @@ function VisualizationSaveDialogCore({ onClose, visualization, messageId, saveVi
20
20
  });
21
21
  }, isPositive: true, autofocusOnOpen: false, submitOnEnterKey: true, headline: intl.formatMessage({ id: "gd.gen-ai.save-dialog.title" }), cancelButtonText: intl.formatMessage({ id: "gd.gen-ai.button.cancel" }), submitButtonText: type === "save"
22
22
  ? intl.formatMessage({ id: "gd.gen-ai.button.save" })
23
- : intl.formatMessage({ id: "gd.gen-ai.button.save_and_explore" }), showProgressIndicator: visualization.saving, isSubmitDisabled: visualization.saving, isCancelDisabled: visualization.saving, className: "gd-gen-ai-chat__visualization__save-dialog", children: [
24
- _jsx(Typography, { tagName: "p", children: type === "save"
23
+ : intl.formatMessage({ id: "gd.gen-ai.button.save_and_explore" }), showProgressIndicator: visualization.saving, isSubmitDisabled: visualization.saving, isCancelDisabled: visualization.saving, className: "gd-gen-ai-chat__visualization__save-dialog", children: [_jsx(Typography, { tagName: "p", children: type === "save"
25
24
  ? intl.formatMessage({ id: "gd.gen-ai.save-dialog.description" })
26
- : intl.formatMessage({ id: "gd.gen-ai.save-dialog.description.explore" }) }), _jsx(Input, { autofocus: true, label: intl.formatMessage({ id: "gd.gen-ai.save-dialog.label" }), labelPositionTop: true, placeholder: visualization.title, value: value, disabled: visualization.saving, onChange: (newValue) => setValue(String(newValue)) })
27
- ] }));
25
+ : intl.formatMessage({ id: "gd.gen-ai.save-dialog.description.explore" }) }), _jsx(Input, { autofocus: true, label: intl.formatMessage({ id: "gd.gen-ai.save-dialog.label" }), labelPositionTop: true, placeholder: visualization.title, value: value, disabled: visualization.saving, onChange: (newValue) => setValue(String(newValue)) })] }));
28
26
  }
29
27
  export function VisualizationSaveDialog(props) {
30
28
  const dispatch = useDispatch();
@@ -1 +1 @@
1
- {"version":3,"file":"replaceLinks.d.ts","sourceRoot":"","sources":["../../../../src/components/messages/contents/replaceLinks.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,yBAAyB,EAAE,MAAM,qBAAqB,CAAC;AA0BrE,eAAO,MAAM,YAAY,0FAuBxB,CAAC"}
1
+ {"version":3,"file":"replaceLinks.d.ts","sourceRoot":"","sources":["../../../../src/components/messages/contents/replaceLinks.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,yBAAyB,EAAE,MAAM,qBAAqB,CAAC;AA0BrE,eAAO,MAAM,YAAY,SACf,MAAM,gBACE,yBAAyB,EAAE,eAC5B,MAAM,KACpB,MAmBF,CAAC"}
@@ -1,5 +1,5 @@
1
1
  import { type IAttribute, type IFilter, type IGenAIVisualization, type IMeasure, type IMeasureDefinition, type ISortItem } from "@gooddata/sdk-model";
2
- export declare const useExecution: (vis?: IGenAIVisualization | undefined) => {
2
+ export declare const useExecution: (vis?: IGenAIVisualization) => {
3
3
  metrics: IMeasure<IMeasureDefinition>[];
4
4
  dimensions: IAttribute[];
5
5
  filters: IFilter[];
@@ -1 +1 @@
1
- {"version":3,"file":"useExecution.d.ts","sourceRoot":"","sources":["../../../../src/components/messages/contents/useExecution.tsx"],"names":[],"mappings":"AAIA,OAAO,EAUH,KAAK,UAAU,EACf,KAAK,OAAO,EACZ,KAAK,mBAAmB,EAExB,KAAK,QAAQ,EACb,KAAK,kBAAkB,EACvB,KAAK,SAAS,EAgBjB,MAAM,qBAAqB,CAAC;AAwB7B,eAAO,MAAM,YAAY;;;;;CAaxB,CAAC;AAEF,eAAO,MAAM,gBAAgB;;;;;CAgB5B,CAAC"}
1
+ {"version":3,"file":"useExecution.d.ts","sourceRoot":"","sources":["../../../../src/components/messages/contents/useExecution.tsx"],"names":[],"mappings":"AAIA,OAAO,EAUH,KAAK,UAAU,EACf,KAAK,OAAO,EACZ,KAAK,mBAAmB,EAExB,KAAK,QAAQ,EACb,KAAK,kBAAkB,EACvB,KAAK,SAAS,EAgBjB,MAAM,qBAAqB,CAAC;AAwB7B,eAAO,MAAM,YAAY,SAAU,mBAAmB;;;;;CAarD,CAAC;AAEF,eAAO,MAAM,gBAAgB,QAAS,mBAAmB;;;;;CAgBxD,CAAC"}