@glodon-aiot/agent-cli-ui 3.9.0-beta.10 → 3.9.0

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@glodon-aiot/agent-cli-ui",
3
- "version": "3.9.0-beta.10",
3
+ "version": "3.9.0",
4
4
  "module": "./dist/es/index.mjs",
5
5
  "main": "./dist/lib/index.js",
6
6
  "typings": "./dist/src/index.d.ts",
@@ -37,8 +37,8 @@
37
37
  },
38
38
  "dependencies": {
39
39
  "@ant-design/icons": "^5.3.4",
40
- "@glodon-aiot/apis": "^3.9.0-beta.10",
41
- "@glodon-aiot/bot-client-sdk": "^3.9.0-beta.10",
40
+ "@glodon-aiot/apis": "^3.9.0",
41
+ "@glodon-aiot/bot-client-sdk": "^3.9.0",
42
42
  "@matejmazur/react-mathjax": "^0.1.10",
43
43
  "@react-pdf-viewer/core": "^3.12.0",
44
44
  "@react-pdf-viewer/default-layout": "^3.12.0",
@@ -1,44 +0,0 @@
1
- import { EventSourceMessage } from './parse';
2
- export declare const EventStreamContentType = "text/event-stream";
3
- export interface FetchEventSourceInit extends RequestInit {
4
- /**
5
- * The request headers. FetchEventSource only supports the Record<string,string> format.
6
- */
7
- headers?: Record<string, string>;
8
- /**
9
- * Called when a response is received. Use this to validate that the response
10
- * actually matches what you expect (and throw if it doesn't.) If not provided,
11
- * will default to a basic validation to ensure the content-type is text/event-stream.
12
- */
13
- onopen?: (response: Response) => Promise<void>;
14
- /**
15
- * Called when a message is received. NOTE: Unlike the default browser
16
- * EventSource.onmessage, this callback is called for _all_ events,
17
- * even ones with a custom `event` field.
18
- */
19
- onmessage?: (ev: EventSourceMessage) => void;
20
- /**
21
- * Called when a response finishes. If you don't expect the server to kill
22
- * the connection, you can throw an exception here and retry using onerror.
23
- */
24
- onclose?: () => void;
25
- /**
26
- * Called when there is any error making the request / processing messages /
27
- * handling callbacks etc. Use this to control the retry strategy: if the
28
- * error is fatal, rethrow the error inside the callback to stop the entire
29
- * operation. Otherwise, you can return an interval (in milliseconds) after
30
- * which the request will automatically retry (with the last-event-id).
31
- * If this callback is not specified, or it returns undefined, fetchEventSource
32
- * will treat every error as retriable and will try again after 1 second.
33
- */
34
- onerror?: (err: any) => number | null | undefined | void;
35
- /**
36
- * If true, will keep the request open even if the document is hidden.
37
- * By default, fetchEventSource will close the request and reopen it
38
- * automatically when the document becomes visible again.
39
- */
40
- openWhenHidden?: boolean;
41
- /** The Fetch function to use. Defaults to window.fetch */
42
- fetch?: typeof fetch;
43
- }
44
- export declare function fetchEventSource(input: RequestInfo, { signal: inputSignal, headers: inputHeaders, onopen: inputOnOpen, onmessage, onclose, onerror, openWhenHidden, fetch: inputFetch, ...rest }: FetchEventSourceInit): Promise<void>;
@@ -1 +0,0 @@
1
- export * from './fetch';
@@ -1,36 +0,0 @@
1
- /**
2
- * Represents a message sent in an event stream
3
- * https://developer.mozilla.org/en-US/docs/Web/API/Server-sent_events/Using_server-sent_events#Event_stream_format
4
- */
5
- export interface EventSourceMessage {
6
- /** The event ID to set the EventSource object's last event ID value. */
7
- id: string;
8
- /** A string identifying the type of event described. */
9
- event: string;
10
- /** The event data */
11
- data: string;
12
- /** The reconnection interval (in milliseconds) to wait before retrying the connection */
13
- retry?: number;
14
- }
15
- /**
16
- * Converts a ReadableStream into a callback pattern.
17
- * @param stream The input ReadableStream.
18
- * @param onChunk A function that will be called on each new byte chunk in the stream.
19
- * @returns {Promise<void>} A promise that will be resolved when the stream closes.
20
- */
21
- export declare function getBytes(stream: ReadableStream<Uint8Array>, onChunk: (arr: Uint8Array) => void): Promise<void>;
22
- /**
23
- * Parses arbitary byte chunks into EventSource line buffers.
24
- * Each line should be of the format "field: value" and ends with \r, \n, or \r\n.
25
- * @param onLine A function that will be called on each new EventSource line.
26
- * @returns A function that should be called for each incoming byte chunk.
27
- */
28
- export declare function getLines(onLine: (line: Uint8Array, fieldLength: number, isWrap: boolean) => void): (arr: Uint8Array) => void;
29
- /**
30
- * Parses line buffers into EventSourceMessages.
31
- * @param onId A function that will be called on each `id` field.
32
- * @param onRetry A function that will be called on each `retry` field.
33
- * @param onMessage A function that will be called on each message.
34
- * @returns A function that should be called for each incoming line buffer.
35
- */
36
- export declare function getMessages(onId: (id: string) => void, onRetry: (retry: number) => void, onMessage?: (msg: EventSourceMessage) => void): (line: Uint8Array, fieldLength: number, isWrap: boolean) => void;
@@ -1,27 +0,0 @@
1
- import { default as React } from 'react';
2
- /**
3
- * 兼容React 17和React 18的渲染器类
4
- */
5
- export declare class CompatibleRenderer {
6
- private root;
7
- private container;
8
- private useReact18;
9
- private createRootFn;
10
- constructor(container: Element);
11
- /**
12
- * 渲染组件
13
- */
14
- render(element: React.ReactElement, callback?: () => void): void;
15
- /**
16
- * 卸载组件
17
- */
18
- unmount(callback?: () => void): void;
19
- }
20
- /**
21
- * 兼容的一次性渲染函数
22
- */
23
- export declare function compatibleRender(element: React.ReactElement, container: Element, callback?: () => void): void;
24
- /**
25
- * 兼容的卸载函数
26
- */
27
- export declare function compatibleUnmount(container: Element, callback?: () => void): void;
@@ -1,3 +0,0 @@
1
- import { default as React } from 'react';
2
- export declare const TestAntdPrefix: React.FC;
3
- export default TestAntdPrefix;