@visma-swno/gaia-chat-ui 2.1.3 → 4.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.
Files changed (212) hide show
  1. package/CHANGELOG.md +47 -0
  2. package/README.md +27 -5
  3. package/dist/app/app.d.ts +41 -0
  4. package/dist/app/app.styles.d.ts +2 -0
  5. package/dist/{src/app → app}/controllers/error-controller.d.ts +0 -1
  6. package/dist/{src/app → app}/localization.d.ts +1 -2
  7. package/dist/auth/auth-errors.d.ts +17 -0
  8. package/dist/auth/auth-provider.d.ts +10 -0
  9. package/dist/auth/strategies/base-strategy.d.ts +21 -0
  10. package/dist/auth/strategies/null-auth-strategy.d.ts +8 -0
  11. package/dist/auth/strategies/visitor-token-strategy.d.ts +9 -0
  12. package/dist/auth/strategies/visma-token-strategy.d.ts +9 -0
  13. package/dist/auth/strategy-factory.d.ts +13 -0
  14. package/dist/auth/token-cache.d.ts +17 -0
  15. package/dist/auth/token-parser.d.ts +6 -0
  16. package/dist/auth/types.d.ts +17 -0
  17. package/dist/components/app-header/app-header.d.ts +25 -0
  18. package/dist/components/app-header/app-header.styles.d.ts +2 -0
  19. package/dist/components/avatar/avatar.d.ts +17 -0
  20. package/dist/components/avatar/avatar.styles.d.ts +2 -0
  21. package/dist/components/button/button.d.ts +16 -0
  22. package/dist/components/button/button.styles.d.ts +2 -0
  23. package/dist/components/conversation/conversation.d.ts +39 -0
  24. package/dist/components/conversation/conversation.styles.d.ts +2 -0
  25. package/dist/components/conversation/message-renderers.d.ts +39 -0
  26. package/dist/components/conversation/scroll-controller.d.ts +47 -0
  27. package/dist/components/disclaimer/disclaimer.d.ts +10 -0
  28. package/dist/components/disclaimer/disclaimer.styles.d.ts +2 -0
  29. package/dist/components/error-notification/error-notification.d.ts +16 -0
  30. package/dist/components/error-notification/error-notification.styles.d.ts +2 -0
  31. package/dist/components/feedback/feedback.d.ts +26 -0
  32. package/dist/components/feedback/feedback.styles.d.ts +2 -0
  33. package/dist/components/icon/icon-library.d.ts +40 -0
  34. package/dist/components/icon/icon.d.ts +19 -0
  35. package/dist/components/icon/icon.styles.d.ts +2 -0
  36. package/dist/components/markdown-content/markdown-content.d.ts +11 -0
  37. package/dist/components/markdown-content/markdown-content.styles.d.ts +2 -0
  38. package/dist/components/message/message.d.ts +12 -0
  39. package/dist/components/message/message.styles.d.ts +2 -0
  40. package/dist/components/message-composer/message-composer.d.ts +52 -0
  41. package/dist/components/message-composer/message-composer.styles.d.ts +2 -0
  42. package/dist/components/message-composer/resize-controller.d.ts +11 -0
  43. package/dist/components/popover/popover.d.ts +45 -0
  44. package/dist/components/popover/popover.styles.d.ts +2 -0
  45. package/dist/components/shared/base-element.d.ts +6 -0
  46. package/dist/components/shared/watch.d.ts +11 -0
  47. package/dist/components/source-list/source-list.d.ts +15 -0
  48. package/dist/components/source-list/source-list.styles.d.ts +2 -0
  49. package/dist/components/spinner/spinner.d.ts +10 -0
  50. package/dist/components/spinner/spinner.styles.d.ts +2 -0
  51. package/dist/components/typing-indicator/typing-indicator.d.ts +10 -0
  52. package/dist/components/typing-indicator/typing-indicator.styles.d.ts +2 -0
  53. package/dist/components/welcome-message/welcome-message.d.ts +15 -0
  54. package/dist/components/welcome-message/welcome-message.styles.d.ts +2 -0
  55. package/dist/core/context/app-context.d.ts +49 -0
  56. package/dist/{src/core → core}/effects/bootstrap-effect.d.ts +5 -2
  57. package/dist/{src/core → core}/effects/conversation-effect.d.ts +5 -2
  58. package/dist/{src/core → core}/effects/feedback-effect.d.ts +5 -3
  59. package/dist/{src/core → core}/effects/stream-effect.d.ts +9 -3
  60. package/dist/{src/core → core}/effects/stream-event-router.d.ts +0 -1
  61. package/dist/core/effects/support-effect.d.ts +33 -0
  62. package/dist/{src/core → core}/effects/task-runner.d.ts +0 -1
  63. package/dist/{src/core → core}/errors/app-error.d.ts +0 -1
  64. package/dist/{src/core → core}/events/public/app.d.ts +0 -21
  65. package/dist/{src/core → core}/events/transport/sse.d.ts +0 -1
  66. package/dist/{src/core → core}/events/transport/ws.d.ts +0 -1
  67. package/dist/{src/core → core}/state/index.d.ts +0 -1
  68. package/dist/{src/core → core}/state/root-reducer.d.ts +0 -1
  69. package/dist/{src/core → core}/state/slices/config-slice.d.ts +0 -1
  70. package/dist/{src/core → core}/state/slices/messages-slice.d.ts +0 -1
  71. package/dist/{src/core → core}/state/slices/session-slice.d.ts +0 -1
  72. package/dist/{src/core → core}/state/slices/ui-slice.d.ts +0 -1
  73. package/dist/{src/core → core}/state/store.d.ts +0 -1
  74. package/dist/core/types/host-context.d.ts +49 -0
  75. package/dist/{src/core → core}/types.d.ts +0 -1
  76. package/dist/{src/core → core}/utils/message-factory.d.ts +0 -1
  77. package/dist/{da-CIz_JTpK.js → da-BhU73DwX.js} +10 -8
  78. package/dist/fi-CWA_79BI.js +47 -0
  79. package/dist/{src/generated → generated}/locale-codes.d.ts +2 -3
  80. package/dist/{src/generated → generated}/locales/da.d.ts +6 -4
  81. package/dist/generated/locales/fi.d.ts +43 -0
  82. package/dist/{src/generated → generated}/locales/nb.d.ts +6 -4
  83. package/dist/generated/locales/nl.d.ts +43 -0
  84. package/dist/{src/generated → generated}/locales/sv.d.ts +6 -4
  85. package/dist/index-DCCkNOcP.js +7847 -0
  86. package/dist/index.d.ts +3 -2
  87. package/dist/index.es.js +1 -2
  88. package/dist/index.umd.js +500 -570
  89. package/dist/infra/http/api-client.d.ts +13 -0
  90. package/dist/{src/infra → infra}/http/api-error.d.ts +0 -1
  91. package/dist/infra/http/auth-header-strategy.d.ts +14 -0
  92. package/dist/{src/infra → infra}/http/guards.d.ts +0 -1
  93. package/dist/{src/infra → infra}/signalr/signalr-error.d.ts +0 -1
  94. package/dist/{src/infra → infra}/sse/sse.d.ts +0 -1
  95. package/dist/{src/infra → infra}/sse/stream-error.d.ts +0 -1
  96. package/dist/{src/infra → infra}/storage/bootstrap-config-storage.d.ts +0 -1
  97. package/dist/{src/infra → infra}/storage/conversation-id-storage.d.ts +0 -1
  98. package/dist/{src/infra → infra}/storage/types.d.ts +0 -1
  99. package/dist/{src/infra → infra}/storage/visitor-token-storage.d.ts +0 -1
  100. package/dist/{nb-BRpEPPS7.js → nb-BWt8rKAf.js} +10 -8
  101. package/dist/nl-dkWq4g54.js +47 -0
  102. package/dist/{src/services → services}/bootstrap-service.d.ts +2 -2
  103. package/dist/{src/services → services}/chat-service.d.ts +2 -1
  104. package/dist/{src/services → services}/feedback-service.d.ts +0 -1
  105. package/dist/services/support-service.d.ts +7 -0
  106. package/dist/styles/host.styles.d.ts +2 -0
  107. package/dist/{sv-DMfrf_18.js → sv-Dyhy3RXT.js} +10 -8
  108. package/package.json +43 -20
  109. package/custom-elements.json +0 -261
  110. package/dist/da-CIz_JTpK.js.map +0 -1
  111. package/dist/index-CEIcDKQq.js +0 -6286
  112. package/dist/index-CEIcDKQq.js.map +0 -1
  113. package/dist/index.es.js.map +0 -1
  114. package/dist/index.umd.js.map +0 -1
  115. package/dist/nb-BRpEPPS7.js.map +0 -1
  116. package/dist/package.json.d.ts +0 -89
  117. package/dist/src/app/app.d.ts +0 -52
  118. package/dist/src/app/app.d.ts.map +0 -1
  119. package/dist/src/app/controllers/error-controller.d.ts.map +0 -1
  120. package/dist/src/app/localization.d.ts.map +0 -1
  121. package/dist/src/app/middlewares/middleware.d.ts +0 -12
  122. package/dist/src/app/middlewares/middleware.d.ts.map +0 -1
  123. package/dist/src/auth/access-token-provider.d.ts +0 -27
  124. package/dist/src/auth/access-token-provider.d.ts.map +0 -1
  125. package/dist/src/auth/auth-errors.d.ts +0 -13
  126. package/dist/src/auth/auth-errors.d.ts.map +0 -1
  127. package/dist/src/auth/strategies/strategy.d.ts +0 -38
  128. package/dist/src/auth/strategies/strategy.d.ts.map +0 -1
  129. package/dist/src/auth/strategies/visitor-token-strategy.d.ts +0 -14
  130. package/dist/src/auth/strategies/visitor-token-strategy.d.ts.map +0 -1
  131. package/dist/src/auth/strategies/visma-token-strategy.d.ts +0 -10
  132. package/dist/src/auth/strategies/visma-token-strategy.d.ts.map +0 -1
  133. package/dist/src/auth/strategy-factory.d.ts +0 -10
  134. package/dist/src/auth/strategy-factory.d.ts.map +0 -1
  135. package/dist/src/components/base-tw-element.d.ts +0 -5
  136. package/dist/src/components/base-tw-element.d.ts.map +0 -1
  137. package/dist/src/components/composer.d.ts +0 -21
  138. package/dist/src/components/composer.d.ts.map +0 -1
  139. package/dist/src/components/error-message.d.ts +0 -9
  140. package/dist/src/components/error-message.d.ts.map +0 -1
  141. package/dist/src/components/feedback-form.d.ts +0 -14
  142. package/dist/src/components/feedback-form.d.ts.map +0 -1
  143. package/dist/src/components/menu.d.ts +0 -11
  144. package/dist/src/components/menu.d.ts.map +0 -1
  145. package/dist/src/components/message/assistant.d.ts +0 -14
  146. package/dist/src/components/message/assistant.d.ts.map +0 -1
  147. package/dist/src/components/message/base.d.ts +0 -14
  148. package/dist/src/components/message/base.d.ts.map +0 -1
  149. package/dist/src/components/message/index.d.ts +0 -5
  150. package/dist/src/components/message/index.d.ts.map +0 -1
  151. package/dist/src/components/message/operator.d.ts +0 -7
  152. package/dist/src/components/message/operator.d.ts.map +0 -1
  153. package/dist/src/components/message/system.d.ts +0 -11
  154. package/dist/src/components/message/system.d.ts.map +0 -1
  155. package/dist/src/components/message/user.d.ts +0 -7
  156. package/dist/src/components/message/user.d.ts.map +0 -1
  157. package/dist/src/components/message-list.d.ts +0 -25
  158. package/dist/src/components/message-list.d.ts.map +0 -1
  159. package/dist/src/components/shared/markdown.d.ts +0 -2
  160. package/dist/src/components/shared/markdown.d.ts.map +0 -1
  161. package/dist/src/components/thinking-indicator.d.ts +0 -5
  162. package/dist/src/components/thinking-indicator.d.ts.map +0 -1
  163. package/dist/src/components/welcome-message.d.ts +0 -11
  164. package/dist/src/components/welcome-message.d.ts.map +0 -1
  165. package/dist/src/core/effects/bootstrap-effect.d.ts.map +0 -1
  166. package/dist/src/core/effects/conversation-effect.d.ts.map +0 -1
  167. package/dist/src/core/effects/feedback-effect.d.ts.map +0 -1
  168. package/dist/src/core/effects/stream-effect.d.ts.map +0 -1
  169. package/dist/src/core/effects/stream-event-router.d.ts.map +0 -1
  170. package/dist/src/core/effects/support-effect.d.ts +0 -25
  171. package/dist/src/core/effects/support-effect.d.ts.map +0 -1
  172. package/dist/src/core/effects/task-runner.d.ts.map +0 -1
  173. package/dist/src/core/errors/app-error.d.ts.map +0 -1
  174. package/dist/src/core/events/internal/commands.d.ts +0 -48
  175. package/dist/src/core/events/internal/commands.d.ts.map +0 -1
  176. package/dist/src/core/events/internal/index.d.ts +0 -3
  177. package/dist/src/core/events/internal/index.d.ts.map +0 -1
  178. package/dist/src/core/events/internal/utils.d.ts +0 -17
  179. package/dist/src/core/events/internal/utils.d.ts.map +0 -1
  180. package/dist/src/core/events/public/app.d.ts.map +0 -1
  181. package/dist/src/core/events/transport/sse.d.ts.map +0 -1
  182. package/dist/src/core/events/transport/ws.d.ts.map +0 -1
  183. package/dist/src/core/state/index.d.ts.map +0 -1
  184. package/dist/src/core/state/root-reducer.d.ts.map +0 -1
  185. package/dist/src/core/state/slices/config-slice.d.ts.map +0 -1
  186. package/dist/src/core/state/slices/messages-slice.d.ts.map +0 -1
  187. package/dist/src/core/state/slices/session-slice.d.ts.map +0 -1
  188. package/dist/src/core/state/slices/ui-slice.d.ts.map +0 -1
  189. package/dist/src/core/state/store.d.ts.map +0 -1
  190. package/dist/src/core/types.d.ts.map +0 -1
  191. package/dist/src/core/utils/message-factory.d.ts.map +0 -1
  192. package/dist/src/generated/locale-codes.d.ts.map +0 -1
  193. package/dist/src/generated/locales/da.d.ts.map +0 -1
  194. package/dist/src/generated/locales/nb.d.ts.map +0 -1
  195. package/dist/src/generated/locales/sv.d.ts.map +0 -1
  196. package/dist/src/index.d.ts +0 -3
  197. package/dist/src/index.d.ts.map +0 -1
  198. package/dist/src/infra/http/api-client.d.ts +0 -16
  199. package/dist/src/infra/http/api-client.d.ts.map +0 -1
  200. package/dist/src/infra/http/api-error.d.ts.map +0 -1
  201. package/dist/src/infra/http/guards.d.ts.map +0 -1
  202. package/dist/src/infra/signalr/signalr-error.d.ts.map +0 -1
  203. package/dist/src/infra/sse/sse.d.ts.map +0 -1
  204. package/dist/src/infra/sse/stream-error.d.ts.map +0 -1
  205. package/dist/src/infra/storage/bootstrap-config-storage.d.ts.map +0 -1
  206. package/dist/src/infra/storage/conversation-id-storage.d.ts.map +0 -1
  207. package/dist/src/infra/storage/types.d.ts.map +0 -1
  208. package/dist/src/infra/storage/visitor-token-storage.d.ts.map +0 -1
  209. package/dist/src/services/bootstrap-service.d.ts.map +0 -1
  210. package/dist/src/services/chat-service.d.ts.map +0 -1
  211. package/dist/src/services/feedback-service.d.ts.map +0 -1
  212. package/dist/sv-DMfrf_18.js.map +0 -1
