@almadar/patterns 2.50.0 → 2.52.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.
- package/dist/component-mapping.json +31 -1
- package/dist/event-contracts.json +53 -1
- package/dist/index.d.ts +1263 -339
- package/dist/index.js +689 -18
- package/dist/index.js.map +1 -1
- package/dist/patterns-registry.json +605 -16
- package/dist/registry.json +605 -16
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// src/patterns-registry.json
|
|
2
2
|
var patterns_registry_default = {
|
|
3
3
|
version: "1.0.0",
|
|
4
|
-
exportedAt: "2026-06-
|
|
4
|
+
exportedAt: "2026-06-19T09:54:53.846Z",
|
|
5
5
|
patterns: {
|
|
6
6
|
"entity-table": {
|
|
7
7
|
type: "entity-table",
|
|
@@ -14276,6 +14276,11 @@ var patterns_registry_default = {
|
|
|
14276
14276
|
"object"
|
|
14277
14277
|
]
|
|
14278
14278
|
},
|
|
14279
|
+
modelUrl: {
|
|
14280
|
+
types: [
|
|
14281
|
+
"object"
|
|
14282
|
+
]
|
|
14283
|
+
},
|
|
14279
14284
|
unitType: {
|
|
14280
14285
|
types: [
|
|
14281
14286
|
"string"
|
|
@@ -14633,6 +14638,11 @@ var patterns_registry_default = {
|
|
|
14633
14638
|
"object"
|
|
14634
14639
|
]
|
|
14635
14640
|
},
|
|
14641
|
+
modelUrl: {
|
|
14642
|
+
types: [
|
|
14643
|
+
"object"
|
|
14644
|
+
]
|
|
14645
|
+
},
|
|
14636
14646
|
unitType: {
|
|
14637
14647
|
types: [
|
|
14638
14648
|
"string"
|
|
@@ -15011,6 +15021,11 @@ var patterns_registry_default = {
|
|
|
15011
15021
|
"object"
|
|
15012
15022
|
]
|
|
15013
15023
|
},
|
|
15024
|
+
modelUrl: {
|
|
15025
|
+
types: [
|
|
15026
|
+
"object"
|
|
15027
|
+
]
|
|
15028
|
+
},
|
|
15014
15029
|
unitType: {
|
|
15015
15030
|
types: [
|
|
15016
15031
|
"string"
|
|
@@ -30534,6 +30549,11 @@ var patterns_registry_default = {
|
|
|
30534
30549
|
"asset"
|
|
30535
30550
|
]
|
|
30536
30551
|
},
|
|
30552
|
+
modelUrl: {
|
|
30553
|
+
types: [
|
|
30554
|
+
"asset"
|
|
30555
|
+
]
|
|
30556
|
+
},
|
|
30537
30557
|
unitType: {
|
|
30538
30558
|
types: [
|
|
30539
30559
|
"string"
|
|
@@ -31067,6 +31087,11 @@ var patterns_registry_default = {
|
|
|
31067
31087
|
"asset"
|
|
31068
31088
|
]
|
|
31069
31089
|
},
|
|
31090
|
+
modelUrl: {
|
|
31091
|
+
types: [
|
|
31092
|
+
"asset"
|
|
31093
|
+
]
|
|
31094
|
+
},
|
|
31070
31095
|
unitType: {
|
|
31071
31096
|
types: [
|
|
31072
31097
|
"string"
|
|
@@ -32744,6 +32769,11 @@ var patterns_registry_default = {
|
|
|
32744
32769
|
"asset"
|
|
32745
32770
|
]
|
|
32746
32771
|
},
|
|
32772
|
+
modelUrl: {
|
|
32773
|
+
types: [
|
|
32774
|
+
"asset"
|
|
32775
|
+
]
|
|
32776
|
+
},
|
|
32747
32777
|
unitType: {
|
|
32748
32778
|
types: [
|
|
32749
32779
|
"string"
|
|
@@ -34443,6 +34473,11 @@ var patterns_registry_default = {
|
|
|
34443
34473
|
"asset"
|
|
34444
34474
|
]
|
|
34445
34475
|
},
|
|
34476
|
+
modelUrl: {
|
|
34477
|
+
types: [
|
|
34478
|
+
"asset"
|
|
34479
|
+
]
|
|
34480
|
+
},
|
|
34446
34481
|
unitType: {
|
|
34447
34482
|
types: [
|
|
34448
34483
|
"string"
|
|
@@ -34820,6 +34855,11 @@ var patterns_registry_default = {
|
|
|
34820
34855
|
"asset"
|
|
34821
34856
|
]
|
|
34822
34857
|
},
|
|
34858
|
+
modelUrl: {
|
|
34859
|
+
types: [
|
|
34860
|
+
"asset"
|
|
34861
|
+
]
|
|
34862
|
+
},
|
|
34823
34863
|
unitType: {
|
|
34824
34864
|
types: [
|
|
34825
34865
|
"string"
|
|
@@ -35170,6 +35210,11 @@ var patterns_registry_default = {
|
|
|
35170
35210
|
"asset"
|
|
35171
35211
|
]
|
|
35172
35212
|
},
|
|
35213
|
+
modelUrl: {
|
|
35214
|
+
types: [
|
|
35215
|
+
"asset"
|
|
35216
|
+
]
|
|
35217
|
+
},
|
|
35173
35218
|
unitType: {
|
|
35174
35219
|
types: [
|
|
35175
35220
|
"string"
|
|
@@ -35520,6 +35565,11 @@ var patterns_registry_default = {
|
|
|
35520
35565
|
"asset"
|
|
35521
35566
|
]
|
|
35522
35567
|
},
|
|
35568
|
+
modelUrl: {
|
|
35569
|
+
types: [
|
|
35570
|
+
"asset"
|
|
35571
|
+
]
|
|
35572
|
+
},
|
|
35523
35573
|
unitType: {
|
|
35524
35574
|
types: [
|
|
35525
35575
|
"string"
|
|
@@ -35870,6 +35920,11 @@ var patterns_registry_default = {
|
|
|
35870
35920
|
"asset"
|
|
35871
35921
|
]
|
|
35872
35922
|
},
|
|
35923
|
+
modelUrl: {
|
|
35924
|
+
types: [
|
|
35925
|
+
"asset"
|
|
35926
|
+
]
|
|
35927
|
+
},
|
|
35873
35928
|
unitType: {
|
|
35874
35929
|
types: [
|
|
35875
35930
|
"string"
|
|
@@ -36207,6 +36262,11 @@ var patterns_registry_default = {
|
|
|
36207
36262
|
"asset"
|
|
36208
36263
|
]
|
|
36209
36264
|
},
|
|
36265
|
+
modelUrl: {
|
|
36266
|
+
types: [
|
|
36267
|
+
"asset"
|
|
36268
|
+
]
|
|
36269
|
+
},
|
|
36210
36270
|
unitType: {
|
|
36211
36271
|
types: [
|
|
36212
36272
|
"string"
|
|
@@ -37590,6 +37650,11 @@ var patterns_registry_default = {
|
|
|
37590
37650
|
"object"
|
|
37591
37651
|
]
|
|
37592
37652
|
},
|
|
37653
|
+
modelUrl: {
|
|
37654
|
+
types: [
|
|
37655
|
+
"object"
|
|
37656
|
+
]
|
|
37657
|
+
},
|
|
37593
37658
|
unitType: {
|
|
37594
37659
|
types: [
|
|
37595
37660
|
"string"
|
|
@@ -37980,6 +38045,11 @@ var patterns_registry_default = {
|
|
|
37980
38045
|
"asset"
|
|
37981
38046
|
]
|
|
37982
38047
|
},
|
|
38048
|
+
modelUrl: {
|
|
38049
|
+
types: [
|
|
38050
|
+
"asset"
|
|
38051
|
+
]
|
|
38052
|
+
},
|
|
37983
38053
|
unitType: {
|
|
37984
38054
|
types: [
|
|
37985
38055
|
"string"
|
|
@@ -43981,6 +44051,11 @@ var patterns_registry_default = {
|
|
|
43981
44051
|
"object"
|
|
43982
44052
|
]
|
|
43983
44053
|
},
|
|
44054
|
+
modelUrl: {
|
|
44055
|
+
types: [
|
|
44056
|
+
"object"
|
|
44057
|
+
]
|
|
44058
|
+
},
|
|
43984
44059
|
unitType: {
|
|
43985
44060
|
types: [
|
|
43986
44061
|
"string"
|
|
@@ -44385,10 +44460,36 @@ var patterns_registry_default = {
|
|
|
44385
44460
|
},
|
|
44386
44461
|
{
|
|
44387
44462
|
name: "event",
|
|
44388
|
-
type: "object"
|
|
44463
|
+
type: "object",
|
|
44464
|
+
schema: {
|
|
44465
|
+
types: [
|
|
44466
|
+
"object"
|
|
44467
|
+
],
|
|
44468
|
+
properties: {
|
|
44469
|
+
clientX: {
|
|
44470
|
+
types: [
|
|
44471
|
+
"number"
|
|
44472
|
+
]
|
|
44473
|
+
},
|
|
44474
|
+
clientY: {
|
|
44475
|
+
types: [
|
|
44476
|
+
"number"
|
|
44477
|
+
]
|
|
44478
|
+
},
|
|
44479
|
+
button: {
|
|
44480
|
+
types: [
|
|
44481
|
+
"number"
|
|
44482
|
+
]
|
|
44483
|
+
}
|
|
44484
|
+
},
|
|
44485
|
+
required: [
|
|
44486
|
+
"clientX",
|
|
44487
|
+
"clientY",
|
|
44488
|
+
"button"
|
|
44489
|
+
]
|
|
44490
|
+
}
|
|
44389
44491
|
}
|
|
44390
|
-
]
|
|
44391
|
-
nonEmittable: true
|
|
44492
|
+
]
|
|
44392
44493
|
},
|
|
44393
44494
|
onUnitClick: {
|
|
44394
44495
|
types: [
|
|
@@ -44451,6 +44552,11 @@ var patterns_registry_default = {
|
|
|
44451
44552
|
"object"
|
|
44452
44553
|
]
|
|
44453
44554
|
},
|
|
44555
|
+
modelUrl: {
|
|
44556
|
+
types: [
|
|
44557
|
+
"object"
|
|
44558
|
+
]
|
|
44559
|
+
},
|
|
44454
44560
|
unitType: {
|
|
44455
44561
|
types: [
|
|
44456
44562
|
"string"
|
|
@@ -44573,10 +44679,36 @@ var patterns_registry_default = {
|
|
|
44573
44679
|
},
|
|
44574
44680
|
{
|
|
44575
44681
|
name: "event",
|
|
44576
|
-
type: "object"
|
|
44682
|
+
type: "object",
|
|
44683
|
+
schema: {
|
|
44684
|
+
types: [
|
|
44685
|
+
"object"
|
|
44686
|
+
],
|
|
44687
|
+
properties: {
|
|
44688
|
+
clientX: {
|
|
44689
|
+
types: [
|
|
44690
|
+
"number"
|
|
44691
|
+
]
|
|
44692
|
+
},
|
|
44693
|
+
clientY: {
|
|
44694
|
+
types: [
|
|
44695
|
+
"number"
|
|
44696
|
+
]
|
|
44697
|
+
},
|
|
44698
|
+
button: {
|
|
44699
|
+
types: [
|
|
44700
|
+
"number"
|
|
44701
|
+
]
|
|
44702
|
+
}
|
|
44703
|
+
},
|
|
44704
|
+
required: [
|
|
44705
|
+
"clientX",
|
|
44706
|
+
"clientY",
|
|
44707
|
+
"button"
|
|
44708
|
+
]
|
|
44709
|
+
}
|
|
44577
44710
|
}
|
|
44578
|
-
]
|
|
44579
|
-
nonEmittable: true
|
|
44711
|
+
]
|
|
44580
44712
|
},
|
|
44581
44713
|
onFeatureClick: {
|
|
44582
44714
|
types: [
|
|
@@ -44648,10 +44780,36 @@ var patterns_registry_default = {
|
|
|
44648
44780
|
},
|
|
44649
44781
|
{
|
|
44650
44782
|
name: "event",
|
|
44651
|
-
type: "object"
|
|
44783
|
+
type: "object",
|
|
44784
|
+
schema: {
|
|
44785
|
+
types: [
|
|
44786
|
+
"object"
|
|
44787
|
+
],
|
|
44788
|
+
properties: {
|
|
44789
|
+
clientX: {
|
|
44790
|
+
types: [
|
|
44791
|
+
"number"
|
|
44792
|
+
]
|
|
44793
|
+
},
|
|
44794
|
+
clientY: {
|
|
44795
|
+
types: [
|
|
44796
|
+
"number"
|
|
44797
|
+
]
|
|
44798
|
+
},
|
|
44799
|
+
button: {
|
|
44800
|
+
types: [
|
|
44801
|
+
"number"
|
|
44802
|
+
]
|
|
44803
|
+
}
|
|
44804
|
+
},
|
|
44805
|
+
required: [
|
|
44806
|
+
"clientX",
|
|
44807
|
+
"clientY",
|
|
44808
|
+
"button"
|
|
44809
|
+
]
|
|
44810
|
+
}
|
|
44652
44811
|
}
|
|
44653
|
-
]
|
|
44654
|
-
nonEmittable: true
|
|
44812
|
+
]
|
|
44655
44813
|
},
|
|
44656
44814
|
onCanvasClick: {
|
|
44657
44815
|
types: [
|
|
@@ -44662,10 +44820,36 @@ var patterns_registry_default = {
|
|
|
44662
44820
|
callbackArgs: [
|
|
44663
44821
|
{
|
|
44664
44822
|
name: "event",
|
|
44665
|
-
type: "object"
|
|
44823
|
+
type: "object",
|
|
44824
|
+
schema: {
|
|
44825
|
+
types: [
|
|
44826
|
+
"object"
|
|
44827
|
+
],
|
|
44828
|
+
properties: {
|
|
44829
|
+
clientX: {
|
|
44830
|
+
types: [
|
|
44831
|
+
"number"
|
|
44832
|
+
]
|
|
44833
|
+
},
|
|
44834
|
+
clientY: {
|
|
44835
|
+
types: [
|
|
44836
|
+
"number"
|
|
44837
|
+
]
|
|
44838
|
+
},
|
|
44839
|
+
button: {
|
|
44840
|
+
types: [
|
|
44841
|
+
"number"
|
|
44842
|
+
]
|
|
44843
|
+
}
|
|
44844
|
+
},
|
|
44845
|
+
required: [
|
|
44846
|
+
"clientX",
|
|
44847
|
+
"clientY",
|
|
44848
|
+
"button"
|
|
44849
|
+
]
|
|
44850
|
+
}
|
|
44666
44851
|
}
|
|
44667
|
-
]
|
|
44668
|
-
nonEmittable: true
|
|
44852
|
+
]
|
|
44669
44853
|
},
|
|
44670
44854
|
onTileHover: {
|
|
44671
44855
|
types: [
|
|
@@ -44751,10 +44935,36 @@ var patterns_registry_default = {
|
|
|
44751
44935
|
},
|
|
44752
44936
|
{
|
|
44753
44937
|
name: "event",
|
|
44754
|
-
type: "object"
|
|
44938
|
+
type: "object",
|
|
44939
|
+
schema: {
|
|
44940
|
+
types: [
|
|
44941
|
+
"object"
|
|
44942
|
+
],
|
|
44943
|
+
properties: {
|
|
44944
|
+
clientX: {
|
|
44945
|
+
types: [
|
|
44946
|
+
"number"
|
|
44947
|
+
]
|
|
44948
|
+
},
|
|
44949
|
+
clientY: {
|
|
44950
|
+
types: [
|
|
44951
|
+
"number"
|
|
44952
|
+
]
|
|
44953
|
+
},
|
|
44954
|
+
button: {
|
|
44955
|
+
types: [
|
|
44956
|
+
"number"
|
|
44957
|
+
]
|
|
44958
|
+
}
|
|
44959
|
+
},
|
|
44960
|
+
required: [
|
|
44961
|
+
"clientX",
|
|
44962
|
+
"clientY",
|
|
44963
|
+
"button"
|
|
44964
|
+
]
|
|
44965
|
+
}
|
|
44755
44966
|
}
|
|
44756
|
-
]
|
|
44757
|
-
nonEmittable: true
|
|
44967
|
+
]
|
|
44758
44968
|
},
|
|
44759
44969
|
onUnitAnimation: {
|
|
44760
44970
|
types: [
|
|
@@ -45624,6 +45834,385 @@ var patterns_registry_default = {
|
|
|
45624
45834
|
}
|
|
45625
45835
|
}
|
|
45626
45836
|
}
|
|
45837
|
+
},
|
|
45838
|
+
"activation-block": {
|
|
45839
|
+
type: "activation-block",
|
|
45840
|
+
category: "component",
|
|
45841
|
+
tier: "molecules",
|
|
45842
|
+
family: "core",
|
|
45843
|
+
description: "ActivationBlock component",
|
|
45844
|
+
suggestedFor: [
|
|
45845
|
+
"activation",
|
|
45846
|
+
"block",
|
|
45847
|
+
"activation block"
|
|
45848
|
+
],
|
|
45849
|
+
typicalSize: "medium",
|
|
45850
|
+
propsSchema: {
|
|
45851
|
+
question: {
|
|
45852
|
+
types: [
|
|
45853
|
+
"string"
|
|
45854
|
+
],
|
|
45855
|
+
description: "The prior-knowledge question",
|
|
45856
|
+
required: true
|
|
45857
|
+
},
|
|
45858
|
+
savedResponse: {
|
|
45859
|
+
types: [
|
|
45860
|
+
"string"
|
|
45861
|
+
],
|
|
45862
|
+
description: "Pre-filled response from saved state"
|
|
45863
|
+
},
|
|
45864
|
+
saveEvent: {
|
|
45865
|
+
types: [
|
|
45866
|
+
"string"
|
|
45867
|
+
],
|
|
45868
|
+
description: "Event name emitted on save/skip (as `UI:<saveEvent>`). Defaults to 'SAVE_ACTIVATION'.",
|
|
45869
|
+
default: "SAVE_ACTIVATION"
|
|
45870
|
+
},
|
|
45871
|
+
className: {
|
|
45872
|
+
types: [
|
|
45873
|
+
"string"
|
|
45874
|
+
],
|
|
45875
|
+
description: "Additional CSS classes"
|
|
45876
|
+
}
|
|
45877
|
+
}
|
|
45878
|
+
},
|
|
45879
|
+
"bloom-quiz-block": {
|
|
45880
|
+
type: "bloom-quiz-block",
|
|
45881
|
+
category: "component",
|
|
45882
|
+
tier: "molecules",
|
|
45883
|
+
family: "core",
|
|
45884
|
+
description: "BloomQuizBlock component",
|
|
45885
|
+
suggestedFor: [
|
|
45886
|
+
"bloom",
|
|
45887
|
+
"quiz",
|
|
45888
|
+
"block",
|
|
45889
|
+
"bloom quiz block"
|
|
45890
|
+
],
|
|
45891
|
+
typicalSize: "medium",
|
|
45892
|
+
propsSchema: {
|
|
45893
|
+
level: {
|
|
45894
|
+
types: [
|
|
45895
|
+
"string"
|
|
45896
|
+
],
|
|
45897
|
+
description: "level prop",
|
|
45898
|
+
required: true,
|
|
45899
|
+
enumValues: [
|
|
45900
|
+
"remember",
|
|
45901
|
+
"understand",
|
|
45902
|
+
"apply",
|
|
45903
|
+
"analyze",
|
|
45904
|
+
"evaluate",
|
|
45905
|
+
"create"
|
|
45906
|
+
]
|
|
45907
|
+
},
|
|
45908
|
+
question: {
|
|
45909
|
+
types: [
|
|
45910
|
+
"string"
|
|
45911
|
+
],
|
|
45912
|
+
description: "question prop",
|
|
45913
|
+
required: true
|
|
45914
|
+
},
|
|
45915
|
+
answer: {
|
|
45916
|
+
types: [
|
|
45917
|
+
"string"
|
|
45918
|
+
],
|
|
45919
|
+
description: "answer prop",
|
|
45920
|
+
required: true
|
|
45921
|
+
},
|
|
45922
|
+
index: {
|
|
45923
|
+
types: [
|
|
45924
|
+
"number"
|
|
45925
|
+
],
|
|
45926
|
+
description: "Zero-based index (used in the emitted event payload)"
|
|
45927
|
+
},
|
|
45928
|
+
isAnswered: {
|
|
45929
|
+
types: [
|
|
45930
|
+
"boolean"
|
|
45931
|
+
],
|
|
45932
|
+
description: "Whether the learner has already answered"
|
|
45933
|
+
},
|
|
45934
|
+
answerEvent: {
|
|
45935
|
+
types: [
|
|
45936
|
+
"string"
|
|
45937
|
+
],
|
|
45938
|
+
description: "Event name emitted on first reveal (as `UI:<answerEvent>`). Defaults to 'ANSWER_BLOOM'.",
|
|
45939
|
+
default: "ANSWER_BLOOM"
|
|
45940
|
+
},
|
|
45941
|
+
className: {
|
|
45942
|
+
types: [
|
|
45943
|
+
"string"
|
|
45944
|
+
],
|
|
45945
|
+
description: "Additional CSS classes"
|
|
45946
|
+
}
|
|
45947
|
+
}
|
|
45948
|
+
},
|
|
45949
|
+
"connection-block": {
|
|
45950
|
+
type: "connection-block",
|
|
45951
|
+
category: "component",
|
|
45952
|
+
tier: "molecules",
|
|
45953
|
+
family: "core",
|
|
45954
|
+
description: "ConnectionBlock component",
|
|
45955
|
+
suggestedFor: [
|
|
45956
|
+
"connection",
|
|
45957
|
+
"block",
|
|
45958
|
+
"connection block"
|
|
45959
|
+
],
|
|
45960
|
+
typicalSize: "medium",
|
|
45961
|
+
propsSchema: {
|
|
45962
|
+
content: {
|
|
45963
|
+
types: [
|
|
45964
|
+
"string"
|
|
45965
|
+
],
|
|
45966
|
+
description: "Markdown content summarising what the learner already knows",
|
|
45967
|
+
required: true
|
|
45968
|
+
},
|
|
45969
|
+
className: {
|
|
45970
|
+
types: [
|
|
45971
|
+
"string"
|
|
45972
|
+
],
|
|
45973
|
+
description: "Additional CSS classes"
|
|
45974
|
+
}
|
|
45975
|
+
}
|
|
45976
|
+
},
|
|
45977
|
+
"reflection-block": {
|
|
45978
|
+
type: "reflection-block",
|
|
45979
|
+
category: "component",
|
|
45980
|
+
tier: "molecules",
|
|
45981
|
+
family: "core",
|
|
45982
|
+
description: "ReflectionBlock component",
|
|
45983
|
+
suggestedFor: [
|
|
45984
|
+
"reflection",
|
|
45985
|
+
"block",
|
|
45986
|
+
"reflection block"
|
|
45987
|
+
],
|
|
45988
|
+
typicalSize: "medium",
|
|
45989
|
+
propsSchema: {
|
|
45990
|
+
prompt: {
|
|
45991
|
+
types: [
|
|
45992
|
+
"string"
|
|
45993
|
+
],
|
|
45994
|
+
description: "The reflection prompt",
|
|
45995
|
+
required: true
|
|
45996
|
+
},
|
|
45997
|
+
index: {
|
|
45998
|
+
types: [
|
|
45999
|
+
"number"
|
|
46000
|
+
],
|
|
46001
|
+
description: "Zero-based index of this block (used in the emitted event payload)",
|
|
46002
|
+
required: true
|
|
46003
|
+
},
|
|
46004
|
+
savedNote: {
|
|
46005
|
+
types: [
|
|
46006
|
+
"string"
|
|
46007
|
+
],
|
|
46008
|
+
description: "Pre-filled note from saved state"
|
|
46009
|
+
},
|
|
46010
|
+
saveEvent: {
|
|
46011
|
+
types: [
|
|
46012
|
+
"string"
|
|
46013
|
+
],
|
|
46014
|
+
description: "Event name emitted on save (as `UI:<saveEvent>`). Defaults to 'SAVE_REFLECTION'.",
|
|
46015
|
+
default: "SAVE_REFLECTION"
|
|
46016
|
+
},
|
|
46017
|
+
className: {
|
|
46018
|
+
types: [
|
|
46019
|
+
"string"
|
|
46020
|
+
],
|
|
46021
|
+
description: "Additional CSS classes"
|
|
46022
|
+
}
|
|
46023
|
+
}
|
|
46024
|
+
},
|
|
46025
|
+
"code-runner-panel": {
|
|
46026
|
+
type: "code-runner-panel",
|
|
46027
|
+
category: "display",
|
|
46028
|
+
tier: "organisms",
|
|
46029
|
+
family: "core",
|
|
46030
|
+
description: "CodeRunnerPanel component",
|
|
46031
|
+
suggestedFor: [
|
|
46032
|
+
"code",
|
|
46033
|
+
"runner",
|
|
46034
|
+
"panel",
|
|
46035
|
+
"code runner panel"
|
|
46036
|
+
],
|
|
46037
|
+
typicalSize: "large",
|
|
46038
|
+
propsSchema: {
|
|
46039
|
+
code: {
|
|
46040
|
+
types: [
|
|
46041
|
+
"string"
|
|
46042
|
+
],
|
|
46043
|
+
description: "Initial code content",
|
|
46044
|
+
required: true
|
|
46045
|
+
},
|
|
46046
|
+
language: {
|
|
46047
|
+
types: [
|
|
46048
|
+
"string"
|
|
46049
|
+
],
|
|
46050
|
+
description: "Programming language for syntax highlighting",
|
|
46051
|
+
required: true
|
|
46052
|
+
},
|
|
46053
|
+
runnable: {
|
|
46054
|
+
types: [
|
|
46055
|
+
"boolean"
|
|
46056
|
+
],
|
|
46057
|
+
description: "Whether the panel allows running (false = read-only code block)",
|
|
46058
|
+
default: true
|
|
46059
|
+
},
|
|
46060
|
+
onRun: {
|
|
46061
|
+
types: [
|
|
46062
|
+
"function"
|
|
46063
|
+
],
|
|
46064
|
+
description: "Simulate executing the code. Omit to render a read-only block. Real execution is a separate future track \u2014 this callback supplies deterministic simulated output for UI feedback.",
|
|
46065
|
+
kind: "callback",
|
|
46066
|
+
callbackArgs: [
|
|
46067
|
+
{
|
|
46068
|
+
name: "code",
|
|
46069
|
+
type: "string"
|
|
46070
|
+
}
|
|
46071
|
+
],
|
|
46072
|
+
renderCallback: true
|
|
46073
|
+
},
|
|
46074
|
+
runEvent: {
|
|
46075
|
+
types: [
|
|
46076
|
+
"string"
|
|
46077
|
+
],
|
|
46078
|
+
description: "Event name to emit on run (emitted as `UI:<runEvent>`). Defaults to 'RUN_CODE'.",
|
|
46079
|
+
default: "RUN_CODE"
|
|
46080
|
+
},
|
|
46081
|
+
className: {
|
|
46082
|
+
types: [
|
|
46083
|
+
"string"
|
|
46084
|
+
],
|
|
46085
|
+
description: "Additional CSS classes"
|
|
46086
|
+
}
|
|
46087
|
+
}
|
|
46088
|
+
},
|
|
46089
|
+
"segment-renderer": {
|
|
46090
|
+
type: "segment-renderer",
|
|
46091
|
+
category: "display",
|
|
46092
|
+
tier: "organisms",
|
|
46093
|
+
family: "core",
|
|
46094
|
+
description: "SegmentRenderer component",
|
|
46095
|
+
suggestedFor: [
|
|
46096
|
+
"segment",
|
|
46097
|
+
"renderer",
|
|
46098
|
+
"segment renderer"
|
|
46099
|
+
],
|
|
46100
|
+
typicalSize: "large",
|
|
46101
|
+
propsSchema: {
|
|
46102
|
+
segments: {
|
|
46103
|
+
types: [
|
|
46104
|
+
"array"
|
|
46105
|
+
],
|
|
46106
|
+
description: "Parsed lesson segments (see `parseLessonSegments`)",
|
|
46107
|
+
required: true,
|
|
46108
|
+
items: {
|
|
46109
|
+
types: [
|
|
46110
|
+
"object"
|
|
46111
|
+
],
|
|
46112
|
+
properties: {
|
|
46113
|
+
type: {
|
|
46114
|
+
types: [
|
|
46115
|
+
"unknown"
|
|
46116
|
+
]
|
|
46117
|
+
},
|
|
46118
|
+
content: {
|
|
46119
|
+
types: [
|
|
46120
|
+
"string"
|
|
46121
|
+
]
|
|
46122
|
+
}
|
|
46123
|
+
},
|
|
46124
|
+
required: [
|
|
46125
|
+
"type",
|
|
46126
|
+
"content"
|
|
46127
|
+
]
|
|
46128
|
+
}
|
|
46129
|
+
},
|
|
46130
|
+
className: {
|
|
46131
|
+
types: [
|
|
46132
|
+
"string"
|
|
46133
|
+
],
|
|
46134
|
+
description: "Additional CSS classes for the root container"
|
|
46135
|
+
},
|
|
46136
|
+
containerClassName: {
|
|
46137
|
+
types: [
|
|
46138
|
+
"string"
|
|
46139
|
+
],
|
|
46140
|
+
description: "CSS classes for the outer wrapping div"
|
|
46141
|
+
},
|
|
46142
|
+
userProgress: {
|
|
46143
|
+
types: [
|
|
46144
|
+
"object"
|
|
46145
|
+
],
|
|
46146
|
+
description: "User progress for restoring activation/reflection state",
|
|
46147
|
+
properties: {
|
|
46148
|
+
activationResponse: {
|
|
46149
|
+
types: [
|
|
46150
|
+
"string"
|
|
46151
|
+
]
|
|
46152
|
+
},
|
|
46153
|
+
reflectionNotes: {
|
|
46154
|
+
types: [
|
|
46155
|
+
"array"
|
|
46156
|
+
],
|
|
46157
|
+
items: {
|
|
46158
|
+
types: [
|
|
46159
|
+
"string"
|
|
46160
|
+
]
|
|
46161
|
+
}
|
|
46162
|
+
},
|
|
46163
|
+
bloomAnswered: {
|
|
46164
|
+
types: [
|
|
46165
|
+
"object"
|
|
46166
|
+
],
|
|
46167
|
+
mapValue: {
|
|
46168
|
+
types: [
|
|
46169
|
+
"boolean"
|
|
46170
|
+
]
|
|
46171
|
+
}
|
|
46172
|
+
}
|
|
46173
|
+
}
|
|
46174
|
+
},
|
|
46175
|
+
onRunCodeSimulation: {
|
|
46176
|
+
types: [
|
|
46177
|
+
"function"
|
|
46178
|
+
],
|
|
46179
|
+
description: "Simulate executing runnable code blocks. Omit to render runnable blocks as read-only. Real execution is a future track.",
|
|
46180
|
+
kind: "callback",
|
|
46181
|
+
callbackArgs: [
|
|
46182
|
+
{
|
|
46183
|
+
name: "code",
|
|
46184
|
+
type: "string"
|
|
46185
|
+
},
|
|
46186
|
+
{
|
|
46187
|
+
name: "language",
|
|
46188
|
+
type: "string"
|
|
46189
|
+
}
|
|
46190
|
+
],
|
|
46191
|
+
renderCallback: true
|
|
46192
|
+
},
|
|
46193
|
+
onRenderVisualization: {
|
|
46194
|
+
types: [
|
|
46195
|
+
"function"
|
|
46196
|
+
],
|
|
46197
|
+
description: "Optional render slot for `visualization` segment types. When not provided, visualization segments are silently skipped. Callers can wire this to any custom component or orbital generator.",
|
|
46198
|
+
kind: "callback",
|
|
46199
|
+
callbackArgs: [
|
|
46200
|
+
{
|
|
46201
|
+
name: "type",
|
|
46202
|
+
type: "string"
|
|
46203
|
+
},
|
|
46204
|
+
{
|
|
46205
|
+
name: "description",
|
|
46206
|
+
type: "string"
|
|
46207
|
+
},
|
|
46208
|
+
{
|
|
46209
|
+
name: "index",
|
|
46210
|
+
type: "number"
|
|
46211
|
+
}
|
|
46212
|
+
],
|
|
46213
|
+
renderCallback: true
|
|
46214
|
+
}
|
|
46215
|
+
}
|
|
45627
46216
|
}
|
|
45628
46217
|
},
|
|
45629
46218
|
categories: [
|
|
@@ -46251,7 +46840,7 @@ var integrators_registry_default = {
|
|
|
46251
46840
|
// src/component-mapping.json
|
|
46252
46841
|
var component_mapping_default = {
|
|
46253
46842
|
version: "1.0.0",
|
|
46254
|
-
exportedAt: "2026-06-
|
|
46843
|
+
exportedAt: "2026-06-19T09:54:53.846Z",
|
|
46255
46844
|
mappings: {
|
|
46256
46845
|
"page-header": {
|
|
46257
46846
|
component: "PageHeader",
|
|
@@ -47769,6 +48358,36 @@ var component_mapping_default = {
|
|
|
47769
48358
|
component: "GameCanvas3DWorldMapTemplate",
|
|
47770
48359
|
importPath: "@/components/templates/GameCanvas3DWorldMapTemplate",
|
|
47771
48360
|
category: "game"
|
|
48361
|
+
},
|
|
48362
|
+
"activation-block": {
|
|
48363
|
+
component: "ActivationBlock",
|
|
48364
|
+
importPath: "@/components/molecules/ActivationBlock",
|
|
48365
|
+
category: "component"
|
|
48366
|
+
},
|
|
48367
|
+
"bloom-quiz-block": {
|
|
48368
|
+
component: "BloomQuizBlock",
|
|
48369
|
+
importPath: "@/components/molecules/BloomQuizBlock",
|
|
48370
|
+
category: "component"
|
|
48371
|
+
},
|
|
48372
|
+
"connection-block": {
|
|
48373
|
+
component: "ConnectionBlock",
|
|
48374
|
+
importPath: "@/components/molecules/ConnectionBlock",
|
|
48375
|
+
category: "component"
|
|
48376
|
+
},
|
|
48377
|
+
"reflection-block": {
|
|
48378
|
+
component: "ReflectionBlock",
|
|
48379
|
+
importPath: "@/components/molecules/ReflectionBlock",
|
|
48380
|
+
category: "component"
|
|
48381
|
+
},
|
|
48382
|
+
"code-runner-panel": {
|
|
48383
|
+
component: "CodeRunnerPanel",
|
|
48384
|
+
importPath: "@/components/organisms/CodeRunnerPanel",
|
|
48385
|
+
category: "display"
|
|
48386
|
+
},
|
|
48387
|
+
"segment-renderer": {
|
|
48388
|
+
component: "SegmentRenderer",
|
|
48389
|
+
importPath: "@/components/organisms/SegmentRenderer",
|
|
48390
|
+
category: "display"
|
|
47772
48391
|
}
|
|
47773
48392
|
}
|
|
47774
48393
|
};
|
|
@@ -47776,7 +48395,7 @@ var component_mapping_default = {
|
|
|
47776
48395
|
// src/event-contracts.json
|
|
47777
48396
|
var event_contracts_default = {
|
|
47778
48397
|
version: "1.0.0",
|
|
47779
|
-
exportedAt: "2026-06-
|
|
48398
|
+
exportedAt: "2026-06-19T09:54:53.846Z",
|
|
47780
48399
|
contracts: {
|
|
47781
48400
|
form: {
|
|
47782
48401
|
emits: [
|
|
@@ -48963,6 +49582,58 @@ var event_contracts_default = {
|
|
|
48963
49582
|
],
|
|
48964
49583
|
requires: [],
|
|
48965
49584
|
entityAware: true
|
|
49585
|
+
},
|
|
49586
|
+
"activation-block": {
|
|
49587
|
+
emits: [
|
|
49588
|
+
{
|
|
49589
|
+
event: "SAVE_ACTIVATION",
|
|
49590
|
+
trigger: "action",
|
|
49591
|
+
payload: {
|
|
49592
|
+
type: "object"
|
|
49593
|
+
}
|
|
49594
|
+
}
|
|
49595
|
+
],
|
|
49596
|
+
requires: [],
|
|
49597
|
+
entityAware: false
|
|
49598
|
+
},
|
|
49599
|
+
"bloom-quiz-block": {
|
|
49600
|
+
emits: [
|
|
49601
|
+
{
|
|
49602
|
+
event: "ANSWER_BLOOM",
|
|
49603
|
+
trigger: "action",
|
|
49604
|
+
payload: {
|
|
49605
|
+
type: "object"
|
|
49606
|
+
}
|
|
49607
|
+
}
|
|
49608
|
+
],
|
|
49609
|
+
requires: [],
|
|
49610
|
+
entityAware: false
|
|
49611
|
+
},
|
|
49612
|
+
"reflection-block": {
|
|
49613
|
+
emits: [
|
|
49614
|
+
{
|
|
49615
|
+
event: "SAVE_REFLECTION",
|
|
49616
|
+
trigger: "action",
|
|
49617
|
+
payload: {
|
|
49618
|
+
type: "object"
|
|
49619
|
+
}
|
|
49620
|
+
}
|
|
49621
|
+
],
|
|
49622
|
+
requires: [],
|
|
49623
|
+
entityAware: false
|
|
49624
|
+
},
|
|
49625
|
+
"code-runner-panel": {
|
|
49626
|
+
emits: [
|
|
49627
|
+
{
|
|
49628
|
+
event: "RUN_CODE",
|
|
49629
|
+
trigger: "action",
|
|
49630
|
+
payload: {
|
|
49631
|
+
type: "object"
|
|
49632
|
+
}
|
|
49633
|
+
}
|
|
49634
|
+
],
|
|
49635
|
+
requires: [],
|
|
49636
|
+
entityAware: false
|
|
48966
49637
|
}
|
|
48967
49638
|
}
|
|
48968
49639
|
};
|