@hh.ru/magritte-ui-chat-bubble 1.5.0 → 1.5.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/ChatBubble.js +2 -2
- package/File.js +1 -1
- package/Media.js +1 -1
- package/Message.js +1 -1
- package/Reply.js +1 -1
- package/Snippet.js +1 -1
- package/Status.js +1 -1
- package/chat-bubble-BSNa94vA.js +5 -0
- package/chat-bubble-BSNa94vA.js.map +1 -0
- package/chat-bubble-fnws1moq.js +5 -0
- package/chat-bubble-fnws1moq.js.map +1 -0
- package/index.css +48 -48
- package/index.js +2 -2
- package/internal/Meta.js +1 -1
- package/internal/Tail.js +1 -1
- package/package.json +9 -9
- package/chat-bubble-DLA2EnbA.js +0 -5
- package/chat-bubble-DLA2EnbA.js.map +0 -1
- package/chat-bubble-Q7lN-65Z.js +0 -5
- package/chat-bubble-Q7lN-65Z.js.map +0 -1
package/ChatBubble.js
CHANGED
|
@@ -21,14 +21,14 @@ import { IconDefaultPropsContext } from '@hh.ru/magritte-ui-icon';
|
|
|
21
21
|
import { ExclamationCircleFilledSize24 } from '@hh.ru/magritte-ui-icon/icon';
|
|
22
22
|
import { Menu } from '@hh.ru/magritte-ui-menu';
|
|
23
23
|
import { Text } from '@hh.ru/magritte-ui-typography';
|
|
24
|
-
import { s as styles } from './chat-bubble-
|
|
24
|
+
import { s as styles } from './chat-bubble-fnws1moq.js';
|
|
25
25
|
import '@hh.ru/magritte-ui-cell';
|
|
26
26
|
import '@hh.ru/magritte-ui-link';
|
|
27
27
|
import '@hh.ru/magritte-ui-loader';
|
|
28
28
|
import '@hh.ru/magritte-common-use-multiple-refs';
|
|
29
29
|
import '@hh.ru/magritte-common-use-translation';
|
|
30
30
|
import '@hh.ru/magritte-ui-tooltip';
|
|
31
|
-
import './chat-bubble-
|
|
31
|
+
import './chat-bubble-BSNa94vA.js';
|
|
32
32
|
|
|
33
33
|
const ChatBubble = forwardRef(({ actions, buttons, children, header, errorActions, mode = 'incoming', showTail = false, status, time, error = false, errorText, 'data-qa': dataQa = 'chat-bubble', className, }, ref) => {
|
|
34
34
|
const [menuVisible, setMenuVisible] = useState(false);
|
package/File.js
CHANGED
|
@@ -8,7 +8,7 @@ import { markMetaHost } from './internal/utils.js';
|
|
|
8
8
|
import { ArrowDownLineOutlinedSize24, DocumentOutlinedSize24 } from '@hh.ru/magritte-ui-icon/icon';
|
|
9
9
|
import { LinkDefaultPropsContext } from '@hh.ru/magritte-ui-link';
|
|
10
10
|
import { Loader } from '@hh.ru/magritte-ui-loader';
|
|
11
|
-
import { s as styles } from './chat-bubble-
|
|
11
|
+
import { s as styles } from './chat-bubble-fnws1moq.js';
|
|
12
12
|
|
|
13
13
|
/** Прикреплённый файл */
|
|
14
14
|
const ChatBubbleFileComponent = forwardRef(({ 'data-qa': dataQa = 'chat-bubble-file', description, meta, name, preview, state = 'loaded', previewAlt, ...props }, ref) => {
|
package/Media.js
CHANGED
|
@@ -3,7 +3,7 @@ import { jsxs, Fragment, jsx } from 'react/jsx-runtime';
|
|
|
3
3
|
import { forwardRef } from 'react';
|
|
4
4
|
import { markMetaHost } from './internal/utils.js';
|
|
5
5
|
import { Text } from '@hh.ru/magritte-ui-typography';
|
|
6
|
-
import { s as styles } from './chat-bubble-
|
|
6
|
+
import { s as styles } from './chat-bubble-fnws1moq.js';
|
|
7
7
|
|
|
8
8
|
/**
|
|
9
9
|
* Медиа в сообщении
|
package/Message.js
CHANGED
|
@@ -5,7 +5,7 @@ import { getColors } from './internal/colors.js';
|
|
|
5
5
|
import { useChatBubbleMode } from './internal/mode.js';
|
|
6
6
|
import { markMetaHost } from './internal/utils.js';
|
|
7
7
|
import { Text } from '@hh.ru/magritte-ui-typography';
|
|
8
|
-
import { s as styles } from './chat-bubble-
|
|
8
|
+
import { s as styles } from './chat-bubble-fnws1moq.js';
|
|
9
9
|
|
|
10
10
|
/**
|
|
11
11
|
* Текстовая часть сообщения.
|
package/Reply.js
CHANGED
|
@@ -4,7 +4,7 @@ import { forwardRef } from 'react';
|
|
|
4
4
|
import { getColors } from './internal/colors.js';
|
|
5
5
|
import { useChatBubbleMode } from './internal/mode.js';
|
|
6
6
|
import { Text } from '@hh.ru/magritte-ui-typography';
|
|
7
|
-
import { s as styles } from './chat-bubble-
|
|
7
|
+
import { s as styles } from './chat-bubble-fnws1moq.js';
|
|
8
8
|
|
|
9
9
|
/**
|
|
10
10
|
* Цитата сообщения, на которое отвечают (ставится в слот `header`)
|
package/Snippet.js
CHANGED
|
@@ -4,7 +4,7 @@ import { forwardRef } from 'react';
|
|
|
4
4
|
import { getColors } from './internal/colors.js';
|
|
5
5
|
import { useChatBubbleMode } from './internal/mode.js';
|
|
6
6
|
import { Text } from '@hh.ru/magritte-ui-typography';
|
|
7
|
-
import { s as styles } from './chat-bubble-
|
|
7
|
+
import { s as styles } from './chat-bubble-fnws1moq.js';
|
|
8
8
|
|
|
9
9
|
/**
|
|
10
10
|
* Сниппет: дополнительная информация к сообщению
|
package/Status.js
CHANGED
|
@@ -7,7 +7,7 @@ import { getColors } from './internal/colors.js';
|
|
|
7
7
|
import { useChatBubbleMode } from './internal/mode.js';
|
|
8
8
|
import { EyeOutlinedSize16, ClockOutlinedSize16, CheckOutlinedSize16, CheckDoubleOutlinedSize16 } from '@hh.ru/magritte-ui-icon/icon';
|
|
9
9
|
import { TooltipHover } from '@hh.ru/magritte-ui-tooltip';
|
|
10
|
-
import { s as styles } from './chat-bubble-
|
|
10
|
+
import { s as styles } from './chat-bubble-fnws1moq.js';
|
|
11
11
|
|
|
12
12
|
const ICON = {
|
|
13
13
|
sending: ClockOutlinedSize16,
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import './index.css';
|
|
2
|
+
var styles = {"tail":"magritte-tail___-1lJ0_1-5-1","tail_outgoing":"magritte-tail_outgoing___cnyh3_1-5-1","tailOutgoing":"magritte-tail_outgoing___cnyh3_1-5-1","meta":"magritte-meta___HT7lp_1-5-1"};
|
|
3
|
+
|
|
4
|
+
export { styles as s };
|
|
5
|
+
//# sourceMappingURL=chat-bubble-BSNa94vA.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"chat-bubble-BSNa94vA.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import './index.css';
|
|
2
|
+
var styles = {"chat-bubble":"magritte-chat-bubble___ds9CP_1-5-1","chatBubble":"magritte-chat-bubble___ds9CP_1-5-1","outgoing":"magritte-outgoing___3n00o_1-5-1","bot":"magritte-bot___Z6vZA_1-5-1","row":"magritte-row___mQNnt_1-5-1","bubble":"magritte-bubble___NVuDI_1-5-1","with-tail":"magritte-with-tail___IdixJ_1-5-1","withTail":"magritte-with-tail___IdixJ_1-5-1","header":"magritte-header___Px2to_1-5-1","message-title":"magritte-message-title___dgBFk_1-5-1","messageTitle":"magritte-message-title___dgBFk_1-5-1","message":"magritte-message___7TEpw_1-5-1","buttons":"magritte-buttons___yQqBi_1-5-1","actions":"magritte-actions___I5GSz_1-5-1","error-text":"magritte-error-text___1ZxWY_1-5-1","errorText":"magritte-error-text___1ZxWY_1-5-1","file":"magritte-file___k2IKy_1-5-1","file-preview":"magritte-file-preview___eJKu8_1-5-1","filePreview":"magritte-file-preview___eJKu8_1-5-1","media":"magritte-media___9jH2k_1-5-1","media-blur":"magritte-media-blur___TbiMa_1-5-1","mediaBlur":"magritte-media-blur___TbiMa_1-5-1","media-image":"magritte-media-image___G-FkF_1-5-1","mediaImage":"magritte-media-image___G-FkF_1-5-1","media-content":"magritte-media-content___n3XbD_1-5-1","mediaContent":"magritte-media-content___n3XbD_1-5-1","media-format":"magritte-media-format___AdfCK_1-5-1","mediaFormat":"magritte-media-format___AdfCK_1-5-1","media-meta":"magritte-media-meta___oSxxr_1-5-1","mediaMeta":"magritte-media-meta___oSxxr_1-5-1","reply":"magritte-reply___-QCK7_1-5-1","reply-preview":"magritte-reply-preview___qvlNT_1-5-1","replyPreview":"magritte-reply-preview___qvlNT_1-5-1","reply-body":"magritte-reply-body___f2xx7_1-5-1","replyBody":"magritte-reply-body___f2xx7_1-5-1","snippet":"magritte-snippet___8k9xb_1-5-1","status":"magritte-status___dHzCt_1-5-1","content-with-header":"magritte-content-with-header___wiNKB_1-5-1","contentWithHeader":"magritte-content-with-header___wiNKB_1-5-1"};
|
|
3
|
+
|
|
4
|
+
export { styles as s };
|
|
5
|
+
//# sourceMappingURL=chat-bubble-fnws1moq.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"chat-bubble-fnws1moq.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;"}
|
package/index.css
CHANGED
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
--magritte-color-component-chat-bubble-snippet-background-outgoing-v25-0-1:#90ACC1;
|
|
35
35
|
--magritte-color-component-chat-bubble-snippet-line-incoming-v25-0-1:#557B96;
|
|
36
36
|
}
|
|
37
|
-
.magritte-chat-bubble___ds9CP_1-5-
|
|
37
|
+
.magritte-chat-bubble___ds9CP_1-5-1{
|
|
38
38
|
--magritte-chat-bubble-background:var(--magritte-color-component-chat-bubble-background-incoming-v25-0-1);
|
|
39
39
|
--magritte-chat-bubble-border:var(--magritte-color-component-chat-bubble-border-incoming-v25-0-1);
|
|
40
40
|
--magritte-chat-bubble-snippet-background:var(--magritte-color-component-chat-bubble-snippet-background-incoming-v25-0-1);
|
|
@@ -45,16 +45,16 @@
|
|
|
45
45
|
max-width:calc(100% - 40px);
|
|
46
46
|
}
|
|
47
47
|
@media (min-width: 1020px){
|
|
48
|
-
body.magritte-old-layout .magritte-chat-bubble___ds9CP_1-5-
|
|
48
|
+
body.magritte-old-layout .magritte-chat-bubble___ds9CP_1-5-1{
|
|
49
49
|
max-width:min(460px, 100%);
|
|
50
50
|
}
|
|
51
51
|
}
|
|
52
52
|
@media (min-width: 1024px){
|
|
53
|
-
body:not(.magritte-old-layout) .magritte-chat-bubble___ds9CP_1-5-
|
|
53
|
+
body:not(.magritte-old-layout) .magritte-chat-bubble___ds9CP_1-5-1{
|
|
54
54
|
max-width:min(460px, 100%);
|
|
55
55
|
}
|
|
56
56
|
}
|
|
57
|
-
.magritte-outgoing___3n00o_1-5-
|
|
57
|
+
.magritte-outgoing___3n00o_1-5-1{
|
|
58
58
|
--magritte-chat-bubble-background:var(--magritte-color-component-chat-bubble-background-outgoing-v25-0-1);
|
|
59
59
|
--magritte-chat-bubble-border:var(--magritte-color-component-chat-bubble-border-outgoing-v25-0-1);
|
|
60
60
|
--magritte-chat-bubble-snippet-background:var(--magritte-color-component-chat-bubble-snippet-background-outgoing-v25-0-1);
|
|
@@ -62,19 +62,19 @@
|
|
|
62
62
|
align-items:flex-end;
|
|
63
63
|
margin-left:auto;
|
|
64
64
|
}
|
|
65
|
-
.magritte-bot___Z6vZA_1-5-
|
|
65
|
+
.magritte-bot___Z6vZA_1-5-1{
|
|
66
66
|
--magritte-chat-bubble-background:var(--magritte-color-component-chat-bubble-background-bot-v25-0-1);
|
|
67
67
|
--magritte-chat-bubble-border:var(--magritte-color-component-chat-bubble-border-bot-v25-0-1);
|
|
68
68
|
--magritte-chat-bubble-snippet-background:var(--magritte-color-component-chat-bubble-snippet-background-bot-v25-0-1);
|
|
69
69
|
--magritte-chat-bubble-snippet-line:var(--magritte-color-component-chat-bubble-snippet-line-bot-v25-0-1);
|
|
70
70
|
}
|
|
71
|
-
.magritte-row___mQNnt_1-5-
|
|
71
|
+
.magritte-row___mQNnt_1-5-1{
|
|
72
72
|
display:flex;
|
|
73
73
|
align-items:flex-end;
|
|
74
74
|
gap:8px;
|
|
75
75
|
max-width:100%;
|
|
76
76
|
}
|
|
77
|
-
.magritte-bubble___NVuDI_1-5-
|
|
77
|
+
.magritte-bubble___NVuDI_1-5-1{
|
|
78
78
|
position:relative;
|
|
79
79
|
box-sizing:border-box;
|
|
80
80
|
min-width:0;
|
|
@@ -85,59 +85,59 @@
|
|
|
85
85
|
border-radius:20px;
|
|
86
86
|
overflow-wrap:break-word;
|
|
87
87
|
}
|
|
88
|
-
.magritte-with-tail___IdixJ_1-5-
|
|
88
|
+
.magritte-with-tail___IdixJ_1-5-1 .magritte-bubble___NVuDI_1-5-1{
|
|
89
89
|
border-bottom-left-radius:0;
|
|
90
90
|
}
|
|
91
|
-
.magritte-with-tail___IdixJ_1-5-
|
|
91
|
+
.magritte-with-tail___IdixJ_1-5-1.magritte-outgoing___3n00o_1-5-1 .magritte-bubble___NVuDI_1-5-1{
|
|
92
92
|
border-bottom-left-radius:20px;
|
|
93
93
|
border-bottom-right-radius:0;
|
|
94
94
|
}
|
|
95
|
-
.magritte-header___Px2to_1-5-
|
|
95
|
+
.magritte-header___Px2to_1-5-1{
|
|
96
96
|
display:flex;
|
|
97
97
|
flex-direction:column;
|
|
98
98
|
gap:8px;
|
|
99
99
|
margin-bottom:4px;
|
|
100
100
|
}
|
|
101
|
-
.magritte-message-title___dgBFk_1-5-
|
|
101
|
+
.magritte-message-title___dgBFk_1-5-1{
|
|
102
102
|
margin-bottom:4px;
|
|
103
103
|
}
|
|
104
|
-
.magritte-message___7TEpw_1-5-
|
|
104
|
+
.magritte-message___7TEpw_1-5-1:not(:first-child){
|
|
105
105
|
margin-top:8px;
|
|
106
106
|
}
|
|
107
|
-
.magritte-buttons___yQqBi_1-5-
|
|
107
|
+
.magritte-buttons___yQqBi_1-5-1{
|
|
108
108
|
display:grid;
|
|
109
109
|
grid-template-columns:repeat(2, 1fr);
|
|
110
110
|
gap:8px;
|
|
111
111
|
width:100%;
|
|
112
112
|
margin-top:4px;
|
|
113
113
|
}
|
|
114
|
-
.magritte-buttons___yQqBi_1-5-
|
|
114
|
+
.magritte-buttons___yQqBi_1-5-1 > *:last-child:nth-child(odd){
|
|
115
115
|
grid-column:span 2;
|
|
116
116
|
}
|
|
117
|
-
.magritte-actions___I5GSz_1-5-
|
|
117
|
+
.magritte-actions___I5GSz_1-5-1{
|
|
118
118
|
display:flex;
|
|
119
119
|
flex-wrap:wrap;
|
|
120
120
|
gap:2px;
|
|
121
121
|
margin-top:4px;
|
|
122
122
|
}
|
|
123
|
-
.magritte-error-text___1ZxWY_1-5-
|
|
123
|
+
.magritte-error-text___1ZxWY_1-5-1{
|
|
124
124
|
margin-top:2px;
|
|
125
125
|
}
|
|
126
|
-
.magritte-file___k2IKy_1-5-
|
|
126
|
+
.magritte-file___k2IKy_1-5-1{
|
|
127
127
|
display:flex;
|
|
128
128
|
align-items:flex-end;
|
|
129
129
|
}
|
|
130
|
-
.magritte-file___k2IKy_1-5-
|
|
130
|
+
.magritte-file___k2IKy_1-5-1 + .magritte-file___k2IKy_1-5-1{
|
|
131
131
|
margin-top:12px;
|
|
132
132
|
}
|
|
133
|
-
.magritte-file-preview___eJKu8_1-5-
|
|
133
|
+
.magritte-file-preview___eJKu8_1-5-1{
|
|
134
134
|
display:block;
|
|
135
135
|
width:48px;
|
|
136
136
|
height:48px;
|
|
137
137
|
border-radius:8px;
|
|
138
138
|
object-fit:cover;
|
|
139
139
|
}
|
|
140
|
-
.magritte-media___9jH2k_1-5-
|
|
140
|
+
.magritte-media___9jH2k_1-5-1{
|
|
141
141
|
display:flex;
|
|
142
142
|
position:relative;
|
|
143
143
|
box-sizing:border-box;
|
|
@@ -150,18 +150,18 @@
|
|
|
150
150
|
box-shadow:inset 0 0 0 1px var(--magritte-color-component-chat-bubble-border-image-v25-0-1);
|
|
151
151
|
}
|
|
152
152
|
@media (min-width: 1020px){
|
|
153
|
-
body.magritte-old-layout .magritte-media___9jH2k_1-5-
|
|
153
|
+
body.magritte-old-layout .magritte-media___9jH2k_1-5-1{
|
|
154
154
|
max-width:452px;
|
|
155
155
|
max-height:452px;
|
|
156
156
|
}
|
|
157
157
|
}
|
|
158
158
|
@media (min-width: 1024px){
|
|
159
|
-
body:not(.magritte-old-layout) .magritte-media___9jH2k_1-5-
|
|
159
|
+
body:not(.magritte-old-layout) .magritte-media___9jH2k_1-5-1{
|
|
160
160
|
max-width:452px;
|
|
161
161
|
max-height:452px;
|
|
162
162
|
}
|
|
163
163
|
}
|
|
164
|
-
.magritte-media-blur___TbiMa_1-5-
|
|
164
|
+
.magritte-media-blur___TbiMa_1-5-1{
|
|
165
165
|
position:absolute;
|
|
166
166
|
top:-96px;
|
|
167
167
|
left:-96px;
|
|
@@ -171,7 +171,7 @@
|
|
|
171
171
|
filter:blur(48px);
|
|
172
172
|
object-fit:cover;
|
|
173
173
|
}
|
|
174
|
-
.magritte-media-image___G-FkF_1-5-
|
|
174
|
+
.magritte-media-image___G-FkF_1-5-1{
|
|
175
175
|
display:block;
|
|
176
176
|
position:relative;
|
|
177
177
|
max-width:100%;
|
|
@@ -179,23 +179,23 @@
|
|
|
179
179
|
margin:auto;
|
|
180
180
|
}
|
|
181
181
|
@media (min-width: 1020px){
|
|
182
|
-
body.magritte-old-layout .magritte-media-image___G-FkF_1-5-
|
|
182
|
+
body.magritte-old-layout .magritte-media-image___G-FkF_1-5-1{
|
|
183
183
|
max-height:452px;
|
|
184
184
|
}
|
|
185
185
|
}
|
|
186
186
|
@media (min-width: 1024px){
|
|
187
|
-
body:not(.magritte-old-layout) .magritte-media-image___G-FkF_1-5-
|
|
187
|
+
body:not(.magritte-old-layout) .magritte-media-image___G-FkF_1-5-1{
|
|
188
188
|
max-height:452px;
|
|
189
189
|
}
|
|
190
190
|
}
|
|
191
|
-
.magritte-media-content___n3XbD_1-5-
|
|
191
|
+
.magritte-media-content___n3XbD_1-5-1{
|
|
192
192
|
display:flex;
|
|
193
193
|
position:absolute;
|
|
194
194
|
inset:0;
|
|
195
195
|
align-items:center;
|
|
196
196
|
justify-content:center;
|
|
197
197
|
}
|
|
198
|
-
.magritte-media-format___AdfCK_1-5-
|
|
198
|
+
.magritte-media-format___AdfCK_1-5-1{
|
|
199
199
|
display:flex;
|
|
200
200
|
position:absolute;
|
|
201
201
|
top:4px;
|
|
@@ -205,7 +205,7 @@
|
|
|
205
205
|
border-radius:12px;
|
|
206
206
|
backdrop-filter:blur(24px);
|
|
207
207
|
}
|
|
208
|
-
.magritte-media-meta___oSxxr_1-5-
|
|
208
|
+
.magritte-media-meta___oSxxr_1-5-1{
|
|
209
209
|
--magritte-ui-text-color-override:var(--magritte-color-text-constant-v25-0-1);
|
|
210
210
|
display:flex;
|
|
211
211
|
position:absolute;
|
|
@@ -217,16 +217,16 @@
|
|
|
217
217
|
border-radius:12px;
|
|
218
218
|
backdrop-filter:blur(24px);
|
|
219
219
|
}
|
|
220
|
-
.magritte-media-meta___oSxxr_1-5-
|
|
220
|
+
.magritte-media-meta___oSxxr_1-5-1:empty{
|
|
221
221
|
display:none;
|
|
222
222
|
}
|
|
223
|
-
.magritte-media-meta___oSxxr_1-5-
|
|
223
|
+
.magritte-media-meta___oSxxr_1-5-1 > span{
|
|
224
224
|
margin-left:0;
|
|
225
225
|
}
|
|
226
|
-
.magritte-media___9jH2k_1-5-
|
|
226
|
+
.magritte-media___9jH2k_1-5-1:not(:last-child){
|
|
227
227
|
margin-bottom:12px;
|
|
228
228
|
}
|
|
229
|
-
.magritte-reply___-QCK7_1-5-
|
|
229
|
+
.magritte-reply___-QCK7_1-5-1{
|
|
230
230
|
display:flex;
|
|
231
231
|
position:relative;
|
|
232
232
|
align-items:center;
|
|
@@ -238,7 +238,7 @@
|
|
|
238
238
|
margin-bottom:4px;
|
|
239
239
|
overflow:hidden;
|
|
240
240
|
}
|
|
241
|
-
.magritte-reply___-QCK7_1-5-
|
|
241
|
+
.magritte-reply___-QCK7_1-5-1::before{
|
|
242
242
|
content:'';
|
|
243
243
|
position:absolute;
|
|
244
244
|
top:0;
|
|
@@ -247,7 +247,7 @@
|
|
|
247
247
|
width:4px;
|
|
248
248
|
background-color:var(--magritte-chat-bubble-snippet-line);
|
|
249
249
|
}
|
|
250
|
-
.magritte-reply-preview___qvlNT_1-5-
|
|
250
|
+
.magritte-reply-preview___qvlNT_1-5-1{
|
|
251
251
|
display:block;
|
|
252
252
|
flex-shrink:0;
|
|
253
253
|
width:40px;
|
|
@@ -257,12 +257,12 @@
|
|
|
257
257
|
outline-offset:-1px;
|
|
258
258
|
object-fit:cover;
|
|
259
259
|
}
|
|
260
|
-
.magritte-reply-body___f2xx7_1-5-
|
|
260
|
+
.magritte-reply-body___f2xx7_1-5-1{
|
|
261
261
|
display:flex;
|
|
262
262
|
flex-direction:column;
|
|
263
263
|
min-width:0;
|
|
264
264
|
}
|
|
265
|
-
.magritte-snippet___8k9xb_1-5-
|
|
265
|
+
.magritte-snippet___8k9xb_1-5-1{
|
|
266
266
|
display:flex;
|
|
267
267
|
position:relative;
|
|
268
268
|
flex-direction:column;
|
|
@@ -273,10 +273,10 @@
|
|
|
273
273
|
border-radius:8px;
|
|
274
274
|
overflow:hidden;
|
|
275
275
|
}
|
|
276
|
-
.magritte-snippet___8k9xb_1-5-
|
|
276
|
+
.magritte-snippet___8k9xb_1-5-1:not(:last-child){
|
|
277
277
|
margin-bottom:4px;
|
|
278
278
|
}
|
|
279
|
-
.magritte-snippet___8k9xb_1-5-
|
|
279
|
+
.magritte-snippet___8k9xb_1-5-1::before{
|
|
280
280
|
content:'';
|
|
281
281
|
position:absolute;
|
|
282
282
|
top:0;
|
|
@@ -285,7 +285,7 @@
|
|
|
285
285
|
width:4px;
|
|
286
286
|
background-color:var(--magritte-chat-bubble-snippet-line);
|
|
287
287
|
}
|
|
288
|
-
.magritte-snippet___8k9xb_1-5-
|
|
288
|
+
.magritte-snippet___8k9xb_1-5-1 img{
|
|
289
289
|
display:block;
|
|
290
290
|
max-width:100%;
|
|
291
291
|
border-radius:4px;
|
|
@@ -293,32 +293,32 @@
|
|
|
293
293
|
outline-offset:-1px;
|
|
294
294
|
margin-top:6px;
|
|
295
295
|
}
|
|
296
|
-
.magritte-snippet___8k9xb_1-5-
|
|
296
|
+
.magritte-snippet___8k9xb_1-5-1:not(:first-child){
|
|
297
297
|
margin-top:8px;
|
|
298
298
|
}
|
|
299
|
-
.magritte-status___dHzCt_1-5-
|
|
299
|
+
.magritte-status___dHzCt_1-5-1{
|
|
300
300
|
display:inline-flex;
|
|
301
301
|
vertical-align:middle;
|
|
302
302
|
}
|
|
303
|
-
.magritte-status___dHzCt_1-5-
|
|
303
|
+
.magritte-status___dHzCt_1-5-1:not(:first-child){
|
|
304
304
|
margin-left:4px;
|
|
305
305
|
}
|
|
306
|
-
.magritte-content-with-header___wiNKB_1-5-
|
|
307
|
-
.magritte-content-with-header___wiNKB_1-5-
|
|
306
|
+
.magritte-content-with-header___wiNKB_1-5-1 > .magritte-file___k2IKy_1-5-1:first-child,
|
|
307
|
+
.magritte-content-with-header___wiNKB_1-5-1 > .magritte-media___9jH2k_1-5-1:first-child{
|
|
308
308
|
margin-top:8px;
|
|
309
309
|
}
|
|
310
310
|
|
|
311
|
-
.magritte-tail___-1lJ0_1-5-
|
|
311
|
+
.magritte-tail___-1lJ0_1-5-1{
|
|
312
312
|
position:absolute;
|
|
313
313
|
bottom:-1px;
|
|
314
314
|
left:-7px;
|
|
315
315
|
}
|
|
316
|
-
.magritte-tail_outgoing___cnyh3_1-5-
|
|
316
|
+
.magritte-tail_outgoing___cnyh3_1-5-1{
|
|
317
317
|
left:auto;
|
|
318
318
|
right:-7px;
|
|
319
319
|
transform:scaleX(-1);
|
|
320
320
|
}
|
|
321
|
-
.magritte-meta___HT7lp_1-5-
|
|
321
|
+
.magritte-meta___HT7lp_1-5-1{
|
|
322
322
|
float:right;
|
|
323
323
|
margin-left:12px;
|
|
324
324
|
white-space:nowrap;
|
package/index.js
CHANGED
|
@@ -15,7 +15,7 @@ import './internal/utils.js';
|
|
|
15
15
|
import '@hh.ru/magritte-ui-icon/icon';
|
|
16
16
|
import '@hh.ru/magritte-ui-link';
|
|
17
17
|
import '@hh.ru/magritte-ui-loader';
|
|
18
|
-
import './chat-bubble-
|
|
18
|
+
import './chat-bubble-fnws1moq.js';
|
|
19
19
|
import './Label.js';
|
|
20
20
|
import '@hh.ru/magritte-ui-typography';
|
|
21
21
|
import './Media.js';
|
|
@@ -27,7 +27,7 @@ import '@hh.ru/magritte-common-use-multiple-refs';
|
|
|
27
27
|
import '@hh.ru/magritte-common-use-translation';
|
|
28
28
|
import '@hh.ru/magritte-ui-tooltip';
|
|
29
29
|
import './internal/Meta.js';
|
|
30
|
-
import './chat-bubble-
|
|
30
|
+
import './chat-bubble-BSNa94vA.js';
|
|
31
31
|
import './internal/Tail.js';
|
|
32
32
|
import '@hh.ru/magritte-ui-icon';
|
|
33
33
|
//# sourceMappingURL=index.js.map
|
package/internal/Meta.js
CHANGED
|
@@ -2,7 +2,7 @@ import './../index.css';
|
|
|
2
2
|
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
3
3
|
import { getColors } from './colors.js';
|
|
4
4
|
import { Text } from '@hh.ru/magritte-ui-typography';
|
|
5
|
-
import { s as styles } from '../chat-bubble-
|
|
5
|
+
import { s as styles } from '../chat-bubble-BSNa94vA.js';
|
|
6
6
|
|
|
7
7
|
/**
|
|
8
8
|
* Время и статус сообщения
|
package/internal/Tail.js
CHANGED
|
@@ -2,7 +2,7 @@ import './../index.css';
|
|
|
2
2
|
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
3
3
|
import classnames from 'classnames';
|
|
4
4
|
import { useChatBubbleMode } from './mode.js';
|
|
5
|
-
import { s as styles } from '../chat-bubble-
|
|
5
|
+
import { s as styles } from '../chat-bubble-BSNa94vA.js';
|
|
6
6
|
import 'react';
|
|
7
7
|
|
|
8
8
|
const OUTLINE = 'M6.5 0C6.5 7.5 5.2 11.8 1.6 13.4C0.9 13.9 0.6 14.5 1.1 14.5H7';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hh.ru/magritte-ui-chat-bubble",
|
|
3
|
-
"version": "1.5.
|
|
3
|
+
"version": "1.5.1",
|
|
4
4
|
"main": "index.js",
|
|
5
5
|
"types": "index.d.ts",
|
|
6
6
|
"sideEffects": [
|
|
@@ -23,14 +23,14 @@
|
|
|
23
23
|
"@hh.ru/magritte-common-use-translation": "3.3.0",
|
|
24
24
|
"@hh.ru/magritte-design-tokens": "25.0.1",
|
|
25
25
|
"@hh.ru/magritte-ui-breakpoint": "6.1.1",
|
|
26
|
-
"@hh.ru/magritte-ui-button": "7.3.
|
|
27
|
-
"@hh.ru/magritte-ui-cell": "7.2.
|
|
28
|
-
"@hh.ru/magritte-ui-icon": "15.0
|
|
29
|
-
"@hh.ru/magritte-ui-link": "7.2.
|
|
30
|
-
"@hh.ru/magritte-ui-loader": "4.1.
|
|
31
|
-
"@hh.ru/magritte-ui-menu": "1.0.
|
|
26
|
+
"@hh.ru/magritte-ui-button": "7.3.1",
|
|
27
|
+
"@hh.ru/magritte-ui-cell": "7.2.39",
|
|
28
|
+
"@hh.ru/magritte-ui-icon": "15.1.0",
|
|
29
|
+
"@hh.ru/magritte-ui-link": "7.2.1",
|
|
30
|
+
"@hh.ru/magritte-ui-loader": "4.1.1",
|
|
31
|
+
"@hh.ru/magritte-ui-menu": "1.0.36",
|
|
32
32
|
"@hh.ru/magritte-ui-mock-component": "1.1.7",
|
|
33
|
-
"@hh.ru/magritte-ui-tooltip": "11.0.
|
|
33
|
+
"@hh.ru/magritte-ui-tooltip": "11.0.45",
|
|
34
34
|
"@hh.ru/magritte-ui-typography": "5.3.12"
|
|
35
35
|
},
|
|
36
36
|
"peerDependencies": {
|
|
@@ -40,5 +40,5 @@
|
|
|
40
40
|
"publishConfig": {
|
|
41
41
|
"access": "public"
|
|
42
42
|
},
|
|
43
|
-
"gitHead": "
|
|
43
|
+
"gitHead": "c90767ef9b007595559f19dd6a892fd0066ddc79"
|
|
44
44
|
}
|
package/chat-bubble-DLA2EnbA.js
DELETED
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import './index.css';
|
|
2
|
-
var styles = {"tail":"magritte-tail___-1lJ0_1-5-0","tail_outgoing":"magritte-tail_outgoing___cnyh3_1-5-0","tailOutgoing":"magritte-tail_outgoing___cnyh3_1-5-0","meta":"magritte-meta___HT7lp_1-5-0"};
|
|
3
|
-
|
|
4
|
-
export { styles as s };
|
|
5
|
-
//# sourceMappingURL=chat-bubble-DLA2EnbA.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"chat-bubble-DLA2EnbA.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;"}
|
package/chat-bubble-Q7lN-65Z.js
DELETED
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import './index.css';
|
|
2
|
-
var styles = {"chat-bubble":"magritte-chat-bubble___ds9CP_1-5-0","chatBubble":"magritte-chat-bubble___ds9CP_1-5-0","outgoing":"magritte-outgoing___3n00o_1-5-0","bot":"magritte-bot___Z6vZA_1-5-0","row":"magritte-row___mQNnt_1-5-0","bubble":"magritte-bubble___NVuDI_1-5-0","with-tail":"magritte-with-tail___IdixJ_1-5-0","withTail":"magritte-with-tail___IdixJ_1-5-0","header":"magritte-header___Px2to_1-5-0","message-title":"magritte-message-title___dgBFk_1-5-0","messageTitle":"magritte-message-title___dgBFk_1-5-0","message":"magritte-message___7TEpw_1-5-0","buttons":"magritte-buttons___yQqBi_1-5-0","actions":"magritte-actions___I5GSz_1-5-0","error-text":"magritte-error-text___1ZxWY_1-5-0","errorText":"magritte-error-text___1ZxWY_1-5-0","file":"magritte-file___k2IKy_1-5-0","file-preview":"magritte-file-preview___eJKu8_1-5-0","filePreview":"magritte-file-preview___eJKu8_1-5-0","media":"magritte-media___9jH2k_1-5-0","media-blur":"magritte-media-blur___TbiMa_1-5-0","mediaBlur":"magritte-media-blur___TbiMa_1-5-0","media-image":"magritte-media-image___G-FkF_1-5-0","mediaImage":"magritte-media-image___G-FkF_1-5-0","media-content":"magritte-media-content___n3XbD_1-5-0","mediaContent":"magritte-media-content___n3XbD_1-5-0","media-format":"magritte-media-format___AdfCK_1-5-0","mediaFormat":"magritte-media-format___AdfCK_1-5-0","media-meta":"magritte-media-meta___oSxxr_1-5-0","mediaMeta":"magritte-media-meta___oSxxr_1-5-0","reply":"magritte-reply___-QCK7_1-5-0","reply-preview":"magritte-reply-preview___qvlNT_1-5-0","replyPreview":"magritte-reply-preview___qvlNT_1-5-0","reply-body":"magritte-reply-body___f2xx7_1-5-0","replyBody":"magritte-reply-body___f2xx7_1-5-0","snippet":"magritte-snippet___8k9xb_1-5-0","status":"magritte-status___dHzCt_1-5-0","content-with-header":"magritte-content-with-header___wiNKB_1-5-0","contentWithHeader":"magritte-content-with-header___wiNKB_1-5-0"};
|
|
3
|
-
|
|
4
|
-
export { styles as s };
|
|
5
|
-
//# sourceMappingURL=chat-bubble-Q7lN-65Z.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"chat-bubble-Q7lN-65Z.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;"}
|