@bitcobblers/wod-wiki-ui 0.37.2137 → 0.37.2139

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,4 @@
1
- export { B as ButtonAction, C as CursorFocusState, a as CustomCompletionSource, D as DefaultFrontmatterWidget, E as EditorDialect, b as EditorPresetOptions, c as EditorSection, d as EditorSectionSubtype, e as EditorSectionType, f as EmbedType, F as FrontmatterSuggestionCatalog, G as GeometryListener, N as NavigationHook, O as OverlayAction, g as QueryBlockPreviewOptions, R as RuntimePanelEntry, S as SectionIdentity, h as SectionRect, i as SectionState, W as WidgetConfig, j as WidgetProps, k as WidgetRegistry, l as activeCursorSection, m as addRuntimePanel, n as configureOverlayActions, o as cursorFocusExtension, p as dispatchAddRuntimePanel, q as dispatchExpandRuntimePanel, r as dispatchGutterHighlights, s as dispatchRemoveRuntimePanel, t as editingWidgetsField, u as editorPreset, v as editorTheme, w as embedPreviewDecorations, x as expandRuntimePanel, y as fenceCompletion, z as findQueryBlockSection, A as findWorkoutErrors, H as forceSectionParse, I as frontmatterPreview, J as frontmatterPreviewField, K as frontmatterSuggestions, L as frontmatterVisibility, M as getCursorFocusState, P as getOverlayActions, T as gutterHighlightsField, U as gutterUnified, V as handleFenceAutoWrap, X as inlineButtonDecoration, Y as lineIdsExtension, Z as linkOpen, _ as linkPreview, $ as markdownSyntaxHiding, a0 as markdownTablePreview, a1 as navigationFacet, a2 as previewDecorations, a3 as queryBlockPreview, a4 as registerCustomCompletionSource, a5 as registeredSectionWidgets, a6 as removeRuntimePanel, a7 as runtimePanelField, a8 as saveBlockQuerySource, a9 as sectionAtPos, aa as sectionField, ab as sectionGeometry, ac as sectionIdentity, ad as sectionIdentityHistory, ae as sectionMove, af as sectionRestore, ag as sectionSaved, ah as sessionQueryInsert, ai as sessionQueryWql, aj as setGutterHighlights, ak as smartIncrement, al as toggleWidgetEdit, am as unregisterCustomCompletionSource, an as urlAtPos, ao as widgetBlockPreview, ap as wodAutoWrap, aq as wodAutocompletion, ar as wodEditorKeymap, as as wodLinter, at as wodOverlayPanel, au as workoutLintSource, av as wrapInTimeFence } from '../index-WiNbi7d3.cjs';
1
+ export { B as ButtonAction, C as CursorFocusState, a as CustomCompletionSource, D as DefaultFrontmatterWidget, E as EditorDialect, b as EditorPresetOptions, c as EditorSection, d as EditorSectionSubtype, e as EditorSectionType, f as EmbedType, F as FrontmatterCatalogEntry, g as FrontmatterRefDiagnostic, h as FrontmatterReferenceProvider, i as FrontmatterReferenceRef, j as FrontmatterReferenceResolution, k as FrontmatterSuggestionCatalog, G as GeometryListener, N as NavigationHook, O as OverlayAction, l as QueryBlockPreviewOptions, R as RuntimePanelEntry, S as SectionIdentity, m as SectionRect, n as SectionState, W as WidgetConfig, o as WidgetProps, p as WidgetRegistry, q as activeCursorSection, r as addRuntimePanel, s as configureOverlayActions, t as cursorFocusExtension, u as dispatchAddRuntimePanel, v as dispatchExpandRuntimePanel, w as dispatchGutterHighlights, x as dispatchRemoveRuntimePanel, y as editingWidgetsField, z as editorPreset, A as editorTheme, H as embedPreviewDecorations, I as expandRuntimePanel, J as fenceCompletion, K as findQueryBlockSection, L as findWorkoutErrors, M as forceSectionParse, P as frontmatterPreview, T as frontmatterPreviewField, U as frontmatterReferenceIndex, V as frontmatterSuggestions, X as frontmatterVisibility, Y as getCursorFocusState, Z as getOverlayActions, _ as gutterHighlightsField, $ as gutterUnified, a0 as handleFenceAutoWrap, a1 as inlineButtonDecoration, a2 as lineIdsExtension, a3 as linkOpen, a4 as linkPreview, a5 as markdownSyntaxHiding, a6 as markdownTablePreview, a7 as navigationFacet, a8 as previewDecorations, a9 as queryBlockPreview, aa as referenceIndexReload, ab as registerCustomCompletionSource, ac as registeredSectionWidgets, ad as removeRuntimePanel, ae as runtimePanelField, af as saveBlockQuerySource, ag as sectionAtPos, ah as sectionField, ai as sectionGeometry, aj as sectionIdentity, ak as sectionIdentityHistory, al as sectionMove, am as sectionRestore, an as sectionSaved, ao as sessionQueryInsert, ap as sessionQueryWql, aq as setGutterHighlights, ar as smartIncrement, as as toggleWidgetEdit, at as unregisterCustomCompletionSource, au as urlAtPos, av as widgetBlockPreview, aw as wodAutoWrap, ax as wodAutocompletion, ay as wodEditorKeymap, az as wodLinter, aA as wodOverlayPanel, aB as workoutLintSource, aC as wrapInTimeFence } from '../index-D4mgqtvt.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 { B as ButtonAction, C as CursorFocusState, a as CustomCompletionSource, D as DefaultFrontmatterWidget, E as EditorDialect, b as EditorPresetOptions, c as EditorSection, d as EditorSectionSubtype, e as EditorSectionType, f as EmbedType, F as FrontmatterSuggestionCatalog, G as GeometryListener, N as NavigationHook, O as OverlayAction, g as QueryBlockPreviewOptions, R as RuntimePanelEntry, S as SectionIdentity, h as SectionRect, i as SectionState, W as WidgetConfig, j as WidgetProps, k as WidgetRegistry, l as activeCursorSection, m as addRuntimePanel, n as configureOverlayActions, o as cursorFocusExtension, p as dispatchAddRuntimePanel, q as dispatchExpandRuntimePanel, r as dispatchGutterHighlights, s as dispatchRemoveRuntimePanel, t as editingWidgetsField, u as editorPreset, v as editorTheme, w as embedPreviewDecorations, x as expandRuntimePanel, y as fenceCompletion, z as findQueryBlockSection, A as findWorkoutErrors, H as forceSectionParse, I as frontmatterPreview, J as frontmatterPreviewField, K as frontmatterSuggestions, L as frontmatterVisibility, M as getCursorFocusState, P as getOverlayActions, T as gutterHighlightsField, U as gutterUnified, V as handleFenceAutoWrap, X as inlineButtonDecoration, Y as lineIdsExtension, Z as linkOpen, _ as linkPreview, $ as markdownSyntaxHiding, a0 as markdownTablePreview, a1 as navigationFacet, a2 as previewDecorations, a3 as queryBlockPreview, a4 as registerCustomCompletionSource, a5 as registeredSectionWidgets, a6 as removeRuntimePanel, a7 as runtimePanelField, a8 as saveBlockQuerySource, a9 as sectionAtPos, aa as sectionField, ab as sectionGeometry, ac as sectionIdentity, ad as sectionIdentityHistory, ae as sectionMove, af as sectionRestore, ag as sectionSaved, ah as sessionQueryInsert, ai as sessionQueryWql, aj as setGutterHighlights, ak as smartIncrement, al as toggleWidgetEdit, am as unregisterCustomCompletionSource, an as urlAtPos, ao as widgetBlockPreview, ap as wodAutoWrap, aq as wodAutocompletion, ar as wodEditorKeymap, as as wodLinter, at as wodOverlayPanel, au as workoutLintSource, av as wrapInTimeFence } from '../index-WiNbi7d3.js';
1
+ export { B as ButtonAction, C as CursorFocusState, a as CustomCompletionSource, D as DefaultFrontmatterWidget, E as EditorDialect, b as EditorPresetOptions, c as EditorSection, d as EditorSectionSubtype, e as EditorSectionType, f as EmbedType, F as FrontmatterCatalogEntry, g as FrontmatterRefDiagnostic, h as FrontmatterReferenceProvider, i as FrontmatterReferenceRef, j as FrontmatterReferenceResolution, k as FrontmatterSuggestionCatalog, G as GeometryListener, N as NavigationHook, O as OverlayAction, l as QueryBlockPreviewOptions, R as RuntimePanelEntry, S as SectionIdentity, m as SectionRect, n as SectionState, W as WidgetConfig, o as WidgetProps, p as WidgetRegistry, q as activeCursorSection, r as addRuntimePanel, s as configureOverlayActions, t as cursorFocusExtension, u as dispatchAddRuntimePanel, v as dispatchExpandRuntimePanel, w as dispatchGutterHighlights, x as dispatchRemoveRuntimePanel, y as editingWidgetsField, z as editorPreset, A as editorTheme, H as embedPreviewDecorations, I as expandRuntimePanel, J as fenceCompletion, K as findQueryBlockSection, L as findWorkoutErrors, M as forceSectionParse, P as frontmatterPreview, T as frontmatterPreviewField, U as frontmatterReferenceIndex, V as frontmatterSuggestions, X as frontmatterVisibility, Y as getCursorFocusState, Z as getOverlayActions, _ as gutterHighlightsField, $ as gutterUnified, a0 as handleFenceAutoWrap, a1 as inlineButtonDecoration, a2 as lineIdsExtension, a3 as linkOpen, a4 as linkPreview, a5 as markdownSyntaxHiding, a6 as markdownTablePreview, a7 as navigationFacet, a8 as previewDecorations, a9 as queryBlockPreview, aa as referenceIndexReload, ab as registerCustomCompletionSource, ac as registeredSectionWidgets, ad as removeRuntimePanel, ae as runtimePanelField, af as saveBlockQuerySource, ag as sectionAtPos, ah as sectionField, ai as sectionGeometry, aj as sectionIdentity, ak as sectionIdentityHistory, al as sectionMove, am as sectionRestore, an as sectionSaved, ao as sessionQueryInsert, ap as sessionQueryWql, aq as setGutterHighlights, ar as smartIncrement, as as toggleWidgetEdit, at as unregisterCustomCompletionSource, au as urlAtPos, av as widgetBlockPreview, aw as wodAutoWrap, ax as wodAutocompletion, ay as wodEditorKeymap, az as wodLinter, aA as wodOverlayPanel, aB as workoutLintSource, aC as wrapInTimeFence } from '../index-D4mgqtvt.js';
2
2
  export { blockContentId } from '@bitcobblers/wod-wiki-core';
