@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.
- package/dist/component/component.d.ts +14 -1
- package/dist/component/component.js +110 -64
- package/dist/intelliweave-wordpress.zip +0 -0
- package/dist/node/node.d.ts +14 -1
- package/dist/node/node.js +20 -20
- package/dist/react/react.d.ts +2 -0
- package/dist/react/react.js +71 -25
- package/dist/script-tag/script-tag.js +110 -64
- package/dist/webpack/index.d.ts +14 -1
- package/dist/webpack/index.js +70 -24
- package/package.json +1 -1
package/dist/webpack/index.d.ts
CHANGED
|
@@ -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
|
}
|
|
@@ -1866,6 +1868,8 @@ declare class WebWeaverEmbed extends BaseComponent {
|
|
|
1866
1868
|
private _previousOpenState;
|
|
1867
1869
|
/** Session start time for tracking UI session duration */
|
|
1868
1870
|
private _uiSessionStartTime?;
|
|
1871
|
+
/** Embedded action blocks already handled for each streamed message section */
|
|
1872
|
+
private _handledEmbeddedActionBlocks;
|
|
1869
1873
|
/** Constructor */
|
|
1870
1874
|
constructor();
|
|
1871
1875
|
/** Content */
|
|
@@ -1916,7 +1920,15 @@ declare class WebWeaverEmbed extends BaseComponent {
|
|
|
1916
1920
|
/** Called when the AI responds with some text */
|
|
1917
1921
|
onAIMessage(messages: TokenWindowGroupItemParams<unknown>[], isPartial: boolean): Promise<void>;
|
|
1918
1922
|
/** Updates a text element */
|
|
1919
|
-
updateTextElement(elementID: string, text: string):
|
|
1923
|
+
updateTextElement(elementID: string, text: string): boolean;
|
|
1924
|
+
/** Execute supported hidden embedded actions from assistant text. */
|
|
1925
|
+
private runEmbeddedAction;
|
|
1926
|
+
/** Clamp unknown AI-provided numeric values before using them in the DOM. */
|
|
1927
|
+
private clampNumber;
|
|
1928
|
+
/** Keep AI-provided emoji text short enough to render safely as a visual effect. */
|
|
1929
|
+
private normalizeEmojiActionValue;
|
|
1930
|
+
/** Render a bounded burst of emoji particles in the embed overlay. */
|
|
1931
|
+
private showEmojiBurst;
|
|
1920
1932
|
/** Updates an info block element */
|
|
1921
1933
|
updateInfoElement(elementID: string, text: string, iconType: string): void;
|
|
1922
1934
|
/** Called when a suggestion button is clicked */
|
|
@@ -1927,6 +1939,7 @@ declare class WebWeaverEmbed extends BaseComponent {
|
|
|
1927
1939
|
onContentScroll(e: Event): void;
|
|
1928
1940
|
/** Displays whitelabeled branding for known apps */
|
|
1929
1941
|
private updateBrandingFor;
|
|
1942
|
+
private updateBrandingText;
|
|
1930
1943
|
}
|
|
1931
1944
|
|
|
1932
1945
|
/** Utility to trim whitespace from blocks of text */
|