@1024pix/epreuves-components 1.1.0 → 1.2.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.
@@ -1,8 +1,8 @@
1
- import { a as k, c, o as r, f as t, y as b, t as d, x as C, _ as w, L as R, M as A, r as y, v as h, I as E, j as V, N as M, D as O, F as _, b as S, e as G, q as j, B as P, g as F, d as H } from "../_plugin-vue_export-helper-BihDtAH2.js";
2
- import { i as s, a as Q, b as U } from "../i18n-kZiLXTQh.js";
3
- const W = {
1
+ import { a as k, c, o as r, f as t, x as b, t as d, v as C, _ as w, M as A, N as R, r as y, q as _, J as E, j as V, O as j, D as M, F as h, b as S, e as O, B as G, A as P, g as F, d as H } from "../_plugin-vue_export-helper-CWFVtOvN.js";
2
+ import { i as s, a as Q, b as U } from "../i18n-C63rdMbm.js";
3
+ const J = {}, W = {}, Z = {
4
4
  "qcm-deepfake": { options: ["une photo de sa chanteuse préférée", "une chanson de sa chanteuse préférée", "un enregistrement de Caroline qui chante", "une photo de Caroline", "un enregistrement de Caroline qui dit quelques phrases"], iaResultInfo: "Retrouvez ici les résultats du logiciel d'IA générative :", iaResultGenerated: "Résultat généré par le logiciel d’IA générative :", title: "Recréez la vidéo de Caroline", in: "Entrée", out: "Sortie", selectThreeElements: "Sélectionnez 3 éléments pour générer la vidéo :", generateVideo: "Générer la vidéo !", restart: "Recommencer", element_one: "élément", element_other: "éléments", generateVideoInfo_one: "Plus que {{count}} élément", generateVideoInfo_other: "Plus que {{count}} éléments", restartInfo: "Essayez avec de nouveaux éléments", success: { title: "Super !", description: "C'est bien la vidéo de Caroline? Vous avez utilisé les bons éléments." }, fail: { title: "Pas exactement…", description: "Le résultat ne convient pas. Recommencez en changeant les éléments en entrée." }, searchTitle: "Le logiciel d’IA générative crée la vidéo" }
5
- }, Z = ["aria-hidden"], J = ["aria-level"], K = ["src"], X = { class: "description" }, Y = ["src"], ee = ["aria-level"], te = /* @__PURE__ */ k({
5
+ }, K = {}, X = {}, Y = ["aria-hidden"], ee = ["aria-level"], te = ["src"], ae = { class: "description" }, ie = ["src"], se = ["aria-level"], ne = /* @__PURE__ */ k({
6
6
  __name: "NarrativeAnswer.ce",
7
7
  props: {
8
8
  messageTitle: { type: String },
@@ -22,18 +22,18 @@ const W = {
22
22
  class: "subtitle",
23
23
  role: "heading",
24
24
  "aria-level": e.titleLevel + 1
25
- }, d(e.$t("qcm-deepfake.out")), 9, J),
25
+ }, d(e.$t("qcm-deepfake.out")), 9, ee),
26
26
  e.type === "search" ? (r(), c("img", {
27
27
  key: 0,
28
28
  src: e.image,
29
29
  alt: ""
30
- }, null, 8, K)) : b("", !0),
31
- t("p", X, d(e.title), 1),
30
+ }, null, 8, te)) : b("", !0),
31
+ t("p", ae, d(e.title), 1),
32
32
  e.type !== "search" ? (r(), c("img", {
33
33
  key: 1,
34
34
  src: e.image,
35
35
  alt: ""
36
- }, null, 8, Y)) : b("", !0),
36
+ }, null, 8, ie)) : b("", !0),
37
37
  e.messageTitle ? (r(), c("div", {
38
38
  key: 2,
39
39
  class: C(["answer-block", e.stateAnswer])
@@ -42,14 +42,14 @@ const W = {
42
42
  class: "answer-block__title",
43
43
  role: "heading",
44
44
  "aria-level": e.titleLevel + 2
45
- }, d(e.messageTitle), 9, ee),
45
+ }, d(e.messageTitle), 9, se),
46
46
  t("p", null, d(e.messageDescription), 1)
47
47
  ], 2)) : b("", !0)
48
- ], 8, Z));
48
+ ], 8, Y));
49
49
  }
