@liveblocks/react 2.18.2 → 2.18.4-uns1
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/_private.cjs +131 -0
- package/dist/_private.cjs.map +1 -0
- package/dist/{_private.d.mts → _private.d.cts} +1 -1
- package/dist/_private.d.ts +1 -1
- package/dist/_private.js +75 -73
- package/dist/_private.js.map +1 -1
- package/dist/{chunk-LJCQ446S.js → chunk-EC62ST5F.cjs} +32 -53
- package/dist/chunk-EC62ST5F.cjs.map +1 -0
- package/dist/{chunk-N5KCAECN.mjs → chunk-FKN4BSVX.js} +2 -2
- package/dist/{chunk-OSTPNTQF.mjs → chunk-OVSZW7FP.js} +17 -38
- package/dist/chunk-OVSZW7FP.js.map +1 -0
- package/dist/{chunk-2KLGC2VG.js → chunk-XFNPHHAO.cjs} +2 -2
- package/dist/chunk-XFNPHHAO.cjs.map +1 -0
- package/dist/index.cjs +145 -0
- package/dist/index.cjs.map +1 -0
- package/dist/{index.d.mts → index.d.cts} +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +142 -142
- package/dist/index.js.map +1 -1
- package/dist/{room-Bf3S78LF.d.mts → room-1E8LCqCD.d.cts} +17 -0
- package/dist/{room-Bf3S78LF.d.ts → room-1E8LCqCD.d.ts} +17 -0
- package/dist/suspense.cjs +139 -0
- package/dist/suspense.cjs.map +1 -0
- package/dist/{suspense.d.mts → suspense.d.cts} +2 -2
- package/dist/suspense.d.ts +1 -1
- package/dist/suspense.js +136 -136
- package/dist/suspense.js.map +1 -1
- package/package.json +21 -21
- package/dist/_private.mjs +0 -129
- package/dist/_private.mjs.map +0 -1
- package/dist/chunk-2KLGC2VG.js.map +0 -1
- package/dist/chunk-LJCQ446S.js.map +0 -1
- package/dist/chunk-OSTPNTQF.mjs.map +0 -1
- package/dist/index.mjs +0 -145
- package/dist/index.mjs.map +0 -1
- package/dist/suspense.mjs +0 -139
- package/dist/suspense.mjs.map +0 -1
- /package/dist/{chunk-N5KCAECN.mjs.map → chunk-FKN4BSVX.js.map} +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});// src/version.ts
|
|
2
2
|
var PKG_NAME = "@liveblocks/react";
|
|
3
|
-
var PKG_VERSION = "2.18.
|
|
3
|
+
var PKG_VERSION = "2.18.4-uns1";
|
|
4
4
|
var PKG_FORMAT = "cjs";
|
|
5
5
|
|
|
6
6
|
// src/ClientSideSuspense.tsx
|
|
@@ -20,4 +20,4 @@ function ClientSideSuspense(props) {
|
|
|
20
20
|
|
|
21
21
|
|
|
22
22
|
exports.PKG_NAME = PKG_NAME; exports.PKG_VERSION = PKG_VERSION; exports.PKG_FORMAT = PKG_FORMAT; exports.ClientSideSuspense = ClientSideSuspense;
|
|
23
|
-
//# sourceMappingURL=chunk-
|
|
23
|
+
//# sourceMappingURL=chunk-XFNPHHAO.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["/home/runner/work/liveblocks/liveblocks/packages/liveblocks-react/dist/chunk-XFNPHHAO.cjs","../src/version.ts","../src/ClientSideSuspense.tsx"],"names":[],"mappings":"AAAA;ACGO,IAAM,SAAA,EAAW,mBAAA;AACjB,IAAM,YAAA,EAAiD,aAAA;AACvD,IAAM,WAAA,EAAgD,KAAA;ADD7D;AACA;AEJA,8BAA8C;AAkC1C,+CAAA;AAVG,SAAS,kBAAA,CAAmB,KAAA,EAAc;AAC/C,EAAA,MAAM,CAAC,OAAA,EAAS,UAAU,EAAA,EAAI,6BAAA,KAAc,CAAA;AAE5C,EAAA,8BAAA,CAAU,EAAA,GAAM;AAGd,IAAA,UAAA,CAAW,IAAI,CAAA;AAAA,EACjB,CAAA,EAAG,CAAC,CAAC,CAAA;AAEL,EAAA,uBACE,6BAAA,eAAC,EAAA,EAAS,QAAA,EAAU,KAAA,CAAM,QAAA,EACvB,QAAA,EAAA,QAAA,EACG,OAAO,KAAA,CAAM,SAAA,IAAa,WAAA,EACxB,KAAA,CAAM,QAAA,CAAS,EAAA,EACf,KAAA,CAAM,SAAA,EACR,KAAA,CAAM,SAAA,CACZ,CAAA;AAEJ;AF5BA;AACA;AACE;AACA;AACA;AACA;AACF,iJAAC","file":"/home/runner/work/liveblocks/liveblocks/packages/liveblocks-react/dist/chunk-XFNPHHAO.cjs","sourcesContent":[null,"declare const __VERSION__: string;\ndeclare const TSUP_FORMAT: string;\n\nexport const PKG_NAME = \"@liveblocks/react\";\nexport const PKG_VERSION = typeof __VERSION__ === \"string\" && __VERSION__;\nexport const PKG_FORMAT = typeof TSUP_FORMAT === \"string\" && TSUP_FORMAT;\n","import type { ReactNode } from \"react\";\nimport { Suspense, useEffect, useState } from \"react\";\n\ntype Props = {\n fallback: ReactNode;\n children: (() => ReactNode | undefined) | ReactNode | undefined;\n};\n\n/**\n * Almost like a normal <Suspense> component, except that for server-side\n * renders, the fallback will be used.\n *\n * The child props will have to be provided in a function, i.e. change:\n *\n * <Suspense fallback={<Loading />}>\n * <MyRealComponent a={1} />\n * </Suspense>\n *\n * To:\n *\n * <ClientSideSuspense fallback={<Loading />}>\n * <MyRealComponent a={1} />\n * </ClientSideSuspense>\n *\n */\nexport function ClientSideSuspense(props: Props) {\n const [mounted, setMounted] = useState(false);\n\n useEffect(() => {\n // Effects are never executed on the server side. The point of this is to\n // delay the flipping of this boolean until after hydration has happened.\n setMounted(true);\n }, []);\n\n return (\n <Suspense fallback={props.fallback}>\n {mounted\n ? typeof props.children === \"function\"\n ? props.children()\n : props.children\n : props.fallback}\n </Suspense>\n );\n}\n"]}
|
package/dist/index.cjs
ADDED
|
@@ -0,0 +1,145 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
var _chunkXFNPHHAOcjs = require('./chunk-XFNPHHAO.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, _chunkXFNPHHAOcjs.PKG_NAME, _chunkXFNPHHAOcjs.PKG_VERSION, _chunkXFNPHHAOcjs.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 = _chunkXFNPHHAOcjs.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-
|
|
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-
|
|
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
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
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
|
-
|
|
1
|
+
import {
|
|
2
|
+
ClientSideSuspense,
|
|
3
|
+
PKG_FORMAT,
|
|
4
|
+
PKG_NAME,
|
|
5
|
+
PKG_VERSION
|
|
6
|
+
} from "./chunk-FKN4BSVX.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
|
-
|
|
75
|
-
|
|
76
|
-
|
|
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
|
-
|
|
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":["
|
|
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;
|