@bitcobblers/wod-wiki-ui 0.54.2205 → 0.56.2208

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.
@@ -1,3 +1,3 @@
1
- export { DefaultFrontmatterWidget, INTERNAL_FRONTMATTER_KEYS, activeCursorSection, addRuntimePanel, attachmentUrlFacet, autocompleteTooltipTheme, blockContentId, configureOverlayActions, cursorFocusExtension, customCompletionSources, dispatchAddRuntimePanel, dispatchExpandRuntimePanel, dispatchGutterHighlights, dispatchRemoveRuntimePanel, editingQuerySectionsField, editingWidgetsField, editorFocusField, editorFocusTracker, editorPreset, editorTheme, embedPreviewDecorations, expandRuntimePanel, fenceCompletion, findQueryBlockSection, findWorkoutErrors, forceSectionParse, frontmatterDebugMode, frontmatterDetailed, frontmatterKeymap, frontmatterPreview, frontmatterPreviewField, frontmatterReferenceIndex, frontmatterSource, frontmatterSuggestions, frontmatterVisibility, getCursorFocusState, getOverlayActions, gutterHighlightsField, gutterUnified, handleFenceAutoWrap, handleSmartUrlPaste, inlineButtonDecoration, insertMarkdownLinkCommand, isEditorFocused, isInternalFrontmatterKey, isNavigableUrl, lineIdsExtension, linkOpen, linkPreview, markdownSyntaxHiding, markdownTablePreview, navigationFacet, nestedCompletion, nestedCompletionOptions, previewDecorations, queryBlockPreview, referenceIndexReload, registeredSectionWidgets, removeRuntimePanel, resolveCodeLanguage, runtimePanelField, saveBlockQuerySource, sectionAtPos, sectionField, sectionGeometry, sectionIdentity, sectionIdentityHistory, sectionMove, sectionRestore, sectionSaved, sessionQueryFence, sessionQueryInsert, sessionQueryWql, setEditorFocused, setFrontmatterDetailed, setFrontmatterSource, setGutterHighlights, setQuerySourceEditing, slashBlockCompletion, smartIncrement, toggleInlineMarkdown, toggleWidgetEdit, urlAtPos, widgetBlockPreview, wodAutoWrap, wodAutocompletion, wodCompletionSource, wodEditorKeymap, wodLinter, wodOverlayPanel, workoutLintSource, wrapInTimeFence } from '../chunk-JERLIUE2.mjs';
1
+ export { DefaultFrontmatterWidget, INTERNAL_FRONTMATTER_KEYS, activeCursorSection, addRuntimePanel, attachmentUrlFacet, autocompleteTooltipTheme, blockContentId, configureOverlayActions, cursorFocusExtension, customCompletionSources, dispatchAddRuntimePanel, dispatchExpandRuntimePanel, dispatchGutterHighlights, dispatchRemoveRuntimePanel, editingQuerySectionsField, editingWidgetsField, editorFocusField, editorFocusTracker, editorPreset, editorTheme, embedPreviewDecorations, expandRuntimePanel, fenceCompletion, findQueryBlockSection, findWorkoutErrors, forceSectionParse, frontmatterDebugMode, frontmatterDetailed, frontmatterKeymap, frontmatterPreview, frontmatterPreviewField, frontmatterReferenceIndex, frontmatterSource, frontmatterSuggestions, frontmatterVisibility, getCursorFocusState, getOverlayActions, gutterHighlightsField, gutterUnified, handleFenceAutoWrap, handleSmartUrlPaste, inlineButtonDecoration, insertMarkdownLinkCommand, isEditorFocused, isInternalFrontmatterKey, isNavigableUrl, lineIdsExtension, linkOpen, linkPreview, markdownSyntaxHiding, markdownTablePreview, navigationFacet, nestedCompletion, nestedCompletionOptions, previewDecorations, queryBlockPreview, referenceIndexReload, registeredSectionWidgets, removeRuntimePanel, resolveCodeLanguage, runtimePanelField, saveBlockQuerySource, sectionAtPos, sectionField, sectionGeometry, sectionIdentity, sectionIdentityHistory, sectionMove, sectionRestore, sectionSaved, sessionQueryFence, sessionQueryInsert, sessionQueryWql, setEditorFocused, setFrontmatterDetailed, setFrontmatterSource, setGutterHighlights, setQuerySourceEditing, slashBlockCompletion, smartIncrement, toggleInlineMarkdown, toggleWidgetEdit, urlAtPos, widgetBlockPreview, wodAutoWrap, wodAutocompletion, wodCompletionSource, wodEditorKeymap, wodLinter, wodOverlayPanel, workoutLintSource, wrapInTimeFence } from '../chunk-3NJIIKMT.mjs';
2
2
  //# sourceMappingURL=index.mjs.map
