@airalogy/aimd-recorder 1.21.0 → 1.22.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 (71) hide show
  1. package/README.md +1 -0
  2. package/README.zh-CN.md +1 -0
  3. package/dist/{AimdDnaSequenceField-Cp0cgBYl.js → AimdDnaSequenceField-Bhj28fP8.js} +1 -1
  4. package/dist/{AimdEditor.vue_vue_type_style_index_0_lang-Dj5y1p3U.js → AimdEditor.vue_vue_type_style_index_0_lang-D7c01UqN.js} +26 -2
  5. package/dist/{AimdMarkdownField-Vp72mf5d.js → AimdMarkdownField-GS15pv4z.js} +4 -4
  6. package/dist/{AimdMarkdownNoteField-8AHO9zwW.js → AimdMarkdownNoteField-H9WP8tR6.js} +3 -3
  7. package/dist/aimd-recorder.css +1 -1
  8. package/dist/{arc-YTgUVhxi.js → arc-B50G9-kH.js} +1 -1
  9. package/dist/{architectureDiagram-3BPJPVTR-BFddgj3h.js → architectureDiagram-3BPJPVTR-D9mBEbpY.js} +2 -2
  10. package/dist/{blockDiagram-GPEHLZMM-BNFU64lo.js → blockDiagram-GPEHLZMM-Cs4swgto.js} +4 -4
  11. package/dist/{c4Diagram-AAUBKEIU-DDg-ymRq.js → c4Diagram-AAUBKEIU-C12HKS3r.js} +2 -2
  12. package/dist/{channel-Cswcnlp1.js → channel-D69VnjVz.js} +1 -1
  13. package/dist/{chunk-2J33WTMH-CP2V6jff.js → chunk-2J33WTMH-oc-89G5c.js} +1 -1
  14. package/dist/{chunk-4BX2VUAB-CbWr2vv6.js → chunk-4BX2VUAB-BDJS9G3r.js} +1 -1
  15. package/dist/{chunk-55IACEB6-DQOKhaUL.js → chunk-55IACEB6-BPl3uHcA.js} +1 -1
  16. package/dist/{chunk-727SXJPM-4VuCu0m8.js → chunk-727SXJPM-pWe-vDGf.js} +5 -5
  17. package/dist/{chunk-AQP2D5EJ-D7Pq-oug.js → chunk-AQP2D5EJ-D-R5sIr1.js} +3 -3
  18. package/dist/{chunk-FMBD7UC4-slF0wbDn.js → chunk-FMBD7UC4-bo6Qyom1.js} +1 -1
  19. package/dist/{chunk-ND2GUHAM-BrNrmeyL.js → chunk-ND2GUHAM-DQMvtYV7.js} +1 -1
  20. package/dist/{chunk-QZHKN3VN-CII3oQmH.js → chunk-QZHKN3VN-DlCn3HON.js} +1 -1
  21. package/dist/{classDiagram-v2-Q7XG4LA2-skT5SNaU.js → classDiagram-4FO5ZUOK-DzUwWFwr.js} +2 -2
  22. package/dist/{classDiagram-4FO5ZUOK-skT5SNaU.js → classDiagram-v2-Q7XG4LA2-DzUwWFwr.js} +2 -2
  23. package/dist/components.js +3669 -3168
  24. package/dist/composables.js +2 -2
  25. package/dist/{cose-bilkent-S5V4N54A-CiwUUHaz.js → cose-bilkent-S5V4N54A-BXLMzfpO.js} +1 -1
  26. package/dist/{dagre-BM42HDAG-BzaKejHz.js → dagre-BM42HDAG-DHnofIh9.js} +3 -3
  27. package/dist/{diagram-2AECGRRQ-B7jPt7Sf.js → diagram-2AECGRRQ-BqTTVPsm.js} +2 -2
  28. package/dist/{diagram-5GNKFQAL-z6ygEwZY.js → diagram-5GNKFQAL-D5p1UVbw.js} +3 -3
  29. package/dist/{diagram-KO2AKTUF-BBQMMIgY.js → diagram-KO2AKTUF-Uuoz9cFn.js} +2 -2
  30. package/dist/{diagram-LMA3HP47-IFDVFs2m.js → diagram-LMA3HP47-W001U31X.js} +2 -2
  31. package/dist/{diagram-OG6HWLK6-DjEAxof0.js → diagram-OG6HWLK6-DL516LDr.js} +3 -3
  32. package/dist/{erDiagram-TEJ5UH35-DxMYC2Iw.js → erDiagram-TEJ5UH35-CCxgMb67.js} +4 -4
  33. package/dist/{flowDiagram-I6XJVG4X-EIHEHG32.js → flowDiagram-I6XJVG4X-nXGdmC0O.js} +6 -6
  34. package/dist/{ganttDiagram-6RSMTGT7-TEOWSxVA.js → ganttDiagram-6RSMTGT7-Bi9Ro7_Z.js} +2 -2
  35. package/dist/{gitGraphDiagram-PVQCEYII-Cwzy4bEc.js → gitGraphDiagram-PVQCEYII-w1kNAy4E.js} +3 -3
  36. package/dist/{graph-Cyx6ry93.js → graph-CpOkL_eZ.js} +1 -1
  37. package/dist/{index-Dtvv88SS.js → index-Dkrf2LJl.js} +51 -51
  38. package/dist/index.js +3 -3
  39. package/dist/{infoDiagram-5YYISTIA-DNv6Z1ol.js → infoDiagram-5YYISTIA-Bde_w9T1.js} +1 -1
  40. package/dist/{ishikawaDiagram-YF4QCWOH-D3eaxgy9.js → ishikawaDiagram-YF4QCWOH-x5M1KR0l.js} +1 -1
  41. package/dist/{journeyDiagram-JHISSGLW-D5g7q2RP.js → journeyDiagram-JHISSGLW-CIDQP8Zm.js} +4 -4
  42. package/dist/{kanban-definition-UN3LZRKU-C0hUSCKH.js → kanban-definition-UN3LZRKU-CKgO7sG8.js} +2 -2
  43. package/dist/{layout-CpB8OqeJ.js → layout-BZYprqYR.js} +2 -2
  44. package/dist/{linear-D55SCqYq.js → linear-ClSH2F_v.js} +1 -1
  45. package/dist/{mermaid.core-wqUqC7-u.js → mermaid.core-CcRV6K2R.js} +34 -34
  46. package/dist/{mindmap-definition-RKZ34NQL-tCWbcVMf.js → mindmap-definition-RKZ34NQL-s3h6uszV.js} +3 -3
  47. package/dist/{pieDiagram-4H26LBE5-JtTllP1a.js → pieDiagram-4H26LBE5-CgiazyWv.js} +3 -3
  48. package/dist/{quadrantDiagram-W4KKPZXB-CLL79FuD.js → quadrantDiagram-W4KKPZXB-DCPVgHoW.js} +2 -2
  49. package/dist/record.js +19 -19
  50. package/dist/{requirementDiagram-4Y6WPE33-3BVAevi9.js → requirementDiagram-4Y6WPE33-DE6F9oSB.js} +3 -3
  51. package/dist/{sankeyDiagram-5OEKKPKP-BfUuX3gj.js → sankeyDiagram-5OEKKPKP-DZZoFFr-.js} +1 -1
  52. package/dist/{sequenceDiagram-3UESZ5HK-vTd4YJPb.js → sequenceDiagram-3UESZ5HK-DaYEOl60.js} +3 -3
  53. package/dist/{stateDiagram-AJRCARHV-BzlMdp-U.js → stateDiagram-AJRCARHV-BmgpHJlH.js} +4 -4
  54. package/dist/{stateDiagram-v2-BHNVJYJU-Ciwlhuza.js → stateDiagram-v2-BHNVJYJU-D49CHQD6.js} +2 -2
  55. package/dist/{timeline-definition-PNZ67QCA-CySiSuYS.js → timeline-definition-PNZ67QCA-DdVLoCkC.js} +2 -2
  56. package/dist/{useCodeBlockRendering-DtcAJyK9.js → useCodeBlockRendering-CCuoP52e.js} +2 -2
  57. package/dist/{vennDiagram-CIIHVFJN-Bbf0BSAq.js → vennDiagram-CIIHVFJN-CCcMKcd7.js} +1 -1
  58. package/dist/{wardleyDiagram-YWT4CUSO-J0jnd8EV.js → wardleyDiagram-YWT4CUSO-R4UGgGWY.js} +2 -2
  59. package/dist/{xychartDiagram-2RQKCTM6-XCPLxT4O.js → xychartDiagram-2RQKCTM6-DyFhCubk.js} +2 -2
  60. package/package.json +4 -4
  61. package/src/__tests__/record-search-render.test.ts +108 -0
  62. package/src/__tests__/var-field-render.test.ts +62 -60
  63. package/src/components/AimdQuizRecorder.vue +3 -1
  64. package/src/components/AimdRecorder.vue +51 -2343
  65. package/src/components/AimdRecorderSearchToolbar.vue +258 -0
  66. package/src/components/AimdVarTableField.vue +2 -1
  67. package/src/components/index.ts +1 -0
  68. package/src/composables/useRecordSearch.ts +299 -0
  69. package/src/locales.ts +36 -0
  70. package/src/styles/recorder-surface.css +2374 -0
  71. package/src/styles/recorder.css +1 -0
