@yuku123/z-ctc-component 1.0.3 → 1.0.5

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.
@@ -0,0 +1,13 @@
1
+ /**
2
+ * 组件文档页(lead 008 §7)—— 文档内容来自本包 src/DOC.md。
3
+ *
4
+ * 为什么用 `?raw`:vite 编译期把 DOC.md 内联成字符串,零额外请求;
5
+ * 文档随包发布,宿主不用管文件怎么放。
6
+ *
7
+ * 为什么用基座的 ComponentDoc:左 240px TOC + 右正文两栏这套渲染逻辑在 25 个仓里逐字重复,
8
+ * 基座已经收成共享组件(@yuku123/z-frontend-common/ui),各仓只提供 DOC.md。
9
+ *
10
+ * 主壳按**统一名**取本页:`lazyNamed(() => import('@yuku123/z-ctc-component'), 'ComponentDocPage')`
11
+ * ⇒ 本仓主入口必须具名再导出 ComponentDocPage(见 src/index.tsx)。
12
+ */
13
+ export default function ComponentDocPage(): import("react").JSX.Element;
@@ -1,10 +1,17 @@
1
+ import { ComponentDocPage } from '.';
2
+
1
3
  export declare const appMeta: {
2
4
  title: string;
3
5
  short: string;
4
6
  };
5
- export declare const routes: {
7
+ export declare const routes: ({
6
8
  path: string;
7
9
  title: string;
8
10
  order: number;
9
11
  Component: import('react').FC<import('.').HelloCtcProps>;
10
- }[];
12
+ } | {
13
+ path: string;
14
+ title: string;
15
+ order: number;
16
+ Component: typeof ComponentDocPage;
17
+ })[];
package/dist/pages.cjs CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./index.cjs"),e={title:"z-ctc 控制台",short:"z-ctc"},o=[{path:"/z-ctc/hello",title:"Hello Ctc",order:1,Component:t.HelloCtc}];exports.appMeta=e;exports.routes=o;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./index.cjs"),e={title:"z-ctc 控制台",short:"z-ctc"},o=[{path:"/z-ctc/hello",title:"Hello Ctc",order:1,Component:t.HelloCtc},{path:"/z-ctc/docs",title:"组件文档",order:2,Component:t.ComponentDocPage}];exports.appMeta=e;exports.routes=o;
package/dist/pages.js CHANGED
@@ -1,8 +1,12 @@
1
- import { HelloCtc as t } from "./index.js";
2
- const c = { title: "z-ctc 控制台", short: "z-ctc" }, e = [
3
- { path: "/z-ctc/hello", title: "Hello Ctc", order: 1, Component: t }
1
+ import { HelloCtc as t, ComponentDocPage as o } from "./index.js";
2
+ const c = { title: "z-ctc 控制台", short: "z-ctc" }, l = [
3
+ { path: "/z-ctc/hello", title: "Hello Ctc", order: 1, Component: t },
4
+ // 组件文档(lead 008 §7):本文件(src/DOC.md)的渲染页。
5
+ // 这条路径是给**独立壳**用的 —— 独立壳把 routes 数组直接铺成 <Route>;
6
+ // 主壳「系统工作台」按宿主前缀挂各域,文档页的实际路径是 /ctc/docs。
7
+ { path: "/z-ctc/docs", title: "组件文档", order: 2, Component: o }
4
8
  ];
5
9
  export {
6
10
  c as appMeta,
7
- e as routes
11
+ l as routes
8
12
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yuku123/z-ctc-component",
3
- "version": "1.0.3",
3
+ "version": "1.0.5",
4
4
  "description": "z-ctc 4A 中心共享 UI 组件层(library mode)—— 与 z-schedule-frontend-component 同规范",
5
5
  "type": "module",
6
6
  "main": "./dist/index.cjs",
@@ -28,7 +28,7 @@
28
28
  "peerDependencies": {
29
29
  "@ant-design/icons": "^6.0.0",
30
30
  "@ant-design/pro-components": "^3.1.12-0",
31
- "@yuku123/z-frontend-common": "^1.1.1",
31
+ "@yuku123/z-frontend-common": "^1.1.4",
32
32
  "antd": "^6.0.0",
33
33
  "react": "^19.0.0",
34
34
  "react-dom": "^19.0.0",
@@ -40,10 +40,10 @@
40
40
  "@types/react": "^19.2.0",
41
41
  "@types/react-dom": "^19.2.0",
42
42
  "@vitejs/plugin-react": "^4.2.1",
43
- "@yuku123/z-frontend-common": "^1.1.1",
43
+ "@yuku123/z-frontend-common": "^1.1.4",
44
+ "antd": "^6.3.3",
44
45
  "react": "^19.2.0",
45
46
  "react-dom": "^19.2.0",
46
- "antd": "^6.3.3",
47
47
  "react-router-dom": "^7.13.1",
48
48
  "typescript": "^5.3.3",
49
49
  "vite": "^6.2.0",