@saar-ai/web-widget 0.5.0 → 0.6.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.
Files changed (63) hide show
  1. package/dist/card-aspect.d.ts +58 -0
  2. package/dist/card-aspect.d.ts.map +1 -0
  3. package/dist/chunks/{host-widget-B0SkhMIs.js → host-widget-CAPud_Jz.js} +4609 -5776
  4. package/dist/chunks/{telemetry-Bw-3F_Zk.js → telemetry-BI_SEWTb.js} +104 -2
  5. package/dist/dock/dock-caption.d.ts +67 -0
  6. package/dist/dock/dock-caption.d.ts.map +1 -0
  7. package/dist/dock/dock-motion.d.ts +270 -0
  8. package/dist/dock/dock-motion.d.ts.map +1 -0
  9. package/dist/dock/dock-pill.d.ts +38 -0
  10. package/dist/dock/dock-pill.d.ts.map +1 -0
  11. package/dist/dock/dock-row.d.ts +120 -0
  12. package/dist/dock/dock-row.d.ts.map +1 -0
  13. package/dist/dock/dock-sheet.d.ts +89 -0
  14. package/dist/dock/dock-sheet.d.ts.map +1 -0
  15. package/dist/dock/dock-shelf.d.ts +38 -0
  16. package/dist/dock/dock-shelf.d.ts.map +1 -0
  17. package/dist/dock/dock-state.d.ts +221 -0
  18. package/dist/dock/dock-state.d.ts.map +1 -0
  19. package/dist/dock/dock.d.ts +344 -0
  20. package/dist/dock/dock.d.ts.map +1 -0
  21. package/dist/dock/geometry.d.ts +161 -0
  22. package/dist/dock/geometry.d.ts.map +1 -0
  23. package/dist/dock/motion-gate.d.ts +123 -0
  24. package/dist/dock/motion-gate.d.ts.map +1 -0
  25. package/dist/generated/widget-css.d.ts.map +1 -1
  26. package/dist/host-widget.d.ts +94 -16
  27. package/dist/host-widget.d.ts.map +1 -1
  28. package/dist/index.d.ts +7 -3
  29. package/dist/index.d.ts.map +1 -1
  30. package/dist/index.js +4029 -7
  31. package/dist/messages.d.ts +69 -0
  32. package/dist/messages.d.ts.map +1 -1
  33. package/dist/next/index.js +1 -1
  34. package/dist/session-log.d.ts +7 -0
  35. package/dist/session-log.d.ts.map +1 -1
  36. package/dist/session-panel.d.ts +13 -3
  37. package/dist/session-panel.d.ts.map +1 -1
  38. package/dist/theme/color.d.ts +114 -0
  39. package/dist/theme/color.d.ts.map +1 -0
  40. package/dist/theme/derive.d.ts +92 -0
  41. package/dist/theme/derive.d.ts.map +1 -0
  42. package/dist/theme/index.d.ts +10 -0
  43. package/dist/theme/index.d.ts.map +1 -0
  44. package/dist/use-chat-session.d.ts +18 -16
  45. package/dist/use-chat-session.d.ts.map +1 -1
  46. package/dist/use-voice-session.d.ts +79 -3
  47. package/dist/use-voice-session.d.ts.map +1 -1
  48. package/dist/voice-widget.d.ts +49 -19
  49. package/dist/voice-widget.d.ts.map +1 -1
  50. package/dist/widget-cards.d.ts +28 -1
  51. package/dist/widget-cards.d.ts.map +1 -1
  52. package/dist/widget.css +1 -1
  53. package/package.json +4 -4
  54. package/src/styles/concierge.css +758 -28
  55. package/src/styles/tokens.css +67 -0
  56. package/dist/concierge-launcher.d.ts +0 -53
  57. package/dist/concierge-launcher.d.ts.map +0 -1
  58. package/dist/concierge-shell.d.ts +0 -256
  59. package/dist/concierge-shell.d.ts.map +0 -1
  60. package/dist/position.d.ts +0 -65
  61. package/dist/position.d.ts.map +0 -1
  62. package/dist/transcript-geometry.d.ts +0 -220
  63. package/dist/transcript-geometry.d.ts.map +0 -1
@@ -4,7 +4,10 @@ import type { WidgetChatCart } from '@saar-ai/widget-protocol/chat';
4
4
  import { type ChatCardItem, type ChatCheckoutHandoff } from './use-chat-session.js';
5
5
  import { type VoiceSession } from './use-voice-session.js';
6
6
  import type { WidgetCartLine } from './widget-cart-summary.js';
