@aicayzer/inkkit 0.7.3 → 0.7.5

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.
@@ -42330,7 +42330,7 @@ function commentSelectionContent(doc, from, to, content) {
42330
42330
  }
42331
42331
  //#endregion
42332
42332
  //#region src/hidden-comments.ts
42333
- var graphemes$1 = new Intl.Segmenter(void 0, { granularity: "grapheme" });
42333
+ var graphemes$2 = new Intl.Segmenter(void 0, { granularity: "grapheme" });
42334
42334
  function deletion(event) {
42335
42335
  const { altKey: alt, ctrlKey: ctrl, metaKey: meta, key } = event;
42336
42336
  const dir = key === "Backspace" ? -1 : key === "Delete" ? 1 : void 0;
@@ -42373,7 +42373,7 @@ function characterEnd(doc, pos, dir) {
42373
42373
  const node = dir < 0 ? $pos.nodeBefore : $pos.nodeAfter;
42374
42374
  if (!node) return void 0;
42375
42375
  if (!node.isText) return pos + dir * node.nodeSize;
42376
- const segments = [...graphemes$1.segment(node.text)];
42376
+ const segments = [...graphemes$2.segment(node.text)];
42377
42377
  return pos + dir * ((dir < 0 ? segments.at(-1) : segments[0])?.segment.length ?? 1);
42378
42378
  }
42379
42379
  /** Where the browser would end a word or line deletion, measured on the rendered text. */
@@ -53759,7 +53759,7 @@ function modeSelectionMap(ctx, source, doc) {
53759
53759
  function hasImageFile(files) {
53760
53760
  return [...files].some((file) => file.type.startsWith("image/"));
53761
53761
  }
53762
- var graphemes = new Intl.Segmenter(void 0, { granularity: "grapheme" });
53762
+ var graphemes$1 = new Intl.Segmenter(void 0, { granularity: "grapheme" });
53763
53763
  /** Owns the source/TXT textarea and the DOM state of its current input. */
53764
53764
  var SourceSurface = class {
53765
53765
  runtime;
@@ -53900,7 +53900,7 @@ var SourceSurface = class {
53900
53900
  if (key === "Backspace" || key === "Delete") {
53901
53901
  const start = this.element.selectionStart;
53902
53902
  if (start === this.element.selectionEnd) {
53903
- const segment = graphemes.segment(this.element.value).containing(key === "Backspace" ? start - 1 : start);
53903
+ const segment = graphemes$1.segment(this.element.value).containing(key === "Backspace" ? start - 1 : start);
53904
53904
  if (!segment) return false;
53905
53905
  this.element.setSelectionRange(segment.index, segment.index + segment.segment.length);
53906
53906
  }
@@ -59038,6 +59038,42 @@ function drawsOverlays(win) {
59038
59038
  }
59039
59039
  //#endregion
59040
59040
  //#region src/wiki-view.ts
59041
+ /** Whether the style engine reads the text as one color, so a value cannot carry a second
59042
+ * declaration into the property it is written to. */
59043
+ function checkedColor(value, what) {
59044
+ const probe = document.createElement("span");
59045
+ if (typeof value === "string") probe.style.color = value;
59046
+ if (probe.style.color === "") throw new TypeError(`Wiki link ${what} must be a color`);
59047
+ return value;
59048
+ }
59049
+ /** What a link draws beyond its text: an icon, which is decoration drawn as a CSS mask, so a URL
59050
+ * that fetches from the network or runs script is refused, and a tint, a color for a host's look
59051
+ * to fill the link with. Either one that cannot be drawn refuses both. */
59052
+ function drawn(presentation) {
59053
+ const { icon, iconColor, tint } = presentation;
59054
+ const result = {};
59055
+ if (tint !== void 0) result.tint = checkedColor(tint, "tint");
59056
+ if (icon === void 0) return result;
59057
+ if (typeof icon !== "string" || !icon.trim()) throw new TypeError("Wiki link icon needs a URL");
59058
+ const url = new URL(icon, document.baseURI);
59059
+ if ([
59060
+ "http:",
59061
+ "https:",
59062
+ "javascript:",
59063
+ "vbscript:"
59064
+ ].includes(url.protocol)) throw new TypeError("Wiki link icons must load offline");
59065
+ if (url.protocol === "data:" && !/^image\//i.test(url.pathname)) throw new TypeError("Wiki link icon data URL must be an image");
59066
+ result.icon = iconColor === void 0 ? { url: url.href } : {
59067
+ url: url.href,
59068
+ color: checkedColor(iconColor, "icon color")
59069
+ };
59070
+ return result;
59071
+ }
59072
+ /** A quoted CSS url() whose text cannot end the string or the declaration early. */
59073
+ var cssUrl = (url) => `url("${url.replace(/[\\"\n\r\f]/g, (character) => `\\${character.charCodeAt(0).toString(16)} `)}")`;
59074
+ var graphemes = new Intl.Segmenter(void 0, { granularity: "grapheme" });
59075
+ /** The first character a reader sees, so a combining mark stays with its base. */
59076
+ var firstGrapheme = (label) => graphemes.segment(label)[Symbol.iterator]().next().value?.segment ?? "";
59041
59077
  function wikiLinkView(adapter, runtime) {
59042
59078
  return $view(wikiLinkSchema, () => (node, view) => {
59043
59079
  let current = node;
@@ -59045,21 +59081,54 @@ function wikiLinkView(adapter, runtime) {
59045
59081
  dom.className = "inkkit-wiki-link";
59046
59082
  dom.setAttribute("role", "link");
59047
59083
  dom.tabIndex = 0;
59084
+ const text = document.createTextNode("");
59085
+ dom.append(text);
59086
+ let lead;
59087
+ const showLabel = (label, icon) => {
59088
+ if (!icon) {
59089
+ lead?.box.remove();
59090
+ lead = void 0;
59091
+ if (text.data !== label) text.data = label;
59092
+ return;
59093
+ }
59094
+ if (!lead) {
59095
+ const box = document.createElement("span");
59096
+ box.className = "inkkit-wiki-link-lead";
59097
+ const leadText = document.createTextNode("");
59098
+ box.append(leadText);
59099
+ dom.insertBefore(box, text);
59100
+ lead = {
59101
+ box,
59102
+ text: leadText
59103
+ };
59104
+ }
59105
+ const first = firstGrapheme(label);
59106
+ if (lead.text.data !== first) lead.text.data = first;
59107
+ const rest = label.slice(first.length);
59108
+ if (text.data !== rest) text.data = rest;
59109
+ lead.box.style.setProperty("--_inkkit-wiki-icon", cssUrl(icon.url));
59110
+ if (icon.color) lead.box.style.setProperty("--_inkkit-wiki-icon-color", icon.color);
59111
+ else lead.box.style.removeProperty("--_inkkit-wiki-icon-color");
59112
+ };
59048
59113
  const reference = () => wikiReference(current);
59049
59114
  const report = (error) => runtime.error?.(coded(error, "file-unavailable"));
59050
59115
  const render = () => {
59051
59116
  const { label } = reference();
59052
- if (dom.textContent !== label) dom.textContent = label;
59053
59117
  let missing = false;
59118
+ let look = {};
59054
59119
  if (runtime.active()) {
59055
59120
  const captured = runtime.capture();
59056
59121
  try {
59057
59122
  const result = adapter.resolve?.(reference(), captured.context);
59058
59123
  missing = captured.isCurrent() && Boolean(result?.missing);
59124
+ if (result && captured.isCurrent() && !missing) look = drawn(result);
59059
59125
  } catch (error) {
59060
59126
  report(error);
59061
59127
  }
59062
59128
  }
59129
+ showLabel(label, look.icon);
59130
+ if (look.tint) dom.style.setProperty("--_inkkit-wiki-link-tint", look.tint);
59131
+ else dom.style.removeProperty("--_inkkit-wiki-link-tint");
59063
59132
  if (missing) {
59064
59133
  dom.dataset.missing = "true";
59065
59134
  dom.title = runtime.labels.wikiMissing;
@@ -59682,7 +59751,7 @@ async function createMilkdownEditor(root, options, runtime) {
59682
59751
  return true;
59683
59752
  }
59684
59753
  }));
59685
- }).use(labelsCtx).use(linkSchemesCtx).use(formatInputCtx).use(richTextGuard).use(runtime.plugins.paste).use(visibleClipboard).use(runtime.plugins.suggestions).use(runtime.plugins.keymap).use(createDialect(Boolean(options.images || options.files), Boolean(options.wikiLinks), Boolean(options.files))).use(codeControlCtx).use(codeControlsPlugin(() => runtime.visibleRect())).use(tablePlugins).use(tableBlock).use(runtime.plugins.change).use(runtime.plugins.historyInput).use(history).use(clipboard).use(cursor).use(taskListPlugin((operation) => runtime.mutate(operation))).use(undoTypedRule).use(quoteBackspace).use(calloutEnter).use(literalEnter).use(literalReread).use(listItemBackspace).use(nestedItemEnter).use(rejoinLists).use(movedListItems).use(textInputPolicy).use(runtime.copy ? codeCopyPlugin((text) => runtime.copy?.(text)) : []).use(placeholderPlugin).use(options.rendering?.codeHighlighting === false ? [] : (await import("./highlight-BF7N9czJ.js")).highlightPlugin).use(options.rendering?.diagramPreview === false || !diagramsAvailable() ? [] : mermaidPreview(runtime.diagrams, (error) => runtime.report(error))).use(selectionPlugin(drawn)).use(drawn ? drawnCaretPlugin : []).use($prose(() => search())).use(runtime.plugins.policy).use(options.wikiLinks ? wikiLinkView(options.wikiLinks, {
59754
+ }).use(labelsCtx).use(linkSchemesCtx).use(formatInputCtx).use(richTextGuard).use(runtime.plugins.paste).use(visibleClipboard).use(runtime.plugins.suggestions).use(runtime.plugins.keymap).use(createDialect(Boolean(options.images || options.files), Boolean(options.wikiLinks), Boolean(options.files))).use(codeControlCtx).use(codeControlsPlugin(() => runtime.visibleRect())).use(tablePlugins).use(tableBlock).use(runtime.plugins.change).use(runtime.plugins.historyInput).use(history).use(clipboard).use(cursor).use(taskListPlugin((operation) => runtime.mutate(operation))).use(undoTypedRule).use(quoteBackspace).use(calloutEnter).use(literalEnter).use(literalReread).use(listItemBackspace).use(nestedItemEnter).use(rejoinLists).use(movedListItems).use(textInputPolicy).use(runtime.copy ? codeCopyPlugin((text) => runtime.copy?.(text)) : []).use(placeholderPlugin).use(options.rendering?.codeHighlighting === false ? [] : (await import("./highlight-9qMrVP06.js")).highlightPlugin).use(options.rendering?.diagramPreview === false || !diagramsAvailable() ? [] : mermaidPreview(runtime.diagrams, (error) => runtime.report(error))).use(selectionPlugin(drawn)).use(drawn ? drawnCaretPlugin : []).use($prose(() => search())).use(runtime.plugins.policy).use(options.wikiLinks ? wikiLinkView(options.wikiLinks, {
59686
59755
  capture: () => runtime.capture(),
59687
59756
  active: () => runtime.active(),
59688
59757
  labels: {
@@ -1,4 +1,4 @@
1
- import { c as DecorationSet, f as __commonJSMin, l as Plugin, o as $prose, p as __toESM, s as Decoration, u as PluginKey } from "./core-BI-sSLEL.js";
1
+ import { c as DecorationSet, f as __commonJSMin, l as Plugin, o as $prose, p as __toESM, s as Decoration, u as PluginKey } from "./core-B9tnDvUW.js";
2
2
  //#region node_modules/.pnpm/highlight.js@11.11.2/node_modules/highlight.js/es/languages/arduino.js
3
3
  /** @type LanguageFn */
4
4
  function cPlusPlus(hljs) {
package/dist/core.d.ts CHANGED
@@ -2,6 +2,6 @@ export { InkKitEditor } from './editor.js';
2
2
  export type { EditorEvents, EditorOptions, TextInputPreferences, CommandState, EditingMode, CaretState, Mark, Block, FormatCommand, FormatOptions, KeyInput, ImageInsertion, ShortcutName, Keymap, } from './editor.js';
3
3
  export { InkKitError } from './types.js';
4
4
  export { normalizeLinkAddress, canOpenLink } from './link-address.js';
5
- export type { DocumentFormat, TextDocumentFormat, TextDocumentInput, RichTextDocumentInput, TextDocumentSnapshot, RichTextDocumentSnapshot, RichTextDocument, RichTextBlock, RichTextListItem, RichTextTableCell, RichTextInline, RichTextMark, FormatLoss, FormatLossCode, ConvertedDocument, FormatPromise, OfferedFormat, EditorLabels, Heading, TableCommand, TableOptions, BlockMoveDirection, DocumentContext, DocumentInput, DocumentSnapshot, DocumentVersion, EditorErrorCode, ImageAdapter, ImageImportContext, WikiLinkReference, WikiLinkAdapter, FileReference, ClientPoint, FileContext, FilePresentation, FileAdapter, CapturedImage, PortableImage, ClipboardInput, ClipboardOutput, ClipboardScope, ClipboardImage, ClipboardDiagram, PrintableDocument, PrintableWarning, TextRange, FindState, FindSession, ReadableTextSnapshot, TextRect, ViewportInsets, ViewportOptions, ViewportSnapshot, } from './types.js';
5
+ export type { DocumentFormat, TextDocumentFormat, TextDocumentInput, RichTextDocumentInput, TextDocumentSnapshot, RichTextDocumentSnapshot, RichTextDocument, RichTextBlock, RichTextListItem, RichTextTableCell, RichTextInline, RichTextMark, FormatLoss, FormatLossCode, ConvertedDocument, FormatPromise, OfferedFormat, EditorLabels, Heading, TableCommand, TableOptions, BlockMoveDirection, DocumentContext, DocumentInput, DocumentSnapshot, DocumentVersion, EditorErrorCode, ImageAdapter, ImageImportContext, WikiLinkPresentation, WikiLinkReference, WikiLinkAdapter, FileReference, ClientPoint, FileContext, FilePresentation, FileAdapter, CapturedImage, PortableImage, ClipboardInput, ClipboardOutput, ClipboardScope, ClipboardImage, ClipboardDiagram, PrintableDocument, PrintableWarning, TextRange, FindState, FindSession, ReadableTextSnapshot, TextRect, ViewportInsets, ViewportOptions, ViewportSnapshot, } from './types.js';
6
6
  export type { SlashMenuOptions, SlashCommandName, SlashCommand } from './types.js';
7
7
  export type { DiagnosticReport, DiagnosticEvent, DiagnosticState, DiagnosticPresentation, } from './diagnostics.js';
package/dist/core.js CHANGED
@@ -1,2 +1,2 @@
1
- import { a as InkKitError, n as normalizeLinkAddress, r as InkKitEditor, t as canOpenLink } from "./chunks/core-BI-sSLEL.js";
1
+ import { a as InkKitError, n as normalizeLinkAddress, r as InkKitEditor, t as canOpenLink } from "./chunks/core-B9tnDvUW.js";
2
2
  export { InkKitEditor, InkKitError, canOpenLink, normalizeLinkAddress };
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { a as InkKitError, i as registerDiagram, n as normalizeLinkAddress, r as InkKitEditor, t as canOpenLink } from "./chunks/core-BI-sSLEL.js";
1
+ import { a as InkKitError, i as registerDiagram, n as normalizeLinkAddress, r as InkKitEditor, t as canOpenLink } from "./chunks/core-B9tnDvUW.js";
2
2
  //#region node_modules/.pnpm/dompurify@3.4.17/node_modules/dompurify/dist/purify.es.mjs
3
3
  /*! @license DOMPurify 3.4.17 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.4.17/LICENSE */
4
4
  function _OverloadYield(e, d) {
package/dist/style.css CHANGED
@@ -76,7 +76,7 @@
76
76
  NOTICE. */
77
77
  .inkkit-root .inkkit-table-block {
78
78
  position: relative;
79
- margin: 0 0
79
+ margin: var(--inkkit-table-spacing-before, 0) 0
80
80
  var(--inkkit-paragraph-spacing, calc(var(--_inkkit-font-size) * 0.667));
81
81
  }
82
82
  .inkkit-root .inkkit-table-scroll {
@@ -133,8 +133,9 @@
133
133
  );
134
134
  }
135
135
  .inkkit-root .ProseMirror th {
136
- background: var(--_inkkit-code-bg);
137
- font-weight: 600;
136
+ color: var(--inkkit-table-header-color, inherit);
137
+ background: var(--inkkit-table-header-background, var(--_inkkit-code-bg));
138
+ font-weight: var(--inkkit-table-header-font-weight, 600);
138
139
  }
139
140
  .inkkit-root .ProseMirror td p,
140
141
  .inkkit-root .ProseMirror th p {
@@ -198,6 +199,10 @@
198
199
  .inkkit-root .inkkit-table-controls .inkkit-table-grip:not(:disabled) {
199
200
  cursor: grab;
200
201
  }
202
+ /* Before the expanded rule below, which wins at equal weight. */
203
+ .inkkit-root .inkkit-table-controls .inkkit-table-grip {
204
+ color: var(--inkkit-table-grip-color, var(--_inkkit-muted));
205
+ }
201
206
  .inkkit-root .inkkit-table-grip[data-inkkit-axis='column'] {
202
207
  width: 24px;
203
208
  height: 14px;
@@ -679,26 +684,103 @@
679
684
  font-weight: 700;
680
685
  }
681
686
 
682
- .inkkit-root .ProseMirror a,
683
- .inkkit-root .inkkit-wiki-link {
687
+ .inkkit-root .ProseMirror a {
684
688
  color: var(--_inkkit-accent);
685
689
  text-decoration: none;
686
690
  text-underline-offset: 2px;
687
691
  }
688
692
 
689
- .inkkit-root .ProseMirror a:hover,
690
- .inkkit-root .inkkit-wiki-link:hover {
693
+ .inkkit-root .ProseMirror a:hover {
691
694
  text-decoration: underline;
692
695
  }
693
696
 
697
+ /* A wiki link reads each part of its look from a variable whose default is the plain look. */
698
+ .inkkit-root .inkkit-wiki-link {
699
+ color: var(--inkkit-wiki-link-color, var(--_inkkit-accent));
700
+ text-decoration-line: var(--inkkit-wiki-link-underline, none);
701
+ text-decoration-style: var(--inkkit-wiki-link-underline-style, solid);
702
+ text-decoration-thickness: var(--inkkit-wiki-link-underline-thickness, auto);
703
+ text-decoration-color: var(--inkkit-wiki-link-underline-color, currentcolor);
704
+ text-underline-offset: var(--inkkit-wiki-link-underline-offset, 2px);
705
+ cursor: var(--inkkit-wiki-link-cursor, inherit);
706
+ padding: var(--inkkit-wiki-link-padding-block, 0)
707
+ var(--inkkit-wiki-link-padding-inline, 0);
708
+ border-radius: var(--inkkit-wiki-link-radius, 0);
709
+ /* The link's tint, when it has one, mixes into the host's background by the strength the host
710
+ gives it. The host cannot read the tint itself: a variable it sets on the root is read there,
711
+ where the link's own custom property does not exist. */
712
+ background-color: color-mix(
713
+ in srgb,
714
+ var(
715
+ --_inkkit-wiki-link-tint,
716
+ var(--inkkit-wiki-link-background, transparent)
717
+ )
718
+ var(--inkkit-wiki-link-tint-strength, 0%),
719
+ var(--inkkit-wiki-link-background, transparent)
720
+ );
721
+ /* A link that wraps keeps its padding and corners on every line. */
722
+ -webkit-box-decoration-break: clone;
723
+ box-decoration-break: clone;
724
+ }
725
+
726
+ .inkkit-root .inkkit-wiki-link:hover {
727
+ color: var(
728
+ --inkkit-wiki-link-hover-color,
729
+ var(--inkkit-wiki-link-color, var(--_inkkit-accent))
730
+ );
731
+ text-decoration-line: var(--inkkit-wiki-link-hover-underline, underline);
732
+ }
733
+
694
734
  /* A missing target differs by its line, not only its color, which forced colors replace. */
695
735
  .inkkit-root .inkkit-wiki-link[data-missing] {
696
- text-decoration: underline dashed;
736
+ text-decoration-line: underline;
737
+ text-decoration-style: var(
738
+ --inkkit-wiki-link-missing-underline-style,
739
+ dashed
740
+ );
741
+ text-decoration-color: var(
742
+ --inkkit-wiki-link-missing-underline-color,
743
+ var(--inkkit-wiki-link-underline-color, currentcolor)
744
+ );
745
+ }
746
+
747
+ /* The icon is generated content before the link's first character, so it adds no text, no caret
748
+ position and nothing to copy. It is an inline-block with a size of its own because WebKit
749
+ paints the whole box of an inline element in the mask's color. A line may break either side of
750
+ such a box, so the character it sits before is held with it by no-wrap. */
751
+ .inkkit-root .inkkit-wiki-link-lead {
752
+ white-space: nowrap;
753
+ }
754
+
755
+ .inkkit-root .inkkit-wiki-link-lead::before {
756
+ content: '';
757
+ display: var(--inkkit-wiki-link-icon-display, inline-block);
758
+ width: var(--inkkit-wiki-link-icon-size, 0.9em);
759
+ height: var(--inkkit-wiki-link-icon-size, 0.9em);
760
+ margin-inline-end: var(--inkkit-wiki-link-icon-gap, 0.3em);
761
+ /* Centers the square on the text's height. */
762
+ vertical-align: calc(0.35em - var(--inkkit-wiki-link-icon-size, 0.9em) / 2);
763
+ background-color: var(--_inkkit-wiki-icon-color, currentColor);
764
+ mask-image: var(--_inkkit-wiki-icon);
765
+ mask-repeat: no-repeat;
766
+ mask-position: center;
767
+ mask-size: 100% 100%;
697
768
  }
698
769
 
699
770
  @media (forced-colors: active) {
700
771
  .inkkit-root .inkkit-wiki-link {
701
772
  color: LinkText;
773
+ text-decoration-style: solid;
774
+ }
775
+
776
+ /* Whatever a host sets, a missing link keeps a line of another kind than a found one. */
777
+ .inkkit-root .inkkit-wiki-link[data-missing] {
778
+ text-decoration-style: dashed;
779
+ }
780
+
781
+ .inkkit-root .inkkit-wiki-link-lead::before {
782
+ forced-color-adjust: none;
783
+ background-color: LinkText;
702
784
  }
703
785
  }
704
786
 
@@ -1136,6 +1218,7 @@
1136
1218
  }
1137
1219
 
1138
1220
  .inkkit-root .inkkit-comment,
1221
+ .inkkit-root .inkkit-wiki-link-lead::before,
1139
1222
  .inkkit-root [data-inkkit-callout-toggle],
1140
1223
  .inkkit-root .ProseMirror pre .inkkit-copy,
1141
1224
  .inkkit-root .inkkit-table-controls,
package/dist/types.d.ts CHANGED
@@ -174,14 +174,27 @@ export interface WikiLinkReference {
174
174
  /** The text shown: the alias, or the target and fragment. */
175
175
  label: string;
176
176
  }
177
+ /** How a resolved wiki link is drawn, beyond its text. */
178
+ export interface WikiLinkPresentation {
179
+ /** An image drawn as a mask before the link text, such as a data URL of an SVG. It stays with the
180
+ * first character of the link and is decoration only. A `missing` link ignores it. */
181
+ icon?: string;
182
+ /** The icon's CSS color: a color value or a `var()` reference. Without it, or with an undefined
183
+ * variable, the icon takes the link text's color. */
184
+ iconColor?: string;
185
+ /** A CSS color for a host's look to fill the link with, such as the tint of its kind of item. It
186
+ * is a color value or a `var()` reference, and a link without one fills with the host's plain
187
+ * background. A `missing` link ignores it. */
188
+ tint?: string;
189
+ }
177
190
  /** Resolves and opens wiki links. The host owns lookup, permissions and navigation. */
178
191
  export interface WikiLinkAdapter {
179
192
  /** Matches note names for a typed `[[` query. Late answers are ignored. */
180
193
  suggest?(query: string, context: FileContext): Promise<readonly string[]>;
181
- /** Whether the target is missing, for presentation only. */
182
- resolve?(reference: WikiLinkReference, context: DocumentContext): {
194
+ /** Whether the target is missing, and how to draw it if it is not, for presentation only. */
195
+ resolve?(reference: WikiLinkReference, context: DocumentContext): ({
183
196
  missing?: boolean;
184
- } | undefined;
197
+ } & WikiLinkPresentation) | undefined;
185
198
  /** Called by Mod-click, and by Enter or Space on the focused link. */
186
199
  open(reference: WikiLinkReference, context: DocumentContext): void;
187
200
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aicayzer/inkkit",
3
- "version": "0.7.3",
3
+ "version": "0.7.5",
4
4
  "description": "A preserving Markdown editor for offline web views and the web",
5
5
  "license": "MIT",
6
6
  "type": "module",