@ngenux/ngage-whiteboarding 1.0.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 (38) hide show
  1. package/README.md +249 -0
  2. package/dist/index.d.ts +11 -0
  3. package/dist/index.d.ts.map +1 -0
  4. package/dist/index.esm.js +42595 -0
  5. package/dist/index.esm.js.map +1 -0
  6. package/dist/index.js +42617 -0
  7. package/dist/index.js.map +1 -0
  8. package/dist/src/components/Shapes/Arrow.d.ts +11 -0
  9. package/dist/src/components/Shapes/Arrow.d.ts.map +1 -0
  10. package/dist/src/components/Shapes/Ellipse.d.ts +11 -0
  11. package/dist/src/components/Shapes/Ellipse.d.ts.map +1 -0
  12. package/dist/src/components/Shapes/ErasedShape.d.ts +11 -0
  13. package/dist/src/components/Shapes/ErasedShape.d.ts.map +1 -0
  14. package/dist/src/components/Shapes/FreehandDrawing.d.ts +11 -0
  15. package/dist/src/components/Shapes/FreehandDrawing.d.ts.map +1 -0
  16. package/dist/src/components/Shapes/Line.d.ts +11 -0
  17. package/dist/src/components/Shapes/Line.d.ts.map +1 -0
  18. package/dist/src/components/Shapes/Rectangle.d.ts +11 -0
  19. package/dist/src/components/Shapes/Rectangle.d.ts.map +1 -0
  20. package/dist/src/components/Whiteboard/Board.d.ts +14 -0
  21. package/dist/src/components/Whiteboard/Board.d.ts.map +1 -0
  22. package/dist/src/components/Whiteboard/Toolbar.d.ts +19 -0
  23. package/dist/src/components/Whiteboard/Toolbar.d.ts.map +1 -0
  24. package/dist/src/components/Whiteboard/index.d.ts +9 -0
  25. package/dist/src/components/Whiteboard/index.d.ts.map +1 -0
  26. package/dist/src/context/WhiteboardContext.d.ts +128 -0
  27. package/dist/src/context/WhiteboardContext.d.ts.map +1 -0
  28. package/dist/src/hooks/useCapture.d.ts +4 -0
  29. package/dist/src/hooks/useCapture.d.ts.map +1 -0
  30. package/dist/src/hooks/useCollaborativeWhiteboard.d.ts +27 -0
  31. package/dist/src/hooks/useCollaborativeWhiteboard.d.ts.map +1 -0
  32. package/dist/src/types/index.d.ts +123 -0
  33. package/dist/src/types/index.d.ts.map +1 -0
  34. package/dist/src/utils/compression.d.ts +14 -0
  35. package/dist/src/utils/compression.d.ts.map +1 -0
  36. package/dist/src/utils/socket-utility.d.ts +6 -0
  37. package/dist/src/utils/socket-utility.d.ts.map +1 -0
  38. package/package.json +97 -0
