@absolutejs/absolute 0.20.0-beta.17 → 0.20.0-beta.19
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 +38 -0
- package/dist/angular/components/core/streamingSlotRegistrar.js +1 -1
- package/dist/angular/components/core/streamingSlotRegistry.js +2 -2
- package/dist/cli/index.js +1142 -758
- package/dist/mobile/index.js +463 -121
- package/dist/mobile/index.js.map +9 -7
- package/dist/mobile/shellAuth.js +0 -8
- package/dist/src/mobile/capacitorBundle.d.ts +4 -0
- package/dist/src/mobile/deviceCapabilities.d.ts +33 -0
- package/dist/src/mobile/index.d.ts +2 -0
- package/dist/src/mobile/nativeDeviceCapabilities.d.ts +6 -0
- package/dist/src/mobile/transport.d.ts +1 -0
- package/package.json +14 -10
package/dist/mobile/shellAuth.js
CHANGED
|
@@ -1,19 +1,11 @@
|
|
|
1
1
|
// src/mobile/shellAuth.ts
|
|
2
2
|
import { lifecycle, links, secureStorage } from "@absolutejs/devices";
|
|
3
|
-
import { installCapacitorDeviceAdapter } from "@absolutejs/devices-capacitor";
|
|
4
3
|
import {
|
|
5
4
|
createMobileAuthClient,
|
|
6
5
|
createMobileAuthTransport,
|
|
7
6
|
installAuthClientRuntimeTransport
|
|
8
7
|
} from "@absolutejs/auth/client/mobile";
|
|
9
|
-
var installed = false;
|
|
10
8
|
var createAbsoluteMobileShellAuth = async (config) => {
|
|
11
|
-
if (!installed) {
|
|
12
|
-
installCapacitorDeviceAdapter({
|
|
13
|
-
storagePrefix: `absolutejs.${config.clientId}.`
|
|
14
|
-
});
|
|
15
|
-
installed = true;
|
|
16
|
-
}
|
|
17
9
|
const client = createMobileAuthClient({
|
|
18
10
|
allowedOrigins: [config.issuer],
|
|
19
11
|
clientId: config.clientId,
|
|
@@ -2,11 +2,14 @@ import type { NormalizedAbsoluteMobileConfig } from './config';
|
|
|
2
2
|
import type { AbsoluteMobileCompatibilityArtifact } from './releaseArtifact';
|
|
3
3
|
import type { AbsoluteMobileAuthManifest } from './nativeAuth';
|
|
4
4
|
import type { SyncLocalStoreSchemaBundle } from '@absolutejs/sync/client';
|
|
5
|
+
import type { AbsoluteDeviceCapabilityPlan } from './deviceCapabilities';
|
|
5
6
|
export type AbsoluteCapacitorBundleOptions = {
|
|
6
7
|
artifact: AbsoluteMobileCompatibilityArtifact;
|
|
7
8
|
auth?: AbsoluteMobileAuthManifest;
|
|
8
9
|
buildDirectory: string;
|
|
9
10
|
config: NormalizedAbsoluteMobileConfig;
|
|
11
|
+
deviceCapabilities: AbsoluteDeviceCapabilityPlan;
|
|
12
|
+
projectRoot: string;
|
|
10
13
|
sync?: boolean;
|
|
11
14
|
syncSchema?: SyncLocalStoreSchemaBundle;
|
|
12
15
|
};
|
|
@@ -23,6 +26,7 @@ export declare const materializeAbsoluteCapacitorWebBundle: (options: AbsoluteCa
|
|
|
23
26
|
appName: string;
|
|
24
27
|
deepLinkHosts: string[];
|
|
25
28
|
deepLinkScheme: string | undefined;
|
|
29
|
+
deviceCapabilities: string[];
|
|
26
30
|
entry: string;
|
|
27
31
|
format: 1;
|
|
28
32
|
pages: {
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
export type AbsoluteDeviceCapabilityProvider = {
|
|
2
|
+
factory: string;
|
|
3
|
+
module: string;
|
|
4
|
+
native?: {
|
|
5
|
+
android?: {
|
|
6
|
+
permissions: string[];
|
|
7
|
+
};
|
|
8
|
+
ios?: {
|
|
9
|
+
usageDescriptions: AbsoluteIosUsageDescription[];
|
|
10
|
+
};
|
|
11
|
+
};
|
|
12
|
+
packages: string[];
|
|
13
|
+
};
|
|
14
|
+
export type AbsoluteIosUsageDescription = 'camera' | 'photo-library' | 'photo-library-add';
|
|
15
|
+
export type AbsoluteDeviceCapabilityPlan = {
|
|
16
|
+
capabilities: string[];
|
|
17
|
+
providers: Record<string, AbsoluteDeviceCapabilityProvider>;
|
|
18
|
+
requiredPackages: string[];
|
|
19
|
+
};
|
|
20
|
+
export declare const absoluteDeviceNativeRequirements: (plan: AbsoluteDeviceCapabilityPlan) => {
|
|
21
|
+
androidPermissions: string[];
|
|
22
|
+
iosUsageDescriptions: AbsoluteIosUsageDescription[];
|
|
23
|
+
};
|
|
24
|
+
export declare const loadAbsoluteDeviceCapabilityProviders: (projectRoot: string) => {
|
|
25
|
+
[k: string]: AbsoluteDeviceCapabilityProvider;
|
|
26
|
+
};
|
|
27
|
+
export declare const assertAbsoluteDeviceCapabilityPackages: (projectRoot: string, plan: AbsoluteDeviceCapabilityPlan) => void;
|
|
28
|
+
export declare const directAbsoluteProjectPackages: (projectRoot: string) => Set<string>;
|
|
29
|
+
export declare const discoverAbsoluteDeviceCapabilities: (projectRoot: string, providers?: {
|
|
30
|
+
[k: string]: AbsoluteDeviceCapabilityProvider;
|
|
31
|
+
}) => string[];
|
|
32
|
+
export declare const missingAbsoluteDeviceCapabilityPackages: (plan: AbsoluteDeviceCapabilityPlan, directPackages: ReadonlySet<string>) => string[];
|
|
33
|
+
export declare const resolveAbsoluteDeviceCapabilityPlan: (projectRoot: string) => AbsoluteDeviceCapabilityPlan;
|
|
@@ -12,12 +12,14 @@ export * from './buildRelease';
|
|
|
12
12
|
export * from './capacitorBundle';
|
|
13
13
|
export * from './syncSchema';
|
|
14
14
|
export * from './syncRemediation';
|
|
15
|
+
export * from './deviceCapabilities';
|
|
15
16
|
export * from './capacitorProject';
|
|
16
17
|
export * from './config';
|
|
17
18
|
export * from './client';
|
|
18
19
|
export * from './compatibilityDispatcher';
|
|
19
20
|
export * from './materializedBundle';
|
|
20
21
|
export * from './nativeDeepLinks';
|
|
22
|
+
export * from './nativeDeviceCapabilities';
|
|
21
23
|
export * from './nativeAuth';
|
|
22
24
|
export * from './pageProtocol';
|
|
23
25
|
export * from './producerContext';
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { MobilePlatform } from '../../types/build';
|
|
2
|
+
import type { NormalizedAbsoluteMobileConfig } from './config';
|
|
3
|
+
import { type AbsoluteDeviceCapabilityPlan } from './deviceCapabilities';
|
|
4
|
+
export declare const applyAbsoluteNativeDeviceCapabilities: (projectRoot: string, config: NormalizedAbsoluteMobileConfig, platforms?: readonly MobilePlatform[], plan?: AbsoluteDeviceCapabilityPlan) => Promise<{
|
|
5
|
+
changed: MobilePlatform[];
|
|
6
|
+
}>;
|
|
@@ -15,6 +15,7 @@ export type AbsoluteMobileClientManifest = {
|
|
|
15
15
|
appName: string;
|
|
16
16
|
deepLinkHosts: string[];
|
|
17
17
|
deepLinkScheme?: string;
|
|
18
|
+
deviceCapabilities: string[];
|
|
18
19
|
entry: string;
|
|
19
20
|
format: typeof ABSOLUTE_MOBILE_CLIENT_MANIFEST_FORMAT;
|
|
20
21
|
pages: AbsoluteMobileClientPage[];
|
package/package.json
CHANGED
|
@@ -8,8 +8,8 @@
|
|
|
8
8
|
},
|
|
9
9
|
"dependencies": {
|
|
10
10
|
"@absolutejs/auth": "0.72.0",
|
|
11
|
-
"@absolutejs/devices": "0.0
|
|
12
|
-
"@absolutejs/devices-capacitor": "0.1
|
|
11
|
+
"@absolutejs/devices": "0.2.0",
|
|
12
|
+
"@absolutejs/devices-capacitor": "0.3.1",
|
|
13
13
|
"@absolutejs/pwa": "0.13.0",
|
|
14
14
|
"@capacitor/browser": "8.0.4",
|
|
15
15
|
"@capacitor/network": "8.0.1",
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
"@absolutejs/manifest": "0.9.0",
|
|
28
28
|
"@absolutejs/scoped-state": "0.2.2",
|
|
29
29
|
"@absolutejs/sync": "2.29.0",
|
|
30
|
-
"@absolutejs/sync-capacitor": "0.
|
|
30
|
+
"@absolutejs/sync-capacitor": "0.9.0",
|
|
31
31
|
"@angular/animations": "21.2.6",
|
|
32
32
|
"@angular/cdk": "21.2.6",
|
|
33
33
|
"@angular/common": "21.2.6",
|
|
@@ -44,9 +44,13 @@
|
|
|
44
44
|
"@capacitor-community/sqlite": "8.1.1",
|
|
45
45
|
"@capacitor/android": "8.5.0",
|
|
46
46
|
"@capacitor/app": "8.1.1",
|
|
47
|
+
"@capacitor/camera": "8.2.3",
|
|
47
48
|
"@capacitor/cli": "8.5.0",
|
|
49
|
+
"@capacitor/clipboard": "8.0.1",
|
|
48
50
|
"@capacitor/core": "8.5.0",
|
|
51
|
+
"@capacitor/haptics": "8.0.2",
|
|
49
52
|
"@capacitor/ios": "8.5.0",
|
|
53
|
+
"@capacitor/share": "8.0.1",
|
|
50
54
|
"@embroider/macros": "^1.20.2",
|
|
51
55
|
"@eslint/js": "^10.0.1",
|
|
52
56
|
"@glimmer/component": "^2.1.1",
|
|
@@ -275,12 +279,12 @@
|
|
|
275
279
|
"main": "./dist/index.js",
|
|
276
280
|
"name": "@absolutejs/absolute",
|
|
277
281
|
"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.
|
|
282
|
+
"@absolutejs/native-darwin-arm64": "0.20.0-beta.19",
|
|
283
|
+
"@absolutejs/native-darwin-x64": "0.20.0-beta.19",
|
|
284
|
+
"@absolutejs/native-linux-arm64": "0.20.0-beta.19",
|
|
285
|
+
"@absolutejs/native-linux-x64": "0.20.0-beta.19",
|
|
286
|
+
"@absolutejs/native-windows-arm64": "0.20.0-beta.19",
|
|
287
|
+
"@absolutejs/native-windows-x64": "0.20.0-beta.19"
|
|
284
288
|
},
|
|
285
289
|
"overrides": {
|
|
286
290
|
"@sinclair/typebox": "0.34.52",
|
|
@@ -491,7 +495,7 @@
|
|
|
491
495
|
]
|
|
492
496
|
}
|
|
493
497
|
},
|
|
494
|
-
"version": "0.20.0-beta.
|
|
498
|
+
"version": "0.20.0-beta.19",
|
|
495
499
|
"workspaces": [
|
|
496
500
|
"tests/fixtures/*",
|
|
497
501
|
"tests/fixtures/_packages/*"
|