@bitcobblers/wod-wiki-ui 0.59.2243 → 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.
@@ -2580,7 +2580,7 @@ function createFrontmatterSummary(entries, onShowDetails) {
2580
2580
  summary.dataset.frontmatterSummary = "true";
2581
2581
  summary.className = "divide-y divide-border/60";
2582
2582
  const groups = [
2583
- { label: "Tags", entries: entries.filter(([key]) => TAG_CATEGORY_SUMMARY_KEYS[key.trim().toLowerCase()] === true), hash: true },
2583
+ { label: "Tags", entries: entries.filter(([key]) => TAG_CATEGORY_SUMMARY_KEYS[key.trim().toLowerCase()]), hash: true },
2584
2584
  { label: "Aliases", entries: entries.filter(([key]) => isAliasProperty(key)), hash: false }
2585
2585
  ];
2586
2586
  for (const group of groups) {
@@ -2601,7 +2601,7 @@ function createFrontmatterSummary(entries, onShowDetails) {
2601
2601
  for (const value of values2) row.appendChild(createSummaryPill(value, group.hash));
2602
2602
  summary.appendChild(row);
2603
2603
  }
2604
- const hidden = entries.filter(([key]) => TAG_CATEGORY_SUMMARY_KEYS[key.trim().toLowerCase()] !== true && !isAliasProperty(key));
2604
+ const hidden = entries.filter(([key]) => !TAG_CATEGORY_SUMMARY_KEYS[key.trim().toLowerCase()] && !isAliasProperty(key));
2605
2605
  const metricCount = hidden.filter(([key]) => {
2606
2606
  const k = key.trim().toLowerCase();
2607
2607
  return k.startsWith("metrics.") || k === "metrics";
@@ -3583,14 +3583,14 @@ var frontmatterDetailSync = EditorView.updateListener.of((update) => {
3583
3583
  persistedDetailed.set(update.view.dom, current);
3584
3584
  } else if (persistedDetailed.get(update.view.dom) === true && !current) {
3585
3585
  queueMicrotask(() => {
3586
- if (update.view.state.field(frontmatterDetailed) === false) {
3586
+ if (!update.view.state.field(frontmatterDetailed)) {
3587
3587
  update.view.dispatch({ effects: setFrontmatterDetailed.of(true) });
3588
3588
  }
3589
3589
  });
3590
3590
  }
3591
3591
  } else if (persistedDetailed.get(update.view.dom) === true && !current) {
3592
3592
  queueMicrotask(() => {
3593
- if (update.view.state.field(frontmatterDetailed) === false) {
3593
+ if (!update.view.state.field(frontmatterDetailed)) {
3594
3594
  update.view.dispatch({ effects: setFrontmatterDetailed.of(true) });
3595
3595
  }
3596
3596
  });
@@ -6880,7 +6880,10 @@ function WqlBars({ result, unit: unitProp }) {
6880
6880
  }
6881
6881
  }
6882
6882
  ),
6883
- /* @__PURE__ */ jsx(Bar, { dataKey: "value", radius: [4, 4, 0, 0], children: data2.map((d) => /* @__PURE__ */ jsx(Cell, { fill: d.fill }, d.name)) })
6883
+ /* @__PURE__ */ jsx(Bar, { dataKey: "value", radius: [4, 4, 0, 0], children: data2.map((d) => (
6884
+ // eslint-disable-next-line @typescript-eslint/no-deprecated -- Recharts Bar per-bar fill still uses Cell
6885
+ /* @__PURE__ */ jsx(Cell, { fill: d.fill }, d.name)
6886
+ )) })
6884
6887
  ] }) });
6885
6888
  }
6886
6889
  var MAX_ROWS = 12;
@@ -7498,7 +7501,10 @@ function ResponsiveDonut({ data: data2, unit }) {
7498
7501
  paddingAngle: 2,
7499
7502
  stroke: "hsl(var(--background))",
7500
7503
  isAnimationActive: false,
7501
- children: data2.map((d) => /* @__PURE__ */ jsx(Cell, { fill: d.fill }, d.name))
7504
+ children: data2.map((d) => (
7505
+ // eslint-disable-next-line @typescript-eslint/no-deprecated -- Recharts Pie per-slice fill still uses Cell
7506
+ /* @__PURE__ */ jsx(Cell, { fill: d.fill }, d.name)
7507
+ ))
7502
7508
  }
7503
7509
  ),
