@botzki/react 0.1.3 → 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/index.cjs +36 -21
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +10 -1
- package/dist/index.d.ts +10 -1
- package/dist/index.mjs +36 -21
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -561,12 +561,20 @@ interface CoBrowsePointer {
|
|
|
561
561
|
yPercent: number;
|
|
562
562
|
selector?: string | null;
|
|
563
563
|
label?: string | null;
|
|
564
|
-
action: "move" | "click" | "highlight";
|
|
564
|
+
action: "move" | "click" | "highlight" | "leave";
|
|
565
|
+
}
|
|
566
|
+
interface CoBrowseHighlight {
|
|
567
|
+
xPercent: number;
|
|
568
|
+
yPercent: number;
|
|
569
|
+
selector?: string | null;
|
|
570
|
+
label?: string | null;
|
|
571
|
+
timestamp: number;
|
|
565
572
|
}
|
|
566
573
|
interface CoBrowseScroll {
|
|
567
574
|
scrollY: number;
|
|
568
575
|
scrollX?: number | null;
|
|
569
576
|
selector?: string | null;
|
|
577
|
+
timestamp?: number | null;
|
|
570
578
|
}
|
|
571
579
|
interface CoBrowseSnapshot {
|
|
572
580
|
url: string;
|
|
@@ -585,6 +593,7 @@ interface CoBrowseState {
|
|
|
585
593
|
isActive: boolean;
|
|
586
594
|
operatorName: string | null;
|
|
587
595
|
pointer: CoBrowsePointer | null;
|
|
596
|
+
highlight?: CoBrowseHighlight | null;
|
|
588
597
|
highlightedSelector: string | null;
|
|
589
598
|
accept: () => Promise<void>;
|
|
590
599
|
decline: (reason?: string) => Promise<void>;
|
package/dist/index.d.ts
CHANGED
|
@@ -561,12 +561,20 @@ interface CoBrowsePointer {
|
|
|
561
561
|
yPercent: number;
|
|
562
562
|
selector?: string | null;
|
|
563
563
|
label?: string | null;
|
|
564
|
-
action: "move" | "click" | "highlight";
|
|
564
|
+
action: "move" | "click" | "highlight" | "leave";
|
|
565
|
+
}
|
|
566
|
+
interface CoBrowseHighlight {
|
|
567
|
+
xPercent: number;
|
|
568
|
+
yPercent: number;
|
|
569
|
+
selector?: string | null;
|
|
570
|
+
label?: string | null;
|
|
571
|
+
timestamp: number;
|
|
565
572
|
}
|
|
566
573
|
interface CoBrowseScroll {
|
|
567
574
|
scrollY: number;
|
|
568
575
|
scrollX?: number | null;
|
|
569
576
|
selector?: string | null;
|
|
577
|
+
timestamp?: number | null;
|
|
570
578
|
}
|
|
571
579
|
interface CoBrowseSnapshot {
|
|
572
580
|
url: string;
|
|
@@ -585,6 +593,7 @@ interface CoBrowseState {
|
|
|
585
593
|
isActive: boolean;
|
|
586
594
|
operatorName: string | null;
|
|
587
595
|
pointer: CoBrowsePointer | null;
|
|
596
|
+
highlight?: CoBrowseHighlight | null;
|
|
588
597
|
highlightedSelector: string | null;
|
|
589
598
|
accept: () => Promise<void>;
|
|
590
599
|
decline: (reason?: string) => Promise<void>;
|