@inkeep/agents-ui 0.16.0 → 0.16.2
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/color-mode/index.js +4 -4
- package/dist/index.cjs +1 -1
- package/dist/index.js +167 -161
- package/dist/node_modules/.pnpm/use-sync-external-store@1.6.0_react@19.3.0-canary-87ae75b3-20260128/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.development.cjs +9 -0
- package/dist/node_modules/.pnpm/{use-sync-external-store@1.5.0_react@19.0.0 → use-sync-external-store@1.6.0_react@19.3.0-canary-87ae75b3-20260128}/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.development.js +2 -2
- package/dist/primitives/atoms/cmdk/index.cjs +1 -1
- package/dist/primitives/atoms/cmdk/index.js +14 -2
- package/dist/primitives/atoms/combobox.d.ts +104 -0
- package/dist/primitives/atoms/icons/built-in-icons.cjs +1 -1
- package/dist/primitives/atoms/icons/built-in-icons.d.ts +4 -1
- package/dist/primitives/atoms/icons/built-in-icons.js +94 -91
- package/dist/primitives/atoms/icons/collections/pi.cjs +1 -1
- package/dist/primitives/atoms/icons/collections/pi.d.ts +3 -0
- package/dist/primitives/atoms/icons/collections/pi.js +82 -37
- package/dist/primitives/atoms/icons/inkeep-default-icons.cjs +1 -1
- package/dist/primitives/atoms/icons/inkeep-default-icons.js +4 -1
- package/dist/primitives/atoms/portal.js +3 -3
- package/dist/primitives/atoms/select.cjs +1 -1
- package/dist/primitives/atoms/select.js +2 -2
- package/dist/primitives/atoms/shadow/context.js +4 -4
- package/dist/primitives/components/embedded-chat/chat-error-helpers.cjs +3 -0
- package/dist/primitives/components/embedded-chat/chat-error-helpers.d.ts +26 -0
- package/dist/primitives/components/embedded-chat/chat-error-helpers.js +32 -0
- package/dist/primitives/components/embedded-chat/file-upload-input.cjs +1 -1
- package/dist/primitives/components/embedded-chat/file-upload-input.d.ts +1 -2
- package/dist/primitives/components/embedded-chat/file-upload-input.js +359 -217
- package/dist/primitives/components/embedded-chat/image-preview-modal.js +3 -3
- package/dist/primitives/components/embedded-chat/use-chat-action.cjs +1 -1
- package/dist/primitives/components/embedded-chat/use-chat-action.js +16 -14
- package/dist/primitives/components/embedded-chat/use-inkeep-chat.cjs +2 -4
- package/dist/primitives/components/embedded-chat/use-inkeep-chat.d.ts +1 -2
- package/dist/primitives/components/embedded-chat/use-inkeep-chat.js +312 -284
- package/dist/primitives/components/embedded-chat/use-stream-processor.cjs +1 -1
- package/dist/primitives/components/embedded-chat/use-stream-processor.js +1 -1
- package/dist/primitives/components/embedded-chat.cjs +3 -3
- package/dist/primitives/components/embedded-chat.d.ts +2 -3
- package/dist/primitives/components/embedded-chat.js +122 -114
- package/dist/primitives/components/embedded-search/search-provider.js +3 -3
- package/dist/primitives/components/embedded-search.cjs +1 -1
- package/dist/primitives/components/embedded-search.d.ts +1 -1
- package/dist/primitives/components/embedded-search.js +3 -3
- package/dist/primitives/components/modal/modal-provider.js +2 -2
- package/dist/primitives/components/modal.js +3 -3
- package/dist/primitives/components/sidebar-chat/index.js +1 -1
- package/dist/primitives/components/tagline-logo-icon.js +50 -9
- package/dist/primitives/hooks/use-events-api.cjs +1 -0
- package/dist/primitives/hooks/use-events-api.d.ts +29 -0
- package/dist/primitives/hooks/use-events-api.js +43 -0
- package/dist/primitives/hooks/use-initial-conversation.js +4 -1
- package/dist/primitives/hooks/use-input-notification.js +9 -9
- package/dist/primitives/index.cjs +1 -1
- package/dist/primitives/index.js +150 -144
- package/dist/primitives/providers/base-events-provider.cjs +1 -1
- package/dist/primitives/providers/base-events-provider.d.ts +2 -0
- package/dist/primitives/providers/base-events-provider.js +23 -22
- package/dist/primitives/providers/chat-auth-provider.cjs +1 -0
- package/dist/primitives/providers/chat-auth-provider.d.ts +27 -0
- package/dist/primitives/providers/chat-auth-provider.js +46 -0
- package/dist/primitives/providers/chat-base-events-provider.cjs +1 -0
- package/dist/primitives/providers/chat-base-events-provider.d.ts +12 -0
- package/dist/primitives/providers/chat-base-events-provider.js +73 -0
- package/dist/primitives/providers/chat-bubble-provider.js +1 -1
- package/dist/primitives/providers/chat-form-provider.d.ts +1 -1
- package/dist/primitives/providers/chat-form-provider.js +4 -4
- package/dist/primitives/providers/chat-history-provider.js +3 -3
- package/dist/primitives/providers/config-provider.js +3 -3
- package/dist/primitives/providers/feedback-provider.cjs +1 -1
- package/dist/primitives/providers/feedback-provider.js +37 -31
- package/dist/primitives/providers/form-field-provider.js +3 -3
- package/dist/primitives/providers/help-menu-provider.js +4 -4
- package/dist/primitives/providers/hover-popover-provider.js +3 -3
- package/dist/primitives/providers/image-preview-provider.js +5 -5
- package/dist/primitives/providers/index.cjs +1 -1
- package/dist/primitives/providers/index.d.ts +2 -0
- package/dist/primitives/providers/index.js +57 -51
- package/dist/primitives/providers/markdown-provider.js +2 -2
- package/dist/primitives/providers/message-provider.js +1 -1
- package/dist/primitives/providers/sidebar-chat-provider.js +3 -3
- package/dist/primitives/providers/source-item-provider.js +3 -3
- package/dist/primitives/providers/widget-provider.js +2 -2
- package/dist/primitives/utils/misc.cjs +1 -1
- package/dist/primitives/utils/misc.js +2 -2
- package/dist/react/chat-button.js +1 -1
- package/dist/react/embedded-chat.cjs +1 -1
- package/dist/react/embedded-chat.js +104 -102
- package/dist/react/embedded-search.cjs +1 -1
- package/dist/react/embedded-search.js +18 -18
- package/dist/react/index.cjs +1 -1
- package/dist/react/index.js +167 -161
- package/dist/styled/components/chat-bubble.js +4 -4
- package/dist/styled/components/chat-button.cjs +1 -1
- package/dist/styled/components/chat-button.js +9 -9
- package/dist/styled/components/chat-history.cjs +1 -1
- package/dist/styled/components/chat-history.js +22 -22
- package/dist/styled/components/embedded-chat/file-upload-input.cjs +1 -1
- package/dist/styled/components/embedded-chat/file-upload-input.js +71 -72
- package/dist/styled/components/embedded-chat/image-preview-modal.js +14 -7
- package/dist/styled/components/embedded-chat.cjs +1 -1
- package/dist/styled/components/embedded-chat.js +211 -199
- package/dist/styled/components/embedded-search.cjs +1 -1
- package/dist/styled/components/embedded-search.js +72 -66
- package/dist/styled/components/loading-indicator.cjs +1 -1
- package/dist/styled/components/loading-indicator.js +1 -1
- package/dist/styled/components/message.cjs +1 -1
- package/dist/styled/components/message.js +142 -139
- package/dist/styled/components/modal.js +3 -3
- package/dist/styled/components/searchbar.js +8 -8
- package/dist/styled/components/sidebar-chat.cjs +1 -1
- package/dist/styled/components/sidebar-chat.js +5 -5
- package/dist/styled/index.cjs +1 -1
- package/dist/styled/index.js +155 -149
- package/dist/styled/inkeep.css.cjs +13 -3
- package/dist/styled/inkeep.css.js +13 -3
- package/dist/theme/utils/generate-theme-variables.js +6 -6
- package/dist/types/config/ai.d.ts +5 -0
- package/dist/types/events.d.ts +11 -0
- package/dist/types/icons/built-in.d.ts +1 -1
- package/dist/types/icons/custom.d.ts +3 -0
- package/package.json +2 -2
- package/dist/node_modules/.pnpm/use-sync-external-store@1.5.0_react@19.0.0/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.development.cjs +0 -9
- /package/dist/node_modules/.pnpm/{use-sync-external-store@1.5.0_react@19.0.0 → use-sync-external-store@1.6.0_react@19.3.0-canary-87ae75b3-20260128}/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.production.cjs +0 -0
- /package/dist/node_modules/.pnpm/{use-sync-external-store@1.5.0_react@19.0.0 → use-sync-external-store@1.6.0_react@19.3.0-canary-87ae75b3-20260128}/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.production.js +0 -0
- /package/dist/node_modules/.pnpm/{use-sync-external-store@1.5.0_react@19.0.0 → use-sync-external-store@1.6.0_react@19.3.0-canary-87ae75b3-20260128}/node_modules/use-sync-external-store/shim/index.cjs +0 -0
- /package/dist/node_modules/.pnpm/{use-sync-external-store@1.5.0_react@19.0.0 → use-sync-external-store@1.6.0_react@19.3.0-canary-87ae75b3-20260128}/node_modules/use-sync-external-store/shim/index.js +0 -0
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
const p =
|
|
2
|
+
const p = {
|
|
3
3
|
colors: "color",
|
|
4
4
|
fontFamily: "font-family",
|
|
5
5
|
fontSize: "font-size",
|
|
@@ -8,13 +8,13 @@ const p = "ikp", y = {
|
|
|
8
8
|
function r(t) {
|
|
9
9
|
return t.replace(/([A-Z])/g, "-$1").toLowerCase();
|
|
10
10
|
}
|
|
11
|
-
function
|
|
11
|
+
function y(t) {
|
|
12
12
|
const c = {};
|
|
13
13
|
for (const [o, f] of Object.entries(t)) {
|
|
14
|
-
const l = r(
|
|
14
|
+
const l = r(p[o] || o), s = (n, a = []) => {
|
|
15
15
|
if (typeof n != "object" || n === null) {
|
|
16
16
|
const e = a.map(r).join("-");
|
|
17
|
-
return `var(
|
|
17
|
+
return `var(--ikp-${l}-${e})`;
|
|
18
18
|
}
|
|
19
19
|
const i = {};
|
|
20
20
|
for (const [e, u] of Object.entries(n))
|
|
@@ -29,6 +29,6 @@ function g(t) {
|
|
|
29
29
|
return c;
|
|
30
30
|
}
|
|
31
31
|
export {
|
|
32
|
-
|
|
33
|
-
|
|
32
|
+
y as generateThemeVariables,
|
|
33
|
+
p as themeMappings
|
|
34
34
|
};
|
|
@@ -17,6 +17,11 @@ export interface InkeepAIChatSettings {
|
|
|
17
17
|
* @default https://api.agents.inkeep.com
|
|
18
18
|
*/
|
|
19
19
|
baseUrl?: string;
|
|
20
|
+
/**
|
|
21
|
+
* Base API URL for analytics events (POST /run/v1/events).
|
|
22
|
+
* Defaults to `baseUrl` when not set.
|
|
23
|
+
*/
|
|
24
|
+
analyticsApiBaseUrl?: string;
|
|
20
25
|
/**
|
|
21
26
|
* @deprecated Use `appId` instead
|
|
22
27
|
* API key for requests.
|
package/dist/types/events.d.ts
CHANGED
|
@@ -36,12 +36,14 @@ export interface AssistantMessageReceivedEvent {
|
|
|
36
36
|
eventName: 'assistant_message_received';
|
|
37
37
|
properties: {
|
|
38
38
|
conversationId?: string;
|
|
39
|
+
messageId?: string;
|
|
39
40
|
};
|
|
40
41
|
}
|
|
41
42
|
export interface AssistantAnswerDisplayedEvent {
|
|
42
43
|
eventName: 'assistant_answer_displayed';
|
|
43
44
|
properties: {
|
|
44
45
|
conversationId?: string;
|
|
46
|
+
messageId?: string;
|
|
45
47
|
};
|
|
46
48
|
}
|
|
47
49
|
export interface UserMessageSubmittedEvent {
|
|
@@ -57,6 +59,7 @@ export interface UserEscalationIndicatedEvent {
|
|
|
57
59
|
getHelpOption?: GetHelpOption;
|
|
58
60
|
getHelpOptionName?: string;
|
|
59
61
|
conversationId?: string;
|
|
62
|
+
messageId?: string;
|
|
60
63
|
};
|
|
61
64
|
}
|
|
62
65
|
export interface SharedChatLoadedEvent {
|
|
@@ -67,6 +70,7 @@ export interface SharedChatLoadedEvent {
|
|
|
67
70
|
}
|
|
68
71
|
interface FeedbackProperties {
|
|
69
72
|
conversationId?: string;
|
|
73
|
+
messageId?: string;
|
|
70
74
|
details?: string | null;
|
|
71
75
|
}
|
|
72
76
|
export interface AssistantNegativeFeedbackSubmittedEvent {
|
|
@@ -82,6 +86,7 @@ export interface GetHelpOptionClickedEvent {
|
|
|
82
86
|
properties: {
|
|
83
87
|
getHelpOption: GetHelpOption;
|
|
84
88
|
conversationId?: string;
|
|
89
|
+
messageId?: string;
|
|
85
90
|
};
|
|
86
91
|
}
|
|
87
92
|
export interface ChatClearButtonClickedEvent {
|
|
@@ -110,12 +115,14 @@ export interface AssistantMessageCopiedEvent {
|
|
|
110
115
|
eventName: 'assistant_message_copied';
|
|
111
116
|
properties: {
|
|
112
117
|
conversationId: string;
|
|
118
|
+
messageId?: string;
|
|
113
119
|
};
|
|
114
120
|
}
|
|
115
121
|
export interface AssistantCodeBlockCopiedEvent {
|
|
116
122
|
eventName: 'assistant_code_block_copied';
|
|
117
123
|
properties: {
|
|
118
124
|
conversationId: string;
|
|
125
|
+
messageId?: string;
|
|
119
126
|
language: string;
|
|
120
127
|
code: string;
|
|
121
128
|
};
|
|
@@ -124,12 +131,15 @@ export interface AssistantSourceItemClickedEvent {
|
|
|
124
131
|
eventName: 'assistant_source_item_clicked';
|
|
125
132
|
properties: {
|
|
126
133
|
conversationId: string;
|
|
134
|
+
messageId?: string;
|
|
127
135
|
link: TransformedSource;
|
|
128
136
|
};
|
|
129
137
|
}
|
|
130
138
|
export interface AssistantMessageLinkOpenedEvent {
|
|
131
139
|
eventName: 'assistant_message_inline_link_opened';
|
|
132
140
|
properties: {
|
|
141
|
+
conversationId: string;
|
|
142
|
+
messageId?: string;
|
|
133
143
|
title?: string;
|
|
134
144
|
url?: string;
|
|
135
145
|
};
|
|
@@ -138,6 +148,7 @@ export interface ChatErrorEvent {
|
|
|
138
148
|
eventName: 'chat_error';
|
|
139
149
|
properties: {
|
|
140
150
|
conversationId: string;
|
|
151
|
+
messageId?: string;
|
|
141
152
|
error?: string;
|
|
142
153
|
};
|
|
143
154
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export type AvailableBuiltInIcons = 'FaBook' | 'FaGithub' | 'FaDatabase' | 'FaStackOverflow' | 'FaChrome' | 'FaPhone' | 'FaEnvelope' | 'FaPencil' | 'FaBlog' | 'FaSort' | 'FaPenSquare' | 'FaChevronRight' | 'FaChevronUp' | 'FaFilePdf' | 'FaDiscourse' | 'FaDiscord' | 'FaSlack' | 'IoDocumentTextSharp' | 'IoDocumentSharp' | 'IoSend' | 'IoInformationCircleOutline' | 'IoLinkOutline' | 'IoThumbsUpSharp' | 'IoThumbsDownSharp' | 'IoSearch' | 'IoCopyOutline' | 'IoCopy' | 'IoReturnDownBackOutline' | 'IoChevronForwardOutline' | 'IoReturnDownForward' | 'IoCloseOutline' | 'IoCheckmarkOutline' | 'IoBookOutline' | 'IoReaderOutline' | 'IoHelpBuoyOutline' | 'IoPeopleOutline' | 'IoDocumentTextOutline' | 'IoChatbubblesOutline' | 'FaRegFilePdf' | 'IoLogoDiscord' | 'IoLogoGithub' | 'IoTerminal' | 'FaBriefcase' | 'IoPlayCircleOutline' | 'IoPencilOutline' | 'IoCheckmarkDoneOutline' | 'IoHomeOutline' | 'IoMail' | 'IoOpenOutline' | 'FaTelegram' | 'FaTable' | 'FaMagnifyingGlass' | 'LuArrowLeft' | 'LuCircleCheck' | 'LuCommand' | 'LuCopy' | 'LuCheck' | 'LuCornerDownLeft' | 'LuGlobe' | 'LuHistory' | 'LuPanelLeft' | 'LuLink' | 'LuRepeat' | 'LuThumbsDown' | 'LuThumbsUp' | 'LuUsers' | 'LuUser' | 'LuArrowUpRight' | 'LuBookOpen' | 'LuChevronDown' | 'LuLoaderCircle' | 'FiEdit' | 'LuSparkles' | 'LuCornerDownRight' | 'LuCalendar' | 'LuHeadset' | 'LuSend' | 'LuPaperclip' | 'PiFileCsv' | 'PiFileText' | 'PiFileHtml' | 'PiFileMarkdown' | 'PiFileLog' | 'PiFileJson';
|
|
1
|
+
export type AvailableBuiltInIcons = 'FaBook' | 'FaGithub' | 'FaDatabase' | 'FaStackOverflow' | 'FaChrome' | 'FaPhone' | 'FaEnvelope' | 'FaPencil' | 'FaBlog' | 'FaSort' | 'FaPenSquare' | 'FaChevronRight' | 'FaChevronUp' | 'FaFilePdf' | 'FaDiscourse' | 'FaDiscord' | 'FaSlack' | 'IoDocumentTextSharp' | 'IoDocumentSharp' | 'IoSend' | 'IoInformationCircleOutline' | 'IoLinkOutline' | 'IoThumbsUpSharp' | 'IoThumbsDownSharp' | 'IoSearch' | 'IoCopyOutline' | 'IoCopy' | 'IoReturnDownBackOutline' | 'IoChevronForwardOutline' | 'IoReturnDownForward' | 'IoCloseOutline' | 'IoCheckmarkOutline' | 'IoBookOutline' | 'IoReaderOutline' | 'IoHelpBuoyOutline' | 'IoPeopleOutline' | 'IoDocumentTextOutline' | 'IoChatbubblesOutline' | 'FaRegFilePdf' | 'IoLogoDiscord' | 'IoLogoGithub' | 'IoTerminal' | 'FaBriefcase' | 'IoPlayCircleOutline' | 'IoPencilOutline' | 'IoCheckmarkDoneOutline' | 'IoHomeOutline' | 'IoMail' | 'IoOpenOutline' | 'FaTelegram' | 'FaTable' | 'FaMagnifyingGlass' | 'LuArrowLeft' | 'LuCircleCheck' | 'LuCommand' | 'LuCopy' | 'LuCheck' | 'LuCornerDownLeft' | 'LuGlobe' | 'LuHistory' | 'LuPanelLeft' | 'LuLink' | 'LuRepeat' | 'LuThumbsDown' | 'LuThumbsUp' | 'LuUsers' | 'LuUser' | 'LuArrowUpRight' | 'LuBookOpen' | 'LuChevronDown' | 'LuLoaderCircle' | 'FiEdit' | 'LuSparkles' | 'LuCornerDownRight' | 'LuCalendar' | 'LuHeadset' | 'LuSend' | 'LuPaperclip' | 'PiFileCsv' | 'PiFileText' | 'PiFileHtml' | 'PiFileMarkdown' | 'PiFileLog' | 'PiFileJson' | 'PiFile' | 'PiFileSql' | 'PiFilePy';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@inkeep/agents-ui",
|
|
3
|
-
"version": "0.16.
|
|
3
|
+
"version": "0.16.2",
|
|
4
4
|
"description": "",
|
|
5
5
|
"homepage": "",
|
|
6
6
|
"repository": {
|
|
@@ -133,7 +133,7 @@
|
|
|
133
133
|
"build": "pnpm css:gen && pnpm ui:gen",
|
|
134
134
|
"watch": "vite build --watch",
|
|
135
135
|
"dev": "pnpm storybook",
|
|
136
|
-
"lint": "biome lint ./src",
|
|
136
|
+
"lint": "biome lint --error-on-warnings ./src",
|
|
137
137
|
"typecheck": "tsc",
|
|
138
138
|
"storybook": "storybook dev -p 6006",
|
|
139
139
|
"test": "echo 'test'"
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("../../../../../../_virtual/use-sync-external-store-shim.development.cjs"),h=require("react");/**
|
|
2
|
-
* @license React
|
|
3
|
-
* use-sync-external-store-shim.development.js
|
|
4
|
-
*
|
|
5
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
6
|
-
*
|
|
7
|
-
* This source code is licensed under the MIT license found in the
|
|
8
|
-
* LICENSE file in the root directory of this source tree.
|
|
9
|
-
*/var f;function T(){return f||(f=1,process.env.NODE_ENV!=="production"&&function(){function d(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}function S(e,t){c||o.startTransition===void 0||(c=!0,console.error("You are using an outdated, pre-release alpha of React 18 that does not support useSyncExternalStore. The use-sync-external-store shim will not work correctly. Upgrade to a newer pre-release."));var r=t();if(!l){var u=t();_(r,u)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),l=!0)}u=p({inst:{value:r,getSnapshot:t}});var n=u[0].inst,s=u[1];return y(function(){n.value=r,n.getSnapshot=t,a(n)&&s({inst:n})},[e,r,t]),E(function(){return a(n)&&s({inst:n}),e(function(){a(n)&&s({inst:n})})},[e]),L(r),r}function a(e){var t=e.getSnapshot;e=e.value;try{var r=t();return!_(e,r)}catch{return!0}}function O(e,t){return t()}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var o=h,_=typeof Object.is=="function"?Object.is:d,p=o.useState,E=o.useEffect,y=o.useLayoutEffect,L=o.useDebugValue,c=!1,l=!1,v=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?O:S;i.__exports.useSyncExternalStore=o.useSyncExternalStore!==void 0?o.useSyncExternalStore:v,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())}()),i.__exports}exports.__require=T;
|
|
File without changes
|
|
File without changes
|
|
File without changes
|