hyperbook 0.113.0 → 0.113.2

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/README.md +18 -3
  2. package/dist/asset-manifest.json +9 -9
  3. package/dist/assets/directive-bitflow/{EditorElement-zyz99U6n.js → EditorElement-CE3Yr86b.js} +155 -155
  4. package/dist/assets/directive-bitflow/{ReportElements-BnX14NtV.js → ReportElements-eYGRtw6N.js} +1 -1
  5. package/dist/assets/directive-bitflow/{bitLoaders-DIGwTcpd.js → bitLoaders-CxvZkGrY.js} +1138 -1073
  6. package/dist/assets/directive-bitflow/editor.js +3 -3
  7. package/dist/assets/directive-bitflow/flow.js +3 -3
  8. package/dist/assets/directive-bitflow/{index-IQHOi2fr.js → index-88c3K20U.js} +31 -31
  9. package/dist/assets/directive-bitflow/{index-Bqf-kixT.js → index-B61LKxr1.js} +45 -45
  10. package/dist/assets/directive-bitflow/{index-CFcRAa3F.js → index-BG0PL-Z6.js} +30 -30
  11. package/dist/assets/directive-bitflow/{index-B3jMTk1o.js → index-BNdpL6Ss.js} +78 -78
  12. package/dist/assets/directive-bitflow/{index-Fq7njn6_.js → index-BO-d4HVC.js} +48 -48
  13. package/dist/assets/directive-bitflow/{index-Bf_NXJjq.js → index-BZhNY0lo.js} +12 -12
  14. package/dist/assets/directive-bitflow/{index-COndsSPW.js → index-BadyFTU5.js} +8 -8
  15. package/dist/assets/directive-bitflow/{index-CvCZVgKv.js → index-BlT1EcFH.js} +34 -34
  16. package/dist/assets/directive-bitflow/{index-CW9iev-_.js → index-BuQ-K_tR.js} +7 -7
  17. package/dist/assets/directive-bitflow/{index-DjWNEPDL.js → index-Bw0pL0hW.js} +28 -28
  18. package/dist/assets/directive-bitflow/{index-BQ5h4nDN.js → index-BwBVUdJ9.js} +94 -94
  19. package/dist/assets/directive-bitflow/{index-CjscG0z6.js → index-BydYlLy4.js} +73 -73
  20. package/dist/assets/directive-bitflow/{index-BpG316Ls.js → index-C7RJxxAx.js} +63 -63
  21. package/dist/assets/directive-bitflow/{index-eN2S_MLj.js → index-CERSJ9uS.js} +70 -70
  22. package/dist/assets/directive-bitflow/{index-DtsDy2By.js → index-CLHtOGrW.js} +11 -11
  23. package/dist/assets/directive-bitflow/{index-Bf_FQRbK.js → index-CWe2GjBK.js} +14 -14
  24. package/dist/assets/directive-bitflow/{index-CzdZQibq.js → index-CfKpkSVC.js} +72 -72
  25. package/dist/assets/directive-bitflow/{index-Fr7yl4Vn.js → index-CjKhq7gY.js} +23 -23
  26. package/dist/assets/directive-bitflow/{index-DoKlIgCD.js → index-Cm4w1Zyc.js} +38 -38
  27. package/dist/assets/directive-bitflow/{index-D5yZNeIg.js → index-D0U3nepG.js} +52 -52
  28. package/dist/assets/directive-bitflow/{index-C5czXkRd.js → index-D4PdXMcj.js} +33 -33
  29. package/dist/assets/directive-bitflow/{index-BLcJNyog.js → index-D9LOuqr2.js} +99 -99
  30. package/dist/assets/directive-bitflow/{index-BIJ7VfD2.js → index-DIb3CXwC.js} +42 -42
  31. package/dist/assets/directive-bitflow/{index-CZyaFdD2.js → index-DQP0cUsP.js} +70 -70
  32. package/dist/assets/directive-bitflow/{index-ChgzyMHe.js → index-DUOrQfVe.js} +27 -27
  33. package/dist/assets/directive-bitflow/{index-kRpwcprB.js → index-DW3cUBvZ.js} +1 -1
  34. package/dist/assets/directive-bitflow/{index-C_ZTSeqv.js → index-DYWo0PUv.js} +24 -24
  35. package/dist/assets/directive-bitflow/{index-xapm2BQE.js → index-D_QhyFcx.js} +101 -91
  36. package/dist/assets/directive-bitflow/{index-BdBBCZSy.js → index-Dn5hHVuT.js} +226 -193
  37. package/dist/assets/directive-bitflow/{index-D7m-hJZ9.js → index-DruC5d43.js} +69 -69
  38. package/dist/assets/directive-bitflow/{index-e_8twLaN.js → index-EKIgFddO.js} +105 -105
  39. package/dist/assets/directive-bitflow/{index-8jTO-NJA.js → index-HXNGIC7K.js} +70 -70
  40. package/dist/assets/directive-bitflow/{index-DnVYIuen.js → index-ISbOe239.js} +42 -42
  41. package/dist/assets/directive-bitflow/{index-cnRM_JDB.js → index-IsMJtrUT.js} +31 -31
  42. package/dist/assets/directive-bitflow/{index-B7Z6Q-PQ.js → index-TUXuIR22.js} +6 -6
  43. package/dist/assets/directive-bitflow/{index-CK1UMcfT.js → index-WbE9UOFa.js} +24 -24
  44. package/dist/assets/directive-bitflow/{index-YPMWh-1B.js → index-d5ebPDeY.js} +13 -13
  45. package/dist/assets/directive-bitflow/{index-NyNuXp4C.js → index-ledofrbo.js} +33 -33
  46. package/dist/assets/directive-bitflow/{index-BseSaQlX.js → index-oNmOArKu.js} +1 -1
  47. package/dist/assets/directive-bitflow/{index-ivI25bnR.js → index-rp4UTV85.js} +84 -84
  48. package/dist/assets/directive-bitflow/{index-XxGfBwJe.js → index-xTX3CXJW.js} +23 -23
  49. package/dist/assets/directive-bitflow/index.js +6 -6
  50. package/dist/assets/directive-bitflow/katex-DSLAjWZH-CHGN3Pr6.js +11314 -0
  51. package/dist/assets/directive-bitflow/katex-Dv-tcU2S-Dv-tcU2S.js +4 -0
  52. package/dist/assets/directive-bitflow/report.js +1 -1
  53. package/dist/assets/directive-bitflow/{shareableReport-ArQU1XjG.js → shareableReport-vjEU4OvA.js} +2 -2
  54. package/dist/index.js +6351 -3340
  55. package/dist/schemas/hyperbook.schema.json +4 -4
  56. package/package.json +5 -5
