@absolutejs/absolute 0.20.0-beta.26 → 0.20.0-beta.28
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 +22 -1
- package/dist/angular/components/core/streamingSlotRegistrar.js +1 -1
- package/dist/angular/components/core/streamingSlotRegistry.js +2 -2
- package/dist/build.js +14 -3
- package/dist/build.js.map +4 -4
- package/dist/cli/index.js +71 -2
- package/dist/dev/client/hmrClient.ts +23 -0
- package/dist/index.js +95 -29
- package/dist/index.js.map +7 -6
- package/dist/mobile/index.js +22 -3
- package/dist/mobile/index.js.map +4 -4
- package/dist/mobile/shellBootstrap.js +12 -0
- package/dist/src/core/devBuild.d.ts +1 -0
- package/dist/src/core/prepare.d.ts +24 -0
- package/dist/src/mobile/androidWebView.d.ts +1 -0
- package/dist/src/mobile/devDeviceAdapter.d.ts +3 -0
- package/dist/src/mobile/deviceCapabilities.d.ts +2 -0
- package/package.json +5 -4
|
@@ -441,6 +441,17 @@ var initialNavigationPath = (entry) => {
|
|
|
441
441
|
return current === "/" || current === "/index.html" ? entry : current;
|
|
442
442
|
};
|
|
443
443
|
var navigationGeneration = 0;
|
|
444
|
+
var notifyCapacitorSystemBarsDomReady = () => {
|
|
445
|
+
const provider = Reflect.get(globalThis, "CapacitorSystemBarsAndroidInterface");
|
|
446
|
+
if (typeof provider !== "object" || provider === null)
|
|
447
|
+
return;
|
|
448
|
+
const onDOMReady = Reflect.get(provider, "onDOMReady");
|
|
449
|
+
if (typeof onDOMReady !== "function")
|
|
450
|
+
return;
|
|
451
|
+
try {
|
|
452
|
+
onDOMReady.call(provider);
|
|
453
|
+
} catch {}
|
|
454
|
+
};
|
|
444
455
|
var readManifest = async () => {
|
|
445
456
|
const response = await fetch(MANIFEST_PATH, { cache: "no-store" });
|
|
446
457
|
if (!response.ok) {
|
|
@@ -558,6 +569,7 @@ var navigateWithFailureState = async (manifest, path, pushHistory, reinstallBrow
|
|
|
558
569
|
}
|
|
559
570
|
};
|
|
560
571
|
var startAbsoluteMobileShell = async (options = {}) => {
|
|
572
|
+
notifyCapacitorSystemBarsDomReady();
|
|
561
573
|
const manifest = await readManifest();
|
|
562
574
|
const auth = manifest.auth && options.createAuth ? await options.createAuth(manifest.auth, {
|
|
563
575
|
beforeSignOut: options.beforeSignOut
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import type { BuildConfig } from '../../types/build';
|
|
2
2
|
declare const FRAMEWORK_DIR_KEYS: readonly ["reactDirectory", "svelteDirectory", "vueDirectory", "htmlDirectory", "htmxDirectory", "angularDirectory"];
|
|
3
|
+
export declare const collectDepVendorSourceDirs: (config: BuildConfig) => string[];
|
|
3
4
|
/** Result of `detectConfigChanges`: which framework dir keys were
|
|
4
5
|
* added and which were removed in the new config. The additive case
|
|
5
6
|
* is handled in-place by this function (vendor paths set, watchers
|
|
@@ -37,6 +37,18 @@ export declare const prepare: (configOrPath?: string) => Promise<{
|
|
|
37
37
|
error: never;
|
|
38
38
|
};
|
|
39
39
|
};
|
|
40
|
+
"native-device-adapter.js": {
|
|
41
|
+
get: {
|
|
42
|
+
body: unknown;
|
|
43
|
+
params: {};
|
|
44
|
+
query: unknown;
|
|
45
|
+
headers: unknown;
|
|
46
|
+
response: {
|
|
47
|
+
200: Response;
|
|
48
|
+
};
|
|
49
|
+
error: never;
|
|
50
|
+
};
|
|
51
|
+
};
|
|
40
52
|
};
|
|
41
53
|
".well-known": {
|
|
42
54
|
appspecific: {
|
|
@@ -173,6 +185,18 @@ export declare const prepare: (configOrPath?: string) => Promise<{
|
|
|
173
185
|
error: never;
|
|
174
186
|
};
|
|
175
187
|
};
|
|
188
|
+
"native-device-adapter.js": {
|
|
189
|
+
get: {
|
|
190
|
+
body: unknown;
|
|
191
|
+
params: {};
|
|
192
|
+
query: unknown;
|
|
193
|
+
headers: unknown;
|
|
194
|
+
response: {
|
|
195
|
+
200: Response;
|
|
196
|
+
};
|
|
197
|
+
error: never;
|
|
198
|
+
};
|
|
199
|
+
};
|
|
176
200
|
};
|
|
177
201
|
".well-known": {
|
|
178
202
|
appspecific: {
|
|
@@ -25,6 +25,7 @@ export type AbsoluteAndroidWebViewSession = {
|
|
|
25
25
|
screenshot: (path: string) => Promise<string>;
|
|
26
26
|
serial: string;
|
|
27
27
|
socket: string;
|
|
28
|
+
tap: (x: number, y: number) => Promise<void>;
|
|
28
29
|
target: CdpTarget;
|
|
29
30
|
waitFor: <T>(expression: string, options?: {
|
|
30
31
|
timeoutMs?: number;
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import type { MobileConfig } from '../../types/build';
|
|
2
|
+
export declare const absoluteNativeDevAdapterSource: (projectRoot: string, mobile: MobileConfig, resolveModule?: (specifier: string) => string) => string;
|
|
3
|
+
export declare const buildAbsoluteNativeDevAdapter: (projectRoot: string, mobile: MobileConfig) => Promise<string>;
|
|
@@ -8,6 +8,7 @@ export type AbsoluteDeviceCapabilityProvider = {
|
|
|
8
8
|
ios?: {
|
|
9
9
|
privacyAccessedApis?: Partial<Record<AbsoluteIosPrivacyAccessedApi, string[]>>;
|
|
10
10
|
pushNotifications?: true;
|
|
11
|
+
systemBars?: true;
|
|
11
12
|
usageDescriptions?: AbsoluteIosUsageDescription[];
|
|
12
13
|
};
|
|
13
14
|
};
|
|
@@ -27,6 +28,7 @@ export declare const absoluteDeviceNativeRequirements: (plan: AbsoluteDeviceCapa
|
|
|
27
28
|
reasons: string[];
|
|
28
29
|
}[];
|
|
29
30
|
iosPushNotifications: boolean;
|
|
31
|
+
iosSystemBars: boolean;
|
|
30
32
|
iosUsageDescriptions: AbsoluteIosUsageDescription[];
|
|
31
33
|
};
|
|
32
34
|
export declare const loadAbsoluteDeviceCapabilityProviders: (projectRoot: string) => {
|
package/package.json
CHANGED
|
@@ -8,10 +8,11 @@
|
|
|
8
8
|
},
|
|
9
9
|
"dependencies": {
|
|
10
10
|
"@absolutejs/auth": "0.75.0",
|
|
11
|
-
"@absolutejs/devices": "0.
|
|
12
|
-
"@absolutejs/devices-capacitor": "0.
|
|
11
|
+
"@absolutejs/devices": "0.7.0",
|
|
12
|
+
"@absolutejs/devices-capacitor": "0.8.0",
|
|
13
13
|
"@absolutejs/pwa": "0.14.0",
|
|
14
14
|
"@capacitor/browser": "8.0.4",
|
|
15
|
+
"@capacitor/keyboard": "8.0.5",
|
|
15
16
|
"@capacitor/network": "8.0.1",
|
|
16
17
|
"@capacitor/preferences": "8.0.1",
|
|
17
18
|
"@elysia/openapi": "2.0.0-beta.1",
|
|
@@ -453,7 +454,7 @@
|
|
|
453
454
|
"test:native:android:hmr": "ABSOLUTE_TEST_NATIVE_ANDROID=1 bun test tests/native/android-hmr-conformance.test.ts",
|
|
454
455
|
"test:native:android:lifecycle": "ABSOLUTE_TEST_NATIVE_ANDROID=1 bun test tests/native/android-lifecycle-conformance.test.ts",
|
|
455
456
|
"test:native:ios": "ABSOLUTE_TEST_NATIVE_IOS=1 bun test tests/native/ios-lifecycle-conformance.test.ts",
|
|
456
|
-
"test:unit": "bun test tests/unit",
|
|
457
|
+
"test:unit": "bun test --max-concurrency 1 tests/unit",
|
|
457
458
|
"typecheck": "bun run src/cli/index.ts typecheck --config example/absolute.config.ts",
|
|
458
459
|
"verify:release-versions": "bun run scripts/verifyReleaseVersions.ts"
|
|
459
460
|
},
|
|
@@ -501,7 +502,7 @@
|
|
|
501
502
|
]
|
|
502
503
|
}
|
|
503
504
|
},
|
|
504
|
-
"version": "0.20.0-beta.
|
|
505
|
+
"version": "0.20.0-beta.28",
|
|
505
506
|
"workspaces": [
|
|
506
507
|
"tests/fixtures/*",
|
|
507
508
|
"tests/fixtures/_packages/*"
|