@cannyminds/dms-file-viewers 0.14.0 → 0.16.0
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/dist/chunk-5VXNBCB7.mjs +268 -0
- package/dist/chunk-5VXNBCB7.mjs.map +1 -0
- package/dist/chunk-7S4B534E.js +742 -0
- package/dist/chunk-7S4B534E.js.map +1 -0
- package/dist/chunk-AUNFO5WZ.js +268 -0
- package/dist/chunk-AUNFO5WZ.js.map +1 -0
- package/dist/chunk-BL4HRFCJ.mjs +487 -0
- package/dist/chunk-BL4HRFCJ.mjs.map +1 -0
- package/dist/chunk-CIAMJ46F.js +309 -0
- package/dist/chunk-CIAMJ46F.js.map +1 -0
- package/dist/chunk-DLSRPPBM.mjs +1863 -0
- package/dist/chunk-DLSRPPBM.mjs.map +1 -0
- package/dist/{chunk-J3JKVSAM.js → chunk-EEIQAW55.js} +5 -2
- package/dist/chunk-EEIQAW55.js.map +1 -0
- package/dist/chunk-FUNU3LUV.js +487 -0
- package/dist/chunk-FUNU3LUV.js.map +1 -0
- package/dist/chunk-HX5KWJCV.mjs +742 -0
- package/dist/chunk-HX5KWJCV.mjs.map +1 -0
- package/dist/chunk-LOXGEZRZ.js +329 -0
- package/dist/chunk-LOXGEZRZ.js.map +1 -0
- package/dist/chunk-NZLZUCP2.mjs +329 -0
- package/dist/chunk-NZLZUCP2.mjs.map +1 -0
- package/dist/chunk-PFX2NN3C.js +1863 -0
- package/dist/chunk-PFX2NN3C.js.map +1 -0
- package/dist/{chunk-DFBVN4MO.mjs → chunk-Q4OU6YDO.mjs} +5 -2
- package/dist/chunk-Q4OU6YDO.mjs.map +1 -0
- package/dist/chunk-VM5I5IEA.mjs +309 -0
- package/dist/chunk-VM5I5IEA.mjs.map +1 -0
- package/dist/chunk-YGQ6UYNQ.js +299 -0
- package/dist/chunk-YGQ6UYNQ.js.map +1 -0
- package/dist/chunk-ZRASAXL6.mjs +299 -0
- package/dist/chunk-ZRASAXL6.mjs.map +1 -0
- package/dist/components/viewers/AudioViewer.d.mts +1 -1
- package/dist/components/viewers/AudioViewer.d.ts +1 -1
- package/dist/components/viewers/AudioViewer.js +3 -3
- package/dist/components/viewers/AudioViewer.mjs +2 -2
- package/dist/components/viewers/DefaultViewer.d.mts +1 -1
- package/dist/components/viewers/DefaultViewer.d.ts +1 -1
- package/dist/components/viewers/DefaultViewer.js +3 -3
- package/dist/components/viewers/DefaultViewer.mjs +2 -2
- package/dist/components/viewers/ImageViewer.d.mts +1 -1
- package/dist/components/viewers/ImageViewer.d.ts +1 -1
- package/dist/components/viewers/ImageViewer.js +3 -3
- package/dist/components/viewers/ImageViewer.mjs +2 -2
- package/dist/components/viewers/PDFViewer.d.mts +1 -1
- package/dist/components/viewers/PDFViewer.d.ts +1 -1
- package/dist/components/viewers/PDFViewer.js +3 -3
- package/dist/components/viewers/PDFViewer.mjs +2 -2
- package/dist/components/viewers/TIFFViewer.d.mts +1 -1
- package/dist/components/viewers/TIFFViewer.d.ts +1 -1
- package/dist/components/viewers/TIFFViewer.js +3 -3
- package/dist/components/viewers/TIFFViewer.mjs +2 -2
- package/dist/components/viewers/TextViewer.d.mts +1 -1
- package/dist/components/viewers/TextViewer.d.ts +1 -1
- package/dist/components/viewers/TextViewer.js +3 -3
- package/dist/components/viewers/TextViewer.mjs +2 -2
- package/dist/components/viewers/VideoViewer.d.mts +1 -1
- package/dist/components/viewers/VideoViewer.d.ts +1 -1
- package/dist/components/viewers/VideoViewer.js +3 -3
- package/dist/components/viewers/VideoViewer.mjs +2 -2
- package/dist/index.d.mts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +9 -9
- package/dist/index.mjs +8 -8
- package/dist/{types-DNrkDJdK.d.mts → types-DM0RG-Yu.d.mts} +6 -2
- package/dist/{types-DNrkDJdK.d.ts → types-DM0RG-Yu.d.ts} +6 -2
- package/package.json +1 -1
- package/dist/chunk-7QRYWFCO.js +0 -639
- package/dist/chunk-7QRYWFCO.js.map +0 -1
- package/dist/chunk-7R2KG3PE.mjs +0 -210
- package/dist/chunk-7R2KG3PE.mjs.map +0 -1
- package/dist/chunk-CFYOPDCG.mjs +0 -235
- package/dist/chunk-CFYOPDCG.mjs.map +0 -1
- package/dist/chunk-D74R4IKW.mjs +0 -341
- package/dist/chunk-D74R4IKW.mjs.map +0 -1
- package/dist/chunk-DFBVN4MO.mjs.map +0 -1
- package/dist/chunk-EXZCEYLI.js +0 -247
- package/dist/chunk-EXZCEYLI.js.map +0 -1
- package/dist/chunk-J3JKVSAM.js.map +0 -1
- package/dist/chunk-NXVIRFGL.mjs +0 -247
- package/dist/chunk-NXVIRFGL.mjs.map +0 -1
- package/dist/chunk-P2VNW6OE.mjs +0 -180
- package/dist/chunk-P2VNW6OE.mjs.map +0 -1
- package/dist/chunk-P5FH7LK7.mjs +0 -639
- package/dist/chunk-P5FH7LK7.mjs.map +0 -1
- package/dist/chunk-PZJSY6OF.mjs +0 -1736
- package/dist/chunk-PZJSY6OF.mjs.map +0 -1
- package/dist/chunk-RVHIXSUP.js +0 -235
- package/dist/chunk-RVHIXSUP.js.map +0 -1
- package/dist/chunk-TGVFAAIP.js +0 -341
- package/dist/chunk-TGVFAAIP.js.map +0 -1
- package/dist/chunk-VOLQW3NF.js +0 -1736
- package/dist/chunk-VOLQW3NF.js.map +0 -1
- package/dist/chunk-VSGX22FQ.js +0 -180
- package/dist/chunk-VSGX22FQ.js.map +0 -1
- package/dist/chunk-WCAXWJE7.js +0 -210
- package/dist/chunk-WCAXWJE7.js.map +0 -1
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});"use client";
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var
|
|
4
|
+
var _chunkYGQ6UYNQjs = require('../../chunk-YGQ6UYNQ.js');
|
|
5
5
|
require('../../chunk-YEPEMLM3.js');
|
|
6
|
-
require('../../chunk-
|
|
6
|
+
require('../../chunk-EEIQAW55.js');
|
|
7
7
|
|
|
8
8
|
|
|
9
|
-
exports.AudioViewer =
|
|
9
|
+
exports.AudioViewer = _chunkYGQ6UYNQjs.AudioViewer;
|
|
10
10
|
//# sourceMappingURL=AudioViewer.js.map
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});"use client";
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var
|
|
4
|
+
var _chunkAUNFO5WZjs = require('../../chunk-AUNFO5WZ.js');
|
|
5
5
|
require('../../chunk-YEPEMLM3.js');
|
|
6
|
-
require('../../chunk-
|
|
6
|
+
require('../../chunk-EEIQAW55.js');
|
|
7
7
|
|
|
8
8
|
|
|
9
|
-
exports.DefaultViewer =
|
|
9
|
+
exports.DefaultViewer = _chunkAUNFO5WZjs.DefaultViewer;
|
|
10
10
|
//# sourceMappingURL=DefaultViewer.js.map
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});"use client";
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var
|
|
4
|
+
var _chunkFUNU3LUVjs = require('../../chunk-FUNU3LUV.js');
|
|
5
5
|
require('../../chunk-A2MSWOEM.js');
|
|
6
|
-
require('../../chunk-
|
|
6
|
+
require('../../chunk-EEIQAW55.js');
|
|
7
7
|
|
|
8
8
|
|
|
9
|
-
exports.ImageViewer =
|
|
9
|
+
exports.ImageViewer = _chunkFUNU3LUVjs.ImageViewer;
|
|
10
10
|
//# sourceMappingURL=ImageViewer.js.map
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});"use client";
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var
|
|
4
|
+
var _chunkPFX2NN3Cjs = require('../../chunk-PFX2NN3C.js');
|
|
5
5
|
require('../../chunk-A2MSWOEM.js');
|
|
6
6
|
require('../../chunk-YEPEMLM3.js');
|
|
7
|
-
require('../../chunk-
|
|
7
|
+
require('../../chunk-EEIQAW55.js');
|
|
8
8
|
|
|
9
9
|
|
|
10
|
-
exports.PDFViewer =
|
|
10
|
+
exports.PDFViewer = _chunkPFX2NN3Cjs.PDFViewer;
|
|
11
11
|
//# sourceMappingURL=PDFViewer.js.map
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
3
|
PDFViewer
|
|
4
|
-
} from "../../chunk-
|
|
4
|
+
} from "../../chunk-DLSRPPBM.mjs";
|
|
5
5
|
import "../../chunk-GMDRDOWP.mjs";
|
|
6
6
|
import "../../chunk-M57PSU4O.mjs";
|
|
7
|
-
import "../../chunk-
|
|
7
|
+
import "../../chunk-Q4OU6YDO.mjs";
|
|
8
8
|
export {
|
|
9
9
|
PDFViewer
|
|
10
10
|
};
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});"use client";
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var
|
|
4
|
+
var _chunk7S4B534Ejs = require('../../chunk-7S4B534E.js');
|
|
5
5
|
require('../../chunk-YEPEMLM3.js');
|
|
6
|
-
require('../../chunk-
|
|
6
|
+
require('../../chunk-EEIQAW55.js');
|
|
7
7
|
|
|
8
8
|
|
|
9
|
-
exports.TIFFViewer =
|
|
9
|
+
exports.TIFFViewer = _chunk7S4B534Ejs.TIFFViewer;
|
|
10
10
|
//# sourceMappingURL=TIFFViewer.js.map
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});"use client";
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var
|
|
4
|
+
var _chunkCIAMJ46Fjs = require('../../chunk-CIAMJ46F.js');
|
|
5
5
|
require('../../chunk-YEPEMLM3.js');
|
|
6
|
-
require('../../chunk-
|
|
6
|
+
require('../../chunk-EEIQAW55.js');
|
|
7
7
|
|
|
8
8
|
|
|
9
|
-
exports.TextViewer =
|
|
9
|
+
exports.TextViewer = _chunkCIAMJ46Fjs.TextViewer;
|
|
10
10
|
//# sourceMappingURL=TextViewer.js.map
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});"use client";
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var
|
|
4
|
+
var _chunkLOXGEZRZjs = require('../../chunk-LOXGEZRZ.js');
|
|
5
5
|
require('../../chunk-YEPEMLM3.js');
|
|
6
|
-
require('../../chunk-
|
|
6
|
+
require('../../chunk-EEIQAW55.js');
|
|
7
7
|
|
|
8
8
|
|
|
9
|
-
exports.VideoViewer =
|
|
9
|
+
exports.VideoViewer = _chunkLOXGEZRZjs.VideoViewer;
|
|
10
10
|
//# sourceMappingURL=VideoViewer.js.map
|
package/dist/index.d.mts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { F as FileViewerProps, V as ViewerInfo, a as FileViewerComponent } from './types-
|
|
3
|
-
export { c as DynamicViewerImport, D as DynamicViewerRegistry, S as SearchResult, T as ToolbarActionId, d as ToolbarActionsConfig, b as ViewerRegistry } from './types-
|
|
2
|
+
import { F as FileViewerProps, V as ViewerInfo, a as FileViewerComponent } from './types-DM0RG-Yu.mjs';
|
|
3
|
+
export { c as DynamicViewerImport, D as DynamicViewerRegistry, S as SearchResult, T as ToolbarActionId, d as ToolbarActionsConfig, b as ViewerRegistry } from './types-DM0RG-Yu.mjs';
|
|
4
4
|
export { TextViewer } from './components/viewers/TextViewer.mjs';
|
|
5
5
|
export { ImageViewer } from './components/viewers/ImageViewer.mjs';
|
|
6
6
|
export { PDFViewer } from './components/viewers/PDFViewer.mjs';
|
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { F as FileViewerProps, V as ViewerInfo, a as FileViewerComponent } from './types-
|
|
3
|
-
export { c as DynamicViewerImport, D as DynamicViewerRegistry, S as SearchResult, T as ToolbarActionId, d as ToolbarActionsConfig, b as ViewerRegistry } from './types-
|
|
2
|
+
import { F as FileViewerProps, V as ViewerInfo, a as FileViewerComponent } from './types-DM0RG-Yu.js';
|
|
3
|
+
export { c as DynamicViewerImport, D as DynamicViewerRegistry, S as SearchResult, T as ToolbarActionId, d as ToolbarActionsConfig, b as ViewerRegistry } from './types-DM0RG-Yu.js';
|
|
4
4
|
export { TextViewer } from './components/viewers/TextViewer.js';
|
|
5
5
|
export { ImageViewer } from './components/viewers/ImageViewer.js';
|
|
6
6
|
export { PDFViewer } from './components/viewers/PDFViewer.js';
|
package/dist/index.js
CHANGED
|
@@ -1,33 +1,33 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { newObj[key] = obj[key]; } } } newObj.default = obj; return newObj; } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }"use client";
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var
|
|
4
|
+
var _chunkYGQ6UYNQjs = require('./chunk-YGQ6UYNQ.js');
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunkAUNFO5WZjs = require('./chunk-AUNFO5WZ.js');
|
|
8
8
|
|
|
9
9
|
|
|
10
|
-
var
|
|
10
|
+
var _chunkFUNU3LUVjs = require('./chunk-FUNU3LUV.js');
|
|
11
11
|
|
|
12
12
|
|
|
13
|
-
var
|
|
13
|
+
var _chunkPFX2NN3Cjs = require('./chunk-PFX2NN3C.js');
|
|
14
14
|
require('./chunk-A2MSWOEM.js');
|
|
15
15
|
|
|
16
16
|
|
|
17
|
-
var
|
|
17
|
+
var _chunkCIAMJ46Fjs = require('./chunk-CIAMJ46F.js');
|
|
18
18
|
|
|
19
19
|
|
|
20
|
-
var
|
|
20
|
+
var _chunk7S4B534Ejs = require('./chunk-7S4B534E.js');
|
|
21
21
|
|
|
22
22
|
|
|
23
|
-
var
|
|
23
|
+
var _chunkLOXGEZRZjs = require('./chunk-LOXGEZRZ.js');
|
|
24
24
|
|
|
25
25
|
|
|
26
26
|
|
|
27
27
|
var _chunkYEPEMLM3js = require('./chunk-YEPEMLM3.js');
|
|
28
28
|
|
|
29
29
|
|
|
30
|
-
var
|
|
30
|
+
var _chunkEEIQAW55js = require('./chunk-EEIQAW55.js');
|
|
31
31
|
|
|
32
32
|
// src/components/FileViewer.tsx
|
|
33
33
|
var _react = require('react');
|
|
@@ -296,5 +296,5 @@ var FileViewer = ({
|
|
|
296
296
|
|
|
297
297
|
|
|
298
298
|
|
|
299
|
-
exports.AudioViewer =
|
|
299
|
+
exports.AudioViewer = _chunkYGQ6UYNQjs.AudioViewer; exports.DefaultViewer = _chunkAUNFO5WZjs.DefaultViewer; exports.FileIcon = _chunkEEIQAW55js.FileIcon_default; exports.FileViewer = FileViewer; exports.ImageViewer = _chunkFUNU3LUVjs.ImageViewer; exports.PDFViewer = _chunkPFX2NN3Cjs.PDFViewer; exports.TIFFViewer = _chunk7S4B534Ejs.TIFFViewer; exports.TextViewer = _chunkCIAMJ46Fjs.TextViewer; exports.VideoViewer = _chunkLOXGEZRZjs.VideoViewer; exports.dynamicViewerRegistry = dynamicViewerRegistry; exports.getFileExtension = _chunkYEPEMLM3js.getFileExtension; exports.getMimeTypeFromExtension = _chunkYEPEMLM3js.getMimeTypeFromExtension; exports.getViewerComponent = getViewerComponent; exports.getViewerInfo = getViewerInfo;
|
|
300
300
|
//# sourceMappingURL=index.js.map
|
package/dist/index.mjs
CHANGED
|
@@ -1,33 +1,33 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
3
|
AudioViewer
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-ZRASAXL6.mjs";
|
|
5
5
|
import {
|
|
6
6
|
DefaultViewer
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-5VXNBCB7.mjs";
|
|
8
8
|
import {
|
|
9
9
|
ImageViewer
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-BL4HRFCJ.mjs";
|
|
11
11
|
import {
|
|
12
12
|
PDFViewer
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-DLSRPPBM.mjs";
|
|
14
14
|
import "./chunk-GMDRDOWP.mjs";
|
|
15
15
|
import {
|
|
16
16
|
TextViewer
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-VM5I5IEA.mjs";
|
|
18
18
|
import {
|
|
19
19
|
TIFFViewer
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-HX5KWJCV.mjs";
|
|
21
21
|
import {
|
|
22
22
|
VideoViewer
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-NZLZUCP2.mjs";
|
|
24
24
|
import {
|
|
25
25
|
getFileExtension,
|
|
26
26
|
getMimeTypeFromExtension
|
|
27
27
|
} from "./chunk-M57PSU4O.mjs";
|
|
28
28
|
import {
|
|
29
29
|
FileIcon_default
|
|
30
|
-
} from "./chunk-
|
|
30
|
+
} from "./chunk-Q4OU6YDO.mjs";
|
|
31
31
|
|
|
32
32
|
// src/components/FileViewer.tsx
|
|
33
33
|
import { useState, useEffect, useMemo } from "react";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
type ToolbarActionId =
|
|
1
|
+
type ToolbarActionId = "download" | "print" | "zoomIn" | "zoomOut" | "fitToWidth" | "fitToPage" | "search" | "metadata" | "properties" | "history" | "fullscreen" | "firstPage" | "lastPage" | "nextPage" | "previousPage" | "rotateLeft" | "rotateRight" | string;
|
|
2
2
|
type ToolbarActionsConfig = Partial<Record<ToolbarActionId, {
|
|
3
3
|
/** Hide action entirely (not just disabled) */
|
|
4
4
|
hidden?: boolean;
|
|
@@ -33,8 +33,12 @@ interface FileViewerProps {
|
|
|
33
33
|
showSearch?: boolean;
|
|
34
34
|
showMetadata?: boolean;
|
|
35
35
|
showProperties?: boolean;
|
|
36
|
+
showTags?: boolean;
|
|
37
|
+
showHistory?: boolean;
|
|
36
38
|
onMetadataClick?: () => void;
|
|
37
39
|
onPropertiesClick?: () => void;
|
|
40
|
+
onTagsClick?: () => void;
|
|
41
|
+
onHistoryClick?: () => void;
|
|
38
42
|
onDownloadClick?: () => void;
|
|
39
43
|
onPrintClick?: () => void;
|
|
40
44
|
pageLoader?: (pageNumber: number) => Promise<ArrayBuffer | null>;
|
|
@@ -58,7 +62,7 @@ interface DynamicViewerRegistry {
|
|
|
58
62
|
[extension: string]: DynamicViewerImport;
|
|
59
63
|
}
|
|
60
64
|
interface ViewerInfo {
|
|
61
|
-
type:
|
|
65
|
+
type: "text" | "image" | "pdf" | "video" | "audio" | "tiff" | "default";
|
|
62
66
|
loader: DynamicViewerImport;
|
|
63
67
|
}
|
|
64
68
|
interface SearchResult {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
type ToolbarActionId =
|
|
1
|
+
type ToolbarActionId = "download" | "print" | "zoomIn" | "zoomOut" | "fitToWidth" | "fitToPage" | "search" | "metadata" | "properties" | "history" | "fullscreen" | "firstPage" | "lastPage" | "nextPage" | "previousPage" | "rotateLeft" | "rotateRight" | string;
|
|
2
2
|
type ToolbarActionsConfig = Partial<Record<ToolbarActionId, {
|
|
3
3
|
/** Hide action entirely (not just disabled) */
|
|
4
4
|
hidden?: boolean;
|
|
@@ -33,8 +33,12 @@ interface FileViewerProps {
|
|
|
33
33
|
showSearch?: boolean;
|
|
34
34
|
showMetadata?: boolean;
|
|
35
35
|
showProperties?: boolean;
|
|
36
|
+
showTags?: boolean;
|
|
37
|
+
showHistory?: boolean;
|
|
36
38
|
onMetadataClick?: () => void;
|
|
37
39
|
onPropertiesClick?: () => void;
|
|
40
|
+
onTagsClick?: () => void;
|
|
41
|
+
onHistoryClick?: () => void;
|
|
38
42
|
onDownloadClick?: () => void;
|
|
39
43
|
onPrintClick?: () => void;
|
|
40
44
|
pageLoader?: (pageNumber: number) => Promise<ArrayBuffer | null>;
|
|
@@ -58,7 +62,7 @@ interface DynamicViewerRegistry {
|
|
|
58
62
|
[extension: string]: DynamicViewerImport;
|
|
59
63
|
}
|
|
60
64
|
interface ViewerInfo {
|
|
61
|
-
type:
|
|
65
|
+
type: "text" | "image" | "pdf" | "video" | "audio" | "tiff" | "default";
|
|
62
66
|
loader: DynamicViewerImport;
|
|
63
67
|
}
|
|
64
68
|
interface SearchResult {
|