@multiplatform.one/core 6.4.0 → 6.4.1

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@multiplatform.one/core",
3
- "version": "6.4.0",
3
+ "version": "6.4.1",
4
4
  "description": "Core framework shell, provider composition, and layout factories for multiplatform.one",
5
5
  "keywords": [
6
6
  "app",
@@ -46,12 +46,11 @@
46
46
  "@tanstack/react-form-devtools": "0.2.22",
47
47
  "@tanstack/react-pacer-devtools": "^0.7.0",
48
48
  "react-cookie": "^8.1.2",
49
- "@multiplatform.one/store": "6.4.0",
50
- "@multiplatform.one/i18n": "6.4.0",
51
- "@multiplatform.one/platform": "6.4.0",
52
- "@multiplatform.one/web3": "6.4.0",
53
- "@multiplatform.one/theme": "6.4.0",
54
- "@multiplatform.one/logger": "6.4.0"
49
+ "@multiplatform.one/i18n": "6.4.1",
50
+ "@multiplatform.one/logger": "6.4.1",
51
+ "@multiplatform.one/platform": "6.4.1",
52
+ "@multiplatform.one/store": "6.4.1",
53
+ "@multiplatform.one/theme": "6.4.1"
55
54
  },
56
55
  "devDependencies": {
57
56
  "@sentry/react": "^10.51.0",
@@ -67,8 +66,8 @@
67
66
  "react-native-safe-area-context": "~5.7.0",
68
67
  "tamagui": "2.0.0-rc.41",
69
68
  "typescript": "~5.9.3",
70
- "@multiplatform.one/frappe": "6.4.0",
71
- "@multiplatform.one/web3": "6.4.0"
69
+ "@multiplatform.one/frappe": "6.4.1",
70
+ "@multiplatform.one/web3": "6.4.1"
72
71
  },
73
72
  "peerDependencies": {
74
73
  "@sentry/react": "^9.0.0",
@@ -84,10 +83,10 @@
84
83
  "react-native-gesture-handler": ">=2.0.0",
85
84
  "react-native-safe-area-context": ">=4.0.0",
86
85
  "tamagui": "^2.0.0-rc",
87
- "@multiplatform.one/frappe": "^6.4.0",
88
- "@multiplatform.one/frappe-ui": "^6.4.0",
89
- "@multiplatform.one/keycloak": "^6.4.0",
90
- "@multiplatform.one/web3": "^6.4.0"
86
+ "@multiplatform.one/frappe": "^6.4.1",
87
+ "@multiplatform.one/frappe-ui": "^6.4.1",
88
+ "@multiplatform.one/keycloak": "^6.4.1",
89
+ "@multiplatform.one/web3": "^6.4.1"
91
90
  },
