@inkeep/cxkit-react 0.5.15 → 0.5.16
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/index.d.cts +182 -2
- package/dist/index.d.ts +182 -2
- package/package.json +4 -4
- package/dist/components/chat-button.d.cts +0 -14
- package/dist/components/chat-button.d.ts +0 -14
- package/dist/components/embedded-chat.d.cts +0 -11
- package/dist/components/embedded-chat.d.ts +0 -11
- package/dist/components/embedded-search-and-chat.d.cts +0 -40
- package/dist/components/embedded-search-and-chat.d.ts +0 -40
- package/dist/components/embedded-search-and-chat.impl.d.cts +0 -9
- package/dist/components/embedded-search-and-chat.impl.d.ts +0 -9
- package/dist/components/embedded-search.d.cts +0 -17
- package/dist/components/embedded-search.d.ts +0 -17
- package/dist/components/index.d.cts +0 -10
- package/dist/components/index.d.ts +0 -10
- package/dist/components/intelligent-form.d.cts +0 -8
- package/dist/components/intelligent-form.d.ts +0 -8
- package/dist/components/modal.chat.d.cts +0 -6
- package/dist/components/modal.chat.d.ts +0 -6
- package/dist/components/modal.d.cts +0 -23
- package/dist/components/modal.d.ts +0 -23
- package/dist/components/modal.search-and-chat.d.cts +0 -6
- package/dist/components/modal.search-and-chat.d.ts +0 -6
- package/dist/components/modal.search.d.cts +0 -6
- package/dist/components/modal.search.d.ts +0 -6
- package/dist/components/searchbar.d.cts +0 -13
- package/dist/components/searchbar.d.ts +0 -13
- package/dist/components/widget-toggle.d.cts +0 -14
- package/dist/components/widget-toggle.d.ts +0 -14
- package/dist/utils.d.cts +0 -6
- package/dist/utils.d.ts +0 -6
package/dist/index.d.cts
CHANGED
|
@@ -1,2 +1,182 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
import { EmbeddedChatProviderProps } from '@inkeep/cxkit-styled';
|
|
2
|
+
import { EmbeddedSearchProviderProps } from '@inkeep/cxkit-styled';
|
|
3
|
+
import { InkeepAIChatSettings } from '@inkeep/cxkit-types';
|
|
4
|
+
import { InkeepConfig } from '@inkeep/cxkit-types';
|
|
5
|
+
import { InkeepModalSettings } from '@inkeep/cxkit-types';
|
|
6
|
+
import { IntelligentFormSettings } from '@inkeep/cxkit-types';
|
|
7
|
+
import { JSX } from 'react/jsx-runtime';
|
|
8
|
+
import { ModalViewTypes } from '@inkeep/cxkit-types';
|
|
9
|
+
import { PropsWithChildren } from 'react';
|
|
10
|
+
import { RefObject } from 'react';
|
|
11
|
+
import { RootProviderProps } from '@inkeep/cxkit-styled';
|
|
12
|
+
import { WebWidgetInteractionType } from '@inkeep/cxkit-styled';
|
|
13
|
+
import { WidgetView } from '@inkeep/cxkit-types';
|
|
14
|
+
|
|
15
|
+
export declare function ChatButtonImpl(props: ChatButtonImplProps): JSX.Element;
|
|
16
|
+
|
|
17
|
+
declare interface ChatButtonImplProps extends Pick<InkeepChatButtonProps, 'label' | 'avatar'> {
|
|
18
|
+
setOpen: React.Dispatch<React.SetStateAction<boolean>>;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
declare type ChatConfig = Pick<InkeepConfig, 'baseSettings' | 'aiChatSettings'>;
|
|
22
|
+
|
|
23
|
+
export declare function InkeepChatButton(props: InkeepChatButtonProps): JSX.Element;
|
|
24
|
+
|
|
25
|
+
export declare interface InkeepChatButtonProps extends Omit<InkeepEmbeddedSearchAndChatProps, 'onToggleView'> {
|
|
26
|
+
modalSettings?: Omit<InkeepModalSettings, 'isOpen' | 'onOpenChange'>;
|
|
27
|
+
label?: string;
|
|
28
|
+
avatar?: InkeepAIChatSettings['aiAssistantAvatar'];
|
|
29
|
+
canToggleView?: boolean;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
export declare function InkeepEmbeddedChat(props: InkeepEmbeddedChatProps): JSX.Element;
|
|
33
|
+
|
|
34
|
+
export declare function InkeepEmbeddedChatImpl(props: InkeepEmbeddedChatImplProps): JSX.Element;
|
|
35
|
+
|
|
36
|
+
export declare function InkeepEmbeddedChatImplContent(props: InkeepEmbeddedChatImplProps): JSX.Element;
|
|
37
|
+
|
|
38
|
+
declare type InkeepEmbeddedChatImplProps = EmbeddedChatProviderProps & WidgetView;
|
|
39
|
+
|
|
40
|
+
export declare type InkeepEmbeddedChatProps = InkeepEmbeddedChatImplProps & Partial<ChatConfig>;
|
|
41
|
+
|
|
42
|
+
export declare function InkeepEmbeddedChatProvider(props: PropsWithChildren<InkeepEmbeddedChatImplProps>): JSX.Element;
|
|
43
|
+
|
|
44
|
+
export declare function InkeepEmbeddedSearch(props: InkeepEmbeddedSearchProps): JSX.Element;
|
|
45
|
+
|
|
46
|
+
export declare function InkeepEmbeddedSearchAndChat(props: InkeepEmbeddedSearchAndChatProps): JSX.Element;
|
|
47
|
+
|
|
48
|
+
export declare interface InkeepEmbeddedSearchAndChatFunctions {
|
|
49
|
+
setView: (view: ModalViewTypes) => void;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
export declare function InkeepEmbeddedSearchAndChatImpl(props: InkeepEmbeddedSearchAndChatImplProps): JSX.Element;
|
|
53
|
+
|
|
54
|
+
declare type InkeepEmbeddedSearchAndChatImplProps = Omit<ReturnType<typeof useWidgetImpl>, 'config'>;
|
|
55
|
+
|
|
56
|
+
export declare interface InkeepEmbeddedSearchAndChatProps extends Partial<Omit<InkeepConfig, 'componentType'>>, WidgetView {
|
|
57
|
+
/**
|
|
58
|
+
* The default view to show when the widget is loaded.
|
|
59
|
+
* @default 'search'
|
|
60
|
+
*/
|
|
61
|
+
defaultView?: ModalViewTypes;
|
|
62
|
+
/**
|
|
63
|
+
* Whether to always open the widget in the default view. (Modal only)
|
|
64
|
+
*
|
|
65
|
+
* By default, subsequent opens will remember the last view.
|
|
66
|
+
* This prop will force the widget to always open in the default view.
|
|
67
|
+
*
|
|
68
|
+
* @default false
|
|
69
|
+
*/
|
|
70
|
+
forceDefaultView?: boolean;
|
|
71
|
+
/**
|
|
72
|
+
* Whether to show the Ask AI card.
|
|
73
|
+
* @default false
|
|
74
|
+
*/
|
|
75
|
+
shouldShowAskAICard?: boolean;
|
|
76
|
+
/**
|
|
77
|
+
* Whether to auto focus the input.
|
|
78
|
+
* @default false
|
|
79
|
+
*/
|
|
80
|
+
shouldAutoFocusInput?: boolean;
|
|
81
|
+
/**
|
|
82
|
+
* A ref to the component functions.
|
|
83
|
+
*/
|
|
84
|
+
ref?: RefObject<InkeepEmbeddedSearchAndChatFunctions>;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
export declare function InkeepEmbeddedSearchImpl(props: InkeepEmbeddedSearchImplProps): JSX.Element;
|
|
88
|
+
|
|
89
|
+
export declare function InkeepEmbeddedSearchImplContent(props: InkeepEmbeddedSearchImplProps): JSX.Element;
|
|
90
|
+
|
|
91
|
+
declare type InkeepEmbeddedSearchImplProps = EmbeddedSearchProviderProps & WidgetView & {
|
|
92
|
+
/**
|
|
93
|
+
* Whether to show the Ask AI card.
|
|
94
|
+
* @default false
|
|
95
|
+
*/
|
|
96
|
+
shouldShowAskAICard?: boolean;
|
|
97
|
+
};
|
|
98
|
+
|
|
99
|
+
export declare type InkeepEmbeddedSearchProps = InkeepEmbeddedSearchImplProps & Partial<SearchConfig>;
|
|
100
|
+
|
|
101
|
+
export declare function InkeepEmbeddedSearchProvider(props: PropsWithChildren<InkeepEmbeddedSearchImplProps>): JSX.Element;
|
|
102
|
+
|
|
103
|
+
export declare function InkeepIntelligentForm(props: InkeepIntelligentFormProps): JSX.Element;
|
|
104
|
+
|
|
105
|
+
export declare function InkeepIntelligentFormImpl(props: InkeepIntelligentFormImplProps): JSX.Element;
|
|
106
|
+
|
|
107
|
+
declare interface InkeepIntelligentFormImplProps {
|
|
108
|
+
formSettings: IntelligentFormSettings;
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
export declare type InkeepIntelligentFormProps = InkeepIntelligentFormImplProps & Partial<Pick<InkeepConfig, 'baseSettings'>>;
|
|
112
|
+
|
|
113
|
+
export declare function InkeepModal(props: InkeepModalProps): JSX.Element;
|
|
114
|
+
|
|
115
|
+
export declare function InkeepModalChat(props: InkeepModalChatProps): JSX.Element;
|
|
116
|
+
|
|
117
|
+
export declare interface InkeepModalChatProps extends Omit<InkeepEmbeddedChatProps, 'onToggleView'> {
|
|
118
|
+
modalSettings?: InkeepModalSettings;
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
export declare interface InkeepModalProps extends ModalConfig {
|
|
122
|
+
/**
|
|
123
|
+
* The content of the modal.
|
|
124
|
+
*/
|
|
125
|
+
children: React.ReactNode;
|
|
126
|
+
/**
|
|
127
|
+
* The interaction type for the modal widget.
|
|
128
|
+
*/
|
|
129
|
+
componentType: (typeof WebWidgetInteractionType)[keyof typeof WebWidgetInteractionType];
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
export declare function InkeepModalSearch(props: InkeepModalSearchProps): JSX.Element;
|
|
133
|
+
|
|
134
|
+
export declare function InkeepModalSearchAndChat(props: InkeepModalSearchAndChatProps): JSX.Element;
|
|
135
|
+
|
|
136
|
+
export declare interface InkeepModalSearchAndChatProps extends InkeepEmbeddedSearchAndChatProps {
|
|
137
|
+
modalSettings?: InkeepModalSettings;
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
export declare interface InkeepModalSearchProps extends Omit<InkeepEmbeddedSearchProps, 'onToggleView'> {
|
|
141
|
+
modalSettings?: InkeepModalSettings;
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
export declare function InkeepSearchBar(props: InkeepSearchBarProps): JSX.Element;
|
|
145
|
+
|
|
146
|
+
export declare interface InkeepSearchBarProps extends Omit<InkeepEmbeddedSearchAndChatProps, 'onToggleView'> {
|
|
147
|
+
modalSettings?: Omit<InkeepModalSettings, 'isOpen' | 'onOpenChange'>;
|
|
148
|
+
canToggleView?: boolean;
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
declare interface ModalConfig extends RootConfig {
|
|
152
|
+
/**
|
|
153
|
+
* The configuration for the modal.
|
|
154
|
+
*/
|
|
155
|
+
modalSettings?: InkeepModalSettings;
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
export declare function ModalContent(props: PropsWithChildren): JSX.Element;
|
|
159
|
+
|
|
160
|
+
declare type RootConfig = RootProviderProps['config'];
|
|
161
|
+
|
|
162
|
+
export declare function SearchBarImpl(props: SearchBarImplProps): JSX.Element;
|
|
163
|
+
|
|
164
|
+
declare interface SearchBarImplProps {
|
|
165
|
+
setOpen: React.Dispatch<React.SetStateAction<boolean>>;
|
|
166
|
+
modalSettings: InkeepSearchBarProps['modalSettings'];
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
declare type SearchConfig = Pick<InkeepConfig, 'baseSettings' | 'searchSettings'>;
|
|
170
|
+
|
|
171
|
+
declare function useWidgetImpl<T extends InkeepEmbeddedSearchAndChatProps>(props: T): UseWidgetImpReturn;
|
|
172
|
+
|
|
173
|
+
declare interface UseWidgetImpReturn extends InkeepEmbeddedSearchAndChatProps {
|
|
174
|
+
config: InkeepConfig;
|
|
175
|
+
view: ModalViewTypes;
|
|
176
|
+
setView: (view: ModalViewTypes) => void;
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
|
|
180
|
+
export * from "@inkeep/cxkit-styled";
|
|
181
|
+
|
|
182
|
+
export { }
|
package/dist/index.d.ts
CHANGED
|
@@ -1,2 +1,182 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
import { EmbeddedChatProviderProps } from '@inkeep/cxkit-styled';
|
|
2
|
+
import { EmbeddedSearchProviderProps } from '@inkeep/cxkit-styled';
|
|
3
|
+
import { InkeepAIChatSettings } from '@inkeep/cxkit-types';
|
|
4
|
+
import { InkeepConfig } from '@inkeep/cxkit-types';
|
|
5
|
+
import { InkeepModalSettings } from '@inkeep/cxkit-types';
|
|
6
|
+
import { IntelligentFormSettings } from '@inkeep/cxkit-types';
|
|
7
|
+
import { JSX } from 'react/jsx-runtime';
|
|
8
|
+
import { ModalViewTypes } from '@inkeep/cxkit-types';
|
|
9
|
+
import { PropsWithChildren } from 'react';
|
|
10
|
+
import { RefObject } from 'react';
|
|
11
|
+
import { RootProviderProps } from '@inkeep/cxkit-styled';
|
|
12
|
+
import { WebWidgetInteractionType } from '@inkeep/cxkit-styled';
|
|
13
|
+
import { WidgetView } from '@inkeep/cxkit-types';
|
|
14
|
+
|
|
15
|
+
export declare function ChatButtonImpl(props: ChatButtonImplProps): JSX.Element;
|
|
16
|
+
|
|
17
|
+
declare interface ChatButtonImplProps extends Pick<InkeepChatButtonProps, 'label' | 'avatar'> {
|
|
18
|
+
setOpen: React.Dispatch<React.SetStateAction<boolean>>;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
declare type ChatConfig = Pick<InkeepConfig, 'baseSettings' | 'aiChatSettings'>;
|
|
22
|
+
|
|
23
|
+
export declare function InkeepChatButton(props: InkeepChatButtonProps): JSX.Element;
|
|
24
|
+
|
|
25
|
+
export declare interface InkeepChatButtonProps extends Omit<InkeepEmbeddedSearchAndChatProps, 'onToggleView'> {
|
|
26
|
+
modalSettings?: Omit<InkeepModalSettings, 'isOpen' | 'onOpenChange'>;
|
|
27
|
+
label?: string;
|
|
28
|
+
avatar?: InkeepAIChatSettings['aiAssistantAvatar'];
|
|
29
|
+
canToggleView?: boolean;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
export declare function InkeepEmbeddedChat(props: InkeepEmbeddedChatProps): JSX.Element;
|
|
33
|
+
|
|
34
|
+
export declare function InkeepEmbeddedChatImpl(props: InkeepEmbeddedChatImplProps): JSX.Element;
|
|
35
|
+
|
|
36
|
+
export declare function InkeepEmbeddedChatImplContent(props: InkeepEmbeddedChatImplProps): JSX.Element;
|
|
37
|
+
|
|
38
|
+
declare type InkeepEmbeddedChatImplProps = EmbeddedChatProviderProps & WidgetView;
|
|
39
|
+
|
|
40
|
+
export declare type InkeepEmbeddedChatProps = InkeepEmbeddedChatImplProps & Partial<ChatConfig>;
|
|
41
|
+
|
|
42
|
+
export declare function InkeepEmbeddedChatProvider(props: PropsWithChildren<InkeepEmbeddedChatImplProps>): JSX.Element;
|
|
43
|
+
|
|
44
|
+
export declare function InkeepEmbeddedSearch(props: InkeepEmbeddedSearchProps): JSX.Element;
|
|
45
|
+
|
|
46
|
+
export declare function InkeepEmbeddedSearchAndChat(props: InkeepEmbeddedSearchAndChatProps): JSX.Element;
|
|
47
|
+
|
|
48
|
+
export declare interface InkeepEmbeddedSearchAndChatFunctions {
|
|
49
|
+
setView: (view: ModalViewTypes) => void;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
export declare function InkeepEmbeddedSearchAndChatImpl(props: InkeepEmbeddedSearchAndChatImplProps): JSX.Element;
|
|
53
|
+
|
|
54
|
+
declare type InkeepEmbeddedSearchAndChatImplProps = Omit<ReturnType<typeof useWidgetImpl>, 'config'>;
|
|
55
|
+
|
|
56
|
+
export declare interface InkeepEmbeddedSearchAndChatProps extends Partial<Omit<InkeepConfig, 'componentType'>>, WidgetView {
|
|
57
|
+
/**
|
|
58
|
+
* The default view to show when the widget is loaded.
|
|
59
|
+
* @default 'search'
|
|
60
|
+
*/
|
|
61
|
+
defaultView?: ModalViewTypes;
|
|
62
|
+
/**
|
|
63
|
+
* Whether to always open the widget in the default view. (Modal only)
|
|
64
|
+
*
|
|
65
|
+
* By default, subsequent opens will remember the last view.
|
|
66
|
+
* This prop will force the widget to always open in the default view.
|
|
67
|
+
*
|
|
68
|
+
* @default false
|
|
69
|
+
*/
|
|
70
|
+
forceDefaultView?: boolean;
|
|
71
|
+
/**
|
|
72
|
+
* Whether to show the Ask AI card.
|
|
73
|
+
* @default false
|
|
74
|
+
*/
|
|
75
|
+
shouldShowAskAICard?: boolean;
|
|
76
|
+
/**
|
|
77
|
+
* Whether to auto focus the input.
|
|
78
|
+
* @default false
|
|
79
|
+
*/
|
|
80
|
+
shouldAutoFocusInput?: boolean;
|
|
81
|
+
/**
|
|
82
|
+
* A ref to the component functions.
|
|
83
|
+
*/
|
|
84
|
+
ref?: RefObject<InkeepEmbeddedSearchAndChatFunctions>;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
export declare function InkeepEmbeddedSearchImpl(props: InkeepEmbeddedSearchImplProps): JSX.Element;
|
|
88
|
+
|
|
89
|
+
export declare function InkeepEmbeddedSearchImplContent(props: InkeepEmbeddedSearchImplProps): JSX.Element;
|
|
90
|
+
|
|
91
|
+
declare type InkeepEmbeddedSearchImplProps = EmbeddedSearchProviderProps & WidgetView & {
|
|
92
|
+
/**
|
|
93
|
+
* Whether to show the Ask AI card.
|
|
94
|
+
* @default false
|
|
95
|
+
*/
|
|
96
|
+
shouldShowAskAICard?: boolean;
|
|
97
|
+
};
|
|
98
|
+
|
|
99
|
+
export declare type InkeepEmbeddedSearchProps = InkeepEmbeddedSearchImplProps & Partial<SearchConfig>;
|
|
100
|
+
|
|
101
|
+
export declare function InkeepEmbeddedSearchProvider(props: PropsWithChildren<InkeepEmbeddedSearchImplProps>): JSX.Element;
|
|
102
|
+
|
|
103
|
+
export declare function InkeepIntelligentForm(props: InkeepIntelligentFormProps): JSX.Element;
|
|
104
|
+
|
|
105
|
+
export declare function InkeepIntelligentFormImpl(props: InkeepIntelligentFormImplProps): JSX.Element;
|
|
106
|
+
|
|
107
|
+
declare interface InkeepIntelligentFormImplProps {
|
|
108
|
+
formSettings: IntelligentFormSettings;
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
export declare type InkeepIntelligentFormProps = InkeepIntelligentFormImplProps & Partial<Pick<InkeepConfig, 'baseSettings'>>;
|
|
112
|
+
|
|
113
|
+
export declare function InkeepModal(props: InkeepModalProps): JSX.Element;
|
|
114
|
+
|
|
115
|
+
export declare function InkeepModalChat(props: InkeepModalChatProps): JSX.Element;
|
|
116
|
+
|
|
117
|
+
export declare interface InkeepModalChatProps extends Omit<InkeepEmbeddedChatProps, 'onToggleView'> {
|
|
118
|
+
modalSettings?: InkeepModalSettings;
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
export declare interface InkeepModalProps extends ModalConfig {
|
|
122
|
+
/**
|
|
123
|
+
* The content of the modal.
|
|
124
|
+
*/
|
|
125
|
+
children: React.ReactNode;
|
|
126
|
+
/**
|
|
127
|
+
* The interaction type for the modal widget.
|
|
128
|
+
*/
|
|
129
|
+
componentType: (typeof WebWidgetInteractionType)[keyof typeof WebWidgetInteractionType];
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
export declare function InkeepModalSearch(props: InkeepModalSearchProps): JSX.Element;
|
|
133
|
+
|
|
134
|
+
export declare function InkeepModalSearchAndChat(props: InkeepModalSearchAndChatProps): JSX.Element;
|
|
135
|
+
|
|
136
|
+
export declare interface InkeepModalSearchAndChatProps extends InkeepEmbeddedSearchAndChatProps {
|
|
137
|
+
modalSettings?: InkeepModalSettings;
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
export declare interface InkeepModalSearchProps extends Omit<InkeepEmbeddedSearchProps, 'onToggleView'> {
|
|
141
|
+
modalSettings?: InkeepModalSettings;
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
export declare function InkeepSearchBar(props: InkeepSearchBarProps): JSX.Element;
|
|
145
|
+
|
|
146
|
+
export declare interface InkeepSearchBarProps extends Omit<InkeepEmbeddedSearchAndChatProps, 'onToggleView'> {
|
|
147
|
+
modalSettings?: Omit<InkeepModalSettings, 'isOpen' | 'onOpenChange'>;
|
|
148
|
+
canToggleView?: boolean;
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
declare interface ModalConfig extends RootConfig {
|
|
152
|
+
/**
|
|
153
|
+
* The configuration for the modal.
|
|
154
|
+
*/
|
|
155
|
+
modalSettings?: InkeepModalSettings;
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
export declare function ModalContent(props: PropsWithChildren): JSX.Element;
|
|
159
|
+
|
|
160
|
+
declare type RootConfig = RootProviderProps['config'];
|
|
161
|
+
|
|
162
|
+
export declare function SearchBarImpl(props: SearchBarImplProps): JSX.Element;
|
|
163
|
+
|
|
164
|
+
declare interface SearchBarImplProps {
|
|
165
|
+
setOpen: React.Dispatch<React.SetStateAction<boolean>>;
|
|
166
|
+
modalSettings: InkeepSearchBarProps['modalSettings'];
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
declare type SearchConfig = Pick<InkeepConfig, 'baseSettings' | 'searchSettings'>;
|
|
170
|
+
|
|
171
|
+
declare function useWidgetImpl<T extends InkeepEmbeddedSearchAndChatProps>(props: T): UseWidgetImpReturn;
|
|
172
|
+
|
|
173
|
+
declare interface UseWidgetImpReturn extends InkeepEmbeddedSearchAndChatProps {
|
|
174
|
+
config: InkeepConfig;
|
|
175
|
+
view: ModalViewTypes;
|
|
176
|
+
setView: (view: ModalViewTypes) => void;
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
|
|
180
|
+
export * from "@inkeep/cxkit-styled";
|
|
181
|
+
|
|
182
|
+
export { }
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@inkeep/cxkit-react",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.16",
|
|
4
4
|
"description": "",
|
|
5
5
|
"license": "Inkeep, Inc. Customer License (IICL) v1.1",
|
|
6
6
|
"homepage": "",
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
},
|
|
21
21
|
"sideEffects": false,
|
|
22
22
|
"dependencies": {
|
|
23
|
-
"@inkeep/cxkit-styled": "0.5.
|
|
23
|
+
"@inkeep/cxkit-styled": "0.5.16"
|
|
24
24
|
},
|
|
25
25
|
"devDependencies": {
|
|
26
26
|
"@biomejs/biome": "1.9.4",
|
|
@@ -43,8 +43,8 @@
|
|
|
43
43
|
"typescript": "5.7.3",
|
|
44
44
|
"vite": "5.4.11",
|
|
45
45
|
"vite-plugin-dts": "4.4.0",
|
|
46
|
-
"@inkeep/cxkit-color-mode": "0.5.
|
|
47
|
-
"@inkeep/cxkit-types": "0.5.
|
|
46
|
+
"@inkeep/cxkit-color-mode": "0.5.16",
|
|
47
|
+
"@inkeep/cxkit-types": "0.5.16"
|
|
48
48
|
},
|
|
49
49
|
"module": "dist/index.js",
|
|
50
50
|
"types": "dist/index.d.ts",
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { InkeepAIChatSettings, InkeepModalSettings } from '@inkeep/cxkit-types';
|
|
2
|
-
import { InkeepEmbeddedSearchAndChatProps } from './embedded-search-and-chat';
|
|
3
|
-
export interface InkeepChatButtonProps extends Omit<InkeepEmbeddedSearchAndChatProps, 'onToggleView'> {
|
|
4
|
-
modalSettings?: Omit<InkeepModalSettings, 'isOpen' | 'onOpenChange'>;
|
|
5
|
-
label?: string;
|
|
6
|
-
avatar?: InkeepAIChatSettings['aiAssistantAvatar'];
|
|
7
|
-
canToggleView?: boolean;
|
|
8
|
-
}
|
|
9
|
-
export declare function InkeepChatButton(props: InkeepChatButtonProps): import("react/jsx-runtime").JSX.Element;
|
|
10
|
-
interface ChatButtonImplProps extends Pick<InkeepChatButtonProps, 'label' | 'avatar'> {
|
|
11
|
-
setOpen: React.Dispatch<React.SetStateAction<boolean>>;
|
|
12
|
-
}
|
|
13
|
-
export declare function ChatButtonImpl(props: ChatButtonImplProps): import("react/jsx-runtime").JSX.Element;
|
|
14
|
-
export {};
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { InkeepAIChatSettings, InkeepModalSettings } from '@inkeep/cxkit-types';
|
|
2
|
-
import { InkeepEmbeddedSearchAndChatProps } from './embedded-search-and-chat';
|
|
3
|
-
export interface InkeepChatButtonProps extends Omit<InkeepEmbeddedSearchAndChatProps, 'onToggleView'> {
|
|
4
|
-
modalSettings?: Omit<InkeepModalSettings, 'isOpen' | 'onOpenChange'>;
|
|
5
|
-
label?: string;
|
|
6
|
-
avatar?: InkeepAIChatSettings['aiAssistantAvatar'];
|
|
7
|
-
canToggleView?: boolean;
|
|
8
|
-
}
|
|
9
|
-
export declare function InkeepChatButton(props: InkeepChatButtonProps): import("react/jsx-runtime").JSX.Element;
|
|
10
|
-
interface ChatButtonImplProps extends Pick<InkeepChatButtonProps, 'label' | 'avatar'> {
|
|
11
|
-
setOpen: React.Dispatch<React.SetStateAction<boolean>>;
|
|
12
|
-
}
|
|
13
|
-
export declare function ChatButtonImpl(props: ChatButtonImplProps): import("react/jsx-runtime").JSX.Element;
|
|
14
|
-
export {};
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { WidgetView, InkeepConfig } from '@inkeep/cxkit-types';
|
|
2
|
-
import { PropsWithChildren } from 'react';
|
|
3
|
-
import { EmbeddedChatProviderProps } from '@inkeep/cxkit-styled';
|
|
4
|
-
type ChatConfig = Pick<InkeepConfig, 'baseSettings' | 'aiChatSettings'>;
|
|
5
|
-
type InkeepEmbeddedChatImplProps = EmbeddedChatProviderProps & WidgetView;
|
|
6
|
-
export type InkeepEmbeddedChatProps = InkeepEmbeddedChatImplProps & Partial<ChatConfig>;
|
|
7
|
-
export declare function InkeepEmbeddedChat(props: InkeepEmbeddedChatProps): import("react/jsx-runtime").JSX.Element;
|
|
8
|
-
export declare function InkeepEmbeddedChatProvider(props: PropsWithChildren<InkeepEmbeddedChatImplProps>): import("react/jsx-runtime").JSX.Element;
|
|
9
|
-
export declare function InkeepEmbeddedChatImpl(props: InkeepEmbeddedChatImplProps): import("react/jsx-runtime").JSX.Element;
|
|
10
|
-
export declare function InkeepEmbeddedChatImplContent(props: InkeepEmbeddedChatImplProps): import("react/jsx-runtime").JSX.Element;
|
|
11
|
-
export {};
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { WidgetView, InkeepConfig } from '@inkeep/cxkit-types';
|
|
2
|
-
import { PropsWithChildren } from 'react';
|
|
3
|
-
import { EmbeddedChatProviderProps } from '@inkeep/cxkit-styled';
|
|
4
|
-
type ChatConfig = Pick<InkeepConfig, 'baseSettings' | 'aiChatSettings'>;
|
|
5
|
-
type InkeepEmbeddedChatImplProps = EmbeddedChatProviderProps & WidgetView;
|
|
6
|
-
export type InkeepEmbeddedChatProps = InkeepEmbeddedChatImplProps & Partial<ChatConfig>;
|
|
7
|
-
export declare function InkeepEmbeddedChat(props: InkeepEmbeddedChatProps): import("react/jsx-runtime").JSX.Element;
|
|
8
|
-
export declare function InkeepEmbeddedChatProvider(props: PropsWithChildren<InkeepEmbeddedChatImplProps>): import("react/jsx-runtime").JSX.Element;
|
|
9
|
-
export declare function InkeepEmbeddedChatImpl(props: InkeepEmbeddedChatImplProps): import("react/jsx-runtime").JSX.Element;
|
|
10
|
-
export declare function InkeepEmbeddedChatImplContent(props: InkeepEmbeddedChatImplProps): import("react/jsx-runtime").JSX.Element;
|
|
11
|
-
export {};
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
import { useWidgetImpl } from './embedded-search-and-chat.impl';
|
|
2
|
-
import { ModalViewTypes, InkeepConfig, WidgetView } from '@inkeep/cxkit-types';
|
|
3
|
-
import { RefObject } from 'react';
|
|
4
|
-
export interface InkeepEmbeddedSearchAndChatFunctions {
|
|
5
|
-
setView: (view: ModalViewTypes) => void;
|
|
6
|
-
}
|
|
7
|
-
export interface InkeepEmbeddedSearchAndChatProps extends Partial<Omit<InkeepConfig, 'componentType'>>, WidgetView {
|
|
8
|
-
/**
|
|
9
|
-
* The default view to show when the widget is loaded.
|
|
10
|
-
* @default 'search'
|
|
11
|
-
*/
|
|
12
|
-
defaultView?: ModalViewTypes;
|
|
13
|
-
/**
|
|
14
|
-
* Whether to always open the widget in the default view. (Modal only)
|
|
15
|
-
*
|
|
16
|
-
* By default, subsequent opens will remember the last view.
|
|
17
|
-
* This prop will force the widget to always open in the default view.
|
|
18
|
-
*
|
|
19
|
-
* @default false
|
|
20
|
-
*/
|
|
21
|
-
forceDefaultView?: boolean;
|
|
22
|
-
/**
|
|
23
|
-
* Whether to show the Ask AI card.
|
|
24
|
-
* @default false
|
|
25
|
-
*/
|
|
26
|
-
shouldShowAskAICard?: boolean;
|
|
27
|
-
/**
|
|
28
|
-
* Whether to auto focus the input.
|
|
29
|
-
* @default false
|
|
30
|
-
*/
|
|
31
|
-
shouldAutoFocusInput?: boolean;
|
|
32
|
-
/**
|
|
33
|
-
* A ref to the component functions.
|
|
34
|
-
*/
|
|
35
|
-
ref?: RefObject<InkeepEmbeddedSearchAndChatFunctions>;
|
|
36
|
-
}
|
|
37
|
-
export declare function InkeepEmbeddedSearchAndChat(props: InkeepEmbeddedSearchAndChatProps): import("react/jsx-runtime").JSX.Element;
|
|
38
|
-
type InkeepEmbeddedSearchAndChatImplProps = Omit<ReturnType<typeof useWidgetImpl>, 'config'>;
|
|
39
|
-
export declare function InkeepEmbeddedSearchAndChatImpl(props: InkeepEmbeddedSearchAndChatImplProps): import("react/jsx-runtime").JSX.Element;
|
|
40
|
-
export {};
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
import { useWidgetImpl } from './embedded-search-and-chat.impl';
|
|
2
|
-
import { ModalViewTypes, InkeepConfig, WidgetView } from '@inkeep/cxkit-types';
|
|
3
|
-
import { RefObject } from 'react';
|
|
4
|
-
export interface InkeepEmbeddedSearchAndChatFunctions {
|
|
5
|
-
setView: (view: ModalViewTypes) => void;
|
|
6
|
-
}
|
|
7
|
-
export interface InkeepEmbeddedSearchAndChatProps extends Partial<Omit<InkeepConfig, 'componentType'>>, WidgetView {
|
|
8
|
-
/**
|
|
9
|
-
* The default view to show when the widget is loaded.
|
|
10
|
-
* @default 'search'
|
|
11
|
-
*/
|
|
12
|
-
defaultView?: ModalViewTypes;
|
|
13
|
-
/**
|
|
14
|
-
* Whether to always open the widget in the default view. (Modal only)
|
|
15
|
-
*
|
|
16
|
-
* By default, subsequent opens will remember the last view.
|
|
17
|
-
* This prop will force the widget to always open in the default view.
|
|
18
|
-
*
|
|
19
|
-
* @default false
|
|
20
|
-
*/
|
|
21
|
-
forceDefaultView?: boolean;
|
|
22
|
-
/**
|
|
23
|
-
* Whether to show the Ask AI card.
|
|
24
|
-
* @default false
|
|
25
|
-
*/
|
|
26
|
-
shouldShowAskAICard?: boolean;
|
|
27
|
-
/**
|
|
28
|
-
* Whether to auto focus the input.
|
|
29
|
-
* @default false
|
|
30
|
-
*/
|
|
31
|
-
shouldAutoFocusInput?: boolean;
|
|
32
|
-
/**
|
|
33
|
-
* A ref to the component functions.
|
|
34
|
-
*/
|
|
35
|
-
ref?: RefObject<InkeepEmbeddedSearchAndChatFunctions>;
|
|
36
|
-
}
|
|
37
|
-
export declare function InkeepEmbeddedSearchAndChat(props: InkeepEmbeddedSearchAndChatProps): import("react/jsx-runtime").JSX.Element;
|
|
38
|
-
type InkeepEmbeddedSearchAndChatImplProps = Omit<ReturnType<typeof useWidgetImpl>, 'config'>;
|
|
39
|
-
export declare function InkeepEmbeddedSearchAndChatImpl(props: InkeepEmbeddedSearchAndChatImplProps): import("react/jsx-runtime").JSX.Element;
|
|
40
|
-
export {};
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { InkeepEmbeddedSearchAndChatProps } from './embedded-search-and-chat';
|
|
2
|
-
import { ModalViewTypes, InkeepConfig } from '@inkeep/cxkit-types';
|
|
3
|
-
interface UseWidgetImpReturn extends InkeepEmbeddedSearchAndChatProps {
|
|
4
|
-
config: InkeepConfig;
|
|
5
|
-
view: ModalViewTypes;
|
|
6
|
-
setView: (view: ModalViewTypes) => void;
|
|
7
|
-
}
|
|
8
|
-
export declare function useWidgetImpl<T extends InkeepEmbeddedSearchAndChatProps>(props: T): UseWidgetImpReturn;
|
|
9
|
-
export {};
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { InkeepEmbeddedSearchAndChatProps } from './embedded-search-and-chat';
|
|
2
|
-
import { ModalViewTypes, InkeepConfig } from '@inkeep/cxkit-types';
|
|
3
|
-
interface UseWidgetImpReturn extends InkeepEmbeddedSearchAndChatProps {
|
|
4
|
-
config: InkeepConfig;
|
|
5
|
-
view: ModalViewTypes;
|
|
6
|
-
setView: (view: ModalViewTypes) => void;
|
|
7
|
-
}
|
|
8
|
-
export declare function useWidgetImpl<T extends InkeepEmbeddedSearchAndChatProps>(props: T): UseWidgetImpReturn;
|
|
9
|
-
export {};
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { WidgetView, InkeepConfig } from '@inkeep/cxkit-types';
|
|
2
|
-
import { PropsWithChildren } from 'react';
|
|
3
|
-
import { EmbeddedSearchProviderProps } from '@inkeep/cxkit-styled';
|
|
4
|
-
type SearchConfig = Pick<InkeepConfig, 'baseSettings' | 'searchSettings'>;
|
|
5
|
-
type InkeepEmbeddedSearchImplProps = EmbeddedSearchProviderProps & WidgetView & {
|
|
6
|
-
/**
|
|
7
|
-
* Whether to show the Ask AI card.
|
|
8
|
-
* @default false
|
|
9
|
-
*/
|
|
10
|
-
shouldShowAskAICard?: boolean;
|
|
11
|
-
};
|
|
12
|
-
export type InkeepEmbeddedSearchProps = InkeepEmbeddedSearchImplProps & Partial<SearchConfig>;
|
|
13
|
-
export declare function InkeepEmbeddedSearch(props: InkeepEmbeddedSearchProps): import("react/jsx-runtime").JSX.Element;
|
|
14
|
-
export declare function InkeepEmbeddedSearchProvider(props: PropsWithChildren<InkeepEmbeddedSearchImplProps>): import("react/jsx-runtime").JSX.Element;
|
|
15
|
-
export declare function InkeepEmbeddedSearchImpl(props: InkeepEmbeddedSearchImplProps): import("react/jsx-runtime").JSX.Element;
|
|
16
|
-
export declare function InkeepEmbeddedSearchImplContent(props: InkeepEmbeddedSearchImplProps): import("react/jsx-runtime").JSX.Element;
|
|
17
|
-
export {};
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { WidgetView, InkeepConfig } from '@inkeep/cxkit-types';
|
|
2
|
-
import { PropsWithChildren } from 'react';
|
|
3
|
-
import { EmbeddedSearchProviderProps } from '@inkeep/cxkit-styled';
|
|
4
|
-
type SearchConfig = Pick<InkeepConfig, 'baseSettings' | 'searchSettings'>;
|
|
5
|
-
type InkeepEmbeddedSearchImplProps = EmbeddedSearchProviderProps & WidgetView & {
|
|
6
|
-
/**
|
|
7
|
-
* Whether to show the Ask AI card.
|
|
8
|
-
* @default false
|
|
9
|
-
*/
|
|
10
|
-
shouldShowAskAICard?: boolean;
|
|
11
|
-
};
|
|
12
|
-
export type InkeepEmbeddedSearchProps = InkeepEmbeddedSearchImplProps & Partial<SearchConfig>;
|
|
13
|
-
export declare function InkeepEmbeddedSearch(props: InkeepEmbeddedSearchProps): import("react/jsx-runtime").JSX.Element;
|
|
14
|
-
export declare function InkeepEmbeddedSearchProvider(props: PropsWithChildren<InkeepEmbeddedSearchImplProps>): import("react/jsx-runtime").JSX.Element;
|
|
15
|
-
export declare function InkeepEmbeddedSearchImpl(props: InkeepEmbeddedSearchImplProps): import("react/jsx-runtime").JSX.Element;
|
|
16
|
-
export declare function InkeepEmbeddedSearchImplContent(props: InkeepEmbeddedSearchImplProps): import("react/jsx-runtime").JSX.Element;
|
|
17
|
-
export {};
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
export * from './embedded-chat';
|
|
2
|
-
export * from './embedded-search-and-chat';
|
|
3
|
-
export * from './embedded-search';
|
|
4
|
-
export * from './modal.chat';
|
|
5
|
-
export * from './modal.search-and-chat';
|
|
6
|
-
export * from './modal.search';
|
|
7
|
-
export * from './modal';
|
|
8
|
-
export * from './chat-button';
|
|
9
|
-
export * from './searchbar';
|
|
10
|
-
export * from './intelligent-form';
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
export * from './embedded-chat';
|
|
2
|
-
export * from './embedded-search-and-chat';
|
|
3
|
-
export * from './embedded-search';
|
|
4
|
-
export * from './modal.chat';
|
|
5
|
-
export * from './modal.search-and-chat';
|
|
6
|
-
export * from './modal.search';
|
|
7
|
-
export * from './modal';
|
|
8
|
-
export * from './chat-button';
|
|
9
|
-
export * from './searchbar';
|
|
10
|
-
export * from './intelligent-form';
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { InkeepConfig, IntelligentFormSettings } from '@inkeep/cxkit-types';
|
|
2
|
-
interface InkeepIntelligentFormImplProps {
|
|
3
|
-
formSettings: IntelligentFormSettings;
|
|
4
|
-
}
|
|
5
|
-
export type InkeepIntelligentFormProps = InkeepIntelligentFormImplProps & Partial<Pick<InkeepConfig, 'baseSettings'>>;
|
|
6
|
-
export declare function InkeepIntelligentForm(props: InkeepIntelligentFormProps): import("react/jsx-runtime").JSX.Element;
|
|
7
|
-
export declare function InkeepIntelligentFormImpl(props: InkeepIntelligentFormImplProps): import("react/jsx-runtime").JSX.Element;
|
|
8
|
-
export {};
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { InkeepConfig, IntelligentFormSettings } from '@inkeep/cxkit-types';
|
|
2
|
-
interface InkeepIntelligentFormImplProps {
|
|
3
|
-
formSettings: IntelligentFormSettings;
|
|
4
|
-
}
|
|
5
|
-
export type InkeepIntelligentFormProps = InkeepIntelligentFormImplProps & Partial<Pick<InkeepConfig, 'baseSettings'>>;
|
|
6
|
-
export declare function InkeepIntelligentForm(props: InkeepIntelligentFormProps): import("react/jsx-runtime").JSX.Element;
|
|
7
|
-
export declare function InkeepIntelligentFormImpl(props: InkeepIntelligentFormImplProps): import("react/jsx-runtime").JSX.Element;
|
|
8
|
-
export {};
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { InkeepModalSettings } from '@inkeep/cxkit-types';
|
|
2
|
-
import { InkeepEmbeddedChatProps } from './embedded-chat';
|
|
3
|
-
export interface InkeepModalChatProps extends Omit<InkeepEmbeddedChatProps, 'onToggleView'> {
|
|
4
|
-
modalSettings?: InkeepModalSettings;
|
|
5
|
-
}
|
|
6
|
-
export declare function InkeepModalChat(props: InkeepModalChatProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { InkeepModalSettings } from '@inkeep/cxkit-types';
|
|
2
|
-
import { InkeepEmbeddedChatProps } from './embedded-chat';
|
|
3
|
-
export interface InkeepModalChatProps extends Omit<InkeepEmbeddedChatProps, 'onToggleView'> {
|
|
4
|
-
modalSettings?: InkeepModalSettings;
|
|
5
|
-
}
|
|
6
|
-
export declare function InkeepModalChat(props: InkeepModalChatProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { InkeepModalSettings } from '@inkeep/cxkit-types';
|
|
2
|
-
import { WebWidgetInteractionType, RootProviderProps } from '@inkeep/cxkit-styled';
|
|
3
|
-
import { PropsWithChildren } from 'react';
|
|
4
|
-
type RootConfig = RootProviderProps['config'];
|
|
5
|
-
interface ModalConfig extends RootConfig {
|
|
6
|
-
/**
|
|
7
|
-
* The configuration for the modal.
|
|
8
|
-
*/
|
|
9
|
-
modalSettings?: InkeepModalSettings;
|
|
10
|
-
}
|
|
11
|
-
export interface InkeepModalProps extends ModalConfig {
|
|
12
|
-
/**
|
|
13
|
-
* The content of the modal.
|
|
14
|
-
*/
|
|
15
|
-
children: React.ReactNode;
|
|
16
|
-
/**
|
|
17
|
-
* The interaction type for the modal widget.
|
|
18
|
-
*/
|
|
19
|
-
componentType: (typeof WebWidgetInteractionType)[keyof typeof WebWidgetInteractionType];
|
|
20
|
-
}
|
|
21
|
-
export declare function InkeepModal(props: InkeepModalProps): import("react/jsx-runtime").JSX.Element;
|
|
22
|
-
export declare function ModalContent(props: PropsWithChildren): import("react/jsx-runtime").JSX.Element;
|
|
23
|
-
export {};
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { InkeepModalSettings } from '@inkeep/cxkit-types';
|
|
2
|
-
import { WebWidgetInteractionType, RootProviderProps } from '@inkeep/cxkit-styled';
|
|
3
|
-
import { PropsWithChildren } from 'react';
|
|
4
|
-
type RootConfig = RootProviderProps['config'];
|
|
5
|
-
interface ModalConfig extends RootConfig {
|
|
6
|
-
/**
|
|
7
|
-
* The configuration for the modal.
|
|
8
|
-
*/
|
|
9
|
-
modalSettings?: InkeepModalSettings;
|
|
10
|
-
}
|
|
11
|
-
export interface InkeepModalProps extends ModalConfig {
|
|
12
|
-
/**
|
|
13
|
-
* The content of the modal.
|
|
14
|
-
*/
|
|
15
|
-
children: React.ReactNode;
|
|
16
|
-
/**
|
|
17
|
-
* The interaction type for the modal widget.
|
|
18
|
-
*/
|
|
19
|
-
componentType: (typeof WebWidgetInteractionType)[keyof typeof WebWidgetInteractionType];
|
|
20
|
-
}
|
|
21
|
-
export declare function InkeepModal(props: InkeepModalProps): import("react/jsx-runtime").JSX.Element;
|
|
22
|
-
export declare function ModalContent(props: PropsWithChildren): import("react/jsx-runtime").JSX.Element;
|
|
23
|
-
export {};
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { InkeepModalSettings } from '@inkeep/cxkit-types';
|
|
2
|
-
import { InkeepEmbeddedSearchAndChatProps } from './embedded-search-and-chat';
|
|
3
|
-
export interface InkeepModalSearchAndChatProps extends InkeepEmbeddedSearchAndChatProps {
|
|
4
|
-
modalSettings?: InkeepModalSettings;
|
|
5
|
-
}
|
|
6
|
-
export declare function InkeepModalSearchAndChat(props: InkeepModalSearchAndChatProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { InkeepModalSettings } from '@inkeep/cxkit-types';
|
|
2
|
-
import { InkeepEmbeddedSearchAndChatProps } from './embedded-search-and-chat';
|
|
3
|
-
export interface InkeepModalSearchAndChatProps extends InkeepEmbeddedSearchAndChatProps {
|
|
4
|
-
modalSettings?: InkeepModalSettings;
|
|
5
|
-
}
|
|
6
|
-
export declare function InkeepModalSearchAndChat(props: InkeepModalSearchAndChatProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { InkeepModalSettings } from '@inkeep/cxkit-types';
|
|
2
|
-
import { InkeepEmbeddedSearchProps } from './embedded-search';
|
|
3
|
-
export interface InkeepModalSearchProps extends Omit<InkeepEmbeddedSearchProps, 'onToggleView'> {
|
|
4
|
-
modalSettings?: InkeepModalSettings;
|
|
5
|
-
}
|
|
6
|
-
export declare function InkeepModalSearch(props: InkeepModalSearchProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { InkeepModalSettings } from '@inkeep/cxkit-types';
|
|
2
|
-
import { InkeepEmbeddedSearchProps } from './embedded-search';
|
|
3
|
-
export interface InkeepModalSearchProps extends Omit<InkeepEmbeddedSearchProps, 'onToggleView'> {
|
|
4
|
-
modalSettings?: InkeepModalSettings;
|
|
5
|
-
}
|
|
6
|
-
export declare function InkeepModalSearch(props: InkeepModalSearchProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { InkeepModalSettings } from '@inkeep/cxkit-types';
|
|
2
|
-
import { InkeepEmbeddedSearchAndChatProps } from './embedded-search-and-chat';
|
|
3
|
-
export interface InkeepSearchBarProps extends Omit<InkeepEmbeddedSearchAndChatProps, 'onToggleView'> {
|
|
4
|
-
modalSettings?: Omit<InkeepModalSettings, 'isOpen' | 'onOpenChange'>;
|
|
5
|
-
canToggleView?: boolean;
|
|
6
|
-
}
|
|
7
|
-
export declare function InkeepSearchBar(props: InkeepSearchBarProps): import("react/jsx-runtime").JSX.Element;
|
|
8
|
-
interface SearchBarImplProps {
|
|
9
|
-
setOpen: React.Dispatch<React.SetStateAction<boolean>>;
|
|
10
|
-
modalSettings: InkeepSearchBarProps['modalSettings'];
|
|
11
|
-
}
|
|
12
|
-
export declare function SearchBarImpl(props: SearchBarImplProps): import("react/jsx-runtime").JSX.Element;
|
|
13
|
-
export {};
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { InkeepModalSettings } from '@inkeep/cxkit-types';
|
|
2
|
-
import { InkeepEmbeddedSearchAndChatProps } from './embedded-search-and-chat';
|
|
3
|
-
export interface InkeepSearchBarProps extends Omit<InkeepEmbeddedSearchAndChatProps, 'onToggleView'> {
|
|
4
|
-
modalSettings?: Omit<InkeepModalSettings, 'isOpen' | 'onOpenChange'>;
|
|
5
|
-
canToggleView?: boolean;
|
|
6
|
-
}
|
|
7
|
-
export declare function InkeepSearchBar(props: InkeepSearchBarProps): import("react/jsx-runtime").JSX.Element;
|
|
8
|
-
interface SearchBarImplProps {
|
|
9
|
-
setOpen: React.Dispatch<React.SetStateAction<boolean>>;
|
|
10
|
-
modalSettings: InkeepSearchBarProps['modalSettings'];
|
|
11
|
-
}
|
|
12
|
-
export declare function SearchBarImpl(props: SearchBarImplProps): import("react/jsx-runtime").JSX.Element;
|
|
13
|
-
export {};
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { ModalViewTypes, OnToggleView } from '@inkeep/cxkit-types';
|
|
2
|
-
export declare function WidgetToggle(props: {
|
|
3
|
-
onToggleView: OnToggleView;
|
|
4
|
-
query?: string;
|
|
5
|
-
askAILabel?: string;
|
|
6
|
-
searchLabel?: string;
|
|
7
|
-
view: ModalViewTypes;
|
|
8
|
-
}): import("react/jsx-runtime").JSX.Element;
|
|
9
|
-
export declare function useToggleView(props: {
|
|
10
|
-
onToggleView?: OnToggleView;
|
|
11
|
-
query?: string;
|
|
12
|
-
}): {
|
|
13
|
-
handleToggle: (view: ModalViewTypes, autoSubmit?: boolean) => void;
|
|
14
|
-
};
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { ModalViewTypes, OnToggleView } from '@inkeep/cxkit-types';
|
|
2
|
-
export declare function WidgetToggle(props: {
|
|
3
|
-
onToggleView: OnToggleView;
|
|
4
|
-
query?: string;
|
|
5
|
-
askAILabel?: string;
|
|
6
|
-
searchLabel?: string;
|
|
7
|
-
view: ModalViewTypes;
|
|
8
|
-
}): import("react/jsx-runtime").JSX.Element;
|
|
9
|
-
export declare function useToggleView(props: {
|
|
10
|
-
onToggleView?: OnToggleView;
|
|
11
|
-
query?: string;
|
|
12
|
-
}): {
|
|
13
|
-
handleToggle: (view: ModalViewTypes, autoSubmit?: boolean) => void;
|
|
14
|
-
};
|
package/dist/utils.d.cts
DELETED
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
type PossibleRef<T> = React.Ref<T | null> | undefined;
|
|
2
|
-
export declare function composeRefs<T>(...refs: PossibleRef<T>[]): (node: T | null) => void;
|
|
3
|
-
export declare function composeEventHandlers<E>(originalEventHandler?: (event: E) => void, ourEventHandler?: (event: E) => void, { checkForDefaultPrevented }?: {
|
|
4
|
-
checkForDefaultPrevented?: boolean | undefined;
|
|
5
|
-
}): (event: E) => void;
|
|
6
|
-
export {};
|
package/dist/utils.d.ts
DELETED
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
type PossibleRef<T> = React.Ref<T | null> | undefined;
|
|
2
|
-
export declare function composeRefs<T>(...refs: PossibleRef<T>[]): (node: T | null) => void;
|
|
3
|
-
export declare function composeEventHandlers<E>(originalEventHandler?: (event: E) => void, ourEventHandler?: (event: E) => void, { checkForDefaultPrevented }?: {
|
|
4
|
-
checkForDefaultPrevented?: boolean | undefined;
|
|
5
|
-
}): (event: E) => void;
|
|
6
|
-
export {};
|