@liveblocks/react 2.9.3-experimental1 → 2.10.1-react19

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.
@@ -0,0 +1,22 @@
1
+ // src/version.ts
2
+ var PKG_NAME = "@liveblocks/react";
3
+ var PKG_VERSION = "2.10.1-react19";
4
+ var PKG_FORMAT = "esm";
5
+
6
+ // src/ClientSideSuspense.tsx
7
+ import * as React from "react";
8
+ function ClientSideSuspense(props) {
9
+ const [mounted, setMounted] = React.useState(false);
10
+ React.useEffect(() => {
11
+ setMounted(true);
12
+ }, []);
13
+ return /* @__PURE__ */ React.createElement(React.Suspense, { fallback: props.fallback }, mounted ? typeof props.children === "function" ? props.children() : props.children : props.fallback);
14
+ }
15
+
16
+ export {
17
+ PKG_NAME,
18
+ PKG_VERSION,
19
+ PKG_FORMAT,
20
+ ClientSideSuspense
21
+ };
22
+ //# sourceMappingURL=chunk-DNACURSM.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/version.ts","../src/ClientSideSuspense.tsx"],"sourcesContent":["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 * as React 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] = React.useState(false);\n\n React.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 <React.Suspense fallback={props.fallback}>\n {mounted\n ? typeof props.children === \"function\"\n ? props.children()\n : props.children\n : props.fallback}\n </React.Suspense>\n );\n}\n"],"mappings":";AAGO,IAAM,WAAW;AACjB,IAAM,cAAiD;AACvD,IAAM,aAAgD;;;ACJ7D,YAAY,WAAW;AAwBhB,SAAS,mBAAmB,OAAc;AAC/C,QAAM,CAAC,SAAS,UAAU,IAAU,eAAS,KAAK;AAElD,EAAM,gBAAU,MAAM;AAGpB,eAAW,IAAI;AAAA,EACjB,GAAG,CAAC,CAAC;AAEL,SACE,oCAAO,gBAAN,EAAe,UAAU,MAAM,YAC7B,UACG,OAAO,MAAM,aAAa,aACxB,MAAM,SAAS,IACf,MAAM,WACR,MAAM,QACZ;AAEJ;","names":[]}
@@ -0,0 +1,22 @@
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { newObj[key] = obj[key]; } } } newObj.default = obj; return newObj; } }// src/version.ts
2
+ var PKG_NAME = "@liveblocks/react";
3
+ var PKG_VERSION = "2.10.1-react19";
4
+ var PKG_FORMAT = "cjs";
5
+
6
+ // src/ClientSideSuspense.tsx
7
+ var _react = require('react'); var React = _interopRequireWildcard(_react);
8
+ function ClientSideSuspense(props) {
9
+ const [mounted, setMounted] = React.useState(false);
10
+ React.useEffect(() => {
11
+ setMounted(true);
12
+ }, []);
13
+ return /* @__PURE__ */ React.createElement(React.Suspense, { fallback: props.fallback }, mounted ? typeof props.children === "function" ? props.children() : props.children : props.fallback);
14
+ }
15
+
16
+
17
+
18
+
19
+
20
+
21
+ exports.PKG_NAME = PKG_NAME; exports.PKG_VERSION = PKG_VERSION; exports.PKG_FORMAT = PKG_FORMAT; exports.ClientSideSuspense = ClientSideSuspense;
22
+ //# sourceMappingURL=chunk-EXS4G6PT.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/version.ts","../src/ClientSideSuspense.tsx"],"names":[],"mappings":";AAGO,IAAM,WAAW;AACjB,IAAM,cAAiD;AACvD,IAAM,aAAgD;;;ACJ7D,YAAY,WAAW;AAwBhB,SAAS,mBAAmB,OAAc;AAC/C,QAAM,CAAC,SAAS,UAAU,IAAU,eAAS,KAAK;AAElD,EAAM,gBAAU,MAAM;AAGpB,eAAW,IAAI;AAAA,EACjB,GAAG,CAAC,CAAC;AAEL,SACE,oCAAO,gBAAN,EAAe,UAAU,MAAM,YAC7B,UACG,OAAO,MAAM,aAAa,aACxB,MAAM,SAAS,IACf,MAAM,WACR,MAAM,QACZ;AAEJ","sourcesContent":["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 * as React 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] = React.useState(false);\n\n React.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 <React.Suspense fallback={props.fallback}>\n {mounted\n ? typeof props.children === \"function\"\n ? props.children()\n : props.children\n : props.fallback}\n </React.Suspense>\n );\n}\n"]}
package/dist/index.d.mts CHANGED
@@ -1,4 +1,5 @@
1
- export { b as ClientContext, C as ClientSideSuspense, X as CreateThreadError, L as LiveblocksProvider, M as MutationContext, R as RoomContext, i as RoomProvider, U as UseStorageStatusOptions, a as UseThreadsOptions, c as createLiveblocksContext, h as createRoomContext, ac as getUmbrellaStoreForClient, ad as selectThreads, j as useAddReaction, a5 as useAttachmentUrl, k as useBatch, l as useBroadcastEvent, m as useCanRedo, n as useCanUndo, u as useClient, W as useCommentsErrorListener, o as useCreateComment, p as useCreateThread, f as useDeleteAllInboxNotifications, q as useDeleteComment, g as useDeleteInboxNotification, r as useDeleteThread, s as useEditComment, t as useEditThreadMetadata, x as useErrorListener, y as useEventListener, z as useHistory, V as useHistoryVersionData, a6 as useHistoryVersions, _ as useInboxNotificationThread, a7 as useInboxNotifications, A as useIsInsideRoom, B as useLostConnectionListener, d as useMarkAllInboxNotificationsAsRead, e as useMarkInboxNotificationAsRead, D as useMarkThreadAsRead, v as useMarkThreadAsResolved, w as useMarkThreadAsUnresolved, E as useMutation, F as useMyPresence, Y as useOther, Z as useOthers, $ as useOthersConnectionIds, G as useOthersListener, a0 as useOthersMapped, H as useRedo, I as useRemoveReaction, J as useRoom, a9 as useRoomInfo, K as useRoomNotificationSettings, a1 as useSelf, N as useStatus, a2 as useStorage, O as useStorageRoot, a3 as useStorageStatus, P as useThreadSubscription, a4 as useThreads, Q as useUndo, aa as useUnreadInboxNotificationsCount, S as useUpdateMyPresence, T as useUpdateRoomNotificationSettings, ab as useUser, a8 as useUserThreads_experimental } from './suspense-fYGGJ3D9.mjs';
1
+ export { C as ClientSideSuspense, R as RoomContext, _ as RoomProvider, c as createRoomContext, a as useAddReaction, S as useAttachmentUrl, u as useBatch, b as useBroadcastEvent, d as useCanRedo, e as useCanUndo, I as useCommentsErrorListener, f as useCreateComment, g as useCreateThread, h as useDeleteComment, i as useDeleteThread, j as useEditComment, k as useEditThreadMetadata, n as useErrorListener, o as useEventListener, p as useHistory, H as useHistoryVersionData, T as useHistoryVersions, q as useIsInsideRoom, r as useLostConnectionListener, s as useMarkThreadAsRead, l as useMarkThreadAsResolved, m as useMarkThreadAsUnresolved, t as useMutation, v as useMyPresence, J as useOther, K as useOthers, L as useOthersConnectionIds, w as useOthersListener, M as useOthersMapped, x as useRedo, y as useRemoveReaction, z as useRoom, U as useRoomNotificationSettings, N as useSelf, A as useStatus, O as useStorage, B as useStorageRoot, P as useStorageStatus, D as useThreadSubscription, Q as useThreads, E as useUndo, F as useUpdateMyPresence, G as useUpdateRoomNotificationSettings } from './suspense-vGJE9Mgq.mjs';
2
+ export { e as ClientContext, L as LiveblocksProvider, M as MutationContext, U as UseStorageStatusOptions, d as UseThreadsOptions, f as createLiveblocksContext, u as useClient, j as useDeleteAllInboxNotifications, k as useDeleteInboxNotification, _ as useInboxNotificationThread, l as useInboxNotifications, h as useMarkAllInboxNotificationsAsRead, i as useMarkInboxNotificationAsRead, n as useRoomInfo, o as useUnreadInboxNotificationsCount, p as useUser, m as useUserThreads_experimental } from './liveblocks-SAVcXwMX.mjs';
2
3
  export { Json, JsonObject, shallow } from '@liveblocks/client';
