@websolutespa/bom-llm 0.0.17 → 0.0.19

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/CHANGELOG.md CHANGED
@@ -1,5 +1,18 @@
1
1
  # @websolutespa/bom-llm
2
2
 
3
+ ## 0.0.19
4
+
5
+ ### Patch Changes
6
+
7
+ - 114cbee: Added: theme variant for typography
8
+ - 114cbee: Added: LlmContents disableSpeechSynthesis flag
9
+
10
+ ## 0.0.18
11
+
12
+ ### Patch Changes
13
+
14
+ - Added: flags preview, dismissable, opened, skipCustomIntro
15
+
3
16
  ## 0.0.17
4
17
 
5
18
  ### Patch Changes
package/dist/index.d.ts CHANGED
@@ -1,5 +1,3 @@
1
- import { LlmInstance } from '@websolutespa/bom-mixer-llm';
2
-
3
1
  type DeepPartial<T> = T extends object ? {
4
2
  [P in keyof T]?: DeepPartial<T[P]>;
5
3
  } : T;
@@ -32,17 +30,18 @@ type LlmContents = {
32
30
  collapsedWelcomeText: string;
33
31
  collapsedWelcomeTextCta?: string;
34
32
  collapsedWelcomeTextHover?: string;
35
- extendedWelcomeText: string;
33
+ customIntro?: string;
34
+ customTheme?: DeepPartial<LlmTheme>;
35
+ disableSpeechSynthesis?: boolean;
36
36
  disclaimer?: string;
37
- promptPlaceholder?: string;
37
+ extendedWelcomeText: string;
38
+ intro?: string;
38
39
  layoutBuilder: LlmCard[];
39
40
  logo?: IMedia;
40
41
  logoMini?: IMedia;
42
+ promptPlaceholder?: string;
41
43
  sampleInputTexts: LlmSampleInputText[];
42
44
  shortWelcomeText: string;
43
- intro?: string;
44
- customIntro?: string;
45
- customTheme?: DeepPartial<LlmTheme>;
46
45
  };
47
46
  type LlmMode = 'site' | 'chat';
48
47
  type LlmMockApp = {
@@ -63,17 +62,25 @@ type LlmMock = {
63
62
  };
64
63
  type LlmTest = undefined | boolean | DeepPartial<LlmMock>;
65
64
  type LlmDecorateUrl = (item: LlmItem) => (string | void) | Promise<string | void>;
65
+ type LlmViewOptions = {
66
+ threadId?: string;
67
+ preview?: boolean;
68
+ opened?: boolean;
69
+ dismissable?: boolean;
70
+ skipCustomIntro?: boolean;
71
+ embedded?: boolean;
72
+ };
66
73
  type LlmOptions = {
67
74
  apiKey: string;
68
75
  appKey: string;
69
76
  decorateUrl?: LlmDecorateUrl;
70
77
  test?: LlmTest;
71
- threadId?: string;
72
78
  customTheme?: Partial<LlmTheme>;
73
- opened?: boolean;
74
- embedded?: boolean;
75
79
  locale?: string;
76
80
  market?: string;
81
+ } & LlmViewOptions;
82
+ type LlmInstance = {
83
+ open: () => void;
77
84
  };
78
85
 
79
86
  declare function bomLlm(props: LlmOptions): LlmInstance | undefined;