@cloudtower/eagle 0.22.33 → 0.22.35

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.
@@ -1,7 +1,13 @@
1
- import React, { PropsWithChildren } from "react";
1
+ import React, { PropsWithChildren, ReactNode } from "react";
2
2
  import { Kit } from "../spec";
3
3
  interface IProps {
4
4
  kit?: Kit;
5
+ message?: {
6
+ batch?: (content: ReactNode) => {
7
+ batchKey?: string;
8
+ content: ReactNode;
9
+ };
10
+ };
5
11
  }
6
12
  export declare const kitContext: React.Context<Kit<any, HTMLElement>>;
7
13
  declare const UIKitProvider: (props: PropsWithChildren<IProps>) => JSX.Element;
@@ -12,6 +12,7 @@ export { default as InputTagItem } from "./InputTagItem";
12
12
  export * from "./KitStoreProvider";
13
13
  export { default as KitStoreProvider } from "./KitStoreProvider";
14
14
  export { default as Loading } from "./Loading";
15
+ export * from "./message-group";
15
16
  export * from "./Metric";
16
17
  export { default as Metric } from "./Metric";
17
18
  export * from "./Modal";
@@ -0,0 +1,25 @@
1
+ import { message } from "antd";
2
+ import { ArgsProps } from "antd/lib/message";
3
+ import { ReactNode } from "react";
4
+ export declare function makeUUID(length?: number): string;
5
+ type KeyedArgsProps = ArgsProps & {
6
+ key: string;
7
+ };
8
+ export declare class Batcher {
9
+ private batchSize;
10
+ private batchTime;
11
+ private scheduler;
12
+ private originalMethod;
13
+ private batchHelper;
14
+ constructor(originalMethod: typeof message["success"], batchHelper: (content: ReactNode) => {
15
+ batchKey?: string;
16
+ content: ReactNode;
17
+ });
18
+ addMessage(originContent: KeyedArgsProps): void;
19
+ private applyContent;
20
+ }
21
+ export declare function createBatchMessageMethods(batchHelper?: (content: ReactNode) => {
22
+ batchKey?: string;
23
+ content: ReactNode;
24
+ }): typeof message;
25
+ export {};