@bitcobblers/wod-wiki-ui 0.59.2244 → 0.59.2246

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.
@@ -505,7 +505,7 @@ function sourceCoordinates(rawContent) {
505
505
  const rawStarts = [0];
506
506
  const editorStarts = [0];
507
507
  let removed = 0;
508
- for (const match of rawContent.matchAll(/\r\n|\r|\n/g)) {
508
+ for (const match of rawContent.matchAll(/\r\n|[\r\n]/g)) {
509
509
  removed += match[0].length - 1;
510
510
  rawStarts.push(match.index + match[0].length);
511
511
  editorStarts.push(match.index + match[0].length - removed);
@@ -10293,7 +10293,7 @@ function cycleBaselineLayer(obj) {
10293
10293
  const primary = series.find((s) => Boolean(s.query));
10294
10294
  if (!primary?.query) return obj;
10295
10295
  const primaryAst = parseQuery(primary.query);
10296
- const existing = series.find((s) => /^baseline_(2|4|12)w$/.test(s.id));
10296
+ const existing = series.find((s) => /^baseline_([24]|12)w$/.test(s.id));
10297
10297
  const currentWeeks = existing ? Number(/^baseline_(\d+)w$/.exec(existing.id)?.[1]) : void 0;
10298
10298
  const currentIdx = BASELINE_PERIODS.findIndex((p) => p === currentWeeks);
10299
10299
  const nextWeeks = currentIdx >= 0 ? BASELINE_PERIODS[(currentIdx + 1) % BASELINE_PERIODS.length] : 4;
@@ -10707,7 +10707,7 @@ function QueryObjectBuilder({
10707
10707
  const groupOptions = sentenceGroup && !SENTENCE_GROUPS.includes(sentenceGroup) ? [sentenceGroup, ...SENTENCE_GROUPS] : SENTENCE_GROUPS;
10708
10708
  const seriesList = value.series ?? [];
10709
10709
  const goalActive = seriesList.some((s) => s.id === "goal");
10710
- const baselineSeries = seriesList.find((s) => /^baseline_(2|4|12)w$/.test(s.id));
10710
+ const baselineSeries = seriesList.find((s) => /^baseline_([24]|12)w$/.test(s.id));
10711
10711
  const baselineWeeks = baselineSeries ? Number(/^baseline_(\d+)w$/.exec(baselineSeries.id)?.[1]) : void 0;
10712
10712
  const compareActive = seriesList.some((s) => s.id === "secondary");
10713
10713
  const changeVisualization = (next) => {
@@ -17715,5 +17715,5 @@ function editorPreset(optionsOrDialect = "markdown") {
17715
17715
  }
17716
17716
 
17717
17717
  export { AGG_OPTIONS, CANONICAL_BLOCK_TYPES, CLAUSE_META, 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, blockTypesFromBlocks, canonicalSuggestionItems, cn, 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, hashCode, 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, useVisualViewportRect, useWqlStageCounts, widgetBlockPreview, wodAutoWrap, wodAutocompletion, wodCompletionSource, wodEditorKeymap, wodLinter, wodOverlayPanel, workoutLintSource, wqlToPills, wrapInTimeFence };
17718
- //# sourceMappingURL=chunk-M3VS7H7Z.mjs.map
17719
- //# sourceMappingURL=chunk-M3VS7H7Z.mjs.map
17718
+ //# sourceMappingURL=chunk-YCI5DMLM.mjs.map
17719
+ //# sourceMappingURL=chunk-YCI5DMLM.mjs.map