@vunk/plus 1.2.2 → 1.3.1

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.
Files changed (119) hide show
  1. package/components/SendOutlined.mjs +2 -2
  2. package/components/agent-chat-provider/index.d.ts +7 -0
  3. package/components/agent-chat-provider/index.mjs +789 -0
  4. package/components/agent-chat-provider/src/api.d.ts +3 -0
  5. package/components/agent-chat-provider/src/const-roles.d.ts +8 -0
  6. package/components/agent-chat-provider/src/const.d.ts +1 -0
  7. package/components/agent-chat-provider/src/index.vue.d.ts +47 -0
  8. package/components/agent-chat-provider/src/types.d.ts +37 -0
  9. package/components/agent-chat-provider/src/use.d.ts +29 -0
  10. package/components/avatar/index.mjs +2 -2
  11. package/components/avatar/src/ctx.d.ts +4 -4
  12. package/components/avatar/src/index.vue.d.ts +66 -125
  13. package/components/broadcasting-markdown/index.css +3 -0
  14. package/components/broadcasting-markdown/index.d.ts +5 -0
  15. package/components/broadcasting-markdown/index.mjs +637 -0
  16. package/components/broadcasting-markdown/src/const.d.ts +18 -0
  17. package/components/broadcasting-markdown/src/ctx.d.ts +93 -0
  18. package/components/broadcasting-markdown/src/custom-speech.vue.d.ts +109 -0
  19. package/components/broadcasting-markdown/src/index.vue.d.ts +477 -0
  20. package/components/broadcasting-markdown/src/paragraph.vue.d.ts +78 -0
  21. package/components/broadcasting-markdown/src/speech-error.vue.d.ts +60 -0
  22. package/components/broadcasting-markdown/src/types.d.ts +17 -0
  23. package/components/broadcasting-markdown/src/use.d.ts +3 -0
  24. package/components/broadcasting-markdown/src/web-speech.vue.d.ts +102 -0
  25. package/components/bubble-list/index.css +18 -0
  26. package/components/bubble-list/index.d.ts +5 -0
  27. package/components/bubble-list/index.mjs +386 -0
  28. package/components/bubble-list/src/ctx.d.ts +30 -0
  29. package/components/bubble-list/src/index.vue.d.ts +927 -0
  30. package/components/bubble-list/src/types.d.ts +4 -0
  31. package/components/bubble-templates/index.css +18 -0
  32. package/components/bubble-templates/index.d.ts +4 -0
  33. package/components/bubble-templates/index.mjs +258 -0
  34. package/components/bubble-templates/src/index.vue.d.ts +631 -0
  35. package/components/bubble-templates/src/types.d.ts +30 -0
  36. package/components/chat-independent/index.css +47 -0
  37. package/components/chat-independent/index.d.ts +4 -0
  38. package/components/chat-independent/index.mjs +184 -0
  39. package/components/chat-independent/src/const.d.ts +13 -0
  40. package/components/chat-independent/src/ctx.d.ts +20 -0
  41. package/components/chat-independent/src/index.vue.d.ts +2388 -0
  42. package/components/chat-independent/src/types.d.ts +13 -0
  43. package/components/index.d.ts +0 -0
  44. package/components/index.mjs +1 -0
  45. package/components/index2.mjs +35980 -0
  46. package/components/lottie-animation/index.mjs +2 -2
  47. package/components/lottie-animation/src/index.vue.d.ts +1 -1
  48. package/components/monaco-editor/index.mjs +2 -2
  49. package/components/monaco-editor/src/ctx.d.ts +3 -3
  50. package/components/monaco-editor/src/index.vue.d.ts +3 -3
  51. package/components/monaco-environment/index.mjs +1 -1
  52. package/components/recorder-button/index.css +7 -10
  53. package/components/recorder-button/index.mjs +115 -83
  54. package/components/recorder-button/src/ctx.d.ts +27 -6
  55. package/components/recorder-button/src/index.vue.d.ts +196 -202
  56. package/components/recorder-button/src/types.d.ts +1 -0
  57. package/components/routes-menu-content/index.mjs +5 -5
  58. package/components/routes-menu-content/src/ctx.d.ts +1 -1
  59. package/components/routes-menu-content/src/index.vue.d.ts +223 -101
  60. package/components/routes-menu-content/src/item/core/ctx.d.ts +1 -1
  61. package/components/routes-menu-content/src/item/core/index.vue.d.ts +175 -53
  62. package/components/routes-menu-content/src/item/index.vue.d.ts +221 -99
  63. package/components/sender/index.css +2 -5
  64. package/components/sender/index.mjs +32 -13
  65. package/components/sender/src/SenderHeader.vue.d.ts +31 -45
  66. package/components/sender/src/ctx.d.ts +23 -3
  67. package/components/sender/src/index.vue.d.ts +170 -124
  68. package/components/sender/src/types.d.ts +1 -1
  69. package/components/speech-button/index.mjs +7 -14
  70. package/components/speech-button/src/ctx.d.ts +1 -1
  71. package/components/speech-button/src/index.vue.d.ts +3 -3
  72. package/components/table-columns/index.d.ts +1 -1
  73. package/components/table-columns/index.mjs +3 -6
  74. package/components/table-columns/src/ctx.d.ts +8 -8
  75. package/components/table-columns/src/el-ctx.d.ts +7 -7
  76. package/components/table-columns/src/index.vue.d.ts +38 -36
  77. package/components/tables-v1/index.mjs +3 -3
  78. package/components/tables-v1/src/ctx.d.ts +66 -68
  79. package/components/tables-v1/src/el-ctx.d.ts +48 -51
  80. package/components/tables-v1/src/index.vue.d.ts +1950 -1933
  81. package/components/tables-v1-checkbox/index.mjs +269 -33
  82. package/components/tables-v1-checkbox/src/ctx.d.ts +65 -67
  83. package/components/tables-v1-checkbox/src/index.vue.d.ts +2167 -2159
  84. package/components/typing-markdown/index.mjs +128 -33
  85. package/components/typing-markdown/src/core.d.ts +2 -3
  86. package/components/typing-markdown/src/ctx.d.ts +5 -5
  87. package/components/typing-markdown/src/index.vue.d.ts +9 -9
  88. package/components/vditor/index.mjs +5 -9
  89. package/components/vditor/src/ctx.d.ts +2 -2
  90. package/components/vditor/src/handle-fullscreen.vue.d.ts +3 -3
  91. package/components/vditor/src/handle-value.vue.d.ts +3 -3
  92. package/components/vditor/src/index.vue.d.ts +11 -11
  93. package/composables/el-breakpoints/index.d.ts +1 -1
  94. package/composables/recorder/index.mjs +751 -182
  95. package/icons/_plugin-vue_export-helper.mjs +9 -0
  96. package/icons/end/index.d.ts +4 -0
  97. package/icons/end/index.mjs +36 -0
  98. package/icons/end/src/avatar.d.ts +12 -0
  99. package/icons/end/src/icon.d.ts +57 -0
  100. package/icons/keyboard/index.d.ts +4 -0
  101. package/icons/keyboard/index.mjs +36 -0
  102. package/icons/keyboard/src/avatar.d.ts +12 -0
  103. package/icons/keyboard/src/icon.d.ts +57 -0
  104. package/icons/start/index.d.ts +4 -0
  105. package/icons/start/index.mjs +36 -0
  106. package/icons/start/src/avatar.d.ts +12 -0
  107. package/icons/start/src/icon.d.ts +57 -0
  108. package/icons/voice/index.d.ts +4 -0
  109. package/icons/voice/index.mjs +51 -0
  110. package/icons/voice/src/avatar.d.ts +12 -0
  111. package/icons/voice/src/icon.d.ts +57 -0
  112. package/icons/voice/src/index.vue.d.ts +4 -0
  113. package/index.css +99 -15
  114. package/package.json +51 -7
  115. package/fetch/PlusFetch/index.d.ts +0 -14
  116. package/fetch/PlusFetch/index.mjs +0 -638
  117. package/fetch/PlusFetch/types.d.ts +0 -54
  118. package/fetch/index.d.ts +0 -1
  119. package/fetch/index.mjs +0 -5
