@zat-design/sisyphus-react 4.5.7-beta.1 → 4.5.7-beta.2

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 CHANGED
@@ -98,23 +98,21 @@ yarn test
98
98
  yarn test:coverage # 带覆盖率
99
99
  ```
100
100
 
101
- ### 组件库打包发布
101
+ ### 三包打包发布
102
102
 
103
103
  ```bash
104
- # 1. 构建(生成 es/lib/dist 目录)
105
- yarn build
104
+ # 日常 beta:要求根版本含预发布标识,如 4.5.7-beta.2
105
+ yarn release:beta
106
106
 
107
- # 2. 发布到 npm
108
- yarn release # 正式版
109
- yarn release:beta # beta 版本
110
- ```
111
-
112
- 2. 执行发布(使用域账号登录):
107
+ # 周五正式版:要求根版本不含预发布标识,如 4.5.7
108
+ yarn release
113
109
 
114
- ```bash
115
- npm publish
110
+ # 校验、构建、跑完组件/MCP/Scene 测试并预览 pack,不发布
111
+ yarn release:check
116
112
  ```
117
113
 
114
+ 发布前只需手工修改根 `package.json` 的 `version`。命令会同步 MCP、Scene、文档和契约版本,完成构建、全量测试、校验与打包,再按组件库 → MCP → Scene 发布。安装可继续使用 npmmirror,发布固定走 `https://registry.npmjs.org/`。npm 的浏览器登录/2FA 提示保持原样;中途失败后重跑同一命令,会跳过已经存在的同版本包并继续。
115
+
118
116
  ## 技术栈
119
117
 
120
118
  - React 18.3+ / React 19
package/package.json CHANGED
@@ -1,10 +1,15 @@
1
1
  {
2
2
  "name": "@zat-design/sisyphus-react",
3
- "version": "4.5.7-beta.1",
3
+ "version": "4.5.7-beta.2",
4
4
  "license": "MIT",
5
+ "publishConfig": {
6
+ "access": "public",
7
+ "registry": "https://registry.npmjs.org/"
8
+ },
5
9
  "files": [
6
10
  "es",
7
- "dist",
11
+ "dist/*.css",
12
+ "dist/*.js",
8
13
  "README.md"
9
14
  ],
10
15
  "main": "es/index.js",
@@ -28,7 +33,6 @@
28
33
  "import": "./es/tokens.js",
29
34
  "default": "./es/tokens.js"
30
35
  },
31
- "./ai-meta/*": "./dist/ai/*",
32
36
  "./es/*": "./es/*",
33
37
  "./dist/*": "./dist/*"
34
38
  },
@@ -78,14 +82,9 @@
78
82
  "lint:style": "stylelint --fix \"src/**/*.less\"",
79
83
  "prepare": "husky && patch-package",
80
84
  "prettier": "prettier --write '**/*.{js,jsx,tsx,ts,less,md,json}'",
81
- "pack:main": "npm pack --dry-run",
82
- "pack:mcp": "npm run build:ai-meta && cd packages/sisyphus-react-mcp && npm pack --dry-run",
83
- "release": "npm run release:ai",
84
- "release:mcp": "npm run release:ai",
85
- "release:scene": "npm run release:ai",
86
- "release:ai:check": "node ./scripts/release-ai.mjs --check",
87
- "release:ai": "node ./scripts/release-ai.mjs --publish",
88
- "release:beta": "npm run release:ai",
85
+ "release": "node ./scripts/release.mjs --stable",
86
+ "release:beta": "node ./scripts/release.mjs --beta",
87
+ "release:check": "node ./scripts/release.mjs --check",
89
88
  "start": "cross-env NODE_OPTIONS=\"--openssl-legacy-provider\" dumi dev",
90
89
  "test": "umi-test",
91
90
  "test:coverage": "umi-test --coverage",
