@1024pix/epreuves-components 2.2.2 → 2.2.5

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 (27) hide show
  1. package/dist/{LLMMessage.ce-DSYjzT9g.js → LLMMessage.ce-qbRxqNxR.js} +4 -4
  2. package/dist/{Loading.ce-DmUVuFq5.js → Loading.ce-CiVWBT3g.js} +1 -1
  3. package/dist/{NavigationButton.ce-COLdN-XJ.js → NavigationButton.ce-DF5ScHc4.js} +8 -8
  4. package/dist/{Retry-Df6WpF65.js → Retry-CuUMOAZi.js} +1 -1
  5. package/dist/{_plugin-vue_export-helper-b0PKqEbd.js → _plugin-vue_export-helper-D7ghZaw4.js} +374 -369
  6. package/dist/components/calcul-impact.ce.js.js +4 -4
  7. package/dist/components/capacity-calculation.ce.js.js +25 -25
  8. package/dist/components/clickable-image.ce.js.js +1 -1
  9. package/dist/components/complete-phrase.ce.js.js +10 -10
  10. package/dist/components/flip-cards.ce.js.js +7 -7
  11. package/dist/components/image-quiz.ce.js.js +2 -2
  12. package/dist/components/image-quizzes.ce.js.js +2 -2
  13. package/dist/components/llm-compare-messages.ce.js.js +3 -3
  14. package/dist/components/llm-messages.ce.js.js +3 -3
  15. package/dist/components/llm-prompt-select.ce.js.js +6 -6
  16. package/dist/components/message-conversation.ce.js.js +13 -13
  17. package/dist/components/mobile-shell.ce.js.js +27 -0
  18. package/dist/components/pix-article.ce.js.js +2 -2
  19. package/dist/components/pix-carousel.ce.js.js +16 -16
  20. package/dist/components/pix-cursor.ce.js.js +19 -19
  21. package/dist/components/qcm-deepfake.ce.js.js +25 -25
  22. package/dist/{i18n-DwNjk2PP.js → i18n-DX3ApBSH.js} +53 -53
  23. package/dist/{image-quiz.ce-DbLH3Dkt.js → image-quiz.ce-3HDl6Z67.js} +10 -10
  24. package/dist/index.js +1 -1
  25. package/dist/schema.js +1 -1
  26. package/dist/{shadow-dom-CG-UQz_W.js → shadow-dom-CFAQERh6.js} +1 -1
  27. package/package.json +1 -1
@@ -1,4 +1,4 @@
1
- import { d as B, r as I, J as N, c as g, o as u, H as x, q as p, x as f, y as b, a as h, m as T, A as $, _ as P, k as d, K as E, g as F, F as k, b as A, e as H, f as L } from "./_plugin-vue_export-helper-b0PKqEbd.js";
1
+ import { d as B, r as I, L, c as g, o as u, J as x, q as p, x as f, y as b, a as h, m as T, A as $, _ as N, k as d, M as E, g as F, F as k, b as A, e as H, f as P } from "./_plugin-vue_export-helper-D7ghZaw4.js";
2
2
  import { u as K, a as R } from "./normalize-props-AlmAfi_u.js";
3
3
  function D(e, s = J) {
4
4
  const a = [...e];
@@ -28,7 +28,7 @@ const V = ["aria-labelledby", "aria-selected", "tabindex"], G = { key: 0 }, U =
28
28
  o.value.focus();
29
29
  }
30
30
  s({ focus: l });
31
- const n = N();
31
+ const n = L();
32
32
  return (c, t) => (u(), g("div", {
33
33
  ref_key: "el",
34
34
  ref: o,
@@ -59,7 +59,7 @@ const V = ["aria-labelledby", "aria-selected", "tabindex"], G = { key: 0 }, U =
59
59
  }, $(e.choice.name), 9, W))
60
60
  ], 42, V));
61
61
  }
