@bitcobblers/wod-wiki-ui 0.59.2240 → 0.59.2244

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.
@@ -2599,7 +2599,7 @@ function createFrontmatterSummary(entries, onShowDetails) {
2599
2599
  summary.dataset.frontmatterSummary = "true";
2600
2600
  summary.className = "divide-y divide-border/60";
2601
2601
  const groups = [
2602
- { label: "Tags", entries: entries.filter(([key]) => TAG_CATEGORY_SUMMARY_KEYS[key.trim().toLowerCase()] === true), hash: true },
2602
+ { label: "Tags", entries: entries.filter(([key]) => TAG_CATEGORY_SUMMARY_KEYS[key.trim().toLowerCase()]), hash: true },
2603
2603
  { label: "Aliases", entries: entries.filter(([key]) => isAliasProperty(key)), hash: false }
2604
2604
  ];
2605
2605
  for (const group of groups) {
@@ -2620,7 +2620,7 @@ function createFrontmatterSummary(entries, onShowDetails) {
2620
2620
  for (const value of values2) row.appendChild(createSummaryPill(value, group.hash));
2621
2621
  summary.appendChild(row);
2622
2622
  }
2623
- const hidden = entries.filter(([key]) => TAG_CATEGORY_SUMMARY_KEYS[key.trim().toLowerCase()] !== true && !isAliasProperty(key));
2623
+ const hidden = entries.filter(([key]) => !TAG_CATEGORY_SUMMARY_KEYS[key.trim().toLowerCase()] && !isAliasProperty(key));
2624
2624
  const metricCount = hidden.filter(([key]) => {
2625
2625
  const k = key.trim().toLowerCase();
2626
2626
  return k.startsWith("metrics.") || k === "metrics";
@@ -3602,14 +3602,14 @@ var frontmatterDetailSync = view.EditorView.updateListener.of((update) => {
3602
3602
  persistedDetailed.set(update.view.dom, current);
3603
3603
  } else if (persistedDetailed.get(update.view.dom) === true && !current) {
3604
3604
  queueMicrotask(() => {
3605
- if (update.view.state.field(frontmatterDetailed) === false) {
3605
+ if (!update.view.state.field(frontmatterDetailed)) {
3606
3606
  update.view.dispatch({ effects: setFrontmatterDetailed.of(true) });
3607
3607
  }
3608
3608
  });
3609
3609
  }
3610
3610
  } else if (persistedDetailed.get(update.view.dom) === true && !current) {
3611
3611
  queueMicrotask(() => {
3612
- if (update.view.state.field(frontmatterDetailed) === false) {
3612
+ if (!update.view.state.field(frontmatterDetailed)) {
3613
3613
  update.view.dispatch({ effects: setFrontmatterDetailed.of(true) });
3614
3614
  }
3615
3615
  });
@@ -6890,7 +6890,10 @@ function WqlBars({ result, unit: unitProp }) {
6890
6890
  }
6891
6891
  }
6892
6892
  ),
6893
- /* @__PURE__ */ jsxRuntime.jsx(recharts.Bar, { dataKey: "value", radius: [4, 4, 0, 0], children: data2.map((d) => /* @__PURE__ */ jsxRuntime.jsx(recharts.Cell, { fill: d.fill }, d.name)) })
6893
+ /* @__PURE__ */ jsxRuntime.jsx(recharts.Bar, { dataKey: "value", radius: [4, 4, 0, 0], children: data2.map((d) => (
6894
+ // eslint-disable-next-line @typescript-eslint/no-deprecated -- Recharts Bar per-bar fill still uses Cell
6895
+ /* @__PURE__ */ jsxRuntime.jsx(recharts.Cell, { fill: d.fill }, d.name)
6896
+ )) })
6894
6897
  ] }) });
6895
6898
  }
6896
6899
  var MAX_ROWS = 12;