@@ -1,9 +1,133 @@
1
- import { defineComponent, ref, computed, watch, openBlock, createElementBlock, normalizeClass } from 'vue';
2
1
  import { noop, computedAsync, debouncedRef } from '@vueuse/core';
3
- import MarkdownIt from 'markdown-it';
2
+ import { noop as noop$1 } from '@vunk/shared/function';
3
+ import { defineComponent, ref, computed, watch, createElementBlock, openBlock, normalizeClass } from 'vue';
4
4
  import { highlight } from '@vunk/shared/markdown/shiki';
5
+ import markdownIt from 'markdown-it';
5
6
  import { _ as _export_sfc } from '../_plugin-vue_export-helper.mjs';
6
7
 
8
+ const placeholder = (id, code) => `<pre><!--::markdown-it-async::${id}::--><code>${code}</code></pre>`;
9
+ const placeholderRe = /<pre><!--::markdown-it-async::(\w+)::--><code>[\s\S]*?<\/code><\/pre>/g;
10
+ function randStr() {
11
+ return Math.random().toString(36).slice(2) + Math.random().toString(36).slice(2);
12
+ }
13
+ class MarkdownItAsync extends markdownIt {
14
+ placeholderMap;
15
+ disableWarn = false;
16
+ constructor(...args) {
17
+ const map = /* @__PURE__ */ new Map();
18
+ const options = args.length === 2 ? args[1] : args[0];
19
+ if (options && "highlight" in options)
20
+ options.highlight = wrapHightlight(options.highlight, map);
21
+ super(...args);
22
+ this.placeholderMap = map;
23
+ }
24
+ // implementation
25
+ use(plugin, ...params) {
26
+ return super.use(plugin, ...params);
27
+ }
28
+ render(src, env) {
29
+ if (this.options.warnOnSyncRender && !this.disableWarn) {
30
+ console.warn("[markdown-it-async] Please use `md.renderAsync` instead of `md.render`");
31
+ }
32
+ return super.render(src, env);
33
+ }
34
+ async renderAsync(src, env) {
35
+ this.options.highlight = wrapHightlight(this.options.highlight, this.placeholderMap);
36
+ this.disableWarn = true;
37
+ const result = this.render(src, env);
38
+ this.disableWarn = false;
39
+ return replaceAsync(result, placeholderRe, async (match, id) => {
40
+ if (!this.placeholderMap.has(id))
41
+ throw new Error(`Unknown highlight placeholder id: ${id}`);
42
+ const [promise, _str, lang, _attrs] = this.placeholderMap.get(id);
43
+ const result2 = await promise || "";
44
+ this.placeholderMap.delete(id);
45
+ if (result2.startsWith("<pre"))
46
+ return result2;
47
+ else
48
+ return `<pre><code class="language-${lang}">${result2}</code></pre>`;
49
+ });
50
+ }
51
+ }
52
+ function createMarkdownItAsync(...args) {
53
+ return new MarkdownItAsync(...args);
54
+ }
55
+ function replaceAsync(string, searchValue, replacer) {
56
+ try {
57
+ if (typeof replacer === "function") {
58
+ const values = [];
59
+ String.prototype.replace.call(string, searchValue, (...args) => {
60
+ values.push(replacer(...args));
61
+ return "";
62
+ });
63
+ return Promise.all(values).then((resolvedValues) => {
64
+ return String.prototype.replace.call(string, searchValue, () => {
65
+ return resolvedValues.shift() || "";
66
+ });
67
+ });
68
+ } else {
69
+ return Promise.resolve(
70
+ String.prototype.replace.call(string, searchValue, replacer)
71
+ );
72
+ }
73
+ } catch (error) {
74
+ return Promise.reject(error);
75
+ }
76
+ }
77
+ const wrappedSet = /* @__PURE__ */ new WeakSet();
78
+ function escapeHtml(unsafe) {
79
+ return unsafe.replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "&gt;").replace(/"/g, "&quot;").replace(/'/g, "&#039;");
80
+ }
81
+ function wrapHightlight(highlight, map) {
82
+ if (!highlight)
83
+ return void 0;
84
+ if (wrappedSet.has(highlight))
85
+ return highlight;
86
+ const wrapped = (str, lang, attrs) => {
87
+ const promise = highlight(str, lang, attrs);
88
+ if (typeof promise === "string")
89
+ return promise;
90
+ const id = randStr();
91
+ map.set(id, [promise, str, lang, attrs]);
92
+ let code = str;
93
+ if (code.endsWith("\n"))
94
+ code = code.slice(0, -1);
95
+ code = escapeHtml(code);
96
+ return placeholder(id, code);
97
+ };
98
+ wrappedSet.add(wrapped);
99
+ return wrapped;
100
+ }
101
+
102
+ const highlightInfo = highlight({
103
+ dark: "github-dark",
104
+ light: "github-light"
105
+ }, {}, {
106
+ warn: noop
107
+ });
108
+ async function createMarkdownIt() {
109
+ const [highlight] = await highlightInfo;
110
+ const md = createMarkdownItAsync({
111
+ highlight
112
+ });
113
+ md.core.ruler.after("inline", "add-is-last-class", (state) => {
114
+ const tokens = state.tokens;
115
+ let lastTagIndex = -1;
116
+ for (let i = tokens.length - 1; i >= 0; i--) {
117
+ const token = tokens[i];
118
+ if (token.nesting === 1 && !token.hidden) {
119
+ lastTagIndex = i;
120
+ break;
121
+ }
122
+ }
123
+ if (lastTagIndex !== -1) {
124
+ tokens[lastTagIndex].attrSet("class", "is-last");
125
+ }
126
+ });
127
+ return md;
128
+ }
129
+ const markdownItPromise = createMarkdownIt();
130
+
7
131
  const props = {
8
132
  source: {
9
133
  type: String,
@@ -37,35 +161,6 @@ const emits = {
37
161
  typing: null
38
162
  };
39
163
 
40
- const highlightPromise = highlight({
41
- dark: "github-dark",
42
- light: "github-light"
43
- }, {}, {
44
- warn: noop
45
- });
46
- const createMarkdownIt = async () => {
47
- const highlight2 = await highlightPromise;
48
- const md = new MarkdownIt({
49
- highlight: highlight2
50
- });
51
- md.core.ruler.after("inline", "add-is-last-class", (state) => {
52
- const tokens = state.tokens;
53
- let lastTagIndex = -1;
54
- for (let i = tokens.length - 1; i >= 0; i--) {
55
- const token = tokens[i];
56
- if (token.nesting === 1 && !token.hidden) {
57
- lastTagIndex = i;
58
- break;
59
- }
60
- }
61
- if (lastTagIndex !== -1) {
62
- tokens[lastTagIndex].attrSet("class", "is-last");
63
- }
64
- });
65
- return md;
66
- };
67
- const markdownItPromise = createMarkdownIt();
68
-
69
164
  var _sfc_main = defineComponent({
70
165
  name: "VkTypingMarkdown",
71
166
  props,
@@ -83,7 +178,7 @@ var _sfc_main = defineComponent({
83
178
  return md;
84
179
  });
85
180
  const htmlText = computedAsync(async () => {
86
- currentText.value;
181
+ noop$1(currentText.value);
87
182
  const md = await theMarkdownIt;
88
183
  return md.render(currentText.value);
89
184
  }, "");
@@ -135,7 +230,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
135
230
  innerHTML: _ctx.htmlText
136
231
  }, null, 10, _hoisted_1);
137
232
  }
138
- var VkTypingMarkdown = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__file", "/home/runner/work/vunk-plus/vunk-plus/packages/components/typing-markdown/src/index.vue"]]);
233
+ var VkTypingMarkdown = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
139
234
 
140
235
  var types = /*#__PURE__*/Object.freeze({
141
236
  __proto__: null
@@ -1,3 +1,2 @@
1
- import MarkdownIt from 'markdown-it';
2
- export declare const createMarkdownIt: () => Promise<MarkdownIt>;
3
- export declare const markdownItPromise: Promise<MarkdownIt>;
1
+ export declare function createMarkdownIt(): Promise<import("markdown-it-async").MarkdownItAsync>;
2
+ export declare const markdownItPromise: Promise<import("markdown-it-async").MarkdownItAsync>;
@@ -1,5 +1,5 @@
1
- import type MarkdownIt from "markdown-it";
2
- import { PropType } from "vue";
1
+ import type { MarkdownItAsync } from 'markdown-it-async';
2
+ import type { PropType } from 'vue';
3
3
  export declare const props: {
4
4
  source: {
5
5
  type: StringConstructor;
@@ -24,10 +24,10 @@ export declare const props: {
24
24
  * @description markdown-it 配置
25
25
  */
26
26
  markdownItSetup: {
27
- type: PropType<(md: MarkdownIt) => void>;
28
- default: any;
27
+ type: PropType<(md: MarkdownItAsync) => void>;
28
+ default: null;
29
29
  };
30
30
  };
31
31
  export declare const emits: {
32
- typing: any;
32
+ typing: null;
33
33
  };
@@ -16,14 +16,14 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
16
16
  default: boolean;
17
17
  };
18
18
  markdownItSetup: {
19
- type: import("vue").PropType<(md: import("markdown-it")) => void>;
20
- default: any;
19
+ type: import("vue").PropType<(md: import("markdown-it-async").MarkdownItAsync) => void>;
20
+ default: null;
21
21
  };
22
22
  }>, {
23
23
  htmlText: import("vue").Ref<string, string>;
24
24
  isDebouncedTyping: Readonly<import("vue").Ref<boolean, boolean>>;
25
25
  }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
26
- typing: any;
26
+ typing: null;
27
27
  }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
28
28
  source: {
29
29
  type: StringConstructor;
@@ -42,16 +42,16 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
42
42
  default: boolean;
43
43
  };
44
44
  markdownItSetup: {
45
- type: import("vue").PropType<(md: import("markdown-it")) => void>;
46
- default: any;
45
+ type: import("vue").PropType<(md: import("markdown-it-async").MarkdownItAsync) => void>;
46
+ default: null;
47
47
  };
48
48
  }>> & Readonly<{
49
- onTyping?: (...args: any[] | unknown[]) => any;
49
+ onTyping?: ((...args: any[]) => any) | undefined;
50
50
  }>, {
51
- disabled: boolean;
52
51
  source: string;
53
- pause: boolean;
54
52
  delay: number;
55
- markdownItSetup: (md: import("markdown-it")) => void;
53
+ pause: boolean;
54
+ disabled: boolean;
55
+ markdownItSetup: (md: import("markdown-it-async").MarkdownItAsync) => void;
56
56
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
57
57
  export default _default;
@@ -1,9 +1,9 @@
1
1
  import Vditor from 'vditor';
2
2
  import { bindPropsFactory, onEmitsFactory } from '@vunk/core/shared/utils-vue';
3
- import { inject, unref, defineComponent, nextTick, ref, watch, shallowRef, provide, onMounted, resolveComponent, openBlock, createElementBlock, Fragment, createElementVNode, createBlock, withCtx, normalizeClass, renderSlot, createCommentVNode } from 'vue';
3
+ import { inject, unref, defineComponent, nextTick, ref, watch, shallowRef, provide, onMounted, resolveComponent, createElementBlock, openBlock, Fragment, createElementVNode, createBlock, createCommentVNode, renderSlot, withCtx, normalizeClass } from 'vue';
4
4
  import { watchPausable, useMutationObserver } from '@vueuse/core';
5
- import { _ as _export_sfc } from '../_plugin-vue_export-helper.mjs';
6
5
  import { VkAsyncTeleport } from '@vunk/core';
6
+ import { _ as _export_sfc } from '../_plugin-vue_export-helper.mjs';
7
7
 
8
8
  const defaultToolbar = [
9
9
  "headings",
@@ -117,8 +117,6 @@ var _sfc_main$2 = defineComponent({
117
117
  }
118
118
  });
119
119
 
120
- var HandleValue = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["__file", "/home/runner/work/vunk-plus/vunk-plus/packages/components/vditor/src/handle-value.vue"]]);
121
-
122
120
  var _sfc_main$1 = defineComponent({
123
121
  props: {
124
122
  fullscreen: {
@@ -159,13 +157,11 @@ var _sfc_main$1 = defineComponent({
159
157
  }
160
158
  });
161
159
 
162
- var HandleFullscreen = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["__file", "/home/runner/work/vunk-plus/vunk-plus/packages/components/vditor/src/handle-fullscreen.vue"]]);
163
-
164
160
  var _sfc_main = defineComponent({
165
161
  name: "VkVditor",
166
162
  components: {
167
- HandleValue,
168
- HandleFullscreen,
163
+ HandleValue: _sfc_main$2,
164
+ HandleFullscreen: _sfc_main$1,
169
165
  VkAsyncTeleport
170
166
  },
171
167
  props,
@@ -277,7 +273,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
277
273
  /* STABLE_FRAGMENT */
278
274
  );
279
275
  }
280
- var VkVditor = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__file", "/home/runner/work/vunk-plus/vunk-plus/packages/components/vditor/src/index.vue"]]);
276
+ var VkVditor = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
281
277
 
282
278
  var types = /*#__PURE__*/Object.freeze({
283
279
  __proto__: null
@@ -22,14 +22,14 @@ export declare const props: {
22
22
  default: boolean;
23
23
  };
24
24
  };
25
- export declare const createBindProps: <T2 extends import("@vunk/core").NormalObject, EX extends (Extract<"modelValue", keyof T2> | Extract<"defaultOptions", keyof T2> | Extract<"placeholder", keyof T2> | Extract<"toolbar", keyof T2> | Extract<"fullscreen", keyof T2>)[]>(propsArg: T2, excludes?: EX) => import("vue").ComputedRef<{ [P in EX extends (infer KE)[] ? Exclude<Extract<"modelValue", keyof T2>, KE> | Exclude<Extract<"defaultOptions", keyof T2>, KE> | Exclude<Extract<"placeholder", keyof T2>, KE> | Exclude<Extract<"toolbar", keyof T2>, KE> | Exclude<Extract<"fullscreen", keyof T2>, KE> : Extract<"modelValue", keyof T2> | Extract<"defaultOptions", keyof T2> | Extract<"placeholder", keyof T2> | Extract<"toolbar", keyof T2> | Extract<"fullscreen", keyof T2>]: { [k in Extract<"modelValue", keyof T2> | Extract<"defaultOptions", keyof T2> | Extract<"placeholder", keyof T2> | Extract<"toolbar", keyof T2> | Extract<"fullscreen", keyof T2>]: T2[k]; }[P]; }>;
25
+ export declare const createBindProps: <T2 extends import("@vunk/core").NormalObject, EX extends (Extract<"modelValue", keyof T2> | Extract<"placeholder", keyof T2> | Extract<"defaultOptions", keyof T2> | Extract<"toolbar", keyof T2> | Extract<"fullscreen", keyof T2>)[]>(propsArg: T2, excludes?: EX | undefined) => import("vue").ComputedRef<{ [P in EX extends (infer KE)[] ? Exclude<Extract<"modelValue", keyof T2>, KE> | Exclude<Extract<"placeholder", keyof T2>, KE> | Exclude<Extract<"defaultOptions", keyof T2>, KE> | Exclude<Extract<"toolbar", keyof T2>, KE> | Exclude<Extract<"fullscreen", keyof T2>, KE> : Extract<"modelValue", keyof T2> | Extract<"placeholder", keyof T2> | Extract<"defaultOptions", keyof T2> | Extract<"toolbar", keyof T2> | Extract<"fullscreen", keyof T2>]: { [k in Extract<"modelValue", keyof T2> | Extract<"placeholder", keyof T2> | Extract<"defaultOptions", keyof T2> | Extract<"toolbar", keyof T2> | Extract<"fullscreen", keyof T2>]: T2[k]; }[P]; }>;
26
26
  export declare const emits: {
27
27
  load: (e: Vditor) => Vditor;
28
28
  'update:modelValue': (e: string) => string;
29
29
  ctrlEnter: (e: string) => string;
30
30
  'update:fullscreen': (e: boolean) => boolean;
31
31
  };
32
- export declare const createOnEmits: <T2 extends import("@vunk/core").AnyFunc, EX extends ("load" | "update:modelValue" | "update:fullscreen" | "ctrlEnter")[]>(emit: T2, excludes?: EX) => { [P in EX extends (infer KE)[] ? Exclude<"load", KE> | Exclude<"update:modelValue", KE> | Exclude<"update:fullscreen", KE> | Exclude<"ctrlEnter", KE> : "load" | "update:modelValue" | "update:fullscreen" | "ctrlEnter"]: {
32
+ export declare const createOnEmits: <T2 extends import("@vunk/core").AnyFunc, EX extends ("load" | "update:modelValue" | "update:fullscreen" | "ctrlEnter")[]>(emit: T2, excludes?: EX | undefined) => { [P in EX extends (infer KE)[] ? Exclude<"load", KE> | Exclude<"update:modelValue", KE> | Exclude<"update:fullscreen", KE> | Exclude<"ctrlEnter", KE> : "load" | "update:modelValue" | "update:fullscreen" | "ctrlEnter"]: {
33
33
  load: (...e: import("@vunk/core").RestParameters<T2>) => void;
34
34
  'update:modelValue': (...e: import("@vunk/core").RestParameters<T2>) => void;
35
35
  ctrlEnter: (...e: import("@vunk/core").RestParameters<T2>) => void;
@@ -3,15 +3,15 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
3
3
  type: BooleanConstructor;
4
4
  default: boolean;
5
5
  };
6
- }>, () => any, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
7
- 'update:fullscreen': any;
6
+ }>, () => null, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
7
+ 'update:fullscreen': null;
8
8
  }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
9
9
  fullscreen: {
10
10
  type: BooleanConstructor;
11
11
  default: boolean;
12
12
  };
13
13
  }>> & Readonly<{
14
- "onUpdate:fullscreen"?: (...args: any[] | unknown[]) => any;
14
+ "onUpdate:fullscreen"?: ((...args: any[]) => any) | undefined;
15
15
  }>, {
16
16
  fullscreen: boolean;
17
17
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
@@ -3,15 +3,15 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
3
3
  type: StringConstructor;
4
4
  default: string;
5
5
  };
6
- }>, () => any, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
7
- 'update:modelValue': any;
6
+ }>, () => null, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
7
+ 'update:modelValue': null;
8
8
  }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
