Skip to content

Commit

Permalink
Merge pull request #644 from adobecom/MWPW-147046
Browse files Browse the repository at this point in the history
MWPW-147046
  • Loading branch information
Blainegunn authored Apr 29, 2024
2 parents f6f131a + 16024d1 commit 9841a9d
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 1 deletion.
1 change: 1 addition & 0 deletions acrobat/blocks/dc-converter-widget/dc-converter-widget.js
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,7 @@ const verbRedirMap = {
'png-to-pdf': 'jpgtopdf',
'number-pages': 'number',
'ocr-pdf': 'ocr',
'chat-pdf': 'chat',
};

const exhLimitCookieMap = {
Expand Down
2 changes: 2 additions & 0 deletions acrobat/blocks/personalization/verbMap.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ const verbMap = {
'extract-pages': 'organize_pdf',
L1: 'organize_pdf',
'ocr-pdf': 'ocr_pdf',
'chat-pdf': 'create_pdf',
},
upsellMap: {
'word-to-pdf': 'createPDF',
Expand All @@ -43,6 +44,7 @@ const verbMap = {
'insert-pdf': 'l1Verbs',
'extract-pages': 'l1Verbs',
'ocr-pdf': 'ocrPDF',
'chat-pdf': 'createPDF',
},
};

Expand Down
Binary file added acrobat/img/backgrounds/chat-pdf.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 2 additions & 1 deletion acrobat/scripts/scripts.js
Original file line number Diff line number Diff line change
Expand Up @@ -295,7 +295,7 @@ if (window.location.pathname.match('/sign/')
|| window.location.pathname.match('/documentcloud/')
|| window.location.pathname.match('/acrobat/business/')) {
CONFIG.jarvis.id = 'DocumentCloudsignAcro';
};
}

// Default to loading the first image as eager.
(async function loadLCPImage() {
Expand All @@ -321,6 +321,7 @@ const { ietf } = getLocale(locales);
const blockName = widgetBlock.classList.value;
widgetBlock.removeAttribute('class');
widgetBlock.id = 'dc-converter-widget';
widgetBlock.setAttribute('verb', verb);
const DC_GENERATE_CACHE_VERSION = document.querySelector('meta[name="dc-generate-cache-version"]')?.getAttribute('content');
const INLINE_SNIPPET = document.querySelector('section#edge-snippet');
const dcUrls = INLINE_SNIPPET ? [] : [
Expand Down
14 changes: 14 additions & 0 deletions acrobat/styles/styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,20 @@ div[data-section="widget"] {
min-height: 570px;
}

#dc-converter-widget[verb=chat-pdf] {
background-color: #fff;
background-image: url('../img/backgrounds/chat-pdf.png');
background-position: top left;
min-height: 623px;
background-repeat: no-repeat;
background-size: contain;
}

/* DC Widget Override */
div [class *= PdfnowLifecycle__dropzone2___] {
background-color: transparent;
}

/* ootb widget */
.dc-converter-widget > div:first-of-type {
display: none;
Expand Down

0 comments on commit 9841a9d

Please sign in to comment.