@pol-studios/powersync 1.0.4 → 1.0.7

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.
Files changed (115) hide show
  1. package/dist/CacheSettingsManager-1exbOC6S.d.ts +261 -0
  2. package/dist/attachments/index.d.ts +65 -355
  3. package/dist/attachments/index.js +24 -6
  4. package/dist/{types-Cd7RhNqf.d.ts → background-sync-ChCXW-EV.d.ts} +53 -2
  5. package/dist/chunk-4C3RY5SU.js +204 -0
  6. package/dist/chunk-4C3RY5SU.js.map +1 -0
  7. package/dist/{chunk-3AYXHQ4W.js → chunk-53WH2JJV.js} +111 -47
  8. package/dist/chunk-53WH2JJV.js.map +1 -0
  9. package/dist/chunk-A4IBBWGO.js +377 -0
  10. package/dist/chunk-A4IBBWGO.js.map +1 -0
  11. package/dist/chunk-BREGB4WL.js +1768 -0
  12. package/dist/chunk-BREGB4WL.js.map +1 -0
  13. package/dist/{chunk-EJ23MXPQ.js → chunk-CGL33PL4.js} +3 -1
  14. package/dist/chunk-CGL33PL4.js.map +1 -0
  15. package/dist/chunk-DGUM43GV.js +11 -0
  16. package/dist/chunk-DHYUBVP7.js +131 -0
  17. package/dist/chunk-DHYUBVP7.js.map +1 -0
  18. package/dist/chunk-FV2HXEIY.js +124 -0
  19. package/dist/chunk-FV2HXEIY.js.map +1 -0
  20. package/dist/chunk-GKF7TOMT.js +1 -0
  21. package/dist/{chunk-OTJXIRWX.js → chunk-H772V6XQ.js} +304 -51
  22. package/dist/chunk-H772V6XQ.js.map +1 -0
  23. package/dist/{chunk-C2RSTGDC.js → chunk-HFOFLW5F.js} +525 -87
  24. package/dist/chunk-HFOFLW5F.js.map +1 -0
  25. package/dist/chunk-KGSFAE5B.js +1 -0
  26. package/dist/chunk-LNL64IJZ.js +1 -0
  27. package/dist/chunk-MKD2VCX3.js +32 -0
  28. package/dist/chunk-MKD2VCX3.js.map +1 -0
  29. package/dist/{chunk-7EMDVIZX.js → chunk-N75DEF5J.js} +19 -1
  30. package/dist/chunk-N75DEF5J.js.map +1 -0
  31. package/dist/chunk-P6WOZO7H.js +49 -0
  32. package/dist/chunk-P6WOZO7H.js.map +1 -0
  33. package/dist/chunk-TGBT5XBE.js +1 -0
  34. package/dist/chunk-TGBT5XBE.js.map +1 -0
  35. package/dist/chunk-UEYRTLKE.js +72 -0
  36. package/dist/chunk-UEYRTLKE.js.map +1 -0
  37. package/dist/chunk-WGHNIAF7.js +329 -0
  38. package/dist/chunk-WGHNIAF7.js.map +1 -0
  39. package/dist/chunk-WQ5MPAVC.js +449 -0
  40. package/dist/chunk-WQ5MPAVC.js.map +1 -0
  41. package/dist/{chunk-FPTDATY5.js → chunk-XQAJM2MW.js} +22 -11
  42. package/dist/chunk-XQAJM2MW.js.map +1 -0
  43. package/dist/chunk-YSTEESEG.js +676 -0
  44. package/dist/chunk-YSTEESEG.js.map +1 -0
  45. package/dist/chunk-ZEOKPWUC.js +1165 -0
  46. package/dist/chunk-ZEOKPWUC.js.map +1 -0
  47. package/dist/connector/index.d.ts +182 -2
  48. package/dist/connector/index.js +14 -3
  49. package/dist/core/index.d.ts +5 -3
  50. package/dist/core/index.js +5 -2
  51. package/dist/error/index.d.ts +54 -0
  52. package/dist/error/index.js +8 -0
  53. package/dist/error/index.js.map +1 -0
  54. package/dist/index.d.ts +237 -11
  55. package/dist/index.js +183 -27
  56. package/dist/index.native.d.ts +20 -9
  57. package/dist/index.native.js +183 -28
  58. package/dist/index.web.d.ts +20 -9
  59. package/dist/index.web.js +184 -28
  60. package/dist/maintenance/index.d.ts +118 -0
  61. package/dist/maintenance/index.js +17 -0
  62. package/dist/maintenance/index.js.map +1 -0
  63. package/dist/platform/index.d.ts +16 -1
  64. package/dist/platform/index.js +2 -0
  65. package/dist/platform/index.js.map +1 -1
  66. package/dist/platform/index.native.d.ts +2 -2
  67. package/dist/platform/index.native.js +2 -1
  68. package/dist/platform/index.web.d.ts +1 -1
  69. package/dist/platform/index.web.js +2 -1
  70. package/dist/pol-attachment-queue-C7YNXXhK.d.ts +676 -0
  71. package/dist/provider/index.d.ts +693 -12
  72. package/dist/provider/index.js +57 -12
  73. package/dist/storage/index.d.ts +6 -0
  74. package/dist/storage/index.js +28 -0
  75. package/dist/storage/index.js.map +1 -0
  76. package/dist/storage/index.native.d.ts +6 -0
  77. package/dist/storage/index.native.js +26 -0
  78. package/dist/storage/index.native.js.map +1 -0
  79. package/dist/storage/index.web.d.ts +6 -0
  80. package/dist/storage/index.web.js +26 -0
  81. package/dist/storage/index.web.js.map +1 -0
  82. package/dist/storage/upload/index.d.ts +55 -0
  83. package/dist/storage/upload/index.js +15 -0
  84. package/dist/storage/upload/index.js.map +1 -0
  85. package/dist/storage/upload/index.native.d.ts +57 -0
  86. package/dist/storage/upload/index.native.js +14 -0
  87. package/dist/storage/upload/index.native.js.map +1 -0
  88. package/dist/storage/upload/index.web.d.ts +5 -0
  89. package/dist/storage/upload/index.web.js +14 -0
  90. package/dist/storage/upload/index.web.js.map +1 -0
  91. package/dist/{index-Cb-NI0Ct.d.ts → supabase-connector-qLm-WHkM.d.ts} +146 -10
  92. package/dist/sync/index.d.ts +288 -22
  93. package/dist/sync/index.js +23 -5
  94. package/dist/types-BVacP54t.d.ts +52 -0
  95. package/dist/types-Bgvx7-E8.d.ts +187 -0
  96. package/dist/{types-afHtE1U_.d.ts → types-CDqWh56B.d.ts} +2 -0
  97. package/package.json +72 -2
  98. package/dist/chunk-32OLICZO.js +0 -1
  99. package/dist/chunk-3AYXHQ4W.js.map +0 -1
  100. package/dist/chunk-7EMDVIZX.js.map +0 -1
  101. package/dist/chunk-7JQZBZ5N.js +0 -1
  102. package/dist/chunk-C2RSTGDC.js.map +0 -1
  103. package/dist/chunk-EJ23MXPQ.js.map +0 -1
  104. package/dist/chunk-FPTDATY5.js.map +0 -1
  105. package/dist/chunk-GMFDCVMZ.js +0 -1285
  106. package/dist/chunk-GMFDCVMZ.js.map +0 -1
  107. package/dist/chunk-OLHGI472.js +0 -1
  108. package/dist/chunk-OTJXIRWX.js.map +0 -1
  109. package/dist/chunk-V6LJ6MR2.js +0 -740
  110. package/dist/chunk-V6LJ6MR2.js.map +0 -1
  111. package/dist/chunk-VJCL2SWD.js +0 -1
  112. /package/dist/{chunk-32OLICZO.js.map → chunk-DGUM43GV.js.map} +0 -0
  113. /package/dist/{chunk-7JQZBZ5N.js.map → chunk-GKF7TOMT.js.map} +0 -0
  114. /package/dist/{chunk-OLHGI472.js.map → chunk-KGSFAE5B.js.map} +0 -0
  115. /package/dist/{chunk-VJCL2SWD.js.map → chunk-LNL64IJZ.js.map} +0 -0
