@visma-swno/gaia-chat-ui 2.1.1 → 2.1.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.
Files changed (36) hide show
  1. package/CHANGELOG.md +39 -0
  2. package/README.md +33 -33
  3. package/custom-elements.json +261 -261
  4. package/dist/{da-CS17x1S1.js → da-CIz_JTpK.js} +2 -2
  5. package/dist/{da-CS17x1S1.js.map → da-CIz_JTpK.js.map} +1 -1
  6. package/dist/{index-BbK7JUbo.js → index-CEIcDKQq.js} +1622 -1582
  7. package/dist/index-CEIcDKQq.js.map +1 -0
  8. package/dist/index.es.js +1 -1
  9. package/dist/index.umd.js +82 -61
  10. package/dist/index.umd.js.map +1 -1
  11. package/dist/{nb-DaKpa9tB.js → nb-BRpEPPS7.js} +2 -2
  12. package/dist/{nb-DaKpa9tB.js.map → nb-BRpEPPS7.js.map} +1 -1
  13. package/dist/package.json.d.ts +86 -82
  14. package/dist/src/app/app.d.ts +1 -0
  15. package/dist/src/app/app.d.ts.map +1 -1
  16. package/dist/src/app/middlewares/middleware.d.ts +12 -0
  17. package/dist/src/app/middlewares/middleware.d.ts.map +1 -0
  18. package/dist/src/components/composer.d.ts.map +1 -1
  19. package/dist/src/components/error-message.d.ts.map +1 -1
  20. package/dist/src/components/menu.d.ts.map +1 -1
  21. package/dist/src/components/message/assistant.d.ts.map +1 -1
  22. package/dist/src/components/message-list.d.ts +1 -1
  23. package/dist/src/components/message-list.d.ts.map +1 -1
  24. package/dist/src/components/welcome-message.d.ts +1 -1
  25. package/dist/src/components/welcome-message.d.ts.map +1 -1
  26. package/dist/src/core/effects/stream-event-router.d.ts.map +1 -1
  27. package/dist/src/core/events/transport/sse.d.ts +5 -1
  28. package/dist/src/core/events/transport/sse.d.ts.map +1 -1
  29. package/dist/src/infra/http/api-client.d.ts +1 -0
  30. package/dist/src/infra/http/api-client.d.ts.map +1 -1
  31. package/dist/src/services/bootstrap-service.d.ts +1 -1
  32. package/dist/src/services/bootstrap-service.d.ts.map +1 -1
  33. package/dist/{sv-07PwiLxH.js → sv-DMfrf_18.js} +2 -2
  34. package/dist/{sv-07PwiLxH.js.map → sv-DMfrf_18.js.map} +1 -1
  35. package/package.json +86 -82
  36. package/dist/index-BbK7JUbo.js.map +0 -1
