@antdv-next/x 0.0.3 → 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 +1224 -118
- package/dist/index.js +0 -25
- package/dist/index.umd.js +1228 -121
- 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.d.ts +25 -7
- package/dist/sender/Sender.js +60 -14
- package/dist/sender/SenderHeader.js +1 -1
- package/dist/sender/SenderSwitch.js +2 -2
- package/dist/sender/components/ActionButton.d.ts +0 -9
- package/dist/sender/components/ActionButton.js +1 -5
- package/dist/sender/components/Skill.d.ts +30 -0
- package/dist/sender/components/Skill.js +61 -0
- package/dist/sender/components/SlotTextArea.d.ts +20 -0
- package/dist/sender/components/SlotTextArea.js +747 -0
- package/dist/sender/components/TextArea.d.ts +1 -3
- package/dist/sender/context.d.ts +1 -0
- package/dist/sender/index.d.ts +2 -2
- package/dist/sender/interface.d.ts +2 -1
- package/dist/sender/style/index.d.ts +7 -0
- package/dist/sender/style/index.js +17 -1
- package/dist/sender/style/slot-textarea.d.ts +4 -0
- package/dist/sender/style/slot-textarea.js +187 -0
- package/dist/sources/Sources.js +1 -1
- package/dist/suggestion/Suggestion.js +1 -1
- package/dist/suggestion/useActive.js +4 -0
- 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.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
|