@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.
- package/CHANGELOG.md +53 -0
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/preset/index.cjs +6 -4
- package/dist/preset/index.cjs.map +1 -1
- package/dist/preset/index.d.cts +1 -1
- package/dist/preset/index.d.ts +1 -1
- package/dist/preset/index.js +6 -4
- package/dist/preset/index.js.map +1 -1
- package/dist/{types-BazCkMGt.d.cts → types-DqQwYYJ1.d.cts} +8 -7
- package/dist/{types-BazCkMGt.d.ts → types-DqQwYYJ1.d.ts} +8 -7
- package/package.json +1 -1
|
@@ -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
|
-
*
|
|
52
|
-
*
|
|
53
|
-
* text (to prefill or search).
|
|
54
|
-
*
|
|
55
|
-
*
|
|
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
|
|
73
|
-
*
|
|
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.
|
|
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": [
|