@xiongtao.xt/tau-plugins 0.31.0 → 0.31.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/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # 更新记录
2
2
 
3
+ ## 0.31.1
4
+
5
+ - 修复:数据客户端读取 0.31.0 生成的站点清单时报「站点数据缺失」。客户端改为校验 `site.fields`,不再要求已移除的 `site.description`。
6
+
3
7
  ## 0.31.0
4
8
 
5
9
  - 模板 manifest 新增 `template.siteFields`:声明模板需要的站点字段(文本、多行、链接、下拉、开关),用户在发布页「站点设置」中填写,宿主校验后按声明渲染。
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xiongtao.xt/tau-plugins",
3
- "version": "0.31.0",
3
+ "version": "0.31.1",
4
4
  "license": "MIT",
5
5
  "repository": {
6
6
  "type": "git",
package/publish-client.js CHANGED
@@ -88,7 +88,9 @@ function createClient({ manifestUrl }) {
88
88
  );
89
89
  const keys = /* @__PURE__ */ new Set();
90
90
  assert(
91
- typeof value.site.title === "string" && typeof value.site.description === "string" && typeof value.site.basePath === "string",
91
+ typeof value.site.title === "string" && typeof value.site.basePath === "string" && record(value.site.fields) && Object.values(value.site.fields).every(
92
+ (field) => typeof field === "string" || typeof field === "boolean"
93
+ ),
92
94
  "INVALID_DATA",
93
95
  "\u7AD9\u70B9\u6570\u636E\u7F3A\u5931"
94
96
  );
@@ -12,6 +12,8 @@ export interface TabsProps<K extends string = string> {
12
12
  /** 标签居中(默认左对齐) */
13
13
  centered?: boolean;
14
14
  className?: string;
15
+ /** 面板容器类名:标签栏固定、面板独立滚动时由调用方给出高度约束 */
16
+ panelClassName?: string;
15
17
  }
16
18
  /** 下划线式标签页(与 desktop 设置页同一视觉语言);方向键在标签间移动 */
17
- export declare function Tabs<K extends string = string>({ items, activeKey: activeKeyProp, defaultActiveKey, onChange, centered, className, }: TabsProps<K>): import("react/jsx-runtime").JSX.Element;
19
+ export declare function Tabs<K extends string = string>({ items, activeKey: activeKeyProp, defaultActiveKey, onChange, centered, className, panelClassName, }: TabsProps<K>): import("react/jsx-runtime").JSX.Element;