@designfever/web-review-kit 0.3.0 → 0.4.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.
@@ -1,4 +1,4 @@
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
+ import { f as ReviewItemScope, r as ReviewSource, n as ReviewMode, W as WebReviewKitAdapter, a as ReviewItemStatus, e as ReviewItem, p as ReviewRulerConfig } from './types-D_qYtwTs.cjs';
2
2
  import React from 'react';
3
3
 
4
4
  type ReviewShellViewportKind = Exclude<ReviewItemScope, 'dom'>;
@@ -14,6 +14,12 @@ type ReviewShellPage = {
14
14
  href: string;
15
15
  };
16
16
  type ReviewShellGlobEntries = Record<string, unknown>;
17
+ type ReviewSourceEditor = 'vscode' | 'cursor' | 'webstorm' | 'custom';
18
+ type ReviewSourceInspectorOptions = {
19
+ enabled?: boolean;
20
+ editor?: ReviewSourceEditor;
21
+ urlTemplate?: string;
22
+ };
17
23
  type ReviewShellStatusOption = {
18
24
  value: ReviewItemStatus;
19
25
  label: string;
@@ -103,15 +109,17 @@ interface ReviewShellProps {
103
109
  presets?: ReviewShellViewportPreset[];
104
110
  ruler?: ReviewRulerConfig;
105
111
  initialPrompt?: string;
112
+ adjustmentLabel?: string;
106
113
  reviewPathPrefix?: string;
107
114
  sourceRoot?: string;
115
+ sourceInspector?: ReviewSourceInspectorOptions;
108
116
  presence?: ReviewPresenceAdapter;
109
117
  }
110
118
  interface ReviewShellMountOptions extends ReviewShellProps {
111
119
  rootId?: string;
112
120
  }
113
121
 
114
- declare const ReviewShell: ({ projectId, pages, adapters, presets, ruler, initialPrompt, reviewPathPrefix, sourceRoot, presence }: ReviewShellProps) => React.JSX.Element;
122
+ declare const ReviewShell: ({ projectId, pages, adapters, presets, ruler, initialPrompt, adjustmentLabel, reviewPathPrefix, sourceRoot, sourceInspector, presence }: ReviewShellProps) => React.JSX.Element;
115
123
 
116
124
  declare const createReviewPagesFromGlob: (entries: ReviewShellGlobEntries, options?: CreateReviewPagesOptions) => ReviewShellPage[];
117
125
 
@@ -158,4 +166,4 @@ declare const createSupabasePresenceAdapter: ({ client, channelPrefix, private:
158
166
 
159
167
  declare const mountReviewShell: (options: ReviewShellMountOptions) => void;
160
168
 
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 };
169
+ 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 ReviewSourceEditor, type ReviewSourceInspectorOptions, type SupabasePresenceAdapterOptions, type SupabasePresenceClient, createFallbackPresenceAdapter, createLocalPresenceAdapter, createReviewPagesFromGlob, createSupabasePresenceAdapter, mountReviewShell };
@@ -1,4 +1,4 @@
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
+ import { f as ReviewItemScope, r as ReviewSource, n as ReviewMode, W as WebReviewKitAdapter, a as ReviewItemStatus, e as ReviewItem, p as ReviewRulerConfig } from './types-D_qYtwTs.js';
2
2
  import React from 'react';
3
3
 
4
4
  type ReviewShellViewportKind = Exclude<ReviewItemScope, 'dom'>;
@@ -14,6 +14,12 @@ type ReviewShellPage = {
14
14
  href: string;
15
15
  };
16
16
  type ReviewShellGlobEntries = Record<string, unknown>;
17
+ type ReviewSourceEditor = 'vscode' | 'cursor' | 'webstorm' | 'custom';
18
+ type ReviewSourceInspectorOptions = {
19
+ enabled?: boolean;
20
+ editor?: ReviewSourceEditor;
21
+ urlTemplate?: string;
22
+ };
17
23
  type ReviewShellStatusOption = {
18
24
  value: ReviewItemStatus;
19
25
  label: string;
@@ -103,15 +109,17 @@ interface ReviewShellProps {
103
109
  presets?: ReviewShellViewportPreset[];
104
110
  ruler?: ReviewRulerConfig;
105
111
  initialPrompt?: string;
112
+ adjustmentLabel?: string;
106
113
  reviewPathPrefix?: string;
107
114
  sourceRoot?: string;
115
+ sourceInspector?: ReviewSourceInspectorOptions;
108
116
  presence?: ReviewPresenceAdapter;
109
117
  }
110
118
  interface ReviewShellMountOptions extends ReviewShellProps {
111
119
  rootId?: string;
112
120
  }
113
121
 
114
- declare const ReviewShell: ({ projectId, pages, adapters, presets, ruler, initialPrompt, reviewPathPrefix, sourceRoot, presence }: ReviewShellProps) => React.JSX.Element;
122
+ declare const ReviewShell: ({ projectId, pages, adapters, presets, ruler, initialPrompt, adjustmentLabel, reviewPathPrefix, sourceRoot, sourceInspector, presence }: ReviewShellProps) => React.JSX.Element;
115
123
 
116
124
  declare const createReviewPagesFromGlob: (entries: ReviewShellGlobEntries, options?: CreateReviewPagesOptions) => ReviewShellPage[];
117
125
 
@@ -158,4 +166,4 @@ declare const createSupabasePresenceAdapter: ({ client, channelPrefix, private:
158
166
 
159
167
  declare const mountReviewShell: (options: ReviewShellMountOptions) => void;
160
168
 
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 };
169
+ 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 ReviewSourceEditor, type ReviewSourceInspectorOptions, type SupabasePresenceAdapterOptions, type SupabasePresenceClient, createFallbackPresenceAdapter, createLocalPresenceAdapter, createReviewPagesFromGlob, createSupabasePresenceAdapter, mountReviewShell };