@panneau/protocol 5.0.0-alpha.1 → 5.0.0-alpha.3

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 (51) hide show
  1. package/README.md +10 -9
  2. package/dist/conformance/index.d.ts.map +1 -1
  3. package/dist/conformance/index.js +34 -1
  4. package/dist/conformance/index.js.map +1 -1
  5. package/dist/index.d.ts +1 -1
  6. package/dist/index.d.ts.map +1 -1
  7. package/dist/index.js +4 -2
  8. package/dist/mock/example.d.ts.map +1 -1
  9. package/dist/mock/example.js +2 -1
  10. package/dist/mock/example.js.map +1 -1
  11. package/dist/mock/index.d.ts.map +1 -1
  12. package/dist/mock/index.js +20 -1
  13. package/dist/mock/index.js.map +1 -1
  14. package/dist/openapi.d.ts +2 -0
  15. package/dist/openapi.d.ts.map +1 -1
  16. package/dist/openapi.js +14 -2
  17. package/dist/openapi.js.map +1 -1
  18. package/dist/runtime/index.d.ts +1 -0
  19. package/dist/runtime/index.d.ts.map +1 -1
  20. package/dist/runtime/index.js +2 -1
  21. package/dist/schemas/action.d.ts +1 -0
  22. package/dist/schemas/action.d.ts.map +1 -1
  23. package/dist/schemas/action.js +1 -0
  24. package/dist/schemas/action.js.map +1 -1
  25. package/dist/schemas/api.d.ts +1 -0
  26. package/dist/schemas/api.d.ts.map +1 -1
  27. package/dist/schemas/api.js +2 -1
  28. package/dist/schemas/api.js.map +1 -1
  29. package/dist/schemas/definition.d.ts +55 -1
  30. package/dist/schemas/definition.d.ts.map +1 -1
  31. package/dist/schemas/definition.js +2 -5
  32. package/dist/schemas/definition.js.map +1 -1
  33. package/dist/schemas/index.d.ts +228 -1
  34. package/dist/schemas/index.d.ts.map +1 -1
  35. package/dist/schemas/index.js +10 -1
  36. package/dist/schemas/index.js.map +1 -1
  37. package/dist/schemas/resource.d.ts +1 -0
  38. package/dist/schemas/resource.d.ts.map +1 -1
  39. package/dist/schemas/theme.d.ts +179 -0
  40. package/dist/schemas/theme.d.ts.map +1 -0
  41. package/dist/schemas/theme.js +66 -0
  42. package/dist/schemas/theme.js.map +1 -0
  43. package/dist/themes.d.ts +11 -0
  44. package/dist/themes.d.ts.map +1 -0
  45. package/dist/themes.js +80 -0
  46. package/dist/themes.js.map +1 -0
  47. package/package.json +2 -1
  48. package/schema/boot.schema.json +258 -12
  49. package/schema/definition.schema.json +258 -12
  50. package/schema/openapi.json +436 -12
  51. package/schema/theme.schema.json +234 -0