@@ -0,0 +1,40 @@
1
+ export declare const icons: {
2
+ readonly angry: "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\" stroke-width=\"1.75\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><circle cx=\"12\" cy=\"12\" r=\"10\"/><path d=\"M16 16s-1.5-2-4-2-4 2-4 2\"/><path d=\"M7.5 8 10 9\"/><path d=\"m14 9 2.5-1\"/><path d=\"M9 10h.01\"/><path d=\"M15 10h.01\"/></svg>";
3
+ readonly 'arrow-up': "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><path d=\"m5 12 7-7 7 7\"/><path d=\"M12 19V5\"/></svg>";
4
+ readonly 'bell-ring': "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><path d=\"M10.268 21a2 2 0 0 0 3.464 0\"/><path d=\"M22 8c0-2.3-.8-4.3-2-6\"/><path d=\"M3.262 15.326A1 1 0 0 0 4 17h16a1 1 0 0 0 .74-1.673C19.41 13.956 18 12.499 18 8A6 6 0 0 0 6 8c0 4.499-1.411 5.956-2.738 7.326\"/><path d=\"M4 2C2.8 3.7 2 5.7 2 8\"/></svg>";
5
+ readonly check: "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><path d=\"M20 6 9 17l-5-5\"/></svg>";
6
+ readonly 'chevron-down': "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><path d=\"m6 9 6 6 6-6\"/></svg>";
7
+ readonly 'chevron-right': "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><path d=\"m9 18 6-6-6-6\"/></svg>";
8
+ readonly 'circle-alert': "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><circle cx=\"12\" cy=\"12\" r=\"10\"/><line x1=\"12\" x2=\"12\" y1=\"8\" y2=\"12\"/><line x1=\"12\" x2=\"12.01\" y1=\"16\" y2=\"16\"/></svg>";
9
+ readonly 'circle-check': "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><circle cx=\"12\" cy=\"12\" r=\"10\"/><path d=\"m9 12 2 2 4-4\"/></svg>";
10
+ readonly 'circle-x': "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><circle cx=\"12\" cy=\"12\" r=\"10\"/><path d=\"m15 9-6 6\"/><path d=\"m9 9 6 6\"/></svg>";
11
+ readonly copy: "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><rect width=\"14\" height=\"14\" x=\"8\" y=\"8\" rx=\"2\" ry=\"2\"/><path d=\"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2\"/></svg>";
12
+ readonly file: "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><path d=\"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z\"/><path d=\"M14 2v4a2 2 0 0 0 2 2h4\"/></svg>";
13
+ readonly frown: "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.75\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><circle cx=\"12\" cy=\"12\" r=\"10\"/><path d=\"M16 16s-1.5-2-4-2-4 2-4 2\"/><line x1=\"9\" x2=\"9.01\" y1=\"9\" y2=\"9\"/><line x1=\"15\" x2=\"15.01\" y1=\"9\" y2=\"9\"/></svg>";
14
+ readonly globe: "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><circle cx=\"12\" cy=\"12\" r=\"10\"/><path d=\"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20\"/><path d=\"M2 12h20\"/></svg>";
15
+ readonly headset: "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><path d=\"M3 11h3a2 2 0 0 1 2 2v3a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-5Zm0 0a9 9 0 1 1 18 0m0 0v5a2 2 0 0 1-2 2h-1a2 2 0 0 1-2-2v-3a2 2 0 0 1 2-2h3Z\"/><path d=\"M21 16v2a4 4 0 0 1-4 4h-5\"/></svg>";
16
+ readonly info: "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><circle cx=\"12\" cy=\"12\" r=\"10\"/><path d=\"M12 16v-4\"/><path d=\"M12 8h.01\"/></svg>";
17
+ readonly laugh: "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\" stroke-width=\"1.75\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><circle cx=\"12\" cy=\"12\" r=\"10\"/><path d=\"M18 13a6 6 0 0 1-6 5 6 6 0 0 1-6-5h12Z\"/><line x1=\"9\" x2=\"9.01\" y1=\"9\" y2=\"9\"/><line x1=\"15\" x2=\"15.01\" y1=\"9\" y2=\"9\"/></svg>";
18
+ readonly lightbulb: "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><path d=\"M15 14c.2-1 .7-1.7 1.5-2.5 1-.9 1.5-2.2 1.5-3.5A6 6 0 0 0 6 8c0 1 .2 2.2 1.5 3.5.7.7 1.3 1.5 1.5 2.5\"/><path d=\"M9 18h6\"/><path d=\"M10 22h4\"/></svg>";
19
+ readonly megaphone: "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><path d=\"M11 6a13 13 0 0 0 8.4-2.8A1 1 0 0 1 21 4v12a1 1 0 0 1-1.6.8A13 13 0 0 0 11 14H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2z\"/><path d=\"M6 14a12 12 0 0 0 2.4 7.2 2 2 0 0 0 3.2-2.4A8 8 0 0 1 10 14\"/><path d=\"M8 6v8\"/></svg>";
20
+ readonly meh: "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\" stroke-width=\"1.75\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><circle cx=\"12\" cy=\"12\" r=\"10\"/><line x1=\"8\" x2=\"16\" y1=\"15\" y2=\"15\"/><line x1=\"9\" x2=\"9.01\" y1=\"9\" y2=\"9\"/><line x1=\"15\" x2=\"15.01\" y1=\"9\" y2=\"9\"/></svg>";
21
+ readonly 'message-circle': "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><path d=\"M2.992 16.342a2 2 0 0 1 .094 1.167l-1.065 3.29a1 1 0 0 0 1.236 1.168l3.413-.998a2 2 0 0 1 1.099.092 10 10 0 1 0-4.777-4.719\"/></svg>";
22
+ readonly 'minimize-2': "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><path d=\"m14 10 7-7\"/><path d=\"M20 10h-6V4\"/><path d=\"m3 21 7-7\"/><path d=\"M4 14h6v6\"/></svg>";
23
+ readonly 'octagon-alert': "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><path d=\"M12 16h.01\"/><path d=\"M12 8v4\"/><path d=\"M15.312 2a2 2 0 0 1 1.414.586l4.688 4.688A2 2 0 0 1 22 8.688v6.624a2 2 0 0 1-.586 1.414l-4.688 4.688a2 2 0 0 1-1.414.586H8.688a2 2 0 0 1-1.414-.586l-4.688-4.688A2 2 0 0 1 2 15.312V8.688a2 2 0 0 1 .586-1.414l4.688-4.688A2 2 0 0 1 8.688 2z\"/></svg>";
24
+ readonly send: "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><path d=\"M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z\"/><path d=\"m21.854 2.147-10.94 10.939\"/></svg>";
25
+ readonly smile: "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\" stroke-width=\"1.75\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><circle cx=\"12\" cy=\"12\" r=\"10\"/><path d=\"M8 14s1.5 2 4 2 4-2 4-2\"/><line x1=\"9\" x2=\"9.01\" y1=\"9\" y2=\"9\"/><line x1=\"15\" x2=\"15.01\" y1=\"9\" y2=\"9\"/></svg>";
26
+ readonly sparkles: "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><path d=\"M11.017 2.814a1 1 0 0 1 1.966 0l1.051 5.558a2 2 0 0 0 1.594 1.594l5.558 1.051a1 1 0 0 1 0 1.966l-5.558 1.051a2 2 0 0 0-1.594 1.594l-1.051 5.558a1 1 0 0 1-1.966 0l-1.051-5.558a2 2 0 0 0-1.594-1.594l-5.558-1.051a1 1 0 0 1 0-1.966l5.558-1.051a2 2 0 0 0 1.594-1.594z\"/><path d=\"M20 2v4\"/><path d=\"M22 4h-4\"/><circle cx=\"4\" cy=\"20\" r=\"2\"/></svg>";
27
+ readonly 'square-pen': "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><path d=\"M12 3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7\"/><path d=\"M18.375 2.625a1 1 0 0 1 3 3l-9.013 9.014a2 2 0 0 1-.853.505l-2.873.84a.5.5 0 0 1-.62-.62l.84-2.873a2 2 0 0 1 .506-.852z\"/></svg>";
28
+ readonly 'thumbs-down': "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><path d=\"M17 14V2\"/><path d=\"M9 18.12 10 14H4.17a2 2 0 0 1-1.92-2.56l2.33-8A2 2 0 0 1 6.5 2H20a2 2 0 0 1 2 2v8a2 2 0 0 1-2 2h-2.76a2 2 0 0 0-1.79 1.11L12 22a3.13 3.13 0 0 1-3-3.88Z\"/></svg>";
29
+ readonly 'thumbs-up': "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><path d=\"M7 10v12\"/><path d=\"M15 5.88 14 10h5.83a2 2 0 0 1 1.92 2.56l-2.33 8A2 2 0 0 1 17.5 22H4a2 2 0 0 1-2-2v-8a2 2 0 0 1 2-2h2.76a2 2 0 0 0 1.79-1.11L12 2a3.13 3.13 0 0 1 3 3.88Z\"/></svg>";
30
+ readonly 'triangle-alert': "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><path d=\"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3\"/><path d=\"M12 9v4\"/><path d=\"M12 17h.01\"/></svg>";
31
+ readonly 'user-round': "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><circle cx=\"12\" cy=\"8\" r=\"5\"/><path d=\"M20 21a8 8 0 0 0-16 0\"/></svg>";
32
+ readonly x: "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><path d=\"M18 6 6 18\"/><path d=\"m6 6 12 12\"/></svg>";
33
+ readonly 'learning-universe': "<svg version=\"1.1\" id=\"LOGO\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" x=\"0px\" y=\"0px\" viewBox=\"0 0 96 96\" style=\"enable-background:new 0 0 96 96;\" xml:space=\"preserve\"><style type=\"text/css\">.st0{fill:url(#SVGID_1_);}</style><g><linearGradient id=\"SVGID_1_\" gradientUnits=\"userSpaceOnUse\" x1=\"1.5469\" y1=\"23.618\" x2=\"95.0059\" y2=\"65.1887\" gradientTransform=\"matrix(1 0 0 -1 0 98)\"><stop offset=\"0.14\" style=\"stop-color:#003356\"/><stop offset=\"0.26\" style=\"stop-color:#092D54\"/><stop offset=\"0.47\" style=\"stop-color:#241E4F\"/><stop offset=\"0.74\" style=\"stop-color:#4E0648\"/><stop offset=\"0.8\" style=\"stop-color:#5A0047\"/><stop offset=\"0.87\" style=\"stop-color:#5C0148\"/><stop offset=\"0.9\" style=\"stop-color:#64044D\"/><stop offset=\"0.93\" style=\"stop-color:#720A56\"/><stop offset=\"0.96\" style=\"stop-color:#861362\"/><stop offset=\"0.98\" style=\"stop-color:#A01E71\"/><stop offset=\"1\" style=\"stop-color:#B6287F\"/></linearGradient><path class=\"st0\" d=\"M80.1,39.2c-0.7-11.3-10.9-16.4-19.8-15.8c-13.2,0.9-23.2,7.6-29.1,16.2c-10,16.7,7,13.3,5,6.4 c-0.7-2.6-0.4-4.3,1.3-6.8c3.4-4.1,7.1-6.8,12.8-9.1c7.4-2.6,14.5-1.9,19.5,3.6c5.8,7,2.9,21.1-9.3,33.4 C49.7,77.8,35.7,83.1,24.6,83.1c-5.1,0-11.8-0.6-16.8-5.5c-7.9-7.9-5.2-18.7-5-20.1c0.3-1-1.3-1.6-1.7,0.1 C-5,83,17.3,87.6,20.3,88.2c2.9,0.3,27.1,3.4,49.2-21.6C78.8,55.4,80.5,46,80.1,39.2z M44,72.5c11.4-4.6,18.7-12,22.8-20.3 c3.6-7.6,2-14.7-1.4-18c-5.1-5.1-14.4-2.9-16.9-0.4c-2.5,2.5-1.1,5.3,2,4.6c9-1.9,10.6,3,10.5,5.6c-0.3,7.1-6.8,14.8-13.2,18.9 C37.4,69.4,27,70,20.6,65.8c-6.7-4.5-7.4-13.5-2.9-22.6c3.7-7.6,12.5-18,25.4-25.3C51.9,12.9,59,10.3,68.5,9c1.3-0.4,1-1.6-0.3-1.4 c-10,1.6-18,4.4-25.4,8.5c-9.7,5.3-24.5,16.7-30.3,31c-3.2,8.1-2.9,15.1,0.3,20.2c5.4,8.8,20.2,9.5,31,5.1L44,72.5z M91,25.2 c-4.5-5.8-11.1-8.7-18.3-9.4c-8.1-0.8-16.9,1-24.5,4.2C22.8,31,20.1,49.3,20.1,49.3c-0.9,3.8-2.2,15.8,13.1,15.1 c7.8-0.3,15.5-4.5,20.3-11.3c2.3-4.2-2.6-6.8-6.8-2.3c-2.3,2.5-6.5,7-13.3,6.8c-9.5-0.2-11.2-10.3-1.9-21.6c0,0,11.4-14.5,31-16.7 c12.3-1.3,22.9,4.2,26.5,13.9c2.5,6.7,2.2,15-2.5,26.1c-3.3,8-8.3,14.8-15.6,21.3c-2,1.9,0,3.7,2,2C86.8,71.5,96,54.8,96,40.8 C96,36.6,95.1,31,91,25.2z\"/></g></svg>";
34
+ readonly vsn: "\n<svg id=\"LOGO\" xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 605 220\" style=\"background-color: #133445; border-radius: 4px; padding: 1px;\">\n <defs>\n <style>\n .cls-1 {\n fill: #0080a4;\n }\n\n .cls-2 {\n fill: #fff;\n }\n </style>\n </defs>\n <path class=\"cls-2\" d=\"M189.5,3.41c-1.34-1.23-2.83-1.85-4.47-1.85h-27.12c-2.88,0-5.08.77-6.63,2.31-1.54,1.54-2.62,3.03-3.24,4.47l-51.79,158.69-.05-.15-13.7,41.54c-1.44,4.36,1.81,8.84,6.39,8.84h24.3c3.28,0,5.85-.81,7.7-2.46,1.85-1.64,3.18-3.7,4.01-6.16L190.89,10.81c.41-1.03.62-1.95.62-2.77,0-1.85-.67-3.39-2-4.62ZM45.16,11.42c-.41-2.66-1.39-4.98-2.93-6.93-1.54-1.95-3.85-2.93-6.93-2.93H6.95c-1.64,0-2.98.57-4.01,1.7-1.03,1.13-1.54,2.52-1.54,4.16,0,1.44.31,2.77.92,4.01l19.73,51.15c.82,2.05,1.96,3.85,3.39,5.39,1.44,1.54,3.7,2.31,6.78,2.31h15.72c1.85,0,3.24-.62,4.16-1.86.92-1.23,1.28-2.77,1.08-4.62l-8.02-52.39Z\"/>\n <g>\n <g>\n <path class=\"cls-2\" d=\"M547.39,215.55c-1.34,1.23-2.83,1.85-4.47,1.85h-27.12c-2.88,0-5.08-.76-6.63-2.3-1.54-1.54-2.62-3.03-3.24-4.47l-51.81-158.67-.05.15-13.71-41.53c-1.44-4.36,1.81-8.84,6.39-8.85h24.3c3.28,0,5.85.81,7.7,2.46,1.85,1.64,3.18,3.7,4.01,6.16l66,197.8c.41,1.03.62,1.95.62,2.77,0,1.85-.67,3.39-2,4.62Z\"/>\n <path class=\"cls-1\" d=\"M572.54,70.43c3.08,0,5.34-.77,6.78-2.31,1.43-1.54,2.57-3.34,3.39-5.39l19.72-51.15c.62-1.23.92-2.57.92-4.01,0-1.64-.51-3.03-1.54-4.16-1.03-1.13-2.36-1.7-4.01-1.7h-28.35c-3.08,0-5.39.98-6.93,2.93-1.54,1.96-2.52,4.27-2.93,6.93l-8.01,52.38c-.21,1.85.15,3.39,1.08,4.62.92,1.23,2.31,1.85,4.16,1.85h15.71Z\"/>\n </g>\n <path class=\"cls-2\" d=\"M437.52,210.12c0,2.23-.66,4-1.98,5.32-1.31,1.32-3.09,1.97-5.32,1.97h-21.87c-2.02,0-3.75-.65-5.16-1.97-1.42-1.31-2.13-3.09-2.13-5.32v-27.65c0-2.23.71-4.05,2.13-5.47,1.42-1.42,3.14-2.13,5.16-2.13h21.87c2.23,0,4,.71,5.32,2.13,1.32,1.42,1.98,3.24,1.98,5.47v27.65Z\"/>\n </g>\n <g>\n <path class=\"cls-2\" d=\"M294.4,1.62c-7.18,1.33-13.8,3.31-19.81,5.99-12.01,5.34-21.24,12.62-27.71,21.85-6.47,9.23-9.7,19.81-9.7,31.7,0,12.31,2.61,22.47,7.84,30.48,5.23,8,13.03,14.62,23.39,19.86,7.29,3.68,15.86,6.98,25.65,9.9,2.17.65,4.36-.95,4.36-3.22v-32.94c0-1.31-.77-2.48-1.95-3.05-4.72-2.29-8.33-4.83-10.82-7.63-3.39-3.8-5.08-8.57-5.08-14.32,0-8.62,3.39-14.98,10.16-19.08,1.73-1.05,3.6-1.95,5.61-2.72,1.27-.49,2.08-1.75,2.08-3.11V4.93c0-2.12-1.94-3.69-4.03-3.31ZM262.75,156.31c-.82-2.05-1.95-3.85-3.39-5.39-1.44-1.54-3.69-2.31-6.77-2.31h-15.7c-1.85,0-3.23.62-4.16,1.85-.92,1.23-1.28,2.77-1.08,4.61l8.01,52.33c.41,2.66,1.38,4.97,2.93,6.92,1.54,1.95,3.85,2.92,6.93,2.92h28.32c1.64,0,2.97-.57,4-1.7,1.03-1.13,1.54-2.51,1.54-4.15,0-1.44-.31-2.77-.92-4l-19.71-51.09Z\"/>\n <path class=\"cls-2\" d=\"M371.13,1.56c2.23,0,4,.66,5.32,1.98,1.32,1.31,1.97,3.09,1.97,5.32v21.87c0,2.02-.65,3.75-1.97,5.16-1.31,1.42-3.09,2.13-5.32,2.13h-27.65c-2.23,0-4.05-.71-5.47-2.13-1.42-1.42-2.13-3.14-2.13-5.16V8.85c0-2.23.71-4,2.13-5.32,1.42-1.32,3.24-1.98,5.47-1.98h27.65Z\"/>\n </g>\n</svg>";
35
+ };
36
+ export type IconName = keyof typeof icons;
37
+ declare const library: {
38
+ resolver: (name: IconName) => string | null;
39
+ };
40
+ export default library;
@@ -0,0 +1,19 @@
1
+ import { BaseElement } from '../shared/base-element';
2
+ import { IconName } from './icon-library';
3
+ export default class GaiaIcon extends BaseElement {
4
+ static styles: import('lit').CSSResult[];
5
+ private svgTemplate;
6
+ name: IconName | null;
7
+ label: string;
8
+ size: 'sm' | 'base' | 'lg' | 'xl' | '2xl' | '3xl';
9
+ private resolveIcon;
10
+ private createSvgNode;
11
+ handleLabelChange(): void;
12
+ setIcon(): Promise<void>;
13
+ render(): import('lit-html').TemplateResult<1> | SVGSVGElement;
14
+ }
15
+ declare global {
16
+ interface HTMLElementTagNameMap {
17
+ 'gaia-icon': GaiaIcon;
18
+ }
19
+ }
@@ -0,0 +1,2 @@
1
+ declare const _default: import('lit').CSSResult;
2
+ export default _default;
@@ -0,0 +1,11 @@
1
+ import { BaseElement } from '../shared/base-element';
2
+ export default class GaiaMarkdownContent extends BaseElement {
3
+ static styles: import('lit').CSSResult[];
4
+ value: string;
5
+ render(): import('lit-html').TemplateResult<1>;
6
+ }
7
+ declare global {
8
+ interface HTMLElementTagNameMap {
9
+ 'gaia-markdown-content': GaiaMarkdownContent;
10
+ }
11
+ }
@@ -0,0 +1,2 @@
1
+ declare const _default: import('lit').CSSResult;
2
+ export default _default;
@@ -0,0 +1,12 @@
1
+ import { UiMessage } from '../../core/types';
2
+ import { BaseElement } from '../shared/base-element';
3
+ export default class GaiaMessage extends BaseElement {
4
+ static styles: import('lit').CSSResult[];
5
+ from: UiMessage['role'];
6
+ render(): import('lit-html').TemplateResult<1>;
7
+ }
8
+ declare global {
9
+ interface HTMLElementTagNameMap {
10
+ 'gaia-message': GaiaMessage;
11
+ }
12
+ }
@@ -0,0 +1,2 @@
1
+ declare const _default: import('lit').CSSResult;
2
+ export default _default;
@@ -0,0 +1,52 @@
1
+ import { HostContextProvider } from '../../core/types/host-context';
2
+ import { BaseElement } from '../shared/base-element';
3
+ export default class GaiaMessageComposer extends BaseElement {
4
+ static styles: import('lit').CSSResult[];
5
+ private debounceTimer?;
6
+ private resizeController;
7
+ private store;
8
+ private streamEffect;
9
+ private supportEffect;
10
+ textareaWrap: HTMLDivElement;
11
+ textarea: HTMLTextAreaElement;
12
+ autosize: HTMLDivElement;
13
+ private value;
14
+ private invalid;
15
+ private maxInputLength;
16
+ disabled: boolean;
17
+ loading: boolean;
18
+ private isConnectedToSupport;
19
+ profileId: string;
20
+ /**
21
+ * @deprecated Use hostContextProvider instead
22
+ */
23
+ supportPartnerId?: string;
24
+ hostContextProvider?: HostContextProvider;
25
+ rows: number;
26
+ maxRows: number;
27
+ connectedCallback(): void;
28
+ disconnectedCallback(): void;
29
+ private unsubscribe?;
30
+ private get notAllowedToSendMessage();
31
+ private validateInput;
32
+ private handleChange;
33
+ private handleInput;
34
+ private closeFeedbackIfOpen;
35
+ private handleSendMessage;
36
+ private handleKeyDown;
37
+ private maybeEmitTyping;
38
+ handleRowsChange(): void;
39
+ handleValueChange(): Promise<void>;
40
+ /** Sets focus on the textarea. */
41
+ focus(options?: FocusOptions): void;
42
+ /** Removes focus from the textarea. */
43
+ blur(): void;
44
+ /** Selects all the text in the textarea. */
45
+ select(): void;
46
+ render(): import('lit-html').TemplateResult<1>;
47
+ }
48
+ declare global {
49
+ interface HTMLElementTagNameMap {
50
+ 'gaia-message-composer': GaiaMessageComposer;
51
+ }
52
+ }
@@ -0,0 +1,2 @@
1
+ declare const _default: import('lit').CSSResult;
2
+ export default _default;
@@ -0,0 +1,11 @@
1
+ import { ReactiveController } from 'lit';
2
+ import { default as GaiaMessageComposer } from './message-composer';
3
+ export declare class ResizeController implements ReactiveController {
4
+ private host;
5
+ private resizeObserver;
6
+ constructor(host: GaiaMessageComposer);
7
+ hostConnected(): void;
8
+ hostDisconnected(): void;
9
+ private getTextareaBounds;
10
+ setTextareaDimensions(): void;
11
+ }
@@ -0,0 +1,45 @@
1
+ import { Placement } from '@floating-ui/dom';
2
+ import { BaseElement } from '../shared/base-element';
3
+ export default class GaiaPopover extends BaseElement {
4
+ static styles: import('lit').CSSResult[];
5
+ triggerElement: HTMLElement;
6
+ popoverElement: HTMLElement;
7
+ arrowElement: HTMLElement;
8
+ slotElement: HTMLSlotElement;
9
+ private isVisible;
10
+ private popoverId;
11
+ private disabled;
12
+ content: string;
13
+ placement: Placement;
14
+ delay: number;
15
+ private showTimeout;
16
+ private hideTimeout;
17
+ private cleanup;
18
+ private triggerNode;
19
+ private mutationObserver;
20
+ firstUpdated(): void;
21
+ disconnectedCallback(): void;
22
+ private clearTimeouts;
23
+ private stopPositionUpdates;
24
+ private disconnectMutationObserver;
25
+ private checkTriggerDisabled;
26
+ private handleSlotChange;
27
+ private addTriggerListeners;
28
+ private removeTriggerListeners;
29
+ private handleMouseEnter;
30
+ private handleMouseLeave;
31
+ private handleFocus;
32
+ private handleBlur;
33
+ private scheduleShow;
34
+ private scheduleHide;
35
+ private show;
36
+ private hide;
37
+ private startPositionUpdates;
38
+ private updatePosition;
39
+ render(): import('lit-html').TemplateResult<1>;
40
+ }
41
+ declare global {
42
+ interface HTMLElementTagNameMap {
43
+ 'gaia-popover': GaiaPopover;
44
+ }
45
+ }
@@ -0,0 +1,2 @@
1
+ declare const _default: import('lit').CSSResult;
2
+ export default _default;
@@ -0,0 +1,6 @@
1
+ import { LitElement, CSSResultGroup } from 'lit';
2
+ export declare class BaseElement extends LitElement {
3
+ protected static _styles: CSSResultGroup[];
4
+ static set styles(styles: CSSResultGroup[]);
5
+ static get styles(): CSSResultGroup[];
6
+ }
@@ -0,0 +1,11 @@
1
+ import { LitElement } from 'lit';
2
+ type UpdateHandler = (prev?: unknown, next?: unknown) => void;
3
+ type NonUndefined<A> = A extends undefined ? never : A;
4
+ type UpdateHandlerFunctionKeys<T extends object> = {
5
+ [K in keyof T]-?: NonUndefined<T[K]> extends UpdateHandler ? K : never;
6
+ }[keyof T];
7
+ interface WatchOptions {
8
+ waitUntilFirstUpdate?: boolean;
9
+ }
10
+ export declare function watch(propertyName: string | string[], options?: WatchOptions): <ElementClass extends LitElement>(proto: ElementClass, decoratedFnName: UpdateHandlerFunctionKeys<ElementClass>) => void;
11
+ export {};
@@ -0,0 +1,15 @@
1
+ import { Citation } from '../../core/types';
2
+ import { BaseElement } from '../shared/base-element';
3
+ export default class GaiaSourceList extends BaseElement {
4
+ static styles: import('lit').CSSResult[];
5
+ open: boolean;
6
+ sources: Citation[];
7
+ private handleTriggerClick;
8
+ private resolveIcon;
9
+ render(): import('lit-html').TemplateResult<1>;
10
+ }
11
+ declare global {
12
+ interface HTMLElementTagNameMap {
13
+ 'gaia-source-list': GaiaSourceList;
14
+ }
15
+ }
@@ -0,0 +1,2 @@
1
+ declare const _default: import('lit').CSSResult;
2
+ export default _default;
@@ -0,0 +1,10 @@
1
+ import { BaseElement } from '../shared/base-element';
2
+ export default class GaiaSpinner extends BaseElement {
3
+ static styles: import('lit').CSSResult[];
4
+ render(): import('lit-html').TemplateResult<1>;
5
+ }
6
+ declare global {
7
+ interface HTMLElementTagNameMap {
8
+ 'gaia-spinner': GaiaSpinner;
9
+ }
10
+ }
@@ -0,0 +1,2 @@
1
+ declare const _default: import('lit').CSSResult;
2
+ export default _default;
@@ -0,0 +1,10 @@
1
+ import { BaseElement } from '../shared/base-element';
2
+ export default class GaiaTypingIndicator extends BaseElement {
3
+ static styles: import('lit').CSSResult[];
4
+ render(): import('lit-html').TemplateResult<1>;
5
+ }
6
+ declare global {
7
+ interface HTMLElementTagNameMap {
8
+ 'gaia-typing-indicator': GaiaTypingIndicator;
9
+ }
10
+ }
@@ -0,0 +1,2 @@
1
+ declare const _default: import('lit').CSSResult;
2
+ export default _default;
@@ -0,0 +1,15 @@
1
+ import { IconName } from '../icon/icon-library';
2
+ import { WelcomeMessage } from '../../services/bootstrap-service';
3
+ import { BaseElement } from '../shared/base-element';
4
+ export default class GaiaWelcomeMessage extends BaseElement {
5
+ static styles: import('lit').CSSResult[];
6
+ isInitialized: boolean;
7
+ welcomeMessage?: WelcomeMessage;
8
+ protected getIcon(icon: string): IconName;
9
+ render(): import('lit-html').TemplateResult<1>;
10
+ }
11
+ declare global {
12
+ interface HTMLElementTagNameMap {
13
+ 'gaia-welcome-message': GaiaWelcomeMessage;
14
+ }
15
+ }
@@ -0,0 +1,2 @@
1
+ declare const _default: import('lit').CSSResult;
2
+ export default _default;
@@ -0,0 +1,49 @@
1
+ import { AuthProvider } from '../../auth/auth-provider';
2
+ import { IBootstrapEffect } from '../effects/bootstrap-effect';
3
+ import { IConversationEffect } from '../effects/conversation-effect';
4
+ import { IFeedbackEffect } from '../effects/feedback-effect';
5
+ import { IStreamEffect } from '../effects/stream-effect';
6
+ import { ISupportEffect } from '../effects/support-effect';
7
+ import { AppStore } from '../state';
8
+ /**
9
+ * Context for the global app store
10
+ */
11
+ export declare const storeContext: {
12
+ __context__: AppStore;
13
+ };
14
+ /**
15
+ * Context for the bootstrap effect (handles app initialization)
16
+ */
17
+ export declare const bootstrapEffectContext: {
18
+ __context__: IBootstrapEffect;
19
+ };
20
+ /**
21
+ * Context for the stream effect (handles AI assistant communication)
22
+ */
23
+ export declare const streamEffectContext: {
24
+ __context__: IStreamEffect;
25
+ };
26
+ /**
27
+ * Context for the support effect (handles live operator communication)
28
+ */
29
+ export declare const supportEffectContext: {
30
+ __context__: ISupportEffect;
31
+ };
32
+ /**
33
+ * Context for the conversation effect (handles conversation history)
34
+ */
35
+ export declare const conversationEffectContext: {
36
+ __context__: IConversationEffect;
37
+ };
38
+ /**
39
+ * Context for the feedback effect (handles user feedback)
40
+ */
41
+ export declare const feedbackEffectContext: {
42
+ __context__: IFeedbackEffect;
43
+ };
44
+ /**
45
+ * Context for the auth provider
46
+ */
47
+ export declare const authProviderContext: {
48
+ __context__: AuthProvider;
49
+ };
@@ -1,10 +1,13 @@
1
1
  import { AppStore } from '../state';
