@absolutejs/absolute 0.20.0-beta.17 → 0.20.0-beta.18
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 +25 -0
- package/dist/angular/components/core/streamingSlotRegistrar.js +1 -1
- package/dist/angular/components/core/streamingSlotRegistry.js +2 -2
- package/dist/cli/index.js +935 -718
- package/dist/mobile/index.js +325 -121
- package/dist/mobile/index.js.map +8 -7
- package/dist/mobile/shellAuth.js +0 -8
- package/dist/src/mobile/capacitorBundle.d.ts +4 -0
- package/dist/src/mobile/deviceCapabilities.d.ts +20 -0
- package/dist/src/mobile/index.d.ts +1 -0
- package/dist/src/mobile/transport.d.ts +1 -0
- package/package.json +12 -9
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,20 @@
|
|
|
1
|
+
export type AbsoluteDeviceCapabilityProvider = {
|
|
2
|
+
factory: string;
|
|
3
|
+
module: string;
|
|
4
|
+
packages: string[];
|
|
5
|
+
};
|
|
6
|
+
export type AbsoluteDeviceCapabilityPlan = {
|
|
7
|
+
capabilities: string[];
|
|
8
|
+
providers: Record<string, AbsoluteDeviceCapabilityProvider>;
|
|
9
|
+
requiredPackages: string[];
|
|
10
|
+
};
|
|
11
|
+
export declare const loadAbsoluteDeviceCapabilityProviders: (projectRoot: string) => {
|
|
12
|
+
[k: string]: AbsoluteDeviceCapabilityProvider;
|
|
13
|
+
};
|
|
14
|
+
export declare const assertAbsoluteDeviceCapabilityPackages: (projectRoot: string, plan: AbsoluteDeviceCapabilityPlan) => void;
|
|
15
|
+
export declare const directAbsoluteProjectPackages: (projectRoot: string) => Set<string>;
|
|
16
|
+
export declare const discoverAbsoluteDeviceCapabilities: (projectRoot: string, providers?: {
|
|
17
|
+
[k: string]: AbsoluteDeviceCapabilityProvider;
|
|
18
|
+
}) => string[];
|
|
19
|
+
export declare const missingAbsoluteDeviceCapabilityPackages: (plan: AbsoluteDeviceCapabilityPlan, directPackages: ReadonlySet<string>) => string[];
|
|
20
|
+
export declare const resolveAbsoluteDeviceCapabilityPlan: (projectRoot: string) => AbsoluteDeviceCapabilityPlan;
|
|
@@ -12,6 +12,7 @@ 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';
|
|
@@ -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.
|
|
11
|
+
"@absolutejs/devices": "0.1.0",
|
|
12
|
+
"@absolutejs/devices-capacitor": "0.2.0",
|
|
13
13
|
"@absolutejs/pwa": "0.13.0",
|
|
14
14
|
"@capacitor/browser": "8.0.4",
|
|
15
15
|
"@capacitor/network": "8.0.1",
|
|
@@ -45,8 +45,11 @@
|
|
|
45
45
|
"@capacitor/android": "8.5.0",
|
|
46
46
|
"@capacitor/app": "8.1.1",
|
|
47
47
|
"@capacitor/cli": "8.5.0",
|
|
48
|
+
"@capacitor/clipboard": "8.0.1",
|
|
48
49
|
"@capacitor/core": "8.5.0",
|
|
50
|
+
"@capacitor/haptics": "8.0.2",
|
|
49
51
|
"@capacitor/ios": "8.5.0",
|
|
52
|
+
"@capacitor/share": "8.0.1",
|
|
50
53
|
"@embroider/macros": "^1.20.2",
|
|
51
54
|
"@eslint/js": "^10.0.1",
|
|
52
55
|
"@glimmer/component": "^2.1.1",
|
|
@@ -275,12 +278,12 @@
|
|
|
275
278
|
"main": "./dist/index.js",
|
|
276
279
|
"name": "@absolutejs/absolute",
|
|
277
280
|
"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.
|
|
281
|
+
"@absolutejs/native-darwin-arm64": "0.20.0-beta.18",
|
|
282
|
+
"@absolutejs/native-darwin-x64": "0.20.0-beta.18",
|
|
283
|
+
"@absolutejs/native-linux-arm64": "0.20.0-beta.18",
|
|
284
|
+
"@absolutejs/native-linux-x64": "0.20.0-beta.18",
|
|
285
|
+
"@absolutejs/native-windows-arm64": "0.20.0-beta.18",
|
|
286
|
+
"@absolutejs/native-windows-x64": "0.20.0-beta.18"
|
|
284
287
|
},
|
|
285
288
|
"overrides": {
|
|
286
289
|
"@sinclair/typebox": "0.34.52",
|
|
@@ -491,7 +494,7 @@
|
|
|
491
494
|
]
|
|
492
495
|
}
|
|
493
496
|
},
|
|
494
|
-
"version": "0.20.0-beta.
|
|
497
|
+
"version": "0.20.0-beta.18",
|
|
495
498
|
"workspaces": [
|
|
496
499
|
"tests/fixtures/*",
|
|
497
500
|
"tests/fixtures/_packages/*"
|