7
- import { type ConciergeCallPhase, type WidgetAttribution } from './concierge-shell.js';
7
+ import type { ConciergeCallPhase, WidgetAttribution } from './voice-widget.js';
8
+ import type { DockAvatarKind } from './dock/dock-row.js';
9
+ import type { DockCopyView, DockLayoutView } from './dock/dock.js';
10
+ import type { WidgetColorConfig, WidgetTypeConfig } from './theme/derive.js';
8
11
  import { type WidgetMessages } from './messages.js';
9
12
  import type { WidgetAvatar } from './avatar.js';
10
13
  /**
@@ -289,23 +292,52 @@ export interface ConciergeWidgetProps {
289
292
  /** Builds a truncated curation's "See all N" href. */
290
293
  readonly curationHref?: (curationId: string) => string;
291
294
  /**
292
- * Whether the panel starts OPEN. Defaults to `false` — a host that renders
293
- * this component into its own page wants the collapsed launcher first.
295
+ * The tenant's published v2 config groups (docs/DOCK_SPEC.md §9.1), sourced
296
+ * from `GET /widget/config/:embedKey` by whoever mounts this component —
297
+ * never the session response. Every one of them is optional and every one
298
+ * has a shipped default, so a host that knows none of them (an npm consumer,
299
+ * a preview harness) still gets a correct dock.
294
300
  *
295
- * The CDN embed is the case that needs `true`: `core.ts` shows its own
296
- * plain-DOM launcher pill BEFORE React exists at all, and only loads
297
- * `ui.mjs` once the visitor presses it. That press is the open — by the
298
- * time this component mounts, the shopper has already asked for the panel,
299
- * and the pill they pressed no longer exists. Booting closed there hands
300
- * them React's launcher in the same spot instead of the conversation they
301
- * asked for (SAA-131).
301
+ * `defaultOpen` is GONE with the panel it belonged to. The dock has no open
302
+ * state at all — a pill, a row, and a sheet that rises when there is
303
+ * something to show — which is what structurally retires SAA-131: there is
304
+ * nothing left for a handover to lose but a draft and a focus target, and
305
+ * §4.2 carries both.
306
+ */
307
+ readonly color?: WidgetColorConfig;
308
+ readonly type?: WidgetTypeConfig;
309
+ /** §9.1's `identity` group — the concierge's own name and mark. */
310
+ readonly identity?: {
311
+ readonly name?: string;
312
+ readonly avatar?: DockAvatarKind;
313
+ readonly avatarUrl?: string;
314
+ };
315
+ readonly layout?: DockLayoutView;
316
+ readonly copy?: DockCopyView;
317
+ /** §9.1 `layout.bottomOffset` — `'auto'` runs §8.3's sticky-footer detector. */
318
+ readonly bottomOffset?: 'auto' | number;
319
+ /** §9.1 `cards.showPrice`. */
320
+ readonly showPrice?: boolean;
321
+ /** §9.1 `cards.imageAspect` — the fixed box every card thumbnail is drawn in. */
322
+ readonly cardImageAspect?: 'square' | 'portrait' | 'landscape';
323
+ /**
324
+ * §8.4 — voice is available in THIS browser, as the core stage judged it.
302
325
  *
303
- * Uncontrolled, deliberately: this is the INITIAL state, not a binding.
304
- * The widget owns open/close from then on, and a host that wants to drive
305
- * it should compose `VoiceWidget`'s `open`/`onOpenChange` directly — see
306
- * this component's doc comment.
326
+ * `session.modalities.voice` is the SERVER's answer and it knows nothing
327
+ * about the page the shopper is on. An embedded webview (Instagram,
328
+ * Facebook, Line, ChatGPT's in-app browser) has no usable
329
+ * `getUserMedia`, and the core dock already withholds the microphone
330
+ * there — so without this the React dock drew one the moment it mounted:
331
+ * the shopper taps the pill and gets a control that can never work, on
332
+ * exactly the traffic §8.4 was written for. Absent ⇒ no opinion, and the
333
+ * server's answer stands, which is right for a host that is not the CDN
334
+ * embed.
307
335
  */
308
- readonly defaultOpen?: boolean;
336
+ readonly voiceAvailable?: boolean;
337
+ /** §9.4's resolved reading direction. */
338
+ readonly direction?: 'ltr' | 'rtl';
339
+ /** §5.6 — a proactive rule fired; the line it wants in the caption for 8 s. */
340
+ readonly proactive?: string;
309
341
  /**
310
342
  * Called if this widget's OWN render throws — never surfaced to the host
311
343
  * page otherwise (see `error-boundary.tsx`). Optional; the default is to
@@ -320,6 +352,52 @@ export interface ConciergeWidgetProps {
320
352
  * component resolves no identity of its own.
321
353
  */
322
354
  readonly attribution?: WidgetAttribution;
