@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.
- package/package.json +5 -5
- package/sites/blog/document.schema.json +76 -0
- package/sites/blog/package.json +3 -3
- package/sites/blog/project.schema.json +268 -12
- package/sites/course/document.schema.json +76 -0
- package/sites/course/package.json +3 -3
- package/sites/course/project.schema.json +268 -12
- package/sites/event/document.schema.json +76 -0
- package/sites/event/package.json +3 -3
- package/sites/event/project.schema.json +268 -12
- package/sites/fitness-studio/document.schema.json +76 -0
- package/sites/fitness-studio/package.json +3 -3
- package/sites/fitness-studio/project.schema.json +268 -12
- package/sites/home-services/document.schema.json +76 -0
- package/sites/home-services/package.json +3 -3
- package/sites/home-services/project.schema.json +268 -12
- package/sites/museum/document.schema.json +76 -0
- package/sites/museum/package.json +3 -3
- package/sites/museum/project.schema.json +268 -12
- package/sites/nonprofit/document.schema.json +76 -0
- package/sites/nonprofit/package.json +3 -3
- package/sites/nonprofit/project.schema.json +268 -12
- package/sites/portfolio/document.schema.json +76 -0
- package/sites/portfolio/package.json +3 -3
- package/sites/portfolio/project.schema.json +268 -12
- package/sites/professional-firm/document.schema.json +76 -0
- package/sites/professional-firm/package.json +3 -3
- package/sites/professional-firm/project.schema.json +268 -12
- package/sites/real-estate/document.schema.json +76 -0
- package/sites/real-estate/package.json +3 -3
- package/sites/real-estate/project.schema.json +268 -12
- package/sites/restaurant/document.schema.json +76 -0
- package/sites/restaurant/package.json +3 -3
- package/sites/restaurant/project.schema.json +268 -12
- package/sites/saas/document.schema.json +76 -0
- package/sites/saas/package.json +3 -3
- package/sites/saas/project.schema.json +268 -12
- package/sites/shop/document.schema.json +76 -0
- package/sites/shop/package.json +3 -3
- package/sites/shop/project.schema.json +268 -12
|
@@ -1050,27 +1050,95 @@
|
|
|
1050
1050
|
"type": "boolean"
|
|
1051
1051
|
},
|
|
1052
1052
|
"$gt": {
|
|
1053
|
-
"
|
|
1054
|
-
|
|
1055
|
-
|
|
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
|
-
"
|
|
1060
|
-
|
|
1061
|
-
|
|
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
|
-
"
|
|
1066
|
-
|
|
1067
|
-
|
|
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
|
-
"
|
|
1072
|
-
|
|
1073
|
-
|
|
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",
|
|
@@ -43,6 +43,44 @@
|
|
|
43
43
|
],
|
|
44
44
|
"type": "object"
|
|
45
45
|
},
|
|
46
|
+
{
|
|
47
|
+
"additionalProperties": false,
|
|
48
|
+
"description": "Paged list: one route per `pageSize` items of an entry of this page's own state, which must resolve to an array at build time. The page number fills the route's one parameter that `each` does not.",
|
|
49
|
+
"properties": {
|
|
50
|
+
"each": {
|
|
51
|
+
"description": "Another `$paths` source for the route's other parameter: the list is paged once per value of it, as a paged archive per tag is.",
|
|
52
|
+
"type": [
|
|
53
|
+
"object",
|
|
54
|
+
"array"
|
|
55
|
+
]
|
|
56
|
+
},
|
|
57
|
+
"pageSize": {
|
|
58
|
+
"description": "Items on each page.",
|
|
59
|
+
"minimum": 1,
|
|
60
|
+
"type": "integer"
|
|
61
|
+
},
|
|
62
|
+
"paginate": {
|
|
63
|
+
"additionalProperties": false,
|
|
64
|
+
"description": "The state entry to page.",
|
|
65
|
+
"properties": {
|
|
66
|
+
"$ref": {
|
|
67
|
+
"description": "A pointer to an entry of this page's state: `#/state/<key>`.",
|
|
68
|
+
"pattern": "^#/state/[^/]+$",
|
|
69
|
+
"type": "string"
|
|
70
|
+
}
|
|
71
|
+
},
|
|
72
|
+
"required": [
|
|
73
|
+
"$ref"
|
|
74
|
+
],
|
|
75
|
+
"type": "object"
|
|
76
|
+
}
|
|
77
|
+
},
|
|
78
|
+
"required": [
|
|
79
|
+
"paginate",
|
|
80
|
+
"pageSize"
|
|
81
|
+
],
|
|
82
|
+
"type": "object"
|
|
83
|
+
},
|
|
46
84
|
{
|
|
47
85
|
"description": "Legacy explicit form: an array of ready-made parameter objects, used as-is with no expansion. Prefer one of the source shapes above.",
|
|
48
86
|
"items": {
|
|
@@ -28410,6 +28448,44 @@
|
|
|
28410
28448
|
],
|
|
28411
28449
|
"type": "object"
|
|
28412
28450
|
},
|
|
28451
|
+
{
|
|
28452
|
+
"additionalProperties": false,
|
|
28453
|
+
"description": "Paged list: one route per `pageSize` items of an entry of this page's own state, which must resolve to an array at build time. The page number fills the route's one parameter that `each` does not.",
|
|
28454
|
+
"properties": {
|
|
28455
|
+
"each": {
|
|
28456
|
+
"description": "Another `$paths` source for the route's other parameter: the list is paged once per value of it, as a paged archive per tag is.",
|
|
28457
|
+
"type": [
|
|
28458
|
+
"object",
|
|
28459
|
+
"array"
|
|
28460
|
+
]
|
|
28461
|
+
},
|
|
28462
|
+
"pageSize": {
|
|
28463
|
+
"description": "Items on each page.",
|
|
28464
|
+
"minimum": 1,
|
|
28465
|
+
"type": "integer"
|
|
28466
|
+
},
|
|
28467
|
+
"paginate": {
|
|
28468
|
+
"additionalProperties": false,
|
|
28469
|
+
"description": "The state entry to page.",
|
|
28470
|
+
"properties": {
|
|
28471
|
+
"$ref": {
|
|
28472
|
+
"description": "A pointer to an entry of this page's state: `#/state/<key>`.",
|
|
28473
|
+
"pattern": "^#/state/[^/]+$",
|
|
28474
|
+
"type": "string"
|
|
28475
|
+
}
|
|
28476
|
+
},
|
|
28477
|
+
"required": [
|
|
28478
|
+
"$ref"
|
|
28479
|
+
],
|
|
28480
|
+
"type": "object"
|
|
28481
|
+
}
|
|
28482
|
+
},
|
|
28483
|
+
"required": [
|
|
28484
|
+
"paginate",
|
|
28485
|
+
"pageSize"
|
|
28486
|
+
],
|
|
28487
|
+
"type": "object"
|
|
28488
|
+
},
|
|
28413
28489
|
{
|
|
28414
28490
|
"description": "Legacy explicit form: an array of ready-made parameter objects, used as-is with no expansion. Prefer one of the source shapes above.",
|
|
28415
28491
|
"items": {
|
package/sites/shop/package.json
CHANGED
|
@@ -9,10 +9,10 @@
|
|
|
9
9
|
"dev": "jx dev"
|
|
10
10
|
},
|
|
11
11
|
"dependencies": {
|
|
12
|
-
"@jxsuite/parser": "^4.
|
|
12
|
+
"@jxsuite/parser": "^4.3.0"
|
|
13
13
|
},
|
|
14
14
|
"devDependencies": {
|
|
15
|
-
"@jxsuite/compiler": "^8.0
|
|
16
|
-
"@jxsuite/runtime": "^6.0
|
|
15
|
+
"@jxsuite/compiler": "^8.2.0",
|
|
16
|
+
"@jxsuite/runtime": "^6.1.0"
|
|
17
17
|
}
|
|
18
18
|
}
|