diff --git a/components/vf-chatbot-modal/CHANGELOG.md b/components/vf-chatbot-modal/CHANGELOG.md index 93b53261b3..fb54544c38 100644 --- a/components/vf-chatbot-modal/CHANGELOG.md +++ b/components/vf-chatbot-modal/CHANGELOG.md @@ -1,5 +1,17 @@ # Changelog +### 1.0.0 + +* Version bump + +### 1.0.0-beta.5 + +* Fixed : Updated CSS for bottom margin + +### 1.0.0-beta.4 + +* Fixed : Updated React file to pass allowFeedback config to prompt component + ### 1.0.0-beta.3 * Added : Initial code for chatbot modal variant @@ -11,4 +23,4 @@ ### 1.0.0-beta.1 -* Initial version \ No newline at end of file +* Initial version diff --git a/components/vf-chatbot-modal/package.json b/components/vf-chatbot-modal/package.json index e7d081b086..59e2fe3542 100644 --- a/components/vf-chatbot-modal/package.json +++ b/components/vf-chatbot-modal/package.json @@ -1,5 +1,5 @@ { - "version": "1.0.0-beta.3", + "version": "1.0.0", "name": "@visual-framework/vf-chatbot-modal", "description": "Visual Framework Chatbot Modal component", "homepage": "https://stable.visual-framework.dev/", diff --git a/components/vf-chatbot-modal/vf-chatbot-modal.react.js b/components/vf-chatbot-modal/vf-chatbot-modal.react.js index c36ed0e131..1108489d0e 100644 --- a/components/vf-chatbot-modal/vf-chatbot-modal.react.js +++ b/components/vf-chatbot-modal/vf-chatbot-modal.react.js @@ -59,6 +59,7 @@ export function VFChatbotModal({ name: config.title }} content="How can I help you?" + allowFeedback={config.features.enable_feedback} /> ); assistantMessageTemplateRef.current.innerHTML = htmlString; diff --git a/components/vf-chatbot-modal/vf-chatbot-modal.scss b/components/vf-chatbot-modal/vf-chatbot-modal.scss index 62124c55e0..f85d7f74c4 100644 --- a/components/vf-chatbot-modal/vf-chatbot-modal.scss +++ b/components/vf-chatbot-modal/vf-chatbot-modal.scss @@ -143,6 +143,7 @@ &__messages { margin: 0 auto; + margin-bottom: 1rem; flex-direction: column; overflow-y: auto; padding: 0 1.5rem; @@ -151,6 +152,7 @@ &__messages-no-scrollbar { @extend .vf-chatbot-modal__messages; + margin-bottom: 1rem; width: 89%; scrollbar-width: none; /* Firefox */ -ms-overflow-style: none; /* IE 10+ */ diff --git a/components/vf-chatbot-welcome/CHANGELOG.md b/components/vf-chatbot-welcome/CHANGELOG.md index d7e9141e84..753e2e29aa 100644 --- a/components/vf-chatbot-welcome/CHANGELOG.md +++ b/components/vf-chatbot-welcome/CHANGELOG.md @@ -1,5 +1,13 @@ # Changelog +### 1.0.0 + +* Version bump + +### 1.0.0-beta.4 + +* Fixed : Updated React file to avaoid double initialization of component + ### 1.0.0-beta.3 * Updated : Changes for chatbot modal variant @@ -14,4 +22,4 @@ * Initial version * Configurable Q&A data loading -* Default fallback responses \ No newline at end of file +* Default fallback responses diff --git a/components/vf-chatbot-welcome/package.json b/components/vf-chatbot-welcome/package.json index a1970c3195..300d9793cf 100644 --- a/components/vf-chatbot-welcome/package.json +++ b/components/vf-chatbot-welcome/package.json @@ -1,5 +1,5 @@ { - "version": "1.0.0-beta.3", + "version": "1.0.0", "name": "@visual-framework/vf-chatbot-welcome", "description": "Visual Framework Chatbot Welcome component", "homepage": "https://stable.visual-framework.dev/", diff --git a/components/vf-chatbot-welcome/vf-chatbot-welcome.react.js b/components/vf-chatbot-welcome/vf-chatbot-welcome.react.js index cef67fad0f..b28df4cf58 100644 --- a/components/vf-chatbot-welcome/vf-chatbot-welcome.react.js +++ b/components/vf-chatbot-welcome/vf-chatbot-welcome.react.js @@ -1,6 +1,5 @@ import { useEffect, useRef } from "react"; import ReactDOMServer from "react-dom/server"; -import { initVFChatbotWelcome } from "./vf-chatbot-welcome.js"; import { VFChatbotActionPrompt } from "../vf-chatbot-action-prompt/vf-chatbot-action-prompt.react"; export function VFChatbotWelcome({ @@ -21,9 +20,6 @@ export function VFChatbotWelcome({ const templateRef = useRef(null); useEffect(() => { - if (welcomeRef.current) { - initVFChatbotWelcome(welcomeRef.current); - } if (templateRef.current) { const htmlString = ReactDOMServer.renderToStaticMarkup( diff --git a/components/vf-chatbot/CHANGELOG.md b/components/vf-chatbot/CHANGELOG.md index b227d8bec8..2452655d38 100644 --- a/components/vf-chatbot/CHANGELOG.md +++ b/components/vf-chatbot/CHANGELOG.md @@ -1,5 +1,13 @@ # Changelog +### 1.0.0 + +* Version bump + +### 1.0.0-beta.4 + +* Updated : `initVFChatbot` now returns appropriate instance/s, allowing callers to access and customise it. + ### 1.0.0-beta.3 * Updated : Standalone and modal variant initialization moved to `vf-chatbot` component @@ -13,4 +21,4 @@ ### 1.0.0-beta.1 -* Initial version \ No newline at end of file +* Initial version diff --git a/components/vf-chatbot/package.json b/components/vf-chatbot/package.json index 6b55f34abf..63a1b4f894 100644 --- a/components/vf-chatbot/package.json +++ b/components/vf-chatbot/package.json @@ -1,5 +1,5 @@ { - "version": "1.0.0-beta.3", + "version": "1.0.0", "name": "@visual-framework/vf-chatbot", "description": "Visual Framework Chatbot Component", "homepage": "https://stable.visual-framework.dev/", diff --git a/components/vf-chatbot/vf-chatbot.js b/components/vf-chatbot/vf-chatbot.js index 180b26827d..14d5565b84 100644 --- a/components/vf-chatbot/vf-chatbot.js +++ b/components/vf-chatbot/vf-chatbot.js @@ -218,6 +218,7 @@ function initVFChatbot(config = {}) { const chatbotBottomMargin = getChatbotBottomMargin( config.chatbotBottomMargin ) || [0, 0]; + let modalInstances = []; elements.forEach(element => { // Set CSS variable for FAB and modal margin element.style.setProperty( @@ -230,10 +231,11 @@ function initVFChatbot(config = {}) { ); new VFChatbot(element); initVFChatbotFab(); - initVFChatbotModal(config); + modalInstances = modalInstances.concat(initVFChatbotModal(config)); }); + return modalInstances; } else if (config && config.type == "standalone") { - initVFChatbotStandalone(config); + return initVFChatbotStandalone(config); } } diff --git a/tools/vf-component-library/src/site/_data/siteConfig.js b/tools/vf-component-library/src/site/_data/siteConfig.js index d66040ed58..b1478c946c 100644 --- a/tools/vf-component-library/src/site/_data/siteConfig.js +++ b/tools/vf-component-library/src/site/_data/siteConfig.js @@ -15,7 +15,11 @@ module.exports = { // vfVersion: "develop", // vfVersionPrefix: "dev.", // use this when tagging a release +<<<<<<< vf-chatbot + vfVersion: "v2.5.25", +======= vfVersion: "v2.5.26", +>>>>>>> develop vfVersionPrefix: "dev", sections: { about: {