@1024pix/epreuves-components 2.9.0 → 4.0.0

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 (56) hide show
  1. package/dist/Button.ce-CTKrSDrC.js +27 -0
  2. package/dist/{ButtonTooltip.ce-CIo_7tm0.js → ButtonTooltip.ce-CtHo2Dwx.js} +1 -1
  3. package/dist/{Cross.ce.vue_vue_type_script_setup_true_lang-C2TfFGJP.js → Cross.ce.vue_vue_type_script_setup_true_lang-CVBFTfq5.js} +5 -5
  4. package/dist/{LLMMessage.ce-y0pOYUCI.js → LLMMessage.ce-Dv4hVX0C.js} +2 -2
  5. package/dist/{Loading.ce-Cxcx64IX.js → Loading.ce-Bh7-h48F.js} +1 -1
  6. package/dist/{NavigationButton.ce-DpzmC2Dd.js → NavigationButton.ce-CA1M8sgV.js} +2 -2
  7. package/dist/PixMailMessage.ce-XPDbJiyC.js +219 -0
  8. package/dist/Popin.ce-DUQ7-GMT.js +197 -0
  9. package/dist/{Retry-BYnFnneH.js → Retry-BZf7NJz9.js} +1 -1
  10. package/dist/Stepper.ce-B1yDelzC.js +27 -0
  11. package/dist/{_plugin-vue_export-helper-BaC4eJh4.js → _plugin-vue_export-helper-D0N_62VD.js} +29 -28
  12. package/dist/components/analyse-mails-phishing.ce.js.js +99 -98
  13. package/dist/components/calcul-impact.ce.js.js +9 -9
  14. package/dist/components/capacity-calculation.ce.js.js +28 -28
  15. package/dist/components/clickable-image.ce.js.js +11 -11
  16. package/dist/components/complete-phrase.ce.js.js +7 -7
  17. package/dist/components/flip-cards.ce.js.js +5 -5
  18. package/dist/components/image-quiz.ce.js.js +4 -4
  19. package/dist/components/image-quizzes.ce.js.js +3 -3
  20. package/dist/components/llm-compare-messages.ce.js.js +3 -3
  21. package/dist/components/llm-messages.ce.js.js +3 -3
  22. package/dist/components/llm-prompt-select.ce.js.js +2 -2
  23. package/dist/components/mdp-classement.ce.js.js +29 -29
  24. package/dist/components/message-conversation.ce.js.js +5 -5
  25. package/dist/components/mobile-shell.ce.js.js +1 -1
  26. package/dist/components/phishing-message.ce.js.js +27 -27
  27. package/dist/components/phishing-notification.ce.js.js +23 -23
  28. package/dist/components/pix-anonymisation.ce.js.js +83 -87
  29. package/dist/components/pix-article.ce.js.js +5 -5
  30. package/dist/components/pix-carousel.ce.js.js +13 -13
  31. package/dist/components/pix-combinaisons.ce.js.js +238 -0
  32. package/dist/components/pix-cursor.ce.js.js +19 -19
  33. package/dist/components/pix-mail-message.ce.js.js +11 -0
  34. package/dist/components/proteger-mail-spam.ce.js.js +129 -0
  35. package/dist/components/qcm-deepfake.ce.js.js +21 -21
  36. package/dist/components/quiz-stepper.ce.js.js +8 -7
  37. package/dist/components/select-conversation.ce.js.js +15 -15
  38. package/dist/components/template-mail.ce.js.js +49 -151
  39. package/dist/components/test-top-mdp.ce.js.js +14 -14
  40. package/dist/components/trouver-mdp-rs.ce.js.js +213 -249
  41. package/dist/{i18n-BJ6FRipD.js → i18n-ekiZvzf6.js} +9 -9
  42. package/dist/{i18n-lite-Dn1Iqj1Y.js → i18n-lite-t2jNOu0C.js} +8 -8
  43. package/dist/{image-quiz.ce-DvpG9mbT.js → image-quiz.ce-DqalWHKw.js} +11 -11
  44. package/dist/index-BpqxFmwz.js +10 -0
  45. package/dist/index.js +4 -1
  46. package/dist/metadata.js +31 -19
  47. package/dist/nl-Bonww6Q2.js +13 -0
  48. package/dist/{normalize-props-DtfVI0Xg.js → normalize-props-DH0oPBss.js} +2 -2
  49. package/dist/props.examples.js +130 -0
  50. package/dist/schema.js +103 -67
  51. package/dist/{shadow-dom-Db7VMkC0.js → shadow-dom-C3AZuSZe.js} +1 -1
  52. package/dist/temporal.utils-7Uvm62ss.js +10926 -0
  53. package/package.json +3 -2
  54. package/dist/Button.ce-CkwcReY5.js +0 -18
  55. package/dist/index-BCutQvmP.js +0 -34
  56. package/dist/temporal.utils-CotrC6ao.js +0 -14456