3
3
  import '@codemirror/state';
4
4
  import '@codemirror/view';
@@ -1,3 +1,3 @@
1
- export { DefaultFrontmatterWidget, activeCursorSection, addRuntimePanel, blockContentId, configureOverlayActions, cursorFocusExtension, dispatchAddRuntimePanel, dispatchExpandRuntimePanel, dispatchGutterHighlights, dispatchRemoveRuntimePanel, editingWidgetsField, editorPreset, editorTheme, embedPreviewDecorations, expandRuntimePanel, fenceCompletion, findQueryBlockSection, findWorkoutErrors, forceSectionParse, frontmatterPreview, frontmatterPreviewField, frontmatterSuggestions, frontmatterVisibility, getCursorFocusState, getOverlayActions, gutterHighlightsField, gutterUnified, handleFenceAutoWrap, inlineButtonDecoration, lineIdsExtension, linkOpen, linkPreview, markdownSyntaxHiding, markdownTablePreview, navigationFacet, previewDecorations, queryBlockPreview, registerCustomCompletionSource, registeredSectionWidgets, removeRuntimePanel, runtimePanelField, saveBlockQuerySource, sectionAtPos, sectionField, sectionGeometry, sectionIdentity, sectionIdentityHistory, sectionMove, sectionRestore, sectionSaved, sessionQueryInsert, sessionQueryWql, setGutterHighlights, smartIncrement, toggleWidgetEdit, unregisterCustomCompletionSource, urlAtPos, widgetBlockPreview, wodAutoWrap, wodAutocompletion, wodEditorKeymap, wodLinter, wodOverlayPanel, workoutLintSource, wrapInTimeFence } from '../chunk-RAM3QIP4.mjs';
1
+ export { DefaultFrontmatterWidget, activeCursorSection, addRuntimePanel, blockContentId, configureOverlayActions, cursorFocusExtension, dispatchAddRuntimePanel, dispatchExpandRuntimePanel, dispatchGutterHighlights, dispatchRemoveRuntimePanel, editingWidgetsField, editorPreset, editorTheme, embedPreviewDecorations, expandRuntimePanel, fenceCompletion, findQueryBlockSection, findWorkoutErrors, forceSectionParse, frontmatterPreview, frontmatterPreviewField, frontmatterReferenceIndex, frontmatterSuggestions, frontmatterVisibility, getCursorFocusState, getOverlayActions, gutterHighlightsField, gutterUnified, handleFenceAutoWrap, inlineButtonDecoration, lineIdsExtension, linkOpen, linkPreview, markdownSyntaxHiding, markdownTablePreview, navigationFacet, previewDecorations, queryBlockPreview, referenceIndexReload, registerCustomCompletionSource, registeredSectionWidgets, removeRuntimePanel, runtimePanelField, saveBlockQuerySource, sectionAtPos, sectionField, sectionGeometry, sectionIdentity, sectionIdentityHistory, sectionMove, sectionRestore, sectionSaved, sessionQueryInsert, sessionQueryWql, setGutterHighlights, smartIncrement, toggleWidgetEdit, unregisterCustomCompletionSource, urlAtPos, widgetBlockPreview, wodAutoWrap, wodAutocompletion, wodEditorKeymap, wodLinter, wodOverlayPanel, workoutLintSource, wrapInTimeFence } from '../chunk-SNG34RG2.mjs';
2
2
  //# sourceMappingURL=index.mjs.map
