ant-design-x-vue 1.0.1 → 1.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.
@@ -2,4 +2,4 @@ import { type Ref } from 'vue';
2
2
  import type { BubbleListProps } from '../interface';
3
3
  export type UnRef<T extends Ref<any>> = T extends Ref<infer R> ? R : never;
4
4
  export type ListItemType = UnRef<ReturnType<typeof useListData>>[number];
5
- export default function useListData(items: Ref<BubbleListProps['items']>, roles?: BubbleListProps['roles']): Ref<any>;
5
+ export default function useListData(items: Ref<BubbleListProps['items']>, roles?: Ref<BubbleListProps['roles']>): Ref<any>;
@@ -58,7 +58,7 @@ export type BubbleDataType = BubbleProps & {
58
58
  role?: string;
59
59
  };
60
60
  export type RoleType = Partial<Omit<BubbleProps, 'content'>>;
61
- export type RolesType = Record<string, RoleType> | ((bubbleDataP: BubbleDataType) => RoleType);
61
+ export type RolesType = Record<string, RoleType> | ((bubbleDataP: BubbleDataType, index: number) => RoleType);
62
62
  export interface BubbleListProps extends /* @vue-ignore */ HTMLAttributes {
63
63
  prefixCls?: string;
64
64
  rootClassName?: string;
@@ -1,6 +1,6 @@
1
- import { MapToken } from "ant-design-vue/es/theme/interface";
2
- import { AliasToken, OverrideToken, SeedToken } from "./cssinjs-utils";
3
- import { Theme } from "ant-design-vue";
1
+ import type { MapToken } from "ant-design-vue/es/theme/interface";
2
+ import type { AliasToken, OverrideToken, SeedToken } from "./cssinjs-utils";
3
+ import type { Theme } from "ant-design-vue";
4
4
  export declare const ignore: {
5
5
  [key in keyof AliasToken]?: boolean;
6
6
  };
@@ -40,8 +40,8 @@ export interface XComponentStyleConfig {
40
40
  className: string;
41
41
  style: CSSProperties;
42
42
  }
43
- type DefaultPickType = keyof XComponentStyleConfig;
44
- type ComponentStyleConfig<CompProps extends AnyObject, PickType extends keyof CompProps = DefaultPickType> = Pick<CompProps, PickType | DefaultPickType>;
43
+ export type DefaultPickType = keyof XComponentStyleConfig;
44
+ export type ComponentStyleConfig<CompProps extends AnyObject, PickType extends keyof CompProps = DefaultPickType> = Pick<CompProps, PickType | DefaultPickType>;
45
45
  export interface XComponentsConfig {
46
46
  bubble?: ComponentStyleConfig<BubbleProps>;
47
47
  conversations?: ComponentStyleConfig<ConversationsProps>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ant-design-x-vue",
3
- "version": "1.0.1",
3
+ "version": "1.0.3",
4
4
  "description": "Craft AI-driven interfaces effortlessly",
5
5
  "keywords": [
6
6
  "AI",
@@ -83,10 +83,9 @@
83
83
  "@commitlint/cli": "^17.1.2",
84
84
  "@commitlint/config-conventional": "^17.1.0",
85
85
  "@eslint/js": "^9.11.1",
86
+ "@stackblitz/sdk": "^1.11.0",
86
87
  "@types/markdown-it": "^14.1.2",
87
88
  "@types/node": "^22.10.2",
88
- "@types/react": "^18.0.0",
89
- "@types/react-dom": "^18.0.0",
90
89
  "@types/stylis": "^4.2.7",
91
90
  "@typescript-eslint/eslint-plugin": "^8.7.0",
92
91
  "@typescript-eslint/parser": "^8.7.0",
@@ -96,6 +95,7 @@
96
95
  "@vue/shared": "^3.5.13",
97
96
  "@vue/test-utils": "^2.4.6",
98
97
  "@vueuse/core": "^12.2.0",
98
+ "ant-design-vue": "^4.2.6",
99
99
  "changelogen": "^0.5.7",
100
100
  "eslint": "^8.57.1",
101
101
  "eslint-plugin-vue": "^9.17.0",
@@ -109,8 +109,6 @@
109
109
  "prettier": "^2.7.1",
110
110
  "prettier-plugin-organize-imports": "^3.0.0",
111
111
  "prettier-plugin-packagejson": "^2.2.18",
112
- "react": "^18.0.0",
113
- "react-dom": "^18.0.0",
114
112
  "stylelint": "^14.9.1",
115
113
  "typescript": "~5.5.4",
116
114
  "unplugin-vue-macros": "^2.13.6",