@designfever/web-review-kit 0.1.0 → 0.2.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.
Files changed (39) hide show
  1. package/README.md +59 -184
  2. package/dist/{chunk-U5K2YGGL.js → chunk-EJDROXJM.js} +2583 -3085
  3. package/dist/chunk-EJDROXJM.js.map +1 -0
  4. package/dist/index.cjs +2615 -2900
  5. package/dist/index.cjs.map +1 -1
  6. package/dist/index.d.cts +10 -6
  7. package/dist/index.d.ts +10 -6
  8. package/dist/index.js +220 -7
  9. package/dist/index.js.map +1 -1
  10. package/dist/react-shell.cjs +8364 -6651
  11. package/dist/react-shell.cjs.map +1 -1
  12. package/dist/react-shell.d.cts +7 -3
  13. package/dist/react-shell.d.ts +7 -3
  14. package/dist/react-shell.js +5163 -3425
  15. package/dist/react-shell.js.map +1 -1
  16. package/dist/{types-D_mNjOHx.d.cts → types-NiCp9JJQ.d.cts} +6 -14
  17. package/dist/{types-D_mNjOHx.d.ts → types-NiCp9JJQ.d.ts} +6 -14
  18. package/docs/README.md +21 -30
  19. package/docs/adaptor.sample.ts +182 -0
  20. package/docs/architecture.md +125 -0
  21. package/docs/db-setup.md +253 -0
  22. package/docs/figma-overlay.md +52 -0
  23. package/docs/grid-overlay.md +38 -0
  24. package/docs/installation.md +75 -40
  25. package/package.json +8 -3
  26. package/dist/chunk-U5K2YGGL.js.map +0 -1
  27. package/docs/adapter-handoff.md +0 -146
  28. package/docs/concept.md +0 -102
  29. package/docs/df-sheet-adapter.md +0 -336
  30. package/docs/df-sheet-next.md +0 -222
  31. package/docs/initial-plan.md +0 -226
  32. package/docs/package-split-checkpoint.md +0 -79
  33. package/docs/presence-handoff.md +0 -138
  34. package/docs/review-feedback-2026-06-20.md +0 -267
  35. package/docs/smoke-baseline-2026-06-20.md +0 -41
  36. package/docs/stabilize-ui-work-guide.md +0 -243
  37. package/docs/supabase-presence.md +0 -198
  38. package/docs/supabase-review-items.md +0 -365
  39. package/docs/supabase.md +0 -205
@@ -1,5 +1,5 @@
1
+ import { f as ReviewItemScope, r as ReviewSource, n as ReviewMode, W as WebReviewKitAdapter, a as ReviewItemStatus, e as ReviewItem, p as ReviewRulerConfig } from './types-NiCp9JJQ.cjs';
1
2
  import React from 'react';
2
- import { f as ReviewItemScope, s as ReviewSource, o as ReviewMode, W as WebReviewKitAdapter, a as ReviewItemStatus, e as ReviewItem, q as ReviewRulerConfig } from './types-D_mNjOHx.cjs';
3
3
 
4
4
  type ReviewShellViewportKind = Exclude<ReviewItemScope, 'dom'>;