package/package.json CHANGED
@@ -1,13 +1,14 @@
1
1
  {
2
2
  "name": "@1024pix/epreuves-components",
3
- "version": "2.9.0",
3
+ "version": "4.0.0",
4
4
  "type": "module",
5
5
  "description": "A collection of interactive components to be used in Pix challenges or modules",
6
6
  "exports": {
7
7
  ".": "./dist/index.js",
8
8
  "./components/*": "./dist/components/*.js",
9
9
  "./metadata": "./dist/metadata.js",
10
- "./schema": "./dist/schema.js"
10
+ "./schema": "./dist/schema.js",
11
+ "./props.examples": "./dist/props.examples.js"
11
12
  },
12
13
  "files": [
13
14
  "dist/"
@@ -1,18 +0,0 @@
1
- import { d as e, c as s, o as t, n as d, g as n, _ as r } from "./_plugin-vue_export-helper-BaC4eJh4.js";
2
- const i = ["aria-disabled"], l = /* @__PURE__ */ e({
3
- __name: "Button.ce",
4
- props: {
5
- isDisabled: { type: Boolean }
6
- },
7
- setup(a) {
8
- return (o, u) => (t(), s("button", {
9
- "aria-disabled": a.isDisabled,
10
- class: d({ "is-disabled": a.isDisabled })
11
- }, [
12
- n(o.$slots, "default", {}, void 0, !0)
13
- ], 10, i));
14
- }
15
- }), c = "button[data-v-a5fa59a1]{padding:8px 24px;border-radius:8px;background:#253858;border:none;color:#fff}button[data-v-a5fa59a1]:hover{cursor:pointer;background:#334d77}button.is-disabled[data-v-a5fa59a1]{background:#25385880;cursor:not-allowed}", p = /* @__PURE__ */ r(l, [["styles", [c]], ["__scopeId", "data-v-a5fa59a1"]]);
16
- export {
17
- p as B
18
- };
@@ -1,34 +0,0 @@
1
- import { d as i, y as o, c as l, o as d, a as e, A as c, t as p, _ as u } from "./_plugin-vue_export-helper-BaC4eJh4.js";
2
- import { i as _ } from "./i18n-lite-Dn1Iqj1Y.js";
3
- const h = { class: "steps-wrapper" }, f = { class: "steps-wrapper__stepper" }, m = { "aria-hidden": "true" }, g = {
4
- class: "sr-only",
5
- "aria-live": "polite"
6
- }, w = /* @__PURE__ */ i({
7
- __name: "Stepper.ce",
8
- props: {
9
- step: { type: Number },
10
- stepsCount: { type: Number }
11
- },
12
- setup(s) {
13
- const r = s, t = o(() => r.step + 1), a = o(() => Math.floor(t.value / r.stepsCount * 100));
14
- return (n, b) => (d(), l("div", h, [
15
- e("div", f, [
16
- e("div", {
17
- class: "steps-wrapper__effective-steps",
18
- style: c({ "--stepIndex": `${a.value}%` })
19
- }, null, 4)
20
- ]),
21
- e("p", m, p(t.value) + "/" + p(s.stepsCount), 1),
22
- e("p", g, p(n.$t("stepper.step", { step: t.value, stepsCount: s.stepsCount })), 1)
23
- ]));
24
- }
25
- }), x = ".steps-wrapper{display:flex;align-items:center;justify-content:center;color:#613fdd;font-size:.875rem;gap:6px;font-weight:500;width:100%}.steps-wrapper p{text-wrap:nowrap;margin:0}.steps-wrapper__stepper{background:#e8eaed;height:8px;width:100%;border-radius:4px}.steps-wrapper__effective-steps{width:var(--stepIndex);background:#613fdd;border-radius:4px;height:8px}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);border:0}", k = /* @__PURE__ */ u(w, [["styles", [x]]]), v = { step: "Étape {{step}} sur {{stepsCount}}" }, y = {
26
- stepper: v
27
- };
28
- function j() {
29
- _.addTranslationsFromGlobResults(/* @__PURE__ */ Object.assign({ "./locales/fr.json": y }));
30
- }
31
- export {
32
- k as S,
33
- j as l
34
- };