@matechat/core 1.12.2 → 1.13.0-alpha.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/Bubble/index.css +1 -1
- package/Bubble/index.js +2 -2
- package/Header/index.css +1 -1
- package/Header/index.js +1 -1
- package/Input/index.css +1 -1
- package/Input/index.js +48 -48
- package/Introduction/index.css +1 -1
- package/Introduction/index.js +6 -6
- package/Layout/Content.vue.d.ts +17 -1
- package/Layout/index.css +1 -1
- package/Layout/index.js +145 -36
- package/Layout/layout-types.d.ts +4 -0
- package/List/index.css +1 -1
- package/List/index.js +1 -1
- package/MarkdownCard/index.css +1 -1
- package/MarkdownCard/index.js +161 -161
- package/Mention/index.css +1 -1
- package/Mention/index.js +6 -6
- package/Prompt/index.css +1 -1
- package/Prompt/index.js +5 -5
- package/README.md +432 -432
- package/Toolbar/index.css +1 -1
- package/Toolbar/index.js +15 -15
- package/package.json +1 -1
package/Mention/index.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.mc-mention[data-v-
|
|
1
|
+
.mc-mention[data-v-8d228337]{position:fixed;max-height:300px;border-radius:var(--devui-border-radius, 2px);background-color:var(--devui-connected-overlay-bg, #ffffff);box-shadow:var(--devui-shadow-length-connected-overlay, 0 2px 12px 0) var(--devui-shadow, rgba(37, 43, 58, .24));transform-origin:0% 100%;z-index:1000}.mc-mention-fade-enter-from[data-v-8d228337],.mc-mention-fade-leave-to[data-v-8d228337]{opacity:.8;transform:scaleY(.8) translateY(4px)}.mc-mention-fade-enter-to[data-v-8d228337],.mc-mention-fade-leave-from[data-v-8d228337]{opacity:1;transform:scaleY(.9999) translateY(0)}.mc-mention-fade-enter-active[data-v-8d228337]{transition:transform .2s cubic-bezier(.16,.75,.5,1),opacity .2s cubic-bezier(.16,.75,.5,1)}.mc-mention-fade-leave-active[data-v-8d228337]{transition:transform .2s cubic-bezier(.5,0,.84,.25),opacity .2s cubic-bezier(.5,0,.84,.25)}
|
package/Mention/index.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import "./index.css";
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
var u = (s, e, t) =>
|
|
5
|
-
import { ref as E, reactive as
|
|
2
|
+
var O = Object.defineProperty;
|
|
3
|
+
var T = (s, e, t) => e in s ? O(s, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : s[e] = t;
|
|
4
|
+
var u = (s, e, t) => T(s, typeof e != "symbol" ? e + "" : e, t);
|
|
5
|
+
import { ref as E, reactive as b, nextTick as v, watch as m, onMounted as A, onUnmounted as $, defineComponent as U, openBlock as y, createElementBlock as C, Fragment as D, createVNode as x, unref as w, withCtx as I, renderSlot as k, createBlock as R, Teleport as L, Transition as B, normalizeStyle as H, normalizeClass as W, createCommentVNode as K } from "vue";
|
|
6
6
|
import { PopperTrigger as z } from "@matechat/core/PopperTrigger";
|
|
7
7
|
import { computePosition as S, offset as V, autoUpdate as F } from "@floating-ui/dom";
|
|
8
8
|
import { debounce as j, isObject as N } from "lodash-es";
|
|
@@ -294,7 +294,7 @@ class tt extends f {
|
|
|
294
294
|
}
|
|
295
295
|
}
|
|
296
296
|
function et(s, e) {
|
|
297
|
-
const t = E(), i = E(), o = E(), l =
|
|
297
|
+
const t = E(), i = E(), o = E(), l = b({ top: "0px", left: "0px", width: "" });
|
|
298
298
|
let a, n;
|
|
299
299
|
n = new tt({
|
|
300
300
|
...f.defaultAdapter,
|
|
@@ -417,7 +417,7 @@ const it = /* @__PURE__ */ U({
|
|
|
417
417
|
for (const [i, o] of e)
|
|
418
418
|
t[i] = o;
|
|
419
419
|
return t;
|
|
420
|
-
}, _ = /* @__PURE__ */ nt(it, [["__scopeId", "data-v-
|
|
420
|
+
}, _ = /* @__PURE__ */ nt(it, [["__scopeId", "data-v-8d228337"]]);
|
|
421
421
|
_.install = (s) => {
|
|
422
422
|
s.component("McMention", _);
|
|
423
423
|
};
|
package/Prompt/index.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.mc-prompt-icon{display:inline-block;color:var(--devui-icon-fill, #71757f)}.mc-prompt-icon i{display:block;transition:all var(--devui-animation-duration-slow, .3s) var(--devui-animation-ease-in-out-smooth, cubic-bezier(.645, .045, .355, 1))}.mc-prompt-icon img{display:block}.mc-prompt-item[data-v-
|
|
1
|
+
.mc-prompt-icon{display:inline-block;color:var(--devui-icon-fill, #71757f)}.mc-prompt-icon i{display:block;transition:all var(--devui-animation-duration-slow, .3s) var(--devui-animation-ease-in-out-smooth, cubic-bezier(.645, .045, .355, 1))}.mc-prompt-icon img{display:block}.mc-prompt-item[data-v-f03be430]{display:flex;gap:8px}.mc-prompt-item .mc-prompt-item-icon.no-description[data-v-f03be430]{display:flex;align-items:center}.mc-prompt-item .mc-prompt-item-content[data-v-f03be430]{display:flex;flex-direction:column;gap:4px}.mc-prompt-item .mc-prompt-item-content .mc-prompt-item-label[data-v-f03be430]{font-weight:700}.mc-prompt-item .mc-prompt-item-content .mc-prompt-item-description[data-v-f03be430]{color:var(--devui-aide-text, #71757f)}
|
package/Prompt/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import "./index.css";
|
|
2
|
-
import { defineComponent as a, computed as v, resolveDynamicComponent as
|
|
2
|
+
import { defineComponent as a, computed as v, resolveDynamicComponent as P, openBlock as n, createElementBlock as s, createBlock as C, unref as z, normalizeStyle as y, normalizeClass as b, createElementVNode as S, normalizeProps as I, mergeProps as $, createCommentVNode as l, toDisplayString as h, createVNode as k, withCtx as V } from "vue";
|
|
3
3
|
import { ListVariant as N, ListDirection as B, McList as D } from "@matechat/core/List";
|
|
4
4
|
const L = {
|
|
5
5
|
name: {
|
|
@@ -22,7 +22,7 @@ const L = {
|
|
|
22
22
|
__name: "Icon",
|
|
23
23
|
props: L,
|
|
24
24
|
setup(r) {
|
|
25
|
-
const t = r, i = v(() => typeof t.size == "number" ? `${t.size}px` : t.size), o = v(() => /^icon-/.test(t.name) ? t.name : ""), p = t.component &&
|
|
25
|
+
const t = r, i = v(() => typeof t.size == "number" ? `${t.size}px` : t.size), o = v(() => /^icon-/.test(t.name) ? t.name : ""), p = t.component && P(t.component);
|
|
26
26
|
function c(e) {
|
|
27
27
|
return /^((http|https):)?\/\//.test(e);
|
|
28
28
|
}
|
|
@@ -41,7 +41,7 @@ const L = {
|
|
|
41
41
|
"i",
|
|
42
42
|
{
|
|
43
43
|
key: 2,
|
|
44
|
-
class:
|
|
44
|
+
class: b(o.value),
|
|
45
45
|
style: y({ fontSize: i.value, color: e.color })
|
|
46
46
|
},
|
|
47
47
|
null,
|
|
@@ -86,7 +86,7 @@ const L = {
|
|
|
86
86
|
S(
|
|
87
87
|
"div",
|
|
88
88
|
{
|
|
89
|
-
class:
|
|
89
|
+
class: b(["mc-prompt-item-icon", { "no-description": !((o = t.prompt) != null && o.desc) }])
|
|
90
90
|
},
|
|
91
91
|
[
|
|
92
92
|
(p = t.prompt) != null && p.iconConfig ? (n(), C(
|
|
@@ -124,7 +124,7 @@ const L = {
|
|
|
124
124
|
for (const [o, p] of t)
|
|
125
125
|
i[o] = p;
|
|
126
126
|
return i;
|
|
127
|
-
}, J = /* @__PURE__ */ H(G, [["__scopeId", "data-v-
|
|
127
|
+
}, J = /* @__PURE__ */ H(G, [["__scopeId", "data-v-f03be430"]]), K = { class: "mc-prompt" }, g = /* @__PURE__ */ a({
|
|
128
128
|
__name: "Prompt",
|
|
129
129
|
props: w,
|
|
130
130
|
emits: ["itemClick"],
|