9
9
  modelValue: {
10
10
  type: StringConstructor;
11
11
  default: string;
12
12
  };
13
13
  }>> & Readonly<{
14
- "onUpdate:modelValue"?: (...args: any[] | unknown[]) => any;
14
+ "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
15
15
  }>, {
16
16
  modelValue: string;
17
17
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
@@ -53,14 +53,14 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
53
53
  default: boolean;
54
54
  };
55
55
  }>> & Readonly<{
56
- onLoad?: (e: Vditor) => any;
57
- "onUpdate:modelValue"?: (e: string) => any;
58
- "onUpdate:fullscreen"?: (e: boolean) => any;
59
- onCtrlEnter?: (e: string) => any;
56
+ onLoad?: ((e: Vditor) => any) | undefined;
57
+ "onUpdate:modelValue"?: ((e: string) => any) | undefined;
58
+ "onUpdate:fullscreen"?: ((e: boolean) => any) | undefined;
59
+ onCtrlEnter?: ((e: string) => any) | undefined;
60
60
  }>, {
61
61
  modelValue: string;
62
- defaultOptions: IOptions;
63
62
  placeholder: string;
63
+ defaultOptions: IOptions;
64
64
  toolbar: string[];
65
65
  fullscreen: boolean;
66
66
  }, {}, {
@@ -69,15 +69,15 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
69
69
  type: StringConstructor;
70
70
  default: string;
71
71
  };
