@liveblocks/react 2.18.3 → 2.18.4-uns2

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 (38) hide show
  1. package/dist/_private.cjs +131 -0
  2. package/dist/_private.cjs.map +1 -0
  3. package/dist/{_private.d.mts → _private.d.cts} +1 -1
  4. package/dist/_private.d.ts +1 -1
  5. package/dist/_private.js +73 -73
  6. package/dist/_private.js.map +1 -1
  7. package/dist/{chunk-IBC3TDQO.js → chunk-3Q3PQKVX.cjs} +2 -2
  8. package/dist/chunk-3Q3PQKVX.cjs.map +1 -0
  9. package/dist/{chunk-ZDS6KSNG.mjs → chunk-6WL36X3I.js} +2 -2
  10. package/dist/{chunk-5RVW253W.js → chunk-EC62ST5F.cjs} +29 -50
  11. package/dist/chunk-EC62ST5F.cjs.map +1 -0
  12. package/dist/{chunk-XU3ECI3P.mjs → chunk-OVSZW7FP.js} +13 -34
  13. package/dist/chunk-OVSZW7FP.js.map +1 -0
  14. package/dist/index.cjs +145 -0
  15. package/dist/index.cjs.map +1 -0
  16. package/dist/{index.d.mts → index.d.cts} +1 -1
  17. package/dist/index.d.ts +1 -1
  18. package/dist/index.js +142 -142
  19. package/dist/index.js.map +1 -1
  20. package/dist/{room-Bf3S78LF.d.mts → room-1E8LCqCD.d.cts} +17 -0
  21. package/dist/{room-Bf3S78LF.d.ts → room-1E8LCqCD.d.ts} +17 -0
  22. package/dist/suspense.cjs +139 -0
  23. package/dist/suspense.cjs.map +1 -0
  24. package/dist/{suspense.d.mts → suspense.d.cts} +2 -2
  25. package/dist/suspense.d.ts +1 -1
  26. package/dist/suspense.js +136 -136
  27. package/dist/suspense.js.map +1 -1
  28. package/package.json +21 -21
  29. package/dist/_private.mjs +0 -131
  30. package/dist/_private.mjs.map +0 -1
  31. package/dist/chunk-5RVW253W.js.map +0 -1
  32. package/dist/chunk-IBC3TDQO.js.map +0 -1
  33. package/dist/chunk-XU3ECI3P.mjs.map +0 -1
  34. package/dist/index.mjs +0 -145
  35. package/dist/index.mjs.map +0 -1
  36. package/dist/suspense.mjs +0 -139
  37. package/dist/suspense.mjs.map +0 -1
  38. /package/dist/{chunk-ZDS6KSNG.mjs.map → chunk-6WL36X3I.js.map} +0 -0
