@intelliweave/embedded 2.1.78 → 2.2.80

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.
@@ -850,6 +850,8 @@ interface BuiltInActionFlags {
850
850
  allowChangeRoute?: boolean;
851
851
  /** Allows the AI to craft an email and use mailto: link */
852
852
  allowSendEmail?: boolean;
853
+ /** Allows the AI to trigger hidden embedded emoji effects in the built-in UI */
854
+ allowEmojiActions?: boolean;
853
855
  /** Makes the AI only use information from knowledge bases, not general knowledge */
854
856
  onlyUseKnowledgeBase?: boolean;
855
857
  }
@@ -889,6 +891,8 @@ interface WebWeaverGPTConfig {
889
891
  offsetX?: number;
890
892
  /** Vertical offset from edge in pixels (default: 20) - only used when positioningMode is 'fixed' */
891
893
  offsetY?: number;
894
+ /** Custom brand name displayed in the panel header kicker (replaces "IntelliWeave"). */
895
+ brandName?: string;
892
896
  /** Identifier of an external app or service which manages this persona, if any. (eg. "chatterly") */
893
897
  managedBy?: string;
894
898
  /** Voice information */
@@ -1866,6 +1870,16 @@ declare class WebWeaverEmbed extends BaseComponent {
1866
1870
  private _previousOpenState;
1867
1871
  /** Session start time for tracking UI session duration */
1868
1872
  private _uiSessionStartTime?;
1873
+ /** Embedded action blocks already handled for each streamed message section */
1874
+ private _handledEmbeddedActionBlocks;
1875
+ /** If opened by mobile swipe from the collapsed tab, swipe-close should return to collapsed tab */
1876
+ private _returnToCollapsedOnSwipeClose;
1877
+ /** Suppress the next container click event (used after a swipe-close to prevent re-opening) */
1878
+ private _suppressNextContainerClick;
1879
+ /** Mobile swipe start point */
1880
+ private _swipeStart?;
1881
+ /** Previous fullscreen state for refreshing mobile scroll containment */
1882
+ private _previousFullscreenState;
1869
1883
  /** Constructor */
1870
1884
  constructor();
1871
1885
  /** Content */
@@ -1885,10 +1899,14 @@ declare class WebWeaverEmbed extends BaseComponent {
1885
1899
  private _lastPositionY?;
1886
1900
  private _lastOffsetX?;
1887
1901
  private _lastOffsetY?;
1902
+ private _lastBrandName?;
1888
1903
  /** Apply persona-based color variants as CSS variables */
1889
1904
  private applyPersonaColorVariants;
1890
1905
  /** Parse a color string to RGB (supports hex and rgb/rgba) */
1891
1906
  private parseColorToRGB;
1907
+ /** Compute a complementary kicker color via hue-shift (+120°) from a given background color.
1908
+ * Returns null if the color cannot be parsed (so the CSS default is used). */
1909
+ private computeKickerColor;
1892
1910
  /** Adjust inner container spacing based on logo aspect ratio */
1893
1911
  private adjustLogoPadding;
1894
1912
  /** Apply UI styles from config and attributes, prioritizing attributes */
@@ -1899,6 +1917,48 @@ declare class WebWeaverEmbed extends BaseComponent {
1899
1917
  onDestroy(): void;
1900
1918
  /** Called when the container is clicked */
1901
1919
  onContainerClick(e: Event): void;
1920
+ /** Open from the floating dock button */
1921
+ onDockOpenClick(e: Event): void;
1922
+ /** Collapse the floating dock into a side tab */
1923
+ onDockCollapseClick(e: Event): void;
1924
+ /** Open from the collapsed side tab — show the dock/circle view first, not the full chat */
1925
+ onCollapsedOpenClick(e: Event): void;
1926
+ /** Collapse from the panel header */
1927
+ onPanelCollapseClick(e: Event): void;
1928
+ /** Toggle fullscreen state for widget layout */
1929
+ onPanelFullscreenClick(e: Event): void;
1930
+ /** Close the panel */
1931
+ onPanelCloseClick(e: Event): void;
1932
+ /** True if the UI cannot be manually closed/collapsed */
1933
+ private isForcedOpen;
1934
+ /** Open the normal panel from the dock button */
1935
+ private openFromDock;
1936
+ /** Refresh the chat scroller after fullscreen transitions, especially for iOS momentum scroll. */
1937
+ private refreshContentScrollability;
1938
+ /** Show the dock/circle view from the collapsed tab (without opening chat) */
1939
+ private showDockFromCollapsed;
1940
+ /** Open the panel from the collapsed tab */
1941
+ private openFromCollapsed;
1942
+ /** Close the panel, returning to the side tab when opened from the tab by swipe */
1943
+ private closePanel;
1944
+ /** Collapse the whole dock into the side tab */
1945
+ private collapseDock;
1946
+ /** Track pointer start for mobile horizontal swipe gestures */
1947
+ onSwipePointerDown(e: PointerEvent): void;
1948
+ /** Reset swipe tracking */
1949
+ onSwipePointerCancel(): void;
1950
+ /** Direction that moves into the viewport from the dock side. */
1951
+ private inwardSwipeDirection;
1952
+ /** Direction that moves back out toward the dock side. */
1953
+ private outwardSwipeDirection;
1954
+ /** True when a pointer release was a horizontal swipe in the requested direction */
1955
+ private didSwipe;
1956
+ /** Open the collapsed tab on mobile inward-swipe */
1957
+ onCollapsedSwipePointerUp(e: PointerEvent): void;
1958
+ /** Open the dock on mobile inward-swipe */
1959
+ onDockSwipePointerUp(e: PointerEvent): void;
1960
+ /** Close the panel on mobile outward-swipe */
1961
+ onPanelSwipePointerUp(e: PointerEvent): void;
1902
1962
  /** Called when the logo is clicked */
1903
1963
  onLogoClick(e: Event): void;
1904
1964
  /** Open the interaction panel */
@@ -1916,7 +1976,17 @@ declare class WebWeaverEmbed extends BaseComponent {
1916
1976
  /** Called when the AI responds with some text */
1917
1977
  onAIMessage(messages: TokenWindowGroupItemParams<unknown>[], isPartial: boolean): Promise<void>;
1918
1978
  /** Updates a text element */
1919
- updateTextElement(elementID: string, text: string): void;
1979
+ updateTextElement(elementID: string, text: string): boolean;
1980
+ /** Execute supported hidden embedded actions from assistant text. */
1981
+ private runEmbeddedAction;
1982
+ /** Clamp unknown AI-provided numeric values before using them in the DOM. */
1983
+ private clampNumber;
1984
+ /** Keep AI-provided emoji text short enough to render safely as a visual effect. */
1985
+ private normalizeEmojiActionValue;
1986
+ /** Keep AI-provided suggestion text short enough to render safely as a button. */
1987
+ private normalizeSuggestionActionValue;
1988
+ /** Render a bounded burst of emoji particles in the embed overlay. */
1989
+ private showEmojiBurst;
1920
1990
  /** Updates an info block element */
1921
1991
  updateInfoElement(elementID: string, text: string, iconType: string): void;
1922
1992
  /** Called when a suggestion button is clicked */
@@ -1927,6 +1997,7 @@ declare class WebWeaverEmbed extends BaseComponent {
1927
1997
  onContentScroll(e: Event): void;
1928
1998
  /** Displays whitelabeled branding for known apps */
1929
1999
  private updateBrandingFor;
2000
+ private updateBrandingText;
1930
2001
  }
1931
2002
 
1932
2003
  /** Utility to trim whitespace from blocks of text */