@bitcobblers/wod-wiki-ui 0.35.2116 → 0.35.2117

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 SectionRect, h as SectionState, W as WidgetConfig, i as WidgetProps, j as WidgetRegistry, k as activeCursorSection, l as addRuntimePanel, m as configureOverlayActions, n as cursorFocusExtension, o as dispatchAddRuntimePanel, p as dispatchExpandRuntimePanel, q as dispatchGutterHighlights, r as dispatchRemoveRuntimePanel, s as editingWidgetsField, t as editorPreset, u as editorTheme, v as embedPreviewDecorations, w as expandRuntimePanel, x as fenceCompletion, y as findQueryBlockSection, z as findWorkoutErrors, A as forceSectionParse, H as frontmatterPreview, I as frontmatterPreviewField, J as frontmatterSuggestions, K as frontmatterVisibility, L as getCursorFocusState, M as getOverlayActions, P as gutterHighlightsField, T as gutterUnified, U as handleFenceAutoWrap, V as inlineButtonDecoration, X as lineIdsExtension, Y as linkOpen, Z as linkPreview, _ as markdownSyntaxHiding, $ as markdownTablePreview, a0 as navigationFacet, a1 as previewDecorations, a2 as queryBlockPreview, a3 as registerCustomCompletionSource, a4 as removeRuntimePanel, a5 as runtimePanelField, a6 as saveBlockQuerySource, a7 as sectionAtPos, a8 as sectionField, a9 as sectionGeometry, aa as sessionQueryInsert, ab as sessionQueryWql, ac as setGutterHighlights, ad as smartIncrement, ae as toggleWidgetEdit, af as unregisterCustomCompletionSource, ag as urlAtPos, ah as widgetBlockPreview, ai as wodAutoWrap, aj as wodAutocompletion, ak as wodEditorKeymap, al as wodLinter, am as wodOverlayPanel, an as workoutLintSource, ao as wrapInTimeFence } from '../index-DMTXLSJ0.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 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';
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 SectionRect, h as SectionState, W as WidgetConfig, i as WidgetProps, j as WidgetRegistry, k as activeCursorSection, l as addRuntimePanel, m as configureOverlayActions, n as cursorFocusExtension, o as dispatchAddRuntimePanel, p as dispatchExpandRuntimePanel, q as dispatchGutterHighlights, r as dispatchRemoveRuntimePanel, s as editingWidgetsField, t as editorPreset, u as editorTheme, v as embedPreviewDecorations, w as expandRuntimePanel, x as fenceCompletion, y as findQueryBlockSection, z as findWorkoutErrors, A as forceSectionParse, H as frontmatterPreview, I as frontmatterPreviewField, J as frontmatterSuggestions, K as frontmatterVisibility, L as getCursorFocusState, M as getOverlayActions, P as gutterHighlightsField, T as gutterUnified, U as handleFenceAutoWrap, V as inlineButtonDecoration, X as lineIdsExtension, Y as linkOpen, Z as linkPreview, _ as markdownSyntaxHiding, $ as markdownTablePreview, a0 as navigationFacet, a1 as previewDecorations, a2 as queryBlockPreview, a3 as registerCustomCompletionSource, a4 as removeRuntimePanel, a5 as runtimePanelField, a6 as saveBlockQuerySource, a7 as sectionAtPos, a8 as sectionField, a9 as sectionGeometry, aa as sessionQueryInsert, ab as sessionQueryWql, ac as setGutterHighlights, ad as smartIncrement, ae as toggleWidgetEdit, af as unregisterCustomCompletionSource, ag as urlAtPos, ah as widgetBlockPreview, ai as wodAutoWrap, aj as wodAutocompletion, ak as wodEditorKeymap, al as wodLinter, am as wodOverlayPanel, an as workoutLintSource, ao as wrapInTimeFence } from '../index-DMTXLSJ0.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 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';
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, removeRuntimePanel, runtimePanelField, saveBlockQuerySource, sectionAtPos, sectionField, sectionGeometry, sessionQueryInsert, sessionQueryWql, setGutterHighlights, smartIncrement, toggleWidgetEdit, unregisterCustomCompletionSource, urlAtPos, widgetBlockPreview, wodAutoWrap, wodAutocompletion, wodEditorKeymap, wodLinter, wodOverlayPanel, workoutLintSource, wrapInTimeFence } from '../chunk-GUN6PZNI.mjs';
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-4WX7YECS.mjs';
2
2
  //# sourceMappingURL=index.mjs.map
