@linktr.ee/messaging-react 4.2.0-rc-1787325521 → 4.2.0-rc-1787325710

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.
Files changed (51) hide show
  1. package/dist/AttachmentCard-C-X0jLZ2.cjs +2 -0
  2. package/dist/AttachmentCard-C-X0jLZ2.cjs.map +1 -0
  3. package/dist/AttachmentCard-D2IoHdcv.js +410 -0
  4. package/dist/AttachmentCard-D2IoHdcv.js.map +1 -0
  5. package/dist/Card-C7uLQbYz.js +105 -0
  6. package/dist/Card-C7uLQbYz.js.map +1 -0
  7. package/dist/Card-DENHpLIC.cjs +2 -0
  8. package/dist/Card-DENHpLIC.cjs.map +1 -0
  9. package/dist/Card-Ds1FMcUj.cjs +2 -0
  10. package/dist/Card-Ds1FMcUj.cjs.map +1 -0
  11. package/dist/Card-EKD9NkTa.js +498 -0
  12. package/dist/Card-EKD9NkTa.js.map +1 -0
  13. package/dist/LoadingDots-BSk_UeS0.cjs +2 -0
  14. package/dist/LoadingDots-BSk_UeS0.cjs.map +1 -0
  15. package/dist/LoadingDots-B_WiXBeQ.js +73 -0
  16. package/dist/LoadingDots-B_WiXBeQ.js.map +1 -0
  17. package/dist/assets/index.css +2 -1
  18. package/dist/index.cjs +3 -2
  19. package/dist/index.cjs.map +1 -1
  20. package/dist/index.d.ts +0 -26
  21. package/dist/index.js +4071 -41
  22. package/dist/index.js.map +1 -1
  23. package/dist/rolldown-runtime-BocRIvOZ.cjs +1 -0
  24. package/dist/testing.cjs +2 -2
  25. package/dist/testing.cjs.map +1 -1
  26. package/dist/testing.js +106 -118
  27. package/dist/testing.js.map +1 -1
  28. package/package.json +5 -5
  29. package/src/components/ChannelView.stories.tsx +0 -4
  30. package/src/index.ts +0 -3
  31. package/src/providers/MessagingProvider.test.tsx +1 -127
  32. package/src/providers/MessagingProvider.tsx +15 -26
  33. package/src/types.ts +0 -8
  34. package/dist/Card-BYJyA83X.js +0 -701
  35. package/dist/Card-BYJyA83X.js.map +0 -1
  36. package/dist/Card-Be81K6su.cjs +0 -2
  37. package/dist/Card-Be81K6su.cjs.map +0 -1
  38. package/dist/Card-BplJtZao.cjs +0 -2
  39. package/dist/Card-BplJtZao.cjs.map +0 -1
  40. package/dist/Card-BzvDr-pU.js +0 -112
  41. package/dist/Card-BzvDr-pU.js.map +0 -1
  42. package/dist/PurchaseStatusBadge-BmqAQEV9.cjs +0 -2
  43. package/dist/PurchaseStatusBadge-BmqAQEV9.cjs.map +0 -1
  44. package/dist/PurchaseStatusBadge-D1RRsubZ.js +0 -59
  45. package/dist/PurchaseStatusBadge-D1RRsubZ.js.map +0 -1
  46. package/dist/index-BUC9vqhJ.js +0 -5916
  47. package/dist/index-BUC9vqhJ.js.map +0 -1
  48. package/dist/index-BkqyKPJP.cjs +0 -3
  49. package/dist/index-BkqyKPJP.cjs.map +0 -1
  50. package/src/logging/index.test.tsx +0 -136
  51. package/src/logging/index.tsx +0 -48
@@ -13,7 +13,6 @@ import React, {
13
13
  import { StreamChat } from 'stream-chat'
14
14
  import { Chat } from 'stream-chat-react'
15
15
 
16
- import { MessagingLoggerProvider, resolveLogger } from '../logging'
17
16
  import type { MessagingProviderProps, MessagingCapabilities } from '../types'
18
17
 
19
18
  /**
@@ -57,7 +56,6 @@ export const MessagingProvider: React.FC<MessagingProviderProps> = ({
57
56
  capabilities = {},
58
57
  debug = false,
59
58
  client: injectedClient,
60
- logger,
61
59
  }) => {
62
60
  // Create debug logger that respects the debug prop
63
61
  const debugLog = useCallback(
@@ -96,8 +94,6 @@ export const MessagingProvider: React.FC<MessagingProviderProps> = ({
96
94
  serviceConfigRef.current = serviceConfig
97
95
  const debugRef = useRef(debug)
98
96
  debugRef.current = debug
99
- const loggerRef = useRef(logger)
100
- loggerRef.current = logger
101
97
 
102
98
  // Track renders and prop changes
103
99
  const prevPropsRef = useRef({
@@ -203,11 +199,6 @@ export const MessagingProvider: React.FC<MessagingProviderProps> = ({
203
199
  apiKey,
204
200
  debug: debugRef.current,
205
201
  client: chatClient,
206
- // An explicit serviceConfig.logger wins — existing injectors keep working.
207
- // Resolved, because the service swaps its console defaults out wholesale.
208
- ...(currentConfig.logger || !loggerRef.current
209
- ? {}
210
- : { logger: resolveLogger(loggerRef.current) }),
211
202
  })
212
203
 
213
204
  serviceRef.current = newService
@@ -413,22 +404,20 @@ export const MessagingProvider: React.FC<MessagingProviderProps> = ({
413
404
  })
414
405
 
415
406
  return (
416
- <MessagingLoggerProvider logger={logger}>
417
- <MessagingContext.Provider value={contextValue}>
418
- {chatClient ? (
419
- <Chat
420
- client={chatClient}
421
- customClasses={{
422
- channelList:
423
- 'str-chat__channel-list str-chat__channel-list-react bg-transparent lg:border-r-2 border-r-0 border-[#0000000A]',
424
- }}
425
- >
426
- {children}
427
- </Chat>
428
- ) : (
429
- children
430
- )}
431
- </MessagingContext.Provider>
432
- </MessagingLoggerProvider>
407
+ <MessagingContext.Provider value={contextValue}>
408
+ {chatClient ? (
409
+ <Chat
410
+ client={chatClient}
411
+ customClasses={{
412
+ channelList:
413
+ 'str-chat__channel-list str-chat__channel-list-react bg-transparent lg:border-r-2 border-r-0 border-[#0000000A]',
414
+ }}
415
+ >
416
+ {children}
417
+ </Chat>
418
+ ) : (
419
+ children
420
+ )}
421
+ </MessagingContext.Provider>
433
422
  )
434
423
  }
package/src/types.ts CHANGED
@@ -1,5 +1,4 @@
1
1
  import type {
2
- Logger,
3
2
  MessagingUser,
4
3
  StreamChatServiceConfig,
5
4
  } from '@linktr.ee/messaging-core'
@@ -502,13 +501,6 @@ interface MessagingProviderBaseProps {
502
501
  user: MessagingUser | null
503
502
  capabilities?: MessagingCapabilities
504
503
  debug?: boolean
505
- /**
506
- * Optional sink for the package's own log output. Levels left undefined fall
507
- * back to console, which is also the default when the prop is omitted. In
508
- * apiKey mode it is forwarded to the underlying StreamChatService unless
509
- * `serviceConfig.logger` is set, which wins.
510
- */
511
- logger?: Logger
512
504
  }
513
505
 
514
506
  /**