@almadar/std 16.239.0 → 16.242.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/behaviors/behaviors-registry.json +4814 -553
- package/behaviors/lolo/agent/atoms/std-agent-memory.lolo +38 -1
- package/behaviors/lolo/agent/atoms/std-agent-session.lolo +1074 -47
- package/behaviors/lolo/agent/atoms/std-agent-tool-loop.lolo +8 -7
- package/behaviors/lolo/agent/organisms/std-agent-assistant.lolo +56 -37
- package/behaviors/lolo/infra/atoms/std-page-open.lolo +59 -0
- package/behaviors/lolo/infra/atoms/std-page-search.lolo +134 -0
- package/behaviors/lolo/infra/atoms/std-page-treat.lolo +59 -0
- package/behaviors/lolo/infra/atoms/std-page-watch.lolo +86 -0
- package/behaviors/lolo/ui/core/atoms/std-board.lolo +53 -6
- package/behaviors/lolo/ui/core/atoms/std-book-reader.lolo +25 -1
- package/behaviors/lolo/ui/core/atoms/std-card-grid.lolo +9 -0
- package/behaviors/lolo/ui/core/atoms/std-doc-page.lolo +153 -0
- package/behaviors/lolo/ui/core/atoms/std-site-header.lolo +15 -3
- package/behaviors/lolo/ui/core/atoms/std-tag-strip.lolo +2 -2
- package/behaviors/lolo/ui/core/atoms/std-tag-taxonomy.lolo +7 -7
- package/behaviors/lolo/ui/core/atoms/std-version-history.lolo +1 -1
- package/behaviors/lolo/ui/core/molecules/ui-header.lolo +5 -0
- package/behaviors/lolo/ui/learning/atoms/std-learn-arrangement.lolo +124 -92
- package/behaviors/lolo/ui/learning/atoms/std-learn-classify.lolo +114 -55
- package/behaviors/lolo/ui/learning/atoms/std-learn-compare.lolo +40 -14
- package/behaviors/lolo/ui/learning/atoms/std-learn-coupled-sim.lolo +363 -123
- package/behaviors/lolo/ui/learning/atoms/std-learn-derivation.lolo +93 -48
- package/behaviors/lolo/ui/learning/atoms/std-learn-diagram.lolo +60 -28
- package/behaviors/lolo/ui/learning/atoms/std-learn-doser.lolo +193 -96
- package/behaviors/lolo/ui/learning/atoms/std-learn-estimate.lolo +75 -32
- package/behaviors/lolo/ui/learning/atoms/std-learn-goal-seek.lolo +142 -86
- package/behaviors/lolo/ui/learning/atoms/std-learn-grid-sim.lolo +266 -98
- package/behaviors/lolo/ui/learning/atoms/std-learn-hotspot.lolo +103 -65
- package/behaviors/lolo/ui/learning/atoms/std-learn-live-sim.lolo +223 -109
- package/behaviors/lolo/ui/learning/atoms/std-learn-measure.lolo +232 -64
- package/behaviors/lolo/ui/learning/atoms/std-learn-param-explorer.lolo +69 -29
- package/behaviors/lolo/ui/learning/atoms/std-learn-perturb.lolo +363 -123
- package/behaviors/lolo/ui/learning/atoms/std-learn-predict.lolo +73 -41
- package/behaviors/lolo/ui/learning/atoms/std-learn-sample-accumulator.lolo +96 -38
- package/behaviors/lolo/ui/learning/atoms/std-learn-sandbox.lolo +65 -45
- package/behaviors/lolo/ui/learning/atoms/std-learn-scatter-fit.lolo +243 -117
- package/behaviors/lolo/ui/learning/atoms/std-learn-scenario.lolo +76 -28
- package/behaviors/lolo/ui/learning/atoms/std-learn-sim-3d.lolo +228 -109
- package/behaviors/lolo/ui/learning/atoms/std-learn-speed-drill.lolo +95 -44
- package/behaviors/lolo/ui/learning/atoms/std-learn-stepper.lolo +199 -125
- package/behaviors/lolo/ui/learning/atoms/std-learn-tour-3d.lolo +92 -48
- package/behaviors/lolo/ui/learning/atoms/std-learn-trace-player.lolo +239 -78
- package/behaviors/lolo/ui/learning/atoms/std-learn-transport.lolo +147 -38
- package/behaviors/lolo/ui/learning/atoms/std-learn-tree.lolo +123 -58
- package/behaviors/lolo/ui/learning/atoms/ui-algo-graph-canvas.lolo +22 -0
- package/behaviors/lolo/ui/learning/atoms/ui-algorithm-canvas.lolo +26 -0
- package/behaviors/lolo/ui/learning/atoms/ui-biology-canvas.lolo +26 -0
- package/behaviors/lolo/ui/learning/atoms/ui-chemistry-canvas.lolo +27 -1
- package/behaviors/lolo/ui/learning/atoms/ui-learning-canvas.lolo +27 -1
- package/behaviors/lolo/ui/learning/atoms/ui-math-canvas.lolo +29 -9
- package/behaviors/lolo/ui/learning/atoms/ui-physics-canvas.lolo +26 -0
- package/behaviors/lolo-behavior-contracts.json +1 -1
- package/behaviors/registry/agent/atoms/std-agent-memory.orb +372 -2
- package/behaviors/registry/agent/atoms/std-agent-session.orb +4752 -348
- package/behaviors/registry/agent/atoms/std-agent-tool-loop.orb +54 -42
- package/behaviors/registry/agent/organisms/std-agent-assistant.orb +356 -122
- package/behaviors/registry/factory-signatures.json +1 -1
- package/behaviors/registry/infra/atoms/std-page-open.orb +435 -0
- package/behaviors/registry/infra/atoms/std-page-search.orb +867 -0
- package/behaviors/registry/infra/atoms/std-page-treat.orb +494 -0
- package/behaviors/registry/infra/atoms/std-page-watch.orb +554 -0
- package/behaviors/registry/ui/core/atoms/std-board.orb +110 -14
- package/behaviors/registry/ui/core/atoms/std-book-reader.orb +119 -0
- package/behaviors/registry/ui/core/atoms/std-card-grid.orb +61 -0
- package/behaviors/registry/ui/core/atoms/std-doc-page.orb +594 -0
- package/behaviors/registry/ui/core/atoms/std-site-header.orb +40 -2
- package/behaviors/registry/ui/core/atoms/std-tag-strip.orb +2 -0
- package/behaviors/registry/ui/core/atoms/std-tag-taxonomy.orb +24 -0
- package/behaviors/registry/ui/core/atoms/std-version-history.orb +8 -1
- package/behaviors/registry/ui/core/molecules/ui-header.orb +7 -0
- package/behaviors/registry/ui/learning/atoms/std-learn-arrangement.orb +903 -369
- package/behaviors/registry/ui/learning/atoms/std-learn-classify.orb +1002 -232
- package/behaviors/registry/ui/learning/atoms/std-learn-compare.orb +253 -74
- package/behaviors/registry/ui/learning/atoms/std-learn-coupled-sim.orb +3624 -921
- package/behaviors/registry/ui/learning/atoms/std-learn-derivation.orb +685 -144
- package/behaviors/registry/ui/learning/atoms/std-learn-diagram.orb +404 -52
- package/behaviors/registry/ui/learning/atoms/std-learn-doser.orb +1787 -210
- package/behaviors/registry/ui/learning/atoms/std-learn-estimate.orb +699 -71
- package/behaviors/registry/ui/learning/atoms/std-learn-goal-seek.orb +1102 -578
- package/behaviors/registry/ui/learning/atoms/std-learn-grid-sim.orb +2760 -872
- package/behaviors/registry/ui/learning/atoms/std-learn-hotspot.orb +689 -152
- package/behaviors/registry/ui/learning/atoms/std-learn-live-sim.orb +1431 -633
- package/behaviors/registry/ui/learning/atoms/std-learn-measure.orb +2485 -512
- package/behaviors/registry/ui/learning/atoms/std-learn-param-explorer.orb +501 -197
- package/behaviors/registry/ui/learning/atoms/std-learn-perturb.orb +3642 -928
- package/behaviors/registry/ui/learning/atoms/std-learn-predict.orb +705 -125
- package/behaviors/registry/ui/learning/atoms/std-learn-sample-accumulator.orb +624 -114
- package/behaviors/registry/ui/learning/atoms/std-learn-sandbox.orb +405 -153
- package/behaviors/registry/ui/learning/atoms/std-learn-scatter-fit.orb +1911 -611
- package/behaviors/registry/ui/learning/atoms/std-learn-scenario.orb +436 -128
- package/behaviors/registry/ui/learning/atoms/std-learn-sim-3d.orb +2482 -485
- package/behaviors/registry/ui/learning/atoms/std-learn-speed-drill.orb +896 -192
- package/behaviors/registry/ui/learning/atoms/std-learn-stepper.orb +2001 -759
- package/behaviors/registry/ui/learning/atoms/std-learn-tour-3d.orb +734 -228
- package/behaviors/registry/ui/learning/atoms/std-learn-trace-player.orb +2501 -764
- package/behaviors/registry/ui/learning/atoms/std-learn-transport.orb +1591 -173
- package/behaviors/registry/ui/learning/atoms/std-learn-tree.orb +883 -122
- package/behaviors/registry/ui/learning/atoms/ui-algo-graph-canvas.orb +176 -0
- package/behaviors/registry/ui/learning/atoms/ui-algorithm-canvas.orb +211 -0
- package/behaviors/registry/ui/learning/atoms/ui-biology-canvas.orb +211 -0
- package/behaviors/registry/ui/learning/atoms/ui-chemistry-canvas.orb +212 -1
- package/behaviors/registry/ui/learning/atoms/ui-learning-canvas.orb +212 -1
- package/behaviors/registry/ui/learning/atoms/ui-math-canvas.orb +203 -9
- package/behaviors/registry/ui/learning/atoms/ui-physics-canvas.orb +211 -0
- package/behaviors/signatures.lolo +325 -655
- package/canonical-operators.json +35 -1
- package/dist/behaviors/exports-reader.js +41980 -35508
- package/dist/behaviors/functions/index.d.ts +1063 -140
- package/dist/behaviors/functions/index.js +41951 -35506
- package/dist/behaviors/index.d.ts +1 -1
- package/dist/behaviors/index.js +41981 -35509
- package/dist/behaviors/query.js +41980 -35508
- package/dist/behaviors-embeddings.hash.json +3 -3
- package/dist/behaviors-embeddings.json +47 -27
- package/dist/behaviors-registry.json +4814 -553
- package/dist/index.d.ts +4 -4
- package/dist/index.js +42019 -35509
- package/dist/knob-embeddings.hash.json +3 -3
- package/dist/knob-embeddings.json +623 -263
- package/dist/modules/anim.d.ts +1 -1
- package/dist/modules/array.d.ts +1 -1
- package/dist/modules/async.d.ts +1 -1
- package/dist/modules/behavior.d.ts +1 -1
- package/dist/modules/browser.d.ts +1 -1
- package/dist/modules/composition.d.ts +1 -1
- package/dist/modules/contract.d.ts +1 -1
- package/dist/modules/core.d.ts +1 -1
- package/dist/modules/core.js +2 -0
- package/dist/modules/data.d.ts +1 -1
- package/dist/modules/ease.d.ts +1 -1
- package/dist/modules/format.d.ts +1 -1
- package/dist/modules/geo.d.ts +1 -1
- package/dist/modules/graph.d.ts +1 -1
- package/dist/modules/grid.d.ts +1 -1
- package/dist/modules/i18n.d.ts +17 -0
- package/dist/modules/i18n.js +22 -0
- package/dist/modules/index.d.ts +2 -1
- package/dist/modules/index.js +24 -1
- package/dist/modules/integration.d.ts +1 -1
- package/dist/modules/json.d.ts +1 -1
- package/dist/modules/llm.d.ts +1 -1
- package/dist/modules/math.d.ts +1 -1
- package/dist/modules/memory.d.ts +1 -1
- package/dist/modules/nn.d.ts +1 -1
- package/dist/modules/noise.d.ts +1 -1
- package/dist/modules/object.d.ts +1 -1
- package/dist/modules/os.d.ts +1 -1
- package/dist/modules/path.d.ts +1 -1
- package/dist/modules/prob.d.ts +1 -1
- package/dist/modules/session.d.ts +1 -1
- package/dist/modules/str.d.ts +1 -1
- package/dist/modules/tensor.d.ts +1 -1
- package/dist/modules/time.d.ts +1 -1
- package/dist/modules/trace.d.ts +1 -1
- package/dist/modules/train.d.ts +1 -1
- package/dist/modules/validate.d.ts +1 -1
- package/dist/modules/vector.d.ts +1 -1
- package/dist/modules/workspace.d.ts +1 -1
- package/dist/registry/factory-signatures.json +1 -1
- package/dist/registry.d.ts +10 -3
- package/dist/registry.js +31 -1
- package/dist/{types-DLx38UFZ.d.ts → types-Cdb321uM.d.ts} +9 -3
- package/i18n/ar.json +1 -0
- package/i18n/en.json +1 -0
- package/i18n/sl.json +1 -0
- package/package.json +3 -3
|
@@ -348,7 +348,7 @@
|
|
|
348
348
|
"type": "string"
|
|
349
349
|
},
|
|
350
350
|
"revealColor": {
|
|
351
|
-
"default": "
|
|
351
|
+
"default": "series-1",
|
|
352
352
|
"label": "Reveal Color",
|
|
353
353
|
"tier": "presentation",
|
|
354
354
|
"type": "string"
|
|
@@ -490,6 +490,13 @@
|
|
|
490
490
|
"tier": "domain",
|
|
491
491
|
"type": "[PredictScenario]"
|
|
492
492
|
},
|
|
493
|
+
"summary": {
|
|
494
|
+
"default": "",
|
|
495
|
+
"description": "One line under the title saying what is being predicted (keep it under ~65 characters). Empty shows no line.",
|
|
496
|
+
"label": "Concept",
|
|
497
|
+
"tier": "presentation",
|
|
498
|
+
"type": "string"
|
|
499
|
+
},
|
|
493
500
|
"title": {
|
|
494
501
|
"default": "Predict, Then Watch",
|
|
495
502
|
"description": "Title shown above the instrument.",
|
|
@@ -1077,9 +1084,106 @@
|
|
|
1077
1084
|
{
|
|
1078
1085
|
"children": [
|
|
1079
1086
|
{
|
|
1080
|
-
"
|
|
1081
|
-
"
|
|
1082
|
-
|
|
1087
|
+
"align": "start",
|
|
1088
|
+
"children": [
|
|
1089
|
+
{
|
|
1090
|
+
"children": [
|
|
1091
|
+
{
|
|
1092
|
+
"content": "@entity.title",
|
|
1093
|
+
"type": "typography",
|
|
1094
|
+
"variant": "h4"
|
|
1095
|
+
},
|
|
1096
|
+
[
|
|
1097
|
+
"if",
|
|
1098
|
+
[
|
|
1099
|
+
"==",
|
|
1100
|
+
"@config.summary",
|
|
1101
|
+
""
|
|
1102
|
+
],
|
|
1103
|
+
null,
|
|
1104
|
+
{
|
|
1105
|
+
"color": "muted",
|
|
1106
|
+
"content": "@config.summary",
|
|
1107
|
+
"type": "typography",
|
|
1108
|
+
"variant": "body2"
|
|
1109
|
+
}
|
|
1110
|
+
]
|
|
1111
|
+
],
|
|
1112
|
+
"direction": "vertical",
|
|
1113
|
+
"gap": "xs",
|
|
1114
|
+
"type": "stack"
|
|
1115
|
+
},
|
|
1116
|
+
{
|
|
1117
|
+
"label": [
|
|
1118
|
+
"if",
|
|
1119
|
+
"@entity.done",
|
|
1120
|
+
[
|
|
1121
|
+
"str/concat",
|
|
1122
|
+
"@entity.score",
|
|
1123
|
+
" / ",
|
|
1124
|
+
"@entity.totalScenarios",
|
|
1125
|
+
" correct"
|
|
1126
|
+
],
|
|
1127
|
+
[
|
|
1128
|
+
"if",
|
|
1129
|
+
[
|
|
1130
|
+
"==",
|
|
1131
|
+
"@entity.phase",
|
|
1132
|
+
"commit"
|
|
1133
|
+
],
|
|
1134
|
+
"Predict",
|
|
1135
|
+
[
|
|
1136
|
+
"if",
|
|
1137
|
+
[
|
|
1138
|
+
"==",
|
|
1139
|
+
"@entity.phase",
|
|
1140
|
+
"reveal"
|
|
1141
|
+
],
|
|
1142
|
+
"Revealing",
|
|
1143
|
+
[
|
|
1144
|
+
"if",
|
|
1145
|
+
[
|
|
1146
|
+
"==",
|
|
1147
|
+
"@entity.chosenIndex",
|
|
1148
|
+
"@entity.correctIndex"
|
|
1149
|
+
],
|
|
1150
|
+
"Correct",
|
|
1151
|
+
"Incorrect"
|
|
1152
|
+
]
|
|
1153
|
+
]
|
|
1154
|
+
]
|
|
1155
|
+
],
|
|
1156
|
+
"type": "badge",
|
|
1157
|
+
"variant": [
|
|
1158
|
+
"if",
|
|
1159
|
+
"@entity.done",
|
|
1160
|
+
"primary",
|
|
1161
|
+
[
|
|
1162
|
+
"if",
|
|
1163
|
+
[
|
|
1164
|
+
"==",
|
|
1165
|
+
"@entity.phase",
|
|
1166
|
+
"judged"
|
|
1167
|
+
],
|
|
1168
|
+
[
|
|
1169
|
+
"if",
|
|
1170
|
+
[
|
|
1171
|
+
"==",
|
|
1172
|
+
"@entity.chosenIndex",
|
|
1173
|
+
"@entity.correctIndex"
|
|
1174
|
+
],
|
|
1175
|
+
"success",
|
|
1176
|
+
"error"
|
|
1177
|
+
],
|
|
1178
|
+
"neutral"
|
|
1179
|
+
]
|
|
1180
|
+
]
|
|
1181
|
+
}
|
|
1182
|
+
],
|
|
1183
|
+
"direction": "horizontal",
|
|
1184
|
+
"gap": "md",
|
|
1185
|
+
"justify": "between",
|
|
1186
|
+
"type": "stack"
|
|
1083
1187
|
},
|
|
1084
1188
|
{
|
|
1085
1189
|
"label": [
|
|
@@ -1138,45 +1242,68 @@
|
|
|
1138
1242
|
"index": "@i"
|
|
1139
1243
|
},
|
|
1140
1244
|
"disabled": [
|
|
1141
|
-
"
|
|
1142
|
-
|
|
1143
|
-
|
|
1144
|
-
"@entity.phase",
|
|
1145
|
-
"commit"
|
|
1146
|
-
],
|
|
1147
|
-
false,
|
|
1148
|
-
true
|
|
1245
|
+
"!=",
|
|
1246
|
+
"@entity.phase",
|
|
1247
|
+
"commit"
|
|
1149
1248
|
],
|
|
1150
1249
|
"label": [
|
|
1151
1250
|
"array/nth",
|
|
1152
1251
|
"@entity.options",
|
|
1153
1252
|
"@i"
|
|
1154
1253
|
],
|
|
1155
|
-
"size": "
|
|
1254
|
+
"size": "lg",
|
|
1156
1255
|
"type": "button",
|
|
1157
1256
|
"variant": [
|
|
1158
1257
|
"if",
|
|
1159
1258
|
[
|
|
1160
|
-
"
|
|
1259
|
+
"==",
|
|
1260
|
+
"@entity.phase",
|
|
1261
|
+
"commit"
|
|
1262
|
+
],
|
|
1263
|
+
"secondary",
|
|
1264
|
+
[
|
|
1265
|
+
"if",
|
|
1161
1266
|
[
|
|
1162
|
-
"
|
|
1267
|
+
"==",
|
|
1163
1268
|
"@entity.phase",
|
|
1164
|
-
"
|
|
1269
|
+
"reveal"
|
|
1165
1270
|
],
|
|
1166
1271
|
[
|
|
1167
|
-
"
|
|
1168
|
-
|
|
1169
|
-
|
|
1272
|
+
"if",
|
|
1273
|
+
[
|
|
1274
|
+
"==",
|
|
1275
|
+
"@entity.chosenIndex",
|
|
1276
|
+
"@i"
|
|
1277
|
+
],
|
|
1278
|
+
"primary",
|
|
1279
|
+
"ghost"
|
|
1280
|
+
],
|
|
1281
|
+
[
|
|
1282
|
+
"if",
|
|
1283
|
+
[
|
|
1284
|
+
"==",
|
|
1285
|
+
"@i",
|
|
1286
|
+
"@entity.correctIndex"
|
|
1287
|
+
],
|
|
1288
|
+
"success",
|
|
1289
|
+
[
|
|
1290
|
+
"if",
|
|
1291
|
+
[
|
|
1292
|
+
"==",
|
|
1293
|
+
"@entity.chosenIndex",
|
|
1294
|
+
"@i"
|
|
1295
|
+
],
|
|
1296
|
+
"danger",
|
|
1297
|
+
"ghost"
|
|
1298
|
+
]
|
|
1170
1299
|
]
|
|
1171
|
-
]
|
|
1172
|
-
"primary",
|
|
1173
|
-
"secondary"
|
|
1300
|
+
]
|
|
1174
1301
|
]
|
|
1175
1302
|
}
|
|
1176
1303
|
]
|
|
1177
1304
|
],
|
|
1178
|
-
"direction": "
|
|
1179
|
-
"gap": "
|
|
1305
|
+
"direction": "vertical",
|
|
1306
|
+
"gap": "sm",
|
|
1180
1307
|
"type": "stack"
|
|
1181
1308
|
},
|
|
1182
1309
|
{
|
|
@@ -1185,6 +1312,10 @@
|
|
|
1185
1312
|
"gridStep": "@config.gridStep",
|
|
1186
1313
|
"height": "@config.height",
|
|
1187
1314
|
"interactive": false,
|
|
1315
|
+
"keyMap": {
|
|
1316
|
+
"ArrowRight": "NEXT",
|
|
1317
|
+
"KeyR": "RETRY"
|
|
1318
|
+
},
|
|
1188
1319
|
"points": [],
|
|
1189
1320
|
"shapes": [],
|
|
1190
1321
|
"showAxes": true,
|
|
@@ -1217,9 +1348,10 @@
|
|
|
1217
1348
|
{
|
|
1218
1349
|
"content": "@entity.feedback",
|
|
1219
1350
|
"type": "typography",
|
|
1220
|
-
"variant": "
|
|
1351
|
+
"variant": "body"
|
|
1221
1352
|
},
|
|
1222
1353
|
{
|
|
1354
|
+
"align": "center",
|
|
1223
1355
|
"children": [
|
|
1224
1356
|
{
|
|
1225
1357
|
"action": "NEXT",
|
|
@@ -1241,6 +1373,7 @@
|
|
|
1241
1373
|
false,
|
|
1242
1374
|
true
|
|
1243
1375
|
],
|
|
1376
|
+
"icon": "chevron-right",
|
|
1244
1377
|
"label": "@config.nextLabel",
|
|
1245
1378
|
"type": "button",
|
|
1246
1379
|
"variant": "primary"
|
|
@@ -1253,20 +1386,28 @@
|
|
|
1253
1386
|
false,
|
|
1254
1387
|
true
|
|
1255
1388
|
],
|
|
1389
|
+
"icon": "rotate-ccw",
|
|
1256
1390
|
"label": "@config.retryLabel",
|
|
1257
1391
|
"type": "button",
|
|
1258
1392
|
"variant": "ghost"
|
|
1393
|
+
},
|
|
1394
|
+
{
|
|
1395
|
+
"color": "muted",
|
|
1396
|
+
"content": [
|
|
1397
|
+
"str/concat",
|
|
1398
|
+
"Correct ",
|
|
1399
|
+
"@entity.score",
|
|
1400
|
+
" of ",
|
|
1401
|
+
"@entity.totalScenarios"
|
|
1402
|
+
],
|
|
1403
|
+
"type": "typography",
|
|
1404
|
+
"variant": "caption"
|
|
1259
1405
|
}
|
|
1260
1406
|
],
|
|
1261
1407
|
"direction": "horizontal",
|
|
1262
1408
|
"gap": "sm",
|
|
1263
|
-
"type": "stack"
|
|
1264
|
-
|
|
1265
|
-
{
|
|
1266
|
-
"label": "Correct predictions",
|
|
1267
|
-
"max": "@entity.totalScenarios",
|
|
1268
|
-
"type": "stat-display",
|
|
1269
|
-
"value": "@entity.score"
|
|
1409
|
+
"type": "stack",
|
|
1410
|
+
"wrap": true
|
|
1270
1411
|
}
|
|
1271
1412
|
],
|
|
1272
1413
|
"direction": "vertical",
|
|
@@ -1289,6 +1430,43 @@
|
|
|
1289
1430
|
],
|
|
1290
1431
|
"to": "idle"
|
|
1291
1432
|
},
|
|
1433
|
+
{
|
|
1434
|
+
"effects": [
|
|
1435
|
+
[
|
|
1436
|
+
"set",
|
|
1437
|
+
"@entity.active",
|
|
1438
|
+
false
|
|
1439
|
+
],
|
|
1440
|
+
[
|
|
1441
|
+
"render-ui",
|
|
1442
|
+
"main",
|
|
1443
|
+
null
|
|
1444
|
+
]
|
|
1445
|
+
],
|
|
1446
|
+
"event": "MODE_SELECTED",
|
|
1447
|
+
"eventId": "evt_01M07581DK61J8ARTARPY4MNHW",
|
|
1448
|
+
"from": "idle",
|
|
1449
|
+
"guard": [
|
|
1450
|
+
"and",
|
|
1451
|
+
[
|
|
1452
|
+
"not",
|
|
1453
|
+
[
|
|
1454
|
+
"==",
|
|
1455
|
+
"@config.matchMode",
|
|
1456
|
+
""
|
|
1457
|
+
]
|
|
1458
|
+
],
|
|
1459
|
+
[
|
|
1460
|
+
"not",
|
|
1461
|
+
[
|
|
1462
|
+
"==",
|
|
1463
|
+
"@payload.mode",
|
|
1464
|
+
"@config.matchMode"
|
|
1465
|
+
]
|
|
1466
|
+
]
|
|
1467
|
+
],
|
|
1468
|
+
"to": "idle"
|
|
1469
|
+
},
|
|
1292
1470
|
{
|
|
1293
1471
|
"effects": [
|
|
1294
1472
|
[
|
|
@@ -1466,9 +1644,106 @@
|
|
|
1466
1644
|
{
|
|
1467
1645
|
"children": [
|
|
1468
1646
|
{
|
|
1469
|
-
"
|
|
1470
|
-
"
|
|
1471
|
-
|
|
1647
|
+
"align": "start",
|
|
1648
|
+
"children": [
|
|
1649
|
+
{
|
|
1650
|
+
"children": [
|
|
1651
|
+
{
|
|
1652
|
+
"content": "@entity.title",
|
|
1653
|
+
"type": "typography",
|
|
1654
|
+
"variant": "h4"
|
|
1655
|
+
},
|
|
1656
|
+
[
|
|
1657
|
+
"if",
|
|
1658
|
+
[
|
|
1659
|
+
"==",
|
|
1660
|
+
"@config.summary",
|
|
1661
|
+
""
|
|
1662
|
+
],
|
|
1663
|
+
null,
|
|
1664
|
+
{
|
|
1665
|
+
"color": "muted",
|
|
1666
|
+
"content": "@config.summary",
|
|
1667
|
+
"type": "typography",
|
|
1668
|
+
"variant": "body2"
|
|
1669
|
+
}
|
|
1670
|
+
]
|
|
1671
|
+
],
|
|
1672
|
+
"direction": "vertical",
|
|
1673
|
+
"gap": "xs",
|
|
1674
|
+
"type": "stack"
|
|
1675
|
+
},
|
|
1676
|
+
{
|
|
1677
|
+
"label": [
|
|
1678
|
+
"if",
|
|
1679
|
+
"@entity.done",
|
|
1680
|
+
[
|
|
1681
|
+
"str/concat",
|
|
1682
|
+
"@entity.score",
|
|
1683
|
+
" / ",
|
|
1684
|
+
"@entity.totalScenarios",
|
|
1685
|
+
" correct"
|
|
1686
|
+
],
|
|
1687
|
+
[
|
|
1688
|
+
"if",
|
|
1689
|
+
[
|
|
1690
|
+
"==",
|
|
1691
|
+
"@entity.phase",
|
|
1692
|
+
"commit"
|
|
1693
|
+
],
|
|
1694
|
+
"Predict",
|
|
1695
|
+
[
|
|
1696
|
+
"if",
|
|
1697
|
+
[
|
|
1698
|
+
"==",
|
|
1699
|
+
"@entity.phase",
|
|
1700
|
+
"reveal"
|
|
1701
|
+
],
|
|
1702
|
+
"Revealing",
|
|
1703
|
+
[
|
|
1704
|
+
"if",
|
|
1705
|
+
[
|
|
1706
|
+
"==",
|
|
1707
|
+
"@entity.chosenIndex",
|
|
1708
|
+
"@entity.correctIndex"
|
|
1709
|
+
],
|
|
1710
|
+
"Correct",
|
|
1711
|
+
"Incorrect"
|
|
1712
|
+
]
|
|
1713
|
+
]
|
|
1714
|
+
]
|
|
1715
|
+
],
|
|
1716
|
+
"type": "badge",
|
|
1717
|
+
"variant": [
|
|
1718
|
+
"if",
|
|
1719
|
+
"@entity.done",
|
|
1720
|
+
"primary",
|
|
1721
|
+
[
|
|
1722
|
+
"if",
|
|
1723
|
+
[
|
|
1724
|
+
"==",
|
|
1725
|
+
"@entity.phase",
|
|
1726
|
+
"judged"
|
|
1727
|
+
],
|
|
1728
|
+
[
|
|
1729
|
+
"if",
|
|
1730
|
+
[
|
|
1731
|
+
"==",
|
|
1732
|
+
"@entity.chosenIndex",
|
|
1733
|
+
"@entity.correctIndex"
|
|
1734
|
+
],
|
|
1735
|
+
"success",
|
|
1736
|
+
"error"
|
|
1737
|
+
],
|
|
1738
|
+
"neutral"
|
|
1739
|
+
]
|
|
1740
|
+
]
|
|
1741
|
+
}
|
|
1742
|
+
],
|
|
1743
|
+
"direction": "horizontal",
|
|
1744
|
+
"gap": "md",
|
|
1745
|
+
"justify": "between",
|
|
1746
|
+
"type": "stack"
|
|
1472
1747
|
},
|
|
1473
1748
|
{
|
|
1474
1749
|
"label": [
|
|
@@ -1527,45 +1802,68 @@
|
|
|
1527
1802
|
"index": "@i"
|
|
1528
1803
|
},
|
|
1529
1804
|
"disabled": [
|
|
1530
|
-
"
|
|
1531
|
-
|
|
1532
|
-
|
|
1533
|
-
"@entity.phase",
|
|
1534
|
-
"commit"
|
|
1535
|
-
],
|
|
1536
|
-
false,
|
|
1537
|
-
true
|
|
1805
|
+
"!=",
|
|
1806
|
+
"@entity.phase",
|
|
1807
|
+
"commit"
|
|
1538
1808
|
],
|
|
1539
1809
|
"label": [
|
|
1540
1810
|
"array/nth",
|
|
1541
1811
|
"@entity.options",
|
|
1542
1812
|
"@i"
|
|
1543
1813
|
],
|
|
1544
|
-
"size": "
|
|
1814
|
+
"size": "lg",
|
|
1545
1815
|
"type": "button",
|
|
1546
1816
|
"variant": [
|
|
1547
1817
|
"if",
|
|
1548
1818
|
[
|
|
1549
|
-
"
|
|
1819
|
+
"==",
|
|
1820
|
+
"@entity.phase",
|
|
1821
|
+
"commit"
|
|
1822
|
+
],
|
|
1823
|
+
"secondary",
|
|
1824
|
+
[
|
|
1825
|
+
"if",
|
|
1550
1826
|
[
|
|
1551
|
-
"
|
|
1827
|
+
"==",
|
|
1552
1828
|
"@entity.phase",
|
|
1553
|
-
"
|
|
1829
|
+
"reveal"
|
|
1554
1830
|
],
|
|
1555
1831
|
[
|
|
1556
|
-
"
|
|
1557
|
-
|
|
1558
|
-
|
|
1832
|
+
"if",
|
|
1833
|
+
[
|
|
1834
|
+
"==",
|
|
1835
|
+
"@entity.chosenIndex",
|
|
1836
|
+
"@i"
|
|
1837
|
+
],
|
|
1838
|
+
"primary",
|
|
1839
|
+
"ghost"
|
|
1840
|
+
],
|
|
1841
|
+
[
|
|
1842
|
+
"if",
|
|
1843
|
+
[
|
|
1844
|
+
"==",
|
|
1845
|
+
"@i",
|
|
1846
|
+
"@entity.correctIndex"
|
|
1847
|
+
],
|
|
1848
|
+
"success",
|
|
1849
|
+
[
|
|
1850
|
+
"if",
|
|
1851
|
+
[
|
|
1852
|
+
"==",
|
|
1853
|
+
"@entity.chosenIndex",
|
|
1854
|
+
"@i"
|
|
1855
|
+
],
|
|
1856
|
+
"danger",
|
|
1857
|
+
"ghost"
|
|
1858
|
+
]
|
|
1559
1859
|
]
|
|
1560
|
-
]
|
|
1561
|
-
"primary",
|
|
1562
|
-
"secondary"
|
|
1860
|
+
]
|
|
1563
1861
|
]
|
|
1564
1862
|
}
|
|
1565
1863
|
]
|
|
1566
1864
|
],
|
|
1567
|
-
"direction": "
|
|
1568
|
-
"gap": "
|
|
1865
|
+
"direction": "vertical",
|
|
1866
|
+
"gap": "sm",
|
|
1569
1867
|
"type": "stack"
|
|
1570
1868
|
},
|
|
1571
1869
|
{
|
|
@@ -1574,6 +1872,10 @@
|
|
|
1574
1872
|
"gridStep": "@config.gridStep",
|
|
1575
1873
|
"height": "@config.height",
|
|
1576
1874
|
"interactive": false,
|
|
1875
|
+
"keyMap": {
|
|
1876
|
+
"ArrowRight": "NEXT",
|
|
1877
|
+
"KeyR": "RETRY"
|
|
1878
|
+
},
|
|
1577
1879
|
"points": [],
|
|
1578
1880
|
"shapes": [],
|
|
1579
1881
|
"showAxes": true,
|
|
@@ -1606,9 +1908,10 @@
|
|
|
1606
1908
|
{
|
|
1607
1909
|
"content": "@entity.feedback",
|
|
1608
1910
|
"type": "typography",
|
|
1609
|
-
"variant": "
|
|
1911
|
+
"variant": "body"
|
|
1610
1912
|
},
|
|
1611
1913
|
{
|
|
1914
|
+
"align": "center",
|
|
1612
1915
|
"children": [
|
|
1613
1916
|
{
|
|
1614
1917
|
"action": "NEXT",
|
|
@@ -1630,6 +1933,7 @@
|
|
|
1630
1933
|
false,
|
|
1631
1934
|
true
|
|
1632
1935
|
],
|
|
1936
|
+
"icon": "chevron-right",
|
|
1633
1937
|
"label": "@config.nextLabel",
|
|
1634
1938
|
"type": "button",
|
|
1635
1939
|
"variant": "primary"
|
|
@@ -1642,20 +1946,28 @@
|
|
|
1642
1946
|
false,
|
|
1643
1947
|
true
|
|
1644
1948
|
],
|
|
1949
|
+
"icon": "rotate-ccw",
|
|
1645
1950
|
"label": "@config.retryLabel",
|
|
1646
1951
|
"type": "button",
|
|
1647
1952
|
"variant": "ghost"
|
|
1953
|
+
},
|
|
1954
|
+
{
|
|
1955
|
+
"color": "muted",
|
|
1956
|
+
"content": [
|
|
1957
|
+
"str/concat",
|
|
1958
|
+
"Correct ",
|
|
1959
|
+
"@entity.score",
|
|
1960
|
+
" of ",
|
|
1961
|
+
"@entity.totalScenarios"
|
|
1962
|
+
],
|
|
1963
|
+
"type": "typography",
|
|
1964
|
+
"variant": "caption"
|
|
1648
1965
|
}
|
|
1649
1966
|
],
|
|
1650
1967
|
"direction": "horizontal",
|
|
1651
1968
|
"gap": "sm",
|
|
1652
|
-
"type": "stack"
|
|
1653
|
-
|
|
1654
|
-
{
|
|
1655
|
-
"label": "Correct predictions",
|
|
1656
|
-
"max": "@entity.totalScenarios",
|
|
1657
|
-
"type": "stat-display",
|
|
1658
|
-
"value": "@entity.score"
|
|
1969
|
+
"type": "stack",
|
|
1970
|
+
"wrap": true
|
|
1659
1971
|
}
|
|
1660
1972
|
],
|
|
1661
1973
|
"direction": "vertical",
|
|
@@ -2096,9 +2408,106 @@
|
|
|
2096
2408
|
{
|
|
2097
2409
|
"children": [
|
|
2098
2410
|
{
|
|
2099
|
-
"
|
|
2100
|
-
"
|
|
2101
|
-
|
|
2411
|
+
"align": "start",
|
|
2412
|
+
"children": [
|
|
2413
|
+
{
|
|
2414
|
+
"children": [
|
|
2415
|
+
{
|
|
2416
|
+
"content": "@entity.title",
|
|
2417
|
+
"type": "typography",
|
|
2418
|
+
"variant": "h4"
|
|
2419
|
+
},
|
|
2420
|
+
[
|
|
2421
|
+
"if",
|
|
2422
|
+
[
|
|
2423
|
+
"==",
|
|
2424
|
+
"@config.summary",
|
|
2425
|
+
""
|
|
2426
|
+
],
|
|
2427
|
+
null,
|
|
2428
|
+
{
|
|
2429
|
+
"color": "muted",
|
|
2430
|
+
"content": "@config.summary",
|
|
2431
|
+
"type": "typography",
|
|
2432
|
+
"variant": "body2"
|
|
2433
|
+
}
|
|
2434
|
+
]
|
|
2435
|
+
],
|
|
2436
|
+
"direction": "vertical",
|
|
2437
|
+
"gap": "xs",
|
|
2438
|
+
"type": "stack"
|
|
2439
|
+
},
|
|
2440
|
+
{
|
|
2441
|
+
"label": [
|
|
2442
|
+
"if",
|
|
2443
|
+
"@entity.done",
|
|
2444
|
+
[
|
|
2445
|
+
"str/concat",
|
|
2446
|
+
"@entity.score",
|
|
2447
|
+
" / ",
|
|
2448
|
+
"@entity.totalScenarios",
|
|
2449
|
+
" correct"
|
|
2450
|
+
],
|
|
2451
|
+
[
|
|
2452
|
+
"if",
|
|
2453
|
+
[
|
|
2454
|
+
"==",
|
|
2455
|
+
"@entity.phase",
|
|
2456
|
+
"commit"
|
|
2457
|
+
],
|
|
2458
|
+
"Predict",
|
|
2459
|
+
[
|
|
2460
|
+
"if",
|
|
2461
|
+
[
|
|
2462
|
+
"==",
|
|
2463
|
+
"@entity.phase",
|
|
2464
|
+
"reveal"
|
|
2465
|
+
],
|
|
2466
|
+
"Revealing",
|
|
2467
|
+
[
|
|
2468
|
+
"if",
|
|
2469
|
+
[
|
|
2470
|
+
"==",
|
|
2471
|
+
"@entity.chosenIndex",
|
|
2472
|
+
"@entity.correctIndex"
|
|
2473
|
+
],
|
|
2474
|
+
"Correct",
|
|
2475
|
+
"Incorrect"
|
|
2476
|
+
]
|
|
2477
|
+
]
|
|
2478
|
+
]
|
|
2479
|
+
],
|
|
2480
|
+
"type": "badge",
|
|
2481
|
+
"variant": [
|
|
2482
|
+
"if",
|
|
2483
|
+
"@entity.done",
|
|
2484
|
+
"primary",
|
|
2485
|
+
[
|
|
2486
|
+
"if",
|
|
2487
|
+
[
|
|
2488
|
+
"==",
|
|
2489
|
+
"@entity.phase",
|
|
2490
|
+
"judged"
|
|
2491
|
+
],
|
|
2492
|
+
[
|
|
2493
|
+
"if",
|
|
2494
|
+
[
|
|
2495
|
+
"==",
|
|
2496
|
+
"@entity.chosenIndex",
|
|
2497
|
+
"@entity.correctIndex"
|
|
2498
|
+
],
|
|
2499
|
+
"success",
|
|
2500
|
+
"error"
|
|
2501
|
+
],
|
|
2502
|
+
"neutral"
|
|
2503
|
+
]
|
|
2504
|
+
]
|
|
2505
|
+
}
|
|
2506
|
+
],
|
|
2507
|
+
"direction": "horizontal",
|
|
2508
|
+
"gap": "md",
|
|
2509
|
+
"justify": "between",
|
|
2510
|
+
"type": "stack"
|
|
2102
2511
|
},
|
|
2103
2512
|
{
|
|
2104
2513
|
"label": [
|
|
@@ -2157,45 +2566,68 @@
|
|
|
2157
2566
|
"index": "@i"
|
|
2158
2567
|
},
|
|
2159
2568
|
"disabled": [
|
|
2160
|
-
"
|
|
2161
|
-
|
|
2162
|
-
|
|
2163
|
-
"@entity.phase",
|
|
2164
|
-
"commit"
|
|
2165
|
-
],
|
|
2166
|
-
false,
|
|
2167
|
-
true
|
|
2569
|
+
"!=",
|
|
2570
|
+
"@entity.phase",
|
|
2571
|
+
"commit"
|
|
2168
2572
|
],
|
|
2169
2573
|
"label": [
|
|
2170
2574
|
"array/nth",
|
|
2171
2575
|
"@entity.options",
|
|
2172
2576
|
"@i"
|
|
2173
2577
|
],
|
|
2174
|
-
"size": "
|
|
2578
|
+
"size": "lg",
|
|
2175
2579
|
"type": "button",
|
|
2176
2580
|
"variant": [
|
|
2177
2581
|
"if",
|
|
2178
2582
|
[
|
|
2179
|
-
"
|
|
2583
|
+
"==",
|
|
2584
|
+
"@entity.phase",
|
|
2585
|
+
"commit"
|
|
2586
|
+
],
|
|
2587
|
+
"secondary",
|
|
2588
|
+
[
|
|
2589
|
+
"if",
|
|
2180
2590
|
[
|
|
2181
|
-
"
|
|
2591
|
+
"==",
|
|
2182
2592
|
"@entity.phase",
|
|
2183
|
-
"
|
|
2593
|
+
"reveal"
|
|
2184
2594
|
],
|
|
2185
2595
|
[
|
|
2186
|
-
"
|
|
2187
|
-
|
|
2188
|
-
|
|
2596
|
+
"if",
|
|
2597
|
+
[
|
|
2598
|
+
"==",
|
|
2599
|
+
"@entity.chosenIndex",
|
|
2600
|
+
"@i"
|
|
2601
|
+
],
|
|
2602
|
+
"primary",
|
|
2603
|
+
"ghost"
|
|
2604
|
+
],
|
|
2605
|
+
[
|
|
2606
|
+
"if",
|
|
2607
|
+
[
|
|
2608
|
+
"==",
|
|
2609
|
+
"@i",
|
|
2610
|
+
"@entity.correctIndex"
|
|
2611
|
+
],
|
|
2612
|
+
"success",
|
|
2613
|
+
[
|
|
2614
|
+
"if",
|
|
2615
|
+
[
|
|
2616
|
+
"==",
|
|
2617
|
+
"@entity.chosenIndex",
|
|
2618
|
+
"@i"
|
|
2619
|
+
],
|
|
2620
|
+
"danger",
|
|
2621
|
+
"ghost"
|
|
2622
|
+
]
|
|
2189
2623
|
]
|
|
2190
|
-
]
|
|
2191
|
-
"primary",
|
|
2192
|
-
"secondary"
|
|
2624
|
+
]
|
|
2193
2625
|
]
|
|
2194
2626
|
}
|
|
2195
2627
|
]
|
|
2196
2628
|
],
|
|
2197
|
-
"direction": "
|
|
2198
|
-
"gap": "
|
|
2629
|
+
"direction": "vertical",
|
|
2630
|
+
"gap": "sm",
|
|
2199
2631
|
"type": "stack"
|
|
2200
2632
|
},
|
|
2201
2633
|
{
|
|
@@ -2204,6 +2636,10 @@
|
|
|
2204
2636
|
"gridStep": "@config.gridStep",
|
|
2205
2637
|
"height": "@config.height",
|
|
2206
2638
|
"interactive": false,
|
|
2639
|
+
"keyMap": {
|
|
2640
|
+
"ArrowRight": "NEXT",
|
|
2641
|
+
"KeyR": "RETRY"
|
|
2642
|
+
},
|
|
2207
2643
|
"points": [],
|
|
2208
2644
|
"shapes": [],
|
|
2209
2645
|
"showAxes": true,
|
|
@@ -2236,9 +2672,10 @@
|
|
|
2236
2672
|
{
|
|
2237
2673
|
"content": "@entity.feedback",
|
|
2238
2674
|
"type": "typography",
|
|
2239
|
-
"variant": "
|
|
2675
|
+
"variant": "body"
|
|
2240
2676
|
},
|
|
2241
2677
|
{
|
|
2678
|
+
"align": "center",
|
|
2242
2679
|
"children": [
|
|
2243
2680
|
{
|
|
2244
2681
|
"action": "NEXT",
|
|
@@ -2260,6 +2697,7 @@
|
|
|
2260
2697
|
false,
|
|
2261
2698
|
true
|
|
2262
2699
|
],
|
|
2700
|
+
"icon": "chevron-right",
|
|
2263
2701
|
"label": "@config.nextLabel",
|
|
2264
2702
|
"type": "button",
|
|
2265
2703
|
"variant": "primary"
|
|
@@ -2272,20 +2710,28 @@
|
|
|
2272
2710
|
false,
|
|
2273
2711
|
true
|
|
2274
2712
|
],
|
|
2713
|
+
"icon": "rotate-ccw",
|
|
2275
2714
|
"label": "@config.retryLabel",
|
|
2276
2715
|
"type": "button",
|
|
2277
2716
|
"variant": "ghost"
|
|
2717
|
+
},
|
|
2718
|
+
{
|
|
2719
|
+
"color": "muted",
|
|
2720
|
+
"content": [
|
|
2721
|
+
"str/concat",
|
|
2722
|
+
"Correct ",
|
|
2723
|
+
"@entity.score",
|
|
2724
|
+
" of ",
|
|
2725
|
+
"@entity.totalScenarios"
|
|
2726
|
+
],
|
|
2727
|
+
"type": "typography",
|
|
2728
|
+
"variant": "caption"
|
|
2278
2729
|
}
|
|
2279
2730
|
],
|
|
2280
2731
|
"direction": "horizontal",
|
|
2281
2732
|
"gap": "sm",
|
|
2282
|
-
"type": "stack"
|
|
2283
|
-
|
|
2284
|
-
{
|
|
2285
|
-
"label": "Correct predictions",
|
|
2286
|
-
"max": "@entity.totalScenarios",
|
|
2287
|
-
"type": "stat-display",
|
|
2288
|
-
"value": "@entity.score"
|
|
2733
|
+
"type": "stack",
|
|
2734
|
+
"wrap": true
|
|
2289
2735
|
}
|
|
2290
2736
|
],
|
|
2291
2737
|
"direction": "vertical",
|
|
@@ -2492,9 +2938,106 @@
|
|
|
2492
2938
|
{
|
|
2493
2939
|
"children": [
|
|
2494
2940
|
{
|
|
2495
|
-
"
|
|
2496
|
-
"
|
|
2497
|
-
|
|
2941
|
+
"align": "start",
|
|
2942
|
+
"children": [
|
|
2943
|
+
{
|
|
2944
|
+
"children": [
|
|
2945
|
+
{
|
|
2946
|
+
"content": "@entity.title",
|
|
2947
|
+
"type": "typography",
|
|
2948
|
+
"variant": "h4"
|
|
2949
|
+
},
|
|
2950
|
+
[
|
|
2951
|
+
"if",
|
|
2952
|
+
[
|
|
2953
|
+
"==",
|
|
2954
|
+
"@config.summary",
|
|
2955
|
+
""
|
|
2956
|
+
],
|
|
2957
|
+
null,
|
|
2958
|
+
{
|
|
2959
|
+
"color": "muted",
|
|
2960
|
+
"content": "@config.summary",
|
|
2961
|
+
"type": "typography",
|
|
2962
|
+
"variant": "body2"
|
|
2963
|
+
}
|
|
2964
|
+
]
|
|
2965
|
+
],
|
|
2966
|
+
"direction": "vertical",
|
|
2967
|
+
"gap": "xs",
|
|
2968
|
+
"type": "stack"
|
|
2969
|
+
},
|
|
2970
|
+
{
|
|
2971
|
+
"label": [
|
|
2972
|
+
"if",
|
|
2973
|
+
"@entity.done",
|
|
2974
|
+
[
|
|
2975
|
+
"str/concat",
|
|
2976
|
+
"@entity.score",
|
|
2977
|
+
" / ",
|
|
2978
|
+
"@entity.totalScenarios",
|
|
2979
|
+
" correct"
|
|
2980
|
+
],
|
|
2981
|
+
[
|
|
2982
|
+
"if",
|
|
2983
|
+
[
|
|
2984
|
+
"==",
|
|
2985
|
+
"@entity.phase",
|
|
2986
|
+
"commit"
|
|
2987
|
+
],
|
|
2988
|
+
"Predict",
|
|
2989
|
+
[
|
|
2990
|
+
"if",
|
|
2991
|
+
[
|
|
2992
|
+
"==",
|
|
2993
|
+
"@entity.phase",
|
|
2994
|
+
"reveal"
|
|
2995
|
+
],
|
|
2996
|
+
"Revealing",
|
|
2997
|
+
[
|
|
2998
|
+
"if",
|
|
2999
|
+
[
|
|
3000
|
+
"==",
|
|
3001
|
+
"@entity.chosenIndex",
|
|
3002
|
+
"@entity.correctIndex"
|
|
3003
|
+
],
|
|
3004
|
+
"Correct",
|
|
3005
|
+
"Incorrect"
|
|
3006
|
+
]
|
|
3007
|
+
]
|
|
3008
|
+
]
|
|
3009
|
+
],
|
|
3010
|
+
"type": "badge",
|
|
3011
|
+
"variant": [
|
|
3012
|
+
"if",
|
|
3013
|
+
"@entity.done",
|
|
3014
|
+
"primary",
|
|
3015
|
+
[
|
|
3016
|
+
"if",
|
|
3017
|
+
[
|
|
3018
|
+
"==",
|
|
3019
|
+
"@entity.phase",
|
|
3020
|
+
"judged"
|
|
3021
|
+
],
|
|
3022
|
+
[
|
|
3023
|
+
"if",
|
|
3024
|
+
[
|
|
3025
|
+
"==",
|
|
3026
|
+
"@entity.chosenIndex",
|
|
3027
|
+
"@entity.correctIndex"
|
|
3028
|
+
],
|
|
3029
|
+
"success",
|
|
3030
|
+
"error"
|
|
3031
|
+
],
|
|
3032
|
+
"neutral"
|
|
3033
|
+
]
|
|
3034
|
+
]
|
|
3035
|
+
}
|
|
3036
|
+
],
|
|
3037
|
+
"direction": "horizontal",
|
|
3038
|
+
"gap": "md",
|
|
3039
|
+
"justify": "between",
|
|
3040
|
+
"type": "stack"
|
|
2498
3041
|
},
|
|
2499
3042
|
{
|
|
2500
3043
|
"label": [
|
|
@@ -2553,45 +3096,68 @@
|
|
|
2553
3096
|
"index": "@i"
|
|
2554
3097
|
},
|
|
2555
3098
|
"disabled": [
|
|
2556
|
-
"
|
|
2557
|
-
|
|
2558
|
-
|
|
2559
|
-
"@entity.phase",
|
|
2560
|
-
"commit"
|
|
2561
|
-
],
|
|
2562
|
-
false,
|
|
2563
|
-
true
|
|
3099
|
+
"!=",
|
|
3100
|
+
"@entity.phase",
|
|
3101
|
+
"commit"
|
|
2564
3102
|
],
|
|
2565
3103
|
"label": [
|
|
2566
3104
|
"array/nth",
|
|
2567
3105
|
"@entity.options",
|
|
2568
3106
|
"@i"
|
|
2569
3107
|
],
|
|
2570
|
-
"size": "
|
|
3108
|
+
"size": "lg",
|
|
2571
3109
|
"type": "button",
|
|
2572
3110
|
"variant": [
|
|
2573
3111
|
"if",
|
|
2574
3112
|
[
|
|
2575
|
-
"
|
|
3113
|
+
"==",
|
|
3114
|
+
"@entity.phase",
|
|
3115
|
+
"commit"
|
|
3116
|
+
],
|
|
3117
|
+
"secondary",
|
|
3118
|
+
[
|
|
3119
|
+
"if",
|
|
2576
3120
|
[
|
|
2577
|
-
"
|
|
3121
|
+
"==",
|
|
2578
3122
|
"@entity.phase",
|
|
2579
|
-
"
|
|
3123
|
+
"reveal"
|
|
2580
3124
|
],
|
|
2581
3125
|
[
|
|
2582
|
-
"
|
|
2583
|
-
|
|
2584
|
-
|
|
3126
|
+
"if",
|
|
3127
|
+
[
|
|
3128
|
+
"==",
|
|
3129
|
+
"@entity.chosenIndex",
|
|
3130
|
+
"@i"
|
|
3131
|
+
],
|
|
3132
|
+
"primary",
|
|
3133
|
+
"ghost"
|
|
3134
|
+
],
|
|
3135
|
+
[
|
|
3136
|
+
"if",
|
|
3137
|
+
[
|
|
3138
|
+
"==",
|
|
3139
|
+
"@i",
|
|
3140
|
+
"@entity.correctIndex"
|
|
3141
|
+
],
|
|
3142
|
+
"success",
|
|
3143
|
+
[
|
|
3144
|
+
"if",
|
|
3145
|
+
[
|
|
3146
|
+
"==",
|
|
3147
|
+
"@entity.chosenIndex",
|
|
3148
|
+
"@i"
|
|
3149
|
+
],
|
|
3150
|
+
"danger",
|
|
3151
|
+
"ghost"
|
|
3152
|
+
]
|
|
2585
3153
|
]
|
|
2586
|
-
]
|
|
2587
|
-
"primary",
|
|
2588
|
-
"secondary"
|
|
3154
|
+
]
|
|
2589
3155
|
]
|
|
2590
3156
|
}
|
|
2591
3157
|
]
|
|
2592
3158
|
],
|
|
2593
|
-
"direction": "
|
|
2594
|
-
"gap": "
|
|
3159
|
+
"direction": "vertical",
|
|
3160
|
+
"gap": "sm",
|
|
2595
3161
|
"type": "stack"
|
|
2596
3162
|
},
|
|
2597
3163
|
{
|
|
@@ -2600,6 +3166,10 @@
|
|
|
2600
3166
|
"gridStep": "@config.gridStep",
|
|
2601
3167
|
"height": "@config.height",
|
|
2602
3168
|
"interactive": false,
|
|
3169
|
+
"keyMap": {
|
|
3170
|
+
"ArrowRight": "NEXT",
|
|
3171
|
+
"KeyR": "RETRY"
|
|
3172
|
+
},
|
|
2603
3173
|
"points": [],
|
|
2604
3174
|
"shapes": [],
|
|
2605
3175
|
"showAxes": true,
|
|
@@ -2632,9 +3202,10 @@
|
|
|
2632
3202
|
{
|
|
2633
3203
|
"content": "@entity.feedback",
|
|
2634
3204
|
"type": "typography",
|
|
2635
|
-
"variant": "
|
|
3205
|
+
"variant": "body"
|
|
2636
3206
|
},
|
|
2637
3207
|
{
|
|
3208
|
+
"align": "center",
|
|
2638
3209
|
"children": [
|
|
2639
3210
|
{
|
|
2640
3211
|
"action": "NEXT",
|
|
@@ -2656,6 +3227,7 @@
|
|
|
2656
3227
|
false,
|
|
2657
3228
|
true
|
|
2658
3229
|
],
|
|
3230
|
+
"icon": "chevron-right",
|
|
2659
3231
|
"label": "@config.nextLabel",
|
|
2660
3232
|
"type": "button",
|
|
2661
3233
|
"variant": "primary"
|
|
@@ -2668,20 +3240,28 @@
|
|
|
2668
3240
|
false,
|
|
2669
3241
|
true
|
|
2670
3242
|
],
|
|
3243
|
+
"icon": "rotate-ccw",
|
|
2671
3244
|
"label": "@config.retryLabel",
|
|
2672
3245
|
"type": "button",
|
|
2673
3246
|
"variant": "ghost"
|
|
3247
|
+
},
|
|
3248
|
+
{
|
|
3249
|
+
"color": "muted",
|
|
3250
|
+
"content": [
|
|
3251
|
+
"str/concat",
|
|
3252
|
+
"Correct ",
|
|
3253
|
+
"@entity.score",
|
|
3254
|
+
" of ",
|
|
3255
|
+
"@entity.totalScenarios"
|
|
3256
|
+
],
|
|
3257
|
+
"type": "typography",
|
|
3258
|
+
"variant": "caption"
|
|
2674
3259
|
}
|
|
2675
3260
|
],
|
|
2676
3261
|
"direction": "horizontal",
|
|
2677
3262
|
"gap": "sm",
|
|
2678
|
-
"type": "stack"
|
|
2679
|
-
|
|
2680
|
-
{
|
|
2681
|
-
"label": "Correct predictions",
|
|
2682
|
-
"max": "@entity.totalScenarios",
|
|
2683
|
-
"type": "stat-display",
|
|
2684
|
-
"value": "@entity.score"
|
|
3263
|
+
"type": "stack",
|
|
3264
|
+
"wrap": true
|
|
2685
3265
|
}
|
|
2686
3266
|
],
|
|
2687
3267
|
"direction": "vertical",
|