@bitcobblers/wod-wiki-ui 0.7.37 → 0.8.39

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.
@@ -1481,7 +1481,7 @@ function dispatchExpandRuntimePanel(view, sectionId, expanded) {
1481
1481
 
1482
1482
  // src/extensions/sessionQueryBlock.ts
1483
1483
  function sessionQueryWql(resultId) {
1484
- return `rows:{result:${resultId}}`;
1484
+ return `rows:all{result:${resultId}}`;
1485
1485
  }
1486
1486
  function sessionQueryInsert(state, blockId, resultId, runBlock) {
1487
1487
  const sections = state.field(sectionField).sections;
@@ -1830,7 +1830,7 @@ function RowsResultsChrome({
1830
1830
  return;
1831
1831
  }
1832
1832
  let cancelled = false;
1833
- const wideQuery = wodWikiWql.parseQuery(`rows:{block:${blockContentId2}}`);
1833
+ const wideQuery = wodWikiWql.parseQuery(`rows:all{block:${blockContentId2}}`);
1834
1834
  if (!wodWikiWql.isRowsQuery(wideQuery)) return;
1835
1835
  void executor.runRows(wideQuery).then((res) => {
1836
1836
  if (!cancelled) setWideResult(res);
@@ -2950,7 +2950,7 @@ function clausesToWql(clauses) {
2950
2950
  const filterBraces = filterParts.length > 0 ? `{${filterParts.join(", ")}}` : "";
2951
2951
  const source = clauseValue(clauses, "source", "notes");
2952
2952
  if (source === "rows") {
2953
- const output = clauseValue(clauses, "output", "");
2953
+ const output = clauseValue(clauses, "output", "") || "all";
2954
2954
  const timeClause2 = clauses.find((c) => c.type === "time");
2955
2955
  let timeStr2 = "";
2956
2956
  if (timeClause2 && timeClause2.value && timeClause2.value !== "all") {
@@ -3076,6 +3076,7 @@ function wqlToClauses(wql2) {
3076
3076
  const headMatch2 = RESTORE_FIND_HEAD_RE.exec(primaryText);
3077
3077
  if (!headMatch2) return null;
3078
3078
  const targetValue = headMatch2[1];
3079
+ if (!wodWikiWql.WQL_FIND_TARGETS.includes(targetValue)) return null;
3079
3080
  const rest2 = primaryText.slice(headMatch2[0].length).trim();
3080
3081
  const filterClauses2 = restoreFilters(rest2);
3081
3082
  if (!filterClauses2) return null;
@@ -3626,7 +3627,7 @@ function diagnoseClauses(clauses) {
3626
3627
  return {
3627
3628
  valid: false,
3628
3629
  wql: clausesToWql(clauses),
3629
- ast: { raw: "", error },
3630
+ ast: { family: "aggregate", raw: "", agg: "sum", metric: "", filters: [], groupBy: [], error },
3630
3631
  error,
3631
3632
  offendingClauseId: clause.id
3632
3633
  };
@@ -3696,7 +3697,7 @@ function WqlDiagnosticsStrip({
3696
3697
  summary.hasJoin && /* @__PURE__ */ jsxRuntime.jsx("span", { "data-testid": "diag-summary-join", className: "text-primary font-semibold", children: "+join" })
3697
3698
  ] });
3698
3699
  })() }),
3699
- valid && !wodWikiWql.isFindQuery(ast) && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex flex-wrap items-center gap-x-3 text-[11px] opacity-80 border-l border-border/50 pl-3", children: (() => {
3700
+ valid && wodWikiWql.isAggregateQuery(ast) && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex flex-wrap items-center gap-x-3 text-[11px] opacity-80 border-l border-border/50 pl-3", children: (() => {
3700
3701
  const summary = summarizeAggregate(ast);
3701
3702
  return /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
3702
3703
  /* @__PURE__ */ jsxRuntime.jsx(SummaryChip, { label: "agg", value: summary.agg, testId: "diag-summary-agg" }),