@open-file-viewer/core 0.1.19 → 0.1.21

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
@@ -5,7 +5,7 @@ type PreviewFit = "contain" | "cover" | "width" | "height" | "actual" | "scale-d
5
5
  type PreviewFallback = "inline" | "download" | "custom";
6
6
  type PreviewTheme = "light" | "dark" | "auto";
7
7
  type PreviewLocale = "zh-CN" | "en-US";
8
- type PreviewToolbarBuiltInAction = "previous" | "next" | "queue" | "zoom-out" | "zoom-in" | "zoom-reset" | "rotate-right" | "download" | "fullscreen" | "print" | "search";
8
+ type PreviewToolbarBuiltInAction = "previous" | "next" | "queue" | "zoom-out" | "zoom-in" | "zoom-reset" | "rotate-right" | "download" | "fullscreen" | "exit-fullscreen" | "print" | "search";
9
9
  type PreviewToolbarActionId = PreviewToolbarBuiltInAction | (string & {});
10
10
  interface PreviewFile {
11
11
  source: PreviewSource;
@@ -57,6 +57,7 @@ interface PreviewToolbarRenderContext {
57
57
  viewport: HTMLElement;
58
58
  canPrevious: boolean;
59
59
  canNext: boolean;
60
+ isFullscreen: boolean;
60
61
  zoom?: number;
61
62
  zoomLabel?: string;
62
63
  previous: () => Promise<void>;
@@ -109,6 +110,39 @@ interface PreviewMessages {
109
110
  source: string;
110
111
  remoteUrl: string;
111
112
  localFile: string;
113
+ textPlainLanguage: string;
114
+ textLineCount: string;
115
+ textWrap: string;
116
+ textCopy: string;
117
+ textCopied: string;
118
+ textCopyFailed: string;
119
+ textDownload: string;
120
+ textDownloadReady: string;
121
+ textLargeFileNotice: string;
122
+ textHighlightSkipped: string;
123
+ textPreviewFailedTitle: string;
124
+ textPreviewFailedMessage: string;
125
+ textOpenOriginal: string;
126
+ officeLegacyConversionTitle: string;
127
+ officeLegacyBinaryNotice: string;
128
+ officeLegacyMetaFormatType: string;
129
+ officeLegacyMetaFileStructure: string;
130
+ officeLegacyOleDetected: string;
131
+ officeLegacyOleMissing: string;
132
+ officeLegacyMetaTextFragments: string;
133
+ officeLegacyTextFragmentCount: string;
134
+ officeLegacyMetaParseStatus: string;
135
+ officeLegacyReadableFragments: string;
136
+ officeLegacyNoText: string;
137
+ officeLegacyWordParseFailed: string;
138
+ officeSheetParseFailed: string;
139
+ officeUnsupportedTitle: string;
140
+ officeUnsupportedLegacyMessage: string;
141
+ officeUnsupportedGenericMessage: string;
142
+ officeUnsupportedIntro: string;
143
+ officeUnsupportedSupportedFormats: string;
144
+ officeErrorWithMessage: string;
145
+ officeErrorWithoutMessage: string;
112
146
  }
113
147
  interface PreviewContext {
114
148
  host: HTMLElement;
package/dist/index.d.ts CHANGED
@@ -5,7 +5,7 @@ type PreviewFit = "contain" | "cover" | "width" | "height" | "actual" | "scale-d
5
5
  type PreviewFallback = "inline" | "download" | "custom";
6
6
  type PreviewTheme = "light" | "dark" | "auto";
7
7
  type PreviewLocale = "zh-CN" | "en-US";
8
- type PreviewToolbarBuiltInAction = "previous" | "next" | "queue" | "zoom-out" | "zoom-in" | "zoom-reset" | "rotate-right" | "download" | "fullscreen" | "print" | "search";
8
+ type PreviewToolbarBuiltInAction = "previous" | "next" | "queue" | "zoom-out" | "zoom-in" | "zoom-reset" | "rotate-right" | "download" | "fullscreen" | "exit-fullscreen" | "print" | "search";
9
9
  type PreviewToolbarActionId = PreviewToolbarBuiltInAction | (string & {});
10
10
  interface PreviewFile {
11
11
  source: PreviewSource;
@@ -57,6 +57,7 @@ interface PreviewToolbarRenderContext {
57
57
  viewport: HTMLElement;
58
58
  canPrevious: boolean;
59
59
  canNext: boolean;
60
+ isFullscreen: boolean;
60
61
  zoom?: number;
61
62
  zoomLabel?: string;
62
63
  previous: () => Promise<void>;
@@ -109,6 +110,39 @@ interface PreviewMessages {
109
110
  source: string;
110
111
  remoteUrl: string;
111
112
  localFile: string;
113
+ textPlainLanguage: string;
114
+ textLineCount: string;
115
+ textWrap: string;
116
+ textCopy: string;
117
+ textCopied: string;
118
+ textCopyFailed: string;
119
+ textDownload: string;
120
+ textDownloadReady: string;
121
+ textLargeFileNotice: string;
122
+ textHighlightSkipped: string;
123
+ textPreviewFailedTitle: string;
124
+ textPreviewFailedMessage: string;
125
+ textOpenOriginal: string;
126
+ officeLegacyConversionTitle: string;
127
+ officeLegacyBinaryNotice: string;
128
+ officeLegacyMetaFormatType: string;
129
+ officeLegacyMetaFileStructure: string;
130
+ officeLegacyOleDetected: string;
131
+ officeLegacyOleMissing: string;
132
+ officeLegacyMetaTextFragments: string;
133
+ officeLegacyTextFragmentCount: string;
134
+ officeLegacyMetaParseStatus: string;
135
+ officeLegacyReadableFragments: string;
136
+ officeLegacyNoText: string;
137
+ officeLegacyWordParseFailed: string;
138
+ officeSheetParseFailed: string;
139
+ officeUnsupportedTitle: string;
140
+ officeUnsupportedLegacyMessage: string;
141
+ officeUnsupportedGenericMessage: string;
142
+ officeUnsupportedIntro: string;
143
+ officeUnsupportedSupportedFormats: string;
144
+ officeErrorWithMessage: string;
145
+ officeErrorWithoutMessage: string;
112
146
  }
113
147
  interface PreviewContext {
114
148
  host: HTMLElement;