@planetaexo/design-system 0.92.3 → 0.92.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.cts CHANGED
@@ -1809,6 +1809,16 @@ interface PartnerRegistrationCompleteEmailProps {
1809
1809
  hasSection: boolean;
1810
1810
  rows: PartnerRegistrationCompleteEmailExpectationRow[];
1811
1811
  };
1812
+ /**
1813
+ * Notas marcadas como visíveis ao parceiro (visibleToPartner=true), já filtradas
1814
+ * e formatadas pelo backend: `body` é texto puro; `meta` é "Autor · Data" já
1815
+ * montada (pode ser ""). Quando presente e não-vazia, renderiza a seção "Notes
1816
+ * from the team"; ausente/vazia = nada renderizado. Spec partner-booking-notes.
1817
+ */
1818
+ partnerNotes?: {
1819
+ body: string;
1820
+ meta: string;
1821
+ }[];
1812
1822
  pdfAttached: boolean;
1813
1823
  agent: {
1814
1824
  name: string;
@@ -1839,6 +1849,8 @@ interface PartnerRegistrationCompleteEmailLabels {
1839
1849
  expectationsEmptyNote?: string;
1840
1850
  /** "—" quando answer == null. */
1841
1851
  expectationsEmptyAnswer?: string;
1852
+ /** Heading da seção de notas visíveis ao parceiro (Spec partner-booking-notes). */
1853
+ partnerNotesHeading?: string;
1842
1854
  pdfNote?: string;
1843
1855
  /** Closing principal quando há agente. Recebe nome + URLs e retorna JSX. */
1844
1856
  closingAgent?: (agentName: string, contact: PartnerRegistrationCompleteAgentContactLinks) => React.ReactNode;
@@ -1846,7 +1858,7 @@ interface PartnerRegistrationCompleteEmailLabels {
1846
1858
  closingNoAgent?: string;
1847
1859
  teamSignature?: string;
1848
1860
  }
1849
- declare function PartnerRegistrationCompleteEmail({ scenario, topNotice, partnerName, bookingNumber, adventureName, dateRange, bookingPersonName, bookingPersonPassport, travellersCount, expectations, pdfAttached, agent, logoUrl, labels, className, }: PartnerRegistrationCompleteEmailProps): react_jsx_runtime.JSX.Element;
1861
+ declare function PartnerRegistrationCompleteEmail({ scenario, topNotice, partnerName, bookingNumber, adventureName, dateRange, bookingPersonName, bookingPersonPassport, travellersCount, expectations, partnerNotes, pdfAttached, agent, logoUrl, labels, className, }: PartnerRegistrationCompleteEmailProps): react_jsx_runtime.JSX.Element;
1850
1862
 
1851
1863
  interface PartnerBookingCreatedAgentContactLinks {
1852
1864
  whatsappUrl?: string;
package/dist/index.d.ts CHANGED
@@ -1809,6 +1809,16 @@ interface PartnerRegistrationCompleteEmailProps {
1809
1809
  hasSection: boolean;
1810
1810
  rows: PartnerRegistrationCompleteEmailExpectationRow[];
1811
1811
  };
1812
+ /**
1813
+ * Notas marcadas como visíveis ao parceiro (visibleToPartner=true), já filtradas
1814
+ * e formatadas pelo backend: `body` é texto puro; `meta` é "Autor · Data" já
1815
+ * montada (pode ser ""). Quando presente e não-vazia, renderiza a seção "Notes
1816
+ * from the team"; ausente/vazia = nada renderizado. Spec partner-booking-notes.
1817
+ */
1818
+ partnerNotes?: {
1819
+ body: string;
1820
+ meta: string;
1821
+ }[];
1812
1822
  pdfAttached: boolean;
1813
1823
  agent: {
1814
1824
  name: string;
@@ -1839,6 +1849,8 @@ interface PartnerRegistrationCompleteEmailLabels {
1839
1849
  expectationsEmptyNote?: string;
1840
1850
  /** "—" quando answer == null. */
1841
1851
  expectationsEmptyAnswer?: string;
1852
+ /** Heading da seção de notas visíveis ao parceiro (Spec partner-booking-notes). */
1853
+ partnerNotesHeading?: string;
1842
1854
  pdfNote?: string;
1843
1855
  /** Closing principal quando há agente. Recebe nome + URLs e retorna JSX. */
1844
1856
  closingAgent?: (agentName: string, contact: PartnerRegistrationCompleteAgentContactLinks) => React.ReactNode;
@@ -1846,7 +1858,7 @@ interface PartnerRegistrationCompleteEmailLabels {
1846
1858
  closingNoAgent?: string;
1847
1859
  teamSignature?: string;
1848
1860
  }
1849
- declare function PartnerRegistrationCompleteEmail({ scenario, topNotice, partnerName, bookingNumber, adventureName, dateRange, bookingPersonName, bookingPersonPassport, travellersCount, expectations, pdfAttached, agent, logoUrl, labels, className, }: PartnerRegistrationCompleteEmailProps): react_jsx_runtime.JSX.Element;
1861
+ declare function PartnerRegistrationCompleteEmail({ scenario, topNotice, partnerName, bookingNumber, adventureName, dateRange, bookingPersonName, bookingPersonPassport, travellersCount, expectations, partnerNotes, pdfAttached, agent, logoUrl, labels, className, }: PartnerRegistrationCompleteEmailProps): react_jsx_runtime.JSX.Element;
1850
1862
 
1851
1863
  interface PartnerBookingCreatedAgentContactLinks {
1852
1864
  whatsappUrl?: string;
package/dist/index.js CHANGED
@@ -7086,6 +7086,7 @@ var DEFAULT_LABELS10 = {
7086
7086
  expectationsHeading: "Travellers Expectations",
7087
7087
  expectationsEmptyNote: "No expectations were collected for this adventure.",
7088
7088
  expectationsEmptyAnswer: "\u2014",
7089
+ partnerNotesHeading: "Notes from the team",
7089
7090
  pdfNote: "The consolidated registration PDF is attached. Please review it carefully, as it contains important traveller information, including dietary restrictions, medical conditions, preferences, and other details that may help improve the guest experience and ensure proper preparation.",
7090
7091
  closingAgent: (agentName, contact) => /* @__PURE__ */ jsxs(Fragment, { children: [
7091
7092
  "If you have any questions, your contact ",
@@ -7114,6 +7115,7 @@ function PartnerRegistrationCompleteEmail({
7114
7115
  bookingPersonPassport,
7115
7116
  travellersCount,
7116
7117
  expectations,
7118
+ partnerNotes,
7117
7119
  pdfAttached,
7118
7120
  agent,
7119
7121
  logoUrl,
@@ -7238,6 +7240,51 @@ function PartnerRegistrationCompleteEmail({
7238
7240
  }) })
7239
7241
  }
7240
7242
  ) : /* @__PURE__ */ jsx("p", { style: { marginTop: 0, marginBottom: "24px", color: emailTokens.bodyText }, children: l.expectationsEmptyNote }),
7243
+ Array.isArray(partnerNotes) && partnerNotes.length > 0 && /* @__PURE__ */ jsxs(Fragment, { children: [
7244
+ /* @__PURE__ */ jsx(
7245
+ "p",
7246
+ {
7247
+ style: {
7248
+ marginTop: 0,
7249
+ marginBottom: "16px",
7250
+ paddingBottom: "8px",
7251
+ borderBottom: `2px solid ${emailTokens.primary}`,
7252
+ fontWeight: 700,
7253
+ fontSize: "18px",
7254
+ color: emailTokens.foreground,
7255
+ fontFamily: emailTokens.fontFamily
7256
+ },
7257
+ children: l.partnerNotesHeading
7258
+ }
7259
+ ),
7260
+ /* @__PURE__ */ jsx(
7261
+ "table",
7262
+ {
7263
+ role: "presentation",
7264
+ style: {
7265
+ width: "100%",
7266
+ borderCollapse: "collapse",
7267
+ fontSize: "14px",
7268
+ marginBottom: "24px"
7269
+ },
7270
+ children: /* @__PURE__ */ jsx("tbody", { children: partnerNotes.map((note, i) => /* @__PURE__ */ jsx("tr", { style: { borderBottom: `1px solid ${emailTokens.border}` }, children: /* @__PURE__ */ jsxs("td", { style: { padding: "10px 0", color: emailTokens.bodyText, verticalAlign: "top" }, children: [
7271
+ hasText6(note.meta) && /* @__PURE__ */ jsx(
7272
+ "div",
7273
+ {
7274
+ style: {
7275
+ fontSize: "12px",
7276
+ fontWeight: 600,
7277
+ color: emailTokens.foreground,
7278
+ marginBottom: "4px"
7279
+ },
7280
+ children: note.meta
7281
+ }
7282
+ ),
7283
+ /* @__PURE__ */ jsx("div", { style: { whiteSpace: "pre-wrap" }, children: note.body })
7284
+ ] }) }, i)) })
7285
+ }
7286
+ )
7287
+ ] }),
7241
7288
  pdfAttached && hasText6(l.pdfNote) && /* @__PURE__ */ jsx(
7242
7289
  "div",
7243
7290
  {