@file-viewer/core 3.3.1 → 3.3.3

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.
Files changed (111) hide show
  1. package/dist/assets.d.ts +2 -2
  2. package/dist/assets.js +1 -5
  3. package/dist/browser/controller.d.ts +1 -2
  4. package/dist/browser/controller.js +8 -39
  5. package/dist/browser/source-feedback.d.ts +1 -2
  6. package/dist/browser/source-feedback.js +2 -3
  7. package/dist/browser/toolbar-focus.d.ts +0 -1
  8. package/dist/browser/toolbar-focus.js +0 -3
  9. package/dist/browser/toolbar-keyboard.d.ts +1 -0
  10. package/dist/browser/toolbar-keyboard.js +63 -0
  11. package/dist/browser.d.ts +2 -2
  12. package/dist/browser.js +2 -2
  13. package/dist/config/options.d.ts +1 -1
  14. package/dist/contracts/types.d.ts +1 -470
  15. package/dist/contracts/xml.d.ts +0 -11
  16. package/dist/export.d.ts +3 -10
  17. package/dist/export.js +2 -9
  18. package/dist/exportDocument.d.ts +1 -12
  19. package/dist/exportDocument.js +2 -31
  20. package/dist/features/document/dom/anchors.d.ts +1 -1
  21. package/dist/features/document/dom/index.d.ts +5 -5
  22. package/dist/features/document/dom/index.js +3 -3
  23. package/dist/features/document/dom/providers.d.ts +1 -1
  24. package/dist/features/document/events.d.ts +2 -2
  25. package/dist/features/document/events.js +3 -3
  26. package/dist/features/document/fit.d.ts +1 -1
  27. package/dist/features/document/fit.js +1 -1
  28. package/dist/features/document/imageHandTool.d.ts +0 -2
  29. package/dist/features/document/imageHandTool.js +1 -5
  30. package/dist/features/document/model.d.ts +1 -1
  31. package/dist/features/document/search.d.ts +1 -1
  32. package/dist/features/document/search.js +2 -2
  33. package/dist/features/document/viewState.d.ts +1 -1
  34. package/dist/features/document/viewState.js +2 -2
  35. package/dist/features/document/zoom.d.ts +1 -1
  36. package/dist/features/document/zoom.js +3 -3
  37. package/dist/features/document/zoomGestures.d.ts +2 -2
  38. package/dist/features/document/zoomGestures.js +0 -2
  39. package/dist/features/printMask.d.ts +1 -1
  40. package/dist/features/printMaskDesigner.d.ts +2 -6
  41. package/dist/features/printMaskDesigner.js +2 -11
  42. package/dist/features/printMaskLoader.d.ts +1 -7
  43. package/dist/features/printMaskLoader.js +1 -7
  44. package/dist/features/watermark.d.ts +1 -1
  45. package/dist/headless.d.ts +29 -29
  46. package/dist/headless.js +16 -21
  47. package/dist/i18n/messages.d.ts +1 -1
  48. package/dist/i18n/messages.de.d.ts +1 -5
  49. package/dist/i18n/messages.de.js +1 -5
  50. package/dist/i18n/messages.ja.d.ts +1 -6
  51. package/dist/i18n/messages.ja.js +1 -6
  52. package/dist/i18n/messages.js +4 -4
  53. package/dist/index.d.ts +77 -77
  54. package/dist/index.js +39 -39
  55. package/dist/lifecycle/facade.d.ts +4 -4
  56. package/dist/lifecycle/facade.js +2 -2
  57. package/dist/lifecycle/operations.d.ts +4 -5
  58. package/dist/lifecycle/operations.js +4 -10
  59. package/dist/output/canvasImage.d.ts +1 -2
  60. package/dist/output/canvasImage.js +1 -4
  61. package/dist/output/export.d.ts +1 -3
  62. package/dist/output/export.js +0 -12
  63. package/dist/output/printLayout.d.ts +0 -5
  64. package/dist/output/printLayout.js +0 -4
  65. package/dist/output/snapshotDownload.d.ts +1 -2
  66. package/dist/output/snapshotDownload.js +2 -3
  67. package/dist/platform/assets.d.ts +4 -11
  68. package/dist/platform/assets.js +20 -45
  69. package/dist/platform/copiedAssets.d.ts +0 -1
  70. package/dist/platform/copiedAssets.js +1 -2
  71. package/dist/presentation/colorScheme.d.ts +1 -2
  72. package/dist/presentation/colorScheme.js +1 -2
  73. package/dist/presentation/state.d.ts +1 -1
  74. package/dist/presentation/state.js +3 -3
  75. package/dist/print-mask.d.ts +2 -2
  76. package/dist/print-mask.js +1 -1
  77. package/dist/registry/capabilities.d.ts +1 -14
  78. package/dist/registry/capabilities.js +2 -15
  79. package/dist/registry/formats.d.ts +1 -1
  80. package/dist/registry/formats.generated.d.ts +2 -3
  81. package/dist/registry/formats.generated.js +2 -3
  82. package/dist/registry/formats.js +2 -2
  83. package/dist/registry/registry.d.ts +1 -15
  84. package/dist/registry/registry.js +2 -10
  85. package/dist/renderers/image.d.ts +1 -1
  86. package/dist/renderers/image.js +5 -7
  87. package/dist/renderers/index.d.ts +3 -3
  88. package/dist/renderers/index.js +5 -11
  89. package/dist/rendering/dispatcher.d.ts +1 -6
  90. package/dist/rendering/dispatcher.js +3 -3
  91. package/dist/rendering/handler.d.ts +3 -13
  92. package/dist/rendering/handler.js +9 -21
  93. package/dist/security/svgResources.d.ts +0 -10
  94. package/dist/security/svgResources.js +0 -12
  95. package/dist/source/index.d.ts +3 -3
  96. package/dist/source/index.js +1 -1
  97. package/dist/source/loading.d.ts +4 -4
  98. package/dist/source/loading.js +4 -7
  99. package/dist/source/precheck.d.ts +1 -13
  100. package/dist/source/precheck.js +2 -9
  101. package/dist/source/textEncoding.d.ts +0 -18
  102. package/dist/source/textEncoding.js +0 -15
  103. package/dist/viewer/createViewer.d.ts +1 -1
  104. package/dist/viewer/createViewer.js +17 -28
  105. package/dist/viewer/loading.d.ts +2 -6
  106. package/dist/viewer/loading.js +1 -9
  107. package/dist/viewer/operations.d.ts +3 -3
  108. package/dist/viewer/operations.js +6 -14
  109. package/dist/viewer/state.d.ts +2 -6
  110. package/dist/viewer/state.js +3 -8
  111. package/package.json +3 -1
@@ -1,4 +1,3 @@
1
- /** Lightweight export helpers that remain on the normal viewer path. */
2
1
  export const triggerFileViewerBlobDownload = (blob, name) => {
3
2
  const objectUrl = URL.createObjectURL(blob);
4
3
  const link = document.createElement('a');
@@ -20,9 +19,6 @@ export const triggerFileViewerUrlDownload = (url, name) => {
20
19
  link.click();
21
20
  link.remove();
22
21
  };
23
- // Copy only presentation properties. The bitmap's pixel dimensions may be
24
- // several times larger than its CSS box, and canvas-only selectors will no
25
- // longer match after replacing the node with an image.
26
22
  const CANVAS_PRESENTATION_PROPERTIES = [
27
23
  'display', 'position', 'top', 'right', 'bottom', 'left', 'box-sizing',
28
24
  'width', 'height', 'min-width', 'min-height', 'max-width', 'max-height',
@@ -56,7 +52,6 @@ export const replaceFileViewerCanvasWithImages = (source, clone) => {
56
52
  image.style.setProperty(property, value, canvas.style.getPropertyPriority(property));
57
53
  }
58
54
  }
59
- // Detached canvases have no used style; keep their normal intrinsic size.
60
55
  if (!image.style.width || image.style.width === 'auto')
61
56
  image.style.width = `${sourceCanvas.width}px`;
62
57
  if (!image.style.height || image.style.height === 'auto')
@@ -64,7 +59,6 @@ export const replaceFileViewerCanvasWithImages = (source, clone) => {
64
59
  canvas.replaceWith(image);
65
60
  }
66
61
  catch {
67
- // A canvas tainted by cross-origin resources cannot be exported.
68
62
  }
69
63
  });
70
64
  };
@@ -88,7 +82,6 @@ export const waitForFileViewerNextPaint = (targetWindow) => {
88
82
  (_a = currentWindow === null || currentWindow === void 0 ? void 0 : currentWindow.cancelAnimationFrame) === null || _a === void 0 ? void 0 : _a.call(currentWindow, frame);
89
83
  resolve();
90
84
  };
91
- // Background tabs and hidden print hosts may never run animation frames.
92
85
  timeout = schedule(finish, (currentWindow === null || currentWindow === void 0 ? void 0 : currentWindow.requestAnimationFrame) ? 250 : 0);
93
86
  if (finished || !(currentWindow === null || currentWindow === void 0 ? void 0 : currentWindow.requestAnimationFrame))
94
87
  return;
@@ -123,7 +116,6 @@ const waitForImage = (image, timeoutMs) => {
123
116
  image.removeEventListener('error', finish);
124
117
  resolve();
125
118
  };
126
- // Start the timeout before decode(): a stalled decode must not bypass it.
127
119
  const timeout = setTimeout(finish, timeoutMs);
128
120
  image.addEventListener('load', finish, { once: true });
129
121
  image.addEventListener('error', finish, { once: true });
