@sensiblestats/widget-react 0.61.0 → 0.61.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.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # @sensiblestats/widget-react
2
2
 
3
+ ## 0.61.1
4
+
5
+ ### Patch Changes
6
+
7
+ - Beat the Grid: stat column headers show their own icon again (calendar, gloves, ball…) instead of a flag when the label is translated.
8
+
3
9
  ## 0.61.0
4
10
 
5
11
  ### Minor Changes
package/dist/index.cjs CHANGED
@@ -5674,7 +5674,7 @@ function CriterionIcon({ kind }) {
5674
5674
  return /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(IconFlag, {});
5675
5675
  }
5676
5676
  }
5677
- function HeaderVisual({ label, key: iKey, meta }) {
5677
+ function HeaderVisual({ label, textKey: iKey, meta }) {
5678
5678
  if (!meta) {
5679
5679
  return /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(CriterionIcon, { kind: criterionIconKind(label, iKey) });
5680
5680
  }
@@ -5851,7 +5851,7 @@ function BeatTheGridGame({
5851
5851
  cols.map((col, colIdx) => {
5852
5852
  const colMeta = config.colsMeta?.[colIdx];
5853
5853
  return /* @__PURE__ */ (0, import_jsx_runtime71.jsxs)("div", { className: "ss-g-btg-colhdr", "data-meta": colMeta ? "true" : void 0, children: [
5854
- /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(HeaderVisual, { label: col, meta: colMeta }, config.colsI18n?.[colIdx]?.key),
5854
+ /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(HeaderVisual, { label: col, textKey: config.colsI18n?.[colIdx]?.key, meta: colMeta }),
5855
5855
  /* @__PURE__ */ (0, import_jsx_runtime71.jsx)("span", { children: col })
5856
5856
  ] }, col);
5857
5857
  }),
@@ -5859,7 +5859,7 @@ function BeatTheGridGame({
5859
5859
  const rowMeta = config.rowsMeta?.[rowIdx];
5860
5860
  const abbr = rowAbbrev(rowLabel, s.rowAbbrev, config.rowsI18n?.[rowIdx]?.key);
5861
5861
  const rowHeaderContent = rowMeta ? /* @__PURE__ */ (0, import_jsx_runtime71.jsxs)(import_jsx_runtime71.Fragment, { children: [
5862
- /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(HeaderVisual, { label: rowLabel, meta: rowMeta }, config.rowsI18n?.[rowIdx]?.key),
5862
+ /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(HeaderVisual, { label: rowLabel, textKey: config.rowsI18n?.[rowIdx]?.key, meta: rowMeta }),
5863
5863
  /* @__PURE__ */ (0, import_jsx_runtime71.jsx)("span", { children: rowLabel })
5864
5864
  ] }) : abbr === rowLabel ? /* @__PURE__ */ (0, import_jsx_runtime71.jsx)("span", { children: rowLabel }) : /* @__PURE__ */ (0, import_jsx_runtime71.jsxs)(import_jsx_runtime71.Fragment, { children: [
5865
5865
  /* @__PURE__ */ (0, import_jsx_runtime71.jsx)("span", { "aria-hidden": "true", children: abbr }),