@bitcobblers/wod-wiki-ui 0.59.2236 → 0.59.2240

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, INTERNAL_FRONTMATTER_KEYS, activeCursorSection, addRuntimePanel, affiliateTagFacet, applyAmazonAffiliateTag, attachmentUrlFacet, autocompleteTooltipTheme, blockContentId, configureOverlayActions, cursorFocusExtension, customCompletionSources, dispatchAddRuntimePanel, dispatchExpandRuntimePanel, dispatchGutterHighlights, dispatchRemoveRuntimePanel, editingQuerySectionsField, editingWidgetsField, editorFocusField, editorFocusTracker, editorPreset, editorTheme, embedPreviewDecorations, expandRuntimePanel, fenceCompletion, findQueryBlockSection, findWorkoutErrors, forceSectionParse, frontmatterDebugMode, frontmatterDetailed, frontmatterKeymap, frontmatterPreview, frontmatterPreviewField, frontmatterReferenceIndex, frontmatterSource, frontmatterSuggestions, frontmatterVisibility, getCursorFocusState, getOverlayActions, gutterHighlightsField, gutterUnified, handleFenceAutoWrap, handleSmartUrlPaste, inlineButtonDecoration, insertMarkdownLinkCommand, isAmazonRetailHost, isEditorFocused, isInternalFrontmatterKey, isNavigableUrl, lineIdsExtension, linkOpen, linkPreview, markdownSyntaxHiding, markdownTablePreview, navigationFacet, nestedCompletion, nestedCompletionOptions, previewDecorations, queryBlockPreview, referenceIndexReload, registeredSectionWidgets, removeRuntimePanel, resolveCodeLanguage, runtimePanelField, saveBlockQuerySource, sectionAtPos, sectionField, sectionGeometry, sectionIdentity, sectionIdentityHistory, sectionMove, sectionRestore, sectionSaved, sessionQueryFence, sessionQueryInsert, sessionQueryWql, setEditorFocused, setFrontmatterDetailed, setFrontmatterSource, setGutterHighlights, setQuerySourceEditing, slashBlockCompletion, smartIncrement, toggleInlineMarkdown, toggleWidgetEdit, urlAtPos, widgetBlockPreview, wodAutoWrap, wodAutocompletion, wodCompletionSource, wodEditorKeymap, wodLinter, wodOverlayPanel, workoutLintSource, wrapInTimeFence } from '../chunk-Y7FAKA4S.mjs';
1
+ export { DefaultFrontmatterWidget, INTERNAL_FRONTMATTER_KEYS, activeCursorSection, addRuntimePanel, affiliateTagFacet, applyAmazonAffiliateTag, attachmentUrlFacet, autocompleteTooltipTheme, blockContentId, configureOverlayActions, cursorFocusExtension, customCompletionSources, dispatchAddRuntimePanel, dispatchExpandRuntimePanel, dispatchGutterHighlights, dispatchRemoveRuntimePanel, editingQuerySectionsField, editingWidgetsField, editorFocusField, editorFocusTracker, editorPreset, editorTheme, embedPreviewDecorations, expandRuntimePanel, fenceCompletion, findQueryBlockSection, findWorkoutErrors, forceSectionParse, frontmatterDebugMode, frontmatterDetailed, frontmatterKeymap, frontmatterPreview, frontmatterPreviewField, frontmatterReferenceIndex, frontmatterSource, frontmatterSuggestions, frontmatterVisibility, getCursorFocusState, getOverlayActions, gutterHighlightsField, gutterUnified, handleFenceAutoWrap, handleSmartUrlPaste, inlineButtonDecoration, insertMarkdownLinkCommand, isAmazonRetailHost, isEditorFocused, isInternalFrontmatterKey, isNavigableUrl, lineIdsExtension, linkOpen, linkPreview, markdownSyntaxHiding, markdownTablePreview, navigationFacet, nestedCompletion, nestedCompletionOptions, previewDecorations, queryBlockPreview, referenceIndexReload, registeredSectionWidgets, removeRuntimePanel, resolveCodeLanguage, runtimePanelField, saveBlockQuerySource, sectionAtPos, sectionField, sectionGeometry, sectionIdentity, sectionIdentityHistory, sectionMove, sectionRestore, sectionSaved, sessionQueryFence, sessionQueryInsert, sessionQueryWql, setEditorFocused, setFrontmatterDetailed, setFrontmatterSource, setGutterHighlights, setQuerySourceEditing, slashBlockCompletion, smartIncrement, toggleInlineMarkdown, toggleWidgetEdit, urlAtPos, widgetBlockPreview, wodAutoWrap, wodAutocompletion, wodCompletionSource, wodEditorKeymap, wodLinter, wodOverlayPanel, workoutLintSource, wrapInTimeFence } from '../chunk-SV65J2NT.mjs';
2
2
  //# sourceMappingURL=index.mjs.map
