@absolutejs/absolute 0.20.0-beta.13 → 0.20.0-beta.14
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 +33 -0
- package/dist/angular/components/core/streamingSlotRegistrar.js +1 -1
- package/dist/angular/components/core/streamingSlotRegistry.js +2 -2
- package/dist/build.js +822 -561
- package/dist/build.js.map +7 -5
- package/dist/cli/index.js +834 -515
- package/dist/index.js +904 -643
- package/dist/index.js.map +7 -5
- package/dist/mobile/index.js +310 -36
- package/dist/mobile/index.js.map +10 -7
- package/dist/mobile/shellSync.js +3 -1
- package/dist/src/build/pwa.d.ts +2 -1
- package/dist/src/mobile/capacitorBundle.d.ts +3 -0
- package/dist/src/mobile/index.d.ts +1 -0
- package/dist/src/mobile/shellSync.d.ts +2 -2
- package/dist/src/mobile/syncSchema.d.ts +9 -0
- package/dist/src/mobile/transport.d.ts +2 -0
- package/dist/types/build.d.ts +1 -1
- package/package.json +11 -11
package/dist/mobile/shellSync.js
CHANGED
|
@@ -12,7 +12,9 @@ var ABSOLUTE_MOBILE_SYNC_STATUS_EVENT = "absolute:sync-status";
|
|
|
12
12
|
var reportShellStatus = (status) => globalThis.dispatchEvent(new CustomEvent(ABSOLUTE_MOBILE_SYNC_STATUS_EVENT, { detail: status }));
|
|
13
13
|
var installAbsoluteMobileShellSync = (auth, config, options = {}) => {
|
|
14
14
|
const namespace = auth.principal?.namespace;
|
|
15
|
-
const store = namespace ? options.createStore?.() ?? createCapacitorSyncLocalStore(
|
|
15
|
+
const store = namespace ? options.createStore?.({ storageSchema: config?.storageSchema }) ?? createCapacitorSyncLocalStore({
|
|
16
|
+
storageSchema: config?.storageSchema
|
|
17
|
+
}) : undefined;
|
|
16
18
|
const installLifecycle = options.installLifecycle ?? installCapacitorSyncLifecycle;
|
|
17
19
|
const reportStatus = options.reportStatus ?? reportShellStatus;
|
|
18
20
|
const configureBackground = options.configureBackground ?? configureCapacitorBackgroundSync;
|
package/dist/src/build/pwa.d.ts
CHANGED
|
@@ -6,10 +6,11 @@ export type AbsolutePwaBuildArtifacts = {
|
|
|
6
6
|
manifestPath?: string;
|
|
7
7
|
serviceWorkerPath: string;
|
|
8
8
|
};
|
|
9
|
-
export declare const materializeAbsolutePwa: ({ buildPath, config, generatedRoot, write }: {
|
|
9
|
+
export declare const materializeAbsolutePwa: ({ buildPath, config, generatedRoot, projectRoot, write }: {
|
|
10
10
|
buildPath: string;
|
|
11
11
|
config: PwaConfig;
|
|
12
12
|
generatedRoot: string;
|
|
13
|
+
projectRoot: string;
|
|
13
14
|
/** Incremental HMR builds reuse the stable artifacts from the full build. */
|
|
14
15
|
write?: boolean;
|
|
15
16
|
}) => Promise<AbsolutePwaBuildArtifacts>;
|
|
@@ -1,12 +1,14 @@
|
|
|
1
1
|
import type { NormalizedAbsoluteMobileConfig } from './config';
|
|
2
2
|
import type { AbsoluteMobileCompatibilityArtifact } from './releaseArtifact';
|
|
3
3
|
import type { AbsoluteMobileAuthManifest } from './nativeAuth';
|
|
4
|
+
import type { SyncLocalStoreSchemaBundle } from '@absolutejs/sync/client';
|
|
4
5
|
export type AbsoluteCapacitorBundleOptions = {
|
|
5
6
|
artifact: AbsoluteMobileCompatibilityArtifact;
|
|
6
7
|
auth?: AbsoluteMobileAuthManifest;
|
|
7
8
|
buildDirectory: string;
|
|
8
9
|
config: NormalizedAbsoluteMobileConfig;
|
|
9
10
|
sync?: boolean;
|
|
11
|
+
syncSchema?: SyncLocalStoreSchemaBundle;
|
|
10
12
|
};
|
|
11
13
|
export declare const materializeAbsoluteCapacitorWebBundle: (options: AbsoluteCapacitorBundleOptions) => Promise<{
|
|
12
14
|
sync?: {
|
|
@@ -15,6 +17,7 @@ export declare const materializeAbsoluteCapacitorWebBundle: (options: AbsoluteCa
|
|
|
15
17
|
intervalMinutes: number;
|
|
16
18
|
};
|
|
17
19
|
socketTickets: true;
|
|
20
|
+
storageSchema: SyncLocalStoreSchemaBundle;
|
|
18
21
|
} | undefined;
|
|
19
22
|
appId: string;
|
|
20
23
|
appName: string;
|
|
@@ -10,6 +10,7 @@ export * from './buildMetadata';
|
|
|
10
10
|
export * from './buildPipeline';
|
|
11
11
|
export * from './buildRelease';
|
|
12
12
|
export * from './capacitorBundle';
|
|
13
|
+
export * from './syncSchema';
|
|
13
14
|
export * from './capacitorProject';
|
|
14
15
|
export * from './config';
|
|
15
16
|
export * from './client';
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { configureCapacitorBackgroundSync, type CapacitorSyncLifecycleOptions } from '@absolutejs/sync-capacitor';
|
|
1
|
+
import { configureCapacitorBackgroundSync, type CapacitorSyncLifecycleOptions, type CapacitorSyncLocalStoreOptions } from '@absolutejs/sync-capacitor';
|
|
2
2
|
import type { SyncClientStatus, SyncLocalStore } from '@absolutejs/sync/client';
|
|
3
3
|
import type { AbsoluteMobileShellAuthRuntime } from './shellBootstrap';
|
|
4
4
|
import type { AbsoluteMobileClientManifest } from './transport';
|
|
5
5
|
export type AbsoluteMobileShellSyncOptions = {
|
|
6
|
-
createStore?: () => SyncLocalStore;
|
|
6
|
+
createStore?: (options?: CapacitorSyncLocalStoreOptions) => SyncLocalStore;
|
|
7
7
|
installLifecycle?: (options: CapacitorSyncLifecycleOptions) => Promise<() => void>;
|
|
8
8
|
reload?: () => void;
|
|
9
9
|
reportStatus?: (status: SyncClientStatus) => void;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { type SyncLocalStoreSchemaBundle } from '@absolutejs/sync/client';
|
|
2
|
+
export type AbsoluteSyncSchemaDiscovery = {
|
|
3
|
+
components: SyncLocalStoreSchemaBundle['components'];
|
|
4
|
+
sources: {
|
|
5
|
+
id: string;
|
|
6
|
+
manifestPath: string;
|
|
7
|
+
}[];
|
|
8
|
+
};
|
|
9
|
+
export declare const discoverAbsoluteSyncSchema: (projectRoot: string) => AbsoluteSyncSchemaDiscovery;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { type AbsoluteMobilePageActivationOptions } from './client';
|
|
2
2
|
import type { AbsoluteMobileCompatibilityPage, AbsoluteMobileCompatibilityRoute } from './releaseArtifact';
|
|
3
3
|
import type { AbsoluteMobileAuthManifest } from './nativeAuth';
|
|
4
|
+
import type { SyncLocalStoreSchemaBundle } from '@absolutejs/sync/client';
|
|
4
5
|
export declare const ABSOLUTE_MOBILE_CLIENT_MANIFEST_FORMAT: 1;
|
|
5
6
|
export type AbsoluteMobileFetch = (input: RequestInfo | URL, init?: RequestInit) => Promise<Response>;
|
|
6
7
|
export type AbsoluteMobileClientPage = AbsoluteMobileCompatibilityPage & {
|
|
@@ -26,6 +27,7 @@ export type AbsoluteMobileClientManifest = {
|
|
|
26
27
|
endpoint: string;
|
|
27
28
|
intervalMinutes: number;
|
|
28
29
|
};
|
|
30
|
+
storageSchema: SyncLocalStoreSchemaBundle;
|
|
29
31
|
};
|
|
30
32
|
};
|
|
31
33
|
export type AbsoluteMobileTransportOptions = {
|
package/dist/types/build.d.ts
CHANGED
|
@@ -32,7 +32,7 @@ export type PwaConfig = {
|
|
|
32
32
|
/** Public worker URL. Defaults to `/sw.js`. */
|
|
33
33
|
serviceWorkerPath?: string;
|
|
34
34
|
/** Provision Auth-aware IndexedDB/background Sync without page-level code. */
|
|
35
|
-
sync?: boolean | import('@absolutejs/pwa/client').PwaSyncOptions
|
|
35
|
+
sync?: boolean | Omit<import('@absolutejs/pwa/client').PwaSyncOptions, 'storageSchema'>;
|
|
36
36
|
};
|
|
37
37
|
export type MobileConfig = {
|
|
38
38
|
/** Capacitor is the universal v1 engine. Expo remains a future React-only engine. */
|
package/package.json
CHANGED
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
"@absolutejs/auth": "0.72.0",
|
|
11
11
|
"@absolutejs/devices": "0.0.3",
|
|
12
12
|
"@absolutejs/devices-capacitor": "0.1.3",
|
|
13
|
-
"@absolutejs/pwa": "0.
|
|
13
|
+
"@absolutejs/pwa": "0.10.1",
|
|
14
14
|
"@capacitor/browser": "8.0.4",
|
|
15
15
|
"@capacitor/network": "8.0.1",
|
|
16
16
|
"@capacitor/preferences": "8.0.1",
|
|
@@ -26,8 +26,8 @@
|
|
|
26
26
|
"devDependencies": {
|
|
27
27
|
"@absolutejs/manifest": "0.9.0",
|
|
28
28
|
"@absolutejs/scoped-state": "0.2.2",
|
|
29
|
-
"@absolutejs/sync": "2.
|
|
30
|
-
"@absolutejs/sync-capacitor": "0.
|
|
29
|
+
"@absolutejs/sync": "2.26.1",
|
|
30
|
+
"@absolutejs/sync-capacitor": "0.6.1",
|
|
31
31
|
"@angular/animations": "21.2.6",
|
|
32
32
|
"@angular/cdk": "21.2.6",
|
|
33
33
|
"@angular/common": "21.2.6",
|
|
@@ -275,12 +275,12 @@
|
|
|
275
275
|
"main": "./dist/index.js",
|
|
276
276
|
"name": "@absolutejs/absolute",
|
|
277
277
|
"optionalDependencies": {
|
|
278
|
-
"@absolutejs/native-darwin-arm64": "0.20.0-beta.
|
|
279
|
-
"@absolutejs/native-darwin-x64": "0.20.0-beta.
|
|
280
|
-
"@absolutejs/native-linux-arm64": "0.20.0-beta.
|
|
281
|
-
"@absolutejs/native-linux-x64": "0.20.0-beta.
|
|
282
|
-
"@absolutejs/native-windows-arm64": "0.20.0-beta.
|
|
283
|
-
"@absolutejs/native-windows-x64": "0.20.0-beta.
|
|
278
|
+
"@absolutejs/native-darwin-arm64": "0.20.0-beta.14",
|
|
279
|
+
"@absolutejs/native-darwin-x64": "0.20.0-beta.14",
|
|
280
|
+
"@absolutejs/native-linux-arm64": "0.20.0-beta.14",
|
|
281
|
+
"@absolutejs/native-linux-x64": "0.20.0-beta.14",
|
|
282
|
+
"@absolutejs/native-windows-arm64": "0.20.0-beta.14",
|
|
283
|
+
"@absolutejs/native-windows-x64": "0.20.0-beta.14"
|
|
284
284
|
},
|
|
285
285
|
"overrides": {
|
|
286
286
|
"@sinclair/typebox": "0.34.52",
|
|
@@ -290,7 +290,7 @@
|
|
|
290
290
|
"typebox": "1.3.16"
|
|
291
291
|
},
|
|
292
292
|
"peerDependencies": {
|
|
293
|
-
"@absolutejs/sync": ">=2.
|
|
293
|
+
"@absolutejs/sync": ">=2.26.1 <3",
|
|
294
294
|
"@angular/animations": "^21.0.0",
|
|
295
295
|
"@angular/common": "^21.0.0",
|
|
296
296
|
"@angular/compiler": "^21.0.0",
|
|
@@ -491,7 +491,7 @@
|
|
|
491
491
|
]
|
|
492
492
|
}
|
|
493
493
|
},
|
|
494
|
-
"version": "0.20.0-beta.
|
|
494
|
+
"version": "0.20.0-beta.14",
|
|
495
495
|
"workspaces": [
|
|
496
496
|
"tests/fixtures/*",
|
|
497
497
|
"tests/fixtures/_packages/*"
|