@bitcobblers/wod-wiki-ui 0.62.2262 → 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-SDIPYD4U.mjs → chunk-QGB3HYJU.mjs} +247 -72
- package/dist/chunk-QGB3HYJU.mjs.map +1 -0
- package/dist/extensions/index.cjs +244 -69
- 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-BL555pPw.d.cts → index-Bwtlo6Cj.d.cts} +4 -0
- package/dist/{index-BL555pPw.d.ts → index-Bwtlo6Cj.d.ts} +4 -0
- package/dist/index.cjs +250 -75
- 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-SDIPYD4U.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
|
|
@@ -475,6 +475,10 @@ interface OutputStatementRow {
|
|
|
475
475
|
readonly id?: number | string;
|
|
476
476
|
readonly grain?: string;
|
|
477
477
|
readonly outputType?: string;
|
|
478
|
+
readonly effortSlug?: string;
|
|
479
|
+
readonly label?: string;
|
|
480
|
+
readonly statement?: string;
|
|
481
|
+
readonly text?: string;
|
|
478
482
|
readonly timeSpan?: {
|
|
479
483
|
started: number;
|
|
480
484
|
ended?: number;
|
|
@@ -475,6 +475,10 @@ interface OutputStatementRow {
|
|
|
475
475
|
readonly id?: number | string;
|
|
476
476
|
readonly grain?: string;
|
|
477
477
|
readonly outputType?: string;
|
|
478
|
+
readonly effortSlug?: string;
|
|
479
|
+
readonly label?: string;
|
|
480
|
+
readonly statement?: string;
|
|
481
|
+
readonly text?: string;
|
|
478
482
|
readonly timeSpan?: {
|
|
479
483
|
started: number;
|
|
480
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);
|
|
@@ -2616,7 +2767,7 @@ function normalizePaceToSecPerKm(value, unit) {
|
|
|
2616
2767
|
if (u === "km/h" || u === "kph") return 3600 / value;
|
|
2617
2768
|
return null;
|
|
2618
2769
|
}
|
|
2619
|
-
function
|
|
2770
|
+
function humanizeSlug2(slug) {
|
|
2620
2771
|
return slug.split(/[-_\s]+/).filter(Boolean).map((p) => p.charAt(0).toUpperCase() + p.slice(1)).join(" ");
|
|
2621
2772
|
}
|
|
2622
2773
|
function normalizePrLookup(prHighlights) {
|
|
@@ -2668,25 +2819,7 @@ function extractVisibleMetrics(row) {
|
|
|
2668
2819
|
}
|
|
2669
2820
|
function buildSpreadsheetRows(run, prHighlights) {
|
|
2670
2821
|
const prMap = normalizePrLookup(prHighlights);
|
|
2671
|
-
const
|
|
2672
|
-
if (e.outputType !== "segment") return false;
|
|
2673
|
-
const key = String(e.sourceBlockKey ?? "").toLowerCase();
|
|
2674
|
-
return !key.startsWith("waiting-to-start") && key !== "session-root" && key !== "root";
|
|
2675
|
-
});
|
|
2676
|
-
const maxStackLevel = rawSegments.reduce((max, e) => Math.max(max, e.stackLevel ?? 0), 0);
|
|
2677
|
-
const hasEffortLeaves = rawSegments.some((e) => {
|
|
2678
|
-
const metrics = extractVisibleMetrics(e);
|
|
2679
|
-
return Boolean(e.effortSlug) || metrics.some((m) => String(m.type ?? "").toLowerCase() === "effort");
|
|
2680
|
-
});
|
|
2681
|
-
const segmentEvents = hasEffortLeaves ? rawSegments.filter((e) => {
|
|
2682
|
-
if ((e.stackLevel ?? 0) >= maxStackLevel) return true;
|
|
2683
|
-
const metrics = extractVisibleMetrics(e);
|
|
2684
|
-
const hasMovement = Boolean(e.effortSlug) || metrics.some((m) => {
|
|
2685
|
-
const t = String(m.type ?? "").toLowerCase();
|
|
2686
|
-
return t === "effort" || t === "rep" || t === "reps" || t === "distance";
|
|
2687
|
-
});
|
|
2688
|
-
return hasMovement;
|
|
2689
|
-
}) : rawSegments;
|
|
2822
|
+
const segmentEvents = wodWikiWql.selectSplitSegmentEvents(run.events ?? []);
|
|
2690
2823
|
const sessionStart = segmentEvents.reduce(
|
|
2691
2824
|
(min, e) => e.timeSpan?.started !== void 0 ? Math.min(min, e.timeSpan.started) : min,
|
|
2692
2825
|
run.timestamp
|
|
@@ -2725,7 +2858,7 @@ function buildSpreadsheetRows(run, prHighlights) {
|
|
|
2725
2858
|
if (lower === "effort" || canon === "effort") {
|
|
2726
2859
|
const slugVal = typeof m.metadata?.effortSlug === "string" ? String(m.metadata.effortSlug) : typeof m.value === "string" ? m.value : "";
|
|
2727
2860
|
if (!effortSlug && slugVal) effortSlug = slugVal;
|
|
2728
|
-
movement = String(m.image ?? (slugVal ?
|
|
2861
|
+
movement = String(m.image ?? (slugVal ? humanizeSlug2(slugVal) : m.value ?? "")).trim();
|
|
2729
2862
|
continue;
|
|
2730
2863
|
}
|
|
2731
2864
|
if (typeof m.value !== "number" || !Number.isFinite(m.value)) continue;
|
|
@@ -2788,7 +2921,7 @@ function buildSpreadsheetRows(run, prHighlights) {
|
|
|
2788
2921
|
} else if (!KNOWN_CANONICAL_KEYS.has(canon) && !KNOWN_CANONICAL_KEYS.has(lower)) {
|
|
2789
2922
|
const key = canon || lower;
|
|
2790
2923
|
custom[key] = {
|
|
2791
|
-
label:
|
|
2924
|
+
label: humanizeSlug2(mType),
|
|
2792
2925
|
value: m.value,
|
|
2793
2926
|
...m.unit ? { unit: m.unit } : {},
|
|
2794
2927
|
modified: isUser
|
|
@@ -2796,7 +2929,7 @@ function buildSpreadsheetRows(run, prHighlights) {
|
|
|
2796
2929
|
}
|
|
2797
2930
|
}
|
|
2798
2931
|
if (!movement) {
|
|
2799
|
-
movement = effortSlug ?
|
|
2932
|
+
movement = effortSlug ? humanizeSlug2(effortSlug) : `Split ${index + 1}`;
|
|
2800
2933
|
}
|
|
2801
2934
|
if (splitSec === null && ev.timeSpan?.started !== void 0 && ev.timeSpan?.ended !== void 0) {
|
|
2802
2935
|
splitSec = Math.max(0, (ev.timeSpan.ended - ev.timeSpan.started) / 1e3);
|
|
@@ -3939,27 +4072,42 @@ function ResultsSpreadsheetGrid({
|
|
|
3939
4072
|
);
|
|
3940
4073
|
}) })
|
|
3941
4074
|
] }) }),
|
|
3942
|
-
activeTab === "raw" &&
|
|
3943
|
-
|
|
3944
|
-
|
|
3945
|
-
|
|
3946
|
-
|
|
3947
|
-
|
|
3948
|
-
|
|
3949
|
-
|
|
3950
|
-
|
|
3951
|
-
|
|
3952
|
-
|
|
3953
|
-
{
|
|
3954
|
-
outputs: run.events,
|
|
3955
|
-
filter: rawFilter,
|
|
3956
|
-
timeOrigin: run.timestamp,
|
|
3957
|
-
onClearFilter: () => setRawFilter(""),
|
|
3958
|
-
onEditMetric: onEditMetric ? (p) => onEditMetric(run.resultId, p) : void 0,
|
|
3959
|
-
prHighlights
|
|
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);
|
|
3960
4086
|
}
|
|
3961
|
-
|
|
3962
|
-
|
|
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
|
+
})(),
|
|
3963
4111
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
3964
4112
|
EditorDialog,
|
|
3965
4113
|
{
|
|
@@ -13630,6 +13778,26 @@ function createCloseIcon(size = "md") {
|
|
|
13630
13778
|
function isAliasProperty(key) {
|
|
13631
13779
|
return ["alias", "aliases"].includes(key.trim().toLowerCase());
|
|
13632
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
|
+
}
|
|
13633
13801
|
function createSummaryPill(value, hash2, href) {
|
|
13634
13802
|
const pill = document.createElement("span");
|
|
13635
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";
|
|
@@ -13648,7 +13816,7 @@ function createSummaryPill(value, hash2, href) {
|
|
|
13648
13816
|
pill.appendChild(label);
|
|
13649
13817
|
return pill;
|
|
13650
13818
|
}
|
|
13651
|
-
function createFrontmatterSummary(entries, onShowDetails, docKind, referenceProvider) {
|
|
13819
|
+
function createFrontmatterSummary(entries, onShowDetails, docKind, referenceProvider, meta) {
|
|
13652
13820
|
const summary = document.createElement("div");
|
|
13653
13821
|
summary.dataset.frontmatterSummary = "true";
|
|
13654
13822
|
summary.className = "divide-y divide-border/60";
|
|
@@ -13728,7 +13896,12 @@ function createFrontmatterSummary(entries, onShowDetails, docKind, referenceProv
|
|
|
13728
13896
|
let href;
|
|
13729
13897
|
if (referenceProvider && (docKind === "effort" || docKind === "equipment")) {
|
|
13730
13898
|
const match = docKind === "effort" ? referenceProvider.resolveEffort(val) : referenceProvider.resolveEquipment(val);
|
|
13731
|
-
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
|
+
}
|
|
13732
13905
|
}
|
|
13733
13906
|
aliasItems.push({ text: val, hash: false, href });
|
|
13734
13907
|
}
|
|
@@ -13856,7 +14029,7 @@ var DefaultFrontmatterWidget = class extends view.WidgetType {
|
|
|
13856
14029
|
persistedDetailed.set(view.dom, true);
|
|
13857
14030
|
view.dispatch({ effects: setFrontmatterDetailed.of(true) });
|
|
13858
14031
|
view.dom.querySelector('[aria-label="Show property summary"]')?.focus();
|
|
13859
|
-
}, docKind, referenceProvider));
|
|
14032
|
+
}, docKind, referenceProvider, meta));
|
|
13860
14033
|
} else {
|
|
13861
14034
|
box.appendChild(createColumnHeader());
|
|
13862
14035
|
if (entries.length === 0) {
|
|
@@ -14013,9 +14186,11 @@ var DefaultFrontmatterWidget = class extends view.WidgetType {
|
|
|
14013
14186
|
const pill = document.createElement("span");
|
|
14014
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";
|
|
14015
14188
|
const pillText = document.createElement("span");
|
|
14016
|
-
|
|
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) {
|
|
14017
14192
|
const aliasLink = document.createElement("a");
|
|
14018
|
-
aliasLink.href =
|
|
14193
|
+
aliasLink.href = aliasHref;
|
|
14019
14194
|
aliasLink.textContent = chip;
|
|
14020
14195
|
aliasLink.className = "hover:underline cursor-pointer";
|
|
14021
14196
|
pillText.appendChild(aliasLink);
|
|
@@ -14023,7 +14198,7 @@ var DefaultFrontmatterWidget = class extends view.WidgetType {
|
|
|
14023
14198
|
pillText.textContent = isAliasRow ? chip : match ? match.label : chip;
|
|
14024
14199
|
}
|
|
14025
14200
|
pill.appendChild(pillText);
|
|
14026
|
-
if (match && referenceProvider && (!isAliasRow || idx === 0)) {
|
|
14201
|
+
if (match && referenceProvider && (!isAliasRow || idx === 0 && !isSelfAlias)) {
|
|
14027
14202
|
const openLink = document.createElement("a");
|
|
14028
14203
|
openLink.href = referenceProvider.openHref(valueKind, match.slug);
|
|
14029
14204
|
openLink.title = `Open ${match.label} page`;
|
|
@@ -22673,13 +22848,13 @@ function editorPreset(optionsOrDialect = "markdown") {
|
|
|
22673
22848
|
}
|
|
22674
22849
|
|
|
22675
22850
|
// src/version.ts
|
|
22676
|
-
var VERSION = "0.62.
|
|
22677
|
-
var GIT_SHA = "
|
|
22678
|
-
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";
|
|
22679
22854
|
var SEMVER = {
|
|
22680
|
-
version: "0.62.
|
|
22681
|
-
gitSha: "
|
|
22682
|
-
buildTime: "2026-11-
|
|
22855
|
+
version: "0.62.2263",
|
|
22856
|
+
gitSha: "fd25940",
|
|
22857
|
+
buildTime: "2026-11-23T19:21:39.932Z"
|
|
22683
22858
|
};
|
|
22684
22859
|
|
|
22685
22860
|
Object.defineProperty(exports, "CONTENT_GROUPING_DIMENSIONS", {
|