@eternalheart/vue-file-preview 1.6.13 → 1.7.1

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 (128) hide show
  1. package/README.md +4 -0
  2. package/README.zh-CN.md +4 -0
  3. package/lib/FilePreviewContent.vue.d.ts +25 -6
  4. package/lib/FilePreviewEmbed.vue.d.ts +19 -6
  5. package/lib/FilePreviewModal.vue.d.ts +19 -6
  6. package/lib/chunks/{EmptyState.vue_vue_type_script_setup_true_lang-C7qk6wj0.mjs → EmptyState.vue_vue_type_script_setup_true_lang-DSQp7H-K.mjs} +1 -1
  7. package/lib/chunks/{avifLoader-CAUzjn-d-C0KRpetN.mjs → avifLoader-CAUzjn-d-Cf00sjt2.mjs} +1 -1
  8. package/lib/chunks/{heicLoader-D_9PukkA-Czof_5FJ.mjs → heicLoader-D_9PukkA-cn1P7b2x.mjs} +1 -1
  9. package/lib/chunks/{index-BASg1cr4.mjs → index-0VXtKKev.mjs} +1018 -1018
  10. package/lib/chunks/index-0fXL30y0.mjs +333 -0
  11. package/lib/chunks/{index-C9mAajbD.mjs → index-B1AwVHWI.mjs} +191 -191
  12. package/lib/chunks/{index-BvBqDq3O.mjs → index-B77rFiau.mjs} +2023 -2023
  13. package/lib/chunks/index-BB10as16.mjs +108 -0
  14. package/lib/chunks/index-BBIn-k4u.mjs +359 -0
  15. package/lib/chunks/index-BSzaI9ea.mjs +122 -0
  16. package/lib/chunks/index-BZvy39tn.mjs +117 -0
  17. package/lib/chunks/index-BlJEM2Lb.mjs +383 -0
  18. package/lib/chunks/{index-CxKZKUJj.mjs → index-CZlnxQFA.mjs} +1385 -1385
  19. package/lib/chunks/index-ClhTPqDI.mjs +137 -0
  20. package/lib/chunks/{index-8Vpbg2kS.mjs → index-D690gnNu.mjs} +118 -117
  21. package/lib/chunks/index-D7WykPYL.mjs +51 -0
  22. package/lib/chunks/{index-DZZN3kYi.mjs → index-DBzyeU0G.mjs} +1609 -1375
  23. package/lib/chunks/{index-Dkro_8Fy.mjs → index-DKFX5ToE.mjs} +33 -33
  24. package/lib/chunks/index-DRmKaFXK.mjs +157 -0
  25. package/lib/chunks/index-DXf3wXT5.mjs +155 -0
  26. package/lib/chunks/{index-BuqPb5mP.mjs → index-Dp7QQjNH.mjs} +114 -114
  27. package/lib/chunks/index-FzI__DHC.mjs +104 -0
  28. package/lib/chunks/index-PWjCziZG.mjs +90 -0
  29. package/lib/chunks/index-bT6XWKO_.mjs +52 -0
  30. package/lib/chunks/{index-DN4Ui0Gh.mjs → index-tX9VR6Vo.mjs} +122 -122
  31. package/lib/chunks/{jp2Loader-Dig19xyo-CKUaGhPl.mjs → jp2Loader-Dig19xyo-D-OEDL3n.mjs} +1 -1
  32. package/lib/chunks/{psdLoader-C0tKUXXl-CYWoQis5.mjs → psdLoader-C0tKUXXl-CVN06LUc.mjs} +1 -1
  33. package/lib/chunks/{rawLoader-C-tPeFAB-C35zC8nZ.mjs → rawLoader-C-tPeFAB-DBqcJPFK.mjs} +5 -5
  34. package/lib/chunks/{tiffLoader-BlhByX8w-BOxg_Du5.mjs → tiffLoader-BlhByX8w-8-0icdyL.mjs} +1 -1
  35. package/lib/chunks/{useShikiHighlight-BPmcxA-h.mjs → useShikiHighlight-a_GUszuU.mjs} +1 -1
  36. package/lib/composables/useAudioPlayer.d.ts +1 -1
  37. package/lib/composables/usePreviewEvents.d.ts +27 -0
  38. package/lib/composables/useRequest.d.ts +16 -4
  39. package/lib/composables/useThemeMode.d.ts +1 -1
  40. package/lib/composables/useTranslator.d.ts +2 -2
  41. package/lib/core/events.d.ts +69 -0
  42. package/lib/core/i18n/index.d.ts +29 -0
  43. package/lib/core/i18n/messages/en-US.d.ts +5 -0
  44. package/lib/core/i18n/messages/index.d.ts +9 -0
  45. package/lib/core/i18n/messages/zh-CN.d.ts +5 -0
  46. package/lib/core/i18n/types.d.ts +23 -0
  47. package/lib/core/index.d.ts +34 -0
  48. package/lib/core/loaders/avifLoader.d.ts +22 -0
  49. package/lib/core/loaders/heicLoader.d.ts +21 -0
  50. package/lib/core/loaders/jp2Loader.d.ts +16 -0
  51. package/lib/core/loaders/jp2Worker.d.ts +1 -0
  52. package/lib/core/loaders/psdLoader.d.ts +14 -0
  53. package/lib/core/loaders/rawLoader.d.ts +14 -0
  54. package/lib/core/loaders/registry.d.ts +32 -0
  55. package/lib/core/loaders/tiffLoader.d.ts +28 -0
  56. package/lib/core/loaders/types.d.ts +56 -0
  57. package/lib/core/types.d.ts +89 -0
  58. package/lib/core/utils/csvParser.d.ts +31 -0
  59. package/lib/core/utils/emptyState.d.ts +28 -0
  60. package/lib/core/utils/excelDataConverter.d.ts +61 -0
  61. package/lib/core/utils/fileNormalizer.d.ts +21 -0
  62. package/lib/core/utils/fileType.d.ts +21 -0
  63. package/lib/core/utils/legacy-office/doc.d.ts +25 -0
  64. package/lib/core/utils/legacy-office/index.d.ts +8 -0
  65. package/lib/core/utils/legacy-office/ole.d.ts +8 -0
  66. package/lib/core/utils/legacy-office/ppt.d.ts +79 -0
  67. package/lib/core/utils/legacy-office/xls.d.ts +28 -0
  68. package/lib/core/utils/mimeTypes.d.ts +29 -0
  69. package/lib/core/utils/ooxml/docx.d.ts +17 -0
  70. package/lib/core/utils/ooxml/index.d.ts +4 -0
  71. package/lib/core/utils/ooxml/pptx.d.ts +7 -0
  72. package/lib/core/utils/ooxml/xml.d.ts +15 -0
  73. package/lib/core/utils/ooxml/zip.d.ts +3 -0
  74. package/lib/core/utils/pdfWorker.d.ts +61 -0
  75. package/lib/core/utils/previewMode.d.ts +7 -0
  76. package/lib/core/utils/request.d.ts +49 -0
  77. package/lib/core/utils/subtitleParser.d.ts +44 -0
  78. package/lib/core/utils/textDecoder.d.ts +30 -0
  79. package/lib/core/utils/uint8ArrayPolyfill.d.ts +18 -0
  80. package/lib/core/utils/zipReader.d.ts +51 -0
  81. package/lib/core/workers/imageDecoder.worker.d.ts +31 -0
  82. package/lib/core/workers/workerClient.d.ts +14 -0
  83. package/lib/i18n/localeKey.d.ts +1 -1
  84. package/lib/index.cjs +60 -60
  85. package/lib/index.css +1 -1
  86. package/lib/index.d.ts +11 -9
  87. package/lib/index.mjs +15 -12
  88. package/lib/renderers/Audio/index.vue.d.ts +1 -1
  89. package/lib/renderers/Cad/index.vue.d.ts +1 -1
  90. package/lib/renderers/Cad/toolbar.d.ts +2 -2
  91. package/lib/renderers/Csv/index.vue.d.ts +1 -1
  92. package/lib/renderers/Doc/index.vue.d.ts +1 -1
  93. package/lib/renderers/Docx/index.vue.d.ts +1 -1
  94. package/lib/renderers/Epub/index.vue.d.ts +1 -1
  95. package/lib/renderers/Font/index.vue.d.ts +1 -1
  96. package/lib/renderers/Image/index.vue.d.ts +2 -2
  97. package/lib/renderers/Json/index.vue.d.ts +2 -2
  98. package/lib/renderers/Markdown/index.vue.d.ts +1 -1
  99. package/lib/renderers/Mobi/index.vue.d.ts +1 -1
  100. package/lib/renderers/Msg/index.vue.d.ts +1 -1
  101. package/lib/renderers/Pdf/index.vue.d.ts +1 -1
  102. package/lib/renderers/Ppt/index.vue.d.ts +1 -1
  103. package/lib/renderers/Pptx/index.vue.d.ts +2 -2
  104. package/lib/renderers/Subtitle/index.vue.d.ts +1 -1
  105. package/lib/renderers/Text/index.vue.d.ts +2 -2
  106. package/lib/renderers/Unsupported/index.vue.d.ts +1 -1
  107. package/lib/renderers/Video/index.vue.d.ts +1 -1
  108. package/lib/renderers/Xlsx/index.vue.d.ts +2 -2
  109. package/lib/renderers/Xml/index.vue.d.ts +1 -1
  110. package/lib/renderers/Zip/TreeItem.vue.d.ts +1 -1
  111. package/lib/renderers/Zip/index.vue.d.ts +1 -1
  112. package/lib/renderers/base.types.d.ts +1 -1
  113. package/lib/renderers/registry.d.ts +1 -1
  114. package/lib/types.d.ts +3 -3
  115. package/package.json +2 -2
  116. package/lib/chunks/index--612Smof.mjs +0 -383
  117. package/lib/chunks/index-B21EAyWz.mjs +0 -137
  118. package/lib/chunks/index-BB0i4QqI.mjs +0 -117
  119. package/lib/chunks/index-BVdrGK3Q.mjs +0 -356
  120. package/lib/chunks/index-BlrFFeqc.mjs +0 -330
  121. package/lib/chunks/index-Bp9CuvMZ.mjs +0 -157
  122. package/lib/chunks/index-Bxpf9v5j.mjs +0 -104
  123. package/lib/chunks/index-CDg6vIbT.mjs +0 -51
  124. package/lib/chunks/index-CWE-hKSs.mjs +0 -90
  125. package/lib/chunks/index-CY3xzGgt.mjs +0 -108
  126. package/lib/chunks/index-D30L8tm9.mjs +0 -155
  127. package/lib/chunks/index-VdzIFJJW.mjs +0 -118
  128. package/lib/chunks/index-aoXgVLBb.mjs +0 -52