3
3
  //# sourceMappingURL=index.mjs.map
package/dist/index.cjs CHANGED
@@ -353,6 +353,27 @@ var SERIES_COLORS = [
353
353
  "hsl(var(--metric-action))",
354
354
  "hsl(var(--primary))"
355
355
  ];
356
+ function formatWithUnit(formattedNumber, unit) {
357
+ const cleanUnit = unit?.trim();
358
+ return cleanUnit ? `${formattedNumber} ${cleanUnit}` : formattedNumber;
359
+ }
360
+ function formatTimeseriesTick(value, unit) {
361
+ const numeric = Number(value);
362
+ if (!Number.isFinite(numeric)) {
363
+ return formatWithUnit(String(value), unit);
364
+ }
365
+ const maximumFractionDigits = Math.abs(numeric) >= 100 ? 0 : 1;
366
+ const formatted = new Intl.NumberFormat(void 0, { maximumFractionDigits }).format(numeric);
367
+ return formatWithUnit(formatted, unit);
368
+ }
369
+ function formatTimeseriesTooltipValue(value, unit) {
370
+ const numeric = Number(value);
371
+ if (!Number.isFinite(numeric)) {
372
+ return formatWithUnit(String(value), unit);
373
+ }
374
+ const formatted = new Intl.NumberFormat(void 0, { maximumFractionDigits: 1 }).format(numeric);
375
+ return formatWithUnit(formatted, unit);
376
+ }
356
377
  function WqlTimeseries({ result, unit: unitProp }) {
357
378
  const shape = useChartShape(result);
358
379
  const data2 = React2.useMemo(() => mergeSeries(result.series), [result]);
@@ -381,7 +402,7 @@ function WqlTimeseries({ result, unit: unitProp }) {
381
402
  width: 64,
382
403
  stroke: "hsl(var(--muted-foreground))",
383
404
  tick: { fill: "hsl(var(--muted-foreground))", fontSize: 10 },
384
- unit: unit ? ` ${unit}` : ""
405
+ tickFormatter: (v) => formatTimeseriesTick(v, unit)
385
406
  }
386
407
  ),
387
408
  /* @__PURE__ */ jsxRuntime.jsx(
@@ -394,7 +415,7 @@ function WqlTimeseries({ result, unit: unitProp }) {
394
415
  color: "hsl(var(--popover-foreground))"
395
416
  },
396
417
  labelFormatter: (v) => tooltipTimestamp(v),
397
- formatter: (v) => [`${Number(v).toLocaleString()} ${unit ?? ""}`.trim(), ""]
418
+ formatter: (v) => [formatTimeseriesTooltipValue(v, unit), ""]
398
419
  }
399
420
  ),
400
421
  result.series.length > 1 && /* @__PURE__ */ jsxRuntime.jsx(recharts.Legend, { wrapperStyle: { fontSize: 11 } }),
@@ -18249,13 +18270,13 @@ function editorPreset(optionsOrDialect = "markdown") {
18249
18270
  }
18250
18271
 
18251
18272
  // src/version.ts
18252
- var VERSION = "0.54.2205";
18253
- var GIT_SHA = "1a0df57";
18254
- var BUILD_TIME = "2026-11-12T03:09:09.212Z";
18273
+ var VERSION = "0.56.2208";
18274
+ var GIT_SHA = "49c50a2";
18275
+ var BUILD_TIME = "2026-11-12T17:10:33.737Z";
18255
18276
  var SEMVER = {
18256
- version: "0.54.2205",
18257
- gitSha: "1a0df57",
18258
- buildTime: "2026-11-12T03:09:09.212Z"
18277
+ version: "0.56.2208",
18278
+ gitSha: "49c50a2",
18279
+ buildTime: "2026-11-12T17:10:33.737Z"
18259
18280
  };
18260
18281
 
18261
18282
  Object.defineProperty(exports, "CONTENT_GROUPING_DIMENSIONS", {
@@ -18370,6 +18391,8 @@ exports.findWorkoutErrors = findWorkoutErrors;
18370
18391
  exports.forceSectionParse = forceSectionParse;
18371
18392
  exports.formatClockTime = formatClockTime;
18372
18393
  exports.formatMMSS = formatMMSS;
18394
+ exports.formatTimeseriesTick = formatTimeseriesTick;
18395
+ exports.formatTimeseriesTooltipValue = formatTimeseriesTooltipValue;
18373
18396
  exports.formatTimestamp = formatTimestamp;
18374
18397
  exports.frontmatterDebugMode = frontmatterDebugMode;
18375
18398
  exports.frontmatterDetailed = frontmatterDetailed;