@kya-os/consent 0.5.1 → 0.5.3
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 +30 -9
- 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/cjs/bundle/inline.js +4 -4
- package/dist/cjs/bundle/inline.js.map +1 -1
- package/dist/cjs/components/approver-lockup.js +365 -0
- package/dist/cjs/components/approver-lockup.js.map +1 -0
- package/dist/cjs/components/consent-action-bar.js +4 -0
- package/dist/cjs/components/consent-action-bar.js.map +1 -1
- package/dist/cjs/components/consent-capabilities-screen.js +358 -98
- package/dist/cjs/components/consent-capabilities-screen.js.map +1 -1
- package/dist/cjs/components/consent-connector-header.js +1 -0
- package/dist/cjs/components/consent-connector-header.js.map +1 -1
- package/dist/cjs/components/consent-flow.js +392 -10
- package/dist/cjs/components/consent-flow.js.map +1 -1
- package/dist/cjs/components/consent-headline.js +35 -7
- package/dist/cjs/components/consent-headline.js.map +1 -1
- package/dist/cjs/components/consent-wallet-orb.js +6 -1
- package/dist/cjs/components/consent-wallet-orb.js.map +1 -1
- package/dist/cjs/components/decision-icons.js +2 -0
- package/dist/cjs/components/decision-icons.js.map +1 -1
- package/dist/cjs/components/flow-blocks.js +139 -298
- package/dist/cjs/components/flow-blocks.js.map +1 -1
- package/dist/cjs/components/index.js.map +1 -1
- package/dist/cjs/copy/tokens.js +14 -1
- package/dist/cjs/copy/tokens.js.map +1 -1
- package/dist/cjs/flow/copy.js +15 -0
- package/dist/cjs/flow/copy.js.map +1 -1
- package/dist/cjs/flow/index.js +5 -2
- package/dist/cjs/flow/index.js.map +1 -1
- package/dist/cjs/flow/model.js +46 -1
- package/dist/cjs/flow/model.js.map +1 -1
- package/dist/cjs/flow/page.js +282 -0
- package/dist/cjs/flow/page.js.map +1 -0
- package/dist/cjs/flow/presets.js +4 -0
- package/dist/cjs/flow/presets.js.map +1 -1
- package/dist/cjs/flow/schema.js +1 -0
- package/dist/cjs/flow/schema.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/react/index.js +2 -0
- package/dist/cjs/react/index.js.map +1 -1
- package/dist/cjs/schemas/capabilities.schemas.js +1 -0
- package/dist/cjs/schemas/capabilities.schemas.js.map +1 -1
- package/dist/cjs/styles/brand.js +135 -38
- package/dist/cjs/styles/brand.js.map +1 -1
- package/dist/cjs/styles/theme.js +32 -3
- package/dist/cjs/styles/theme.js.map +1 -1
- package/dist/components/approver-lockup.d.ts +73 -0
- package/dist/components/approver-lockup.d.ts.map +1 -0
- package/dist/components/approver-lockup.js +358 -0
- package/dist/components/approver-lockup.js.map +1 -0
- package/dist/components/consent-action-bar.d.ts.map +1 -1
- package/dist/components/consent-action-bar.js +4 -0
- package/dist/components/consent-action-bar.js.map +1 -1
- package/dist/components/consent-capabilities-screen.d.ts +88 -8
- package/dist/components/consent-capabilities-screen.d.ts.map +1 -1
- package/dist/components/consent-capabilities-screen.js +358 -98
- package/dist/components/consent-capabilities-screen.js.map +1 -1
- package/dist/components/consent-connector-header.d.ts.map +1 -1
- package/dist/components/consent-connector-header.js +1 -0
- package/dist/components/consent-connector-header.js.map +1 -1
- package/dist/components/consent-flow.d.ts +56 -2
- package/dist/components/consent-flow.d.ts.map +1 -1
- package/dist/components/consent-flow.js +394 -12
- package/dist/components/consent-flow.js.map +1 -1
- package/dist/components/consent-headline.d.ts +15 -3
- package/dist/components/consent-headline.d.ts.map +1 -1
- package/dist/components/consent-headline.js +35 -7
- package/dist/components/consent-headline.js.map +1 -1
- package/dist/components/consent-wallet-orb.d.ts +4 -0
- package/dist/components/consent-wallet-orb.d.ts.map +1 -1
- package/dist/components/consent-wallet-orb.js +6 -1
- package/dist/components/consent-wallet-orb.js.map +1 -1
- package/dist/components/decision-icons.d.ts +2 -0
- package/dist/components/decision-icons.d.ts.map +1 -1
- package/dist/components/decision-icons.js +2 -0
- package/dist/components/decision-icons.js.map +1 -1
- package/dist/components/flow-blocks.d.ts +5 -5
- package/dist/components/flow-blocks.d.ts.map +1 -1
- package/dist/components/flow-blocks.js +139 -296
- package/dist/components/flow-blocks.js.map +1 -1
- package/dist/components/index.d.ts +1 -1
- package/dist/components/index.d.ts.map +1 -1
- package/dist/components/index.js.map +1 -1
- package/dist/consent.js +1787 -910
- package/dist/consent.min.js +1026 -676
- package/dist/copy/tokens.d.ts +14 -1
- package/dist/copy/tokens.d.ts.map +1 -1
- package/dist/copy/tokens.js +14 -1
- package/dist/copy/tokens.js.map +1 -1
- package/dist/flow/copy.d.ts +2 -0
- package/dist/flow/copy.d.ts.map +1 -1
- package/dist/flow/copy.js +14 -0
- package/dist/flow/copy.js.map +1 -1
- package/dist/flow/index.d.ts +5 -2
- package/dist/flow/index.d.ts.map +1 -1
- package/dist/flow/index.js +5 -2
- package/dist/flow/index.js.map +1 -1
- package/dist/flow/model.d.ts +53 -2
- package/dist/flow/model.d.ts.map +1 -1
- package/dist/flow/model.js +45 -0
- package/dist/flow/model.js.map +1 -1
- package/dist/flow/page.d.ts +110 -0
- package/dist/flow/page.d.ts.map +1 -0
- package/dist/flow/page.js +276 -0
- package/dist/flow/page.js.map +1 -0
- package/dist/flow/presets.d.ts.map +1 -1
- package/dist/flow/presets.js +4 -0
- package/dist/flow/presets.js.map +1 -1
- package/dist/flow/schema.d.ts +19 -14
- package/dist/flow/schema.d.ts.map +1 -1
- package/dist/flow/schema.js +1 -0
- package/dist/flow/schema.js.map +1 -1
- 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/react/index.d.ts +5 -3
- package/dist/react/index.d.ts.map +1 -1
- package/dist/react/index.js +2 -0
- package/dist/react/index.js.map +1 -1
- package/dist/schemas/api.schemas.d.ts +9 -0
- package/dist/schemas/api.schemas.d.ts.map +1 -1
- package/dist/schemas/capabilities.schemas.d.ts +5 -0
- package/dist/schemas/capabilities.schemas.d.ts.map +1 -1
- package/dist/schemas/capabilities.schemas.js +1 -0
- package/dist/schemas/capabilities.schemas.js.map +1 -1
- package/dist/schemas/config.schemas.d.ts +14 -0
- package/dist/schemas/config.schemas.d.ts.map +1 -1
- package/dist/styles/brand.d.ts +53 -18
- package/dist/styles/brand.d.ts.map +1 -1
- package/dist/styles/brand.js +136 -39
- package/dist/styles/brand.js.map +1 -1
- package/dist/styles/theme.d.ts +15 -1
- package/dist/styles/theme.d.ts.map +1 -1
- package/dist/styles/theme.js +31 -2
- package/dist/styles/theme.js.map +1 -1
- package/dist/types/capabilities.types.d.ts +20 -0
- package/dist/types/capabilities.types.d.ts.map +1 -1
- package/dist/types/decision.types.d.ts +10 -2
- package/dist/types/decision.types.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,358 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The approver lockup
|
|
3
|
+
*
|
|
4
|
+
* Who approves, and the agent they approve: the person's face, name and
|
|
5
|
+
* sign-in with a mark, any checks they passed, then the agent's tile and name
|
|
6
|
+
* with its status. `<consent-flow>`'s approver block and
|
|
7
|
+
* `<consent-capabilities-screen>`'s approver box both draw it, so the two
|
|
8
|
+
* screens show the relationship the same way. Each fills in its own words.
|
|
9
|
+
*
|
|
10
|
+
* @module components/approver-lockup
|
|
11
|
+
*/
|
|
12
|
+
import { css, html, nothing } from "lit";
|
|
13
|
+
import { initialsOf } from "../flow/copy.js";
|
|
14
|
+
import { decisionIcon } from "./decision-icons.js";
|
|
15
|
+
/**
|
|
16
|
+
* An address or a domain with a line break offered before each "@" and ".",
|
|
17
|
+
* so a narrow card wraps "person" / "@example.com" rather than mid-word.
|
|
18
|
+
*/
|
|
19
|
+
export function breakable(value) {
|
|
20
|
+
return value
|
|
21
|
+
.split(/(?=[@.])/)
|
|
22
|
+
.map((piece, i) => (i ? html `<wbr />${piece}` : piece));
|
|
23
|
+
}
|
|
24
|
+
const hide = (event) => {
|
|
25
|
+
event.target.hidden = true;
|
|
26
|
+
};
|
|
27
|
+
const show = (event) => {
|
|
28
|
+
event.target.hidden = false;
|
|
29
|
+
};
|
|
30
|
+
/** A person's face: their initials, with the provider's picture over them when it loads. */
|
|
31
|
+
export function face(name, identifier = "", avatarUrl = "", size = "md") {
|
|
32
|
+
const initials = initialsOf(name, identifier);
|
|
33
|
+
return html `<span
|
|
34
|
+
class="face ${size} ${initials.length > 1 ? "two" : ""}"
|
|
35
|
+
aria-hidden="true"
|
|
36
|
+
>${initials}${avatarUrl
|
|
37
|
+
? html `<img src=${avatarUrl} alt="" @error=${hide} @load=${show} />`
|
|
38
|
+
: nothing}</span
|
|
39
|
+
>`;
|
|
40
|
+
}
|
|
41
|
+
/** The agent's tile: its mark on white in every theme, or its initial. A name alone never earns a mark. */
|
|
42
|
+
export function agentTile(agent) {
|
|
43
|
+
const initial = initialsOf(agent.name).slice(0, 1);
|
|
44
|
+
return html `<span class="tile" aria-hidden="true"
|
|
45
|
+
>${initial}${agent.logoUrl
|
|
46
|
+
? html `<img src=${agent.logoUrl} alt="" @error=${hide} @load=${show} />`
|
|
47
|
+
: nothing}</span
|
|
48
|
+
>`;
|
|
49
|
+
}
|
|
50
|
+
function personRow(person) {
|
|
51
|
+
return html `<div class="lockup-row">
|
|
52
|
+
${face(person.name, person.identifier, person.avatarUrl)}
|
|
53
|
+
<div class="lockup-text">
|
|
54
|
+
<span class="lockup-label">${person.label}</span>
|
|
55
|
+
<span class="lockup-name">${breakable(person.name)}</span>
|
|
56
|
+
${person.detail
|
|
57
|
+
? html `<span class="small">${breakable(person.detail)}</span>`
|
|
58
|
+
: nothing}
|
|
59
|
+
</div>
|
|
60
|
+
<span
|
|
61
|
+
class="lockup-mark ${person.declined ? "declined" : ""}"
|
|
62
|
+
role="img"
|
|
63
|
+
aria-label=${person.mark}
|
|
64
|
+
title=${person.mark}
|
|
65
|
+
>${decisionIcon(person.declined ? "minus" : "check")}</span
|
|
66
|
+
>
|
|
67
|
+
</div>`;
|
|
68
|
+
}
|
|
69
|
+
function checkRow(check) {
|
|
70
|
+
return html `<div class="lockup-row lockup-check" part="approver-check">
|
|
71
|
+
<span class="lockup-check-icon" aria-hidden="true"
|
|
72
|
+
>${decisionIcon("check")}</span
|
|
73
|
+
>
|
|
74
|
+
<div class="lockup-text">
|
|
75
|
+
<span class="value">${check.label}</span>
|
|
76
|
+
${check.summary ? html `<span>${check.summary}</span>` : nothing}
|
|
77
|
+
${check.source
|
|
78
|
+
? html `<span class="small">${check.source}</span>`
|
|
79
|
+
: nothing}
|
|
80
|
+
</div>
|
|
81
|
+
</div>`;
|
|
82
|
+
}
|
|
83
|
+
function agentRow(agent) {
|
|
84
|
+
return html `<div class="lockup-row party" part="approver-agent">
|
|
85
|
+
${agentTile(agent)}
|
|
86
|
+
<div class="lockup-text">
|
|
87
|
+
<span class="small">${agent.label}</span>
|
|
88
|
+
<span class="value">${breakable(agent.name)}</span>
|
|
89
|
+
</div>
|
|
90
|
+
${agent.status
|
|
91
|
+
? html `<span
|
|
92
|
+
class="party-status ${agent.unverified ? "unverified" : ""}"
|
|
93
|
+
part="agent-status"
|
|
94
|
+
>${breakable(agent.status)}${agent.info
|
|
95
|
+
? html `<button
|
|
96
|
+
type="button"
|
|
97
|
+
class="info"
|
|
98
|
+
aria-label=${agent.status}
|
|
99
|
+
aria-describedby="agent-status-info"
|
|
100
|
+
>
|
|
101
|
+
${decisionIcon("info")}</button
|
|
102
|
+
><span class="tip" id="agent-status-info" role="tooltip"
|
|
103
|
+
>${agent.info}</span
|
|
104
|
+
>`
|
|
105
|
+
: nothing}</span
|
|
106
|
+
>`
|
|
107
|
+
: nothing}
|
|
108
|
+
</div>`;
|
|
109
|
+
}
|
|
110
|
+
/** The lockup: the person, their checks, then the agent, each when given. */
|
|
111
|
+
export function approverLockup(view) {
|
|
112
|
+
return html `<div class="tinted lockup" part="approver">
|
|
113
|
+
${view.person ? personRow(view.person) : nothing}
|
|
114
|
+
${(view.checks ?? []).map(checkRow)}
|
|
115
|
+
${view.agent ? agentRow(view.agent) : nothing}
|
|
116
|
+
</div>`;
|
|
117
|
+
}
|
|
118
|
+
/**
|
|
119
|
+
* The lockup's look. A screen that draws it also needs `.tinted` and `.small`,
|
|
120
|
+
* which both screens define the same way for their other boxes.
|
|
121
|
+
*/
|
|
122
|
+
export const approverLockupStyles = css `
|
|
123
|
+
/* Names break only where a word can't fit, and an address at its "@" and
|
|
124
|
+
dots first (breakable). */
|
|
125
|
+
.lockup {
|
|
126
|
+
display: flex;
|
|
127
|
+
flex-direction: column;
|
|
128
|
+
gap: 12px;
|
|
129
|
+
padding: 16px 18px;
|
|
130
|
+
container-type: inline-size;
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
.lockup-row {
|
|
134
|
+
display: flex;
|
|
135
|
+
align-items: center;
|
|
136
|
+
gap: 12px;
|
|
137
|
+
min-width: 0;
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
.lockup-row.party,
|
|
141
|
+
.lockup-check:not(:first-child) {
|
|
142
|
+
padding-top: 12px;
|
|
143
|
+
border-top: 1px solid var(--cs-tint-line);
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
.lockup-check {
|
|
147
|
+
align-items: flex-start;
|
|
148
|
+
font-size: 14px;
|
|
149
|
+
line-height: 1.45;
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
.lockup-text {
|
|
153
|
+
display: flex;
|
|
154
|
+
flex: 1;
|
|
155
|
+
flex-direction: column;
|
|
156
|
+
gap: 2px;
|
|
157
|
+
min-width: 0;
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
.lockup-label {
|
|
161
|
+
font-size: 10px;
|
|
162
|
+
letter-spacing: 0.16em;
|
|
163
|
+
font-weight: 600;
|
|
164
|
+
text-transform: uppercase;
|
|
165
|
+
color: var(--cs-text-tertiary);
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
.lockup-name {
|
|
169
|
+
font-size: 20px;
|
|
170
|
+
font-weight: 600;
|
|
171
|
+
line-height: 1.2;
|
|
172
|
+
overflow-wrap: break-word;
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
.lockup-text .value {
|
|
176
|
+
font-weight: 500;
|
|
177
|
+
overflow-wrap: break-word;
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
.lockup-mark {
|
|
181
|
+
display: grid;
|
|
182
|
+
flex-shrink: 0;
|
|
183
|
+
color: var(--cs-wallet-success, var(--cs-mark));
|
|
184
|
+
}
|
|
185
|
+
|
|
186
|
+
.lockup-mark.declined {
|
|
187
|
+
color: var(--cs-text-tertiary);
|
|
188
|
+
}
|
|
189
|
+
|
|
190
|
+
.lockup-mark svg {
|
|
191
|
+
width: 22px;
|
|
192
|
+
height: 22px;
|
|
193
|
+
}
|
|
194
|
+
|
|
195
|
+
/* A check's mark sits in the face's column, so its words line up with the name. */
|
|
196
|
+
.lockup-check-icon {
|
|
197
|
+
display: grid;
|
|
198
|
+
place-items: center;
|
|
199
|
+
flex-shrink: 0;
|
|
200
|
+
width: 42px;
|
|
201
|
+
color: var(--cs-mark);
|
|
202
|
+
}
|
|
203
|
+
|
|
204
|
+
.lockup-check-icon svg {
|
|
205
|
+
width: 20px;
|
|
206
|
+
height: 20px;
|
|
207
|
+
}
|
|
208
|
+
|
|
209
|
+
.face,
|
|
210
|
+
.tile {
|
|
211
|
+
position: relative;
|
|
212
|
+
display: grid;
|
|
213
|
+
place-items: center;
|
|
214
|
+
flex-shrink: 0;
|
|
215
|
+
width: 42px;
|
|
216
|
+
height: 42px;
|
|
217
|
+
overflow: hidden;
|
|
218
|
+
font-weight: 600;
|
|
219
|
+
}
|
|
220
|
+
|
|
221
|
+
.face {
|
|
222
|
+
border-radius: 50%;
|
|
223
|
+
background: var(--cs-surface-accent);
|
|
224
|
+
color: var(--cs-surface-accent-text);
|
|
225
|
+
font-size: 17px;
|
|
226
|
+
}
|
|
227
|
+
|
|
228
|
+
.face.two {
|
|
229
|
+
font-size: 15px;
|
|
230
|
+
letter-spacing: 0.02em;
|
|
231
|
+
}
|
|
232
|
+
|
|
233
|
+
.face.sm {
|
|
234
|
+
width: 32px;
|
|
235
|
+
height: 32px;
|
|
236
|
+
font-size: 13px;
|
|
237
|
+
}
|
|
238
|
+
|
|
239
|
+
.face img {
|
|
240
|
+
position: absolute;
|
|
241
|
+
inset: 0;
|
|
242
|
+
width: 100%;
|
|
243
|
+
height: 100%;
|
|
244
|
+
object-fit: cover;
|
|
245
|
+
}
|
|
246
|
+
|
|
247
|
+
.tile {
|
|
248
|
+
border-radius: var(--cs-tile-radius, 10px);
|
|
249
|
+
border: 1px solid var(--cs-agent-tile-border, rgba(15, 23, 42, 0.16));
|
|
250
|
+
background: var(--cs-surface-accent);
|
|
251
|
+
color: var(--cs-surface-accent-text);
|
|
252
|
+
font-size: 18px;
|
|
253
|
+
}
|
|
254
|
+
|
|
255
|
+
.tile img {
|
|
256
|
+
position: absolute;
|
|
257
|
+
inset: 0;
|
|
258
|
+
width: 100%;
|
|
259
|
+
height: 100%;
|
|
260
|
+
padding: 4px;
|
|
261
|
+
box-sizing: border-box;
|
|
262
|
+
object-fit: contain;
|
|
263
|
+
background: var(--cs-agent-tile-bg, #ffffff);
|
|
264
|
+
}
|
|
265
|
+
|
|
266
|
+
.party-status {
|
|
267
|
+
position: relative;
|
|
268
|
+
display: inline-flex;
|
|
269
|
+
align-items: center;
|
|
270
|
+
gap: 4px;
|
|
271
|
+
flex-shrink: 0;
|
|
272
|
+
font-size: 13px;
|
|
273
|
+
font-weight: 500;
|
|
274
|
+
color: var(--cs-text-secondary);
|
|
275
|
+
}
|
|
276
|
+
|
|
277
|
+
.party-status.unverified {
|
|
278
|
+
color: var(--cs-warning-text, var(--cs-text-primary));
|
|
279
|
+
}
|
|
280
|
+
|
|
281
|
+
/* A phone-width card: smaller faces and padding, and the agent's status
|
|
282
|
+
under its name, so the names keep their width. */
|
|
283
|
+
@container (max-width: 300px) {
|
|
284
|
+
.lockup-row {
|
|
285
|
+
gap: 10px;
|
|
286
|
+
}
|
|
287
|
+
|
|
288
|
+
.lockup-row.party {
|
|
289
|
+
flex-wrap: wrap;
|
|
290
|
+
}
|
|
291
|
+
|
|
292
|
+
.face,
|
|
293
|
+
.tile {
|
|
294
|
+
width: 36px;
|
|
295
|
+
height: 36px;
|
|
296
|
+
}
|
|
297
|
+
|
|
298
|
+
.lockup-check-icon {
|
|
299
|
+
width: 36px;
|
|
300
|
+
}
|
|
301
|
+
|
|
302
|
+
.party-status {
|
|
303
|
+
flex-basis: 100%;
|
|
304
|
+
flex-shrink: 1;
|
|
305
|
+
min-width: 0;
|
|
306
|
+
padding-left: 46px;
|
|
307
|
+
overflow-wrap: break-word;
|
|
308
|
+
}
|
|
309
|
+
}
|
|
310
|
+
|
|
311
|
+
.info {
|
|
312
|
+
display: inline-grid;
|
|
313
|
+
place-items: center;
|
|
314
|
+
width: 22px;
|
|
315
|
+
height: 22px;
|
|
316
|
+
padding: 0;
|
|
317
|
+
border: 0;
|
|
318
|
+
border-radius: 50%;
|
|
319
|
+
background: none;
|
|
320
|
+
color: var(--cs-text-tertiary);
|
|
321
|
+
cursor: help;
|
|
322
|
+
}
|
|
323
|
+
|
|
324
|
+
.info svg {
|
|
325
|
+
width: 16px;
|
|
326
|
+
height: 16px;
|
|
327
|
+
}
|
|
328
|
+
|
|
329
|
+
.info:focus-visible {
|
|
330
|
+
outline: 2px solid var(--cs-focus-ring, currentColor);
|
|
331
|
+
outline-offset: 1px;
|
|
332
|
+
}
|
|
333
|
+
|
|
334
|
+
.tip {
|
|
335
|
+
position: absolute;
|
|
336
|
+
top: calc(100% + 8px);
|
|
337
|
+
right: -6px;
|
|
338
|
+
z-index: 5;
|
|
339
|
+
width: 240px;
|
|
340
|
+
padding: 8px 10px;
|
|
341
|
+
border-radius: 8px;
|
|
342
|
+
background: var(--cs-text-primary);
|
|
343
|
+
color: var(--cs-surface-card);
|
|
344
|
+
font-size: 12px;
|
|
345
|
+
font-weight: 400;
|
|
346
|
+
line-height: 1.45;
|
|
347
|
+
text-align: left;
|
|
348
|
+
opacity: 0;
|
|
349
|
+
visibility: hidden;
|
|
350
|
+
}
|
|
351
|
+
|
|
352
|
+
.party-status:hover .tip,
|
|
353
|
+
.info:focus-visible + .tip {
|
|
354
|
+
opacity: 1;
|
|
355
|
+
visibility: visible;
|
|
356
|
+
}
|
|
357
|
+
`;
|
|
358
|
+
//# sourceMappingURL=approver-lockup.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"approver-lockup.js","sourceRoot":"","sources":["../../src/components/approver-lockup.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AACH,OAAO,EAAE,GAAG,EAAE,IAAI,EAAE,OAAO,EAAuB,MAAM,KAAK,CAAC;AAC9D,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAC7C,OAAO,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AA+CnD;;;GAGG;AACH,MAAM,UAAU,SAAS,CAAC,KAAa;IACrC,OAAO,KAAK;SACT,KAAK,CAAC,UAAU,CAAC;SACjB,GAAG,CAAC,CAAC,KAAK,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,CAAA,UAAU,KAAK,EAAE,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC;AAC5D,CAAC;AAED,MAAM,IAAI,GAAG,CAAC,KAAY,EAAE,EAAE;IAC3B,KAAK,CAAC,MAAsB,CAAC,MAAM,GAAG,IAAI,CAAC;AAC9C,CAAC,CAAC;AACF,MAAM,IAAI,GAAG,CAAC,KAAY,EAAE,EAAE;IAC3B,KAAK,CAAC,MAAsB,CAAC,MAAM,GAAG,KAAK,CAAC;AAC/C,CAAC,CAAC;AAEF,4FAA4F;AAC5F,MAAM,UAAU,IAAI,CAClB,IAAY,EACZ,UAAU,GAAG,EAAE,EACf,SAAS,GAAG,EAAE,EACd,OAAoB,IAAI;IA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1E,OAAgB,MAAM,0BAkFpB;IAEO,UAAU,IAAI,IAAI;IAI3B,OAAO,CAAC,SAAS;IAOjB,OAAO,CAAC,QAAQ;IAOP,MAAM;
|
|
1
|
+
{"version":3,"file":"consent-action-bar.d.ts","sourceRoot":"","sources":["../../src/components/consent-action-bar.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;GAsBG;AAEH,OAAO,EAAE,UAAU,EAAsB,MAAM,KAAK,CAAC;AAIrD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,gCAAgC,CAAC;AACnE,OAAO,EAEL,KAAK,iBAAiB,EACvB,MAAM,wBAAwB,CAAC;AAKhC,sCAAsC;AACtC,MAAM,MAAM,mBAAmB,GAAG,EAAE,GAAG,SAAS,CAAC;AAEjD;;;;GAIG;AACH,qBACa,gBAAiB,SAAQ,UAAU;IAClB,SAAS,SAAM;IACf,KAAK,EAAE,YAAY,CAAW;IAC7B,QAAQ,UAAS;IACjB,OAAO,UAAS;IACU,WAAW,SAAM;IACjB,WAAW,SAAM;IACxE,wDAAwD;IAExD,UAAU,EAAE,mBAAmB,CAAM;IACrC,yDAAyD;IACD,YAAY,SAAM;IAC1E,8EAA8E;IAClC,OAAO,UAAS;IAC5D,yDAAyD;IACb,QAAQ,UAAS;IAC7D,uEAAuE;IACvC,UAAU,EAAE,iBAAiB,GAAG,SAAS,CAAC;IAE1E,OAAgB,MAAM,0BAkFpB;IAEO,UAAU,IAAI,IAAI;IAI3B,OAAO,CAAC,SAAS;IAOjB,OAAO,CAAC,QAAQ;IAOP,MAAM;IA0Cf;;;OAGG;IACH,OAAO,CAAC,WAAW;IAgCnB,OAAO,CAAC,gBAAgB;CAgBzB;AAED,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,oBAAoB,EAAE,gBAAgB,CAAC;KACxC;CACF"}
|
|
@@ -88,6 +88,7 @@ let ConsentActionBar = class ConsentActionBar extends LitElement {
|
|
|
88
88
|
<button
|
|
89
89
|
class="action primary"
|
|
90
90
|
part="submit"
|
|
91
|
+
data-field="approve"
|
|
91
92
|
type="button"
|
|
92
93
|
?disabled=${this.disabled || this.loading}
|
|
93
94
|
@click=${this.emitAllow}
|
|
@@ -97,6 +98,7 @@ let ConsentActionBar = class ConsentActionBar extends LitElement {
|
|
|
97
98
|
<button
|
|
98
99
|
class="action secondary"
|
|
99
100
|
part="cancel"
|
|
101
|
+
data-field="deny"
|
|
100
102
|
type="button"
|
|
101
103
|
?disabled=${this.loading}
|
|
102
104
|
@click=${this.emitDeny}
|
|
@@ -117,12 +119,14 @@ let ConsentActionBar = class ConsentActionBar extends LitElement {
|
|
|
117
119
|
? " disabled"
|
|
118
120
|
: ""}"
|
|
119
121
|
part="submit"
|
|
122
|
+
data-field="approve"
|
|
120
123
|
>
|
|
121
124
|
${this.renderSubmitIcon()}${editRegion(CONSENT_EDIT_KEYS.submitLabel, tokens.submitLabel, allowLabel, this.editSource)}
|
|
122
125
|
</div>
|
|
123
126
|
<div
|
|
124
127
|
class="action secondary${this.loading ? " disabled" : ""}"
|
|
125
128
|
part="cancel"
|
|
129
|
+
data-field="deny"
|
|
126
130
|
>
|
|
127
131
|
${editRegion(CONSENT_EDIT_KEYS.cancelLabel, tokens.cancelLabel, denyLabel, this.editSource)}
|
|
128
132
|
</div>
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"consent-action-bar.js","sourceRoot":"","sources":["../../src/components/consent-action-bar.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;GAsBG;;;;;;;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,mBAAmB,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAErE,OAAO,EACL,iBAAiB,GAElB,MAAM,wBAAwB,CAAC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AE,CAAC;kDAAkB;AAE7B;IAA/B,QAAQ,CAAC,EAAE,SAAS,EAAE,KAAK,EAAE,CAAC;oDAA2C;AAjB/D,gBAAgB;IAD5B,aAAa,CAAC,oBAAoB,CAAC;GACvB,gBAAgB,CAuN5B"}
|
|
@@ -3,8 +3,9 @@
|
|
|
3
3
|
*
|
|
4
4
|
* The consent decision page, as Checkpoint draws it: the connector above a
|
|
5
5
|
* card holding the eyebrow, the serif headline that names the agent (its name
|
|
6
|
-
* opens what is known about it),
|
|
7
|
-
*
|
|
6
|
+
* opens what is known about it), who is authorizing which agent
|
|
7
|
+
* (`approver`, else a warning when the agent registered itself), the
|
|
8
|
+
* permission rows, the "Permission
|
|
8
9
|
* details" box (`grantDetails`, else the revocation notice) and Allow and
|
|
9
10
|
* Deny; under the card, "Secured by" and the Vouched lockup, and the host's
|
|
10
11
|
* legal links. Used when the resolved consent config includes `capabilities`.
|
|
@@ -18,11 +19,16 @@
|
|
|
18
19
|
* Each row's parts are forwarded with a `capability-` prefix
|
|
19
20
|
* (`capability-row`, `capability-label` and so on, see
|
|
20
21
|
* CAPABILITY_ROW_EXPORT_PARTS). The other parts are `connector`, `card`,
|
|
21
|
-
* `eyebrow`, `headline`, `agent-name`, `
|
|
22
|
-
* `
|
|
22
|
+
* `eyebrow`, `headline`, `agent-name`, `merchant-name` (with `headline`),
|
|
23
|
+
* `subhead`, `agent-details`, `info-note`,
|
|
24
|
+
* `unverified`, `approver` (with `approver-check`, `approver-agent` and
|
|
25
|
+
* `agent-status` inside), `permissions`, `section-header` (the eyebrow over
|
|
23
26
|
* the rows, "What {Agent} can do for you"), `section-hint` ("Tap to toggle"),
|
|
24
27
|
* `grant-details`, `actions`,
|
|
25
|
-
* `submit`, `cancel` and `below
|
|
28
|
+
* `submit`, `cancel` and `below`, and, when drawn, `error`, a row's
|
|
29
|
+
* verification (`capability-verify`, `capability-verify-label` and
|
|
30
|
+
* `capability-verify-action`) and its held-scope notice (`capability-held`).
|
|
31
|
+
* A host puts content in a row by giving it
|
|
26
32
|
* `slot="capability-<capability id>"`, words the headline itself through the
|
|
27
33
|
* `headline` slot, replaces the lockup through `footer`, adds its legal
|
|
28
34
|
* links through `legal`, and puts a `consent-wallet-check`
|
|
@@ -31,6 +37,14 @@
|
|
|
31
37
|
* Text wraps with `text-wrap: pretty`, inherited by every part, so no line
|
|
32
38
|
* ends on one word where the browser supports it.
|
|
33
39
|
*
|
|
40
|
+
* A row whose capability has a `check` (an identity check it needs first)
|
|
41
|
+
* shows "Requires verification" and a button with the check's words. The
|
|
42
|
+
* button never ticks the row: it sends `capability-check`, with the rows
|
|
43
|
+
* ticked now plus that one and any grant terms, for the host to run the
|
|
44
|
+
* check. `error` draws a notice at the top of the card that an action
|
|
45
|
+
* failed, and scrolls it into view each time it is set; clear it when the
|
|
46
|
+
* next action starts.
|
|
47
|
+
*
|
|
34
48
|
* With `preview` the screen draws as it would live and acts on nothing: it
|
|
35
49
|
* sends no `capabilities-allow` or `capabilities-deny`, and no link inside it
|
|
36
50
|
* goes anywhere; rows still tick. With `editable` as well, the subhead, the
|
|
@@ -46,6 +60,7 @@ import type { ConsentApprover, ConsentGrantDetails } from "../types/decision.typ
|
|
|
46
60
|
import { type AgentIdentity } from "../identity/agent-identity.js";
|
|
47
61
|
import { type ConsentEditSource } from "../types/edit.types.js";
|
|
48
62
|
import "./consent-action-bar.js";
|
|
63
|
+
import "./consent-headline.js";
|
|
49
64
|
import "./consent-secured-by.js";
|
|
50
65
|
import "./consent-revocation-notice.js";
|
|
51
66
|
import "./consent-connector-header.js";
|
|
@@ -69,6 +84,13 @@ export interface CapabilitiesApproveDetail {
|
|
|
69
84
|
*/
|
|
70
85
|
grantTerms?: GrantTerms;
|
|
71
86
|
}
|
|
87
|
+
/**
|
|
88
|
+
* Detail emitted on `capability-check`: the row whose check was started, and
|
|
89
|
+
* what Allow would send had the person ticked that row too.
|
|
90
|
+
*/
|
|
91
|
+
export interface CapabilityCheckDetail extends CapabilitiesApproveDetail {
|
|
92
|
+
capabilityId: string;
|
|
93
|
+
}
|
|
72
94
|
export declare class ConsentCapabilitiesScreen extends LitElement {
|
|
73
95
|
static readonly features: Readonly<{
|
|
74
96
|
version: 5;
|
|
@@ -94,17 +116,45 @@ export declare class ConsentCapabilitiesScreen extends LitElement {
|
|
|
94
116
|
fixedExpiryDays: number | undefined;
|
|
95
117
|
theme: ConsentTheme;
|
|
96
118
|
howItWorksUrl: string;
|
|
119
|
+
/**
|
|
120
|
+
* That the last action failed, in words for the person, such as the
|
|
121
|
+
* server's refusal. Drawn at the top of the card as an alert. Empty: none.
|
|
122
|
+
*/
|
|
123
|
+
error: string;
|
|
97
124
|
loading: boolean;
|
|
98
125
|
/** Blocks approval while allowing the human to decline. */
|
|
99
126
|
disabled: boolean;
|
|
127
|
+
/** The line over the headline. Empty gives "PERMISSION REQUEST". */
|
|
128
|
+
eyebrow: string;
|
|
129
|
+
/**
|
|
130
|
+
* The headline, with `{Agent}`, `{Verb}` (`headlineVerb`) and `{Merchant}`
|
|
131
|
+
* (`orgName`) in it. The agent's name stays the button that opens its
|
|
132
|
+
* details, and the merchant's is in italics. Empty, or naming a verb or
|
|
133
|
+
* merchant that isn't given, gives the standard line. The `headline` slot
|
|
134
|
+
* wins over it.
|
|
135
|
+
*/
|
|
136
|
+
headline: string;
|
|
137
|
+
/**
|
|
138
|
+
* A note under "Permission details", such as how long access lasts, with
|
|
139
|
+
* `{Agent}`, `{Verb}` and `{Merchant}` filled in as plain text. Empty draws
|
|
140
|
+
* none.
|
|
141
|
+
*/
|
|
142
|
+
infoNote: string;
|
|
100
143
|
/** The subhead. Empty draws none. */
|
|
101
144
|
description: string;
|
|
102
145
|
submitLabel: string;
|
|
103
146
|
/**
|
|
104
|
-
* Who is signing in, and the checks they passed.
|
|
105
|
-
*
|
|
147
|
+
* Who is signing in, and the checks they passed. The box shows them over the
|
|
148
|
+
* agent they authorize. With no identifier, name or check, as for a
|
|
149
|
+
* confirmation without sign-in, no box is drawn.
|
|
106
150
|
*/
|
|
107
151
|
approver: ConsentApprover | undefined;
|
|
152
|
+
/**
|
|
153
|
+
* Scopes an earlier approval already holds. A row that grants one says, once
|
|
154
|
+
* unticked, that the scope stays granted, since unticking it here doesn't
|
|
155
|
+
* withdraw the earlier grant.
|
|
156
|
+
*/
|
|
157
|
+
heldScopes: string[];
|
|
108
158
|
/**
|
|
109
159
|
* The "Permission details" box: what the grant connects to, how long it
|
|
110
160
|
* lasts and its limits, each worded by the host. Without it the screen
|
|
@@ -185,6 +235,7 @@ export declare class ConsentCapabilitiesScreen extends LitElement {
|
|
|
185
235
|
private seedKey;
|
|
186
236
|
constructor();
|
|
187
237
|
connectedCallback(): void;
|
|
238
|
+
updated(changed: Map<string, unknown>): void;
|
|
188
239
|
willUpdate(changed: Map<string, unknown>): void;
|
|
189
240
|
/**
|
|
190
241
|
* Seed `selected` from the capability defaults, but only when the
|
|
@@ -205,6 +256,11 @@ export declare class ConsentCapabilitiesScreen extends LitElement {
|
|
|
205
256
|
/** Grant terms in the `details` slot. None when rendered without a DOM. */
|
|
206
257
|
private get slottedTerms();
|
|
207
258
|
private get approvalDisabled();
|
|
259
|
+
/** What approving `selected` sends: its rows, their scopes and any grant terms. */
|
|
260
|
+
private approvalDetail;
|
|
261
|
+
/** A row's check can't start while the screen is busy or its terms can't be used. */
|
|
262
|
+
private get checkDisabled();
|
|
263
|
+
private onCheck;
|
|
208
264
|
private onAllow;
|
|
209
265
|
private onDeny;
|
|
210
266
|
private compileCapabilityCedar;
|
|
@@ -217,12 +273,36 @@ export declare class ConsentCapabilitiesScreen extends LitElement {
|
|
|
217
273
|
* rows, nothing.
|
|
218
274
|
*/
|
|
219
275
|
private renderSectionHeader;
|
|
276
|
+
/**
|
|
277
|
+
* "Requires verification" and the button that starts a row's check. It is
|
|
278
|
+
* in the row's `extra` slot, whose clicks the row leaves alone.
|
|
279
|
+
*/
|
|
280
|
+
private renderCheck;
|
|
281
|
+
/**
|
|
282
|
+
* "<scope> stays granted because of your earlier approval." under an
|
|
283
|
+
* unticked row, for each scope of it that an earlier approval holds. The
|
|
284
|
+
* live region stays while the row is ticked, so the words are announced as
|
|
285
|
+
* they appear.
|
|
286
|
+
*/
|
|
287
|
+
private renderHeld;
|
|
220
288
|
/** The warning for an agent that registered itself: its name is not checked. */
|
|
221
289
|
private renderUnverified;
|
|
222
|
-
/**
|
|
290
|
+
/**
|
|
291
|
+
* Who is signing in and the checks they passed, over the agent they
|
|
292
|
+
* authorize; nothing when there is no identifier, name or check.
|
|
293
|
+
*/
|
|
223
294
|
private renderApprover;
|
|
295
|
+
/**
|
|
296
|
+
* The agent's row: its name and tile, with "Unverified" or the domain it is
|
|
297
|
+
* identified by. Each status has an info button: the unverified one says
|
|
298
|
+
* what that means, and the domain one carries the host's `identityNote`
|
|
299
|
+
* when it gives one.
|
|
300
|
+
*/
|
|
301
|
+
private lockupAgent;
|
|
224
302
|
/** The "Permission details" box, when the host gives `grantDetails`. */
|
|
225
303
|
private renderGrantDetails;
|
|
304
|
+
/** The host's note under "Permission details"; nothing without one. */
|
|
305
|
+
private renderInfoNote;
|
|
226
306
|
/**
|
|
227
307
|
* The host's legal links, or a "How does this work?" link when the host
|
|
228
308
|
* gives its address; nothing when there is neither.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"consent-capabilities-screen.d.ts","sourceRoot":"","sources":["../../src/components/consent-capabilities-screen.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"consent-capabilities-screen.d.ts","sourceRoot":"","sources":["../../src/components/consent-capabilities-screen.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAuDG;AAEH,OAAO,EAAE,UAAU,EAAsB,MAAM,KAAK,CAAC;AAKrD,OAAO,EAEL,KAAK,sBAAsB,EAC3B,KAAK,aAAa,EAClB,KAAK,YAAY,EACjB,KAAK,oBAAoB,EAC1B,MAAM,gCAAgC,CAAC;AAC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