3
4
  import 'react';
4
5
  import '@liveblocks/core';
package/dist/index.d.ts CHANGED
@@ -1,4 +1,5 @@
1
- export { b as ClientContext, C as ClientSideSuspense, X as CreateThreadError, L as LiveblocksProvider, M as MutationContext, R as RoomContext, i as RoomProvider, U as UseStorageStatusOptions, a as UseThreadsOptions, c as createLiveblocksContext, h as createRoomContext, ac as getUmbrellaStoreForClient, ad as selectThreads, j as useAddReaction, a5 as useAttachmentUrl, k as useBatch, l as useBroadcastEvent, m as useCanRedo, n as useCanUndo, u as useClient, W as useCommentsErrorListener, o as useCreateComment, p as useCreateThread, f as useDeleteAllInboxNotifications, q as useDeleteComment, g as useDeleteInboxNotification, r as useDeleteThread, s as useEditComment, t as useEditThreadMetadata, x as useErrorListener, y as useEventListener, z as useHistory, V as useHistoryVersionData, a6 as useHistoryVersions, _ as useInboxNotificationThread, a7 as useInboxNotifications, A as useIsInsideRoom, B as useLostConnectionListener, d as useMarkAllInboxNotificationsAsRead, e as useMarkInboxNotificationAsRead, D as useMarkThreadAsRead, v as useMarkThreadAsResolved, w as useMarkThreadAsUnresolved, E as useMutation, F as useMyPresence, Y as useOther, Z as useOthers, $ as useOthersConnectionIds, G as useOthersListener, a0 as useOthersMapped, H as useRedo, I as useRemoveReaction, J as useRoom, a9 as useRoomInfo, K as useRoomNotificationSettings, a1 as useSelf, N as useStatus, a2 as useStorage, O as useStorageRoot, a3 as useStorageStatus, P as useThreadSubscription, a4 as useThreads, Q as useUndo, aa as useUnreadInboxNotificationsCount, S as useUpdateMyPresence, T as useUpdateRoomNotificationSettings, ab as useUser, a8 as useUserThreads_experimental } from './suspense-fYGGJ3D9.js';
1
+ export { C as ClientSideSuspense, R as RoomContext, _ as RoomProvider, c as createRoomContext, a as useAddReaction, S as useAttachmentUrl, u as useBatch, b as useBroadcastEvent, d as useCanRedo, e as useCanUndo, I as useCommentsErrorListener, f as useCreateComment, g as useCreateThread, h as useDeleteComment, i as useDeleteThread, j as useEditComment, k as useEditThreadMetadata, n as useErrorListener, o as useEventListener, p as useHistory, H as useHistoryVersionData, T as useHistoryVersions, q as useIsInsideRoom, r as useLostConnectionListener, s as useMarkThreadAsRead, l as useMarkThreadAsResolved, m as useMarkThreadAsUnresolved, t as useMutation, v as useMyPresence, J as useOther, K as useOthers, L as useOthersConnectionIds, w as useOthersListener, M as useOthersMapped, x as useRedo, y as useRemoveReaction, z as useRoom, U as useRoomNotificationSettings, N as useSelf, A as useStatus, O as useStorage, B as useStorageRoot, P as useStorageStatus, D as useThreadSubscription, Q as useThreads, E as useUndo, F as useUpdateMyPresence, G as useUpdateRoomNotificationSettings } from './suspense-W7Cp9ygn.js';
2
+ export { e as ClientContext, L as LiveblocksProvider, M as MutationContext, U as UseStorageStatusOptions, d as UseThreadsOptions, f as createLiveblocksContext, u as useClient, j as useDeleteAllInboxNotifications, k as useDeleteInboxNotification, _ as useInboxNotificationThread, l as useInboxNotifications, h as useMarkAllInboxNotificationsAsRead, i as useMarkInboxNotificationAsRead, n as useRoomInfo, o as useUnreadInboxNotificationsCount, p as useUser, m as useUserThreads_experimental } from './liveblocks-SAVcXwMX.js';
2
3
  export { Json, JsonObject, shallow } from '@liveblocks/client';