@@ -0,0 +1,234 @@
1
+ {
2
+ "$id": "https://github.com/folkloreinc/panneau-js/blob/v5.x/packages/protocol/schema/theme.schema.json",
3
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
4
+ "$ref": "#/$defs/Theme",
5
+ "$defs": {
6
+ "Theme": {
7
+ "type": "object",
8
+ "properties": {
9
+ "label": {
10
+ "type": "string"
11
+ },
12
+ "tokens": {
13
+ "$ref": "#/$defs/ThemeTokens"
14
+ },
15
+ "dark": {
16
+ "$ref": "#/$defs/ThemeTokens"
17
+ },
18
+ "palette": {
19
+ "type": "object",
20
+ "propertyNames": {
21
+ "type": "string",
22
+ "pattern": "^[a-z0-9-]+$"
23
+ },
24
+ "additionalProperties": {
25
+ "type": "string",
26
+ "pattern": "^[^{};<]*$"
27
+ }
28
+ },
29
+ "tones": {
30
+ "type": "object",
31
+ "propertyNames": {
32
+ "type": "string",
33
+ "pattern": "^[a-z0-9-]+$"
34
+ },
35
+ "additionalProperties": {
36
+ "$ref": "#/$defs/ToneInput"
37
+ }
38
+ },
39
+ "components": {
40
+ "type": "object",
41
+ "propertyNames": {
42
+ "type": "string",
43
+ "pattern": "^[a-z0-9-]+$"
44
+ },
45
+ "additionalProperties": {
46
+ "type": "object",
47
+ "properties": {
48
+ "variants": {
49
+ "type": "object",
50
+ "propertyNames": {
51
+ "type": "string",
52
+ "pattern": "^[a-z0-9-]+$"
53
+ },
54
+ "additionalProperties": {
55
+ "$ref": "#/$defs/ThemeTokens"
56
+ }
57
+ }
58
+ },
59
+ "additionalProperties": {}
60
+ }
61
+ },
62
+ "densities": {
63
+ "type": "object",
64
+ "properties": {
65
+ "compact": {
66
+ "$ref": "#/$defs/ThemeTokens"
67
+ },
68
+ "comfortable": {
69
+ "$ref": "#/$defs/ThemeTokens"
70
+ },
71
+ "touch": {
72
+ "$ref": "#/$defs/ThemeTokens"
73
+ }
74
+ },
75
+ "additionalProperties": {}
76
+ },
77
+ "fonts": {
78
+ "type": "array",
79
+ "items": {
80
+ "$ref": "#/$defs/ThemeFont"
81
+ }
82
+ }
83
+ },
84
+ "required": [
85
+ "tokens"
86
+ ],
87
+ "additionalProperties": {}
88
+ },
89
+ "ThemeTokens": {
90
+ "type": "object",
91
+ "propertyNames": {
92
+ "type": "string",
93
+ "pattern": "^[a-zA-Z0-9_-]+$"
94
+ },
95
+ "additionalProperties": {
96
+ "type": "string",
97
+ "pattern": "^[^{};<]*$"
98
+ }
99
+ },
100
+ "ToneInput": {
101
+ "anyOf": [
102
+ {
103
+ "type": "string"
104
+ },
105
+ {
106
+ "type": "object",
107
+ "properties": {
108
+ "text": {
109
+ "type": "string"
110
+ },
111
+ "subtle": {
112
+ "type": "string"
113
+ },
114
+ "border": {
115
+ "type": "string"
116
+ },
117
+ "outline": {
118
+ "type": "string"
119
+ },
120
+ "solid": {
121
+ "type": "string"
122
+ },
123
+ "solidHover": {
124
+ "type": "string"
125
+ },
126
+ "solidText": {
127
+ "type": "string"
128
+ },
129
+ "dark": {
130
+ "type": "object",
131
+ "properties": {
132
+ "text": {
133
+ "type": "string"
134
+ },
135
+ "subtle": {
136
+ "type": "string"
137
+ },
138
+ "border": {
139
+ "type": "string"
140
+ },
141
+ "outline": {
142
+ "type": "string"
143
+ },
144
+ "solid": {
145
+ "type": "string"
146
+ },
147
+ "solidHover": {
148
+ "type": "string"
149
+ },
150
+ "solidText": {
151
+ "type": "string"
152
+ }
153
+ },
154
+ "additionalProperties": {}
155
+ }
156
+ },
157
+ "required": [
158
+ "text",
159
+ "subtle",
160
+ "border",
161
+ "outline",
162
+ "solid",
163
+ "solidHover",
164
+ "solidText"
165
+ ],
166
+ "additionalProperties": {}
167
+ }
168
+ ]
169
+ },
170
+ "ThemeFont": {
171
+ "anyOf": [
172
+ {
173
+ "$ref": "#/$defs/ThemeFontFace"
174
+ },
175
+ {
176
+ "$ref": "#/$defs/ThemeFontStylesheet"
177
+ }
178
+ ]
179
+ },
180
+ "ThemeFontFace": {
181
+ "type": "object",
182
+ "properties": {
183
+ "family": {
184
+ "type": "string",
185
+ "pattern": "^[^{}<;\"\\\\]+$"
186
+ },
187
+ "src": {
188
+ "type": "string",
189
+ "pattern": "^[^{}<]+$"
190
+ },
191
+ "weight": {
192
+ "type": "string",
193
+ "pattern": "^[^{}<;]*$"
194
+ },
195
+ "style": {
196
+ "type": "string",
197
+ "pattern": "^[^{}<;]*$"
198
+ },
199
+ "display": {
200
+ "type": "string",
201
+ "enum": [
202
+ "auto",
203
+ "block",
204
+ "swap",
205
+ "fallback",
206
+ "optional"
207
+ ]
208
+ },
209
+ "unicodeRange": {
210
+ "type": "string",
211
+ "pattern": "^[^{}<;]*$"
212
+ }
213
+ },
214
+ "required": [
215
+ "family",
216
+ "src"
217
+ ],
218
+ "additionalProperties": {}
219
+ },
220
+ "ThemeFontStylesheet": {
221
+ "type": "object",
222
+ "properties": {
223
+ "stylesheet": {
224
+ "type": "string",
225
+ "minLength": 1
226
+ }
227
+ },
228
+ "required": [
229
+ "stylesheet"
230
+ ],
231
+ "additionalProperties": {}
232
+ }
233
+ }
234
+ }