diff --git a/chatkit/widgets.py b/chatkit/widgets.py index 8c64bbd..1d4995f 100644 --- a/chatkit/widgets.py +++ b/chatkit/widgets.py @@ -709,7 +709,7 @@ class Checkbox(WidgetComponentBase): """The name of the form control field used when submitting forms.""" label: str | None = None """Optional label text rendered next to the checkbox.""" - defaultChecked: str | None = None + defaultChecked: bool | None = None """The initial checked state of the checkbox.""" onChangeAction: ActionConfig | None = None """Action dispatched when the checked state changes.""" diff --git a/docs/release.md b/docs/release.md index fb672a2..93b182a 100644 --- a/docs/release.md +++ b/docs/release.md @@ -18,6 +18,15 @@ We will increment patch versions for non-breaking changes: ## Breaking change changelog +### 1.3.0 + +- Fixed the type for the `defaultChecked` property of `Checkbox` widgets, updating it from `string` to `bool`. + +### 1.2.0 + +- Updated `agents.stream_agent_response` to add annotation parts as they are received rather than adding all the annotations at the end after the response is completed. +- Added support for rendering `container_file_citation`. + ### 1.1.0 - `CustomSummary`, `CustomTask`, and `EntitySource` types have been updated to restrict `icon` to `IconName`. diff --git a/docs/widgets.md b/docs/widgets.md index bf932f5..f120e73 100644 --- a/docs/widgets.md +++ b/docs/widgets.md @@ -150,7 +150,7 @@ Checkbox input component. | `type` | `Checkbox` | 'Checkbox' | | `name` | `str` | | | `label` | `str | None` | None | -| `defaultChecked` | `str | None` | None | +| `defaultChecked` | `bool | None` | None | | `onChangeAction` | `ActionConfig | None` | None | | `disabled` | `bool | None` | None | | `required` | `bool | None` | None | diff --git a/pyproject.toml b/pyproject.toml index 6688e43..7d96c15 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "openai-chatkit" -version = "1.2.0" +version = "1.3.0" description = "A ChatKit backend SDK." readme = "README.md" requires-python = ">=3.10" diff --git a/uv.lock b/uv.lock index fdec985..f01682d 100644 --- a/uv.lock +++ b/uv.lock @@ -819,7 +819,7 @@ wheels = [ [[package]] name = "openai-chatkit" -version = "1.2.0" +version = "1.3.0" source = { virtual = "." } dependencies = [ { name = "openai" },