@linktr.ee/messaging-react 3.14.2 → 3.14.3-rc-1784684267

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/dist/index.cjs CHANGED
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-BOh2WCXX.cjs");exports.ActionButton=e.ActionButton;exports.Avatar=e.Avatar;exports.ChannelEmptyState=e.ChannelEmptyState;exports.ChannelList=e.ChannelList;exports.ChannelView=e.ChannelView;exports.CustomMessageProvider=e.CustomMessageProvider;exports.FaqList=e.FaqList;exports.FaqListItem=e.FaqListItem;exports.LinkAttachment=e.LinkAttachment;exports.LockedAttachment=e.LockedAttachment;exports.MediaMessage=e.MediaMessage;exports.MessageAttachment=e.MessageAttachment;exports.MessageBubble=e.MessageBubble;exports.MessageVoteButtons=e.MessageVoteButtons;exports.MessagingProvider=e.MessagingProvider;exports.MessagingShell=e.MessagingShell;exports.buildCompactMetaLabel=e.buildCompactMetaLabel;exports.formatFileSize=e.formatFileSize;exports.formatRelativeTime=e.formatRelativeTime;exports.getFileExtensionLabel=e.getFileExtensionLabel;exports.getMessageDisplayText=e.getMessageDisplayText;exports.isLinkAttachment=e.isLinkAttachment;exports.isUuidLike=e.isUuidLike;exports.messageAttachmentGroupPositionFromStream=e.bubbleGroupPositionFromStream;exports.normalizeLanguageCode=e.normalizeLanguageCode;exports.optimizeMessagingAttachmentUrl=e.optimizeMessagingAttachmentUrl;exports.resolveConversationParticipant=e.resolveConversationParticipant;exports.resolveLinkAttachment=e.resolveLinkAttachment;exports.resolveMediaFromMessage=e.resolveMediaFromMessage;exports.resolveParticipantDisplayName=e.resolveParticipantDisplayName;exports.useComposerLocked=e.useComposerLocked;exports.useCustomMessage=e.useCustomMessage;exports.useMessageVote=e.useMessageVote;exports.useMessaging=e.useMessaging;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-C-kQCN-o.cjs");exports.ActionButton=e.ActionButton;exports.Avatar=e.Avatar;exports.ChannelEmptyState=e.ChannelEmptyState;exports.ChannelList=e.ChannelList;exports.ChannelView=e.ChannelView;exports.CustomMessageProvider=e.CustomMessageProvider;exports.FaqList=e.FaqList;exports.FaqListItem=e.FaqListItem;exports.LinkAttachment=e.LinkAttachment;exports.LockedAttachment=e.LockedAttachment;exports.MediaMessage=e.MediaMessage;exports.MessageAttachment=e.MessageAttachment;exports.MessageBubble=e.MessageBubble;exports.MessageVoteButtons=e.MessageVoteButtons;exports.MessagingProvider=e.MessagingProvider;exports.MessagingShell=e.MessagingShell;exports.buildCompactMetaLabel=e.buildCompactMetaLabel;exports.formatFileSize=e.formatFileSize;exports.formatRelativeTime=e.formatRelativeTime;exports.getFileExtensionLabel=e.getFileExtensionLabel;exports.getMessageDisplayText=e.getMessageDisplayText;exports.isLinkAttachment=e.isLinkAttachment;exports.isUuidLike=e.isUuidLike;exports.messageAttachmentGroupPositionFromStream=e.bubbleGroupPositionFromStream;exports.normalizeLanguageCode=e.normalizeLanguageCode;exports.optimizeMessagingAttachmentUrl=e.optimizeMessagingAttachmentUrl;exports.resolveConversationParticipant=e.resolveConversationParticipant;exports.resolveLinkAttachment=e.resolveLinkAttachment;exports.resolveMediaFromMessage=e.resolveMediaFromMessage;exports.resolveParticipantDisplayName=e.resolveParticipantDisplayName;exports.useComposerLocked=e.useComposerLocked;exports.useCustomMessage=e.useCustomMessage;exports.useMessageVote=e.useMessageVote;exports.useMessaging=e.useMessaging;
2
2
  //# sourceMappingURL=index.cjs.map
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { a as e, b as t, C as i, c as o, d as n, e as m, F as r, f as g, L as l, h as M, M as c, i as u, j as L, k as h, l as p, m as d, n as v, p as C, q as A, s as k, t as F, u as b, v as P, w as f, x, o as y, y as z, z as B, B as S, D as q, E as D, G as E, H as V, I as w } from "./index-4OY62Yxz.js";
1
+ import { a as e, b as t, C as i, c as o, d as n, e as m, F as r, f as g, L as l, h as M, M as c, i as u, j as L, k as h, l as p, m as d, n as v, p as C, q as A, s as k, t as F, u as b, v as P, w as f, x, o as y, y as z, z as B, B as S, D as q, E as D, G as E, H as V, I as w } from "./index-BedgUyfu.js";
2
2
  export {
3
3
  e as ActionButton,
4
4
  t as Avatar,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@linktr.ee/messaging-react",
3
- "version": "3.14.2",
3
+ "version": "3.14.3-rc-1784684267",
4
4
  "description": "React messaging components built on messaging-core for web applications",
5
5
  "type": "module",
6
6
  "main": "dist/index.cjs",
@@ -50,7 +50,7 @@
50
50
  },
