@manohub/kit 1.2.0 → 1.2.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.
Files changed (2) hide show
  1. package/CONTRACT.md +1 -1
  2. package/package.json +1 -1
package/CONTRACT.md CHANGED
@@ -225,7 +225,7 @@ configureHost(hostEl)
225
225
  | --- | --- | --- |
226
226
  | **L1-1 应用侧不持有值** | 应用侧的 `--*` 自定义属性**一处都不该有**。只有两种合法写法:① **重设已存在的令牌**(局部换肤)② 不写 | 值的唯一来源是 theme。局部换肤是合法且推荐的(见下) |
227
227
  | **L1-2 引用必须存在** | 每个 `var(--xxx)` 的 `--xxx` 必须能在 theme 六片或 `<件>.tokens.css` 里**搜到**。**新增令牌名一律违规** | 写错名字不会报错,只会静默回退成默认值 |
228
- | **L1-3 尺寸取令牌** | 尺寸取 `--ui-space-*` / `--ui-radius-*` / `--ui-control-height-*` / `--ui-control-width` / `--ui-control-min-width` / `--ui-row-height` / `--ui-grid-column-min`;**几何是设计基准、不跟根字号**,故禁 `rem`;内距给 **px 数字**(与 `Padding` 同口径) | 设计基准不随宿主根字号分叉 |
228
+ | **L1-3 尺寸取令牌** | 尺寸取 `--ui-space-*` / `--ui-gutter-x` / `--ui-radius-*` / `--ui-control-height-*` / `--ui-control-width` / `--ui-control-min-width` / `--ui-row-height` / `--ui-grid-column-min`;**几何是设计基准、不跟根字号**,故禁 `rem`;内距给 **px 数字**(与 `Padding` 同口径)—— 要引用「内容留白」就传 `{ x: 'var(--ui-gutter-x)' }` 这类字符串,别写字面量 | 设计基准不随宿主根字号分叉;留白换档只改令牌一处 |
229
229
  | **L1-4 只写布局属性** | `<style>` 与 `style={{ }}` 里的属性名必须在**下面的白名单**内 | theme 是视觉的唯一来源 |
230
230
  | **L1-5 类名形状** | 类名一律 `<本仓命名空间>-<kebab-case>`。落点 A:CSS 选择器**首段**;落点 B:`class=` 的**每个 token** | 两个应用装进同一页面时不能撞名 |
231
231
  | **L1-6 不碰库的类** | 选择器里**不得出现 `.mh-`**;不得用 `!important`;不得用裸元素选择器与 `*`(1.0.6 起**没有例外** —— 入口基线已归库,见 §1.2 末条)| `.mh-*` 与档位类归 ui;覆写升版即静默失效 |
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@manohub/kit",
3
- "version": "1.2.0",
3
+ "version": "1.2.1",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "description": "子应用入口编排层:createSubApp(作用域容器与宿主锚点、pinia/路由装配、宿主挂载协议)、i18n 单实例与语言探测,外加随包分发的接入契约(CONTRACT.md,五层闭集条款 + 自检清单)与三个 AI 技能包。样式方面本包只有**一条出口** `./index.css`(请求层不归本包,谁用 vue-query 谁自己装;四节库级基座:宿主兜底 / `.app-container` 容器布局 / 滚动条 / `.app-markdown` 富文本排版;设计令牌(值)在 @manohub/theme,组件(类与行为)在 @manohub/ui,两者由消费方直接引入)。",