@bitcobblers/wod-wiki-ui 0.59.2244 → 0.59.2245
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-M3VS7H7Z.mjs → chunk-YCI5DMLM.mjs} +5 -5
- package/dist/{chunk-M3VS7H7Z.mjs.map → chunk-YCI5DMLM.mjs.map} +1 -1
- package/dist/extensions/index.cjs +3 -3
- package/dist/extensions/index.cjs.map +1 -1
- package/dist/extensions/index.mjs +1 -1
- package/dist/index.cjs +9 -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
|
@@ -524,7 +524,7 @@ function sourceCoordinates(rawContent) {
|
|
|
524
524
|
const rawStarts = [0];
|
|
525
525
|
const editorStarts = [0];
|
|
526
526
|
let removed = 0;
|
|
527
|
-
for (const match of rawContent.matchAll(/\r\n
|
|
527
|
+
for (const match of rawContent.matchAll(/\r\n|[\r\n]/g)) {
|
|
528
528
|
removed += match[0].length - 1;
|
|
529
529
|
rawStarts.push(match.index + match[0].length);
|
|
530
530
|
editorStarts.push(match.index + match[0].length - removed);
|
|
@@ -10113,7 +10113,7 @@ function cycleBaselineLayer(obj) {
|
|
|
10113
10113
|
const primary = series.find((s) => Boolean(s.query));
|
|
10114
10114
|
if (!primary?.query) return obj;
|
|
10115
10115
|
const primaryAst = wodWikiWql.parseQuery(primary.query);
|
|
10116
|
-
const existing = series.find((s) => /^baseline_(
|
|
10116
|
+
const existing = series.find((s) => /^baseline_([24]|12)w$/.test(s.id));
|
|
10117
10117
|
const currentWeeks = existing ? Number(/^baseline_(\d+)w$/.exec(existing.id)?.[1]) : void 0;
|
|
10118
10118
|
const currentIdx = BASELINE_PERIODS.findIndex((p) => p === currentWeeks);
|
|
10119
10119
|
const nextWeeks = currentIdx >= 0 ? BASELINE_PERIODS[(currentIdx + 1) % BASELINE_PERIODS.length] : 4;
|
|
@@ -10527,7 +10527,7 @@ function QueryObjectBuilder({
|
|
|
10527
10527
|
const groupOptions = sentenceGroup && !SENTENCE_GROUPS.includes(sentenceGroup) ? [sentenceGroup, ...SENTENCE_GROUPS] : SENTENCE_GROUPS;
|
|
10528
10528
|
const seriesList = value.series ?? [];
|
|
10529
10529
|
const goalActive = seriesList.some((s) => s.id === "goal");
|
|
10530
|
-
const baselineSeries = seriesList.find((s) => /^baseline_(
|
|
10530
|
+
const baselineSeries = seriesList.find((s) => /^baseline_([24]|12)w$/.test(s.id));
|
|
10531
10531
|
const baselineWeeks = baselineSeries ? Number(/^baseline_(\d+)w$/.exec(baselineSeries.id)?.[1]) : void 0;
|
|
10532
10532
|
const compareActive = seriesList.some((s) => s.id === "secondary");
|
|
10533
10533
|
const changeVisualization = (next) => {
|