@designfever/web-review-kit 0.7.3 → 0.8.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
@@ -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 QA notes/area/DOM markers, restores deep links, and lets each project choose its own storage adapter.
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.7.3](docs/release-notes-0.7.3.md): latest endpoint Figma image store changes.
33
+ - [Release notes 0.8.0](docs/release-notes-0.8.0.md): next minor release notes for QA attachment, adapter contract, capture, and source inspector changes.
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:
@@ -156,7 +158,7 @@ export default defineConfig({
156
158
  });
157
159
  ```
158
160
 
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 also open a Source Tree panel with section/source/data 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.
161
+ 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
162
 
161
163
  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
164
 
@@ -187,6 +189,7 @@ Useful checks:
187
189
 
188
190
  ```bash
189
191
  pnpm typecheck
192
+ pnpm test
190
193
  pnpm build
191
194
  pnpm typecheck:dev
192
195
  pnpm build:dev