@@ -0,0 +1,11 @@
1
+ import React from 'react';
2
+ import { ShapeProps } from '@/types';
3
+ interface ArrowProps {
4
+ shapeProps: ShapeProps;
5
+ isSelected: boolean;
6
+ onSelect: () => void;
7
+ onUpdate: (shape: ShapeProps) => void;
8
+ }
9
+ export declare const Arrow: React.FC<ArrowProps>;
10
+ export {};
11
+ //# sourceMappingURL=Arrow.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Arrow.d.ts","sourceRoot":"","sources":["../../../../src/components/Shapes/Arrow.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAErC,UAAU,UAAU;IAClB,UAAU,EAAE,UAAU,CAAC;IACvB,UAAU,EAAE,OAAO,CAAC;IACpB,QAAQ,EAAE,MAAM,IAAI,CAAC;IACrB,QAAQ,EAAE,CAAC,KAAK,EAAE,UAAU,KAAK,IAAI,CAAC;CACvC;AAED,eAAO,MAAM,KAAK,EAAE,KAAK,CAAC,EAAE,CAAC,UAAU,CAwHrC,CAAC"}
@@ -0,0 +1,11 @@
1
+ import React from 'react';
2
+ import { ShapeProps } from '@/types';
3
+ interface EllipseProps {
4
+ shapeProps: ShapeProps;
5
+ isSelected: boolean;
6
+ onSelect: () => void;
7
+ onUpdate: (shape: ShapeProps) => void;
8
+ }
9
+ export declare const Ellipse: React.FC<EllipseProps>;
10
+ export {};
11
+ //# sourceMappingURL=Ellipse.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Ellipse.d.ts","sourceRoot":"","sources":["../../../../src/components/Shapes/Ellipse.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,UAAU,EAAe,MAAM,SAAS,CAAC;AAElD,UAAU,YAAY;IACpB,UAAU,EAAE,UAAU,CAAC;IACvB,UAAU,EAAE,OAAO,CAAC;IACpB,QAAQ,EAAE,MAAM,IAAI,CAAC;IACrB,QAAQ,EAAE,CAAC,KAAK,EAAE,UAAU,KAAK,IAAI,CAAC;CACvC;AAkBD,eAAO,MAAM,OAAO,EAAE,KAAK,CAAC,EAAE,CAAC,YAAY,CA0H1C,CAAC"}
@@ -0,0 +1,11 @@
1
+ import React from 'react';
2
+ import { ShapeProps } from '@/types';
3
+ interface ErasedShapeProps {
4
+ shapeProps: ShapeProps;
5
+ isSelected: boolean;
6
+ onSelect: () => void;
7
+ onUpdate: (shape: ShapeProps) => void;
8
+ }
9
+ export declare const ErasedShape: React.FC<ErasedShapeProps>;
10
+ export {};
11
+ //# sourceMappingURL=ErasedShape.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ErasedShape.d.ts","sourceRoot":"","sources":["../../../../src/components/Shapes/ErasedShape.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA+C,MAAM,OAAO,CAAC;AAEpE,OAAO,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAErC,UAAU,gBAAgB;IACxB,UAAU,EAAE,UAAU,CAAC;IACvB,UAAU,EAAE,OAAO,CAAC;IACpB,QAAQ,EAAE,MAAM,IAAI,CAAC;IACrB,QAAQ,EAAE,CAAC,KAAK,EAAE,UAAU,KAAK,IAAI,CAAC;CACvC;AAED,eAAO,MAAM,WAAW,EAAE,KAAK,CAAC,EAAE,CAAC,gBAAgB,CAwPlD,CAAC"}
@@ -0,0 +1,11 @@
1
+ import React from 'react';
2
+ import { ShapeProps } from '@/types';
3
+ interface FreehandDrawingProps {
4
+ shapeProps: ShapeProps;
5
+ isSelected: boolean;
6
+ onSelect: () => void;
7
+ onUpdate: (shape: ShapeProps) => void;
8
+ }
9
+ export declare const FreehandDrawing: React.FC<FreehandDrawingProps>;
10
+ export {};
11
+ //# sourceMappingURL=FreehandDrawing.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"FreehandDrawing.d.ts","sourceRoot":"","sources":["../../../../src/components/Shapes/FreehandDrawing.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,UAAU,EAAe,MAAM,SAAS,CAAC;AAElD,UAAU,oBAAoB;IAC5B,UAAU,EAAE,UAAU,CAAC;IACvB,UAAU,EAAE,OAAO,CAAC;IACpB,QAAQ,EAAE,MAAM,IAAI,CAAC;IACrB,QAAQ,EAAE,CAAC,KAAK,EAAE,UAAU,KAAK,IAAI,CAAC;CACvC;AAkBD,eAAO,MAAM,eAAe,EAAE,KAAK,CAAC,EAAE,CAAC,oBAAoB,CAyH1D,CAAC"}
@@ -0,0 +1,11 @@
1
+ import React from 'react';
2
+ import { ShapeProps } from '@/types';
3
+ interface LineProps {
4
+ shapeProps: ShapeProps;
5
+ isSelected: boolean;
6
+ onSelect: () => void;
7
+ onUpdate: (shape: ShapeProps) => void;
8
+ }
9
+ export declare const Line: React.FC<LineProps>;
10
+ export {};
11
+ //# sourceMappingURL=Line.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Line.d.ts","sourceRoot":"","sources":["../../../../src/components/Shapes/Line.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,UAAU,EAAe,MAAM,SAAS,CAAC;AAElD,UAAU,SAAS;IACjB,UAAU,EAAE,UAAU,CAAC;IACvB,UAAU,EAAE,OAAO,CAAC;IACpB,QAAQ,EAAE,MAAM,IAAI,CAAC;IACrB,QAAQ,EAAE,CAAC,KAAK,EAAE,UAAU,KAAK,IAAI,CAAC;CACvC;AAkBD,eAAO,MAAM,IAAI,EAAE,KAAK,CAAC,EAAE,CAAC,SAAS,CA0HpC,CAAC"}
@@ -0,0 +1,11 @@
1
+ import React from 'react';
2
+ import { ShapeProps } from '@/types';
3
+ interface RectangleProps {
4
+ shapeProps: ShapeProps;
5
+ isSelected: boolean;
6
+ onSelect: () => void;
7
+ onUpdate: (shape: ShapeProps) => void;
8
+ }
9
+ export declare const Rectangle: React.FC<RectangleProps>;
10
+ export {};
11
+ //# sourceMappingURL=Rectangle.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Rectangle.d.ts","sourceRoot":"","sources":["../../../../src/components/Shapes/Rectangle.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,UAAU,EAAe,MAAM,SAAS,CAAC;AAElD,UAAU,cAAc;IACtB,UAAU,EAAE,UAAU,CAAC;IACvB,UAAU,EAAE,OAAO,CAAC;IACpB,QAAQ,EAAE,MAAM,IAAI,CAAC;IACrB,QAAQ,EAAE,CAAC,KAAK,EAAE,UAAU,KAAK,IAAI,CAAC;CACvC;AAkBD,eAAO,MAAM,SAAS,EAAE,KAAK,CAAC,EAAE,CAAC,cAAc,CA0H9C,CAAC"}
@@ -0,0 +1,14 @@
1
+ import React from 'react';
2
+ import { DrawingAction } from '../../types';
3
+ interface BoardProps {
4
+ roomId?: string;
5
+ queueAction?: (action: DrawingAction) => void;
6
+ hasToolAccess?: boolean;
7
+ }
8
+ export interface BoardRef {
9
+ exportAsImage: (format: 'png' | 'jpeg') => void;
10
+ exportAsPDF: () => void;
11
+ }
12
+ export declare const Board: React.MemoExoticComponent<React.ForwardRefExoticComponent<BoardProps & React.RefAttributes<BoardRef>>>;
13
+ export {};
14
+ //# sourceMappingURL=Board.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Board.d.ts","sourceRoot":"","sources":["../../../../src/components/Whiteboard/Board.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA6F,MAAM,OAAO,CAAC;AAGlH,OAAO,EAAqB,aAAa,EAAgB,MAAM,aAAa,CAAC;AAU7E,UAAU,UAAU;IAClB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,WAAW,CAAC,EAAE,CAAC,MAAM,EAAE,aAAa,KAAK,IAAI,CAAC;IAC9C,aAAa,CAAC,EAAE,OAAO,CAAC;CACzB;AAED,MAAM,WAAW,QAAQ;IACvB,aAAa,EAAE,CAAC,MAAM,EAAE,KAAK,GAAG,MAAM,KAAK,IAAI,CAAC;IAChD,WAAW,EAAE,MAAM,IAAI,CAAC;CACzB;AAmwBD,eAAO,MAAM,KAAK,wGAOhB,CAAC"}
@@ -0,0 +1,19 @@
1
+ import React from 'react';
2
+ import { DrawingAction } from '@/types';
3
+ interface ToolbarProps {
4
+ queueAction?: (action: DrawingAction) => void;
5
+ handleExportImage?: (format: 'png' | 'jpeg') => void;
6
+ handleExportPDF?: () => void;
7
+ handleClear?: () => void;
8
+ handleLockToggle?: () => void;
9
+ handleAllowedUsersChange?: (users: string[]) => void;
10
+ isAdmin?: boolean;
11
+ hasToolAccess?: boolean;
12
+ isGloballyUnlocked?: boolean;
13
+ shouldBeOpenByDefault?: boolean;
14
+ }
15
+ export declare const TopToolbar: React.FC<ToolbarProps>;
16
+ export declare const LeftSidebar: React.FC<ToolbarProps>;
17
+ export declare const Toolbar: React.FC<ToolbarProps>;
18
+ export {};
19
+ //# sourceMappingURL=Toolbar.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Toolbar.d.ts","sourceRoot":"","sources":["../../../../src/components/Whiteboard/Toolbar.tsx"],"names":[],"mappings":"AAoBA,OAAO,KAA8B,MAAM,OAAO,CAAC;AAEnD,OAAO,EAAE,aAAa,EAAyB,MAAM,SAAS,CAAC;AAE/D,UAAU,YAAY;IACpB,WAAW,CAAC,EAAE,CAAC,MAAM,EAAE,aAAa,KAAK,IAAI,CAAC;IAC9C,iBAAiB,CAAC,EAAE,CAAC,MAAM,EAAE,KAAK,GAAG,MAAM,KAAK,IAAI,CAAC;IACrD,eAAe,CAAC,EAAE,MAAM,IAAI,CAAC;IAC7B,WAAW,CAAC,EAAE,MAAM,IAAI,CAAC;IACzB,gBAAgB,CAAC,EAAE,MAAM,IAAI,CAAC;IAC9B,wBAAwB,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,KAAK,IAAI,CAAC;IACrD,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,kBAAkB,CAAC,EAAE,OAAO,CAAC;IAC7B,qBAAqB,CAAC,EAAE,OAAO,CAAC;CACjC;AAID,eAAO,MAAM,UAAU,EAAE,KAAK,CAAC,EAAE,CAAC,YAAY,CAgM7C,CAAC;AAGF,eAAO,MAAM,WAAW,EAAE,KAAK,CAAC,EAAE,CAAC,YAAY,CAuX9C,CAAC;AAGF,eAAO,MAAM,OAAO,EAAE,KAAK,CAAC,EAAE,CAAC,YAAY,CAE1C,CAAC"}
@@ -0,0 +1,9 @@
1
+ import React from 'react';
2
+ export interface WhiteboardProps {
3
+ roomId: string;
4
+ isAdmin?: boolean;
5
+ allowedUsers?: string[];
6
+ userId: string;
7
+ }
8
+ export declare const Whiteboard: React.FC<WhiteboardProps>;
9
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/Whiteboard/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA4D,MAAM,OAAO,CAAC;AAUjF,MAAM,WAAW,eAAe;IAC9B,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,YAAY,CAAC,EAAE,MAAM,EAAE,CAAC;IACxB,MAAM,EAAE,MAAM,CAAC;CAChB;AAED,eAAO,MAAM,UAAU,EAAE,KAAK,CAAC,EAAE,CAAC,eAAe,CA2ZhD,CAAC"}
@@ -0,0 +1,128 @@
1
+ import React from 'react';
2
+ import { ShapeProps, WhiteboardState, ToolType, DrawingAction, StrokeStyle, WhiteboardSyncState } from '../types';
3
+ type WhiteboardAction = {
4
+ type: 'SET_TOOL';
5
+ payload: ToolType;
6
+ } | {
7
+ type: 'SET_COLOR';
8
+ payload: string;
9
+ } | {
10
+ type: 'SET_BACKGROUND_COLOR';
11
+ payload: string;
12
+ } | {
13
+ type: 'SET_STROKE_WIDTH';
14
+ payload: number;
15
+ } | {
16
+ type: 'SET_STROKE_STYLE';
17
+ payload: StrokeStyle;
18
+ } | {
19
+ type: 'SET_OPACITY';
20
+ payload: number;
21
+ } | {
22
+ type: 'SET_USER_ID';
23
+ payload: string;
24
+ } | {
25
+ type: 'ADD_SHAPE';
26
+ payload: ShapeProps;
27
+ } | {
28
+ type: 'UPDATE_SHAPE';
29
+ payload: ShapeProps;
30
+ } | {
31
+ type: 'UPDATE_TEMP_SHAPE';
32
+ payload: ShapeProps;
33
+ } | {
34
+ type: 'SET_ACTIVE_DRAWING';
35
+ payload: ShapeProps;
36
+ } | {
37
+ type: 'REMOVE_ACTIVE_DRAWING';
38
+ payload: string;
39
+ } | {
40
+ type: 'CLEAR_ACTIVE_DRAWINGS';
41
+ } | {
42
+ type: 'SET_CLEAR_TIMESTAMP';
43
+ payload: number;
44
+ } | {
45
+ type: 'DELETE_SHAPE';
46
+ payload: string;
47
+ } | {
48
+ type: 'SELECT_SHAPE';
49
+ payload: string;
50
+ } | {
51
+ type: 'DESELECT_ALL';
52
+ } | {
53
+ type: 'SET_DRAWING';
54
+ payload: boolean;
55
+ } | {
56
+ type: 'SET_CAPTURE_ENABLED';
57
+ payload: boolean;
58
+ } | {
59
+ type: 'SET_CANVAS_SIZE';
60
+ payload: {
61
+ width: number;
62
+ height: number;
63
+ };
64
+ } | {
65
+ type: 'SET_CURRENT_DRAWING_SHAPE';
66
+ payload: ShapeProps | undefined;
67
+ } | {
68
+ type: 'CLEAR_CANVAS';
69
+ } | {
70
+ type: 'UNDO';
71
+ } | {
72
+ type: 'REDO';
73
+ } | {
74
+ type: 'SET_SHAPES';
75
+ payload: ShapeProps[];
76
+ } | {
77
+ type: 'USER_UNDO';
78
+ payload: string;
79
+ } | {
80
+ type: 'USER_REDO';
81
+ payload: string;
82
+ } | {
83
+ type: 'USER_CLEAR';
84
+ payload: string;
85
+ } | {
86
+ type: 'ERASE';
87
+ payload: {
88
+ shapeId: string;
89
+ erasePath: {
90
+ x: number;
91
+ y: number;
92
+ }[];
93
+ normalizedErasePath?: {
94
+ x: number;
95
+ y: number;
96
+ }[];
97
+ };
98
+ };
99
+ type WhiteboardContextType = {
100
+ state: WhiteboardState;
101
+ dispatch: React.Dispatch<WhiteboardAction>;
102
+ applyDrawingAction: (action: DrawingAction) => void;
103
+ getCurrentSyncState: () => WhiteboardSyncState;
104
+ requestStateFromPeers: () => void;
105
+ setQueueAction: (queueAction: (action: DrawingAction) => void) => void;
106
+ normalizePoint: (point: {
107
+ x: number;
108
+ y: number;
109
+ }) => {
110
+ x: number;
111
+ y: number;
112
+ };
113
+ denormalizePoint: (normalizedPoint: {
114
+ x: number;
115
+ y: number;
116
+ }) => {
117
+ x: number;
118
+ y: number;
119
+ };
120
+ webSocketUrl?: string;
121
+ };
122
+ export declare const WhiteboardProvider: React.FC<{
123
+ children: React.ReactNode;
124
+ webSocketUrl?: string;
125
+ }>;
126
+ export declare const useWhiteboard: () => WhiteboardContextType;
127
+ export {};
128
+ //# sourceMappingURL=WhiteboardContext.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"WhiteboardContext.d.ts","sourceRoot":"","sources":["../../../src/context/WhiteboardContext.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA2D,MAAM,OAAO,CAAC;AAEhF,OAAO,EAAE,UAAU,EAAE,eAAe,EAAE,QAAQ,EAAE,aAAa,EAAE,WAAW,EAAE,mBAAmB,EAAgB,MAAM,UAAU,CAAC;AAEhI,KAAK,gBAAgB,GACjB;IAAE,IAAI,EAAE,UAAU,CAAC;IAAC,OAAO,EAAE,QAAQ,CAAA;CAAE,GACvC;I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AM,IAAI,CAAC;IAClC,cAAc,EAAE,CAAC,WAAW,EAAE,CAAC,MAAM,EAAE,aAAa,KAAK,IAAI,KAAK,IAAI,CAAC;IACvE,cAAc,EAAE,CAAC,KAAK,EAAE;QAAE,CAAC,EAAE,MAAM,CAAC;QAAC,CAAC,EAAE,MAAM,CAAA;KAAE,KAAK;QAAE,CAAC,EAAE,MAAM,CAAC;QAAC,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC;IAC9E,gBAAgB,EAAE,CAAC,eAAe,EAAE;QAAE,CAAC,EAAE,MAAM,CAAC;QAAC,CAAC,EAAE,MAAM,CAAA;KAAE,KAAK;QAAE,CAAC,EAAE,MAAM,CAAC;QAAC,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC;IAC1F,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB,CAAC;AAIF,eAAO,MAAM,kBAAkB,EAAE,KAAK,CAAC,EAAE,CAAC;IAAE,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAAC,YAAY,CAAC,EAAE,MAAM,CAAA;CAAE,CA8d7F,CAAC;AAEF,eAAO,MAAM,aAAa,6BAMzB,CAAC"}
@@ -0,0 +1,4 @@
1
+ export declare const useCapture: () => {
2
+ mediaStream: MediaStream | null;
3
+ };
4
+ //# sourceMappingURL=useCapture.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useCapture.d.ts","sourceRoot":"","sources":["../../../src/hooks/useCapture.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,UAAU;;CAoEtB,CAAC"}
@@ -0,0 +1,27 @@
1
+ import { DrawingAction, CollaborationCallbacks } from '../types';
2
+ export declare const useCollaborativeWhiteboard: (roomId: string, callbacks?: CollaborationCallbacks) => {
3
+ queueAction: (action: DrawingAction) => void;
4
+ getPerformanceMetrics: () => {
5
+ queueSize: number;
6
+ avgCompressionRatio: number;
7
+ totalActions: number;
8
+ timeSinceLastTransmission: number;
9
+ isThrottling: boolean;
10
+ isRateLimited: boolean;
11
+ };
12
+ getConstraintMetrics: () => {
13
+ currentMessageRate: number;
14
+ maxMessageRate: number;
15
+ isWithinRateLimit: boolean;
16
+ maxMessageSize: number;
17
+ maxPayloadSize: number;
18
+ queuedActionsCount: number;
19
+ constraintsStatus: {
20
+ messageRate: string;
21
+ messageSizeLimit: string;
22
+ payloadSizeLimit: string;
23
+ };
24
+ };
25
+ forceTransmit: () => void;
26
+ };
27
+ //# sourceMappingURL=useCollaborativeWhiteboard.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useCollaborativeWhiteboard.d.ts","sourceRoot":"","sources":["../../../src/hooks/useCollaborativeWhiteboard.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,aAAa,EAAkB,sBAAsB,EAAkC,MAAM,UAAU,CAAC;AAIjH,eAAO,MAAM,0BAA0B,GACrC,QAAQ,MAAM,EACd,YAAY,sBAAsB;0BAqQO,aAAa;;;;;;;;;;;;;;;;;;;;;;;CAmVvD,CAAC"}
@@ -0,0 +1,123 @@
1
+ export type Point = {
2
+ x: number;
3
+ y: number;
4
+ };
5
+ export type NormalizedPoint = {
6
+ x: number;
7
+ y: number;
8
+ };
9
+ export type ShapeType = 'rectangle' | 'ellipse' | 'line' | 'pencil' | 'eraser' | 'arrow';
10
+ export type StrokeStyle = 'solid' | 'dashed' | 'dotted';
11
+ export type ShapeProps = {
12
+ id: string;
13
+ userId: string;
14
+ type: ShapeType;
15
+ points: Point[];
16
+ normalizedPoints?: NormalizedPoint[];
17
+ fill?: string;
18
+ stroke: string;
19
+ strokeWidth: number;
20
+ strokeStyle?: StrokeStyle;
21
+ opacity: number;
22
+ isDragging?: boolean;
23
+ isSelected?: boolean;
24
+ isEraser?: boolean;
25
+ erasePaths?: Point[][];
26
+ drawingSessionId?: string;
27
+ timestamp?: number;
28
+ rotation?: number;
29
+ scaleX?: number;
30
+ scaleY?: number;
31
+ x?: number;
32
+ y?: number;
33
+ normalizedX?: number;
34
+ normalizedY?: number;
35
+ normalizedErasePaths?: Point[][];
36
+ };
37
+ export type ToolType = ShapeType | 'select' | 'pan';
38
+ export type ErasePayload = {
39
+ shapeId: string;
40
+ erasePath: Point[];
41
+ normalizedErasePath?: Point[];
42
+ timestamp?: number;
43
+ };
44
+ export type DrawingAction = {
45
+ type: 'add' | 'update' | 'delete' | 'clear' | 'start_draw' | 'continue_draw' | 'end_draw' | 'undo' | 'redo' | 'deselect_all' | 'select_shape' | 'set_background_color' | 'set_opacity' | 'set_stroke_width' | 'set_color' | 'set_stroke_style' | 'request_state' | 'sync_state' | 'user_undo' | 'user_redo' | 'user_clear' | 'erase' | 'toggle_lock' | 'update_allowed_users';
46
+ payload: ShapeProps | string | Partial<ShapeProps> | ShapeProps[] | number | StrokeStyle | WhiteboardSyncState | ErasePayload | {
47
+ isUnlocked: boolean;
48
+ adminId: string;
49
+ timestamp: number;
50
+ } | {
51
+ allowedUsers: string[];
52
+ userId: string;
53
+ timestamp: number;
54
+ };
55
+ batchId?: string;
56
+ timestamp?: number;
57
+ requesterId?: string;
58
+ userId?: string;
59
+ };
60
+ export type WhiteboardState = {
61
+ shapes: ShapeProps[];
62
+ history: ShapeProps[][];
63
+ historyIndex: number;
64
+ tool: ToolType;
65
+ color: string;
66
+ backgroundColor: string;
67
+ strokeWidth: number;
68
+ strokeStyle: StrokeStyle;
69
+ opacity: number;
70
+ userId: string;
71
+ isDrawing: boolean;
72
+ captureEnabled: boolean;
73
+ canvasSize: {
74
+ width: number;
75
+ height: number;
76
+ };
77
+ selectedShapeId?: string;
78
+ currentDrawingShape?: ShapeProps;
79
+ activeDrawings: {
80
+ [shapeId: string]: ShapeProps;
81
+ };
82
+ lastClearTimestamp: number;
83
+ userUndoStacks: {
84
+ [userId: string]: ShapeProps[];
85
+ };
86
+ };
87
+ export type TransmissionData = {
88
+ userId: string;
89
+ roomId: string;
90
+ actions: DrawingAction[];
91
+ timestamp: number;
92
+ canvasSize?: {
93
+ width: number;
94
+ height: number;
95
+ };
96
+ };
97
+ export type CompressedData = {
98
+ data: string;
99
+ compressionType: 'none' | 'delta' | 'base64' | 'gzip' | 'lz4';
100
+ originalSize?: number;
101
+ compressedSize?: number;
102
+ };
103
+ export type CollaborationCallbacks = {
104
+ sendData?: (data: CompressedData) => void;
105
+ onReceiveData?: (callback: (data: CompressedData) => void) => void;
106
+ };
107
+ export type PerformanceMetrics = {
108
+ drawingLatency: number;
109
+ transmissionLatency: number;
110
+ compressionRatio: number;
111
+ fps: number;
112
+ };
113
+ export type WhiteboardSyncState = {
114
+ shapes: ShapeProps[];
115
+ backgroundColor: string;
116
+ canvasSize: {
117
+ width: number;
118
+ height: number;
119
+ };
120
+ timestamp: number;
121
+ userId: string;
122
+ };
123
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/types/index.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,KAAK,GAAG;IAClB,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;CACX,CAAC;AAEF,MAAM,MAAM,eAAe,GAAG;IAC5B,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;CACX,CAAC;AAEF,MAAM,MAAM,SAAS,GAAG,WAAW,GAAG,SAAS,GAAG,MAAM,GAAG,QAAQ,GAAG,QAAQ,GAAG,OAAO,CAAC;AAEzF,MAAM,MAAM,WAAW,GAAG,OAAO,GAAG,QAAQ,GAAG,QAAQ,CAAC;AAExD,MAAM,MAAM,UAAU,GAAG;IACvB,EAAE,EAAE,MAAM,CAAC;IACX,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,SAAS,CAAC;IAChB,MAAM,EAAE,KAAK,EAAE,CAAC;IAChB,gBAAgB,CAAC,EAAE,eAAe,EAAE,CAAC;IACrC,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;IACf,WAAW,EAAE,MAAM,CAAC;IACpB,WAAW,CAAC,EAAE,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const compressData: (data: string) => CompressedData;
3
+ export declare const decompressData: (compressedData: CompressedData) => string;
4
+ export declare const compressPoints: (points: Point[]) => number[];
5
+ export declare const decompressPoints: (compressed: number[]) => Point[];
6
+ export declare const optimizeBatch: (actions: DrawingAction[]) => DrawingAction[];
7
+ export declare const getCompressionMetrics: (original: string, compressed: CompressedData) => {
8
+ originalSize: number;
9
+ compressedSize: number;
10
+ compressionRatio: number;
11
+ spaceSaved: number;
12
+ spaceSavedPercent: number;
13
+ };
14
+ //# sourceMappingURL=compression.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"compression.d.ts","sourceRoot":"","sources":["../../../src/utils/compression.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,aAAa,EAAc,KAAK,EAAE,MAAM,SAAS,CAAC;AAG3E,eAAO,MAAM,YAAY,GAAI,MAAM,MAAM,KAAG,cA6B3C,CAAC;AAmGF,eAAO,MAAM,cAAc,GAAI,gBAAgB,cAAc,KAAG,MAyB/D,CAAC;AAwGF,eAAO,MAAM,cAAc,GAAI,QAAQ,KAAK,EAAE,KAAG,MAAM,EAoBtD,CAAC;AAEF,eAAO,MAAM,gBAAgB,GAAI,YAAY,MAAM,EAAE,KAAG,KAAK,EAc5D,CAAC;AAGF,eAAO,MAAM,aAAa,GAAI,SAAS,aAAa,EAAE,KAAG,aAAa,EA+ErE,CAAC;AAGF,eAAO,MAAM,qBAAqB,GAAI,UAAU,MAAM,EAAE,YAAY,cAAc;;;;;;CAWjF,CAAC"}
@@ -0,0 +1,6 @@
1
+ import { CompressedData } from '@/types';
2
+ export declare const onSend: (roomId: string, data: CompressedData, webSocketUrl?: string) => void;
3
+ export declare const onReceive: (roomId: string, callback: (data: CompressedData) => void, webSocketUrl?: string) => void;
4
+ export declare const leaveRoom: (roomId: string) => void;
5
+ export declare const disconnectSocket: () => void;
6
+ //# sourceMappingURL=socket-utility.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"socket-utility.d.ts","sourceRoot":"","sources":["../../../src/utils/socket-utility.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AAsEzC,eAAO,MAAM,MAAM,GAAI,QAAQ,MAAM,EAAE,MAAM,cAAc,EAAE,eAAe,MAAM,KAAG,IA6BpF,CAAC;AAEF,eAAO,MAAM,SAAS,GAAI,QAAQ,MAAM,EAAE,UAAU,CAAC,IAAI,EAAE,cAAc,KAAK,IAAI,EAAE,eAAe,MAAM,KAAG,IAc3G,CAAC;AAEF,eAAO,MAAM,SAAS,GAAI,QAAQ,MAAM,KAAG,IAO1C,CAAC;AAEF,eAAO,MAAM,gBAAgB,QAAO,IAQnC,CAAC"}
package/package.json ADDED
@@ -0,0 +1,97 @@
1
+ {
2
+ "name": "@ngenux/ngage-whiteboarding",
3
+ "version": "1.0.0",
4
+ "description": "A collaborative whiteboard React component with real-time synchronization",
5
+ "main": "dist/index.js",
6
+ "module": "dist/index.esm.js",
7
+ "types": "dist/index.d.ts",
8
+ "exports": {
9
+ ".": {
10
+ "import": "./dist/index.esm.js",
11
+ "require": "./dist/index.js",
12
+ "types": "./dist/index.d.ts"
13
+ }
14
+ },
15
+ "files": [
16
+ "dist/**/*",
17
+ "README.md"
18
+ ],
19
+ "scripts": {
20
+ "build": "rollup -c rollup.config.mjs",
21
+ "dev": "rollup -c rollup.config.mjs -w",
22
+ "prepare": "npm run build",
23
+ "prepublishOnly": "npm run build",
24
+ "clean": "rm -rf dist",
25
+ "pack-preview": "npm pack --dry-run"
26
+ },
27
+ "keywords": [
28
+ "react",
29
+ "whiteboard",
30
+ "collaborative",
31
+ "drawing",
32
+ "real-time",
33
+ "websocket",
34
+ "canvas",
35
+ "typescript",
36
+ "component",
37
+ "ui",
38
+ "konva",
39
+ "graphics",
40
+ "visualization",
41
+ "interactive",
42
+ "shapes",
43
+ "freehand",
44
+ "annotation",
45
+ "sketch",
46
+ "diagram",
47
+ "board",
48
+ "online-whiteboard",
49
+ "digital-canvas",
50
+ "collaborative-editing",
51
+ "multi-user",
52
+ "synchronization"
53
+ ],
54
+ "author": {
55
+ "name": "ng-sushil",
56
+ "email": "sushil.shinde@ngenux.com",
57
+ "url": "https://github.com/ng-sushil"
58
+ },
59
+ "license": "MIT",
60
+ "homepage": "https://github.com/ngenux-accelerators/ngage-whiteboarding#readme",
61
+ "repository": {
62
+ "type": "git",
63
+ "url": "git+https://github.com/ngenux-accelerators/ngage-whiteboarding.git"
64
+ },
65
+ "bugs": {
66
+ "url": "https://github.com/ngenux-accelerators/ngage-whiteboarding/issues"
67
+ },
68
+ "publishConfig": {
69
+ "access": "public"
70
+ },
71
+ "peerDependencies": {
72
+ "react": "^16.8.0 || ^17.0.0 || ^18.0.0",
73
+ "react-dom": "^16.8.0 || ^17.0.0 || ^18.0.0"
74
+ },
75
+ "dependencies": {
76
+ "socket.io-client": "^4.7.2",
77
+ "uuid": "^9.0.0",
78
+ "pako": "^2.1.0",
79
+ "react-konva": "^18.2.10",
80
+ "konva": "^9.2.0",
81
+ "lucide-react": "^0.460.0"
82
+ },
83
+ "devDependencies": {
84
+ "@types/react": "^18.2.0",
85
+ "@types/react-dom": "^18.2.0",
86
+ "@types/uuid": "^9.0.0",
87
+ "@types/pako": "^2.0.0",
88
+ "@rollup/plugin-alias": "^5.0.0",
89
+ "@rollup/plugin-commonjs": "^25.0.0",
90
+ "@rollup/plugin-node-resolve": "^15.0.0",
91
+ "@rollup/plugin-typescript": "^11.0.0",
92
+ "rollup": "^3.0.0",
93
+ "rollup-plugin-peer-deps-external": "^2.2.4",
94
+ "typescript": "^5.0.0",
95
+ "tslib": "^2.6.0"
96
+ }
97
+ }