@kya-os/consent 0.3.0 → 0.4.1
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 +185 -20
- package/dist/bundle/index.d.ts +4 -0
- package/dist/bundle/index.d.ts.map +1 -1
- package/dist/bundle/index.js +6 -0
- 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/cjs/bundle/index.js +15 -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/components/consent-action-bar.js +97 -25
- package/dist/cjs/components/consent-action-bar.js.map +1 -1
- package/dist/cjs/components/consent-agent-header.js +7 -105
- package/dist/cjs/components/consent-agent-header.js.map +1 -1
- package/dist/cjs/components/consent-button.js +6 -1
- package/dist/cjs/components/consent-button.js.map +1 -1
- package/dist/cjs/components/consent-capabilities-screen.js +488 -66
- package/dist/cjs/components/consent-capabilities-screen.js.map +1 -1
- package/dist/cjs/components/consent-capability-card.js +197 -42
- package/dist/cjs/components/consent-capability-card.js.map +1 -1
- package/dist/cjs/components/consent-checkbox.js +7 -0
- package/dist/cjs/components/consent-checkbox.js.map +1 -1
- package/dist/cjs/components/consent-connector-header.js +206 -43
- package/dist/cjs/components/consent-connector-header.js.map +1 -1
- package/dist/cjs/components/consent-duration.js +1 -1
- package/dist/cjs/components/consent-footer.js +13 -12
- package/dist/cjs/components/consent-footer.js.map +1 -1
- package/dist/cjs/components/consent-headline.js +445 -30
- package/dist/cjs/components/consent-headline.js.map +1 -1
- package/dist/cjs/components/consent-oauth-button.js +71 -62
- package/dist/cjs/components/consent-oauth-button.js.map +1 -1
- package/dist/cjs/components/consent-otp-input.js +5 -0
- package/dist/cjs/components/consent-otp-input.js.map +1 -1
- package/dist/cjs/components/consent-phone-handoff.js +3 -3
- package/dist/cjs/components/consent-request-expiry.js +1 -1
- package/dist/cjs/components/consent-revocation-notice.js +4 -2
- package/dist/cjs/components/consent-revocation-notice.js.map +1 -1
- package/dist/cjs/components/consent-revoke.js +9 -4
- package/dist/cjs/components/consent-revoke.js.map +1 -1
- package/dist/cjs/components/consent-secured-by.js +106 -0
- package/dist/cjs/components/consent-secured-by.js.map +1 -0
- package/dist/cjs/components/consent-shell.js +1 -1
- package/dist/cjs/components/consent-terms.js +7 -0
- package/dist/cjs/components/consent-terms.js.map +1 -1
- package/dist/cjs/components/consent-wallet-check.js +1 -1
- package/dist/cjs/components/consent-wallet-notice.js +1 -1
- package/dist/cjs/components/consent-wallet-orb.js +1 -1
- package/dist/cjs/components/consent-wallet-signature.js +1 -1
- package/dist/cjs/components/decision-icons.js +33 -0
- package/dist/cjs/components/decision-icons.js.map +1 -0
- package/dist/cjs/components/edit-region.js +309 -0
- package/dist/cjs/components/edit-region.js.map +1 -0
- package/dist/cjs/components/grant-field-styles.js +2 -2
- package/dist/cjs/components/index.js +5 -1
- package/dist/cjs/components/index.js.map +1 -1
- package/dist/cjs/components/mcp-consent.js +81 -36
- package/dist/cjs/components/mcp-consent.js.map +1 -1
- package/dist/cjs/components/preview.js +67 -0
- package/dist/cjs/components/preview.js.map +1 -0
- package/dist/cjs/constants/capabilities.js +21 -2
- package/dist/cjs/constants/capabilities.js.map +1 -1
- package/dist/cjs/copy/tokens.js +60 -21
- package/dist/cjs/copy/tokens.js.map +1 -1
- package/dist/cjs/identity/agent-identity.js +3 -2
- package/dist/cjs/identity/agent-identity.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 +11 -2
- package/dist/cjs/react/index.js.map +1 -1
- package/dist/cjs/styles/brand.js +385 -0
- package/dist/cjs/styles/brand.js.map +1 -0
- package/dist/cjs/styles/index.js +1 -0
- package/dist/cjs/styles/index.js.map +1 -1
- package/dist/cjs/styles/theme.js +100 -30
- package/dist/cjs/styles/theme.js.map +1 -1
- package/dist/cjs/types/capabilities.types.js +1 -2
- package/dist/cjs/types/capabilities.types.js.map +1 -1
- package/dist/cjs/types/decision.types.js +13 -0
- package/dist/cjs/types/decision.types.js.map +1 -0
- package/dist/cjs/types/edit.types.js +80 -0
- package/dist/cjs/types/edit.types.js.map +1 -0
- package/dist/cjs/types/index.js +2 -0
- package/dist/cjs/types/index.js.map +1 -1
- package/dist/components/consent-action-bar.d.ts +20 -1
- package/dist/components/consent-action-bar.d.ts.map +1 -1
- package/dist/components/consent-action-bar.js +97 -25
- package/dist/components/consent-action-bar.js.map +1 -1
- package/dist/components/consent-agent-header.d.ts +4 -17
- package/dist/components/consent-agent-header.d.ts.map +1 -1
- package/dist/components/consent-agent-header.js +7 -105
- package/dist/components/consent-agent-header.js.map +1 -1
- package/dist/components/consent-button.d.ts +2 -0
- package/dist/components/consent-button.d.ts.map +1 -1
- package/dist/components/consent-button.js +6 -1
- package/dist/components/consent-button.js.map +1 -1
- package/dist/components/consent-capabilities-screen.d.ts +93 -14
- package/dist/components/consent-capabilities-screen.d.ts.map +1 -1
- package/dist/components/consent-capabilities-screen.js +488 -67
- package/dist/components/consent-capabilities-screen.js.map +1 -1
- package/dist/components/consent-capability-card.d.ts +42 -5
- package/dist/components/consent-capability-card.d.ts.map +1 -1
- package/dist/components/consent-capability-card.js +196 -41
- package/dist/components/consent-capability-card.js.map +1 -1
- package/dist/components/consent-checkbox.d.ts +2 -0
- package/dist/components/consent-checkbox.d.ts.map +1 -1
- package/dist/components/consent-checkbox.js +7 -0
- package/dist/components/consent-checkbox.js.map +1 -1
- package/dist/components/consent-connector-header.d.ts +39 -7
- package/dist/components/consent-connector-header.d.ts.map +1 -1
- package/dist/components/consent-connector-header.js +206 -43
- package/dist/components/consent-connector-header.js.map +1 -1
- package/dist/components/consent-duration.js +1 -1
- package/dist/components/consent-footer.d.ts +6 -4
- package/dist/components/consent-footer.d.ts.map +1 -1
- package/dist/components/consent-footer.js +13 -12
- package/dist/components/consent-footer.js.map +1 -1
- package/dist/components/consent-headline.d.ts +76 -12
- package/dist/components/consent-headline.d.ts.map +1 -1
- package/dist/components/consent-headline.js +445 -32
- package/dist/components/consent-headline.js.map +1 -1
- package/dist/components/consent-oauth-button.d.ts +7 -3
- package/dist/components/consent-oauth-button.d.ts.map +1 -1
- package/dist/components/consent-oauth-button.js +74 -65
- package/dist/components/consent-oauth-button.js.map +1 -1
- package/dist/components/consent-otp-input.d.ts.map +1 -1
- package/dist/components/consent-otp-input.js +5 -0
- package/dist/components/consent-otp-input.js.map +1 -1
- package/dist/components/consent-passkey.d.ts +6 -0
- package/dist/components/consent-passkey.d.ts.map +1 -1
- package/dist/components/consent-passkey.js +67 -9
- package/dist/components/consent-passkey.js.map +1 -1
- package/dist/components/consent-phone-handoff.js +3 -3
- package/dist/components/consent-request-expiry.js +1 -1
- package/dist/components/consent-revocation-notice.d.ts.map +1 -1
- package/dist/components/consent-revocation-notice.js +4 -2
- package/dist/components/consent-revocation-notice.js.map +1 -1
- package/dist/components/consent-revoke.d.ts +2 -0
- package/dist/components/consent-revoke.d.ts.map +1 -1
- package/dist/components/consent-revoke.js +9 -4
- package/dist/components/consent-revoke.js.map +1 -1
- package/dist/components/consent-secured-by.d.ts +25 -0
- package/dist/components/consent-secured-by.d.ts.map +1 -0
- package/dist/components/consent-secured-by.js +103 -0
- package/dist/components/consent-secured-by.js.map +1 -0
- package/dist/components/consent-shell.js +1 -1
- package/dist/components/consent-terms.d.ts +2 -0
- package/dist/components/consent-terms.d.ts.map +1 -1
- package/dist/components/consent-terms.js +7 -0
- package/dist/components/consent-terms.js.map +1 -1
- package/dist/components/consent-wallet-check.js +1 -1
- package/dist/components/consent-wallet-notice.js +1 -1
- package/dist/components/consent-wallet-orb.js +1 -1
- package/dist/components/consent-wallet-signature.js +1 -1
- package/dist/components/decision-icons.d.ts +22 -0
- package/dist/components/decision-icons.d.ts.map +1 -0
- package/dist/components/decision-icons.js +30 -0
- package/dist/components/decision-icons.js.map +1 -0
- package/dist/components/edit-region.d.ts +50 -0
- package/dist/components/edit-region.d.ts.map +1 -0
- package/dist/components/edit-region.js +305 -0
- package/dist/components/edit-region.js.map +1 -0
- package/dist/components/grant-field-styles.js +2 -2
- package/dist/components/index.d.ts +3 -2
- package/dist/components/index.d.ts.map +1 -1
- package/dist/components/index.js +3 -2
- package/dist/components/index.js.map +1 -1
- package/dist/components/mcp-consent.d.ts +15 -0
- package/dist/components/mcp-consent.d.ts.map +1 -1
- package/dist/components/mcp-consent.js +81 -36
- package/dist/components/mcp-consent.js.map +1 -1
- package/dist/components/preview.d.ts +38 -0
- package/dist/components/preview.d.ts.map +1 -0
- package/dist/components/preview.js +61 -0
- package/dist/components/preview.js.map +1 -0
- package/dist/consent.js +2200 -389
- package/dist/consent.min.js +1308 -496
- package/dist/constants/capabilities.d.ts +14 -2
- package/dist/constants/capabilities.d.ts.map +1 -1
- package/dist/constants/capabilities.js +21 -2
- package/dist/constants/capabilities.js.map +1 -1
- package/dist/copy/tokens.d.ts +60 -21
- package/dist/copy/tokens.d.ts.map +1 -1
- package/dist/copy/tokens.js +60 -21
- package/dist/copy/tokens.js.map +1 -1
- package/dist/identity/agent-identity.d.ts +3 -2
- package/dist/identity/agent-identity.d.ts.map +1 -1
- package/dist/identity/agent-identity.js +3 -2
- package/dist/identity/agent-identity.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 +6 -1
- package/dist/react/index.d.ts.map +1 -1
- package/dist/react/index.js +10 -1
- package/dist/react/index.js.map +1 -1
- package/dist/styles/brand.d.ts +184 -0
- package/dist/styles/brand.d.ts.map +1 -0
- package/dist/styles/brand.js +372 -0
- package/dist/styles/brand.js.map +1 -0
- package/dist/styles/index.d.ts +1 -0
- package/dist/styles/index.d.ts.map +1 -1
- package/dist/styles/index.js +1 -0
- package/dist/styles/index.js.map +1 -1
- package/dist/styles/theme.d.ts +73 -13
- package/dist/styles/theme.d.ts.map +1 -1
- package/dist/styles/theme.js +96 -29
- package/dist/styles/theme.js.map +1 -1
- package/dist/types/capabilities.types.d.ts +12 -14
- package/dist/types/capabilities.types.d.ts.map +1 -1
- package/dist/types/capabilities.types.js +1 -2
- package/dist/types/capabilities.types.js.map +1 -1
- package/dist/types/decision.types.d.ts +57 -0
- package/dist/types/decision.types.d.ts.map +1 -0
- package/dist/types/decision.types.js +12 -0
- package/dist/types/decision.types.js.map +1 -0
- package/dist/types/edit.types.d.ts +73 -0
- package/dist/types/edit.types.d.ts.map +1 -0
- package/dist/types/edit.types.js +76 -0
- package/dist/types/edit.types.js.map +1 -0
- package/dist/types/index.d.ts +2 -0
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/index.js +2 -0
- package/dist/types/index.js.map +1 -1
- package/package.json +2 -2
|
@@ -3,15 +3,31 @@
|
|
|
3
3
|
* Consent Headline
|
|
4
4
|
*
|
|
5
5
|
* The top of a consent screen: an eyebrow, the headline that says who is
|
|
6
|
-
* asking
|
|
7
|
-
*
|
|
6
|
+
* asking, and a subhead. consent-capabilities-screen renders one, and a screen
|
|
7
|
+
* composed from parts places its own.
|
|
8
8
|
*
|
|
9
|
-
* The
|
|
10
|
-
*
|
|
11
|
-
*
|
|
9
|
+
* The headline reads "{Agent} is requesting permission on your behalf", or
|
|
10
|
+
* "{Agent} would like to {Verb} on your behalf" when the host gives a verb.
|
|
11
|
+
* Given the agent (`agent`), its name is a button that opens what is known
|
|
12
|
+
* about it, and a domain-bound agent's name is followed by a chip naming the
|
|
13
|
+
* host that vouches for it. The subhead shows only when the host gives one.
|
|
12
14
|
*
|
|
13
|
-
*
|
|
14
|
-
*
|
|
15
|
+
* The agent's name comes from outside, and an agent chooses its own name. It
|
|
16
|
+
* is rendered as text, never as markup, so a name like
|
|
17
|
+
* `Atlas <span class="pill">Verified</span>` reads exactly that way.
|
|
18
|
+
*
|
|
19
|
+
* Parts: `eyebrow`, `headline` (the h1), `agent-name` (the name, an `em`, or a
|
|
20
|
+
* button when the agent is given), `host` (the domain chip), `subhead` and
|
|
21
|
+
* `agent-details` (the popover).
|
|
22
|
+
*
|
|
23
|
+
* Slot: `headline`, the h1's words in place of the standard line, for a host
|
|
24
|
+
* that words it its own way. The host's content is its own markup, so the host
|
|
25
|
+
* keeps an agent-chosen name as text. consent-capabilities-screen forwards its
|
|
26
|
+
* own `headline` slot here.
|
|
27
|
+
*
|
|
28
|
+
* In edit mode (`preview` and `editable`) the subhead is a region a person
|
|
29
|
+
* types into, keyed `description`; with no subhead of its own it starts from
|
|
30
|
+
* the standard line, and only typing writes it.
|
|
15
31
|
*
|
|
16
32
|
* @module components/consent-headline
|
|
17
33
|
*/
|
|
@@ -23,64 +39,268 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
23
39
|
};
|
|
24
40
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
25
41
|
exports.ConsentHeadline = void 0;
|
|
42
|
+
exports.initialOf = initialOf;
|
|
43
|
+
exports.vouchingHost = vouchingHost;
|
|
26
44
|
const lit_1 = require("lit");
|
|
27
45
|
const decorators_js_1 = require("lit/decorators.js");
|
|
28
46
|
const tokens_js_1 = require("../copy/tokens.js");
|
|
47
|
+
const capabilities_types_js_1 = require("../types/capabilities.types.js");
|
|
48
|
+
const edit_types_js_1 = require("../types/edit.types.js");
|
|
49
|
+
const edit_region_js_1 = require("./edit-region.js");
|
|
50
|
+
const preview_js_1 = require("./preview.js");
|
|
29
51
|
/** The headline's placeholders, kept as their own pieces when it is split. */
|
|
30
|
-
const PLACEHOLDER = /(\{Agent\}|\{Verb\}
|
|
52
|
+
const PLACEHOLDER = /(\{Agent\}|\{Verb\})/;
|
|
53
|
+
/** The details popover: its widest, and its distance from the name and the window's edge. */
|
|
54
|
+
const DETAILS_WIDTH_PX = 304;
|
|
55
|
+
const DETAILS_GAP_PX = 8;
|
|
56
|
+
const DETAILS_GUTTER_PX = 16;
|
|
57
|
+
/** The first letter or digit of a name, for a tile with no logo. */
|
|
58
|
+
function initialOf(name) {
|
|
59
|
+
return name.match(/[\p{L}\p{N}]/u)?.[0]?.toUpperCase() ?? "?";
|
|
60
|
+
}
|
|
61
|
+
/** The host that vouches for a domain-bound agent; none for any other. */
|
|
62
|
+
function vouchingHost(agent) {
|
|
63
|
+
return (0, capabilities_types_js_1.agentVerification)(agent) === "domain"
|
|
64
|
+
? agent.domain?.trim() || undefined
|
|
65
|
+
: undefined;
|
|
66
|
+
}
|
|
67
|
+
const CHECK_ICON = (0, lit_1.svg) `<path d="M20 6 9 17l-5-5" />`;
|
|
68
|
+
const GLOBE_ICON = (0, lit_1.svg) `<circle cx="12" cy="12" r="10" /><path d="M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20" /><path d="M2 12h20" />`;
|
|
31
69
|
let ConsentHeadline = class ConsentHeadline extends lit_1.LitElement {
|
|
32
70
|
constructor() {
|
|
33
71
|
super(...arguments);
|
|
34
72
|
/** The agent asking. "An assistant" in the headline when it is empty. */
|
|
35
73
|
this.agentName = "";
|
|
36
|
-
/** The organization the agent wants to act at. "this site" when empty. */
|
|
37
|
-
this.orgName = "";
|
|
38
74
|
/**
|
|
39
75
|
* What the agent wants to do, as a phrase that follows "would like to",
|
|
40
|
-
* such as "read your orders". Empty or "use" gives the
|
|
76
|
+
* such as "read your orders". Empty or "use" gives the standard headline.
|
|
41
77
|
*/
|
|
42
78
|
this.verb = "";
|
|
43
|
-
/** The subhead. Empty
|
|
79
|
+
/** The subhead. Empty draws none. */
|
|
44
80
|
this.description = "";
|
|
45
81
|
/** The line above the headline. Empty gives "PERMISSION REQUEST". */
|
|
46
82
|
this.eyebrow = "";
|
|
83
|
+
/** Draws as it would live; nothing here acts, so it only enables `editable`. */
|
|
84
|
+
this.preview = false;
|
|
85
|
+
/** With `preview`: the subhead can be edited in place. */
|
|
86
|
+
this.editable = false;
|
|
87
|
+
/** Whether the host filled the `headline` slot, so the standard line steps aside. */
|
|
88
|
+
this.hostHeadline = false;
|
|
89
|
+
/**
|
|
90
|
+
* Reads the slot itself, not the event's target: when a screen forwards its
|
|
91
|
+
* own slot here, the event comes from that slot, and a host that fills the
|
|
92
|
+
* screen's slot later is seen only through the flattened list.
|
|
93
|
+
*/
|
|
94
|
+
this.readHeadlineSlot = () => {
|
|
95
|
+
const slot = this.renderRoot.querySelector('slot[name="headline"]');
|
|
96
|
+
this.hostHeadline =
|
|
97
|
+
(slot?.assignedElements({ flatten: true }).length ?? 0) > 0;
|
|
98
|
+
};
|
|
99
|
+
/** Places the popover under the name, inside the window, while it is open. */
|
|
100
|
+
this.onDetailsToggle = (event) => {
|
|
101
|
+
const opening = event.newState === "open";
|
|
102
|
+
if (opening) {
|
|
103
|
+
this.placeDetails();
|
|
104
|
+
window.addEventListener("scroll", this.placeDetails, true);
|
|
105
|
+
window.addEventListener("resize", this.placeDetails);
|
|
106
|
+
}
|
|
107
|
+
else {
|
|
108
|
+
window.removeEventListener("scroll", this.placeDetails, true);
|
|
109
|
+
window.removeEventListener("resize", this.placeDetails);
|
|
110
|
+
}
|
|
111
|
+
};
|
|
112
|
+
this.placeDetails = () => {
|
|
113
|
+
const name = this.renderRoot.querySelector(".agent");
|
|
114
|
+
const details = this.renderRoot.querySelector(".details");
|
|
115
|
+
if (!name || !details)
|
|
116
|
+
return;
|
|
117
|
+
const anchor = name.getBoundingClientRect();
|
|
118
|
+
const width = Math.min(DETAILS_WIDTH_PX, window.innerWidth - 2 * DETAILS_GUTTER_PX);
|
|
119
|
+
details.style.top = `${anchor.bottom + DETAILS_GAP_PX}px`;
|
|
120
|
+
details.style.left = `${Math.max(DETAILS_GUTTER_PX, Math.min(anchor.left, window.innerWidth - width - DETAILS_GUTTER_PX))}px`;
|
|
121
|
+
};
|
|
47
122
|
}
|
|
48
123
|
render() {
|
|
49
124
|
const tokens = tokens_js_1.CONSENT_COPY_TOKENS;
|
|
50
|
-
const subhead = this.
|
|
51
|
-
(0, tokens_js_1.formatToken)(tokens.subhead.template, {
|
|
52
|
-
Agent: this.agentName.trim() || "this agent",
|
|
53
|
-
});
|
|
125
|
+
const subhead = this.subheadText();
|
|
54
126
|
return (0, lit_1.html) `
|
|
55
127
|
<span class="eyebrow" part="eyebrow"
|
|
56
128
|
>${this.eyebrow.trim() || tokens.eyebrow.permissionRequest}</span
|
|
57
129
|
>
|
|
58
|
-
<h1 class="headline" part="headline"
|
|
59
|
-
|
|
130
|
+
<h1 class="headline" part="headline">
|
|
131
|
+
<slot name="headline" @slotchange=${this.readHeadlineSlot}></slot>${this
|
|
132
|
+
.hostHeadline
|
|
133
|
+
? lit_1.nothing
|
|
134
|
+
: this.headlinePieces()}
|
|
135
|
+
</h1>
|
|
136
|
+
${subhead === lit_1.nothing
|
|
137
|
+
? lit_1.nothing
|
|
138
|
+
: (0, lit_1.html) `<p class="subhead" part="subhead">${subhead}</p>`}
|
|
139
|
+
${this.agent && !this.hostHeadline
|
|
140
|
+
? this.renderDetails(this.agent)
|
|
141
|
+
: lit_1.nothing}
|
|
60
142
|
`;
|
|
61
143
|
}
|
|
62
|
-
/** The
|
|
144
|
+
/** The name the headline gives the agent. */
|
|
145
|
+
get displayName() {
|
|
146
|
+
return this.agent?.name?.trim() || this.agentName.trim() || "An assistant";
|
|
147
|
+
}
|
|
148
|
+
/**
|
|
149
|
+
* The subhead: the host's, as a region in edit mode. With none, nothing,
|
|
150
|
+
* except in edit mode, where the region starts from the standard line.
|
|
151
|
+
*/
|
|
152
|
+
subheadText() {
|
|
153
|
+
const given = this.description.trim();
|
|
154
|
+
if (!(0, preview_js_1.isEditing)(this))
|
|
155
|
+
return given || lit_1.nothing;
|
|
156
|
+
return (0, edit_region_js_1.editRegion)(edit_types_js_1.CONSENT_EDIT_KEYS.description, tokens_js_1.CONSENT_COPY_TOKENS.editRegions.description, given ||
|
|
157
|
+
(0, tokens_js_1.formatToken)(tokens_js_1.CONSENT_COPY_TOKENS.subhead.template, {
|
|
158
|
+
Agent: this.displayName,
|
|
159
|
+
}), this.editSource);
|
|
160
|
+
}
|
|
161
|
+
/**
|
|
162
|
+
* Before the first render, reads what the slot will hold from the light DOM,
|
|
163
|
+
* so the first render is already the right one. A change made here does not
|
|
164
|
+
* schedule another update, where one made after the first update would.
|
|
165
|
+
*/
|
|
166
|
+
willUpdate() {
|
|
167
|
+
if (!this.hasUpdated)
|
|
168
|
+
this.hostHeadline = this.lightHeadlineFilled();
|
|
169
|
+
(0, preview_js_1.warnIfEditableWithoutPreview)(this);
|
|
170
|
+
}
|
|
171
|
+
/**
|
|
172
|
+
* The children the `headline` slot will be given, flattened: a screen's
|
|
173
|
+
* forwarded slot counts only when something is assigned to it.
|
|
174
|
+
*/
|
|
175
|
+
lightHeadlineFilled() {
|
|
176
|
+
return [...this.children].some((child) => {
|
|
177
|
+
if (child.getAttribute("slot") !== "headline")
|
|
178
|
+
return false;
|
|
179
|
+
if (child instanceof HTMLSlotElement) {
|
|
180
|
+
return child.assignedElements({ flatten: true }).length > 0;
|
|
181
|
+
}
|
|
182
|
+
return true;
|
|
183
|
+
});
|
|
184
|
+
}
|
|
185
|
+
/** The headline, with the agent's name as a button when the agent is given. */
|
|
63
186
|
headlinePieces() {
|
|
64
187
|
const tokens = tokens_js_1.CONSENT_COPY_TOKENS;
|
|
65
188
|
const verb = this.verb.trim();
|
|
66
189
|
const template = verb && verb !== "use"
|
|
67
190
|
? tokens.headline.template
|
|
68
191
|
: tokens.headline.fallbackTemplate;
|
|
69
|
-
const agent = this.agentName.trim() || "An assistant";
|
|
70
|
-
const org = this.orgName.trim() || "this site";
|
|
71
192
|
return template.split(PLACEHOLDER).map((piece) => {
|
|
72
193
|
if (piece === "{Agent}")
|
|
73
|
-
return (
|
|
74
|
-
if (piece === "{Org}")
|
|
75
|
-
return (0, lit_1.html) `<em>${org}</em>`;
|
|
194
|
+
return this.renderName();
|
|
76
195
|
if (piece === "{Verb}")
|
|
77
196
|
return verb;
|
|
78
197
|
return piece;
|
|
79
198
|
});
|
|
80
199
|
}
|
|
200
|
+
renderName() {
|
|
201
|
+
const name = this.displayName;
|
|
202
|
+
if (!this.agent)
|
|
203
|
+
return (0, lit_1.html) `<em part="agent-name">${name}</em>`;
|
|
204
|
+
const host = vouchingHost(this.agent);
|
|
205
|
+
return (0, lit_1.html) `<button
|
|
206
|
+
class="agent"
|
|
207
|
+
part="agent-name"
|
|
208
|
+
type="button"
|
|
209
|
+
aria-haspopup="dialog"
|
|
210
|
+
popovertarget="agent-details"
|
|
211
|
+
>
|
|
212
|
+
${name}</button
|
|
213
|
+
>${host
|
|
214
|
+
? (0, lit_1.html) ` <span class="host" part="host"
|
|
215
|
+
><svg
|
|
216
|
+
viewBox="0 0 24 24"
|
|
217
|
+
fill="none"
|
|
218
|
+
stroke="currentColor"
|
|
219
|
+
stroke-width="2"
|
|
220
|
+
stroke-linecap="round"
|
|
221
|
+
stroke-linejoin="round"
|
|
222
|
+
aria-hidden="true"
|
|
223
|
+
>
|
|
224
|
+
${CHECK_ICON}</svg
|
|
225
|
+
><span class="sr-only"
|
|
226
|
+
>${tokens_js_1.CONSENT_COPY_TOKENS.agentDetails.identifiedByPrefix}</span
|
|
227
|
+
>${host}</span
|
|
228
|
+
>`
|
|
229
|
+
: lit_1.nothing}`;
|
|
230
|
+
}
|
|
231
|
+
/** What the agent's name opens: who it is and how its name was checked. */
|
|
232
|
+
renderDetails(agent) {
|
|
233
|
+
const copy = tokens_js_1.CONSENT_COPY_TOKENS.agentDetails;
|
|
234
|
+
const name = this.displayName;
|
|
235
|
+
const host = vouchingHost(agent);
|
|
236
|
+
const verified = (0, capabilities_types_js_1.agentVerification)(agent) === "verified";
|
|
237
|
+
const identity = host
|
|
238
|
+
? (0, tokens_js_1.formatToken)(copy.identifiedBy, { Host: host })
|
|
239
|
+
: verified
|
|
240
|
+
? copy.verified
|
|
241
|
+
: copy.unverified;
|
|
242
|
+
const explanation = host
|
|
243
|
+
? (0, tokens_js_1.formatToken)(copy.identifiedExplanation, { Host: host })
|
|
244
|
+
: verified
|
|
245
|
+
? copy.verifiedExplanation
|
|
246
|
+
: copy.unverifiedExplanation;
|
|
247
|
+
const logo = agent.logoUrl?.trim();
|
|
248
|
+
return (0, lit_1.html) `<div
|
|
249
|
+
id="agent-details"
|
|
250
|
+
class="details"
|
|
251
|
+
part="agent-details"
|
|
252
|
+
popover="auto"
|
|
253
|
+
role="dialog"
|
|
254
|
+
aria-label=${(0, tokens_js_1.formatToken)(copy.about, { Agent: name })}
|
|
255
|
+
@beforetoggle=${this.onDetailsToggle}
|
|
256
|
+
>
|
|
257
|
+
<div class="details-head">
|
|
258
|
+
<span class="mark" aria-hidden="true"
|
|
259
|
+
>${logo ? (0, lit_1.html) `<img src=${logo} alt="" />` : initialOf(name)}</span
|
|
260
|
+
>
|
|
261
|
+
<span class="who"
|
|
262
|
+
><span class="name">${name}</span
|
|
263
|
+
><span class="small">${copy.kind}</span></span
|
|
264
|
+
>
|
|
265
|
+
</div>
|
|
266
|
+
<dl>
|
|
267
|
+
<div class="fact">
|
|
268
|
+
<svg
|
|
269
|
+
viewBox="0 0 24 24"
|
|
270
|
+
fill="none"
|
|
271
|
+
stroke="currentColor"
|
|
272
|
+
stroke-width="2"
|
|
273
|
+
stroke-linecap="round"
|
|
274
|
+
stroke-linejoin="round"
|
|
275
|
+
aria-hidden="true"
|
|
276
|
+
>
|
|
277
|
+
${GLOBE_ICON}
|
|
278
|
+
</svg>
|
|
279
|
+
<div>
|
|
280
|
+
<dt class="small">${copy.identity}</dt>
|
|
281
|
+
<dd class="value">${identity}</dd>
|
|
282
|
+
<dd class="small">${explanation}</dd>
|
|
283
|
+
</div>
|
|
284
|
+
</div>
|
|
285
|
+
${agent.did?.trim()
|
|
286
|
+
? (0, lit_1.html) `<div class="agent-id">
|
|
287
|
+
<dt class="small">${copy.agentId}</dt>
|
|
288
|
+
<dd><code>${agent.did.trim()}</code></dd>
|
|
289
|
+
</div>`
|
|
290
|
+
: lit_1.nothing}
|
|
291
|
+
</dl>
|
|
292
|
+
</div>`;
|
|
293
|
+
}
|
|
294
|
+
disconnectedCallback() {
|
|
295
|
+
super.disconnectedCallback();
|
|
296
|
+
window.removeEventListener("scroll", this.placeDetails, true);
|
|
297
|
+
window.removeEventListener("resize", this.placeDetails);
|
|
298
|
+
}
|
|
81
299
|
};
|
|
82
300
|
exports.ConsentHeadline = ConsentHeadline;
|
|
83
301
|
ConsentHeadline.styles = (0, lit_1.css) `
|
|
302
|
+
${edit_region_js_1.editRegionStyles}
|
|
303
|
+
|
|
84
304
|
:host {
|
|
85
305
|
display: flex;
|
|
86
306
|
flex-direction: column;
|
|
@@ -92,17 +312,20 @@ ConsentHeadline.styles = (0, lit_1.css) `
|
|
|
92
312
|
font-size: 11px;
|
|
93
313
|
letter-spacing: 0.16em;
|
|
94
314
|
font-weight: 600;
|
|
95
|
-
color: var(--cs-text-tertiary, #
|
|
315
|
+
color: var(--cs-text-tertiary, #5d6c82);
|
|
96
316
|
text-transform: uppercase;
|
|
97
317
|
}
|
|
98
318
|
|
|
99
319
|
.headline {
|
|
100
|
-
font-family: "
|
|
101
|
-
font-size: var(--cs-headline-font-size,
|
|
102
|
-
|
|
320
|
+
font-family: var(--cs-headline-font, "Instrument Serif", Georgia, serif);
|
|
321
|
+
font-size: var(--cs-headline-font-size, 32px);
|
|
322
|
+
font-weight: var(--cs-headline-weight, 600);
|
|
323
|
+
line-height: 1.1;
|
|
103
324
|
letter-spacing: -0.01em;
|
|
104
325
|
color: var(--cs-text-primary, #0f172a);
|
|
105
326
|
margin: 0;
|
|
327
|
+
text-align: left;
|
|
328
|
+
text-wrap: pretty;
|
|
106
329
|
overflow-wrap: anywhere;
|
|
107
330
|
}
|
|
108
331
|
|
|
@@ -110,19 +333,199 @@ ConsentHeadline.styles = (0, lit_1.css) `
|
|
|
110
333
|
font-style: italic;
|
|
111
334
|
}
|
|
112
335
|
|
|
336
|
+
.agent {
|
|
337
|
+
font: inherit;
|
|
338
|
+
font-style: italic;
|
|
339
|
+
color: var(--cs-action, currentColor);
|
|
340
|
+
background: none;
|
|
341
|
+
border: 0;
|
|
342
|
+
padding: 0;
|
|
343
|
+
margin: 0;
|
|
344
|
+
text-align: left;
|
|
345
|
+
cursor: pointer;
|
|
346
|
+
border-radius: 4px;
|
|
347
|
+
text-decoration: underline dotted 2px;
|
|
348
|
+
text-underline-offset: 0.3em;
|
|
349
|
+
}
|
|
350
|
+
|
|
351
|
+
.agent:hover {
|
|
352
|
+
text-decoration-style: solid;
|
|
353
|
+
}
|
|
354
|
+
|
|
355
|
+
.agent:focus-visible {
|
|
356
|
+
outline: 2px solid var(--cs-focus-ring, #0f172a);
|
|
357
|
+
outline-offset: 2px;
|
|
358
|
+
}
|
|
359
|
+
|
|
360
|
+
.host {
|
|
361
|
+
display: inline-flex;
|
|
362
|
+
max-width: 100%;
|
|
363
|
+
align-items: center;
|
|
364
|
+
gap: 4px;
|
|
365
|
+
padding: 2px 6px;
|
|
366
|
+
border-radius: 4px;
|
|
367
|
+
border: 1px solid var(--cs-tint-line, rgba(15, 23, 42, 0.18));
|
|
368
|
+
background: var(--cs-tint, rgba(15, 23, 42, 0.07));
|
|
369
|
+
color: var(--cs-text-primary, #0f172a);
|
|
370
|
+
font-family: var(
|
|
371
|
+
--cs-font,
|
|
372
|
+
system-ui,
|
|
373
|
+
-apple-system,
|
|
374
|
+
"Segoe UI",
|
|
375
|
+
sans-serif
|
|
376
|
+
);
|
|
377
|
+
font-size: 14px;
|
|
378
|
+
font-style: normal;
|
|
379
|
+
font-weight: 500;
|
|
380
|
+
line-height: 1.45;
|
|
381
|
+
letter-spacing: 0;
|
|
382
|
+
vertical-align: middle;
|
|
383
|
+
overflow-wrap: anywhere;
|
|
384
|
+
}
|
|
385
|
+
|
|
386
|
+
.host svg {
|
|
387
|
+
width: 14px;
|
|
388
|
+
height: 14px;
|
|
389
|
+
flex-shrink: 0;
|
|
390
|
+
color: var(--cs-mark, currentColor);
|
|
391
|
+
}
|
|
392
|
+
|
|
393
|
+
.sr-only {
|
|
394
|
+
position: absolute;
|
|
395
|
+
width: 1px;
|
|
396
|
+
height: 1px;
|
|
397
|
+
margin: -1px;
|
|
398
|
+
padding: 0;
|
|
399
|
+
overflow: hidden;
|
|
400
|
+
clip-path: inset(50%);
|
|
401
|
+
white-space: nowrap;
|
|
402
|
+
border: 0;
|
|
403
|
+
}
|
|
404
|
+
|
|
113
405
|
.subhead {
|
|
114
406
|
font-size: var(--cs-subhead-font-size, 14.5px);
|
|
115
407
|
color: var(--cs-text-secondary, #334155);
|
|
116
408
|
line-height: 1.55;
|
|
117
409
|
margin: 0;
|
|
410
|
+
text-align: left;
|
|
411
|
+
text-wrap: pretty;
|
|
412
|
+
}
|
|
413
|
+
|
|
414
|
+
.details {
|
|
415
|
+
position: fixed;
|
|
416
|
+
inset: auto;
|
|
417
|
+
margin: 0;
|
|
418
|
+
box-sizing: border-box;
|
|
419
|
+
width: min(
|
|
420
|
+
${DETAILS_WIDTH_PX}px,
|
|
421
|
+
calc(100vw - ${2 * DETAILS_GUTTER_PX}px)
|
|
422
|
+
);
|
|
423
|
+
padding: 16px;
|
|
424
|
+
border-radius: 12px;
|
|
425
|
+
border: 1px solid var(--cs-surface-border, rgba(15, 23, 42, 0.1));
|
|
426
|
+
background: var(--cs-surface-card, #ffffff);
|
|
427
|
+
color: var(--cs-text-primary, #0f172a);
|
|
428
|
+
box-shadow: var(--cs-card-shadow, 0 6px 20px -6px rgba(15, 23, 42, 0.1));
|
|
429
|
+
font-size: 14px;
|
|
430
|
+
line-height: 1.45;
|
|
431
|
+
}
|
|
432
|
+
|
|
433
|
+
.details-head {
|
|
434
|
+
display: flex;
|
|
435
|
+
align-items: center;
|
|
436
|
+
gap: 12px;
|
|
437
|
+
}
|
|
438
|
+
|
|
439
|
+
.mark {
|
|
440
|
+
display: grid;
|
|
441
|
+
place-items: center;
|
|
442
|
+
width: 40px;
|
|
443
|
+
height: 40px;
|
|
444
|
+
flex-shrink: 0;
|
|
445
|
+
border-radius: 6px;
|
|
446
|
+
border: 1px solid var(--cs-surface-border, rgba(15, 23, 42, 0.1));
|
|
447
|
+
background: var(--cs-surface-card, #ffffff);
|
|
448
|
+
font-size: 16px;
|
|
449
|
+
font-weight: 600;
|
|
450
|
+
overflow: hidden;
|
|
451
|
+
}
|
|
452
|
+
|
|
453
|
+
.mark img {
|
|
454
|
+
width: 28px;
|
|
455
|
+
height: 28px;
|
|
456
|
+
object-fit: contain;
|
|
457
|
+
}
|
|
458
|
+
|
|
459
|
+
.who {
|
|
460
|
+
display: flex;
|
|
461
|
+
flex-direction: column;
|
|
462
|
+
min-width: 0;
|
|
463
|
+
}
|
|
464
|
+
|
|
465
|
+
.who .name {
|
|
466
|
+
font-weight: 600;
|
|
467
|
+
overflow-wrap: anywhere;
|
|
468
|
+
}
|
|
469
|
+
|
|
470
|
+
.small {
|
|
471
|
+
font-size: 12px;
|
|
472
|
+
color: var(--cs-text-tertiary, #5d6c82);
|
|
473
|
+
}
|
|
474
|
+
|
|
475
|
+
.details dl {
|
|
476
|
+
display: flex;
|
|
477
|
+
flex-direction: column;
|
|
478
|
+
gap: 12px;
|
|
479
|
+
margin: 16px 0 0;
|
|
480
|
+
}
|
|
481
|
+
|
|
482
|
+
.details dd {
|
|
483
|
+
margin: 0;
|
|
484
|
+
}
|
|
485
|
+
|
|
486
|
+
.fact {
|
|
487
|
+
display: flex;
|
|
488
|
+
align-items: flex-start;
|
|
489
|
+
gap: 10px;
|
|
490
|
+
}
|
|
491
|
+
|
|
492
|
+
.fact svg {
|
|
493
|
+
width: 16px;
|
|
494
|
+
height: 16px;
|
|
495
|
+
flex-shrink: 0;
|
|
496
|
+
margin-top: 2px;
|
|
497
|
+
color: var(--cs-mark, currentColor);
|
|
498
|
+
}
|
|
499
|
+
|
|
500
|
+
.fact .value {
|
|
501
|
+
font-weight: 500;
|
|
502
|
+
}
|
|
503
|
+
|
|
504
|
+
.agent-id {
|
|
505
|
+
display: flex;
|
|
506
|
+
flex-direction: column;
|
|
507
|
+
gap: 4px;
|
|
508
|
+
}
|
|
509
|
+
|
|
510
|
+
.agent-id code {
|
|
511
|
+
word-break: break-all;
|
|
512
|
+
border-radius: 4px;
|
|
513
|
+
border: 1px solid var(--cs-surface-border, rgba(15, 23, 42, 0.1));
|
|
514
|
+
background: color-mix(
|
|
515
|
+
in srgb,
|
|
516
|
+
var(--cs-text-primary, #0f172a) 4%,
|
|
517
|
+
transparent
|
|
518
|
+
);
|
|
519
|
+
padding: 0 4px;
|
|
520
|
+
font-size: 12px;
|
|
118
521
|
}
|
|
119
522
|
`;
|
|
120
523
|
__decorate([
|
|
121
524
|
(0, decorators_js_1.property)({ type: String, attribute: "agent-name" })
|
|
122
525
|
], ConsentHeadline.prototype, "agentName", void 0);
|
|
123
526
|
__decorate([
|
|
124
|
-
(0, decorators_js_1.property)({
|
|
125
|
-
], ConsentHeadline.prototype, "
|
|
527
|
+
(0, decorators_js_1.property)({ attribute: false })
|
|
528
|
+
], ConsentHeadline.prototype, "agent", void 0);
|
|
126
529
|
__decorate([
|
|
127
530
|
(0, decorators_js_1.property)({ type: String })
|
|
128
531
|
], ConsentHeadline.prototype, "verb", void 0);
|
|
@@ -132,6 +535,18 @@ __decorate([
|
|
|
132
535
|
__decorate([
|
|
133
536
|
(0, decorators_js_1.property)({ type: String })
|
|
134
537
|
], ConsentHeadline.prototype, "eyebrow", void 0);
|
|
538
|
+
__decorate([
|
|
539
|
+
(0, decorators_js_1.property)({ type: Boolean, reflect: true })
|
|
540
|
+
], ConsentHeadline.prototype, "preview", void 0);
|
|
541
|
+
__decorate([
|
|
542
|
+
(0, decorators_js_1.property)({ type: Boolean, reflect: true })
|
|
543
|
+
], ConsentHeadline.prototype, "editable", void 0);
|
|
544
|
+
__decorate([
|
|
545
|
+
(0, decorators_js_1.property)({ attribute: false })
|
|
546
|
+
], ConsentHeadline.prototype, "editSource", void 0);
|
|
547
|
+
__decorate([
|
|
548
|
+
(0, decorators_js_1.state)()
|
|
549
|
+
], ConsentHeadline.prototype, "hostHeadline", void 0);
|
|
135
550
|
exports.ConsentHeadline = ConsentHeadline = __decorate([
|
|
136
551
|
(0, decorators_js_1.customElement)("consent-headline")
|
|
137
552
|
], ConsentHeadline);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"consent-headline.js","sourceRoot":"","sources":["../../../src/components/consent-headline.ts"],"names":[],"mappings":";AAAA
|
|
1
|
+
{"version":3,"file":"consent-headline.js","sourceRoot":"","sources":["../../../src/components/consent-headline.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+BG;;;;;;;;;AA0BH,8BAEC;AAGD,oCAMC;AAnCD,6BAA0D;AAC1D,qDAAmE;AAEnE,iDAAqE;AACrE,0EAGwC;AACxC,0DAGgC;AAChC,qDAAgE;AAChE,6CAAuE;AAEvE,8EAA8E;AAC9E,MAAM,WAAW,GAAG,sBAAsB,CAAC;AAE3C,6FAA6F;AAC7F,MAAM,gBAAgB,GAAG,GAAG,CAAC;AAC7B,MAAM,cAAc,GAAG,CAAC,CAAC;AACzB,MAAM,iBAAiB,GAAG,EAAE,CAAC;AAE7B,oEAAoE;AACpE,SAAgB,SAAS,CAAC,IAAY;IACpC,OAAO,IAAI,CAAC,KAAK,CAAC,eAAe,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,WAAW,EAAE,IAAI,GAAG,CAAC;AAChE,CAAC;AAED,0EAA0E;AAC1E,SAAgB,YAAY,CAC1B,KAAkE;IAElE,OAAO,IAAA,yCAAiB,EAAC,KAAK,CAAC,KAAK,QAAQ;QAC1C,CAAC,CAAC,KAAK,CAAC,MAAM,EAAE,IAAI,EAAE,IAAI,SAAS;QACnC,CAAC,CAAC,SAAS,CAAC;AAChB,CAAC;AAED,MAAM,UAAU,GAAG,IAAA,SAAG,EAAA,8BAA8B,CAAC;AACrD,MAAM,UAAU,GAAG,IAAA,SAAG,EAAA,oHAAoH,CAAC;AAGpI,IAAM,eAAe,GAArB,MAAM,eAAgB,SAA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