@syncfusion/ej2-react-pdfviewer 34.2.5 → 34.2.7

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/README.md CHANGED
@@ -18,16 +18,30 @@ Trusted by the world's leading companies
18
18
  <img src="https://ej2.syncfusion.com/home/images/trusted_companies.png" alt="Bootstrap logo">
19
19
  </a>
20
20
  </p>
21
+
22
+ > **Using this package with an AI coding agent**
23
+ >
24
+ > Before generating Syncfusion code, ask your AI coding agent to run the Syncfusion setup using the following prompt:
25
+ >
26
+ > ```text
27
+ > Set up this project for Syncfusion before generating code. Fetch
28
+ > and follow the official instructions at https://ai.syncfusion.com/,
29
+ > then report the detected platform, installed skill pack, MCP
30
+ > status, and any required licensing action.
31
+ > ```
32
+ > The setup detects your project’s platform and loads the appropriate Syncfusion skill pack. No Syncfusion account or MCP key is required to install or read Syncfusion agent skills.
33
+ >
34
+ > **Platform reference:** [https://ai.syncfusion.com/react/llms.txt](https://ai.syncfusion.com/react/llms.txt)
21
35
 
22
36
  ## Setup
23
37
 
24
38
  ### Create a React Application
25
39
 
26
- You can use [`create-react-app`](https://github.com/facebookincubator/create-react-app) to setup applications. To create React app use the following command.
40
+ You can use [`Vite`](https://vite.dev/guide/) to setup applications. To create React application, use the following command.
27
41
 
28
42
  ```bash
29
- npx create-react-app my-app --template typescript
30
- cd my-app
43
+ npm create vite@latest pdf-viewer-app -- --template react-ts
44
+ cd pdf-viewer-app
31
45
  npm start
32
46
  ```
33
47
 
@@ -41,21 +55,20 @@ npm install @syncfusion/ej2-react-pdfviewer --save
41
55
 
42
56
  ### Adding CSS references for PDF Viewer
43
57
 
44
- Add CSS references needed for a PDF Viewer in **src/index.css** from the **../node_modules/@syncfusion** package folder.
58
+ Install the styles package from npm using the following command:
59
+
60
+ ```bash
61
+ npm install @syncfusion/ej2-tailwind3-theme
62
+ ```
63
+
64
+ The Tailwind 3 theme package includes an `index.css` file that automatically imports all required PDF Viewer styles. Add the required PDF Viewer theme style reference to **src/App.css** file.
45
65
 
46
66
  ```css
47
- @import '../node_modules/@syncfusion/ej2-base/styles/material.css';
48
- @import '../node_modules/@syncfusion/ej2-buttons/styles/material.css';
49
- @import '../node_modules/@syncfusion/ej2-inputs/styles/material.css';
50
- @import '../node_modules/@syncfusion/ej2-popups/styles/material.css';
51
- @import '../node_modules/@syncfusion/ej2-lists/styles/material.css';
52
- @import '../node_modules/@syncfusion/ej2-navigations/styles/material.css';
53
- @import '../node_modules/@syncfusion/ej2-dropdowns/styles/material.css';
54
- @import '../node_modules/@syncfusion/ej2-splitbuttons/styles/material.css';
55
- @import '../node_modules/@syncfusion/ej2-notifications/styles/material.css';
56
- @import "../node_modules/@syncfusion/ej2-react-pdfviewer/styles/material.css";
67
+ @import '../node_modules/@syncfusion/ej2-tailwind3-theme/styles/pdfviewer/index.css';
57
68
  ```
58
69
 
70
+ For more themes, see the [themes documentation](https://ej2.syncfusion.com/react/documentation/appearance/theme#theme-packages).
71
+
59
72
  ### Add PDF Viewer component
60
73
 
61
74
  In the **src/index.js** file, use the following code snippet to render the Syncfusion&reg; React PDF Viewer control and import **index.css** to apply styles to the PDF Viewer:
@@ -88,8 +101,8 @@ export class Default extends SampleBase {
88
101
  <div className="control-section">
89
102
  <PdfViewerComponent
90
103
  id="container"
91
- documentPath="PDF_Succinctly.pdf"
92
- serviceUrl="https://ej2services.syncfusion.com/production/web-services/api/pdfviewer"
104
+ documentPath="https://cdn.syncfusion.com/content/pdf/pdf-succinctly.pdf"
105
+ resourceUrl="https://cdn.syncfusion.com/ej2/34.1.29/dist/ej2-pdfviewer-lib"
93
106
  toolbarSettings={{ showTooltip: true, toolbarItems: ['OpenOption', 'PanTool', 'AnnotationEditTool', 'FormDesignerEditTool', ], annotationToolbarItems: ['HandWrittenSignatureTool'], formDesignerToolbarItems: ['TextboxTool', 'PasswordTool', ] }}
94
107
  style={{ height: '640px' }}
95
108
  >
@@ -129,22 +142,22 @@ PDF Viewer component is also offered in the following list of frameworks.
129
142
 
130
143
  ## Key features
131
144
 
132
- * [View PDF Document](https://help.syncfusion.com/document-processing/pdf/pdf-viewer/react/getting-started/) - Open and display both the normal and the protected PDF files with AES and RC4 encryption.
133
- * [Annotations](https://help.syncfusion.com/document-processing/pdf/pdf-viewer/react/annotation/text-markup-annotation/) - Annotate with text markup, shapes, stamps, ink, and sticky notes.
134
- * [Form Fields](https://help.syncfusion.com/document-processing/pdf/pdf-viewer/react/form-designer/create-fillable-pdf-forms/create-programmatically/) - Form filling and form designing can be done.
135
- * [Signature](https://help.syncfusion.com/document-processing/pdf/pdf-viewer/angular/handwritten-signature/) - Hand-written and digital signatures are allowed.
136
- * [Toolbar](https://help.syncfusion.com/document-processing/pdf/pdf-viewer/react/toolbar/) - Built-in-toolbar and custom toolbars to perform user interaction of PDF Viewer functionalities.
137
- * [Navigation](https://help.syncfusion.com/document-processing/pdf/pdf-viewer/react/navigation/) - Easy navigation with the help of bookmarks, thumbnails, hyperlinks, and table of contents.
138
- * [Magnification](https://help.syncfusion.com/document-processing/pdf/pdf-viewer/react/magnification/) - Fit to page, fit to width, and automatic (fits to the visible area).
139
- * [Search](https://help.syncfusion.com/document-processing/pdf/pdf-viewer/react/text-search/) - Search a text easily across the PDF document.
140
- * [Core Interactions](https://help.syncfusion.com/document-processing/pdf/pdf-viewer/react/interaction-mode/) - Allows scrolling, zooming, panning, selection, and page navigation.
141
- * [Print](https://help.syncfusion.com/document-processing/pdf/pdf-viewer/react/print/) - Print the entire document or a specific page directly from the browser.
142
- * [Globalization](https://help.syncfusion.com/document-processing/pdf/pdf-viewer/react/globalization/) - Provides inherent support to localize the UI.
145
+ * [View PDF Document](https://help.syncfusion.com/document-processing/pdf/pdf-viewer/react/getting-started) - Open and display both the normal and the protected PDF files with AES and RC4 encryption.
146
+ * [Annotations](https://help.syncfusion.com/document-processing/pdf/pdf-viewer/react/annotation/overview) - Annotate with text markup, shapes, stamps, ink, and sticky notes.
147
+ * [Form Fields](https://help.syncfusion.com/document-processing/pdf/pdf-viewer/react/forms/overview) - Form filling and form designing can be done.
148
+ * [Signature](https://help.syncfusion.com/document-processing/pdf/pdf-viewer/angular/annotation/signature-annotation) - Hand-written and digital signatures are allowed.
149
+ * [Toolbar](https://help.syncfusion.com/document-processing/pdf/pdf-viewer/react/toolbar-customization/overview) - Built-in-toolbar and custom toolbars to perform user interaction of PDF Viewer functionalities.
150
+ * [Navigation](https://help.syncfusion.com/document-processing/pdf/pdf-viewer/react/interactive-pdf-navigation/overview) - Easy navigation with the help of bookmarks, thumbnails, hyperlinks, and table of contents.
151
+ * [Magnification](https://help.syncfusion.com/document-processing/pdf/pdf-viewer/react/magnification/magnification) - Fit to page, fit to width, and automatic (fits to the visible area).
152
+ * [Search](https://help.syncfusion.com/document-processing/pdf/pdf-viewer/react/text-search/overview) - Search a text easily across the PDF document.
153
+ * [Core Interactions](https://help.syncfusion.com/document-processing/pdf/pdf-viewer/react/interaction-mode) - Allows scrolling, zooming, panning, selection, and page navigation.
154
+ * [Print](https://help.syncfusion.com/document-processing/pdf/pdf-viewer/react/print/overview) - Print the entire document or a specific page directly from the browser.
155
+ * [Globalization](https://help.syncfusion.com/document-processing/pdf/pdf-viewer/react/localization/default-language) - Provides inherent support to localize the UI.
143
156
 
144
157
  ## Resources
145
158
 
146
- * [AI Coding Assistant](https://ej2.syncfusion.com/react/documentation/ai-coding-assistants/overview)
147
- * [Theme Studio](https://ej2.syncfusion.com/themestudio/)
159
+ * [AI Coding Assistant](https://ej2.syncfusion.com/react/documentation/ai-tools/ai-powered-development)
160
+ * [Theme Studio](https://ej2.syncfusion.com/themestudio/?theme=tailwind3)
148
161
  * [What's New](https://www.syncfusion.com/products/whatsnew/pdf-viewer-sdk?utm_medium=listing&utm_source=github)
149
162
  * [Road Map](https://www.syncfusion.com/products/roadmap/pdf-viewer-sdk)
150
163
  * [E-Books](https://www.syncfusion.com/succinctly-free-ebooks?searchkey=react&type=all)
package/diConfig.json CHANGED
@@ -88,7 +88,7 @@
88
88
  "reactComment": [
89
89
  "/**",
90
90
  " * `Represents the react PdfViewer Component.",
91
- " * ```tsx",
91
+ " * ```ts",
92
92
  " * <PdfViewerComponent />",
93
93
  " * ```",
94
94
  " */"
@@ -96,7 +96,7 @@
96
96
  "vueComment": [
97
97
  "/**",
98
98
  " * `ejs-pdfviewer` represents the VueJS PdfViewer Component.",
99
- " * ```vue",
99
+ " * ```html",
100
100
  " * <ejs-pdfviewer></ejs-pdfviewer>",
101
101
  " * ```",
102
102
  " */"
@@ -1 +1,10 @@
1
+ /*!
2
+ * filename: ej2-react-pdfviewer.min.js
3
+ * version : 34.2.7
4
+ * Copyright Syncfusion Inc. 2001 - 2025. All rights reserved.
5
+ * Use of this code is subject to the terms of our license.
6
+ * A copy of the current license can be obtained at any time by e-mailing
7
+ * licensing@syncfusion.com. Any infringement will be prosecuted under
8
+ * applicable laws.
9
+ */
1
10
  !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("React"),require("SyncfusionPdfviewer"),require("SyncfusionReactBase")):"function"==typeof define&&define.amd?define(["React","SyncfusionPdfviewer","SyncfusionReactBase"],t):"object"==typeof exports?exports.SyncfusionReactPdfviewer=t(require("React"),require("SyncfusionPdfviewer"),require("SyncfusionReactBase")):e.SyncfusionReactPdfviewer=t(e.React,e.SyncfusionPdfviewer,e.SyncfusionReactBase)}(self,(e,t,r)=>(()=>{"use strict";var n={804:(e,t,r)=>{r.d(t,{r:()=>a});var n,o=r(24),i=r(92),c=r(705),s=(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])},n(e,t)},function(e,t){function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),a=function(e){function t(t){var r=e.call(this,t)||this;return r.initRenderCalled=!1,r.checkInjectedModules=!0,r.statelessTemplateProps=null,r.templateProps=null,r.immediateRender=!0,r.isReactMock=!0,r.portals=[],r}return s(t,e),t.prototype.render=function(){if(this.isReactMock=!1,!(this.element&&!this.initRenderCalled||this.refreshing)||this.isReactForeceUpdate)return o.createElement("div",this.getDefaultAttributes(),[].concat(this.props.children,this.portals));e.prototype.render.call(this),this.initRenderCalled=!0},t}(i.PdfViewer);(0,c.applyMixins)(a,[c.ComponentBase,o.Component])},24:t=>{t.exports=e},92:e=>{e.exports=t},705:e=>{e.exports=r}},o={};function i(e){var t=o[e];if(void 0!==t)return t.exports;var r=o[e]={exports:{}};return n[e](r,r.exports,i),r.exports}i.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return i.d(t,{a:t}),t},i.d=(e,t)=>{for(var r in t)i.o(t,r)&&!i.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},i.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),i.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var c={};return(()=>{i.r(c),i.d(c,{Inject:()=>t.Inject,PdfViewerComponent:()=>e.r});var e=i(804),t=i(705),r=i(92),n={};for(const e in r)["default","Inject","PdfViewerComponent"].indexOf(e)<0&&(n[e]=()=>r[e]);i.d(c,n)})(),c})());
@@ -1,2 +1,11 @@
1
+ /*!
2
+ * filename: ej2-react-pdfviewer.umd.min.js
3
+ * version : 34.2.7
4
+ * Copyright Syncfusion Inc. 2001 - 2025. All rights reserved.
5
+ * Use of this code is subject to the terms of our license.
6
+ * A copy of the current license can be obtained at any time by e-mailing
7
+ * licensing@syncfusion.com. Any infringement will be prosecuted under
8
+ * applicable laws.
9
+ */
1
10
  !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("react"),require("@syncfusion/ej2-pdfviewer"),require("@syncfusion/ej2-react-base")):"function"==typeof define&&define.amd?define(["exports","react","@syncfusion/ej2-pdfviewer","@syncfusion/ej2-react-base"],t):t((e=e||self).ej={},e.React,e.ej2Pdfviewer,e.ej2ReactBase)}(this,function(t,e,n,r){"use strict";i=function(e,t){return(i=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(e,t){e.__proto__=t}:function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])}))(e,t)};var i,o,c=function(e,t){function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},c=(o=n.PdfViewer,c(s,o),s.prototype.render=function(){if(this.isReactMock=!1,!(this.element&&!this.initRenderCalled||this.refreshing)||this.isReactForeceUpdate)return e.createElement("div",this.getDefaultAttributes(),[].concat(this.props.children,this.portals));o.prototype.render.call(this),this.initRenderCalled=!0},s);function s(e){e=o.call(this,e)||this;return e.initRenderCalled=!1,e.checkInjectedModules=!0,e.statelessTemplateProps=null,e.templateProps=null,e.immediateRender=!0,e.isReactMock=!0,e.portals=[],e}r.applyMixins(c,[r.ComponentBase,e.Component]),Object.keys(n).forEach(function(e){"default"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return n[e]}})}),Object.defineProperty(t,"Inject",{enumerable:!0,get:function(){return r.Inject}}),t.PdfViewerComponent=c,Object.defineProperty(t,"__esModule",{value:!0})});
2
11
  //# sourceMappingURL=ej2-react-pdfviewer.umd.min.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"ej2-react-pdfviewer.umd.min.js","sources":["../src/pdfviewer/pdfviewer.component.js"],"sourcesContent":["var __extends = (this && this.__extends) || (function () {\n var extendStatics = function (d, b) {\n extendStatics = Object.setPrototypeOf ||\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\n function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };\n return extendStatics(d, b);\n };\n return function (d, b) {\n extendStatics(d, b);\n function __() { this.constructor = d; }\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n})();\nimport * as React from 'react';\nimport { PdfViewer } from '@syncfusion/ej2-pdfviewer';\nimport { ComponentBase, applyMixins } from '@syncfusion/ej2-react-base';\n/**\n * `Represents the react PdfViewer Component.\n * ```tsx\n * <PdfViewerComponent />\n * ```\n */\nvar PdfViewerComponent = /** @class */ (function (_super) {\n __extends(PdfViewerComponent, _super);\n function PdfViewerComponent(props) {\n var _this = _super.call(this, props) || this;\n _this.initRenderCalled = false;\n _this.checkInjectedModules = true;\n _this.statelessTemplateProps = null;\n _this.templateProps = null;\n _this.immediateRender = true;\n _this.isReactMock = true;\n _this.portals = [];\n return _this;\n }\n PdfViewerComponent.prototype.render = function () {\n this.isReactMock = false;\n if (((this.element && !this.initRenderCalled) || this.refreshing) && !this.isReactForeceUpdate) {\n _super.prototype.render.call(this);\n this.initRenderCalled = true;\n }\n else {\n return React.createElement('div', this.getDefaultAttributes(), [].concat(this.props.children, this.portals));\n }\n };\n return PdfViewerComponent;\n}(PdfViewer));\nexport { PdfViewerComponent };\napplyMixins(PdfViewerComponent, [ComponentBase, React.Component]);\n"],"names":["extendStatics","d","b","Object","setPrototypeOf","__proto__","Array","p","hasOwnProperty","_super","__extends","__","this","constructor","prototype","create","PdfViewerComponent","PdfViewer","render","isReactMock","element","initRenderCalled","refreshing","isReactForeceUpdate","React.createElement","getDefaultAttributes","concat","props","children","portals","call","_this","checkInjectedModules","statelessTemplateProps","templateProps","immediateRender","ComponentBase","React.Component"],"mappings":"wYACQA,EAAgB,SAAUC,EAAGC,GAI7B,OAHAF,EAAgBG,OAAOC,iBAClB,CAAEC,UAAW,cAAgBC,MAAS,SAAUL,EAAGC,GAAKD,EAAEI,UAAYH,GACvE,SAAUD,EAAGC,GAAK,IAAK,IAAIK,KAAKL,EAAOA,EAAEM,eAAeD,CAAC,IAAGN,EAAEM,GAAKL,EAAEK,OACpDN,EAAGC,CAAC,GALjC,IACQF,EAqB0CS,EAtB9CC,EAOO,SAAUT,EAAGC,GAEhB,SAASS,IAAOC,KAAKC,YAAcZ,EADnCD,EAAcC,EAAGC,CAAC,EAElBD,EAAEa,UAAkB,OAANZ,EAAaC,OAAOY,OAAOb,CAAC,GAAKS,EAAGG,UAAYZ,EAAEY,UAAW,IAAIH,IAYnFK,GAA8CP,EAwBhDQ,YAvBEP,EAAUM,EAAoBP,CAAM,EAYpCO,EAAmBF,UAAUI,OAAS,WAElC,GADAN,KAAKO,YAAc,CAAA,EACf,EAAEP,KAAKQ,SAAW,CAACR,KAAKS,kBAAqBT,KAAKU,aAAgBV,KAAKW,oBAKvE,OAAOC,gBAAoB,MAAOZ,KAAKa,uBAAwB,GAAGC,OAAOd,KAAKe,MAAMC,SAAUhB,KAAKiB,OAAO,CAAC,EAJ3GpB,EAAOK,UAAUI,OAAOY,KAAKlB,IAAI,EACjCA,KAAKS,iBAAmB,CAAA,GAMzBL,GArBP,SAASA,EAAmBW,GACpBI,EAAQtB,EAAOqB,KAAKlB,KAAMe,CAAK,GAAKf,KAQxC,OAPAmB,EAAMV,iBAAmB,CAAA,EACzBU,EAAMC,qBAAuB,CAAA,EAC7BD,EAAME,uBAAyB,KAC/BF,EAAMG,cAAgB,KACtBH,EAAMI,gBAAkB,CAAA,EACxBJ,EAAMZ,YAAc,CAAA,EACpBY,EAAMF,QAAU,GACTE,gBAeHf,EAAoB,CAACoB,gBAAeC,YAAgB"}
1
+ {"version":3,"file":"ej2-react-pdfviewer.umd.min.js","sources":["../src/pdfviewer/pdfviewer.component.js"],"sourcesContent":["var __extends = (this && this.__extends) || (function () {\n var extendStatics = function (d, b) {\n extendStatics = Object.setPrototypeOf ||\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\n function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };\n return extendStatics(d, b);\n };\n return function (d, b) {\n extendStatics(d, b);\n function __() { this.constructor = d; }\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n})();\nimport * as React from 'react';\nimport { PdfViewer } from '@syncfusion/ej2-pdfviewer';\nimport { ComponentBase, applyMixins } from '@syncfusion/ej2-react-base';\n/**\n * `Represents the react PdfViewer Component.\n * ```ts\n * <PdfViewerComponent />\n * ```\n */\nvar PdfViewerComponent = /** @class */ (function (_super) {\n __extends(PdfViewerComponent, _super);\n function PdfViewerComponent(props) {\n var _this = _super.call(this, props) || this;\n _this.initRenderCalled = false;\n _this.checkInjectedModules = true;\n _this.statelessTemplateProps = null;\n _this.templateProps = null;\n _this.immediateRender = true;\n _this.isReactMock = true;\n _this.portals = [];\n return _this;\n }\n PdfViewerComponent.prototype.render = function () {\n this.isReactMock = false;\n if (((this.element && !this.initRenderCalled) || this.refreshing) && !this.isReactForeceUpdate) {\n _super.prototype.render.call(this);\n this.initRenderCalled = true;\n }\n else {\n return React.createElement('div', this.getDefaultAttributes(), [].concat(this.props.children, this.portals));\n }\n };\n return PdfViewerComponent;\n}(PdfViewer));\nexport { PdfViewerComponent };\napplyMixins(PdfViewerComponent, [ComponentBase, React.Component]);\n"],"names":["extendStatics","d","b","Object","setPrototypeOf","__proto__","Array","p","hasOwnProperty","_super","__extends","__","this","constructor","prototype","create","PdfViewerComponent","PdfViewer","render","isReactMock","element","initRenderCalled","refreshing","isReactForeceUpdate","React.createElement","getDefaultAttributes","concat","props","children","portals","call","_this","checkInjectedModules","statelessTemplateProps","templateProps","immediateRender","ComponentBase","React.Component"],"mappings":"wYACQA,EAAgB,SAAUC,EAAGC,GAI7B,OAHAF,EAAgBG,OAAOC,iBAClB,CAAEC,UAAW,cAAgBC,MAAS,SAAUL,EAAGC,GAAKD,EAAEI,UAAYH,GACvE,SAAUD,EAAGC,GAAK,IAAK,IAAIK,KAAKL,EAAOA,EAAEM,eAAeD,CAAC,IAAGN,EAAEM,GAAKL,EAAEK,OACpDN,EAAGC,CAAC,GALjC,IACQF,EAqB0CS,EAtB9CC,EAOO,SAAUT,EAAGC,GAEhB,SAASS,IAAOC,KAAKC,YAAcZ,EADnCD,EAAcC,EAAGC,CAAC,EAElBD,EAAEa,UAAkB,OAANZ,EAAaC,OAAOY,OAAOb,CAAC,GAAKS,EAAGG,UAAYZ,EAAEY,UAAW,IAAIH,IAYnFK,GAA8CP,EAwBhDQ,YAvBEP,EAAUM,EAAoBP,CAAM,EAYpCO,EAAmBF,UAAUI,OAAS,WAElC,GADAN,KAAKO,YAAc,CAAA,EACf,EAAEP,KAAKQ,SAAW,CAACR,KAAKS,kBAAqBT,KAAKU,aAAgBV,KAAKW,oBAKvE,OAAOC,gBAAoB,MAAOZ,KAAKa,uBAAwB,GAAGC,OAAOd,KAAKe,MAAMC,SAAUhB,KAAKiB,OAAO,CAAC,EAJ3GpB,EAAOK,UAAUI,OAAOY,KAAKlB,IAAI,EACjCA,KAAKS,iBAAmB,CAAA,GAMzBL,GArBP,SAASA,EAAmBW,GACpBI,EAAQtB,EAAOqB,KAAKlB,KAAMe,CAAK,GAAKf,KAQxC,OAPAmB,EAAMV,iBAAmB,CAAA,EACzBU,EAAMC,qBAAuB,CAAA,EAC7BD,EAAME,uBAAyB,KAC/BF,EAAMG,cAAgB,KACtBH,EAAMI,gBAAkB,CAAA,EACxBJ,EAAMZ,YAAc,CAAA,EACpBY,EAAMF,QAAU,GACTE,gBAeHf,EAAoB,CAACoB,gBAAeC,YAAgB"}
@@ -6,7 +6,7 @@ export { Inject } from '@syncfusion/ej2-react-base';
6
6
 
7
7
  /**
8
8
  * `Represents the react PdfViewer Component.
9
- * ```tsx
9
+ * ```ts
10
10
  * <PdfViewerComponent />
11
11
  * ```
12
12
  */
@@ -1 +1 @@
1
- {"version":3,"file":"ej2-react-pdfviewer.es2015.js","sources":["../src/es6/pdfviewer/pdfviewer.component.js"],"sourcesContent":["import * as React from 'react';\nimport { PdfViewer } from '@syncfusion/ej2-pdfviewer';\nimport { ComponentBase, applyMixins } from '@syncfusion/ej2-react-base';\n/**\n * `Represents the react PdfViewer Component.\n * ```tsx\n * <PdfViewerComponent />\n * ```\n */\nexport class PdfViewerComponent extends PdfViewer {\n constructor(props) {\n super(props);\n this.initRenderCalled = false;\n this.checkInjectedModules = true;\n this.statelessTemplateProps = null;\n this.templateProps = null;\n this.immediateRender = true;\n this.isReactMock = true;\n this.portals = [];\n }\n render() {\n this.isReactMock = false;\n if (((this.element && !this.initRenderCalled) || this.refreshing) && !this.isReactForeceUpdate) {\n super.render();\n this.initRenderCalled = true;\n }\n else {\n return React.createElement('div', this.getDefaultAttributes(), [].concat(this.props.children, this.portals));\n }\n }\n}\napplyMixins(PdfViewerComponent, [ComponentBase, React.Component]);\n"],"names":["React.createElement","React.Component"],"mappings":";;;;;;AAGA;AACA;AACA;AACA;AACA;AACA;AACO,MAAM,kBAAkB,SAAS,SAAS,CAAC;AAClD,IAAI,WAAW,CAAC,KAAK,EAAE;AACvB,QAAQ,KAAK,CAAC,KAAK,CAAC,CAAC;AACrB,QAAQ,IAAI,CAAC,gBAAgB,GAAG,KAAK,CAAC;AACtC,QAAQ,IAAI,CAAC,oBAAoB,GAAG,IAAI,CAAC;AACzC,QAAQ,IAAI,CAAC,sBAAsB,GAAG,IAAI,CAAC;AAC3C,QAAQ,IAAI,CAAC,aAAa,GAAG,IAAI,CAAC;AAClC,QAAQ,IAAI,CAAC,eAAe,GAAG,IAAI,CAAC;AACpC,QAAQ,IAAI,CAAC,WAAW,GAAG,IAAI,CAAC;AAChC,QAAQ,IAAI,CAAC,OAAO,GAAG,EAAE,CAAC;AAC1B,KAAK;AACL,IAAI,MAAM,GAAG;AACb,QAAQ,IAAI,CAAC,WAAW,GAAG,KAAK,CAAC;AACjC,QAAQ,IAAI,CAAC,CAAC,IAAI,CAAC,OAAO,IAAI,CAAC,IAAI,CAAC,gBAAgB,KAAK,IAAI,CAAC,UAAU,KAAK,CAAC,IAAI,CAAC,mBAAmB,EAAE;AACxG,YAAY,KAAK,CAAC,MAAM,EAAE,CAAC;AAC3B,YAAY,IAAI,CAAC,gBAAgB,GAAG,IAAI,CAAC;AACzC,SAAS;AACT,aAAa;AACb,YAAY,OAAOA,aAAmB,CAAC,KAAK,EAAE,IAAI,CAAC,oBAAoB,EAAE,EAAE,EAAE,CAAC,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,QAAQ,EAAE,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC;AACzH,SAAS;AACT,KAAK;AACL,CAAC;AACD,WAAW,CAAC,kBAAkB,EAAE,CAAC,aAAa,EAAEC,SAAe,CAAC,CAAC;;;;"}
1
+ {"version":3,"file":"ej2-react-pdfviewer.es2015.js","sources":["../src/es6/pdfviewer/pdfviewer.component.js"],"sourcesContent":["import * as React from 'react';\nimport { PdfViewer } from '@syncfusion/ej2-pdfviewer';\nimport { ComponentBase, applyMixins } from '@syncfusion/ej2-react-base';\n/**\n * `Represents the react PdfViewer Component.\n * ```ts\n * <PdfViewerComponent />\n * ```\n */\nexport class PdfViewerComponent extends PdfViewer {\n constructor(props) {\n super(props);\n this.initRenderCalled = false;\n this.checkInjectedModules = true;\n this.statelessTemplateProps = null;\n this.templateProps = null;\n this.immediateRender = true;\n this.isReactMock = true;\n this.portals = [];\n }\n render() {\n this.isReactMock = false;\n if (((this.element && !this.initRenderCalled) || this.refreshing) && !this.isReactForeceUpdate) {\n super.render();\n this.initRenderCalled = true;\n }\n else {\n return React.createElement('div', this.getDefaultAttributes(), [].concat(this.props.children, this.portals));\n }\n }\n}\napplyMixins(PdfViewerComponent, [ComponentBase, React.Component]);\n"],"names":["React.createElement","React.Component"],"mappings":";;;;;;AAGA;AACA;AACA;AACA;AACA;AACA;AACO,MAAM,kBAAkB,SAAS,SAAS,CAAC;AAClD,IAAI,WAAW,CAAC,KAAK,EAAE;AACvB,QAAQ,KAAK,CAAC,KAAK,CAAC,CAAC;AACrB,QAAQ,IAAI,CAAC,gBAAgB,GAAG,KAAK,CAAC;AACtC,QAAQ,IAAI,CAAC,oBAAoB,GAAG,IAAI,CAAC;AACzC,QAAQ,IAAI,CAAC,sBAAsB,GAAG,IAAI,CAAC;AAC3C,QAAQ,IAAI,CAAC,aAAa,GAAG,IAAI,CAAC;AAClC,QAAQ,IAAI,CAAC,eAAe,GAAG,IAAI,CAAC;AACpC,QAAQ,IAAI,CAAC,WAAW,GAAG,IAAI,CAAC;AAChC,QAAQ,IAAI,CAAC,OAAO,GAAG,EAAE,CAAC;AAC1B,KAAK;AACL,IAAI,MAAM,GAAG;AACb,QAAQ,IAAI,CAAC,WAAW,GAAG,KAAK,CAAC;AACjC,QAAQ,IAAI,CAAC,CAAC,IAAI,CAAC,OAAO,IAAI,CAAC,IAAI,CAAC,gBAAgB,KAAK,IAAI,CAAC,UAAU,KAAK,CAAC,IAAI,CAAC,mBAAmB,EAAE;AACxG,YAAY,KAAK,CAAC,MAAM,EAAE,CAAC;AAC3B,YAAY,IAAI,CAAC,gBAAgB,GAAG,IAAI,CAAC;AACzC,SAAS;AACT,aAAa;AACb,YAAY,OAAOA,aAAmB,CAAC,KAAK,EAAE,IAAI,CAAC,oBAAoB,EAAE,EAAE,EAAE,CAAC,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,QAAQ,EAAE,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC;AACzH,SAAS;AACT,KAAK;AACL,CAAC;AACD,WAAW,CAAC,kBAAkB,EAAE,CAAC,aAAa,EAAEC,SAAe,CAAC,CAAC;;;;"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@syncfusion/ej2-react-pdfviewer",
3
- "version": "34.2.5",
3
+ "version": "34.2.7",
4
4
  "description": "Essential JS 2 PDF viewer Component for React",
5
5
  "author": "Syncfusion Inc.",
6
6
  "license": "SEE LICENSE IN license",
@@ -19,9 +19,9 @@
19
19
  "es2015": "dist/es6/ej2-react-pdfviewer.es2015.js",
20
20
  "readme": "ReadMe.md",
21
21
  "dependencies": {
22
- "@syncfusion/ej2-base": "~34.2.5",
23
- "@syncfusion/ej2-react-base": "~34.2.2",
24
- "@syncfusion/ej2-pdfviewer": "34.2.5"
22
+ "@syncfusion/ej2-base": "~34.2.6",
23
+ "@syncfusion/ej2-react-base": "~34.2.6",
24
+ "@syncfusion/ej2-pdfviewer": "34.2.7"
25
25
  },
26
26
  "devDependencies": {},
27
27
  "sideEffects": false,
@@ -3,7 +3,7 @@ import { PdfViewer, PdfViewerModel } from '@syncfusion/ej2-pdfviewer';
3
3
  import { DefaultHtmlAttributes } from '@syncfusion/ej2-react-base';
4
4
  /**
5
5
  * `Represents the react PdfViewer Component.
6
- * ```tsx
6
+ * ```ts
7
7
  * <PdfViewerComponent />
8
8
  * ```
9
9
  */
@@ -16,7 +16,7 @@ import { PdfViewer } from '@syncfusion/ej2-pdfviewer';
16
16
  import { ComponentBase, applyMixins } from '@syncfusion/ej2-react-base';
17
17
  /**
18
18
  * `Represents the react PdfViewer Component.
19
- * ```tsx
19
+ * ```ts
20
20
  * <PdfViewerComponent />
21
21
  * ```
22
22
  */