@@ -1,6 +1,6 @@
1
- import { L as k, a4 as v, ab as j, a9 as y, a2 as w, ac as A, ad as N, a5 as H, a as S, j as i, b as g, E as z, aa as P, s as D } from "./dom-uYx_3K1r.js";
2
- import { v as R, A as C, P as W, e as F, M as L, E as T, L as M, R as U } from "./bitLoaders-DIGwTcpd.js";
3
- const $ = ".bitflow-choice-group{border:0;margin:0;padding:0;display:flex;flex-direction:column;gap:var(--bitflow-space-xsmall)}.bitflow-option.bitflow-option-correct{border-color:var(--bitflow-color-correct);background:var(--bitflow-color-correct-surface)}.bitflow-option.bitflow-option-wrong{border-color:var(--bitflow-color-wrong);background:var(--bitflow-color-wrong-surface)}.bitflow-choice-editor{display:flex;flex-wrap:wrap;align-items:center;gap:var(--bitflow-space-xsmall)}.bitflow-choice-editor>.bitflow-input{flex:1 1 var(--bitflow-choice-editor-min, 8rem);min-width:0}.bitflow-choice-editor-actions{flex:none;flex-wrap:nowrap}.bitflow-choice-editor-correct{display:flex;flex-direction:column;align-items:center;gap:2px;cursor:pointer;flex-shrink:0}.bitflow-choice-editor-correct input{width:1.15em;height:1.15em;margin:0;accent-color:var(--bitflow-color-primary)}", K = ({
1
+ import { L as k, a4 as v, ab as j, a9 as y, a2 as w, ac as A, ad as L, a5 as H, a as S, j as i, b as g, E as z, aa as F, s as P } from "./dom-uYx_3K1r.js";
2
+ import { e as D, g as C, M as U, P as W, F as M, B as R, U as N, H as T } from "./bitLoaders-CxvZkGrY.js";
3
+ const $ = ".bitflow-choice-group{border:0;margin:0;padding:0;display:flex;flex-direction:column;gap:var(--bitflow-space-xsmall)}.bitflow-option.bitflow-option-correct{border-color:var(--bitflow-color-correct);background:var(--bitflow-color-correct-surface)}.bitflow-option.bitflow-option-wrong{border-color:var(--bitflow-color-wrong);background:var(--bitflow-color-wrong-surface)}.bitflow-choice-editor{display:flex;flex-wrap:wrap;align-items:center;gap:var(--bitflow-space-xsmall)}.bitflow-choice-editor>.bitflow-input{flex:1 1 var(--bitflow-choice-editor-min, 8rem);min-width:0}.bitflow-choice-editor-actions{flex:none;flex-wrap:nowrap}.bitflow-choice-editor-correct{display:flex;flex-direction:column;align-items:center;gap:2px;cursor:pointer;flex-shrink:0}.bitflow-choice-editor-correct input{width:1.15em;height:1.15em;margin:0;accent-color:var(--bitflow-color-primary)}", I = ({
4
4
  data: e,
5
5
  answer: n
6
6
  }) => {
@@ -17,7 +17,7 @@ const $ = ".bitflow-choice-group{border:0;margin:0;padding:0;display:flex;flex-d
17
17
  }
18
18
  }
19
19
  if (e.evaluation.showFeedback) {
20
- const d = q(e, s);
20
+ const d = K(e, s);
21
21
  d && o.push(d);
22
22
  }
23
23
  const r = h === e.choices.length, p = e.partialCredit ? { earned: h / e.choices.length, possible: 1 } : { earned: r ? 1 : 0, possible: 1 };
@@ -28,9 +28,9 @@ const $ = ".bitflow-choice-group{border:0;margin:0;padding:0;display:flex;flex-d
28
28
  feedback: o.length > 0 ? o : void 0,
29
29
  detail: { choices: l }
30
30
  };
31
- }, q = (e, n) => e.patternFeedback.find(
31
+ }, K = (e, n) => e.patternFeedback.find(
32
32
  (s) => s.choiceIds.length === n.size && s.choiceIds.every((l) => n.has(l))
33
- )?.feedback, I = {
33
+ )?.feedback, q = {
34
34
  en: {
35
35
  instructionLabel: "Question",
36
36
  instructionHint: "Markdown is supported. This is what the learner reads first.",
@@ -71,13 +71,13 @@ const $ = ".bitflow-choice-group{border:0;margin:0;padding:0;display:flex;flex-d
71
71
  partialCreditLabel: "Teilpunkte vergeben",
72
72
  partialCreditHint: "Jede Antwort einzeln werten statt alles oder nichts."
73
73
  }
74
- }, G = ({
74
+ }, B = ({
75
75
  data: e,
76
76
  locale: n,
77
77
  onChange: s,
78
78
  errors: l
79
79
  }) => {
80
- const o = (t) => g(I, t, n), h = S.useId(), r = (t) => s({ ...e, ...t }), p = (t, a) => r({
80
+ const o = (t) => g(q, t, n), h = S.useId(), r = (t) => s({ ...e, ...t }), p = (t, a) => r({
81
81
  choices: e.choices.map(
82
82
  (c) => c.id === t ? { ...c, ...a } : c
83
83
  )
@@ -104,7 +104,7 @@ const $ = ".bitflow-choice-group{border:0;margin:0;padding:0;display:flex;flex-d
104
104
  };
105
105
  return /* @__PURE__ */ i.jsxs("div", { className: "bitflow-stack", children: [
106
106
  /* @__PURE__ */ i.jsx(
107
- R,
107
+ D,
108
108
  {
109
109
  label: o("instructionLabel"),
110
110
  hint: o("instructionHint"),
@@ -114,7 +114,7 @@ const $ = ".bitflow-choice-group{border:0;margin:0;padding:0;display:flex;flex-d
114
114
  }
115
115
  ),
116
116
  /* @__PURE__ */ i.jsx(
117
- W,
117
+ U,
118
118
  {
119
119
  label: o("variantLabel"),
120
120
  value: e.variant,
@@ -207,9 +207,9 @@ const $ = ".bitflow-choice-group{border:0;margin:0;padding:0;display:flex;flex-d
207
207
  }
208
208
  ) })
209
209
  ] }),
210
- /* @__PURE__ */ i.jsxs(F, { summary: o("advanced"), children: [
210
+ /* @__PURE__ */ i.jsxs(W, { summary: o("advanced"), children: [
211
211
  /* @__PURE__ */ i.jsx(
212
- L,
212
+ M,
213
213
  {
214
214
  label: o("shuffleLabel"),
215
215
  hint: o("shuffleHint"),
@@ -218,7 +218,7 @@ const $ = ".bitflow-choice-group{border:0;margin:0;padding:0;display:flex;flex-d
218
218
  }
219
219
  ),
220
220
  e.variant === "multiple" && /* @__PURE__ */ i.jsx(
221
- L,
221
+ M,
222
222
  {
223
223
  label: o("partialCreditLabel"),
224
224
  hint: o("partialCreditHint"),
@@ -227,7 +227,7 @@ const $ = ".bitflow-choice-group{border:0;margin:0;padding:0;display:flex;flex-d
227
227
  }
228
228
  ),
229
229
  /* @__PURE__ */ i.jsx(
230
- T,
230
+ R,
231
231
  {
232
232
  evaluation: e.evaluation,
233
233
  locale: n,
@@ -302,7 +302,7 @@ const $ = ".bitflow-choice-group{border:0;margin:0;padding:0;display:flex;flex-d
302
302
  correct: "doğru",
303
303
  wrong: "yanlış"
304
304
  }
305
- }, J = k({
305
+ }, G = k({
306
306
  /**
307
307
  * Stable across edits, so an answer, a result or a piece of feedback keeps
308
308
  * pointing at the same choice when the teacher reorders the list. The editor
@@ -315,12 +315,12 @@ const $ = ".bitflow-choice-group{border:0;margin:0;padding:0;display:flex;flex-d
315
315
  feedbackWhenChecked: j.optional(),
316
316
  /** Shown when the learner left this choice unticked. */
317
317
  feedbackWhenNotChecked: j.optional()
318
- }), B = k({
318
+ }), J = k({
319
319
  /** The question, as Markdown. */
320
320
  instruction: w().default(""),
321
321
  /** `single` renders radio buttons, `multiple` renders checkboxes. */
322
322
  variant: H(["single", "multiple"]).default("single"),
323
- choices: v(J).min(2),
323
+ choices: v(G).min(2),
324
324
  /** Present the choices in a different order for each learner. */
325
325
  shuffle: y().default(!1),
326
326
  /**
@@ -328,7 +328,7 @@ const $ = ".bitflow-choice-group{border:0;margin:0;padding:0;display:flex;flex-d
328
328
  * all-or-nothing. Only meaningful for `multiple`.
329
329
  */
330
330
  partialCredit: y().default(!1),
331
- evaluation: A.default(N),
331
+ evaluation: A.default(L),
332
332
  /**
333
333
  * Feedback for one exact combination of choices — the successor to the old
334
334
  * "patterns" map, with choice ids in place of positional letters.
@@ -386,7 +386,7 @@ const $ = ".bitflow-choice-group{border:0;margin:0;padding:0;display:flex;flex-d
386
386
  [e.choices]
387
387
  );
388
388
  return /* @__PURE__ */ i.jsxs("div", { className: "bitflow-stack", children: [
389
- /* @__PURE__ */ i.jsx(M, { markdown: e.instruction }),
389
+ /* @__PURE__ */ i.jsx(N, { markdown: e.instruction }),
390
390
  /* @__PURE__ */ i.jsxs("fieldset", { className: "bitflow-choice-group", children: [
391
391
  /* @__PURE__ */ i.jsx("legend", { className: "bitflow-visually-hidden", children: g(
392
392
  x,
@@ -410,7 +410,7 @@ const $ = ".bitflow-choice-group{border:0;margin:0;padding:0;display:flex;flex-d
410
410
  onChange: (c) => f(t.id, c.target.checked)
411
411
  }
412
412
  ),
413
- /* @__PURE__ */ i.jsx(M, { markdown: t.markdown }),
413
+ /* @__PURE__ */ i.jsx(N, { markdown: t.markdown }),
414
414
  a && a !== "neutral" && /* @__PURE__ */ i.jsx("span", { className: "bitflow-visually-hidden", children: g(x, a, o) })
415
415
  ]
416
416
  },
@@ -427,13 +427,13 @@ const $ = ".bitflow-choice-group{border:0;margin:0;padding:0;display:flex;flex-d
427
427
  }
428
428
  return n;
429
429
  }, E = "task-choice";
430
- P({
430
+ F({
431
431
  type: E,
432
432
  kind: "task",
433
- schema: B,
434
- evaluate: K,
433
+ schema: J,
434
+ evaluate: I,
435
435
  Task: O,
436
- Form: G,
436
+ Form: B,
437
437
  info: (e) => ({
438
438
  name: g(x, "name", e),
439
439
  description: g(x, "description", e)
@@ -447,19 +447,19 @@ P({
447
447
  ],
448
448
  shuffle: !1,
449
449
  partialCredit: !1,
450
- evaluation: N(),
450
+ evaluation: L(),
451
451
  patternFeedback: []
452
452
  })
453
453
  });
454
- U(E);
455
- D("bitflow-styles-task-choice", $);
454
+ T(E);
455
+ P("bitflow-styles-task-choice", $);
456
456
  export {
457
457
  _ as AnswerSchema,
458
- J as ChoiceSchema,
459
- B as DataSchema,
460
- G as Form,
458
+ G as ChoiceSchema,
459
+ J as DataSchema,
460
+ B as Form,
461
461
  E as TYPE,
462
462
  O as Task,
463
- K as evaluate,
463
+ I as evaluate,
464
464
  x as messages
465
465
  };
@@ -1,6 +1,6 @@
1
1
  import { L as v, a9 as g, a2 as r, j as n, a as k, b as o, s as L, aa as y } from "./dom-uYx_3K1r.js";
2
- import { y as m, v as j, M as x, L as A, R as H } from "./bitLoaders-DIGwTcpd.js";
3
- const N = ".bitflow-download-state{margin:0;min-height:var(--bitflow-space-small);font-size:var(--bitflow-font-size-small);color:var(--bitflow-color-text-muted)}", h = {
2
+ import { C as m, e as j, F as x, U as A, H } from "./bitLoaders-CxvZkGrY.js";
3
+ const F = ".bitflow-download-state{margin:0;min-height:var(--bitflow-space-small);font-size:var(--bitflow-font-size-small);color:var(--bitflow-color-text-muted)}", h = {
4
4
  en: {
5
5
  name: "Finish and save",
6
6
  description: "Closing screen that lets the learner save their attempt as a file.",
@@ -73,7 +73,7 @@ const N = ".bitflow-download-state{margin:0;min-height:var(--bitflow-space-small
73
73
  saved: "{filename} olarak kaydedildi.",
74
74
  failed: "Dosya kaydedilemedi."
75
75
  }
76
- }, F = v({
76
+ }, N = v({
77
77
  title: r().default(""),
78
78
  markdown: r().default(""),
79
79
  /** Leave empty for the wording this bit ships with. */
@@ -208,12 +208,12 @@ const N = ".bitflow-download-state{margin:0;min-height:var(--bitflow-space-small
208
208
  )
209
209
  ] });
210
210
  };
211
- L("bitflow-styles-end-download", N);
211
+ L("bitflow-styles-end-download", F);
212
212
  const w = "end-download";
213
213
  y({
214
214
  type: w,
215
215
  kind: "end",
216
- schema: F,
216
+ schema: N,
217
217
  Task: z,
218
218
  Form: D,
219
219
  info: (e) => ({
@@ -230,7 +230,7 @@ y({
230
230
  });
231
231
  H(w);
232
232
  export {
233
- F as DataSchema,
233
+ N as DataSchema,
234
234
  D as Form,
235
235
  w as TYPE,
236
236
  z as Task,
@@ -1,11 +1,11 @@
1
- import { L as j, ak as C, a2 as u, ac as H, ad as A, a9 as h, a4 as S, j as r, a as x, b as k, aa as E, s as R } from "./dom-uYx_3K1r.js";
2
- import { v as m, A as g, e as z, M as w, E as B, L as I, R as M } from "./bitLoaders-DIGwTcpd.js";
3
- const P = ".bitflow-blank-text{white-space:pre-wrap;line-height:2.2;margin:0}.bitflow-blank-wrapper{display:inline}.bitflow-blank{display:inline-block;width:auto;max-width:100%;min-height:0;padding:2px var(--bitflow-space-xxsmall);vertical-align:baseline}.bitflow-input.bitflow-blank-correct{border-color:var(--bitflow-color-correct);background:var(--bitflow-color-correct-surface)}.bitflow-input.bitflow-blank-wrong{border-color:var(--bitflow-color-wrong);background:var(--bitflow-color-wrong-surface)}", y = /\[\[(\w+)\]\]/g, f = (e) => {
1
+ import { L as j, ak as C, a2 as u, ac as T, ad as A, a9 as h, a4 as S, j as r, a as x, b as k, aa as B, s as E } from "./dom-uYx_3K1r.js";
2
+ import { e as m, g, P as z, F as w, B as I, U as P, H as R } from "./bitLoaders-CxvZkGrY.js";
3
+ const F = ".bitflow-blank-text{white-space:pre-wrap;line-height:2.2;margin:0}.bitflow-blank-wrapper{display:inline}.bitflow-blank{display:inline-block;width:auto;max-width:100%;min-height:0;padding:2px var(--bitflow-space-xxsmall);vertical-align:baseline}.bitflow-input.bitflow-blank-correct{border-color:var(--bitflow-color-correct);background:var(--bitflow-color-correct-surface)}.bitflow-input.bitflow-blank-wrong{border-color:var(--bitflow-color-wrong);background:var(--bitflow-color-wrong-surface)}", y = /\[\[(\w+)\]\]/g, f = (e) => {
4
4
  const t = [];
5
5
  for (const n of e.matchAll(y))
6
6
  t.includes(n[1]) || t.push(n[1]);
7
7
  return t;
8
- }, $ = j({
8
+ }, U = j({
9
9
  instruction: u().default(""),
10
10
  /** Plain text with `[[n]]` markers where the gaps go. */
11
11
  text: u().default(""),
@@ -14,7 +14,7 @@ const P = ".bitflow-blank-text{white-space:pre-wrap;line-height:2.2;margin:0}.bi
14
14
  caseSensitive: h().default(!1),
15
15
  trim: h().default(!0),
16
16
  partialCredit: h().default(!0),
17
- evaluation: H.default(A)
17
+ evaluation: T.default(A)
18
18
  }).check((e) => {
19
19
  if (e.value.evaluation.mode !== "auto") return;
20
20
  const t = f(e.value.text);
@@ -37,7 +37,7 @@ const P = ".bitflow-blank-text{white-space:pre-wrap;line-height:2.2;margin:0}.bi
37
37
  }), O = j({
38
38
  /** Blank id → what the learner typed. */
39
39
  blanks: C(u(), u()).default({})
40
- }), D = ({
40
+ }), M = ({
41
41
  data: e,
42
42
  answer: t
43
43
  }) => {
@@ -103,13 +103,13 @@ const P = ".bitflow-blank-text{white-space:pre-wrap;line-height:2.2;margin:0}.bi
103
103
  it: { name: "Testo bucato", description: "Un testo con spazi da completare.", correct: "corretto", wrong: "non corretto" },
104
104
  pt: { name: "Preencher espaços", description: "Um texto com espaços para completar.", correct: "correto", wrong: "incorreto" },
105
105
  tr: { name: "Boşluk doldurma", description: "Doldurulacak boşluklar içeren bir metin.", correct: "doğru", wrong: "yanlış" }
106
- }, F = (e) => {
106
+ }, $ = (e) => {
107
107
  const t = [];
108
108
  let n = 0;
109
109
  for (const s of e.matchAll(y))
110
110
  s.index > n && t.push({ text: e.slice(n, s.index) }), t.push({ blank: s[1] }), n = s.index + s[0].length;
111
111
  return n < e.length && t.push({ text: e.slice(n) }), t;
112
- }, U = ({
112
+ }, D = ({
113
113
  data: e,
114
114
  answer: t,
115
115
  result: n,
@@ -119,8 +119,8 @@ const P = ".bitflow-blank-text{white-space:pre-wrap;line-height:2.2;margin:0}.bi
119
119
  }) => {
120
120
  const d = x.useId(), a = n?.detail?.blanks ?? {}, b = (i, c) => o({ blanks: { ...t?.blanks, [i]: c } });
121
121
  return /* @__PURE__ */ r.jsxs("div", { className: "bitflow-stack", children: [
122
- /* @__PURE__ */ r.jsx(I, { markdown: e.instruction }),
123
- /* @__PURE__ */ r.jsx("p", { className: "bitflow-blank-text", children: F(e.text).map(
122
+ /* @__PURE__ */ r.jsx(P, { markdown: e.instruction }),
123
+ /* @__PURE__ */ r.jsx("p", { className: "bitflow-blank-text", children: $(e.text).map(
124
124
  (i, c) => "text" in i ? /* @__PURE__ */ r.jsx(x.Fragment, { children: i.text }, c) : /* @__PURE__ */ r.jsxs("span", { className: "bitflow-blank-wrapper", children: [
125
125
  /* @__PURE__ */ r.jsx(
126
126
  "input",
@@ -137,7 +137,7 @@ const P = ".bitflow-blank-text{white-space:pre-wrap;line-height:2.2;margin:0}.bi
137
137
  autoCapitalize: "off",
138
138
  autoCorrect: "off",
139
139
  spellCheck: !1,
140
- onChange: (T) => b(i.blank, T.target.value)
140
+ onChange: (N) => b(i.blank, N.target.value)
141
141
  }
142
142
  ),
143
143
  a[i.blank] && a[i.blank] !== "neutral" && /* @__PURE__ */ r.jsx("span", { className: "bitflow-visually-hidden", children: k(p, a[i.blank], l) })
@@ -219,7 +219,7 @@ const P = ".bitflow-blank-text{white-space:pre-wrap;line-height:2.2;margin:0}.bi
219
219
  }
220
220
  ),
221
221
  /* @__PURE__ */ r.jsx(
222
- B,
222
+ I,
223
223
  {
224
224
  evaluation: e.evaluation,
225
225
  locale: t,
@@ -228,13 +228,13 @@ const P = ".bitflow-blank-text{white-space:pre-wrap;line-height:2.2;margin:0}.bi
228
228
  )
229
229
  ] })
230
230
  ] });
231
- }, N = "task-fill-in-the-blank";
232
- E({
233
- type: N,
231
+ }, H = "task-fill-in-the-blank";
232
+ B({
233
+ type: H,
234
234
  kind: "task",
235
- schema: $,
236
- evaluate: D,
237
- Task: U,
235
+ schema: U,
236
+ evaluate: M,
237
+ Task: D,
238
238
  Form: W,
239
239
  info: (e) => ({
240
240
  name: k(p, "name", e),
@@ -250,16 +250,16 @@ E({
250
250
  evaluation: A()
251
251
  })
252
252
  });
253
- M(N);
254
- R("bitflow-styles-task-fill-in-the-blank", P);
253
+ R(H);
254
+ E("bitflow-styles-task-fill-in-the-blank", F);
255
255
  export {
256
256
  O as AnswerSchema,
257
257
  y as BLANK_PATTERN,
258
- $ as DataSchema,
258
+ U as DataSchema,
259
259
  W as Form,
260
- N as TYPE,
261
- U as Task,
260
+ H as TYPE,
261
+ D as Task,
262
262
  f as blankIdsIn,
263
- D as evaluate,
263
+ M as evaluate,
264
264
  p as messages
265
265
  };
@@ -1,5 +1,5 @@
1
- import { L as N, a9 as u, a2 as v, j as e, b as r, $ as H, a as A, s as S, aa as R } from "./dom-uYx_3K1r.js";
2
- import { y as B, v as z, M as p, L as T, p as C, f as E, R as F } from "./bitLoaders-DIGwTcpd.js";
1
+ import { L as N, a9 as u, a2 as v, j as e, b as r, $ as H, a as A, s as S, aa as B } from "./dom-uYx_3K1r.js";
2
+ import { C as R, e as z, F as p, U as C, k as T, x as F, H as E } from "./bitLoaders-CxvZkGrY.js";
3
3
  const D = ".bitflow-end-score{font-size:var(--bitflow-font-size-large);font-weight:var(--bitflow-font-weight-bold);margin:0}.bitflow-end-list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:var(--bitflow-space-xxsmall)}.bitflow-end-item{border-bottom:1px solid var(--bitflow-color-border)}.bitflow-end-row{display:flex;align-items:center;gap:var(--bitflow-space-xsmall);padding:var(--bitflow-space-xxsmall) 0;width:100%}.bitflow-end-row-button{font:inherit;color:inherit;text-align:left;background:none;border:0;border-radius:var(--bitflow-radius-standard);cursor:pointer;min-height:44px}.bitflow-end-row-button:hover{background:var(--bitflow-color-neutral-100)}.bitflow-end-review{margin-left:auto;color:var(--bitflow-color-primary-dark);font-size:var(--bitflow-font-size-small)}.bitflow-end-answer{padding:var(--bitflow-space-small);margin-bottom:var(--bitflow-space-xsmall);border-left:var(--bitflow-border-width) solid var(--bitflow-color-primary-light);background:var(--bitflow-color-neutral-100);border-radius:var(--bitflow-radius-standard)}.bitflow-end-index{min-width:1.5em;color:var(--bitflow-color-text-muted);font-variant-numeric:tabular-nums}", l = {
4
4
  en: {
5
5
  name: "End",
@@ -71,7 +71,7 @@ const D = ".bitflow-end-score{font-size:var(--bitflow-font-size-large);font-weig
71
71
  const n = (m, w) => r(l, m, o, w);
72
72
  return /* @__PURE__ */ e.jsxs("div", { className: "bitflow-stack", children: [
73
73
  a.title && /* @__PURE__ */ e.jsx("h2", { className: "bitflow-heading", children: a.title }),
74
- /* @__PURE__ */ e.jsx(T, { markdown: a.markdown }),
74
+ /* @__PURE__ */ e.jsx(C, { markdown: a.markdown }),
75
75
  t && a.showScore && /* @__PURE__ */ e.jsx(P, { attempt: t, locale: o }),
76
76
  t && a.showBreakdown && /* @__PURE__ */ e.jsx(
77
77
  W,
@@ -103,20 +103,20 @@ const D = ".bitflow-end-score{font-size:var(--bitflow-font-size-large);font-weig
103
103
  }) => {
104
104
  const [n, m] = A.useState(null), w = Object.entries(a.results);
105
105
  if (w.length === 0) return null;
106
- const g = s && o !== void 0, d = (i, c) => r(l, i, t, c);
106
+ const k = s && o !== void 0, d = (i, c) => r(l, i, t, c);
107
107
  return /* @__PURE__ */ e.jsxs("section", { className: "bitflow-stack-small bitflow-stack", children: [
108
108
  /* @__PURE__ */ e.jsx("h3", { className: "bitflow-heading", children: d("summaryHeading") }),
109
- g && /* @__PURE__ */ e.jsx("p", { className: "bitflow-hint", children: d("reviewHint") }),
109
+ k && /* @__PURE__ */ e.jsx("p", { className: "bitflow-hint", children: d("reviewHint") }),
110
110
  /* @__PURE__ */ e.jsx("ol", { className: "bitflow-end-list", children: w.map(([i, c], y) => {
111
- const b = c.state, k = a.tries[i] ?? 0, f = o?.nodes.find((L) => L.id === i), h = n === i, x = /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
111
+ const b = c.state, g = a.tries[i] ?? 0, f = o?.nodes.find((L) => L.id === i), h = n === i, x = /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
112
112
  /* @__PURE__ */ e.jsx("span", { className: "bitflow-end-index", children: y + 1 }),
113
113
  /* @__PURE__ */ e.jsxs("span", { className: `bitflow-state bitflow-state-${b}`, children: [
114
- /* @__PURE__ */ e.jsx(C, { state: b }),
114
+ /* @__PURE__ */ e.jsx(T, { state: b }),
115
115
  d(b)
116
116
  ] }),
117
- k > 1 && /* @__PURE__ */ e.jsx("span", { className: "bitflow-text-muted", children: d("attempts", { count: k }) })
117
+ g > 1 && /* @__PURE__ */ e.jsx("span", { className: "bitflow-text-muted", children: d("attempts", { count: g }) })
118
118
  ] });
119
- return /* @__PURE__ */ e.jsx("li", { className: "bitflow-end-item", children: g && f ? /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
119
+ return /* @__PURE__ */ e.jsx("li", { className: "bitflow-end-item", children: k && f ? /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
120
120
  /* @__PURE__ */ e.jsxs(
121
121
  "button",
122
122
  {
@@ -131,7 +131,7 @@ const D = ".bitflow-end-score{font-size:var(--bitflow-font-size-large);font-weig
131
131
  }
132
132
  ),
133
133
  h && /* @__PURE__ */ e.jsx("div", { className: "bitflow-end-answer", children: /* @__PURE__ */ e.jsx(
134
- E,
134
+ F,
135
135
  {
136
136
  type: f.type,
137
137
  data: f.data,
@@ -152,7 +152,7 @@ const D = ".bitflow-end-score{font-size:var(--bitflow-font-size-large);font-weig
152
152
  const s = (n) => r(l, n, o);
153
153
  return /* @__PURE__ */ e.jsxs("div", { className: "bitflow-stack", children: [
154
154
  /* @__PURE__ */ e.jsx(
155
- B,
155
+ R,
156
156
  {
157
157
  label: s("titleLabel"),
158
158
  value: a.title,
@@ -198,7 +198,7 @@ const D = ".bitflow-end-score{font-size:var(--bitflow-font-size-large);font-weig
198
198
  };
199
199
  S("bitflow-styles-end-tries", D);
200
200
  const j = "end-tries";
201
- R({
201
+ B({
202
202
  type: j,
203
203
  kind: "end",
204
204
  schema: M,
@@ -216,7 +216,7 @@ R({
216
216
  allowReview: !1
217
217
  })
218
218
  });
219
- F(j);
219
+ E(j);
220
220
  export {
221
221
  M as DataSchema,
222
222
  Y as Form,