@alfadocs/ui-kit 1.134.0 → 1.135.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 (125) hide show
  1. package/dist/_chunks/ai-summary-panel-B70S2lgC.js +455 -0
  2. package/dist/_chunks/{alia-sidebar-CK1zw_Bc.js → alia-sidebar-CtwhdASP.js} +3 -3
  3. package/dist/_chunks/{appointment-card-DG3m9yN-.js → appointment-card-BT1cMZIX.js} +2 -2
  4. package/dist/_chunks/{appointment-peek-BK0tDs4C.js → appointment-peek-BP_ACFz5.js} +2 -2
  5. package/dist/_chunks/{appointment-timeline-BiI2riRZ.js → appointment-timeline-Dy4YQJ17.js} +2 -2
  6. package/dist/_chunks/{appointment-tray-ClJCtYQj.js → appointment-tray-B3gSHL1j.js} +2 -2
  7. package/dist/_chunks/{calendar-appointment-editor-dialog-BSkIYGlW.js → calendar-appointment-editor-dialog-I5PfWudy.js} +8 -8
  8. package/dist/_chunks/{chat-container-B83b4hut.js → chat-container-CoOT7dzB.js} +37 -36
  9. package/dist/_chunks/{chat-input-DwQ4_WXK.js → chat-input-CX4dxBq7.js} +85 -84
  10. package/dist/_chunks/communications-panel-BKPHCiMB.js +973 -0
  11. package/dist/_chunks/{entity-summary-KHM0PnSI.js → entity-summary-CpNk6ybN.js} +70 -69
  12. package/dist/_chunks/get-error-message-DbFUzuja.js +7 -0
  13. package/dist/_chunks/handled-rejection-C-6Dq0As.js +9 -0
  14. package/dist/_chunks/megaphone-CzeTT9B3.js +22 -0
  15. package/dist/_chunks/{notes-panel-BAyPOr8N.js → notes-panel-BvjAo4RQ.js} +5 -4
  16. package/dist/_chunks/{patient-account-settings-BkAtIxJW.js → patient-account-settings-B2XbN_Fe.js} +2 -2
  17. package/dist/_chunks/{patient-check-in-resume-xhqjC6gf.js → patient-check-in-resume-B7NY-6KI.js} +4 -4
  18. package/dist/_chunks/{portal-details-CTEsm705.js → portal-details-DCIiGkHA.js} +2 -2
  19. package/dist/_chunks/{portal-documents-D8skew0h.js → portal-documents-DJOH8pZx.js} +2 -2
  20. package/dist/_chunks/{portal-parts-BdR29P7z.js → portal-parts-Br8wuala.js} +2 -2
  21. package/dist/_chunks/signing-end-screen-BdhbkPKO.js +1355 -0
  22. package/dist/_chunks/{task-editor-g1AGfxhr.js → task-editor-DvwqPfFR.js} +3 -2
  23. package/dist/_chunks/{tasks-panel-BE3zaayj.js → tasks-panel-6EzdnwT8.js} +155 -171
  24. package/dist/_chunks/{use-appointment-details-read-Dzc6fEzG.js → use-appointment-details-read-6_OmOwUs.js} +110 -109
  25. package/dist/_chunks/{workflow-status-D1WgGVTP.js → workflow-status-CO0mxXs2.js} +3 -2
  26. package/dist/agent-catalog.json +251 -1
  27. package/dist/agent-i18n/en.json +28 -0
  28. package/dist/browser-support.js +1 -1
  29. package/dist/components/_shared/sms-segments.d.ts +43 -0
  30. package/dist/components/ai-summary-panel/ai-summary-panel.agent.d.ts +4 -0
  31. package/dist/components/ai-summary-panel/ai-summary-panel.d.ts +71 -0
  32. package/dist/components/ai-summary-panel/index.d.ts +4 -0
  33. package/dist/components/ai-summary-panel/index.js +6 -0
  34. package/dist/components/appointment-card/index.js +2 -2
  35. package/dist/components/appointment-details-panel/index.js +1 -1
  36. package/dist/components/appointment-peek/index.js +1 -1
  37. package/dist/components/appointment-timeline/index.js +1 -1
  38. package/dist/components/chat-container/chat-container.d.ts +7 -0
  39. package/dist/components/chat-container/index.js +1 -1
  40. package/dist/components/chat-input/chat-input.d.ts +3 -0
  41. package/dist/components/chat-input/index.js +1 -1
  42. package/dist/components/communications-panel/communications-panel.agent.d.ts +4 -0
  43. package/dist/components/communications-panel/communications-panel.d.ts +136 -0
  44. package/dist/components/communications-panel/index.d.ts +6 -0
  45. package/dist/components/communications-panel/index.js +7 -0
  46. package/dist/components/entity-summary/entity-summary.d.ts +8 -0
  47. package/dist/components/entity-summary/index.js +1 -1
  48. package/dist/components/index.d.ts +2 -0
  49. package/dist/components/notes-panel/index.js +1 -1
  50. package/dist/components/task-editor/index.js +1 -1
  51. package/dist/components/tasks-panel/index.js +1 -1
  52. package/dist/components/workflow-status/index.js +1 -1
  53. package/dist/core.css +1 -1
  54. package/dist/host-compat.css +10 -4
  55. package/dist/i18n/locales/ar.d.ts +93 -0
  56. package/dist/i18n/locales/ar.js +94 -0
  57. package/dist/i18n/locales/de.d.ts +93 -0
  58. package/dist/i18n/locales/de.js +94 -0
  59. package/dist/i18n/locales/el.d.ts +93 -0
  60. package/dist/i18n/locales/el.js +94 -0
  61. package/dist/i18n/locales/en.d.ts +93 -0
  62. package/dist/i18n/locales/en.js +94 -0
  63. package/dist/i18n/locales/es.d.ts +93 -0
  64. package/dist/i18n/locales/es.js +94 -0
  65. package/dist/i18n/locales/fr.d.ts +93 -0
  66. package/dist/i18n/locales/fr.js +94 -0
  67. package/dist/i18n/locales/hi.d.ts +93 -0
  68. package/dist/i18n/locales/hi.js +94 -0
  69. package/dist/i18n/locales/it.d.ts +93 -0
  70. package/dist/i18n/locales/it.js +94 -0
  71. package/dist/i18n/locales/ja.d.ts +93 -0
  72. package/dist/i18n/locales/ja.js +94 -0
  73. package/dist/i18n/locales/nl.d.ts +93 -0
  74. package/dist/i18n/locales/nl.js +94 -0
  75. package/dist/i18n/locales/pl.d.ts +93 -0
  76. package/dist/i18n/locales/pl.js +94 -0
  77. package/dist/i18n/locales/pt.d.ts +93 -0
  78. package/dist/i18n/locales/pt.js +94 -0
  79. package/dist/i18n/locales/ro.d.ts +93 -0
  80. package/dist/i18n/locales/ro.js +94 -0
  81. package/dist/i18n/locales/ru.d.ts +93 -0
  82. package/dist/i18n/locales/ru.js +94 -0
  83. package/dist/i18n/locales/sq.d.ts +93 -0
  84. package/dist/i18n/locales/sq.js +94 -0
  85. package/dist/i18n/locales/sv.d.ts +93 -0
  86. package/dist/i18n/locales/sv.js +94 -0
  87. package/dist/i18n/locales/tr.d.ts +93 -0
  88. package/dist/i18n/locales/tr.js +94 -0
  89. package/dist/i18n/locales/zh.d.ts +93 -0
  90. package/dist/i18n/locales/zh.js +94 -0
  91. package/dist/index.js +893 -886
  92. package/dist/locales/ar.json +93 -0
  93. package/dist/locales/de.json +93 -0
  94. package/dist/locales/el.json +93 -0
  95. package/dist/locales/en.json +93 -0
  96. package/dist/locales/es.json +93 -0
  97. package/dist/locales/fr.json +93 -0
  98. package/dist/locales/hi.json +93 -0
  99. package/dist/locales/it.json +93 -0
  100. package/dist/locales/ja.json +93 -0
  101. package/dist/locales/nl.json +93 -0
  102. package/dist/locales/pl.json +93 -0
  103. package/dist/locales/pt.json +93 -0
  104. package/dist/locales/ro.json +93 -0
  105. package/dist/locales/ru.json +93 -0
  106. package/dist/locales/sq.json +93 -0
  107. package/dist/locales/sv.json +93 -0
  108. package/dist/locales/tr.json +93 -0
  109. package/dist/locales/zh.json +93 -0
  110. package/dist/patterns/alia-assistant/index.js +1 -1
  111. package/dist/patterns/calendar/calendar.journey.d.ts +7 -0
  112. package/dist/patterns/calendar/index.js +1 -1
  113. package/dist/patterns/patient-account-settings/index.js +1 -1
  114. package/dist/patterns/patient-check-in/index.js +1 -1
  115. package/dist/patterns/patient-portal/index.js +2 -2
  116. package/dist/patterns/signing/index.d.ts +1 -0
  117. package/dist/patterns/signing/index.js +1 -1
  118. package/dist/patterns/signing/multi-field-signer.d.ts +22 -1
  119. package/dist/patterns/signing/signing-checkbox-pill.d.ts +66 -0
  120. package/dist/patterns/signing/signing-checkbox-sheet.d.ts +16 -0
  121. package/dist/patterns/signing/signing-document-screen.d.ts +18 -1
  122. package/dist/tokens.css +1 -1
  123. package/package.json +9 -1
  124. package/dist/_chunks/handled-rejection-6gqCf5vt.js +0 -13
  125. package/dist/_chunks/signing-end-screen-an9P8DOT.js +0 -1041
