@saar-ai/web-widget 0.9.0 → 0.11.0

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.
Files changed (78) hide show
  1. package/dist/adopt-stylesheet.d.ts +11 -0
  2. package/dist/adopt-stylesheet.d.ts.map +1 -0
  3. package/dist/chunks/{chat-DAgqVvIS.js → chat-CU9VPqVO.js} +112 -16
  4. package/dist/chunks/{host-widget-CTK7C95y.js → host-widget-BZKCb7yR.js} +7752 -989
  5. package/dist/chunks/{schemas-D-uDc-9q.js → schemas-YN3wGSGZ.js} +7 -4
  6. package/dist/chunks/{telemetry-DQUulENJ.js → telemetry-B1xBTk1s.js} +1 -1
  7. package/dist/concierge-shell.css +2 -0
  8. package/dist/concierge-state.d.ts +234 -0
  9. package/dist/concierge-state.d.ts.map +1 -0
  10. package/dist/dock/dock-drag.d.ts +5 -5
  11. package/dist/dock/dock-drag.d.ts.map +1 -1
  12. package/dist/dock/dock-float.d.ts +116 -0
  13. package/dist/dock/dock-float.d.ts.map +1 -0
  14. package/dist/dock/dock-motion.d.ts +61 -6
  15. package/dist/dock/dock-motion.d.ts.map +1 -1
  16. package/dist/dock/dock-pill.d.ts +18 -1
  17. package/dist/dock/dock-pill.d.ts.map +1 -1
  18. package/dist/dock/dock-renderer.d.ts +3 -0
  19. package/dist/dock/dock-renderer.d.ts.map +1 -0
  20. package/dist/dock/dock-row.d.ts +128 -10
  21. package/dist/dock/dock-row.d.ts.map +1 -1
  22. package/dist/dock/dock-sheet.d.ts.map +1 -1
  23. package/dist/dock/dock-state.d.ts +115 -135
  24. package/dist/dock/dock-state.d.ts.map +1 -1
  25. package/dist/dock/dock.d.ts +103 -24
  26. package/dist/dock/dock.d.ts.map +1 -1
  27. package/dist/dock/geometry.d.ts +129 -3
  28. package/dist/dock/geometry.d.ts.map +1 -1
  29. package/dist/generated/concierge-shell-css.d.ts +2 -0
  30. package/dist/generated/concierge-shell-css.d.ts.map +1 -0
  31. package/dist/generated/widget-css.d.ts.map +1 -1
  32. package/dist/host-widget.d.ts +84 -2
  33. package/dist/host-widget.d.ts.map +1 -1
  34. package/dist/index.d.ts +9 -1
  35. package/dist/index.d.ts.map +1 -1
  36. package/dist/index.js +206 -4024
  37. package/dist/messages.d.ts +88 -1
  38. package/dist/messages.d.ts.map +1 -1
  39. package/dist/mount.d.ts +4 -5
  40. package/dist/mount.d.ts.map +1 -1
  41. package/dist/next/index.js +1 -1
  42. package/dist/renderers.d.ts +3 -0
  43. package/dist/renderers.d.ts.map +1 -0
  44. package/dist/rope-knot.d.ts +67 -0
  45. package/dist/rope-knot.d.ts.map +1 -1
  46. package/dist/styles.d.ts +1 -0
  47. package/dist/styles.d.ts.map +1 -1
  48. package/dist/theme/derive.d.ts +1 -1
  49. package/dist/theme/derive.d.ts.map +1 -1
  50. package/dist/use-chat-session.d.ts +33 -1
  51. package/dist/use-chat-session.d.ts.map +1 -1
  52. package/dist/use-voice-session.d.ts +2 -0
  53. package/dist/use-voice-session.d.ts.map +1 -1
  54. package/dist/voice-widget.d.ts +114 -3
  55. package/dist/voice-widget.d.ts.map +1 -1
  56. package/dist/widget/concierge-launcher.d.ts +53 -0
  57. package/dist/widget/concierge-launcher.d.ts.map +1 -0
  58. package/dist/widget/concierge-shell.d.ts +255 -0
  59. package/dist/widget/concierge-shell.d.ts.map +1 -0
  60. package/dist/widget/position.d.ts +65 -0
  61. package/dist/widget/position.d.ts.map +1 -0
  62. package/dist/widget/shell-renderer.d.ts +3 -0
  63. package/dist/widget/shell-renderer.d.ts.map +1 -0
  64. package/dist/widget/transcript-geometry.d.ts +220 -0
  65. package/dist/widget/transcript-geometry.d.ts.map +1 -0
  66. package/dist/widget/widget-view.d.ts +74 -0
  67. package/dist/widget/widget-view.d.ts.map +1 -0
  68. package/dist/widget-cards.d.ts +21 -1
  69. package/dist/widget-cards.d.ts.map +1 -1
  70. package/dist/widget-cart-summary.d.ts +10 -1
  71. package/dist/widget-cart-summary.d.ts.map +1 -1
  72. package/dist/widget.css +1 -1
  73. package/package.json +7 -3
  74. package/src/styles/concierge-shell-entry.css +42 -0
  75. package/src/styles/concierge.css +528 -65
  76. package/src/styles/dock-surface.css +284 -0
  77. package/src/styles/tokens.css +22 -6
  78. package/src/styles/widget-entry.css +42 -1
@@ -562,7 +562,7 @@ var guid = /^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-
562
562
  /** Returns a regex for validating an RFC 9562/4122 UUID.
563
563
  *
564
564
  * @param version Optionally specify a version 1-8. If no version is specified, all versions are supported. */
565
- var uuid = (version) => {
565
+ var uuid$1 = (version) => {
566
566
  if (!version) return /^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/;
567
567
  return new RegExp(`^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-${version}[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$`);
568
568
  };
@@ -1132,8 +1132,8 @@ var $ZodUUID = /*@__PURE__*/ $constructor("$ZodUUID", (inst, def) => {
1132
1132
  v8: 8
1133
1133
  }[def.version];
1134
1134
  if (v === void 0) throw new Error(`Invalid UUID version: "${def.version}"`);
1135
- def.pattern ?? (def.pattern = uuid(v));
1136
- } else def.pattern ?? (def.pattern = uuid());
1135
+ def.pattern ?? (def.pattern = uuid$1(v));
1136
+ } else def.pattern ?? (def.pattern = uuid$1());
1137
1137
  $ZodStringFormat.init(inst, def);
1138
1138
  });
