@bitcobblers/wod-wiki-ui 0.7.38 → 0.9.40
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-LEM2Y37Q.mjs} +21 -14
- package/dist/chunk-LEM2Y37Q.mjs.map +1 -0
- package/dist/extensions/index.cjs +18 -11
- package/dist/extensions/index.cjs.map +1 -1
- package/dist/extensions/index.mjs +1 -1
- package/dist/index.cjs +24 -17
- 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
|
@@ -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-LEM2Y37Q.mjs';
|
|
2
2
|
//# sourceMappingURL=index.mjs.map
|
|
3
3
|
//# sourceMappingURL=index.mjs.map
|
package/dist/index.cjs
CHANGED
|
@@ -1322,7 +1322,7 @@ function RowsResultsChrome({
|
|
|
1322
1322
|
return;
|
|
1323
1323
|
}
|
|
1324
1324
|
let cancelled = false;
|
|
1325
|
-
const wideQuery = wodWikiWql.parseQuery(`rows:{block:${blockContentId2}}`);
|
|
1325
|
+
const wideQuery = wodWikiWql.parseQuery(`rows:all{block:${blockContentId2}}`);
|
|
1326
1326
|
if (!wodWikiWql.isRowsQuery(wideQuery)) return;
|
|
1327
1327
|
void executor.runRows(wideQuery).then((res) => {
|
|
1328
1328
|
if (!cancelled) setWideResult(res);
|
|
@@ -1795,7 +1795,7 @@ function clausesToWql(clauses) {
|
|
|
1795
1795
|
const filterBraces = filterParts.length > 0 ? `{${filterParts.join(", ")}}` : "";
|
|
1796
1796
|
const source = clauseValue(clauses, "source", "notes");
|
|
1797
1797
|
if (source === "rows") {
|
|
1798
|
-
const output = clauseValue(clauses, "output", "");
|
|
1798
|
+
const output = clauseValue(clauses, "output", "") || "all";
|
|
1799
1799
|
const timeClause2 = clauses.find((c) => c.type === "time");
|
|
1800
1800
|
let timeStr2 = "";
|
|
1801
1801
|
if (timeClause2 && timeClause2.value && timeClause2.value !== "all") {
|
|
@@ -1902,7 +1902,8 @@ function restoreFilters(rest) {
|
|
|
1902
1902
|
function wqlToClauses(wql2) {
|
|
1903
1903
|
const suffixes = wodWikiWql.parseWqlSuffixes(wql2.trim());
|
|
1904
1904
|
if (suffixes.conflicts?.length) return null;
|
|
1905
|
-
const { where, displayUnit, groupBy, rollup,
|
|
1905
|
+
const { where, displayUnit, groupBy, rollup, window: window2, legacyScope, primaryText } = suffixes;
|
|
1906
|
+
if (window2?.kind === "range") return null;
|
|
1906
1907
|
const rowsMatch = /^rows(?:\:([a-zA-Z0-9_-]+))?\:?/.exec(primaryText);
|
|
1907
1908
|
if (rowsMatch) {
|
|
1908
1909
|
if (where || groupBy || rollup) return null;
|
|
@@ -1911,7 +1912,7 @@ function wqlToClauses(wql2) {
|
|
|
1911
1912
|
if (!filterClauses2) return null;
|
|
1912
1913
|
const clauses2 = [
|
|
1913
1914
|
restoreClause("c-source", "source", "rows"),
|
|
1914
|
-
restoreClause("c-time", "time",
|
|
1915
|
+
restoreClause("c-time", "time", window2?.kind === "relative" ? `last ${window2.size}${window2.unit}` : "all"),
|
|
1915
1916
|
...rowsMatch[1] ? [restoreClause("c-output", "output", rowsMatch[1])] : [],
|
|
1916
1917
|
...filterClauses2
|
|
1917
1918
|
];
|
|
@@ -1921,20 +1922,24 @@ function wqlToClauses(wql2) {
|
|
|
1921
1922
|
const headMatch2 = RESTORE_FIND_HEAD_RE.exec(primaryText);
|
|
1922
1923
|
if (!headMatch2) return null;
|
|
1923
1924
|
const targetValue = headMatch2[1];
|
|
1925
|
+
if (!wodWikiWql.WQL_FIND_TARGETS.includes(targetValue)) return null;
|
|
1924
1926
|
const rest2 = primaryText.slice(headMatch2[0].length).trim();
|
|
1925
1927
|
const filterClauses2 = restoreFilters(rest2);
|
|
1926
1928
|
if (!filterClauses2) return null;
|
|
1927
|
-
const timeValue =
|
|
1928
|
-
const
|
|
1929
|
+
const timeValue = window2?.kind === "relative" ? `last ${window2.size}${window2.unit}` : "all";
|
|
1930
|
+
const sourceClauseIdx = filterClauses2.findIndex((c) => c.type === "source");
|
|
1931
|
+
const sourceFromFilter = sourceClauseIdx !== -1 ? filterClauses2[sourceClauseIdx].value : void 0;
|
|
1932
|
+
const scopeValue = legacyScope ?? sourceFromFilter;
|
|
1933
|
+
const remainingFilterClauses = sourceClauseIdx !== -1 ? filterClauses2.filter((_, idx) => idx !== sourceClauseIdx) : filterClauses2;
|
|
1929
1934
|
const sourceValue = targetValue === "block" ? "blocks" : targetValue === "effort" ? "efforts" : !scopeValue || scopeValue === "all" ? "notes" : scopeValue;
|
|
1930
1935
|
const clauses2 = [
|
|
1931
1936
|
restoreClause("c-source", "source", sourceValue),
|
|
1932
1937
|
restoreClause("c-time", "time", timeValue),
|
|
1933
|
-
...
|
|
1938
|
+
...remainingFilterClauses
|
|
1934
1939
|
];
|
|
1935
|
-
if (where) clauses2.push(restoreClause("c-where", "where", where));
|
|
1936
1940
|
return clauses2;
|
|
1937
1941
|
}
|
|
1942
|
+
if (window2) return null;
|
|
1938
1943
|
const headMatch = RESTORE_AGG_HEAD_RE.exec(primaryText);
|
|
1939
1944
|
if (!headMatch) return null;
|
|
1940
1945
|
const aggValue = headMatch[1];
|
|
@@ -2441,10 +2446,12 @@ function AddCalcDropdown({
|
|
|
2441
2446
|
] });
|
|
2442
2447
|
}
|
|
2443
2448
|
function summarizeFind(ast) {
|
|
2449
|
+
const sourceFilter = ast.filters.find((f) => f.key === "source");
|
|
2450
|
+
const scope = sourceFilter ? sourceFilter.values.map((v) => v.value).join(",") : "all";
|
|
2444
2451
|
return {
|
|
2445
2452
|
target: ast.target,
|
|
2446
|
-
scope
|
|
2447
|
-
timeWindow: ast.
|
|
2453
|
+
scope,
|
|
2454
|
+
timeWindow: ast.window ? ast.window.kind === "relative" ? `last ${ast.window.size}${ast.window.unit}` : `from ${ast.window.start}${ast.window.end ? ` to ${ast.window.end}` : ""}` : void 0,
|
|
2448
2455
|
hasJoin: Boolean(ast.join),
|
|
2449
2456
|
filterCount: ast.filters.length
|
|
2450
2457
|
};
|
|
@@ -4639,7 +4646,7 @@ function dispatchExpandRuntimePanel(view, sectionId, expanded) {
|
|
|
4639
4646
|
|
|
4640
4647
|
// src/extensions/sessionQueryBlock.ts
|
|
4641
4648
|
function sessionQueryWql(resultId) {
|
|
4642
|
-
return `rows:{result:${resultId}}`;
|
|
4649
|
+
return `rows:all{result:${resultId}}`;
|
|
4643
4650
|
}
|
|
4644
4651
|
function sessionQueryInsert(state, blockId, resultId, runBlock) {
|
|
4645
4652
|
const sections = state.field(sectionField).sections;
|
|
@@ -10785,13 +10792,13 @@ function editorPreset(optionsOrDialect = "markdown") {
|
|
|
10785
10792
|
}
|
|
10786
10793
|
|
|
10787
10794
|
// src/version.ts
|
|
10788
|
-
var VERSION = "0.
|
|
10789
|
-
var GIT_SHA = "
|
|
10790
|
-
var BUILD_TIME = "2026-08-
|
|
10795
|
+
var VERSION = "0.9.40";
|
|
10796
|
+
var GIT_SHA = "2462ec9";
|
|
10797
|
+
var BUILD_TIME = "2026-08-26T01:04:47.412Z";
|
|
10791
10798
|
var SEMVER = {
|
|
10792
|
-
version: "0.
|
|
10793
|
-
gitSha: "
|
|
10794
|
-
buildTime: "2026-08-
|
|
10799
|
+
version: "0.9.40",
|
|
10800
|
+
gitSha: "2462ec9",
|
|
10801
|
+
buildTime: "2026-08-26T01:04:47.412Z"
|
|
10795
10802
|
};
|
|
10796
10803
|
|
|
10797
10804
|
exports.AGG_OPTIONS = AGG_OPTIONS;
|