@reddoorla/maintenance 0.45.0 → 0.46.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/cli/bin.js +15 -19
- package/dist/cli/bin.js.map +1 -1
- package/dist/index.d.ts +0 -1
- package/dist/index.js +15 -19
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -287,7 +287,6 @@ type ResolvedCopy = {
|
|
|
287
287
|
announceCadenceHeading: string;
|
|
288
288
|
announceTestingLabel: string;
|
|
289
289
|
announceMaintenanceLabel: string;
|
|
290
|
-
announceMonitorItems: string[];
|
|
291
290
|
announcePreviewLabel: string;
|
|
292
291
|
announceImprovementResend: string;
|
|
293
292
|
announceImprovementSvelte5: string;
|
package/dist/index.js
CHANGED
|
@@ -2788,7 +2788,6 @@ var DEFAULT_COPY = {
|
|
|
2788
2788
|
announceCadenceHeading: "WHAT TO EXPECT",
|
|
2789
2789
|
announceTestingLabel: "Full site testing",
|
|
2790
2790
|
announceMaintenanceLabel: "Routine maintenance",
|
|
2791
|
-
announceMonitorItems: ["Performance", "Accessibility", "Security", "Uptime"],
|
|
2792
2791
|
announcePreviewLabel: "From your latest full site test:",
|
|
2793
2792
|
announceImprovementResend: "Your contact forms now deliver straight to your inbox through reliable infrastructure, so no inquiry slips through the cracks.",
|
|
2794
2793
|
announceImprovementSvelte5: "We've modernized your site to the latest framework \u2014 it's faster, more secure, and built to last.",
|
|
@@ -3159,26 +3158,29 @@ function buildAnnouncementMjml(data) {
|
|
|
3159
3158
|
</mj-column>
|
|
3160
3159
|
</mj-section>` : "";
|
|
3161
3160
|
const cad = data.cadence;
|
|
3162
|
-
const
|
|
3161
|
+
const cadenceBlocks = [];
|
|
3163
3162
|
if (cad && cad.testing !== "None")
|
|
3164
|
-
|
|
3163
|
+
cadenceBlocks.push({
|
|
3164
|
+
line: `${copy.announceTestingLabel} \u2014 ${FREQ_PHRASE[cad.testing]}`,
|
|
3165
|
+
checks: copy.testingChecklist
|
|
3166
|
+
});
|
|
3165
3167
|
if (cad && cad.maintenance !== "None")
|
|
3166
|
-
|
|
3167
|
-
|
|
3168
|
+
cadenceBlocks.push({
|
|
3169
|
+
line: `${copy.announceMaintenanceLabel} \u2014 ${FREQ_PHRASE[cad.maintenance]}`,
|
|
3170
|
+
checks: copy.maintenanceChecks
|
|
3171
|
+
});
|
|
3172
|
+
const cadenceSection = cadenceBlocks.length > 0 ? `
|
|
3168
3173
|
<mj-section background-color="white">
|
|
3169
3174
|
<mj-column>
|
|
3170
3175
|
<mj-text color="${RED2}" font-size="20px" font-weight="700" padding-top="36px">${escapeXml(copy.announceCadenceHeading)}</mj-text>
|
|
3171
|
-
${
|
|
3172
|
-
(
|
|
3173
|
-
<mj-text color="${GREY2}" font-family="helvetica, sans-serif" font-size="16px" font-weight="
|
|
3176
|
+
${cadenceBlocks.map(
|
|
3177
|
+
(b) => `
|
|
3178
|
+
<mj-text color="${GREY2}" font-family="helvetica, sans-serif" font-size="16px" font-weight="400" line-height="24px" padding-top="12px" padding-bottom="0px">\u2022 ${escapeXml(b.line)}</mj-text>
|
|
3179
|
+
<mj-text color="${GREY2}" font-family="helvetica, sans-serif" font-size="13px" font-weight="300" line-height="20px" padding-top="2px" padding-bottom="0px" padding-left="16px">${escapeXml(b.checks.join(" \xB7 "))}</mj-text>`
|
|
3174
3180
|
).join("")}
|
|
3175
|
-
<mj-text color="${GREY2}" font-family="helvetica, sans-serif" font-size="16px" font-weight="300" line-height="24px" padding-top="
|
|
3181
|
+
<mj-text color="${GREY2}" font-family="helvetica, sans-serif" font-size="16px" font-weight="300" line-height="24px" padding-top="14px">${escapeXml(copy.announceCadence)}</mj-text>
|
|
3176
3182
|
</mj-column>
|
|
3177
3183
|
</mj-section>` : "";
|
|
3178
|
-
const monitorRows = copy.announceMonitorItems.map(
|
|
3179
|
-
(item) => `
|
|
3180
|
-
<mj-text color="${GREY2}" font-family="helvetica, sans-serif" font-size="16px" font-weight="300" line-height="24px" padding-top="4px" padding-bottom="4px">\u2022 ${escapeXml(item)}</mj-text>`
|
|
3181
|
-
).join("");
|
|
3182
3184
|
const scoreRows = SCORE_PREVIEW.map(
|
|
3183
3185
|
({ label, key }) => `
|
|
3184
3186
|
<mj-text color="${RED2}" font-size="20px" font-weight="300" padding-top="25px">${label}</mj-text>
|
|
@@ -3215,12 +3217,6 @@ function buildAnnouncementMjml(data) {
|
|
|
3215
3217
|
</mj-section>
|
|
3216
3218
|
${cadenceSection}
|
|
3217
3219
|
${improvementsSection}
|
|
3218
|
-
<mj-section background-color="white">
|
|
3219
|
-
<mj-column>
|
|
3220
|
-
<mj-text color="${RED2}" font-size="20px" font-weight="700" padding-top="36px">WHAT WE MONITOR</mj-text>
|
|
3221
|
-
${monitorRows}
|
|
3222
|
-
</mj-column>
|
|
3223
|
-
</mj-section>
|
|
3224
3220
|
<mj-section background-color="#F4F4F4">
|
|
3225
3221
|
<mj-column>
|
|
3226
3222
|
<mj-text color="${RED2}" font-size="20px" font-weight="700" padding-top="55px">${escapeXml(copy.announcePreviewLabel)}</mj-text>
|