@webskill/chatbot 0.24.3 → 0.26.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/dist/chatbot.css CHANGED
@@ -955,6 +955,12 @@
955
955
  .border-border {
956
956
  border-color: var(--border);
957
957
  }
958
+ .border-border\/60 {
959
+ border-color: var(--border);
960
+ @supports (color: color-mix(in lab, red, red)) {
961
+ border-color: color-mix(in oklab, var(--border) 60%, transparent);
962
+ }
963
+ }
958
964
  .border-border\/80 {
959
965
  border-color: var(--border);
960
966
  @supports (color: color-mix(in lab, red, red)) {
@@ -1204,6 +1210,9 @@
1204
1210
  .pb-1 {
1205
1211
  padding-bottom: var(--spacing);
1206
1212
  }
1213
+ .pb-2 {
1214
+ padding-bottom: calc(var(--spacing) * 2);
1215
+ }
1207
1216
  .pb-3 {
1208
1217
  padding-bottom: calc(var(--spacing) * 3);
1209
1218
  }
@@ -1240,6 +1249,9 @@
1240
1249
  .text-start {
1241
1250
  text-align: start;
1242
1251
  }
1252
+ .align-top {
1253
+ vertical-align: top;
1254
+ }
1243
1255
  .font-display {
1244
1256
  font-family: var(--font-sans);
1245
1257
  }
@@ -1628,6 +1640,14 @@
1628
1640
  content: var(--tw-content);
1629
1641
  inset: calc(var(--spacing) * -2);
1630
1642
  }
1643
+ .last\:border-0:last-child {
1644
+ border-style: var(--tw-border-style);
1645
+ border-width: 0px;
1646
+ }
1647
+ .last\:border-r-0:last-child {
1648
+ border-right-style: var(--tw-border-style);
1649
+ border-right-width: 0px;
1650
+ }
1631
1651
  .empty\:hidden:empty {
1632
1652
  display: none;
1633
1653
  }
@@ -1867,6 +1887,11 @@
1867
1887
  color: var(--sidebar-accent-foreground);
1868
1888
  }
1869
1889
  }
