@1024pix/epreuves-components 4.3.0 → 4.4.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/dist/schema.js CHANGED
@@ -141,6 +141,8 @@ const m = e.object({
141
141
  }).required(), y = e.object({
142
142
  titleLevel: e.number().optional()
143
143
  }), x = e.object({
144
+ titleLevel: e.number().optional()
145
+ }), f = e.object({
144
146
  notifications: e.array().items(e.object({
145
147
  icon: e.string().required(),
146
148
  sender: e.string().required(),
@@ -157,17 +159,17 @@ const m = e.object({
157
159
  }).required(),
158
160
  informationMessage: e.string().required(),
159
161
  titleLevel: e.number().optional()
160
- }), f = e.object({
162
+ }), w = e.object({
161
163
  content: e.string().required(),
162
164
  isAnonymizable: e.boolean().optional()
163
- }), w = e.object({
164
- fullSentence: e.array().items(f),
165
+ }), L = e.object({
166
+ fullSentence: e.array().items(w),
165
167
  rephrase: e.string().required(),
166
168
  feedback: e.string().required()
167
- }), L = e.object({
168
- titleLevel: e.number().optional(),
169
- steps: e.array().items(w)
170
169
  }), k = e.object({
170
+ titleLevel: e.number().optional(),
171
+ steps: e.array().items(L)
172
+ }), S = e.object({
171
173
  titleLevel: e.number().optional(),
172
174
  articleTitle: e.string().required(),
173
175
  author: e.string().required(),
@@ -175,11 +177,11 @@ const m = e.object({
175
177
  paragraphs: e.array().items(e.string().required()),
176
178
  highlightedSentence: e.string().empty("").optional(),
177
179
  colorOfHighlightSentence: e.string().empty("").optional()
178
- }), S = e.object({
180
+ }), I = e.object({
179
181
  name: e.string().allow("").required(),
180
182
  attribution: e.string().allow("").required(),
181
183
  url: e.string().allow("").required()
182
- }), I = e.object({
184
+ }), z = e.object({
183
185
  title: e.string().required(),
184
186
  description: e.string().allow("").required(),
185
187
  displayWidth: e.number().min(0).optional(),
@@ -187,12 +189,12 @@ const m = e.object({
187
189
  src: e.string().required(),
188
190
  alt: e.string().allow("").required()
189
191
  }).required(),
190
- license: S.optional()
191
- }), z = e.object({
192
+ license: I.optional()
193
+ }), A = e.object({
192
194
  title: e.string().required(),
193
195
  description: e.string().allow("").required(),
194
196
  text: e.string().required()
195
- }), A = e.object({
197
+ }), C = e.object({
196
198
  title: e.string().required(),
197
199
  description: e.string().allow("").required(),
198
200
  text: e.string().required(),
@@ -200,13 +202,13 @@ const m = e.object({
200
202
  src: e.string().required(),
201
203
  alt: e.string().allow("").required()
202
204
  }).required()
203
- }), C = e.object({
205
+ }), T = e.object({
204
206
  type: e.string().valid("image", "image-text", "text").required(),
205
207
  slides: e.alternatives().conditional("type", {
206
208
  switch: [
207
- { is: "image", then: e.array().items(I) },
208
- { is: "image-text", then: e.array().items(A) },
209
- { is: "text", then: e.array().items(z) }
209
+ { is: "image", then: e.array().items(z) },
210
+ { is: "image-text", then: e.array().items(C) },
211
+ { is: "text", then: e.array().items(A) }
210
212
  ]
211
213
  }).required(),
212
214
  randomSlides: e.boolean().optional(),
@@ -215,9 +217,9 @@ const m = e.object({
215
217
  disableStyleAroundImage: e.boolean().optional(),
216
218
  enableLoop: e.boolean().optional(),
217
219
  imageTextDisplay: e.string().empty("").optional()
218
- }).meta({ title: "pix-carousel" }).required(), T = e.object({
220
+ }).meta({ title: "pix-carousel" }).required(), M = e.object({
219
221
  titleLevel: e.number().optional()
220
- }), M = e.object({
222
+ }), P = e.object({
221
223
  options: e.array().items(e.object({
222
224
  label: e.string().required(),
223
225
  feedback: e.object({
@@ -228,34 +230,34 @@ const m = e.object({
228
230
  }), o = e.object({
229
231
  title: e.string().required(),
230
232
  llmName: e.string().required()
231
- }).required(), P = e.object({
233
+ }).required(), N = e.object({
232
234
  direction: e.string().valid("inbound").required(),
233
235
  content: e.string().required()
234
- }).required(), N = e.object({
236
+ }).required(), O = e.object({
235
237
  direction: e.string().valid("outbound").required(),
236
238
  content: e.string().required()
237
- }).required(), O = e.object({
239
+ }).required(), $ = e.object({
238
240
  conversation1: o,
239
241
  conversation2: o,
240
242
  userName: e.string().required(),
241
243
  messages: e.array().items(
242
- e.alternatives(N, e.array().items(P).min(2).max(2).required())
244
+ e.alternatives(O, e.array().items(N).min(2).max(2).required())
243
245
  ).required()
244
- }).required(), d = e.object({
246
+ }).required(), l = e.object({
245
247
  direction: e.string().valid("inbound", "outbound").required(),
246
248
  content: e.string().required()
247
- }), $ = e.object({
248
- messages: e.array().items(d.required()).required()
249
- }).required(), F = e.object({
249
+ }), F = e.object({
250
+ messages: e.array().items(l.required()).required()
251
+ }).required(), D = e.object({
250
252
  speed: e.number().default(20).min(0).optional(),
251
- messages: e.array().items(d).required(),
253
+ messages: e.array().items(l).required(),
252
254
  prompts: e.array().items(
253
255
  e.object({
254
256
  prompt: e.string().required(),
255
257
  response: e.string().required()
256
258
  }).required()
257
259
  ).required()
258
- }).required(), r = e.string().valid("enabled", "disabled", "hidden").empty("").optional(), D = e.object({
260
+ }).required(), r = e.string().valid("enabled", "disabled", "hidden").empty("").optional(), V = e.object({
259
261
  title: e.string().required(),
260
262
  description: e.string().required(),
261
263
  actions: e.object({
@@ -286,31 +288,31 @@ const m = e.object({
286
288
  minutes: e.number().negative().optional()
287
289
  }).required()
288
290
  }).required()
289
- }), V = e.object({
290
- titleLevel: e.number().optional(),
291
- steps: e.array().items(D).required()
292
291
  }), B = e.object({
292
+ titleLevel: e.number().optional(),
293
+ steps: e.array().items(V).required()
294
+ }), E = e.object({
293
295
  titleLevel: e.number().optional(),
294
296
  successImage: e.string().required(),
295
297
  failImage: e.string().required(),
296
298
  infoImage: e.string().required(),
297
299
  searchImage: e.string().required()
298
- }), E = e.object({
300
+ }), G = e.object({
299
301
  success: e.string().required(),
300
302
  failed: e.string().required()
301
303
  }), n = e.object({
302
304
  title: e.string().optional(),
303
305
  content: e.string().optional(),
304
306
  isGoodAnswer: e.boolean().optional()
305
- }), G = e.object({
307
+ }), H = e.object({
306
308
  question: e.string().required(),
307
- feedback: E.required(),
309
+ feedback: G.required(),
308
310
  choice1: n.required(),
309
311
  choice2: n.required()
310
- }), H = e.object({
311
- titleLevel: e.number().optional(),
312
- steps: e.array().items(G)
313
312
  }), J = e.object({
313
+ titleLevel: e.number().optional(),
314
+ steps: e.array().items(H)
315
+ }), U = e.object({
314
316
  titleLevel: e.number().optional(),
315
317
  incomingMessage: e.object({
316
318
  username: e.string().required(),
@@ -326,7 +328,7 @@ const m = e.object({
326
328
  goodIdea: e.boolean().required(),
327
329
  feedback: e.string().required()
328
330
  })).required()
329
- }), U = e.object({
331
+ }), W = e.object({
330
332
  titleLevel: e.number().optional(),
331
333
  subject: e.string().required(),
332
334
  mailAddress: e.string().required(),
@@ -348,7 +350,7 @@ const m = e.object({
348
350
  }), s = e.object({
349
351
  title: e.string().required(),
350
352
  content: e.string().required()
351
- }), W = e.object({
353
+ }), K = e.object({
352
354
  titleLevel: e.number().optional(),
353
355
  passwords: e.array().items(e.string().required()).required(),
354
356
  expectedPassword: e.string().required(),
@@ -356,30 +358,30 @@ const m = e.object({
356
358
  success: s.required(),
357
359
  failed: s.required()
358
360
  }).required()
359
- }), K = e.object({
361
+ }), Q = e.object({
360
362
  date: e.string().isoDate().required(),
361
363
  content: e.string().required()
362
- }), Q = e.object({
364
+ }), R = e.object({
363
365
  userName: e.string().required(),
364
366
  tag: e.string().required(),
365
367
  bio: e.string().required(),
366
368
  location: e.string().required(),
367
- publications: e.array().items(K).required()
369
+ publications: e.array().items(Q).required()
368
370
  }), a = e.object({
369
371
  title: e.string().required(),
370
372
  content: e.string().required()
371
- }), R = e.object({
373
+ }), X = e.object({
372
374
  password: e.string().required(),
373
375
  user: e.string().required()
374
- }), X = e.object({
376
+ }), Y = e.object({
375
377
  titleLevel: e.number().optional(),
376
- validations: R.required(),
378
+ validations: X.required(),
377
379
  feedback: e.object({
378
380
  success: a.required(),
379
381
  failed: a.required()
380
382
  }).required(),
381
- userProfile: Q.required()
382
- }), Y = e.object({
383
+ userProfile: R.required()
384
+ }), Z = e.object({
383
385
  localeChoices: e.array().items(e.object({
384
386
  label: e.string().required(),
385
387
  hasValue: e.boolean().optional()
@@ -388,10 +390,10 @@ const m = e.object({
388
390
  label: e.string().required(),
389
391
  hasValue: e.boolean().optional()
390
392
  }))
391
- }), Z = /* @__PURE__ */ Object.assign({ "./analyse-mails-phishing/analyse-mails-phishing.schema.js": m, "./calcul-impact/calcul-impact.schema.js": g, "./capacity-calculation/capacity-calculation.schema.js": b, "./clickable-image/clickable-image.schema.js": q, "./complete-phrase/complete-phrase.schema.js": p, "./flip-cards/flip-cards.schema.js": _, "./image-quiz/image-quiz.schema.js": c, "./image-quiz/image-quizzes.schema.js": j, "./mdp-classement/mdp-classement.schema.js": h, "./message-conversation/message-conversation.schema.js": v, "./phishing-message/phishing-message.schema.js": y, "./phishing-notification/phishing-notification.schema.js": x, "./pix-anonymisation/pix-anonymisation.schema.js": L, "./pix-article/pix-article.schema.js": k, "./pix-carousel/pix-carousel.schema.js": C, "./pix-combinaisons/pix-combinaisons.schema.js": T, "./pix-cursor/pix-cursor.schema.js": M, "./pix-llm/llm-compare-messages.schema.js": O, "./pix-llm/llm-messages.schema.js": $, "./pix-llm/llm-prompt-select.schema.js": F, "./proteger-mail-spam/proteger-mail-spam.schema.js": V, "./qcm-deepfake/qcm-deepfake.schema.js": B, "./quiz-stepper/quiz-stepper.schema.js": H, "./select-conversation/select-conversation.schema.js": J, "./template-mail/template-mail.schema.js": U, "./test-top-mdp/test-top-mdp.schema.js": W, "./trouver-mdp-rs/trouver-mdp-rs.schema.js": X, "./usages-donnees/usages-donnees.schema.js": Y }), re = Object.fromEntries(Object.entries(Z).map(([l, u]) => [
392
- l.replace(/^.*\/([^/]+)\.schema\.js$/, "$1"),
393
- u
393
+ }), ee = /* @__PURE__ */ Object.assign({ "./analyse-mails-phishing/analyse-mails-phishing.schema.js": m, "./calcul-impact/calcul-impact.schema.js": g, "./capacity-calculation/capacity-calculation.schema.js": b, "./clickable-image/clickable-image.schema.js": q, "./complete-phrase/complete-phrase.schema.js": p, "./flip-cards/flip-cards.schema.js": _, "./image-quiz/image-quiz.schema.js": c, "./image-quiz/image-quizzes.schema.js": j, "./mdp-classement/mdp-classement.schema.js": h, "./message-conversation/message-conversation.schema.js": v, "./notification-antivirus/notification-antivirus.schema.js": y, "./phishing-message/phishing-message.schema.js": x, "./phishing-notification/phishing-notification.schema.js": f, "./pix-anonymisation/pix-anonymisation.schema.js": k, "./pix-article/pix-article.schema.js": S, "./pix-carousel/pix-carousel.schema.js": T, "./pix-combinaisons/pix-combinaisons.schema.js": M, "./pix-cursor/pix-cursor.schema.js": P, "./pix-llm/llm-compare-messages.schema.js": $, "./pix-llm/llm-messages.schema.js": F, "./pix-llm/llm-prompt-select.schema.js": D, "./proteger-mail-spam/proteger-mail-spam.schema.js": B, "./qcm-deepfake/qcm-deepfake.schema.js": E, "./quiz-stepper/quiz-stepper.schema.js": J, "./select-conversation/select-conversation.schema.js": U, "./template-mail/template-mail.schema.js": W, "./test-top-mdp/test-top-mdp.schema.js": K, "./trouver-mdp-rs/trouver-mdp-rs.schema.js": Y, "./usages-donnees/usages-donnees.schema.js": Z }), ie = Object.fromEntries(Object.entries(ee).map(([u, d]) => [
394
+ u.replace(/^.*\/([^/]+)\.schema\.js$/, "$1"),
395
+ d
394
396
  ]));
395
397
  export {
396
- re as schema
398
+ ie as schema
397
399
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@1024pix/epreuves-components",
3
- "version": "4.3.0",
3
+ "version": "4.4.0",
4
4
  "type": "module",
5
5
  "description": "A collection of interactive components to be used in Pix challenges or modules",
6
6
  "exports": {