@webless/agent 0.12.0 → 0.12.1

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/embed.cjs CHANGED
@@ -8008,6 +8008,7 @@ function AgentWidget({
8008
8008
  previewBuildId,
8009
8009
  version,
8010
8010
  runtimeOrigin,
8011
+ handoffEnabled = false,
8011
8012
  placement: placementInput,
8012
8013
  defaultCollapsed = true,
8013
8014
  pageShift = true,
@@ -8034,6 +8035,7 @@ function AgentWidget({
8034
8035
  });
8035
8036
  const {
8036
8037
  state,
8038
+ handoff,
8037
8039
  reset,
8038
8040
  retry,
8039
8041
  regenerate,
@@ -8043,6 +8045,7 @@ function AgentWidget({
8043
8045
  visitorSessionId,
8044
8046
  sessionId
8045
8047
  } = useAgentChat({
8048
+ handoffEnabled,
8046
8049
  customerId,
8047
8050
  getUnpublishedPreviewGrant,
8048
8051
  indexId,
@@ -8169,6 +8172,7 @@ function AgentWidget({
8169
8172
  answerReceipt: branding?.answerReceipt,
8170
8173
  readAloud: branding?.readAloud,
8171
8174
  state,
8175
+ handoff,
8172
8176
  mobileFullscreen: isMobile && !railCollapsed,
8173
8177
  expanded: railExpanded,
8174
8178
  onCollapse: !isMobile ? () => setRailCollapsed(true) : void 0,
@@ -8244,6 +8248,7 @@ function AgentWidget2({
8244
8248
  customerId: manifest.customerId,
8245
8249
  version: manifest.version,
8246
8250
  runtimeOrigin: manifest.runtimeOrigin,
8251
+ handoffEnabled: manifest.handoffEnabled,
8247
8252
  previewBuildId: manifest.version === "unpublished" ? readUnpublishedPreviewBuildId() : void 0,
8248
8253
  placement: manifest.placement,
8249
8254
  pageShift: manifest.pageShift,
@@ -8285,6 +8290,7 @@ function normalizeAgentTagManifest(manifest) {
8285
8290
  customerId,
8286
8291
  indexId,
8287
8292
  runtimeOrigin: runtime.origin,
8293
+ handoffEnabled: manifest.handoffEnabled === true,
8288
8294
  version,
8289
8295
  mount: {
8290
8296
  selector: manifest.mount?.selector?.trim(),