@chenchaolong/plugin-mineru-chen 1.0.7 → 1.0.8
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/lib/types.d.ts +1 -1
- package/dist/lib/types.d.ts.map +1 -1
- package/dist/lib/types.js +6 -7
- package/package.json +1 -4
package/dist/lib/types.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export declare const MinerU = "mineru";
|
|
2
|
-
export declare const icon
|
|
2
|
+
export declare const icon = "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\" fill=\"none\">\n <rect x=\"4\" y=\"4\" width=\"16\" height=\"20\" rx=\"2\" fill=\"#4a90e2\"/>\n <path d=\"M7 8h10M7 12h10M7 16h6\" stroke=\"white\" stroke-width=\"1.5\" stroke-linecap=\"round\"/>\n <circle cx=\"17\" cy=\"7\" r=\"2\" fill=\"#ffd700\"/>\n</svg>";
|
|
3
3
|
export declare const SUPPORTED_EXTENSIONS: string[];
|
|
4
4
|
export declare const SUPPORTED_IMAGE_EXTENSIONS: string[];
|
|
5
5
|
export declare const MAX_RETRIES = 50;
|
package/dist/lib/types.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/lib/types.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/lib/types.ts"],"names":[],"mappings":"AACA,eAAO,MAAM,MAAM,WAAW,CAAA;AAG9B,eAAO,MAAM,IAAI,2UAIV,CAAA;AAGP,eAAO,MAAM,oBAAoB,UAAsE,CAAA;AAGvG,eAAO,MAAM,0BAA0B,UAA4B,CAAA;AAGnE,eAAO,MAAM,WAAW,KAAK,CAAA;AAG7B,eAAO,MAAM,eAAe,uBAAuB,CAAA;AACnD,eAAO,MAAM,YAAY,uZAAuZ,CAAA;AAGhb,eAAO,MAAM,mBAAmB,EAAE,WAGjC,CAAA;AAGD,MAAM,WAAW,WAAW;IAC1B,QAAQ,EAAE,MAAM,CAAA;IAChB,KAAK,EAAE,MAAM,CAAA;CACd;AAGD,MAAM,WAAW,UAAU;IACzB,SAAS,EAAE,MAAM,CAAA;IACjB,WAAW,EAAE,KAAK,CAAC,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC,CAAA;IACvC,MAAM,EAAE,KAAK,CAAC,GAAG,CAAC,CAAA;IAClB,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,YAAY,CAAC,EAAE,MAAM,CAAA;CACtB;AAGD,MAAM,WAAW,SAAS;IACxB,QAAQ,EAAE,MAAM,CAAA;IAChB,QAAQ,EAAE,MAAM,CAAA;IAChB,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,QAAQ,EAAE,MAAM,CAAA;IAChB,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB"}
|
package/dist/lib/types.js
CHANGED
|
@@ -1,12 +1,11 @@
|
|
|
1
|
-
import { readFileSync } from 'fs';
|
|
2
|
-
import { fileURLToPath } from 'url';
|
|
3
|
-
import { dirname, join } from 'path';
|
|
4
1
|
// MinerU plugin identifier
|
|
5
2
|
export const MinerU = 'mineru';
|
|
6
|
-
// SVG icon for mineru plugin (
|
|
7
|
-
const
|
|
8
|
-
|
|
9
|
-
|
|
3
|
+
// SVG icon for mineru plugin (embedded directly like zip plugin)
|
|
4
|
+
export const icon = `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none">
|
|
5
|
+
<rect x="4" y="4" width="16" height="20" rx="2" fill="#4a90e2"/>
|
|
6
|
+
<path d="M7 8h10M7 12h10M7 16h6" stroke="white" stroke-width="1.5" stroke-linecap="round"/>
|
|
7
|
+
<circle cx="17" cy="7" r="2" fill="#ffd700"/>
|
|
8
|
+
</svg>`;
|
|
10
9
|
// Supported file extensions
|
|
11
10
|
export const SUPPORTED_EXTENSIONS = ['.pdf', '.doc', '.docx', '.ppt', '.pptx', '.png', '.jpg', '.jpeg'];
|
|
12
11
|
// Supported image extensions
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@chenchaolong/plugin-mineru-chen",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.8",
|
|
4
4
|
"license": "AGPL-3.0",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -26,9 +26,6 @@
|
|
|
26
26
|
"dist",
|
|
27
27
|
"!**/*.tsbuildinfo"
|
|
28
28
|
],
|
|
29
|
-
"scripts": {
|
|
30
|
-
"prepack": "node ./scripts/copy-assets.mjs"
|
|
31
|
-
},
|
|
32
29
|
"dependencies": {
|
|
33
30
|
"jszip": "^3.10.1",
|
|
34
31
|
"tslib": "^2.3.0"
|