@eazo/sdk 0.13.0 → 0.15.0
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/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/internal/banner-ui/app-info.d.ts +78 -0
- package/dist/internal/banner-ui/app-info.d.ts.map +1 -0
- package/dist/internal/banner-ui/app-info.js +62 -0
- package/dist/internal/banner-ui/app-info.js.map +1 -0
- package/dist/internal/banner-ui/icons.d.ts +18 -4
- package/dist/internal/banner-ui/icons.d.ts.map +1 -1
- package/dist/internal/banner-ui/icons.js +58 -4
- package/dist/internal/banner-ui/icons.js.map +1 -1
- package/dist/internal/banner-ui/index.d.ts +16 -3
- package/dist/internal/banner-ui/index.d.ts.map +1 -1
- package/dist/internal/banner-ui/index.js +377 -41
- package/dist/internal/banner-ui/index.js.map +1 -1
- package/dist/internal/banner-ui/initial-info.d.ts +4 -0
- package/dist/internal/banner-ui/initial-info.d.ts.map +1 -0
- package/dist/internal/banner-ui/initial-info.js +22 -0
- package/dist/internal/banner-ui/initial-info.js.map +1 -0
- package/dist/internal/banner-ui/qr.d.ts +22 -0
- package/dist/internal/banner-ui/qr.d.ts.map +1 -0
- package/dist/internal/banner-ui/qr.js +95 -0
- package/dist/internal/banner-ui/qr.js.map +1 -0
- package/dist/internal/banner-ui/store-links.d.ts +38 -0
- package/dist/internal/banner-ui/store-links.d.ts.map +1 -1
- package/dist/internal/banner-ui/store-links.js +49 -0
- package/dist/internal/banner-ui/store-links.js.map +1 -1
- package/dist/internal/banner-ui/styles.d.ts +4 -2
- package/dist/internal/banner-ui/styles.d.ts.map +1 -1
- package/dist/internal/banner-ui/styles.js +709 -66
- package/dist/internal/banner-ui/styles.js.map +1 -1
- package/dist/react.d.ts +26 -1
- package/dist/react.d.ts.map +1 -1
- package/dist/react.js +42 -2
- package/dist/react.js.map +1 -1
- package/dist/react.server.d.ts +22 -0
- package/dist/react.server.d.ts.map +1 -0
- package/dist/react.server.js +118 -0
- package/dist/react.server.js.map +1 -0
- package/dist/server.d.ts +2 -0
- package/dist/server.d.ts.map +1 -1
- package/dist/server.js +13 -1
- package/dist/server.js.map +1 -1
- package/package.json +7 -2
package/dist/index.d.ts
CHANGED
|
@@ -11,5 +11,6 @@ export type { MemoryActionParams } from "./internal/capabilities/memory";
|
|
|
11
11
|
export type { ChatCompletion, ChatCompletionChunk, ChatCompletionCreateParamsNonStreaming, ChatCompletionCreateParamsStreaming, } from "./internal/capabilities/ai";
|
|
12
12
|
export type { ShareComposeInput, ShareComposeResult, } from "./internal/capabilities/share";
|
|
13
13
|
export type { NotificationsSubscriptionResult } from "./internal/capabilities/notifications";
|
|
14
|
+
export type { PublicAppData, PublicAppInfo, PublicAppViewer, } from "./internal/banner-ui/app-info";
|
|
14
15
|
export type { User, DeviceContext, AuthState, EazoState } from "./types";
|
|
15
16
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,8BAA8B,CAAC;AACpD,OAAO,EAAE,MAAM,EAAE,MAAM,gCAAgC,CAAC;AACxD,OAAO,EAAE,OAAO,EAAE,MAAM,iCAAiC,CAAC;AAC1D,OAAO,EAAE,EAAE,EAAE,MAAM,4BAA4B,CAAC;AAChD,OAAO,EAAE,MAAM,EAAE,MAAM,gCAAgC,CAAC;AACxD,OAAO,EAAE,KAAK,EAAE,MAAM,+BAA+B,CAAC;AACtD,OAAO,EAAE,aAAa,EAAE,MAAM,uCAAuC,CAAC;AAEtE,YAAY,EAAE,YAAY,EAAE,MAAM,8BAA8B,CAAC;AACjE,YAAY,EAAE,kBAAkB,EAAE,YAAY,EAAE,MAAM,iCAAiC,CAAC;AACxF,YAAY,EAAE,kBAAkB,EAAE,MAAM,gCAAgC,CAAC;AACzE,YAA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E,MAAM,SAAS,CAAC"}
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Per-caller flags returned alongside `PublicAppInfo`. Always present
|
|
3
|
+
* (`isOwner: false` for anonymous callers). Extend with more
|
|
4
|
+
* viewer-specific bits as needed; mirrors `PublicAppViewerDto` on the
|
|
5
|
+
* backend.
|
|
6
|
+
*/
|
|
7
|
+
export interface PublicAppViewer {
|
|
8
|
+
/**
|
|
9
|
+
* True when the request carried a valid JWT and the authenticated
|
|
10
|
+
* user owns this app.
|
|
11
|
+
*/
|
|
12
|
+
isOwner: boolean;
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* App entity fields safe to expose publicly. Mirrors `PublicAppDataDto`
|
|
16
|
+
* on the backend.
|
|
17
|
+
*/
|
|
18
|
+
export interface PublicAppData {
|
|
19
|
+
id: string;
|
|
20
|
+
name: string;
|
|
21
|
+
shortTitle?: string;
|
|
22
|
+
/** One-line tagline next to the app name. Sourced from CreatorApp.tagline. */
|
|
23
|
+
tagline?: string;
|
|
24
|
+
/** Long-form description. Sourced from App.description. */
|
|
25
|
+
description?: string;
|
|
26
|
+
/**
|
|
27
|
+
* App logo — emoji glyph or image URL. Sourced from CreatorApp.icon.
|
|
28
|
+
* Distinct from `coverUrl` (the large banner image).
|
|
29
|
+
*/
|
|
30
|
+
icon?: string;
|
|
31
|
+
/** Large cover / banner image URL. Sourced from App.coverUrl. */
|
|
32
|
+
coverUrl?: string;
|
|
33
|
+
category: string[];
|
|
34
|
+
slug: string;
|
|
35
|
+
region?: string;
|
|
36
|
+
showType: string;
|
|
37
|
+
url?: string;
|
|
38
|
+
likeNum: number;
|
|
39
|
+
uv: number;
|
|
40
|
+
commentsCount: number;
|
|
41
|
+
}
|
|
42
|
+
/**
|
|
43
|
+
* Top-level response from `GET /api/apps-open/:appId`. Mirrors
|
|
44
|
+
* `PublicAppInfoDto` on the backend. The entity (`app`) is separated
|
|
45
|
+
* from request-level metadata (`viewer`) so the entity surface stays
|
|
46
|
+
* clean as new per-caller flags get added (favorites, permissions, etc.).
|
|
47
|
+
* The endpoint is anonymous-accessible; `viewer.isOwner` is `false` for
|
|
48
|
+
* unauthenticated callers.
|
|
49
|
+
*/
|
|
50
|
+
export interface PublicAppInfo {
|
|
51
|
+
app: PublicAppData;
|
|
52
|
+
viewer: PublicAppViewer;
|
|
53
|
+
}
|
|
54
|
+
/**
|
|
55
|
+
* Fetches the public profile for the configured app. Returns `null` on
|
|
56
|
+
* any error (network, 404, timeout, malformed response, missing appId)
|
|
57
|
+
* so the caller can render a fallback rather than blowing up — the
|
|
58
|
+
* handoff overlay is a promo surface and should degrade gracefully when
|
|
59
|
+
* the platform is unreachable.
|
|
60
|
+
*
|
|
61
|
+
* Hits `GET <apiBase>/api/apps-open/:appId`. `apiBase` resolves from the
|
|
62
|
+
* caller-supplied `options.apiBase` first (useful when the host already
|
|
63
|
+
* has the value resolved from a server-only env var on the SSR side),
|
|
64
|
+
* then falls back to the SDK's standard chain via `getPlatformApiBase()`.
|
|
65
|
+
*
|
|
66
|
+
* Wraps the request in a 2-second timeout by default. Callers that need
|
|
67
|
+
* a different bound (or want to drive cancellation from their own
|
|
68
|
+
* AbortController) can pass `options.signal`; it composes with the
|
|
69
|
+
* default timeout via `AbortSignal.any`.
|
|
70
|
+
*
|
|
71
|
+
* The endpoint is anonymous — no identity is forwarded. `viewer.isOwner`
|
|
72
|
+
* always returns `false`.
|
|
73
|
+
*/
|
|
74
|
+
export declare function fetchPublicAppInfo(appId: string, options?: {
|
|
75
|
+
signal?: AbortSignal;
|
|
76
|
+
apiBase?: string | null;
|
|
77
|
+
}): Promise<PublicAppInfo | null>;
|
|
78
|
+
//# sourceMappingURL=app-info.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"app-info.d.ts","sourceRoot":"","sources":["../../../src/internal/banner-ui/app-info.ts"],"names":[],"mappings":"AAEA;;;;;GAKG;AACH,MAAM,WAAW,eAAe;IAC9B;;;OAGG;IACH,OAAO,EAAE,OAAO,CAAC;CAClB;AAED;;;GAGG;AACH,MAAM,WAAW,aAAa;IAC5B,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,8EAA8E;IAC9E,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,2DAA2D;IAC3D,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;;OAGG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,iEAAiE;IACjE,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,QAAQ,EAAE,MAAM,EAAE,CAAC;IACnB,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,QAAQ,EAAE,MAAM,CAAC;IACjB,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;IAChB,EAAE,EAAE,MAAM,CAAC;IACX,aAAa,EAAE,MAAM,CAAC;CACvB;AAED;;;;;;;GAOG;AACH,MAAM,WAAW,aAAa;IAC5B,GAAG,EAAE,aAAa,CAAC;IACnB,MAAM,EAAE,eAAe,CAAC;CACzB;AAUD;;;;;;;;;;;;;;;;;;;GAmBG;AACH,wBAAsB,kBAAkB,CACtC,KAAK,EAAE,MAAM,EACb,OAAO,GAAE;IAAE,MAAM,CAAC,EAAE,WAAW,CAAC;IAAC,OAAO,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;CAAO,GAC9D,OAAO,CAAC,aAAa,GAAG,IAAI,CAAC,CA4B/B"}
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.fetchPublicAppInfo = fetchPublicAppInfo;
|
|
4
|
+
const config_1 = require("../config");
|
|
5
|
+
/**
|
|
6
|
+
* Maximum time to wait on the platform before treating the fetch as
|
|
7
|
+
* "no data" and returning null. Bounds the worst-case impact on
|
|
8
|
+
* SSR TTFB when portal-agent-server is slow/unreachable — without this,
|
|
9
|
+
* the server `EazoProvider` would block the response indefinitely.
|
|
10
|
+
*/
|
|
11
|
+
const DEFAULT_TIMEOUT_MS = 2000;
|
|
12
|
+
/**
|
|
13
|
+
* Fetches the public profile for the configured app. Returns `null` on
|
|
14
|
+
* any error (network, 404, timeout, malformed response, missing appId)
|
|
15
|
+
* so the caller can render a fallback rather than blowing up — the
|
|
16
|
+
* handoff overlay is a promo surface and should degrade gracefully when
|
|
17
|
+
* the platform is unreachable.
|
|
18
|
+
*
|
|
19
|
+
* Hits `GET <apiBase>/api/apps-open/:appId`. `apiBase` resolves from the
|
|
20
|
+
* caller-supplied `options.apiBase` first (useful when the host already
|
|
21
|
+
* has the value resolved from a server-only env var on the SSR side),
|
|
22
|
+
* then falls back to the SDK's standard chain via `getPlatformApiBase()`.
|
|
23
|
+
*
|
|
24
|
+
* Wraps the request in a 2-second timeout by default. Callers that need
|
|
25
|
+
* a different bound (or want to drive cancellation from their own
|
|
26
|
+
* AbortController) can pass `options.signal`; it composes with the
|
|
27
|
+
* default timeout via `AbortSignal.any`.
|
|
28
|
+
*
|
|
29
|
+
* The endpoint is anonymous — no identity is forwarded. `viewer.isOwner`
|
|
30
|
+
* always returns `false`.
|
|
31
|
+
*/
|
|
32
|
+
async function fetchPublicAppInfo(appId, options = {}) {
|
|
33
|
+
if (!appId)
|
|
34
|
+
return null;
|
|
35
|
+
const base = options.apiBase
|
|
36
|
+
? options.apiBase.replace(/\/$/, "")
|
|
37
|
+
: (0, config_1.getPlatformApiBase)();
|
|
38
|
+
const url = `${base}/api/apps-open/${encodeURIComponent(appId)}`;
|
|
39
|
+
// Compose the caller signal with the timeout so either can abort:
|
|
40
|
+
// - `AbortSignal.timeout` aborts the fetch after DEFAULT_TIMEOUT_MS
|
|
41
|
+
// - the caller's own signal still works for explicit cancellation
|
|
42
|
+
// `AbortSignal.any` is available in Node 20+, modern browsers, and
|
|
43
|
+
// every runtime targeted by `@eazo/sdk` server / client.
|
|
44
|
+
const timeoutSignal = AbortSignal.timeout(DEFAULT_TIMEOUT_MS);
|
|
45
|
+
const signal = options.signal
|
|
46
|
+
? AbortSignal.any([options.signal, timeoutSignal])
|
|
47
|
+
: timeoutSignal;
|
|
48
|
+
try {
|
|
49
|
+
const res = await fetch(url, { signal });
|
|
50
|
+
if (!res.ok)
|
|
51
|
+
return null;
|
|
52
|
+
// Backend envelope: { code, message, data }. `code === 0` means ok.
|
|
53
|
+
const json = (await res.json());
|
|
54
|
+
if (typeof json.code === "number" && json.code !== 0)
|
|
55
|
+
return null;
|
|
56
|
+
return json.data ?? null;
|
|
57
|
+
}
|
|
58
|
+
catch {
|
|
59
|
+
return null;
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
//# sourceMappingURL=app-info.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"app-info.js","sourceRoot":"","sources":["../../../src/internal/banner-ui/app-info.ts"],"names":[],"mappings":";;AAsFA,gDA+BC;AArHD,sCAA+C;AA0D/C;;;;;GAKG;AACH,MAAM,kBAAkB,GAAG,IAAI,CAAC;AAEhC;;;;;;;;;;;;;;;;;;;GAmBG;AACI,KAAK,UAAU,kBAAkB,CACtC,KAAa,EACb,UAA6D,EAAE;IAE/D,IAAI,CAAC,KAAK;QAAE,OAAO,IAAI,CAAC;IACxB,MAAM,IAAI,GAAG,OAAO,CAAC,OAAO;QAC1B,CAAC,CAAC,OAAO,CAAC,OAAO,CAAC,OAAO,CAAC,KAAK,EAAE,EAAE,CAAC;QACpC,CAAC,CAAC,IAAA,2BAAkB,GAAE,CAAC;IACzB,MAAM,GAAG,GAAG,GAAG,IAAI,kBAAkB,kBAAkB,CAAC,KAAK,CAAC,EAAE,CAAC;IACjE,kEAAkE;IAClE,oEAAoE;IACpE,kEAAkE;IAClE,mEAAmE;IACnE,yDAAyD;IACzD,MAAM,aAAa,GAAG,WAAW,CAAC,OAAO,CAAC,kBAAkB,CAAC,CAAC;IAC9D,MAAM,MAAM,GAAG,OAAO,CAAC,MAAM;QAC3B,CAAC,CAAC,WAAW,CAAC,GAAG,CAAC,CAAC,OAAO,CAAC,MAAM,EAAE,aAAa,CAAC,CAAC;QAClD,CAAC,CAAC,aAAa,CAAC;IAClB,IAAI,CAAC;QACH,MAAM,GAAG,GAAG,MAAM,KAAK,CAAC,GAAG,EAAE,EAAE,MAAM,EAAE,CAAC,CAAC;QACzC,IAAI,CAAC,GAAG,CAAC,EAAE;YAAE,OAAO,IAAI,CAAC;QACzB,oEAAoE;QACpE,MAAM,IAAI,GAAG,CAAC,MAAM,GAAG,CAAC,IAAI,EAAE,CAG7B,CAAC;QACF,IAAI,OAAO,IAAI,CAAC,IAAI,KAAK,QAAQ,IAAI,IAAI,CAAC,IAAI,KAAK,CAAC;YAAE,OAAO,IAAI,CAAC;QAClE,OAAO,IAAI,CAAC,IAAI,IAAI,IAAI,CAAC;IAC3B,CAAC;IAAC,MAAM,CAAC;QACP,OAAO,IAAI,CAAC;IACd,CAAC;AACH,CAAC"}
|
|
@@ -1,12 +1,26 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
|
-
type IconProps = {
|
|
3
|
-
size?: number;
|
|
4
|
-
};
|
|
5
2
|
type LogoProps = {
|
|
6
3
|
width?: number;
|
|
7
4
|
height?: number;
|
|
8
5
|
};
|
|
6
|
+
type IconProps = {
|
|
7
|
+
size?: number;
|
|
8
|
+
};
|
|
9
|
+
export type CapabilityKey = "push" | "share" | "ai" | "auth";
|
|
10
|
+
export interface CapabilityDescriptor {
|
|
11
|
+
key: CapabilityKey;
|
|
12
|
+
label: string;
|
|
13
|
+
}
|
|
14
|
+
export declare const CAPABILITIES: readonly CapabilityDescriptor[];
|
|
15
|
+
export declare function CapIcon({ k, size, }: {
|
|
16
|
+
k: CapabilityKey;
|
|
17
|
+
size?: number;
|
|
18
|
+
}): React.ReactElement | null;
|
|
19
|
+
export declare function ArrowRightIcon({ size }: IconProps): React.ReactElement;
|
|
20
|
+
export declare function RemixIcon({ size }: IconProps): React.ReactElement;
|
|
21
|
+
export declare function HeartIcon({ size }: IconProps): React.ReactElement;
|
|
22
|
+
export declare function ChatIcon({ size }: IconProps): React.ReactElement;
|
|
23
|
+
export declare function EyeIcon({ size }: IconProps): React.ReactElement;
|
|
9
24
|
export declare function EazoLogo({ width, height }: LogoProps): React.ReactElement;
|
|
10
|
-
export declare function CloseIcon({ size }: IconProps): React.ReactElement;
|
|
11
25
|
export {};
|
|
12
26
|
//# sourceMappingURL=icons.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"icons.d.ts","sourceRoot":"","sources":["../../../src/internal/banner-ui/icons.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,KAAK,SAAS,GAAG;IAAE,
|
|
1
|
+
{"version":3,"file":"icons.d.ts","sourceRoot":"","sources":["../../../src/internal/banner-ui/icons.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,KAAK,SAAS,GAAG;IAAE,KAAK,CAAC,EAAE,MAAM,CAAC;IAAC,MAAM,CAAC,EAAE,MAAM,CAAA;CAAE,CAAC;AACrD,KAAK,SAAS,GAAG;IAAE,IAAI,CAAC,EAAE,MAAM,CAAA;CAAE,CAAC;AAEnC,MAAM,MAAM,aAAa,GAAG,MAAM,GAAG,OAAO,GAAG,IAAI,GAAG,MAAM,CAAC;AAE7D,MAAM,WAAW,oBAAoB;IACnC,GAAG,EAAE,aAAa,CAAC;IACnB,KAAK,EAAE,MAAM,CAAC;CACf;AAED,eAAO,MAAM,YAAY,EAAE,SAAS,oBAAoB,EAK9C,CAAC;AAEX,wBAAgB,OAAO,CAAC,EACtB,CAAC,EACD,IAAS,GACV,EAAE;IAAE,CAAC,EAAE,aAAa,CAAC;IAAC,IAAI,CAAC,EAAE,MAAM,CAAA;CAAE,GAAG,KAAK,CAAC,YAAY,GAAG,IAAI,CA+CjE;AAED,wBAAgB,cAAc,CAAC,EAAE,IAAS,EAAE,EAAE,SAAS,GAAG,KAAK,CAAC,YAAY,CAO3E;AAOD,wBAAgB,SAAS,CAAC,EAAE,IAAS,EAAE,EAAE,SAAS,GAAG,KAAK,CAAC,YAAY,CAWtE;AAED,wBAAgB,SAAS,CAAC,EAAE,IAAS,EAAE,EAAE,SAAS,GAAG,KAAK,CAAC,YAAY,CAOtE;AAED,wBAAgB,QAAQ,CAAC,EAAE,IAAS,EAAE,EAAE,SAAS,GAAG,KAAK,CAAC,YAAY,CAQrE;AAED,wBAAgB,OAAO,CAAC,EAAE,IAAS,EAAE,EAAE,SAAS,GAAG,KAAK,CAAC,YAAY,CAQpE;AAED,wBAAgB,QAAQ,CAAC,EAAE,KAAU,EAAE,MAAW,EAAE,EAAE,SAAS,GAAG,KAAK,CAAC,YAAY,CAmCnF"}
|
|
@@ -1,12 +1,66 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CAPABILITIES = void 0;
|
|
4
|
+
exports.CapIcon = CapIcon;
|
|
5
|
+
exports.ArrowRightIcon = ArrowRightIcon;
|
|
6
|
+
exports.RemixIcon = RemixIcon;
|
|
7
|
+
exports.HeartIcon = HeartIcon;
|
|
8
|
+
exports.ChatIcon = ChatIcon;
|
|
9
|
+
exports.EyeIcon = EyeIcon;
|
|
3
10
|
exports.EazoLogo = EazoLogo;
|
|
4
|
-
exports.CloseIcon = CloseIcon;
|
|
5
11
|
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
12
|
+
exports.CAPABILITIES = [
|
|
13
|
+
{ key: "push", label: "Push" },
|
|
14
|
+
{ key: "share", label: "Native share" },
|
|
15
|
+
{ key: "ai", label: "AI gateway" },
|
|
16
|
+
{ key: "auth", label: "One-tap sign-in" },
|
|
17
|
+
];
|
|
18
|
+
function CapIcon({ k, size = 14, }) {
|
|
19
|
+
const props = {
|
|
20
|
+
width: size,
|
|
21
|
+
height: size,
|
|
22
|
+
viewBox: "0 0 24 24",
|
|
23
|
+
fill: "none",
|
|
24
|
+
stroke: "currentColor",
|
|
25
|
+
strokeWidth: 1.6,
|
|
26
|
+
strokeLinecap: "round",
|
|
27
|
+
strokeLinejoin: "round",
|
|
28
|
+
};
|
|
29
|
+
if (k === "push") {
|
|
30
|
+
return ((0, jsx_runtime_1.jsxs)("svg", { ...props, children: [(0, jsx_runtime_1.jsx)("path", { d: "M6 8a6 6 0 0 1 12 0v4l1.6 2.4A1 1 0 0 1 18.77 16H5.23a1 1 0 0 1-.83-1.6L6 12V8Z" }), (0, jsx_runtime_1.jsx)("path", { d: "M10 19a2 2 0 0 0 4 0" })] }));
|
|
31
|
+
}
|
|
32
|
+
if (k === "share") {
|
|
33
|
+
return ((0, jsx_runtime_1.jsxs)("svg", { ...props, children: [(0, jsx_runtime_1.jsx)("circle", { cx: "6", cy: "12", r: "2.2" }), (0, jsx_runtime_1.jsx)("circle", { cx: "17", cy: "6", r: "2.2" }), (0, jsx_runtime_1.jsx)("circle", { cx: "17", cy: "18", r: "2.2" }), (0, jsx_runtime_1.jsx)("path", { d: "m8 11 7-4M8 13l7 4" })] }));
|
|
34
|
+
}
|
|
35
|
+
if (k === "ai") {
|
|
36
|
+
return ((0, jsx_runtime_1.jsxs)("svg", { ...props, children: [(0, jsx_runtime_1.jsx)("path", { d: "M12 3.5 13.4 8 18 9.4 13.4 10.8 12 15.3 10.6 10.8 6 9.4 10.6 8 12 3.5Z" }), (0, jsx_runtime_1.jsx)("path", { d: "M18 14.5 18.7 16.7 20.9 17.4 18.7 18.1 18 20.3 17.3 18.1 15.1 17.4 17.3 16.7 18 14.5Z" })] }));
|
|
37
|
+
}
|
|
38
|
+
if (k === "auth") {
|
|
39
|
+
return ((0, jsx_runtime_1.jsxs)("svg", { ...props, children: [(0, jsx_runtime_1.jsx)("rect", { x: "5", y: "10", width: "14", height: "10", rx: "2" }), (0, jsx_runtime_1.jsx)("path", { d: "M8 10V7a4 4 0 0 1 8 0v3" }), (0, jsx_runtime_1.jsx)("circle", { cx: "12", cy: "15", r: "1.2" })] }));
|
|
40
|
+
}
|
|
41
|
+
return null;
|
|
42
|
+
}
|
|
43
|
+
function ArrowRightIcon({ size = 12 }) {
|
|
44
|
+
return ((0, jsx_runtime_1.jsx)("svg", { width: size, height: size, viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2.4", strokeLinecap: "round", strokeLinejoin: "round", children: (0, jsx_runtime_1.jsx)("path", { d: "M5 12h14M13 6l6 6-6 6" }) }));
|
|
45
|
+
}
|
|
46
|
+
/* Shuffle glyph for the bottom-banner Remix CTA — matches what the
|
|
47
|
+
* mobile shell renders for the same action (`systemImage: "shuffle"`
|
|
48
|
+
* on iOS, Ionicon `shuffle-outline` on Android in
|
|
49
|
+
* `eazo-mobile/src/features/agenticApp/viewer/components/AppViewerImmersive.tsx`
|
|
50
|
+
* and `AppAddressBarMoreSheet.tsx`). Path data is Lucide's `Shuffle`. */
|
|
51
|
+
function RemixIcon({ size = 16 }) {
|
|
52
|
+
return ((0, jsx_runtime_1.jsxs)("svg", { width: size, height: size, viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round", children: [(0, jsx_runtime_1.jsx)("path", { d: "M2 18h1.4c1.3 0 2.5-.6 3.3-1.7l6.1-8.6c.7-1.1 2-1.7 3.3-1.7H22" }), (0, jsx_runtime_1.jsx)("path", { d: "m18 2 4 4-4 4" }), (0, jsx_runtime_1.jsx)("path", { d: "M2 6h1.9c1.5 0 2.9.9 3.6 2.2" }), (0, jsx_runtime_1.jsx)("path", { d: "M22 18h-5.9c-1.3 0-2.6-.7-3.3-1.8l-.5-.8" }), (0, jsx_runtime_1.jsx)("path", { d: "m18 14 4 4-4 4" })] }));
|
|
53
|
+
}
|
|
54
|
+
function HeartIcon({ size = 14 }) {
|
|
55
|
+
return ((0, jsx_runtime_1.jsx)("svg", { width: size, height: size, viewBox: "0 0 24 24", fill: "currentColor", stroke: "currentColor", strokeWidth: "1.4", strokeLinejoin: "round", children: (0, jsx_runtime_1.jsx)("path", { d: "M12 20.5s-7-4.4-7-10A4.5 4.5 0 0 1 12 7a4.5 4.5 0 0 1 7 3.5c0 5.6-7 10-7 10Z" }) }));
|
|
56
|
+
}
|
|
57
|
+
function ChatIcon({ size = 14 }) {
|
|
58
|
+
return ((0, jsx_runtime_1.jsxs)("svg", { width: size, height: size, viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "1.6", strokeLinecap: "round", strokeLinejoin: "round", children: [(0, jsx_runtime_1.jsx)("path", { d: "M21 11.5a8.5 8.5 0 1 1-3.6-6.9L21 4l-1 3.5A8.4 8.4 0 0 1 21 11.5Z" }), (0, jsx_runtime_1.jsx)("path", { d: "M8 11h8M8 14h5" })] }));
|
|
59
|
+
}
|
|
60
|
+
function EyeIcon({ size = 14 }) {
|
|
61
|
+
return ((0, jsx_runtime_1.jsxs)("svg", { width: size, height: size, viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "1.6", strokeLinecap: "round", strokeLinejoin: "round", children: [(0, jsx_runtime_1.jsx)("path", { d: "M2 12s3.5-7 10-7 10 7 10 7-3.5 7-10 7S2 12 2 12Z" }), (0, jsx_runtime_1.jsx)("circle", { cx: "12", cy: "12", r: "3" })] }));
|
|
62
|
+
}
|
|
6
63
|
function EazoLogo({ width = 80, height = 22 }) {
|
|
7
64
|
return ((0, jsx_runtime_1.jsx)("svg", { fill: "none", width: width, height: height, viewBox: "0 0 102 28", xmlns: "http://www.w3.org/2000/svg", "aria-label": "Eazo", role: "img", children: (0, jsx_runtime_1.jsxs)("g", { children: [(0, jsx_runtime_1.jsx)("path", { fill: "#d4614a", d: "M14 0C20.3203 0 23.4804 0.000304997 25.547 1.83089C25.7666 2.02539 25.9746 2.23342 26.1691 2.45296C27.9997 4.51954 28 7.67968 28 14C28 20.3203 27.9997 23.4804 26.1691 25.547C25.9746 25.7666 25.7666 25.9746 25.547 26.1691C23.4805 27.9998 20.3204 28 14 28C7.67962 28 4.51955 27.9997 2.45296 26.1691C2.23342 25.9746 2.02539 25.7666 1.83089 25.547C0.00030903 23.4804 0 20.3203 0 14C0 7.67964 0.000219325 4.51954 1.83089 2.45296C2.02539 2.23342 2.23342 2.02539 2.45296 1.83089C4.51956 0.000342965 7.67972 0 14 0ZM15.8013 3.55924C15.2979 3.42895 14.7602 3.5169 14.3281 3.7985C13.8963 4.08425 13.6117 4.534 13.5477 5.03809C13.3632 6.49627 13.1268 8.35808 13.0179 9.19889C12.9846 9.46368 12.8013 9.68257 12.5451 9.77083C12.4734 9.79604 12.402 9.82575 12.332 9.85514C12.0798 9.95587 11.7895 9.91005 11.5835 9.73779L8.32731 6.98405C7.93412 6.65208 7.41148 6.50551 6.89518 6.57275C6.37955 6.64433 5.92116 6.93006 5.63737 7.35433L4.35107 9.2832C4.06722 9.70766 3.98665 10.229 4.13005 10.7165C4.27347 11.2039 4.62677 11.6072 5.09847 11.8216C6.46683 12.4436 8.21457 13.2386 9.00407 13.6001C9.25066 13.7093 9.41171 13.9484 9.41878 14.2131C9.42094 14.2887 9.42468 14.3607 9.43245 14.4364C9.45399 14.7009 9.31988 14.9527 9.0861 15.0915L5.39128 17.2528C4.94474 17.5176 4.63617 17.9544 4.5459 18.4502C4.45564 18.9503 4.59324 19.4634 4.92074 19.8584L6.40641 21.6449C6.73437 22.0356 7.22223 22.271 7.74284 22.292C8.26327 22.3087 8.76631 22.1067 9.12142 21.7371L12.1315 18.6017C12.2789 18.4463 12.5035 18.3872 12.7091 18.4502C12.7738 18.4712 12.8399 18.4927 12.9062 18.5094C12.9445 18.5178 12.9831 18.5261 13.0213 18.5345C13.2852 18.5976 13.4898 18.8034 13.5511 19.0597L14.5229 23.1453C14.6405 23.6368 14.9723 24.0565 15.4321 24.2961C15.8921 24.5313 16.436 24.5654 16.9224 24.3849L19.1281 23.5612C19.6144 23.3763 19.9955 23.0021 20.174 22.5233C20.3524 22.0485 20.3099 21.5187 20.0578 21.0775C19.3262 19.7914 18.3921 18.1516 17.9717 17.4077C17.8396 17.1767 17.8537 16.8913 18.0081 16.6729C18.0513 16.6099 18.0939 16.5467 18.1323 16.4837C18.2749 16.2568 18.5369 16.13 18.8091 16.151L23.1032 16.5122C23.6221 16.5584 24.1356 16.3822 24.5103 16.0291C24.8849 15.6761 25.0861 15.1845 25.0571 14.6802L24.9329 12.3856C24.9057 11.877 24.6553 11.4057 24.2448 11.0947C23.8343 10.7837 23.3044 10.662 22.7933 10.7586C21.3099 11.036 19.4153 11.393 18.5584 11.5527C18.2912 11.603 18.0175 11.5028 17.8521 11.293C17.8054 11.2341 17.7568 11.1744 17.7062 11.1198C17.5294 10.9181 17.4849 10.6365 17.5911 10.3929L19.2739 6.5306C19.4774 6.06407 19.4626 5.53381 19.234 5.07568C19.0054 4.62203 18.5854 4.28653 18.0822 4.15625L15.8013 3.55924Z" }), (0, jsx_runtime_1.jsx)("path", { fill: "currentColor", d: "M51.1045 22.4374C51.1045 22.7812 50.9227 22.9555 50.5585 22.9555H37.8749C37.5158 22.9555 37.3336 22.7812 37.3336 22.4374V5.18962C37.3336 4.84098 37.5158 4.66663 37.8749 4.66663H50.3714C50.7304 4.66663 50.9124 4.84098 50.9124 5.18962V7.38799C50.9124 7.73662 50.7304 7.91086 50.3714 7.91086H41.0053V11.867H48.2472C48.6063 11.867 48.7885 12.0412 48.7885 12.385V14.443C48.7885 14.7916 48.6063 14.9659 48.2472 14.9659H41.0053V19.7016H50.5585C50.9227 19.7016 51.1045 19.876 51.1045 20.2246V22.4374Z" }), (0, jsx_runtime_1.jsx)("path", { fill: "currentColor", d: "M65.1894 7.75115C65.2602 7.45094 65.4523 7.29602 65.7709 7.29602H67.6674C68.0265 7.29602 68.2087 7.47026 68.2087 7.81889V22.4374C68.2087 22.7812 68.0265 22.9555 67.6674 22.9555H65.7307C65.4121 22.9555 65.2197 22.8055 65.1489 22.5004L64.9568 21.0671C64.3803 21.7547 63.6824 22.297 62.8581 22.6892C62.0388 23.0863 61.1032 23.2799 60.0563 23.2799C58.5493 23.2799 57.1787 22.9216 55.9498 22.1953C54.7158 21.469 53.7448 20.4861 53.0317 19.2465C52.3187 18.0069 51.9598 16.6366 51.9598 15.1452C51.9598 13.6635 52.3187 12.2979 53.0317 11.0583C53.7448 9.81868 54.721 8.83581 55.955 8.11916C57.194 7.39768 58.5594 7.03937 60.0563 7.03937C61.1234 7.03937 62.0641 7.23304 62.8884 7.62525C63.7077 8.01263 64.4056 8.55488 64.9872 9.25216L65.1894 7.75115ZM60.1119 20.0793C61.0222 20.0793 61.8467 19.8711 62.58 19.4498C63.3184 19.0285 63.8947 18.4475 64.3145 17.7067C64.7342 16.961 64.9467 16.1281 64.9467 15.1984C64.9467 14.2687 64.7344 13.4261 64.3197 12.6708C63.905 11.9202 63.3333 11.3247 62.6 10.8889C61.8718 10.4579 61.0476 10.24 60.1373 10.24C59.2371 10.24 58.4279 10.4531 57.7149 10.884C57.0018 11.315 56.4454 11.9057 56.0458 12.6611C55.6413 13.4164 55.4391 14.259 55.4391 15.1984C55.4391 16.1377 55.6363 16.9754 56.0308 17.7114C56.4202 18.4474 56.9764 19.0285 57.6894 19.4498C58.4025 19.8711 59.2066 20.0793 60.1119 20.0793Z" }), (0, jsx_runtime_1.jsx)("path", { fill: "currentColor", d: "M83.6077 22.4373C83.6077 22.7811 83.4257 22.9555 83.0667 22.9555H70.9495C70.5904 22.9555 70.4084 22.7811 70.4084 22.4373V20.9798C70.4084 20.7426 70.4842 20.5247 70.6359 20.3262L78.6112 10.3416H71.0962C70.7371 10.3416 70.5551 10.1674 70.5551 9.82356V7.81883C70.5551 7.4702 70.7371 7.29596 71.0962 7.29596H82.8089C83.1679 7.29596 83.3499 7.4702 83.3499 7.81883V9.16013C83.3499 9.39255 83.2741 9.61049 83.1173 9.80902L75.0257 19.9097H83.0667C83.4257 19.9097 83.6077 20.0841 83.6077 20.4327V22.4373Z" }), (0, jsx_runtime_1.jsx)("path", { fill: "currentColor", d: "M92.8323 23.3332C91.305 23.3332 89.8992 22.9701 88.6045 22.2486C87.3048 21.5223 86.278 20.5393 85.5245 19.29C84.7659 18.0455 84.3866 16.6849 84.3866 15.2129C84.3866 13.7167 84.766 12.3463 85.5297 11.0971C86.2933 9.84777 87.3251 8.86003 88.6248 8.12886C89.9194 7.40253 91.3353 7.03937 92.8575 7.03937C94.3949 7.03937 95.811 7.40253 97.1107 8.12886C98.4104 8.86003 99.4421 9.84777 100.201 11.0971C100.964 12.3463 101.349 13.7167 101.349 15.2129C101.349 16.6849 100.964 18.0455 100.196 19.29C99.427 20.5393 98.3953 21.5223 97.0905 22.2486C95.7857 22.9701 94.3647 23.3332 92.8323 23.3332ZM92.8728 20.1325C93.7679 20.1325 94.5972 19.9147 95.3659 19.4789C96.1295 19.0479 96.7416 18.4524 97.1917 17.7067C97.6418 16.9513 97.8693 16.1184 97.8693 15.1984C97.8693 14.2783 97.6418 13.4407 97.1917 12.6805C96.7416 11.9202 96.1295 11.3247 95.3659 10.8889C94.5972 10.4579 93.7679 10.24 92.8728 10.24C91.9726 10.24 91.1381 10.4579 90.3694 10.8889C89.6007 11.3247 88.9937 11.9202 88.5386 12.6805C88.0885 13.4407 87.8662 14.2783 87.8662 15.1984C87.8662 16.1184 88.0885 16.9513 88.5386 17.7067C88.9937 18.4524 89.6007 19.0479 90.3694 19.4789C91.1381 19.9147 91.9726 20.1325 92.8728 20.1325Z" })] }) }));
|
|
8
65
|
}
|
|
9
|
-
function CloseIcon({ size = 16 }) {
|
|
10
|
-
return ((0, jsx_runtime_1.jsx)("svg", { width: size, height: size, viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": "true", children: (0, jsx_runtime_1.jsx)("path", { d: "M18 6L6 18M6 6l12 12" }) }));
|
|
11
|
-
}
|
|
12
66
|
//# sourceMappingURL=icons.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"icons.js","sourceRoot":"","sources":["../../../src/internal/banner-ui/icons.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"icons.js","sourceRoot":"","sources":["../../../src/internal/banner-ui/icons.tsx"],"names":[],"mappings":";;;AAmBA,0BAkDC;AAED,wCAOC;AAOD,8BAWC;AAED,8BAOC;AAED,4BAQC;AAED,0BAQC;AAED,4BAmCC;;AAtJY,QAAA,YAAY,GAAoC;IAC3D,EAAE,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE;IAC9B,EAAE,GAAG,EAAE,OAAO,EAAE,KAAK,EAAE,cAAc,EAAE;IACvC,EAAE,GAAG,EAAE,IAAI,EAAE,KAAK,EAAE,YAAY,EAAE;IAClC,EAAE,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,iBAAiB,EAAE;CACjC,CAAC;AAEX,SAAgB,OAAO,CAAC,EACtB,CAAC,EACD,IAAI,GAAG,EAAE,GAC2B;IACpC,MAAM,KAAK,GAAG;QACZ,KAAK,EAAE,IAAI;QACX,MAAM,EAAE,IAAI;QACZ,OAAO,EAAE,WAAW;QACpB,IAAI,EAAE,MAAM;QACZ,MAAM,EAAE,cAAc;QACtB,WAAW,EAAE,GAAG;QAChB,aAAa,EAAE,OAAgB;QAC/B,cAAc,EAAE,OAAgB;KACjC,CAAC;IACF,IAAI,CAAC,KAAK,MAAM,EAAE,CAAC;QACjB,OAAO,CACL,oCAAS,KAAK,aACZ,iCAAM,CAAC,EAAC,iFAAiF,GAAG,EAC5F,iCAAM,CAAC,EAAC,sBAAsB,GAAG,IAC7B,CACP,CAAC;IACJ,CAAC;IACD,IAAI,CAAC,KAAK,OAAO,EAAE,CAAC;QAClB,OAAO,CACL,oCAAS,KAAK,aACZ,mCAAQ,EAAE,EAAC,GAAG,EAAC,EAAE,EAAC,IAAI,EAAC,CAAC,EAAC,KAAK,GAAG,EACjC,mCAAQ,EAAE,EA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AC,WAAW,EAAC,IAAI,EAAC,MAAM,EAC7D,MAAM,EAAC,cAAc,EAAC,WAAW,EAAC,KAAK,EAAC,aAAa,EAAC,OAAO,EAAC,cAAc,EAAC,OAAO,aACpF,iCAAM,CAAC,EAAC,kDAAkD,GAAG,EAC7D,mCAAQ,EAAE,EAAC,IAAI,EAAC,EAAE,EAAC,IAAI,EAAC,CAAC,EAAC,GAAG,GAAG,IAC5B,CACP,CAAC;AACJ,CAAC;AAED,SAAgB,QAAQ,CAAC,EAAE,KAAK,GAAG,EAAE,EAAE,MAAM,GAAG,EAAE,EAAa;IAC7D,OAAO,CACL,gCACE,IAAI,EAAC,MAAM,EACX,KAAK,EAAE,KAAK,EACZ,MAAM,EAAE,MAAM,EACd,OAAO,EAAC,YAAY,EACpB,KAAK,EAAC,4BAA4B,gBACvB,MAAM,EACjB,IAAI,EAAC,KAAK,YAEV,0CACE,iCACE,IAAI,EAAC,SAAS,EACd,CAAC,EAAC,qiFAAqiF,GACviF,EACF,iCACE,IAAI,EAAC,cAAc,EACnB,CAAC,EAAC,8eAA8e,GAChf,EACF,iCACE,IAAI,EAAC,cAAc,EACnB,CAAC,EAAC,uyCAAuyC,GACzyC,EACF,iCACE,IAAI,EAAC,cAAc,EACnB,CAAC,EAAC,ifAAif,GACnf,EACF,iCACE,IAAI,EAAC,cAAc,EACnB,CAAC,EAAC,qpCAAqpC,GACvpC,IACA,GACA,CACP,CAAC;AACJ,CAAC"}
|
|
@@ -1,8 +1,21 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
2
|
/**
|
|
3
|
-
*
|
|
4
|
-
*
|
|
5
|
-
*
|
|
3
|
+
* Web-only handoff overlay. Mounted by `<EazoProvider>` and visible only
|
|
4
|
+
* in pure-web environments (not the eazoMobile WebView, not embedded
|
|
5
|
+
* iframes). Three coordinated pieces:
|
|
6
|
+
*
|
|
7
|
+
* 1. Top banner — brand + "MOBILE REQUIRED" pill + domain + "Open in app" CTA.
|
|
8
|
+
* 2. Full-screen scrim with coral spotlight + center modal (orbiting
|
|
9
|
+
* capability icons, app identity, QR + primary CTA). Non-dismissible.
|
|
10
|
+
* 3. Bottom banner — capability rail + likes/comments stats + eazo.ai pill.
|
|
11
|
+
*
|
|
12
|
+
* App identity (name, tagline, likes, comments) is fetched once from
|
|
13
|
+
* `GET /apps-open/:appId`. The CTA + QR encode the `eazo://` deep link;
|
|
14
|
+
* the iOS click-handler falls back to the App Store after a short delay
|
|
15
|
+
* if the app isn't installed.
|
|
16
|
+
*
|
|
17
|
+
* Kept exported as `EazoBrandBanner` for backwards compatibility with
|
|
18
|
+
* `EazoProvider`, which mounts it by that name.
|
|
6
19
|
*/
|
|
7
20
|
export declare function EazoBrandBanner(): React.ReactElement | null;
|
|
8
21
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/internal/banner-ui/index.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/internal/banner-ui/index.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAgF/B;;;;;;;;;;;;;;;;;GAiBG;AACH,wBAAgB,eAAe,IAAI,KAAK,CAAC,YAAY,GAAG,IAAI,CAmL3D"}
|