@nice2dev/ui-communication 1.0.11 → 1.0.14
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 +23 -9
- package/dist/collaboration/collaborative-form.d.ts +1 -1
- package/dist/components/NiceChannelView.d.ts +1 -1
- package/dist/components/NiceCollaborativeEditor.d.ts +1 -1
- package/dist/components/NiceWhiteboard.d.ts +1 -1
- package/dist/index.cjs +4 -4
- package/dist/index.mjs +1402 -1402
- package/dist/services/pstnGatewayService.d.ts +1 -1
- package/dist/transport/communicationTransport.d.ts +1 -1
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -8,15 +8,15 @@
|
|
|
8
8
|
|
|
9
9
|
Main entry-point with 7 modes:
|
|
10
10
|
|
|
11
|
-
| Mode
|
|
12
|
-
|
|
13
|
-
| **bubble**
|
|
14
|
-
| **chat**
|
|
15
|
-
| **messenger**
|
|
16
|
-
| **workspace**
|
|
17
|
-
| **call**
|
|
18
|
-
| **conference** | Multi-participant conference
|
|
19
|
-
| **whiteboard** | Collaborative whiteboard
|
|
11
|
+
| Mode | Description |
|
|
12
|
+
| -------------- | --------------------------------------------- |
|
|
13
|
+
| **bubble** | Floating chat bubble (customer support style) |
|
|
14
|
+
| **chat** | Standalone chat panel |
|
|
15
|
+
| **messenger** | Full messenger with contact list |
|
|
16
|
+
| **workspace** | Teams-style workspace with rail navigation |
|
|
17
|
+
| **call** | Audio/video call UI |
|
|
18
|
+
| **conference** | Multi-participant conference |
|
|
19
|
+
| **whiteboard** | Collaborative whiteboard |
|
|
20
20
|
|
|
21
21
|
### Components
|
|
22
22
|
|
|
@@ -39,6 +39,20 @@ Main entry-point with 7 modes:
|
|
|
39
39
|
npm install @nice2dev/ui-communication
|
|
40
40
|
```
|
|
41
41
|
|
|
42
|
+
## Styling
|
|
43
|
+
|
|
44
|
+
This package ships unstyled component logic. Import the shared CSS bundle once at your app entrypoint:
|
|
45
|
+
|
|
46
|
+
```tsx
|
|
47
|
+
import '@nice2dev/ui/style.css';
|
|
48
|
+
```
|
|
49
|
+
|
|
50
|
+
Optional: opt into the legacy shorthand token aliases (`--bg-*`, `--text-*`, `--border-*`, ...) when migrating from a custom design-token system:
|
|
51
|
+
|
|
52
|
+
```tsx
|
|
53
|
+
import '@nice2dev/ui/css/legacy-bg-text-aliases.css';
|
|
54
|
+
```
|
|
55
|
+
|
|
42
56
|
## License
|
|
43
57
|
|
|
44
58
|
MIT © NiceToDev
|
|
@@ -54,7 +54,7 @@ export interface CollaborativeFieldProps {
|
|
|
54
54
|
/**
|
|
55
55
|
* Wrapper component showing collaborative field state
|
|
56
56
|
*/
|
|
57
|
-
export declare function CollaborativeFieldWrapper({ name, focusedBy, children }: CollaborativeFieldProps): import("react/jsx-runtime").JSX.Element;
|
|
57
|
+
export declare function CollaborativeFieldWrapper({ name: _name, focusedBy, children }: CollaborativeFieldProps): import("react/jsx-runtime").JSX.Element;
|
|
58
58
|
/**
|
|
59
59
|
* Convenience hook for individual form field
|
|
60
60
|
*/
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { NiceChannelViewProps } from '../types/communicationTypes';
|
|
2
2
|
|
|
3
|
-
export declare function NiceChannelView({ channel, messages, users, currentUser, team, isLoading, hasMore, enableThreads, enableReactions, enableAttachments, onSendMessage, onEditMessage, onDeleteMessage, onReactToMessage, onPinMessage, onLoadMoreMessages, onStartCall, className, style, id, 'data-testid': testId, }: NiceChannelViewProps): import("react/jsx-runtime").JSX.Element;
|
|
3
|
+
export declare function NiceChannelView({ channel, messages, users, currentUser, team: _team, isLoading, hasMore, enableThreads, enableReactions, enableAttachments, onSendMessage, onEditMessage: _onEditMessage, onDeleteMessage: _onDeleteMessage, onReactToMessage, onPinMessage: _onPinMessage, onLoadMoreMessages, onStartCall, className, style, id, 'data-testid': testId, }: NiceChannelViewProps): import("react/jsx-runtime").JSX.Element;
|
|
4
4
|
export default NiceChannelView;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { NiceCollaborativeEditorProps } from '../types/communicationTypes';
|
|
2
2
|
|
|
3
|
-
export declare function NiceCollaborativeEditor({ editorType, sessionId, currentUser, participants: propParticipants, onOperation, onParticipantJoin, onParticipantLeave, onCursorMove, isReadOnly, showParticipants, showCursors, pendingOperations, conflictCount, className, style, children, 'data-testid': testId, }: NiceCollaborativeEditorProps): import("react/jsx-runtime").JSX.Element;
|
|
3
|
+
export declare function NiceCollaborativeEditor({ editorType, sessionId, currentUser, participants: propParticipants, onOperation: _onOperation, onParticipantJoin: _onParticipantJoin, onParticipantLeave: _onParticipantLeave, onCursorMove, isReadOnly, showParticipants, showCursors, pendingOperations, conflictCount, className, style, children, 'data-testid': testId, }: NiceCollaborativeEditorProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { NiceWhiteboardProps } from '../types/communicationTypes';
|
|
2
2
|
|
|
3
|
-
export declare function NiceWhiteboard({ session: initialSession, currentUser, onOperation, remoteOperations, readonly, enableLayers, enableExport, enableLaserPointer, enableVectorEditor, enableDiagramEditor, onExport, onSessionUpdate, storageConfig, className, style, 'data-testid': testId, }: NiceWhiteboardProps): import("react/jsx-runtime").JSX.Element;
|
|
3
|
+
export declare function NiceWhiteboard({ session: initialSession, currentUser, onOperation, remoteOperations, readonly, enableLayers, enableExport, enableLaserPointer: _enableLaserPointer, enableVectorEditor, enableDiagramEditor, onExport, onSessionUpdate, storageConfig, className, style, 'data-testid': testId, }: NiceWhiteboardProps): import("react/jsx-runtime").JSX.Element;
|