package/dist/index.cjs ADDED
@@ -0,0 +1,145 @@
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
+
3
+
4
+
5
+
6
+ var _chunk3Q3PQKVXcjs = require('./chunk-3Q3PQKVX.cjs');
7
+
8
+
9
+
10
+
11
+
12
+
13
+
14
+
15
+
16
+
17
+
18
+
19
+
20
+
21
+
22
+
23
+
24
+
25
+
26
+
27
+
28
+
29
+
30
+
31
+
32
+
33
+
34
+
35
+
36
+
37
+
38
+
39
+
40
+
41
+
42
+
43
+
44
+
45
+
46
+
47
+
48
+
49
+
50
+
51
+
52
+
53
+
54
+
55
+
56
+
57
+
58
+
59
+
60
+
61
+
62
+
63
+
64
+
65
+
66
+
67
+
68
+
69
+
70
+
71
+ var _chunkEC62ST5Fcjs = require('./chunk-EC62ST5F.cjs');
72
+
73
+ // src/index.ts
74
+ var _core = require('@liveblocks/core');
75
+ var _client = require('@liveblocks/client');
76
+ _core.detectDupes.call(void 0, _chunk3Q3PQKVXcjs.PKG_NAME, _chunk3Q3PQKVXcjs.PKG_VERSION, _chunk3Q3PQKVXcjs.PKG_FORMAT);
77
+
78
+
79
+
80
+
81
+
82
+
83
+
84
+
85
+
86
+
87
+
88
+
89
+
90
+
91
+
92
+
93
+
94
+
95
+
96
+
97
+
98
+
99
+
100
+
101
+
102
+
103
+
104
+
105
+
106
+
107
+
108
+
109
+
110
+
111
+
112
+
113
+
114
+
115
+
116
+
117
+
118
+
119
+
120
+
121
+
122
+
123
+
124
+
125
+
126
+
127
+
128
+
129
+
130
+
131
+
132
+
133
+
134
+
135
+
136
+
137
+
138
+
139
+
140
+
141
+
142
+
143
+
144
+ exports.ClientContext = _chunkEC62ST5Fcjs.ClientContext; exports.ClientSideSuspense = _chunk3Q3PQKVXcjs.ClientSideSuspense; exports.LiveblocksProvider = _chunkEC62ST5Fcjs.LiveblocksProvider; exports.RoomContext = _chunkEC62ST5Fcjs.RoomContext; exports.RoomProvider = _chunkEC62ST5Fcjs._RoomProvider; exports.createLiveblocksContext = _chunkEC62ST5Fcjs.createLiveblocksContext; exports.createRoomContext = _chunkEC62ST5Fcjs.createRoomContext; exports.isNotificationChannelEnabled = _client.isNotificationChannelEnabled; exports.shallow = _client.shallow; exports.useAddReaction = _chunkEC62ST5Fcjs._useAddReaction; exports.useAttachmentUrl = _chunkEC62ST5Fcjs.useAttachmentUrl; exports.useBatch = _chunkEC62ST5Fcjs.useBatch; exports.useBroadcastEvent = _chunkEC62ST5Fcjs._useBroadcastEvent; exports.useCanRedo = _chunkEC62ST5Fcjs.useCanRedo; exports.useCanUndo = _chunkEC62ST5Fcjs.useCanUndo; exports.useClient = _chunkEC62ST5Fcjs.useClient; exports.useCreateComment = _chunkEC62ST5Fcjs.useCreateComment; exports.useCreateThread = _chunkEC62ST5Fcjs._useCreateThread; exports.useDeleteAllInboxNotifications = _chunkEC62ST5Fcjs.useDeleteAllInboxNotifications; exports.useDeleteComment = _chunkEC62ST5Fcjs.useDeleteComment; exports.useDeleteInboxNotification = _chunkEC62ST5Fcjs.useDeleteInboxNotification; exports.useDeleteThread = _chunkEC62ST5Fcjs._useDeleteThread; exports.useEditComment = _chunkEC62ST5Fcjs.useEditComment; exports.useEditThreadMetadata = _chunkEC62ST5Fcjs._useEditThreadMetadata; exports.useErrorListener = _chunkEC62ST5Fcjs.useErrorListener; exports.useEventListener = _chunkEC62ST5Fcjs._useEventListener; exports.useHistory = _chunkEC62ST5Fcjs.useHistory; exports.useHistoryVersionData = _chunkEC62ST5Fcjs.useHistoryVersionData; exports.useHistoryVersions = _chunkEC62ST5Fcjs._useHistoryVersions; exports.useInboxNotificationThread = _chunkEC62ST5Fcjs._useInboxNotificationThread; exports.useInboxNotifications = _chunkEC62ST5Fcjs.useInboxNotifications; exports.useIsInsideRoom = _chunkEC62ST5Fcjs._useIsInsideRoom; exports.useLostConnectionListener = _chunkEC62ST5Fcjs.useLostConnectionListener; exports.useMarkAllInboxNotificationsAsRead = _chunkEC62ST5Fcjs.useMarkAllInboxNotificationsAsRead; exports.useMarkInboxNotificationAsRead = _chunkEC62ST5Fcjs.useMarkInboxNotificationAsRead; exports.useMarkThreadAsRead = _chunkEC62ST5Fcjs.useMarkThreadAsRead; exports.useMarkThreadAsResolved = _chunkEC62ST5Fcjs.useMarkThreadAsResolved; exports.useMarkThreadAsUnresolved = _chunkEC62ST5Fcjs.useMarkThreadAsUnresolved; exports.useMutation = _chunkEC62ST5Fcjs._useMutation; exports.useMyPresence = _chunkEC62ST5Fcjs._useMyPresence; exports.useNotificationSettings = _chunkEC62ST5Fcjs.useNotificationSettings; exports.useOther = _chunkEC62ST5Fcjs._useOther; exports.useOthers = _chunkEC62ST5Fcjs._useOthers; exports.useOthersConnectionIds = _chunkEC62ST5Fcjs.useOthersConnectionIds; exports.useOthersListener = _chunkEC62ST5Fcjs._useOthersListener; exports.useOthersMapped = _chunkEC62ST5Fcjs._useOthersMapped; exports.useRedo = _chunkEC62ST5Fcjs.useRedo; exports.useRemoveReaction = _chunkEC62ST5Fcjs.useRemoveReaction; exports.useRoom = _chunkEC62ST5Fcjs._useRoom; exports.useRoomInfo = _chunkEC62ST5Fcjs.useRoomInfo; exports.useRoomNotificationSettings = _chunkEC62ST5Fcjs._useRoomNotificationSettings; exports.useSelf = _chunkEC62ST5Fcjs._useSelf; exports.useStatus = _chunkEC62ST5Fcjs.useStatus; exports.useStorage = _chunkEC62ST5Fcjs._useStorage; exports.useStorageRoot = _chunkEC62ST5Fcjs._useStorageRoot; exports.useStorageStatus = _chunkEC62ST5Fcjs.useStorageStatus; exports.useSyncStatus = _chunkEC62ST5Fcjs.useSyncStatus; exports.useThreadSubscription = _chunkEC62ST5Fcjs.useThreadSubscription; exports.useThreads = _chunkEC62ST5Fcjs._useThreads; exports.useUndo = _chunkEC62ST5Fcjs.useUndo; exports.useUnreadInboxNotificationsCount = _chunkEC62ST5Fcjs.useUnreadInboxNotificationsCount; exports.useUpdateMyPresence = _chunkEC62ST5Fcjs._useUpdateMyPresence; exports.useUpdateNotificationSettings = _chunkEC62ST5Fcjs.useUpdateNotificationSettings; exports.useUpdateRoomNotificationSettings = _chunkEC62ST5Fcjs.useUpdateRoomNotificationSettings; exports.useUser = _chunkEC62ST5Fcjs._useUser; exports.useUserThreads_experimental = _chunkEC62ST5Fcjs._useUserThreads_experimental;
145
+ //# sourceMappingURL=index.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["/home/runner/work/liveblocks/liveblocks/packages/liveblocks-react/dist/index.cjs","../src/index.ts"],"names":[],"mappings":"AAAA;AACE;AACA;AACA;AACA;AACF,wDAA6B;AAC7B;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACF,wDAA6B;AAC7B;AACA;ACvEA,wCAA4B;AAc5B,4CAAsD;AAXtD,+BAAA,0BAAY,EAAU,6BAAA,EAAa,4BAAU,CAAA;ADwE7C;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACF,0sIAAC","file":"/home/runner/work/liveblocks/liveblocks/packages/liveblocks-react/dist/index.cjs","sourcesContent":[null,"/* eslint-disable simple-import-sort/exports */\nimport { detectDupes } from \"@liveblocks/core\";\n\nimport { PKG_FORMAT, PKG_NAME, PKG_VERSION } from \"./version\";\ndetectDupes(PKG_NAME, PKG_VERSION, PKG_FORMAT);\n\nexport { ClientSideSuspense } from \"./ClientSideSuspense\";\nexport type {\n MutationContext,\n UseStorageStatusOptions,\n UseThreadsOptions,\n} from \"./types\";\n\n// Re-exports from @liveblocks/client, for convenience\nexport type { Json, JsonObject } from \"@liveblocks/client\";\nexport { shallow, isNotificationChannelEnabled } from \"@liveblocks/client\";\n\n// Export all the top-level hooks\nexport {\n ClientContext,\n createLiveblocksContext,\n LiveblocksProvider,\n useClient,\n useDeleteAllInboxNotifications,\n useDeleteInboxNotification,\n useErrorListener,\n useInboxNotificationThread,\n useMarkAllInboxNotificationsAsRead,\n useMarkInboxNotificationAsRead,\n useSyncStatus,\n} from \"./liveblocks\";\nexport {\n createRoomContext,\n RoomContext,\n RoomProvider,\n useAddReaction,\n useBatch,\n useBroadcastEvent,\n useCanRedo,\n useCanUndo,\n useCreateComment,\n useCreateThread,\n useDeleteComment,\n useDeleteThread,\n useEditComment,\n useEditThreadMetadata,\n useMarkThreadAsResolved,\n useMarkThreadAsUnresolved,\n useEventListener,\n useHistory,\n useIsInsideRoom,\n useLostConnectionListener,\n useMarkThreadAsRead,\n useMutation,\n useMyPresence,\n useOthersListener,\n useRedo,\n useRemoveReaction,\n useRoom,\n useStatus,\n useStorageRoot,\n useThreadSubscription,\n useUndo,\n useUpdateMyPresence,\n useUpdateRoomNotificationSettings,\n useHistoryVersionData,\n} from \"./room\";\n\n// Export the classic (non-Suspense) versions of our hooks\n// (This part differs from src/suspense.ts)\nexport {\n useOther,\n useOthers,\n useOthersConnectionIds,\n useOthersMapped,\n useSelf,\n useStorage,\n useStorageStatus,\n useThreads,\n useAttachmentUrl,\n useHistoryVersions,\n useRoomNotificationSettings,\n} from \"./room\";\nexport {\n useInboxNotifications,\n useNotificationSettings,\n useUpdateNotificationSettings,\n useUserThreads_experimental as useUserThreads_experimental,\n useRoomInfo,\n useUnreadInboxNotificationsCount,\n useUser,\n} from \"./liveblocks\";\n"]}
@@ -1,4 +1,4 @@
1
- export { C as ClientContext, L as LiveblocksProvider, M as MutationContext, R as RoomContext, H as RoomProvider, U as UseStorageStatusOptions, w as UseThreadsOptions, x as createLiveblocksContext, G as createRoomContext, I as useAddReaction, ao as useAttachmentUrl, J as useBatch, K as useBroadcastEvent, N as useCanRedo, O as useCanUndo, y as useClient, P as useCreateComment, Q as useCreateThread, z as useDeleteAllInboxNotifications, S as useDeleteComment, A as useDeleteInboxNotification, T as useDeleteThread, V as useEditComment, W as useEditThreadMetadata, B as useErrorListener, Z as useEventListener, $ as useHistory, af as useHistoryVersionData, ap as useHistoryVersions, _ as useInboxNotificationThread, ar as useInboxNotifications, a0 as useIsInsideRoom, a1 as useLostConnectionListener, D as useMarkAllInboxNotificationsAsRead, E as useMarkInboxNotificationAsRead, a2 as useMarkThreadAsRead, X as useMarkThreadAsResolved, Y as useMarkThreadAsUnresolved, a3 as useMutation, a4 as useMyPresence, as as useNotificationSettings, ag as useOther, ah as useOthers, ai as useOthersConnectionIds, a5 as useOthersListener, aj as useOthersMapped, a6 as useRedo, a7 as useRemoveReaction, a8 as useRoom, av as useRoomInfo, aq as useRoomNotificationSettings, ak as useSelf, a9 as useStatus, al as useStorage, aa as useStorageRoot, am as useStorageStatus, F as useSyncStatus, ab as useThreadSubscription, an as useThreads, ac as useUndo, aw as useUnreadInboxNotificationsCount, ad as useUpdateMyPresence, at as useUpdateNotificationSettings, ae as useUpdateRoomNotificationSettings, ax as useUser, au as useUserThreads_experimental } from './room-Bf3S78LF.mjs';
1
+ export { C as ClientContext, L as LiveblocksProvider, M as MutationContext, R as RoomContext, H as RoomProvider, U as UseStorageStatusOptions, w as UseThreadsOptions, x as createLiveblocksContext, G as createRoomContext, I as useAddReaction, ao as useAttachmentUrl, J as useBatch, K as useBroadcastEvent, N as useCanRedo, O as useCanUndo, y as useClient, P as useCreateComment, Q as useCreateThread, z as useDeleteAllInboxNotifications, S as useDeleteComment, A as useDeleteInboxNotification, T as useDeleteThread, V as useEditComment, W as useEditThreadMetadata, B as useErrorListener, Z as useEventListener, $ as useHistory, af as useHistoryVersionData, ap as useHistoryVersions, _ as useInboxNotificationThread, ar as useInboxNotifications, a0 as useIsInsideRoom, a1 as useLostConnectionListener, D as useMarkAllInboxNotificationsAsRead, E as useMarkInboxNotificationAsRead, a2 as useMarkThreadAsRead, X as useMarkThreadAsResolved, Y as useMarkThreadAsUnresolved, a3 as useMutation, a4 as useMyPresence, as as useNotificationSettings, ag as useOther, ah as useOthers, ai as useOthersConnectionIds, a5 as useOthersListener, aj as useOthersMapped, a6 as useRedo, a7 as useRemoveReaction, a8 as useRoom, av as useRoomInfo, aq as useRoomNotificationSettings, ak as useSelf, a9 as useStatus, al as useStorage, aa as useStorageRoot, am as useStorageStatus, F as useSyncStatus, ab as useThreadSubscription, an as useThreads, ac as useUndo, aw as useUnreadInboxNotificationsCount, ad as useUpdateMyPresence, at as useUpdateNotificationSettings, ae as useUpdateRoomNotificationSettings, ax as useUser, au as useUserThreads_experimental } from './room-1E8LCqCD.cjs';
2
2
  export { Json, JsonObject, isNotificationChannelEnabled, shallow } from '@liveblocks/client';