72
- }>, () => any, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
73
- 'update:modelValue': any;
72
+ }>, () => null, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
73
+ 'update:modelValue': null;
74
74
  }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
75
75
  modelValue: {
76
76
  type: StringConstructor;
77
77
  default: string;
78
78
  };
79
79
  }>> & Readonly<{
80
- "onUpdate:modelValue"?: (...args: any[] | unknown[]) => any;
80
+ "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
81
81
  }>, {
82
82
  modelValue: string;
83
83
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
@@ -86,15 +86,15 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
86
86
  type: BooleanConstructor;
87
87
  default: boolean;
88
88
  };
89
- }>, () => any, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
90
- 'update:fullscreen': any;
89
+ }>, () => null, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
90
+ 'update:fullscreen': null;
91
91
  }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
92
92
  fullscreen: {
93
93
  type: BooleanConstructor;
94
94
  default: boolean;
95
95
  };
96
96
  }>> & Readonly<{
97
- "onUpdate:fullscreen"?: (...args: any[] | unknown[]) => any;
97
+ "onUpdate:fullscreen"?: ((...args: any[]) => any) | undefined;
98
98
  }>, {
99
99
  fullscreen: boolean;
100
100
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
@@ -11,7 +11,7 @@ export declare const useElBreakpoints: () => {
11
11
  isSmallerOrEqual(k: import("@vueuse/shared").MaybeRefOrGetter<"sm" | "md" | "lg" | "xl">): boolean;
12
12
  isInBetween(a: import("@vueuse/shared").MaybeRefOrGetter<"sm" | "md" | "lg" | "xl">, b: import("@vueuse/shared").MaybeRefOrGetter<"sm" | "md" | "lg" | "xl">): boolean;
13
13
  current: () => import("vue").ComputedRef<string[]>;
14
- active(): import("vue").ComputedRef<string>;
14
+ active(): import("vue").ComputedRef<string | undefined>;
15
15
  };
16
16
  isMobile: import("vue").Ref<boolean, boolean>;
17
17
  isDesktop: import("vue").Ref<boolean, boolean>;