62
- }), Y = '.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}', Z = /* @__PURE__ */ P(X, [["styles", [Y]]]), _ = ["id", "innerHTML"], ee = ["aria-multiselectable", "aria-labelledby"], ie = /* @__PURE__ */ B({
62
+ }), Y = '.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}', Z = /* @__PURE__ */ N(X, [["styles", [Y]]]), _ = ["id", "innerHTML"], ee = ["aria-multiselectable", "aria-labelledby"], ie = /* @__PURE__ */ B({
63
63
  __name: "ImageQuiz.ce",
64
64
  props: {
65
65
  multiple: { type: Boolean, default: !1 },
@@ -73,7 +73,7 @@ const V = ["aria-labelledby", "aria-selected", "tabindex"], G = { key: 0 }, U =
73
73
  },
74
74
  emits: ["answer"],
75
75
  setup(e, { emit: s }) {
76
- const a = s, o = d(() => e.hideChoicesName ? "sr-only" : ""), l = d(() => e.orderChoices ? e.choices : D(e.choices)), n = I(new Array(e.choices.length).fill(!1)), c = d(() => l.value.filter((i, C) => n.value[C])), t = d(() => c.value.map((i) => i.response ?? i.name).sort().join(",")), r = N();
76
+ const a = s, o = d(() => e.hideChoicesName ? "sr-only" : ""), l = d(() => e.orderChoices ? e.choices : D(e.choices)), n = I(new Array(e.choices.length).fill(!1)), c = d(() => l.value.filter((i, C) => n.value[C])), t = d(() => c.value.map((i) => i.response ?? i.name).sort().join(",")), r = L();
77
77
  E(t, () => {
78
78
  a("answer", t.value);
79
79
  }, { immediate: !1 });
@@ -118,7 +118,7 @@ const V = ["aria-labelledby", "aria-selected", "tabindex"], G = { key: 0 }, U =
118
118
  ], 8, ee)
119
119
  ], 64));
120
120
  }
121
- }), te = "*{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-path:inset(50%);border:0}", j = /* @__PURE__ */ P(ie, [["styles", [te]]]);
121
+ }), te = "*{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-path:inset(50%);border:0}", j = /* @__PURE__ */ N(ie, [["styles", [te]]]);
122
122
  function S(e) {
123
123
  return {
124
124
  ...e,
@@ -129,12 +129,12 @@ function S(e) {
129
129
  }))
130
130
  };
131
131
  }
132
- const q = L(j);
133
- q.prototype.normalizeProps = S;
134
- window.customElements.define("image-quiz", q);
135
- const M = L(j);
132
+ const M = P(j);
136
133
  M.prototype.normalizeProps = S;
137
- window.customElements.define("qcu-image", M);
134
+ window.customElements.define("image-quiz", M);
135
+ const q = P(j);
136
+ q.prototype.normalizeProps = S;
137
+ window.customElements.define("qcu-image", q);
138
138
  export {
139
139
  j as I,
140
140
  S as n
package/dist/index.js CHANGED
@@ -3,7 +3,7 @@ import "./components/capacity-calculation.ce.js.js";
3
3
  import "./components/clickable-image.ce.js.js";
4
4
  import "./components/complete-phrase.ce.js.js";
5
5
  import "./components/flip-cards.ce.js.js";
6
- import "./image-quiz.ce-DbLH3Dkt.js";
6
+ import "./image-quiz.ce-3HDl6Z67.js";
7
7
  import "./components/image-quizzes.ce.js.js";
8
8
  import "./components/message-conversation.ce.js.js";
9
9
  import "./components/pix-article.ce.js.js";
package/dist/schema.js CHANGED
@@ -125,7 +125,7 @@ const n = e.object({
125
125
  randomSlides: e.boolean().required(),
126
126
  titleLevel: e.number().integer().optional(),
127
127
  disableAnimation: e.boolean().required(),
128
- disableLoop: e.boolean().optional(),
128
+ enableLoop: e.boolean().optional(),
129
129
  imageTextDisplay: e.string().optional()
130
130
  }).meta({ title: "pix-carousel" }).required(), h = e.object({
131
131
  options: e.array().items(e.object({
@@ -1,4 +1,4 @@
1
- import { u as t, p as s } from "./_plugin-vue_export-helper-b0PKqEbd.js";
1
+ import { u as t, p as s } from "./_plugin-vue_export-helper-D7ghZaw4.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": "2.2.2",
3
+ "version": "2.2.5",
4
4
  "description": "A collection of interactive components to be used in Pix challenges or modules",
5
5
  "exports": {
6
6
  ".": "./dist/index.js",