@bitcobblers/wod-wiki-ui 0.57.2213 → 0.59.2235

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.
@@ -1164,17 +1164,25 @@ var SectionGeometryPlugin = class {
1164
1164
  constructor(view) {
1165
1165
  this.view = view;
1166
1166
  this.measure();
1167
+ if (typeof ResizeObserver !== "undefined" && this.view.contentDOM) {
1168
+ this.resizeObserver = new ResizeObserver(() => {
1169
+ this.view.requestMeasure();
1170
+ this.measure();
1171
+ });
1172
+ this.resizeObserver.observe(this.view.contentDOM);
1173
+ }
1167
1174
  }
1168
1175
  view;
1169
1176
  rects = [];
1170
1177
  docVersion = 0;
1171
1178
  listeners = /* @__PURE__ */ new Set();
1172
1179
  pendingNotify = null;
1180
+ resizeObserver = null;
1173
1181
  update(update) {
1174
1182
  if (update.docChanged) {
1175
1183
  this.docVersion++;
1176
1184
  }
1177
- if (update.docChanged || update.geometryChanged) {
1185
+ if (update.docChanged || update.geometryChanged || update.viewportChanged) {
1178
1186
  this.measure();
1179
1187
  }
1180
1188
  }
@@ -1238,6 +1246,8 @@ var SectionGeometryPlugin = class {
1238
1246
  if (this.pendingNotify !== null && typeof cancelAnimationFrame === "function") {
1239
1247
  cancelAnimationFrame(this.pendingNotify);
1240
1248
  }
1249
+ this.resizeObserver?.disconnect();
1250
+ this.resizeObserver = null;
1241
1251
  this.listeners.clear();
1242
1252
  }
1243
1253
  };
@@ -2196,6 +2206,7 @@ function createTagDraftRow(view, root, key, onCommit) {
2196
2206
  const discard = () => settle(false);
2197
2207
  attachSuggestions(input, view, root, "value", key, [], commit);
2198
2208
  input.addEventListener("keydown", (e) => {
2209
+ if (e.isComposing || e.keyCode === 229) return;
2199
2210
  if (e.key === "Escape") {
2200
2211
  e.preventDefault();
2201
2212
  discard();
@@ -2315,6 +2326,7 @@ function createMetricDraftRow(view, root, referenceProvider, commit) {
2315
2326
  customKeyInput.setAttribute("aria-label", "Metric key");
2316
2327
  customKeyInput.dataset.frontmatterField = "key";
2317
2328
  customKeyInput.addEventListener("keydown", (e) => {
2329
+ if (e.isComposing || e.keyCode === 229) return;
2318
2330
  if (e.key === "Escape") {
2319
2331
  e.preventDefault();
2320
2332
  settle(false);
@@ -2339,6 +2351,7 @@ function createMetricDraftRow(view, root, referenceProvider, commit) {
2339
2351
  attachFor();
2340
2352
  select.addEventListener("change", attachFor);
2341
2353
  input.addEventListener("keydown", (e) => {
2354
+ if (e.isComposing || e.keyCode === 229) return;
2342
2355
  if (e.defaultPrevented && e.key !== "Escape") return;
2343
2356
  if (e.key === "Escape") {
2344
2357
  e.preventDefault();
@@ -2409,6 +2422,7 @@ function createSummaryDraftRow(view, commit) {
2409
2422
  view.requestMeasure();
2410
2423
  };
2411
2424
  keyInput.addEventListener("keydown", (e) => {
2425
+ if (e.isComposing || e.keyCode === 229) return;
2412
2426
  if (e.key === "Escape") {
2413
2427
  e.preventDefault();
2414
2428
  settle(false);
@@ -2421,6 +2435,7 @@ function createSummaryDraftRow(view, commit) {
2421
2435
  }
2422
2436
  });
2423
2437
  valInput.addEventListener("keydown", (e) => {
2438
+ if (e.isComposing || e.keyCode === 229) return;
2424
2439
  if (e.key === "Escape") {
2425
2440
  e.preventDefault();
2426
2441
  settle(false);
@@ -4194,6 +4209,7 @@ var MarkdownTableWidget = class extends WidgetType {
4194
4209
  input.addEventListener("click", (e) => e.stopPropagation());
4195
4210
  input.addEventListener("keydown", (e) => {
4196
4211
  e.stopPropagation();
4212
+ if (e.isComposing || e.keyCode === 229) return;
4197
4213
  if (e.key === "Tab") {
4198
4214
  e.preventDefault();
4199
4215
  const dir = e.shiftKey ? -1 : 1;
@@ -4589,6 +4605,7 @@ function openLinkEditPopover(anchorEl, view, match) {
4589
4605
  });
4590
4606
  const handleKeyDown = (e) => {
4591
4607
  e.stopPropagation();
4608
+ if (e.isComposing || e.keyCode === 229) return;
4592
4609
  if (e.key === "Enter") {
4593
4610
  e.preventDefault();
4594
4611
  applyChanges();
@@ -17659,5 +17676,5 @@ function editorPreset(optionsOrDialect = "markdown") {
17659
17676
  }
17660
17677
 
17661
17678
  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 };
17662
- //# sourceMappingURL=chunk-W23ZR6NQ.mjs.map
17663
- //# sourceMappingURL=chunk-W23ZR6NQ.mjs.map
17679
+ //# sourceMappingURL=chunk-Y7FAKA4S.mjs.map
17680
+ //# sourceMappingURL=chunk-Y7FAKA4S.mjs.map