@webless/agent 0.5.0 → 0.6.1

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.
@@ -1,87 +0,0 @@
1
- import * as react from 'react';
2
-
3
- type AgentIndexVersion = "published" | "unpublished";
4
-
5
- type AssistTabVariant = "outline" | "ask" | "fill";
6
- type AssistTabSide = "right" | "left" | "top" | "bottom";
7
- declare function AssistEdgeTab({ variant, side, along, inset, visible, label, customIconUrl, logoUrl, brandColor, brandForeground, borderColor, fontFamily, mobile, surfaceColor, textColor, onOpen, }: {
8
- variant: AssistTabVariant;
9
- side: AssistTabSide;
10
- along: number;
11
- inset: number;
12
- visible: boolean;
13
- label?: string;
14
- customIconUrl?: string;
15
- logoUrl?: string;
16
- brandColor?: string;
17
- brandForeground?: string;
18
- borderColor?: string;
19
- fontFamily?: string;
20
- mobile?: boolean;
21
- surfaceColor?: string;
22
- textColor?: string;
23
- onOpen: () => void;
24
- }): react.JSX.Element;
25
-
26
- type AgentPlacementConfig = {
27
- side: AssistTabSide;
28
- along: number;
29
- inset: number;
30
- variant: AssistTabVariant;
31
- };
32
- declare const DEFAULT_AGENT_PLACEMENT: AgentPlacementConfig;
33
- declare function normalizeAgentPlacement(placement?: Partial<AgentPlacementConfig>): AgentPlacementConfig;
34
-
35
- type AgentMountStrategy = "body" | "selector" | "script-parent";
36
- type AgentTabVariant = AgentPlacementConfig["variant"];
37
- type AgentTabSide = AgentPlacementConfig["side"];
38
- type AgentBrandingConfig = {
39
- agentName?: string;
40
- tabLabel?: string;
41
- tabIconUrl?: string;
42
- logoUrl?: string;
43
- greeting?: string;
44
- composerPlaceholder?: string;
45
- poweredByLabel?: string;
46
- fontFamily?: string;
47
- colors?: {
48
- primary?: string;
49
- primarySoft?: string;
50
- primaryForeground?: string;
51
- surface?: string;
52
- surfaceMuted?: string;
53
- text?: string;
54
- textMuted?: string;
55
- border?: string;
56
- };
57
- };
58
- type AgentTagManifest = {
59
- customerId: string;
60
- indexId: string;
61
- runtimeOrigin?: string;
62
- version?: AgentIndexVersion;
63
- mount?: {
64
- selector?: string;
65
- strategy?: AgentMountStrategy;
66
- };
67
- placement?: Partial<AgentPlacementConfig>;
68
- pageShift?: boolean;
69
- branding?: AgentBrandingConfig;
70
- };
71
-
72
- declare function normalizeAgentTagManifest(manifest: AgentTagManifest): {
73
- branding?: AgentBrandingConfig | undefined;
74
- customerId: string;
75
- indexId: string;
76
- runtimeOrigin: string;
77
- version: AgentIndexVersion;
78
- mount: {
79
- selector: string | undefined;
80
- strategy: AgentMountStrategy;
81
- };
82
- placement: AgentPlacementConfig;
83
- pageShift: boolean;
84
- };
85
- type NormalizedAgentTagManifest = ReturnType<typeof normalizeAgentTagManifest>;
86
-
87
- export { type AgentBrandingConfig as A, DEFAULT_AGENT_PLACEMENT as D, type NormalizedAgentTagManifest as N, type AgentIndexVersion as a, type AgentMountStrategy as b, type AgentPlacementConfig as c, type AgentTabSide as d, type AgentTabVariant as e, type AgentTagManifest as f, AssistEdgeTab as g, type AssistTabSide as h, type AssistTabVariant as i, normalizeAgentTagManifest as j, normalizeAgentPlacement as n };