@planetaexo/design-system 0.40.0 → 0.41.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.
- package/dist/index.cjs +55 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +10 -2
- package/dist/index.d.ts +10 -2
- package/dist/index.js +55 -0
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -1363,6 +1363,8 @@ interface PartnerConfirmationEmailExpectationRow {
|
|
|
1363
1363
|
interface PartnerConfirmationEmailProps {
|
|
1364
1364
|
scenario: "all_done" | "d_minus_7";
|
|
1365
1365
|
locale: "en" | "pt" | "fr" | "de";
|
|
1366
|
+
/** Aviso de topo opcional (banner âmbar). Texto já localizado pelo backend. */
|
|
1367
|
+
topNotice?: string | null;
|
|
1366
1368
|
partnerName: string;
|
|
1367
1369
|
bookingNumber: string;
|
|
1368
1370
|
adventureName: string;
|
|
@@ -1409,7 +1411,7 @@ interface PartnerConfirmationEmailLabels {
|
|
|
1409
1411
|
closingNoAgent?: string;
|
|
1410
1412
|
teamSignature?: string;
|
|
1411
1413
|
}
|
|
1412
|
-
declare function PartnerConfirmationEmail({ scenario, partnerName, bookingNumber, adventureName, dateRange, travellersCount, expectations, pdfAttached, agent, logoUrl, labels, className, }: PartnerConfirmationEmailProps): react_jsx_runtime.JSX.Element;
|
|
1414
|
+
declare function PartnerConfirmationEmail({ scenario, topNotice, partnerName, bookingNumber, adventureName, dateRange, travellersCount, expectations, pdfAttached, agent, logoUrl, labels, className, }: PartnerConfirmationEmailProps): react_jsx_runtime.JSX.Element;
|
|
1413
1415
|
|
|
1414
1416
|
interface PartnerBookingCreatedAgentContactLinks {
|
|
1415
1417
|
whatsappUrl?: string;
|
|
@@ -1417,6 +1419,8 @@ interface PartnerBookingCreatedAgentContactLinks {
|
|
|
1417
1419
|
}
|
|
1418
1420
|
interface PartnerBookingCreatedEmailProps {
|
|
1419
1421
|
locale: "en" | "pt" | "fr" | "de";
|
|
1422
|
+
/** Aviso de topo opcional (banner âmbar). Texto já localizado pelo backend. */
|
|
1423
|
+
topNotice?: string | null;
|
|
1420
1424
|
partnerName: string;
|
|
1421
1425
|
bookingNumber: string;
|
|
1422
1426
|
adventureName: string;
|
|
@@ -1452,13 +1456,17 @@ interface PartnerBookingCreatedEmailLabels {
|
|
|
1452
1456
|
bookerNameLabel?: string;
|
|
1453
1457
|
bookerEmailLabel?: string;
|
|
1454
1458
|
bookerPhoneLabel?: string;
|
|
1459
|
+
/** Aviso (linha 1) antes do closing — sempre visível. */
|
|
1460
|
+
registrationPendingNotice?: string;
|
|
1461
|
+
/** Aviso (linha 2, enfatizado) antes do closing — sempre visível. */
|
|
1462
|
+
mustReplyToConfirm?: string;
|
|
1455
1463
|
/** Closing principal quando há agente. Recebe nome + URLs e retorna JSX. */
|
|
1456
1464
|
closingAgent?: (agentName: string, contact: PartnerBookingCreatedAgentContactLinks) => React.ReactNode;
|
|
1457
1465
|
/** Closing alternativo sem agente. */
|
|
1458
1466
|
closingNoAgent?: string;
|
|
1459
1467
|
teamSignature?: string;
|
|
1460
1468
|
}
|
|
1461
|
-
declare function PartnerBookingCreatedEmail({ partnerName, bookingNumber, adventureName, dateRange, travellersCount, booker, agent, logoUrl, labels, className, }: PartnerBookingCreatedEmailProps): react_jsx_runtime.JSX.Element;
|
|
1469
|
+
declare function PartnerBookingCreatedEmail({ topNotice, partnerName, bookingNumber, adventureName, dateRange, travellersCount, booker, agent, logoUrl, labels, className, }: PartnerBookingCreatedEmailProps): react_jsx_runtime.JSX.Element;
|
|
1462
1470
|
|
|
1463
1471
|
interface PaymentReceiptEmailLabels {
|
|
1464
1472
|
logoAlt?: string;
|
package/dist/index.d.ts
CHANGED
|
@@ -1363,6 +1363,8 @@ interface PartnerConfirmationEmailExpectationRow {
|
|
|
1363
1363
|
interface PartnerConfirmationEmailProps {
|
|
1364
1364
|
scenario: "all_done" | "d_minus_7";
|
|
1365
1365
|
locale: "en" | "pt" | "fr" | "de";
|
|
1366
|
+
/** Aviso de topo opcional (banner âmbar). Texto já localizado pelo backend. */
|
|
1367
|
+
topNotice?: string | null;
|
|
1366
1368
|
partnerName: string;
|
|
1367
1369
|
bookingNumber: string;
|
|
1368
1370
|
adventureName: string;
|
|
@@ -1409,7 +1411,7 @@ interface PartnerConfirmationEmailLabels {
|
|
|
1409
1411
|
closingNoAgent?: string;
|
|
1410
1412
|
teamSignature?: string;
|
|
1411
1413
|
}
|
|
1412
|
-
declare function PartnerConfirmationEmail({ scenario, partnerName, bookingNumber, adventureName, dateRange, travellersCount, expectations, pdfAttached, agent, logoUrl, labels, className, }: PartnerConfirmationEmailProps): react_jsx_runtime.JSX.Element;
|
|
1414
|
+
declare function PartnerConfirmationEmail({ scenario, topNotice, partnerName, bookingNumber, adventureName, dateRange, travellersCount, expectations, pdfAttached, agent, logoUrl, labels, className, }: PartnerConfirmationEmailProps): react_jsx_runtime.JSX.Element;
|
|
1413
1415
|
|
|
1414
1416
|
interface PartnerBookingCreatedAgentContactLinks {
|
|
1415
1417
|
whatsappUrl?: string;
|
|
@@ -1417,6 +1419,8 @@ interface PartnerBookingCreatedAgentContactLinks {
|
|
|
1417
1419
|
}
|
|
1418
1420
|
interface PartnerBookingCreatedEmailProps {
|
|
1419
1421
|
locale: "en" | "pt" | "fr" | "de";
|
|
1422
|
+
/** Aviso de topo opcional (banner âmbar). Texto já localizado pelo backend. */
|
|
1423
|
+
topNotice?: string | null;
|
|
1420
1424
|
partnerName: string;
|
|
1421
1425
|
bookingNumber: string;
|
|
1422
1426
|
adventureName: string;
|
|
@@ -1452,13 +1456,17 @@ interface PartnerBookingCreatedEmailLabels {
|
|
|
1452
1456
|
bookerNameLabel?: string;
|
|
1453
1457
|
bookerEmailLabel?: string;
|
|
1454
1458
|
bookerPhoneLabel?: string;
|
|
1459
|
+
/** Aviso (linha 1) antes do closing — sempre visível. */
|
|
1460
|
+
registrationPendingNotice?: string;
|
|
1461
|
+
/** Aviso (linha 2, enfatizado) antes do closing — sempre visível. */
|
|
1462
|
+
mustReplyToConfirm?: string;
|
|
1455
1463
|
/** Closing principal quando há agente. Recebe nome + URLs e retorna JSX. */
|
|
1456
1464
|
closingAgent?: (agentName: string, contact: PartnerBookingCreatedAgentContactLinks) => React.ReactNode;
|
|
1457
1465
|
/** Closing alternativo sem agente. */
|
|
1458
1466
|
closingNoAgent?: string;
|
|
1459
1467
|
teamSignature?: string;
|
|
1460
1468
|
}
|
|
1461
|
-
declare function PartnerBookingCreatedEmail({ partnerName, bookingNumber, adventureName, dateRange, travellersCount, booker, agent, logoUrl, labels, className, }: PartnerBookingCreatedEmailProps): react_jsx_runtime.JSX.Element;
|
|
1469
|
+
declare function PartnerBookingCreatedEmail({ topNotice, partnerName, bookingNumber, adventureName, dateRange, travellersCount, booker, agent, logoUrl, labels, className, }: PartnerBookingCreatedEmailProps): react_jsx_runtime.JSX.Element;
|
|
1462
1470
|
|
|
1463
1471
|
interface PaymentReceiptEmailLabels {
|
|
1464
1472
|
logoAlt?: string;
|
package/dist/index.js
CHANGED
|
@@ -5832,6 +5832,7 @@ function hasText3(s) {
|
|
|
5832
5832
|
}
|
|
5833
5833
|
function PartnerConfirmationEmail({
|
|
5834
5834
|
scenario,
|
|
5835
|
+
topNotice,
|
|
5835
5836
|
partnerName,
|
|
5836
5837
|
bookingNumber,
|
|
5837
5838
|
adventureName,
|
|
@@ -5883,6 +5884,21 @@ function PartnerConfirmationEmail({
|
|
|
5883
5884
|
className,
|
|
5884
5885
|
children: [
|
|
5885
5886
|
/* @__PURE__ */ jsx(EmailLogo, { src: logoUrl, alt: l.logoAlt }),
|
|
5887
|
+
hasText3(topNotice) && /* @__PURE__ */ jsx(
|
|
5888
|
+
"div",
|
|
5889
|
+
{
|
|
5890
|
+
style: {
|
|
5891
|
+
padding: "12px 16px",
|
|
5892
|
+
borderRadius: 8,
|
|
5893
|
+
backgroundColor: "#fef3c7",
|
|
5894
|
+
color: "#78350f",
|
|
5895
|
+
fontWeight: 600,
|
|
5896
|
+
fontSize: "14px",
|
|
5897
|
+
marginBottom: "20px"
|
|
5898
|
+
},
|
|
5899
|
+
children: topNotice
|
|
5900
|
+
}
|
|
5901
|
+
),
|
|
5886
5902
|
/* @__PURE__ */ jsx("p", { style: { marginBottom: "16px" }, children: l.greeting(partnerName) }),
|
|
5887
5903
|
/* @__PURE__ */ jsx("p", { style: { marginBottom: "16px" }, children: introText }),
|
|
5888
5904
|
/* @__PURE__ */ jsx("p", { style: { marginBottom: "24px", fontWeight: 600 }, children: l.travellersCountLine(travellersCount) }),
|
|
@@ -5988,6 +6004,8 @@ var DEFAULT_LABELS8 = {
|
|
|
5988
6004
|
bookerNameLabel: "Name",
|
|
5989
6005
|
bookerEmailLabel: "Email",
|
|
5990
6006
|
bookerPhoneLabel: "Phone",
|
|
6007
|
+
registrationPendingNotice: "The travellers' registration details will be sent to you as soon as all travellers have completed their forms.",
|
|
6008
|
+
mustReplyToConfirm: "Please reply to this email to confirm the booking.",
|
|
5991
6009
|
closingAgent: (agentName, contact) => /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
5992
6010
|
"If you have any questions, your contact ",
|
|
5993
6011
|
agentName,
|
|
@@ -6002,6 +6020,7 @@ var DEFAULT_LABELS8 = {
|
|
|
6002
6020
|
teamSignature: "The PlanetaEXO Team"
|
|
6003
6021
|
};
|
|
6004
6022
|
function PartnerBookingCreatedEmail({
|
|
6023
|
+
topNotice,
|
|
6005
6024
|
partnerName,
|
|
6006
6025
|
bookingNumber,
|
|
6007
6026
|
adventureName,
|
|
@@ -6060,6 +6079,21 @@ function PartnerBookingCreatedEmail({
|
|
|
6060
6079
|
className,
|
|
6061
6080
|
children: [
|
|
6062
6081
|
/* @__PURE__ */ jsx(EmailLogo, { src: logoUrl, alt: l.logoAlt }),
|
|
6082
|
+
hasText4(topNotice) && /* @__PURE__ */ jsx(
|
|
6083
|
+
"div",
|
|
6084
|
+
{
|
|
6085
|
+
style: {
|
|
6086
|
+
padding: "12px 16px",
|
|
6087
|
+
borderRadius: 8,
|
|
6088
|
+
backgroundColor: "#fef3c7",
|
|
6089
|
+
color: "#78350f",
|
|
6090
|
+
fontWeight: 600,
|
|
6091
|
+
fontSize: "14px",
|
|
6092
|
+
marginBottom: "20px"
|
|
6093
|
+
},
|
|
6094
|
+
children: topNotice
|
|
6095
|
+
}
|
|
6096
|
+
),
|
|
6063
6097
|
/* @__PURE__ */ jsx("p", { style: { marginBottom: "16px" }, children: l.greeting(partnerName) }),
|
|
6064
6098
|
/* @__PURE__ */ jsx("p", { style: { marginBottom: "24px" }, children: l.intro(adventureName) }),
|
|
6065
6099
|
sectionDivider,
|
|
@@ -6136,6 +6170,27 @@ function PartnerBookingCreatedEmail({
|
|
|
6136
6170
|
}
|
|
6137
6171
|
),
|
|
6138
6172
|
sectionDivider,
|
|
6173
|
+
/* @__PURE__ */ jsxs(
|
|
6174
|
+
"div",
|
|
6175
|
+
{
|
|
6176
|
+
style: {
|
|
6177
|
+
padding: "16px 20px",
|
|
6178
|
+
borderRadius: 8,
|
|
6179
|
+
border: "2px solid #f59e0b",
|
|
6180
|
+
backgroundColor: "#fef3c7",
|
|
6181
|
+
color: "#78350f",
|
|
6182
|
+
fontSize: "14px",
|
|
6183
|
+
marginBottom: "16px"
|
|
6184
|
+
},
|
|
6185
|
+
children: [
|
|
6186
|
+
/* @__PURE__ */ jsx("p", { style: { margin: 0, marginBottom: "10px", lineHeight: 1.5 }, children: l.registrationPendingNotice }),
|
|
6187
|
+
/* @__PURE__ */ jsxs("p", { style: { margin: 0, fontWeight: 700, fontSize: "15px", lineHeight: 1.5 }, children: [
|
|
6188
|
+
"\u26A0\uFE0F ",
|
|
6189
|
+
l.mustReplyToConfirm
|
|
6190
|
+
] })
|
|
6191
|
+
]
|
|
6192
|
+
}
|
|
6193
|
+
),
|
|
6139
6194
|
/* @__PURE__ */ jsx("p", { style: { marginBottom: "16px", fontSize: "14px", fontWeight: 700, color: emailTokens.bodyText }, children: (agent == null ? void 0 : agent.name) ? l.closingAgent(agent.name, {
|
|
6140
6195
|
whatsappUrl: agent.whatsappUrl,
|
|
6141
6196
|
email: agent.email
|