3
3
  //# sourceMappingURL=index.mjs.map
@@ -125,24 +125,81 @@ declare const previewDecorations: Extension;
125
125
 
126
126
  declare const embedPreviewDecorations: Extension;
127
127
 
128
+ interface FrontmatterCatalogEntry {
129
+ slug: string;
130
+ label: string;
131
+ aliases: readonly string[];
132
+ }
128
133
  type FrontmatterSuggestionCatalog = {
129
134
  types: readonly string[];
130
135
  tags: readonly {
131
136
  label: string;
132
137
  type?: string;
133
138
  }[];
139
+ /** Effort catalog for reference lookups and chip suggestions (optional — providers without a registry omit it). */
140
+ efforts?: readonly FrontmatterCatalogEntry[];
141
+ /** Equipment catalog for reference lookups and chip suggestions. */
142
+ equipment?: readonly FrontmatterCatalogEntry[];
134
143
  };
135
144
  declare const frontmatterSuggestions: Facet<() => Promise<FrontmatterSuggestionCatalog>, (() => Promise<FrontmatterSuggestionCatalog>) | null>;
145
+ interface FrontmatterReferenceRef {
146
+ kind: 'effort' | 'equipment';
147
+ slug: string;
148
+ label: string;
149
+ }
150
+ interface FrontmatterRefDiagnostic {
151
+ reason: string;
152
+ message: string;
153
+ token?: string;
154
+ candidates?: readonly string[];
155
+ }
156
+ interface FrontmatterReferenceResolution {
157
+ matched: string;
158
+ effortRef: FrontmatterReferenceRef | null;
159
+ equipment: readonly FrontmatterReferenceRef[];
160
+ diagnostics: readonly FrontmatterRefDiagnostic[];
161
+ }
162
+ interface FrontmatterReferenceProvider {
163
+ resolve(label: string, defaults?: {
164
+ effort?: string;
165
+ equipment?: readonly string[];
166
+ }): FrontmatterReferenceResolution;
167
+ resolveEffort(slugOrAlias: string): {
168
+ slug: string;
169
+ label: string;
170
+ } | null;
171
+ resolveEquipment(slugOrAlias: string): {
172
+ slug: string;
173
+ label: string;
174
+ } | null;
175
+ /** Route href for an existing effort/equipment page (app-owned). */
176
+ openHref(kind: FrontmatterReferenceRef['kind'], slug: string): string;
177
+ /** Route href for the create page of a kind (app-owned). */
178
+ createHref(kind: FrontmatterReferenceRef['kind']): string;
179
+ }
180
+ declare const frontmatterReferenceIndex: Facet<() => FrontmatterReferenceProvider | null, (() => FrontmatterReferenceProvider | null) | null>;
181
+ /**
182
+ * Sent when the reference catalog behind `frontmatterReferenceIndex`
183
+ * changes (seed import, registry refresh). Forces the frontmatter preview
184
+ * to rebuild so chips/diagnostics reflect the new catalog without waiting
185
+ * for an unrelated doc/selection change.
186
+ */
187
+ declare const referenceIndexReload: _codemirror_state.StateEffectType<null>;
136
188
  declare const frontmatterVisibility: Facet<boolean, boolean>;
