@antdv-next/x 0.0.4 → 0.1.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/dist/actions/Actions.js +1 -1
- package/dist/actions/ActionsAudio.js +1 -1
- package/dist/actions/ActionsCopy.js +1 -1
- package/dist/actions/ActionsFeedback.js +1 -1
- package/dist/actions/ActionsItem.js +1 -1
- package/dist/attachments/index.js +1 -1
- package/dist/bubble/Bubble.js +1 -1
- package/dist/bubble/BubbleList.js +1 -1
- package/dist/bubble/Divider.js +1 -1
- package/dist/bubble/System.js +1 -1
- package/dist/code-highlighter/CodeHighlighter.js +3 -14
- package/dist/code-highlighter/shiki.d.ts +4 -0
- package/dist/code-highlighter/shiki.js +72 -0
- package/dist/conversations/Creation.js +1 -1
- package/dist/conversations/index.js +1 -1
- package/dist/file-card/FileCard.js +1 -1
- package/dist/file-card/List.js +1 -1
- package/dist/index.esm.js +140 -75
- package/dist/index.js +0 -25
- package/dist/index.umd.js +146 -80
- package/dist/mermaid/Mermaid.d.ts +1 -1
- package/dist/mermaid/Mermaid.js +5 -5
- package/dist/mermaid/loader.d.ts +6 -0
- package/dist/mermaid/loader.js +33 -0
- package/dist/mermaid/mermaid-core.d.js +0 -0
- package/dist/package.js +1 -1
- package/dist/prompts/Prompts.js +6 -4
- package/dist/sender/Sender.js +1 -1
- package/dist/sender/SenderHeader.js +1 -1
- package/dist/sender/SenderSwitch.js +1 -1
- package/dist/sources/Sources.js +1 -1
- package/dist/suggestion/Suggestion.js +1 -1
- package/dist/think/Think.js +1 -1
- package/dist/thought-chain/Item.js +1 -1
- package/dist/thought-chain/ThoughtChain.js +1 -1
- package/dist/welcome/index.js +1 -1
- package/dist/x-provider/index.js +1 -1
- package/global.d.ts +61 -18
- package/package.json +2 -2
package/dist/index.esm.js
CHANGED
|
@@ -7,10 +7,13 @@ import { genStyleUtils, mergeToken } from "@antdv-next/cssinjs/cssinjs-utils";
|
|
|
7
7
|
import { FastColor } from "@ant-design/fast-color";
|
|
8
8
|
import useAntdToken from "antdv-next/dist/theme/useToken";
|
|
9
9
|
import { useResizeObserver } from "@vueuse/core";
|
|
10
|
+
import { createHighlighterCore } from "shiki/core";
|
|
11
|
+
import darkTheme from "shiki/dist/themes/vitesse-dark.mjs";
|
|
12
|
+
import lightTheme from "shiki/dist/themes/vitesse-light.mjs";
|
|
13
|
+
import { createJavaScriptRegexEngine } from "shiki/engine/javascript";
|
|
10
14
|
import { KeyCode, classNames } from "@v-c/util";
|
|
11
|
-
import mermaid from "mermaid";
|
|
12
15
|
//#region package.json
|
|
13
|
-
var version = "0.0
|
|
16
|
+
var version = "0.1.0";
|
|
14
17
|
//#endregion
|
|
15
18
|
//#region components/x-provider/context.ts
|
|
16
19
|
var XProviderContextKey = Symbol("antdv-next-x-provider-context");
|
|
@@ -505,7 +508,7 @@ function getMotionTransitionProps(motionName) {
|
|
|
505
508
|
};
|
|
506
509
|
}
|
|
507
510
|
var XActions = /* @__PURE__ */ defineComponent({
|
|
508
|
-
name: "
|
|
511
|
+
name: "AxActions",
|
|
509
512
|
inheritAttrs: false,
|
|
510
513
|
props: {
|
|
511
514
|
items: {
|
|
@@ -663,7 +666,7 @@ var ACTIONS_ITEM_STATUS = /* @__PURE__ */ function(ACTIONS_ITEM_STATUS) {
|
|
|
663
666
|
return ACTIONS_ITEM_STATUS;
|
|
664
667
|
}({});
|
|
665
668
|
var XActionsItem = /* @__PURE__ */ defineComponent({
|
|
666
|
-
name: "
|
|
669
|
+
name: "AxActionsItem",
|
|
667
670
|
inheritAttrs: false,
|
|
668
671
|
props: {
|
|
669
672
|
status: {
|
|
@@ -773,7 +776,7 @@ var XActionsItem = /* @__PURE__ */ defineComponent({
|
|
|
773
776
|
//#endregion
|
|
774
777
|
//#region components/actions/ActionsAudio.tsx
|
|
775
778
|
var XActionsAudio = /* @__PURE__ */ defineComponent({
|
|
776
|
-
name: "
|
|
779
|
+
name: "AxActionsAudio",
|
|
777
780
|
props: {
|
|
778
781
|
status: {
|
|
779
782
|
type: String,
|
|
@@ -847,7 +850,7 @@ var normalizeCopyIcons = (icon) => {
|
|
|
847
850
|
return [icon, icon];
|
|
848
851
|
};
|
|
849
852
|
var XActionsCopy = /* @__PURE__ */ defineComponent({
|
|
850
|
-
name: "
|
|
853
|
+
name: "AxActionsCopy",
|
|
851
854
|
inheritAttrs: false,
|
|
852
855
|
props: {
|
|
853
856
|
text: {
|
|
@@ -952,7 +955,7 @@ var FEEDBACK_VALUE = /* @__PURE__ */ function(FEEDBACK_VALUE) {
|
|
|
952
955
|
return FEEDBACK_VALUE;
|
|
953
956
|
}(FEEDBACK_VALUE || {});
|
|
954
957
|
var XActionsFeedback = /* @__PURE__ */ defineComponent({
|
|
955
|
-
name: "
|
|
958
|
+
name: "AxActionsFeedback",
|
|
956
959
|
inheritAttrs: false,
|
|
957
960
|
props: {
|
|
958
961
|
value: {
|
|
@@ -1930,7 +1933,7 @@ var DEFAULT_ICON = {
|
|
|
1930
1933
|
key: "default"
|
|
1931
1934
|
};
|
|
1932
1935
|
var XFileCard = /* @__PURE__ */ defineComponent({
|
|
1933
|
-
name: "
|
|
1936
|
+
name: "AxFileCard",
|
|
1934
1937
|
inheritAttrs: false,
|
|
1935
1938
|
props: {
|
|
1936
1939
|
prefixCls: {
|
|
@@ -2169,7 +2172,7 @@ function _isSlot$6(s) {
|
|
|
2169
2172
|
return typeof s === "function" || Object.prototype.toString.call(s) === "[object Object]" && !isVNode(s);
|
|
2170
2173
|
}
|
|
2171
2174
|
var XFileCardList = /* @__PURE__ */ defineComponent({
|
|
2172
|
-
name: "
|
|
2175
|
+
name: "AxFileCardList",
|
|
2173
2176
|
props: {
|
|
2174
2177
|
prefixCls: {
|
|
2175
2178
|
type: String,
|
|
@@ -2876,7 +2879,7 @@ function _isSlot$4(s) {
|
|
|
2876
2879
|
return typeof s === "function" || Object.prototype.toString.call(s) === "[object Object]" && !isVNode(s);
|
|
2877
2880
|
}
|
|
2878
2881
|
var XAttachments = /* @__PURE__ */ defineComponent({
|
|
2879
|
-
name: "
|
|
2882
|
+
name: "AxAttachments",
|
|
2880
2883
|
inheritAttrs: false,
|
|
2881
2884
|
props: {
|
|
2882
2885
|
prefixCls: {
|
|
@@ -3820,7 +3823,7 @@ function hasRenderableNode$7(node) {
|
|
|
3820
3823
|
return node !== null && node !== void 0 && node !== false;
|
|
3821
3824
|
}
|
|
3822
3825
|
var XBubble = /* @__PURE__ */ defineComponent({
|
|
3823
|
-
name: "
|
|
3826
|
+
name: "AxBubble",
|
|
3824
3827
|
inheritAttrs: false,
|
|
3825
3828
|
props: {
|
|
3826
3829
|
prefixCls: {
|
|
@@ -4161,7 +4164,7 @@ function _isSlot$3(s) {
|
|
|
4161
4164
|
return typeof s === "function" || Object.prototype.toString.call(s) === "[object Object]" && !isVNode(s);
|
|
4162
4165
|
}
|
|
4163
4166
|
var XBubbleDivider = /* @__PURE__ */ defineComponent({
|
|
4164
|
-
name: "
|
|
4167
|
+
name: "AxBubbleDivider",
|
|
4165
4168
|
props: {
|
|
4166
4169
|
prefixCls: {
|
|
4167
4170
|
type: String,
|
|
@@ -4351,7 +4354,7 @@ function useCompatibleScroll(scrollDomRef, contentDomRef) {
|
|
|
4351
4354
|
//#endregion
|
|
4352
4355
|
//#region components/bubble/System.tsx
|
|
4353
4356
|
var XBubbleSystem = /* @__PURE__ */ defineComponent({
|
|
4354
|
-
name: "
|
|
4357
|
+
name: "AxBubbleSystem",
|
|
4355
4358
|
props: {
|
|
4356
4359
|
prefixCls: {
|
|
4357
4360
|
type: String,
|
|
@@ -4440,7 +4443,7 @@ var bubbleSlotNames = [
|
|
|
4440
4443
|
"extra"
|
|
4441
4444
|
];
|
|
4442
4445
|
var XBubbleList = /* @__PURE__ */ defineComponent({
|
|
4443
|
-
name: "
|
|
4446
|
+
name: "AxBubbleList",
|
|
4444
4447
|
inheritAttrs: false,
|
|
4445
4448
|
props: {
|
|
4446
4449
|
prefixCls: {
|
|
@@ -4678,6 +4681,73 @@ BubbleWithSub.List = XBubbleList;
|
|
|
4678
4681
|
BubbleWithSub.System = XBubbleSystem;
|
|
4679
4682
|
BubbleWithSub.Divider = XBubbleDivider;
|
|
4680
4683
|
//#endregion
|
|
4684
|
+
//#region components/code-highlighter/shiki.ts
|
|
4685
|
+
var SUPPORTED_LANG_ALIASES = {
|
|
4686
|
+
ts: "typescript",
|
|
4687
|
+
js: "javascript",
|
|
4688
|
+
py: "python",
|
|
4689
|
+
md: "markdown",
|
|
4690
|
+
yml: "yaml",
|
|
4691
|
+
shell: "bash",
|
|
4692
|
+
zsh: "bash",
|
|
4693
|
+
sh: "bash",
|
|
4694
|
+
vue: "vue"
|
|
4695
|
+
};
|
|
4696
|
+
var LANG_LOADERS = {
|
|
4697
|
+
javascript: () => import("shiki/dist/langs/javascript.mjs"),
|
|
4698
|
+
typescript: () => import("shiki/dist/langs/typescript.mjs"),
|
|
4699
|
+
jsx: () => import("shiki/dist/langs/jsx.mjs"),
|
|
4700
|
+
tsx: () => import("shiki/dist/langs/tsx.mjs"),
|
|
4701
|
+
json: () => import("shiki/dist/langs/json.mjs"),
|
|
4702
|
+
bash: () => import("shiki/dist/langs/bash.mjs"),
|
|
4703
|
+
markdown: () => import("shiki/dist/langs/markdown.mjs"),
|
|
4704
|
+
html: () => import("shiki/dist/langs/html.mjs"),
|
|
4705
|
+
css: () => import("shiki/dist/langs/css.mjs"),
|
|
4706
|
+
vue: () => import("shiki/dist/langs/vue.mjs"),
|
|
4707
|
+
"vue-html": () => import("shiki/dist/langs/vue-html.mjs"),
|
|
4708
|
+
python: () => import("shiki/dist/langs/python.mjs"),
|
|
4709
|
+
mermaid: () => import("shiki/dist/langs/mermaid.mjs"),
|
|
4710
|
+
yaml: () => import("shiki/dist/langs/yaml.mjs"),
|
|
4711
|
+
diff: () => import("shiki/dist/langs/diff.mjs")
|
|
4712
|
+
};
|
|
4713
|
+
var highlighter = null;
|
|
4714
|
+
var highlighterPromise = null;
|
|
4715
|
+
var loadedLangs = /* @__PURE__ */ new Set();
|
|
4716
|
+
function normalizeLanguage(language) {
|
|
4717
|
+
const input = (language || "text").toLowerCase();
|
|
4718
|
+
return SUPPORTED_LANG_ALIASES[input] || input;
|
|
4719
|
+
}
|
|
4720
|
+
function escapeHtml(str) {
|
|
4721
|
+
return str.replace(/&/g, "&").replace(/</g, "<").replace(/>/g, ">").replace(/"/g, """).replace(/'/g, "'");
|
|
4722
|
+
}
|
|
4723
|
+
async function getHighlighter() {
|
|
4724
|
+
if (highlighter) return highlighter;
|
|
4725
|
+
if (!highlighterPromise) highlighterPromise = createHighlighterCore({
|
|
4726
|
+
themes: [lightTheme, darkTheme],
|
|
4727
|
+
langs: [],
|
|
4728
|
+
engine: createJavaScriptRegexEngine()
|
|
4729
|
+
});
|
|
4730
|
+
highlighter = await highlighterPromise;
|
|
4731
|
+
return highlighter;
|
|
4732
|
+
}
|
|
4733
|
+
async function loadLang(lang) {
|
|
4734
|
+
const loader = LANG_LOADERS[lang];
|
|
4735
|
+
if (!loader || loadedLangs.has(lang)) return false;
|
|
4736
|
+
const instance = await getHighlighter();
|
|
4737
|
+
const mod = await loader();
|
|
4738
|
+
await instance.loadLanguage(mod.default);
|
|
4739
|
+
loadedLangs.add(lang);
|
|
4740
|
+
return true;
|
|
4741
|
+
}
|
|
4742
|
+
async function codeToHtml(code, options = {}) {
|
|
4743
|
+
const lang = normalizeLanguage(options.lang);
|
|
4744
|
+
if (!await loadLang(lang)) return `<pre><code>${escapeHtml(code)}</code></pre>`;
|
|
4745
|
+
return (await getHighlighter()).codeToHtml(code, {
|
|
4746
|
+
lang,
|
|
4747
|
+
theme: options.theme || "vitesse-light"
|
|
4748
|
+
});
|
|
4749
|
+
}
|
|
4750
|
+
//#endregion
|
|
4681
4751
|
//#region components/code-highlighter/style/index.ts
|
|
4682
4752
|
var genCodeHighlighterStyle = (token) => {
|
|
4683
4753
|
const { componentCls } = token;
|
|
@@ -4788,21 +4858,9 @@ var style_default$9 = genStyleHooks("CodeHighlighter", (token) => {
|
|
|
4788
4858
|
return [genCodeHighlighterStyle(mergeToken(token, {}))];
|
|
4789
4859
|
}, prepareComponentToken$9);
|
|
4790
4860
|
//#endregion
|
|
4791
|
-
//#region components/code-highlighter/CodeHighlighter.tsx
|
|
4792
|
-
var shikiHighlighter = null;
|
|
4793
|
-
var shikiPromise = null;
|
|
4794
|
-
async function initShiki() {
|
|
4795
|
-
if (shikiHighlighter) return;
|
|
4796
|
-
if (shikiPromise) return shikiPromise;
|
|
4797
|
-
shikiPromise = (async () => {
|
|
4798
|
-
shikiHighlighter = (await import("shiki")).codeToHtml;
|
|
4799
|
-
})();
|
|
4800
|
-
return shikiPromise;
|
|
4801
|
-
}
|
|
4802
|
-
//#endregion
|
|
4803
4861
|
//#region components/code-highlighter/index.tsx
|
|
4804
4862
|
var code_highlighter_default = /* @__PURE__ */ defineComponent({
|
|
4805
|
-
name: "
|
|
4863
|
+
name: "AxCodeHighlighter",
|
|
4806
4864
|
inheritAttrs: false,
|
|
4807
4865
|
props: {
|
|
4808
4866
|
prefixCls: {
|
|
@@ -4883,9 +4941,7 @@ var code_highlighter_default = /* @__PURE__ */ defineComponent({
|
|
|
4883
4941
|
const highlightedHtml = shallowRef("");
|
|
4884
4942
|
const highlightCode = async () => {
|
|
4885
4943
|
try {
|
|
4886
|
-
await
|
|
4887
|
-
if (!shikiHighlighter) return;
|
|
4888
|
-
highlightedHtml.value = await shikiHighlighter(props.content, {
|
|
4944
|
+
highlightedHtml.value = await codeToHtml(props.content, {
|
|
4889
4945
|
lang: props.language,
|
|
4890
4946
|
theme: props.theme === "dark" ? "vitesse-dark" : "vitesse-light"
|
|
4891
4947
|
});
|
|
@@ -5328,7 +5384,7 @@ function useCreation({ icon, label, align, shortcutKeyInfo, prefixCls }) {
|
|
|
5328
5384
|
//#endregion
|
|
5329
5385
|
//#region components/conversations/Creation.tsx
|
|
5330
5386
|
var Creation = /* @__PURE__ */ defineComponent({
|
|
5331
|
-
name: "
|
|
5387
|
+
name: "AxConversationsCreation",
|
|
5332
5388
|
props: {
|
|
5333
5389
|
label: {
|
|
5334
5390
|
type: [
|
|
@@ -5867,7 +5923,7 @@ function isTypingTarget(target) {
|
|
|
5867
5923
|
return tagName === "input" || tagName === "textarea" || tagName === "select";
|
|
5868
5924
|
}
|
|
5869
5925
|
var ConversationsWithSub = /* @__PURE__ */ defineComponent({
|
|
5870
|
-
name: "
|
|
5926
|
+
name: "AxConversations",
|
|
5871
5927
|
inheritAttrs: false,
|
|
5872
5928
|
props: {
|
|
5873
5929
|
items: {
|
|
@@ -6104,6 +6160,38 @@ var warning = (valid, component, message) => {
|
|
|
6104
6160
|
}
|
|
6105
6161
|
};
|
|
6106
6162
|
//#endregion
|
|
6163
|
+
//#region components/mermaid/loader.ts
|
|
6164
|
+
var mermaidInstance = null;
|
|
6165
|
+
var mermaidPromise = null;
|
|
6166
|
+
var pendingInitializeConfig = null;
|
|
6167
|
+
async function loadMermaid() {
|
|
6168
|
+
if (mermaidInstance) return mermaidInstance;
|
|
6169
|
+
if (!mermaidPromise) mermaidPromise = import("mermaid/dist/mermaid.core.mjs").then((mod) => mod.default).then((instance) => {
|
|
6170
|
+
mermaidInstance = instance;
|
|
6171
|
+
if (pendingInitializeConfig) {
|
|
6172
|
+
instance.initialize(pendingInitializeConfig);
|
|
6173
|
+
pendingInitializeConfig = null;
|
|
6174
|
+
}
|
|
6175
|
+
return instance;
|
|
6176
|
+
});
|
|
6177
|
+
return mermaidPromise;
|
|
6178
|
+
}
|
|
6179
|
+
function initializeMermaid(config) {
|
|
6180
|
+
pendingInitializeConfig = config;
|
|
6181
|
+
if (mermaidInstance) {
|
|
6182
|
+
mermaidInstance.initialize(config);
|
|
6183
|
+
pendingInitializeConfig = null;
|
|
6184
|
+
return;
|
|
6185
|
+
}
|
|
6186
|
+
loadMermaid();
|
|
6187
|
+
}
|
|
6188
|
+
async function parseMermaid(content, options) {
|
|
6189
|
+
return (await loadMermaid()).parse(content, options);
|
|
6190
|
+
}
|
|
6191
|
+
async function renderMermaid(id, content, container) {
|
|
6192
|
+
return (await loadMermaid()).render(id, content, container);
|
|
6193
|
+
}
|
|
6194
|
+
//#endregion
|
|
6107
6195
|
//#region components/mermaid/style/index.ts
|
|
6108
6196
|
var genMermaidStyle = (token) => {
|
|
6109
6197
|
const { componentCls } = token;
|
|
@@ -6210,7 +6298,7 @@ function throttle(fn, wait) {
|
|
|
6210
6298
|
//#endregion
|
|
6211
6299
|
//#region components/mermaid/index.tsx
|
|
6212
6300
|
var mermaid_default = /* @__PURE__ */ defineComponent({
|
|
6213
|
-
name: "
|
|
6301
|
+
name: "AxMermaid",
|
|
6214
6302
|
inheritAttrs: false,
|
|
6215
6303
|
props: {
|
|
6216
6304
|
content: {
|
|
@@ -6341,8 +6429,8 @@ var mermaid_default = /* @__PURE__ */ defineComponent({
|
|
|
6341
6429
|
const graphEl = graphRef.value;
|
|
6342
6430
|
if (!graphEl) return;
|
|
6343
6431
|
try {
|
|
6344
|
-
if (await
|
|
6345
|
-
const { svg } = await
|
|
6432
|
+
if (await parseMermaid(props.content, { suppressErrors: true }) === false) throw new Error("Invalid Mermaid syntax");
|
|
6433
|
+
const { svg } = await renderMermaid(`${renderBaseId}-${idSeed++}-${props.content.length || 0}`, props.content);
|
|
6346
6434
|
graphEl.innerHTML = svg;
|
|
6347
6435
|
applySvgTransform();
|
|
6348
6436
|
} catch (error) {
|
|
@@ -6475,7 +6563,7 @@ var mermaid_default = /* @__PURE__ */ defineComponent({
|
|
|
6475
6563
|
if (next !== void 0) internalRenderType.value = next;
|
|
6476
6564
|
});
|
|
6477
6565
|
watch(() => props.config, (nextConfig) => {
|
|
6478
|
-
|
|
6566
|
+
initializeMermaid({
|
|
6479
6567
|
startOnLoad: false,
|
|
6480
6568
|
securityLevel: "strict",
|
|
6481
6569
|
theme: "default",
|
|
@@ -6797,7 +6885,7 @@ function hasRenderableNode$5(node) {
|
|
|
6797
6885
|
//#endregion
|
|
6798
6886
|
//#region components/prompts/index.tsx
|
|
6799
6887
|
var prompts_default = /* @__PURE__ */ defineComponent({
|
|
6800
|
-
name: "
|
|
6888
|
+
name: "AxPrompts",
|
|
6801
6889
|
inheritAttrs: false,
|
|
6802
6890
|
props: {
|
|
6803
6891
|
items: {
|
|
@@ -6917,8 +7005,10 @@ var prompts_default = /* @__PURE__ */ defineComponent({
|
|
|
6917
7005
|
};
|
|
6918
7006
|
});
|
|
6919
7007
|
const triggerItemClick = (item, nested) => {
|
|
6920
|
-
if (
|
|
6921
|
-
|
|
7008
|
+
if (item.disabled || !nested && hasChildren(item)) return;
|
|
7009
|
+
const info = { data: item };
|
|
7010
|
+
props.onItemClick?.(info);
|
|
7011
|
+
emit("itemClick", info);
|
|
6922
7012
|
};
|
|
6923
7013
|
const renderTitle = () => {
|
|
6924
7014
|
if (slots.title) return slots.title({ originNode: props.title });
|
|
@@ -6963,7 +7053,7 @@ var prompts_default = /* @__PURE__ */ defineComponent({
|
|
|
6963
7053
|
}
|
|
6964
7054
|
],
|
|
6965
7055
|
"style": [nested ? mergedStyles.value.subItem : mergedStyles.value.item, item.style],
|
|
6966
|
-
"onClick": () => triggerItemClick(item,
|
|
7056
|
+
"onClick": () => triggerItemClick(item, nested)
|
|
6967
7057
|
}), [hasRenderableNode$5(iconNode) && createVNode("div", { "class": `${props.prefixCls}-icon` }, [iconNode]), createVNode("div", {
|
|
6968
7058
|
"class": [`${props.prefixCls}-content`, mergedClasses.value.itemContent],
|
|
6969
7059
|
"style": mergedStyles.value.itemContent
|
|
@@ -8603,7 +8693,7 @@ var sharedRenderComponents = {
|
|
|
8603
8693
|
SpeechButton: SpeechButton_default
|
|
8604
8694
|
};
|
|
8605
8695
|
var Sender_default = /* @__PURE__ */ defineComponent({
|
|
8606
|
-
name: "
|
|
8696
|
+
name: "AxSender",
|
|
8607
8697
|
inheritAttrs: false,
|
|
8608
8698
|
props: {
|
|
8609
8699
|
prefixCls: {
|
|
@@ -8944,7 +9034,7 @@ var Sender_default = /* @__PURE__ */ defineComponent({
|
|
|
8944
9034
|
//#endregion
|
|
8945
9035
|
//#region components/sender/SenderHeader.tsx
|
|
8946
9036
|
var SenderHeader_default = /* @__PURE__ */ defineComponent({
|
|
8947
|
-
name: "
|
|
9037
|
+
name: "AxSenderHeader",
|
|
8948
9038
|
props: {
|
|
8949
9039
|
open: {
|
|
8950
9040
|
type: Boolean,
|
|
@@ -9048,7 +9138,7 @@ var SenderHeader_default = /* @__PURE__ */ defineComponent({
|
|
|
9048
9138
|
//#endregion
|
|
9049
9139
|
//#region components/sender/SenderSwitch.tsx
|
|
9050
9140
|
var SenderSwitch_default = /* @__PURE__ */ defineComponent({
|
|
9051
|
-
name: "
|
|
9141
|
+
name: "AxSenderSwitch",
|
|
9052
9142
|
inheritAttrs: false,
|
|
9053
9143
|
props: {
|
|
9054
9144
|
prefixCls: {
|
|
@@ -9419,7 +9509,7 @@ var hasRenderableNode$3 = (node) => {
|
|
|
9419
9509
|
//#endregion
|
|
9420
9510
|
//#region components/sources/index.tsx
|
|
9421
9511
|
var sources_default = /* @__PURE__ */ defineComponent({
|
|
9422
|
-
name: "
|
|
9512
|
+
name: "AxSources",
|
|
9423
9513
|
inheritAttrs: false,
|
|
9424
9514
|
props: {
|
|
9425
9515
|
prefixCls: {
|
|
@@ -9727,7 +9817,7 @@ var hasRenderableNode$2 = (node) => {
|
|
|
9727
9817
|
//#endregion
|
|
9728
9818
|
//#region components/suggestion/index.tsx
|
|
9729
9819
|
var suggestion_default = /* @__PURE__ */ defineComponent({
|
|
9730
|
-
name: "
|
|
9820
|
+
name: "AxSuggestion",
|
|
9731
9821
|
inheritAttrs: false,
|
|
9732
9822
|
props: {
|
|
9733
9823
|
prefixCls: {
|
|
@@ -10005,7 +10095,7 @@ var style_default$2 = genStyleHooks("Think", (token) => {
|
|
|
10005
10095
|
//#endregion
|
|
10006
10096
|
//#region components/think/index.tsx
|
|
10007
10097
|
var think_default = /* @__PURE__ */ defineComponent({
|
|
10008
|
-
name: "
|
|
10098
|
+
name: "AxThink",
|
|
10009
10099
|
inheritAttrs: false,
|
|
10010
10100
|
props: {
|
|
10011
10101
|
prefixCls: {
|
|
@@ -10415,7 +10505,7 @@ function hasRenderableNode$1(node) {
|
|
|
10415
10505
|
return node !== null && node !== void 0 && node !== false;
|
|
10416
10506
|
}
|
|
10417
10507
|
var XThoughtChainItem = /* @__PURE__ */ defineComponent({
|
|
10418
|
-
name: "
|
|
10508
|
+
name: "AxThoughtChainItem",
|
|
10419
10509
|
props: {
|
|
10420
10510
|
prefixCls: {
|
|
10421
10511
|
type: String,
|
|
@@ -10745,7 +10835,7 @@ var Node_default = /* @__PURE__ */ defineComponent({
|
|
|
10745
10835
|
//#endregion
|
|
10746
10836
|
//#region components/thought-chain/index.tsx
|
|
10747
10837
|
var ThoughtChainWithSub = /* @__PURE__ */ defineComponent({
|
|
10748
|
-
name: "
|
|
10838
|
+
name: "AxThoughtChain",
|
|
10749
10839
|
inheritAttrs: false,
|
|
10750
10840
|
props: {
|
|
10751
10841
|
prefixCls: {
|
|
@@ -10963,7 +11053,7 @@ function hasContent(value) {
|
|
|
10963
11053
|
return Array.isArray(value) ? value.length > 0 : value !== null && value !== void 0;
|
|
10964
11054
|
}
|
|
10965
11055
|
var XWelcome = /* @__PURE__ */ defineComponent({
|
|
10966
|
-
name: "
|
|
11056
|
+
name: "AxWelcome",
|
|
10967
11057
|
inheritAttrs: false,
|
|
10968
11058
|
props: {
|
|
10969
11059
|
prefixCls: {
|
|
@@ -11128,7 +11218,7 @@ var XWelcome = /* @__PURE__ */ defineComponent({
|
|
|
11128
11218
|
//#endregion
|
|
11129
11219
|
//#region components/x-provider/index.tsx
|
|
11130
11220
|
var XProvider = /* @__PURE__ */ defineComponent({
|
|
11131
|
-
name: "
|
|
11221
|
+
name: "AxProvider",
|
|
11132
11222
|
inheritAttrs: false,
|
|
11133
11223
|
props: {
|
|
11134
11224
|
attachments: {
|
|
@@ -11233,36 +11323,11 @@ var components = [
|
|
|
11233
11323
|
ThoughtChainWithSub,
|
|
11234
11324
|
XThoughtChainItem
|
|
11235
11325
|
];
|
|
11236
|
-
var componentAliases = new Map([
|
|
11237
|
-
["XBubble", ["ABubble"]],
|
|
11238
|
-
["XBubbleList", ["ABubbleList"]],
|
|
11239
|
-
["XBubbleSystem", ["ABubbleSystem"]],
|
|
11240
|
-
["XBubbleDivider", ["ABubbleDivider"]],
|
|
11241
|
-
["XActions", ["AActions"]],
|
|
11242
|
-
["XActionsAudio", ["AActionsAudio"]],
|
|
11243
|
-
["XActionsCopy", ["AActionsCopy"]],
|
|
11244
|
-
["XActionsFeedback", ["AActionsFeedback"]],
|
|
11245
|
-
["XActionsItem", ["AActionsItem"]],
|
|
11246
|
-
["XFileCard", ["AFileCard"]],
|
|
11247
|
-
["XFileCardList", ["AFileCardList"]],
|
|
11248
|
-
["XMermaid", ["AMermaid"]],
|
|
11249
|
-
["XAttachments", ["AAttachments"]],
|
|
11250
|
-
["XSender", ["ASender"]],
|
|
11251
|
-
["XSenderHeader", ["ASenderHeader"]],
|
|
11252
|
-
["XSenderSwitch", ["ASenderSwitch"]],
|
|
11253
|
-
["XSuggestion", ["ASuggestion"]],
|
|
11254
|
-
["XThink", ["AThink"]],
|
|
11255
|
-
["XThoughtChain", ["AThoughtChain"]],
|
|
11256
|
-
["XThoughtChainItem", ["AThoughtChainItem"]]
|
|
11257
|
-
]);
|
|
11258
11326
|
var components_default = {
|
|
11259
11327
|
install(app) {
|
|
11260
11328
|
components.forEach((component) => {
|
|
11261
11329
|
if (!component.name) return;
|
|
11262
11330
|
app.component(component.name, component);
|
|
11263
|
-
componentAliases.get(component.name)?.forEach((alias) => {
|
|
11264
|
-
app.component(alias, component);
|
|
11265
|
-
});
|
|
11266
11331
|
});
|
|
11267
11332
|
},
|
|
11268
11333
|
version
|
package/dist/index.js
CHANGED
|
@@ -57,36 +57,11 @@ var components = [
|
|
|
57
57
|
ThoughtChainWithSub,
|
|
58
58
|
XThoughtChainItem
|
|
59
59
|
];
|
|
60
|
-
var componentAliases = new Map([
|
|
61
|
-
["XBubble", ["ABubble"]],
|
|
62
|
-
["XBubbleList", ["ABubbleList"]],
|
|
63
|
-
["XBubbleSystem", ["ABubbleSystem"]],
|
|
64
|
-
["XBubbleDivider", ["ABubbleDivider"]],
|
|
65
|
-
["XActions", ["AActions"]],
|
|
66
|
-
["XActionsAudio", ["AActionsAudio"]],
|
|
67
|
-
["XActionsCopy", ["AActionsCopy"]],
|
|
68
|
-
["XActionsFeedback", ["AActionsFeedback"]],
|
|
69
|
-
["XActionsItem", ["AActionsItem"]],
|
|
70
|
-
["XFileCard", ["AFileCard"]],
|
|
71
|
-
["XFileCardList", ["AFileCardList"]],
|
|
72
|
-
["XMermaid", ["AMermaid"]],
|
|
73
|
-
["XAttachments", ["AAttachments"]],
|
|
74
|
-
["XSender", ["ASender"]],
|
|
75
|
-
["XSenderHeader", ["ASenderHeader"]],
|
|
76
|
-
["XSenderSwitch", ["ASenderSwitch"]],
|
|
77
|
-
["XSuggestion", ["ASuggestion"]],
|
|
78
|
-
["XThink", ["AThink"]],
|
|
79
|
-
["XThoughtChain", ["AThoughtChain"]],
|
|
80
|
-
["XThoughtChainItem", ["AThoughtChainItem"]]
|
|
81
|
-
]);
|
|
82
60
|
var components_default = {
|
|
83
61
|
install(app) {
|
|
84
62
|
components.forEach((component) => {
|
|
85
63
|
if (!component.name) return;
|
|
86
64
|
app.component(component.name, component);
|
|
87
|
-
componentAliases.get(component.name)?.forEach((alias) => {
|
|
88
|
-
app.component(alias, component);
|
|
89
|
-
});
|
|
90
65
|
});
|
|
91
66
|
},
|
|
92
67
|
version
|