7504
7510
  /* @__PURE__ */ jsx(Tooltip, { formatter: (value) => `${compactNumber(Number(value))}${unit}` })
@@ -8464,7 +8470,7 @@ function useSuggestions(type) {
8464
8470
  }
8465
8471
  let cancelled = false;
8466
8472
  setLoading(true);
8467
- loadSuggestions(type).then((result) => {
8473
+ void loadSuggestions(type).then((result) => {
8468
8474
  if (cancelled) return;
8469
8475
  setItems(result);
8470
8476
  setLoading(false);
@@ -8491,7 +8497,7 @@ function parserValidValue(type, value) {
8491
8497
  if (type === "groupby") {
8492
8498
  if (!/^[a-zA-Z][\w-]*$/.test(v)) return false;
8493
8499
  const probe = parseQuery(`sum:tis{} by {${v}}`);
8494
- return !probe.error && probe.family === "aggregate" && probe.groupBy?.includes(v) === true;
8500
+ return !probe.error && probe.family === "aggregate" && probe.groupBy?.includes(v);
8495
8501
  }
8496
8502
  return true;
8497
8503
  }
@@ -9280,11 +9286,23 @@ function wqlEditorKeymap(onSubmit, onEscape, onSlotActivate) {
9280
9286
  { key: "PageDown", run: (view) => completionStatus(view.state) === "active" ? moveCompletionSelection(true, "page")(view) : cursorPageDown(view) },
9281
9287
  {
9282
9288
  key: "Home",
9283
- run: (view) => completionStatus(view.state) === "active" ? (view.dispatch({ effects: setSelectedCompletion(0) }), true) : cursorDocStart(view)
9289
+ run: (view) => {
9290
+ if (completionStatus(view.state) === "active") {
9291
+ view.dispatch({ effects: setSelectedCompletion(0) });
9292
+ return true;
9293
+ }
9294
+ return cursorDocStart(view);
9295
+ }
9284
9296
  },
9285
9297
  {
9286
9298
  key: "End",
9287
- run: (view) => completionStatus(view.state) === "active" ? (view.dispatch({ effects: setSelectedCompletion(currentCompletions(view.state).length - 1) }), true) : cursorDocEnd(view)
9299
+ run: (view) => {
9300
+ if (completionStatus(view.state) === "active") {
9301
+ view.dispatch({ effects: setSelectedCompletion(currentCompletions(view.state).length - 1) });
9302
+ return true;
9303
+ }
9304
+ return cursorDocEnd(view);
9305
+ }
9288
9306
  },
9289
9307
  {
9290
9308
  key: "Tab",
@@ -9314,7 +9332,14 @@ function wqlEditorKeymap(onSubmit, onEscape, onSlotActivate) {
9314
9332
  },
9315
9333
  // First Escape closes the popup; the second blurs back to the host
9316
9334
  // (onEscape) or the editor itself — never two levels at once.
9317
- { key: "Escape", run: (view) => view.compositionStarted || (closeCompletion(view) || onEscape() || (view.contentDOM.blur(), true)) },
9335
+ {
9336
+ key: "Escape",
9337
+ run: (view) => {
9338
+ if (view.compositionStarted || closeCompletion(view) || onEscape()) return true;
9339
+ view.contentDOM.blur();
9340
+ return true;
9341
+ }
9342
+ },
9318
9343
  ...historyKeymap
9319
9344
  ];
9320
9345
  }
@@ -17690,5 +17715,5 @@ function editorPreset(optionsOrDialect = "markdown") {
17690
17715
  }
17691
17716
 
17692
17717
  export { AGG_OPTIONS, CANONICAL_BLOCK_TYPES, CLAUSE_META, ComposerRegistry, DEFAULT_DIAGNOSTICS_DEBOUNCE_MS, DEFAULT_OUTPUT_FILTERS, DEFAULT_PRIMARY_FILTER, DefaultFrontmatterWidget, EditorDialog, GROUPBY_OPTIONS, GoalRings, INTERNAL_FRONTMATTER_KEYS, KIND_OPTIONS, METRIC_OPTIONS, MULTI_VALUE_TYPES, MetricBadge, OUTPUT_TYPE_CLASS, OUTPUT_TYPE_DOT, OutputFilterPills, OutputStatementsTable, PLANE_OPTIONS, PRBadge, ProposedMetricBadge, QueryBlockView, QueryObjectBuilder, QueryValue, ROLLUP_OPTIONS, RowsResultsChrome, RowsTable, SERIES_COLORS, SOURCE_OPTIONS, SUGGESTION_BINDINGS, StackedBar, TARGET_OPTIONS, TIME_OPTIONS, TONE_CLASS, TokenSlotPill, TopList, UNIT_OPTIONS, WHERE_AGGREGATORS, WHERE_METRICS, WidgetChart, WidgetProblemBadge, WqlBars, WqlComposer, WqlDiagnosticsStrip, WqlEmptyState, WqlQueryInspectorModal, WqlTable, WqlTimeseries, ZoneDistribution, activeCursorSection, addRuntimePanel, affiliateTagFacet, applyAmazonAffiliateTag, attachmentUrlFacet, autocompleteTooltipTheme, bindTokenParamIntoWql, bindTokenToQueryObject, blockTypesFromBlocks, canonicalSuggestionItems, cn, compactNumber, composerRegistry, computeSessionPrHighlights, configureOverlayActions, createExecutorDocumentHost, cursorFocusExtension, customCompletionSources, cycleBaselineLayer, dateRangeSlot, dispatchAddRuntimePanel, dispatchExpandRuntimePanel, dispatchGutterHighlights, dispatchRemoveRuntimePanel, editQueryClause, editingQuerySectionsField, editingWidgetsField, editorFocusField, editorFocusTracker, editorPreset, editorTheme, embedPreviewDecorations, expandRuntimePanel, extractBlockQueries, extractMetricsByCategory, fenceCompletion, findQueryBlockSection, findWorkoutErrors, forceSectionParse, formatClockTime, formatMMSS, formatTimeseriesTick, formatTimeseriesTooltipValue, formatTimestamp, frontmatterDebugMode, frontmatterDetailed, frontmatterKeymap, frontmatterPreview, frontmatterPreviewField, frontmatterReferenceIndex, frontmatterSource, frontmatterSuggestions, frontmatterVisibility, getClauseMeta, getCursorFocusState, getOverlayActions, getSuggestionBinding, gutterHighlightsField, gutterUnified, handleFenceAutoWrap, handleSmartUrlPaste, hashCode, inlineButtonDecoration, insertMarkdownLinkCommand, invalidateSuggestions, isAmazonRetailHost, isEditorFocused, isInternalFrontmatterKey, isNavigableUrl, lineIdsExtension, linkOpen, linkPreview, loadSuggestions, markdownSyntaxHiding, markdownTablePreview, matchFilterTypeahead, mergeSeries, mergeSuggestionItems, mergeTagSuggestions, navigationFacet, nestedCompletion, nestedCompletionOptions, normalizeOutputFilter, normalizeSimplePipelineToAggregate, notebookSlugsFromBlocks, outputToRunResult, outputsToRunResult, patchBlockQuery, presentBadges, previewDecorations, primaryQueryOf, promoteFindToChartObject, queryBlockPreview, readSessionRpe, referenceIndexReload, registeredSectionWidgets, removeRuntimePanel, removeSeriesLayer, resolveCodeLanguage, resolveQueryDraft, runtimePanelField, saveBlockQuerySource, sectionAtPos, sectionField, sectionGeometry, sectionIdentity, sectionIdentityHistory, sectionMove, sectionRestore, sectionSaved, sessionQueryFence, sessionQueryInsert, sessionQueryWql, setEditorFocused, setFrontmatterDetailed, setFrontmatterSource, setGutterHighlights, setPrimaryQueryOnObject, setQuerySourceEditing, setSuggestionBinding, slashBlockCompletion, smartIncrement, summarizeAggregate, summarizeFind, summarizePipeline, tagsFromStaticBlocks, toChartResult, toggleCompareLayer, toggleGoalLayer, toggleInlineMarkdown, toggleWidgetEdit, tooltipTimestamp, urlAtPos, useChartShape, useComposerSlots, useSuggestions, useVisualViewportRect, useWqlStageCounts, widgetBlockPreview, wodAutoWrap, wodAutocompletion, wodCompletionSource, wodEditorKeymap, wodLinter, wodOverlayPanel, workoutLintSource, wqlToPills, wrapInTimeFence };
17693
- //# sourceMappingURL=chunk-SV65J2NT.mjs.map
17694
- //# sourceMappingURL=chunk-SV65J2NT.mjs.map
17718
+ //# sourceMappingURL=chunk-M3VS7H7Z.mjs.map
17719
+ //# sourceMappingURL=chunk-M3VS7H7Z.mjs.map