3
3
  import * as react_jsx_runtime from 'react/jsx-runtime';
4
4
  import { ReactNode } from 'react';
package/dist/index.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- export { C as ClientContext, L as LiveblocksProvider, M as MutationContext, R as RoomContext, H as RoomProvider, U as UseStorageStatusOptions, w as UseThreadsOptions, x as createLiveblocksContext, G as createRoomContext, I as useAddReaction, ao as useAttachmentUrl, J as useBatch, K as useBroadcastEvent, N as useCanRedo, O as useCanUndo, y as useClient, P as useCreateComment, Q as useCreateThread, z as useDeleteAllInboxNotifications, S as useDeleteComment, A as useDeleteInboxNotification, T as useDeleteThread, V as useEditComment, W as useEditThreadMetadata, B as useErrorListener, Z as useEventListener, $ as useHistory, af as useHistoryVersionData, ap as useHistoryVersions, _ as useInboxNotificationThread, ar as useInboxNotifications, a0 as useIsInsideRoom, a1 as useLostConnectionListener, D as useMarkAllInboxNotificationsAsRead, E as useMarkInboxNotificationAsRead, a2 as useMarkThreadAsRead, X as useMarkThreadAsResolved, Y as useMarkThreadAsUnresolved, a3 as useMutation, a4 as useMyPresence, as as useNotificationSettings, ag as useOther, ah as useOthers, ai as useOthersConnectionIds, a5 as useOthersListener, aj as useOthersMapped, a6 as useRedo, a7 as useRemoveReaction, a8 as useRoom, av as useRoomInfo, aq as useRoomNotificationSettings, ak as useSelf, a9 as useStatus, al as useStorage, aa as useStorageRoot, am as useStorageStatus, F as useSyncStatus, ab as useThreadSubscription, an as useThreads, ac as useUndo, aw as useUnreadInboxNotificationsCount, ad as useUpdateMyPresence, at as useUpdateNotificationSettings, ae as useUpdateRoomNotificationSettings, ax as useUser, au as useUserThreads_experimental } from './room-Bf3S78LF.js';
1
+ export { C as ClientContext, L as LiveblocksProvider, M as MutationContext, R as RoomContext, H as RoomProvider, U as UseStorageStatusOptions, w as UseThreadsOptions, x as createLiveblocksContext, G as createRoomContext, I as useAddReaction, ao as useAttachmentUrl, J as useBatch, K as useBroadcastEvent, N as useCanRedo, O as useCanUndo, y as useClient, P as useCreateComment, Q as useCreateThread, z as useDeleteAllInboxNotifications, S as useDeleteComment, A as useDeleteInboxNotification, T as useDeleteThread, V as useEditComment, W as useEditThreadMetadata, B as useErrorListener, Z as useEventListener, $ as useHistory, af as useHistoryVersionData, ap as useHistoryVersions, _ as useInboxNotificationThread, ar as useInboxNotifications, a0 as useIsInsideRoom, a1 as useLostConnectionListener, D as useMarkAllInboxNotificationsAsRead, E as useMarkInboxNotificationAsRead, a2 as useMarkThreadAsRead, X as useMarkThreadAsResolved, Y as useMarkThreadAsUnresolved, a3 as useMutation, a4 as useMyPresence, as as useNotificationSettings, ag as useOther, ah as useOthers, ai as useOthersConnectionIds, a5 as useOthersListener, aj as useOthersMapped, a6 as useRedo, a7 as useRemoveReaction, a8 as useRoom, av as useRoomInfo, aq as useRoomNotificationSettings, ak as useSelf, a9 as useStatus, al as useStorage, aa as useStorageRoot, am as useStorageStatus, F as useSyncStatus, ab as useThreadSubscription, an as useThreads, ac as useUndo, aw as useUnreadInboxNotificationsCount, ad as useUpdateMyPresence, at as useUpdateNotificationSettings, ae as useUpdateRoomNotificationSettings, ax as useUser, au as useUserThreads_experimental } from './room-1E8LCqCD.js';
2
2
  export { Json, JsonObject, isNotificationChannelEnabled, shallow } from '@liveblocks/client';
