@pluno/product-agent-web 0.1.110 → 0.1.112
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/product-agent-widget.js +1876 -2014
- package/dist/shareCard.d.ts +2 -7
- package/dist/widget.d.ts +1 -7
- package/package.json +1 -1
package/dist/shareCard.d.ts
CHANGED
|
@@ -14,16 +14,11 @@ export type ProductAgentShareCandidate = {
|
|
|
14
14
|
userPrompt: string;
|
|
15
15
|
assistantAnswer: string;
|
|
16
16
|
};
|
|
17
|
-
export type
|
|
18
|
-
screenshotDataUrl: string;
|
|
19
|
-
linkedinPost: string;
|
|
20
|
-
xPost: string;
|
|
21
|
-
};
|
|
17
|
+
export type ProductAgentSharePromptVariant = "referral" | "social";
|
|
22
18
|
export declare const SUGGEST_SHARE_ON_SOCIALS_TOOL_NAME = "suggest_share_on_socials";
|
|
23
19
|
export declare function findShareCandidateForAssistantMessage(messages: ProductAgentShareMessage[], assistantMessageId: string): ProductAgentShareCandidate | null;
|
|
24
20
|
export declare function findSuggestedShareCandidate(items: ProductAgentShareSessionItem[]): ProductAgentShareCandidate | null;
|
|
25
21
|
export declare function findSuggestedShareCandidateForMessages(messages: ProductAgentShareMessage[]): ProductAgentShareCandidate | null;
|
|
26
|
-
export declare function
|
|
27
|
-
export declare function downloadScreenshotImage(dataUrl: string): Promise<void>;
|
|
22
|
+
export declare function getSharePromptVariant(candidateId: string): ProductAgentSharePromptVariant;
|
|
28
23
|
export declare function redactPublicShareText(text: string): string;
|
|
29
24
|
export declare function stripMarkdownToPlainText(text: string): string;
|
package/dist/widget.d.ts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { PlunoProductAgent, type ProductAgentAttachment, type ProductAgentIntegrationAuthRequest, type ProductAgentInitOptions } from "./index";
|
|
2
|
-
import { type ProductAgentShareCandidate } from "./shareCard";
|
|
3
2
|
import { type ActiveUsersCounterValue } from "./activeUsersCounter";
|
|
4
3
|
export type ProductAgentWidgetOptions = {
|
|
5
4
|
layout?: "floating" | "page";
|
|
@@ -33,7 +32,7 @@ export type ProductAgentWidgetOptions = {
|
|
|
33
32
|
signupButtonLabel?: string;
|
|
34
33
|
signupUrl?: string;
|
|
35
34
|
onSignupClick?: () => void;
|
|
36
|
-
|
|
35
|
+
referralLinkLoader?: () => Promise<string>;
|
|
37
36
|
billingStatus?: ProductAgentWidgetBillingStatus | null;
|
|
38
37
|
billingStatusLoader?: () => Promise<ProductAgentWidgetBillingStatus | null>;
|
|
39
38
|
activeUsersLoader?: () => Promise<ActiveUsersCounterValue>;
|
|
@@ -99,11 +98,6 @@ export type ProductAgentWidgetHandle = {
|
|
|
99
98
|
updateMorningReport: (morningReport: ProductAgentWidgetMorningReport | null | undefined) => void;
|
|
100
99
|
destroy: () => void;
|
|
101
100
|
};
|
|
102
|
-
type EmbeddedSocialPostDraft = {
|
|
103
|
-
linkedinPost: string;
|
|
104
|
-
xPost: string;
|
|
105
|
-
screenshotDataUrl?: string;
|
|
106
|
-
};
|
|
107
101
|
export declare function createProductAgentPreviewBridgeWebSocketFactory(channelId: string): ProductAgentInitOptions["webSocketFactory"];
|
|
108
102
|
export declare function mountPlunoProductAgentWidget(options?: ProductAgentWidgetOptions): Promise<ProductAgentWidgetHandle>;
|
|
109
103
|
export {};
|
package/package.json
CHANGED