@inkeep/cxkit-primitives 0.5.15 → 0.5.17
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/components/embedded-search/use-inkeep-search.cjs +1 -1
- package/dist/components/embedded-search/use-inkeep-search.js +77 -76
- package/dist/index.d.cts +3695 -11
- package/dist/index.d.ts +3695 -11
- package/dist/providers/base-events-provider.cjs +1 -1
- package/dist/providers/base-events-provider.js +1 -1
- package/package.json +4 -4
- package/dist/atoms/api/analytics/conversation.d.cts +0 -3
- package/dist/atoms/api/analytics/conversation.d.ts +0 -3
- package/dist/atoms/api/analytics/events.d.cts +0 -2
- package/dist/atoms/api/analytics/events.d.ts +0 -2
- package/dist/atoms/api/analytics/feedback.d.cts +0 -11
- package/dist/atoms/api/analytics/feedback.d.ts +0 -11
- package/dist/atoms/avatars/ai.d.cts +0 -3
- package/dist/atoms/avatars/ai.d.ts +0 -3
- package/dist/atoms/avatars/user.d.cts +0 -3
- package/dist/atoms/avatars/user.d.ts +0 -3
- package/dist/atoms/cmdk/command-score.d.cts +0 -1
- package/dist/atoms/cmdk/command-score.d.ts +0 -1
- package/dist/atoms/cmdk/index.d.cts +0 -426
- package/dist/atoms/cmdk/index.d.ts +0 -426
- package/dist/atoms/codeblock/index.d.cts +0 -10
- package/dist/atoms/codeblock/index.d.ts +0 -10
- package/dist/atoms/custom-styles.d.cts +0 -5
- package/dist/atoms/custom-styles.d.ts +0 -5
- package/dist/atoms/dialog.d.cts +0 -95
- package/dist/atoms/dialog.d.ts +0 -95
- package/dist/atoms/icons/built-in-icon-renderer.d.cts +0 -6
- package/dist/atoms/icons/built-in-icon-renderer.d.ts +0 -6
- package/dist/atoms/icons/built-in-icons.d.cts +0 -72
- package/dist/atoms/icons/built-in-icons.d.ts +0 -72
- package/dist/atoms/icons/checkbox-icon.d.cts +0 -1
- package/dist/atoms/icons/checkbox-icon.d.ts +0 -1
- package/dist/atoms/icons/custom-icon.d.cts +0 -6
- package/dist/atoms/icons/custom-icon.d.ts +0 -6
- package/dist/atoms/icons/index.d.cts +0 -2
- package/dist/atoms/icons/index.d.ts +0 -2
- package/dist/atoms/icons/inkeep-default-icons.d.cts +0 -2
- package/dist/atoms/icons/inkeep-default-icons.d.ts +0 -2
- package/dist/atoms/link.d.cts +0 -14
- package/dist/atoms/link.d.ts +0 -14
- package/dist/atoms/markdown/components.d.cts +0 -27
- package/dist/atoms/markdown/components.d.ts +0 -27
- package/dist/atoms/markdown/index.d.cts +0 -15
- package/dist/atoms/markdown/index.d.ts +0 -15
- package/dist/atoms/markdown/rehype-inline-code-property.d.cts +0 -1
- package/dist/atoms/markdown/rehype-inline-code-property.d.ts +0 -1
- package/dist/atoms/portal-with-theme.d.cts +0 -2
- package/dist/atoms/portal-with-theme.d.ts +0 -2
- package/dist/atoms/portal.d.cts +0 -8
- package/dist/atoms/portal.d.ts +0 -8
- package/dist/atoms/shadow/context.d.cts +0 -14
- package/dist/atoms/shadow/context.d.ts +0 -14
- package/dist/atoms/shadow/create.d.cts +0 -8
- package/dist/atoms/shadow/create.d.ts +0 -8
- package/dist/atoms/shadow/index.d.cts +0 -1
- package/dist/atoms/shadow/index.d.ts +0 -1
- package/dist/atoms/shadow/root.d.cts +0 -5
- package/dist/atoms/shadow/root.d.ts +0 -5
- package/dist/atoms/shadow/use-ensured-forwarded-ref.d.cts +0 -2
- package/dist/atoms/shadow/use-ensured-forwarded-ref.d.ts +0 -2
- package/dist/atoms/shadow/utils.d.cts +0 -9
- package/dist/atoms/shadow/utils.d.ts +0 -9
- package/dist/components/chat-button.d.cts +0 -18
- package/dist/components/chat-button.d.ts +0 -18
- package/dist/components/embedded-chat/chat-provider.d.cts +0 -19
- package/dist/components/embedded-chat/chat-provider.d.ts +0 -19
- package/dist/components/embedded-chat/use-captcha.d.cts +0 -13
- package/dist/components/embedded-chat/use-captcha.d.ts +0 -13
- package/dist/components/embedded-chat/use-chat-action.d.cts +0 -9
- package/dist/components/embedded-chat/use-chat-action.d.ts +0 -9
- package/dist/components/embedded-chat/use-inkeep-chat.d.cts +0 -25
- package/dist/components/embedded-chat/use-inkeep-chat.d.ts +0 -25
- package/dist/components/embedded-chat.d.cts +0 -416
- package/dist/components/embedded-chat.d.ts +0 -416
- package/dist/components/embedded-search/search-provider.d.cts +0 -21
- package/dist/components/embedded-search/search-provider.d.ts +0 -21
- package/dist/components/embedded-search/transform-results.d.cts +0 -3
- package/dist/components/embedded-search/transform-results.d.ts +0 -3
- package/dist/components/embedded-search/use-inkeep-search.d.cts +0 -21
- package/dist/components/embedded-search/use-inkeep-search.d.ts +0 -21
- package/dist/components/embedded-search.d.cts +0 -216
- package/dist/components/embedded-search.d.ts +0 -216
- package/dist/components/factory.d.cts +0 -19
- package/dist/components/factory.d.ts +0 -19
- package/dist/components/index.d.cts +0 -11
- package/dist/components/index.d.ts +0 -11
- package/dist/components/intelligent-form/actions/context-model-response.d.cts +0 -10
- package/dist/components/intelligent-form/actions/context-model-response.d.ts +0 -10
- package/dist/components/intelligent-form/actions/escalation-schema.d.cts +0 -2
- package/dist/components/intelligent-form/actions/escalation-schema.d.ts +0 -2
- package/dist/components/intelligent-form/actions/qa-model-messages.d.cts +0 -2
- package/dist/components/intelligent-form/actions/qa-model-messages.d.ts +0 -2
- package/dist/components/intelligent-form/actions/qa-model-response.d.cts +0 -14
- package/dist/components/intelligent-form/actions/qa-model-response.d.ts +0 -14
- package/dist/components/intelligent-form/intelligent-form-provider.d.cts +0 -29
- package/dist/components/intelligent-form/intelligent-form-provider.d.ts +0 -29
- package/dist/components/intelligent-form/use-inkeep-intelligent-form.d.cts +0 -30
- package/dist/components/intelligent-form/use-inkeep-intelligent-form.d.ts +0 -30
- package/dist/components/intelligent-form.d.cts +0 -136
- package/dist/components/intelligent-form.d.ts +0 -136
- package/dist/components/modal/modal-provider.d.cts +0 -13
- package/dist/components/modal/modal-provider.d.ts +0 -13
- package/dist/components/modal/use-inkeep-modal.d.cts +0 -8
- package/dist/components/modal/use-inkeep-modal.d.ts +0 -8
- package/dist/components/modal.d.cts +0 -18
- package/dist/components/modal.d.ts +0 -18
- package/dist/components/searchbar.d.cts +0 -23
- package/dist/components/searchbar.d.ts +0 -23
- package/dist/components/tagline-logo-icon.d.cts +0 -1
- package/dist/components/tagline-logo-icon.d.ts +0 -1
- package/dist/hooks/index.d.cts +0 -12
- package/dist/hooks/index.d.ts +0 -12
- package/dist/hooks/use-boolean.d.cts +0 -10
- package/dist/hooks/use-boolean.d.ts +0 -10
- package/dist/hooks/use-browser-storage.d.cts +0 -17
- package/dist/hooks/use-browser-storage.d.ts +0 -17
- package/dist/hooks/use-component-classnames.d.cts +0 -6
- package/dist/hooks/use-component-classnames.d.ts +0 -6
- package/dist/hooks/use-container-size.d.cts +0 -5
- package/dist/hooks/use-container-size.d.ts +0 -5
- package/dist/hooks/use-copy-to-clipboard.d.cts +0 -3
- package/dist/hooks/use-copy-to-clipboard.d.ts +0 -3
- package/dist/hooks/use-instant-update.d.cts +0 -17
- package/dist/hooks/use-instant-update.d.ts +0 -17
- package/dist/hooks/use-is-mounted.d.cts +0 -1
- package/dist/hooks/use-is-mounted.d.ts +0 -1
- package/dist/hooks/use-media-query.d.cts +0 -1
- package/dist/hooks/use-media-query.d.ts +0 -1
- package/dist/hooks/use-resize-observer.d.cts +0 -12
- package/dist/hooks/use-resize-observer.d.ts +0 -12
- package/dist/hooks/use-scroll-to-bottom.d.cts +0 -13
- package/dist/hooks/use-scroll-to-bottom.d.ts +0 -13
- package/dist/hooks/use-scrolling-fades.d.cts +0 -2
- package/dist/hooks/use-scrolling-fades.d.ts +0 -2
- package/dist/hooks/use-settle-action.d.cts +0 -3
- package/dist/hooks/use-settle-action.d.ts +0 -3
- package/dist/providers/attachment-item-provider.d.cts +0 -9
- package/dist/providers/attachment-item-provider.d.ts +0 -9
- package/dist/providers/attachments-bar-provider.d.cts +0 -30
- package/dist/providers/attachments-bar-provider.d.ts +0 -30
- package/dist/providers/base-events-provider.d.cts +0 -8
- package/dist/providers/base-events-provider.d.ts +0 -8
- package/dist/providers/chat-events-provider.d.cts +0 -20
- package/dist/providers/chat-events-provider.d.ts +0 -20
- package/dist/providers/chat-form-provider.d.cts +0 -23
- package/dist/providers/chat-form-provider.d.ts +0 -23
- package/dist/providers/config-provider.d.cts +0 -24
- package/dist/providers/config-provider.d.ts +0 -24
- package/dist/providers/conversation-provider.d.cts +0 -12
- package/dist/providers/conversation-provider.d.ts +0 -12
- package/dist/providers/feedback-item-provider.d.cts +0 -10
- package/dist/providers/feedback-item-provider.d.ts +0 -10
- package/dist/providers/feedback-provider.d.cts +0 -19
- package/dist/providers/feedback-provider.d.ts +0 -19
- package/dist/providers/form-field-provider.d.cts +0 -15
- package/dist/providers/form-field-provider.d.ts +0 -15
- package/dist/providers/help-menu-provider.d.cts +0 -11
- package/dist/providers/help-menu-provider.d.ts +0 -11
- package/dist/providers/index.d.cts +0 -19
- package/dist/providers/index.d.ts +0 -19
- package/dist/providers/intelligent-form-field-provider.d.cts +0 -15
- package/dist/providers/intelligent-form-field-provider.d.ts +0 -15
- package/dist/providers/markdown-provider.d.cts +0 -9
- package/dist/providers/markdown-provider.d.ts +0 -9
- package/dist/providers/message-attachments-provider.d.cts +0 -13
- package/dist/providers/message-attachments-provider.d.ts +0 -13
- package/dist/providers/message-provider.d.cts +0 -10
- package/dist/providers/message-provider.d.ts +0 -10
- package/dist/providers/root-provider.d.cts +0 -8
- package/dist/providers/root-provider.d.ts +0 -8
- package/dist/providers/search-events-provider.d.cts +0 -11
- package/dist/providers/search-events-provider.d.ts +0 -11
- package/dist/providers/source-item-provider.d.cts +0 -12
- package/dist/providers/source-item-provider.d.ts +0 -12
- package/dist/providers/theme-provider.d.cts +0 -3
- package/dist/providers/theme-provider.d.ts +0 -3
- package/dist/providers/user-provider.d.cts +0 -13
- package/dist/providers/user-provider.d.ts +0 -13
- package/dist/providers/widget-provider.d.cts +0 -9
- package/dist/providers/widget-provider.d.ts +0 -9
- package/dist/utils/component-ids.d.cts +0 -632
- package/dist/utils/component-ids.d.ts +0 -632
- package/dist/utils/compose-event-handlers.d.cts +0 -3
- package/dist/utils/compose-event-handlers.d.ts +0 -3
- package/dist/utils/compose-refs.d.cts +0 -5
- package/dist/utils/compose-refs.d.ts +0 -5
- package/dist/utils/default-settings.d.cts +0 -249
- package/dist/utils/default-settings.d.ts +0 -249
- package/dist/utils/form.d.cts +0 -3
- package/dist/utils/form.d.ts +0 -3
- package/dist/utils/generate-uid.d.cts +0 -2
- package/dist/utils/generate-uid.d.ts +0 -2
- package/dist/utils/get-message-metadata.d.cts +0 -8
- package/dist/utils/get-message-metadata.d.ts +0 -8
- package/dist/utils/graphql-client.d.cts +0 -8
- package/dist/utils/graphql-client.d.ts +0 -8
- package/dist/utils/highlight-emphasis.d.cts +0 -4
- package/dist/utils/highlight-emphasis.d.ts +0 -4
- package/dist/utils/merge-props.d.cts +0 -7
- package/dist/utils/merge-props.d.ts +0 -7
- package/dist/utils/misc.d.cts +0 -13
- package/dist/utils/misc.d.ts +0 -13
- package/dist/utils/reset-query-params.d.cts +0 -1
- package/dist/utils/reset-query-params.d.ts +0 -1
- package/dist/utils/tools/links-schema.d.cts +0 -64
- package/dist/utils/tools/links-schema.d.ts +0 -64
- package/dist/utils/transform-source/breadcrumbs.d.cts +0 -2
- package/dist/utils/transform-source/breadcrumbs.d.ts +0 -2
- package/dist/utils/transform-source/common-words/long.d.cts +0 -1
- package/dist/utils/transform-source/common-words/long.d.ts +0 -1
- package/dist/utils/transform-source/common-words/lowercase.d.cts +0 -1
- package/dist/utils/transform-source/common-words/lowercase.d.ts +0 -1
- package/dist/utils/transform-source/common-words/short.d.cts +0 -1
- package/dist/utils/transform-source/common-words/short.d.ts +0 -1
- package/dist/utils/transform-source/description.d.cts +0 -2
- package/dist/utils/transform-source/description.d.ts +0 -2
- package/dist/utils/transform-source/icon.d.cts +0 -2
- package/dist/utils/transform-source/icon.d.ts +0 -2
- package/dist/utils/transform-source/tabs.d.cts +0 -2
- package/dist/utils/transform-source/tabs.d.ts +0 -2
- package/dist/utils/transform-source/title.d.cts +0 -2
- package/dist/utils/transform-source/title.d.ts +0 -2
- package/dist/utils/transform-source/utils/description-without-title.d.cts +0 -11
- package/dist/utils/transform-source/utils/description-without-title.d.ts +0 -11
- package/dist/utils/transform-source/utils/index.d.cts +0 -6
- package/dist/utils/transform-source/utils/index.d.ts +0 -6
- package/dist/utils/transform-source/utils/misc.d.cts +0 -2
- package/dist/utils/transform-source/utils/misc.d.ts +0 -2
- package/dist/utils/transform-source/utils/standardize-common-words.d.cts +0 -1
- package/dist/utils/transform-source/utils/standardize-common-words.d.ts +0 -1
- package/dist/utils/transform-source/utils/standardize-organization-display-name.d.cts +0 -8
- package/dist/utils/transform-source/utils/standardize-organization-display-name.d.ts +0 -8
- package/dist/utils/transform-source/utils/standardize-suffixes.d.cts +0 -5
- package/dist/utils/transform-source/utils/standardize-suffixes.d.ts +0 -5
- package/dist/utils/transform-source/utils/strip-branding-keywords.d.cts +0 -17
- package/dist/utils/transform-source/utils/strip-branding-keywords.d.ts +0 -17
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
type PossibleRef<T> = React.Ref<T | null> | undefined;
|
|
3
|
-
declare function composeRefs<T>(...refs: PossibleRef<T>[]): (node: T | null) => void;
|
|
4
|
-
declare function useComposedRefs<T>(...refs: any): React.RefCallback<T>;
|
|
5
|
-
export { composeRefs, useComposedRefs };
|
|
@@ -1,249 +0,0 @@
|
|
|
1
|
-
import { InkeepBaseSettings } from '@inkeep/cxkit-types';
|
|
2
|
-
export declare const defaultInkeepAIChatSettings: {
|
|
3
|
-
model: "inkeep-qa-expert";
|
|
4
|
-
placeholder: string;
|
|
5
|
-
aiAssistantName: undefined;
|
|
6
|
-
shouldOpenLinksInNewTab: true;
|
|
7
|
-
disclaimerSettings: {
|
|
8
|
-
isEnabled: false;
|
|
9
|
-
label: string;
|
|
10
|
-
};
|
|
11
|
-
isShareButtonVisible: false;
|
|
12
|
-
isViewOnly: false;
|
|
13
|
-
exampleQuestionsLabel: string;
|
|
14
|
-
exampleQuestions: never[];
|
|
15
|
-
isFirstExampleQuestionHighlighted: true;
|
|
16
|
-
isCopyChatButtonVisible: false;
|
|
17
|
-
getHelpOptions: never[];
|
|
18
|
-
workflowsHeader: string;
|
|
19
|
-
workflows: never[];
|
|
20
|
-
toolbarButtonLabels: {
|
|
21
|
-
clear: string;
|
|
22
|
-
share: string;
|
|
23
|
-
getHelp: string;
|
|
24
|
-
stop: string;
|
|
25
|
-
copyChat: string;
|
|
26
|
-
};
|
|
27
|
-
prompts: never[];
|
|
28
|
-
tools: {
|
|
29
|
-
type: "function";
|
|
30
|
-
function: {
|
|
31
|
-
name: string;
|
|
32
|
-
description: string;
|
|
33
|
-
parameters: {
|
|
34
|
-
type: string;
|
|
35
|
-
properties: {
|
|
36
|
-
links: {
|
|
37
|
-
anyOf: ({
|
|
38
|
-
type: string;
|
|
39
|
-
items: {
|
|
40
|
-
type: string;
|
|
41
|
-
properties: {
|
|
42
|
-
label: {
|
|
43
|
-
type: string[];
|
|
44
|
-
};
|
|
45
|
-
url: {
|
|
46
|
-
type: string;
|
|
47
|
-
};
|
|
48
|
-
title: {
|
|
49
|
-
type: string[];
|
|
50
|
-
};
|
|
51
|
-
description: {
|
|
52
|
-
type: string[];
|
|
53
|
-
};
|
|
54
|
-
type: {
|
|
55
|
-
anyOf: ({
|
|
56
|
-
anyOf: ({
|
|
57
|
-
type: string;
|
|
58
|
-
enum: string[];
|
|
59
|
-
} | {
|
|
60
|
-
type: string;
|
|
61
|
-
enum?: undefined;
|
|
62
|
-
})[];
|
|
63
|
-
type?: undefined;
|
|
64
|
-
} | {
|
|
65
|
-
type: string;
|
|
66
|
-
anyOf?: undefined;
|
|
67
|
-
})[];
|
|
68
|
-
};
|
|
69
|
-
breadcrumbs: {
|
|
70
|
-
anyOf: ({
|
|
71
|
-
type: string;
|
|
72
|
-
items: {
|
|
73
|
-
type: string;
|
|
74
|
-
};
|
|
75
|
-
} | {
|
|
76
|
-
type: string;
|
|
77
|
-
items?: undefined;
|
|
78
|
-
})[];
|
|
79
|
-
};
|
|
80
|
-
};
|
|
81
|
-
required: string[];
|
|
82
|
-
additionalProperties: boolean;
|
|
83
|
-
};
|
|
84
|
-
} | {
|
|
85
|
-
type: string;
|
|
86
|
-
items?: undefined;
|
|
87
|
-
})[];
|
|
88
|
-
};
|
|
89
|
-
text: {
|
|
90
|
-
type: string;
|
|
91
|
-
};
|
|
92
|
-
};
|
|
93
|
-
required: string[];
|
|
94
|
-
additionalProperties: boolean;
|
|
95
|
-
$schema: string;
|
|
96
|
-
};
|
|
97
|
-
};
|
|
98
|
-
}[];
|
|
99
|
-
onToolCall: (_toolCall: any) => undefined;
|
|
100
|
-
};
|
|
101
|
-
export declare const defaultInkeepBaseSettings: {
|
|
102
|
-
env: InkeepBaseSettings["env"];
|
|
103
|
-
apiKey: string;
|
|
104
|
-
aiApiBaseUrl: string;
|
|
105
|
-
analyticsApiBaseUrl: string;
|
|
106
|
-
shouldBypassCaptcha: false;
|
|
107
|
-
privacyPreferences: {
|
|
108
|
-
optOutAnalyticalCookies: false;
|
|
109
|
-
optOutAllAnalytics: false;
|
|
110
|
-
optOutFunctionalCookies: false;
|
|
111
|
-
};
|
|
112
|
-
tags: never[];
|
|
113
|
-
userProperties: {};
|
|
114
|
-
primaryBrandColor: string;
|
|
115
|
-
theme: {
|
|
116
|
-
colors: {
|
|
117
|
-
whiteAlpha: {
|
|
118
|
-
50: string;
|
|
119
|
-
100: string;
|
|
120
|
-
200: string;
|
|
121
|
-
300: string;
|
|
122
|
-
400: string;
|
|
123
|
-
500: string;
|
|
124
|
-
600: string;
|
|
125
|
-
700: string;
|
|
126
|
-
800: string;
|
|
127
|
-
900: string;
|
|
128
|
-
950: string;
|
|
129
|
-
1000: string;
|
|
130
|
-
};
|
|
131
|
-
blackAlpha: {
|
|
132
|
-
50: string;
|
|
133
|
-
100: string;
|
|
134
|
-
200: string;
|
|
135
|
-
300: string;
|
|
136
|
-
400: string;
|
|
137
|
-
500: string;
|
|
138
|
-
600: string;
|
|
139
|
-
700: string;
|
|
140
|
-
800: string;
|
|
141
|
-
900: string;
|
|
142
|
-
950: string;
|
|
143
|
-
1000: string;
|
|
144
|
-
};
|
|
145
|
-
gray: {
|
|
146
|
-
50: string;
|
|
147
|
-
100: string;
|
|
148
|
-
200: string;
|
|
149
|
-
300: string;
|
|
150
|
-
400: string;
|
|
151
|
-
500: string;
|
|
152
|
-
600: string;
|
|
153
|
-
700: string;
|
|
154
|
-
800: string;
|
|
155
|
-
900: string;
|
|
156
|
-
950: string;
|
|
157
|
-
1000: string;
|
|
158
|
-
};
|
|
159
|
-
grayDark: {
|
|
160
|
-
1000: string;
|
|
161
|
-
950: string;
|
|
162
|
-
900: string;
|
|
163
|
-
800: string;
|
|
164
|
-
700: string;
|
|
165
|
-
600: string;
|
|
166
|
-
500: string;
|
|
167
|
-
400: string;
|
|
168
|
-
300: string;
|
|
169
|
-
200: string;
|
|
170
|
-
100: string;
|
|
171
|
-
50: string;
|
|
172
|
-
};
|
|
173
|
-
overlay: {
|
|
174
|
-
light: string;
|
|
175
|
-
dark: string;
|
|
176
|
-
};
|
|
177
|
-
inkeepPrimary: {
|
|
178
|
-
textColorOnPrimary: string;
|
|
179
|
-
};
|
|
180
|
-
inkeepExpandedPrimary: {
|
|
181
|
-
"50": string;
|
|
182
|
-
"100": string;
|
|
183
|
-
"200": string;
|
|
184
|
-
"300": string;
|
|
185
|
-
"400": string;
|
|
186
|
-
"500": string;
|
|
187
|
-
"600": string;
|
|
188
|
-
"700": string;
|
|
189
|
-
"800": string;
|
|
190
|
-
"900": string;
|
|
191
|
-
"950": string;
|
|
192
|
-
"1000": string;
|
|
193
|
-
};
|
|
194
|
-
};
|
|
195
|
-
fontFamily: {
|
|
196
|
-
heading: string;
|
|
197
|
-
body: string;
|
|
198
|
-
mono: string;
|
|
199
|
-
};
|
|
200
|
-
fontSize: {
|
|
201
|
-
'3xs': string;
|
|
202
|
-
'2xs': string;
|
|
203
|
-
xs: string;
|
|
204
|
-
'1sm': string;
|
|
205
|
-
sm: string;
|
|
206
|
-
'2sm': string;
|
|
207
|
-
md: string;
|
|
208
|
-
lg: string;
|
|
209
|
-
xl: string;
|
|
210
|
-
'2xl': string;
|
|
211
|
-
'3xl': string;
|
|
212
|
-
'4xl': string;
|
|
213
|
-
'5xl': string;
|
|
214
|
-
'6xl': string;
|
|
215
|
-
'7xl': string;
|
|
216
|
-
'8xl': string;
|
|
217
|
-
'9xl': string;
|
|
218
|
-
};
|
|
219
|
-
zIndex: {
|
|
220
|
-
hide: number;
|
|
221
|
-
auto: string;
|
|
222
|
-
base: number;
|
|
223
|
-
start: number;
|
|
224
|
-
docked: number;
|
|
225
|
-
dropdown: number;
|
|
226
|
-
sticky: number;
|
|
227
|
-
banner: number;
|
|
228
|
-
overlay: number;
|
|
229
|
-
modal: number;
|
|
230
|
-
popover: number;
|
|
231
|
-
skipLink: number;
|
|
232
|
-
toast: number;
|
|
233
|
-
tooltip: number;
|
|
234
|
-
};
|
|
235
|
-
varsClassName: string;
|
|
236
|
-
};
|
|
237
|
-
};
|
|
238
|
-
export declare const defaultInkeepSearchSettings: {
|
|
239
|
-
shouldOpenLinksInNewTab: false;
|
|
240
|
-
maxResults: number;
|
|
241
|
-
defaultQuery: string;
|
|
242
|
-
debounceTimeMs: number;
|
|
243
|
-
tabs: string[];
|
|
244
|
-
searchQueryParamKey: string;
|
|
245
|
-
placeholder: string;
|
|
246
|
-
};
|
|
247
|
-
export type DefaultInkeepAIChatSettings = typeof defaultInkeepAIChatSettings;
|
|
248
|
-
export type DefaultInkeepBaseSettings = typeof defaultInkeepBaseSettings;
|
|
249
|
-
export type DefaultInkeepSearchSettings = typeof defaultInkeepSearchSettings;
|
|
@@ -1,249 +0,0 @@
|
|
|
1
|
-
import { InkeepBaseSettings } from '@inkeep/cxkit-types';
|
|
2
|
-
export declare const defaultInkeepAIChatSettings: {
|
|
3
|
-
model: "inkeep-qa-expert";
|
|
4
|
-
placeholder: string;
|
|
5
|
-
aiAssistantName: undefined;
|
|
6
|
-
shouldOpenLinksInNewTab: true;
|
|
7
|
-
disclaimerSettings: {
|
|
8
|
-
isEnabled: false;
|
|
9
|
-
label: string;
|
|
10
|
-
};
|
|
11
|
-
isShareButtonVisible: false;
|
|
12
|
-
isViewOnly: false;
|
|
13
|
-
exampleQuestionsLabel: string;
|
|
14
|
-
exampleQuestions: never[];
|
|
15
|
-
isFirstExampleQuestionHighlighted: true;
|
|
16
|
-
isCopyChatButtonVisible: false;
|
|
17
|
-
getHelpOptions: never[];
|
|
18
|
-
workflowsHeader: string;
|
|
19
|
-
workflows: never[];
|
|
20
|
-
toolbarButtonLabels: {
|
|
21
|
-
clear: string;
|
|
22
|
-
share: string;
|
|
23
|
-
getHelp: string;
|
|
24
|
-
stop: string;
|
|
25
|
-
copyChat: string;
|
|
26
|
-
};
|
|
27
|
-
prompts: never[];
|
|
28
|
-
tools: {
|
|
29
|
-
type: "function";
|
|
30
|
-
function: {
|
|
31
|
-
name: string;
|
|
32
|
-
description: string;
|
|
33
|
-
parameters: {
|
|
34
|
-
type: string;
|
|
35
|
-
properties: {
|
|
36
|
-
links: {
|
|
37
|
-
anyOf: ({
|
|
38
|
-
type: string;
|
|
39
|
-
items: {
|
|
40
|
-
type: string;
|
|
41
|
-
properties: {
|
|
42
|
-
label: {
|
|
43
|
-
type: string[];
|
|
44
|
-
};
|
|
45
|
-
url: {
|
|
46
|
-
type: string;
|
|
47
|
-
};
|
|
48
|
-
title: {
|
|
49
|
-
type: string[];
|
|
50
|
-
};
|
|
51
|
-
description: {
|
|
52
|
-
type: string[];
|
|
53
|
-
};
|
|
54
|
-
type: {
|
|
55
|
-
anyOf: ({
|
|
56
|
-
anyOf: ({
|
|
57
|
-
type: string;
|
|
58
|
-
enum: string[];
|
|
59
|
-
} | {
|
|
60
|
-
type: string;
|
|
61
|
-
enum?: undefined;
|
|
62
|
-
})[];
|
|
63
|
-
type?: undefined;
|
|
64
|
-
} | {
|
|
65
|
-
type: string;
|
|
66
|
-
anyOf?: undefined;
|
|
67
|
-
})[];
|
|
68
|
-
};
|
|
69
|
-
breadcrumbs: {
|
|
70
|
-
anyOf: ({
|
|
71
|
-
type: string;
|
|
72
|
-
items: {
|
|
73
|
-
type: string;
|
|
74
|
-
};
|
|
75
|
-
} | {
|
|
76
|
-
type: string;
|
|
77
|
-
items?: undefined;
|
|
78
|
-
})[];
|
|
79
|
-
};
|
|
80
|
-
};
|
|
81
|
-
required: string[];
|
|
82
|
-
additionalProperties: boolean;
|
|
83
|
-
};
|
|
84
|
-
} | {
|
|
85
|
-
type: string;
|
|
86
|
-
items?: undefined;
|
|
87
|
-
})[];
|
|
88
|
-
};
|
|
89
|
-
text: {
|
|
90
|
-
type: string;
|
|
91
|
-
};
|
|
92
|
-
};
|
|
93
|
-
required: string[];
|
|
94
|
-
additionalProperties: boolean;
|
|
95
|
-
$schema: string;
|
|
96
|
-
};
|
|
97
|
-
};
|
|
98
|
-
}[];
|
|
99
|
-
onToolCall: (_toolCall: any) => undefined;
|
|
100
|
-
};
|
|
101
|
-
export declare const defaultInkeepBaseSettings: {
|
|
102
|
-
env: InkeepBaseSettings["env"];
|
|
103
|
-
apiKey: string;
|
|
104
|
-
aiApiBaseUrl: string;
|
|
105
|
-
analyticsApiBaseUrl: string;
|
|
106
|
-
shouldBypassCaptcha: false;
|
|
107
|
-
privacyPreferences: {
|
|
108
|
-
optOutAnalyticalCookies: false;
|
|
109
|
-
optOutAllAnalytics: false;
|
|
110
|
-
optOutFunctionalCookies: false;
|
|
111
|
-
};
|
|
112
|
-
tags: never[];
|
|
113
|
-
userProperties: {};
|
|
114
|
-
primaryBrandColor: string;
|
|
115
|
-
theme: {
|
|
116
|
-
colors: {
|
|
117
|
-
whiteAlpha: {
|
|
118
|
-
50: string;
|
|
119
|
-
100: string;
|
|
120
|
-
200: string;
|
|
121
|
-
300: string;
|
|
122
|
-
400: string;
|
|
123
|
-
500: string;
|
|
124
|
-
600: string;
|
|
125
|
-
700: string;
|
|
126
|
-
800: string;
|
|
127
|
-
900: string;
|
|
128
|
-
950: string;
|
|
129
|
-
1000: string;
|
|
130
|
-
};
|
|
131
|
-
blackAlpha: {
|
|
132
|
-
50: string;
|
|
133
|
-
100: string;
|
|
134
|
-
200: string;
|
|
135
|
-
300: string;
|
|
136
|
-
400: string;
|
|
137
|
-
500: string;
|
|
138
|
-
600: string;
|
|
139
|
-
700: string;
|
|
140
|
-
800: string;
|
|
141
|
-
900: string;
|
|
142
|
-
950: string;
|
|
143
|
-
1000: string;
|
|
144
|
-
};
|
|
145
|
-
gray: {
|
|
146
|
-
50: string;
|
|
147
|
-
100: string;
|
|
148
|
-
200: string;
|
|
149
|
-
300: string;
|
|
150
|
-
400: string;
|
|
151
|
-
500: string;
|
|
152
|
-
600: string;
|
|
153
|
-
700: string;
|
|
154
|
-
800: string;
|
|
155
|
-
900: string;
|
|
156
|
-
950: string;
|
|
157
|
-
1000: string;
|
|
158
|
-
};
|
|
159
|
-
grayDark: {
|
|
160
|
-
1000: string;
|
|
161
|
-
950: string;
|
|
162
|
-
900: string;
|
|
163
|
-
800: string;
|
|
164
|
-
700: string;
|
|
165
|
-
600: string;
|
|
166
|
-
500: string;
|
|
167
|
-
400: string;
|
|
168
|
-
300: string;
|
|
169
|
-
200: string;
|
|
170
|
-
100: string;
|
|
171
|
-
50: string;
|
|
172
|
-
};
|
|
173
|
-
overlay: {
|
|
174
|
-
light: string;
|
|
175
|
-
dark: string;
|
|
176
|
-
};
|
|
177
|
-
inkeepPrimary: {
|
|
178
|
-
textColorOnPrimary: string;
|
|
179
|
-
};
|
|
180
|
-
inkeepExpandedPrimary: {
|
|
181
|
-
"50": string;
|
|
182
|
-
"100": string;
|
|
183
|
-
"200": string;
|
|
184
|
-
"300": string;
|
|
185
|
-
"400": string;
|
|
186
|
-
"500": string;
|
|
187
|
-
"600": string;
|
|
188
|
-
"700": string;
|
|
189
|
-
"800": string;
|
|
190
|
-
"900": string;
|
|
191
|
-
"950": string;
|
|
192
|
-
"1000": string;
|
|
193
|
-
};
|
|
194
|
-
};
|
|
195
|
-
fontFamily: {
|
|
196
|
-
heading: string;
|
|
197
|
-
body: string;
|
|
198
|
-
mono: string;
|
|
199
|
-
};
|
|
200
|
-
fontSize: {
|
|
201
|
-
'3xs': string;
|
|
202
|
-
'2xs': string;
|
|
203
|
-
xs: string;
|
|
204
|
-
'1sm': string;
|
|
205
|
-
sm: string;
|
|
206
|
-
'2sm': string;
|
|
207
|
-
md: string;
|
|
208
|
-
lg: string;
|
|
209
|
-
xl: string;
|
|
210
|
-
'2xl': string;
|
|
211
|
-
'3xl': string;
|
|
212
|
-
'4xl': string;
|
|
213
|
-
'5xl': string;
|
|
214
|
-
'6xl': string;
|
|
215
|
-
'7xl': string;
|
|
216
|
-
'8xl': string;
|
|
217
|
-
'9xl': string;
|
|
218
|
-
};
|
|
219
|
-
zIndex: {
|
|
220
|
-
hide: number;
|
|
221
|
-
auto: string;
|
|
222
|
-
base: number;
|
|
223
|
-
start: number;
|
|
224
|
-
docked: number;
|
|
225
|
-
dropdown: number;
|
|
226
|
-
sticky: number;
|
|
227
|
-
banner: number;
|
|
228
|
-
overlay: number;
|
|
229
|
-
modal: number;
|
|
230
|
-
popover: number;
|
|
231
|
-
skipLink: number;
|
|
232
|
-
toast: number;
|
|
233
|
-
tooltip: number;
|
|
234
|
-
};
|
|
235
|
-
varsClassName: string;
|
|
236
|
-
};
|
|
237
|
-
};
|
|
238
|
-
export declare const defaultInkeepSearchSettings: {
|
|
239
|
-
shouldOpenLinksInNewTab: false;
|
|
240
|
-
maxResults: number;
|
|
241
|
-
defaultQuery: string;
|
|
242
|
-
debounceTimeMs: number;
|
|
243
|
-
tabs: string[];
|
|
244
|
-
searchQueryParamKey: string;
|
|
245
|
-
placeholder: string;
|
|
246
|
-
};
|
|
247
|
-
export type DefaultInkeepAIChatSettings = typeof defaultInkeepAIChatSettings;
|
|
248
|
-
export type DefaultInkeepBaseSettings = typeof defaultInkeepBaseSettings;
|
|
249
|
-
export type DefaultInkeepSearchSettings = typeof defaultInkeepSearchSettings;
|
package/dist/utils/form.d.cts
DELETED
package/dist/utils/form.d.ts
DELETED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { MessageAttachment, MessageAttributes, Workflow } from '@inkeep/cxkit-types';
|
|
2
|
-
export declare function getMessageMetadata(workflow: Workflow | null, attachments: MessageAttachment[], isNewChat: boolean): {
|
|
3
|
-
context: string | undefined;
|
|
4
|
-
attributes: MessageAttributes;
|
|
5
|
-
} | undefined;
|
|
6
|
-
export declare function serializeWorkflow(workflow: Workflow): string | undefined;
|
|
7
|
-
export declare function stringifyAttachments(attachments: MessageAttachment[] | undefined): string | undefined;
|
|
8
|
-
export declare function serializeAttachments(_attachments: MessageAttachment[]): string | undefined;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { MessageAttachment, MessageAttributes, Workflow } from '@inkeep/cxkit-types';
|
|
2
|
-
export declare function getMessageMetadata(workflow: Workflow | null, attachments: MessageAttachment[], isNewChat: boolean): {
|
|
3
|
-
context: string | undefined;
|
|
4
|
-
attributes: MessageAttributes;
|
|
5
|
-
} | undefined;
|
|
6
|
-
export declare function serializeWorkflow(workflow: Workflow): string | undefined;
|
|
7
|
-
export declare function stringifyAttachments(attachments: MessageAttachment[] | undefined): string | undefined;
|
|
8
|
-
export declare function serializeAttachments(_attachments: MessageAttachment[]): string | undefined;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { SearchHit } from '@inkeep/cxkit-types';
|
|
2
|
-
interface GraphQLResponseData {
|
|
3
|
-
search: {
|
|
4
|
-
searchHits: SearchHit[];
|
|
5
|
-
};
|
|
6
|
-
}
|
|
7
|
-
export declare function graphqlRequest(endpoint: string, query: string, variables: Record<string, unknown>, headers: Record<string, string>): Promise<GraphQLResponseData>;
|
|
8
|
-
export {};
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { SearchHit } from '@inkeep/cxkit-types';
|
|
2
|
-
interface GraphQLResponseData {
|
|
3
|
-
search: {
|
|
4
|
-
searchHits: SearchHit[];
|
|
5
|
-
};
|
|
6
|
-
}
|
|
7
|
-
export declare function graphqlRequest(endpoint: string, query: string, variables: Record<string, unknown>, headers: Record<string, string>): Promise<GraphQLResponseData>;
|
|
8
|
-
export {};
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
interface Props {
|
|
2
|
-
[key: string]: any;
|
|
3
|
-
}
|
|
4
|
-
type TupleTypes<T extends any[]> = T[number];
|
|
5
|
-
type UnionToIntersection<U> = (U extends any ? (k: U) => void : never) extends (k: infer I) => void ? I : never;
|
|
6
|
-
export declare function mergeProps<T extends Props>(...args: T[]): UnionToIntersection<TupleTypes<T[]>>;
|
|
7
|
-
export {};
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
interface Props {
|
|
2
|
-
[key: string]: any;
|
|
3
|
-
}
|
|
4
|
-
type TupleTypes<T extends any[]> = T[number];
|
|
5
|
-
type UnionToIntersection<U> = (U extends any ? (k: U) => void : never) extends (k: infer I) => void ? I : never;
|
|
6
|
-
export declare function mergeProps<T extends Props>(...args: T[]): UnionToIntersection<TupleTypes<T[]>>;
|
|
7
|
-
export {};
|
package/dist/utils/misc.d.cts
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { ConversationResponse, Message } from '@inkeep/cxkit-types';
|
|
2
|
-
export declare const parseIfJson: (value: ConversationResponse["messages"][number]["content"]) => any;
|
|
3
|
-
export declare const callAll: <T extends (...a: any[]) => void>(...fns: (T | undefined)[]) => (...a: Parameters<T>) => void;
|
|
4
|
-
export declare const isString: (v: any) => v is string;
|
|
5
|
-
/**
|
|
6
|
-
* Converts camelCase or PascalCase strings to kebab-case.
|
|
7
|
-
*/
|
|
8
|
-
export declare function toKebabCase(input: string): string;
|
|
9
|
-
export type Booleanish = boolean | 'true' | 'false';
|
|
10
|
-
export declare const dataAttr: (guard: boolean | undefined) => Booleanish;
|
|
11
|
-
export declare function getInitials(name: string): string;
|
|
12
|
-
export declare function maybeRender<T>(children: ((param: T) => React.ReactNode) | React.ReactNode, param: T): React.ReactNode;
|
|
13
|
-
export declare const getMessageContent: (message: Message) => string;
|
package/dist/utils/misc.d.ts
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { ConversationResponse, Message } from '@inkeep/cxkit-types';
|
|
2
|
-
export declare const parseIfJson: (value: ConversationResponse["messages"][number]["content"]) => any;
|
|
3
|
-
export declare const callAll: <T extends (...a: any[]) => void>(...fns: (T | undefined)[]) => (...a: Parameters<T>) => void;
|
|
4
|
-
export declare const isString: (v: any) => v is string;
|
|
5
|
-
/**
|
|
6
|
-
* Converts camelCase or PascalCase strings to kebab-case.
|
|
7
|
-
*/
|
|
8
|
-
export declare function toKebabCase(input: string): string;
|
|
9
|
-
export type Booleanish = boolean | 'true' | 'false';
|
|
10
|
-
export declare const dataAttr: (guard: boolean | undefined) => Booleanish;
|
|
11
|
-
export declare function getInitials(name: string): string;
|
|
12
|
-
export declare function maybeRender<T>(children: ((param: T) => React.ReactNode) | React.ReactNode, param: T): React.ReactNode;
|
|
13
|
-
export declare const getMessageContent: (message: Message) => string;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const resetQueryParams: () => void;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const resetQueryParams: () => void;
|