50
- }), ae = ".right-container[data-v-3d782b51]{grid-row:1/1;grid-column:1/1}.right-container[aria-hidden=true][data-v-3d782b51]{visibility:hidden}img[data-v-3d782b51]{margin-block:.5rem}.subtitle[data-v-3d782b51]{font-size:1.25rem;font-weight:700;text-align:center}.description[data-v-3d782b51]{font-weight:700;margin-top:0;margin-bottom:0}img[data-v-3d782b51]{width:200px;height:auto}.answer-block[data-v-3d782b51]{background:#e8e8e8;margin-inline:1rem;padding:.5rem;border-radius:10px}.answer-block p[data-v-3d782b51]{margin-bottom:0}.answer-block.success[data-v-3d782b51]{background:#e8f3ef}.answer-block.fail[data-v-3d782b51]{border-radius:16px;background:#fbecec}", ie = /* @__PURE__ */ w(te, [["styles", [ae]], ["__scopeId", "data-v-3d782b51"]]), se = ["aria-disabled"], ne = /* @__PURE__ */ k({
50
+ }), le = ".right-container[data-v-3d782b51]{grid-row:1/1;grid-column:1/1}.right-container[aria-hidden=true][data-v-3d782b51]{visibility:hidden}img[data-v-3d782b51]{margin-block:.5rem}.subtitle[data-v-3d782b51]{font-size:1.25rem;font-weight:700;text-align:center}.description[data-v-3d782b51]{font-weight:700;margin-top:0;margin-bottom:0}img[data-v-3d782b51]{width:200px;height:auto}.answer-block[data-v-3d782b51]{background:#e8e8e8;margin-inline:1rem;padding:.5rem;border-radius:10px}.answer-block p[data-v-3d782b51]{margin-bottom:0}.answer-block.success[data-v-3d782b51]{background:#e8f3ef}.answer-block.fail[data-v-3d782b51]{border-radius:16px;background:#fbecec}", oe = /* @__PURE__ */ w(ne, [["styles", [le]], ["__scopeId", "data-v-3d782b51"]]), re = ["aria-disabled"], de = /* @__PURE__ */ k({
51
51
  __name: "Option.ce",
52
- props: /* @__PURE__ */ R({
52
+ props: /* @__PURE__ */ A({
53
53
  option: { type: String },
54
54
  value: { type: Number },
55
55
  readonly: { type: Boolean }
@@ -59,7 +59,7 @@ const W = {
59
59
  }),
60
60
  emits: ["update:modelValue"],
61
61
  setup(a, { expose: e }) {
62
- const l = A(a, "modelValue"), u = y(!1), i = h(() => l.value.length === 3 && !u.value || a.readonly);
62
+ const l = R(a, "modelValue"), u = y(!1), i = _(() => l.value.length === 3 && !u.value || a.readonly);
63
63
  function v(m) {
64
64
  if (i.value) {
65
65
  m.preventDefault();
@@ -78,13 +78,13 @@ const W = {
78
78
  onClick: v,
79
79
  "aria-disabled": i.value,
80
80
  "onUpdate:modelValue": g[0] || (g[0] = (p) => u.value = p)
81
- }, null, 8, se), [
82
- [M, u.value]
81
+ }, null, 8, re), [
82
+ [j, u.value]
83
83
  ]),
84
84
  V(d(m.option), 1)
85
85
  ], 2));
86
86
  }
87
- }), le = ".selected[data-v-a067b43a]{background:#f7f5ff}.disabled[data-v-a067b43a]{cursor:not-allowed;background:#efefef}.disabled.selected[data-v-a067b43a]{background:#d6d5dd}", oe = /* @__PURE__ */ w(ne, [["styles", [le]], ["__scopeId", "data-v-a067b43a"]]), re = ["aria-level"], de = { class: "container" }, ce = { class: "left-side" }, ue = ["aria-level"], fe = { class: "left-side__description" }, me = { class: "left-side__action" }, pe = ["aria-disabled"], ge = {
87
+ }), ce = ".selected[data-v-a067b43a]{background:#f7f5ff}.disabled[data-v-a067b43a]{cursor:not-allowed;background:#efefef}.disabled.selected[data-v-a067b43a]{background:#d6d5dd}", ue = /* @__PURE__ */ w(de, [["styles", [ce]], ["__scopeId", "data-v-a067b43a"]]), fe = ["aria-level"], me = { class: "container" }, pe = { class: "left-side" }, ge = ["aria-level"], ve = { class: "left-side__description" }, be = { class: "left-side__action" }, _e = ["aria-disabled"], he = {
88
88
  key: 0,
89
89
  "aria-hidden": "true",
90
90
  width: "20",
@@ -92,14 +92,14 @@ const W = {
92
92
  viewBox: "0 0 20 20",
93
93
  fill: "none",
94
94
  xmlns: "http://www.w3.org/2000/svg"
95
- }, ve = {
95
+ }, ye = {
96
96
  id: "optionsSelectedInfo",
97
97
  class: "left-side__lower-legend",
98
98
  "aria-hidden": "true"
99
- }, be = {
99
+ }, ke = {
100
100
  class: "right-side",
101
101
  "aria-live": "polite"
102
- }, he = /* @__PURE__ */ k({
102
+ }, Ce = /* @__PURE__ */ k({
103
103
  __name: "QcmDeepfake.ce",
104
104
  props: {
105
105
  titleLevel: { default: 2, type: Number },
@@ -110,7 +110,7 @@ const W = {
110
110
  searchDelay: { default: 2e3, type: Number }
111
111
  },
112
112
  setup(a, { expose: e }) {
113
- const l = y([]), u = [2, 4, 5], i = y("info"), v = O("optionsNode"), m = s.t("qcm-deepfake.options", { returnObjects: !0 }), g = ["👩‍🎤", "🎧", "🎤", "👩", "🎙️"], p = m.map((n, o) => `${g[o]} ${n}`), $ = p.filter((n, o) => u.includes(o + 1)), N = [
113
+ const l = y([]), u = [2, 4, 5], i = y("info"), v = M("optionsNode"), m = s.t("qcm-deepfake.options", { returnObjects: !0 }), g = ["👩‍🎤", "🎧", "🎤", "👩", "🎙️"], p = m.map((n, o) => `${g[o]} ${n}`), $ = p.filter((n, o) => u.includes(o + 1)), N = [
114
114
  {
115
115
  type: "info",
116
116
  image: a.infoImage,
@@ -135,43 +135,43 @@ const W = {
135
135
  image: a.searchImage,
136
136
  title: s.t("qcm-deepfake.searchTitle")
137
137
  }
138
- ], q = h(() => l.value.length !== 3), T = h(() => i.value === "info" ? s.t("qcm-deepfake.generateVideo") : s.t("qcm-deepfake.restart")), D = h(() => i.value === "info" ? s.t("qcm-deepfake.generateVideoInfo", { count: u.length - l.value.length }) : s.t("qcm-deepfake.restartInfo"));
139
- function L() {
140
- return i.value === "info" ? z() : I();
138
+ ], q = _(() => l.value.length !== 3), T = _(() => i.value === "info" ? s.t("qcm-deepfake.generateVideo") : s.t("qcm-deepfake.restart")), D = _(() => i.value === "info" ? s.t("qcm-deepfake.generateVideoInfo", { count: u.length - l.value.length }) : s.t("qcm-deepfake.restartInfo"));
139
+ function z() {
140
+ return i.value === "info" ? B() : I();
141
141
  }
142
142
  function I() {
143
143
  v.value.forEach((n) => {
144
144
  n.isChecked = !1;
145
145
  }), l.value = [], i.value = "info";
146
146
  }
147
- async function z() {
147
+ async function B() {
148
148
  if (q.value) return;
149
149
  const n = l.value.every((o) => $.includes(o.trim()));
150
150
  i.value = "search", await new Promise((o) => setTimeout(o, a.searchDelay)), n ? i.value = "success" : i.value = "fail";
151
151
  }
152
152
  return e({
153
153
  reset: I
154
- }), (n, o) => (r(), c(_, null, [
154
+ }), (n, o) => (r(), c(h, null, [
155
155
  t("div", {
156
156
  role: "heading",
157
157
  "aria-level": n.titleLevel,
158
158
  class: "title"
159
- }, d(n.$t("qcm-deepfake.title")), 9, re),
160
- t("div", de, [
161
- t("form", ce, [
159
+ }, d(n.$t("qcm-deepfake.title")), 9, fe),
160
+ t("div", me, [
161
+ t("form", pe, [
162
162
  t("div", {
163
163
  class: "left-side__subtitle",
164
164
  role: "heading",
165
165
  "aria-level": n.titleLevel + 1
166
- }, d(n.$t("qcm-deepfake.in")), 9, ue),
166
+ }, d(n.$t("qcm-deepfake.in")), 9, ge),
167
167
  t("fieldset", null, [
168
- t("legend", fe, d(n.$t("qcm-deepfake.selectThreeElements")), 1),
169
- (r(!0), c(_, null, S(j(p), (f, x) => (r(), G(oe, {
168
+ t("legend", ve, d(n.$t("qcm-deepfake.selectThreeElements")), 1),
169
+ (r(!0), c(h, null, S(G(p), (f, x) => (r(), O(ue, {
170
170
  ref_for: !0,
171
171
  ref_key: "optionsNode",
172
172
  ref: v,
173
173
  modelValue: l.value,
174
- "onUpdate:modelValue": o[0] || (o[0] = (B) => l.value = B),
174
+ "onUpdate:modelValue": o[0] || (o[0] = (L) => l.value = L),
175
175
  key: x,
176
176
  class: "left-side__options",
177
177
  option: f,
@@ -179,26 +179,26 @@ const W = {
179
179
  readonly: i.value !== "info"
180
180
  }, null, 8, ["modelValue", "option", "value", "readonly"]))), 128))
181
181
  ]),
182
- t("div", me, [
182
+ t("div", be, [
183
183
  t("button", {
184
- onClick: P(L, ["prevent"]),
184
+ onClick: P(z, ["prevent"]),
185
185
  class: C(["left-side__button", { generate: i.value === "info" }]),
186
186
  "aria-disabled": q.value,
187
187
  "aria-describedby": "optionsSelectedInfo"
188
188
  }, [
189
- i.value !== "info" ? (r(), c("svg", ge, [...o[1] || (o[1] = [
189
+ i.value !== "info" ? (r(), c("svg", he, [...o[1] || (o[1] = [
190
190
  t("path", {
191
191
  d: "M9.98002 16.836C8.07572 16.836 6.4603 16.1728 5.13377 14.8462C3.80725 13.5197 3.14398 11.9043 3.14398 9.99998C3.14398 8.09568 3.80725 6.48026 5.13377 5.15373C6.4603 3.8272 8.07572 3.16394 9.98002 3.16394C10.9684 3.16394 11.9108 3.36686 12.8073 3.77269C13.7038 4.17839 14.4713 4.76095 15.1096 5.5204V4.03707C15.1096 3.7897 15.1933 3.58234 15.3606 3.41498C15.528 3.24762 15.7354 3.16394 15.9827 3.16394C16.2302 3.16394 16.4377 3.24762 16.605 3.41498C16.7724 3.58234 16.8561 3.7897 16.8561 4.03707V8.29352C16.8561 8.5595 16.7645 8.78394 16.5815 8.96686C16.3986 9.14991 16.1741 9.24144 15.9081 9.24144H11.6417C11.3957 9.24144 11.1895 9.15776 11.0231 8.9904C10.8568 8.82304 10.7736 8.61561 10.7736 8.36811C10.7736 8.12213 10.8572 7.91595 11.0246 7.74956C11.192 7.58318 11.3993 7.49998 11.6467 7.49998H14.2438C13.7993 6.74207 13.199 6.14589 12.4427 5.71144C11.6866 5.277 10.8657 5.05977 9.98002 5.05977C8.6078 5.05977 7.44141 5.54005 6.48086 6.50061C5.52016 7.4613 5.03982 8.62776 5.03982 9.99998C5.03982 11.3722 5.52016 12.5387 6.48086 13.4994C7.44141 14.4599 8.6078 14.9402 9.98002 14.9402C10.8879 14.9402 11.7218 14.713 12.4817 14.2587C13.2416 13.8046 13.8384 13.1963 14.2723 12.4339C14.402 12.2189 14.5845 12.0692 14.8198 11.9848C15.055 11.9005 15.2895 11.8996 15.5236 11.9823C15.7733 12.0651 15.9534 12.2275 16.064 12.4696C16.1744 12.7118 16.1675 12.9401 16.0431 13.1544C15.4537 14.2688 14.6221 15.161 13.5484 15.831C12.4745 16.501 11.285 16.836 9.98002 16.836Z",
192
192
  fill: "#122647"
193
193
  }, null, -1)
194
194
  ])])) : b("", !0),
195
195
  V(" " + d(T.value), 1)
196
- ], 10, pe),
197
- t("p", ve, d(D.value), 1)
196
+ ], 10, _e),
197
+ t("p", ye, d(D.value), 1)
198
198
  ])
199
199
  ]),
200
- t("div", be, [
201
- (r(), c(_, null, S(N, (f) => F(ie, {
200
+ t("div", ke, [
201
+ (r(), c(h, null, S(N, (f) => F(oe, {
202
202
  key: f,
203
203
  "title-level": n.titleLevel,
204
204
  type: f.type,
@@ -212,9 +212,9 @@ const W = {
212
212
  ])
213
213
  ], 64));
214
214
  }
215
- }), _e = "legend,label,p,div[role=heading]{font-family:Nunito,Roboto,sans-serif;color:#253858}", ye = ".container[data-v-a7a0f3aa]{display:flex;gap:.8rem}.title[data-v-a7a0f3aa]{font-size:1.75rem;font-weight:700;text-align:center;margin-bottom:16px}.left-side[data-v-a7a0f3aa]{min-width:60%;border:solid 1px #b0d3f4;background:#fff;padding:.8rem;border-radius:10px}.left-side__lower-legend[data-v-a7a0f3aa]{font-size:.875rem;color:#5e6c84}.left-side__subtitle[data-v-a7a0f3aa]{font-size:1.25rem;font-weight:700;text-align:center}.left-side__options[data-v-a7a0f3aa]{display:flex;border:solid 1px #5e6c84;padding:.6rem;border-radius:5px;gap:.5rem}.left-side__description[data-v-a7a0f3aa]{font-weight:700}.left-side__button[data-v-a7a0f3aa]{display:flex;gap:.5rem;align-items:center;border:none;padding:.6rem 1.5rem;background:#ffcb33;color:#000;border-radius:25px;font-weight:700;cursor:pointer}.left-side__button.generate[data-v-a7a0f3aa]{background:#613fdd;color:#fff}.left-side__button[aria-disabled=true][data-v-a7a0f3aa]{cursor:not-allowed;background:#d3d3d3}.left-side__action[data-v-a7a0f3aa]{display:flex;flex-direction:column;align-items:center;text-align:center}.right-side[data-v-a7a0f3aa]{display:grid;border:solid 1px #b0d3f4;background:#fff;padding:.8rem;text-align:center;border-radius:10px}fieldset[data-v-a7a0f3aa]{border:none;display:flex;flex-direction:column;gap:.8rem}@media (max-width: 770px){.container[data-v-a7a0f3aa]{flex-wrap:wrap}.left-side[data-v-a7a0f3aa],.right-side[data-v-a7a0f3aa]{width:100%}}", ke = /* @__PURE__ */ w(he, [["styles", [_e, ye]], ["__scopeId", "data-v-a7a0f3aa"]]);
216
- Q(/* @__PURE__ */ Object.assign({ "./locales/fr.json": W })).catch((a) => console.error(a));
217
- window.customElements.define("qcm-deepfake", H(ke, {
215
+ }), we = "legend,label,p,div[role=heading]{font-family:Nunito,Roboto,sans-serif;color:#253858}", qe = ".container[data-v-a7a0f3aa]{display:flex;gap:.8rem}.title[data-v-a7a0f3aa]{font-size:1.75rem;font-weight:700;text-align:center;margin-bottom:16px}.left-side[data-v-a7a0f3aa]{min-width:60%;border:solid 1px #b0d3f4;background:#fff;padding:.8rem;border-radius:10px}.left-side__lower-legend[data-v-a7a0f3aa]{font-size:.875rem;color:#5e6c84}.left-side__subtitle[data-v-a7a0f3aa]{font-size:1.25rem;font-weight:700;text-align:center}.left-side__options[data-v-a7a0f3aa]{display:flex;border:solid 1px #5e6c84;padding:.6rem;border-radius:5px;gap:.5rem}.left-side__description[data-v-a7a0f3aa]{font-weight:700}.left-side__button[data-v-a7a0f3aa]{display:flex;gap:.5rem;align-items:center;border:none;padding:.6rem 1.5rem;background:#ffcb33;color:#000;border-radius:25px;font-weight:700;cursor:pointer}.left-side__button.generate[data-v-a7a0f3aa]{background:#613fdd;color:#fff}.left-side__button[aria-disabled=true][data-v-a7a0f3aa]{cursor:not-allowed;background:#d3d3d3}.left-side__action[data-v-a7a0f3aa]{display:flex;flex-direction:column;align-items:center;text-align:center}.right-side[data-v-a7a0f3aa]{display:grid;border:solid 1px #b0d3f4;background:#fff;padding:.8rem;text-align:center;border-radius:10px}fieldset[data-v-a7a0f3aa]{border:none;display:flex;flex-direction:column;gap:.8rem}@media (max-width: 770px){.container[data-v-a7a0f3aa]{flex-wrap:wrap}.left-side[data-v-a7a0f3aa],.right-side[data-v-a7a0f3aa]{width:100%}}", Ie = /* @__PURE__ */ w(Ce, [["styles", [we, qe]], ["__scopeId", "data-v-a7a0f3aa"]]);
216
+ Q(/* @__PURE__ */ Object.assign({ "./locales/en.json": J, "./locales/es.json": W, "./locales/fr.json": Z, "./locales/it.json": K, "./locales/nl.json": X })).catch((a) => console.error(a));
217
+ window.customElements.define("qcm-deepfake", H(Ie, {
218
218
  configureApp(a) {
219
219
  s.changeLanguage(document?.documentElement?.lang || navigator.language), a.use(U, { i18next: s });
220
220
  }
@@ -1,4 +1,4 @@
1
- import { s as Le, n as we, a as ve, i as Re } from "./_plugin-vue_export-helper-BihDtAH2.js";
1
+ import { s as Le, n as we, a as ve, i as Re } from "./_plugin-vue_export-helper-CWFVtOvN.js";
2
2
  const d = (o) => typeof o == "string", V = () => {
3
3
  let o, e;
4
4
  const t = new Promise((i, s) => {
package/dist/index.js CHANGED
@@ -9,3 +9,4 @@ import "./components/pix-cursor.ce.js.js";
9
9
  import "./components/complete-phrase.ce.js.js";
10
10
  import "./components/qcm-deepfake.ce.js.js";
11
11
  import "./components/pix-article.ce.js.js";
12
+ import "./components/calcul-impact.ce.js.js";
package/dist/metadata.js CHANGED
@@ -2,28 +2,30 @@ const a = {
2
2
  isInteractive: !0
3
3
  }, s = !0, i = {
4
4
  isInteractive: s
5
- }, n = !0, c = {
6
- isInteractive: n
7
- }, o = !1, _ = {
5
+ }, c = !0, n = {
6
+ isInteractive: c
7
+ }, o = !0, _ = {
8
8
  isInteractive: o
9
9
  }, r = !1, l = {
10
10
  isInteractive: r
11
- }, m = !0, v = {
11
+ }, m = !1, v = {
12
12
  isInteractive: m
13
13
  }, I = !0, p = {
14
14
  isInteractive: I
15
- }, g = !1, d = {
15
+ }, g = !0, u = {
16
16
  isInteractive: g
17
- }, u = !1, j = {
18
- isInteractive: u
19
- }, b = !0, $ = {
17
+ }, b = !1, d = {
20
18
  isInteractive: b
19
+ }, j = !1, $ = {
20
+ isInteractive: j
21
21
  }, x = !0, f = {
22
22
  isInteractive: x
23
- }, q = /* @__PURE__ */ Object.assign({ "./complete-phrase/complete-phrase.metadata.json": a, "./image-quiz/image-quiz.metadata.json": i, "./image-quiz/image-quizzes.metadata.json": c, "./message-conversation/message-conversation.metadata.json": _, "./pix-article/pix-article.metadata.json": l, "./pix-carousel/pix-carousel.metadata.json": v, "./pix-cursor/pix-cursor.metadata.json": p, "./pix-llm/llm-compare-messages.metadata.json": d, "./pix-llm/llm-messages.metadata.json": j, "./pix-llm/llm-prompt-select.metadata.json": $, "./qcm-deepfake/qcm-deepfake.metadata.json": f }), z = Object.fromEntries(Object.entries(q).map(([t, e]) => [
23
+ }, q = !0, z = {
24
+ isInteractive: q
25
+ }, O = /* @__PURE__ */ Object.assign({ "./calcul-impact/calcul-impact.metadata.json": a, "./complete-phrase/complete-phrase.metadata.json": i, "./image-quiz/image-quiz.metadata.json": n, "./image-quiz/image-quizzes.metadata.json": _, "./message-conversation/message-conversation.metadata.json": l, "./pix-article/pix-article.metadata.json": v, "./pix-carousel/pix-carousel.metadata.json": p, "./pix-cursor/pix-cursor.metadata.json": u, "./pix-llm/llm-compare-messages.metadata.json": d, "./pix-llm/llm-messages.metadata.json": $, "./pix-llm/llm-prompt-select.metadata.json": f, "./qcm-deepfake/qcm-deepfake.metadata.json": z }), h = Object.fromEntries(Object.entries(O).map(([t, e]) => [
24
26
  t.replace(/^.*\/([^/]+)\.metadata\.json$/, "$1"),
25
27
  e
26
28
  ]));
27
29
  export {
28
- z as metadata
30
+ h as metadata
29
31
  };
package/dist/schema.js CHANGED
@@ -1,5 +1,7 @@
1
1
  import e from "joi";
2
2
  const n = e.object({
3
+ titleLevel: e.number().required()
4
+ }), a = e.object({
3
5
  titleLevel: e.number().required(),
4
6
  listOfProbabilityBarsLists: e.array().items(
5
7
  e.array().items(
@@ -28,18 +30,22 @@ const n = e.object({
28
30
  response: e.string().optional()
29
31
  }).required()
30
32
  ).required()
31
- }).required(), a = e.object({
33
+ }).required(), u = e.object({
32
34
  quizzes: e.array().items(i).required()
33
- }).required(), d = e.object({
35
+ }).required(), c = e.object({
34
36
  title: e.string().required(),
35
37
  messages: e.array().items(
36
38
  e.object({
37
39
  userName: e.string().required(),
38
40
  direction: e.string().valid("incoming", "outgoing").required(),
39
- content: e.string().required()
41
+ content: e.string().required(),
42
+ image: e.object({
43
+ src: e.string().required(),
44
+ alt: e.string().required()
45
+ }).unknown(!0).optional()
40
46
  })
41
47
  ).required()
42
- }).required(), u = e.object({
48
+ }).required(), d = e.object({
43
49
  titleLevel: e.number().required(),
44
50
  title: e.string().required(),
45
51
  author: e.string().required(),
@@ -47,11 +53,11 @@ const n = e.object({
47
53
  paragraphs: e.array().items(e.string().required()),
48
54
  highlightedSentence: e.string().required(),
49
55
  colorOfHighlightSentence: e.string().required()
50
- }), c = e.object({
56
+ }), l = e.object({
51
57
  name: e.string().allow("").required(),
52
58
  attribution: e.string().allow("").required(),
53
59
  url: e.string().allow("").required()
54
- }), l = e.object({
60
+ }), m = e.object({
55
61
  title: e.string().required(),
56
62
  description: e.string().allow("").required(),
57
63
  displayWidth: e.number().min(0).optional(),
@@ -59,12 +65,12 @@ const n = e.object({
59
65
  src: e.string().required(),
60
66
  alt: e.string().required()
61
67
  }).required(),
62
- license: c.optional()
63
- }), m = e.object({
68
+ license: l.optional()
69
+ }), g = e.object({
64
70
  title: e.string().required(),
65
71
  description: e.string().allow("").required(),
66
72
  text: e.string().required()
67
- }), g = e.object({
73
+ }), q = e.object({
68
74
  title: e.string().required(),
69
75
  description: e.string().allow("").required(),
70
76
  displayHeight: e.number().min(0).optional(),
@@ -73,13 +79,13 @@ const n = e.object({
73
79
  src: e.string().required(),
74
80
  alt: e.string().required()
75
81
  }).required()
76
- }), q = e.object({
82
+ }), b = e.object({
77
83
  type: e.string().valid("image", "image-text", "text").required(),
78
84
  slides: e.alternatives().conditional("type", {
79
85
  switch: [
80
- { is: "image", then: e.array().items(l) },
81
- { is: "image-text", then: e.array().items(g) },
82
- { is: "text", then: e.array().items(m) }
86
+ { is: "image", then: e.array().items(m) },
87
+ { is: "image-text", then: e.array().items(q) },
88
+ { is: "text", then: e.array().items(g) }
83
89
  ]
84
90
  }).required(),
85
91
  aspectRatio: e.number().min(0).required(),
@@ -87,7 +93,7 @@ const n = e.object({
87
93
  titleLevel: e.number().integer().min(0).max(6).optional(),
88
94
  disableAnimation: e.boolean().required(),
89
95
  disableLoop: e.boolean().optional()
90
- }).meta({ title: "pix-carousel" }).required(), b = e.object({
96
+ }).meta({ title: "pix-carousel" }).required(), p = e.object({
91
97
  options: e.array().items(e.object({
92
98
  label: e.string().required(),
93
99
  feedback: e.object({
@@ -98,25 +104,25 @@ const n = e.object({
98
104
  }), r = e.object({
99
105
  title: e.string().required(),
100
106
  llmName: e.string().required()
101
- }).required(), p = e.object({
107
+ }).required(), _ = e.object({
102
108
  direction: e.string().valid("inbound").required(),
103
109
  content: e.string().required()
104
- }).required(), _ = e.object({
110
+ }).required(), j = e.object({
105
111
  direction: e.string().valid("outbound").required(),
106
112
  content: e.string().required()
107
- }).required(), j = e.object({
113
+ }).required(), h = e.object({
108
114
  conversation1: r,
109
115
  conversation2: r,
110
116
  userName: e.string().required(),
111
117
  messages: e.array().items(
112
- e.alternatives(_, e.array().items(p).min(2).max(2).required())
118
+ e.alternatives(j, e.array().items(_).min(2).max(2).required())
113
119
  ).required()
114
120
  }).required(), t = e.object({
115
121
  direction: e.string().valid("inbound", "outbound").required(),
116
122
  content: e.string().required()
117
- }), h = e.object({
123
+ }), v = e.object({
118
124
  messages: e.array().items(t.required()).required()
119
- }).required(), v = e.object({
125
+ }).required(), x = e.object({
120
126
  speed: e.number().default(20).min(0).optional(),
121
127
  messages: e.array().items(t).required(),
122
128
  prompts: e.array().items(
@@ -125,16 +131,16 @@ const n = e.object({
125
131
  response: e.string().required()
126
132
  }).required()
127
133
  ).required()
128
- }).required(), x = e.object({
134
+ }).required(), y = e.object({
129
135
  titleLevel: e.number().optional(),
130
136
  successImage: e.string().required(),
131
137
  failImage: e.string().required(),
132
138
  infoImage: e.string().required(),
133
139
  searchImage: e.string().required()
134
- }), y = /* @__PURE__ */ Object.assign({ "./complete-phrase/complete-phrase.schema.js": n, "./image-quiz/image-quiz.schema.js": i, "./image-quiz/image-quizzes.schema.js": a, "./message-conversation/message-conversation.schema.js": d, "./pix-article/pix-article.schema.js": u, "./pix-carousel/pix-carousel.schema.js": q, "./pix-cursor/pix-cursor.schema.js": b, "./pix-llm/llm-compare-messages.schema.js": j, "./pix-llm/llm-messages.schema.js": h, "./pix-llm/llm-prompt-select.schema.js": v, "./qcm-deepfake/qcm-deepfake.schema.js": x }), w = Object.fromEntries(Object.entries(y).map(([s, o]) => [
140
+ }), f = /* @__PURE__ */ Object.assign({ "./calcul-impact/calcul-impact.schema.js": n, "./complete-phrase/complete-phrase.schema.js": a, "./image-quiz/image-quiz.schema.js": i, "./image-quiz/image-quizzes.schema.js": u, "./message-conversation/message-conversation.schema.js": c, "./pix-article/pix-article.schema.js": d, "./pix-carousel/pix-carousel.schema.js": b, "./pix-cursor/pix-cursor.schema.js": p, "./pix-llm/llm-compare-messages.schema.js": h, "./pix-llm/llm-messages.schema.js": v, "./pix-llm/llm-prompt-select.schema.js": x, "./qcm-deepfake/qcm-deepfake.schema.js": y }), S = Object.fromEntries(Object.entries(f).map(([s, o]) => [
135
141
  s.replace(/^.*\/([^/]+)\.schema\.js$/, "$1"),
136
142
  o
137
143
  ]));
138
144
  export {
139
- w as schema
145
+ S as schema
140
146
  };
@@ -1,4 +1,4 @@
1
- import { u as t, p as s } from "./_plugin-vue_export-helper-BihDtAH2.js";
1
+ import { u as t, p as s } from "./_plugin-vue_export-helper-CWFVtOvN.js";
2
2
  const a = Symbol("shadowRoot");
3
3
  function r() {
4
4
  const o = t();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@1024pix/epreuves-components",
3
- "version": "1.1.0",
3
+ "version": "1.2.1",
4
4
  "description": "A collection of interactive components to be used in Pix challenges or modules",
5
5
  "exports": {
6
6
  ".": "./dist/index.js",