@merit-systems/echo-react-sdk 1.0.15 → 1.0.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.
- package/dist/echo-react-sdk.umd.js +2 -2
- package/dist/echo-react-sdk.umd.js.map +1 -1
- package/dist/index.cjs +2 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +6 -8
- package/dist/index.js +2382 -30
- package/dist/index.js.map +1 -1
- package/package.json +5 -3
package/dist/index.d.ts
CHANGED
|
@@ -8,7 +8,7 @@ import { EchoContextValue as EchoContextValue_2 } from '..';
|
|
|
8
8
|
import { EchoGoogleProvider } from '@merit-systems/echo-typescript-sdk';
|
|
9
9
|
import { EchoOpenAIProvider } from '@merit-systems/echo-typescript-sdk';
|
|
10
10
|
import { FreeBalance } from '@merit-systems/echo-typescript-sdk';
|
|
11
|
-
import { JSX
|
|
11
|
+
import { JSX } from 'react/jsx-runtime';
|
|
12
12
|
import { ModelMessage } from 'ai';
|
|
13
13
|
import { OpenAI as OpenAI_2 } from 'openai';
|
|
14
14
|
import { ReactNode } from 'react';
|
|
@@ -33,11 +33,9 @@ declare type EchoChatFn = (ctx: EchoChatBuildContext) => Promise<ReadableStream<
|
|
|
33
33
|
export declare function EchoChatProvider({ chatFn, children, }: {
|
|
34
34
|
chatFn: EchoChatFn;
|
|
35
35
|
children: React.ReactNode;
|
|
36
|
-
}):
|
|
36
|
+
}): JSX.Element;
|
|
37
37
|
|
|
38
|
-
export declare interface EchoConfig {
|
|
39
|
-
appId: string;
|
|
40
|
-
apiUrl?: string;
|
|
38
|
+
export declare interface EchoConfig extends EchoConfig_2 {
|
|
41
39
|
redirectUri?: string;
|
|
42
40
|
scope?: string;
|
|
43
41
|
}
|
|
@@ -61,14 +59,14 @@ export declare interface EchoContextValue {
|
|
|
61
59
|
config: EchoConfig_2;
|
|
62
60
|
}
|
|
63
61
|
|
|
64
|
-
export declare function EchoProvider({ config, children }: EchoProviderProps):
|
|
62
|
+
export declare function EchoProvider({ config, children }: EchoProviderProps): JSX.Element | null;
|
|
65
63
|
|
|
66
64
|
declare interface EchoProviderProps {
|
|
67
65
|
config: EchoConfig;
|
|
68
66
|
children: ReactNode;
|
|
69
67
|
}
|
|
70
68
|
|
|
71
|
-
export declare function EchoSignIn({ onSuccess, onError, className, children, }: EchoSignInProps):
|
|
69
|
+
export declare function EchoSignIn({ onSuccess, onError, className, children, }: EchoSignInProps): JSX.Element;
|
|
72
70
|
|
|
73
71
|
export declare interface EchoSignInProps {
|
|
74
72
|
onSuccess?: (user: EchoUser) => void;
|
|
@@ -77,7 +75,7 @@ export declare interface EchoSignInProps {
|
|
|
77
75
|
children?: React.ReactNode;
|
|
78
76
|
}
|
|
79
77
|
|
|
80
|
-
export declare function EchoTokenPurchase({ onPurchaseComplete, onError, className, children, }: EchoTokenPurchaseProps):
|
|
78
|
+
export declare function EchoTokenPurchase({ onPurchaseComplete, onError, className, children, }: EchoTokenPurchaseProps): JSX.Element;
|
|
81
79
|
|
|
82
80
|
export declare interface EchoTokenPurchaseProps {
|
|
83
81
|
amount?: number;
|