@pluno/product-agent-web 0.1.179 → 0.1.181
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/index.d.ts +6 -9
- package/dist/modelSelection.d.ts +35 -0
- package/dist/product-agent-sdk.js +999 -986
- package/dist/product-agent-widget.js +3130 -2980
- package/dist/transportIdentity.d.ts +2 -1
- package/dist/widget.d.ts +5 -1
- package/package.json +1 -1
|
@@ -19,8 +19,9 @@ type AcquireTransportIdentityOptions = {
|
|
|
19
19
|
channel: TransportIdentityChannel;
|
|
20
20
|
randomUUID: () => string;
|
|
21
21
|
settle: () => Promise<void>;
|
|
22
|
+
skipStoredIdentityCollisionCheck?: boolean;
|
|
22
23
|
};
|
|
23
24
|
export declare function acquireTransportIdentity(options?: AcquireTransportIdentityOptions): Promise<TransportIdentityLease>;
|
|
24
|
-
export declare function acquireBrowserTransportIdentity(): Promise<TransportIdentityLease>;
|
|
25
|
+
export declare function acquireBrowserTransportIdentity(skipStoredIdentityCollisionCheck?: boolean): Promise<TransportIdentityLease>;
|
|
25
26
|
export declare function createLocalStorageTransportIdentityChannel(): TransportIdentityChannel;
|
|
26
27
|
export {};
|
package/dist/widget.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { PlunoProductAgent, type ProductAgentAttachment, type ProductAgentIntegrationAuthRequest, type ProductAgentPersonalChannelConnectionRequest, type ProductAgentInitOptions, type ProductAgentWidgetLifecycleTrigger } from "./index";
|
|
1
|
+
import { PlunoProductAgent, type ProductAgentAttachment, type ProductAgentIntegrationAuthRequest, type ProductAgentPersonalChannelConnectionRequest, type ProductAgentInitOptions, type ProductAgentModel, type ProductAgentWidgetLifecycleTrigger } from "./index";
|
|
2
|
+
import { type PersonalProductAgentModel } from "./modelSelection";
|
|
2
3
|
import { type ActiveUsersCounterValue } from "./activeUsersCounter";
|
|
3
4
|
export type ProductAgentWidgetOptions = {
|
|
4
5
|
layout?: "floating" | "page";
|
|
@@ -9,6 +10,8 @@ export type ProductAgentWidgetOptions = {
|
|
|
9
10
|
backendUrl?: string;
|
|
10
11
|
metadata?: Record<string, unknown> | (() => Record<string, unknown> | undefined);
|
|
11
12
|
productVariant?: ProductAgentInitOptions["productVariant"];
|
|
13
|
+
model?: ProductAgentModel;
|
|
14
|
+
onModelChange?: (model: PersonalProductAgentModel) => void | Promise<void>;
|
|
12
15
|
entrySurface?: ProductAgentInitOptions["entrySurface"];
|
|
13
16
|
launcherLabel?: string;
|
|
14
17
|
accentColor?: string;
|
|
@@ -110,6 +113,7 @@ export type ProductAgentWidgetHandle = {
|
|
|
110
113
|
}) => void;
|
|
111
114
|
updateAppearance: (appearance: Pick<ProductAgentWidgetOptions, "accentColor" | "colorScheme" | "fontFamily" | "scribbleStyle">) => void;
|
|
112
115
|
updateBillingStatus: (billingStatus: ProductAgentWidgetBillingStatus | null | undefined) => void;
|
|
116
|
+
updateModel: (model: PersonalProductAgentModel) => void;
|
|
113
117
|
updateAuthGate: (options: Pick<ProductAgentWidgetOptions, "loginRequired" | "loginButtonLabel" | "loginUrl" | "signupRequired" | "signupButtonLabel" | "signupUrl">) => void;
|
|
114
118
|
openPanel: (initialValueOrOptions?: string | {
|
|
115
119
|
focusComposer?: boolean;
|
package/package.json
CHANGED