package/lib/index.d.ts CHANGED
@@ -1,11 +1,13 @@
1
1
  import './index.css';
2
2
  export declare const VERSION: string;
3
- export { default as FilePreviewModal } from './FilePreviewModal.vue';
4
- export { default as FilePreviewEmbed } from './FilePreviewEmbed.vue';
5
- export { default as FilePreviewContent } from './FilePreviewContent.vue';
6
- export type { PreviewFile, PreviewFileLink, PreviewFileInput, FileType, PreviewState, ToolbarAction, CustomRenderer, CustomRendererContext, CustomRendererEventPayload, RequestHandler, RequestInitFactory, RequestOptions, Fetcher, ShouldFetchAsBlob, } from './types';
7
- export { normalizeFile, normalizeFiles, getFileType, configurePdfWorker, SUPPORTED_FILE_TYPES, } from '@eternalheart/file-preview-core';
8
- export type { PdfWorkerOptions } from '@eternalheart/file-preview-core';
9
- export { useTranslator, provideLocale } from './composables/useTranslator';
10
- export { LOCALE_KEY } from './i18n/localeKey';
11
- export type { EmptyHintMode, Locale, Messages, Translator, Theme } from '@eternalheart/file-preview-core';
3
+ export { default as FilePreviewModal } from './FilePreviewModal.vue.js';
4
+ export { default as FilePreviewEmbed } from './FilePreviewEmbed.vue.js';
5
+ export { default as FilePreviewContent } from './FilePreviewContent.vue.js';
6
+ export type { PreviewFile, PreviewFileLink, PreviewFileInput, FileType, PreviewState, ToolbarAction, CustomRenderer, CustomRendererContext, CustomRendererEventPayload, RequestHandler, RequestInitFactory, RequestOptions, Fetcher, ShouldFetchAsBlob, FileContent, FileLoader, } from './types.js';
7
+ export { normalizeFile, normalizeFiles, getFileType, configurePdfWorker, SUPPORTED_FILE_TYPES, PreviewRequestError, withHeaders, } from './core/index.js';
8
+ export type { PdfWorkerOptions } from './core/index.js';
9
+ export type { PreviewErrorStage, PreviewErrorPayload, PreviewRenderedPayload, PreviewReporter, } from './core/index.js';
10
+ export { usePreviewEvents } from './composables/usePreviewEvents.js';
11
+ export { useTranslator, provideLocale } from './composables/useTranslator.js';
12
+ export { LOCALE_KEY } from './i18n/localeKey.js';
13
+ export type { EmptyHintMode, Locale, Messages, Translator, Theme } from './core/index.js';
package/lib/index.mjs CHANGED
@@ -1,15 +1,18 @@
1
- import { D as s, I as i, K as r, i as l, M as o, N as P, Q as E, q as F, O as n, P as t, U as d, u as m } from "./chunks/index-DZZN3kYi.mjs";
1
+ import { w as s, x as r, y as i, g as o, N as l, C as P, K as E, r as t, j as n, P as v, Z as w, a0 as F, b as d, u, a1 as m } from "./chunks/index-DBzyeU0G.mjs";
2
2
  export {
3
3
  s as FilePreviewContent,
4
- i as FilePreviewEmbed,
5
- r as FilePreviewModal,
6
- l as LOCALE_KEY,
7
- o as SUPPORTED_FILE_TYPES,
8
- P as VERSION,
9
- E as configurePdfWorker,
10
- F as getFileType,
11
- n as normalizeFile,
12
- t as normalizeFiles,
13
- d as provideLocale,
14
- m as useTranslator
4
+ r as FilePreviewEmbed,
5
+ i as FilePreviewModal,
6
+ o as LOCALE_KEY,
7
+ l as PreviewRequestError,
8
+ P as SUPPORTED_FILE_TYPES,
9
+ E as VERSION,
10
+ t as configurePdfWorker,
11
+ n as getFileType,
12
+ v as normalizeFile,
13
+ w as normalizeFiles,
14
+ F as provideLocale,
15
+ d as usePreviewEvents,
16
+ u as useTranslator,
17
+ m as withHeaders
15
18
  };
