@sov3rain/nota 0.1.0 → 0.2.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.
@@ -0,0 +1 @@
1
+ :root{color:#18202f;font-synthesis:none;text-rendering:optimizelegibility;background:#f4f6f8;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif}*{box-sizing:border-box}body{min-width:320px;height:100vh;margin:0;overflow:hidden}button{color:#18202f;cursor:pointer;font:inherit;background:#fff;border:1px solid #c6ccd6;border-radius:6px;min-height:32px;padding:0 12px;font-weight:650}button:hover:not(:disabled){border-color:#7a8799}button:disabled{cursor:not-allowed;opacity:.55}button.primary{color:#fff;background:#215f88;border-color:#215f88}button.done{color:#fff;background:#1a6b3c;border-color:#1a6b3c}button.accept-plan{color:#fff;background:#28714a;border-color:#28714a}button.accept-plan:hover:not(:disabled){background:#1f5a3a;border-color:#1f5a3a}button.done:hover:not(:disabled){background:#145230;border-color:#145230}.app-shell{flex-direction:column;height:100vh;display:flex;overflow:hidden}.topbar{background:#fff;border-bottom:1px solid #d9dee7;justify-content:space-between;align-items:center;gap:16px;padding:10px 20px;display:flex}.eyebrow{color:#647084;text-transform:uppercase;margin:0 0 4px;font-size:12px;font-weight:750}.topbar h1,.comment-pane-header h2{margin:0}.topbar h1{font-size:20px}.comment-pane-header h2{font-size:16px}.file-actions{align-items:center;gap:10px;display:flex}.copy-plan-button{min-width:132px}.hidden-input{display:none}.save-status{color:#647084;white-space:nowrap;font-size:13px;font-weight:650}.workspace{flex:1;grid-template-columns:minmax(0,1fr) minmax(280px,360px);min-height:0;display:grid;overflow:hidden}.editor-pane,.comment-pane{min-width:0;min-height:0;padding:20px}.editor-pane{border-right:1px solid #d9dee7;flex-direction:column;display:flex}.editor-frame{background:#fff;border:1px solid #d9dee7;border-radius:8px;flex:1;width:100%;max-width:90ch;min-height:0;margin:0 auto;overflow:auto}.tiptap{outline:none;min-height:100%;padding:28px}.tiptap>:first-child{margin-top:0}.tiptap p{line-height:1.65}.tiptap h1,.tiptap h2,.tiptap h3,.tiptap h4,.tiptap h5,.tiptap h6{color:#121a27;margin:1.4em 0 .55em;font-weight:750;line-height:1.25}.tiptap h1{font-size:2rem}.tiptap h2{font-size:1.6rem}.tiptap h3{font-size:1.35rem}.tiptap h4{font-size:1.15rem}.tiptap h5{font-size:1rem}.tiptap h6{color:#48556a;text-transform:uppercase;font-size:.9rem}.tiptap code{color:#202b3c;background:#eef2f6;border-radius:4px;padding:2px 4px;font-family:Cascadia Code,SFMono-Regular,Consolas,Liberation Mono,monospace;font-size:.9em}.tiptap pre{color:#f5f7fb;background:#18202f;border:1px solid #2d3748;border-radius:8px;margin:18px 0;padding:14px 16px;line-height:1.6;overflow-x:auto}.tiptap pre code{color:inherit;white-space:pre;background:0 0;border-radius:0;padding:0;font-size:13px;display:block}.tiptap mark[data-comment]{cursor:text;background:#fff0a6;border-bottom:2px solid #d29a1f;border-radius:3px;padding:1px 2px}.tiptap .pending-annotation{background:#d8ebff;border-bottom:2px solid #3978b8;border-radius:3px;padding:1px 2px}.tiptap pre mark[data-comment],.tiptap pre .pending-annotation{color:#18202f}.comment-pane{background:#fbfcfd;flex-direction:column;gap:16px;display:flex;overflow:hidden}.comment-pane-header{justify-content:space-between;align-items:center;display:flex}.comment-pane-actions{align-items:center;gap:8px;display:flex}.comment-pane-header span{color:#48556a;text-align:center;background:#e7ecf2;border-radius:999px;min-width:28px;padding:4px 8px;font-size:12px;font-weight:700}.small-button{min-height:32px;padding:0 10px;font-size:13px}.comment-list{flex-direction:column;flex:1;gap:12px;min-height:0;padding-right:2px;display:flex;overflow:auto}.comment-item{background:#fff;border:1px solid #d9dee7;border-radius:8px;flex-direction:column;gap:10px;padding:12px;display:flex}.comment-item.active{border-color:#215f88;box-shadow:0 0 0 3px #215f8824}.comment-item-header{align-items:flex-start;gap:8px;display:flex}.comment-target{color:#3d3320;text-align:left;text-overflow:ellipsis;white-space:nowrap;background:#f7f2d0;border:0;flex:1;min-width:0;min-height:0;padding:8px;font-size:13px;font-weight:700;line-height:1.35;display:block;overflow:hidden}.global-comment-target{color:#25455f;background:#e8f1f8}.delete-comment-button{color:#8f2d2d;flex:none;min-height:30px;padding:0 8px;font-size:12px}.delete-comment-button:hover:not(:disabled){border-color:#b24545}textarea{color:#18202f;font:inherit;resize:vertical;border:1px solid #c6ccd6;border-radius:8px;width:100%;min-height:96px;padding:12px;line-height:1.5}textarea:focus{border-color:#215f88;outline:3px solid #215f882e}.empty-state{color:#647084;margin:0;line-height:1.5}.modal-backdrop{z-index:20;background:#121a2775;justify-content:center;align-items:center;padding:20px;display:flex;position:fixed;inset:0}.modal{background:#fff;border-radius:8px;flex-direction:column;gap:14px;width:min(100%,520px);max-width:520px;padding:20px;display:flex;box-shadow:0 24px 80px #121a2747}.modal textarea{min-height:180px}.modal-actions{justify-content:flex-end;gap:10px;display:flex}@media (width<=800px){.topbar{flex-direction:column;align-items:flex-start}.workspace{grid-template-rows:minmax(0,1fr) minmax(220px,36vh);grid-template-columns:1fr}.editor-pane{border-right:0}.comment-pane{border-top:1px solid #d9dee7}}
package/dist/index.html CHANGED
@@ -1,14 +1,14 @@
1
- <!doctype html>
2
- <html lang="en">
3
- <head>
4
- <meta charset="UTF-8" />
5
- <link rel="icon" type="image/svg+xml" href="/favicon.svg" />
6
- <meta name="viewport" content="width=device-width, initial-scale=1.0" />
7
- <title>nota</title>
8
- <script type="module" crossorigin src="/assets/index-DxtyGuqN.js"></script>
9
- <link rel="stylesheet" crossorigin href="/assets/index-47nROFLI.css">
10
- </head>
11
- <body>
12
- <div id="app"></div>
13
- </body>
14
- </html>
1
+ <!doctype html>
2
+ <html lang="en">
3
+ <head>
4
+ <meta charset="UTF-8" />
5
+ <link rel="icon" type="image/svg+xml" href="/favicon.svg" />
6
+ <meta name="viewport" content="width=device-width, initial-scale=1.0" />
7
+ <title>nota</title>
8
+ <script type="module" crossorigin src="/assets/index-Ch1jViQV.js"></script>
9
+ <link rel="stylesheet" crossorigin href="/assets/index-DdXUmUCC.css">
10
+ </head>
11
+ <body>
12
+ <div id="app"></div>
13
+ </body>
14
+ </html>
package/package.json CHANGED
@@ -1,56 +1,60 @@
1
- {
2
- "name": "@sov3rain/nota",
3
- "version": "0.1.0",
4
- "license": "MIT",
5
- "type": "module",
6
- "bin": {
7
- "nota": "bin/nota.mjs"
8
- },
9
- "files": [
10
- "bin",
11
- "dist",
12
- "README.md",
13
- "LICENSE"
14
- ],
15
- "scripts": {
16
- "annotate": "npm run build && node bin/nota.mjs",
17
- "dev": "vite",
18
- "build": "vite build",
19
- "preview": "vite preview",
20
- "format": "prettier --write .",
21
- "format:check": "prettier --check .",
22
- "lint": "eslint .",
23
- "lint:fix": "eslint . --fix",
24
- "test": "vitest run",
25
- "test:coverage": "vitest run --coverage --coverage.reporter=json --coverage.reporter=text",
26
- "analyze:fallow": "fallow --skip health",
27
- "analyze:fallow:health": "fallow health",
28
- "analyze:fallow:health:coverage": "npm run test:coverage && fallow health --coverage coverage/coverage-final.json",
29
- "analyze:fallow:fix": "fallow fix --yes"
30
- },
31
- "devDependencies": {
32
- "@eslint/js": "^10.0.1",
33
- "@floating-ui/dom": "^1.7.6",
34
- "@sveltejs/vite-plugin-svelte": "^7.1.2",
35
- "@tiptap/core": "^3.27.1",
36
- "@tiptap/extension-code-block": "^3.27.1",
37
- "@tiptap/pm": "^3.27.1",
38
- "@tiptap/starter-kit": "^3.27.1",
39
- "@tiptap/svelte": "npm:svelte-tiptap@^3.0.1",
40
- "@types/markdown-it": "^14.1.2",
41
- "@vitest/coverage-v8": "^4.1.9",
42
- "eslint": "^10.6.0",
43
- "eslint-plugin-svelte": "^3.20.0",
44
- "fallow": "^2.104.0",
45
- "globals": "^17.7.0",
46
- "jsdom": "^29.1.1",
47
- "markdown-it": "^14.3.0",
48
- "prettier": "^3.9.4",
49
- "prettier-plugin-svelte": "^4.1.1",
50
- "svelte": "^5.56.4",
51
- "typescript": "~6.0.2",
52
- "typescript-eslint": "^8.62.1",
53
- "vite": "^8.1.1",
54
- "vitest": "^4.1.9"
55
- }
56
- }
1
+ {
2
+ "name": "@sov3rain/nota",
3
+ "version": "0.2.1",
4
+ "license": "MIT",
5
+ "type": "module",
6
+ "bin": {
7
+ "nota": "bin/nota.mjs"
8
+ },
9
+ "files": [
10
+ "bin",
11
+ "dist",
12
+ "README.md",
13
+ "LICENSE"
14
+ ],
15
+ "scripts": {
16
+ "annotate": "npm run build && node bin/nota.mjs",
17
+ "dev": "vite",
18
+ "build": "vite build",
19
+ "preview": "vite preview",
20
+ "format": "prettier --write .",
21
+ "format:check": "prettier --check .",
22
+ "lint": "eslint .",
23
+ "lint:fix": "eslint . --fix",
24
+ "test": "vitest run",
25
+ "test:coverage": "vitest run --coverage --coverage.reporter=json --coverage.reporter=text",
26
+ "analyze:fallow": "fallow --skip health",
27
+ "analyze:fallow:health": "fallow health",
28
+ "analyze:fallow:health:coverage": "npm run test:coverage && fallow health --coverage coverage/coverage-final.json",
29
+ "analyze:fallow:fix": "fallow fix --yes"
30
+ },
31
+ "dependencies": {
32
+ "@inquirer/prompts": "^8.5.2"
33
+ },
34
+ "devDependencies": {
35
+ "@eslint/js": "^10.0.1",
36
+ "@floating-ui/dom": "^1.7.6",
37
+ "@sveltejs/vite-plugin-svelte": "^7.1.2",
38
+ "@tiptap/core": "^3.27.1",
39
+ "@tiptap/extension-code": "^3.27.1",
40
+ "@tiptap/extension-code-block": "^3.27.1",
41
+ "@tiptap/pm": "^3.27.1",
42
+ "@tiptap/starter-kit": "^3.27.1",
43
+ "@tiptap/svelte": "npm:svelte-tiptap@^3.0.1",
44
+ "@types/markdown-it": "^14.1.2",
45
+ "@vitest/coverage-v8": "^4.1.9",
46
+ "eslint": "^10.6.0",
47
+ "eslint-plugin-svelte": "^3.20.0",
48
+ "fallow": "^2.104.0",
49
+ "globals": "^17.7.0",
50
+ "jsdom": "^29.1.1",
51
+ "markdown-it": "^14.3.0",
52
+ "prettier": "^3.9.4",
53
+ "prettier-plugin-svelte": "^4.1.1",
54
+ "svelte": "^5.56.4",
55
+ "typescript": "~6.0.2",
56
+ "typescript-eslint": "^8.62.1",
57
+ "vite": "^8.1.1",
58
+ "vitest": "^4.1.9"
59
+ }
60
+ }
@@ -1 +0,0 @@
1
- :root{color:#18202f;font-synthesis:none;text-rendering:optimizelegibility;background:#f4f6f8;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif}*{box-sizing:border-box}body{min-width:320px;height:100vh;margin:0;overflow:hidden}button{color:#18202f;cursor:pointer;font:inherit;background:#fff;border:1px solid #c6ccd6;border-radius:6px;min-height:38px;padding:0 14px;font-weight:650}button:hover:not(:disabled){border-color:#7a8799}button:disabled{cursor:not-allowed;opacity:.55}button.primary{color:#fff;background:#215f88;border-color:#215f88}button.done{color:#fff;background:#1a6b3c;border-color:#1a6b3c}button.done:hover:not(:disabled){background:#145230;border-color:#145230}.app-shell{flex-direction:column;height:100vh;display:flex;overflow:hidden}.topbar{background:#fff;border-bottom:1px solid #d9dee7;justify-content:space-between;align-items:center;gap:24px;padding:18px 24px;display:flex}.eyebrow{color:#647084;text-transform:uppercase;margin:0 0 4px;font-size:12px;font-weight:750}h1,h2{margin:0}h1{font-size:24px}h2{font-size:16px}.file-actions{align-items:center;gap:10px;display:flex}.copy-plan-button{min-width:132px}.hidden-input{display:none}.save-status{color:#647084;white-space:nowrap;font-size:13px;font-weight:650}.workspace{flex:1;grid-template-columns:minmax(0,1fr) minmax(280px,360px);min-height:0;display:grid;overflow:hidden}.editor-pane,.comment-pane{min-width:0;min-height:0;padding:20px}.editor-pane{border-right:1px solid #d9dee7;flex-direction:column;display:flex}.editor-frame{background:#fff;border:1px solid #d9dee7;border-radius:8px;flex:1;min-height:0;overflow:auto}.tiptap{outline:none;min-height:100%;padding:28px}.tiptap>:first-child{margin-top:0}.tiptap p{line-height:1.65}.tiptap code{color:#202b3c;background:#eef2f6;border-radius:4px;padding:2px 4px;font-family:Cascadia Code,SFMono-Regular,Consolas,Liberation Mono,monospace;font-size:.9em}.tiptap pre{color:#f5f7fb;background:#18202f;border:1px solid #2d3748;border-radius:8px;margin:18px 0;padding:14px 16px;line-height:1.6;overflow-x:auto}.tiptap pre code{color:inherit;white-space:pre;background:0 0;border-radius:0;padding:0;font-size:13px;display:block}.tiptap mark[data-comment]{cursor:text;background:#fff0a6;border-bottom:2px solid #d29a1f;border-radius:3px;padding:1px 2px}.tiptap .pending-annotation{background:#d8ebff;border-bottom:2px solid #3978b8;border-radius:3px;padding:1px 2px}.tiptap pre mark[data-comment],.tiptap pre .pending-annotation{color:#18202f}.comment-pane{background:#fbfcfd;flex-direction:column;gap:16px;display:flex;overflow:hidden}.comment-pane-header{justify-content:space-between;align-items:center;display:flex}.comment-pane-actions{align-items:center;gap:8px;display:flex}.comment-pane-header span{color:#48556a;text-align:center;background:#e7ecf2;border-radius:999px;min-width:28px;padding:4px 8px;font-size:12px;font-weight:700}.small-button{min-height:32px;padding:0 10px;font-size:13px}.comment-list{flex-direction:column;flex:1;gap:12px;min-height:0;padding-right:2px;display:flex;overflow:auto}.comment-item{background:#fff;border:1px solid #d9dee7;border-radius:8px;flex-direction:column;gap:10px;padding:12px;display:flex}.comment-item.active{border-color:#215f88;box-shadow:0 0 0 3px #215f8824}.comment-item-header{align-items:flex-start;gap:8px;display:flex}.comment-target{color:#3d3320;text-align:left;text-overflow:ellipsis;white-space:nowrap;background:#f7f2d0;border:0;flex:1;min-width:0;min-height:0;padding:8px;font-size:13px;font-weight:700;line-height:1.35;display:block;overflow:hidden}.global-comment-target{color:#25455f;background:#e8f1f8}.delete-comment-button{color:#8f2d2d;flex:none;min-height:30px;padding:0 8px;font-size:12px}.delete-comment-button:hover:not(:disabled){border-color:#b24545}textarea{color:#18202f;font:inherit;resize:vertical;border:1px solid #c6ccd6;border-radius:8px;width:100%;min-height:96px;padding:12px;line-height:1.5}textarea:focus{border-color:#215f88;outline:3px solid #215f882e}.empty-state{color:#647084;margin:0;line-height:1.5}.modal-backdrop{z-index:20;background:#121a2775;justify-content:center;align-items:center;padding:20px;display:flex;position:fixed;inset:0}.modal{background:#fff;border-radius:8px;flex-direction:column;gap:14px;width:min(100%,520px);max-width:520px;padding:20px;display:flex;box-shadow:0 24px 80px #121a2747}.modal textarea{min-height:180px}.modal-actions{justify-content:flex-end;gap:10px;display:flex}@media (width<=800px){.topbar{flex-direction:column;align-items:flex-start}.workspace{grid-template-rows:minmax(0,1fr) minmax(220px,36vh);grid-template-columns:1fr}.editor-pane{border-right:0}.comment-pane{border-top:1px solid #d9dee7}}