@pol-studios/powersync 1.0.30 → 1.0.33
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/{CacheSettingsManager-uz-kbnRH.d.ts → CacheSettingsManager-0H_7thHW.d.ts} +21 -3
- package/dist/attachments/index.d.ts +30 -30
- package/dist/attachments/index.js +13 -4
- package/dist/{background-sync-CVR3PkFi.d.ts → background-sync-BujnI3IR.d.ts} +1 -1
- package/dist/{chunk-RE5HWLCB.js → chunk-2RDWLXJW.js} +322 -103
- package/dist/chunk-2RDWLXJW.js.map +1 -0
- package/dist/{chunk-P4HZA6ZT.js → chunk-4665ZSE5.js} +2 -2
- package/dist/chunk-4665ZSE5.js.map +1 -0
- package/dist/{chunk-XOY2CJ67.js → chunk-4F5B5CZ7.js} +3 -3
- package/dist/chunk-5WRI5ZAA.js +31 -0
- package/dist/{chunk-BC2SRII2.js → chunk-65A3SYJZ.js} +14 -1
- package/dist/chunk-65A3SYJZ.js.map +1 -0
- package/dist/chunk-6SZ64KCZ.js +755 -0
- package/dist/chunk-6SZ64KCZ.js.map +1 -0
- package/dist/{chunk-C2ACBYBZ.js → chunk-74TBHWJ4.js} +10 -96
- package/dist/{chunk-C2ACBYBZ.js.map → chunk-74TBHWJ4.js.map} +1 -1
- package/dist/chunk-ANXWYQEJ.js +1 -0
- package/dist/chunk-ANXWYQEJ.js.map +1 -0
- package/dist/{chunk-CAB26E6F.js → chunk-C4J4MLER.js} +29 -24
- package/dist/chunk-C4J4MLER.js.map +1 -0
- package/dist/{chunk-C5ODS3XH.js → chunk-EOW7JK7Q.js} +9 -16
- package/dist/chunk-EOW7JK7Q.js.map +1 -0
- package/dist/chunk-HRAVPIAZ.js +220 -0
- package/dist/chunk-HRAVPIAZ.js.map +1 -0
- package/dist/{chunk-XAEII4ZX.js → chunk-NUGQOTEM.js} +32 -4
- package/dist/chunk-NUGQOTEM.js.map +1 -0
- package/dist/chunk-OGUFUZSY.js +5415 -0
- package/dist/chunk-OGUFUZSY.js.map +1 -0
- package/dist/{chunk-JCGOZVWL.js → chunk-P4D6BQ4X.js} +115 -576
- package/dist/chunk-P4D6BQ4X.js.map +1 -0
- package/dist/{chunk-CACKC6XG.js → chunk-PGEDE6IM.js} +136 -89
- package/dist/chunk-PGEDE6IM.js.map +1 -0
- package/dist/{chunk-A4IBBWGO.js → chunk-RALHHPTU.js} +1 -1
- package/dist/chunk-RIDSPLE5.js +42 -0
- package/dist/chunk-RIDSPLE5.js.map +1 -0
- package/dist/{chunk-Z6VOBGTU.js → chunk-UOMHWUHV.js} +2 -12
- package/dist/chunk-UOMHWUHV.js.map +1 -0
- package/dist/{chunk-QREWE3NR.js → chunk-YONQYTVH.js} +2 -2
- package/dist/chunk-ZAN22NGL.js +13 -0
- package/dist/chunk-ZAN22NGL.js.map +1 -0
- package/dist/config/index.d.ts +200 -0
- package/dist/config/index.js +23 -0
- package/dist/config/index.js.map +1 -0
- package/dist/connector/index.d.ts +23 -5
- package/dist/connector/index.js +4 -1
- package/dist/core/index.d.ts +2 -2
- package/dist/core/index.js +1 -0
- package/dist/error/index.js +1 -0
- package/dist/generator/index.js +2 -0
- package/dist/generator/index.js.map +1 -1
- package/dist/index.d.ts +19 -16
- package/dist/index.js +68 -36
- package/dist/index.native.d.ts +18 -14
- package/dist/index.native.js +73 -34
- package/dist/index.web.d.ts +17 -14
- package/dist/index.web.js +68 -36
- package/dist/maintenance/index.d.ts +2 -2
- package/dist/maintenance/index.js +3 -2
- package/dist/platform/index.d.ts +1 -1
- package/dist/platform/index.js +2 -0
- package/dist/platform/index.js.map +1 -1
- package/dist/platform/index.native.d.ts +1 -1
- package/dist/platform/index.native.js +1 -0
- package/dist/platform/index.web.d.ts +1 -1
- package/dist/platform/index.web.js +1 -0
- package/dist/pol-attachment-queue-DqBvLAEY.d.ts +255 -0
- package/dist/provider/index.d.ts +149 -114
- package/dist/provider/index.js +9 -14
- package/dist/provider/index.native.d.ts +108 -0
- package/dist/provider/index.native.js +121 -0
- package/dist/provider/index.native.js.map +1 -0
- package/dist/provider/index.web.d.ts +16 -0
- package/dist/provider/index.web.js +112 -0
- package/dist/provider/index.web.js.map +1 -0
- package/dist/react/index.d.ts +16 -65
- package/dist/react/index.js +2 -9
- package/dist/storage/index.d.ts +5 -4
- package/dist/storage/index.js +12 -9
- package/dist/storage/index.native.d.ts +5 -4
- package/dist/storage/index.native.js +8 -5
- package/dist/storage/index.web.d.ts +5 -4
- package/dist/storage/index.web.js +11 -8
- package/dist/storage/upload/index.d.ts +4 -3
- package/dist/storage/upload/index.js +4 -2
- package/dist/storage/upload/index.native.d.ts +4 -3
- package/dist/storage/upload/index.native.js +4 -2
- package/dist/storage/upload/index.web.d.ts +2 -1
- package/dist/storage/upload/index.web.js +4 -2
- package/dist/{supabase-connector-C4YpH_l3.d.ts → supabase-connector-HMxBA9Kg.d.ts} +2 -2
- package/dist/sync/index.d.ts +155 -20
- package/dist/sync/index.js +13 -3
- package/dist/{types-CyvBaAl8.d.ts → types-6QHGELuY.d.ts} +4 -1
- package/dist/{types-Dv1uf0LZ.d.ts → types-B9MptP7E.d.ts} +7 -10
- package/dist/types-BhAEsJj-.d.ts +330 -0
- package/dist/{types-D0WcHrq6.d.ts → types-CGMibJKD.d.ts} +8 -0
- package/dist/{types-CpM2_LhU.d.ts → types-DqJnP50o.d.ts} +6 -1
- package/dist/{pol-attachment-queue-BE2HU3Us.d.ts → types-JCEhw2Lf.d.ts} +139 -346
- package/package.json +18 -4
- package/dist/chunk-654ERHA7.js +0 -1
- package/dist/chunk-BC2SRII2.js.map +0 -1
- package/dist/chunk-C5ODS3XH.js.map +0 -1
- package/dist/chunk-CAB26E6F.js.map +0 -1
- package/dist/chunk-CACKC6XG.js.map +0 -1
- package/dist/chunk-FNYQFILT.js +0 -44
- package/dist/chunk-FNYQFILT.js.map +0 -1
- package/dist/chunk-JCGOZVWL.js.map +0 -1
- package/dist/chunk-P4HZA6ZT.js.map +0 -1
- package/dist/chunk-RBPWEOIV.js +0 -358
- package/dist/chunk-RBPWEOIV.js.map +0 -1
- package/dist/chunk-RE5HWLCB.js.map +0 -1
- package/dist/chunk-XAEII4ZX.js.map +0 -1
- package/dist/chunk-Z6VOBGTU.js.map +0 -1
- /package/dist/{chunk-XOY2CJ67.js.map → chunk-4F5B5CZ7.js.map} +0 -0
- /package/dist/{chunk-654ERHA7.js.map → chunk-5WRI5ZAA.js.map} +0 -0
- /package/dist/{chunk-A4IBBWGO.js.map → chunk-RALHHPTU.js.map} +0 -0
- /package/dist/{chunk-QREWE3NR.js.map → chunk-YONQYTVH.js.map} +0 -0
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
import { OfflineDataProviderProps } from './index.js';
|
|
2
|
+
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, OfflineDataProviderConfig, PendingMutationsContext, PendingMutationsContextValue, PowerSyncConfig, PowerSyncContext, PowerSyncContextValue, PowerSyncProvider, PowerSyncProviderProps, PowerSyncSyncStatusSnapshot, ProviderBridge, ProviderBridgeProps, ResetSyncOptions, RetryCountdownResult, SyncActivityContext, SyncActivityContextValue, SyncActivityResult, SyncConfig, SyncMetricsContext, SyncMetricsContextValue, SyncModeContext, SyncModeContextValue, SyncStatusContext, SyncStatusContextValue, UPLOAD_BACKOFF_DELAYS, UPLOAD_MAX_RETRIES, UploadBlockedReasonResult, UploadStatusResult, useAttachmentQueue, useAttachmentQueueReady, useCompletedTransactions, useCompletedTransactionsContext, useConnectionHealth, useConnectionStatus, useDatabase, useDownloadProgress, useEntitySyncStatus, useFailedTransactions, useFailedTransactionsContext, useIsSyncing, useOnlineStatus, usePendingMutations, usePendingMutationsContext, usePlatform, usePowerSync, useRetryCountdown, useSyncActivity, useSyncActivityContext, useSyncControl, useSyncMetrics, useSyncMode, useSyncModeContext, useSyncStatus, useUploadBlockedReason, useUploadRetry, useUploadStatus } from './index.js';
|
|
3
|
+
import react__default from 'react';
|
|
4
|
+
import '@supabase/supabase-js';
|
|
5
|
+
import '@tanstack/react-query';
|
|
6
|
+
import '../types-B9MptP7E.js';
|
|
7
|
+
import '../platform/index.js';
|
|
8
|
+
import '../types-DqJnP50o.js';
|
|
9
|
+
import '../types-JCEhw2Lf.js';
|
|
10
|
+
import '@powersync/common';
|
|
11
|
+
import '../pol-attachment-queue-DqBvLAEY.js';
|
|
12
|
+
import '@powersync/attachments';
|
|
13
|
+
import '../supabase-connector-HMxBA9Kg.js';
|
|
14
|
+
import '@powersync/react-native';
|
|
15
|
+
import '../types-CGMibJKD.js';
|
|
16
|
+
import '../background-sync-BujnI3IR.js';
|
|
17
|
+
import '../types-BhAEsJj-.js';
|
|
18
|
+
|
|
19
|
+
/**
|
|
20
|
+
* OfflineDataProvider Component for @pol-studios/powersync
|
|
21
|
+
*
|
|
22
|
+
* Batteries-included offline data provider that combines:
|
|
23
|
+
* - PowerSyncProvider for offline-first data sync
|
|
24
|
+
* - DataLayerProvider integration from @pol-studios/db
|
|
25
|
+
* - ConflictProvider for conflict resolution UI
|
|
26
|
+
* - StorageQueueProvider for attachment queue access
|
|
27
|
+
* - Background sync system setup
|
|
28
|
+
* - Error recovery UI with retry capability
|
|
29
|
+
* - Online-only mode fallback (no PowerSync URL)
|
|
30
|
+
*
|
|
31
|
+
* @example
|
|
32
|
+
* ```tsx
|
|
33
|
+
* <OfflineDataProvider
|
|
34
|
+
* config={{
|
|
35
|
+
* schema: AppSchema,
|
|
36
|
+
* supabaseClient: supabase,
|
|
37
|
+
* queryClient: queryClient,
|
|
38
|
+
* powerSyncUrl: env.powerSyncUrl,
|
|
39
|
+
* attachments: {
|
|
40
|
+
* source: { type: 'supabase-bucket', bucket: 'my-bucket' },
|
|
41
|
+
* watchPaths: (db, supabase, onUpdate) => {
|
|
42
|
+
* db.watch(
|
|
43
|
+
* // Filter directly in the query - only emit paths you want to download
|
|
44
|
+
* `SELECT storagePath FROM photos
|
|
45
|
+
* WHERE storagePath IS NOT NULL
|
|
46
|
+
* AND storagePath NOT LIKE '%.mp4'`,
|
|
47
|
+
* [],
|
|
48
|
+
* { onResult: (r) => onUpdate(r.rows._array.map(x => x.storagePath)) }
|
|
49
|
+
* );
|
|
50
|
+
* },
|
|
51
|
+
* },
|
|
52
|
+
* }}
|
|
53
|
+
* dataLayer={{ config: dataLayerConfig }}
|
|
54
|
+
* renderInitError={(error, retry) => <MyErrorUI error={error} onRetry={retry} />}
|
|
55
|
+
* >
|
|
56
|
+
* <App />
|
|
57
|
+
* </OfflineDataProvider>
|
|
58
|
+
* ```
|
|
59
|
+
*/
|
|
60
|
+
|
|
61
|
+
/**
|
|
62
|
+
* Batteries-included offline data provider.
|
|
63
|
+
*
|
|
64
|
+
* Combines PowerSyncProvider with error boundary, DataLayerProvider integration,
|
|
65
|
+
* and sensible defaults for a complete offline-first data solution.
|
|
66
|
+
*
|
|
67
|
+
* Key features:
|
|
68
|
+
* - Automatic PowerSync setup and initialization
|
|
69
|
+
* - Integration with @pol-studios/db DataLayerProvider
|
|
70
|
+
* - ConflictProvider and StorageQueueProvider wiring
|
|
71
|
+
* - Background sync system support
|
|
72
|
+
* - Error recovery UI with retry capability
|
|
73
|
+
* - Online-only mode fallback when no PowerSync URL is provided
|
|
74
|
+
*
|
|
75
|
+
* @example
|
|
76
|
+
* ```tsx
|
|
77
|
+
* // Basic usage
|
|
78
|
+
* <OfflineDataProvider
|
|
79
|
+
* config={{
|
|
80
|
+
* schema: AppSchema,
|
|
81
|
+
* supabaseClient: supabase,
|
|
82
|
+
* queryClient: queryClient,
|
|
83
|
+
* powerSyncUrl: process.env.EXPO_PUBLIC_POWERSYNC_URL,
|
|
84
|
+
* }}
|
|
85
|
+
* >
|
|
86
|
+
* <App />
|
|
87
|
+
* </OfflineDataProvider>
|
|
88
|
+
*
|
|
89
|
+
* // With DataLayer integration
|
|
90
|
+
* <OfflineDataProvider
|
|
91
|
+
* config={{ ... }}
|
|
92
|
+
* dataLayer={{ config: dataLayerConfig }}
|
|
93
|
+
* >
|
|
94
|
+
* <App />
|
|
95
|
+
* </OfflineDataProvider>
|
|
96
|
+
*
|
|
97
|
+
* // With custom error UI
|
|
98
|
+
* <OfflineDataProvider
|
|
99
|
+
* config={{ ... }}
|
|
100
|
+
* renderInitError={(error, retry) => <MyErrorUI error={error} onRetry={retry} />}
|
|
101
|
+
* >
|
|
102
|
+
* <App />
|
|
103
|
+
* </OfflineDataProvider>
|
|
104
|
+
* ```
|
|
105
|
+
*/
|
|
106
|
+
declare function OfflineDataProvider({ config, polConfig, supabaseClient: polConfigSupabase, queryClient: polConfigQueryClient, children, dataLayer, backgroundSync, skipConflictProvider, skipStorageQueueProvider, storageBackend, platform: customPlatformProp, attachments: attachmentsOverride, renderInitError, renderError, onReady, onError, onSyncStatusChange, onBackgroundSyncSystemReady: onBackgroundSyncSystemReadyProp, }: OfflineDataProviderProps): react__default.ReactElement;
|
|
107
|
+
|
|
108
|
+
export { OfflineDataProvider, OfflineDataProviderProps };
|
|
@@ -0,0 +1,121 @@
|
|
|
1
|
+
import {
|
|
2
|
+
OfflineDataProvider
|
|
3
|
+
} from "../chunk-6SZ64KCZ.js";
|
|
4
|
+
import "../chunk-YHTZ7VMV.js";
|
|
5
|
+
import "../chunk-C4J4MLER.js";
|
|
6
|
+
import "../chunk-P6WOZO7H.js";
|
|
7
|
+
import {
|
|
8
|
+
PowerSyncProvider,
|
|
9
|
+
ProviderBridge,
|
|
10
|
+
UPLOAD_BACKOFF_DELAYS,
|
|
11
|
+
UPLOAD_MAX_RETRIES
|
|
12
|
+
} from "../chunk-P4D6BQ4X.js";
|
|
13
|
+
import "../chunk-PGEDE6IM.js";
|
|
14
|
+
import {
|
|
15
|
+
DEFAULT_CONNECTION_HEALTH,
|
|
16
|
+
DEFAULT_SYNC_CONFIG,
|
|
17
|
+
DEFAULT_SYNC_METRICS,
|
|
18
|
+
DEFAULT_SYNC_STATUS
|
|
19
|
+
} from "../chunk-2RDWLXJW.js";
|
|
20
|
+
import "../chunk-OGUFUZSY.js";
|
|
21
|
+
import {
|
|
22
|
+
AttachmentQueueContext,
|
|
23
|
+
CompletedTransactionsContext,
|
|
24
|
+
ConnectionHealthContext,
|
|
25
|
+
ConnectionStatusContext,
|
|
26
|
+
FailedTransactionsContext,
|
|
27
|
+
PendingMutationsContext,
|
|
28
|
+
PowerSyncContext,
|
|
29
|
+
SyncActivityContext,
|
|
30
|
+
SyncMetricsContext,
|
|
31
|
+
SyncModeContext,
|
|
32
|
+
SyncStatusContext,
|
|
33
|
+
useAttachmentQueue,
|
|
34
|
+
useAttachmentQueueReady,
|
|
35
|
+
useCompletedTransactions,
|
|
36
|
+
useCompletedTransactionsContext,
|
|
37
|
+
useConnectionHealth,
|
|
38
|
+
useConnectionStatus,
|
|
39
|
+
useDatabase,
|
|
40
|
+
useDownloadProgress,
|
|
41
|
+
useEntitySyncStatus,
|
|
42
|
+
useFailedTransactions,
|
|
43
|
+
useFailedTransactionsContext,
|
|
44
|
+
useIsSyncing,
|
|
45
|
+
useOnlineStatus,
|
|
46
|
+
usePendingMutations,
|
|
47
|
+
usePendingMutationsContext,
|
|
48
|
+
usePlatform,
|
|
49
|
+
usePowerSync,
|
|
50
|
+
useRetryCountdown,
|
|
51
|
+
useSyncActivity,
|
|
52
|
+
useSyncActivityContext,
|
|
53
|
+
useSyncControl,
|
|
54
|
+
useSyncMetrics,
|
|
55
|
+
useSyncMode,
|
|
56
|
+
useSyncModeContext,
|
|
57
|
+
useSyncStatus,
|
|
58
|
+
useUploadBlockedReason,
|
|
59
|
+
useUploadRetry,
|
|
60
|
+
useUploadStatus
|
|
61
|
+
} from "../chunk-74TBHWJ4.js";
|
|
62
|
+
import "../chunk-ZAN22NGL.js";
|
|
63
|
+
import "../chunk-NUGQOTEM.js";
|
|
64
|
+
import "../chunk-UOMHWUHV.js";
|
|
65
|
+
import "../chunk-FV2HXEIY.js";
|
|
66
|
+
import "../chunk-CGL33PL4.js";
|
|
67
|
+
import "../chunk-WN5ZJ3E2.js";
|
|
68
|
+
import "../chunk-65A3SYJZ.js";
|
|
69
|
+
import "../chunk-I2AYMY5O.js";
|
|
70
|
+
import "../chunk-5WRI5ZAA.js";
|
|
71
|
+
export {
|
|
72
|
+
AttachmentQueueContext,
|
|
73
|
+
CompletedTransactionsContext,
|
|
74
|
+
ConnectionHealthContext,
|
|
75
|
+
ConnectionStatusContext,
|
|
76
|
+
DEFAULT_CONNECTION_HEALTH,
|
|
77
|
+
DEFAULT_SYNC_CONFIG,
|
|
78
|
+
DEFAULT_SYNC_METRICS,
|
|
79
|
+
DEFAULT_SYNC_STATUS,
|
|
80
|
+
FailedTransactionsContext,
|
|
81
|
+
OfflineDataProvider,
|
|
82
|
+
PendingMutationsContext,
|
|
83
|
+
PowerSyncContext,
|
|
84
|
+
PowerSyncProvider,
|
|
85
|
+
ProviderBridge,
|
|
86
|
+
SyncActivityContext,
|
|
87
|
+
SyncMetricsContext,
|
|
88
|
+
SyncModeContext,
|
|
89
|
+
SyncStatusContext,
|
|
90
|
+
UPLOAD_BACKOFF_DELAYS,
|
|
91
|
+
UPLOAD_MAX_RETRIES,
|
|
92
|
+
useAttachmentQueue,
|
|
93
|
+
useAttachmentQueueReady,
|
|
94
|
+
useCompletedTransactions,
|
|
95
|
+
useCompletedTransactionsContext,
|
|
96
|
+
useConnectionHealth,
|
|
97
|
+
useConnectionStatus,
|
|
98
|
+
useDatabase,
|
|
99
|
+
useDownloadProgress,
|
|
100
|
+
useEntitySyncStatus,
|
|
101
|
+
useFailedTransactions,
|
|
102
|
+
useFailedTransactionsContext,
|
|
103
|
+
useIsSyncing,
|
|
104
|
+
useOnlineStatus,
|
|
105
|
+
usePendingMutations,
|
|
106
|
+
usePendingMutationsContext,
|
|
107
|
+
usePlatform,
|
|
108
|
+
usePowerSync,
|
|
109
|
+
useRetryCountdown,
|
|
110
|
+
useSyncActivity,
|
|
111
|
+
useSyncActivityContext,
|
|
112
|
+
useSyncControl,
|
|
113
|
+
useSyncMetrics,
|
|
114
|
+
useSyncMode,
|
|
115
|
+
useSyncModeContext,
|
|
116
|
+
useSyncStatus,
|
|
117
|
+
useUploadBlockedReason,
|
|
118
|
+
useUploadRetry,
|
|
119
|
+
useUploadStatus
|
|
120
|
+
};
|
|
121
|
+
//# sourceMappingURL=index.native.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
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, OfflineDataProviderConfig, OfflineDataProviderProps, PendingMutationsContext, PendingMutationsContextValue, PowerSyncConfig, PowerSyncContext, PowerSyncContextValue, PowerSyncProvider, PowerSyncProviderProps, PowerSyncSyncStatusSnapshot, ProviderBridge, ProviderBridgeProps, ResetSyncOptions, RetryCountdownResult, SyncActivityContext, SyncActivityContextValue, SyncActivityResult, SyncConfig, SyncMetricsContext, SyncMetricsContextValue, SyncModeContext, SyncModeContextValue, SyncStatusContext, SyncStatusContextValue, UPLOAD_BACKOFF_DELAYS, UPLOAD_MAX_RETRIES, UploadBlockedReasonResult, UploadStatusResult, useAttachmentQueue, useAttachmentQueueReady, useCompletedTransactions, useCompletedTransactionsContext, useConnectionHealth, useConnectionStatus, useDatabase, useDownloadProgress, useEntitySyncStatus, useFailedTransactions, useFailedTransactionsContext, useIsSyncing, useOnlineStatus, usePendingMutations, usePendingMutationsContext, usePlatform, usePowerSync, useRetryCountdown, useSyncActivity, useSyncActivityContext, useSyncControl, useSyncMetrics, useSyncMode, useSyncModeContext, useSyncStatus, useUploadBlockedReason, useUploadRetry, useUploadStatus } from './index.js';
|
|
2
|
+
import '@supabase/supabase-js';
|
|
3
|
+
import '@tanstack/react-query';
|
|
4
|
+
import '../types-B9MptP7E.js';
|
|
5
|
+
import '../platform/index.js';
|
|
6
|
+
import '../types-DqJnP50o.js';
|
|
7
|
+
import '../types-JCEhw2Lf.js';
|
|
8
|
+
import '@powersync/common';
|
|
9
|
+
import '../pol-attachment-queue-DqBvLAEY.js';
|
|
10
|
+
import '@powersync/attachments';
|
|
11
|
+
import '../supabase-connector-HMxBA9Kg.js';
|
|
12
|
+
import 'react';
|
|
13
|
+
import '@powersync/react-native';
|
|
14
|
+
import '../types-CGMibJKD.js';
|
|
15
|
+
import '../background-sync-BujnI3IR.js';
|
|
16
|
+
import '../types-BhAEsJj-.js';
|
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
import {
|
|
2
|
+
PowerSyncProvider,
|
|
3
|
+
ProviderBridge,
|
|
4
|
+
UPLOAD_BACKOFF_DELAYS,
|
|
5
|
+
UPLOAD_MAX_RETRIES
|
|
6
|
+
} from "../chunk-P4D6BQ4X.js";
|
|
7
|
+
import "../chunk-PGEDE6IM.js";
|
|
8
|
+
import {
|
|
9
|
+
DEFAULT_CONNECTION_HEALTH,
|
|
10
|
+
DEFAULT_SYNC_CONFIG,
|
|
11
|
+
DEFAULT_SYNC_METRICS,
|
|
12
|
+
DEFAULT_SYNC_STATUS
|
|
13
|
+
} from "../chunk-2RDWLXJW.js";
|
|
14
|
+
import "../chunk-OGUFUZSY.js";
|
|
15
|
+
import {
|
|
16
|
+
AttachmentQueueContext,
|
|
17
|
+
CompletedTransactionsContext,
|
|
18
|
+
ConnectionHealthContext,
|
|
19
|
+
ConnectionStatusContext,
|
|
20
|
+
FailedTransactionsContext,
|
|
21
|
+
PendingMutationsContext,
|
|
22
|
+
PowerSyncContext,
|
|
23
|
+
SyncActivityContext,
|
|
24
|
+
SyncMetricsContext,
|
|
25
|
+
SyncModeContext,
|
|
26
|
+
SyncStatusContext,
|
|
27
|
+
useAttachmentQueue,
|
|
28
|
+
useAttachmentQueueReady,
|
|
29
|
+
useCompletedTransactions,
|
|
30
|
+
useCompletedTransactionsContext,
|
|
31
|
+
useConnectionHealth,
|
|
32
|
+
useConnectionStatus,
|
|
33
|
+
useDatabase,
|
|
34
|
+
useDownloadProgress,
|
|
35
|
+
useEntitySyncStatus,
|
|
36
|
+
useFailedTransactions,
|
|
37
|
+
useFailedTransactionsContext,
|
|
38
|
+
useIsSyncing,
|
|
39
|
+
useOnlineStatus,
|
|
40
|
+
usePendingMutations,
|
|
41
|
+
usePendingMutationsContext,
|
|
42
|
+
usePlatform,
|
|
43
|
+
usePowerSync,
|
|
44
|
+
useRetryCountdown,
|
|
45
|
+
useSyncActivity,
|
|
46
|
+
useSyncActivityContext,
|
|
47
|
+
useSyncControl,
|
|
48
|
+
useSyncMetrics,
|
|
49
|
+
useSyncMode,
|
|
50
|
+
useSyncModeContext,
|
|
51
|
+
useSyncStatus,
|
|
52
|
+
useUploadBlockedReason,
|
|
53
|
+
useUploadRetry,
|
|
54
|
+
useUploadStatus
|
|
55
|
+
} from "../chunk-74TBHWJ4.js";
|
|
56
|
+
import "../chunk-NUGQOTEM.js";
|
|
57
|
+
import "../chunk-UOMHWUHV.js";
|
|
58
|
+
import "../chunk-FV2HXEIY.js";
|
|
59
|
+
import "../chunk-CGL33PL4.js";
|
|
60
|
+
import "../chunk-65A3SYJZ.js";
|
|
61
|
+
import "../chunk-I2AYMY5O.js";
|
|
62
|
+
import "../chunk-5WRI5ZAA.js";
|
|
63
|
+
export {
|
|
64
|
+
AttachmentQueueContext,
|
|
65
|
+
CompletedTransactionsContext,
|
|
66
|
+
ConnectionHealthContext,
|
|
67
|
+
ConnectionStatusContext,
|
|
68
|
+
DEFAULT_CONNECTION_HEALTH,
|
|
69
|
+
DEFAULT_SYNC_CONFIG,
|
|
70
|
+
DEFAULT_SYNC_METRICS,
|
|
71
|
+
DEFAULT_SYNC_STATUS,
|
|
72
|
+
FailedTransactionsContext,
|
|
73
|
+
PendingMutationsContext,
|
|
74
|
+
PowerSyncContext,
|
|
75
|
+
PowerSyncProvider,
|
|
76
|
+
ProviderBridge,
|
|
77
|
+
SyncActivityContext,
|
|
78
|
+
SyncMetricsContext,
|
|
79
|
+
SyncModeContext,
|
|
80
|
+
SyncStatusContext,
|
|
81
|
+
UPLOAD_BACKOFF_DELAYS,
|
|
82
|
+
UPLOAD_MAX_RETRIES,
|
|
83
|
+
useAttachmentQueue,
|
|
84
|
+
useAttachmentQueueReady,
|
|
85
|
+
useCompletedTransactions,
|
|
86
|
+
useCompletedTransactionsContext,
|
|
87
|
+
useConnectionHealth,
|
|
88
|
+
useConnectionStatus,
|
|
89
|
+
useDatabase,
|
|
90
|
+
useDownloadProgress,
|
|
91
|
+
useEntitySyncStatus,
|
|
92
|
+
useFailedTransactions,
|
|
93
|
+
useFailedTransactionsContext,
|
|
94
|
+
useIsSyncing,
|
|
95
|
+
useOnlineStatus,
|
|
96
|
+
usePendingMutations,
|
|
97
|
+
usePendingMutationsContext,
|
|
98
|
+
usePlatform,
|
|
99
|
+
usePowerSync,
|
|
100
|
+
useRetryCountdown,
|
|
101
|
+
useSyncActivity,
|
|
102
|
+
useSyncActivityContext,
|
|
103
|
+
useSyncControl,
|
|
104
|
+
useSyncMetrics,
|
|
105
|
+
useSyncMode,
|
|
106
|
+
useSyncModeContext,
|
|
107
|
+
useSyncStatus,
|
|
108
|
+
useUploadBlockedReason,
|
|
109
|
+
useUploadRetry,
|
|
110
|
+
useUploadStatus
|
|
111
|
+
};
|
|
112
|
+
//# sourceMappingURL=index.web.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
package/dist/react/index.d.ts
CHANGED
|
@@ -1,14 +1,15 @@
|
|
|
1
1
|
import * as react from 'react';
|
|
2
|
-
import
|
|
2
|
+
import { ReactNode } from 'react';
|
|
3
3
|
import { Schema } from '@powersync/react-native';
|
|
4
|
-
import { A as AuthProvider } from '../types-
|
|
5
|
-
import { a as StorageBackend } from '../types-
|
|
6
|
-
import {
|
|
4
|
+
import { A as AuthProvider } from '../types-DqJnP50o.js';
|
|
5
|
+
import { a as StorageBackend } from '../types-CGMibJKD.js';
|
|
6
|
+
import { d as AttachmentConfig } from '../types-JCEhw2Lf.js';
|
|
7
7
|
import { PlatformAdapter } from '../platform/index.js';
|
|
8
|
-
import {
|
|
8
|
+
import { A as AbstractPowerSyncDatabase, a as SyncStatus, f as SyncError } from '../types-B9MptP7E.js';
|
|
9
|
+
import { P as PolAttachmentQueue } from '../pol-attachment-queue-DqBvLAEY.js';
|
|
9
10
|
import '@supabase/supabase-js';
|
|
10
|
-
import '@powersync/attachments';
|
|
11
11
|
import '@powersync/common';
|
|
12
|
+
import '@powersync/attachments';
|
|
12
13
|
|
|
13
14
|
/**
|
|
14
15
|
* Types for the slim PowerSyncProvider
|
|
@@ -66,9 +67,11 @@ interface PowerSyncConfig {
|
|
|
66
67
|
* auth={supabaseAuth}
|
|
67
68
|
* storage={supabaseStorage}
|
|
68
69
|
* attachments={{
|
|
69
|
-
*
|
|
70
|
-
*
|
|
71
|
-
*
|
|
70
|
+
* source: { type: 'supabase-bucket', bucket: 'photos' },
|
|
71
|
+
* watchPaths: (db, supabase, onUpdate) => {
|
|
72
|
+
* db.watch('SELECT storagePath FROM MediaContent', [], {
|
|
73
|
+
* onResult: (r) => onUpdate(r.rows._array.map(x => x.storagePath)),
|
|
74
|
+
* });
|
|
72
75
|
* },
|
|
73
76
|
* }}
|
|
74
77
|
* onError={(error) => console.error(error)}
|
|
@@ -109,7 +112,7 @@ interface PowerSyncProviderProps {
|
|
|
109
112
|
storage?: StorageBackend;
|
|
110
113
|
/**
|
|
111
114
|
* Attachment configuration.
|
|
112
|
-
*
|
|
115
|
+
* Filter in watchPaths callback - only emit paths you want to download.
|
|
113
116
|
*/
|
|
114
117
|
attachments?: AttachmentConfig;
|
|
115
118
|
/**
|
|
@@ -189,56 +192,6 @@ interface AttachmentQueueContextValue {
|
|
|
189
192
|
isReady: boolean;
|
|
190
193
|
}
|
|
191
194
|
|
|
192
|
-
/**
|
|
193
|
-
* Slim PowerSyncProvider for @pol-studios/powersync
|
|
194
|
-
*
|
|
195
|
-
* A simplified, composable provider that:
|
|
196
|
-
* - Has zero @pol/db coupling
|
|
197
|
-
* - Uses AuthProvider interface for any auth backend
|
|
198
|
-
* - Delegates domain logic to callbacks
|
|
199
|
-
* - Is ~150 lines vs 1400+ in the legacy provider
|
|
200
|
-
*
|
|
201
|
-
* For backwards compatibility, the legacy OfflineDataProvider is still available.
|
|
202
|
-
*/
|
|
203
|
-
|
|
204
|
-
/**
|
|
205
|
-
* Slim PowerSyncProvider - minimal, composable, no domain coupling.
|
|
206
|
-
*
|
|
207
|
-
* This provider handles:
|
|
208
|
-
* - Database initialization via platform adapter
|
|
209
|
-
* - Connector setup using AuthProvider
|
|
210
|
-
* - Attachment queue initialization (if configured)
|
|
211
|
-
* - Sync status tracking
|
|
212
|
-
* - Error classification and callbacks
|
|
213
|
-
*
|
|
214
|
-
* @example
|
|
215
|
-
* ```tsx
|
|
216
|
-
* import { PowerSyncProvider, createSupabaseAuth, createSupabaseStorage } from '@pol-studios/powersync/react';
|
|
217
|
-
*
|
|
218
|
-
* function App() {
|
|
219
|
-
* const auth = useMemo(() => createSupabaseAuth(supabase), [supabase]);
|
|
220
|
-
* const storage = useMemo(() => createSupabaseStorage({
|
|
221
|
-
* client: supabase,
|
|
222
|
-
* defaultBucket: 'attachments',
|
|
223
|
-
* }), [supabase]);
|
|
224
|
-
*
|
|
225
|
-
* return (
|
|
226
|
-
* <PowerSyncProvider
|
|
227
|
-
* config={{ schema: AppSchema, powerSyncUrl: URL, dbFilename: 'app.db' }}
|
|
228
|
-
* auth={auth}
|
|
229
|
-
* storage={storage}
|
|
230
|
-
* attachments={{ watch: { table: 'Media', idColumn: 'storagePath' } }}
|
|
231
|
-
* onError={(error) => showToast(error.userMessage)}
|
|
232
|
-
* onReady={() => console.log('Ready!')}
|
|
233
|
-
* >
|
|
234
|
-
* <MyApp />
|
|
235
|
-
* </PowerSyncProvider>
|
|
236
|
-
* );
|
|
237
|
-
* }
|
|
238
|
-
* ```
|
|
239
|
-
*/
|
|
240
|
-
declare function SlimPowerSyncProvider({ config, auth, storage, attachments, platform: customPlatform, onError, onReady, onSyncStatusChange, children, }: PowerSyncProviderProps): react__default.ReactElement;
|
|
241
|
-
|
|
242
195
|
/**
|
|
243
196
|
* Main context for PowerSync database instance and initialization state.
|
|
244
197
|
*
|
|
@@ -311,14 +264,12 @@ declare const AttachmentQueueContext: react.Context<AttachmentQueueContextValue>
|
|
|
311
264
|
/**
|
|
312
265
|
* React Module for @pol-studios/powersync
|
|
313
266
|
*
|
|
314
|
-
* This module exports
|
|
315
|
-
*
|
|
316
|
-
* from the main package export.
|
|
267
|
+
* This module exports hooks and contexts for the PowerSync React integration.
|
|
268
|
+
* Use OfflineDataProvider from the main package export for the provider.
|
|
317
269
|
*
|
|
318
270
|
* @example
|
|
319
271
|
* ```typescript
|
|
320
272
|
* import {
|
|
321
|
-
* PowerSyncProvider,
|
|
322
273
|
* usePowerSyncContext,
|
|
323
274
|
* useSyncStatusContext,
|
|
324
275
|
* useAttachmentQueueContext,
|
|
@@ -369,4 +320,4 @@ declare function useSyncStatusContext(): SyncStatusContextValue;
|
|
|
369
320
|
*/
|
|
370
321
|
declare function useAttachmentQueueContext(): AttachmentQueueContextValue;
|
|
371
322
|
|
|
372
|
-
export { AttachmentQueueContext, type AttachmentQueueContextValue, type PowerSyncConfig, PowerSyncContext, type PowerSyncContextValue,
|
|
323
|
+
export { AttachmentQueueContext, type AttachmentQueueContextValue, type PowerSyncConfig, PowerSyncContext, type PowerSyncContextValue, type PowerSyncProviderProps, SyncStatusContext, type SyncStatusContextValue, useAttachmentQueueContext, usePowerSyncContext, useSyncStatusContext };
|
package/dist/react/index.js
CHANGED
|
@@ -1,22 +1,15 @@
|
|
|
1
1
|
import {
|
|
2
2
|
AttachmentQueueContext,
|
|
3
3
|
PowerSyncContext,
|
|
4
|
-
SlimPowerSyncProvider,
|
|
5
4
|
SyncStatusContext,
|
|
6
5
|
useAttachmentQueueContext,
|
|
7
6
|
usePowerSyncContext,
|
|
8
7
|
useSyncStatusContext
|
|
9
|
-
} from "../chunk-
|
|
10
|
-
import "../chunk-
|
|
11
|
-
import "../chunk-FNYQFILT.js";
|
|
12
|
-
import "../chunk-FV2HXEIY.js";
|
|
13
|
-
import "../chunk-BC2SRII2.js";
|
|
14
|
-
import "../chunk-I2AYMY5O.js";
|
|
8
|
+
} from "../chunk-RIDSPLE5.js";
|
|
9
|
+
import "../chunk-5WRI5ZAA.js";
|
|
15
10
|
export {
|
|
16
11
|
AttachmentQueueContext,
|
|
17
12
|
PowerSyncContext,
|
|
18
|
-
SlimPowerSyncProvider as PowerSyncProvider,
|
|
19
|
-
SlimPowerSyncProvider,
|
|
20
13
|
SyncStatusContext,
|
|
21
14
|
useAttachmentQueueContext,
|
|
22
15
|
usePowerSyncContext,
|
package/dist/storage/index.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
export { D as DownloadResult, a as StorageBackend, b as StorageUploadOptions, d as SupabaseClient, S as SupabaseStorage, c as SupabaseStorageOptions, e as SupabaseTransformOptions, U as UploadProgress, r as resolveBucket } from '../types-
|
|
2
|
-
export { f as CacheSettings, C as CacheSettingsManager, h as CacheSettingsManagerOptions, D as DEFAULT_CACHE_SETTINGS, I as ImageTransformOptions, S as SupabaseStorageAdapter, e as SupabaseStorageAdapterOptions, c as createSupabaseStorage, d as createSupabaseStorageAdapter, g as getStorageErrorMessage, a as isBlobResult, i as isFileResult, b as isStorageAuthError, n as normalizeStoragePath } from '../CacheSettingsManager-
|
|
3
|
-
export { D as DEFAULT_UPLOAD_NOTIFICATION, S as SupabaseUploadHandlerOptions, U as UploadEventHandlers, a as UploadNotificationConfig } from '../types-
|
|
1
|
+
export { D as DownloadResult, a as StorageBackend, b as StorageUploadOptions, d as SupabaseClient, S as SupabaseStorage, c as SupabaseStorageOptions, e as SupabaseTransformOptions, U as UploadProgress, r as resolveBucket } from '../types-CGMibJKD.js';
|
|
2
|
+
export { f as CacheSettings, C as CacheSettingsManager, h as CacheSettingsManagerOptions, D as DEFAULT_CACHE_SETTINGS, I as ImageTransformOptions, S as SupabaseStorageAdapter, e as SupabaseStorageAdapterOptions, c as createSupabaseStorage, d as createSupabaseStorageAdapter, g as getStorageErrorMessage, a as isBlobResult, i as isFileResult, b as isStorageAuthError, n as normalizeStoragePath } from '../CacheSettingsManager-0H_7thHW.js';
|
|
3
|
+
export { D as DEFAULT_UPLOAD_NOTIFICATION, S as SupabaseUploadHandlerOptions, U as UploadEventHandlers, a as UploadNotificationConfig } from '../types-6QHGELuY.js';
|
|
4
4
|
export { SupabaseUploadHandler, createSupabaseUploadHandler } from './upload/index.js';
|
|
5
5
|
import '../platform/index.js';
|
|
6
|
-
import '../types-
|
|
6
|
+
import '../types-B9MptP7E.js';
|
|
7
|
+
import '@supabase/supabase-js';
|
package/dist/storage/index.js
CHANGED
|
@@ -1,28 +1,31 @@
|
|
|
1
1
|
import "../chunk-T4AO7JIG.js";
|
|
2
|
+
import "../chunk-TGBT5XBE.js";
|
|
3
|
+
import {
|
|
4
|
+
SupabaseUploadHandler,
|
|
5
|
+
createSupabaseUploadHandler
|
|
6
|
+
} from "../chunk-4665ZSE5.js";
|
|
2
7
|
import {
|
|
3
8
|
CacheSettingsManager,
|
|
4
9
|
DEFAULT_CACHE_SETTINGS,
|
|
5
10
|
createSupabaseStorage,
|
|
6
11
|
isBlobResult,
|
|
7
12
|
isFileResult
|
|
8
|
-
} from "../chunk-
|
|
13
|
+
} from "../chunk-4F5B5CZ7.js";
|
|
14
|
+
import {
|
|
15
|
+
DEFAULT_UPLOAD_NOTIFICATION
|
|
16
|
+
} from "../chunk-ZAN22NGL.js";
|
|
9
17
|
import {
|
|
10
18
|
SupabaseStorageAdapter,
|
|
11
19
|
createSupabaseStorageAdapter,
|
|
12
20
|
getStorageErrorMessage,
|
|
13
21
|
isStorageAuthError,
|
|
14
22
|
normalizeStoragePath
|
|
15
|
-
} from "../chunk-
|
|
16
|
-
import "../chunk-TGBT5XBE.js";
|
|
23
|
+
} from "../chunk-NUGQOTEM.js";
|
|
17
24
|
import {
|
|
18
|
-
SupabaseUploadHandler,
|
|
19
|
-
createSupabaseUploadHandler
|
|
20
|
-
} from "../chunk-P4HZA6ZT.js";
|
|
21
|
-
import {
|
|
22
|
-
DEFAULT_UPLOAD_NOTIFICATION,
|
|
23
25
|
resolveBucket
|
|
24
|
-
} from "../chunk-
|
|
26
|
+
} from "../chunk-UOMHWUHV.js";
|
|
25
27
|
import "../chunk-FV2HXEIY.js";
|
|
28
|
+
import "../chunk-5WRI5ZAA.js";
|
|
26
29
|
export {
|
|
27
30
|
CacheSettingsManager,
|
|
28
31
|
DEFAULT_CACHE_SETTINGS,
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
export { D as DownloadResult, a as StorageBackend, b as StorageUploadOptions, d as SupabaseClient, S as SupabaseStorage, c as SupabaseStorageOptions, U as UploadProgress, r as resolveBucket } from '../types-
|
|
2
|
-
export { f as CacheSettings, C as CacheSettingsManager, h as CacheSettingsManagerOptions, D as DEFAULT_CACHE_SETTINGS, S as SupabaseStorageAdapter, c as createSupabaseStorage, d as createSupabaseStorageAdapter, g as getStorageErrorMessage, a as isBlobResult, i as isFileResult, b as isStorageAuthError, n as normalizeStoragePath } from '../CacheSettingsManager-
|
|
3
|
-
export { D as DEFAULT_UPLOAD_NOTIFICATION, S as SupabaseUploadHandlerOptions, U as UploadEventHandlers, a as UploadNotificationConfig } from '../types-
|
|
1
|
+
export { D as DownloadResult, a as StorageBackend, b as StorageUploadOptions, d as SupabaseClient, S as SupabaseStorage, c as SupabaseStorageOptions, U as UploadProgress, r as resolveBucket } from '../types-CGMibJKD.js';
|
|
2
|
+
export { f as CacheSettings, C as CacheSettingsManager, h as CacheSettingsManagerOptions, D as DEFAULT_CACHE_SETTINGS, S as SupabaseStorageAdapter, c as createSupabaseStorage, d as createSupabaseStorageAdapter, g as getStorageErrorMessage, a as isBlobResult, i as isFileResult, b as isStorageAuthError, n as normalizeStoragePath } from '../CacheSettingsManager-0H_7thHW.js';
|
|
3
|
+
export { D as DEFAULT_UPLOAD_NOTIFICATION, S as SupabaseUploadHandlerOptions, U as UploadEventHandlers, a as UploadNotificationConfig } from '../types-6QHGELuY.js';
|
|
4
4
|
export { SupabaseUploadHandler, createSupabaseUploadHandler } from './upload/index.native.js';
|
|
5
5
|
import '../platform/index.js';
|
|
6
|
-
import '../types-
|
|
6
|
+
import '../types-B9MptP7E.js';
|
|
7
|
+
import '@supabase/supabase-js';
|
|
@@ -1,26 +1,29 @@
|
|
|
1
1
|
import {
|
|
2
2
|
SupabaseUploadHandler,
|
|
3
3
|
createSupabaseUploadHandler
|
|
4
|
-
} from "../chunk-
|
|
4
|
+
} from "../chunk-C4J4MLER.js";
|
|
5
5
|
import {
|
|
6
6
|
CacheSettingsManager,
|
|
7
7
|
DEFAULT_CACHE_SETTINGS,
|
|
8
8
|
createSupabaseStorage,
|
|
9
9
|
isBlobResult,
|
|
10
10
|
isFileResult
|
|
11
|
-
} from "../chunk-
|
|
11
|
+
} from "../chunk-4F5B5CZ7.js";
|
|
12
|
+
import {
|
|
13
|
+
DEFAULT_UPLOAD_NOTIFICATION
|
|
14
|
+
} from "../chunk-ZAN22NGL.js";
|
|
12
15
|
import {
|
|
13
16
|
SupabaseStorageAdapter,
|
|
14
17
|
createSupabaseStorageAdapter,
|
|
15
18
|
getStorageErrorMessage,
|
|
16
19
|
isStorageAuthError,
|
|
17
20
|
normalizeStoragePath
|
|
18
|
-
} from "../chunk-
|
|
21
|
+
} from "../chunk-NUGQOTEM.js";
|
|
19
22
|
import {
|
|
20
|
-
DEFAULT_UPLOAD_NOTIFICATION,
|
|
21
23
|
resolveBucket
|
|
22
|
-
} from "../chunk-
|
|
24
|
+
} from "../chunk-UOMHWUHV.js";
|
|
23
25
|
import "../chunk-FV2HXEIY.js";
|
|
26
|
+
import "../chunk-5WRI5ZAA.js";
|
|
24
27
|
export {
|
|
25
28
|
CacheSettingsManager,
|
|
26
29
|
DEFAULT_CACHE_SETTINGS,
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
export { D as DownloadResult, a as StorageBackend, b as StorageUploadOptions, d as SupabaseClient, S as SupabaseStorage, c as SupabaseStorageOptions, U as UploadProgress, r as resolveBucket } from '../types-
|
|
2
|
-
export { f as CacheSettings, C as CacheSettingsManager, h as CacheSettingsManagerOptions, D as DEFAULT_CACHE_SETTINGS, S as SupabaseStorageAdapter, c as createSupabaseStorage, d as createSupabaseStorageAdapter, g as getStorageErrorMessage, a as isBlobResult, i as isFileResult, b as isStorageAuthError, n as normalizeStoragePath } from '../CacheSettingsManager-
|
|
3
|
-
export { D as DEFAULT_UPLOAD_NOTIFICATION, S as SupabaseUploadHandlerOptions, U as UploadEventHandlers, a as UploadNotificationConfig } from '../types-
|
|
1
|
+
export { D as DownloadResult, a as StorageBackend, b as StorageUploadOptions, d as SupabaseClient, S as SupabaseStorage, c as SupabaseStorageOptions, U as UploadProgress, r as resolveBucket } from '../types-CGMibJKD.js';
|
|
2
|
+
export { f as CacheSettings, C as CacheSettingsManager, h as CacheSettingsManagerOptions, D as DEFAULT_CACHE_SETTINGS, S as SupabaseStorageAdapter, c as createSupabaseStorage, d as createSupabaseStorageAdapter, g as getStorageErrorMessage, a as isBlobResult, i as isFileResult, b as isStorageAuthError, n as normalizeStoragePath } from '../CacheSettingsManager-0H_7thHW.js';
|
|
3
|
+
export { D as DEFAULT_UPLOAD_NOTIFICATION, S as SupabaseUploadHandlerOptions, U as UploadEventHandlers, a as UploadNotificationConfig } from '../types-6QHGELuY.js';
|
|
4
4
|
export { SupabaseUploadHandler, createSupabaseUploadHandler } from './upload/index.js';
|
|
5
5
|
import '../platform/index.js';
|
|
6
|
-
import '../types-
|
|
6
|
+
import '../types-B9MptP7E.js';
|
|
7
|
+
import '@supabase/supabase-js';
|
|
@@ -1,26 +1,29 @@
|
|
|
1
|
+
import {
|
|
2
|
+
SupabaseUploadHandler,
|
|
3
|
+
createSupabaseUploadHandler
|
|
4
|
+
} from "../chunk-4665ZSE5.js";
|
|
1
5
|
import {
|
|
2
6
|
CacheSettingsManager,
|
|
3
7
|
DEFAULT_CACHE_SETTINGS,
|
|
4
8
|
createSupabaseStorage,
|
|
5
9
|
isBlobResult,
|
|
6
10
|
isFileResult
|
|
7
|
-
} from "../chunk-
|
|
11
|
+
} from "../chunk-4F5B5CZ7.js";
|
|
12
|
+
import {
|
|
13
|
+
DEFAULT_UPLOAD_NOTIFICATION
|
|
14
|
+
} from "../chunk-ZAN22NGL.js";
|
|
8
15
|
import {
|
|
9
16
|
SupabaseStorageAdapter,
|
|
10
17
|
createSupabaseStorageAdapter,
|
|
11
18
|
getStorageErrorMessage,
|
|
12
19
|
isStorageAuthError,
|
|
13
20
|
normalizeStoragePath
|
|
14
|
-
} from "../chunk-
|
|
21
|
+
} from "../chunk-NUGQOTEM.js";
|
|
15
22
|
import {
|
|
16
|
-
SupabaseUploadHandler,
|
|
17
|
-
createSupabaseUploadHandler
|
|
18
|
-
} from "../chunk-P4HZA6ZT.js";
|
|
19
|
-
import {
|
|
20
|
-
DEFAULT_UPLOAD_NOTIFICATION,
|
|
21
23
|
resolveBucket
|
|
22
|
-
} from "../chunk-
|
|
24
|
+
} from "../chunk-UOMHWUHV.js";
|
|
23
25
|
import "../chunk-FV2HXEIY.js";
|
|
26
|
+
import "../chunk-5WRI5ZAA.js";
|
|
24
27
|
export {
|
|
25
28
|
CacheSettingsManager,
|
|
26
29
|
DEFAULT_CACHE_SETTINGS,
|