@forsion/clip 0.0.0-stage → 2.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 +138 -2
- package/chrome-mv3/_locales/en/messages.json +17 -0
- package/chrome-mv3/_locales/zh_CN/messages.json +17 -0
- package/chrome-mv3/assets/App-CTFaMeAz.css +1 -0
- package/chrome-mv3/assets/document-export-Dk8vjRKk.css +1 -0
- package/chrome-mv3/assets/imageHosts-4UXWVpSw.css +1 -0
- package/chrome-mv3/background.js +162 -0
- package/chrome-mv3/chunks/App-CjD26llS.js +408 -0
- package/chrome-mv3/chunks/_virtual_wxt-html-plugins-DPbbfBKe.js +1 -0
- package/chrome-mv3/chunks/document-export-DNFinZCF.js +22 -0
- package/chrome-mv3/chunks/imageHosts-Cmp3E2vS.js +58 -0
- package/chrome-mv3/chunks/offscreen-CogL61qx.js +1 -0
- package/chrome-mv3/content-scripts/content.js +668 -0
- package/chrome-mv3/document-export.html +27 -0
- package/chrome-mv3/icon/128.png +0 -0
- package/chrome-mv3/icon/16.png +0 -0
- package/chrome-mv3/icon/32.png +0 -0
- package/chrome-mv3/icon/48.png +0 -0
- package/chrome-mv3/icon/logo.png +0 -0
- package/chrome-mv3/manifest.json +1 -0
- package/chrome-mv3/offscreen.html +3 -0
- package/chrome-mv3/options.html +16 -0
- package/chrome-mv3/sidepanel.html +16 -0
- package/package.json +54 -4
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
<!DOCTYPE html>
|
|
2
|
+
<html>
|
|
3
|
+
<head>
|
|
4
|
+
<meta charset="utf-8">
|
|
5
|
+
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
6
|
+
<meta name="referrer" content="no-referrer">
|
|
7
|
+
<title>Forsion Clip · Document export</title>
|
|
8
|
+
<script type="module" crossorigin src="/chunks/document-export-DNFinZCF.js"></script>
|
|
9
|
+
<link rel="modulepreload" crossorigin href="/chunks/_virtual_wxt-html-plugins-DPbbfBKe.js">
|
|
10
|
+
<link rel="modulepreload" crossorigin href="/chunks/imageHosts-Cmp3E2vS.js">
|
|
11
|
+
<link rel="stylesheet" crossorigin href="/assets/imageHosts-4UXWVpSw.css">
|
|
12
|
+
<link rel="stylesheet" crossorigin href="/assets/document-export-Dk8vjRKk.css">
|
|
13
|
+
</head>
|
|
14
|
+
<body>
|
|
15
|
+
<header class="export-toolbar">
|
|
16
|
+
<div><strong>Forsion Clip</strong><span id="view-label"></span></div>
|
|
17
|
+
<nav aria-label="Document export">
|
|
18
|
+
<label id="scale-label"><span></span><select id="scale"><option value="1">1×</option><option value="2">2×</option></select></label>
|
|
19
|
+
<button id="png" disabled></button>
|
|
20
|
+
<button id="print" disabled></button>
|
|
21
|
+
</nav>
|
|
22
|
+
</header>
|
|
23
|
+
<p id="status" role="status" aria-live="polite"></p>
|
|
24
|
+
<p id="warning" role="note" hidden></p>
|
|
25
|
+
<main><article id="document" aria-label="Document"></article></main>
|
|
26
|
+
</body>
|
|
27
|
+
</html>
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"manifest_version":3,"name":"__MSG_extensionName__","description":"__MSG_extensionDescription__","version":"2.1.0","icons":{"16":"icon/16.png","32":"icon/32.png","48":"icon/48.png","128":"icon/128.png"},"default_locale":"en","minimum_chrome_version":"116","key":"MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAv8lwWjSbyQExOi3CoHFIxn3I9WBZWSGorR1jCKA30VO0ivB5eMQnqxpNAlTI7EBzXBAdpOqICIdG55b9/8jYP4irSEy05QRI358D82v89v5PA6afcJgakg8ZUFttqMw9oK5m4W8pF/2ZZGUjPJwkUOJQrF4jwy65oaKh8nI2gnwZ1b6xVAy26D13s/iWbxemD9Vy3Ucc7oza24m2Vmb2O4LaoVNHaGAX3efOjJX6fdOb4Gn+99k3zVa1LmlZEuwjZ5Rnnqdud/WIiweh0PffZUJpgM0m1bUBVNIoMIHgh/IiWPVq2ue56ha1TPECO6pq/IWPrQeWzGmOr2Jn2uj4OQIDAQAB","action":{"default_title":"Forsion Clip"},"permissions":["sidePanel","storage","scripting","downloads","contextMenus","tabs","activeTab","clipboardWrite","offscreen","alarms","bookmarks","unlimitedStorage","tabGroups","debugger"],"host_permissions":["http://*/*","https://*/*"],"commands":{"open-sidepanel":{"suggested_key":{"default":"Ctrl+Shift+L","mac":"Command+Shift+L"},"description":"__MSG_openPanel__"},"quick-clip":{"suggested_key":{"default":"Ctrl+Shift+S","mac":"Command+Shift+S"},"description":"__MSG_quickClip__"},"open-options":{"suggested_key":{"default":"Ctrl+Shift+P","mac":"Command+Shift+P"},"description":"__MSG_openSettings__"}},"content_security_policy":{"extension_pages":"script-src 'self'; object-src 'none'; base-uri 'self'"},"background":{"service_worker":"background.js"},"options_ui":{"page":"options.html"},"side_panel":{"default_path":"sidepanel.html"},"content_scripts":[]}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
<!DOCTYPE html><html><head><meta charset="UTF-8"><title>Forsion Clip clipboard</title> <script type="module" crossorigin src="/chunks/offscreen-CogL61qx.js"></script>
|
|
2
|
+
<link rel="modulepreload" crossorigin href="/chunks/_virtual_wxt-html-plugins-DPbbfBKe.js">
|
|
3
|
+
</head><body></body></html>
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
<!DOCTYPE html>
|
|
2
|
+
<html>
|
|
3
|
+
<head>
|
|
4
|
+
<meta charset="utf-8">
|
|
5
|
+
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
6
|
+
<title>Forsion Clip · 设置</title>
|
|
7
|
+
<script type="module" crossorigin src="/chunks/_virtual_wxt-html-plugins-DPbbfBKe.js"></script>
|
|
8
|
+
<script type="module" crossorigin src="/chunks/imageHosts-Cmp3E2vS.js"></script>
|
|
9
|
+
<script type="module" crossorigin src="/chunks/App-CjD26llS.js"></script>
|
|
10
|
+
<link rel="stylesheet" crossorigin href="/assets/imageHosts-4UXWVpSw.css">
|
|
11
|
+
<link rel="stylesheet" crossorigin href="/assets/App-CTFaMeAz.css">
|
|
12
|
+
</head>
|
|
13
|
+
<body>
|
|
14
|
+
<div id="app"></div>
|
|
15
|
+
</body>
|
|
16
|
+
</html>
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
<!DOCTYPE html>
|
|
2
|
+
<html>
|
|
3
|
+
<head>
|
|
4
|
+
<meta charset="utf-8">
|
|
5
|
+
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
6
|
+
<title>Forsion Clip</title>
|
|
7
|
+
<script type="module" crossorigin src="/chunks/_virtual_wxt-html-plugins-DPbbfBKe.js"></script>
|
|
8
|
+
<script type="module" crossorigin src="/chunks/imageHosts-Cmp3E2vS.js"></script>
|
|
9
|
+
<script type="module" crossorigin src="/chunks/App-CjD26llS.js"></script>
|
|
10
|
+
<link rel="stylesheet" crossorigin href="/assets/imageHosts-4UXWVpSw.css">
|
|
11
|
+
<link rel="stylesheet" crossorigin href="/assets/App-CTFaMeAz.css">
|
|
12
|
+
</head>
|
|
13
|
+
<body>
|
|
14
|
+
<div id="app"></div>
|
|
15
|
+
</body>
|
|
16
|
+
</html>
|
package/package.json
CHANGED
|
@@ -1,6 +1,56 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@forsion/clip",
|
|
3
|
-
"
|
|
4
|
-
"
|
|
5
|
-
"
|
|
6
|
-
|
|
3
|
+
"description": "Forsion Clip: native browser capture, annotation and reading connected to Forsion accounts and vaults",
|
|
4
|
+
"version": "2.1.0",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"files": [
|
|
7
|
+
"chrome-mv3"
|
|
8
|
+
],
|
|
9
|
+
"publishConfig": {
|
|
10
|
+
"access": "public"
|
|
11
|
+
},
|
|
12
|
+
"scripts": {
|
|
13
|
+
"dev": "wxt",
|
|
14
|
+
"build": "npm run prepare:ui && wxt build",
|
|
15
|
+
"zip": "wxt zip",
|
|
16
|
+
"check": "vue-tsc --noEmit",
|
|
17
|
+
"test": "node --import tsx src/lib/selfcheck.test.ts && node --import tsx src/lib/extraction.test.ts && node --import tsx src/lib/integration.test.ts && node --import tsx src/lib/exports.test.ts && npm run test:core",
|
|
18
|
+
"prepare:ui": "node scripts/sync-genesis-ui.mjs",
|
|
19
|
+
"test:core": "node --import tsx --test tests/*.test.ts",
|
|
20
|
+
"package": "npm run build && wxt zip",
|
|
21
|
+
"prepare": "wxt prepare",
|
|
22
|
+
"prepack": "wxt build && rm -rf chrome-mv3 && cp -R .output/chrome-mv3 chrome-mv3"
|
|
23
|
+
},
|
|
24
|
+
"devDependencies": {
|
|
25
|
+
"@modelcontextprotocol/sdk": "^1.32.1",
|
|
26
|
+
"@types/chrome": "^0.0.280",
|
|
27
|
+
"@types/jsdom": "^30.0.0",
|
|
28
|
+
"@types/react": "^19.3.0",
|
|
29
|
+
"@types/react-dom": "^19.3.0",
|
|
30
|
+
"@types/turndown": "^5.0.0",
|
|
31
|
+
"@types/ws": "^8.18.2",
|
|
32
|
+
"@wxt-dev/module-vue": "^1.0.0",
|
|
33
|
+
"dayjs": "^1.11.0",
|
|
34
|
+
"defuddle": "^0.19.5",
|
|
35
|
+
"dompurify": "^3.1.0",
|
|
36
|
+
"esbuild": "^0.28.2",
|
|
37
|
+
"fflate": "^0.8.3",
|
|
38
|
+
"html2canvas": "1.4.1",
|
|
39
|
+
"jsdom": "^27.4.0",
|
|
40
|
+
"lucide-react": "^1.55.0",
|
|
41
|
+
"marked": "^14.0.0",
|
|
42
|
+
"mathml-to-latex": "^1.4.0",
|
|
43
|
+
"postcss": "^8.5.29",
|
|
44
|
+
"prettier": "^3.9.10",
|
|
45
|
+
"react": "^19.3.0",
|
|
46
|
+
"react-dom": "^19.3.0",
|
|
47
|
+
"tsx": "^4.19.0",
|
|
48
|
+
"turndown": "^7.2.0",
|
|
49
|
+
"typescript": "^5.6.0",
|
|
50
|
+
"vue": "^3.5.0",
|
|
51
|
+
"vue-tsc": "^2.0.0",
|
|
52
|
+
"ws": "^8.22.0",
|
|
53
|
+
"wxt": "^0.19.0",
|
|
54
|
+
"zod": "^4.6.7"
|
|
55
|
+
}
|
|
56
|
+
}
|