@visma-swno/gaia-chat-ui 4.2.0-beta.4 → 5.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +54 -0
- package/dist/app/app.d.ts +1 -5
- package/dist/components/composer/message-composer.d.ts +0 -4
- package/dist/components/session-ended-actions/session-ended-actions.d.ts +26 -0
- package/dist/components/session-ended-actions/session-ended-actions.styles.d.ts +2 -0
- package/dist/core/store/chat-store.d.ts +2 -1
- package/dist/core/store/index.d.ts +1 -1
- package/dist/core/store/run-coordinator.d.ts +1 -1
- package/dist/core/store/selectors/component-selectors.d.ts +9 -0
- package/dist/core/store/selectors/index.d.ts +1 -1
- package/dist/core/store/session-manager.d.ts +3 -0
- package/dist/core/store/support-manager.d.ts +2 -0
- package/dist/custom-elements.json +1 -1
- package/dist/{da-9IG18yZ6.js → da--slbCKBx.js} +4 -0
- package/dist/{fi-DwB8EgSP.js → fi-Cc9g_Z1U.js} +7 -3
- package/dist/generated/locales/da.d.ts +4 -0
- package/dist/generated/locales/fi.d.ts +4 -0
- package/dist/generated/locales/nb.d.ts +4 -0
- package/dist/generated/locales/nl.d.ts +4 -0
- package/dist/generated/locales/sv.d.ts +4 -0
- package/dist/index.es.js +2499 -2339
- package/dist/{nb-BBumrBPR.js → nb-BvGJ1d1A.js} +4 -0
- package/dist/{nl-BqENEZnL.js → nl-BMUWAHah.js} +4 -0
- package/dist/{sv-Dmo2Yvcn.js → sv-DpcFtI4M.js} +4 -0
- package/dist/types/host-context.d.ts +18 -22
- package/dist/vscode.html-custom-data.json +12 -6
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,59 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [5.0.0](https://github.com/visma-swno/vsn-assistant/compare/web-component@v4.1.0...web-component@v5.0.0) (2026-03-23)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### ⚠ BREAKING CHANGES
|
|
7
|
+
|
|
8
|
+
* This release contains breaking changes. Please see our documentation site for migration guides from earlier versions, https://docs.assistant.vsn.dev/latest/.
|
|
9
|
+
|
|
10
|
+
### Features
|
|
11
|
+
|
|
12
|
+
* add Azure AI Search with citation previews ([#2040](https://github.com/visma-swno/vsn-assistant/issues/2040)) ([7c6f72a](https://github.com/visma-swno/vsn-assistant/commit/7c6f72a7a7d01a7065b71831e2dc1d3794955042))
|
|
13
|
+
* add code canvas authoring workspace ([#2043](https://github.com/visma-swno/vsn-assistant/issues/2043)) ([40fcdeb](https://github.com/visma-swno/vsn-assistant/commit/40fcdebe1ed096633db0ab6a57372a0d2d742346))
|
|
14
|
+
* add copy button to all message types ([#1813](https://github.com/visma-swno/vsn-assistant/issues/1813)) ([56edda2](https://github.com/visma-swno/vsn-assistant/commit/56edda288a61fff283702896171a350a4b293456))
|
|
15
|
+
* add narrative agent with tool call status rendering ([#1815](https://github.com/visma-swno/vsn-assistant/issues/1815)) ([6e4edbf](https://github.com/visma-swno/vsn-assistant/commit/6e4edbf15d6b3d9e5b44467ce6e53dc0797f357f))
|
|
16
|
+
* add PDF report export to canvas system ([#2053](https://github.com/visma-swno/vsn-assistant/issues/2053)) ([3beddfa](https://github.com/visma-swno/vsn-assistant/commit/3beddfa8d0ba8781b3b9155b6b54c9b4c5a09b89))
|
|
17
|
+
* **chat-ui:** add handler callback to FrontendTool for returning results to agent ([#1938](https://github.com/visma-swno/vsn-assistant/issues/1938)) ([319c9fc](https://github.com/visma-swno/vsn-assistant/commit/319c9fc74ad290ad1137891959a8279f995d56bb))
|
|
18
|
+
* consent-based conversation sharing for feedback and support handoff ([#1806](https://github.com/visma-swno/vsn-assistant/issues/1806)) ([58e53e0](https://github.com/visma-swno/vsn-assistant/commit/58e53e0dbfae9570858619fa4643373d80b79f4c))
|
|
19
|
+
* **dashboard:** allow choosing from list of models ([#1803](https://github.com/visma-swno/vsn-assistant/issues/1803)) ([e973f11](https://github.com/visma-swno/vsn-assistant/commit/e973f11cb32d797c2ff83292e1d8243303200d12))
|
|
20
|
+
* **dashboard:** frontend tools for AI-powered profile management ([#1845](https://github.com/visma-swno/vsn-assistant/issues/1845)) ([fc9cac9](https://github.com/visma-swno/vsn-assistant/commit/fc9cac9aeb0ae835e3bb0d3df6ae5d2f041d2a07))
|
|
21
|
+
* demo fixes with enhanced chat UX, canvas rendering, and Business NXT improvements ([#2067](https://github.com/visma-swno/vsn-assistant/issues/2067)) ([1714829](https://github.com/visma-swno/vsn-assistant/commit/1714829496bde6e26eb84943647389009a1bd2e1))
|
|
22
|
+
* **profiles:** add per-profile suggested questions and chat pills ([#1939](https://github.com/visma-swno/vsn-assistant/issues/1939)) ([85bf850](https://github.com/visma-swno/vsn-assistant/commit/85bf8503e93e8fd328dca98802b5fbc2c0cca498))
|
|
23
|
+
* run ID tracking and frontend tool improvements ([#1985](https://github.com/visma-swno/vsn-assistant/issues/1985)) ([7c2ecaa](https://github.com/visma-swno/vsn-assistant/commit/7c2ecaaa042758c012f1ffdb7d4bf04a001c3737))
|
|
24
|
+
* show "service temporarily unavailable"-message when back-end is unreachable ([#1873](https://github.com/visma-swno/vsn-assistant/issues/1873)) ([1c4c40e](https://github.com/visma-swno/vsn-assistant/commit/1c4c40ebdc0debc3f8322b5b638a2e2dc7785b46))
|
|
25
|
+
* thumbs updown below assistant messages ([#2001](https://github.com/visma-swno/vsn-assistant/issues/2001)) ([78c0b73](https://github.com/visma-swno/vsn-assistant/commit/78c0b731de2850073d969e8171968144f2787707))
|
|
26
|
+
* **web-component:** add ECharts frontend tool for inline chart rendering ([#1848](https://github.com/visma-swno/vsn-assistant/issues/1848)) ([a5904ab](https://github.com/visma-swno/vsn-assistant/commit/a5904ab53f8cc471c9a5902a97deb33947588710))
|
|
27
|
+
* **web-component:** add post-session actions UI after support ends ([#2102](https://github.com/visma-swno/vsn-assistant/issues/2102)) ([0db795f](https://github.com/visma-swno/vsn-assistant/commit/0db795f00973ada6918fa272eccb604354ec8875))
|
|
28
|
+
* **web-component:** comply with WCAG 2.1 AA requirements ([#1850](https://github.com/visma-swno/vsn-assistant/issues/1850)) ([eb37b89](https://github.com/visma-swno/vsn-assistant/commit/eb37b89cb092b5cf97c0db41861c954efb48bedc))
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
### Bug Fixes
|
|
32
|
+
|
|
33
|
+
* add notExpandable property to UiToolMessage ([#2007](https://github.com/visma-swno/vsn-assistant/issues/2007)) ([3addc87](https://github.com/visma-swno/vsn-assistant/commit/3addc87207d30bf5ea09f28028221a4d2d268558)), closes [#2006](https://github.com/visma-swno/vsn-assistant/issues/2006)
|
|
34
|
+
* **deps:** bump @isaacs/brace-expansion from 5.0.0 to 5.0.1 in /web-component ([#1790](https://github.com/visma-swno/vsn-assistant/issues/1790)) ([6c4460b](https://github.com/visma-swno/vsn-assistant/commit/6c4460bca419da72fc3b7f8db8ba8228976aaf7f))
|
|
35
|
+
* **deps:** bump dompurify from 3.3.1 to 3.3.2 in /web-component ([#2023](https://github.com/visma-swno/vsn-assistant/issues/2023)) ([a4bd10f](https://github.com/visma-swno/vsn-assistant/commit/a4bd10f9d4292dad1118fe98cfef60b0a6cca32a))
|
|
36
|
+
* **deps:** bump flatted from 3.3.4 to 3.4.1 in /web-component ([#2065](https://github.com/visma-swno/vsn-assistant/issues/2065)) ([8f804c0](https://github.com/visma-swno/vsn-assistant/commit/8f804c038c70b8eca2bb162a106dbcce249d0301))
|
|
37
|
+
* **deps:** bump qs from 6.14.0 to 6.14.2 in /web-component ([#1852](https://github.com/visma-swno/vsn-assistant/issues/1852)) ([061c6f3](https://github.com/visma-swno/vsn-assistant/commit/061c6f351f83ef6c1d6043fd45dae626ffc12d6d))
|
|
38
|
+
* **deps:** bump rollup from 4.48.1 to 4.59.0 in /web-component ([#1976](https://github.com/visma-swno/vsn-assistant/issues/1976)) ([b183733](https://github.com/visma-swno/vsn-assistant/commit/b1837338995c5231e98c5cb9c4bae26e142ee4a3))
|
|
39
|
+
* multichat clear all button ([#1856](https://github.com/visma-swno/vsn-assistant/issues/1856)) ([9191dc2](https://github.com/visma-swno/vsn-assistant/commit/9191dc21f2858950fc203abaf3b26953c0be3448))
|
|
40
|
+
* resolve lit version conflicts between dashboard and web-component ([#2014](https://github.com/visma-swno/vsn-assistant/issues/2014)) ([cbcbb49](https://github.com/visma-swno/vsn-assistant/commit/cbcbb4945ca1da71b7e942d25c7df25c3f9f743a))
|
|
41
|
+
* **web-component:** polish UI and remove streaming cursor ([#2099](https://github.com/visma-swno/vsn-assistant/issues/2099)) ([d11b38c](https://github.com/visma-swno/vsn-assistant/commit/d11b38c54a6eb1b2c746850524c0060e1666dfa5))
|
|
42
|
+
* **web-component:** prevent icon plugin from causing repeated page reloads ([#1880](https://github.com/visma-swno/vsn-assistant/issues/1880)) ([8527fff](https://github.com/visma-swno/vsn-assistant/commit/8527ffffd20a146759b60c5b4613e3b15a38a8aa))
|
|
43
|
+
* **web-component:** replace innerHTML with DOMParser in icon component ([#1855](https://github.com/visma-swno/vsn-assistant/issues/1855)) ([ec59e49](https://github.com/visma-swno/vsn-assistant/commit/ec59e49f4ad902d5f7a1b341ecf9b225d686125b))
|
|
44
|
+
* **web-component:** unnest host context parameters ([#1805](https://github.com/visma-swno/vsn-assistant/issues/1805)) ([da9e778](https://github.com/visma-swno/vsn-assistant/commit/da9e77874b8d894041b49e1fbe1c35b40398e60a))
|
|
45
|
+
* **web-component:** use english privacy statement link ([#2088](https://github.com/visma-swno/vsn-assistant/issues/2088)) ([6ad0c6a](https://github.com/visma-swno/vsn-assistant/commit/6ad0c6afca42c85e809516fd055bbd487146e944))
|
|
46
|
+
|
|
47
|
+
|
|
48
|
+
### Performance Improvements
|
|
49
|
+
|
|
50
|
+
* **web-component:** optimize streaming performance and bundle size ([#1865](https://github.com/visma-swno/vsn-assistant/issues/1865)) ([2d656bc](https://github.com/visma-swno/vsn-assistant/commit/2d656bc962a396fe03343877ef83492c6558960f))
|
|
51
|
+
|
|
52
|
+
|
|
53
|
+
### Code Refactoring
|
|
54
|
+
|
|
55
|
+
* migrate to GAIA design system and harden component architecture ([#2094](https://github.com/visma-swno/vsn-assistant/issues/2094)) ([d3cdfb9](https://github.com/visma-swno/vsn-assistant/commit/d3cdfb9a01e35174321d3eb08be80e2475cfe061))
|
|
56
|
+
|
|
3
57
|
## [4.1.0](https://github.com/visma-swno/vsn-assistant/compare/web-component@v4.0.0...web-component@v4.1.0) (2026-01-23)
|
|
4
58
|
|
|
5
59
|
|
package/dist/app/app.d.ts
CHANGED
|
@@ -34,11 +34,6 @@ export declare class ChatApp extends BaseElement {
|
|
|
34
34
|
baseUrl: string;
|
|
35
35
|
/** Assistant profile identifier. */
|
|
36
36
|
profileId: string;
|
|
37
|
-
/**
|
|
38
|
-
* Partner ID for support handoff.
|
|
39
|
-
* @deprecated Use hostContextProvider instead.
|
|
40
|
-
*/
|
|
41
|
-
supportPartnerId?: string;
|
|
42
37
|
/** Async function that returns an OAuth access token for Visma Connect auth. */
|
|
43
38
|
tokenProvider?: TokenFetcher;
|
|
44
39
|
/** Async function that returns application context sent with each message. */
|
|
@@ -58,6 +53,7 @@ export declare class ChatApp extends BaseElement {
|
|
|
58
53
|
private canvasEnabled;
|
|
59
54
|
private canvasActive;
|
|
60
55
|
private canvasExpanded;
|
|
56
|
+
private supportSessionEnded;
|
|
61
57
|
private disposables;
|
|
62
58
|
private ctx;
|
|
63
59
|
private handleInlineQuestionClick;
|
|
@@ -24,10 +24,6 @@ export declare class GaiaMessageComposer extends BaseElement {
|
|
|
24
24
|
private value;
|
|
25
25
|
private invalid;
|
|
26
26
|
profileId: string;
|
|
27
|
-
/**
|
|
28
|
-
* @deprecated Use hostContextProvider instead
|
|
29
|
-
*/
|
|
30
|
-
supportPartnerId?: string;
|
|
31
27
|
hostContextProvider?: HostContextProvider;
|
|
32
28
|
rows: number;
|
|
33
29
|
maxRows: number;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { BaseElement } from '../shared/base-element';
|
|
2
|
+
/**
|
|
3
|
+
* Post-session actions shown after a support session ends.
|
|
4
|
+
*
|
|
5
|
+
* Replaces the message composer when the support session has concluded.
|
|
6
|
+
* Offers the user the option to provide feedback on the support operator
|
|
7
|
+
* or start a new conversation. After feedback is submitted, only the
|
|
8
|
+
* new conversation option remains.
|
|
9
|
+
*
|
|
10
|
+
* @element gaia-session-ended-actions
|
|
11
|
+
*
|
|
12
|
+
* @fires {ConversationClearedEvent} conversation-cleared - When the user starts a new conversation
|
|
13
|
+
*/
|
|
14
|
+
export declare class GaiaSessionEndedActions extends BaseElement {
|
|
15
|
+
static styles: import('lit').CSSResult[];
|
|
16
|
+
private ctrl;
|
|
17
|
+
private handleGiveFeedback;
|
|
18
|
+
private handleNewConversation;
|
|
19
|
+
private get showFeedbackButton();
|
|
20
|
+
render(): import('lit-html').TemplateResult<1>;
|
|
21
|
+
}
|
|
22
|
+
declare global {
|
|
23
|
+
interface HTMLElementTagNameMap {
|
|
24
|
+
'gaia-session-ended-actions': GaiaSessionEndedActions;
|
|
25
|
+
}
|
|
26
|
+
}
|
|
@@ -44,6 +44,7 @@ export interface ChatStoreState {
|
|
|
44
44
|
currentRunId: string | null;
|
|
45
45
|
messageRunIds: Record<string, string>;
|
|
46
46
|
supportSession: AgUiSupportSessionState | null;
|
|
47
|
+
supportSessionEnded: boolean;
|
|
47
48
|
messages: UiMessage[];
|
|
48
49
|
backendAvailable: boolean;
|
|
49
50
|
feedbackFormOpen: boolean;
|
|
@@ -96,7 +97,7 @@ export declare class ChatStore implements ReactiveController {
|
|
|
96
97
|
setSelectedModel(model: string): void;
|
|
97
98
|
loadHistory(profileId: string): Promise<void>;
|
|
98
99
|
clearConversation(): void;
|
|
99
|
-
sendMessage(message: string, profileId: string,
|
|
100
|
+
sendMessage(message: string, profileId: string, hostContext?: HostContext | null): Promise<void>;
|
|
100
101
|
hideSuggestedQuestions(): void;
|
|
101
102
|
approveToolCall(messageId: string, options?: {
|
|
102
103
|
consentToShareConversation?: boolean;
|
|
@@ -17,4 +17,4 @@ export { loadConfig, clearConfig, resolveSelectedModel, getModelOverride, getSug
|
|
|
17
17
|
export { restoreSession, saveConversation, clearConversation } from './session-manager';
|
|
18
18
|
export { submitFeedback, submitMessageThumb } from './feedback-manager';
|
|
19
19
|
export { fetchBootstrapConfig, clearBootstrapStorage } from './bootstrap-loader';
|
|
20
|
-
export { selectIsStreaming, selectIsInActiveRun, selectShouldShowThinking, selectConversationState, selectComposerState, selectAppHeaderState, selectFeedbackState, selectFeedbackConfirmationState, selectConnectionStatus, selectToolApprovalState, selectToolStatusState, isRenderableUiMessage, filterRenderableUiMessages, groupMessagesByRun, type RunGroup, } from './selectors';
|
|
20
|
+
export { selectIsStreaming, selectIsInActiveRun, selectShouldShowThinking, selectConversationState, selectComposerState, selectAppHeaderState, selectFeedbackState, selectFeedbackConfirmationState, selectConnectionStatus, selectToolApprovalState, selectToolStatusState, selectSessionEndedState, isRenderableUiMessage, filterRenderableUiMessages, groupMessagesByRun, type RunGroup, } from './selectors';
|
|
@@ -49,7 +49,7 @@ export declare class RunCoordinator {
|
|
|
49
49
|
/**
|
|
50
50
|
* Create the user message, unpack host context, and execute an agent run.
|
|
51
51
|
*/
|
|
52
|
-
sendMessage(profileId: string, message: string,
|
|
52
|
+
sendMessage(profileId: string, message: string, hostContext?: HostContext | null): Promise<void>;
|
|
53
53
|
/**
|
|
54
54
|
* Respond to a tool call (approve or decline) and re-run the agent.
|
|
55
55
|
*/
|
|
@@ -69,3 +69,12 @@ export declare function selectToolApprovalState(s: ChatStoreState): {
|
|
|
69
69
|
export declare function selectToolStatusState(s: ChatStoreState): {
|
|
70
70
|
runIdle: boolean;
|
|
71
71
|
};
|
|
72
|
+
/**
|
|
73
|
+
* Selector for the session-ended actions component.
|
|
74
|
+
*/
|
|
75
|
+
export declare function selectSessionEndedState(s: ChatStoreState): {
|
|
76
|
+
supportSessionEnded: boolean;
|
|
77
|
+
feedbackSubmitted: boolean;
|
|
78
|
+
feedbackFormOpen: boolean;
|
|
79
|
+
feedbackConfirmationVisible: boolean;
|
|
80
|
+
};
|
|
@@ -4,4 +4,4 @@
|
|
|
4
4
|
* Re-exports all selectors from domain-specific modules.
|
|
5
5
|
*/
|
|
6
6
|
export { selectIsStreaming, selectIsInActiveRun, selectShouldShowThinking, isRenderableUiMessage, filterRenderableUiMessages, groupMessagesByRun, type RunGroup, } from './message-selectors';
|
|
7
|
-
export { selectConversationState, selectComposerState, selectAppHeaderState, selectFeedbackState, selectFeedbackConfirmationState, selectConnectionStatus, selectToolApprovalState, selectToolStatusState, } from './component-selectors';
|
|
7
|
+
export { selectConversationState, selectComposerState, selectAppHeaderState, selectFeedbackState, selectFeedbackConfirmationState, selectConnectionStatus, selectToolApprovalState, selectToolStatusState, selectSessionEndedState, } from './component-selectors';
|
|
@@ -6,6 +6,8 @@ export type SessionState = {
|
|
|
6
6
|
conversationId: string | null;
|
|
7
7
|
channel?: ChatChannel;
|
|
8
8
|
supportSession?: AgUiSupportSessionState | null;
|
|
9
|
+
supportSessionEnded?: boolean;
|
|
10
|
+
isActive?: boolean;
|
|
9
11
|
};
|
|
10
12
|
export declare function loadConversationId(storage?: StorageService): string | null;
|
|
11
13
|
export declare function saveConversationId(id: string, storage?: StorageService): void;
|
|
@@ -34,6 +36,7 @@ export declare function clearConversation(agentService: AgentService): {
|
|
|
34
36
|
currentRunId: string | null;
|
|
35
37
|
messageRunIds: Record<string, string>;
|
|
36
38
|
supportSession: AgUiSupportSessionState | null;
|
|
39
|
+
supportSessionEnded: boolean;
|
|
37
40
|
feedbackFormOpen: boolean;
|
|
38
41
|
feedbackFormTarget: ChatChannel;
|
|
39
42
|
error: import('../errors').AppError | null;
|
|
@@ -9,6 +9,8 @@ export interface SupportManagerDeps {
|
|
|
9
9
|
setState(partial: {
|
|
10
10
|
channel?: ChatChannel;
|
|
11
11
|
supportSession?: AgUiSupportSessionState | null;
|
|
12
|
+
supportSessionEnded?: boolean;
|
|
13
|
+
isActive?: boolean;
|
|
12
14
|
}): void;
|
|
13
15
|
pushError(error: AppError): void;
|
|
14
16
|
openFeedbackForm(target: ChatChannel): void;
|