@intelliweave/embedded 1.7.57 → 1.7.58
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/custom.d.ts +25 -1
- package/dist/component/component.d.ts +8 -0
- package/dist/component/component.js +40 -24
- package/dist/intelliweave-wordpress.zip +0 -0
- package/dist/node/node.d.ts +6 -0
- package/dist/node/node.js +9 -9
- package/dist/react/react.d.ts +10 -0
- package/dist/react/react.js +40 -24
- package/dist/script-tag/script-tag.js +47 -31
- package/dist/webpack/index.d.ts +12 -0
- package/dist/webpack/index.js +45 -29
- package/package.json +1 -1
package/custom.d.ts
CHANGED
|
@@ -17,4 +17,28 @@ declare namespace URL {
|
|
|
17
17
|
declare module 'bestzip' {
|
|
18
18
|
const content: any;
|
|
19
19
|
export default content;
|
|
20
|
-
}
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
/**
|
|
23
|
+
* Global type declarations for the IntelliWeave library
|
|
24
|
+
*/
|
|
25
|
+
|
|
26
|
+
declare interface IntelliWeaveConfig {
|
|
27
|
+
apiKey?: string;
|
|
28
|
+
analytics?: boolean;
|
|
29
|
+
debug?: boolean;
|
|
30
|
+
context?: string;
|
|
31
|
+
introductionMessage?: string;
|
|
32
|
+
introductionSuggestions?: string[];
|
|
33
|
+
knowledgeBase?: any[];
|
|
34
|
+
sources?: any[];
|
|
35
|
+
offsetX?: number;
|
|
36
|
+
offsetY?: number;
|
|
37
|
+
userID?: string;
|
|
38
|
+
hubAPI?: string;
|
|
39
|
+
backgroundColor?: string;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
declare interface Window {
|
|
43
|
+
intelliweave: IntelliWeaveConfig;
|
|
44
|
+
}
|
|
@@ -594,6 +594,12 @@ interface WebWeaverGPTConfig {
|
|
|
594
594
|
instructions?: string;
|
|
595
595
|
/** Introduction message, used in the automatic UI */
|
|
596
596
|
introductionMessage?: string;
|
|
597
|
+
/** URL to the logo image to display in the chat UI */
|
|
598
|
+
logo?: string;
|
|
599
|
+
/** Background color or gradient or image for the chat UI */
|
|
600
|
+
background?: string;
|
|
601
|
+
/** Text color for the chat UI */
|
|
602
|
+
textColor?: string;
|
|
597
603
|
/** Voice information */
|
|
598
604
|
voice?: {
|
|
599
605
|
/** Provider ID */
|
|
@@ -783,6 +789,8 @@ declare class WebWeaverEmbed extends BaseComponent {
|
|
|
783
789
|
html: () => string;
|
|
784
790
|
/** On create */
|
|
785
791
|
onCreate(): void;
|
|
792
|
+
/** Apply UI styles from config in a batched operation */
|
|
793
|
+
private applyConfigStyles;
|
|
786
794
|
/** Called on update */
|
|
787
795
|
onUpdate(): void;
|
|
788
796
|
/** Called when the component is created */
|