@@ -132,7 +124,6 @@ const waitForImage = (image, timeoutMs) => {
132
124
  else if (typeof image.decode === 'function') {
133
125
  try {
134
126
  image.decode().then(finish, () => {
135
- // An error/load event may already have fired before decode rejects.
136
127
  if (image.complete)
137
128
  finish();
138
129
  });
@@ -155,7 +146,6 @@ const waitForFonts = async (documentRef, timeoutMs) => {
155
146
  ]);
156
147
  }
157
148
  catch {
158
- // A failed optional font should not prevent the browser's fallback print.
159
149
  }
160
150
  finally {
161
151
  if (timeout !== undefined)
@@ -191,7 +181,6 @@ const blobToDataUrl = async (blob) => {
191
181
  });
192
182
  }
193
183
  catch {
194
- // Fall through to ArrayBuffer encoding for Node / incomplete FileReader shims.
195
184
  }
196
185
  }
197
186
  return bytesToDataUrl(await blob.arrayBuffer(), blob.type || 'application/octet-stream');
@@ -200,7 +189,6 @@ const collectBlobUrls = (html) => {
200
189
  const matches = html.match(/blob:[^\s"'<>)\\]+/g) || [];
201
190
  return Array.from(new Set(matches));
202
191
  };
203
- /** Rewrite ephemeral blob URLs into portable data URLs for export and print. */
204
192
  export const inlineFileViewerBlobUrlsInHtml = async (html) => {
205
193
  if (!html.includes('blob:') || typeof fetch !== 'function') {
206
194
  return html;
@@ -7,15 +7,10 @@ export interface ApplyPrintPageSizeOptions {
7
7
  }
8
8
  export interface BuildPrintPageStyleOptions extends PrintPageSize {
9
9
  selector: string;
10
- /** Per-page CSS pixel sizes, matched by data-viewer-print-page-index (fixed layout only). */
11
10
  pages?: readonly PrintPageSize[];
12
11
  heightMode?: 'fixed' | 'min';
13
12
  }
14
13
  export declare const formatCssPixels: (value: number) => string;
15
- /**
16
- * Browser print helper. DOM measurement belongs in the core browser layer
17
- * because it depends on CSS layout and HTMLElement.
18
- */
19
14
  export declare const getElementPrintPageSize: (element: HTMLElement, fallback?: Partial<PrintPageSize>) => PrintPageSize;
20
15
  export declare const applyPrintPageSize: (element: HTMLElement, size: PrintPageSize, options?: ApplyPrintPageSizeOptions) => void;
21
16
  export declare const buildPrintPageStyle: ({ selector, width, height, heightMode, pages, }: BuildPrintPageStyleOptions) => string;
@@ -11,10 +11,6 @@ const readPositiveCssNumber = (value) => {
11
11
  const parsed = Number.parseFloat(value);
12
12
  return Number.isFinite(parsed) && parsed > 0 ? parsed : 0;
13
13
  };
14
- /**
15
- * Browser print helper. DOM measurement belongs in the core browser layer
16
- * because it depends on CSS layout and HTMLElement.
17
- */
18
14
  export const getElementPrintPageSize = (element, fallback = {}) => {
19
15
  var _a;
20
16
  const style = (_a = element.ownerDocument.defaultView) === null || _a === void 0 ? void 0 : _a.getComputedStyle(element);
@@ -1,6 +1,5 @@
1
- import type { FileRenderContext, FileViewerOptions } from '../contracts/types.js';
1
+ import type { FileRenderContext, FileViewerOptions } from "../contracts/types.js";
2
2
  export declare const isFileViewerSnapshotDownloadPermitted: (options?: FileViewerOptions) => boolean;
3
- /** Renderer-local downloads still use the owning viewer's hooks and request version. */
4
3
  export declare const createFileViewerSnapshotDownload: ({ getOptions, isCurrent, beforeDownload }: {
5
4
  getOptions: () => FileViewerOptions | undefined;
6
5
  isCurrent: () => boolean;
@@ -1,8 +1,7 @@
1
- import { isFileViewerToolbarOperationPermitted } from '../lifecycle/operations.js';
2
- import { triggerFileViewerBlobDownload } from './export.js';
1
+ import { isFileViewerToolbarOperationPermitted } from "../lifecycle/operations.js";
2
+ import { triggerFileViewerBlobDownload } from "./export.js";
3
3
  export const isFileViewerSnapshotDownloadPermitted = (options) => isFileViewerToolbarOperationPermitted(options === null || options === void 0 ? void 0 : options.toolbar, 'download') &&
4
4
  isFileViewerToolbarOperationPermitted(options === null || options === void 0 ? void 0 : options.toolbar, 'export-html');
5
- /** Renderer-local downloads still use the owning viewer's hooks and request version. */
6
5
  export const createFileViewerSnapshotDownload = ({ getOptions, isCurrent, beforeDownload }) => async (create) => {
7
6
  var _a, _b;
8
7
  const allowed = () => isCurrent() && isFileViewerSnapshotDownloadPermitted(getOptions());
@@ -1,4 +1,4 @@
1
- import type { FileViewerArchiveOptions, FileViewerCadOptions, FileViewerChmOptions, FileViewerDataOptions, FileViewerDesignOptions, FileViewerDocxOptions, FileViewerDrawingOptions, FileViewerIworkOptions, FileViewerHangulOptions, FileViewerModelOptions, FileViewerOptions, FileViewerPdfOptions, FileViewerPresentationOptions, FileViewerSpreadsheetOptions, FileViewerTypstOptions, FileViewerWordPerfectOptions } from '../contracts/types.js';
1
+ import type { FileViewerArchiveOptions, FileViewerCadOptions, FileViewerChmOptions, FileViewerDataOptions, FileViewerDesignOptions, FileViewerDocxOptions, FileViewerDrawingOptions, FileViewerIworkOptions, FileViewerHangulOptions, FileViewerModelOptions, FileViewerOptions, FileViewerPdfOptions, FileViewerPresentationOptions, FileViewerSpreadsheetOptions, FileViewerTypstOptions, FileViewerWordPerfectOptions } from "../contracts/types.js";
2
2
  export declare const DEFAULT_FILE_VIEWER_ARCHIVE_WORKER_PATH = "vendor/libarchive/worker-bundle.js";
3
3
  export declare const DEFAULT_FILE_VIEWER_ARCHIVE_WASM_PATH = "vendor/libarchive/libarchive.wasm";
4
4
  export declare const DEFAULT_FILE_VIEWER_CHM_WORKER_PATH = "vendor/chm/chm.worker.js";
@@ -12,9 +12,9 @@ export declare const DEFAULT_FILE_VIEWER_DOCX_WORKER_JSZIP_PATH = "vendor/docx/j
12
12
  export declare const DEFAULT_FILE_VIEWER_DOCX_RUNTIME_VERSION = "0.3.39";
13
13
  export declare const DEFAULT_FILE_VIEWER_PRESENTATION_WORKER_PATH = "vendor/pptx/pptx.worker.js";
14
14
  export declare const DEFAULT_FILE_VIEWER_PPT_RUNTIME_PATH = "vendor/ppt";
15
- export declare const DEFAULT_FILE_VIEWER_PPT_RUNTIME_VERSION = "0.3.6";
16
- export declare const DEFAULT_FILE_VIEWER_PPT_MODULE_PATH = "vendor/ppt/index.mjs";
17
- export declare const DEFAULT_FILE_VIEWER_PPT_WORKER_PATH = "vendor/ppt/worker.mjs";
15
+ export declare const DEFAULT_FILE_VIEWER_PPT_RUNTIME_VERSION = "1.0.2";
16
+ export declare const DEFAULT_FILE_VIEWER_PPT_MODULE_PATH = "vendor/ppt/dist/pptjs.mjs";
17
+ export declare const DEFAULT_FILE_VIEWER_PPT_WORKER_PATH = "vendor/ppt/dist/pptjs.worker.js";
18
18
  export declare const DEFAULT_FILE_VIEWER_PPT_FRAME_CACHE_PATH = "vendor/ppt/frame-cache.mjs";
19
19
  export declare const DEFAULT_FILE_VIEWER_PPT_WASM_PATH = "vendor/ppt/ppt-native.wasm";
20
20
  export declare const DEFAULT_FILE_VIEWER_PPT_FONT_PATH = "vendor/ppt/ppt-font-cjk.otf";
@@ -127,13 +127,6 @@ export interface ResolveFileViewerAssetUrlOptions {
127
127
  export declare const normalizeFileViewerAssetBaseUrl: (baseUrl?: string | URL | null) => string | undefined;
128
128
  export declare const setDefaultFileViewerAssetBaseUrl: (baseUrl?: string | URL | null) => void;
129
129
  export declare const resetDefaultFileViewerAssetBaseUrl: () => void;
130
- /**
131
- * Resolves the stable public base for runtime assets without reading
132
- * bundler-specific environment metadata or webpack public-path variables.
133
- * Explicit HTML `<base>` configuration stays authoritative; for SPA fallback
134
- * routes, emitted Vite/Webpack/UMI entry scripts reveal the deployment root
135
- * more reliably than the route-derived page URL.
136
- */
137
130
  export declare const resolveFileViewerRuntimeAssetBaseUrl: (documentRef: Document) => string;
138
131
  export declare const getDefaultFileViewerAssetBaseUrl: (documentRef?: Document | null) => string | undefined;
139
132
  export interface ResolvedFileViewerCadAssetUrls {
@@ -11,9 +11,9 @@ export const DEFAULT_FILE_VIEWER_DOCX_WORKER_JSZIP_PATH = 'vendor/docx/jszip.min
11
11
  export const DEFAULT_FILE_VIEWER_DOCX_RUNTIME_VERSION = '0.3.39';
12
12
  export const DEFAULT_FILE_VIEWER_PRESENTATION_WORKER_PATH = 'vendor/pptx/pptx.worker.js';
13
13
  export const DEFAULT_FILE_VIEWER_PPT_RUNTIME_PATH = 'vendor/ppt';
14
- export const DEFAULT_FILE_VIEWER_PPT_RUNTIME_VERSION = '0.3.6';
15
- export const DEFAULT_FILE_VIEWER_PPT_MODULE_PATH = `${DEFAULT_FILE_VIEWER_PPT_RUNTIME_PATH}/index.mjs`;
16
- export const DEFAULT_FILE_VIEWER_PPT_WORKER_PATH = `${DEFAULT_FILE_VIEWER_PPT_RUNTIME_PATH}/worker.mjs`;
14
+ export const DEFAULT_FILE_VIEWER_PPT_RUNTIME_VERSION = '1.0.2';
15
+ export const DEFAULT_FILE_VIEWER_PPT_MODULE_PATH = `${DEFAULT_FILE_VIEWER_PPT_RUNTIME_PATH}/dist/pptjs.mjs`;
16
+ export const DEFAULT_FILE_VIEWER_PPT_WORKER_PATH = `${DEFAULT_FILE_VIEWER_PPT_RUNTIME_PATH}/dist/pptjs.worker.js`;
17
17
  export const DEFAULT_FILE_VIEWER_PPT_FRAME_CACHE_PATH = `${DEFAULT_FILE_VIEWER_PPT_RUNTIME_PATH}/frame-cache.mjs`;
18
18
  export const DEFAULT_FILE_VIEWER_PPT_WASM_PATH = `${DEFAULT_FILE_VIEWER_PPT_RUNTIME_PATH}/ppt-native.wasm`;
19
19
  export const DEFAULT_FILE_VIEWER_PPT_FONT_PATH = `${DEFAULT_FILE_VIEWER_PPT_RUNTIME_PATH}/ppt-font-cjk.otf`;
@@ -45,8 +45,6 @@ export const DEFAULT_FILE_VIEWER_CAD_LIBREDWG_WASM_PATH = `${DEFAULT_FILE_VIEWER
45
45
  export const DEFAULT_FILE_VIEWER_TYPST_COMPILER_WASM_URL = 'wasm/typst/typst_ts_web_compiler_bg.wasm';
46
46
  export const DEFAULT_FILE_VIEWER_TYPST_RENDERER_WASM_URL = 'wasm/typst/typst_ts_renderer_bg.wasm';
47
47
  export const DEFAULT_FILE_VIEWER_TYPST_FONT_ASSETS_URL = 'wasm/typst/fonts/';
48
- // Compatibility aliases kept for older imports. They intentionally resolve to
49
- // local viewer assets; the preview runtime must not fall back to a public CDN.
50
48
  export const FALLBACK_FILE_VIEWER_TYPST_COMPILER_WASM_URL = DEFAULT_FILE_VIEWER_TYPST_COMPILER_WASM_URL;
51
49
  export const FALLBACK_FILE_VIEWER_TYPST_RENDERER_WASM_URL = DEFAULT_FILE_VIEWER_TYPST_RENDERER_WASM_URL;
52
50
  export const DEFAULT_FILE_VIEWER_TYPST_COMPILER_WASM_PACKAGE_PATH = '@myriaddreamin/typst-ts-web-compiler/pkg/typst_ts_web_compiler_bg.wasm';
@@ -173,9 +171,6 @@ const resolveFileViewerScriptAssetBaseCandidate = (script, documentBaseUrl, inde
173
171
  score += 8;
174
172
  }
175
173
  if (documentPathname.startsWith(candidateUrl.pathname)) {
176
- // Prefer the deepest candidate that is still an ancestor of the SPA
177
- // route. This avoids stripping an earlier deployment segment named
178
- // `assets` when the emitted suffix is actually `static/js`.
179
174
  score += 16 + pathDepth(candidateUrl.pathname) / 4;
180
175
  }
181
176
  if (script.type === 'module') {
@@ -230,13 +225,6 @@ const resolveFileViewerScriptAssetBaseCandidate = (script, documentBaseUrl, inde
230
225
  return [];
231
226
  }
232
227
  };
233
- /**
234
- * Resolves the stable public base for runtime assets without reading
235
- * bundler-specific environment metadata or webpack public-path variables.
236
- * Explicit HTML `<base>` configuration stays authoritative; for SPA fallback
237
- * routes, emitted Vite/Webpack/UMI entry scripts reveal the deployment root
238
- * more reliably than the route-derived page URL.
239
- */
240
228
  export const resolveFileViewerRuntimeAssetBaseUrl = (documentRef) => {
241
229
  var _a;
242
230
  const documentBaseUrl = documentRef.baseURI || documentRef.URL || 'file:///';
@@ -263,8 +251,6 @@ export const getDefaultFileViewerAssetBaseUrl = (documentRef) => {
263
251
  if (configuredFileViewerAssetBaseUrl !== automaticFileViewerAssetBaseUrl) {
264
252
  return configuredFileViewerAssetBaseUrl;
265
253
  }
266
- // Core remains environment-neutral: callers that want automatic browser
267
- // inference pass their owning Document explicitly.
268
254
  return documentRef ? resolveFileViewerRuntimeAssetBaseUrl(documentRef) : undefined;
269
255
  };
270
256
  const createDesignThirdPartyAssets = (rendererId, includeContainerXmlLicenses = false) => {
@@ -747,7 +733,7 @@ export const DEFAULT_FILE_VIEWER_RENDERER_ASSET_MANIFESTS = [
747
733
  required: true,
748
734
  defaultPath: DEFAULT_FILE_VIEWER_PPT_MODULE_PATH,
749
735
  optionPath: 'presentation.pptModuleUrl',
750
- description: 'Official @file-viewer/ppt 0.3 browser entry for PowerPoint 97–2003 preview.',
736
+ description: 'Self-hosted TypeScript PPT standalone module for PowerPoint 97–2003 preview.',
751
737
  },
752
738
  {
753
739
  id: 'ppt-worker',
@@ -757,36 +743,16 @@ export const DEFAULT_FILE_VIEWER_RENDERER_ASSET_MANIFESTS = [
757
743
  required: true,
758
744
  defaultPath: DEFAULT_FILE_VIEWER_PPT_WORKER_PATH,
759
745
  optionPath: 'presentation.pptWorkerUrl',
760
- description: 'Official @file-viewer/ppt 0.3 module Worker.',
746
+ description: 'TypeScript PPT parsing Worker; layout and Canvas rendering use the main thread.',
761
747
  },
762
748
  {
763
- id: 'ppt-frame-cache',
749
+ id: 'ppt-runtime-dist',
764
750
  rendererId: 'office-presentation-binary',
765
- kind: 'script',
766
- target: 'public',
767
- required: true,
768
- defaultPath: DEFAULT_FILE_VIEWER_PPT_FRAME_CACHE_PATH,
769
- description: 'Bounded IndexedDB frame cache imported by the binary-PPT Worker.',
770
- },
771
- {
772
- id: 'ppt-wasm',
773
- rendererId: 'office-presentation-binary',
774
- kind: 'wasm',
775
- target: 'public',
776
- required: true,
777
- defaultPath: DEFAULT_FILE_VIEWER_PPT_WASM_PATH,
778
- optionPath: 'presentation.pptWasmUrl',
779
- description: 'Official @file-viewer/ppt 0.3 native WebAssembly parser and renderer.',
780
- },
781
- {
782
- id: 'ppt-cjk-font',
783
- rendererId: 'office-presentation-binary',
784
- kind: 'font',
751
+ kind: 'directory',
785
752
  target: 'public',
786
753
  required: true,
787
- defaultPath: DEFAULT_FILE_VIEWER_PPT_FONT_PATH,
788
- optionPath: 'presentation.pptFontUrl',
789
- description: 'CJK font pack verified and loaded by the binary-PPT runtime.',
754
+ defaultPath: `${DEFAULT_FILE_VIEWER_PPT_RUNTIME_PATH}/dist`,
755
+ description: 'Unmodified compiled JavaScript and declarations from the installed PPT package.',
790
756
  },
791
757
  {
792
758
  id: 'ppt-runtime-manifest',
@@ -794,7 +760,7 @@ export const DEFAULT_FILE_VIEWER_RENDERER_ASSET_MANIFESTS = [
794
760
  kind: 'metadata',
795
761
  target: 'public',
796
762
  required: true,
797
- defaultPath: `${DEFAULT_FILE_VIEWER_PPT_RUNTIME_PATH}/manifest.json`,
763
+ defaultPath: `${DEFAULT_FILE_VIEWER_PPT_RUNTIME_PATH}/dist/manifest.json`,
798
764
  description: 'Integrity and edition metadata for the official binary-PPT runtime.',
799
765
  },
800
766
  {
@@ -806,6 +772,15 @@ export const DEFAULT_FILE_VIEWER_RENDERER_ASSET_MANIFESTS = [
806
772
  defaultPath: `${DEFAULT_FILE_VIEWER_PPT_RUNTIME_PATH}/package.json`,
807
773
  description: 'Package identity metadata for the official binary-PPT runtime.',
808
774
  },
775
+ {
776
+ id: 'ppt-runtime-readme',
777
+ rendererId: 'office-presentation-binary',
778
+ kind: 'metadata',
779
+ target: 'public',
780
+ required: true,
781
+ defaultPath: `${DEFAULT_FILE_VIEWER_PPT_RUNTIME_PATH}/README.md`,
782
+ description: 'Usage and supported-format limits shipped with the PPT runtime.',
783
+ },
809
784
  {
810
785
  id: 'ppt-runtime-license',
811
786
  rendererId: 'office-presentation-binary',
@@ -821,7 +796,7 @@ export const DEFAULT_FILE_VIEWER_RENDERER_ASSET_MANIFESTS = [
821
796
  kind: 'license',
822
797
  target: 'public',
823
798
  required: true,
824
- defaultPath: `${DEFAULT_FILE_VIEWER_PPT_RUNTIME_PATH}/NOTICE`,
799
+ defaultPath: `${DEFAULT_FILE_VIEWER_PPT_RUNTIME_PATH}/NOTICE.md`,
825
800
  description: 'Notices shipped by the independently versioned @file-viewer/ppt package.',
826
801
  },
827
802
  ],
@@ -1,2 +1 @@
1
- /** Finds assets copied by the standard CLI without trusting a SPA fallback or arbitrary manifest URLs. */
2
1
  export declare function resolveFileViewerCopiedAssetUrl(documentRef: Document, rendererId: string, assetId: string, signal?: AbortSignal): Promise<string | undefined>;
@@ -1,4 +1,4 @@
1
- import { getFileViewerRendererAssetManifest, resolveFileViewerRuntimeAssetBaseUrl } from './assets.js';
1
+ import { getFileViewerRendererAssetManifest, resolveFileViewerRuntimeAssetBaseUrl } from "./assets.js";
2
2
  const manifests = new WeakMap();
3
3
  const MAX_MANIFEST_BYTES = 1024 * 1024;
4
4
  const readManifest = async (url, signal) => {
@@ -56,7 +56,6 @@ const readManifest = async (url, signal) => {
56
56
  signal === null || signal === void 0 ? void 0 : signal.removeEventListener('abort', abort);
57
57
  }
58
58
  };
59
- /** Finds assets copied by the standard CLI without trusting a SPA fallback or arbitrary manifest URLs. */
60
59
  export async function resolveFileViewerCopiedAssetUrl(documentRef, rendererId, assetId, signal) {
61
60
  var _a, _b, _c;
62
61
  const asset = (_a = getFileViewerRendererAssetManifest(rendererId)) === null || _a === void 0 ? void 0 : _a.assets.find((item) => item.id === assetId);
@@ -1,3 +1,2 @@
1
- import type { FileViewerResolvedThemeMode, FileViewerThemeMode } from '../contracts/types.js';
2
- /** Observe the owning viewer, including hosts across a shadow boundary. */
1
+ import type { FileViewerResolvedThemeMode, FileViewerThemeMode } from "../contracts/types.js";
3
2
  export declare const observeFileViewerColorScheme: (target: HTMLElement, fallback: FileViewerThemeMode | undefined, apply: (theme: FileViewerResolvedThemeMode) => void) => () => void;
@@ -1,5 +1,4 @@
1
- import { resolveFileViewerColorScheme } from '../config/options.js';
2
- /** Observe the owning viewer, including hosts across a shadow boundary. */
1
+ import { resolveFileViewerColorScheme } from "../config/options.js";
3
2
  export const observeFileViewerColorScheme = (target, fallback, apply) => {
4
3
  var _a;
5
4
  const view = target.ownerDocument.defaultView;
@@ -1,4 +1,4 @@
1
- import type { FileViewerFileRef, FileViewerOptions, FileViewerThemeMode, FileViewerToolbarOptions, FileViewerUiDensity } from '../contracts/types.js';
1
+ import type { FileViewerFileRef, FileViewerOptions, FileViewerThemeMode, FileViewerToolbarOptions, FileViewerUiDensity } from "../contracts/types.js";
2
2
  export interface ResolveFileViewerPresentationStateInput {
3
3
  filename?: string;
4
4
  file?: FileViewerFileRef;
@@ -1,6 +1,6 @@
1
- import { normalizeFileViewerToolbar } from '../lifecycle/operations.js';
2
- import { normalizeFileViewerTheme, resolveFileViewerUiDensity } from '../config/options.js';
3
- import { getExtension, resolveFileViewerSourceFilename } from '../source/index.js';
1
+ import { normalizeFileViewerToolbar } from "../lifecycle/operations.js";
2
+ import { normalizeFileViewerTheme, resolveFileViewerUiDensity } from "../config/options.js";
3
+ import { getExtension, resolveFileViewerSourceFilename } from "../source/index.js";
4
4
  export const resolveFileViewerPresentationState = ({ filename, file, url, options, }) => {
5
5
  const displayFilename = resolveFileViewerSourceFilename({
6
6
  filename,
@@ -1,2 +1,2 @@
1
- export { openFileViewerPrintMaskDesigner, } from './features/printMaskDesigner.js';
2
- export type { FileViewerPrintMaskDesignerResult, OpenFileViewerPrintMaskDesignerOptions, } from './features/printMaskDesigner.js';
1
+ export { openFileViewerPrintMaskDesigner, } from "./features/printMaskDesigner.js";
2
+ export type { FileViewerPrintMaskDesignerResult, OpenFileViewerPrintMaskDesignerOptions, } from "./features/printMaskDesigner.js";
@@ -1 +1 @@
1
- export { openFileViewerPrintMaskDesigner, } from './features/printMaskDesigner.js';
1
+ export { openFileViewerPrintMaskDesigner, } from "./features/printMaskDesigner.js";
@@ -1,23 +1,10 @@
1
- import type { FileRenderExportAdapter, FileViewerOperationAvailability, FileViewerZoomState, RendererDefinition, RendererSession } from '../contracts/types.js';
1
+ import type { FileRenderExportAdapter, FileViewerOperationAvailability, FileViewerZoomState, RendererDefinition, RendererSession } from "../contracts/types.js";
2
2
  export declare const DEFAULT_OPERATION_AVAILABILITY: FileViewerOperationAvailability;
3
3
  export declare const getRendererAvailability: (renderer: RendererDefinition | undefined, session?: RendererSession | null) => FileViewerOperationAvailability;
4
4
  export declare const applyFileViewerZoomAvailability: (availability: FileViewerOperationAvailability, zoomState: FileViewerZoomState) => FileViewerOperationAvailability;
5
5
  export declare const createUnsupportedAvailability: (extension: string) => FileViewerOperationAvailability;
6
- /**
7
- * 这些格式只有专属适配器准备好后才展示打印。
8
- *
9
- * 它们的在线预览常依赖分页引擎、虚拟渲染或 Worker 生命周期,直接克隆
10
- * DOM 很容易只得到当前页或当前视口。
11
- */
12
6
  export declare const ADAPTER_PRINT_REQUIRED_EXTENSIONS: readonly ["docx", "docm", "dotx", "dotm", "doc", "dot", "ppt", "pdf", "typ", "typst"];
13
- /**
14
- * 这些格式的预览结果是完整 DOM / SVG / Canvas 截图,解除滚动容器裁切后
15
- * 可以稳定进入浏览器打印流程。
16
- */
17
7
  export declare const DOM_PRINTABLE_EXTENSIONS: readonly ["pptx", "pptm", "potx", "potm", "ppsx", "ppsm", "ofd", "dxf", "dwg", "dwf", "dwfx", "xps", "excalidraw", "drawio", "dio", "mermaid", "mmd", "plantuml", "puml", "umd", "md", "markdown", "olb", "dra", ...("markdown" | "webp" | "jpeg" | "png" | "pdf" | "xyz" | "wasm" | "chm" | "typst" | "xd" | "fla" | "js" | "html" | "svg" | "rb" | "docx" | "docm" | "dotx" | "dotm" | "doc" | "dot" | "ppt" | "pot" | "pptx" | "pptm" | "potx" | "potm" | "ppsx" | "ppsm" | "rtf" | "odt" | "odp" | "xlsx" | "xltx" | "xlsm" | "xlsb" | "xls" | "xlt" | "xla" | "xlam" | "xltm" | "csv" | "tsv" | "ods" | "fods" | "pages" | "numbers" | "key" | "wpd" | "wp" | "wp5" | "wp6" | "dbf" | "ofd" | "hwp" | "hwpx" | "typ" | "zip" | "zipx" | "7z" | "rar" | "tar" | "gz" | "gzip" | "tgz" | "bz2" | "bzip2" | "tbz" | "tbz2" | "xz" | "txz" | "lzma" | "zst" | "tzst" | "cab" | "ar" | "cpio" | "iso" | "xar" | "lha" | "lzh" | "jar" | "war" | "ear" | "apk" | "cbz" | "cbr" | "eml" | "msg" | "mbox" | "olb" | "dra" | "gds" | "oas" | "oasis" | "dxf" | "dwg" | "dwf" | "dwfx" | "xps" | "glb" | "gltf" | "obj" | "stl" | "ply" | "fbx" | "dae" | "3ds" | "3mf" | "amf" | "usd" | "usda" | "usdc" | "usdz" | "kmz" | "step" | "stp" | "iges" | "igs" | "ifc" | "3dm" | "brep" | "pcd" | "wrl" | "vrml" | "vtk" | "vtp" | "geojson" | "kml" | "gpx" | "shp" | "excalidraw" | "drawio" | "dio" | "mermaid" | "mmd" | "plantuml" | "puml" | "bpmn" | "xmind" | "epub" | "fb2" | "umd" | "gif" | "jpg" | "bmp" | "tiff" | "tif" | "avif" | "ico" | "heic" | "heif" | "jxl" | "dicom" | "dcm" | "p7m" | "p7s" | "p7c" | "p7b" | "pkcs7" | "cms" | "cmsc" | "tsd" | "tst" | "tsq" | "tsr" | "asics" | "scs" | "asice" | "sce" | "ers" | "asc" | "sig" | "pgp" | "gpg" | "jws" | "md" | "txt" | "lrc" | "json" | "mjs" | "cjs" | "css" | "java" | "py" | "htm" | "jsx" | "ts" | "tsx" | "xml" | "log" | "vue" | "yaml" | "yml" | "ini" | "sh" | "bash" | "sql" | "go" | "rs" | "php" | "c" | "cpp" | "cc" | "h" | "hpp" | "cs" | "diff" | "patch" | "bundle" | "bdl" | "jsonc" | "json5" | "ipynb" | "toml" | "proto" | "hcl" | "tex" | "gv" | "http" | "react" | "swift" | "kt" | "mp4" | "webm" | "m3u8" | "mp3" | "mpeg" | "wav" | "ogg" | "oga" | "opus" | "m4a" | "aac" | "flac" | "weba" | "midi" | "mid" | "psb" | "pdd" | "psdt" | "psd" | "ait" | "ai" | "idml" | "icml" | "idms" | "inx" | "xfl" | "indd" | "indt" | "ps" | "eps" | "ase" | "aco" | "abr" | "csh" | "pat" | "grd" | "asl" | "ttf" | "otf" | "woff" | "woff2" | "sqlite" | "parquet" | "avro" | "webarchive" | "bin" | "hex" | "elf" | "exe" | "dll" | "class" | "macho")[]];
18
- /**
19
- * 这些格式默认不展示打印按钮,避免导出半截内容。
20
- */
21
8
  export declare const NON_PRINTABLE_EXTENSIONS: readonly ["xlsx", "xltx", "xlsm", "xlsb", "xls", "xlt", "xltm", "csv", "tsv", "ods", "fods", "numbers", ...("markdown" | "webp" | "jpeg" | "png" | "pdf" | "xyz" | "wasm" | "chm" | "typst" | "xd" | "fla" | "js" | "html" | "svg" | "rb" | "docx" | "docm" | "dotx" | "dotm" | "doc" | "dot" | "ppt" | "pot" | "pptx" | "pptm" | "potx" | "potm" | "ppsx" | "ppsm" | "rtf" | "odt" | "odp" | "xlsx" | "xltx" | "xlsm" | "xlsb" | "xls" | "xlt" | "xla" | "xlam" | "xltm" | "csv" | "tsv" | "ods" | "fods" | "pages" | "numbers" | "key" | "wpd" | "wp" | "wp5" | "wp6" | "dbf" | "ofd" | "hwp" | "hwpx" | "typ" | "zip" | "zipx" | "7z" | "rar" | "tar" | "gz" | "gzip" | "tgz" | "bz2" | "bzip2" | "tbz" | "tbz2" | "xz" | "txz" | "lzma" | "zst" | "tzst" | "cab" | "ar" | "cpio" | "iso" | "xar" | "lha" | "lzh" | "jar" | "war" | "ear" | "apk" | "cbz" | "cbr" | "eml" | "msg" | "mbox" | "olb" | "dra" | "gds" | "oas" | "oasis" | "dxf" | "dwg" | "dwf" | "dwfx" | "xps" | "glb" | "gltf" | "obj" | "stl" | "ply" | "fbx" | "dae" | "3ds" | "3mf" | "amf" | "usd" | "usda" | "usdc" | "usdz" | "kmz" | "step" | "stp" | "iges" | "igs" | "ifc" | "3dm" | "brep" | "pcd" | "wrl" | "vrml" | "vtk" | "vtp" | "geojson" | "kml" | "gpx" | "shp" | "excalidraw" | "drawio" | "dio" | "mermaid" | "mmd" | "plantuml" | "puml" | "bpmn" | "xmind" | "epub" | "fb2" | "umd" | "gif" | "jpg" | "bmp" | "tiff" | "tif" | "avif" | "ico" | "heic" | "heif" | "jxl" | "dicom" | "dcm" | "p7m" | "p7s" | "p7c" | "p7b" | "pkcs7" | "cms" | "cmsc" | "tsd" | "tst" | "tsq" | "tsr" | "asics" | "scs" | "asice" | "sce" | "ers" | "asc" | "sig" | "pgp" | "gpg" | "jws" | "md" | "txt" | "lrc" | "json" | "mjs" | "cjs" | "css" | "java" | "py" | "htm" | "jsx" | "ts" | "tsx" | "xml" | "log" | "vue" | "yaml" | "yml" | "ini" | "sh" | "bash" | "sql" | "go" | "rs" | "php" | "c" | "cpp" | "cc" | "h" | "hpp" | "cs" | "diff" | "patch" | "bundle" | "bdl" | "jsonc" | "json5" | "ipynb" | "toml" | "proto" | "hcl" | "tex" | "gv" | "http" | "react" | "swift" | "kt" | "mp4" | "webm" | "m3u8" | "mp3" | "mpeg" | "wav" | "ogg" | "oga" | "opus" | "m4a" | "aac" | "flac" | "weba" | "midi" | "mid" | "psb" | "pdd" | "psdt" | "psd" | "ait" | "ai" | "idml" | "icml" | "idms" | "inx" | "xfl" | "indd" | "indt" | "ps" | "eps" | "ase" | "aco" | "abr" | "csh" | "pat" | "grd" | "asl" | "ttf" | "otf" | "woff" | "woff2" | "sqlite" | "parquet" | "avro" | "webarchive" | "bin" | "hex" | "elf" | "exe" | "dll" | "class" | "macho")[]];
22
9
  export declare const needsDedicatedPrintAdapter: (extension: string) => boolean;
23
10
  export declare const isDomPrintableExtension: (extension: string) => boolean;
@@ -1,5 +1,5 @@
1
- import { ARCHIVE_EXTENSIONS, IMAGE_EXTENSIONS, MODEL_EXTENSIONS, TEXT_EXTENSIONS } from './formats.js';
2
- import { normalizeFileExtension } from '../source/index.js';
1
+ import { ARCHIVE_EXTENSIONS, IMAGE_EXTENSIONS, MODEL_EXTENSIONS, TEXT_EXTENSIONS } from "./formats.js";
2
+ import { normalizeFileExtension } from "../source/index.js";
3
3
  export const DEFAULT_OPERATION_AVAILABILITY = Object.freeze({
4
4
  download: false,
5
5
  print: false,
@@ -45,19 +45,9 @@ export const createUnsupportedAvailability = (extension) => ({
45
45
  ...DEFAULT_OPERATION_AVAILABILITY,
46
46
  download: normalizeFileExtension(extension).length > 0,
47
47
  });
48
- /**
49
- * 这些格式只有专属适配器准备好后才展示打印。
50
- *
51
- * 它们的在线预览常依赖分页引擎、虚拟渲染或 Worker 生命周期,直接克隆
52
- * DOM 很容易只得到当前页或当前视口。
53
- */
54
48
  export const ADAPTER_PRINT_REQUIRED_EXTENSIONS = [
55
49
  'docx', 'docm', 'dotx', 'dotm', 'doc', 'dot', 'ppt', 'pdf', 'typ', 'typst',
56
50
  ];
57
- /**
58
- * 这些格式的预览结果是完整 DOM / SVG / Canvas 截图,解除滚动容器裁切后
59
- * 可以稳定进入浏览器打印流程。
60
- */
61
51
  export const DOM_PRINTABLE_EXTENSIONS = [
62
52
  'pptx', 'pptm', 'potx', 'potm', 'ppsx', 'ppsm', 'ofd', 'dxf', 'dwg', 'dwf', 'dwfx', 'xps',
63
53
  'excalidraw', 'drawio', 'dio', 'mermaid', 'mmd', 'plantuml', 'puml', 'umd', 'md', 'markdown',
@@ -65,9 +55,6 @@ export const DOM_PRINTABLE_EXTENSIONS = [
65
55
  ...TEXT_EXTENSIONS,
66
56
  ...IMAGE_EXTENSIONS,
67
57
  ];
68
- /**
69
- * 这些格式默认不展示打印按钮,避免导出半截内容。
70
- */
71
58
  export const NON_PRINTABLE_EXTENSIONS = [
72
59
  'xlsx', 'xltx', 'xlsm', 'xlsb', 'xls', 'xlt', 'xltm', 'csv', 'tsv', 'ods', 'fods', 'numbers',
73
60
  ...ARCHIVE_EXTENSIONS,
@@ -1,4 +1,4 @@
1
- export { DEFAULT_REGISTERED_EXTENSIONS, DEFAULT_RENDERER_DEFINITIONS, DEFAULT_STABLE_SUPPORTED_EXTENSIONS, DEFAULT_SUPPORTED_EXTENSIONS, } from './formats.generated.js';
1
+ export { DEFAULT_REGISTERED_EXTENSIONS, DEFAULT_RENDERER_DEFINITIONS, DEFAULT_STABLE_SUPPORTED_EXTENSIONS, DEFAULT_SUPPORTED_EXTENSIONS, } from "./formats.generated.js";
2
2
  export declare const ARCHIVE_EXTENSIONS: readonly ("markdown" | "webp" | "jpeg" | "png" | "pdf" | "xyz" | "wasm" | "chm" | "typst" | "xd" | "fla" | "js" | "html" | "svg" | "rb" | "docx" | "docm" | "dotx" | "dotm" | "doc" | "dot" | "ppt" | "pot" | "pptx" | "pptm" | "potx" | "potm" | "ppsx" | "ppsm" | "rtf" | "odt" | "odp" | "xlsx" | "xltx" | "xlsm" | "xlsb" | "xls" | "xlt" | "xla" | "xlam" | "xltm" | "csv" | "tsv" | "ods" | "fods" | "pages" | "numbers" | "key" | "wpd" | "wp" | "wp5" | "wp6" | "dbf" | "ofd" | "hwp" | "hwpx" | "typ" | "zip" | "zipx" | "7z" | "rar" | "tar" | "gz" | "gzip" | "tgz" | "bz2" | "bzip2" | "tbz" | "tbz2" | "xz" | "txz" | "lzma" | "zst" | "tzst" | "cab" | "ar" | "cpio" | "iso" | "xar" | "lha" | "lzh" | "jar" | "war" | "ear" | "apk" | "cbz" | "cbr" | "eml" | "msg" | "mbox" | "olb" | "dra" | "gds" | "oas" | "oasis" | "dxf" | "dwg" | "dwf" | "dwfx" | "xps" | "glb" | "gltf" | "obj" | "stl" | "ply" | "fbx" | "dae" | "3ds" | "3mf" | "amf" | "usd" | "usda" | "usdc" | "usdz" | "kmz" | "step" | "stp" | "iges" | "igs" | "ifc" | "3dm" | "brep" | "pcd" | "wrl" | "vrml" | "vtk" | "vtp" | "geojson" | "kml" | "gpx" | "shp" | "excalidraw" | "drawio" | "dio" | "mermaid" | "mmd" | "plantuml" | "puml" | "bpmn" | "xmind" | "epub" | "fb2" | "umd" | "gif" | "jpg" | "bmp" | "tiff" | "tif" | "avif" | "ico" | "heic" | "heif" | "jxl" | "dicom" | "dcm" | "p7m" | "p7s" | "p7c" | "p7b" | "pkcs7" | "cms" | "cmsc" | "tsd" | "tst" | "tsq" | "tsr" | "asics" | "scs" | "asice" | "sce" | "ers" | "asc" | "sig" | "pgp" | "gpg" | "jws" | "md" | "txt" | "lrc" | "json" | "mjs" | "cjs" | "css" | "java" | "py" | "htm" | "jsx" | "ts" | "tsx" | "xml" | "log" | "vue" | "yaml" | "yml" | "ini" | "sh" | "bash" | "sql" | "go" | "rs" | "php" | "c" | "cpp" | "cc" | "h" | "hpp" | "cs" | "diff" | "patch" | "bundle" | "bdl" | "jsonc" | "json5" | "ipynb" | "toml" | "proto" | "hcl" | "tex" | "gv" | "http" | "react" | "swift" | "kt" | "mp4" | "webm" | "m3u8" | "mp3" | "mpeg" | "wav" | "ogg" | "oga" | "opus" | "m4a" | "aac" | "flac" | "weba" | "midi" | "mid" | "psb" | "pdd" | "psdt" | "psd" | "ait" | "ai" | "idml" | "icml" | "idms" | "inx" | "xfl" | "indd" | "indt" | "ps" | "eps" | "ase" | "aco" | "abr" | "csh" | "pat" | "grd" | "asl" | "ttf" | "otf" | "woff" | "woff2" | "sqlite" | "parquet" | "avro" | "webarchive" | "bin" | "hex" | "elf" | "exe" | "dll" | "class" | "macho")[];
3
3
  export declare const MODEL_EXTENSIONS: readonly ("markdown" | "webp" | "jpeg" | "png" | "pdf" | "xyz" | "wasm" | "chm" | "typst" | "xd" | "fla" | "js" | "html" | "svg" | "rb" | "docx" | "docm" | "dotx" | "dotm" | "doc" | "dot" | "ppt" | "pot" | "pptx" | "pptm" | "potx" | "potm" | "ppsx" | "ppsm" | "rtf" | "odt" | "odp" | "xlsx" | "xltx" | "xlsm" | "xlsb" | "xls" | "xlt" | "xla" | "xlam" | "xltm" | "csv" | "tsv" | "ods" | "fods" | "pages" | "numbers" | "key" | "wpd" | "wp" | "wp5" | "wp6" | "dbf" | "ofd" | "hwp" | "hwpx" | "typ" | "zip" | "zipx" | "7z" | "rar" | "tar" | "gz" | "gzip" | "tgz" | "bz2" | "bzip2" | "tbz" | "tbz2" | "xz" | "txz" | "lzma" | "zst" | "tzst" | "cab" | "ar" | "cpio" | "iso" | "xar" | "lha" | "lzh" | "jar" | "war" | "ear" | "apk" | "cbz" | "cbr" | "eml" | "msg" | "mbox" | "olb" | "dra" | "gds" | "oas" | "oasis" | "dxf" | "dwg" | "dwf" | "dwfx" | "xps" | "glb" | "gltf" | "obj" | "stl" | "ply" | "fbx" | "dae" | "3ds" | "3mf" | "amf" | "usd" | "usda" | "usdc" | "usdz" | "kmz" | "step" | "stp" | "iges" | "igs" | "ifc" | "3dm" | "brep" | "pcd" | "wrl" | "vrml" | "vtk" | "vtp" | "geojson" | "kml" | "gpx" | "shp" | "excalidraw" | "drawio" | "dio" | "mermaid" | "mmd" | "plantuml" | "puml" | "bpmn" | "xmind" | "epub" | "fb2" | "umd" | "gif" | "jpg" | "bmp" | "tiff" | "tif" | "avif" | "ico" | "heic" | "heif" | "jxl" | "dicom" | "dcm" | "p7m" | "p7s" | "p7c" | "p7b" | "pkcs7" | "cms" | "cmsc" | "tsd" | "tst" | "tsq" | "tsr" | "asics" | "scs" | "asice" | "sce" | "ers" | "asc" | "sig" | "pgp" | "gpg" | "jws" | "md" | "txt" | "lrc" | "json" | "mjs" | "cjs" | "css" | "java" | "py" | "htm" | "jsx" | "ts" | "tsx" | "xml" | "log" | "vue" | "yaml" | "yml" | "ini" | "sh" | "bash" | "sql" | "go" | "rs" | "php" | "c" | "cpp" | "cc" | "h" | "hpp" | "cs" | "diff" | "patch" | "bundle" | "bdl" | "jsonc" | "json5" | "ipynb" | "toml" | "proto" | "hcl" | "tex" | "gv" | "http" | "react" | "swift" | "kt" | "mp4" | "webm" | "m3u8" | "mp3" | "mpeg" | "wav" | "ogg" | "oga" | "opus" | "m4a" | "aac" | "flac" | "weba" | "midi" | "mid" | "psb" | "pdd" | "psdt" | "psd" | "ait" | "ai" | "idml" | "icml" | "idms" | "inx" | "xfl" | "indd" | "indt" | "ps" | "eps" | "ase" | "aco" | "abr" | "csh" | "pat" | "grd" | "asl" | "ttf" | "otf" | "woff" | "woff2" | "sqlite" | "parquet" | "avro" | "webarchive" | "bin" | "hex" | "elf" | "exe" | "dll" | "class" | "macho")[];
4
4
  export declare const TEXT_EXTENSIONS: readonly ("markdown" | "webp" | "jpeg" | "png" | "pdf" | "xyz" | "wasm" | "chm" | "typst" | "xd" | "fla" | "js" | "html" | "svg" | "rb" | "docx" | "docm" | "dotx" | "dotm" | "doc" | "dot" | "ppt" | "pot" | "pptx" | "pptm" | "potx" | "potm" | "ppsx" | "ppsm" | "rtf" | "odt" | "odp" | "xlsx" | "xltx" | "xlsm" | "xlsb" | "xls" | "xlt" | "xla" | "xlam" | "xltm" | "csv" | "tsv" | "ods" | "fods" | "pages" | "numbers" | "key" | "wpd" | "wp" | "wp5" | "wp6" | "dbf" | "ofd" | "hwp" | "hwpx" | "typ" | "zip" | "zipx" | "7z" | "rar" | "tar" | "gz" | "gzip" | "tgz" | "bz2" | "bzip2" | "tbz" | "tbz2" | "xz" | "txz" | "lzma" | "zst" | "tzst" | "cab" | "ar" | "cpio" | "iso" | "xar" | "lha" | "lzh" | "jar" | "war" | "ear" | "apk" | "cbz" | "cbr" | "eml" | "msg" | "mbox" | "olb" | "dra" | "gds" | "oas" | "oasis" | "dxf" | "dwg" | "dwf" | "dwfx" | "xps" | "glb" | "gltf" | "obj" | "stl" | "ply" | "fbx" | "dae" | "3ds" | "3mf" | "amf" | "usd" | "usda" | "usdc" | "usdz" | "kmz" | "step" | "stp" | "iges" | "igs" | "ifc" | "3dm" | "brep" | "pcd" | "wrl" | "vrml" | "vtk" | "vtp" | "geojson" | "kml" | "gpx" | "shp" | "excalidraw" | "drawio" | "dio" | "mermaid" | "mmd" | "plantuml" | "puml" | "bpmn" | "xmind" | "epub" | "fb2" | "umd" | "gif" | "jpg" | "bmp" | "tiff" | "tif" | "avif" | "ico" | "heic" | "heif" | "jxl" | "dicom" | "dcm" | "p7m" | "p7s" | "p7c" | "p7b" | "pkcs7" | "cms" | "cmsc" | "tsd" | "tst" | "tsq" | "tsr" | "asics" | "scs" | "asice" | "sce" | "ers" | "asc" | "sig" | "pgp" | "gpg" | "jws" | "md" | "txt" | "lrc" | "json" | "mjs" | "cjs" | "css" | "java" | "py" | "htm" | "jsx" | "ts" | "tsx" | "xml" | "log" | "vue" | "yaml" | "yml" | "ini" | "sh" | "bash" | "sql" | "go" | "rs" | "php" | "c" | "cpp" | "cc" | "h" | "hpp" | "cs" | "diff" | "patch" | "bundle" | "bdl" | "jsonc" | "json5" | "ipynb" | "toml" | "proto" | "hcl" | "tex" | "gv" | "http" | "react" | "swift" | "kt" | "mp4" | "webm" | "m3u8" | "mp3" | "mpeg" | "wav" | "ogg" | "oga" | "opus" | "m4a" | "aac" | "flac" | "weba" | "midi" | "mid" | "psb" | "pdd" | "psdt" | "psd" | "ait" | "ai" | "idml" | "icml" | "idms" | "inx" | "xfl" | "indd" | "indt" | "ps" | "eps" | "ase" | "aco" | "abr" | "csh" | "pat" | "grd" | "asl" | "ttf" | "otf" | "woff" | "woff2" | "sqlite" | "parquet" | "avro" | "webarchive" | "bin" | "hex" | "elf" | "exe" | "dll" | "class" | "macho")[];
@@ -47,7 +47,7 @@ export declare const DEFAULT_RENDERER_DEFINITIONS: readonly [{
47
47
  readonly packageName: "@file-viewer/renderer-ppt";
48
48
  readonly presets: readonly ["office", "all"];
49
49
  readonly containerVersions: readonly ["PowerPoint 97-2003 Binary"];
50
- readonly knownLimits: readonly ["Embedded engine watermark is retained", "Macros are never executed"];
50
+ readonly knownLimits: readonly ["Host fonts and complex effects can differ from PowerPoint", "Macros are never executed"];
51
51
  readonly capabilities: {
52
52
  readonly download: true;
53
53
  readonly print: "adapter";
@@ -715,7 +715,7 @@ export declare const DEFAULT_RENDERER_DEFINITIONS: readonly [{
715
715
  readonly status: "experimental";
716
716
  readonly packageName: "@file-viewer/renderer-design";
717
717
  readonly presets: readonly [];
718
- readonly containerVersions: readonly ["IDML package", "@paged-media/introspect-wasm 0.70.2"];
718
+ readonly containerVersions: readonly ["IDML package", "@paged-media/introspect-wasm 0.73.4"];
719
719
  readonly knownLimits: readonly ["Pages are rendered locally by the CPU WASM engine in a module Worker; the browser never uploads the IDML package", "ZIP64, encrypted, multi-disk, overlapping, unsafe-path, unsupported-compression, and configured expansion-limit packages are rejected before the WASM engine opens them", "The current engine page tree lists TextFrame and Rectangle objects only even though other supported objects may still appear in rendered page pixels", "Each page render rebuilds the upstream document internally; interactive requests are latest-wins, preview is lazy, and print-all is bounded by the configured total RGBA working-set limit"];
720
720
  readonly capabilities: {
721
721
  readonly download: true;
@@ -900,5 +900,4 @@ export declare const DEFAULT_RENDERER_DEFINITIONS: readonly [{
900
900
  }];
901
901
  export declare const DEFAULT_REGISTERED_EXTENSIONS: readonly ("markdown" | "webp" | "jpeg" | "png" | "pdf" | "xyz" | "wasm" | "chm" | "typst" | "xd" | "fla" | "js" | "html" | "svg" | "rb" | "docx" | "docm" | "dotx" | "dotm" | "doc" | "dot" | "ppt" | "pot" | "pptx" | "pptm" | "potx" | "potm" | "ppsx" | "ppsm" | "rtf" | "odt" | "odp" | "xlsx" | "xltx" | "xlsm" | "xlsb" | "xls" | "xlt" | "xla" | "xlam" | "xltm" | "csv" | "tsv" | "ods" | "fods" | "pages" | "numbers" | "key" | "wpd" | "wp" | "wp5" | "wp6" | "dbf" | "ofd" | "hwp" | "hwpx" | "typ" | "zip" | "zipx" | "7z" | "rar" | "tar" | "gz" | "gzip" | "tgz" | "bz2" | "bzip2" | "tbz" | "tbz2" | "xz" | "txz" | "lzma" | "zst" | "tzst" | "cab" | "ar" | "cpio" | "iso" | "xar" | "lha" | "lzh" | "jar" | "war" | "ear" | "apk" | "cbz" | "cbr" | "eml" | "msg" | "mbox" | "olb" | "dra" | "gds" | "oas" | "oasis" | "dxf" | "dwg" | "dwf" | "dwfx" | "xps" | "glb" | "gltf" | "obj" | "stl" | "ply" | "fbx" | "dae" | "3ds" | "3mf" | "amf" | "usd" | "usda" | "usdc" | "usdz" | "kmz" | "step" | "stp" | "iges" | "igs" | "ifc" | "3dm" | "brep" | "pcd" | "wrl" | "vrml" | "vtk" | "vtp" | "geojson" | "kml" | "gpx" | "shp" | "excalidraw" | "drawio" | "dio" | "mermaid" | "mmd" | "plantuml" | "puml" | "bpmn" | "xmind" | "epub" | "fb2" | "umd" | "gif" | "jpg" | "bmp" | "tiff" | "tif" | "avif" | "ico" | "heic" | "heif" | "jxl" | "dicom" | "dcm" | "p7m" | "p7s" | "p7c" | "p7b" | "pkcs7" | "cms" | "cmsc" | "tsd" | "tst" | "tsq" | "tsr" | "asics" | "scs" | "asice" | "sce" | "ers" | "asc" | "sig" | "pgp" | "gpg" | "jws" | "md" | "txt" | "lrc" | "json" | "mjs" | "cjs" | "css" | "java" | "py" | "htm" | "jsx" | "ts" | "tsx" | "xml" | "log" | "vue" | "yaml" | "yml" | "ini" | "sh" | "bash" | "sql" | "go" | "rs" | "php" | "c" | "cpp" | "cc" | "h" | "hpp" | "cs" | "diff" | "patch" | "bundle" | "bdl" | "jsonc" | "json5" | "ipynb" | "toml" | "proto" | "hcl" | "tex" | "gv" | "http" | "react" | "swift" | "kt" | "mp4" | "webm" | "m3u8" | "mp3" | "mpeg" | "wav" | "ogg" | "oga" | "opus" | "m4a" | "aac" | "flac" | "weba" | "midi" | "mid" | "psb" | "pdd" | "psdt" | "psd" | "ait" | "ai" | "idml" | "icml" | "idms" | "inx" | "xfl" | "indd" | "indt" | "ps" | "eps" | "ase" | "aco" | "abr" | "csh" | "pat" | "grd" | "asl" | "ttf" | "otf" | "woff" | "woff2" | "sqlite" | "parquet" | "avro" | "webarchive" | "bin" | "hex" | "elf" | "exe" | "dll" | "class" | "macho")[];
902
902
  export declare const DEFAULT_STABLE_SUPPORTED_EXTENSIONS: readonly ("markdown" | "webp" | "jpeg" | "png" | "pdf" | "xyz" | "wasm" | "chm" | "typst" | "js" | "html" | "svg" | "rb" | "docx" | "docm" | "dotx" | "dotm" | "doc" | "dot" | "ppt" | "pot" | "pptx" | "pptm" | "potx" | "potm" | "ppsx" | "ppsm" | "rtf" | "odt" | "odp" | "xlsx" | "xltx" | "xlsm" | "xlsb" | "xls" | "xlt" | "xla" | "xlam" | "xltm" | "csv" | "tsv" | "ods" | "fods" | "pages" | "numbers" | "key" | "wpd" | "wp" | "wp5" | "wp6" | "dbf" | "ofd" | "hwp" | "hwpx" | "typ" | "zip" | "zipx" | "7z" | "rar" | "tar" | "gz" | "gzip" | "tgz" | "bz2" | "bzip2" | "tbz" | "tbz2" | "xz" | "txz" | "lzma" | "zst" | "tzst" | "cab" | "ar" | "cpio" | "iso" | "xar" | "lha" | "lzh" | "jar" | "war" | "ear" | "apk" | "cbz" | "cbr" | "eml" | "msg" | "mbox" | "olb" | "dra" | "gds" | "oas" | "oasis" | "dxf" | "dwg" | "dwf" | "dwfx" | "xps" | "glb" | "gltf" | "obj" | "stl" | "ply" | "fbx" | "dae" | "3ds" | "3mf" | "amf" | "usd" | "usda" | "usdc" | "usdz" | "kmz" | "step" | "stp" | "iges" | "igs" | "ifc" | "3dm" | "brep" | "pcd" | "wrl" | "vrml" | "vtk" | "vtp" | "geojson" | "kml" | "gpx" | "shp" | "excalidraw" | "drawio" | "dio" | "mermaid" | "mmd" | "plantuml" | "puml" | "xmind" | "epub" | "fb2" | "umd" | "gif" | "jpg" | "bmp" | "tiff" | "tif" | "avif" | "ico" | "heic" | "heif" | "jxl" | "md" | "txt" | "lrc" | "json" | "mjs" | "cjs" | "css" | "java" | "py" | "htm" | "jsx" | "ts" | "tsx" | "xml" | "log" | "vue" | "yaml" | "yml" | "ini" | "sh" | "bash" | "sql" | "go" | "rs" | "php" | "c" | "cpp" | "cc" | "h" | "hpp" | "cs" | "diff" | "patch" | "bundle" | "bdl" | "jsonc" | "json5" | "ipynb" | "toml" | "proto" | "hcl" | "tex" | "gv" | "http" | "react" | "swift" | "kt" | "mp4" | "webm" | "m3u8" | "mp3" | "mpeg" | "wav" | "ogg" | "oga" | "opus" | "m4a" | "aac" | "flac" | "weba" | "midi" | "mid" | "psd" | "ai" | "eps" | "ase" | "aco" | "ttf" | "otf" | "woff" | "woff2" | "sqlite" | "parquet" | "avro" | "webarchive")[];
903
- /** @deprecated Use DEFAULT_REGISTERED_EXTENSIONS when the experimental/stable distinction matters. */
904
903
  export declare const DEFAULT_SUPPORTED_EXTENSIONS: readonly ("markdown" | "webp" | "jpeg" | "png" | "pdf" | "xyz" | "wasm" | "chm" | "typst" | "xd" | "fla" | "js" | "html" | "svg" | "rb" | "docx" | "docm" | "dotx" | "dotm" | "doc" | "dot" | "ppt" | "pot" | "pptx" | "pptm" | "potx" | "potm" | "ppsx" | "ppsm" | "rtf" | "odt" | "odp" | "xlsx" | "xltx" | "xlsm" | "xlsb" | "xls" | "xlt" | "xla" | "xlam" | "xltm" | "csv" | "tsv" | "ods" | "fods" | "pages" | "numbers" | "key" | "wpd" | "wp" | "wp5" | "wp6" | "dbf" | "ofd" | "hwp" | "hwpx" | "typ" | "zip" | "zipx" | "7z" | "rar" | "tar" | "gz" | "gzip" | "tgz" | "bz2" | "bzip2" | "tbz" | "tbz2" | "xz" | "txz" | "lzma" | "zst" | "tzst" | "cab" | "ar" | "cpio" | "iso" | "xar" | "lha" | "lzh" | "jar" | "war" | "ear" | "apk" | "cbz" | "cbr" | "eml" | "msg" | "mbox" | "olb" | "dra" | "gds" | "oas" | "oasis" | "dxf" | "dwg" | "dwf" | "dwfx" | "xps" | "glb" | "gltf" | "obj" | "stl" | "ply" | "fbx" | "dae" | "3ds" | "3mf" | "amf" | "usd" | "usda" | "usdc" | "usdz" | "kmz" | "step" | "stp" | "iges" | "igs" | "ifc" | "3dm" | "brep" | "pcd" | "wrl" | "vrml" | "vtk" | "vtp" | "geojson" | "kml" | "gpx" | "shp" | "excalidraw" | "drawio" | "dio" | "mermaid" | "mmd" | "plantuml" | "puml" | "bpmn" | "xmind" | "epub" | "fb2" | "umd" | "gif" | "jpg" | "bmp" | "tiff" | "tif" | "avif" | "ico" | "heic" | "heif" | "jxl" | "dicom" | "dcm" | "p7m" | "p7s" | "p7c" | "p7b" | "pkcs7" | "cms" | "cmsc" | "tsd" | "tst" | "tsq" | "tsr" | "asics" | "scs" | "asice" | "sce" | "ers" | "asc" | "sig" | "pgp" | "gpg" | "jws" | "md" | "txt" | "lrc" | "json" | "mjs" | "cjs" | "css" | "java" | "py" | "htm" | "jsx" | "ts" | "tsx" | "xml" | "log" | "vue" | "yaml" | "yml" | "ini" | "sh" | "bash" | "sql" | "go" | "rs" | "php" | "c" | "cpp" | "cc" | "h" | "hpp" | "cs" | "diff" | "patch" | "bundle" | "bdl" | "jsonc" | "json5" | "ipynb" | "toml" | "proto" | "hcl" | "tex" | "gv" | "http" | "react" | "swift" | "kt" | "mp4" | "webm" | "m3u8" | "mp3" | "mpeg" | "wav" | "ogg" | "oga" | "opus" | "m4a" | "aac" | "flac" | "weba" | "midi" | "mid" | "psb" | "pdd" | "psdt" | "psd" | "ait" | "ai" | "idml" | "icml" | "idms" | "inx" | "xfl" | "indd" | "indt" | "ps" | "eps" | "ase" | "aco" | "abr" | "csh" | "pat" | "grd" | "asl" | "ttf" | "otf" | "woff" | "woff2" | "sqlite" | "parquet" | "avro" | "webarchive" | "bin" | "hex" | "elf" | "exe" | "dll" | "class" | "macho")[];
@@ -84,7 +84,7 @@ export const DEFAULT_RENDERER_DEFINITIONS = [
84
84
  "PowerPoint 97-2003 Binary"
85
85
  ],
86
86
  "knownLimits": [
87
- "Embedded engine watermark is retained",
87
+ "Host fonts and complex effects can differ from PowerPoint",
88
88
  "Macros are never executed"
89
89
  ],
90
90
  "capabilities": {
@@ -1327,7 +1327,7 @@ export const DEFAULT_RENDERER_DEFINITIONS = [
1327
1327
  "presets": [],
1328
1328
  "containerVersions": [
1329
1329
  "IDML package",
1330
- "@paged-media/introspect-wasm 0.70.2"
1330
+ "@paged-media/introspect-wasm 0.73.4"
1331
1331
  ],
1332
1332
  "knownLimits": [
1333
1333
  "Pages are rendered locally by the CPU WASM engine in a module Worker; the browser never uploads the IDML package",
@@ -1656,5 +1656,4 @@ export const DEFAULT_REGISTERED_EXTENSIONS = Object.freeze(Array.from(new Set(DE
1656
1656
  export const DEFAULT_STABLE_SUPPORTED_EXTENSIONS = Object.freeze(Array.from(new Set(DEFAULT_RENDERER_DEFINITIONS
1657
1657
  .filter(definition => definition.status === 'stable')
1658
1658
  .flatMap(definition => definition.extensions))).sort());
1659
- /** @deprecated Use DEFAULT_REGISTERED_EXTENSIONS when the experimental/stable distinction matters. */
1660
1659
  export const DEFAULT_SUPPORTED_EXTENSIONS = DEFAULT_REGISTERED_EXTENSIONS;
@@ -1,5 +1,5 @@
1
- export { DEFAULT_REGISTERED_EXTENSIONS, DEFAULT_RENDERER_DEFINITIONS, DEFAULT_STABLE_SUPPORTED_EXTENSIONS, DEFAULT_SUPPORTED_EXTENSIONS, } from './formats.generated.js';
2
- import { DEFAULT_RENDERER_DEFINITIONS } from './formats.generated.js';
1
+ export { DEFAULT_REGISTERED_EXTENSIONS, DEFAULT_RENDERER_DEFINITIONS, DEFAULT_STABLE_SUPPORTED_EXTENSIONS, DEFAULT_SUPPORTED_EXTENSIONS, } from "./formats.generated.js";
2
+ import { DEFAULT_RENDERER_DEFINITIONS } from "./formats.generated.js";
3
3
  const extensionsFor = (rendererId) => {
4
4
  var _a, _b;
5
5
  return Object.freeze([...((_b = (_a = DEFAULT_RENDERER_DEFINITIONS.find(definition => definition.id === rendererId)) === null || _a === void 0 ? void 0 : _a.extensions) !== null && _b !== void 0 ? _b : [])]);
@@ -1,13 +1,6 @@
1
- import type { FileViewerRendererHandlerRegistration, FileViewerRendererPluginInput, FileViewerRendererPlugin, FileViewerRendererPresetInput, FileViewerRendererPresetName, RendererDefinition, RendererRegistry } from '../contracts/types.js';
1
+ import type { FileViewerRendererHandlerRegistration, FileViewerRendererPluginInput, FileViewerRendererPlugin, FileViewerRendererPresetInput, FileViewerRendererPresetName, RendererDefinition, RendererRegistry } from "../contracts/types.js";
2
2
  export interface RegisterFileViewerAutoRendererPresetOptions {
3
- /**
4
- * Stable key used to replace an existing auto preset registration.
5
- */
6
3
  id?: string;
7
- /**
8
- * Package name is useful for diagnostics and gives generated integrations a
9
- * deterministic id even when the preset input is an array.
10
- */
11
4
  packageName?: string;
12
5
  }
13
6
  export interface FileViewerAutoRendererPresetEntry<Handler = unknown> {
@@ -39,12 +32,5 @@ export declare const listFileViewerAutoRendererPresetEntries: <Handler = unknown
39
32
  export declare const findFileViewerAutoRendererPreset: <Handler = unknown>(id: FileViewerRendererPresetName | string) => FileViewerRendererPluginInput<Handler> | undefined;
40
33
  export declare const getFileViewerAutoRendererPresetVersion: () => number;
41
34
  export declare const hasFileViewerRendererPresetName: (input?: FileViewerRendererPresetInput | null) => boolean;
42
- /**
43
- * Normalizes `options.preset` / `options.presets` into renderer plugin inputs.
44
- *
45
- * Passing a preset object is the most portable integration style because it
46
- * works in any bundler. String selectors intentionally only resolve presets
47
- * that are already registered by a side-effect import or by build tooling.
48
- */
49
35
  export declare const resolveFileViewerRendererPresetInputs: <Handler = unknown>(input?: FileViewerRendererPresetInput<Handler> | null) => FileViewerRendererPluginInput<Handler>[];
50
36
  export declare const installFileViewerRendererPlugins: <Handler = unknown>({ registry, plugins, registerHandler, }: InstallFileViewerRendererPluginsOptions<Handler>) => Promise<RendererRegistry>;