@intelliweave/embedded 2.1.79 → 2.2.81
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.
- package/AGENTS.md +12 -0
- package/dist/component/component.d.ts +58 -0
- package/dist/component/component.js +828 -102
- package/dist/intelliweave-wordpress.zip +0 -0
- package/dist/node/node.d.ts +58 -0
- package/dist/node/node.js +26 -26
- package/dist/react/react.d.ts +2 -0
- package/dist/react/react.js +783 -57
- package/dist/script-tag/script-tag.js +828 -102
- package/dist/webpack/index.d.ts +58 -0
- package/dist/webpack/index.js +777 -51
- package/package.json +1 -1
package/dist/webpack/index.d.ts
CHANGED
|
@@ -891,6 +891,8 @@ interface WebWeaverGPTConfig {
|
|
|
891
891
|
offsetX?: number;
|
|
892
892
|
/** Vertical offset from edge in pixels (default: 20) - only used when positioningMode is 'fixed' */
|
|
893
893
|
offsetY?: number;
|
|
894
|
+
/** Custom brand name displayed in the panel header kicker (replaces "IntelliWeave"). */
|
|
895
|
+
brandName?: string;
|
|
894
896
|
/** Identifier of an external app or service which manages this persona, if any. (eg. "chatterly") */
|
|
895
897
|
managedBy?: string;
|
|
896
898
|
/** Voice information */
|
|
@@ -1870,6 +1872,14 @@ declare class WebWeaverEmbed extends BaseComponent {
|
|
|
1870
1872
|
private _uiSessionStartTime?;
|
|
1871
1873
|
/** Embedded action blocks already handled for each streamed message section */
|
|
1872
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;
|
|
1873
1883
|
/** Constructor */
|
|
1874
1884
|
constructor();
|
|
1875
1885
|
/** Content */
|
|
@@ -1889,10 +1899,14 @@ declare class WebWeaverEmbed extends BaseComponent {
|
|
|
1889
1899
|
private _lastPositionY?;
|
|
1890
1900
|
private _lastOffsetX?;
|
|
1891
1901
|
private _lastOffsetY?;
|
|
1902
|
+
private _lastBrandName?;
|
|
1892
1903
|
/** Apply persona-based color variants as CSS variables */
|
|
1893
1904
|
private applyPersonaColorVariants;
|
|
1894
1905
|
/** Parse a color string to RGB (supports hex and rgb/rgba) */
|
|
1895
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;
|
|
1896
1910
|
/** Adjust inner container spacing based on logo aspect ratio */
|
|
1897
1911
|
private adjustLogoPadding;
|
|
1898
1912
|
/** Apply UI styles from config and attributes, prioritizing attributes */
|
|
@@ -1903,6 +1917,48 @@ declare class WebWeaverEmbed extends BaseComponent {
|
|
|
1903
1917
|
onDestroy(): void;
|
|
1904
1918
|
/** Called when the container is clicked */
|
|
1905
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;
|
|
1906
1962
|
/** Called when the logo is clicked */
|
|
1907
1963
|
onLogoClick(e: Event): void;
|
|
1908
1964
|
/** Open the interaction panel */
|
|
@@ -1927,6 +1983,8 @@ declare class WebWeaverEmbed extends BaseComponent {
|
|
|
1927
1983
|
private clampNumber;
|
|
1928
1984
|
/** Keep AI-provided emoji text short enough to render safely as a visual effect. */
|
|
1929
1985
|
private normalizeEmojiActionValue;
|
|
1986
|
+
/** Keep AI-provided suggestion text short enough to render safely as a button. */
|
|
1987
|
+
private normalizeSuggestionActionValue;
|
|
1930
1988
|
/** Render a bounded burst of emoji particles in the embed overlay. */
|
|
1931
1989
|
private showEmojiBurst;
|
|
1932
1990
|
/** Updates an info block element */
|