@korajs/vue 1.0.0-beta.10 → 1.0.0-beta.11
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/index.d.cts +48 -0
- package/dist/index.d.ts +48 -0
- package/package.json +4 -4
package/dist/index.d.cts
CHANGED
|
@@ -107,6 +107,8 @@ declare function useMutation<TData, TArgs extends unknown[], TContext = void>(mu
|
|
|
107
107
|
*/
|
|
108
108
|
declare function useSyncStatus(): Readonly<vue.Ref<{
|
|
109
109
|
readonly status: _korajs_sync.SyncStatus;
|
|
110
|
+
readonly phase?: _korajs_sync.SyncPhase | undefined;
|
|
111
|
+
readonly reason?: string | undefined;
|
|
110
112
|
readonly reconnecting: boolean;
|
|
111
113
|
readonly pendingOperations: number;
|
|
112
114
|
readonly lastSyncedAt: number | null;
|
|
@@ -114,8 +116,32 @@ declare function useSyncStatus(): Readonly<vue.Ref<{
|
|
|
114
116
|
readonly lastSuccessfulPull: number | null;
|
|
115
117
|
readonly conflicts: number;
|
|
116
118
|
readonly clockSkewMs: number | null;
|
|
119
|
+
readonly inFlightUploadOperations?: number | undefined;
|
|
120
|
+
readonly hasInFlightDeliveryBatch?: boolean | undefined;
|
|
121
|
+
readonly activeViewId?: string | undefined;
|
|
122
|
+
readonly activeViewComplete?: boolean | undefined;
|
|
123
|
+
readonly initialSync?: {
|
|
124
|
+
readonly complete: boolean;
|
|
125
|
+
readonly receivedBatches: number;
|
|
126
|
+
readonly totalBatches: number | null;
|
|
127
|
+
readonly progress: number | null;
|
|
128
|
+
} | undefined;
|
|
129
|
+
readonly deliveryWatermark?: number | undefined;
|
|
130
|
+
readonly serverFrontier?: number | null | undefined;
|
|
131
|
+
readonly blockedFailure?: {
|
|
132
|
+
readonly operationId: string;
|
|
133
|
+
readonly collection: string;
|
|
134
|
+
readonly recordId: string;
|
|
135
|
+
readonly code: string;
|
|
136
|
+
readonly message: string;
|
|
137
|
+
readonly retriable: boolean;
|
|
138
|
+
readonly firstSeenAt: number;
|
|
139
|
+
readonly retryCount: number;
|
|
140
|
+
} | null | undefined;
|
|
117
141
|
}, {
|
|
118
142
|
readonly status: _korajs_sync.SyncStatus;
|
|
143
|
+
readonly phase?: _korajs_sync.SyncPhase | undefined;
|
|
144
|
+
readonly reason?: string | undefined;
|
|
119
145
|
readonly reconnecting: boolean;
|
|
120
146
|
readonly pendingOperations: number;
|
|
121
147
|
readonly lastSyncedAt: number | null;
|
|
@@ -123,6 +149,28 @@ declare function useSyncStatus(): Readonly<vue.Ref<{
|
|
|
123
149
|
readonly lastSuccessfulPull: number | null;
|
|
124
150
|
readonly conflicts: number;
|
|
125
151
|
readonly clockSkewMs: number | null;
|
|
152
|
+
readonly inFlightUploadOperations?: number | undefined;
|
|
153
|
+
readonly hasInFlightDeliveryBatch?: boolean | undefined;
|
|
154
|
+
readonly activeViewId?: string | undefined;
|
|
155
|
+
readonly activeViewComplete?: boolean | undefined;
|
|
156
|
+
readonly initialSync?: {
|
|
157
|
+
readonly complete: boolean;
|
|
158
|
+
readonly receivedBatches: number;
|
|
159
|
+
readonly totalBatches: number | null;
|
|
160
|
+
readonly progress: number | null;
|
|
161
|
+
} | undefined;
|
|
162
|
+
readonly deliveryWatermark?: number | undefined;
|
|
163
|
+
readonly serverFrontier?: number | null | undefined;
|
|
164
|
+
readonly blockedFailure?: {
|
|
165
|
+
readonly operationId: string;
|
|
166
|
+
readonly collection: string;
|
|
167
|
+
readonly recordId: string;
|
|
168
|
+
readonly code: string;
|
|
169
|
+
readonly message: string;
|
|
170
|
+
readonly retriable: boolean;
|
|
171
|
+
readonly firstSeenAt: number;
|
|
172
|
+
readonly retryCount: number;
|
|
173
|
+
} | null | undefined;
|
|
126
174
|
}>>;
|
|
127
175
|
|
|
128
176
|
/**
|
package/dist/index.d.ts
CHANGED
|
@@ -107,6 +107,8 @@ declare function useMutation<TData, TArgs extends unknown[], TContext = void>(mu
|
|
|
107
107
|
*/
|
|
108
108
|
declare function useSyncStatus(): Readonly<vue.Ref<{
|
|
109
109
|
readonly status: _korajs_sync.SyncStatus;
|
|
110
|
+
readonly phase?: _korajs_sync.SyncPhase | undefined;
|
|
111
|
+
readonly reason?: string | undefined;
|
|
110
112
|
readonly reconnecting: boolean;
|
|
111
113
|
readonly pendingOperations: number;
|
|
112
114
|
readonly lastSyncedAt: number | null;
|
|
@@ -114,8 +116,32 @@ declare function useSyncStatus(): Readonly<vue.Ref<{
|
|
|
114
116
|
readonly lastSuccessfulPull: number | null;
|
|
115
117
|
readonly conflicts: number;
|
|
116
118
|
readonly clockSkewMs: number | null;
|
|
119
|
+
readonly inFlightUploadOperations?: number | undefined;
|
|
120
|
+
readonly hasInFlightDeliveryBatch?: boolean | undefined;
|
|
121
|
+
readonly activeViewId?: string | undefined;
|
|
122
|
+
readonly activeViewComplete?: boolean | undefined;
|
|
123
|
+
readonly initialSync?: {
|
|
124
|
+
readonly complete: boolean;
|
|
125
|
+
readonly receivedBatches: number;
|
|
126
|
+
readonly totalBatches: number | null;
|
|
127
|
+
readonly progress: number | null;
|
|
128
|
+
} | undefined;
|
|
129
|
+
readonly deliveryWatermark?: number | undefined;
|
|
130
|
+
readonly serverFrontier?: number | null | undefined;
|
|
131
|
+
readonly blockedFailure?: {
|
|
132
|
+
readonly operationId: string;
|
|
133
|
+
readonly collection: string;
|
|
134
|
+
readonly recordId: string;
|
|
135
|
+
readonly code: string;
|
|
136
|
+
readonly message: string;
|
|
137
|
+
readonly retriable: boolean;
|
|
138
|
+
readonly firstSeenAt: number;
|
|
139
|
+
readonly retryCount: number;
|
|
140
|
+
} | null | undefined;
|
|
117
141
|
}, {
|
|
118
142
|
readonly status: _korajs_sync.SyncStatus;
|
|
143
|
+
readonly phase?: _korajs_sync.SyncPhase | undefined;
|
|
144
|
+
readonly reason?: string | undefined;
|
|
119
145
|
readonly reconnecting: boolean;
|
|
120
146
|
readonly pendingOperations: number;
|
|
121
147
|
readonly lastSyncedAt: number | null;
|
|
@@ -123,6 +149,28 @@ declare function useSyncStatus(): Readonly<vue.Ref<{
|
|
|
123
149
|
readonly lastSuccessfulPull: number | null;
|
|
124
150
|
readonly conflicts: number;
|
|
125
151
|
readonly clockSkewMs: number | null;
|
|
152
|
+
readonly inFlightUploadOperations?: number | undefined;
|
|
153
|
+
readonly hasInFlightDeliveryBatch?: boolean | undefined;
|
|
154
|
+
readonly activeViewId?: string | undefined;
|
|
155
|
+
readonly activeViewComplete?: boolean | undefined;
|
|
156
|
+
readonly initialSync?: {
|
|
157
|
+
readonly complete: boolean;
|
|
158
|
+
readonly receivedBatches: number;
|
|
159
|
+
readonly totalBatches: number | null;
|
|
160
|
+
readonly progress: number | null;
|
|
161
|
+
} | undefined;
|
|
162
|
+
readonly deliveryWatermark?: number | undefined;
|
|
163
|
+
readonly serverFrontier?: number | null | undefined;
|
|
164
|
+
readonly blockedFailure?: {
|
|
165
|
+
readonly operationId: string;
|
|
166
|
+
readonly collection: string;
|
|
167
|
+
readonly recordId: string;
|
|
168
|
+
readonly code: string;
|
|
169
|
+
readonly message: string;
|
|
170
|
+
readonly retriable: boolean;
|
|
171
|
+
readonly firstSeenAt: number;
|
|
172
|
+
readonly retryCount: number;
|
|
173
|
+
} | null | undefined;
|
|
126
174
|
}>>;
|
|
127
175
|
|
|
128
176
|
/**
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@korajs/vue",
|
|
3
|
-
"version": "1.0.0-beta.
|
|
3
|
+
"version": "1.0.0-beta.11",
|
|
4
4
|
"description": "Kora.js Vue 3 composables for offline-first applications",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.cjs",
|
|
@@ -27,9 +27,9 @@
|
|
|
27
27
|
},
|
|
28
28
|
"dependencies": {
|
|
29
29
|
"yjs": "^13.6.30",
|
|
30
|
-
"@korajs/
|
|
31
|
-
"@korajs/sync": "1.0.0-beta.
|
|
32
|
-
"@korajs/
|
|
30
|
+
"@korajs/store": "1.0.0-beta.11",
|
|
31
|
+
"@korajs/sync": "1.0.0-beta.11",
|
|
32
|
+
"@korajs/core": "1.0.0-beta.11"
|
|
33
33
|
},
|
|
34
34
|
"devDependencies": {
|
|
35
35
|
"@vue/test-utils": "^2.4.6",
|