@bitcobblers/wod-wiki-ui 0.60.2250 → 0.60.2258
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-GP26UA75.mjs → chunk-MANL5TO4.mjs} +5635 -2444
- package/dist/chunk-MANL5TO4.mjs.map +1 -0
- package/dist/extensions/index.cjs +5252 -2120
- 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-C3DEUF-0.d.cts → index--dnlfHhC.d.cts} +60 -5
- package/dist/{index-C3DEUF-0.d.ts → index--dnlfHhC.d.ts} +60 -5
- package/dist/index.cjs +6509 -3294
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +388 -105
- package/dist/index.d.ts +388 -105
- package/dist/index.mjs +26 -18
- package/dist/index.mjs.map +1 -1
- package/dist/primitives/index.cjs +1 -1
- package/dist/primitives/index.cjs.map +1 -1
- package/dist/primitives/index.mjs +1 -1
- package/dist/primitives/index.mjs.map +1 -1
- package/dist/styles.css +17 -3
- package/package.json +4 -4
- package/dist/chunk-GP26UA75.mjs.map +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { A as AttachmentUrlResolver, B as ButtonAction,
|
|
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 activeCursorSection, a0 as addRuntimePanel, a1 as affiliateTagFacet, a2 as applyAmazonAffiliateTag, a3 as attachmentUrlFacet, a4 as autocompleteTooltipTheme, a5 as configureOverlayActions, a6 as cursorFocusExtension, a7 as customCompletionSources, a8 as dispatchAddRuntimePanel, a9 as dispatchExpandRuntimePanel, aa as dispatchGutterHighlights, ab as dispatchRemoveRuntimePanel, ac as editingQuerySectionsField, ad as editingWidgetsField, ae as editorFocusField, af as editorFocusTracker, ag as editorPreset, ah as editorTheme, ai as embedPreviewDecorations, aj as expandRuntimePanel, al as fenceCompletion, am as findQueryBlockSection, an as findWorkoutErrors, ao as forceSectionParse, as as frontmatterDebugMode, at as frontmatterDetailed, au as frontmatterKeymap, av as frontmatterPreview, aw as frontmatterPreviewField, ax as frontmatterReferenceIndex, ay as frontmatterSource, az as frontmatterSuggestions, aA as frontmatterVisibility, aB as getCursorFocusState, aC as getOverlayActions, aD as gutterHighlightsField, aE as gutterUnified, aF as handleFenceAutoWrap, aG as handleSmartUrlPaste, aH as inlineButtonDecoration, aI as insertMarkdownLinkCommand, aJ as isAmazonRetailHost, aK as isEditorFocused, aL as isInternalFrontmatterKey, aM as isNavigableUrl, aN as lineIdsExtension, aO as linkOpen, aP as linkPreview, aQ as markdownSyntaxHiding, aR as markdownTablePreview, aS as navigationFacet, aT as nestedCompletion, aU as nestedCompletionOptions, aX as previewDecorations, aY as queryBlockPreview, aZ as referenceIndexReload, a_ as registeredSectionWidgets, a$ as removeRuntimePanel, b0 as resolveCodeLanguage, b1 as runtimePanelField, b2 as saveBlockQuerySource, b3 as sectionAtPos, b4 as sectionField, b5 as sectionGeometry, b6 as sectionIdentity, b7 as sectionIdentityHistory, b8 as sectionMove, b9 as sectionRestore, ba as sectionSaved, bb as sessionQueryFence, bc as sessionQueryInsert, bd as sessionQueryWql, be as setEditorFocused, bf as setFrontmatterDetailed, bg as setFrontmatterSource, bh as setGutterHighlights, bi as setQuerySourceEditing, bj as slashBlockCompletion, bk as smartIncrement, bl as toggleInlineMarkdown, bm as toggleWidgetEdit, bn as urlAtPos, bo as widgetBlockPreview, bp as wodAutoWrap, bq as wodAutocompletion, br as wodCompletionSource, bs as wodEditorKeymap, bt as wodLinter, bu as wodOverlayPanel, bv as workoutLintSource, bw as wrapInTimeFence } from '../index--dnlfHhC.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,
|
|
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 activeCursorSection, a0 as addRuntimePanel, a1 as affiliateTagFacet, a2 as applyAmazonAffiliateTag, a3 as attachmentUrlFacet, a4 as autocompleteTooltipTheme, a5 as configureOverlayActions, a6 as cursorFocusExtension, a7 as customCompletionSources, a8 as dispatchAddRuntimePanel, a9 as dispatchExpandRuntimePanel, aa as dispatchGutterHighlights, ab as dispatchRemoveRuntimePanel, ac as editingQuerySectionsField, ad as editingWidgetsField, ae as editorFocusField, af as editorFocusTracker, ag as editorPreset, ah as editorTheme, ai as embedPreviewDecorations, aj as expandRuntimePanel, al as fenceCompletion, am as findQueryBlockSection, an as findWorkoutErrors, ao as forceSectionParse, as as frontmatterDebugMode, at as frontmatterDetailed, au as frontmatterKeymap, av as frontmatterPreview, aw as frontmatterPreviewField, ax as frontmatterReferenceIndex, ay as frontmatterSource, az as frontmatterSuggestions, aA as frontmatterVisibility, aB as getCursorFocusState, aC as getOverlayActions, aD as gutterHighlightsField, aE as gutterUnified, aF as handleFenceAutoWrap, aG as handleSmartUrlPaste, aH as inlineButtonDecoration, aI as insertMarkdownLinkCommand, aJ as isAmazonRetailHost, aK as isEditorFocused, aL as isInternalFrontmatterKey, aM as isNavigableUrl, aN as lineIdsExtension, aO as linkOpen, aP as linkPreview, aQ as markdownSyntaxHiding, aR as markdownTablePreview, aS as navigationFacet, aT as nestedCompletion, aU as nestedCompletionOptions, aX as previewDecorations, aY as queryBlockPreview, aZ as referenceIndexReload, a_ as registeredSectionWidgets, a$ as removeRuntimePanel, b0 as resolveCodeLanguage, b1 as runtimePanelField, b2 as saveBlockQuerySource, b3 as sectionAtPos, b4 as sectionField, b5 as sectionGeometry, b6 as sectionIdentity, b7 as sectionIdentityHistory, b8 as sectionMove, b9 as sectionRestore, ba as sectionSaved, bb as sessionQueryFence, bc as sessionQueryInsert, bd as sessionQueryWql, be as setEditorFocused, bf as setFrontmatterDetailed, bg as setFrontmatterSource, bh as setGutterHighlights, bi as setQuerySourceEditing, bj as slashBlockCompletion, bk as smartIncrement, bl as toggleInlineMarkdown, bm as toggleWidgetEdit, bn as urlAtPos, bo as widgetBlockPreview, bp as wodAutoWrap, bq as wodAutocompletion, br as wodCompletionSource, bs as wodEditorKeymap, bt as wodLinter, bu as wodOverlayPanel, bv as workoutLintSource, bw as wrapInTimeFence } from '../index--dnlfHhC.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, 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, isAmazonRetailHost, isEditorFocused, isInternalFrontmatterKey, isNavigableUrl, lineIdsExtension, linkOpen, linkPreview, markdownSyntaxHiding, markdownTablePreview, navigationFacet, nestedCompletion, nestedCompletionOptions, previewDecorations, queryBlockPreview, referenceIndexReload, registeredSectionWidgets, removeRuntimePanel, resolveCodeLanguage, runtimePanelField, saveBlockQuerySource, sectionAtPos, sectionField, sectionGeometry, sectionIdentity, sectionIdentityHistory, sectionMove, sectionRestore, sectionSaved, sessionQueryFence, sessionQueryInsert, sessionQueryWql, setEditorFocused, setFrontmatterDetailed, setFrontmatterSource, setGutterHighlights, setQuerySourceEditing, slashBlockCompletion, smartIncrement, toggleInlineMarkdown, toggleWidgetEdit, urlAtPos, widgetBlockPreview, wodAutoWrap, wodAutocompletion, wodCompletionSource, wodEditorKeymap, wodLinter, wodOverlayPanel, workoutLintSource, wrapInTimeFence } from '../chunk-
|
|
1
|
+
export { DefaultFrontmatterWidget, INTERNAL_FRONTMATTER_KEYS, 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, isAmazonRetailHost, isEditorFocused, isInternalFrontmatterKey, isNavigableUrl, lineIdsExtension, linkOpen, linkPreview, markdownSyntaxHiding, markdownTablePreview, navigationFacet, nestedCompletion, nestedCompletionOptions, previewDecorations, queryBlockPreview, referenceIndexReload, registeredSectionWidgets, removeRuntimePanel, resolveCodeLanguage, runtimePanelField, saveBlockQuerySource, sectionAtPos, sectionField, sectionGeometry, sectionIdentity, sectionIdentityHistory, sectionMove, sectionRestore, sectionSaved, sessionQueryFence, sessionQueryInsert, sessionQueryWql, setEditorFocused, setFrontmatterDetailed, setFrontmatterSource, setGutterHighlights, setQuerySourceEditing, slashBlockCompletion, smartIncrement, toggleInlineMarkdown, toggleWidgetEdit, urlAtPos, widgetBlockPreview, wodAutoWrap, wodAutocompletion, wodCompletionSource, wodEditorKeymap, wodLinter, wodOverlayPanel, workoutLintSource, wrapInTimeFence } from '../chunk-MANL5TO4.mjs';
|
|
2
2
|
import '../chunk-U2OQIGSB.mjs';
|
|
3
3
|
//# sourceMappingURL=index.mjs.map
|
|
4
4
|
//# sourceMappingURL=index.mjs.map
|
|
@@ -4,8 +4,8 @@ import { ViewPlugin, DecorationSet, ViewUpdate, EditorView, Decoration, WidgetTy
|
|
|
4
4
|
import { Diagnostic } from '@codemirror/lint';
|
|
5
5
|
import { CompletionContext, CompletionResult } from '@codemirror/autocomplete';
|
|
6
6
|
import { WhiteboardScriptCompletionOptions, MetricPresentationToken } from '@bitcobblers/wod-wiki-lang';
|
|
7
|
-
import { WqlCompletionOptions, QueryOptions, QueryResult, ParsedFindQuery, FindOptions, FindQueryResult, ParsedRowsQuery, RowsQueryResult, ParsedAggregateQuery, PipelineResult, FamilyRunPayload, IFieldCatalog } from '@bitcobblers/wod-wiki-wql';
|
|
8
|
-
import { Section, NoteBlock, ScriptBlock, ICodeStatement, IMetric } from '@bitcobblers/wod-wiki-core';
|
|
7
|
+
import { WqlCompletionOptions, RowsRunSummary, RowsRun, QueryOptions, QueryResult, ParsedFindQuery, FindOptions, FindQueryResult, ParsedRowsQuery, RowsQueryResult, ParsedAggregateQuery, PipelineResult, FamilyRunPayload, IFieldCatalog } from '@bitcobblers/wod-wiki-wql';
|
|
8
|
+
import { Section, NoteBlock, ScriptBlock, ICodeStatement, IMetric, EventRecord, Note } from '@bitcobblers/wod-wiki-core';
|
|
9
9
|
import * as react from 'react';
|
|
10
10
|
import { ReactNode } from 'react';
|
|
11
11
|
import * as _codemirror_language from '@codemirror/language';
|
|
@@ -348,9 +348,12 @@ declare function dispatchAddRuntimePanel(view: EditorView, sectionId: string, bl
|
|
|
348
348
|
declare function dispatchRemoveRuntimePanel(view: EditorView, sectionId: string): void;
|
|
349
349
|
declare function dispatchExpandRuntimePanel(view: EditorView, sectionId: string, expanded: boolean): void;
|
|
350
350
|
|
|
351
|
+
interface SessionQueryFenceOptions {
|
|
352
|
+
view?: 'summary' | 'table';
|
|
353
|
+
}
|
|
351
354
|
declare function sessionQueryWql(resultId: string): string;
|
|
352
|
-
declare function sessionQueryFence(resultId: string): string;
|
|
353
|
-
declare function sessionQueryInsert(state: EditorState, blockId: string, resultId: string): {
|
|
355
|
+
declare function sessionQueryFence(resultId: string, options?: SessionQueryFenceOptions): string;
|
|
356
|
+
declare function sessionQueryInsert(state: EditorState, blockId: string, resultId: string, options?: SessionQueryFenceOptions): {
|
|
354
357
|
from: number;
|
|
355
358
|
insert: string;
|
|
356
359
|
} | null;
|
|
@@ -475,6 +478,52 @@ interface OutputStatementsTableProps {
|
|
|
475
478
|
/** The Session Results surface — Card List below `sm`, dynamic sortable/editable table at `sm` and up. */
|
|
476
479
|
declare function OutputStatementsTable({ outputs, filter, timeOrigin, onClearFilter, columns: explicitColumns, sort: controlledSort, onSortChange, limit, onEditMetric, prHighlights, }: OutputStatementsTableProps): react.JSX.Element;
|
|
477
480
|
|
|
481
|
+
/**
|
|
482
|
+
* Shared payload emitted when the user opens a full session breakdown or
|
|
483
|
+
* promotes a workout into an analytics dashboard from any SessionSummaryCard
|
|
484
|
+
* or ResultsSpreadsheetGrid surface.
|
|
485
|
+
*/
|
|
486
|
+
interface SessionActionContext {
|
|
487
|
+
resultId: string;
|
|
488
|
+
noteId?: string;
|
|
489
|
+
noteTitle?: string;
|
|
490
|
+
blockContentId?: string;
|
|
491
|
+
notebooks?: readonly string[];
|
|
492
|
+
summary?: RowsRunSummary;
|
|
493
|
+
}
|
|
494
|
+
declare function formatSummaryDurationMMSS(ms: number): string;
|
|
495
|
+
interface RpePopoverControlProps {
|
|
496
|
+
rpe: number | null | undefined;
|
|
497
|
+
onChange?: (nextRpe: number) => void | Promise<void>;
|
|
498
|
+
readOnly?: boolean;
|
|
499
|
+
compact?: boolean;
|
|
500
|
+
resultId?: string;
|
|
501
|
+
className?: string;
|
|
502
|
+
}
|
|
503
|
+
/** Accessible 1–10 session effort (RPE) selector popover. */
|
|
504
|
+
declare function RpePopoverControl({ rpe, onChange, readOnly, compact, resultId, className, }: RpePopoverControlProps): react.JSX.Element | null;
|
|
505
|
+
interface SessionSummaryCardProps {
|
|
506
|
+
run: RowsRun;
|
|
507
|
+
prHighlights?: ReadonlyMap<string | number, RowPrHighlight> | Record<string, RowPrHighlight>;
|
|
508
|
+
noteTitle?: string;
|
|
509
|
+
onCaptureRpe?: (resultId: string, rpe: number) => Promise<void> | void;
|
|
510
|
+
onOpenResults?: (ctx: SessionActionContext) => void;
|
|
511
|
+
onAddToDashboard?: (ctx: SessionActionContext) => void;
|
|
512
|
+
onEditSource?: () => void;
|
|
513
|
+
readOnly?: boolean;
|
|
514
|
+
/** Omit outer card border/background when already hosted inside an enclosing shell/frame. */
|
|
515
|
+
bare?: boolean;
|
|
516
|
+
hideDrillActions?: boolean;
|
|
517
|
+
compactMobile?: boolean;
|
|
518
|
+
className?: string;
|
|
519
|
+
}
|
|
520
|
+
/**
|
|
521
|
+
* Shared workout execution summary card backed directly by `RowsRun.summary`
|
|
522
|
+
* (or derived via `computeRowsRunSummary`). Rendered in inline Note previews,
|
|
523
|
+
* `FullscreenTimer` completion, and `summary` dashboard widgets.
|
|
524
|
+
*/
|
|
525
|
+
declare function SessionSummaryCard({ run, prHighlights, noteTitle: noteTitleProp, onCaptureRpe, onOpenResults, onAddToDashboard, onEditSource, readOnly, bare, hideDrillActions, compactMobile, className, }: SessionSummaryCardProps): react.JSX.Element;
|
|
526
|
+
|
|
478
527
|
interface QueryExecutor {
|
|
479
528
|
runQuery(query: string, options?: QueryOptions): Promise<QueryResult>;
|
|
480
529
|
runFind(parsed: ParsedFindQuery, options?: FindOptions): Promise<FindQueryResult>;
|
|
@@ -513,6 +562,12 @@ interface QueryBlockPreviewOptions {
|
|
|
513
562
|
title?: string;
|
|
514
563
|
blockContentId?: string;
|
|
515
564
|
}) => string;
|
|
565
|
+
onOpenResults?: (ctx: SessionActionContext) => void;
|
|
566
|
+
onAddToDashboard?: (ctx?: SessionActionContext) => void;
|
|
567
|
+
pageSources?: ReadonlyMap<string, {
|
|
568
|
+
events: EventRecord[];
|
|
569
|
+
notes: Note[];
|
|
570
|
+
}>;
|
|
516
571
|
tokenValues?: Record<string, string>;
|
|
517
572
|
noteId?: string;
|
|
518
573
|
}
|
|
@@ -573,4 +628,4 @@ interface EditorPresetOptions {
|
|
|
573
628
|
}
|
|
574
629
|
declare function editorPreset(optionsOrDialect?: string | EditorPresetOptions): Extension[];
|
|
575
630
|
|
|
576
|
-
export {
|
|
631
|
+
export { activeCursorSection as $, type AttachmentUrlResolver as A, type ButtonAction as B, type CategorizedMetrics as C, DEFAULT_OUTPUT_FILTERS as D, type EditorDialect as E, type FrontmatterCatalogEntry as F, type GeometryListener as G, RpePopoverControl as H, type InlineMetricEditPayload as I, type RpePopoverControlProps as J, type RuntimePanelEntry as K, type SectionIdentity as L, MetricBadge as M, type NavigationHook as N, type OutputFilterInput as O, type SectionRect as P, type QueryExecutor as Q, type RowPrHighlight as R, type SessionActionContext as S, type SectionState as T, type SessionQueryFenceOptions as U, SessionSummaryCard as V, type SessionSummaryCardProps as W, TONE_CLASS as X, type WidgetConfig as Y, type WidgetProps as Z, type WidgetRegistry as _, type SessionTableSortSpec as a, removeRuntimePanel as a$, addRuntimePanel as a0, affiliateTagFacet as a1, applyAmazonAffiliateTag as a2, attachmentUrlFacet as a3, autocompleteTooltipTheme as a4, configureOverlayActions as a5, cursorFocusExtension as a6, customCompletionSources as a7, dispatchAddRuntimePanel as a8, dispatchExpandRuntimePanel as a9, frontmatterVisibility as aA, getCursorFocusState as aB, getOverlayActions as aC, gutterHighlightsField as aD, gutterUnified as aE, handleFenceAutoWrap as aF, handleSmartUrlPaste as aG, inlineButtonDecoration as aH, insertMarkdownLinkCommand as aI, isAmazonRetailHost as aJ, isEditorFocused as aK, isInternalFrontmatterKey as aL, isNavigableUrl as aM, lineIdsExtension as aN, linkOpen as aO, linkPreview as aP, markdownSyntaxHiding as aQ, markdownTablePreview as aR, navigationFacet as aS, nestedCompletion as aT, nestedCompletionOptions as aU, normalizeOutputFilter as aV, presentBadges as aW, previewDecorations as aX, queryBlockPreview as aY, referenceIndexReload as aZ, registeredSectionWidgets as a_, dispatchGutterHighlights as aa, dispatchRemoveRuntimePanel as ab, editingQuerySectionsField as ac, editingWidgetsField as ad, editorFocusField as ae, editorFocusTracker as af, editorPreset as ag, editorTheme as ah, embedPreviewDecorations as ai, expandRuntimePanel as aj, extractMetricsByCategory as ak, fenceCompletion as al, findQueryBlockSection as am, findWorkoutErrors as an, forceSectionParse as ao, formatClockTime as ap, formatMMSS as aq, formatSummaryDurationMMSS as ar, frontmatterDebugMode as as, frontmatterDetailed as at, frontmatterKeymap as au, frontmatterPreview as av, frontmatterPreviewField as aw, frontmatterReferenceIndex as ax, frontmatterSource as ay, frontmatterSuggestions as az, type CursorFocusState as b, resolveCodeLanguage as b0, runtimePanelField as b1, saveBlockQuerySource as b2, sectionAtPos as b3, sectionField as b4, sectionGeometry as b5, sectionIdentity as b6, sectionIdentityHistory as b7, sectionMove as b8, sectionRestore as b9, sectionSaved as ba, sessionQueryFence as bb, sessionQueryInsert as bc, sessionQueryWql as bd, setEditorFocused as be, setFrontmatterDetailed as bf, setFrontmatterSource as bg, setGutterHighlights as bh, setQuerySourceEditing as bi, slashBlockCompletion as bj, smartIncrement as bk, toggleInlineMarkdown as bl, toggleWidgetEdit as bm, urlAtPos as bn, widgetBlockPreview as bo, wodAutoWrap as bp, wodAutocompletion as bq, wodCompletionSource as br, wodEditorKeymap as bs, wodLinter as bt, wodOverlayPanel as bu, workoutLintSource as bv, wrapInTimeFence as bw, type CustomCompletionSource as c, DEFAULT_PRIMARY_FILTER as d, DefaultFrontmatterWidget as e, type EditorPresetOptions as f, type EditorSection as g, type EditorSectionSubtype as h, type EditorSectionType as i, type EmbedType as j, type FrontmatterRefDiagnostic as k, type FrontmatterReferenceProvider as l, type FrontmatterReferenceRef as m, type FrontmatterReferenceResolution as n, type FrontmatterSuggestionCatalog as o, INTERNAL_FRONTMATTER_KEYS as p, type NestedCompletionOptions as q, OUTPUT_TYPE_CLASS as r, OUTPUT_TYPE_DOT as s, OutputFilterPills as t, type OutputFilterPreset as u, type OutputStatementRow as v, OutputStatementsTable as w, type OutputStatementsTableProps as x, type OverlayAction as y, type QueryBlockPreviewOptions as z };
|
|
@@ -4,8 +4,8 @@ import { ViewPlugin, DecorationSet, ViewUpdate, EditorView, Decoration, WidgetTy
|
|
|
4
4
|
import { Diagnostic } from '@codemirror/lint';
|
|
5
5
|
import { CompletionContext, CompletionResult } from '@codemirror/autocomplete';
|
|
6
6
|
import { WhiteboardScriptCompletionOptions, MetricPresentationToken } from '@bitcobblers/wod-wiki-lang';
|
|
7
|
-
import { WqlCompletionOptions, QueryOptions, QueryResult, ParsedFindQuery, FindOptions, FindQueryResult, ParsedRowsQuery, RowsQueryResult, ParsedAggregateQuery, PipelineResult, FamilyRunPayload, IFieldCatalog } from '@bitcobblers/wod-wiki-wql';
|
|
8
|
-
import { Section, NoteBlock, ScriptBlock, ICodeStatement, IMetric } from '@bitcobblers/wod-wiki-core';
|
|
7
|
+
import { WqlCompletionOptions, RowsRunSummary, RowsRun, QueryOptions, QueryResult, ParsedFindQuery, FindOptions, FindQueryResult, ParsedRowsQuery, RowsQueryResult, ParsedAggregateQuery, PipelineResult, FamilyRunPayload, IFieldCatalog } from '@bitcobblers/wod-wiki-wql';
|
|
8
|
+
import { Section, NoteBlock, ScriptBlock, ICodeStatement, IMetric, EventRecord, Note } from '@bitcobblers/wod-wiki-core';
|
|
9
9
|
import * as react from 'react';
|
|
10
10
|
import { ReactNode } from 'react';
|
|
11
11
|
import * as _codemirror_language from '@codemirror/language';
|
|
@@ -348,9 +348,12 @@ declare function dispatchAddRuntimePanel(view: EditorView, sectionId: string, bl
|
|
|
348
348
|
declare function dispatchRemoveRuntimePanel(view: EditorView, sectionId: string): void;
|
|
349
349
|
declare function dispatchExpandRuntimePanel(view: EditorView, sectionId: string, expanded: boolean): void;
|
|
350
350
|
|
|
351
|
+
interface SessionQueryFenceOptions {
|
|
352
|
+
view?: 'summary' | 'table';
|
|
353
|
+
}
|
|
351
354
|
declare function sessionQueryWql(resultId: string): string;
|
|
352
|
-
declare function sessionQueryFence(resultId: string): string;
|
|
353
|
-
declare function sessionQueryInsert(state: EditorState, blockId: string, resultId: string): {
|
|
355
|
+
declare function sessionQueryFence(resultId: string, options?: SessionQueryFenceOptions): string;
|
|
356
|
+
declare function sessionQueryInsert(state: EditorState, blockId: string, resultId: string, options?: SessionQueryFenceOptions): {
|
|
354
357
|
from: number;
|
|
355
358
|
insert: string;
|
|
356
359
|
} | null;
|
|
@@ -475,6 +478,52 @@ interface OutputStatementsTableProps {
|
|
|
475
478
|
/** The Session Results surface — Card List below `sm`, dynamic sortable/editable table at `sm` and up. */
|
|
476
479
|
declare function OutputStatementsTable({ outputs, filter, timeOrigin, onClearFilter, columns: explicitColumns, sort: controlledSort, onSortChange, limit, onEditMetric, prHighlights, }: OutputStatementsTableProps): react.JSX.Element;
|
|
477
480
|
|
|
481
|
+
/**
|
|
482
|
+
* Shared payload emitted when the user opens a full session breakdown or
|
|
483
|
+
* promotes a workout into an analytics dashboard from any SessionSummaryCard
|
|
484
|
+
* or ResultsSpreadsheetGrid surface.
|
|
485
|
+
*/
|
|
486
|
+
interface SessionActionContext {
|
|
487
|
+
resultId: string;
|
|
488
|
+
noteId?: string;
|
|
489
|
+
noteTitle?: string;
|
|
490
|
+
blockContentId?: string;
|
|
491
|
+
notebooks?: readonly string[];
|
|
492
|
+
summary?: RowsRunSummary;
|
|
493
|
+
}
|
|
494
|
+
declare function formatSummaryDurationMMSS(ms: number): string;
|
|
495
|
+
interface RpePopoverControlProps {
|
|
496
|
+
rpe: number | null | undefined;
|
|
497
|
+
onChange?: (nextRpe: number) => void | Promise<void>;
|
|
498
|
+
readOnly?: boolean;
|
|
499
|
+
compact?: boolean;
|
|
500
|
+
resultId?: string;
|
|
501
|
+
className?: string;
|
|
502
|
+
}
|
|
503
|
+
/** Accessible 1–10 session effort (RPE) selector popover. */
|
|
504
|
+
declare function RpePopoverControl({ rpe, onChange, readOnly, compact, resultId, className, }: RpePopoverControlProps): react.JSX.Element | null;
|
|
505
|
+
interface SessionSummaryCardProps {
|
|
506
|
+
run: RowsRun;
|
|
507
|
+
prHighlights?: ReadonlyMap<string | number, RowPrHighlight> | Record<string, RowPrHighlight>;
|
|
508
|
+
noteTitle?: string;
|
|
509
|
+
onCaptureRpe?: (resultId: string, rpe: number) => Promise<void> | void;
|
|
510
|
+
onOpenResults?: (ctx: SessionActionContext) => void;
|
|
511
|
+
onAddToDashboard?: (ctx: SessionActionContext) => void;
|
|
512
|
+
onEditSource?: () => void;
|
|
513
|
+
readOnly?: boolean;
|
|
514
|
+
/** Omit outer card border/background when already hosted inside an enclosing shell/frame. */
|
|
515
|
+
bare?: boolean;
|
|
516
|
+
hideDrillActions?: boolean;
|
|
517
|
+
compactMobile?: boolean;
|
|
518
|
+
className?: string;
|
|
519
|
+
}
|
|
520
|
+
/**
|
|
521
|
+
* Shared workout execution summary card backed directly by `RowsRun.summary`
|
|
522
|
+
* (or derived via `computeRowsRunSummary`). Rendered in inline Note previews,
|
|
523
|
+
* `FullscreenTimer` completion, and `summary` dashboard widgets.
|
|
524
|
+
*/
|
|
525
|
+
declare function SessionSummaryCard({ run, prHighlights, noteTitle: noteTitleProp, onCaptureRpe, onOpenResults, onAddToDashboard, onEditSource, readOnly, bare, hideDrillActions, compactMobile, className, }: SessionSummaryCardProps): react.JSX.Element;
|
|
526
|
+
|
|
478
527
|
interface QueryExecutor {
|
|
479
528
|
runQuery(query: string, options?: QueryOptions): Promise<QueryResult>;
|
|
480
529
|
runFind(parsed: ParsedFindQuery, options?: FindOptions): Promise<FindQueryResult>;
|
|
@@ -513,6 +562,12 @@ interface QueryBlockPreviewOptions {
|
|
|
513
562
|
title?: string;
|
|
514
563
|
blockContentId?: string;
|
|
515
564
|
}) => string;
|
|
565
|
+
onOpenResults?: (ctx: SessionActionContext) => void;
|
|
566
|
+
onAddToDashboard?: (ctx?: SessionActionContext) => void;
|
|
567
|
+
pageSources?: ReadonlyMap<string, {
|
|
568
|
+
events: EventRecord[];
|
|
569
|
+
notes: Note[];
|
|
570
|
+
}>;
|
|
516
571
|
tokenValues?: Record<string, string>;
|
|
517
572
|
noteId?: string;
|
|
518
573
|
}
|
|
@@ -573,4 +628,4 @@ interface EditorPresetOptions {
|
|
|
573
628
|
}
|
|
574
629
|
declare function editorPreset(optionsOrDialect?: string | EditorPresetOptions): Extension[];
|
|
575
630
|
|
|
576
|
-
export {
|
|
631
|
+
export { activeCursorSection as $, type AttachmentUrlResolver as A, type ButtonAction as B, type CategorizedMetrics as C, DEFAULT_OUTPUT_FILTERS as D, type EditorDialect as E, type FrontmatterCatalogEntry as F, type GeometryListener as G, RpePopoverControl as H, type InlineMetricEditPayload as I, type RpePopoverControlProps as J, type RuntimePanelEntry as K, type SectionIdentity as L, MetricBadge as M, type NavigationHook as N, type OutputFilterInput as O, type SectionRect as P, type QueryExecutor as Q, type RowPrHighlight as R, type SessionActionContext as S, type SectionState as T, type SessionQueryFenceOptions as U, SessionSummaryCard as V, type SessionSummaryCardProps as W, TONE_CLASS as X, type WidgetConfig as Y, type WidgetProps as Z, type WidgetRegistry as _, type SessionTableSortSpec as a, removeRuntimePanel as a$, addRuntimePanel as a0, affiliateTagFacet as a1, applyAmazonAffiliateTag as a2, attachmentUrlFacet as a3, autocompleteTooltipTheme as a4, configureOverlayActions as a5, cursorFocusExtension as a6, customCompletionSources as a7, dispatchAddRuntimePanel as a8, dispatchExpandRuntimePanel as a9, frontmatterVisibility as aA, getCursorFocusState as aB, getOverlayActions as aC, gutterHighlightsField as aD, gutterUnified as aE, handleFenceAutoWrap as aF, handleSmartUrlPaste as aG, inlineButtonDecoration as aH, insertMarkdownLinkCommand as aI, isAmazonRetailHost as aJ, isEditorFocused as aK, isInternalFrontmatterKey as aL, isNavigableUrl as aM, lineIdsExtension as aN, linkOpen as aO, linkPreview as aP, markdownSyntaxHiding as aQ, markdownTablePreview as aR, navigationFacet as aS, nestedCompletion as aT, nestedCompletionOptions as aU, normalizeOutputFilter as aV, presentBadges as aW, previewDecorations as aX, queryBlockPreview as aY, referenceIndexReload as aZ, registeredSectionWidgets as a_, dispatchGutterHighlights as aa, dispatchRemoveRuntimePanel as ab, editingQuerySectionsField as ac, editingWidgetsField as ad, editorFocusField as ae, editorFocusTracker as af, editorPreset as ag, editorTheme as ah, embedPreviewDecorations as ai, expandRuntimePanel as aj, extractMetricsByCategory as ak, fenceCompletion as al, findQueryBlockSection as am, findWorkoutErrors as an, forceSectionParse as ao, formatClockTime as ap, formatMMSS as aq, formatSummaryDurationMMSS as ar, frontmatterDebugMode as as, frontmatterDetailed as at, frontmatterKeymap as au, frontmatterPreview as av, frontmatterPreviewField as aw, frontmatterReferenceIndex as ax, frontmatterSource as ay, frontmatterSuggestions as az, type CursorFocusState as b, resolveCodeLanguage as b0, runtimePanelField as b1, saveBlockQuerySource as b2, sectionAtPos as b3, sectionField as b4, sectionGeometry as b5, sectionIdentity as b6, sectionIdentityHistory as b7, sectionMove as b8, sectionRestore as b9, sectionSaved as ba, sessionQueryFence as bb, sessionQueryInsert as bc, sessionQueryWql as bd, setEditorFocused as be, setFrontmatterDetailed as bf, setFrontmatterSource as bg, setGutterHighlights as bh, setQuerySourceEditing as bi, slashBlockCompletion as bj, smartIncrement as bk, toggleInlineMarkdown as bl, toggleWidgetEdit as bm, urlAtPos as bn, widgetBlockPreview as bo, wodAutoWrap as bp, wodAutocompletion as bq, wodCompletionSource as br, wodEditorKeymap as bs, wodLinter as bt, wodOverlayPanel as bu, workoutLintSource as bv, wrapInTimeFence as bw, type CustomCompletionSource as c, DEFAULT_PRIMARY_FILTER as d, DefaultFrontmatterWidget as e, type EditorPresetOptions as f, type EditorSection as g, type EditorSectionSubtype as h, type EditorSectionType as i, type EmbedType as j, type FrontmatterRefDiagnostic as k, type FrontmatterReferenceProvider as l, type FrontmatterReferenceRef as m, type FrontmatterReferenceResolution as n, type FrontmatterSuggestionCatalog as o, INTERNAL_FRONTMATTER_KEYS as p, type NestedCompletionOptions as q, OUTPUT_TYPE_CLASS as r, OUTPUT_TYPE_DOT as s, OutputFilterPills as t, type OutputFilterPreset as u, type OutputStatementRow as v, OutputStatementsTable as w, type OutputStatementsTableProps as x, type OverlayAction as y, type QueryBlockPreviewOptions as z };
|