@orangelogic/orange-dam-content-browser-sdk 2.1.49 → 2.1.50

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,4 +1,9 @@
1
1
  import { GetAssetLinkResponse } from './types/search';
2
+ export interface CustomStorage {
3
+ get(key: string): Promise<string | null>;
4
+ set(key: string, value: string, ttl?: number): void;
5
+ delete(key: string): void;
6
+ }
2
7
  export type AppContextType = {
3
8
  extraFields: string[];
4
9
  onAssetAction: (action: string, recordID: string) => void;
@@ -8,5 +13,6 @@ export type AppContextType = {
8
13
  onClose: () => void;
9
14
  onConnectClicked?: (url: string) => void;
10
15
  onTokenChanged?: (token: string) => void;
16
+ customStorage?: CustomStorage;
11
17
  };
12
18
  export declare const AppContext: import("react").Context<AppContextType>;