@liveblocks/react 1.19.0-test1 → 2.0.0-alpha1
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/chunk-HLKYTK7G.mjs +2435 -0
- package/dist/chunk-HLKYTK7G.mjs.map +1 -0
- package/dist/chunk-RCQYZVO3.js +2435 -0
- package/dist/chunk-RCQYZVO3.js.map +1 -0
- package/dist/index.d.mts +3 -1508
- package/dist/index.d.ts +3 -1508
- package/dist/index.js +92 -1877
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +104 -1889
- package/dist/index.mjs.map +1 -1
- package/dist/suspense-9ZocWu4y.d.mts +951 -0
- package/dist/suspense-9ZocWu4y.d.ts +951 -0
- package/dist/suspense.d.mts +4 -0
- package/dist/suspense.d.ts +4 -0
- package/dist/suspense.js +110 -0
- package/dist/suspense.js.map +1 -0
- package/dist/suspense.mjs +110 -0
- package/dist/suspense.mjs.map +1 -0
- package/package.json +24 -7
- package/suspense/README.md +5 -0
- package/suspense/package.json +4 -0
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export { a as ClientContext, C as ClientSideSuspense, L as LiveblocksProvider, M as MutationContext, R as RoomContext, f as RoomProvider, U as UseThreadsOptions, g as useAddReaction, h as useBatch, i as useBroadcastEvent, j as useCanRedo, k as useCanUndo, u as useClient, l as useCreateComment, m as useCreateThread, n as useDeleteComment, o as useEditComment, p as useEditThreadMetadata, q as useErrorListener, r as useEventListener, s as useHistory, _ as useInboxNotificationThread, a5 as useInboxNotifications, t as useLostConnectionListener, b as useMarkAllInboxNotificationsAsRead, d as useMarkInboxNotificationAsRead, v as useMarkThreadAsRead, w as useMutation, x as useMyPresence, Z as useOther, $ as useOthers, a0 as useOthersConnectionIds, y as useOthersListener, a1 as useOthersMapped, z as useRedo, A as useRemoveReaction, B as useRoom, a6 as useRoomInfo, D as useRoomNotificationSettings, a2 as useSelf, E as useStatus, a3 as useStorage, F as useStorageRoot, G as useThreadSubscription, a4 as useThreads, H as useUndo, a7 as useUnreadInboxNotificationsCount, I as useUpdateMyPresence, J as useUpdateRoomNotificationSettings, a8 as useUser } from './suspense-9ZocWu4y.mjs';
|
|
2
|
+
export { Json, JsonObject, shallow } from '@liveblocks/client';
|
|
3
|
+
import 'react';
|
|
4
|
+
import '@liveblocks/core';
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export { a as ClientContext, C as ClientSideSuspense, L as LiveblocksProvider, M as MutationContext, R as RoomContext, f as RoomProvider, U as UseThreadsOptions, g as useAddReaction, h as useBatch, i as useBroadcastEvent, j as useCanRedo, k as useCanUndo, u as useClient, l as useCreateComment, m as useCreateThread, n as useDeleteComment, o as useEditComment, p as useEditThreadMetadata, q as useErrorListener, r as useEventListener, s as useHistory, _ as useInboxNotificationThread, a5 as useInboxNotifications, t as useLostConnectionListener, b as useMarkAllInboxNotificationsAsRead, d as useMarkInboxNotificationAsRead, v as useMarkThreadAsRead, w as useMutation, x as useMyPresence, Z as useOther, $ as useOthers, a0 as useOthersConnectionIds, y as useOthersListener, a1 as useOthersMapped, z as useRedo, A as useRemoveReaction, B as useRoom, a6 as useRoomInfo, D as useRoomNotificationSettings, a2 as useSelf, E as useStatus, a3 as useStorage, F as useStorageRoot, G as useThreadSubscription, a4 as useThreads, H as useUndo, a7 as useUnreadInboxNotificationsCount, I as useUpdateMyPresence, J as useUpdateRoomNotificationSettings, a8 as useUser } from './suspense-9ZocWu4y.js';
|
|
2
|
+
export { Json, JsonObject, shallow } from '@liveblocks/client';
|
|
3
|
+
import 'react';
|
|
4
|
+
import '@liveblocks/core';
|
package/dist/suspense.js
ADDED
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
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
|
+
var _chunkRCQYZVO3js = require('./chunk-RCQYZVO3.js');
|
|
54
|
+
|
|
55
|
+
// src/suspense.ts
|
|
56
|
+
var _core = require('@liveblocks/core');
|
|
57
|
+
var _client = require('@liveblocks/client');
|
|
58
|
+
_core.detectDupes.call(void 0, _chunkRCQYZVO3js.PKG_NAME, _chunkRCQYZVO3js.PKG_VERSION, _chunkRCQYZVO3js.PKG_FORMAT);
|
|
59
|
+
|
|
60
|
+
|
|
61
|
+
|
|
62
|
+
|
|
63
|
+
|
|
64
|
+
|
|
65
|
+
|
|
66
|
+
|
|
67
|
+
|
|
68
|
+
|
|
69
|
+
|
|
70
|
+
|
|
71
|
+
|
|
72
|
+
|
|
73
|
+
|
|
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
|
+
exports.ClientContext = _chunkRCQYZVO3js.ClientContext; exports.ClientSideSuspense = _chunkRCQYZVO3js.ClientSideSuspense; exports.LiveblocksProvider = _chunkRCQYZVO3js.LiveblocksProvider; exports.RoomContext = _chunkRCQYZVO3js.RoomContext; exports.RoomProvider = _chunkRCQYZVO3js._RoomProvider; exports.shallow = _client.shallow; exports.useAddReaction = _chunkRCQYZVO3js._useAddReaction; exports.useBatch = _chunkRCQYZVO3js.useBatch; exports.useBroadcastEvent = _chunkRCQYZVO3js._useBroadcastEvent; exports.useCanRedo = _chunkRCQYZVO3js.useCanRedo; exports.useCanUndo = _chunkRCQYZVO3js.useCanUndo; exports.useClient = _chunkRCQYZVO3js.useClient; exports.useCreateComment = _chunkRCQYZVO3js.useCreateComment; exports.useCreateThread = _chunkRCQYZVO3js._useCreateThread; exports.useDeleteComment = _chunkRCQYZVO3js.useDeleteComment; exports.useEditComment = _chunkRCQYZVO3js.useEditComment; exports.useEditThreadMetadata = _chunkRCQYZVO3js._useEditThreadMetadata; exports.useErrorListener = _chunkRCQYZVO3js.useErrorListener; exports.useEventListener = _chunkRCQYZVO3js._useEventListener; exports.useHistory = _chunkRCQYZVO3js.useHistory; exports.useInboxNotificationThread = _chunkRCQYZVO3js.__1; exports.useInboxNotifications = _chunkRCQYZVO3js.useInboxNotificationsSuspense; exports.useLostConnectionListener = _chunkRCQYZVO3js.useLostConnectionListener; exports.useMarkAllInboxNotificationsAsRead = _chunkRCQYZVO3js.useMarkAllInboxNotificationsAsRead; exports.useMarkInboxNotificationAsRead = _chunkRCQYZVO3js.useMarkInboxNotificationAsRead; exports.useMarkThreadAsRead = _chunkRCQYZVO3js.useMarkThreadAsRead; exports.useMutation = _chunkRCQYZVO3js._useMutation; exports.useMyPresence = _chunkRCQYZVO3js._useMyPresence; exports.useOther = _chunkRCQYZVO3js._useOtherSuspense; exports.useOthers = _chunkRCQYZVO3js._useOthersSuspense; exports.useOthersConnectionIds = _chunkRCQYZVO3js.useOthersConnectionIdsSuspense; exports.useOthersListener = _chunkRCQYZVO3js._useOthersListener; exports.useOthersMapped = _chunkRCQYZVO3js._useOthersMappedSuspense; exports.useRedo = _chunkRCQYZVO3js.useRedo; exports.useRemoveReaction = _chunkRCQYZVO3js.useRemoveReaction; exports.useRoom = _chunkRCQYZVO3js._useRoom; exports.useRoomInfo = _chunkRCQYZVO3js.useRoomInfoSuspense; exports.useRoomNotificationSettings = _chunkRCQYZVO3js.useRoomNotificationSettings; exports.useSelf = _chunkRCQYZVO3js._useSelfSuspense; exports.useStatus = _chunkRCQYZVO3js.useStatus; exports.useStorage = _chunkRCQYZVO3js._useStorageSuspense; exports.useStorageRoot = _chunkRCQYZVO3js._useStorageRoot; exports.useThreadSubscription = _chunkRCQYZVO3js.useThreadSubscription; exports.useThreads = _chunkRCQYZVO3js._useThreadsSuspense; exports.useUndo = _chunkRCQYZVO3js.useUndo; exports.useUnreadInboxNotificationsCount = _chunkRCQYZVO3js.useUnreadInboxNotificationsCountSuspense; exports.useUpdateMyPresence = _chunkRCQYZVO3js._useUpdateMyPresence; exports.useUpdateRoomNotificationSettings = _chunkRCQYZVO3js.useUpdateRoomNotificationSettings; exports.useUser = _chunkRCQYZVO3js.__3;
|
|
110
|
+
//# sourceMappingURL=suspense.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/suspense.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AACA,SAAS,mBAAmB;AAU5B,SAAS,eAAe;AAPxB,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 { MutationContext, UseThreadsOptions } 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 useClient,\n useInboxNotificationThread,\n useMarkAllInboxNotificationsAsRead,\n useMarkInboxNotificationAsRead,\n} from \"./liveblocks\";\nexport {\n RoomContext,\n RoomProvider,\n useAddReaction,\n useBatch,\n useBroadcastEvent,\n useCanRedo,\n useCanUndo,\n useCreateComment,\n useCreateThread,\n useDeleteComment,\n useEditComment,\n useEditThreadMetadata,\n useErrorListener,\n useEventListener,\n useHistory,\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} from \"./room\";\n\n// Export the Suspense versions of our hooks\n// (This part differs from src/index.ts)\nexport {\n useOtherSuspense as useOther,\n useOthersSuspense as useOthers,\n useOthersConnectionIdsSuspense as useOthersConnectionIds,\n useOthersMappedSuspense as useOthersMapped,\n useSelfSuspense as useSelf,\n useStorageSuspense as useStorage,\n useThreadsSuspense as useThreads,\n} from \"./room\";\nexport {\n useInboxNotificationsSuspense as useInboxNotifications,\n useRoomInfoSuspense as useRoomInfo,\n useUnreadInboxNotificationsCountSuspense as useUnreadInboxNotificationsCount,\n useUserSuspense as useUser,\n} from \"./liveblocks\";\n"]}
|
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
import {
|
|
2
|
+
ClientContext,
|
|
3
|
+
ClientSideSuspense,
|
|
4
|
+
LiveblocksProvider,
|
|
5
|
+
PKG_FORMAT,
|
|
6
|
+
PKG_NAME,
|
|
7
|
+
PKG_VERSION,
|
|
8
|
+
RoomContext,
|
|
9
|
+
_RoomProvider,
|
|
10
|
+
__1,
|
|
11
|
+
__3,
|
|
12
|
+
_useAddReaction,
|
|
13
|
+
_useBroadcastEvent,
|
|
14
|
+
_useCreateThread,
|
|
15
|
+
_useEditThreadMetadata,
|
|
16
|
+
_useEventListener,
|
|
17
|
+
_useMutation,
|
|
18
|
+
_useMyPresence,
|
|
19
|
+
_useOtherSuspense,
|
|
20
|
+
_useOthersListener,
|
|
21
|
+
_useOthersMappedSuspense,
|
|
22
|
+
_useOthersSuspense,
|
|
23
|
+
_useRoom,
|
|
24
|
+
_useSelfSuspense,
|
|
25
|
+
_useStorageRoot,
|
|
26
|
+
_useStorageSuspense,
|
|
27
|
+
_useThreadsSuspense,
|
|
28
|
+
_useUpdateMyPresence,
|
|
29
|
+
useBatch,
|
|
30
|
+
useCanRedo,
|
|
31
|
+
useCanUndo,
|
|
32
|
+
useClient,
|
|
33
|
+
useCreateComment,
|
|
34
|
+
useDeleteComment,
|
|
35
|
+
useEditComment,
|
|
36
|
+
useErrorListener,
|
|
37
|
+
useHistory,
|
|
38
|
+
useInboxNotificationsSuspense,
|
|
39
|
+
useLostConnectionListener,
|
|
40
|
+
useMarkAllInboxNotificationsAsRead,
|
|
41
|
+
useMarkInboxNotificationAsRead,
|
|
42
|
+
useMarkThreadAsRead,
|
|
43
|
+
useOthersConnectionIdsSuspense,
|
|
44
|
+
useRedo,
|
|
45
|
+
useRemoveReaction,
|
|
46
|
+
useRoomInfoSuspense,
|
|
47
|
+
useRoomNotificationSettings,
|
|
48
|
+
useStatus,
|
|
49
|
+
useThreadSubscription,
|
|
50
|
+
useUndo,
|
|
51
|
+
useUnreadInboxNotificationsCountSuspense,
|
|
52
|
+
useUpdateRoomNotificationSettings
|
|
53
|
+
} from "./chunk-HLKYTK7G.mjs";
|
|
54
|
+
|
|
55
|
+
// src/suspense.ts
|
|
56
|
+
import { detectDupes } from "@liveblocks/core";
|
|
57
|
+
import { shallow } from "@liveblocks/client";
|
|
58
|
+
detectDupes(PKG_NAME, PKG_VERSION, PKG_FORMAT);
|
|
59
|
+
export {
|
|
60
|
+
ClientContext,
|
|
61
|
+
ClientSideSuspense,
|
|
62
|
+
LiveblocksProvider,
|
|
63
|
+
RoomContext,
|
|
64
|
+
_RoomProvider as RoomProvider,
|
|
65
|
+
shallow,
|
|
66
|
+
_useAddReaction as useAddReaction,
|
|
67
|
+
useBatch,
|
|
68
|
+
_useBroadcastEvent as useBroadcastEvent,
|
|
69
|
+
useCanRedo,
|
|
70
|
+
useCanUndo,
|
|
71
|
+
useClient,
|
|
72
|
+
useCreateComment,
|
|
73
|
+
_useCreateThread as useCreateThread,
|
|
74
|
+
useDeleteComment,
|
|
75
|
+
useEditComment,
|
|
76
|
+
_useEditThreadMetadata as useEditThreadMetadata,
|
|
77
|
+
useErrorListener,
|
|
78
|
+
_useEventListener as useEventListener,
|
|
79
|
+
useHistory,
|
|
80
|
+
__1 as useInboxNotificationThread,
|
|
81
|
+
useInboxNotificationsSuspense as useInboxNotifications,
|
|
82
|
+
useLostConnectionListener,
|
|
83
|
+
useMarkAllInboxNotificationsAsRead,
|
|
84
|
+
useMarkInboxNotificationAsRead,
|
|
85
|
+
useMarkThreadAsRead,
|
|
86
|
+
_useMutation as useMutation,
|
|
87
|
+
_useMyPresence as useMyPresence,
|
|
88
|
+
_useOtherSuspense as useOther,
|
|
89
|
+
_useOthersSuspense as useOthers,
|
|
90
|
+
useOthersConnectionIdsSuspense as useOthersConnectionIds,
|
|
91
|
+
_useOthersListener as useOthersListener,
|
|
92
|
+
_useOthersMappedSuspense as useOthersMapped,
|
|
93
|
+
useRedo,
|
|
94
|
+
useRemoveReaction,
|
|
95
|
+
_useRoom as useRoom,
|
|
96
|
+
useRoomInfoSuspense as useRoomInfo,
|
|
97
|
+
useRoomNotificationSettings,
|
|
98
|
+
_useSelfSuspense as useSelf,
|
|
99
|
+
useStatus,
|
|
100
|
+
_useStorageSuspense as useStorage,
|
|
101
|
+
_useStorageRoot as useStorageRoot,
|
|
102
|
+
useThreadSubscription,
|
|
103
|
+
_useThreadsSuspense as useThreads,
|
|
104
|
+
useUndo,
|
|
105
|
+
useUnreadInboxNotificationsCountSuspense as useUnreadInboxNotificationsCount,
|
|
106
|
+
_useUpdateMyPresence as useUpdateMyPresence,
|
|
107
|
+
useUpdateRoomNotificationSettings,
|
|
108
|
+
__3 as useUser
|
|
109
|
+
};
|
|
110
|
+
//# sourceMappingURL=suspense.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/suspense.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 { MutationContext, UseThreadsOptions } 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 useClient,\n useInboxNotificationThread,\n useMarkAllInboxNotificationsAsRead,\n useMarkInboxNotificationAsRead,\n} from \"./liveblocks\";\nexport {\n RoomContext,\n RoomProvider,\n useAddReaction,\n useBatch,\n useBroadcastEvent,\n useCanRedo,\n useCanUndo,\n useCreateComment,\n useCreateThread,\n useDeleteComment,\n useEditComment,\n useEditThreadMetadata,\n useErrorListener,\n useEventListener,\n useHistory,\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} from \"./room\";\n\n// Export the Suspense versions of our hooks\n// (This part differs from src/index.ts)\nexport {\n useOtherSuspense as useOther,\n useOthersSuspense as useOthers,\n useOthersConnectionIdsSuspense as useOthersConnectionIds,\n useOthersMappedSuspense as useOthersMapped,\n useSelfSuspense as useSelf,\n useStorageSuspense as useStorage,\n useThreadsSuspense as useThreads,\n} from \"./room\";\nexport {\n useInboxNotificationsSuspense as useInboxNotifications,\n useRoomInfoSuspense as useRoomInfo,\n useUnreadInboxNotificationsCountSuspense as useUnreadInboxNotificationsCount,\n useUserSuspense as useUser,\n} from \"./liveblocks\";\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AACA,SAAS,mBAAmB;AAU5B,SAAS,eAAe;AAPxB,YAAY,UAAU,aAAa,UAAU;","names":[]}
|
package/package.json
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@liveblocks/react",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "2.0.0-alpha1",
|
|
4
4
|
"description": "A set of React hooks and providers to use Liveblocks declaratively. Liveblocks is the all-in-one toolkit to build collaborative products like Figma, Notion, and more.",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
|
+
"type": "commonjs",
|
|
6
7
|
"main": "./dist/index.js",
|
|
7
8
|
"types": "./dist/index.d.ts",
|
|
8
9
|
"exports": {
|
|
@@ -16,10 +17,22 @@
|
|
|
16
17
|
"module": "./dist/index.mjs",
|
|
17
18
|
"default": "./dist/index.js"
|
|
18
19
|
}
|
|
20
|
+
},
|
|
21
|
+
"./suspense": {
|
|
22
|
+
"import": {
|
|
23
|
+
"types": "./dist/suspense.d.mts",
|
|
24
|
+
"default": "./dist/suspense.mjs"
|
|
25
|
+
},
|
|
26
|
+
"require": {
|
|
27
|
+
"types": "./dist/suspense.d.ts",
|
|
28
|
+
"module": "./dist/suspense.mjs",
|
|
29
|
+
"default": "./dist/suspense.js"
|
|
30
|
+
}
|
|
19
31
|
}
|
|
20
32
|
},
|
|
21
33
|
"files": [
|
|
22
34
|
"dist/**",
|
|
35
|
+
"suspense/**",
|
|
23
36
|
"README.md"
|
|
24
37
|
],
|
|
25
38
|
"scripts": {
|
|
@@ -30,12 +43,12 @@
|
|
|
30
43
|
"lint": "eslint src/",
|
|
31
44
|
"lint:package": "publint --strict && attw --pack",
|
|
32
45
|
"test": "jest --silent --verbose --color=always",
|
|
33
|
-
"test:types": "tsd",
|
|
46
|
+
"test:types": "ls test-d/* | xargs -n1 tsd --files",
|
|
34
47
|
"test:watch": "jest --silent --verbose --color=always --watch"
|
|
35
48
|
},
|
|
36
49
|
"dependencies": {
|
|
37
|
-
"@liveblocks/client": "
|
|
38
|
-
"@liveblocks/core": "
|
|
50
|
+
"@liveblocks/client": "2.0.0-alpha1",
|
|
51
|
+
"@liveblocks/core": "2.0.0-alpha1",
|
|
39
52
|
"nanoid": "^3",
|
|
40
53
|
"use-sync-external-store": "^1.2.0"
|
|
41
54
|
},
|
|
@@ -45,11 +58,15 @@
|
|
|
45
58
|
"devDependencies": {
|
|
46
59
|
"@liveblocks/eslint-config": "*",
|
|
47
60
|
"@liveblocks/jest-config": "*",
|
|
48
|
-
"@
|
|
49
|
-
"@testing-library/
|
|
61
|
+
"@liveblocks/query-parser": "^0.0.3",
|
|
62
|
+
"@testing-library/jest-dom": "6.1.6",
|
|
63
|
+
"@testing-library/react": "14.1.2",
|
|
50
64
|
"@types/use-sync-external-store": "^0.0.3",
|
|
65
|
+
"date-fns": "^3.0.6",
|
|
51
66
|
"eslint-plugin-react-hooks": "^4.6.0",
|
|
52
|
-
"
|
|
67
|
+
"itertools": "^2.3.1",
|
|
68
|
+
"msw": "1.3.2",
|
|
69
|
+
"react-error-boundary": "^4.0.12"
|
|
53
70
|
},
|
|
54
71
|
"sideEffects": false,
|
|
55
72
|
"bugs": {
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
What is this directory? It exists solely to support subpath imports for node10.
|
|
2
|
+
|
|
3
|
+
While we're not interested in supporting this long-past EOL version 10 of Node,
|
|
4
|
+
we add this to acknowledge the reality that many TypeScript projects out there
|
|
5
|
+
are still using `--moduleResolution node`.
|