@@ -1,47 +1,117 @@
1
- import "./chunk-OLHGI472.js";
2
- import "./chunk-32OLICZO.js";
1
+ import "./chunk-KGSFAE5B.js";
2
+ import "./chunk-GKF7TOMT.js";
3
3
  import {
4
- AttachmentQueueContext,
5
4
  ConflictBus,
5
+ OfflineDataProvider,
6
+ PowerSyncProvider,
7
+ ProviderBridge
8
+ } from "./chunk-BREGB4WL.js";
9
+ import {
10
+ PowerSyncErrorBoundary
11
+ } from "./chunk-P6WOZO7H.js";
12
+ import {
13
+ ATTACHMENT_TABLE,
14
+ AbstractAttachmentQueue,
15
+ AttachmentState,
16
+ AttachmentTable,
17
+ DEFAULT_ATTACHMENT_QUEUE_OPTIONS,
18
+ DEFAULT_CACHE_CONFIG,
19
+ DEFAULT_COMPRESSION_CONFIG,
20
+ DEFAULT_UPLOAD_CONFIG,
21
+ EncodingType,
22
+ PolAttachmentQueue,
23
+ PolAttachmentState,
24
+ PolStorageAdapter,
25
+ createPolAttachmentQueue
26
+ } from "./chunk-ZEOKPWUC.js";
27
+ import {
28
+ DeadLetterQueue,
29
+ createDeadLetterEntry,
30
+ defineBackgroundSyncTask,
31
+ generateDLQEntryId,
32
+ initializeBackgroundSync,
33
+ isBackgroundSyncRegistered,
34
+ registerBackgroundSync,
35
+ unregisterBackgroundSync
36
+ } from "./chunk-A4IBBWGO.js";
37
+ import {
38
+ DEFAULT_CONNECTION_HEALTH,
39
+ DEFAULT_SYNC_CONFIG,
40
+ DEFAULT_SYNC_METRICS,
41
+ DEFAULT_SYNC_STATUS,
42
+ HealthMonitor,
43
+ MetricsCollector,
44
+ SyncStatusTracker
45
+ } from "./chunk-H772V6XQ.js";
46
+ import {
47
+ checkIntegrityImpl,
48
+ checkStorageQuotaImpl,
49
+ compactDatabaseImpl,
50
+ formatBytes,
51
+ getCacheStatsImpl,
52
+ useDatabaseMaintenance
53
+ } from "./chunk-WGHNIAF7.js";
54
+ import {
55
+ AttachmentQueueContext,
56
+ CompletedTransactionsContext,
6
57
  ConnectionHealthContext,
58
+ ConnectionStatusContext,
59
+ FailedTransactionsContext,
60
+ PendingMutationsContext,
7
61
  PowerSyncContext,
8
- PowerSyncProvider,
62
+ SyncActivityContext,
9
63
  SyncMetricsContext,
64
+ SyncModeContext,
10
65
  SyncStatusContext,
11
66
  useAttachmentQueue,
67
+ useAttachmentQueueReady,
68
+ useCompletedTransactions,
69
+ useCompletedTransactionsContext,
12
70
  useConnectionHealth,
71
+ useConnectionStatus,
13
72
  useDatabase,
14
73
  useDownloadProgress,
15
74
  useEntitySyncStatus,
75
+ useFailedTransactions,
76
+ useFailedTransactionsContext,
16
77
  useIsSyncing,
17
78
  useOnlineStatus,
18
79
  usePendingMutations,
80
+ usePendingMutationsContext,
19
81
  usePlatform,
20
82
  usePowerSync,
21
83
  useSyncActivity,
84
+ useSyncActivityContext,
22
85
  useSyncControl,
23
86
  useSyncMetrics,
24
87
  useSyncMode,
88
+ useSyncModeContext,
25
89
  useSyncStatus,
26
90
  useUploadStatus
27
- } from "./chunk-GMFDCVMZ.js";
91
+ } from "./chunk-YSTEESEG.js";
92
+ import "./chunk-LNL64IJZ.js";
28
93
  import {
29
- AttachmentQueue,
30
- AttachmentState,
31
- DEFAULT_CACHE_CONFIG,
32
- DEFAULT_COMPRESSION_CONFIG,
33
- DEFAULT_DOWNLOAD_CONFIG
34
- } from "./chunk-V6LJ6MR2.js";
35
- import "./chunk-7JQZBZ5N.js";
94
+ CacheSettingsManager,
95
+ DEFAULT_CACHE_SETTINGS,
96
+ SupabaseStorageAdapter,
97
+ createSupabaseStorageAdapter,
98
+ getExtensionFromMimeType,
99
+ getMimeType,
100
+ getMimeTypeFromPath,
101
+ isAudioMimeType,
102
+ isDocumentMimeType,
103
+ isImageMimeType,
104
+ isVideoMimeType
105
+ } from "./chunk-WQ5MPAVC.js";
106
+ import "./chunk-TGBT5XBE.js";
36
107
  import {
37
- DEFAULT_CONNECTION_HEALTH,
38
- DEFAULT_SYNC_CONFIG,
39
- DEFAULT_SYNC_METRICS,
40
- DEFAULT_SYNC_STATUS,
41
- HealthMonitor,
42
- MetricsCollector,
43
- SyncStatusTracker
44
- } from "./chunk-OTJXIRWX.js";
108
+ SupabaseUploadHandler,
109
+ createSupabaseUploadHandler
110
+ } from "./chunk-UEYRTLKE.js";
111
+ import {
112
+ DEFAULT_UPLOAD_NOTIFICATION,
113
+ resolveBucketFromConfig
114
+ } from "./chunk-MKD2VCX3.js";
45
115
  import "./chunk-W7HSR35B.js";
