@1sat/permission-module-ui 0.0.44 → 0.0.46
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/OneSatPermissionPrompt.d.ts +5 -14
- package/dist/OneSatPermissionPrompt.d.ts.map +1 -1
- package/dist/index.js +576 -727
- package/dist/styles.d.ts +1 -1
- package/dist/styles.d.ts.map +1 -1
- package/package.json +40 -40
|
@@ -1,29 +1,20 @@
|
|
|
1
1
|
import { type PromptRequest, type VerificationServices } from '@1sat/permission-module';
|
|
2
2
|
export type Theme = 'light' | 'dark' | 'auto';
|
|
3
3
|
export interface OneSatPermissionPromptProps {
|
|
4
|
-
/**
|
|
4
|
+
/** Structured request from the wallet's promptHandler. */
|
|
5
5
|
request: PromptRequest;
|
|
6
|
-
/** Called when the user approves. The host wallet resolves promptHandler with `true`. */
|
|
7
6
|
onApprove: () => void;
|
|
8
|
-
/** Called when the user rejects. The host wallet resolves promptHandler with `false`. */
|
|
9
7
|
onReject: () => void;
|
|
10
|
-
/** Theme override. Defaults to 'auto' (matches `prefers-color-scheme`). */
|
|
11
8
|
theme?: Theme;
|
|
12
9
|
/**
|
|
13
|
-
*
|
|
14
|
-
*
|
|
15
|
-
* payload may have crossed a process boundary to get here and cannot carry
|
|
16
|
-
* anything but data. Omit to render the module's initial trust state only.
|
|
10
|
+
* Live verification clients (purchase trust upgrade). Host-supplied because
|
|
11
|
+
* the request may have crossed a process boundary.
|
|
17
12
|
*/
|
|
18
13
|
services?: VerificationServices;
|
|
19
14
|
}
|
|
20
15
|
/**
|
|
21
|
-
*
|
|
22
|
-
*
|
|
23
|
-
* The host wallet feeds in the `request` it received from its promptHandler
|
|
24
|
-
* callback and wires `onApprove`/`onReject` to resolve the same Promise.
|
|
25
|
-
* Layout mirrors `docs/plans/mockups/p1sat-permissions.pen` — 1Sat coin
|
|
26
|
-
* badge, intent title, asset detail card, network/fee, approve/reject.
|
|
16
|
+
* Renders a {@link TransactionPrompt} (or simple non-tx prompts).
|
|
17
|
+
* Does not classify scripts/tags — the permission module already did that.
|
|
27
18
|
*/
|
|
28
19
|
export declare function OneSatPermissionPrompt({ request, onApprove, onReject, theme, services, }: OneSatPermissionPromptProps): import("react").JSX.Element;
|
|
29
20
|
//# sourceMappingURL=OneSatPermissionPrompt.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"OneSatPermissionPrompt.d.ts","sourceRoot":"","sources":["../src/OneSatPermissionPrompt.tsx"],"names":[],"mappings":"AAEA,OAAO,
|
|
1
|
+
{"version":3,"file":"OneSatPermissionPrompt.d.ts","sourceRoot":"","sources":["../src/OneSatPermissionPrompt.tsx"],"names":[],"mappings":"AAEA,OAAO,EAIN,KAAK,aAAa,EAGlB,KAAK,oBAAoB,EAGzB,MAAM,yBAAyB,CAAA;AAIhC,MAAM,MAAM,KAAK,GAAG,OAAO,GAAG,MAAM,GAAG,MAAM,CAAA;AAE7C,MAAM,WAAW,2BAA2B;IAC3C,0DAA0D;IAC1D,OAAO,EAAE,aAAa,CAAA;IACtB,SAAS,EAAE,MAAM,IAAI,CAAA;IACrB,QAAQ,EAAE,MAAM,IAAI,CAAA;IACpB,KAAK,CAAC,EAAE,KAAK,CAAA;IACb;;;OAGG;IACH,QAAQ,CAAC,EAAE,oBAAoB,CAAA;CAC/B;AAED;;;GAGG;AACH,wBAAgB,sBAAsB,CAAC,EACtC,OAAO,EACP,SAAS,EACT,QAAQ,EACR,KAAc,EACd,QAAQ,GACR,EAAE,2BAA2B,+BA4M7B"}
|