@pluno/product-agent-web 0.1.179 → 0.1.180

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/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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pluno/product-agent-web",
3
- "version": "0.1.179",
3
+ "version": "0.1.180",
4
4
  "description": "Browser SDK and default widget for embedding Pluno Product Agent into customer web apps.",
5
5
  "license": "Apache-2.0",
6
6
  "type": "module",