dexie-cloud-addon 4.4.6 → 4.4.8
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 +653 -531
- 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 +655 -533
- 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 +7 -4
- 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 +661 -539
- 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 +663 -541
- 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 +2 -2
|
@@ -1 +1 @@
|
|
|
1
|
-
export type DXCWebSocketStatus =
|
|
1
|
+
export type DXCWebSocketStatus = 'not-started' | 'connecting' | 'connected' | 'disconnected' | 'error';
|
|
@@ -6,7 +6,7 @@ import { SyncState } from './types/SyncState';
|
|
|
6
6
|
import { DXCUserInteraction } from './types/DXCUserInteraction';
|
|
7
7
|
import { DXCWebSocketStatus } from './DXCWebSocketStatus';
|
|
8
8
|
import { PermissionChecker } from './PermissionChecker';
|
|
9
|
-
import { DexieCloudSyncOptions } from
|
|
9
|
+
import { DexieCloudSyncOptions } from './DexieCloudSyncOptions';
|
|
10
10
|
import { Invite } from './Invite';
|
|
11
11
|
import { BehaviorSubject, Observable } from 'rxjs';
|
|
12
12
|
/** Progress state for blob downloads */
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { DexieCloudDB } from
|
|
2
|
-
import { UserLogin } from
|
|
1
|
+
import { DexieCloudDB } from '../db/DexieCloudDB';
|
|
2
|
+
import { UserLogin } from '../db/entities/UserLogin';
|
|
3
3
|
export interface AuthPersistedContext extends UserLogin {
|
|
4
4
|
save(): Promise<void>;
|
|
5
5
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import Dexie from
|
|
2
|
-
import { BehaviorSubject } from
|
|
3
|
-
import { UserLogin } from
|
|
1
|
+
import Dexie from 'dexie';
|
|
2
|
+
import { BehaviorSubject } from 'rxjs';
|
|
3
|
+
import { UserLogin } from './dexie-cloud-client';
|
|
4
4
|
export declare const getCurrentUserEmitter: (x: Dexie) => BehaviorSubject<UserLogin>;
|
|
@@ -10,10 +10,10 @@ export interface Member {
|
|
|
10
10
|
rejected?: Date;
|
|
11
11
|
roles?: string[];
|
|
12
12
|
permissions?: {
|
|
13
|
-
add?: string[] |
|
|
13
|
+
add?: string[] | '*';
|
|
14
14
|
update?: {
|
|
15
|
-
[tableName: string]: string[] |
|
|
15
|
+
[tableName: string]: string[] | '*';
|
|
16
16
|
};
|
|
17
|
-
manage?: string[] |
|
|
17
|
+
manage?: string[] | '*';
|
|
18
18
|
};
|
|
19
19
|
}
|
|
@@ -2,10 +2,10 @@ export interface Role {
|
|
|
2
2
|
realmId: string;
|
|
3
3
|
name: string;
|
|
4
4
|
permissions: {
|
|
5
|
-
add?: string[] |
|
|
5
|
+
add?: string[] | '*';
|
|
6
6
|
update?: {
|
|
7
|
-
[tableName: string]: string[] |
|
|
7
|
+
[tableName: string]: string[] | '*';
|
|
8
8
|
};
|
|
9
|
-
manage?: string[] |
|
|
9
|
+
manage?: string[] | '*';
|
|
10
10
|
};
|
|
11
11
|
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import Dexie from
|
|
2
|
-
import
|
|
3
|
-
import { h, Component } from
|
|
4
|
-
import { Subscription } from
|
|
5
|
-
import { DXCUserInteraction } from
|
|
1
|
+
import Dexie from 'dexie';
|
|
2
|
+
import '../extend-dexie-interface';
|
|
3
|
+
import { h, Component } from 'preact';
|
|
4
|
+
import { Subscription } from 'rxjs';
|
|
5
|
+
import { DXCUserInteraction } from '../types/DXCUserInteraction';
|
|
6
6
|
export interface Props {
|
|
7
7
|
db: Dexie;
|
|
8
8
|
}
|