@absolutejs/absolute 0.20.0-beta.25 → 0.20.0-beta.27

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.
@@ -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) => {
@@ -38,4 +40,7 @@ export declare const discoverAbsoluteDeviceCapabilities: (projectRoot: string, p
38
40
  [k: string]: AbsoluteDeviceCapabilityProvider;
39
41
  }) => string[];
40
42
  export declare const missingAbsoluteDeviceCapabilityPackages: (plan: AbsoluteDeviceCapabilityPlan, directPackages: ReadonlySet<string>) => string[];
43
+ /** Framework-agnostic capability discovery used by web/PWA builds. This does
44
+ * not load a native provider manifest, so Web Push never requires Capacitor. */
45
+ export declare const projectImportsAbsoluteDeviceCapability: (projectRoot: string, capability: string) => boolean;
41
46
  export declare const resolveAbsoluteDeviceCapabilityPlan: (projectRoot: string) => AbsoluteDeviceCapabilityPlan;
@@ -1,7 +1,7 @@
1
1
  import { secureStorage, type DevicePushNotificationsCapability } from '@absolutejs/devices';
2
2
  import type { CapacitorPushNotificationsOptions } from '@absolutejs/devices-capacitor/push-notifications';
3
3
  import type { AbsoluteMobileShellAuthRuntime } from './shellBootstrap';
4
- export declare const ABSOLUTE_NATIVE_PUSH_ROUTE: "/auth/mobile/push";
4
+ export declare const ABSOLUTE_PUSH_ROUTE: "/auth/push";
5
5
  export declare const createAbsoluteMobileShellPush: ({ storage }?: {
6
6
  storage?: Pick<typeof secureStorage, "get" | "remove" | "set">;
7
7
  }) => {
@@ -28,11 +28,19 @@ export type PwaConfig = {
28
28
  path?: string;
29
29
  };
30
30
  /** Service-worker behavior. Sync is controlled by the sibling `sync` field. */
31
- serviceWorker?: Omit<import('@absolutejs/pwa').ServiceWorkerOptions, 'sync'>;
31
+ serviceWorker?: Omit<import('@absolutejs/pwa').ServiceWorkerOptions, 'resubscribe' | 'sync'>;
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
35
  sync?: boolean | Omit<import('@absolutejs/pwa/client').PwaSyncOptions, 'storageSchema'>;
36
+ /** Provision provider-neutral Web Push behind @absolutejs/devices. This is
37
+ * automatic when pushNotifications is imported; set false to opt out. The
38
+ * public VAPID key defaults to VAPID_PUBLIC_KEY at build time. */
39
+ push?: boolean | {
40
+ applicationServerKey?: string;
41
+ /** Root-relative trusted Auth route. Defaults to /auth/push. */
42
+ route?: string;
43
+ };
36
44
  };
37
45
  export type MobileConfig = {
38
46
  /** Capacitor is the universal v1 engine. Expo remains a future React-only engine. */
package/package.json CHANGED
@@ -7,11 +7,12 @@
7
7
  "url": "https://github.com/absolutejs/absolutejs/issues"
8
8
  },
9
9
  "dependencies": {
10
- "@absolutejs/auth": "0.74.0",
11
- "@absolutejs/devices": "0.6.0",
12
- "@absolutejs/devices-capacitor": "0.7.1",
13
- "@absolutejs/pwa": "0.13.0",
10
+ "@absolutejs/auth": "0.75.0",
11
+ "@absolutejs/devices": "0.7.0",
12
+ "@absolutejs/devices-capacitor": "0.8.0",
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",
@@ -24,7 +25,7 @@
24
25
  },
25
26
  "description": "A fullstack meta-framework for building web applications with TypeScript",
26
27
  "devDependencies": {
27
- "@absolutejs/dispatch": "0.8.0",
28
+ "@absolutejs/dispatch": "0.9.0",
28
29
  "@absolutejs/manifest": "0.9.0",
29
30
  "@absolutejs/scoped-state": "0.2.2",
30
31
  "@absolutejs/sync": "2.29.0",
@@ -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.25",
505
+ "version": "0.20.0-beta.27",
505
506
  "workspaces": [
506
507
  "tests/fixtures/*",
507
508
  "tests/fixtures/_packages/*"