3
3
  //# sourceMappingURL=index.mjs.map
@@ -3,7 +3,7 @@ import { Extension, Facet, EditorState, StateField } from '@codemirror/state';
3
3
  import { ViewPlugin, DecorationSet, ViewUpdate, EditorView, Decoration, WidgetType } from '@codemirror/view';
4
4
  import { Diagnostic } from '@codemirror/lint';
5
5
  import { CompletionContext, CompletionResult } from '@codemirror/autocomplete';
6
- import { ScriptBlock, ICodeStatement, IMetric } from '@bitcobblers/wod-wiki-core';
6
+ import { Section, NoteBlock, ScriptBlock, ICodeStatement, IMetric } from '@bitcobblers/wod-wiki-core';
7
7
  import { QueryOptions, QueryResult, ParsedFindQuery, FindOptions, FindQueryResult, ParsedRowsQuery, RowsQueryResult, ParsedAggregateQuery, PipelineResult, IFieldCatalog } from '@bitcobblers/wod-wiki-wql';
8
8
  import * as react from 'react';
9
9
 
@@ -37,10 +37,10 @@ declare function registerCustomCompletionSource(source: CustomCompletionSource):
37
37
  declare function unregisterCustomCompletionSource(source: CustomCompletionSource): void;
38
38
  declare const wodAutocompletion: Extension;
39
39
 
40
- type EditorDialect = "time" | "log";
41
- type EditorSectionType = "markdown" | "time" | "log" | "frontmatter" | "code" | "widget" | "embed" | "query";
42
- type EditorSectionSubtype = "heading" | "paragraph" | "list" | "blockquote" | "table" | "unknown";
43
- type EmbedType = "image" | "link" | "youtube";
40
+ type EditorDialect = 'time' | 'log';
41
+ type EditorSectionType = Exclude<Section['type'], 'title'>;
42
+ type EditorSectionSubtype = 'heading' | 'paragraph' | 'list' | 'blockquote' | 'table' | 'unknown';
43
+ type EmbedType = 'image' | 'link' | 'youtube';
44
44
  interface EditorSection {
45
45
  id: string;
46
46
  type: EditorSectionType;
@@ -64,12 +64,34 @@ interface EditorSection {
64
64
  height?: number;
65
65
  };
66
66
  }
67
+ interface SectionIdentity {
68
+ blocks: Record<string, NoteBlock>;
69
+ sourceRevision: number;
70
+ rawContent?: string;
71
+ }
67
72
  interface SectionState {
68
73
  sections: EditorSection[];
74
+ rawContent: string;
75
+ sourceRevision: number;
76
+ noteBlocks: Record<string, NoteBlock>;
77
+ savedVersions: Record<string, number>;
69
78
  }
79
+ declare const sectionIdentity: Facet<SectionIdentity, SectionIdentity | undefined>;
80
+ declare const registeredSectionWidgets: Facet<readonly string[], readonly string[] | undefined>;
70
81
  declare const forceSectionParse: _codemirror_state.StateEffectType<null>;
82
+ declare const sectionSaved: _codemirror_state.StateEffectType<SectionIdentity>;
83
+ declare const sectionRestore: _codemirror_state.StateEffectType<SectionIdentity & {
84
+ rawContent: string;
85
+ }>;
86
+ /** Destination offsets refer to the new CodeMirror document. Only explicit moves retain an ID. */
87
+ declare const sectionMove: _codemirror_state.StateEffectType<{
88
+ id: string;
89
+ from: number;
90
+ to: number;
91
+ }>;
71
92
 
72
93
  declare const sectionField: StateField<SectionState>;
94
+ declare const sectionIdentityHistory: _codemirror_state.Extension;
73
95
  declare function sectionAtPos(state: EditorState, pos: number): EditorSection | null;
74
96
  declare function activeCursorSection(state: EditorState): EditorSection | null;
75
97
 
@@ -174,10 +196,7 @@ declare function dispatchRemoveRuntimePanel(view: EditorView, sectionId: string)
174
196
  declare function dispatchExpandRuntimePanel(view: EditorView, sectionId: string, expanded: boolean): void;
175
197
 
176
198
  declare function sessionQueryWql(resultId: string): string;
