@1sat/permission-module-ui 0.0.45 → 0.0.47

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.
@@ -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
- /** The structured request handed to the wallet's promptHandler. */
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
- * Lookup clients used to re-check a purchase card's claims against a live
14
- * service. Supplied by the host that renders the prompt, because the request
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
- * Drop-in component for rendering 1Sat permission prompts.
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,EAGN,KAAK,aAAa,EAElB,KAAK,oBAAoB,EAEzB,MAAM,yBAAyB,CAAA;AAUhC,MAAM,MAAM,KAAK,GAAG,OAAO,GAAG,MAAM,GAAG,MAAM,CAAA;AAE7C,MAAM,WAAW,2BAA2B;IAC3C,mEAAmE;IACnE,OAAO,EAAE,aAAa,CAAA;IACtB,yFAAyF;IACzF,SAAS,EAAE,MAAM,IAAI,CAAA;IACrB,yFAAyF;IACzF,QAAQ,EAAE,MAAM,IAAI,CAAA;IACpB,2EAA2E;IAC3E,KAAK,CAAC,EAAE,KAAK,CAAA;IACb;;;;;OAKG;IACH,QAAQ,CAAC,EAAE,oBAAoB,CAAA;CAC/B;AAkED;;;;;;;GAOG;AACH,wBAAgB,sBAAsB,CAAC,EACtC,OAAO,EACP,SAAS,EACT,QAAQ,EACR,KAAc,EACd,QAAQ,GACR,EAAE,2BAA2B,+BAiM7B"}
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"}