2
2
  import { BootstrapService } from '../../services/bootstrap-service';
3
- export declare class BootstrapEffect {
3
+ export interface IBootstrapEffect {
4
+ initialize: () => Promise<void>;
5
+ clear: () => void;
6
+ }
7
+ export declare class BootstrapEffect implements IBootstrapEffect {
4
8
  private store;
5
9
  private svc;
6
10
  constructor(store: AppStore, svc: BootstrapService);
7
11
  initialize(): Promise<void>;
8
12
  clear(): Promise<void>;
9
13
  }
10
- //# sourceMappingURL=bootstrap-effect.d.ts.map
@@ -1,6 +1,10 @@
1
1
  import { AppStore } from '../state';
2
2
  import { ChatService } from '../../services/chat-service';
3
- export declare class ConversationEffect {
3
+ export interface IConversationEffect {
4
+ clear: () => void;
5
+ getHistory: () => Promise<void>;
6
+ }
7
+ export declare class ConversationEffect implements IConversationEffect {
4
8
  private store;
5
9
  private svc;
6
10
  private storage;
@@ -8,4 +12,3 @@ export declare class ConversationEffect {
8
12
  getHistory(): Promise<void>;
9
13
  clear(): void;
10
14
  }
11
- //# sourceMappingURL=conversation-effect.d.ts.map
@@ -1,10 +1,12 @@
1
1
  import { AppStore } from '../state';
2
- import { FeedbackService } from '../../services/feedback-service';
3
2
  import { ChatChannel } from '../types';
4
- export declare class FeedbackEffect {
3
+ import { FeedbackService } from '../../services/feedback-service';
4
+ export interface IFeedbackEffect {
5
+ submitFeedback: (target: ChatChannel, rating: number, comment: string | null) => Promise<void>;
6
+ }
7
+ export declare class FeedbackEffect implements IFeedbackEffect {
5
8
  private store;
6
9
  private svc;
7
10
  constructor(store: AppStore, svc: FeedbackService);
8
11
  submitFeedback(target: ChatChannel, rating: number, comment: string | null): Promise<void>;
9
12
  }
10
- //# sourceMappingURL=feedback-effect.d.ts.map
@@ -1,17 +1,23 @@
1
+ import { HostContext } from '../types/host-context';
1
2
  import { AppStore } from '../state';
2
3
  import { ChatService } from '../../services/chat-service';
3
- export declare class StreamEffect {
4
+ export interface IStreamEffect {
5
+ sendMessage: (message: string, profileId: string, partnerId?: string, hostContext?: HostContext | null) => Promise<void>;
6
+ approveToolCall: (turnId: string, messageId: string) => Promise<void>;
7
+ declineToolCall: (turnId: string, messageId: string) => Promise<void>;
8
+ abortCurrentTask: () => void;
9
+ }
10
+ export declare class StreamEffect implements IStreamEffect {
4
11
  private store;
5
12
  private svc;
6
13
  private tasks;
7
14
  private handlers;
8
15
  private storage;
9
16
  constructor(store: AppStore, svc: ChatService);
10
- sendMessage(message: string, profileId: string, partnerId?: string): Promise<void>;
17
+ sendMessage(message: string, profileId: string, partnerId?: string, hostContext?: HostContext | null): Promise<void>;
11
18
  approveToolCall(turnId: string, messageId: string): Promise<void>;
12
19
  declineToolCall(turnId: string, messageId: string): Promise<void>;
13
20
  abortCurrentTask(): void;
14
21
  private consume;
15
22
  private requireConversation;
16
23
  }
17
- //# sourceMappingURL=stream-effect.d.ts.map
@@ -7,4 +7,3 @@ export type SseEventHandlers = {
7
7
  [E in ChatSseEvent['event']]: (event: SpecificChatSseEvent<E>) => void;
8
8
  };
9
9
  export declare const makeSseHandlers: (s: AppStore) => Partial<SseEventHandlers>;
10
- //# sourceMappingURL=stream-event-router.d.ts.map
@@ -0,0 +1,33 @@
1
+ import { AuthProvider } from '../../auth/auth-provider';
2
+ import { AppStore } from '../state';
3
+ import { SupportService } from '../../services/support-service';
4
+ export interface ISupportEffect {
5
+ start: (baseUrl: string, conversationId: string) => Promise<void>;
6
+ stop: () => Promise<void>;
7
+ sendMessage: (message: string) => Promise<void>;
8
+ sendTyping: () => Promise<void>;
9
+ }
10
+ export declare class SupportEffect implements ISupportEffect {
11
+ private store;
12
+ private authProvider;
13
+ private supportService;
14
+ private connection?;
15
+ private conversationId?;
16
+ private baseUrl?;
17
+ private readonly typingTimeoutMs;
18
+ private readonly operatorMsgIdByOp;
19
+ private readonly typingTimeoutByOp;
20
+ constructor(store: AppStore, authProvider: AuthProvider, supportService: SupportService);
21
+ start(baseUrl: string, conversationId: string): Promise<void>;
22
+ stop(): Promise<void>;
23
+ sendMessage(message: string): Promise<void>;
24
+ sendTyping(): Promise<void>;
25
+ private resolveUrl;
26
+ private onError;
27
+ private clearTyping;
28
+ private scheduleTypingRemoval;
29
+ private onTyping;
30
+ private onText;
31
+ private onClose;
32
+ private onSupportEnded;
33
+ }
@@ -3,4 +3,3 @@ export declare class TaskRunner {
3
3
  run<T>(fn: (signal: AbortSignal) => Promise<T>): Promise<T>;
4
4
  cancel(): void;
5
5
  }
6
- //# sourceMappingURL=task-runner.d.ts.map
@@ -12,4 +12,3 @@ export type AppError = {
12
12
  cause?: unknown;
13
13
  };
14
14
  export declare function toAppError(err: unknown): AppError;
15
- //# sourceMappingURL=app-error.d.ts.map
@@ -29,23 +29,6 @@ export declare class FeedbackSubmittedEvent extends PublicEvent<{
29
29
  }> {
30
30
  constructor(rating: number, comment: string | null);
31
31
  }
32
- export declare class TokenUpdatedEvent extends PublicEvent<{
33
- expiresAt: number | null;
34
- token: string | null;
35
- }> {
36
- constructor(expiresAt: number | null, token: string | null);
37
- }
38
- export declare class TokenExpiringEvent extends PublicEvent<{
39
- expiresAt: number;
40
- remainingMs: number;
41
- }> {
42
- constructor(expiresAt: number, remainingMs: number);
43
- }
44
- export declare class TokenExpiredEvent extends PublicEvent<{
45
- expiredAt: number;
46
- }> {
47
- constructor(expiredAt: number);
48
- }
49
32
  export declare class CloseRequestedEvent extends PublicEvent<void> {
50
33
  constructor();
51
34
  }
@@ -56,10 +39,6 @@ declare global {
56
39
  'tool-call-approved': ToolCallApprovedEvent;
57
40
  'tool-call-declined': ToolCallDeclinedEvent;
58
41
  'feedback-submitted': FeedbackSubmittedEvent;
59
- 'token-updated': TokenUpdatedEvent;
60
- 'token-expiring': TokenExpiringEvent;
61
- 'token-expired': TokenExpiredEvent;
62
42
  'close-requested': CloseEvent;
63
43
  }
64
44
  }
65
- //# sourceMappingURL=app.d.ts.map
@@ -72,4 +72,3 @@ export type ChatSseEvent = {
72
72
  errorType?: ChatSseErrorType;
73
73
  };
74
74
  };
75
- //# sourceMappingURL=sse.d.ts.map
@@ -31,4 +31,3 @@ export type CloseMessageDto = {
31
31
  time: string;
32
32
  };
33
33
  export {};
34
- //# sourceMappingURL=ws.d.ts.map
@@ -7,4 +7,3 @@ export * from './slices/session-slice';
7
7
  export * from './slices/ui-slice';
8
8
  export * from './store';
9
9
  export declare const selectMessages: (s: AppState) => UiMessage[];
10
- //# sourceMappingURL=index.d.ts.map
@@ -16,4 +16,3 @@ export declare const resetAll: () => {
16
16
  export type ResetAction = ReturnType<typeof resetAll>;
17
17
  export type RootAction = ConfigAction | MessagesAction | UiAction | SessionAction | ResetAction;
18
18
  export declare function rootReducer(state: AppState, action: RootAction): AppState;
19
- //# sourceMappingURL=root-reducer.d.ts.map
@@ -17,4 +17,3 @@ export declare const setInitialized: () => ConfigAction;
17
17
  export declare const setConfig: (config: BootstrapConfigResponse) => ConfigAction;
18
18
  export declare const clearConfig: () => ConfigAction;
19
19
  export declare function configReducer(state: ConfigState | undefined, action: ConfigAction): ConfigState;
20
- //# sourceMappingURL=config-slice.d.ts.map
@@ -32,4 +32,3 @@ export declare const deleteMessage: (id: string) => MessagesAction;
32
32
  export declare const patchMessage: (id: string, patch: Partial<UiMessage>) => MessagesAction;
33
33
  export declare const addContentDelta: (id: string, delta: string) => MessagesAction;
34
34
  export declare function messagesReducer(state: MessagesState | undefined, action: MessagesAction): MessagesState;
35
- //# sourceMappingURL=messages-slice.d.ts.map
@@ -34,4 +34,3 @@ export declare const setActive: (active: boolean) => SessionAction;
34
34
  export declare const setThinking: (thinking: boolean) => SessionAction;
35
35
  export declare const setBusy: (busy: boolean) => SessionAction;
36
36
  export declare function sessionReducer(state: SessionState | undefined, action: SessionAction): SessionState;
37
- //# sourceMappingURL=session-slice.d.ts.map
@@ -26,4 +26,3 @@ export declare const closeFeedbackForm: () => UiAction;
26
26
  export declare const setError: (error: AppError | null) => UiAction;
27
27
  export declare const pushError: (error: AppError) => UiAction;
28
28
  export declare function uiReducer(state: UiState | undefined, action: UiAction): UiState;
29
- //# sourceMappingURL=ui-slice.d.ts.map
@@ -9,4 +9,3 @@ export declare class AppStore {
9
9
  subscribe(listener: (state: AppState) => void): () => boolean;
10
10
  dispatch(action: RootAction): void;
11
11
  }
12
- //# sourceMappingURL=store.d.ts.map