@bitcobblers/wod-wiki-ui 0.50.2187 → 0.50.2189

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.
@@ -1,3 +1,3 @@
1
- export { DefaultFrontmatterWidget, activeCursorSection, addRuntimePanel, autocompleteTooltipTheme, blockContentId, configureOverlayActions, cursorFocusExtension, customCompletionSources, dispatchAddRuntimePanel, dispatchExpandRuntimePanel, dispatchGutterHighlights, dispatchRemoveRuntimePanel, editingWidgetsField, editorPreset, editorTheme, embedPreviewDecorations, expandRuntimePanel, fenceCompletion, findQueryBlockSection, findWorkoutErrors, forceSectionParse, frontmatterDetailed, frontmatterPreview, frontmatterPreviewField, frontmatterReferenceIndex, frontmatterSource, frontmatterSuggestions, frontmatterVisibility, getCursorFocusState, getOverlayActions, gutterHighlightsField, gutterUnified, handleFenceAutoWrap, inlineButtonDecoration, lineIdsExtension, linkOpen, linkPreview, markdownSyntaxHiding, markdownTablePreview, navigationFacet, nestedCompletion, nestedCompletionOptions, previewDecorations, queryBlockPreview, referenceIndexReload, registeredSectionWidgets, removeRuntimePanel, resolveCodeLanguage, runtimePanelField, saveBlockQuerySource, sectionAtPos, sectionField, sectionGeometry, sectionIdentity, sectionIdentityHistory, sectionMove, sectionRestore, sectionSaved, sessionQueryInsert, sessionQueryWql, setFrontmatterDetailed, setFrontmatterSource, setGutterHighlights, smartIncrement, toggleWidgetEdit, urlAtPos, widgetBlockPreview, wodAutoWrap, wodAutocompletion, wodCompletionSource, wodEditorKeymap, wodLinter, wodOverlayPanel, workoutLintSource, wrapInTimeFence } from '../chunk-DKPPJXUH.mjs';
1
+ export { DefaultFrontmatterWidget, activeCursorSection, addRuntimePanel, autocompleteTooltipTheme, blockContentId, configureOverlayActions, cursorFocusExtension, customCompletionSources, dispatchAddRuntimePanel, dispatchExpandRuntimePanel, dispatchGutterHighlights, dispatchRemoveRuntimePanel, editingWidgetsField, editorPreset, editorTheme, embedPreviewDecorations, expandRuntimePanel, fenceCompletion, findQueryBlockSection, findWorkoutErrors, forceSectionParse, frontmatterDetailed, frontmatterPreview, frontmatterPreviewField, frontmatterReferenceIndex, frontmatterSource, frontmatterSuggestions, frontmatterVisibility, getCursorFocusState, getOverlayActions, gutterHighlightsField, gutterUnified, handleFenceAutoWrap, inlineButtonDecoration, lineIdsExtension, linkOpen, linkPreview, markdownSyntaxHiding, markdownTablePreview, navigationFacet, nestedCompletion, nestedCompletionOptions, previewDecorations, queryBlockPreview, referenceIndexReload, registeredSectionWidgets, removeRuntimePanel, resolveCodeLanguage, runtimePanelField, saveBlockQuerySource, sectionAtPos, sectionField, sectionGeometry, sectionIdentity, sectionIdentityHistory, sectionMove, sectionRestore, sectionSaved, sessionQueryInsert, sessionQueryWql, setFrontmatterDetailed, setFrontmatterSource, setGutterHighlights, smartIncrement, toggleWidgetEdit, urlAtPos, widgetBlockPreview, wodAutoWrap, wodAutocompletion, wodCompletionSource, wodEditorKeymap, wodLinter, wodOverlayPanel, workoutLintSource, wrapInTimeFence } from '../chunk-UAIJTD74.mjs';
2
2
  //# sourceMappingURL=index.mjs.map
3
3
  //# sourceMappingURL=index.mjs.map
package/dist/index.cjs CHANGED
@@ -5709,40 +5709,6 @@ var SectionGeometryPlugin = class {
5709
5709
  }
5710
5710
  };
5711
5711
  var sectionGeometry = view.ViewPlugin.fromClass(SectionGeometryPlugin);
5712
- var WorkoutFooterWidget = class extends view.WidgetType {
5713
- eq(_other) {
5714
- return true;
5715
- }
5716
- toDOM() {
5717
- const el = document.createElement("div");
5718
- el.className = "cm-wod-block-footer";
5719
- return el;
5720
- }
5721
- get estimatedHeight() {
5722
- return 28;
5723
- }
5724
- get block() {
5725
- return true;
5726
- }
5727
- };
5728
- var WorkoutInsertSpacerWidget = class extends view.WidgetType {
5729
- eq(_other) {
5730
- return true;
5731
- }
5732
- toDOM() {
5733
- const el = document.createElement("div");
5734
- el.className = "cm-wod-insert-spacer";
5735
- return el;
5736
- }
5737
- get estimatedHeight() {
5738
- return 28;
5739
- }
5740
- get block() {
5741
- return true;
5742
- }
5743
- };
5744
- var footerWidget = new WorkoutFooterWidget();
5745
- var insertSpacerWidget = new WorkoutInsertSpacerWidget();
5746
5712
  var fenceOpenDeco = view.Decoration.line({
5747
5713
  attributes: { class: "cm-wod-fence cm-wod-fence-open" }
5748
5714
  });
