@jxsuite/starters 3.1.4 → 3.3.0

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 (40) hide show
  1. package/package.json +5 -5
  2. package/sites/blog/document.schema.json +76 -0
  3. package/sites/blog/package.json +3 -3
  4. package/sites/blog/project.schema.json +268 -12
  5. package/sites/course/document.schema.json +76 -0
  6. package/sites/course/package.json +3 -3
  7. package/sites/course/project.schema.json +268 -12
  8. package/sites/event/document.schema.json +76 -0
  9. package/sites/event/package.json +3 -3
  10. package/sites/event/project.schema.json +268 -12
  11. package/sites/fitness-studio/document.schema.json +76 -0
  12. package/sites/fitness-studio/package.json +3 -3
  13. package/sites/fitness-studio/project.schema.json +268 -12
  14. package/sites/home-services/document.schema.json +76 -0
  15. package/sites/home-services/package.json +3 -3
  16. package/sites/home-services/project.schema.json +268 -12
  17. package/sites/museum/document.schema.json +76 -0
  18. package/sites/museum/package.json +3 -3
  19. package/sites/museum/project.schema.json +268 -12
  20. package/sites/nonprofit/document.schema.json +76 -0
  21. package/sites/nonprofit/package.json +3 -3
  22. package/sites/nonprofit/project.schema.json +268 -12
  23. package/sites/portfolio/document.schema.json +76 -0
  24. package/sites/portfolio/package.json +3 -3
  25. package/sites/portfolio/project.schema.json +268 -12
  26. package/sites/professional-firm/document.schema.json +76 -0
  27. package/sites/professional-firm/package.json +3 -3
  28. package/sites/professional-firm/project.schema.json +268 -12
  29. package/sites/real-estate/document.schema.json +76 -0
  30. package/sites/real-estate/package.json +3 -3
  31. package/sites/real-estate/project.schema.json +268 -12
  32. package/sites/restaurant/document.schema.json +76 -0
  33. package/sites/restaurant/package.json +3 -3
  34. package/sites/restaurant/project.schema.json +268 -12
  35. package/sites/saas/document.schema.json +76 -0
  36. package/sites/saas/package.json +3 -3
  37. package/sites/saas/project.schema.json +268 -12
  38. package/sites/shop/document.schema.json +76 -0
  39. package/sites/shop/package.json +3 -3
  40. package/sites/shop/project.schema.json +268 -12
@@ -1050,27 +1050,95 @@
1050
1050
  "type": "boolean"
1051
1051
  },
1052
1052
  "$gt": {
1053
- "type": [
1054
- "string",
1055
- "number"
1053
+ "anyOf": [
1054
+ {
1055
+ "type": [
1056
+ "string",
1057
+ "number"
1058
+ ]
1059
+ },
1060
+ {
1061
+ "type": "object",
1062
+ "description": "The moment the rule is evaluated: the build machine's real clock.",
1063
+ "properties": {
1064
+ "$now": {
1065
+ "const": true
1066
+ }
1067
+ },
1068
+ "required": [
1069
+ "$now"
1070
+ ],
1071
+ "additionalProperties": false
1072
+ }
1056
1073
  ]
1057
1074
  },
1058
1075
  "$gte": {
1059
- "type": [
1060
- "string",
1061
- "number"
1076
+ "anyOf": [
1077
+ {
1078
+ "type": [
1079
+ "string",
1080
+ "number"
1081
+ ]
1082
+ },
1083
+ {
1084
+ "type": "object",
1085
+ "description": "The moment the rule is evaluated: the build machine's real clock.",
1086
+ "properties": {
1087
+ "$now": {
1088
+ "const": true
1089
+ }
1090
+ },
1091
+ "required": [
1092
+ "$now"
1093
+ ],
1094
+ "additionalProperties": false
1095
+ }
1062
1096
  ]
1063
1097
  },
1064
1098
  "$lt": {
1065
- "type": [
1066
- "string",
1067
- "number"
1099
+ "anyOf": [
1100
+ {
1101
+ "type": [
1102
+ "string",
1103
+ "number"
1104
+ ]
1105
+ },
1106
+ {
1107
+ "type": "object",
1108
+ "description": "The moment the rule is evaluated: the build machine's real clock.",
1109
+ "properties": {
1110
+ "$now": {
1111
+ "const": true
1112
+ }
1113
+ },
1114
+ "required": [
1115
+ "$now"
1116
+ ],
1117
+ "additionalProperties": false
1118
+ }
1068
1119
  ]
1069
1120
  },
1070
1121
  "$lte": {
1071
- "type": [
1072
- "string",
1073
- "number"
1122
+ "anyOf": [
1123
+ {
1124
+ "type": [
1125
+ "string",
1126
+ "number"
1127
+ ]
1128
+ },
1129
+ {
1130
+ "type": "object",
1131
+ "description": "The moment the rule is evaluated: the build machine's real clock.",
1132
+ "properties": {
1133
+ "$now": {
1134
+ "const": true
1135
+ }
1136
+ },
1137
+ "required": [
1138
+ "$now"
1139
+ ],
1140
+ "additionalProperties": false
1141
+ }
1074
1142
  ]
1075
1143
  }
1076
1144
  }
@@ -1101,6 +1169,194 @@
1101
1169
  }
1102
1170
  ]
1103
1171
  },