@@ -122,6 +122,9 @@ export interface CalendarJourney {
122
122
  backlogItems: BacklogItem[];
123
123
  draftSlot: DraftSlot | null;
124
124
  setDraftSlot: Dispatch<SetStateAction<DraftSlot | null>>;
125
+ /** @deprecated The workspace no longer reads it: it mirrors the draft
126
+ * card's moves into the editor itself. Only the earlier demo surface used
127
+ * it. Still required by the type; a host may pass `null`. */
125
128
  slotPatch: SlotPatch | null;
126
129
  gotoRequest: {
127
130
  tick: number;
@@ -181,6 +184,8 @@ export interface CalendarJourney {
181
184
  * it. Omit it and the description is read-only. */
182
185
  handleDescriptionChange?: (eventId: string, description: string, archiveId?: string) => Promise<void>;
183
186
  handleDuplicateAppointment: (prefill: EditorPrefill) => void;
187
+ /** @deprecated The workspace no longer calls it (see `slotPatch`). Still
188
+ * required by the type; a host may pass a no-op. */
184
189
  handleDraftMoved: (next: {
185
190
  date: Date;
186
191
  time: {
@@ -190,6 +195,8 @@ export interface CalendarJourney {
190
195
  chairId?: string;
191
196
  operatorId?: string;
192
197
  }) => void;
198
+ /** @deprecated The workspace no longer calls it (see `slotPatch`). Still
199
+ * required by the type; a host may pass a no-op. */
193
200
  handleDraftResized: (durationMin: number) => void;
194
201
  handleBookSlot: (prefill: EditorPrefill) => void;
195
202
  handleShowAvailability: (slots: CalendarFreeSlot[] | null, fromDate?: Date, context?: AvailabilityContext) => void;
@@ -1,4 +1,4 @@
1
- import { A as s, C as r, a as t, b as S, c as E, d as n, e as o, f as i, D as A, g as C, S as d, V as P, W as D, h as l, i as _, m as O, r as c, u as p, j as L, k as R } from "../../_chunks/calendar-appointment-editor-dialog-BSkIYGlW.js";
1
+ import { A as s, C as r, a as t, b as S, c as E, d as n, e as o, f as i, D as A, g as C, S as d, V as P, W as D, h as l, i as _, m as O, r as c, u as p, j as L, k as R } from "../../_chunks/calendar-appointment-editor-dialog-I5PfWudy.js";
2
2
  export {
3
3
  s as AppointmentEditorDialog,
4
4
  r as CALENDAR_PREFERENCE_KEYS,
@@ -1,4 +1,4 @@
1
- import { P as n } from "../../_chunks/patient-account-settings-BkAtIxJW.js";
1
+ import { P as n } from "../../_chunks/patient-account-settings-B2XbN_Fe.js";
2
2
  export {
3
3
  n as PatientAccountSettings
4
4
  };
@@ -1,4 +1,4 @@
1
- import { C as a, a as c, b as h, c as C, d as s, e as k, f as I, g as o, h as t } from "../../_chunks/patient-check-in-resume-xhqjC6gf.js";
1
+ import { C as a, a as c, b as h, c as C, d as s, e as k, f as I, g as o, h as t } from "../../_chunks/patient-check-in-resume-B7NY-6KI.js";
2
2
  export {
3
3
  a as CheckInAppointmentChanged,
4
4
  c as CheckInConnectionNotice,
@@ -1,5 +1,5 @@
1
- import { P as o, a as l, b as s, c as r, d as e } from "../../_chunks/portal-documents-D8skew0h.js";
2
- import { P as i, a as c, b as m } from "../../_chunks/portal-details-CTEsm705.js";
1
+ import { P as o, a as l, b as s, c as r, d as e } from "../../_chunks/portal-documents-DJOH8pZx.js";
2
+ import { P as i, a as c, b as m } from "../../_chunks/portal-details-DCIiGkHA.js";
3
3
  export {
4
4
  o as PortalAppointments,
5
5
  i as PortalDetails,
@@ -1,5 +1,6 @@
1
1
  export { MultiFieldSigner } from './multi-field-signer';
2
2
  export type { MultiFieldSignerProps, SigningStepDocument, SigningStepField, SigningStepLabels, } from './multi-field-signer';
3
+ export type { SigningCheckboxField } from './signing-checkbox-pill';
3
4
  export { SigningChrome } from './signing-chrome';
4
5
  export type { SigningChromeProps } from './signing-chrome';
5
6
  export { SigningProgressChip } from './signing-progress-chip';
@@ -1,4 +1,4 @@
1
- import { M as g, S as e, a, b as S, c as s, d as r, e as o, f as t, g as c, h as f, i as d, j as h } from "../../_chunks/signing-end-screen-an9P8DOT.js";
1
+ import { M as g, S as e, a, b as S, c as s, d as r, e as o, f as t, g as c, h as f, i as d, j as h } from "../../_chunks/signing-end-screen-BdhbkPKO.js";
2
2
  export {
3
3
  g as MultiFieldSigner,
4
4
  e as SigningAwaitingScreen,
@@ -1,6 +1,7 @@
1
1
  import { type ReactNode } from 'react';
2
2
  import { type PDFZoomPreset } from '../../components/pdf-viewer';
3
3
  import { type SignatureConfirmPayload } from '../../components/signature-capture';
4
+ import { type SigningCheckboxField } from './signing-checkbox-pill';
4
5
  import type { SigningFieldBase, UseSigningSessionReturn } from '../../hooks';
5
6
  /** A signature field: id + live signed state (via the session) + page-overlay geometry. */
6
7
  export interface SigningStepField extends SigningFieldBase {
@@ -104,6 +105,26 @@ export interface MultiFieldSignerProps {
104
105
  * life. It informs only: opening a dialog or moving on is the host's call.
105
106
  */
106
107
  onAllSigned?: () => void;
108
+ /**
109
+ * Checkboxes printed in the document, drawn as opaque pills over their
110
+ * placeholder text. Absent or empty: nothing renders. Not an identity gate.
111
+ * Platform: `interactiveFields[].key`, saved by POST `/{slug}/checkbox/{key}`
112
+ * with `{"value":"true"|"false"}`; the host converts the boolean.
113
+ */
114
+ checkboxes?: SigningCheckboxField[];
115
+ /**
116
+ * Called when the signer presses Confirm in the sheet, with the value
117
+ * asked for. It returns nothing and is never awaited. The host saves it and
118
+ * passes the new `value` back, and sets `pendingCheckboxId` while it saves
119
+ * (Confirm is ignored then). Absent: the pills are read-only.
120
+ */
121
+ onCheckboxChange?: (fieldId: string, next: boolean) => void;
122
+ /** The box the host is saving now: its pill spins and the sheet cannot be dismissed. */
123
+ pendingCheckboxId?: string | null;
124
+ /** The host's message about the last change. Shown in the open sheet, which stays open. */
125
+ checkboxError?: string | null;
126
+ /** All pills ignore presses (for example while completing). Default false. */
127
+ checkboxesDisabled?: boolean;
107
128
  /** Extra classes for the root. */
108
129
  className?: string;
109
130
  }
@@ -113,5 +134,5 @@ export interface MultiFieldSignerProps {
113
134
  * Session-driven: it never decides what is signed. A signed field cannot be
114
135
  * reopened (the session refuses it and the field is not activatable).
115
136
  */
116
- export declare function MultiFieldSigner({ src, documents, session, labels, docIndex, ariaLabel, initialZoom, hideFieldLabels, onFieldConfirm, submittingFieldId, captureError, onAllSigned, className, }: MultiFieldSignerProps): ReactNode;
137
+ export declare function MultiFieldSigner({ src, documents, session, labels, docIndex, ariaLabel, initialZoom, hideFieldLabels, onFieldConfirm, submittingFieldId, captureError, onAllSigned, checkboxes, onCheckboxChange, pendingCheckboxId, checkboxError, checkboxesDisabled, className, }: MultiFieldSignerProps): ReactNode;
117
138
  //# sourceMappingURL=multi-field-signer.d.ts.map
@@ -0,0 +1,66 @@
1
+ /**
2
+ * A checkbox printed in the document. Platform field: the sign site's
3
+ * `interactiveFields[].key` (a-z0-9_, up to 32 characters). It is a
4
+ * document consent box, not an identity gate.
5
+ *
6
+ * Geometry is the host's maths, from the sign site's `overlayGeometry`
7
+ * (signature-website@2949868fce, pdf_js_renderer.js:326-341), with the
8
+ * platform fields `positionX`, `positionY`, `minY`, `maxY`, `width`,
9
+ * `pageWidth` and `pageHeight`. `positionY` is the text baseline.
10
+ */
11
+ export interface SigningCheckboxField {
12
+ /**
13
+ * Stable opaque id, unique per placement, never a name. The template can
14
+ * place one key several times: the host then gives each placement its own
15
+ * id, maps it back to the key when `onCheckboxChange` reports it, and
16
+ * passes the new value to every placement of that key.
17
+ */
18
+ id: string;
19
+ /** 1-based page the box sits on. */
20
+ page: number;
21
+ /** Which document in the envelope (default 0). */
22
+ docIndex?: number;
23
+ /**
24
+ * Percent offset of the box's left edge on the page. The PDF page is always
25
+ * left to right, so the host passes the template's left offset as it is, in
26
+ * every UI direction: the pill lays itself out left to right, like the page.
27
+ * (The name is kept for the existing prop contract.)
28
+ */
29
+ insetInlineStart: number;
30
+ /**
31
+ * Percent offset of the top edge: `minY / pageHeight * 100` when the
32
+ * template reports a measured box (`maxY > minY`), else
33
+ * `(positionY - 15pt) / pageHeight * 100` (older templates).
34
+ */
35
+ insetBlockStart: number;
36
+ /** Percent of the page's inline size: `width / pageWidth * 100` when `width > 0`. */
37
+ inlineSize: number;
38
+ /** Percent of the page's block size: `(maxY - minY) / pageHeight * 100`, else 15pt. */
39
+ blockSize: number;
40
+ /**
41
+ * The box's own wording: server-translated legal text, shown as given.
42
+ * The pill shows it before the box as `<label>:` (text only, never HTML),
43
+ * the same text the signed PDF is stamped with (signature-website@2949868fce,
44
+ * pdf_js_renderer.js createCheckboxPlaceholders). An empty label, or an
45
+ * `inlineSize` of 0 (no measured width), leaves the pill box-only. As on
46
+ * the sign site, any other label shows, even whitespace-only.
47
+ */
48
+ label: string;
49
+ /**
50
+ * The page's width in points (the sign site's `pageWidth`), so the label
51
+ * scales with the page: 10 pt on the page, shrunk to no less than 6 pt to
52
+ * fit the template's box. Without it the label keeps a fixed fallback size
53
+ * and does not scale, as on the sign site.
54
+ */
55
+ pageWidth?: number;
56
+ /** The current value. The host owns it. */
57
+ value: boolean;
58
+ }
59
+ export interface SigningCheckboxPillProps {
60
+ field: SigningCheckboxField;
61
+ saving: boolean;
62
+ inactive: boolean;
63
+ onActivate: () => void;
64
+ }
65
+ export declare const SigningCheckboxPill: import("react").ForwardRefExoticComponent<SigningCheckboxPillProps & import("react").RefAttributes<HTMLButtonElement>>;
66
+ //# sourceMappingURL=signing-checkbox-pill.d.ts.map
@@ -0,0 +1,16 @@
1
+ import { type ReactNode } from 'react';
2
+ import type { SigningCheckboxField } from './signing-checkbox-pill';
3
+ export interface SigningCheckboxSheetProps {
4
+ /** The box being changed. Kept while the sheet animates out. */
5
+ field: SigningCheckboxField | null;
6
+ open: boolean;
7
+ /** The value Confirm will ask for, captured when the sheet opened. */
8
+ intended: boolean;
9
+ pending: boolean;
10
+ error: string | null;
11
+ onConfirm: () => void;
12
+ onClose: () => void;
13
+ onCloseAutoFocus: (event: Event) => void;
14
+ }
15
+ export declare function SigningCheckboxSheet({ field, open, intended, pending, error, onConfirm, onClose, onCloseAutoFocus, }: SigningCheckboxSheetProps): ReactNode;
16
+ //# sourceMappingURL=signing-checkbox-sheet.d.ts.map
@@ -2,6 +2,7 @@ import { type ReactNode } from 'react';
2
2
  import type { SignatureConfirmPayload } from '../../components/signature-capture';
3
3
  import type { UseSigningSessionReturn } from '../../hooks';
4
4
  import { type SigningStepDocument, type SigningStepField } from './multi-field-signer';
5
+ import type { SigningCheckboxField } from './signing-checkbox-pill';
5
6
  import { type SigningRosterProps } from './signing-roster';
6
7
  export interface SigningDocumentScreenProps {
7
8
  /** The signing session for this signee, from `useSigningSession`. Required. */
@@ -52,6 +53,22 @@ export interface SigningDocumentScreenProps {
52
53
  submittingFieldId?: string | null;
53
54
  /** The host's message about the last confirm; shown in the capture dialog. */
54
55
  captureError?: string | null;
56
+ /**
57
+ * Document checkboxes (a different thing from an identity gate): opaque
58
+ * pills over their placeholder text. See `MultiFieldSigner.checkboxes`.
59
+ * Platform: `interactiveFields[].key`, saved by POST `/{slug}/checkbox/{key}`
60
+ * with `{"value":"true"|"false"}`; the host converts the boolean. Labels are
61
+ * host text and are not covered by `privacy`.
62
+ */
63
+ checkboxes?: SigningCheckboxField[];
64
+ /** Called when the signer confirms a change in the sheet. The host saves and passes `value` back. */
65
+ onCheckboxChange?: (fieldId: string, next: boolean) => void;
66
+ /** The checkbox the host is saving now. */
67
+ pendingCheckboxId?: string | null;
68
+ /** The host's message about the last checkbox change; shown in the sheet. */
69
+ checkboxError?: string | null;
70
+ /** Pills ignore presses. Always so while `completing`. */
71
+ checkboxesDisabled?: boolean;
55
72
  /** Extra dialogs, for example a `SigningMessageDialog`. The host owns them. */
56
73
  dialogs?: ReactNode;
57
74
  /** Render every field glyph-only. Labels stay the accessible names. */
@@ -83,5 +100,5 @@ export interface SigningDocumentScreenProps {
83
100
  * it shows the document, the progress and the Sign button, and tells the
84
101
  * host what happened.
85
102
  */
86
- export declare function SigningDocumentScreen({ session, src, documents, title, meta, headingLevel, instruction, roster, envelopeProgress, progressName, completing, onSign, signError, onFieldConfirm, submittingFieldId, captureError, dialogs, hideFieldLabels, withChrome, brand, brandLabel, focusOnMount, privacy, className, }: SigningDocumentScreenProps): ReactNode;
103
+ export declare function SigningDocumentScreen({ session, src, documents, title, meta, headingLevel, instruction, roster, envelopeProgress, progressName, completing, onSign, signError, onFieldConfirm, submittingFieldId, captureError, checkboxes, onCheckboxChange, pendingCheckboxId, checkboxError, checkboxesDisabled, dialogs, hideFieldLabels, withChrome, brand, brandLabel, focusOnMount, privacy, className, }: SigningDocumentScreenProps): ReactNode;
87
104
  //# sourceMappingURL=signing-document-screen.d.ts.map