@absolutejs/absolute 0.20.0-beta.7 → 0.20.0-beta.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.
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// @bun
|
|
2
2
|
var __require = import.meta.require;
|
|
3
3
|
|
|
4
|
-
// .angular-partial-tmp-
|
|
4
|
+
// .angular-partial-tmp-lF9auc/src/core/streamingSlotRegistrar.ts
|
|
5
5
|
var STREAMING_SLOT_REGISTRAR_KEY = Symbol.for("absolutejs.streamingSlotRegistrar");
|
|
6
6
|
var STREAMING_SLOT_WARNING_STORAGE_KEY = Symbol.for("absolutejs.streamingSlotWarningController");
|
|
7
7
|
var STREAMING_SLOT_COLLECTION_STORAGE_KEY = Symbol.for("absolutejs.streamingSlotCollectionController");
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// @bun
|
|
2
2
|
var __require = import.meta.require;
|
|
3
3
|
|
|
4
|
-
// .angular-partial-tmp-
|
|
4
|
+
// .angular-partial-tmp-lF9auc/src/core/streamingSlotRegistrar.ts
|
|
5
5
|
var STREAMING_SLOT_REGISTRAR_KEY = Symbol.for("absolutejs.streamingSlotRegistrar");
|
|
6
6
|
var STREAMING_SLOT_WARNING_STORAGE_KEY = Symbol.for("absolutejs.streamingSlotWarningController");
|
|
7
7
|
var STREAMING_SLOT_COLLECTION_STORAGE_KEY = Symbol.for("absolutejs.streamingSlotCollectionController");
|
|
@@ -48,7 +48,7 @@ var warnMissingStreamingSlotCollector = (primitiveName) => {
|
|
|
48
48
|
getWarningController()?.maybeWarn(primitiveName);
|
|
49
49
|
};
|
|
50
50
|
|
|
51
|
-
// .angular-partial-tmp-
|
|
51
|
+
// .angular-partial-tmp-lF9auc/src/core/streamingSlotRegistry.ts
|
|
52
52
|
var STREAMING_SLOT_STORAGE_KEY = Symbol.for("absolutejs.streamingSlotAsyncLocalStorage");
|
|
53
53
|
var isObjectRecord2 = (value) => Boolean(value) && typeof value === "object";
|
|
54
54
|
var isAsyncLocalStorage = (value) => isObjectRecord2(value) && ("getStore" in value) && typeof value.getStore === "function" && ("run" in value) && typeof value.run === "function";
|
package/dist/cli/index.js
CHANGED
|
@@ -17921,7 +17921,7 @@ var init_mobile = __esm(() => {
|
|
|
17921
17921
|
"@absolutejs/devices-capacitor@0.1.2"
|
|
17922
17922
|
];
|
|
17923
17923
|
CAPACITOR_SYNC_PACKAGE_SPECS = [
|
|
17924
|
-
"@absolutejs/sync-capacitor@0.
|
|
17924
|
+
"@absolutejs/sync-capacitor@0.2.0",
|
|
17925
17925
|
"@capacitor-community/sqlite@8.1.1"
|
|
17926
17926
|
];
|
|
17927
17927
|
});
|
package/dist/mobile/shellSync.js
CHANGED
|
@@ -6,15 +6,19 @@ import {
|
|
|
6
6
|
} from "@absolutejs/sync-capacitor";
|
|
7
7
|
import { installSyncClientRuntimeTransport } from "@absolutejs/sync/client/runtime";
|
|
8
8
|
var reloadShell = () => globalThis.location.reload();
|
|
9
|
+
var ABSOLUTE_MOBILE_SYNC_STATUS_EVENT = "absolute:sync-status";
|
|
10
|
+
var reportShellStatus = (status) => globalThis.dispatchEvent(new CustomEvent(ABSOLUTE_MOBILE_SYNC_STATUS_EVENT, { detail: status }));
|
|
9
11
|
var installAbsoluteMobileShellSync = (auth, options = {}) => {
|
|
10
12
|
const namespace = auth.principal?.namespace;
|
|
11
13
|
const store = namespace ? options.createStore?.() ?? createCapacitorSyncLocalStore() : undefined;
|
|
12
14
|
const installLifecycle = options.installLifecycle ?? installCapacitorSyncLifecycle;
|
|
15
|
+
const reportStatus = options.reportStatus ?? reportShellStatus;
|
|
13
16
|
const removeTransport = installSyncClientRuntimeTransport({
|
|
14
17
|
...namespace && store ? { durable: { namespace, store } } : {},
|
|
15
18
|
socketTicket: auth.socketTicket,
|
|
16
19
|
registerClient: (client) => {
|
|
17
20
|
let active2 = true;
|
|
21
|
+
const removeStatus = client.subscribeStatus(reportStatus);
|
|
18
22
|
const reportLifecycleFailure = (error) => console.error("[Absolute Mobile] Sync lifecycle installation failed:", error);
|
|
19
23
|
const removal = installLifecycle({
|
|
20
24
|
client,
|
|
@@ -28,6 +32,7 @@ var installAbsoluteMobileShellSync = (auth, options = {}) => {
|
|
|
28
32
|
if (!active2)
|
|
29
33
|
return;
|
|
30
34
|
active2 = false;
|
|
35
|
+
removeStatus();
|
|
31
36
|
removal.then((remove) => remove?.());
|
|
32
37
|
};
|
|
33
38
|
}
|
|
@@ -47,5 +52,6 @@ var installAbsoluteMobileShellSync = (auth, options = {}) => {
|
|
|
47
52
|
};
|
|
48
53
|
};
|
|
49
54
|
export {
|
|
50
|
-
installAbsoluteMobileShellSync
|
|
55
|
+
installAbsoluteMobileShellSync,
|
|
56
|
+
ABSOLUTE_MOBILE_SYNC_STATUS_EVENT
|
|
51
57
|
};
|
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
import { type CapacitorSyncLifecycleOptions } from '@absolutejs/sync-capacitor';
|
|
2
|
-
import type { SyncLocalStore } from '@absolutejs/sync/client';
|
|
2
|
+
import type { SyncClientStatus, SyncLocalStore } from '@absolutejs/sync/client';
|
|
3
3
|
import type { AbsoluteMobileShellAuthRuntime } from './shellBootstrap';
|
|
4
4
|
export type AbsoluteMobileShellSyncOptions = {
|
|
5
5
|
createStore?: () => SyncLocalStore;
|
|
6
6
|
installLifecycle?: (options: CapacitorSyncLifecycleOptions) => Promise<() => void>;
|
|
7
7
|
reload?: () => void;
|
|
8
|
+
reportStatus?: (status: SyncClientStatus) => void;
|
|
8
9
|
};
|
|
10
|
+
export declare const ABSOLUTE_MOBILE_SYNC_STATUS_EVENT = "absolute:sync-status";
|
|
9
11
|
/**
|
|
10
12
|
* Provisions unchanged Sync clients with native durability, Auth isolation, and
|
|
11
13
|
* foreground/connectivity reconnects. An identity change reloads the shell so
|
package/package.json
CHANGED
|
@@ -25,8 +25,8 @@
|
|
|
25
25
|
"devDependencies": {
|
|
26
26
|
"@absolutejs/manifest": "0.9.0",
|
|
27
27
|
"@absolutejs/scoped-state": "0.2.2",
|
|
28
|
-
"@absolutejs/sync": "2.
|
|
29
|
-
"@absolutejs/sync-capacitor": "0.
|
|
28
|
+
"@absolutejs/sync": "2.22.2",
|
|
29
|
+
"@absolutejs/sync-capacitor": "0.2.0",
|
|
30
30
|
"@angular/animations": "21.2.6",
|
|
31
31
|
"@angular/cdk": "21.2.6",
|
|
32
32
|
"@angular/common": "21.2.6",
|
|
@@ -274,12 +274,12 @@
|
|
|
274
274
|
"main": "./dist/index.js",
|
|
275
275
|
"name": "@absolutejs/absolute",
|
|
276
276
|
"optionalDependencies": {
|
|
277
|
-
"@absolutejs/native-darwin-arm64": "0.20.0-beta.
|
|
278
|
-
"@absolutejs/native-darwin-x64": "0.20.0-beta.
|
|
279
|
-
"@absolutejs/native-linux-arm64": "0.20.0-beta.
|
|
280
|
-
"@absolutejs/native-linux-x64": "0.20.0-beta.
|
|
281
|
-
"@absolutejs/native-windows-arm64": "0.20.0-beta.
|
|
282
|
-
"@absolutejs/native-windows-x64": "0.20.0-beta.
|
|
277
|
+
"@absolutejs/native-darwin-arm64": "0.20.0-beta.8",
|
|
278
|
+
"@absolutejs/native-darwin-x64": "0.20.0-beta.8",
|
|
279
|
+
"@absolutejs/native-linux-arm64": "0.20.0-beta.8",
|
|
280
|
+
"@absolutejs/native-linux-x64": "0.20.0-beta.8",
|
|
281
|
+
"@absolutejs/native-windows-arm64": "0.20.0-beta.8",
|
|
282
|
+
"@absolutejs/native-windows-x64": "0.20.0-beta.8"
|
|
283
283
|
},
|
|
284
284
|
"overrides": {
|
|
285
285
|
"@sinclair/typebox": "0.34.52",
|
|
@@ -289,7 +289,7 @@
|
|
|
289
289
|
"typebox": "1.3.16"
|
|
290
290
|
},
|
|
291
291
|
"peerDependencies": {
|
|
292
|
-
"@absolutejs/sync": ">=2.
|
|
292
|
+
"@absolutejs/sync": ">=2.22.2 <3",
|
|
293
293
|
"@angular/animations": "^21.0.0",
|
|
294
294
|
"@angular/common": "^21.0.0",
|
|
295
295
|
"@angular/compiler": "^21.0.0",
|
|
@@ -490,7 +490,7 @@
|
|
|
490
490
|
]
|
|
491
491
|
}
|
|
492
492
|
},
|
|
493
|
-
"version": "0.20.0-beta.
|
|
493
|
+
"version": "0.20.0-beta.8",
|
|
494
494
|
"workspaces": [
|
|
495
495
|
"tests/fixtures/*",
|
|
496
496
|
"tests/fixtures/_packages/*"
|