177
- declare function sessionQueryInsert(state: EditorState, blockId: string, resultId: string, runBlock?: {
178
- id?: string;
179
- contentId?: string;
180
- }): {
199
+ declare function sessionQueryInsert(state: EditorState, blockId: string, resultId: string): {
181
200
  from: number;
182
201
  insert: string;
183
202
  } | null;
@@ -287,4 +306,4 @@ interface EditorPresetOptions {
287
306
  }
288
307
  declare function editorPreset(optionsOrDialect?: string | EditorPresetOptions): Extension[];
289
308
 
290
- export { markdownTablePreview as $, forceSectionParse 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, frontmatterPreview as H, frontmatterPreviewField as I, frontmatterSuggestions as J, frontmatterVisibility as K, getCursorFocusState as L, getOverlayActions as M, type NavigationHook as N, type OverlayAction as O, gutterHighlightsField as P, type QueryExecutor as Q, type RuntimePanelEntry as R, type SectionRect as S, gutterUnified as T, handleFenceAutoWrap as U, inlineButtonDecoration as V, type WidgetConfig as W, lineIdsExtension as X, linkOpen as Y, linkPreview as Z, markdownSyntaxHiding as _, type CustomCompletionSource as a, navigationFacet as a0, previewDecorations as a1, queryBlockPreview as a2, registerCustomCompletionSource as a3, removeRuntimePanel as a4, runtimePanelField as a5, saveBlockQuerySource as a6, sectionAtPos as a7, sectionField as a8, sectionGeometry as a9, sessionQueryInsert as aa, sessionQueryWql as ab, setGutterHighlights as ac, smartIncrement as ad, toggleWidgetEdit as ae, unregisterCustomCompletionSource as af, urlAtPos as ag, widgetBlockPreview as ah, wodAutoWrap as ai, wodAutocompletion as aj, wodEditorKeymap as ak, wodLinter as al, wodOverlayPanel as am, workoutLintSource as an, wrapInTimeFence as ao, 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 SectionState as h, type WidgetProps as i, type WidgetRegistry as j, activeCursorSection as k, addRuntimePanel as l, configureOverlayActions as m, cursorFocusExtension as n, dispatchAddRuntimePanel as o, dispatchExpandRuntimePanel as p, dispatchGutterHighlights as q, dispatchRemoveRuntimePanel as r, editingWidgetsField as s, editorPreset as t, editorTheme as u, embedPreviewDecorations as v, expandRuntimePanel as w, fenceCompletion as x, findQueryBlockSection as y, findWorkoutErrors as z };
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 };
@@ -3,7 +3,7 @@ import { Extension, Facet, EditorState, StateField } from '@codemirror/state';
3
3
  import { ViewPlugin, DecorationSet, ViewUpdate, EditorView, Decoration, WidgetType } from '@codemirror/view';
4
4
  import { Diagnostic } from '@codemirror/lint';
5
5
  import { CompletionContext, CompletionResult } from '@codemirror/autocomplete';
6
- import { ScriptBlock, ICodeStatement, IMetric } from '@bitcobblers/wod-wiki-core';
6
+ import { Section, NoteBlock, ScriptBlock, ICodeStatement, IMetric } from '@bitcobblers/wod-wiki-core';
7
7
  import { QueryOptions, QueryResult, ParsedFindQuery, FindOptions, FindQueryResult, ParsedRowsQuery, RowsQueryResult, ParsedAggregateQuery, PipelineResult, IFieldCatalog } from '@bitcobblers/wod-wiki-wql';
8
8
  import * as react from 'react';
9
9
 
@@ -37,10 +37,10 @@ declare function registerCustomCompletionSource(source: CustomCompletionSource):
37
37
  declare function unregisterCustomCompletionSource(source: CustomCompletionSource): void;
38
38
  declare const wodAutocompletion: Extension;
39
39
 
40
- type EditorDialect = "time" | "log";
41
- type EditorSectionType = "markdown" | "time" | "log" | "frontmatter" | "code" | "widget" | "embed" | "query";
42
- type EditorSectionSubtype = "heading" | "paragraph" | "list" | "blockquote" | "table" | "unknown";
43
- type EmbedType = "image" | "link" | "youtube";
40
+ type EditorDialect = 'time' | 'log';
41
+ type EditorSectionType = Exclude<Section['type'], 'title'>;
42
+ type EditorSectionSubtype = 'heading' | 'paragraph' | 'list' | 'blockquote' | 'table' | 'unknown';
43
+ type EmbedType = 'image' | 'link' | 'youtube';
44
44
  interface EditorSection {
45
45
  id: string;
46
46
  type: EditorSectionType;
@@ -64,12 +64,34 @@ interface EditorSection {
64
64
  height?: number;
65
65
  };
66
66
  }
