@alifd/chat 0.1.15 → 0.1.16

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.
Files changed (43) hide show
  1. package/es/balloon/index.d.ts +7 -0
  2. package/es/balloon/index.js +7 -0
  3. package/es/balloon/style.d.ts +1 -0
  4. package/es/balloon/style.js +1 -0
  5. package/es/balloon/types.d.ts +219 -0
  6. package/es/balloon/types.js +1 -0
  7. package/es/card/view/collapsable.d.ts +1 -1
  8. package/es/icon/index.d.ts +1 -2
  9. package/es/icon/main.scss +1 -1
  10. package/es/icon/style.d.ts +1 -1
  11. package/es/icon/style.js +1 -1
  12. package/es/index.d.ts +1 -0
  13. package/es/index.js +2 -1
  14. package/es/input/index.d.ts +1 -2
  15. package/es/message/index.d.ts +63 -10
  16. package/es/message/main.scss +1 -1
  17. package/es/message/style.d.ts +1 -1
  18. package/es/message/style.js +1 -1
  19. package/es/person-picker/index.d.ts +377 -2
  20. package/es/tab/main.scss +2 -3
  21. package/es/tag/main.scss +1 -1
  22. package/lib/balloon/index.d.ts +7 -0
  23. package/lib/balloon/index.js +11 -0
  24. package/lib/balloon/style.d.ts +1 -0
  25. package/lib/balloon/style.js +3 -0
  26. package/lib/balloon/types.d.ts +219 -0
  27. package/lib/balloon/types.js +2 -0
  28. package/lib/card/view/collapsable.d.ts +1 -1
  29. package/lib/icon/index.d.ts +1 -2
  30. package/lib/icon/main.scss +1 -1
  31. package/lib/icon/style.d.ts +1 -1
  32. package/lib/icon/style.js +1 -1
  33. package/lib/index.d.ts +1 -0
  34. package/lib/index.js +4 -2
  35. package/lib/input/index.d.ts +1 -2
  36. package/lib/message/index.d.ts +63 -10
  37. package/lib/message/main.scss +1 -1
  38. package/lib/message/style.d.ts +1 -1
  39. package/lib/message/style.js +1 -1
  40. package/lib/person-picker/index.d.ts +377 -2
  41. package/lib/tab/main.scss +2 -3
  42. package/lib/tag/main.scss +1 -1
  43. package/package.json +31 -5
@@ -18,7 +18,382 @@
18
18
  * | SPACE | Trigger the onClick event |
19
19
  */
20
20
  import React from 'react';
21
- import { Select as NextSelect } from '@alifd/next';
22
21
  export * from './types';
