@open-file-viewer/core 0.1.21 → 0.1.23
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 +14 -2
- package/dist/index.cjs +350 -108
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +31 -0
- package/dist/index.d.ts +31 -0
- package/dist/index.js +350 -108
- package/dist/index.js.map +1 -1
- package/dist/style.css +60 -2
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -96,6 +96,7 @@ interface PreviewOptions {
|
|
|
96
96
|
onUnsupported?: (file: PreviewFile) => void;
|
|
97
97
|
}
|
|
98
98
|
interface PreviewMessages {
|
|
99
|
+
[key: string]: string | undefined;
|
|
99
100
|
loading: string;
|
|
100
101
|
unsupportedTitle: string;
|
|
101
102
|
downloadTitle: string;
|
|
@@ -143,6 +144,35 @@ interface PreviewMessages {
|
|
|
143
144
|
officeUnsupportedSupportedFormats: string;
|
|
144
145
|
officeErrorWithMessage: string;
|
|
145
146
|
officeErrorWithoutMessage: string;
|
|
147
|
+
officeConvertedTitle: string;
|
|
148
|
+
officeConvertedPdfFailed: string;
|
|
149
|
+
pdfEncryptedTitle: string;
|
|
150
|
+
pdfEncryptedMessage: string;
|
|
151
|
+
pdfPreviewFailedTitle: string;
|
|
152
|
+
pdfCorruptedMessage: string;
|
|
153
|
+
pdfCannotLoadMessage: string;
|
|
154
|
+
pdfDownload: string;
|
|
155
|
+
pdfPageLoading: string;
|
|
156
|
+
pdfPageEmpty: string;
|
|
157
|
+
pdfPageRenderFailed: string;
|
|
158
|
+
pdfPreviousPage: string;
|
|
159
|
+
pdfNextPage: string;
|
|
160
|
+
pdfPageInput: string;
|
|
161
|
+
pdfPagePosition: string;
|
|
162
|
+
pdfPageLabel: string;
|
|
163
|
+
pdfSummaryPages: string;
|
|
164
|
+
pdfSummaryPageSizes: string;
|
|
165
|
+
pdfSummaryFit: string;
|
|
166
|
+
pdfSummaryActualSize: string;
|
|
167
|
+
pdfSummaryFitWidth: string;
|
|
168
|
+
pdfSummaryZoom: string;
|
|
169
|
+
imagePreviewFailedTitle: string;
|
|
170
|
+
imagePreviewFailedMessage: string;
|
|
171
|
+
imageDownload: string;
|
|
172
|
+
imageZoomOut: string;
|
|
173
|
+
imageZoomIn: string;
|
|
174
|
+
imageRotate: string;
|
|
175
|
+
imageReset: string;
|
|
146
176
|
}
|
|
147
177
|
interface PreviewContext {
|
|
148
178
|
host: HTMLElement;
|
|
@@ -192,6 +222,7 @@ type PdfJsModule = typeof pdfjs_dist;
|
|
|
192
222
|
interface PdfPluginOptions {
|
|
193
223
|
pdfjs?: PdfJsModule;
|
|
194
224
|
workerSrc?: string;
|
|
225
|
+
compatibilityMode?: "auto" | "modern" | "legacy";
|
|
195
226
|
cMapUrl?: string;
|
|
196
227
|
cMapPacked?: boolean;
|
|
197
228
|
standardFontDataUrl?: string;
|
package/dist/index.d.ts
CHANGED
|
@@ -96,6 +96,7 @@ interface PreviewOptions {
|
|
|
96
96
|
onUnsupported?: (file: PreviewFile) => void;
|
|
97
97
|
}
|
|
98
98
|
interface PreviewMessages {
|
|
99
|
+
[key: string]: string | undefined;
|
|
99
100
|
loading: string;
|
|
100
101
|
unsupportedTitle: string;
|
|
101
102
|
downloadTitle: string;
|
|
@@ -143,6 +144,35 @@ interface PreviewMessages {
|
|
|
143
144
|
officeUnsupportedSupportedFormats: string;
|
|
144
145
|
officeErrorWithMessage: string;
|
|
145
146
|
officeErrorWithoutMessage: string;
|
|
147
|
+
officeConvertedTitle: string;
|
|
148
|
+
officeConvertedPdfFailed: string;
|
|
149
|
+
pdfEncryptedTitle: string;
|
|
150
|
+
pdfEncryptedMessage: string;
|
|
151
|
+
pdfPreviewFailedTitle: string;
|
|
152
|
+
pdfCorruptedMessage: string;
|
|
153
|
+
pdfCannotLoadMessage: string;
|
|
154
|
+
pdfDownload: string;
|
|
155
|
+
pdfPageLoading: string;
|
|
156
|
+
pdfPageEmpty: string;
|
|
157
|
+
pdfPageRenderFailed: string;
|
|
158
|
+
pdfPreviousPage: string;
|
|
159
|
+
pdfNextPage: string;
|
|
160
|
+
pdfPageInput: string;
|
|
161
|
+
pdfPagePosition: string;
|
|
162
|
+
pdfPageLabel: string;
|
|
163
|
+
pdfSummaryPages: string;
|
|
164
|
+
pdfSummaryPageSizes: string;
|
|
165
|
+
pdfSummaryFit: string;
|
|
166
|
+
pdfSummaryActualSize: string;
|
|
167
|
+
pdfSummaryFitWidth: string;
|
|
168
|
+
pdfSummaryZoom: string;
|
|
169
|
+
imagePreviewFailedTitle: string;
|
|
170
|
+
imagePreviewFailedMessage: string;
|
|
171
|
+
imageDownload: string;
|
|
172
|
+
imageZoomOut: string;
|
|
173
|
+
imageZoomIn: string;
|
|
174
|
+
imageRotate: string;
|
|
175
|
+
imageReset: string;
|
|
146
176
|
}
|
|
147
177
|
interface PreviewContext {
|
|
148
178
|
host: HTMLElement;
|
|
@@ -192,6 +222,7 @@ type PdfJsModule = typeof pdfjs_dist;
|
|
|
192
222
|
interface PdfPluginOptions {
|
|
193
223
|
pdfjs?: PdfJsModule;
|
|
194
224
|
workerSrc?: string;
|
|
225
|
+
compatibilityMode?: "auto" | "modern" | "legacy";
|
|
195
226
|
cMapUrl?: string;
|
|
196
227
|
cMapPacked?: boolean;
|
|
197
228
|
standardFontDataUrl?: string;
|