UNPKG

@yext/chat-headless

Version:

A state manager library powered by Redux for Yext Chat integrations

28 lines (24 loc) 886 B
'use strict'; var chatCore = require('@yext/chat-core'); var ChatHeadlessImpl = require('./ChatHeadlessImpl.js'); /** * Provide an instance of {@link ChatHeadless} with all functionality built in. * * @public */ function provideChatHeadless(config, clients) { return new ChatHeadlessImpl.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 = chatCore.provideChatCoreInternal(config, internalConfig); return new ChatHeadlessImpl.ChatHeadlessImpl(config, internalCore); } exports.provideChatHeadless = provideChatHeadless; exports.provideChatHeadlessInternal = provideChatHeadlessInternal; //# sourceMappingURL=HeadlessProvider.js.map