@websolutespa/bom-llm 0.0.14 → 0.0.16
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 +104 -92
- package/dist/index.d.ts +63 -3
- package/dist/umd/index.css +610 -50
- package/dist/umd/index.js +2278 -732
- package/dist/umd/index.js.map +1 -1
- package/package.json +5 -6
package/CHANGELOG.md
CHANGED
|
@@ -1,92 +1,104 @@
|
|
|
1
|
-
# @websolutespa/bom-llm
|
|
2
|
-
|
|
3
|
-
## 0.0.
|
|
4
|
-
|
|
5
|
-
### Patch Changes
|
|
6
|
-
|
|
7
|
-
-
|
|
8
|
-
|
|
9
|
-
## 0.0.
|
|
10
|
-
|
|
11
|
-
### Patch Changes
|
|
12
|
-
|
|
13
|
-
- Added:
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
- Added:
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
-
|
|
48
|
-
|
|
49
|
-
## 0.0.
|
|
50
|
-
|
|
51
|
-
### Patch Changes
|
|
52
|
-
|
|
53
|
-
-
|
|
54
|
-
|
|
55
|
-
## 0.0.
|
|
56
|
-
|
|
57
|
-
### Patch Changes
|
|
58
|
-
|
|
59
|
-
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
-
|
|
80
|
-
|
|
81
|
-
## 0.0.
|
|
82
|
-
|
|
83
|
-
### Patch Changes
|
|
84
|
-
|
|
85
|
-
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
1
|
+
# @websolutespa/bom-llm
|
|
2
|
+
|
|
3
|
+
## 0.0.16
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Fixing: downgrading eslint to v8.56.0
|
|
8
|
+
|
|
9
|
+
## 0.0.15
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- 0181617: Added: customTheme, customIntro, Cards, VideoPlayer, ThronPlayer, MessageService
|
|
14
|
+
|
|
15
|
+
## 0.0.14
|
|
16
|
+
|
|
17
|
+
### Patch Changes
|
|
18
|
+
|
|
19
|
+
- Added: CanvasOffscreenProvider
|
|
20
|
+
|
|
21
|
+
## 0.0.13
|
|
22
|
+
|
|
23
|
+
### Patch Changes
|
|
24
|
+
|
|
25
|
+
- Added: theme, customTheme, customIntro
|
|
26
|
+
- Added: cross visibility check
|
|
27
|
+
- Fixing: textToChunks
|
|
28
|
+
|
|
29
|
+
## 0.0.12
|
|
30
|
+
|
|
31
|
+
### Patch Changes
|
|
32
|
+
|
|
33
|
+
- Fixing: markdown links
|
|
34
|
+
- Added: embeds IntersectionObserver, MutationObserber
|
|
35
|
+
|
|
36
|
+
## 0.0.11
|
|
37
|
+
|
|
38
|
+
### Patch Changes
|
|
39
|
+
|
|
40
|
+
- Added: shared state between instances
|
|
41
|
+
|
|
42
|
+
## 0.0.10
|
|
43
|
+
|
|
44
|
+
### Patch Changes
|
|
45
|
+
|
|
46
|
+
- Added: embed options
|
|
47
|
+
- Added: returning instance with methods
|
|
48
|
+
|
|
49
|
+
## 0.0.9
|
|
50
|
+
|
|
51
|
+
### Patch Changes
|
|
52
|
+
|
|
53
|
+
- Updating: dependencies
|
|
54
|
+
|
|
55
|
+
## 0.0.8
|
|
56
|
+
|
|
57
|
+
### Patch Changes
|
|
58
|
+
|
|
59
|
+
- Modified: Speech synthesis & recognition, disclaimer, markdown
|
|
60
|
+
|
|
61
|
+
## 0.0.7
|
|
62
|
+
|
|
63
|
+
### Patch Changes
|
|
64
|
+
|
|
65
|
+
- Modified: components dangerouslySetInnerHTML, styles, useLlm status opened with threadId
|
|
66
|
+
|
|
67
|
+
## 0.0.6
|
|
68
|
+
|
|
69
|
+
### Patch Changes
|
|
70
|
+
|
|
71
|
+
- Fixing: threads
|
|
72
|
+
- Modified: MessageService, FormRecap, useLlm
|
|
73
|
+
|
|
74
|
+
## 0.0.5
|
|
75
|
+
|
|
76
|
+
### Patch Changes
|
|
77
|
+
|
|
78
|
+
- Added: declarations
|
|
79
|
+
- Modified: FormRecap, QuickLinks
|
|
80
|
+
|
|
81
|
+
## 0.0.4
|
|
82
|
+
|
|
83
|
+
### Patch Changes
|
|
84
|
+
|
|
85
|
+
- Modified: decorateUrl async behaviour
|
|
86
|
+
|
|
87
|
+
## 0.0.3
|
|
88
|
+
|
|
89
|
+
### Patch Changes
|
|
90
|
+
|
|
91
|
+
- Added: markdown support
|
|
92
|
+
|
|
93
|
+
## 0.0.2
|
|
94
|
+
|
|
95
|
+
### Patch Changes
|
|
96
|
+
|
|
97
|
+
- Added: abort stream
|
|
98
|
+
- Modified: speech, useLlm, message service, canvas, icons
|
|
99
|
+
|
|
100
|
+
## 0.0.1
|
|
101
|
+
|
|
102
|
+
### Patch Changes
|
|
103
|
+
|
|
104
|
+
- Added: first release.
|
package/dist/index.d.ts
CHANGED
|
@@ -1,19 +1,79 @@
|
|
|
1
1
|
import { LlmInstance } from '@websolutespa/bom-mixer-llm';
|
|
2
2
|
|
|
3
|
+
type DeepPartial<T> = T extends object ? {
|
|
4
|
+
[P in keyof T]?: DeepPartial<T[P]>;
|
|
5
|
+
} : T;
|
|
3
6
|
type LlmItem = Record<string, any> & {
|
|
4
7
|
type: string;
|
|
5
8
|
};
|
|
9
|
+
type LlmTheme = any;
|
|
10
|
+
type IMedia = Record<string, unknown> & {
|
|
11
|
+
abstract?: string;
|
|
12
|
+
alt?: string;
|
|
13
|
+
mimeType?: string;
|
|
14
|
+
title?: string;
|
|
15
|
+
url?: string;
|
|
16
|
+
width?: number;
|
|
17
|
+
height?: number;
|
|
18
|
+
};
|
|
19
|
+
type LlmCard = {
|
|
20
|
+
id?: string;
|
|
21
|
+
blockType?: string;
|
|
22
|
+
icon?: IMedia;
|
|
23
|
+
body: string;
|
|
24
|
+
title: string;
|
|
25
|
+
message?: string;
|
|
26
|
+
};
|
|
27
|
+
type LlmSampleInputText = {
|
|
28
|
+
id: string;
|
|
29
|
+
sampleInputText: string;
|
|
30
|
+
};
|
|
31
|
+
type LlmContents = {
|
|
32
|
+
collapsedWelcomeText: string;
|
|
33
|
+
collapsedWelcomeTextCta?: string;
|
|
34
|
+
collapsedWelcomeTextHover?: string;
|
|
35
|
+
extendedWelcomeText: string;
|
|
36
|
+
disclaimer?: string;
|
|
37
|
+
promptPlaceholder?: string;
|
|
38
|
+
layoutBuilder: LlmCard[];
|
|
39
|
+
logo?: IMedia;
|
|
40
|
+
logoMini?: IMedia;
|
|
41
|
+
sampleInputTexts: LlmSampleInputText[];
|
|
42
|
+
shortWelcomeText: string;
|
|
43
|
+
intro?: string;
|
|
44
|
+
customIntro?: string;
|
|
45
|
+
customTheme?: DeepPartial<LlmTheme>;
|
|
46
|
+
};
|
|
47
|
+
type LlmMode = 'site' | 'chat';
|
|
48
|
+
type LlmMockApp = {
|
|
49
|
+
mode: LlmMode;
|
|
50
|
+
contents: LlmContents;
|
|
51
|
+
} | Record<string, {
|
|
52
|
+
mode: LlmMode;
|
|
53
|
+
contents: LlmContents;
|
|
54
|
+
}>;
|
|
55
|
+
type LlmMockThreadMessage = {
|
|
56
|
+
chunks: (string | LlmItem)[];
|
|
57
|
+
role: string;
|
|
58
|
+
};
|
|
59
|
+
type LlmMockThread = LlmMockThreadMessage[] | Record<string, LlmMockThreadMessage[]>;
|
|
60
|
+
type LlmMock = {
|
|
61
|
+
app: LlmMockApp;
|
|
62
|
+
thread: LlmMockThread;
|
|
63
|
+
};
|
|
64
|
+
type LlmTest = undefined | boolean | DeepPartial<LlmMock>;
|
|
6
65
|
type LlmDecorateUrl = (item: LlmItem) => (string | void) | Promise<string | void>;
|
|
7
66
|
type LlmOptions = {
|
|
8
67
|
apiKey: string;
|
|
9
68
|
appKey: string;
|
|
10
69
|
decorateUrl?: LlmDecorateUrl;
|
|
11
|
-
|
|
12
|
-
market?: string;
|
|
13
|
-
test?: boolean;
|
|
70
|
+
test?: LlmTest;
|
|
14
71
|
threadId?: string;
|
|
72
|
+
customTheme?: Partial<LlmTheme>;
|
|
15
73
|
opened?: boolean;
|
|
16
74
|
embedded?: boolean;
|
|
75
|
+
locale?: string;
|
|
76
|
+
market?: string;
|
|
17
77
|
};
|
|
18
78
|
|
|
19
79
|
declare function bomLlm(props: LlmOptions): LlmInstance | undefined;
|