@bitcobblers/wod-wiki-lang 0.59.2236 → 0.59.2240
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/{chunk-FM7G6MS7.mjs → chunk-WALDXZIA.mjs} +12 -4
- package/dist/chunk-WALDXZIA.mjs.map +1 -0
- package/dist/index.cjs +12 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +4 -3
- package/dist/index.mjs.map +1 -1
- package/dist/react.cjs +10 -2
- package/dist/react.cjs.map +1 -1
- package/dist/react.mjs +2 -2
- package/package.json +2 -2
- package/dist/chunk-FM7G6MS7.mjs.map +0 -1
package/dist/react.cjs
CHANGED
|
@@ -1503,10 +1503,18 @@ function useLiveSessionTelemetry(runtimeOverride) {
|
|
|
1503
1503
|
}, [runtime, version]);
|
|
1504
1504
|
}
|
|
1505
1505
|
function formatStatementLabel(statement) {
|
|
1506
|
-
const
|
|
1506
|
+
const labels = metricPresentation.presentGroup(
|
|
1507
1507
|
[...statement.metrics].filter((m) => m.type !== wodWikiCore.MetricType.Hint),
|
|
1508
1508
|
"timer-subtitle"
|
|
1509
|
-
).filter((t) => t.visible).map((t) => t.label
|
|
1509
|
+
).filter((t) => t.visible).map((t) => t.label.trim()).filter(Boolean);
|
|
1510
|
+
const deduped = [];
|
|
1511
|
+
for (const label of labels) {
|
|
1512
|
+
const lower = label.toLowerCase();
|
|
1513
|
+
const prev = deduped[deduped.length - 1]?.toLowerCase();
|
|
1514
|
+
if (prev && (prev === lower || prev.endsWith(` ${lower}`))) continue;
|
|
1515
|
+
deduped.push(label);
|
|
1516
|
+
}
|
|
1517
|
+
const presented = deduped.join(" ").trim();
|
|
1510
1518
|
return presented || statement.text?.trim() || "Step";
|
|
1511
1519
|
}
|
|
1512
1520
|
function projectScriptOutline(runtime) {
|