92
91
  "peerDependenciesMeta": {
93
92
  "@multiplatform.one/web3": {
@@ -1,132 +0,0 @@
1
- import { type ComponentType, type PropsWithChildren } from "react";
2
- import type { ThemeConfig } from "@multiplatform.one/theme";
3
- export type ProviderComponent = ComponentType<PropsWithChildren>;
4
- /**
5
- * Follow the page origin when a loopback-configured backend is opened from a
6
- * non-loopback host. Dev configs point at `http://localhost:8000`, which is
7
- * correct on the dev machine but breaks the moment the app is opened via a
8
- * LAN IP (`http://10.x.x.x:3456` → the API and the Socket.IO handshake would
9
- * target the *visitor's* machine, and Chromium's Local Network Access policy
10
- * flags the cross-origin loopback fetch). Rewriting only the hostname keeps
11
- * the configured scheme and port, and only ever triggers in a browser whose
12
- * page host is itself not loopback — SSR and same-machine dev are untouched.
13
- */
14
- export declare function followPageOriginForLoopback(configured: string): string;
15
- export interface TanstackConfig {
16
- /** Show React Query devtools (web only, ignored on native and in Storybook). */
17
- debug?: boolean;
18
- /** Options forwarded to the QueryClient constructor. */
19
- queryClientOptions?: Record<string, unknown>;
20
- /**
21
- * Pass `useUserScheme` from `one` / `@vxrn/color-scheme` so the theme
22
- * devtools panel can control the color scheme (light / dark / system).
23
- */
24
- useUserScheme?: () => {
25
- setting: "system" | "light" | "dark";
26
- value: "light" | "dark";
27
- set: (s: "system" | "light" | "dark") => void;
28
- };
29
- /**
30
- * Tamagui config object (from `createTamagui()`). When provided, the
31
- * TanStack Devtools theme panel extracts `$color1`–`$color12` directly
32
- * from the config's themes for the color line visualizer.
33
- * Passed automatically by `createApp()` from the theme config.
34
- */
35
- tamaguiConfig?: unknown;
36
- }
37
- export interface KeycloakConfig {
38
- /** Force-enable or disable. When omitted, reads KEYCLOAK_ENABLED from env config. */
39
- enabled?: boolean;
40
- baseUrl?: string;
41
- clientId?: string;
42
- publicClientId?: string;
43
- realm?: string;
44
- debug?: boolean;
45
- iframeSso?: boolean;
46
- loginRedirectUri?: string;
47
- messageHandlerKeys?: string[];
48
- /** Better Auth server base URL (native sign-in). When omitted, reads
49
- * BETTER_AUTH_BASE_URL, then falls back to BASE_URL (the app server proxies
50
- * /api/auth). */
51
- betterAuthBaseUrl?: string;
52
- /** App scheme for the Expo auth-session redirect (native). */
53
- expoScheme?: string;
54
- }
55
- export interface FrappeConfig {
56
- /** Force-enable or disable. When omitted, reads FRAPPE_ENABLED from env config. */
57
- enabled?: boolean;
58
- baseURL?: string;
59
- /**
60
- * Override port for Socket.IO realtime connection (e.g. 9000 in dev).
61
- * Omit in production behind a reverse proxy.
62
- */
63
- socketPort?: number;
64
- auth?: {
65
- useToken?: boolean;
66
- token?: string | (() => string | Promise<string>);
67
- type?: string;
68
- };
69
- }
70
- export interface Web3AppConfig {
71
- /** Force-enable or disable. When omitted, reads WEB3_ENABLED from env config. */
72
- enabled?: boolean;
73
- walletConnectProjectId?: string;
74
- appName?: string;
75
- appDescription?: string;
76
- appUrl?: string;
77
- appIcon?: string;
78
- enableTestnets?: boolean;
79
- /** Add the local dev chain (`make localnet`). When omitted, reads WEB3_LOCALNET_ENABLED. */
80
- localnet?: boolean;
81
- /** Local EVM JSON-RPC endpoint for localnet. When omitted, reads WEB3_EVM_RPC. */
82
- localnetRpcUrl?: string;
83
- /** Solana JSON-RPC endpoint. When omitted, reads WEB3_SOLANA_RPC. */
84
- solanaRpcUrl?: string;
85
- /** Sui JSON-RPC endpoint. When omitted, reads WEB3_SUI_RPC. */
86
- suiRpcUrl?: string;
87
- /** Native: URL serving the wallet WebView HTML. When omitted, reads WEB3_WEBVIEW_URL. */
88
- webViewUrl?: string;
89
- /** E2E only (native): route connect through the in-WebView mock wallet. When omitted, reads WEB3_MOCK_WALLET. */
90
- mockWallet?: boolean;
91
- }
92
- export interface CreateAppConfig {
93
- /** ThemeConfig to pass to the built-in ThemeProvider. */
94
- theme?: ThemeConfig;
95
- /**
96
- * Additional providers composed outermost-to-innermost order.
97
- * Each component receives `{ children }` and must render them.
98
- * The first provider in the array becomes the outermost wrapper.
99
- */
100
- providers?: ProviderComponent[];
101
- /** TanStack Query provider with optional devtools. Pass `true` for defaults. */
102
- tanstack?: TanstackConfig | boolean;
103
- /** Keycloak auth provider (lazy-loaded). Pass `true` to read all settings from env config. */
104
- keycloak?: KeycloakConfig | boolean;
105
- /** Frappe provider (lazy-loaded). Pass `true` to read all settings from env config. */
106
- frappe?: FrappeConfig | boolean;
107
- /** Web3 wallet provider (lazy-loaded). Pass `true` to read all settings from env config. */
108
- web3?: Web3AppConfig | boolean;
109
- }
110
- export interface AppProviderProps extends PropsWithChildren {
111
- /** System color scheme for theme resolution. */
112
- systemTheme?: "light" | "dark";
113
- /** Override the theme config set at createApp() time (useful for Storybook). */
114
- themeConfig?: ThemeConfig;
115
- }
116
- /**
117
- * Creates a pre-configured app shell with composable providers.
118
- *
119
- * Returns `{ AppProvider, withApp, useAppConfig }`.
120
- *
121
- * Provider composition order (outermost → innermost):
122
- * config context → TanStack → Web3 → Keycloak → Frappe → custom providers → ThemeProvider → children
123
- */
124
- export declare function createApp(appConfig: CreateAppConfig): {
125
- AppProvider: {
126
- ({ children, systemTheme, themeConfig }: AppProviderProps): import("react/jsx-runtime").JSX.Element;
127
- displayName: string;
128
- };
129
- withApp: <P extends Record<string, unknown>>(Screen: ComponentType<P>) => ComponentType<P>;
130
- useAppConfig: () => CreateAppConfig;
131
- };
132
- //# sourceMappingURL=CreateApp.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"CreateApp.d.ts","sourceRoot":"","sources":["../../src/app/CreateApp.tsx"],"names":[],"mappings":"AAAA,OAAc,EAKZ,KAAK,aAAa,EAClB,KAAK,iBAAiB,EAEvB,MAAM,OAAO,CAAC;AAEf,OAAO,KAAK,EAAE,WAAW,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,aAAa,GAAG,OAAO,CAAC;CAChC;AAED,MAAM,WAAW,gBAAiB,SAAQ,iBAAiB;IACzD,gDAAgD;IAChD,WAAW,CAAC,EAAE,OAAO,GAAG,MAAM,CAAC;IAC/B,gFAAgF;IAChF,WAAW,CAAC,EAAE,WAAW,CAAC;CAC3B;AAQD;;;;;;;GAOG;AACH,wBAAgB,SAAS,CAAC,SAAS,EAAE,eAAe;;iDAsLW,gBAAgB;;;cA2B5D,CAAC,SAAS,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,UAAU,aAAa,CAAC,CAAC,CAAC,KAAG,aAAa,CAAC,CAAC,CAAC;wBAatE,eAAe;EAKzC"}
@@ -1,13 +0,0 @@
1
- import { type ComponentType } from "react";
2
- import type { CreateRootLayoutConfig } from "./rootLayoutShared";
3
- export type { CreateRootLayoutConfig, HeadConfig, RootLayoutProps, RootLoaderData, SentryConfig, } from "./rootLayoutShared";
4
- /**
5
- * Creates a root layout component (universal fallback for Tauri / desktop).
6
- *
7
- * Handles i18n initialization, color-scheme detection via `matchMedia`,
8
- * and wraps content in `LoadProgressBar` → `AppProvider` → `RootLayout` → `<Slot />`.
9
- *
10
- * `head` and `sentry` config options are ignored in the universal fallback.
11
- */
12
- export declare function createRootLayout(cfg: CreateRootLayoutConfig): ComponentType;
13
- //# sourceMappingURL=CreateRootLayout.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"CreateRootLayout.d.ts","sourceRoot":"","sources":["../../src/app/CreateRootLayout.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAuB,KAAK,aAAa,EAAkB,MAAM,OAAO,CAAC;AAKhF,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,oBAAoB,CAAC;AAEjE,YAAY,EACV,sBAAsB,EACtB,UAAU,EACV,eAAe,EACf,cAAc,EACd,YAAY,GACb,MAAM,oBAAoB,CAAC;AAE5B;;;;;;;GAOG;AACH,wBAAgB,gBAAgB,CAAC,GAAG,EAAE,sBAAsB,GAAG,aAAa,CAwC3E"}
@@ -1,14 +0,0 @@
1
- import type { ComponentType } from "react";
2
- import type { CreateRootLayoutConfig } from "./rootLayoutShared";
3
- export type { CreateRootLayoutConfig, HeadConfig, RootLayoutProps, RootLoaderData, SentryConfig, } from "./rootLayoutShared";
4
- /**
5
- * Creates a root layout component for **React Native** (iOS + Android).
6
- *
7
- * Handles i18n initialization, color-scheme detection via `@vxrn/color-scheme`,
8
- * and wraps content in `GestureHandlerRootView` → `SafeAreaProvider` →
9
- * `SchemeProvider` → `AppProvider` → `RootLayout` → `<Slot />`.
10
- *
11
- * `head` and `sentry` config options are ignored on native.
12
- */
13
- export declare function createRootLayout(cfg: CreateRootLayoutConfig): ComponentType;
14
- //# sourceMappingURL=CreateRootLayout.native.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"CreateRootLayout.native.d.ts","sourceRoot":"","sources":["../../src/app/CreateRootLayout.native.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,aAAa,EAAa,MAAM,OAAO,CAAC;AAQtD,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,oBAAoB,CAAC;AAEjE,YAAY,EACV,sBAAsB,EACtB,UAAU,EACV,eAAe,EACf,cAAc,EACd,YAAY,GACb,MAAM,oBAAoB,CAAC;AAM5B;;;;;;;;GAQG;AACH,wBAAgB,gBAAgB,CAAC,GAAG,EAAE,sBAAsB,GAAG,aAAa,CAsC3E"}
@@ -1,21 +0,0 @@
1
- import type { ComponentType } from "react";
2
- import type { CreateRootLayoutConfig } from "./rootLayoutShared";
3
- export type { CreateRootLayoutConfig, HeadConfig, RootLayoutProps, RootLoaderData, SentryConfig, } from "./rootLayoutShared";
4
- /**
5
- * Creates a root layout component for **web** (browser + SSR).
6
- *
7
- * Handles i18n initialization, Sentry setup, color-scheme detection via
8
- * `SchemeProvider` (blocking script + localStorage – no cookie needed),
9
- * `<Head>` meta tags, `<LoadProgressBar>`, and wraps content in
10
- * `SchemeProvider` → `CookiesProvider` → `AppProvider` → `RootLayout` → `<Slot />`.
11
- *
12
- * Light/dark scheme: handled by `@vxrn/color-scheme` `SchemeProvider` which
13
- * injects a blocking `<script>` that reads `localStorage` / `matchMedia`
14
- * before the first paint. Works even when cookies are disabled.
15
- *
16
- * Theme properties (color theme, padding, borderRadius, …): synced via
17
- * `mp.preset` + `mp.overrides` cookies so SSR can render with the user's full
18
- * theme. The cookies are populated by `useTheme` in `@multiplatform.one/theme`.
19
- */
20
- export declare function createRootLayout(cfg: CreateRootLayoutConfig): ComponentType;
21
- //# sourceMappingURL=CreateRootLayout.web.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"CreateRootLayout.web.d.ts","sourceRoot":"","sources":["../../src/app/CreateRootLayout.web.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,aAAa,EAAa,MAAM,OAAO,CAAC;AAOtD,OAAO,KAAK,EAAE,sBAAsB,EAAkB,MAAM,oBAAoB,CAAC;AAEjF,YAAY,EACV,sBAAsB,EACtB,UAAU,EACV,eAAe,EACf,cAAc,EACd,YAAY,GACb,MAAM,oBAAoB,CAAC;AAE5B;;;;;;;;;;;;;;;GAeG;AACH,wBAAgB,gBAAgB,CAAC,GAAG,EAAE,sBAAsB,GAAG,aAAa,CAoL3E"}
@@ -1,7 +0,0 @@
1
- import type { TanstackConfig } from "./CreateApp";
2
- export interface TanstackDevtoolsProps {
3
- resolvedScheme: "light" | "dark";
4
- tanstackConfig: TanstackConfig;
5
- }
6
- export default function TanstackDevtoolsWrapper({ resolvedScheme, tanstackConfig, }: TanstackDevtoolsProps): import("react/jsx-runtime").JSX.Element;
7
- //# sourceMappingURL=TanstackDevtools.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"TanstackDevtools.d.ts","sourceRoot":"","sources":["../../src/app/TanstackDevtools.tsx"],"names":[],"mappings":"AAQA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAsBlD,MAAM,WAAW,qBAAqB;IACpC,cAAc,EAAE,OAAO,GAAG,MAAM,CAAC;IACjC,cAAc,EAAE,cAAc,CAAC;CAChC;AAkED,MAAM,CAAC,OAAO,UAAU,uBAAuB,CAAC,EAC9C,cAAc,EACd,cAAc,GACf,EAAE,qBAAqB,2CA0CvB"}
@@ -1,3 +0,0 @@
1
- import type { ProviderComponent, TanstackConfig } from "./CreateApp";
2
- export declare function createTanstackProvider(tanstackConfig: TanstackConfig): ProviderComponent;
3
- //# sourceMappingURL=TanstackProvider.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"TanstackProvider.d.ts","sourceRoot":"","sources":["../../src/app/TanstackProvider.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,iBAAiB,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAIrE,wBAAgB,sBAAsB,CAAC,cAAc,EAAE,cAAc,GAAG,iBAAiB,CAiCxF"}
@@ -1,28 +0,0 @@
1
- /**
2
- * ## Platform File Extension Conventions
3
- *
4
- * The framework uses platform-specific file extensions for automatic
5
- * bundler resolution. When multiple variants exist for a module, the
6
- * bundler picks the most specific match for the current target:
7
- *
8
- * | Extension | Target |
9
- * | ---------------- | --------------------------------------- |
10
- * | `.web.tsx` | Web (browser + SSR) |
11
- * | `.native.tsx` | React Native (iOS + Android) |
12
- * | `.ios.tsx` | iOS only |
13
- * | `.android.tsx` | Android only |
14
- * | `.tauri.tsx` | Tauri desktop (macOS, Windows, Linux) |
15
- * | `.storybook-expo.ts` | Storybook running in Expo |
16
- * | (no suffix) | Universal fallback / shared code |
17
- *
18
- * Resolution priority (most → least specific):
19
- * `.ios.tsx` > `.native.tsx` > `.tsx` (on iOS)
20
- * `.web.tsx` > `.tsx` (on web)
21
- * `.tauri.tsx` > `.tsx` (on Tauri)
22
- *
23
- * When creating platform-specific variants, always keep a universal
24
- * fallback file (e.g. `index.ts`) that exports the default API.
25
- */
26
- export * from "./CreateApp";
27
- export * from "./CreateRootLayout";
28
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/app/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,cAAc,aAAa,CAAC;AAC5B,cAAc,oBAAoB,CAAC"}
@@ -1,3 +0,0 @@
1
- declare const _default: import("react").LazyExoticComponent<typeof import("@multiplatform.one/web3/native").WalletProvider>;
2
- export default _default;
3
- //# sourceMappingURL=loadWalletProvider.native.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"loadWalletProvider.native.d.ts","sourceRoot":"","sources":["../../src/app/loadWalletProvider.native.ts"],"names":[],"mappings":";AAWA,wBAEE"}
@@ -1,4 +0,0 @@
1
- import { type ComponentType, type PropsWithChildren } from "react";
2
- declare const WalletProvider: ComponentType<PropsWithChildren<Record<string, unknown>>>;
3
- export default WalletProvider;
4
- //# sourceMappingURL=loadWalletProvider.web.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"loadWalletProvider.web.d.ts","sourceRoot":"","sources":["../../src/app/loadWalletProvider.web.ts"],"names":[],"mappings":"AAAA,OAAO,EAA2B,KAAK,aAAa,EAAE,KAAK,iBAAiB,EAAE,MAAM,OAAO,CAAC;AAO5F,QAAA,MAAM,cAAc,EAAE,aAAa,CAAC,iBAAiB,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,CACrC,CAAC;AAC1C,eAAe,cAAc,CAAC"}
@@ -1,67 +0,0 @@
1
- import type { ComponentType, PropsWithChildren } from "react";
2
- import type { I18nConfigOptions } from "@multiplatform.one/i18n";
3
- import type { AppProviderProps } from "./CreateApp";
4
- export interface HeadConfig {
5
- /** Path to favicon (e.g. "/favicon.svg"). */
6
- favicon?: string;
7
- /**
8
- * Preload + declare the default Inter faces (400/700) in the document
9
- * head with `font-display: optional` so first paint is font-stable
10
- * (LC-33 FONT-STABLE-MOUNT / DF-17): without a head declaration the
11
- * Tamagui font CSS arrives as a JS side effect and the fallback→Inter
12
- * swap reflows settled text. Defaults to true; requires the app to
13
- * serve `/fonts/inter-400.woff2` + `/fonts/inter-700.woff2` from its
14
- * public directory. Set false for apps that don't use Inter or ship
15
- * their own head declaration.
16
- */
17
- interFonts?: boolean;
18
- }
19
- export interface SentryConfig {
20
- /** Sentry DSN. When provided, Sentry is initialized on the web client. */
21
- dsn?: string;
22
- }
23
- /** Shape of the root layout loader data used by createRootLayout. */
24
- export interface RootLoaderData {
25
- cookieHeader?: string;
26
- /** Language detected from request (cookie or Accept-Language header). */
27
- detectedLanguage?: string;
28
- /** Server-side session from the auth loader (used for SSR hydration). */
29
- session?: unknown;
30
- [key: string]: unknown;
31
- }
32
- /**
33
- * Props accepted by the `RootLayout` component.
34
- *
35
- * `ssrSession` is provided only on web during SSR so auth-related UI
36
- * (e.g. user name, logout button) can render on the first paint without
37
- * waiting for a client-side session fetch.
38
- */
39
- export interface RootLayoutProps extends PropsWithChildren {
40
- /** Server-side session data for SSR hydration (web only). */
41
- ssrSession?: unknown;
42
- }
43
- /**
44
- * Configuration for `createRootLayout()`.
45
- *
46
- * The factory initializes i18n, detects color scheme, wraps with the
47
- * appropriate platform providers, and renders the RootLayout + Slot.
48
- */
49
- export interface CreateRootLayoutConfig {
50
- /** The AppProvider component returned from `createApp()`. */
51
- AppProvider: ComponentType<AppProviderProps>;
52
- /** Root layout shell that wraps route content (navigation chrome, header, etc.). */
53
- RootLayout: ComponentType<RootLayoutProps>;
54
- /** i18n configuration. i18next is initialized as a side-effect when the factory is called. */
55
- i18n: I18nConfigOptions;
56
- /** `<Head>` meta tags for web. Ignored on native. */
57
- head?: HeadConfig;
58
- /** Sentry error tracking. Initialized on the web client only. Ignored on native. */
59
- sentry?: SentryConfig;
60
- /**
61
- * Native font map returned by `importFonts()` from `@package/fonts`.
62
- * Passed to `useFonts()` so custom fonts load before the first render.
63
- * Ignored on web (fonts are loaded via CSS side-effect imports).
64
- */
65
- fonts?: Record<string, number>;
66
- }
67
- //# sourceMappingURL=rootLayoutShared.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"rootLayoutShared.d.ts","sourceRoot":"","sources":["../../src/app/rootLayoutShared.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,iBAAiB,EAAE,MAAM,OAAO,CAAC;AAC9D,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,yBAAyB,CAAC;AACjE,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAC;AAEpD,MAAM,WAAW,UAAU;IACzB,6CAA6C;IAC7C,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB;;;;;;;;;OASG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC;CACtB;AAED,MAAM,WAAW,YAAY;IAC3B,0EAA0E;IAC1E,GAAG,CAAC,EAAE,MAAM,CAAC;CACd;AAED,qEAAqE;AACrE,MAAM,WAAW,cAAc;IAC7B,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,yEAAyE;IACzE,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,yEAAyE;IACzE,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC;CACxB;AAED;;;;;;GAMG;AACH,MAAM,WAAW,eAAgB,SAAQ,iBAAiB;IACxD,6DAA6D;IAC7D,UAAU,CAAC,EAAE,OAAO,CAAC;CACtB;AAED;;;;;GAKG;AACH,MAAM,WAAW,sBAAsB;IACrC,6DAA6D;IAC7D,WAAW,EAAE,aAAa,CAAC,gBAAgB,CAAC,CAAC;IAC7C,oFAAoF;IACpF,UAAU,EAAE,aAAa,CAAC,eAAe,CAAC,CAAC;IAC3C,8FAA8F;IAC9F,IAAI,EAAE,iBAAiB,CAAC;IACxB,qDAAqD;IACrD,IAAI,CAAC,EAAE,UAAU,CAAC;IAClB,oFAAoF;IACpF,MAAM,CAAC,EAAE,YAAY,CAAC;IACtB;;;;OAIG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;CAChC"}
@@ -1,3 +0,0 @@
1
- import type { ProviderComponent, TanstackConfig } from "./CreateApp";
2
- export declare function createTanstackProvider(tanstackConfig: TanstackConfig): ProviderComponent;
3
- //# sourceMappingURL=tanstackProvider.native.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"tanstackProvider.native.d.ts","sourceRoot":"","sources":["../../src/app/tanstackProvider.native.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,iBAAiB,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAErE,wBAAgB,sBAAsB,CAAC,cAAc,EAAE,cAAc,GAAG,iBAAiB,CAQxF"}
@@ -1,3 +0,0 @@
1
- /** Health check handler compatible with One framework +api.ts convention. */
2
- export declare function GET(_request: Request): Promise<Response>;
3
- //# sourceMappingURL=healthz.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"healthz.d.ts","sourceRoot":"","sources":["../src/healthz.ts"],"names":[],"mappings":"AAAA,6EAA6E;AAC7E,wBAAsB,GAAG,CAAC,QAAQ,EAAE,OAAO,qBAE1C"}
package/types/index.d.ts DELETED
@@ -1,3 +0,0 @@
1
- export * from "./app/index";
2
- export * from "./layouts/index";
3
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAC;AAC5B,cAAc,iBAAiB,CAAC"}
@@ -1,57 +0,0 @@
1
- import type { ComponentType, ReactNode } from "react";
2
- import { type WithLayout } from "@multiplatform.one/platform";
3
- export type SafeAreaEdge = "top" | "bottom" | "left" | "right";
4
- export interface CreateDefaultLayoutOptions {
5
- /**
6
- * SafeArea wrapper component.
7
- * Pass SafeAreaWrapper from @multiplatform.one/components.
8
- */
9
- SafeAreaWrapper?: ComponentType<any>;
10
- /**
11
- * Edges to apply safe area insets to.
12
- * @default ["top", "left", "right"]
13
- */
14
- safeAreaEdges?: SafeAreaEdge[];
15
- /**
16
- * Background color token for the safe area wrapper.
17
- * @default "$background"
18
- */
19
- safeAreaBackground?: string;
20
- /**
21
- * KeyboardAvoiding wrapper component.
22
- * Pass KeyboardAvoidingWrapper from @multiplatform.one/components.
23
- */
24
- KeyboardAvoidingWrapper?: ComponentType<any>;
25
- /**
26
- * Background color token for the content area.
27
- * @default "$background"
28
- */
29
- background?: string;
30
- /**
31
- * Toast component to render inside the layout.
32
- */
33
- Toast?: ComponentType;
34
- /**
35
- * Debug overlay configuration.
36
- * - `true`: enable a minimal debug overlay (visible when DEBUG=1)
37
- * - `ComponentType`: render this component as the debug view when DEBUG=1
38
- */
39
- debug?: boolean | ComponentType;
40
- /**
41
- * Additional layout HOCs to compose with the default layout.
42
- */
43
- extraLayouts?: WithLayout[];
44
- }
45
- export interface DefaultLayoutProps {
46
- children: ReactNode;
47
- }
48
- /**
49
- * Factory that creates a DefaultLayout component and withDefaultLayout HOC
50
- * from configuration. Handles SafeArea, KeyboardAvoiding, fullscreen YStack,
51
- * Toast, and optional debug overlay composition.
52
- */
53
- export declare function createDefaultLayout(options?: CreateDefaultLayoutOptions): {
54
- DefaultLayout: ({ children }: DefaultLayoutProps) => import("react/jsx-runtime").JSX.Element;
55
- withDefaultLayout: WithLayout;
56
- };
57
- //# sourceMappingURL=CreateDefaultLayout.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"CreateDefaultLayout.d.ts","sourceRoot":"","sources":["../../src/layouts/CreateDefaultLayout.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAGtD,OAAO,EAAoB,KAAK,UAAU,EAAE,MAAM,6BAA6B,CAAC;AAEhF,MAAM,MAAM,YAAY,GAAG,KAAK,GAAG,QAAQ,GAAG,MAAM,GAAG,OAAO,CAAC;AAE/D,MAAM,WAAW,0BAA0B;IACzC;;;OAGG;IACH,eAAe,CAAC,EAAE,aAAa,CAAC,GAAG,CAAC,CAAC;IAErC;;;OAGG;IACH,aAAa,CAAC,EAAE,YAAY,EAAE,CAAC;IAE/B;;;OAGG;IACH,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAE5B;;;OAGG;IACH,uBAAuB,CAAC,EAAE,aAAa,CAAC,GAAG,CAAC,CAAC;IAE7C;;;OAGG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IAEpB;;OAEG;IACH,KAAK,CAAC,EAAE,aAAa,CAAC;IAEtB;;;;OAIG;IACH,KAAK,CAAC,EAAE,OAAO,GAAG,aAAa,CAAC;IAEhC;;OAEG;IACH,YAAY,CAAC,EAAE,UAAU,EAAE,CAAC;CAC7B;AAED,MAAM,WAAW,kBAAkB;IACjC,QAAQ,EAAE,SAAS,CAAC;CACrB;AAED;;;;GAIG;AACH,wBAAgB,mBAAmB,CAAC,OAAO,GAAE,0BAA+B;kCAYrC,kBAAkB;;EAiDxD"}
@@ -1,3 +0,0 @@
1
- export { createDefaultLayout } from "./CreateDefaultLayout";
2
- export type { CreateDefaultLayoutOptions, DefaultLayoutProps, SafeAreaEdge, } from "./CreateDefaultLayout";
3
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/layouts/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAC5D,YAAY,EACV,0BAA0B,EAC1B,kBAAkB,EAClB,YAAY,GACb,MAAM,uBAAuB,CAAC"}