@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
@@ -107,18 +107,7 @@
107
107
  "$ref": "#/$defs/Uploads"
108
108
  },
109
109
  "theme": {
110
- "type": "object",
111
- "properties": {
112
- "colorScheme": {
113
- "type": "string",
114
- "enum": [
115
- "light",
116
- "dark",
117
- "auto"
118
- ]
119
- }
120
- },
121
- "additionalProperties": {}
110
+ "$ref": "#/$defs/DefinitionTheme"
122
111
  },
123
112
  "user": {
124
113
  "anyOf": [
@@ -863,6 +852,9 @@
863
852
  "queued": {
864
853
  "type": "boolean"
865
854
  },
855
+ "dryRun": {
856
+ "type": "boolean"
857
+ },
866
858
  "url": {
867
859
  "type": "string"
868
860
  },
@@ -1162,6 +1154,260 @@
1162
1154
  ],
1163
1155
  "additionalProperties": {}
1164
1156
  },
1157
+ "DefinitionTheme": {
1158
+ "type": "object",
1159
+ "properties": {
1160
+ "label": {
1161
+ "type": "string"
1162
+ },
1163
+ "tokens": {
1164
+ "$ref": "#/$defs/ThemeTokens"
1165
+ },
1166
+ "dark": {
1167
+ "$ref": "#/$defs/ThemeTokens"
1168
+ },
1169
+ "palette": {
1170
+ "type": "object",
1171
+ "propertyNames": {
1172
+ "type": "string",
1173
+ "pattern": "^[a-z0-9-]+$"
1174
+ },
1175
+ "additionalProperties": {
1176
+ "type": "string",
1177
+ "pattern": "^[^{};<]*$"
1178
+ }
1179
+ },
1180
+ "tones": {
1181
+ "type": "object",
1182
+ "propertyNames": {
1183
+ "type": "string",
1184
+ "pattern": "^[a-z0-9-]+$"
1185
+ },
1186
+ "additionalProperties": {
1187
+ "$ref": "#/$defs/ToneInput"
1188
+ }
1189
+ },
1190
+ "components": {
1191
+ "type": "object",
1192
+ "propertyNames": {
1193
+ "type": "string",
1194
+ "pattern": "^[a-z0-9-]+$"
1195
+ },
1196
+ "additionalProperties": {
1197
+ "type": "object",
1198
+ "properties": {
1199
+ "variants": {
1200
+ "type": "object",
1201
+ "propertyNames": {
1202
+ "type": "string",
1203
+ "pattern": "^[a-z0-9-]+$"
1204
+ },
1205
+ "additionalProperties": {
1206
+ "$ref": "#/$defs/ThemeTokens"
1207
+ }
1208
+ }
1209
+ },
1210
+ "additionalProperties": {}
1211
+ }
1212
+ },
1213
+ "densities": {
1214
+ "type": "object",
1215
+ "properties": {
1216
+ "compact": {
1217
+ "$ref": "#/$defs/ThemeTokens"
1218
+ },
1219
+ "comfortable": {
1220
+ "$ref": "#/$defs/ThemeTokens"
1221
+ },
1222
+ "touch": {
1223
+ "$ref": "#/$defs/ThemeTokens"
1224
+ }
1225
+ },
1226
+ "additionalProperties": {}
1227
+ },
1228
+ "fonts": {
1229
+ "type": "array",
1230
+ "items": {
1231
+ "$ref": "#/$defs/ThemeFont"
1232
+ }
1233
+ },
1234
+ "colorScheme": {
1235
+ "type": "string",
1236
+ "enum": [
1237
+ "light",
1238
+ "dark",
1239
+ "auto"
1240
+ ]
1241
+ },
1242
+ "density": {
1243
+ "type": "string",
1244
+ "enum": [
1245
+ "compact",
1246
+ "comfortable",
1247
+ "touch",
1248
+ "auto"
1249
+ ]
1250
+ },
1251
+ "extends": {
1252
+ "anyOf": [
1253
+ {
1254
+ "type": "string"
1255
+ },
1256
+ {
1257
+ "type": "array",
1258
+ "items": {
1259
+ "type": "string"
1260
+ }
1261
+ }
1262
+ ]
1263
+ }
1264
+ },
1265
+ "additionalProperties": {}
1266
+ },
1267
+ "ThemeTokens": {
1268
+ "type": "object",
1269
+ "propertyNames": {
1270
+ "type": "string",
1271
+ "pattern": "^[a-zA-Z0-9_-]+$"
1272
+ },
1273
+ "additionalProperties": {
1274
+ "type": "string",
1275
+ "pattern": "^[^{};<]*$"
1276
+ }
1277
+ },
1278
+ "ToneInput": {
1279
+ "anyOf": [
1280
+ {
1281
+ "type": "string"
1282
+ },
1283
+ {
1284
+ "type": "object",
1285
+ "properties": {
1286
+ "text": {
1287
+ "type": "string"
1288
+ },
1289
+ "subtle": {
1290
+ "type": "string"
1291
+ },
1292
+ "border": {
1293
+ "type": "string"
1294
+ },
1295
+ "outline": {
1296
+ "type": "string"
1297
+ },
1298
+ "solid": {
1299
+ "type": "string"
1300
+ },
1301
+ "solidHover": {
1302
+ "type": "string"
1303
+ },
1304
+ "solidText": {
1305
+ "type": "string"
1306
+ },
1307
+ "dark": {
1308
+ "type": "object",
1309
+ "properties": {
1310
+ "text": {
1311
+ "type": "string"
1312
+ },
1313
+ "subtle": {
1314
+ "type": "string"
1315
+ },
1316
+ "border": {
1317
+ "type": "string"
1318
+ },
1319
+ "outline": {
1320
+ "type": "string"
1321
+ },
1322
+ "solid": {
1323
+ "type": "string"
1324
+ },
1325
+ "solidHover": {
1326
+ "type": "string"
1327
+ },
1328
+ "solidText": {
1329
+ "type": "string"
1330
+ }
1331
+ },
1332
+ "additionalProperties": {}
1333
+ }
1334
+ },
1335
+ "required": [
1336
+ "text",
1337
+ "subtle",
1338
+ "border",
1339
+ "outline",
1340
+ "solid",
1341
+ "solidHover",
1342
+ "solidText"
1343
+ ],
1344
+ "additionalProperties": {}
1345
+ }
1346
+ ]
1347
+ },
1348
+ "ThemeFont": {
1349
+ "anyOf": [
1350
+ {
1351
+ "$ref": "#/$defs/ThemeFontFace"
1352
+ },
1353
+ {
1354
+ "$ref": "#/$defs/ThemeFontStylesheet"
1355
+ }
1356
+ ]
1357
+ },
1358
+ "ThemeFontFace": {
1359
+ "type": "object",
1360
+ "properties": {
1361
+ "family": {
1362
+ "type": "string",
1363
+ "pattern": "^[^{}<;\"\\\\]+$"
1364
+ },
1365
+ "src": {
1366
+ "type": "string",
1367
+ "pattern": "^[^{}<]+$"
1368
+ },
1369
+ "weight": {
1370
+ "type": "string",
1371
+ "pattern": "^[^{}<;]*$"
1372
+ },
1373
+ "style": {
1374
+ "type": "string",
1375
+ "pattern": "^[^{}<;]*$"
1376
+ },
1377
+ "display": {
1378
+ "type": "string",
1379
+ "enum": [
1380
+ "auto",
1381
+ "block",
1382
+ "swap",
1383
+ "fallback",
1384
+ "optional"
1385
+ ]
1386
+ },
1387
+ "unicodeRange": {
1388
+ "type": "string",
1389
+ "pattern": "^[^{}<;]*$"
1390
+ }
1391
+ },
1392
+ "required": [
1393
+ "family",
1394
+ "src"
1395
+ ],
1396
+ "additionalProperties": {}
1397
+ },
1398
+ "ThemeFontStylesheet": {
1399
+ "type": "object",
1400
+ "properties": {
1401
+ "stylesheet": {
1402
+ "type": "string",
1403
+ "minLength": 1
1404
+ }
1405
+ },
1406
+ "required": [
1407
+ "stylesheet"
1408
+ ],
1409
+ "additionalProperties": {}
1410
+ },
1165
1411
  "User": {
1166
1412
  "type": "object",
1167
1413
  "properties": {