# Changelog

All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.

## 1.5.1 (2025-05-26)

### Feature

- Added new props `exemptions`, `enableJailbreakSecurity` and `chatIconText`.
- Added a list of common jailbreak keywords.
- Added functions to detect jailbreak keywords and replacing them using Gemini.
- Updated `README.MD` with details for the new feature implementation.

## 1.4.7 (2025-05-24)

### Fix

- `README.MD` gif fix.
- Added new prop `pathToEmbeddedData`.
- Added RAG for vectorized data. Semantic search using cosine similarity search.
- Updated `README.MD` with details for RAG implementation.
- Z-Index Prop added.
- Making the repo standardized for multi api

## 1.4.1 (2025-03-21)

### Fix

- Commented multiple `console.log`
- Added `shouldForwardProp` for styling components avoiding DOM issues.
- Changed component of Typography to span for fixing the `<p>` decendant of `<p>` issue.

## 1.4.0 (2025-03-18)

### Change

- Removed API calls and replaced chat output with a static response.

### Fix

- Fixed wrong notation of width from `chatBotWeight` to `chatBotWidth`.

## 1.3.9 (2025-03-12)

### Fix

- Regex of default phone number field change and remove company name regex.
- Shift the customizable option of `leadFormHeader`, `leadFormDescription`, and `leadFormButtonText` to leadForm array.
- Decrease height of chatbot and in leadForm add max height.
- Replace Container to box of mui component.
- LFCloseButton add close button in leadForm to allow developer to make mandatory or optional to fill leadForm.

## 1.3.8 (2025-03-11)

### Fix

- Fixed the casing issue in readme to show gifs.
- Re Added repository link in Package.json.

## 1.3.7 (2025-03-11)

### Fix

- Regex Validation of default form field of phone number fix to allow 0 and +91 at starting.
- Both Demo video align in same line.
- Add HomePage link in Package.json.

## 1.3.6 (2025-03-11)

### Feature

- Added customizable `chatBotHeight` and `chatBotWidth` props to control the chatbot's dimensions of height and width.
- Added customizable `leadFormHeader`, `leadFormDescription`, and `leadFormButtonText` props for dynamic form text of leadForm.

## 1.3.5 (2025-03-11)

### Feature

- Add a demo video of lead form in Readme.md file.

## 1.3.4 (2025-03-10)

### Feature

- Introduced the **goodFormatting** feature which adds instructions for well-structured, readable responses with appropriate formatting by passing true value.
- Introduced the **tone** If specified, instructs the model to respond in the requested tone and default formal tone is used.
- Introduced the **useEmoji** feature which adds emoji in response by passing true.

## 1.3.3 (2025-03-10)

### Feature

- Introduced the **Approach** feature, which allows users to set a **zero-shot** approach for the chatbot or language model
- Added support for **one-shot** or **few-shot** approaches,You can define a Array of json object like this [{user : "text",agent:"text"}].

## 1.3.2 (2025-03-10)

### Fix

- fixed casing issue of ChatBot , made as per README

## 1.3.1 (2025-03-07)

### Fix

- Issue of leadform ui solve
- Add try and catch in api calling

## 1.2.5 (2025-03-06)

### Features

- **LeadForm Feature:**
  - Added the ability to enable a customizable lead form through the `enableLeadForm` flag.
  - The form can be default with fields such as `Company Name`, `Email`, `Phone Number`, and `Custom Fields` (like dropdowns and text inputs).
  - You can configure the form position with `enableFormAt` and provide various field options, such as `title`, `placeholder`, `type`, `validationMessage`, and `required` to add your own fields.
  - Optionally, the form can be linked to an API to submit the collected data using `submitApiEndPoint`, `submitApiAccessToken`, and `APIFormHttpMethod`.
  - Fields are optional and can be added or removed from the form dynamically based on configuration.

## 1.2.4 (2025-03-05)

### Fixes

- Fixed an issue where the textPosition change type was incorrectly set to string instead of boolean.
- Fixed the image format and changed the image type to `embeddedUri`.

### Features

- Users can now add a backend endpoint (`apiStoreResponseDataEndpoint`) to store every conversation between the chatbot and the user.
- Users can also add an optional access token (`accessTokenOfApi`) for authentication. It is not mandatory.
- users can also add http method(`ApiHttpMethod`) (eg. post,put,get) based on backend api and also it is optional and default it take post.

### 1.2.3 (2025-03-05)

#### Fixes

- Fixed an issue with file input and upload functionality.
- Fixed the image path handling issue.
