@rdlabo/ionic-angular-kit 21.6.8 → 21.6.9
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/package.json
CHANGED
|
@@ -1290,6 +1290,10 @@ declare class OfflineNetworkService {
|
|
|
1290
1290
|
#private;
|
|
1291
1291
|
readonly state: i0.Signal<OfflineNetworkState>;
|
|
1292
1292
|
readonly connected: i0.Signal<boolean>;
|
|
1293
|
+
/** Whether Capacitor currently permits foreground transport work. */
|
|
1294
|
+
readonly appActive: i0.Signal<boolean>;
|
|
1295
|
+
/** Changes on every foreground/background transition, even when connectivity is unchanged. */
|
|
1296
|
+
readonly lifecycleRevision: i0.Signal<number>;
|
|
1293
1297
|
initialize(): Promise<void>;
|
|
1294
1298
|
markApiSuccess(): void;
|
|
1295
1299
|
markApiFailure(): void;
|
|
@@ -1436,13 +1440,20 @@ interface CommunitySqliteDatabase {
|
|
|
1436
1440
|
commitTransaction(): Promise<unknown>;
|
|
1437
1441
|
rollbackTransaction(): Promise<unknown>;
|
|
1438
1442
|
}
|
|
1439
|
-
/**
|
|
1443
|
+
/**
|
|
1444
|
+
* Community SQLite connection surface used to provision encrypted databases.
|
|
1445
|
+
*
|
|
1446
|
+
* One object must exclusively own a native plugin connection registry. Consumers must not create another
|
|
1447
|
+
* wrapper over the same native plugin or call `closeConnection` while its canonical driver is active.
|
|
1448
|
+
* Destructive reset belongs before application bootstrap in the next JavaScript lifecycle.
|
|
1449
|
+
*/
|
|
1440
1450
|
interface CommunitySqliteConnection {
|
|
1441
1451
|
isSecretStored(): Promise<{
|
|
1442
1452
|
result?: boolean;
|
|
1443
1453
|
}>;
|
|
1444
1454
|
setEncryptionSecret(passphrase: string): Promise<void>;
|
|
1445
1455
|
createConnection(database: string, encrypted: boolean, mode: string, version: number, readonly: boolean): Promise<CommunitySqliteDatabase>;
|
|
1456
|
+
closeConnection?(database: string, readonly: boolean): Promise<void>;
|
|
1446
1457
|
}
|
|
1447
1458
|
/** DI token for the native community SQLite driver. */
|
|
1448
1459
|
declare const COMMUNITY_SQLITE: InjectionToken<CommunitySqliteDriver | null>;
|
|
@@ -1453,7 +1464,15 @@ declare const COMMUNITY_SQLITE: InjectionToken<CommunitySqliteDriver | null>;
|
|
|
1453
1464
|
* `OfflineKitOptions.createEncryptionKey` and contains no device or user identifiers.
|
|
1454
1465
|
*/
|
|
1455
1466
|
declare function createRandomOfflineEncryptionKey(): Promise<string>;
|
|
1456
|
-
/**
|
|
1467
|
+
/**
|
|
1468
|
+
* Create the canonical encrypted `@capacitor-community/sqlite` driver for a connection owner.
|
|
1469
|
+
*
|
|
1470
|
+
* The supplied connection is the identity and exclusive owner of its native plugin connections. Repeated
|
|
1471
|
+
* calls with the same object return the same driver so normal concurrent access cannot be mistaken for a
|
|
1472
|
+
* WebView-reload orphan. Consumers must route database access through this driver and must not close or
|
|
1473
|
+
* replace the connection while the driver is active. A real WebView reload creates a new JavaScript owner,
|
|
1474
|
+
* allowing the driver to close the native connection orphaned by the previous owner and recreate it.
|
|
1475
|
+
*/
|
|
1457
1476
|
declare function createCommunitySqliteDriver(connection: CommunitySqliteConnection): CommunitySqliteDriver;
|
|
1458
1477
|
type SQLiteValue = string | number | null;
|
|
1459
1478
|
/** Native iOS/Android repository backed by encrypted `@capacitor-community/sqlite`. */
|