@eternalheart/react-file-preview 1.0.4 → 1.1.0

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 CHANGED
@@ -245,7 +245,7 @@ const files = [
245
245
 
246
246
  ### Images
247
247
  - **Formats**: JPG, PNG, GIF, WebP, SVG, BMP, ICO
248
- - **Features**: Zoom (0.5x - 5x), rotate, drag, mouse wheel zoom, double-click reset
248
+ - **Features**: Zoom (0.1x - 10x), rotate, drag, mouse wheel zoom, double-click reset
249
249
 
250
250
  ### Videos
251
251
  - **Formats**: MP4, WebM, OGG, MOV, AVI, MKV, M4V, 3GP, FLV
@@ -373,6 +373,18 @@ The component is built with Tailwind CSS. You can customize styles by overriding
373
373
 
374
374
  - [Online Demo](https://wh131462.github.io/react-file-preview) - Live demo
375
375
 
376
+ ## 🤖 Context7 Support
377
+
378
+ This project supports [Context7](https://context7.com) MCP Server. If you are using AI coding assistants (such as Claude Code, Cursor, etc.), you can configure the Context7 MCP Server to get the latest documentation and code examples for `@eternalheart/react-file-preview`, enabling a better AI-assisted development experience.
379
+
380
+ ### How to Use
381
+
382
+ 1. Add the Context7 MCP Server to your AI tool configuration
383
+ 2. When interacting with AI, Context7 will automatically provide up-to-date API docs and usage examples for this library
384
+ 3. Get more accurate code suggestions and answers without manually looking up documentation
385
+
386
+ > For more details on configuring Context7, please visit [Context7 official documentation](https://github.com/upstash/context7).
387
+
376
388
  ## 📦 Package Information
377
389
 
378
390
  ### Bundle Size
package/README.zh-CN.md CHANGED
@@ -243,7 +243,7 @@ const files = [
243
243
 
244
244
  ### 图片
245
245
  - **格式**: JPG, PNG, GIF, WebP, SVG, BMP, ICO
246
- - **功能**: 缩放 (0.5x - 5x)、旋转、拖拽、滚轮缩放、双击重置
246
+ - **功能**: 缩放 (0.1x - 10x)、旋转、拖拽、滚轮缩放、双击重置
247
247
 
248
248
  ### 视频
249
249
  - **格式**: MP4, WebM, OGG, MOV, AVI, MKV, M4V, 3GP, FLV
@@ -371,6 +371,18 @@ const files = [
371
371
 
372
372
  - [在线演示](https://wh131462.github.io/react-file-preview) - 在线 Demo
373
373
 
374
+ ## 🤖 Context7 支持
375
+
376
+ 本项目支持 [Context7](https://context7.com) MCP Server。如果你正在使用 AI 编程助手(如 Claude Code、Cursor 等),可以配置 Context7 MCP Server 来获取 `@eternalheart/react-file-preview` 的最新文档和代码示例,从而获得更好的 AI 辅助开发体验。
377
+
378
+ ### 如何使用
379
+
380
+ 1. 将 Context7 MCP Server 添加到你的 AI 工具配置中
381
+ 2. 在与 AI 交互时,Context7 会自动提供本库的最新 API 文档和使用示例
382
+ 3. 无需手动查阅文档,即可获得更精准的代码建议和解答
383
+
384
+ > 更多关于 Context7 的配置方式,请访问 [Context7 官方文档](https://github.com/upstash/context7)。
385
+
374
386
  ## 📦 包信息
375
387
 
376
388
  ### 打包体积
@@ -1 +1 @@
1
- {"version":3,"file":"FilePreviewModal.d.ts","sourceRoot":"","sources":["../src/FilePreviewModal.tsx"],"names":[],"mappings":"AAgBA,OAAO,EAAe,gBAAgB,EAAY,cAAc,EAAE,MAAM,SAAS,CAAC;AAalF,UAAU,qBAAqB;IAC7B,KAAK,EAAE,gBAAgB,EAAE,CAAC;IAC1B,YAAY,EAAE,MAAM,CAAC;IACrB,MAAM,EAAE,OAAO,CAAC;IAChB,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,UAAU,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACrC,eAAe,CAAC,EAAE,cAAc,EAAE,CAAC;CACpC;AA6CD,eAAO,MAAM,gBAAgB,EAAE,KAAK,CAAC,EAAE,CAAC,qBAAqB,CA2W5D,CAAC"}
1
+ {"version":3,"file":"FilePreviewModal.d.ts","sourceRoot":"","sources":["../src/FilePreviewModal.tsx"],"names":[],"mappings":"AAgCA,OAAO,EAAe,gBAAgB,EAAY,cAAc,EAAE,MAAM,SAAS,CAAC;AAclF,UAAU,qBAAqB;IAC7B,KAAK,EAAE,gBAAgB,EAAE,CAAC;IAC1B,YAAY,EAAE,MAAM,CAAC;IACrB,MAAM,EAAE,OAAO,CAAC;IAChB,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,UAAU,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACrC,eAAe,CAAC,EAAE,cAAc,EAAE,CAAC;CACpC;AAgDD,eAAO,MAAM,gBAAgB,EAAE,KAAK,CAAC,EAAE,CAAC,qBAAqB,CA4c5D,CAAC"}