3
4
  import 'react';
4
5
  import '@liveblocks/core';
package/dist/index.js CHANGED
@@ -3,6 +3,7 @@
3
3
 
4
4
 
5
5
 
6
+ var _chunkEXS4G6PTjs = require('./chunk-EXS4G6PT.js');
6
7
 
7
8
 
8
9
 
@@ -65,17 +66,12 @@
65
66
 
66
67
 
67
68
 
68
-
69
-
70
- var _chunkPZIVKFDZjs = require('./chunk-PZIVKFDZ.js');
69
+ var _chunk3MM4G6XBjs = require('./chunk-3MM4G6XB.js');
71
70
 
72
71
  // src/index.ts
73
72
  var _core = require('@liveblocks/core');
74
73
  var _client = require('@liveblocks/client');
75
- _core.detectDupes.call(void 0, _chunkPZIVKFDZjs.PKG_NAME, _chunkPZIVKFDZjs.PKG_VERSION, _chunkPZIVKFDZjs.PKG_FORMAT);
76
-
77
-
78
-
74
+ _core.detectDupes.call(void 0, _chunkEXS4G6PTjs.PKG_NAME, _chunkEXS4G6PTjs.PKG_VERSION, _chunkEXS4G6PTjs.PKG_FORMAT);
79
75
 
