@pol-studios/powersync 1.0.6 → 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 (118) 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-R4YFWQ3Q.js → chunk-H772V6XQ.js} +304 -51
  22. package/dist/chunk-H772V6XQ.js.map +1 -0
  23. package/dist/{chunk-62J2DPKX.js → chunk-HFOFLW5F.js} +396 -412
  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 -3
  48. package/dist/connector/index.js +12 -4
  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 +100 -12
  55. package/dist/index.js +148 -38
  56. package/dist/index.native.d.ts +20 -10
  57. package/dist/index.native.js +148 -39
  58. package/dist/index.web.d.ts +20 -10
  59. package/dist/index.web.js +149 -39
  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 +447 -21
  72. package/dist/provider/index.js +33 -13
  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-l3iL9Jte.d.ts → supabase-connector-qLm-WHkM.d.ts} +90 -25
  92. package/dist/sync/index.d.ts +288 -23
  93. package/dist/sync/index.js +22 -10
  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-5FIMA26D.js +0 -1
  101. package/dist/chunk-62J2DPKX.js.map +0 -1
  102. package/dist/chunk-7EMDVIZX.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-KCDG2MNP.js +0 -1431
  106. package/dist/chunk-KCDG2MNP.js.map +0 -1
  107. package/dist/chunk-OLHGI472.js +0 -1
  108. package/dist/chunk-PAFBKNL3.js +0 -99
  109. package/dist/chunk-PAFBKNL3.js.map +0 -1
  110. package/dist/chunk-R4YFWQ3Q.js.map +0 -1
  111. package/dist/chunk-V6LJ6MR2.js +0 -740
  112. package/dist/chunk-V6LJ6MR2.js.map +0 -1
  113. package/dist/chunk-VJCL2SWD.js +0 -1
  114. package/dist/failed-upload-store-C0cLxxPz.d.ts +0 -33
  115. /package/dist/{chunk-32OLICZO.js.map → chunk-DGUM43GV.js.map} +0 -0
  116. /package/dist/{chunk-5FIMA26D.js.map → chunk-GKF7TOMT.js.map} +0 -0
  117. /package/dist/{chunk-OLHGI472.js.map → chunk-KGSFAE5B.js.map} +0 -0
  118. /package/dist/{chunk-VJCL2SWD.js.map → chunk-LNL64IJZ.js.map} +0 -0
@@ -1,26 +1,78 @@
1
- import "./chunk-OLHGI472.js";
2
- import "./chunk-32OLICZO.js";
1
+ import "./chunk-KGSFAE5B.js";
2
+ import "./chunk-GKF7TOMT.js";
3
+ import {
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";
3
54
  import {
4
55
  AttachmentQueueContext,
5
56
  CompletedTransactionsContext,
6
- ConflictBus,
7
57
  ConnectionHealthContext,
8
58
  ConnectionStatusContext,
9
59
  FailedTransactionsContext,
10
60
  PendingMutationsContext,
11
61
  PowerSyncContext,
12
- PowerSyncProvider,
13
62
  SyncActivityContext,
14
63
  SyncMetricsContext,
15
64
  SyncModeContext,
16
65
  SyncStatusContext,
17
66
  useAttachmentQueue,
67
+ useAttachmentQueueReady,
68
+ useCompletedTransactions,
18
69
  useCompletedTransactionsContext,
19
70
  useConnectionHealth,
20
71
  useConnectionStatus,
21
72
  useDatabase,
22
73
  useDownloadProgress,
23
74
  useEntitySyncStatus,
75
+ useFailedTransactions,
24
76
  useFailedTransactionsContext,
25
77
  useIsSyncing,
26
78
  useOnlineStatus,
@@ -36,24 +88,30 @@ import {
36
88
  useSyncModeContext,
37
89
  useSyncStatus,
38
90
  useUploadStatus
39
- } from "./chunk-KCDG2MNP.js";
91
+ } from "./chunk-YSTEESEG.js";
92
+ import "./chunk-LNL64IJZ.js";
40
93
  import {
41
- AttachmentQueue,
42
- AttachmentState,
43
- DEFAULT_CACHE_CONFIG,
44
- DEFAULT_COMPRESSION_CONFIG,
45
- DEFAULT_DOWNLOAD_CONFIG
46
- } from "./chunk-V6LJ6MR2.js";
47
- import "./chunk-5FIMA26D.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";
48
107
  import {
49
- DEFAULT_CONNECTION_HEALTH,
50
- DEFAULT_SYNC_CONFIG,
51
- DEFAULT_SYNC_METRICS,
52
- DEFAULT_SYNC_STATUS,
53
- HealthMonitor,
54
- MetricsCollector,
55
- SyncStatusTracker
56
- } from "./chunk-R4YFWQ3Q.js";
108
+ SupabaseUploadHandler,
109
+ createSupabaseUploadHandler
110
+ } from "./chunk-UEYRTLKE.js";
111
+ import {
112
+ DEFAULT_UPLOAD_NOTIFICATION,
113
+ resolveBucketFromConfig
114
+ } from "./chunk-MKD2VCX3.js";
57
115
  import "./chunk-W7HSR35B.js";
