@1024pix/epreuves-components 4.4.0 → 4.6.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 (60) hide show
  1. package/dist/{Button.ce-Dvxeebpx.js → Button.ce-C-lBihdF.js} +1 -1
  2. package/dist/{ButtonTooltip.ce-WwOarMJq.js → ButtonTooltip.ce-B071jWM0.js} +1 -1
  3. package/dist/{Cross.ce.vue_vue_type_script_setup_true_lang-DVLRq2sO.js → Cross.ce.vue_vue_type_script_setup_true_lang-Cc1FblLh.js} +1 -1
  4. package/dist/{Feedback.ce-CnZRBGWf.js → Feedback.ce-CeyQhenY.js} +1 -1
  5. package/dist/{FocusManager.ce-Cv3wYF9s.js → FocusManager.ce-Cb8fkfeb.js} +6 -6
  6. package/dist/Icon.ce-AUDpzQic.js +50 -0
  7. package/dist/{LLMMessage.ce-B7EwoHy2.js → LLMMessage.ce-DBorHEa1.js} +2 -2
  8. package/dist/{Loading.ce-Dv2gEjXm.js → Loading.ce-D7EpPBBD.js} +1 -1
  9. package/dist/Modal.ce-CRJ7RcAX.js +86 -0
  10. package/dist/{NavigationButton.ce-D8_YC96l.js → NavigationButton.ce-DqFqWt9V.js} +2 -2
  11. package/dist/{PixMailMessage.ce-TnjyOfiH.js → PixMailMessage.ce-Cqrs9R3i.js} +20 -20
  12. package/dist/{Popin.ce-BPnBZykQ.js → Popin.ce-D1V8wzxE.js} +8 -8
  13. package/dist/{Retry-C3g7zhz8.js → Retry-fzluiEoj.js} +3 -3
  14. package/dist/{Stepper.ce-DEMN02yr.js → Stepper.ce-cG0al2pY.js} +1 -1
  15. package/dist/{_plugin-vue_export-helper-Dz58mCLm.js → _plugin-vue_export-helper-DJlRxzRH.js} +1635 -1540
  16. package/dist/components/analyse-mails-phishing.ce.js.js +17 -17
  17. package/dist/components/autocompletion-mdp.ce.js.js +256 -0
  18. package/dist/components/button.ce.js.js +2 -2
  19. package/dist/components/calcul-impact.ce.js.js +15 -15
  20. package/dist/components/capacity-calculation.ce.js.js +15 -15
  21. package/dist/components/clickable-image.ce.js.js +12 -12
  22. package/dist/components/complete-phrase.ce.js.js +8 -8
  23. package/dist/components/feedback.ce.js.js +2 -2
  24. package/dist/components/flip-cards.ce.js.js +5 -5
  25. package/dist/components/generate-mdp.ce.js.js +159 -0
  26. package/dist/components/image-quiz.ce.js.js +3 -3
  27. package/dist/components/image-quizzes.ce.js.js +3 -3
  28. package/dist/components/llm-compare-messages.ce.js.js +3 -3
  29. package/dist/components/llm-messages.ce.js.js +6 -6
  30. package/dist/components/llm-prompt-select.ce.js.js +6 -6
  31. package/dist/components/mdp-classement.ce.js.js +17 -17
  32. package/dist/components/message-conversation.ce.js.js +13 -13
  33. package/dist/components/mobile-shell.ce.js.js +1 -1
  34. package/dist/components/notification-antivirus.ce.js.js +137 -175
  35. package/dist/components/phishing-message.ce.js.js +9 -9
  36. package/dist/components/phishing-notification.ce.js.js +19 -19
  37. package/dist/components/pix-anonymisation.ce.js.js +23 -23
  38. package/dist/components/pix-article.ce.js.js +2 -2
  39. package/dist/components/pix-carousel.ce.js.js +13 -13
  40. package/dist/components/pix-combinaisons.ce.js.js +6 -6
  41. package/dist/components/pix-cursor.ce.js.js +6 -6
  42. package/dist/components/pix-mail-message.ce.js.js +3 -3
  43. package/dist/components/proteger-mail-spam.ce.js.js +14 -14
  44. package/dist/components/qcm-deepfake.ce.js.js +29 -29
  45. package/dist/components/quiz-stepper.ce.js.js +6 -6
  46. package/dist/components/select-conversation.ce.js.js +7 -7
  47. package/dist/components/template-mail.ce.js.js +3 -3
  48. package/dist/components/test-top-mdp.ce.js.js +5 -5
  49. package/dist/components/trouver-mdp-rs.ce.js.js +6 -6
  50. package/dist/components/usages-donnees.ce.js.js +27 -27
  51. package/dist/{i18n-H4HokXDX.js → i18n-C0iMUvqX.js} +13 -13
  52. package/dist/{i18n-lite-CzqISEWm.js → i18n-lite-X2ADNonj.js} +1 -1
  53. package/dist/{image-quiz.ce-C-iI27gD.js → image-quiz.ce-BaKLPvSS.js} +8 -8
  54. package/dist/{index-BUPiE5WR.js → index-Ck6CFpiq.js} +1 -1
  55. package/dist/index.js +3 -1
  56. package/dist/metadata.js +29 -21
  57. package/dist/props.examples.js +121 -117
  58. package/dist/schema.js +58 -54
  59. package/dist/{shadow-dom-D54WF-WZ.js → shadow-dom-Dh5hLXcx.js} +1 -1
  60. package/package.json +1 -1
