@bitcobblers/wod-wiki-ui 0.56.2210 → 0.57.2213
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-VYFKXF46.mjs → chunk-W23ZR6NQ.mjs} +49 -15
- package/dist/chunk-W23ZR6NQ.mjs.map +1 -0
- package/dist/extensions/index.cjs +49 -12
- package/dist/extensions/index.cjs.map +1 -1
- package/dist/extensions/index.d.cts +1 -1
- package/dist/extensions/index.d.ts +1 -1
- package/dist/extensions/index.mjs +1 -1
- package/dist/{index-CfljPEK3.d.cts → index-DUNwBTpa.d.cts} +22 -1
- package/dist/{index-CfljPEK3.d.ts → index-DUNwBTpa.d.ts} +22 -1
- package/dist/index.cjs +55 -18
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +8 -8
- package/dist/index.d.ts +8 -8
- package/dist/index.mjs +8 -8
- package/dist/index.mjs.map +1 -1
- package/package.json +4 -4
- package/dist/chunk-VYFKXF46.mjs.map +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { A as AttachmentUrlResolver, B as ButtonAction, a as CursorFocusState, b as CustomCompletionSource, d as DefaultFrontmatterWidget, E as EditorDialect, e as EditorPresetOptions, f as EditorSection, g as EditorSectionSubtype, h as EditorSectionType, i as EmbedType, F as FrontmatterCatalogEntry, j as FrontmatterRefDiagnostic, k as FrontmatterReferenceProvider, l as FrontmatterReferenceRef, m as FrontmatterReferenceResolution, n as FrontmatterSuggestionCatalog, G as GeometryListener, o as INTERNAL_FRONTMATTER_KEYS, N as NavigationHook, p as NestedCompletionOptions, x as OverlayAction, y as QueryBlockPreviewOptions, z as RuntimePanelEntry, H as SectionIdentity, J as SectionRect, K as SectionState, W as WidgetConfig, L as WidgetProps, P as WidgetRegistry, U as activeCursorSection, V as addRuntimePanel, X as
|
|
1
|
+
export { A as AttachmentUrlResolver, B as ButtonAction, a as CursorFocusState, b as CustomCompletionSource, d as DefaultFrontmatterWidget, E as EditorDialect, e as EditorPresetOptions, f as EditorSection, g as EditorSectionSubtype, h as EditorSectionType, i as EmbedType, F as FrontmatterCatalogEntry, j as FrontmatterRefDiagnostic, k as FrontmatterReferenceProvider, l as FrontmatterReferenceRef, m as FrontmatterReferenceResolution, n as FrontmatterSuggestionCatalog, G as GeometryListener, o as INTERNAL_FRONTMATTER_KEYS, N as NavigationHook, p as NestedCompletionOptions, x as OverlayAction, y as QueryBlockPreviewOptions, z as RuntimePanelEntry, H as SectionIdentity, J as SectionRect, K as SectionState, W as WidgetConfig, L as WidgetProps, P as WidgetRegistry, U as activeCursorSection, V as addRuntimePanel, X as affiliateTagFacet, Y as applyAmazonAffiliateTag, Z as attachmentUrlFacet, _ as autocompleteTooltipTheme, $ as configureOverlayActions, a0 as cursorFocusExtension, a1 as customCompletionSources, a2 as dispatchAddRuntimePanel, a3 as dispatchExpandRuntimePanel, a4 as dispatchGutterHighlights, a5 as dispatchRemoveRuntimePanel, a6 as editingQuerySectionsField, a7 as editingWidgetsField, a8 as editorFocusField, a9 as editorFocusTracker, aa as editorPreset, ab as editorTheme, ac as embedPreviewDecorations, ad as expandRuntimePanel, af as fenceCompletion, ag as findQueryBlockSection, ah as findWorkoutErrors, ai as forceSectionParse, al as frontmatterDebugMode, am as frontmatterDetailed, an as frontmatterKeymap, ao as frontmatterPreview, ap as frontmatterPreviewField, aq as frontmatterReferenceIndex, ar as frontmatterSource, as as frontmatterSuggestions, at as frontmatterVisibility, au as getCursorFocusState, av as getOverlayActions, aw as gutterHighlightsField, ax as gutterUnified, ay as handleFenceAutoWrap, az as handleSmartUrlPaste, aA as inlineButtonDecoration, aB as insertMarkdownLinkCommand, aC as isAmazonRetailHost, aD as isEditorFocused, aE as isInternalFrontmatterKey, aF as isNavigableUrl, aG as lineIdsExtension, aH as linkOpen, aI as linkPreview, aJ as markdownSyntaxHiding, aK as markdownTablePreview, aL as navigationFacet, aM as nestedCompletion, aN as nestedCompletionOptions, aQ as previewDecorations, aR as queryBlockPreview, aS as referenceIndexReload, aT as registeredSectionWidgets, aU as removeRuntimePanel, aV as resolveCodeLanguage, aW as runtimePanelField, aX as saveBlockQuerySource, aY as sectionAtPos, aZ as sectionField, a_ as sectionGeometry, a$ as sectionIdentity, b0 as sectionIdentityHistory, b1 as sectionMove, b2 as sectionRestore, b3 as sectionSaved, b4 as sessionQueryFence, b5 as sessionQueryInsert, b6 as sessionQueryWql, b7 as setEditorFocused, b8 as setFrontmatterDetailed, b9 as setFrontmatterSource, ba as setGutterHighlights, bb as setQuerySourceEditing, bc as slashBlockCompletion, bd as smartIncrement, be as toggleInlineMarkdown, bf as toggleWidgetEdit, bg as urlAtPos, bh as widgetBlockPreview, bi as wodAutoWrap, bj as wodAutocompletion, bk as wodCompletionSource, bl as wodEditorKeymap, bm as wodLinter, bn as wodOverlayPanel, bo as workoutLintSource, bp as wrapInTimeFence } from '../index-DUNwBTpa.cjs';
|
|
2
2
|
export { blockContentId } from '@bitcobblers/wod-wiki-core';
|
|
3
3
|
import '@codemirror/state';
|
|
4
4
|
import '@codemirror/view';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { A as AttachmentUrlResolver, B as ButtonAction, a as CursorFocusState, b as CustomCompletionSource, d as DefaultFrontmatterWidget, E as EditorDialect, e as EditorPresetOptions, f as EditorSection, g as EditorSectionSubtype, h as EditorSectionType, i as EmbedType, F as FrontmatterCatalogEntry, j as FrontmatterRefDiagnostic, k as FrontmatterReferenceProvider, l as FrontmatterReferenceRef, m as FrontmatterReferenceResolution, n as FrontmatterSuggestionCatalog, G as GeometryListener, o as INTERNAL_FRONTMATTER_KEYS, N as NavigationHook, p as NestedCompletionOptions, x as OverlayAction, y as QueryBlockPreviewOptions, z as RuntimePanelEntry, H as SectionIdentity, J as SectionRect, K as SectionState, W as WidgetConfig, L as WidgetProps, P as WidgetRegistry, U as activeCursorSection, V as addRuntimePanel, X as
|
|
1
|
+
export { A as AttachmentUrlResolver, B as ButtonAction, a as CursorFocusState, b as CustomCompletionSource, d as DefaultFrontmatterWidget, E as EditorDialect, e as EditorPresetOptions, f as EditorSection, g as EditorSectionSubtype, h as EditorSectionType, i as EmbedType, F as FrontmatterCatalogEntry, j as FrontmatterRefDiagnostic, k as FrontmatterReferenceProvider, l as FrontmatterReferenceRef, m as FrontmatterReferenceResolution, n as FrontmatterSuggestionCatalog, G as GeometryListener, o as INTERNAL_FRONTMATTER_KEYS, N as NavigationHook, p as NestedCompletionOptions, x as OverlayAction, y as QueryBlockPreviewOptions, z as RuntimePanelEntry, H as SectionIdentity, J as SectionRect, K as SectionState, W as WidgetConfig, L as WidgetProps, P as WidgetRegistry, U as activeCursorSection, V as addRuntimePanel, X as affiliateTagFacet, Y as applyAmazonAffiliateTag, Z as attachmentUrlFacet, _ as autocompleteTooltipTheme, $ as configureOverlayActions, a0 as cursorFocusExtension, a1 as customCompletionSources, a2 as dispatchAddRuntimePanel, a3 as dispatchExpandRuntimePanel, a4 as dispatchGutterHighlights, a5 as dispatchRemoveRuntimePanel, a6 as editingQuerySectionsField, a7 as editingWidgetsField, a8 as editorFocusField, a9 as editorFocusTracker, aa as editorPreset, ab as editorTheme, ac as embedPreviewDecorations, ad as expandRuntimePanel, af as fenceCompletion, ag as findQueryBlockSection, ah as findWorkoutErrors, ai as forceSectionParse, al as frontmatterDebugMode, am as frontmatterDetailed, an as frontmatterKeymap, ao as frontmatterPreview, ap as frontmatterPreviewField, aq as frontmatterReferenceIndex, ar as frontmatterSource, as as frontmatterSuggestions, at as frontmatterVisibility, au as getCursorFocusState, av as getOverlayActions, aw as gutterHighlightsField, ax as gutterUnified, ay as handleFenceAutoWrap, az as handleSmartUrlPaste, aA as inlineButtonDecoration, aB as insertMarkdownLinkCommand, aC as isAmazonRetailHost, aD as isEditorFocused, aE as isInternalFrontmatterKey, aF as isNavigableUrl, aG as lineIdsExtension, aH as linkOpen, aI as linkPreview, aJ as markdownSyntaxHiding, aK as markdownTablePreview, aL as navigationFacet, aM as nestedCompletion, aN as nestedCompletionOptions, aQ as previewDecorations, aR as queryBlockPreview, aS as referenceIndexReload, aT as registeredSectionWidgets, aU as removeRuntimePanel, aV as resolveCodeLanguage, aW as runtimePanelField, aX as saveBlockQuerySource, aY as sectionAtPos, aZ as sectionField, a_ as sectionGeometry, a$ as sectionIdentity, b0 as sectionIdentityHistory, b1 as sectionMove, b2 as sectionRestore, b3 as sectionSaved, b4 as sessionQueryFence, b5 as sessionQueryInsert, b6 as sessionQueryWql, b7 as setEditorFocused, b8 as setFrontmatterDetailed, b9 as setFrontmatterSource, ba as setGutterHighlights, bb as setQuerySourceEditing, bc as slashBlockCompletion, bd as smartIncrement, be as toggleInlineMarkdown, bf as toggleWidgetEdit, bg as urlAtPos, bh as widgetBlockPreview, bi as wodAutoWrap, bj as wodAutocompletion, bk as wodCompletionSource, bl as wodEditorKeymap, bm as wodLinter, bn as wodOverlayPanel, bo as workoutLintSource, bp as wrapInTimeFence } from '../index-DUNwBTpa.js';
|
|
2
2
|
export { blockContentId } from '@bitcobblers/wod-wiki-core';
|
|
3
3
|
import '@codemirror/state';
|
|
4
4
|
import '@codemirror/view';
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { DefaultFrontmatterWidget, INTERNAL_FRONTMATTER_KEYS, activeCursorSection, addRuntimePanel, 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, 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-
|
|
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-W23ZR6NQ.mjs';
|
|
2
2
|
//# sourceMappingURL=index.mjs.map
|
|
3
3
|
//# sourceMappingURL=index.mjs.map
|
|
@@ -44,6 +44,27 @@ declare function isNavigableUrl(url: string): boolean;
|
|
|
44
44
|
declare function urlAtPos(view: EditorView, pos: number): string | null;
|
|
45
45
|
declare const linkOpen: Extension;
|
|
46
46
|
|
|
47
|
+
/**
|
|
48
|
+
* Optional Amazon Associates tag injected into outbound Amazon retail links
|
|
49
|
+
* rendered by editor link pills, tables, and Ctrl+Click navigation.
|
|
50
|
+
* When unset or empty, link URLs are left untouched.
|
|
51
|
+
*/
|
|
52
|
+
declare const affiliateTagFacet: Facet<string | null | undefined, string | null>;
|
|
53
|
+
/**
|
|
54
|
+
* Returns `true` for Amazon retail hostnames (e.g. `amazon.com`,
|
|
55
|
+
* `www.amazon.co.uk`, `smile.amazon.de`), excluding shortlink domains
|
|
56
|
+
* (`amzn.to`, `a.co`) and non-retail subdomains (`aws.amazon.com`).
|
|
57
|
+
*/
|
|
58
|
+
declare function isAmazonRetailHost(hostname: string): boolean;
|
|
59
|
+
/**
|
|
60
|
+
* Injects or replaces the Amazon Associates `tag` query parameter on outbound
|
|
61
|
+
* Amazon retail URLs when `associateTag` is non-empty.
|
|
62
|
+
*
|
|
63
|
+
* Shortlinks (e.g. `amzn.to`) and non-Amazon URLs are returned unchanged.
|
|
64
|
+
* Never mutates the underlying Markdown source.
|
|
65
|
+
*/
|
|
66
|
+
declare function applyAmazonAffiliateTag(url: string, associateTag?: string | null): string;
|
|
67
|
+
|
|
47
68
|
declare function findWorkoutErrors(content: string, offsetInDoc: number): Diagnostic[];
|
|
48
69
|
declare function workoutLintSource(view: EditorView): Diagnostic[];
|
|
49
70
|
declare const wodLinter: _codemirror_state.Extension;
|
|
@@ -551,4 +572,4 @@ interface EditorPresetOptions {
|
|
|
551
572
|
}
|
|
552
573
|
declare function editorPreset(optionsOrDialect?: string | EditorPresetOptions): Extension[];
|
|
553
574
|
|
|
554
|
-
export {
|
|
575
|
+
export { configureOverlayActions as $, type AttachmentUrlResolver as A, type ButtonAction as B, type CategorizedMetrics as C, DEFAULT_OUTPUT_FILTERS as D, type EditorDialect as E, type FrontmatterCatalogEntry as F, type GeometryListener as G, type SectionIdentity as H, type InlineMetricEditPayload as I, type SectionRect as J, type SectionState as K, type WidgetProps as L, MetricBadge as M, type NavigationHook as N, type OutputFilterInput as O, type WidgetRegistry as P, type QueryExecutor as Q, type RowPrHighlight as R, type SessionTableSortSpec as S, TONE_CLASS as T, activeCursorSection as U, addRuntimePanel as V, type WidgetConfig as W, affiliateTagFacet as X, applyAmazonAffiliateTag as Y, attachmentUrlFacet as Z, autocompleteTooltipTheme as _, type CursorFocusState as a, sectionIdentity as a$, cursorFocusExtension as a0, customCompletionSources as a1, dispatchAddRuntimePanel as a2, dispatchExpandRuntimePanel as a3, dispatchGutterHighlights as a4, dispatchRemoveRuntimePanel as a5, editingQuerySectionsField as a6, editingWidgetsField as a7, editorFocusField as a8, editorFocusTracker as a9, inlineButtonDecoration as aA, insertMarkdownLinkCommand as aB, isAmazonRetailHost as aC, isEditorFocused as aD, isInternalFrontmatterKey as aE, isNavigableUrl as aF, lineIdsExtension as aG, linkOpen as aH, linkPreview as aI, markdownSyntaxHiding as aJ, markdownTablePreview as aK, navigationFacet as aL, nestedCompletion as aM, nestedCompletionOptions as aN, normalizeOutputFilter as aO, presentBadges as aP, previewDecorations as aQ, queryBlockPreview as aR, referenceIndexReload as aS, registeredSectionWidgets as aT, removeRuntimePanel as aU, resolveCodeLanguage as aV, runtimePanelField as aW, saveBlockQuerySource as aX, sectionAtPos as aY, sectionField as aZ, sectionGeometry as a_, editorPreset as aa, editorTheme as ab, embedPreviewDecorations as ac, expandRuntimePanel as ad, extractMetricsByCategory as ae, fenceCompletion as af, findQueryBlockSection as ag, findWorkoutErrors as ah, forceSectionParse as ai, formatClockTime as aj, formatMMSS as ak, frontmatterDebugMode as al, frontmatterDetailed as am, frontmatterKeymap as an, frontmatterPreview as ao, frontmatterPreviewField as ap, frontmatterReferenceIndex as aq, frontmatterSource as ar, frontmatterSuggestions as as, frontmatterVisibility as at, getCursorFocusState as au, getOverlayActions as av, gutterHighlightsField as aw, gutterUnified as ax, handleFenceAutoWrap as ay, handleSmartUrlPaste as az, type CustomCompletionSource as b, sectionIdentityHistory as b0, sectionMove as b1, sectionRestore as b2, sectionSaved as b3, sessionQueryFence as b4, sessionQueryInsert as b5, sessionQueryWql as b6, setEditorFocused as b7, setFrontmatterDetailed as b8, setFrontmatterSource as b9, setGutterHighlights as ba, setQuerySourceEditing as bb, slashBlockCompletion as bc, smartIncrement as bd, toggleInlineMarkdown as be, toggleWidgetEdit as bf, urlAtPos as bg, widgetBlockPreview as bh, wodAutoWrap as bi, wodAutocompletion as bj, wodCompletionSource as bk, wodEditorKeymap as bl, wodLinter as bm, wodOverlayPanel as bn, workoutLintSource as bo, wrapInTimeFence as bp, DEFAULT_PRIMARY_FILTER as c, DefaultFrontmatterWidget as d, type EditorPresetOptions as e, type EditorSection as f, type EditorSectionSubtype as g, type EditorSectionType as h, type EmbedType as i, type FrontmatterRefDiagnostic as j, type FrontmatterReferenceProvider as k, type FrontmatterReferenceRef as l, type FrontmatterReferenceResolution as m, type FrontmatterSuggestionCatalog as n, INTERNAL_FRONTMATTER_KEYS as o, type NestedCompletionOptions as p, OUTPUT_TYPE_CLASS as q, OUTPUT_TYPE_DOT as r, OutputFilterPills as s, type OutputFilterPreset as t, type OutputStatementRow as u, OutputStatementsTable as v, type OutputStatementsTableProps as w, type OverlayAction as x, type QueryBlockPreviewOptions as y, type RuntimePanelEntry as z };
|
|
@@ -44,6 +44,27 @@ declare function isNavigableUrl(url: string): boolean;
|
|
|
44
44
|
declare function urlAtPos(view: EditorView, pos: number): string | null;
|
|
45
45
|
declare const linkOpen: Extension;
|
|
46
46
|
|
|
47
|
+
/**
|
|
48
|
+
* Optional Amazon Associates tag injected into outbound Amazon retail links
|
|
49
|
+
* rendered by editor link pills, tables, and Ctrl+Click navigation.
|
|
50
|
+
* When unset or empty, link URLs are left untouched.
|
|
51
|
+
*/
|
|
52
|
+
declare const affiliateTagFacet: Facet<string | null | undefined, string | null>;
|
|
53
|
+
/**
|
|
54
|
+
* Returns `true` for Amazon retail hostnames (e.g. `amazon.com`,
|
|
55
|
+
* `www.amazon.co.uk`, `smile.amazon.de`), excluding shortlink domains
|
|
56
|
+
* (`amzn.to`, `a.co`) and non-retail subdomains (`aws.amazon.com`).
|
|
57
|
+
*/
|
|
58
|
+
declare function isAmazonRetailHost(hostname: string): boolean;
|
|
59
|
+
/**
|
|
60
|
+
* Injects or replaces the Amazon Associates `tag` query parameter on outbound
|
|
61
|
+
* Amazon retail URLs when `associateTag` is non-empty.
|
|
62
|
+
*
|
|
63
|
+
* Shortlinks (e.g. `amzn.to`) and non-Amazon URLs are returned unchanged.
|
|
64
|
+
* Never mutates the underlying Markdown source.
|
|
65
|
+
*/
|
|
66
|
+
declare function applyAmazonAffiliateTag(url: string, associateTag?: string | null): string;
|
|
67
|
+
|
|
47
68
|
declare function findWorkoutErrors(content: string, offsetInDoc: number): Diagnostic[];
|
|
48
69
|
declare function workoutLintSource(view: EditorView): Diagnostic[];
|
|
49
70
|
declare const wodLinter: _codemirror_state.Extension;
|
|
@@ -551,4 +572,4 @@ interface EditorPresetOptions {
|
|
|
551
572
|
}
|
|
552
573
|
declare function editorPreset(optionsOrDialect?: string | EditorPresetOptions): Extension[];
|
|
553
574
|
|
|
554
|
-
export {
|
|
575
|
+
export { configureOverlayActions as $, type AttachmentUrlResolver as A, type ButtonAction as B, type CategorizedMetrics as C, DEFAULT_OUTPUT_FILTERS as D, type EditorDialect as E, type FrontmatterCatalogEntry as F, type GeometryListener as G, type SectionIdentity as H, type InlineMetricEditPayload as I, type SectionRect as J, type SectionState as K, type WidgetProps as L, MetricBadge as M, type NavigationHook as N, type OutputFilterInput as O, type WidgetRegistry as P, type QueryExecutor as Q, type RowPrHighlight as R, type SessionTableSortSpec as S, TONE_CLASS as T, activeCursorSection as U, addRuntimePanel as V, type WidgetConfig as W, affiliateTagFacet as X, applyAmazonAffiliateTag as Y, attachmentUrlFacet as Z, autocompleteTooltipTheme as _, type CursorFocusState as a, sectionIdentity as a$, cursorFocusExtension as a0, customCompletionSources as a1, dispatchAddRuntimePanel as a2, dispatchExpandRuntimePanel as a3, dispatchGutterHighlights as a4, dispatchRemoveRuntimePanel as a5, editingQuerySectionsField as a6, editingWidgetsField as a7, editorFocusField as a8, editorFocusTracker as a9, inlineButtonDecoration as aA, insertMarkdownLinkCommand as aB, isAmazonRetailHost as aC, isEditorFocused as aD, isInternalFrontmatterKey as aE, isNavigableUrl as aF, lineIdsExtension as aG, linkOpen as aH, linkPreview as aI, markdownSyntaxHiding as aJ, markdownTablePreview as aK, navigationFacet as aL, nestedCompletion as aM, nestedCompletionOptions as aN, normalizeOutputFilter as aO, presentBadges as aP, previewDecorations as aQ, queryBlockPreview as aR, referenceIndexReload as aS, registeredSectionWidgets as aT, removeRuntimePanel as aU, resolveCodeLanguage as aV, runtimePanelField as aW, saveBlockQuerySource as aX, sectionAtPos as aY, sectionField as aZ, sectionGeometry as a_, editorPreset as aa, editorTheme as ab, embedPreviewDecorations as ac, expandRuntimePanel as ad, extractMetricsByCategory as ae, fenceCompletion as af, findQueryBlockSection as ag, findWorkoutErrors as ah, forceSectionParse as ai, formatClockTime as aj, formatMMSS as ak, frontmatterDebugMode as al, frontmatterDetailed as am, frontmatterKeymap as an, frontmatterPreview as ao, frontmatterPreviewField as ap, frontmatterReferenceIndex as aq, frontmatterSource as ar, frontmatterSuggestions as as, frontmatterVisibility as at, getCursorFocusState as au, getOverlayActions as av, gutterHighlightsField as aw, gutterUnified as ax, handleFenceAutoWrap as ay, handleSmartUrlPaste as az, type CustomCompletionSource as b, sectionIdentityHistory as b0, sectionMove as b1, sectionRestore as b2, sectionSaved as b3, sessionQueryFence as b4, sessionQueryInsert as b5, sessionQueryWql as b6, setEditorFocused as b7, setFrontmatterDetailed as b8, setFrontmatterSource as b9, setGutterHighlights as ba, setQuerySourceEditing as bb, slashBlockCompletion as bc, smartIncrement as bd, toggleInlineMarkdown as be, toggleWidgetEdit as bf, urlAtPos as bg, widgetBlockPreview as bh, wodAutoWrap as bi, wodAutocompletion as bj, wodCompletionSource as bk, wodEditorKeymap as bl, wodLinter as bm, wodOverlayPanel as bn, workoutLintSource as bo, wrapInTimeFence as bp, DEFAULT_PRIMARY_FILTER as c, DefaultFrontmatterWidget as d, type EditorPresetOptions as e, type EditorSection as f, type EditorSectionSubtype as g, type EditorSectionType as h, type EmbedType as i, type FrontmatterRefDiagnostic as j, type FrontmatterReferenceProvider as k, type FrontmatterReferenceRef as l, type FrontmatterReferenceResolution as m, type FrontmatterSuggestionCatalog as n, INTERNAL_FRONTMATTER_KEYS as o, type NestedCompletionOptions as p, OUTPUT_TYPE_CLASS as q, OUTPUT_TYPE_DOT as r, OutputFilterPills as s, type OutputFilterPreset as t, type OutputStatementRow as u, OutputStatementsTable as v, type OutputStatementsTableProps as w, type OverlayAction as x, type QueryBlockPreviewOptions as y, type RuntimePanelEntry as z };
|
package/dist/index.cjs
CHANGED
|
@@ -7176,6 +7176,33 @@ var lineIdsExtension = view.ViewPlugin.fromClass(
|
|
|
7176
7176
|
decorations: (v) => v.decorations
|
|
7177
7177
|
}
|
|
7178
7178
|
);
|
|
7179
|
+
var affiliateTagFacet = state.Facet.define({
|
|
7180
|
+
combine(values2) {
|
|
7181
|
+
for (let i = values2.length - 1; i >= 0; i--) {
|
|
7182
|
+
const trimmed = values2[i]?.trim();
|
|
7183
|
+
if (trimmed) return trimmed;
|
|
7184
|
+
}
|
|
7185
|
+
return null;
|
|
7186
|
+
}
|
|
7187
|
+
});
|
|
7188
|
+
var AMAZON_RETAIL_HOST_RE = /^(?:www\.|smile\.|m\.)?amazon\.[a-z]{2,3}(?:\.[a-z]{2})?$/i;
|
|
7189
|
+
function isAmazonRetailHost(hostname) {
|
|
7190
|
+
return AMAZON_RETAIL_HOST_RE.test(hostname);
|
|
7191
|
+
}
|
|
7192
|
+
function applyAmazonAffiliateTag(url, associateTag) {
|
|
7193
|
+
const tag = associateTag?.trim();
|
|
7194
|
+
if (!tag || !/^https?:\/\//i.test(url)) return url;
|
|
7195
|
+
try {
|
|
7196
|
+
const parsed = new URL(url);
|
|
7197
|
+
if (!isAmazonRetailHost(parsed.hostname)) return url;
|
|
7198
|
+
parsed.searchParams.set("tag", tag);
|
|
7199
|
+
return parsed.toString();
|
|
7200
|
+
} catch {
|
|
7201
|
+
return url;
|
|
7202
|
+
}
|
|
7203
|
+
}
|
|
7204
|
+
|
|
7205
|
+
// src/extensions/link-open.ts
|
|
7179
7206
|
var navigationFacet = state.Facet.define({
|
|
7180
7207
|
combine(values2) {
|
|
7181
7208
|
return values2.length > 0 ? values2[values2.length - 1] : null;
|
|
@@ -7266,12 +7293,13 @@ var ctrlClickPlugin = view.ViewPlugin.fromClass(
|
|
|
7266
7293
|
if (!url) return;
|
|
7267
7294
|
e.preventDefault();
|
|
7268
7295
|
e.stopPropagation();
|
|
7296
|
+
const resolvedUrl = applyAmazonAffiliateTag(url, view.state.facet(affiliateTagFacet));
|
|
7269
7297
|
const navHook = view.state.facet(navigationFacet);
|
|
7270
7298
|
if (navHook) {
|
|
7271
|
-
navHook(
|
|
7299
|
+
navHook(resolvedUrl, view);
|
|
7272
7300
|
} else if (typeof window !== "undefined") {
|
|
7273
|
-
const isInternal =
|
|
7274
|
-
window.open(
|
|
7301
|
+
const isInternal = resolvedUrl.startsWith("/") || resolvedUrl.startsWith("#");
|
|
7302
|
+
window.open(resolvedUrl, isInternal ? "_self" : "_blank", isInternal ? void 0 : "noopener,noreferrer");
|
|
7275
7303
|
}
|
|
7276
7304
|
};
|
|
7277
7305
|
view.dom.addEventListener("mousedown", this.handler, true);
|
|
@@ -10828,11 +10856,12 @@ function appendFormattedCellContent(container, rawText, view) {
|
|
|
10828
10856
|
} else if (match[2] !== void 0 && match[3] !== void 0) {
|
|
10829
10857
|
const label = match[2];
|
|
10830
10858
|
const url = match[3];
|
|
10859
|
+
const isExternal = /^https?:\/\//i.test(url);
|
|
10860
|
+
const resolvedUrl = isExternal ? applyAmazonAffiliateTag(url, view.state.facet(affiliateTagFacet)) : url;
|
|
10831
10861
|
const a = document.createElement("a");
|
|
10832
|
-
a.href =
|
|
10862
|
+
a.href = resolvedUrl;
|
|
10833
10863
|
a.textContent = label;
|
|
10834
10864
|
a.className = "cm-table-cell-link underline underline-offset-2";
|
|
10835
|
-
const isExternal = /^https?:\/\//i.test(url);
|
|
10836
10865
|
if (isExternal) {
|
|
10837
10866
|
a.target = "_blank";
|
|
10838
10867
|
a.rel = "noopener noreferrer";
|
|
@@ -11290,7 +11319,8 @@ function openLinkEditPopover(anchorEl, view, match) {
|
|
|
11290
11319
|
openBtn.addEventListener("click", (e) => {
|
|
11291
11320
|
e.preventDefault();
|
|
11292
11321
|
e.stopPropagation();
|
|
11293
|
-
const
|
|
11322
|
+
const rawUrl = urlInput.value.trim() || match.url;
|
|
11323
|
+
const targetUrl = applyAmazonAffiliateTag(rawUrl, view.state.facet(affiliateTagFacet));
|
|
11294
11324
|
closeActiveLinkPopover();
|
|
11295
11325
|
const navHook = view.state.facet(navigationFacet);
|
|
11296
11326
|
if (!isExternalHttpUrl(targetUrl) && navHook) {
|
|
@@ -11377,21 +11407,23 @@ function openLinkEditPopover(anchorEl, view, match) {
|
|
|
11377
11407
|
labelInput.select();
|
|
11378
11408
|
}
|
|
11379
11409
|
var LinkPillWidget = class extends view.WidgetType {
|
|
11380
|
-
constructor(label, url, from, to, readOnly) {
|
|
11410
|
+
constructor(label, url, from, to, readOnly, affiliateTag) {
|
|
11381
11411
|
super();
|
|
11382
11412
|
this.label = label;
|
|
11383
11413
|
this.url = url;
|
|
11384
11414
|
this.from = from;
|
|
11385
11415
|
this.to = to;
|
|
11386
11416
|
this.readOnly = readOnly;
|
|
11417
|
+
this.affiliateTag = affiliateTag;
|
|
11387
11418
|
}
|
|
11388
11419
|
label;
|
|
11389
11420
|
url;
|
|
11390
11421
|
from;
|
|
11391
11422
|
to;
|
|
11392
11423
|
readOnly;
|
|
11424
|
+
affiliateTag;
|
|
11393
11425
|
eq(other) {
|
|
11394
|
-
return this.label === other.label && this.url === other.url && this.from === other.from && this.to === other.to && this.readOnly === other.readOnly;
|
|
11426
|
+
return this.label === other.label && this.url === other.url && this.from === other.from && this.to === other.to && this.readOnly === other.readOnly && this.affiliateTag === other.affiliateTag;
|
|
11395
11427
|
}
|
|
11396
11428
|
toDOM(view) {
|
|
11397
11429
|
const isExternal = isExternalHttpUrl(this.url);
|
|
@@ -11418,9 +11450,10 @@ var LinkPillWidget = class extends view.WidgetType {
|
|
|
11418
11450
|
});
|
|
11419
11451
|
}
|
|
11420
11452
|
pill.appendChild(label);
|
|
11453
|
+
const resolvedUrl = isExternal ? applyAmazonAffiliateTag(this.url, this.affiliateTag) : this.url;
|
|
11421
11454
|
const open = document.createElement("a");
|
|
11422
11455
|
open.className = "cm-link-pill-open";
|
|
11423
|
-
open.href =
|
|
11456
|
+
open.href = resolvedUrl;
|
|
11424
11457
|
if (isExternal) {
|
|
11425
11458
|
open.target = "_blank";
|
|
11426
11459
|
open.rel = "noopener noreferrer";
|
|
@@ -11432,11 +11465,11 @@ var LinkPillWidget = class extends view.WidgetType {
|
|
|
11432
11465
|
if (navHook) {
|
|
11433
11466
|
e.preventDefault();
|
|
11434
11467
|
e.stopPropagation();
|
|
11435
|
-
navHook(
|
|
11468
|
+
navHook(resolvedUrl, view);
|
|
11436
11469
|
}
|
|
11437
11470
|
});
|
|
11438
11471
|
}
|
|
11439
|
-
open.title =
|
|
11472
|
+
open.title = resolvedUrl;
|
|
11440
11473
|
open.appendChild(createLinkArrowIcon(isExternal));
|
|
11441
11474
|
pill.appendChild(open);
|
|
11442
11475
|
return pill;
|
|
@@ -11570,7 +11603,8 @@ function buildLinkDecos(state$1) {
|
|
|
11570
11603
|
link.url,
|
|
11571
11604
|
link.from,
|
|
11572
11605
|
link.to,
|
|
11573
|
-
state$1.readOnly
|
|
11606
|
+
state$1.readOnly,
|
|
11607
|
+
state$1.facet(affiliateTagFacet)
|
|
11574
11608
|
)
|
|
11575
11609
|
})
|
|
11576
11610
|
);
|
|
@@ -18267,13 +18301,13 @@ function editorPreset(optionsOrDialect = "markdown") {
|
|
|
18267
18301
|
}
|
|
18268
18302
|
|
|
18269
18303
|
// src/version.ts
|
|
18270
|
-
var VERSION = "0.
|
|
18271
|
-
var GIT_SHA = "
|
|
18272
|
-
var BUILD_TIME = "2026-11-
|
|
18304
|
+
var VERSION = "0.57.2213";
|
|
18305
|
+
var GIT_SHA = "567cd1e";
|
|
18306
|
+
var BUILD_TIME = "2026-11-12T22:26:23.724Z";
|
|
18273
18307
|
var SEMVER = {
|
|
18274
|
-
version: "0.
|
|
18275
|
-
gitSha: "
|
|
18276
|
-
buildTime: "2026-11-
|
|
18308
|
+
version: "0.57.2213",
|
|
18309
|
+
gitSha: "567cd1e",
|
|
18310
|
+
buildTime: "2026-11-12T22:26:23.724Z"
|
|
18277
18311
|
};
|
|
18278
18312
|
|
|
18279
18313
|
Object.defineProperty(exports, "CONTENT_GROUPING_DIMENSIONS", {
|
|
@@ -18351,6 +18385,8 @@ exports.WqlTimeseries = WqlTimeseries;
|
|
|
18351
18385
|
exports.ZoneDistribution = ZoneDistribution;
|
|
18352
18386
|
exports.activeCursorSection = activeCursorSection;
|
|
18353
18387
|
exports.addRuntimePanel = addRuntimePanel;
|
|
18388
|
+
exports.affiliateTagFacet = affiliateTagFacet;
|
|
18389
|
+
exports.applyAmazonAffiliateTag = applyAmazonAffiliateTag;
|
|
18354
18390
|
exports.attachmentUrlFacet = attachmentUrlFacet;
|
|
18355
18391
|
exports.autocompleteTooltipTheme = autocompleteTooltipTheme;
|
|
18356
18392
|
exports.bindTokenParamIntoWql = bindTokenParamIntoWql;
|
|
@@ -18414,6 +18450,7 @@ exports.hashCode = hashCode;
|
|
|
18414
18450
|
exports.inlineButtonDecoration = inlineButtonDecoration;
|
|
18415
18451
|
exports.insertMarkdownLinkCommand = insertMarkdownLinkCommand;
|
|
18416
18452
|
exports.invalidateSuggestions = invalidateSuggestions;
|
|
18453
|
+
exports.isAmazonRetailHost = isAmazonRetailHost;
|
|
18417
18454
|
exports.isEditorFocused = isEditorFocused;
|
|
18418
18455
|
exports.isInternalFrontmatterKey = isInternalFrontmatterKey;
|
|
18419
18456
|
exports.isNavigableUrl = isNavigableUrl;
|