@1024pix/epreuves-components 2.9.0 → 4.0.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 (56) hide show
  1. package/dist/Button.ce-CTKrSDrC.js +27 -0
  2. package/dist/{ButtonTooltip.ce-CIo_7tm0.js → ButtonTooltip.ce-CtHo2Dwx.js} +1 -1
  3. package/dist/{Cross.ce.vue_vue_type_script_setup_true_lang-C2TfFGJP.js → Cross.ce.vue_vue_type_script_setup_true_lang-CVBFTfq5.js} +5 -5
  4. package/dist/{LLMMessage.ce-y0pOYUCI.js → LLMMessage.ce-Dv4hVX0C.js} +2 -2
  5. package/dist/{Loading.ce-Cxcx64IX.js → Loading.ce-Bh7-h48F.js} +1 -1
  6. package/dist/{NavigationButton.ce-DpzmC2Dd.js → NavigationButton.ce-CA1M8sgV.js} +2 -2
  7. package/dist/PixMailMessage.ce-XPDbJiyC.js +219 -0
  8. package/dist/Popin.ce-DUQ7-GMT.js +197 -0
  9. package/dist/{Retry-BYnFnneH.js → Retry-BZf7NJz9.js} +1 -1
  10. package/dist/Stepper.ce-B1yDelzC.js +27 -0
  11. package/dist/{_plugin-vue_export-helper-BaC4eJh4.js → _plugin-vue_export-helper-D0N_62VD.js} +29 -28
  12. package/dist/components/analyse-mails-phishing.ce.js.js +99 -98
  13. package/dist/components/calcul-impact.ce.js.js +9 -9
  14. package/dist/components/capacity-calculation.ce.js.js +28 -28
  15. package/dist/components/clickable-image.ce.js.js +11 -11
  16. package/dist/components/complete-phrase.ce.js.js +7 -7
  17. package/dist/components/flip-cards.ce.js.js +5 -5
  18. package/dist/components/image-quiz.ce.js.js +4 -4
  19. package/dist/components/image-quizzes.ce.js.js +3 -3
  20. package/dist/components/llm-compare-messages.ce.js.js +3 -3
  21. package/dist/components/llm-messages.ce.js.js +3 -3
  22. package/dist/components/llm-prompt-select.ce.js.js +2 -2
  23. package/dist/components/mdp-classement.ce.js.js +29 -29
  24. package/dist/components/message-conversation.ce.js.js +5 -5
  25. package/dist/components/mobile-shell.ce.js.js +1 -1
  26. package/dist/components/phishing-message.ce.js.js +27 -27
  27. package/dist/components/phishing-notification.ce.js.js +23 -23
  28. package/dist/components/pix-anonymisation.ce.js.js +83 -87
  29. package/dist/components/pix-article.ce.js.js +5 -5
  30. package/dist/components/pix-carousel.ce.js.js +13 -13
  31. package/dist/components/pix-combinaisons.ce.js.js +238 -0
  32. package/dist/components/pix-cursor.ce.js.js +19 -19
  33. package/dist/components/pix-mail-message.ce.js.js +11 -0
  34. package/dist/components/proteger-mail-spam.ce.js.js +129 -0
  35. package/dist/components/qcm-deepfake.ce.js.js +21 -21
  36. package/dist/components/quiz-stepper.ce.js.js +8 -7
  37. package/dist/components/select-conversation.ce.js.js +15 -15
  38. package/dist/components/template-mail.ce.js.js +49 -151
  39. package/dist/components/test-top-mdp.ce.js.js +14 -14
  40. package/dist/components/trouver-mdp-rs.ce.js.js +213 -249
  41. package/dist/{i18n-BJ6FRipD.js → i18n-ekiZvzf6.js} +9 -9
  42. package/dist/{i18n-lite-Dn1Iqj1Y.js → i18n-lite-t2jNOu0C.js} +8 -8
  43. package/dist/{image-quiz.ce-DvpG9mbT.js → image-quiz.ce-DqalWHKw.js} +11 -11
  44. package/dist/index-BpqxFmwz.js +10 -0
  45. package/dist/index.js +4 -1
  46. package/dist/metadata.js +31 -19
  47. package/dist/nl-Bonww6Q2.js +13 -0
  48. package/dist/{normalize-props-DtfVI0Xg.js → normalize-props-DH0oPBss.js} +2 -2
  49. package/dist/props.examples.js +130 -0
  50. package/dist/schema.js +103 -67
  51. package/dist/{shadow-dom-Db7VMkC0.js → shadow-dom-C3AZuSZe.js} +1 -1
  52. package/dist/temporal.utils-7Uvm62ss.js +10926 -0
  53. package/package.json +3 -2
  54. package/dist/Button.ce-CkwcReY5.js +0 -18
  55. package/dist/index-BCutQvmP.js +0 -34
  56. package/dist/temporal.utils-CotrC6ao.js +0 -14456
