@webless/agent 0.14.1 → 0.14.2
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/README.md +3 -3
- package/dist/{chunk-ZHEXHTHJ.js → chunk-KUNT2X4I.js} +5 -10
- package/dist/chunk-KUNT2X4I.js.map +1 -0
- package/dist/embed.cjs +4 -9
- package/dist/embed.cjs.map +1 -1
- package/dist/embed.css +58 -5
- package/dist/embed.css.map +1 -1
- package/dist/embed.js +1 -1
- package/dist/react.cjs +4 -9
- package/dist/react.cjs.map +1 -1
- package/dist/react.css +58 -5
- package/dist/react.css.map +1 -1
- package/dist/react.js +1 -1
- package/package.json +1 -1
- package/dist/chunk-ZHEXHTHJ.js.map +0 -1
package/README.md
CHANGED
|
@@ -31,10 +31,10 @@ Paste it into your site's HTML, before the closing `</body>` tag. That's the ful
|
|
|
31
31
|
- A collapsible Agent panel on your site.
|
|
32
32
|
- Edge tab launcher, positioned where you configure it in Agent Studio.
|
|
33
33
|
- Session continuity for returning visitors.
|
|
34
|
-
- Search & Discovery answers offer **Explore more**, expanding an inline panel beneath the answer with a
|
|
34
|
+
- Search & Discovery answers offer **Explore more**, expanding an inline panel beneath the answer with a **Related Resources** reference list and an **Ask Next** question section. References stay attached to their answer in browser session history, open in new tabs, and stay readable even without a usable web URL.
|
|
35
35
|
- Set `branding.showLearnMore` and `branding.showSources` independently to `false` to hide these sections in an embed. Both default to enabled. React `AgentRail` accepts the same props.
|
|
36
|
-
- **
|
|
37
|
-
- Answer actions — call-to-action links, **Talk to
|
|
36
|
+
- **Ask Next** lists up to three distinct suggested questions for the latest completed answer inside the Explore more panel. Selecting a question starts the next chat turn. Suggestions are hidden while a turn is running or a human owns the conversation, and are restored with the answer after reload.
|
|
37
|
+
- Answer actions — call-to-action links, **Talk to an Expert** when handoff is available, and a skipped contact-form reminder — sit as pill badges above the composer instead of competing buttons beneath the answer.
|
|
38
38
|
- Connected actions show task-focused progress and confirmed results. Receipts stay with the answer in the conversation.
|
|
39
39
|
- Long answers keep their beginning visible; source links are collapsed until opened.
|
|
40
40
|
- When a question needs location, the agent can pause and show a precise-location consent toggle above the composer. Location is shared only after browser permission; visitors can continue without it.
|
|
@@ -5322,16 +5322,11 @@ function ExploreMore({
|
|
|
5322
5322
|
if (!sources.length && !questions.length) return null;
|
|
5323
5323
|
return /* @__PURE__ */ jsxs4("div", { className: "explore-more", children: [
|
|
5324
5324
|
sources.length > 0 ? /* @__PURE__ */ jsxs4("div", { className: "explore-more__section", children: [
|
|
5325
|
-
/* @__PURE__ */
|
|
5326
|
-
"Based on ",
|
|
5327
|
-
sources.length,
|
|
5328
|
-
" ",
|
|
5329
|
-
sources.length === 1 ? "page" : "pages"
|
|
5330
|
-
] }),
|
|
5325
|
+
/* @__PURE__ */ jsx4("p", { className: "explore-more__label", children: "Related Resources" }),
|
|
5331
5326
|
/* @__PURE__ */ jsx4(SearchReferences, { results, mode: "sources" })
|
|
5332
5327
|
] }) : null,
|
|
5333
5328
|
questions.length > 0 ? /* @__PURE__ */ jsxs4("div", { className: "explore-more__section", children: [
|
|
5334
|
-
/* @__PURE__ */ jsx4("p", { className: "explore-more__label", children: "
|
|
5329
|
+
/* @__PURE__ */ jsx4("p", { className: "explore-more__label", children: "Ask Next" }),
|
|
5335
5330
|
/* @__PURE__ */ jsx4("ul", { className: "explore-more__questions", children: questions.map((question) => /* @__PURE__ */ jsx4("li", { children: /* @__PURE__ */ jsxs4(
|
|
5336
5331
|
"button",
|
|
5337
5332
|
{
|
|
@@ -5683,7 +5678,7 @@ function Composer({
|
|
|
5683
5678
|
disabled,
|
|
5684
5679
|
title: "Share your details and we'll reach out shortly",
|
|
5685
5680
|
onClick: () => setDraft((current) => ({ ...current, expanded: true })),
|
|
5686
|
-
children: "
|
|
5681
|
+
children: "Request a Follow-Up"
|
|
5687
5682
|
}
|
|
5688
5683
|
) : null
|
|
5689
5684
|
] }) : null,
|
|
@@ -6213,7 +6208,7 @@ var BRAND_LOGO_LAYOUT = {
|
|
|
6213
6208
|
header: { maxHeight: 20, maxWidth: 96, square: 24 },
|
|
6214
6209
|
message: { maxHeight: 18, maxWidth: 80, square: 22 },
|
|
6215
6210
|
/** Bottom/mobile launcher pill orb — keep in sync with AssistEdgeTab chip CSS. */
|
|
6216
|
-
launcher: { maxHeight:
|
|
6211
|
+
launcher: { maxHeight: 20, maxWidth: 80, square: 22 }
|
|
6217
6212
|
};
|
|
6218
6213
|
function isWideBrandLogo(naturalWidth, naturalHeight) {
|
|
6219
6214
|
return naturalWidth > naturalHeight * 1.4;
|
|
@@ -8786,4 +8781,4 @@ export {
|
|
|
8786
8781
|
sendAgentAnswerFeedback,
|
|
8787
8782
|
AgentWidget
|
|
8788
8783
|
};
|
|
8789
|
-
//# sourceMappingURL=chunk-
|
|
8784
|
+
//# sourceMappingURL=chunk-KUNT2X4I.js.map
|