@@ -1,390 +0,0 @@
1
- {
2
- "schemaVersion": 2,
3
- "version": "4.5.7-beta.1",
4
- "components": [
5
- {
6
- "name": "ProCollapse",
7
- "aliases": [],
8
- "category": "布局",
9
- "description": "ProCollapse 折叠标题",
10
- "whenToUse": [
11
- "页面内容需要按模块分组展示,并支持折叠/展开时",
12
- "需要一级或二级标题区域折叠,节省长表单或详情页空间时"
13
- ],
14
- "importPath": "@zat-design/sisyphus-react",
15
- "propsType": "ProCollapseType"
16
- },
17
- {
18
- "name": "ProFooter",
19
- "aliases": [],
20
- "category": "布局",
21
- "description": "ProFooter 底部",
22
- "whenToUse": [
23
- "页面底部需要固定悬浮操作栏(提交、保存、取消等)时",
24
- "当底部栏需自适应侧栏宽度,避免遮挡菜单或内容区域时"
25
- ],
26
- "importPath": "@zat-design/sisyphus-react",
27
- "propsType": "ProFooterType"
28
- },
29
- {
30
- "name": "ProHeader",
31
- "aliases": [],
32
- "category": "布局",
33
- "description": "ProHeader 头部",
34
- "whenToUse": [
35
- "页面头部需要展示返回按钮、标题与面包屑导航时",
36
- "头部需展示单号复制、功能按钮等页级操作时",
37
- "头部有摘要信息需要通过 Popover 查看详情数据时"
38
- ],
39
- "importPath": "@zat-design/sisyphus-react",
40
- "propsType": "ProHeaderType"
41
- },
42
- {
43
- "name": "ProLayout",
44
- "aliases": [],
45
- "category": "布局",
46
- "description": "ProLayout 菜单",
47
- "whenToUse": [
48
- "需要搭建带侧边栏菜单、顶部栏与内容区的后台管理系统页面框架时",
49
- "当页面需要标签页导航、iframe 嵌入第三方系统或工作台模式时",
50
- "需要统一管理全局水印、应用入口切换等页面级能力时"
51
- ],
52
- "importPath": "@zat-design/sisyphus-react",
53
- "propsType": "ProLayoutType"
54
- },
55
- {
56
- "name": "ProStep",
57
- "aliases": [],
58
- "category": "布局",
59
- "description": "ProStep 步骤条",
60
- "whenToUse": [
61
- "当长页面需要锚点定位并分步骤展示内容区块时",
62
- "当你需要在步骤间跳转并自动收集各模块的表单校验错误时",
63
- "配合 ProCollapse 使用时,可实现分组折叠与步骤导航联动"
64
- ],
65
- "importPath": "@zat-design/sisyphus-react",
66
- "propsType": "ProStepType"
67
- },
68
- {
69
- "name": "ProTabs",
70
- "aliases": [],
71
- "category": "布局",
72
- "description": "ProTabs 工作台 Tabs",
73
- "whenToUse": [
74
- "工作台页面需要以 Tab 切换展示不同业务分区,且每个 Tab 需显示数量徽标时",
75
- "当 Tab 数据需通过接口异步刷新,或切换 Tab 时触发列表查询时"
76
- ],
77
- "importPath": "@zat-design/sisyphus-react",
78
- "propsType": "ProTabsType"
79
- },
80
- {
81
- "name": "ProTable",
82
- "aliases": [],
83
- "category": "数据展示",
84
- "description": "ProTable 高扩展表格",
85
- "whenToUse": [
86
- "提供多达十种常用类型(`百分比、千分位、枚举、地址、日期时间等`)的快捷展示方式,当你需要快速转换时",
87
- "当你的表格需要支持`自定义列、可伸缩列、拖拽排序、重置列宽、缓存列配置、合计`等功能时",
88
- "配合框架提供的`useAntdTable`使用更佳"
89
- ],
90
- "importPath": "@zat-design/sisyphus-react",
91
- "propsType": "ProTableType"
92
- },
93
- {
94
- "name": "ProTooltip",
95
- "aliases": [],
96
- "category": "数据展示",
97
- "description": "ProTooltip 文本提示",
98
- "whenToUse": [
99
- "文案超长需要设置制定行数省略,然后通过 Tooltip 提示",
100
- "表格中文案需要折叠时"
101
- ],
102
- "importPath": "@zat-design/sisyphus-react",
103
- "propsType": "ProTooltipType"
104
- },
105
- {
106
- "name": "ProViewer",
107
- "aliases": [],
108
- "category": "数据展示",
109
- "description": "ProViewer 文件预览",
110
- "whenToUse": [
111
- "需要在页面内预览 PDF、图片等常见附件,无需用户下载后打开时",
112
- "支持弹窗或新开页面两种预览模式,并可接收接口地址或二进制流数据",
113
- "预览 Word/Excel 时依赖外网微软服务,内网环境可能不可用"
114
- ],
115
- "importPath": "@zat-design/sisyphus-react",
116
- "propsType": "ProViewerType"
117
- },
118
- {
119
- "name": "ProEditTable",
120
- "aliases": [],
121
- "category": "数据录入",
122
- "description": "ProEditTable 可编辑表格",
123
- "whenToUse": [
124
- "表格数据需行内直接编辑,无需弹窗或抽屉二次录入时",
125
- "需要预设新增、删除、保存、取消、批量删除等行操作并同步 Form 值时",
126
- "当表格需支持拖拽排序、虚拟列表、列联动等复杂可编辑场景时"
127
- ],
128
- "importPath": "@zat-design/sisyphus-react",
129
- "propsType": "ProEditTableType"
130
- },
131
- {
132
- "name": "ProDrawerForm",
133
- "aliases": [],
134
- "category": "数据录入",
135
- "description": "ProDrawerForm 抽屉或者弹窗表单组件",
136
- "whenToUse": [
137
- "复杂表单需要在抽屉或弹窗中承载,避免跳转新页面时",
138
- "需要查看模式、自定义头底部、或拖拽调整弹窗/抽屉尺寸时",
139
- "嵌套 ProForm 时,可复用 columns 配置快速搭建弹窗表单"
140
- ],
141
- "importPath": "@zat-design/sisyphus-react",
142
- "propsType": "ProDrawerFormType"
143
- },
144
- {
145
- "name": "ProEditLabel",
146
- "aliases": [],
147
- "category": "数据录入",
148
- "description": "ProEditLabel 编辑的 label",
149
- "whenToUse": [
150
- "表格里只想编辑其中的某一个部分,默认支持 ProForm 内置的所有表单与转换器",
151
- "审核与删除或者其他场景通过按钮或文字触发弹窗再次填写信息时使用"
152
- ],
153
- "importPath": "@zat-design/sisyphus-react",
154
- "propsType": "ProEditLabelType"
155
- },
156
- {
157
- "name": "ProStepTab",
158
- "aliases": [],
159
- "category": "数据录入",
160
- "description": "ProStepTab 分步表单 Tab",
161
- "whenToUse": [
162
- "需要将长表单拆分为多个步骤 Tab 分步填写时",
163
- "当切换 Tab 或刷新页面后需保持当前激活步骤状态时",
164
- "需要有序激活、自动跳转下一步或全局模式控制分步流程时"
165
- ],
166
- "importPath": "@zat-design/sisyphus-react",
167
- "propsType": "ProStepTabType"
168
- },
169
- {
170
- "name": "ProCascader",
171
- "aliases": [],
172
- "category": "表单",
173
- "description": "ProCascader 级联组件",
174
- "whenToUse": [
175
- "需要级联选择地址,或通过 mode 为 address 录入省市区街道时",
176
- "数据源可通过全局枚举 code 读取,也支持自定义接口请求与数据转换",
177
- "结合 ProForm 使用时,可一键配置表单项级联与值转换逻辑"
178
- ],
179
- "importPath": "@zat-design/sisyphus-react",
180
- "propsType": "ProCascaderType"
181
- },
182
- {
183
- "name": "ProEnum",
184
- "aliases": [],
185
- "category": "表单",
186
- "description": "ProEnum 枚举组件",
187
- "whenToUse": [
188
- "需要根据全局枚举或自定义数据展示下拉框、单选/多选等表单控件时",
189
- "同一枚举需在页面多处复用,且支持 tag、Segmented 等多种展示形式时"
190
- ],
191
- "importPath": "@zat-design/sisyphus-react",
192
- "propsType": "ProEnumType"
193
- },
194
- {
195
- "name": "ProForm",
196
- "aliases": [],
197
- "category": "表单",
198
- "description": "ProForm 表单引擎",
199
- "whenToUse": [
200
- "提供类似 ant table 的 `columns` 快速配置,一个输入组件最少只需两个字段即可",
201
- "内置枚举、日期增强、地址、证件号码、范围框等多种自定义输入组件类型",
202
- "提供查看模式,避免统一使用禁用模式展示只读数据"
203
- ],
204
- "importPath": "@zat-design/sisyphus-react",
205
- "propsType": "ProFormType"
206
- },
207
- {
208
- "name": "ProModalSelect",
209
- "aliases": [],
210
- "category": "表单",
211
- "description": "ProModalSelect 弹窗分页选择",
212
- "whenToUse": [
213
- "当下拉框无法展示足够信息,需要通过表格分页搜索选择数据时",
214
- "需要多选、远程回显、labelInValue 提交对象或自定义确认选择流程时",
215
- "结合 ProForm 使用时,可复用 columns 配置快速搭建弹窗选择表单"
216
- ],
217
- "importPath": "@zat-design/sisyphus-react",
218
- "propsType": "ProModalSelectType"
219
- },
220
- {
221
- "name": "ProNumberRange",
222
- "aliases": [],
223
- "category": "表单",
224
- "description": "ProNumberRange 数字范围",
225
- "whenToUse": [
226
- "表单中需要录入金额、数量等数字的最小值和最大值范围时",
227
- "结合 ProForm 使用时,支持范围值的自动拆分与合并转换"
228
- ],
229
- "importPath": "@zat-design/sisyphus-react",
230
- "propsType": "ProNumberRangeType"
231
- },
232
- {
233
- "name": "ProSelect",
234
- "aliases": [],
235
- "category": "表单",
236
- "description": "ProSelect 加强下拉框",
237
- "whenToUse": [
238
- "当标准 Select 无法满足远程搜索、异步加载或 value-label 回显需求时",
239
- "需要下拉选项超长展示 tooltip,或提交对象/多选字符串等多种值格式时",
240
- "结合 ProForm 使用时,可统一配置 fieldNames 和接口数据转换",
241
- "*dataSource** 默认数据数据格式为:",
242
- "```js",
243
- "const dataSource = [",
244
- "{ label: '上海', value: 'sh' },",
245
- "{ label: '北京', value: 'bj' },",
246
- "{ label: '武汉', value: 'wh' },",
247
- "];",
248
- "```"
249
- ],
250
- "importPath": "@zat-design/sisyphus-react",
251
- "propsType": "ProSelectType"
252
- },
253
- {
254
- "name": "ProTimeLimit",
255
- "aliases": [],
256
- "category": "表单",
257
- "description": "ProTimeLimit 证件有效期",
258
- "whenToUse": [
259
- "录入身份证、护照等证件有效期,且需提供「长期有效」快捷选项时",
260
- "结合 ProForm 使用时,支持切换日期格式和不同 valueType 回传"
261
- ],
262
- "importPath": "@zat-design/sisyphus-react",
263
- "propsType": "ProTimeLimitType"
264
- },
265
- {
266
- "name": "ProTree",
267
- "aliases": [],
268
- "category": "表单",
269
- "description": "ProTree 树",
270
- "whenToUse": [
271
- "需要树形或下拉树方式选择层级数据,支持搜索、全选、只选叶子节点时",
272
- "数据源可通过接口、ProEnum 全局枚举获取,并支持查看模式与粘连选择时",
273
- "在表单中需要展示 value-label 格式,或自定义渲染树节点时"
274
- ],
275
- "importPath": "@zat-design/sisyphus-react",
276
- "propsType": "ProTreeType"
277
- },
278
- {
279
- "name": "ProTreeModal",
280
- "aliases": [],
281
- "category": "表单",
282
- "description": "ProTreeModal 树弹框选择",
283
- "whenToUse": [
284
- "当平铺列表或树形结构的选择项过多,需要弹窗分页/搜索选取时",
285
- "需要限制选择数量、支持拖拽排序、级联展示或指定模式操作时",
286
- "表单中需以 labelInValue 提交对象,或自定义 trigger 触发选择时"
287
- ],
288
- "importPath": "@zat-design/sisyphus-react",
289
- "propsType": "ProTreeModalType"
290
- },
291
- {
292
- "name": "ProUpload",
293
- "aliases": [],
294
- "category": "表单",
295
- "description": "ProUpload 上传控件",
296
- "whenToUse": [
297
- "需要拖拽上传、模板下载后上传,或多文件/图片证件上传场景时",
298
- "当上传需结合 ProForm 表单,或需外部手动控制上传时机时"
299
- ],
300
- "importPath": "@zat-design/sisyphus-react",
301
- "propsType": "ProUploadType"
302
- },
303
- {
304
- "name": "ProThemeTools",
305
- "aliases": [],
306
- "category": "通用",
307
- "description": "ProThemeTools 主题配置",
308
- "whenToUse": [
309
- "开发环境需要快速调试全局主题色、间距、表单对齐方式时",
310
- "微前端场景需要调整整个系统的主题配置并持久化缓存时",
311
- "主题配置工具,用于开发环境"
312
- ],
313
- "importPath": "@zat-design/sisyphus-react",
314
- "propsType": "ProThemeToolsType"
315
- },
316
- {
317
- "name": "ProIcon",
318
- "aliases": [],
319
- "category": "通用",
320
- "description": "ProIcon 图标",
321
- "whenToUse": [
322
- "需要展示 iconFont 图标库中的图标,或在菜单、表单前后缀位置使用图标时",
323
- "当图标需要配合 tooltip、主题色、loading 等状态展示时"
324
- ],
325
- "importPath": "@zat-design/sisyphus-react",
326
- "propsType": "ProIconType"
327
- },
328
- {
329
- "name": "ProDownload",
330
- "aliases": [],
331
- "category": "通用",
332
- "description": "ProDownload 下载按钮",
333
- "whenToUse": [
334
- "需要在当前页面触发文件下载,避免打开新标签页时",
335
- "当文件需通过 Post 接口返回文件流下载,或支持静态资源地址下载时",
336
- "下载按钮需继承 antd Button 属性,并支持下载前/后自定义处理时"
337
- ],
338
- "importPath": "@zat-design/sisyphus-react",
339
- "propsType": "ProDownloadType"
340
- },
341
- {
342
- "name": "ProWaterMark",
343
- "aliases": [
344
- "ProWatermark"
345
- ],
346
- "category": "通用",
347
- "description": "ProWaterMark 水印组件",
348
- "whenToUse": [
349
- "页面或局部区域需要添加文字/图片水印,标识版权或敏感信息时",
350
- "当需要对特定容器而非全屏添加水印保护时"
351
- ],
352
- "importPath": "@zat-design/sisyphus-react",
353
- "propsType": "ProWaterMarkType"
354
- },
355
- {
356
- "name": "ProConfigProvider",
357
- "aliases": [],
358
- "category": "通用",
359
- "description": "ProConfigProvider 全局化配置",
360
- "whenToUse": [
361
- "需要在应用入口统一配置 ProForm、ProEnum、ProTable 等组件的默认行为和全局数据源时",
362
- "当需要切换中英文国际化,或统一设置 antd 主题与组件默认样式时",
363
- "微前端或大型应用中,需在根布局一次性注入枚举接口、地址栏等公共配置时"
364
- ],
365
- "importPath": "@zat-design/sisyphus-react",
366
- "propsType": "ProConfigProviderType"
367
- },
368
- {
369
- "name": "ProAction",
370
- "aliases": [],
371
- "category": "通用",
372
- "description": "ProAction 事件封装",
373
- "whenToUse": [
374
- "表格删除、编辑等操作需要先调用接口校验并展示错误信息时",
375
- "需要在操作前弹出确认框,并支持链式异步请求串联多个步骤时",
376
- "当与 ProTable 等列表组件结合,统一处理鉴权、删除确认等重复交互时",
377
- "对表格删除、鉴权等场景的函数封装、支持异步、事件流链式调用",
378
- "*解析弹框数据格式如下**、可以通过 `useRequest` 中的 `transformResponse` 进行格式化",
379
- "```ts",
380
- "interface Datta {",
381
- "errorTitle: string;",
382
- "list: string[];",
383
- "}",
384
- "```"
385
- ],
386
- "importPath": "@zat-design/sisyphus-react",
387
- "propsType": "ProActionType"
388
- }
389
- ]
390
- }