@bitcobblers/wod-wiki-ui 0.6.36 → 0.7.38
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-OFXIDA6Z.mjs → chunk-3ANAQJ6S.mjs} +6 -5
- package/dist/{chunk-OFXIDA6Z.mjs.map → chunk-3ANAQJ6S.mjs.map} +1 -1
- package/dist/extensions/index.cjs +3 -2
- 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-B8_9uGBX.d.cts → index-CTQ7Hrsa.d.cts} +2 -2
- package/dist/{index-B8_9uGBX.d.ts → index-CTQ7Hrsa.d.ts} +2 -2
- package/dist/index.cjs +9 -8
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +11 -12
- package/dist/index.d.ts +11 -12
- package/dist/index.mjs +8 -8
- package/dist/index.mjs.map +1 -1
- package/package.json +4 -4
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { B as ButtonAction, C as CursorFocusState, D as DefaultFrontmatterWidget, E as EditorDialect, a as EditorPresetOptions, b as EditorSection, c as EditorSectionSubtype, d as EditorSectionType, e as EmbedType, G as GeometryListener, N as NavigationHook, O as OverlayAction, f as QueryBlockPreviewOptions, R as RuntimePanelEntry, S as SectionRect, g as SectionState, W as WidgetConfig, h as WidgetProps, i as WidgetRegistry, j as activeCursorSection, k as addRuntimePanel, l as blockContentId, 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, F as frontmatterPreview, H as frontmatterPreviewField, I as getCursorFocusState, J as getOverlayActions, K as gutterHighlightsField, L as gutterUnified, M as handleFenceAutoWrap, P as inlineButtonDecoration, T as lineIdsExtension, U as linkOpen, V as markdownSyntaxHiding, X as markdownTablePreview, Y as navigationFacet, Z as previewDecorations, _ as queryBlockPreview, $ as removeRuntimePanel, a0 as runtimePanelField, a1 as saveBlockQuerySource, a2 as sectionAtPos, a3 as sectionField, a4 as sectionGeometry, a5 as sessionQueryInsert, a6 as sessionQueryWql, a7 as setGutterHighlights, a8 as smartIncrement, a9 as toggleWidgetEdit, aa as urlAtPos, ab as widgetBlockPreview, ac as wodAutoWrap, ad as wodAutocompletion, ae as wodEditorKeymap, af as wodLinter, ag as wodOverlayPanel, ah as workoutLintSource, ai as wrapInTimeFence } from '../index-
|
|
1
|
+
export { B as ButtonAction, C as CursorFocusState, D as DefaultFrontmatterWidget, E as EditorDialect, a as EditorPresetOptions, b as EditorSection, c as EditorSectionSubtype, d as EditorSectionType, e as EmbedType, G as GeometryListener, N as NavigationHook, O as OverlayAction, f as QueryBlockPreviewOptions, R as RuntimePanelEntry, S as SectionRect, g as SectionState, W as WidgetConfig, h as WidgetProps, i as WidgetRegistry, j as activeCursorSection, k as addRuntimePanel, l as blockContentId, 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, F as frontmatterPreview, H as frontmatterPreviewField, I as getCursorFocusState, J as getOverlayActions, K as gutterHighlightsField, L as gutterUnified, M as handleFenceAutoWrap, P as inlineButtonDecoration, T as lineIdsExtension, U as linkOpen, V as markdownSyntaxHiding, X as markdownTablePreview, Y as navigationFacet, Z as previewDecorations, _ as queryBlockPreview, $ as removeRuntimePanel, a0 as runtimePanelField, a1 as saveBlockQuerySource, a2 as sectionAtPos, a3 as sectionField, a4 as sectionGeometry, a5 as sessionQueryInsert, a6 as sessionQueryWql, a7 as setGutterHighlights, a8 as smartIncrement, a9 as toggleWidgetEdit, aa as urlAtPos, ab as widgetBlockPreview, ac as wodAutoWrap, ad as wodAutocompletion, ae as wodEditorKeymap, af as wodLinter, ag as wodOverlayPanel, ah as workoutLintSource, ai as wrapInTimeFence } from '../index-CTQ7Hrsa.cjs';
|
|
2
2
|
import '@codemirror/state';
|
|
3
3
|
import '@codemirror/view';
|
|
4
4
|
import '@codemirror/lint';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { B as ButtonAction, C as CursorFocusState, D as DefaultFrontmatterWidget, E as EditorDialect, a as EditorPresetOptions, b as EditorSection, c as EditorSectionSubtype, d as EditorSectionType, e as EmbedType, G as GeometryListener, N as NavigationHook, O as OverlayAction, f as QueryBlockPreviewOptions, R as RuntimePanelEntry, S as SectionRect, g as SectionState, W as WidgetConfig, h as WidgetProps, i as WidgetRegistry, j as activeCursorSection, k as addRuntimePanel, l as blockContentId, 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, F as frontmatterPreview, H as frontmatterPreviewField, I as getCursorFocusState, J as getOverlayActions, K as gutterHighlightsField, L as gutterUnified, M as handleFenceAutoWrap, P as inlineButtonDecoration, T as lineIdsExtension, U as linkOpen, V as markdownSyntaxHiding, X as markdownTablePreview, Y as navigationFacet, Z as previewDecorations, _ as queryBlockPreview, $ as removeRuntimePanel, a0 as runtimePanelField, a1 as saveBlockQuerySource, a2 as sectionAtPos, a3 as sectionField, a4 as sectionGeometry, a5 as sessionQueryInsert, a6 as sessionQueryWql, a7 as setGutterHighlights, a8 as smartIncrement, a9 as toggleWidgetEdit, aa as urlAtPos, ab as widgetBlockPreview, ac as wodAutoWrap, ad as wodAutocompletion, ae as wodEditorKeymap, af as wodLinter, ag as wodOverlayPanel, ah as workoutLintSource, ai as wrapInTimeFence } from '../index-
|
|
1
|
+
export { B as ButtonAction, C as CursorFocusState, D as DefaultFrontmatterWidget, E as EditorDialect, a as EditorPresetOptions, b as EditorSection, c as EditorSectionSubtype, d as EditorSectionType, e as EmbedType, G as GeometryListener, N as NavigationHook, O as OverlayAction, f as QueryBlockPreviewOptions, R as RuntimePanelEntry, S as SectionRect, g as SectionState, W as WidgetConfig, h as WidgetProps, i as WidgetRegistry, j as activeCursorSection, k as addRuntimePanel, l as blockContentId, 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, F as frontmatterPreview, H as frontmatterPreviewField, I as getCursorFocusState, J as getOverlayActions, K as gutterHighlightsField, L as gutterUnified, M as handleFenceAutoWrap, P as inlineButtonDecoration, T as lineIdsExtension, U as linkOpen, V as markdownSyntaxHiding, X as markdownTablePreview, Y as navigationFacet, Z as previewDecorations, _ as queryBlockPreview, $ as removeRuntimePanel, a0 as runtimePanelField, a1 as saveBlockQuerySource, a2 as sectionAtPos, a3 as sectionField, a4 as sectionGeometry, a5 as sessionQueryInsert, a6 as sessionQueryWql, a7 as setGutterHighlights, a8 as smartIncrement, a9 as toggleWidgetEdit, aa as urlAtPos, ab as widgetBlockPreview, ac as wodAutoWrap, ad as wodAutocompletion, ae as wodEditorKeymap, af as wodLinter, ag as wodOverlayPanel, ah as workoutLintSource, ai as wrapInTimeFence } from '../index-CTQ7Hrsa.js';
|
|
2
2
|
import '@codemirror/state';
|
|
3
3
|
import '@codemirror/view';
|
|
4
4
|
import '@codemirror/lint';
|
|
@@ -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, getCursorFocusState, getOverlayActions, gutterHighlightsField, gutterUnified, handleFenceAutoWrap, inlineButtonDecoration, lineIdsExtension, linkOpen, markdownSyntaxHiding, markdownTablePreview, navigationFacet, previewDecorations, queryBlockPreview, removeRuntimePanel, runtimePanelField, saveBlockQuerySource, sectionAtPos, sectionField, sectionGeometry, sessionQueryInsert, sessionQueryWql, setGutterHighlights, smartIncrement, toggleWidgetEdit, urlAtPos, widgetBlockPreview, wodAutoWrap, wodAutocompletion, wodEditorKeymap, wodLinter, wodOverlayPanel, workoutLintSource, wrapInTimeFence } from '../chunk-
|
|
1
|
+
export { DefaultFrontmatterWidget, activeCursorSection, addRuntimePanel, blockContentId, configureOverlayActions, cursorFocusExtension, dispatchAddRuntimePanel, dispatchExpandRuntimePanel, dispatchGutterHighlights, dispatchRemoveRuntimePanel, editingWidgetsField, editorPreset, editorTheme, embedPreviewDecorations, expandRuntimePanel, fenceCompletion, findQueryBlockSection, findWorkoutErrors, forceSectionParse, frontmatterPreview, frontmatterPreviewField, getCursorFocusState, getOverlayActions, gutterHighlightsField, gutterUnified, handleFenceAutoWrap, inlineButtonDecoration, lineIdsExtension, linkOpen, markdownSyntaxHiding, markdownTablePreview, navigationFacet, previewDecorations, queryBlockPreview, removeRuntimePanel, runtimePanelField, saveBlockQuerySource, sectionAtPos, sectionField, sectionGeometry, sessionQueryInsert, sessionQueryWql, setGutterHighlights, smartIncrement, toggleWidgetEdit, urlAtPos, widgetBlockPreview, wodAutoWrap, wodAutocompletion, wodEditorKeymap, wodLinter, wodOverlayPanel, workoutLintSource, wrapInTimeFence } from '../chunk-3ANAQJ6S.mjs';
|
|
2
2
|
//# sourceMappingURL=index.mjs.map
|
|
3
3
|
//# sourceMappingURL=index.mjs.map
|
|
@@ -4,7 +4,7 @@ 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 { ScriptBlock, ICodeStatement, IMetric } from '@bitcobblers/wod-wiki-core';
|
|
7
|
-
import { QueryOptions, QueryResult, ParsedFindQuery, FindOptions, FindQueryResult, ParsedRowsQuery, RowsQueryResult,
|
|
7
|
+
import { QueryOptions, QueryResult, ParsedFindQuery, FindOptions, FindQueryResult, ParsedRowsQuery, RowsQueryResult, ParsedAggregateQuery } from '@bitcobblers/wod-wiki-wql';
|
|
8
8
|
import * as react from 'react';
|
|
9
9
|
|
|
10
10
|
declare function editorTheme(isDark: boolean): Extension;
|
|
@@ -178,7 +178,7 @@ interface QueryExecutor {
|
|
|
178
178
|
runRows(parsed: ParsedRowsQuery, options?: {
|
|
179
179
|
anchorNow?: number;
|
|
180
180
|
}): Promise<RowsQueryResult>;
|
|
181
|
-
run?(parsed:
|
|
181
|
+
run?(parsed: ParsedAggregateQuery, options?: QueryOptions): Promise<QueryResult>;
|
|
182
182
|
}
|
|
183
183
|
|
|
184
184
|
interface QueryBlockPreviewOptions {
|
|
@@ -4,7 +4,7 @@ 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 { ScriptBlock, ICodeStatement, IMetric } from '@bitcobblers/wod-wiki-core';
|
|
7
|
-
import { QueryOptions, QueryResult, ParsedFindQuery, FindOptions, FindQueryResult, ParsedRowsQuery, RowsQueryResult,
|
|
7
|
+
import { QueryOptions, QueryResult, ParsedFindQuery, FindOptions, FindQueryResult, ParsedRowsQuery, RowsQueryResult, ParsedAggregateQuery } from '@bitcobblers/wod-wiki-wql';
|
|
8
8
|
import * as react from 'react';
|
|
9
9
|
|
|
10
10
|
declare function editorTheme(isDark: boolean): Extension;
|
|
@@ -178,7 +178,7 @@ interface QueryExecutor {
|
|
|
178
178
|
runRows(parsed: ParsedRowsQuery, options?: {
|
|
179
179
|
anchorNow?: number;
|
|
180
180
|
}): Promise<RowsQueryResult>;
|
|
181
|
-
run?(parsed:
|
|
181
|
+
run?(parsed: ParsedAggregateQuery, options?: QueryOptions): Promise<QueryResult>;
|
|
182
182
|
}
|
|
183
183
|
|
|
184
184
|
interface QueryBlockPreviewOptions {
|
package/dist/index.cjs
CHANGED
|
@@ -1901,6 +1901,7 @@ function restoreFilters(rest) {
|
|
|
1901
1901
|
}
|
|
1902
1902
|
function wqlToClauses(wql2) {
|
|
1903
1903
|
const suffixes = wodWikiWql.parseWqlSuffixes(wql2.trim());
|
|
1904
|
+
if (suffixes.conflicts?.length) return null;
|
|
1904
1905
|
const { where, displayUnit, groupBy, rollup, last, scope, primaryText } = suffixes;
|
|
1905
1906
|
const rowsMatch = /^rows(?:\:([a-zA-Z0-9_-]+))?\:?/.exec(primaryText);
|
|
1906
1907
|
if (rowsMatch) {
|
|
@@ -2475,7 +2476,7 @@ function diagnoseClauses(clauses) {
|
|
|
2475
2476
|
return {
|
|
2476
2477
|
valid: false,
|
|
2477
2478
|
wql: clausesToWql(clauses),
|
|
2478
|
-
ast: { raw: "", error },
|
|
2479
|
+
ast: { family: "aggregate", raw: "", agg: "sum", metric: "", filters: [], groupBy: [], error },
|
|
2479
2480
|
error,
|
|
2480
2481
|
offendingClauseId: clause.id
|
|
2481
2482
|
};
|
|
@@ -2545,7 +2546,7 @@ function WqlDiagnosticsStrip({
|
|
|
2545
2546
|
summary.hasJoin && /* @__PURE__ */ jsxRuntime.jsx("span", { "data-testid": "diag-summary-join", className: "text-primary font-semibold", children: "+join" })
|
|
2546
2547
|
] });
|
|
2547
2548
|
})() }),
|
|
2548
|
-
valid &&
|
|
2549
|
+
valid && wodWikiWql.isAggregateQuery(ast) && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex flex-wrap items-center gap-x-3 text-[11px] opacity-80 border-l border-border/50 pl-3", children: (() => {
|
|
2549
2550
|
const summary = summarizeAggregate(ast);
|
|
2550
2551
|
return /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
2551
2552
|
/* @__PURE__ */ jsxRuntime.jsx(SummaryChip, { label: "agg", value: summary.agg, testId: "diag-summary-agg" }),
|
|
@@ -10784,13 +10785,13 @@ function editorPreset(optionsOrDialect = "markdown") {
|
|
|
10784
10785
|
}
|
|
10785
10786
|
|
|
10786
10787
|
// src/version.ts
|
|
10787
|
-
var VERSION = "0.
|
|
10788
|
-
var GIT_SHA = "
|
|
10789
|
-
var BUILD_TIME = "2026-08-
|
|
10788
|
+
var VERSION = "0.7.38";
|
|
10789
|
+
var GIT_SHA = "172cc75";
|
|
10790
|
+
var BUILD_TIME = "2026-08-25T23:00:14.937Z";
|
|
10790
10791
|
var SEMVER = {
|
|
10791
|
-
version: "0.
|
|
10792
|
-
gitSha: "
|
|
10793
|
-
buildTime: "2026-08-
|
|
10792
|
+
version: "0.7.38",
|
|
10793
|
+
gitSha: "172cc75",
|
|
10794
|
+
buildTime: "2026-08-25T23:00:14.937Z"
|
|
10794
10795
|
};
|
|
10795
10796
|
|
|
10796
10797
|
exports.AGG_OPTIONS = AGG_OPTIONS;
|