package/dist/schema.js CHANGED
@@ -32,9 +32,11 @@ const m = e.object({
32
32
  }), g = e.object({
33
33
  titleLevel: e.number().optional()
34
34
  }), b = e.object({
35
+ titleLevel: e.number().optional()
36
+ }), q = e.object({
35
37
  titleLevel: e.number().optional(),
36
38
  capacityImage: e.string().required()
37
- }), q = e.object({
39
+ }), p = e.object({
38
40
  image: e.object({
39
41
  src: e.string().required(),
40
42
  alt: e.string().required(),
@@ -55,7 +57,7 @@ const m = e.object({
55
57
  info: e.string().required(),
56
58
  tooltipPosition: e.string().empty("").valid("bottom").optional()
57
59
  }).required()).required().min(1)
58
- }), p = e.object({
60
+ }), _ = e.object({
59
61
  titleLevel: e.number().optional(),
60
62
  listOfProbabilityBarsLists: e.array().items(
61
63
  e.array().items(
@@ -68,7 +70,7 @@ const m = e.object({
68
70
  userMessage: e.string().required(),
69
71
  llmMessage: e.string().required(),
70
72
  wordsToAdd: e.array().items(e.string()).required()
71
- }), _ = e.object({
73
+ }), j = e.object({
72
74
  titleLevel: e.number().optional(),
73
75
  name: e.string().required(),
74
76
  cardList: e.array().items(
@@ -79,6 +81,8 @@ const m = e.object({
79
81
  image: e.string().required()
80
82
  })
81
83
  ).required()
84
+ }), v = e.object({
85
+ titleLevel: e.number().optional()
82
86
  }), c = e.object({
83
87
  name: e.string().required(),
84
88
  multiple: e.boolean().optional(),
@@ -96,9 +100,9 @@ const m = e.object({
96
100
  response: e.string().empty("").optional()
97
101
  }).required()
98
102
  ).required()
99
- }).required(), j = e.object({
100
- quizzes: e.array().items(c).required()
101
103
  }).required(), h = e.object({
104
+ quizzes: e.array().items(c).required()
105
+ }).required(), y = e.object({
102
106
  passwords: e.array().items(e.string()).required()
103
107
  }), i = {
104
108
  userName: e.string().required(),
@@ -106,7 +110,7 @@ const m = e.object({
106
110
  }, t = e.object({
107
111
  src: e.string().required(),
108
112
  alt: e.string().required()
109
- }).unknown(!0), v = e.object({
113
+ }).unknown(!0), x = e.object({
110
114
  conversationTitle: e.string().empty("").optional(),
111
115
  messages: e.array().items(e.alternatives().conditional(".type", {
112
116
  switch: [
@@ -138,11 +142,11 @@ const m = e.object({
138
142
  ]
139
143
  })).required(),
140
144
  animationSpeed: e.number().optional()
141
- }).required(), y = e.object({
145
+ }).required(), f = e.object({
142
146
  titleLevel: e.number().optional()
143
- }), x = e.object({
147
+ }), L = e.object({
144
148
  titleLevel: e.number().optional()
145
- }), f = e.object({
149
+ }), w = e.object({
146
150
  notifications: e.array().items(e.object({
147
151
  icon: e.string().required(),
148
152
  sender: e.string().required(),
@@ -159,17 +163,17 @@ const m = e.object({
159
163
  }).required(),
160
164
  informationMessage: e.string().required(),
161
165
  titleLevel: e.number().optional()
162
- }), w = e.object({
166
+ }), k = e.object({
163
167
  content: e.string().required(),
164
168
  isAnonymizable: e.boolean().optional()
165
- }), L = e.object({
166
- fullSentence: e.array().items(w),
169
+ }), S = e.object({
170
+ fullSentence: e.array().items(k),
167
171
  rephrase: e.string().required(),
168
172
  feedback: e.string().required()
169
- }), k = e.object({
173
+ }), I = e.object({
170
174
  titleLevel: e.number().optional(),
171
- steps: e.array().items(L)
172
- }), S = e.object({
175
+ steps: e.array().items(S)
176
+ }), z = e.object({
173
177
  titleLevel: e.number().optional(),
174
178
  articleTitle: e.string().required(),
175
179
  author: e.string().required(),
@@ -177,11 +181,11 @@ const m = e.object({
177
181
  paragraphs: e.array().items(e.string().required()),
178
182
  highlightedSentence: e.string().empty("").optional(),
179
183
  colorOfHighlightSentence: e.string().empty("").optional()
180
- }), I = e.object({
184
+ }), A = e.object({
181
185
  name: e.string().allow("").required(),
182
186
  attribution: e.string().allow("").required(),
183
187
  url: e.string().allow("").required()
184
- }), z = e.object({
188
+ }), C = e.object({
185
189
  title: e.string().required(),
186
190
  description: e.string().allow("").required(),
187
191
  displayWidth: e.number().min(0).optional(),
@@ -189,12 +193,12 @@ const m = e.object({
189
193
  src: e.string().required(),
190
194
  alt: e.string().allow("").required()
191
195
  }).required(),
192
- license: I.optional()
193
- }), A = e.object({
196
+ license: A.optional()
197
+ }), T = e.object({
194
198
  title: e.string().required(),
195
199
  description: e.string().allow("").required(),
196
200
  text: e.string().required()
197
- }), C = e.object({
201
+ }), M = e.object({
198
202
  title: e.string().required(),
199
203
  description: e.string().allow("").required(),
200
204
  text: e.string().required(),
@@ -202,13 +206,13 @@ const m = e.object({
202
206
  src: e.string().required(),
203
207
  alt: e.string().allow("").required()
204
208
  }).required()
205
- }), T = e.object({
209
+ }), P = e.object({
206
210
  type: e.string().valid("image", "image-text", "text").required(),
207
211
  slides: e.alternatives().conditional("type", {
208
212
  switch: [
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) }
213
+ { is: "image", then: e.array().items(C) },
214
+ { is: "image-text", then: e.array().items(M) },
215
+ { is: "text", then: e.array().items(T) }
212
216
  ]
213
217
  }).required(),
214
218
  randomSlides: e.boolean().optional(),
@@ -217,9 +221,9 @@ const m = e.object({
217
221
  disableStyleAroundImage: e.boolean().optional(),
218
222
  enableLoop: e.boolean().optional(),
219
223
  imageTextDisplay: e.string().empty("").optional()
220
- }).meta({ title: "pix-carousel" }).required(), M = e.object({
224
+ }).meta({ title: "pix-carousel" }).required(), N = e.object({
221
225
  titleLevel: e.number().optional()
222
- }), P = e.object({
226
+ }), O = e.object({
223
227
  options: e.array().items(e.object({
224
228
  label: e.string().required(),
225
229
  feedback: e.object({
@@ -230,25 +234,25 @@ const m = e.object({
230
234
  }), o = e.object({
231
235
  title: e.string().required(),
232
236
  llmName: e.string().required()
233
- }).required(), N = e.object({
237
+ }).required(), $ = e.object({
234
238
  direction: e.string().valid("inbound").required(),
235
239
  content: e.string().required()
236
- }).required(), O = e.object({
240
+ }).required(), F = e.object({
237
241
  direction: e.string().valid("outbound").required(),
238
242
  content: e.string().required()
239
- }).required(), $ = e.object({
243
+ }).required(), D = e.object({
240
244
  conversation1: o,
241
245
  conversation2: o,
242
246
  userName: e.string().required(),
243
247
  messages: e.array().items(
244
- e.alternatives(O, e.array().items(N).min(2).max(2).required())
248
+ e.alternatives(F, e.array().items($).min(2).max(2).required())
245
249
  ).required()
246
250
  }).required(), l = e.object({
247
251
  direction: e.string().valid("inbound", "outbound").required(),
248
252
  content: e.string().required()
249
- }), F = e.object({
253
+ }), V = e.object({
250
254
  messages: e.array().items(l.required()).required()
251
- }).required(), D = e.object({
255
+ }).required(), B = e.object({
252
256
  speed: e.number().default(20).min(0).optional(),
253
257
  messages: e.array().items(l).required(),
254
258
  prompts: e.array().items(
@@ -257,7 +261,7 @@ const m = e.object({
257
261
  response: e.string().required()
258
262
  }).required()
259
263
  ).required()
260
- }).required(), r = e.string().valid("enabled", "disabled", "hidden").empty("").optional(), V = e.object({
264
+ }).required(), r = e.string().valid("enabled", "disabled", "hidden").empty("").optional(), E = e.object({
261
265
  title: e.string().required(),
262
266
  description: e.string().required(),
263
267
  actions: e.object({
@@ -288,31 +292,31 @@ const m = e.object({
288
292
  minutes: e.number().negative().optional()
289
293
  }).required()
290
294
  }).required()
291
- }), B = e.object({
295
+ }), G = e.object({
292
296
  titleLevel: e.number().optional(),
293
- steps: e.array().items(V).required()
294
- }), E = e.object({
297
+ steps: e.array().items(E).required()
298
+ }), H = e.object({
295
299
  titleLevel: e.number().optional(),
296
300
  successImage: e.string().required(),
297
301
  failImage: e.string().required(),
298
302
  infoImage: e.string().required(),
299
303
  searchImage: e.string().required()
300
- }), G = e.object({
304
+ }), J = e.object({
301
305
  success: e.string().required(),
302
306
  failed: e.string().required()
303
307
  }), n = e.object({
304
308
  title: e.string().optional(),
305
309
  content: e.string().optional(),
306
310
  isGoodAnswer: e.boolean().optional()
307
- }), H = e.object({
311
+ }), U = e.object({
308
312
  question: e.string().required(),
309
- feedback: G.required(),
313
+ feedback: J.required(),
310
314
  choice1: n.required(),
311
315
  choice2: n.required()
312
- }), J = e.object({
316
+ }), W = e.object({
313
317
  titleLevel: e.number().optional(),
314
- steps: e.array().items(H)
315
- }), U = e.object({
318
+ steps: e.array().items(U)
319
+ }), K = e.object({
316
320
  titleLevel: e.number().optional(),
317
321
  incomingMessage: e.object({
318
322
  username: e.string().required(),
@@ -328,7 +332,7 @@ const m = e.object({
328
332
  goodIdea: e.boolean().required(),
329
333
  feedback: e.string().required()
330
334
  })).required()
331
- }), W = e.object({
335
+ }), Q = e.object({
332
336
  titleLevel: e.number().optional(),
333
337
  subject: e.string().required(),
334
338
  mailAddress: e.string().required(),
@@ -350,7 +354,7 @@ const m = e.object({
350
354
  }), s = e.object({
351
355
  title: e.string().required(),
352
356
  content: e.string().required()
353
- }), K = e.object({
357
+ }), R = e.object({
354
358
  titleLevel: e.number().optional(),
355
359
  passwords: e.array().items(e.string().required()).required(),
356
360
  expectedPassword: e.string().required(),
@@ -358,30 +362,30 @@ const m = e.object({
358
362
  success: s.required(),
359
363
  failed: s.required()
360
364
  }).required()
361
- }), Q = e.object({
365
+ }), X = e.object({
362
366
  date: e.string().isoDate().required(),
363
367
  content: e.string().required()
364
- }), R = e.object({
368
+ }), Y = e.object({
365
369
  userName: e.string().required(),
366
370
  tag: e.string().required(),
367
371
  bio: e.string().required(),
368
372
  location: e.string().required(),
369
- publications: e.array().items(Q).required()
373
+ publications: e.array().items(X).required()
370
374
  }), a = e.object({
371
375
  title: e.string().required(),
372
376
  content: e.string().required()
373
- }), X = e.object({
377
+ }), Z = e.object({
374
378
  password: e.string().required(),
375
379
  user: e.string().required()
376
- }), Y = e.object({
380
+ }), ee = e.object({
377
381
  titleLevel: e.number().optional(),
378
- validations: X.required(),
382
+ validations: Z.required(),
379
383
  feedback: e.object({
380
384
  success: a.required(),
381
385
  failed: a.required()
382
386
  }).required(),
383
- userProfile: R.required()
384
- }), Z = e.object({
387
+ userProfile: Y.required()
388
+ }), re = e.object({
385
389
  localeChoices: e.array().items(e.object({
386
390
  label: e.string().required(),
387
391
  hasValue: e.boolean().optional()
@@ -390,10 +394,10 @@ const m = e.object({
390
394
  label: e.string().required(),
391
395
  hasValue: e.boolean().optional()
392
396
  }))
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]) => [
397
+ }), ie = /* @__PURE__ */ Object.assign({ "./analyse-mails-phishing/analyse-mails-phishing.schema.js": m, "./autocompletion-mdp/autocompletion-mdp.schema.js": g, "./calcul-impact/calcul-impact.schema.js": b, "./capacity-calculation/capacity-calculation.schema.js": q, "./clickable-image/clickable-image.schema.js": p, "./complete-phrase/complete-phrase.schema.js": _, "./flip-cards/flip-cards.schema.js": j, "./generate-mdp/generate-mdp.schema.js": v, "./image-quiz/image-quiz.schema.js": c, "./image-quiz/image-quizzes.schema.js": h, "./mdp-classement/mdp-classement.schema.js": y, "./message-conversation/message-conversation.schema.js": x, "./notification-antivirus/notification-antivirus.schema.js": f, "./phishing-message/phishing-message.schema.js": L, "./phishing-notification/phishing-notification.schema.js": w, "./pix-anonymisation/pix-anonymisation.schema.js": I, "./pix-article/pix-article.schema.js": z, "./pix-carousel/pix-carousel.schema.js": P, "./pix-combinaisons/pix-combinaisons.schema.js": N, "./pix-cursor/pix-cursor.schema.js": O, "./pix-llm/llm-compare-messages.schema.js": D, "./pix-llm/llm-messages.schema.js": V, "./pix-llm/llm-prompt-select.schema.js": B, "./proteger-mail-spam/proteger-mail-spam.schema.js": G, "./qcm-deepfake/qcm-deepfake.schema.js": H, "./quiz-stepper/quiz-stepper.schema.js": W, "./select-conversation/select-conversation.schema.js": K, "./template-mail/template-mail.schema.js": Q, "./test-top-mdp/test-top-mdp.schema.js": R, "./trouver-mdp-rs/trouver-mdp-rs.schema.js": ee, "./usages-donnees/usages-donnees.schema.js": re }), oe = Object.fromEntries(Object.entries(ie).map(([u, d]) => [
394
398
  u.replace(/^.*\/([^/]+)\.schema\.js$/, "$1"),
395
399
  d
396
400
  ]));
397
401
  export {
398
- ie as schema
402
+ oe as schema
399
403
  };
@@ -1,4 +1,4 @@
1
- import { u as e, i as s, p as a } from "./_plugin-vue_export-helper-Dz58mCLm.js";
1
+ import { u as e, i as s, p as a } from "./_plugin-vue_export-helper-DJlRxzRH.js";
2
2
  const t = /* @__PURE__ */ Symbol("shadowRoot");
3
3
  function r() {
4
4
  const o = e();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@1024pix/epreuves-components",
3
- "version": "4.4.0",
3
+ "version": "4.6.0",
4
4
  "type": "module",
5
5
  "description": "A collection of interactive components to be used in Pix challenges or modules",
6
6
  "exports": {