@bitcobblers/wod-wiki-ui 0.59.2246 → 0.60.2250
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-YCI5DMLM.mjs → chunk-GP26UA75.mjs} +150 -189
- package/dist/chunk-GP26UA75.mjs.map +1 -0
- package/dist/chunk-U2OQIGSB.mjs +66 -0
- package/dist/chunk-U2OQIGSB.mjs.map +1 -0
- package/dist/extensions/index.cjs +175 -153
- package/dist/extensions/index.cjs.map +1 -1
- package/dist/extensions/index.mjs +2 -1
- package/dist/index.cjs +293 -231
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +14 -55
- package/dist/index.d.ts +14 -55
- package/dist/index.mjs +107 -62
- package/dist/index.mjs.map +1 -1
- package/dist/primitives/index.cjs +858 -0
- package/dist/primitives/index.cjs.map +1 -0
- package/dist/primitives/index.d.cts +103 -0
- package/dist/primitives/index.d.ts +103 -0
- package/dist/primitives/index.mjs +240 -0
- package/dist/primitives/index.mjs.map +1 -0
- package/dist/styles.css +105 -0
- package/package.json +17 -4
- package/dist/chunk-YCI5DMLM.mjs.map +0 -1
package/dist/index.d.cts
CHANGED
|
@@ -199,22 +199,9 @@ declare function ProposedMetricBadge({ metric }: {
|
|
|
199
199
|
|
|
200
200
|
interface DashboardTokenControlsProps {
|
|
201
201
|
tokens: DashboardToken[];
|
|
202
|
-
/** Current value per token name (defaults applied by the caller). */
|
|
203
202
|
values: Record<string, string>;
|
|
204
|
-
/**
|
|
205
|
-
* Present when the note is editable — a change commits exactly once, on an
|
|
206
|
-
* explicit action: a list-token segment click, or a scalar-token blur /
|
|
207
|
-
* Enter. Keystrokes only edit the local draft — they never rewrite the
|
|
208
|
-
* note or re-run widgets mid-edit.
|
|
209
|
-
*/
|
|
210
203
|
onChange?: (name: string, value: string) => void;
|
|
211
204
|
}
|
|
212
|
-
/**
|
|
213
|
-
* DashboardTokenControls — the control row a dashboard note's frontmatter
|
|
214
|
-
* tokens render as (#899): scalar tokens become inputs, list tokens segmented
|
|
215
|
-
* controls (first entry = default). Read-only views (no onChange) render the
|
|
216
|
-
* current values as static text.
|
|
217
|
-
*/
|
|
218
205
|
declare function DashboardTokenControls({ tokens, values, onChange }: DashboardTokenControlsProps): react.JSX.Element | null;
|
|
219
206
|
|
|
220
207
|
/** A widget's grid placement — column span 1..4, or a forced full row. */
|
|
@@ -577,7 +564,7 @@ declare const KIND_OPTIONS: {
|
|
|
577
564
|
}[];
|
|
578
565
|
/** Singular find targets — the colon `<target>` head (C7 closed enum). */
|
|
579
566
|
declare const TARGET_OPTIONS: {
|
|
580
|
-
value: "page" | "note" | "block" | "feed" | "effort" | "segment" | "event" | "
|
|
567
|
+
value: "page" | "note" | "block" | "feed" | "effort" | "segment" | "event" | "notebook" | "tag" | "equipment" | "session";
|
|
581
568
|
label: string;
|
|
582
569
|
description: string;
|
|
583
570
|
}[];
|
|
@@ -592,8 +579,8 @@ declare const SOURCE_OPTIONS: {
|
|
|
592
579
|
/** Output-statement planes for `plane:` on `:session` (executor narrows
|
|
593
580
|
* events by the promoted `outputType` column). */
|
|
594
581
|
declare const PLANE_OPTIONS: {
|
|
595
|
-
value: "
|
|
596
|
-
label: "
|
|
582
|
+
value: "load" | "system" | "segment" | "completion" | "event" | "compiler" | "analytics" | "wellness";
|
|
583
|
+
label: "load" | "system" | "segment" | "completion" | "event" | "compiler" | "analytics" | "wellness";
|
|
597
584
|
}[];
|
|
598
585
|
declare const TIME_OPTIONS: {
|
|
599
586
|
value: string;
|
|
@@ -612,12 +599,12 @@ declare const ROLLUP_OPTIONS: {
|
|
|
612
599
|
label: string;
|
|
613
600
|
}[];
|
|
614
601
|
declare const GROUPBY_OPTIONS: {
|
|
615
|
-
value: "format" | "origin" | "result" | "day" | "page" | "domain" | "round" | "metric" | "note" | "block" | "week" | "effort" | "intensity" | "
|
|
616
|
-
label: "format" | "origin" | "result" | "day" | "page" | "domain" | "round" | "metric" | "note" | "block" | "week" | "effort" | "intensity" | "
|
|
602
|
+
value: "format" | "origin" | "result" | "day" | "page" | "domain" | "round" | "metric" | "note" | "block" | "week" | "effort" | "intensity" | "equipment" | "quality" | "intent" | "discipline" | "session" | "grade" | "grain" | "tags";
|
|
603
|
+
label: "format" | "origin" | "result" | "day" | "page" | "domain" | "round" | "metric" | "note" | "block" | "week" | "effort" | "intensity" | "equipment" | "quality" | "intent" | "discipline" | "session" | "grade" | "grain" | "tags";
|
|
617
604
|
}[];
|
|
618
605
|
declare const METRIC_OPTIONS: {
|
|
619
|
-
value: "distance" | "resistance" | "tis" | "elapsed" | "reps" | "calc.e1rm" | "totalVolume" | "totalDistance" | "sessionLoad" | "power" | "pace" | "calc.metMinutes" | "calc.acwr" | "calc.monotony" | "calc.strain" | "calc.ctl" | "calc.atl" | "calc.tsb" | "calc.soreness" | "calc.sleep" | "calc.
|
|
620
|
-
label: "distance" | "resistance" | "tis" | "elapsed" | "reps" | "calc.e1rm" | "totalVolume" | "totalDistance" | "sessionLoad" | "power" | "pace" | "calc.metMinutes" | "calc.acwr" | "calc.monotony" | "calc.strain" | "calc.ctl" | "calc.atl" | "calc.tsb" | "calc.soreness" | "calc.sleep" | "calc.
|
|
606
|
+
value: "calc.hrv" | "distance" | "resistance" | "tis" | "elapsed" | "reps" | "calc.e1rm" | "totalVolume" | "totalDistance" | "sessionLoad" | "power" | "pace" | "calc.metMinutes" | "calc.acwr" | "calc.monotony" | "calc.strain" | "calc.ctl" | "calc.atl" | "calc.tsb" | "calc.soreness" | "calc.sleep" | "calc.readiness" | "calc.mvcBw" | "calc.ef" | "calc.adherence" | "calc.pct1rm" | "calc.sends";
|
|
607
|
+
label: "calc.hrv" | "distance" | "resistance" | "tis" | "elapsed" | "reps" | "calc.e1rm" | "totalVolume" | "totalDistance" | "sessionLoad" | "power" | "pace" | "calc.metMinutes" | "calc.acwr" | "calc.monotony" | "calc.strain" | "calc.ctl" | "calc.atl" | "calc.tsb" | "calc.soreness" | "calc.sleep" | "calc.readiness" | "calc.mvcBw" | "calc.ef" | "calc.adherence" | "calc.pct1rm" | "calc.sends";
|
|
621
608
|
}[];
|
|
622
609
|
declare const UNIT_OPTIONS: {
|
|
623
610
|
value: "kg" | "lb";
|
|
@@ -933,43 +920,15 @@ declare function removeSeriesLayer(obj: QueryBlockObject, id: string): QueryBloc
|
|
|
933
920
|
declare function QueryObjectBuilder({ value, onChange, density, readOnly, executor, tokenValues, preferredUnit, rangeStart, rangeEnd, preferredChoices, subsetQuery, destination, onValidationChange, onSubmit, actionLabel, className, }: QueryObjectBuilderProps): react.JSX.Element;
|
|
934
921
|
|
|
935
922
|
interface EditorDialogProps {
|
|
936
|
-
/** Controls visibility; the dialog unmounts its portal when closed. */
|
|
937
923
|
open: boolean;
|
|
938
924
|
onClose: () => void;
|
|
939
|
-
/** Dialog heading (aria-labelledby target). */
|
|
940
925
|
title: string;
|
|
941
|
-
/** Optional secondary line under the title (aria-describedby target). */
|
|
942
926
|
description?: string;
|
|
943
|
-
/** Body content — scrolls independently of the header/footer. */
|
|
944
927
|
children: ReactNode;
|
|
945
|
-
/** Sticky footer (e.g. Cancel/Save) — pinned above the keyboard on mobile. */
|
|
946
928
|
footer?: ReactNode;
|
|
947
|
-
/** 'default' (centered/full-screen, unchanged) or 'sheet' (mobile bottom
|
|
948
|
-
* sheet over the lower visible viewport, non-input initial focus,
|
|
949
|
-
* safe-area footer; desktop keeps the centered panel). */
|
|
950
929
|
presentation?: 'default' | 'sheet';
|
|
951
930
|
}
|
|
952
|
-
|
|
953
|
-
* EditorDialog — accessible editor surface shared by dashboard/effort/note
|
|
954
|
-
* editing flows.
|
|
955
|
-
*
|
|
956
|
-
* Deliberately NOT a native `<dialog>`: the top layer would obscure any
|
|
957
|
-
* body-portaled surfaces a host renders above it (the WQL composer's
|
|
958
|
-
* hover/touch affordances, palette results). This renders a plain fixed
|
|
959
|
-
* overlay via portal, so portaled content keeps painting and receiving
|
|
960
|
-
* clicks/focus above it.
|
|
961
|
-
*
|
|
962
|
-
* Focus containment is lenient by the same constraint: Tab cycles within the
|
|
963
|
-
* dialog only while focus is inside it — focus that moves into a body-portaled
|
|
964
|
-
* popover is never yanked back, and the popover keeps its own keyboard
|
|
965
|
-
* handling. Escape is handled at the dialog container, so Escape consumed by
|
|
966
|
-
* a popover (e.g. to dismiss it) does not also close the dialog.
|
|
967
|
-
*
|
|
968
|
-
* Mobile (< sm): full visual-viewport screen driven by `window.visualViewport`
|
|
969
|
-
* (falls back to `100dvh`) — the keyboard shrinking the viewport lifts the
|
|
970
|
-
* footer, never the focused field. Desktop (sm+): contained centered panel.
|
|
971
|
-
*/
|
|
972
|
-
declare function EditorDialog({ open, onClose, title, description, children, footer, presentation, }: EditorDialogProps): react.ReactPortal | null;
|
|
931
|
+
declare function EditorDialog({ open, onClose, title, description, children, footer, presentation, }: EditorDialogProps): react.JSX.Element;
|
|
973
932
|
|
|
974
933
|
interface VisualViewportRect {
|
|
975
934
|
/**
|
|
@@ -1017,13 +976,13 @@ declare function patchBlockQuery(blockContent: string, newQuery: string, queryIn
|
|
|
1017
976
|
* Auto-generated build version metadata.
|
|
1018
977
|
* Do not edit directly; updated by scripts/stamp-version.ts
|
|
1019
978
|
*/
|
|
1020
|
-
declare const VERSION = "0.
|
|
1021
|
-
declare const GIT_SHA = "
|
|
1022
|
-
declare const BUILD_TIME = "2026-11-
|
|
979
|
+
declare const VERSION = "0.60.2250";
|
|
980
|
+
declare const GIT_SHA = "36fc312";
|
|
981
|
+
declare const BUILD_TIME = "2026-11-19T15:09:30.936Z";
|
|
1023
982
|
declare const SEMVER: {
|
|
1024
|
-
readonly version: "0.
|
|
1025
|
-
readonly gitSha: "
|
|
1026
|
-
readonly buildTime: "2026-11-
|
|
983
|
+
readonly version: "0.60.2250";
|
|
984
|
+
readonly gitSha: "36fc312";
|
|
985
|
+
readonly buildTime: "2026-11-19T15:09:30.936Z";
|
|
1027
986
|
};
|
|
1028
987
|
|
|
1029
988
|
export { AGG_OPTIONS, ANALYTICS_UNIT_STORAGE_KEY, type AnalyticsQueriesState, type AnalyticsQueryDef, type AnalyticsRangeWeeks, type AnalyticsUnit, AnalyticsUnitPreference, type AnalyticsUnitPreferenceProps, BUILD_TIME, CANONICAL_BLOCK_TYPES, CLAUSE_META, CODEMIRROR_SINGLETON_DEPS, type ChartShape, type ClauseMeta, type ClauseSuggestions, type ClauseType, ComposerRegistry, type CustomSlotDefinition, type CustomSlotEditorProps, DEFAULT_ANALYTICS_UNIT, DEFAULT_DIAGNOSTICS_DEBOUNCE_MS, type DashboardHeadingAnchor, DashboardTokenControls, type DashboardTokenControlsProps, DashboardView, type DashboardViewProps, type DateRange, EditorDialog, type EditorDialogProps, type ExecutorDocumentHostOptions, type ExtractedQuery, type FilterTypeaheadCandidate, type FilterTypeaheadMatch, GIT_SHA, GROUPBY_OPTIONS, GoalRings, type GoalRingsProps, InlineMetricEditPayload, KIND_OPTIONS, METRIC_OPTIONS, MULTI_VALUE_TYPES, type MergedPoint, OutputFilterInput, PLANE_OPTIONS, PRBadge, type PRBadgeProps, ProposedMetricBadge, QueryBlockView, type QueryBlockViewProps, type QueryClause, type QueryDraft, QueryExecutor, QueryObjectBuilder, type QueryObjectBuilderDensity, type QueryObjectBuilderProps, type QueryObjectValidationState, QueryValue, type QueryValueProps, ROLLUP_OPTIONS, RangeSelector, type RangeSelectorProps, RowPrHighlight, RowsResultsChrome, type RowsResultsChromeProps, RowsTable, type RowsTableProps, SEMVER, SERIES_COLORS, SOURCE_OPTIONS, SUGGESTION_BINDINGS, SessionTableSortSpec, StackedBar, type StackedBarProps, type StorageLike, type SuggestionBinding, type SuggestionCachePolicy, type SuggestionItem, TARGET_OPTIONS, TIME_OPTIONS, TokenSlotPill, type TokenSlotPillProps, TopList, type TopListProps, UNIT_OPTIONS, VERSION, type VisualViewportRect, WHERE_AGGREGATORS, WHERE_METRICS, WidgetChart, type WidgetChartProps, WidgetEditButton, WidgetFrame, type WidgetFrameProps, WidgetProblemBadge, type WidgetRunResult, type WidgetSpanOption, WidgetToolButton, type WqlAggregateSummary, WqlBars, type WqlBarsProps, WqlComposer, type WqlComposerProps, type WqlDiagnostics, WqlDiagnosticsStrip, type WqlDiagnosticsStripProps, WqlEmptyState, type WqlEmptyStateProps, type WqlExecutor, type WqlFindSummary, type WqlPipelineSummary, WqlQueryInspectorModal, type WqlQueryInspectorModalProps, type WqlSegmentEditRequest, type WqlStageCounts, WqlTable, type WqlTableProps, WqlTimeseries, type WqlTimeseriesProps, type WqlValidationState, ZoneDistribution, type ZoneDistributionProps, bindTokenParamIntoWql, bindTokenToQueryObject, blockTypesFromBlocks, canonicalSuggestionItems, cn, compactNumber, composerRegistry, computeSessionPrHighlights, createExecutorDocumentHost, cycleBaselineLayer, dateRangeSlot, editQueryClause, extractBlockQueries, formatTimeseriesTick, formatTimeseriesTooltipValue, formatTimestamp, getClauseMeta, getDashboardEffectiveUnit, getEffectiveAnalyticsUnit, getSuggestionBinding, hashCode, invalidateSuggestions, loadSuggestions, matchFilterTypeahead, mergeSeries, mergeSuggestionItems, mergeTagSuggestions, normalizeSimplePipelineToAggregate, notebookSlugsFromBlocks, outputToRunResult, outputsToRunResult, patchBlockQuery, primaryQueryOf, promoteFindToChartObject, readSessionRpe, readStoredUnit, removeSeriesLayer, resolveQueryDraft, setPrimaryQueryOnObject, setSuggestionBinding, summarizeAggregate, summarizeFind, summarizePipeline, tagsFromStaticBlocks, toChartResult, toggleCompareLayer, toggleGoalLayer, tooltipTimestamp, useAnalyticsQueries, useAnalyticsUnitPreference, useChartShape, useComposerSlots, useSuggestions, useVisualViewportRect, useWqlStageCounts, wqlToPills };
|
package/dist/index.d.ts
CHANGED
|
@@ -199,22 +199,9 @@ declare function ProposedMetricBadge({ metric }: {
|
|
|
199
199
|
|
|
200
200
|
interface DashboardTokenControlsProps {
|
|
201
201
|
tokens: DashboardToken[];
|
|
202
|
-
/** Current value per token name (defaults applied by the caller). */
|
|
203
202
|
values: Record<string, string>;
|
|
204
|
-
/**
|
|
205
|
-
* Present when the note is editable — a change commits exactly once, on an
|
|
206
|
-
* explicit action: a list-token segment click, or a scalar-token blur /
|
|
207
|
-
* Enter. Keystrokes only edit the local draft — they never rewrite the
|
|
208
|
-
* note or re-run widgets mid-edit.
|
|
209
|
-
*/
|
|
210
203
|
onChange?: (name: string, value: string) => void;
|
|
211
204
|
}
|
|
212
|
-
/**
|
|
213
|
-
* DashboardTokenControls — the control row a dashboard note's frontmatter
|
|
214
|
-
* tokens render as (#899): scalar tokens become inputs, list tokens segmented
|
|
215
|
-
* controls (first entry = default). Read-only views (no onChange) render the
|
|
216
|
-
* current values as static text.
|
|
217
|
-
*/
|
|
218
205
|
declare function DashboardTokenControls({ tokens, values, onChange }: DashboardTokenControlsProps): react.JSX.Element | null;
|
|
219
206
|
|
|
220
207
|
/** A widget's grid placement — column span 1..4, or a forced full row. */
|
|
@@ -577,7 +564,7 @@ declare const KIND_OPTIONS: {
|
|
|
577
564
|
}[];
|
|
578
565
|
/** Singular find targets — the colon `<target>` head (C7 closed enum). */
|
|
579
566
|
declare const TARGET_OPTIONS: {
|
|
580
|
-
value: "page" | "note" | "block" | "feed" | "effort" | "segment" | "event" | "
|
|
567
|
+
value: "page" | "note" | "block" | "feed" | "effort" | "segment" | "event" | "notebook" | "tag" | "equipment" | "session";
|
|
581
568
|
label: string;
|
|
582
569
|
description: string;
|
|
583
570
|
}[];
|
|
@@ -592,8 +579,8 @@ declare const SOURCE_OPTIONS: {
|
|
|
592
579
|
/** Output-statement planes for `plane:` on `:session` (executor narrows
|
|
593
580
|
* events by the promoted `outputType` column). */
|
|
594
581
|
declare const PLANE_OPTIONS: {
|
|
595
|
-
value: "
|
|
596
|
-
label: "
|
|
582
|
+
value: "load" | "system" | "segment" | "completion" | "event" | "compiler" | "analytics" | "wellness";
|
|
583
|
+
label: "load" | "system" | "segment" | "completion" | "event" | "compiler" | "analytics" | "wellness";
|
|
597
584
|
}[];
|
|
598
585
|
declare const TIME_OPTIONS: {
|
|
599
586
|
value: string;
|
|
@@ -612,12 +599,12 @@ declare const ROLLUP_OPTIONS: {
|
|
|
612
599
|
label: string;
|
|
613
600
|
}[];
|
|
614
601
|
declare const GROUPBY_OPTIONS: {
|
|
615
|
-
value: "format" | "origin" | "result" | "day" | "page" | "domain" | "round" | "metric" | "note" | "block" | "week" | "effort" | "intensity" | "
|
|
616
|
-
label: "format" | "origin" | "result" | "day" | "page" | "domain" | "round" | "metric" | "note" | "block" | "week" | "effort" | "intensity" | "
|
|
602
|
+
value: "format" | "origin" | "result" | "day" | "page" | "domain" | "round" | "metric" | "note" | "block" | "week" | "effort" | "intensity" | "equipment" | "quality" | "intent" | "discipline" | "session" | "grade" | "grain" | "tags";
|
|
603
|
+
label: "format" | "origin" | "result" | "day" | "page" | "domain" | "round" | "metric" | "note" | "block" | "week" | "effort" | "intensity" | "equipment" | "quality" | "intent" | "discipline" | "session" | "grade" | "grain" | "tags";
|
|
617
604
|
}[];
|
|
618
605
|
declare const METRIC_OPTIONS: {
|
|
619
|
-
value: "distance" | "resistance" | "tis" | "elapsed" | "reps" | "calc.e1rm" | "totalVolume" | "totalDistance" | "sessionLoad" | "power" | "pace" | "calc.metMinutes" | "calc.acwr" | "calc.monotony" | "calc.strain" | "calc.ctl" | "calc.atl" | "calc.tsb" | "calc.soreness" | "calc.sleep" | "calc.
|
|
620
|
-
label: "distance" | "resistance" | "tis" | "elapsed" | "reps" | "calc.e1rm" | "totalVolume" | "totalDistance" | "sessionLoad" | "power" | "pace" | "calc.metMinutes" | "calc.acwr" | "calc.monotony" | "calc.strain" | "calc.ctl" | "calc.atl" | "calc.tsb" | "calc.soreness" | "calc.sleep" | "calc.
|
|
606
|
+
value: "calc.hrv" | "distance" | "resistance" | "tis" | "elapsed" | "reps" | "calc.e1rm" | "totalVolume" | "totalDistance" | "sessionLoad" | "power" | "pace" | "calc.metMinutes" | "calc.acwr" | "calc.monotony" | "calc.strain" | "calc.ctl" | "calc.atl" | "calc.tsb" | "calc.soreness" | "calc.sleep" | "calc.readiness" | "calc.mvcBw" | "calc.ef" | "calc.adherence" | "calc.pct1rm" | "calc.sends";
|
|
607
|
+
label: "calc.hrv" | "distance" | "resistance" | "tis" | "elapsed" | "reps" | "calc.e1rm" | "totalVolume" | "totalDistance" | "sessionLoad" | "power" | "pace" | "calc.metMinutes" | "calc.acwr" | "calc.monotony" | "calc.strain" | "calc.ctl" | "calc.atl" | "calc.tsb" | "calc.soreness" | "calc.sleep" | "calc.readiness" | "calc.mvcBw" | "calc.ef" | "calc.adherence" | "calc.pct1rm" | "calc.sends";
|
|
621
608
|
}[];
|
|
622
609
|
declare const UNIT_OPTIONS: {
|
|
623
610
|
value: "kg" | "lb";
|
|
@@ -933,43 +920,15 @@ declare function removeSeriesLayer(obj: QueryBlockObject, id: string): QueryBloc
|
|
|
933
920
|
declare function QueryObjectBuilder({ value, onChange, density, readOnly, executor, tokenValues, preferredUnit, rangeStart, rangeEnd, preferredChoices, subsetQuery, destination, onValidationChange, onSubmit, actionLabel, className, }: QueryObjectBuilderProps): react.JSX.Element;
|
|
934
921
|
|
|
935
922
|
interface EditorDialogProps {
|
|
936
|
-
/** Controls visibility; the dialog unmounts its portal when closed. */
|
|
937
923
|
open: boolean;
|
|
938
924
|
onClose: () => void;
|
|
939
|
-
/** Dialog heading (aria-labelledby target). */
|
|
940
925
|
title: string;
|
|
941
|
-
/** Optional secondary line under the title (aria-describedby target). */
|
|
942
926
|
description?: string;
|
|
943
|
-
/** Body content — scrolls independently of the header/footer. */
|
|
944
927
|
children: ReactNode;
|
|
945
|
-
/** Sticky footer (e.g. Cancel/Save) — pinned above the keyboard on mobile. */
|
|
946
928
|
footer?: ReactNode;
|
|
947
|
-
/** 'default' (centered/full-screen, unchanged) or 'sheet' (mobile bottom
|
|
948
|
-
* sheet over the lower visible viewport, non-input initial focus,
|
|
949
|
-
* safe-area footer; desktop keeps the centered panel). */
|
|
950
929
|
presentation?: 'default' | 'sheet';
|
|
951
930
|
}
|
|
952
|
-
|
|
953
|
-
* EditorDialog — accessible editor surface shared by dashboard/effort/note
|
|
954
|
-
* editing flows.
|
|
955
|
-
*
|
|
956
|
-
* Deliberately NOT a native `<dialog>`: the top layer would obscure any
|
|
957
|
-
* body-portaled surfaces a host renders above it (the WQL composer's
|
|
958
|
-
* hover/touch affordances, palette results). This renders a plain fixed
|
|
959
|
-
* overlay via portal, so portaled content keeps painting and receiving
|
|
960
|
-
* clicks/focus above it.
|
|
961
|
-
*
|
|
962
|
-
* Focus containment is lenient by the same constraint: Tab cycles within the
|
|
963
|
-
* dialog only while focus is inside it — focus that moves into a body-portaled
|
|
964
|
-
* popover is never yanked back, and the popover keeps its own keyboard
|
|
965
|
-
* handling. Escape is handled at the dialog container, so Escape consumed by
|
|
966
|
-
* a popover (e.g. to dismiss it) does not also close the dialog.
|
|
967
|
-
*
|
|
968
|
-
* Mobile (< sm): full visual-viewport screen driven by `window.visualViewport`
|
|
969
|
-
* (falls back to `100dvh`) — the keyboard shrinking the viewport lifts the
|
|
970
|
-
* footer, never the focused field. Desktop (sm+): contained centered panel.
|
|
971
|
-
*/
|
|
972
|
-
declare function EditorDialog({ open, onClose, title, description, children, footer, presentation, }: EditorDialogProps): react.ReactPortal | null;
|
|
931
|
+
declare function EditorDialog({ open, onClose, title, description, children, footer, presentation, }: EditorDialogProps): react.JSX.Element;
|
|
973
932
|
|
|
974
933
|
interface VisualViewportRect {
|
|
975
934
|
/**
|
|
@@ -1017,13 +976,13 @@ declare function patchBlockQuery(blockContent: string, newQuery: string, queryIn
|
|
|
1017
976
|
* Auto-generated build version metadata.
|
|
1018
977
|
* Do not edit directly; updated by scripts/stamp-version.ts
|
|
1019
978
|
*/
|
|
1020
|
-
declare const VERSION = "0.
|
|
1021
|
-
declare const GIT_SHA = "
|
|
1022
|
-
declare const BUILD_TIME = "2026-11-
|
|
979
|
+
declare const VERSION = "0.60.2250";
|
|
980
|
+
declare const GIT_SHA = "36fc312";
|
|
981
|
+
declare const BUILD_TIME = "2026-11-19T15:09:30.936Z";
|
|
1023
982
|
declare const SEMVER: {
|
|
1024
|
-
readonly version: "0.
|
|
1025
|
-
readonly gitSha: "
|
|
1026
|
-
readonly buildTime: "2026-11-
|
|
983
|
+
readonly version: "0.60.2250";
|
|
984
|
+
readonly gitSha: "36fc312";
|
|
985
|
+
readonly buildTime: "2026-11-19T15:09:30.936Z";
|
|
1027
986
|
};
|
|
1028
987
|
|
|
1029
988
|
export { AGG_OPTIONS, ANALYTICS_UNIT_STORAGE_KEY, type AnalyticsQueriesState, type AnalyticsQueryDef, type AnalyticsRangeWeeks, type AnalyticsUnit, AnalyticsUnitPreference, type AnalyticsUnitPreferenceProps, BUILD_TIME, CANONICAL_BLOCK_TYPES, CLAUSE_META, CODEMIRROR_SINGLETON_DEPS, type ChartShape, type ClauseMeta, type ClauseSuggestions, type ClauseType, ComposerRegistry, type CustomSlotDefinition, type CustomSlotEditorProps, DEFAULT_ANALYTICS_UNIT, DEFAULT_DIAGNOSTICS_DEBOUNCE_MS, type DashboardHeadingAnchor, DashboardTokenControls, type DashboardTokenControlsProps, DashboardView, type DashboardViewProps, type DateRange, EditorDialog, type EditorDialogProps, type ExecutorDocumentHostOptions, type ExtractedQuery, type FilterTypeaheadCandidate, type FilterTypeaheadMatch, GIT_SHA, GROUPBY_OPTIONS, GoalRings, type GoalRingsProps, InlineMetricEditPayload, KIND_OPTIONS, METRIC_OPTIONS, MULTI_VALUE_TYPES, type MergedPoint, OutputFilterInput, PLANE_OPTIONS, PRBadge, type PRBadgeProps, ProposedMetricBadge, QueryBlockView, type QueryBlockViewProps, type QueryClause, type QueryDraft, QueryExecutor, QueryObjectBuilder, type QueryObjectBuilderDensity, type QueryObjectBuilderProps, type QueryObjectValidationState, QueryValue, type QueryValueProps, ROLLUP_OPTIONS, RangeSelector, type RangeSelectorProps, RowPrHighlight, RowsResultsChrome, type RowsResultsChromeProps, RowsTable, type RowsTableProps, SEMVER, SERIES_COLORS, SOURCE_OPTIONS, SUGGESTION_BINDINGS, SessionTableSortSpec, StackedBar, type StackedBarProps, type StorageLike, type SuggestionBinding, type SuggestionCachePolicy, type SuggestionItem, TARGET_OPTIONS, TIME_OPTIONS, TokenSlotPill, type TokenSlotPillProps, TopList, type TopListProps, UNIT_OPTIONS, VERSION, type VisualViewportRect, WHERE_AGGREGATORS, WHERE_METRICS, WidgetChart, type WidgetChartProps, WidgetEditButton, WidgetFrame, type WidgetFrameProps, WidgetProblemBadge, type WidgetRunResult, type WidgetSpanOption, WidgetToolButton, type WqlAggregateSummary, WqlBars, type WqlBarsProps, WqlComposer, type WqlComposerProps, type WqlDiagnostics, WqlDiagnosticsStrip, type WqlDiagnosticsStripProps, WqlEmptyState, type WqlEmptyStateProps, type WqlExecutor, type WqlFindSummary, type WqlPipelineSummary, WqlQueryInspectorModal, type WqlQueryInspectorModalProps, type WqlSegmentEditRequest, type WqlStageCounts, WqlTable, type WqlTableProps, WqlTimeseries, type WqlTimeseriesProps, type WqlValidationState, ZoneDistribution, type ZoneDistributionProps, bindTokenParamIntoWql, bindTokenToQueryObject, blockTypesFromBlocks, canonicalSuggestionItems, cn, compactNumber, composerRegistry, computeSessionPrHighlights, createExecutorDocumentHost, cycleBaselineLayer, dateRangeSlot, editQueryClause, extractBlockQueries, formatTimeseriesTick, formatTimeseriesTooltipValue, formatTimestamp, getClauseMeta, getDashboardEffectiveUnit, getEffectiveAnalyticsUnit, getSuggestionBinding, hashCode, invalidateSuggestions, loadSuggestions, matchFilterTypeahead, mergeSeries, mergeSuggestionItems, mergeTagSuggestions, normalizeSimplePipelineToAggregate, notebookSlugsFromBlocks, outputToRunResult, outputsToRunResult, patchBlockQuery, primaryQueryOf, promoteFindToChartObject, readSessionRpe, readStoredUnit, removeSeriesLayer, resolveQueryDraft, setPrimaryQueryOnObject, setSuggestionBinding, summarizeAggregate, summarizeFind, summarizePipeline, tagsFromStaticBlocks, toChartResult, toggleCompareLayer, toggleGoalLayer, tooltipTimestamp, useAnalyticsQueries, useAnalyticsUnitPreference, useChartShape, useComposerSlots, useSuggestions, useVisualViewportRect, useWqlStageCounts, wqlToPills };
|
package/dist/index.mjs
CHANGED
|
@@ -1,7 +1,11 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export { AGG_OPTIONS, CANONICAL_BLOCK_TYPES, CLAUSE_META, CONTENT_GROUPING_DIMENSIONS, ComposerRegistry, DEFAULT_DIAGNOSTICS_DEBOUNCE_MS, DEFAULT_OUTPUT_FILTERS, DEFAULT_PRIMARY_FILTER, DefaultFrontmatterWidget, EditorDialog, GROUPBY_OPTIONS, GoalRings, INTERNAL_FRONTMATTER_KEYS, KIND_OPTIONS, METRIC_OPTIONS, MULTI_VALUE_TYPES, MetricBadge, OUTPUT_TYPE_CLASS, OUTPUT_TYPE_DOT, OutputFilterPills, OutputStatementsTable, PLANE_OPTIONS, PRBadge, ProposedMetricBadge, QueryBlockView, QueryObjectBuilder, QueryValue, ROLLUP_OPTIONS, RowsResultsChrome, RowsTable, SERIES_COLORS, SOURCE_OPTIONS, SUGGESTION_BINDINGS, StackedBar, TARGET_OPTIONS, TIME_OPTIONS, TONE_CLASS, TokenSlotPill, TopList, UNIT_OPTIONS, WHERE_AGGREGATORS, WHERE_METRICS, WidgetChart, WidgetProblemBadge, WqlBars, WqlComposer, WqlDiagnosticsStrip, WqlEmptyState, WqlQueryInspectorModal, WqlTable, WqlTimeseries, ZoneDistribution, activeCursorSection, addRuntimePanel, affiliateTagFacet, applyAmazonAffiliateTag, attachmentUrlFacet, autocompleteTooltipTheme, bindTokenParamIntoWql, bindTokenToQueryObject, blockContentId, blockTypesFromBlocks, canonicalSuggestionItems,
|
|
1
|
+
import { WidgetProblemBadge, WidgetChart, createExecutorDocumentHost, outputsToRunResult, outputToRunResult } from './chunk-GP26UA75.mjs';
|
|
2
|
+
export { AGG_OPTIONS, CANONICAL_BLOCK_TYPES, CLAUSE_META, CONTENT_GROUPING_DIMENSIONS, ComposerRegistry, DEFAULT_DIAGNOSTICS_DEBOUNCE_MS, DEFAULT_OUTPUT_FILTERS, DEFAULT_PRIMARY_FILTER, DefaultFrontmatterWidget, EditorDialog, GROUPBY_OPTIONS, GoalRings, INTERNAL_FRONTMATTER_KEYS, KIND_OPTIONS, METRIC_OPTIONS, MULTI_VALUE_TYPES, MetricBadge, OUTPUT_TYPE_CLASS, OUTPUT_TYPE_DOT, OutputFilterPills, OutputStatementsTable, PLANE_OPTIONS, PRBadge, ProposedMetricBadge, QueryBlockView, QueryObjectBuilder, QueryValue, ROLLUP_OPTIONS, RowsResultsChrome, RowsTable, SERIES_COLORS, SOURCE_OPTIONS, SUGGESTION_BINDINGS, StackedBar, TARGET_OPTIONS, TIME_OPTIONS, TONE_CLASS, TokenSlotPill, TopList, UNIT_OPTIONS, WHERE_AGGREGATORS, WHERE_METRICS, WidgetChart, WidgetProblemBadge, WqlBars, WqlComposer, WqlDiagnosticsStrip, WqlEmptyState, WqlQueryInspectorModal, WqlTable, WqlTimeseries, ZoneDistribution, activeCursorSection, addRuntimePanel, affiliateTagFacet, applyAmazonAffiliateTag, attachmentUrlFacet, autocompleteTooltipTheme, bindTokenParamIntoWql, bindTokenToQueryObject, blockContentId, blockTypesFromBlocks, canonicalSuggestionItems, compactNumber, composerRegistry, computeSessionPrHighlights, configureOverlayActions, createExecutorDocumentHost, cursorFocusExtension, customCompletionSources, cycleBaselineLayer, dateRangeSlot, dispatchAddRuntimePanel, dispatchExpandRuntimePanel, dispatchGutterHighlights, dispatchRemoveRuntimePanel, editQueryClause, editingQuerySectionsField, editingWidgetsField, editorFocusField, editorFocusTracker, editorPreset, editorTheme, embedPreviewDecorations, expandRuntimePanel, extractBlockQueries, extractMetricsByCategory, fenceCompletion, findQueryBlockSection, findWorkoutErrors, forceSectionParse, formatClockTime, formatMMSS, formatTimeseriesTick, formatTimeseriesTooltipValue, formatTimestamp, frontmatterDebugMode, frontmatterDetailed, frontmatterKeymap, frontmatterPreview, frontmatterPreviewField, frontmatterReferenceIndex, frontmatterSource, frontmatterSuggestions, frontmatterVisibility, getClauseMeta, getCursorFocusState, getOverlayActions, getSuggestionBinding, gutterHighlightsField, gutterUnified, handleFenceAutoWrap, handleSmartUrlPaste, inlineButtonDecoration, insertMarkdownLinkCommand, invalidateSuggestions, isAmazonRetailHost, isEditorFocused, isInternalFrontmatterKey, isNavigableUrl, lineIdsExtension, linkOpen, linkPreview, loadSuggestions, markdownSyntaxHiding, markdownTablePreview, matchFilterTypeahead, mergeSeries, mergeSuggestionItems, mergeTagSuggestions, navigationFacet, nestedCompletion, nestedCompletionOptions, normalizeOutputFilter, normalizeSimplePipelineToAggregate, notebookSlugsFromBlocks, outputToRunResult, outputsToRunResult, patchBlockQuery, presentBadges, previewDecorations, primaryQueryOf, promoteFindToChartObject, queryBlockPreview, readSessionRpe, referenceIndexReload, registeredSectionWidgets, removeRuntimePanel, removeSeriesLayer, resolveCodeLanguage, resolveQueryDraft, runtimePanelField, saveBlockQuerySource, sectionAtPos, sectionField, sectionGeometry, sectionIdentity, sectionIdentityHistory, sectionMove, sectionRestore, sectionSaved, sessionQueryFence, sessionQueryInsert, sessionQueryWql, setEditorFocused, setFrontmatterDetailed, setFrontmatterSource, setGutterHighlights, setPrimaryQueryOnObject, setQuerySourceEditing, setSuggestionBinding, slashBlockCompletion, smartIncrement, summarizeAggregate, summarizeFind, summarizePipeline, tagsFromStaticBlocks, toChartResult, toggleCompareLayer, toggleGoalLayer, toggleInlineMarkdown, toggleWidgetEdit, tooltipTimestamp, urlAtPos, useChartShape, useComposerSlots, useSuggestions, useWqlStageCounts, widgetBlockPreview, wodAutoWrap, wodAutocompletion, wodCompletionSource, wodEditorKeymap, wodLinter, wodOverlayPanel, workoutLintSource, wqlToPills, wrapInTimeFence } from './chunk-GP26UA75.mjs';
|
|
3
|
+
import { cn } from './chunk-U2OQIGSB.mjs';
|
|
4
|
+
export { cn, hashCode } from './chunk-U2OQIGSB.mjs';
|
|
3
5
|
import { Eye, ExternalLink, Edit3, ChevronUp, ChevronDown, ChevronRight, Copy, Trash2 } from 'lucide-react';
|
|
4
6
|
import { jsxs, jsx, Fragment as Fragment$1 } from 'react/jsx-runtime';
|
|
7
|
+
import { Input } from '@ui-sdk/react/input';
|
|
8
|
+
import { SegmentedControl, SegmentedControlIndicator, SegmentedControlItem } from '@ui-sdk/react/segmented-control';
|
|
5
9
|
import { useMemo, useState, useEffect, Fragment, useCallback } from 'react';
|
|
6
10
|
import { defaultTokenValues, substituteTokens, parseQuery, isDashboardWidgetType, unknownWidgetTypeMessage, unknownTokensMessage, parseDocument, resolveWidgetType, isFindQuery, isPipelineQuery, SharedQueryDocumentRunner } from '@bitcobblers/wod-wiki-wql';
|
|
7
11
|
|
|
@@ -116,12 +120,12 @@ function ScalarTokenInput({
|
|
|
116
120
|
if (draft !== value) onCommit(draft);
|
|
117
121
|
};
|
|
118
122
|
return /* @__PURE__ */ jsx(
|
|
119
|
-
|
|
123
|
+
Input,
|
|
120
124
|
{
|
|
121
125
|
type: "text",
|
|
122
126
|
value: draft,
|
|
123
127
|
disabled,
|
|
124
|
-
|
|
128
|
+
onValueChange: setDraft,
|
|
125
129
|
onBlur: commit,
|
|
126
130
|
onKeyDown: (e) => {
|
|
127
131
|
if (e.nativeEvent.isComposing || e.keyCode === 229) return;
|
|
@@ -131,7 +135,7 @@ function ScalarTokenInput({
|
|
|
131
135
|
}
|
|
132
136
|
},
|
|
133
137
|
"aria-label": `Token ${name}`,
|
|
134
|
-
className: "w-20 rounded-lg border border-border bg-card px-2 py-1 text-xs font-mono text-foreground focus:outline-none focus:border-primary disabled:opacity-60"
|
|
138
|
+
className: "w-20 h-auto rounded-lg border border-border bg-card px-2 py-1 text-xs font-mono text-foreground focus:outline-none focus:border-primary disabled:opacity-60"
|
|
135
139
|
}
|
|
136
140
|
);
|
|
137
141
|
}
|
|
@@ -150,23 +154,33 @@ function DashboardTokenControls({ tokens, values, onChange }) {
|
|
|
150
154
|
"$",
|
|
151
155
|
token.name
|
|
152
156
|
] }),
|
|
153
|
-
token.isList ? /* @__PURE__ */
|
|
154
|
-
|
|
157
|
+
token.isList ? /* @__PURE__ */ jsxs(
|
|
158
|
+
SegmentedControl,
|
|
155
159
|
{
|
|
156
|
-
|
|
160
|
+
"aria-label": `Token ${token.name}`,
|
|
161
|
+
value: current,
|
|
157
162
|
disabled: readOnly,
|
|
158
|
-
|
|
159
|
-
if (
|
|
163
|
+
onValueChange: (next) => {
|
|
164
|
+
if (next && next !== current) onChange?.(token.name, next);
|
|
160
165
|
},
|
|
161
|
-
className:
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
166
|
+
className: "inline-flex items-center gap-1 rounded-lg border border-border bg-card p-1",
|
|
167
|
+
children: [
|
|
168
|
+
/* @__PURE__ */ jsx(SegmentedControlIndicator, {}),
|
|
169
|
+
token.values.map((option) => /* @__PURE__ */ jsx(
|
|
170
|
+
SegmentedControlItem,
|
|
171
|
+
{
|
|
172
|
+
value: option,
|
|
173
|
+
className: cn(
|
|
174
|
+
"text-xs px-2.5 py-1 rounded-md transition-colors text-muted-foreground hover:text-foreground data-checked:bg-primary data-checked:text-primary-foreground data-checked:font-medium",
|
|
175
|
+
readOnly && "cursor-default"
|
|
176
|
+
),
|
|
177
|
+
children: option
|
|
178
|
+
},
|
|
179
|
+
option
|
|
180
|
+
))
|
|
181
|
+
]
|
|
182
|
+
}
|
|
183
|
+
) : readOnly ? /* @__PURE__ */ jsx("span", { className: "text-xs text-foreground font-mono", children: current }) : /* @__PURE__ */ jsx(
|
|
170
184
|
ScalarTokenInput,
|
|
171
185
|
{
|
|
172
186
|
name: token.name,
|
|
@@ -443,29 +457,39 @@ function DashboardView({
|
|
|
443
457
|
function RangeSelector({ weeks: weeksProp, onWeeksChange, className }) {
|
|
444
458
|
const [internalWeeks, setInternalWeeks] = useState(16);
|
|
445
459
|
const currentWeeks = weeksProp ?? internalWeeks;
|
|
446
|
-
const handleSelect = (
|
|
460
|
+
const handleSelect = (next) => {
|
|
461
|
+
if (!next) return;
|
|
462
|
+
const parsed = Number(next);
|
|
447
463
|
if (onWeeksChange) {
|
|
448
|
-
onWeeksChange(
|
|
464
|
+
onWeeksChange(parsed);
|
|
449
465
|
} else {
|
|
450
|
-
setInternalWeeks(
|
|
466
|
+
setInternalWeeks(parsed);
|
|
451
467
|
}
|
|
452
468
|
};
|
|
453
|
-
return /* @__PURE__ */
|
|
454
|
-
|
|
469
|
+
return /* @__PURE__ */ jsxs(
|
|
470
|
+
SegmentedControl,
|
|
455
471
|
{
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
currentWeeks === w ? "bg-primary text-primary-foreground" : "text-muted-foreground hover:text-foreground hover:bg-muted"
|
|
461
|
-
),
|
|
472
|
+
"aria-label": "Analytics range",
|
|
473
|
+
value: String(currentWeeks),
|
|
474
|
+
onValueChange: handleSelect,
|
|
475
|
+
className: cn("inline-flex items-center gap-1 rounded-lg border border-border bg-card p-1", className),
|
|
462
476
|
children: [
|
|
463
|
-
|
|
464
|
-
|
|
477
|
+
/* @__PURE__ */ jsx(SegmentedControlIndicator, {}),
|
|
478
|
+
[4, 8, 16].map((w) => /* @__PURE__ */ jsxs(
|
|
479
|
+
SegmentedControlItem,
|
|
480
|
+
{
|
|
481
|
+
value: String(w),
|
|
482
|
+
className: "min-h-11 min-w-11 px-3 py-2 text-xs rounded-md transition-colors flex items-center justify-center font-medium text-muted-foreground hover:text-foreground data-checked:bg-primary data-checked:text-primary-foreground",
|
|
483
|
+
children: [
|
|
484
|
+
w,
|
|
485
|
+
"w"
|
|
486
|
+
]
|
|
487
|
+
},
|
|
488
|
+
w
|
|
489
|
+
))
|
|
465
490
|
]
|
|
466
|
-
}
|
|
467
|
-
|
|
468
|
-
)) });
|
|
491
|
+
}
|
|
492
|
+
);
|
|
469
493
|
}
|
|
470
494
|
var DAY = 864e5;
|
|
471
495
|
var WEEK = 7 * DAY;
|
|
@@ -590,39 +614,34 @@ function AnalyticsUnitPreference({ className, unit: unitProp, forced = false, st
|
|
|
590
614
|
className: cn("inline-flex items-center gap-1 text-xs", className),
|
|
591
615
|
children: [
|
|
592
616
|
/* @__PURE__ */ jsxs(
|
|
593
|
-
|
|
617
|
+
SegmentedControl,
|
|
594
618
|
{
|
|
619
|
+
"aria-label": "Display unit preference",
|
|
620
|
+
value: activeUnit,
|
|
621
|
+
disabled: forced,
|
|
622
|
+
onValueChange: (next) => {
|
|
623
|
+
if (next === "kg" || next === "lb") setUnit(next);
|
|
624
|
+
},
|
|
625
|
+
title: forced ? "Unit forced by query directive in this view" : "Display unit preference",
|
|
595
626
|
className: cn(
|
|
596
627
|
"inline-flex items-center rounded-lg border border-border bg-card p-1",
|
|
597
628
|
forced && "opacity-70"
|
|
598
629
|
),
|
|
599
|
-
title: forced ? "Unit forced by query directive in this view" : "Display unit preference",
|
|
600
630
|
children: [
|
|
631
|
+
/* @__PURE__ */ jsx(SegmentedControlIndicator, {}),
|
|
601
632
|
/* @__PURE__ */ jsx(
|
|
602
|
-
|
|
633
|
+
SegmentedControlItem,
|
|
603
634
|
{
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
onClick: () => setUnit("kg"),
|
|
607
|
-
className: cn(
|
|
608
|
-
"px-2.5 py-1 rounded-md transition-colors text-xs font-mono",
|
|
609
|
-
activeUnit === "kg" ? "bg-primary text-primary-foreground font-medium" : "text-muted-foreground hover:text-foreground hover:bg-muted",
|
|
610
|
-
forced && "cursor-default hover:bg-transparent hover:text-muted-foreground"
|
|
611
|
-
),
|
|
635
|
+
value: "kg",
|
|
636
|
+
className: "px-2.5 py-1 rounded-md transition-colors text-xs font-mono text-muted-foreground hover:text-foreground data-checked:bg-primary data-checked:text-primary-foreground data-checked:font-medium",
|
|
612
637
|
children: "kg"
|
|
613
638
|
}
|
|
614
639
|
),
|
|
615
640
|
/* @__PURE__ */ jsx(
|
|
616
|
-
|
|
641
|
+
SegmentedControlItem,
|
|
617
642
|
{
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
onClick: () => setUnit("lb"),
|
|
621
|
-
className: cn(
|
|
622
|
-
"px-2.5 py-1 rounded-md transition-colors text-xs font-mono",
|
|
623
|
-
activeUnit === "lb" ? "bg-primary text-primary-foreground font-medium" : "text-muted-foreground hover:text-foreground hover:bg-muted",
|
|
624
|
-
forced && "cursor-default hover:bg-transparent hover:text-muted-foreground"
|
|
625
|
-
),
|
|
643
|
+
value: "lb",
|
|
644
|
+
className: "px-2.5 py-1 rounded-md transition-colors text-xs font-mono text-muted-foreground hover:text-foreground data-checked:bg-primary data-checked:text-primary-foreground data-checked:font-medium",
|
|
626
645
|
children: "lb"
|
|
627
646
|
}
|
|
628
647
|
)
|
|
@@ -634,17 +653,43 @@ function AnalyticsUnitPreference({ className, unit: unitProp, forced = false, st
|
|
|
634
653
|
}
|
|
635
654
|
);
|
|
636
655
|
}
|
|
656
|
+
function readVisualViewport() {
|
|
657
|
+
if (typeof window === "undefined" || !window.visualViewport) {
|
|
658
|
+
return { height: null, offsetTop: 0, offsetBottom: 0 };
|
|
659
|
+
}
|
|
660
|
+
const vv = window.visualViewport;
|
|
661
|
+
return {
|
|
662
|
+
height: vv.height,
|
|
663
|
+
offsetTop: vv.offsetTop,
|
|
664
|
+
offsetBottom: Math.max(0, window.innerHeight - vv.height - vv.offsetTop)
|
|
665
|
+
};
|
|
666
|
+
}
|
|
667
|
+
function useVisualViewportRect() {
|
|
668
|
+
const [rect, setRect] = useState(readVisualViewport);
|
|
669
|
+
useEffect(() => {
|
|
670
|
+
const vv = window.visualViewport;
|
|
671
|
+
if (!vv) return;
|
|
672
|
+
const update = () => setRect(readVisualViewport());
|
|
673
|
+
vv.addEventListener("resize", update);
|
|
674
|
+
vv.addEventListener("scroll", update);
|
|
675
|
+
return () => {
|
|
676
|
+
vv.removeEventListener("resize", update);
|
|
677
|
+
vv.removeEventListener("scroll", update);
|
|
678
|
+
};
|
|
679
|
+
}, []);
|
|
680
|
+
return rect;
|
|
681
|
+
}
|
|
637
682
|
|
|
638
683
|
// src/version.ts
|
|
639
|
-
var VERSION = "0.
|
|
640
|
-
var GIT_SHA = "
|
|
641
|
-
var BUILD_TIME = "2026-11-
|
|
684
|
+
var VERSION = "0.60.2250";
|
|
685
|
+
var GIT_SHA = "36fc312";
|
|
686
|
+
var BUILD_TIME = "2026-11-19T15:09:30.936Z";
|
|
642
687
|
var SEMVER = {
|
|
643
|
-
version: "0.
|
|
644
|
-
gitSha: "
|
|
645
|
-
buildTime: "2026-11-
|
|
688
|
+
version: "0.60.2250",
|
|
689
|
+
gitSha: "36fc312",
|
|
690
|
+
buildTime: "2026-11-19T15:09:30.936Z"
|
|
646
691
|
};
|
|
647
692
|
|
|
648
|
-
export { ANALYTICS_UNIT_STORAGE_KEY, AnalyticsUnitPreference, BUILD_TIME, CODEMIRROR_SINGLETON_DEPS, DEFAULT_ANALYTICS_UNIT, DashboardTokenControls, DashboardView, GIT_SHA, RangeSelector, SEMVER, VERSION, WidgetEditButton, WidgetFrame, WidgetToolButton, getDashboardEffectiveUnit, getEffectiveAnalyticsUnit, readStoredUnit, useAnalyticsQueries, useAnalyticsUnitPreference };
|
|
693
|
+
export { ANALYTICS_UNIT_STORAGE_KEY, AnalyticsUnitPreference, BUILD_TIME, CODEMIRROR_SINGLETON_DEPS, DEFAULT_ANALYTICS_UNIT, DashboardTokenControls, DashboardView, GIT_SHA, RangeSelector, SEMVER, VERSION, WidgetEditButton, WidgetFrame, WidgetToolButton, getDashboardEffectiveUnit, getEffectiveAnalyticsUnit, readStoredUnit, useAnalyticsQueries, useAnalyticsUnitPreference, useVisualViewportRect };
|
|
649
694
|
//# sourceMappingURL=index.mjs.map
|
|
650
695
|
//# sourceMappingURL=index.mjs.map
|