@bitcobblers/wod-wiki-ui 0.56.2208 → 0.56.2210
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/dist/{chunk-3NJIIKMT.mjs → chunk-VYFKXF46.mjs} +6 -9
- package/dist/chunk-VYFKXF46.mjs.map +1 -0
- package/dist/extensions/index.cjs +4 -7
- package/dist/extensions/index.cjs.map +1 -1
- package/dist/extensions/index.mjs +1 -1
- package/dist/index.cjs +10 -13
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +6 -6
- package/dist/index.d.ts +6 -6
- package/dist/index.mjs +8 -8
- package/dist/index.mjs.map +1 -1
- package/package.json +4 -4
- package/dist/chunk-3NJIIKMT.mjs.map +0 -1
|
@@ -311,7 +311,7 @@ var lineIdsExtension = ViewPlugin.fromClass(
|
|
|
311
311
|
if (!label) label = timestamp;
|
|
312
312
|
}
|
|
313
313
|
id = label.toLowerCase().replace(/[^\w]+/g, "-");
|
|
314
|
-
} else if (/^```(time|log)
|
|
314
|
+
} else if (/^```(time|wod|whiteboard|log)/i.test(trimmed)) {
|
|
315
315
|
id = `workout-line-${i}`;
|
|
316
316
|
}
|
|
317
317
|
if (id && line.from >= view.viewport.from && line.to <= view.viewport.to) {
|
|
@@ -6833,9 +6833,6 @@ function WqlBars({ result, unit: unitProp }) {
|
|
|
6833
6833
|
] }) });
|
|
6834
6834
|
}
|
|
6835
6835
|
var MAX_ROWS = 12;
|
|
6836
|
-
function formatValue(v, unit) {
|
|
6837
|
-
return `${v.toLocaleString()}${unit ? ` ${unit}` : ""}`;
|
|
6838
|
-
}
|
|
6839
6836
|
function WqlTable({ result, unit: unitProp }) {
|
|
6840
6837
|
const shape = useChartShape(result);
|
|
6841
6838
|
const unit = result.series[0]?.unit ?? unitProp ?? "";
|
|
@@ -6843,14 +6840,14 @@ function WqlTable({ result, unit: unitProp }) {
|
|
|
6843
6840
|
if (shape.kind === "scalar") {
|
|
6844
6841
|
return {
|
|
6845
6842
|
head: ["Metric", "Value"],
|
|
6846
|
-
body: [[result.series[0]?.label ?? "scalar",
|
|
6843
|
+
body: [[result.series[0]?.label ?? "scalar", formatTimeseriesTooltipValue(shape.value, unit)]],
|
|
6847
6844
|
more: 0
|
|
6848
6845
|
};
|
|
6849
6846
|
}
|
|
6850
6847
|
if (shape.kind === "bars") {
|
|
6851
6848
|
const all = result.series.map((s) => [
|
|
6852
6849
|
s.label,
|
|
6853
|
-
|
|
6850
|
+
formatTimeseriesTooltipValue(s.points[0]?.value ?? 0, unit)
|
|
6854
6851
|
]);
|
|
6855
6852
|
return {
|
|
6856
6853
|
head: ["Series", "Value"],
|
|
@@ -6871,7 +6868,7 @@ function WqlTable({ result, unit: unitProp }) {
|
|
|
6871
6868
|
formatTimestamp(ts),
|
|
6872
6869
|
...result.series.map((s) => {
|
|
6873
6870
|
const v = seriesMap.get(s.label)?.get(ts);
|
|
6874
|
-
return v !== void 0 ?
|
|
6871
|
+
return v !== void 0 ? formatTimeseriesTooltipValue(v, unit) : "\u2014";
|
|
6875
6872
|
})
|
|
6876
6873
|
]);
|
|
6877
6874
|
return { head, body, more: Math.max(0, timestamps.length - MAX_ROWS) };
|
|
@@ -17628,5 +17625,5 @@ function editorPreset(optionsOrDialect = "markdown") {
|
|
|
17628
17625
|
}
|
|
17629
17626
|
|
|
17630
17627
|
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, 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, 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 };
|
|
17631
|
-
//# sourceMappingURL=chunk-
|
|
17632
|
-
//# sourceMappingURL=chunk-
|
|
17628
|
+
//# sourceMappingURL=chunk-VYFKXF46.mjs.map
|
|
17629
|
+
//# sourceMappingURL=chunk-VYFKXF46.mjs.map
|