137
189
  declare class DefaultFrontmatterWidget extends WidgetType {
138
190
  readonly sectionId: string;
139
191
  readonly rawContent: string;
140
192
  readonly readOnly: boolean;
141
- constructor(sectionIdOrProps: string | Record<string, string>, rawContent?: string, readOnly?: boolean);
142
- get props(): Record<string, string>;
193
+ constructor(sectionId: string, rawContent?: string, readOnly?: boolean);
143
194
  eq(other: DefaultFrontmatterWidget): boolean;
144
195
  ignoreEvent(): boolean;
145
196
  toDOM(view: EditorView): HTMLElement;
197
+ /**
198
+ * Effort-definition attribute rows (MET / discipline / intensity tier).
199
+ * Values live in the nested baseAttributes block; each edit patches that
200
+ * one path, so unknown sibling keys and comments elsewhere survive.
201
+ */
202
+ private buildDefinitionRows;
146
203
  destroy(dom: HTMLElement): void;
147
204
  }
148
205
  declare const frontmatterPreviewField: StateField<DecorationSet>;
@@ -306,4 +363,4 @@ interface EditorPresetOptions {
306
363
  }
307
364
  declare function editorPreset(optionsOrDialect?: string | EditorPresetOptions): Extension[];
308
365
 
309
- export { markdownSyntaxHiding as $, findWorkoutErrors as A, type ButtonAction as B, type CursorFocusState as C, DefaultFrontmatterWidget as D, type EditorDialect as E, type FrontmatterSuggestionCatalog as F, type GeometryListener as G, forceSectionParse as H, frontmatterPreview as I, frontmatterPreviewField as J, frontmatterSuggestions as K, frontmatterVisibility as L, getCursorFocusState as M, type NavigationHook as N, type OverlayAction as O, getOverlayActions as P, type QueryExecutor as Q, type RuntimePanelEntry as R, type SectionIdentity as S, gutterHighlightsField as T, gutterUnified as U, handleFenceAutoWrap as V, type WidgetConfig as W, inlineButtonDecoration as X, lineIdsExtension as Y, linkOpen as Z, linkPreview as _, type CustomCompletionSource as a, markdownTablePreview as a0, navigationFacet as a1, previewDecorations as a2, queryBlockPreview as a3, registerCustomCompletionSource as a4, registeredSectionWidgets as a5, removeRuntimePanel as a6, runtimePanelField as a7, saveBlockQuerySource as a8, sectionAtPos as a9, sectionField as aa, sectionGeometry as ab, sectionIdentity as ac, sectionIdentityHistory as ad, sectionMove as ae, sectionRestore as af, sectionSaved as ag, sessionQueryInsert as ah, sessionQueryWql as ai, setGutterHighlights as aj, smartIncrement as ak, toggleWidgetEdit as al, unregisterCustomCompletionSource as am, urlAtPos as an, widgetBlockPreview as ao, wodAutoWrap as ap, wodAutocompletion as aq, wodEditorKeymap as ar, wodLinter as as, wodOverlayPanel as at, workoutLintSource as au, wrapInTimeFence as av, type EditorPresetOptions as b, type EditorSection as c, type EditorSectionSubtype as d, type EditorSectionType as e, type EmbedType as f, type QueryBlockPreviewOptions as g, type SectionRect as h, type SectionState as i, type WidgetProps as j, type WidgetRegistry as k, activeCursorSection as l, addRuntimePanel as m, configureOverlayActions as n, cursorFocusExtension as o, dispatchAddRuntimePanel as p, dispatchExpandRuntimePanel as q, dispatchGutterHighlights as r, dispatchRemoveRuntimePanel as s, editingWidgetsField as t, editorPreset as u, editorTheme as v, embedPreviewDecorations as w, expandRuntimePanel as x, fenceCompletion as y, findQueryBlockSection as z };
366
+ export { gutterUnified as $, editorTheme as A, type ButtonAction as B, type CursorFocusState as C, DefaultFrontmatterWidget as D, type EditorDialect as E, type FrontmatterCatalogEntry as F, type GeometryListener as G, embedPreviewDecorations as H, expandRuntimePanel as I, fenceCompletion as J, findQueryBlockSection as K, findWorkoutErrors as L, forceSectionParse as M, type NavigationHook as N, type OverlayAction as O, frontmatterPreview as P, type QueryExecutor as Q, type RuntimePanelEntry as R, type SectionIdentity as S, frontmatterPreviewField as T, frontmatterReferenceIndex as U, frontmatterSuggestions as V, type WidgetConfig as W, frontmatterVisibility as X, getCursorFocusState as Y, getOverlayActions as Z, gutterHighlightsField as _, type CustomCompletionSource as a, handleFenceAutoWrap as a0, inlineButtonDecoration as a1, lineIdsExtension as a2, linkOpen as a3, linkPreview as a4, markdownSyntaxHiding as a5, markdownTablePreview as a6, navigationFacet as a7, previewDecorations as a8, queryBlockPreview as a9, wodOverlayPanel as aA, workoutLintSource as aB, wrapInTimeFence as aC, referenceIndexReload as aa, registerCustomCompletionSource as ab, registeredSectionWidgets as ac, removeRuntimePanel as ad, runtimePanelField as ae, saveBlockQuerySource as af, sectionAtPos as ag, sectionField as ah, sectionGeometry as ai, sectionIdentity as aj, sectionIdentityHistory as ak, sectionMove as al, sectionRestore as am, sectionSaved as an, sessionQueryInsert as ao, sessionQueryWql as ap, setGutterHighlights as aq, smartIncrement as ar, toggleWidgetEdit as as, unregisterCustomCompletionSource as at, urlAtPos as au, widgetBlockPreview as av, wodAutoWrap as aw, wodAutocompletion as ax, wodEditorKeymap as ay, wodLinter as az, type EditorPresetOptions as b, type EditorSection as c, type EditorSectionSubtype as d, type EditorSectionType as e, type EmbedType as f, type FrontmatterRefDiagnostic as g, type FrontmatterReferenceProvider as h, type FrontmatterReferenceRef as i, type FrontmatterReferenceResolution as j, type FrontmatterSuggestionCatalog as k, type QueryBlockPreviewOptions as l, type SectionRect as m, type SectionState as n, type WidgetProps as o, type WidgetRegistry as p, activeCursorSection as q, addRuntimePanel as r, configureOverlayActions as s, cursorFocusExtension as t, dispatchAddRuntimePanel as u, dispatchExpandRuntimePanel as v, dispatchGutterHighlights as w, dispatchRemoveRuntimePanel as x, editingWidgetsField as y, editorPreset as z };
@@ -125,24 +125,81 @@ declare const previewDecorations: Extension;
125
125
 
