@pushwoosh/websdk-common 6.23.0 → 6.23.2

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.
@@ -6,7 +6,6 @@ import { InboxWebCell, inboxWidgetPreviewFrame } from './InboxWidgetReader';
6
6
  const MAIN = '#4B5057';
7
7
  const LOCKED = '#767C82';
8
8
  const PHANTOM = '#9AA0A6';
9
- const FROZEN = '#F7F9FA';
10
9
  const CLEAR = '#FFFFFF';
11
10
  const DIVIDER = '#EBF0F5';
12
11
  const BRIGHT = '#00A2FF';
@@ -35,6 +34,16 @@ const TEXT = {
35
34
  fontSize: 14,
36
35
  lineHeight: 20 / 14,
37
36
  fontWeight: 500
37
+ },
38
+ caption: {
39
+ fontSize: 10,
40
+ lineHeight: 13 / 10,
41
+ fontWeight: 400
42
+ },
43
+ body: {
44
+ fontSize: 13,
45
+ lineHeight: 18 / 13,
46
+ fontWeight: 400
38
47
  }
39
48
  };
40
49
  const ELLIPSIS = {
@@ -245,6 +254,7 @@ function IOSCell(props) {
245
254
  dateLabel,
246
255
  unread
247
256
  } = props;
257
+ const isClassic = layout === 'classic';
248
258
  const texts = _jsxs("div", {
249
259
  style: {
250
260
  display: 'flex',
@@ -256,37 +266,40 @@ function IOSCell(props) {
256
266
  children: [_jsxs("div", {
257
267
  style: {
258
268
  display: 'flex',
259
- alignItems: 'center',
269
+ alignItems: 'flex-start',
260
270
  gap: 4
261
271
  },
262
272
  children: [_jsx("div", {
263
273
  style: {
264
- ...TEXT.h5,
265
- ...ELLIPSIS,
274
+ ...(isClassic ? {
275
+ ...TEXT.body,
276
+ fontWeight: 500
277
+ } : TEXT.h5),
266
278
  flex: 1,
267
279
  minWidth: 0,
280
+ overflowWrap: 'anywhere',
268
281
  color: MAIN
269
282
  },
270
283
  children: title
271
284
  }), _jsx("div", {
272
285
  style: {
273
- ...TEXT.footnote,
286
+ ...TEXT.caption,
274
287
  flexShrink: 0,
275
288
  whiteSpace: 'nowrap',
276
- color: LOCKED
289
+ color: PHANTOM
277
290
  },
278
291
  children: dateLabel
279
292
  })]
280
293
  }), !!body && _jsx("div", {
281
294
  style: {
282
- ...TEXT.footnote,
283
- ...(layout === 'classic' && clamp(3)),
284
- color: LOCKED
295
+ ...(isClassic ? TEXT.body : TEXT.footnote),
296
+ overflowWrap: 'anywhere',
297
+ color: isClassic ? '#333333' : PHANTOM
285
298
  },
286
299
  children: body
287
300
  })]
288
301
  });
289
- if (layout === 'classic') {
302
+ if (isClassic) {
290
303
  return _jsxs("div", {
291
304
  style: {
292
305
  display: 'flex',
@@ -335,7 +348,7 @@ function IOSCell(props) {
335
348
  alignItems: 'flex-start',
336
349
  gap: 4,
337
350
  padding: 8,
338
- background: FROZEN,
351
+ background: CLEAR,
339
352
  border: `1px solid ${SOFT_LIGHT}`,
340
353
  borderRadius: RADIUS
341
354
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pushwoosh/websdk-common",
3
- "version": "6.23.0",
3
+ "version": "6.23.2",
4
4
  "description": "Code shared by the Pushwoosh WebSDK and the Control Panel, one entry point per module (web-popups: web popup model and renderer; subscription-widget: push subscription widget model and renderer; inbox: web inbox widget and inbox cell previews)",
5
5
  "main": "index.js",
6
6
  "module": "index.js",