@marketrix.ai/widget 3.8.488 → 3.8.489
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.
|
@@ -17,9 +17,12 @@ export type MarketrixChatContext = Omit<ChatSnapshot, 'messages'> & {
|
|
|
17
17
|
config: MarketrixConfig | null;
|
|
18
18
|
timestamp: number;
|
|
19
19
|
};
|
|
20
|
+
/** Per-tenant scope for browser-local keys: the credential id, else the application id. */
|
|
21
|
+
export declare function tenantScope(config: MarketrixConfig): string;
|
|
20
22
|
export declare function readLocal(key: string): string | null;
|
|
21
23
|
export declare function writeLocal(key: string, value: string): void;
|
|
22
24
|
declare class StorageService {
|
|
25
|
+
private key;
|
|
23
26
|
private context;
|
|
24
27
|
getContext(): MarketrixChatContext;
|
|
25
28
|
updateContext(updates: Partial<MarketrixChatContext>): void;
|
|
@@ -2,6 +2,4 @@ import { type WidgetSettingsData } from '../sdk';
|
|
|
2
2
|
import type { MarketrixConfig } from '../types';
|
|
3
3
|
import type { CredentialedConfig } from './StorageService';
|
|
4
4
|
export declare function createConfigFromSettings(widgetSettings: WidgetSettingsData, baseConfig?: Partial<MarketrixConfig>): MarketrixConfig;
|
|
5
|
-
/** Per-tenant scope for browser-local keys: the credential id, else the application id. */
|
|
6
|
-
export declare function tenantScope(config: MarketrixConfig): string;
|
|
7
5
|
export declare function loadWidgetConfig(config: MarketrixConfig): Promise<CredentialedConfig>;
|