@websolutespa/bom-llm 0.0.33 → 0.0.35

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 CHANGED
@@ -1,5 +1,19 @@
1
1
  # @websolutespa/bom-llm
2
2
 
3
+ ## 0.0.35
4
+
5
+ ### Patch Changes
6
+
7
+ - Modified: MessageService
8
+ - Added: USE_INSPECT_PARAM
9
+
10
+ ## 0.0.34
11
+
12
+ ### Patch Changes
13
+
14
+ - Modified: MessageService
15
+ - Added: StreamError
16
+
3
17
  ## 0.0.33
4
18
 
5
19
  ### Patch Changes
@@ -670,12 +670,12 @@ llm-embed {
670
670
  }
671
671
  }
672
672
 
673
- .llm-span-md-8, .llm .llm__inner--formRecapError, .llm .llm__inner--formRecapSuccess, .llm .llm__inner--formRequest, .llm .llm__message--assistant .llm__inner--string, .llm .llm__message--user .llm__inner--string {
673
+ .llm-span-md-8, .llm .llm__inner--formRecapError, .llm .llm__inner--formRecapSuccess, .llm .llm__inner--formRequest, .llm .llm__message--assistant .llm__inner--string, .llm .llm__message--user .llm__inner--string, .llm .llm__stream-error {
674
674
  padding-left: clamp(10px, 10px + (100vw - 375px) / 1545 * 2, 12px);
675
675
  padding-right: clamp(10px, 10px + (100vw - 375px) / 1545 * 2, 12px);
676
676
  }
677
677
  @media (min-width: 1024px) {
678
- .llm-span-md-8, .llm .llm__inner--formRecapError, .llm .llm__inner--formRecapSuccess, .llm .llm__inner--formRequest, .llm .llm__message--assistant .llm__inner--string, .llm .llm__message--user .llm__inner--string {
678
+ .llm-span-md-8, .llm .llm__inner--formRecapError, .llm .llm__inner--formRecapSuccess, .llm .llm__inner--formRequest, .llm .llm__message--assistant .llm__inner--string, .llm .llm__message--user .llm__inner--string, .llm .llm__stream-error {
679
679
  width: auto;
680
680
  max-width: calc(8 / 12 * 100%);
681
681
  }
@@ -989,6 +989,62 @@ llm-embed {
989
989
  }
990
990
  }
991
991
 
992
+ .llm .llm__stream-error .llm__text-body {
993
+ line-height: 1;
994
+ font-family: var(--llm-font-primary);
995
+ font-weight: var(--llm-typography-display6-font-weight);
996
+ line-height: var(--llm-typography-display6-line-height);
997
+ letter-spacing: var(--llm-typography-display6-letter-spacing);
998
+ font-size: clamp(var(--llm-typography-display6-font-size-min) * 1px, var(--llm-typography-display6-font-size-min) * 1px + (100vw - 375px) / 1545 * (var(--llm-typography-display6-font-size-max) - var(--llm-typography-display6-font-size-min)), var(--llm-typography-display6-font-size-max) * 1px);
999
+ }
1000
+ .llm .llm__stream-error__toggle {
1001
+ margin: 0;
1002
+ padding: 0;
1003
+ border: none;
1004
+ text-decoration: none;
1005
+ background: none;
1006
+ appearance: none;
1007
+ font-family: inherit;
1008
+ font-style: inherit;
1009
+ font-variant-ligatures: inherit;
1010
+ font-variant-caps: inherit;
1011
+ font-variant-numeric: inherit;
1012
+ font-variant-east-asian: inherit;
1013
+ font-weight: inherit;
1014
+ font-stretch: inherit;
1015
+ text-rendering: inherit;
1016
+ letter-spacing: inherit;
1017
+ word-spacing: inherit;
1018
+ line-height: inherit;
1019
+ text-transform: none;
1020
+ text-indent: inherit;
1021
+ text-shadow: none;
1022
+ text-align: inherit;
1023
+ pointer-events: auto;
1024
+ cursor: pointer;
1025
+ outline: 2px solid transparent;
1026
+ outline-offset: 2px;
1027
+ color: var(--llm-input-accent-foreground);
1028
+ text-decoration: underline;
1029
+ margin-top: 0.5rem;
1030
+ }
1031
+ .llm .llm__stream-error__toggle:focus {
1032
+ outline-color: currentColor;
1033
+ }
1034
+ .llm .llm__stream-error__toggle:hover {
1035
+ text-decoration: none;
1036
+ }
1037
+ .llm .llm__stream-error__toggle svg {
1038
+ width: 18px;
1039
+ height: 18px;
1040
+ }
1041
+ .llm .llm__stream-error__error {
1042
+ overflow-x: auto;
1043
+ }
1044
+ .llm .llm__stream-error__error, .llm .llm__stream-error__error.llm__hint {
1045
+ margin-top: 2rem;
1046
+ }
1047
+
992
1048
  .llm .llm__trigger {
993
1049
  position: relative;
994
1050
  display: flex;
@@ -2109,6 +2165,12 @@ llm-embed {
2109
2165
  max-width: max(400px, 30vw);
2110
2166
  margin-bottom: 1em;
2111
2167
  }
2168
+ .llm .llm__message--assistant .llm__inner--string .llm__text .llm__text-body .llm__pill:first-of-type {
2169
+ margin-top: 2em;
2170
+ }
2171
+ .llm .llm__message--assistant .llm__inner--string .llm__text .llm__text-body .llm__pill:last-of-type {
2172
+ margin-bottom: 2em;
2173
+ }
2112
2174
  .llm .llm__text-disclaimer {
2113
2175
  line-height: 1;
2114
2176
  font-family: var(--llm-font-secondary);