dexie-cloud-addon 4.4.6 → 4.4.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.
- package/dist/modern/DXCWebSocketStatus.d.ts +1 -1
- package/dist/modern/DexieCloudAPI.d.ts +1 -1
- package/dist/modern/authentication/AuthPersistedContext.d.ts +2 -2
- package/dist/modern/currentUserEmitter.d.ts +3 -3
- package/dist/modern/db/entities/Member.d.ts +3 -3
- package/dist/modern/db/entities/PersistedSyncState.d.ts +1 -1
- package/dist/modern/db/entities/Role.d.ts +3 -3
- package/dist/modern/default-ui/Dialog.d.ts +1 -1
- package/dist/modern/default-ui/index.d.ts +5 -5
- package/dist/modern/dexie-cloud-addon.js +636 -526
- package/dist/modern/dexie-cloud-addon.js.map +1 -1
- package/dist/modern/dexie-cloud-addon.min.js +1 -1
- package/dist/modern/dexie-cloud-addon.min.js.map +1 -1
- package/dist/modern/dexie-cloud-client.d.ts +1 -1
- package/dist/modern/helpers/BroadcastedAndLocalEvent.d.ts +2 -2
- package/dist/modern/helpers/getSyncableTables.d.ts +3 -3
- package/dist/modern/helpers/resolveText.d.ts +1 -1
- package/dist/modern/middleware-helpers/guardedTable.d.ts +1 -1
- package/dist/modern/service-worker.js +638 -528
- package/dist/modern/service-worker.js.map +1 -1
- package/dist/modern/service-worker.min.js +1 -1
- package/dist/modern/service-worker.min.js.map +1 -1
- package/dist/modern/sync/BlobDownloadTracker.d.ts +2 -2
- package/dist/modern/sync/extractRealm.d.ts +1 -1
- package/dist/modern/sync/getTablesToSyncify.d.ts +2 -2
- package/dist/modern/sync/isSyncNeeded.d.ts +1 -1
- package/dist/modern/sync/messageConsumerIsReady.d.ts +1 -1
- package/dist/modern/sync/modifyLocalObjectsWithNewUserId.d.ts +3 -3
- package/dist/modern/sync/numUnsyncedMutations.d.ts +1 -1
- package/dist/modern/sync/performGuardedJob.d.ts +1 -1
- package/dist/modern/sync/registerSyncEvent.d.ts +1 -1
- package/dist/modern/sync/triggerSync.d.ts +2 -2
- package/dist/modern/types/DXCUserInteraction.d.ts +2 -2
- package/dist/modern/types/SyncState.d.ts +2 -2
- package/dist/modern/types/TXExpandos.d.ts +1 -1
- package/dist/modern/updateSchemaFromOptions.d.ts +2 -2
- package/dist/modern/verifyConfig.d.ts +1 -1
- package/dist/modern/verifySchema.d.ts +1 -1
- package/dist/modern/yjs/YTable.d.ts +3 -3
- package/dist/modern/yjs/getUpdatesTable.d.ts +2 -2
- package/dist/modern/yjs/reopenDocSignal.d.ts +2 -2
- package/dist/umd/dexie-cloud-addon.js +644 -534
- package/dist/umd/dexie-cloud-addon.js.map +1 -1
- package/dist/umd/dexie-cloud-addon.min.js +1 -1
- package/dist/umd/dexie-cloud-addon.min.js.map +1 -1
- package/dist/umd/service-worker.js +646 -536
- package/dist/umd/service-worker.js.map +1 -1
- package/dist/umd/service-worker.min.js +1 -1
- package/dist/umd/service-worker.min.js.map +1 -1
- package/package.json +1 -1
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { EntityCommon } from
|
|
1
|
+
import { EntityCommon } from '../db/entities/EntityCommon';
|
|
2
2
|
export declare function extractRealm(obj: EntityCommon): string | undefined;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { DexieCloudDB } from
|
|
2
|
-
import { PersistedSyncState } from
|
|
1
|
+
import { DexieCloudDB } from '../db/DexieCloudDB';
|
|
2
|
+
import { PersistedSyncState } from '../db/entities/PersistedSyncState';
|
|
3
3
|
export declare function getTablesToSyncify(db: DexieCloudDB, syncState: PersistedSyncState | undefined): import("dexie").Table<import("../db/entities/EntityCommon").EntityCommon, any, import("../db/entities/EntityCommon").EntityCommon>[];
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { DexieCloudDB } from
|
|
1
|
+
import { DexieCloudDB } from '../db/DexieCloudDB';
|
|
2
2
|
export declare function isSyncNeeded(db: DexieCloudDB): Promise<boolean>;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { BehaviorSubject } from
|
|
1
|
+
import { BehaviorSubject } from 'rxjs';
|
|
2
2
|
export declare const messageConsumerIsReady: BehaviorSubject<boolean>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Table } from
|
|
2
|
-
import { EntityCommon } from
|
|
3
|
-
import { UserLogin } from
|
|
1
|
+
import { Table } from 'dexie';
|
|
2
|
+
import { EntityCommon } from '../db/entities/EntityCommon';
|
|
3
|
+
import { UserLogin } from '../db/entities/UserLogin';
|
|
4
4
|
export declare function modifyLocalObjectsWithNewUserId(syncifiedTables: Table<EntityCommon>[], currentUser: UserLogin, alreadySyncedRealms?: string[]): Promise<void>;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { DexieCloudDB } from
|
|
1
|
+
import { DexieCloudDB } from '../db/DexieCloudDB';
|
|
2
2
|
export declare function getNumUnsyncedMutationsObservable(db: DexieCloudDB): import("rxjs").Observable<number>;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { DexieCloudDB } from
|
|
1
|
+
import { DexieCloudDB } from '../db/DexieCloudDB';
|
|
2
2
|
export declare function performGuardedJob<T>(db: DexieCloudDB, jobName: string, job: () => Promise<T>): Promise<T>;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { DexieCloudDB } from '../db/DexieCloudDB';
|
|
2
|
-
export declare function registerSyncEvent(db: DexieCloudDB, purpose:
|
|
2
|
+
export declare function registerSyncEvent(db: DexieCloudDB, purpose: 'push' | 'pull'): Promise<void>;
|
|
3
3
|
export declare function registerPeriodicSyncEvent(db: DexieCloudDB): Promise<void>;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { DexieCloudDB } from
|
|
2
|
-
export declare function triggerSync(db: DexieCloudDB, purpose:
|
|
1
|
+
import { DexieCloudDB } from '../db/DexieCloudDB';
|
|
2
|
+
export declare function triggerSync(db: DexieCloudDB, purpose: 'push' | 'pull'): void;
|
|
@@ -22,7 +22,7 @@ export interface DXCOption {
|
|
|
22
22
|
/** Optional style hint for the UI (e.g., 'google', 'github', 'microsoft', 'apple', 'otp') */
|
|
23
23
|
styleHint?: string;
|
|
24
24
|
}
|
|
25
|
-
export interface DXCGenericUserInteraction<Type extends string =
|
|
25
|
+
export interface DXCGenericUserInteraction<Type extends string = 'generic', TFields extends {
|
|
26
26
|
[name: string]: DXCInputField;
|
|
27
27
|
} = any> {
|
|
28
28
|
type: Type;
|
|
@@ -68,7 +68,7 @@ export interface DXCEmailPrompt {
|
|
|
68
68
|
}
|
|
69
69
|
/** When the system needs to prompt for an OTP code.
|
|
70
70
|
*
|
|
71
|
-
*/
|
|
71
|
+
*/
|
|
72
72
|
export interface DXCOTPPrompt {
|
|
73
73
|
type: 'otp';
|
|
74
74
|
title: string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export type SyncStatePhase =
|
|
2
|
-
export type SyncStatus =
|
|
1
|
+
export type SyncStatePhase = 'initial' | 'not-in-sync' | 'pushing' | 'pulling' | 'in-sync' | 'error' | 'offline';
|
|
2
|
+
export type SyncStatus = 'not-started' | 'connecting' | 'connected' | 'disconnected' | 'error' | 'offline';
|
|
3
3
|
export interface SyncState {
|
|
4
4
|
status: SyncStatus;
|
|
5
5
|
phase: SyncStatePhase;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { DexieCloudSchema } from
|
|
2
|
-
import { DexieCloudOptions } from
|
|
1
|
+
import { DexieCloudSchema } from 'dexie-cloud-common';
|
|
2
|
+
import { DexieCloudOptions } from './DexieCloudOptions';
|
|
3
3
|
export declare function updateSchemaFromOptions(schema?: DexieCloudSchema | null, options?: DexieCloudOptions | null): void;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { DexieCloudOptions } from
|
|
1
|
+
import { DexieCloudOptions } from './DexieCloudOptions';
|
|
2
2
|
export declare function verifyConfig({ databaseUrl }?: DexieCloudOptions): void;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { DexieCloudDB } from
|
|
1
|
+
import { DexieCloudDB } from './db/DexieCloudDB';
|
|
2
2
|
export declare function verifySchema(db: DexieCloudDB): void;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { EntityTable } from
|
|
2
|
-
import type { YUpdateRow } from
|
|
3
|
-
export type YTable = EntityTable<YUpdateRow,
|
|
1
|
+
import { EntityTable } from 'dexie';
|
|
2
|
+
import type { YUpdateRow } from 'y-dexie';
|
|
3
|
+
export type YTable = EntityTable<YUpdateRow, 'i'>;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { DexieCloudDB } from
|
|
2
|
-
import { YTable } from
|
|
1
|
+
import { DexieCloudDB } from '../db/DexieCloudDB';
|
|
2
|
+
import { YTable } from './YTable';
|
|
3
3
|
export declare function getUpdatesTable(db: DexieCloudDB, table: string, ydocProp: string): YTable | undefined;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Subject } from
|
|
2
|
-
import type * as Y from
|
|
1
|
+
import { Subject } from 'rxjs';
|
|
2
|
+
import type * as Y from 'yjs';
|
|
3
3
|
/** A property (package-private) on Y.Doc that is used
|
|
4
4
|
* to signal that the server wants us to send a 'doc-open' message
|
|
5
5
|
* to the server for this document.
|