3
3
  //# sourceMappingURL=index.mjs.map
package/dist/index.cjs CHANGED
@@ -1372,7 +1372,8 @@ function DashboardView({
1372
1372
  rangeEnd,
1373
1373
  preferredUnit,
1374
1374
  onOpenNote,
1375
- noteHref
1375
+ noteHref,
1376
+ onLoadingChange
1376
1377
  }) {
1377
1378
  const values2 = React2.useMemo(
1378
1379
  () => ({ ...wodWikiWql.defaultTokenValues(document2.tokens), ...tokenValues }),
@@ -1394,6 +1395,9 @@ function DashboardView({
1394
1395
  );
1395
1396
  const [runs, setRuns] = React2.useState({});
1396
1397
  const [loading, setLoading] = React2.useState(true);
1398
+ React2.useEffect(() => {
1399
+ onLoadingChange?.(loading);
1400
+ }, [loading, onLoadingChange]);
1397
1401
  const resolvedKey = React2.useMemo(
1398
1402
  () => resolved.map((r) => `${r.widget.key}:${r.query}`).join("|"),
1399
1403
  [resolved]
@@ -7620,14 +7624,14 @@ var FENCE_TAGS = [
7620
7624
  var SLASH_COMMANDS = [
7621
7625
  {
7622
7626
  label: "/time",
7623
- detail: "Timer workout block",
7627
+ detail: "Timer block (```time fence)",
7624
7628
  type: "keyword",
7625
7629
  apply: autocomplete.snippet("```time\n${10:00 Run}\n```"),
7626
7630
  boost: 95
7627
7631
  },
7628
7632
  {
7629
7633
  label: "/wod",
7630
- detail: "Timer workout block",
7634
+ detail: "Alias for /time (```time fence)",
7631
7635
  type: "keyword",
7632
7636
  apply: autocomplete.snippet("```time\n${10:00 Run}\n```"),
7633
7637
  boost: 94
@@ -12672,13 +12676,27 @@ function saveWidgetSource(view, sectionId, markdown2) {
12672
12676
  message: "Unable to locate widget source in the editor."
12673
12677
  };
12674
12678
  }
12675
- view.dispatch({
12676
- changes: {
12677
- from: section.contentFrom,
12678
- to: section.contentTo,
12679
- insert: normalizeWidgetMarkdown(markdown2)
12679
+ const dispatchChange = () => {
12680
+ if (view.state.readOnly) return;
12681
+ const latest = findWidgetSection(view, sectionId);
12682
+ if (!latest || latest.contentFrom == null || latest.contentTo == null) return;
12683
+ view.dispatch({
12684
+ changes: {
12685
+ from: latest.contentFrom,
12686
+ to: latest.contentTo,
12687
+ insert: normalizeWidgetMarkdown(markdown2)
12688
+ }
12689
+ });
12690
+ };
12691
+ try {
12692
+ dispatchChange();
12693
+ } catch (err) {
12694
+ if (err instanceof Error && /update.*in progress/i.test(err.message)) {
12695
+ queueMicrotask(dispatchChange);
12696
+ } else {
12697
+ throw err;
12680
12698
  }
12681
- });
12699
+ }
12682
12700
  return parsed;
12683
12701
  }
12684
12702
  function renderMissingWidget(widgetName) {
@@ -18319,13 +18337,13 @@ function editorPreset(optionsOrDialect = "markdown") {
18319
18337
  }
18320
18338
 
18321
18339
  // src/version.ts
18322
- var VERSION = "0.59.2236";
18323
- var GIT_SHA = "7b4743b";
18324
- var BUILD_TIME = "2026-11-16T04:52:27.639Z";
18340
+ var VERSION = "0.59.2240";
18341
+ var GIT_SHA = "920602f";
18342
+ var BUILD_TIME = "2026-11-17T14:03:29.403Z";
18325
18343
  var SEMVER = {
18326
- version: "0.59.2236",
18327
- gitSha: "7b4743b",
18328
- buildTime: "2026-11-16T04:52:27.639Z"
18344
+ version: "0.59.2240",
18345
+ gitSha: "920602f",
18346
+ buildTime: "2026-11-17T14:03:29.403Z"
18329
18347
  };
18330
18348
 
18331
18349
  Object.defineProperty(exports, "CONTENT_GROUPING_DIMENSIONS", {