Skip to content
This repository was archived by the owner on Feb 19, 2025. It is now read-only.

Commit 75eb8aa

Browse files
committed
Updated WV to nightly stable
Updated description
1 parent df25a4f commit 75eb8aa

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
"@types/react-dom": "~18.0.5"
3030
},
3131
"dependencies": {
32-
"@pdftron/webviewer": "^8.8.0-20220913",
32+
"@pdftron/webviewer": "^8.10.0-20221125",
3333
"classnames": "^2.2.6"
3434
}
3535
}

src/WebViewer.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@
7575
<propertyGroup caption="UI">
7676
<property key="isVisible" type="attribute" required="false">
7777
<caption>Is visible</caption>
78-
<description>A flag to toggle the visibility of WebViewer. Please use this option to hide WebViewer over the one in Common.</description>
78+
<description>A flag to toggle the visibility of WebViewer without unmounting it.</description>
7979
<attributeTypes>
8080
<attributeType name="Boolean"/>
8181
</attributeTypes>

src/components/PDFViewer.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ const PDFViewer: React.FC<InputProps> = props => {
6161
licenseKey: props.l
6262
},
6363
viewerRef.current as HTMLDivElement
64-
).then(instance => {
64+
).then((instance: WebViewerInstance) => {
6565
const { Core, UI } = instance;
6666

6767
setInstance(instance);

typings/WebViewerProps.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ export interface WebViewerContainerProps {
4444
enableMeasurement: boolean;
4545
enableRedaction: boolean;
4646
selectAnnotationOnCreation: boolean;
47-
isVisible: EditableValue<boolean>;
47+
isVisible?: EditableValue<boolean>;
4848
containerHeight: string;
4949
enableDarkMode: boolean;
5050
defaultLanguage: DefaultLanguageEnum;

0 commit comments

Comments
 (0)