chore: 更新所有包的版本号至0.0.13

- 为评论表单和回复编辑器中的文本输入框添加键盘事件处理
- 允许通过键盘快捷键(如Ctrl+Enter)提交表单
This commit is contained in:
anghunk
2026-02-02 13:18:32 +08:00
parent 132f2fbbb0
commit abeb7f2d41
6 changed files with 7 additions and 5 deletions

View File

@@ -1,6 +1,6 @@
{
"name": "cwd-admin",
"version": "0.0.12",
"version": "0.0.13",
"type": "module",
"scripts": {
"dev": "vite",

View File

@@ -1,6 +1,6 @@
{
"name": "cwd-api",
"version": "0.0.12",
"version": "0.0.13",
"scripts": {
"deploy": "wrangler deploy",
"dev": "wrangler dev",

View File

@@ -1,6 +1,6 @@
{
"name": "cwd-widget",
"version": "0.0.12",
"version": "0.0.13",
"description": "Server-free, extremely fast and secure, plug-and-play commenting system based on Cloudflare Workers and the Global Edge Network.",
"type": "module",
"author": "anghunk",

View File

@@ -304,6 +304,7 @@ export class CommentForm extends Component {
onBlur: (e) => {
if (fieldName === 'email') this.handleEmailBlur(e.target.value);
},
onKeydown: (e) => this.handleContentKeydown(e),
},
}),
...(error ? [this.createTextElement('span', error, 'cwd-error-text')] : []),

View File

@@ -301,7 +301,8 @@ export class ReplyEditor extends Component {
placeholder,
value: value || '',
disabled: this.props.submitting,
onInput: (e) => this.handleUserInfoChange(field, e.target.value)
onInput: (e) => this.handleUserInfoChange(field, e.target.value),
onKeydown: (e) => this.handleTextareaKeydown(e)
}
})
]

View File

@@ -1,6 +1,6 @@
{
"name": "cwd",
"version": "0.0.12",
"version": "0.0.13",
"license": "Apache-2.0",
"repository": {
"type": "git",