23
- declare const _default: import("@alifd/next/types/config-provider/types").ConfiguredComponentClass<Pick<Pick<any, string | number | symbol> & React.RefAttributes<NextSelect>, string | number | symbol> & import("@alifd/next/types/config-provider/types").ComponentCommonProps, NextSelect, {}>;
22
+ declare const _default: import("@alifd/next/types/config-provider/types").ConfiguredComponentClass<Pick<Pick<any, string | number | symbol> & React.RefAttributes<import("@alifd/next/types/config-provider/types").ConfiguredComponent<import("@alifd/next/types/select").SelectProps & import("@alifd/next/types/config-provider/types").ComponentCommonProps, {
23
+ selectAllYet: boolean;
24
+ componentDidUpdate(prevProps: import("@alifd/next/types/select").SelectProps, prevState: import("@alifd/next/types/select/base").BaseState): void;
25
+ componentDidMount(): void;
26
+ ie9Hack(): void;
27
+ useDetailValue(): boolean;
28
+ hasSearch(): boolean;
29
+ getTagSize(): "small" | "medium" | "large" | undefined;
30
+ handleMenuSelect(keys: string[], item: {
31
+ props: {
32
+ _key: string;
33
+ };
34
+ }): false | void;
35
+ handleItemClick(key: string): void;
36
+ handleSingleSelect(key: string, triggerType: import("@alifd/next/types/select").VisibleChangeType): void;
37
+ handleMultipleSelect(keys: import("@alifd/next/types/select").DataSourceItem[] | undefined, triggerType: import("@alifd/next/types/select").VisibleChangeType, key?: string | null | undefined, keepSearchValue?: boolean | undefined): void;
38
+ updateSelectAllYet(value?: unknown): void;
39
+ handleSearchValue(value: string): void;
40
+ handleSearch(value: string, e: React.ChangeEvent<HTMLInputElement>): void;
41
+ handleSearchClear(triggerType?: string | undefined): void;
42
+ handleSearchKeyDown(e: React.KeyboardEvent<HTMLElement>): void;
43
+ chooseMultipleItem(key: string): void;
44
+ chooseHighlightItem(proxy: unknown, e: React.UIEvent<HTMLElement, UIEvent>): false | undefined;
45
+ handleTagClose(item: import("@alifd/next/types/select").ObjectItem): boolean;
46
+ handleDeleteTag(e: React.UIEvent<HTMLElement, UIEvent>): false | undefined;
47
+ handleSelectAll(e: React.UIEvent<HTMLElement, UIEvent>): void;
48
+ handleVisibleChange(visible: boolean, type: import("@alifd/next/types/select").VisibleChangeType): void;
49
+ afterClose(): void;
50
+ maxTagPlaceholder(selectedValues: import("@alifd/next/types/select").ObjectItem[], totalValues: import("@alifd/next/types/select").ObjectItem[]): string;
51
+ renderValues(): React.ReactNode;
52
+ handleWrapClick: (e: React.MouseEvent<HTMLElement, MouseEvent>) => void;
53
+ handleArrowClick: (e: React.UIEvent<HTMLElement, UIEvent>) => void;
54
+ handleClear: (e: React.UIEvent<HTMLElement, UIEvent>) => void;
55
+ hasClear(): boolean | undefined;
56
+ renderExtraNode(): React.ReactElement<any, string | React.JSXElementConstructor<any>>[];
57
+ renderSelect(): React.JSX.Element;
58
+ renderSearchInput(valueNodes: React.ReactNode, placeholder: string | undefined, inputEl: React.ReactElement<any, string | React.JSXElementConstructor<any>>): React.JSX.Element;
59
+ renderMenuHeader(): React.ReactNode;
60
+ render(): React.JSX.Element;
61
+ dataStore: import("@alifd/next/types/select/data-store").default;
62
+ selectDOM: HTMLElement;
63
+ width: string | number;
64
+ popupRef: HTMLDivElement;
65
+ resizeTimeout: number;
66
+ highlightTimer: number | undefined;
67
+ menuRef: import("@alifd/next/types/config-provider/types").ConfiguredComponent<import("@alifd/next/types/menu").MenuProps & import("@alifd/next/types/config-provider/types").ComponentCommonProps, import("@alifd/next/types/menu/view/menu").Menu> | null;
68
+ isAutoComplete: boolean;
69
+ inputRef: import("@alifd/next/types/input/input").default<import("@alifd/next/types/input").InputProps>;
70
+ valueDataSource: {
71
+ value?: string | number | boolean | (string | number | boolean | null | undefined)[] | null | undefined;
72
+ valueDS?: import("@alifd/next/types/select").ObjectItem | import("@alifd/next/types/select").ObjectItem[] | undefined;
73
+ mapValueDS?: Record<string, import("@alifd/next/types/select").ObjectItem> | undefined;
74
+ };
75
+ componentWillUnmount(): void;
76
+ syncWidth(): void;
77
+ handleResize(): void;
78
+ setDataSource(props: import("@alifd/next/types/select").SelectProps): import("@alifd/next/types/select/types").NormalizedObjectItem[];
79
+ setVisible(visible: boolean, type?: import("@alifd/next/types/select").VisibleChangeType | undefined): void;
80
+ setFirstHightLightKeyForMenu(searchValue?: unknown): void;
81
+ handleChange(value: import("@alifd/next/types/select").DataSourceItem | import("@alifd/next/types/select").DataSourceItem[], args_0: unknown, args_1?: import("@alifd/next/types/select").ObjectItem | import("@alifd/next/types/select").ObjectItem[] | undefined): void;
82
+ handleMenuBodyClick(): void;
83
+ toggleHighlightItem(dir: number): false | import("@alifd/next/types/select/types").NormalizedObjectItem | undefined;
84
+ scrollMenuIntoView(): void;
85
+ handleSelect(): void;
86
+ handleMouseDown: (e: React.MouseEvent<HTMLElement, MouseEvent>) => void;
87
+ renderMenu(): React.JSX.Element;
88
+ renderMenuItem(dataSource: import("@alifd/next/types/select/types").NormalizedObjectItem[]): React.ReactElement<any, string | React.JSXElementConstructor<any>>[];
89
+ saveSelectRef: (ref: HTMLElement | null) => void;
90
+ saveInputRef: (ref: import("@alifd/next/types/config-provider/types").ConfiguredComponent<import("@alifd/next/types/input").InputProps & import("@alifd/next/types/config-provider/types").ComponentCommonProps, import("@alifd/next/types/input/input").default<import("@alifd/next/types/input").InputProps>> & Pick<import("@alifd/next/types/input/input").default<import("@alifd/next/types/input").InputProps>, "focus" | "getInputNode">) => void;
91
+ focusInput(): void;
92
+ focus(start?: number | undefined, end?: number | undefined, preventScroll?: boolean | undefined): void;
93
+ beforeOpen(): void;
94
+ beforeClose(): void;
95
+ savePopupRef: (ref: HTMLDivElement) => void;
96
+ shouldAutoWidth(): boolean | undefined;
97
+ context: any;
98
+ setState<K extends keyof import("@alifd/next/types/select/select").SelectState>(state: import("@alifd/next/types/select/select").SelectState | ((prevState: Readonly<import("@alifd/next/types/select/select").SelectState>, props: Readonly<import("@alifd/next/types/select").SelectProps>) => import("@alifd/next/types/select/select").SelectState | Pick<import("@alifd/next/types/select/select").SelectState, K> | null) | Pick<import("@alifd/next/types/select/select").SelectState, K> | null, callback?: (() => void) | undefined): void;
99
+ forceUpdate(callback?: (() => void) | undefined): void;
100
+ readonly props: Readonly<import("@alifd/next/types/select").SelectProps> & Readonly<{
101
+ children?: React.ReactNode;
102
+ }>;
103
+ state: Readonly<import("@alifd/next/types/select/select").SelectState>;
104
+ refs: {
105
+ [key: string]: React.ReactInstance;
106
+ };
107
+ shouldComponentUpdate?(nextProps: Readonly<import("@alifd/next/types/select").SelectProps>, nextState: Readonly<import("@alifd/next/types/select/select").SelectState>, nextContext: any): boolean;
108
+ componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
109
+ getSnapshotBeforeUpdate?(prevProps: Readonly<import("@alifd/next/types/select").SelectProps>, prevState: Readonly<import("@alifd/next/types/select/select").SelectState>): any;
110
+ componentWillMount?(): void;
111
+ UNSAFE_componentWillMount?(): void;
112
+ componentWillReceiveProps?(nextProps: Readonly<import("@alifd/next/types/select").SelectProps>, nextContext: any): void;
113
+ UNSAFE_componentWillReceiveProps?(nextProps: Readonly<import("@alifd/next/types/select").SelectProps>, nextContext: any): void;
114
+ componentWillUpdate?(nextProps: Readonly<import("@alifd/next/types/select").SelectProps>, nextState: Readonly<import("@alifd/next/types/select/select").SelectState>, nextContext: any): void;
115
+ UNSAFE_componentWillUpdate?(nextProps: Readonly<import("@alifd/next/types/select").SelectProps>, nextState: Readonly<import("@alifd/next/types/select/select").SelectState>, nextContext: any): void;
116
+ }> & Pick<{
117
+ selectAllYet: boolean;
118
+ componentDidUpdate(prevProps: import("@alifd/next/types/select").SelectProps, prevState: import("@alifd/next/types/select/base").BaseState): void;
119
+ componentDidMount(): void;
120
+ ie9Hack(): void;
121
+ useDetailValue(): boolean;
122
+ hasSearch(): boolean;
123
+ getTagSize(): "small" | "medium" | "large" | undefined;
124
+ handleMenuSelect(keys: string[], item: {
125
+ props: {
126
+ _key: string;
127
+ };
128
+ }): false | void;
129
+ handleItemClick(key: string): void;
130
+ handleSingleSelect(key: string, triggerType: import("@alifd/next/types/select").VisibleChangeType): void;
131
+ handleMultipleSelect(keys: import("@alifd/next/types/select").DataSourceItem[] | undefined, triggerType: import("@alifd/next/types/select").VisibleChangeType, key?: string | null | undefined, keepSearchValue?: boolean | undefined): void;
132
+ updateSelectAllYet(value?: unknown): void;
133
+ handleSearchValue(value: string): void;
134
+ handleSearch(value: string, e: React.ChangeEvent<HTMLInputElement>): void;
135
+ handleSearchClear(triggerType?: string | undefined): void;
136
+ handleSearchKeyDown(e: React.KeyboardEvent<HTMLElement>): void;
137
+ chooseMultipleItem(key: string): void;
138
+ chooseHighlightItem(proxy: unknown, e: React.UIEvent<HTMLElement, UIEvent>): false | undefined;
139
+ handleTagClose(item: import("@alifd/next/types/select").ObjectItem): boolean;
140
+ handleDeleteTag(e: React.UIEvent<HTMLElement, UIEvent>): false | undefined;
141
+ handleSelectAll(e: React.UIEvent<HTMLElement, UIEvent>): void;
142
+ handleVisibleChange(visible: boolean, type: import("@alifd/next/types/select").VisibleChangeType): void;
143
+ afterClose(): void;
144
+ maxTagPlaceholder(selectedValues: import("@alifd/next/types/select").ObjectItem[], totalValues: import("@alifd/next/types/select").ObjectItem[]): string;
145
+ renderValues(): React.ReactNode;
146
+ handleWrapClick: (e: React.MouseEvent<HTMLElement, MouseEvent>) => void;
147
+ handleArrowClick: (e: React.UIEvent<HTMLElement, UIEvent>) => void;
148
+ handleClear: (e: React.UIEvent<HTMLElement, UIEvent>) => void;
149
+ hasClear(): boolean | undefined;
150
+ renderExtraNode(): React.ReactElement<any, string | React.JSXElementConstructor<any>>[];
151
+ renderSelect(): React.JSX.Element;
152
+ renderSearchInput(valueNodes: React.ReactNode, placeholder: string | undefined, inputEl: React.ReactElement<any, string | React.JSXElementConstructor<any>>): React.JSX.Element;
153
+ renderMenuHeader(): React.ReactNode;
154
+ render(): React.JSX.Element;
155
+ dataStore: import("@alifd/next/types/select/data-store").default;
156
+ selectDOM: HTMLElement;
157
+ width: string | number;
158
+ popupRef: HTMLDivElement;
159
+ resizeTimeout: number;
160
+ highlightTimer: number | undefined;
161
+ menuRef: import("@alifd/next/types/config-provider/types").ConfiguredComponent<import("@alifd/next/types/menu").MenuProps & import("@alifd/next/types/config-provider/types").ComponentCommonProps, import("@alifd/next/types/menu/view/menu").Menu> | null;
162
+ isAutoComplete: boolean;
163
+ inputRef: import("@alifd/next/types/input/input").default<import("@alifd/next/types/input").InputProps>;
164
+ valueDataSource: {
165
+ value?: string | number | boolean | (string | number | boolean | null | undefined)[] | null | undefined;
166
+ valueDS?: import("@alifd/next/types/select").ObjectItem | import("@alifd/next/types/select").ObjectItem[] | undefined;
167
+ mapValueDS?: Record<string, import("@alifd/next/types/select").ObjectItem> | undefined;
168
+ };
169
+ componentWillUnmount(): void;
170
+ syncWidth(): void;
171
+ handleResize(): void;
172
+ setDataSource(props: import("@alifd/next/types/select").SelectProps): import("@alifd/next/types/select/types").NormalizedObjectItem[];
173
+ setVisible(visible: boolean, type?: import("@alifd/next/types/select").VisibleChangeType | undefined): void;
174
+ setFirstHightLightKeyForMenu(searchValue?: unknown): void;
175
+ handleChange(value: import("@alifd/next/types/select").DataSourceItem | import("@alifd/next/types/select").DataSourceItem[], args_0: unknown, args_1?: import("@alifd/next/types/select").ObjectItem | import("@alifd/next/types/select").ObjectItem[] | undefined): void;
176
+ handleMenuBodyClick(): void;
177
+ toggleHighlightItem(dir: number): false | import("@alifd/next/types/select/types").NormalizedObjectItem | undefined;
178
+ scrollMenuIntoView(): void;
179
+ handleSelect(): void;
180
+ handleMouseDown: (e: React.MouseEvent<HTMLElement, MouseEvent>) => void;
181
+ renderMenu(): React.JSX.Element;
182
+ renderMenuItem(dataSource: import("@alifd/next/types/select/types").NormalizedObjectItem[]): React.ReactElement<any, string | React.JSXElementConstructor<any>>[];
183
+ saveSelectRef: (ref: HTMLElement | null) => void;
184
+ saveInputRef: (ref: import("@alifd/next/types/config-provider/types").ConfiguredComponent<import("@alifd/next/types/input").InputProps & import("@alifd/next/types/config-provider/types").ComponentCommonProps, import("@alifd/next/types/input/input").default<import("@alifd/next/types/input").InputProps>> & Pick<import("@alifd/next/types/input/input").default<import("@alifd/next/types/input").InputProps>, "focus" | "getInputNode">) => void;
185
+ focusInput(): void;
186
+ focus(start?: number | undefined, end?: number | undefined, preventScroll?: boolean | undefined): void;
187
+ beforeOpen(): void;
188
+ beforeClose(): void;
189
+ savePopupRef: (ref: HTMLDivElement) => void;
190
+ shouldAutoWidth(): boolean | undefined;
191
+ context: any;
192
+ setState<K_1 extends keyof import("@alifd/next/types/select/select").SelectState>(state: import("@alifd/next/types/select/select").SelectState | ((prevState: Readonly<import("@alifd/next/types/select/select").SelectState>, props: Readonly<import("@alifd/next/types/select").SelectProps>) => import("@alifd/next/types/select/select").SelectState | Pick<import("@alifd/next/types/select/select").SelectState, K_1> | null) | Pick<import("@alifd/next/types/select/select").SelectState, K_1> | null, callback?: (() => void) | undefined): void;
193
+ forceUpdate(callback?: (() => void) | undefined): void;
194
+ readonly props: Readonly<import("@alifd/next/types/select").SelectProps> & Readonly<{
195
+ children?: React.ReactNode;
196
+ }>;
197
+ state: Readonly<import("@alifd/next/types/select/select").SelectState>;
198
+ refs: {
199
+ [key: string]: React.ReactInstance;
200
+ };
201
+ shouldComponentUpdate?(nextProps: Readonly<import("@alifd/next/types/select").SelectProps>, nextState: Readonly<import("@alifd/next/types/select/select").SelectState>, nextContext: any): boolean;
202
+ componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
203
+ getSnapshotBeforeUpdate?(prevProps: Readonly<import("@alifd/next/types/select").SelectProps>, prevState: Readonly<import("@alifd/next/types/select/select").SelectState>): any;
204
+ componentWillMount?(): void;
205
+ UNSAFE_componentWillMount?(): void;
206
+ componentWillReceiveProps?(nextProps: Readonly<import("@alifd/next/types/select").SelectProps>, nextContext: any): void;
207
+ UNSAFE_componentWillReceiveProps?(nextProps: Readonly<import("@alifd/next/types/select").SelectProps>, nextContext: any): void;
208
+ componentWillUpdate?(nextProps: Readonly<import("@alifd/next/types/select").SelectProps>, nextState: Readonly<import("@alifd/next/types/select/select").SelectState>, nextContext: any): void;
209
+ UNSAFE_componentWillUpdate?(nextProps: Readonly<import("@alifd/next/types/select").SelectProps>, nextState: Readonly<import("@alifd/next/types/select/select").SelectState>, nextContext: any): void;
210
+ }, "focusInput" | "handleSearchClear">>, string | number | symbol> & import("@alifd/next/types/config-provider/types").ComponentCommonProps, import("@alifd/next/types/config-provider/types").ConfiguredComponent<import("@alifd/next/types/select").SelectProps & import("@alifd/next/types/config-provider/types").ComponentCommonProps, {
211
+ selectAllYet: boolean;
212
+ componentDidUpdate(prevProps: import("@alifd/next/types/select").SelectProps, prevState: import("@alifd/next/types/select/base").BaseState): void;
213
+ componentDidMount(): void;
214
+ ie9Hack(): void;
215
+ useDetailValue(): boolean;
216
+ hasSearch(): boolean;
217
+ getTagSize(): "small" | "medium" | "large" | undefined;
218
+ handleMenuSelect(keys: string[], item: {
219
+ props: {
220
+ _key: string;
221
+ };
222
+ }): false | void;
223
+ handleItemClick(key: string): void;
224
+ handleSingleSelect(key: string, triggerType: import("@alifd/next/types/select").VisibleChangeType): void;
225
+ handleMultipleSelect(keys: import("@alifd/next/types/select").DataSourceItem[] | undefined, triggerType: import("@alifd/next/types/select").VisibleChangeType, key?: string | null | undefined, keepSearchValue?: boolean | undefined): void;
226
+ updateSelectAllYet(value?: unknown): void;
227
+ handleSearchValue(value: string): void;
228
+ handleSearch(value: string, e: React.ChangeEvent<HTMLInputElement>): void;
229
+ handleSearchClear(triggerType?: string | undefined): void;
230
+ handleSearchKeyDown(e: React.KeyboardEvent<HTMLElement>): void;
231
+ chooseMultipleItem(key: string): void;
232
+ chooseHighlightItem(proxy: unknown, e: React.UIEvent<HTMLElement, UIEvent>): false | undefined;
233
+ handleTagClose(item: import("@alifd/next/types/select").ObjectItem): boolean;
234
+ handleDeleteTag(e: React.UIEvent<HTMLElement, UIEvent>): false | undefined;
235
+ handleSelectAll(e: React.UIEvent<HTMLElement, UIEvent>): void;
236
+ handleVisibleChange(visible: boolean, type: import("@alifd/next/types/select").VisibleChangeType): void;
237
+ afterClose(): void;
238
+ maxTagPlaceholder(selectedValues: import("@alifd/next/types/select").ObjectItem[], totalValues: import("@alifd/next/types/select").ObjectItem[]): string;
239
+ renderValues(): React.ReactNode;
240
+ handleWrapClick: (e: React.MouseEvent<HTMLElement, MouseEvent>) => void;
241
+ handleArrowClick: (e: React.UIEvent<HTMLElement, UIEvent>) => void;
242
+ handleClear: (e: React.UIEvent<HTMLElement, UIEvent>) => void;
243
+ hasClear(): boolean | undefined;
244
+ renderExtraNode(): React.ReactElement<any, string | React.JSXElementConstructor<any>>[];
245
+ renderSelect(): React.JSX.Element;
246
+ renderSearchInput(valueNodes: React.ReactNode, placeholder: string | undefined, inputEl: React.ReactElement<any, string | React.JSXElementConstructor<any>>): React.JSX.Element;
247
+ renderMenuHeader(): React.ReactNode;
248
+ render(): React.JSX.Element;
249
+ dataStore: import("@alifd/next/types/select/data-store").default;
250
+ selectDOM: HTMLElement;
251
+ width: string | number;
252
+ popupRef: HTMLDivElement;
253
+ resizeTimeout: number;
254
+ highlightTimer: number | undefined;
255
+ menuRef: import("@alifd/next/types/config-provider/types").ConfiguredComponent<import("@alifd/next/types/menu").MenuProps & import("@alifd/next/types/config-provider/types").ComponentCommonProps, import("@alifd/next/types/menu/view/menu").Menu> | null;
256
+ isAutoComplete: boolean;
257
+ inputRef: import("@alifd/next/types/input/input").default<import("@alifd/next/types/input").InputProps>;
258
+ valueDataSource: {
259
+ value?: string | number | boolean | (string | number | boolean | null | undefined)[] | null | undefined;
260
+ valueDS?: import("@alifd/next/types/select").ObjectItem | import("@alifd/next/types/select").ObjectItem[] | undefined;
261
+ mapValueDS?: Record<string, import("@alifd/next/types/select").ObjectItem> | undefined;
262
+ };
263
+ componentWillUnmount(): void;
264
+ syncWidth(): void;
265
+ handleResize(): void;
266
+ setDataSource(props: import("@alifd/next/types/select").SelectProps): import("@alifd/next/types/select/types").NormalizedObjectItem[];
267
+ setVisible(visible: boolean, type?: import("@alifd/next/types/select").VisibleChangeType | undefined): void;
268
+ setFirstHightLightKeyForMenu(searchValue?: unknown): void;
269
+ handleChange(value: import("@alifd/next/types/select").DataSourceItem | import("@alifd/next/types/select").DataSourceItem[], args_0: unknown, args_1?: import("@alifd/next/types/select").ObjectItem | import("@alifd/next/types/select").ObjectItem[] | undefined): void;
270
+ handleMenuBodyClick(): void;
271
+ toggleHighlightItem(dir: number): false | import("@alifd/next/types/select/types").NormalizedObjectItem | undefined;
272
+ scrollMenuIntoView(): void;
273
+ handleSelect(): void;
274
+ handleMouseDown: (e: React.MouseEvent<HTMLElement, MouseEvent>) => void;
275
+ renderMenu(): React.JSX.Element;
276
+ renderMenuItem(dataSource: import("@alifd/next/types/select/types").NormalizedObjectItem[]): React.ReactElement<any, string | React.JSXElementConstructor<any>>[];
277
+ saveSelectRef: (ref: HTMLElement | null) => void;
278
+ saveInputRef: (ref: import("@alifd/next/types/config-provider/types").ConfiguredComponent<import("@alifd/next/types/input").InputProps & import("@alifd/next/types/config-provider/types").ComponentCommonProps, import("@alifd/next/types/input/input").default<import("@alifd/next/types/input").InputProps>> & Pick<import("@alifd/next/types/input/input").default<import("@alifd/next/types/input").InputProps>, "focus" | "getInputNode">) => void;
279
+ focusInput(): void;
280
+ focus(start?: number | undefined, end?: number | undefined, preventScroll?: boolean | undefined): void;
281
+ beforeOpen(): void;
282
+ beforeClose(): void;
283
+ savePopupRef: (ref: HTMLDivElement) => void;
284
+ shouldAutoWidth(): boolean | undefined;
285
+ context: any;
286
+ setState<K extends keyof import("@alifd/next/types/select/select").SelectState>(state: import("@alifd/next/types/select/select").SelectState | ((prevState: Readonly<import("@alifd/next/types/select/select").SelectState>, props: Readonly<import("@alifd/next/types/select").SelectProps>) => import("@alifd/next/types/select/select").SelectState | Pick<import("@alifd/next/types/select/select").SelectState, K> | null) | Pick<import("@alifd/next/types/select/select").SelectState, K> | null, callback?: (() => void) | undefined): void;
287
+ forceUpdate(callback?: (() => void) | undefined): void;
288
+ readonly props: Readonly<import("@alifd/next/types/select").SelectProps> & Readonly<{
289
+ children?: React.ReactNode;
290
+ }>;
291
+ state: Readonly<import("@alifd/next/types/select/select").SelectState>;
292
+ refs: {
293
+ [key: string]: React.ReactInstance;
294
+ };
295
+ shouldComponentUpdate?(nextProps: Readonly<import("@alifd/next/types/select").SelectProps>, nextState: Readonly<import("@alifd/next/types/select/select").SelectState>, nextContext: any): boolean;
296
+ componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
297
+ getSnapshotBeforeUpdate?(prevProps: Readonly<import("@alifd/next/types/select").SelectProps>, prevState: Readonly<import("@alifd/next/types/select/select").SelectState>): any;
298
+ componentWillMount?(): void;
299
+ UNSAFE_componentWillMount?(): void;
300
+ componentWillReceiveProps?(nextProps: Readonly<import("@alifd/next/types/select").SelectProps>, nextContext: any): void;
301
+ UNSAFE_componentWillReceiveProps?(nextProps: Readonly<import("@alifd/next/types/select").SelectProps>, nextContext: any): void;
302
+ componentWillUpdate?(nextProps: Readonly<import("@alifd/next/types/select").SelectProps>, nextState: Readonly<import("@alifd/next/types/select/select").SelectState>, nextContext: any): void;
303
+ UNSAFE_componentWillUpdate?(nextProps: Readonly<import("@alifd/next/types/select").SelectProps>, nextState: Readonly<import("@alifd/next/types/select/select").SelectState>, nextContext: any): void;
304
+ }> & Pick<{
305
+ selectAllYet: boolean;
306
+ componentDidUpdate(prevProps: import("@alifd/next/types/select").SelectProps, prevState: import("@alifd/next/types/select/base").BaseState): void;
307
+ componentDidMount(): void;
308
+ ie9Hack(): void;
309
+ useDetailValue(): boolean;
310
+ hasSearch(): boolean;
311
+ getTagSize(): "small" | "medium" | "large" | undefined;
312
+ handleMenuSelect(keys: string[], item: {
313
+ props: {
314
+ _key: string;
315
+ };
316
+ }): false | void;
317
+ handleItemClick(key: string): void;
318
+ handleSingleSelect(key: string, triggerType: import("@alifd/next/types/select").VisibleChangeType): void;
319
+ handleMultipleSelect(keys: import("@alifd/next/types/select").DataSourceItem[] | undefined, triggerType: import("@alifd/next/types/select").VisibleChangeType, key?: string | null | undefined, keepSearchValue?: boolean | undefined): void;
320
+ updateSelectAllYet(value?: unknown): void;
321
+ handleSearchValue(value: string): void;
322
+ handleSearch(value: string, e: React.ChangeEvent<HTMLInputElement>): void;
323
+ handleSearchClear(triggerType?: string | undefined): void;
324
+ handleSearchKeyDown(e: React.KeyboardEvent<HTMLElement>): void;
325
+ chooseMultipleItem(key: string): void;
326
+ chooseHighlightItem(proxy: unknown, e: React.UIEvent<HTMLElement, UIEvent>): false | undefined;
327
+ handleTagClose(item: import("@alifd/next/types/select").ObjectItem): boolean;
328
+ handleDeleteTag(e: React.UIEvent<HTMLElement, UIEvent>): false | undefined;
329
+ handleSelectAll(e: React.UIEvent<HTMLElement, UIEvent>): void;
330
+ handleVisibleChange(visible: boolean, type: import("@alifd/next/types/select").VisibleChangeType): void;
331
+ afterClose(): void;
332
+ maxTagPlaceholder(selectedValues: import("@alifd/next/types/select").ObjectItem[], totalValues: import("@alifd/next/types/select").ObjectItem[]): string;
333
+ renderValues(): React.ReactNode;
334
+ handleWrapClick: (e: React.MouseEvent<HTMLElement, MouseEvent>) => void;
335
+ handleArrowClick: (e: React.UIEvent<HTMLElement, UIEvent>) => void;
336
+ handleClear: (e: React.UIEvent<HTMLElement, UIEvent>) => void;
337
+ hasClear(): boolean | undefined;
338
+ renderExtraNode(): React.ReactElement<any, string | React.JSXElementConstructor<any>>[];
339
+ renderSelect(): React.JSX.Element;
340
+ renderSearchInput(valueNodes: React.ReactNode, placeholder: string | undefined, inputEl: React.ReactElement<any, string | React.JSXElementConstructor<any>>): React.JSX.Element;
341
+ renderMenuHeader(): React.ReactNode;
342
+ render(): React.JSX.Element;
343
+ dataStore: import("@alifd/next/types/select/data-store").default;
344
+ selectDOM: HTMLElement;
345
+ width: string | number;
346
+ popupRef: HTMLDivElement;
347
+ resizeTimeout: number;
348
+ highlightTimer: number | undefined;
349
+ menuRef: import("@alifd/next/types/config-provider/types").ConfiguredComponent<import("@alifd/next/types/menu").MenuProps & import("@alifd/next/types/config-provider/types").ComponentCommonProps, import("@alifd/next/types/menu/view/menu").Menu> | null;
350
+ isAutoComplete: boolean;
351
+ inputRef: import("@alifd/next/types/input/input").default<import("@alifd/next/types/input").InputProps>;
352
+ valueDataSource: {
353
+ value?: string | number | boolean | (string | number | boolean | null | undefined)[] | null | undefined;
354
+ valueDS?: import("@alifd/next/types/select").ObjectItem | import("@alifd/next/types/select").ObjectItem[] | undefined;
355
+ mapValueDS?: Record<string, import("@alifd/next/types/select").ObjectItem> | undefined;
356
+ };
357
+ componentWillUnmount(): void;
358
+ syncWidth(): void;
359
+ handleResize(): void;
360
+ setDataSource(props: import("@alifd/next/types/select").SelectProps): import("@alifd/next/types/select/types").NormalizedObjectItem[];
361
+ setVisible(visible: boolean, type?: import("@alifd/next/types/select").VisibleChangeType | undefined): void;
362
+ setFirstHightLightKeyForMenu(searchValue?: unknown): void;
363
+ handleChange(value: import("@alifd/next/types/select").DataSourceItem | import("@alifd/next/types/select").DataSourceItem[], args_0: unknown, args_1?: import("@alifd/next/types/select").ObjectItem | import("@alifd/next/types/select").ObjectItem[] | undefined): void;
364
+ handleMenuBodyClick(): void;
365
+ toggleHighlightItem(dir: number): false | import("@alifd/next/types/select/types").NormalizedObjectItem | undefined;
366
+ scrollMenuIntoView(): void;
367
+ handleSelect(): void;
368
+ handleMouseDown: (e: React.MouseEvent<HTMLElement, MouseEvent>) => void;
369
+ renderMenu(): React.JSX.Element;
370
+ renderMenuItem(dataSource: import("@alifd/next/types/select/types").NormalizedObjectItem[]): React.ReactElement<any, string | React.JSXElementConstructor<any>>[];
371
+ saveSelectRef: (ref: HTMLElement | null) => void;
372
+ saveInputRef: (ref: import("@alifd/next/types/config-provider/types").ConfiguredComponent<import("@alifd/next/types/input").InputProps & import("@alifd/next/types/config-provider/types").ComponentCommonProps, import("@alifd/next/types/input/input").default<import("@alifd/next/types/input").InputProps>> & Pick<import("@alifd/next/types/input/input").default<import("@alifd/next/types/input").InputProps>, "focus" | "getInputNode">) => void;
373
+ focusInput(): void;
374
+ focus(start?: number | undefined, end?: number | undefined, preventScroll?: boolean | undefined): void;
375
+ beforeOpen(): void;
376
+ beforeClose(): void;
377
+ savePopupRef: (ref: HTMLDivElement) => void;
378
+ shouldAutoWidth(): boolean | undefined;
379
+ context: any;
380
+ setState<K_1 extends keyof import("@alifd/next/types/select/select").SelectState>(state: import("@alifd/next/types/select/select").SelectState | ((prevState: Readonly<import("@alifd/next/types/select/select").SelectState>, props: Readonly<import("@alifd/next/types/select").SelectProps>) => import("@alifd/next/types/select/select").SelectState | Pick<import("@alifd/next/types/select/select").SelectState, K_1> | null) | Pick<import("@alifd/next/types/select/select").SelectState, K_1> | null, callback?: (() => void) | undefined): void;
381
+ forceUpdate(callback?: (() => void) | undefined): void;
382
+ readonly props: Readonly<import("@alifd/next/types/select").SelectProps> & Readonly<{
383
+ children?: React.ReactNode;
384
+ }>;
385
+ state: Readonly<import("@alifd/next/types/select/select").SelectState>;
386
+ refs: {
387
+ [key: string]: React.ReactInstance;
388
+ };
389
+ shouldComponentUpdate?(nextProps: Readonly<import("@alifd/next/types/select").SelectProps>, nextState: Readonly<import("@alifd/next/types/select/select").SelectState>, nextContext: any): boolean;
390
+ componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
391
+ getSnapshotBeforeUpdate?(prevProps: Readonly<import("@alifd/next/types/select").SelectProps>, prevState: Readonly<import("@alifd/next/types/select/select").SelectState>): any;
392
+ componentWillMount?(): void;
393
+ UNSAFE_componentWillMount?(): void;
394
+ componentWillReceiveProps?(nextProps: Readonly<import("@alifd/next/types/select").SelectProps>, nextContext: any): void;
395
+ UNSAFE_componentWillReceiveProps?(nextProps: Readonly<import("@alifd/next/types/select").SelectProps>, nextContext: any): void;
396
+ componentWillUpdate?(nextProps: Readonly<import("@alifd/next/types/select").SelectProps>, nextState: Readonly<import("@alifd/next/types/select/select").SelectState>, nextContext: any): void;
397
+ UNSAFE_componentWillUpdate?(nextProps: Readonly<import("@alifd/next/types/select").SelectProps>, nextState: Readonly<import("@alifd/next/types/select/select").SelectState>, nextContext: any): void;
398
+ }, "focusInput" | "handleSearchClear">, {}>;
24
399
  export default _default;