126
126
  declare const embedPreviewDecorations: Extension;
127
127
 
128
+ interface FrontmatterCatalogEntry {
129
+ slug: string;
130
+ label: string;
131
+ aliases: readonly string[];
132
+ }
128
133
  type FrontmatterSuggestionCatalog = {
129
134
  types: readonly string[];
130
135
  tags: readonly {
131
136
  label: string;
132
137
  type?: string;
133
138
  }[];
139
+ /** Effort catalog for reference lookups and chip suggestions (optional — providers without a registry omit it). */
140
+ efforts?: readonly FrontmatterCatalogEntry[];
141
+ /** Equipment catalog for reference lookups and chip suggestions. */
142
+ equipment?: readonly FrontmatterCatalogEntry[];
134
143
  };
135
144
  declare const frontmatterSuggestions: Facet<() => Promise<FrontmatterSuggestionCatalog>, (() => Promise<FrontmatterSuggestionCatalog>) | null>;
145
+ interface FrontmatterReferenceRef {
146
+ kind: 'effort' | 'equipment';
147
+ slug: string;
148
+ label: string;
149
+ }
150
+ interface FrontmatterRefDiagnostic {
151
+ reason: string;
152
+ message: string;
153
+ token?: string;
154
+ candidates?: readonly string[];
155
+ }
156
+ interface FrontmatterReferenceResolution {
157
+ matched: string;
158
+ effortRef: FrontmatterReferenceRef | null;
159
+ equipment: readonly FrontmatterReferenceRef[];
160
+ diagnostics: readonly FrontmatterRefDiagnostic[];
161
+ }
162
+ interface FrontmatterReferenceProvider {
163
+ resolve(label: string, defaults?: {
164
+ effort?: string;
165
+ equipment?: readonly string[];
166
+ }): FrontmatterReferenceResolution;
167
+ resolveEffort(slugOrAlias: string): {
168
+ slug: string;
169
+ label: string;
170
+ } | null;
171
+ resolveEquipment(slugOrAlias: string): {
172
+ slug: string;
173
+ label: string;
174
+ } | null;
175
+ /** Route href for an existing effort/equipment page (app-owned). */
176
+ openHref(kind: FrontmatterReferenceRef['kind'], slug: string): string;
177
+ /** Route href for the create page of a kind (app-owned). */
178
+ createHref(kind: FrontmatterReferenceRef['kind']): string;
179
+ }
180
+ declare const frontmatterReferenceIndex: Facet<() => FrontmatterReferenceProvider | null, (() => FrontmatterReferenceProvider | null) | null>;
181
+ /**
182
+ * Sent when the reference catalog behind `frontmatterReferenceIndex`
183
+ * changes (seed import, registry refresh). Forces the frontmatter preview
184
+ * to rebuild so chips/diagnostics reflect the new catalog without waiting
185
+ * for an unrelated doc/selection change.
186
+ */
187
+ declare const referenceIndexReload: _codemirror_state.StateEffectType<null>;
136
188
  declare const frontmatterVisibility: Facet<boolean, boolean>;
