Skip to content

Commit

Permalink
Merge pull request #516 from adobecom/MWPW-141071
Browse files Browse the repository at this point in the history
MWPW-141071 - Update to support PDFs displayed in SDK viewer
  • Loading branch information
Blainegunn authored Jan 16, 2024
2 parents 8c1c2f7 + 72da4f6 commit 9dc6780
Show file tree
Hide file tree
Showing 4 changed files with 60 additions and 6 deletions.
15 changes: 14 additions & 1 deletion acrobat/scripts/contentSecurityPolicy/dev.js
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,7 @@ const frameSrc = [
'www.youtube.com',
's.company-target.com',
'stage-ui.messaging.adobe.com/',
'acrobatservices.adobe.com',
';',
];

Expand Down Expand Up @@ -242,4 +243,16 @@ const workerSrc = [
// TRY This
// use variables for the different domians

export default { childSrc, connectSrc, defaultSrc, fontSrc, formAction, frameSrc, imgSrc, manifestSrc, scriptSrc, styleSrc, workerSrc};
export default {
childSrc,
connectSrc,
defaultSrc,
fontSrc,
formAction,
frameSrc,
imgSrc,
manifestSrc,
scriptSrc,
styleSrc,
workerSrc,
};
15 changes: 14 additions & 1 deletion acrobat/scripts/contentSecurityPolicy/prod.js
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,7 @@ const frameSrc = [
'www.youtube.com',
's.company-target.com',
'ui.messaging.adobe.com/',
'acrobatservices.adobe.com',
';',
];

Expand Down Expand Up @@ -259,4 +260,16 @@ const workerSrc = [
';',
];

export default { childSrc, connectSrc, defaultSrc, fontSrc, formAction, frameSrc, imgSrc, manifestSrc, scriptSrc, styleSrc, workerSrc};
export default {
childSrc,
connectSrc,
defaultSrc,
fontSrc,
formAction,
frameSrc,
imgSrc,
manifestSrc,
scriptSrc,
styleSrc,
workerSrc,
};
15 changes: 14 additions & 1 deletion acrobat/scripts/contentSecurityPolicy/stage.js
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,7 @@ const frameSrc = [
'www.youtube.com',
's.company-target.com',
'stage-ui.messaging.adobe.com/',
'acrobatservices.adobe.com',
';',
];

Expand Down Expand Up @@ -279,4 +280,16 @@ const workerSrc = [
';',
];

export default { childSrc, connectSrc, defaultSrc, fontSrc, formAction, frameSrc, imgSrc, manifestSrc, scriptSrc, styleSrc, workerSrc};
export default {
childSrc,
connectSrc,
defaultSrc,
fontSrc,
formAction,
frameSrc,
imgSrc,
manifestSrc,
scriptSrc,
styleSrc,
workerSrc,
};
21 changes: 18 additions & 3 deletions acrobat/scripts/scripts.js
Original file line number Diff line number Diff line change
Expand Up @@ -245,13 +245,27 @@ const CONFIG = {
codeRoot: '/acrobat',
contentRoot: '/dc-shared',
imsClientId: 'acrobatmilo',
local: { edgeConfigId: 'da46a629-be9b-40e5-8843-4b1ac848745cdfdga' },
local: {
edgeConfigId: 'da46a629-be9b-40e5-8843-4b1ac848745cdfdga',
pdfViewerClientId: 'f32514316c454a1a8d9f85498ae0a948',
pdfViewerReportSuite: 'adbadobedxqa',
},
stage: {
edgeConfigId: 'da46a629-be9b-40e5-8843-4b1ac848745c',
marTechUrl: 'https://assets.adobedtm.com/d4d114c60e50/a0e989131fd5/launch-2c94beadc94f-development.min.js',
pdfViewerClientId: 'f32514316c454a1a8d9f85498ae0a948',
pdfViewerReportSuite: 'adbadobedxqa',
},
live: {
edgeConfigId: 'da46a629-be9b-40e5-8843-4b1ac848745c',
pdfViewerClientId: '18e9175fc6754b9892d315cae9f346f1',
pdfViewerReportSuite: 'adbadobedxqa',
},
prod: {
edgeConfigId: '9f3cee2b-5f73-4bf3-9504-45b51e9a9961',
pdfViewerClientId: 'ad52683540514799b6b621b5a5b20339',
pdfViewerReportSuite: 'adbadobenonacdcprod,adbadobedxprod,adbadobeprototype',
},
live: { edgeConfigId: 'da46a629-be9b-40e5-8843-4b1ac848745c' },
prod: { edgeConfigId: '9f3cee2b-5f73-4bf3-9504-45b51e9a9961' },
locales,
// geoRouting: 'on',
prodDomains: ['www.adobe.com'],
Expand Down Expand Up @@ -326,6 +340,7 @@ const { ietf } = getLocale(locales);

// Import base milo features and run them
const { loadArea, setConfig, loadLana, getMetadata } = await import(`${miloLibs}/utils/utils.js`);

addLocale(ietf);

if (getMetadata('commerce')) {
Expand Down

0 comments on commit 9dc6780

Please sign in to comment.