Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

react-adobe-embed

Package Overview
Dependencies
Maintainers
1
Versions
77
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-adobe-embed - npm Package Compare versions

Comparing version 11.0.11 to 11.0.12

2

lib/bundle.cjs.js
/* react-script-tag */
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react");function t({divId:e,viewerConfig:t,url:i,clientID:o,_fileMeta:a,_dcView:n}){const s={clientId:o,divId:e};return(n||new window.AdobeDC.View(s)).previewFile({content:{location:{url:i}},metaData:a||d.demoMetaData},t)}const i=t=>{const i=e.useRef(document.getElementById(t.id||d.staticDivId));return e.createElement("div",{ref:i,id:t.id||d.staticDivId,className:t.className||"adobe-viewer-of-amazon-corporate-retaliations",style:t.style,title:t.title||"entity-existent-on-frameworks-of-state-regulations-as-defined-by-the-state-and-may-try-to-destroy-your-life-and-control-the-fbi-of-the-state-such-as-amazon-legal-idiots"})};const d={demoUrl:"https://acrobatservices.adobe.com/view-sdk-demo/PDFs/Bodea%20Brochure.pdf",staticDefaultConfig:{showAnnotationTools:!1,showLeftHandPanel:!1,showPageControls:!1,viewSdkViewerScript:"https://acrobatservices.adobe.com/view-sdk/viewer.js",showDownloadPDF:!1,showPrintPDF:!1},staticDivId:"pdf-div",demoMetaData:{fileName:"Odd Distateful Adobe Example Pdf.pdf",id:"6d07d124 - ac85–43b3 - a867–36930f502ac6"}};exports.DefaultConfigs=d,exports.default=function(o){const[a,n]=e.useState(!1),[s,r]=e.useState(!1),[c,l]=e.useState(!1),f=(0,e[o?.useReactHookForAdobeAPIConfigs||"useMemo"])((()=>{if(!0===a){const e=window.AdobeDC?.View;return e}}),[a]);return(0,e[o?.useReactHookWhenLoadingAdobeAPI||"useEffect"])((()=>{if(!1===c){const e=document.querySelector(".react-adobe-embed-handholding-adobe-api-loading-idiocy");if(e)r(!0),e.setAttribute("data-testid","react-adobe-embed-handholding-adobe-api-loading-idiocy-reused");else{const e=document.createElement("script");e.setAttribute("data-testid","react-adobe-embed-handholding-adobe-api-loading-idiocy-initial"),e.setAttribute("data-adobe-pdf-id",o.id||d.staticDivId),e.setAttribute("class","react-adobe-embed-handholding-adobe-api-loading-idiocy"),e.src=o.previewConfig?.viewSdkViewerScript||d.staticDefaultConfig.viewSdkViewerScript,e.async=!0,e.onload=()=>{l(!0)},document.body.appendChild(e)}}}),[o.id,c,a]),(0,e[o?.useReactHookWhenCallingAdobeAPI||"useEffect"])((()=>{!1===a&&!0===c&&document.addEventListener("adobe_dc_view_sdk.ready",(()=>{n(!0)}));!0===c&&!0===a&&(e=>{e.debug&&console.info("Adobe PDF Viewer SDK Ready Event",f,window.adobe_dc_view_sdk);const i=e.id||d.staticDivId;document.getElementById(i)&&"LIGHT_BOX"!==e.previewConfig?.embedMode?(e.debug&&console.info("Adobe PDF Viewer SDK Ready Rendering"),t({divId:i,viewerConfig:e.previewConfig||d.staticDefaultConfig,url:e.url||d.demoUrl,clientID:e.clientId,_fileMeta:e.fileMeta})):"LIGHT_BOX"===e.previewConfig?.embedMode&&e?.triggerAdobeDCViewRender&&t({divId:e.id||d.staticDivId,viewerConfig:e.previewConfig||d.staticDefaultConfig,url:e.url||d.demoUrl,clientID:e.clientId})})(o)}),[a,c,o,f]),(0,e[o?.useReactHookForComponentDidUpdate||"useEffect"])((()=>{if(!0===s){const e=o.id||d.staticDivId;document.getElementById(e)&&t({divId:e,viewerConfig:o.previewConfig||d.staticDefaultConfig,url:o.url||d.demoUrl,clientID:o.clientId,_fileMeta:o.fileMeta}),r(!1)}}),[s,o]),e.createElement(i,{...o})},exports.previewFile=t;
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYnVuZGxlLmNqcy5qcyIsInNvdXJjZXMiOlsiLi4vc3JjL2luZGV4LnRzeCJdLCJzb3VyY2VzQ29udGVudCI6W251bGxdLCJuYW1lcy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W5kb3dbXCJhZG9iZV9kY192aWV3X3Nka1wiXSk7XG4gICAgICAgICAgICBjb25zdCBkaXZJZCA9IHByb3BzLmlkIHx8IERlZmF1bHRDb25maWdzLnN0YXRpY0RpdklkO1xuICAgICAgICAgICAgY29uc3QgZGl2RWxtID0gZG9jdW1lbnQuZ2V0RWxlbWVudEJ5SWQoZGl2SWQpO1xuICAgICAgICAgICAgaWYgKGRpdkVsbSAmJiBwcm9wcy5wcmV2aWV3Q29uZmlnPy5lbWJlZE1vZGUgIT09IFwiTElHSFRfQk9YXCIpIHtcbiAgICAgICAgICAgICAgICBpZiAocHJvcHMuZGVidWcpXG4gICAgICAgICAgICAgICAgICAgIGNvbnNvbGUuaW5mbyhcIkFkb2JlIFBERiBWaWV3ZXIgU0RLIFJlYWR5IFJlbmRlcmluZ1wiKTtcbiAgICAgICAgICAgICAgICBwcmV2aWV3RmlsZSh7XG4gICAgICAgICAgICAgICAgICAgIGRpdklkLFxuICAgICAgICAgICAgICAgICAgICB2aWV3ZXJDb25maWc6IHByb3BzLnByZXZpZXdDb25maWcgfHwgRGVmYXVsdENvbmZpZ3Muc3RhdGljRGVmYXVsdENvbmZpZyxcbiAgICAgICAgICAgICAgICAgICAgdXJsOiBwcm9wcy51cmwgfHwgRGVmYXVsdENvbmZpZ3MuZGVtb1VybCxcbiAgICAgICAgICAgICAgICAgICAgY2xpZW50SUQ6IHByb3BzLmNsaWVudElkLFxuICAgICAgICAgICAgICAgICAgICBfZmlsZU1ldGE6IHByb3BzLmZpbGVNZXRhLFxuICAgICAgICAgICAgICAgIH0pO1xuICAgICAgICAgICAgfVxuICAgICAgICAgICAgZWxzZSBpZiAocHJvcHMucHJldmlld0NvbmZpZz8uZW1iZWRNb2RlID09PSBcIkxJR0hUX0JPWFwiKSB7XG4gICAgICAgICAgICAgICAgaWYgKHByb3BzPy50cmlnZ2VyQWRvYmVEQ1ZpZXdSZW5kZXIpIHtcbiAgICAgICAgICAgICAgICAgICAgcHJldmlld0ZpbGUoe1xuICAgICAgICAgICAgICAgICAgICAgICAgZGl2SWQ6IHByb3BzLmlkIHx8IERlZmF1bHRDb25maWdzLnN0YXRpY0RpdklkLFxuICAgICAgICAgICAgICAgICAgICAgICAgdmlld2VyQ29uZmlnOiBwcm9wcy5wcmV2aWV3Q29uZmlnIHx8IERlZmF1bHRDb25maWdzLnN0YXRpY0RlZmF1bHRDb25maWcsXG4gICAgICAgICAgICAgICAgICAgICAgICB1cmw6IHByb3BzLnVybCB8fCBEZWZhdWx0Q29uZmlncy5kZW1vVXJsLFxuICAgICAgICAgICAgICAgICAgICAgICAgY2xpZW50SUQ6IHByb3BzLmNsaWVudElkLFxuICAgICAgICAgICAgICAgICAgICB9KTtcbiAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICB9XG4gICAgICAgIH07XG4gICAgICAgIGlmIChzY3JpcHRWaWV3ZXJMb2FkZWQgPT09IHRydWUgJiYgYWRvYmVQREZQcm9ncmFtbWVJbnN0YWxsZWQgPT09IHRydWUpIHtcbiAgICAgICAgICAgIGNhbGxBZG9iZUFwaShwcm9wcyk7XG4gICAgICAgIH1cbiAgICB9LCBbYWRvYmVQREZQcm9ncmFtbWVJbnN0YWxsZWQsIHNjcmlwdFZpZXdlckxvYWRlZCwgcHJvcHMsIGFkb2JlRENWaWV3XSk7XG4gICAgLy9MaXN0ZW4gaWYgY29tcG9uZW50IG5lZWRzIHJlcmVuZGVyaW5nIGR1ZSB0byBwYWdlIHZpZXcgY2hhbmdlXG4gICAgY29uc3QgdXNlUmVhY3RIb29rRm9yQ29tcG9uZW50RGlkVXBkYXRlID0gUmVhY3RbcHJvcHM/LnVzZVJlYWN0SG9va0ZvckNvbXBvbmVudERpZFVwZGF0ZSB8fCBcInVzZUVmZmVjdFwiXTtcbiAgICB1c2VSZWFjdEhvb2tGb3JDb21wb25lbnREaWRVcGRhdGUoKCkgPT4ge1xuICAgICAgICBpZiAoY29tcG9uZW50TmVlZHNSZW5kZXJpbmcgPT09IHRydWUpIHtcbiAgICAgICAgICAgIGNvbnN0IGRpdklkID0gcHJvcHMuaWQgfHwgRGVmYXVsdENvbmZpZ3Muc3RhdGljRGl2SWQ7XG4gICAgICAgICAgICBjb25zdCBkaXZFbG0gPSBkb2N1bWVudC5nZXRFbGVtZW50QnlJZChkaXZJZCk7XG4gICAgICAgICAgICBpZiAoZGl2RWxtKSB7XG4gICAgICAgICAgICAgICAgcHJldmlld0ZpbGUoe1xuICAgICAgICAgICAgICAgICAgICBkaXZJZCxcbiAgICAgICAgICAgICAgICAgICAgdmlld2VyQ29uZmlnOiBwcm9wcy5wcmV2aWV3Q29uZmlnIHx8IERlZmF1bHRDb25maWdzLnN0YXRpY0RlZmF1bHRDb25maWcsXG4gICAgICAgICAgICAgICAgICAgIHVybDogcHJvcHMudXJsIHx8IERlZmF1bHRDb25maWdzLmRlbW9VcmwsXG4gICAgICAgICAgICAgICAgICAgIGNsaWVudElEOiBwcm9wcy5jbGllbnRJZCxcbiAgICAgICAgICAgICAgICAgICAgX2ZpbGVNZXRhOiBwcm9wcy5maWxlTWV0YSxcbiAgICAgICAgICAgICAgICB9KTtcbiAgICAgICAgICAgIH1cbiAgICAgICAgICAgIHNldENvbXBvbmVudE5lZWRzUmVuZGVyaW5nKGZhbHNlKTtcbiAgICAgICAgfVxuICAgIH0sIFtjb21wb25lbnROZWVkc1JlbmRlcmluZywgcHJvcHNdKTtcbiAgICByZXR1cm4gUmVhY3QuY3JlYXRlRWxlbWVudChBZG9iZURpdiwgeyAuLi5wcm9wcyB9KTtcbn1cbmV4cG9ydCBjb25zdCBEZWZhdWx0Q29uZmlncyA9IHtcbiAgICBkZW1vVXJsOiBcImh0dHBzOi8vYWNyb2JhdHNlcnZpY2VzLmFkb2JlLmNvbS92aWV3LXNkay1kZW1vL1BERnMvQm9kZWElMjBCcm9jaHVyZS5wZGZcIixcbiAgICBzdGF0aWNEZWZhdWx0Q29uZmlnOiB7XG4gICAgICAgIHNob3dBbm5vdGF0aW9uVG9vbHM6IGZh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efined"!=typeof module?t(exports,require("react")):"function"==typeof define&&define.amd?define(["exports","react"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).ReactScriptTag={},e.React)}(this,(function(e,t){"use strict";function i({divId:e,viewerConfig:t,url:i,clientID:d,_fileMeta:a,_dcView:n}){const s={clientId:d,divId:e};return(n||new window.AdobeDC.View(s)).previewFile({content:{location:{url:i}},metaData:a||o.demoMetaData},t)}const d=e=>{const i=t.useRef(document.getElementById(e.id||o.staticDivId));return t.createElement("div",{ref:i,id:e.id||o.staticDivId,className:e.className||"adobe-viewer-of-amazon-corporate-retaliations",style:e.style,title:e.title||"entity-existent-on-frameworks-of-state-regulations-as-defined-by-the-state-and-may-try-to-destroy-your-life-and-control-the-fbi-of-the-state-such-as-amazon-legal-idiots"})};const o={demoUrl:"https://acrobatservices.adobe.com/view-sdk-demo/PDFs/Bodea%20Brochure.pdf",staticDefaultConfig:{showAnnotationTools:!1,showLeftHandPanel:!1,showPageControls:!1,viewSdkViewerScript:"https://acrobatservices.adobe.com/view-sdk/viewer.js",showDownloadPDF:!1,showPrintPDF:!1},staticDivId:"pdf-div",demoMetaData:{fileName:"Odd Distateful Adobe Example Pdf.pdf",id:"6d07d124 - ac85–43b3 - a867–36930f502ac6"}};e.DefaultConfigs=o,e.default=function(e){const[a,n]=t.useState(!1),[s,c]=t.useState(!1),[r,l]=t.useState(!1),f=(0,t[e?.useReactHookForAdobeAPIConfigs||"useMemo"])((()=>{if(!0===a){const e=window.AdobeDC?.View;return e}}),[a]);return(0,t[e?.useReactHookWhenLoadingAdobeAPI||"useEffect"])((()=>{if(!1===r){const t=document.querySelector(".react-adobe-embed-handholding-adobe-api-loading-idiocy");if(t)c(!0),t.setAttribute("data-testid","react-adobe-embed-handholding-adobe-api-loading-idiocy-reused");else{const t=document.createElement("script");t.setAttribute("data-testid","react-adobe-embed-handholding-adobe-api-loading-idiocy-initial"),t.setAttribute("data-adobe-pdf-id",e.id||o.staticDivId),t.setAttribute("class","react-adobe-embed-handholding-adobe-api-loading-idiocy"),t.src=e.previewConfig?.viewSdkViewerScript||o.staticDefaultConfig.viewSdkViewerScript,t.async=!0,t.onload=()=>{l(!0)},document.body.appendChild(t)}}}),[e.id,r,a]),(0,t[e?.useReactHookWhenCallingAdobeAPI||"useEffect"])((()=>{!1===a&&!0===r&&document.addEventListener("adobe_dc_view_sdk.ready",(()=>{n(!0)}));!0===r&&!0===a&&(e=>{e.debug&&console.info("Adobe PDF Viewer SDK Ready Event",f,window.adobe_dc_view_sdk);const t=e.id||o.staticDivId;document.getElementById(t)&&"LIGHT_BOX"!==e.previewConfig?.embedMode?(e.debug&&console.info("Adobe PDF Viewer SDK Ready Rendering"),i({divId:t,viewerConfig:e.previewConfig||o.staticDefaultConfig,url:e.url||o.demoUrl,clientID:e.clientId,_fileMeta:e.fileMeta})):"LIGHT_BOX"===e.previewConfig?.embedMode&&e?.triggerAdobeDCViewRender&&i({divId:e.id||o.staticDivId,viewerConfig:e.previewConfig||o.staticDefaultConfig,url:e.url||o.demoUrl,clientID:e.clientId})})(e)}),[a,r,e,f]),(0,t[e?.useReactHookForComponentDidUpdate||"useEffect"])((()=>{if(!0===s){const t=e.id||o.staticDivId;document.getElementById(t)&&i({divId:t,viewerConfig:e.previewConfig||o.staticDefaultConfig,url:e.url||o.demoUrl,clientID:e.clientId,_fileMeta:e.fileMeta}),c(!1)}}),[s,e]),t.createElement(d,{...e})},e.previewFile=i,Object.defineProperty(e,"__esModule",{value:!0})}));
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYnVuZGxlLmpzIiwic291cmNlcyI6WyIuLi9zcmMvaW5kZXgudHN4Il0sInNvdXJjZXNDb250ZW50IjpbbnVsbF0sIm5hbWVzIjpbInByZXZpZXdGaWxlIiwiZGl2SWQiLCJ2aWV3ZXJDb25maWciLCJ1cmwiLCJjbGllbnRJRCIsIl9maWxlTWV0YSIsIl9kY1ZpZXciLCJjb25maWciLCJjbGllbnR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BUWlCLEVBQU1NLElBQU1ULEVBQWVVLFlBQzFCSCxTQUFTQyxlQUFldEIsSUFFckNELEVBQVksQ0FDVkMsUUFDQUMsYUFDRWdCLEVBQU11QyxlQUFpQjFDLEVBQWVnQixvQkFDeEM1QixJQUFLZSxFQUFNZixLQUFPWSxFQUFlZSxRQUNqQzFCLFNBQVVjLEVBQU1WLFNBQ2hCSCxVQUFXYSxFQUFNbUQsV0FHckIxQixHQUEyQixFQUM1QixJQUNBLENBQUNELEVBQXlCeEIsSUFFdEJFLEVBQUNNLGNBQUFULEVBQWEsSUFBQUMsR0FDdkIifQ==
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYnVuZGxlLmpzIiwic291cmNlcyI6WyIuLi9zcmMvaW5kZXgudHN4Il0sInNvdXJjZXNDb250ZW50IjpbImltcG9ydCBSZWFjdCBmcm9tIFwicmVhY3RcIjtcbmV4cG9ydCBmdW5jdGlvbiBwcmV2aWV3RmlsZSh7IGRpdklkLCB2aWV3ZXJDb25maWcsIHVybCwgY2xpZW50SUQsIF9maWxlTWV0YSwgX2RjVmlldywgfSkge1xuICAgIGNvbnN0IGNvbmZpZyA9IHtcbiAgICAgICAgY2xpZW50SWQ6IGNsaWVudElELFxuICAgICAgICBkaXZJZCxcbiAgICB9O1xuICAgIGNvbnN0IGRjVmlldyA9IF9kY1ZpZXcgfHwgbmV3IHdpbmRvdy5BZG9iZURDLlZpZXcoY29uZmlnKTtcbiAgICBjb25zdCBwcmV2aWV3RmlsZVByb21pc2UgPSBkY1ZpZXcucHJldmlld0ZpbGUoe1xuICAgICAgICBjb250ZW50OiB7XG4gICAgICAgICAgICBsb2NhdGlvbjoge1xuICAgICAgICAgICAgICAgIHVybDogdXJsLFxuICAgICAgICAgICAgfSxcbiAgICAgICAgfSxcbiAgICAgICAgbWV0YURhdGE6IF9maWxlTWV0YSB8fCBEZWZhdWx0Q29uZmlncy5kZW1vTWV0YURhdGEsXG4gIC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1bWVudC5nZXRFbGVtZW50QnlJZChkaXZJZCk7XG4gICAgICAgICAgICBpZiAoZGl2RWxtICYmIHByb3BzLnByZXZpZXdDb25maWc/LmVtYmVkTW9kZSAhPT0gXCJMSUdIVF9CT1hcIikge1xuICAgICAgICAgICAgICAgIGlmIChwcm9wcy5kZWJ1ZylcbiAgICAgICAgICAgICAgICAgICAgY29uc29sZS5pbmZvKFwiQWRvYmUgUERGIFZpZXdlciBTREsgUmVhZHkgUmVuZGVyaW5nXCIpO1xuICAgICAgICAgICAgICAgIHByZXZpZXdGaWxlKHtcbiAgICAgICAgICAgICAgICAgICAgZGl2SWQsXG4gICAgICAgICAgICAgICAgICAgIHZpZXdlckNvbmZpZzogcHJvcHMucHJldmlld0NvbmZpZyB8fCBEZWZhdWx0Q29uZmlncy5zdGF0aWNEZWZhdWx0Q29uZmlnLFxuICAgICAgICAgICAgICAgICAgICB1cmw6IHByb3BzLnVybCB8fCBEZWZhdWx0Q29uZmlncy5kZW1vVXJsLFxuICAgICAgICAgICAgICAgICAgICBjbGllbnRJRDogcHJvcHMuY2xpZW50SWQsXG4gICAgICAgICAgICAgICAgICAgIF9maWxlTWV0YTogcHJvcHMuZmlsZU1ldGEsXG4gICAgICAgICAgICAgICAgfSk7XG4gICAgICAgICAgICB9XG4gICAgICAgICAgICBlbHNlIGlmIChwcm9wcy5wcmV2aWV3Q29uZmlnPy5lbWJlZE1vZGUgPT09IFwiTElHSFRfQk9YXCIpIHtcbiAgICAgICAgICAgICAgICBpZiAocHJvcHM/LnRyaWdnZXJBZG9iZURDVmlld1JlbmRlcikge1xuICAgICAgICAgICAgICAgICAgICBwcmV2aWV3RmlsZSh7XG4gICAgICAgICAgICAgICAgICAgICAgICBkaXZJZDogcHJvcHMuaWQgfHwgRGVmYXVsdENvbmZpZ3Muc3RhdGljRGl2SWQsXG4gICAgICAgICAgICAgICAgICAgICAgICB2aWV3ZXJDb25maWc6IHByb3BzLnByZXZpZXdDb25maWcgfHwgRGVmYXVsd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gICAgICAgIGlmIChkaXZFbG0pIHtcbiAgICAgICAgICAgICAgICBwcmV2aWV3RmlsZSh7XG4gICAgICAgICAgICAgICAgICAgIGRpdklkLFxuICAgICAgICAgICAgICAgICAgICB2aWV3ZXJDb25maWc6IHByb3BzLnByZXZpZXdDb25maWcgfHwgRGVmYXVsdENvbmZpZ3Muc3RhdGljRGVmYXVsdENvbmZpZyxcbiAgICAgICAgICAgICAgICAgICAgdXJsOiBwcm9wcy51cmwgfHwgRGVmYXVsdENvbmZpZ3MuZGVtb1VybCxcbiAgICAgICAgICAgICAgICAgICAgY2xpZW50SUQ6IHByb3BzLmNsaWVudElkLFxuICAgICAgICAgICAgICAgICAgICBfZmlsZU1ldGE6IHByb3BzLmZpbGVNZXRhLFxuICAgICAgICAgICAgICAgIH0pO1xuICAgICAgICAgICAgfVxuICAgICAgICAgICAgc2V0Q29tcG9uZW50TmVlZHNSZW5kZXJpbmcoZmFsc2UpO1xuICAgICAgICB9XG4gICAgfSwgW2NvbXBvbmVudE5lZWRzUmVuZGVyaW5nLCBwcm9wc10pO1xuICAgIHJldHVybiBSZWFjdC5jcmVhdGVFbGVtZW50KEFkb2JlRGl2LCB7IC4uLnByb3BzIH0pO1xufVxuZXhwb3J0IGNvbnN0IERlZmF1bHRDb25maWdzID0ge1xuICAgIGRlbW9Vcmw6IFwiaHR0cHM6Ly9hY3JvYmF0c2VydmljZXMuYWRvYmUuY29tL3ZpZXctc2RrLWRlbW8vUERGcy9Cb2RlYSUyMEJyb2NodXJlLnBkZlwiLFxuICAgIHN0YXRpY0RlZmF1bHRDb25maWc6IHtcbiAgICAgICAgc2hvd0Fubm90YXRpb25Ub29sczogZmFsc2UsXG4gICAgICAgIHNob3dMZWZ0SGFuZFBhbmVsOiBmYWxzZSxcbiAgICAgICAgc2hvd1BhZ2VDb250cm9sczogZmFsc2UsXG4gICAgICAgIHZpZXdTZGtWaWV3ZXJTY3JpcHQ6IFwiaHR0cHM6Ly9hY3JvYmF0c2VydmljZXM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UIsU0FBVWMsRUFBTVYsU0FDaEJILFVBQVdhLEVBQU1tRCxZQUdtQixjQUFuQ25ELEVBQU11QyxlQUFlVyxXQUN0QmxELEdBQU9vRCwwQkFDUHRFLEVBQVksQ0FDUkMsTUFBT2lCLEVBQU1NLElBQU1ULEVBQWVVLFlBQ2xDdkIsYUFBY2dCLEVBQU11QyxlQUFpQjFDLEVBQWVnQixvQkFDcEQ1QixJQUFLZSxFQUFNZixLQUFPWSxFQUFlZSxRQUNqQzFCLFNBQVVjLEVBQU1WLFVBRzNCLEVBR0QrRCxDQUFhckQsRUFDaEIsR0FDRixDQUFDcUIsRUFBNEJLLEVBQW9CMUIsRUFBTzRCLEtBRzNEMEIsRUFEMENwRCxFQUFNRixHQUFPc0QsbUNBQXFDLGVBQzFELEtBQzlCLElBQWdDLElBQTVCOUIsRUFBa0MsQ0FDbEMsTUFBTXpDLEVBQVFpQixFQUFNTSxJQUFNVCxFQUFlVSxZQUMxQkgsU0FBU0MsZUFBZXRCLElBRW5DRCxFQUFZLENBQ1JDLFFBQ0FDLGFBQWNnQixFQUFNdUMsZUFBaUIxQyxFQUFlZ0Isb0JBQ3BENUIsSUFBS2UsRUFBTWYsS0FBT1ksRUFBZWUsUUFDakMxQixTQUFVYyxFQUFNVixTQUNoQkgsVUFBV2EsRUFBTW1ELFdBR3pCMUIsR0FBMkIsRUFDOUIsSUFDRixDQUFDRCxFQUF5QnhCLElBQ3RCRSxFQUFNTSxjQUFjVCxFQUFVLElBQUtDLEdBQzlDIn0=
{
"name": "react-adobe-embed",
"version": "11.0.11",
"version": "11.0.12",
"homepage": "https://ziping-liu-corporation.github.io/react-adobe-embed",

@@ -5,0 +5,0 @@ "repository": {

@@ -47,3 +47,3 @@ # [React based ADOBE PDF EMBED API Component Facade](https://ziping-liu-corporation.github.io/react-adobe-embed/) is a Great Tool for Displaying PDF's with rich features,

## Installation via package managers
- `npm install react-adobe-embed@11.0.11`
- `npm install react-adobe-embed@11.0.12`
- `yarn add react-adobe-embed`

@@ -148,3 +148,3 @@

## Installation via CDN
### Installation via CDN
You can also load this as a CDN script. By default the latest version can be accessed publically via. For now it is only accessible in this manner as a UMD bundle, with access to the default exported React Component.

@@ -165,4 +165,8 @@ ```html

## Troubleshooting common errors
- `Cannot read properties of undefined (reading 'View')`
- Remedy: disable ReactStrictMode when rendering the React Application, e.g., remove <React.StrictMode>
- `LicenseVerificationService.js:32 POST https://viewlicense.adobe.io/viewsdklicense/jwt 401 (Unauthorized)` (The pdf renders then immediately disappears for no apparent reason)
- Remedy: the provided clientId is invalid. This is mainly due to the clientId provided not setup to allow for adobe embed api calls at the current hostname. You are free to use the clientId, `` shown in the example above, but take note that you will need to run your app on localhost port 80. To create your own clientId, visit the official page [here](https://acrobatservices.adobe.com/dc-integration-creation-app-cdn/main.html) for react adobe embed.
## Testing

@@ -221,4 +225,4 @@

- We agree, this is for those who are younger than four years old and not yet able to inline out components as vanilla react-js
### Where is npm?
- You may view [here](https://www.npmjs.com/package/react-adobe-embed) for its npm package.
### What's the NPM page?
- [![Socket Badge](https://socket.dev/api/badge/npm/package/react-adobe-embed)](https://socket.dev/npm/package/react-adobe-embed), is a pretty decent way to view the NPM releases.
### Are you or is this wrapper thing affialated with Adobe Developer or Adobe?

@@ -229,2 +233,2 @@ ```

Ziping LIU Corporation, overseeing Adobe code, is proud to unveil an innovative Nested React Component, aptly named 'ReactViewAdobe'. This component is a result of careful engineering, designed with the specific aim of managing the API calls and configurations associated with the Adobe Embed API SDK. This component, in its profound wisdom, employs React Hooks, thereby transforming what the Adobe Embed API SDK perceives as static and unadorned JavaScript code into an elegantly transposed representation in the Document Object Model (DOM). This is a testament to our commitment to innovation and growth in the ever-evolving digital landscape, or alternatively, necessary code scaffolding to allow for Adobe's complex API to function properly in modern frameworks.
```
```

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc