pika-shared 1.4.5 → 1.4.6

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.
@@ -177,6 +177,7 @@ interface IChatAppState {
177
177
  readonly customDataForChatApp: Record<string, unknown> | undefined;
178
178
  readonly customTitleBarActions: (ChatAppActionMenu | ChatAppAction)[];
179
179
  readonly widgetInstances: Map<string, WidgetInstance>;
180
+ readonly user: ChatUser;
180
181
  setCurrentSessionById(sessionId: string): void;
181
182
  removeFile(s3Key: string): void;
182
183
  startNewChatSession(): void;
@@ -187,7 +188,7 @@ interface IChatAppState {
187
188
  getMessageByMessageId(messageId: string): ChatMessageForRendering | undefined;
188
189
  uploadFiles(files: File[]): Promise<void>;
189
190
  initializeData(): Promise<void>;
190
- renderTag(tagId: string, context: 'spotlight' | 'inline' | 'dialog' | 'canvas', data?: Record<string, any>, metadata?: WidgetMetadata): Promise<void>;
191
+ renderTag(tagId: string, context: 'spotlight' | 'inline' | 'dialog' | 'canvas' | 'static', data?: Record<string, any>, metadata?: WidgetMetadata): Promise<void>;
191
192
  closeCanvas(): void;
192
193
  closeDialog(): void;
193
194
  setOrUpdateCustomTitleBarAction(action: ChatAppActionMenu | ChatAppAction): void;
@@ -177,6 +177,7 @@ interface IChatAppState {
177
177
  readonly customDataForChatApp: Record<string, unknown> | undefined;
178
178
  readonly customTitleBarActions: (ChatAppActionMenu | ChatAppAction)[];
179
179
  readonly widgetInstances: Map<string, WidgetInstance>;
180
+ readonly user: ChatUser;
180
181
  setCurrentSessionById(sessionId: string): void;
181
182
  removeFile(s3Key: string): void;
182
183
  startNewChatSession(): void;
@@ -187,7 +188,7 @@ interface IChatAppState {
187
188
  getMessageByMessageId(messageId: string): ChatMessageForRendering | undefined;
188
189
  uploadFiles(files: File[]): Promise<void>;
189
190
  initializeData(): Promise<void>;
190
- renderTag(tagId: string, context: 'spotlight' | 'inline' | 'dialog' | 'canvas', data?: Record<string, any>, metadata?: WidgetMetadata): Promise<void>;
191
+ renderTag(tagId: string, context: 'spotlight' | 'inline' | 'dialog' | 'canvas' | 'static', data?: Record<string, any>, metadata?: WidgetMetadata): Promise<void>;
191
192
  closeCanvas(): void;
192
193
  closeDialog(): void;
193
194
  setOrUpdateCustomTitleBarAction(action: ChatAppActionMenu | ChatAppAction): void;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pika-shared",
3
- "version": "1.4.5",
3
+ "version": "1.4.6",
4
4
  "main": "./dist/index.js",
5
5
  "module": "./dist/index.mjs",
6
6
  "types": "./dist/index.d.ts",