@kya-os/consent 0.1.38 → 0.1.39
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/index.d.ts +12 -0
- package/dist/bundle/index.d.ts.map +1 -1
- package/dist/bundle/index.js +12 -0
- package/dist/bundle/index.js.map +1 -1
- package/dist/bundle/inline.d.ts.map +1 -1
- package/dist/bundle/inline.js +2 -2
- package/dist/bundle/inline.js.map +1 -1
- package/dist/bundle/shell.d.ts +23 -0
- package/dist/bundle/shell.d.ts.map +1 -1
- package/dist/bundle/shell.js +25 -1
- package/dist/bundle/shell.js.map +1 -1
- package/dist/capabilities/index.d.ts +7 -0
- package/dist/capabilities/index.d.ts.map +1 -0
- package/dist/capabilities/index.js +7 -0
- package/dist/capabilities/index.js.map +1 -0
- package/dist/capabilities/registry.d.ts +29 -0
- package/dist/capabilities/registry.d.ts.map +1 -0
- package/dist/capabilities/registry.js +178 -0
- package/dist/capabilities/registry.js.map +1 -0
- package/dist/cedar/compile.d.ts +30 -0
- package/dist/cedar/compile.d.ts.map +1 -0
- package/dist/cedar/compile.js +55 -0
- package/dist/cedar/compile.js.map +1 -0
- package/dist/cedar/explain.d.ts +22 -0
- package/dist/cedar/explain.d.ts.map +1 -0
- package/dist/cedar/explain.js +72 -0
- package/dist/cedar/explain.js.map +1 -0
- package/dist/cedar/index.d.ts +8 -0
- package/dist/cedar/index.d.ts.map +1 -0
- package/dist/cedar/index.js +8 -0
- package/dist/cedar/index.js.map +1 -0
- package/dist/cjs/bundle/index.js +19 -1
- package/dist/cjs/bundle/index.js.map +1 -1
- package/dist/cjs/bundle/inline.js +2 -2
- package/dist/cjs/bundle/inline.js.map +1 -1
- package/dist/cjs/bundle/shell.js +25 -1
- package/dist/cjs/bundle/shell.js.map +1 -1
- package/dist/cjs/capabilities/index.js +12 -0
- package/dist/cjs/capabilities/index.js.map +1 -0
- package/dist/cjs/capabilities/registry.js +182 -0
- package/dist/cjs/capabilities/registry.js.map +1 -0
- package/dist/cjs/cedar/compile.js +59 -0
- package/dist/cjs/cedar/compile.js.map +1 -0
- package/dist/cjs/cedar/explain.js +75 -0
- package/dist/cjs/cedar/explain.js.map +1 -0
- package/dist/cjs/cedar/index.js +14 -0
- package/dist/cjs/cedar/index.js.map +1 -0
- package/dist/cjs/components/consent-action-bar.js +138 -0
- package/dist/cjs/components/consent-action-bar.js.map +1 -0
- package/dist/cjs/components/consent-agent-header.js +205 -0
- package/dist/cjs/components/consent-agent-header.js.map +1 -0
- package/dist/cjs/components/consent-capabilities-screen.js +309 -0
- package/dist/cjs/components/consent-capabilities-screen.js.map +1 -0
- package/dist/cjs/components/consent-capability-card.js +340 -0
- package/dist/cjs/components/consent-capability-card.js.map +1 -0
- package/dist/cjs/components/consent-footer.js +99 -0
- package/dist/cjs/components/consent-footer.js.map +1 -0
- package/dist/cjs/components/consent-revocation-notice.js +101 -0
- package/dist/cjs/components/consent-revocation-notice.js.map +1 -0
- package/dist/cjs/components/index.js +14 -1
- package/dist/cjs/components/index.js.map +1 -1
- package/dist/cjs/components/mcp-consent.js +176 -7
- package/dist/cjs/components/mcp-consent.js.map +1 -1
- package/dist/cjs/copy/index.js +12 -0
- package/dist/cjs/copy/index.js.map +1 -0
- package/dist/cjs/copy/tokens.js +101 -0
- package/dist/cjs/copy/tokens.js.map +1 -0
- package/dist/cjs/index.js +8 -0
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/mcp-app/inline.js +2 -2
- package/dist/cjs/mcp-app/inline.js.map +1 -1
- package/dist/cjs/popup/index.js +15 -0
- package/dist/cjs/popup/index.js.map +1 -0
- package/dist/cjs/popup/launcher.js +77 -0
- package/dist/cjs/popup/launcher.js.map +1 -0
- package/dist/cjs/schemas/capabilities.schemas.js +129 -0
- package/dist/cjs/schemas/capabilities.schemas.js.map +1 -0
- package/dist/cjs/schemas/config.schemas.js +18 -0
- package/dist/cjs/schemas/config.schemas.js.map +1 -1
- package/dist/cjs/schemas/index.js +1 -0
- package/dist/cjs/schemas/index.js.map +1 -1
- package/dist/cjs/styles/index.js +1 -0
- package/dist/cjs/styles/index.js.map +1 -1
- package/dist/cjs/styles/theme.js +86 -0
- package/dist/cjs/styles/theme.js.map +1 -0
- package/dist/cjs/types/capabilities.types.js +12 -0
- package/dist/cjs/types/capabilities.types.js.map +1 -0
- package/dist/cjs/types/index.js +1 -0
- package/dist/cjs/types/index.js.map +1 -1
- package/dist/components/consent-action-bar.d.ts +30 -0
- package/dist/components/consent-action-bar.d.ts.map +1 -0
- package/dist/components/consent-action-bar.js +135 -0
- package/dist/components/consent-action-bar.js.map +1 -0
- package/dist/components/consent-agent-header.d.ts +31 -0
- package/dist/components/consent-agent-header.d.ts.map +1 -0
- package/dist/components/consent-agent-header.js +202 -0
- package/dist/components/consent-agent-header.js.map +1 -0
- package/dist/components/consent-capabilities-screen.d.ts +62 -0
- package/dist/components/consent-capabilities-screen.d.ts.map +1 -0
- package/dist/components/consent-capabilities-screen.js +306 -0
- package/dist/components/consent-capabilities-screen.js.map +1 -0
- package/dist/components/consent-capability-card.d.ts +44 -0
- package/dist/components/consent-capability-card.d.ts.map +1 -0
- package/dist/components/consent-capability-card.js +337 -0
- package/dist/components/consent-capability-card.js.map +1 -0
- package/dist/components/consent-footer.d.ts +22 -0
- package/dist/components/consent-footer.d.ts.map +1 -0
- package/dist/components/consent-footer.js +96 -0
- package/dist/components/consent-footer.js.map +1 -0
- package/dist/components/consent-revocation-notice.d.ts +22 -0
- package/dist/components/consent-revocation-notice.d.ts.map +1 -0
- package/dist/components/consent-revocation-notice.js +98 -0
- package/dist/components/consent-revocation-notice.js.map +1 -0
- package/dist/components/index.d.ts +6 -0
- package/dist/components/index.d.ts.map +1 -1
- package/dist/components/index.js +7 -0
- package/dist/components/index.js.map +1 -1
- package/dist/components/mcp-consent.d.ts +41 -0
- package/dist/components/mcp-consent.d.ts.map +1 -1
- package/dist/components/mcp-consent.js +176 -7
- package/dist/components/mcp-consent.js.map +1 -1
- package/dist/consent.js +1374 -7
- package/dist/consent.min.js +727 -96
- package/dist/copy/index.d.ts +8 -0
- package/dist/copy/index.d.ts.map +1 -0
- package/dist/copy/index.js +7 -0
- package/dist/copy/index.js.map +1 -0
- package/dist/copy/tokens.d.ts +93 -0
- package/dist/copy/tokens.d.ts.map +1 -0
- package/dist/copy/tokens.js +97 -0
- package/dist/copy/tokens.js.map +1 -0
- package/dist/index.d.ts +4 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +8 -0
- package/dist/index.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/popup/index.d.ts +8 -0
- package/dist/popup/index.d.ts.map +1 -0
- package/dist/popup/index.js +7 -0
- package/dist/popup/index.js.map +1 -0
- package/dist/popup/launcher.d.ts +81 -0
- package/dist/popup/launcher.d.ts.map +1 -0
- package/dist/popup/launcher.js +71 -0
- package/dist/popup/launcher.js.map +1 -0
- package/dist/schemas/api.schemas.d.ts +354 -150
- package/dist/schemas/api.schemas.d.ts.map +1 -1
- package/dist/schemas/capabilities.schemas.d.ts +186 -0
- package/dist/schemas/capabilities.schemas.d.ts.map +1 -0
- package/dist/schemas/capabilities.schemas.js +123 -0
- package/dist/schemas/capabilities.schemas.js.map +1 -0
- package/dist/schemas/config.schemas.d.ts +452 -156
- package/dist/schemas/config.schemas.d.ts.map +1 -1
- package/dist/schemas/config.schemas.js +18 -0
- package/dist/schemas/config.schemas.js.map +1 -1
- package/dist/schemas/index.d.ts +1 -0
- package/dist/schemas/index.d.ts.map +1 -1
- package/dist/schemas/index.js +1 -0
- package/dist/schemas/index.js.map +1 -1
- 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 +72 -0
- package/dist/styles/theme.d.ts.map +1 -0
- package/dist/styles/theme.js +81 -0
- package/dist/styles/theme.js.map +1 -0
- package/dist/types/capabilities.types.d.ts +126 -0
- package/dist/types/capabilities.types.d.ts.map +1 -0
- package/dist/types/capabilities.types.js +11 -0
- package/dist/types/capabilities.types.js.map +1 -0
- package/dist/types/config.types.d.ts +33 -0
- package/dist/types/config.types.d.ts.map +1 -1
- package/dist/types/index.d.ts +1 -0
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/index.js +1 -0
- package/dist/types/index.js.map +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,205 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Consent Agent Header
|
|
4
|
+
*
|
|
5
|
+
* Renders the agent identity tile shared between the new consent screen and
|
|
6
|
+
* the OAuth Gateway consent modal. Shows logo + name + Verified/UNVERIFIED
|
|
7
|
+
* pill + meta line (`Made by {Vendor} · Asking from your {Surface} · Connected
|
|
8
|
+
* just now`).
|
|
9
|
+
*
|
|
10
|
+
* Fed by `AgentMetadata` from `@kya-os/consent/types/capabilities`.
|
|
11
|
+
*
|
|
12
|
+
* @module components/consent-agent-header
|
|
13
|
+
*/
|
|
14
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
15
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
16
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
17
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
18
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
19
|
+
};
|
|
20
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
21
|
+
exports.ConsentAgentHeader = void 0;
|
|
22
|
+
const lit_1 = require("lit");
|
|
23
|
+
const decorators_js_1 = require("lit/decorators.js");
|
|
24
|
+
const tokens_js_1 = require("../copy/tokens.js");
|
|
25
|
+
let ConsentAgentHeader = class ConsentAgentHeader extends lit_1.LitElement {
|
|
26
|
+
constructor() {
|
|
27
|
+
super(...arguments);
|
|
28
|
+
this.agentName = "";
|
|
29
|
+
this.vendor = "";
|
|
30
|
+
this.surfaceLabel = "";
|
|
31
|
+
this.verified = false;
|
|
32
|
+
this.logoUrl = "";
|
|
33
|
+
this.connectedAt = "";
|
|
34
|
+
}
|
|
35
|
+
renderConnectedFragment() {
|
|
36
|
+
if (!this.connectedAt) {
|
|
37
|
+
return tokens_js_1.CONSENT_COPY_TOKENS.agentTile.connectedJustNow;
|
|
38
|
+
}
|
|
39
|
+
const ts = Date.parse(this.connectedAt);
|
|
40
|
+
if (Number.isNaN(ts)) {
|
|
41
|
+
return tokens_js_1.CONSENT_COPY_TOKENS.agentTile.connectedJustNow;
|
|
42
|
+
}
|
|
43
|
+
const minutes = Math.max(0, Math.floor((Date.now() - ts) / 60000));
|
|
44
|
+
if (minutes < 1) {
|
|
45
|
+
return tokens_js_1.CONSENT_COPY_TOKENS.agentTile.connectedJustNow;
|
|
46
|
+
}
|
|
47
|
+
return (0, tokens_js_1.formatToken)(tokens_js_1.CONSENT_COPY_TOKENS.agentTile.connectedMinutesAgo, {
|
|
48
|
+
Minutes: minutes,
|
|
49
|
+
});
|
|
50
|
+
}
|
|
51
|
+
renderMeta() {
|
|
52
|
+
if (!this.vendor && !this.surfaceLabel) {
|
|
53
|
+
return this.renderConnectedFragment();
|
|
54
|
+
}
|
|
55
|
+
return (0, tokens_js_1.formatToken)(tokens_js_1.CONSENT_COPY_TOKENS.agentTile.metaTemplate, {
|
|
56
|
+
Vendor: this.vendor || "—",
|
|
57
|
+
Surface: this.surfaceLabel || "this device",
|
|
58
|
+
Connected: this.renderConnectedFragment(),
|
|
59
|
+
});
|
|
60
|
+
}
|
|
61
|
+
render() {
|
|
62
|
+
const initial = (this.agentName || "?").trim().charAt(0).toUpperCase();
|
|
63
|
+
const verifiedLabel = this.verified
|
|
64
|
+
? tokens_js_1.CONSENT_COPY_TOKENS.agentTile.verifiedPill
|
|
65
|
+
: tokens_js_1.CONSENT_COPY_TOKENS.agentTile.unverifiedPill;
|
|
66
|
+
const verifiedClass = this.verified ? "verified" : "unverified";
|
|
67
|
+
return (0, lit_1.html) `
|
|
68
|
+
<div class="tile" part="tile">
|
|
69
|
+
<div class="logo" aria-hidden="true">
|
|
70
|
+
${this.logoUrl
|
|
71
|
+
? (0, lit_1.html) `<img src="${this.logoUrl}" alt="" />`
|
|
72
|
+
: (0, lit_1.html) `<div class="placeholder">${initial}</div>`}
|
|
73
|
+
</div>
|
|
74
|
+
<div class="body">
|
|
75
|
+
<div class="row-name">
|
|
76
|
+
<span class="name">${this.agentName || lit_1.nothing}</span>
|
|
77
|
+
<span class="pill ${verifiedClass}" part="pill">
|
|
78
|
+
${verifiedLabel}
|
|
79
|
+
</span>
|
|
80
|
+
</div>
|
|
81
|
+
<div class="meta">${this.renderMeta()}</div>
|
|
82
|
+
</div>
|
|
83
|
+
</div>
|
|
84
|
+
`;
|
|
85
|
+
}
|
|
86
|
+
};
|
|
87
|
+
exports.ConsentAgentHeader = ConsentAgentHeader;
|
|
88
|
+
ConsentAgentHeader.styles = (0, lit_1.css) `
|
|
89
|
+
:host {
|
|
90
|
+
display: block;
|
|
91
|
+
width: 100%;
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
.tile {
|
|
95
|
+
display: flex;
|
|
96
|
+
align-items: center;
|
|
97
|
+
gap: 16px;
|
|
98
|
+
padding: 16px 18px;
|
|
99
|
+
border-radius: 14px;
|
|
100
|
+
background: var(--cs-surface-inset, transparent);
|
|
101
|
+
border: 1px solid var(--cs-surface-border, transparent);
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
.logo {
|
|
105
|
+
width: 44px;
|
|
106
|
+
height: 44px;
|
|
107
|
+
border-radius: 12px;
|
|
108
|
+
flex-shrink: 0;
|
|
109
|
+
background: var(--cs-surface-card, #fff);
|
|
110
|
+
display: flex;
|
|
111
|
+
align-items: center;
|
|
112
|
+
justify-content: center;
|
|
113
|
+
overflow: hidden;
|
|
114
|
+
border: 1px solid var(--cs-surface-border, transparent);
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
.logo img {
|
|
118
|
+
width: 100%;
|
|
119
|
+
height: 100%;
|
|
120
|
+
object-fit: cover;
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
.logo .placeholder {
|
|
124
|
+
width: 100%;
|
|
125
|
+
height: 100%;
|
|
126
|
+
background: var(--cs-surface-accent, #0F172A);
|
|
127
|
+
color: var(--cs-surface-accent-text, #fff);
|
|
128
|
+
display: flex;
|
|
129
|
+
align-items: center;
|
|
130
|
+
justify-content: center;
|
|
131
|
+
font-weight: 600;
|
|
132
|
+
font-size: 18px;
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
.body {
|
|
136
|
+
display: flex;
|
|
137
|
+
flex-direction: column;
|
|
138
|
+
gap: 4px;
|
|
139
|
+
min-width: 0;
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
.row-name {
|
|
143
|
+
display: flex;
|
|
144
|
+
align-items: center;
|
|
145
|
+
gap: 10px;
|
|
146
|
+
flex-wrap: wrap;
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
.name {
|
|
150
|
+
font-size: 16px;
|
|
151
|
+
font-weight: 600;
|
|
152
|
+
color: var(--cs-text-primary, #0F172A);
|
|
153
|
+
letter-spacing: -0.01em;
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
.pill {
|
|
157
|
+
display: inline-flex;
|
|
158
|
+
align-items: center;
|
|
159
|
+
gap: 4px;
|
|
160
|
+
padding: 2px 8px;
|
|
161
|
+
border-radius: 999px;
|
|
162
|
+
font-size: 11px;
|
|
163
|
+
font-weight: 600;
|
|
164
|
+
letter-spacing: 0.04em;
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
.pill.verified {
|
|
168
|
+
background: var(--cs-pill-verified-bg, #DCFCE7);
|
|
169
|
+
color: var(--cs-pill-verified-text, #166534);
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
.pill.unverified {
|
|
173
|
+
background: var(--cs-pill-unverified-bg, #F1F5F9);
|
|
174
|
+
color: var(--cs-pill-unverified-text, #475569);
|
|
175
|
+
letter-spacing: 0.08em;
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
.meta {
|
|
179
|
+
font-size: 12px;
|
|
180
|
+
color: var(--cs-text-tertiary, #64748B);
|
|
181
|
+
line-height: 1.5;
|
|
182
|
+
}
|
|
183
|
+
`;
|
|
184
|
+
__decorate([
|
|
185
|
+
(0, decorators_js_1.property)({ type: String })
|
|
186
|
+
], ConsentAgentHeader.prototype, "agentName", void 0);
|
|
187
|
+
__decorate([
|
|
188
|
+
(0, decorators_js_1.property)({ type: String })
|
|
189
|
+
], ConsentAgentHeader.prototype, "vendor", void 0);
|
|
190
|
+
__decorate([
|
|
191
|
+
(0, decorators_js_1.property)({ type: String })
|
|
192
|
+
], ConsentAgentHeader.prototype, "surfaceLabel", void 0);
|
|
193
|
+
__decorate([
|
|
194
|
+
(0, decorators_js_1.property)({ type: Boolean })
|
|
195
|
+
], ConsentAgentHeader.prototype, "verified", void 0);
|
|
196
|
+
__decorate([
|
|
197
|
+
(0, decorators_js_1.property)({ type: String })
|
|
198
|
+
], ConsentAgentHeader.prototype, "logoUrl", void 0);
|
|
199
|
+
__decorate([
|
|
200
|
+
(0, decorators_js_1.property)({ type: String })
|
|
201
|
+
], ConsentAgentHeader.prototype, "connectedAt", void 0);
|
|
202
|
+
exports.ConsentAgentHeader = ConsentAgentHeader = __decorate([
|
|
203
|
+
(0, decorators_js_1.customElement)("consent-agent-header")
|
|
204
|
+
], ConsentAgentHeader);
|
|
205
|
+
//# sourceMappingURL=consent-agent-header.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"consent-agent-header.js","sourceRoot":"","sources":["../../../src/components/consent-agent-header.ts"],"names":[],"mappings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wBAAQ,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;kDAAa;AACZ;IAA3B,IAAA,wBAAQ,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;wDAAmB;AACjB;IAA5B,IAAA,wBAAQ,EAAC,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC;oDAAkB;AAClB;IAA3B,IAAA,wBAAQ,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;mDAAc;AACb;IAA3B,IAAA,wBAAQ,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;uDAAkB;6BANlC,kBAAkB;IAD9B,IAAA,6BAAa,EAAC,sBAAsB,CAAC;GACzB,kBAAkB,CA+J9B"}
|
|
@@ -0,0 +1,309 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Consent Capabilities Screen
|
|
4
|
+
*
|
|
5
|
+
* The composite layout from Peter's mockup: eyebrow + serif headline +
|
|
6
|
+
* subhead + agent identity tile + capability rows + revocation notice +
|
|
7
|
+
* action bar + footer. Used when the resolved consent config includes
|
|
8
|
+
* `capabilities` (the new humanized layout). Falls back to the legacy
|
|
9
|
+
* permissions list otherwise.
|
|
10
|
+
*
|
|
11
|
+
* This component is purely presentational. It accepts the resolved data
|
|
12
|
+
* (capabilities, agent metadata, copy values) and emits `consent-allow` /
|
|
13
|
+
* `consent-deny` events so the parent can submit the form / close the
|
|
14
|
+
* window. Selection state for the checkboxes is owned here to keep the
|
|
15
|
+
* parent simple.
|
|
16
|
+
*
|
|
17
|
+
* @module components/consent-capabilities-screen
|
|
18
|
+
*/
|
|
19
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
20
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
21
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
22
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
23
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
24
|
+
};
|
|
25
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
|
+
exports.ConsentCapabilitiesScreen = void 0;
|
|
27
|
+
const lit_1 = require("lit");
|
|
28
|
+
const decorators_js_1 = require("lit/decorators.js");
|
|
29
|
+
const tokens_js_1 = require("../copy/tokens.js");
|
|
30
|
+
const theme_js_1 = require("../styles/theme.js");
|
|
31
|
+
const compile_js_1 = require("../cedar/compile.js");
|
|
32
|
+
require("./consent-agent-header.js");
|
|
33
|
+
require("./consent-capability-card.js");
|
|
34
|
+
require("./consent-action-bar.js");
|
|
35
|
+
require("./consent-footer.js");
|
|
36
|
+
require("./consent-revocation-notice.js");
|
|
37
|
+
let ConsentCapabilitiesScreen = class ConsentCapabilitiesScreen extends lit_1.LitElement {
|
|
38
|
+
constructor() {
|
|
39
|
+
super(...arguments);
|
|
40
|
+
this.capabilities = [];
|
|
41
|
+
this.orgName = "";
|
|
42
|
+
this.headlineVerb = "use";
|
|
43
|
+
this.revocationPath = "Account → Connected Agents";
|
|
44
|
+
this.inactivityDays = 90;
|
|
45
|
+
this.theme = "light";
|
|
46
|
+
this.howItWorksUrl = "";
|
|
47
|
+
this.loading = false;
|
|
48
|
+
this.selected = new Set();
|
|
49
|
+
this.onCapabilityToggle = (event) => {
|
|
50
|
+
const detail = event.detail;
|
|
51
|
+
const next = new Set(this.selected);
|
|
52
|
+
if (detail.checked)
|
|
53
|
+
next.add(detail.id);
|
|
54
|
+
else
|
|
55
|
+
next.delete(detail.id);
|
|
56
|
+
this.selected = next;
|
|
57
|
+
};
|
|
58
|
+
this.onAllow = () => {
|
|
59
|
+
if (this.loading)
|
|
60
|
+
return;
|
|
61
|
+
const selectedIds = Array.from(this.selected);
|
|
62
|
+
const selectedScopes = this.capabilities
|
|
63
|
+
.filter((c) => this.selected.has(c.id))
|
|
64
|
+
.flatMap((c) => c.scopes);
|
|
65
|
+
const detail = {
|
|
66
|
+
selectedCapabilityIds: selectedIds,
|
|
67
|
+
selectedScopes,
|
|
68
|
+
};
|
|
69
|
+
this.dispatchEvent(new CustomEvent("capabilities-allow", {
|
|
70
|
+
detail,
|
|
71
|
+
bubbles: true,
|
|
72
|
+
composed: true,
|
|
73
|
+
}));
|
|
74
|
+
};
|
|
75
|
+
this.onDeny = () => {
|
|
76
|
+
this.dispatchEvent(new CustomEvent("capabilities-deny", { bubbles: true, composed: true }));
|
|
77
|
+
};
|
|
78
|
+
}
|
|
79
|
+
connectedCallback() {
|
|
80
|
+
super.connectedCallback();
|
|
81
|
+
this.seedDefaults();
|
|
82
|
+
}
|
|
83
|
+
willUpdate(changed) {
|
|
84
|
+
if (changed.has("capabilities")) {
|
|
85
|
+
this.seedDefaults();
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
seedDefaults() {
|
|
89
|
+
const next = new Set();
|
|
90
|
+
for (const capability of this.capabilities) {
|
|
91
|
+
if (capability.defaultOn)
|
|
92
|
+
next.add(capability.id);
|
|
93
|
+
}
|
|
94
|
+
this.selected = next;
|
|
95
|
+
}
|
|
96
|
+
hostStyle() {
|
|
97
|
+
return `:host { ${(0, theme_js_1.themeToCssVariables)((0, theme_js_1.getConsentTheme)(this.theme))} }`;
|
|
98
|
+
}
|
|
99
|
+
compileCapabilityCedar(capability) {
|
|
100
|
+
if (!this.cedarContext) {
|
|
101
|
+
return capability.cedar;
|
|
102
|
+
}
|
|
103
|
+
try {
|
|
104
|
+
return (0, compile_js_1.compileSingleCapability)(capability, this.cedarContext);
|
|
105
|
+
}
|
|
106
|
+
catch {
|
|
107
|
+
return capability.cedar;
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
renderHeadline() {
|
|
111
|
+
const agentName = this.agentMetadata?.name || "this agent";
|
|
112
|
+
const tokens = tokens_js_1.CONSENT_COPY_TOKENS;
|
|
113
|
+
const raw = (0, tokens_js_1.formatToken)(tokens.headline.template, {
|
|
114
|
+
Agent: "@@AGENT@@",
|
|
115
|
+
Verb: this.headlineVerb || "use",
|
|
116
|
+
Org: "@@ORG@@",
|
|
117
|
+
});
|
|
118
|
+
const escaped = escapeHtml(raw);
|
|
119
|
+
const withSerifEntities = escaped
|
|
120
|
+
.replace("@@AGENT@@", `<em>${escapeHtml(agentName)}</em>`)
|
|
121
|
+
.replace("@@ORG@@", `<em>${escapeHtml(this.orgName || "this site")}</em>`);
|
|
122
|
+
return (0, lit_1.html) `<h1
|
|
123
|
+
class="headline"
|
|
124
|
+
.innerHTML=${withSerifEntities}
|
|
125
|
+
></h1>`;
|
|
126
|
+
}
|
|
127
|
+
render() {
|
|
128
|
+
const tokens = tokens_js_1.CONSENT_COPY_TOKENS;
|
|
129
|
+
const agentName = this.agentMetadata?.name || "this agent";
|
|
130
|
+
const subhead = (0, tokens_js_1.formatToken)(tokens.subhead.template, { Agent: agentName });
|
|
131
|
+
const sectionHeader = (0, tokens_js_1.formatToken)(tokens.section.capabilitiesHeader, {
|
|
132
|
+
Agent: agentName.toUpperCase(),
|
|
133
|
+
});
|
|
134
|
+
return (0, lit_1.html) `
|
|
135
|
+
<style>
|
|
136
|
+
${this.hostStyle()}
|
|
137
|
+
</style>
|
|
138
|
+
<div class="card" part="card">
|
|
139
|
+
<span class="eyebrow">${tokens.eyebrow.permissionRequest}</span>
|
|
140
|
+
${this.renderHeadline()}
|
|
141
|
+
<p class="subhead">${subhead}</p>
|
|
142
|
+
${this.agentMetadata
|
|
143
|
+
? (0, lit_1.html) `<consent-agent-header
|
|
144
|
+
agentName="${this.agentMetadata.name}"
|
|
145
|
+
vendor="${this.agentMetadata.vendor || ""}"
|
|
146
|
+
surfaceLabel="${this.agentMetadata.surfaceLabel || ""}"
|
|
147
|
+
?verified=${this.agentMetadata.verified}
|
|
148
|
+
logoUrl="${this.agentMetadata.logoUrl || ""}"
|
|
149
|
+
connectedAt="${this.agentMetadata.connectedAt || ""}"
|
|
150
|
+
></consent-agent-header>`
|
|
151
|
+
: lit_1.nothing}
|
|
152
|
+
<div>
|
|
153
|
+
<div class="section-header">
|
|
154
|
+
<span>${sectionHeader}</span>
|
|
155
|
+
<span class="hint">${tokens.section.tapToToggle}</span>
|
|
156
|
+
</div>
|
|
157
|
+
<div class="rows" @capability-toggle=${this.onCapabilityToggle}>
|
|
158
|
+
${this.capabilities.map((capability) => (0, lit_1.html) `
|
|
159
|
+
<consent-capability-card
|
|
160
|
+
capabilityId="${capability.id}"
|
|
161
|
+
label="${capability.label}"
|
|
162
|
+
description="${capability.description}"
|
|
163
|
+
icon="${capability.icon}"
|
|
164
|
+
riskLevel="${capability.riskLevel}"
|
|
165
|
+
?checked=${this.selected.has(capability.id)}
|
|
166
|
+
compiled-cedar="${this.compileCapabilityCedar(capability)}"
|
|
167
|
+
></consent-capability-card>
|
|
168
|
+
`)}
|
|
169
|
+
</div>
|
|
170
|
+
</div>
|
|
171
|
+
<consent-revocation-notice
|
|
172
|
+
revocationPath="${this.revocationPath}"
|
|
173
|
+
orgName="${this.orgName || "this site"}"
|
|
174
|
+
inactivityDays=${this.inactivityDays}
|
|
175
|
+
></consent-revocation-notice>
|
|
176
|
+
<consent-action-bar
|
|
177
|
+
agentName="${agentName}"
|
|
178
|
+
theme="${this.theme}"
|
|
179
|
+
?loading=${this.loading}
|
|
180
|
+
?disabled=${this.selected.size === 0}
|
|
181
|
+
@consent-allow=${this.onAllow}
|
|
182
|
+
@consent-deny=${this.onDeny}
|
|
183
|
+
></consent-action-bar>
|
|
184
|
+
<consent-footer
|
|
185
|
+
theme="${this.theme}"
|
|
186
|
+
howItWorksUrl="${this.howItWorksUrl}"
|
|
187
|
+
></consent-footer>
|
|
188
|
+
</div>
|
|
189
|
+
`;
|
|
190
|
+
}
|
|
191
|
+
};
|
|
192
|
+
exports.ConsentCapabilitiesScreen = ConsentCapabilitiesScreen;
|
|
193
|
+
ConsentCapabilitiesScreen.styles = (0, lit_1.css) `
|
|
194
|
+
:host {
|
|
195
|
+
display: block;
|
|
196
|
+
box-sizing: border-box;
|
|
197
|
+
width: 100%;
|
|
198
|
+
max-width: 560px;
|
|
199
|
+
margin: 0 auto;
|
|
200
|
+
}
|
|
201
|
+
|
|
202
|
+
.card {
|
|
203
|
+
background: var(--cs-surface-card);
|
|
204
|
+
border: 1px solid var(--cs-surface-border);
|
|
205
|
+
border-radius: 22px;
|
|
206
|
+
box-shadow: var(--cs-card-shadow);
|
|
207
|
+
padding: 28px 28px 22px;
|
|
208
|
+
display: flex;
|
|
209
|
+
flex-direction: column;
|
|
210
|
+
gap: 22px;
|
|
211
|
+
color: var(--cs-text-primary);
|
|
212
|
+
}
|
|
213
|
+
|
|
214
|
+
.eyebrow {
|
|
215
|
+
font-size: 11px;
|
|
216
|
+
letter-spacing: 0.16em;
|
|
217
|
+
font-weight: 600;
|
|
218
|
+
color: var(--cs-text-tertiary);
|
|
219
|
+
text-transform: uppercase;
|
|
220
|
+
}
|
|
221
|
+
|
|
222
|
+
.headline {
|
|
223
|
+
font-family: "Times New Roman", Georgia, serif;
|
|
224
|
+
font-size: 30px;
|
|
225
|
+
line-height: 1.18;
|
|
226
|
+
letter-spacing: -0.01em;
|
|
227
|
+
color: var(--cs-text-primary);
|
|
228
|
+
margin: 0;
|
|
229
|
+
}
|
|
230
|
+
|
|
231
|
+
.headline em {
|
|
232
|
+
font-style: italic;
|
|
233
|
+
}
|
|
234
|
+
|
|
235
|
+
.subhead {
|
|
236
|
+
font-size: 14.5px;
|
|
237
|
+
color: var(--cs-text-secondary);
|
|
238
|
+
line-height: 1.55;
|
|
239
|
+
margin: 0;
|
|
240
|
+
}
|
|
241
|
+
|
|
242
|
+
.section-header {
|
|
243
|
+
display: flex;
|
|
244
|
+
align-items: center;
|
|
245
|
+
justify-content: space-between;
|
|
246
|
+
font-size: 11px;
|
|
247
|
+
letter-spacing: 0.14em;
|
|
248
|
+
font-weight: 600;
|
|
249
|
+
color: var(--cs-text-tertiary);
|
|
250
|
+
text-transform: uppercase;
|
|
251
|
+
}
|
|
252
|
+
|
|
253
|
+
.section-header .hint {
|
|
254
|
+
letter-spacing: 0;
|
|
255
|
+
font-weight: 400;
|
|
256
|
+
text-transform: none;
|
|
257
|
+
font-size: 12px;
|
|
258
|
+
}
|
|
259
|
+
|
|
260
|
+
.rows {
|
|
261
|
+
display: flex;
|
|
262
|
+
flex-direction: column;
|
|
263
|
+
}
|
|
264
|
+
`;
|
|
265
|
+
__decorate([
|
|
266
|
+
(0, decorators_js_1.property)({ type: Array })
|
|
267
|
+
], ConsentCapabilitiesScreen.prototype, "capabilities", void 0);
|
|
268
|
+
__decorate([
|
|
269
|
+
(0, decorators_js_1.property)({ type: Object })
|
|
270
|
+
], ConsentCapabilitiesScreen.prototype, "agentMetadata", void 0);
|
|
271
|
+
__decorate([
|
|
272
|
+
(0, decorators_js_1.property)({ type: Object })
|
|
273
|
+
], ConsentCapabilitiesScreen.prototype, "cedarContext", void 0);
|
|
274
|
+
__decorate([
|
|
275
|
+
(0, decorators_js_1.property)({ type: String })
|
|
276
|
+
], ConsentCapabilitiesScreen.prototype, "orgName", void 0);
|
|
277
|
+
__decorate([
|
|
278
|
+
(0, decorators_js_1.property)({ type: String })
|
|
279
|
+
], ConsentCapabilitiesScreen.prototype, "headlineVerb", void 0);
|
|
280
|
+
__decorate([
|
|
281
|
+
(0, decorators_js_1.property)({ type: String })
|
|
282
|
+
], ConsentCapabilitiesScreen.prototype, "revocationPath", void 0);
|
|
283
|
+
__decorate([
|
|
284
|
+
(0, decorators_js_1.property)({ type: Number })
|
|
285
|
+
], ConsentCapabilitiesScreen.prototype, "inactivityDays", void 0);
|
|
286
|
+
__decorate([
|
|
287
|
+
(0, decorators_js_1.property)({ type: String })
|
|
288
|
+
], ConsentCapabilitiesScreen.prototype, "theme", void 0);
|
|
289
|
+
__decorate([
|
|
290
|
+
(0, decorators_js_1.property)({ type: String, attribute: "how-it-works-url" })
|
|
291
|
+
], ConsentCapabilitiesScreen.prototype, "howItWorksUrl", void 0);
|
|
292
|
+
__decorate([
|
|
293
|
+
(0, decorators_js_1.property)({ type: Boolean })
|
|
294
|
+
], ConsentCapabilitiesScreen.prototype, "loading", void 0);
|
|
295
|
+
__decorate([
|
|
296
|
+
(0, decorators_js_1.state)()
|
|
297
|
+
], ConsentCapabilitiesScreen.prototype, "selected", void 0);
|
|
298
|
+
exports.ConsentCapabilitiesScreen = ConsentCapabilitiesScreen = __decorate([
|
|
299
|
+
(0, decorators_js_1.customElement)("consent-capabilities-screen")
|
|
300
|
+
], ConsentCapabilitiesScreen);
|
|
301
|
+
function escapeHtml(value) {
|
|
302
|
+
return value
|
|
303
|
+
.replace(/&/g, "&")
|
|
304
|
+
.replace(/</g, "<")
|
|
305
|
+
.replace(/>/g, ">")
|
|
306
|
+
.replace(/"/g, """)
|
|
307
|
+
.replace(/'/g, "'");
|
|
308
|
+
}
|
|
309
|
+
//# sourceMappingURL=consent-capabilities-screen.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"consent-capabilities-screen.js","sourceRoot":"","sources":["../../../src/components/consent-capabilities-screen.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;GAgBG;;;;;;;;;AAEH,6BAAqD;AACrD,qDAAmE;AAEnE,iDAAqE;AACrE,iDAG4B;AAO5B,oDAA8D;AAC9D,qCAAmC;AACnC,wCAAsC;AACtC,mCAAiC;AACjC,+BAA6B;AAC7B,0CAAwC;AAajC,IAAM,yBAAyB,GAA/B,MAAM,yBAA0B,SAAQ,gBAAU;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,GAAiB,OAAO,CAAC;QACC,kBAAa,GAAG,EAAE,CAAC;QACjD,YAAO,GAAG,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