3
3
  import * as react_jsx_runtime from 'react/jsx-runtime';
4
4
  import { ReactNode } from 'react';
package/dist/index.js CHANGED
@@ -1,145 +1,145 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
-
3
-
4
-
5
-
6
- var _chunkIBC3TDQOjs = require('./chunk-IBC3TDQO.js');
7
-
8
-
9
-
10
-
11
-
12
-
13
-
14
-
15
-
16
-
17
-
18
-
19
-
20
-
21
-
22
-
23
-
24
-
25
-
26
-
27
-
28
-
29
-
30
-
31
-
32
-
33
-
34
-
35
-
36
-
37
-
38
-
39
-
40
-
41
-
42
-
43
-
44
-
45
-
46
-
47
-
48
-
49
-
50
-
51
-
52
-
53
-
54
-
55
-
56
-
57
-
58
-
59
-
60
-
61
-
62
-
63
-
64
-
65
-
66
-
67
-
68
-
69
-
70
-
71
- var _chunk5RVW253Wjs = require('./chunk-5RVW253W.js');
1
+ import {
2
+ ClientSideSuspense,
3
+ PKG_FORMAT,
4
+ PKG_NAME,
5
+ PKG_VERSION
6
+ } from "./chunk-6WL36X3I.js";
7
+ import {
8
+ ClientContext,
9
+ LiveblocksProvider,
10
+ RoomContext,
11
+ _RoomProvider,
12
+ _useAddReaction,
13
+ _useBroadcastEvent,
14
+ _useCreateThread,
15
+ _useDeleteThread,
16
+ _useEditThreadMetadata,
17
+ _useEventListener,
18
+ _useHistoryVersions,
19
+ _useInboxNotificationThread,
20
+ _useIsInsideRoom,
21
+ _useMutation,
22
+ _useMyPresence,
23
+ _useOther,
24
+ _useOthers,
25
+ _useOthersListener,
26
+ _useOthersMapped,
27
+ _useRoom,
28
+ _useRoomNotificationSettings,
29
+ _useSelf,
30
+ _useStorage,
31
+ _useStorageRoot,
32
+ _useThreads,
33
+ _useUpdateMyPresence,
34
+ _useUser,
35
+ _useUserThreads_experimental,
36
+ createLiveblocksContext,
37
+ createRoomContext,
38
+ useAttachmentUrl,
39
+ useBatch,
40
+ useCanRedo,
41
+ useCanUndo,
42
+ useClient,
43
+ useCreateComment,
44
+ useDeleteAllInboxNotifications,
45
+ useDeleteComment,
46
+ useDeleteInboxNotification,
47
+ useEditComment,
48
+ useErrorListener,
49
+ useHistory,
50
+ useHistoryVersionData,
51
+ useInboxNotifications,
52
+ useLostConnectionListener,
53
+ useMarkAllInboxNotificationsAsRead,
54
+ useMarkInboxNotificationAsRead,
55
+ useMarkThreadAsRead,
56
+ useMarkThreadAsResolved,
57
+ useMarkThreadAsUnresolved,
58
+ useNotificationSettings,
59
+ useOthersConnectionIds,
60
+ useRedo,
61
+ useRemoveReaction,
62
+ useRoomInfo,
63
+ useStatus,
64
+ useStorageStatus,
65
+ useSyncStatus,
66
+ useThreadSubscription,
67
+ useUndo,
68
+ useUnreadInboxNotificationsCount,
69
+ useUpdateNotificationSettings,
70
+ useUpdateRoomNotificationSettings
71
+ } from "./chunk-OVSZW7FP.js";
72
72
 
