Skip to content

Commit e7672de

Browse files
authored
chore: prepare release (#2061)
1 parent 9a43a61 commit e7672de

File tree

4 files changed

+17
-3
lines changed

4 files changed

+17
-3
lines changed

CHANGELOG.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,17 @@ All notable changes to Chainlit will be documented in this file.
44

55
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
66

7+
## [2.4.302] - 2025-03-26
8+
9+
### Added
10+
11+
- Add thinking token support to langchain callback handler
12+
13+
### Fixed
14+
15+
- Pasting issues in the chat input
16+
- Rename nl-NL.json to nl.json
17+
718
## [2.4.301] - 2025-03-24
819

920
### Fixed

backend/chainlit/version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@
55
except metadata.PackageNotFoundError:
66
# Case where package metadata is not available, default to a 'non-outdated' version.
77
# Ref: config.py::load_settings()
8-
__version__ = "2.4.301"
8+
__version__ = "2.4.302"

backend/pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = "chainlit"
3-
version = "2.4.301"
3+
version = "2.4.302"
44
keywords = [
55
'LLM',
66
'Agents',

frontend/src/components/chat/MessageComposer/Input.tsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -243,6 +243,9 @@ const Input = forwardRef<InputMethods, Props>(
243243
const textData = event.clipboardData?.getData('text/plain');
244244
if (textData) {
245245
const escapedText = escapeHtml(textData);
246+
247+
document.execCommand('insertText', false, textData);
248+
246249
const textWithNewLines = escapedText.replace(/\n/g, '<br>');
247250

248251
// Get selection from the element's ownerDocument instead of window
@@ -407,7 +410,7 @@ const Input = forwardRef<InputMethods, Props>(
407410
contentEditable
408411
data-placeholder={placeholder}
409412
className={cn(
410-
'min-h-10 max-h-[250px] overflow-y-auto w-full focus:outline-none focus:ring-0 focus:ring-offset-0 focus-visible:ring-0 focus-visible:ring-offset-0 empty:before:content-[attr(data-placeholder)] empty:before:text-muted-foreground',
413+
'min-h-10 max-h-[250px] whitespace-pre-wrap overflow-y-auto w-full focus:outline-none focus:ring-0 focus:ring-offset-0 focus-visible:ring-0 focus-visible:ring-offset-0 empty:before:content-[attr(data-placeholder)] empty:before:text-muted-foreground',
411414
className
412415
)}
413416
onInput={handleInput}

0 commit comments

Comments
 (0)