@1024pix/epreuves-components 2.8.0 → 2.8.1
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/Button.ce-D1_fAhqr.js +18 -0
- package/dist/{ButtonTooltip.ce-B-f0Ebfa.js → ButtonTooltip.ce-BjlMn9Ez.js} +15 -15
- package/dist/Cross.ce.vue_vue_type_script_setup_true_lang-D7kq2waU.js +73 -0
- package/dist/{LLMMessage.ce-DAA_BQYY.js → LLMMessage.ce-B4Tg1zsn.js} +2 -2
- package/dist/{Loading.ce-BPbyGkTl.js → Loading.ce-S-dh_E78.js} +1 -1
- package/dist/{NavigationButton.ce-D7sjcUuO.js → NavigationButton.ce-DRBC3gta.js} +2 -2
- package/dist/{Retry-CTdYYKx5.js → Retry-CoaWKuPG.js} +1 -1
- package/dist/{_plugin-vue_export-helper-CGJjSxi7.js → _plugin-vue_export-helper-BPDEgOal.js} +1711 -1618
- package/dist/components/calcul-impact.ce.js.js +42 -42
- package/dist/components/capacity-calculation.ce.js.js +70 -70
- package/dist/components/clickable-image.ce.js.js +12 -12
- package/dist/components/complete-phrase.ce.js.js +36 -36
- package/dist/components/flip-cards.ce.js.js +1 -1
- package/dist/components/image-quiz.ce.js.js +3 -3
- package/dist/components/image-quizzes.ce.js.js +20 -20
- package/dist/components/llm-compare-messages.ce.js.js +3 -3
- package/dist/components/llm-messages.ce.js.js +3 -3
- package/dist/components/llm-prompt-select.ce.js.js +1 -1
- package/dist/components/mdp-classement.ce.js.js +219 -0
- package/dist/components/message-conversation.ce.js.js +11 -11
- package/dist/components/mobile-shell.ce.js.js +1 -1
- package/dist/components/phishing-message.ce.js.js +61 -61
- package/dist/components/phishing-notification.ce.js.js +85 -85
- package/dist/components/pix-anonymisation.ce.js.js +85 -97
- package/dist/components/pix-article.ce.js.js +18 -18
- package/dist/components/pix-carousel.ce.js.js +86 -86
- package/dist/components/pix-cursor.ce.js.js +50 -50
- package/dist/components/qcm-deepfake.ce.js.js +55 -55
- package/dist/components/quiz-stepper.ce.js.js +103 -111
- package/dist/components/select-conversation.ce.js.js +41 -41
- package/dist/components/template-mail.ce.js.js +55 -55
- package/dist/components/test-top-mdp.ce.js.js +58 -58
- package/dist/components/trouver-mdp-rs.ce.js.js +758 -0
- package/dist/{i18n-BkraEFZL.js → i18n-BuCPzaih.js} +9 -9
- package/dist/{i18n-lite-J-aj5pZd.js → i18n-lite-DBVKHY8J.js} +1 -1
- package/dist/{image-quiz.ce-BFISPs8m.js → image-quiz.ce-CXOFcx1H.js} +86 -95
- package/dist/index.js +6 -4
- package/dist/metadata.js +29 -21
- package/dist/schema.js +64 -42
- package/dist/{shadow-dom-DN_6ctXp.js → shadow-dom-By5w43W7.js} +1 -1
- package/dist/shuffled-B8VGTceh.js +19 -0
- package/package.json +1 -1
package/dist/schema.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import e from "joi";
|
|
2
|
-
const
|
|
2
|
+
const u = e.object({
|
|
3
3
|
titleLevel: e.number().optional()
|
|
4
|
-
}),
|
|
4
|
+
}), l = e.object({
|
|
5
5
|
titleLevel: e.number().optional(),
|
|
6
6
|
capacityImage: e.string().required()
|
|
7
7
|
}), d = e.object({
|
|
@@ -49,7 +49,7 @@ const l = e.object({
|
|
|
49
49
|
image: e.string().required()
|
|
50
50
|
})
|
|
51
51
|
).required()
|
|
52
|
-
}),
|
|
52
|
+
}), s = e.object({
|
|
53
53
|
name: e.string().required(),
|
|
54
54
|
multiple: e.boolean().optional(),
|
|
55
55
|
context: e.string().optional(),
|
|
@@ -66,15 +66,17 @@ const l = e.object({
|
|
|
66
66
|
response: e.string().empty("").optional()
|
|
67
67
|
}).required()
|
|
68
68
|
).required()
|
|
69
|
+
}).required(), q = e.object({
|
|
70
|
+
quizzes: e.array().items(s).required()
|
|
69
71
|
}).required(), b = e.object({
|
|
70
|
-
|
|
71
|
-
})
|
|
72
|
+
passwords: e.array().items(e.string()).required()
|
|
73
|
+
}), i = {
|
|
72
74
|
userName: e.string().required(),
|
|
73
75
|
direction: e.string().valid("incoming", "outgoing").required()
|
|
74
76
|
}, r = e.object({
|
|
75
77
|
src: e.string().required(),
|
|
76
78
|
alt: e.string().required()
|
|
77
|
-
}).unknown(!0),
|
|
79
|
+
}).unknown(!0), p = e.object({
|
|
78
80
|
title: e.string().required(),
|
|
79
81
|
messages: e.array().items(e.alternatives().conditional(".type", {
|
|
80
82
|
switch: [
|
|
@@ -106,9 +108,9 @@ const l = e.object({
|
|
|
106
108
|
]
|
|
107
109
|
})).required(),
|
|
108
110
|
animationSpeed: e.number().optional()
|
|
109
|
-
}).required(),
|
|
111
|
+
}).required(), _ = e.object({
|
|
110
112
|
titleLevel: e.number().optional()
|
|
111
|
-
}),
|
|
113
|
+
}), j = e.object({
|
|
112
114
|
notifications: e.array().items(e.object({
|
|
113
115
|
icon: e.string().required(),
|
|
114
116
|
sender: e.string().required(),
|
|
@@ -125,17 +127,17 @@ const l = e.object({
|
|
|
125
127
|
}).required(),
|
|
126
128
|
informationMessage: e.string().required(),
|
|
127
129
|
titleLevel: e.number().optional()
|
|
128
|
-
}),
|
|
130
|
+
}), h = e.object({
|
|
129
131
|
content: e.string().required(),
|
|
130
132
|
isAnonymizable: e.boolean().optional()
|
|
131
|
-
}),
|
|
132
|
-
fullSentence: e.array().items(
|
|
133
|
+
}), v = e.object({
|
|
134
|
+
fullSentence: e.array().items(h),
|
|
133
135
|
rephrase: e.string().required(),
|
|
134
136
|
feedback: e.string().required()
|
|
135
|
-
}), v = e.object({
|
|
136
|
-
titleLevel: e.number().optional(),
|
|
137
|
-
steps: e.array().items(h)
|
|
138
137
|
}), y = e.object({
|
|
138
|
+
titleLevel: e.number().optional(),
|
|
139
|
+
steps: e.array().items(v)
|
|
140
|
+
}), x = e.object({
|
|
139
141
|
titleLevel: e.number().optional(),
|
|
140
142
|
title: e.string().required(),
|
|
141
143
|
author: e.string().required(),
|
|
@@ -143,11 +145,11 @@ const l = e.object({
|
|
|
143
145
|
paragraphs: e.array().items(e.string().required()),
|
|
144
146
|
highlightedSentence: e.string().empty("").optional(),
|
|
145
147
|
colorOfHighlightSentence: e.string().empty("").optional()
|
|
146
|
-
}),
|
|
148
|
+
}), f = e.object({
|
|
147
149
|
name: e.string().allow("").required(),
|
|
148
150
|
attribution: e.string().allow("").required(),
|
|
149
151
|
url: e.string().allow("").required()
|
|
150
|
-
}),
|
|
152
|
+
}), w = e.object({
|
|
151
153
|
title: e.string().required(),
|
|
152
154
|
description: e.string().allow("").required(),
|
|
153
155
|
displayWidth: e.number().min(0).optional(),
|
|
@@ -155,12 +157,12 @@ const l = e.object({
|
|
|
155
157
|
src: e.string().required(),
|
|
156
158
|
alt: e.string().allow("").required()
|
|
157
159
|
}).required(),
|
|
158
|
-
license:
|
|
159
|
-
}),
|
|
160
|
+
license: f.optional()
|
|
161
|
+
}), L = e.object({
|
|
160
162
|
title: e.string().required(),
|
|
161
163
|
description: e.string().allow("").required(),
|
|
162
164
|
text: e.string().required()
|
|
163
|
-
}),
|
|
165
|
+
}), k = e.object({
|
|
164
166
|
title: e.string().required(),
|
|
165
167
|
description: e.string().allow("").required(),
|
|
166
168
|
text: e.string().required(),
|
|
@@ -172,9 +174,9 @@ const l = e.object({
|
|
|
172
174
|
type: e.string().valid("image", "image-text", "text").required(),
|
|
173
175
|
slides: e.alternatives().conditional("type", {
|
|
174
176
|
switch: [
|
|
175
|
-
{ is: "image", then: e.array().items(
|
|
176
|
-
{ is: "image-text", then: e.array().items(
|
|
177
|
-
{ is: "text", then: e.array().items(
|
|
177
|
+
{ is: "image", then: e.array().items(w) },
|
|
178
|
+
{ is: "image-text", then: e.array().items(k) },
|
|
179
|
+
{ is: "text", then: e.array().items(L) }
|
|
178
180
|
]
|
|
179
181
|
}).required(),
|
|
180
182
|
randomSlides: e.boolean().optional(),
|
|
@@ -194,27 +196,27 @@ const l = e.object({
|
|
|
194
196
|
}), t = e.object({
|
|
195
197
|
title: e.string().required(),
|
|
196
198
|
llmName: e.string().required()
|
|
197
|
-
}).required(),
|
|
199
|
+
}).required(), z = e.object({
|
|
198
200
|
direction: e.string().valid("inbound").required(),
|
|
199
201
|
content: e.string().required()
|
|
200
|
-
}).required(),
|
|
202
|
+
}).required(), M = e.object({
|
|
201
203
|
direction: e.string().valid("outbound").required(),
|
|
202
204
|
content: e.string().required()
|
|
203
|
-
}).required(),
|
|
205
|
+
}).required(), T = e.object({
|
|
204
206
|
conversation1: t,
|
|
205
207
|
conversation2: t,
|
|
206
208
|
userName: e.string().required(),
|
|
207
209
|
messages: e.array().items(
|
|
208
|
-
e.alternatives(
|
|
210
|
+
e.alternatives(M, e.array().items(z).min(2).max(2).required())
|
|
209
211
|
).required()
|
|
210
|
-
}).required(),
|
|
212
|
+
}).required(), n = e.object({
|
|
211
213
|
direction: e.string().valid("inbound", "outbound").required(),
|
|
212
214
|
content: e.string().required()
|
|
213
|
-
}),
|
|
214
|
-
messages: e.array().items(
|
|
215
|
-
}).required(),
|
|
215
|
+
}), C = e.object({
|
|
216
|
+
messages: e.array().items(n.required()).required()
|
|
217
|
+
}).required(), P = e.object({
|
|
216
218
|
speed: e.number().default(20).min(0).optional(),
|
|
217
|
-
messages: e.array().items(
|
|
219
|
+
messages: e.array().items(n).required(),
|
|
218
220
|
prompts: e.array().items(
|
|
219
221
|
e.object({
|
|
220
222
|
prompt: e.string().required(),
|
|
@@ -227,21 +229,21 @@ const l = e.object({
|
|
|
227
229
|
failImage: e.string().required(),
|
|
228
230
|
infoImage: e.string().required(),
|
|
229
231
|
searchImage: e.string().required()
|
|
230
|
-
}),
|
|
232
|
+
}), N = e.object({
|
|
231
233
|
success: e.string().required(),
|
|
232
234
|
failed: e.string().required()
|
|
233
|
-
}),
|
|
235
|
+
}), o = e.object({
|
|
234
236
|
title: e.string().optional(),
|
|
235
237
|
content: e.string().optional(),
|
|
236
238
|
isGoodAnswer: e.boolean().optional()
|
|
237
|
-
}),
|
|
239
|
+
}), O = e.object({
|
|
238
240
|
question: e.string().required(),
|
|
239
|
-
feedback:
|
|
240
|
-
choice1:
|
|
241
|
-
choice2:
|
|
242
|
-
}),
|
|
241
|
+
feedback: N.required(),
|
|
242
|
+
choice1: o.required(),
|
|
243
|
+
choice2: o.required()
|
|
244
|
+
}), D = e.object({
|
|
243
245
|
titleLevel: e.number().optional(),
|
|
244
|
-
steps: e.array().items(
|
|
246
|
+
steps: e.array().items(O)
|
|
245
247
|
}), $ = e.object({
|
|
246
248
|
titleLevel: e.number().optional(),
|
|
247
249
|
incomingMessage: e.object({
|
|
@@ -277,14 +279,34 @@ const l = e.object({
|
|
|
277
279
|
minutes: e.number().negative().optional()
|
|
278
280
|
}).required()
|
|
279
281
|
}).optional()
|
|
280
|
-
}),
|
|
282
|
+
}), E = e.object({
|
|
281
283
|
titleLevel: e.number().optional(),
|
|
282
284
|
passwords: e.array().items(e.string().required()).required(),
|
|
283
285
|
expectedPassword: e.string().required()
|
|
284
|
-
}),
|
|
286
|
+
}), F = e.object({
|
|
287
|
+
date: e.string().isoDate().required(),
|
|
288
|
+
content: e.string().required()
|
|
289
|
+
}), G = e.object({
|
|
290
|
+
userName: e.string().required(),
|
|
291
|
+
tag: e.string().required(),
|
|
292
|
+
bio: e.string().required(),
|
|
293
|
+
location: e.string().required(),
|
|
294
|
+
publications: e.array().items(F).required()
|
|
295
|
+
}), H = e.object({
|
|
296
|
+
success: e.string().required(),
|
|
297
|
+
failed: e.string().required()
|
|
298
|
+
}), J = e.object({
|
|
299
|
+
password: e.string().required(),
|
|
300
|
+
user: e.string().required()
|
|
301
|
+
}), W = e.object({
|
|
302
|
+
titleLevel: e.number().optional(),
|
|
303
|
+
validations: J.required(),
|
|
304
|
+
feedback: H.required(),
|
|
305
|
+
userProfile: G.required()
|
|
306
|
+
}), K = /* @__PURE__ */ Object.assign({ "./calcul-impact/calcul-impact.schema.js": u, "./capacity-calculation/capacity-calculation.schema.js": l, "./clickable-image/clickable-image.schema.js": d, "./complete-phrase/complete-phrase.schema.js": m, "./flip-cards/flip-cards.schema.js": g, "./image-quiz/image-quiz.schema.js": s, "./image-quiz/image-quizzes.schema.js": q, "./mdp-classement/mdp-classement.schema.js": b, "./message-conversation/message-conversation.schema.js": p, "./phishing-message/phishing-message.schema.js": _, "./phishing-notification/phishing-notification.schema.js": j, "./pix-anonymisation/pix-anonymisation.schema.js": y, "./pix-article/pix-article.schema.js": x, "./pix-carousel/pix-carousel.schema.js": S, "./pix-cursor/pix-cursor.schema.js": I, "./pix-llm/llm-compare-messages.schema.js": T, "./pix-llm/llm-messages.schema.js": C, "./pix-llm/llm-prompt-select.schema.js": P, "./qcm-deepfake/qcm-deepfake.schema.js": A, "./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": W }), R = Object.fromEntries(Object.entries(K).map(([a, c]) => [
|
|
285
307
|
a.replace(/^.*\/([^/]+)\.schema\.js$/, "$1"),
|
|
286
308
|
c
|
|
287
309
|
]));
|
|
288
310
|
export {
|
|
289
|
-
|
|
311
|
+
R as schema
|
|
290
312
|
};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
function d(e, { random: f = u, ensureIsShuffled: n = !1 } = {}) {
|
|
2
|
+
const o = Array.from(e, (t, l) => l);
|
|
3
|
+
do
|
|
4
|
+
s(o, f);
|
|
5
|
+
while (n && o.every((t, l) => t === l));
|
|
6
|
+
return o.map((t) => e[t]);
|
|
7
|
+
}
|
|
8
|
+
function s(e, f) {
|
|
9
|
+
for (let n = e.length - 1; n > 0; n--) {
|
|
10
|
+
const o = f() % (n + 1);
|
|
11
|
+
[e[n], e[o]] = [e[o], e[n]];
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
function u() {
|
|
15
|
+
return Math.floor(Math.random() * 2 ** 32);
|
|
16
|
+
}
|
|
17
|
+
export {
|
|
18
|
+
d as s
|
|
19
|
+
};
|