@bitcobblers/wod-wiki-ui 0.59.2238 → 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-67I27KXT.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
@@ -12676,13 +12676,27 @@ function saveWidgetSource(view, sectionId, markdown2) {
12676
12676
  message: "Unable to locate widget source in the editor."
12677
12677
  };
12678
12678
  }
12679
- view.dispatch({
12680
- changes: {
12681
- from: section.contentFrom,
12682
- to: section.contentTo,
12683
- 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;
12684
12698
  }
12685
- });
12699
+ }
12686
12700
  return parsed;
12687
12701
  }
12688
12702
  function renderMissingWidget(widgetName) {
@@ -18323,13 +18337,13 @@ function editorPreset(optionsOrDialect = "markdown") {
18323
18337
  }
18324
18338
 
18325
18339
  // src/version.ts
18326
- var VERSION = "0.59.2238";
18327
- var GIT_SHA = "9029981";
18328
- var BUILD_TIME = "2026-11-16T16:02:29.109Z";
18340
+ var VERSION = "0.59.2240";
18341
+ var GIT_SHA = "920602f";
18342
+ var BUILD_TIME = "2026-11-17T14:03:29.403Z";
18329
18343
  var SEMVER = {
18330
- version: "0.59.2238",
18331
- gitSha: "9029981",
18332
- buildTime: "2026-11-16T16:02:29.109Z"
18344
+ version: "0.59.2240",
18345
+ gitSha: "920602f",
18346
+ buildTime: "2026-11-17T14:03:29.403Z"
18333
18347
  };
18334
18348
 
18335
18349
  Object.defineProperty(exports, "CONTENT_GROUPING_DIMENSIONS", {