UNPKG

@thirdrocktechno/strapi-gpt

Version:

A StrapiGPT plugin for integrating AI-powered custom ChatBot with your strapi content.

121 lines (110 loc) 2.39 kB
export const DEFAULT_CHAT_MODE = { value: "online", label: "Online" }; export const CHAT_OPTIONS = [ { value: "preChat", label: "Pre-Chat" }, { value: "online", label: "Online" }, ]; export const CHAT_LANGUAGE_OBJECT = { en: { name: "Your name", email: "Your email address", chat: "Start chat", skip: "Skip", }, fr: { name: "Votre nom", email: "Votre adresse e-mail", chat: "Démarrer la discussion", skip: "sauter", }, nl: { name: "Uw naam", email: "jouw e-mailadres", chat: "Begin chat", skip: "overslaan", }, }; export const LANGUAGE_OPTIONS = [ { value: "en", label: "English" }, { value: "fr", label: "French" }, { value: "nl", label: "Dutch" }, ]; export const DEFAULT_SUPPORT_MESSAGE_CONTENT = "StrapiGPT Bot"; export const DEFAULT_COLOR_OPTIONS = { headerBackground: "#FFFFFF", headerText: "#000000", agentMessageBackground: "#E2E8F0", agentText: "#000000", visitorMessageBackground: "#2563EB", visitorText: "#FFFFFF", }; export const DEFAULT_LANGUAGE = { value: "en", label: "English" }; export const DEFAULT_WIDGET_POSITION = { label: "Bottom Right", value: "widget-bottom-right", }; export const WIDGET_POSITION_OPTIONS = [ { label: "Top Left", value: "widget-top-left", }, { label: "Top Right", value: "widget-top-right", }, { label: "Middle Left", value: "widget-middle-left", }, { label: "Middle Right", value: "widget-middle-right", }, { label: "Bottom Left", value: "widget-bottom-left", }, { label: "Bottom Right", value: "widget-bottom-right", }, ]; export const DEFAULT_HEADER_CONTENT = "Please fill out the form below for Sid to start helping you."; export const WIDGET_DISABLE_POSITIONS = [1, 4, 7]; export const WIDGET_POSITIONS = [ { label: "Top Left", value: "widget-top-left", }, { label: "Top Center", value: "tc", }, { label: "Top Right", value: "widget-top-right", }, { label: "Middle Left", value: "widget-middle-left", }, { label: "Middle Center", value: "mc", }, { label: "Middle Right", value: "widget-middle-right", }, { label: "Bottom Left", value: "widget-bottom-left", }, { label: "Bottom Center", value: "bc", }, { label: "Bottom Right", value: "widget-bottom-right", }, ];