1139
1139
  var $ZodEmail = /*@__PURE__*/ $constructor("$ZodEmail", (inst, def) => {
@@ -3732,6 +3732,9 @@ var ZodUUID = /*@__PURE__*/ $constructor("ZodUUID", (inst, def) => {
3732
3732
  $ZodUUID.init(inst, def);
3733
3733
  ZodStringFormat.init(inst, def);
3734
3734
  });
3735
+ function uuid(params) {
3736
+ return /* @__PURE__ */ _uuid(ZodUUID, params);
3737
+ }
3735
3738
  var ZodURL = /*@__PURE__*/ $constructor("ZodURL", (inst, def) => {
3736
3739
  $ZodURL.init(inst, def);
3737
3740
  ZodStringFormat.init(inst, def);
@@ -4283,4 +4286,4 @@ function superRefine(fn, params) {
4283
4286
  return /* @__PURE__ */ _superRefine(fn, params);
4284
4287
  }
4285
4288
  //#endregion
4286
- export { httpUrl as a, number as c, string as d, discriminatedUnion as i, object as l, array as n, literal as o, boolean as r, looseObject as s, _enum as t, record as u };
4289
+ export { httpUrl as a, number as c, string as d, uuid as f, discriminatedUnion as i, object as l, array as n, literal as o, boolean as r, looseObject as s, _enum as t, record as u };
@@ -1,4 +1,4 @@
1
- import { c as number, d as string, i as discriminatedUnion, l as object, o as literal, r as boolean, s as looseObject, t as _enum } from "./schemas-D-uDc-9q.js";
1
+ import { c as number, d as string, i as discriminatedUnion, l as object, o as literal, r as boolean, s as looseObject, t as _enum } from "./schemas-YN3wGSGZ.js";
2
2
  //#region ../widget-protocol/dist/telemetry.js
3
3
  /**
4
4
  * The voice call's wire contract, as the CALLER's browser sees it: what the
@@ -0,0 +1,2 @@
1
+ /*! tailwindcss v4.3.3 | MIT License | https://tailwindcss.com */
2
+ @layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-translate-x:0;--tw-translate-y:0;--tw-translate-z:0;--tw-scale-x:1;--tw-scale-y:1;--tw-scale-z:1;--tw-rotate-x:initial;--tw-rotate-y:initial;--tw-rotate-z:initial;--tw-skew-x:initial;--tw-skew-y:initial;--tw-scroll-snap-strictness:proximity;--tw-space-y-reverse:0;--tw-border-style:solid;--tw-gradient-position:initial;--tw-gradient-from:#0000;--tw-gradient-via:#0000;--tw-gradient-to:#0000;--tw-gradient-stops:initial;--tw-gradient-via-stops:initial;--tw-gradient-from-position:0%;--tw-gradient-via-position:50%;--tw-gradient-to-position:100%;--tw-leading:initial;--tw-font-weight:initial;--tw-tracking:initial;--tw-ordinal:initial;--tw-slashed-zero:initial;--tw-numeric-figure:initial;--tw-numeric-spacing:initial;--tw-numeric-fraction:initial;--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000;--tw-outline-style:solid;--tw-blur:initial;--tw-brightness:initial;--tw-contrast:initial;--tw-grayscale:initial;--tw-hue-rotate:initial;--tw-invert:initial;--tw-opacity:initial;--tw-saturate:initial;--tw-sepia:initial;--tw-drop-shadow:initial;--tw-drop-shadow-color:initial;--tw-drop-shadow-alpha:100%;--tw-drop-shadow-size:initial;--tw-backdrop-blur:initial;--tw-backdrop-brightness:initial;--tw-backdrop-contrast:initial;--tw-backdrop-grayscale:initial;--tw-backdrop-hue-rotate:initial;--tw-backdrop-invert:initial;--tw-backdrop-opacity:initial;--tw-backdrop-saturate:initial;--tw-backdrop-sepia:initial;--tw-duration:initial;--tw-ease:initial}}}@layer theme{:root,:host{--font-sans:-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";--font-mono:ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;--color-black:#000;--color-white:#fff;--spacing:.25rem;--text-xs:.75rem;--text-xs--line-height:calc(1 / .75);--text-sm:.875rem;--text-sm--line-height:calc(1.25 / .875);--font-weight-medium:500;--font-weight-semibold:600;--tracking-tight:-.025em;--tracking-wide:.025em;--tracking-wider:.05em;--leading-snug:1.375;--radius-lg:.5rem;--radius-xl:.75rem;--radius-2xl:1rem;--radius-3xl:1.5rem;--ease-out:cubic-bezier(0, 0, .2, 1);--animate-spin:spin 1s linear infinite;--animate-pulse:pulse 2s cubic-bezier(.4, 0, .6, 1) infinite;--blur-md:12px;--blur-xl:24px;--blur-2xl:40px;--default-transition-duration:.15s;--default-transition-timing-function:cubic-bezier(.4, 0, .2, 1);--default-font-family:var(--font-sans);--default-mono-font-family:var(--font-mono)}}@layer base{*,:after,:before,::backdrop{box-sizing:border-box;border:0 solid;margin:0;padding:0}::file-selector-button{box-sizing:border-box;border:0 solid;margin:0;padding:0}html,:host{-webkit-text-size-adjust:100%;tab-size:4;line-height:1.5;font-family:var(--default-font-family,-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji");font-feature-settings:var(--default-font-feature-settings,normal);font-variation-settings:var(--default-font-variation-settings,normal);-webkit-tap-highlight-color:transparent}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:var(--default-mono-font-family,ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace);font-feature-settings:var(--default-mono-font-feature-settings,normal);font-variation-settings:var(--default-mono-font-variation-settings,normal);font-size:1em}small{font-size:80%}sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}:-moz-focusring:where(:not(iframe)){outline:auto}progress{vertical-align:baseline}summary{display:list-item}ol,ul,menu{list-style:none}img,svg,video,canvas,audio,iframe,embed,object{vertical-align:middle;display:block}img,video{max-width:100%;height:auto}button,input,select,optgroup,textarea{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}::file-selector-button{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}:where(select:is([multiple],[size])) optgroup{font-weight:bolder}:where(select:is([multiple],[size])) optgroup option{padding-inline-start:20px}::file-selector-button{margin-inline-end:4px}::placeholder{opacity:1}@supports (not ((-webkit-appearance:-apple-pay-button))) or (contain-intrinsic-size:1px){::placeholder{color:currentColor}@supports (color:color-mix(in lab, red, red)){::placeholder{color:color-mix(in oklab, currentcolor 50%, transparent)}}}textarea{resize:vertical}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-date-and-time-value{min-height:1lh;text-align:inherit}::-webkit-datetime-edit{display:inline-flex}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-datetime-edit{padding-block:0}::-webkit-datetime-edit-year-field{padding-block:0}::-webkit-datetime-edit-month-field{padding-block:0}::-webkit-datetime-edit-day-field{padding-block:0}::-webkit-datetime-edit-hour-field{padding-block:0}::-webkit-datetime-edit-minute-field{padding-block:0}::-webkit-datetime-edit-second-field{padding-block:0}::-webkit-datetime-edit-millisecond-field{padding-block:0}::-webkit-datetime-edit-meridiem-field{padding-block:0}::-webkit-calendar-picker-indicator{line-height:1}:-moz-ui-invalid{box-shadow:none}button,input:where([type=button],[type=reset],[type=submit]){appearance:button}::file-selector-button{appearance:button}::-webkit-inner-spin-button{height:auto}::-webkit-outer-spin-button{height:auto}[hidden]:where(:not([hidden=until-found])){display:none!important}}@layer components;@layer utilities{.\[container-type\:size\]{container-type:size}.pointer-events-auto{pointer-events:auto}.pointer-events-none{pointer-events:none}.collapse{visibility:collapse}.invisible{visibility:hidden}.visible{visibility:visible}.sr-only{clip-path:inset(50%);white-space:nowrap;border-width:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.absolute{position:absolute}.fixed{position:fixed}.relative{position:relative}.static{position:static}.-inset-4{inset:calc(var(--spacing) * -4)}.inset-0{inset:0}.inset-1{inset:var(--spacing)}.inset-2{inset:calc(var(--spacing) * 2)}.inset-x-0{inset-inline:0}.start-1\/2{inset-inline-start:50%}.end-2{inset-inline-end:calc(var(--spacing) * 2)}.end-5{inset-inline-end:calc(var(--spacing) * 5)}.end-\[8\%\]{inset-inline-end:8%}.-top-16{top:calc(var(--spacing) * -16)}.top-1{top:var(--spacing)}.top-1\.5{top:calc(var(--spacing) * 1.5)}.top-1\/2{top:50%}.top-4{top:calc(var(--spacing) * 4)}.top-5{top:calc(var(--spacing) * 5)}.top-\[8\%\]{top:8%}.top-full{top:100%}.-right-10{right:calc(var(--spacing) * -10)}.right-1\.5{right:calc(var(--spacing) * 1.5)}.right-4{right:calc(var(--spacing) * 4)}.-bottom-20{bottom:calc(var(--spacing) * -20)}.bottom-0{bottom:0}.bottom-1\.5{bottom:calc(var(--spacing) * 1.5)}.bottom-4{bottom:calc(var(--spacing) * 4)}.-left-12{left:calc(var(--spacing) * -12)}.left-1\.5{left:calc(var(--spacing) * 1.5)}.left-1\/2{left:50%}.left-4{left:calc(var(--spacing) * 4)}.z-10{z-index:10}.z-20{z-index:20}.z-40{z-index:40}.z-50{z-index:50}.z-\[55\]{z-index:55}.container{width:100%}@media (min-width:40rem){.container{max-width:40rem}}@media (min-width:48rem){.container{max-width:48rem}}@media (min-width:64rem){.container{max-width:64rem}}@media (min-width:80rem){.container{max-width:80rem}}@media (min-width:96rem){.container{max-width:96rem}}.my-1{margin-block:var(--spacing)}.-mt-0\.5{margin-top:calc(var(--spacing) * -.5)}.mt-1{margin-top:var(--spacing)}.mt-2{margin-top:calc(var(--spacing) * 2)}.mt-3{margin-top:calc(var(--spacing) * 3)}.mt-\[104px\]{margin-top:104px}.mb-2{margin-bottom:calc(var(--spacing) * 2)}.-ml-0\.5{margin-left:calc(var(--spacing) * -.5)}.line-clamp-2{-webkit-line-clamp:2;-webkit-box-orient:vertical;display:-webkit-box;overflow:hidden}.block{display:block}.contents{display:contents}.flex{display:flex}.grid{display:grid}.hidden{display:none}.inline{display:inline}.inline-flex{display:inline-flex}.table{display:table}.aspect-\[5\/8\]{aspect-ratio:5/8}.aspect-square{aspect-ratio:1}.size-1\.5{width:calc(var(--spacing) * 1.5);height:calc(var(--spacing) * 1.5)}.size-2\.5{width:calc(var(--spacing) * 2.5);height:calc(var(--spacing) * 2.5)}.size-4{width:calc(var(--spacing) * 4);height:calc(var(--spacing) * 4)}.size-5{width:calc(var(--spacing) * 5);height:calc(var(--spacing) * 5)}.size-9{width:calc(var(--spacing) * 9);height:calc(var(--spacing) * 9)}.size-10{width:calc(var(--spacing) * 10);height:calc(var(--spacing) * 10)}.size-12{width:calc(var(--spacing) * 12);height:calc(var(--spacing) * 12)}.size-16{width:calc(var(--spacing) * 16);height:calc(var(--spacing) * 16)}.h-0\.5{height:calc(var(--spacing) * .5)}.h-1{height:var(--spacing)}.h-3{height:calc(var(--spacing) * 3)}.h-3\.5{height:calc(var(--spacing) * 3.5)}.h-4{height:calc(var(--spacing) * 4)}.h-5{height:calc(var(--spacing) * 5)}.h-9{height:calc(var(--spacing) * 9)}.h-10{height:calc(var(--spacing) * 10)}.h-16{height:calc(var(--spacing) * 16)}.h-24{height:calc(var(--spacing) * 24)}.h-52{height:calc(var(--spacing) * 52)}.h-56{height:calc(var(--spacing) * 56)}.h-\[4\.5rem\]{height:4.5rem}.h-\[4\.8rem\]{height:4.8rem}.h-\[40px\]{height:40px}.h-\[132px\]{height:132px}.h-auto{height:auto}.h-full{height:100%}.h-px{height:1px}.min-h-0{min-height:0}.w-1{width:var(--spacing)}.w-3{width:calc(var(--spacing) * 3)}.w-3\.5{width:calc(var(--spacing) * 3.5)}.w-4{width:calc(var(--spacing) * 4)}.w-5{width:calc(var(--spacing) * 5)}.w-9{width:calc(var(--spacing) * 9)}.w-10{width:calc(var(--spacing) * 10)}.w-12{width:calc(var(--spacing) * 12)}.w-16{width:calc(var(--spacing) * 16)}.w-24{width:calc(var(--spacing) * 24)}.w-52{width:calc(var(--spacing) * 52)}.w-56{width:calc(var(--spacing) * 56)}.w-\[\.\.\.\]{width:...}.w-\[2\.1rem\]{width:2.1rem}.w-\[2px\]{width:2px}.w-\[3px\]{width:3px}.w-\[4\.8rem\]{width:4.8rem}.w-\[5\%\]{width:5%}.w-\[68\%\]{width:68%}.w-\[71\%\]{width:71%}.w-\[min\(97vw\,50dvh\)\]{width:min(97vw,50dvh)}.w-auto{width:auto}.w-full{width:100%}.w-px{width:1px}.max-w-\[14rem\]{max-width:14rem}.max-w-\[180px\]{max-width:180px}.max-w-full{max-width:100%}.min-w-0{min-width:0}.flex-1{flex:1}.shrink{flex-shrink:1}.shrink-0{flex-shrink:0}.grow{flex-grow:1}.basis-\[calc\(100\%\/1\.25\)\]{flex-basis:80%}.origin-bottom{transform-origin:bottom}.-translate-x-1\/2{--tw-translate-x:calc(calc(1 / 2 * 100%) * -1);translate:var(--tw-translate-x) var(--tw-translate-y)}.-translate-y-1\/2{--tw-translate-y:calc(calc(1 / 2 * 100%) * -1);translate:var(--tw-translate-x) var(--tw-translate-y)}.translate-y-0{--tw-translate-y:0px;translate:var(--tw-translate-x) var(--tw-translate-y)}.translate-y-2{--tw-translate-y:calc(var(--spacing) * 2);translate:var(--tw-translate-x) var(--tw-translate-y)}.scale-75{--tw-scale-x:75%;--tw-scale-y:75%;--tw-scale-z:75%;scale:var(--tw-scale-x) var(--tw-scale-y)}.scale-90{--tw-scale-x:90%;--tw-scale-y:90%;--tw-scale-z:90%;scale:var(--tw-scale-x) var(--tw-scale-y)}.scale-100{--tw-scale-x:100%;--tw-scale-y:100%;--tw-scale-z:100%;scale:var(--tw-scale-x) var(--tw-scale-y)}.scale-\[0\.75\]{scale:.75}.transform{transform:var(--tw-rotate-x,) var(--tw-rotate-y,) var(--tw-rotate-z,) var(--tw-skew-x,) var(--tw-skew-y,)}.animate-\[bot-blob-a_7s_ease-in-out_infinite\]{animation:7s ease-in-out infinite bot-blob-a}.animate-\[bot-blob-b_9s_ease-in-out_infinite\]{animation:9s ease-in-out infinite bot-blob-b}.animate-\[bot-blob-speak-a_1\.6s_ease-in-out_infinite\]{animation:1.6s ease-in-out infinite bot-blob-speak-a}.animate-\[bot-blob-speak-b_1\.4s_ease-in-out_infinite\]{animation:1.4s ease-in-out infinite bot-blob-speak-b}.animate-\[bot-breathe_4s_ease-in-out_infinite\]{animation:4s ease-in-out infinite bot-breathe}.animate-\[bot-core-pulse_0\.9s_ease-in-out_infinite\]{animation:.9s ease-in-out infinite bot-core-pulse}.animate-\[bot-halo-listen_2\.2s_ease-in-out_infinite\]{animation:2.2s ease-in-out infinite bot-halo-listen}.animate-\[bot-halo-speak_1\.4s_ease-in-out_infinite\]{animation:1.4s ease-in-out infinite bot-halo-speak}.animate-\[bot-halo-speak_1\.8s_ease-in-out_infinite\]{animation:1.8s ease-in-out infinite bot-halo-speak}.animate-\[bot-idle-scan_6s_ease-in-out_infinite\]{animation:6s ease-in-out infinite bot-idle-scan}.animate-\[bot-nod_0\.4s_ease-out\]{animation:.4s ease-out bot-nod}.animate-\[bot-orbit_1\.6s_linear_infinite\]{animation:1.6s linear infinite bot-orbit}.animate-\[bot-ring-listen_2\.2s_ease-in-out_infinite\]{animation:2.2s ease-in-out infinite bot-ring-listen}.animate-\[bot-ring-speak_1\.4s_ease-in-out_infinite\]{animation:1.4s ease-in-out infinite bot-ring-speak}.animate-\[eye-idle-drift_5s_ease-in-out_infinite\]{animation:5s ease-in-out infinite eye-idle-drift}.animate-\[eye-speak-stretch_0\.7s_ease-in-out_infinite\]{animation:.7s ease-in-out infinite eye-speak-stretch}.animate-\[pulse-glow_1\.6s_ease-in-out_infinite\]{animation:1.6s ease-in-out infinite pulse-glow}.animate-\[pulse-glow_3s_ease-in-out_infinite\]{animation:3s ease-in-out infinite pulse-glow}.animate-\[scan_4s_ease-in-out_infinite\]{animation:4s ease-in-out infinite scan}.animate-\[spin_18s_linear_infinite\]{animation:18s linear infinite spin}.animate-\[voice-bar_1\.4s_cubic-bezier\(0\.45\,0\,0\.55\,1\)_infinite\]{animation:1.4s cubic-bezier(.45,0,.55,1) infinite voice-bar}.animate-pulse{animation:var(--animate-pulse)}.animate-spin{animation:var(--animate-spin)}.cursor-default{cursor:default}.cursor-grab{cursor:grab}.cursor-grabbing{cursor:grabbing}.cursor-not-allowed{cursor:not-allowed}.cursor-pointer{cursor:pointer}.cursor-wait{cursor:wait}.touch-none{touch-action:none}.resize{resize:both}.snap-x{scroll-snap-type:x var(--tw-scroll-snap-strictness)}.snap-mandatory{--tw-scroll-snap-strictness:mandatory}.snap-start{scroll-snap-align:start}.list-decimal{list-style-type:decimal}.list-disc{list-style-type:disc}.grid-cols-\[repeat\(auto-fit\,minmax\(15rem\,1fr\)\)\]{grid-template-columns:repeat(auto-fit,minmax(15rem,1fr))}.flex-col{flex-direction:column}.items-center{align-items:center}.items-end{align-items:flex-end}.items-start{align-items:flex-start}.justify-between{justify-content:space-between}.justify-center{justify-content:center}.justify-end{justify-content:flex-end}.justify-start{justify-content:flex-start}.gap-1{gap:var(--spacing)}.gap-1\.5{gap:calc(var(--spacing) * 1.5)}.gap-2{gap:calc(var(--spacing) * 2)}.gap-2\.5{gap:calc(var(--spacing) * 2.5)}.gap-3{gap:calc(var(--spacing) * 3)}.gap-\[2\%\]{gap:2%}.gap-\[2px\]{gap:2px}.gap-\[3px\]{gap:3px}.gap-px{gap:1px}:where(.space-y-1>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(var(--spacing) * var(--tw-space-y-reverse));margin-block-end:calc(var(--spacing) * calc(1 - var(--tw-space-y-reverse)))}.self-start{align-self:flex-start}.truncate{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.overflow-clip{overflow:clip}.overflow-hidden{overflow:hidden}.overflow-visible{overflow:visible}.overflow-x-auto{overflow-x:auto}.overflow-y-auto{overflow-y:auto}.overscroll-x-contain{overscroll-behavior-x:contain}.rounded{border-radius:.25rem}.rounded-2xl{border-radius:var(--radius-2xl)}.rounded-3xl{border-radius:var(--radius-3xl)}.rounded-full{border-radius:3.40282e38px}.rounded-lg{border-radius:var(--radius-lg)}.rounded-xl{border-radius:var(--radius-xl)}.border{border-style:var(--tw-border-style);border-width:1px}.border-2{border-style:var(--tw-border-style);border-width:2px}.border-t{border-top-style:var(--tw-border-style);border-top-width:1px}.border-black\/5{border-color:#0000000d}@supports (color:color-mix(in lab, red, red)){.border-black\/5{border-color:color-mix(in oklab, var(--color-black) 5%, transparent)}}.border-black\/10{border-color:#0000001a}@supports (color:color-mix(in lab, red, red)){.border-black\/10{border-color:color-mix(in oklab, var(--color-black) 10%, transparent)}}.border-current{border-color:currentColor}.border-white\/40{border-color:#fff6}@supports (color:color-mix(in lab, red, red)){.border-white\/40{border-color:color-mix(in oklab, var(--color-white) 40%, transparent)}}.border-t-transparent{border-top-color:#0000}.bg-\[var\(--knot-surface\)\]{background-color:var(--knot-surface)}.bg-\[var\(--widget-accent\)\],.bg-\[var\(--widget-accent\)\]\/15{background-color:var(--widget-accent)}@supports (color:color-mix(in lab, red, red)){.bg-\[var\(--widget-accent\)\]\/15{background-color:color-mix(in oklab, var(--widget-accent) 15%, transparent)}}.bg-\[var\(--widget-bubble\)\]{background-color:var(--widget-bubble)}.bg-\[var\(--widget-card\)\]{background-color:var(--widget-card)}.bg-\[var\(--widget-chip\)\]{background-color:var(--widget-chip)}.bg-black\/5{background-color:#0000000d}@supports (color:color-mix(in lab, red, red)){.bg-black\/5{background-color:color-mix(in oklab, var(--color-black) 5%, transparent)}}.bg-black\/10{background-color:#0000001a}@supports (color:color-mix(in lab, red, red)){.bg-black\/10{background-color:color-mix(in oklab, var(--color-black) 10%, transparent)}}.bg-current{background-color:currentColor}.bg-gradient-to-b{--tw-gradient-position:to bottom in oklab;background-image:linear-gradient(var(--tw-gradient-stops))}.bg-gradient-to-br{--tw-gradient-position:to bottom right in oklab;background-image:linear-gradient(var(--tw-gradient-stops))}.bg-gradient-to-r{--tw-gradient-position:to right in oklab;background-image:linear-gradient(var(--tw-gradient-stops))}.bg-gradient-to-t{--tw-gradient-position:to top in oklab;background-image:linear-gradient(var(--tw-gradient-stops))}.bg-gradient-to-tr{--tw-gradient-position:to top right in oklab;background-image:linear-gradient(var(--tw-gradient-stops))}.bg-\[linear-gradient\(to_bottom\,transparent\,var\(--widget-card\)_38\%\,var\(--widget-card\)\)\]{background-image:linear-gradient(to bottom,transparent,var(--widget-card) 38%,var(--widget-card))}.bg-\[radial-gradient\(circle\,color-mix\(in_oklab\,var\(--brand-amber\)_7\%\,transparent\)\,transparent_70\%\)\]{background-image:radial-gradient(circle,var(--brand-amber),transparent 70%)}@supports (color:color-mix(in lab, red, red)){.bg-\[radial-gradient\(circle\,color-mix\(in_oklab\,var\(--brand-amber\)_7\%\,transparent\)\,transparent_70\%\)\]{background-image:radial-gradient(circle,color-mix(in oklab,var(--brand-amber) 7%,transparent),transparent 70%)}}.bg-\[radial-gradient\(circle\,color-mix\(in_oklab\,var\(--brand-amber\)_12\%\,transparent\)\,color-mix\(in_oklab\,var\(--brand-rose\)_7\%\,transparent\)_55\%\,transparent_75\%\)\]{background-image:radial-gradient(circle,var(--brand-amber),var(--brand-rose) 55%,transparent 75%)}@supports (color:color-mix(in lab, red, red)){.bg-\[radial-gradient\(circle\,color-mix\(in_oklab\,var\(--brand-amber\)_12\%\,transparent\)\,color-mix\(in_oklab\,var\(--brand-rose\)_7\%\,transparent\)_55\%\,transparent_75\%\)\]{background-image:radial-gradient(circle,color-mix(in oklab,var(--brand-amber) 12%,transparent),color-mix(in oklab,var(--brand-rose) 7%,transparent) 55%,transparent 75%)}}.bg-\[radial-gradient\(circle\,color-mix\(in_oklab\,var\(--brand-rose\)_5\%\,transparent\)\,transparent_70\%\)\]{background-image:radial-gradient(circle,var(--brand-rose),transparent 70%)}@supports (color:color-mix(in lab, red, red)){.bg-\[radial-gradient\(circle\,color-mix\(in_oklab\,var\(--brand-rose\)_5\%\,transparent\)\,transparent_70\%\)\]{background-image:radial-gradient(circle,color-mix(in oklab,var(--brand-rose) 5%,transparent),transparent 70%)}}.bg-\[radial-gradient\(circle\,var\(--knot-halo\)\,transparent_70\%\)\]{background-image:radial-gradient(circle,var(--knot-halo),transparent 70%)}.bg-\[radial-gradient\(circle\,var\(--widget-card\)_58\%\,transparent_72\%\)\]{background-image:radial-gradient(circle,var(--widget-card) 58%,transparent 72%)}.from-transparent{--tw-gradient-from:transparent;--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-to) var(--tw-gradient-to-position))}.from-white\/80{--tw-gradient-from:#fffc}@supports (color:color-mix(in lab, red, red)){.from-white\/80{--tw-gradient-from:color-mix(in oklab, var(--color-white) 80%, transparent)}}.from-white\/80{--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-to) var(--tw-gradient-to-position))}.to-\[color-mix\(in_oklab\,var\(--brand-plum\)_55\%\,white\)\]{--tw-gradient-to:var(--brand-plum)}@supports (color:color-mix(in lab, red, red)){.to-\[color-mix\(in_oklab\,var\(--brand-plum\)_55\%\,white\)\]{--tw-gradient-to:color-mix(in oklab,var(--brand-plum) 55%,white)}}.to-\[color-mix\(in_oklab\,var\(--brand-plum\)_55\%\,white\)\]{--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-to) var(--tw-gradient-to-position))}.to-transparent{--tw-gradient-to:transparent;--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-to) var(--tw-gradient-to-position))}.object-cover{object-fit:cover}.p-0{padding:0}.p-1{padding:var(--spacing)}.p-1\.5{padding:calc(var(--spacing) * 1.5)}.p-2{padding:calc(var(--spacing) * 2)}.p-3{padding:calc(var(--spacing) * 3)}.p-\[1\.5px\]{padding:1.5px}.px-1{padding-inline:var(--spacing)}.px-2{padding-inline:calc(var(--spacing) * 2)}.px-2\.5{padding-inline:calc(var(--spacing) * 2.5)}.px-3{padding-inline:calc(var(--spacing) * 3)}.px-4{padding-inline:calc(var(--spacing) * 4)}.py-0\.5{padding-block:calc(var(--spacing) * .5)}.py-1{padding-block:var(--spacing)}.py-1\.5{padding-block:calc(var(--spacing) * 1.5)}.py-2\.5{padding-block:calc(var(--spacing) * 2.5)}.ps-2{padding-inline-start:calc(var(--spacing) * 2)}.ps-4{padding-inline-start:calc(var(--spacing) * 4)}.pe-4{padding-inline-end:calc(var(--spacing) * 4)}.pe-12{padding-inline-end:calc(var(--spacing) * 12)}.pt-2\.5{padding-top:calc(var(--spacing) * 2.5)}.text-center{text-align:center}.font-mono{font-family:var(--font-mono)}.text-sm{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}.text-xs{font-size:var(--text-xs);line-height:var(--tw-leading,var(--text-xs--line-height))}.text-\[0\.85em\]{font-size:.85em}.text-\[10px\]{font-size:10px}.text-\[14px\]{font-size:14px}.leading-snug{--tw-leading:var(--leading-snug);line-height:var(--leading-snug)}.font-medium{--tw-font-weight:var(--font-weight-medium);font-weight:var(--font-weight-medium)}.font-semibold{--tw-font-weight:var(--font-weight-semibold);font-weight:var(--font-weight-semibold)}.tracking-tight{--tw-tracking:var(--tracking-tight);letter-spacing:var(--tracking-tight)}.tracking-wide{--tw-tracking:var(--tracking-wide);letter-spacing:var(--tracking-wide)}.tracking-wider{--tw-tracking:var(--tracking-wider);letter-spacing:var(--tracking-wider)}.text-pretty{text-wrap:pretty}.whitespace-nowrap{white-space:nowrap}.text-\[var\(--widget-accent\)\]{color:var(--widget-accent)}.text-\[var\(--widget-accent-foreground\)\]{color:var(--widget-accent-foreground)}.text-\[var\(--widget-foreground\)\]{color:var(--widget-foreground)}.text-\[var\(--widget-foreground-muted\)\]{color:var(--widget-foreground-muted)}.uppercase{text-transform:uppercase}.italic{font-style:italic}.tabular-nums{--tw-numeric-spacing:tabular-nums;font-variant-numeric:var(--tw-ordinal,) var(--tw-slashed-zero,) var(--tw-numeric-figure,) var(--tw-numeric-spacing,) var(--tw-numeric-fraction,)}.underline{text-decoration-line:underline}.underline-offset-2{text-underline-offset:2px}.opacity-0{opacity:0}.opacity-25{opacity:.25}.opacity-30{opacity:.3}.opacity-40{opacity:.4}.opacity-45{opacity:.45}.opacity-55{opacity:.55}.opacity-60{opacity:.6}.opacity-70{opacity:.7}.opacity-75{opacity:.75}.opacity-90{opacity:.9}.opacity-100{opacity:1}.shadow{--tw-shadow:0 1px 3px 0 var(--tw-shadow-color,#0000001a), 0 1px 2px -1px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.shadow-\[0_0_0_1px_color-mix\(in_oklab\,var\(--brand-plum\)_18\%\,transparent\)\,0_4px_14px_-2px_color-mix\(in_oklab\,var\(--brand-plum\)_45\%\,transparent\)\,0_0_22px_-4px_color-mix\(in_oklab\,var\(--brand-rose\)_40\%\,transparent\)\]{--tw-shadow:0 0 0 1px var(--tw-shadow-color,var(--brand-plum)), 0 4px 14px -2px var(--tw-shadow-color,var(--brand-plum)), 0 0 22px -4px var(--tw-shadow-color,var(--brand-rose))}@supports (color:color-mix(in lab, red, red)){.shadow-\[0_0_0_1px_color-mix\(in_oklab\,var\(--brand-plum\)_18\%\,transparent\)\,0_4px_14px_-2px_color-mix\(in_oklab\,var\(--brand-plum\)_45\%\,transparent\)\,0_0_22px_-4px_color-mix\(in_oklab\,var\(--brand-rose\)_40\%\,transparent\)\]{--tw-shadow:0 0 0 1px var(--tw-shadow-color,color-mix(in oklab,var(--brand-plum) 18%,transparent)), 0 4px 14px -2px var(--tw-shadow-color,color-mix(in oklab,var(--brand-plum) 45%,transparent)), 0 0 22px -4px var(--tw-shadow-color,color-mix(in oklab,var(--brand-rose) 40%,transparent))}}.shadow-\[0_0_0_1px_color-mix\(in_oklab\,var\(--brand-plum\)_18\%\,transparent\)\,0_4px_14px_-2px_color-mix\(in_oklab\,var\(--brand-plum\)_45\%\,transparent\)\,0_0_22px_-4px_color-mix\(in_oklab\,var\(--brand-rose\)_40\%\,transparent\)\]{box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.shadow-\[0_0_6px_color-mix\(in_oklab\,var\(--brand-rose\)_55\%\,transparent\)\]{--tw-shadow:0 0 6px var(--tw-shadow-color,var(--brand-rose))}@supports (color:color-mix(in lab, red, red)){.shadow-\[0_0_6px_color-mix\(in_oklab\,var\(--brand-rose\)_55\%\,transparent\)\]{--tw-shadow:0 0 6px var(--tw-shadow-color,color-mix(in oklab,var(--brand-rose) 55%,transparent))}}.shadow-\[0_0_6px_color-mix\(in_oklab\,var\(--brand-rose\)_55\%\,transparent\)\]{box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.shadow-\[0_0_8px_color-mix\(in_oklab\,var\(--brand-rose\)_60\%\,transparent\)\]{--tw-shadow:0 0 8px var(--tw-shadow-color,var(--brand-rose))}@supports (color:color-mix(in lab, red, red)){.shadow-\[0_0_8px_color-mix\(in_oklab\,var\(--brand-rose\)_60\%\,transparent\)\]{--tw-shadow:0 0 8px var(--tw-shadow-color,color-mix(in oklab,var(--brand-rose) 60%,transparent))}}.shadow-\[0_0_8px_color-mix\(in_oklab\,var\(--brand-rose\)_60\%\,transparent\)\]{box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.shadow-\[0_0_12px_color-mix\(in_oklab\,var\(--brand-amber\)_55\%\,transparent\)\]{--tw-shadow:0 0 12px var(--tw-shadow-color,var(--brand-amber))}@supports (color:color-mix(in lab, red, red)){.shadow-\[0_0_12px_color-mix\(in_oklab\,var\(--brand-amber\)_55\%\,transparent\)\]{--tw-shadow:0 0 12px var(--tw-shadow-color,color-mix(in oklab,var(--brand-amber) 55%,transparent))}}.shadow-\[0_0_12px_color-mix\(in_oklab\,var\(--brand-amber\)_55\%\,transparent\)\]{box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.shadow-\[0_2px_8px_-2px_rgba\(0\,0\,0\,0\.15\)\]{--tw-shadow:0 2px 8px -2px var(--tw-shadow-color,#00000026);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.shadow-\[0_2px_10px_-2px_color-mix\(in_oklab\,var\(--brand-plum\)_35\%\,transparent\)\]{--tw-shadow:0 2px 10px -2px var(--tw-shadow-color,var(--brand-plum))}@supports (color:color-mix(in lab, red, red)){.shadow-\[0_2px_10px_-2px_color-mix\(in_oklab\,var\(--brand-plum\)_35\%\,transparent\)\]{--tw-shadow:0 2px 10px -2px var(--tw-shadow-color,color-mix(in oklab,var(--brand-plum) 35%,transparent))}}.shadow-\[0_2px_10px_-2px_color-mix\(in_oklab\,var\(--brand-plum\)_35\%\,transparent\)\]{box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.shadow-\[0_12px_32px_-12px_color-mix\(in_oklab\,var\(--brand-plum\)_35\%\,transparent\)\]{--tw-shadow:0 12px 32px -12px var(--tw-shadow-color,var(--brand-plum))}@supports (color:color-mix(in lab, red, red)){.shadow-\[0_12px_32px_-12px_color-mix\(in_oklab\,var\(--brand-plum\)_35\%\,transparent\)\]{--tw-shadow:0 12px 32px -12px var(--tw-shadow-color,color-mix(in oklab,var(--brand-plum) 35%,transparent))}}.shadow-\[0_12px_32px_-12px_color-mix\(in_oklab\,var\(--brand-plum\)_35\%\,transparent\)\]{box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.shadow-\[0_30px_80px_-20px_color-mix\(in_oklab\,var\(--brand-plum\)_25\%\,transparent\)\,inset_0_1px_0_rgba\(255\,255\,255\,0\.75\)\]{--tw-shadow:0 30px 80px -20px var(--tw-shadow-color,var(--brand-plum)), inset 0 1px 0 var(--tw-shadow-color,#ffffffbf)}@supports (color:color-mix(in lab, red, red)){.shadow-\[0_30px_80px_-20px_color-mix\(in_oklab\,var\(--brand-plum\)_25\%\,transparent\)\,inset_0_1px_0_rgba\(255\,255\,255\,0\.75\)\]{--tw-shadow:0 30px 80px -20px var(--tw-shadow-color,color-mix(in oklab,var(--brand-plum) 25%,transparent)), inset 0 1px 0 var(--tw-shadow-color,#ffffffbf)}}.shadow-\[0_30px_80px_-20px_color-mix\(in_oklab\,var\(--brand-plum\)_25\%\,transparent\)\,inset_0_1px_0_rgba\(255\,255\,255\,0\.75\)\]{box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.shadow-\[inset_0_1px_4px_rgba\(0\,0\,0\,0\.4\)\]{--tw-shadow:inset 0 1px 4px var(--tw-shadow-color,#0006);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.ring,.ring-1{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.ring-2{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.ring-4{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(4px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.ring-\[var\(--widget-accent\)\]\/30{--tw-ring-color:var(--widget-accent)}@supports (color:color-mix(in lab, red, red)){.ring-\[var\(--widget-accent\)\]\/30{--tw-ring-color:color-mix(in oklab, var(--widget-accent) 30%, transparent)}}.ring-black\/5{--tw-ring-color:#0000000d}@supports (color:color-mix(in lab, red, red)){.ring-black\/5{--tw-ring-color:color-mix(in oklab, var(--color-black) 5%, transparent)}}.outline{outline-style:var(--tw-outline-style);outline-width:1px}.blur-2xl{--tw-blur:blur(var(--blur-2xl));filter:var(--tw-blur,) var(--tw-brightness,) var(--tw-contrast,) var(--tw-grayscale,) var(--tw-hue-rotate,) var(--tw-invert,) var(--tw-saturate,) var(--tw-sepia,) var(--tw-drop-shadow,)}.blur-md{--tw-blur:blur(var(--blur-md));filter:var(--tw-blur,) var(--tw-brightness,) var(--tw-contrast,) var(--tw-grayscale,) var(--tw-hue-rotate,) var(--tw-invert,) var(--tw-saturate,) var(--tw-sepia,) var(--tw-drop-shadow,)}.blur-xl{--tw-blur:blur(var(--blur-xl));filter:var(--tw-blur,) var(--tw-brightness,) var(--tw-contrast,) var(--tw-grayscale,) var(--tw-hue-rotate,) var(--tw-invert,) var(--tw-saturate,) var(--tw-sepia,) var(--tw-drop-shadow,)}.backdrop-blur-\[2px\]{--tw-backdrop-blur:blur(2px);-webkit-backdrop-filter:var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,);backdrop-filter:var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,)}.backdrop-blur-md{--tw-backdrop-blur:blur(var(--blur-md));-webkit-backdrop-filter:var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,);backdrop-filter:var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,)}.backdrop-blur-xl{--tw-backdrop-blur:blur(var(--blur-xl));-webkit-backdrop-filter:var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,);backdrop-filter:var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,)}.transition{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to,opacity,box-shadow,transform,translate,scale,rotate,filter,-webkit-backdrop-filter,backdrop-filter,display,content-visibility,overlay,pointer-events;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-\[background-color\,color\]{transition-property:background-color,color;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-\[border-color\]{transition-property:border-color;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-\[opacity\,scale\]{transition-property:opacity,scale;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-\[transform\,opacity\]{transition-property:transform,opacity;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-all{transition-property:all;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-colors{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-opacity{transition-property:opacity;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.delay-\[300ms\]{transition-delay:.3s}.delay-\[350ms\]{transition-delay:.35s}.duration-300{--tw-duration:.3s;transition-duration:.3s}.duration-500{--tw-duration:.5s;transition-duration:.5s}.duration-\[700ms\]{--tw-duration:.7s;transition-duration:.7s}.ease-out{--tw-ease:var(--ease-out);transition-timing-function:var(--ease-out)}.placeholder\:text-\[var\(--widget-foreground-muted\)\]::placeholder{color:var(--widget-foreground-muted)}@media (hover:hover){.hover\:scale-105:hover{--tw-scale-x:105%;--tw-scale-y:105%;--tw-scale-z:105%;scale:var(--tw-scale-x) var(--tw-scale-y)}.hover\:text-\[var\(--widget-foreground\)\]:hover{color:var(--widget-foreground)}.hover\:shadow-\[0_0_0_1px_color-mix\(in_oklab\,var\(--brand-plum\)_26\%\,transparent\)\,0_6px_18px_-2px_color-mix\(in_oklab\,var\(--brand-plum\)_60\%\,transparent\)\,0_0_30px_-4px_color-mix\(in_oklab\,var\(--brand-rose\)_55\%\,transparent\)\]:hover{--tw-shadow:0 0 0 1px var(--tw-shadow-color,var(--brand-plum)), 0 6px 18px -2px var(--tw-shadow-color,var(--brand-plum)), 0 0 30px -4px var(--tw-shadow-color,var(--brand-rose))}@supports (color:color-mix(in lab, red, red)){.hover\:shadow-\[0_0_0_1px_color-mix\(in_oklab\,var\(--brand-plum\)_26\%\,transparent\)\,0_6px_18px_-2px_color-mix\(in_oklab\,var\(--brand-plum\)_60\%\,transparent\)\,0_0_30px_-4px_color-mix\(in_oklab\,var\(--brand-rose\)_55\%\,transparent\)\]:hover{--tw-shadow:0 0 0 1px var(--tw-shadow-color,color-mix(in oklab,var(--brand-plum) 26%,transparent)), 0 6px 18px -2px var(--tw-shadow-color,color-mix(in oklab,var(--brand-plum) 60%,transparent)), 0 0 30px -4px var(--tw-shadow-color,color-mix(in oklab,var(--brand-rose) 55%,transparent))}}.hover\:shadow-\[0_0_0_1px_color-mix\(in_oklab\,var\(--brand-plum\)_26\%\,transparent\)\,0_6px_18px_-2px_color-mix\(in_oklab\,var\(--brand-plum\)_60\%\,transparent\)\,0_0_30px_-4px_color-mix\(in_oklab\,var\(--brand-rose\)_55\%\,transparent\)\]:hover{box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}}.focus\:bg-\[var\(--widget-bubble\)\]:focus{background-color:var(--widget-bubble)}.focus\:opacity-100:focus{opacity:1}.focus\:ring-2:focus{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.focus\:outline-none:focus{--tw-outline-style:none;outline-style:none}.focus-visible\:ring-2:focus-visible{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.focus-visible\:ring-white\/50:focus-visible{--tw-ring-color:#ffffff80}@supports (color:color-mix(in lab, red, red)){.focus-visible\:ring-white\/50:focus-visible{--tw-ring-color:color-mix(in oklab, var(--color-white) 50%, transparent)}}.focus-visible\:outline-none:focus-visible{--tw-outline-style:none;outline-style:none}.disabled\:cursor-default:disabled{cursor:default}.disabled\:opacity-40:disabled{opacity:.4}.disabled\:opacity-50:disabled{opacity:.5}.disabled\:opacity-60:disabled{opacity:.6}.disabled\:opacity-70:disabled{opacity:.7}.aria-disabled\:cursor-default[aria-disabled=true]{cursor:default}.aria-disabled\:opacity-60[aria-disabled=true]{opacity:.6}@media (prefers-reduced-motion:reduce){.motion-reduce\:scale-y-75{--tw-scale-y:75%;scale:var(--tw-scale-x) var(--tw-scale-y)}.motion-reduce\:animate-none{animation:none}.motion-reduce\:opacity-70{opacity:.7}.motion-reduce\:transition-none{transition-property:none}}@media (min-width:40rem){.sm\:top-6{top:calc(var(--spacing) * 6)}.sm\:right-6{right:calc(var(--spacing) * 6)}.sm\:bottom-6{bottom:calc(var(--spacing) * 6)}.sm\:left-6{left:calc(var(--spacing) * 6)}.sm\:ps-6{padding-inline-start:calc(var(--spacing) * 6)}.sm\:pe-6{padding-inline-end:calc(var(--spacing) * 6)}}.rtl\:translate-x-1\/2:where(:dir(rtl),[dir=rtl],[dir=rtl] *){--tw-translate-x:calc(1 / 2 * 100%);translate:var(--tw-translate-x) var(--tw-translate-y)}.rtl\:-scale-x-100:where(:dir(rtl),[dir=rtl],[dir=rtl] *){--tw-scale-x:calc(100% * -1);scale:var(--tw-scale-x) var(--tw-scale-y)}.\[\&\:not\(\:first-child\)\]\:mt-2:not(:first-child){margin-top:calc(var(--spacing) * 2)}}:host,:root{--widget-card:oklch(98.2% 0 0/.97);--widget-bubble:oklch(95% .006 84.6/.92);--widget-chip:oklch(92.7% .008 73.7/.78);--widget-foreground:oklch(30.5% .002 106.5);--widget-foreground-muted:oklch(30.5% .002 106.5/.62);--widget-accent:oklch(46.8% .043 126.6);--widget-accent-foreground:oklch(97% .012 125.3);--widget-accent-ring:oklch(80% .05 125.3);--widget-shadow-tint:oklch(46.8% .043 126.6);--color-brand-plum-800:oklch(42% .19 330);--color-brand-plum-400:oklch(69.5% .169 330);--color-brand-rose-500:oklch(65% .22 20);--color-brand-rose-400:oklch(71.4% .19 20);--color-brand-amber-400:oklch(80% .16 80);--color-brand-amber-500:oklch(70.7% .185 80);--color-brand-amber-300:oklch(84.3% .121 80);--color-brand-ink:oklch(21% .01 280);--background:oklch(100% 0 0);--foreground:oklch(21% .01 280)}:host(.dark),.dark{--widget-card:oklch(26% .012 124.8/.95);--widget-bubble:oklch(31.6% .023 124.8/.9);--widget-chip:oklch(31.6% .023 124.8/.75);--widget-foreground:oklch(97% .006 84.6);--widget-foreground-muted:oklch(97% .006 84.6/.65);--widget-accent:oklch(80% .05 125.3);--widget-accent-foreground:oklch(26% .012 124.8);--widget-accent-ring:oklch(85.8% .037 17.9);--widget-shadow-tint:oklch(31.6% .023 124.8);--background:oklch(14% .01 280);--foreground:oklch(97% .006 84.6)}:host,:root{--wgt-primary:#111827;--wgt-on-primary:#fff;--wgt-surface:#fff;--wgt-surface-2:#f0efef;--wgt-surface-glass:#fffffff7;--wgt-surface-glass-blurred:#ffffff40;--wgt-surface-veil:#ffffffb3;--wgt-glass-tune:contrast(.3) brightness(1.8);--wgt-text:#1c1618;--wgt-text-muted:#1c1618ba;--wgt-border:#1c16181f;--wgt-ring:#111827;--wgt-radius:12px;--wgt-row-radius:9999px;--wgt-sheet-radius:12px;--wgt-card-radius:12px;--wgt-font:inherit;--wgt-caps:none}:host(.dark),.dark{--wgt-primary:#111827;--wgt-on-primary:#fff;--wgt-surface:#141414;--wgt-surface-2:#1f1f1f;--wgt-surface-glass:#141414f7;--wgt-surface-glass-blurred:#14141440;--wgt-surface-veil:#141414b3;--wgt-glass-tune:contrast(.9) brightness(.32);--wgt-text:#fbf2f5;--wgt-text-muted:#fbf2f5ba;--wgt-border:#fbf2f51f;--wgt-ring:#5a6376;--wgt-radius:12px;--wgt-row-radius:9999px;--wgt-sheet-radius:12px;--wgt-card-radius:12px;--wgt-font:inherit;--wgt-caps:none}@property --tw-translate-x{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-y{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-z{syntax:"*";inherits:false;initial-value:0}@property --tw-scale-x{syntax:"*";inherits:false;initial-value:1}@property --tw-scale-y{syntax:"*";inherits:false;initial-value:1}@property --tw-scale-z{syntax:"*";inherits:false;initial-value:1}@property --tw-rotate-x{syntax:"*";inherits:false}@property --tw-rotate-y{syntax:"*";inherits:false}@property --tw-rotate-z{syntax:"*";inherits:false}@property --tw-skew-x{syntax:"*";inherits:false}@property --tw-skew-y{syntax:"*";inherits:false}@property --tw-scroll-snap-strictness{syntax:"*";inherits:false;initial-value:proximity}@property --tw-space-y-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-border-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-gradient-position{syntax:"*";inherits:false}@property --tw-gradient-from{syntax:"<color>";inherits:false;initial-value:#0000}@property --tw-gradient-via{syntax:"<color>";inherits:false;initial-value:#0000}@property --tw-gradient-to{syntax:"<color>";inherits:false;initial-value:#0000}@property --tw-gradient-stops{syntax:"*";inherits:false}@property --tw-gradient-via-stops{syntax:"*";inherits:false}@property --tw-gradient-from-position{syntax:"<length-percentage>";inherits:false;initial-value:0%}@property --tw-gradient-via-position{syntax:"<length-percentage>";inherits:false;initial-value:50%}@property --tw-gradient-to-position{syntax:"<length-percentage>";inherits:false;initial-value:100%}@property --tw-leading{syntax:"*";inherits:false}@property --tw-font-weight{syntax:"*";inherits:false}@property --tw-tracking{syntax:"*";inherits:false}@property --tw-ordinal{syntax:"*";inherits:false}@property --tw-slashed-zero{syntax:"*";inherits:false}@property --tw-numeric-figure{syntax:"*";inherits:false}@property --tw-numeric-spacing{syntax:"*";inherits:false}@property --tw-numeric-fraction{syntax:"*";inherits:false}@property --tw-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-shadow-color{syntax:"*";inherits:false}@property --tw-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-inset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-shadow-color{syntax:"*";inherits:false}@property --tw-inset-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-ring-color{syntax:"*";inherits:false}@property --tw-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-ring-color{syntax:"*";inherits:false}@property --tw-inset-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-ring-inset{syntax:"*";inherits:false}@property --tw-ring-offset-width{syntax:"<length>";inherits:false;initial-value:0}@property --tw-ring-offset-color{syntax:"*";inherits:false;initial-value:#fff}@property --tw-ring-offset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-outline-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-blur{syntax:"*";inherits:false}@property --tw-brightness{syntax:"*";inherits:false}@property --tw-contrast{syntax:"*";inherits:false}@property --tw-grayscale{syntax:"*";inherits:false}@property --tw-hue-rotate{syntax:"*";inherits:false}@property --tw-invert{syntax:"*";inherits:false}@property --tw-opacity{syntax:"*";inherits:false}@property --tw-saturate{syntax:"*";inherits:false}@property --tw-sepia{syntax:"*";inherits:false}@property --tw-drop-shadow{syntax:"*";inherits:false}@property --tw-drop-shadow-color{syntax:"*";inherits:false}@property --tw-drop-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-drop-shadow-size{syntax:"*";inherits:false}@property --tw-backdrop-blur{syntax:"*";inherits:false}@property --tw-backdrop-brightness{syntax:"*";inherits:false}@property --tw-backdrop-contrast{syntax:"*";inherits:false}@property --tw-backdrop-grayscale{syntax:"*";inherits:false}@property --tw-backdrop-hue-rotate{syntax:"*";inherits:false}@property --tw-backdrop-invert{syntax:"*";inherits:false}@property --tw-backdrop-opacity{syntax:"*";inherits:false}@property --tw-backdrop-saturate{syntax:"*";inherits:false}@property --tw-backdrop-sepia{syntax:"*";inherits:false}@property --tw-duration{syntax:"*";inherits:false}@property --tw-ease{syntax:"*";inherits:false}@keyframes spin{to{transform:rotate(360deg)}}@keyframes pulse{50%{opacity:.5}}
@@ -0,0 +1,234 @@
1
+ /**
2
+ * THE CONCIERGE'S STATE — docs/DOCK_SPEC.md §5.1, as one pure function that
3
+ * BOTH renderers read (docs/CONCIERGE_GENERATIONS.md §3).
4
+ *
5
+ * The widget (`widget/`) and the dock (`dock/`) draw the same session. Which
6
+ * state that session is in — heard, answered, muted, reconnected, handed to a
7
+ * person — is decided HERE and nowhere else; each renderer then maps the
8
+ * state to its own presentation (`dock/dock-state.ts`'s `deriveDockView`,
9
+ * `widget/widget-view.ts`'s `deriveWidgetView`). A renderer that reaches
10
+ * past its view to compute a state of its own is exactly the drift the two
11
+ * generations are built not to have.
12
+ *
13
+ * This module lives at `src/` root rather than under either renderer for the
14
+ * same reason `widget-cards.tsx` does: it belongs to neither, and a file's
15
+ * directory says which generation it belongs to.
16
+ *
17
+ * ## Why it is a pure function over a snapshot
18
+ *
19
+ * The same reason `voice-session-state.ts` and `bot-state.ts` are separate
20
+ * from the components that draw them: whether the shopper is being heard,
21
+ * answered, muted or reconnected is the one thing a voice product has to get
22
+ * right, and it must be assertable without a LiveKit room, a socket, a
23
+ * microphone or a DOM. §5.1 is a table; `concierge-state.test.ts` and
24
+ * `dock-state.test.ts` walk it row by row, which is only possible because
25
+ * this takes data and returns data.
26
+ *
27
+ * ## The precedence order IS the behaviour
28
+ *
29
+ * Several claimants can be true at once — a live call that has just
30
+ * escalated, a duck with a curation landing inside it, a reconnect with a
31
+ * refused microphone. The order below is spelled out rather than left to the
32
+ * shape of the `if`s, and it is the same precedence `host-widget.tsx`'s
33
+ * status line already uses for its three claimants (session > voice > cart):
34
+ *
35
+ * 1. **`error`** — the conversation is broken; nothing else the row could
36
+ * say matters more.
37
+ * 2. **`offline`** — the tenant says there is no channel to answer on.
38
+ * 3. **`human`** — a PERSON holds the conversation. Voice is AI-only, so
39
+ * every voice state below is a lie while this is true.
40
+ * 4. **`mic_blocked`** — the browser refused. It outranks `reconnecting`
41
+ * because "resume" is an instruction the shopper cannot follow.
42
+ * 5. **`reconnecting`** — §5.1: the most-seen state on a conventionally
43
+ * navigating storefront.
44
+ * 6. **`ducked`** — the shopper turned to the page.
45
+ * 7. the live voice states, in the order `botStateFor` already established.
46
+ * 8. **`typing`** — the TEXT channel's phase (added 2026-09-15): an engaged
47
+ * session on `channel: 'text'` that nothing above has claimed. Below the
48
+ * live voice states because a room that is actually up outranks the
49
+ * channel label — a host mid-switch can say `text` for a render while the
50
+ * call is still talking.
51
+ * 9. **`cards`** — only over a quiet row (`dormant`/`ducked`) and only while
52
+ * the sheet is closed, per §5.1's "replaces `dock_ducked` once cards land
53
+ * during a duck". It never steals the caption from a live audio state,
54
+ * where the clause and the partial transcript are the point, and never
55
+ * from `typing`, whose caption is the shopper's own field.
56
+ * 10. **`dormant`**.
57
+ *
58
+ * ## What is a STATE and what is a VIEW
59
+ *
60
+ * `ConciergeSnapshot` carries the state and the three facts every renderer
61
+ * needs and none may recompute: whether a person holds the conversation
62
+ * (derived from the STATE, not the raw `escalated` flag — §5.1 puts `error`
63
+ * and `offline` above `human`, and a mark showing an operator's initials
64
+ * under an error row was the bug), whether there is a call to end, and how
65
+ * many cards are on the shelf. Everything about how a state LOOKS — a caption
66
+ * key, a control set, a border, a panel policy, an avatar mood — is a view's
67
+ * decision, and the views read the input for CONTENT (a partial transcript,
68
+ * an operator's line) but never for state.
69
+ */
70
+ import type { VoicePhase } from './voice-session-state.js';
71
+ /** Every state the session can be in — §5.1's ten, plus the four the shipped widget already had. */
72
+ export declare const CONCIERGE_STATES: readonly ['dormant', 'connecting', 'listening', 'thinking', 'speaking', 'ducked', 'reconnecting', 'muted', 'mic_blocked', 'typing', 'human', 'offline', 'error', 'cards'];
73
+ export type ConciergeState = (typeof CONCIERGE_STATES)[number];
74
+ /** The voice leg, as the state machine needs to see it — a superset of `VoiceSessionSnapshot`'s fields. */
75
+ export interface ConciergeVoiceInput {
76
+ /** The tenant published voice AND this is not an embedded webview (§8.4). */
77
+ readonly enabled: boolean;
78
+ readonly phase: VoicePhase;
79
+ /** The caller's microphone is published to the room. */
80
+ readonly micOpen: boolean;
81
+ /** The browser is being asked for the microphone right now (`VoiceSessionSnapshot.micPending`). */
82
+ readonly micPending: boolean;
83
+ /** The browser REFUSED. Distinct from muted: no press can undo it on this page (§5.1). */
84
+ readonly micBlocked: boolean;
85
+ readonly agentPresent: boolean;
86
+ readonly agentSpeaking: boolean;
87
+ readonly callerSpeaking: boolean;
88
+ readonly awaitingAgent: boolean;
89
+ }
90
+ /**
91
+ * The session, as data. Renderer-neutral by construction: nothing in here
92
+ * names a row, a panel, a caption or a launcher. `dock/dock-state.ts` and
93
+ * `widget/widget-view.ts` both take exactly this.
94
+ */
95
+ export interface ConciergeStateInput {
96
+ /** The shopper has expressed intent — before that the concierge is resting, whatever the transports say. */
97
+ readonly engaged: boolean;
98
+ readonly voice: ConciergeVoiceInput;
99
+ /** What is in the composer right now. Only `dormant` and `typing` read it, for the send control. */
100
+ readonly draft: string;
101
+ /** §5.5 — the shopper turned to the page during `speaking`. */
102
+ readonly ducked: boolean;
103
+ /** §8.6 — the session is being resumed (a navigation, a return from lock). */
104
+ readonly reconnecting: boolean;
105
+ /** The room itself dropped, so the resume needs a tap rather than just a wait. */
106
+ readonly roomDropped: boolean;
107
+ /** A PERSON holds the conversation (`UseChatSessionResult.status === 'escalated'`). */
108
+ readonly escalated: boolean;
109
+ /** The operator's last line, once they have said anything. */
110
+ readonly operatorLine?: string;
111
+ /** The attach control is escalated-only (`AGENTS.md` — the concierge has no vision path). */
112
+ readonly canAttach: boolean;
113
+ /**
114
+ * A host that can actually open the browser's own permission help (§5.1's
115
+ * `dock_fix_browser`).
116
+ *
117
+ * Gated for the same reason `canAttach` is: a control that provably does
118
+ * nothing is worse than no control. Nothing in the browser can open that UI
119
+ * from script, so most hosts have nothing to offer here — and
120
+ * `dock_mic_blocked` ("Mic blocked — type instead") already tells the
121
+ * shopper what they can do.
122
+ */
123
+ readonly canFixPermission: boolean;
124
+ readonly offline: boolean;
125
+ readonly offlineMessage?: string;
126
+ /**
127
+ * The host's status line, for the two claimants that are genuinely ERRORS:
128
+ * the conversation itself is broken, or the voice leg is (a refused
129
+ * microphone, a dead speech vendor).
130
+ */
131
+ readonly error?: string;
132
+ /**
133
+ * WHICH claimant `error` came from — the conversation, or the voice leg.
134
+ *
135
+ * The host resolves the precedence (session > voice) into one string before
136
+ * it reaches the state machine, and the string alone cannot say what it is:
137
+ * a view has to know a voice CONNECT failed to swap its transport text for
138
+ * §5.1's `dock_voice_failed`, and it must not do that to a session error
139
+ * that merely happened while the room was also down.
140
+ */
141
+ readonly errorSource?: 'session' | 'voice';
142
+ /**
143
+ * A line the shopper needs to READ that is not an error — today, only
144
+ * `cart_add_failed`: the concierge said an item was going in the basket and
145
+ * only this browser knows it did not.
146
+ *
147
+ * It replaces a view's status line and changes nothing else. Folding it
148
+ * into `error` instead cost the dock its whole live state: an add that
149
+ * failed mid-call took `speaking` down to `error` for the rest of the
150
+ * session, so the clause disappeared and mute and interrupt went with it —
151
+ * and `agentAddFailed` is only cleared by the NEXT successful agent add, so
152
+ * it did not go away. §5.1 puts `cart_add_failed` in the caption; that is
153
+ * all it asks for.
154
+ */
155
+ readonly notice?: string;
156
+ /** How many cards the latest curation put on the shelf. */
157
+ readonly shelfCount: number;
158
+ /**
159
+ * There is a conversation in the visor to go back to (added 2026-09-16).
160
+ *
161
+ * A FLAG rather than a count: the state machine never needs to know how
162
+ * long the conversation is, only that opening the transcript would show
163
+ * something. The host owns the transcript node and is the only thing that
164
+ * can say so.
165
+ */
166
+ readonly hasTranscript: boolean;
167
+ readonly sheetOpen: boolean;
168
+ /** The live partial transcript, current utterance only (§5.1's `listening`). */
169
+ readonly partialTranscript?: string;
170
+ /** `FillerPolicy`'s model-authored acknowledgement (§6) — the designed `thinking` line. */
171
+ readonly preamble?: string;
172
+ /** The clause the agent is saying right now (§5.1's `speaking`). */
173
+ readonly clause?: string;
174
+ /**
175
+ * §5.1 (added 2026-09-15) — which channel the session is on. `text` is what
176
+ * makes an engaged, otherwise-unclaimed session `typing` rather than
177
+ * `dormant`.
178
+ */
179
+ readonly channel: 'voice' | 'text';
180
+ /**
181
+ * The OTHER side is composing: a concierge reply is in flight or streaming,
182
+ * or — in `human` — an operator is typing. Draws §5.1's dots, and holds
183
+ * §3.6's glass off: a row cannot recede while it is being answered.
184
+ */
185
+ readonly composing: boolean;
186
+ /**
187
+ * §3.6 — the text session has been idle for `GLASS_IDLE_MS`: no turn, no
188
+ * draft, the field unfocused. A CLOCK, so the host runs it; the views only
189
+ * decide what an idle `typing` session looks like.
190
+ */
191
+ readonly textIdle: boolean;
192
+ }
193
+ /** A concierge nobody has touched, on a tenant with no voice. Every field explicit — see `ConciergeStateInput`. */
194
+ export declare const idleConciergeInput: ConciergeStateInput;
195
+ /**
196
+ * What every renderer needs and none may recompute. See the module comment's
197
+ * "What is a STATE and what is a VIEW".
198
+ */
199
+ export interface ConciergeSnapshot {
200
+ readonly state: ConciergeState;
201
+ /**
202
+ * There is a CALL to end — the room is being dialled, is up, or is waiting
203
+ * for the worker to join.
204
+ *
205
+ * A property of the SESSION and not of the host: `host-widget.tsx` passes
206
+ * an `onEndCall` handler for any tenant with voice published, so a control
207
+ * hung off the handler's presence stood in `dormant` before anything had
208
+ * been dialled and stayed standing after a connect that failed. Mute is not
209
+ * a hang-up and a reconnect is not a disconnection, so both keep it — it
210
+ * goes false only when the room is genuinely gone (`idle`, `disconnected`,
211
+ * `failed`) or the tenant has no voice leg at all.
212
+ */
213
+ readonly callActive: boolean;
214
+ /**
215
+ * A PERSON holds the conversation. DERIVED from the state, never from the
216
+ * raw `escalated` flag: §5.1's precedence puts `error` and `offline` above
217
+ * `human`, so an escalated session with a status error showed the error
218
+ * row while the dock's mark still drew the operator's initials — the row
219
+ * saying the conversation is broken and the mark saying a person is here,
220
+ * in the same frame. One state, one answer, for both renderers.
221
+ */
222
+ readonly handoff: boolean;
223
+ /** How many cards are on the shelf — a control's own name reads it (§5.1's "{count} picks — see"). */
224
+ readonly shelfCount: number;
225
+ }
226
+ /**
227
+ * §5.1's precedence, as a function. The ONLY place a session fact becomes a
228
+ * state.
229
+ *
230
+ * @param input the session, as data — see {@link ConciergeStateInput}
231
+ * @returns the state and the facts every renderer shares
232
+ */
233
+ export declare function deriveConciergeState(input: ConciergeStateInput): ConciergeSnapshot;
234
+ //# sourceMappingURL=concierge-state.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"concierge-state.d.ts","sourceRoot":"","sources":["../src/concierge-state.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAoEG;AACH,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,0BAA0B,CAAC;AAE3D,oGAAoG;AACpG,eAAO,MAAM,gBAAgB,YAC3B,SAAS,EACT,YAAY,EACZ,WAAW,EACX,UAAU,EACV,UAAU,EACV,QAAQ,EACR,cAAc,EACd,OAAO,EACP,aAAa,EACb,QAAQ,EACR,OAAO,EACP,SAAS,EACT,OAAO,EACP,OAAO,CACC,CAAC;AAEX,MAAM,MAAM,cAAc,GAAG,CAAC,OAAO,gBAAgB,CAAC,CAAC,MAAM,CAAC,CAAC;AAE/D,2GAA2G;AAC3G,MAAM,WAAW,mBAAmB;IAClC,6EAA6E;IAC7E,QAAQ,CAAC,OAAO,EAAE,OAAO,CAAC;IAC1B,QAAQ,CAAC,KAAK,EAAE,UAAU,CAAC;IAC3B,wDAAwD;IACxD,QAAQ,CAAC,OAAO,EAAE,OAAO,CAAC;IAC1B,mGAAmG;IACnG,QAAQ,CAAC,UAAU,EAAE,OAAO,CAAC;IAC7B,0FAA0F;IAC1F,QAAQ,CAAC,UAAU,EAAE,OAAO,CAAC;IAC7B,QAAQ,CAAC,YAAY,EAAE,OAAO,CAAC;IAC/B,QAAQ,CAAC,aAAa,EAAE,OAAO,CAAC;IAChC,QAAQ,CAAC,cAAc,EAAE,OAAO,CAAC;IACjC,QAAQ,CAAC,aAAa,EAAE,OAAO,CAAC;CACjC;AAED;;;;GAIG;AACH,MAAM,WAAW,mBAAmB;IAClC,4GAA4G;IAC5G,QAAQ,CAAC,OAAO,EAAE,OAAO,CAAC;IAC1B,QAAQ,CAAC,KAAK,EAAE,mBAAmB,CAAC;IACpC,oGAAoG;IACpG,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IACvB,+DAA+D;IAC/D,QAAQ,CAAC,MAAM,EAAE,OAAO,CAAC;IACzB,8EAA8E;IAC9E,QAAQ,CAAC,YAAY,EAAE,OAAO,CAAC;IAC/B,kFAAkF;IAClF,QAAQ,CAAC,WAAW,EAAE,OAAO,CAAC;IAC9B,uFAAuF;IACvF,QAAQ,CAAC,SAAS,EAAE,OAAO,CAAC;IAC5B,8DAA8D;IAC9D,QAAQ,CAAC,YAAY,CAAC,EAAE,MAAM,CAAC;IAC/B,6FAA6F;IAC7F,QAAQ,CAAC,SAAS,EAAE,OAAO,CAAC;IAC5B;;;;;;;;;OASG;IACH,QAAQ,CAAC,gBAAgB,EAAE,OAAO,CAAC;IACnC,QAAQ,CAAC,OAAO,EAAE,OAAO,CAAC;IAC1B,QAAQ,CAAC,cAAc,CAAC,EAAE,MAAM,CAAC;IACjC;;;;OAIG;IACH,QAAQ,CAAC,KAAK,CAAC,EAAE,MAAM,CAAC;IACxB;;;;;;;;OAQG;IACH,QAAQ,CAAC,WAAW,CAAC,EAAE,SAAS,GAAG,OAAO,CAAC;IAC3C;;;;;;;;;;;;OAYG;IACH,QAAQ,CAAC,MAAM,CAAC,EAAE,MAAM,CAAC;IACzB,2DAA2D;IAC3D,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAC;IAC5B;;;;;;;OAOG;IACH,QAAQ,CAAC,aAAa,EAAE,OAAO,CAAC;IAChC,QAAQ,CAAC,SAAS,EAAE,OAAO,CAAC;IAC5B,gFAAgF;IAChF,QAAQ,CAAC,iBAAiB,CAAC,EAAE,MAAM,CAAC;IACpC,2FAA2F;IAC3F,QAAQ,CAAC,QAAQ,CAAC,EAAE,MAAM,CAAC;IAC3B,oEAAoE;IACpE,QAAQ,CAAC,MAAM,CAAC,EAAE,MAAM,CAAC;IACzB;;;;OAIG;IACH,QAAQ,CAAC,OAAO,EAAE,OAAO,GAAG,MAAM,CAAC;IACnC;;;;OAIG;IACH,QAAQ,CAAC,SAAS,EAAE,OAAO,CAAC;IAC5B;;;;OAIG;IACH,QAAQ,CAAC,QAAQ,EAAE,OAAO,CAAC;CAC5B;AAED,mHAAmH;AACnH,eAAO,MAAM,kBAAkB,EAAE,mBA2BhC,CAAC;AAEF;;;GAGG;AACH,MAAM,WAAW,iBAAiB;IAChC,QAAQ,CAAC,KAAK,EAAE,cAAc,CAAC;IAC/B;;;;;;;;;;;OAWG;IACH,QAAQ,CAAC,UAAU,EAAE,OAAO,CAAC;IAC7B;;;;;;;OAOG;IACH,QAAQ,CAAC,OAAO,EAAE,OAAO,CAAC;IAC1B,sGAAsG;IACtG,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAC;CAC7B;AAkCD;;;;;;GAMG;AACH,wBAAgB,oBAAoB,CAAC,KAAK,EAAE,mBAAmB,GAAG,iBAAiB,CAoClF"}
@@ -53,11 +53,11 @@ export interface DockDragOptions {
53
53
  * The pill, for rule 4's second half.
54
54
  *
55
55
  * The container's FLIP cannot express the pill's move: `pillAnchor` decides
56
- * which END of the container the pill hangs off, and an alignment that
57
- * changes SIDE changes that too — an untransitionable `left`/`right` swap,
58
- * on top of the container's own move. So the pill is measured in its own
59
- * right, before and after, and animated from the real first rect to the
60
- * real last one.
56
+ * where inside the container the pill sits (either END, or the middle for
57
+ * centre), and an alignment change moves that too — an untransitionable
58
+ * `left`/`right` change, on top of the container's own move. So the pill is
59
+ * measured in its own right, before and after, and animated from the real
60
+ * first rect to the real last one.
61
61
  */
62
62
  readonly pillRef?: RefObject<HTMLElement | null>;
63
63
  }
@@ -1 +1 @@
1
- {"version":3,"file":"dock-drag.d.ts","sourceRoot":"","sources":["../../src/dock/dock-drag.ts"],"names":[],"mappings":"AAEA,OAAO,EAML,KAAK,YAAY,IAAI,iBAAiB,EACtC,KAAK,SAAS,EACf,MAAM,OAAO,CAAC;AAGf,OAAO,EAKL,KAAK,YAAY,EAClB,MAAM,eAAe,CAAC;AAEvB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAuCG;AACH,MAAM,WAAW,eAAe;IAC9B,mFAAmF;IACnF,QAAQ,CAAC,OAAO,EAAE,OAAO,CAAC;IAC1B,8EAA8E;IAC9E,QAAQ,CAAC,SAAS,EAAE,YAAY,CAAC;IACjC,2EAA2E;IAC3E,QAAQ,CAAC,GAAG,EAAE,MAAM,GAAG,IAAI,CAAC;IAC5B,mEAAmE;IACnE,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAC;IAC5B;;;;;;;;;OASG;IACH,QAAQ,CAAC,OAAO,CAAC,EAAE,SAAS,CAAC,WAAW,GAAG,IAAI,CAAC,CAAC;CAClD;AAED,MAAM,WAAW,cAAc;IAC7B,+EAA+E;IAC/E,QAAQ,CAAC,KAAK,EAAE,YAAY,CAAC;IAC7B,sFAAsF;IACtF,QAAQ,CAAC,YAAY,EAAE,MAAM,OAAO,CAAC;IACrC,4DAA4D;IAC5D,QAAQ,CAAC,WAAW,EAAE;QACpB,aAAa,CAAC,EAAE,CAAC,KAAK,EAAE,iBAAiB,CAAC,WAAW,CAAC,KAAK,IAAI,CAAC;KACjE,CAAC;CACH;AAED,2DAA2D;AAC3D,eAAO,MAAM,QAAQ,iBAAiB,CAAC;AAEvC,wBAAgB,WAAW,CACzB,YAAY,EAAE;IAAE,OAAO,EAAE,WAAW,GAAG,IAAI,CAAA;CAAE,EAC7C,EAAE,OAAO,EAAE,SAAS,EAAE,GAAG,EAAE,UAAU,EAAE,OAAO,EAAE,EAAE,eAAe,GAChE,cAAc,CA2QhB;AAED,6EAA6E;AAC7E,eAAO,MAAM,kBAAkB,+BAAc,CAAC"}
1
+ {"version":3,"file":"dock-drag.d.ts","sourceRoot":"","sources":["../../src/dock/dock-drag.ts"],"names":[],"mappings":"AAEA,OAAO,EAML,KAAK,YAAY,IAAI,iBAAiB,EACtC,KAAK,SAAS,EACf,MAAM,OAAO,CAAC;AAGf,OAAO,EAML,KAAK,YAAY,EAClB,MAAM,eAAe,CAAC;AAEvB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAuCG;AACH,MAAM,WAAW,eAAe;IAC9B,mFAAmF;IACnF,QAAQ,CAAC,OAAO,EAAE,OAAO,CAAC;IAC1B,8EAA8E;IAC9E,QAAQ,CAAC,SAAS,EAAE,YAAY,CAAC;IACjC,2EAA2E;IAC3E,QAAQ,CAAC,GAAG,EAAE,MAAM,GAAG,IAAI,CAAC;IAC5B,mEAAmE;IACnE,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAC;IAC5B;;;;;;;;;OASG;IACH,QAAQ,CAAC,OAAO,CAAC,EAAE,SAAS,CAAC,WAAW,GAAG,IAAI,CAAC,CAAC;CAClD;AAED,MAAM,WAAW,cAAc;IAC7B,+EAA+E;IAC/E,QAAQ,CAAC,KAAK,EAAE,YAAY,CAAC;IAC7B,sFAAsF;IACtF,QAAQ,CAAC,YAAY,EAAE,MAAM,OAAO,CAAC;IACrC,4DAA4D;IAC5D,QAAQ,CAAC,WAAW,EAAE;QACpB,aAAa,CAAC,EAAE,CAAC,KAAK,EAAE,iBAAiB,CAAC,WAAW,CAAC,KAAK,IAAI,CAAC;KACjE,CAAC;CACH;AAED,2DAA2D;AAC3D,eAAO,MAAM,QAAQ,iBAAiB,CAAC;AAEvC,wBAAgB,WAAW,CACzB,YAAY,EAAE;IAAE,OAAO,EAAE,WAAW,GAAG,IAAI,CAAA;CAAE,EAC7C,EAAE,OAAO,EAAE,SAAS,EAAE,GAAG,EAAE,UAAU,EAAE,OAAO,EAAE,EAAE,eAAe,GAChE,cAAc,CAuRhB;AAED,6EAA6E;AAC7E,eAAO,MAAM,kBAAkB,+BAAc,CAAC"}
@@ -0,0 +1,116 @@
1
+ import type { DockTurn } from './dock.js';
2
+ /**
3
+ * THE FLOAT — docs/DOCK_SPEC.md §3.5: the last turn, on a small surface above
4
+ * the expanded row.
5
+ *
6
+ * The dock's division of labour is fixed: the CAPTION holds only what is live
7
+ * (the shopper's draft, their partial speech, the concierge's current spoken
8
+ * clause), the VISOR holds history, and this holds the one line between them
9
+ * — the last finished turn, or a text reply as it streams. It is what lets a
10
+ * shopper who never opens the visor still read what was just said, which is
11
+ * why the latest-exchange `peek` view (2026-09-11) could be retired.
12
+ *
13
+ * ## Why it no longer hides on its own (revised 2026-09-16)
14
+ *
15
+ * It used to hide as eagerly as it could: `FLOAT_HIDE_MS` (8 s) after the turn
16
+ * finished, and on any page scroll past `PAGE_SCROLL_DUCK_PX`. The reasoning
17
+ * was §1 rule 3 — the page is the shopper's — and on a real storefront it was
18
+ * backwards. The concierge answers a question ABOUT the page, so reading the
19
+ * page is what the shopper does next, and the scroll that carries them to the
20
+ * product being described was the exact gesture that deleted the description.
21
+ * Eight seconds, meanwhile, is shorter than one paragraph of an answer.
22
+ * Reported straight from the marketing site: "the last turn message should not
23
+ * disappear automatically" (2026-09-16).
24
+ *
25
+ * So the float now lasts until something REPLACES it, and the list is closed:
26
+ *
27
+ * - a NEW turn (the answer it was holding is no longer the last thing said);
28
+ * - the pill (§3.2 — the collapsed form carries nothing else), the visor
29
+ * opening (which already holds the turn), or the caption showing the same
30
+ * words — the three the dock reports through {@link DockFloatProps.suppressed};
31
+ * - the shopper DISMISSING it, which is one turn wide: the next turn is a
32
+ * different answer and shows again;
33
+ * - `FLOAT_DUCK_DISMISS_MS` after a DUCK began.
34
+ *
35
+ * The duck is the only clock, and it is not really a clock: §5.1's `ducked`
36
+ * means the shopper scrolled the merchant's page while the concierge was
37
+ * mid-reply, which the dock has already treated as a barge-in. That is a fact
38
+ * about attention rather than a guess from elapsed time, which is what the
39
+ * 8 s timer was. LEAVING the duck does not bring that turn back — the shopper
40
+ * spoke again, so a new answer is coming and replaying the abandoned one
41
+ * would put a stale line over the page at the worst moment.
42
+ *
43
+ * ## Why it stays mounted
44
+ *
45
+ * Hidden is a data attribute, never an unmount, and the last words are held
46
+ * after the turn itself goes away: §7.2's fade-out needs something to fade.
47
+ * Hidden also means `aria-hidden` and `tabIndex={-1}` — `visibility: hidden`
48
+ * does that in a browser, and the attributes say it for anything that does
49
+ * not apply the stylesheet.
50
+ *
51
+ * ## Why it is a container around one big button
52
+ *
53
+ * §11 — the whole line is the control ("tap opens the visor at `expanded`"),
54
+ * so it is a `<button>` named for what it DOES (`dock_show_conversation`) with
55
+ * its drawn content `aria-hidden`. The line itself is already in the
56
+ * transcript's `role="log"`, which announced it when it arrived; naming the
57
+ * button with it would read the reply a second time.
58
+ *
59
+ * It used to be that button and nothing else. The dismiss is a SECOND control
60
+ * on the same surface, and a `<button>` inside a `<button>` is not something
61
+ * a browser or an accessibility tree can represent — so `.wgt-float` became
62
+ * the container and the line became its child. The two are siblings, which is
63
+ * also why the dismiss cannot accidentally open the visor; it stops
64
+ * propagation anyway, because "this press is not that press" should not
65
+ * depend on a DOM shape a later change could undo.
66
+ */
67
+ export interface DockFloatProps {
68
+ /** The turn to show. Absent, or empty text, hides the float. */
69
+ readonly turn: DockTurn | undefined;
70
+ /**
71
+ * The dock's own reasons the float must not show right now: the pill form,
72
+ * an open visor, the caption already showing these words.
73
+ */
74
+ readonly suppressed: boolean;
75
+ /**
76
+ * §5.1's `ducked` — the shopper turned to the page mid-reply.
77
+ *
78
+ * The float goes `FLOAT_DUCK_DISMISS_MS` after this goes true. A duck that
79
+ * ENDS inside the window simply cancels it: nothing was hidden, so there is
80
+ * nothing to bring back.
81
+ */
82
+ readonly ducked: boolean;
83
+ /**
84
+ * The concierge's display name — the speaker label on its lines, and the
85
+ * FALLBACK for any turn that named no speaker of its own.
86
+ *
87
+ * A turn carrying `speakerName` (§3.5 — an operator's line after a handoff)
88
+ * uses that instead. The fallback is not a degraded case: a tenant who never
89
+ * turned `handoff.showOperatorName` on sends no name on any turn ever, and
90
+ * their shopper keeps reading the concierge's name exactly as they did
91
+ * before the handoff.
92
+ */
93
+ readonly agentName: string;
94
+ /** `dock_float_you` — the speaker label on the shopper's own line. */
95
+ readonly youLabel: string;
96
+ /** The line button's accessible name (`dock_show_conversation`). */
97
+ readonly label: string;
98
+ /** The dismiss control's accessible name (`dock_float_dismiss`). */
99
+ readonly dismissLabel: string;
100
+ readonly onOpen: () => void;
101
+ /**
102
+ * The shopper pressed the dismiss, and the FOCUS has to go somewhere (§11).
103
+ *
104
+ * The control that was pressed is about to sit inside an `aria-hidden`
105
+ * subtree with `tabIndex={-1}` on it; a real browser drops focus off a
106
+ * `visibility: hidden` element to `<body>`, which is outside the widget
107
+ * entirely. Either way a keyboard or screen-reader user was stranded: the
108
+ * next Tab restarted from the top of the merchant's page.
109
+ *
110
+ * The dock answers with the caption field, which is where a shopper who has
111
+ * just put an answer away is going next anyway.
112
+ */
113
+ readonly onDismiss?: () => void;
114
+ }
115
+ export declare function DockFloat({ turn, suppressed, ducked, agentName, youLabel, label, dismissLabel, onOpen, onDismiss, }: DockFloatProps): import("react").JSX.Element | null;
116
+ //# sourceMappingURL=dock-float.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"dock-float.d.ts","sourceRoot":"","sources":["../../src/dock/dock-float.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,WAAW,CAAC;AAG1C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgEG;AACH,MAAM,WAAW,cAAc;IAC7B,gEAAgE;IAChE,QAAQ,CAAC,IAAI,EAAE,QAAQ,GAAG,SAAS,CAAC;IACpC;;;OAGG;IACH,QAAQ,CAAC,UAAU,EAAE,OAAO,CAAC;IAC7B;;;;;;OAMG;IACH,QAAQ,CAAC,MAAM,EAAE,OAAO,CAAC;IACzB;;;;;;;;;OASG;IACH,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAC;IAC3B,sEAAsE;IACtE,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC;IAC1B,oEAAoE;IACpE,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IACvB,oEAAoE;IACpE,QAAQ,CAAC,YAAY,EAAE,MAAM,CAAC;IAC9B,QAAQ,CAAC,MAAM,EAAE,MAAM,IAAI,CAAC;IAC5B;;;;;;;;;;;OAWG;IACH,QAAQ,CAAC,SAAS,CAAC,EAAE,MAAM,IAAI,CAAC;CACjC;AA6BD,wBAAgB,SAAS,CAAC,EACxB,IAAI,EACJ,UAAU,EACV,MAAM,EACN,SAAS,EACT,QAAQ,EACR,KAAK,EACL,YAAY,EACZ,MAAM,EACN,SAAS,GACV,EAAE,cAAc,sCA0IhB"}