73
73
  // src/index.ts
74
- var _core = require('@liveblocks/core');
75
- var _client = require('@liveblocks/client');
76
- _core.detectDupes.call(void 0, _chunkIBC3TDQOjs.PKG_NAME, _chunkIBC3TDQOjs.PKG_VERSION, _chunkIBC3TDQOjs.PKG_FORMAT);
77
-
78
-
79
-
80
-
81
-
82
-
83
-
84
-
85
-
86
-
87
-
88
-
89
-
90
-
91
-
92
-
93
-
94
-
95
-
96
-
97
-
98
-
99
-
100
-
101
-
102
-
103
-
104
-
105
-
106
-
107
-
108
-
109
-
110
-
111
-
112
-
113
-
114
-
115
-
116
-
117
-
118
-
119
-
120
-
121
-
122
-
123
-
124
-
125
-
126
-
127
-
128
-
129
-
130
-
131
-
132
-
133
-
134
-
135
-
136
-
137
-
138
-
139
-
140
-
141
-
142
-
143
-
144
- exports.ClientContext = _chunk5RVW253Wjs.ClientContext; exports.ClientSideSuspense = _chunkIBC3TDQOjs.ClientSideSuspense; exports.LiveblocksProvider = _chunk5RVW253Wjs.LiveblocksProvider; exports.RoomContext = _chunk5RVW253Wjs.RoomContext; exports.RoomProvider = _chunk5RVW253Wjs._RoomProvider; exports.createLiveblocksContext = _chunk5RVW253Wjs.createLiveblocksContext; exports.createRoomContext = _chunk5RVW253Wjs.createRoomContext; exports.isNotificationChannelEnabled = _client.isNotificationChannelEnabled; exports.shallow = _client.shallow; exports.useAddReaction = _chunk5RVW253Wjs._useAddReaction; exports.useAttachmentUrl = _chunk5RVW253Wjs.useAttachmentUrl; exports.useBatch = _chunk5RVW253Wjs.useBatch; exports.useBroadcastEvent = _chunk5RVW253Wjs._useBroadcastEvent; exports.useCanRedo = _chunk5RVW253Wjs.useCanRedo; exports.useCanUndo = _chunk5RVW253Wjs.useCanUndo; exports.useClient = _chunk5RVW253Wjs.useClient; exports.useCreateComment = _chunk5RVW253Wjs.useCreateComment; exports.useCreateThread = _chunk5RVW253Wjs._useCreateThread; exports.useDeleteAllInboxNotifications = _chunk5RVW253Wjs.useDeleteAllInboxNotifications; exports.useDeleteComment = _chunk5RVW253Wjs.useDeleteComment; exports.useDeleteInboxNotification = _chunk5RVW253Wjs.useDeleteInboxNotification; exports.useDeleteThread = _chunk5RVW253Wjs._useDeleteThread; exports.useEditComment = _chunk5RVW253Wjs.useEditComment; exports.useEditThreadMetadata = _chunk5RVW253Wjs._useEditThreadMetadata; exports.useErrorListener = _chunk5RVW253Wjs.useErrorListener; exports.useEventListener = _chunk5RVW253Wjs._useEventListener; exports.useHistory = _chunk5RVW253Wjs.useHistory; exports.useHistoryVersionData = _chunk5RVW253Wjs.useHistoryVersionData; exports.useHistoryVersions = _chunk5RVW253Wjs._useHistoryVersions; exports.useInboxNotificationThread = _chunk5RVW253Wjs._useInboxNotificationThread; exports.useInboxNotifications = _chunk5RVW253Wjs.useInboxNotifications; exports.useIsInsideRoom = _chunk5RVW253Wjs._useIsInsideRoom; exports.useLostConnectionListener = _chunk5RVW253Wjs.useLostConnectionListener; exports.useMarkAllInboxNotificationsAsRead = _chunk5RVW253Wjs.useMarkAllInboxNotificationsAsRead; exports.useMarkInboxNotificationAsRead = _chunk5RVW253Wjs.useMarkInboxNotificationAsRead; exports.useMarkThreadAsRead = _chunk5RVW253Wjs.useMarkThreadAsRead; exports.useMarkThreadAsResolved = _chunk5RVW253Wjs.useMarkThreadAsResolved; exports.useMarkThreadAsUnresolved = _chunk5RVW253Wjs.useMarkThreadAsUnresolved; exports.useMutation = _chunk5RVW253Wjs._useMutation; exports.useMyPresence = _chunk5RVW253Wjs._useMyPresence; exports.useNotificationSettings = _chunk5RVW253Wjs.useNotificationSettings; exports.useOther = _chunk5RVW253Wjs._useOther; exports.useOthers = _chunk5RVW253Wjs._useOthers; exports.useOthersConnectionIds = _chunk5RVW253Wjs.useOthersConnectionIds; exports.useOthersListener = _chunk5RVW253Wjs._useOthersListener; exports.useOthersMapped = _chunk5RVW253Wjs._useOthersMapped; exports.useRedo = _chunk5RVW253Wjs.useRedo; exports.useRemoveReaction = _chunk5RVW253Wjs.useRemoveReaction; exports.useRoom = _chunk5RVW253Wjs._useRoom; exports.useRoomInfo = _chunk5RVW253Wjs.useRoomInfo; exports.useRoomNotificationSettings = _chunk5RVW253Wjs._useRoomNotificationSettings; exports.useSelf = _chunk5RVW253Wjs._useSelf; exports.useStatus = _chunk5RVW253Wjs.useStatus; exports.useStorage = _chunk5RVW253Wjs._useStorage; exports.useStorageRoot = _chunk5RVW253Wjs._useStorageRoot; exports.useStorageStatus = _chunk5RVW253Wjs.useStorageStatus; exports.useSyncStatus = _chunk5RVW253Wjs.useSyncStatus; exports.useThreadSubscription = _chunk5RVW253Wjs.useThreadSubscription; exports.useThreads = _chunk5RVW253Wjs._useThreads; exports.useUndo = _chunk5RVW253Wjs.useUndo; exports.useUnreadInboxNotificationsCount = _chunk5RVW253Wjs.useUnreadInboxNotificationsCount; exports.useUpdateMyPresence = _chunk5RVW253Wjs._useUpdateMyPresence; exports.useUpdateNotificationSettings = _chunk5RVW253Wjs.useUpdateNotificationSettings; exports.useUpdateRoomNotificationSettings = _chunk5RVW253Wjs.useUpdateRoomNotificationSettings; exports.useUser = _chunk5RVW253Wjs._useUser; exports.useUserThreads_experimental = _chunk5RVW253Wjs._useUserThreads_experimental;
74
+ import { detectDupes } from "@liveblocks/core";
75
+ import { shallow, isNotificationChannelEnabled } from "@liveblocks/client";
76
+ detectDupes(PKG_NAME, PKG_VERSION, PKG_FORMAT);
77
+ export {
78
+ ClientContext,
79
+ ClientSideSuspense,
80
+ LiveblocksProvider,
81
+ RoomContext,
82
+ _RoomProvider as RoomProvider,
83
+ createLiveblocksContext,
84
+ createRoomContext,
85
+ isNotificationChannelEnabled,
86
+ shallow,
87
+ _useAddReaction as useAddReaction,
88
+ useAttachmentUrl,
89
+ useBatch,
90
+ _useBroadcastEvent as useBroadcastEvent,
91
+ useCanRedo,
92
+ useCanUndo,
93
+ useClient,
94
+ useCreateComment,
95
+ _useCreateThread as useCreateThread,
96
+ useDeleteAllInboxNotifications,
97
+ useDeleteComment,
98
+ useDeleteInboxNotification,
99
+ _useDeleteThread as useDeleteThread,
100
+ useEditComment,
101
+ _useEditThreadMetadata as useEditThreadMetadata,
102
+ useErrorListener,
103
+ _useEventListener as useEventListener,
104
+ useHistory,
105
+ useHistoryVersionData,
106
+ _useHistoryVersions as useHistoryVersions,
107
+ _useInboxNotificationThread as useInboxNotificationThread,
108
+ useInboxNotifications,
109
+ _useIsInsideRoom as useIsInsideRoom,
110
+ useLostConnectionListener,
111
+ useMarkAllInboxNotificationsAsRead,
112
+ useMarkInboxNotificationAsRead,
113
+ useMarkThreadAsRead,
114
+ useMarkThreadAsResolved,
115
+ useMarkThreadAsUnresolved,
116
+ _useMutation as useMutation,
117
+ _useMyPresence as useMyPresence,
118
+ useNotificationSettings,
119
+ _useOther as useOther,
120
+ _useOthers as useOthers,
121
+ useOthersConnectionIds,
122
+ _useOthersListener as useOthersListener,
123
+ _useOthersMapped as useOthersMapped,
124
+ useRedo,
125
+ useRemoveReaction,
126
+ _useRoom as useRoom,
127
+ useRoomInfo,
128
+ _useRoomNotificationSettings as useRoomNotificationSettings,
129
+ _useSelf as useSelf,
130
+ useStatus,
131
+ _useStorage as useStorage,
132
+ _useStorageRoot as useStorageRoot,
133
+ useStorageStatus,
134
+ useSyncStatus,
135
+ useThreadSubscription,
136
+ _useThreads as useThreads,
137
+ useUndo,
138
+ useUnreadInboxNotificationsCount,
139
+ _useUpdateMyPresence as useUpdateMyPresence,
140
+ useUpdateNotificationSettings,
141
+ useUpdateRoomNotificationSettings,
142
+ _useUser as useUser,
143
+ _useUserThreads_experimental as useUserThreads_experimental
144
+ };
145
145
  //# sourceMappingURL=index.js.map
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"sources":["/home/runner/work/liveblocks/liveblocks/packages/liveblocks-react/dist/index.js","../src/index.ts"],"names":[],"mappings":"AAAA;AACE;AACA;AACA;AACA;AACF,sDAA4B;AAC5B;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACF,sDAA4B;AAC5B;AACA;ACvEA,wCAA4B;AAc5B,4CAAsD;AAXtD,+BAAA,yBAAY,EAAU,4BAAA,EAAa,2BAAU,CAAA;ADwE7C;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACF,0oIAAC","file":"/home/runner/work/liveblocks/liveblocks/packages/liveblocks-react/dist/index.js","sourcesContent":[null,"/* eslint-disable simple-import-sort/exports */\nimport { detectDupes } from \"@liveblocks/core\";\n\nimport { PKG_FORMAT, PKG_NAME, PKG_VERSION } from \"./version\";\ndetectDupes(PKG_NAME, PKG_VERSION, PKG_FORMAT);\n\nexport { ClientSideSuspense } from \"./ClientSideSuspense\";\nexport type {\n MutationContext,\n UseStorageStatusOptions,\n UseThreadsOptions,\n} from \"./types\";\n\n// Re-exports from @liveblocks/client, for convenience\nexport type { Json, JsonObject } from \"@liveblocks/client\";\nexport { shallow, isNotificationChannelEnabled } from \"@liveblocks/client\";\n\n// Export all the top-level hooks\nexport {\n ClientContext,\n createLiveblocksContext,\n LiveblocksProvider,\n useClient,\n useDeleteAllInboxNotifications,\n useDeleteInboxNotification,\n useErrorListener,\n useInboxNotificationThread,\n useMarkAllInboxNotificationsAsRead,\n useMarkInboxNotificationAsRead,\n useSyncStatus,\n} from \"./liveblocks\";\nexport {\n createRoomContext,\n RoomContext,\n RoomProvider,\n useAddReaction,\n useBatch,\n useBroadcastEvent,\n useCanRedo,\n useCanUndo,\n useCreateComment,\n useCreateThread,\n useDeleteComment,\n useDeleteThread,\n useEditComment,\n useEditThreadMetadata,\n useMarkThreadAsResolved,\n useMarkThreadAsUnresolved,\n useEventListener,\n useHistory,\n useIsInsideRoom,\n useLostConnectionListener,\n useMarkThreadAsRead,\n useMutation,\n useMyPresence,\n useOthersListener,\n useRedo,\n useRemoveReaction,\n useRoom,\n useStatus,\n useStorageRoot,\n useThreadSubscription,\n useUndo,\n useUpdateMyPresence,\n useUpdateRoomNotificationSettings,\n useHistoryVersionData,\n} from \"./room\";\n\n// Export the classic (non-Suspense) versions of our hooks\n// (This part differs from src/suspense.ts)\nexport {\n useOther,\n useOthers,\n useOthersConnectionIds,\n useOthersMapped,\n useSelf,\n useStorage,\n useStorageStatus,\n useThreads,\n useAttachmentUrl,\n useHistoryVersions,\n useRoomNotificationSettings,\n} from \"./room\";\nexport {\n useInboxNotifications,\n useNotificationSettings,\n useUpdateNotificationSettings,\n useUserThreads_experimental as useUserThreads_experimental,\n useRoomInfo,\n useUnreadInboxNotificationsCount,\n useUser,\n} from \"./liveblocks\";\n"]}
1
+ {"version":3,"sources":["../src/index.ts"],"sourcesContent":["/* eslint-disable simple-import-sort/exports */\nimport { detectDupes } from \"@liveblocks/core\";\n\nimport { PKG_FORMAT, PKG_NAME, PKG_VERSION } from \"./version\";\ndetectDupes(PKG_NAME, PKG_VERSION, PKG_FORMAT);\n\nexport { ClientSideSuspense } from \"./ClientSideSuspense\";\nexport type {\n MutationContext,\n UseStorageStatusOptions,\n UseThreadsOptions,\n} from \"./types\";\n\n// Re-exports from @liveblocks/client, for convenience\nexport type { Json, JsonObject } from \"@liveblocks/client\";\nexport { shallow, isNotificationChannelEnabled } from \"@liveblocks/client\";\n\n// Export all the top-level hooks\nexport {\n ClientContext,\n createLiveblocksContext,\n LiveblocksProvider,\n useClient,\n useDeleteAllInboxNotifications,\n useDeleteInboxNotification,\n useErrorListener,\n useInboxNotificationThread,\n useMarkAllInboxNotificationsAsRead,\n useMarkInboxNotificationAsRead,\n useSyncStatus,\n} from \"./liveblocks\";\nexport {\n createRoomContext,\n RoomContext,\n RoomProvider,\n useAddReaction,\n useBatch,\n useBroadcastEvent,\n useCanRedo,\n useCanUndo,\n useCreateComment,\n useCreateThread,\n useDeleteComment,\n useDeleteThread,\n useEditComment,\n useEditThreadMetadata,\n useMarkThreadAsResolved,\n useMarkThreadAsUnresolved,\n useEventListener,\n useHistory,\n useIsInsideRoom,\n useLostConnectionListener,\n useMarkThreadAsRead,\n useMutation,\n useMyPresence,\n useOthersListener,\n useRedo,\n useRemoveReaction,\n useRoom,\n useStatus,\n useStorageRoot,\n useThreadSubscription,\n useUndo,\n useUpdateMyPresence,\n useUpdateRoomNotificationSettings,\n useHistoryVersionData,\n} from \"./room\";\n\n// Export the classic (non-Suspense) versions of our hooks\n// (This part differs from src/suspense.ts)\nexport {\n useOther,\n useOthers,\n useOthersConnectionIds,\n useOthersMapped,\n useSelf,\n useStorage,\n useStorageStatus,\n useThreads,\n useAttachmentUrl,\n useHistoryVersions,\n useRoomNotificationSettings,\n} from \"./room\";\nexport {\n useInboxNotifications,\n useNotificationSettings,\n useUpdateNotificationSettings,\n useUserThreads_experimental as useUserThreads_experimental,\n useRoomInfo,\n useUnreadInboxNotificationsCount,\n useUser,\n} from \"./liveblocks\";\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AACA,SAAS,mBAAmB;AAc5B,SAAS,SAAS,oCAAoC;AAXtD,YAAY,UAAU,aAAa,UAAU;","names":[]}
@@ -1235,6 +1235,23 @@ declare function createStore_forPermissionHints(): {
1235
1235
  signal: ISignal<PermissionHintsLUT>;
1236
1236
  update: (newHints: Record<string, Permission[]>) => void;
1237
1237
  };
1238
+ /**
1239
+ * User notification settings
1240
+ * e.g.
1241
+ * {
1242
+ * email: {
1243
+ * thread: true,
1244
+ * textMention: false,
1245
+ * $customKind: true | false,
1246
+ * }
1247
+ * slack: {
1248
+ * thread: true,
1249
+ * textMention: false,
1250
+ * $customKind: true | false,
1251
+ * }
1252
+ * }
1253
+ * e.g. {} when before the first successful fetch.
1254
+ */
1238
1255
  declare function createStore_forUserNotificationSettings(updates: ISignal<readonly OptimisticUpdate<BaseMetadata$1>[]>): {
1239
1256
  signal: DerivedSignal<UserNotificationSettings>;
1240
1257
  update: (settings: UserNotificationSettings) => void;
@@ -1235,6 +1235,23 @@ declare function createStore_forPermissionHints(): {
1235
1235
  signal: ISignal<PermissionHintsLUT>;
1236
1236
  update: (newHints: Record<string, Permission[]>) => void;
1237
1237
  };
1238
+ /**
1239
+ * User notification settings
1240
+ * e.g.
1241
+ * {
1242
+ * email: {
1243
+ * thread: true,
1244
+ * textMention: false,
1245
+ * $customKind: true | false,
1246
+ * }
1247
+ * slack: {
1248
+ * thread: true,
1249
+ * textMention: false,
1250
+ * $customKind: true | false,
1251
+ * }
1252
+ * }
1253
+ * e.g. {} when before the first successful fetch.
1254
+ */
1238
1255
  declare function createStore_forUserNotificationSettings(updates: ISignal<readonly OptimisticUpdate<BaseMetadata$1>[]>): {
1239
1256
  signal: DerivedSignal<UserNotificationSettings>;
1240
1257
  update: (settings: UserNotificationSettings) => void;