@godxjp/ui 31.19.0 → 31.20.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/README.md +5 -0
- package/agent/START-HERE.md +1 -1
- package/agent/components/Markdown.json +7 -2
- package/agent/components.json +7 -2
- package/agent/index.json +2 -2
- package/agent/llms.txt +3 -3
- package/dist/contracts/measurement.json +1 -1
- package/dist/styles/layers.json +1 -1
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -30,6 +30,11 @@ Writes `.mcp.json`, `CLAUDE.md` and `.ai/rules/` into the consumer repo and wire
|
|
|
30
30
|
**locked to the version on disk** — the failure it prevents is an agent being told a prop does not
|
|
31
31
|
exist because the catalog was two minors behind (gh#789).
|
|
32
32
|
|
|
33
|
+
The package's postinstall runs this on every install, so an upgrade moves the MCP pin forward by
|
|
34
|
+
itself. **Where install scripts are off** (`npm config get ignore-scripts` is `true`, which some CI
|
|
35
|
+
images and machines set), it never runs: run `npx @godxjp/ui sync-rules` yourself after each upgrade,
|
|
36
|
+
or the agent keeps asking the catalog of the version you first installed.
|
|
37
|
+
|
|
33
38
|
### If your agent can only fetch URLs
|
|
34
39
|
|
|
35
40
|
ChatGPT on the web, Claude.ai, or any client without a local process. The same data is served as
|
package/agent/START-HERE.md
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
You are about to write code against a design system you did not author. This file is the whole
|
|
4
4
|
contract. Read it before you write JSX.
|
|
5
5
|
|
|
6
|
-
**This catalog describes `@godxjp/ui` 31.
|
|
6
|
+
**This catalog describes `@godxjp/ui` 31.20.1.** If the project you are editing has a different
|
|
7
7
|
version in its `package.json`, read the pinned catalog for THAT version instead
|
|
8
8
|
(`…/v<their-version>/agent/…`). A catalog newer than the installed package describes props that do
|
|
9
9
|
not exist yet; older, and it hides props that do. Neither failure announces itself.
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
"type": "PluggableList"
|
|
18
18
|
},
|
|
19
19
|
{
|
|
20
|
-
"description": "Tags / attributes a host plugin needs.
|
|
20
|
+
"description": "Tags / attributes a host plugin needs. A rule for an attribute the base already constrains is MERGED into it (e.g. `code` `className` + `math-inline`), gh#1116. It can never widen the URL policy or bring raw HTML back.",
|
|
21
21
|
"name": "schema",
|
|
22
22
|
"type": "{ tagNames?: string[]; attributes?: Record<string, …> }"
|
|
23
23
|
},
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
"type": "({ depth, text, index }) => string | undefined"
|
|
33
33
|
},
|
|
34
34
|
{
|
|
35
|
-
"description": "Element overrides (react-markdown).
|
|
35
|
+
"description": "Element overrides (react-markdown). Mermaid fences are drawn through the gate BEFORE a host `pre` is asked, so a host code renderer keeps Mermaid (gh#1116).",
|
|
36
36
|
"name": "components",
|
|
37
37
|
"type": "Components"
|
|
38
38
|
},
|
|
@@ -41,6 +41,11 @@
|
|
|
41
41
|
"name": "rehypePlugins",
|
|
42
42
|
"type": "PluggableList"
|
|
43
43
|
},
|
|
44
|
+
{
|
|
45
|
+
"description": "Narrow the elements a body may produce (with `unwrapDisallowed` to keep their text) — an activity feed showing only strong / em / del / code. Only removes; never allows what the schema strips (gh#1116).",
|
|
46
|
+
"name": "allowedElements",
|
|
47
|
+
"type": "string[]"
|
|
48
|
+
},
|
|
44
49
|
{
|
|
45
50
|
"defaultValue": "true",
|
|
46
51
|
"description": "`false` keeps ```mermaid fences as code. Diagrams need the optional peer `mermaid`.",
|
package/agent/components.json
CHANGED
|
@@ -5006,7 +5006,7 @@
|
|
|
5006
5006
|
"type": "PluggableList"
|
|
5007
5007
|
},
|
|
5008
5008
|
{
|
|
5009
|
-
"description": "Tags / attributes a host plugin needs.
|
|
5009
|
+
"description": "Tags / attributes a host plugin needs. A rule for an attribute the base already constrains is MERGED into it (e.g. `code` `className` + `math-inline`), gh#1116. It can never widen the URL policy or bring raw HTML back.",
|
|
5010
5010
|
"name": "schema",
|
|
5011
5011
|
"type": "{ tagNames?: string[]; attributes?: Record<string, …> }"
|
|
5012
5012
|
},
|
|
@@ -5021,7 +5021,7 @@
|
|
|
5021
5021
|
"type": "({ depth, text, index }) => string | undefined"
|
|
5022
5022
|
},
|
|
5023
5023
|
{
|
|
5024
|
-
"description": "Element overrides (react-markdown).
|
|
5024
|
+
"description": "Element overrides (react-markdown). Mermaid fences are drawn through the gate BEFORE a host `pre` is asked, so a host code renderer keeps Mermaid (gh#1116).",
|
|
5025
5025
|
"name": "components",
|
|
5026
5026
|
"type": "Components"
|
|
5027
5027
|
},
|
|
@@ -5030,6 +5030,11 @@
|
|
|
5030
5030
|
"name": "rehypePlugins",
|
|
5031
5031
|
"type": "PluggableList"
|
|
5032
5032
|
},
|
|
5033
|
+
{
|
|
5034
|
+
"description": "Narrow the elements a body may produce (with `unwrapDisallowed` to keep their text) — an activity feed showing only strong / em / del / code. Only removes; never allows what the schema strips (gh#1116).",
|
|
5035
|
+
"name": "allowedElements",
|
|
5036
|
+
"type": "string[]"
|
|
5037
|
+
},
|
|
5033
5038
|
{
|
|
5034
5039
|
"defaultValue": "true",
|
|
5035
5040
|
"description": "`false` keeps ```mermaid fences as code. Diagrams need the optional peer `mermaid`.",
|
package/agent/index.json
CHANGED
|
@@ -48,7 +48,7 @@
|
|
|
48
48
|
"note": "Pin to the tag that matches the @godxjp/ui version you installed. A catalog newer than your package describes props you do not have; older, and it hides props you do.",
|
|
49
49
|
"read": {
|
|
50
50
|
"live": "https://raw.githubusercontent.com/godx-jp/godxjp-ui/main/agent/index.json",
|
|
51
|
-
"pinned": "https://raw.githubusercontent.com/godx-jp/godxjp-ui/v31.
|
|
51
|
+
"pinned": "https://raw.githubusercontent.com/godx-jp/godxjp-ui/v31.20.1/agent/index.json"
|
|
52
52
|
},
|
|
53
53
|
"source": "mcp/src/data — the same data @godxjp/ui-mcp serves — plus the foundation and semantic token tiers, read from src/tokens/*.css",
|
|
54
54
|
"start": "https://raw.githubusercontent.com/godx-jp/godxjp-ui/main/agent/START-HERE.md",
|
|
@@ -62,5 +62,5 @@
|
|
|
62
62
|
"foundation": "the seeds a consumer is invited to set — --primary, --background, --radius",
|
|
63
63
|
"semantic": "named roles that follow the seeds — --ring, --text-link, --overlay-background"
|
|
64
64
|
},
|
|
65
|
-
"version": "31.
|
|
65
|
+
"version": "31.20.1"
|
|
66
66
|
}
|
package/agent/llms.txt
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
# @godxjp/ui
|
|
2
2
|
|
|
3
3
|
> A Japanese-enterprise React design system: 181 components, 2129 design tokens,
|
|
4
|
-
> 50 cardinal rules. This file is the entry point for AI agents. Catalog version 31.
|
|
4
|
+
> 50 cardinal rules. This file is the entry point for AI agents. Catalog version 31.20.1.
|
|
5
5
|
|
|
6
6
|
If your client can run a process, do not read these files — run the MCP server instead
|
|
7
|
-
(`npx @godxjp/ui-mcp@31.
|
|
7
|
+
(`npx @godxjp/ui-mcp@31.20.1`). It is searchable and version-locked. These files exist for agents
|
|
8
8
|
that can only fetch URLs.
|
|
9
9
|
|
|
10
10
|
## Start
|
|
@@ -26,7 +26,7 @@ that can only fetch URLs.
|
|
|
26
26
|
## Pinning
|
|
27
27
|
|
|
28
28
|
Every URL above tracks `main`. To pin to the release a project actually installed, swap `main` for
|
|
29
|
-
the tag: `.../godx-jp/godxjp-ui/v31.
|
|
29
|
+
the tag: `.../godx-jp/godxjp-ui/v31.20.1/agent/...`. A catalog that does not match the installed
|
|
30
30
|
package describes props that are absent, or hides props that are present, and says nothing either way.
|
|
31
31
|
|
|
32
32
|
Pinned catalogs only exist for releases whose tag actually contains `agent/`. If `…/v<version>/agent/index.json` returns 404, that release predates this catalog: read `…/main/…` instead and compare `index.json` → `version` against the package you have, so you at least know which way it drifted.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$comment": "AUTO-GENERATED by scripts/gen-measurement-contract.mjs — do not edit. Read this instead of guessing: docs/MEASUREMENT-CONTRACT.md.",
|
|
3
|
-
"version": "31.
|
|
3
|
+
"version": "31.20.1",
|
|
4
4
|
"targetSize": {
|
|
5
5
|
"standard": "WCAG 2.2 SC 2.5.8 Target Size (Minimum), level AA — 24×24 CSS px",
|
|
6
6
|
"min": 24,
|
package/dist/styles/layers.json
CHANGED