package/lib/tab/main.scss CHANGED
@@ -1,9 +1,8 @@
1
- @import "@alifd/next/variables.scss";
2
1
  @import "../core/variables.scss";
3
2
 
4
3
  .#{$prefix}tabs {
5
- &.#{$css-prefix}tabs-pure {
6
- .#{$css-prefix}tabs-bar {
4
+ &.#{$prefix}tabs-pure {
5
+ .#{$prefix}tabs-bar {
7
6
  border-color: transparent;
8
7
  }
9
8
  }
package/lib/tag/main.scss CHANGED
@@ -3,7 +3,7 @@
3
3
 
4
4
  .#{$prefix}tag {
5
5
 
6
- &.#{$css-prefix}tag {
6
+ &.#{$prefix}tag {
7
7
  border-color: transparent;
8
8
  }
9
9
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alifd/chat",
3
- "version": "0.1.15",
3
+ "version": "0.1.16",
4
4
  "description": "A configurable component library for chat built on React.",
5
5
  "main": "lib/index.js",
6
6
  "module": "es/index.js",
@@ -193,6 +193,18 @@
193
193
  "./icon/style.js": {
194
194
  "import": "./es/icon/style.js",
195
195
  "require": "./lib/icon/style.js"
196
+ },
197
+ "./balloon": {
198
+ "import": "./es/balloon/index.js",
199
+ "require": "./lib/balloon/index.js"
200
+ },
201
+ "./balloon/style": {
202
+ "import": "./es/balloon/style.js",
203
+ "require": "./lib/balloon/style.js"
204
+ },
205
+ "./balloon/style.js": {
206
+ "import": "./es/balloon/style.js",
207
+ "require": "./lib/balloon/style.js"
196
208
  }
