@01-edu/shared 1.2.11 → 1.2.13
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/attrs-defs.js +13 -0
- package/package.json +1 -1
package/attrs-defs.js
CHANGED
|
@@ -203,6 +203,18 @@ attrs.allowedFunctions = {
|
|
|
203
203
|
raid: sharedAllowedFunctions,
|
|
204
204
|
}
|
|
205
205
|
|
|
206
|
+
// this is for error handling on module graph display
|
|
207
|
+
const sharedInvalidRequirements = {
|
|
208
|
+
type: 'boolean',
|
|
209
|
+
required: true,
|
|
210
|
+
private: true,
|
|
211
|
+
label: 'Show invalid requirements',
|
|
212
|
+
}
|
|
213
|
+
attrs.showInvalidRequirements = {
|
|
214
|
+
project: sharedInvalidRequirements,
|
|
215
|
+
piscine: sharedInvalidRequirements,
|
|
216
|
+
}
|
|
217
|
+
|
|
206
218
|
const autoValidateLabel = 'Automatic success'
|
|
207
219
|
const autoValidateWhereLabel = `${autoValidateLabel} if`
|
|
208
220
|
const autoRejectWhereLabel = `Automatic reject if`
|
|
@@ -2826,6 +2838,7 @@ types.skills = {
|
|
|
2826
2838
|
required: true,
|
|
2827
2839
|
}
|
|
2828
2840
|
const sharedRewards = {
|
|
2841
|
+
private: true,
|
|
2829
2842
|
required: true,
|
|
2830
2843
|
label: 'Reward conditions',
|
|
2831
2844
|
instruction: 'Conditions to collect xp and skills when succeeded',
|