@@ -5755,11 +5721,8 @@ var workoutInnerDeco = view.Decoration.line({
5755
5721
  function buildWorkoutDecorations(state$1) {
5756
5722
  const builder = new state.RangeSetBuilder();
5757
5723
  const { sections } = state$1.field(sectionField);
5758
- const cursorHead = state$1.selection.main.head;
5759
- const cursorLineNum = state$1.doc.lineAt(cursorHead).number;
5760
5724
  for (const section of sections) {
5761
5725
  if (section.type !== "time" && section.type !== "log") continue;
5762
- const isCursorInside = cursorLineNum > section.startLine && cursorLineNum < section.endLine;
5763
5726
  const startLine = state$1.doc.line(section.startLine);
5764
5727
  const endLine = state$1.doc.line(section.endLine);
5765
5728
  if (section.endLine <= section.startLine) {
@@ -5770,20 +5733,6 @@ function buildWorkoutDecorations(state$1) {
5770
5733
  for (let l = section.startLine + 1; l < section.endLine; l++) {
5771
5734
  const line = state$1.doc.line(l);
5772
5735
  builder.add(line.from, line.from, workoutInnerDeco);
5773
- if (isCursorInside && l === cursorLineNum) {
5774
- builder.add(
5775
- line.to,
5776
- line.to,
5777
- view.Decoration.widget({ widget: insertSpacerWidget, block: true, side: 1 })
5778
- );
5779
- }
5780
- }
5781
- if (!isCursorInside) {
5782
- builder.add(
5783
- endLine.from,
5784
- endLine.from,
5785
- view.Decoration.widget({ widget: footerWidget, block: true, side: -1 })
5786
- );
5787
5736
  }
5788
5737
  builder.add(endLine.from, endLine.from, fenceCloseDeco);
5789
5738
  }
@@ -5794,9 +5743,7 @@ var scriptBlockDecoField = state.StateField.define({
5794
5743
  return buildWorkoutDecorations(state);
5795
5744
  },
5796
5745
  update(deco, tr) {
5797
- if (tr.docChanged || tr.selection) {
5798
- return buildWorkoutDecorations(tr.state);
5799
- }
5746
+ if (tr.docChanged) return buildWorkoutDecorations(tr.state);
5800
5747
  return deco;
5801
5748
  },
5802
5749
  provide: (f) => view.EditorView.decorations.from(f)
@@ -5838,22 +5785,6 @@ var scriptBlockBaseTheme = view.EditorView.baseTheme({
5838
5785
  borderLeft: "1px solid hsl(var(--border) / 0.5)",
5839
5786
  borderRight: "1px solid hsl(var(--border) / 0.5)",
5840
5787
  boxSizing: "border-box"
5841
- },
5842
- ".cm-wod-block-footer": {
5843
- height: "28px",
5844
- backgroundColor: "rgba(128, 128, 128, 0.05)",
5845
- borderLeft: "1px solid hsl(var(--border) / 0.5)",
5846
- borderRight: "1px solid hsl(var(--border) / 0.5)",
5847
- boxSizing: "border-box",
5848
- pointerEvents: "none"
5849
- },
5850
- ".cm-wod-insert-spacer": {
5851
- height: "28px",
5852
- backgroundColor: "rgba(128, 128, 128, 0.05)",
5853
- borderLeft: "1px solid hsl(var(--border) / 0.5)",
5854
- borderRight: "1px solid hsl(var(--border) / 0.5)",
5855
- boxSizing: "border-box",
5856
- pointerEvents: "none"
5857
5788
  }
5858
5789
  });
5859
5790
  var previewDecorations = [
@@ -14372,13 +14303,13 @@ function editorPreset(optionsOrDialect = "markdown") {
14372
14303
  }
14373
14304
 
14374
14305
  // src/version.ts
14375
- var VERSION = "0.50.2187";
14376
- var GIT_SHA = "e6f5c55";
14377
- var BUILD_TIME = "2026-10-31T20:21:36.977Z";
14306
+ var VERSION = "0.50.2189";
14307
+ var GIT_SHA = "5da2c23";
14308
+ var BUILD_TIME = "2026-11-01T16:27:05.203Z";
14378
14309
  var SEMVER = {
14379
- version: "0.50.2187",
14380
- gitSha: "e6f5c55",
14381
- buildTime: "2026-10-31T20:21:36.977Z"
14310
+ version: "0.50.2189",
14311
+ gitSha: "5da2c23",
14312
+ buildTime: "2026-11-01T16:27:05.203Z"
14382
14313
  };
14383
14314
 
14384
14315
  Object.defineProperty(exports, "CONTENT_GROUPING_DIMENSIONS", {