@designfever/web-review-kit 0.7.3 → 0.8.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.
- package/README.md +8 -4
- package/dist/{chunk-RPVLRULC.js → chunk-4ZP7B7R6.js} +2345 -1786
- package/dist/chunk-4ZP7B7R6.js.map +1 -0
- package/dist/index.cjs +2348 -1793
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +11 -4
- package/dist/index.d.ts +11 -4
- package/dist/index.js +8 -2
- package/dist/index.js.map +1 -1
- package/dist/react-shell.cjs +14936 -11239
- package/dist/react-shell.cjs.map +1 -1
- package/dist/react-shell.d.cts +6 -4
- package/dist/react-shell.d.ts +6 -4
- package/dist/react-shell.js +11615 -8399
- package/dist/react-shell.js.map +1 -1
- package/dist/{types-DT9Z66mV.d.cts → types-BM8E7BFV.d.cts} +63 -3
- package/dist/{types-DT9Z66mV.d.ts → types-BM8E7BFV.d.ts} +63 -3
- package/dist/vite.cjs +344 -48
- package/dist/vite.cjs.map +1 -1
- package/dist/vite.d.cts +2 -0
- package/dist/vite.d.ts +2 -0
- package/dist/vite.js +345 -49
- package/dist/vite.js.map +1 -1
- package/docs/README.md +20 -13
- package/docs/adapters.md +27 -4
- package/docs/adaptor.sample.ts +53 -3
- package/docs/architecture.md +117 -3
- package/docs/figma-overlay.md +51 -0
- package/docs/grid-overlay.md +5 -0
- package/docs/installation.md +46 -8
- package/docs/release-notes-0.8.0.md +175 -0
- package/docs/release-notes-0.8.1.md +23 -0
- package/docs/testing.md +68 -0
- package/package.json +14 -5
- package/dist/chunk-RPVLRULC.js.map +0 -1
- package/docs/code-review-0.6.0.md +0 -232
- package/docs/figma-image-mvp-0.7.0.md +0 -330
package/README.md
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Designfever web page review overlay toolkit.
|
|
4
4
|
|
|
5
|
-
`@designfever/web-review-kit` adds a `/review` shell to a host project. The shell opens real project pages in an iframe, creates
|
|
5
|
+
`@designfever/web-review-kit` adds a `/review` shell to a host project. The shell opens real project pages in an iframe, creates DOM/area QA markers, restores deep links, and lets each project choose its own storage adapter.
|
|
6
6
|
|
|
7
7
|
## Package Role
|
|
8
8
|
|
|
@@ -20,20 +20,22 @@ This package does not own internal operator tools, private admin keys, or produc
|
|
|
20
20
|
|
|
21
21
|
## Docs
|
|
22
22
|
|
|
23
|
+
- [Docs index](docs/README.md): reading order, document roles, and release history.
|
|
23
24
|
- [Installation](docs/installation.md): install the package and mount `/review`.
|
|
24
25
|
- [.env.sample](.env.sample): copyable host project env template for local, Supabase, and source opening.
|
|
25
26
|
- [Adapter boundaries](docs/adapters.md): QA adapter vs Figma image store responsibilities.
|
|
27
|
+
- [Testing](docs/testing.md): Vitest adapter contract tests and local verification commands.
|
|
26
28
|
- [Custom adapter sample](docs/adaptor.sample.ts): starting point for host-owned remote adapters.
|
|
27
29
|
- [DB setup](docs/db-setup.md): optional Supabase `review_items` setup, RLS, presence notes, and validation.
|
|
28
30
|
- [Architecture and runtime logic](docs/architecture.md): core runtime, React shell, coordinate, anchor, and extension boundaries.
|
|
29
31
|
- [Figma overlay](docs/figma-overlay.md): how the shell toggles a host Figma overlay.
|
|
30
32
|
- [Grid overlay](docs/grid-overlay.md): how the shell toggles a host grid/helper overlay.
|
|
31
|
-
- [Release notes 0.
|
|
33
|
+
- [Release notes 0.8.1](docs/release-notes-0.8.1.md): QA prompt prefix, QA filtering, counters, tooltip, long-content, and outside marker fixes.
|
|
32
34
|
|
|
33
35
|
## Quick Start
|
|
34
36
|
|
|
35
37
|
```bash
|
|
36
|
-
pnpm add @designfever/web-review-kit react react-dom
|
|
38
|
+
pnpm add @designfever/web-review-kit react react-dom zustand
|
|
37
39
|
```
|
|
38
40
|
|
|
39
41
|
Minimal Vite route:
|
|
@@ -78,6 +80,7 @@ mountReviewShell({
|
|
|
78
80
|
remove: (id) => local.remove(id),
|
|
79
81
|
},
|
|
80
82
|
],
|
|
83
|
+
qaPrompt: 'Follow this project coding style before fixing the copied QA item.',
|
|
81
84
|
reviewPathPrefix: '/review',
|
|
82
85
|
});
|
|
83
86
|
```
|
|
@@ -156,7 +159,7 @@ export default defineConfig({
|
|
|
156
159
|
});
|
|
157
160
|
```
|
|
158
161
|
|
|
159
|
-
When source hints are available, hold `Option` over the review target to inspect source candidates from the DOM ancestry. Click the target to pin the candidate list, then choose a file to open. The side rail can
|
|
162
|
+
When source hints are available, hold `Option` over the review target to inspect source candidates from the DOM ancestry. Click the target to pin the candidate list, then choose a file to open. The source locator also reads TSX/JSX with the TypeScript parser when available and writes `data-wrk-source-component` for intrinsic JSX nodes, which helps the inspector prefer real component candidates over repeated wrapper primitives. For function component render paths, it also records the parent JSX call site so Source Tree can show where a component was used. The side rail can open a Source Tree panel with section/source/data links, parent usage links, live box metrics, text/font/media metadata, and class tags. DOM QA cards show a source action when the saved item has source hints. Source Tree filter/options, QA panel mode, and QA status filter are stored in browser localStorage. Keep these plugins disabled for production builds because they write source paths into the DOM.
|
|
160
163
|
|
|
161
164
|
In Vite/ESM hosts, source opening reads `VITE_REVIEW_SOURCE_ROOT`, `VITE_REVIEW_SOURCE_EDITOR`, and `VITE_REVIEW_SOURCE_URL_TEMPLATE` from the host env. Env values override matching `sourceRoot`, `sourceInspector.editor`, and `sourceInspector.urlTemplate` init values; init values still work as a fallback for existing projects and CommonJS consumers. Use `VITE_REVIEW_SOURCE_URL_TEMPLATE` only with `VITE_REVIEW_SOURCE_EDITOR=custom`; the template supports `{path}`, `{encodedPath}`, `{line}`, and `{column}`.
|
|
162
165
|
|
|
@@ -187,6 +190,7 @@ Useful checks:
|
|
|
187
190
|
|
|
188
191
|
```bash
|
|
189
192
|
pnpm typecheck
|
|
193
|
+
pnpm test
|
|
190
194
|
pnpm build
|
|
191
195
|
pnpm typecheck:dev
|
|
192
196
|
pnpm build:dev
|