@capybara-hq/plugin-sdk 0.1.0-rc.6 → 0.1.0-rc.8

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,225 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "https://capybarahq.com/schemas/theme.v1.schema.json",
4
+ "title": "Capybara theme file themes/<id>.json",
5
+ "type": "object",
6
+ "properties": {
7
+ "$schema": {
8
+ "type": "string",
9
+ "maxLength": 512
10
+ },
11
+ "name": {
12
+ "type": "object",
13
+ "properties": {
14
+ "zh": {
15
+ "type": "string",
16
+ "minLength": 1,
17
+ "maxLength": 100,
18
+ "pattern": "\\S"
19
+ },
20
+ "en": {
21
+ "type": "string",
22
+ "minLength": 1,
23
+ "maxLength": 100,
24
+ "pattern": "\\S"
25
+ }
26
+ },
27
+ "required": [
28
+ "zh",
29
+ "en"
30
+ ],
31
+ "additionalProperties": false
32
+ },
33
+ "description": {
34
+ "type": "object",
35
+ "properties": {
36
+ "en": {
37
+ "type": "string",
38
+ "minLength": 1,
39
+ "maxLength": 1024,
40
+ "pattern": "\\S"
41
+ },
42
+ "zh": {
43
+ "type": "string",
44
+ "minLength": 1,
45
+ "maxLength": 1024,
46
+ "pattern": "\\S"
47
+ }
48
+ },
49
+ "required": [
50
+ "en"
51
+ ],
52
+ "additionalProperties": false
53
+ },
54
+ "schemes": {
55
+ "type": "object",
56
+ "properties": {
57
+ "dark": {
58
+ "type": "object",
59
+ "properties": {
60
+ "color": {
61
+ "type": "object",
62
+ "propertyNames": {
63
+ "type": "string",
64
+ "maxLength": 64
65
+ },
66
+ "additionalProperties": {
67
+ "type": "string",
68
+ "maxLength": 256
69
+ }
70
+ },
71
+ "shadow": {
72
+ "type": "object",
73
+ "propertyNames": {
74
+ "type": "string",
75
+ "maxLength": 64
76
+ },
77
+ "additionalProperties": {
78
+ "type": "string",
79
+ "maxLength": 256
80
+ }
81
+ },
82
+ "radius": {
83
+ "type": "object",
84
+ "properties": {
85
+ "sm": {
86
+ "type": "integer",
87
+ "minimum": 0,
88
+ "maximum": 16
89
+ },
90
+ "md": {
91
+ "type": "integer",
92
+ "minimum": 0,
93
+ "maximum": 16
94
+ },
95
+ "bubble": {
96
+ "type": "integer",
97
+ "minimum": 0,
98
+ "maximum": 16
99
+ }
100
+ },
101
+ "additionalProperties": false
102
+ }
103
+ },
104
+ "additionalProperties": false
105
+ },
106
+ "light": {
107
+ "type": "object",
108
+ "properties": {
109
+ "color": {
110
+ "type": "object",
111
+ "propertyNames": {
112
+ "type": "string",
113
+ "maxLength": 64
114
+ },
115
+ "additionalProperties": {
116
+ "type": "string",
117
+ "maxLength": 256
118
+ }
119
+ },
120
+ "shadow": {
121
+ "type": "object",
122
+ "propertyNames": {
123
+ "type": "string",
124
+ "maxLength": 64
125
+ },
126
+ "additionalProperties": {
127
+ "type": "string",
128
+ "maxLength": 256
129
+ }
130
+ },
131
+ "radius": {
132
+ "type": "object",
133
+ "properties": {
134
+ "sm": {
135
+ "type": "integer",
136
+ "minimum": 0,
137
+ "maximum": 16
138
+ },
139
+ "md": {
140
+ "type": "integer",
141
+ "minimum": 0,
142
+ "maximum": 16
143
+ },
144
+ "bubble": {
145
+ "type": "integer",
146
+ "minimum": 0,
147
+ "maximum": 16
148
+ }
149
+ },
150
+ "additionalProperties": false
151
+ }
152
+ },
153
+ "additionalProperties": false
154
+ }
155
+ },
156
+ "additionalProperties": false
157
+ },
158
+ "fonts": {
159
+ "maxItems": 8,
160
+ "type": "array",
161
+ "items": {
162
+ "type": "object",
163
+ "properties": {
164
+ "family": {
165
+ "type": "string",
166
+ "pattern": "^[A-Za-z0-9 -]{1,64}$"
167
+ },
168
+ "file": {
169
+ "type": "string",
170
+ "maxLength": 512
171
+ },
172
+ "weight": {
173
+ "type": "integer",
174
+ "minimum": 100,
175
+ "maximum": 900
176
+ },
177
+ "style": {
178
+ "type": "string",
179
+ "enum": [
180
+ "normal",
181
+ "italic"
182
+ ]
183
+ },
184
+ "role": {
185
+ "type": "string",
186
+ "enum": [
187
+ "prose",
188
+ "mono"
189
+ ]
190
+ }
191
+ },
192
+ "required": [
193
+ "family",
194
+ "file",
195
+ "weight",
196
+ "role"
197
+ ],
198
+ "additionalProperties": false
199
+ }
200
+ },
201
+ "logo": {
202
+ "type": "object",
203
+ "properties": {
204
+ "mark": {
205
+ "type": "string",
206
+ "maxLength": 512
207
+ },
208
+ "wordmark": {
209
+ "type": "string",
210
+ "pattern": "\\S"
211
+ },
212
+ "favicon": {
213
+ "type": "string",
214
+ "maxLength": 512
215
+ }
216
+ },
217
+ "additionalProperties": false
218
+ }
219
+ },
220
+ "required": [
221
+ "name",
222
+ "schemes"
223
+ ],
224
+ "additionalProperties": false
225
+ }