355
+ /**
356
+ * DOCK_SPEC §4.2's HANDOVER payload — everything the core dock
357
+ * (`cdn/dock-dom.ts`) captured at the instant the shopper expressed intent,
358
+ * so the first React render is already correct instead of catching up a
359
+ * frame later.
360
+ *
361
+ * All seven are OPTIONAL and, as of this change, all seven are IGNORED by
362
+ * this component: PR 4's React dock is what consumes them. That is
363
+ * deliberate rather than premature — the core half and the React half ship
364
+ * as separate PRs, and the core half cannot land without somewhere to send
365
+ * the payload. A caller that renders `ConciergeWidget` directly (a Next.js
366
+ * host, an npm consumer) has no dock in front of it and passes none of them.
367
+ *
368
+ * None of these can be recovered after the fact, which is why they cross
369
+ * the boundary at all: the caret is gone the moment focus moves, the hold
370
+ * gesture is over, and iOS will not unlock audio outside the gesture that
371
+ * started it (§8.5) — so the `AudioContext` is constructed inside the mic's
372
+ * `pointerdown` and handed over as a live object.
373
+ */
374
+ readonly initialDraft?: string;
375
+ readonly initialSelection?: {
376
+ start: number;
377
+ end: number;
378
+ };
379
+ readonly initialFocus?: 'composer' | 'mic' | null;
380
+ readonly initialMinimised?: boolean;
381
+ /** The measured insets (§8.1–§8.3) at the moment of intent. */
382
+ readonly insets?: {
383
+ kb: number;
384
+ hostOffset: number;
385
+ };
386
+ /** The hold-to-talk gesture (§5.2). `releasedAt` absent ⇒ still held. */
387
+ readonly hold?: {
388
+ downAt: number;
389
+ releasedAt?: number;
390
+ };
391
+ /** The `AudioContext` the mic gesture unlocked (§8.5). */
392
+ readonly audio?: {
393
+ context: AudioContext;
394
+ };
395
+ /**
396
+ * §4.2 step 3 — called from the dock's FIRST layout effect. `cdn/ui.ts`
397
+ * makes the React container visible and `cdn/core.ts` removes its own row
398
+ * inside the same synchronous render, so the swap is one paint.
399
+ */
400
+ readonly onReady?: () => void;
323
401
  }
324
402
  /**
325
403
  * The plain React widget component — for a Next.js host (Phase 5's npm
@@ -357,5 +435,5 @@ export interface ConciergeWidgetProps {
357
435
  * about offering voice here costs a byte until a caller actually presses
358
436
  * the microphone.
359
437
  */
360
- export declare function ConciergeWidget({ embedKey, apiBase, socketUrl, socketPath, bridge, collector, messages, locale, productHref, curationHref, brandPrimary, brandSecondary, brandAccent, avatar, defaultOpen, attribution, }: ConciergeWidgetProps): import("react").JSX.Element;
438
+ export declare function ConciergeWidget({ embedKey, apiBase, socketUrl, socketPath, bridge, collector, messages, locale, productHref, curationHref, brandPrimary, brandSecondary, brandAccent, avatar, attribution, color, type, identity, layout, copy, bottomOffset, showPrice, cardImageAspect, voiceAvailable, direction, proactive, initialDraft, initialSelection, initialFocus, initialMinimised, insets, hold, audio, onReady, }: ConciergeWidgetProps): import("react").JSX.Element;
361
439
  //# sourceMappingURL=host-widget.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"host-widget.d.ts","sourceRoot":"","sources":["../src/host-widget.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAmB,YAAY,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAC;AACxF,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,wBAAwB,CAAC;AAIpE,OAAO,KAAK,EAAE,cAAc,EAAoB,MAAM,+BAA+B,CAAC;AAEtF,OAAO,EAAkB,KAAK,YAAY,EAAE,KAAK,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AACpG,OAAO,EAGL,KAAK,YAAY,EAClB,MAAM,wBAAwB,CAAC;AAEhC,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAC;AAC/D,OAAO,EAAE,KAAK,kBAAkB,EAAE,KAAK,iBAAiB,EAAE,MAAM,sBAAsB,CAAC;AACvF,OAAO,EAAyB,KAAK,cAAc,EAAE,MAAM,eAAe,CAAC;AAE3E,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAEhD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgCG;AACH,wBAAgB,uBAAuB,CACrC,MAAM,EAAE,UAAU,GAAG,SAAS,EAC9B,WAAW,EAAE,CAAC,CAAC,MAAM,EAAE,MAAM,KAAK,MAAM,CAAC,GAAG,SAAS;AACrD;;;;;;;;;;;;;;;;;GAiBG;AACH,OAAO,CAAC,EAAE,CAAC,IAAI,EAAE,YAAY,KAAK,IAAI,GACrC,CAAC,CAAC,IAAI,EAAE,YAAY,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC,GAAG,SAAS,CAmDrD;AAuBD;;;;;;;;;;;GAWG;AACH,MAAM,WAAW,aAAc,SAAQ,cAAc;IACnD,QAAQ,CAAC,SAAS,CAAC,EAAE,MAAM,CAAC;CAC7B;AAED;;;;;;;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AG,EAAE,MAAM,CAAA;KAAE,CAAC;IAC3D,QAAQ,CAAC,YAAY,CAAC,EAAE,UAAU,GAAG,KAAK,GAAG,IAAI,CAAC;IAClD,QAAQ,CAAC,gBAAgB,CAAC,EAAE,OAAO,CAAC;IACpC,+DAA+D;IAC/D,QAAQ,CAAC,MAAM,CAAC,EAAE;QAAE,EAAE,EAAE,MAAM,CAAC;QAAC,UAAU,EAAE,MAAM,CAAA;KAAE,CAAC;IACrD,yEAAyE;IACzE,QAAQ,CAAC,IAAI,CAAC,EAAE;QAAE,MAAM,EAAE,MAAM,CAAC;QAAC,UAAU,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC;IACxD,0DAA0D;IAC1D,QAAQ,CAAC,KAAK,CAAC,EAAE;QAAE,OAAO,EAAE,YAAY,CAAA;KAAE,CAAC;IAC3C;;;;OAIG;IACH,QAAQ,CAAC,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;CAC/B;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAmCG;AACH,wBAAgB,eAAe,CAAC,EAC9B,QAAQ,EACR,OAAO,EACP,SAAS,EACT,UAAU,EACV,MAAM,EACN,SAAS,EACT,QAAgC,EAChC,MAAa,EACb,WAAW,EACX,YAAY,EACZ,YAAY,EACZ,cAAc,EACd,WAAW,EACX,MAAM,EACN,WAAW,EACX,KAAK,EACL,IAAI,EACJ,QAAQ,EACR,MAAM,EACN,IAAI,EACJ,YAAY,EACZ,SAAS,EACT,eAAe,EACf,cAAc,EACd,SAAS,EACT,SAAS,EACT,YAAY,EACZ,gBAAgB,EAChB,YAAY,EACZ,gBAAgB,EAChB,MAAM,EACN,IAAI,EACJ,KAAK,EACL,OAAO,GACR,EAAE,oBAAoB,+BAi1CtB"}