197
209
  },
198
210
  "files": [
@@ -204,11 +216,12 @@
204
216
  "build": "npm run build:es && npm run build:lib && npm run build:others",
205
217
  "build:es": "rm -rf es && tsc -p ./tsconfig.build.json --outDir es --module esnext",
206
218
  "build:lib": "rm -rf lib && tsc -p ./tsconfig.build.json --outDir lib --module commonjs",
207
- "build:others": "tsx ./scripts/build.ts"
219
+ "build:others": "tsx ./scripts/build.ts",
220
+ "changelog": "tsx ./scripts/changelog.ts",
221
+ "prepublishOnly": "npm run build"
208
222
  },
209
223
  "devDependencies": {
210
224
  "@alifd/eslint-config-next": "^2.0.0",
211
- "@alifd/next": "^1.27.2",
212
225
  "@microsoft/tsdoc": "^0.14.2",
213
226
  "@microsoft/tsdoc-config": "^0.16.2",
214
227
  "@rspack/core": "^0.5.1",
@@ -216,16 +229,22 @@
216
229
  "@rspack/plugin-react-refresh": "^0.5.1",
217
230
  "@swc/core": "^1.3.104",
218
231
  "@swc/helpers": "^0.5.6",
232
+ "@types/co": "^4.6.6",
233
+ "@types/conventional-changelog": "^3.1.5",
219
234
  "@types/fs-extra": "^11.0.4",
220
235
  "@types/hoist-non-react-statics": "^3.3.5",
221
236
  "@types/lodash": "^4.14.202",
222
237
  "@types/minimist": "^1.2.5",
223
238
  "@types/react": "^16.0.0",
224
239
  "@types/react-dom": "^16.0.0",
240
+ "@types/yargs": "^17.0.32",
225
241
  "@typescript-eslint/eslint-plugin": "^6.19.0",
226
242
  "@typescript-eslint/parser": "^6.19.0",
227
243
  "ajv": "^8.12.0",
228
244
  "chalk": "^5.3.0",
245
+ "co": "^4.6.0",
246
+ "conventional-changelog": "^5.0.0",
247
+ "conventional-changelog-conventionalcommits": "^7.0.0",
229
248
  "eslint": "^8.56.0",
230
249
  "eslint-config-prettier": "^9.1.0",
231
250
  "eslint-plugin-cypress": "^2.15.1",
@@ -237,6 +256,7 @@
237
256
  "fs-extra": "^11.2.0",
238
257
  "glob": "^10.3.10",
239
258
  "hastscript": "^9.0.0",
259
+ "inquirer": "^10.0.0",
240
260
  "json5": "^2.2.3",
241
261
  "lodash": "^4.17.21",
242
262
  "minimist": "^1.2.8",
@@ -253,8 +273,10 @@
253
273
  "sass": "^1.70.0",
254
274
  "sass-loader": "^14.0.0",
255
275
  "ts-morph": "^21.0.1",
276
+ "tsconfck": "^3.1.1",
256
277
  "tsx": "^4.7.0",
257
- "typescript": "^5.3.3"
278
+ "typescript": "^5.3.3",
279
+ "yargs": "^17.7.2"
258
280
  },
259
281
  "peerDependencies": {
260
282
  "react": ">=16.0.0",
@@ -262,6 +284,7 @@
262
284
  },
263
285
  "dependencies": {
264
286
  "@ali/dingtalk-jsapi": "^3.0.33",
287
+ "@alifd/next": "^1.27.13",
265
288
  "axios": "^1.7.0",
266
289
  "dd-icons": "^1.6.20",
267
290
  "dingtalk-jsapi": "^3.0.33",
@@ -275,7 +298,10 @@
275
298
  "*.scss",
276
299
  "*.css"
277
300
  ],
278
- "repository": "git@gitlab.alibaba-inc.com:fusion-chat/fusion-chat.git",
301
+ "repository": {
302
+ "url": "git@gitlab.alibaba-inc.com:fusion-chat/fusion-chat.git",
303
+ "type": "git"
304
+ },
279
305
  "license": "MIT",
280
306
  "publishConfig": {
281
307
  "access": "public",