@instantdb/react 0.22.47-experimental.sync-table.19184737115.1 → 0.22.47-experimental.sync-table.19185753694.1
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/commonjs/index.d.ts +2 -2
- package/dist/commonjs/index.d.ts.map +1 -1
- package/dist/commonjs/index.js +4 -1
- package/dist/commonjs/index.js.map +1 -1
- package/dist/esm/index.d.ts +2 -2
- package/dist/esm/index.d.ts.map +1 -1
- package/dist/esm/index.js +6 -2
- package/dist/esm/index.js.map +1 -1
- package/dist/standalone/index.js +917 -911
- package/dist/standalone/index.umd.cjs +14 -14
- package/package.json +4 -4
- package/src/index.ts +22 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@instantdb/react",
|
|
3
|
-
"version": "v0.22.47-experimental.sync-table.
|
|
3
|
+
"version": "v0.22.47-experimental.sync-table.19185753694.1",
|
|
4
4
|
"description": "Instant DB for React",
|
|
5
5
|
"homepage": "https://github.com/instantdb/instant/tree/main/client/packages/react",
|
|
6
6
|
"repository": {
|
|
@@ -54,9 +54,9 @@
|
|
|
54
54
|
},
|
|
55
55
|
"dependencies": {
|
|
56
56
|
"eventsource": "^4.0.0",
|
|
57
|
-
"@instantdb/
|
|
58
|
-
"@instantdb/
|
|
59
|
-
"@instantdb/
|
|
57
|
+
"@instantdb/core": "v0.22.47-experimental.sync-table.19185753694.1",
|
|
58
|
+
"@instantdb/version": "v0.22.47-experimental.sync-table.19185753694.1",
|
|
59
|
+
"@instantdb/react-common": "v0.22.47-experimental.sync-table.19185753694.1"
|
|
60
60
|
},
|
|
61
61
|
"scripts": {
|
|
62
62
|
"test": "vitest",
|
package/src/index.ts
CHANGED
|
@@ -7,6 +7,9 @@ import {
|
|
|
7
7
|
// error
|
|
8
8
|
InstantAPIError,
|
|
9
9
|
|
|
10
|
+
// sync table enums
|
|
11
|
+
SyncTableCallbackEventType,
|
|
12
|
+
|
|
10
13
|
// types
|
|
11
14
|
type QueryResponse,
|
|
12
15
|
type InstantQuery,
|
|
@@ -71,6 +74,15 @@ import {
|
|
|
71
74
|
type FileOpts,
|
|
72
75
|
type UploadFileResponse,
|
|
73
76
|
type DeleteFileResponse,
|
|
77
|
+
|
|
78
|
+
// sync table types
|
|
79
|
+
type SyncTableCallback,
|
|
80
|
+
type SyncTableCallbackEvent,
|
|
81
|
+
type SyncTableInitialSyncBatch,
|
|
82
|
+
type SyncTableInitialSyncComplete,
|
|
83
|
+
type SyncTableSyncTransaction,
|
|
84
|
+
type SyncTableLoadFromStorage,
|
|
85
|
+
type SyncTableSetupError,
|
|
74
86
|
} from '@instantdb/core';
|
|
75
87
|
|
|
76
88
|
import { InstantReactAbstractDatabase } from '@instantdb/react-common';
|
|
@@ -158,4 +170,14 @@ export {
|
|
|
158
170
|
type FileOpts,
|
|
159
171
|
type UploadFileResponse,
|
|
160
172
|
type DeleteFileResponse,
|
|
173
|
+
|
|
174
|
+
// sync table types
|
|
175
|
+
SyncTableCallbackEventType,
|
|
176
|
+
type SyncTableCallback,
|
|
177
|
+
type SyncTableCallbackEvent,
|
|
178
|
+
type SyncTableInitialSyncBatch,
|
|
179
|
+
type SyncTableInitialSyncComplete,
|
|
180
|
+
type SyncTableSyncTransaction,
|
|
181
|
+
type SyncTableLoadFromStorage,
|
|
182
|
+
type SyncTableSetupError,
|
|
161
183
|
};
|