51
51
  "dependencies": {
52
52
  "@linktr.ee/component-library": "11.8.6",
53
- "@linktr.ee/messaging-core": "^2.2.0",
53
+ "@linktr.ee/messaging-core": "2.3.0-rc-1784684267",
54
54
  "@phosphor-icons/react": "^2.1.10"
55
55
  },
56
56
  "devDependencies": {
@@ -214,7 +214,7 @@ export const CustomMessageInput: React.FC<CustomMessageInputProps> = ({
214
214
 
215
215
  layout.style.setProperty(
216
216
  '--messaging-composer-height',
217
- `${nextComposerHeight + 16}px`
217
+ `${nextComposerHeight}px`
218
218
  )
219
219
 
220
220
  // Reading scrollHeight forces a synchronous reflow, so it reflects the
package/src/styles.css CHANGED
@@ -18,12 +18,12 @@
18
18
  .messaging-channel-message-list--floating .str-chat__message-list-scroll {
19
19
  padding-bottom: calc(
20
20
  var(--messaging-composer-height, 9rem) +
21
- 2rem
21
+ 1.25rem
22
22
  );
23
23
  }
24
24
 
25
25
  .messaging-channel-layout {
26
- --messaging-composer-fade-height: 1.25rem;
26
+ --messaging-composer-fade-height: 2rem;
27
27
  }
28
28
 
29
29
  .messaging-composer-chrome--floating {
@@ -47,6 +47,14 @@
47
47
  overflow: hidden;
48
48
  isolation: isolate;
49
49
  pointer-events: none;
50
+ /* Frosted band height, from the backdrop's top edge down to the composer
51
+ pill: the fade-height above the chrome plus the chrome's own top padding
52
+ (p-4 = 1rem). Blur/gradient stops are anchored to this fixed band so the
53
+ frosting stays in the gap above the composer and does not scale with the
54
+ (opaque) composer height. */
55
+ --messaging-composer-fade-band: calc(
56
+ var(--messaging-composer-fade-height) + 1rem
57
+ );
50
58
  }
51
59
 
52
60
  .messaging-composer-backdrop-blur {
@@ -60,17 +68,17 @@
60
68
  -webkit-backdrop-filter: blur(2px);
61
69
  mask: linear-gradient(
62
70
  to bottom,
63
- transparent 0%,
64
- black 12%,
65
- black 28%,
66
- transparent 44%
71
+ transparent 0,
72
+ black calc(var(--messaging-composer-fade-band) * 0.12),
73
+ black calc(var(--messaging-composer-fade-band) * 0.32),
74
+ transparent calc(var(--messaging-composer-fade-band) * 0.5)
67
75
  );
68
76
  -webkit-mask: linear-gradient(
69
77
  to bottom,
70
- transparent 0%,
71
- black 12%,
72
- black 28%,
73
- transparent 44%
78
+ transparent 0,
79
+ black calc(var(--messaging-composer-fade-band) * 0.12),
80
+ black calc(var(--messaging-composer-fade-band) * 0.32),
81
+ transparent calc(var(--messaging-composer-fade-band) * 0.5)
74
82
  );
75
83
  }
76
84
 
@@ -79,17 +87,17 @@
79
87
  -webkit-backdrop-filter: blur(4px);
80
88
  mask: linear-gradient(
81
89
  to bottom,
82
- transparent 12%,
83
- black 28%,
84
- black 44%,
85
- transparent 60%
90
+ transparent calc(var(--messaging-composer-fade-band) * 0.2),
91
+ black calc(var(--messaging-composer-fade-band) * 0.38),
92
+ black calc(var(--messaging-composer-fade-band) * 0.55),
93
+ transparent calc(var(--messaging-composer-fade-band) * 0.7)
86
94
  );
87
95
  -webkit-mask: linear-gradient(
88
96
  to bottom,
89
- transparent 12%,
90
- black 28%,
91
- black 44%,
92
- transparent 60%
97
+ transparent calc(var(--messaging-composer-fade-band) * 0.2),
98
+ black calc(var(--messaging-composer-fade-band) * 0.38),
99
+ black calc(var(--messaging-composer-fade-band) * 0.55),
100
+ transparent calc(var(--messaging-composer-fade-band) * 0.7)
93
101
  );
94
102
  }
95
103
 
@@ -98,17 +106,17 @@
98
106
  -webkit-backdrop-filter: blur(8px);
99
107
  mask: linear-gradient(
100
108
  to bottom,
101
- transparent 28%,
102
- black 44%,
103
- black 60%,
104
- transparent 76%
109
+ transparent calc(var(--messaging-composer-fade-band) * 0.4),
110
+ black calc(var(--messaging-composer-fade-band) * 0.58),
111
+ black calc(var(--messaging-composer-fade-band) * 0.72),
112
+ transparent calc(var(--messaging-composer-fade-band) * 0.85)
105
113
  );
106
114
  -webkit-mask: linear-gradient(
107
115
  to bottom,
108
- transparent 28%,
109
- black 44%,
110
- black 60%,
111
- transparent 76%
116
+ transparent calc(var(--messaging-composer-fade-band) * 0.4),
117
+ black calc(var(--messaging-composer-fade-band) * 0.58),
118
+ black calc(var(--messaging-composer-fade-band) * 0.72),
119
+ transparent calc(var(--messaging-composer-fade-band) * 0.85)
112
120
  );
113
121
  }
114
122
 
@@ -117,29 +125,36 @@
117
125
  -webkit-backdrop-filter: blur(12px);
118
126
  mask: linear-gradient(
119
127
  to bottom,
120
- transparent 44%,
121
- black 60%,
122
- black 76%,
123
- transparent 92%
128
+ transparent calc(var(--messaging-composer-fade-band) * 0.55),
129
+ black calc(var(--messaging-composer-fade-band) * 0.72),
130
+ black calc(var(--messaging-composer-fade-band) * 0.88),
131
+ transparent var(--messaging-composer-fade-band)
124
132
  );
125
133
  -webkit-mask: linear-gradient(
126
134
  to bottom,
127
- transparent 44%,
128
- black 60%,
129
- black 76%,
130
- transparent 92%
135
+ transparent calc(var(--messaging-composer-fade-band) * 0.55),
136
+ black calc(var(--messaging-composer-fade-band) * 0.72),
137
+ black calc(var(--messaging-composer-fade-band) * 0.88),
138
+ transparent var(--messaging-composer-fade-band)
131
139
  );
132
140
  }