80
76
 
81
77
 
@@ -140,5 +136,5 @@ _core.detectDupes.call(void 0, _chunkPZIVKFDZjs.PKG_NAME, _chunkPZIVKFDZjs.PKG_V
140
136
 
141
137
 
142
138
 
143
- exports.ClientContext = _chunkPZIVKFDZjs.ClientContext; exports.ClientSideSuspense = _chunkPZIVKFDZjs.ClientSideSuspense; exports.CreateThreadError = _chunkPZIVKFDZjs.CreateThreadError; exports.LiveblocksProvider = _chunkPZIVKFDZjs.LiveblocksProvider; exports.RoomContext = _chunkPZIVKFDZjs.RoomContext; exports.RoomProvider = _chunkPZIVKFDZjs._RoomProvider; exports.createLiveblocksContext = _chunkPZIVKFDZjs.createLiveblocksContext; exports.createRoomContext = _chunkPZIVKFDZjs.createRoomContext; exports.getUmbrellaStoreForClient = _chunkPZIVKFDZjs.getUmbrellaStoreForClient; exports.selectThreads = _chunkPZIVKFDZjs.selectThreads; exports.shallow = _client.shallow; exports.useAddReaction = _chunkPZIVKFDZjs._useAddReaction; exports.useAttachmentUrl = _chunkPZIVKFDZjs.useAttachmentUrl; exports.useBatch = _chunkPZIVKFDZjs.useBatch; exports.useBroadcastEvent = _chunkPZIVKFDZjs._useBroadcastEvent; exports.useCanRedo = _chunkPZIVKFDZjs.useCanRedo; exports.useCanUndo = _chunkPZIVKFDZjs.useCanUndo; exports.useClient = _chunkPZIVKFDZjs.useClient; exports.useCommentsErrorListener = _chunkPZIVKFDZjs.useCommentsErrorListener; exports.useCreateComment = _chunkPZIVKFDZjs.useCreateComment; exports.useCreateThread = _chunkPZIVKFDZjs._useCreateThread; exports.useDeleteAllInboxNotifications = _chunkPZIVKFDZjs.useDeleteAllInboxNotifications; exports.useDeleteComment = _chunkPZIVKFDZjs.useDeleteComment; exports.useDeleteInboxNotification = _chunkPZIVKFDZjs.useDeleteInboxNotification; exports.useDeleteThread = _chunkPZIVKFDZjs._useDeleteThread; exports.useEditComment = _chunkPZIVKFDZjs.useEditComment; exports.useEditThreadMetadata = _chunkPZIVKFDZjs._useEditThreadMetadata; exports.useErrorListener = _chunkPZIVKFDZjs.useErrorListener; exports.useEventListener = _chunkPZIVKFDZjs._useEventListener; exports.useHistory = _chunkPZIVKFDZjs.useHistory; exports.useHistoryVersionData = _chunkPZIVKFDZjs.useHistoryVersionData; exports.useHistoryVersions = _chunkPZIVKFDZjs._useHistoryVersions; exports.useInboxNotificationThread = _chunkPZIVKFDZjs._useInboxNotificationThread; exports.useInboxNotifications = _chunkPZIVKFDZjs.useInboxNotifications; exports.useIsInsideRoom = _chunkPZIVKFDZjs._useIsInsideRoom; exports.useLostConnectionListener = _chunkPZIVKFDZjs.useLostConnectionListener; exports.useMarkAllInboxNotificationsAsRead = _chunkPZIVKFDZjs.useMarkAllInboxNotificationsAsRead; exports.useMarkInboxNotificationAsRead = _chunkPZIVKFDZjs.useMarkInboxNotificationAsRead; exports.useMarkThreadAsRead = _chunkPZIVKFDZjs.useMarkThreadAsRead; exports.useMarkThreadAsResolved = _chunkPZIVKFDZjs.useMarkThreadAsResolved; exports.useMarkThreadAsUnresolved = _chunkPZIVKFDZjs.useMarkThreadAsUnresolved; exports.useMutation = _chunkPZIVKFDZjs._useMutation; exports.useMyPresence = _chunkPZIVKFDZjs._useMyPresence; exports.useOther = _chunkPZIVKFDZjs._useOther; exports.useOthers = _chunkPZIVKFDZjs._useOthers; exports.useOthersConnectionIds = _chunkPZIVKFDZjs.useOthersConnectionIds; exports.useOthersListener = _chunkPZIVKFDZjs._useOthersListener; exports.useOthersMapped = _chunkPZIVKFDZjs._useOthersMapped; exports.useRedo = _chunkPZIVKFDZjs.useRedo; exports.useRemoveReaction = _chunkPZIVKFDZjs.useRemoveReaction; exports.useRoom = _chunkPZIVKFDZjs._useRoom; exports.useRoomInfo = _chunkPZIVKFDZjs.useRoomInfo; exports.useRoomNotificationSettings = _chunkPZIVKFDZjs.useRoomNotificationSettings; exports.useSelf = _chunkPZIVKFDZjs._useSelf; exports.useStatus = _chunkPZIVKFDZjs.useStatus; exports.useStorage = _chunkPZIVKFDZjs._useStorage; exports.useStorageRoot = _chunkPZIVKFDZjs._useStorageRoot; exports.useStorageStatus = _chunkPZIVKFDZjs.useStorageStatus; exports.useThreadSubscription = _chunkPZIVKFDZjs.useThreadSubscription; exports.useThreads = _chunkPZIVKFDZjs._useThreads; exports.useUndo = _chunkPZIVKFDZjs.useUndo; exports.useUnreadInboxNotificationsCount = _chunkPZIVKFDZjs.useUnreadInboxNotificationsCount; exports.useUpdateMyPresence = _chunkPZIVKFDZjs._useUpdateMyPresence; exports.useUpdateRoomNotificationSettings = _chunkPZIVKFDZjs.useUpdateRoomNotificationSettings; exports.useUser = _chunkPZIVKFDZjs._useUser; exports.useUserThreads_experimental = _chunkPZIVKFDZjs._useUserThreads_experimental;
139
+ exports.ClientContext = _chunk3MM4G6XBjs.ClientContext; exports.ClientSideSuspense = _chunkEXS4G6PTjs.ClientSideSuspense; exports.LiveblocksProvider = _chunk3MM4G6XBjs.LiveblocksProvider; exports.RoomContext = _chunk3MM4G6XBjs.RoomContext; exports.RoomProvider = _chunk3MM4G6XBjs._RoomProvider; exports.createLiveblocksContext = _chunk3MM4G6XBjs.createLiveblocksContext; exports.createRoomContext = _chunk3MM4G6XBjs.createRoomContext; exports.shallow = _client.shallow; exports.useAddReaction = _chunk3MM4G6XBjs._useAddReaction; exports.useAttachmentUrl = _chunk3MM4G6XBjs.useAttachmentUrl; exports.useBatch = _chunk3MM4G6XBjs.useBatch; exports.useBroadcastEvent = _chunk3MM4G6XBjs._useBroadcastEvent; exports.useCanRedo = _chunk3MM4G6XBjs.useCanRedo; exports.useCanUndo = _chunk3MM4G6XBjs.useCanUndo; exports.useClient = _chunk3MM4G6XBjs.useClient; exports.useCommentsErrorListener = _chunk3MM4G6XBjs.useCommentsErrorListener; exports.useCreateComment = _chunk3MM4G6XBjs.useCreateComment; exports.useCreateThread = _chunk3MM4G6XBjs._useCreateThread; exports.useDeleteAllInboxNotifications = _chunk3MM4G6XBjs.useDeleteAllInboxNotifications; exports.useDeleteComment = _chunk3MM4G6XBjs.useDeleteComment; exports.useDeleteInboxNotification = _chunk3MM4G6XBjs.useDeleteInboxNotification; exports.useDeleteThread = _chunk3MM4G6XBjs._useDeleteThread; exports.useEditComment = _chunk3MM4G6XBjs.useEditComment; exports.useEditThreadMetadata = _chunk3MM4G6XBjs._useEditThreadMetadata; exports.useErrorListener = _chunk3MM4G6XBjs.useErrorListener; exports.useEventListener = _chunk3MM4G6XBjs._useEventListener; exports.useHistory = _chunk3MM4G6XBjs.useHistory; exports.useHistoryVersionData = _chunk3MM4G6XBjs.useHistoryVersionData; exports.useHistoryVersions = _chunk3MM4G6XBjs._useHistoryVersions; exports.useInboxNotificationThread = _chunk3MM4G6XBjs._useInboxNotificationThread; exports.useInboxNotifications = _chunk3MM4G6XBjs.useInboxNotifications; exports.useIsInsideRoom = _chunk3MM4G6XBjs._useIsInsideRoom; exports.useLostConnectionListener = _chunk3MM4G6XBjs.useLostConnectionListener; exports.useMarkAllInboxNotificationsAsRead = _chunk3MM4G6XBjs.useMarkAllInboxNotificationsAsRead; exports.useMarkInboxNotificationAsRead = _chunk3MM4G6XBjs.useMarkInboxNotificationAsRead; exports.useMarkThreadAsRead = _chunk3MM4G6XBjs.useMarkThreadAsRead; exports.useMarkThreadAsResolved = _chunk3MM4G6XBjs.useMarkThreadAsResolved; exports.useMarkThreadAsUnresolved = _chunk3MM4G6XBjs.useMarkThreadAsUnresolved; exports.useMutation = _chunk3MM4G6XBjs._useMutation; exports.useMyPresence = _chunk3MM4G6XBjs._useMyPresence; exports.useOther = _chunk3MM4G6XBjs._useOther; exports.useOthers = _chunk3MM4G6XBjs._useOthers; exports.useOthersConnectionIds = _chunk3MM4G6XBjs.useOthersConnectionIds; exports.useOthersListener = _chunk3MM4G6XBjs._useOthersListener; exports.useOthersMapped = _chunk3MM4G6XBjs._useOthersMapped; exports.useRedo = _chunk3MM4G6XBjs.useRedo; exports.useRemoveReaction = _chunk3MM4G6XBjs.useRemoveReaction; exports.useRoom = _chunk3MM4G6XBjs._useRoom; exports.useRoomInfo = _chunk3MM4G6XBjs.useRoomInfo; exports.useRoomNotificationSettings = _chunk3MM4G6XBjs._useRoomNotificationSettings; exports.useSelf = _chunk3MM4G6XBjs._useSelf; exports.useStatus = _chunk3MM4G6XBjs.useStatus; exports.useStorage = _chunk3MM4G6XBjs._useStorage; exports.useStorageRoot = _chunk3MM4G6XBjs._useStorageRoot; exports.useStorageStatus = _chunk3MM4G6XBjs.useStorageStatus; exports.useThreadSubscription = _chunk3MM4G6XBjs.useThreadSubscription; exports.useThreads = _chunk3MM4G6XBjs._useThreads; exports.useUndo = _chunk3MM4G6XBjs.useUndo; exports.useUnreadInboxNotificationsCount = _chunk3MM4G6XBjs.useUnreadInboxNotificationsCount; exports.useUpdateMyPresence = _chunk3MM4G6XBjs._useUpdateMyPresence; exports.useUpdateRoomNotificationSettings = _chunk3MM4G6XBjs.useUpdateRoomNotificationSettings; exports.useUser = _chunk3MM4G6XBjs._useUser; exports.useUserThreads_experimental = _chunk3MM4G6XBjs._useUserThreads_experimental;
144
140
  //# sourceMappingURL=index.js.map
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AACA,SAAS,mBAAmB;AAc5B,SAAS,eAAe;AAXxB,YAAY,UAAU,aAAa,UAAU","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 } from \"@liveblocks/client\";\n\n// Export all the top-level hooks\nexport {\n ClientContext,\n LiveblocksProvider,\n createLiveblocksContext,\n useClient,\n useInboxNotificationThread,\n useMarkAllInboxNotificationsAsRead,\n useMarkInboxNotificationAsRead,\n useDeleteAllInboxNotifications,\n useDeleteInboxNotification,\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 useErrorListener,\n useEventListener,\n useHistory,\n useIsInsideRoom,\n useLostConnectionListener,\n useMarkThreadAsRead,\n useMutation,\n useMyPresence,\n useOthersListener,\n useRedo,\n useRemoveReaction,\n useRoom,\n useRoomNotificationSettings,\n useStatus,\n useStorageRoot,\n useThreadSubscription,\n useUndo,\n useUpdateMyPresence,\n useUpdateRoomNotificationSettings,\n useHistoryVersionData,\n} from \"./room\";\n\nexport { useCommentsErrorListener, CreateThreadError } 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} from \"./room\";\nexport {\n useInboxNotifications,\n useUserThreads_experimental as useUserThreads_experimental,\n useRoomInfo,\n useUnreadInboxNotificationsCount,\n useUser,\n} from \"./liveblocks\";\n\n// Private APIs (for use in react-lexical only)\nexport { getUmbrellaStoreForClient } from \"./liveblocks\";\nexport { selectThreads } from \"./umbrella-store\";\n"]}
1
+ {"version":3,"sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AACA,SAAS,mBAAmB;AAc5B,SAAS,eAAe;AAXxB,YAAY,UAAU,aAAa,UAAU","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 } from \"@liveblocks/client\";\n\n// Export all the top-level hooks\nexport {\n ClientContext,\n LiveblocksProvider,\n createLiveblocksContext,\n useClient,\n useInboxNotificationThread,\n useMarkAllInboxNotificationsAsRead,\n useMarkInboxNotificationAsRead,\n useDeleteAllInboxNotifications,\n useDeleteInboxNotification,\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 useErrorListener,\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\nexport { useCommentsErrorListener } 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 useUserThreads_experimental as useUserThreads_experimental,\n useRoomInfo,\n useUnreadInboxNotificationsCount,\n useUser,\n} from \"./liveblocks\";\n"]}
package/dist/index.mjs CHANGED
@@ -1,11 +1,12 @@
1
1
  import {
2
- ClientContext,
3
2
  ClientSideSuspense,
4
- CreateThreadError,
5
- LiveblocksProvider,
6
3
  PKG_FORMAT,
7
4
  PKG_NAME,
8
- PKG_VERSION,
5
+ PKG_VERSION
6
+ } from "./chunk-DNACURSM.mjs";
7
+ import {
8
+ ClientContext,
9
+ LiveblocksProvider,
9
10
  RoomContext,
10
11
  _RoomProvider,
11
12
  _useAddReaction,
@@ -24,6 +25,7 @@ import {
24
25
  _useOthersListener,
25
26
  _useOthersMapped,
26
27
  _useRoom,
28
+ _useRoomNotificationSettings,
27
29
  _useSelf,
28
30
  _useStorage,
29
31
  _useStorageRoot,
@@ -33,8 +35,6 @@ import {
33
35
  _useUserThreads_experimental,
34
36
  createLiveblocksContext,
35
37
  createRoomContext,
36
- getUmbrellaStoreForClient,
37
- selectThreads,
38
38
  useAttachmentUrl,
39
39
  useBatch,
40
40
  useCanRedo,
@@ -60,14 +60,13 @@ import {
60
60
  useRedo,
61
61
  useRemoveReaction,
62
62
  useRoomInfo,
63
- useRoomNotificationSettings,
64
63
  useStatus,
65
64
  useStorageStatus,
66
65
  useThreadSubscription,
67
66
  useUndo,
68
67
  useUnreadInboxNotificationsCount,
69
68
  useUpdateRoomNotificationSettings
70
- } from "./chunk-SNEUTGU4.mjs";
69
+ } from "./chunk-A7GJNN4L.mjs";
71
70
 
72
71
  // src/index.ts
73
72
  import { detectDupes } from "@liveblocks/core";
@@ -76,14 +75,11 @@ detectDupes(PKG_NAME, PKG_VERSION, PKG_FORMAT);
76
75
  export {
77
76
  ClientContext,
78
77
  ClientSideSuspense,
79
- CreateThreadError,
80
78
  LiveblocksProvider,
81
79
  RoomContext,
82
80
  _RoomProvider as RoomProvider,
83
81
  createLiveblocksContext,
84
82
  createRoomContext,
85
- getUmbrellaStoreForClient,
86
- selectThreads,
87
83
  shallow,
88
84
  _useAddReaction as useAddReaction,
89
85
  useAttachmentUrl,
@@ -126,7 +122,7 @@ export {
126
122
  useRemoveReaction,
127
123
  _useRoom as useRoom,
128
124
  useRoomInfo,
129
- useRoomNotificationSettings,
125
+ _useRoomNotificationSettings as useRoomNotificationSettings,
130
126
  _useSelf as useSelf,
131
127
  useStatus,
132
128
  _useStorage as useStorage,
@@ -1 +1 @@
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 } from \"@liveblocks/client\";\n\n// Export all the top-level hooks\nexport {\n ClientContext,\n LiveblocksProvider,\n createLiveblocksContext,\n useClient,\n useInboxNotificationThread,\n useMarkAllInboxNotificationsAsRead,\n useMarkInboxNotificationAsRead,\n useDeleteAllInboxNotifications,\n useDeleteInboxNotification,\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 useErrorListener,\n useEventListener,\n useHistory,\n useIsInsideRoom,\n useLostConnectionListener,\n useMarkThreadAsRead,\n useMutation,\n useMyPresence,\n useOthersListener,\n useRedo,\n useRemoveReaction,\n useRoom,\n useRoomNotificationSettings,\n useStatus,\n useStorageRoot,\n useThreadSubscription,\n useUndo,\n useUpdateMyPresence,\n useUpdateRoomNotificationSettings,\n useHistoryVersionData,\n} from \"./room\";\n\nexport { useCommentsErrorListener, CreateThreadError } 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} from \"./room\";\nexport {\n useInboxNotifications,\n useUserThreads_experimental as useUserThreads_experimental,\n useRoomInfo,\n useUnreadInboxNotificationsCount,\n useUser,\n} from \"./liveblocks\";\n\n// Private APIs (for use in react-lexical only)\nexport { getUmbrellaStoreForClient } from \"./liveblocks\";\nexport { selectThreads } from \"./umbrella-store\";\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AACA,SAAS,mBAAmB;AAc5B,SAAS,eAAe;AAXxB,YAAY,UAAU,aAAa,UAAU;","names":[]}
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 } from \"@liveblocks/client\";\n\n// Export all the top-level hooks\nexport {\n ClientContext,\n LiveblocksProvider,\n createLiveblocksContext,\n useClient,\n useInboxNotificationThread,\n useMarkAllInboxNotificationsAsRead,\n useMarkInboxNotificationAsRead,\n useDeleteAllInboxNotifications,\n useDeleteInboxNotification,\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 useErrorListener,\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\nexport { useCommentsErrorListener } 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 useUserThreads_experimental as useUserThreads_experimental,\n useRoomInfo,\n useUnreadInboxNotificationsCount,\n useUser,\n} from \"./liveblocks\";\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AACA,SAAS,mBAAmB;AAc5B,SAAS,eAAe;AAXxB,YAAY,UAAU,aAAa,UAAU;","names":[]}