@webless/agent 0.14.2 → 0.14.3

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.
@@ -8532,6 +8532,7 @@ function AgentWidget({
8532
8532
  runtimeOrigin,
8533
8533
  handoffEnabled = false,
8534
8534
  placement: placementInput,
8535
+ panelPresentation = "drawer",
8535
8536
  defaultCollapsed = true,
8536
8537
  pageShift = true,
8537
8538
  registerPanelController = false,
@@ -8542,11 +8543,12 @@ function AgentWidget({
8542
8543
  }) {
8543
8544
  const isMobile = useIsMobile();
8544
8545
  const placement = normalizeAgentPlacement(placementInput);
8546
+ const overlayPopup = panelPresentation === "popup" && !isMobile;
8545
8547
  const railSlotRef = useRef9(null);
8546
8548
  const [railCollapsed, setRailCollapsed] = useState15(defaultCollapsed);
8547
8549
  const [railExpanded, setRailExpanded] = useState15(false);
8548
8550
  const pageShiftActive = shouldApplyPageShift({
8549
- pageShift,
8551
+ pageShift: pageShift && !overlayPopup,
8550
8552
  isMobile,
8551
8553
  railCollapsed,
8552
8554
  railExpanded
@@ -8672,7 +8674,7 @@ function AgentWidget({
8672
8674
  /* @__PURE__ */ jsx21(
8673
8675
  "div",
8674
8676
  {
8675
- className: `webless-agent-root__shell${railCollapsed ? " webless-agent-root__shell--collapsed" : ""}${railExpanded ? " webless-agent-root__shell--expanded" : ""}`,
8677
+ className: `webless-agent-root__shell${railCollapsed ? " webless-agent-root__shell--collapsed" : ""}${railExpanded ? " webless-agent-root__shell--expanded" : ""}${overlayPopup ? " webless-agent-root__shell--popup" : ""}`,
8676
8678
  children: /* @__PURE__ */ jsx21(
8677
8679
  "div",
8678
8680
  {
@@ -8781,4 +8783,4 @@ export {
8781
8783
  sendAgentAnswerFeedback,
8782
8784
  AgentWidget
8783
8785
  };
8784
- //# sourceMappingURL=chunk-KUNT2X4I.js.map
8786
+ //# sourceMappingURL=chunk-RUZGX75D.js.map