58
116
  import {
59
117
  ATTACHMENT_DOWNLOAD_TIMEOUT_MS,
@@ -80,37 +138,41 @@ import {
80
138
  STATUS_NOTIFY_THROTTLE_MS,
81
139
  STORAGE_CRITICAL_THRESHOLD,
82
140
  STORAGE_KEY_ATTACHMENT_SETTINGS,
141
+ STORAGE_KEY_AUTO_OFFLINE,
83
142
  STORAGE_KEY_ENABLED,
84
143
  STORAGE_KEY_METRICS,
85
144
  STORAGE_KEY_PAUSED,
86
145
  STORAGE_KEY_PREFIX,
87
146
  STORAGE_KEY_SYNC_MODE,
88
147
  STORAGE_WARNING_THRESHOLD
89
- } from "./chunk-EJ23MXPQ.js";
148
+ } from "./chunk-CGL33PL4.js";
90
149
  import {
91
150
  createNativePlatformAdapter
92
- } from "./chunk-3AYXHQ4W.js";
93
- import "./chunk-VJCL2SWD.js";
151
+ } from "./chunk-53WH2JJV.js";
94
152
  import {
95
- AbortError,
96
- DEFAULT_BACKOFF_CONFIG,
153
+ CircuitBreaker,
154
+ CircuitOpenError,
155
+ DEFAULT_CIRCUIT_BREAKER_CONFIG
156
+ } from "./chunk-4C3RY5SU.js";
157
+ import {
158
+ ConflictDetectionError,
97
159
  DEFAULT_RETRY_CONFIG,
98
- RetryExhaustedError,
99
160
  SupabaseConnector,
100
- addJitter,
101
- calculateBackoffDelay,
102
161
  defaultSchemaRouter,
103
162
  detectConflicts,
104
163
  fetchServerVersion,
105
164
  getLocalVersion,
106
- hasVersionColumn,
165
+ hasVersionColumn
166
+ } from "./chunk-HFOFLW5F.js";
167
+ import {
168
+ AbortError,
169
+ DEFAULT_BACKOFF_CONFIG,
170
+ RetryExhaustedError,
171
+ addJitter,
172
+ calculateBackoffDelay,
107
173
  sleep,
108
174
  withExponentialBackoff
109
- } from "./chunk-62J2DPKX.js";
110
- import {
111
- FailedUploadStore,
112
- failedUploadStore
113
- } from "./chunk-PAFBKNL3.js";
175
+ } from "./chunk-FV2HXEIY.js";
114
176
  import {
115
177
  AttachmentError,
116
178
  ConfigurationError,
@@ -126,32 +188,41 @@ import {
126
188
  extractTableNames,
127
189
  generateFailureId,
128
190
  toSyncOperationError
129
- } from "./chunk-FPTDATY5.js";
191
+ } from "./chunk-XQAJM2MW.js";
192
+ import "./chunk-DGUM43GV.js";
130
193
  export {
131
194
  ATTACHMENT_DOWNLOAD_TIMEOUT_MS,
132
195
  ATTACHMENT_RETRY_DELAY_MS,
196
+ ATTACHMENT_TABLE,
133
197
  AbortError,
198
+ AbstractAttachmentQueue,
134
199
  AttachmentError,
135
- AttachmentQueue,
136
200
  AttachmentQueueContext,
137
201
  AttachmentState,
202
+ AttachmentTable,
138
203
  COMPRESSION_MAX_WIDTH,
139
204
  COMPRESSION_SKIP_SIZE_BYTES,
140
205
  COMPRESSION_TARGET_SIZE_BYTES,
206
+ CacheSettingsManager,
207
+ CircuitBreaker,
208
+ CircuitOpenError,
141
209
  CompletedTransactionsContext,
142
210
  ConfigurationError,
143
211
  ConflictBus,
212
+ ConflictDetectionError,
144
213
  ConnectionHealthContext,
145
214
  ConnectionStatusContext,
146
215
  ConnectorError,
147
216
  DEFAULT_ATTACHMENT_CACHE_SIZE,
148
217
  DEFAULT_ATTACHMENT_CONCURRENCY,
218
+ DEFAULT_ATTACHMENT_QUEUE_OPTIONS,
149
219
  DEFAULT_BACKOFF_CONFIG,
150
220
  DEFAULT_CACHE_CONFIG,
221
+ DEFAULT_CACHE_SETTINGS,
222
+ DEFAULT_CIRCUIT_BREAKER_CONFIG,
151
223
  DEFAULT_COMPRESSION_CONFIG,
152
224
  DEFAULT_COMPRESSION_QUALITY,
153
225
  DEFAULT_CONNECTION_HEALTH,
154
- DEFAULT_DOWNLOAD_CONFIG,
155
226
  DEFAULT_MAX_RETRY_ATTEMPTS,
156
227
  DEFAULT_RETRY_BACKOFF_MULTIPLIER,
157
228
  DEFAULT_RETRY_BASE_DELAY_MS,
@@ -162,10 +233,13 @@ export {
162
233
  DEFAULT_SYNC_METRICS,
163
234
  DEFAULT_SYNC_MODE,
164
235
  DEFAULT_SYNC_STATUS,
236
+ DEFAULT_UPLOAD_CONFIG,
237
+ DEFAULT_UPLOAD_NOTIFICATION,
165
238
  DOWNLOAD_STOP_THRESHOLD,
239
+ DeadLetterQueue,
166
240
  EVICTION_TRIGGER_THRESHOLD,
241
+ EncodingType,
167
242
  FailedTransactionsContext,
168
- FailedUploadStore,
169
243
  HEALTH_CHECK_INTERVAL_MS,
170
244
  HEALTH_CHECK_TIMEOUT_MS,
171
245
  HealthMonitor,
@@ -173,16 +247,23 @@ export {
173
247
  LATENCY_DEGRADED_THRESHOLD_MS,
174
248
  MAX_CONSECUTIVE_FAILURES,
175
249
  MetricsCollector,
250
+ OfflineDataProvider,
176
251
  PendingMutationsContext,
177
252
  PlatformAdapterError,
253
+ PolAttachmentQueue,
254
+ PolAttachmentState,
255
+ PolStorageAdapter,
178
256
  PowerSyncContext,
179
257
  PowerSyncError,
258
+ PowerSyncErrorBoundary,
180
259
  PowerSyncProvider,
260
+ ProviderBridge,
181
261
  RetryExhaustedError,
182
262
  STATS_CACHE_TTL_MS,
183
263
  STATUS_NOTIFY_THROTTLE_MS,
184
264
  STORAGE_CRITICAL_THRESHOLD,
185
265
  STORAGE_KEY_ATTACHMENT_SETTINGS,
266
+ STORAGE_KEY_AUTO_OFFLINE,
186
267
  STORAGE_KEY_ENABLED,
187
268
  STORAGE_KEY_METRICS,
188
269
  STORAGE_KEY_PAUSED,
@@ -190,6 +271,8 @@ export {
190
271
  STORAGE_KEY_SYNC_MODE,
191
272
  STORAGE_WARNING_THRESHOLD,
192
273
  SupabaseConnector,
274
+ SupabaseStorageAdapter,
275
+ SupabaseUploadHandler,
193
276
  SyncActivityContext,
194
277
  SyncMetricsContext,
195
278
  SyncModeContext,
@@ -198,28 +281,54 @@ export {
198
281
  SyncStatusTracker,
199
282
  addJitter,
200
283
  calculateBackoffDelay,
284
+ checkIntegrityImpl,
285
+ checkStorageQuotaImpl,
201
286
  classifyError,
202
287
  classifySupabaseError,
288
+ compactDatabaseImpl,
289
+ createDeadLetterEntry,
203
290
  createNativePlatformAdapter,
291
+ createPolAttachmentQueue,
292
+ createSupabaseStorageAdapter,
293
+ createSupabaseUploadHandler,
204
294
  createSyncError,
205
295
  defaultSchemaRouter,
296
+ defineBackgroundSyncTask,
206
297
  detectConflicts,
207
298
  extractEntityIds,
208
299
  extractTableNames,
209
- failedUploadStore,
210
300
  fetchServerVersion,
301
+ formatBytes,
302
+ generateDLQEntryId,
211
303
  generateFailureId,
304
+ getCacheStatsImpl,
305
+ getExtensionFromMimeType,
212
306
  getLocalVersion,
307
+ getMimeType,
308
+ getMimeTypeFromPath,
213
309
  hasVersionColumn,
310
+ initializeBackgroundSync,
311
+ isAudioMimeType,
312
+ isBackgroundSyncRegistered,
313
+ isDocumentMimeType,
314
+ isImageMimeType,
315
+ isVideoMimeType,
316
+ registerBackgroundSync,
317
+ resolveBucketFromConfig,
214
318
  sleep,
215
319
  toSyncOperationError,
320
+ unregisterBackgroundSync,
216
321
  useAttachmentQueue,
322
+ useAttachmentQueueReady,
323
+ useCompletedTransactions,
217
324
  useCompletedTransactionsContext,
218
325
  useConnectionHealth,
219
326
  useConnectionStatus,
220
327
  useDatabase,
328
+ useDatabaseMaintenance,
221
329
  useDownloadProgress,
222
330
  useEntitySyncStatus,
331
+ useFailedTransactions,
223
332
  useFailedTransactionsContext,
224
333
  useIsSyncing,
225
334
  useOnlineStatus,
@@ -1,14 +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 { f as ConflictBus, g as ConflictCheckResult, j as ConflictDetectionConfig, i as ConflictHandler, k as ConflictListener, h as ConflictResolution, C as ConnectorConfig, c as CrudHandler, D as DEFAULT_RETRY_CONFIG, F as FieldConflict, P as PowerSyncCredentials, l as ResolutionListener, e as RetryConfig, R as RetryStrategyConfig, b as SchemaRouter, S as SupabaseConnector, a as SupabaseConnectorOptions, d as defaultSchemaRouter } from './index-l3iL9Jte.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 { F as FailedUpload, a as FailedUploadStore, f as failedUploadStore } from './failed-upload-store-C0cLxxPz.js';
8
- export { AbortError, BackoffConfig, BackoffOptions, DEFAULT_BACKOFF_CONFIG, RetryExhaustedError, addJitter, calculateBackoffDelay, detectConflicts, fetchServerVersion, getLocalVersion, hasVersionColumn, sleep, withExponentialBackoff } from './index.js';
9
- export { AttachmentQueueContext, CompletedTransactionsContext, CompletedTransactionsContextValue, ConnectionHealthContext, ConnectionHealthContextValue, ConnectionStatusContext, ConnectionStatusContextValue, DEFAULT_CONNECTION_HEALTH, DEFAULT_SYNC_CONFIG, DEFAULT_SYNC_METRICS, DEFAULT_SYNC_STATUS, EntitySyncStatusResult, FailedTransactionsContext, FailedTransactionsContextValue, PendingMutationsContext, PendingMutationsContextValue, PowerSyncConfig, PowerSyncContext, PowerSyncContextValue, PowerSyncProvider, PowerSyncProviderProps, SyncActivityContext, SyncActivityContextValue, SyncActivityResult, SyncConfig, SyncMetricsContext, SyncMetricsContextValue, SyncModeContext, SyncModeContextValue, SyncStatusContext, SyncStatusContextValue, UploadStatusResult, useAttachmentQueue, useCompletedTransactionsContext, useConnectionHealth, useConnectionStatus, useDatabase, useDownloadProgress, useEntitySyncStatus, useFailedTransactionsContext, useIsSyncing, useOnlineStatus, usePendingMutations, usePendingMutationsContext, usePlatform, usePowerSync, useSyncActivity, useSyncActivityContext, useSyncControl, useSyncMetrics, useSyncMode, useSyncModeContext, 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';
10
17
  export { AsyncStorageAdapter, CompressedImage, CompressionOptions, ConnectionType, DatabaseOptions, FileInfo, FileSystemAdapter, ImageProcessorAdapter, LoggerAdapter, NetworkAdapter, PlatformAdapter, PlatformType, detectPlatform } from './platform/index.js';
11
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';
12
20
  import '@supabase/supabase-js';
13
- import '@tanstack/react-query';
21
+ import '@powersync/common';
14
22
  import 'react';
23
+ import '@tanstack/react-query';
24
+ import '@powersync/react-native';