@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/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;