@tbox.cn/app-theme-tbox 1.0.0-alpha.19 → 1.0.0-alpha.21

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.
Files changed (2) hide show
  1. package/README.md +2 -2
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -6,7 +6,7 @@
6
6
  ## 接线(生成应用侧三行;模板出厂已接线)
7
7
 
8
8
  ```tsx
9
- // apps/client/src/platform/bootstrap.ts 启动层自由区(CLI 永不触碰;生成 entry 与根 entry 共享)
9
+ // apps/client/src/app.config.ts 启动层自由区(CLI 永不触碰的第一 import)
10
10
  import '@tbox.cn/app-theme-tbox/index.css';
11
11
  import '@tbox.cn/app-theme-tbox/brand.js';
12
12
  import { applyTheme } from '@tbox.cn/app-agent-ui-kit/theme';
@@ -14,7 +14,7 @@ applyTheme('tbox');
14
14
  ```
15
15
 
16
16
  - 安装:模板 `catalog:` 引用(`@tbox.cn/app-theme-tbox`),registry 解析;本地验证态经 create `--local-deps` 注入 file: override。
17
- - 接线落点:客户端启动层 `apps/client/src/platform/bootstrap.ts`(出厂形态,applyTheme 在 `bootstrap()` 内);存量应用为 `apps/client/src/main.tsx`。两形态 `theme use` / doctor ㉖ 均按候选清单识别。
17
+ - 接线落点:客户端启动层 `apps/client/src/app.config.ts`(出厂形态,接线三行 + applyTheme('tbox') 就在装配真源里);历史应用的老落点(`platform/bootstrap.ts` / `main.tsx`)由 `theme use` / doctor ㉖ 按候选清单识别。
18
18
  - **换主题 = 替换语义**:remove 本包 + 替换三行(叠加会致旧主题 css import 残留死重);换入品牌主题包步骤见 cookbook·build-app-image「主题接线」节。
19
19
  - 装而未接线 → `npx --yes @tbox.cn/app-cli module doctor` ㉖ 告警(theme-import warning)。
20
20
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tbox.cn/app-theme-tbox",
3
- "version": "1.0.0-alpha.19",
3
+ "version": "1.0.0-alpha.21",
4
4
  "type": "module",
5
5
  "description": "平台品牌主题包(公开发布):五段 CSS 覆写 + 平台 IP 素材九语义位 + brand.js 品牌副作用入口(v1 仅标题)。接线 = import 本包 index.css + brand.js + applyTheme('tbox') 三行。素材独立化——IP 换代 = 本包补丁,模块零品牌资产。",
6
6
  "exports": {