@inkeep/agents-ui-js 0.15.29 → 0.16.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/types.d.ts CHANGED
@@ -625,28 +625,19 @@ declare type ExtendPropertiesWithCommon<T> = T extends { properties: infer P }
625
625
  ? T & { properties: P & CommonProperties }
626
626
  : T
627
627
 
628
- export declare type FeebackReason = { label: string; details: string }
629
-
630
628
  export declare interface FeedbackBody {
631
629
  type: FeedbackType
632
630
  messageId: string
633
631
  createdAt: string
634
- reasons?:
635
- | {
636
- label: string
637
- details: string
638
- }[]
639
- | null
632
+ details?: string | null
640
633
  userProperties: UserProperties
641
634
  properties?: Record<string, unknown>
642
635
  }
643
636
 
644
- export declare type FeedbackItemType = keyof MessageFeedback
645
-
646
637
  declare interface FeedbackProperties {
647
638
  conversationId?: string
648
639
  // message: Message
649
- reasons: FeebackReason[]
640
+ details?: string | null
650
641
  }
651
642
 
652
643
  export declare type FeedbackType = 'positive' | 'negative'
@@ -961,6 +952,14 @@ export declare interface InkeepAIChatSettings {
961
952
 
962
953
  // biome-ignore lint/suspicious/noExplicitAny: <explanation>
963
954
  artifacts?: ComponentsConfig<any>
955
+
956
+ /**
957
+ * Controls whether the chat automatically scrolls to the bottom
958
+ * during streaming. When false, streaming auto-scroll is disabled
959
+ * but the chat still scrolls to bottom when the user sends a new message.
960
+ * @default true
961
+ */
962
+ shouldAutoScroll?: boolean
964
963
  }
965
964
 
966
965
  export declare interface InkeepBaseSettings {
@@ -1181,7 +1180,7 @@ export declare type InkeepEventWithCommon = ExtendPropertiesWithCommon<InkeepEve
1181
1180
  export declare interface InkeepFeedback {
1182
1181
  type: FeedbackType
1183
1182
  messageId: string
1184
- reasons?: FeebackReason[]
1183
+ details?: string | null
1185
1184
  }
1186
1185
 
1187
1186
  export declare type InkeepJS = Partial<Record<InkeepJSComponent, InkeepComponentInitializer>>
@@ -1455,13 +1454,6 @@ export declare type MessageAction = 'copy' | 'upvote' | 'downvote'
1455
1454
 
1456
1455
  declare type MessageChatAction = ExpandUnion<InvokeMessageCallbackAction | OpenFormAction | OpenUrlAction>
1457
1456
 
1458
- export declare interface MessageFeedback {
1459
- unrelated_response: boolean
1460
- inaccurate_statement: boolean
1461
- inaccurate_code_snippet: boolean
1462
- irrelevant_citations: boolean
1463
- }
1464
-
1465
1457
  export declare interface ModalClosedEvent {
1466
1458
  eventName: 'modal_closed'
1467
1459
  properties: {}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@inkeep/agents-ui-js",
3
- "version": "0.15.29",
3
+ "version": "0.16.0",
4
4
  "description": "",
5
5
  "license": "Inkeep, Inc. Customer License (IICL) v1.1",
6
6
  "homepage": "",
@@ -55,7 +55,7 @@
55
55
  "vite": "5.4.11",
56
56
  "vite-bundle-visualizer": "^1.2.1",
57
57
  "vite-plugin-dts": "4.4.0",
58
- "@inkeep/agents-ui": "0.15.29"
58
+ "@inkeep/agents-ui": "0.16.0"
59
59
  },
60
60
  "module": "./dist/embed.js",
61
61
  "types": "./dist/types.d.ts",