- 通过 editor.BlockEdit 过滤器给 core/image 增加「半屏 / 中等 / 通栏 / 全宽」 四档宽度,选中图片时出现在区块工具条;宽度写入 className 并序列化到 post_content,前台样式即可生效,无需自定义区块或额外元数据 - 前台样式:半屏靠左 50%,中等 72%,通栏跟随正文行宽,全宽突破行宽但受容器 内边距约束;移动端半屏与全宽回退为整行,避免横向滚动 - 新增作者行(头像 + 昵称 + 身份说明),数据由 CreatorRest::author_payload() 从服务端给出,前端不自行拼装;无昵称时整行不渲染,头像缺失时回退首字占位 - 作者行放在摘要之后、正文之前 Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
28 lines
744 B
JSON
28 lines
744 B
JSON
{
|
|
"name": "jio-creator-studio",
|
|
"version": "1.0.0",
|
|
"private": true,
|
|
"scripts": {
|
|
"build": "wp-scripts build",
|
|
"start": "wp-scripts start"
|
|
},
|
|
"devDependencies": {
|
|
"@types/react": "18.3.31",
|
|
"@types/react-dom": "18.3.7",
|
|
"@wordpress/api-fetch": "^6.28.0",
|
|
"@wordpress/block-editor": "11.8.0",
|
|
"@wordpress/block-library": "^8.8.0",
|
|
"@wordpress/blocks": "12.8.0",
|
|
"@wordpress/components": "^23.8.0",
|
|
"@wordpress/compose": "^6.8.0",
|
|
"@wordpress/data": "9.5.0",
|
|
"@wordpress/element": "5.8.0",
|
|
"@wordpress/hooks": "^3.31.0",
|
|
"@wordpress/i18n": "4.31.0",
|
|
"@wordpress/scripts": "26.4.0",
|
|
"@wordpress/wordcount": "3.31.0",
|
|
"sass": "1.77.8",
|
|
"typescript": "5.4.5"
|
|
}
|
|
}
|