create-kerf-component 5.0.0-beta.13 → 5.0.0-beta.131

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,104 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "https://raw.githubusercontent.com/brianwestphal/kerf/main/ui/ai/component-catalog-extension.schema.json",
4
+ "title": "Kerf UI consumer component catalog extension",
5
+ "type": "object",
6
+ "required": ["schemaVersion", "package", "description", "entries"],
7
+ "properties": {
8
+ "$schema": { "type": "string" },
9
+ "schemaVersion": { "const": 1 },
10
+ "package": { "type": "string", "minLength": 1 },
11
+ "description": { "type": "string", "minLength": 1 },
12
+ "entries": {
13
+ "type": "array",
14
+ "items": { "$ref": "#/$defs/entry" }
15
+ }
16
+ },
17
+ "additionalProperties": false,
18
+ "$defs": {
19
+ "entry": {
20
+ "type": "object",
21
+ "required": [
22
+ "id",
23
+ "name",
24
+ "kind",
25
+ "purpose",
26
+ "useWhen",
27
+ "avoidWhen",
28
+ "geometry"
29
+ ],
30
+ "properties": {
31
+ "id": { "type": "string", "minLength": 1 },
32
+ "name": { "type": "string", "minLength": 1 },
33
+ "kind": { "enum": ["component", "composition"] },
34
+ "purpose": { "type": "string", "minLength": 1 },
35
+ "useWhen": {
36
+ "type": "array",
37
+ "items": { "type": "string" },
38
+ "minItems": 1
39
+ },
40
+ "avoidWhen": {
41
+ "type": "array",
42
+ "items": { "type": "string" },
43
+ "minItems": 1
44
+ },
45
+ "publicClasses": {
46
+ "type": "array",
47
+ "items": { "type": "string" },
48
+ "uniqueItems": true
49
+ },
50
+ "publicTokens": {
51
+ "type": "array",
52
+ "items": { "type": "string" },
53
+ "uniqueItems": true
54
+ },
55
+ "uses": {
56
+ "description": "Directly composed Kerf or consumer catalog entry ids.",
57
+ "type": "array",
58
+ "items": { "type": "string", "minLength": 1 },
59
+ "uniqueItems": true
60
+ },
61
+ "source": { "$ref": "#/$defs/repositoryPath" },
62
+ "styleSources": {
63
+ "description": "Stylesheets owned by this component, relative to the consumer package root. Used by Doctor's opt-in component ownership mode.",
64
+ "type": "array",
65
+ "items": {
66
+ "allOf": [
67
+ { "$ref": "#/$defs/repositoryPath" },
68
+ { "pattern": "\\.css$" }
69
+ ]
70
+ },
71
+ "minItems": 1,
72
+ "uniqueItems": true
73
+ },
74
+ "demoSource": { "$ref": "#/$defs/repositoryPath" },
75
+ "geometry": { "$ref": "#/$defs/geometry" },
76
+ "documentation": { "type": "string", "minLength": 1 }
77
+ },
78
+ "additionalProperties": false
79
+ },
80
+ "geometry": {
81
+ "type": "object",
82
+ "required": ["margin", "border", "padding"],
83
+ "properties": {
84
+ "margin": { "$ref": "#/$defs/geometryOwner" },
85
+ "border": { "$ref": "#/$defs/geometryOwner" },
86
+ "padding": { "$ref": "#/$defs/geometryOwner" },
87
+ "notes": {
88
+ "type": "array",
89
+ "items": { "type": "string", "minLength": 1 },
90
+ "minItems": 1
91
+ }
92
+ },
93
+ "additionalProperties": false
94
+ },
95
+ "geometryOwner": {
96
+ "enum": ["self", "parent", "child", "none", "conditional"]
97
+ },
98
+ "repositoryPath": {
99
+ "description": "A repository-relative POSIX path without traversal or empty segments.",
100
+ "type": "string",
101
+ "pattern": "^(?!.*(?:^|/)\\.{1,2}(?:/|$))[A-Za-z0-9._-]+(?:/[A-Za-z0-9._-]+)*$"
102
+ }
103
+ }
104
+ }