@designfever/web-review-kit 0.1.0 → 0.3.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 +77 -179
- package/dist/{chunk-U5K2YGGL.js → chunk-I76WEDLA.js} +2248 -2722
- package/dist/chunk-I76WEDLA.js.map +1 -0
- package/dist/index.cjs +2346 -2603
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +10 -6
- package/dist/index.d.ts +10 -6
- package/dist/index.js +220 -7
- package/dist/index.js.map +1 -1
- package/dist/react-shell.cjs +8953 -6632
- package/dist/react-shell.cjs.map +1 -1
- package/dist/react-shell.d.cts +8 -3
- package/dist/react-shell.d.ts +8 -3
- package/dist/react-shell.js +5956 -3636
- package/dist/react-shell.js.map +1 -1
- package/dist/{types-D_mNjOHx.d.cts → types-Cf2x5ky6.d.cts} +8 -14
- package/dist/{types-D_mNjOHx.d.ts → types-Cf2x5ky6.d.ts} +8 -14
- package/dist/vite.cjs +186 -0
- package/dist/vite.cjs.map +1 -0
- package/dist/vite.d.cts +16 -0
- package/dist/vite.d.ts +16 -0
- package/dist/vite.js +161 -0
- package/dist/vite.js.map +1 -0
- package/docs/README.md +21 -30
- package/docs/adaptor.sample.ts +182 -0
- package/docs/architecture.md +125 -0
- package/docs/db-setup.md +253 -0
- package/docs/figma-overlay.md +52 -0
- package/docs/grid-overlay.md +38 -0
- package/docs/installation.md +108 -40
- package/package.json +22 -6
- package/dist/chunk-U5K2YGGL.js.map +0 -1
- package/docs/adapter-handoff.md +0 -146
- package/docs/concept.md +0 -102
- package/docs/df-sheet-adapter.md +0 -336
- package/docs/df-sheet-next.md +0 -222
- package/docs/initial-plan.md +0 -226
- package/docs/package-split-checkpoint.md +0 -79
- package/docs/presence-handoff.md +0 -138
- package/docs/review-feedback-2026-06-20.md +0 -267
- package/docs/smoke-baseline-2026-06-20.md +0 -41
- package/docs/stabilize-ui-work-guide.md +0 -243
- package/docs/supabase-presence.md +0 -198
- package/docs/supabase-review-items.md +0 -365
- package/docs/supabase.md +0 -205
package/dist/react-shell.d.cts
CHANGED
|
@@ -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-Cf2x5ky6.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
|
|
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'];
|
|
@@ -101,12 +104,15 @@ interface ReviewShellProps {
|
|
|
101
104
|
ruler?: ReviewRulerConfig;
|
|
102
105
|
initialPrompt?: string;
|
|
103
106
|
reviewPathPrefix?: string;
|
|
107
|
+
sourceRoot?: string;
|
|
104
108
|
presence?: ReviewPresenceAdapter;
|
|
105
109
|
}
|
|
106
110
|
interface ReviewShellMountOptions extends ReviewShellProps {
|
|
107
111
|
rootId?: string;
|
|
108
112
|
}
|
|
109
113
|
|
|
114
|
+
declare const ReviewShell: ({ projectId, pages, adapters, presets, ruler, initialPrompt, reviewPathPrefix, sourceRoot, presence }: ReviewShellProps) => React.JSX.Element;
|
|
115
|
+
|
|
110
116
|
declare const createReviewPagesFromGlob: (entries: ReviewShellGlobEntries, options?: CreateReviewPagesOptions) => ReviewShellPage[];
|
|
111
117
|
|
|
112
118
|
declare const DEFAULT_REVIEW_VIEWPORT_PRESETS: ReviewShellViewportPreset[];
|
|
@@ -150,7 +156,6 @@ type SupabasePresenceAdapterOptions = {
|
|
|
150
156
|
};
|
|
151
157
|
declare const createSupabasePresenceAdapter: ({ client, channelPrefix, private: isPrivate, }: SupabasePresenceAdapterOptions) => ReviewPresenceAdapter;
|
|
152
158
|
|
|
153
|
-
declare const ReviewShell: ({ projectId, pages, adapters, presets, ruler, initialPrompt, reviewPathPrefix, presence }: ReviewShellProps) => React.JSX.Element;
|
|
154
159
|
declare const mountReviewShell: (options: ReviewShellMountOptions) => void;
|
|
155
160
|
|
|
156
161
|
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 };
|
package/dist/react-shell.d.ts
CHANGED
|
@@ -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-Cf2x5ky6.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
|
|
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'];
|
|
@@ -101,12 +104,15 @@ interface ReviewShellProps {
|
|
|
101
104
|
ruler?: ReviewRulerConfig;
|
|
102
105
|
initialPrompt?: string;
|
|
103
106
|
reviewPathPrefix?: string;
|
|
107
|
+
sourceRoot?: string;
|
|
104
108
|
presence?: ReviewPresenceAdapter;
|
|
105
109
|
}
|
|
106
110
|
interface ReviewShellMountOptions extends ReviewShellProps {
|
|
107
111
|
rootId?: string;
|
|
108
112
|
}
|
|
109
113
|
|
|
114
|
+
declare const ReviewShell: ({ projectId, pages, adapters, presets, ruler, initialPrompt, reviewPathPrefix, sourceRoot, presence }: ReviewShellProps) => React.JSX.Element;
|
|
115
|
+
|
|
110
116
|
declare const createReviewPagesFromGlob: (entries: ReviewShellGlobEntries, options?: CreateReviewPagesOptions) => ReviewShellPage[];
|
|
111
117
|
|
|
112
118
|
declare const DEFAULT_REVIEW_VIEWPORT_PRESETS: ReviewShellViewportPreset[];
|
|
@@ -150,7 +156,6 @@ type SupabasePresenceAdapterOptions = {
|
|
|
150
156
|
};
|
|
151
157
|
declare const createSupabasePresenceAdapter: ({ client, channelPrefix, private: isPrivate, }: SupabasePresenceAdapterOptions) => ReviewPresenceAdapter;
|
|
152
158
|
|
|
153
|
-
declare const ReviewShell: ({ projectId, pages, adapters, presets, ruler, initialPrompt, reviewPathPrefix, presence }: ReviewShellProps) => React.JSX.Element;
|
|
154
159
|
declare const mountReviewShell: (options: ReviewShellMountOptions) => void;
|
|
155
160
|
|
|
156
161
|
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 };
|