@intelliweave/embedded 2.1.78 → 2.1.79

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.
@@ -1105,6 +1105,8 @@ interface BuiltInActionFlags {
1105
1105
  allowChangeRoute?: boolean;
1106
1106
  /** Allows the AI to craft an email and use mailto: link */
1107
1107
  allowSendEmail?: boolean;
1108
+ /** Allows the AI to trigger hidden embedded emoji effects in the built-in UI */
1109
+ allowEmojiActions?: boolean;
1108
1110
  /** Makes the AI only use information from knowledge bases, not general knowledge */
1109
1111
  onlyUseKnowledgeBase?: boolean;
1110
1112
  }
@@ -1366,6 +1368,8 @@ declare class WebWeaverEmbed extends BaseComponent {
1366
1368
  private _previousOpenState;
1367
1369
  /** Session start time for tracking UI session duration */
1368
1370
  private _uiSessionStartTime?;
1371
+ /** Embedded action blocks already handled for each streamed message section */
1372
+ private _handledEmbeddedActionBlocks;
1369
1373
  /** Constructor */
1370
1374
  constructor();
1371
1375
  /** Content */
@@ -1416,7 +1420,15 @@ declare class WebWeaverEmbed extends BaseComponent {
1416
1420
  /** Called when the AI responds with some text */
1417
1421
  onAIMessage(messages: TokenWindowGroupItemParams<unknown>[], isPartial: boolean): Promise<void>;
1418
1422
  /** Updates a text element */
1419
- updateTextElement(elementID: string, text: string): void;
1423
+ updateTextElement(elementID: string, text: string): boolean;
1424
+ /** Execute supported hidden embedded actions from assistant text. */
1425
+ private runEmbeddedAction;
1426
+ /** Clamp unknown AI-provided numeric values before using them in the DOM. */
1427
+ private clampNumber;
1428
+ /** Keep AI-provided emoji text short enough to render safely as a visual effect. */
1429
+ private normalizeEmojiActionValue;
1430
+ /** Render a bounded burst of emoji particles in the embed overlay. */
1431
+ private showEmojiBurst;
1420
1432
  /** Updates an info block element */
1421
1433
  updateInfoElement(elementID: string, text: string, iconType: string): void;
1422
1434
  /** Called when a suggestion button is clicked */
@@ -1427,6 +1439,7 @@ declare class WebWeaverEmbed extends BaseComponent {
1427
1439
  onContentScroll(e: Event): void;
1428
1440
  /** Displays whitelabeled branding for known apps */
1429
1441
  private updateBrandingFor;
1442
+ private updateBrandingText;
1430
1443
  }
1431
1444
 
1432
1445
  /**