@yext/chat-headless
Version:
A state manager library powered by Redux for Yext Chat integrations
25 lines (22 loc) • 790 B
JavaScript
import { provideChatCoreInternal } from '@yext/chat-core';
import { ChatHeadlessImpl } from './ChatHeadlessImpl.mjs';
/**
* Provide an instance of {@link ChatHeadless} with all functionality built in.
*
* @public
*/
function provideChatHeadless(config, clients) {
return new ChatHeadlessImpl(config, clients?.bot, clients?.agent);
}
/**
* Provide an instance of {@link ChatHeadless} with all functionality built in,
* including internal-only configuration.
*
* @internal
*/
function provideChatHeadlessInternal(config, internalConfig) {
const internalCore = provideChatCoreInternal(config, internalConfig);
return new ChatHeadlessImpl(config, internalCore);
}
export { provideChatHeadless, provideChatHeadlessInternal };
//# sourceMappingURL=HeadlessProvider.mjs.map