@kya-os/consent 0.1.44 → 0.1.47
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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 +231 -79
- 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 +69 -0
- package/dist/cjs/resolution/credential-capabilities.js.map +1 -0
- package/dist/cjs/security/identity-assertion.js +69 -0
- package/dist/cjs/security/identity-assertion.js.map +1 -0
- package/dist/cjs/security/index.js +1 -0
- package/dist/cjs/security/index.js.map +1 -1
- 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 +60 -0
- package/dist/components/mcp-consent.d.ts.map +1 -1
- package/dist/components/mcp-consent.js +231 -79
- package/dist/components/mcp-consent.js.map +1 -1
- package/dist/consent.js +486 -167
- package/dist/consent.min.js +286 -127
- 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 +38 -0
- package/dist/resolution/credential-capabilities.d.ts.map +1 -0
- package/dist/resolution/credential-capabilities.js +61 -0
- package/dist/resolution/credential-capabilities.js.map +1 -0
- package/dist/security/identity-assertion.d.ts +49 -0
- package/dist/security/identity-assertion.d.ts.map +1 -0
- package/dist/security/identity-assertion.js +66 -0
- package/dist/security/identity-assertion.js.map +1 -0
- package/dist/security/index.d.ts +1 -0
- package/dist/security/index.d.ts.map +1 -1
- package/dist/security/index.js +1 -0
- package/dist/security/index.js.map +1 -1
- 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,m1mvBAAm1mvB,CAAC;AAEh4mvB,4CAA4C;AAC/B,QAAA,yBAAyB,GAAW,MAAM,CAAC"}
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.shouldRenderCapabilityScreen = shouldRenderCapabilityScreen;
|
|
4
|
+
exports.shouldSelectAllCapabilities = shouldSelectAllCapabilities;
|
|
5
|
+
exports.areCredentialsComplete = areCredentialsComplete;
|
|
6
|
+
exports.shouldRenderScopesInteractive = shouldRenderScopesInteractive;
|
|
7
|
+
exports.capabilityIdsFor = capabilityIdsFor;
|
|
8
|
+
exports.capabilitySeedKey = capabilitySeedKey;
|
|
9
|
+
const modes_types_js_1 = require("../types/modes.types.js");
|
|
10
|
+
/**
|
|
11
|
+
* Modes whose screen is replaced by the humanized capability layout. Credentials
|
|
12
|
+
* is included so the user sees what is being granted before signing in — on the
|
|
13
|
+
* anchor path the sign-in submit IS the approval, so there is no later screen.
|
|
14
|
+
*/
|
|
15
|
+
const CAPABILITY_SCREEN_MODES = [
|
|
16
|
+
modes_types_js_1.AUTH_MODES.CONSENT_ONLY,
|
|
17
|
+
modes_types_js_1.AUTH_MODES.CREDENTIALS,
|
|
18
|
+
];
|
|
19
|
+
function shouldRenderCapabilityScreen(mode, capabilityCount) {
|
|
20
|
+
return capabilityCount > 0 && CAPABILITY_SCREEN_MODES.includes(mode);
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* The credential path grants a fixed, all-or-nothing scope set (see the
|
|
24
|
+
* scopes constraint in handleApprove), so every capability starts selected —
|
|
25
|
+
* the rows themselves stay interactive, same as the consent-only path.
|
|
26
|
+
*/
|
|
27
|
+
function shouldSelectAllCapabilities(mode) {
|
|
28
|
+
return mode === modes_types_js_1.AUTH_MODES.CREDENTIALS;
|
|
29
|
+
}
|
|
30
|
+
function areCredentialsComplete(formData) {
|
|
31
|
+
return ((formData.username?.trim().length ?? 0) > 0 &&
|
|
32
|
+
(formData.password?.trim().length ?? 0) > 0);
|
|
33
|
+
}
|
|
34
|
+
/**
|
|
35
|
+
* Whether the legacy scope-selection checkboxes (`renderPermissions` /
|
|
36
|
+
* `<consent-permissions>`) should render as interactive. When a signed
|
|
37
|
+
* identity assertion is bound to the request, `handleApprove` always posts
|
|
38
|
+
* the full requested scope set - the assertion binds a hash of that full
|
|
39
|
+
* set, so a user-narrowed subset would fail the mint gate's hash check and
|
|
40
|
+
* 403 (see the comment on the `scopes` form-data append in mcp-consent.ts).
|
|
41
|
+
* Letting the user uncheck a scope that will be granted regardless is a
|
|
42
|
+
* consent-accuracy bug, so this path drops to display-only rows instead.
|
|
43
|
+
* Interactive narrowing returns once the deferred subset-binding follow-up
|
|
44
|
+
* ships.
|
|
45
|
+
*/
|
|
46
|
+
function shouldRenderScopesInteractive(identityAssertion) {
|
|
47
|
+
return !identityAssertion;
|
|
48
|
+
}
|
|
49
|
+
/**
|
|
50
|
+
* Which capabilities count as selected. In disclosure mode every capability is
|
|
51
|
+
* granted, so all ids are returned; otherwise the operator's `defaultOn` seeds
|
|
52
|
+
* the initial selection.
|
|
53
|
+
*/
|
|
54
|
+
function capabilityIdsFor(capabilities, disclosureMode) {
|
|
55
|
+
return capabilities
|
|
56
|
+
.filter((capability) => disclosureMode || capability.defaultOn)
|
|
57
|
+
.map((capability) => capability.id);
|
|
58
|
+
}
|
|
59
|
+
/**
|
|
60
|
+
* Identity of a seeding decision: the capability ids in order, plus the
|
|
61
|
+
* all-selected flag. Lit compares properties by reference, so a parent that
|
|
62
|
+
* rebuilds its capability array on every render would otherwise re-seed (and
|
|
63
|
+
* wipe the user's toggles) on every keystroke. Seeding is keyed on this value
|
|
64
|
+
* instead of array identity.
|
|
65
|
+
*/
|
|
66
|
+
function capabilitySeedKey(capabilities, allSelected) {
|
|
67
|
+
return `${allSelected ? 1 : 0}:${capabilities.map((c) => c.id).join(" ")}`;
|
|
68
|
+
}
|
|
69
|
+
//# 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;AAcD,sEAIC;AAOD,4CAOC;AASD,8CAKC;AAlFD,4DAAoE;AAGpE;;;;GAIG;AACH,MAAM,uBAAuB,GAAwB;IACnD,2BAAU,CAAC,YAAY;IACvB,2BAAU,CAAC,WAAW;CACvB,CAAC;AAEF,SAAgB,4BAA4B,CAC1C,IAAc,EACd,eAAuB;IAEvB,OAAO,eAAe,GAAG,CAAC,IAAI,uBAAuB,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC;AACvE,CAAC;AAED;;;;GAIG;AACH,SAAgB,2BAA2B,CAAC,IAAc;IACxD,OAAO,IAAI,KAAK,2BAAU,CAAC,WAAW,CAAC;AACzC,CAAC;AAED,SAAgB,sBAAsB,CACpC,QAAgC;IAEhC,OAAO,CACL,CAAC,QAAQ,CAAC,QAAQ,EAAE,IAAI,EAAE,CAAC,MAAM,IAAI,CAAC,CAAC,GAAG,CAAC;QAC3C,CAAC,QAAQ,CAAC,QAAQ,EAAE,IAAI,EAAE,CAAC,MAAM,IAAI,CAAC,CAAC,GAAG,CAAC,CAC5C,CAAC;AACJ,CAAC;AAED;;;;;;;;;;;GAWG;AACH,SAAgB,6BAA6B,CAC3C,iBAAqC;IAErC,OAAO,CAAC,iBAAiB,CAAC;AAC5B,CAAC;AAED;;;;GAIG;AACH,SAAgB,gBAAgB,CAC9B,YAA0B,EAC1B,cAAuB;IAEvB,OAAO,YAAY;SAChB,MAAM,CAAC,CAAC,UAAU,EAAE,EAAE,CAAC,cAAc,IAAI,UAAU,CAAC,SAAS,CAAC;SAC9D,GAAG,CAAC,CAAC,UAAU,EAAE,EAAE,CAAC,UAAU,CAAC,EAAE,CAAC,CAAC;AACxC,CAAC;AAED;;;;;;GAMG;AACH,SAAgB,iBAAiB,CAC/B,YAA0B,EAC1B,WAAoB;IAEpB,OAAO,GAAG,WAAW,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,YAAY,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC;AAC7E,CAAC"}
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Identity Assertion Fragment Parsing
|
|
4
|
+
*
|
|
5
|
+
* Part of the consent-approve auth-gate fix
|
|
6
|
+
* (docs/superpowers/specs/2026-07-29-consent-approve-auth-gate-design.md §3.1).
|
|
7
|
+
* After credential/OAuth sign-in, the worker mints a grant-bound signed
|
|
8
|
+
* identity assertion and redirects the browser to the clickwrap consent
|
|
9
|
+
* screen carrying it in the URL **fragment**
|
|
10
|
+
* (`.../consent#identity_assertion=<token>`) rather than a query param.
|
|
11
|
+
* Fragments are never sent to the server — not in access logs, not in
|
|
12
|
+
* `Referer` — so this is the only way the assertion can be delivered without
|
|
13
|
+
* leaking it. That also means the server-rendered shell can never see it to
|
|
14
|
+
* pass it down as an attribute; the component must read `location.hash`
|
|
15
|
+
* itself once mounted in the browser.
|
|
16
|
+
*
|
|
17
|
+
* This module holds the pure parsing logic so it can be unit-tested in this
|
|
18
|
+
* package's node-environment vitest suite, which has no DOM and cannot mount
|
|
19
|
+
* the Lit component to exercise `location.hash` directly.
|
|
20
|
+
*
|
|
21
|
+
* @module @kya-os/consent/security/identity-assertion
|
|
22
|
+
*/
|
|
23
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
24
|
+
exports.parseIdentityAssertionFromHash = parseIdentityAssertionFromHash;
|
|
25
|
+
/**
|
|
26
|
+
* Parse the `identity_assertion` value out of a URL fragment.
|
|
27
|
+
*
|
|
28
|
+
* Accepts a raw `location.hash`-shaped string, with or without its leading
|
|
29
|
+
* `#`. Returns `undefined` when the key is absent, the value is empty, or
|
|
30
|
+
* the fragment is empty/nullish. Never throws.
|
|
31
|
+
*
|
|
32
|
+
* @param hash - The fragment string, e.g. `location.hash`
|
|
33
|
+
* (`"#identity_assertion=abc"`)
|
|
34
|
+
* @returns The decoded assertion token, or `undefined` if not present
|
|
35
|
+
*
|
|
36
|
+
* @example
|
|
37
|
+
* ```typescript
|
|
38
|
+
* parseIdentityAssertionFromHash('#identity_assertion=abc123')
|
|
39
|
+
* // => 'abc123'
|
|
40
|
+
*
|
|
41
|
+
* parseIdentityAssertionFromHash('#a=1&identity_assertion=abc&b=2')
|
|
42
|
+
* // => 'abc'
|
|
43
|
+
*
|
|
44
|
+
* parseIdentityAssertionFromHash('#a=1&b=2')
|
|
45
|
+
* // => undefined
|
|
46
|
+
*
|
|
47
|
+
* parseIdentityAssertionFromHash('')
|
|
48
|
+
* // => undefined
|
|
49
|
+
* ```
|
|
50
|
+
*/
|
|
51
|
+
function parseIdentityAssertionFromHash(hash) {
|
|
52
|
+
if (!hash)
|
|
53
|
+
return undefined;
|
|
54
|
+
const withoutLeadingHash = hash.startsWith("#") ? hash.slice(1) : hash;
|
|
55
|
+
if (!withoutLeadingHash)
|
|
56
|
+
return undefined;
|
|
57
|
+
try {
|
|
58
|
+
const params = new URLSearchParams(withoutLeadingHash);
|
|
59
|
+
const value = params.get("identity_assertion");
|
|
60
|
+
return value ? value : undefined;
|
|
61
|
+
}
|
|
62
|
+
catch {
|
|
63
|
+
// URLSearchParams is very lenient and does not throw in practice, but
|
|
64
|
+
// guard anyway - a parsing failure here must never crash the consent
|
|
65
|
+
// screen, it should just mean "no assertion found".
|
|
66
|
+
return undefined;
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
//# sourceMappingURL=identity-assertion.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"identity-assertion.js","sourceRoot":"","sources":["../../../src/security/identity-assertion.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;;GAoBG;;AA4BH,wEAkBC;AA5CD;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AACH,SAAgB,8BAA8B,CAC5C,IAA+B;IAE/B,IAAI,CAAC,IAAI;QAAE,OAAO,SAAS,CAAC;IAE5B,MAAM,kBAAkB,GAAG,IAAI,CAAC,UAAU,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC;IACvE,IAAI,CAAC,kBAAkB;QAAE,OAAO,SAAS,CAAC;IAE1C,IAAI,CAAC;QACH,MAAM,MAAM,GAAG,IAAI,eAAe,CAAC,kBAAkB,CAAC,CAAC;QACvD,MAAM,KAAK,GAAG,MAAM,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;QAC/C,OAAO,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,SAAS,CAAC;IACnC,CAAC;IAAC,MAAM,CAAC;QACP,sEAAsE;QACtE,qEAAqE;QACrE,oDAAoD;QACpD,OAAO,SAAS,CAAC;IACnB,CAAC;AACH,CAAC"}
|
|
@@ -23,4 +23,5 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
23
23
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
24
24
|
__exportStar(require("./escape.js"), exports);
|
|
25
25
|
__exportStar(require("./validators.js"), exports);
|
|
26
|
+
__exportStar(require("./identity-assertion.js"), exports);
|
|
26
27
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/security/index.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;;;;;;;;;;;;;AAEH,8CAA4B;AAC5B,kDAAgC"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/security/index.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;;;;;;;;;;;;;AAEH,8CAA4B;AAC5B,kDAAgC;AAChC,0DAAwC"}
|
|
@@ -42,6 +42,18 @@ export declare class ConsentCapabilitiesScreen extends LitElement {
|
|
|
42
42
|
theme: ConsentTheme;
|
|
43
43
|
howItWorksUrl: string;
|
|
44
44
|
loading: boolean;
|
|
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;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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,iBAAiB,GAClB,MAAM,0CAA0C,CAAC;AAClD,OAAO,2BAA2B,CAAC;AACnC,OAAO,8BAA8B,CAAC;AACtC,OAAO,yBAAyB,CAAC;AACjC,OAAO,qBAAqB,CAAC;AAC7B,OAAO,gCAAgC,CAAC;AACxC,OAAO,+BAA+B,CAAC;AAahC,IAAM,yBAAyB,GAA/B,MAAM,yBAA0B,SAAQ,UAAU;IAAlD;;QACsB,iBAAY,GAAiB,EAAE,CAAC;QAG/B,YAAO,GAAG,EAAE,CAAC;QACb,iBAAY,GAAG,KAAK,CAAC;QACrB,mBAAc,GAAG,4BAA4B,CAAC;QAC9C,mBAAc,GAAG,EAAE,CAAC;QACpB,UAAK,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c,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"}
|