diff --git a/.github/workflows/clear-cache.yml b/.github/workflows/clear-cache.yml index b4d0ac2e..389531b6 100644 --- a/.github/workflows/clear-cache.yml +++ b/.github/workflows/clear-cache.yml @@ -11,6 +11,10 @@ on: description: 'Network' required: true type: string + command: + description: 'Command' + required: true + type: string workflow_dispatch: inputs: diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 9eb4e5ca..88ab1ad3 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -13,6 +13,7 @@ jobs: with: cpCode: 1551833 network: production + command: delete secrets: inherit clear-prod-cache: @@ -21,4 +22,6 @@ jobs: with: cpCode: 1551836 network: production + command: delete + secrets: inherit diff --git a/acrobat/blocks/verb-widget/verb-widget.js b/acrobat/blocks/verb-widget/verb-widget.js index 911f4737..5e8204a7 100644 --- a/acrobat/blocks/verb-widget/verb-widget.js +++ b/acrobat/blocks/verb-widget/verb-widget.js @@ -238,9 +238,7 @@ export default async function init(element) { }); element.addEventListener('unity:track-analytics', (e) => { - const date = new Date(); - date.setTime(date.getTime() + 1 * 60 * 1000); - const cookieExp = `expires=${date.toUTCString()}`; + const cookieExp = new Date(Date.now() + 90 * 1000).toUTCString(); if (e.detail?.event === 'change') { verbAnalytics('choose-file:open', VERB, e.detail?.data); @@ -277,9 +275,7 @@ export default async function init(element) { }); window.addEventListener('beforeunload', () => { - const date = new Date(); - date.setTime(date.getTime() + 1 * 60 * 1000); - const cookieExp = `expires=${date.toUTCString()}`; + const cookieExp = new Date(Date.now() + 90 * 1000).toUTCString(); if (exitFlag) { document.cookie = `UTS_Redirect=${Date.now()};domain=.adobe.com;path=/;expires=${cookieExp}`; } diff --git a/acrobat/scripts/mep/dc1031/dc-merch-card-checkbox/dc-merch-card-checkbox.js b/acrobat/scripts/mep/dc1031/dc-merch-card-checkbox/dc-merch-card-checkbox.js index 2bf912a4..28323d86 100644 --- a/acrobat/scripts/mep/dc1031/dc-merch-card-checkbox/dc-merch-card-checkbox.js +++ b/acrobat/scripts/mep/dc1031/dc-merch-card-checkbox/dc-merch-card-checkbox.js @@ -119,7 +119,11 @@ async function addCheckbox({ card, md, fragAudience, cardPlanType }) { const cardId = `${fragAudience}-${cardPlanType}-${cardTitle}`; card.dataset.aiAdded = false; const callout = card.querySelector(CALLOUT_SELECTOR); - const description = md.checkbox.description.replace('[AIP]', ''); + const isReader = card.querySelector('.con-button[href*="adobe.com/reader/"]'); + let description = isReader + ? md.checkbox.reader.description + : md.checkbox.description; + description = description.replace('[AIP]', ''); const checkboxContainer = createTag( 'div', { slot: 'callout-content', class: 'ai-checkbox-container' }, @@ -221,6 +225,9 @@ function processCard(card, md) { } export default async function init(el) { const md = parseMetadata(getMetadata(el)); + document.querySelectorAll('merch-card').forEach((card) => { + processCard(card, md); + }); const mainObserver = new MutationObserver((mutationsList) => { for (const mutation of mutationsList) { if (mutation.type === 'childList' && mutation.addedNodes.length > 0) {