@affectively/dash 5.1.0 → 5.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +21 -0
- package/dist/src/api/firebase/auth/index.d.ts +137 -0
- package/dist/src/api/firebase/auth/index.js +352 -0
- package/dist/src/api/firebase/auth/providers.d.ts +254 -0
- package/dist/src/api/firebase/auth/providers.js +518 -0
- package/dist/src/api/firebase/database/index.d.ts +104 -0
- package/dist/src/api/firebase/database/index.js +351 -0
- package/dist/src/api/firebase/errors.d.ts +15 -0
- package/dist/src/api/firebase/errors.js +215 -0
- package/dist/src/api/firebase/firestore/data-types.d.ts +116 -0
- package/dist/src/api/firebase/firestore/data-types.js +280 -0
- package/dist/src/api/firebase/firestore/index.d.ts +7 -0
- package/dist/src/api/firebase/firestore/index.js +13 -0
- package/dist/src/api/firebase/firestore/listeners.d.ts +20 -0
- package/dist/src/api/firebase/firestore/listeners.js +50 -0
- package/dist/src/api/firebase/firestore/operations.d.ts +123 -0
- package/dist/src/api/firebase/firestore/operations.js +490 -0
- package/dist/src/api/firebase/firestore/query.d.ts +118 -0
- package/dist/src/api/firebase/firestore/query.js +418 -0
- package/dist/src/api/firebase/index.d.ts +11 -0
- package/dist/src/api/firebase/index.js +16 -0
- package/dist/src/api/firebase/storage/index.d.ts +100 -0
- package/dist/src/api/firebase/storage/index.js +286 -0
- package/dist/src/api/firebase/types.d.ts +340 -0
- package/dist/src/api/firebase/types.js +4 -0
- package/dist/src/auth/manager.d.ts +5 -1
- package/dist/src/auth/manager.js +19 -6
- package/dist/src/index.d.ts +5 -0
- package/dist/src/index.js +10 -0
- package/dist/src/sync/aeon/offline-adapter.js +12 -8
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
package/dist/src/index.js
CHANGED
|
@@ -5,3 +5,13 @@ export { mcpServer } from './mcp/server.js';
|
|
|
5
5
|
export { YjsSqliteProvider } from './sync/provider.js';
|
|
6
6
|
export { backup, restore, generateKey, exportKey, importKey } from './sync/backup.js';
|
|
7
7
|
export { HybridProvider } from './sync/hybrid-provider.js';
|
|
8
|
+
// Firebase Compatibility API exports
|
|
9
|
+
export * as firebase from './api/firebase/index.js';
|
|
10
|
+
// Firestore
|
|
11
|
+
export { collection, doc, query, where, orderBy, limit, limitToLast, startAt, startAfter, endAt, endBefore, offset, serverTimestamp, deleteField, arrayUnion, arrayRemove, increment, getDoc, getDocs, setDoc, updateDoc, deleteDoc, writeBatch, runTransaction, onSnapshot, } from './api/firebase/index.js';
|
|
12
|
+
// Realtime Database
|
|
13
|
+
export { ref, child, set, update, remove, push, get, onDisconnect, onValue, onChildAdded, onChildChanged, onChildRemoved, onChildMoved, off, } from './api/firebase/index.js';
|
|
14
|
+
// Authentication
|
|
15
|
+
export { createUserWithEmailAndPassword, signInWithEmailAndPassword, signInAnonymously, signOut, getAuth, onAuthStateChanged, updateUserProfile, updateUserEmail, updateUserPassword, deleteUser, sendPasswordResetEmail, sendEmailVerification, GoogleAuthProvider, GithubAuthProvider, FacebookAuthProvider, TwitterAuthProvider, DiscordAuthProvider, TotpMultiFactorGenerator, PhoneMultiFactorGenerator, setPersistence, browserLocalPersistence, browserSessionPersistence, inMemoryPersistence, } from './api/firebase/index.js';
|
|
16
|
+
// Storage
|
|
17
|
+
export { ref as storageRef, refFromURL, child as storageChild, uploadBytes, uploadBytesResumable, uploadString, getBytes, getDownloadURL, getMetadata, updateMetadata, deleteObject, list as listFiles, listAll, } from './api/firebase/index.js';
|
|
@@ -34,14 +34,18 @@ export class DashOfflineAdapter {
|
|
|
34
34
|
*/
|
|
35
35
|
setupNetworkListeners() {
|
|
36
36
|
if (typeof window !== 'undefined') {
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
37
|
+
if (typeof navigator !== 'undefined' && typeof navigator.onLine === 'boolean') {
|
|
38
|
+
this.isOnline = navigator.onLine;
|
|
39
|
+
}
|
|
40
|
+
if (typeof window.addEventListener === 'function') {
|
|
41
|
+
window.addEventListener('online', () => {
|
|
42
|
+
this.isOnline = true;
|
|
43
|
+
this.processQueue();
|
|
44
|
+
});
|
|
45
|
+
window.addEventListener('offline', () => {
|
|
46
|
+
this.isOnline = false;
|
|
47
|
+
});
|
|
48
|
+
}
|
|
45
49
|
}
|
|
46
50
|
}
|
|
47
51
|
/**
|