package/dist/index.d.ts CHANGED
@@ -1,11 +1,13 @@
1
1
  export * from './bot-face.js';
2
2
  export * from './rope-knot.js';
3
3
  export * from './avatar.js';
4
- export * from './concierge-launcher.js';
5
- export * from './concierge-shell.js';
6
- export * from './position.js';
7
4
  export * from './morphing-loader.js';
8
5
  export { cn } from './cn.js';
6
+ export { Dock } from './dock/dock.js';
7
+ export type { DockProps, DockVoiceProps, DockLayoutView, DockCopyView, WidgetAttribution, } from './dock/dock.js';
8
+ export type { DockIdentityView, DockAvatarKind, DockMicSource } from './dock/dock-row.js';
9
+ export type { DockSheetSnap } from './dock/dock-sheet.js';
10
+ export * from './dock/dock-state.js';
9
11
  export * from './messages.js';
10
12
  export * from './bot-state.js';
11
13
  export * from './bot-avatar.js';
@@ -19,6 +21,8 @@ export * from './widget-cart-summary.js';
19
21
  export * from './voice-widget.js';
20
22
  export * from './use-chat-session.js';
21
23
  export * from './use-voice-session.js';
24
+ export * from './theme/index.js';
25
+ export * from './dock/geometry.js';
22
26
  export * from './text-direction.js';
23
27
  export * from './format-money.js';
24
28
  export * from './host-widget.js';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAYA,cAAc,eAAe,CAAC;AAC9B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,aAAa,CAAC;AAC5B,cAAc,yBAAyB,CAAC;AACxC,cAAc,sBAAsB,CAAC;AACrC,cAAc,eAAe,CAAC;AAC9B,cAAc,sBAAsB,CAAC;AACrC,OAAO,EAAE,EAAE,EAAE,MAAM,SAAS,CAAC;AAG7B,cAAc,eAAe,CAAC;AAG9B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,iBAAiB,CAAC;AAChC,cAAc,kBAAkB,CAAC;AACjC,cAAc,iBAAiB,CAAC;AAChC,cAAc,0BAA0B,CAAC;AACzC,cAAc,oBAAoB,CAAC;AACnC,cAAc,sBAAsB,CAAC;AACrC,cAAc,mBAAmB,CAAC;AAClC,cAAc,0BAA0B,CAAC;AACzC,cAAc,mBAAmB,CAAC;AAClC,cAAc,uBAAuB,CAAC;AACtC,cAAc,wBAAwB,CAAC;AAIvC,cAAc,qBAAqB,CAAC;AACpC,cAAc,m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