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