@almadar/std 16.243.0 → 16.244.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (140) hide show
  1. package/behaviors/behaviors-registry.json +72537 -31220
  2. package/behaviors/lolo/agent/atoms/std-agent-context.lolo +24 -4
  3. package/behaviors/lolo/agent/atoms/std-agent-memory.lolo +20 -5
  4. package/behaviors/lolo/agent/atoms/std-agent-proposal.lolo +550 -0
  5. package/behaviors/lolo/agent/atoms/std-agent-session.lolo +284 -25
  6. package/behaviors/lolo/agent/atoms/std-agent-suggestions.lolo +841 -0
  7. package/behaviors/lolo/agent/atoms/std-agent-tool-loop.lolo +58 -8
  8. package/behaviors/lolo/agent/organisms/std-agent-assistant.lolo +1 -0
  9. package/behaviors/lolo/infra/atoms/std-page-treat.lolo +28 -1
  10. package/behaviors/lolo/ui/avl/atoms/ui-avl-state-machine.lolo +22 -0
  11. package/behaviors/lolo/ui/avl/atoms/ui-avl-transition-explainer.lolo +175 -0
  12. package/behaviors/lolo/ui/avl/atoms/ui-module-card.lolo +22 -0
  13. package/behaviors/lolo/ui/core/atoms/std-app-layout.lolo +23 -4
  14. package/behaviors/lolo/ui/core/atoms/std-hero.lolo +72 -33
  15. package/behaviors/lolo/ui/core/molecules/ui-agent-chat-feed.lolo +1 -1
  16. package/behaviors/lolo/ui/core/molecules/ui-markdown-content.lolo +54 -0
  17. package/behaviors/lolo/ui/core/molecules/ui-upload-drop-zone.lolo +5 -0
  18. package/behaviors/lolo/ui/core/organisms/ui-segment-renderer.lolo +127 -3
  19. package/behaviors/lolo/ui/core/organisms/ui-state-machine-view.lolo +22 -0
  20. package/behaviors/lolo/ui/core/templates/ui-dashboard-layout.lolo +2 -2
  21. package/behaviors/lolo/ui/learning/atoms/std-learn-arrangement.lolo +87 -17
  22. package/behaviors/lolo/ui/learning/atoms/std-learn-classify.lolo +172 -37
  23. package/behaviors/lolo/ui/learning/atoms/std-learn-coupled-sim.lolo +183 -70
  24. package/behaviors/lolo/ui/learning/atoms/std-learn-derivation.lolo +78 -13
  25. package/behaviors/lolo/ui/learning/atoms/std-learn-diagram.lolo +58 -2
  26. package/behaviors/lolo/ui/learning/atoms/std-learn-doser.lolo +107 -12
  27. package/behaviors/lolo/ui/learning/atoms/std-learn-estimate.lolo +83 -10
  28. package/behaviors/lolo/ui/learning/atoms/std-learn-goal-seek.lolo +130 -9
  29. package/behaviors/lolo/ui/learning/atoms/std-learn-grid-sim.lolo +143 -59
  30. package/behaviors/lolo/ui/learning/atoms/std-learn-hotspot.lolo +96 -22
  31. package/behaviors/lolo/ui/learning/atoms/std-learn-live-sim.lolo +66 -5
  32. package/behaviors/lolo/ui/learning/atoms/std-learn-predict.lolo +84 -6
  33. package/behaviors/lolo/ui/learning/atoms/std-learn-sandbox.lolo +80 -14
  34. package/behaviors/lolo/ui/learning/atoms/std-learn-scatter-fit.lolo +99 -5
  35. package/behaviors/lolo/ui/learning/atoms/std-learn-scenario.lolo +81 -7
  36. package/behaviors/lolo/ui/learning/atoms/std-learn-speed-drill.lolo +83 -7
  37. package/behaviors/lolo/ui/learning/atoms/std-learn-stepper.lolo +224 -99
  38. package/behaviors/lolo/ui/learning/atoms/std-learn-tour-3d.lolo +63 -2
  39. package/behaviors/lolo/ui/learning/atoms/std-learn-trace-player.lolo +99 -38
  40. package/behaviors/lolo/ui/learning/atoms/std-learn-transport.lolo +7 -7
  41. package/behaviors/lolo/ui/learning/atoms/std-learn-tree.lolo +69 -4
  42. package/behaviors/lolo-behavior-contracts.json +1 -1
  43. package/behaviors/registry/agent/atoms/std-agent-context.orb +205 -6
  44. package/behaviors/registry/agent/atoms/std-agent-memory.orb +146 -4
  45. package/behaviors/registry/agent/atoms/std-agent-proposal.orb +1972 -0
  46. package/behaviors/registry/agent/atoms/std-agent-session.orb +2021 -597
  47. package/behaviors/registry/agent/atoms/std-agent-suggestions.orb +5079 -0
  48. package/behaviors/registry/agent/atoms/std-agent-tool-loop.orb +287 -5
  49. package/behaviors/registry/agent/organisms/std-agent-assistant.orb +7 -0
  50. package/behaviors/registry/factory-signatures.json +1 -1
  51. package/behaviors/registry/infra/atoms/std-page-treat.orb +327 -2
  52. package/behaviors/registry/ui/avl/atoms/ui-avl-state-machine.orb +134 -0
  53. package/behaviors/registry/ui/avl/atoms/ui-avl-transition-explainer.orb +678 -0
  54. package/behaviors/registry/ui/avl/atoms/ui-module-card.orb +122 -0
  55. package/behaviors/registry/ui/core/atoms/std-app-layout.orb +73 -4
  56. package/behaviors/registry/ui/core/atoms/std-hero.orb +174 -97
  57. package/behaviors/registry/ui/core/molecules/ui-markdown-content.orb +204 -1
  58. package/behaviors/registry/ui/core/molecules/ui-upload-drop-zone.orb +12 -0
  59. package/behaviors/registry/ui/core/organisms/ui-segment-renderer.orb +683 -30
  60. package/behaviors/registry/ui/learning/atoms/std-learn-arrangement.orb +748 -21
  61. package/behaviors/registry/ui/learning/atoms/std-learn-classify.orb +1429 -41
  62. package/behaviors/registry/ui/learning/atoms/std-learn-coupled-sim.orb +1031 -185
  63. package/behaviors/registry/ui/learning/atoms/std-learn-derivation.orb +807 -132
  64. package/behaviors/registry/ui/learning/atoms/std-learn-diagram.orb +553 -6
  65. package/behaviors/registry/ui/learning/atoms/std-learn-doser.orb +987 -21
  66. package/behaviors/registry/ui/learning/atoms/std-learn-estimate.orb +582 -16
  67. package/behaviors/registry/ui/learning/atoms/std-learn-goal-seek.orb +954 -13
  68. package/behaviors/registry/ui/learning/atoms/std-learn-grid-sim.orb +828 -88
  69. package/behaviors/registry/ui/learning/atoms/std-learn-hotspot.orb +730 -28
  70. package/behaviors/registry/ui/learning/atoms/std-learn-live-sim.orb +479 -9
  71. package/behaviors/registry/ui/learning/atoms/std-learn-predict.orb +797 -46
  72. package/behaviors/registry/ui/learning/atoms/std-learn-sandbox.orb +757 -58
  73. package/behaviors/registry/ui/learning/atoms/std-learn-scatter-fit.orb +1176 -164
  74. package/behaviors/registry/ui/learning/atoms/std-learn-scenario.orb +599 -12
  75. package/behaviors/registry/ui/learning/atoms/std-learn-speed-drill.orb +832 -150
  76. package/behaviors/registry/ui/learning/atoms/std-learn-stepper.orb +1561 -127
  77. package/behaviors/registry/ui/learning/atoms/std-learn-tour-3d.orb +655 -6
  78. package/behaviors/registry/ui/learning/atoms/std-learn-trace-player.orb +634 -43
  79. package/behaviors/registry/ui/learning/atoms/std-learn-transport.orb +85 -31
  80. package/behaviors/registry/ui/learning/atoms/std-learn-tree.orb +425 -9
  81. package/canonical-operators.json +45 -2
  82. package/dist/behaviors/exports-reader.js +16667 -7868
  83. package/dist/behaviors/functions/index.d.ts +711 -32
  84. package/dist/behaviors/functions/index.js +16651 -7869
  85. package/dist/behaviors/index.d.ts +1 -1
  86. package/dist/behaviors/index.js +16668 -7869
  87. package/dist/behaviors/query.js +16667 -7868
  88. package/dist/behaviors-embeddings.hash.json +3 -3
  89. package/dist/behaviors-embeddings.json +77 -53
  90. package/dist/behaviors-registry.json +72537 -31220
  91. package/dist/index.d.ts +3 -3
  92. package/dist/index.js +16101 -7275
  93. package/dist/knob-embeddings.hash.json +3 -3
  94. package/dist/knob-embeddings.json +11617 -1225
  95. package/dist/modules/anim.d.ts +1 -1
  96. package/dist/modules/array.d.ts +1 -1
  97. package/dist/modules/async.d.ts +1 -1
  98. package/dist/modules/behavior.d.ts +1 -1
  99. package/dist/modules/browser.d.ts +1 -1
  100. package/dist/modules/composition.d.ts +1 -1
  101. package/dist/modules/contract.d.ts +1 -1
  102. package/dist/modules/core.d.ts +1 -1
  103. package/dist/modules/core.js +29 -2
  104. package/dist/modules/data.d.ts +1 -1
  105. package/dist/modules/ease.d.ts +1 -1
  106. package/dist/modules/format.d.ts +1 -1
  107. package/dist/modules/geo.d.ts +1 -1
  108. package/dist/modules/graph.d.ts +1 -1
  109. package/dist/modules/grid.d.ts +1 -1
  110. package/dist/modules/i18n.d.ts +1 -1
  111. package/dist/modules/index.d.ts +1 -1
  112. package/dist/modules/index.js +29 -2
  113. package/dist/modules/integration.d.ts +1 -1
  114. package/dist/modules/json.d.ts +1 -1
  115. package/dist/modules/llm.d.ts +1 -1
  116. package/dist/modules/math.d.ts +1 -1
  117. package/dist/modules/memory.d.ts +1 -1
  118. package/dist/modules/nn.d.ts +1 -1
  119. package/dist/modules/noise.d.ts +1 -1
  120. package/dist/modules/object.d.ts +1 -1
  121. package/dist/modules/os.d.ts +1 -1
  122. package/dist/modules/path.d.ts +1 -1
  123. package/dist/modules/prob.d.ts +1 -1
  124. package/dist/modules/session.d.ts +1 -1
  125. package/dist/modules/str.d.ts +1 -1
  126. package/dist/modules/tensor.d.ts +1 -1
  127. package/dist/modules/time.d.ts +1 -1
  128. package/dist/modules/trace.d.ts +1 -1
  129. package/dist/modules/train.d.ts +1 -1
  130. package/dist/modules/validate.d.ts +1 -1
  131. package/dist/modules/vector.d.ts +1 -1
  132. package/dist/modules/workspace.d.ts +1 -1
  133. package/dist/registry/factory-signatures.json +1 -1
  134. package/dist/registry.d.ts +2 -2
  135. package/dist/registry.js +29 -2
  136. package/dist/{types-Cdb321uM.d.ts → types-Y-yYWEOX.d.ts} +1 -1
  137. package/i18n/ar.json +3 -1
  138. package/i18n/en.json +2 -0
  139. package/i18n/sl.json +3 -1
  140. package/package.json +3 -3