67
+ interface SectionIdentity {
68
+ blocks: Record<string, NoteBlock>;
69
+ sourceRevision: number;
70
+ rawContent?: string;
71
+ }
67
72
  interface SectionState {
68
73
  sections: EditorSection[];
74
+ rawContent: string;
75
+ sourceRevision: number;
76
+ noteBlocks: Record<string, NoteBlock>;
77
+ savedVersions: Record<string, number>;
69
78
  }
79
+ declare const sectionIdentity: Facet<SectionIdentity, SectionIdentity | undefined>;
80
+ declare const registeredSectionWidgets: Facet<readonly string[], readonly string[] | undefined>;
70
81
  declare const forceSectionParse: _codemirror_state.StateEffectType<null>;
82
+ declare const sectionSaved: _codemirror_state.StateEffectType<SectionIdentity>;
83
+ declare const sectionRestore: _codemirror_state.StateEffectType<SectionIdentity & {
84
+ rawContent: string;
85
+ }>;
86
+ /** Destination offsets refer to the new CodeMirror document. Only explicit moves retain an ID. */
87
+ declare const sectionMove: _codemirror_state.StateEffectType<{
88
+ id: string;
89
+ from: number;
90
+ to: number;
91
+ }>;
71
92
 
72
93
  declare const sectionField: StateField<SectionState>;
94
+ declare const sectionIdentityHistory: _codemirror_state.Extension;
73
95
  declare function sectionAtPos(state: EditorState, pos: number): EditorSection | null;
74
96
  declare function activeCursorSection(state: EditorState): EditorSection | null;
75
97
 
@@ -174,10 +196,7 @@ declare function dispatchRemoveRuntimePanel(view: EditorView, sectionId: string)
174
196
  declare function dispatchExpandRuntimePanel(view: EditorView, sectionId: string, expanded: boolean): void;
175
197
 
176
198
  declare function sessionQueryWql(resultId: string): string;
177
- declare function sessionQueryInsert(state: EditorState, blockId: string, resultId: string, runBlock?: {
178
- id?: string;
179
- contentId?: string;
180
- }): {
199
+ declare function sessionQueryInsert(state: EditorState, blockId: string, resultId: string): {
181
200
  from: number;
182
201
  insert: string;
183
202
  } | null;
@@ -287,4 +306,4 @@ interface EditorPresetOptions {
287
306
  }
288
307
  declare function editorPreset(optionsOrDialect?: string | EditorPresetOptions): Extension[];
289
308
 
290
- export { markdownTablePreview as $, forceSectionParse 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, frontmatterPreview as H, frontmatterPreviewField as I, frontmatterSuggestions as J, frontmatterVisibility as K, getCursorFocusState as L, getOverlayActions as M, type NavigationHook as N, type OverlayAction as O, gutterHighlightsField as P, type QueryExecutor as Q, type RuntimePanelEntry as R, type SectionRect as S, gutterUnified as T, handleFenceAutoWrap as U, inlineButtonDecoration as V, type WidgetConfig as W, lineIdsExtension as X, linkOpen as Y, linkPreview as Z, markdownSyntaxHiding as _, type CustomCompletionSource as a, navigationFacet as a0, previewDecorations as a1, queryBlockPreview as a2, registerCustomCompletionSource as a3, removeRuntimePanel as a4, runtimePanelField as a5, saveBlockQuerySource as a6, sectionAtPos as a7, sectionField as a8, sectionGeometry as a9, sessionQueryInsert as aa, sessionQueryWql as ab, setGutterHighlights as ac, smartIncrement as ad, toggleWidgetEdit as ae, unregisterCustomCompletionSource as af, urlAtPos as ag, widgetBlockPreview as ah, wodAutoWrap as ai, wodAutocompletion as aj, wodEditorKeymap as ak, wodLinter as al, wodOverlayPanel as am, workoutLintSource as an, wrapInTimeFence as ao, 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 SectionState as h, type WidgetProps as i, type WidgetRegistry as j, activeCursorSection as k, addRuntimePanel as l, configureOverlayActions as m, cursorFocusExtension as n, dispatchAddRuntimePanel as o, dispatchExpandRuntimePanel as p, dispatchGutterHighlights as q, dispatchRemoveRuntimePanel as r, editingWidgetsField as s, editorPreset as t, editorTheme as u, embedPreviewDecorations as v, expandRuntimePanel as w, fenceCompletion as x, findQueryBlockSection as y, findWorkoutErrors as z };
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 };