Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

The release version comes from `package.json`. Keep the newest dated entry first.

## 0.5.0 — 2026-11-19

- Add `search-questions` attribute and `srpQuestions` config field for rendering static opener pills on SRP pages, separate from `category-questions` used on PLP.

## 0.4.0 — 2026-11-17

- Add PLP and SRP page type support for commerce_agent_context in both inline and handoff modes.
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "inline-agent-widget",
"version": "0.4.0",
"version": "0.5.0",
"description": "A bare-minimum, embeddable inline chat widget for Salesforce Agentforce (SCRT2 Messaging for In-App and Web). Renders agent replies as sanitized markdown inside a Shadow DOM.",
"type": "module",
"main": "./dist/inline-agent-widget.umd.js",
Expand Down
2 changes: 1 addition & 1 deletion src/ShopperAgentShim.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ function resolvePills(
case "plp":
return config.categoryQuestions ?? [];
case "srp":
return [];
return config.srpQuestions ?? [];
case "pdp":
default:
return config.pdpQuestions ?? [];
Expand Down
1 change: 1 addition & 0 deletions src/custom-element.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ function readConfig(el: HTMLElement): WidgetConfig {
categoryName: attr("category-name"),
categoryQuestions: parsePdpQuestions(attr("category-questions")),
searchQuery: attr("search-query"),
srpQuestions: parsePdpQuestions(attr("search-questions")),
};
}

Expand Down
3 changes: 3 additions & 0 deletions src/provider/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,9 @@ export interface WidgetConfig {
/** Search query string for SRP pages (e.g. "waterproof jackets"). */
searchQuery?: string;

/** Static opener questions for SRP pages, rendered as tappable pills. */
srpQuestions?: string[];

/**
* Current PDP product name, used to template the InputBar placeholder as
* `"Ask me anything about <productName>"`. When unset, the InputBar falls
Expand Down
Loading