@@ -19,6 +19,60 @@
19
19
  "parent": "trt_01KXG04SYNY0B326SBBN7KCRAW",
20
20
  "renames": []
21
21
  },
22
+ "evt_01M458N6P062ZD3DSTR9K0AY43": {
23
+ "bakedName": "@config.askEvent",
24
+ "curName": "@config.askEvent",
25
+ "id": "evt_01M458N6P062ZD3DSTR9K0AY43",
26
+ "kind": "event",
27
+ "owner": "workspace",
28
+ "parent": "trt_01KXG04SYNY0B326SBBN7KCRAW",
29
+ "renames": []
30
+ },
31
+ "evt_01M458N6P0A77V2AD2ED983CT3": {
32
+ "bakedName": "@config.noteEvent",
33
+ "curName": "@config.noteEvent",
34
+ "id": "evt_01M458N6P0A77V2AD2ED983CT3",
35
+ "kind": "event",
36
+ "owner": "workspace",
37
+ "parent": "trt_01KXG04SYNY0B326SBBN7KCRAW",
38
+ "renames": []
39
+ },
40
+ "evt_01M458N6P0CVA84D14F7QQ70FH": {
41
+ "bakedName": "@config.bloomAnswerEvent",
42
+ "curName": "@config.bloomAnswerEvent",
43
+ "id": "evt_01M458N6P0CVA84D14F7QQ70FH",
44
+ "kind": "event",
45
+ "owner": "workspace",
46
+ "parent": "trt_01KXG04SYNY0B326SBBN7KCRAW",
47
+ "renames": []
48
+ },
49
+ "evt_01M458N6P0H1AZT11P3E8H577T": {
50
+ "bakedName": "@config.reflectionSaveEvent",
51
+ "curName": "@config.reflectionSaveEvent",
52
+ "id": "evt_01M458N6P0H1AZT11P3E8H577T",
53
+ "kind": "event",
54
+ "owner": "workspace",
55
+ "parent": "trt_01KXG04SYNY0B326SBBN7KCRAW",
56
+ "renames": []
57
+ },
58
+ "evt_01M458N6P0P9RX6ER58JN0KZ1T": {
59
+ "bakedName": "@config.annotationEvent",
60
+ "curName": "@config.annotationEvent",
61
+ "id": "evt_01M458N6P0P9RX6ER58JN0KZ1T",
62
+ "kind": "event",
63
+ "owner": "workspace",
64
+ "parent": "trt_01KXG04SYNY0B326SBBN7KCRAW",
65
+ "renames": []
66
+ },
67
+ "evt_01M458N6P0YNK7FQ12KMC9T30R": {
68
+ "bakedName": "@config.activationSaveEvent",
69
+ "curName": "@config.activationSaveEvent",
70
+ "id": "evt_01M458N6P0YNK7FQ12KMC9T30R",
71
+ "kind": "event",
72
+ "owner": "workspace",
73
+ "parent": "trt_01KXG04SYNY0B326SBBN7KCRAW",
74
+ "renames": []
75
+ },
22
76
  "orb_01KXG04SYNCGV24X7FRR7TRH6N": {
23
77
  "bakedName": "SegmentRendererOrbital",
24
78
  "curName": "SegmentRendererOrbital",
@@ -80,6 +134,51 @@
80
134
  {
81
135
  "category": "interaction",
82
136
  "config": {
137
+ "activationSaveEvent": {
138
+ "default": "ACTIVATION_SAVE",
139
+ "description": "Event emitted when the activation prompt is saved or skipped (as `UI:<activationSaveEvent>`)",
140
+ "label": "Activation Save Event",
141
+ "tier": "presentation",
142
+ "type": "event"
143
+ },
144
+ "annotationEvent": {
145
+ "default": "ANNOTATION",
146
+ "description": "Event emitted when a highlighted passage is clicked (as `UI:<annotationEvent>`)",
147
+ "label": "Annotation Event",
148
+ "tier": "presentation",
149
+ "type": "event"
150
+ },
151
+ "annotations": {
152
+ "default": [],
153
+ "description": "Passages to highlight. Each `text` is matched exactly against the markdown segments, first segment whose source contains it, first occurrence inside one rendered text node (outside code); one that spans formatting is not highlighted.",
154
+ "items": {
155
+ "properties": {
156
+ "id": {
157
+ "name": "id",
158
+ "required": true,
159
+ "type": "string"
160
+ },
161
+ "kind": {
162
+ "name": "kind",
163
+ "required": true,
164
+ "type": "string",
165
+ "values": [
166
+ "question",
167
+ "note"
168
+ ]
169
+ },
170
+ "text": {
171
+ "name": "text",
172
+ "required": true,
173
+ "type": "string"
174
+ }
175
+ },
176
+ "type": "object"
177
+ },
178
+ "label": "Annotations",
179
+ "tier": "presentation",
180
+ "type": "[SegmentRendererAnnotationsItem]"
181
+ },
83
182
  "ariaBusy": {
84
183
  "description": "This region is updating; assistive technology waits before announcing it.",
85
184
  "label": "Aria-busy",
@@ -169,6 +268,26 @@
169
268
  "tier": "presentation",
170
269
  "type": "boolean"
171
270
  },
271
+ "askEvent": {
272
+ "default": "ASK",
273
+ "description": "Event emitted when the reader picks Ask on selected text (as `UI:<askEvent>`)",
274
+ "label": "Ask Event",
275
+ "tier": "presentation",
276
+ "type": "event"
277
+ },
278
+ "askLabel": {
279
+ "description": "Ask action label (default: translated)",
280
+ "label": "Ask Label",
281
+ "tier": "presentation",
282
+ "type": "string"
283
+ },
284
+ "bloomAnswerEvent": {
285
+ "default": "BLOOM_ANSWER",
286
+ "description": "Event emitted on the first reveal of a Bloom question (as `UI:<bloomAnswerEvent>`)",
287
+ "label": "Bloom Answer Event",
288
+ "tier": "presentation",
289
+ "type": "event"
290
+ },
172
291
  "className": {
173
292
  "description": "Additional CSS classes for the root container",
174
293
  "label": "Class Name",
@@ -217,6 +336,32 @@
217
336
  "tier": "presentation",
218
337
  "type": "string"
219
338
  },
339
+ "lesson": {
340
+ "description": "Raw lesson markdown with learning tags; parsed with `parseLessonSegments` and rendered",
341
+ "label": "Lesson",
342
+ "tier": "presentation",
343
+ "type": "string"
344
+ },
345
+ "noteEvent": {
346
+ "default": "NOTE",
347
+ "description": "Event emitted when the reader picks Note on selected text (as `UI:<noteEvent>`)",
348
+ "label": "Note Event",
349
+ "tier": "presentation",
350
+ "type": "event"
351
+ },
352
+ "noteLabel": {
353
+ "description": "Note action label (default: translated)",
354
+ "label": "Note Label",
355
+ "tier": "presentation",
356
+ "type": "string"
357
+ },
358
+ "reflectionSaveEvent": {
359
+ "default": "REFLECTION_SAVE",
360
+ "description": "Event emitted when a reflection note is saved (as `UI:<reflectionSaveEvent>`)",
361
+ "label": "Reflection Save Event",
362
+ "tier": "presentation",
363
+ "type": "event"
364
+ },
220
365
  "role": {
221
366
  "description": "WAI-ARIA role when the element's native semantics don't describe it.",
222
367
  "label": "Role",
@@ -307,41 +452,220 @@
307
452
  ]
308
453
  },
309
454
  "segments": {
310
- "default": [
311
- {
312
- "answer": "Answer",
313
- "question": "Question",
314
- "type": "quiz"
315
- },
316
- {
317
- "answer": "Answer 2",
318
- "question": "Question 2",
319
- "type": "quiz"
320
- }
321
- ],
322
- "description": "Parsed lesson segments (see `parseLessonSegments`)",
455
+ "default": [],
456
+ "description": "Parsed lesson segments (see `parseLessonSegments`). Ignored when `lesson` is given.",
323
457
  "items": {
324
458
  "properties": {
325
- "answer": {
326
- "name": "answer",
327
- "required": true,
328
- "type": "string"
459
+ "SegmentRendererSegmentsItemActivate": {
460
+ "name": "SegmentRendererSegmentsItemActivate",
461
+ "properties": {
462
+ "question": {
463
+ "name": "question",
464
+ "required": true,
465
+ "type": "string"
466
+ },
467
+ "type": {
468
+ "name": "type",
469
+ "required": true,
470
+ "type": "string",
471
+ "values": [
472
+ "activate"
473
+ ]
474
+ }
475
+ },
476
+ "type": "object"
329
477
  },
330
- "question": {
331
- "name": "question",
332
- "required": true,
333
- "type": "string"
478
+ "SegmentRendererSegmentsItemBloom": {
479
+ "name": "SegmentRendererSegmentsItemBloom",
480
+ "properties": {
481
+ "answer": {
482
+ "name": "answer",
483
+ "required": true,
484
+ "type": "string"
485
+ },
486
+ "level": {
487
+ "name": "level",
488
+ "required": true,
489
+ "type": "string",
490
+ "values": [
491
+ "remember",
492
+ "understand",
493
+ "apply",
494
+ "analyze",
495
+ "evaluate",
496
+ "create"
497
+ ]
498
+ },
499
+ "question": {
500
+ "name": "question",
501
+ "required": true,
502
+ "type": "string"
503
+ },
504
+ "type": {
505
+ "name": "type",
506
+ "required": true,
507
+ "type": "string",
508
+ "values": [
509
+ "bloom"
510
+ ]
511
+ }
512
+ },
513
+ "type": "object"
334
514
  },
335
- "type": {
336
- "name": "type",
337
- "required": true,
338
- "type": "string",
339
- "values": [
340
- "quiz"
341
- ]
515
+ "SegmentRendererSegmentsItemCode": {
516
+ "name": "SegmentRendererSegmentsItemCode",
517
+ "properties": {
518
+ "content": {
519
+ "name": "content",
520
+ "required": true,
521
+ "type": "string"
522
+ },
523
+ "language": {
524
+ "name": "language",
525
+ "required": true,
526
+ "type": "string"
527
+ },
528
+ "runnable": {
529
+ "name": "runnable",
530
+ "required": false,
531
+ "type": "boolean"
532
+ },
533
+ "type": {
534
+ "name": "type",
535
+ "required": true,
536
+ "type": "string",
537
+ "values": [
538
+ "code"
539
+ ]
540
+ }
541
+ },
542
+ "type": "object"
543
+ },
544
+ "SegmentRendererSegmentsItemConnect": {
545
+ "name": "SegmentRendererSegmentsItemConnect",
546
+ "properties": {
547
+ "content": {
548
+ "name": "content",
549
+ "required": true,
550
+ "type": "string"
551
+ },
552
+ "type": {
553
+ "name": "type",
554
+ "required": true,
555
+ "type": "string",
556
+ "values": [
557
+ "connect"
558
+ ]
559
+ }
560
+ },
561
+ "type": "object"
562
+ },
563
+ "SegmentRendererSegmentsItemMarkdown": {
564
+ "name": "SegmentRendererSegmentsItemMarkdown",
565
+ "properties": {
566
+ "content": {
567
+ "name": "content",
568
+ "required": true,
569
+ "type": "string"
570
+ },
571
+ "type": {
572
+ "name": "type",
573
+ "required": true,
574
+ "type": "string",
575
+ "values": [
576
+ "markdown"
577
+ ]
578
+ }
579
+ },
580
+ "type": "object"
581
+ },
582
+ "SegmentRendererSegmentsItemQuiz": {
583
+ "name": "SegmentRendererSegmentsItemQuiz",
584
+ "properties": {
585
+ "answer": {
586
+ "name": "answer",
587
+ "required": true,
588
+ "type": "string"
589
+ },
590
+ "question": {
591
+ "name": "question",
592
+ "required": true,
593
+ "type": "string"
594
+ },
595
+ "type": {
596
+ "name": "type",
597
+ "required": true,
598
+ "type": "string",
599
+ "values": [
600
+ "quiz"
601
+ ]
602
+ }
603
+ },
604
+ "type": "object"
605
+ },
606
+ "SegmentRendererSegmentsItemReflect": {
607
+ "name": "SegmentRendererSegmentsItemReflect",
608
+ "properties": {
609
+ "prompt": {
610
+ "name": "prompt",
611
+ "required": true,
612
+ "type": "string"
613
+ },
614
+ "type": {
615
+ "name": "type",
616
+ "required": true,
617
+ "type": "string",
618
+ "values": [
619
+ "reflect"
620
+ ]
621
+ }
622
+ },
623
+ "type": "object"
624
+ },
625
+ "SegmentRendererSegmentsItemVisualization": {
626
+ "name": "SegmentRendererSegmentsItemVisualization",
627
+ "properties": {
628
+ "description": {
629
+ "name": "description",
630
+ "required": true,
631
+ "type": "string"
632
+ },
633
+ "type": {
634
+ "name": "type",
635
+ "required": true,
636
+ "type": "string",
637
+ "values": [
638
+ "visualization"
639
+ ]
640
+ },
641
+ "visualizationType": {
642
+ "name": "visualizationType",
643
+ "required": true,
644
+ "type": "string",
645
+ "values": [
646
+ "algorithms",
647
+ "math",
648
+ "physics",
649
+ "biology",
650
+ "chemistry",
651
+ "probability"
652
+ ]
653
+ }
654
+ },
655
+ "type": "object"
342
656
  }
343
657
  },
344
- "type": "object"
658
+ "type": "union",
659
+ "values": [
660
+ "SegmentRendererSegmentsItemMarkdown",
661
+ "SegmentRendererSegmentsItemCode",
662
+ "SegmentRendererSegmentsItemQuiz",
663
+ "SegmentRendererSegmentsItemActivate",
664
+ "SegmentRendererSegmentsItemConnect",
665
+ "SegmentRendererSegmentsItemReflect",
666
+ "SegmentRendererSegmentsItemBloom",
667
+ "SegmentRendererSegmentsItemVisualization"
668
+ ]
345
669
  },
346
670
  "label": "Segments",
347
671
  "tier": "presentation",
@@ -407,6 +731,107 @@
407
731
  "resource": "main"
408
732
  }
409
733
  ],
734
+ "emits": [
735
+ {
736
+ "definerKnob": "activationSaveEvent",
737
+ "description": "Event emitted when the activation prompt is saved or skipped (as `UI:<activationSaveEvent>`)",
738
+ "event": "@config.activationSaveEvent",
739
+ "eventId": "evt_01M458N6P0YNK7FQ12KMC9T30R",
740
+ "payloadSchema": [
741
+ {
742
+ "name": "response",
743
+ "required": true,
744
+ "type": "string"
745
+ }
746
+ ],
747
+ "scope": "external",
748
+ "tier": "essential"
749
+ },
750
+ {
751
+ "definerKnob": "reflectionSaveEvent",
752
+ "description": "Event emitted when a reflection note is saved (as `UI:<reflectionSaveEvent>`)",
753
+ "event": "@config.reflectionSaveEvent",
754
+ "eventId": "evt_01M458N6P0H1AZT11P3E8H577T",
755
+ "payloadSchema": [
756
+ {
757
+ "name": "index",
758
+ "required": true,
759
+ "type": "number"
760
+ },
761
+ {
762
+ "name": "note",
763
+ "required": true,
764
+ "type": "string"
765
+ }
766
+ ],
767
+ "scope": "external",
768
+ "tier": "essential"
769
+ },
770
+ {
771
+ "definerKnob": "bloomAnswerEvent",
772
+ "description": "Event emitted on the first reveal of a Bloom question (as `UI:<bloomAnswerEvent>`)",
773
+ "event": "@config.bloomAnswerEvent",
774
+ "eventId": "evt_01M458N6P0CVA84D14F7QQ70FH",
775
+ "payloadSchema": [
776
+ {
777
+ "name": "index",
778
+ "required": true,
779
+ "type": "number"
780
+ },
781
+ {
782
+ "name": "level",
783
+ "required": true,
784
+ "type": "string"
785
+ }
786
+ ],
787
+ "scope": "external",
788
+ "tier": "essential"
789
+ },
790
+ {
791
+ "definerKnob": "askEvent",
792
+ "description": "Event emitted when the reader picks Ask on selected text (as `UI:<askEvent>`)",
793
+ "event": "@config.askEvent",
794
+ "eventId": "evt_01M458N6P062ZD3DSTR9K0AY43",
795
+ "payloadSchema": [
796
+ {
797
+ "name": "selectedText",
798
+ "required": true,
799
+ "type": "string"
800
+ }
801
+ ],
802
+ "scope": "external",
803
+ "tier": "essential"
804
+ },
805
+ {
806
+ "definerKnob": "noteEvent",
807
+ "description": "Event emitted when the reader picks Note on selected text (as `UI:<noteEvent>`)",
808
+ "event": "@config.noteEvent",
809
+ "eventId": "evt_01M458N6P0A77V2AD2ED983CT3",
810
+ "payloadSchema": [
811
+ {
812
+ "name": "selectedText",
813
+ "required": true,
814
+ "type": "string"
815
+ }
816
+ ],
817
+ "scope": "external",
818
+ "tier": "essential"
819
+ },
820
+ {
821
+ "definerKnob": "annotationEvent",
822
+ "description": "Event emitted when a highlighted passage is clicked (as `UI:<annotationEvent>`)",
823
+ "event": "@config.annotationEvent",
824
+ "eventId": "evt_01M458N6P0P9RX6ER58JN0KZ1T",
825
+ "payloadSchema": [
826
+ {
827
+ "name": "annotationId",
828
+ "type": "string"
829
+ }
830
+ ],
831
+ "scope": "external",
832
+ "tier": "essential"
833
+ }
834
+ ],
410
835
  "entityContract": {
411
836
  "provides": [],
412
837
  "requires": []
@@ -426,6 +851,99 @@
426
851
  "id": "evt_01KXG04SYN6H60ZZK6J2K8AF63",
427
852
  "key": "INIT",
428
853
  "name": "Initialize"
854
+ },
855
+ {
856
+ "description": "Event emitted when the activation prompt is saved or skipped (as `UI:<activationSaveEvent>`)",
857
+ "id": "evt_01M458N6P0YNK7FQ12KMC9T30R",
858
+ "key": "@config.activationSaveEvent",
859
+ "name": "@config.activation save event",
860
+ "payloadSchema": [
861
+ {
862
+ "name": "response",
863
+ "required": true,
864
+ "type": "string"
865
+ }
866
+ ],
867
+ "tier": "essential"
868
+ },
869
+ {
870
+ "description": "Event emitted when a reflection note is saved (as `UI:<reflectionSaveEvent>`)",
871
+ "id": "evt_01M458N6P0H1AZT11P3E8H577T",
872
+ "key": "@config.reflectionSaveEvent",
873
+ "name": "@config.reflection save event",
874
+ "payloadSchema": [
875
+ {
876
+ "name": "index",
877
+ "required": true,
878
+ "type": "number"
879
+ },
880
+ {
881
+ "name": "note",
882
+ "required": true,
883
+ "type": "string"
884
+ }
885
+ ],
886
+ "tier": "essential"
887
+ },
888
+ {
889
+ "description": "Event emitted on the first reveal of a Bloom question (as `UI:<bloomAnswerEvent>`)",
890
+ "id": "evt_01M458N6P0CVA84D14F7QQ70FH",
891
+ "key": "@config.bloomAnswerEvent",
892
+ "name": "@config.bloom answer event",
893
+ "payloadSchema": [
894
+ {
895
+ "name": "index",
896
+ "required": true,
897
+ "type": "number"
898
+ },
899
+ {
900
+ "name": "level",
901
+ "required": true,
902
+ "type": "string"
903
+ }
904
+ ],
905
+ "tier": "essential"
906
+ },
907
+ {
908
+ "description": "Event emitted when the reader picks Ask on selected text (as `UI:<askEvent>`)",
909
+ "id": "evt_01M458N6P062ZD3DSTR9K0AY43",
910
+ "key": "@config.askEvent",
911
+ "name": "@config.ask event",
912
+ "payloadSchema": [
913
+ {
914
+ "name": "selectedText",
915
+ "required": true,
916
+ "type": "string"
917
+ }
918
+ ],
919
+ "tier": "essential"
920
+ },
921
+ {
922
+ "description": "Event emitted when the reader picks Note on selected text (as `UI:<noteEvent>`)",
923
+ "id": "evt_01M458N6P0A77V2AD2ED983CT3",
924
+ "key": "@config.noteEvent",
925
+ "name": "@config.note event",
926
+ "payloadSchema": [
927
+ {
928
+ "name": "selectedText",
929
+ "required": true,
930
+ "type": "string"
931
+ }
932
+ ],
933
+ "tier": "essential"
934
+ },
935
+ {
936
+ "description": "Event emitted when a highlighted passage is clicked (as `UI:<annotationEvent>`)",
937
+ "id": "evt_01M458N6P0P9RX6ER58JN0KZ1T",
938
+ "key": "@config.annotationEvent",
939
+ "name": "@config.annotation event",
940
+ "payloadSchema": [
941
+ {
942
+ "name": "annotationId",
943
+ "type": "string"
944
+ }
945
+ ],
946
+ "tier": "essential"
429
947
  }
430
948
  ],
431
949
  "states": [
@@ -441,6 +959,9 @@
441
959
  "render-ui",
442
960
  "main",
443
961
  {
962
+ "activationSaveEvent": "@config.activationSaveEvent",
963
+ "annotationEvent": "@config.annotationEvent",
964
+ "annotations": "@config.annotations",
444
965
  "aria-busy": "@config.ariaBusy",
445
966
  "aria-current": "@config.ariaCurrent",
446
967
  "aria-describedby": "@config.ariaDescribedby",
@@ -451,12 +972,19 @@
451
972
  "aria-live": "@config.ariaLive",
452
973
  "aria-pressed": "@config.ariaPressed",
453
974
  "aria-selected": "@config.ariaSelected",
975
+ "askEvent": "@config.askEvent",
976
+ "askLabel": "@config.askLabel",
977
+ "bloomAnswerEvent": "@config.bloomAnswerEvent",
454
978
  "className": "@config.className",
455
979
  "containerClassName": "@config.containerClassName",
456
980
  "dir": "@config.dir",
457
981
  "enter": "@config.enter",
458
982
  "enterDelay": "@config.enterDelay",
459
983
  "lang": "@config.lang",
984
+ "lesson": "@config.lesson",
985
+ "noteEvent": "@config.noteEvent",
986
+ "noteLabel": "@config.noteLabel",
987
+ "reflectionSaveEvent": "@config.reflectionSaveEvent",
460
988
  "role": "@config.role",
461
989
  "segments": "@config.segments",
462
990
  "skeleton": "@config.skeleton",
@@ -476,7 +1004,103 @@
476
1004
  }
477
1005
  ],
478
1006
  "types": {
479
- "SegmentRendererSegmentsItem": [
1007
+ "SegmentRendererAnnotationsItem": [
1008
+ {
1009
+ "name": "id",
1010
+ "required": true,
1011
+ "type": "string"
1012
+ },
1013
+ {
1014
+ "name": "text",
1015
+ "required": true,
1016
+ "type": "string"
1017
+ },
1018
+ {
1019
+ "name": "kind",
1020
+ "required": true,
1021
+ "type": "string"
1022
+ }
1023
+ ],
1024
+ "SegmentRendererSegmentsItemActivate": [
1025
+ {
1026
+ "name": "type",
1027
+ "required": true,
1028
+ "type": "string"
1029
+ },
1030
+ {
1031
+ "name": "question",
1032
+ "required": true,
1033
+ "type": "string"
1034
+ }
1035
+ ],
1036
+ "SegmentRendererSegmentsItemBloom": [
1037
+ {
1038
+ "name": "type",
1039
+ "required": true,
1040
+ "type": "string"
1041
+ },
1042
+ {
1043
+ "name": "level",
1044
+ "required": true,
1045
+ "type": "string"
1046
+ },
1047
+ {
1048
+ "name": "question",
1049
+ "required": true,
1050
+ "type": "string"
1051
+ },
1052
+ {
1053
+ "name": "answer",
1054
+ "required": true,
1055
+ "type": "string"
1056
+ }
1057
+ ],
1058
+ "SegmentRendererSegmentsItemCode": [
1059
+ {
1060
+ "name": "type",
1061
+ "required": true,
1062
+ "type": "string"
1063
+ },
1064
+ {
1065
+ "name": "language",
1066
+ "required": true,
1067
+ "type": "string"
1068
+ },
1069
+ {
1070
+ "name": "content",
1071
+ "required": true,
1072
+ "type": "string"
1073
+ },
1074
+ {
1075
+ "name": "runnable",
1076
+ "type": "boolean"
1077
+ }
1078
+ ],
1079
+ "SegmentRendererSegmentsItemConnect": [
1080
+ {
1081
+ "name": "type",
1082
+ "required": true,
1083
+ "type": "string"
1084
+ },
1085
+ {
1086
+ "name": "content",
1087
+ "required": true,
1088
+ "type": "string"
1089
+ }
1090
+ ],
1091
+ "SegmentRendererSegmentsItemMarkdown": [
1092
+ {
1093
+ "name": "type",
1094
+ "required": true,
1095
+ "type": "string"
1096
+ },
1097
+ {
1098
+ "name": "content",
1099
+ "required": true,
1100
+ "type": "string"
1101
+ }
1102
+ ],
1103
+ "SegmentRendererSegmentsItemQuiz": [
480
1104
  {
481
1105
  "name": "type",
482
1106
  "required": true,
@@ -493,6 +1117,35 @@
493
1117
  "type": "string"
494
1118
  }
495
1119
  ],
1120
+ "SegmentRendererSegmentsItemReflect": [
1121
+ {
1122
+ "name": "type",
1123
+ "required": true,
1124
+ "type": "string"
1125
+ },
1126
+ {
1127
+ "name": "prompt",
1128
+ "required": true,
1129
+ "type": "string"
1130
+ }
1131
+ ],
1132
+ "SegmentRendererSegmentsItemVisualization": [
1133
+ {
1134
+ "name": "type",
1135
+ "required": true,
1136
+ "type": "string"
1137
+ },
1138
+ {
1139
+ "name": "visualizationType",
1140
+ "required": true,
1141
+ "type": "string"
1142
+ },
1143
+ {
1144
+ "name": "description",
1145
+ "required": true,
1146
+ "type": "string"
1147
+ }
1148
+ ],
496
1149
  "SegmentRendererUserProgress": [
497
1150
  {
498
1151
  "name": "activationResponse",