46
116
  import {
47
117
  ATTACHMENT_DOWNLOAD_TIMEOUT_MS,
@@ -68,25 +138,41 @@ import {
68
138
  STATUS_NOTIFY_THROTTLE_MS,
69
139
  STORAGE_CRITICAL_THRESHOLD,
70
140
  STORAGE_KEY_ATTACHMENT_SETTINGS,
141
+ STORAGE_KEY_AUTO_OFFLINE,
71
142
  STORAGE_KEY_ENABLED,
72
143
  STORAGE_KEY_METRICS,
73
144
  STORAGE_KEY_PAUSED,
74
145
  STORAGE_KEY_PREFIX,
75
146
  STORAGE_KEY_SYNC_MODE,
76
147
  STORAGE_WARNING_THRESHOLD
77
- } from "./chunk-EJ23MXPQ.js";
148
+ } from "./chunk-CGL33PL4.js";
78
149
  import {
79
150
  createNativePlatformAdapter
80
- } from "./chunk-3AYXHQ4W.js";
81
- import "./chunk-VJCL2SWD.js";
151
+ } from "./chunk-53WH2JJV.js";
152
+ import {
153
+ CircuitBreaker,
154
+ CircuitOpenError,
155
+ DEFAULT_CIRCUIT_BREAKER_CONFIG
156
+ } from "./chunk-4C3RY5SU.js";
82
157
  import {
158
+ ConflictDetectionError,
159
+ DEFAULT_RETRY_CONFIG,
83
160
  SupabaseConnector,
84
161
  defaultSchemaRouter,
85
162
  detectConflicts,
86
163
  fetchServerVersion,
87
164
  getLocalVersion,
88
165
  hasVersionColumn
89
- } from "./chunk-C2RSTGDC.js";
166
+ } from "./chunk-HFOFLW5F.js";
167
+ import {
168
+ AbortError,
169
+ DEFAULT_BACKOFF_CONFIG,
170
+ RetryExhaustedError,
171
+ addJitter,
172
+ calculateBackoffDelay,
173
+ sleep,
174
+ withExponentialBackoff
175
+ } from "./chunk-FV2HXEIY.js";
90
176
  import {
91
177
  AttachmentError,
92
178
  ConfigurationError,
@@ -102,39 +188,58 @@ import {
102
188
  extractTableNames,
103
189
  generateFailureId,
104
190
  toSyncOperationError
105
- } from "./chunk-FPTDATY5.js";
191
+ } from "./chunk-XQAJM2MW.js";
192
+ import "./chunk-DGUM43GV.js";
106
193
  export {
107
194
  ATTACHMENT_DOWNLOAD_TIMEOUT_MS,
108
195
  ATTACHMENT_RETRY_DELAY_MS,
196
+ ATTACHMENT_TABLE,
197
+ AbortError,
198
+ AbstractAttachmentQueue,
109
199
  AttachmentError,
110
- AttachmentQueue,
111
200
  AttachmentQueueContext,
112
201
  AttachmentState,
202
+ AttachmentTable,
113
203
  COMPRESSION_MAX_WIDTH,
114
204
  COMPRESSION_SKIP_SIZE_BYTES,
115
205
  COMPRESSION_TARGET_SIZE_BYTES,
206
+ CacheSettingsManager,
207
+ CircuitBreaker,
208
+ CircuitOpenError,
209
+ CompletedTransactionsContext,
116
210
  ConfigurationError,
117
211
  ConflictBus,
212
+ ConflictDetectionError,
118
213
  ConnectionHealthContext,
214
+ ConnectionStatusContext,
119
215
  ConnectorError,
120
216
  DEFAULT_ATTACHMENT_CACHE_SIZE,
121
217
  DEFAULT_ATTACHMENT_CONCURRENCY,
218
+ DEFAULT_ATTACHMENT_QUEUE_OPTIONS,
219
+ DEFAULT_BACKOFF_CONFIG,
122
220
  DEFAULT_CACHE_CONFIG,
221
+ DEFAULT_CACHE_SETTINGS,
222
+ DEFAULT_CIRCUIT_BREAKER_CONFIG,
123
223
  DEFAULT_COMPRESSION_CONFIG,
124
224
  DEFAULT_COMPRESSION_QUALITY,
125
225
  DEFAULT_CONNECTION_HEALTH,
126
- DEFAULT_DOWNLOAD_CONFIG,
127
226
  DEFAULT_MAX_RETRY_ATTEMPTS,
128
227
  DEFAULT_RETRY_BACKOFF_MULTIPLIER,
129
228
  DEFAULT_RETRY_BASE_DELAY_MS,
229
+ DEFAULT_RETRY_CONFIG,
130
230
  DEFAULT_RETRY_MAX_DELAY_MS,
131
231
  DEFAULT_SYNC_CONFIG,
132
232
  DEFAULT_SYNC_INTERVAL_MS,
133
233
  DEFAULT_SYNC_METRICS,
134
234
  DEFAULT_SYNC_MODE,
135
235
  DEFAULT_SYNC_STATUS,
236
+ DEFAULT_UPLOAD_CONFIG,
237
+ DEFAULT_UPLOAD_NOTIFICATION,
136
238
  DOWNLOAD_STOP_THRESHOLD,
239
+ DeadLetterQueue,
137
240
  EVICTION_TRIGGER_THRESHOLD,
241
+ EncodingType,
242
+ FailedTransactionsContext,
138
243
  HEALTH_CHECK_INTERVAL_MS,
139
244
  HEALTH_CHECK_TIMEOUT_MS,
140
245
  HealthMonitor,
@@ -142,14 +247,23 @@ export {
142
247
  LATENCY_DEGRADED_THRESHOLD_MS,
143
248
  MAX_CONSECUTIVE_FAILURES,
144
249
  MetricsCollector,
250
+ OfflineDataProvider,
251
+ PendingMutationsContext,
145
252
  PlatformAdapterError,
253
+ PolAttachmentQueue,
254
+ PolAttachmentState,
255
+ PolStorageAdapter,
146
256
  PowerSyncContext,
147
257
  PowerSyncError,
258
+ PowerSyncErrorBoundary,
148
259
  PowerSyncProvider,
260
+ ProviderBridge,
261
+ RetryExhaustedError,
149
262
  STATS_CACHE_TTL_MS,
150
263
  STATUS_NOTIFY_THROTTLE_MS,
151
264
  STORAGE_CRITICAL_THRESHOLD,
152
265
  STORAGE_KEY_ATTACHMENT_SETTINGS,
266
+ STORAGE_KEY_AUTO_OFFLINE,
153
267
  STORAGE_KEY_ENABLED,
154
268
  STORAGE_KEY_METRICS,
155
269
  STORAGE_KEY_PAUSED,
@@ -157,38 +271,79 @@ export {
157
271
  STORAGE_KEY_SYNC_MODE,
158
272
  STORAGE_WARNING_THRESHOLD,
159
273
  SupabaseConnector,
274
+ SupabaseStorageAdapter,
275
+ SupabaseUploadHandler,
276
+ SyncActivityContext,
160
277
  SyncMetricsContext,
278
+ SyncModeContext,
161
279
  SyncOperationError,
162
280
  SyncStatusContext,
163
281
  SyncStatusTracker,
282
+ addJitter,
283
+ calculateBackoffDelay,
284
+ checkIntegrityImpl,
285
+ checkStorageQuotaImpl,
164
286
  classifyError,
165
287
  classifySupabaseError,
288
+ compactDatabaseImpl,
289
+ createDeadLetterEntry,
166
290
  createNativePlatformAdapter,
291
+ createPolAttachmentQueue,
292
+ createSupabaseStorageAdapter,
293
+ createSupabaseUploadHandler,
167
294
  createSyncError,
168
295
  defaultSchemaRouter,
296
+ defineBackgroundSyncTask,
169
297
  detectConflicts,
170
298
  extractEntityIds,
171
299
  extractTableNames,
172
300
  fetchServerVersion,
301
+ formatBytes,
302
+ generateDLQEntryId,
173
303
  generateFailureId,
304
+ getCacheStatsImpl,
305
+ getExtensionFromMimeType,
174
306
  getLocalVersion,
307
+ getMimeType,
308
+ getMimeTypeFromPath,
175
309
  hasVersionColumn,
310
+ initializeBackgroundSync,
311
+ isAudioMimeType,
312
+ isBackgroundSyncRegistered,
313
+ isDocumentMimeType,
314
+ isImageMimeType,
315
+ isVideoMimeType,
316
+ registerBackgroundSync,
317
+ resolveBucketFromConfig,
318
+ sleep,
176
319
  toSyncOperationError,
320
+ unregisterBackgroundSync,
177
321
  useAttachmentQueue,
322
+ useAttachmentQueueReady,
323
+ useCompletedTransactions,
324
+ useCompletedTransactionsContext,
178
325
  useConnectionHealth,
326
+ useConnectionStatus,
179
327
  useDatabase,
328
+ useDatabaseMaintenance,
180
329
  useDownloadProgress,
181
330
  useEntitySyncStatus,
331
+ useFailedTransactions,
332
+ useFailedTransactionsContext,
182
333
  useIsSyncing,
183
334
  useOnlineStatus,
184
335
  usePendingMutations,
336
+ usePendingMutationsContext,
185
337
  usePlatform,
186
338
  usePowerSync,
187
339
  useSyncActivity,
340
+ useSyncActivityContext,
188
341
  useSyncControl,
189
342
  useSyncMetrics,
190
343
  useSyncMode,
344
+ useSyncModeContext,
191
345
  useSyncStatus,
192
- useUploadStatus
346
+ useUploadStatus,
347
+ withExponentialBackoff
193
348
  };
194
349
  //# sourceMappingURL=index.native.js.map
@@ -1,13 +1,24 @@
1
- export { A as AbstractPowerSyncDatabase, k as CacheStats, i as ClassifiedError, j as CompactResult, h as CompletedTransaction, b as ConnectionHealth, o as CountRow, C as CrudEntry, l as CrudTransaction, n as DbStatRow, D as DownloadProgress, E as EntitySyncState, F as FailedTransaction, r as FreelistCountRow, s as IntegrityCheckRow, I as IntegrityResult, q as PageCountRow, p as PageSizeRow, P as PowerSyncBackendConnector, m as SqliteTableRow, c as StorageInfo, d as StorageQuota, f as SyncError, g as SyncErrorType, e as SyncMetrics, S as SyncMode, a as SyncStatus, T as TableCacheStats } from './types-afHtE1U_.js';
2
- export { ATTACHMENT_DOWNLOAD_TIMEOUT_MS, ATTACHMENT_RETRY_DELAY_MS, AttachmentError, COMPRESSION_MAX_WIDTH, COMPRESSION_SKIP_SIZE_BYTES, COMPRESSION_TARGET_SIZE_BYTES, ConfigurationError, ConnectorError, DEFAULT_ATTACHMENT_CACHE_SIZE, DEFAULT_ATTACHMENT_CONCURRENCY, DEFAULT_COMPRESSION_QUALITY, DEFAULT_MAX_RETRY_ATTEMPTS, DEFAULT_RETRY_BACKOFF_MULTIPLIER, DEFAULT_RETRY_BASE_DELAY_MS, DEFAULT_RETRY_MAX_DELAY_MS, DEFAULT_SYNC_INTERVAL_MS, DEFAULT_SYNC_MODE, DOWNLOAD_STOP_THRESHOLD, EVICTION_TRIGGER_THRESHOLD, HEALTH_CHECK_INTERVAL_MS, HEALTH_CHECK_TIMEOUT_MS, InitializationError, LATENCY_DEGRADED_THRESHOLD_MS, MAX_CONSECUTIVE_FAILURES, PlatformAdapterError, PowerSyncError, STATS_CACHE_TTL_MS, STATUS_NOTIFY_THROTTLE_MS, STORAGE_CRITICAL_THRESHOLD, STORAGE_KEY_ATTACHMENT_SETTINGS, STORAGE_KEY_ENABLED, STORAGE_KEY_METRICS, STORAGE_KEY_PAUSED, STORAGE_KEY_PREFIX, STORAGE_KEY_SYNC_MODE, STORAGE_WARNING_THRESHOLD, SyncOperationError, classifyError, classifySupabaseError, createSyncError, extractEntityIds, extractTableNames, generateFailureId, toSyncOperationError } from './core/index.js';
3
- export { e as ConflictBus, f as ConflictCheckResult, i as ConflictDetectionConfig, h as ConflictHandler, j as ConflictListener, g as ConflictResolution, C as ConnectorConfig, c as CrudHandler, F as FieldConflict, P as PowerSyncCredentials, R as ResolutionListener, b as SchemaRouter, S as SupabaseConnector, a as SupabaseConnectorOptions, d as defaultSchemaRouter } from './index-Cb-NI0Ct.js';
4
- export { AttachmentQueue, AttachmentQueueConfig, AttachmentRecord, AttachmentSourceConfig, AttachmentState, AttachmentStatsRow, AttachmentStorageAdapter, AttachmentSyncStats, AttachmentSyncStatus, CacheConfig, CacheFileRow, CachedSizeRow, CompressionConfig, DEFAULT_CACHE_CONFIG, DEFAULT_COMPRESSION_CONFIG, DEFAULT_DOWNLOAD_CONFIG, DownloadConfig, DownloadPhase, DownloadStatus, EvictRow, IdRow } from './attachments/index.js';
5
- export { e as HealthCheckResult, H as HealthMonitorOptions, M as MetricsCollectorOptions, P as PowerSyncRawStatus, c as SyncControlActions, f as SyncEvent, g as SyncEventListener, d as SyncOperationData, S as SyncScope, a as SyncStatusState, b as SyncStatusTrackerOptions, U as Unsubscribe } from './types-Cd7RhNqf.js';
6
- export { HealthMonitor, MetricsCollector, SyncStatusTracker } from './sync/index.js';
7
- export { detectConflicts, fetchServerVersion, getLocalVersion, hasVersionColumn } from './index.js';
8
- export { AttachmentQueueContext, ConnectionHealthContext, ConnectionHealthContextValue, DEFAULT_CONNECTION_HEALTH, DEFAULT_SYNC_CONFIG, DEFAULT_SYNC_METRICS, DEFAULT_SYNC_STATUS, EntitySyncStatusResult, PowerSyncConfig, PowerSyncContext, PowerSyncContextValue, PowerSyncProvider, PowerSyncProviderProps, SyncActivityResult, SyncConfig, SyncMetricsContext, SyncMetricsContextValue, SyncStatusContext, SyncStatusContextValue, UploadStatusResult, useAttachmentQueue, useConnectionHealth, useDatabase, useDownloadProgress, useEntitySyncStatus, useIsSyncing, useOnlineStatus, usePendingMutations, usePlatform, usePowerSync, useSyncActivity, useSyncControl, useSyncMetrics, useSyncMode, useSyncStatus, useUploadStatus } from './provider/index.js';
1
+ export { A as AbstractPowerSyncDatabase, k as CacheStats, i as ClassifiedError, j as CompactResult, h as CompletedTransaction, b as ConnectionHealth, o as CountRow, C as CrudEntry, l as CrudTransaction, n as DbStatRow, D as DownloadProgress, E as EntitySyncState, F as FailedTransaction, r as FreelistCountRow, s as IntegrityCheckRow, I as IntegrityResult, q as PageCountRow, p as PageSizeRow, P as PowerSyncBackendConnector, m as SqliteTableRow, c as StorageInfo, d as StorageQuota, f as SyncError, g as SyncErrorType, e as SyncMetrics, S as SyncMode, a as SyncStatus, T as TableCacheStats } from './types-CDqWh56B.js';
2
+ export { ATTACHMENT_DOWNLOAD_TIMEOUT_MS, ATTACHMENT_RETRY_DELAY_MS, AttachmentError, COMPRESSION_MAX_WIDTH, COMPRESSION_SKIP_SIZE_BYTES, COMPRESSION_TARGET_SIZE_BYTES, ConfigurationError, ConnectorError, DEFAULT_ATTACHMENT_CACHE_SIZE, DEFAULT_ATTACHMENT_CONCURRENCY, DEFAULT_COMPRESSION_QUALITY, DEFAULT_MAX_RETRY_ATTEMPTS, DEFAULT_RETRY_BACKOFF_MULTIPLIER, DEFAULT_RETRY_BASE_DELAY_MS, DEFAULT_RETRY_MAX_DELAY_MS, DEFAULT_SYNC_INTERVAL_MS, DEFAULT_SYNC_MODE, DOWNLOAD_STOP_THRESHOLD, EVICTION_TRIGGER_THRESHOLD, HEALTH_CHECK_INTERVAL_MS, HEALTH_CHECK_TIMEOUT_MS, InitializationError, LATENCY_DEGRADED_THRESHOLD_MS, MAX_CONSECUTIVE_FAILURES, PlatformAdapterError, PowerSyncError, STATS_CACHE_TTL_MS, STATUS_NOTIFY_THROTTLE_MS, STORAGE_CRITICAL_THRESHOLD, STORAGE_KEY_ATTACHMENT_SETTINGS, STORAGE_KEY_AUTO_OFFLINE, STORAGE_KEY_ENABLED, STORAGE_KEY_METRICS, STORAGE_KEY_PAUSED, STORAGE_KEY_PREFIX, STORAGE_KEY_SYNC_MODE, STORAGE_WARNING_THRESHOLD, SyncOperationError, classifyError, classifySupabaseError, createSyncError, extractEntityIds, extractTableNames, generateFailureId, toSyncOperationError } from './core/index.js';
3
+ export { g as ConflictBus, h as ConflictCheckResult, k as ConflictDetectionConfig, j as ConflictHandler, l as ConflictListener, i as ConflictResolution, C as ConnectorCircuitBreakerConfig, b as ConnectorConfig, e as CrudHandler, D as DEFAULT_RETRY_CONFIG, F as FieldConflict, P as PowerSyncCredentials, m as ResolutionListener, f as RetryConfig, R as RetryStrategyConfig, c as SchemaRouter, S as SupabaseConnector, a as SupabaseConnectorOptions, d as defaultSchemaRouter } from './supabase-connector-qLm-WHkM.js';
4
+ export { CircuitBreaker, CircuitBreakerConfig, CircuitBreakerStats, CircuitOpenError, CircuitState, DEFAULT_CIRCUIT_BREAKER_CONFIG } from './connector/index.js';
5
+ export { t as AttachmentRecord, A as AttachmentSourceConfig, q as AttachmentStatsRow, e as AttachmentStorageAdapter, p as AttachmentSyncStats, o as AttachmentSyncStatus, h as CacheConfig, r as CacheFileRow, s as CachedSizeRow, C as CompressionConfig, i as DEFAULT_CACHE_CONFIG, D as DEFAULT_COMPRESSION_CONFIG, f as DEFAULT_UPLOAD_CONFIG, k as DownloadPhase, l as DownloadStatus, E as EvictRow, I as IdRow, P as PolAttachmentQueue, j as PolAttachmentQueueConfig, a as PolAttachmentQueueOptions, d as PolAttachmentRecord, b as PolAttachmentState, U as UploadConfig, g as UploadHandler, m as UploadPhase, n as UploadStatus, c as createPolAttachmentQueue } from './pol-attachment-queue-C7YNXXhK.js';
6
+ export { PolStorageAdapter, PolStorageAdapterOptions } from './attachments/index.js';
7
+ export { B as BackgroundSyncOptions, h as BackgroundSyncSystem, e as HealthCheckResult, H as HealthMonitorOptions, M as MetricsCollectorOptions, P as PowerSyncRawStatus, c as SyncControlActions, f as SyncEvent, g as SyncEventListener, d as SyncOperationData, S as SyncScope, a as SyncStatusState, b as SyncStatusTrackerOptions, U as Unsubscribe, i as defineBackgroundSyncTask, j as initializeBackgroundSync, k as isBackgroundSyncRegistered, r as registerBackgroundSync, u as unregisterBackgroundSync } from './background-sync-ChCXW-EV.js';
8
+ export { DeadLetterEntry, DeadLetterQueue, DeadLetterQueueListener, DeadLetterQueueOptions, DeadLetterReason, HealthMonitor, MetricsCollector, SyncStatusTracker, createDeadLetterEntry, generateDLQEntryId } from './sync/index.js';
9
+ export { AbortError, BackoffConfig, BackoffOptions, ConflictDetectionError, DEFAULT_BACKOFF_CONFIG, RetryExhaustedError, addJitter, calculateBackoffDelay, detectConflicts, fetchServerVersion, formatBytes, getExtensionFromMimeType, getLocalVersion, getMimeType, getMimeTypeFromPath, hasVersionColumn, isAudioMimeType, isDocumentMimeType, isImageMimeType, isVideoMimeType, sleep, withExponentialBackoff } from './index.js';
10
+ export { DatabaseMaintenanceUtils, checkIntegrityImpl, checkStorageQuotaImpl, compactDatabaseImpl, getCacheStatsImpl, useDatabaseMaintenance } from './maintenance/index.js';
11
+ export { A as AttachmentUploadHandler, a as BucketConfig, B as BucketResolver, D as DownloadResult, P as PowerSyncStorageAdapter, R as RemoteStorageAdapter, S as StorageUploadHandler, b as SupabaseStorageAdapterOptions, U as UploadOptions, r as resolveBucketFromConfig } from './types-Bgvx7-E8.js';
12
+ export { a as CacheSettings, C as CacheSettingsManager, b as CacheSettingsManagerOptions, D as DEFAULT_CACHE_SETTINGS, S as SupabaseStorageAdapter, c as createSupabaseStorageAdapter } from './CacheSettingsManager-1exbOC6S.js';
13
+ export { D as DEFAULT_UPLOAD_NOTIFICATION, S as SupabaseUploadHandlerOptions, U as UploadEventHandlers, a as UploadNotificationConfig } from './types-BVacP54t.js';
14
+ export { SupabaseUploadHandler, createSupabaseUploadHandler } from './storage/upload/index.js';
15
+ export { PowerSyncErrorBoundary } from './error/index.js';
16
+ export { AttachmentQueueContext, BackgroundSyncCallbacks, BackgroundSyncConfig, BackgroundSyncStatus, CompletedTransactionsContext, CompletedTransactionsContextValue, ConnectionHealthContext, ConnectionHealthContextValue, ConnectionStatusContext, ConnectionStatusContextValue, DEFAULT_CONNECTION_HEALTH, DEFAULT_SYNC_CONFIG, DEFAULT_SYNC_METRICS, DEFAULT_SYNC_STATUS, DataLayerConfig, DataLayerIntegration, EntitySyncStatusResult, FailedTransactionsContext, FailedTransactionsContextValue, OfflineDataAttachmentConfig, OfflineDataProvider, OfflineDataProviderConfig, OfflineDataProviderProps, PendingMutationsContext, PendingMutationsContextValue, PowerSyncConfig, PowerSyncContext, PowerSyncContextValue, PowerSyncProvider, PowerSyncProviderProps, PowerSyncSyncStatusSnapshot, ProviderBridge, ProviderBridgeProps, SyncActivityContext, SyncActivityContextValue, SyncActivityResult, SyncConfig, SyncMetricsContext, SyncMetricsContextValue, SyncModeContext, SyncModeContextValue, SyncStatusContext, SyncStatusContextValue, UploadStatusResult, useAttachmentQueue, useAttachmentQueueReady, useCompletedTransactions, useCompletedTransactionsContext, useConnectionHealth, useConnectionStatus, useDatabase, useDownloadProgress, useEntitySyncStatus, useFailedTransactions, useFailedTransactionsContext, useIsSyncing, useOnlineStatus, usePendingMutations, usePendingMutationsContext, usePlatform, usePowerSync, useSyncActivity, useSyncActivityContext, useSyncControl, useSyncMetrics, useSyncMode, useSyncModeContext, useSyncStatus, useUploadStatus } from './provider/index.js';
9
17
  export { AsyncStorageAdapter, CompressedImage, CompressionOptions, ConnectionType, DatabaseOptions, FileInfo, FileSystemAdapter, ImageProcessorAdapter, LoggerAdapter, NetworkAdapter, PlatformAdapter, PlatformType, detectPlatform } from './platform/index.js';
10
18
  export { createWebPlatformAdapter } from './platform/index.web.js';
19
+ export { ATTACHMENT_TABLE, AbstractAttachmentQueue, AttachmentState, AttachmentTable, AttachmentTableOptions, AttachmentQueueOptions as BaseAttachmentQueueOptions, DEFAULT_ATTACHMENT_QUEUE_OPTIONS, EncodingType, AttachmentRecord as OfficialAttachmentRecord, StorageAdapter } from '@powersync/attachments';
11
20
  import '@supabase/supabase-js';
12
- import '@tanstack/react-query';
21
+ import '@powersync/common';
13
22
  import 'react';
23
+ import '@tanstack/react-query';
24
+ import '@powersync/react-native';