1172
+ "hold": {
1173
+ "description": "What keeps an entry out of a production build while authors still see it. Any rule matching holds the entry, and the first names why. `jx build` leaves held entries out, `jx build --include-held`, `jx dev` and Studio keep them. Jx gives no field a meaning of its own: a project names its fields and says here what they imply.",
1174
+ "type": "array",
1175
+ "items": {
1176
+ "type": "object",
1177
+ "additionalProperties": false,
1178
+ "required": [
1179
+ "label",
1180
+ "when"
1181
+ ],
1182
+ "properties": {
1183
+ "label": {
1184
+ "description": "The words every surface shows for an entry this rule holds.",
1185
+ "type": "string",
1186
+ "minLength": 1
1187
+ },
1188
+ "when": {
1189
+ "type": "object",
1190
+ "propertyNames": {
1191
+ "pattern": "^[^$]"
1192
+ },
1193
+ "additionalProperties": {
1194
+ "anyOf": [
1195
+ {
1196
+ "type": "object",
1197
+ "propertyNames": {
1198
+ "enum": [
1199
+ "$eq",
1200
+ "$ne",
1201
+ "$in",
1202
+ "$nin",
1203
+ "$exists",
1204
+ "$gt",
1205
+ "$gte",
1206
+ "$lt",
1207
+ "$lte"
1208
+ ]
1209
+ },
1210
+ "minProperties": 1,
1211
+ "properties": {
1212
+ "$eq": {},
1213
+ "$ne": {},
1214
+ "$in": {
1215
+ "type": "array"
1216
+ },
1217
+ "$nin": {
1218
+ "type": "array"
1219
+ },
1220
+ "$exists": {
1221
+ "type": "boolean"
1222
+ },
1223
+ "$gt": {
1224
+ "anyOf": [
1225
+ {
1226
+ "type": [
1227
+ "string",
1228
+ "number"
1229
+ ]
1230
+ },
1231
+ {
1232
+ "type": "object",
1233
+ "description": "The moment the rule is evaluated: the build machine's real clock.",
1234
+ "properties": {
1235
+ "$now": {
1236
+ "const": true
1237
+ }
1238
+ },
1239
+ "required": [
1240
+ "$now"
1241
+ ],
1242
+ "additionalProperties": false
1243
+ }
1244
+ ]
1245
+ },
1246
+ "$gte": {
1247
+ "anyOf": [
1248
+ {
1249
+ "type": [
1250
+ "string",
1251
+ "number"
1252
+ ]
1253
+ },
1254
+ {
1255
+ "type": "object",
1256
+ "description": "The moment the rule is evaluated: the build machine's real clock.",
1257
+ "properties": {
1258
+ "$now": {
1259
+ "const": true
1260
+ }
1261
+ },
1262
+ "required": [
1263
+ "$now"
1264
+ ],
1265
+ "additionalProperties": false
1266
+ }
1267
+ ]
1268
+ },
1269
+ "$lt": {
1270
+ "anyOf": [
1271
+ {
1272
+ "type": [
1273
+ "string",
1274
+ "number"
1275
+ ]
1276
+ },
1277
+ {
1278
+ "type": "object",
1279
+ "description": "The moment the rule is evaluated: the build machine's real clock.",
1280
+ "properties": {
1281
+ "$now": {
1282
+ "const": true
1283
+ }
1284
+ },
1285
+ "required": [
1286
+ "$now"
1287
+ ],
1288
+ "additionalProperties": false
1289
+ }
1290
+ ]
1291
+ },
1292
+ "$lte": {
1293
+ "anyOf": [
1294
+ {
1295
+ "type": [
1296
+ "string",
1297
+ "number"
1298
+ ]
1299
+ },
1300
+ {
1301
+ "type": "object",
1302
+ "description": "The moment the rule is evaluated: the build machine's real clock.",
1303
+ "properties": {
1304
+ "$now": {
1305
+ "const": true
1306
+ }
1307
+ },
1308
+ "required": [
1309
+ "$now"
1310
+ ],
1311
+ "additionalProperties": false
1312
+ }
1313
+ ]
1314
+ }
1315
+ }
1316
+ },
1317
+ {
1318
+ "type": [
1319
+ "string",
1320
+ "number",
1321
+ "boolean",
1322
+ "null",
1323
+ "array"
1324
+ ]
1325
+ },
1326
+ {
1327
+ "type": "object",
1328
+ "propertyNames": {
1329
+ "pattern": "^[^$]"
1330
+ }
1331
+ }
1332
+ ]
1333
+ },
1334
+ "description": "The frontmatter that matches this rule, with the grammar of `where`.",
1335
+ "minProperties": 1
1336
+ }
1337
+ }
1338
+ },
1339
+ "examples": [
1340
+ [
1341
+ {
1342
+ "label": "Draft",
1343
+ "when": {
1344
+ "draft": true
1345
+ }
1346
+ },
1347
+ {
1348
+ "label": "Scheduled",
1349
+ "when": {
1350
+ "publishDate": {
1351
+ "$gt": {
1352
+ "$now": true
1353
+ }
1354
+ }
1355
+ }
1356
+ }
1357
+ ]
1358
+ ]
1359
+ },
1104
1360
  "idField": {
1105
1361
  "description": "Frontmatter field whose value is the entry id, instead of the path-derived id. An entry without the field keeps its path id and is reported.",
1106
1362
  "type": "string",