@kya-os/consent 0.2.2 → 0.3.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/README.md +344 -2
- package/dist/bundle/index.d.ts +48 -36
- package/dist/bundle/index.d.ts.map +1 -1
- package/dist/bundle/index.js +45 -33
- package/dist/bundle/index.js.map +1 -1
- package/dist/bundle/inline.d.ts.map +1 -1
- package/dist/bundle/inline.js +4 -4
- package/dist/bundle/inline.js.map +1 -1
- package/dist/bundle/shell.d.ts +7 -0
- package/dist/bundle/shell.d.ts.map +1 -1
- package/dist/bundle/shell.js +5 -0
- package/dist/bundle/shell.js.map +1 -1
- package/dist/cjs/bundle/index.js +14 -1
- package/dist/cjs/bundle/index.js.map +1 -1
- package/dist/cjs/bundle/inline.js +4 -4
- package/dist/cjs/bundle/inline.js.map +1 -1
- package/dist/cjs/bundle/shell.js +5 -0
- package/dist/cjs/bundle/shell.js.map +1 -1
- package/dist/cjs/components/consent-action-bar.js +66 -15
- package/dist/cjs/components/consent-action-bar.js.map +1 -1
- package/dist/cjs/components/consent-agent-header.js +20 -10
- package/dist/cjs/components/consent-agent-header.js.map +1 -1
- package/dist/cjs/components/consent-capabilities-screen.js +57 -79
- package/dist/cjs/components/consent-capabilities-screen.js.map +1 -1
- package/dist/cjs/components/consent-checkbox.js +2 -2
- package/dist/cjs/components/consent-checkbox.js.map +1 -1
- package/dist/cjs/components/consent-duration.js +187 -0
- package/dist/cjs/components/consent-duration.js.map +1 -0
- package/dist/cjs/components/consent-folder-scope.js +169 -0
- package/dist/cjs/components/consent-folder-scope.js.map +1 -0
- package/dist/cjs/components/consent-footer.js +13 -2
- package/dist/cjs/components/consent-footer.js.map +1 -1
- package/dist/cjs/components/consent-grant-terms.js +321 -0
- package/dist/cjs/components/consent-grant-terms.js.map +1 -0
- package/dist/cjs/components/consent-headline.js +138 -0
- package/dist/cjs/components/consent-headline.js.map +1 -0
- package/dist/cjs/components/consent-input.js +47 -27
- package/dist/cjs/components/consent-input.js.map +1 -1
- package/dist/cjs/components/consent-otp-input.js +79 -55
- package/dist/cjs/components/consent-otp-input.js.map +1 -1
- package/dist/cjs/components/consent-phone-handoff.js +219 -0
- package/dist/cjs/components/consent-phone-handoff.js.map +1 -0
- package/dist/cjs/components/consent-request-expiry.js +159 -0
- package/dist/cjs/components/consent-request-expiry.js.map +1 -0
- package/dist/cjs/components/consent-revoke.js +308 -0
- package/dist/cjs/components/consent-revoke.js.map +1 -0
- package/dist/cjs/components/consent-shell.js +3 -0
- package/dist/cjs/components/consent-shell.js.map +1 -1
- package/dist/cjs/components/consent-terms.js +2 -2
- package/dist/cjs/components/consent-terms.js.map +1 -1
- package/dist/cjs/components/consent-wallet-check.js +107 -0
- package/dist/cjs/components/consent-wallet-check.js.map +1 -0
- package/dist/cjs/components/consent-wallet-notice.js +189 -0
- package/dist/cjs/components/consent-wallet-notice.js.map +1 -0
- package/dist/cjs/components/consent-wallet-orb.js +273 -0
- package/dist/cjs/components/consent-wallet-orb.js.map +1 -0
- package/dist/cjs/components/consent-wallet-signature.js +104 -0
- package/dist/cjs/components/consent-wallet-signature.js.map +1 -0
- package/dist/cjs/components/grant-field-styles.js +85 -0
- package/dist/cjs/components/grant-field-styles.js.map +1 -0
- package/dist/cjs/components/index.js +34 -1
- package/dist/cjs/components/index.js.map +1 -1
- package/dist/cjs/components/mcp-consent.js +60 -2
- package/dist/cjs/components/mcp-consent.js.map +1 -1
- package/dist/cjs/components/template-link.js +32 -0
- package/dist/cjs/components/template-link.js.map +1 -0
- package/dist/cjs/components/wallet-globe.js +184 -0
- package/dist/cjs/components/wallet-globe.js.map +1 -0
- package/dist/cjs/components/wallet-icons.js +19 -0
- package/dist/cjs/components/wallet-icons.js.map +1 -0
- package/dist/cjs/components/wallet-status.js +34 -0
- package/dist/cjs/components/wallet-status.js.map +1 -0
- package/dist/cjs/copy/tokens.js +107 -1
- package/dist/cjs/copy/tokens.js.map +1 -1
- package/dist/cjs/grant/index.js +24 -0
- package/dist/cjs/grant/index.js.map +1 -0
- package/dist/cjs/grant/terms.js +148 -0
- package/dist/cjs/grant/terms.js.map +1 -0
- package/dist/cjs/identity/agent-identity.js +314 -0
- package/dist/cjs/identity/agent-identity.js.map +1 -0
- package/dist/cjs/identity/documents.js +212 -0
- package/dist/cjs/identity/documents.js.map +1 -0
- package/dist/cjs/identity/entity-card.js +128 -0
- package/dist/cjs/identity/entity-card.js.map +1 -0
- package/dist/cjs/identity/index.js +31 -0
- package/dist/cjs/identity/index.js.map +1 -0
- package/dist/cjs/identity/resolve.js +122 -0
- package/dist/cjs/identity/resolve.js.map +1 -0
- package/dist/cjs/identity/schemas.js +88 -0
- package/dist/cjs/identity/schemas.js.map +1 -0
- package/dist/cjs/index.js +5 -1
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/mcp-app/inline.js +2 -2
- package/dist/cjs/mcp-app/inline.js.map +1 -1
- package/dist/cjs/mcp-app/types.js +1 -1
- package/dist/cjs/popup/launcher.js +3 -3
- package/dist/cjs/react/index.js +260 -25
- package/dist/cjs/react/index.js.map +1 -1
- package/dist/cjs/templates/index.js +1 -1
- package/dist/cjs/types/index.js +1 -1
- package/dist/components/consent-action-bar.d.ts +17 -0
- package/dist/components/consent-action-bar.d.ts.map +1 -1
- package/dist/components/consent-action-bar.js +67 -16
- package/dist/components/consent-action-bar.js.map +1 -1
- package/dist/components/consent-agent-header.d.ts +3 -1
- package/dist/components/consent-agent-header.d.ts.map +1 -1
- package/dist/components/consent-agent-header.js +20 -10
- package/dist/components/consent-agent-header.js.map +1 -1
- package/dist/components/consent-capabilities-screen.d.ts +23 -3
- package/dist/components/consent-capabilities-screen.d.ts.map +1 -1
- package/dist/components/consent-capabilities-screen.js +57 -79
- package/dist/components/consent-capabilities-screen.js.map +1 -1
- package/dist/components/consent-checkbox.d.ts +1 -1
- package/dist/components/consent-checkbox.js +2 -2
- package/dist/components/consent-checkbox.js.map +1 -1
- package/dist/components/consent-duration.d.ts +64 -0
- package/dist/components/consent-duration.d.ts.map +1 -0
- package/dist/components/consent-duration.js +184 -0
- package/dist/components/consent-duration.js.map +1 -0
- package/dist/components/consent-folder-scope.d.ts +70 -0
- package/dist/components/consent-folder-scope.d.ts.map +1 -0
- package/dist/components/consent-folder-scope.js +166 -0
- package/dist/components/consent-folder-scope.js.map +1 -0
- package/dist/components/consent-footer.d.ts.map +1 -1
- package/dist/components/consent-footer.js +13 -2
- package/dist/components/consent-footer.js.map +1 -1
- package/dist/components/consent-grant-terms.d.ts +88 -0
- package/dist/components/consent-grant-terms.d.ts.map +1 -0
- package/dist/components/consent-grant-terms.js +318 -0
- package/dist/components/consent-grant-terms.js.map +1 -0
- package/dist/components/consent-headline.d.ts +42 -0
- package/dist/components/consent-headline.d.ts.map +1 -0
- package/dist/components/consent-headline.js +135 -0
- package/dist/components/consent-headline.js.map +1 -0
- package/dist/components/consent-input.d.ts +4 -4
- package/dist/components/consent-input.d.ts.map +1 -1
- package/dist/components/consent-input.js +49 -29
- package/dist/components/consent-input.js.map +1 -1
- package/dist/components/consent-otp-input.d.ts +11 -6
- package/dist/components/consent-otp-input.d.ts.map +1 -1
- package/dist/components/consent-otp-input.js +81 -57
- package/dist/components/consent-otp-input.js.map +1 -1
- package/dist/components/consent-phone-handoff.d.ts +50 -0
- package/dist/components/consent-phone-handoff.d.ts.map +1 -0
- package/dist/components/consent-phone-handoff.js +215 -0
- package/dist/components/consent-phone-handoff.js.map +1 -0
- package/dist/components/consent-request-expiry.d.ts +52 -0
- package/dist/components/consent-request-expiry.d.ts.map +1 -0
- package/dist/components/consent-request-expiry.js +154 -0
- package/dist/components/consent-request-expiry.js.map +1 -0
- package/dist/components/consent-revoke.d.ts +53 -0
- package/dist/components/consent-revoke.d.ts.map +1 -0
- package/dist/components/consent-revoke.js +305 -0
- package/dist/components/consent-revoke.js.map +1 -0
- package/dist/components/consent-shell.d.ts.map +1 -1
- package/dist/components/consent-shell.js +3 -0
- package/dist/components/consent-shell.js.map +1 -1
- package/dist/components/consent-terms.d.ts +1 -1
- package/dist/components/consent-terms.js +2 -2
- package/dist/components/consent-terms.js.map +1 -1
- package/dist/components/consent-wallet-check.d.ts +45 -0
- package/dist/components/consent-wallet-check.d.ts.map +1 -0
- package/dist/components/consent-wallet-check.js +102 -0
- package/dist/components/consent-wallet-check.js.map +1 -0
- package/dist/components/consent-wallet-notice.d.ts +54 -0
- package/dist/components/consent-wallet-notice.d.ts.map +1 -0
- package/dist/components/consent-wallet-notice.js +186 -0
- package/dist/components/consent-wallet-notice.js.map +1 -0
- package/dist/components/consent-wallet-orb.d.ts +48 -0
- package/dist/components/consent-wallet-orb.d.ts.map +1 -0
- package/dist/components/consent-wallet-orb.js +269 -0
- package/dist/components/consent-wallet-orb.js.map +1 -0
- package/dist/components/consent-wallet-signature.d.ts +26 -0
- package/dist/components/consent-wallet-signature.d.ts.map +1 -0
- package/dist/components/consent-wallet-signature.js +101 -0
- package/dist/components/consent-wallet-signature.js.map +1 -0
- package/dist/components/grant-field-styles.d.ts +9 -0
- package/dist/components/grant-field-styles.d.ts.map +1 -0
- package/dist/components/grant-field-styles.js +82 -0
- package/dist/components/grant-field-styles.js.map +1 -0
- package/dist/components/index.d.ts +28 -17
- package/dist/components/index.d.ts.map +1 -1
- package/dist/components/index.js +31 -17
- package/dist/components/index.js.map +1 -1
- package/dist/components/mcp-consent.d.ts +16 -0
- package/dist/components/mcp-consent.d.ts.map +1 -1
- package/dist/components/mcp-consent.js +60 -2
- package/dist/components/mcp-consent.js.map +1 -1
- package/dist/components/template-link.d.ts +24 -0
- package/dist/components/template-link.d.ts.map +1 -0
- package/dist/components/template-link.js +29 -0
- package/dist/components/template-link.js.map +1 -0
- package/dist/components/wallet-globe.d.ts +29 -0
- package/dist/components/wallet-globe.d.ts.map +1 -0
- package/dist/components/wallet-globe.js +181 -0
- package/dist/components/wallet-globe.js.map +1 -0
- package/dist/components/wallet-icons.d.ts +16 -0
- package/dist/components/wallet-icons.d.ts.map +1 -0
- package/dist/components/wallet-icons.js +16 -0
- package/dist/components/wallet-icons.js.map +1 -0
- package/dist/components/wallet-status.d.ts +19 -0
- package/dist/components/wallet-status.d.ts.map +1 -0
- package/dist/components/wallet-status.js +29 -0
- package/dist/components/wallet-status.js.map +1 -0
- package/dist/consent.js +3547 -811
- package/dist/consent.min.js +1366 -295
- package/dist/copy/tokens.d.ts +107 -1
- package/dist/copy/tokens.d.ts.map +1 -1
- package/dist/copy/tokens.js +107 -1
- package/dist/copy/tokens.js.map +1 -1
- package/dist/grant/index.d.ts +8 -0
- package/dist/grant/index.d.ts.map +1 -0
- package/dist/grant/index.js +8 -0
- package/dist/grant/index.js.map +1 -0
- package/dist/grant/terms.d.ts +97 -0
- package/dist/grant/terms.d.ts.map +1 -0
- package/dist/grant/terms.js +139 -0
- package/dist/grant/terms.js.map +1 -0
- package/dist/identity/agent-identity.d.ts +199 -0
- package/dist/identity/agent-identity.d.ts.map +1 -0
- package/dist/identity/agent-identity.js +305 -0
- package/dist/identity/agent-identity.js.map +1 -0
- package/dist/identity/documents.d.ts +63 -0
- package/dist/identity/documents.d.ts.map +1 -0
- package/dist/identity/documents.js +206 -0
- package/dist/identity/documents.js.map +1 -0
- package/dist/identity/entity-card.d.ts +80 -0
- package/dist/identity/entity-card.d.ts.map +1 -0
- package/dist/identity/entity-card.js +119 -0
- package/dist/identity/entity-card.js.map +1 -0
- package/dist/identity/index.d.ts +15 -0
- package/dist/identity/index.d.ts.map +1 -0
- package/dist/identity/index.js +15 -0
- package/dist/identity/index.js.map +1 -0
- package/dist/identity/resolve.d.ts +31 -0
- package/dist/identity/resolve.d.ts.map +1 -0
- package/dist/identity/resolve.js +119 -0
- package/dist/identity/resolve.js.map +1 -0
- package/dist/identity/schemas.d.ts +404 -0
- package/dist/identity/schemas.d.ts.map +1 -0
- package/dist/identity/schemas.js +84 -0
- package/dist/identity/schemas.js.map +1 -0
- package/dist/index.d.ts +3 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +5 -1
- package/dist/index.js.map +1 -1
- package/dist/kya-os/index.d.ts +55 -0
- package/dist/kya-os/index.d.ts.map +1 -0
- package/dist/kya-os/index.js +235 -0
- package/dist/kya-os/index.js.map +1 -0
- package/dist/mcp-app/inline.d.ts.map +1 -1
- package/dist/mcp-app/inline.js +2 -2
- package/dist/mcp-app/inline.js.map +1 -1
- package/dist/mcp-app/types.d.ts +1 -1
- package/dist/mcp-app/types.js +1 -1
- package/dist/popup/launcher.d.ts +3 -3
- package/dist/popup/launcher.js +3 -3
- package/dist/react/index.d.ts +182 -22
- package/dist/react/index.d.ts.map +1 -1
- package/dist/react/index.js +270 -35
- package/dist/react/index.js.map +1 -1
- package/dist/templates/index.d.ts +1 -1
- package/dist/templates/index.js +1 -1
- package/dist/types/index.d.ts +1 -1
- package/dist/types/index.js +1 -1
- package/package.json +49 -8
|
@@ -0,0 +1,305 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Consent Revoke
|
|
3
|
+
*
|
|
4
|
+
* Taking a grant back: what ends, a button to end it and one to keep it, and
|
|
5
|
+
* then the confirmation that it ended. The element never revokes anything
|
|
6
|
+
* itself. It emits `consent-revoke`, the host revokes (with `@kya-os/id`,
|
|
7
|
+
* `wallet.revoke(credentialId)` flips the grant's status bit), and the host
|
|
8
|
+
* sets `loading`, then `revoked` or `error`.
|
|
9
|
+
*
|
|
10
|
+
* With `chained`, the list says that every narrower grant the agent passed on
|
|
11
|
+
* ends too: revoking a `@kya-os/id` credential revokes the credentials minted
|
|
12
|
+
* under it.
|
|
13
|
+
*
|
|
14
|
+
* The agent's name and the items are text, never markup.
|
|
15
|
+
*
|
|
16
|
+
* Parts: `title`, `body`, `ends`, `item`, `confirm`, `keep`, `error`, `done`.
|
|
17
|
+
*
|
|
18
|
+
* @module components/consent-revoke
|
|
19
|
+
*/
|
|
20
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
21
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
22
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
23
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
24
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
25
|
+
};
|
|
26
|
+
import { LitElement, html, css, nothing } from "lit";
|
|
27
|
+
import { customElement, property } from "lit/decorators.js";
|
|
28
|
+
import { CONSENT_COPY_TOKENS, formatToken } from "../copy/tokens.js";
|
|
29
|
+
/**
|
|
30
|
+
* @fires consent-revoke - The person confirmed. Revoke, then set `revoked`.
|
|
31
|
+
* @fires consent-keep - The person kept the grant.
|
|
32
|
+
* @cssprop --cs-danger - The confirm button and error color (default: #b42318).
|
|
33
|
+
* @cssprop --cs-danger-text - Text on the confirm button (default: white).
|
|
34
|
+
* @cssprop --cs-allow - The check on the confirmation (default: #15803d).
|
|
35
|
+
*/
|
|
36
|
+
let ConsentRevoke = class ConsentRevoke extends LitElement {
|
|
37
|
+
constructor() {
|
|
38
|
+
super(...arguments);
|
|
39
|
+
this.agentName = "";
|
|
40
|
+
/** What the grant allows, one line each, e.g. "Read your notes". */
|
|
41
|
+
this.items = [];
|
|
42
|
+
/** The grant heads a delegation chain: its narrower grants end too. */
|
|
43
|
+
this.chained = false;
|
|
44
|
+
/** The host is revoking: the buttons wait. */
|
|
45
|
+
this.loading = false;
|
|
46
|
+
/** The grant ended: show the confirmation instead of the question. */
|
|
47
|
+
this.revoked = false;
|
|
48
|
+
/** Why revoking failed, shown above the buttons. */
|
|
49
|
+
this.error = "";
|
|
50
|
+
this.confirmLabel = "";
|
|
51
|
+
this.keepLabel = "";
|
|
52
|
+
}
|
|
53
|
+
onConfirm() {
|
|
54
|
+
if (this.loading)
|
|
55
|
+
return;
|
|
56
|
+
this.dispatchEvent(new CustomEvent("consent-revoke", { bubbles: true, composed: true }));
|
|
57
|
+
}
|
|
58
|
+
onKeep() {
|
|
59
|
+
if (this.loading)
|
|
60
|
+
return;
|
|
61
|
+
this.dispatchEvent(new CustomEvent("consent-keep", { bubbles: true, composed: true }));
|
|
62
|
+
}
|
|
63
|
+
renderDone(agent) {
|
|
64
|
+
const tokens = CONSENT_COPY_TOKENS.revoke;
|
|
65
|
+
return html `
|
|
66
|
+
<div part="done" class="done" role="status">
|
|
67
|
+
<svg
|
|
68
|
+
class="check"
|
|
69
|
+
viewBox="0 0 24 24"
|
|
70
|
+
fill="none"
|
|
71
|
+
stroke="currentColor"
|
|
72
|
+
stroke-width="1.8"
|
|
73
|
+
stroke-linecap="round"
|
|
74
|
+
stroke-linejoin="round"
|
|
75
|
+
aria-hidden="true"
|
|
76
|
+
>
|
|
77
|
+
<circle cx="12" cy="12" r="9.5" />
|
|
78
|
+
<path d="M8 12.5l2.6 2.6L16 9.5" />
|
|
79
|
+
</svg>
|
|
80
|
+
<h2 part="title">${tokens.doneTitle}</h2>
|
|
81
|
+
<p part="body" class="body">
|
|
82
|
+
${formatToken(tokens.doneBodyTemplate, { Agent: agent })}
|
|
83
|
+
</p>
|
|
84
|
+
</div>
|
|
85
|
+
`;
|
|
86
|
+
}
|
|
87
|
+
render() {
|
|
88
|
+
const tokens = CONSENT_COPY_TOKENS.revoke;
|
|
89
|
+
const agent = this.agentName.trim() || "this agent";
|
|
90
|
+
if (this.revoked)
|
|
91
|
+
return this.renderDone(agent);
|
|
92
|
+
const items = this.items.filter((item) => item.trim() !== "");
|
|
93
|
+
const chainedItem = this.chained
|
|
94
|
+
? formatToken(tokens.chainedItemTemplate, { Agent: agent })
|
|
95
|
+
: "";
|
|
96
|
+
const ends = chainedItem ? [...items, chainedItem] : items;
|
|
97
|
+
return html `
|
|
98
|
+
<div>
|
|
99
|
+
<h2 part="title">
|
|
100
|
+
${formatToken(tokens.titleTemplate, { Agent: agent })}
|
|
101
|
+
</h2>
|
|
102
|
+
<p part="body" class="body">
|
|
103
|
+
${formatToken(tokens.bodyTemplate, { Agent: agent })}
|
|
104
|
+
</p>
|
|
105
|
+
</div>
|
|
106
|
+
${ends.length > 0
|
|
107
|
+
? html `<div part="ends" class="ends">
|
|
108
|
+
<p class="ends-title">${tokens.endsTitle}</p>
|
|
109
|
+
<ul>
|
|
110
|
+
${ends.map((item) => html `<li part="item">${item}</li>`)}
|
|
111
|
+
</ul>
|
|
112
|
+
</div>`
|
|
113
|
+
: nothing}
|
|
114
|
+
${this.error
|
|
115
|
+
? html `<p part="error" class="error" role="alert">${this.error}</p>`
|
|
116
|
+
: nothing}
|
|
117
|
+
<div class="actions">
|
|
118
|
+
<button
|
|
119
|
+
part="confirm"
|
|
120
|
+
class="confirm"
|
|
121
|
+
type="button"
|
|
122
|
+
?disabled=${this.loading}
|
|
123
|
+
aria-busy=${this.loading ? "true" : "false"}
|
|
124
|
+
@click=${this.onConfirm}
|
|
125
|
+
>
|
|
126
|
+
${this.loading ? tokens.working : this.confirmLabel || tokens.confirm}
|
|
127
|
+
</button>
|
|
128
|
+
<button
|
|
129
|
+
part="keep"
|
|
130
|
+
class="keep"
|
|
131
|
+
type="button"
|
|
132
|
+
?disabled=${this.loading}
|
|
133
|
+
@click=${this.onKeep}
|
|
134
|
+
>
|
|
135
|
+
${this.keepLabel || tokens.keep}
|
|
136
|
+
</button>
|
|
137
|
+
</div>
|
|
138
|
+
`;
|
|
139
|
+
}
|
|
140
|
+
};
|
|
141
|
+
ConsentRevoke.styles = css `
|
|
142
|
+
:host {
|
|
143
|
+
display: grid;
|
|
144
|
+
gap: 16px;
|
|
145
|
+
color: var(--cs-text-primary, #0f172a);
|
|
146
|
+
font-family: inherit;
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
:host([hidden]) {
|
|
150
|
+
display: none;
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
h2 {
|
|
154
|
+
margin: 0;
|
|
155
|
+
font-size: var(--cs-revoke-title-font-size, 19px);
|
|
156
|
+
font-weight: 600;
|
|
157
|
+
letter-spacing: -0.01em;
|
|
158
|
+
line-height: 1.3;
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
.body {
|
|
162
|
+
margin: 6px 0 0;
|
|
163
|
+
color: var(--cs-text-secondary, #334155);
|
|
164
|
+
font-size: 14px;
|
|
165
|
+
line-height: 1.5;
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
.ends {
|
|
169
|
+
display: grid;
|
|
170
|
+
gap: 8px;
|
|
171
|
+
padding: 12px 14px;
|
|
172
|
+
border-radius: 12px;
|
|
173
|
+
background: var(--cs-surface-inset, #f1ece2);
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
.ends-title {
|
|
177
|
+
margin: 0;
|
|
178
|
+
color: var(--cs-text-tertiary, #64748b);
|
|
179
|
+
font-size: 12px;
|
|
180
|
+
font-weight: 500;
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
ul {
|
|
184
|
+
display: grid;
|
|
185
|
+
gap: 6px;
|
|
186
|
+
margin: 0;
|
|
187
|
+
padding: 0;
|
|
188
|
+
list-style: none;
|
|
189
|
+
}
|
|
190
|
+
|
|
191
|
+
li {
|
|
192
|
+
display: flex;
|
|
193
|
+
align-items: baseline;
|
|
194
|
+
gap: 8px;
|
|
195
|
+
color: var(--cs-text-primary, #0f172a);
|
|
196
|
+
font-size: 13.5px;
|
|
197
|
+
line-height: 1.45;
|
|
198
|
+
}
|
|
199
|
+
|
|
200
|
+
li::before {
|
|
201
|
+
content: "";
|
|
202
|
+
width: 6px;
|
|
203
|
+
height: 6px;
|
|
204
|
+
flex-shrink: 0;
|
|
205
|
+
border-radius: 999px;
|
|
206
|
+
background: var(--cs-danger, #b42318);
|
|
207
|
+
transform: translateY(-1px);
|
|
208
|
+
}
|
|
209
|
+
|
|
210
|
+
.actions {
|
|
211
|
+
display: grid;
|
|
212
|
+
gap: 4px;
|
|
213
|
+
}
|
|
214
|
+
|
|
215
|
+
button {
|
|
216
|
+
width: 100%;
|
|
217
|
+
padding: 13px 18px;
|
|
218
|
+
border: none;
|
|
219
|
+
border-radius: 999px;
|
|
220
|
+
font: inherit;
|
|
221
|
+
font-size: var(--cs-action-font-size, 15px);
|
|
222
|
+
font-weight: 500;
|
|
223
|
+
cursor: pointer;
|
|
224
|
+
transition: opacity 0.15s ease;
|
|
225
|
+
}
|
|
226
|
+
|
|
227
|
+
button:disabled {
|
|
228
|
+
cursor: not-allowed;
|
|
229
|
+
opacity: 0.55;
|
|
230
|
+
}
|
|
231
|
+
|
|
232
|
+
button:focus-visible {
|
|
233
|
+
outline: 2px solid var(--cs-focus-ring, #0f172a);
|
|
234
|
+
outline-offset: 3px;
|
|
235
|
+
}
|
|
236
|
+
|
|
237
|
+
.confirm {
|
|
238
|
+
background: var(--cs-danger, #b42318);
|
|
239
|
+
color: var(--cs-danger-text, #ffffff);
|
|
240
|
+
}
|
|
241
|
+
|
|
242
|
+
.confirm:hover:not(:disabled) {
|
|
243
|
+
opacity: 0.92;
|
|
244
|
+
}
|
|
245
|
+
|
|
246
|
+
.keep {
|
|
247
|
+
padding: 10px 18px;
|
|
248
|
+
background: transparent;
|
|
249
|
+
color: var(--cs-text-secondary, #334155);
|
|
250
|
+
}
|
|
251
|
+
|
|
252
|
+
.keep:hover:not(:disabled) {
|
|
253
|
+
color: var(--cs-text-primary, #0f172a);
|
|
254
|
+
}
|
|
255
|
+
|
|
256
|
+
.error {
|
|
257
|
+
margin: 0;
|
|
258
|
+
color: var(--cs-danger, #b42318);
|
|
259
|
+
font-size: 13px;
|
|
260
|
+
font-weight: 500;
|
|
261
|
+
line-height: 1.45;
|
|
262
|
+
}
|
|
263
|
+
|
|
264
|
+
.done {
|
|
265
|
+
display: grid;
|
|
266
|
+
justify-items: start;
|
|
267
|
+
gap: 6px;
|
|
268
|
+
}
|
|
269
|
+
|
|
270
|
+
.check {
|
|
271
|
+
width: 28px;
|
|
272
|
+
height: 28px;
|
|
273
|
+
margin-bottom: 4px;
|
|
274
|
+
color: var(--cs-allow, #15803d);
|
|
275
|
+
}
|
|
276
|
+
`;
|
|
277
|
+
__decorate([
|
|
278
|
+
property({ type: String, attribute: "agent-name" })
|
|
279
|
+
], ConsentRevoke.prototype, "agentName", void 0);
|
|
280
|
+
__decorate([
|
|
281
|
+
property({ type: Array })
|
|
282
|
+
], ConsentRevoke.prototype, "items", void 0);
|
|
283
|
+
__decorate([
|
|
284
|
+
property({ type: Boolean, reflect: true })
|
|
285
|
+
], ConsentRevoke.prototype, "chained", void 0);
|
|
286
|
+
__decorate([
|
|
287
|
+
property({ type: Boolean, reflect: true })
|
|
288
|
+
], ConsentRevoke.prototype, "loading", void 0);
|
|
289
|
+
__decorate([
|
|
290
|
+
property({ type: Boolean, reflect: true })
|
|
291
|
+
], ConsentRevoke.prototype, "revoked", void 0);
|
|
292
|
+
__decorate([
|
|
293
|
+
property({ type: String })
|
|
294
|
+
], ConsentRevoke.prototype, "error", void 0);
|
|
295
|
+
__decorate([
|
|
296
|
+
property({ type: String, attribute: "confirm-label" })
|
|
297
|
+
], ConsentRevoke.prototype, "confirmLabel", void 0);
|
|
298
|
+
__decorate([
|
|
299
|
+
property({ type: String, attribute: "keep-label" })
|
|
300
|
+
], ConsentRevoke.prototype, "keepLabel", void 0);
|
|
301
|
+
ConsentRevoke = __decorate([
|
|
302
|
+
customElement("consent-revoke")
|
|
303
|
+
], ConsentRevoke);
|
|
304
|
+
export { ConsentRevoke };
|
|
305
|
+
//# sourceMappingURL=consent-revoke.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"consent-revoke.js","sourceRoot":"","sources":["../../src/components/consent-revoke.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;;;;;;;AAEH,OAAO,EAAE,UAAU,EAAE,IAAI,EAAE,GAAG,EAAE,OAAO,EAAE,MAAM,KAAK,CAAC;AACrD,OAAO,EAAE,aAAa,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAE5D,OAAO,EAAE,mBAA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|
-
{"version":3,"file":"consent-shell.d.ts","sourceRoot":"","sources":["../../src/components/consent-shell.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH,OAAO,EAAE,UAAU,EAAa,MAAM,KAAK,CAAC;AAc5C;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AACH,qBACa,YAAa,SAAQ,UAAU;IAC1C;;OAEG;IAEH,SAAS,SAAwB;IAEjC;;OAEG;IAEH,OAAO,CAAC,EAAE,MAAM,CAAC;IAEjB;;OAEG;IAEH,WAAW,CAAC,EAAE,MAAM,CAAC;IAErB;;OAEG;IAEH,YAAY,SAAa;IAEzB;;OAEG;IAEH,cAAc,SAAa;IAE3B,OAAgB,MAAM,
|
|
1
|
+
{"version":3,"file":"consent-shell.d.ts","sourceRoot":"","sources":["../../src/components/consent-shell.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH,OAAO,EAAE,UAAU,EAAa,MAAM,KAAK,CAAC;AAc5C;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AACH,qBACa,YAAa,SAAQ,UAAU;IAC1C;;OAEG;IAEH,SAAS,SAAwB;IAEjC;;OAEG;IAEH,OAAO,CAAC,EAAE,MAAM,CAAC;IAEjB;;OAEG;IAEH,WAAW,CAAC,EAAE,MAAM,CAAC;IAErB;;OAEG;IAEH,YAAY,SAAa;IAEzB;;OAEG;IAEH,cAAc,SAAa;IAE3B,OAAgB,MAAM,0BAyFpB;IAEF,OAAO,CAAC,UAAU;cAkCC,OAAO,CAAC,iBAAiB,EAAE,GAAG,CAAC,MAAM,EAAE,OAAO,CAAC;IAuBzD,MAAM;CAqBhB;AAED,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,eAAe,EAAE,YAAY,CAAC;KAC/B;CACF"}
|
|
@@ -155,7 +155,10 @@ ConsentShell.styles = css `
|
|
|
155
155
|
}
|
|
156
156
|
|
|
157
157
|
/* Container - matches Checkpoint PreviewShell exactly */
|
|
158
|
+
/* border-box, so the border fits inside width: 100% instead of pushing
|
|
159
|
+
the card 2px past a phone's edge. */
|
|
158
160
|
.container {
|
|
161
|
+
box-sizing: border-box;
|
|
159
162
|
background: white;
|
|
160
163
|
border-radius: 20px;
|
|
161
164
|
border: 1px solid rgba(0, 0, 0, 0.1);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"consent-shell.js","sourceRoot":"","sources":["../../src/components/consent-shell.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;;;;;;;AAEH,OAAO,EAAE,UAAU,EAAE,IAAI,EAAE,GAAG,EAAE,MAAM,KAAK,CAAC;AAC5C,OAAO,EAAE,aAAa,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAE5D,OAAO,EACL,aAAa,EACb,4BAA4B,GAC7B,MAAM,4BAA4B,CAAC;AAEpC,MAAM,aAAa,GAAG;IACpB,aAAa,CAAC,UAAU;IACxB,aAAa,CAAC,YAAY;IAC1B,aAAa,CAAC,IAAI;CACV,CAAC;AAEX;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AAEI,IAAM,YAAY,GAAlB,MAAM,YAAa,SAAQ,UAAU;IAArC;;QACL;;WAEG;QAEH,cAAS,GAAG,oBAAoB,CAAC;QAcjC;;WAEG;QAEH,iBAAY,GAAG,SAAS,CAAC;QAEzB;;WAEG;QAEH,mBAAc,GAAG,SAAS,CAAC;
|
|
1
|
+
{"version":3,"file":"consent-shell.js","sourceRoot":"","sources":["../../src/components/consent-shell.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;;;;;;;AAEH,OAAO,EAAE,UAAU,EAAE,IAAI,EAAE,GAAG,EAAE,MAAM,KAAK,CAAC;AAC5C,OAAO,EAAE,aAAa,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAE5D,OAAO,EACL,aAAa,EACb,4BAA4B,GAC7B,MAAM,4BAA4B,CAAC;AAEpC,MAAM,aAAa,GAAG;IACpB,aAAa,CAA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oBAC1C,IAAI,CAAC,KAAK,CAAC,cAAc,CAAC,IAAI,CAAC,CAAC;YACvC,CAAC;QACH,CAAC;IACH,CAAC;IAEQ,MAAM;QACb,OAAO,IAAI,CAAA;;;YAGH,IAAI,CAAC,UAAU,EAAE;YACjB,IAAI,CAAC,WAAW;YAChB,CAAC,CAAC,IAAI,CAAA,6BAA6B,IAAI,CAAC,WAAW,QAAQ;YAC3D,CAAC,CAAC,IAAI;8BACY,IAAI,CAAC,SAAS;;;;;;;;;;;KAWvC,CAAC;IACJ,CAAC;;AAxKe,mBAAM,GAAG,GAAG,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAyF3B,AAzFqB,CAyFpB;AAnHF;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,SAAS,EAAE,YAAY,EAAE,CAAC;+CACnB;AAMjC;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,SAAS,EAAE,UAAU,EAAE,CAAC;6CACjC;AAMjB;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,SAAS,EAAE,cAAc,EAAE,CAAC;iDACjC;AAMrB;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,SAAS,EAAE,eAAe,EAAE,CAAC;kDAC9B;AAMzB;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,SAAS,EAAE,iBAAiB,EAAE,CAAC;oDAC9B;AA7BhB,YAAY;IADxB,aAAa,CAAC,eAAe,CAAC;GAClB,YAAY,CAwMxB"}
|
|
@@ -40,7 +40,7 @@ let ConsentTerms = class ConsentTerms extends LitElement {
|
|
|
40
40
|
constructor() {
|
|
41
41
|
super();
|
|
42
42
|
/**
|
|
43
|
-
* Form field name
|
|
43
|
+
* Form field name. Reflected: a form reads the attribute.
|
|
44
44
|
*/
|
|
45
45
|
this.name = "termsAccepted";
|
|
46
46
|
/**
|
|
@@ -251,7 +251,7 @@ ConsentTerms.styles = css `
|
|
|
251
251
|
}
|
|
252
252
|
`;
|
|
253
253
|
__decorate([
|
|
254
|
-
property({ type: String })
|
|
254
|
+
property({ type: String, reflect: true })
|
|
255
255
|
], ConsentTerms.prototype, "name", void 0);
|
|
256
256
|
__decorate([
|
|
257
257
|
property({ type: String })
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"consent-terms.js","sourceRoot":"","sources":["../../src/components/consent-terms.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;;;;;;;AAEH,OAAO,EAAE,UAAU,EAAE,IAAI,EAAE,GAAG,EAAE,OAAO,EAAE,MAAM,KAAK,CAAC;AACrD,OAAO,EAAE,aAAa,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAC5D,OAAO,EAAE,eAAe,EAAE,MAAM,mCAAmC,CAAC;AAEpE;;;;;;;;;;;;;;;;;;;;GAoBG;AAEI,IAAM,YAAY,GAAlB,MAAM,YAAa,SAAQ,UAAU;IAM1C;QACE,KAAK,EAAE,CAAC;QAIV;;WAEG;QAEH,SAAI,GAAG,eAAe,CAAC;QAEvB;;WAEG;QAEH,SAAI,GAAG,sBAAsB,CAAC;QAoB9B;;WAEG;QAEH,gBAAW,GAAG,gBAAgB,CAAC;QAE/B;;WAEG;QAEH,gBAAW,GAAG,KAAK,CAAC;QAEpB;;WAEG;QAEH,YAAO,GAAG,KAAK,CAAC;QAEhB;;WAEG;QAEH,aAAQ,GAAG,IAAI,CAAC;QAEhB;;WAEG;QAEH,aAAQ,GAAG,KAAK,CAAC;QAEjB;;WAEG;QAEH,UAAK,GAAG,UAAU,CAAC;QAnEjB,IAAI,CAAC,SAAS,GAAG,IAAI,CAAC,eAAe,EAAE,CAAC;IAC1C,CAAC;IAmLkB,OAAO,CAAC,iBAAuC;QAChE,IAAI,iBAAiB,CAAC,GAAG,CAAC,SAAS,CAAC,IAAI,iBAAi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GqB,CA6GpB;AA3KF;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;0CACnB;AAMvB;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;0CACG;AAM9B;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;yCACd;AAMb;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,SAAS,EAAE,cAAc,EAAE,CAAC;iDACjC;AAMrB;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,SAAS,EAAE,aAAa,EAAE,CAAC;gDACjC;AAMpB;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,SAAS,EAAE,cAAc,EAAE,CAAC;iDACvB;AAM/B;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;iDACP;AAMpB;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;6CAC3B;AAMhB;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC;8CACZ;AAMhB;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;8CAC1B;AAMjB;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;2CACR;AA3ER,YAAY;IADxB,aAAa,CAAC,eAAe,CAAC;GAClB,YAAY,CAmQxB"}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Consent Wallet Check
|
|
3
|
+
*
|
|
4
|
+
* The check that this browser's wallet can sign for the person: the
|
|
5
|
+
* `consent-wallet-orb` and one line under it. It stays for as long as the
|
|
6
|
+
* request is open, closing its dial once the wallet is ready and resting,
|
|
7
|
+
* still open, when this browser can't sign. Pair it with
|
|
8
|
+
* `consent-wallet-notice`, which says what to do then.
|
|
9
|
+
*
|
|
10
|
+
* Status, from your own check of the person's wallet:
|
|
11
|
+
*
|
|
12
|
+
* - `checking`: looking up this browser's wallet.
|
|
13
|
+
* - `syncing`: linking this device's wallet to the account.
|
|
14
|
+
* - `ready`: the wallet can sign.
|
|
15
|
+
* - `conflict`: this browser can't sign for the account.
|
|
16
|
+
* - `error`: the check itself failed.
|
|
17
|
+
*
|
|
18
|
+
* The orb is decoration (hidden from assistive tech); the caption is
|
|
19
|
+
* announced as it changes.
|
|
20
|
+
*
|
|
21
|
+
* Parts: `frame`, `orb` (the `consent-wallet-orb`), `caption`, and the orb's
|
|
22
|
+
* own `globe`, `dial` and `check`.
|
|
23
|
+
*
|
|
24
|
+
* @module components/consent-wallet-check
|
|
25
|
+
*/
|
|
26
|
+
import { LitElement } from "lit";
|
|
27
|
+
import "./consent-wallet-orb.js";
|
|
28
|
+
export { WALLET_CHECK_STATUSES, readWalletStatus, type WalletCheckStatus, } from "./wallet-status.js";
|
|
29
|
+
/**
|
|
30
|
+
* Takes the orb's tokens (`--cs-wallet-orb-size`, `--cs-wallet-accent`,
|
|
31
|
+
* `--cs-wallet-success`, `--cs-wallet-muted`); see `consent-wallet-orb`.
|
|
32
|
+
*/
|
|
33
|
+
export declare class ConsentWalletCheck extends LitElement {
|
|
34
|
+
status: string;
|
|
35
|
+
/** Your own caption, in place of the status's. */
|
|
36
|
+
caption: string;
|
|
37
|
+
static styles: import("lit").CSSResult;
|
|
38
|
+
render(): import("lit").TemplateResult<1>;
|
|
39
|
+
}
|
|
40
|
+
declare global {
|
|
41
|
+
interface HTMLElementTagNameMap {
|
|
42
|
+
"consent-wallet-check": ConsentWalletCheck;
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
//# sourceMappingURL=consent-wallet-check.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"consent-wallet-check.d.ts","sourceRoot":"","sources":["../../src/components/consent-wallet-check.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AAEH,OAAO,EAAE,UAAU,EAAa,MAAM,KAAK,CAAC;AAI5C,OAAO,yBAAyB,CAAC;AAGjC,OAAO,EACL,qBAAqB,EACrB,gBAAgB,EAChB,KAAK,iBAAiB,GACvB,MAAM,oBAAoB,CAAC;AAE5B;;;GAGG;AACH,qBACa,kBAAmB,SAAQ,UAAU;IACL,MAAM,EAAE,MAAM,CAAc;IACvE,kDAAkD;IACtB,OAAO,SAAM;IAEzC,OAAgB,MAAM,0BAyBpB;IAEO,MAAM;CAgBhB;AAED,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,sBAAsB,EAAE,kBAAkB,CAAC;KAC5C;CACF"}
|
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Consent Wallet Check
|
|
3
|
+
*
|
|
4
|
+
* The check that this browser's wallet can sign for the person: the
|
|
5
|
+
* `consent-wallet-orb` and one line under it. It stays for as long as the
|
|
6
|
+
* request is open, closing its dial once the wallet is ready and resting,
|
|
7
|
+
* still open, when this browser can't sign. Pair it with
|
|
8
|
+
* `consent-wallet-notice`, which says what to do then.
|
|
9
|
+
*
|
|
10
|
+
* Status, from your own check of the person's wallet:
|
|
11
|
+
*
|
|
12
|
+
* - `checking`: looking up this browser's wallet.
|
|
13
|
+
* - `syncing`: linking this device's wallet to the account.
|
|
14
|
+
* - `ready`: the wallet can sign.
|
|
15
|
+
* - `conflict`: this browser can't sign for the account.
|
|
16
|
+
* - `error`: the check itself failed.
|
|
17
|
+
*
|
|
18
|
+
* The orb is decoration (hidden from assistive tech); the caption is
|
|
19
|
+
* announced as it changes.
|
|
20
|
+
*
|
|
21
|
+
* Parts: `frame`, `orb` (the `consent-wallet-orb`), `caption`, and the orb's
|
|
22
|
+
* own `globe`, `dial` and `check`.
|
|
23
|
+
*
|
|
24
|
+
* @module components/consent-wallet-check
|
|
25
|
+
*/
|
|
26
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
27
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
28
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
29
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
30
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
31
|
+
};
|
|
32
|
+
import { LitElement, html, css } from "lit";
|
|
33
|
+
import { customElement, property } from "lit/decorators.js";
|
|
34
|
+
import { CONSENT_COPY_TOKENS } from "../copy/tokens.js";
|
|
35
|
+
import "./consent-wallet-orb.js";
|
|
36
|
+
import { readWalletStatus } from "./wallet-status.js";
|
|
37
|
+
export { WALLET_CHECK_STATUSES, readWalletStatus, } from "./wallet-status.js";
|
|
38
|
+
/**
|
|
39
|
+
* Takes the orb's tokens (`--cs-wallet-orb-size`, `--cs-wallet-accent`,
|
|
40
|
+
* `--cs-wallet-success`, `--cs-wallet-muted`); see `consent-wallet-orb`.
|
|
41
|
+
*/
|
|
42
|
+
let ConsentWalletCheck = class ConsentWalletCheck extends LitElement {
|
|
43
|
+
constructor() {
|
|
44
|
+
super(...arguments);
|
|
45
|
+
this.status = "checking";
|
|
46
|
+
/** Your own caption, in place of the status's. */
|
|
47
|
+
this.caption = "";
|
|
48
|
+
}
|
|
49
|
+
render() {
|
|
50
|
+
const status = readWalletStatus(this.status);
|
|
51
|
+
return html `
|
|
52
|
+
<div part="frame" class="frame">
|
|
53
|
+
<consent-wallet-orb
|
|
54
|
+
part="orb"
|
|
55
|
+
exportparts="globe, dial, check"
|
|
56
|
+
aria-hidden="true"
|
|
57
|
+
.status=${status}
|
|
58
|
+
></consent-wallet-orb>
|
|
59
|
+
<p part="caption" class="caption" aria-live="polite">
|
|
60
|
+
${this.caption || CONSENT_COPY_TOKENS.wallet.check[status]}
|
|
61
|
+
</p>
|
|
62
|
+
</div>
|
|
63
|
+
`;
|
|
64
|
+
}
|
|
65
|
+
};
|
|
66
|
+
ConsentWalletCheck.styles = css `
|
|
67
|
+
:host {
|
|
68
|
+
display: block;
|
|
69
|
+
font-family: inherit;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
:host([hidden]) {
|
|
73
|
+
display: none;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
.frame {
|
|
77
|
+
display: flex;
|
|
78
|
+
flex-direction: column;
|
|
79
|
+
align-items: center;
|
|
80
|
+
gap: 8px;
|
|
81
|
+
padding: 8px 0;
|
|
82
|
+
text-align: center;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
.caption {
|
|
86
|
+
margin: 0;
|
|
87
|
+
color: var(--cs-text-tertiary, #64748b);
|
|
88
|
+
font-size: 12px;
|
|
89
|
+
line-height: 1.35;
|
|
90
|
+
}
|
|
91
|
+
`;
|
|
92
|
+
__decorate([
|
|
93
|
+
property({ type: String, reflect: true })
|
|
94
|
+
], ConsentWalletCheck.prototype, "status", void 0);
|
|
95
|
+
__decorate([
|
|
96
|
+
property({ type: String })
|
|
97
|
+
], ConsentWalletCheck.prototype, "caption", void 0);
|
|
98
|
+
ConsentWalletCheck = __decorate([
|
|
99
|
+
customElement("consent-wallet-check")
|
|
100
|
+
], ConsentWalletCheck);
|
|
101
|
+
export { ConsentWalletCheck };
|
|
102
|
+
//# sourceMappingURL=consent-wallet-check.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"consent-wallet-check.js","sourceRoot":"","sources":["../../src/components/consent-wallet-check.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;;;;;;;AAEH,OAAO,EAAE,UAAU,EAAE,IAAI,EAAE,GAAG,EAAE,MAAM,KAAK,CAAC;AAC5C,OAAO,EAAE,aAAa,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAE5D,OAAO,EAAE,mBAAmB,EAAE,MAAM,mBAAmB,CAAC;AACxD,OAAO,yBAAyB,CAAC;AACjC,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAEtD,OAAO,EACL,qBAAqB,EACrB,gBAAgB,GAEjB,MAAM,oBAAoB,CAAC;AAE5B;;;GAGG;AAEI,IAAM,kBAAkB,GAAxB,MAAM,kBAAmB,SAAQ,UAAU;IAA3C;;QACsC,WAAM,GAAW,UAAU,CAAC;QACvE,kDAAkD;QACtB,YAAO,GAAG,EAAE,CAAC;IA6C3C,CAAC;IAhBU,MAAM;QACb,MAAM,MAAM,GAAG,gBAAgB,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;QAC7C,OAAO,IAAI,CAAA;;;;;;oBAMK,MAAM;;;YAGd,IAAI,CAAC,OAAO,IAAI,mBAAmB,CAAC,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC;;;KAG/D,CAAC;IACJ,CAAC;;AA1Ce,yBAAM,GAAG,GAAG,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;GAyB3B,AAzBqB,CAyBpB;AA7ByC;IAA1C,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;kDAA6B;AAE3C;IAA3B,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;mDAAc;AAH9B,kBAAkB;IAD9B,aAAa,CAAC,sBAAsB,CAAC;GACzB,kBAAkB,CAgD9B"}
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Consent Wallet Notice
|
|
3
|
+
*
|
|
4
|
+
* What to do when this browser can't sign: plain guidance under
|
|
5
|
+
* `consent-wallet-check`, shown only while its status is `conflict` or
|
|
6
|
+
* `error`. It isn't an alert. Nothing went wrong on the page; the person's
|
|
7
|
+
* question is "so what do I do?", and each reason leads with the one action
|
|
8
|
+
* that works.
|
|
9
|
+
*
|
|
10
|
+
* Reasons, for a `conflict`:
|
|
11
|
+
*
|
|
12
|
+
* - `passkey-unreachable`: the wallet comes from a passkey this browser
|
|
13
|
+
* can't reach. Approve where the passkey lives.
|
|
14
|
+
* - `key-drift`: this browser holds the account but signs with another key.
|
|
15
|
+
* - `superseded`: the account was registered again without this device.
|
|
16
|
+
*
|
|
17
|
+
* Any other reason shows `message`, as text.
|
|
18
|
+
*
|
|
19
|
+
* `credentials-url` links the page where the person manages their wallet;
|
|
20
|
+
* without it the words stay, unlinked. The `more` slot replaces the advice
|
|
21
|
+
* under an unreachable passkey.
|
|
22
|
+
*
|
|
23
|
+
* Parts: `frame`, `title`, `body`, `more`, `link`.
|
|
24
|
+
*
|
|
25
|
+
* @module components/consent-wallet-notice
|
|
26
|
+
*/
|
|
27
|
+
import { LitElement, nothing } from "lit";
|
|
28
|
+
export declare const WALLET_NOTICE_REASONS: readonly ["passkey-unreachable", "key-drift", "superseded"];
|
|
29
|
+
export type WalletNoticeReason = (typeof WALLET_NOTICE_REASONS)[number];
|
|
30
|
+
/**
|
|
31
|
+
* @slot more - Replaces the advice under an unreachable passkey.
|
|
32
|
+
* @cssprop --cs-notice-bg - The notice's background (default: the card surface).
|
|
33
|
+
* @cssprop --cs-link - Link color (default: the primary text color).
|
|
34
|
+
*/
|
|
35
|
+
export declare class ConsentWalletNotice extends LitElement {
|
|
36
|
+
/** `consent-wallet-check`'s status. Only `conflict` and `error` show. */
|
|
37
|
+
status: string;
|
|
38
|
+
reason: string;
|
|
39
|
+
/** The host's own words, for a reason the element doesn't know. */
|
|
40
|
+
message: string;
|
|
41
|
+
/** The app the person set their wallet up in, e.g. "Hobbsidian". */
|
|
42
|
+
appName: string;
|
|
43
|
+
credentialsUrl: string;
|
|
44
|
+
/** The page reflects an approval made elsewhere, so it can say so. */
|
|
45
|
+
updatesOnItsOwn: boolean;
|
|
46
|
+
static styles: import("lit").CSSResult;
|
|
47
|
+
render(): import("lit").TemplateResult<1> | typeof nothing;
|
|
48
|
+
}
|
|
49
|
+
declare global {
|
|
50
|
+
interface HTMLElementTagNameMap {
|
|
51
|
+
"consent-wallet-notice": ConsentWalletNotice;
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
//# sourceMappingURL=consent-wallet-notice.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"consent-wallet-notice.d.ts","sourceRoot":"","sources":["../../src/components/consent-wallet-notice.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AAEH,OAAO,EAAE,UAAU,EAAa,OAAO,EAAE,MAAM,KAAK,CAAC;AAMrD,eAAO,MAAM,qBAAqB,6DAIxB,CAAC;AAEX,MAAM,MAAM,kBAAkB,GAAG,CAAC,OAAO,qBAAqB,CAAC,CAAC,MAAM,CAAC,CAAC;AAExE;;;;GAIG;AACH,qBACa,mBAAoB,SAAQ,UAAU;IACjD,yEAAyE;IAC9B,MAAM,SAAM;IACZ,MAAM,SAAM;IACvD,mEAAmE;IACvC,OAAO,SAAM;IACzC,oEAAoE;IACjB,OAAO,SAAM;IACN,cAAc,SAAM;IAC9E,sEAAsE;IAEtE,eAAe,UAAS;IAExB,OAAgB,MAAM,0BAuDpB;IAEO,MAAM;CA2ChB;AAED,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,uBAAuB,EAAE,mBAAmB,CAAC;KAC9C;CACF"}
|