@@ -71,6 +71,13 @@ export interface MessageReactions {
71
71
[ key : string ] : StringNumber [ ]
72
72
}
73
73
74
+ export interface CustomAction {
75
+ name : string
76
+ title : string
77
+ }
78
+
79
+ export type CustomActions = CustomAction [ ]
80
+
74
81
export interface Slots {
75
82
'rooms-header' : VNode [ ]
76
83
'room-list-item' : VNode [ ]
@@ -109,51 +116,48 @@ export interface Slots {
109
116
[ key : string ] : VNode [ ]
110
117
}
111
118
112
- export interface CustomAction {
113
- name : string
114
- title : string
119
+ export interface Props {
120
+ 'current-user-id' : StringNumber
121
+ rooms : Rooms
122
+ messages : Messages
123
+ height ?: string
124
+ theme ?: 'light' | 'dark'
125
+ styles ?: Record < string , Record < string , string > >
126
+ 'loading-rooms' ?: boolean
127
+ 'rooms-loaded' ?: boolean
128
+ 'room-id' ?: StringNumber
129
+ 'load-first-room' ?: boolean
130
+ 'room-message' ?: string
131
+ 'messages-loaded' ?: boolean
132
+ 'room-actions' ?: CustomActions
133
+ 'menu-actions' ?: CustomActions
134
+ 'message-actions' ?: CustomActions
135
+ 'show-add-room' ?: boolean
136
+ 'show-send-icon' ?: boolean
137
+ 'show-files' ?: boolean
138
+ 'show-audio' ?: boolean
139
+ 'show-emojis' ?: boolean
140
+ 'show-reaction-emojis' ?: boolean
141
+ 'show-new-messages-divider' ?: boolean
142
+ 'show-footer' ?: boolean
143
+ 'text-messages' ?: Record < string , StringNumber >
144
+ 'text-formatting' ?: number
145
+ 'responsive-breakpoint' ?: boolean
146
+ 'single-room' ?: boolean
147
+ 'accepted-files' ?: string
115
148
}
116
149
117
- export type CustomActions = CustomAction [ ]
118
-
119
150
export interface AdvancedChatOptions {
120
- props ?: {
121
- height : string
122
- 'current-user-id' : StringNumber
123
- rooms : Rooms
124
- 'loading-rooms' : boolean
125
- 'rooms-loaded' : boolean
126
- 'room-id' : StringNumber
127
- 'load-first-room' : boolean
128
- messages : Messages
129
- 'room-message' : string
130
- 'messages-loaded' : boolean
131
- 'room-actions' : CustomActions
132
- 'menu-actions' : CustomActions
133
- 'message-actions' : CustomActions
134
- 'show-add-room' : boolean
135
- 'show-send-icon' : boolean
136
- 'show-files' : boolean
137
- 'show-audio' : boolean
138
- 'show-emojis' : boolean
139
- 'show-reaction-emojis' : boolean
140
- 'show-new-messages-divider' : boolean
141
- 'show-footer' : boolean
142
- 'text-messages' : { }
143
- 'text-formatting' : number
144
- 'responsive-breakpoint' : boolean
145
- 'single-room' : boolean
146
- theme : string
147
- 'accepted-files' : string
148
- styles : { [ key : string ] : string }
149
- }
150
-
151
+ props : Props
151
152
slots ?: Slots
152
153
}
153
154
154
- export default class VueAdvancedChat extends Vue {
155
+ export default class AdvancedChat extends Vue {
155
156
rooms : Rooms
156
157
messages : Messages
158
+
157
159
$slots : Slots
160
+ $props : Props
161
+
158
162
static install : PluginFunction < AdvancedChatOptions >
159
163
}
0 commit comments