weifuwu 0.93.3 → 0.94.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +5 -5
- package/dist/client/components/ActionSheet/ActionSheet.d.ts +1 -1
- package/dist/client/components/AlertGroup/AlertGroup.d.ts +1 -1
- package/dist/client/components/Anchor/Anchor.d.ts +1 -1
- package/dist/client/components/AppShell/AppShell.d.ts +2 -2
- package/dist/client/components/AuthPage/AuthPage.d.ts +1 -1
- package/dist/client/components/AutoComplete/AutoComplete.d.ts +1 -1
- package/dist/client/components/AvatarGroup/AvatarGroup.d.ts +1 -1
- package/dist/client/components/Button/Button.d.ts +8 -2
- package/dist/client/components/Chart/Chart.d.ts +1 -1
- package/dist/client/components/Chart/chart-utils.d.ts +1 -1
- package/dist/client/components/ChatInput/ChatInput.d.ts +3 -1
- package/dist/client/components/CodeBlock/CodeBlock.d.ts +1 -1
- package/dist/client/components/CodeBlock/highlight.d.ts +1 -1
- package/dist/client/components/Confirm/Confirm.d.ts +1 -1
- package/dist/client/components/CronPicker/CronPicker.d.ts +1 -1
- package/dist/client/components/DatePicker/DatePicker.d.ts +1 -1
- package/dist/client/components/DatePicker/calendar-utils.d.ts +1 -1
- package/dist/client/components/Descriptions/Descriptions.d.ts +1 -1
- package/dist/client/components/Drawer/Drawer.d.ts +4 -1
- package/dist/client/components/DropZone/DropZone.d.ts +1 -1
- package/dist/client/components/Dropdown/Dropdown.d.ts +1 -1
- package/dist/client/components/Editor/Editor.d.ts +1 -1
- package/dist/client/components/Editor/edit-events.d.ts +1 -1
- package/dist/client/components/Editor/model/apply.d.ts +1 -1
- package/dist/client/components/Editor/model/diff.d.ts +1 -1
- package/dist/client/components/Editor/model/dom.d.ts +1 -1
- package/dist/client/components/Editor/model/history.d.ts +1 -1
- package/dist/client/components/Editor/model/html.d.ts +1 -1
- package/dist/client/components/Editor/model/inverse.d.ts +1 -1
- package/dist/client/components/Editor/model/types.d.ts +1 -1
- package/dist/client/components/Editor/tools/table.d.ts +1 -1
- package/dist/client/components/Editor/tools/toolbar.d.ts +1 -1
- package/dist/client/components/Editor/tools/types.d.ts +1 -1
- package/dist/client/components/FilePreview/FilePreview.d.ts +1 -1
- package/dist/client/components/FilePreview/markdown.d.ts +1 -1
- package/dist/client/components/FileTree/FileTree.d.ts +1 -1
- package/dist/client/components/FileUpload/FileUpload.d.ts +1 -1
- package/dist/client/components/FloatButton/FloatButton.d.ts +1 -1
- package/dist/client/components/Grid/Grid.d.ts +1 -1
- package/dist/client/components/Highlight/Highlight.d.ts +1 -1
- package/dist/client/components/HoverCard/HoverCard.d.ts +1 -1
- package/dist/client/components/Icon/Icon.d.ts +1 -1
- package/dist/client/components/Img/Img.d.ts +1 -1
- package/dist/client/components/InView/InView.d.ts +1 -1
- package/dist/client/components/Input/Input.d.ts +6 -0
- package/dist/client/components/InputNumber/InputNumber.d.ts +1 -1
- package/dist/client/components/JSONViewer/JSONViewer.d.ts +1 -1
- package/dist/client/components/Layout/Layout.d.ts +1 -1
- package/dist/client/components/Link/Link.d.ts +1 -1
- package/dist/client/components/List/List.d.ts +1 -1
- package/dist/client/components/ListScaffold/ListScaffold.d.ts +2 -2
- package/dist/client/components/LogViewer/LogViewer.d.ts +1 -1
- package/dist/client/components/Markdown/Markdown.d.ts +1 -1
- package/dist/client/components/Markdown/parser.d.ts +1 -1
- package/dist/client/components/Menu/Menu.d.ts +1 -1
- package/dist/client/components/MessageBubble/MessageBubble.d.ts +1 -1
- package/dist/client/components/Modal/Modal.d.ts +5 -1
- package/dist/client/components/NavBar/NavBar.d.ts +1 -1
- package/dist/client/components/NavMenu/NavMenu.d.ts +1 -1
- package/dist/client/components/OfficeEditor/ai/ai-bridge.d.ts +1 -1
- package/dist/client/components/OfficeEditor/model/apply.d.ts +1 -1
- package/dist/client/components/OfficeEditor/model/types.d.ts +1 -1
- package/dist/client/components/PasswordInput/PasswordInput.d.ts +1 -1
- package/dist/client/components/Popconfirm/Popconfirm.d.ts +1 -1
- package/dist/client/components/Popover/Popover.d.ts +1 -1
- package/dist/client/components/PromptTemplate/PromptTemplate.d.ts +1 -1
- package/dist/client/components/RelationGraph/RelationGraph.d.ts +1 -1
- package/dist/client/components/Result/Result.d.ts +1 -1
- package/dist/client/components/Scrollbar/Scrollbar.d.ts +1 -1
- package/dist/client/components/SheetGrid/SheetGrid.d.ts +2 -2
- package/dist/client/components/Skeleton/Skeleton.d.ts +1 -1
- package/dist/client/components/SlideCanvas/SlideCanvas.d.ts +2 -2
- package/dist/client/components/Space/Space.d.ts +1 -1
- package/dist/client/components/StatusDot/StatusDot.d.ts +2 -2
- package/dist/client/components/TabBar/TabBar.d.ts +1 -1
- package/dist/client/components/TagsInput/TagsInput.d.ts +1 -1
- package/dist/client/components/Textarea/Textarea.d.ts +6 -0
- package/dist/client/components/ThemeSwitch/ThemeSwitch.d.ts +1 -1
- package/dist/client/components/Timeline/Timeline.d.ts +1 -1
- package/dist/client/components/Tooltip/Tooltip.d.ts +1 -1
- package/dist/client/components/VirtualTable/VirtualTable.d.ts +1 -1
- package/dist/client/components/WordCloud/WordCloud.d.ts +1 -1
- package/dist/client/components/index.d.ts +3 -3
- package/dist/client/components/index.js +38 -38
- package/dist/client/components/style.css +1 -1
- package/dist/client/layout/decl.d.ts +9 -0
- package/dist/client/layout/define.d.ts +41 -0
- package/dist/client/layout/index.d.ts +20 -0
- package/dist/client/layout/index.js +17 -0
- package/dist/client/layout/weifuwu-layout.css +1 -1
- package/dist/client/vdom/context/UIContext.d.ts +1 -1
- package/dist/client/vdom/core/create-component.d.ts +42 -0
- package/dist/client/vdom/core/create-item.d.ts +92 -0
- package/dist/client/vdom/core/vnode.d.ts +8 -2
- package/dist/client/vdom/hooks/env.d.ts +12 -0
- package/dist/client/vdom/hooks/field.d.ts +54 -0
- package/dist/client/vdom/hooks/overlay.d.ts +60 -0
- package/dist/client/vdom/hooks/signal.d.ts +25 -0
- package/dist/client/vdom/index.d.ts +9 -2
- package/dist/client/vdom/index.js +3 -3
- package/dist/client/vdom/jsx-runtime.d.ts +4 -4
- package/dist/client/vdom/jsx-runtime.js +1 -1
- package/dist/client/vdom/testing.js +2 -2
- package/dist/dev/index.js +7 -6
- package/dist/server/ai/index.js +7 -0
- package/dist/server/ai/types.d.ts +1 -1
- package/dist/server/email/index.js +1 -0
- package/dist/server/index.js +235 -5
- package/dist/server/messager/index.js +1 -0
- package/dist/server/postgres/index.js +56 -0
- package/dist/server/queue/index.js +1 -0
- package/dist/server/redis/index.js +3 -0
- package/dist/server/scheduler/index.js +1 -0
- package/dist/server/ui/index.d.ts +1 -1
- package/dist/server/ui/index.js +15 -0
- package/dist/server/user/index.js +1 -0
- package/dist/server/user/token.d.ts +1 -1
- package/dist/server/workflows/index.js +24 -0
- package/dist/shared/router/index.js +2 -0
- package/docs/client.md +131 -9
- package/docs/layout.md +14 -14
- package/docs/server.md +1 -1
- package/package.json +66 -12
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/** NavMenu:顶部导航:多级 hover 弹出 + 键盘(shadcn NavigationMenu)(showcase /components/navmenu) */
|
|
2
2
|
/**
|
|
3
|
-
* weifuwu/components — NavMenu 顶部导航
|
|
3
|
+
* weifuwu/client/components — NavMenu 顶部导航
|
|
4
4
|
*
|
|
5
5
|
* 三库等价:shadcn NavigationMenu(特有——antd/EP 用 Menu 横向模式)。
|
|
6
6
|
* 顶部水平导航 + 多级 hover 弹出 + 键盘(→ 进入子菜单 / ← 返回 / Escape 关闭):
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/** Popconfirm:气泡确认:危险操作防误触 + 复用 usePopup 基座(showcase /components/popconfirm) */
|
|
2
2
|
/**
|
|
3
|
-
* weifuwu/components — Popconfirm 气泡确认
|
|
3
|
+
* weifuwu/client/components — Popconfirm 气泡确认
|
|
4
4
|
*
|
|
5
5
|
* 三库等价:antd Popconfirm / Element Plus Popconfirm。
|
|
6
6
|
* 复用 openPopup 内核(Popover 同级基座)——验证弹层体系可组合性:
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/** Popover:通用弹出层,click/hover 触发,4 方向(showcase /components/popover) */
|
|
2
2
|
/**
|
|
3
|
-
* weifuwu/components — Popover
|
|
3
|
+
* weifuwu/client/components — Popover
|
|
4
4
|
*
|
|
5
5
|
* 命令式弹窗(一个形态——ctx.ui.openPopup——toast 心智):click/hover 双触发
|
|
6
6
|
* (hover 触屏自动降级 tap)+ 受控 open + 外部点击(document 级,取代原 overlay)
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/** PromptTemplate:提示词模板编辑器——变量 chips 插入 + 实时预览填充(AI 场景痛点)(showcase /components/prompttemplate) */
|
|
2
2
|
/**
|
|
3
|
-
* weifuwu/components — PromptTemplate 提示词模板编辑器(AI 场景)
|
|
3
|
+
* weifuwu/client/components — PromptTemplate 提示词模板编辑器(AI 场景)
|
|
4
4
|
*
|
|
5
5
|
* agent-platform 类应用的提示词管理痛点:变量占位 `{{var}}` 记忆/拼写错误 +
|
|
6
6
|
* 填充结果不可见。组件提供:
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/** RelationGraph:关系图谱——环形/网格布局 + 类型着色 + 选中交互(人物/组织/网络)(showcase /components/relationgraph) */
|
|
2
2
|
/**
|
|
3
|
-
* weifuwu/components — RelationGraph
|
|
3
|
+
* weifuwu/client/components — RelationGraph
|
|
4
4
|
*
|
|
5
5
|
* 关系图谱可视化(人物关系/社会网络/组织协作——agent 世界的核心交互面):
|
|
6
6
|
* 确定性布局(环形/网格——零物理模拟——组件库零依赖纪律)+ SVG 渲染
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
/** SheetGrid:weifuwu/components/SheetGrid — xlsx 网格编辑器(ODES 事件流底座) 设计():文档 = fold(事件流)——SheetGrid 的每个(showcase /components/sheetgrid) */
|
|
1
|
+
/** SheetGrid:weifuwu/client/components/SheetGrid — xlsx 网格编辑器(ODES 事件流底座) 设计():文档 = fold(事件流)——SheetGrid 的每个(showcase /components/sheetgrid) */
|
|
2
2
|
/**
|
|
3
|
-
* weifuwu/components/SheetGrid — xlsx 网格编辑器(ODES 事件流底座)
|
|
3
|
+
* weifuwu/client/components/SheetGrid — xlsx 网格编辑器(ODES 事件流底座)
|
|
4
4
|
*
|
|
5
5
|
* 设计():文档 = fold(事件流)——SheetGrid 的每个
|
|
6
6
|
* 编辑操作 = OfficeOp(cell-set/insert-rows/...)→ editEmit('office') → commit
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/** Skeleton:text/circle/rect/image/avatar/table 六种变体(showcase /components/skeleton) */
|
|
2
2
|
/**
|
|
3
|
-
* weifuwu/components — Skeleton
|
|
3
|
+
* weifuwu/client/components — Skeleton
|
|
4
4
|
*/
|
|
5
5
|
import type { Component } from '../../vdom/index.ts';
|
|
6
6
|
export type SkeletonVariant = 'text' | 'circle' | 'rect' | 'image' | 'avatar' | 'table';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
/** SlideCanvas:weifuwu/components/SlideCanvas — pptx 画布编辑器(ODES 事件流——阶段 3) 设计():文档 = fold(事件流)——每个编辑 =(showcase /components/slidecanvas) */
|
|
1
|
+
/** SlideCanvas:weifuwu/client/components/SlideCanvas — pptx 画布编辑器(ODES 事件流——阶段 3) 设计():文档 = fold(事件流)——每个编辑 =(showcase /components/slidecanvas) */
|
|
2
2
|
/**
|
|
3
|
-
* weifuwu/components/SlideCanvas — pptx 画布编辑器(ODES 事件流——阶段 3)
|
|
3
|
+
* weifuwu/client/components/SlideCanvas — pptx 画布编辑器(ODES 事件流——阶段 3)
|
|
4
4
|
*
|
|
5
5
|
* 设计():文档 = fold(事件流)——每个编辑 =
|
|
6
6
|
* OfficeOp(shape-add/remove/move/resize/set)→ editEmit('office') → commit。
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
/** StatusDot:状态点(on/tone 语义——label 缺省只渲染点)(showcase /components/
|
|
1
|
+
/** StatusDot:状态点(on/tone 语义——label 缺省只渲染点)(showcase /components/statusdot) */
|
|
2
2
|
import type { Component, VNodeChild } from '../../vdom/index.ts';
|
|
3
3
|
/**
|
|
4
|
-
* weifuwu/components — StatusDot
|
|
4
|
+
* weifuwu/client/components — StatusDot
|
|
5
5
|
*
|
|
6
6
|
* 状态点原语(颜色语义——一个状态一个声音)。
|
|
7
7
|
* 契约(agent-platform StatusDot 语言化——原名「自带默认文案的运行中/已暂停」
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/** TabBar:底部标签栏——移动端 App 主导航(3-5 tab + icon/badge/受控激活 + safe-area 避让)(showcase /components/tabbar) */
|
|
2
2
|
/**
|
|
3
|
-
* weifuwu/components — TabBar 底部标签栏(移动端导航)
|
|
3
|
+
* weifuwu/client/components — TabBar 底部标签栏(移动端导航)
|
|
4
4
|
*
|
|
5
5
|
* 3-5 个底部 tab(icon + label + 可选 badge 角标)——移动端 App 主导航
|
|
6
6
|
* (MUI BottomNavigation 对位;examples/patterns/Mobile.tsx 手搓底部导航的组件化)。
|
|
@@ -1,4 +1,10 @@
|
|
|
1
1
|
/** Textarea:多行文本,支持 rows/label/error/hint(showcase /components/textarea) */
|
|
2
|
+
/**
|
|
3
|
+
* weifuwu/client/components — Textarea
|
|
4
|
+
*
|
|
5
|
+
* 2027-09 原语全面化 W2:label/required/error/hint 块 + aria 连接 → useField
|
|
6
|
+
* 契约——组件只写输入面(textarea + showCount 业务)。
|
|
7
|
+
*/
|
|
2
8
|
import type { Component } from '../../vdom/index.ts';
|
|
3
9
|
export interface TextareaProps {
|
|
4
10
|
label?: string;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/** VirtualTable:虚拟表格:10k 行固定表头 + 可见窗口渲染 + 排序(showcase /components/virtualtable) */
|
|
2
2
|
/**
|
|
3
|
-
* weifuwu/components — VirtualTable
|
|
3
|
+
* weifuwu/client/components — VirtualTable
|
|
4
4
|
*
|
|
5
5
|
* 虚拟表格(数据密集场景):固定表头 + 虚拟滚动表体,10k+ 行只渲染可见窗口。
|
|
6
6
|
* 复用 VirtualList 滚动基座(useScrollPosition 像素级 scrollTop + rAF 节流)。
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/** WordCloud:词云——权重→字号映射 · 圆心同心环发散布局 · SVG textLength 定宽(零依赖自绘——SSR 一致零重叠)(showcase /components/wordcloud) */
|
|
2
2
|
/**
|
|
3
|
-
* weifuwu/components — WordCloud
|
|
3
|
+
* weifuwu/client/components — WordCloud
|
|
4
4
|
*
|
|
5
5
|
* 词云——权重→字号映射 · **中心同心环发散布局**(SVG textLength 定宽——
|
|
6
6
|
* 渲染宽度精确 = 估算宽——同输入同输出——SSR≡SPA 零差异 + 词矩形零重叠)
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* weifuwu/components — HTML 原语
|
|
2
|
+
* weifuwu/client/components — HTML 原语
|
|
3
3
|
*
|
|
4
4
|
* 使用方式:
|
|
5
|
-
* import { Button, Input } from 'weifuwu/components'
|
|
6
|
-
* import 'weifuwu/components/style.css'
|
|
5
|
+
* import { Button, Input } from 'weifuwu/client/components'
|
|
6
|
+
* import 'weifuwu/client/components/style.css'
|
|
7
7
|
*/
|
|
8
8
|
export { Icon } from './Icon/Icon.ts';
|
|
9
9
|
export type { IconProps, IconName } from './Icon/Icon.ts';
|