@gram-ai/elements 1.18.7 → 1.19.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/README.md +16 -3
- package/bin/cli.js +144 -0
- package/dist/components/Chat/stories/ConnectionConfiguration.stories.d.ts +10 -0
- package/dist/components/Chat/stories/{Customization.stories.d.ts → CustomComponents.stories.d.ts} +1 -3
- package/dist/elements.cjs +103 -88
- package/dist/elements.cjs.map +1 -1
- package/dist/elements.js +28158 -14824
- package/dist/elements.js.map +1 -1
- package/dist/hooks/useAuth.d.ts +2 -2
- package/dist/{index-CJRypLIa.js → index-Cb5sxQuN.js} +1429 -641
- package/dist/index-Cb5sxQuN.js.map +1 -0
- package/dist/index-hrhDHFgW.cjs +19 -0
- package/dist/index-hrhDHFgW.cjs.map +1 -0
- package/dist/lib/auth.d.ts +3 -2
- package/dist/plugins.cjs +1 -1
- package/dist/plugins.js +1 -1
- package/dist/types/index.d.ts +33 -12
- package/package.json +9 -13
- package/src/components/Chat/stories/{Customization.stories.tsx → ConnectionConfiguration.stories.tsx} +38 -19
- package/src/components/Chat/stories/CustomComponents.stories.tsx +46 -0
- package/src/hooks/useAuth.ts +14 -6
- package/src/lib/auth.ts +9 -2
- package/src/types/index.ts +37 -12
- package/dist/index-Bj7jPiuy.cjs +0 -17
- package/dist/index-Bj7jPiuy.cjs.map +0 -1
- package/dist/index-CJRypLIa.js.map +0 -1
package/dist/hooks/useAuth.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ApiConfig } from '../types';
|
|
2
2
|
export type Auth = {
|
|
3
3
|
headers: Record<string, string>;
|
|
4
4
|
isLoading: false;
|
|
@@ -11,6 +11,6 @@ export type Auth = {
|
|
|
11
11
|
* @returns The session token string or null
|
|
12
12
|
*/
|
|
13
13
|
export declare const useAuth: ({ projectSlug, auth, }: {
|
|
14
|
-
auth?:
|
|
14
|
+
auth?: ApiConfig;
|
|
15
15
|
projectSlug: string;
|
|
16
16
|
}) => Auth;
|