@antdv-next/x 0.1.0 → 0.2.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/LICENSE +21 -0
- package/dist/_utils/vue.d.ts +2 -0
- package/dist/_utils/vue.js +16 -0
- package/dist/actions/Actions.js +3 -2
- package/dist/actions/ActionsCopy.js +4 -4
- package/dist/attachments/PlaceholderUploader.d.ts +16 -0
- package/dist/attachments/PlaceholderUploader.js +31 -5
- package/dist/attachments/index.d.ts +8 -1
- package/dist/attachments/index.js +7 -1
- package/dist/bubble/Bubble.js +5 -8
- package/dist/bubble/BubbleList.js +4 -4
- package/dist/bubble/Divider.js +1 -1
- package/dist/code-highlighter/shiki.js +2 -1
- package/dist/conversations/GroupTitle.d.ts +22 -2
- package/dist/conversations/GroupTitle.js +25 -3
- package/dist/conversations/Item.d.ts +1 -1
- package/dist/conversations/Item.js +1 -4
- package/dist/conversations/index.d.ts +10 -1
- package/dist/conversations/index.js +12 -0
- package/dist/conversations/interface.d.ts +7 -0
- package/dist/file-card/FileCard.js +1 -1
- package/dist/file-card/List.js +1 -1
- package/dist/file-card/components/File.d.ts +6 -6
- package/dist/file-card/components/File.js +2 -2
- package/dist/index.esm.js +149 -85
- package/dist/index.umd.js +148 -84
- package/dist/mermaid/Mermaid.d.ts +5 -0
- package/dist/mermaid/Mermaid.js +22 -1
- package/dist/mermaid/index.d.ts +1 -1
- package/dist/package.js +1 -1
- package/dist/prompts/Prompts.js +1 -4
- package/dist/sources/Sources.js +1 -4
- package/dist/sources/components/CarouselCard.js +1 -4
- package/dist/suggestion/Suggestion.js +1 -4
- package/dist/thought-chain/Item.js +3 -6
- package/dist/thought-chain/Node.js +1 -4
- package/package.json +2 -1
|
@@ -1,12 +1,9 @@
|
|
|
1
|
+
import { hasRenderableNode } from "../_utils/vue.js";
|
|
1
2
|
import { STATUS_ICON_MAP } from "./Status.js";
|
|
2
3
|
import style_default from "./style/index.js";
|
|
3
4
|
import { computed, createVNode, defineComponent, ref } from "vue";
|
|
4
5
|
import { useConfig } from "antdv-next/dist/config-provider/context";
|
|
5
6
|
//#region components/thought-chain/Item.tsx
|
|
6
|
-
function hasRenderableNode(node) {
|
|
7
|
-
if (Array.isArray(node)) return node.some((item) => item !== null && item !== void 0 && item !== false);
|
|
8
|
-
return node !== null && node !== void 0 && node !== false;
|
|
9
|
-
}
|
|
10
7
|
var XThoughtChainItem = /* @__PURE__ */ defineComponent({
|
|
11
8
|
name: "AxThoughtChainItem",
|
|
12
9
|
props: {
|
|
@@ -86,9 +83,9 @@ var XThoughtChainItem = /* @__PURE__ */ defineComponent({
|
|
|
86
83
|
return () => {
|
|
87
84
|
const cls = itemPrefixCls.value;
|
|
88
85
|
const statusCls = `${props.prefixCls}-status`;
|
|
89
|
-
const
|
|
86
|
+
const iconSlot = slots.icon;
|
|
90
87
|
const originIconNode = props.status ? STATUS_ICON_MAP[props.status] : props.icon;
|
|
91
|
-
const iconNode =
|
|
88
|
+
const iconNode = iconSlot ? iconSlot({
|
|
92
89
|
originNode: originIconNode,
|
|
93
90
|
status: props.status
|
|
94
91
|
}) : originIconNode;
|
|
@@ -1,12 +1,9 @@
|
|
|
1
|
+
import { hasRenderableNode } from "../_utils/vue.js";
|
|
1
2
|
import { STATUS_ICON_MAP } from "./Status.js";
|
|
2
3
|
import { Transition, computed, createVNode, defineComponent } from "vue";
|
|
3
4
|
import { useConfig } from "antdv-next/dist/config-provider/context";
|
|
4
5
|
import { LeftOutlined, RightOutlined } from "@antdv-next/icons";
|
|
5
6
|
//#region components/thought-chain/Node.tsx
|
|
6
|
-
function hasRenderableNode(node) {
|
|
7
|
-
if (Array.isArray(node)) return node.some((item) => item !== null && item !== void 0 && item !== false);
|
|
8
|
-
return node !== null && node !== void 0 && node !== false;
|
|
9
|
-
}
|
|
10
7
|
var Node_default = /* @__PURE__ */ defineComponent({
|
|
11
8
|
name: "ThoughtChainNode",
|
|
12
9
|
props: {
|