@marketrix.ai/widget 3.8.347 → 3.8.359

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,10 +1,4 @@
1
- /**
2
- * Unified widget localStorage under a single key (`marketrix_chat_context`): chat_id, messages, widget state, config.
3
- *
4
- * **Canonical implementation** of the `StorageService` mirror pair — the widget owns the read/write
5
- * lifecycle; `app/src/services/StorageService.ts` must stay byte-identical (modulo its `'../types'`
6
- * import path). Change storage semantics here first, then copy over to the app mirror.
7
- */
1
+ /** Unified widget localStorage (key `marketrix_chat_context`). Canonical StorageService — `app/src/services/StorageService.ts` must stay byte-identical (modulo its `'../types'` import); change semantics here first, then copy to the app mirror. */
8
2
  import type { ChatMessage, InstructionType, MarketrixConfig } from '../types';
9
3
  /** Serializable ChatMessage: timestamp as string, no videoStream. */
10
4
  type StoredMessage = Omit<ChatMessage, 'videoStream' | 'timestamp'> & {
@@ -6,10 +6,5 @@ export interface WidgetValidationResult {
6
6
  widget?: WidgetData;
7
7
  application?: ApplicationData;
8
8
  }
9
- /**
10
- * Validates widget config: the widget (marketrix_id + marketrix_key) and its application exist.
11
- *
12
- * The keyless `mtxApp` mode is retired — an application id is a guessable integer, not a secret, so
13
- * it authenticated nothing while granting full agent access under the owning workspace.
14
- */
9
+ /** Validates that the widget (marketrix_id + marketrix_key) and its application exist. Keyless `mtxApp` mode is retired — an application id is a guessable integer, so it authenticated nothing while granting full agent access under the workspace. */
15
10
  export declare function validateConfig(config: MarketrixConfig): Promise<WidgetValidationResult>;