@1024pix/epreuves-components 2.4.2 → 2.4.4

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 (36) hide show
  1. package/dist/{ButtonTooltip.ce-CjtFa5aM.js → ButtonTooltip.ce-CZed5BUq.js} +1 -1
  2. package/dist/{LLMMessage.ce-Cjpb0CiE.js → LLMMessage.ce-FJCO_wvC.js} +2 -2
  3. package/dist/{Loading.ce-1tk4uU9c.js → Loading.ce-EWTMcywS.js} +1 -1
  4. package/dist/{NavigationButton.ce-CxI2QW8z.js → NavigationButton.ce-CMbVRJbG.js} +2 -2
  5. package/dist/{Retry-CY90VQJl.js → Retry-B27znRn6.js} +1 -1
  6. package/dist/{_plugin-vue_export-helper-DOoVeFcJ.js → _plugin-vue_export-helper-CJxDisp0.js} +1698 -1681
  7. package/dist/components/calcul-impact.ce.js.js +3 -3
  8. package/dist/components/capacity-calculation.ce.js.js +4 -4
  9. package/dist/components/clickable-image.ce.js.js +2 -2
  10. package/dist/components/complete-phrase.ce.js.js +4 -4
  11. package/dist/components/flip-cards.ce.js.js +2 -2
  12. package/dist/components/image-quiz.ce.js.js +3 -3
  13. package/dist/components/image-quizzes.ce.js.js +2 -2
  14. package/dist/components/llm-compare-messages.ce.js.js +3 -3
  15. package/dist/components/llm-messages.ce.js.js +3 -3
  16. package/dist/components/llm-prompt-select.ce.js.js +2 -2
  17. package/dist/components/message-conversation.ce.js.js +61 -60
  18. package/dist/components/mobile-shell.ce.js.js +1 -1
  19. package/dist/components/phishing-message.ce.js.js +60 -60
  20. package/dist/components/phishing-notification.ce.js.js +104 -104
  21. package/dist/components/pix-article.ce.js.js +25 -23
  22. package/dist/components/pix-carousel.ce.js.js +232 -131
  23. package/dist/components/pix-cursor.ce.js.js +3 -3
  24. package/dist/components/qcm-deepfake.ce.js.js +4 -4
  25. package/dist/components/select-conversation.ce.js.js +43 -43
  26. package/dist/{i18n-ecSMtuba.js → i18n-Bs7vpvgi.js} +84 -100
  27. package/dist/{image-quiz.ce-CpI6lZ9m.js → image-quiz.ce-jh8ME9Wm.js} +2 -2
  28. package/dist/index.js +1 -1
  29. package/dist/{normalize-props-AlmAfi_u.js → normalize-props-BAFlcMqH.js} +6 -2
  30. package/dist/schema.js +78 -51
  31. package/dist/shadow-dom-Bs_4iILW.js +9 -0
  32. package/dist/temporal.utils-DBcWSjWy.js +16840 -0
  33. package/package.json +1 -1
  34. package/dist/index-4XnHmtKv.js +0 -11905
  35. package/dist/shadow-dom-DZbyKUWP.js +0 -9
  36. package/dist/temporal.utils-B23shw3k.js +0 -4958
package/dist/schema.js CHANGED
@@ -1,10 +1,10 @@
1
1
  import e from "joi";
