@bitcobblers/wod-wiki-ui 0.7.38 → 0.8.39
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-3ANAQJ6S.mjs → chunk-5JJK5ONN.mjs} +7 -6
- package/dist/chunk-5JJK5ONN.mjs.map +1 -0
- package/dist/extensions/index.cjs +4 -3
- package/dist/extensions/index.cjs.map +1 -1
- package/dist/extensions/index.mjs +1 -1
- package/dist/index.cjs +10 -9
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +6 -6
- package/dist/index.d.ts +6 -6
- package/dist/index.mjs +8 -8
- package/dist/index.mjs.map +1 -1
- package/package.json +4 -4
- package/dist/chunk-3ANAQJ6S.mjs.map +0 -1
|
@@ -4,7 +4,7 @@ import { tags, styleTags, Tag } from '@lezer/highlight';
|
|
|
4
4
|
import { RangeSetBuilder, Facet, StateEffect, StateField, Prec, EditorState, EditorSelection, countColumn } from '@codemirror/state';
|
|
5
5
|
import { linter, forEachDiagnostic } from '@codemirror/lint';
|
|
6
6
|
import { whiteboardScriptLanguage, createParser, getAnalyticsFromLogs, whiteboardScript } from '@bitcobblers/wod-wiki-lang';
|
|
7
|
-
import { WQL_SOURCES, WQL_AGGREGATORS, WQL_ROLLUP_PERIODS, WQL_VIRTUAL_DIMS, WQL_TAG_KEYS, WQL_METRIC_AGGREGATES, WQL_METRIC_FAMILIES, WQL_CALC_TARGETS, WQL_DISPLAY_UNITS, WQL_INTENSITY_TIERS, parseQueryWidgetSuffix, WQL_COMPARISON_OPS, parseQuery, isRowsQuery, isDashboardWidgetType, unknownWidgetTypeMessage, resolveWidgetType, PLANNED_WIDGET_TYPES, parseWqlSuffixes, isFindQuery, isAggregateQuery, splitWidgetBody, substituteTokens, unknownTokensMessage, wql, wqlLanguage } from '@bitcobblers/wod-wiki-wql';
|
|
7
|
+
import { WQL_SOURCES, WQL_AGGREGATORS, WQL_ROLLUP_PERIODS, WQL_VIRTUAL_DIMS, WQL_TAG_KEYS, WQL_METRIC_AGGREGATES, WQL_METRIC_FAMILIES, WQL_CALC_TARGETS, WQL_DISPLAY_UNITS, WQL_INTENSITY_TIERS, parseQueryWidgetSuffix, WQL_COMPARISON_OPS, parseQuery, isRowsQuery, isDashboardWidgetType, unknownWidgetTypeMessage, resolveWidgetType, PLANNED_WIDGET_TYPES, parseWqlSuffixes, WQL_FIND_TARGETS, isFindQuery, isAggregateQuery, splitWidgetBody, substituteTokens, unknownTokensMessage, wql, wqlLanguage } from '@bitcobblers/wod-wiki-wql';
|
|
8
8
|
import { clsx } from 'clsx';
|
|
9
9
|
import { twMerge } from 'tailwind-merge';
|
|
10
10
|
import { snippet, autocompletion, closeBrackets, closeBracketsKeymap, CompletionContext, ifNotIn, completeFromList, snippetCompletion } from '@codemirror/autocomplete';
|
|
@@ -1460,7 +1460,7 @@ function dispatchExpandRuntimePanel(view, sectionId, expanded) {
|
|
|
1460
1460
|
|
|
1461
1461
|
// src/extensions/sessionQueryBlock.ts
|
|
1462
1462
|
function sessionQueryWql(resultId) {
|
|
1463
|
-
return `rows:{result:${resultId}}`;
|
|
1463
|
+
return `rows:all{result:${resultId}}`;
|
|
1464
1464
|
}
|
|
1465
1465
|
function sessionQueryInsert(state, blockId, resultId, runBlock) {
|
|
1466
1466
|
const sections = state.field(sectionField).sections;
|
|
@@ -1809,7 +1809,7 @@ function RowsResultsChrome({
|
|
|
1809
1809
|
return;
|
|
1810
1810
|
}
|
|
1811
1811
|
let cancelled = false;
|
|
1812
|
-
const wideQuery = parseQuery(`rows:{block:${blockContentId2}}`);
|
|
1812
|
+
const wideQuery = parseQuery(`rows:all{block:${blockContentId2}}`);
|
|
1813
1813
|
if (!isRowsQuery(wideQuery)) return;
|
|
1814
1814
|
void executor.runRows(wideQuery).then((res) => {
|
|
1815
1815
|
if (!cancelled) setWideResult(res);
|
|
@@ -3004,7 +3004,7 @@ function clausesToWql(clauses) {
|
|
|
3004
3004
|
const filterBraces = filterParts.length > 0 ? `{${filterParts.join(", ")}}` : "";
|
|
3005
3005
|
const source = clauseValue(clauses, "source", "notes");
|
|
3006
3006
|
if (source === "rows") {
|
|
3007
|
-
const output = clauseValue(clauses, "output", "");
|
|
3007
|
+
const output = clauseValue(clauses, "output", "") || "all";
|
|
3008
3008
|
const timeClause2 = clauses.find((c) => c.type === "time");
|
|
3009
3009
|
let timeStr2 = "";
|
|
3010
3010
|
if (timeClause2 && timeClause2.value && timeClause2.value !== "all") {
|
|
@@ -3130,6 +3130,7 @@ function wqlToClauses(wql2) {
|
|
|
3130
3130
|
const headMatch2 = RESTORE_FIND_HEAD_RE.exec(primaryText);
|
|
3131
3131
|
if (!headMatch2) return null;
|
|
3132
3132
|
const targetValue = headMatch2[1];
|
|
3133
|
+
if (!WQL_FIND_TARGETS.includes(targetValue)) return null;
|
|
3133
3134
|
const rest2 = primaryText.slice(headMatch2[0].length).trim();
|
|
3134
3135
|
const filterClauses2 = restoreFilters(rest2);
|
|
3135
3136
|
if (!filterClauses2) return null;
|
|
@@ -10369,5 +10370,5 @@ function editorPreset(optionsOrDialect = "markdown") {
|
|
|
10369
10370
|
}
|
|
10370
10371
|
|
|
10371
10372
|
export { AGG_OPTIONS, AddCalcDropdown, AddFilterDropdown, CLAUSE_META, CONTENT_SOURCES, ClausePopover, ComposerRegistry, CustomSlotPopover, DEFAULT_DIAGNOSTICS_DEBOUNCE_MS, DefaultFrontmatterWidget, GROUPBY_OPTIONS, GoalRings, METRIC_OPTIONS, MULTI_VALUE_TYPES, ProposedMetricBadge, QueryBlockView, QueryValue, ROLLUP_OPTIONS, RowsResultsChrome, RowsTable, SERIES_COLORS, SOURCE_OPTIONS, SUGGESTION_BINDINGS, StackedBar, TIME_OPTIONS, TokenSlotPill, TopList, UNIT_OPTIONS, WHERE_AGGREGATORS, WHERE_METRICS, WHERE_OPERATORS, WidgetChart, WidgetProblemBadge, WqlBars, WqlComposer, WqlDiagnosticsStrip, WqlEmptyState, WqlQueryInspectorModal, WqlTable, WqlTimeseries, ZoneDistribution, activeCursorSection, addRuntimePanel, blockContentId, blockTypesFromBlocks, catalogIdsFromBlocks, clauseToWql, clauseValue, clausesToWql, cn, compactNumber, composerRegistry, configureOverlayActions, cursorFocusExtension, dateRangeSlot, defaultClauses, defaultMetricsClauses, diagnoseClauses, dispatchAddRuntimePanel, dispatchExpandRuntimePanel, dispatchGutterHighlights, dispatchRemoveRuntimePanel, editingWidgetsField, editorPreset, editorTheme, embedPreviewDecorations, expandRuntimePanel, extractBlockQueries, fenceCompletion, findQueryBlockSection, findWorkoutErrors, forceSectionParse, formatTimestamp, frontmatterPreview, frontmatterPreviewField, getClauseMeta, getCursorFocusState, getOverlayActions, getSuggestionBinding, gutterHighlightsField, gutterUnified, handleFenceAutoWrap, hashCode, inlineButtonDecoration, invalidateSuggestions, lineIdsExtension, linkOpen, loadSuggestions, markdownSyntaxHiding, markdownTablePreview, mergeSeries, mergeTagSuggestions, navigationFacet, patchBlockQuery, pivotClauses, previewDecorations, queryBlockPreview, readSessionRpe, removeRuntimePanel, runtimePanelField, saveBlockQuerySource, sectionAtPos, sectionField, sectionGeometry, sessionQueryInsert, sessionQueryWql, setGutterHighlights, setMetricClause, setSuggestionBinding, smartIncrement, sourcePlane, summarizeAggregate, summarizeFind, tagsFromStaticBlocks, toggleWidgetEdit, tooltipTimestamp, urlAtPos, useChartShape, useComposerSlots, useSuggestions, useWqlStageCounts, widgetBlockPreview, wodAutoWrap, wodAutocompletion, wodEditorKeymap, wodLinter, wodOverlayPanel, workoutLintSource, wqlToClauses, wrapInTimeFence };
|
|
10372
|
-
//# sourceMappingURL=chunk-
|
|
10373
|
-
//# sourceMappingURL=chunk-
|
|
10373
|
+
//# sourceMappingURL=chunk-5JJK5ONN.mjs.map
|
|
10374
|
+
//# sourceMappingURL=chunk-5JJK5ONN.mjs.map
|