package/dist/schema.js CHANGED
@@ -29,12 +29,12 @@ const u = e.object({
29
29
  correctFeedback: e.string().required(),
30
30
  incorrectFeedback: e.string().required()
31
31
  }).required()).required()
32
- }), d = e.object({
33
- titleLevel: e.number().optional()
34
32
  }), l = e.object({
33
+ titleLevel: e.number().optional()
34
+ }), m = e.object({
35
35
  titleLevel: e.number().optional(),
36
36
  capacityImage: e.string().required()
37
- }), m = e.object({
37
+ }), g = e.object({
38
38
  image: e.object({
39
39
  src: e.string().required(),
40
40
  alt: e.string().required(),
@@ -55,7 +55,7 @@ const u = e.object({
55
55
  info: e.string().required(),
56
56
  tooltipPosition: e.string().empty("").valid("bottom").optional()
57
57
  }).required()).required().min(1)
58
- }), g = e.object({
58
+ }), b = e.object({
59
59
  titleLevel: e.number().optional(),
60
60
  listOfProbabilityBarsLists: e.array().items(
61
61
  e.array().items(
@@ -79,7 +79,7 @@ const u = e.object({
79
79
  image: e.string().required()
80
80
  })
81
81
  ).required()
82
- }), n = e.object({
82
+ }), o = e.object({
83
83
  name: e.string().required(),
84
84
  multiple: e.boolean().optional(),
85
85
  context: e.string().optional(),
@@ -96,24 +96,24 @@ const u = e.object({
96
96
  response: e.string().empty("").optional()
97
97
  }).required()
98
98
  ).required()
99
- }).required(), b = e.object({
100
- quizzes: e.array().items(n).required()
101
99
  }).required(), p = e.object({
100
+ quizzes: e.array().items(o).required()
101
+ }).required(), _ = e.object({
102
102
  passwords: e.array().items(e.string()).required()
103
- }), r = {
103
+ }), i = {
104
104
  userName: e.string().required(),
105
105
  direction: e.string().valid("incoming", "outgoing").required()
106
- }, i = e.object({
106
+ }, t = e.object({
107
107
  src: e.string().required(),
108
108
  alt: e.string().required()
109
- }).unknown(!0), _ = e.object({
109
+ }).unknown(!0), j = e.object({
110
110
  title: e.string().required(),
111
111
  messages: e.array().items(e.alternatives().conditional(".type", {
112
112
  switch: [
113
113
  {
114
114
  is: "Texte",
115
115
  then: e.object({
116
- ...r,
116
+ ...i,
117
117
  type: e.string().valid("Texte").required(),
118
118
  content: e.string().required()
119
119
  })
@@ -121,26 +121,26 @@ const u = e.object({
121
121
  {
122
122
  is: "Texte + Image",
123
123
  then: e.object({
124
- ...r,
124
+ ...i,
125
125
  type: e.string().valid("Texte + Image").required(),
126
126
  content: e.string().required(),
127
- image: i.required()
127
+ image: t.required()
128
128
  })
129
129
  },
130
130
  {
131
131
  is: "Image seule",
132
132
  then: e.object({
133
- ...r,
133
+ ...i,
134
134
  type: e.string().valid("Image seule").required(),
135
- image: i.required()
135
+ image: t.required()
136
136
  })
137
137
  }
138
138
  ]
139
139
  })).required(),
140
140
  animationSpeed: e.number().optional()
141
- }).required(), j = e.object({
141
+ }).required(), h = e.object({
142
142
  titleLevel: e.number().optional()
143
- }), h = e.object({
143
+ }), v = e.object({
144
144
  notifications: e.array().items(e.object({
145
145
  icon: e.string().required(),
146
146
  sender: e.string().required(),
@@ -157,17 +157,17 @@ const u = e.object({
157
157
  }).required(),
158
158
  informationMessage: e.string().required(),
159
159
  titleLevel: e.number().optional()
160
- }), v = e.object({
160
+ }), y = e.object({
161
161
  content: e.string().required(),
162
162
  isAnonymizable: e.boolean().optional()
163
- }), y = e.object({
164
- fullSentence: e.array().items(v),
163
+ }), x = e.object({
164
+ fullSentence: e.array().items(y),
165
165
  rephrase: e.string().required(),
166
166
  feedback: e.string().required()
167
- }), x = e.object({
168
- titleLevel: e.number().optional(),
169
- steps: e.array().items(y)
170
167
  }), f = e.object({
168
+ titleLevel: e.number().optional(),
169
+ steps: e.array().items(x)
170
+ }), w = e.object({
171
171
  titleLevel: e.number().optional(),
172
172
  title: e.string().required(),
173
173
  author: e.string().required(),
@@ -175,11 +175,11 @@ const u = e.object({
175
175
  paragraphs: e.array().items(e.string().required()),
176
176
  highlightedSentence: e.string().empty("").optional(),
177
177
  colorOfHighlightSentence: e.string().empty("").optional()
178
- }), w = e.object({
178
+ }), L = e.object({
179
179
  name: e.string().allow("").required(),
180
180
  attribution: e.string().allow("").required(),
181
181
  url: e.string().allow("").required()
182
- }), L = e.object({
182
+ }), k = e.object({
183
183
  title: e.string().required(),
184
184
  description: e.string().allow("").required(),
185
185
  displayWidth: e.number().min(0).optional(),
@@ -187,12 +187,12 @@ const u = e.object({
187
187
  src: e.string().required(),
188
188
  alt: e.string().allow("").required()
189
189
  }).required(),
190
- license: w.optional()
191
- }), k = e.object({
190
+ license: L.optional()
191
+ }), S = e.object({
192
192
  title: e.string().required(),
193
193
  description: e.string().allow("").required(),
194
194
  text: e.string().required()
195
- }), S = e.object({
195
+ }), I = e.object({
196
196
  title: e.string().required(),
197
197
  description: e.string().allow("").required(),
198
198
  text: e.string().required(),
@@ -200,13 +200,13 @@ const u = e.object({
200
200
  src: e.string().required(),
201
201
  alt: e.string().allow("").required()
202
202
  }).required()
203
- }), I = e.object({
203
+ }), z = e.object({
204
204
  type: e.string().valid("image", "image-text", "text").required(),
205
205
  slides: e.alternatives().conditional("type", {
206
206
  switch: [
207
- { is: "image", then: e.array().items(L) },
208
- { is: "image-text", then: e.array().items(S) },
209
- { is: "text", then: e.array().items(k) }
207
+ { is: "image", then: e.array().items(k) },
208
+ { is: "image-text", then: e.array().items(I) },
209
+ { is: "text", then: e.array().items(S) }
210
210
  ]
211
211
  }).required(),
212
212
  randomSlides: e.boolean().optional(),
@@ -215,7 +215,9 @@ const u = e.object({
215
215
  disableStyleAroundImage: e.boolean().optional(),
216
216
  enableLoop: e.boolean().optional(),
217
217
  imageTextDisplay: e.string().empty("").optional()
218
- }).meta({ title: "pix-carousel" }).required(), z = e.object({
218
+ }).meta({ title: "pix-carousel" }).required(), A = e.object({
219
+ titleLevel: e.number().optional()
220
+ }), M = e.object({
219
221
  options: e.array().items(e.object({
220
222
  label: e.string().required(),
221
223
  feedback: e.object({
@@ -223,58 +225,92 @@ const u = e.object({
223
225
  text: e.string().required()
224
226
  }).required()
225
227
  }).required()).required()
226
- }), t = e.object({
228
+ }), n = e.object({
227
229
  title: e.string().required(),
228
230
  llmName: e.string().required()
229
- }).required(), M = e.object({
231
+ }).required(), C = e.object({
230
232
  direction: e.string().valid("inbound").required(),
231
233
  content: e.string().required()
232
234
  }).required(), T = e.object({
233
235
  direction: e.string().valid("outbound").required(),
234
236
  content: e.string().required()
235
- }).required(), C = e.object({
236
- conversation1: t,
237
- conversation2: t,
237
+ }).required(), P = e.object({
238
+ conversation1: n,
239
+ conversation2: n,
238
240
  userName: e.string().required(),
239
241
  messages: e.array().items(
240
- e.alternatives(T, e.array().items(M).min(2).max(2).required())
242
+ e.alternatives(T, e.array().items(C).min(2).max(2).required())
241
243
  ).required()
242
- }).required(), o = e.object({
244
+ }).required(), a = e.object({
243
245
  direction: e.string().valid("inbound", "outbound").required(),
244
246
  content: e.string().required()
245
- }), P = e.object({
246
- messages: e.array().items(o.required()).required()
247
- }).required(), A = e.object({
247
+ }), N = e.object({
248
+ messages: e.array().items(a.required()).required()
249
+ }).required(), O = e.object({
248
250
  speed: e.number().default(20).min(0).optional(),
249
- messages: e.array().items(o).required(),
251
+ messages: e.array().items(a).required(),
250
252
  prompts: e.array().items(
251
253
  e.object({
252
254
  prompt: e.string().required(),
253
255
  response: e.string().required()
254
256
  }).required()
255
257
  ).required()
256
- }).required(), N = e.object({
258
+ }).required(), r = e.string().valid("enabled", "disabled", "hidden").empty("").optional(), F = e.object({
259
+ title: e.string().required(),
260
+ description: e.string().required(),
261
+ actions: e.object({
262
+ return: r,
263
+ reply: r,
264
+ forward: r,
265
+ menu: r,
266
+ menuActions: e.object({
267
+ reply: r,
268
+ forward: r,
269
+ delete: r,
270
+ blockSender: r,
271
+ markAsUnread: r,
272
+ reportSpam: r
273
+ }).optional()
274
+ }).optional(),
275
+ goodAction: e.string().required(),
276
+ mail: e.object({
277
+ subject: e.string().required(),
278
+ sender: e.object({
279
+ name: e.string().required(),
280
+ address: e.string().required(),
281
+ avatarColor: e.string().empty("").optional()
282
+ }).required(),
283
+ body: e.string().required(),
284
+ time: e.object({
285
+ days: e.number().negative().optional(),
286
+ minutes: e.number().negative().optional()
287
+ }).required()
288
+ }).required()
289
+ }), $ = e.object({
290
+ titleLevel: e.number().optional(),
291
+ steps: e.array().items(F).required()
292
+ }), D = e.object({
257
293
  titleLevel: e.number().optional(),
258
294
  successImage: e.string().required(),
259
295
  failImage: e.string().required(),
260
296
  infoImage: e.string().required(),
261
297
  searchImage: e.string().required()
262
- }), O = e.object({
298
+ }), B = e.object({
263
299
  success: e.string().required(),
264
300
  failed: e.string().required()
265
301
  }), s = e.object({
266
302
  title: e.string().optional(),
267
303
  content: e.string().optional(),
268
304
  isGoodAnswer: e.boolean().optional()
269
- }), F = e.object({
305
+ }), E = e.object({
270
306
  question: e.string().required(),
271
- feedback: O.required(),
307
+ feedback: B.required(),
272
308
  choice1: s.required(),
273
309
  choice2: s.required()
274
- }), D = e.object({
310
+ }), G = e.object({
275
311
  titleLevel: e.number().optional(),
276
- steps: e.array().items(F)
277
- }), $ = e.object({
312
+ steps: e.array().items(E)
313
+ }), H = e.object({
278
314
  titleLevel: e.number().optional(),
279
315
  incomingMessage: e.object({
280
316
  username: e.string().required(),
@@ -290,11 +326,11 @@ const u = e.object({
290
326
  goodIdea: e.boolean().required(),
291
327
  feedback: e.string().required()
292
328
  })).required()
293
- }), B = e.object({
329
+ }), J = e.object({
294
330
  titleLevel: e.number().optional(),
295
331
  subject: e.string().required(),
296
332
  mailAddress: e.string().required(),
297
- avatarColor: e.string().optional(),
333
+ avatarColor: e.string().empty("").optional(),
298
334
  expeditor: e.string().required(),
299
335
  content: e.string().required(),
300
336
  time: e.object({
@@ -309,34 +345,34 @@ const u = e.object({
309
345
  minutes: e.number().negative().optional()
310
346
  }).required()
311
347
  }).optional()
312
- }), E = e.object({
348
+ }), U = e.object({
313
349
  titleLevel: e.number().optional(),
314
350
  passwords: e.array().items(e.string().required()).required(),
315
351
  expectedPassword: e.string().required()
316
- }), G = e.object({
352
+ }), W = e.object({
317
353
  date: e.string().isoDate().required(),
318
354
  content: e.string().required()
319
- }), H = e.object({
355
+ }), K = e.object({
320
356
  userName: e.string().required(),
321
357
  tag: e.string().required(),
322
358
  bio: e.string().required(),
323
359
  location: e.string().required(),
324
- publications: e.array().items(G).required()
325
- }), J = e.object({
360
+ publications: e.array().items(W).required()
361
+ }), Q = e.object({
326
362
  success: e.string().required(),
327
363
  failed: e.string().required()
328
- }), W = e.object({
364
+ }), R = e.object({
329
365
  password: e.string().required(),
330
366
  user: e.string().required()
331
- }), K = e.object({
367
+ }), V = e.object({
332
368
  titleLevel: e.number().optional(),
333
- validations: W.required(),
334
- feedback: J.required(),
335
- userProfile: H.required()
336
- }), Q = /* @__PURE__ */ Object.assign({ "./analyse-mails-phishing/analyse-mails-phishing.schema.js": u, "./calcul-impact/calcul-impact.schema.js": d, "./capacity-calculation/capacity-calculation.schema.js": l, "./clickable-image/clickable-image.schema.js": m, "./complete-phrase/complete-phrase.schema.js": g, "./flip-cards/flip-cards.schema.js": q, "./image-quiz/image-quiz.schema.js": n, "./image-quiz/image-quizzes.schema.js": b, "./mdp-classement/mdp-classement.schema.js": p, "./message-conversation/message-conversation.schema.js": _, "./phishing-message/phishing-message.schema.js": j, "./phishing-notification/phishing-notification.schema.js": h, "./pix-anonymisation/pix-anonymisation.schema.js": x, "./pix-article/pix-article.schema.js": f, "./pix-carousel/pix-carousel.schema.js": I, "./pix-cursor/pix-cursor.schema.js": z, "./pix-llm/llm-compare-messages.schema.js": C, "./pix-llm/llm-messages.schema.js": P, "./pix-llm/llm-prompt-select.schema.js": A, "./qcm-deepfake/qcm-deepfake.schema.js": N, "./quiz-stepper/quiz-stepper.schema.js": D, "./select-conversation/select-conversation.schema.js": $, "./template-mail/template-mail.schema.js": B, "./test-top-mdp/test-top-mdp.schema.js": E, "./trouver-mdp-rs/trouver-mdp-rs.schema.js": K }), U = Object.fromEntries(Object.entries(Q).map(([a, c]) => [
337
- a.replace(/^.*\/([^/]+)\.schema\.js$/, "$1"),
338
- c
369
+ validations: R.required(),
370
+ feedback: Q.required(),
371
+ userProfile: K.required()
372
+ }), X = /* @__PURE__ */ Object.assign({ "./analyse-mails-phishing/analyse-mails-phishing.schema.js": u, "./calcul-impact/calcul-impact.schema.js": l, "./capacity-calculation/capacity-calculation.schema.js": m, "./clickable-image/clickable-image.schema.js": g, "./complete-phrase/complete-phrase.schema.js": b, "./flip-cards/flip-cards.schema.js": q, "./image-quiz/image-quiz.schema.js": o, "./image-quiz/image-quizzes.schema.js": p, "./mdp-classement/mdp-classement.schema.js": _, "./message-conversation/message-conversation.schema.js": j, "./phishing-message/phishing-message.schema.js": h, "./phishing-notification/phishing-notification.schema.js": v, "./pix-anonymisation/pix-anonymisation.schema.js": f, "./pix-article/pix-article.schema.js": w, "./pix-carousel/pix-carousel.schema.js": z, "./pix-combinaisons/pix-combinaisons.schema.js": A, "./pix-cursor/pix-cursor.schema.js": M, "./pix-llm/llm-compare-messages.schema.js": P, "./pix-llm/llm-messages.schema.js": N, "./pix-llm/llm-prompt-select.schema.js": O, "./proteger-mail-spam/proteger-mail-spam.schema.js": $, "./qcm-deepfake/qcm-deepfake.schema.js": D, "./quiz-stepper/quiz-stepper.schema.js": G, "./select-conversation/select-conversation.schema.js": H, "./template-mail/template-mail.schema.js": J, "./test-top-mdp/test-top-mdp.schema.js": U, "./trouver-mdp-rs/trouver-mdp-rs.schema.js": V }), Z = Object.fromEntries(Object.entries(X).map(([c, d]) => [
373
+ c.replace(/^.*\/([^/]+)\.schema\.js$/, "$1"),
374
+ d
339
375
  ]));
340
376
  export {
341
- U as schema
377
+ Z as schema
342
378
  };
@@ -1,4 +1,4 @@
1
- import { u as t, p as s } from "./_plugin-vue_export-helper-BaC4eJh4.js";
1
+ import { u as t, p as s } from "./_plugin-vue_export-helper-D0N_62VD.js";
2
2
  const a = /* @__PURE__ */ Symbol("shadowRoot");
3
3
  function r() {
4
4
  const o = t();