2
- const o = e.object({
2
+ const c = e.object({
3
3
  titleLevel: e.number().optional()
4
- }), a = e.object({
4
+ }), u = e.object({
5
5
  titleLevel: e.number().optional(),
6
6
  capacityImage: e.string().required()
7
- }), c = e.object({
7
+ }), d = e.object({
8
8
  image: e.object({
9
9
  src: e.string().required(),
10
10
  alt: e.string().required(),
@@ -25,7 +25,7 @@ const o = e.object({
25
25
  info: e.string().required(),
26
26
  tooltipPosition: e.string().valid("bottom").optional()
27
27
  }).required()).required().min(1)
28
- }), u = e.object({
28
+ }), l = e.object({
29
29
  titleLevel: e.number().optional(),
30
30
  listOfProbabilityBarsLists: e.array().items(
31
31
  e.array().items(
@@ -38,7 +38,7 @@ const o = e.object({
38
38
  userMessage: e.string().required(),
39
39
  llmMessage: e.string().required(),
40
40
  wordsToAdd: e.array().items(e.string()).required()
41
- }), d = e.object({
41
+ }), g = e.object({
42
42
  titleLevel: e.number().optional(),
43
43
  name: e.string().required(),
44
44
  cardList: e.array().items(
@@ -49,7 +49,7 @@ const o = e.object({
49
49
  image: e.string().required()
50
50
  })
51
51
  ).required()
52
- }), i = e.object({
52
+ }), s = e.object({
53
53
  name: e.string().required(),
54
54
  multiple: e.boolean().optional(),
55
55
  maxChoicesPerLine: e.number().optional(),
@@ -65,22 +65,48 @@ const o = e.object({
65
65
  response: e.string().optional()
66
66
  }).required()
67
67
  ).required()
68
- }).required(), l = e.object({
69
- quizzes: e.array().items(i).required()
70
- }).required(), g = e.object({
68
+ }).required(), m = e.object({
69
+ quizzes: e.array().items(s).required()
70
+ }).required(), r = {
71
+ userName: e.string().required(),
72
+ direction: e.string().valid("incoming", "outgoing").required()
73
+ }, i = e.object({
74
+ src: e.string().required(),
75
+ alt: e.string().required()
76
+ }).unknown(!0), q = e.object({
71
77
  title: e.string().required(),
72
- messages: e.array().items(
73
- e.object({
74
- userName: e.string().required(),
75
- direction: e.string().valid("incoming", "outgoing").required(),
76
- content: e.string().required(),
77
- image: e.object({
78
- src: e.string().required(),
79
- alt: e.string().required()
80
- }).unknown(!0).optional()
78
+ messages: e.array().items(e.object({
79
+ message: e.alternatives().conditional(".type", {
80
+ switch: [
81
+ {
82
+ is: "Texte",
83
+ then: e.object({
84
+ ...r,
85
+ type: e.string().valid("Texte").required(),
86
+ content: e.string().required()
87
+ })
88
+ },
89
+ {
90
+ is: "Texte + Image",
91
+ then: e.object({
92
+ ...r,
93
+ type: e.string().valid("Texte + Image").required(),
94
+ content: e.string().required(),
95
+ image: i.required()
96
+ })
97
+ },
98
+ {
99
+ is: "Image seule",
100
+ then: e.object({
101
+ ...r,
102
+ type: e.string().valid("Image seule").required(),
103
+ image: i.required()
104
+ })
105
+ }
106
+ ]
81
107
  })
82
- ).required()
83
- }).required(), m = e.object({
108
+ })).required()
109
+ }).required(), b = e.object({
84
110
  titleLevel: e.number().optional(),
85
111
  messages: e.array().items(e.object({
86
112
  senderName: e.string().required(),
@@ -90,7 +116,7 @@ const o = e.object({
90
116
  victory: e.string().required(),
91
117
  loose: e.string().required()
92
118
  })).required()
93
- }), q = e.object({
119
+ }), p = e.object({
94
120
  notifications: e.array().items(e.object({
95
121
  icon: e.string().required(),
96
122
  sender: e.string().required(),
@@ -107,19 +133,19 @@ const o = e.object({
107
133
  }).required(),
108
134
  informationMessage: e.string().required(),
109
135
  titleLevel: e.number().optional()
110
- }), b = e.object({
136
+ }), _ = e.object({
111
137
  titleLevel: e.number().optional(),
112
138
  title: e.string().required(),
113
139
  author: e.string().required(),
114
140
  date: e.string().required(),
115
141
  paragraphs: e.array().items(e.string().required()),
116
- highlightedSentence: e.string().required(),
117
- colorOfHighlightSentence: e.string().required()
118
- }), p = e.object({
142
+ highlightedSentence: e.string().optional(),
143
+ colorOfHighlightSentence: e.string().optional()
144
+ }), j = e.object({
119
145
  name: e.string().allow("").required(),
120
146
  attribution: e.string().allow("").required(),
121
147
  url: e.string().allow("").required()
122
- }), _ = e.object({
148
+ }), h = e.object({
123
149
  title: e.string().required(),
124
150
  description: e.string().allow("").required(),
125
151
  displayWidth: e.number().min(0).optional(),
@@ -127,12 +153,12 @@ const o = e.object({
127
153
  src: e.string().required(),
128
154
  alt: e.string().required()
129
155
  }).required(),
130
- license: p.optional()
131
- }), j = e.object({
156
+ license: j.optional()
157
+ }), v = e.object({
132
158
  title: e.string().required(),
133
159
  description: e.string().allow("").required(),
134
160
  text: e.string().required()
135
- }), h = e.object({
161
+ }), y = e.object({
136
162
  title: e.string().required(),
137
163
  description: e.string().allow("").required(),
138
164
  text: e.string().required(),
@@ -140,21 +166,22 @@ const o = e.object({
140
166
  src: e.string().required(),
141
167
  alt: e.string().required()
142
168
  }).required()
143
- }), v = e.object({
169
+ }), x = e.object({
144
170
  type: e.string().valid("image", "image-text", "text").required(),
145
171
  slides: e.alternatives().conditional("type", {
146
172
  switch: [
147
- { is: "image", then: e.array().items(_) },
148
- { is: "image-text", then: e.array().items(h) },
149
- { is: "text", then: e.array().items(j) }
173
+ { is: "image", then: e.array().items(h) },
174
+ { is: "image-text", then: e.array().items(y) },
175
+ { is: "text", then: e.array().items(v) }
150
176
  ]
151
177
  }).required(),
152
178
  randomSlides: e.boolean().required(),
153
179
  titleLevel: e.number().integer().optional(),
154
180
  disableAnimation: e.boolean().required(),
181
+ disableStyleAroundImage: e.boolean().optional(),
155
182
  enableLoop: e.boolean().optional(),
156
183
  imageTextDisplay: e.string().optional()
157
- }).meta({ title: "pix-carousel" }).required(), y = e.object({
184
+ }).meta({ title: "pix-carousel" }).required(), f = e.object({
158
185
  options: e.array().items(e.object({
159
186
  label: e.string().required(),
160
187
  feedback: e.object({
@@ -162,43 +189,43 @@ const o = e.object({
162
189
  text: e.string().required()
163
190
  }).required()
164
191
  }).required()).required()
165
- }), r = e.object({
192
+ }), t = e.object({
166
193
  title: e.string().required(),
167
194
  llmName: e.string().required()
168
- }).required(), x = e.object({
195
+ }).required(), L = e.object({
169
196
  direction: e.string().valid("inbound").required(),
170
197
  content: e.string().required()
171
- }).required(), f = e.object({
198
+ }).required(), w = e.object({
172
199
  direction: e.string().valid("outbound").required(),
173
200
  content: e.string().required()
174
- }).required(), L = e.object({
175
- conversation1: r,
176
- conversation2: r,
201
+ }).required(), I = e.object({
202
+ conversation1: t,
203
+ conversation2: t,
177
204
  userName: e.string().required(),
178
205
  messages: e.array().items(
179
- e.alternatives(f, e.array().items(x).min(2).max(2).required())
206
+ e.alternatives(w, e.array().items(L).min(2).max(2).required())
180
207
  ).required()
181
- }).required(), t = e.object({
208
+ }).required(), n = e.object({
182
209
  direction: e.string().valid("inbound", "outbound").required(),
183
210
  content: e.string().required()
184
- }), w = e.object({
185
- messages: e.array().items(t.required()).required()
211
+ }), S = e.object({
212
+ messages: e.array().items(n.required()).required()
186
213
  }).required(), k = e.object({
187
214
  speed: e.number().default(20).min(0).optional(),
188
- messages: e.array().items(t).required(),
215
+ messages: e.array().items(n).required(),
189
216
  prompts: e.array().items(
190
217
  e.object({
191
218
  prompt: e.string().required(),
192
219
  response: e.string().required()
193
220
  }).required()
194
221
  ).required()
195
- }).required(), S = e.object({
222
+ }).required(), z = e.object({
196
223
  titleLevel: e.number().optional(),
197
224
  successImage: e.string().required(),
198
225
  failImage: e.string().required(),
199
226
  infoImage: e.string().required(),
200
227
  searchImage: e.string().required()
201
- }), z = e.object({
228
+ }), M = e.object({
202
229
  titleLevel: e.number().optional(),
203
230
  incomingMessage: e.object({
204
231
  username: e.string().required(),
@@ -214,10 +241,10 @@ const o = e.object({
214
241
  goodIdea: e.boolean().required(),
215
242
  feedback: e.string().required()
216
243
  })).required()
217
- }), I = /* @__PURE__ */ Object.assign({ "./calcul-impact/calcul-impact.schema.js": o, "./capacity-calculation/capacity-calculation.schema.js": a, "./clickable-image/clickable-image.schema.js": c, "./complete-phrase/complete-phrase.schema.js": u, "./flip-cards/flip-cards.schema.js": d, "./image-quiz/image-quiz.schema.js": i, "./image-quiz/image-quizzes.schema.js": l, "./message-conversation/message-conversation.schema.js": g, "./phishing-message/phishing-message.schema.js": m, "./phishing-notification/phishing-notification.schema.js": q, "./pix-article/pix-article.schema.js": b, "./pix-carousel/pix-carousel.schema.js": v, "./pix-cursor/pix-cursor.schema.js": y, "./pix-llm/llm-compare-messages.schema.js": L, "./pix-llm/llm-messages.schema.js": w, "./pix-llm/llm-prompt-select.schema.js": k, "./qcm-deepfake/qcm-deepfake.schema.js": S, "./select-conversation/select-conversation.schema.js": z }), C = Object.fromEntries(Object.entries(I).map(([s, n]) => [
218
- s.replace(/^.*\/([^/]+)\.schema\.js$/, "$1"),
219
- n
244
+ }), T = /* @__PURE__ */ Object.assign({ "./calcul-impact/calcul-impact.schema.js": c, "./capacity-calculation/capacity-calculation.schema.js": u, "./clickable-image/clickable-image.schema.js": d, "./complete-phrase/complete-phrase.schema.js": l, "./flip-cards/flip-cards.schema.js": g, "./image-quiz/image-quiz.schema.js": s, "./image-quiz/image-quizzes.schema.js": m, "./message-conversation/message-conversation.schema.js": q, "./phishing-message/phishing-message.schema.js": b, "./phishing-notification/phishing-notification.schema.js": p, "./pix-article/pix-article.schema.js": _, "./pix-carousel/pix-carousel.schema.js": x, "./pix-cursor/pix-cursor.schema.js": f, "./pix-llm/llm-compare-messages.schema.js": I, "./pix-llm/llm-messages.schema.js": S, "./pix-llm/llm-prompt-select.schema.js": k, "./qcm-deepfake/qcm-deepfake.schema.js": z, "./select-conversation/select-conversation.schema.js": M }), N = Object.fromEntries(Object.entries(T).map(([o, a]) => [
245
+ o.replace(/^.*\/([^/]+)\.schema\.js$/, "$1"),
246
+ a
220
247
  ]));
221
248
  export {
222
- C as schema
249
+ N as schema
223
250
  };
@@ -0,0 +1,9 @@
1
+ import { u as t, p as s } from "./_plugin-vue_export-helper-CJxDisp0.js";
2
+ const a = /* @__PURE__ */ Symbol("shadowRoot");
3
+ function r() {
4
+ const o = t();
5
+ o != null && s(a, o);
6
+ }
7
+ export {
8
+ r as p
9
+ };