@bcc-code/vue-bcc-chat-ui 1.5.0 → 1.6.1

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/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@bcc-code/vue-bcc-chat-ui",
3
3
  "author": "bcc-code",
4
4
  "license": "Apache-2.0",
5
- "version": "1.5.0",
5
+ "version": "1.6.1",
6
6
  "type": "module",
7
7
  "private": false,
8
8
  "files": [
@@ -34,9 +34,19 @@ watch(chatGroup, (exists: null) => {
34
34
  nextTick(() => {
35
35
  watchAndApplyStyle(
36
36
  ".bcc-chat-message-list",
37
- ".cc__imageviewer__close-button",
38
- { "padding-top": "env(safe-area-inset-top)" },
39
- 'cometchat-full-screen-viewer'
37
+ [{
38
+ selector: '.cc__imageviewer__close-button',
39
+ style: { "padding-top": "env(safe-area-inset-top)" },
40
+ shadowDomSelector: 'cometchat-full-screen-viewer'
41
+ }, {
42
+ selector: '.cc__text',
43
+ style: { color: 'var(--cc__text-color)' },
44
+ shadowDomSelector: 'cometchat-text-bubble'
45
+ }, {
46
+ selector: '.cc__linkpreview-title',
47
+ style: { color: 'var(--cc__text-color)' },
48
+ shadowDomSelector: 'link-preview'
49
+ }]
40
50
  );
41
51
  });
42
52
  })
@@ -186,8 +196,66 @@ function getMessageListConfiguration(): MessageListConfiguration {
186
196
  </template>
187
197
 
188
198
  <style lang="scss">
199
+ body {
200
+ background: #fff;
201
+ color: #000;
202
+
203
+ @media (prefers-color-scheme: dark) {
204
+ background: #000;
205
+ color: #fff;
206
+ }
207
+ }
208
+
209
+ /*
210
+ primary: my bubble
211
+ accent: message bar text
212
+ accent100: message bar and widget buttons bg, others bubble
213
+ accent200: horizontal line on message bar
214
+ accent500: icons on message bar
215
+ accent600: dates and date separator and popup icons
216
+ accent700: avatar background, widget buttons text
217
+ accent900: text in avatar
218
+ */
219
+
189
220
  .bcc-chat-message-list {
190
221
  height: 100%;
222
+ --cc__primary: linear-gradient(45deg, #CFEAC8 0%, #E7F5E3 100%);
223
+ --cc__background: #F3FAF7;
224
+ --cc__secondary: white;
225
+ --cc__accent: #004e48;
226
+ --cc__accent50: rgba(62, 142, 117, 0.04);
227
+ --cc__accent100: #FFFFFF;
228
+ --cc__accent200: rgba(62, 142, 117, 0.15);
229
+ --cc__accent300: rgba(62, 142, 117, 0.24);
230
+ --cc__accent400: rgba(62, 142, 117, 0.33);
231
+ --cc__accent500: rgba(62, 142, 117, 0.46);
232
+ --cc__accent600: #004E48;
233
+ --cc__accent700: #254A40;
234
+ --cc__accent800: rgba(62, 142, 117, 0.82);
235
+ --cc__accent900: #F3FAF7;
236
+ --cc__text-color: #000;
237
+
238
+ @media (prefers-color-scheme: dark) {
239
+ --cc__primary: linear-gradient(45deg, #3F4669 0%, #57639E 100%);
240
+ --cc__background: linear-gradient(45deg, transparent 0%, rgba(63,70,105,0.8) 100%),
241
+ linear-gradient(315deg, transparent 0%, #020A0B 100%),
242
+ linear-gradient(135deg, transparent 0%, #020A0B 100%),
243
+ #020A0B;
244
+ --cc__secondary: #111827;
245
+ --cc__accent: #6274AE;
246
+ --cc__accent50: rgba(98, 116, 174, 0.24);
247
+ --cc__accent100: linear-gradient(45deg, hsl(221, 39%, 6%) 0%, #111827 100%);
248
+ --cc__accent200: rgba(98, 116, 174, 0.35);
249
+ --cc__accent300: rgba(98, 116, 174, 0.44);
250
+ --cc__accent400: rgba(98, 116, 174, 0.53);
251
+ --cc__accent500: rgba(98, 116, 174, 0.66);
252
+ --cc__accent600: #758ABC;
253
+ --cc__accent700: #6274AE;
254
+ --cc__accent800: rgba(98, 116, 174, 0.92);
255
+ --cc__accent900: #F3FAF7;
256
+ --cc__text-color: #fff;
257
+ }
258
+
191
259
  /* 1. Wrapper for Messages component */
192
260
  .cc-messages-wrapper {
193
261
  /* 1.1 Messages component */
@@ -198,6 +266,13 @@ function getMessageListConfiguration(): MessageListConfiguration {
198
266
  }
199
267
  }
200
268
  }
269
+
270
+ .cc-messagebubble-wrapper__messageoptions {
271
+ border-radius: 8px;
272
+ .cc-context-menu__top-menu {
273
+ border: 1px var(--cc__secondary) solid !important;
274
+ }
275
+ }
201
276
  }
202
277
 
203
278
  .cc-messagecomposer__emojikeyboard {