@kungal/editor-core 0.32.0 → 0.33.0

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.
@@ -48,11 +48,11 @@ type NotifyLevel = 'info' | 'success' | 'warn' | 'error';
48
48
  type Notify = (message: string, level: NotifyLevel) => void;
49
49
  /**
50
50
  * Ask the user for a link URL — provide this to show your OWN UI (a modal, an
51
- * inline input, an article picker…) instead of the native `window.prompt` the
52
- * headless toolbar / selection bubble fall back to. Gets the currently selected
53
- * text (to prefill or search). Return the URL, or a falsy value to cancel. When
54
- * set, the KunUI `<KunEditorToolbar>` uses it too instead of its inline popover,
55
- * so one override covers every link entry point.
51
+ * article picker…) instead of the built-in entry: the selection bubble's inline
52
+ * URL input, the KunUI toolbar's popover, or the headless toolbar's native
53
+ * `window.prompt`. Gets the currently selected text (to prefill or search).
54
+ * Return the URL, or a falsy value to cancel. One override covers every link
55
+ * entry point.
56
56
  */
57
57
  type LinkPrompt = (context: {
58
58
  text: string;
@@ -69,8 +69,9 @@ interface KunEditorAdapters {
69
69
  stickerSource?: StickerSource;
70
70
  notify?: Notify;
71
71
  /**
72
- * Custom link-URL entry (replaces the native prompt in the headless toolbar /
73
- * bubble, and the KunUI toolbar's popover). See {@link LinkPrompt}.
72
+ * Custom link-URL entry (replaces the selection bubble's inline input, the
73
+ * headless toolbar's native prompt, and the KunUI toolbar's popover). See
74
+ * {@link LinkPrompt}.
74
75
  */
75
76
  linkPrompt?: LinkPrompt;
76
77
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kungal/editor-core",
3
- "version": "0.32.0",
3
+ "version": "0.33.0",
4
4
  "description": "KunEditor framework-agnostic core — the Milkdown plugin bundle (spoiler / mention / quote / katex / upload / code-block) plus the adapter contracts. No Vue/React.",
5
5
  "type": "module",
6
6
  "keywords": [