@kya-os/consent 0.1.44 → 0.1.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/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/consent-capabilities-screen.js +52 -12
- package/dist/cjs/components/consent-capabilities-screen.js.map +1 -1
- package/dist/cjs/components/consent-capability-card.js +191 -32
- package/dist/cjs/components/consent-capability-card.js.map +1 -1
- package/dist/cjs/components/mcp-consent.js +173 -77
- package/dist/cjs/components/mcp-consent.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/resolution/credential-capabilities.js +53 -0
- package/dist/cjs/resolution/credential-capabilities.js.map +1 -0
- package/dist/components/consent-capabilities-screen.d.ts +32 -0
- package/dist/components/consent-capabilities-screen.d.ts.map +1 -1
- package/dist/components/consent-capabilities-screen.js +53 -13
- package/dist/components/consent-capabilities-screen.js.map +1 -1
- package/dist/components/consent-capability-card.d.ts.map +1 -1
- package/dist/components/consent-capability-card.js +191 -32
- package/dist/components/consent-capability-card.js.map +1 -1
- package/dist/components/mcp-consent.d.ts +33 -0
- package/dist/components/mcp-consent.d.ts.map +1 -1
- package/dist/components/mcp-consent.js +173 -77
- package/dist/components/mcp-consent.js.map +1 -1
- package/dist/consent.js +427 -165
- package/dist/consent.min.js +278 -119
- 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/resolution/credential-capabilities.d.ts +25 -0
- package/dist/resolution/credential-capabilities.d.ts.map +1 -0
- package/dist/resolution/credential-capabilities.js +46 -0
- package/dist/resolution/credential-capabilities.js.map +1 -0
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"inline.js","sourceRoot":"","sources":["../../../src/mcp-app/inline.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;GAWG;;;AAEH,sEAAsE;AACzD,QAAA,oBAAoB,GAAW,
|
|
1
|
+
{"version":3,"file":"inline.js","sourceRoot":"","sources":["../../../src/mcp-app/inline.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;GAWG;;;AAEH,sEAAsE;AACzD,QAAA,oBAAoB,GAAW,+qlvBAA+qlvB,CAAC;AAE5tlvB,4CAA4C;AAC/B,QAAA,yBAAyB,GAAW,MAAM,CAAC"}
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.shouldRenderCapabilityScreen = shouldRenderCapabilityScreen;
|
|
4
|
+
exports.shouldSelectAllCapabilities = shouldSelectAllCapabilities;
|
|
5
|
+
exports.areCredentialsComplete = areCredentialsComplete;
|
|
6
|
+
exports.capabilityIdsFor = capabilityIdsFor;
|
|
7
|
+
exports.capabilitySeedKey = capabilitySeedKey;
|
|
8
|
+
const modes_types_js_1 = require("../types/modes.types.js");
|
|
9
|
+
/**
|
|
10
|
+
* Modes whose screen is replaced by the humanized capability layout. Credentials
|
|
11
|
+
* is included so the user sees what is being granted before signing in — on the
|
|
12
|
+
* anchor path the sign-in submit IS the approval, so there is no later screen.
|
|
13
|
+
*/
|
|
14
|
+
const CAPABILITY_SCREEN_MODES = [
|
|
15
|
+
modes_types_js_1.AUTH_MODES.CONSENT_ONLY,
|
|
16
|
+
modes_types_js_1.AUTH_MODES.CREDENTIALS,
|
|
17
|
+
];
|
|
18
|
+
function shouldRenderCapabilityScreen(mode, capabilityCount) {
|
|
19
|
+
return capabilityCount > 0 && CAPABILITY_SCREEN_MODES.includes(mode);
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* The credential path grants a fixed, all-or-nothing scope set (see the
|
|
23
|
+
* scopes constraint in handleApprove), so every capability starts selected —
|
|
24
|
+
* the rows themselves stay interactive, same as the consent-only path.
|
|
25
|
+
*/
|
|
26
|
+
function shouldSelectAllCapabilities(mode) {
|
|
27
|
+
return mode === modes_types_js_1.AUTH_MODES.CREDENTIALS;
|
|
28
|
+
}
|
|
29
|
+
function areCredentialsComplete(formData) {
|
|
30
|
+
return ((formData.username?.trim().length ?? 0) > 0 &&
|
|
31
|
+
(formData.password?.trim().length ?? 0) > 0);
|
|
32
|
+
}
|
|
33
|
+
/**
|
|
34
|
+
* Which capabilities count as selected. In disclosure mode every capability is
|
|
35
|
+
* granted, so all ids are returned; otherwise the operator's `defaultOn` seeds
|
|
36
|
+
* the initial selection.
|
|
37
|
+
*/
|
|
38
|
+
function capabilityIdsFor(capabilities, disclosureMode) {
|
|
39
|
+
return capabilities
|
|
40
|
+
.filter((capability) => disclosureMode || capability.defaultOn)
|
|
41
|
+
.map((capability) => capability.id);
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
* Identity of a seeding decision: the capability ids in order, plus the
|
|
45
|
+
* all-selected flag. Lit compares properties by reference, so a parent that
|
|
46
|
+
* rebuilds its capability array on every render would otherwise re-seed (and
|
|
47
|
+
* wipe the user's toggles) on every keystroke. Seeding is keyed on this value
|
|
48
|
+
* instead of array identity.
|
|
49
|
+
*/
|
|
50
|
+
function capabilitySeedKey(capabilities, allSelected) {
|
|
51
|
+
return `${allSelected ? 1 : 0}:${capabilities.map((c) => c.id).join(" ")}`;
|
|
52
|
+
}
|
|
53
|
+
//# sourceMappingURL=credential-capabilities.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"credential-capabilities.js","sourceRoot":"","sources":["../../../src/resolution/credential-capabilities.ts"],"names":[],"mappings":";;AAaA,oEAKC;AAOD,kEAEC;AAED,wDAOC;AAOD,4CAOC;AASD,8CAKC;AAhED,4DAAoE;AAGpE;;;;GAIG;AACH,MAAM,uBAAuB,GAAwB;IACnD,2BAAU,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|
45
|
+
/**
|
|
46
|
+
* Seed every capability as selected. The credential path grants a fixed,
|
|
47
|
+
* all-or-nothing scope set, so every capability starts checked — the rows
|
|
48
|
+
* remain interactive, same as the consent-only path.
|
|
49
|
+
*/
|
|
50
|
+
allSelected: boolean;
|
|
51
|
+
/**
|
|
52
|
+
* Externally computed disable state for the Allow button. Used by the
|
|
53
|
+
* credential path to gate approval on the sign-in fields, which this
|
|
54
|
+
* component does not own.
|
|
55
|
+
*/
|
|
56
|
+
allowDisabled: boolean;
|
|
45
57
|
/**
|
|
46
58
|
* Domain used to fetch the server brand logo when one isn't explicitly
|
|
47
59
|
* configured via `agentMetadata.logoUrl` / branding. Passed to the
|
|
@@ -54,9 +66,29 @@ export declare class ConsentCapabilitiesScreen extends LitElement {
|
|
|
54
66
|
* one. Falls back to monogram tile when missing or on 404.
|
|
55
67
|
*/
|
|
56
68
|
logoDevToken: string;
|
|
69
|
+
/**
|
|
70
|
+
* Explicit override for the operator's server brand logo, forwarded to the
|
|
71
|
+
* connector header. Lets the operator's configured branding (logo + name)
|
|
72
|
+
* reach this screen the same way it reaches the other consent screens.
|
|
73
|
+
*/
|
|
74
|
+
serverLogoUrl: string;
|
|
57
75
|
private selected;
|
|
76
|
+
/**
|
|
77
|
+
* Last capability set this component seeded `selected` from, per
|
|
78
|
+
* `capabilitySeedKey`. Re-seeding is keyed on this value rather than on
|
|
79
|
+
* `capabilities` array identity — see `seedDefaults`.
|
|
80
|
+
*/
|
|
81
|
+
private seedKey;
|
|
58
82
|
connectedCallback(): void;
|
|
59
83
|
willUpdate(changed: Map<string, unknown>): void;
|
|
84
|
+
/**
|
|
85
|
+
* Seed `selected` from the capability defaults, but only when the
|
|
86
|
+
* capability set actually changed. A parent that rebuilds its capability
|
|
87
|
+
* array on every render (e.g. because a sibling `@state()` field changed)
|
|
88
|
+
* produces a new array with the same contents on every keystroke; without
|
|
89
|
+
* this guard `willUpdate` would re-seed on every one of those renders and
|
|
90
|
+
* silently wipe whatever the user had already toggled.
|
|
91
|
+
*/
|
|
60
92
|
private seedDefaults;
|
|
61
93
|
static styles: import("lit").CSSResult;
|
|
62
94
|
private hostStyle;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"consent-capabilities-screen.d.ts","sourceRoot":"","sources":["../../src/components/consent-capabilities-screen.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,EAAE,UAAU,EAAsB,MAAM,KAAK,CAAC;
|
|
1
|
+
{"version":3,"file":"consent-capabilities-screen.d.ts","sourceRoot":"","sources":["../../src/components/consent-capabilities-screen.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,EAAE,UAAU,EAAsB,MAAM,KAAK,CAAC;AAKrD,OAAO,KAAK,EACV,UAAU,EACV,aAAa,EACb,YAAY,EACZ,oBAAoB,EACrB,MAAM,gCAAgC,CAAC;AAMxC,OAAO,2BAA2B,CAAC;AACnC,OAAO,8BAA8B,CAAC;AACtC,OAAO,yBAAyB,CAAC;AACjC,OAAO,qBAAqB,CAAC;AAC7B,OAAO,gCAAgC,CAAC;AACxC,OAAO,+BAA+B,CAAC;AAGvC;;;GAGG;AACH,MAAM,WAAW,yBAAyB;IACxC,qBAAqB,EAAE,MAAM,EAAE,CAAC;IAChC,cAAc,EAAE,MAAM,EAAE,CAAC;CAC1B;AAED,qBACa,yBAA0B,SAAQ,UAAU;IAC5B,YAAY,EAAE,UAAU,EAAE,CAAM;IAC/B,aAAa,EAAE,aAAa,GAAG,SAAS,CAAC;IACzC,YAAY,EAAE,oBAAoB,GAAG,SAAS,CAAC;IAC/C,OAAO,SAAM;IACb,YAAY,SAAS;IACrB,cAAc,SAAgC;IAC9C,cAAc,SAAM;IACpB,KAAK,EAAE,YAAY,CAAW;IACC,aAAa,SAAM;IACjD,OAAO,UAAS;IAE7C;;;;OAIG;IAEH,WAAW,UAAS;IAEpB;;;;OAIG;IACuD,aAAa,UAC/D;IAER;;;;OAIG;IACqD,YAAY,SAAM;IAE1E;;;;OAIG;IACsD,YAAY,SAAM;IAE3E;;;;OAIG;IACuD,aAAa,SAAM;IAEpE,OAAO,CAAC,QAAQ,CAAqB;IAE9C;;;;OAIG;IACH,OAAO,CAAC,OAAO,CAAM;IAEZ,iBAAiB,IAAI,IAAI;IAKzB,UAAU,CAAC,OAAO,EAAE,GAAG,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,IAAI;IAMxD;;;;;;;OAOG;IACH,OAAO,CAAC,YAAY;IASpB,OAAgB,MAAM,0BAuEpB;IAEF,OAAO,CAAC,SAAS;IAIjB,OAAO,CAAC,kBAAkB,CAMxB;IAEF,OAAO,CAAC,OAAO,CAiBb;IAEF,OAAO,CAAC,MAAM,CAIZ;IAEF,OAAO,CAAC,sBAAsB;IAW9B,OAAO,CAAC,cAAc;IAkBb,MAAM;CA6EhB;AAED,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,6BAA6B,EAAE,yBAAyB,CAAC;KAC1D;CACF"}
|
|
@@ -24,8 +24,9 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
24
24
|
import { LitElement, html, css, nothing } from "lit";
|
|
25
25
|
import { customElement, property, state } from "lit/decorators.js";
|
|
26
26
|
import { CONSENT_COPY_TOKENS, formatToken } from "../copy/tokens.js";
|
|
27
|
-
import { getConsentTheme, themeToCssVariables
|
|
27
|
+
import { getConsentTheme, themeToCssVariables } from "../styles/theme.js";
|
|
28
28
|
import { compileSingleCapability } from "../cedar/compile.js";
|
|
29
|
+
import { capabilityIdsFor, capabilitySeedKey, } from "../resolution/credential-capabilities.js";
|
|
29
30
|
import "./consent-agent-header.js";
|
|
30
31
|
import "./consent-capability-card.js";
|
|
31
32
|
import "./consent-action-bar.js";
|
|
@@ -43,6 +44,18 @@ let ConsentCapabilitiesScreen = class ConsentCapabilitiesScreen extends LitEleme
|
|
|
43
44
|
this.theme = "light";
|
|
44
45
|
this.howItWorksUrl = "";
|
|
45
46
|
this.loading = false;
|
|
47
|
+
/**
|
|
48
|
+
* Seed every capability as selected. The credential path grants a fixed,
|
|
49
|
+
* all-or-nothing scope set, so every capability starts checked — the rows
|
|
50
|
+
* remain interactive, same as the consent-only path.
|
|
51
|
+
*/
|
|
52
|
+
this.allSelected = false;
|
|
53
|
+
/**
|
|
54
|
+
* Externally computed disable state for the Allow button. Used by the
|
|
55
|
+
* credential path to gate approval on the sign-in fields, which this
|
|
56
|
+
* component does not own.
|
|
57
|
+
*/
|
|
58
|
+
this.allowDisabled = false;
|
|
46
59
|
/**
|
|
47
60
|
* Domain used to fetch the server brand logo when one isn't explicitly
|
|
48
61
|
* configured via `agentMetadata.logoUrl` / branding. Passed to the
|
|
@@ -55,7 +68,19 @@ let ConsentCapabilitiesScreen = class ConsentCapabilitiesScreen extends LitEleme
|
|
|
55
68
|
* one. Falls back to monogram tile when missing or on 404.
|
|
56
69
|
*/
|
|
57
70
|
this.logoDevToken = "";
|
|
71
|
+
/**
|
|
72
|
+
* Explicit override for the operator's server brand logo, forwarded to the
|
|
73
|
+
* connector header. Lets the operator's configured branding (logo + name)
|
|
74
|
+
* reach this screen the same way it reaches the other consent screens.
|
|
75
|
+
*/
|
|
76
|
+
this.serverLogoUrl = "";
|
|
58
77
|
this.selected = new Set();
|
|
78
|
+
/**
|
|
79
|
+
* Last capability set this component seeded `selected` from, per
|
|
80
|
+
* `capabilitySeedKey`. Re-seeding is keyed on this value rather than on
|
|
81
|
+
* `capabilities` array identity — see `seedDefaults`.
|
|
82
|
+
*/
|
|
83
|
+
this.seedKey = "";
|
|
59
84
|
this.onCapabilityToggle = (event) => {
|
|
60
85
|
const detail = event.detail;
|
|
61
86
|
const next = new Set(this.selected);
|
|
@@ -91,17 +116,24 @@ let ConsentCapabilitiesScreen = class ConsentCapabilitiesScreen extends LitEleme
|
|
|
91
116
|
this.seedDefaults();
|
|
92
117
|
}
|
|
93
118
|
willUpdate(changed) {
|
|
94
|
-
if (changed.has("capabilities")) {
|
|
119
|
+
if (changed.has("capabilities") || changed.has("allSelected")) {
|
|
95
120
|
this.seedDefaults();
|
|
96
121
|
}
|
|
97
122
|
}
|
|
123
|
+
/**
|
|
124
|
+
* Seed `selected` from the capability defaults, but only when the
|
|
125
|
+
* capability set actually changed. A parent that rebuilds its capability
|
|
126
|
+
* array on every render (e.g. because a sibling `@state()` field changed)
|
|
127
|
+
* produces a new array with the same contents on every keystroke; without
|
|
128
|
+
* this guard `willUpdate` would re-seed on every one of those renders and
|
|
129
|
+
* silently wipe whatever the user had already toggled.
|
|
130
|
+
*/
|
|
98
131
|
seedDefaults() {
|
|
99
|
-
const
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
this.selected = next;
|
|
132
|
+
const key = capabilitySeedKey(this.capabilities, this.allSelected);
|
|
133
|
+
if (key === this.seedKey)
|
|
134
|
+
return;
|
|
135
|
+
this.seedKey = key;
|
|
136
|
+
this.selected = new Set(capabilityIdsFor(this.capabilities, this.allSelected));
|
|
105
137
|
}
|
|
106
138
|
hostStyle() {
|
|
107
139
|
return `:host { ${themeToCssVariables(getConsentTheme(this.theme))} }`;
|
|
@@ -129,10 +161,7 @@ let ConsentCapabilitiesScreen = class ConsentCapabilitiesScreen extends LitEleme
|
|
|
129
161
|
const withSerifEntities = escaped
|
|
130
162
|
.replace("@@AGENT@@", `<em>${nbspEscape(agentName)}</em>`)
|
|
131
163
|
.replace("@@ORG@@", `<em>${nbspEscape(this.orgName || "this site")}</em>`);
|
|
132
|
-
return html `<h1
|
|
133
|
-
class="headline"
|
|
134
|
-
.innerHTML=${withSerifEntities}
|
|
135
|
-
></h1>`;
|
|
164
|
+
return html `<h1 class="headline" .innerHTML=${withSerifEntities}></h1>`;
|
|
136
165
|
}
|
|
137
166
|
render() {
|
|
138
167
|
const tokens = CONSENT_COPY_TOKENS;
|
|
@@ -150,6 +179,7 @@ let ConsentCapabilitiesScreen = class ConsentCapabilitiesScreen extends LitEleme
|
|
|
150
179
|
clientDid="${this.agentMetadata?.did || ""}"
|
|
151
180
|
client-logo-url="${this.agentMetadata?.logoUrl || ""}"
|
|
152
181
|
serverName="${this.orgName || ""}"
|
|
182
|
+
server-logo-url="${this.serverLogoUrl}"
|
|
153
183
|
server-domain="${this.serverDomain}"
|
|
154
184
|
logo-dev-token="${this.logoDevToken}"
|
|
155
185
|
></consent-connector-header>
|
|
@@ -186,6 +216,7 @@ let ConsentCapabilitiesScreen = class ConsentCapabilitiesScreen extends LitEleme
|
|
|
186
216
|
`)}
|
|
187
217
|
</div>
|
|
188
218
|
</div>
|
|
219
|
+
<slot name="auth"></slot>
|
|
189
220
|
<consent-revocation-notice
|
|
190
221
|
revocationPath="${this.revocationPath}"
|
|
191
222
|
orgName="${this.orgName || "this site"}"
|
|
@@ -195,7 +226,7 @@ let ConsentCapabilitiesScreen = class ConsentCapabilitiesScreen extends LitEleme
|
|
|
195
226
|
agentName="${agentName}"
|
|
196
227
|
theme="${this.theme}"
|
|
197
228
|
?loading=${this.loading}
|
|
198
|
-
?disabled=${this.selected.size === 0}
|
|
229
|
+
?disabled=${this.allowDisabled || this.selected.size === 0}
|
|
199
230
|
@consent-allow=${this.onAllow}
|
|
200
231
|
@consent-deny=${this.onDeny}
|
|
201
232
|
></consent-action-bar>
|
|
@@ -309,12 +340,21 @@ __decorate([
|
|
|
309
340
|
__decorate([
|
|
310
341
|
property({ type: Boolean })
|
|
311
342
|
], ConsentCapabilitiesScreen.prototype, "loading", void 0);
|
|
343
|
+
__decorate([
|
|
344
|
+
property({ type: Boolean, reflect: true, attribute: "all-selected" })
|
|
345
|
+
], ConsentCapabilitiesScreen.prototype, "allSelected", void 0);
|
|
346
|
+
__decorate([
|
|
347
|
+
property({ type: Boolean, attribute: "allow-disabled" })
|
|
348
|
+
], ConsentCapabilitiesScreen.prototype, "allowDisabled", void 0);
|
|
312
349
|
__decorate([
|
|
313
350
|
property({ type: String, attribute: "server-domain" })
|
|
314
351
|
], ConsentCapabilitiesScreen.prototype, "serverDomain", void 0);
|
|
315
352
|
__decorate([
|
|
316
353
|
property({ type: String, attribute: "logo-dev-token" })
|
|
317
354
|
], ConsentCapabilitiesScreen.prototype, "logoDevToken", void 0);
|
|
355
|
+
__decorate([
|
|
356
|
+
property({ type: String, attribute: "server-logo-url" })
|
|
357
|
+
], ConsentCapabilitiesScreen.prototype, "serverLogoUrl", void 0);
|
|
318
358
|
__decorate([
|
|
319
359
|
state()
|
|
320
360
|
], ConsentCapabilitiesScreen.prototype, "selected", void 0);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"consent-capabilities-screen.js","sourceRoot":"","sources":["../../src/components/consent-capabilities-screen.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;;;;;;;AAEH,OAAO,EAAE,UAAU,EAAE,IAAI,EAAE,GAAG,EAAE,OAAO,EAAE,MAAM,KAAK,CAAC;AACrD,OAAO,EAAE,aAAa,EAAE,QAAQ,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AAEnE,OAAO,EAAE,mBAAmB,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AACrE,OAAO,
|
|
1
|
+
{"version":3,"file":"consent-capabilities-screen.js","sourceRoot":"","sources":["../../src/components/consent-capabilities-screen.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;;;;;;;AAEH,OAAO,EAAE,UAAU,EAAE,IAAI,EAAE,GAAG,EAAE,OAAO,EAAE,MAAM,KAAK,CAAC;AACrD,OAAO,EAAE,aAAa,EAAE,QAAQ,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AAEnE,OAAO,EAAE,mBAAmB,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AACrE,OAAO,EAAE,eAAe,EAAE,mBAAmB,EAAE,MAAM,oBAAoB,CAAC;AAO1E,OAAO,EAAE,uBAAuB,EAAE,MAAM,qBAAqB,CAAC;AAC9D,OAAO,EACL,gBAAgB,EAChB,iBAA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AAC;SACvB,OAAO,CAAC,IAAI,EAAE,OAAO,CAAC,CAAC;AAC5B,CAAC;AAED;;;;;;GAMG;AACH,SAAS,UAAU,CAAC,KAAa;IAC/B,OAAO,UAAU,CAAC,KAAK,CAAC,CAAC,OAAO,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;AAChD,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"consent-capability-card.d.ts","sourceRoot":"","sources":["../../src/components/consent-capability-card.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAEH,OAAO,EAAE,UAAU,EAAsB,MAAM,KAAK,CAAC;AAKrD,OAAO,KAAK,EAAE,cAAc,EAAE,SAAS,EAAE,MAAM,gCAAgC,CAAC;AAEhF;;GAEG;AACH,MAAM,WAAW,sBAAsB;IACrC,EAAE,EAAE,MAAM,CAAC;IACX,OAAO,EAAE,OAAO,CAAC;CAClB;AAED,qBACa,qBAAsB,SAAQ,UAAU;IACvB,YAAY,SAAM;IAClB,KAAK,SAAM;IACX,WAAW,SAAM;IACjB,IAAI,EAAE,cAAc,CAAa;IACjC,SAAS,EAAE,SAAS,CAAS;IACb,OAAO,UAAS;IACH,aAAa,SAAM;IAEnE,OAAO,CAAC,UAAU,CAAS;IAEpC,OAAgB,MAAM,
|
|
1
|
+
{"version":3,"file":"consent-capability-card.d.ts","sourceRoot":"","sources":["../../src/components/consent-capability-card.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAEH,OAAO,EAAE,UAAU,EAAsB,MAAM,KAAK,CAAC;AAKrD,OAAO,KAAK,EAAE,cAAc,EAAE,SAAS,EAAE,MAAM,gCAAgC,CAAC;AAEhF;;GAEG;AACH,MAAM,WAAW,sBAAsB;IACrC,EAAE,EAAE,MAAM,CAAC;IACX,OAAO,EAAE,OAAO,CAAC;CAClB;AAED,qBACa,qBAAsB,SAAQ,UAAU;IACvB,YAAY,SAAM;IAClB,KAAK,SAAM;IACX,WAAW,SAAM;IACjB,IAAI,EAAE,cAAc,CAAa;IACjC,SAAS,EAAE,SAAS,CAAS;IACb,OAAO,UAAS;IACH,aAAa,SAAM;IAEnE,OAAO,CAAC,UAAU,CAAS;IAEpC,OAAgB,MAAM,0BAoKpB;IAEF,OAAO,CAAC,aAAa;IAerB;;;;;;OAMG;IACH,OAAO,CAAC,UAAU;IAuBlB,OAAO,CAAC,YAAY;IAOpB,OAAO,CAAC,YAAY;IAIpB,OAAO,CAAC,UAAU;IAIlB,OAAO,CAAC,YAAY;IA0BX,MAAM;CAuDhB;AAED,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,yBAAyB,EAAE,qBAAqB,CAAC;KAClD;CACF"}
|
|
@@ -102,9 +102,7 @@ let ConsentCapabilityCard = class ConsentCapabilityCard extends LitElement {
|
|
|
102
102
|
: explanation.actions.map((action) => html `<li><code>${action}</code></li>`)}
|
|
103
103
|
</ul>
|
|
104
104
|
${explanation.resource
|
|
105
|
-
? html `<p>
|
|
106
|
-
On <code>${explanation.resource}</code>
|
|
107
|
-
</p>`
|
|
105
|
+
? html `<p>On <code>${explanation.resource}</code></p>`
|
|
108
106
|
: html `<p>On ${tokens.glossUnknownResource}</p>`}
|
|
109
107
|
<h4>${tokens.rawPolicyTitle}</h4>
|
|
110
108
|
<pre><code>${this.compiledCedar}</code></pre>
|
|
@@ -145,7 +143,10 @@ let ConsentCapabilityCard = class ConsentCapabilityCard extends LitElement {
|
|
|
145
143
|
<div class="icon-tile" aria-hidden="true">${this.renderIcon()}</div>
|
|
146
144
|
<div class="body">
|
|
147
145
|
<div class="row-label">
|
|
148
|
-
<span
|
|
146
|
+
<span
|
|
147
|
+
><strong>${this.label}</strong>
|
|
148
|
+
<span class="description">${this.description}</span></span
|
|
149
|
+
>
|
|
149
150
|
${this.isHigherRisk()
|
|
150
151
|
? html `<span class="risk-chip">${tokens.higherRiskChip}</span>`
|
|
151
152
|
: nothing}
|
|
@@ -203,16 +204,18 @@ ConsentCapabilityCard.styles = css `
|
|
|
203
204
|
align-items: center;
|
|
204
205
|
justify-content: center;
|
|
205
206
|
padding: 0;
|
|
206
|
-
transition:
|
|
207
|
+
transition:
|
|
208
|
+
background 0.12s ease,
|
|
209
|
+
border-color 0.12s ease;
|
|
207
210
|
}
|
|
208
211
|
|
|
209
212
|
.checkbox[aria-checked="true"] {
|
|
210
|
-
background: var(--cs-surface-accent, #
|
|
211
|
-
border-color: var(--cs-surface-accent, #
|
|
213
|
+
background: var(--cs-surface-accent, #0f172a);
|
|
214
|
+
border-color: var(--cs-surface-accent, #0f172a);
|
|
212
215
|
}
|
|
213
216
|
|
|
214
217
|
.checkbox:focus-visible {
|
|
215
|
-
outline: 2px solid var(--cs-focus-ring, #
|
|
218
|
+
outline: 2px solid var(--cs-focus-ring, #0f172a);
|
|
216
219
|
outline-offset: 2px;
|
|
217
220
|
}
|
|
218
221
|
|
|
@@ -226,7 +229,7 @@ ConsentCapabilityCard.styles = css `
|
|
|
226
229
|
width: 36px;
|
|
227
230
|
height: 36px;
|
|
228
231
|
border-radius: 10px;
|
|
229
|
-
background: var(--cs-surface-inset, #
|
|
232
|
+
background: var(--cs-surface-inset, #f1ece2);
|
|
230
233
|
display: flex;
|
|
231
234
|
align-items: center;
|
|
232
235
|
justify-content: center;
|
|
@@ -251,7 +254,7 @@ ConsentCapabilityCard.styles = css `
|
|
|
251
254
|
gap: 10px;
|
|
252
255
|
flex-wrap: wrap;
|
|
253
256
|
font-size: 14.5px;
|
|
254
|
-
color: var(--cs-text-primary, #
|
|
257
|
+
color: var(--cs-text-primary, #0f172a);
|
|
255
258
|
line-height: 1.45;
|
|
256
259
|
}
|
|
257
260
|
|
|
@@ -270,8 +273,8 @@ ConsentCapabilityCard.styles = css `
|
|
|
270
273
|
font-size: 10.5px;
|
|
271
274
|
font-weight: 700;
|
|
272
275
|
letter-spacing: 0.06em;
|
|
273
|
-
background: var(--cs-chip-risk-bg, #
|
|
274
|
-
color: var(--cs-chip-risk-text, #
|
|
276
|
+
background: var(--cs-chip-risk-bg, #fce7b6);
|
|
277
|
+
color: var(--cs-chip-risk-text, #7a4f00);
|
|
275
278
|
}
|
|
276
279
|
|
|
277
280
|
.policy-toggle {
|
|
@@ -281,21 +284,21 @@ ConsentCapabilityCard.styles = css `
|
|
|
281
284
|
padding: 0;
|
|
282
285
|
font-size: 12px;
|
|
283
286
|
font-weight: 500;
|
|
284
|
-
color: var(--cs-text-tertiary, #
|
|
287
|
+
color: var(--cs-text-tertiary, #64748b);
|
|
285
288
|
text-decoration: underline;
|
|
286
289
|
text-underline-offset: 2px;
|
|
287
290
|
cursor: pointer;
|
|
288
291
|
}
|
|
289
292
|
|
|
290
293
|
.policy-toggle:focus-visible {
|
|
291
|
-
outline: 2px solid var(--cs-focus-ring, #
|
|
294
|
+
outline: 2px solid var(--cs-focus-ring, #0f172a);
|
|
292
295
|
outline-offset: 2px;
|
|
293
296
|
}
|
|
294
297
|
|
|
295
298
|
.policy-disclosure {
|
|
296
299
|
margin-top: 8px;
|
|
297
300
|
border-radius: 10px;
|
|
298
|
-
background: var(--cs-surface-inset, #
|
|
301
|
+
background: var(--cs-surface-inset, #f1ece2);
|
|
299
302
|
padding: 10px 12px;
|
|
300
303
|
font-size: 12px;
|
|
301
304
|
color: var(--cs-text-secondary, #334155);
|
|
@@ -309,7 +312,7 @@ ConsentCapabilityCard.styles = css `
|
|
|
309
312
|
font-size: 11px;
|
|
310
313
|
letter-spacing: 0.08em;
|
|
311
314
|
text-transform: uppercase;
|
|
312
|
-
color: var(--cs-text-tertiary, #
|
|
315
|
+
color: var(--cs-text-tertiary, #64748b);
|
|
313
316
|
}
|
|
314
317
|
|
|
315
318
|
.policy-disclosure pre {
|
|
@@ -319,7 +322,7 @@ ConsentCapabilityCard.styles = css `
|
|
|
319
322
|
line-height: 1.5;
|
|
320
323
|
white-space: pre-wrap;
|
|
321
324
|
word-break: break-word;
|
|
322
|
-
color: var(--cs-text-primary, #
|
|
325
|
+
color: var(--cs-text-primary, #0f172a);
|
|
323
326
|
}
|
|
324
327
|
|
|
325
328
|
.policy-disclosure ul {
|
|
@@ -362,35 +365,191 @@ export { ConsentCapabilityCard };
|
|
|
362
365
|
function iconSvgFor(icon) {
|
|
363
366
|
switch (icon) {
|
|
364
367
|
case "search":
|
|
365
|
-
return html `<svg
|
|
368
|
+
return html `<svg
|
|
369
|
+
viewBox="0 0 20 20"
|
|
370
|
+
fill="none"
|
|
371
|
+
stroke="currentColor"
|
|
372
|
+
stroke-width="1.6"
|
|
373
|
+
stroke-linecap="round"
|
|
374
|
+
stroke-linejoin="round"
|
|
375
|
+
>
|
|
376
|
+
<circle cx="9" cy="9" r="5.25" />
|
|
377
|
+
<path d="m13.25 13.25 3.5 3.5" />
|
|
378
|
+
</svg>`;
|
|
366
379
|
case "cart":
|
|
367
|
-
return html `<svg
|
|
380
|
+
return html `<svg
|
|
381
|
+
viewBox="0 0 20 20"
|
|
382
|
+
fill="none"
|
|
383
|
+
stroke="currentColor"
|
|
384
|
+
stroke-width="1.6"
|
|
385
|
+
stroke-linecap="round"
|
|
386
|
+
stroke-linejoin="round"
|
|
387
|
+
>
|
|
388
|
+
<path
|
|
389
|
+
d="M3 3h2l1.4 9.4a1.5 1.5 0 0 0 1.5 1.3h7.6a1.5 1.5 0 0 0 1.5-1.2L18 6H6"
|
|
390
|
+
/>
|
|
391
|
+
<circle cx="9" cy="17" r="1.2" />
|
|
392
|
+
<circle cx="15" cy="17" r="1.2" />
|
|
393
|
+
</svg>`;
|
|
368
394
|
case "card":
|
|
369
|
-
return html `<svg
|
|
395
|
+
return html `<svg
|
|
396
|
+
viewBox="0 0 20 20"
|
|
397
|
+
fill="none"
|
|
398
|
+
stroke="currentColor"
|
|
399
|
+
stroke-width="1.6"
|
|
400
|
+
stroke-linecap="round"
|
|
401
|
+
stroke-linejoin="round"
|
|
402
|
+
>
|
|
403
|
+
<rect x="2.5" y="4.5" width="15" height="11" rx="2" />
|
|
404
|
+
<path d="M2.5 9h15" />
|
|
405
|
+
<path d="M5.5 13h3" />
|
|
406
|
+
</svg>`;
|
|
370
407
|
case "pin":
|
|
371
|
-
return html `<svg
|
|
408
|
+
return html `<svg
|
|
409
|
+
viewBox="0 0 20 20"
|
|
410
|
+
fill="none"
|
|
411
|
+
stroke="currentColor"
|
|
412
|
+
stroke-width="1.6"
|
|
413
|
+
stroke-linecap="round"
|
|
414
|
+
stroke-linejoin="round"
|
|
415
|
+
>
|
|
416
|
+
<path d="M10 17s-5.5-5-5.5-9a5.5 5.5 0 1 1 11 0c0 4-5.5 9-5.5 9z" />
|
|
417
|
+
<circle cx="10" cy="8" r="2" />
|
|
418
|
+
</svg>`;
|
|
372
419
|
case "pin-new":
|
|
373
|
-
return html `<svg
|
|
420
|
+
return html `<svg
|
|
421
|
+
viewBox="0 0 20 20"
|
|
422
|
+
fill="none"
|
|
423
|
+
stroke="currentColor"
|
|
424
|
+
stroke-width="1.6"
|
|
425
|
+
stroke-linecap="round"
|
|
426
|
+
stroke-linejoin="round"
|
|
427
|
+
>
|
|
428
|
+
<path d="M10 17s-5.5-5-5.5-9a5.5 5.5 0 1 1 11 0c0 4-5.5 9-5.5 9z" />
|
|
429
|
+
<path d="M10 6v4" />
|
|
430
|
+
<path d="M8 8h4" />
|
|
431
|
+
</svg>`;
|
|
374
432
|
case "shield":
|
|
375
|
-
return html `<svg
|
|
433
|
+
return html `<svg
|
|
434
|
+
viewBox="0 0 20 20"
|
|
435
|
+
fill="none"
|
|
436
|
+
stroke="currentColor"
|
|
437
|
+
stroke-width="1.6"
|
|
438
|
+
stroke-linecap="round"
|
|
439
|
+
stroke-linejoin="round"
|
|
440
|
+
>
|
|
441
|
+
<path d="M10 2.5 4 5v5.5C4 14 6.5 16.5 10 17.5c3.5-1 6-3.5 6-7V5z" />
|
|
442
|
+
</svg>`;
|
|
376
443
|
case "key":
|
|
377
|
-
return html `<svg
|
|
444
|
+
return html `<svg
|
|
445
|
+
viewBox="0 0 20 20"
|
|
446
|
+
fill="none"
|
|
447
|
+
stroke="currentColor"
|
|
448
|
+
stroke-width="1.6"
|
|
449
|
+
stroke-linecap="round"
|
|
450
|
+
stroke-linejoin="round"
|
|
451
|
+
>
|
|
452
|
+
<circle cx="7" cy="13" r="3.25" />
|
|
453
|
+
<path d="m9.5 11 6.5-6.5" />
|
|
454
|
+
<path d="m13.5 7 2 2" />
|
|
455
|
+
</svg>`;
|
|
378
456
|
case "tools":
|
|
379
|
-
return html `<svg
|
|
457
|
+
return html `<svg
|
|
458
|
+
viewBox="0 0 20 20"
|
|
459
|
+
fill="none"
|
|
460
|
+
stroke="currentColor"
|
|
461
|
+
stroke-width="1.6"
|
|
462
|
+
stroke-linecap="round"
|
|
463
|
+
stroke-linejoin="round"
|
|
464
|
+
>
|
|
465
|
+
<path d="m4 4 6 6" />
|
|
466
|
+
<path d="m10 4 6 6" />
|
|
467
|
+
<path d="m4 16 12-12" />
|
|
468
|
+
</svg>`;
|
|
380
469
|
case "user":
|
|
381
|
-
return html `<svg
|
|
470
|
+
return html `<svg
|
|
471
|
+
viewBox="0 0 20 20"
|
|
472
|
+
fill="none"
|
|
473
|
+
stroke="currentColor"
|
|
474
|
+
stroke-width="1.6"
|
|
475
|
+
stroke-linecap="round"
|
|
476
|
+
stroke-linejoin="round"
|
|
477
|
+
>
|
|
478
|
+
<circle cx="10" cy="7" r="3" />
|
|
479
|
+
<path d="M3 17a7 7 0 0 1 14 0" />
|
|
480
|
+
</svg>`;
|
|
382
481
|
case "calendar":
|
|
383
|
-
return html `<svg
|
|
482
|
+
return html `<svg
|
|
483
|
+
viewBox="0 0 20 20"
|
|
484
|
+
fill="none"
|
|
485
|
+
stroke="currentColor"
|
|
486
|
+
stroke-width="1.6"
|
|
487
|
+
stroke-linecap="round"
|
|
488
|
+
stroke-linejoin="round"
|
|
489
|
+
>
|
|
490
|
+
<rect x="3" y="4" width="14" height="13" rx="2" />
|
|
491
|
+
<path d="M3 8h14" />
|
|
492
|
+
<path d="M7 2v4M13 2v4" />
|
|
493
|
+
</svg>`;
|
|
384
494
|
case "lock":
|
|
385
|
-
return html `<svg
|
|
495
|
+
return html `<svg
|
|
496
|
+
viewBox="0 0 20 20"
|
|
497
|
+
fill="none"
|
|
498
|
+
stroke="currentColor"
|
|
499
|
+
stroke-width="1.6"
|
|
500
|
+
stroke-linecap="round"
|
|
501
|
+
stroke-linejoin="round"
|
|
502
|
+
>
|
|
503
|
+
<rect x="4" y="9" width="12" height="8" rx="2" />
|
|
504
|
+
<path d="M7 9V6a3 3 0 0 1 6 0v3" />
|
|
505
|
+
</svg>`;
|
|
386
506
|
case "eye":
|
|
387
|
-
return html `<svg
|
|
507
|
+
return html `<svg
|
|
508
|
+
viewBox="0 0 20 20"
|
|
509
|
+
fill="none"
|
|
510
|
+
stroke="currentColor"
|
|
511
|
+
stroke-width="1.6"
|
|
512
|
+
stroke-linecap="round"
|
|
513
|
+
stroke-linejoin="round"
|
|
514
|
+
>
|
|
515
|
+
<path d="M2 10s3-6 8-6 8 6 8 6-3 6-8 6-8-6-8-6z" />
|
|
516
|
+
<circle cx="10" cy="10" r="2.25" />
|
|
517
|
+
</svg>`;
|
|
388
518
|
case "send":
|
|
389
|
-
return html `<svg
|
|
519
|
+
return html `<svg
|
|
520
|
+
viewBox="0 0 20 20"
|
|
521
|
+
fill="none"
|
|
522
|
+
stroke="currentColor"
|
|
523
|
+
stroke-width="1.6"
|
|
524
|
+
stroke-linecap="round"
|
|
525
|
+
stroke-linejoin="round"
|
|
526
|
+
>
|
|
527
|
+
<path d="m17 3-7 7-2 7-3-9z" />
|
|
528
|
+
</svg>`;
|
|
390
529
|
case "package":
|
|
391
|
-
return html `<svg
|
|
530
|
+
return html `<svg
|
|
531
|
+
viewBox="0 0 20 20"
|
|
532
|
+
fill="none"
|
|
533
|
+
stroke="currentColor"
|
|
534
|
+
stroke-width="1.6"
|
|
535
|
+
stroke-linecap="round"
|
|
536
|
+
stroke-linejoin="round"
|
|
537
|
+
>
|
|
538
|
+
<path d="m10 2 7 4v8l-7 4-7-4V6z" />
|
|
539
|
+
<path d="m3 6 7 4 7-4" />
|
|
540
|
+
<path d="M10 18V10" />
|
|
541
|
+
</svg>`;
|
|
392
542
|
default:
|
|
393
|
-
return html `<svg
|
|
543
|
+
return html `<svg
|
|
544
|
+
viewBox="0 0 20 20"
|
|
545
|
+
fill="none"
|
|
546
|
+
stroke="currentColor"
|
|
547
|
+
stroke-width="1.6"
|
|
548
|
+
stroke-linecap="round"
|
|
549
|
+
stroke-linejoin="round"
|
|
550
|
+
>
|
|
551
|
+
<circle cx="10" cy="10" r="5" />
|
|
552
|
+
</svg>`;
|
|
394
553
|
}
|
|
395
554
|
}
|
|
396
555
|
//# sourceMappingURL=consent-capability-card.js.map
|