@@ -7495,7 +7498,10 @@ function ResponsiveDonut({ data: data2, unit }) {
7495
7498
  paddingAngle: 2,
7496
7499
  stroke: "hsl(var(--background))",
7497
7500
  isAnimationActive: false,
7498
- children: data2.map((d) => /* @__PURE__ */ jsxRuntime.jsx(recharts.Cell, { fill: d.fill }, d.name))
7501
+ children: data2.map((d) => (
7502
+ // eslint-disable-next-line @typescript-eslint/no-deprecated -- Recharts Pie per-slice fill still uses Cell
7503
+ /* @__PURE__ */ jsxRuntime.jsx(recharts.Cell, { fill: d.fill }, d.name)
7504
+ ))
7499
7505
  }
7500
7506
  ),
7501
7507
  /* @__PURE__ */ jsxRuntime.jsx(recharts.Tooltip, { formatter: (value) => `${compactNumber(Number(value))}${unit}` })
@@ -8408,7 +8414,7 @@ function useSuggestions(type) {
8408
8414
  }
8409
8415
  let cancelled = false;
8410
8416
  setLoading(true);
8411
- loadSuggestions(type).then((result) => {
8417
+ void loadSuggestions(type).then((result) => {
8412
8418
  if (cancelled) return;
8413
8419
  setItems(result);
8414
8420
  setLoading(false);
@@ -8435,7 +8441,7 @@ function parserValidValue(type, value) {
8435
8441
  if (type === "groupby") {
8436
8442
  if (!/^[a-zA-Z][\w-]*$/.test(v)) return false;
8437
8443
  const probe = wodWikiWql.parseQuery(`sum:tis{} by {${v}}`);
8438
- return !probe.error && probe.family === "aggregate" && probe.groupBy?.includes(v) === true;
8444
+ return !probe.error && probe.family === "aggregate" && probe.groupBy?.includes(v);
8439
8445
  }
8440
8446
  return true;
8441
8447
  }
@@ -9200,11 +9206,23 @@ function wqlEditorKeymap(onSubmit, onEscape, onSlotActivate) {
9200
9206
  { key: "PageDown", run: (view) => autocomplete.completionStatus(view.state) === "active" ? autocomplete.moveCompletionSelection(true, "page")(view) : commands.cursorPageDown(view) },
9201
9207
  {
9202
9208
  key: "Home",
9203
- run: (view) => autocomplete.completionStatus(view.state) === "active" ? (view.dispatch({ effects: autocomplete.setSelectedCompletion(0) }), true) : commands.cursorDocStart(view)
9209
+ run: (view) => {
9210
+ if (autocomplete.completionStatus(view.state) === "active") {
9211
+ view.dispatch({ effects: autocomplete.setSelectedCompletion(0) });
9212
+ return true;
9213
+ }
9214
+ return commands.cursorDocStart(view);
9215
+ }
9204
9216
  },
9205
9217
  {
9206
9218
  key: "End",
9207
- run: (view) => autocomplete.completionStatus(view.state) === "active" ? (view.dispatch({ effects: autocomplete.setSelectedCompletion(autocomplete.currentCompletions(view.state).length - 1) }), true) : commands.cursorDocEnd(view)
9219
+ run: (view) => {
9220
+ if (autocomplete.completionStatus(view.state) === "active") {
9221
+ view.dispatch({ effects: autocomplete.setSelectedCompletion(autocomplete.currentCompletions(view.state).length - 1) });
9222
+ return true;
9223
+ }
9224
+ return commands.cursorDocEnd(view);
9225
+ }
9208
9226
  },
9209
9227
  {
9210
9228
  key: "Tab",
@@ -9234,7 +9252,14 @@ function wqlEditorKeymap(onSubmit, onEscape, onSlotActivate) {
9234
9252
  },
9235
9253
  // First Escape closes the popup; the second blurs back to the host
9236
9254
  // (onEscape) or the editor itself — never two levels at once.
9237
- { key: "Escape", run: (view) => view.compositionStarted || (autocomplete.closeCompletion(view) || onEscape() || (view.contentDOM.blur(), true)) },
9255
+ {
9256
+ key: "Escape",
9257
+ run: (view) => {
9258
+ if (view.compositionStarted || autocomplete.closeCompletion(view) || onEscape()) return true;
9259
+ view.contentDOM.blur();
9260
+ return true;
9261
+ }
9262
+ },
9238
9263
  ...commands.historyKeymap
9239
9264
  ];
9240
9265
  }