@athenaintel/react 0.9.14 → 0.9.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/index.cjs +457 -70
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +23 -1
- package/dist/index.js +457 -70
- package/dist/index.js.map +1 -1
- package/package.json +10 -9
package/dist/index.d.ts
CHANGED
|
@@ -7,6 +7,7 @@ import { EmptyMessagePartComponent } from '@assistant-ui/react';
|
|
|
7
7
|
import { FC } from 'react';
|
|
8
8
|
import { ForwardRefExoticComponent } from 'react';
|
|
9
9
|
import { JSX } from 'react/jsx-runtime';
|
|
10
|
+
import { PersistOptions } from 'zustand/middleware';
|
|
10
11
|
import * as React_2 from 'react';
|
|
11
12
|
import { ReactNode } from 'react';
|
|
12
13
|
import { ReasoningMessagePartComponent } from '@assistant-ui/react';
|
|
@@ -50,6 +51,7 @@ export declare interface AssetPanelState {
|
|
|
50
51
|
openAsset: (assetId: string, meta?: {
|
|
51
52
|
name?: string;
|
|
52
53
|
type?: AssetType;
|
|
54
|
+
embedSearchParams?: Record<string, string> | null;
|
|
53
55
|
}) => void;
|
|
54
56
|
closeTab: (assetId: string) => void;
|
|
55
57
|
setActiveTab: (assetId: string) => void;
|
|
@@ -66,6 +68,7 @@ export declare interface AssetTab {
|
|
|
66
68
|
id: string;
|
|
67
69
|
name: string | null;
|
|
68
70
|
type: AssetType;
|
|
71
|
+
embedSearchParams: Record<string, string> | null;
|
|
69
72
|
}
|
|
70
73
|
|
|
71
74
|
export declare type AssetType = 'presentation' | 'spreadsheet' | 'document' | 'notebook' | 'unknown';
|
|
@@ -145,6 +148,8 @@ export declare interface AthenaCitationLinkMetadata {
|
|
|
145
148
|
assetId: string;
|
|
146
149
|
assetIds: string[];
|
|
147
150
|
assetType: AssetType | null;
|
|
151
|
+
assetName: string | null;
|
|
152
|
+
embedSearchParams: Record<string, string>;
|
|
148
153
|
}
|
|
149
154
|
|
|
150
155
|
/**
|
|
@@ -585,6 +590,8 @@ export declare interface ParsedAthenaCitationLink {
|
|
|
585
590
|
assetId: string;
|
|
586
591
|
assetIds: string[];
|
|
587
592
|
assetType: AssetType | null;
|
|
593
|
+
assetName: string | null;
|
|
594
|
+
embedSearchParams: Record<string, string>;
|
|
588
595
|
}
|
|
589
596
|
|
|
590
597
|
declare interface QuoteContextValue {
|
|
@@ -1017,15 +1024,30 @@ export declare function useAssetEmbed(assetId: string | null, options?: UseAsset
|
|
|
1017
1024
|
export declare interface UseAssetEmbedOptions {
|
|
1018
1025
|
readOnly?: boolean;
|
|
1019
1026
|
expiresInSeconds?: number;
|
|
1027
|
+
embedSearchParams?: Record<string, string> | null;
|
|
1020
1028
|
}
|
|
1021
1029
|
|
|
1022
1030
|
export declare interface UseAssetEmbedResult {
|
|
1023
1031
|
embedUrl: string | null;
|
|
1024
1032
|
isLoading: boolean;
|
|
1025
1033
|
error: string | null;
|
|
1034
|
+
assetTitle: string | null;
|
|
1035
|
+
assetType: AssetType | null;
|
|
1026
1036
|
}
|
|
1027
1037
|
|
|
1028
|
-
export declare const useAssetPanelStore: UseBoundStore<StoreApi<AssetPanelState
|
|
1038
|
+
export declare const useAssetPanelStore: UseBoundStore<Omit<StoreApi<AssetPanelState>, "setState" | "persist"> & {
|
|
1039
|
+
setState(partial: AssetPanelState | Partial<AssetPanelState> | ((state: AssetPanelState) => AssetPanelState | Partial<AssetPanelState>), replace?: false | undefined): unknown;
|
|
1040
|
+
setState(state: AssetPanelState | ((state: AssetPanelState) => AssetPanelState), replace: true): unknown;
|
|
1041
|
+
persist: {
|
|
1042
|
+
setOptions: (options: Partial<PersistOptions<AssetPanelState, unknown, unknown>>) => void;
|
|
1043
|
+
clearStorage: () => void;
|
|
1044
|
+
rehydrate: () => Promise<void> | void;
|
|
1045
|
+
hasHydrated: () => boolean;
|
|
1046
|
+
onHydrate: (fn: (state: AssetPanelState) => void) => () => void;
|
|
1047
|
+
onFinishHydration: (fn: (state: AssetPanelState) => void) => () => void;
|
|
1048
|
+
getOptions: () => Partial<PersistOptions<AssetPanelState, unknown, unknown>>;
|
|
1049
|
+
};
|
|
1050
|
+
}>;
|
|
1029
1051
|
|
|
1030
1052
|
export declare const useAthenaCitationLinkHandler: () => AthenaCitationLinkHandler;
|
|
1031
1053
|
|