137
189
  declare class DefaultFrontmatterWidget extends WidgetType {
138
190
  readonly sectionId: string;
139
191
  readonly rawContent: string;
140
192
  readonly readOnly: boolean;
141
- constructor(sectionIdOrProps: string | Record<string, string>, rawContent?: string, readOnly?: boolean);
142
- get props(): Record<string, string>;
193
+ constructor(sectionId: string, rawContent?: string, readOnly?: boolean);
143
194
  eq(other: DefaultFrontmatterWidget): boolean;
144
195
  ignoreEvent(): boolean;
145
196
  toDOM(view: EditorView): HTMLElement;
197
+ /**
198
+ * Effort-definition attribute rows (MET / discipline / intensity tier).
199
+ * Values live in the nested baseAttributes block; each edit patches that
200
+ * one path, so unknown sibling keys and comments elsewhere survive.
201
+ */
202
+ private buildDefinitionRows;
146
203
  destroy(dom: HTMLElement): void;
147
204
  }
148
205
  declare const frontmatterPreviewField: StateField<DecorationSet>;
@@ -306,4 +363,4 @@ interface EditorPresetOptions {
306
363
  }
307
364
  declare function editorPreset(optionsOrDialect?: string | EditorPresetOptions): Extension[];
308
365
 
309
- export { markdownSyntaxHiding as $, findWorkoutErrors as A, type ButtonAction as B, type CursorFocusState as C, DefaultFrontmatterWidget as D, type EditorDialect as E, type FrontmatterSuggestionCatalog as F, type GeometryListener as G, forceSectionParse as H, frontmatterPreview as I, frontmatterPreviewField as J, frontmatterSuggestions as K, frontmatterVisibility as L, getCursorFocusState as M, type NavigationHook as N, type OverlayAction as O, getOverlayActions as P, type QueryExecutor as Q, type RuntimePanelEntry as R, type SectionIdentity as S, gutterHighlightsField as T, gutterUnified as U, handleFenceAutoWrap as V, type WidgetConfig as W, inlineButtonDecoration as X, lineIdsExtension as Y, linkOpen as Z, linkPreview as _, type CustomCompletionSource as a, markdownTablePreview as a0, navigationFacet as a1, previewDecorations as a2, queryBlockPreview as a3, registerCustomCompletionSource as a4, registeredSectionWidgets as a5, removeRuntimePanel as a6, runtimePanelField as a7, saveBlockQuerySource as a8, sectionAtPos as a9, sectionField as aa, sectionGeometry as ab, sectionIdentity as ac, sectionIdentityHistory as ad, sectionMove as ae, sectionRestore as af, sectionSaved as ag, sessionQueryInsert as ah, sessionQueryWql as ai, setGutterHighlights as aj, smartIncrement as ak, toggleWidgetEdit as al, unregisterCustomCompletionSource as am, urlAtPos as an, widgetBlockPreview as ao, wodAutoWrap as ap, wodAutocompletion as aq, wodEditorKeymap as ar, wodLinter as as, wodOverlayPanel as at, workoutLintSource as au, wrapInTimeFence as av, type EditorPresetOptions as b, type EditorSection as c, type EditorSectionSubtype as d, type EditorSectionType as e, type EmbedType as f, type QueryBlockPreviewOptions as g, type SectionRect as h, type SectionState as i, type WidgetProps as j, type WidgetRegistry as k, activeCursorSection as l, addRuntimePanel as m, configureOverlayActions as n, cursorFocusExtension as o, dispatchAddRuntimePanel as p, dispatchExpandRuntimePanel as q, dispatchGutterHighlights as r, dispatchRemoveRuntimePanel as s, editingWidgetsField as t, editorPreset as u, editorTheme as v, embedPreviewDecorations as w, expandRuntimePanel as x, fenceCompletion as y, findQueryBlockSection as z };
366
+ export { gutterUnified as $, editorTheme as A, type ButtonAction as B, type CursorFocusState as C, DefaultFrontmatterWidget as D, type EditorDialect as E, type FrontmatterCatalogEntry as F, type GeometryListener as G, embedPreviewDecorations as H, expandRuntimePanel as I, fenceCompletion as J, findQueryBlockSection as K, findWorkoutErrors as L, forceSectionParse as M, type NavigationHook as N, type OverlayAction as O, frontmatterPreview as P, type QueryExecutor as Q, type RuntimePanelEntry as R, type SectionIdentity as S, frontmatterPreviewField as T, frontmatterReferenceIndex as U, frontmatterSuggestions as V, type WidgetConfig as W, frontmatterVisibility as X, getCursorFocusState as Y, getOverlayActions as Z, gutterHighlightsField as _, type CustomCompletionSource as a, handleFenceAutoWrap as a0, inlineButtonDecoration as a1, lineIdsExtension as a2, linkOpen as a3, linkPreview as a4, markdownSyntaxHiding as a5, markdownTablePreview as a6, navigationFacet as a7, previewDecorations as a8, queryBlockPreview as a9, wodOverlayPanel as aA, workoutLintSource as aB, wrapInTimeFence as aC, referenceIndexReload as aa, registerCustomCompletionSource as ab, registeredSectionWidgets as ac, removeRuntimePanel as ad, runtimePanelField as ae, saveBlockQuerySource as af, sectionAtPos as ag, sectionField as ah, sectionGeometry as ai, sectionIdentity as aj, sectionIdentityHistory as ak, sectionMove as al, sectionRestore as am, sectionSaved as an, sessionQueryInsert as ao, sessionQueryWql as ap, setGutterHighlights as aq, smartIncrement as ar, toggleWidgetEdit as as, unregisterCustomCompletionSource as at, urlAtPos as au, widgetBlockPreview as av, wodAutoWrap as aw, wodAutocompletion as ax, wodEditorKeymap as ay, wodLinter as az, type EditorPresetOptions as b, type EditorSection as c, type EditorSectionSubtype as d, type EditorSectionType as e, type EmbedType as f, type FrontmatterRefDiagnostic as g, type FrontmatterReferenceProvider as h, type FrontmatterReferenceRef as i, type FrontmatterReferenceResolution as j, type FrontmatterSuggestionCatalog as k, type QueryBlockPreviewOptions as l, type SectionRect as m, type SectionState as n, type WidgetProps as o, type WidgetRegistry as p, activeCursorSection as q, addRuntimePanel as r, configureOverlayActions as s, cursorFocusExtension as t, dispatchAddRuntimePanel as u, dispatchExpandRuntimePanel as v, dispatchGutterHighlights as w, dispatchRemoveRuntimePanel as x, editingWidgetsField as y, editorPreset as z };