@@ -1,4 +1,4 @@
1
- import type { ToolbarGroup } from '../toolbar.types';
1
+ import type { ToolbarGroup } from '../toolbar.types.js';
2
2
  type __VLS_Props = {
3
3
  url: string;
4
4
  fileName: string;
@@ -5,7 +5,7 @@ interface Props {
5
5
  baseUrl?: string;
6
6
  }
7
7
  declare const _default: import("vue").DefineComponent<Props, {
8
- getToolbarGroups: () => import("../toolbar.types").ToolbarGroup[];
8
+ getToolbarGroups: () => import("../toolbar.types.js").ToolbarGroup[];
9
9
  onToolbarChange?: (listener: () => void) => (() => void);
10
10
  }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
11
11
  export default _default;
@@ -1,5 +1,5 @@
1
- import type { ToolbarGroup } from '../toolbar.types';
2
- import type { Translator } from '@eternalheart/file-preview-core';
1
+ import type { ToolbarGroup } from '../toolbar.types.js';
2
+ import type { Translator } from '../../core/index.js';
3
3
  export interface CadToolbarContext {
4
4
  cadRef: {
5
5
  resetView: () => void;
@@ -1,4 +1,4 @@
1
- import type { ToolbarGroup } from '../toolbar.types';
1
+ import type { ToolbarGroup } from '../toolbar.types.js';
2
2
  type __VLS_Props = {
3
3
  url: string;
4
4
  fileName: string;
@@ -1,4 +1,4 @@
1
- import type { ToolbarGroup } from '../toolbar.types';
1
+ import type { ToolbarGroup } from '../toolbar.types.js';
2
2
  type __VLS_Props = {
3
3
  url: string;
4
4
  };
@@ -1,4 +1,4 @@
1
- import type { ToolbarGroup } from '../toolbar.types';
1
+ import type { ToolbarGroup } from '../toolbar.types.js';
2
2
  type __VLS_Props = {
3
3
  url: string;
4
4
  };
@@ -1,4 +1,4 @@
1
- import type { ToolbarGroup } from '../toolbar.types';
1
+ import type { ToolbarGroup } from '../toolbar.types.js';
2
2
  type __VLS_Props = {
3
3
  url: string;
4
4
  };
@@ -1,4 +1,4 @@
1
- import type { ToolbarGroup } from '../toolbar.types';
1
+ import type { ToolbarGroup } from '../toolbar.types.js';
2
2
  type __VLS_Props = {
3
3
  url: string;
4
4
  };
@@ -1,5 +1,5 @@
1
- import type { PreviewFile } from '@eternalheart/file-preview-core';
2
- import type { ToolbarGroup } from '../toolbar.types';
1
+ import type { PreviewFile } from '../../core/index.js';
2
+ import type { ToolbarGroup } from '../toolbar.types.js';
3
3
  type __VLS_Props = {
4
4
  url: string;
5
5
  fileSize?: number;
@@ -1,5 +1,5 @@
1
- import type { ToolbarGroup } from '../toolbar.types';
2
- import { type EmptyHintMode } from '@eternalheart/file-preview-core';
1
+ import type { ToolbarGroup } from '../toolbar.types.js';
2
+ import { type EmptyHintMode } from '../../core/index.js';
3
3
  declare const _default: import("vue").DefineComponent<{
4
4
  url: string;
5
5
  fileName: string;
@@ -1,4 +1,4 @@
1
- import type { ToolbarGroup } from '../toolbar.types';
1
+ import type { ToolbarGroup } from '../toolbar.types.js';
2
2
  import 'katex/dist/katex.min.css';
3
3
  type __VLS_Props = {
4
4
  url: string;
@@ -1,5 +1,5 @@
1
1
  import 'foliate-js/view.js';
2
- import type { ToolbarGroup } from '../toolbar.types';
2
+ import type { ToolbarGroup } from '../toolbar.types.js';
3
3
  declare const _default: import("vue").DefineComponent<{
4
4
  url: string;
5
5
  }, {
@@ -1,4 +1,4 @@
1
- import type { ToolbarGroup } from '../toolbar.types';
1
+ import type { ToolbarGroup } from '../toolbar.types.js';
2
2
  type __VLS_Props = {
3
3
  url: string;
4
4
  };
@@ -1,4 +1,4 @@
1
- import type { ToolbarGroup } from '../toolbar.types';
1
+ import type { ToolbarGroup } from '../toolbar.types.js';
2
2
  type __VLS_Props = {
3
3
  url: string;
4
4
  };
@@ -1,4 +1,4 @@
1
- import type { ToolbarGroup } from '../toolbar.types';
1
+ import type { ToolbarGroup } from '../toolbar.types.js';
2
2
  type __VLS_Props = {
3
3
  url: string;
4
4
  };
@@ -1,5 +1,5 @@
1
- import { type EmptyHintMode } from '@eternalheart/file-preview-core';
2
- import type { ToolbarGroup } from '../toolbar.types';
1
+ import { type EmptyHintMode } from '../../core/index.js';
2
+ import type { ToolbarGroup } from '../toolbar.types.js';
3
3
  type __VLS_Props = {
4
4
  url: string;
5
5
  tiled?: boolean;
@@ -1,4 +1,4 @@
1
- import type { ToolbarGroup } from '../toolbar.types';
1
+ import type { ToolbarGroup } from '../toolbar.types.js';
2
2
  type __VLS_Props = {
3
3
  url: string;
4
4
  fileName: string;
@@ -1,5 +1,5 @@
1
- import { type EmptyHintMode } from '@eternalheart/file-preview-core';
2
- import type { ToolbarGroup } from '../toolbar.types';
1
+ import { type EmptyHintMode } from '../../core/index.js';
2
+ import type { ToolbarGroup } from '../toolbar.types.js';
3
3
  type __VLS_Props = {
4
4
  url: string;
5
5
  fileName: string;
@@ -1,4 +1,4 @@
1
- import type { ToolbarGroup } from '../toolbar.types';
1
+ import type { ToolbarGroup } from '../toolbar.types.js';
2
2
  type __VLS_Props = {
3
3
  fileName: string;
4
4
  fileType: string;
@@ -1,4 +1,4 @@
1
- import type { ToolbarGroup } from '../toolbar.types';
1
+ import type { ToolbarGroup } from '../toolbar.types.js';
2
2
  import 'video.js/dist/video-js.css';
3
3
  type __VLS_Props = {
4
4
  url: string;
@@ -1,5 +1,5 @@
1
- import { type EmptyHintMode } from '@eternalheart/file-preview-core';
2
- import type { ToolbarGroup } from '../toolbar.types';
1
+ import { type EmptyHintMode } from '../../core/index.js';
2
+ import type { ToolbarGroup } from '../toolbar.types.js';
3
3
  type __VLS_Props = {
4
4
  url: string;
5
5
  /** 保留通用预览参数;空 Excel 始终展示默认工作簿。 */
@@ -1,4 +1,4 @@
1
- import type { ToolbarGroup } from '../toolbar.types';
1
+ import type { ToolbarGroup } from '../toolbar.types.js';
2
2
  type __VLS_Props = {
3
3
  url: string;
4
4
  fileName: string;
@@ -1,4 +1,4 @@
1
- import { type ZipTreeNode } from '@eternalheart/file-preview-core';
1
+ import { type ZipTreeNode } from '../../core/index.js';
2
2
  declare const _default: import("vue").DefineComponent<{
3
3
  node: ZipTreeNode;
4
4
  depth: number;
@@ -1,4 +1,4 @@
1
- import type { ToolbarGroup } from '../toolbar.types';
1
+ import type { ToolbarGroup } from '../toolbar.types.js';
2
2
  export interface ZipToolbarStats {
3
3
  files: number;
4
4
  dirs: number;
@@ -1,4 +1,4 @@
1
- import type { ToolbarGroup } from './toolbar.types';
1
+ import type { ToolbarGroup } from './toolbar.types.js';
2
2
  /**
3
3
  * 渲染器统一接口
4
4
  * 所有渲染器通过 defineExpose 暴露此接口,让主组件获取工具栏配置
@@ -1,5 +1,5 @@
1
1
  import type { Component } from 'vue';
2
- import type { EmptyHintMode, FileType, PreviewFile } from '@eternalheart/file-preview-core';
2
+ import type { EmptyHintMode, FileType, PreviewFile } from '../core/index.js';
3
3
  /**
4
4
  * 渲染器上下文:主组件传递给 getProps 的环境信息
5
5
  */
package/lib/types.d.ts CHANGED
@@ -1,7 +1,7 @@
1
- export type { PreviewFile, PreviewFileLink, PreviewFileInput, FileType, PreviewState, CustomRendererEventPayload, RequestHandler, RequestInitFactory, RequestOptions, Fetcher, ShouldFetchAsBlob, } from '@eternalheart/file-preview-core';
2
- import type { PreviewFile, Locale, Translator } from '@eternalheart/file-preview-core';
1
+ export type { PreviewFile, PreviewFileLink, PreviewFileInput, FileType, PreviewState, CustomRendererEventPayload, RequestHandler, RequestInitFactory, RequestOptions, Fetcher, ShouldFetchAsBlob, FileContent, FileLoader, } from './core/index.js';
2
+ import type { PreviewFile, Locale, Translator } from './core/index.js';
3
3
  import type { Component, VNode } from 'vue';
4
- import type { ToolbarGroup } from './renderers/toolbar.types';
4
+ import type { ToolbarGroup } from './renderers/toolbar.types.js';
5
5
  /**
6
6
  * 工具栏自定义动作
7
7
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eternalheart/vue-file-preview",
3
- "version": "1.6.13",
3
+ "version": "1.7.1",
4
4
  "description": "A modern, feature-rich file preview component for Vue 3 with support for images, videos, audio, PDFs, Office documents (Word, Excel, PowerPoint), Markdown, and code files.",
5
5
  "type": "module",
6
6
  "main": "./lib/index.cjs",
@@ -59,7 +59,7 @@
59
59
  "scripts": {
60
60
  "build:esm": "vite build --mode esm",
61
61
  "build:cjs": "vite build --mode cjs",
62
- "build": "pnpm --filter @eternalheart/file-preview-core build && pnpm build:esm && pnpm build:cjs && vue-tsc --project tsconfig.json --emitDeclarationOnly",
62
+ "build": "pnpm --filter @eternalheart/file-preview-core build && pnpm build:esm && pnpm build:cjs && vue-tsc --project tsconfig.json --emitDeclarationOnly && node ../../scripts/patch-lib-types.mjs vue-file-preview",
63
63
  "dev": "vite build --mode esm --watch --emptyOutDir false",
64
64
  "prepublishOnly": "pnpm build",
65
65
  "version:patch": "npm version patch",