@smart-cloud/ai-kit-ui 1.5.39 → 1.5.40

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.
@@ -0,0 +1,16 @@
1
+ interface MarkdownNode {
2
+ type: string;
3
+ value?: string;
4
+ children?: MarkdownNode[];
5
+ position?: {
6
+ start: {
7
+ offset?: number;
8
+ };
9
+ end: {
10
+ offset?: number;
11
+ };
12
+ };
13
+ }
14
+ /** Render-only defense for legacy answers; text can never authorize a card. */
15
+ export declare function hideVerifiedPresentationDirectives(value: unknown, source: string): () => (tree: MarkdownNode) => void;
16
+ export {};
@@ -1149,6 +1149,78 @@
1149
1149
  }
1150
1150
 
1151
1151
  /* Markdown formatting */
1152
+ .ai-catalog-page-controls {
1153
+ display: flex;
1154
+ flex-wrap: wrap;
1155
+ align-items: center;
1156
+ gap: .5rem .75rem;
1157
+ min-width: 0;
1158
+ max-width: 100%;
1159
+ color: var(--ai-kit-color-text, #222);
1160
+ }
1161
+
1162
+ .ai-catalog-page-summary,
1163
+ .ai-catalog-page-expired {
1164
+ flex: 1 1 100%;
1165
+ min-width: 0;
1166
+ overflow-wrap: anywhere;
1167
+ }
1168
+
1169
+ .ai-catalog-page-expired {
1170
+ color: var(--ai-kit-color-text-muted, #666);
1171
+ }
1172
+
1173
+ .ai-catalog-page-actions {
1174
+ display: flex;
1175
+ flex-wrap: wrap;
1176
+ align-items: stretch;
1177
+ gap: .5rem;
1178
+ min-width: 0;
1179
+ max-width: 100%;
1180
+ }
1181
+
1182
+ .ai-catalog-page-actions button {
1183
+ display: inline-flex;
1184
+ align-items: center;
1185
+ justify-content: center;
1186
+ flex: 1 1 auto;
1187
+ min-width: 2.75rem;
1188
+ min-height: 2.75rem;
1189
+ max-width: 100%;
1190
+ box-sizing: border-box;
1191
+ padding: .5rem .875rem;
1192
+ border: 1px solid var(--ai-kit-color-primary, #1c7ed6);
1193
+ border-radius: var(--ai-kit-radius-sm, .75rem);
1194
+ color: var(--ai-kit-color-primary-contrast, #fff);
1195
+ background: var(--ai-kit-color-primary, #1c7ed6);
1196
+ font: inherit;
1197
+ font-weight: 600;
1198
+ line-height: 1.35;
1199
+ text-align: center;
1200
+ white-space: normal;
1201
+ overflow-wrap: anywhere;
1202
+ cursor: pointer;
1203
+ transition: var(--ai-kit-action-transition, background-color 160ms ease);
1204
+ }
1205
+
1206
+ .ai-catalog-page-actions button:hover:not(:disabled) {
1207
+ background: var(--ai-kit-color-primary-hover, #1971c2);
1208
+ }
1209
+
1210
+ .ai-catalog-page-actions button:focus-visible {
1211
+ outline: 2px solid var(--ai-kit-action-focus-ring, #1c7ed6);
1212
+ outline-offset: 2px;
1213
+ }
1214
+
1215
+ .ai-catalog-page-actions button:disabled {
1216
+ opacity: var(--ai-kit-action-disabled-opacity, .6);
1217
+ cursor: not-allowed;
1218
+ }
1219
+
1220
+ .ai-catalog-page-controls[aria-busy="true"] button:disabled {
1221
+ cursor: progress;
1222
+ }
1223
+
1152
1224
  .ai-answer-carousel-controls {
1153
1225
  display: flex;
1154
1226
  align-items: center;
@@ -1185,19 +1257,26 @@
1185
1257
 
1186
1258
  /* Scope images at any Markdown nesting depth, including product images in lists. */
1187
1259
  .ai-chat-bubble .ai-chat-image-trigger {
1188
- display: inline-block;
1260
+ display: block;
1261
+ width: fit-content;
1189
1262
  max-width: 100%;
1190
1263
  min-width: 0;
1264
+ margin-block: .5rem;
1191
1265
  padding: 0;
1192
1266
  border: 0;
1193
1267
  border-radius: var(--ai-kit-radius, 4px);
1194
1268
  background: transparent;
1195
1269
  line-height: 0;
1196
- vertical-align: middle;
1197
1270
  overflow: hidden;
1198
1271
  cursor: zoom-in;
1199
1272
  }
1200
1273
 
1274
+ .ai-chat-bubble .ai-chat-linked-image {
1275
+ display: block;
1276
+ width: fit-content;
1277
+ max-width: 100%;
1278
+ }
1279
+
1201
1280
  .ai-chat-bubble img.ai-chat-markdown-image {
1202
1281
  display: block;
1203
1282
  width: auto;