@@ -1,7 +1,7 @@
1
- import { Q as S, T as R, b2 as J, g as K, s as Y, a as tt, b as et, t as at, q as nt, _ as d, l as W, c as rt, H as it, L as st, a4 as ot, e as lt, A as ct, I as ut } from "./mermaid.core-wqUqC7-u.js";
2
- import { p as dt } from "./chunk-4BX2VUAB-CbWr2vv6.js";
1
+ import { Q as S, T as R, b2 as J, g as K, s as Y, a as tt, b as et, t as at, q as nt, _ as d, l as W, c as rt, H as it, L as st, a4 as ot, e as lt, A as ct, I as ut } from "./mermaid.core-CcRV6K2R.js";
2
+ import { p as dt } from "./chunk-4BX2VUAB-BDJS9G3r.js";
3
3
  import { p as pt } from "./wardley-L42UT6IY-D7b2ujEZ.js";
4
- import { d as P } from "./arc-YTgUVhxi.js";
4
+ import { d as P } from "./arc-B50G9-kH.js";
5
5
  import { o as gt } from "./ordinal-B6-f3MAq.js";
6
6
  function ft(t, a) {
7
7
  return a < t ? -1 : a > t ? 1 : a >= t ? 0 : NaN;
@@ -1,5 +1,5 @@
1
- import { s as Ae, g as ke, t as ae, q as Fe, a as Pe, b as ve, _ as o, c as zt, l as bt, d as Lt, e as Ce, A as Le, I as z, i as Ee, a1 as De } from "./mermaid.core-wqUqC7-u.js";
2
- import { l as ie } from "./linear-D55SCqYq.js";
1
+ import { s as Ae, g as ke, t as ae, q as Fe, a as Pe, b as ve, _ as o, c as zt, l as bt, d as Lt, e as Ce, A as Le, I as z, i as Ee, a1 as De } from "./mermaid.core-CcRV6K2R.js";
2
+ import { l as ie } from "./linear-ClSH2F_v.js";
3
3
  var Et = (function() {
4
4
  var t = /* @__PURE__ */ o(function(Y, r, l, x) {
5
5
  for (l = l || {}, x = Y.length; x--; l[Y[x]] = r) ;
package/dist/record.js CHANGED
@@ -1,4 +1,4 @@
1
- import { ac as s, A as i, ad as n, ae as t, af as r, ag as o, ah as m, ai as l, aj as d, a as c, b as A, a0 as p, c as D, d as S, e as u, f as E, g, h as F, i as I, T as _, j as T, k as y, l as z, m as R, ak as M, al as N, am as q, an as C, a4 as V, ao as L, ap as f, a2 as x, aq as k, ar as P, as as B, a3 as K, at as O, n as b, o as h, p as G, q as Y, r as w, _ as Q, s as v, t as U, u as j, au as X, a9 as H, av as J, aw as W, ax as $, ay as Z, a7 as ee, az as ae, aA as se, a8 as ie, v as ne, w as te, aB as re, aC as oe, aD as me, aE as le, a1 as de, x as ce, y as Ae, z as pe, aa as De, B as Se, C as ue, D as Ee, E as ge, F as Fe, G as Ie, H as _e, I as Te, J as ye, K as ze, L as Re, $ as Me, M as Ne, N as qe, O as Ce, aF as Ve, P as Le, Q as fe, R as xe, S as ke, aG as Pe, a5 as Be, a6 as Ke } from "./index-Dtvv88SS.js";
1
+ import { ah as s, A as i, ai as n, aj as t, ak as r, al as o, am as m, an as l, W as d, a as c, b as A, a5 as p, c as D, d as S, e as u, f as E, g, h as F, i as I, T as _, j as T, k as y, l as z, m as R, ao as M, ap as N, aq as q, X as V, a9 as C, ar as L, as as f, a7 as x, at as k, au as P, av as B, a8 as K, aw as b, n as O, o as Y, p as h, q as G, r as w, a3 as Q, s as U, t as v, u as X, ax as j, ae as W, ay as H, az as J, aA as Z, aB as $, ac as ee, aC as ae, U as se, ad as ie, v as ne, w as te, aD as re, aE as oe, V as me, aF as le, a6 as de, x as ce, y as Ae, z as pe, af as De, B as Se, C as ue, D as Ee, E as ge, F as Fe, G as Ie, H as _e, I as Te, J as ye, K as ze, L as Re, a4 as Me, M as Ne, N as qe, O as Ve, aG as Ce, P as Le, Q as fe, R as xe, S as ke, Y as Pe, aa as Be, ab as Ke } from "./index-Dkrf2LJl.js";
2
2
  export {
3
3
  s as AIMD_AIRALOGY_FILE_ID_RE,
4
4
  i as AIMD_DNA_SEQUENCE_FORMAT,
@@ -27,8 +27,8 @@ export {
27
27
  M as getAimdAcceptFromExtension,
28
28
  N as getAimdAssetMediaSource,
29
29
  q as getAimdConfiguredFileExtension,
30
- C as getAimdDisplayValue,
31
- V as getAimdFileDisplayName,
30
+ V as getAimdDisplayValue,
31
+ C as getAimdFileDisplayName,
32
32
  L as getAimdFileExtension,
33
33
  f as getAimdFileExtensionFromTypeName,
34
34
  x as getAimdFileInputConfig,
@@ -36,22 +36,22 @@ export {
36
36
  P as getAimdFileKindFromMimeType,
37
37
  B as getAimdFileKindFromType,
38
38
  K as getAimdFileValueId,
39
- O as getAimdStringFromRecord,
40
- b as getDnaSequenceSegmentIssue,
41
- h as getNextDnaSequenceAnnotationId,
42
- G as getProtocolEstimatedDurationMs,
43
- Y as getProtocolRecordedDurationMs,
39
+ b as getAimdStringFromRecord,
40
+ O as getDnaSequenceSegmentIssue,
41
+ Y as getNextDnaSequenceAnnotationId,
42
+ h as getProtocolEstimatedDurationMs,
43
+ G as getProtocolRecordedDurationMs,
44
44
  w as getQuizDefaultValue,
45
45
  Q as getRecordDataSignature,
46
- v as getStepElapsedMs,
47
- U as getStepRemainingMs,
48
- j as hasRecordedStepDuration,
49
- X as inferAimdAssetKind,
50
- H as isAimdAiralogyFileId,
51
- J as isAimdBooleanType,
52
- W as isAimdCodeType,
53
- $ as isAimdDnaType,
54
- Z as isAimdEmbeddableAssetUrl,
46
+ U as getStepElapsedMs,
47
+ v as getStepRemainingMs,
48
+ X as hasRecordedStepDuration,
49
+ j as inferAimdAssetKind,
50
+ W as isAimdAiralogyFileId,
51
+ H as isAimdBooleanType,
52
+ J as isAimdCodeType,
53
+ Z as isAimdDnaType,
54
+ $ as isAimdEmbeddableAssetUrl,
55
55
  ee as isAimdFileLikeType,
56
56
  ae as isAimdMarkdownType,
57
57
  se as isAimdPlainRecord,
@@ -81,8 +81,8 @@ export {
81
81
  Me as parsePastedVarTableText,
82
82
  Ne as pauseStepTimer,
83
83
  qe as replaceSection,
84
- Ce as resetStepTimer,
85
- Ve as resolveAimdRecordData,
84
+ Ve as resetStepTimer,
85
+ Ce as resolveAimdRecordData,
86
86
  Le as resolveStepTimerMode,
87
87
  fe as serializeDnaSequenceToGenBank,
88
88
  xe as setStepChecked,
@@ -1,6 +1,6 @@
1
- import { g as ze } from "./chunk-55IACEB6-DQOKhaUL.js";
2
- import { s as Xe } from "./chunk-2J33WTMH-CP2V6jff.js";
3
- import { _ as f, F as Be, b as Je, a as Ze, s as et, g as tt, q as st, t as it, c as Ne, l as qe, A as rt, E as nt, p as at, r as lt, u as ct } from "./mermaid.core-wqUqC7-u.js";
1
+ import { g as ze } from "./chunk-55IACEB6-BPl3uHcA.js";
2
+ import { s as Xe } from "./chunk-2J33WTMH-oc-89G5c.js";
3
+ import { _ as f, F as Be, b as Je, a as Ze, s as et, g as tt, q as st, t as it, c as Ne, l as qe, A as rt, E as nt, p as at, r as lt, u as ct } from "./mermaid.core-CcRV6K2R.js";
4
4
  var Ce = (function() {
5
5
  var e = /* @__PURE__ */ f(function($, i, l, o) {
6
6
  for (l = l || {}, o = $.length; o--; l[$[o]] = i) ;
@@ -1,4 +1,4 @@
1
- import { q as xt, t as _t, s as vt, g as bt, b as St, a as wt, _ as y, c as lt, B as Lt, d as H, af as Et, A as At, k as Tt } from "./mermaid.core-wqUqC7-u.js";
1
+ import { q as xt, t as _t, s as vt, g as bt, b as St, a as wt, _ as y, c as lt, B as Lt, d as H, af as Et, A as At, k as Tt } from "./mermaid.core-CcRV6K2R.js";
2
2
  import { o as Mt } from "./ordinal-B6-f3MAq.js";
3
3
  function Nt(t) {
4
4
  for (var n = t.length / 6 | 0, s = new Array(n), a = 0; a < n; ) s[a] = "#" + t.slice(a * 6, ++a * 6);
@@ -1,6 +1,6 @@
1
- import { _ as g, o as er, c as $, d as Bt, l as at, j as Me, e as rr, f as ar, k as P, b as De, s as sr, q as ir, a as nr, g as or, t as cr, v as lr, J as hr, A as dr, i as Vt, u as Z, a2 as Q, a3 as Nt, a4 as Be, a5 as Tr, F as Wt, a6 as pr, a7 as Ve } from "./mermaid.core-wqUqC7-u.js";
2
- import { a as Er, b as re, g as dt, d as ur, e as ae, f as se } from "./chunk-ND2GUHAM-BrNrmeyL.js";
3
- import { I as fr } from "./chunk-QZHKN3VN-CII3oQmH.js";
1
+ import { _ as g, o as er, c as $, d as Bt, l as at, j as Me, e as rr, f as ar, k as P, b as De, s as sr, q as ir, a as nr, g as or, t as cr, v as lr, J as hr, A as dr, i as Vt, u as Z, a2 as Q, a3 as Nt, a4 as Be, a5 as Tr, F as Wt, a6 as pr, a7 as Ve } from "./mermaid.core-CcRV6K2R.js";
2
+ import { a as Er, b as re, g as dt, d as ur, e as ae, f as se } from "./chunk-ND2GUHAM-DQMvtYV7.js";
3
+ import { I as fr } from "./chunk-QZHKN3VN-DlCn3HON.js";
4
4
  var jt = (function() {
5
5
  var e = /* @__PURE__ */ g(function(ut, w, v, k) {
6
6
  for (v = v || {}, k = ut.length; k--; v[ut[k]] = w) ;
@@ -1,7 +1,7 @@
1
- import { s as R, a as W, S as N } from "./chunk-AQP2D5EJ-D7Pq-oug.js";
2
- import { _ as f, c as t, d as H, l as S, e as P, k as z, a9 as _, aa as U, a6 as C, u as F } from "./mermaid.core-wqUqC7-u.js";
3
- import { G as O } from "./graph-Cyx6ry93.js";
4
- import { l as J } from "./layout-CpB8OqeJ.js";
1
+ import { s as R, a as W, S as N } from "./chunk-AQP2D5EJ-D-R5sIr1.js";
2
+ import { _ as f, c as t, d as H, l as S, e as P, k as z, a9 as _, aa as U, a6 as C, u as F } from "./mermaid.core-CcRV6K2R.js";
3
+ import { G as O } from "./graph-CpOkL_eZ.js";
4
+ import { l as J } from "./layout-BZYprqYR.js";
5
5
  var X = /* @__PURE__ */ f((e) => e.append("circle").attr("class", "start-state").attr("r", t().state.sizeUnit).attr("cx", t().state.padding + t().state.sizeUnit).attr("cy", t().state.padding + t().state.sizeUnit), "drawStartState"), D = /* @__PURE__ */ f((e) => e.append("line").style("stroke", "grey").style("stroke-dasharray", "3").attr("x1", t().state.textHeight).attr("class", "divider").attr("x2", t().state.textHeight * 2).attr("y1", 0).attr("y2", 0), "drawDivider"), Y = /* @__PURE__ */ f((e, i) => {
6
6
  const d = e.append("text").attr("x", 2 * t().state.padding).attr("y", t().state.textHeight + 2 * t().state.padding).attr("font-size", t().state.fontSize).attr("class", "state-title").text(i.id), c = d.node().getBBox();
7
7
  return e.insert("rect", ":first-child").attr("x", t().state.padding).attr("y", t().state.padding).attr("width", c.width + 2 * t().state.padding).attr("height", c.height + 2 * t().state.padding).attr("rx", t().state.radius), d;
@@ -1,5 +1,5 @@
1
- import { s as a, b as t, a as r, S as s } from "./chunk-AQP2D5EJ-D7Pq-oug.js";
2
- import { _ as i } from "./mermaid.core-wqUqC7-u.js";
1
+ import { s as a, b as t, a as r, S as s } from "./chunk-AQP2D5EJ-D-R5sIr1.js";
2
+ import { _ as i } from "./mermaid.core-CcRV6K2R.js";
3
3
  var _ = {
4
4
  parser: r,
5
5
  get db() {
@@ -1,5 +1,5 @@
1
- import { _ as o, F as gt, ac as Rt, ad as Ct, ae as Wt, c as pt, l as E, L as Pt, a4 as Bt, af as ft, d as X, E as Vt, ag as Ft, A as zt } from "./mermaid.core-wqUqC7-u.js";
2
- import { d as ot } from "./arc-YTgUVhxi.js";
1
+ import { _ as o, F as gt, ac as Rt, ad as Ct, ae as Wt, c as pt, l as E, L as Pt, a4 as Bt, af as ft, d as X, E as Vt, ag as Ft, A as zt } from "./mermaid.core-CcRV6K2R.js";
2
+ import { d as ot } from "./arc-B50G9-kH.js";
3
3
  var tt = (function() {
4
4
  var e = /* @__PURE__ */ o(function(k, s, d, l) {
5
5
  for (d = d || {}, l = k.length; l--; d[k[l]] = s) ;
@@ -1,4 +1,4 @@
1
- import { a1 as ge, E as Re, a2 as _r, a3 as Cr, a4 as Ar, a5 as kr, a6 as Er, a7 as Ir, a8 as Nr, a9 as Tr, I as Pr, y as Vr, k as Or, L as Lr, U as Rr, V as Fr } from "./index-Dtvv88SS.js";
1
+ import { a6 as ge, E as Re, a7 as _r, a8 as Cr, a9 as Ar, aa as kr, ab as Er, ac as Ir, ad as Nr, ae as Tr, I as Pr, y as Vr, k as Or, L as Lr, Z as Rr, _ as Fr } from "./index-Dkrf2LJl.js";
2
2
  import { defineAsyncComponent as xi, h as ri, reactive as Mr, shallowRef as Dr, onMounted as Br, onBeforeUnmount as jr } from "vue";
3
3
  import { createCodeBlockRenderer as $r, loadShikiHighlighter as Ur } from "@airalogy/aimd-renderer";
4
4
  const zr = {
@@ -61,7 +61,7 @@ function Hr(e, t) {
61
61
  function vi(e, t) {
62
62
  return Hr(e, t) !== null;
63
63
  }
64
- const Gr = xi(() => import("./AimdDnaSequenceField-Cp0cgBYl.js")), Jr = xi(() => import("./AimdMarkdownField-Vp72mf5d.js")), Qr = qr.map((e) => ({
64
+ const Gr = xi(() => import("./AimdDnaSequenceField-Bhj28fP8.js")), Jr = xi(() => import("./AimdMarkdownField-GS15pv4z.js")), Qr = qr.map((e) => ({
65
65
  type: e,
66
66
  inputKind: "code"
67
67
  }));
@@ -1,4 +1,4 @@
1
- import { aU as Gt, s as Wt, g as Kt, t as Ht, q as Yt, a as Xt, b as Zt, _ as w, F as wt, L as Jt, d as ot, al as Qt, ac as $t, ad as te, ae as ee, e as ne, A as se, H as ie, I as oe } from "./mermaid.core-wqUqC7-u.js";
1
+ import { aU as Gt, s as Wt, g as Kt, t as Ht, q as Yt, a as Xt, b as Zt, _ as w, F as wt, L as Jt, d as ot, al as Qt, ac as $t, ad as te, ae as ee, e as ne, A as se, H as ie, I as oe } from "./mermaid.core-CcRV6K2R.js";
2
2
  const kt = (t, n) => Gt(t, "a", -n), _t = 1e-10;
3
3
  function st(t, n) {
4
4
  const s = ae(t), e = s.filter((c) => re(c, t));
@@ -1,5 +1,5 @@
1
- import { s as Mt, g as Nt, t as Lt, q as zt, a as Tt, b as At, _ as u, a1 as Xt, F as Et, H as J, l as Q, L as Yt, e as It, A as Ft, c as V } from "./mermaid.core-wqUqC7-u.js";
2
- import { p as Bt } from "./chunk-4BX2VUAB-CbWr2vv6.js";
1
+ import { s as Mt, g as Nt, t as Lt, q as zt, a as Tt, b as At, _ as u, a1 as Xt, F as Et, H as J, l as Q, L as Yt, e as It, A as Ft, c as V } from "./mermaid.core-CcRV6K2R.js";
2
+ import { p as Bt } from "./chunk-4BX2VUAB-BDJS9G3r.js";
3
3
  import { p as Rt } from "./wardley-L42UT6IY-D7b2ujEZ.js";
4
4
  var G = /* @__PURE__ */ u((o, r) => {
5
5
  const e = o <= 1 ? o * 100 : o;
@@ -1,7 +1,7 @@
1
- import { s as gi, g as xi, t as Xt, q as di, a as fi, b as pi, _ as a, l as Yt, L as mi, e as yi, A as bi, F as _t, i as Ai, H as Nt, I as wi, a1 as Ci, am as Si, a9 as Wt } from "./mermaid.core-wqUqC7-u.js";
1
+ import { s as gi, g as xi, t as Xt, q as di, a as fi, b as pi, _ as a, l as Yt, L as mi, e as yi, A as bi, F as _t, i as Ai, H as Nt, I as wi, a1 as Ci, am as Si, a9 as Wt } from "./mermaid.core-CcRV6K2R.js";
2
2
  import { i as _i } from "./init-DjUOC4st.js";
3
3
  import { o as ki } from "./ordinal-B6-f3MAq.js";
4
- import { l as zt } from "./linear-D55SCqYq.js";
4
+ import { l as zt } from "./linear-ClSH2F_v.js";
5
5
  function Ri(e, t, i) {
6
6
  e = +e, t = +t, i = (n = arguments.length) < 2 ? (t = e, e = 0, 1) : n < 3 ? 1 : +i;
7
7
  for (var s = -1, n = Math.max(0, Math.ceil((t - e) / i)) | 0, o = new Array(n); ++s < n; )
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@airalogy/aimd-recorder",
3
3
  "type": "module",
4
- "version": "1.21.0",
4
+ "version": "1.22.0",
5
5
  "description": "AIMD (Airalogy Markdown) recorder Vue components and UI",
6
6
  "license": "Apache-2.0",
7
7
  "repository": {
@@ -63,9 +63,9 @@
63
63
  "react": "^19.2.4",
64
64
  "react-dom": "^19.2.4",
65
65
  "seqviz": "^3.10.18",
66
- "@airalogy/aimd-editor": "^1.10.0",
67
- "@airalogy/aimd-core": "^2.12.0",
68
- "@airalogy/aimd-renderer": "^2.9.1"
66
+ "@airalogy/aimd-core": "^2.13.0",
67
+ "@airalogy/aimd-renderer": "^2.10.0",
68
+ "@airalogy/aimd-editor": "^1.10.0"
69
69
  },
70
70
  "devDependencies": {
71
71
  "@types/node": "^24.3.0",
@@ -0,0 +1,108 @@
1
+ import { readFileSync } from 'node:fs'
2
+ import { dirname, resolve } from 'node:path'
3
+ import { fileURLToPath } from 'node:url'
4
+ import { flushPromises, mount } from '@vue/test-utils'
5
+ import { describe, expect, it, vi } from 'vitest'
6
+
7
+ import AimdRecorder from '../components/AimdRecorder.vue'
8
+
9
+ vi.mock('../components/AimdCodeField.vue', () => ({
10
+ __esModule: true,
11
+ default: {
12
+ name: 'AimdCodeField',
13
+ props: ['modelValue', 'language', 'disabled', 'compact'],
14
+ emits: ['update:modelValue', 'blur'],
15
+ template: '<textarea class="aimd-code-field-stub" :value="modelValue" :disabled="disabled" @input="$emit(\'update:modelValue\', $event.target.value)" @blur="$emit(\'blur\')" />',
16
+ },
17
+ }))
18
+
19
+ const __filename = fileURLToPath(import.meta.url)
20
+ const __dirname = dirname(__filename)
21
+ const recorderSource = readFileSync(resolve(__dirname, '../components/AimdRecorder.vue'), 'utf8')
22
+ const searchToolbarSource = readFileSync(resolve(__dirname, '../components/AimdRecorderSearchToolbar.vue'), 'utf8')
23
+ const recordSearchSource = readFileSync(resolve(__dirname, '../composables/useRecordSearch.ts'), 'utf8')
24
+ const recorderSurfaceStyles = readFileSync(resolve(__dirname, '../styles/recorder-surface.css'), 'utf8')
25
+
26
+ describe('AimdRecorder record search', () => {
27
+ it('keeps search state and toolbar rendering outside the main recorder component', () => {
28
+ expect(recorderSource).toContain('useRecordSearch')
29
+ expect(recorderSource).toContain('<AimdRecorderSearchToolbar')
30
+ expect(recordSearchSource).toContain('searchAimdRecordFields')
31
+ expect(recordSearchSource).toContain('collectAimdRecordFieldRefs')
32
+ expect(recordSearchSource).toContain('setSelectionRange')
33
+ expect(searchToolbarSource).toContain('data-rec-search-toggle')
34
+ })
35
+
36
+ it('keeps the sticky search toolbar flush with recorder gutters', () => {
37
+ expect(recorderSurfaceStyles).toMatch(/\.aimd-protocol-recorder \{[\s\S]*?--aimd-recorder-gutter-x: 0px;[\s\S]*?padding: 0 var\(--aimd-recorder-gutter-x\) var\(--aimd-recorder-gutter-bottom\);/)
38
+ expect(searchToolbarSource).toContain('position: sticky;')
39
+ expect(searchToolbarSource).toContain('--aimd-recorder-search-sticky-top')
40
+ expect(searchToolbarSource).toMatch(/\.aimd-protocol-recorder__search-shell \{[\s\S]*?margin-inline: calc\(-1 \* var\(--aimd-recorder-gutter-x\)\);[\s\S]*?background: transparent;[\s\S]*?pointer-events: none;/)
41
+ expect(searchToolbarSource).toMatch(/\.aimd-protocol-recorder__search-shell--expanded \{[\s\S]*?padding-inline: var\(--aimd-recorder-gutter-x\);[\s\S]*?background: #f8fbff;[\s\S]*?pointer-events: auto;/)
42
+ expect(searchToolbarSource).toMatch(/\.aimd-protocol-recorder__search \{[\s\S]*?border: 0;[\s\S]*?box-shadow: none;/)
43
+ expect(recorderSurfaceStyles).toContain('aimd-field--record-search-pulse')
44
+ expect(recorderSurfaceStyles).toContain('@keyframes aimd-rec-record-search-pulse')
45
+ })
46
+
47
+ it('searches the current record and highlights matching fields in AimdRecorder', async () => {
48
+ const wrapper = mount(AimdRecorder, {
49
+ props: {
50
+ content: 'Reaction: {{var|reaction_note: str}} Other: {{var|other_note: str}}',
51
+ locale: 'en-US',
52
+ modelValue: {
53
+ var: {
54
+ reaction_note: 'heated sample',
55
+ other_note: 'cold sample',
56
+ },
57
+ step: {},
58
+ check: {},
59
+ quiz: {},
60
+ },
61
+ },
62
+ })
63
+
64
+ await flushPromises()
65
+ await wrapper.vm.$nextTick()
66
+ await vi.dynamicImportSettled()
67
+ await wrapper.vm.$nextTick()
68
+
69
+ expect(wrapper.find('input[type="search"]').exists()).toBe(false)
70
+ expect(wrapper.find('.aimd-protocol-recorder__search-shell').exists()).toBe(true)
71
+
72
+ const toggle = wrapper.find('[data-rec-search-toggle]')
73
+ expect(toggle.exists()).toBe(true)
74
+ await toggle.trigger('click')
75
+ await wrapper.vm.$nextTick()
76
+
77
+ const input = wrapper.find('input[type="search"]')
78
+ expect(input.exists()).toBe(true)
79
+
80
+ await input.setValue('heated')
81
+ await flushPromises()
82
+ await wrapper.vm.$nextTick()
83
+
84
+ expect(wrapper.text()).toContain('1 / 1')
85
+ expect(wrapper.find('.aimd-field--record-search-match').exists()).toBe(true)
86
+ expect(wrapper.find('.aimd-field--record-search-active').exists()).toBe(true)
87
+
88
+ await input.trigger('keydown.enter')
89
+ await flushPromises()
90
+ await wrapper.vm.$nextTick()
91
+ await flushPromises()
92
+ await wrapper.vm.$nextTick()
93
+
94
+ const matchedControl = wrapper.find('[data-rec-focus-key="var:reaction_note"]')
95
+ expect(matchedControl.exists()).toBe(true)
96
+ expect((matchedControl.element as HTMLInputElement | HTMLTextAreaElement).selectionStart).toBe(0)
97
+ expect((matchedControl.element as HTMLInputElement | HTMLTextAreaElement).selectionEnd).toBe('heated'.length)
98
+ expect(wrapper.find('.aimd-field--record-search-pulse').exists()).toBe(true)
99
+
100
+ const fieldSelect = wrapper.find('.aimd-protocol-recorder__search-field')
101
+ await fieldSelect.setValue('var:other_note')
102
+ await flushPromises()
103
+ await wrapper.vm.$nextTick()
104
+
105
+ expect(wrapper.text()).toContain('No matches')
106
+ expect(wrapper.find('.aimd-field--record-search-match').exists()).toBe(false)
107
+ })
108
+ })
@@ -32,6 +32,7 @@ const recorderSource = readFileSync(resolve(__dirname, '../components/AimdRecord
32
32
  const markdownNoteSource = readFileSync(resolve(__dirname, '../components/AimdMarkdownNoteField.vue'), 'utf8')
33
33
  const varHelpersSource = readFileSync(resolve(__dirname, '../composables/useVarHelpers.ts'), 'utf8')
34
34
  const recorderStyles = readFileSync(resolve(__dirname, '../styles/recorder.css'), 'utf8')
35
+ const recorderSurfaceStyles = readFileSync(resolve(__dirname, '../styles/recorder-surface.css'), 'utf8')
35
36
  const rendererStyles = readFileSync(resolve(__dirname, '../../../aimd-renderer/src/styles/renderer.css'), 'utf8')
36
37
 
37
38
  describe('AimdVarField render behavior', () => {
@@ -78,6 +79,7 @@ describe('AimdVarField render behavior', () => {
78
79
  expect(recorderSource).toContain('class="aimd-protocol-recorder__content aimd-renderer"')
79
80
  expect(markdownFieldSource).toContain('class="aimd-markdown-field__preview aimd-renderer"')
80
81
  expect(markdownNoteSource).toContain('class="aimd-markdown-note-field__preview aimd-renderer"')
82
+ expect(recorderStyles).toContain('@import "./recorder-surface.css";')
81
83
  expect(recorderStyles).toContain('.aimd-field--editable')
82
84
  expect(recorderStyles).toContain('.aimd-field--no-style')
83
85
  expect(recorderStyles).toContain('.aimd-field-wrapper--inline')
@@ -117,15 +119,15 @@ describe('AimdVarField render behavior', () => {
117
119
  })
118
120
 
119
121
  it('renders editable table cell values without inherited italic preview styling', () => {
120
- expect(recorderSource).toMatch(/\.aimd-protocol-recorder__content :deep\(\.aimd-rec-table-cell-input\) \{[\s\S]*?font-style: normal;/)
122
+ expect(recorderSurfaceStyles).toMatch(/\.aimd-protocol-recorder__content \.aimd-rec-table-cell-input \{[\s\S]*?font-style: normal;/)
121
123
  })
122
124
 
123
125
  it('keeps card-style table rows compact in dense recorder layouts', () => {
124
- expect(recorderSource).toMatch(/\.aimd-protocol-recorder__content :deep\(\.aimd-rec-card-list\) \{[\s\S]*?gap: 8px;/)
125
- expect(recorderSource).toMatch(/\.aimd-protocol-recorder__content :deep\(\.aimd-rec-card\) \{[\s\S]*?padding: 7px 10px 9px;/)
126
- expect(recorderSource).toMatch(/\.aimd-protocol-recorder__content :deep\(\.aimd-rec-card__field\) \{[\s\S]*?padding-top: 6px;[\s\S]*?margin-top: 6px;/)
127
- expect(recorderSource).toMatch(/\.aimd-protocol-recorder__content :deep\(\.aimd-rec-card__input\) \{[\s\S]*?height: 30px;/)
128
- expect(recorderSource).toContain('.aimd-rec-card .aimd-rec-inline-table__drag-handle')
126
+ expect(recorderSurfaceStyles).toMatch(/\.aimd-protocol-recorder__content \.aimd-rec-card-list \{[\s\S]*?gap: 8px;/)
127
+ expect(recorderSurfaceStyles).toMatch(/\.aimd-protocol-recorder__content \.aimd-rec-card \{[\s\S]*?padding: 7px 10px 9px;/)
128
+ expect(recorderSurfaceStyles).toMatch(/\.aimd-protocol-recorder__content \.aimd-rec-card__field \{[\s\S]*?padding-top: 6px;[\s\S]*?margin-top: 6px;/)
129
+ expect(recorderSurfaceStyles).toMatch(/\.aimd-protocol-recorder__content \.aimd-rec-card__input \{[\s\S]*?height: 30px;/)
130
+ expect(recorderSurfaceStyles).toContain('.aimd-rec-card .aimd-rec-inline-table__drag-handle')
129
131
  })
130
132
 
131
133
  it('shows visible row numbers for table and card var_table layouts', () => {
@@ -133,67 +135,67 @@ describe('AimdVarField render behavior', () => {
133
135
  expect(varTableSource).toContain('aimd-rec-inline-table__row-control')
134
136
  expect(varTableSource).toContain('aimd-rec-card__row-meta')
135
137
  expect(varTableSource).toContain('aimd-rec-inline-table__row-head-label')
136
- expect(recorderSource).toMatch(/\.aimd-protocol-recorder__content :deep\(\.aimd-rec-inline-table__row-number\) \{[\s\S]*?font-variant-numeric: tabular-nums;/)
137
- expect(recorderSource).toMatch(/\.aimd-protocol-recorder__content :deep\(\.aimd-rec-inline-table__row-number\) \{[\s\S]*?background: transparent;[\s\S]*?font-style: normal;/)
138
+ expect(recorderSurfaceStyles).toMatch(/\.aimd-protocol-recorder__content \.aimd-rec-inline-table__row-number \{[\s\S]*?font-variant-numeric: tabular-nums;/)
139
+ expect(recorderSurfaceStyles).toMatch(/\.aimd-protocol-recorder__content \.aimd-rec-inline-table__row-number \{[\s\S]*?background: transparent;[\s\S]*?font-style: normal;/)
138
140
  })
139
141
 
140
142
  it('clips plain stacked var controls so rounded corners render cleanly', () => {
141
- expect(recorderSource).toMatch(/\.aimd-protocol-recorder__content :deep\(\.aimd-rec-inline--var-stacked\) \{[\s\S]*?overflow: hidden;/)
142
- expect(recorderSource).toMatch(/\.aimd-protocol-recorder__content :deep\(\.aimd-rec-inline--var-stacked:has\(\.aimd-field__metadata-host\)\) \{[\s\S]*?overflow: visible;/)
143
- expect(recorderSource).toMatch(/\.aimd-protocol-recorder__content :deep\(\.aimd-rec-inline--has-assigner-control\) \{[\s\S]*?overflow: hidden;/)
143
+ expect(recorderSurfaceStyles).toMatch(/\.aimd-protocol-recorder__content \.aimd-rec-inline--var-stacked \{[\s\S]*?overflow: hidden;/)
144
+ expect(recorderSurfaceStyles).toMatch(/\.aimd-protocol-recorder__content \.aimd-rec-inline--var-stacked:has\(\.aimd-field__metadata-host\) \{[\s\S]*?overflow: visible;/)
145
+ expect(recorderSurfaceStyles).toMatch(/\.aimd-protocol-recorder__content \.aimd-rec-inline--has-assigner-control \{[\s\S]*?overflow: hidden;/)
144
146
  })
145
147
 
146
148
  it('lets stacked var fields widen before wrapping long metadata keys', () => {
147
- expect(recorderSource).toMatch(/\.aimd-protocol-recorder__content :deep\(\.aimd-rec-inline--var-stacked\) \{[\s\S]*?width: max-content;/)
148
- expect(recorderSource).toMatch(/\.aimd-protocol-recorder__content :deep\(\.aimd-rec-inline--var-stacked \.aimd-field--no-style\.aimd-field__label\) \{[\s\S]*?flex-wrap: nowrap;/)
149
- expect(recorderSource).toMatch(/\.aimd-protocol-recorder__content :deep\(\.aimd-rec-inline--var-stacked \.aimd-field__scope\) \{[\s\S]*?flex: 0 0 auto;[\s\S]*?white-space: nowrap;/)
150
- expect(recorderSource).toMatch(/\.aimd-protocol-recorder__content :deep\(\.aimd-rec-inline--var-stacked \.aimd-field__name\) \{[\s\S]*?flex: 0 0 auto;[\s\S]*?min-width: max-content;/)
151
- expect(recorderSource).toMatch(/\.aimd-protocol-recorder__content :deep\(\.aimd-rec-inline--var-stacked \.aimd-field__key\) \{[\s\S]*?overflow: visible;[\s\S]*?white-space: nowrap;/)
149
+ expect(recorderSurfaceStyles).toMatch(/\.aimd-protocol-recorder__content \.aimd-rec-inline--var-stacked \{[\s\S]*?width: max-content;/)
150
+ expect(recorderSurfaceStyles).toMatch(/\.aimd-protocol-recorder__content \.aimd-rec-inline--var-stacked \.aimd-field--no-style\.aimd-field__label \{[\s\S]*?flex-wrap: nowrap;/)
151
+ expect(recorderSurfaceStyles).toMatch(/\.aimd-protocol-recorder__content \.aimd-rec-inline--var-stacked \.aimd-field__scope \{[\s\S]*?flex: 0 0 auto;[\s\S]*?white-space: nowrap;/)
152
+ expect(recorderSurfaceStyles).toMatch(/\.aimd-protocol-recorder__content \.aimd-rec-inline--var-stacked \.aimd-field__name \{[\s\S]*?flex: 0 0 auto;[\s\S]*?min-width: max-content;/)
153
+ expect(recorderSurfaceStyles).toMatch(/\.aimd-protocol-recorder__content \.aimd-rec-inline--var-stacked \.aimd-field__key \{[\s\S]*?overflow: visible;[\s\S]*?white-space: nowrap;/)
152
154
  })
153
155
 
154
156
  it('keeps complex markdown tables scrollable without expanding the recorder', () => {
155
- expect(recorderSource).toMatch(/\.aimd-protocol-recorder__content :deep\(table:not\(\.aimd-rec-inline-table__table\):not\(\.aimd-scale__table\)\) \{[\s\S]*?display: block;[\s\S]*?max-width: 100%;[\s\S]*?overflow-x: auto;/)
156
- expect(recorderSource).toMatch(/\.aimd-protocol-recorder__content :deep\(table:not\(\.aimd-rec-inline-table__table\):not\(\.aimd-scale__table\) th:first-child\),[\s\S]*?\.aimd-protocol-recorder__content :deep\(table:not\(\.aimd-rec-inline-table__table\):not\(\.aimd-scale__table\) td:first-child\) \{[\s\S]*?position: sticky;[\s\S]*?left: 0;/)
157
- expect(recorderSource).toMatch(/\.aimd-protocol-recorder__content :deep\(table:not\(\.aimd-rec-inline-table__table\):not\(\.aimd-scale__table\) td:has\(\.aimd-rec-inline--var-stacked\)\) \{[\s\S]*?min-width: min\(360px, 80vw\);[\s\S]*?max-width: min\(680px, 80vw\);/)
158
- expect(recorderSource).toMatch(/\.aimd-protocol-recorder__content :deep\(table:not\(\.aimd-rec-inline-table__table\):not\(\.aimd-scale__table\) \.aimd-rec-inline--var-stacked\) \{[\s\S]*?width: max-content;[\s\S]*?max-width: min\(680px, 100%\);/)
159
- expect(recorderSource).toMatch(/\.aimd-protocol-recorder__content :deep\(table:not\(\.aimd-rec-inline-table__table\):not\(\.aimd-scale__table\) \.aimd-rec-inline--var-stacked \.aimd-field__title\),[\s\S]*?\.aimd-protocol-recorder__content :deep\(table:not\(\.aimd-rec-inline-table__table\):not\(\.aimd-scale__table\) \.aimd-rec-inline--var-stacked \.aimd-field__key\) \{[\s\S]*?overflow-wrap: break-word;[\s\S]*?white-space: normal;[\s\S]*?word-break: normal;/)
157
+ expect(recorderSurfaceStyles).toMatch(/\.aimd-protocol-recorder__content table:not\(\.aimd-rec-inline-table__table\):not\(\.aimd-scale__table\) \{[\s\S]*?display: block;[\s\S]*?max-width: 100%;[\s\S]*?overflow-x: auto;/)
158
+ expect(recorderSurfaceStyles).toMatch(/\.aimd-protocol-recorder__content table:not\(\.aimd-rec-inline-table__table\):not\(\.aimd-scale__table\) th:first-child,[\s\S]*?\.aimd-protocol-recorder__content table:not\(\.aimd-rec-inline-table__table\):not\(\.aimd-scale__table\) td:first-child \{[\s\S]*?position: sticky;[\s\S]*?left: 0;/)
159
+ expect(recorderSurfaceStyles).toMatch(/\.aimd-protocol-recorder__content table:not\(\.aimd-rec-inline-table__table\):not\(\.aimd-scale__table\) td:has\(\.aimd-rec-inline--var-stacked\) \{[\s\S]*?min-width: min\(360px, 80vw\);[\s\S]*?max-width: min\(680px, 80vw\);/)
160
+ expect(recorderSurfaceStyles).toMatch(/\.aimd-protocol-recorder__content table:not\(\.aimd-rec-inline-table__table\):not\(\.aimd-scale__table\) \.aimd-rec-inline--var-stacked \{[\s\S]*?width: max-content;[\s\S]*?max-width: min\(680px, 100%\);/)
161
+ expect(recorderSurfaceStyles).toMatch(/\.aimd-protocol-recorder__content table:not\(\.aimd-rec-inline-table__table\):not\(\.aimd-scale__table\) \.aimd-rec-inline--var-stacked \.aimd-field__title,[\s\S]*?\.aimd-protocol-recorder__content table:not\(\.aimd-rec-inline-table__table\):not\(\.aimd-scale__table\) \.aimd-rec-inline--var-stacked \.aimd-field__key \{[\s\S]*?overflow-wrap: break-word;[\s\S]*?white-space: normal;[\s\S]*?word-break: normal;/)
160
162
  expect(source).toContain('class: "aimd-field__title", title: displayTitle')
161
163
  expect(source).toContain('class: "aimd-field__key", title: id')
162
164
  })
163
165
 
164
166
  it('normalizes stacked var value typography across native control types', () => {
165
- expect(recorderSource).toContain('--rec-body-font-size: 14px;')
166
- expect(recorderSource).toContain('--rec-var-value-font-size: var(--rec-body-font-size);')
167
- expect(recorderSource).toMatch(/\.aimd-protocol-recorder__content \{[\s\S]*?font-size: var\(--rec-body-font-size\);/)
167
+ expect(recorderSurfaceStyles).toContain('--rec-body-font-size: 14px;')
168
+ expect(recorderSurfaceStyles).toContain('--rec-var-value-font-size: var(--rec-body-font-size);')
169
+ expect(recorderSurfaceStyles).toMatch(/\.aimd-protocol-recorder__content \{[\s\S]*?font-size: var\(--rec-body-font-size\);/)
168
170
  expect(source).toContain('aimd-rec-inline__value-control aimd-rec-inline__input aimd-rec-inline__input--stacked')
169
171
  expect(source).toContain('aimd-rec-inline__value-control aimd-rec-inline__textarea aimd-rec-inline__textarea--stacked')
170
- expect(recorderSource).toMatch(/\.aimd-protocol-recorder__content :deep\(\.aimd-rec-inline--var-stacked \.aimd-rec-inline__value-control\) \{[\s\S]*?font: inherit;[\s\S]*?font-size: var\(--rec-var-value-font-size\);/)
171
- expect(recorderSource).toContain('.aimd-rec-inline__value-control::-webkit-datetime-edit')
172
+ expect(recorderSurfaceStyles).toMatch(/\.aimd-protocol-recorder__content \.aimd-rec-inline--var-stacked \.aimd-rec-inline__value-control \{[\s\S]*?font: inherit;[\s\S]*?font-size: var\(--rec-var-value-font-size\);/)
173
+ expect(recorderSurfaceStyles).toContain('.aimd-rec-inline__value-control::-webkit-datetime-edit')
172
174
  })
173
175
 
174
176
  it('uses wrapped line-numbered code blocks in recorder markdown output', () => {
175
177
  expect(recorderSource).toContain('useCodeBlockRendering')
176
178
  expect(recorderSource).toMatch(/elementRenderers:\s*\{\s*pre: codeBlockPreRenderer/)
177
- expect(recorderSource).toMatch(/\.aimd-protocol-recorder__content :deep\(\.aimd-code-block\) \{[\s\S]*?overflow: hidden;/)
178
- expect(recorderSource).toMatch(/\.aimd-protocol-recorder__content :deep\(\.aimd-code-block__line\) \{[\s\S]*?grid-template-columns: max-content minmax\(0, 1fr\);/)
179
- expect(recorderSource).toMatch(/\.aimd-protocol-recorder__content :deep\(\.aimd-code-block__line-code\) \{[\s\S]*?white-space: pre-wrap;[\s\S]*?overflow-wrap: anywhere;/)
180
- expect(recorderSource).toMatch(/\.aimd-protocol-recorder__content :deep\(\.aimd-code-block--wrap \.aimd-code-block__line-code\) \{[\s\S]*?text-indent: calc\(-1 \* var\(--aimd-code-wrap-indent, 0ch\)\);/)
179
+ expect(recorderSurfaceStyles).toMatch(/\.aimd-protocol-recorder__content \.aimd-code-block \{[\s\S]*?overflow: hidden;/)
180
+ expect(recorderSurfaceStyles).toMatch(/\.aimd-protocol-recorder__content \.aimd-code-block__line \{[\s\S]*?grid-template-columns: max-content minmax\(0, 1fr\);/)
181
+ expect(recorderSurfaceStyles).toMatch(/\.aimd-protocol-recorder__content \.aimd-code-block__line-code \{[\s\S]*?white-space: pre-wrap;[\s\S]*?overflow-wrap: anywhere;/)
182
+ expect(recorderSurfaceStyles).toMatch(/\.aimd-protocol-recorder__content \.aimd-code-block--wrap \.aimd-code-block__line-code \{[\s\S]*?text-indent: calc\(-1 \* var\(--aimd-code-wrap-indent, 0ch\)\);/)
181
183
  })
182
184
 
183
185
  it('lets block recorder fields fill the available panel width', () => {
184
- expect(recorderSource).toMatch(/\.aimd-protocol-recorder__content :deep\(\.aimd-rec-inline--var-markdown\) \{[\s\S]*?width: 100%;[\s\S]*?box-sizing: border-box;/)
185
- expect(recorderSource).toMatch(/\.aimd-protocol-recorder__content :deep\(\.aimd-rec-inline--step\) \{[\s\S]*?width: 100%;[\s\S]*?box-sizing: border-box;/)
186
- expect(recorderSource).toMatch(/\.aimd-protocol-recorder__content :deep\(\.aimd-rec-inline--check\) \{[\s\S]*?width: 100%;/)
187
- expect(recorderSource).not.toContain('width: min(100%, 1040px);')
186
+ expect(recorderSurfaceStyles).toMatch(/\.aimd-protocol-recorder__content \.aimd-rec-inline--var-markdown \{[\s\S]*?width: 100%;[\s\S]*?box-sizing: border-box;/)
187
+ expect(recorderSurfaceStyles).toMatch(/\.aimd-protocol-recorder__content \.aimd-rec-inline--step \{[\s\S]*?width: 100%;[\s\S]*?box-sizing: border-box;/)
188
+ expect(recorderSurfaceStyles).toMatch(/\.aimd-protocol-recorder__content \.aimd-rec-inline--check \{[\s\S]*?width: 100%;/)
189
+ expect(recorderSurfaceStyles).not.toContain('width: min(100%, 1040px);')
188
190
  })
189
191
 
190
192
  it('keeps step body content inside the step card width', () => {
191
- expect(recorderSource).toMatch(/\.aimd-protocol-recorder__content :deep\(\.aimd-step-field__body\) \{[\s\S]*?width: 100%;[\s\S]*?max-width: 100%;[\s\S]*?overflow-wrap: anywhere;/)
192
- expect(recorderSource).toMatch(/\.aimd-protocol-recorder__content :deep\(\.aimd-step-field__body \.aimd-step-body\) \{[\s\S]*?width: 100%;[\s\S]*?min-width: 0;[\s\S]*?max-width: 100%;/)
193
- expect(recorderSource).toMatch(/\.aimd-protocol-recorder__content :deep\(\.aimd-step-field__body \.aimd-step-body > \*\) \{[\s\S]*?min-width: 0;[\s\S]*?max-width: 100%;[\s\S]*?overflow-wrap: anywhere;/)
194
- expect(recorderSource).toMatch(/\.aimd-protocol-recorder__content :deep\(\.aimd-step-field__body \.aimd-rec-inline--var-markdown\),\n\.aimd-protocol-recorder__content :deep\(\.aimd-step-field__body \.aimd-field--var-table\) \{[\s\S]*?width: 100%;[\s\S]*?max-width: 100%;/)
195
- expect(recorderSource).toMatch(/\.aimd-protocol-recorder__content :deep\(\.aimd-step-field__body \.aimd-field--var-table\) \{[\s\S]*?overflow-x: auto;/)
196
- expect(recorderSource).not.toContain('line-height: 1.72;')
193
+ expect(recorderSurfaceStyles).toMatch(/\.aimd-protocol-recorder__content \.aimd-step-field__body \{[\s\S]*?width: 100%;[\s\S]*?max-width: 100%;[\s\S]*?overflow-wrap: anywhere;/)
194
+ expect(recorderSurfaceStyles).toMatch(/\.aimd-protocol-recorder__content \.aimd-step-field__body \.aimd-step-body \{[\s\S]*?width: 100%;[\s\S]*?min-width: 0;[\s\S]*?max-width: 100%;/)
195
+ expect(recorderSurfaceStyles).toMatch(/\.aimd-protocol-recorder__content \.aimd-step-field__body \.aimd-step-body > \* \{[\s\S]*?min-width: 0;[\s\S]*?max-width: 100%;[\s\S]*?overflow-wrap: anywhere;/)
196
+ expect(recorderSurfaceStyles).toMatch(/\.aimd-protocol-recorder__content \.aimd-step-field__body \.aimd-rec-inline--var-markdown,[\s\S]*?\.aimd-protocol-recorder__content \.aimd-step-field__body \.aimd-field--var-table \{[\s\S]*?width: 100%;[\s\S]*?max-width: 100%;/)
197
+ expect(recorderSurfaceStyles).toMatch(/\.aimd-protocol-recorder__content \.aimd-step-field__body \.aimd-field--var-table \{[\s\S]*?overflow-x: auto;/)
198
+ expect(recorderSurfaceStyles).not.toContain('line-height: 1.72;')
197
199
  })
198
200
 
199
201
  it('renders file-like vars with a native file picker control', async () => {
@@ -285,7 +287,7 @@ describe('AimdVarField render behavior', () => {
285
287
  expect(wrapper.find('.aimd-rec-inline__header-assigner-action .assigner-test-button').exists()).toBe(true)
286
288
  expect(wrapper.find('.aimd-rec-inline__header-assigner-state .assigner-test-status').exists()).toBe(true)
287
289
  expect(wrapper.find('.aimd-rec-inline__control-row').exists()).toBe(false)
288
- expect(recorderSource).toContain('.aimd-rec-inline__header-assigner-actions')
290
+ expect(recorderSurfaceStyles).toContain('.aimd-rec-inline__header-assigner-actions')
289
291
  })
290
292
 
291
293
  it('places code assigner actions in the field header instead of a side prefix', () => {
@@ -340,23 +342,23 @@ describe('AimdVarField render behavior', () => {
340
342
  expect(source).toContain('h("textarea"')
341
343
  expect(source).toContain('syncAutoWrapTextareaHeight(control)')
342
344
  expect(source).toContain('props.messages.scalarList.itemIndex(rowIndex + 1)')
343
- expect(recorderSource).toContain('.aimd-rec-inline__header-extra-action')
344
- expect(recorderSource).toMatch(/\.aimd-protocol-recorder__content :deep\(\.aimd-rec-inline--var-stacked--scalar-list\) \{[\s\S]*?display: flex;[\s\S]*?width: 100%;[\s\S]*?margin: 12px 0;/)
345
- expect(recorderSource).toMatch(/\.aimd-protocol-recorder__content :deep\(\.aimd-rec-scalar-list__items\) \{[\s\S]*?flex-flow: row wrap;[\s\S]*?gap: 5px;/)
346
- expect(recorderSource).toMatch(/\.aimd-protocol-recorder__content :deep\(\.aimd-rec-scalar-list__rows\) \{[\s\S]*?display: contents;/)
347
- expect(recorderSource).toMatch(/\.aimd-protocol-recorder__content :deep\(\.aimd-rec-scalar-list__row\) \{[\s\S]*?display: inline-flex;[\s\S]*?align-items: stretch;[\s\S]*?gap: 0;[\s\S]*?width: fit-content;/)
348
- expect(recorderSource).toMatch(/\.aimd-protocol-recorder__content :deep\(\.aimd-rec-scalar-list__row--has-drag\.aimd-rec-scalar-list__row--has-remove\) \{[\s\S]*?--aimd-rec-scalar-list-control-offset: 68px;/)
349
- expect(recorderSource).toMatch(/\.aimd-protocol-recorder__content :deep\(\.aimd-rec-scalar-list__row--multiline\) \{[\s\S]*?flex: 1 1 100%;[\s\S]*?width: 100%;/)
350
- expect(recorderSource).toMatch(/\.aimd-protocol-recorder__content :deep\(\.aimd-rec-scalar-list__input\) \{[\s\S]*?width: var\(--aimd-rec-scalar-list-input-width, calc\(8em \+ 16px\)\);[\s\S]*?max-width: min\(calc\(42em \+ 16px\), calc\(100% - var\(--aimd-rec-scalar-list-control-offset, 0px\)\)\);/)
351
- expect(recorderSource).toMatch(/\.aimd-protocol-recorder__content :deep\(\.aimd-rec-scalar-list__input--text\) \{[\s\S]*?resize: none;[\s\S]*?overflow: hidden;[\s\S]*?white-space: pre-wrap;[\s\S]*?overflow-wrap: anywhere;/)
352
- expect(recorderSource).toMatch(/\.aimd-protocol-recorder__content :deep\(\.aimd-rec-scalar-list__row--multiline \.aimd-rec-scalar-list__input--text\) \{[\s\S]*?flex: 1 1 auto;[\s\S]*?width: auto;/)
353
- expect(recorderSource).toMatch(/\.aimd-protocol-recorder__content :deep\(\.aimd-rec-scalar-list__index\) \{[\s\S]*?min-width: 22px;[\s\S]*?min-height: 26px;[\s\S]*?font-size: 10px;[\s\S]*?font-variant-numeric: tabular-nums;/)
354
- expect(recorderSource).toMatch(/\.aimd-protocol-recorder__content :deep\(\.aimd-rec-scalar-list__drag\) \{[\s\S]*?width: 20px;[\s\S]*?min-height: 26px;[\s\S]*?font-size: 12px;/)
355
- expect(recorderSource).toMatch(/\.aimd-protocol-recorder__content :deep\(\.aimd-rec-scalar-list__remove\) \{[\s\S]*?width: 26px;[\s\S]*?min-height: 26px;[\s\S]*?font-size: 13px;/)
356
- expect(recorderSource).toMatch(/\.aimd-protocol-recorder__content :deep\(\.aimd-rec-scalar-list__row--drop-target-before\)::before,[\s\S]*?\.aimd-protocol-recorder__content :deep\(\.aimd-rec-scalar-list__row--drop-target-after\)::after \{[\s\S]*?animation: aimd-rec-scalar-list-insert-pulse/)
357
- expect(recorderSource).toContain('@keyframes aimd-rec-scalar-list-insert-pulse')
358
- expect(recorderSource).toMatch(/\.aimd-protocol-recorder__content :deep\(\.aimd-rec-scalar-list__mode-button:first-child\) \{[\s\S]*?border-radius: 5px 0 0 5px;/)
359
- expect(recorderSource).not.toContain('min-height: 72px;')
345
+ expect(recorderSurfaceStyles).toContain('.aimd-rec-inline__header-extra-action')
346
+ expect(recorderSurfaceStyles).toMatch(/\.aimd-protocol-recorder__content \.aimd-rec-inline--var-stacked--scalar-list \{[\s\S]*?display: flex;[\s\S]*?width: 100%;[\s\S]*?margin: 12px 0;/)
347
+ expect(recorderSurfaceStyles).toMatch(/\.aimd-protocol-recorder__content \.aimd-rec-scalar-list__items \{[\s\S]*?flex-flow: row wrap;[\s\S]*?gap: 5px;/)
348
+ expect(recorderSurfaceStyles).toMatch(/\.aimd-protocol-recorder__content \.aimd-rec-scalar-list__rows \{[\s\S]*?display: contents;/)
349
+ expect(recorderSurfaceStyles).toMatch(/\.aimd-protocol-recorder__content \.aimd-rec-scalar-list__row \{[\s\S]*?display: inline-flex;[\s\S]*?align-items: stretch;[\s\S]*?gap: 0;[\s\S]*?width: fit-content;/)
350
+ expect(recorderSurfaceStyles).toMatch(/\.aimd-protocol-recorder__content \.aimd-rec-scalar-list__row--has-drag\.aimd-rec-scalar-list__row--has-remove \{[\s\S]*?--aimd-rec-scalar-list-control-offset: 68px;/)
351
+ expect(recorderSurfaceStyles).toMatch(/\.aimd-protocol-recorder__content \.aimd-rec-scalar-list__row--multiline \{[\s\S]*?flex: 1 1 100%;[\s\S]*?width: 100%;/)
352
+ expect(recorderSurfaceStyles).toMatch(/\.aimd-protocol-recorder__content \.aimd-rec-scalar-list__input \{[\s\S]*?width: var\(--aimd-rec-scalar-list-input-width, calc\(8em \+ 16px\)\);[\s\S]*?max-width: min\(calc\(42em \+ 16px\), calc\(100% - var\(--aimd-rec-scalar-list-control-offset, 0px\)\)\);/)
353
+ expect(recorderSurfaceStyles).toMatch(/\.aimd-protocol-recorder__content \.aimd-rec-scalar-list__input--text \{[\s\S]*?resize: none;[\s\S]*?overflow: hidden;[\s\S]*?white-space: pre-wrap;[\s\S]*?overflow-wrap: anywhere;/)
354
+ expect(recorderSurfaceStyles).toMatch(/\.aimd-protocol-recorder__content \.aimd-rec-scalar-list__row--multiline \.aimd-rec-scalar-list__input--text \{[\s\S]*?flex: 1 1 auto;[\s\S]*?width: auto;/)
355
+ expect(recorderSurfaceStyles).toMatch(/\.aimd-protocol-recorder__content \.aimd-rec-scalar-list__index \{[\s\S]*?min-width: 22px;[\s\S]*?min-height: 26px;[\s\S]*?font-size: 10px;[\s\S]*?font-variant-numeric: tabular-nums;/)
356
+ expect(recorderSurfaceStyles).toMatch(/\.aimd-protocol-recorder__content \.aimd-rec-scalar-list__drag \{[\s\S]*?width: 20px;[\s\S]*?min-height: 26px;[\s\S]*?font-size: 12px;/)
357
+ expect(recorderSurfaceStyles).toMatch(/\.aimd-protocol-recorder__content \.aimd-rec-scalar-list__remove \{[\s\S]*?width: 26px;[\s\S]*?min-height: 26px;[\s\S]*?font-size: 13px;/)
358
+ expect(recorderSurfaceStyles).toMatch(/\.aimd-protocol-recorder__content \.aimd-rec-scalar-list__row--drop-target-before::before,[\s\S]*?\.aimd-protocol-recorder__content \.aimd-rec-scalar-list__row--drop-target-after::after \{[\s\S]*?animation: aimd-rec-scalar-list-insert-pulse/)
359
+ expect(recorderSurfaceStyles).toContain('@keyframes aimd-rec-scalar-list-insert-pulse')
360
+ expect(recorderSurfaceStyles).toMatch(/\.aimd-protocol-recorder__content \.aimd-rec-scalar-list__mode-button:first-child \{[\s\S]*?border-radius: 5px 0 0 5px;/)
361
+ expect(recorderSurfaceStyles).not.toContain('min-height: 72px;')
360
362
  })
361
363
 
362
364
  it('renders explicit multiline list string items as full-row controls', async () => {
@@ -742,7 +744,7 @@ describe('AimdVarField render behavior', () => {
742
744
  expect((wrapper.find('.aimd-rec-inline--var-stacked').element as HTMLElement).style.width).toBe('360px')
743
745
  expect(varHelpersSource).toContain('case "image":')
744
746
  expect(varHelpersSource).toContain('return 360')
745
- expect(recorderSource).toContain('.aimd-rec-inline__file-control[data-file-kind="image"] .aimd-rec-file-field__preview')
747
+ expect(recorderSurfaceStyles).toContain('.aimd-rec-inline__file-control[data-file-kind="image"] .aimd-rec-file-field__preview')
746
748
  })
747
749
 
748
750
  it('uses host-resolved file metadata for file cards', async () => {
@@ -1243,7 +1245,7 @@ describe('AimdVarField render behavior', () => {
1243
1245
  expect(wrapper.find('.aimd-rec-inline-table__header-action .assigner-test-button').exists()).toBe(true)
1244
1246
  expect(wrapper.find('.aimd-rec-inline-table__header-state .assigner-test-status').exists()).toBe(true)
1245
1247
  expect(wrapper.find('.aimd-rec-inline-table__assigner-error').text()).toBe('Missing source data')
1246
- expect(recorderSource).toContain('.aimd-rec-inline-table__header-actions')
1248
+ expect(recorderSurfaceStyles).toContain('.aimd-rec-inline-table__header-actions')
1247
1249
  })
1248
1250
 
1249
1251
  it('does not use AIMD var_table titles as cell placeholders and honors explicit column placeholders', () => {
@@ -38,6 +38,7 @@ const props = withDefaults(defineProps<{
38
38
  grade?: AimdQuizGradeResult | null
39
39
  submitted?: boolean
40
40
  readonly?: boolean
41
+ extraClasses?: string[]
41
42
  focusKeyPrefix?: string
42
43
  locale?: string
43
44
  messages?: AimdRecorderMessagesInput
@@ -47,6 +48,7 @@ const props = withDefaults(defineProps<{
47
48
  grade: null,
48
49
  submitted: false,
49
50
  readonly: false,
51
+ extraClasses: () => [],
50
52
  focusKeyPrefix: undefined,
51
53
  locale: undefined,
52
54
  messages: undefined,
@@ -547,7 +549,7 @@ function shouldShowChoiceOptionExplanation(optionKey: string, explanation?: stri
547
549
  </script>
548
550
 
549
551
  <template>
550
- <div class="aimd-quiz-recorder aimd-field aimd-field--quiz">
552
+ <div :class="['aimd-quiz-recorder aimd-field aimd-field--quiz', ...extraClasses]">
551
553
  <div class="aimd-quiz__meta">
552
554
  <span class="aimd-field__scope">{{ getAimdRecorderScopeLabel('quiz', resolvedMessages) }}</span>
553
555
  <span class="aimd-field__name">{{ quiz.id }}</span>