@bitux/review-layer-react 0.1.2 → 0.1.4
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/dist/CommentModal.d.ts +2 -1
- package/dist/CommentPin.d.ts +5 -1
- package/dist/ElementHighlight.d.ts +7 -1
- package/dist/Overlay.d.ts +2 -1
- package/dist/review-layer-react.js +1490 -1010
- package/dist/review-layer-react.js.map +1 -1
- package/dist/review-layer-react.umd.cjs +347 -10
- package/dist/review-layer-react.umd.cjs.map +1 -1
- package/dist/utils/api.d.ts +7 -0
- package/dist/utils/positioning.d.ts +19 -2
- package/package.json +1 -1
package/dist/CommentModal.d.ts
CHANGED
|
@@ -12,5 +12,6 @@ interface CommentModalProps {
|
|
|
12
12
|
onClose: () => void;
|
|
13
13
|
onSuccess: () => void;
|
|
14
14
|
}
|
|
15
|
-
|
|
15
|
+
declare function CommentModalInner({ apiUrl, apiKey, reviewers, position, payload, onClose, onSuccess, }: CommentModalProps): import("react/jsx-runtime").JSX.Element;
|
|
16
|
+
export declare const CommentModal: import('react').MemoExoticComponent<typeof CommentModalInner>;
|
|
16
17
|
export {};
|
package/dist/CommentPin.d.ts
CHANGED
|
@@ -10,5 +10,9 @@ export interface CommentPinProps {
|
|
|
10
10
|
apiUrl: string;
|
|
11
11
|
apiKey: string;
|
|
12
12
|
onStatusChange: () => void;
|
|
13
|
+
/** Cuando true (modo revisión), el popover no se abre al clic ni al hover */
|
|
14
|
+
reviewMode?: boolean;
|
|
13
15
|
}
|
|
14
|
-
|
|
16
|
+
declare function CommentPinInner({ comment, offset, apiUrl, apiKey, onStatusChange, reviewMode, }: CommentPinProps): import("react/jsx-runtime").JSX.Element;
|
|
17
|
+
export declare const CommentPin: import('react').MemoExoticComponent<typeof CommentPinInner>;
|
|
18
|
+
export {};
|
|
@@ -1,11 +1,17 @@
|
|
|
1
|
+
import { Comment } from './utils/api';
|
|
2
|
+
|
|
1
3
|
export interface ElementHighlightProps {
|
|
2
4
|
/** CSS selector for the element to highlight */
|
|
3
5
|
selector: string | null;
|
|
4
6
|
/** When false, render nothing */
|
|
5
7
|
active: boolean;
|
|
8
|
+
/** Si el selector no encuentra el elemento, se usa rect de respaldo (coords guardadas del comentario). */
|
|
9
|
+
fallbackComment?: Comment | null;
|
|
10
|
+
/** Color del borde del highlight (p. ej. según estado del comentario). Por defecto rojo. */
|
|
11
|
+
outlineColor?: string;
|
|
6
12
|
}
|
|
7
13
|
/**
|
|
8
14
|
* Finds the element by selector, tracks its bounding rect, and renders
|
|
9
15
|
* a persistent highlight overlay. Updates on scroll and resize.
|
|
10
16
|
*/
|
|
11
|
-
export declare
|
|
17
|
+
export declare const ElementHighlight: import('react').NamedExoticComponent<ElementHighlightProps>;
|
package/dist/Overlay.d.ts
CHANGED
|
@@ -4,10 +4,11 @@ interface OverlayProps {
|
|
|
4
4
|
apiUrl: string;
|
|
5
5
|
apiKey: string;
|
|
6
6
|
reviewMode: boolean;
|
|
7
|
+
setReviewMode: (value: boolean) => void;
|
|
7
8
|
reviewers: Reviewer[];
|
|
8
9
|
comments: Comment[];
|
|
9
10
|
loadComments: () => void;
|
|
10
11
|
commentsLoadFailed?: boolean;
|
|
11
12
|
}
|
|
12
|
-
export declare function Overlay({ apiUrl, apiKey, reviewMode, reviewers, comments, loadComments, commentsLoadFailed, }: OverlayProps): import('react').ReactPortal | null;
|
|
13
|
+
export declare function Overlay({ apiUrl, apiKey, reviewMode, setReviewMode, reviewers, comments, loadComments, commentsLoadFailed, }: OverlayProps): import('react').ReactPortal | null;
|
|
13
14
|
export {};
|