@rdlabo/ionic-angular-kit 22.0.0-8 → 22.0.0-beta.pr102.sha1c53fd4f57fa
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 +26 -20
- package/docs/offline-realtime.md +116 -1
- package/docs/optional-features.md +23 -4
- package/docs/storage-overlays.md +21 -10
- package/fesm2022/rdlabo-ionic-angular-kit-app-update.mjs +108 -16
- package/fesm2022/rdlabo-ionic-angular-kit-app-update.mjs.map +1 -1
- package/fesm2022/rdlabo-ionic-angular-kit-offline.mjs +496 -223
- package/fesm2022/rdlabo-ionic-angular-kit-offline.mjs.map +1 -1
- package/fesm2022/rdlabo-ionic-angular-kit.mjs +19 -0
- package/fesm2022/rdlabo-ionic-angular-kit.mjs.map +1 -1
- package/package.json +1 -1
- package/types/rdlabo-ionic-angular-kit-app-update.d.ts +30 -9
- package/types/rdlabo-ionic-angular-kit-offline.d.ts +63 -5
- package/types/rdlabo-ionic-angular-kit.d.ts +7 -0
package/package.json
CHANGED
|
@@ -1,32 +1,53 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
2
|
import { EnvironmentProviders } from '@angular/core';
|
|
3
3
|
|
|
4
|
-
/**
|
|
4
|
+
/** Asks whether a downloaded service-worker update should be applied now. `undefined` requests a later retry. */
|
|
5
|
+
type KitAppUpdatePrompt = () => Promise<boolean | undefined>;
|
|
6
|
+
/** Existing configuration for startup-blocking or background service-worker updates. */
|
|
5
7
|
interface KitAppUpdateOptions {
|
|
6
|
-
/** `blocking` preserves startup safety; `background` never delays bootstrap and reloads only before interaction. */
|
|
7
8
|
strategy?: 'blocking' | 'background';
|
|
8
9
|
}
|
|
9
|
-
/**
|
|
10
|
+
/** Uses a non-blocking update check and asks the user before reloading. */
|
|
11
|
+
interface KitConfirmAppUpdateOptions {
|
|
12
|
+
strategy: 'confirm';
|
|
13
|
+
/**
|
|
14
|
+
* Runs after the first render when a complete update is ready.
|
|
15
|
+
*
|
|
16
|
+
* Resolve `true` to reload, `false` when the user explicitly defers, or `undefined` when UI could not be presented and
|
|
17
|
+
* should be retried. The provider supplies an Angular injection context only for the callback's synchronous execution,
|
|
18
|
+
* so resolve injected dependencies before crossing an async boundary.
|
|
19
|
+
*/
|
|
20
|
+
promptForUpdate: KitAppUpdatePrompt;
|
|
21
|
+
}
|
|
22
|
+
/** Configuration accepted by {@link provideKitAppUpdate}. */
|
|
23
|
+
type KitAppUpdateProviderOptions = (KitAppUpdateOptions & {
|
|
24
|
+
promptForUpdate?: never;
|
|
25
|
+
}) | KitConfirmAppUpdateOptions;
|
|
26
|
+
/** Coordinates complete Angular service-worker updates using blocking, background, or user-confirmed application. */
|
|
10
27
|
declare class KitAppUpdateService {
|
|
11
28
|
#private;
|
|
12
29
|
/** Runs one startup update check and reloads directly into a downloaded version when one is available. */
|
|
13
30
|
initialize(): Promise<void>;
|
|
14
31
|
/** Starts an update check that never blocks bootstrap or reloads after the application becomes interactive. */
|
|
15
32
|
startBackground(): void;
|
|
33
|
+
/** Starts a non-blocking update check and asks after the first render before applying a ready update. */
|
|
34
|
+
startConfirm(promptForUpdate: KitAppUpdatePrompt): void;
|
|
16
35
|
/** Marks the first rendered application as interactive. Used by the provider's render hook. */
|
|
17
36
|
markInteractive(): void;
|
|
18
37
|
static ɵfac: i0.ɵɵFactoryDeclaration<KitAppUpdateService, never>;
|
|
19
38
|
static ɵprov: i0.ɵɵInjectableDeclaration<KitAppUpdateService>;
|
|
20
39
|
}
|
|
21
40
|
/**
|
|
22
|
-
* Provides
|
|
41
|
+
* Provides blocking, background, or user-confirmed adoption of complete Angular service-worker updates.
|
|
23
42
|
*
|
|
24
43
|
* @remarks
|
|
25
|
-
* The
|
|
26
|
-
*
|
|
27
|
-
*
|
|
44
|
+
* The default `blocking` strategy checks before bootstrap and times out rather than preventing offline startup. The
|
|
45
|
+
* existing `background` strategy never delays bootstrap and reloads only before the first render. The opt-in `confirm`
|
|
46
|
+
* strategy also checks in the background, but waits until after the first render and reloads only with user approval.
|
|
47
|
+
* API deployments must remain backward compatible while an updater is rolling out because already-running older code
|
|
48
|
+
* cannot gain this behavior retroactively.
|
|
28
49
|
*/
|
|
29
|
-
declare function provideKitAppUpdate(options?:
|
|
50
|
+
declare function provideKitAppUpdate(options?: KitAppUpdateProviderOptions): EnvironmentProviders;
|
|
30
51
|
|
|
31
52
|
export { KitAppUpdateService, provideKitAppUpdate };
|
|
32
|
-
export type { KitAppUpdateOptions };
|
|
53
|
+
export type { KitAppUpdateOptions, KitAppUpdatePrompt, KitAppUpdateProviderOptions, KitConfirmAppUpdateOptions };
|
|
@@ -1,3 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @rdlabo/ionic-angular-kit/offline is experimental.
|
|
3
|
+
*
|
|
4
|
+
* This entry point is not covered by the package's SemVer compatibility guarantee. Its public
|
|
5
|
+
* APIs, persistence schema, and synchronization behavior may change incompatibly in a minor or
|
|
6
|
+
* patch release before stabilization.
|
|
7
|
+
*
|
|
8
|
+
* @packageDocumentation
|
|
9
|
+
* @experimental
|
|
10
|
+
*/
|
|
1
11
|
import * as i0 from '@angular/core';
|
|
2
12
|
import { InjectionToken, Type, Provider, EnvironmentProviders } from '@angular/core';
|
|
3
13
|
import { RouterStateSnapshot } from '@angular/router';
|
|
@@ -497,11 +507,13 @@ interface OfflineRepository {
|
|
|
497
507
|
getCommands(scope: OfflineScope): Promise<OfflineCommand[]>;
|
|
498
508
|
getCommandsForUser?(userId: OfflinePrincipalId): Promise<OfflineCommand[]>;
|
|
499
509
|
putCommand(command: OfflineCommand): Promise<void>;
|
|
510
|
+
/** @deprecated Use {@link transactReplica} with `putCommands`. */
|
|
500
511
|
replaceCommand(command: OfflineCommand): Promise<void>;
|
|
512
|
+
/** @deprecated Use {@link transactReplica} with `removeCommandIds`. */
|
|
501
513
|
removeCommand(commandId: string): Promise<void>;
|
|
502
|
-
/**
|
|
514
|
+
/** @deprecated Use {@link transactReplica} with `putPullAttentions`. */
|
|
503
515
|
putPullAttention?(attention: OfflinePullAttention): Promise<void>;
|
|
504
|
-
/**
|
|
516
|
+
/** @deprecated Use {@link transactReplica} with `removePullAttentions`. */
|
|
505
517
|
removePullAttention?(scope: OfflineScope): Promise<void>;
|
|
506
518
|
clearUser(userId: OfflinePrincipalId): Promise<void>;
|
|
507
519
|
clearScope(scope: OfflineScope): Promise<void>;
|
|
@@ -545,9 +557,13 @@ declare class IonicOfflineRepository implements OfflineRepository {
|
|
|
545
557
|
getCommandsForUser(userId: OfflinePrincipalId): Promise<OfflineCommand[]>;
|
|
546
558
|
runReadSnapshot<T>(read: (reader: OfflineRepositoryReader) => Promise<T>): Promise<T>;
|
|
547
559
|
putCommand(command: OfflineCommand): Promise<void>;
|
|
560
|
+
/** @deprecated Use {@link transactReplica} with `putCommands`. */
|
|
548
561
|
replaceCommand(command: OfflineCommand): Promise<void>;
|
|
562
|
+
/** @deprecated Use {@link transactReplica} with `removeCommandIds`. */
|
|
549
563
|
removeCommand(commandId: string): Promise<void>;
|
|
564
|
+
/** @deprecated Use {@link transactReplica} with `putPullAttentions`. */
|
|
550
565
|
putPullAttention(attention: OfflinePullAttention): Promise<void>;
|
|
566
|
+
/** @deprecated Use {@link transactReplica} with `removePullAttentions`. */
|
|
551
567
|
removePullAttention(scope: OfflineScope): Promise<void>;
|
|
552
568
|
clearUser(userId: OfflinePrincipalId): Promise<void>;
|
|
553
569
|
clearScope(scope: OfflineScope): Promise<void>;
|
|
@@ -1138,6 +1154,7 @@ declare class OfflineCoordinatorService {
|
|
|
1138
1154
|
readonly isStorageReady: i0.Signal<boolean>;
|
|
1139
1155
|
readonly networkState: i0.Signal<_rdlabo_ionic_angular_kit_offline.OfflineNetworkState>;
|
|
1140
1156
|
readonly syncState: i0.Signal<_rdlabo_ionic_angular_kit_offline.OfflineSyncState>;
|
|
1157
|
+
readonly pendingCommands: i0.Signal<_rdlabo_ionic_angular_kit_offline.OfflineCommand[]>;
|
|
1141
1158
|
readonly pendingCount: i0.Signal<number>;
|
|
1142
1159
|
readonly conflicts: i0.Signal<_rdlabo_ionic_angular_kit_offline.OfflineCommand[]>;
|
|
1143
1160
|
/** Device-local control for accepting new durable Outbox mutations. */
|
|
@@ -1423,7 +1440,7 @@ declare function offlineReadEmission<T>(response: HttpResponse<unknown>, value:
|
|
|
1423
1440
|
/** Prevents an incomplete empty local collection from clearing usable UI state. */
|
|
1424
1441
|
declare function shouldCommitOfflineCollection<T>(emission: OfflineReadEmission<readonly T[]>): boolean;
|
|
1425
1442
|
/** Controls GET emission order between local replica and remote transport. */
|
|
1426
|
-
type OfflineReadStrategy = 'network-first' | 'local-first';
|
|
1443
|
+
type OfflineReadStrategy = 'network-first' | 'local-first' | 'fastest-first' | 'local-only';
|
|
1427
1444
|
/** Product read policy backed by a local replica fallback for transport failures. */
|
|
1428
1445
|
interface OfflineReadRequestPlan {
|
|
1429
1446
|
kind: 'read';
|
|
@@ -1437,8 +1454,15 @@ interface OfflineReadRequestPlan {
|
|
|
1437
1454
|
* projected local first on hit, then drains the buffered remote response.
|
|
1438
1455
|
* Callers must keep the HTTP observable subscribed through revalidation;
|
|
1439
1456
|
* `firstValueFrom` and `take(1)` cancel in-flight transport.
|
|
1457
|
+
* `fastest-first` emits whichever usable local or remote response settles
|
|
1458
|
+
* first. A winning local response is followed by remote revalidation; a
|
|
1459
|
+
* winning remote response cancels and suppresses the slower local read.
|
|
1460
|
+
* `local-only` never starts HTTP transport and emits only the projected local
|
|
1461
|
+
* response. Use it for provisional identities that cannot exist remotely.
|
|
1440
1462
|
*/
|
|
1441
1463
|
readStrategy?: OfflineReadStrategy;
|
|
1464
|
+
/** Serializes read-only response projection behind replica mutations. Do not enable when projection starts a replica mutation itself. */
|
|
1465
|
+
serializeResponseProjection?: boolean;
|
|
1442
1466
|
/**
|
|
1443
1467
|
* Persists and projects a remote response, or projects a local fallback.
|
|
1444
1468
|
*
|
|
@@ -1604,9 +1628,13 @@ declare class SqliteOfflineRepository implements OfflineRepository {
|
|
|
1604
1628
|
runReadSnapshot<T>(read: (reader: OfflineRepositoryReader) => Promise<T>): Promise<T>;
|
|
1605
1629
|
[OFFLINE_REPOSITORY_ATOMIC_MUTATION]<T>(operation: (repository: OfflineRepository) => Promise<T>): Promise<T>;
|
|
1606
1630
|
putCommand(command: OfflineCommand): Promise<void>;
|
|
1631
|
+
/** @deprecated Use {@link transactReplica} with `putCommands`. */
|
|
1607
1632
|
replaceCommand(command: OfflineCommand): Promise<void>;
|
|
1633
|
+
/** @deprecated Use {@link transactReplica} with `removeCommandIds`. */
|
|
1608
1634
|
removeCommand(commandId: string): Promise<void>;
|
|
1635
|
+
/** @deprecated Use {@link transactReplica} with `putPullAttentions`. */
|
|
1609
1636
|
putPullAttention(attention: OfflinePullAttention): Promise<void>;
|
|
1637
|
+
/** @deprecated Use {@link transactReplica} with `removePullAttentions`. */
|
|
1610
1638
|
removePullAttention(scope: OfflineScope): Promise<void>;
|
|
1611
1639
|
clearUser(userId: OfflinePrincipalId): Promise<void>;
|
|
1612
1640
|
clearScope(scope: OfflineScope): Promise<void>;
|
|
@@ -1655,6 +1683,7 @@ type ProvideReadCacheOfflineOptions = ProvideOfflineOptionsBase & OfflineKitEncr
|
|
|
1655
1683
|
commandExecutor?: never;
|
|
1656
1684
|
replicaPuller?: never;
|
|
1657
1685
|
};
|
|
1686
|
+
/** Configuration accepted by the experimental offline runtime providers. */
|
|
1658
1687
|
type ProvideOfflineOptions = ProvideSynchronizedOfflineOptions | ProvideReadCacheOfflineOptions;
|
|
1659
1688
|
/** Starts one route-scoped offline runtime after product-owned local recovery has completed. */
|
|
1660
1689
|
declare class OfflineRouteInitializerService {
|
|
@@ -1698,6 +1727,8 @@ declare function assertSupportedOfflineMode(platform: string, mode: 'synchronize
|
|
|
1698
1727
|
type OfflineSyncState = 'idle' | 'pending' | 'syncing' | 'attention';
|
|
1699
1728
|
/** Mutation appended atomically to the outbox; Kit rematerializes optimistic replica state. */
|
|
1700
1729
|
interface EnqueueOfflineCommand<T = unknown> {
|
|
1730
|
+
/** Stable caller-owned idempotency key; generated by Kit when omitted. */
|
|
1731
|
+
commandId?: string;
|
|
1701
1732
|
scopeId: string;
|
|
1702
1733
|
aggregateType: string;
|
|
1703
1734
|
identity: EnqueueOfflineCommandIdentity;
|
|
@@ -1725,10 +1756,22 @@ interface PreparedOfflineBatchOptions {
|
|
|
1725
1756
|
/** Product identity/scope lease asserted after all async preparation and immediately before the durable commit. */
|
|
1726
1757
|
assertCurrent?: () => void;
|
|
1727
1758
|
}
|
|
1759
|
+
/** Stable lookup retained by a caller while a generated command may be reconciled and removed. */
|
|
1760
|
+
interface OfflineGeneratedCommandLocator {
|
|
1761
|
+
readonly scopeId: string;
|
|
1762
|
+
readonly sourceKey: string;
|
|
1763
|
+
readonly localId: string;
|
|
1764
|
+
}
|
|
1728
1765
|
/** Raised before persistence when an outbox payload is not losslessly JSON serializable. */
|
|
1729
1766
|
declare class OfflinePayloadValidationError extends Error {
|
|
1730
1767
|
constructor(message?: string);
|
|
1731
1768
|
}
|
|
1769
|
+
/** A foreground durable-command send reached a terminal server-side state. */
|
|
1770
|
+
declare class OfflineImmediateCommandRejectedError extends Error {
|
|
1771
|
+
readonly state: 'blocked_auth' | 'rejected' | 'conflict';
|
|
1772
|
+
readonly code: string | null;
|
|
1773
|
+
constructor(state: 'blocked_auth' | 'rejected' | 'conflict', code: string | null);
|
|
1774
|
+
}
|
|
1732
1775
|
/** Raised before persistence when retaining another command would exceed the configured durable Outbox capacity. */
|
|
1733
1776
|
declare class OfflineOutboxCapacityError extends Error {
|
|
1734
1777
|
readonly reason: 'command_count' | 'serialized_bytes';
|
|
@@ -1828,6 +1871,21 @@ declare class OfflineSyncService {
|
|
|
1828
1871
|
retryNow(commandId: string): Promise<void>;
|
|
1829
1872
|
discardAllPending(): Promise<void>;
|
|
1830
1873
|
flush(): Promise<void>;
|
|
1874
|
+
/**
|
|
1875
|
+
* Sends one newly-created generated aggregate immediately after its durable
|
|
1876
|
+
* enqueue, without waiting for a pre-send pull.
|
|
1877
|
+
*
|
|
1878
|
+
* This fast path is deliberately narrow: the command must still be pending,
|
|
1879
|
+
* have no remote id or confirmed baseline, and be the first intent for its
|
|
1880
|
+
* aggregate. Existing aggregates continue through {@link flush}, where the
|
|
1881
|
+
* pre-pull conflict barrier remains mandatory. Authoritative pull
|
|
1882
|
+
* reconciliation is scheduled in the background after the local transport
|
|
1883
|
+
* acknowledgement has been committed.
|
|
1884
|
+
*
|
|
1885
|
+
* @returns The generated remote id when transport completed locally, or
|
|
1886
|
+
* `null` when transport is unavailable or did not produce a confirmed id.
|
|
1887
|
+
*/
|
|
1888
|
+
sendGeneratedCommandNow(commandId: string, locator: OfflineGeneratedCommandLocator): Promise<OfflineGeneratedRemoteId | null>;
|
|
1831
1889
|
static ɵfac: i0.ɵɵFactoryDeclaration<OfflineSyncService, never>;
|
|
1832
1890
|
static ɵprov: i0.ɵɵInjectableDeclaration<OfflineSyncService>;
|
|
1833
1891
|
}
|
|
@@ -1842,5 +1900,5 @@ declare class OfflineRequestFallbackService {
|
|
|
1842
1900
|
static ɵprov: i0.ɵɵInjectableDeclaration<OfflineRequestFallbackService>;
|
|
1843
1901
|
}
|
|
1844
1902
|
|
|
1845
|
-
export { COMMUNITY_SQLITE, DEFAULT_OFFLINE_COMMAND_HOOKS, IonicOfflineRepository, OFFLINE_AGGREGATE_INTENT_PROJECTOR, OFFLINE_BYPASS, OFFLINE_COMMAND_EXECUTOR, OFFLINE_COMMAND_HOOKS, OFFLINE_KIT_OPTIONS, OFFLINE_MUTATION_REQUEST_POLICIES, OFFLINE_REPLICA_PROJECTOR, OFFLINE_REPLICA_PULLER, OFFLINE_REPOSITORY, OFFLINE_REQUEST_POLICIES, OFFLINE_RESPONSE_COMPLETE_HEADER, OFFLINE_RESPONSE_HEADER, OFFLINE_RETRY_RANDOM, OFFLINE_SCHEMA_VERSION, OFFLINE_SYNC_CONTEXT, OfflineCommandInFlightError, OfflineCoordinatorService, OfflineMutationPersistenceDisabledError, OfflineMutationPersistencePendingError, OfflineMutationPersistenceRequiresOnlineError, OfflineMutationPersistenceService, OfflineMutationPolicyConflictError, OfflineMutationProtocolError, OfflineMutationRequestPolicyRegistry, OfflineNetworkService, OfflineOutboxCapacityError, OfflinePayloadValidationError, OfflineReplicaMutationCoordinator, OfflineReplicaPullService, OfflineReplicaSchemaMismatchError, OfflineRequestFallbackService, OfflineRequestPolicyRegistry, OfflineRouteInitializerService, OfflineSessionService, OfflineStorageUnavailableError, OfflineSyncService, SqliteOfflineRepository, assertOfflineLocalId, assertOfflineReplicaGeneratedRemoteId, assertOfflineReplicaNaturalKeyBaseline, assertSupportedOfflineMode, booleanColumn, canonicalOfflineCommandIdentity, canonicalOfflinePrincipalId, canonicalOfflineRemoteIdentity, canonicalOfflineReplicaIdentity, canonicalOfflineReplicaRowKey, commandFootprintKeys, commandIdentityFromReplicaIdentity, commandIdentityMatchesReplicaRow, createCommunitySqliteDriver, createOfflineAuthBridge, createRandomOfflineEncryptionKey, datetime, decodeOfflineReplicaValues, defineOfflineReplicaSchema, defineReplicaEntity, encodeOfflineReplicaValues, generatedId, ignored, integer, isOfflineAggregateIntentConflict, isOfflineFallbackError, isOfflineStorageUnavailableError, json, localOnly, migrateOfflineDatabaseEncryption, naturalKey, normalizeOfflineNaturalKey, normalizeOfflineReplicaPullPage, nullable, offlineAggregateIntentMutations, offlineCommandLookupIdentity, offlineCommandTargetFromReplicaRow, offlineCommandWithBaseRevision, offlineGeneratedReplicaIdentity, offlineInterceptor, offlineNaturalKeyFromValues, offlineNaturalReplicaIdentity, offlineReadEmission, offlineReadSource, offlineReplicaRemoteIdentity, offlineRetryDelayMs, offlineSessionManifestAllows, parseOfflineCommandIdentity, parseOfflineMutationEnvelope, parseOfflinePrincipalId, projectOfflineReplicaValues, provideOffline, provideOfflineMutationRequestPolicy, provideOfflineRequestPolicy, provideRouteScopedOffline, real, recoverOfflineLocalReset, replicaAddressFromIdentity, requestOfflineLocalReset, requirePositiveOfflineInteger, selectOfflineRepository, serializeOfflineCommandIdentity, sha256OfflineReplicaSchema, shouldCommitOfflineCollection, supportsSynchronizedOfflineRepository, text };
|
|
1846
|
-
export type { CommunitySqliteConnection, CommunitySqliteDatabase, CommunitySqliteDriver, CreateOfflineAuthBridgeOptions, EnqueueOfflineCommand, EnqueueOfflineCommandIdentity, EnqueueOfflineGeneratedIdentity, EnqueueOfflineNaturalIdentity, MigrateOfflineDatabaseEncryptionOptions, OfflineAggregateIntentConflict, OfflineAggregateIntentProjectInput, OfflineAggregateIntentProjectResult, OfflineAggregateIntentProjection, OfflineAggregateIntentProjector, OfflineAuthBridgeConfig, OfflineAuthExchangeContext, OfflineAuthExchangePhase, OfflineAuthResumeContext, OfflineCommand, OfflineCommandExecutor, OfflineCommandHooks, OfflineCommandIdentity, OfflineCommandResult, OfflineCommandState, OfflineCommandTarget, OfflineGeneratedRemoteId, OfflineKitEncryptionOptions, OfflineKitOptions, OfflineLocalResetMarkerStore, OfflineLocalResetReloadTarget, OfflineLocalResetSqliteConnection, OfflineLogoutAction, OfflineMutationEnvelope, OfflineMutationEnvelopeIdPolicy, OfflineMutationEnvelopeOptions, OfflineMutationEnvelopeValuesPolicy, OfflineMutationPersistenceAdapter, OfflineMutationPersistenceOptions, OfflineMutationRequestPlan, OfflineMutationRequestPolicy, OfflineNaturalKey, OfflineNaturalKeyValue, OfflineNetworkState, OfflineOutboxLimits, OfflinePrepareRemoteSessionOptions, OfflinePrincipalId, OfflinePullAttention, OfflinePullAttentionReason, OfflineReadEmission, OfflineReadRequestPlan, OfflineReadResponseSource, OfflineReadStrategy, OfflineRemoteIdentity, OfflineReplicaAddress, OfflineReplicaChange, OfflineReplicaChangeBase, OfflineReplicaChangeBatch, OfflineReplicaColumnDef, OfflineReplicaCursor, OfflineReplicaEntityDefinition, OfflineReplicaEntitySchema, OfflineReplicaEntityScope, OfflineReplicaFieldDescriptor, OfflineReplicaFieldPolicy, OfflineReplicaIdentity, OfflineReplicaIdentityDescriptor, OfflineReplicaIgnoredDef, OfflineReplicaLocalOnlyDef, OfflineReplicaMigration, OfflineReplicaMutation, OfflineReplicaNaturalKeyDef, OfflineReplicaProjector, OfflineReplicaPullPage, OfflineReplicaPullProjection, OfflineReplicaPullRequest, OfflineReplicaPuller, OfflineReplicaReconciliationTarget, OfflineReplicaRemoteIdDef, OfflineReplicaRemoteIdRelease, OfflineReplicaRemoteIdentity, OfflineReplicaRow, OfflineReplicaRowKey, OfflineReplicaSchemaBundle, OfflineReplicaSchemaDefinition, OfflineReplicaSqliteAffinity, OfflineReplicaStorageKind, OfflineReplicaSyncState, OfflineReplicaTransaction, OfflineReplicaVisibility, OfflineReplicaWebMigrationCallback, OfflineReplicaWebMigrationResult, OfflineReplicaWebMigrationRow, OfflineReplicaWireChange, OfflineReplicaWireIdentity, OfflineReplicaWirePullPage, OfflineRepository, OfflineRepositoryReader, OfflineRequestPlan, OfflineRequestPolicy, OfflineResponseSource, OfflineResumeRemoteSessionOptions, OfflineScope, OfflineSessionManifest, OfflineSessionTransitionLease, OfflineStorageState, OfflineStorageUnavailableReason, OfflineSyncContext, OfflineSyncSession, OfflineSyncState, OfflineWireProtocolFingerprint, PreparedOfflineBatchOptions, PreparedOfflineCommand, ProvideOfflineOptions, ProvideReadCacheOfflineOptions, ProvideSynchronizedOfflineOptions, RecoverOfflineLocalResetOptions, RequestOfflineLocalResetOptions };
|
|
1903
|
+
export { COMMUNITY_SQLITE, DEFAULT_OFFLINE_COMMAND_HOOKS, IonicOfflineRepository, OFFLINE_AGGREGATE_INTENT_PROJECTOR, OFFLINE_BYPASS, OFFLINE_COMMAND_EXECUTOR, OFFLINE_COMMAND_HOOKS, OFFLINE_KIT_OPTIONS, OFFLINE_MUTATION_REQUEST_POLICIES, OFFLINE_REPLICA_PROJECTOR, OFFLINE_REPLICA_PULLER, OFFLINE_REPOSITORY, OFFLINE_REQUEST_POLICIES, OFFLINE_RESPONSE_COMPLETE_HEADER, OFFLINE_RESPONSE_HEADER, OFFLINE_RETRY_RANDOM, OFFLINE_SCHEMA_VERSION, OFFLINE_SYNC_CONTEXT, OfflineCommandInFlightError, OfflineCoordinatorService, OfflineImmediateCommandRejectedError, OfflineMutationPersistenceDisabledError, OfflineMutationPersistencePendingError, OfflineMutationPersistenceRequiresOnlineError, OfflineMutationPersistenceService, OfflineMutationPolicyConflictError, OfflineMutationProtocolError, OfflineMutationRequestPolicyRegistry, OfflineNetworkService, OfflineOutboxCapacityError, OfflinePayloadValidationError, OfflineReplicaMutationCoordinator, OfflineReplicaPullService, OfflineReplicaSchemaMismatchError, OfflineRequestFallbackService, OfflineRequestPolicyRegistry, OfflineRouteInitializerService, OfflineSessionService, OfflineStorageUnavailableError, OfflineSyncService, SqliteOfflineRepository, assertOfflineLocalId, assertOfflineReplicaGeneratedRemoteId, assertOfflineReplicaNaturalKeyBaseline, assertSupportedOfflineMode, booleanColumn, canonicalOfflineCommandIdentity, canonicalOfflinePrincipalId, canonicalOfflineRemoteIdentity, canonicalOfflineReplicaIdentity, canonicalOfflineReplicaRowKey, commandFootprintKeys, commandIdentityFromReplicaIdentity, commandIdentityMatchesReplicaRow, createCommunitySqliteDriver, createOfflineAuthBridge, createRandomOfflineEncryptionKey, datetime, decodeOfflineReplicaValues, defineOfflineReplicaSchema, defineReplicaEntity, encodeOfflineReplicaValues, generatedId, ignored, integer, isOfflineAggregateIntentConflict, isOfflineFallbackError, isOfflineStorageUnavailableError, json, localOnly, migrateOfflineDatabaseEncryption, naturalKey, normalizeOfflineNaturalKey, normalizeOfflineReplicaPullPage, nullable, offlineAggregateIntentMutations, offlineCommandLookupIdentity, offlineCommandTargetFromReplicaRow, offlineCommandWithBaseRevision, offlineGeneratedReplicaIdentity, offlineInterceptor, offlineNaturalKeyFromValues, offlineNaturalReplicaIdentity, offlineReadEmission, offlineReadSource, offlineReplicaRemoteIdentity, offlineRetryDelayMs, offlineSessionManifestAllows, parseOfflineCommandIdentity, parseOfflineMutationEnvelope, parseOfflinePrincipalId, projectOfflineReplicaValues, provideOffline, provideOfflineMutationRequestPolicy, provideOfflineRequestPolicy, provideRouteScopedOffline, real, recoverOfflineLocalReset, replicaAddressFromIdentity, requestOfflineLocalReset, requirePositiveOfflineInteger, selectOfflineRepository, serializeOfflineCommandIdentity, sha256OfflineReplicaSchema, shouldCommitOfflineCollection, supportsSynchronizedOfflineRepository, text };
|
|
1904
|
+
export type { CommunitySqliteConnection, CommunitySqliteDatabase, CommunitySqliteDriver, CreateOfflineAuthBridgeOptions, EnqueueOfflineCommand, EnqueueOfflineCommandIdentity, EnqueueOfflineGeneratedIdentity, EnqueueOfflineNaturalIdentity, MigrateOfflineDatabaseEncryptionOptions, OfflineAggregateIntentConflict, OfflineAggregateIntentProjectInput, OfflineAggregateIntentProjectResult, OfflineAggregateIntentProjection, OfflineAggregateIntentProjector, OfflineAuthBridgeConfig, OfflineAuthExchangeContext, OfflineAuthExchangePhase, OfflineAuthResumeContext, OfflineCommand, OfflineCommandExecutor, OfflineCommandHooks, OfflineCommandIdentity, OfflineCommandResult, OfflineCommandState, OfflineCommandTarget, OfflineGeneratedCommandLocator, OfflineGeneratedRemoteId, OfflineKitEncryptionOptions, OfflineKitOptions, OfflineLocalResetMarkerStore, OfflineLocalResetReloadTarget, OfflineLocalResetSqliteConnection, OfflineLogoutAction, OfflineMutationEnvelope, OfflineMutationEnvelopeIdPolicy, OfflineMutationEnvelopeOptions, OfflineMutationEnvelopeValuesPolicy, OfflineMutationPersistenceAdapter, OfflineMutationPersistenceOptions, OfflineMutationRequestPlan, OfflineMutationRequestPolicy, OfflineNaturalKey, OfflineNaturalKeyValue, OfflineNetworkState, OfflineOutboxLimits, OfflinePrepareRemoteSessionOptions, OfflinePrincipalId, OfflinePullAttention, OfflinePullAttentionReason, OfflineReadEmission, OfflineReadRequestPlan, OfflineReadResponseSource, OfflineReadStrategy, OfflineRemoteIdentity, OfflineReplicaAddress, OfflineReplicaChange, OfflineReplicaChangeBase, OfflineReplicaChangeBatch, OfflineReplicaColumnDef, OfflineReplicaCursor, OfflineReplicaEntityDefinition, OfflineReplicaEntitySchema, OfflineReplicaEntityScope, OfflineReplicaFieldDescriptor, OfflineReplicaFieldPolicy, OfflineReplicaIdentity, OfflineReplicaIdentityDescriptor, OfflineReplicaIgnoredDef, OfflineReplicaLocalOnlyDef, OfflineReplicaMigration, OfflineReplicaMutation, OfflineReplicaNaturalKeyDef, OfflineReplicaProjector, OfflineReplicaPullPage, OfflineReplicaPullProjection, OfflineReplicaPullRequest, OfflineReplicaPuller, OfflineReplicaReconciliationTarget, OfflineReplicaRemoteIdDef, OfflineReplicaRemoteIdRelease, OfflineReplicaRemoteIdentity, OfflineReplicaRow, OfflineReplicaRowKey, OfflineReplicaSchemaBundle, OfflineReplicaSchemaDefinition, OfflineReplicaSqliteAffinity, OfflineReplicaStorageKind, OfflineReplicaSyncState, OfflineReplicaTransaction, OfflineReplicaVisibility, OfflineReplicaWebMigrationCallback, OfflineReplicaWebMigrationResult, OfflineReplicaWebMigrationRow, OfflineReplicaWireChange, OfflineReplicaWireIdentity, OfflineReplicaWirePullPage, OfflineRepository, OfflineRepositoryReader, OfflineRequestPlan, OfflineRequestPolicy, OfflineResponseSource, OfflineResumeRemoteSessionOptions, OfflineScope, OfflineSessionManifest, OfflineSessionTransitionLease, OfflineStorageState, OfflineStorageUnavailableReason, OfflineSyncContext, OfflineSyncSession, OfflineSyncState, OfflineWireProtocolFingerprint, PreparedOfflineBatchOptions, PreparedOfflineCommand, ProvideOfflineOptions, ProvideReadCacheOfflineOptions, ProvideSynchronizedOfflineOptions, RecoverOfflineLocalResetOptions, RequestOfflineLocalResetOptions };
|
|
@@ -468,6 +468,13 @@ declare class KitOverlayController {
|
|
|
468
468
|
* {@link alertConfirm} stacking guard).
|
|
469
469
|
*/
|
|
470
470
|
alertConfirm(options: KitAlertConfirmOptions): Promise<boolean>;
|
|
471
|
+
/**
|
|
472
|
+
* Try to present a confirmation alert without stacking it over another alert.
|
|
473
|
+
*
|
|
474
|
+
* @returns `true` for confirmation, `false` for explicit cancellation or backdrop dismissal, and `undefined` when
|
|
475
|
+
* another alert prevented this one from being presented.
|
|
476
|
+
*/
|
|
477
|
+
tryAlertConfirm(options: KitAlertConfirmOptions): Promise<boolean | undefined>;
|
|
471
478
|
static ɵfac: i0.ɵɵFactoryDeclaration<KitOverlayController, never>;
|
|
472
479
|
static ɵprov: i0.ɵɵInjectableDeclaration<KitOverlayController>;
|
|
473
480
|
}
|