133
141
 
134
142
  .messaging-composer-backdrop-blur:nth-child(5) {
135
143
  backdrop-filter: blur(16px);
136
144
  -webkit-backdrop-filter: blur(16px);
137
- mask: linear-gradient(to bottom, transparent 60%, black 76%, black 100%);
145
+ mask: linear-gradient(
146
+ to bottom,
147
+ transparent calc(var(--messaging-composer-fade-band) * 0.7),
148
+ black calc(var(--messaging-composer-fade-band) * 0.9),
149
+ black var(--messaging-composer-fade-band),
150
+ transparent var(--messaging-composer-fade-band)
151
+ );
138
152
  -webkit-mask: linear-gradient(
139
153
  to bottom,
140
- transparent 60%,
141
- black 76%,
142
- black 100%
154
+ transparent calc(var(--messaging-composer-fade-band) * 0.7),
155
+ black calc(var(--messaging-composer-fade-band) * 0.9),
156
+ black var(--messaging-composer-fade-band),
157
+ transparent var(--messaging-composer-fade-band)
143
158
  );
144
159
  }
145
160
 
@@ -147,7 +162,11 @@
147
162
  position: absolute;
148
163
  inset: 0;
149
164
  pointer-events: none;
150
- background: linear-gradient(180deg, rgba(251, 250, 249, 0) 0%, #fbfaf9 100%);
165
+ background: linear-gradient(
166
+ 180deg,
167
+ rgba(251, 250, 249, 0) 0,
168
+ #fbfaf9 var(--messaging-composer-fade-band)
169
+ );
151
170
  }
152
171
 
153
172
  /* Dialog component styles - used by messaging components */