5
5
  type ReviewShellViewportPreset = {
@@ -18,6 +18,7 @@ type ReviewShellStatusOption = {
18
18
  value: ReviewItemStatus;
19
19
  label: string;
20
20
  };
21
+ type ReviewShellWriteMode = 'dom' | 'note' | 'area';
21
22
  type ReviewShellUpdateStatusInput = {
22
23
  id: string;
23
24
  item: ReviewItem;
@@ -36,8 +37,10 @@ type ReviewShellAdapter = {
36
37
  pageId?: string;
37
38
  get: WebReviewKitAdapter['get'];
38
39
  list: WebReviewKitAdapter['list'];
39
- create: WebReviewKitAdapter['create'];
40
+ create?: WebReviewKitAdapter['create'];
41
+ update?: WebReviewKitAdapter['update'];
40
42
  statusOptions?: readonly ReviewShellStatusOption[];
43
+ canWrite?: boolean | readonly ReviewShellWriteMode[];
41
44
  updateStatus?: (input: ReviewShellUpdateStatusInput) => Promise<ReviewItem>;
42
45
  syncSubmission?: (input: ReviewShellSyncSubmissionInput) => Promise<ReviewItem>;
43
46
  remove?: WebReviewKitAdapter['remove'];
@@ -107,6 +110,8 @@ interface ReviewShellMountOptions extends ReviewShellProps {
107
110
  rootId?: string;
108
111
  }
109
112
 
113
+ declare const ReviewShell: ({ projectId, pages, adapters, presets, ruler, initialPrompt, reviewPathPrefix, presence }: ReviewShellProps) => React.JSX.Element;
114
+
110
115
  declare const createReviewPagesFromGlob: (entries: ReviewShellGlobEntries, options?: CreateReviewPagesOptions) => ReviewShellPage[];
111
116
 
112
117
  declare const DEFAULT_REVIEW_VIEWPORT_PRESETS: ReviewShellViewportPreset[];
@@ -150,7 +155,6 @@ type SupabasePresenceAdapterOptions = {
150
155
  };
151
156
  declare const createSupabasePresenceAdapter: ({ client, channelPrefix, private: isPrivate, }: SupabasePresenceAdapterOptions) => ReviewPresenceAdapter;
152
157
 
153
- declare const ReviewShell: ({ projectId, pages, adapters, presets, ruler, initialPrompt, reviewPathPrefix, presence }: ReviewShellProps) => React.JSX.Element;
154
158
  declare const mountReviewShell: (options: ReviewShellMountOptions) => void;
155
159
 
156
160
  export { type CreateReviewPagesOptions, DEFAULT_REVIEW_VIEWPORT_PRESETS, type LocalPresenceAdapterOptions, type ReviewPresenceAdapter, type ReviewPresenceContext, type ReviewPresenceSession, type ReviewPresenceState, type ReviewPresenceStatus, type ReviewPresenceUser, ReviewShell, type ReviewShellAdapter, type ReviewShellAdapters, type ReviewShellGlobEntries, type ReviewShellMountOptions, type ReviewShellPage, type ReviewShellProps, type ReviewShellStatusOption, type ReviewShellViewportKind, type ReviewShellViewportPreset, type SupabasePresenceAdapterOptions, type SupabasePresenceClient, createFallbackPresenceAdapter, createLocalPresenceAdapter, createReviewPagesFromGlob, createSupabasePresenceAdapter, mountReviewShell };
@@ -1,5 +1,5 @@
1
+ import { f as ReviewItemScope, r as ReviewSource, n as ReviewMode, W as WebReviewKitAdapter, a as ReviewItemStatus, e as ReviewItem, p as ReviewRulerConfig } from './types-NiCp9JJQ.js';
1
2
  import React from 'react';
2
- import { f as ReviewItemScope, s as ReviewSource, o as ReviewMode, W as WebReviewKitAdapter, a as ReviewItemStatus, e as ReviewItem, q as ReviewRulerConfig } from './types-D_mNjOHx.js';
3
3
 
4
4
  type ReviewShellViewportKind = Exclude<ReviewItemScope, 'dom'>;
5
5
  type ReviewShellViewportPreset = {
@@ -18,6 +18,7 @@ type ReviewShellStatusOption = {
18
18
  value: ReviewItemStatus;
19
19
  label: string;
20
20
  };
21
+ type ReviewShellWriteMode = 'dom' | 'note' | 'area';
21
22
  type ReviewShellUpdateStatusInput = {
22
23
  id: string;
23
24
  item: ReviewItem;
@@ -36,8 +37,10 @@ type ReviewShellAdapter = {
36
37
  pageId?: string;
37
38
  get: WebReviewKitAdapter['get'];
38
39
  list: WebReviewKitAdapter['list'];
39
- create: WebReviewKitAdapter['create'];
40
+ create?: WebReviewKitAdapter['create'];
41
+ update?: WebReviewKitAdapter['update'];
40
42
  statusOptions?: readonly ReviewShellStatusOption[];
43
+ canWrite?: boolean | readonly ReviewShellWriteMode[];
41
44
  updateStatus?: (input: ReviewShellUpdateStatusInput) => Promise<ReviewItem>;
42
45
  syncSubmission?: (input: ReviewShellSyncSubmissionInput) => Promise<ReviewItem>;
43
46
  remove?: WebReviewKitAdapter['remove'];
@@ -107,6 +110,8 @@ interface ReviewShellMountOptions extends ReviewShellProps {
107
110
  rootId?: string;
108
111
  }
109
112
 
113
+ declare const ReviewShell: ({ projectId, pages, adapters, presets, ruler, initialPrompt, reviewPathPrefix, presence }: ReviewShellProps) => React.JSX.Element;
114
+
110
115
  declare const createReviewPagesFromGlob: (entries: ReviewShellGlobEntries, options?: CreateReviewPagesOptions) => ReviewShellPage[];
111
116
 
112
117
  declare const DEFAULT_REVIEW_VIEWPORT_PRESETS: ReviewShellViewportPreset[];
@@ -150,7 +155,6 @@ type SupabasePresenceAdapterOptions = {
150
155
  };
151
156
  declare const createSupabasePresenceAdapter: ({ client, channelPrefix, private: isPrivate, }: SupabasePresenceAdapterOptions) => ReviewPresenceAdapter;
152
157
 
153
- declare const ReviewShell: ({ projectId, pages, adapters, presets, ruler, initialPrompt, reviewPathPrefix, presence }: ReviewShellProps) => React.JSX.Element;
154
158
  declare const mountReviewShell: (options: ReviewShellMountOptions) => void;
155
159
 
156
160
  export { type CreateReviewPagesOptions, DEFAULT_REVIEW_VIEWPORT_PRESETS, type LocalPresenceAdapterOptions, type ReviewPresenceAdapter, type ReviewPresenceContext, type ReviewPresenceSession, type ReviewPresenceState, type ReviewPresenceStatus, type ReviewPresenceUser, ReviewShell, type ReviewShellAdapter, type ReviewShellAdapters, type ReviewShellGlobEntries, type ReviewShellMountOptions, type ReviewShellPage, type ReviewShellProps, type ReviewShellStatusOption, type ReviewShellViewportKind, type ReviewShellViewportPreset, type SupabasePresenceAdapterOptions, type SupabasePresenceClient, createFallbackPresenceAdapter, createLocalPresenceAdapter, createReviewPagesFromGlob, createSupabasePresenceAdapter, mountReviewShell };