1890
+ @media (prefers-reduced-motion: reduce) {
1891
+ .motion-reduce\:animate-none {
1892
+ animation: none;
1893
+ }
1894
+ }
1870
1895
  @media (width < 40rem) {
1871
1896
  .max-sm\:top-0 {
1872
1897
  top: 0px;
package/dist/index.d.ts CHANGED
@@ -317,7 +317,7 @@ interface ChatbotHostAdapter {
317
317
  linkedDocuments?: LinkedDocumentReader;
318
318
  /** docx → 文本(`extractDocxText`);不注入即 Word 文档明确报「本环境不支持」 */
319
319
  docxExtractor?: DocxTextExtractor;
320
- /** xlsx → 文本(`extractXlsxText`);不注入即 Excel 工作簿明确报「本环境不支持」 */
320
+ /** xls(x) → 文本(`extractXlsxText`);不注入即 Excel 工作簿明确报「本环境不支持」 */
321
321
  xlsxExtractor?: XlsxTextExtractor;
322
322
  /** pptx → 文本(`extractPptxText`);不注入即演示文稿明确报「本环境不支持」 @experimental */
323
323
  pptxExtractor?: PptxTextExtractor;
@@ -337,10 +337,10 @@ interface ChatbotHostAdapter {
337
337
  pdfDocumentReader?: PdfDocumentReader;
338
338
  /** docx → 块序列(`createDocxBlockReader`);不注入即 `read_document` 读不了 Word @experimental */
339
339
  docxDocumentReader?: DocxDocumentReader;
340
- /** xlsx → 行流(`createXlsxBlockReader`);不注入即 `read_document` 读不了 Excel @experimental */
340
+ /** xls(x) → 行流(`createXlsxBlockReader`);不注入即 `read_document` 读不了 Excel @experimental */
341
341
  xlsxDocumentReader?: XlsxDocumentReader;
342
342
  /**
343
- * xlsx → 单元格网格(`createXlsxTableReader`)。注入后,估算超过阈值的 xlsx 附件只以画像进消息,
343
+ * xls(x) → 单元格网格或可重复扫描的行流(`createXlsxTableReader`)。注入后,估算超过阈值的 Excel 附件只以画像进消息,
344
344
  * 统计交给 `query_table` 在本机对全表计算(整张表不进上下文);不注入则两者都不发生。
345
345
  * @experimental
346
346
  */
@@ -1632,6 +1632,7 @@ declare const chatbotDictionary: {
1632
1632
  'composer.inputLabel': string;
1633
1633
  'composer.send': string;
1634
1634
  'composer.stop': string;
1635
+ 'composer.processingAttachments': string;
1635
1636
  'composer.attachments': string;
1636
1637
  'composer.addAttachment': string;
1637
1638
  'composer.removeAttachment': string;
@@ -2092,6 +2093,7 @@ declare const chatbotDictionary: {
2092
2093
  'composer.inputLabel': string;
2093
2094
  'composer.send': string;
2094
2095
  'composer.stop': string;
2096
+ 'composer.processingAttachments': string;
2095
2097
  'composer.attachments': string;
2096
2098
  'composer.addAttachment': string;
2097
2099
  'composer.removeAttachment': string;
@@ -2555,6 +2557,7 @@ declare const useT: () => TranslateFn<{
2555
2557
  'composer.inputLabel': string;
2556
2558
  'composer.send': string;
2557
2559
  'composer.stop': string;
2560
+ 'composer.processingAttachments': string;
2558
2561
  'composer.attachments': string;
2559
2562
  'composer.addAttachment': string;
2560
2563
  'composer.removeAttachment': string;
@@ -3015,6 +3018,7 @@ declare const useT: () => TranslateFn<{
3015
3018
  'composer.inputLabel': string;
3016
3019
  'composer.send': string;
3017
3020
  'composer.stop': string;
3021
+ 'composer.processingAttachments': string;
3018
3022
  'composer.attachments': string;
3019
3023
  'composer.addAttachment': string;
3020
3024
  'composer.removeAttachment': string;
@@ -3494,6 +3498,6 @@ declare function ErrorCard({ code, message, loopLimits, onOpenSettings, onDismis
3494
3498
  * Version of the published `@webskill/chatbot` package, injected at build time.
3495
3499
  * @stable
3496
3500
  */
3497
- declare const CHATBOT_VERSION = "0.24.3";
3501
+ declare const CHATBOT_VERSION = "0.26.0";
3498
3502
  //#endregion
3499
3503
  export { A2uiSurfaceHost, type A2uiSurfaceHostProps, A2uiSurfaceSnapshotHost, type A2uiSurfaceSnapshotHostProps, type AppearanceChange, CHATBOT_VERSION, type ChatAttachmentInput, type ChatAttachmentMeta, type ChatComponent, type ChatComponentCallRecord, type ChatComponentConfirmation, type ChatComponentCredentialField, type ChatComponentInvokeContext, type ChatComponentOutcome, type ChatComponentStore, type ChatComponentText, type ChatContentPart, ChatEngine, type ChatEngineOptions, type ChatEvent, type ChatInteractionRecord, type ChatLayout, type ChatMessage, type ChatRunPhase, type ChatSessionListResult, type ChatSessionMeta, type ChatTheme, type ChatThinking, type ChatTokenUsage, type ChatToolCall, Chatbot, type ChatbotConfig, type ChatbotGovernancePorts, type ChatbotHostAdapter, type ChatbotProps, ChatbotVisionDelegate, type ChatbotVisionDelegateOptions, CompositeUiBridge, type CompositeUiBridgeDeps, DEFAULT_RENDERER_CAPABILITIES, DEFAULT_RUNTIME_CONFIG_STORAGE_KEY, type DownloadableFile, type DwgHost, ErrorCard, type ErrorCardProps, type HttpMessageComponentOptions, InteractionCard, type InteractionCardProps, InterruptedBanner, type InterruptedBannerProps, type Locale, type LocalizedText, OpenUiSurfaceHost, type OpenUiSurfaceHostProps, OpenUiSurfaceSnapshotHost, type OpenUiSurfaceSnapshotHostProps, type QuickPrompt, type QuickPromptIconName, type RendererCapability, type RendererKind, type ResolvedChatLayout, ResultBlockList, type ResultBlockListProps, ResultBlocksPro, type ResultBlocksProProps, type RunSnapshot, type RuntimeAppearanceConfig, type RuntimeConfig, type RuntimeConfigStore, type RuntimeQuickPrompt, type RuntimeRendererId, type SandboxExecutorDeps, type SettingsSectionId, SkillBadges, SpecInteraction, type SpecInteractionProps, VercelPayloadPreview, type VercelPayloadPreviewProps, VercelSurfaceHost, type VercelSurfaceHostProps, VercelSurfaceSnapshotHost, type VercelSurfaceSnapshotHostProps, type VisionDelegationConsent, type VisionDelegationEndpoint, WEB_OFFICE_TEMPLATE_PREFIX, chatbotDictionary, configureA2uiMarkdown, createHttpMessageComponent, createLocalStorageRuntimeConfigStore, createMemoryRuntimeConfigStore, isLlmEntryUsable, pickUsableLlmEntry, probeA2uiAvailability, probeOpenUiAvailability, sandboxExecutorDeps, useT };