@budibase/frontend-core 3.34.10 → 3.35.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@budibase/frontend-core",
3
- "version": "3.34.10",
3
+ "version": "3.35.0",
4
4
  "description": "Budibase frontend core libraries used in builder and client",
5
5
  "author": "Budibase",
6
6
  "license": "MPL-2.0",
@@ -23,5 +23,5 @@
23
23
  "devDependencies": {
24
24
  "vitest": "^3.2.4"
25
25
  },
26
- "gitHead": "289b51f9ffc43fcaa3bba5f0ab953665940610c0"
26
+ "gitHead": "f1fae8b647a4c3812f725e1c1cd0680d5501ec83"
27
27
  }
@@ -645,20 +645,22 @@
645
645
  {/each}
646
646
  {#if message.metadata?.ragSources?.length}
647
647
  <div class="sources">
648
- <div class="sources-title">Sources</div>
648
+ <div class="sources-header">
649
+ <span class="sources-icon">
650
+ <Icon
651
+ name="book-open"
652
+ size="M"
653
+ color="var(--spectrum-global-color-gray-600)"
654
+ />
655
+ </span>
656
+ <span class="sources-title">Sources</span>
657
+ </div>
649
658
  <ul>
650
659
  {#each message.metadata.ragSources as source (source.sourceId)}
651
660
  <li class="source-item">
652
661
  <span class="source-name"
653
662
  >{source.filename || source.sourceId}</span
654
663
  >
655
- {#if source.chunkCount > 0}
656
- <span class="source-count"
657
- >({source.chunkCount} chunk{source.chunkCount === 1
658
- ? ""
659
- : "s"})</span
660
- >
661
- {/if}
662
664
  </li>
663
665
  {/each}
664
666
  </ul>
@@ -1104,12 +1106,23 @@
1104
1106
  border-top: 1px solid var(--grey-3);
1105
1107
  }
1106
1108
 
1109
+ .sources-header {
1110
+ display: flex;
1111
+ align-items: center;
1112
+ gap: 6px;
1113
+ margin-bottom: var(--spacing-xs);
1114
+ }
1115
+
1116
+ .sources-icon {
1117
+ display: flex;
1118
+ align-items: center;
1119
+ justify-content: center;
1120
+ flex-shrink: 0;
1121
+ }
1122
+
1107
1123
  .sources-title {
1108
1124
  font-size: 13px;
1109
- text-transform: uppercase;
1110
- letter-spacing: 0.08em;
1111
1125
  color: var(--spectrum-global-color-gray-600);
1112
- margin-bottom: var(--spacing-xs);
1113
1126
  }
1114
1127
 
1115
1128
  .sources ul {
@@ -1124,15 +1137,11 @@
1124
1137
  .source-item {
1125
1138
  display: flex;
1126
1139
  gap: 8px;
1127
- font-size: 14px;
1140
+ font-size: 13px;
1128
1141
  color: var(--spectrum-global-color-gray-900);
1129
1142
  }
1130
1143
 
1131
1144
  .source-name {
1132
- font-weight: 500;
1133
- }
1134
-
1135
- .source-count {
1136
- color: var(--spectrum-global-color-gray-600);
1145
+ font-weight: 400;
1137
1146
  }
1138
1147
  </style>