@bitcobblers/wod-wiki-ui 0.62.2261 → 0.62.2263
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-C6BT5QVA.mjs → chunk-QGB3HYJU.mjs} +268 -74
- package/dist/chunk-QGB3HYJU.mjs.map +1 -0
- package/dist/extensions/index.cjs +265 -71
- package/dist/extensions/index.cjs.map +1 -1
- package/dist/extensions/index.d.cts +1 -1
- package/dist/extensions/index.d.ts +1 -1
- package/dist/extensions/index.mjs +1 -1
- package/dist/{index-ByZr9Fye.d.cts → index-Bwtlo6Cj.d.cts} +9 -0
- package/dist/{index-ByZr9Fye.d.ts → index-Bwtlo6Cj.d.ts} +9 -0
- package/dist/index.cjs +271 -77
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +11 -11
- package/dist/index.d.ts +11 -11
- package/dist/index.mjs +8 -8
- package/dist/index.mjs.map +1 -1
- package/package.json +4 -4
- package/dist/chunk-C6BT5QVA.mjs.map +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { A as AttachmentUrlResolver, B as ButtonAction, b as CursorFocusState, c as CustomCompletionSource, e as DefaultFrontmatterWidget, E as EditorDialect, f as EditorPresetOptions, g as EditorSection, h as EditorSectionSubtype, i as EditorSectionType, j as EmbedType, F as FrontmatterCatalogEntry, k as FrontmatterRefDiagnostic, l as FrontmatterReferenceProvider, m as FrontmatterReferenceRef, n as FrontmatterReferenceResolution, o as FrontmatterSuggestionCatalog, G as GeometryListener, p as INTERNAL_FRONTMATTER_KEYS, N as NavigationHook, q as NestedCompletionOptions, y as OverlayAction, z as QueryBlockPreviewOptions, K as RuntimePanelEntry, L as SectionIdentity, P as SectionRect, T as SectionState, U as SessionQueryFenceOptions, Y as WidgetConfig, Z as WidgetProps, _ as WidgetRegistry, $ as acceptCompletionOrFirst, a0 as activeCursorSection, a1 as addRuntimePanel, a2 as affiliateTagFacet, a3 as applyAmazonAffiliateTag, a4 as attachmentUrlFacet, a5 as autocompleteTooltipTheme, a6 as configureOverlayActions, a7 as cursorFocusExtension, a8 as customCompletionSources, a9 as dispatchAddRuntimePanel, aa as dispatchExpandRuntimePanel, ab as dispatchGutterHighlights, ac as dispatchRemoveRuntimePanel, ad as editingQuerySectionsField, ae as editingWidgetsField, af as editorFocusField, ag as editorFocusTracker, ah as editorPreset, ai as editorTheme, aj as embedPreviewDecorations, ak as expandRuntimePanel, am as fenceCompletion, an as findQueryBlockSection, ao as findWorkoutErrors, ap as forceSectionParse, au as frontmatterDebugMode, av as frontmatterDetailed, aw as frontmatterKeymap, ax as frontmatterPreview, ay as frontmatterPreviewField, az as frontmatterReferenceIndex, aA as frontmatterSource, aB as frontmatterSuggestions, aC as frontmatterVisibility, aD as getCursorFocusState, aE as getOverlayActions, aF as gutterHighlightsField, aG as gutterUnified, aH as handleFenceAutoWrap, aI as handleSmartUrlPaste, aJ as inlineButtonDecoration, aK as insertMarkdownLinkCommand, aL as insertWhiteboardNewline, aM as isAmazonRetailHost, aN as isEditorFocused, aO as isInternalFrontmatterKey, aP as isNavigableUrl, aQ as isWhiteboardScriptBody, aR as lineIdsExtension, aS as linkOpen, aT as linkPreview, aU as markdownSyntaxHiding, aV as markdownTablePreview, aW as mobileDockedCompletionFacet, aX as navigationFacet, aY as nestedCompletion, aZ as nestedCompletionOptions, b0 as previewDecorations, b1 as queryBlockPreview, b2 as referenceIndexReload, b3 as registeredSectionWidgets, b4 as removeRuntimePanel, b5 as resolveCodeLanguage, b6 as runtimePanelField, b7 as saveBlockQuerySource, b8 as sectionAtPos, b9 as sectionField, ba as sectionGeometry, bb as sectionIdentity, bc as sectionIdentityHistory, bd as sectionMove, be as sectionRestore, bf as sectionSaved, bg as sessionQueryFence, bh as sessionQueryInsert, bi as sessionQueryWql, bj as setEditorFocused, bk as setFrontmatterDetailed, bl as setFrontmatterSource, bm as setGutterHighlights, bn as setQuerySourceEditing, bo as shouldTriggerBackspaceCompletion, bp as slashBlockCompletion, bq as smartIncrement, br as toggleInlineMarkdown, bs as toggleWidgetEdit, bt as urlAtPos, bu as widgetBlockPreview, bv as wodAutoWrap, bw as wodAutocompletion, bx as wodBackspaceCompletion, by as wodCompletionIconOption, bz as wodCompletionKeymap, bA as wodCompletionSource, bB as wodEditorKeymap, bC as wodIndentKeymap, bD as wodLinter, bE as wodOverlayPanel, bF as workoutLintSource, bG as wrapInTimeFence } from '../index-
|
|
1
|
+
export { A as AttachmentUrlResolver, B as ButtonAction, b as CursorFocusState, c as CustomCompletionSource, e as DefaultFrontmatterWidget, E as EditorDialect, f as EditorPresetOptions, g as EditorSection, h as EditorSectionSubtype, i as EditorSectionType, j as EmbedType, F as FrontmatterCatalogEntry, k as FrontmatterRefDiagnostic, l as FrontmatterReferenceProvider, m as FrontmatterReferenceRef, n as FrontmatterReferenceResolution, o as FrontmatterSuggestionCatalog, G as GeometryListener, p as INTERNAL_FRONTMATTER_KEYS, N as NavigationHook, q as NestedCompletionOptions, y as OverlayAction, z as QueryBlockPreviewOptions, K as RuntimePanelEntry, L as SectionIdentity, P as SectionRect, T as SectionState, U as SessionQueryFenceOptions, Y as WidgetConfig, Z as WidgetProps, _ as WidgetRegistry, $ as acceptCompletionOrFirst, a0 as activeCursorSection, a1 as addRuntimePanel, a2 as affiliateTagFacet, a3 as applyAmazonAffiliateTag, a4 as attachmentUrlFacet, a5 as autocompleteTooltipTheme, a6 as configureOverlayActions, a7 as cursorFocusExtension, a8 as customCompletionSources, a9 as dispatchAddRuntimePanel, aa as dispatchExpandRuntimePanel, ab as dispatchGutterHighlights, ac as dispatchRemoveRuntimePanel, ad as editingQuerySectionsField, ae as editingWidgetsField, af as editorFocusField, ag as editorFocusTracker, ah as editorPreset, ai as editorTheme, aj as embedPreviewDecorations, ak as expandRuntimePanel, am as fenceCompletion, an as findQueryBlockSection, ao as findWorkoutErrors, ap as forceSectionParse, au as frontmatterDebugMode, av as frontmatterDetailed, aw as frontmatterKeymap, ax as frontmatterPreview, ay as frontmatterPreviewField, az as frontmatterReferenceIndex, aA as frontmatterSource, aB as frontmatterSuggestions, aC as frontmatterVisibility, aD as getCursorFocusState, aE as getOverlayActions, aF as gutterHighlightsField, aG as gutterUnified, aH as handleFenceAutoWrap, aI as handleSmartUrlPaste, aJ as inlineButtonDecoration, aK as insertMarkdownLinkCommand, aL as insertWhiteboardNewline, aM as isAmazonRetailHost, aN as isEditorFocused, aO as isInternalFrontmatterKey, aP as isNavigableUrl, aQ as isWhiteboardScriptBody, aR as lineIdsExtension, aS as linkOpen, aT as linkPreview, aU as markdownSyntaxHiding, aV as markdownTablePreview, aW as mobileDockedCompletionFacet, aX as navigationFacet, aY as nestedCompletion, aZ as nestedCompletionOptions, b0 as previewDecorations, b1 as queryBlockPreview, b2 as referenceIndexReload, b3 as registeredSectionWidgets, b4 as removeRuntimePanel, b5 as resolveCodeLanguage, b6 as runtimePanelField, b7 as saveBlockQuerySource, b8 as sectionAtPos, b9 as sectionField, ba as sectionGeometry, bb as sectionIdentity, bc as sectionIdentityHistory, bd as sectionMove, be as sectionRestore, bf as sectionSaved, bg as sessionQueryFence, bh as sessionQueryInsert, bi as sessionQueryWql, bj as setEditorFocused, bk as setFrontmatterDetailed, bl as setFrontmatterSource, bm as setGutterHighlights, bn as setQuerySourceEditing, bo as shouldTriggerBackspaceCompletion, bp as slashBlockCompletion, bq as smartIncrement, br as toggleInlineMarkdown, bs as toggleWidgetEdit, bt as urlAtPos, bu as widgetBlockPreview, bv as wodAutoWrap, bw as wodAutocompletion, bx as wodBackspaceCompletion, by as wodCompletionIconOption, bz as wodCompletionKeymap, bA as wodCompletionSource, bB as wodEditorKeymap, bC as wodIndentKeymap, bD as wodLinter, bE as wodOverlayPanel, bF as workoutLintSource, bG as wrapInTimeFence } from '../index-Bwtlo6Cj.cjs';
|
|
2
2
|
export { blockContentId } from '@bitcobblers/wod-wiki-core';
|
|
3
3
|
import '@codemirror/state';
|
|
4
4
|
import '@codemirror/view';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { A as AttachmentUrlResolver, B as ButtonAction, b as CursorFocusState, c as CustomCompletionSource, e as DefaultFrontmatterWidget, E as EditorDialect, f as EditorPresetOptions, g as EditorSection, h as EditorSectionSubtype, i as EditorSectionType, j as EmbedType, F as FrontmatterCatalogEntry, k as FrontmatterRefDiagnostic, l as FrontmatterReferenceProvider, m as FrontmatterReferenceRef, n as FrontmatterReferenceResolution, o as FrontmatterSuggestionCatalog, G as GeometryListener, p as INTERNAL_FRONTMATTER_KEYS, N as NavigationHook, q as NestedCompletionOptions, y as OverlayAction, z as QueryBlockPreviewOptions, K as RuntimePanelEntry, L as SectionIdentity, P as SectionRect, T as SectionState, U as SessionQueryFenceOptions, Y as WidgetConfig, Z as WidgetProps, _ as WidgetRegistry, $ as acceptCompletionOrFirst, a0 as activeCursorSection, a1 as addRuntimePanel, a2 as affiliateTagFacet, a3 as applyAmazonAffiliateTag, a4 as attachmentUrlFacet, a5 as autocompleteTooltipTheme, a6 as configureOverlayActions, a7 as cursorFocusExtension, a8 as customCompletionSources, a9 as dispatchAddRuntimePanel, aa as dispatchExpandRuntimePanel, ab as dispatchGutterHighlights, ac as dispatchRemoveRuntimePanel, ad as editingQuerySectionsField, ae as editingWidgetsField, af as editorFocusField, ag as editorFocusTracker, ah as editorPreset, ai as editorTheme, aj as embedPreviewDecorations, ak as expandRuntimePanel, am as fenceCompletion, an as findQueryBlockSection, ao as findWorkoutErrors, ap as forceSectionParse, au as frontmatterDebugMode, av as frontmatterDetailed, aw as frontmatterKeymap, ax as frontmatterPreview, ay as frontmatterPreviewField, az as frontmatterReferenceIndex, aA as frontmatterSource, aB as frontmatterSuggestions, aC as frontmatterVisibility, aD as getCursorFocusState, aE as getOverlayActions, aF as gutterHighlightsField, aG as gutterUnified, aH as handleFenceAutoWrap, aI as handleSmartUrlPaste, aJ as inlineButtonDecoration, aK as insertMarkdownLinkCommand, aL as insertWhiteboardNewline, aM as isAmazonRetailHost, aN as isEditorFocused, aO as isInternalFrontmatterKey, aP as isNavigableUrl, aQ as isWhiteboardScriptBody, aR as lineIdsExtension, aS as linkOpen, aT as linkPreview, aU as markdownSyntaxHiding, aV as markdownTablePreview, aW as mobileDockedCompletionFacet, aX as navigationFacet, aY as nestedCompletion, aZ as nestedCompletionOptions, b0 as previewDecorations, b1 as queryBlockPreview, b2 as referenceIndexReload, b3 as registeredSectionWidgets, b4 as removeRuntimePanel, b5 as resolveCodeLanguage, b6 as runtimePanelField, b7 as saveBlockQuerySource, b8 as sectionAtPos, b9 as sectionField, ba as sectionGeometry, bb as sectionIdentity, bc as sectionIdentityHistory, bd as sectionMove, be as sectionRestore, bf as sectionSaved, bg as sessionQueryFence, bh as sessionQueryInsert, bi as sessionQueryWql, bj as setEditorFocused, bk as setFrontmatterDetailed, bl as setFrontmatterSource, bm as setGutterHighlights, bn as setQuerySourceEditing, bo as shouldTriggerBackspaceCompletion, bp as slashBlockCompletion, bq as smartIncrement, br as toggleInlineMarkdown, bs as toggleWidgetEdit, bt as urlAtPos, bu as widgetBlockPreview, bv as wodAutoWrap, bw as wodAutocompletion, bx as wodBackspaceCompletion, by as wodCompletionIconOption, bz as wodCompletionKeymap, bA as wodCompletionSource, bB as wodEditorKeymap, bC as wodIndentKeymap, bD as wodLinter, bE as wodOverlayPanel, bF as workoutLintSource, bG as wrapInTimeFence } from '../index-
|
|
1
|
+
export { A as AttachmentUrlResolver, B as ButtonAction, b as CursorFocusState, c as CustomCompletionSource, e as DefaultFrontmatterWidget, E as EditorDialect, f as EditorPresetOptions, g as EditorSection, h as EditorSectionSubtype, i as EditorSectionType, j as EmbedType, F as FrontmatterCatalogEntry, k as FrontmatterRefDiagnostic, l as FrontmatterReferenceProvider, m as FrontmatterReferenceRef, n as FrontmatterReferenceResolution, o as FrontmatterSuggestionCatalog, G as GeometryListener, p as INTERNAL_FRONTMATTER_KEYS, N as NavigationHook, q as NestedCompletionOptions, y as OverlayAction, z as QueryBlockPreviewOptions, K as RuntimePanelEntry, L as SectionIdentity, P as SectionRect, T as SectionState, U as SessionQueryFenceOptions, Y as WidgetConfig, Z as WidgetProps, _ as WidgetRegistry, $ as acceptCompletionOrFirst, a0 as activeCursorSection, a1 as addRuntimePanel, a2 as affiliateTagFacet, a3 as applyAmazonAffiliateTag, a4 as attachmentUrlFacet, a5 as autocompleteTooltipTheme, a6 as configureOverlayActions, a7 as cursorFocusExtension, a8 as customCompletionSources, a9 as dispatchAddRuntimePanel, aa as dispatchExpandRuntimePanel, ab as dispatchGutterHighlights, ac as dispatchRemoveRuntimePanel, ad as editingQuerySectionsField, ae as editingWidgetsField, af as editorFocusField, ag as editorFocusTracker, ah as editorPreset, ai as editorTheme, aj as embedPreviewDecorations, ak as expandRuntimePanel, am as fenceCompletion, an as findQueryBlockSection, ao as findWorkoutErrors, ap as forceSectionParse, au as frontmatterDebugMode, av as frontmatterDetailed, aw as frontmatterKeymap, ax as frontmatterPreview, ay as frontmatterPreviewField, az as frontmatterReferenceIndex, aA as frontmatterSource, aB as frontmatterSuggestions, aC as frontmatterVisibility, aD as getCursorFocusState, aE as getOverlayActions, aF as gutterHighlightsField, aG as gutterUnified, aH as handleFenceAutoWrap, aI as handleSmartUrlPaste, aJ as inlineButtonDecoration, aK as insertMarkdownLinkCommand, aL as insertWhiteboardNewline, aM as isAmazonRetailHost, aN as isEditorFocused, aO as isInternalFrontmatterKey, aP as isNavigableUrl, aQ as isWhiteboardScriptBody, aR as lineIdsExtension, aS as linkOpen, aT as linkPreview, aU as markdownSyntaxHiding, aV as markdownTablePreview, aW as mobileDockedCompletionFacet, aX as navigationFacet, aY as nestedCompletion, aZ as nestedCompletionOptions, b0 as previewDecorations, b1 as queryBlockPreview, b2 as referenceIndexReload, b3 as registeredSectionWidgets, b4 as removeRuntimePanel, b5 as resolveCodeLanguage, b6 as runtimePanelField, b7 as saveBlockQuerySource, b8 as sectionAtPos, b9 as sectionField, ba as sectionGeometry, bb as sectionIdentity, bc as sectionIdentityHistory, bd as sectionMove, be as sectionRestore, bf as sectionSaved, bg as sessionQueryFence, bh as sessionQueryInsert, bi as sessionQueryWql, bj as setEditorFocused, bk as setFrontmatterDetailed, bl as setFrontmatterSource, bm as setGutterHighlights, bn as setQuerySourceEditing, bo as shouldTriggerBackspaceCompletion, bp as slashBlockCompletion, bq as smartIncrement, br as toggleInlineMarkdown, bs as toggleWidgetEdit, bt as urlAtPos, bu as widgetBlockPreview, bv as wodAutoWrap, bw as wodAutocompletion, bx as wodBackspaceCompletion, by as wodCompletionIconOption, bz as wodCompletionKeymap, bA as wodCompletionSource, bB as wodEditorKeymap, bC as wodIndentKeymap, bD as wodLinter, bE as wodOverlayPanel, bF as workoutLintSource, bG as wrapInTimeFence } from '../index-Bwtlo6Cj.js';
|
|
2
2
|
export { blockContentId } from '@bitcobblers/wod-wiki-core';
|
|
3
3
|
import '@codemirror/state';
|
|
4
4
|
import '@codemirror/view';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { DefaultFrontmatterWidget, INTERNAL_FRONTMATTER_KEYS, acceptCompletionOrFirst, activeCursorSection, addRuntimePanel, affiliateTagFacet, applyAmazonAffiliateTag, 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, insertWhiteboardNewline, isAmazonRetailHost, isEditorFocused, isInternalFrontmatterKey, isNavigableUrl, isWhiteboardScriptBody, lineIdsExtension, linkOpen, linkPreview, markdownSyntaxHiding, markdownTablePreview, mobileDockedCompletionFacet, 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, shouldTriggerBackspaceCompletion, slashBlockCompletion, smartIncrement, toggleInlineMarkdown, toggleWidgetEdit, urlAtPos, widgetBlockPreview, wodAutoWrap, wodAutocompletion, wodBackspaceCompletion, wodCompletionIconOption, wodCompletionKeymap, wodCompletionSource, wodEditorKeymap, wodIndentKeymap, wodLinter, wodOverlayPanel, workoutLintSource, wrapInTimeFence } from '../chunk-
|
|
1
|
+
export { DefaultFrontmatterWidget, INTERNAL_FRONTMATTER_KEYS, acceptCompletionOrFirst, activeCursorSection, addRuntimePanel, affiliateTagFacet, applyAmazonAffiliateTag, 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, insertWhiteboardNewline, isAmazonRetailHost, isEditorFocused, isInternalFrontmatterKey, isNavigableUrl, isWhiteboardScriptBody, lineIdsExtension, linkOpen, linkPreview, markdownSyntaxHiding, markdownTablePreview, mobileDockedCompletionFacet, 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, shouldTriggerBackspaceCompletion, slashBlockCompletion, smartIncrement, toggleInlineMarkdown, toggleWidgetEdit, urlAtPos, widgetBlockPreview, wodAutoWrap, wodAutocompletion, wodBackspaceCompletion, wodCompletionIconOption, wodCompletionKeymap, wodCompletionSource, wodEditorKeymap, wodIndentKeymap, wodLinter, wodOverlayPanel, workoutLintSource, wrapInTimeFence } from '../chunk-QGB3HYJU.mjs';
|
|
2
2
|
import '../chunk-U2OQIGSB.mjs';
|
|
3
3
|
//# sourceMappingURL=index.mjs.map
|
|
4
4
|
//# sourceMappingURL=index.mjs.map
|
|
@@ -313,6 +313,11 @@ interface FrontmatterReferenceProvider {
|
|
|
313
313
|
slug: string;
|
|
314
314
|
label: string;
|
|
315
315
|
} | null;
|
|
316
|
+
/** Exact catalogue tag lookup (optional — providers without a tag index omit it). */
|
|
317
|
+
resolveTag?(slugOrLabel: string, tagType?: string): {
|
|
318
|
+
slug: string;
|
|
319
|
+
type?: string;
|
|
320
|
+
} | null;
|
|
316
321
|
/** Route href for an existing effort/equipment/tag page (app-owned). */
|
|
317
322
|
openHref(kind: FrontmatterReferenceRef['kind'], slug: string, tagType?: string): string;
|
|
318
323
|
/** Route href for the create page of a kind (app-owned). */
|
|
@@ -470,6 +475,10 @@ interface OutputStatementRow {
|
|
|
470
475
|
readonly id?: number | string;
|
|
471
476
|
readonly grain?: string;
|
|
472
477
|
readonly outputType?: string;
|
|
478
|
+
readonly effortSlug?: string;
|
|
479
|
+
readonly label?: string;
|
|
480
|
+
readonly statement?: string;
|
|
481
|
+
readonly text?: string;
|
|
473
482
|
readonly timeSpan?: {
|
|
474
483
|
started: number;
|
|
475
484
|
ended?: number;
|
|
@@ -313,6 +313,11 @@ interface FrontmatterReferenceProvider {
|
|
|
313
313
|
slug: string;
|
|
314
314
|
label: string;
|
|
315
315
|
} | null;
|
|
316
|
+
/** Exact catalogue tag lookup (optional — providers without a tag index omit it). */
|
|
317
|
+
resolveTag?(slugOrLabel: string, tagType?: string): {
|
|
318
|
+
slug: string;
|
|
319
|
+
type?: string;
|
|
320
|
+
} | null;
|
|
316
321
|
/** Route href for an existing effort/equipment/tag page (app-owned). */
|
|
317
322
|
openHref(kind: FrontmatterReferenceRef['kind'], slug: string, tagType?: string): string;
|
|
318
323
|
/** Route href for the create page of a kind (app-owned). */
|
|
@@ -470,6 +475,10 @@ interface OutputStatementRow {
|
|
|
470
475
|
readonly id?: number | string;
|
|
471
476
|
readonly grain?: string;
|
|
472
477
|
readonly outputType?: string;
|
|
478
|
+
readonly effortSlug?: string;
|
|
479
|
+
readonly label?: string;
|
|
480
|
+
readonly statement?: string;
|
|
481
|
+
readonly text?: string;
|
|
473
482
|
readonly timeSpan?: {
|
|
474
483
|
started: number;
|
|
475
484
|
ended?: number;
|
package/dist/index.cjs
CHANGED
|
@@ -1720,6 +1720,15 @@ function formatMMSS(ms) {
|
|
|
1720
1720
|
const s = totalSec % 60;
|
|
1721
1721
|
return `${String(m).padStart(2, "0")}:${String(s).padStart(2, "0")}`;
|
|
1722
1722
|
}
|
|
1723
|
+
function formatOffsetMMSS(deltaMs) {
|
|
1724
|
+
if (!Number.isFinite(deltaMs)) return "+00:00";
|
|
1725
|
+
if (deltaMs < 0) {
|
|
1726
|
+
const absSec = Math.floor(-deltaMs / 1e3);
|
|
1727
|
+
if (absSec === 0) return "+00:00";
|
|
1728
|
+
return `-${formatMMSS(-deltaMs)}`;
|
|
1729
|
+
}
|
|
1730
|
+
return `+${formatMMSS(deltaMs)}`;
|
|
1731
|
+
}
|
|
1723
1732
|
function formatClockTime(d) {
|
|
1724
1733
|
return d.toLocaleTimeString("en-US", {
|
|
1725
1734
|
hour12: false,
|
|
@@ -1814,10 +1823,146 @@ function formatOutputTypeLabel(outputType) {
|
|
|
1814
1823
|
if (!raw) return "System";
|
|
1815
1824
|
return OUTPUT_TYPE_LABEL[raw] ?? raw.charAt(0).toUpperCase() + raw.slice(1);
|
|
1816
1825
|
}
|
|
1817
|
-
|
|
1818
|
-
|
|
1826
|
+
var ACRONYMS = {
|
|
1827
|
+
c2b: "C2B",
|
|
1828
|
+
t2b: "T2B",
|
|
1829
|
+
ghd: "GHD",
|
|
1830
|
+
hspu: "HSPU",
|
|
1831
|
+
amrap: "AMRAP",
|
|
1832
|
+
emom: "EMOM",
|
|
1833
|
+
rft: "RFT"
|
|
1834
|
+
};
|
|
1835
|
+
function humanizeSlug(slug) {
|
|
1836
|
+
return slug.trim().split(/[-_\s]+/).filter(Boolean).map((word) => {
|
|
1837
|
+
const lower = word.toLowerCase();
|
|
1838
|
+
return ACRONYMS[lower] ?? word.charAt(0).toUpperCase() + word.slice(1);
|
|
1839
|
+
}).join(" ");
|
|
1840
|
+
}
|
|
1841
|
+
var GENERIC_LABELS = /* @__PURE__ */ new Set(["segment", "statement", "completed", "system"]);
|
|
1842
|
+
function resolveOutputRowLabel(out) {
|
|
1843
|
+
const explicitLabel = out.label?.trim();
|
|
1844
|
+
if (explicitLabel && !GENERIC_LABELS.has(explicitLabel.toLowerCase())) {
|
|
1845
|
+
return explicitLabel;
|
|
1846
|
+
}
|
|
1847
|
+
const all = out.metrics ? Array.from(out.metrics) : [];
|
|
1848
|
+
for (const m of all) {
|
|
1849
|
+
const t = String(m.type ?? "").toLowerCase();
|
|
1850
|
+
if (t === "effort" || t === "action" || t === "label" || t === "text") {
|
|
1851
|
+
const rawText = typeof m.image === "string" && m.image.trim() || typeof m.value === "string" && m.value.trim() || "";
|
|
1852
|
+
if (!rawText) continue;
|
|
1853
|
+
const lower = rawText.toLowerCase();
|
|
1854
|
+
if (lower === "ready to start") return "Start";
|
|
1855
|
+
if (lower === "session" || lower === "session completed") return "Session";
|
|
1856
|
+
if (!GENERIC_LABELS.has(lower)) return rawText;
|
|
1857
|
+
}
|
|
1858
|
+
}
|
|
1859
|
+
if (out.effortSlug && out.effortSlug.trim()) {
|
|
1860
|
+
return humanizeSlug(out.effortSlug);
|
|
1861
|
+
}
|
|
1862
|
+
const rawStatement = (out.statement ?? out.text ?? "").trim();
|
|
1863
|
+
if (rawStatement) {
|
|
1864
|
+
const firstLine = rawStatement.split("\n")[0]?.trim() ?? "";
|
|
1865
|
+
if (firstLine && !GENERIC_LABELS.has(firstLine.toLowerCase())) {
|
|
1866
|
+
return firstLine;
|
|
1867
|
+
}
|
|
1868
|
+
}
|
|
1869
|
+
for (const m of all) {
|
|
1870
|
+
const t = String(m.type ?? "").toLowerCase();
|
|
1871
|
+
if (t === "current-round" || t === "rounds") {
|
|
1872
|
+
const img = typeof m.image === "string" ? m.image.trim() : "";
|
|
1873
|
+
if (/^completed\b/i.test(img)) return img;
|
|
1874
|
+
const n = typeof m.value === "number" ? m.value : Number(m.value);
|
|
1875
|
+
if (Number.isFinite(n) && n > 0) {
|
|
1876
|
+
return t === "current-round" ? `Round ${n}` : `${n} ${n === 1 ? "Round" : "Rounds"}`;
|
|
1877
|
+
}
|
|
1878
|
+
}
|
|
1879
|
+
}
|
|
1880
|
+
const blockKey = String(out.sourceBlockKey ?? "").trim().toLowerCase();
|
|
1881
|
+
if (blockKey.startsWith("waiting-to-start")) return "Start";
|
|
1882
|
+
if (blockKey.startsWith("session-root") || blockKey === "root") return "Session";
|
|
1883
|
+
if (blockKey.startsWith("rest")) return "Rest";
|
|
1884
|
+
const roundMatch = /^round[-_:\s]*(\d+)/i.exec(blockKey);
|
|
1885
|
+
if (roundMatch) return `Round ${roundMatch[1]}`;
|
|
1886
|
+
if (blockKey.startsWith("rounds")) return "Rounds";
|
|
1887
|
+
if (String(out.outputType ?? "").toLowerCase() === "analytics" && all.length > 0) {
|
|
1888
|
+
const first = all[0];
|
|
1889
|
+
const meta = first.metadata;
|
|
1890
|
+
const summaryName = typeof meta?.originalKey === "string" && meta.originalKey || typeof meta?.canonicalKey === "string" && meta.canonicalKey || String(first.type ?? "");
|
|
1891
|
+
if (summaryName) return summaryName;
|
|
1892
|
+
}
|
|
1893
|
+
return formatOutputTypeLabel(out.outputType);
|
|
1894
|
+
}
|
|
1895
|
+
function resolveOutputTypeBadgeLabel(out) {
|
|
1896
|
+
const rawType = String(out.outputType ?? "system").trim().toLowerCase();
|
|
1897
|
+
if (rawType !== "segment") return formatOutputTypeLabel(out.outputType);
|
|
1898
|
+
const blockKey = String(out.sourceBlockKey ?? "").trim().toLowerCase();
|
|
1899
|
+
if (blockKey.startsWith("waiting-to-start")) return "Start";
|
|
1900
|
+
if (blockKey.startsWith("session-root") || blockKey === "root") return "Session";
|
|
1901
|
+
if (blockKey.startsWith("rest")) return "Rest";
|
|
1902
|
+
const all = out.metrics ? Array.from(out.metrics) : [];
|
|
1903
|
+
const hasEffort = Boolean(out.effortSlug) || all.some((m) => String(m.type ?? "").toLowerCase() === "effort");
|
|
1904
|
+
if (!hasEffort) {
|
|
1905
|
+
const hasRoundMetric = all.some((m) => {
|
|
1906
|
+
const t = String(m.type ?? "").toLowerCase();
|
|
1907
|
+
return t === "rounds" || t === "current-round";
|
|
1908
|
+
});
|
|
1909
|
+
if (hasRoundMetric || blockKey.startsWith("round")) return "Rounds";
|
|
1910
|
+
}
|
|
1911
|
+
return "Segment";
|
|
1912
|
+
}
|
|
1913
|
+
function formatOutputRowTitle(out, elapsedStr) {
|
|
1914
|
+
const label = resolveOutputRowLabel(out);
|
|
1819
1915
|
return elapsedStr ? `${label} (${elapsedStr})` : label;
|
|
1820
1916
|
}
|
|
1917
|
+
function resolveTimeOrigin(outputs, timeOrigin) {
|
|
1918
|
+
let minStarted;
|
|
1919
|
+
let maxStarted;
|
|
1920
|
+
for (const o of outputs) {
|
|
1921
|
+
const s = o.timeSpan?.started;
|
|
1922
|
+
if (typeof s !== "number" || !Number.isFinite(s)) continue;
|
|
1923
|
+
minStarted = minStarted === void 0 ? s : Math.min(minStarted, s);
|
|
1924
|
+
maxStarted = maxStarted === void 0 ? s : Math.max(maxStarted, s);
|
|
1925
|
+
}
|
|
1926
|
+
if (typeof timeOrigin === "number" && Number.isFinite(timeOrigin)) {
|
|
1927
|
+
if (minStarted !== void 0 && timeOrigin > minStarted && (maxStarted === void 0 || timeOrigin >= maxStarted)) {
|
|
1928
|
+
return minStarted;
|
|
1929
|
+
}
|
|
1930
|
+
return timeOrigin;
|
|
1931
|
+
}
|
|
1932
|
+
return minStarted;
|
|
1933
|
+
}
|
|
1934
|
+
function metricDurationToMs(m) {
|
|
1935
|
+
const rawVal = typeof m.value === "number" ? m.value : Number(m.value);
|
|
1936
|
+
if (!Number.isFinite(rawVal) || rawVal <= 0) return void 0;
|
|
1937
|
+
const unit = "unit" in m && typeof m.unit === "string" ? m.unit.trim().toLowerCase() : "";
|
|
1938
|
+
if (unit === "s" || unit === "sec" || unit === "secs" || unit === "second" || unit === "seconds") {
|
|
1939
|
+
return rawVal * 1e3;
|
|
1940
|
+
}
|
|
1941
|
+
if (unit === "min" || unit === "mins" || unit === "minute" || unit === "minutes") {
|
|
1942
|
+
return rawVal * 6e4;
|
|
1943
|
+
}
|
|
1944
|
+
return rawVal;
|
|
1945
|
+
}
|
|
1946
|
+
function resolveRowDurationMs(out) {
|
|
1947
|
+
const started = out.timeSpan?.started;
|
|
1948
|
+
const ended = out.timeSpan?.ended;
|
|
1949
|
+
if (started !== void 0 && ended !== void 0 && ended > started) {
|
|
1950
|
+
return ended - started;
|
|
1951
|
+
}
|
|
1952
|
+
if (out.metrics) {
|
|
1953
|
+
for (const m of out.metrics) {
|
|
1954
|
+
const t = String(m.type ?? "").toLowerCase();
|
|
1955
|
+
if (t === "elapsed" || t === "duration") {
|
|
1956
|
+
const ms = metricDurationToMs(m);
|
|
1957
|
+
if (ms !== void 0 && ms > 0) return ms;
|
|
1958
|
+
}
|
|
1959
|
+
}
|
|
1960
|
+
}
|
|
1961
|
+
if (started !== void 0 && ended !== void 0) {
|
|
1962
|
+
return Math.max(0, ended - started);
|
|
1963
|
+
}
|
|
1964
|
+
return void 0;
|
|
1965
|
+
}
|
|
1821
1966
|
var EFFORT_TYPES = /* @__PURE__ */ new Set(["effort", "text", "action", "label"]);
|
|
1822
1967
|
var LOAD_TYPES = /* @__PURE__ */ new Set([
|
|
1823
1968
|
"resistance",
|
|
@@ -2023,13 +2168,11 @@ function extractMetricsForColumn(out, col, dynamicLowerTypes) {
|
|
|
2023
2168
|
case "effort": {
|
|
2024
2169
|
const explicitEfforts = all.filter((m) => EFFORT_TYPES.has(String(m.type).toLowerCase()));
|
|
2025
2170
|
if (explicitEfforts.length > 0) return explicitEfforts;
|
|
2026
|
-
|
|
2027
|
-
|
|
2028
|
-
|
|
2029
|
-
const
|
|
2030
|
-
|
|
2031
|
-
return [{ type: "label", value: summaryName, image: summaryName, origin: first.origin }];
|
|
2032
|
-
}
|
|
2171
|
+
const resolved = resolveOutputRowLabel(out);
|
|
2172
|
+
const genericType = formatOutputTypeLabel(out.outputType);
|
|
2173
|
+
if (resolved && resolved !== genericType) {
|
|
2174
|
+
const origin = all[0]?.origin ?? "runtime";
|
|
2175
|
+
return [{ type: "label", value: resolved, image: resolved, origin }];
|
|
2033
2176
|
}
|
|
2034
2177
|
return [];
|
|
2035
2178
|
}
|
|
@@ -2149,13 +2292,20 @@ function StatementCards({
|
|
|
2149
2292
|
}
|
|
2150
2293
|
return /* @__PURE__ */ jsxRuntime.jsx("ol", { className: "flex flex-col", "data-testid": "output-statements-cards", children: rows.map((out, idx) => {
|
|
2151
2294
|
const cats = extractMetricsByCategory(out.metrics);
|
|
2295
|
+
if (cats.efforts.length === 0) {
|
|
2296
|
+
const resolved = resolveOutputRowLabel(out);
|
|
2297
|
+
const genericType = formatOutputTypeLabel(out.outputType);
|
|
2298
|
+
if (resolved && resolved !== genericType) {
|
|
2299
|
+
cats.efforts.push({ type: "label", value: resolved, image: resolved, origin: "runtime" });
|
|
2300
|
+
}
|
|
2301
|
+
}
|
|
2152
2302
|
const started = out.timeSpan?.started;
|
|
2153
|
-
const
|
|
2154
|
-
const elapsedStr =
|
|
2155
|
-
const offsetStr = started !== void 0 && t0 !== void 0 ?
|
|
2303
|
+
const durationMs = resolveRowDurationMs(out);
|
|
2304
|
+
const elapsedStr = durationMs !== void 0 ? formatMMSS(durationMs) : "running";
|
|
2305
|
+
const offsetStr = started !== void 0 && t0 !== void 0 ? formatOffsetMMSS(started - t0) : "+00:00";
|
|
2156
2306
|
const typeKey = String(out.outputType);
|
|
2157
|
-
const typeLabel =
|
|
2158
|
-
const rowTitle = formatOutputRowTitle(out
|
|
2307
|
+
const typeLabel = resolveOutputTypeBadgeLabel(out);
|
|
2308
|
+
const rowTitle = formatOutputRowTitle(out, elapsedStr);
|
|
2159
2309
|
const pr = lookupPrHighlight(out, prHighlights);
|
|
2160
2310
|
const bodyMetrics = [...cats.reps, ...cats.loads, ...cats.rounds, ...cats.durations, ...cats.distances];
|
|
2161
2311
|
const hasBody = bodyMetrics.length > 0;
|
|
@@ -2276,7 +2426,7 @@ function OutputStatementsTable({
|
|
|
2276
2426
|
onEditMetric,
|
|
2277
2427
|
prHighlights
|
|
2278
2428
|
}) {
|
|
2279
|
-
const t0 =
|
|
2429
|
+
const t0 = React2.useMemo(() => resolveTimeOrigin(outputs, timeOrigin), [outputs, timeOrigin]);
|
|
2280
2430
|
const [internalSort, setInternalSort] = React2.useState(
|
|
2281
2431
|
controlledSort ? [...controlledSort] : []
|
|
2282
2432
|
);
|
|
@@ -2443,11 +2593,12 @@ function OutputStatementsTable({
|
|
|
2443
2593
|
/* @__PURE__ */ jsxRuntime.jsx("tbody", { className: "divide-y divide-border/40", children: rows.length === 0 ? /* @__PURE__ */ jsxRuntime.jsx("tr", { children: /* @__PURE__ */ jsxRuntime.jsx("td", { colSpan: activeColumns.length, className: "p-8 text-center text-muted-foreground font-sans text-xs", children: outputs.length === 0 ? "No output statements recorded for this run." : "No output statements match the current filter." }) }) : rows.map((out, idx) => {
|
|
2444
2594
|
const started = out.timeSpan?.started;
|
|
2445
2595
|
const ended = out.timeSpan?.ended;
|
|
2446
|
-
const
|
|
2447
|
-
const
|
|
2448
|
-
const
|
|
2449
|
-
const
|
|
2450
|
-
const
|
|
2596
|
+
const durationMs = resolveRowDurationMs(out);
|
|
2597
|
+
const elapsedStr = durationMs !== void 0 ? formatMMSS(durationMs) : "running";
|
|
2598
|
+
const wallTimeStr = ended !== void 0 || started !== void 0 ? formatClockTime(new Date(ended ?? started ?? 0)) : "\u2014";
|
|
2599
|
+
const offsetStr = started !== void 0 && t0 !== void 0 ? formatOffsetMMSS(started - t0) : "+00:00";
|
|
2600
|
+
const typeLabel = resolveOutputTypeBadgeLabel(out);
|
|
2601
|
+
const rowTitle = formatOutputRowTitle(out, elapsedStr);
|
|
2451
2602
|
const rowKey = String(out.id ?? `${out.sourceBlockKey ?? "row"}-${idx}`);
|
|
2452
2603
|
const pr = lookupPrHighlight(out, prHighlights);
|
|
2453
2604
|
const canInlineEditRow = Boolean(onEditMetric) && String(out.outputType ?? "").toLowerCase() === "segment" && Boolean(out.sourceBlockKey);
|
|
@@ -2605,7 +2756,18 @@ function formatPaceMMSS(secPerKm) {
|
|
|
2605
2756
|
const secs = rounded % 60;
|
|
2606
2757
|
return `${mins}:${String(secs).padStart(2, "0")} /km`;
|
|
2607
2758
|
}
|
|
2608
|
-
function
|
|
2759
|
+
function normalizePaceToSecPerKm(value, unit) {
|
|
2760
|
+
if (!Number.isFinite(value) || value <= 0) return null;
|
|
2761
|
+
const u = (unit ?? "").trim().toLowerCase();
|
|
2762
|
+
if (!u || u === "sec/km" || u === "s/km") return value;
|
|
2763
|
+
if (u === "min/km") return value * 60;
|
|
2764
|
+
if (u === "min/mi") return value * 60 / 1.609344;
|
|
2765
|
+
if (u === "sec/mi" || u === "s/mi") return value / 1.609344;
|
|
2766
|
+
if (u === "m/s") return 1e3 / value;
|
|
2767
|
+
if (u === "km/h" || u === "kph") return 3600 / value;
|
|
2768
|
+
return null;
|
|
2769
|
+
}
|
|
2770
|
+
function humanizeSlug2(slug) {
|
|
2609
2771
|
return slug.split(/[-_\s]+/).filter(Boolean).map((p) => p.charAt(0).toUpperCase() + p.slice(1)).join(" ");
|
|
2610
2772
|
}
|
|
2611
2773
|
function normalizePrLookup(prHighlights) {
|
|
@@ -2657,25 +2819,7 @@ function extractVisibleMetrics(row) {
|
|
|
2657
2819
|
}
|
|
2658
2820
|
function buildSpreadsheetRows(run, prHighlights) {
|
|
2659
2821
|
const prMap = normalizePrLookup(prHighlights);
|
|
2660
|
-
const
|
|
2661
|
-
if (e.outputType !== "segment") return false;
|
|
2662
|
-
const key = String(e.sourceBlockKey ?? "").toLowerCase();
|
|
2663
|
-
return !key.startsWith("waiting-to-start") && key !== "session-root" && key !== "root";
|
|
2664
|
-
});
|
|
2665
|
-
const maxStackLevel = rawSegments.reduce((max, e) => Math.max(max, e.stackLevel ?? 0), 0);
|
|
2666
|
-
const hasEffortLeaves = rawSegments.some((e) => {
|
|
2667
|
-
const metrics = extractVisibleMetrics(e);
|
|
2668
|
-
return Boolean(e.effortSlug) || metrics.some((m) => String(m.type ?? "").toLowerCase() === "effort");
|
|
2669
|
-
});
|
|
2670
|
-
const segmentEvents = hasEffortLeaves ? rawSegments.filter((e) => {
|
|
2671
|
-
if ((e.stackLevel ?? 0) >= maxStackLevel) return true;
|
|
2672
|
-
const metrics = extractVisibleMetrics(e);
|
|
2673
|
-
const hasMovement = Boolean(e.effortSlug) || metrics.some((m) => {
|
|
2674
|
-
const t = String(m.type ?? "").toLowerCase();
|
|
2675
|
-
return t === "effort" || t === "rep" || t === "reps" || t === "distance";
|
|
2676
|
-
});
|
|
2677
|
-
return hasMovement;
|
|
2678
|
-
}) : rawSegments;
|
|
2822
|
+
const segmentEvents = wodWikiWql.selectSplitSegmentEvents(run.events ?? []);
|
|
2679
2823
|
const sessionStart = segmentEvents.reduce(
|
|
2680
2824
|
(min, e) => e.timeSpan?.started !== void 0 ? Math.min(min, e.timeSpan.started) : min,
|
|
2681
2825
|
run.timestamp
|
|
@@ -2714,7 +2858,7 @@ function buildSpreadsheetRows(run, prHighlights) {
|
|
|
2714
2858
|
if (lower === "effort" || canon === "effort") {
|
|
2715
2859
|
const slugVal = typeof m.metadata?.effortSlug === "string" ? String(m.metadata.effortSlug) : typeof m.value === "string" ? m.value : "";
|
|
2716
2860
|
if (!effortSlug && slugVal) effortSlug = slugVal;
|
|
2717
|
-
movement = String(m.image ?? (slugVal ?
|
|
2861
|
+
movement = String(m.image ?? (slugVal ? humanizeSlug2(slugVal) : m.value ?? "")).trim();
|
|
2718
2862
|
continue;
|
|
2719
2863
|
}
|
|
2720
2864
|
if (typeof m.value !== "number" || !Number.isFinite(m.value)) continue;
|
|
@@ -2764,13 +2908,20 @@ function buildSpreadsheetRows(run, prHighlights) {
|
|
|
2764
2908
|
power = m.value;
|
|
2765
2909
|
if (m.unit) powerUnit = m.unit;
|
|
2766
2910
|
} else if (canon === "pace") {
|
|
2767
|
-
|
|
2911
|
+
const normalized = normalizePaceToSecPerKm(m.value, m.unit);
|
|
2912
|
+
if (normalized !== null) {
|
|
2913
|
+
const u = (m.unit ?? "").trim().toLowerCase();
|
|
2914
|
+
const isExplicitPace = !u || u === "min/km" || u === "sec/km" || u === "s/km" || u === "min/mi" || u === "sec/mi" || u === "s/mi";
|
|
2915
|
+
if (paceSecPerKm === null || isExplicitPace || isUser) {
|
|
2916
|
+
paceSecPerKm = normalized;
|
|
2917
|
+
}
|
|
2918
|
+
}
|
|
2768
2919
|
} else if (canon === "rounds" || canon === "currentround" || lower === "current-round") {
|
|
2769
2920
|
round = Math.round(m.value);
|
|
2770
2921
|
} else if (!KNOWN_CANONICAL_KEYS.has(canon) && !KNOWN_CANONICAL_KEYS.has(lower)) {
|
|
2771
2922
|
const key = canon || lower;
|
|
2772
2923
|
custom[key] = {
|
|
2773
|
-
label:
|
|
2924
|
+
label: humanizeSlug2(mType),
|
|
2774
2925
|
value: m.value,
|
|
2775
2926
|
...m.unit ? { unit: m.unit } : {},
|
|
2776
2927
|
modified: isUser
|
|
@@ -2778,7 +2929,7 @@ function buildSpreadsheetRows(run, prHighlights) {
|
|
|
2778
2929
|
}
|
|
2779
2930
|
}
|
|
2780
2931
|
if (!movement) {
|
|
2781
|
-
movement = effortSlug ?
|
|
2932
|
+
movement = effortSlug ? humanizeSlug2(effortSlug) : `Split ${index + 1}`;
|
|
2782
2933
|
}
|
|
2783
2934
|
if (splitSec === null && ev.timeSpan?.started !== void 0 && ev.timeSpan?.ended !== void 0) {
|
|
2784
2935
|
splitSec = Math.max(0, (ev.timeSpan.ended - ev.timeSpan.started) / 1e3);
|
|
@@ -3921,27 +4072,42 @@ function ResultsSpreadsheetGrid({
|
|
|
3921
4072
|
);
|
|
3922
4073
|
}) })
|
|
3923
4074
|
] }) }),
|
|
3924
|
-
activeTab === "raw" &&
|
|
3925
|
-
|
|
3926
|
-
|
|
3927
|
-
|
|
3928
|
-
|
|
3929
|
-
|
|
3930
|
-
|
|
4075
|
+
activeTab === "raw" && (() => {
|
|
4076
|
+
const events = run.events ?? [];
|
|
4077
|
+
let activeMinStart;
|
|
4078
|
+
let anyMinStart;
|
|
4079
|
+
for (const e of events) {
|
|
4080
|
+
const s = e.timeSpan?.started;
|
|
4081
|
+
if (typeof s !== "number" || !Number.isFinite(s)) continue;
|
|
4082
|
+
anyMinStart = anyMinStart === void 0 ? s : Math.min(anyMinStart, s);
|
|
4083
|
+
const key = String(e.sourceBlockKey ?? "").toLowerCase();
|
|
4084
|
+
if (e.outputType === "segment" && !key.startsWith("waiting-to-start")) {
|
|
4085
|
+
activeMinStart = activeMinStart === void 0 ? s : Math.min(activeMinStart, s);
|
|
3931
4086
|
}
|
|
3932
|
-
|
|
3933
|
-
|
|
3934
|
-
|
|
3935
|
-
|
|
3936
|
-
|
|
3937
|
-
|
|
3938
|
-
|
|
3939
|
-
|
|
3940
|
-
|
|
3941
|
-
|
|
3942
|
-
|
|
3943
|
-
|
|
3944
|
-
|
|
4087
|
+
}
|
|
4088
|
+
const rawTimeOrigin = activeMinStart ?? anyMinStart ?? run.timestamp;
|
|
4089
|
+
return /* @__PURE__ */ jsxRuntime.jsxs("div", { "data-testid": "results-tab-panel-raw", className: "space-y-2.5", children: [
|
|
4090
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
4091
|
+
OutputFilterPills,
|
|
4092
|
+
{
|
|
4093
|
+
presets: DEFAULT_OUTPUT_FILTERS.map(normalizeOutputFilter),
|
|
4094
|
+
filter: rawFilter,
|
|
4095
|
+
onChange: setRawFilter
|
|
4096
|
+
}
|
|
4097
|
+
),
|
|
4098
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
4099
|
+
OutputStatementsTable,
|
|
4100
|
+
{
|
|
4101
|
+
outputs: events,
|
|
4102
|
+
filter: rawFilter,
|
|
4103
|
+
timeOrigin: rawTimeOrigin,
|
|
4104
|
+
onClearFilter: () => setRawFilter(""),
|
|
4105
|
+
onEditMetric: onEditMetric ? (p) => onEditMetric(run.resultId, p) : void 0,
|
|
4106
|
+
prHighlights
|
|
4107
|
+
}
|
|
4108
|
+
)
|
|
4109
|
+
] });
|
|
4110
|
+
})(),
|
|
3945
4111
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
3946
4112
|
EditorDialog,
|
|
3947
4113
|
{
|
|
@@ -13612,6 +13778,26 @@ function createCloseIcon(size = "md") {
|
|
|
13612
13778
|
function isAliasProperty(key) {
|
|
13613
13779
|
return ["alias", "aliases"].includes(key.trim().toLowerCase());
|
|
13614
13780
|
}
|
|
13781
|
+
function isSelfReferenceHref(docKind, meta, matchSlug, href, referenceProvider) {
|
|
13782
|
+
const normMatch = matchSlug.trim().toLowerCase();
|
|
13783
|
+
if (meta) {
|
|
13784
|
+
const metaSlug = typeof meta.slug === "string" ? meta.slug.trim().toLowerCase() : "";
|
|
13785
|
+
if (metaSlug && metaSlug === normMatch) return true;
|
|
13786
|
+
if (docKind === "effort" || docKind === "equipment") {
|
|
13787
|
+
const ownName = typeof meta.label === "string" && meta.label.trim() || typeof meta.title === "string" && meta.title.trim() || "";
|
|
13788
|
+
if (ownName) {
|
|
13789
|
+
const ownMatch = docKind === "effort" ? referenceProvider.resolveEffort(ownName) : referenceProvider.resolveEquipment(ownName);
|
|
13790
|
+
if (ownMatch && ownMatch.slug.trim().toLowerCase() === normMatch) return true;
|
|
13791
|
+
}
|
|
13792
|
+
}
|
|
13793
|
+
}
|
|
13794
|
+
if (typeof window !== "undefined" && window.location?.pathname) {
|
|
13795
|
+
const currentPath = window.location.pathname.replace(/\/+$/, "");
|
|
13796
|
+
const targetPath = href.split(/[?#]/)[0].replace(/\/+$/, "");
|
|
13797
|
+
if (currentPath && targetPath && currentPath === targetPath) return true;
|
|
13798
|
+
}
|
|
13799
|
+
return false;
|
|
13800
|
+
}
|
|
13615
13801
|
function createSummaryPill(value, hash2, href) {
|
|
13616
13802
|
const pill = document.createElement("span");
|
|
13617
13803
|
pill.className = "inline-flex max-w-full items-center rounded-md border border-border/60 bg-muted/40 px-2 py-0.5 text-xs text-foreground";
|
|
@@ -13630,7 +13816,7 @@ function createSummaryPill(value, hash2, href) {
|
|
|
13630
13816
|
pill.appendChild(label);
|
|
13631
13817
|
return pill;
|
|
13632
13818
|
}
|
|
13633
|
-
function createFrontmatterSummary(entries, onShowDetails, docKind, referenceProvider) {
|
|
13819
|
+
function createFrontmatterSummary(entries, onShowDetails, docKind, referenceProvider, meta) {
|
|
13634
13820
|
const summary = document.createElement("div");
|
|
13635
13821
|
summary.dataset.frontmatterSummary = "true";
|
|
13636
13822
|
summary.className = "divide-y divide-border/60";
|
|
@@ -13656,10 +13842,11 @@ function createFrontmatterSummary(entries, onShowDetails, docKind, referenceProv
|
|
|
13656
13842
|
const lower = val.toLowerCase();
|
|
13657
13843
|
if (seenTags.has(lower)) continue;
|
|
13658
13844
|
seenTags.add(lower);
|
|
13845
|
+
const match = referenceProvider?.resolveTag?.(val, normKey) ?? null;
|
|
13659
13846
|
tagItems.push({
|
|
13660
13847
|
text: val,
|
|
13661
13848
|
hash: true,
|
|
13662
|
-
href: referenceProvider
|
|
13849
|
+
href: match && referenceProvider ? referenceProvider.openHref("tag", match.slug, match.type ?? normKey) : void 0
|
|
13663
13850
|
});
|
|
13664
13851
|
}
|
|
13665
13852
|
}
|
|
@@ -13709,7 +13896,12 @@ function createFrontmatterSummary(entries, onShowDetails, docKind, referenceProv
|
|
|
13709
13896
|
let href;
|
|
13710
13897
|
if (referenceProvider && (docKind === "effort" || docKind === "equipment")) {
|
|
13711
13898
|
const match = docKind === "effort" ? referenceProvider.resolveEffort(val) : referenceProvider.resolveEquipment(val);
|
|
13712
|
-
if (match)
|
|
13899
|
+
if (match) {
|
|
13900
|
+
const candidateHref = referenceProvider.openHref(docKind, match.slug);
|
|
13901
|
+
if (!isSelfReferenceHref(docKind, meta, match.slug, candidateHref, referenceProvider)) {
|
|
13902
|
+
href = candidateHref;
|
|
13903
|
+
}
|
|
13904
|
+
}
|
|
13713
13905
|
}
|
|
13714
13906
|
aliasItems.push({ text: val, hash: false, href });
|
|
13715
13907
|
}
|
|
@@ -13837,7 +14029,7 @@ var DefaultFrontmatterWidget = class extends view.WidgetType {
|
|
|
13837
14029
|
persistedDetailed.set(view.dom, true);
|
|
13838
14030
|
view.dispatch({ effects: setFrontmatterDetailed.of(true) });
|
|
13839
14031
|
view.dom.querySelector('[aria-label="Show property summary"]')?.focus();
|
|
13840
|
-
}, docKind, referenceProvider));
|
|
14032
|
+
}, docKind, referenceProvider, meta));
|
|
13841
14033
|
} else {
|
|
13842
14034
|
box.appendChild(createColumnHeader());
|
|
13843
14035
|
if (entries.length === 0) {
|
|
@@ -13994,9 +14186,11 @@ var DefaultFrontmatterWidget = class extends view.WidgetType {
|
|
|
13994
14186
|
const pill = document.createElement("span");
|
|
13995
14187
|
pill.className = match ? "group/pill inline-flex items-center gap-1 px-2 py-0.5 rounded-full text-xs font-medium bg-muted/50 text-foreground border border-border/60" : chipIsReference ? "group/pill inline-flex items-center gap-1 px-2 py-0.5 rounded-full text-xs font-medium bg-destructive/10 text-destructive border border-destructive/30" : "group/pill inline-flex items-center gap-1 px-2 py-0.5 rounded-full text-xs font-medium bg-muted/40 text-foreground/90 border border-border/60";
|
|
13996
14188
|
const pillText = document.createElement("span");
|
|
13997
|
-
|
|
14189
|
+
const aliasHref = isAliasRow && match && referenceProvider ? referenceProvider.openHref(valueKind, match.slug) : void 0;
|
|
14190
|
+
const isSelfAlias = isAliasRow && match && referenceProvider && aliasHref ? isSelfReferenceHref(docKind, meta, match.slug, aliasHref, referenceProvider) : false;
|
|
14191
|
+
if (isAliasRow && match && referenceProvider && aliasHref && !isSelfAlias) {
|
|
13998
14192
|
const aliasLink = document.createElement("a");
|
|
13999
|
-
aliasLink.href =
|
|
14193
|
+
aliasLink.href = aliasHref;
|
|
14000
14194
|
aliasLink.textContent = chip;
|
|
14001
14195
|
aliasLink.className = "hover:underline cursor-pointer";
|
|
14002
14196
|
pillText.appendChild(aliasLink);
|
|
@@ -14004,7 +14198,7 @@ var DefaultFrontmatterWidget = class extends view.WidgetType {
|
|
|
14004
14198
|
pillText.textContent = isAliasRow ? chip : match ? match.label : chip;
|
|
14005
14199
|
}
|
|
14006
14200
|
pill.appendChild(pillText);
|
|
14007
|
-
if (match && referenceProvider && (!isAliasRow || idx === 0)) {
|
|
14201
|
+
if (match && referenceProvider && (!isAliasRow || idx === 0 && !isSelfAlias)) {
|
|
14008
14202
|
const openLink = document.createElement("a");
|
|
14009
14203
|
openLink.href = referenceProvider.openHref(valueKind, match.slug);
|
|
14010
14204
|
openLink.title = `Open ${match.label} page`;
|
|
@@ -22654,13 +22848,13 @@ function editorPreset(optionsOrDialect = "markdown") {
|
|
|
22654
22848
|
}
|
|
22655
22849
|
|
|
22656
22850
|
// src/version.ts
|
|
22657
|
-
var VERSION = "0.62.
|
|
22658
|
-
var GIT_SHA = "
|
|
22659
|
-
var BUILD_TIME = "2026-11-
|
|
22851
|
+
var VERSION = "0.62.2263";
|
|
22852
|
+
var GIT_SHA = "fd25940";
|
|
22853
|
+
var BUILD_TIME = "2026-11-23T19:21:39.932Z";
|
|
22660
22854
|
var SEMVER = {
|
|
22661
|
-
version: "0.62.
|
|
22662
|
-
gitSha: "
|
|
22663
|
-
buildTime: "2026-11-
|
|
22855
|
+
version: "0.62.2263",
|
|
22856
|
+
gitSha: "fd25940",
|
|
22857
|
+
buildTime: "2026-11-23T19:21:39.932Z"
|
|
22664
22858
|
};
|
|
22665
22859
|
|
|
22666
22860
|
Object.defineProperty(exports, "CONTENT_GROUPING_DIMENSIONS", {
|