@blueking/chat-x 0.0.1-beta.14 → 0.0.1-beta.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.
@@ -4,7 +4,7 @@ import 'tippy.js/dist/tippy.css';
4
4
  type __VLS_Props = IToolBtn & {
5
5
  active?: boolean;
6
6
  disabled?: boolean;
7
- tippyOptions?: Partial<Omit<TippyOptions, 'content' | 'getReferenceClientRect' | 'triggerTarget'>>;
7
+ tippyOptions?: Partial<Omit<TippyOptions, 'getReferenceClientRect' | 'triggerTarget'>>;
8
8
  };
9
9
  declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
10
10
  click: (data: IToolBtn, event: MouseEvent) => any;
@@ -1,3 +1,13 @@
1
- declare const __VLS_export: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
1
+ declare var __VLS_6: {};
2
+ type __VLS_Slots = {} & {
3
+ default?: (props: typeof __VLS_6) => any;
4
+ };
5
+ declare const __VLS_base: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
6
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
2
7
  declare const _default: typeof __VLS_export;
3
8
  export default _default;
9
+ type __VLS_WithSlots<T, S> = T & {
10
+ new (): {
11
+ $slots: S;
12
+ };
13
+ };
@@ -0,0 +1,19 @@
1
+ import { type TippyOptions } from 'vue-tippy';
2
+ import type { IToolBtn } from '../../../types';
3
+ export type DeleteToolProps = IToolBtn & {
4
+ disabled?: boolean;
5
+ tippyOptions?: Partial<Omit<TippyOptions, 'getReferenceClientRect' | 'triggerTarget'>>;
6
+ };
7
+ type __VLS_Props = IToolBtn & {
8
+ disabled?: boolean;
9
+ tippyOptions?: Partial<Omit<TippyOptions, 'getReferenceClientRect' | 'triggerTarget'>>;
10
+ };
11
+ declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
12
+ cancel: () => any;
13
+ confirm: () => any;
14
+ }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
15
+ onCancel?: (() => any) | undefined;
16
+ onConfirm?: (() => any) | undefined;
17
+ }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
18
+ declare const _default: typeof __VLS_export;
19
+ export default _default;
@@ -7,7 +7,7 @@ export type MessageToolsProps = {
7
7
  messageTools?: IToolBtn[];
8
8
  messageToolsStatus?: MessageToolsStatus;
9
9
  onAction?: (tool: IToolBtn, content?: UserMessage['content'], docSchema?: TagSchema) => Promise<string[] | void>;
10
- tippyOptions?: Partial<Omit<TippyOptions, 'content' | 'getReferenceClientRect' | 'triggerTarget'>>;
10
+ tippyOptions?: Partial<Omit<TippyOptions, 'getReferenceClientRect' | 'triggerTarget'>>;
11
11
  updateTools?: IToolBtn[];
12
12
  };
13
13
  declare const __VLS_export: import("vue").DefineComponent<MessageToolsProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
@@ -1,5 +1,6 @@
1
1
  import { type ComputedRef, type MaybeRef } from 'vue';
2
2
  export declare const CONTAINER_SCROLL_TOKEN: unique symbol;
3
+ export declare const SHOW_SCROLL_BOTTOM_BTN_DISTANCE = 100;
3
4
  export type ContainerScrollData = {
4
5
  autoScrollEnabled: boolean;
5
6
  isScrollBottom: boolean;
@@ -13,5 +14,6 @@ export declare const useContainerScrollProvider: (containerRef: MaybeRef<HTMLEle
13
14
  scrollBottomHeight: import("vue").ShallowRef<number, number>;
14
15
  toScrollBottom: () => void;
15
16
  toScrollTop: () => void;
17
+ debouncedShowScrollBottomBtn: import("vue").Ref<boolean, boolean>;
16
18
  };
17
19
  export declare const useContainerScrollConsumer: () => ComputedRef<ContainerScrollData> | undefined;
@@ -1,8 +1,8 @@
1
- import { type ShallowRef, type TemplateRef } from 'vue';
1
+ import { type ComputedRef, type ShallowRef, type TemplateRef } from 'vue';
2
2
  import type { ShortcutBtn } from '../components';
3
3
  export declare const useObserverVisibleList: <T>(containerRef: TemplateRef<HTMLElement>, itemRefs: ShallowRef<(HTMLElement | null)[]>, params: {
4
4
  gap: number;
5
- items: T[];
5
+ items: ComputedRef<T[]>;
6
6
  moreItemRef?: TemplateRef<InstanceType<typeof ShortcutBtn>>;
7
7
  }) => {
8
8
  visibleItems: ShallowRef<T[], T[]>;