package/CHANGELOG.md ADDED
@@ -0,0 +1,39 @@
1
+ # Changelog
2
+
3
+ ## [2.1.3](https://github.com/visma-swno/vsn-assistant/compare/web-component@v2.1.2...web-component@v2.1.3) (2025-09-26)
4
+
5
+
6
+ ### Bug Fixes
7
+
8
+ * support dynamic locale updates ([#1148](https://github.com/visma-swno/vsn-assistant/issues/1148)) ([d57b277](https://github.com/visma-swno/vsn-assistant/commit/d57b2773b66f31f8fe09b6e92a62aeb76842db64))
9
+
10
+ ## 2.1.2 (2025-09-25)
11
+
12
+
13
+ ### Features
14
+
15
+ * add custom token expiry timer ([#1111](https://github.com/visma-swno/vsn-assistant/issues/1111)) ([f9e8a0c](https://github.com/visma-swno/vsn-assistant/commit/f9e8a0cfbcb67bbce6259582fe65f8478efe86ca))
16
+ * chat sends optional partner id ([#1066](https://github.com/visma-swno/vsn-assistant/issues/1066)) ([6ffcbbb](https://github.com/visma-swno/vsn-assistant/commit/6ffcbbbcd39411269e2e1e5cb991922989e781fa))
17
+ * make web component closeable ([#1069](https://github.com/visma-swno/vsn-assistant/issues/1069)) ([adbf47c](https://github.com/visma-swno/vsn-assistant/commit/adbf47cb91f70d1e67e33bd2a15df83b5c1ce965))
18
+ * **wc:** complete overhaul of the web component ([#1006](https://github.com/visma-swno/vsn-assistant/issues/1006)) ([51bc5b4](https://github.com/visma-swno/vsn-assistant/commit/51bc5b4875c28eb18ee78d9a8bb5f167f45aa1ab))
19
+
20
+
21
+ ### Bug Fixes
22
+
23
+ * add custom prompt for support feedback ([#1082](https://github.com/visma-swno/vsn-assistant/issues/1082)) ([d0098ae](https://github.com/visma-swno/vsn-assistant/commit/d0098aef43939455c3b0de9324c65ec696b0a4b2))
24
+ * add fallback for operator image ([#1081](https://github.com/visma-swno/vsn-assistant/issues/1081)) ([a2fd4ee](https://github.com/visma-swno/vsn-assistant/commit/a2fd4ee8ad4af4872bda9678402f15ced4de930b))
25
+ * add padding for macOS overlay scrollbars ([#1073](https://github.com/visma-swno/vsn-assistant/issues/1073)) ([7a837d9](https://github.com/visma-swno/vsn-assistant/commit/7a837d91c46c6a53b7a540c1f827292bffe87b85))
26
+ * add support for swedish and danish ([#1113](https://github.com/visma-swno/vsn-assistant/issues/1113)) ([904ff26](https://github.com/visma-swno/vsn-assistant/commit/904ff26a553a3ac8c611268e6dd41e90a442fa39))
27
+ * display error message when profile is incorrect ([#1108](https://github.com/visma-swno/vsn-assistant/issues/1108)) ([59c8008](https://github.com/visma-swno/vsn-assistant/commit/59c800804ad3aebb6ce3c8ebb21325cf7dc7d7a0))
28
+ * move icons to icon-folder ([#1061](https://github.com/visma-swno/vsn-assistant/issues/1061)) ([e83abf2](https://github.com/visma-swno/vsn-assistant/commit/e83abf270f648b6a4a6d8e18ed7dc03a31b6c73d))
29
+ * replace rem with px ([#1102](https://github.com/visma-swno/vsn-assistant/issues/1102)) ([5e08cb8](https://github.com/visma-swno/vsn-assistant/commit/5e08cb81df94edbdd026817d59849a1e98284e8a))
30
+ * reset state on principal change ([#1060](https://github.com/visma-swno/vsn-assistant/issues/1060)) ([369f12a](https://github.com/visma-swno/vsn-assistant/commit/369f12a0f13308dfab5e414e8c146236a5ef7afe))
31
+ * scope down error controller ([#1070](https://github.com/visma-swno/vsn-assistant/issues/1070)) ([8c51382](https://github.com/visma-swno/vsn-assistant/commit/8c51382fd0716b90fe7150a8ec53e7c6ced83928))
32
+ * services dynamically change base url ([#1118](https://github.com/visma-swno/vsn-assistant/issues/1118)) ([bc0e59e](https://github.com/visma-swno/vsn-assistant/commit/bc0e59e401b598e4a0c4fd82c4376735b2eb985a))
33
+ * set min height for message list ([#1086](https://github.com/visma-swno/vsn-assistant/issues/1086)) ([df9159a](https://github.com/visma-swno/vsn-assistant/commit/df9159a50d10b56da0df79b7094716d885ca924c))
34
+ * sse parsing in Safari browser ([#1063](https://github.com/visma-swno/vsn-assistant/issues/1063)) ([9c5d33d](https://github.com/visma-swno/vsn-assistant/commit/9c5d33d61edf3ef86775df3985ff95adcbc20de6))
35
+
36
+
37
+ ### Reverts
38
+
39
+ * style: add inline padding for scrollbar in Safari ([#1080](https://github.com/visma-swno/vsn-assistant/issues/1080)) ([b4fa513](https://github.com/visma-swno/vsn-assistant/commit/b4fa51393e66e1fbd2cc2d2beebcf5eecc5ae773))
package/README.md CHANGED
@@ -1,33 +1,33 @@
1
- # @visma-swno/gaia-chat-ui
2
-
3
- Web component library for the Gaia Assistant Chat UI, built with Lit for Visma Software Nordic products.
4
-
5
- ## Installation
6
-
7
- ```bash
8
- npm install @visma-swno/gaia-chat-ui
9
- ```
10
-
11
- **Note:** This package requires `lit` as a peer dependency:
12
-
13
- ```bash
14
- npm install lit@^3.3.0
15
- ```
16
-
17
- ## Usage
18
-
19
- ```javascript
20
- import '@visma-swno/gaia-chat-ui';
21
- ```
22
-
23
- ```html
24
- <gaia-chat
25
- profile-id="default"
26
- base-url="https://your-api-endpoint.com"
27
- is-visitor>
28
- </gaia-chat>
29
- ```
30
-
31
- ## Documentation
32
-
33
- For detailed documentation and development instructions, see the [main repository](https://github.com/visma-swno/vsn-assistant).
1
+ # @visma-swno/gaia-chat-ui
2
+
3
+ Web component library for the Gaia Assistant Chat UI, built with Lit for Visma Software Nordic products.
4
+
5
+ ## Installation
6
+
7
+ ```bash
8
+ npm install @visma-swno/gaia-chat-ui
9
+ ```
10
+
11
+ **Note:** This package requires `lit` as a peer dependency:
12
+
13
+ ```bash
14
+ npm install lit@^3.3.0
15
+ ```
16
+
17
+ ## Usage
18
+
19
+ ```javascript
20
+ import '@visma-swno/gaia-chat-ui';
21
+ ```
22
+
23
+ ```html
24
+ <gaia-chat
25
+ profile-id="default"
26
+ base-url="https://your-api-endpoint.com"
27
+ is-visitor>
28
+ </gaia-chat>
29
+ ```
30
+
31
+ ## Documentation
32
+
33
+ For detailed documentation and development instructions, see the [main repository](https://github.com/visma-swno/vsn-assistant).
@@ -1,261 +1,261 @@
1
- {
2
- "schemaVersion": "1.0.0",
3
- "readme": "",
4
- "modules": [
5
- {
6
- "kind": "javascript-module",
7
- "path": "src/app/chat-app.ts",
8
- "declarations": [
9
- {
10
- "kind": "class",
11
- "description": "",
12
- "name": "ChatApp",
13
- "members": [
14
- {
15
- "kind": "field",
16
- "name": "baseUrl",
17
- "type": {
18
- "text": "string"
19
- },
20
- "privacy": "private",
21
- "readonly": true,
22
- "default": "'https://localhost:5085'",
23
- "attribute": "base-url"
24
- },
25
- {
26
- "kind": "field",
27
- "name": "profileId",
28
- "type": {
29
- "text": "string"
30
- },
31
- "privacy": "private",
32
- "readonly": true,
33
- "default": "'default'",
34
- "attribute": "profile-id"
35
- },
36
- {
37
- "kind": "field",
38
- "name": "vismaAccessToken",
39
- "type": {
40
- "text": "string | null"
41
- },
42
- "privacy": "private",
43
- "readonly": true,
44
- "default": "null",
45
- "attribute": "visma-token"
46
- },
47
- {
48
- "kind": "field",
49
- "name": "unsubscribe",
50
- "type": {
51
- "text": "() => void | undefined"
52
- },
53
- "privacy": "private"
54
- },
55
- {
56
- "kind": "field",
57
- "name": "store",
58
- "privacy": "private",
59
- "default": "new ChatStore()"
60
- },
61
- {
62
- "kind": "field",
63
- "name": "state",
64
- "type": {
65
- "text": "ChatState | null"
66
- },
67
- "privacy": "private",
68
- "default": "null"
69
- },
70
- {
71
- "kind": "field",
72
- "name": "auth",
73
- "type": {
74
- "text": "AuthStrategy | null"
75
- },
76
- "privacy": "private",
77
- "default": "null"
78
- },
79
- {
80
- "kind": "field",
81
- "name": "chatService",
82
- "type": {
83
- "text": "ChatService | null"
84
- },
85
- "privacy": "private",
86
- "default": "null"
87
- },
88
- {
89
- "kind": "field",
90
- "name": "humanSupportService",
91
- "type": {
92
- "text": "HumanSupportService | null"
93
- },
94
- "privacy": "private",
95
- "default": "null"
96
- },
97
- {
98
- "kind": "field",
99
- "name": "handoffController",
100
- "type": {
101
- "text": "HandoffController | null"
102
- },
103
- "privacy": "private",
104
- "default": "null"
105
- },
106
- {
107
- "kind": "field",
108
- "name": "streamController",
109
- "type": {
110
- "text": "StreamController | null"
111
- },
112
- "privacy": "private",
113
- "default": "null"
114
- },
115
- {
116
- "kind": "field",
117
- "name": "currentStreamAbort",
118
- "type": {
119
- "text": "AbortController | undefined"
120
- },
121
- "privacy": "private"
122
- },
123
- {
124
- "kind": "method",
125
- "name": "init",
126
- "privacy": "private"
127
- },
128
- {
129
- "kind": "method",
130
- "name": "onSendMessage",
131
- "privacy": "private",
132
- "parameters": [
133
- {
134
- "name": "e",
135
- "type": {
136
- "text": "SendMessageEvent"
137
- }
138
- }
139
- ]
140
- },
141
- {
142
- "kind": "method",
143
- "name": "onApproveToolCall",
144
- "privacy": "private",
145
- "parameters": [
146
- {
147
- "name": "e",
148
- "type": {
149
- "text": "ApproveToolCallEvent"
150
- }
151
- }
152
- ]
153
- },
154
- {
155
- "kind": "method",
156
- "name": "onDeclineToolCall",
157
- "privacy": "private",
158
- "parameters": [
159
- {
160
- "name": "e",
161
- "type": {
162
- "text": "DeclineToolCallEvent"
163
- }
164
- }
165
- ]
166
- },
167
- {
168
- "kind": "method",
169
- "name": "onSubmitFeedback",
170
- "privacy": "private",
171
- "parameters": [
172
- {
173
- "name": "e",
174
- "type": {
175
- "text": "SubmitFeedbackEvent"
176
- }
177
- }
178
- ]
179
- },
180
- {
181
- "kind": "method",
182
- "name": "onToggleFeedbackForm",
183
- "privacy": "private",
184
- "parameters": [
185
- {
186
- "name": "e",
187
- "type": {
188
- "text": "ToggleFeedbackFormEvent"
189
- }
190
- }
191
- ]
192
- },
193
- {
194
- "kind": "method",
195
- "name": "onClearConversation",
196
- "privacy": "private"
197
- },
198
- {
199
- "kind": "method",
200
- "name": "onClearError",
201
- "privacy": "private"
202
- }
203
- ],
204
- "attributes": [
205
- {
206
- "name": "base-url",
207
- "type": {
208
- "text": "string"
209
- },
210
- "readonly": true,
211
- "default": "'https://localhost:5085'",
212
- "fieldName": "baseUrl"
213
- },
214
- {
215
- "name": "profile-id",
216
- "type": {
217
- "text": "string"
218
- },
219
- "readonly": true,
220
- "default": "'default'",
221
- "fieldName": "profileId"
222
- },
223
- {
224
- "name": "visma-token",
225
- "type": {
226
- "text": "string | null"
227
- },
228
- "readonly": true,
229
- "default": "null",
230
- "fieldName": "vismaAccessToken"
231
- }
232
- ],
233
- "superclass": {
234
- "name": "LitElement",
235
- "package": "lit"
236
- },
237
- "tagName": "vsn-aiasst-chat",
238
- "customElement": true
239
- }
240
- ],
241
- "exports": [
242
- {
243
- "kind": "js",
244
- "name": "ChatApp",
245
- "declaration": {
246
- "name": "ChatApp",
247
- "module": "src/app/chat-app.ts"
248
- }
249
- },
250
- {
251
- "kind": "custom-element-definition",
252
- "name": "vsn-aiasst-chat",
253
- "declaration": {
254
- "name": "ChatApp",
255
- "module": "src/app/chat-app.ts"
256
- }
257
- }
258
- ]
259
- }
260
- ]
261
- }
1
+ {
2
+ "schemaVersion": "1.0.0",
3
+ "readme": "",
4
+ "modules": [
5
+ {
6
+ "kind": "javascript-module",
7
+ "path": "src/app/chat-app.ts",
8
+ "declarations": [
9
+ {
10
+ "kind": "class",
11
+ "description": "",
12
+ "name": "ChatApp",
13
+ "members": [
14
+ {
15
+ "kind": "field",
16
+ "name": "baseUrl",
17
+ "type": {
18
+ "text": "string"
19
+ },
20
+ "privacy": "private",
21
+ "readonly": true,
22
+ "default": "'https://localhost:5085'",
23
+ "attribute": "base-url"
24
+ },
25
+ {
26
+ "kind": "field",
27
+ "name": "profileId",
28
+ "type": {
29
+ "text": "string"
30
+ },
31
+ "privacy": "private",
32
+ "readonly": true,
33
+ "default": "'default'",
34
+ "attribute": "profile-id"
35
+ },
36
+ {
37
+ "kind": "field",
38
+ "name": "vismaAccessToken",
39
+ "type": {
40
+ "text": "string | null"
41
+ },
42
+ "privacy": "private",
43
+ "readonly": true,
44
+ "default": "null",
45
+ "attribute": "visma-token"
46
+ },
47
+ {
48
+ "kind": "field",
49
+ "name": "unsubscribe",
50
+ "type": {
51
+ "text": "() => void | undefined"
52
+ },
53
+ "privacy": "private"
54
+ },
55
+ {
56
+ "kind": "field",
57
+ "name": "store",
58
+ "privacy": "private",
59
+ "default": "new ChatStore()"
60
+ },
61
+ {
62
+ "kind": "field",
63
+ "name": "state",
64
+ "type": {
65
+ "text": "ChatState | null"
66
+ },
67
+ "privacy": "private",
68
+ "default": "null"
69
+ },
70
+ {
71
+ "kind": "field",
72
+ "name": "auth",
73
+ "type": {
74
+ "text": "AuthStrategy | null"
75
+ },
76
+ "privacy": "private",
77
+ "default": "null"
78
+ },
79
+ {
80
+ "kind": "field",
81
+ "name": "chatService",
82
+ "type": {
83
+ "text": "ChatService | null"
84
+ },
85
+ "privacy": "private",
86
+ "default": "null"
87
+ },
88
+ {
89
+ "kind": "field",
90
+ "name": "humanSupportService",
91
+ "type": {
92
+ "text": "HumanSupportService | null"
93
+ },
94
+ "privacy": "private",
95
+ "default": "null"
96
+ },
97
+ {
98
+ "kind": "field",
99
+ "name": "handoffController",
100
+ "type": {
101
+ "text": "HandoffController | null"
102
+ },
103
+ "privacy": "private",
104
+ "default": "null"
105
+ },
106
+ {
107
+ "kind": "field",
108
+ "name": "streamController",
109
+ "type": {
110
+ "text": "StreamController | null"
111
+ },
112
+ "privacy": "private",
113
+ "default": "null"
114
+ },
115
+ {
116
+ "kind": "field",
117
+ "name": "currentStreamAbort",
118
+ "type": {
119
+ "text": "AbortController | undefined"
120
+ },
121
+ "privacy": "private"
122
+ },
123
+ {
124
+ "kind": "method",
125
+ "name": "init",
126
+ "privacy": "private"
127
+ },
128
+ {
129
+ "kind": "method",
130
+ "name": "onSendMessage",
131
+ "privacy": "private",
132
+ "parameters": [
133
+ {
134
+ "name": "e",
135
+ "type": {
136
+ "text": "SendMessageEvent"
137
+ }
138
+ }
139
+ ]
140
+ },
141
+ {
142
+ "kind": "method",
143
+ "name": "onApproveToolCall",
144
+ "privacy": "private",
145
+ "parameters": [
146
+ {
147
+ "name": "e",
148
+ "type": {
149
+ "text": "ApproveToolCallEvent"
150
+ }
151
+ }
152
+ ]
153
+ },
154
+ {
155
+ "kind": "method",
156
+ "name": "onDeclineToolCall",
157
+ "privacy": "private",
158
+ "parameters": [
159
+ {
160
+ "name": "e",
161
+ "type": {
162
+ "text": "DeclineToolCallEvent"
163
+ }
164
+ }
165
+ ]
166
+ },
167
+ {
168
+ "kind": "method",
169
+ "name": "onSubmitFeedback",
170
+ "privacy": "private",
171
+ "parameters": [
172
+ {
173
+ "name": "e",
174
+ "type": {
175
+ "text": "SubmitFeedbackEvent"
176
+ }
177
+ }
178
+ ]
179
+ },
180
+ {
181
+ "kind": "method",
182
+ "name": "onToggleFeedbackForm",
183
+ "privacy": "private",
184
+ "parameters": [
185
+ {
186
+ "name": "e",
187
+ "type": {
188
+ "text": "ToggleFeedbackFormEvent"
189
+ }
190
+ }
191
+ ]
192
+ },
193
+ {
194
+ "kind": "method",
195
+ "name": "onClearConversation",
196
+ "privacy": "private"
197
+ },
198
+ {
199
+ "kind": "method",
200
+ "name": "onClearError",
201
+ "privacy": "private"
202
+ }
203
+ ],
204
+ "attributes": [
205
+ {
206
+ "name": "base-url",
207
+ "type": {
208
+ "text": "string"
209
+ },
210
+ "readonly": true,
211
+ "default": "'https://localhost:5085'",
212
+ "fieldName": "baseUrl"
213
+ },
214
+ {
215
+ "name": "profile-id",
216
+ "type": {
217
+ "text": "string"
218
+ },
219
+ "readonly": true,
220
+ "default": "'default'",
221
+ "fieldName": "profileId"
222
+ },
223
+ {
224
+ "name": "visma-token",
225
+ "type": {
226
+ "text": "string | null"
227
+ },
228
+ "readonly": true,
229
+ "default": "null",
230
+ "fieldName": "vismaAccessToken"
231
+ }
232
+ ],
233
+ "superclass": {
234
+ "name": "LitElement",
235
+ "package": "lit"
236
+ },
237
+ "tagName": "vsn-aiasst-chat",
238
+ "customElement": true
239
+ }
240
+ ],
241
+ "exports": [
242
+ {
243
+ "kind": "js",
244
+ "name": "ChatApp",
245
+ "declaration": {
246
+ "name": "ChatApp",
247
+ "module": "src/app/chat-app.ts"
248
+ }
249
+ },
250
+ {
251
+ "kind": "custom-element-definition",
252
+ "name": "vsn-aiasst-chat",
253
+ "declaration": {
254
+ "name": "ChatApp",
255
+ "module": "src/app/chat-app.ts"
256
+ }
257
+ }
258
+ ]
259
+ }
260
+ ]
261
+ }
@@ -1,4 +1,4 @@
1
- import { s as e } from "./index-BbK7JUbo.js";
1
+ import { s as e } from "./index-CEIcDKQq.js";
2
2
  const t = {
3
3
  "assistant-message-approve": "Ja",
4
4
  "assistant-message-citations-length": e`Brugte ${0} kilder`,
@@ -42,4 +42,4 @@ const t = {
42
42
  export {
43
43
  t as templates
44
44
  };
45
- //# sourceMappingURL=da-CS17x1S1.js.map
45
+ //# sourceMappingURL=da-CIz_JTpK.js.map