@1024pix/epreuves-components 0.10.2 → 1.0.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,5 +1,5 @@
1
- import { a as B, r as N, z as I, c as d, o as m, A as b, B as f, q as g, x as y, f as h, m as q, t as x, _ as P, v as p, C as L, D as F, F as k, b as O, e as A } from "./_plugin-vue_export-helper-BsbHZhhs.js";
2
- function M(i, u = T) {
1
+ import { a as B, r as N, z as I, c as d, o as m, A as b, B as f, q as g, x as y, f as h, m as j, t as z, _ as L, v as p, C as q, D as M, F as k, b as T, e as F } from "./_plugin-vue_export-helper-DGDsC3jx.js";
2
+ function O(i, u = A) {
3
3
  const a = [...i];
4
4
  for (let n = a.length - 1; n > 0; n--) {
5
5
  const l = u() % (n + 1);
@@ -7,10 +7,10 @@ function M(i, u = T) {
7
7
  }
8
8
  return a;
9
9
  }
10
- function T() {
10
+ function A() {
11
11
  return Math.floor(Math.random() * 2 ** 32);
12
12
  }
13
- const D = ["aria-labelledby", "aria-selected", "tabindex"], K = { key: 0 }, Q = ["id"], R = ["id"], E = /* @__PURE__ */ B({
13
+ const D = ["aria-labelledby", "aria-selected", "tabindex"], H = { key: 0 }, K = ["id"], Q = ["id"], R = /* @__PURE__ */ B({
14
14
  __name: "ImageOption.ce",
15
15
  props: {
16
16
  choice: { type: Object },
@@ -43,22 +43,22 @@ const D = ["aria-labelledby", "aria-selected", "tabindex"], K = { key: 0 }, Q =
43
43
  t[3] || (t[3] = b(f((r) => o.$emit("next"), ["stop", "prevent"]), ["down", "right"]))
44
44
  ]
45
45
  }, [
46
- o.choice.image ? (m(), d("figure", K, [
47
- h("img", q(o.choice.image, {
46
+ o.choice.image ? (m(), d("figure", H, [
47
+ h("img", j(o.choice.image, {
48
48
  class: o.imageClass,
49
49
  alt: ""
50
50
  }), null, 16),
51
51
  h("figcaption", {
52
52
  class: y(o.nameClass),
53
53
  id: g(s)
54
- }, x(o.choice.name), 11, Q)
54
+ }, z(o.choice.name), 11, K)
55
55
  ])) : (m(), d("span", {
56
56
  key: 1,
57
57
  id: g(s)
58
- }, x(o.choice.name), 9, R))
58
+ }, z(o.choice.name), 9, Q))
59
59
  ], 42, D));
60
60
  }
61
- }), V = '.image-option{display:flex;position:relative;flex-direction:column;align-items:center;justify-content:center;margin:.5rem;border:solid 2px #c1c7d0;border-radius:10px;background:#fff;width:calc(20% - 2em);min-width:150px;padding:1rem}.image-option--max4{width:calc(25% - 2em);min-width:175px}.image-option--max3{width:calc(33% - 2em)}.image-option--max2{width:calc(50% - 2em);min-width:300px}.image-option--max1{width:calc(100% - 4em);min-width:300px}.image-option:hover{cursor:pointer;box-shadow:0 3px 10px #0000001a;transform:scale(1.04);transition:transform ease-in .1s}.image-option:focus{outline:none;box-shadow:5px 5px #ffbe00,-5px 5px #ffbe00,5px -5px #ffbe00,-5px -5px #ffbe00}.image-option[aria-selected=true]{border-color:#3d68ff}.image-option[aria-selected=true]:after{content:"";position:absolute;width:calc(100% + 2px);height:calc(100% + 2px);background:#3d68ff4d;border-radius:10px;z-index:3}.image-option figure{align-items:center;display:flex;flex-direction:column;height:100%;justify-content:center;margin:0;text-align:center;width:100%}.image-option figure img{max-width:100%;height:auto}.image-option figure img.icon{max-height:100px;width:auto}.image-option figure img.medium{max-width:50%;height:auto}.image-option figure figcaption{margin:1ex}', G = /* @__PURE__ */ P(E, [["styles", [V]]]), H = ["id"], J = ["aria-multiselectable", "aria-labelledby"], U = /* @__PURE__ */ B({
61
+ }), E = '.image-option{display:flex;position:relative;flex-direction:column;align-items:center;justify-content:center;margin:.5rem;border:solid 2px #c1c7d0;border-radius:10px;background:#fff;width:calc(20% - 2em);min-width:150px;padding:1rem}.image-option--max4{width:calc(25% - 2em);min-width:175px}.image-option--max3{width:calc(33% - 2em)}.image-option--max2{width:calc(50% - 2em);min-width:300px}.image-option--max1{width:calc(100% - 4em);min-width:300px}.image-option:hover{cursor:pointer;box-shadow:0 3px 10px #0000001a;transform:scale(1.04);transition:transform ease-in .1s}.image-option:focus{outline:none;box-shadow:5px 5px #ffbe00,-5px 5px #ffbe00,5px -5px #ffbe00,-5px -5px #ffbe00}.image-option[aria-selected=true]{border-color:#3d68ff}.image-option[aria-selected=true]:after{content:"";position:absolute;width:calc(100% + 2px);height:calc(100% + 2px);background:#3d68ff4d;border-radius:10px;z-index:3}.image-option figure{align-items:center;display:flex;flex-direction:column;height:100%;justify-content:center;margin:0;text-align:center;width:100%}.image-option figure img{max-width:100%;height:auto}.image-option figure img.icon{max-height:100px;width:auto}.image-option figure img.medium{max-width:50%;height:auto}.image-option figure figcaption{margin:1ex}', V = /* @__PURE__ */ L(R, [["styles", [E]]]), G = ["id", "innerHTML"], J = ["aria-multiselectable", "aria-labelledby"], U = /* @__PURE__ */ B({
62
62
  __name: "ImageQuiz.ce",
63
63
  props: {
64
64
  multiple: { type: Boolean, default: !1 },
@@ -72,25 +72,26 @@ const D = ["aria-labelledby", "aria-selected", "tabindex"], K = { key: 0 }, Q =
72
72
  },
73
73
  emits: ["answer"],
74
74
  setup(i, { emit: u }) {
75
- const a = u, n = p(() => i.hideChoicesName ? "sr-only" : ""), l = p(() => i.orderChoices ? i.choices : M(i.choices)), s = N(new Array(i.choices.length).fill(!1)), o = p(() => l.value.filter((e, $) => s.value[$])), t = p(() => o.value.map((e) => e.response ?? e.name).sort().join(",")), r = I();
76
- L(t, () => {
75
+ const a = u, n = p(() => i.hideChoicesName ? "sr-only" : ""), l = p(() => i.orderChoices ? i.choices : O(i.choices)), s = N(new Array(i.choices.length).fill(!1)), o = p(() => l.value.filter((e, C) => s.value[C])), t = p(() => o.value.map((e) => e.response ?? e.name).sort().join(",")), r = I();
76
+ q(t, () => {
77
77
  a("answer", t.value);
78
78
  }, { immediate: !1 });
79
- const S = p(() => {
79
+ const P = p(() => {
80
80
  const e = s.value.indexOf(!0);
81
81
  return e === -1 ? 0 : e;
82
- }), v = F("options");
83
- function w(e) {
82
+ }), x = M("options");
83
+ function v(e) {
84
84
  i.multiple || s.value.fill(!1), s.value[e] = !s.value[e];
85
85
  }
86
- function C(e) {
87
- e = (e + i.choices.length) % i.choices.length, i.multiple || w(e), v.value[e].focus();
86
+ function w(e) {
87
+ e = (e + i.choices.length) % i.choices.length, i.multiple || v(e), x.value[e].focus();
88
88
  }
89
- return (e, $) => (m(), d(k, null, [
89
+ return (e, C) => (m(), d(k, null, [
90
90
  h("label", {
91
91
  id: g(r),
92
- class: y(["image-quiz-label", { "sr-only": !e.showName }])
93
- }, x(e.name), 11, H),
92
+ class: y(["image-quiz-label", { "sr-only": !e.showName }]),
93
+ innerHTML: e.name
94
+ }, null, 10, G),
94
95
  h("div", {
95
96
  role: "listbox",
96
97
  class: "image-quiz",
@@ -98,25 +99,25 @@ const D = ["aria-labelledby", "aria-selected", "tabindex"], K = { key: 0 }, Q =
98
99
  "aria-labelledby": g(r),
99
100
  "aria-orientation": "horizontal"
100
101
  }, [
101
- (m(!0), d(k, null, O(l.value, (j, c) => (m(), A(G, {
102
+ (m(!0), d(k, null, T(l.value, (S, c) => (m(), F(V, {
102
103
  ref_for: !0,
103
104
  ref_key: "options",
104
- ref: v,
105
- choice: j,
105
+ ref: x,
106
+ choice: S,
106
107
  "max-choices-per-line": e.maxChoicesPerLine,
107
108
  key: c,
108
109
  "name-class": n.value,
109
110
  "image-class": i.imageChoicesSize,
110
111
  selected: s.value[c],
111
- "tab-focusable": c === S.value,
112
- onToggle: (z) => w(c),
113
- onNext: (z) => C(c + 1),
114
- onPrevious: (z) => C(c - 1)
112
+ "tab-focusable": c === P.value,
113
+ onToggle: ($) => v(c),
114
+ onNext: ($) => w(c + 1),
115
+ onPrevious: ($) => w(c - 1)
115
116
  }, null, 8, ["choice", "max-choices-per-line", "name-class", "image-class", "selected", "tab-focusable", "onToggle", "onNext", "onPrevious"]))), 128))
116
117
  ], 8, J)
117
118
  ], 64));
118
119
  }
119
- }), W = "*{box-sizing:border-box}.image-quiz-label{font-size:1.25rem;margin:1rem 0;display:inline-block}.image-quiz{display:flex;flex-wrap:wrap;justify-content:space-around}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);border:0}", Y = /* @__PURE__ */ P(U, [["styles", [W]]]);
120
+ }), W = "*{box-sizing:border-box}.image-quiz-label{font-size:1.25rem;margin:1rem 0;display:inline-block}.image-quiz{display:flex;flex-wrap:wrap;justify-content:space-around}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);border:0}", Y = /* @__PURE__ */ L(U, [["styles", [W]]]);
120
121
  export {
121
122
  Y as I
122
123
  };
@@ -1,5 +1,5 @@
1
- import { _ as b, c as n, o as t, f as s, a as m, v as d, x as g, e as r, y as l, g as u, t as p } from "./_plugin-vue_export-helper-BsbHZhhs.js";
2
- import { L as f } from "./Loading.ce-Dd1vKOPv.js";
1
+ import { _ as b, c as n, o as t, f as s, a as m, v as d, x as g, e as r, y as l, g as u, t as p } from "./_plugin-vue_export-helper-DGDsC3jx.js";
2
+ import { L as f } from "./Loading.ce-DFM6f_1v.js";
3
3
  const h = {}, C = {
4
4
  height: "1rem",
5
5
  width: "auto",
@@ -1,4 +1,4 @@
1
- import { _ as o, c as r, o as a, f as s } from "./_plugin-vue_export-helper-BsbHZhhs.js";
1
+ import { _ as o, c as r, o as a, f as s } from "./_plugin-vue_export-helper-DGDsC3jx.js";
2
2
  const n = ".loader{width:8px;aspect-ratio:1;border-radius:50%;animation:l5 1s infinite linear alternate;transform:translate(100%)}.sr-only{border:0;clip:rect(0,0,0,0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px}@keyframes l5{0%{box-shadow:13px 0 #000,-13px 0 #0002;background:#000}33%{box-shadow:13px 0 #000,-13px 0 #0002;background:#0002}66%{box-shadow:13px 0 #0002,-13px 0 #000;background:#0002}to{box-shadow:13px 0 #0002,-13px 0 #000;background:#000}}@media (prefers-reduced-motion: reduce){.loader{display:none}}", t = {}, d = {
3
3
  class: "loader",
4
4
  role: "alert"
@@ -1,4 +1,4 @@
1
- import { a as f, r as g, z as w, c as h, o as i, f as l, x as C, q as b, t as m, m as x, B as y, H as _, _ as s, e as c, I as k } from "./_plugin-vue_export-helper-BsbHZhhs.js";
1
+ import { a as f, r as g, z as w, c as h, o as i, f as l, x as C, q as b, t as m, m as x, B as y, G as _, _ as s, e as c, H as k } from "./_plugin-vue_export-helper-DGDsC3jx.js";
2
2
  const $ = { class: "tooltip-container" }, B = ["id"], L = ["aria-labelledby", "aria-disabled"], z = /* @__PURE__ */ f({
3
3
  inheritAttrs: !1,
4
4
  __name: "ButtonTooltip.ce",
@@ -68,7 +68,7 @@ function F(a, t) {
68
68
  }, null, -1)
69
69
  ])]);
70
70
  }
71
- const I = /* @__PURE__ */ s(A, [["render", F]]), Z = /* @__PURE__ */ f({
71
+ const Z = /* @__PURE__ */ s(A, [["render", F]]), j = /* @__PURE__ */ f({
72
72
  __name: "NavigationButton.ce",
73
73
  props: {
74
74
  disabled: { type: Boolean },
@@ -86,13 +86,13 @@ const I = /* @__PURE__ */ s(A, [["render", F]]), Z = /* @__PURE__ */ f({
86
86
  disabled: t.disabled
87
87
  }, {
88
88
  default: k(() => [
89
- t.direction === "next" ? (i(), c(Y, { key: 0 })) : (i(), c(I, { key: 1 }))
89
+ t.direction === "next" ? (i(), c(Y, { key: 0 })) : (i(), c(Z, { key: 1 }))
90
90
  ]),
91
91
  _: 1
92
92
  }, 8, ["tooltip-position", "label", "disabled"]));
93
93
  }
94
- }), j = "*{--pix-neutral-800: #253858;color:var(--pix-neutral-800)}.button{border-radius:100%;padding:4px;width:32px;height:32px;background:transparent;border:1px var(--pix-neutral-800) solid;aspect-ratio:1/1;fill:var(--pix-neutral-800);display:flex;align-items:center;justify-content:center}.button:hover{background:#c3d0ff}.button:active{background:#cdd1d9}", D = /* @__PURE__ */ s(Z, [["styles", [j]]]);
94
+ }), q = "*{--pix-neutral-800: #253858;color:var(--pix-neutral-800)}.button{border-radius:100%;padding:4px;width:32px;height:32px;background:transparent;border:1px var(--pix-neutral-800) solid;aspect-ratio:1/1;fill:var(--pix-neutral-800);display:flex;align-items:center;justify-content:center}.button:hover{background:#c3d0ff}.button:active{background:#cdd1d9}", E = /* @__PURE__ */ s(j, [["styles", [q]]]);
95
95
  export {
96
96
  H as B,
97
- D as N
97
+ E as N
98
98
  };
@@ -4151,11 +4151,11 @@ export {
4151
4151
  Cl as D,
4152
4152
  Ur as E,
4153
4153
  he as F,
4154
- Fs as G,
4155
- Al as H,
4156
- Fr as I,
4157
- Sl as J,
4158
- Nl as K,
4154
+ Al as G,
4155
+ Fr as H,
4156
+ Sl as I,
4157
+ Nl as J,
4158
+ Fs as K,
4159
4159
  Hl as _,
4160
4160
  Hr as a,
4161
4161
  El as b,
@@ -1,33 +1,33 @@
1
- import { a as w, c as i, o as a, f as e, t as s, G as C, _ as x, r as p, g, F as f, b as v, x as P, e as B, d as A } from "../_plugin-vue_export-helper-BsbHZhhs.js";
2
- import { a as M, i as h, b as z } from "../i18n-DFZmIYUK.js";
3
- import { L as y } from "../LLMMessage.ce-BFW5_GlC.js";
4
- const N = {
1
+ import { a as w, c as n, o as a, f as e, t as i, K as C, _ as x, r as p, g, F as f, b as v, x as P, e as B, d as A } from "../_plugin-vue_export-helper-DGDsC3jx.js";
2
+ import { a as M, i as h, b as j } from "../i18n-b8OapH7K.js";
3
+ import { L as y } from "../LLMMessage.ce--tBITfVq.js";
4
+ const z = {}, N = {}, I = {
5
5
  "complete-phrase": { iaSuggestions: "🧠 Suggestions de l'IA", explanation: "La barre indique la probabilité de chaque mot. Plus elle est longue, plus le mot est probable dans ce contexte.", ariaLabelDescription: "Le mot {{name}} a une probabilité de {{percent}}%", clickHereButton: "Cliquez ici pour voir ce que l'IA va compléter", successfullyCompletedSentence: "🎉 Phrase complétée avec succès !" }
6
- }, I = { class: "probability-bar" }, T = { "aria-hidden": "true" }, q = { class: "sr-only" }, E = /* @__PURE__ */ w({
6
+ }, T = {}, q = {}, E = { class: "probability-bar" }, D = { "aria-hidden": "true" }, F = { class: "sr-only" }, O = /* @__PURE__ */ w({
7
7
  __name: "ProbabilityBar.ce",
8
8
  props: {
9
9
  name: { type: String },
10
10
  percent: { type: Number }
11
11
  },
12
- setup(n) {
13
- return (o, r) => (a(), i("div", I, [
14
- e("p", T, s(o.name), 1),
15
- e("p", q, s(o.$t("complete-phrase.ariaLabelDescription", { name: o.name, percent: o.percent })), 1),
12
+ setup(r) {
13
+ return (o, s) => (a(), n("div", E, [
14
+ e("p", D, i(o.name), 1),
15
+ e("p", F, i(o.$t("complete-phrase.ariaLabelDescription", { name: o.name, percent: o.percent })), 1),
16
16
  e("div", {
17
17
  style: C(`width: ${o.percent}%`),
18
18
  class: "probability-bar__percent",
19
19
  "aria-hidden": "true"
20
20
  }, null, 4),
21
- r[0] || (r[0] = e("div", {
21
+ s[0] || (s[0] = e("div", {
22
22
  class: "probability-bar__background",
23
23
  "aria-hidden": "true"
24
24
  }, null, -1))
25
25
  ]));
26
26
  }
27
- }), D = ".probability-bar[data-v-f5414745]{position:relative;padding-bottom:10px;border-bottom:1px solid #cbcbcb}.probability-bar__percent[data-v-f5414745]{position:absolute;left:0;z-index:2;height:5px;border-radius:5px;background-color:#235386}.probability-bar__background[data-v-f5414745]{position:absolute;left:0;z-index:1;width:100%;height:5px;border-radius:5px;background-color:#92a1b2}.probability-bar p[data-v-f5414745]{margin-bottom:0}.sr-only[data-v-f5414745]{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}", F = /* @__PURE__ */ x(E, [["styles", [D]], ["__scopeId", "data-v-f5414745"]]), O = { class: "container" }, R = { class: "container__left-side" }, j = { class: "container__conversation" }, G = ["aria-describedby"], H = {
27
+ }), R = ".probability-bar[data-v-f5414745]{position:relative;padding-bottom:10px;border-bottom:1px solid #cbcbcb}.probability-bar__percent[data-v-f5414745]{position:absolute;left:0;z-index:2;height:5px;border-radius:5px;background-color:#235386}.probability-bar__background[data-v-f5414745]{position:absolute;left:0;z-index:1;width:100%;height:5px;border-radius:5px;background-color:#92a1b2}.probability-bar p[data-v-f5414745]{margin-bottom:0}.sr-only[data-v-f5414745]{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}", H = /* @__PURE__ */ x(O, [["styles", [R]], ["__scopeId", "data-v-f5414745"]]), V = { class: "container" }, W = { class: "container__left-side" }, G = { class: "container__conversation" }, K = ["aria-describedby"], J = {
28
28
  key: 1,
29
29
  class: "container__successSentence"
30
- }, V = { class: "container__right-side" }, W = ["aria-level"], J = { "aria-hidden": "true" }, K = { class: "probabilities" }, Q = ["id", "aria-hidden"], U = /* @__PURE__ */ w({
30
+ }, Q = { class: "container__right-side" }, U = ["aria-level"], X = { "aria-hidden": "true" }, Y = { class: "probabilities" }, Z = ["id", "aria-hidden"], ee = /* @__PURE__ */ w({
31
31
  __name: "CompletePhrase.ce",
32
32
  props: {
33
33
  listOfProbabilityBarsLists: { type: Array },
@@ -36,21 +36,21 @@ const N = {
36
36
  wordsToAdd: { type: Array },
37
37
  titleLevel: { type: Number }
38
38
  },
39
- setup(n, { expose: o }) {
40
- const r = n, l = p(0), u = p(r.llmMessage), b = p(!1), d = p(r.wordsToAdd);
39
+ setup(r, { expose: o }) {
40
+ const s = r, l = p(0), u = p(s.llmMessage), _ = p(!1), c = p(s.wordsToAdd);
41
41
  function k() {
42
- b.value = !1, u.value = r.llmMessage, d.value = r.wordsToAdd, l.value = 0;
42
+ _.value = !1, u.value = s.llmMessage, c.value = s.wordsToAdd, l.value = 0;
43
43
  }
44
44
  function S() {
45
- d.value.length === 1 && (b.value = !0), l.value += 1;
46
- const [t, ...m] = d.value;
47
- d.value = m, u.value += `<span style="font-weight: bold;">${t} </span>`;
45
+ c.value.length === 1 && (_.value = !0), l.value += 1;
46
+ const [t, ...b] = c.value;
47
+ c.value = b, u.value += `<span style="font-weight: bold;">${t} </span>`;
48
48
  }
49
49
  return o({
50
50
  reset: k
51
- }), (t, m) => (a(), i("div", O, [
52
- e("div", R, [
53
- e("div", j, [
51
+ }), (t, b) => (a(), n("div", V, [
52
+ e("div", W, [
53
+ e("div", G, [
54
54
  g(y, {
55
55
  class: "container__message",
56
56
  message: { content: t.userMessage, direction: "outbound" }
@@ -60,41 +60,41 @@ const N = {
60
60
  message: { content: u.value, direction: "inbound" }
61
61
  }, null, 8, ["message"])
62
62
  ]),
63
- b.value ? (a(), i("p", H, s(t.$t("complete-phrase.successfullyCompletedSentence")), 1)) : (a(), i("button", {
63
+ _.value ? (a(), n("p", J, i(t.$t("complete-phrase.successfullyCompletedSentence")), 1)) : (a(), n("button", {
64
64
  key: 0,
65
65
  onClick: S,
66
66
  class: "container__button",
67
67
  "aria-describedby": `currentProbability${l.value}`
68
- }, s(t.$t("complete-phrase.clickHereButton")), 9, G))
68
+ }, i(t.$t("complete-phrase.clickHereButton")), 9, K))
69
69
  ]),
70
- e("div", V, [
70
+ e("div", Q, [
71
71
  e("div", {
72
72
  class: "container__title",
73
73
  role: "header",
74
74
  "aria-level": t.titleLevel
75
- }, s(t.$t("complete-phrase.iaSuggestions")), 9, W),
76
- e("p", J, s(t.$t("complete-phrase.explanation")), 1),
77
- e("div", K, [
78
- (a(!0), i(f, null, v(t.listOfProbabilityBarsLists, ($, c) => (a(), i("div", {
79
- class: P(["probability", { hidden: c !== l.value }]),
80
- key: c,
81
- id: `currentProbability${c}`,
82
- "aria-hidden": c !== l.value
75
+ }, i(t.$t("complete-phrase.iaSuggestions")), 9, U),
76
+ e("p", X, i(t.$t("complete-phrase.explanation")), 1),
77
+ e("div", Y, [
78
+ (a(!0), n(f, null, v(t.listOfProbabilityBarsLists, ($, d) => (a(), n("div", {
79
+ class: P(["probability", { hidden: d !== l.value }]),
80
+ key: d,
81
+ id: `currentProbability${d}`,
82
+ "aria-hidden": d !== l.value
83
83
  }, [
84
- (a(!0), i(f, null, v($, (_, L) => (a(), B(F, {
85
- name: _.name,
86
- percent: _.percent,
84
+ (a(!0), n(f, null, v($, (m, L) => (a(), B(H, {
85
+ name: m.name,
86
+ percent: m.percent,
87
87
  key: L
88
88
  }, null, 8, ["name", "percent"]))), 128))
89
- ], 10, Q))), 128))
89
+ ], 10, Z))), 128))
90
90
  ])
91
91
  ])
92
92
  ]));
93
93
  }
94
- }), X = "[data-v-f0837864]{--pix-neutral-800: #253858;font-family:Nunito,Roboto,sans-serif;color:var(--pix-neutral-800)}.container[data-v-f0837864]{display:grid;grid-row:auto;gap:10px}.container__conversation[data-v-f0837864]{display:flex;flex-direction:column;background:#fff;padding:1rem;border-radius:10px;margin-bottom:1rem;border:solid 1px lightgrey}.container__title[data-v-f0837864]{font-size:1.2rem;font-weight:700}.container .probabilities[data-v-f0837864]{display:grid}.container .probability[data-v-f0837864]{grid-row:1;grid-column:1}.container__right-side[data-v-f0837864]{grid-column:2;grid-row:1}.container__right-side h2[data-v-f0837864]{margin-top:0}.container__right-side .hidden[data-v-f0837864]{visibility:hidden;grid-row:1;grid-column:1}.container__left-side[data-v-f0837864]{grid-column:1;grid-row:1}.container__message[data-v-f0837864]{margin-bottom:20px}.container__successSentence[data-v-f0837864]{width:90%;background-color:#cec3f4;padding:.8rem .5rem;border-radius:10px}.container__button[data-v-f0837864]{width:90%;border:none;padding:1.2rem 1rem;background:#355ac4;color:#fff;border-radius:10px;font-weight:700}.container__button[data-v-f0837864]:hover{background:#2b3c77;cursor:pointer}@media (max-width: 600px){.container[data-v-f0837864]{display:flex;flex-wrap:wrap}}", Y = /* @__PURE__ */ x(U, [["styles", [X]], ["__scopeId", "data-v-f0837864"]]);
95
- M(/* @__PURE__ */ Object.assign({ "./locales/fr.json": N })).catch((n) => console.error(n));
96
- window.customElements.define("complete-phrase", A(Y, {
97
- configureApp(n) {
98
- h.changeLanguage(document?.documentElement?.lang || navigator.language), n.use(z, { i18next: h });
94
+ }), te = "[data-v-f0837864]{--pix-neutral-800: #253858;font-family:Nunito,Roboto,sans-serif;color:var(--pix-neutral-800)}.container[data-v-f0837864]{display:grid;grid-row:auto;gap:10px}.container__conversation[data-v-f0837864]{display:flex;flex-direction:column;background:#fff;padding:1rem;border-radius:10px;margin-bottom:1rem;border:solid 1px lightgrey}.container__title[data-v-f0837864]{font-size:1.2rem;font-weight:700}.container .probabilities[data-v-f0837864]{display:grid}.container .probability[data-v-f0837864]{grid-row:1;grid-column:1}.container__right-side[data-v-f0837864]{grid-column:2;grid-row:1}.container__right-side h2[data-v-f0837864]{margin-top:0}.container__right-side .hidden[data-v-f0837864]{visibility:hidden;grid-row:1;grid-column:1}.container__left-side[data-v-f0837864]{grid-column:1;grid-row:1}.container__message[data-v-f0837864]{margin-bottom:20px}.container__successSentence[data-v-f0837864]{width:90%;background-color:#cec3f4;padding:.8rem .5rem;border-radius:10px}.container__button[data-v-f0837864]{width:90%;border:none;padding:1.2rem 1rem;background:#355ac4;color:#fff;border-radius:10px;font-weight:700}.container__button[data-v-f0837864]:hover{background:#2b3c77;cursor:pointer}@media (max-width: 600px){.container[data-v-f0837864]{display:flex;flex-wrap:wrap}}", ae = /* @__PURE__ */ x(ee, [["styles", [te]], ["__scopeId", "data-v-f0837864"]]);
95
+ M(/* @__PURE__ */ Object.assign({ "./locales/en.json": z, "./locales/es.json": N, "./locales/fr.json": I, "./locales/it.json": T, "./locales/nl.json": q })).catch((r) => console.error(r));
96
+ window.customElements.define("complete-phrase", A(ae, {
97
+ configureApp(r) {
98
+ h.changeLanguage(document?.documentElement?.lang || navigator.language), r.use(j, { i18next: h });
99
99
  }
100
100
  }));
@@ -1,4 +1,4 @@
1
- import { d as e } from "../_plugin-vue_export-helper-BsbHZhhs.js";
2
- import { I as m } from "../ImageQuiz.ce-BM9vWQ_H.js";
1
+ import { d as e } from "../_plugin-vue_export-helper-DGDsC3jx.js";
2
+ import { I as m } from "../ImageQuiz.ce-B7shuhfQ.js";
3
3
  window.customElements.define("image-quiz", e(m));
4
4
  window.customElements.define("qcu-image", e(m));
@@ -1,5 +1,5 @@
1
- import { a as l, r as f, w, c as z, o as t, b as p, e as d, m as g, F as v, d as _ } from "../_plugin-vue_export-helper-BsbHZhhs.js";
2
- import { I as A } from "../ImageQuiz.ce-BM9vWQ_H.js";
1
+ import { a as l, r as f, w, c as z, o as t, b as p, e as d, m as g, F as v, d as _ } from "../_plugin-vue_export-helper-DGDsC3jx.js";
2
+ import { I as A } from "../ImageQuiz.ce-B7shuhfQ.js";
3
3
  const h = /* @__PURE__ */ l({
4
4
  __name: "ImageQuizzes.ce",
5
5
  props: {
@@ -1,6 +1,6 @@
1
- import { a as m, c as r, o as a, f as e, t as n, F as t, b as p, g as i, _ as c, d as g } from "../_plugin-vue_export-helper-BsbHZhhs.js";
2
- import { L as l } from "../LLMMessage.ce-BFW5_GlC.js";
3
- import { p as u } from "../shadow-dom-Bt1Mf11i.js";
1
+ import { a as m, c as r, o as a, f as e, t as n, F as t, b as p, g as i, _ as c, d as g } from "../_plugin-vue_export-helper-DGDsC3jx.js";
2
+ import { L as l } from "../LLMMessage.ce--tBITfVq.js";
3
+ import { p as u } from "../shadow-dom-CTg-8Iam.js";
4
4
  const f = {
5
5
  class: "header",
6
6
  "aria-hidden": "true"
@@ -1,6 +1,6 @@
1
- import { a as m, k as i, l as p, c as o, o as e, F as d, b as g, e as u, _ as f, d as h } from "../_plugin-vue_export-helper-BsbHZhhs.js";
2
- import { L as _ } from "../LLMMessage.ce-BFW5_GlC.js";
3
- import { p as x } from "../shadow-dom-Bt1Mf11i.js";
1
+ import { a as m, k as i, l as p, c as o, o as e, F as d, b as g, e as u, _ as f, d as h } from "../_plugin-vue_export-helper-DGDsC3jx.js";
2
+ import { L as _ } from "../LLMMessage.ce--tBITfVq.js";
3
+ import { p as x } from "../shadow-dom-CTg-8Iam.js";
4
4
  const b = {
5
5
  class: "llm-messages",
6
6
  "aria-live": "polite"
@@ -1,4 +1,4 @@
1
- import { a as v, r as c, h, c as i, o as d, g as y, f as l, j as w, F as f, b as k, t as S, _ as C, d as L } from "../_plugin-vue_export-helper-BsbHZhhs.js";
1
+ import { a as v, r as c, h, c as i, o as d, g as y, f as l, j as w, F as f, b as k, t as S, _ as C, d as L } from "../_plugin-vue_export-helper-DGDsC3jx.js";
2
2
  import "./llm-messages.ce.js.js";
3
3
  const N = { class: "prompt-select" }, P = { class: "prompt-select__options" }, B = ["disabled", "onClick"], E = /* @__PURE__ */ v({
4
4
  __name: "LLMPromptSelect.ce",
@@ -1,5 +1,5 @@
1
- import { a as k, r as b, v as D, E as C, c as r, o as t, x, y as _, f as y, j as w, t as h, g as $, F as v, b as M, _ as N, D as E, e as B, d as T } from "../_plugin-vue_export-helper-BsbHZhhs.js";
2
- import { L as V } from "../Loading.ce-Dd1vKOPv.js";
1
+ import { a as k, r as b, v as D, E as C, c as r, o as t, x, y as _, f as y, j as w, t as h, g as $, F as v, b as M, _ as N, D as E, e as B, d as T } from "../_plugin-vue_export-helper-DGDsC3jx.js";
2
+ import { L as V } from "../Loading.ce-DFM6f_1v.js";
3
3
  const F = ["part"], L = {
4
4
  key: 1,
5
5
  class: "message__loader message__content",
@@ -1,5 +1,5 @@
1
- import { a as d, c as n, o as r, f as a, t as i, F as l, b as h, q as u, _ as p, d as _ } from "../_plugin-vue_export-helper-BsbHZhhs.js";
2
- import { a as m, i as o, b as f } from "../i18n-DFZmIYUK.js";
1
+ import { a as d, c as n, o as r, f as a, t as i, F as l, b as h, q as u, _ as p, d as _ } from "../_plugin-vue_export-helper-DGDsC3jx.js";
2
+ import { a as m, i as o, b as f } from "../i18n-b8OapH7K.js";
3
3
  const y = {
4
4
  "pix-article": { byAuthor: "Par {{author}}" }
5
5
  }, v = ["titleLevel"], S = { class: "article__metadata" }, b = { class: "article__author" }, L = ["innerHTML"], x = /* @__PURE__ */ d({
@@ -1,6 +1,6 @@
1
- import { a as _, v, c as a, o as n, x as j, f as l, y as z, H, j as E, t as m, _ as h, r as y, C as R, g as f, G as $, z as I, I as x, q as u, F as S, b as k, e as A, d as V } from "../_plugin-vue_export-helper-BsbHZhhs.js";
2
- import { a as D, i as N, b as P } from "../i18n-DFZmIYUK.js";
3
- import { B, N as T } from "../NavigationButton.ce-CXaE9Mh7.js";
1
+ import { a as _, v, c as a, o as n, x as j, f as l, y as z, G as H, j as E, t as m, _ as h, r as y, C as R, g as f, K as $, z as V, H as x, q as u, F as S, b as k, e as A, d as D } from "../_plugin-vue_export-helper-DGDsC3jx.js";
2
+ import { a as I, i as N, b as P } from "../i18n-b8OapH7K.js";
3
+ import { B, N as T } from "../NavigationButton.ce-CF4O2FoQ.js";
4
4
  const F = {
5
5
  "pix-carousel": { license: "Image license", next: "Next", of: "{{ currentSlide }} of {{ slideLength }}", previous: "Previous", slide: "Slide", title: "Carousel" }
6
6
  }, G = {
@@ -11,7 +11,7 @@ const F = {
11
11
  "pix-carousel": { license: "Licenza d'immagine", next: "Avanti", of: "{{ currentSlide }} di {{ slideLength }}", previous: "Precedente", slide: "Diapositiva", title: "Galleria" }
12
12
  }, q = {
13
13
  "pix-carousel": { license: "Afbeeldingslicentie", next: "Volgende", of: "{{ currentSlide }} van {{ slideLength }}", previous: "Vorige", slide: "Dia", title: "Carrousel" }
14
- }, W = ["aria-level"], J = ["innerHTML"], K = {
14
+ }, K = ["aria-level"], W = ["innerHTML"], J = {
15
15
  key: 1,
16
16
  class: "description"
17
17
  }, Q = /* @__PURE__ */ _({
@@ -40,12 +40,12 @@ const F = {
40
40
  }, [
41
41
  H(s.$slots, "pagination"),
42
42
  E(" " + m(s.title), 1)
43
- ], 8, W),
43
+ ], 8, K),
44
44
  i.value ? (n(), a("div", {
45
45
  key: 0,
46
46
  class: "description",
47
47
  innerHTML: s.description
48
- }, null, 8, J)) : s.description ? (n(), a("p", K, m(s.description), 1)) : z("", !0)
48
+ }, null, 8, W)) : s.description ? (n(), a("p", J, m(s.description), 1)) : z("", !0)
49
49
  ], 2));
50
50
  }
51
51
  }), U = ".slide-info{transform:translate(100vw);grid-column:1;grid-row:1;height:fit-content;border-left:1px solid transparent;padding-left:16px;padding-top:4px}.slide-info p{margin-top:8px;margin-bottom:0}.slide-info.active{border-left-color:gray;transform:translate(0)}.slide-info .title{display:flex;align-items:center;font-size:1.25rem;font-family:Nunito,sans-serif;font-style:normal;font-weight:700;line-height:1.75rem;gap:8px;min-height:24px}.slide-info .description{font-size:.875rem}.slide-info .description ul li,.slide-info .description ol li{margin-left:1rem}@media only screen and (max-width: 576px){.slide-info.active{border:none;padding-left:0}}", M = /* @__PURE__ */ h(Q, [["styles", [U]]]), X = ["aria-hidden", "aria-roledescription", "aria-label"], Y = ["alt", "src"], ee = {
@@ -170,7 +170,7 @@ const ve = /* @__PURE__ */ h(fe, [["render", ge]]), he = ["aria-roledescription"
170
170
  function b(o) {
171
171
  w.value = o, c.value = (c.value - o + i.slides.length) % i.slides.length;
172
172
  }
173
- const g = I();
173
+ const g = V();
174
174
  return (o, r) => (n(), a("section", {
175
175
  "aria-roledescription": o.$t("pix-carousel.title")
176
176
  }, [
@@ -253,8 +253,8 @@ const ve = /* @__PURE__ */ h(fe, [["render", ge]]), he = ["aria-roledescription"
253
253
  ], 8, he));
254
254
  }
255
255
  }), Le = "*{--pix-neutral-0: white;--pix-neutral-100: #cdd1d9;--pix-neutral-800: #253858;--pix-primary-100: #cec3f4;--pix-primary-300: #957ee8;--pix-primary-700: #452d9d;--pix-primary-900: #291a5d;font-family:Roboto,sans-serif;color:var(--pix-neutral-800)}section{display:flex;flex-direction:column;gap:12px;overflow:hidden;padding-top:12px}section .slides{display:grid;grid-template-columns:32px auto 32px;gap:16px;width:100%}section .slides .slide{grid-row:1;grid-column:2}section .slides .carousel__nav{height:80%;margin:auto 0;background:var(--pix-primary-100);fill:var(--pix-neutral-800);border:none;cursor:pointer;z-index:9;padding:0}section .slides .carousel__nav:hover{background:var(--pix-primary-300);fill:var(--pix-neutral-0)}section .slides .carousel__nav:active,section .slides .carousel__nav:focus,section .slides .carousel__nav:focus-visible{background:var(--pix-primary-700);fill:var(--pix-neutral-0)}section .slides .carousel__nav:focus,section .slides .carousel__nav:focus-visible{outline-offset:-4px;outline:1px solid var(--pix-neutral-0)}section .slides .carousel__nav.previous{border-top-right-radius:1rem;border-bottom-right-radius:1rem}section .slides .carousel__nav.next{border-top-left-radius:1rem;border-bottom-left-radius:1rem}section .slides .carousel__nav.disabled,section .slides .carousel__nav.disabled:hover{background:transparent;cursor:not-allowed;fill:var(--pix-neutral-100)}.footer{padding:16px 56px;display:flex;align-items:start;gap:16px}.footer .footer-separator{border-left:1px solid;width:1px}.footer .control{display:flex;gap:8px;align-items:center}.footer .tooltip-container button.disabled{fill:var(--pix-neutral-100)}.footer .slide-info-container{display:grid;grid-template-columns:1fr}.footer .slide-info-container .pagination{display:flex;align-items:center;font-size:.75rem;font-family:Roboto,sans-serif;font-weight:400;color:var(--pix-primary-900);border-radius:50px;padding:3px 12px;background-color:var(--pix-primary-100);height:18px;text-wrap:nowrap}.footer .info{display:grid;overflow:hidden}.sr-only{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}@media only screen and (max-width: 576px){section .slides{grid-template-columns:0 100% 0;gap:0}section .slides .carousel__nav{display:none}.footer{flex-direction:column;padding:16px}.footer .footer-separator{display:none}}", $e = /* @__PURE__ */ h(Ce, [["styles", [Le]]]);
256
- D(/* @__PURE__ */ Object.assign({ "./locales/en.json": F, "./locales/es.json": G, "./locales/fr.json": O, "./locales/it.json": Z, "./locales/nl.json": q })).catch((t) => console.error(t));
257
- window.customElements.define("pix-carousel", V($e, {
256
+ I(/* @__PURE__ */ Object.assign({ "./locales/en.json": F, "./locales/es.json": G, "./locales/fr.json": O, "./locales/it.json": Z, "./locales/nl.json": q })).catch((t) => console.error(t));
257
+ window.customElements.define("pix-carousel", D($e, {
258
258
  configureApp(t) {
259
259
  N.changeLanguage(document?.documentElement?.lang || navigator.language), t.use(P, { i18next: N });
260
260
  }
@@ -1,7 +1,7 @@
1
- import { a as S, r as y, z as k, v as m, h as A, c as a, o as i, f as s, J as E, q as c, t as u, F as f, b, K as H, g, x as C, I as L, y as F, B as P, _ as D, d as q } from "../_plugin-vue_export-helper-BsbHZhhs.js";
2
- import { a as G, i as w, b as J } from "../i18n-DFZmIYUK.js";
3
- import { N as j } from "../NavigationButton.ce-CXaE9Mh7.js";
4
- const K = {}, R = {}, U = {
1
+ import { a as H, r as y, z as k, v as m, h as S, c as a, o as i, f as s, I as A, q as c, t as u, F as f, b, J as E, g, x as C, H as L, y as F, B as P, _ as D, d as q } from "../_plugin-vue_export-helper-DGDsC3jx.js";
2
+ import { a as G, i as w, b as J } from "../i18n-b8OapH7K.js";
3
+ import { N as j } from "../NavigationButton.ce-CF4O2FoQ.js";
4
+ const R = {}, U = {}, K = {
5
5
  "pix-cursor": { confirm: "Valider", next: "Suivant", previous: "Précédent", selectAnOption: "Sélectionnez une option", youHaveChosen: "Vous avez choisi : { choice }" }
6
6
  }, Q = {}, W = {}, X = ["for"], Y = {
7
7
  class: "visible-options",
@@ -12,7 +12,7 @@ const K = {}, R = {}, U = {
12
12
  }, le = {
13
13
  key: 0,
14
14
  class: "confirm"
15
- }, ce = ["innerHTML", "aria-hidden"], de = /* @__PURE__ */ S({
15
+ }, ce = ["innerHTML", "aria-hidden"], de = /* @__PURE__ */ H({
16
16
  __name: "PixCursor.ce",
17
17
  props: {
18
18
  options: { type: Array }
@@ -37,7 +37,7 @@ const K = {}, R = {}, U = {
37
37
  return M({
38
38
  reset: T
39
39
  }), (t, x) => {
40
- const V = A("i18next");
40
+ const V = S("i18next");
41
41
  return i(), a("form", {
42
42
  class: "pix-cursor",
43
43
  onSubmit: P(z, ["prevent"])
@@ -61,7 +61,7 @@ const K = {}, R = {}, U = {
61
61
  label: n.label
62
62
  }, u(n.label), 9, oe))), 128))
63
63
  ], 8, ee),
64
- E(s("input", {
64
+ A(s("input", {
65
65
  "onUpdate:modelValue": x[0] || (x[0] = (n) => r.value = n),
66
66
  id: c(v),
67
67
  type: "range",
@@ -70,7 +70,7 @@ const K = {}, R = {}, U = {
70
70
  max: t.options.length - 1,
71
71
  disabled: o.value
72
72
  }, null, 8, te), [
73
- [H, r.value]
73
+ [E, r.value]
74
74
  ]),
75
75
  s("div", ne, [
76
76
  g(j, {
@@ -129,7 +129,7 @@ const K = {}, R = {}, U = {
129
129
  };
130
130
  }
131
131
  }), ue = "[data-v-58e704c5]{--pix-neutral-800: #253858;font-family:Nunito,sans-serif;color:var(--pix-neutral-800)}.pix-cursor[data-v-58e704c5]{display:flex;flex-direction:column;justify-content:center;margin:auto;padding:2rem;gap:1rem;overflow:hidden}.pix-cursor p[data-v-58e704c5]{text-align:center;font-size:1.1rem}.pix-cursor .chosen-option[data-v-58e704c5]{font-weight:700}.pix-cursor .visible-options[data-v-58e704c5]{display:flex;justify-content:space-between;margin:0;padding:0}.pix-cursor .visible-options li[data-v-58e704c5]{cursor:pointer;list-style:none}.pix-cursor input[data-v-58e704c5]{width:100%}.pix-cursor .confirm[data-v-58e704c5]{padding:.75rem 1.5rem;border-radius:8px;cursor:pointer;font-weight:600;font-size:1.25rem;letter-spacing:1.1;width:fit-content;margin:auto;border:none;color:#fff;background:#4075ff;grid-row:1;grid-column:1}.pix-cursor .confirm[data-v-58e704c5]:hover{background:#355ac4;transition:background ease .1s}.pix-cursor .navigation-container[data-v-58e704c5]{display:flex;justify-content:center;align-items:center;gap:1rem}.pix-cursor .navigation-container .chosen-text-container[data-v-58e704c5]{display:grid}.pix-cursor .navigation-container .chosen-text-container p[data-v-58e704c5]{grid-row:1;grid-column:1}.pix-cursor .navigation-container .chosen-text-container p.hidden[data-v-58e704c5]{transform:translate(100vw)}.pix-cursor .footer[data-v-58e704c5]{display:grid;grid-template-columns:auto;align-items:center;justify-content:center}.pix-cursor .feedback[data-v-58e704c5]{padding:1rem 1.2rem;border-left:solid 4px;border-radius:8px;grid-column:1;grid-row:1;text-align:start;margin:0}.pix-cursor .feedback.hidden[data-v-58e704c5]{visibility:hidden;transform:translate(100vw)}.pix-cursor .feedback.good[data-v-58e704c5]{background:#e8f5e9;border-left-color:#4caf51}.pix-cursor .feedback.bad[data-v-58e704c5]{background:#ffebee;border-left-color:#f44337}.pix-cursor .feedback.neutral[data-v-58e704c5]{background:#e8f6ff;border-left-color:#464ee0}.pix-cursor .feedback.close[data-v-58e704c5]{background:#fff8e1;border-left-color:#ffc108}", pe = /* @__PURE__ */ D(de, [["styles", [ue]], ["__scopeId", "data-v-58e704c5"]]);
132
- G(/* @__PURE__ */ Object.assign({ "./locales/en.json": K, "./locales/es.json": R, "./locales/fr.json": U, "./locales/it.json": Q, "./locales/nl.json": W })).catch((d) => console.error(d));
132
+ G(/* @__PURE__ */ Object.assign({ "./locales/en.json": R, "./locales/es.json": U, "./locales/fr.json": K, "./locales/it.json": Q, "./locales/nl.json": W })).catch((d) => console.error(d));
133
133
  window.customElements.define("pix-cursor", q(pe, {
134
134
  configureApp(d) {
135
135
  w.changeLanguage(document?.documentElement?.lang || navigator.language), d.use(J, { i18next: w });
@@ -1,4 +1,4 @@
1
- import { s as Le, n as we, a as ve, i as Re } from "./_plugin-vue_export-helper-BsbHZhhs.js";
1
+ import { s as Le, n as we, a as ve, i as Re } from "./_plugin-vue_export-helper-DGDsC3jx.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/metadata.js CHANGED
@@ -1,35 +1,27 @@
1
- const t = {
1
+ const s = {
2
2
  isInteractive: !0
3
- }, e = !0, a = {
4
- isInteractive: e
5
- }, s = !1, i = {
6
- isInteractive: s
7
- }, c = !1, n = {
8
- isInteractive: c
9
- }, r = !1, o = {
3
+ }, a = !0, i = {
4
+ isInteractive: a
5
+ }, n = !0, c = {
6
+ isInteractive: n
7
+ }, o = !1, _ = {
8
+ isInteractive: o
9
+ }, r = !1, l = {
10
10
  isInteractive: r
11
- }, l = !0, v = {
12
- isInteractive: l
13
- }, m = !0, I = {
11
+ }, m = !0, v = {
14
12
  isInteractive: m
15
- }, p = !0, u = {
13
+ }, I = !0, g = {
14
+ isInteractive: I
15
+ }, p = !1, u = {
16
16
  isInteractive: p
17
- }, M = !0, d = {
18
- isInteractive: M
19
- }, g = !1, $ = {
20
- isInteractive: g
21
- }, x = {
22
- "image-quiz": t,
23
- "image-quizzes": a,
24
- "message-conversation": i,
25
- "llm-compare-messages": n,
26
- "llm-messages": o,
27
- "llm-prompt-select": v,
28
- "pix-carousel": I,
29
- "pix-cursor": u,
30
- "complete-phrase": d,
31
- "pix-article": $
32
- };
17
+ }, j = !1, b = {
18
+ isInteractive: j
19
+ }, d = !0, $ = {
20
+ isInteractive: d
21
+ }, x = /* @__PURE__ */ Object.assign({ "./complete-phrase/complete-phrase.metadata.json": s, "./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": g, "./pix-llm/llm-compare-messages.metadata.json": u, "./pix-llm/llm-messages.metadata.json": b, "./pix-llm/llm-prompt-select.metadata.json": $ }), f = Object.fromEntries(Object.entries(x).map(([t, e]) => [
22
+ t.replace(/^.*\/([^/]+)\.metadata\.json$/, "$1"),
23
+ e
24
+ ]));
33
25
  export {
34
- x as metadata
26
+ f as schema
35
27
  };
package/dist/schema.js ADDED
@@ -0,0 +1,134 @@
1
+ import e from "joi";
2
+ const n = e.object({
3
+ titleLevel: e.number().required(),
4
+ listOfProbabilityBarsLists: e.array().items(
5
+ e.array().items(
6
+ e.object({
7
+ name: e.string().required(),
8
+ percent: e.number().integer().required()
9
+ })
10
+ )
11
+ ).required(),
12
+ userMessage: e.string().required(),
13
+ llmMessage: e.string().required(),
14
+ wordsToAdd: e.array().items(e.string()).required()
15
+ }), i = e.object({
16
+ name: e.string().required(),
17
+ multiple: e.boolean().optional(),
18
+ maxChoicesPerLine: e.number().optional(),
19
+ hideChoicesName: e.boolean().optional(),
20
+ orderChoices: e.boolean().optional(),
21
+ imageChoicesSize: e.string().valid("icon", "medium", "large").optional(),
22
+ choices: e.array().items(
23
+ e.object({
24
+ name: e.string().required(),
25
+ image: e.object({
26
+ src: e.string().required()
27
+ }).optional().unknown(!0),
28
+ response: e.string().optional()
29
+ }).required()
30
+ ).required()
31
+ }).required(), a = e.object({
32
+ quizzes: e.array().items(i).required()
33
+ }).required(), d = e.object({
34
+ title: e.string().required(),
35
+ messages: e.array().items(
36
+ e.object({
37
+ userName: e.string().required(),
38
+ direction: e.string().valid("incoming", "outgoing").required(),
39
+ content: e.string().required()
40
+ })
41
+ ).required()
42
+ }).required(), u = e.object({
43
+ titleLevel: e.number().required(),
44
+ title: e.string().required(),
45
+ author: e.string().required(),
46
+ date: e.string().required(),
47
+ paragraphs: e.array().items(e.string().required()),
48
+ highlightedSentence: e.string().required(),
49
+ colorOfHighlightSentence: e.string().required()
50
+ }), l = e.object({
51
+ name: e.string().allow("").required(),
52
+ attribution: e.string().allow("").required(),
53
+ url: e.string().allow("").required()
54
+ }), c = e.object({
55
+ title: e.string().required(),
56
+ description: e.string().allow("").required(),
57
+ displayWidth: e.number().min(0).optional(),
58
+ image: e.object({
59
+ src: e.string().required(),
60
+ alt: e.string().required()
61
+ }).required(),
62
+ license: l.optional()
63
+ }), m = e.object({
64
+ title: e.string().required(),
65
+ description: e.string().allow("").required(),
66
+ text: e.string().required()
67
+ }), g = e.object({
68
+ title: e.string().required(),
69
+ description: e.string().allow("").required(),
70
+ displayHeight: e.number().min(0).optional(),
71
+ text: e.string().required(),
72
+ image: e.object({
73
+ src: e.string().required(),
74
+ alt: e.string().required()
75
+ }).required()
76
+ }), q = e.object({
77
+ type: e.string().valid("image", "image-text", "text").required(),
78
+ slides: e.alternatives().conditional("type", {
79
+ switch: [
80
+ { is: "image", then: e.array().items(c) },
81
+ { is: "image-text", then: e.array().items(g) },
82
+ { is: "text", then: e.array().items(m) }
83
+ ]
84
+ }).required(),
85
+ aspectRatio: e.number().min(0).required(),
86
+ randomSlides: e.boolean().required(),
87
+ titleLevel: e.number().integer().min(0).max(6).optional(),
88
+ disableAnimation: e.boolean().required(),
89
+ disableLoop: e.boolean().optional()
90
+ }).meta({ title: "pix-carousel" }).required(), b = e.object({
91
+ options: e.array().items(e.object({
92
+ label: e.string().required(),
93
+ feedback: e.object({
94
+ type: e.string().valid("bad", "neutral", "close", "good").required(),
95
+ text: e.string().required()
96
+ }).required()
97
+ }).required()).required()
98
+ }), r = e.object({
99
+ title: e.string().required(),
100
+ llmName: e.string().required()
101
+ }).required(), p = e.object({
102
+ direction: e.string().valid("inbound").required(),
103
+ content: e.string().required()
104
+ }).required(), _ = e.object({
105
+ direction: e.string().valid("outbound").required(),
106
+ content: e.string().required()
107
+ }).required(), j = e.object({
108
+ conversation1: r,
109
+ conversation2: r,
110
+ userName: e.string().required(),
111
+ messages: e.array().items(
112
+ e.alternatives(_, e.array().items(p).min(2).max(2).required())
113
+ ).required()
114
+ }).required(), t = e.object({
115
+ direction: e.string().valid("inbound", "outbound").required(),
116
+ content: e.string().required()
117
+ }), h = e.object({
118
+ messages: e.array().items(t.required()).required()
119
+ }).required(), v = e.object({
120
+ speed: e.number().default(20).min(0).optional(),
121
+ messages: e.array().items(t).required(),
122
+ prompts: e.array().items(
123
+ e.object({
124
+ prompt: e.string().required(),
125
+ response: e.string().required()
126
+ }).required()
127
+ ).required()
128
+ }).required(), x = /* @__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 }), w = Object.fromEntries(Object.entries(x).map(([s, o]) => [
129
+ s.replace(/^.*\/([^/]+)\.schema\.js$/, "$1"),
130
+ o
131
+ ]));
132
+ export {
133
+ w as metadata
134
+ };
@@ -1,4 +1,4 @@
1
- import { u as t, p as s } from "./_plugin-vue_export-helper-BsbHZhhs.js";
1
+ import { u as t, p as s } from "./_plugin-vue_export-helper-DGDsC3jx.js";
2
2
  const a = Symbol("shadowRoot");
3
3
  function r() {
4
4
  const o = t();
package/package.json CHANGED
@@ -1,11 +1,12 @@
1
1
  {
2
2
  "name": "@1024pix/epreuves-components",
3
- "version": "0.10.2",
3
+ "version": "1.0.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",
7
7
  "./components/*": "./dist/components/*.js",
8
- "./metadata": "./dist/metadata.js"
8
+ "./metadata": "./dist/metadata.js",
9
+ "./schema": "./dist/schema.js"
9
10
  },
10
11
  "files": [
11
12
  "dist/"
@@ -17,5 +18,8 @@
17
18
  "license": "MIT",
18
19
  "publishConfig": {
19
20
  "access": "public"
21
+ },
22
+ "peerDependencies": {
23
+ "joi": "^17.0.0 || ^18.0.0"
20
24
  }
21
25
  }