@antdv-next/x 0.0.2 → 0.0.3
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/index.d.ts +40 -0
- package/dist/index.esm.js +1 -1
- package/dist/index.umd.js +1 -1
- package/dist/notification/index.d.ts +15 -0
- package/dist/notification/interface.d.ts +22 -0
- package/dist/package.js +1 -1
- package/dist/x-provider/index.d.ts +9 -9
- package/package.json +1 -1
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { App } from 'vue';
|
|
2
|
+
import { version } from '../package.json';
|
|
3
|
+
import { default as Actions, ActionsAudio, ActionsCopy, ActionsFeedback, ActionsItem } from './actions';
|
|
4
|
+
import { default as Attachments } from './attachments';
|
|
5
|
+
import { default as Bubble, BubbleDivider, BubbleList, BubbleSystem } from './bubble';
|
|
6
|
+
import { default as CodeHighlighter } from './code-highlighter';
|
|
7
|
+
import { default as Conversations, ConversationsCreation } from './conversations';
|
|
8
|
+
import { default as FileCard, FileCardList } from './file-card';
|
|
9
|
+
import { default as Mermaid } from './mermaid';
|
|
10
|
+
import { default as Notification, XNotification } from './notification';
|
|
11
|
+
import { default as Prompts } from './prompts';
|
|
12
|
+
import { default as Sender, SenderHeader, SenderSwitch } from './sender';
|
|
13
|
+
import { default as Sources } from './sources';
|
|
14
|
+
import { default as Suggestion } from './suggestion';
|
|
15
|
+
import { default as Think } from './think';
|
|
16
|
+
import { default as ThoughtChain, ThoughtChainItem } from './thought-chain';
|
|
17
|
+
import { default as Welcome } from './welcome';
|
|
18
|
+
import { default as XProvider } from './x-provider';
|
|
19
|
+
declare const _default: {
|
|
20
|
+
install(app: App): void;
|
|
21
|
+
version: string;
|
|
22
|
+
};
|
|
23
|
+
export default _default;
|
|
24
|
+
export { Actions, ActionsAudio, ActionsCopy, ActionsFeedback, ActionsItem, Attachments, Bubble, BubbleDivider, BubbleList, BubbleSystem, CodeHighlighter, Conversations, ConversationsCreation, FileCard, FileCardList, Mermaid, Notification, XNotification, Sender, SenderHeader, SenderSwitch, Suggestion, Prompts, XProvider, version, Sources, Think, ThoughtChain, ThoughtChainItem, Welcome, };
|
|
25
|
+
export type { ActionsAudioProps, ActionsClickInfo, ActionsCopyProps, ActionsFeedbackProps, ActionsItemProps, ActionsProps, ActionsRef, ItemType, } from './actions';
|
|
26
|
+
export type { BubbleItemType, BubbleListProps, BubbleListRef, BubbleProps, BubbleRef, } from './bubble';
|
|
27
|
+
export type { FileCardListProps, FileCardProps } from './file-card';
|
|
28
|
+
export type { MermaidActions, MermaidProps, MermaidRef, MermaidRenderType, MermaidSemanticType, } from './mermaid';
|
|
29
|
+
export type { BasePromptsItemType, PromptDataItem, PromptsClickInfo, PromptsItemType, PromptsProps, PromptsRef, } from './prompts';
|
|
30
|
+
export type { ThinkProps, ThinkRef } from './think';
|
|
31
|
+
export type { ThoughtChainItemProps, ThoughtChainItemStatus, ThoughtChainItemType, ThoughtChainProps, ThoughtChainRef, } from './thought-chain';
|
|
32
|
+
export type { ConversationItemType, ConversationsProps, ConversationsRef, CreationProps, DividerItemType, GroupableProps, } from './conversations';
|
|
33
|
+
export type { SourcesProps } from './sources';
|
|
34
|
+
export type { WelcomeProps, WelcomeRef } from './welcome';
|
|
35
|
+
export type { CodeHighlighterProps, CodeHighlighterRef, CodeHighlighterSemanticType, } from './code-highlighter';
|
|
36
|
+
export type { SenderProps, SenderRef } from './sender';
|
|
37
|
+
export type { RenderChildrenProps, SuggestionItem, SuggestionProps, } from './suggestion';
|
|
38
|
+
export type { XProviderProps } from './x-provider';
|
|
39
|
+
export type { AttachmentsProps, AttachmentsRef } from './attachments';
|
|
40
|
+
export type { UseNotificationType, XNotificationOpenArgs, } from './notification/interface';
|
package/dist/index.esm.js
CHANGED
|
@@ -10,7 +10,7 @@ import { useResizeObserver } from "@vueuse/core";
|
|
|
10
10
|
import { KeyCode, classNames } from "@v-c/util";
|
|
11
11
|
import mermaid from "mermaid";
|
|
12
12
|
//#region package.json
|
|
13
|
-
var version = "0.0.
|
|
13
|
+
var version = "0.0.3";
|
|
14
14
|
//#endregion
|
|
15
15
|
//#region components/x-provider/context.ts
|
|
16
16
|
var XProviderContextKey = Symbol("antdv-next-x-provider-context");
|
package/dist/index.umd.js
CHANGED
|
@@ -44,7 +44,7 @@
|
|
|
44
44
|
antdv_next_dist_theme_useToken = __toESM(antdv_next_dist_theme_useToken);
|
|
45
45
|
mermaid = __toESM(mermaid);
|
|
46
46
|
//#region package.json
|
|
47
|
-
var version = "0.0.
|
|
47
|
+
var version = "0.0.3";
|
|
48
48
|
//#endregion
|
|
49
49
|
//#region components/x-provider/context.ts
|
|
50
50
|
var XProviderContextKey = Symbol("antdv-next-x-provider-context");
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { UseNotificationType, XNotificationOpenArgs } from './interface';
|
|
2
|
+
declare class XNotification {
|
|
3
|
+
private static permissionMap;
|
|
4
|
+
static permissible: boolean;
|
|
5
|
+
constructor();
|
|
6
|
+
get permission(): NotificationPermission;
|
|
7
|
+
open(arg: XNotificationOpenArgs): void;
|
|
8
|
+
requestPermission(): Promise<NotificationPermission>;
|
|
9
|
+
useNotification(): UseNotificationType;
|
|
10
|
+
close(tags?: string[]): void;
|
|
11
|
+
}
|
|
12
|
+
export type { XNotificationOpenArgs };
|
|
13
|
+
declare const _default: XNotification;
|
|
14
|
+
export default _default;
|
|
15
|
+
export { XNotification };
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { Ref } from 'vue';
|
|
2
|
+
import { XNotification } from '.';
|
|
3
|
+
type TypeOpen = NotificationOptions & {
|
|
4
|
+
title: string;
|
|
5
|
+
onClick?: (event: Event, close?: Notification["close"]) => void;
|
|
6
|
+
onClose?: (event: Event) => void;
|
|
7
|
+
onError?: (event: Event) => void;
|
|
8
|
+
onShow?: (event: Event) => void;
|
|
9
|
+
duration?: number;
|
|
10
|
+
};
|
|
11
|
+
export type UseNotificationType = [
|
|
12
|
+
{
|
|
13
|
+
permission: Ref<NotificationPermission>;
|
|
14
|
+
},
|
|
15
|
+
{
|
|
16
|
+
open: XNotification["open"];
|
|
17
|
+
close: XNotification["close"];
|
|
18
|
+
requestPermission: () => Promise<NotificationPermission>;
|
|
19
|
+
}
|
|
20
|
+
];
|
|
21
|
+
export type XNotificationOpenArgs = TypeOpen;
|
|
22
|
+
export {};
|
package/dist/package.js
CHANGED
|
@@ -105,15 +105,15 @@ declare const XProvider: import('vue').DefineComponent<import('vue').ExtractProp
|
|
|
105
105
|
override?: import('../theme/context').DesignTokenProviderProps["override"];
|
|
106
106
|
}) | undefined;
|
|
107
107
|
iconPrefixCls: string;
|
|
108
|
-
attachments: Pick<import('
|
|
109
|
-
bubble: Pick<import('
|
|
110
|
-
conversations: Pick<import('
|
|
111
|
-
actions: Pick<import('
|
|
112
|
-
fileCard: Pick<import('
|
|
113
|
-
mermaid: Pick<import('
|
|
114
|
-
prompts: Pick<import('
|
|
115
|
-
suggestion: Pick<import('
|
|
116
|
-
welcome: Pick<import('
|
|
108
|
+
attachments: Pick<import('..').AttachmentsProps<any>, "style" | "classes" | "styles"> | undefined;
|
|
109
|
+
bubble: Pick<import('..').BubbleProps<string>, "style" | "classes" | "styles"> | undefined;
|
|
110
|
+
conversations: Pick<import('..').ConversationsProps, "style" | "classes" | "styles" | "shortcutKeys"> | undefined;
|
|
111
|
+
actions: Pick<import('..').ActionsProps, "style" | "classes" | "styles"> | undefined;
|
|
112
|
+
fileCard: Pick<import('..').FileCardProps, "style" | "classes" | "styles"> | undefined;
|
|
113
|
+
mermaid: Pick<import('..').MermaidProps, "style" | "classes" | "styles"> | undefined;
|
|
114
|
+
prompts: Pick<import('..').PromptsProps, "style" | "classes" | "styles"> | undefined;
|
|
115
|
+
suggestion: Pick<import('..').SuggestionProps<any>, "style" | "classes" | "styles"> | undefined;
|
|
116
|
+
welcome: Pick<import('..').WelcomeProps, "style" | "classes" | "styles"> | undefined;
|
|
117
117
|
locale: any;
|
|
118
118
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
119
119
|
export { defaultPrefixCls, useXProviderContext };
|