@sapia-ai/chatbot-v3 1.4.2 → 1.6.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 (53) hide show
  1. package/dist/{EmbeddedVideoPlayer-G554aRrZ.js → EmbeddedVideoPlayer-Bhz8DKO8.js} +14 -14
  2. package/dist/{Preview-CSE0hI6e.js → Preview-B1ZmYM9V.js} +3 -3
  3. package/dist/api/client.d.ts +9 -1
  4. package/dist/api/types/messages.d.ts +8 -1
  5. package/dist/api/types/responses.d.ts +69 -12
  6. package/dist/api.js +2 -2
  7. package/dist/{client-DG-5x86F.js → client-C2MWNOYf.js} +559 -546
  8. package/dist/core/bubbles/cards.d.ts +3 -1
  9. package/dist/core/bubbles/demographicRun.d.ts +57 -0
  10. package/dist/core/bubbles/selection.d.ts +3 -1
  11. package/dist/core/bubbles/types.d.ts +11 -0
  12. package/dist/core/interview/engine.d.ts +45 -5
  13. package/dist/core/interview/reveal.d.ts +5 -2
  14. package/dist/core/persistence.d.ts +4 -0
  15. package/dist/core/store.d.ts +15 -2
  16. package/dist/core/theme/branding.d.ts +5 -2
  17. package/dist/{dist-DsGdVwdi.js → dist-CoO0i-y0.js} +3 -3
  18. package/dist/embed/createChatbot.d.ts +0 -2
  19. package/dist/{fix-webm-duration-Bie2OG-n.js → fix-webm-duration-CXijcUXq.js} +2 -2
  20. package/dist/index.js +6292 -5783
  21. package/dist/{jsx-runtime-B5vw3nIj.js → jsx-runtime-BcXxfixh.js} +2 -2
  22. package/dist/react/AnswerInput.d.ts +6 -1
  23. package/dist/react/SapiaChatbot.d.ts +1 -3
  24. package/dist/react/bubbleViewModel.d.ts +21 -1
  25. package/dist/react/strings.d.ts +9 -4
  26. package/dist/react/useDemographicForm.d.ts +14 -0
  27. package/dist/react/useVideoRecorder.d.ts +25 -4
  28. package/dist/{react-CN-F_7qV.js → react-Cp-K_L89.js} +3 -3
  29. package/dist/{react-_TUsDaHa.js → react-D3tMg8u4.js} +3 -3
  30. package/dist/{react-T5LsuM9r.js → react-D8jZKei2.js} +3 -3
  31. package/dist/{react-B46N_vb_.js → react-DtGzNzM1.js} +3 -3
  32. package/dist/{react-SKFkpgRr.js → react-LDcTld2q.js} +3 -3
  33. package/dist/{react-Dd6J2Pyv.js → react-g5b2mM7w.js} +3 -3
  34. package/dist/{react-abEVBgXB.js → react-hklchtwF.js} +3 -3
  35. package/dist/{react-CpnhkRge.js → react-vc8uDric.js} +3 -3
  36. package/dist/{react-DHdgNnK2.js → react-wrZMUHWq.js} +2 -2
  37. package/dist/ui/chat/ActionDock/ActionDock.d.ts +5 -0
  38. package/dist/ui/chat/ChatLog/ChatLog.d.ts +3 -7
  39. package/dist/ui/chat/DemographicDetailsCard/DemographicDetailsCard.d.ts +14 -0
  40. package/dist/ui/chat/TypingIndicator/TypingIndicator.d.ts +9 -25
  41. package/dist/ui/chat/types.d.ts +13 -1
  42. package/dist/ui/inputs/DemographicForm/DemographicForm.d.ts +35 -0
  43. package/dist/ui/inputs/LocationAnswerInput/LocationCombobox.d.ts +4 -2
  44. package/dist/ui/inputs/OptionList/OptionList.d.ts +4 -0
  45. package/dist/ui/inputs/VideoRecorder/VideoRecorder.d.ts +10 -1
  46. package/dist/ui/inputs/formCard.d.ts +13 -0
  47. package/dist/ui/media/VideoPlayer/VideoPlayer.d.ts +8 -4
  48. package/dist/ui/primitives/Dialog/Dialog.d.ts +2 -0
  49. package/dist/ui/shell/AgcGuidanceDialog/AgcGuidanceDialog.d.ts +13 -0
  50. package/dist/ui/shell/DoneScreen/DoneScreen.d.ts +3 -1
  51. package/dist/ui/shell/LogoTile/LogoTile.d.ts +15 -0
  52. package/dist-umd/sapia-chatbot.umd.js +295 -295
  53. package/package.json +1 -1
@@ -0,0 +1,13 @@
1
+ export type AgcGuidanceDialogProps = {
2
+ title: string;
3
+ /** Multi-paragraph guidance copy (markdown), written in the translation file. */
4
+ body: string;
5
+ checkboxLabel: string;
6
+ ctaLabel: string;
7
+ onAcknowledge: () => void;
8
+ };
9
+ /**
10
+ * Acknowledging is the only way out: no onClose, because Escape or an overlay click would skip
11
+ * the undertaking the tick represents.
12
+ */
13
+ export declare const AgcGuidanceDialog: ({ title, body, checkboxLabel, ctaLabel, onAcknowledge, }: AgcGuidanceDialogProps) => import("react").JSX.Element;
@@ -6,9 +6,11 @@ export type DoneScreenLabels = {
6
6
  };
7
7
  export type DoneScreenProps = {
8
8
  labels: DoneScreenLabels;
9
+ /** Customer logo; the screen carries no brand mark when it is absent or fails to load. */
10
+ logoUrl?: string;
9
11
  /** Pre-validated absolute URL to continue to; omitted when the host supplied none. */
10
12
  redirectUrl?: string;
11
13
  redirectLabel?: string;
12
14
  };
13
15
  /** Completion screen shown when the interview has ended. */
14
- export declare const DoneScreen: ({ labels, redirectUrl, redirectLabel }: DoneScreenProps) => import("react").JSX.Element;
16
+ export declare const DoneScreen: ({ labels, logoUrl, redirectUrl, redirectLabel }: DoneScreenProps) => import("react").JSX.Element;
@@ -0,0 +1,15 @@
1
+ export declare enum LogoTileSize {
2
+ Compact = "compact",
3
+ Large = "large"
4
+ }
5
+ export type LogoTileProps = {
6
+ src?: string;
7
+ size?: LogoTileSize;
8
+ alt?: string;
9
+ className?: string;
10
+ };
11
+ /**
12
+ * Customer logo on a white square tile. Renders nothing when there is no logo or it fails to
13
+ * load — a broken-image glyph would read as a fault on a candidate-facing surface.
14
+ */
15
+ export declare const LogoTile: ({ src, alt, size, className, }: LogoTileProps) => import("react").JSX.Element | null;